@opentiny/tiny-engine-plugin-page 1.0.3 → 2.0.0-alpha.1

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
@@ -1,119 +1,119 @@
1
1
  import "./style.css";
2
- import { reactive as $, watchEffect as z, computed as re, inject as je, resolveComponent as l, openBlock as T, createElementBlock as X, createElementVNode as R, createVNode as s, withCtx as m, createTextVNode as Z, toDisplayString as ue, pushScopeId as _e, popScopeId as me, ref as A, createBlock as G, createCommentVNode as H, Fragment as de, renderList as Je, provide as Xe } from "vue";
3
- import { usePage as M, useModal as W, useNotify as E, useBlock as Ke, useEditorInfo as We, getGlobalConfig as Ne, useApp as ce, useCanvas as fe, useLayout as oe, useBreadcrumb as ze, useResource as Qe, useHelp as Ye } from "@opentiny/tiny-engine-controller";
4
- import { SvgButton as ie, BlockHistoryList as Ze, MetaCodeEditor as $e, LifeCycles as et, PluginSetting as ke, ButtonGroup as xe, PluginPanel as tt, LinkButton as at } from "@opentiny/tiny-engine-common";
5
- import { isEqual as Pe, extend as le } from "@opentiny/vue-renderless/common/object";
6
- import { Checkbox as nt, Form as Ve, FormItem as Ee, Input as Re, Select as ot, Radio as st, Switch as rt, Alert as lt, Button as Ge, Collapse as ye, CollapseItem as he, Search as ct, Tree as it } from "@opentiny/vue";
7
- import { constants as Ae } from "@opentiny/tiny-engine-utils";
8
- import { isVsCodeEnv as Ue } from "@opentiny/tiny-engine-common/js/environments";
9
- import { handlePageUpdate as pt } from "@opentiny/tiny-engine-common/js/http";
10
- import { generateRouter as gt, generatePage as dt } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
- import { REGEXP_PAGE_NAME as ut, REGEXP_ROUTE as Te, REGEXP_FOLDER_NAME as _t } from "@opentiny/tiny-engine-common/js/verification";
12
- import { useHttp as mt } from "@opentiny/tiny-engine-http";
13
- import { previewPage as ft } from "@opentiny/tiny-engine-common/js/preview";
14
- import Pt from "@opentiny/vue-renderless/common/deps/throttle";
15
- import { IconFolderOpened as yt, IconFolderClosed as ht } from "@opentiny/vue-icon";
16
- import { getCanvasStatus as we } from "@opentiny/tiny-engine-common/js/index";
17
- const L = mt(), St = (t) => L.get(`/app-center/api/pages/list/${t}`), Se = (t) => L.get(`/app-center/api/pages/detail/${t}`), Dt = (t) => L.get(`/app-center/api/pages/delete/${t}`), vt = (t) => L.post("/app-center/api/pages/create", t), bt = (t, o) => L.post(`/app-center/api/pages/update/${t}`, o), Ct = (t) => L.post("/app-center/api/pages/copy", t), He = (t) => L.get(`/app-center/api/pages/histories?page=${t}`), It = (t) => L.post("/app-center/api/pageHistory/restore", t), Nt = (t) => L.get(`/app-center/api/pages/histories/${t}`), Tt = (t, o) => L.post(`/app-center/api/pages/update/${t}`, o), pe = {
18
- fetchPageList: St,
2
+ import { reactive as z, watchEffect as Y, computed as re, inject as Le, resolveComponent as c, openBlock as N, createElementBlock as J, createElementVNode as R, createVNode as s, withCtx as P, createTextVNode as ae, toDisplayString as _e, ref as U, createBlock as A, createCommentVNode as H, nextTick as Be, Fragment as me, renderList as je, provide as qe } from "vue";
3
+ import { usePage as L, useModal as Q, useNotify as G, useBlock as Je, useEditorInfo as Ke, getMergeMeta as Ie, useApp as le, useCanvas as fe, useLayout as oe, useBreadcrumb as Xe, useHelp as We, HOOK_NAME as ze } from "@opentiny/tiny-engine-meta-register";
4
+ import { SvgButton as ce, BlockHistoryList as Qe, MetaCodeEditor as Ye, LifeCycles as Ze, PluginSetting as we, ButtonGroup as ke, PluginPanel as $e, LinkButton as et } from "@opentiny/tiny-engine-common";
5
+ import { isEqual as ie, extend as ne } from "@opentiny/vue-renderless/common/object";
6
+ import { Checkbox as tt, Form as xe, FormItem as Ee, Input as Ve, Select as at, Radio as nt, Switch as ot, Alert as st, Button as Ge, Collapse as Pe, CollapseItem as ye, Search as rt, Tree as lt } from "@opentiny/vue";
7
+ import { constants as Re } from "@opentiny/tiny-engine-utils";
8
+ import { isVsCodeEnv as Ae } from "@opentiny/tiny-engine-common/js/environments";
9
+ import { handlePageUpdate as ct } from "@opentiny/tiny-engine-common/js/http";
10
+ import { generateRouter as it, generatePage as gt } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
+ import { REGEXP_PAGE_NAME as pt, REGEXP_ROUTE as Te, REGEXP_FOLDER_NAME as ut } from "@opentiny/tiny-engine-common/js/verification";
12
+ import { useHttp as dt } from "@opentiny/tiny-engine-http";
13
+ import { previewPage as mt } from "@opentiny/tiny-engine-common/js/preview";
14
+ import _t from "@opentiny/vue-renderless/common/deps/throttle";
15
+ import { IconFolderOpened as ft, IconFolderClosed as Pt } from "@opentiny/vue-icon";
16
+ import { getCanvasStatus as Ne } from "@opentiny/tiny-engine-common/js/canvas";
17
+ const B = dt(), yt = (n) => B.get(`/app-center/api/pages/list/${n}`), Se = (n) => B.get(`/app-center/api/pages/detail/${n}`), St = (n) => B.get(`/app-center/api/pages/delete/${n}`), Dt = (n) => B.post("/app-center/api/pages/create", n), ht = (n, t) => B.post(`/app-center/api/pages/update/${n}`, t), Ct = (n) => B.post("/app-center/api/pages/copy", n), Ue = (n) => B.get(`/app-center/api/pages/histories?page=${n}`), vt = (n) => B.post("/app-center/api/pageHistory/restore", n), bt = (n) => B.get(`/app-center/api/pages/histories/${n}`), It = (n, t) => B.post(`/app-center/api/pages/update/${n}`, t), ge = {
18
+ fetchPageList: yt,
19
19
  fetchPageDetail: Se,
20
- requestDeletePage: Dt,
21
- requestCreatePage: vt,
20
+ requestDeletePage: St,
21
+ requestCreatePage: Dt,
22
22
  requestCopyPage: Ct,
23
- fetchPageHistory: He,
24
- fetchHistoryDetail: Nt,
25
- handleRouteHomeUpdate: bt,
26
- requestRestorePageHistory: It,
27
- requestUpdatePage: Tt
23
+ fetchPageHistory: Ue,
24
+ fetchHistoryDetail: bt,
25
+ handleRouteHomeUpdate: ht,
26
+ requestRestorePageHistory: vt,
27
+ requestUpdatePage: It
28
28
  };
29
- const K = (t, o) => {
30
- const c = t.__vccOpts || t;
31
- for (const [e, y] of o)
32
- c[e] = y;
33
- return c;
34
- }, wt = {
29
+ const K = (n, t) => {
30
+ const r = n.__vccOpts || n;
31
+ for (const [e, _] of t)
32
+ r[e] = _;
33
+ return r;
34
+ }, Tt = {
35
35
  components: {
36
- TinyCheckbox: nt
36
+ TinyCheckbox: tt
37
37
  },
38
38
  setup() {
39
- const { pageSettingState: t, STATIC_PAGE_GROUP_ID: o } = M(), { handleRouteHomeUpdate: c } = pe, { confirm: e } = W(), y = $({
39
+ const { pageSettingState: n, STATIC_PAGE_GROUP_ID: t } = L(), { handleRouteHomeUpdate: r } = ge, { confirm: e } = Q(), _ = z({
40
40
  checked: !1,
41
41
  selectDisable: !1
42
42
  });
43
- z(() => {
44
- var d;
45
- const n = !!((d = t.currentPageData) != null && d.isHome);
46
- y.checked = n, y.selectDisable = n;
43
+ Y(() => {
44
+ var p;
45
+ const o = !!((p = n.currentPageData) != null && p.isHome);
46
+ _.checked = o, _.selectDisable = o;
47
47
  });
48
- const S = re(() => {
49
- let n = "暂无主页";
50
- if (t.pages[o]) {
51
- const r = t.pages[o].data.filter((h) => h.isHome);
52
- r[0] && (n = r[0].name);
48
+ const f = re(() => {
49
+ let o = "暂无主页";
50
+ if (n.pages[t]) {
51
+ const i = n.pages[t].data.filter((S) => S.isHome);
52
+ i[0] && (o = i[0].name);
53
53
  }
54
- return n;
55
- }), a = je("openSettingPanel");
54
+ return o;
55
+ }), a = Le("openSettingPanel");
56
56
  return {
57
- pageSettingState: t,
57
+ pageSettingState: n,
58
58
  settingHome: () => {
59
59
  e({
60
60
  title: "提示",
61
61
  type: "warning ",
62
62
  message: "是否确定要将此页面设置为主页?您所做的任何未保存的更改都将被丢弃。",
63
63
  exec: () => {
64
- const { id: n } = t.currentPageData, d = t.ROOT_ID, r = { ...t.currentPageData };
65
- r.parentId = d, r.isHome = !0, c(n, r).then(() => {
66
- t.updateTreeData(), a({ data: t.currentPageData }), t.isNew = !1, Ue && gt({
67
- pageId: n,
68
- componentsTree: r
69
- }), E({ message: "主页设置成功!", type: "success" });
64
+ const { id: o } = n.currentPageData, p = n.ROOT_ID, i = { ...n.currentPageData };
65
+ i.parentId = p, i.isHome = !0, r(o, i).then(() => {
66
+ n.updateTreeData(), a({ data: n.currentPageData }), n.isNew = !1, Ae && it({
67
+ pageId: o,
68
+ componentsTree: i
69
+ }), G({ message: "主页设置成功!", type: "success" });
70
70
  }).catch(() => {
71
- E({ message: "主页设置失败!", type: "error" });
71
+ G({ message: "主页设置失败!", type: "error" });
72
72
  });
73
73
  },
74
74
  cancel: () => {
75
- y.checked = !1;
75
+ _.checked = !1;
76
76
  }
77
77
  });
78
78
  },
79
- homePage: S,
80
- state: y
79
+ homePage: f,
80
+ state: _
81
81
  };
82
82
  }
83
- }, Me = (t) => (_e("data-v-7ceaab89"), t = t(), me(), t), Ft = { class: "home" }, Ot = { style: { display: "flex" } }, kt = /* @__PURE__ */ Me(() => /* @__PURE__ */ R("div", { class: "homeTitle" }, "主页设置", -1)), xt = { class: "tip" }, Vt = /* @__PURE__ */ Me(() => /* @__PURE__ */ R("span", null, "当前主页是", -1)), Et = { class: "home-page" };
84
- function Rt(t, o, c, e, y, S) {
85
- const a = l("tiny-checkbox");
86
- return T(), X("div", Ft, [
83
+ }, Nt = { class: "home" }, Ot = { style: { display: "flex" } }, Ft = { class: "tip" }, wt = { class: "home-page" };
84
+ function kt(n, t, r, e, _, f) {
85
+ const a = c("tiny-checkbox");
86
+ return N(), J("div", Nt, [
87
87
  R("div", Ot, [
88
- kt,
88
+ t[3] || (t[3] = R("div", { class: "homeTitle" }, "主页设置", -1)),
89
89
  s(a, {
90
90
  class: "selectHome",
91
91
  modelValue: e.state.checked,
92
- "onUpdate:modelValue": o[0] || (o[0] = (i) => e.state.checked = i),
92
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => e.state.checked = l),
93
93
  disabled: e.state.selectDisable,
94
94
  onChange: e.settingHome
95
95
  }, {
96
- default: m(() => [
97
- Z("设为主页")
98
- ]),
96
+ default: P(() => t[1] || (t[1] = [
97
+ ae("设为主页")
98
+ ])),
99
99
  _: 1
100
100
  }, 8, ["modelValue", "disabled", "onChange"]),
101
- R("div", xt, [
102
- Vt,
103
- R("span", Et, "【" + ue(e.homePage) + "】", 1)
101
+ R("div", Ft, [
102
+ t[2] || (t[2] = R("span", null, "当前主页是", -1)),
103
+ R("span", wt, "【" + _e(e.homePage) + "】", 1)
104
104
  ])
105
105
  ])
106
106
  ]);
107
107
  }
108
- const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-7ceaab89"]]), At = {
108
+ const xt = /* @__PURE__ */ K(Tt, [["render", kt], ["__scopeId", "data-v-d8eb1045"]]), Et = {
109
109
  components: {
110
- SvgButton: ie,
111
- TinyForm: Ve,
110
+ SvgButton: ce,
111
+ TinyForm: xe,
112
112
  TinyFormItem: Ee,
113
- TinyInput: Re,
114
- TinySelect: ot,
115
- PageHome: Gt,
116
- TinyRadio: st
113
+ TinyInput: Ve,
114
+ TinySelect: at,
115
+ PageHome: xt,
116
+ TinyRadio: nt
117
117
  },
118
118
  props: {
119
119
  modelValue: {
@@ -127,28 +127,28 @@ const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-7ceaab89
127
127
  },
128
128
  setup() {
129
129
  const {
130
- pageSettingState: t,
131
- changeTreeData: o,
132
- STATIC_PAGE_GROUP_ID: c
133
- } = M(), e = t.ROOT_ID, y = A(t.currentPageData.parentId);
134
- z(() => {
135
- y.value = t.oldParentId;
130
+ pageSettingState: n,
131
+ changeTreeData: t,
132
+ STATIC_PAGE_GROUP_ID: r
133
+ } = L(), e = n.ROOT_ID, _ = U(n.currentPageData.parentId);
134
+ Y(() => {
135
+ _.value = n.oldParentId;
136
136
  });
137
- const S = re(() => {
138
- let g = t.currentPageData.route || "", P = t.currentPageData.parentId;
139
- for (; P !== e; ) {
140
- const _ = t.treeDataMapping[P];
141
- if (!_)
137
+ const f = re(() => {
138
+ let d = n.currentPageData.route || "", y = n.currentPageData.parentId;
139
+ for (; y !== e; ) {
140
+ const u = n.treeDataMapping[y];
141
+ if (!u)
142
142
  break;
143
- g = `${_.route}/${g}`, P = _.parentId;
143
+ d = `${u.route}/${d}`, y = u.parentId;
144
144
  }
145
- return g.startsWith("/") && (g = g.slice(1)), g;
145
+ return d.startsWith("/") && (d = d.slice(1)), d;
146
146
  }), a = {
147
147
  name: [{
148
148
  required: !0,
149
149
  message: "请输入页面 ID"
150
150
  }, {
151
- pattern: ut,
151
+ pattern: pt,
152
152
  message: "只允许包含英文字母,且为大写开头驼峰格式, 如DemoPage"
153
153
  }, {
154
154
  min: 3,
@@ -162,12 +162,12 @@ const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-7ceaab89
162
162
  pattern: Te,
163
163
  message: "只允许包含英文字母、数字、下横线_、中横线-、正斜杠/, 且以英文字母开头"
164
164
  }]
165
- }, i = {
165
+ }, l = {
166
166
  name: [{
167
167
  required: !0,
168
168
  message: "请输入页面文件夹 ID"
169
169
  }, {
170
- pattern: _t,
170
+ pattern: ut,
171
171
  message: "只允许包含英文字母、数字、下横线_、中横线-, 且以英文字母开头"
172
172
  }, {
173
173
  min: 3,
@@ -185,72 +185,72 @@ const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-7ceaab89
185
185
  required: !0,
186
186
  message: "必须选择页面类型"
187
187
  }]
188
- }, n = (g) => {
189
- const P = [];
190
- return g.forEach((_) => {
191
- !_.isPage && _.id !== t.currentPageData.id && (P.push(_), _.children || (_.children = []), _.children = n(_.children));
192
- }), P;
193
- }, d = re(() => {
194
- var x;
195
- const g = s(l("SvgIcon"), {
188
+ }, o = (d) => {
189
+ const y = [];
190
+ return d.forEach((u) => {
191
+ !u.isPage && u.id !== n.currentPageData.id && (y.push(u), u.children || (u.children = []), u.children = o(u.children));
192
+ }), y;
193
+ }, p = re(() => {
194
+ var F;
195
+ const d = s(c("SvgIcon"), {
196
196
  name: "text-page-folder-closed",
197
197
  class: "folder-icon"
198
- }, null), P = s(l("SvgIcon"), {
198
+ }, null), y = s(c("SvgIcon"), {
199
199
  name: "text-page-folder",
200
200
  class: "folder-icon"
201
- }, null), _ = ((x = t.pages[c]) == null ? void 0 : x.data) || [];
201
+ }, null), u = ((F = n.pages[r]) == null ? void 0 : F.data) || [];
202
202
  return {
203
203
  data: [{
204
204
  name: "无",
205
205
  id: e
206
- }, ...n(JSON.parse(JSON.stringify(_)))],
207
- shrinkIcon: P,
208
- expandIcon: g,
209
- renderContent: (j, {
210
- node: J,
211
- data: Q
206
+ }, ...o(JSON.parse(JSON.stringify(u)))],
207
+ shrinkIcon: y,
208
+ expandIcon: d,
209
+ renderContent: (Z, {
210
+ node: X,
211
+ data: W
212
212
  }) => s("span", {
213
213
  style: "display:flex"
214
- }, [J.isLeaf && Q.id !== e ? s(l("svg-icon"), {
214
+ }, [X.isLeaf && W.id !== e ? s(c("svg-icon"), {
215
215
  name: "text-page-folder-closed",
216
216
  style: "margin-right:14px"
217
217
  }, null) : null, s("span", {
218
218
  class: "label"
219
- }, [J.label])])
219
+ }, [X.label])])
220
220
  };
221
- }), r = A(null);
221
+ }), i = U(null);
222
222
  return {
223
223
  pageRules: a,
224
- folderRules: i,
225
- pageSettingState: t,
226
- generalForm: r,
227
- validGeneralForm: () => new Promise((g, P) => {
228
- r.value.validate((_) => {
229
- _ ? g(_) : P(_);
224
+ folderRules: l,
225
+ pageSettingState: n,
226
+ generalForm: i,
227
+ validGeneralForm: () => new Promise((d, y) => {
228
+ i.value.validate((u) => {
229
+ u ? d(u) : y(u);
230
230
  });
231
231
  }),
232
- treeFolderOp: d,
233
- currentRoute: S,
234
- changeParentForderId: (g) => {
235
- o(g.id, y.value), y.value = g.id;
232
+ treeFolderOp: p,
233
+ currentRoute: f,
234
+ changeParentForderId: (d) => {
235
+ t(d.id, _.value), _.value = d.id;
236
236
  }
237
237
  };
238
238
  }
239
239
  };
240
- const Le = (t) => (_e("data-v-b4c4e258"), t = t(), me(), t), Ut = { class: "general-config" }, Ht = /* @__PURE__ */ Le(() => /* @__PURE__ */ R("span", { class: "input-head" }, "website.com", -1)), Mt = { class: "tip" }, Lt = {
240
+ const Vt = { class: "general-config" }, Gt = { class: "tip" }, Rt = {
241
241
  key: 0,
242
242
  class: "text"
243
- }, Bt = {
243
+ }, At = {
244
244
  key: 1,
245
245
  class: "route-text"
246
- }, qt = /* @__PURE__ */ Le(() => /* @__PURE__ */ R("span", { class: "text" }, "website.com/", -1)), jt = { class: "text-dim" };
247
- function Jt(t, o, c, e, y, S) {
248
- const a = l("tiny-radio"), i = l("tiny-form-item"), n = l("tiny-input"), d = l("tiny-select"), r = l("svg-button"), h = l("tiny-form"), C = l("page-home");
249
- return T(), X("div", Ut, [
250
- s(h, {
246
+ }, Ut = { class: "text-dim" };
247
+ function Mt(n, t, r, e, _, f) {
248
+ const a = c("tiny-radio"), l = c("tiny-form-item"), o = c("tiny-input"), p = c("tiny-select"), i = c("svg-button"), S = c("tiny-form"), v = c("page-home");
249
+ return N(), J("div", Vt, [
250
+ s(S, {
251
251
  ref: "generalForm",
252
252
  model: e.pageSettingState.currentPageData,
253
- rules: c.isFolder ? e.folderRules : e.pageRules,
253
+ rules: r.isFolder ? e.folderRules : e.pageRules,
254
254
  "label-width": "120px",
255
255
  "validate-type": "text",
256
256
  "inline-message": !0,
@@ -258,61 +258,61 @@ function Jt(t, o, c, e, y, S) {
258
258
  "label-position": "left",
259
259
  class: "general-config-form"
260
260
  }, {
261
- default: m(() => [
262
- c.isFolder ? H("", !0) : (T(), G(i, {
261
+ default: P(() => [
262
+ r.isFolder ? H("", !0) : (N(), A(l, {
263
263
  key: 0,
264
264
  prop: "group",
265
265
  label: "选择页面类型",
266
266
  class: "form-item-page-type"
267
267
  }, {
268
- default: m(() => [
268
+ default: P(() => [
269
269
  s(a, {
270
270
  modelValue: e.pageSettingState.currentPageData.group,
271
- "onUpdate:modelValue": o[0] || (o[0] = (g) => e.pageSettingState.currentPageData.group = g),
271
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => e.pageSettingState.currentPageData.group = d),
272
272
  class: "page-type-radio",
273
273
  label: "staticPages"
274
274
  }, {
275
- default: m(() => [
276
- Z(" 静态页面 ")
277
- ]),
275
+ default: P(() => t[5] || (t[5] = [
276
+ ae(" 静态页面 ")
277
+ ])),
278
278
  _: 1
279
279
  }, 8, ["modelValue"]),
280
280
  s(a, {
281
281
  modelValue: e.pageSettingState.currentPageData.group,
282
- "onUpdate:modelValue": o[1] || (o[1] = (g) => e.pageSettingState.currentPageData.group = g),
282
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => e.pageSettingState.currentPageData.group = d),
283
283
  class: "page-type-radio",
284
284
  label: "publicPages"
285
285
  }, {
286
- default: m(() => [
287
- Z(" 公共页面 ")
288
- ]),
286
+ default: P(() => t[6] || (t[6] = [
287
+ ae(" 公共页面 ")
288
+ ])),
289
289
  _: 1
290
290
  }, 8, ["modelValue"])
291
291
  ]),
292
292
  _: 1
293
293
  })),
294
- s(i, {
294
+ s(l, {
295
295
  prop: "name",
296
- label: `${c.isFolder ? "文件夹" : "页面"}ID`
296
+ label: `${r.isFolder ? "文件夹" : "页面"}ID`
297
297
  }, {
298
- default: m(() => [
299
- s(n, {
298
+ default: P(() => [
299
+ s(o, {
300
300
  modelValue: e.pageSettingState.currentPageData.name,
301
- "onUpdate:modelValue": o[2] || (o[2] = (g) => e.pageSettingState.currentPageData.name = g),
302
- placeholder: `请设置${c.isFolder ? "文件夹" : "页面"}ID`
301
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => e.pageSettingState.currentPageData.name = d),
302
+ placeholder: `请设置${r.isFolder ? "文件夹" : "页面"}ID`
303
303
  }, null, 8, ["modelValue", "placeholder"])
304
304
  ]),
305
305
  _: 1
306
306
  }, 8, ["label"]),
307
- e.pageSettingState.currentPageData.group !== "publicPages" ? (T(), G(i, {
307
+ e.pageSettingState.currentPageData.group !== "publicPages" ? (N(), A(l, {
308
308
  key: 1,
309
309
  label: "选择父文件夹",
310
310
  prop: "parentId"
311
311
  }, {
312
- default: m(() => [
313
- s(d, {
312
+ default: P(() => [
313
+ s(p, {
314
314
  modelValue: e.pageSettingState.currentPageData.parentId,
315
- "onUpdate:modelValue": o[3] || (o[3] = (g) => e.pageSettingState.currentPageData.parentId = g),
315
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => e.pageSettingState.currentPageData.parentId = d),
316
316
  "value-field": "id",
317
317
  "render-type": "tree",
318
318
  "tree-op": e.treeFolderOp,
@@ -324,30 +324,30 @@ function Jt(t, o, c, e, y, S) {
324
324
  ]),
325
325
  _: 1
326
326
  })) : H("", !0),
327
- s(i, {
327
+ s(l, {
328
328
  label: "路由",
329
329
  prop: "route"
330
330
  }, {
331
- default: m(() => [
332
- s(n, {
331
+ default: P(() => [
332
+ s(o, {
333
333
  modelValue: e.pageSettingState.currentPageData.route,
334
- "onUpdate:modelValue": o[4] || (o[4] = (g) => e.pageSettingState.currentPageData.route = g),
334
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => e.pageSettingState.currentPageData.route = d),
335
335
  placeholder: "请设置路由"
336
336
  }, {
337
- prepend: m(() => [
338
- Ht
339
- ]),
337
+ prepend: P(() => t[7] || (t[7] = [
338
+ R("span", { class: "input-head" }, "website.com", -1)
339
+ ])),
340
340
  _: 1
341
341
  }, 8, ["modelValue"]),
342
- R("div", Mt, [
343
- s(r, {
342
+ R("div", Gt, [
343
+ s(i, {
344
344
  class: "icon",
345
345
  name: "text-page-link"
346
346
  }),
347
- e.pageSettingState.currentPageData.route ? (T(), X("span", Bt, [
348
- qt,
349
- R("span", jt, ue(e.currentRoute), 1)
350
- ])) : (T(), X("span", Lt, "路由将以website.com开头"))
347
+ e.pageSettingState.currentPageData.route ? (N(), J("span", At, [
348
+ t[8] || (t[8] = R("span", { class: "text" }, "website.com/", -1)),
349
+ R("span", Ut, _e(e.currentRoute), 1)
350
+ ])) : (N(), J("span", Rt, "路由将以website.com开头"))
351
351
  ])
352
352
  ]),
353
353
  _: 1
@@ -355,12 +355,12 @@ function Jt(t, o, c, e, y, S) {
355
355
  ]),
356
356
  _: 1
357
357
  }, 8, ["model", "rules"]),
358
- !c.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (T(), G(C, { key: 0 })) : H("", !0)
358
+ !r.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (N(), A(v, { key: 0 })) : H("", !0)
359
359
  ]);
360
360
  }
361
- const Be = /* @__PURE__ */ K(At, [["render", Jt], ["__scopeId", "data-v-b4c4e258"]]), Xt = {
361
+ const Me = /* @__PURE__ */ K(Et, [["render", Mt], ["__scopeId", "data-v-404ee316"]]), Ht = {
362
362
  components: {
363
- BlockHistoryList: Ze
363
+ BlockHistoryList: Qe
364
364
  },
365
365
  props: {
366
366
  curPageData: {
@@ -369,116 +369,116 @@ const Be = /* @__PURE__ */ K(At, [["render", Jt], ["__scopeId", "data-v-b4c4e258
369
369
  }
370
370
  },
371
371
  emits: ["restorePage"],
372
- setup(t, { emit: o }) {
373
- const { pageSettingState: c } = M(), { getDateFromNow: e } = Ke(), { confirm: y } = W(), S = A([]), a = (d) => {
374
- const { id: r, version: h } = We().useInfo(), C = h ? `&app=${r}&version=${h}` : "";
375
- d ? He(d + C).then((g) => {
376
- g.forEach((P) => {
377
- P.backupTitle = P.message, P.backupTime = e(new Date(P.time));
378
- }), S.value = g.reverse();
379
- }) : S.value = [];
372
+ setup(n, { emit: t }) {
373
+ const { pageSettingState: r } = L(), { getDateFromNow: e } = Je(), { confirm: _ } = Q(), f = U([]), a = (p) => {
374
+ const { id: i, version: S } = Ke().useInfo(), v = S ? `&app=${i}&version=${S}` : "";
375
+ p ? Ue(p + v).then((d) => {
376
+ d && (d.forEach((y) => {
377
+ y.backupTitle = y.message, y.backupTime = e(new Date(y.time));
378
+ }), f.value = d.reverse());
379
+ }) : f.value = [];
380
380
  };
381
- return z(() => {
382
- var r;
383
- const d = ((r = c.currentPageData) == null ? void 0 : r.id) || "";
384
- a(d);
381
+ return Y(() => {
382
+ var i;
383
+ const p = ((i = r.currentPageData) == null ? void 0 : i.id) || "";
384
+ a(p);
385
385
  }), {
386
- list: S,
387
- previewHistory: (d) => {
388
- var r, h;
389
- d && ft({
390
- id: d.page,
391
- history: d.id,
392
- framework: (r = Ne()) == null ? void 0 : r.dslMode,
393
- platform: (h = Ne()) == null ? void 0 : h.platformId
386
+ list: f,
387
+ previewHistory: (p) => {
388
+ var i, S;
389
+ p && mt({
390
+ id: p.page,
391
+ history: p.id,
392
+ framework: (i = Ie("engine.config")) == null ? void 0 : i.dslMode,
393
+ platform: (S = Ie("engine.config")) == null ? void 0 : S.platformId
394
394
  });
395
395
  },
396
- restoreHistory: (d) => {
397
- y({
396
+ restoreHistory: (p) => {
397
+ _({
398
398
  title: "提示",
399
399
  message: "您即将还原历史页面,是否继续还原?",
400
400
  exec: () => {
401
- o("restorePage", d);
401
+ t("restorePage", p);
402
402
  }
403
403
  });
404
404
  }
405
405
  };
406
406
  }
407
407
  };
408
- function Kt(t, o, c, e, y, S) {
409
- const a = l("block-history-list");
410
- return T(), G(a, {
408
+ function Lt(n, t, r, e, _, f) {
409
+ const a = c("block-history-list");
410
+ return N(), A(a, {
411
411
  history: e.list,
412
412
  onPreview: e.previewHistory,
413
413
  onRestore: e.restoreHistory
414
414
  }, null, 8, ["history", "onPreview", "onRestore"]);
415
415
  }
416
- const Wt = /* @__PURE__ */ K(Xt, [["render", Kt]]);
417
- const zt = {
416
+ const Bt = /* @__PURE__ */ K(Ht, [["render", Lt]]);
417
+ const jt = {
418
418
  components: {
419
- MetaCodeEditor: $e,
420
- TinyForm: Ve,
419
+ MetaCodeEditor: Ye,
420
+ TinyForm: xe,
421
421
  TinyFormItem: Ee,
422
- TinySwitch: rt,
423
- TinyAlert: lt
422
+ TinySwitch: ot,
423
+ TinyAlert: st
424
424
  },
425
425
  setup() {
426
- const t = A(""), o = A(""), { pageSettingState: c } = M(), e = re(() => c.currentPageData);
427
- return z(() => {
428
- var i, n;
429
- t.value = ((i = c.currentPageData.page_content) == null ? void 0 : i.inputs) || "", o.value = ((n = c.currentPageData.page_content) == null ? void 0 : n.outputs) || "";
426
+ const n = U(""), t = U(""), { pageSettingState: r } = L(), e = re(() => r.currentPageData);
427
+ return Y(() => {
428
+ var l, o;
429
+ n.value = ((l = r.currentPageData.page_content) == null ? void 0 : l.inputs) || "", t.value = ((o = r.currentPageData.page_content) == null ? void 0 : o.outputs) || "";
430
430
  }), {
431
- inputValue: t,
432
- outputValue: o,
433
- saveInputValue: (i) => {
431
+ inputValue: n,
432
+ outputValue: t,
433
+ saveInputValue: (l) => {
434
434
  try {
435
- const n = JSON.parse(i.content);
436
- t.value = i.content, e.value.page_content.inputs = n;
437
- } catch (n) {
438
- E({
435
+ const o = JSON.parse(l.content);
436
+ n.value = l.content, e.value.page_content.inputs = o;
437
+ } catch (o) {
438
+ G({
439
439
  title: "输入配置保存失败(必须符合JSON格式)",
440
- message: `${(n == null ? void 0 : n.message) || n}`,
440
+ message: `${(o == null ? void 0 : o.message) || o}`,
441
441
  type: "error"
442
442
  });
443
443
  }
444
444
  },
445
- saveOutputValue: (i) => {
445
+ saveOutputValue: (l) => {
446
446
  try {
447
- const n = JSON.parse(i.content);
448
- o.value = i.content, e.value.page_content.outputs = n;
449
- } catch (n) {
450
- E({
447
+ const o = JSON.parse(l.content);
448
+ t.value = l.content, e.value.page_content.outputs = o;
449
+ } catch (o) {
450
+ G({
451
451
  title: "输出配置保存失败(必须符合JSON格式)",
452
- message: `${(n == null ? void 0 : n.message) || n}`,
452
+ message: `${(o == null ? void 0 : o.message) || o}`,
453
453
  type: "error"
454
454
  });
455
455
  }
456
456
  },
457
- pageSettingState: c,
458
- hasContent: (i) => Array.isArray(i) && i.length > 0 || typeof i == "object" && Object.keys(i).length > 0
457
+ pageSettingState: r,
458
+ hasContent: (l) => Array.isArray(l) && l.length > 0 || typeof l == "object" && Object.keys(l).length > 0
459
459
  };
460
460
  }
461
- }, Qt = (t) => (_e("data-v-92b58692"), t = t(), me(), t), Yt = { class: "input-or-output" }, Zt = /* @__PURE__ */ Qt(() => /* @__PURE__ */ R("p", { class: "page-root-tips" }, "设置根元素为Body,默认为div", -1));
462
- function $t(t, o, c, e, y, S) {
463
- const a = l("tiny-alert"), i = l("meta-code-editor"), n = l("tiny-form-item"), d = l("tiny-switch"), r = l("tiny-form");
464
- return T(), X("div", Yt, [
461
+ }, qt = { class: "input-or-output" };
462
+ function Jt(n, t, r, e, _, f) {
463
+ const a = c("tiny-alert"), l = c("meta-code-editor"), o = c("tiny-form-item"), p = c("tiny-switch"), i = c("tiny-form");
464
+ return N(), J("div", qt, [
465
465
  s(a, {
466
466
  type: "info",
467
467
  description: "输入配置: 传递给页面的参数(类似组件的输入属性);输出配置: 页面传递出的事件(类似组件触发的输出事件)",
468
468
  closable: !1,
469
469
  class: "life-cycle-alert"
470
470
  }),
471
- s(r, {
471
+ s(i, {
472
472
  "label-position": "left",
473
473
  class: "input-output-form"
474
474
  }, {
475
- default: m(() => [
476
- s(n, {
475
+ default: P(() => [
476
+ s(o, {
477
477
  label: "输入配置",
478
478
  class: "item-wrap"
479
479
  }, {
480
- default: m(() => [
481
- s(i, {
480
+ default: P(() => [
481
+ s(l, {
482
482
  modelValue: e.inputValue,
483
483
  title: "输入配置",
484
484
  "button-text": "输入配置",
@@ -490,12 +490,12 @@ function $t(t, o, c, e, y, S) {
490
490
  ]),
491
491
  _: 1
492
492
  }),
493
- s(n, {
493
+ s(o, {
494
494
  label: "输出配置",
495
495
  class: "item-wrap"
496
496
  }, {
497
- default: m(() => [
498
- s(i, {
497
+ default: P(() => [
498
+ s(l, {
499
499
  modelValue: e.outputValue,
500
500
  title: "输出配置",
501
501
  "button-text": "输出配置",
@@ -507,16 +507,16 @@ function $t(t, o, c, e, y, S) {
507
507
  ]),
508
508
  _: 1
509
509
  }),
510
- s(n, {
510
+ s(o, {
511
511
  label: "根元素设置",
512
512
  class: "page-root-form-item"
513
513
  }, {
514
- default: m(() => [
515
- s(d, {
514
+ default: P(() => [
515
+ s(p, {
516
516
  modelValue: e.pageSettingState.currentPageData.isBody,
517
- "onUpdate:modelValue": o[0] || (o[0] = (h) => e.pageSettingState.currentPageData.isBody = h)
517
+ "onUpdate:modelValue": t[0] || (t[0] = (S) => e.pageSettingState.currentPageData.isBody = S)
518
518
  }, null, 8, ["modelValue"]),
519
- Zt
519
+ t[1] || (t[1] = R("p", { class: "page-root-tips" }, "设置根元素为Body,默认为div", -1))
520
520
  ]),
521
521
  _: 1
522
522
  })
@@ -525,33 +525,33 @@ function $t(t, o, c, e, y, S) {
525
525
  })
526
526
  ]);
527
527
  }
528
- const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692"]]), {
529
- COMPONENT_NAME: ta
530
- } = Ae, De = A(!1), se = () => {
528
+ const Kt = /* @__PURE__ */ K(jt, [["render", Jt], ["__scopeId", "data-v-f6322c01"]]), {
529
+ COMPONENT_NAME: Xt
530
+ } = Re, De = U(!1), se = () => {
531
531
  De.value = !0;
532
532
  }, q = () => {
533
533
  De.value = !1;
534
534
  const {
535
- resetPageData: t
536
- } = M();
537
- t();
538
- }, Fe = {
535
+ resetPageData: n
536
+ } = L();
537
+ n();
538
+ }, Oe = {
539
539
  general: "general",
540
540
  inputOutput: "inputOutput",
541
541
  lifeCycles: "lifeCycles",
542
542
  history: "history"
543
- }, aa = {
543
+ }, Wt = {
544
544
  components: {
545
545
  TinyButton: Ge,
546
- TinyCollapse: ye,
547
- TinyCollapseItem: he,
548
- PageInputOutput: ea,
549
- LifeCycles: et,
550
- PageGeneral: Be,
551
- PageHistory: Wt,
552
- PluginSetting: ke,
553
- SvgButton: ie,
554
- ButtonGroup: xe
546
+ TinyCollapse: Pe,
547
+ TinyCollapseItem: ye,
548
+ PageInputOutput: Kt,
549
+ LifeCycles: Ze,
550
+ PageGeneral: Me,
551
+ PageHistory: Bt,
552
+ PluginSetting: we,
553
+ SvgButton: ce,
554
+ ButtonGroup: ke
555
555
  },
556
556
  props: {
557
557
  isFolder: {
@@ -560,176 +560,176 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
560
560
  }
561
561
  },
562
562
  emits: ["openNewPage"],
563
- setup(t, {
564
- emit: o
563
+ setup(n, {
564
+ emit: t
565
565
  }) {
566
566
  const {
567
- requestCreatePage: c,
567
+ requestCreatePage: r,
568
568
  requestDeletePage: e
569
- } = pe, {
570
- appInfoState: y
571
- } = ce(), {
572
- DEFAULT_PAGE: S,
569
+ } = ge, {
570
+ appInfoState: _
571
+ } = le(), {
572
+ DEFAULT_PAGE: f,
573
573
  pageSettingState: a,
574
- changeTreeData: i,
575
- isCurrentDataSame: n,
576
- initCurrentPageData: d,
577
- isTemporaryPage: r,
578
- STATIC_PAGE_GROUP_ID: h
579
- } = M(), {
580
- pageState: C,
581
- initData: g
574
+ changeTreeData: l,
575
+ isCurrentDataSame: o,
576
+ initCurrentPageData: p,
577
+ isTemporaryPage: i,
578
+ STATIC_PAGE_GROUP_ID: S
579
+ } = L(), {
580
+ pageState: v,
581
+ initData: d
582
582
  } = fe(), {
583
- confirm: P
584
- } = W(), _ = A(null), f = $({
585
- activeName: Object.values(Fe),
583
+ confirm: y
584
+ } = Q(), u = U(null), D = z({
585
+ activeName: Object.values(Oe),
586
586
  title: "页面设置",
587
587
  historyMessage: ""
588
588
  }), V = () => {
589
- Pe(a.currentPageData, a.currentPageDataCopy) ? q() : P({
589
+ ie(a.currentPageData, a.currentPageDataCopy) ? q() : y({
590
590
  title: "提示",
591
591
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
592
592
  exec: () => {
593
- a.isNew || (i(a.oldParentId, a.currentPageData.parentId), Object.assign(a.currentPageData, a.currentPageDataCopy)), q();
593
+ a.isNew || (l(a.oldParentId, a.currentPageData.parentId), Object.assign(a.currentPageData, a.currentPageDataCopy)), q();
594
594
  }
595
595
  });
596
- }, x = () => {
596
+ }, F = () => {
597
597
  const {
598
- page_content: v,
599
- ...D
600
- } = S, {
598
+ page_content: C,
599
+ ...h
600
+ } = f, {
601
601
  page_content: b,
602
- ...F
603
- } = a.currentPageData, k = {
604
- ...D,
605
- ...F,
602
+ ...w
603
+ } = a.currentPageData, x = {
604
+ ...h,
605
+ ...w,
606
606
  page_content: {
607
- ...v,
607
+ ...C,
608
608
  ...b,
609
609
  fileName: a.currentPageData.name
610
610
  },
611
- app: y.selectedId,
611
+ app: _.selectedId,
612
612
  isPage: !0
613
613
  };
614
- k.id && (delete k.id, delete k._id), c(k).then((p) => {
615
- a.updateTreeData(), a.isNew = !1, r.saved = !1, o("openNewPage", p), q(), oe().closePlugin(), E({
614
+ x.id && (delete x.id, delete x._id), r(x).then((g) => {
615
+ a.updateTreeData(), a.isNew = !1, i.saved = !1, t("openNewPage", g), q(), oe().closePlugin(), G({
616
616
  type: "success",
617
617
  message: "新建页面成功!"
618
- }), Ue && dt(p);
619
- }).catch((p) => {
620
- E({
618
+ }), Ae && gt(g);
619
+ }).catch((g) => {
620
+ G({
621
621
  type: "error",
622
622
  title: "新建页面失败",
623
- message: JSON.stringify((p == null ? void 0 : p.message) || p)
623
+ message: JSON.stringify((g == null ? void 0 : g.message) || g)
624
624
  });
625
625
  });
626
- }, j = (v, D) => {
626
+ }, Z = (C, h) => {
627
627
  const b = a.currentPageDataCopy.route !== a.currentPageData.route;
628
- return pt(v, D, b);
629
- }, J = (v) => {
630
- v.id = v.page, ["page", "backupTime", "backupTitle", "time"].forEach((F) => delete v[F]);
628
+ return ct(C, h, b);
629
+ }, X = (C) => {
630
+ C.id = C.page, ["page", "backupTime", "backupTitle", "time"].forEach((w) => delete C[w]);
631
631
  const b = {
632
632
  ...a.currentPageData,
633
- ...v,
633
+ ...C,
634
634
  message: "还原页面"
635
635
  };
636
- j(v.id, b).then((F) => {
637
- var k;
638
- ((k = C == null ? void 0 : C.currentPage) == null ? void 0 : k.id) === (F == null ? void 0 : F.id) && g(F.page_content, F);
636
+ Z(C.id, b).then((w) => {
637
+ var x;
638
+ ((x = v == null ? void 0 : v.currentPage) == null ? void 0 : x.id) === (w == null ? void 0 : w.id) && d(w.page_content, w);
639
639
  });
640
- }, Q = async () => {
640
+ }, W = async () => {
641
641
  const {
642
- id: v,
643
- name: D,
642
+ id: C,
643
+ name: h,
644
644
  page_content: b
645
- } = a.currentPageData, F = {
645
+ } = a.currentPageData, w = {
646
646
  ...a.currentPageData,
647
647
  page_content: {
648
648
  ...b,
649
- fileName: D
649
+ fileName: h
650
650
  }
651
- }, k = await j(v, F);
652
- d(k);
653
- }, ee = (v) => {
654
- if (!v)
651
+ }, x = await Z(C, w);
652
+ p(x);
653
+ }, pe = (C) => {
654
+ if (!C)
655
655
  return;
656
- const D = a.currentPageData.page_content;
657
- D.lifeCycles = {
658
- ...D.lifeCycles || {},
659
- ...v
656
+ const h = a.currentPageData.page_content;
657
+ h.lifeCycles = {
658
+ ...h.lifeCycles || {},
659
+ ...C
660
660
  };
661
- }, te = () => {
662
- const v = a.currentPageData, D = le(!0, {}, v);
663
- a.isNew = !0, D.name = `${D.name}Copy`, D.route = `${D.route}Copy`, a.currentPageData = D, a.currentPageDataCopy = le(!0, {}, D);
664
- }, Y = () => {
665
- n() ? te() : P({
661
+ }, $ = () => {
662
+ const C = a.currentPageData, h = ne(!0, {}, C);
663
+ a.isNew = !0, h.name = `${h.name}Copy`, h.route = `${h.route}Copy`, a.currentPageData = h, a.currentPageDataCopy = ne(!0, {}, h);
664
+ }, ue = () => {
665
+ o() ? $() : y({
666
666
  title: "提示",
667
667
  message: "您即将复制的页面有更改未保存,是否确定跳过更改直接复制?",
668
668
  exec: () => {
669
- i(a.oldParentId, a.currentPageData.parentId), Object.assign(a.currentPageData, a.currentPageDataCopy), te();
669
+ l(a.oldParentId, a.currentPageData.parentId), Object.assign(a.currentPageData, a.currentPageDataCopy), $();
670
670
  }
671
671
  });
672
- }, ge = () => {
673
- P({
672
+ }, ee = () => {
673
+ y({
674
674
  title: "创建历史备份信息",
675
675
  status: "custom",
676
676
  message: {
677
- render: () => s(Re, {
677
+ render: () => s(Ve, {
678
678
  placeholder: "历史备份信息",
679
- modelValue: f.historyMessage,
680
- "onUpdate:modelValue": (k) => f.historyMessage = k
679
+ modelValue: D.historyMessage,
680
+ "onUpdate:modelValue": (x) => D.historyMessage = x
681
681
  }, null)
682
682
  },
683
683
  exec: () => {
684
- a.currentPageData.message = f.historyMessage.trim() || "Page auto save", a.isNew ? x() : Q(), f.historyMessage = "";
684
+ a.currentPageData.message = D.historyMessage.trim() || "Page auto save", a.isNew ? F() : W(), D.historyMessage = "";
685
685
  }
686
686
  });
687
- }, ae = () => {
688
- _.value.validGeneralForm().then(ge);
689
- }, ne = (v = []) => {
690
- if (!Array.isArray(v))
687
+ }, de = () => {
688
+ u.value.validGeneralForm().then(ee);
689
+ }, te = (C = []) => {
690
+ if (!Array.isArray(C))
691
691
  return [];
692
- const D = [];
693
- return v.forEach((b) => {
694
- var F;
692
+ const h = [];
693
+ return C.forEach((b) => {
694
+ var w;
695
695
  if (b != null && b.isPage) {
696
- D.push(b);
696
+ h.push(b);
697
697
  return;
698
698
  }
699
- !(b != null && b.isPage) && ((F = b == null ? void 0 : b.children) != null && F.length) && D.push(...ne(b.children));
700
- }), D;
699
+ !(b != null && b.isPage) && ((w = b == null ? void 0 : b.children) != null && w.length) && h.push(...te(b.children));
700
+ }), h;
701
701
  };
702
702
  return {
703
- state: f,
703
+ state: D,
704
704
  isShow: De,
705
- savePageSetting: ae,
706
- copyPage: Y,
705
+ savePageSetting: de,
706
+ copyPage: ue,
707
707
  pageSettingState: a,
708
- pageGeneralRef: _,
708
+ pageGeneralRef: u,
709
709
  deletePage: () => {
710
- P({
710
+ y({
711
711
  title: "提示",
712
712
  message: "您是否要删除页面?",
713
713
  exec: () => {
714
- var D;
715
- const v = ((D = a.currentPageData) == null ? void 0 : D.id) || "";
716
- e(v).then(() => {
714
+ var h;
715
+ const C = ((h = a.currentPageData) == null ? void 0 : h.id) || "";
716
+ e(C).then(() => {
717
717
  a.updateTreeData().then((b) => {
718
- var N, w;
719
- if (((N = C == null ? void 0 : C.currentPage) == null ? void 0 : N.id) !== v)
718
+ var T, O;
719
+ if (((T = v == null ? void 0 : v.currentPage) == null ? void 0 : T.id) !== C)
720
720
  return;
721
- const F = ((w = (b || []).find(({
722
- groupId: O
723
- }) => O === h)) == null ? void 0 : w.data) || [], k = ne(F), p = k.find((O) => O.isHome), u = k == null ? void 0 : k[0], I = {
724
- componentName: ta.Page
721
+ const w = ((O = (b || []).find(({
722
+ groupId: k
723
+ }) => k === S)) == null ? void 0 : O.data) || [], x = te(w), g = x.find((k) => k.isHome), m = x == null ? void 0 : x[0], I = {
724
+ componentName: Xt.Page
725
725
  };
726
- o("openNewPage", p || u || I);
727
- }), q(), E({
726
+ t("openNewPage", g || m || I);
727
+ }), q(), G({
728
728
  message: "删除页面成功!",
729
729
  type: "success"
730
730
  });
731
731
  }).catch(() => {
732
- E({
732
+ G({
733
733
  message: "删除页面失败!",
734
734
  type: "error"
735
735
  });
@@ -739,39 +739,39 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
739
739
  },
740
740
  cancelPageSetting: V,
741
741
  closePageSettingPanel: q,
742
- updatePageLifeCycles: ee,
743
- restorePage: J,
744
- PAGE_SETTING_SESSION: Fe
742
+ updatePageLifeCycles: pe,
743
+ restorePage: X,
744
+ PAGE_SETTING_SESSION: Oe
745
745
  };
746
746
  }
747
747
  };
748
- const na = { class: "page-setting-content" };
749
- function oa(t, o, c, e, y, S) {
750
- const a = l("tiny-button"), i = l("svg-button"), n = l("button-group"), d = l("page-general"), r = l("tiny-collapse-item"), h = l("page-input-output"), C = l("life-cycles"), g = l("page-history"), P = l("tiny-collapse"), _ = l("plugin-setting");
751
- return e.isShow ? (T(), G(_, {
748
+ const zt = { class: "page-setting-content" };
749
+ function Qt(n, t, r, e, _, f) {
750
+ const a = c("tiny-button"), l = c("svg-button"), o = c("button-group"), p = c("page-general"), i = c("tiny-collapse-item"), S = c("page-input-output"), v = c("life-cycles"), d = c("page-history"), y = c("tiny-collapse"), u = c("plugin-setting");
751
+ return e.isShow ? (N(), A(u, {
752
752
  key: 0,
753
753
  title: e.state.title,
754
754
  class: "page-plugin-setting"
755
755
  }, {
756
- header: m(() => [
757
- s(n, null, {
758
- default: m(() => [
756
+ header: P(() => [
757
+ s(o, null, {
758
+ default: P(() => [
759
759
  s(a, {
760
760
  type: "primary",
761
761
  onClick: e.savePageSetting
762
762
  }, {
763
- default: m(() => [
764
- Z("保存")
765
- ]),
763
+ default: P(() => t[1] || (t[1] = [
764
+ ae("保存")
765
+ ])),
766
766
  _: 1
767
767
  }, 8, ["onClick"]),
768
- e.pageSettingState.isNew ? H("", !0) : (T(), G(i, {
768
+ e.pageSettingState.isNew ? H("", !0) : (N(), A(l, {
769
769
  key: 0,
770
770
  name: "delete",
771
771
  tips: "删除页面",
772
772
  onClick: e.deletePage
773
773
  }, null, 8, ["onClick"])),
774
- e.pageSettingState.isNew ? H("", !0) : (T(), G(i, {
774
+ e.pageSettingState.isNew ? H("", !0) : (N(), A(l, {
775
775
  key: 1,
776
776
  name: "text-copy-page",
777
777
  placement: "bottom",
@@ -781,67 +781,67 @@ function oa(t, o, c, e, y, S) {
781
781
  ]),
782
782
  _: 1
783
783
  }),
784
- s(i, {
784
+ s(l, {
785
785
  class: "close-plugin-setting-icon",
786
786
  name: "close",
787
787
  onClick: e.cancelPageSetting
788
788
  }, null, 8, ["onClick"])
789
789
  ]),
790
- content: m(() => [
791
- R("div", na, [
792
- s(P, {
790
+ content: P(() => [
791
+ R("div", zt, [
792
+ s(y, {
793
793
  modelValue: e.state.activeName,
794
- "onUpdate:modelValue": o[0] || (o[0] = (f) => e.state.activeName = f),
794
+ "onUpdate:modelValue": t[0] || (t[0] = (D) => e.state.activeName = D),
795
795
  class: "page-setting-collapse"
796
796
  }, {
797
- default: m(() => [
798
- s(r, {
797
+ default: P(() => [
798
+ s(i, {
799
799
  title: "基本设置",
800
800
  name: e.PAGE_SETTING_SESSION.general
801
801
  }, {
802
- default: m(() => [
803
- s(d, {
802
+ default: P(() => [
803
+ s(p, {
804
804
  ref: "pageGeneralRef",
805
- isFolder: c.isFolder
805
+ isFolder: r.isFolder
806
806
  }, null, 8, ["isFolder"])
807
807
  ]),
808
808
  _: 1
809
809
  }, 8, ["name"]),
810
- e.pageSettingState.currentPageData.group !== "public" ? (T(), G(r, {
810
+ e.pageSettingState.currentPageData.group !== "public" ? (N(), A(i, {
811
811
  key: 0,
812
812
  class: "base-setting",
813
813
  title: "输入输出",
814
814
  name: e.PAGE_SETTING_SESSION.inputOutput
815
815
  }, {
816
- default: m(() => [
817
- s(h)
816
+ default: P(() => [
817
+ s(S)
818
818
  ]),
819
819
  _: 1
820
820
  }, 8, ["name"])) : H("", !0),
821
- e.pageSettingState.currentPageData.group !== "public" ? (T(), G(r, {
821
+ e.pageSettingState.currentPageData.group !== "public" ? (N(), A(i, {
822
822
  key: 1,
823
823
  class: "input-output",
824
824
  title: "页面生命周期配置",
825
825
  name: e.PAGE_SETTING_SESSION.lifeCycles
826
826
  }, {
827
- default: m(() => {
828
- var f;
827
+ default: P(() => {
828
+ var D;
829
829
  return [
830
- s(C, {
831
- bindLifeCycles: (f = e.pageSettingState.currentPageData.page_content) == null ? void 0 : f.lifeCycles,
830
+ s(v, {
831
+ bindLifeCycles: (D = e.pageSettingState.currentPageData.page_content) == null ? void 0 : D.lifeCycles,
832
832
  onUpdatePageLifeCycles: e.updatePageLifeCycles
833
833
  }, null, 8, ["bindLifeCycles", "onUpdatePageLifeCycles"])
834
834
  ];
835
835
  }),
836
836
  _: 1
837
837
  }, 8, ["name"])) : H("", !0),
838
- s(r, {
838
+ s(i, {
839
839
  class: "history-source",
840
840
  title: "历史备份",
841
841
  name: e.PAGE_SETTING_SESSION.history
842
842
  }, {
843
- default: m(() => [
844
- s(g, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
843
+ default: P(() => [
844
+ s(d, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
845
845
  ]),
846
846
  _: 1
847
847
  }, 8, ["name"])
@@ -853,23 +853,23 @@ function oa(t, o, c, e, y, S) {
853
853
  _: 1
854
854
  }, 8, ["title"])) : H("", !0);
855
855
  }
856
- const sa = /* @__PURE__ */ K(aa, [["render", oa], ["__scopeId", "data-v-bc3f26dc"]]);
857
- let ve = A(!1);
858
- const Oe = () => {
859
- ve.value = !0;
860
- }, U = () => {
861
- ve.value = !1;
862
- const { resetPageData: t } = M();
863
- t();
864
- }, ra = {
856
+ const Yt = /* @__PURE__ */ K(Wt, [["render", Qt], ["__scopeId", "data-v-2f555b67"]]);
857
+ let he = U(!1);
858
+ const Fe = () => {
859
+ he.value = !0;
860
+ }, M = () => {
861
+ he.value = !1;
862
+ const { resetPageData: n } = L();
863
+ n();
864
+ }, Zt = {
865
865
  components: {
866
866
  TinyButton: Ge,
867
- TinyCollapse: ye,
868
- TinyCollapseItem: he,
869
- PluginSetting: ke,
870
- PageGeneral: Be,
871
- SvgButton: ie,
872
- ButtonGroup: xe
867
+ TinyCollapse: Pe,
868
+ TinyCollapseItem: ye,
869
+ PluginSetting: we,
870
+ PageGeneral: Me,
871
+ SvgButton: ce,
872
+ ButtonGroup: ke
873
873
  },
874
874
  props: {
875
875
  isFolder: {
@@ -878,122 +878,122 @@ const Oe = () => {
878
878
  }
879
879
  },
880
880
  setup() {
881
- const t = $({
881
+ const n = z({
882
882
  activeName: ["folderGeneralRef"],
883
883
  title: "文件夹设置"
884
- }), o = A(null), { requestCreatePage: c, requestUpdatePage: e, requestDeletePage: y } = pe, { appInfoState: S } = ce(), { pageSettingState: a, changeTreeData: i } = M(), { confirm: n } = W(), d = () => {
885
- Pe(a.currentPageData, a.currentPageDataCopy) ? U() : n({
884
+ }), t = U(null), { requestCreatePage: r, requestUpdatePage: e, requestDeletePage: _ } = ge, { appInfoState: f } = le(), { pageSettingState: a, changeTreeData: l } = L(), { confirm: o } = Q(), p = () => {
885
+ ie(a.currentPageData, a.currentPageDataCopy) ? M() : o({
886
886
  title: "提示",
887
887
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
888
888
  exec: () => {
889
- a.isNew || (i(a.oldParentId, a.currentPageData.parentId), Object.assign(a.currentPageData, a.currentPageDataCopy)), U();
889
+ a.isNew || (l(a.oldParentId, a.currentPageData.parentId), Object.assign(a.currentPageData, a.currentPageDataCopy)), M();
890
890
  }
891
891
  });
892
- }, r = () => {
893
- const _ = {
892
+ }, i = () => {
893
+ const u = {
894
894
  ...a.currentPageData,
895
- app: S.selectedId,
895
+ app: f.selectedId,
896
896
  isPage: !1
897
897
  };
898
- c(_).then(() => {
899
- a.updateTreeData(), a.isNew = !1, U(), E({
898
+ r(u).then(() => {
899
+ a.updateTreeData(), a.isNew = !1, M(), G({
900
900
  type: "success",
901
901
  message: "新建文件夹成功!"
902
902
  });
903
- }).catch((f) => {
904
- E({
903
+ }).catch((D) => {
904
+ G({
905
905
  type: "error",
906
906
  title: "新建文件夹失败",
907
- message: JSON.stringify((f == null ? void 0 : f.message) || f)
907
+ message: JSON.stringify((D == null ? void 0 : D.message) || D)
908
908
  });
909
909
  });
910
- }, h = () => {
911
- const { id: P } = a.currentPageData;
912
- e(P, { ...a.currentPageData, page_content: null }).then(() => {
913
- a.updateTreeData(), a.isNew = !1, U(), E({
910
+ }, S = () => {
911
+ const { id: y } = a.currentPageData;
912
+ e(y, { ...a.currentPageData, page_content: null }).then(() => {
913
+ a.updateTreeData(), a.isNew = !1, M(), G({
914
914
  type: "success",
915
915
  message: "更新文件夹成功!"
916
916
  });
917
- }).catch((_) => {
918
- E({
917
+ }).catch((u) => {
918
+ G({
919
919
  type: "error",
920
920
  title: "更新文件夹失败",
921
- message: JSON.stringify((_ == null ? void 0 : _.message) || _)
921
+ message: JSON.stringify((u == null ? void 0 : u.message) || u)
922
922
  });
923
923
  });
924
924
  };
925
925
  return {
926
926
  saveFolderSetting: () => {
927
- o.value.validGeneralForm().then(() => {
928
- a.isNew ? r() : h();
927
+ t.value.validGeneralForm().then(() => {
928
+ a.isNew ? i() : S();
929
929
  });
930
930
  },
931
- deleteFolder: Pt(5e3, !0, () => {
932
- var P, _;
933
- if ((_ = (P = a.treeDataMapping[a.currentPageData.id]) == null ? void 0 : P.children) != null && _.length) {
934
- E({
931
+ deleteFolder: _t(5e3, !0, () => {
932
+ var y, u;
933
+ if ((u = (y = a.treeDataMapping[a.currentPageData.id]) == null ? void 0 : y.children) != null && u.length) {
934
+ G({
935
935
  type: "error",
936
936
  message: "此文件夹不是空文件夹,不能删除!"
937
937
  });
938
938
  return;
939
939
  }
940
- n({
940
+ o({
941
941
  title: "提示",
942
942
  message: "您是否要删除文件夹?",
943
943
  exec: () => {
944
944
  var V;
945
- const f = ((V = a.currentPageData) == null ? void 0 : V.id) || "";
946
- y(f).then(() => {
947
- a.updateTreeData(), U(), E({
945
+ const D = ((V = a.currentPageData) == null ? void 0 : V.id) || "";
946
+ _(D).then(() => {
947
+ a.updateTreeData(), M(), G({
948
948
  type: "success",
949
949
  message: "删除文件夹成功!"
950
950
  });
951
- }).catch((x) => {
952
- E({
951
+ }).catch((F) => {
952
+ G({
953
953
  type: "success",
954
954
  title: "删除文件夹失败!",
955
- message: JSON.stringify((x == null ? void 0 : x.message) || x)
955
+ message: JSON.stringify((F == null ? void 0 : F.message) || F)
956
956
  });
957
957
  });
958
958
  }
959
959
  });
960
960
  }),
961
- folderGeneralRef: o,
962
- closeFolderSettingPanel: U,
963
- isShow: ve,
964
- state: t,
961
+ folderGeneralRef: t,
962
+ closeFolderSettingPanel: M,
963
+ isShow: he,
964
+ state: n,
965
965
  pageSettingState: a,
966
- closeFolderSetting: d
966
+ closeFolderSetting: p
967
967
  };
968
968
  }
969
- }, la = { class: "page-setting-content" };
970
- function ca(t, o, c, e, y, S) {
971
- const a = l("tiny-button"), i = l("svg-button"), n = l("button-group"), d = l("page-general"), r = l("tiny-collapse-item"), h = l("tiny-collapse"), C = l("plugin-setting");
972
- return e.isShow ? (T(), G(C, {
969
+ }, $t = { class: "page-setting-content" };
970
+ function ea(n, t, r, e, _, f) {
971
+ const a = c("tiny-button"), l = c("svg-button"), o = c("button-group"), p = c("page-general"), i = c("tiny-collapse-item"), S = c("tiny-collapse"), v = c("plugin-setting");
972
+ return e.isShow ? (N(), A(v, {
973
973
  key: 0,
974
974
  title: e.state.title,
975
975
  class: "pageFolder-plugin-setting"
976
976
  }, {
977
- header: m(() => [
978
- s(n, null, {
979
- default: m(() => [
977
+ header: P(() => [
978
+ s(o, null, {
979
+ default: P(() => [
980
980
  s(a, {
981
981
  type: "primary",
982
982
  onClick: e.saveFolderSetting
983
983
  }, {
984
- default: m(() => [
985
- Z("保存")
986
- ]),
984
+ default: P(() => t[1] || (t[1] = [
985
+ ae("保存")
986
+ ])),
987
987
  _: 1
988
988
  }, 8, ["onClick"]),
989
- e.pageSettingState.isNew ? H("", !0) : (T(), G(i, {
989
+ e.pageSettingState.isNew ? H("", !0) : (N(), A(l, {
990
990
  key: 0,
991
991
  name: "delete",
992
992
  placement: "bottom",
993
993
  tips: "删除",
994
994
  onClick: e.deleteFolder
995
995
  }, null, 8, ["onClick"])),
996
- s(i, {
996
+ s(l, {
997
997
  class: "close-plugin-setting-icon",
998
998
  name: "close",
999
999
  onClick: e.closeFolderSetting
@@ -1002,21 +1002,21 @@ function ca(t, o, c, e, y, S) {
1002
1002
  _: 1
1003
1003
  })
1004
1004
  ]),
1005
- content: m(() => [
1006
- R("div", la, [
1007
- s(h, {
1005
+ content: P(() => [
1006
+ R("div", $t, [
1007
+ s(S, {
1008
1008
  modelValue: e.state.activeName,
1009
- "onUpdate:modelValue": o[0] || (o[0] = (g) => e.state.activeName = g)
1009
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => e.state.activeName = d)
1010
1010
  }, {
1011
- default: m(() => [
1012
- s(r, {
1011
+ default: P(() => [
1012
+ s(i, {
1013
1013
  title: "基本设置",
1014
1014
  name: "folderGeneralRef"
1015
1015
  }, {
1016
- default: m(() => [
1017
- s(d, {
1016
+ default: P(() => [
1017
+ s(p, {
1018
1018
  ref: "folderGeneralRef",
1019
- isFolder: c.isFolder
1019
+ isFolder: r.isFolder
1020
1020
  }, null, 8, ["isFolder"])
1021
1021
  ]),
1022
1022
  _: 1
@@ -1029,16 +1029,16 @@ function ca(t, o, c, e, y, S) {
1029
1029
  _: 1
1030
1030
  }, 8, ["title"])) : H("", !0);
1031
1031
  }
1032
- const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5"]]), {
1033
- ELEMENT_TAG: pa,
1034
- PAGE_STATUS: ga,
1035
- COMPONENT_NAME: da
1036
- } = Ae, ua = {
1032
+ const ta = /* @__PURE__ */ K(Zt, [["render", ea], ["__scopeId", "data-v-10a6e512"]]), {
1033
+ ELEMENT_TAG: aa,
1034
+ PAGE_STATUS: na,
1035
+ COMPONENT_NAME: oa
1036
+ } = Re, sa = {
1037
1037
  components: {
1038
- TinySearch: ct,
1039
- TinyTree: it,
1040
- TinyCollapse: ye,
1041
- TinyCollapseItem: he
1038
+ TinySearch: rt,
1039
+ TinyTree: lt,
1040
+ TinyCollapse: Pe,
1041
+ TinyCollapseItem: ye
1042
1042
  },
1043
1043
  props: {
1044
1044
  isFolder: {
@@ -1047,241 +1047,243 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
1047
1047
  }
1048
1048
  },
1049
1049
  emits: ["openSettingPanel", "add"],
1050
- setup(t, {
1051
- emit: o
1050
+ setup(n, {
1051
+ emit: t
1052
1052
  }) {
1053
1053
  const {
1054
- appInfoState: c
1055
- } = ce(), {
1054
+ appInfoState: r
1055
+ } = le(), {
1056
1056
  confirm: e
1057
- } = W(), {
1058
- initData: y,
1059
- pageState: S,
1057
+ } = Q(), {
1058
+ initData: _,
1059
+ pageState: f,
1060
1060
  isBlock: a,
1061
- isSaved: i
1061
+ isSaved: l
1062
1062
  } = fe(), {
1063
- pageSettingState: n,
1064
- changeTreeData: d,
1065
- isCurrentDataSame: r,
1066
- STATIC_PAGE_GROUP_ID: h,
1067
- COMMON_PAGE_GROUP_ID: C
1068
- } = M(), {
1069
- fetchPageList: g,
1070
- fetchPageDetail: P
1071
- } = pe, {
1072
- setBreadcrumbPage: _
1073
- } = ze(), f = A([]), V = n.ROOT_ID, x = $({
1063
+ pageSettingState: o,
1064
+ changeTreeData: p,
1065
+ isCurrentDataSame: i,
1066
+ STATIC_PAGE_GROUP_ID: S,
1067
+ COMMON_PAGE_GROUP_ID: v
1068
+ } = L(), {
1069
+ fetchPageList: d,
1070
+ fetchPageDetail: y
1071
+ } = ge, {
1072
+ setBreadcrumbPage: u
1073
+ } = Xe(), D = U([]), V = o.ROOT_ID, F = z({
1074
1074
  pageSearchValue: "",
1075
- collapseValue: [h, C],
1075
+ collapseValue: [S, v],
1076
1076
  currentNodeData: {}
1077
- }), j = (p, u, I) => {
1078
- const N = {
1077
+ }), Z = (g, m, I) => {
1078
+ const T = {
1079
1079
  [V]: {
1080
1080
  id: V,
1081
1081
  name: "站点根目录",
1082
1082
  children: []
1083
1083
  }
1084
1084
  };
1085
- return p.forEach((w) => {
1086
- N[w[I]] = w, w.parentId === V && N[V].children.push(w);
1087
- }), p.forEach((w) => {
1088
- let O = N[w[u]];
1089
- O && O.id !== V ? (O.children = O.children || [], O.children.push(w)) : O && O.id;
1090
- }), n.treeDataMapping = N, n.treeDataMapping;
1091
- }, J = async (p, u) => {
1092
- const I = u || await g(p), N = {
1085
+ return g.forEach((O) => {
1086
+ T[O[I]] = O, O.parentId === V && T[V].children.push(O);
1087
+ }), g.forEach((O) => {
1088
+ let k = T[O[m]];
1089
+ k && k.id !== V ? (k.children = k.children || [], k.children.push(O)) : k && k.id;
1090
+ }), o.treeDataMapping = T, o.treeDataMapping;
1091
+ }, X = (g) => {
1092
+ Array.isArray(D == null ? void 0 : D.value) && Be(() => {
1093
+ D.value.forEach((m) => {
1094
+ m == null || m.filter(g);
1095
+ });
1096
+ });
1097
+ }, W = async (g, m) => {
1098
+ const I = m || await d(g), T = {
1093
1099
  groupName: "静态页面",
1094
- groupId: h,
1100
+ groupId: S,
1095
1101
  data: []
1096
- }, w = {
1102
+ }, O = {
1097
1103
  groupName: "公共页面",
1098
- groupId: C,
1104
+ groupId: v,
1099
1105
  data: []
1100
1106
  };
1101
- I.forEach((B) => {
1102
- const qe = B.name ? B : {
1103
- ...B,
1104
- name: B.folderName,
1107
+ I.forEach((j) => {
1108
+ const He = j.name ? j : {
1109
+ ...j,
1110
+ name: j.folderName,
1105
1111
  group: "staticPages"
1106
- }, Ce = B.meta ? {
1107
- ...B,
1108
- ...B.meta,
1109
- name: B.fileName,
1112
+ }, ve = j.meta ? {
1113
+ ...j,
1114
+ ...j.meta,
1115
+ name: j.fileName,
1110
1116
  isPage: !0,
1111
- isBody: B.meta.rootElement === pa.Body
1112
- } : qe, {
1113
- children: ba,
1114
- ...Ie
1115
- } = Ce;
1116
- Ce.group === "staticPages" ? N.data.push(Ie) : w.data.push(Ie);
1117
+ isBody: j.meta.rootElement === aa.Body
1118
+ } : He, {
1119
+ children: Oa,
1120
+ ...be
1121
+ } = ve;
1122
+ ve.group === "staticPages" ? T.data.push(be) : O.data.push(be);
1117
1123
  });
1118
- const O = j([...N.data], "parentId", "id");
1119
- return N.data = O[V].children, n.pages = [N, w], n.pages;
1124
+ const k = Z([...T.data], "parentId", "id");
1125
+ return T.data = k[V].children, o.pages = [T, O], X(F.pageSearchValue), o.pages;
1120
1126
  };
1121
- n.updateTreeData = async () => await J(c.selectedId);
1122
- const Q = () => {
1123
- S.currentVm = null, S.hoverVm = null, S.properties = {}, S.pageSchema = null;
1124
- }, ee = (p) => {
1125
- const u = new URL(window.location);
1126
- u.searchParams.delete("blockid"), u.searchParams.set("pageid", p), window.history.pushState({}, "", u);
1127
- }, te = (p) => {
1128
- if (p !== 0 && !p) {
1129
- ee(""), y({
1130
- componentName: da.Page
1127
+ o.updateTreeData = async () => await W(r.selectedId);
1128
+ const pe = () => {
1129
+ f.currentVm = null, f.hoverVm = null, f.properties = {}, f.pageSchema = null;
1130
+ }, $ = (g) => {
1131
+ const m = new URL(window.location);
1132
+ m.searchParams.delete("blockid"), m.searchParams.set("pageid", g), window.history.pushState({}, "", m);
1133
+ }, ue = (g) => {
1134
+ if (g !== 0 && !g) {
1135
+ $(""), _({
1136
+ componentName: oa.Page
1131
1137
  }, {}), oe().layoutState.pageStatus = {
1132
1138
  state: "empty",
1133
1139
  data: {}
1134
1140
  };
1135
1141
  return;
1136
1142
  }
1137
- P(p).then((u) => {
1138
- ee(p), q(), U(), oe().closePlugin(), oe().layoutState.pageStatus = we(u.occupier), y(u.page_content, u);
1143
+ y(g).then((m) => {
1144
+ $(g), q(), M(), oe().closePlugin(), oe().layoutState.pageStatus = Ne(m.occupier), _(m.page_content, m);
1139
1145
  });
1140
- }, Y = (p) => {
1141
- S.hoverVm = null, x.currentNodeData = p;
1142
- let u = "";
1143
- p.isPage && (u = (p == null ? void 0 : p.name) || ""), _([u]), Q(), te(p.id);
1144
- }, ge = (p, u) => {
1145
- var w;
1146
- p.stopPropagation();
1146
+ }, ee = (g) => {
1147
+ f.hoverVm = null, F.currentNodeData = g;
1148
+ let m = "";
1149
+ g.isPage && (m = (g == null ? void 0 : g.name) || ""), u([m]), pe(), ue(g.id);
1150
+ }, de = (g, m) => {
1151
+ var O;
1152
+ g.stopPropagation();
1147
1153
  const {
1148
1154
  id: I,
1149
- isPage: N
1150
- } = u.data;
1151
- !a() && I === ((w = x == null ? void 0 : x.currentNodeData) == null ? void 0 : w.id) || !N || (i() && r() ? Y(u.data) : e({
1155
+ isPage: T
1156
+ } = m.data;
1157
+ !a() && I === ((O = F == null ? void 0 : F.currentNodeData) == null ? void 0 : O.id) || !T || (l() && i() ? ee(m.data) : e({
1152
1158
  title: "提示",
1153
1159
  message: `${a() ? "区块" : "页面"}尚未保存,是否要继续切换?`,
1154
1160
  exec: () => {
1155
- d(n.oldParentId, n.currentPageData.parentId), Object.assign(n.currentPageData, n.currentPageDataCopy), Y(u.data);
1161
+ p(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy), ee(m.data);
1156
1162
  }
1157
1163
  }));
1158
- }, ae = (p, u, I) => {
1159
- var N;
1160
- if (p.stopPropagation(), I && u.data.isPage) {
1161
- const w = ((N = u.data.occupier) == null ? void 0 : N.username) || "";
1162
- W().message({
1163
- message: `您点击的页面被${w}锁定,暂时无法编辑,请联系解锁`,
1164
+ }, te = (g, m, I) => {
1165
+ var T;
1166
+ if (g.stopPropagation(), I && m.data.isPage) {
1167
+ const O = ((T = m.data.occupier) == null ? void 0 : T.username) || "";
1168
+ Q().message({
1169
+ message: `您点击的页面被${O}锁定,暂时无法编辑,请联系解锁`,
1164
1170
  status: "info"
1165
1171
  });
1166
1172
  return;
1167
1173
  }
1168
- Pe(n.currentPageData, n.currentPageDataCopy) ? o("openSettingPanel", u) : e({
1174
+ ie(o.currentPageData, o.currentPageDataCopy) ? t("openSettingPanel", m) : e({
1169
1175
  title: "提示",
1170
- message: `当前页面或文件夹${n.currentPageData.name}尚未保存,是否要继续切换?`,
1176
+ message: `当前页面或文件夹${o.currentPageData.name}尚未保存,是否要继续切换?`,
1171
1177
  exec: () => {
1172
- d(n.oldParentId, n.currentPageData.parentId), Object.assign(n.currentPageData, n.currentPageDataCopy), o("openSettingPanel", u);
1178
+ p(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy), t("openSettingPanel", m);
1173
1179
  }
1174
1180
  });
1175
- }, ne = (p, {
1176
- node: u,
1181
+ }, Ce = (g, {
1182
+ node: m,
1177
1183
  data: I
1178
1184
  }) => {
1179
1185
  !I.isPage && !I.children ? I.trueFolder = !0 : I.trueFolder = !1;
1180
- const N = we(I.occupier).state === ga.Lock, w = N ? s(l("SvgIcon"), {
1186
+ const T = Ne(I.occupier).state === na.Lock, O = T ? s(c("SvgIcon"), {
1181
1187
  class: "page-edit-icon",
1182
1188
  name: "locked-outline",
1183
- onMousedown: (O) => ae(O, u, N)
1189
+ onMousedown: (k) => te(k, m, T)
1184
1190
  }, null) : null;
1185
1191
  return s("span", {
1186
1192
  class: "tiny-tree-node__label",
1187
- onMousedown: (O) => ge(O, u)
1193
+ onMousedown: (k) => de(k, m)
1188
1194
  }, [s("span", {
1189
1195
  class: "page-name-label",
1190
- title: u.label
1191
- }, [I.isPage ? s(l("SvgIcon"), {
1196
+ title: m.label
1197
+ }, [I.isPage ? s(c("SvgIcon"), {
1192
1198
  name: "text-page-common",
1193
1199
  class: "icon-page"
1194
- }, null) : null, I.trueFolder ? s(l("SvgIcon"), {
1200
+ }, null) : null, I.trueFolder ? s(c("SvgIcon"), {
1195
1201
  name: "text-page-folder-closed",
1196
1202
  class: "folder-icon"
1197
1203
  }, null) : null, s("span", {
1198
1204
  class: "label"
1199
- }, [u.label])]), s("span", {
1205
+ }, [m.label])]), s("span", {
1200
1206
  class: "icons"
1201
- }, [I.isPage ? w : null, I.isHome ? s("span", {
1207
+ }, [I.isPage ? O : null, I.isHome ? s("span", {
1202
1208
  class: "home"
1203
- }, [s(l("SvgIcon"), {
1209
+ }, [s(c("SvgIcon"), {
1204
1210
  class: "page-edit-icon",
1205
1211
  name: "text-page-home"
1206
- }, null)]) : null, s(l("SvgIcon"), {
1212
+ }, null)]) : null, s(c("SvgIcon"), {
1207
1213
  name: "setting",
1208
1214
  class: "setting page-edit-icon",
1209
- onMousedown: (O) => ae(O, u, N)
1215
+ onMousedown: (k) => te(k, m, T)
1210
1216
  }, null)])]);
1211
1217
  };
1212
- z(() => {
1213
- c.selectedId && J(c.selectedId);
1218
+ Y(() => {
1219
+ r.selectedId && W(r.selectedId);
1214
1220
  });
1215
- const be = (p) => {
1216
- Array.isArray(f == null ? void 0 : f.value) && f.value.forEach((u) => {
1217
- u == null || u.filter(p);
1218
- });
1219
- }, v = (p, u) => {
1221
+ const C = (g, m) => {
1220
1222
  var I;
1221
- return p ? ((I = u.name) == null ? void 0 : I.toLowerCase().indexOf(p == null ? void 0 : p.toLowerCase())) !== -1 : !0;
1222
- }, D = (p) => {
1223
- p && f.value.push(p);
1224
- }, b = (p) => {
1225
- p.stopPropagation(), p.preventDefault(), o("add");
1226
- }, F = s(l("SvgIcon"), {
1223
+ return g ? ((I = m.name) == null ? void 0 : I.toLowerCase().indexOf(g == null ? void 0 : g.toLowerCase())) !== -1 : !0;
1224
+ }, h = (g) => {
1225
+ g && D.value.push(g);
1226
+ }, b = (g) => {
1227
+ g.stopPropagation(), g.preventDefault(), t("add");
1228
+ }, w = s(c("SvgIcon"), {
1227
1229
  name: "text-page-folder-closed",
1228
1230
  class: "folder-icon"
1229
- }, null), k = s(l("SvgIcon"), {
1231
+ }, null), x = s(c("SvgIcon"), {
1230
1232
  name: "text-page-folder",
1231
1233
  class: "folder-icon"
1232
1234
  }, null);
1233
1235
  return {
1234
1236
  createPublicPage: b,
1235
- state: x,
1236
- switchPage: Y,
1237
- pageSettingState: n,
1238
- searchPageData: be,
1239
- renderContent: ne,
1240
- refreshPageList: J,
1241
- filterPageTreeData: v,
1242
- getPageTreeRefs: D,
1243
- IconFolderOpened: yt(),
1244
- IconFolderClosed: ht(),
1245
- shrinkIcon: k,
1246
- expandIcon: F
1237
+ state: F,
1238
+ switchPage: ee,
1239
+ pageSettingState: o,
1240
+ searchPageData: X,
1241
+ renderContent: Ce,
1242
+ refreshPageList: W,
1243
+ filterPageTreeData: C,
1244
+ getPageTreeRefs: h,
1245
+ IconFolderOpened: ft(),
1246
+ IconFolderClosed: Pt(),
1247
+ shrinkIcon: x,
1248
+ expandIcon: w
1247
1249
  };
1248
1250
  }
1249
1251
  };
1250
- const _a = { class: "app-manage-search" }, ma = { class: "title" }, fa = { class: "app-manage-tree" };
1251
- function Pa(t, o, c, e, y, S) {
1252
- const a = l("tiny-search"), i = l("tiny-tree"), n = l("tiny-collapse-item"), d = l("tiny-collapse");
1253
- return T(), X(de, null, [
1254
- R("div", _a, [
1252
+ const ra = { class: "app-manage-search" }, la = { class: "title" }, ca = { class: "app-manage-tree" };
1253
+ function ia(n, t, r, e, _, f) {
1254
+ const a = c("tiny-search"), l = c("tiny-tree"), o = c("tiny-collapse-item"), p = c("tiny-collapse");
1255
+ return N(), J(me, null, [
1256
+ R("div", ra, [
1255
1257
  s(a, {
1256
1258
  modelValue: e.state.pageSearchValue,
1257
1259
  "onUpdate:modelValue": [
1258
- o[0] || (o[0] = (r) => e.state.pageSearchValue = r),
1260
+ t[0] || (t[0] = (i) => e.state.pageSearchValue = i),
1259
1261
  e.searchPageData
1260
1262
  ],
1261
1263
  clearable: "",
1262
1264
  placeholder: "搜索页面"
1263
1265
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1264
1266
  ]),
1265
- s(d, {
1267
+ s(p, {
1266
1268
  modelValue: e.state.collapseValue,
1267
- "onUpdate:modelValue": o[1] || (o[1] = (r) => e.state.collapseValue = r),
1269
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => e.state.collapseValue = i),
1268
1270
  class: "page-manage-collapse lowcode-scrollbar"
1269
1271
  }, {
1270
- default: m(() => [
1271
- (T(!0), X(de, null, Je(e.pageSettingState.pages, (r, h) => (T(), G(n, {
1272
- key: h,
1273
- name: r.groupId
1272
+ default: P(() => [
1273
+ (N(!0), J(me, null, je(e.pageSettingState.pages, (i, S) => (N(), A(o, {
1274
+ key: S,
1275
+ name: i.groupId
1274
1276
  }, {
1275
- title: m(() => [
1276
- R("span", ma, ue(r.groupName), 1)
1277
+ title: P(() => [
1278
+ R("span", la, _e(i.groupName), 1)
1277
1279
  ]),
1278
- default: m(() => [
1279
- R("div", fa, [
1280
- (T(), G(i, {
1280
+ default: P(() => [
1281
+ R("div", ca, [
1282
+ (N(), A(l, {
1281
1283
  ref_for: !0,
1282
1284
  ref: e.getPageTreeRefs,
1283
1285
  key: e.pageSettingState.pageTreeKey,
1284
- data: r.data,
1286
+ data: i.data,
1285
1287
  props: {
1286
1288
  children: "children",
1287
1289
  label: "name"
@@ -1303,20 +1305,20 @@ function Pa(t, o, c, e, y, S) {
1303
1305
  }, 8, ["modelValue"])
1304
1306
  ], 64);
1305
1307
  }
1306
- const ya = /* @__PURE__ */ K(ua, [["render", Pa], ["__scopeId", "data-v-47637497"]]), ha = {
1307
- getPageById: async (t) => {
1308
- if (t)
1309
- return Se(t);
1308
+ const ga = /* @__PURE__ */ K(sa, [["render", ia], ["__scopeId", "data-v-8a51cf49"]]), pa = {
1309
+ getPageById: async (n) => {
1310
+ if (n)
1311
+ return Se(n);
1310
1312
  },
1311
1313
  openPageSettingPanel: se
1312
- }, Sa = {
1314
+ }, ua = {
1313
1315
  components: {
1314
- PageSetting: sa,
1315
- PluginPanel: tt,
1316
- SvgButton: ie,
1317
- PageFolderSetting: ia,
1318
- PageTree: ya,
1319
- LinkButton: at
1316
+ PageSetting: Yt,
1317
+ PluginPanel: $e,
1318
+ SvgButton: ce,
1319
+ PageFolderSetting: ta,
1320
+ PageTree: ga,
1321
+ LinkButton: et
1320
1322
  },
1321
1323
  props: {
1322
1324
  title: {
@@ -1326,117 +1328,208 @@ const ya = /* @__PURE__ */ K(ua, [["render", Pa], ["__scopeId", "data-v-47637497
1326
1328
  },
1327
1329
  setup() {
1328
1330
  const {
1329
- appInfoState: t
1330
- } = ce(), {
1331
- pageState: o
1331
+ appInfoState: n
1332
+ } = le(), {
1333
+ pageState: t
1332
1334
  } = fe(), {
1333
- pageSettingState: c,
1335
+ pageSettingState: r,
1334
1336
  DEFAULT_PAGE: e,
1335
- isTemporaryPage: y,
1336
- initCurrentPageData: S
1337
- } = M(), {
1338
- resState: a
1339
- } = Qe(), i = A(null), n = c.ROOT_ID, d = Ye().getDocsUrl("page"), r = $({
1337
+ isTemporaryPage: _,
1338
+ initCurrentPageData: f
1339
+ } = L(), a = U(null), l = r.ROOT_ID, o = We().getDocsUrl("page"), p = z({
1340
1340
  isFolder: !1
1341
- }), h = (f) => {
1342
- U(), c.isNew = !0, c.currentPageData = {
1341
+ }), i = (u) => {
1342
+ M(), r.isNew = !0, r.currentPageData = {
1343
1343
  ...e,
1344
- parentId: n,
1344
+ parentId: l,
1345
1345
  route: "",
1346
1346
  name: "Untitled",
1347
1347
  page_content: {
1348
1348
  lifeCycles: {}
1349
1349
  },
1350
- group: f
1351
- }, c.currentPageDataCopy = le(!0, {}, c.currentPageData), r.isFolder = !1, se();
1352
- }, C = () => {
1353
- q(), c.isNew = !0, c.currentPageData = {
1354
- parentId: n,
1350
+ group: u
1351
+ }, r.currentPageDataCopy = ne(!0, {}, r.currentPageData), p.isFolder = !1, se();
1352
+ }, S = () => {
1353
+ q(), r.isNew = !0, r.currentPageData = {
1354
+ parentId: l,
1355
1355
  route: "",
1356
1356
  name: "untitled"
1357
- }, c.currentPageDataCopy = le(!0, {}, c.currentPageData), r.isFolder = !0, Oe();
1357
+ }, r.currentPageDataCopy = ne(!0, {}, r.currentPageData), p.isFolder = !0, Fe();
1358
1358
  };
1359
- z(() => {
1360
- y.saved && se();
1359
+ Y(() => {
1360
+ _.saved && se();
1361
1361
  });
1362
- const g = async (f) => {
1363
- var j;
1364
- r.isFolder = !f.data.isPage, c.isNew = !1;
1365
- const V = f.data.id !== c.currentPageData.id;
1366
- r.isFolder ? (V && q(), Oe()) : (V && U(), se());
1367
- const x = await Se((j = f.data) == null ? void 0 : j.id);
1368
- S(x);
1362
+ const v = async (u) => {
1363
+ var F;
1364
+ p.isFolder = !u.data.isPage, r.isNew = !1;
1365
+ const D = u.data.id !== r.currentPageData.id;
1366
+ p.isFolder ? (D && q(), Fe()) : (D && M(), se());
1367
+ const V = await Se((F = u.data) == null ? void 0 : F.id);
1368
+ f(V);
1369
1369
  };
1370
- return Xe("openSettingPanel", g), {
1371
- state: r,
1372
- resState: a,
1373
- appInfoState: t,
1374
- pageState: o,
1375
- openNewPage: (f) => {
1376
- i.value.switchPage(f);
1370
+ return qe("openSettingPanel", v), {
1371
+ state: p,
1372
+ appInfoState: n,
1373
+ pageState: t,
1374
+ openNewPage: (u) => {
1375
+ a.value.switchPage(u);
1377
1376
  },
1378
- pageTreeRef: i,
1377
+ pageTreeRef: a,
1379
1378
  pluginPanelClosed: () => {
1380
- q(), U();
1379
+ q(), M();
1381
1380
  },
1382
- openSettingPanel: g,
1383
- createNewFolder: C,
1384
- createNewPage: h,
1385
- docsUrl: d
1381
+ openSettingPanel: v,
1382
+ createNewFolder: S,
1383
+ createNewPage: i,
1384
+ docsUrl: o
1386
1385
  };
1387
1386
  }
1388
1387
  };
1389
- function Da(t, o, c, e, y, S) {
1390
- const a = l("link-button"), i = l("svg-button"), n = l("page-tree"), d = l("plugin-panel"), r = l("page-setting"), h = l("page-folder-setting");
1391
- return T(), X(de, null, [
1392
- s(d, {
1393
- title: c.title,
1388
+ function da(n, t, r, e, _, f) {
1389
+ const a = c("link-button"), l = c("svg-button"), o = c("page-tree"), p = c("plugin-panel"), i = c("page-setting"), S = c("page-folder-setting");
1390
+ return N(), J(me, null, [
1391
+ s(p, {
1392
+ title: r.title,
1394
1393
  onClose: e.pluginPanelClosed
1395
1394
  }, {
1396
- header: m(() => [
1395
+ header: P(() => [
1397
1396
  s(a, { href: e.docsUrl }, null, 8, ["href"]),
1398
- s(i, {
1397
+ s(l, {
1399
1398
  class: "add-folder-icon",
1400
1399
  name: "add-folder",
1401
1400
  placement: "bottom",
1402
1401
  tips: "新建文件夹",
1403
1402
  onClick: e.createNewFolder
1404
1403
  }, null, 8, ["onClick"]),
1405
- s(i, {
1404
+ s(l, {
1406
1405
  class: "new-page-icon",
1407
1406
  name: "new-page",
1408
1407
  placement: "bottom",
1409
1408
  tips: "新建页面",
1410
- onClick: o[0] || (o[0] = (C) => e.createNewPage("staticPages"))
1409
+ onClick: t[0] || (t[0] = (v) => e.createNewPage("staticPages"))
1411
1410
  })
1412
1411
  ]),
1413
- content: m(() => [
1414
- s(n, {
1412
+ content: P(() => [
1413
+ s(o, {
1415
1414
  ref: "pageTreeRef",
1416
1415
  isFolder: e.state.isFolder,
1417
- onAdd: o[1] || (o[1] = (C) => e.createNewPage("publicPages")),
1416
+ onAdd: t[1] || (t[1] = (v) => e.createNewPage("publicPages")),
1418
1417
  onOpenSettingPanel: e.openSettingPanel
1419
1418
  }, null, 8, ["isFolder", "onOpenSettingPanel"])
1420
1419
  ]),
1421
1420
  _: 1
1422
1421
  }, 8, ["title", "onClose"]),
1423
- s(r, {
1422
+ s(i, {
1424
1423
  isFolder: e.state.isFolder,
1425
1424
  onOpenNewPage: e.openNewPage
1426
1425
  }, null, 8, ["isFolder", "onOpenNewPage"]),
1427
- s(h, {
1426
+ s(S, {
1428
1427
  isFolder: e.state.isFolder
1429
1428
  }, null, 8, ["isFolder"])
1430
1429
  ], 64);
1431
1430
  }
1432
- const va = /* @__PURE__ */ K(Sa, [["render", Da], ["__scopeId", "data-v-4d84419e"]]), Ma = {
1433
- id: "AppManage",
1431
+ const ma = /* @__PURE__ */ K(ua, [["render", da], ["__scopeId", "data-v-a8f91d2d"]]), _a = {
1432
+ id: "engine.plugins.appmanage",
1434
1433
  title: "页面管理",
1434
+ type: "plugins",
1435
1435
  icon: "plugin-icon-page",
1436
- align: "top",
1437
- api: ha,
1438
- component: va
1436
+ align: "top"
1437
+ }, fa = {
1438
+ app: "",
1439
+ name: "",
1440
+ route: "",
1441
+ page_content: {
1442
+ componentName: "Page",
1443
+ css: "",
1444
+ props: {},
1445
+ lifeCycles: {},
1446
+ children: [],
1447
+ dataSource: {
1448
+ list: []
1449
+ },
1450
+ state: {},
1451
+ methods: {},
1452
+ utils: [],
1453
+ bridge: [],
1454
+ inputs: [],
1455
+ outputs: []
1456
+ },
1457
+ isHome: !1,
1458
+ parentId: "none",
1459
+ isBody: !1,
1460
+ group: "staticPages"
1461
+ }, E = z({
1462
+ currentPageDataCopy: {},
1463
+ // 记录当前页最开始的状态,当用户点击取消按钮的时候恢复到初始状态
1464
+ currentPageData: {},
1465
+ // 当前配置页面的数据
1466
+ pages: [],
1467
+ oldParentId: null,
1468
+ pageTreeKey: 0,
1469
+ isNew: !1,
1470
+ ROOT_ID: "0",
1471
+ // 根节点ID
1472
+ updateTreeData: null,
1473
+ treeDataMapping: {}
1474
+ }), Pa = z({
1475
+ saved: !1
1476
+ }), ya = () => {
1477
+ const n = E.currentPageData || {}, t = E.currentPageDataCopy || {};
1478
+ let r = !0;
1479
+ return Object.keys(t).some((e) => {
1480
+ if (["children", "label", "createdBy", "assets", "occupier"].includes(e))
1481
+ return !1;
1482
+ if (e === "page_content") {
1483
+ const _ = {
1484
+ inputs: t[e].inputs,
1485
+ outputs: t[e].outputs,
1486
+ lifeCycles: t[e].lifeCycles
1487
+ }, f = {
1488
+ inputs: n[e].inputs,
1489
+ outputs: n[e].outputs,
1490
+ lifeCycles: n[e].lifeCycles
1491
+ };
1492
+ JSON.stringify(_) !== JSON.stringify(f) && (r = !1);
1493
+ } else
1494
+ t[e] !== n[e] && (r = !1);
1495
+ return !r;
1496
+ }), r;
1497
+ }, Sa = (n, t) => {
1498
+ var r, e;
1499
+ if (n && t && n !== t) {
1500
+ const _ = E.treeDataMapping[n], f = E.treeDataMapping[t], a = E.currentPageData.id, l = (e = (r = f.children) == null ? void 0 : r.findIndex) == null ? void 0 : e.call(r, ({ id: o }) => o === a);
1501
+ l > -1 && (f.children.splice(l, 1), _.children || (_.children = []), _.children.unshift(E.currentPageData), E.pageTreeKey++);
1502
+ }
1503
+ }, Da = () => E.currentPageData.page_content || {}, ha = (n) => {
1504
+ E.currentPageData = n, E.currentPageDataCopy = ne(!0, {}, n), E.oldParentId = n.parentId;
1505
+ }, Ca = () => {
1506
+ E.currentPageData = {}, E.currentPageDataCopy = {}, E.oldParentId = null;
1507
+ }, va = () => !ie(E.currentPageData, E.currentPageDataCopy), ba = 0, Ia = 1, Ta = () => ({
1508
+ DEFAULT_PAGE: fa,
1509
+ pageSettingState: E,
1510
+ isTemporaryPage: Pa,
1511
+ isCurrentDataSame: ya,
1512
+ changeTreeData: Sa,
1513
+ getPageContent: Da,
1514
+ resetPageData: Ca,
1515
+ initCurrentPageData: ha,
1516
+ isChangePageData: va,
1517
+ STATIC_PAGE_GROUP_ID: ba,
1518
+ COMMON_PAGE_GROUP_ID: Ia
1519
+ }), Na = {
1520
+ id: "engine.service.page",
1521
+ type: "MetaService",
1522
+ apis: Ta(),
1523
+ composable: {
1524
+ name: ze.usePage
1525
+ }
1526
+ }, Ja = {
1527
+ ..._a,
1528
+ apis: pa,
1529
+ entry: ma,
1530
+ metas: [Na]
1439
1531
  };
1440
1532
  export {
1441
- Ma as default
1533
+ Na as PageService,
1534
+ Ja as default
1442
1535
  };