import { defineComponent as C, ref as c, provide as T, onMounted as f, getCurrentInstance as b, toRaw as h, onBeforeUnmount as S, openBlock as n, createElementBlock as u, createElementVNode as w, Fragment as D, renderList as F, createBlock as m, Teleport as v, resolveDynamicComponent as E, mergeProps as M, toHandlers as y, watch as H } from "vue";
import { TaskBoardBase as R } from "@bryntum/taskboard";
import { WrapperHelper as o } from "../helper/WrapperHelper.js";
const x = {
  ref: "teleportsHolder",
  style: { display: "none" }
}, O = /* @__PURE__ */ C({
  __name: "BryntumTaskBoardBase",
  props: {
    activateTaskEvent: {},
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    assignments: {},
    autoGenerateColumns: {},
    autoGenerateSwimlanes: {},
    bbar: {},
    bodyCls: {},
    bodyItems: {},
    border: {},
    bubbleEvents: {},
    callOnFunctions: {},
    cardSizes: {},
    catchEventHandlerExceptions: {},
    centered: {},
    chainFilters: {},
    cls: {},
    collapsed: {},
    collapseTitle: {},
    collapsible: {},
    color: {},
    column: {},
    columnField: {},
    columns: {},
    columnTitleRenderer: { type: Function },
    config: {},
    constrainTo: {},
    css: {},
    cssVarPrefix: {},
    dataField: {},
    dataset: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    drawer: {},
    drawOnScroll: {},
    elementAttributes: {},
    extraData: {},
    flex: {},
    floating: {},
    footer: {},
    footerItems: {},
    getTaskHeight: { type: Function },
    header: {},
    headerItems: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    htmlEncodeHeaderText: {},
    icon: {},
    id: {},
    ignoreParentReadOnly: {},
    inputFieldAlign: {},
    insertBefore: {},
    insertFirst: {},
    isTaskSelectable: { type: Function },
    keyMap: {},
    labelPosition: {},
    labelWidth: {},
    listeners: {},
    loadMask: {},
    loadMaskDefaults: {},
    loadMaskError: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    minHeight: {},
    minWidth: {},
    newTaskDefaults: {},
    plugins: {},
    positioned: {},
    processItems: { type: Function },
    project: {},
    readOnly: {},
    record: {},
    relayStoreEvents: {},
    rendition: {},
    resourceImagePath: {},
    resources: {},
    responsive: {},
    responsiveRoot: {},
    responsiveState: {},
    responsiveTarget: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    scrollManager: {},
    scrollOptions: {},
    selectedTasks: {},
    selectOnNavigation: {},
    showAnimation: {},
    showCollapseInHeader: {},
    showCollapseTooltip: {},
    showCountInHeader: {},
    span: {},
    stateful: {},
    statefulEvents: {},
    stateId: {},
    stateProvider: {},
    stickyHeaders: {},
    stretchCards: {},
    strictRecordMapping: {},
    strips: {},
    swimlaneField: {},
    swimlaneRenderer: { type: Function },
    swimlanes: {},
    syncMask: {},
    tab: {},
    tabBarItems: {},
    taskRenderer: { type: Function },
    tasks: {},
    taskSorterFn: { type: Function },
    tasksPerRow: {},
    tbar: {},
    title: {},
    tools: {},
    ui: {},
    useDomTransition: {},
    virtualize: {},
    weight: {},
    width: {},
    x: {},
    y: {},
    aiFeature: {},
    columnDragFeature: {},
    columnFilterFeature: {},
    columnHeaderMenuFeature: {},
    columnLockFeature: {},
    columnRenameFeature: {},
    columnResizeFeature: {},
    columnSortFeature: {},
    columnToolbarsFeature: {},
    filterBarFeature: {},
    simpleTaskEditFeature: {},
    swimlaneDragFeature: {},
    taskDragFeature: {},
    taskDragSelectFeature: {},
    taskEditFeature: {},
    taskMenuFeature: {},
    taskTooltipFeature: {}
  },
  emits: ["activateTask", "beforeColumnDrag", "beforeColumnDrop", "beforeColumnResize", "beforeDestroy", "beforeHide", "beforeResponsiveStateChange", "beforeShow", "beforeSimpleTaskEdit", "beforeStateApply", "beforeStateSave", "beforeTaskDrag", "beforeTaskDrop", "beforeTaskEdit", "beforeTaskEditShow", "beforeTaskRemove", "catchAll", "cellMenuItem", "cellMenuShow", "cellMenuToggleItem", "collapse", "columnCollapse", "columnDrag", "columnDragAbort", "columnDragEnd", "columnDragStart", "columnDrop", "columnExpand", "columnFilterHide", "columnFilterShow", "columnFilterToggle", "columnHeaderClick", "columnHeaderContextMenu", "columnHeaderDblClick", "columnHeaderMenuBeforeShow", "columnResize", "columnResizeStart", "columnTitleClick", "columnTitleContextMenu", "columnTitleDblClick", "columnToggle", "destroy", "dirtyStateChange", "elementCreated", "expand", "focusIn", "focusOut", "hide", "paint", "readOnly", "recompose", "removeTaskElement", "renderTask", "renderTasks", "resize", "responsiveStateChange", "selectionChange", "show", "simpleTaskEditCancel", "simpleTaskEditComplete", "swimlaneCollapse", "swimlaneExpand", "swimlaneHeaderClick", "swimlaneHeaderContextMenu", "swimlaneHeaderDblClick", "swimlaneToggle", "taskClick", "taskDblClick", "taskDrag", "taskDragAbort", "taskDragEnd", "taskDragStart", "taskDrop", "taskMenuBeforeShow", "taskMenuItem", "taskMenuShow", "taskMenuToggleItem", "taskMouseEnter", "taskMouseLeave", "toolClick"],
  setup(B, { expose: d, emit: k }) {
    const p = k, s = {
      instanceClass: R,
      instanceName: "TaskBoardBase",
      isView: !0,
      dataStores: {
        assignmentStore: "assignments",
        dependencyStore: "dependencies",
        eventStore: "events",
        resourceStore: "resources",
        taskStore: "tasks"
      },
      projectStores: !0,
      featureNames: [
        "aiFeature",
        "columnDragFeature",
        "columnFilterFeature",
        "columnHeaderMenuFeature",
        "columnLockFeature",
        "columnRenameFeature",
        "columnResizeFeature",
        "columnSortFeature",
        "columnToolbarsFeature",
        "filterBarFeature",
        "simpleTaskEditFeature",
        "swimlaneDragFeature",
        "taskDragFeature",
        "taskDragSelectFeature",
        "taskEditFeature",
        "taskMenuFeature",
        "taskTooltipFeature"
      ],
      configNames: [
        "activateTaskEvent",
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoGenerateColumns",
        "autoGenerateSwimlanes",
        "bbar",
        "bodyCls",
        "border",
        "bubbleEvents",
        "cardSizes",
        "centered",
        "collapseTitle",
        "collapsible",
        "color",
        "columnTitleRenderer",
        "config",
        "constrainTo",
        "cssVarPrefix",
        "dataField",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "drawer",
        "elementAttributes",
        "floating",
        "footer",
        "header",
        "hideAnimation",
        "htmlEncodeHeaderText",
        "icon",
        "ignoreParentReadOnly",
        "listeners",
        "loadMask",
        "loadMaskDefaults",
        "loadMaskError",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "newTaskDefaults",
        "plugins",
        "positioned",
        "processItems",
        "record",
        "relayStoreEvents",
        "resourceImagePath",
        "responsive",
        "responsiveRoot",
        "responsiveState",
        "responsiveTarget",
        "role",
        "rootElement",
        "scrollable",
        "scrollAction",
        "scrollManager",
        "scrollOptions",
        "selectOnNavigation",
        "showAnimation",
        "showCollapseInHeader",
        "showCountInHeader",
        "stateful",
        "statefulEvents",
        "stateId",
        "stateProvider",
        "stickyHeaders",
        "strips",
        "swimlaneRenderer",
        "syncMask",
        "tab",
        "tabBarItems",
        "taskRenderer",
        "taskSorterFn",
        "tasksPerRow",
        "tbar",
        "ui",
        "useDomTransition",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "appendTo",
        "assignments",
        "bodyItems",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "chainFilters",
        "cls",
        "collapsed",
        "column",
        "columnField",
        "columns",
        "css",
        "dataset",
        "disabled",
        "drawOnScroll",
        "extraData",
        "flex",
        "footerItems",
        "getTaskHeight",
        "headerItems",
        "height",
        "hidden",
        "id",
        "inputFieldAlign",
        "insertBefore",
        "insertFirst",
        "isTaskSelectable",
        "keyMap",
        "labelPosition",
        "labelWidth",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "minHeight",
        "minWidth",
        "onActivateTask",
        "onBeforeColumnDrag",
        "onBeforeColumnDrop",
        "onBeforeColumnResize",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeResponsiveStateChange",
        "onBeforeShow",
        "onBeforeSimpleTaskEdit",
        "onBeforeStateApply",
        "onBeforeStateSave",
        "onBeforeTaskDrag",
        "onBeforeTaskDrop",
        "onBeforeTaskEdit",
        "onBeforeTaskEditShow",
        "onBeforeTaskRemove",
        "onCatchAll",
        "onCellMenuItem",
        "onCellMenuShow",
        "onCellMenuToggleItem",
        "onCollapse",
        "onColumnCollapse",
        "onColumnDrag",
        "onColumnDragAbort",
        "onColumnDragEnd",
        "onColumnDragStart",
        "onColumnDrop",
        "onColumnExpand",
        "onColumnFilterHide",
        "onColumnFilterShow",
        "onColumnFilterToggle",
        "onColumnHeaderClick",
        "onColumnHeaderContextMenu",
        "onColumnHeaderDblClick",
        "onColumnHeaderMenuBeforeShow",
        "onColumnResize",
        "onColumnResizeStart",
        "onColumnTitleClick",
        "onColumnTitleContextMenu",
        "onColumnTitleDblClick",
        "onColumnToggle",
        "onDestroy",
        "onDirtyStateChange",
        "onElementCreated",
        "onExpand",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onRemoveTaskElement",
        "onRenderTask",
        "onRenderTasks",
        "onResize",
        "onResponsiveStateChange",
        "onSelectionChange",
        "onShow",
        "onSimpleTaskEditCancel",
        "onSimpleTaskEditComplete",
        "onSwimlaneCollapse",
        "onSwimlaneExpand",
        "onSwimlaneHeaderClick",
        "onSwimlaneHeaderContextMenu",
        "onSwimlaneHeaderDblClick",
        "onSwimlaneToggle",
        "onTaskClick",
        "onTaskDblClick",
        "onTaskDrag",
        "onTaskDragAbort",
        "onTaskDragEnd",
        "onTaskDragStart",
        "onTaskDrop",
        "onTaskMenuBeforeShow",
        "onTaskMenuItem",
        "onTaskMenuShow",
        "onTaskMenuToggleItem",
        "onTaskMouseEnter",
        "onTaskMouseLeave",
        "onToolClick",
        "project",
        "readOnly",
        "rendition",
        "resources",
        "rtl",
        "selectedTasks",
        "showCollapseTooltip",
        "span",
        "stretchCards",
        "strictRecordMapping",
        "swimlaneField",
        "swimlanes",
        "tasks",
        "title",
        "tools",
        "virtualize",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent",
        "state"
      ],
      eventNames: [
        "activateTask",
        "beforeColumnDrag",
        "beforeColumnDrop",
        "beforeColumnResize",
        "beforeDestroy",
        "beforeHide",
        "beforeResponsiveStateChange",
        "beforeShow",
        "beforeSimpleTaskEdit",
        "beforeStateApply",
        "beforeStateSave",
        "beforeTaskDrag",
        "beforeTaskDrop",
        "beforeTaskEdit",
        "beforeTaskEditShow",
        "beforeTaskRemove",
        "catchAll",
        "cellMenuItem",
        "cellMenuShow",
        "cellMenuToggleItem",
        "collapse",
        "columnCollapse",
        "columnDrag",
        "columnDragAbort",
        "columnDragEnd",
        "columnDragStart",
        "columnDrop",
        "columnExpand",
        "columnFilterHide",
        "columnFilterShow",
        "columnFilterToggle",
        "columnHeaderClick",
        "columnHeaderContextMenu",
        "columnHeaderDblClick",
        "columnHeaderMenuBeforeShow",
        "columnResize",
        "columnResizeStart",
        "columnTitleClick",
        "columnTitleContextMenu",
        "columnTitleDblClick",
        "columnToggle",
        "destroy",
        "dirtyStateChange",
        "elementCreated",
        "expand",
        "focusIn",
        "focusOut",
        "hide",
        "paint",
        "readOnly",
        "recompose",
        "removeTaskElement",
        "renderTask",
        "renderTasks",
        "resize",
        "responsiveStateChange",
        "selectionChange",
        "show",
        "simpleTaskEditCancel",
        "simpleTaskEditComplete",
        "swimlaneCollapse",
        "swimlaneExpand",
        "swimlaneHeaderClick",
        "swimlaneHeaderContextMenu",
        "swimlaneHeaderDblClick",
        "swimlaneToggle",
        "taskClick",
        "taskDblClick",
        "taskDrag",
        "taskDragAbort",
        "taskDragEnd",
        "taskDragStart",
        "taskDrop",
        "taskMenuBeforeShow",
        "taskMenuItem",
        "taskMenuShow",
        "taskMenuToggleItem",
        "taskMouseEnter",
        "taskMouseLeave",
        "toolClick"
      ]
    }, a = {}, r = c(), l = c(/* @__PURE__ */ new Map());
    return T("teleports", l), f(() => {
      const t = b();
      a.value = o.createWidget({
        me: t,
        widgetData: s,
        emit: p,
        element: r.value,
        processCellContent: o.processCellContent,
        processEventContent: o.processEventContent,
        processWidgetContent: o.processWidgetContent,
        hasFrameworkRenderer: o.hasFrameworkRenderer,
        toRaw: h
      }), o.relayStores(t.data, a.value);
      const i = (e, g) => H(() => t.props[e], g);
      o.watchProps(a.value, s, i);
    }), S(() => {
      a.value?.destroy?.();
    }), d({
      instance: a,
      refElement: r,
      teleports: l
    }), (t, i) => (n(), u("div", {
      ref_key: "refElement",
      ref: r
    }, [
      w("div", x, [
        (n(!0), u(D, null, F(l.value.values(), (e) => (n(), m(v, {
          key: e.key,
          to: e.to
        }, [
          (n(), m(E(e.is), M({
            ref_for: !0,
            ref: e.key,
            "data-key": e.key,
            "data-generation": e.generation
          }, { ref_for: !0 }, e.bind, { "data-vue": "" }, y(e.on)), null, 16, ["data-key", "data-generation"]))
        ], 8, ["to"]))), 128))
      ], 512)
    ], 512));
  }
});
export {
  O as _
};
//# sourceMappingURL=BjvV5lZl.js.map
