import { defineComponent as g, ref as a, provide as u, onMounted as h, getCurrentInstance as y, toRaw as f, onBeforeUnmount as b, openBlock as S, createElementBlock as C, watch as w } from "vue";
import { List as v } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const E = /* @__PURE__ */ g({
  __name: "BryntumList",
  props: {
    activateOnMouseover: {},
    adopt: {},
    align: {},
    alignSelf: {},
    allowGroupSelect: {},
    anchor: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    bubbleEvents: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    centered: {},
    clearSelectionOnEmptySpaceClick: {},
    cls: {},
    collapsibleGroups: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    content: {},
    contentElementCls: {},
    dataField: {},
    dataset: {},
    defaultBindProperty: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    displayField: {},
    dock: {},
    draggable: {},
    elementAttributes: {},
    emptyText: {},
    extraData: {},
    flex: {},
    floating: {},
    getItemCls: { type: [Function, String] },
    getItemStyle: { type: [Function, String] },
    groupHeaderTpl: { type: Function },
    height: {},
    hidden: {},
    hideAnimation: {},
    html: { type: [String, Function, Array] },
    htmlCls: {},
    id: {},
    ignoreParentReadOnly: {},
    insertBefore: {},
    insertFirst: {},
    isSelectable: { type: [Function, String] },
    items: {},
    itemTpl: { type: [Function, String] },
    keyMap: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    minHeight: {},
    minWidth: {},
    monitorResize: {},
    multiSelect: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    relayStoreEvents: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    selectAllItem: {},
    selected: {},
    showAnimation: {},
    showTooltipWhenDisabled: {},
    span: {},
    store: {},
    tab: {},
    tag: {},
    textAlign: {},
    title: {},
    toggleAllIfCtrlPressed: {},
    tooltip: {},
    tooltipTemplate: { type: Function },
    type: {},
    ui: {},
    virtualize: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["beforeDestroy", "beforeHide", "beforeItem", "beforeShow", "catchAll", "destroy", "elementCreated", "focusIn", "focusOut", "hide", "item", "paint", "readOnly", "recompose", "resize", "selectionChange", "show", "toggleGroup", "toggleNode"],
  setup(x, { expose: s, emit: c }) {
    const p = c, l = {
      instanceClass: v,
      instanceName: "List",
      configNames: [
        "activateOnMouseover",
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "bubbleEvents",
        "centered",
        "color",
        "config",
        "constrainTo",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "detectCSSCompatibilityIssues",
        "displayField",
        "dock",
        "draggable",
        "elementAttributes",
        "floating",
        "getItemCls",
        "getItemStyle",
        "groupHeaderTpl",
        "hideAnimation",
        "htmlCls",
        "ignoreParentReadOnly",
        "isSelectable",
        "itemTpl",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "monitorResize",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "selectAllItem",
        "showAnimation",
        "showTooltipWhenDisabled",
        "tab",
        "tag",
        "textAlign",
        "tooltipTemplate",
        "type",
        "ui",
        "virtualize",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "allowGroupSelect",
        "appendTo",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "clearSelectionOnEmptySpaceClick",
        "cls",
        "collapsibleGroups",
        "column",
        "content",
        "dataset",
        "disabled",
        "emptyText",
        "extraData",
        "flex",
        "height",
        "hidden",
        "html",
        "id",
        "insertBefore",
        "insertFirst",
        "items",
        "keyMap",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "minHeight",
        "minWidth",
        "multiSelect",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeItem",
        "onBeforeShow",
        "onCatchAll",
        "onDestroy",
        "onElementCreated",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onItem",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onResize",
        "onSelectionChange",
        "onShow",
        "onToggleGroup",
        "onToggleNode",
        "readOnly",
        "rtl",
        "scrollable",
        "selected",
        "span",
        "store",
        "title",
        "toggleAllIfCtrlPressed",
        "tooltip",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent"
      ],
      eventNames: [
        "beforeDestroy",
        "beforeHide",
        "beforeItem",
        "beforeShow",
        "catchAll",
        "destroy",
        "elementCreated",
        "focusIn",
        "focusOut",
        "hide",
        "item",
        "paint",
        "readOnly",
        "recompose",
        "resize",
        "selectionChange",
        "show",
        "toggleGroup",
        "toggleNode"
      ]
    }, e = {}, t = a(), n = a(/* @__PURE__ */ new Map());
    return u("teleports", n), h(() => {
      const o = y();
      e.value = r.createWidget({
        me: o,
        widgetData: l,
        emit: p,
        element: t.value,
        toRaw: f
      });
      const i = (m, d) => w(() => o.props[m], d);
      r.watchProps(e.value, l, i);
    }), b(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: n
    }), (o, i) => (S(), C("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  E as _
};
//# sourceMappingURL=B0tUKaLS.js.map
