@vtj/designer 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/{Editor-C1dy1R3N.js → Editor-ZiUDqfgK.js} +1 -1
  2. package/dist/css.worker-DcQjDQkA.js +109 -0
  3. package/dist/editor.worker-lG8NyUhA.js +25 -0
  4. package/dist/html.worker-B83UVBG6.js +25 -0
  5. package/dist/index.mjs +228 -226
  6. package/dist/json.worker-Deqi-XXW.js +25 -0
  7. package/dist/ts.worker-P1pVlN2Z.js +51359 -0
  8. package/package.json +8 -8
  9. package/types/components/editor/Editor.d.ts +1 -1
  10. package/types/components/editor/index.d.ts +1 -1
  11. package/types/components/regions/empty.d.ts +1 -1
  12. package/types/components/regions/index.d.ts +2 -2
  13. package/types/components/regions/toolbar.d.ts +1 -1
  14. package/types/components/setters/file.d.ts +1 -1
  15. package/types/components/setters/function.d.ts +1 -1
  16. package/types/components/setters/icon.d.ts +1 -1
  17. package/types/components/setters/index.d.ts +7 -7
  18. package/types/components/setters/json.d.ts +1 -1
  19. package/types/components/setters/section.d.ts +1 -1
  20. package/types/components/setters/slider.d.ts +1 -1
  21. package/types/components/setters/tag.d.ts +1 -1
  22. package/types/components/shared/binder.d.ts +2 -1
  23. package/types/components/shared/box.d.ts +3 -2
  24. package/types/components/shared/item.d.ts +2 -1
  25. package/types/components/shared/panel.d.ts +2 -1
  26. package/types/components/shared/tabs.d.ts +2 -1
  27. package/types/components/shared/viewer.d.ts +1 -1
  28. package/types/components/shared/viewport.d.ts +3 -2
  29. package/types/components/widgets/about/index.d.ts +1 -1
  30. package/types/components/widgets/actions/coder.d.ts +1 -1
  31. package/types/components/widgets/apis/base-info.d.ts +1 -1
  32. package/types/components/widgets/apis/jsonp-options.d.ts +1 -1
  33. package/types/components/widgets/apis/mock-template.d.ts +1 -1
  34. package/types/components/widgets/apis/request-settings.d.ts +1 -1
  35. package/types/components/widgets/designer/actions.d.ts +1 -1
  36. package/types/components/widgets/empty/index.d.ts +1 -1
  37. package/types/components/widgets/index.d.ts +3 -3
  38. package/types/components/widgets/previewer/index.d.ts +1 -1
  39. package/types/components/widgets/scripts/group.d.ts +3 -2
  40. package/types/components/widgets/style/spacing-input.d.ts +1 -1
  41. package/types/version.d.ts +3 -3
  42. package/dist/css.worker-BkwH8iYE.js +0 -25
  43. package/dist/editor.worker-C8k3yDdT.js +0 -25
  44. package/dist/html.worker-DefZQYbA.js +0 -25
  45. package/dist/json.worker-05I1Fjzo.js +0 -25
  46. package/dist/ts.worker-Dn3IQaLA.js +0 -25
package/dist/index.mjs CHANGED
@@ -1,30 +1,30 @@
1
1
  var pl = Object.defineProperty;
2
2
  var ml = (i, t, e) => t in i ? pl(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var F = (i, t, e) => ml(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { computed as C, unref as n, ref as x, reactive as qe, watchEffect as vl, watch as q, toValue as Tt, defineComponent as P, openBlock as c, createElementBlock as E, toDisplayString as L, createVNode as m, withCtx as y, createElementVNode as A, createBlock as w, createCommentVNode as D, createTextVNode as U, mergeProps as ue, h as Be, readonly as gl, getCurrentScope as fl, onScopeDispose as hl, onMounted as ht, nextTick as Ce, getCurrentInstance as fn, shallowRef as Ye, toRaw as hn, Fragment as z, renderList as W, normalizeClass as K, defineAsyncComponent as bl, resolveDynamicComponent as bn, createSlots as yl, withDirectives as Ee, vShow as Ne, renderSlot as Ve, withModifiers as We, isRef as $t, normalizeStyle as ut, inject as Wt, provide as _l, normalizeProps as yn, guardReactiveProps as _n, withKeys as Ke, onUnmounted as wn, markRaw as Rt, createApp as kn, shallowReactive as wl, triggerRef as Te, KeepAlive as Sn } from "vue";
5
- import { ElNotification as Nt, ElMessageBox as De, ElMessage as Pe, ElButton as te, ElDivider as bt, ElRadioGroup as xn, ElRadioButton as ct, ElButtonGroup as kl, ElImage as Cn, ElDropdown as Vn, ElDropdownMenu as An, ElDropdownItem as dt, ElInput as ye, ElEmpty as ie, ElAlert as jn, ElTooltip as En, ElTag as Dn, ElSwitch as Pn, ElTree as Mt, ElCollapse as yt, ElCollapseItem as _t, ElRow as mt, ElCol as vt, ElDrawer as In, ElForm as be, ElFormItem as Tn, ElBreadcrumb as Sl, ElBreadcrumbItem as xl, ElLoading as Cl, ElAvatar as $n, vLoading as Vl, ElSelect as Al, ElOption as jl, ElInputNumber as El, ElColorPicker as Dl, ElUpload as Pl, ElSlider as Il, ElConfigProvider as Tl, ElContainer as tn, ElHeader as $l, ElAside as nn, ElMain as Rl, ElFooter as Bl } from "element-plus";
4
+ import { computed as C, unref as n, ref as x, reactive as He, watchEffect as vl, watch as q, toValue as xe, defineComponent as P, openBlock as c, createElementBlock as E, toDisplayString as L, createVNode as m, withCtx as y, createElementVNode as A, createBlock as w, createCommentVNode as D, createTextVNode as U, mergeProps as ue, h as Oe, readonly as gl, getCurrentScope as fl, onScopeDispose as hl, onMounted as ht, nextTick as Ve, getCurrentInstance as fn, shallowRef as Ye, toRaw as hn, Fragment as z, renderList as W, normalizeClass as K, defineAsyncComponent as bl, resolveDynamicComponent as bn, createSlots as yl, withDirectives as De, vShow as Ne, renderSlot as Ae, withModifiers as Be, isRef as Tt, normalizeStyle as ut, inject as Wt, provide as _l, withKeys as Ue, normalizeProps as yn, guardReactiveProps as _n, onUnmounted as wn, markRaw as $t, createApp as kn, shallowReactive as wl, triggerRef as $e, KeepAlive as Sn } from "vue";
5
+ import { ElNotification as Nt, ElMessageBox as Pe, ElMessage as Ie, ElButton as te, ElDivider as bt, ElRadioGroup as xn, ElRadioButton as ct, ElButtonGroup as kl, ElImage as Cn, ElDropdown as Vn, ElDropdownMenu as An, ElDropdownItem as dt, ElInput as ye, ElEmpty as ie, ElAlert as jn, ElTooltip as En, ElTag as Dn, ElSwitch as Pn, ElTree as Mt, ElCollapse as yt, ElCollapseItem as _t, ElRow as mt, ElCol as vt, ElDrawer as In, ElForm as be, ElFormItem as Tn, ElBreadcrumb as Sl, ElBreadcrumbItem as xl, ElLoading as Cl, ElAvatar as $n, vLoading as Vl, ElSelect as Al, ElOption as jl, ElInputNumber as El, ElColorPicker as Dl, ElUpload as Pl, ElSlider as Il, ElConfigProvider as Tl, ElContainer as tn, ElHeader as $l, ElAside as nn, ElMain as Rl, ElFooter as Bl } from "element-plus";
6
6
  import Ol from "element-plus/es/locale/lang/zh-cn";
7
- import { XDialogForm as Ae, XField as $, createDialog as Rn, XIcon as Oe, XDialog as ze, XPanel as wt, XAction as ge, XTabs as Jt, XContainer as G, XForm as Ut, XAttachment as zl, XActionBar as Fl, XInputUnit as Bn, vResizable as ln } from "@vtj/ui";
8
- import { jsonp as Je, groupBy as kt, dataURLtoBlob as Ll, delay as qt, upperFirstCamelCase as On, toRawType as jt, cloneDeep as lt, logger as Ie, isPlainObject as Wl, fileToBase64 as Nl, merge as Ht, debounce as Ml, arrayToMap as Jl, toArray as Ul } from "@vtj/utils";
9
- import { isBlock as le, DirectiveModel as zn, createNodeFrom as ql, BUILT_IN_VUE as Hl, BUILT_IN_VUE_ROUTER as Gl, BUILT_IN_NAME as Bt, emitter as oe, EVENT_PROJECT_ACTIVED as Ot, EVENT_NODE_CHANGE as Ze, NodeModel as an, EVENT_BLOCK_CHANGE as zt, Base as Fn, BUILT_IN_LIBRARAY_MAP as Kl, ProjectModel as Xl, EVENT_PROJECT_CHANGE as Ql, EVENT_PROJECT_BLOCKS_CHANGE as Yl, EVENT_PROJECT_PAGES_CHANGE as Zl, EVENT_PROJECT_DEPS_CHANGE as ea, EVENT_PROJECT_PUBLISH as ta, EVENT_PROJECT_FILE_PUBLISH as na, EVENT_HISTORY_CHANGE as la, EVENT_HISTORY_LOAD as aa, EVENT_PROJECT_GEN_SOURCE as sa, BlockModel as sn, HistoryModel as oa } from "@vtj/core";
10
- import { parseExpression as et, parseFunction as ra, BUILT_IN_DIRECTIVES as ia, JSCodeToString as Ue, LIFE_CYCLES_LIST as ua, DATA_TYPES as ca, createMock as da, isJSExpression as tt, ContextMode as Ln, parseDeps as pa, createAssetsCss as ma, createAssetScripts as on, getRawComponent as rn, createSchemaApis as va, mockCleanup as ga, mockApis as fa, Provider as ha, isJSFunction as ba } from "@vtj/renderer";
11
- import { VtjIconBack as ya, VtjIconPc as _a, VtjIconPhone as wa, VtjIconPad as ka, VtjIconUndo as Sa, VtjIconRedo as xa, VtjIconTemplate as gt, VtjIconPreview as Ca, VtjIconRefresh as Wn, VtjIconSetting as Nn, Download as Ft, VtjIconPublish as Va, VtjIconProject as Aa, icons as Lt, ArrowDown as Mn, Search as at, CopyDocument as ja, Back as Ea, VtjIconPlus as Jn, EditPen as Da, Delete as Un, VtjIconSave as Pa, ArrowUp as Ia, MoreFilled as st, VtjIconCheck as qn, VtjIconCopy as Gt, VtjIconEdit as Hn, VtjIconRemove as St, VtjIconLock as Gn, VtjIconUnlock as Ta, VtjIconInvisible as Kn, VtjIconVisible as $a, VtjIconHome as Ra, VtjIconShare as Ba, VtjIconComponents as Xn, Files as Oa, VtjIconSearch as za, VtjIconHelp as Qn, VtjIconLayers as Yn, Rank as Fa, VtjIconArrowUp as La, VtjIconArrowDown as Wa, IconDisplayBlock as Na, IconDisplayFlex as Ma, IconDisplayInlineBlock as Ja, IconDisplayInline as Ua, IconEyeInvisible as qa, IconFlexDirectionrow as Ha, IconFlexDirectionrowReverse as Ga, IconFlexDirectioncolumn as Ka, IconFlexDirectioncolumnReverse as Xa, IconFlexJustifyflexStartrow as Qa, IconFlexJustifyflexEndrow as Ya, IconFlexJustifycenterrow as Za, IconFlexJustifyspaceBetweenrow as es, IconFlexJustifyspaceAroundrow as ts, IconFlexAlignflexStartrow as ns, IconFlexAlignflexEndrow as ls, IconFlexAligncenterrow as as, IconFlexAlignbaselinerow as ss, IconFlexAlignstretchrow as os, IconPositionTopLeft as rs, IconPositionTopRight as is, IconPositionBottomLeft as us, IconPositionBottomRight as cs, IconPositionLeft as ds, IconPositionRight as ps, IconPositionTop as ms, IconPositionBottom as vs, IconPositionAll as gs, IconTextAlignLeft as fs, IconTextAlignCenter as hs, IconTextAlignRight as bs, IconTextAlignJustify as ys, IconFontStyleNone as _s, IconFontStyleItalic as ws, IconCross as Zn, IconTextDecorationUnderline as ks, IconTextDecorationStrike as Ss, IconTextDecorationOverline as xs, IconTileXy as Cs, IconTileX as Vs, IconTileY as As, IconClose as js, IconBorderAll as Es, IconBorderLeft as Ds, IconBorderTop as Ps, IconBorderBottom as Is, IconBorderRight as Ts, IconBorderStyleSolid as $s, IconBorderStyleDashed as Rs, IconBorderStyleDotted as Bs, IconCursorAuto as Os, IconCursorPointer as zs, IconCursorNotAllowed as Fs, IconCursorNone as Ls, ArrowRight as Ws, UserFilled as el, VtjIconDocument as Ns, VtjIconBlock as Ms, VtjIconOutline as Js, VtjIconHistory as Us, VtjIconApi as qs, VtjIconCategory as Hs, HomeFilled as Gs, Plus as Ks, Close as Xs, VtjIconVars as Qs, VtjIconSwitch as Ys, Switch as Zs } from "@vtj/icons";
7
+ import { XDialogForm as je, XField as $, createDialog as Rn, XIcon as ze, XDialog as Fe, XPanel as wt, XAction as ge, XTabs as Jt, XContainer as G, XForm as Ut, XAttachment as zl, XActionBar as Fl, XInputUnit as Bn, vResizable as ln } from "@vtj/ui";
8
+ import { jsonp as Je, groupBy as kt, dataURLtoBlob as Ll, delay as qt, upperFirstCamelCase as On, toRawType as jt, cloneDeep as lt, logger as Te, isPlainObject as Wl, fileToBase64 as Nl, merge as Ht, debounce as Ml, arrayToMap as Jl, toArray as Ul } from "@vtj/utils";
9
+ import { isBlock as le, DirectiveModel as zn, createNodeFrom as ql, BUILT_IN_VUE as Hl, BUILT_IN_VUE_ROUTER as Gl, BUILT_IN_NAME as Rt, emitter as oe, EVENT_PROJECT_ACTIVED as Bt, EVENT_NODE_CHANGE as Ze, NodeModel as an, EVENT_BLOCK_CHANGE as Ot, Base as Fn, BUILT_IN_LIBRARAY_MAP as Kl, ProjectModel as Xl, EVENT_PROJECT_CHANGE as Ql, EVENT_PROJECT_BLOCKS_CHANGE as Yl, EVENT_PROJECT_PAGES_CHANGE as Zl, EVENT_PROJECT_DEPS_CHANGE as ea, EVENT_PROJECT_PUBLISH as ta, EVENT_PROJECT_FILE_PUBLISH as na, EVENT_HISTORY_CHANGE as la, EVENT_HISTORY_LOAD as aa, EVENT_PROJECT_GEN_SOURCE as sa, BlockModel as sn, HistoryModel as oa } from "@vtj/core";
10
+ import { parseExpression as et, parseFunction as ra, BUILT_IN_DIRECTIVES as ia, JSCodeToString as qe, LIFE_CYCLES_LIST as ua, DATA_TYPES as ca, createMock as da, isJSExpression as tt, ContextMode as Ln, parseDeps as pa, createAssetsCss as ma, createAssetScripts as on, getRawComponent as rn, createSchemaApis as va, mockCleanup as ga, mockApis as fa, Provider as ha, isJSFunction as ba } from "@vtj/renderer";
11
+ import { VtjIconBack as ya, VtjIconPc as _a, VtjIconPhone as wa, VtjIconPad as ka, VtjIconUndo as Sa, VtjIconRedo as xa, VtjIconTemplate as gt, VtjIconPreview as Ca, VtjIconRefresh as Wn, VtjIconSetting as Nn, Download as zt, VtjIconPublish as Va, VtjIconProject as Aa, icons as Ft, ArrowDown as Mn, Search as at, CopyDocument as ja, Back as Ea, VtjIconPlus as Jn, EditPen as Da, Delete as Un, VtjIconSave as Pa, ArrowUp as Ia, MoreFilled as st, VtjIconCheck as qn, VtjIconCopy as Gt, VtjIconEdit as Hn, VtjIconRemove as St, VtjIconLock as Gn, VtjIconUnlock as Ta, VtjIconInvisible as Kn, VtjIconVisible as $a, VtjIconHome as Ra, VtjIconShare as Ba, VtjIconComponents as Xn, Files as Oa, VtjIconSearch as za, VtjIconHelp as Qn, VtjIconLayers as Yn, Rank as Fa, VtjIconArrowUp as La, VtjIconArrowDown as Wa, IconDisplayBlock as Na, IconDisplayFlex as Ma, IconDisplayInlineBlock as Ja, IconDisplayInline as Ua, IconEyeInvisible as qa, IconFlexDirectionrow as Ha, IconFlexDirectionrowReverse as Ga, IconFlexDirectioncolumn as Ka, IconFlexDirectioncolumnReverse as Xa, IconFlexJustifyflexStartrow as Qa, IconFlexJustifyflexEndrow as Ya, IconFlexJustifycenterrow as Za, IconFlexJustifyspaceBetweenrow as es, IconFlexJustifyspaceAroundrow as ts, IconFlexAlignflexStartrow as ns, IconFlexAlignflexEndrow as ls, IconFlexAligncenterrow as as, IconFlexAlignbaselinerow as ss, IconFlexAlignstretchrow as os, IconPositionTopLeft as rs, IconPositionTopRight as is, IconPositionBottomLeft as us, IconPositionBottomRight as cs, IconPositionLeft as ds, IconPositionRight as ps, IconPositionTop as ms, IconPositionBottom as vs, IconPositionAll as gs, IconTextAlignLeft as fs, IconTextAlignCenter as hs, IconTextAlignRight as bs, IconTextAlignJustify as ys, IconFontStyleNone as _s, IconFontStyleItalic as ws, IconCross as Zn, IconTextDecorationUnderline as ks, IconTextDecorationStrike as Ss, IconTextDecorationOverline as xs, IconTileXy as Cs, IconTileX as Vs, IconTileY as As, IconClose as js, IconBorderAll as Es, IconBorderLeft as Ds, IconBorderTop as Ps, IconBorderBottom as Is, IconBorderRight as Ts, IconBorderStyleSolid as $s, IconBorderStyleDashed as Rs, IconBorderStyleDotted as Bs, IconCursorAuto as Os, IconCursorPointer as zs, IconCursorNotAllowed as Fs, IconCursorNone as Ls, ArrowRight as Ws, UserFilled as el, VtjIconDocument as Ns, VtjIconBlock as Ms, VtjIconOutline as Js, VtjIconHistory as Us, VtjIconApi as qs, VtjIconCategory as Hs, HomeFilled as Gs, Plus as Ks, Close as Xs, VtjIconVars as Qs, VtjIconSwitch as Ys, Switch as Zs } from "@vtj/icons";
12
12
  import eo from "html2canvas";
13
13
  import to from "mockjs";
14
14
  /**!
15
- * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
16
16
  * @name @vtj/designer
17
17
  * @author CHC chenhuachun1549@dingtalk.com
18
- * @version 0.9.3
18
+ * @version 0.9.4
19
19
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
20
20
  */
21
- const no = "0.9.3", un = {
21
+ const no = "0.9.4", un = {
22
22
  width: 390,
23
23
  height: 844
24
24
  }, cn = {
25
25
  width: 1024,
26
26
  height: 768
27
- }, je = /^[A-Za-z_$][\:\w_-]*$/, lo = /(\d+)\.(\d+)\.(\d+)/, ao = [
27
+ }, Ee = /^[A-Za-z_$][\:\w_-]*$/, lo = /(\d+)\.(\d+)\.(\d+)/, ao = [
28
28
  "click",
29
29
  "dblclick",
30
30
  "mouseenter",
@@ -58,7 +58,7 @@ function tl() {
58
58
  meta: l
59
59
  };
60
60
  }
61
- function Fe(i, t) {
61
+ function Le(i, t) {
62
62
  const e = C(() => cl.getWidgets(n(i), n(t)).filter((a) => !a.invisible)), l = x();
63
63
  return {
64
64
  widgets: e,
@@ -84,7 +84,7 @@ function po() {
84
84
  }
85
85
  const mo = (i = []) => i.map((t) => t.name);
86
86
  function vo() {
87
- const i = ce(), { components: t, groups: e, componentMap: l } = i.assets, a = qe({}), o = C(() => {
87
+ const i = ce(), { components: t, groups: e, componentMap: l } = i.assets, a = He({}), o = C(() => {
88
88
  const v = {};
89
89
  return e.value && e.value.forEach((p) => {
90
90
  v[p.name] = p;
@@ -194,7 +194,7 @@ function Et(i, t) {
194
194
  position: fo(t.rect, i !== "selected")
195
195
  };
196
196
  }
197
- function xe() {
197
+ function Ce() {
198
198
  const i = ce(), t = C(
199
199
  () => i.simulator.designer.value
200
200
  ), e = C(() => t.value?.selected.value), l = C(() => le(e.value?.model));
@@ -206,8 +206,8 @@ function xe() {
206
206
  };
207
207
  }
208
208
  function bo(i, t) {
209
- const e = x(""), { selected: l, isSelectBlock: a } = xe(), o = C(() => l.value?.model.id), s = C(() => {
210
- const u = Tt(i), f = Tt(t), g = [];
209
+ const e = x(""), { selected: l, isSelectBlock: a } = Ce(), o = C(() => l.value?.model.id), s = C(() => {
210
+ const u = xe(i), f = xe(t), g = [];
211
211
  if (!u) return g;
212
212
  const v = f?.__contextRefs[o.value || ""], _ = f === v || a.value ? [] : Object.keys(v?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
213
213
  _.length && g.push({ title: "上下文", items: _ });
@@ -334,12 +334,12 @@ function re(i, t = "提示") {
334
334
  });
335
335
  }
336
336
  async function Me(i) {
337
- return await De.confirm(i, "提示", { type: "warning" }).catch(
337
+ return await Pe.confirm(i, "提示", { type: "warning" }).catch(
338
338
  () => !1
339
339
  );
340
340
  }
341
341
  function de(i, t = "success") {
342
- return Pe({
342
+ return Ie({
343
343
  message: i,
344
344
  type: t
345
345
  });
@@ -396,7 +396,7 @@ function nl() {
396
396
  backwardDisabled: u
397
397
  };
398
398
  }
399
- function He() {
399
+ function Ge() {
400
400
  const i = ce(), t = C(() => i.project.value);
401
401
  return {
402
402
  engine: i,
@@ -529,7 +529,7 @@ function Co(i) {
529
529
  };
530
530
  }
531
531
  function Vo() {
532
- const { engine: i, project: t } = He(), e = C(() => t.value?.apis || []), l = C(() => t.value?.meta || []);
532
+ const { engine: i, project: t } = Ge(), e = C(() => t.value?.apis || []), l = C(() => t.value?.meta || []);
533
533
  return {
534
534
  engine: i,
535
535
  project: t,
@@ -602,20 +602,20 @@ function Ao() {
602
602
  const _ = i.current.value, d = i.project.value;
603
603
  if (!d) return;
604
604
  if (!_) {
605
- Pe.warning({
605
+ Ie.warning({
606
606
  message: "设计区无文件,请先打开页面或区块"
607
607
  });
608
608
  return;
609
609
  }
610
610
  const h = await o(p);
611
611
  if (!h)
612
- return await De.alert("模板不可用,可能该模板没发布过版本", {
612
+ return await Pe.alert("模板不可用,可能该模板没发布过版本", {
613
613
  type: "error",
614
614
  title: "提示"
615
615
  });
616
616
  const b = _.toDsl(), { id: S, name: k } = b, V = { ...h, id: S, name: k }, j = d.currentFile;
617
617
  i.onSaveBlockFileFinish(() => {
618
- _.update(V), Pe.success({
618
+ _.update(V), Ie.success({
619
619
  message: "模板已加载完成"
620
620
  });
621
621
  }), j && (j.market = {
@@ -793,7 +793,7 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
793
793
  dsl: {}
794
794
  },
795
795
  setup(i) {
796
- const t = i, { getTemplateCategories: e, publishTemplate: l, getTemplateById: a, engine: o } = xt(), s = qe({
796
+ const t = i, { getTemplateCategories: e, publishTemplate: l, getTemplateById: a, engine: o } = xt(), s = He({
797
797
  name: t.name,
798
798
  label: t.label,
799
799
  share: !1
@@ -806,13 +806,13 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
806
806
  });
807
807
  const u = C(() => t.canvas ? t.canvas.toDataURL("image/png") : null), f = async () => {
808
808
  if (!u.value)
809
- return await De.alert("截图失败,无法完成发布", {
809
+ return await Pe.alert("截图失败,无法完成发布", {
810
810
  title: "提示",
811
811
  type: "error"
812
812
  }), !1;
813
813
  const g = Ll(u.value), { dsl: v, id: p } = t;
814
814
  let _;
815
- r.value && (_ = await De.confirm(
815
+ r.value && (_ = await Pe.confirm(
816
816
  "该模板已存在,请确认您的操作是更新模板还是新建",
817
817
  {
818
818
  type: "warning",
@@ -829,14 +829,14 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
829
829
  category: "",
830
830
  version: "",
831
831
  ...s
832
- }, h = await l(d).catch((b) => (Pe.error({
832
+ }, h = await l(d).catch((b) => (Ie.error({
833
833
  message: b.message || b || "未知错误"
834
834
  }), !1));
835
- return h && (Pe.success({
835
+ return h && (Ie.success({
836
836
  message: "发布模板成功!"
837
837
  }), o.skeleton?.getWidget("Templates")?.widgetRef.refreshTemplates()), !!h;
838
838
  };
839
- return (g, v) => (c(), w(n(Ae), {
839
+ return (g, v) => (c(), w(n(je), {
840
840
  width: "600px",
841
841
  height: "760px",
842
842
  icon: n(gt),
@@ -861,7 +861,7 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
861
861
  name: "name",
862
862
  required: "",
863
863
  rules: {
864
- pattern: n(je),
864
+ pattern: n(Ee),
865
865
  message: "名称格式不正确,要求英文字母大写驼峰格式"
866
866
  }
867
867
  }, null, 8, ["rules"]),
@@ -932,7 +932,7 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
932
932
  coder: { type: Boolean, default: !1 }
933
933
  },
934
934
  setup(i) {
935
- const t = i, { engine: e, designer: l } = xe(), { isLogined: a, toRemoteAuth: o } = xt(), s = x(!1), r = x(!1), u = x(), f = () => {
935
+ const t = i, { engine: e, designer: l } = Ce(), { isLogined: a, toRemoteAuth: o } = xt(), s = x(!1), r = x(!1), u = x(), f = () => {
936
936
  e.current.value ? (s.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (l.value?.setSelected(null), e.simulator.refresh()), de("刷新完成", "success")) : de("请先打开文件", "warning");
937
937
  }, g = async () => {
938
938
  e.current.value ? (s.value && (e.skeleton?.closePreview(), s.value = !1, await qt(1e3)), l.value?.setSelected(e.current.value)) : de("请先打开文件", "warning");
@@ -967,7 +967,7 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
967
967
  dsl: e.current.value?.toDsl()
968
968
  }, r.value = !0;
969
969
  } else
970
- await De.confirm(
970
+ await Pe.confirm(
971
971
  "发布到模板需登录系统,您还没登录或登录已过期,请重新登录!",
972
972
  "提示",
973
973
  {
@@ -998,8 +998,8 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
998
998
  width: "600px",
999
999
  height: "200px",
1000
1000
  title: "出码",
1001
- icon: Ft,
1002
- content: Be(Jo, { link: S })
1001
+ icon: zt,
1002
+ content: Oe(Jo, { link: S })
1003
1003
  });
1004
1004
  };
1005
1005
  return (b, S) => (c(), E("div", Uo, [
@@ -1042,7 +1042,7 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1042
1042
  t.coder ? (c(), w(n(te), {
1043
1043
  key: 2,
1044
1044
  onClick: h,
1045
- icon: n(Ft),
1045
+ icon: n(zt),
1046
1046
  size: "small",
1047
1047
  type: "success"
1048
1048
  }, {
@@ -1121,9 +1121,6 @@ const jo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1121
1121
  function Qt(i) {
1122
1122
  return fl() ? (hl(i), !0) : !1;
1123
1123
  }
1124
- function Re(i) {
1125
- return typeof i == "function" ? i() : n(i);
1126
- }
1127
1124
  const Ct = typeof window < "u" && typeof document < "u";
1128
1125
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1129
1126
  const Ho = Object.prototype.toString, Go = (i) => Ho.call(i) === "[object Object]", pt = () => {
@@ -1145,8 +1142,11 @@ function Qo(i) {
1145
1142
  function Yo(i) {
1146
1143
  return fn();
1147
1144
  }
1145
+ function Lt(i) {
1146
+ return Array.isArray(i) ? i : [i];
1147
+ }
1148
1148
  function Zo(i, t = !0, e) {
1149
- Yo() ? ht(i, e) : t ? i() : Ce(i);
1149
+ Yo() ? ht(i, e) : t ? i() : Ve(i);
1150
1150
  }
1151
1151
  function er(i, t, e = {}) {
1152
1152
  const {
@@ -1162,7 +1162,7 @@ function er(i, t, e = {}) {
1162
1162
  function u(...f) {
1163
1163
  s(), a.value = !0, o = setTimeout(() => {
1164
1164
  a.value = !1, o = null, i(...f);
1165
- }, Re(t));
1165
+ }, xe(t));
1166
1166
  }
1167
1167
  return l && (a.value = !0, Ct && u()), Qt(r), {
1168
1168
  isPending: gl(a),
@@ -1173,18 +1173,18 @@ function er(i, t, e = {}) {
1173
1173
  const Vt = Ct ? window : void 0, ll = Ct ? window.navigator : void 0;
1174
1174
  function Se(i) {
1175
1175
  var t;
1176
- const e = Re(i);
1176
+ const e = xe(i);
1177
1177
  return (t = e?.$el) != null ? t : e;
1178
1178
  }
1179
1179
  function Qe(...i) {
1180
1180
  let t, e, l, a;
1181
1181
  if (typeof i[0] == "string" || Array.isArray(i[0]) ? ([e, l, a] = i, t = Vt) : [t, e, l, a] = i, !t)
1182
1182
  return pt;
1183
- Array.isArray(e) || (e = [e]), Array.isArray(l) || (l = [l]);
1183
+ e = Lt(e), l = Lt(l);
1184
1184
  const o = [], s = () => {
1185
1185
  o.forEach((g) => g()), o.length = 0;
1186
1186
  }, r = (g, v, p, _) => (g.addEventListener(v, p, _), () => g.removeEventListener(v, p, _)), u = q(
1187
- () => [Se(t), Re(a)],
1187
+ () => [Se(t), xe(a)],
1188
1188
  ([g, v]) => {
1189
1189
  if (s(), !g)
1190
1190
  return;
@@ -1206,7 +1206,7 @@ function tr(i, t, e = {}) {
1206
1206
  return pt;
1207
1207
  Ko && !pn && (pn = !0, Array.from(l.document.body.children).forEach((h) => h.addEventListener("click", pt)), l.document.documentElement.addEventListener("click", pt));
1208
1208
  let r = !0;
1209
- const u = (h) => Re(a).some((b) => {
1209
+ const u = (h) => xe(a).some((b) => {
1210
1210
  if (typeof b == "string")
1211
1211
  return Array.from(l.document.querySelectorAll(b)).some((S) => S === h.target || h.composedPath().includes(S));
1212
1212
  {
@@ -1215,11 +1215,11 @@ function tr(i, t, e = {}) {
1215
1215
  }
1216
1216
  });
1217
1217
  function f(h) {
1218
- const b = Re(h);
1218
+ const b = xe(h);
1219
1219
  return b && b.$.subTree.shapeFlag === 16;
1220
1220
  }
1221
1221
  function g(h, b) {
1222
- const S = Re(h), k = S.$.subTree && S.$.subTree.children;
1222
+ const S = xe(h), k = S.$.subTree && S.$.subTree.children;
1223
1223
  return k == null || !Array.isArray(k) ? !1 : k.some((V) => V.el === b.target || b.composedPath().includes(V.el));
1224
1224
  }
1225
1225
  const v = (h) => {
@@ -1299,14 +1299,14 @@ function al(i = {}) {
1299
1299
  source: l,
1300
1300
  copiedDuring: a = 1500,
1301
1301
  legacy: o = !1
1302
- } = i, s = Yt(() => t && "clipboard" in t), r = mn("clipboard-read"), u = mn("clipboard-write"), f = C(() => s.value || o), g = x(""), v = x(!1), p = er(() => v.value = !1, a);
1302
+ } = i, s = Yt(() => t && "clipboard" in t), r = mn("clipboard-read"), u = mn("clipboard-write"), f = C(() => s.value || o), g = x(""), v = x(!1), p = er(() => v.value = !1, a, { immediate: !1 });
1303
1303
  function _() {
1304
1304
  s.value && S(r.value) ? t.clipboard.readText().then((k) => {
1305
1305
  g.value = k;
1306
1306
  }) : g.value = b();
1307
1307
  }
1308
1308
  f.value && e && Qe(["copy", "cut"], _);
1309
- async function d(k = Re(l)) {
1309
+ async function d(k = xe(l)) {
1310
1310
  f.value && k != null && (s.value && S(u.value) ? await t.clipboard.writeText(k) : h(k), g.value = k, v.value = !0, p.start());
1311
1311
  }
1312
1312
  function h(k) {
@@ -1333,7 +1333,7 @@ function lr(i, t, e = {}) {
1333
1333
  const s = Yt(() => l && "ResizeObserver" in l), r = () => {
1334
1334
  o && (o.disconnect(), o = void 0);
1335
1335
  }, u = C(() => {
1336
- const v = Re(i);
1336
+ const v = xe(i);
1337
1337
  return Array.isArray(v) ? v.map((p) => Se(p)) : [Se(v)];
1338
1338
  }), f = q(
1339
1339
  u,
@@ -1368,7 +1368,7 @@ function nt(i, t = { width: 0, height: 0 }, e = {}) {
1368
1368
  s.value = d.width, r.value = d.height;
1369
1369
  }
1370
1370
  } else if (p) {
1371
- const _ = Array.isArray(p) ? p : [p];
1371
+ const _ = Lt(p);
1372
1372
  s.value = _.reduce((d, { inlineSize: h }) => d + h, 0), r.value = _.reduce((d, { blockSize: h }) => d + h, 0);
1373
1373
  } else
1374
1374
  s.value = v.contentRect.width, r.value = v.contentRect.height;
@@ -1404,9 +1404,9 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1404
1404
  emits: ["change", "update:modelValue"],
1405
1405
  setup(i, { emit: t }) {
1406
1406
  const e = i, l = t, a = x(!1), o = x(e.modelValue), s = x(""), r = C(
1407
- () => Lt[e.modelValue] || e.modelValue
1407
+ () => Ft[e.modelValue] || e.modelValue
1408
1408
  ), u = C(() => {
1409
- const _ = Object.entries(Lt);
1409
+ const _ = Object.entries(Ft);
1410
1410
  return s.value ? _.filter((d) => d[0].toLowerCase().includes(s.value)) : _;
1411
1411
  }), f = (_) => {
1412
1412
  o.value = _;
@@ -1427,11 +1427,11 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1427
1427
  onFocus: p
1428
1428
  }, {
1429
1429
  prepend: y(() => [
1430
- m(n(Oe), { icon: r.value }, null, 8, ["icon"])
1430
+ m(n(ze), { icon: r.value }, null, 8, ["icon"])
1431
1431
  ]),
1432
1432
  _: 1
1433
1433
  }, 8, ["size", "model-value", "suffix-icon"]),
1434
- a.value ? (c(), w(n(ze), {
1434
+ a.value ? (c(), w(n(Fe), {
1435
1435
  key: 0,
1436
1436
  title: "图标选择器",
1437
1437
  width: "1000px",
@@ -1466,7 +1466,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1466
1466
  placeholder: "请输入查询关键字"
1467
1467
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
1468
1468
  A("div", or, [
1469
- (c(!0), E(z, null, W(u.value, (h) => (c(), w(n(Oe), {
1469
+ (c(!0), E(z, null, W(u.value, (h) => (c(), w(n(ze), {
1470
1470
  icon: h[1],
1471
1471
  onClick: (b) => f(h[0]),
1472
1472
  class: K({ "is-active": o.value === h[0] })
@@ -1480,15 +1480,15 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1480
1480
  ]));
1481
1481
  }
1482
1482
  }), ae = bl({
1483
- loader: () => import("./Editor-C1dy1R3N.js"),
1483
+ loader: () => import("./Editor-ZiUDqfgK.js"),
1484
1484
  loadingComponent: P({
1485
1485
  render() {
1486
- return Be("div", "正在拼命加载...");
1486
+ return Oe("div", "正在拼命加载...");
1487
1487
  }
1488
1488
  }),
1489
1489
  errorComponent: P({
1490
1490
  render() {
1491
- return Be("div", "组件加载失败!");
1491
+ return Oe("div", "组件加载失败!");
1492
1492
  }
1493
1493
  })
1494
1494
  }), rr = /* @__PURE__ */ P({
@@ -1499,7 +1499,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1499
1499
  parentId: {}
1500
1500
  },
1501
1501
  setup(i) {
1502
- const t = i, { project: e, engine: l } = He(), { designer: a } = xe(), o = C(() => t.item ? "编辑页面" : "新增页面"), s = () => ({
1502
+ const t = i, { project: e, engine: l } = Ge(), { designer: a } = Ce(), o = C(() => t.item ? "编辑页面" : "新增页面"), s = () => ({
1503
1503
  dir: !1,
1504
1504
  name: "",
1505
1505
  title: "",
@@ -1527,11 +1527,11 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1527
1527
  ], g = (d) => {
1528
1528
  r.value && (r.value.name = On(d));
1529
1529
  }, v = async (d) => e.value?.existPageName(d.name, [d.id]) ? (re("页面名称已存在,请更换"), !1) : (t.item ? (e.value?.updatePage(d), a.value?.setSelected(null), l.simulator.refresh()) : e.value?.createPage(d, t.parentId), !0), { copy: p } = al({}), _ = (d) => {
1530
- p(d), Pe.success({
1530
+ p(d), Ie.success({
1531
1531
  message: "已经复制到粘贴板"
1532
1532
  });
1533
1533
  };
1534
- return (d, h) => (c(), w(n(Ae), {
1534
+ return (d, h) => (c(), w(n(je), {
1535
1535
  title: o.value,
1536
1536
  width: "800px",
1537
1537
  height: "700px",
@@ -1558,7 +1558,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1558
1558
  m(n(jn), { closable: !1 }, {
1559
1559
  default: y(() => [
1560
1560
  U(L(`${n(l).options.pageBasePath || ""}/page/${r.value.id}`) + " ", 1),
1561
- m(n(Oe), {
1561
+ m(n(ze), {
1562
1562
  icon: n(ja),
1563
1563
  onClick: h[0] || (h[0] = (b) => _(
1564
1564
  `${n(l).options.pageBasePath || ""}/page/${r.value.id}`
@@ -1575,7 +1575,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1575
1575
  label: "名称",
1576
1576
  required: "",
1577
1577
  onChange: g,
1578
- rules: { pattern: n(je), message: "名称格式不正确" }
1578
+ rules: { pattern: n(Ee), message: "名称格式不正确" }
1579
1579
  }, null, 8, ["rules"]),
1580
1580
  m(n($), {
1581
1581
  name: "title",
@@ -1799,7 +1799,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1799
1799
  title: "保存",
1800
1800
  onClick: v
1801
1801
  }, null, 8, ["size", "icon"])) : D("", !0),
1802
- e.collapsable ? Ee((c(), w(n(ge), {
1802
+ e.collapsable ? De((c(), w(n(ge), {
1803
1803
  key: 5,
1804
1804
  size: h.$attrs.size,
1805
1805
  mode: "icon",
@@ -1810,7 +1810,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1810
1810
  }, null, 8, ["size", "icon"])), [
1811
1811
  [Ne, a.value]
1812
1812
  ]) : D("", !0),
1813
- e.collapsable ? Ee((c(), w(n(ge), {
1813
+ e.collapsable ? De((c(), w(n(ge), {
1814
1814
  key: 6,
1815
1815
  size: h.$attrs.size,
1816
1816
  mode: "icon",
@@ -1821,17 +1821,17 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1821
1821
  }, null, 8, ["size", "icon"])), [
1822
1822
  [Ne, !a.value]
1823
1823
  ]) : D("", !0),
1824
- Ve(h.$slots, "actions")
1824
+ Ae(h.$slots, "actions")
1825
1825
  ]),
1826
1826
  default: y(() => [
1827
- Ve(h.$slots, "default")
1827
+ Ae(h.$slots, "default")
1828
1828
  ]),
1829
1829
  _: 2
1830
1830
  }, [
1831
1831
  h.$slots.footer ? {
1832
1832
  name: "footer",
1833
1833
  fn: y(() => [
1834
- Ve(h.$slots, "footer")
1834
+ Ae(h.$slots, "footer")
1835
1835
  ]),
1836
1836
  key: "0"
1837
1837
  } : void 0
@@ -1924,7 +1924,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
1924
1924
  ])
1925
1925
  ]),
1926
1926
  default: y(() => [
1927
- Ve(u.$slots, "default")
1927
+ Ae(u.$slots, "default")
1928
1928
  ]),
1929
1929
  _: 3
1930
1930
  }));
@@ -2026,7 +2026,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2026
2026
  })), f = () => {
2027
2027
  a("click", l.modelValue);
2028
2028
  }, g = async (p) => {
2029
- p === "remove" ? await De.confirm("确定删除吗?", "提示", {
2029
+ p === "remove" ? await Pe.confirm("确定删除吗?", "提示", {
2030
2030
  type: "warning"
2031
2031
  }).catch(() => !1) && a("action", {
2032
2032
  name: p,
@@ -2057,8 +2057,8 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2057
2057
  align: "center"
2058
2058
  }, {
2059
2059
  default: y(() => [
2060
- Ve(p.$slots, "default", {}, () => [
2061
- p.icon ? (c(), w(n(Oe), {
2060
+ Ae(p.$slots, "default", {}, () => [
2061
+ p.icon ? (c(), w(n(ze), {
2062
2062
  key: 0,
2063
2063
  icon: p.icon
2064
2064
  }, null, 8, ["icon"])) : D("", !0),
@@ -2088,13 +2088,13 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2088
2088
  }),
2089
2089
  m(n(G), {
2090
2090
  class: "v-item__wrapper",
2091
- onClick: _[2] || (_[2] = We(() => {
2091
+ onClick: _[2] || (_[2] = Be(() => {
2092
2092
  }, ["stop"]))
2093
2093
  }, {
2094
2094
  default: y(() => [
2095
2095
  m(n(G), {
2096
2096
  class: "v-item__actions",
2097
- onClick: _[1] || (_[1] = We(() => {
2097
+ onClick: _[1] || (_[1] = Be(() => {
2098
2098
  }, ["stop"]))
2099
2099
  }, {
2100
2100
  default: y(() => [
@@ -2115,7 +2115,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2115
2115
  class: "v-item__switch",
2116
2116
  size: "small"
2117
2117
  }, null, 8, ["modelValue"])) : D("", !0),
2118
- Ve(p.$slots, "status")
2118
+ Ae(p.$slots, "status")
2119
2119
  ]),
2120
2120
  _: 3
2121
2121
  }),
@@ -2172,7 +2172,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2172
2172
  }, s = () => {
2173
2173
  l("copy");
2174
2174
  }, r = async () => {
2175
- await De.confirm("确认删除?", "提示", {
2175
+ await Pe.confirm("确认删除?", "提示", {
2176
2176
  type: "warning"
2177
2177
  }).catch(() => !1) && l("remove");
2178
2178
  }, u = (p) => {
@@ -2197,7 +2197,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2197
2197
  align: "center"
2198
2198
  }, {
2199
2199
  default: y(() => [
2200
- Ve(p.$slots, "default", {}, () => [
2200
+ Ae(p.$slots, "default", {}, () => [
2201
2201
  A("span", vr, L(e.name), 1),
2202
2202
  A("span", gr, L(e.title), 1)
2203
2203
  ])
@@ -2339,11 +2339,11 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2339
2339
  }, h = (S) => {
2340
2340
  l("pick", S);
2341
2341
  }, b = (S) => {
2342
- s(S), Pe.success({
2342
+ s(S), Ie.success({
2343
2343
  message: "已经复制到粘贴板"
2344
2344
  });
2345
2345
  };
2346
- return (S, k) => (c(), w(n(ze), {
2346
+ return (S, k) => (c(), w(n(Fe), {
2347
2347
  "model-value": e.modelValue,
2348
2348
  class: "v-binder",
2349
2349
  title: S.title,
@@ -2381,10 +2381,10 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2381
2381
  flex: !1
2382
2382
  }, {
2383
2383
  default: y(() => [
2384
- Ee(A("div", null, [
2384
+ De(A("div", null, [
2385
2385
  m(n(ye), {
2386
2386
  modelValue: n(o),
2387
- "onUpdate:modelValue": k[0] || (k[0] = (V) => $t(o) ? o.value = V : null),
2387
+ "onUpdate:modelValue": k[0] || (k[0] = (V) => Tt(o) ? o.value = V : null),
2388
2388
  size: "small",
2389
2389
  clearable: "",
2390
2390
  "prefix-icon": n(at),
@@ -2410,7 +2410,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2410
2410
  ], 512), [
2411
2411
  [Ne, u.value === "normal"]
2412
2412
  ]),
2413
- Ee(m(hr, {
2413
+ De(m(hr, {
2414
2414
  context: e.context,
2415
2415
  onCopy: b,
2416
2416
  onPick: h
@@ -2492,7 +2492,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2492
2492
  "submit-method": g
2493
2493
  }, {
2494
2494
  default: y(() => [
2495
- Ve(S.$slots, "default")
2495
+ Ae(S.$slots, "default")
2496
2496
  ]),
2497
2497
  _: 3
2498
2498
  }, 8, ["model", "rules"])
@@ -2518,7 +2518,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2518
2518
  }, r = () => {
2519
2519
  a.value ? (l("submit", a.value), l("update:modelValue", !1)) : re("请选择插槽");
2520
2520
  };
2521
- return (u, f) => (c(), w(n(ze), ue({
2521
+ return (u, f) => (c(), w(n(Fe), ue({
2522
2522
  class: "v-slots-picker",
2523
2523
  title: "选择插槽",
2524
2524
  width: "600px",
@@ -2588,14 +2588,14 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2588
2588
  class: K(["v-viewport", e.value]),
2589
2589
  style: ut(a.value)
2590
2590
  }, [
2591
- Ve(o.$slots, "default")
2591
+ Ae(o.$slots, "default")
2592
2592
  ], 6));
2593
2593
  }
2594
2594
  }), _r = /* @__PURE__ */ P({
2595
2595
  name: "VMicroApp",
2596
2596
  __name: "micro-app",
2597
2597
  setup(i) {
2598
- return (t, e) => (c(), w(n(ze), {
2598
+ return (t, e) => (c(), w(n(Fe), {
2599
2599
  title: "页面模板",
2600
2600
  width: "80%",
2601
2601
  height: "80%"
@@ -2610,7 +2610,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2610
2610
  name: "PagesWidget",
2611
2611
  __name: "index",
2612
2612
  setup(i) {
2613
- const { project: t, engine: e } = He(), l = C(() => t.value?.pages || []), { current: a } = me(), o = x(!1), s = x(), r = x(), u = C(() => `(共 ${l.value.length} 项)`), f = (h) => {
2613
+ const { project: t, engine: e } = Ge(), l = C(() => t.value?.pages || []), { current: a } = me(), o = x(!1), s = x(), r = x(), u = C(() => `(共 ${l.value.length} 项)`), f = (h) => {
2614
2614
  const b = [];
2615
2615
  return t.value?.homepage === h.id && b.push("主"), h.mask && b.push("母"), h.cache && b.push("缓"), h.hidden && b.push("隐"), h.pure && b.push("纯"), h.raw && b.push("源"), b;
2616
2616
  }, g = () => {
@@ -2642,7 +2642,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2642
2642
  }
2643
2643
  }, _ = (h, b, S) => S === "inner" ? !!b.data.dir : !0, d = () => {
2644
2644
  t.value?.update({
2645
- pages: Tt(l)
2645
+ pages: xe(l)
2646
2646
  });
2647
2647
  };
2648
2648
  return (h, b) => (c(), w(n(J), {
@@ -2664,7 +2664,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2664
2664
  default: y(({ data: S, node: k }) => [
2665
2665
  m(n(ve), {
2666
2666
  class: "v-pages-widget__item",
2667
- icon: n(Lt)[S.icon],
2667
+ icon: n(Ft)[S.icon],
2668
2668
  title: S.title,
2669
2669
  subtitle: S.name,
2670
2670
  "model-value": { data: S, node: k },
@@ -2702,7 +2702,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2702
2702
  },
2703
2703
  emits: ["change", "update:modelValue"],
2704
2704
  setup(i, { emit: t }) {
2705
- const e = i, l = t, { engine: a, project: o } = He(), s = x([]), r = x(!1), u = (k) => Array.isArray(k) ? k.map((V) => ({
2705
+ const e = i, l = t, { engine: a, project: o } = Ge(), s = x([]), r = x(!1), u = (k) => Array.isArray(k) ? k.map((V) => ({
2706
2706
  name: V.filename,
2707
2707
  url: V.filepath
2708
2708
  })) : k ? { name: k.filename, url: k.filepath } : null, f = async (k) => {
@@ -2749,7 +2749,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2749
2749
  "model-value": e.modelValue,
2750
2750
  "suffix-icon": n(Oa)
2751
2751
  }, k.$attrs), null, 16, ["model-value", "suffix-icon"]),
2752
- r.value ? (c(), w(n(ze), {
2752
+ r.value ? (c(), w(n(Fe), {
2753
2753
  key: 0,
2754
2754
  modelValue: r.value,
2755
2755
  "onUpdate:modelValue": V[2] || (V[2] = (j) => r.value = j),
@@ -2872,8 +2872,8 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2872
2872
  Y && Y.regionRef.openTab("Designer");
2873
2873
  }
2874
2874
  }, N = async (B) => {
2875
- const Y = ql(B), se = await l.assets.getBlockMaterial(Y, B.name), Ge = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2876
- Ge && se && Ge.setDragging(se);
2875
+ const Y = ql(B), se = await l.assets.getBlockMaterial(Y, B.name), Ke = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2876
+ Ke && se && Ke.setDragging(se);
2877
2877
  }, H = () => {
2878
2878
  const B = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2879
2879
  B && B.setDragging(null);
@@ -2901,9 +2901,9 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2901
2901
  "model-value": r.value
2902
2902
  }, {
2903
2903
  default: y(() => [
2904
- (c(!0), E(z, null, W(s.value, (se, Ge) => (c(), w(n(_t), {
2905
- name: Ge,
2906
- title: `${Ge} (${se.length})`
2904
+ (c(!0), E(z, null, W(s.value, (se, Ke) => (c(), w(n(_t), {
2905
+ name: Ke,
2906
+ title: `${Ke} (${se.length})`
2907
2907
  }, {
2908
2908
  default: y(() => [
2909
2909
  m(n(mt), {
@@ -2946,7 +2946,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2946
2946
  key: 0,
2947
2947
  description: "找不到符合条件的区块"
2948
2948
  })),
2949
- m(n(Ae), {
2949
+ m(n(je), {
2950
2950
  modelValue: d.value,
2951
2951
  "onUpdate:modelValue": Y[1] || (Y[1] = (se) => d.value = se),
2952
2952
  title: h.value,
@@ -2972,7 +2972,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
2972
2972
  tip: "名称为英文驼峰格式",
2973
2973
  rules: {
2974
2974
  message: "名称格式错误",
2975
- pattern: n(je)
2975
+ pattern: n(Ee)
2976
2976
  },
2977
2977
  onChange: Q
2978
2978
  }, null, 8, ["rules"]),
@@ -3032,7 +3032,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3032
3032
  A("div", Cr, [
3033
3033
  m(n(ye), {
3034
3034
  modelValue: n(r),
3035
- "onUpdate:modelValue": p[0] || (p[0] = (_) => $t(r) ? r.value = _ : null),
3035
+ "onUpdate:modelValue": p[0] || (p[0] = (_) => Tt(r) ? r.value = _ : null),
3036
3036
  placeholder: "搜索组件",
3037
3037
  clearable: "",
3038
3038
  size: "small"
@@ -3072,7 +3072,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3072
3072
  key: 1,
3073
3073
  items: n(l),
3074
3074
  modelValue: n(a),
3075
- "onUpdate:modelValue": p[2] || (p[2] = (_) => $t(a) ? a.value = _ : null)
3075
+ "onUpdate:modelValue": p[2] || (p[2] = (_) => Tt(a) ? a.value = _ : null)
3076
3076
  }, {
3077
3077
  default: y(() => [
3078
3078
  A("div", Ar, [
@@ -3130,7 +3130,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3130
3130
  name: "OutlineWidget",
3131
3131
  __name: "index",
3132
3132
  setup(i) {
3133
- const { engine: t, designer: e, selected: l } = xe(), { current: a } = me(), o = x([]), s = (I, T) => {
3133
+ const { engine: t, designer: e, selected: l } = Ce(), { current: a } = me(), o = x([]), s = (I, T) => {
3134
3134
  if (T === "slot") return [];
3135
3135
  if (le(I))
3136
3136
  return I.locked ? ["unlock"] : ["lock"];
@@ -3179,7 +3179,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3179
3179
  }
3180
3180
  ];
3181
3181
  }, g = async () => {
3182
- o.value = f(), l.value?.model && (await Ce(), e.value?.setSelected(l.value.model));
3182
+ o.value = f(), l.value?.model && (await Ve(), e.value?.setSelected(l.value.model));
3183
3183
  }, v = C(() => l.value?.model.id), p = (I) => {
3184
3184
  const T = I.data;
3185
3185
  if (T.type === "slot" || le(T.model) || T.model.locked || T.model.name === "template")
@@ -3219,7 +3219,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3219
3219
  N,
3220
3220
  H
3221
3221
  )) {
3222
- e.value?.setDropping(null), g(), Pe.warning({
3222
+ e.value?.setDropping(null), g(), Ie.warning({
3223
3223
  message: `${Q.model.name}不能放置到该位置`
3224
3224
  }), e.value?.setDragging(null);
3225
3225
  return;
@@ -3391,7 +3391,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3391
3391
  name: "name",
3392
3392
  label: "接口名称",
3393
3393
  required: "",
3394
- rules: { pattern: n(je), message: "名称格式不正确" }
3394
+ rules: { pattern: n(Ee), message: "名称格式不正确" }
3395
3395
  }, null, 8, ["rules"]),
3396
3396
  m(n($), {
3397
3397
  name: "label",
@@ -3596,7 +3596,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3596
3596
  }
3597
3597
  ), q(l, async () => {
3598
3598
  o.value?.formRef.validate(async (h) => {
3599
- h || (await Ce(), l.value = "base");
3599
+ h || (await Ve(), l.value = "base");
3600
3600
  });
3601
3601
  });
3602
3602
  const v = () => {
@@ -3621,7 +3621,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3621
3621
  u.value = JSON.stringify(k, null, 2), r.value = !0;
3622
3622
  }
3623
3623
  };
3624
- return (h, b) => (c(), w(n(ze), {
3624
+ return (h, b) => (c(), w(n(Fe), {
3625
3625
  ref_key: "dialogRef",
3626
3626
  ref: a,
3627
3627
  title: e.value,
@@ -3703,7 +3703,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3703
3703
  submitMethod: _
3704
3704
  }, {
3705
3705
  default: y(() => [
3706
- Ee(m(Pr, { categories: h.categories }, null, 8, ["categories"]), [
3706
+ De(m(Pr, { categories: h.categories }, null, 8, ["categories"]), [
3707
3707
  [Ne, l.value === "base"]
3708
3708
  ]),
3709
3709
  l.value === "settings" ? (c(), E("div", Rr, [
@@ -3748,7 +3748,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3748
3748
  name: "ApisWidget",
3749
3749
  __name: "index",
3750
3750
  setup(i) {
3751
- const { project: t } = He(), e = x(!1), l = x(null), a = x(""), o = x(!1), s = C(() => {
3751
+ const { project: t } = Ge(), e = x(!1), l = x(null), a = x(""), o = x(!1), s = C(() => {
3752
3752
  const d = t.value?.apis || [];
3753
3753
  return a.value ? d.filter((h) => h.name.includes(a.value) || h.label?.includes(a.value) || h.url.includes(a.value)) : d;
3754
3754
  }), r = C(
@@ -3898,9 +3898,9 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3898
3898
  onClick: (S) => p(b),
3899
3899
  onAction: (S) => _(b, S)
3900
3900
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
3901
- m(n(Ae), {
3901
+ m(n(je), {
3902
3902
  modelValue: l.value,
3903
- "onUpdate:modelValue": h[0] || (h[0] = (b) => l.value = b),
3903
+ "onUpdate:modelValue": h[1] || (h[1] = (b) => l.value = b),
3904
3904
  width: "600px",
3905
3905
  height: "500px",
3906
3906
  title: s.value,
@@ -3934,6 +3934,8 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
3934
3934
  editor: "textarea",
3935
3935
  props: { rows: 3 },
3936
3936
  tip: "多个资源可以换行输入",
3937
+ onKeyup: h[0] || (h[0] = Ue(Be(() => {
3938
+ }, ["stop"]), ["enter"])),
3937
3939
  required: ""
3938
3940
  }),
3939
3941
  m(n($), {
@@ -4200,7 +4202,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4200
4202
  onPick: g
4201
4203
  }, {
4202
4204
  default: y(() => [
4203
- Ve(d.$slots, "fields", yn(_n({ model: o.value, isEdit: s.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
4205
+ Ae(d.$slots, "fields", yn(_n({ model: o.value, isEdit: s.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
4204
4206
  m(n($), {
4205
4207
  name: "name",
4206
4208
  label: d.nameLabel,
@@ -4243,7 +4245,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4243
4245
  current: {}
4244
4246
  },
4245
4247
  setup(i) {
4246
- const t = i, e = C(() => Object.entries(t.current?.state || {}).map(([r, u]) => ({ name: r, value: Ue(u) }))), l = () => ({
4248
+ const t = i, e = C(() => Object.entries(t.current?.state || {}).map(([r, u]) => ({ name: r, value: qe(u) }))), l = () => ({
4247
4249
  name: "",
4248
4250
  value: ""
4249
4251
  }), a = (s) => t.current?.removeState(s.name), o = async (s, r) => {
@@ -4275,7 +4277,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4275
4277
  current: {}
4276
4278
  },
4277
4279
  setup(i) {
4278
- const t = i, e = C(() => Object.entries(t.current?.computed || {}).map(([r, u]) => ({ name: r, value: Ue(u) }))), l = () => ({
4280
+ const t = i, e = C(() => Object.entries(t.current?.computed || {}).map(([r, u]) => ({ name: r, value: qe(u) }))), l = () => ({
4279
4281
  name: "",
4280
4282
  value: "() => { }"
4281
4283
  }), a = (s) => t.current?.removeFunction("computed", s.name), o = async (s, r) => {
@@ -4307,7 +4309,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4307
4309
  current: {}
4308
4310
  },
4309
4311
  setup(i) {
4310
- const t = i, e = C(() => Object.entries(t.current?.methods || {}).map(([r, u]) => ({ name: r, value: Ue(u) }))), l = () => ({
4312
+ const t = i, e = C(() => Object.entries(t.current?.methods || {}).map(([r, u]) => ({ name: r, value: qe(u) }))), l = () => ({
4311
4313
  name: "",
4312
4314
  value: "() => { }"
4313
4315
  }), a = (s) => t.current?.removeFunction("methods", s.name), o = async (s, r) => {
@@ -4342,7 +4344,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4342
4344
  const t = i, e = C(() => ua.map((r) => ({
4343
4345
  label: r,
4344
4346
  value: r
4345
- }))), l = C(() => Object.entries(t.current?.lifeCycles || {}).map(([u, f]) => ({ name: u, value: Ue(f) }))), a = () => ({
4347
+ }))), l = C(() => Object.entries(t.current?.lifeCycles || {}).map(([u, f]) => ({ name: u, value: qe(f) }))), a = () => ({
4346
4348
  name: "",
4347
4349
  value: "() => { }"
4348
4350
  }), o = (r) => t.current?.removeFunction("lifeCycles", r.name), s = async (r, u) => {
@@ -4405,8 +4407,8 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4405
4407
  setup(i) {
4406
4408
  const t = i, e = C(() => (t.current?.watch || []).map((r) => ({
4407
4409
  ...r,
4408
- source: Ue(r.source),
4409
- handler: Ue(r.handler)
4410
+ source: qe(r.source),
4411
+ handler: qe(r.handler)
4410
4412
  }))), l = () => ({
4411
4413
  source: "() => { }",
4412
4414
  deep: !1,
@@ -4559,7 +4561,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4559
4561
  size: "small",
4560
4562
  "label-position": "right",
4561
4563
  "label-width": r.value,
4562
- onKeydown: f[0] || (f[0] = Ke(We(() => {
4564
+ onKeydown: f[0] || (f[0] = Ue(Be(() => {
4563
4565
  }, ["prevent", "stop"]), ["enter"]))
4564
4566
  }, {
4565
4567
  default: y(() => [
@@ -4582,7 +4584,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4582
4584
  name: "PropertiesWidget",
4583
4585
  __name: "index",
4584
4586
  setup(i) {
4585
- const { current: t, context: e } = me(), { selected: l } = xe(), {
4587
+ const { current: t, context: e } = me(), { selected: l } = Ce(), {
4586
4588
  node: a,
4587
4589
  commonProps: o,
4588
4590
  change: s,
@@ -4640,7 +4642,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4640
4642
  onPlus: d,
4641
4643
  onRemove: b
4642
4644
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : D("", !0),
4643
- m(n(Ae), {
4645
+ m(n(je), {
4644
4646
  modelValue: p.value,
4645
4647
  "onUpdate:modelValue": k[0] || (k[0] = (V) => p.value = V),
4646
4648
  title: "新增自定义属性",
@@ -4657,7 +4659,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4657
4659
  required: "",
4658
4660
  rules: {
4659
4661
  message: "名称格式错误",
4660
- pattern: n(je)
4662
+ pattern: n(Ee)
4661
4663
  }
4662
4664
  }, null, 8, ["rules"])
4663
4665
  ]),
@@ -4676,7 +4678,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4676
4678
  value: {}
4677
4679
  },
4678
4680
  setup(i) {
4679
- const t = i, e = x(), l = qe({
4681
+ const t = i, e = x(), l = He({
4680
4682
  type: "JSExpression",
4681
4683
  value: t.value
4682
4684
  }), a = (o) => {
@@ -4723,7 +4725,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4723
4725
  event: {}
4724
4726
  },
4725
4727
  setup(i) {
4726
- const t = i, e = x(), a = qe({
4728
+ const t = i, e = x(), a = He({
4727
4729
  name: t.name,
4728
4730
  ...t.event,
4729
4731
  modifiers: Object.keys(t.event?.modifiers || {}),
@@ -4778,7 +4780,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4778
4780
  name: "EventsWidget",
4779
4781
  __name: "index",
4780
4782
  setup(i) {
4781
- const { current: t, context: e } = me(), { selected: l } = xe(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } = ko(l), r = x({
4783
+ const { current: t, context: e } = me(), { selected: l } = Ce(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } = ko(l), r = x({
4782
4784
  name: "",
4783
4785
  event: void 0
4784
4786
  }), u = x(!1), f = (d) => {
@@ -4924,7 +4926,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4924
4926
  name: "DirectivesWidget",
4925
4927
  __name: "index",
4926
4928
  setup(i) {
4927
- const { current: t, context: e } = me(), { selected: l } = xe(), {
4929
+ const { current: t, context: e } = me(), { selected: l } = Ce(), {
4928
4930
  vIf: a,
4929
4931
  vShow: o,
4930
4932
  vBind: s,
@@ -4955,7 +4957,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
4955
4957
  m(n(be), {
4956
4958
  size: "small",
4957
4959
  "label-width": "80px",
4958
- onKeydown: V[0] || (V[0] = Ke(We(() => {
4960
+ onKeydown: V[0] || (V[0] = Ue(Be(() => {
4959
4961
  }, ["prevent", "stop"]), ["enter"]))
4960
4962
  }, {
4961
4963
  default: y(() => [
@@ -5011,7 +5013,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5011
5013
  m(n(be), {
5012
5014
  size: "small",
5013
5015
  "label-width": "80px",
5014
- onKeydown: V[1] || (V[1] = Ke(We(() => {
5016
+ onKeydown: V[1] || (V[1] = Ue(Be(() => {
5015
5017
  }, ["prevent", "stop"]), ["enter"]))
5016
5018
  }, {
5017
5019
  default: y(() => [
@@ -5074,7 +5076,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5074
5076
  m(n(be), {
5075
5077
  size: "small",
5076
5078
  "label-width": "60px",
5077
- onKeydown: V[2] || (V[2] = Ke(We(() => {
5079
+ onKeydown: V[2] || (V[2] = Ue(Be(() => {
5078
5080
  }, ["prevent", "stop"]), ["enter"]))
5079
5081
  }, {
5080
5082
  default: y(() => [
@@ -5127,7 +5129,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5127
5129
  m(n(be), {
5128
5130
  size: "small",
5129
5131
  "label-width": "60px",
5130
- onKeydown: V[3] || (V[3] = Ke(We(() => {
5132
+ onKeydown: V[3] || (V[3] = Ue(Be(() => {
5131
5133
  }, ["prevent", "stop"]), ["enter"]))
5132
5134
  }, {
5133
5135
  default: y(() => [
@@ -5207,7 +5209,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5207
5209
  const r = s.default;
5208
5210
  return r && !pe(r, t.context, !0) ? !1 : (t.current.setProp(s), !0);
5209
5211
  };
5210
- return (s, r) => (c(), w(n(Ae), {
5212
+ return (s, r) => (c(), w(n(je), {
5211
5213
  title: e.value,
5212
5214
  width: "800px",
5213
5215
  height: "500px",
@@ -5224,7 +5226,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5224
5226
  disabled: !!t.item,
5225
5227
  rules: {
5226
5228
  message: "名称格式错误",
5227
- pattern: n(je)
5229
+ pattern: n(Ee)
5228
5230
  }
5229
5231
  }, null, 8, ["disabled", "rules"]),
5230
5232
  m(n($), {
@@ -5269,7 +5271,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5269
5271
  },
5270
5272
  setup(i) {
5271
5273
  const t = i, e = C(() => t.item ? "编辑定义事件" : "新增定义事件"), l = x(t.item), a = async (o) => (t.item && t.current.removeEmit(t.item.name, !0), t.current.setEmit(o), !0);
5272
- return (o, s) => (c(), w(n(Ae), {
5274
+ return (o, s) => (c(), w(n(je), {
5273
5275
  title: e.value,
5274
5276
  width: "600px",
5275
5277
  height: "200px",
@@ -5285,7 +5287,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5285
5287
  disabled: !!t.item,
5286
5288
  rules: {
5287
5289
  message: "名称格式错误",
5288
- pattern: n(je)
5290
+ pattern: n(Ee)
5289
5291
  }
5290
5292
  }, null, 8, ["disabled", "rules"]),
5291
5293
  m(n($), {
@@ -5321,7 +5323,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5321
5323
  },
5322
5324
  setup(i) {
5323
5325
  const t = i, e = C(() => t.item ? "编辑定义插槽" : "新增定义插槽"), l = x(t.item), a = async (o) => (t.item && t.current.removeSlot(t.item.name, !0), t.current.setSlot(o), !0);
5324
- return (o, s) => (c(), w(n(Ae), {
5326
+ return (o, s) => (c(), w(n(je), {
5325
5327
  title: e.value,
5326
5328
  width: "600px",
5327
5329
  height: "200px",
@@ -5337,7 +5339,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5337
5339
  required: "",
5338
5340
  rules: {
5339
5341
  message: "名称格式错误",
5340
- pattern: n(je)
5342
+ pattern: n(Ee)
5341
5343
  }
5342
5344
  }, null, 8, ["disabled", "rules"]),
5343
5345
  m(n($), {
@@ -5385,7 +5387,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5385
5387
  const s = o.default;
5386
5388
  return s && !pe(s, t.context, !0) ? !1 : (t.current.setInject(o), !0);
5387
5389
  };
5388
- return (o, s) => (c(), w(n(Ae), {
5390
+ return (o, s) => (c(), w(n(je), {
5389
5391
  title: e.value,
5390
5392
  width: "800px",
5391
5393
  height: "500px",
@@ -5402,7 +5404,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5402
5404
  disabled: !!t.item,
5403
5405
  rules: {
5404
5406
  message: "名称格式错误",
5405
- pattern: n(je)
5407
+ pattern: n(Ee)
5406
5408
  }
5407
5409
  }, null, 8, ["disabled", "rules"]),
5408
5410
  m(n($), {
@@ -5717,7 +5719,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5717
5719
  let T = t.context?.$apis[s.value.ref];
5718
5720
  if (T)
5719
5721
  return await T.apply(T, I);
5720
- Ie.warn(`API【${s.value.ref}】不存在`);
5722
+ Te.warn(`API【${s.value.ref}】不存在`);
5721
5723
  }
5722
5724
  }, j = et(s.value.test, {
5723
5725
  runApi: V
@@ -5727,11 +5729,11 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5727
5729
  const I = await j();
5728
5730
  u.value = JSON.stringify(await R(I), null, 2);
5729
5731
  } catch (I) {
5730
- Ie.error(I);
5732
+ Te.error(I);
5731
5733
  }
5732
5734
  r.value = !1, f.value = !0;
5733
5735
  };
5734
- return (k, V) => (c(), w(n(Ae), {
5736
+ return (k, V) => (c(), w(n(je), {
5735
5737
  width: "1000px",
5736
5738
  height: "700px",
5737
5739
  title: v.value,
@@ -5787,7 +5789,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
5787
5789
  disabled: !!t.item,
5788
5790
  rules: {
5789
5791
  message: "名称格式错误",
5790
- pattern: n(je)
5792
+ pattern: n(Ee)
5791
5793
  }
5792
5794
  }, null, 8, ["disabled", "rules"]),
5793
5795
  m(n($), {
@@ -6131,7 +6133,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
6131
6133
  name: "StyleWidget",
6132
6134
  __name: "JsonMode",
6133
6135
  setup(i) {
6134
- const { selected: t } = xe(), e = x(), l = C(() => {
6136
+ const { selected: t } = Ce(), e = x(), l = C(() => {
6135
6137
  const r = t.value?.model || null;
6136
6138
  return le(r) ? null : r;
6137
6139
  }), a = C(
@@ -7441,14 +7443,14 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
7441
7443
  isStyleCodeMode: { type: Boolean }
7442
7444
  },
7443
7445
  setup(i) {
7444
- const t = i, { selected: e } = xe(), l = C(() => {
7446
+ const t = i, { selected: e } = Ce(), l = C(() => {
7445
7447
  const s = e.value?.model || null;
7446
7448
  return le(s) ? null : s;
7447
7449
  }), a = C(
7448
7450
  () => l.value?.getPropValue("style") || {}
7449
7451
  ), o = (s, r) => {
7450
7452
  const u = l.value?.getPropValue("style") || {};
7451
- r !== void 0 ? u[s] = r : delete u[s], l.value?.setProp("style", u);
7453
+ r !== void 0 && r !== "" ? u[s] = r : delete u[s], l.value?.setProp("style", u);
7452
7454
  };
7453
7455
  return (s, r) => t.isStyleCodeMode ? (c(), w(ui, { key: 0 })) : (c(), w(n(G), {
7454
7456
  key: `widget-style-${l.value?.id}`,
@@ -7541,7 +7543,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
7541
7543
  inheritAttrs: !1,
7542
7544
  __name: "index",
7543
7545
  setup(i) {
7544
- const { selected: t, designer: e } = xe(), l = C(() => (t.value?.path || []).slice(0).reverse()), a = (s) => {
7546
+ const { selected: t, designer: e } = Ce(), l = C(() => (t.value?.path || []).slice(0).reverse()), a = (s) => {
7545
7547
  e.value?.setSelected(s);
7546
7548
  }, o = (s) => {
7547
7549
  e.value?.setHover(s);
@@ -7755,7 +7757,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
7755
7757
  name: "ProjectConfigWidget",
7756
7758
  __name: "index",
7757
7759
  setup(i) {
7758
- const { project: t } = He(), e = (l) => {
7760
+ const { project: t } = Ge(), e = (l) => {
7759
7761
  t.value?.setConfig(l);
7760
7762
  };
7761
7763
  return (l, a) => (c(), w(n(J), {
@@ -7838,7 +7840,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
7838
7840
  const V = r?.getData()?.id;
7839
7841
  return kt(p.value, (j) => j.userId === V ? "我的" : j.category);
7840
7842
  }), d = C(() => Object.keys(_.value)), h = C(() => `(共 ${l.value.length} 个)`), b = async (V) => {
7841
- await o() ? await s(V.id) : await De.confirm(
7843
+ await o() ? await s(V.id) : await Pe.confirm(
7842
7844
  "使用模版需登录,您还没登录或已过期,请重新登录!",
7843
7845
  "提示",
7844
7846
  {
@@ -7847,13 +7849,13 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
7847
7849
  }
7848
7850
  ).catch(() => !1) && a();
7849
7851
  }, S = (V) => V.share ? !1 : V.userId === r?.getData()?.id, k = async (V) => {
7850
- await De.confirm("确定删除该模版?", "提示", {
7852
+ await Pe.confirm("确定删除该模版?", "提示", {
7851
7853
  type: "warning"
7852
7854
  }).catch(() => !1) && (await g(V.id), u());
7853
7855
  };
7854
7856
  return t({
7855
7857
  refreshTemplates: u
7856
- }), (V, j) => Ee((c(), w(n(J), {
7858
+ }), (V, j) => De((c(), w(n(J), {
7857
7859
  class: "v-blocks-widget v-templates-widgets",
7858
7860
  title: "模板",
7859
7861
  subtitle: h.value,
@@ -7930,7 +7932,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
7930
7932
  A("div", Du, [
7931
7933
  m(n(te), {
7932
7934
  class: "v-templates-widgets__download",
7933
- icon: n(Ft),
7935
+ icon: n(zt),
7934
7936
  type: "primary",
7935
7937
  round: "",
7936
7938
  onClick: (O) => b(T)
@@ -8167,7 +8169,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
8167
8169
  label: "帮助中心",
8168
8170
  actions: [
8169
8171
  {
8170
- icon: Rt(Gs),
8172
+ icon: $t(Gs),
8171
8173
  type: "info",
8172
8174
  name: "home"
8173
8175
  }
@@ -8884,10 +8886,10 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
8884
8886
  }
8885
8887
  ], Fu = [
8886
8888
  {
8887
- name: Bt,
8889
+ name: Rt,
8888
8890
  version: "latest",
8889
8891
  label: "内置",
8890
- library: Bt,
8892
+ library: Rt,
8891
8893
  order: 0,
8892
8894
  categories: Bu,
8893
8895
  components: zu
@@ -9039,7 +9041,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9039
9041
  "model-value": e.type,
9040
9042
  "suffix-icon": n(st)
9041
9043
  }, p.$attrs), null, 16, ["model-value", "suffix-icon"]),
9042
- s.value ? (c(), w(n(ze), {
9044
+ s.value ? (c(), w(n(Fe), {
9043
9045
  key: 0,
9044
9046
  modelValue: s.value,
9045
9047
  "onUpdate:modelValue": _[0] || (_[0] = (d) => s.value = d),
@@ -9112,7 +9114,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9112
9114
  "model-value": "JSFunction",
9113
9115
  "suffix-icon": n(st)
9114
9116
  }, v.$attrs), null, 16, ["suffix-icon"]),
9115
- o.value ? (c(), w(n(ze), {
9117
+ o.value ? (c(), w(n(Fe), {
9116
9118
  key: 0,
9117
9119
  modelValue: o.value,
9118
9120
  "onUpdate:modelValue": p[0] || (p[0] = (_) => o.value = _),
@@ -9169,7 +9171,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9169
9171
  title: a.label
9170
9172
  }, {
9171
9173
  default: y(() => [
9172
- a.svg ? (c(), w(n(Oe), {
9174
+ a.svg ? (c(), w(n(ze), {
9173
9175
  key: 0,
9174
9176
  src: a.svg
9175
9177
  }, null, 8, ["src"])) : (c(), E(z, { key: 1 }, [
@@ -9206,7 +9208,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9206
9208
  }),
9207
9209
  onClick: (u) => a(r)
9208
9210
  }, [
9209
- r.svg ? (c(), w(n(Oe), {
9211
+ r.svg ? (c(), w(n(ze), {
9210
9212
  key: 0,
9211
9213
  src: r.svg,
9212
9214
  size: 16
@@ -9255,7 +9257,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9255
9257
  setup(i, { emit: t }) {
9256
9258
  const e = i, l = t, a = x([]), o = C(() => a.value.length < e.limit), s = (u) => u.type.includes("image") ? (Nl(u).then((f) => {
9257
9259
  a.value = [{ name: u.name, url: f }];
9258
- }), !1) : (Pe.error("只能上传图片"), !1), r = () => {
9260
+ }), !1) : (Ie.error("只能上传图片"), !1), r = () => {
9259
9261
  a.value = [];
9260
9262
  };
9261
9263
  return q(
@@ -9282,7 +9284,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9282
9284
  }, u.$attrs), {
9283
9285
  default: y(() => [
9284
9286
  A("span", Zu, [
9285
- m(n(Oe), { icon: n(Ks) }, null, 8, ["icon"])
9287
+ m(n(ze), { icon: n(Ks) }, null, 8, ["icon"])
9286
9288
  ])
9287
9289
  ]),
9288
9290
  _: 1
@@ -9344,7 +9346,7 @@ const ar = { class: "v-icon-setter" }, sr = { class: "v-icon-setter__content" },
9344
9346
  modelValue: a.value,
9345
9347
  "onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u)
9346
9348
  }), null, 16, ["modelValue"]),
9347
- m(n(Oe), {
9349
+ m(n(ze), {
9348
9350
  onClick: o,
9349
9351
  class: "v-slider-setter__close",
9350
9352
  size: 16,
@@ -9541,7 +9543,7 @@ class rc {
9541
9543
  set(t, e) {
9542
9544
  const l = this.widgets[t];
9543
9545
  if (!l) {
9544
- Ie.warn(`widget '${t}' is not found`);
9546
+ Te.warn(`widget '${t}' is not found`);
9545
9547
  return;
9546
9548
  }
9547
9549
  Ht(l, e), e.component && (l.component = e.component);
@@ -9653,7 +9655,7 @@ class cc {
9653
9655
  set(t, e) {
9654
9656
  const l = this.setters[t];
9655
9657
  if (!l) {
9656
- Ie.warn(`setter '${t}' is not found`);
9658
+ Te.warn(`setter '${t}' is not found`);
9657
9659
  return;
9658
9660
  }
9659
9661
  Ht(l, e), e.component && (l.component = e.component);
@@ -9779,7 +9781,7 @@ class mc {
9779
9781
  this.bind(this.onSelected, "onSelected"),
9780
9782
  !0
9781
9783
  ), oe.on(
9782
- Ot,
9784
+ Bt,
9783
9785
  this.bind(this.onActiveChange, "onActiveChange")
9784
9786
  ), oe.on(Ze, this.bind(this.onViewChange, "onViewChange")), q(
9785
9787
  this.devtools.isOpen,
@@ -9806,7 +9808,7 @@ class mc {
9806
9808
  "dragstart",
9807
9809
  this.bind(this.onDragStart, "onDragStart")
9808
9810
  ), e.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), e.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), e.removeEventListener("click", this.bind(this.onSelected, "onSelected")), oe.off(
9809
- Ot,
9811
+ Bt,
9810
9812
  this.bind(this.onActiveChange, "onActiveChange")
9811
9813
  ), oe.off(
9812
9814
  Ze,
@@ -9986,7 +9988,7 @@ class mc {
9986
9988
  this.draggingNode = t;
9987
9989
  }
9988
9990
  async setHover(t) {
9989
- if (await Ce(), t) {
9991
+ if (await Ve(), t) {
9990
9992
  const e = this.getElmenetByModel(t);
9991
9993
  if (!e) return;
9992
9994
  const l = e.getBoundingClientRect(), a = le(t) ? [] : this.findPathByNode(t);
@@ -10001,7 +10003,7 @@ class mc {
10001
10003
  this.hover.value = null;
10002
10004
  }
10003
10005
  async setSelected(t) {
10004
- if (await Ce(), t) {
10006
+ if (await Ve(), t) {
10005
10007
  const e = this.getElmenetByModel(t) || this.document?.createElement("span");
10006
10008
  if (!e) return;
10007
10009
  const l = e.getBoundingClientRect(), a = le(t) ? [] : this.findPathByNode(t);
@@ -10016,7 +10018,7 @@ class mc {
10016
10018
  this.selected.value = null;
10017
10019
  }
10018
10020
  async setDropping(t, e = "inner") {
10019
- if (await Ce(), t) {
10021
+ if (await Ve(), t) {
10020
10022
  const l = this.getElmenetByModel(t);
10021
10023
  if (!l) return;
10022
10024
  const a = l.getBoundingClientRect(), o = le(t) ? [] : this.findPathByNode(t);
@@ -10105,7 +10107,7 @@ class vc {
10105
10107
  } catch (d) {
10106
10108
  re(d.message || "未知错误", "运行时错误"), console.error(d);
10107
10109
  }
10108
- this.context = p, oe.on(Ze, this.nodeChange), oe.on(zt, this.blockChange);
10110
+ this.context = p, oe.on(Ze, this.nodeChange), oe.on(Ot, this.blockChange);
10109
10111
  }
10110
10112
  dispose() {
10111
10113
  if (this.app) {
@@ -10115,7 +10117,7 @@ class vc {
10115
10117
  const e = this.app._container;
10116
10118
  e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
10117
10119
  }
10118
- this.dsl = null, this.context = null, this.file = null, oe.off(Ze, this.nodeChange), oe.off(zt, this.blockChange);
10120
+ this.dsl = null, this.context = null, this.file = null, oe.off(Ze, this.nodeChange), oe.off(Ot, this.blockChange);
10119
10121
  }
10120
10122
  updateChild(t, e) {
10121
10123
  const l = e.children || e.nodes || [];
@@ -10169,7 +10171,7 @@ class gc extends Fn {
10169
10171
  setup(e, l) {
10170
10172
  const a = e.contentWindow;
10171
10173
  if (!a) {
10172
- Ie.warn("Simulator contentWindow is null");
10174
+ Te.warn("Simulator contentWindow is null");
10173
10175
  return;
10174
10176
  }
10175
10177
  a.__simulator__ = this;
@@ -10254,7 +10256,7 @@ class gc extends Fn {
10254
10256
  const _ = {}, { groups: d, componentMap: h } = f;
10255
10257
  for (const V of d.value) {
10256
10258
  const j = V.names || [];
10257
- if (V.name === Bt)
10259
+ if (V.name === Rt)
10258
10260
  j.forEach((R) => {
10259
10261
  const I = h.get(R), T = I?.package || "", O = Kl[T], Q = v[O];
10260
10262
  Q && I && (_[R] = rn(I, Q));
@@ -10444,7 +10446,7 @@ class ld extends Fn {
10444
10446
  }), this.bindEvents(), this.init(o), ht(this.render.bind(this)), wn(this.dispose.bind(this));
10445
10447
  }
10446
10448
  async init(e) {
10447
- const l = await this.service.init(e).catch((a) => (Ie.warn("VTJEngine service init fail.", a), null));
10449
+ const l = await this.service.init(e).catch((a) => (Te.warn("VTJEngine service init fail.", a), null));
10448
10450
  l && (l.dependencies = uc.merge(l.dependencies || []), this.project.value = new Xl(l), this.saveMaterials(), this.triggerReady());
10449
10451
  }
10450
10452
  render() {
@@ -10453,13 +10455,13 @@ class ld extends Fn {
10453
10455
  const l = kn(hc);
10454
10456
  this.options.install && l.use(this.options.install, this), l.provide(dl, wl(this)), l.mount(e), this.app = l;
10455
10457
  } else
10456
- Ie.warn("VTJEngine constructor param [ container ] is undefined");
10458
+ Te.warn("VTJEngine constructor param [ container ] is undefined");
10457
10459
  }
10458
10460
  bindEvents() {
10459
- oe.on(Ql, (e) => this.saveProject(e)), oe.on(Yl, (e) => this.saveBlockFile(e)), oe.on(Zl, (e) => this.saveBlockFile(e)), oe.on(ea, () => this.saveMaterials()), oe.on(Ot, (e) => this.activeFile(e)), oe.on(ta, () => this.publish()), oe.on(na, () => this.publishCurrent()), oe.on(zt, (e) => this.changeFile(e)), oe.on(Ze, () => this.changeCurrentFile()), oe.on(la, (e) => this.saveHistory(e)), oe.on(aa, (e) => this.loadHistory(e)), oe.on(sa, () => this.genSource());
10461
+ oe.on(Ql, (e) => this.saveProject(e)), oe.on(Yl, (e) => this.saveBlockFile(e)), oe.on(Zl, (e) => this.saveBlockFile(e)), oe.on(ea, () => this.saveMaterials()), oe.on(Bt, (e) => this.activeFile(e)), oe.on(ta, () => this.publish()), oe.on(na, () => this.publishCurrent()), oe.on(Ot, (e) => this.changeFile(e)), oe.on(Ze, () => this.changeCurrentFile()), oe.on(la, (e) => this.saveHistory(e)), oe.on(aa, (e) => this.loadHistory(e)), oe.on(sa, () => this.genSource());
10460
10462
  }
10461
10463
  async activeFile(e) {
10462
- await Ce();
10464
+ await Ve();
10463
10465
  const l = e.model, a = e.model.currentFile;
10464
10466
  if (a) {
10465
10467
  if (l.isPageFile(a) && a.raw)
@@ -10472,22 +10474,22 @@ class ld extends Fn {
10472
10474
  this.updateCurrent(o), this.initHistory(o);
10473
10475
  } else
10474
10476
  this.updateCurrent(null);
10475
- Te(this.project);
10477
+ $e(this.project);
10476
10478
  }
10477
10479
  async changeFile(e) {
10478
- await Ce();
10480
+ await Ve();
10479
10481
  const l = e.toDsl();
10480
- this.service.saveFile(l, this.project.value?.toDsl()), this.updateCurrent(e), this.history.value?.add(l), Te(this.history);
10482
+ this.service.saveFile(l, this.project.value?.toDsl()), this.updateCurrent(e), this.history.value?.add(l), $e(this.history);
10481
10483
  }
10482
10484
  changeCurrentFile() {
10483
- this.saveCurrentFile(), this.current.value && (this.history.value?.add(this.current.value.toDsl()), Te(this.history));
10485
+ this.saveCurrentFile(), this.current.value && (this.history.value?.add(this.current.value.toDsl()), $e(this.history));
10484
10486
  }
10485
10487
  async updateCurrent(e, l = !0) {
10486
- this.current.value = e, await Ce(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), l && Te(this.context);
10488
+ this.current.value = e, await Ve(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), l && $e(this.context);
10487
10489
  }
10488
10490
  async saveProject(e) {
10489
10491
  const a = e.model.toDsl();
10490
- await this.service.saveProject(a), Te(this.project);
10492
+ await this.service.saveProject(a), $e(this.project);
10491
10493
  }
10492
10494
  async saveBlockFile(e) {
10493
10495
  const l = e.type, a = e.model, o = a.toDsl();
@@ -10510,7 +10512,7 @@ class ld extends Fn {
10510
10512
  const { source: s, target: r } = e.data, u = await this.service.getFile(s.id, o);
10511
10513
  u && (u.id = r.id, u.name = r.name, await this.service.saveFile(u, o));
10512
10514
  }
10513
- Te(this.project), this.emitter.emit(It, e);
10515
+ $e(this.project), this.emitter.emit(It, e);
10514
10516
  }
10515
10517
  onSaveBlockFileFinish(e) {
10516
10518
  const l = (a) => {
@@ -10519,7 +10521,7 @@ class ld extends Fn {
10519
10521
  this.emitter.on(It, l);
10520
10522
  }
10521
10523
  async saveMaterials() {
10522
- await Ce(), this.simulator.ready(() => {
10524
+ await Ve(), this.simulator.ready(() => {
10523
10525
  const e = this.project.value;
10524
10526
  if (e) {
10525
10527
  const l = this.assets.componentMap;
@@ -10556,7 +10558,7 @@ class ld extends Fn {
10556
10558
  o
10557
10559
  );
10558
10560
  const s = a.toDsl();
10559
- await this.service.saveHistory(s, o), Te(this.history);
10561
+ await this.service.saveHistory(s, o), $e(this.history);
10560
10562
  }
10561
10563
  async loadHistory(e) {
10562
10564
  const l = e.model, a = e.data, o = this.project.value?.toDsl(), s = await this.service.getHistoryItem(
@@ -10566,7 +10568,7 @@ class ld extends Fn {
10566
10568
  );
10567
10569
  if (s && s.dsl) {
10568
10570
  const r = new sn(s.dsl);
10569
- await this.updateCurrent(r), this.service.saveFile(s.dsl, o), Te(this.history);
10571
+ await this.updateCurrent(r), this.service.saveFile(s.dsl, o), $e(this.history);
10570
10572
  }
10571
10573
  }
10572
10574
  async publish() {
@@ -10617,9 +10619,9 @@ class ld extends Fn {
10617
10619
  }
10618
10620
  function ce() {
10619
10621
  const i = Wt(dl, null);
10620
- return i || Ie.error("VTJEngine is not exist"), i;
10622
+ return i || Te.error("VTJEngine is not exist"), i;
10621
10623
  }
10622
- const $e = P({
10624
+ const Re = P({
10623
10625
  name: "RegionWrapper",
10624
10626
  props: {
10625
10627
  region: {
@@ -10634,9 +10636,9 @@ const $e = P({
10634
10636
  },
10635
10637
  render() {
10636
10638
  const { $props: i = {}, $attrs: t = {} } = this, e = gn[this.region] || gn.EmptyRegion;
10637
- return Be(e, { ...i, ...t, ref: "regionRef" });
10639
+ return Oe(e, { ...i, ...t, ref: "regionRef" });
10638
10640
  }
10639
- }), Le = P({
10641
+ }), We = P({
10640
10642
  name: "WidgetWrapper",
10641
10643
  props: {
10642
10644
  region: {
@@ -10655,7 +10657,7 @@ const $e = P({
10655
10657
  },
10656
10658
  render() {
10657
10659
  const { $props: i = {}, $attrs: t = {} } = this;
10658
- return Be(this.widget.component, {
10660
+ return Oe(this.widget.component, {
10659
10661
  ...this.widget.props,
10660
10662
  ...i,
10661
10663
  ...t,
@@ -10677,7 +10679,7 @@ const $e = P({
10677
10679
  },
10678
10680
  render() {
10679
10681
  const { $props: i = {}, $attrs: t = {} } = this;
10680
- return Be(bc, { ...i, ...t, ref: "skeletonRef" });
10682
+ return Oe(bc, { ...i, ...t, ref: "skeletonRef" });
10681
10683
  },
10682
10684
  methods: {
10683
10685
  /**
@@ -10723,7 +10725,7 @@ const $e = P({
10723
10725
  getWidget(i) {
10724
10726
  const t = cl.get(i);
10725
10727
  if (!t) {
10726
- Ie.warn(`widget [ ${i} ] is not exsit`);
10728
+ Te.warn(`widget [ ${i} ] is not exsit`);
10727
10729
  return;
10728
10730
  }
10729
10731
  return this.getWidgets(t.region).find((l) => l.widget.name === i);
@@ -10781,7 +10783,7 @@ const $e = P({
10781
10783
  let e;
10782
10784
  if (typeof t == "string")
10783
10785
  return e = this.getSetter(t), {
10784
- component: Rt(e.component),
10786
+ component: $t(e.component),
10785
10787
  name: e.name,
10786
10788
  label: t,
10787
10789
  props: e.props || {}
@@ -10789,7 +10791,7 @@ const $e = P({
10789
10791
  {
10790
10792
  const l = t;
10791
10793
  return e = this.getSetter(l.name), {
10792
- component: Rt(l.component || e.component),
10794
+ component: $t(l.component || e.component),
10793
10795
  name: l.name,
10794
10796
  label: l.label || l.name,
10795
10797
  props: Object.assign(e.props || {}, l.props)
@@ -10827,7 +10829,7 @@ const $e = P({
10827
10829
  removable: v,
10828
10830
  onRemove: p
10829
10831
  } = this;
10830
- return Be(Cc, {
10832
+ return Oe(Cc, {
10831
10833
  context: i,
10832
10834
  current: t,
10833
10835
  name: e,
@@ -10909,18 +10911,18 @@ const $e = P({
10909
10911
  height: k.headerHeight
10910
10912
  }, {
10911
10913
  default: y(() => [
10912
- m(n($e), {
10914
+ m(n(Re), {
10913
10915
  ref_key: "brand",
10914
10916
  ref: u,
10915
10917
  region: "Brand"
10916
10918
  }, null, 512),
10917
- m(n($e), {
10919
+ m(n(Re), {
10918
10920
  ref_key: "toolbar",
10919
10921
  ref: f,
10920
10922
  region: "Toolbar",
10921
10923
  preview: l.value
10922
10924
  }, null, 8, ["preview"]),
10923
- m(n($e), {
10925
+ m(n(Re), {
10924
10926
  ref_key: "actions",
10925
10927
  ref: g,
10926
10928
  region: "Actions"
@@ -10930,7 +10932,7 @@ const $e = P({
10930
10932
  }, 8, ["height"]),
10931
10933
  m(n(tn), { class: "v-skeleton__wrapper" }, {
10932
10934
  default: y(() => [
10933
- l.value ? D("", !0) : Ee((c(), w(n(nn), {
10935
+ l.value ? D("", !0) : De((c(), w(n(nn), {
10934
10936
  key: 0,
10935
10937
  width: e.leftWidth,
10936
10938
  class: K(["v-skeleton__left", {
@@ -10938,7 +10940,7 @@ const $e = P({
10938
10940
  }])
10939
10941
  }, {
10940
10942
  default: y(() => [
10941
- m(n($e), {
10943
+ m(n(Re), {
10942
10944
  ref_key: "apps",
10943
10945
  ref: v,
10944
10946
  region: "Apps"
@@ -10950,14 +10952,14 @@ const $e = P({
10950
10952
  ]),
10951
10953
  m(n(Rl), { class: "v-skeleton__main" }, {
10952
10954
  default: y(() => [
10953
- l.value ? (c(), w(n($e), {
10955
+ l.value ? (c(), w(n(Re), {
10954
10956
  key: 0,
10955
10957
  ref_key: "preview",
10956
10958
  ref: h,
10957
10959
  region: "Preview",
10958
10960
  preview: l.value
10959
10961
  }, null, 8, ["preview"])) : D("", !0),
10960
- Ee(m(n($e), {
10962
+ De(m(n(Re), {
10961
10963
  ref_key: "workspace",
10962
10964
  ref: p,
10963
10965
  region: "Workspace"
@@ -10967,13 +10969,13 @@ const $e = P({
10967
10969
  ]),
10968
10970
  _: 1
10969
10971
  }),
10970
- l.value ? D("", !0) : Ee((c(), w(n(nn), {
10972
+ l.value ? D("", !0) : De((c(), w(n(nn), {
10971
10973
  key: 1,
10972
10974
  width: e.rightWidth,
10973
10975
  class: "v-skeleton__right"
10974
10976
  }, {
10975
10977
  default: y(() => [
10976
- m(n($e), {
10978
+ m(n(Re), {
10977
10979
  ref_key: "settings",
10978
10980
  ref: _,
10979
10981
  region: "Settings"
@@ -10993,7 +10995,7 @@ const $e = P({
10993
10995
  height: k.footerHeight
10994
10996
  }, {
10995
10997
  default: y(() => [
10996
- m(n($e), {
10998
+ m(n(Re), {
10997
10999
  ref_key: "status",
10998
11000
  ref: d,
10999
11001
  region: "Status"
@@ -11186,12 +11188,12 @@ const $e = P({
11186
11188
  region: {}
11187
11189
  },
11188
11190
  setup(i, { expose: t }) {
11189
- const e = i, { widgets: l, widgetsRef: a } = Fe(e.region);
11191
+ const e = i, { widgets: l, widgetsRef: a } = Le(e.region);
11190
11192
  return t({
11191
11193
  widgets: l,
11192
11194
  widgetsRef: a
11193
11195
  }), (o, s) => (c(), E("div", jc, [
11194
- (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(Le), {
11196
+ (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(We), {
11195
11197
  ref_for: !0,
11196
11198
  ref_key: "widgetsRef",
11197
11199
  ref: a,
@@ -11208,12 +11210,12 @@ const $e = P({
11208
11210
  preview: { type: Boolean }
11209
11211
  },
11210
11212
  setup(i, { expose: t }) {
11211
- const e = i, { widgets: l, widgetsRef: a } = Fe(e.region);
11213
+ const e = i, { widgets: l, widgetsRef: a } = Le(e.region);
11212
11214
  return t({
11213
11215
  widgets: l,
11214
11216
  widgetsRef: a
11215
11217
  }), (o, s) => (c(), E("div", Dc, [
11216
- (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(Le), {
11218
+ (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(We), {
11217
11219
  ref_for: !0,
11218
11220
  ref_key: "widgetsRef",
11219
11221
  ref: a,
@@ -11231,12 +11233,12 @@ const $e = P({
11231
11233
  region: {}
11232
11234
  },
11233
11235
  setup(i, { expose: t }) {
11234
- const e = i, { widgets: l, widgetsRef: a } = Fe(e.region);
11236
+ const e = i, { widgets: l, widgetsRef: a } = Le(e.region);
11235
11237
  return t({
11236
11238
  widgets: l,
11237
11239
  widgetsRef: a
11238
11240
  }), (o, s) => (c(), E("div", Ic, [
11239
- (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(Le), {
11241
+ (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(We), {
11240
11242
  ref_for: !0,
11241
11243
  ref_key: "widgetsRef",
11242
11244
  ref: a,
@@ -11254,14 +11256,14 @@ const $e = P({
11254
11256
  index: { default: 0 }
11255
11257
  },
11256
11258
  setup(i, { expose: t }) {
11257
- const e = i, l = ce(), { isLogined: a, toRemoteAuth: o } = xt(), { widgets: s, widgetsRef: r } = Fe(e.region), u = C(() => s.value.filter((b) => b.openType === "panel")), f = C(() => s.value.filter((b) => b.openType !== "panel")), g = u.value[e.index], v = x(g), p = x(g), _ = (b) => {
11259
+ const e = i, l = ce(), { isLogined: a, toRemoteAuth: o } = xt(), { widgets: s, widgetsRef: r } = Le(e.region), u = C(() => s.value.filter((b) => b.openType === "panel")), f = C(() => s.value.filter((b) => b.openType !== "panel")), g = u.value[e.index], v = x(g), p = x(g), _ = (b) => {
11258
11260
  v.value = b, p.value = p.value?.name === b.name ? null : b;
11259
11261
  }, d = (b) => {
11260
11262
  b.openType === "link" && b.url && window.open(b.url), b.openType === "dialog" && Rn({
11261
11263
  title: b.label,
11262
11264
  // icon: item.icon,
11263
11265
  ...b.props,
11264
- content: Be(b.component, { engine: l, isLogined: a, toRemoteAuth: o })
11266
+ content: Oe(b.component, { engine: l, isLogined: a, toRemoteAuth: o })
11265
11267
  });
11266
11268
  };
11267
11269
  return q(p, (b) => {
@@ -11298,7 +11300,7 @@ const $e = P({
11298
11300
  (c(!0), E(z, null, W(u.value, (k) => (c(), w(Sn, {
11299
11301
  key: k.name
11300
11302
  }, [
11301
- v.value?.name === k.name ? (c(), w(n(Le), {
11303
+ v.value?.name === k.name ? (c(), w(n(We), {
11302
11304
  key: 0,
11303
11305
  ref_for: !0,
11304
11306
  ref_key: "widgetsRef",
@@ -11317,7 +11319,7 @@ const $e = P({
11317
11319
  region: {}
11318
11320
  },
11319
11321
  setup(i, { expose: t }) {
11320
- const e = i, { widgets: l, widgetsRef: a } = Fe(e.region), o = qe(
11322
+ const e = i, { widgets: l, widgetsRef: a } = Le(e.region), o = He(
11321
11323
  l.value.map((d) => ({
11322
11324
  name: d.name,
11323
11325
  command: d.name,
@@ -11370,7 +11372,7 @@ const $e = P({
11370
11372
  (c(!0), E(z, null, W(n(l), (b) => (c(), E(z, {
11371
11373
  key: b.name
11372
11374
  }, [
11373
- u.value === b.name ? (c(), w(n(Le), {
11375
+ u.value === b.name ? (c(), w(n(We), {
11374
11376
  key: 0,
11375
11377
  ref_for: !0,
11376
11378
  ref_key: "widgetsRef",
@@ -11390,9 +11392,9 @@ const $e = P({
11390
11392
  region: {}
11391
11393
  },
11392
11394
  setup(i, { expose: t }) {
11393
- const e = i, l = ce(), { current: a } = me(), { selected: o, isSelectBlock: s } = xe(), r = C(
11395
+ const e = i, l = ce(), { current: a } = me(), { selected: o, isSelectBlock: s } = Ce(), r = C(
11394
11396
  () => s.value ? ke.Block : ke.Node
11395
- ), { widgets: u, widgetsRef: f } = Fe(e.region, r), g = x(), v = x(!1), p = C(() => u.value.map((b) => ({
11397
+ ), { widgets: u, widgetsRef: f } = Le(e.region, r), g = x(), v = x(!1), p = C(() => u.value.map((b) => ({
11396
11398
  name: b.name,
11397
11399
  label: b.label,
11398
11400
  actions: b.name === "Style" ? [
@@ -11487,7 +11489,7 @@ const $e = P({
11487
11489
  (c(!0), E(z, null, W(n(u), (k) => (c(), E(z, {
11488
11490
  key: k.name
11489
11491
  }, [
11490
- g.value === k.name ? (c(), w(n(Le), {
11492
+ g.value === k.name ? (c(), w(n(We), {
11491
11493
  key: 0,
11492
11494
  ref_for: !0,
11493
11495
  ref_key: "widgetsRef",
@@ -11523,12 +11525,12 @@ const $e = P({
11523
11525
  region: {}
11524
11526
  },
11525
11527
  setup(i, { expose: t }) {
11526
- const e = i, { widgets: l, widgetsRef: a } = Fe(e.region);
11528
+ const e = i, { widgets: l, widgetsRef: a } = Le(e.region);
11527
11529
  return t({
11528
11530
  widgets: l,
11529
11531
  widgetsRef: a
11530
11532
  }), (o, s) => (c(), E("div", Nc, [
11531
- (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(Le), {
11533
+ (c(!0), E(z, null, W(n(l), (r) => (c(), w(n(We), {
11532
11534
  ref_for: !0,
11533
11535
  ref_key: "widgetsRef",
11534
11536
  ref: a,
@@ -11544,7 +11546,7 @@ const $e = P({
11544
11546
  region: {}
11545
11547
  },
11546
11548
  setup(i, { expose: t }) {
11547
- const e = i, { widgets: l, widgetsRef: a } = Fe(e.region), o = qe(
11549
+ const e = i, { widgets: l, widgetsRef: a } = Le(e.region), o = He(
11548
11550
  l.value.map((u) => ({
11549
11551
  name: u.name,
11550
11552
  command: u.name,
@@ -11567,7 +11569,7 @@ const $e = P({
11567
11569
  (c(!0), E(z, null, W(n(l), (g) => (c(), w(Sn, {
11568
11570
  key: g.name
11569
11571
  }, [
11570
- r.value === g.name ? (c(), w(n(Le), {
11572
+ r.value === g.name ? (c(), w(n(We), {
11571
11573
  key: 0,
11572
11574
  ref_for: !0,
11573
11575
  ref_key: "widgetsRef",
@@ -11608,11 +11610,11 @@ export {
11608
11610
  un as MOBILE_SIZE,
11609
11611
  ao as MOUSE_EVENT_LIST,
11610
11612
  nd as MicroApp,
11611
- je as NAME_REGEX,
11613
+ Ee as NAME_REGEX,
11612
11614
  cn as PAD_SIZE,
11613
11615
  J as Panel,
11614
11616
  co as RegionType,
11615
- $e as RegionWrapper,
11617
+ Re as RegionWrapper,
11616
11618
  vc as Renderer,
11617
11619
  It as SAVE_BLOCK_FILE_FINISH,
11618
11620
  Cc as SetterView,
@@ -11631,7 +11633,7 @@ export {
11631
11633
  hr as Viewer,
11632
11634
  ol as Viewport,
11633
11635
  ke as WidgetGroup,
11634
- Le as WidgetWrapper,
11636
+ We as WidgetWrapper,
11635
11637
  Ru as builtInDeps,
11636
11638
  Fu as builtInMaterials,
11637
11639
  oc as builtInSetters,