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