import { defineComponent as p, ref as i, provide as u, onMounted as b, getCurrentInstance as f, toRaw as y, onBeforeUnmount as C, openBlock as g, createElementBlock as k, watch as S } from "vue";
import { DatePicker as D } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const v = /* @__PURE__ */ p({
  __name: "BryntumDatePicker",
  props: {
    activeDate: {},
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    animateTimeShift: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    autoUpdateRecord: {},
    bbar: {},
    bodyCls: {},
    border: {},
    bubbleEvents: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    cellRenderer: { type: [Function, String] },
    centered: {},
    cls: {},
    collapsed: {},
    collapsible: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    content: {},
    contentElementCls: {},
    dataField: {},
    dataset: {},
    date: {},
    dayNameFormat: {},
    defaultBindProperty: {},
    defaultFocus: { type: [Function, String] },
    defaults: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    disabledCls: {},
    disabledDates: { type: [Function, String, Array] },
    disableNonWorkingDays: {},
    disableOtherMonthCells: {},
    disableWeekends: {},
    dock: {},
    draggable: {},
    dragSelect: {},
    drawer: {},
    editMonth: {},
    elementAttributes: {},
    extraData: {},
    flex: {},
    floating: {},
    focusDisabledDates: {},
    footer: {},
    header: {},
    headerRenderer: { type: [Function, String] },
    height: {},
    hidden: {},
    hideAnimation: {},
    hideOtherMonthCells: {},
    hideWhenEmpty: {},
    highlightSelectedWeek: {},
    html: { type: [String, Function, Array] },
    htmlCls: {},
    icon: {},
    id: {},
    ignoreParentReadOnly: {},
    includeYear: {},
    inputFieldAlign: {},
    insertBefore: {},
    insertFirst: {},
    itemCls: {},
    items: {},
    keyMap: {},
    labelPosition: {},
    labelWidth: {},
    layout: {},
    layoutStyle: {},
    lazyItems: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    maxDate: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    minColumnWidth: {},
    minDate: {},
    minHeight: {},
    minRowHeight: {},
    minWidth: {},
    monitorResize: {},
    month: {},
    monthButtonFormat: {},
    multiSelect: {},
    namedItems: {},
    nonWorkingDayCls: {},
    nonWorkingDays: {},
    otherMonthCls: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    record: {},
    relayStoreEvents: {},
    rendition: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    selection: {},
    shadePastDates: {},
    showAnimation: {},
    showTooltipWhenDisabled: {},
    showWeekColumn: {},
    sixWeeks: {},
    span: {},
    stateful: {},
    statefulEvents: {},
    stateId: {},
    stateProvider: {},
    strictRecordMapping: {},
    strips: {},
    tab: {},
    tabBarItems: {},
    tag: {},
    tbar: {},
    textAlign: {},
    textContent: {},
    tip: {},
    title: {},
    todayCls: {},
    tools: {},
    tooltip: {},
    trapFocus: {},
    type: {},
    ui: {},
    weekColumnHeader: {},
    weekendCls: {},
    weekRenderer: { type: [Function, String] },
    weekStartDay: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["beforeDestroy", "beforeHide", "beforeRefresh", "beforeSetRecord", "beforeShow", "beforeStateApply", "beforeStateSave", "catchAll", "cellClick", "collapse", "dateChange", "destroy", "dirtyStateChange", "elementCreated", "expand", "focusIn", "focusOut", "hide", "paint", "readOnly", "recompose", "refresh", "resize", "selectionChange", "show", "toolClick", "weekCellClick"],
  setup(w, { expose: s, emit: d }) {
    const c = d, n = {
      instanceClass: D,
      instanceName: "DatePicker",
      configNames: [
        "activeDate",
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoUpdateRecord",
        "bbar",
        "bodyCls",
        "border",
        "bubbleEvents",
        "cellRenderer",
        "centered",
        "collapsible",
        "color",
        "config",
        "constrainTo",
        "contentElementCls",
        "dataField",
        "dayNameFormat",
        "defaultBindProperty",
        "defaultFocus",
        "defaults",
        "detectCSSCompatibilityIssues",
        "disabledCls",
        "disabledDates",
        "disableNonWorkingDays",
        "disableOtherMonthCells",
        "disableWeekends",
        "dock",
        "draggable",
        "drawer",
        "editMonth",
        "elementAttributes",
        "floating",
        "focusDisabledDates",
        "footer",
        "header",
        "headerRenderer",
        "hideAnimation",
        "hideOtherMonthCells",
        "hideWhenEmpty",
        "htmlCls",
        "icon",
        "ignoreParentReadOnly",
        "includeYear",
        "itemCls",
        "lazyItems",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "maxDate",
        "minColumnWidth",
        "minDate",
        "minRowHeight",
        "monitorResize",
        "month",
        "monthButtonFormat",
        "multiSelect",
        "namedItems",
        "nonWorkingDayCls",
        "nonWorkingDays",
        "otherMonthCls",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showTooltipWhenDisabled",
        "sixWeeks",
        "stateful",
        "statefulEvents",
        "stateId",
        "stateProvider",
        "strips",
        "tab",
        "tabBarItems",
        "tag",
        "tbar",
        "textAlign",
        "textContent",
        "tip",
        "todayCls",
        "trapFocus",
        "type",
        "ui",
        "weekendCls",
        "weekRenderer",
        "weekStartDay",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "animateTimeShift",
        "appendTo",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "collapsed",
        "column",
        "content",
        "dataset",
        "date",
        "disabled",
        "dragSelect",
        "extraData",
        "flex",
        "height",
        "hidden",
        "highlightSelectedWeek",
        "html",
        "id",
        "inputFieldAlign",
        "insertBefore",
        "insertFirst",
        "items",
        "keyMap",
        "labelPosition",
        "labelWidth",
        "layout",
        "layoutStyle",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "minHeight",
        "minWidth",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeRefresh",
        "onBeforeSetRecord",
        "onBeforeShow",
        "onBeforeStateApply",
        "onBeforeStateSave",
        "onCatchAll",
        "onCellClick",
        "onCollapse",
        "onDateChange",
        "onDestroy",
        "onDirtyStateChange",
        "onElementCreated",
        "onExpand",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onRefresh",
        "onResize",
        "onSelectionChange",
        "onShow",
        "onToolClick",
        "onWeekCellClick",
        "readOnly",
        "record",
        "rendition",
        "rtl",
        "scrollable",
        "selection",
        "shadePastDates",
        "showWeekColumn",
        "span",
        "strictRecordMapping",
        "title",
        "tools",
        "tooltip",
        "weekColumnHeader",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent",
        "state",
        "values"
      ],
      eventNames: [
        "beforeDestroy",
        "beforeHide",
        "beforeRefresh",
        "beforeSetRecord",
        "beforeShow",
        "beforeStateApply",
        "beforeStateSave",
        "catchAll",
        "cellClick",
        "collapse",
        "dateChange",
        "destroy",
        "dirtyStateChange",
        "elementCreated",
        "expand",
        "focusIn",
        "focusOut",
        "hide",
        "paint",
        "readOnly",
        "recompose",
        "refresh",
        "resize",
        "selectionChange",
        "show",
        "toolClick",
        "weekCellClick"
      ]
    }, e = {}, t = i(), a = i(/* @__PURE__ */ new Map());
    return u("teleports", a), b(() => {
      const o = f();
      e.value = r.createWidget({
        me: o,
        widgetData: n,
        emit: c,
        element: t.value,
        toRaw: y
      });
      const l = (h, m) => S(() => o.props[h], m);
      r.watchProps(e.value, n, l);
    }), C(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: a
    }), (o, l) => (g(), k("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  v as _
};
//# sourceMappingURL=Ck3TxFAl.js.map
