import { defineComponent as h, ref as l, provide as u, onMounted as g, getCurrentInstance as b, toRaw as f, onBeforeUnmount as y, openBlock as C, createElementBlock as x, watch as w } from "vue";
import { NumberField as S } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const E = /* @__PURE__ */ h({
  __name: "BryntumNumberField",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    autoComplete: {},
    autoSelect: {},
    badge: {},
    bubbleEvents: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    centered: {},
    changeOnSpin: {},
    checkValidity: { type: [Function, String] },
    clearable: {},
    cls: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    container: {},
    containValues: { type: [String, Function] },
    contentElementCls: {},
    dataField: {},
    dataset: {},
    defaultBindProperty: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    editable: {},
    elementAttributes: {},
    extraData: {},
    flex: {},
    floating: {},
    format: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    highlightExternalChange: {},
    hint: { type: [String, Function] },
    hintHtml: { type: [String, Function] },
    id: {},
    ignoreParentReadOnly: {},
    inline: {},
    inputAlign: {},
    inputAttributes: {},
    inputTag: {},
    inputType: {},
    inputWidth: {},
    insertBefore: {},
    insertFirst: {},
    keyMap: {},
    keyStrokeChangeDelay: {},
    label: {},
    labelCls: {},
    labelPosition: {},
    labels: {},
    labelWidth: {},
    largeStep: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    max: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    min: {},
    minHeight: {},
    minWidth: {},
    monitorResize: {},
    name: {},
    placeholder: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    relayStoreEvents: {},
    rendition: {},
    required: {},
    revertOnEscape: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollAction: {},
    showAnimation: {},
    showRequiredIndicator: {},
    showTooltipWhenDisabled: {},
    skipValidation: {},
    span: {},
    spellCheck: {},
    step: {},
    tab: {},
    tabIndex: {},
    textAlign: {},
    title: {},
    tooltip: {},
    triggers: {},
    type: {},
    ui: {},
    validateOnInput: {},
    value: {},
    weight: {},
    width: {},
    wrapAround: {},
    x: {},
    y: {}
  },
  emits: ["action", "beforeDestroy", "beforeHide", "beforeShow", "catchAll", "change", "clear", "destroy", "elementCreated", "focusIn", "focusOut", "hide", "input", "paint", "readOnly", "recompose", "resize", "show", "trigger"],
  setup(O, { expose: s, emit: c }) {
    const p = c, i = {
      instanceClass: S,
      instanceName: "NumberField",
      configNames: [
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoComplete",
        "autoSelect",
        "bubbleEvents",
        "centered",
        "changeOnSpin",
        "checkValidity",
        "clearable",
        "color",
        "config",
        "constrainTo",
        "container",
        "containValues",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "elementAttributes",
        "floating",
        "format",
        "hideAnimation",
        "highlightExternalChange",
        "hint",
        "hintHtml",
        "ignoreParentReadOnly",
        "inline",
        "inputAlign",
        "inputAttributes",
        "inputTag",
        "inputType",
        "inputWidth",
        "keyStrokeChangeDelay",
        "labelCls",
        "labelPosition",
        "labels",
        "labelWidth",
        "largeStep",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "max",
        "min",
        "monitorResize",
        "name",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "revertOnEscape",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showTooltipWhenDisabled",
        "skipValidation",
        "spellCheck",
        "tab",
        "tabIndex",
        "textAlign",
        "title",
        "type",
        "ui",
        "validateOnInput",
        "weight",
        "wrapAround"
      ],
      propertyConfigNames: [
        "alignSelf",
        "appendTo",
        "badge",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "column",
        "dataset",
        "disabled",
        "editable",
        "extraData",
        "flex",
        "height",
        "hidden",
        "id",
        "insertBefore",
        "insertFirst",
        "keyMap",
        "label",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "minHeight",
        "minWidth",
        "onAction",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeShow",
        "onCatchAll",
        "onChange",
        "onClear",
        "onDestroy",
        "onElementCreated",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onInput",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onResize",
        "onShow",
        "onTrigger",
        "placeholder",
        "readOnly",
        "rendition",
        "required",
        "rtl",
        "showRequiredIndicator",
        "span",
        "step",
        "tooltip",
        "triggers",
        "value",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "content",
        "html",
        "input",
        "parent",
        "scrollable"
      ],
      eventNames: [
        "action",
        "beforeDestroy",
        "beforeHide",
        "beforeShow",
        "catchAll",
        "change",
        "clear",
        "destroy",
        "elementCreated",
        "focusIn",
        "focusOut",
        "hide",
        "input",
        "paint",
        "readOnly",
        "recompose",
        "resize",
        "show",
        "trigger"
      ]
    }, e = {}, t = l(), a = l(/* @__PURE__ */ new Map());
    return u("teleports", a), g(() => {
      const n = b();
      e.value = r.createWidget({
        me: n,
        widgetData: i,
        emit: p,
        element: t.value,
        toRaw: f
      });
      const o = (d, m) => w(() => n.props[d], m);
      r.watchProps(e.value, i, o);
    }), y(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: a
    }), (n, o) => (C(), x("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  E as _
};
//# sourceMappingURL=BY_0yuD6.js.map
