import { defineComponent as u, ref as l, provide as m, onMounted as g, getCurrentInstance as b, toRaw as f, onBeforeUnmount as y, openBlock as C, createElementBlock as x, watch as F } from "vue";
import { FilterField as w } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const S = /* @__PURE__ */ u({
  __name: "BryntumFilterField",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    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: {},
    defaultBindProperty: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    editable: {},
    elementAttributes: {},
    extraData: {},
    field: {},
    filterFunction: { type: Function },
    filterId: {},
    flex: {},
    floating: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    highlightExternalChange: {},
    hint: { type: [String, Function] },
    hintHtml: { type: [String, Function] },
    id: {},
    ignoreParentReadOnly: {},
    inline: {},
    inputAlign: {},
    inputAttributes: {},
    inputTag: {},
    inputType: {},
    inputWidth: {},
    insertBefore: {},
    insertFirst: {},
    internalFilter: {},
    keyMap: {},
    keyStrokeChangeDelay: {},
    label: {},
    labelCls: {},
    labelPosition: {},
    labels: {},
    labelWidth: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxLength: {},
    maxWidth: {},
    minHeight: {},
    minLength: {},
    minWidth: {},
    monitorResize: {},
    name: {},
    placeholder: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    relayStoreEvents: {},
    rendition: {},
    required: {},
    revertOnEscape: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollAction: {},
    showAnimation: {},
    showRequiredIndicator: {},
    showTooltipWhenDisabled: {},
    skipValidation: {},
    span: {},
    spellCheck: {},
    store: {},
    tab: {},
    tabIndex: {},
    textAlign: {},
    title: {},
    tooltip: {},
    triggers: {},
    type: {},
    ui: {},
    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: w,
      instanceName: "FilterField",
      configNames: [
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoComplete",
        "autoSelect",
        "bubbleEvents",
        "centered",
        "checkValidity",
        "clearable",
        "color",
        "config",
        "constrainTo",
        "container",
        "containValues",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "elementAttributes",
        "field",
        "filterFunction",
        "filterId",
        "floating",
        "hideAnimation",
        "highlightExternalChange",
        "hint",
        "hintHtml",
        "ignoreParentReadOnly",
        "inline",
        "inputAlign",
        "inputAttributes",
        "inputTag",
        "inputType",
        "inputWidth",
        "internalFilter",
        "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",
        "store",
        "tab",
        "tabIndex",
        "textAlign",
        "title",
        "type",
        "ui",
        "validateOnInput",
        "weight"
      ],
      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",
        "tooltip",
        "triggers",
        "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(), o = l(/* @__PURE__ */ new Map());
    return m("teleports", o), g(() => {
      const n = b();
      e.value = r.createWidget({
        me: n,
        widgetData: i,
        emit: d,
        element: t.value,
        toRaw: f
      });
      const a = (p, h) => F(() => n.props[p], h);
      r.watchProps(e.value, i, a);
    }), y(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: o
    }), (n, a) => (C(), x("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  S as _
};
//# sourceMappingURL=BqM_KiG8.js.map
