import { defineComponent as u, ref as l, provide as h, onMounted as g, getCurrentInstance as b, toRaw as y, onBeforeUnmount as f, openBlock as C, createElementBlock as x, watch as w } from "vue";
import { DurationField as v } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const S = /* @__PURE__ */ u({
  __name: "BryntumDurationField",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    allowedUnits: {},
    allowNegative: {},
    anchor: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    autoComplete: {},
    autoSelect: {},
    badge: {},
    bubbleEvents: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    centered: {},
    checkValidity: { type: [Function, String] },
    clearable: {},
    cls: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    container: {},
    containValues: { type: [String, Function] },
    contentElementCls: {},
    dataField: {},
    dataset: {},
    decimalPrecision: {},
    defaultBindProperty: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    editable: {},
    elementAttributes: {},
    extraData: {},
    flex: {},
    floating: {},
    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: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    magnitude: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    max: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxLength: {},
    maxWidth: {},
    min: {},
    minHeight: {},
    minLength: {},
    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: {},
    unit: {},
    useAbbreviation: {},
    validateOnInput: {},
    value: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["action", "beforeDestroy", "beforeHide", "beforeShow", "catchAll", "change", "clear", "destroy", "elementCreated", "focusIn", "focusOut", "hide", "input", "paint", "readOnly", "recompose", "resize", "show", "trigger"],
  setup(k, { expose: s, emit: c }) {
    const d = c, i = {
      instanceClass: v,
      instanceName: "DurationField",
      configNames: [
        "adopt",
        "align",
        "allowNegative",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoComplete",
        "autoSelect",
        "bubbleEvents",
        "centered",
        "checkValidity",
        "clearable",
        "color",
        "config",
        "constrainTo",
        "container",
        "containValues",
        "contentElementCls",
        "dataField",
        "decimalPrecision",
        "defaultBindProperty",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "elementAttributes",
        "floating",
        "hideAnimation",
        "highlightExternalChange",
        "hint",
        "hintHtml",
        "ignoreParentReadOnly",
        "inline",
        "inputAlign",
        "inputAttributes",
        "inputTag",
        "inputType",
        "inputWidth",
        "keyStrokeChangeDelay",
        "labelCls",
        "labelPosition",
        "labels",
        "labelWidth",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "maxLength",
        "minLength",
        "monitorResize",
        "name",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "revertOnEscape",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showTooltipWhenDisabled",
        "skipValidation",
        "spellCheck",
        "step",
        "tab",
        "tabIndex",
        "textAlign",
        "title",
        "type",
        "ui",
        "useAbbreviation",
        "validateOnInput",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "allowedUnits",
        "appendTo",
        "badge",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "column",
        "dataset",
        "disabled",
        "editable",
        "extraData",
        "flex",
        "height",
        "hidden",
        "id",
        "insertBefore",
        "insertFirst",
        "keyMap",
        "label",
        "magnitude",
        "margin",
        "max",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "min",
        "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",
        "tooltip",
        "triggers",
        "unit",
        "value",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "content",
        "formula",
        "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 h("teleports", a), g(() => {
      const n = b();
      e.value = r.createWidget({
        me: n,
        widgetData: i,
        emit: d,
        element: t.value,
        toRaw: y
      });
      const o = (p, m) => w(() => n.props[p], m);
      r.watchProps(e.value, i, o);
    }), f(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: a
    }), (n, o) => (C(), x("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  S as _
};
//# sourceMappingURL=BX7Kl68K.js.map
