@opentiny/tiny-engine-plugin-page 2.7.1-alpha.1 → 2.7.1-rc.2

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.
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import "./style.css";
2
2
  import { callEntry as g, getMetaApi as p, META_SERVICE as P, usePage as A, useBlock as Ya, useModal as x, useNotify as f, useMessage as se, getMergeMeta as he, useCanvas as I, useLayout as H, useCompile as Wa, getOptions as Y, useHelp as Ra, useBreadcrumb as Te, HOOK_NAME as _t } from "@opentiny/tiny-engine-meta-register";
3
3
  import { ref as Sa, watchEffect as st, resolveComponent as ce, createBlock as ma, openBlock as ue, computed as Ma, createElementBlock as fa, createVNode as ee, createElementVNode as ea, withCtx as de, onActivated as ht, reactive as Ga, onDeactivated as St, createCommentVNode as ya, resolveDynamicComponent as pt, createTextVNode as at, defineComponent as Pt, Fragment as za, renderList as tt, watch as ct, unref as Da, normalizeClass as nt, withDirectives as vt, renderSlot as Ct, toDisplayString as Xa, vShow as Nt, onMounted as xt, onUnmounted as ut, provide as dt } from "vue";
4
4
  import { BlockHistoryList as Za, MetaCodeEditor as $a, LifeCycles as ra, SvgButton as W, ButtonGroup as Se, PluginSetting as ve, PluginPanel as Ba } from "@opentiny/tiny-engine-common";
5
- import { isEqual as O, extend as J } from "@opentiny/vue-renderless/common/object";
5
+ import { isEqual as O, extend as j } from "@opentiny/vue-renderless/common/object";
6
6
  import { Checkbox as bt, CollapseItem as ot, Collapse as rt, Button as mt, Input as ft, Popover as wt, Search as Et, Radio as Tt, Select as It, FormItem as Ot, Form as Mt } from "@opentiny/vue";
7
7
  import { constants as R } from "@opentiny/tiny-engine-utils";
8
8
  import { isVsCodeEnv as la } from "@opentiny/tiny-engine-common/js/environments";
@@ -525,7 +525,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
525
525
  getMetaApi: p,
526
526
  META_SERVICE: P,
527
527
  useMessage: se,
528
- extend: J,
528
+ extend: j,
529
529
  isEqual: O,
530
530
  constants: R,
531
531
  isVsCodeEnv: la,
@@ -565,7 +565,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
565
565
  getMetaApi: p,
566
566
  META_SERVICE: P,
567
567
  useMessage: se,
568
- extend: J,
568
+ extend: j,
569
569
  isEqual: O,
570
570
  constants: R,
571
571
  isVsCodeEnv: la,
@@ -698,7 +698,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
698
698
  getMetaApi: p,
699
699
  META_SERVICE: P,
700
700
  useMessage: se,
701
- extend: J,
701
+ extend: j,
702
702
  isEqual: O,
703
703
  constants: R,
704
704
  isVsCodeEnv: la,
@@ -774,7 +774,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
774
774
  getMetaApi: p,
775
775
  META_SERVICE: P,
776
776
  useMessage: se,
777
- extend: J,
777
+ extend: j,
778
778
  isEqual: O,
779
779
  constants: R,
780
780
  isVsCodeEnv: la,
@@ -849,7 +849,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
849
849
  getMetaApi: p,
850
850
  META_SERVICE: P,
851
851
  useMessage: se,
852
- extend: J,
852
+ extend: j,
853
853
  isEqual: O,
854
854
  constants: R,
855
855
  isVsCodeEnv: la,
@@ -925,7 +925,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
925
925
  getMetaApi: p,
926
926
  META_SERVICE: P,
927
927
  useMessage: se,
928
- extend: J,
928
+ extend: j,
929
929
  isEqual: O,
930
930
  constants: R,
931
931
  isVsCodeEnv: la,
@@ -1011,7 +1011,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1011
1011
  getMetaApi: p,
1012
1012
  META_SERVICE: P,
1013
1013
  useMessage: se,
1014
- extend: J,
1014
+ extend: j,
1015
1015
  isEqual: O,
1016
1016
  constants: R,
1017
1017
  isVsCodeEnv: la,
@@ -1030,12 +1030,12 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1030
1030
  }), v = g(async () => {
1031
1031
  const {
1032
1032
  page_content: k,
1033
- ...j
1033
+ ...J
1034
1034
  } = s(), {
1035
1035
  page_content: z,
1036
1036
  ...me
1037
1037
  } = i.currentPageData, fe = {
1038
- ...j,
1038
+ ...J,
1039
1039
  ...me,
1040
1040
  page_content: {
1041
1041
  ...k,
@@ -1116,7 +1116,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1116
1116
  getMetaApi: p,
1117
1117
  META_SERVICE: P,
1118
1118
  useMessage: se,
1119
- extend: J,
1119
+ extend: j,
1120
1120
  isEqual: O,
1121
1121
  constants: R,
1122
1122
  isVsCodeEnv: la,
@@ -1132,12 +1132,12 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1132
1132
  closePageSettingPanel: K,
1133
1133
  PAGE_SETTING_SESSION: aa
1134
1134
  })
1135
- }), V = g((k, j, z = !0) => {
1135
+ }), V = g((k, J, z = !0) => {
1136
1136
  var ka;
1137
1137
  const me = i.currentPageDataCopy.route !== i.currentPageData.route, fe = ((ka = c == null ? void 0 : c.currentPage) == null ? void 0 : ka.id) === k;
1138
1138
  return le({
1139
1139
  id: k,
1140
- params: j,
1140
+ params: J,
1141
1141
  routerChange: me,
1142
1142
  isCurEditPage: fe,
1143
1143
  isUpdateTree: z
@@ -1199,7 +1199,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1199
1199
  getMetaApi: p,
1200
1200
  META_SERVICE: P,
1201
1201
  useMessage: se,
1202
- extend: J,
1202
+ extend: j,
1203
1203
  isEqual: O,
1204
1204
  constants: R,
1205
1205
  isVsCodeEnv: la,
@@ -1216,17 +1216,17 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1216
1216
  PAGE_SETTING_SESSION: aa
1217
1217
  })
1218
1218
  }), w = g((k) => {
1219
- const j = {
1219
+ const J = {
1220
1220
  ...k,
1221
1221
  id: k.page
1222
1222
  };
1223
- ["page", "backupTime", "backupTitle", "time"].forEach((fe) => delete j[fe]);
1223
+ ["page", "backupTime", "backupTitle", "time"].forEach((fe) => delete J[fe]);
1224
1224
  const me = {
1225
1225
  ...i.currentPageData,
1226
- ...j,
1226
+ ...J,
1227
1227
  message: "还原页面"
1228
1228
  };
1229
- V(j.id, me).then((fe) => {
1229
+ V(J.id, me).then((fe) => {
1230
1230
  var _a;
1231
1231
  ((_a = c == null ? void 0 : c.currentPage) == null ? void 0 : _a.id) === (fe == null ? void 0 : fe.id) && y(fe.page_content, fe), l(fe);
1232
1232
  });
@@ -1287,7 +1287,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1287
1287
  getMetaApi: p,
1288
1288
  META_SERVICE: P,
1289
1289
  useMessage: se,
1290
- extend: J,
1290
+ extend: j,
1291
1291
  isEqual: O,
1292
1292
  constants: R,
1293
1293
  isVsCodeEnv: la,
@@ -1306,13 +1306,13 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1306
1306
  }), X = g(async () => {
1307
1307
  const {
1308
1308
  id: k,
1309
- name: j,
1309
+ name: J,
1310
1310
  page_content: z
1311
1311
  } = i.currentPageData, me = {
1312
1312
  ...i.currentPageData,
1313
1313
  page_content: {
1314
1314
  ...z,
1315
- fileName: j
1315
+ fileName: J
1316
1316
  }
1317
1317
  }, fe = await V(k, me);
1318
1318
  l(fe);
@@ -1373,7 +1373,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1373
1373
  getMetaApi: p,
1374
1374
  META_SERVICE: P,
1375
1375
  useMessage: se,
1376
- extend: J,
1376
+ extend: j,
1377
1377
  isEqual: O,
1378
1378
  constants: R,
1379
1379
  isVsCodeEnv: la,
@@ -1392,9 +1392,9 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1392
1392
  }), q = g((k) => {
1393
1393
  if (!k)
1394
1394
  return;
1395
- const j = i.currentPageData.page_content;
1396
- j.lifeCycles = {
1397
- ...j.lifeCycles || {},
1395
+ const J = i.currentPageData.page_content;
1396
+ J.lifeCycles = {
1397
+ ...J.lifeCycles || {},
1398
1398
  ...k
1399
1399
  };
1400
1400
  }, {
@@ -1454,7 +1454,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1454
1454
  getMetaApi: p,
1455
1455
  META_SERVICE: P,
1456
1456
  useMessage: se,
1457
- extend: J,
1457
+ extend: j,
1458
1458
  isEqual: O,
1459
1459
  constants: R,
1460
1460
  isVsCodeEnv: la,
@@ -1471,8 +1471,8 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1471
1471
  PAGE_SETTING_SESSION: aa
1472
1472
  })
1473
1473
  }), te = g(() => {
1474
- const k = i.currentPageData, j = J(!0, {}, k);
1475
- i.isNew = !0, j.name = `${j.name}Copy`, j.route = `${j.route}Copy`, i.currentPageData = j, i.currentPageDataCopy = J(!0, {}, j), i.defaultPage = null;
1474
+ const k = i.currentPageData, J = j(!0, {}, k);
1475
+ i.isNew = !0, J.name = `${J.name}Copy`, J.route = `${J.route}Copy`, i.currentPageData = J, i.currentPageDataCopy = j(!0, {}, J), i.defaultPage = null;
1476
1476
  }, {
1477
1477
  metaData: {
1478
1478
  id: "engine.plugins.appmanage.PageSetting.copyPageData"
@@ -1530,7 +1530,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1530
1530
  getMetaApi: p,
1531
1531
  META_SERVICE: P,
1532
1532
  useMessage: se,
1533
- extend: J,
1533
+ extend: j,
1534
1534
  isEqual: O,
1535
1535
  constants: R,
1536
1536
  isVsCodeEnv: la,
@@ -1611,7 +1611,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1611
1611
  getMetaApi: p,
1612
1612
  META_SERVICE: P,
1613
1613
  useMessage: se,
1614
- extend: J,
1614
+ extend: j,
1615
1615
  isEqual: O,
1616
1616
  constants: R,
1617
1617
  isVsCodeEnv: la,
@@ -1628,12 +1628,12 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1628
1628
  PAGE_SETTING_SESSION: aa
1629
1629
  })
1630
1630
  }), $ = g(async () => {
1631
- var j;
1631
+ var J;
1632
1632
  const k = {
1633
1633
  ...i.defaultPage,
1634
1634
  isDefault: !0
1635
1635
  };
1636
- V((j = i.defaultPage) == null ? void 0 : j.id, k, !1).then((z) => {
1636
+ V((J = i.defaultPage) == null ? void 0 : J.id, k, !1).then((z) => {
1637
1637
  z && X();
1638
1638
  });
1639
1639
  }, {
@@ -1693,7 +1693,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1693
1693
  getMetaApi: p,
1694
1694
  META_SERVICE: P,
1695
1695
  useMessage: se,
1696
- extend: J,
1696
+ extend: j,
1697
1697
  isEqual: O,
1698
1698
  constants: R,
1699
1699
  isVsCodeEnv: la,
@@ -1713,7 +1713,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1713
1713
  if (i.isNew)
1714
1714
  i.currentPageData.message = "Page auto save", v();
1715
1715
  else {
1716
- const k = "创建历史备份信息", j = {
1716
+ const k = "创建历史备份信息", J = {
1717
1717
  render: () => ee(ft, {
1718
1718
  placeholder: "历史备份信息",
1719
1719
  modelValue: B.historyMessage,
@@ -1728,7 +1728,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1728
1728
  },
1729
1729
  ctx: () => ({
1730
1730
  title: k,
1731
- messageRender: j,
1731
+ messageRender: J,
1732
1732
  exec: z,
1733
1733
  props: a,
1734
1734
  emit: t,
@@ -1782,7 +1782,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1782
1782
  getMetaApi: p,
1783
1783
  META_SERVICE: P,
1784
1784
  useMessage: se,
1785
- extend: J,
1785
+ extend: j,
1786
1786
  isEqual: O,
1787
1787
  constants: R,
1788
1788
  isVsCodeEnv: la,
@@ -1801,7 +1801,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1801
1801
  });
1802
1802
  h({
1803
1803
  title: k,
1804
- message: j,
1804
+ message: J,
1805
1805
  exec: z
1806
1806
  });
1807
1807
  }
@@ -1862,7 +1862,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1862
1862
  getMetaApi: p,
1863
1863
  META_SERVICE: P,
1864
1864
  useMessage: se,
1865
- extend: J,
1865
+ extend: j,
1866
1866
  isEqual: O,
1867
1867
  constants: R,
1868
1868
  isVsCodeEnv: la,
@@ -1937,7 +1937,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1937
1937
  getMetaApi: p,
1938
1938
  META_SERVICE: P,
1939
1939
  useMessage: se,
1940
- extend: J,
1940
+ extend: j,
1941
1941
  isEqual: O,
1942
1942
  constants: R,
1943
1943
  isVsCodeEnv: la,
@@ -1956,15 +1956,15 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
1956
1956
  }), re = g((k = []) => {
1957
1957
  if (!Array.isArray(k))
1958
1958
  return [];
1959
- const j = [];
1959
+ const J = [];
1960
1960
  return k.forEach((z) => {
1961
1961
  var me;
1962
1962
  if (z != null && z.isPage) {
1963
- j.push(z);
1963
+ J.push(z);
1964
1964
  return;
1965
1965
  }
1966
- !(z != null && z.isPage) && ((me = z == null ? void 0 : z.children) != null && me.length) && j.push(...re(z.children));
1967
- }), j;
1966
+ !(z != null && z.isPage) && ((me = z == null ? void 0 : z.children) != null && me.length) && J.push(...re(z.children));
1967
+ }), J;
1968
1968
  }, {
1969
1969
  metaData: {
1970
1970
  id: "engine.plugins.appmanage.PageSetting.collectAllPage"
@@ -2022,7 +2022,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
2022
2022
  getMetaApi: p,
2023
2023
  META_SERVICE: P,
2024
2024
  useMessage: se,
2025
- extend: J,
2025
+ extend: j,
2026
2026
  isEqual: O,
2027
2027
  constants: R,
2028
2028
  isVsCodeEnv: la,
@@ -2039,8 +2039,8 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
2039
2039
  PAGE_SETTING_SESSION: aa
2040
2040
  })
2041
2041
  }), ge = g(() => {
2042
- var k, j;
2043
- if ((j = (k = i.treeDataMapping[i.currentPageData.id]) == null ? void 0 : k.children) != null && j.length) {
2042
+ var k, J;
2043
+ if ((J = (k = i.treeDataMapping[i.currentPageData.id]) == null ? void 0 : k.children) != null && J.length) {
2044
2044
  f({
2045
2045
  type: "error",
2046
2046
  message: "此页面存在子页面或子文件夹,不能删除!"
@@ -2133,7 +2133,7 @@ const ua = /* @__PURE__ */ Fa(Vt, [["render", Gt], ["__scopeId", "data-v-94581fb
2133
2133
  getMetaApi: p,
2134
2134
  META_SERVICE: P,
2135
2135
  useMessage: se,
2136
- extend: J,
2136
+ extend: j,
2137
2137
  isEqual: O,
2138
2138
  constants: R,
2139
2139
  isVsCodeEnv: la,
@@ -2186,7 +2186,7 @@ function Lt(a, t, n, e, s, i) {
2186
2186
  onClick: e.savePageSetting
2187
2187
  }, {
2188
2188
  default: de(() => t[1] || (t[1] = [
2189
- at("保存")
2189
+ at("保存", -1)
2190
2190
  ])),
2191
2191
  _: 1,
2192
2192
  __: [1]
@@ -2681,7 +2681,7 @@ function jt(a, t, n, e, s, i) {
2681
2681
  onClick: e.saveFolderSetting
2682
2682
  }, {
2683
2683
  default: de(() => t[1] || (t[1] = [
2684
- at("保存")
2684
+ at("保存", -1)
2685
2685
  ])),
2686
2686
  _: 1,
2687
2687
  __: [1]
@@ -3364,7 +3364,7 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
3364
3364
  }, void 0, !0)], 42, zt)), [[Nt, !w.collapsed]])), 128))], 34);
3365
3365
  };
3366
3366
  }
3367
- }), ia = /* @__PURE__ */ Fa(Zt, [["__scopeId", "data-v-11accd93"]]), {
3367
+ }), ia = /* @__PURE__ */ Fa(Zt, [["__scopeId", "data-v-b6f00a9c"]]), {
3368
3368
  PAGE_STATUS: oa
3369
3369
  } = R, $t = {
3370
3370
  components: {
@@ -3483,7 +3483,7 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
3483
3483
  }), {
3484
3484
  subscribe: u,
3485
3485
  unsubscribe: E
3486
- } = se(), b = g(async (k) => await m(k), {
3486
+ } = se(), b = g((k) => m(k), {
3487
3487
  metaData: {
3488
3488
  id: "engine.plugins.appmanage.PageTree.refreshPageList"
3489
3489
  },
@@ -3774,18 +3774,18 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
3774
3774
  meta: Q,
3775
3775
  PAGE_STATUS: oa
3776
3776
  })
3777
- }), L = g((k, j) => {
3777
+ }), L = g((k, J) => {
3778
3778
  var fe;
3779
3779
  k == null || k.stopPropagation();
3780
3780
  const {
3781
3781
  id: z,
3782
3782
  isPage: me
3783
- } = j;
3784
- !s() && z === ((fe = N == null ? void 0 : N.currentNodeData) == null ? void 0 : fe.id) || !me || (i() && l() ? G(j) : n({
3783
+ } = J;
3784
+ !s() && z === ((fe = N == null ? void 0 : N.currentNodeData) == null ? void 0 : fe.id) || !me || (i() && l() ? G(J) : n({
3785
3785
  title: "提示",
3786
3786
  message: `${s() ? "区块" : "页面"}尚未保存,是否要继续切换?`,
3787
3787
  exec: () => {
3788
- r(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy), G(j);
3788
+ r(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy), G(J);
3789
3789
  }
3790
3790
  }));
3791
3791
  }, {
@@ -3856,20 +3856,20 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
3856
3856
  meta: Q,
3857
3857
  PAGE_STATUS: oa
3858
3858
  })
3859
- }), B = g((k, j, z) => {
3859
+ }), B = g((k, J, z) => {
3860
3860
  var me;
3861
- if (k == null || k.stopPropagation(), z && j.isPage) {
3862
- const fe = ((me = j.occupier) == null ? void 0 : me.username) || "";
3861
+ if (k == null || k.stopPropagation(), z && J.isPage) {
3862
+ const fe = ((me = J.occupier) == null ? void 0 : me.username) || "";
3863
3863
  x().message({
3864
3864
  message: `您点击的页面被${fe}锁定,暂时无法编辑,请联系解锁`
3865
3865
  });
3866
3866
  return;
3867
3867
  }
3868
- O(o.currentPageData, o.currentPageDataCopy) ? t("openSettingPanel", j) : n({
3868
+ O(o.currentPageData, o.currentPageDataCopy) ? t("openSettingPanel", J) : n({
3869
3869
  title: "提示",
3870
3870
  message: `当前页面或文件夹${o.currentPageData.name}尚未保存,是否要继续切换?`,
3871
3871
  exec: () => {
3872
- r(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy), t("openSettingPanel", j);
3872
+ r(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy), t("openSettingPanel", J);
3873
3873
  }
3874
3874
  });
3875
3875
  }, {
@@ -3939,8 +3939,8 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
3939
3939
  meta: Q,
3940
3940
  PAGE_STATUS: oa
3941
3941
  })
3942
- }), S = {}, v = g((k, j) => {
3943
- S[j] = k;
3942
+ }), S = {}, v = g((k, J) => {
3943
+ S[J] = k;
3944
3944
  }, {
3945
3945
  metaData: {
3946
3946
  id: "engine.plugins.appmanage.PageTree.setPopoverRef"
@@ -4458,11 +4458,11 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
4458
4458
  // { type: 'delete', label: '删除', class: ['danger'], action: deleteNode }
4459
4459
  ].map((k) => ({
4460
4460
  ...k,
4461
- action: (j) => {
4461
+ action: (J) => {
4462
4462
  var z, me, fe;
4463
- (z = k.action) == null || z.call(k, j, t), (fe = (me = S[j.id]) == null ? void 0 : me.doClose) == null || fe.call(me);
4463
+ (z = k.action) == null || z.call(k, J, t), (fe = (me = S[J.id]) == null ? void 0 : me.doClose) == null || fe.call(me);
4464
4464
  }
4465
- })), ne = g((k, j) => k === c ? $.slice(0, 1) : !j.rawData.isPage || j.rawData.group === "public" || String(j.parentId) !== "0" ? $.filter((z) => z.type !== "settingHome") : $, {
4465
+ })), ne = g((k, J) => k === c ? $.slice(0, 1) : !J.rawData.isPage || J.rawData.group === "public" ? $.filter((z) => z.type !== "settingHome") : $, {
4466
4466
  metaData: {
4467
4467
  id: "engine.plugins.appmanage.PageTree.getRowOperations"
4468
4468
  },
@@ -4533,7 +4533,7 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
4533
4533
  }), oe = g((k) => {
4534
4534
  var Qa;
4535
4535
  const {
4536
- id: j,
4536
+ id: J,
4537
4537
  name: z,
4538
4538
  page_content: me
4539
4539
  } = k, fe = {
@@ -4542,9 +4542,9 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
4542
4542
  ...me,
4543
4543
  fileName: z
4544
4544
  }
4545
- }, _a = ((Qa = e == null ? void 0 : e.currentPage) == null ? void 0 : Qa.id) === j;
4545
+ }, _a = ((Qa = e == null ? void 0 : e.currentPage) == null ? void 0 : Qa.id) === J;
4546
4546
  return le({
4547
- id: j,
4547
+ id: J,
4548
4548
  params: fe,
4549
4549
  isCurEditPage: _a
4550
4550
  });
@@ -4618,9 +4618,9 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
4618
4618
  })
4619
4619
  }), re = g((k) => {
4620
4620
  const {
4621
- id: j
4621
+ id: J
4622
4622
  } = k;
4623
- return _(j, {
4623
+ return _(J, {
4624
4624
  ...k,
4625
4625
  page_content: null
4626
4626
  }).then(() => {
@@ -4705,9 +4705,9 @@ const ja = /* @__PURE__ */ Fa(qt, [["render", jt], ["__scopeId", "data-v-79e10f7
4705
4705
  meta: Q,
4706
4706
  PAGE_STATUS: oa
4707
4707
  })
4708
- }), ge = g((k, j) => {
4709
- O(o.currentPageData, o.currentPageDataCopy) ? (K(), ie(), o.currentPageData.id = k.id, r(j.id, k.parentId), d(), h(k.id).then((z) => {
4710
- z.parentId = j.id, z.isPage ? (z.isDefault = !1, oe(z)) : re(z);
4708
+ }), ge = g((k, J) => {
4709
+ O(o.currentPageData, o.currentPageDataCopy) ? (K(), ie(), o.currentPageData.id = k.id, r(J.id, k.parentId), d(), h(k.id).then((z) => {
4710
+ z.parentId = J.id, z.isPage ? (z.isDefault = !1, oe(z)) : re(z);
4711
4711
  }).catch((z) => {
4712
4712
  f({
4713
4713
  type: "error",
@@ -5054,7 +5054,7 @@ function rn(a, t, n, e, s, i) {
5054
5054
  }, 8, ["modelValue"])
5055
5055
  ], 64);
5056
5056
  }
5057
- const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faff"]]), Ka = {
5057
+ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f74de849"]]), Ka = {
5058
5058
  getPageById: async (a) => {
5059
5059
  if (a)
5060
5060
  return pa(a);
@@ -5143,7 +5143,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5143
5143
  } catch (G) {
5144
5144
  throw new Error(G);
5145
5145
  }
5146
- s.currentPageDataCopy = J(!0, {}, s.currentPageData), h.isFolder = !1, De();
5146
+ s.currentPageDataCopy = j(!0, {}, s.currentPageData), h.isFolder = !1, De();
5147
5147
  }, {
5148
5148
  metaData: {
5149
5149
  id: "engine.plugins.appmanage.Main.createNewPage"
@@ -5178,7 +5178,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5178
5178
  useLayout: H,
5179
5179
  PluginPanel: Ba,
5180
5180
  SvgButton: W,
5181
- extend: J,
5181
+ extend: j,
5182
5182
  PageSetting: Ua,
5183
5183
  openPageSettingPanel: De,
5184
5184
  closePageSettingPanel: K,
@@ -5195,7 +5195,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5195
5195
  parentId: b,
5196
5196
  route: "",
5197
5197
  name: "untitled"
5198
- }, s.currentPageDataCopy = J(!0, {}, s.currentPageData), h.isFolder = !0, ha();
5198
+ }, s.currentPageDataCopy = j(!0, {}, s.currentPageData), h.isFolder = !0, ha();
5199
5199
  }, {
5200
5200
  metaData: {
5201
5201
  id: "engine.plugins.appmanage.Main.createNewFolder"
@@ -5230,7 +5230,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5230
5230
  useLayout: H,
5231
5231
  PluginPanel: Ba,
5232
5232
  SvgButton: W,
5233
- extend: J,
5233
+ extend: j,
5234
5234
  PageSetting: Ua,
5235
5235
  openPageSettingPanel: De,
5236
5236
  closePageSettingPanel: K,
@@ -5299,7 +5299,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5299
5299
  useLayout: H,
5300
5300
  PluginPanel: Ba,
5301
5301
  SvgButton: W,
5302
- extend: J,
5302
+ extend: j,
5303
5303
  PageSetting: Ua,
5304
5304
  openPageSettingPanel: De,
5305
5305
  closePageSettingPanel: K,
@@ -5355,7 +5355,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5355
5355
  useLayout: H,
5356
5356
  PluginPanel: Ba,
5357
5357
  SvgButton: W,
5358
- extend: J,
5358
+ extend: j,
5359
5359
  PageSetting: Ua,
5360
5360
  openPageSettingPanel: De,
5361
5361
  closePageSettingPanel: K,
@@ -5405,7 +5405,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5405
5405
  useLayout: H,
5406
5406
  PluginPanel: Ba,
5407
5407
  SvgButton: W,
5408
- extend: J,
5408
+ extend: j,
5409
5409
  PageSetting: Ua,
5410
5410
  openPageSettingPanel: De,
5411
5411
  closePageSettingPanel: K,
@@ -5453,7 +5453,7 @@ const Ja = /* @__PURE__ */ Fa($t, [["render", rn], ["__scopeId", "data-v-f6d0faf
5453
5453
  useLayout: H,
5454
5454
  PluginPanel: Ba,
5455
5455
  SvgButton: W,
5456
- extend: J,
5456
+ extend: j,
5457
5457
  PageSetting: Ua,
5458
5458
  openPageSettingPanel: De,
5459
5459
  closePageSettingPanel: K,
@@ -5591,7 +5591,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5591
5591
  materialsOptions: t,
5592
5592
  formatCssRule: n,
5593
5593
  baseStyle: e,
5594
- extend: J,
5594
+ extend: j,
5595
5595
  isValuesEqual: O,
5596
5596
  constants: R,
5597
5597
  getCanvasStatus: Z,
@@ -5649,7 +5649,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5649
5649
  id: "engine.service.page.usePage.generateCssString"
5650
5650
  },
5651
5651
  ctx: () => ({
5652
- extend: J,
5652
+ extend: j,
5653
5653
  isValuesEqual: O,
5654
5654
  constants: R,
5655
5655
  getCanvasStatus: Z,
@@ -5716,7 +5716,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5716
5716
  id: "engine.service.page.usePage.getDefaultPage"
5717
5717
  },
5718
5718
  ctx: () => ({
5719
- extend: J,
5719
+ extend: j,
5720
5720
  isValuesEqual: O,
5721
5721
  constants: R,
5722
5722
  getCanvasStatus: Z,
@@ -5776,7 +5776,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5776
5776
  id: "engine.service.page.usePage.syncPageContent"
5777
5777
  },
5778
5778
  ctx: () => ({
5779
- extend: J,
5779
+ extend: j,
5780
5780
  isValuesEqual: O,
5781
5781
  constants: R,
5782
5782
  getCanvasStatus: Z,
@@ -5824,13 +5824,13 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5824
5824
  getFamily: Ye
5825
5825
  })
5826
5826
  }), Ae = g(() => {
5827
- we(), U.currentPageDataCopy = J(!0, {}, U.currentPageData);
5827
+ we(), U.currentPageDataCopy = j(!0, {}, U.currentPageData);
5828
5828
  }, {
5829
5829
  metaData: {
5830
5830
  id: "engine.service.page.usePage.updatePageSettingAfterSave"
5831
5831
  },
5832
5832
  ctx: () => ({
5833
- extend: J,
5833
+ extend: j,
5834
5834
  isValuesEqual: O,
5835
5835
  constants: R,
5836
5836
  getCanvasStatus: Z,
@@ -5906,7 +5906,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5906
5906
  id: "engine.service.page.usePage.isCurrentDataSame"
5907
5907
  },
5908
5908
  ctx: () => ({
5909
- extend: J,
5909
+ extend: j,
5910
5910
  isValuesEqual: O,
5911
5911
  constants: R,
5912
5912
  getCanvasStatus: Z,
@@ -5961,7 +5961,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
5961
5961
  id: "engine.service.page.usePage.getParentNode"
5962
5962
  },
5963
5963
  ctx: () => ({
5964
- extend: J,
5964
+ extend: j,
5965
5965
  isValuesEqual: O,
5966
5966
  constants: R,
5967
5967
  getCanvasStatus: Z,
@@ -6027,7 +6027,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6027
6027
  id: "engine.service.page.usePage.changeTreeData"
6028
6028
  },
6029
6029
  ctx: () => ({
6030
- extend: J,
6030
+ extend: j,
6031
6031
  isValuesEqual: O,
6032
6032
  constants: R,
6033
6033
  getCanvasStatus: Z,
@@ -6079,7 +6079,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6079
6079
  id: "engine.service.page.usePage.getPageContent"
6080
6080
  },
6081
6081
  ctx: () => ({
6082
- extend: J,
6082
+ extend: j,
6083
6083
  isValuesEqual: O,
6084
6084
  constants: R,
6085
6085
  getCanvasStatus: Z,
@@ -6127,13 +6127,13 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6127
6127
  getFamily: Ye
6128
6128
  })
6129
6129
  }), He = g((a) => {
6130
- U.currentPageData = a, U.currentPageDataCopy = J(!0, {}, a), U.oldParentId = a.parentId;
6130
+ U.currentPageData = a, U.currentPageDataCopy = j(!0, {}, a), U.oldParentId = a.parentId;
6131
6131
  }, {
6132
6132
  metaData: {
6133
6133
  id: "engine.service.page.usePage.initCurrentPageData"
6134
6134
  },
6135
6135
  ctx: () => ({
6136
- extend: J,
6136
+ extend: j,
6137
6137
  isValuesEqual: O,
6138
6138
  constants: R,
6139
6139
  getCanvasStatus: Z,
@@ -6187,7 +6187,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6187
6187
  id: "engine.service.page.usePage.resetPageData"
6188
6188
  },
6189
6189
  ctx: () => ({
6190
- extend: J,
6190
+ extend: j,
6191
6191
  isValuesEqual: O,
6192
6192
  constants: R,
6193
6193
  getCanvasStatus: Z,
@@ -6239,7 +6239,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6239
6239
  id: "engine.service.page.usePage.isChangePageData"
6240
6240
  },
6241
6241
  ctx: () => ({
6242
- extend: J,
6242
+ extend: j,
6243
6243
  isValuesEqual: O,
6244
6244
  constants: R,
6245
6245
  getCanvasStatus: Z,
@@ -6306,7 +6306,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6306
6306
  id: "engine.service.page.usePage.generateTree"
6307
6307
  },
6308
6308
  ctx: () => ({
6309
- extend: J,
6309
+ extend: j,
6310
6310
  isValuesEqual: O,
6311
6311
  constants: R,
6312
6312
  getCanvasStatus: Z,
@@ -6390,7 +6390,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6390
6390
  id: "engine.service.page.usePage.getPageList"
6391
6391
  },
6392
6392
  ctx: () => ({
6393
- extend: J,
6393
+ extend: j,
6394
6394
  isValuesEqual: O,
6395
6395
  constants: R,
6396
6396
  getCanvasStatus: Z,
@@ -6447,7 +6447,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6447
6447
  id: "engine.service.page.usePage.getAncestorsRecursively"
6448
6448
  },
6449
6449
  ctx: () => ({
6450
- extend: J,
6450
+ extend: j,
6451
6451
  isValuesEqual: O,
6452
6452
  constants: R,
6453
6453
  getCanvasStatus: Z,
@@ -6504,7 +6504,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6504
6504
  id: "engine.service.page.usePage.getAncestors"
6505
6505
  },
6506
6506
  ctx: () => ({
6507
- extend: J,
6507
+ extend: j,
6508
6508
  isValuesEqual: O,
6509
6509
  constants: R,
6510
6510
  getCanvasStatus: Z,
@@ -6564,7 +6564,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6564
6564
  id: "engine.service.page.usePage.flatternFolder"
6565
6565
  },
6566
6566
  ctx: () => ({
6567
- extend: J,
6567
+ extend: j,
6568
6568
  isValuesEqual: O,
6569
6569
  constants: R,
6570
6570
  getCanvasStatus: Z,
@@ -6620,7 +6620,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6620
6620
  id: "engine.service.page.usePage.getPageChildren"
6621
6621
  },
6622
6622
  ctx: () => ({
6623
- extend: J,
6623
+ extend: j,
6624
6624
  isValuesEqual: O,
6625
6625
  constants: R,
6626
6626
  getCanvasStatus: Z,
@@ -6677,7 +6677,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6677
6677
  id: "engine.service.page.usePage.clearCurrentState"
6678
6678
  },
6679
6679
  ctx: () => ({
6680
- extend: J,
6680
+ extend: j,
6681
6681
  isValuesEqual: O,
6682
6682
  constants: R,
6683
6683
  getCanvasStatus: Z,
@@ -6754,7 +6754,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6754
6754
  id: "engine.service.page.usePage.switchPage"
6755
6755
  },
6756
6756
  ctx: () => ({
6757
- extend: J,
6757
+ extend: j,
6758
6758
  isValuesEqual: O,
6759
6759
  constants: R,
6760
6760
  getCanvasStatus: Z,
@@ -6831,7 +6831,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6831
6831
  pageId: a,
6832
6832
  clearPreview: t,
6833
6833
  checkPageSaved: n,
6834
- extend: J,
6834
+ extend: j,
6835
6835
  isValuesEqual: O,
6836
6836
  constants: R,
6837
6837
  getCanvasStatus: Z,
@@ -6887,7 +6887,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6887
6887
  id: "engine.service.page.usePage.switchPageWithConfirm"
6888
6888
  },
6889
6889
  ctx: () => ({
6890
- extend: J,
6890
+ extend: j,
6891
6891
  isValuesEqual: O,
6892
6892
  constants: R,
6893
6893
  getCanvasStatus: Z,
@@ -6942,7 +6942,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
6942
6942
  id: "engine.service.page.usePage.updatePageContent"
6943
6943
  },
6944
6944
  ctx: () => ({
6945
- extend: J,
6945
+ extend: j,
6946
6946
  isValuesEqual: O,
6947
6947
  constants: R,
6948
6948
  getCanvasStatus: Z,
@@ -7002,7 +7002,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
7002
7002
  id: "engine.service.page.usePage.fetchPageDetailIfNeeded"
7003
7003
  },
7004
7004
  ctx: () => ({
7005
- extend: J,
7005
+ extend: j,
7006
7006
  isValuesEqual: O,
7007
7007
  constants: R,
7008
7008
  getCanvasStatus: Z,
@@ -7057,7 +7057,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
7057
7057
  id: "engine.service.page.usePage.updateParentId"
7058
7058
  },
7059
7059
  ctx: () => ({
7060
- extend: J,
7060
+ extend: j,
7061
7061
  isValuesEqual: O,
7062
7062
  constants: R,
7063
7063
  getCanvasStatus: Z,
@@ -7116,7 +7116,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
7116
7116
  id: "engine.service.page.usePage.handlePageDetail"
7117
7117
  },
7118
7118
  ctx: () => ({
7119
- extend: J,
7119
+ extend: j,
7120
7120
  isValuesEqual: O,
7121
7121
  constants: R,
7122
7122
  getCanvasStatus: Z,
@@ -7184,7 +7184,7 @@ const un = /* @__PURE__ */ Fa(ln, [["render", cn], ["__scopeId", "data-v-db4f4cc
7184
7184
  id: "engine.service.page.usePage.getFamily"
7185
7185
  },
7186
7186
  ctx: () => ({
7187
- extend: J,
7187
+ extend: j,
7188
7188
  isValuesEqual: O,
7189
7189
  constants: R,
7190
7190
  getCanvasStatus: Z,
@@ -7639,7 +7639,7 @@ function Cn(a, t, n, e, s, i) {
7639
7639
  label: "staticPages"
7640
7640
  }, {
7641
7641
  default: de(() => t[6] || (t[6] = [
7642
- at(" 静态页面 ")
7642
+ at(" 静态页面 ", -1)
7643
7643
  ])),
7644
7644
  _: 1,
7645
7645
  __: [6]
@@ -7651,7 +7651,7 @@ function Cn(a, t, n, e, s, i) {
7651
7651
  label: "publicPages"
7652
7652
  }, {
7653
7653
  default: de(() => t[7] || (t[7] = [
7654
- at(" 公共页面 ")
7654
+ at(" 公共页面 ", -1)
7655
7655
  ])),
7656
7656
  _: 1,
7657
7657
  __: [7]