import { defineComponent as h, ref as r, provide as f, onMounted as u, getCurrentInstance as y, toRaw as b, onBeforeUnmount as g, openBlock as C, createElementBlock as S, watch as E } from "vue";
import { Editor as w } from "@bryntum/taskboard";
import { WrapperHelper as l } from "../helper/WrapperHelper.js";
const O = /* @__PURE__ */ h({
  __name: "BryntumEditor",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    appendTo: {},
    appendToTargetParent: {},
    ariaDescription: {},
    ariaLabel: {},
    autoUpdateRecord: {},
    blurAction: {},
    border: {},
    bubbleEvents: {},
    callOnFunctions: {},
    cancelKey: {},
    catchEventHandlerExceptions: {},
    centered: {},
    cls: {},
    color: {},
    column: {},
    completeKey: {},
    completeOnChange: {},
    config: {},
    constrainTo: {},
    content: {},
    contentElementCls: {},
    dataField: {},
    dataset: {},
    defaultBindProperty: {},
    defaultFocus: { type: [Function, String] },
    defaults: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    elementAttributes: {},
    extraData: {},
    fitTargetContent: {},
    flex: {},
    floating: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    hideTarget: {},
    hideWhenEmpty: {},
    html: { type: [String, Function, Array] },
    htmlCls: {},
    id: {},
    ignoreParentReadOnly: {},
    inputField: {},
    inputFieldAlign: {},
    insertBefore: {},
    insertFirst: {},
    invalidAction: {},
    itemCls: {},
    items: {},
    keyMap: {},
    labelPosition: {},
    labelWidth: {},
    layout: {},
    layoutStyle: {},
    lazyItems: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    matchFont: {},
    matchSize: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    minHeight: {},
    minWidth: {},
    monitorResize: {},
    namedItems: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    record: {},
    relayStoreEvents: {},
    rendition: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    showAnimation: {},
    showTooltipWhenDisabled: {},
    span: {},
    strictRecordMapping: {},
    tab: {},
    tabBarItems: {},
    tag: {},
    textAlign: {},
    textContent: {},
    title: {},
    tooltip: {},
    type: {},
    ui: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["afterEdit", "beforeCancel", "beforeComplete", "beforeDestroy", "beforeHide", "beforeSetRecord", "beforeShow", "beforeStart", "cancel", "catchAll", "complete", "destroy", "dirtyStateChange", "elementCreated", "focusIn", "focusOut", "hide", "keyDown", "paint", "readOnly", "recompose", "resize", "show", "start"],
  setup(x, { expose: s, emit: c }) {
    const d = c, n = {
      instanceClass: w,
      instanceName: "Editor",
      configNames: [
        "adopt",
        "align",
        "anchor",
        "appendToTargetParent",
        "ariaDescription",
        "ariaLabel",
        "autoUpdateRecord",
        "blurAction",
        "border",
        "bubbleEvents",
        "cancelKey",
        "centered",
        "color",
        "completeKey",
        "completeOnChange",
        "config",
        "constrainTo",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "defaultFocus",
        "defaults",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "elementAttributes",
        "fitTargetContent",
        "floating",
        "hideAnimation",
        "hideTarget",
        "hideWhenEmpty",
        "htmlCls",
        "ignoreParentReadOnly",
        "invalidAction",
        "itemCls",
        "lazyItems",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "matchFont",
        "matchSize",
        "monitorResize",
        "namedItems",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showTooltipWhenDisabled",
        "tab",
        "tabBarItems",
        "tag",
        "textAlign",
        "textContent",
        "title",
        "type",
        "ui",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "appendTo",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "column",
        "content",
        "dataset",
        "disabled",
        "extraData",
        "flex",
        "height",
        "hidden",
        "html",
        "id",
        "inputField",
        "inputFieldAlign",
        "insertBefore",
        "insertFirst",
        "items",
        "keyMap",
        "labelPosition",
        "labelWidth",
        "layout",
        "layoutStyle",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "minHeight",
        "minWidth",
        "onAfterEdit",
        "onBeforeCancel",
        "onBeforeComplete",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeSetRecord",
        "onBeforeShow",
        "onBeforeStart",
        "onCancel",
        "onCatchAll",
        "onComplete",
        "onDestroy",
        "onDirtyStateChange",
        "onElementCreated",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onKeyDown",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onResize",
        "onShow",
        "onStart",
        "readOnly",
        "record",
        "rendition",
        "rtl",
        "scrollable",
        "span",
        "strictRecordMapping",
        "tooltip",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent",
        "values"
      ],
      eventNames: [
        "afterEdit",
        "beforeCancel",
        "beforeComplete",
        "beforeDestroy",
        "beforeHide",
        "beforeSetRecord",
        "beforeShow",
        "beforeStart",
        "cancel",
        "catchAll",
        "complete",
        "destroy",
        "dirtyStateChange",
        "elementCreated",
        "focusIn",
        "focusOut",
        "hide",
        "keyDown",
        "paint",
        "readOnly",
        "recompose",
        "resize",
        "show",
        "start"
      ]
    }, e = {}, t = r(), a = r(/* @__PURE__ */ new Map());
    return f("teleports", a), u(() => {
      const o = y();
      e.value = l.createWidget({
        me: o,
        widgetData: n,
        emit: d,
        element: t.value,
        toRaw: b
      });
      const i = (m, p) => E(() => o.props[m], p);
      l.watchProps(e.value, n, i);
    }), g(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: a
    }), (o, i) => (C(), S("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  O as _
};
//# sourceMappingURL=CW7NBYxY.js.map
