@opentiny/tiny-engine-toolbar-save 2.9.0-rc.0 → 2.9.0

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,11 +1,12 @@
1
1
  import "./style.css";
2
- import { useMessage as b, callEntry as m, getMetaApi as j, META_APP as I, useBlock as J, getOptions as L, usePage as G, useNotify as V, useLayout as R, useCanvas as u, useCompile as Q } from "@opentiny/tiny-engine-meta-register";
3
- import { reactive as te, ref as X, onMounted as Z, onUnmounted as $, resolveComponent as w, createElementBlock as ae, openBlock as ee, createVNode as N, withCtx as P, createBlock as oe, createCommentVNode as ne, createTextVNode as W, createElementVNode as K } from "vue";
4
- import { ToolbarBase as h, VueMonaco as M } from "@opentiny/tiny-engine-common";
5
- import { Select as se, Checkbox as ie, DialogBox as le, Popover as ce, Button as re } from "@opentiny/vue";
2
+ import { useMessage as f, callEntry as u, getMetaApi as G, META_APP as R, useBlock as W, getOptions as Y, usePage as q, useNotify as j, useLayout as z, useCanvas as v, useCompile as $ } from "@opentiny/tiny-engine-meta-register";
3
+ import { reactive as ie, ref as oe, onMounted as ne, onUnmounted as se, resolveComponent as I, createElementBlock as le, openBlock as ee, createVNode as J, withCtx as U, createBlock as ae, createCommentVNode as ce, createTextVNode as te, createElementVNode as X, withModifiers as re } from "vue";
4
+ import { ToolbarBase as h, VueMonaco as A } from "@opentiny/tiny-engine-common";
5
+ import { Select as de, Checkbox as me, DialogBox as ue, Popover as ve, Button as pe } from "@opentiny/vue";
6
+ import { iconDownWard as P, iconUpWard as V } from "@opentiny/vue-icon";
6
7
  import { constants as _ } from "@opentiny/tiny-engine-utils";
7
- import { handlePageUpdate as Y } from "@opentiny/tiny-engine-common/js/http";
8
- const B = {
8
+ import { handlePageUpdate as F } from "@opentiny/tiny-engine-common/js/http";
9
+ const w = {
9
10
  id: "engine.toolbars.save",
10
11
  type: "toolbars",
11
12
  title: "save",
@@ -16,65 +17,65 @@ const B = {
16
17
  renderType: "button"
17
18
  }
18
19
  }, {
19
- publish: q
20
- } = b(), {
21
- PAGE_STATUS: E,
22
- AUTO_SAVED: U
23
- } = _, O = te({
20
+ publish: H
21
+ } = f(), {
22
+ PAGE_STATUS: O,
23
+ AUTO_SAVED: L
24
+ } = _, N = ie({
24
25
  visible: !1,
25
26
  code: "",
26
27
  originalCode: "",
27
28
  disabled: !1
28
- }), c = X(!1), z = m(async (o) => {
29
- var s;
30
- const e = j(I.BlockManage), {
31
- getCurrentBlock: a
32
- } = J(), t = a();
33
- t.label = o.fileName, t.content = o, c.value = !0, t.screenshot = await e.getBlockBase64(), await ((s = e.saveBlock) == null ? void 0 : s.call(e, t)), c.value = !1;
29
+ }), r = oe(!1), K = u(async (a) => {
30
+ var l;
31
+ const e = G(R.BlockManage), {
32
+ getCurrentBlock: o
33
+ } = W(), t = o();
34
+ t.label = a.fileName, t.content = a, r.value = !0, t.screenshot = await e.getBlockBase64(), await ((l = e.saveBlock) == null ? void 0 : l.call(e, t)), r.value = !1;
34
35
  }, {
35
36
  metaData: {
36
37
  id: "engine.toolbars.save.js-index.saveBlock"
37
38
  },
38
39
  ctx: () => ({
39
- useBlock: J,
40
- useCanvas: u,
41
- useLayout: R,
42
- useNotify: V,
43
- usePage: G,
44
- getOptions: L,
45
- getMetaApi: j,
46
- META_APP: I,
47
- useMessage: b,
40
+ useBlock: W,
41
+ useCanvas: v,
42
+ useLayout: z,
43
+ useNotify: j,
44
+ usePage: q,
45
+ getOptions: Y,
46
+ getMetaApi: G,
47
+ META_APP: R,
48
+ useMessage: f,
48
49
  constants: _,
49
- handlePageUpdate: Y,
50
- meta: B,
51
- publish: q,
52
- PAGE_STATUS: E,
53
- AUTO_SAVED: U,
54
- state: O,
55
- isLoading: c,
56
- saveBlock: z,
57
- savePage: F,
50
+ handlePageUpdate: F,
51
+ meta: w,
52
+ publish: H,
53
+ PAGE_STATUS: O,
54
+ AUTO_SAVED: L,
55
+ state: N,
56
+ isLoading: r,
57
+ saveBlock: K,
58
+ savePage: Q,
58
59
  saveCommon: g,
59
60
  openCommon: y,
60
61
  getAutoSaveStatus: k,
61
62
  setAutoSaveStatus: x
62
63
  })
63
- }), F = m(async (o) => {
64
+ }), Q = u(async (a) => {
64
65
  const {
65
66
  currentPage: e
66
- } = u().pageState, a = {
67
- page_content: o
67
+ } = v().pageState, o = {
68
+ page_content: a
68
69
  };
69
- c.value = !0;
70
+ r.value = !0;
70
71
  const t = {
71
72
  id: e.id,
72
73
  params: {
73
74
  ...e,
74
- ...a
75
+ ...o
75
76
  }
76
77
  };
77
- await Y(t), c.value = !1, q({
78
+ await F(t), r.value = !1, H({
78
79
  topic: "page-saved"
79
80
  });
80
81
  }, {
@@ -82,130 +83,130 @@ const B = {
82
83
  id: "engine.toolbars.save.js-index.savePage"
83
84
  },
84
85
  ctx: () => ({
85
- useBlock: J,
86
- useCanvas: u,
87
- useLayout: R,
88
- useNotify: V,
89
- usePage: G,
90
- getOptions: L,
91
- getMetaApi: j,
92
- META_APP: I,
93
- useMessage: b,
86
+ useBlock: W,
87
+ useCanvas: v,
88
+ useLayout: z,
89
+ useNotify: j,
90
+ usePage: q,
91
+ getOptions: Y,
92
+ getMetaApi: G,
93
+ META_APP: R,
94
+ useMessage: f,
94
95
  constants: _,
95
- handlePageUpdate: Y,
96
- meta: B,
97
- publish: q,
98
- PAGE_STATUS: E,
99
- AUTO_SAVED: U,
100
- state: O,
101
- isLoading: c,
102
- saveBlock: z,
103
- savePage: F,
96
+ handlePageUpdate: F,
97
+ meta: w,
98
+ publish: H,
99
+ PAGE_STATUS: O,
100
+ AUTO_SAVED: L,
101
+ state: N,
102
+ isLoading: r,
103
+ saveBlock: K,
104
+ savePage: Q,
104
105
  saveCommon: g,
105
106
  openCommon: y,
106
107
  getAutoSaveStatus: k,
107
108
  setAutoSaveStatus: x
108
109
  })
109
- }), g = m((o) => {
110
+ }), g = u((a) => {
110
111
  const {
111
112
  pageSettingState: e,
112
- isTemporaryPage: a
113
- } = G(), {
113
+ isTemporaryPage: o
114
+ } = q(), {
114
115
  isBlock: t,
115
- canvasApi: s,
116
- pageState: i,
117
- resetBlockCanvasState: d,
118
- resetPageCanvasState: r
119
- } = u(), n = JSON.parse(o), {
120
- selectNode: l
121
- } = s.value;
122
- if (t() ? d({
123
- ...i,
124
- pageSchema: n
125
- }) : r({
126
- ...i,
127
- pageSchema: n
116
+ canvasApi: l,
117
+ pageState: n,
118
+ resetBlockCanvasState: p,
119
+ resetPageCanvasState: d
120
+ } = v(), i = JSON.parse(a), {
121
+ selectNode: c
122
+ } = l.value;
123
+ if (t() ? p({
124
+ ...n,
125
+ pageSchema: i
126
+ }) : d({
127
+ ...n,
128
+ pageSchema: i
128
129
  }), e != null && e.isAIPage) {
129
- a.saved && (a.saved = !1), a.saved = !0;
130
- const f = "page_content";
131
- return e.currentPageData[f] = n, Promise.resolve();
130
+ o.saved && (o.saved = !1), o.saved = !0;
131
+ const s = "page_content";
132
+ return e.currentPageData[s] = i, Promise.resolve();
132
133
  }
133
- return l(null), t() ? z(n) : F(n);
134
+ return c(null), t() ? K(i) : Q(i);
134
135
  }, {
135
136
  metaData: {
136
137
  id: "engine.toolbars.save.js-index.saveCommon"
137
138
  },
138
139
  ctx: () => ({
139
- useBlock: J,
140
- useCanvas: u,
141
- useLayout: R,
142
- useNotify: V,
143
- usePage: G,
144
- getOptions: L,
145
- getMetaApi: j,
146
- META_APP: I,
147
- useMessage: b,
140
+ useBlock: W,
141
+ useCanvas: v,
142
+ useLayout: z,
143
+ useNotify: j,
144
+ usePage: q,
145
+ getOptions: Y,
146
+ getMetaApi: G,
147
+ META_APP: R,
148
+ useMessage: f,
148
149
  constants: _,
149
- handlePageUpdate: Y,
150
- meta: B,
151
- publish: q,
152
- PAGE_STATUS: E,
153
- AUTO_SAVED: U,
154
- state: O,
155
- isLoading: c,
156
- saveBlock: z,
157
- savePage: F,
150
+ handlePageUpdate: F,
151
+ meta: w,
152
+ publish: H,
153
+ PAGE_STATUS: O,
154
+ AUTO_SAVED: L,
155
+ state: N,
156
+ isLoading: r,
157
+ saveBlock: K,
158
+ savePage: Q,
158
159
  saveCommon: g,
159
160
  openCommon: y,
160
161
  getAutoSaveStatus: k,
161
162
  setAutoSaveStatus: x
162
163
  })
163
- }), y = m(async () => {
164
- var f;
164
+ }), y = u(async () => {
165
+ var s;
165
166
  const {
166
- isSaved: o,
167
+ isSaved: a,
167
168
  getSchema: e
168
- } = u();
169
- if (o() || O.disabled)
169
+ } = v();
170
+ if (a() || N.disabled)
170
171
  return;
171
172
  const {
172
- beforeSave: a,
173
+ beforeSave: o,
173
174
  saveMethod: t,
174
- saved: s
175
- } = L(B.id);
175
+ saved: l
176
+ } = Y(w.id);
176
177
  try {
177
- if (typeof a == "function" && await a(), typeof t == "function" && await t())
178
+ if (typeof o == "function" && await o(), typeof t == "function" && await t())
178
179
  return;
179
- } catch (v) {
180
- V({
180
+ } catch (b) {
181
+ j({
181
182
  type: "error",
182
- message: `Error in saving: ${v}`
183
+ message: `Error in saving: ${b}`
183
184
  });
184
185
  }
185
- const i = (f = R().layoutState) == null ? void 0 : f.pageStatus, d = i == null ? void 0 : i.state, r = i == null ? void 0 : i.data, n = {
186
- [E.Release]: "当前页面未锁定,请先锁定再保存",
187
- [E.Empty]: "当前应用无页面,请先新建页面再保存",
188
- [E.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
189
- [E.Lock]: `当前页面被 ${(r == null ? void 0 : r.username) || ""} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
186
+ const n = (s = z().layoutState) == null ? void 0 : s.pageStatus, p = n == null ? void 0 : n.state, d = n == null ? void 0 : n.data, i = {
187
+ [O.Release]: "当前页面未锁定,请先锁定再保存",
188
+ [O.Empty]: "当前应用无页面,请先新建页面再保存",
189
+ [O.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
190
+ [O.Lock]: `当前页面被 ${(d == null ? void 0 : d.username) || ""} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
190
191
  };
191
- if ([E.Release, E.Empty, E.Guest, E.Lock].includes(d)) {
192
- V({
192
+ if ([O.Release, O.Empty, O.Guest, O.Lock].includes(p)) {
193
+ j({
193
194
  type: "error",
194
195
  title: "保存失败",
195
- message: n[d]
196
+ message: i[p]
196
197
  });
197
198
  return;
198
199
  }
199
- O.disabled = !0;
200
- const l = e();
201
- return O.code = JSON.stringify(l || {}, null, 2), g(O.code).finally(() => {
202
- if (O.disabled = !1, typeof s == "function")
200
+ N.disabled = !0;
201
+ const c = e();
202
+ return N.code = JSON.stringify(c || {}, null, 2), g(N.code).finally(() => {
203
+ if (N.disabled = !1, typeof l == "function")
203
204
  try {
204
- s();
205
- } catch (v) {
206
- V({
205
+ l();
206
+ } catch (b) {
207
+ j({
207
208
  type: "error",
208
- message: `Error in saved: ${v}`
209
+ message: `Error in saved: ${b}`
209
210
  });
210
211
  }
211
212
  });
@@ -214,34 +215,34 @@ const B = {
214
215
  id: "engine.toolbars.save.js-index.openCommon"
215
216
  },
216
217
  ctx: () => ({
217
- useBlock: J,
218
- useCanvas: u,
219
- useLayout: R,
220
- useNotify: V,
221
- usePage: G,
222
- getOptions: L,
223
- getMetaApi: j,
224
- META_APP: I,
225
- useMessage: b,
218
+ useBlock: W,
219
+ useCanvas: v,
220
+ useLayout: z,
221
+ useNotify: j,
222
+ usePage: q,
223
+ getOptions: Y,
224
+ getMetaApi: G,
225
+ META_APP: R,
226
+ useMessage: f,
226
227
  constants: _,
227
- handlePageUpdate: Y,
228
- meta: B,
229
- publish: q,
230
- PAGE_STATUS: E,
231
- AUTO_SAVED: U,
232
- state: O,
233
- isLoading: c,
234
- saveBlock: z,
235
- savePage: F,
228
+ handlePageUpdate: F,
229
+ meta: w,
230
+ publish: H,
231
+ PAGE_STATUS: O,
232
+ AUTO_SAVED: L,
233
+ state: N,
234
+ isLoading: r,
235
+ saveBlock: K,
236
+ savePage: Q,
236
237
  saveCommon: g,
237
238
  openCommon: y,
238
239
  getAutoSaveStatus: k,
239
240
  setAutoSaveStatus: x
240
241
  })
241
- }), k = m(() => {
242
+ }), k = u(() => {
242
243
  try {
243
- const o = localStorage.getItem(U) ?? "";
244
- return JSON.parse(o) ?? !1;
244
+ const a = localStorage.getItem(L) ?? "";
245
+ return JSON.parse(a) ?? !1;
245
246
  } catch {
246
247
  return !1;
247
248
  }
@@ -250,33 +251,33 @@ const B = {
250
251
  id: "engine.toolbars.save.js-index.getAutoSaveStatus"
251
252
  },
252
253
  ctx: () => ({
253
- useBlock: J,
254
- useCanvas: u,
255
- useLayout: R,
256
- useNotify: V,
257
- usePage: G,
258
- getOptions: L,
259
- getMetaApi: j,
260
- META_APP: I,
261
- useMessage: b,
254
+ useBlock: W,
255
+ useCanvas: v,
256
+ useLayout: z,
257
+ useNotify: j,
258
+ usePage: q,
259
+ getOptions: Y,
260
+ getMetaApi: G,
261
+ META_APP: R,
262
+ useMessage: f,
262
263
  constants: _,
263
- handlePageUpdate: Y,
264
- meta: B,
265
- publish: q,
266
- PAGE_STATUS: E,
267
- AUTO_SAVED: U,
268
- state: O,
269
- isLoading: c,
270
- saveBlock: z,
271
- savePage: F,
264
+ handlePageUpdate: F,
265
+ meta: w,
266
+ publish: H,
267
+ PAGE_STATUS: O,
268
+ AUTO_SAVED: L,
269
+ state: N,
270
+ isLoading: r,
271
+ saveBlock: K,
272
+ savePage: Q,
272
273
  saveCommon: g,
273
274
  openCommon: y,
274
275
  getAutoSaveStatus: k,
275
276
  setAutoSaveStatus: x
276
277
  })
277
- }), x = m((o) => {
278
+ }), x = u((a) => {
278
279
  try {
279
- return localStorage.setItem(U, JSON.stringify(o)), !0;
280
+ return localStorage.setItem(L, JSON.stringify(a)), !0;
280
281
  } catch {
281
282
  return !1;
282
283
  }
@@ -285,57 +286,55 @@ const B = {
285
286
  id: "engine.toolbars.save.js-index.setAutoSaveStatus"
286
287
  },
287
288
  ctx: () => ({
288
- useBlock: J,
289
- useCanvas: u,
290
- useLayout: R,
291
- useNotify: V,
292
- usePage: G,
293
- getOptions: L,
294
- getMetaApi: j,
295
- META_APP: I,
296
- useMessage: b,
289
+ useBlock: W,
290
+ useCanvas: v,
291
+ useLayout: z,
292
+ useNotify: j,
293
+ usePage: q,
294
+ getOptions: Y,
295
+ getMetaApi: G,
296
+ META_APP: R,
297
+ useMessage: f,
297
298
  constants: _,
298
- handlePageUpdate: Y,
299
- meta: B,
300
- publish: q,
301
- PAGE_STATUS: E,
302
- AUTO_SAVED: U,
303
- state: O,
304
- isLoading: c,
305
- saveBlock: z,
306
- savePage: F,
299
+ handlePageUpdate: F,
300
+ meta: w,
301
+ publish: H,
302
+ PAGE_STATUS: O,
303
+ AUTO_SAVED: L,
304
+ state: N,
305
+ isLoading: r,
306
+ saveBlock: K,
307
+ savePage: Q,
307
308
  saveCommon: g,
308
309
  openCommon: y,
309
310
  getAutoSaveStatus: k,
310
311
  setAutoSaveStatus: x
311
312
  })
312
313
  }), {
313
- OPEN_DELAY: T
314
- } = _, A = {
314
+ OPEN_DELAY: B
315
+ } = _, E = {
315
316
  saveCommon: g,
316
317
  openCommon: y
317
- }, de = {
318
+ }, ge = {
318
319
  components: {
319
- VueMonaco: M,
320
- TinyButton: re,
321
- TinyPopover: ce,
322
- TinyDialogBox: le,
323
- TinyCheckbox: ie,
324
- TinySelect: se,
320
+ VueMonaco: A,
321
+ TinyButton: pe,
322
+ TinyPopover: ve,
323
+ TinyDialogBox: ue,
324
+ TinyCheckbox: me,
325
+ TinySelect: de,
326
+ TinyIconUpWard: V(),
327
+ TinyIconDownWard: P(),
325
328
  ToolbarBase: h
326
329
  },
327
330
  props: {
328
- iconExpand: {
329
- type: String,
330
- default: "down-arrow"
331
- },
332
331
  options: {
333
332
  type: Object,
334
333
  default: () => ({})
335
334
  }
336
335
  },
337
336
  setup() {
338
- const o = [{
337
+ const a = [{
339
338
  value: 5,
340
339
  label: "5分钟"
341
340
  }, {
@@ -344,44 +343,84 @@ const B = {
344
343
  }, {
345
344
  value: 15,
346
345
  label: "15分钟"
347
- }], e = te({
346
+ }], e = ie({
348
347
  visible: !1,
349
348
  code: "",
350
349
  originalCode: "",
351
350
  checked: !1,
352
351
  timeValue: 5,
353
352
  preservationTime: null
354
- }), a = X(null), {
355
- isSaved: t,
356
- setSaved: s,
357
- getSchema: i
358
- } = u(), {
353
+ }), o = oe(null), t = oe(!1), {
354
+ isSaved: l,
355
+ setSaved: n,
356
+ getSchema: p
357
+ } = v(), {
359
358
  subscribe: d,
360
- unsubscribe: r
361
- } = b(), n = "toolbar-save", l = X(null);
362
- Z(m(m(() => {
359
+ unsubscribe: i
360
+ } = f(), c = "toolbar-save", s = oe(null), b = u(() => {
361
+ t.value = !t.value;
362
+ }, {
363
+ metaData: {
364
+ id: "engine.toolbars.save.Main.clickPopover"
365
+ },
366
+ ctx: () => ({
367
+ delayOptions: a,
368
+ state: e,
369
+ editor: o,
370
+ poperVisible: t,
371
+ isSaved: l,
372
+ setSaved: n,
373
+ getSchema: p,
374
+ subscribe: d,
375
+ unsubscribe: i,
376
+ subscriber: c,
377
+ originSchema: s,
378
+ clickPopover: b,
379
+ close: S,
380
+ openApi: C,
381
+ saveApi: D,
382
+ editorOptions: m,
383
+ saveSetTimeout: M,
384
+ saveConfig: T,
385
+ VueMonaco: A,
386
+ iconUpWard: V,
387
+ iconDownWard: P,
388
+ useCanvas: v,
389
+ useMessage: f,
390
+ ToolbarBase: h,
391
+ openCommon: y,
392
+ saveCommon: g,
393
+ isLoading: r,
394
+ setAutoSaveStatus: x,
395
+ getAutoSaveStatus: k,
396
+ constants: _,
397
+ OPEN_DELAY: B,
398
+ api: E
399
+ })
400
+ });
401
+ ne(u(u(() => {
363
402
  d({
364
403
  topic: "pageOrBlockInit",
365
- subscriber: n,
366
- callback: (H) => {
367
- l.value = JSON.stringify(H), s(!0);
404
+ subscriber: c,
405
+ callback: (Z) => {
406
+ s.value = JSON.stringify(Z), n(!0);
368
407
  }
369
408
  }), d({
370
409
  topic: "schemaChange",
371
- subscriber: n,
410
+ subscriber: c,
372
411
  callback: () => {
373
- if (l.value) {
374
- const H = JSON.stringify(i()) === l.value;
375
- s(H);
412
+ if (s.value) {
413
+ const Z = JSON.stringify(p()) === s.value;
414
+ n(Z);
376
415
  }
377
416
  }
378
417
  }), d({
379
418
  topic: "schemaImport",
380
- subscriber: n,
419
+ subscriber: c,
381
420
  callback: () => {
382
- if (l.value) {
383
- const H = JSON.stringify(i()) === l.value;
384
- s(H);
421
+ if (s.value) {
422
+ const Z = JSON.stringify(p()) === s.value;
423
+ n(Z);
385
424
  }
386
425
  }
387
426
  });
@@ -390,559 +429,619 @@ const B = {
390
429
  id: "engine.toolbars.save.Main.onMounted[0]"
391
430
  },
392
431
  ctx: () => ({
393
- delayOptions: o,
432
+ delayOptions: a,
394
433
  state: e,
395
- editor: a,
396
- isSaved: t,
397
- setSaved: s,
398
- getSchema: i,
434
+ editor: o,
435
+ poperVisible: t,
436
+ isSaved: l,
437
+ setSaved: n,
438
+ getSchema: p,
399
439
  subscribe: d,
400
- unsubscribe: r,
401
- subscriber: n,
402
- originSchema: l,
403
- close: f,
404
- openApi: v,
405
- saveApi: C,
406
- editorOptions: S,
407
- saveSetTimeout: p,
408
- saveConfig: D,
409
- VueMonaco: M,
410
- useCanvas: u,
411
- useMessage: b,
440
+ unsubscribe: i,
441
+ subscriber: c,
442
+ originSchema: s,
443
+ clickPopover: b,
444
+ close: S,
445
+ openApi: C,
446
+ saveApi: D,
447
+ editorOptions: m,
448
+ saveSetTimeout: M,
449
+ saveConfig: T,
450
+ VueMonaco: A,
451
+ iconUpWard: V,
452
+ iconDownWard: P,
453
+ useCanvas: v,
454
+ useMessage: f,
412
455
  ToolbarBase: h,
413
456
  openCommon: y,
414
457
  saveCommon: g,
415
- isLoading: c,
458
+ isLoading: r,
416
459
  setAutoSaveStatus: x,
417
460
  getAutoSaveStatus: k,
418
461
  constants: _,
419
- OPEN_DELAY: T,
420
- api: A
462
+ OPEN_DELAY: B,
463
+ api: E
421
464
  })
422
465
  }), {
423
466
  metaData: {
424
467
  id: "engine.toolbars.save.Main.onMounted[0]"
425
468
  },
426
469
  ctx: () => ({
427
- delayOptions: o,
470
+ delayOptions: a,
428
471
  state: e,
429
- editor: a,
430
- isSaved: t,
431
- setSaved: s,
432
- getSchema: i,
472
+ editor: o,
473
+ poperVisible: t,
474
+ isSaved: l,
475
+ setSaved: n,
476
+ getSchema: p,
433
477
  subscribe: d,
434
- unsubscribe: r,
435
- subscriber: n,
436
- originSchema: l,
437
- close: f,
438
- openApi: v,
439
- saveApi: C,
440
- editorOptions: S,
441
- saveSetTimeout: p,
442
- saveConfig: D,
443
- _callEntry: m,
444
- _useCompile: Q,
445
- _metaData: B,
446
- VueMonaco: M,
447
- useCanvas: u,
448
- useMessage: b,
478
+ unsubscribe: i,
479
+ subscriber: c,
480
+ originSchema: s,
481
+ clickPopover: b,
482
+ close: S,
483
+ openApi: C,
484
+ saveApi: D,
485
+ editorOptions: m,
486
+ saveSetTimeout: M,
487
+ saveConfig: T,
488
+ _callEntry: u,
489
+ _useCompile: $,
490
+ _metaData: w,
491
+ VueMonaco: A,
492
+ iconUpWard: V,
493
+ iconDownWard: P,
494
+ useCanvas: v,
495
+ useMessage: f,
449
496
  ToolbarBase: h,
450
497
  openCommon: y,
451
498
  saveCommon: g,
452
- isLoading: c,
499
+ isLoading: r,
453
500
  setAutoSaveStatus: x,
454
501
  getAutoSaveStatus: k,
455
502
  constants: _,
456
- OPEN_DELAY: T,
457
- api: A
503
+ OPEN_DELAY: B,
504
+ api: E
458
505
  })
459
- })), $(m(m(() => {
460
- r({
506
+ })), se(u(u(() => {
507
+ i({
461
508
  topic: "pageOrBlockInit",
462
- subscriber: n
463
- }), r({
509
+ subscriber: c
510
+ }), i({
464
511
  topic: "schemaChange",
465
- subscriber: n
466
- }), r({
512
+ subscriber: c
513
+ }), i({
467
514
  topic: "schemaImport",
468
- subscriber: n
515
+ subscriber: c
469
516
  });
470
517
  }, {
471
518
  metaData: {
472
519
  id: "engine.toolbars.save.Main.onUnmounted[0]"
473
520
  },
474
521
  ctx: () => ({
475
- delayOptions: o,
522
+ delayOptions: a,
476
523
  state: e,
477
- editor: a,
478
- isSaved: t,
479
- setSaved: s,
480
- getSchema: i,
524
+ editor: o,
525
+ poperVisible: t,
526
+ isSaved: l,
527
+ setSaved: n,
528
+ getSchema: p,
481
529
  subscribe: d,
482
- unsubscribe: r,
483
- subscriber: n,
484
- originSchema: l,
485
- close: f,
486
- openApi: v,
487
- saveApi: C,
488
- editorOptions: S,
489
- saveSetTimeout: p,
490
- saveConfig: D,
491
- VueMonaco: M,
492
- useCanvas: u,
493
- useMessage: b,
530
+ unsubscribe: i,
531
+ subscriber: c,
532
+ originSchema: s,
533
+ clickPopover: b,
534
+ close: S,
535
+ openApi: C,
536
+ saveApi: D,
537
+ editorOptions: m,
538
+ saveSetTimeout: M,
539
+ saveConfig: T,
540
+ VueMonaco: A,
541
+ iconUpWard: V,
542
+ iconDownWard: P,
543
+ useCanvas: v,
544
+ useMessage: f,
494
545
  ToolbarBase: h,
495
546
  openCommon: y,
496
547
  saveCommon: g,
497
- isLoading: c,
548
+ isLoading: r,
498
549
  setAutoSaveStatus: x,
499
550
  getAutoSaveStatus: k,
500
551
  constants: _,
501
- OPEN_DELAY: T,
502
- api: A
552
+ OPEN_DELAY: B,
553
+ api: E
503
554
  })
504
555
  }), {
505
556
  metaData: {
506
557
  id: "engine.toolbars.save.Main.onUnmounted[0]"
507
558
  },
508
559
  ctx: () => ({
509
- delayOptions: o,
560
+ delayOptions: a,
510
561
  state: e,
511
- editor: a,
512
- isSaved: t,
513
- setSaved: s,
514
- getSchema: i,
562
+ editor: o,
563
+ poperVisible: t,
564
+ isSaved: l,
565
+ setSaved: n,
566
+ getSchema: p,
515
567
  subscribe: d,
516
- unsubscribe: r,
517
- subscriber: n,
518
- originSchema: l,
519
- close: f,
520
- openApi: v,
521
- saveApi: C,
522
- editorOptions: S,
523
- saveSetTimeout: p,
524
- saveConfig: D,
525
- _callEntry: m,
526
- _useCompile: Q,
527
- _metaData: B,
528
- VueMonaco: M,
529
- useCanvas: u,
530
- useMessage: b,
568
+ unsubscribe: i,
569
+ subscriber: c,
570
+ originSchema: s,
571
+ clickPopover: b,
572
+ close: S,
573
+ openApi: C,
574
+ saveApi: D,
575
+ editorOptions: m,
576
+ saveSetTimeout: M,
577
+ saveConfig: T,
578
+ _callEntry: u,
579
+ _useCompile: $,
580
+ _metaData: w,
581
+ VueMonaco: A,
582
+ iconUpWard: V,
583
+ iconDownWard: P,
584
+ useCanvas: v,
585
+ useMessage: f,
531
586
  ToolbarBase: h,
532
587
  openCommon: y,
533
588
  saveCommon: g,
534
- isLoading: c,
589
+ isLoading: r,
535
590
  setAutoSaveStatus: x,
536
591
  getAutoSaveStatus: k,
537
592
  constants: _,
538
- OPEN_DELAY: T,
539
- api: A
593
+ OPEN_DELAY: B,
594
+ api: E
540
595
  })
541
596
  }));
542
- const f = m(() => {
597
+ const S = u(() => {
543
598
  e.visible = !1, e.originalCode = "";
544
599
  }, {
545
600
  metaData: {
546
601
  id: "engine.toolbars.save.Main.close"
547
602
  },
548
603
  ctx: () => ({
549
- delayOptions: o,
604
+ delayOptions: a,
550
605
  state: e,
551
- editor: a,
552
- isSaved: t,
553
- setSaved: s,
554
- getSchema: i,
606
+ editor: o,
607
+ poperVisible: t,
608
+ isSaved: l,
609
+ setSaved: n,
610
+ getSchema: p,
555
611
  subscribe: d,
556
- unsubscribe: r,
557
- subscriber: n,
558
- originSchema: l,
559
- close: f,
560
- openApi: v,
561
- saveApi: C,
562
- editorOptions: S,
563
- saveSetTimeout: p,
564
- saveConfig: D,
565
- VueMonaco: M,
566
- useCanvas: u,
567
- useMessage: b,
612
+ unsubscribe: i,
613
+ subscriber: c,
614
+ originSchema: s,
615
+ clickPopover: b,
616
+ close: S,
617
+ openApi: C,
618
+ saveApi: D,
619
+ editorOptions: m,
620
+ saveSetTimeout: M,
621
+ saveConfig: T,
622
+ VueMonaco: A,
623
+ iconUpWard: V,
624
+ iconDownWard: P,
625
+ useCanvas: v,
626
+ useMessage: f,
568
627
  ToolbarBase: h,
569
628
  openCommon: y,
570
629
  saveCommon: g,
571
- isLoading: c,
630
+ isLoading: r,
572
631
  setAutoSaveStatus: x,
573
632
  getAutoSaveStatus: k,
574
633
  constants: _,
575
- OPEN_DELAY: T,
576
- api: A
634
+ OPEN_DELAY: B,
635
+ api: E
577
636
  })
578
- }), v = m(() => {
579
- c.value || y();
637
+ }), C = u(() => {
638
+ r.value || y();
580
639
  }, {
581
640
  metaData: {
582
641
  id: "engine.toolbars.save.Main.openApi"
583
642
  },
584
643
  ctx: () => ({
585
- delayOptions: o,
644
+ delayOptions: a,
586
645
  state: e,
587
- editor: a,
588
- isSaved: t,
589
- setSaved: s,
590
- getSchema: i,
646
+ editor: o,
647
+ poperVisible: t,
648
+ isSaved: l,
649
+ setSaved: n,
650
+ getSchema: p,
591
651
  subscribe: d,
592
- unsubscribe: r,
593
- subscriber: n,
594
- originSchema: l,
595
- close: f,
596
- openApi: v,
597
- saveApi: C,
598
- editorOptions: S,
599
- saveSetTimeout: p,
600
- saveConfig: D,
601
- VueMonaco: M,
602
- useCanvas: u,
603
- useMessage: b,
652
+ unsubscribe: i,
653
+ subscriber: c,
654
+ originSchema: s,
655
+ clickPopover: b,
656
+ close: S,
657
+ openApi: C,
658
+ saveApi: D,
659
+ editorOptions: m,
660
+ saveSetTimeout: M,
661
+ saveConfig: T,
662
+ VueMonaco: A,
663
+ iconUpWard: V,
664
+ iconDownWard: P,
665
+ useCanvas: v,
666
+ useMessage: f,
604
667
  ToolbarBase: h,
605
668
  openCommon: y,
606
669
  saveCommon: g,
607
- isLoading: c,
670
+ isLoading: r,
608
671
  setAutoSaveStatus: x,
609
672
  getAutoSaveStatus: k,
610
673
  constants: _,
611
- OPEN_DELAY: T,
612
- api: A
674
+ OPEN_DELAY: B,
675
+ api: E
613
676
  })
614
- }), C = m(() => {
677
+ }), D = u(() => {
615
678
  g();
616
679
  }, {
617
680
  metaData: {
618
681
  id: "engine.toolbars.save.Main.saveApi"
619
682
  },
620
683
  ctx: () => ({
621
- delayOptions: o,
684
+ delayOptions: a,
622
685
  state: e,
623
- editor: a,
624
- isSaved: t,
625
- setSaved: s,
626
- getSchema: i,
686
+ editor: o,
687
+ poperVisible: t,
688
+ isSaved: l,
689
+ setSaved: n,
690
+ getSchema: p,
627
691
  subscribe: d,
628
- unsubscribe: r,
629
- subscriber: n,
630
- originSchema: l,
631
- close: f,
632
- openApi: v,
633
- saveApi: C,
634
- editorOptions: S,
635
- saveSetTimeout: p,
636
- saveConfig: D,
637
- VueMonaco: M,
638
- useCanvas: u,
639
- useMessage: b,
692
+ unsubscribe: i,
693
+ subscriber: c,
694
+ originSchema: s,
695
+ clickPopover: b,
696
+ close: S,
697
+ openApi: C,
698
+ saveApi: D,
699
+ editorOptions: m,
700
+ saveSetTimeout: M,
701
+ saveConfig: T,
702
+ VueMonaco: A,
703
+ iconUpWard: V,
704
+ iconDownWard: P,
705
+ useCanvas: v,
706
+ useMessage: f,
640
707
  ToolbarBase: h,
641
708
  openCommon: y,
642
709
  saveCommon: g,
643
- isLoading: c,
710
+ isLoading: r,
644
711
  setAutoSaveStatus: x,
645
712
  getAutoSaveStatus: k,
646
713
  constants: _,
647
- OPEN_DELAY: T,
648
- api: A
714
+ OPEN_DELAY: B,
715
+ api: E
649
716
  })
650
- }), S = {
717
+ }), m = {
651
718
  language: "json",
652
719
  lineNumbers: !0,
653
720
  minimap: {
654
721
  enabled: !1
655
722
  }
656
- }, p = m(() => {
723
+ }, M = u(() => {
657
724
  clearTimeout(e.preservationTime), e.preservationTime = setTimeout(() => {
658
- v(), p();
725
+ C(), M();
659
726
  }, e.timeValue * 60 * 1e3);
660
727
  }, {
661
728
  metaData: {
662
729
  id: "engine.toolbars.save.Main.saveSetTimeout"
663
730
  },
664
731
  ctx: () => ({
665
- delayOptions: o,
732
+ delayOptions: a,
666
733
  state: e,
667
- editor: a,
668
- isSaved: t,
669
- setSaved: s,
670
- getSchema: i,
734
+ editor: o,
735
+ poperVisible: t,
736
+ isSaved: l,
737
+ setSaved: n,
738
+ getSchema: p,
671
739
  subscribe: d,
672
- unsubscribe: r,
673
- subscriber: n,
674
- originSchema: l,
675
- close: f,
676
- openApi: v,
677
- saveApi: C,
678
- editorOptions: S,
679
- saveSetTimeout: p,
680
- saveConfig: D,
681
- VueMonaco: M,
682
- useCanvas: u,
683
- useMessage: b,
740
+ unsubscribe: i,
741
+ subscriber: c,
742
+ originSchema: s,
743
+ clickPopover: b,
744
+ close: S,
745
+ openApi: C,
746
+ saveApi: D,
747
+ editorOptions: m,
748
+ saveSetTimeout: M,
749
+ saveConfig: T,
750
+ VueMonaco: A,
751
+ iconUpWard: V,
752
+ iconDownWard: P,
753
+ useCanvas: v,
754
+ useMessage: f,
684
755
  ToolbarBase: h,
685
756
  openCommon: y,
686
757
  saveCommon: g,
687
- isLoading: c,
758
+ isLoading: r,
688
759
  setAutoSaveStatus: x,
689
760
  getAutoSaveStatus: k,
690
761
  constants: _,
691
- OPEN_DELAY: T,
692
- api: A
762
+ OPEN_DELAY: B,
763
+ api: E
693
764
  })
694
- }), D = m(() => {
695
- x(e.checked), e.checked ? p() : clearTimeout(e.preservationTime);
765
+ }), T = u(() => {
766
+ x(e.checked), e.checked ? M() : clearTimeout(e.preservationTime);
696
767
  }, {
697
768
  metaData: {
698
769
  id: "engine.toolbars.save.Main.saveConfig"
699
770
  },
700
771
  ctx: () => ({
701
- delayOptions: o,
772
+ delayOptions: a,
702
773
  state: e,
703
- editor: a,
704
- isSaved: t,
705
- setSaved: s,
706
- getSchema: i,
774
+ editor: o,
775
+ poperVisible: t,
776
+ isSaved: l,
777
+ setSaved: n,
778
+ getSchema: p,
707
779
  subscribe: d,
708
- unsubscribe: r,
709
- subscriber: n,
710
- originSchema: l,
711
- close: f,
712
- openApi: v,
713
- saveApi: C,
714
- editorOptions: S,
715
- saveSetTimeout: p,
716
- saveConfig: D,
717
- VueMonaco: M,
718
- useCanvas: u,
719
- useMessage: b,
780
+ unsubscribe: i,
781
+ subscriber: c,
782
+ originSchema: s,
783
+ clickPopover: b,
784
+ close: S,
785
+ openApi: C,
786
+ saveApi: D,
787
+ editorOptions: m,
788
+ saveSetTimeout: M,
789
+ saveConfig: T,
790
+ VueMonaco: A,
791
+ iconUpWard: V,
792
+ iconDownWard: P,
793
+ useCanvas: v,
794
+ useMessage: f,
720
795
  ToolbarBase: h,
721
796
  openCommon: y,
722
797
  saveCommon: g,
723
- isLoading: c,
798
+ isLoading: r,
724
799
  setAutoSaveStatus: x,
725
800
  getAutoSaveStatus: k,
726
801
  constants: _,
727
- OPEN_DELAY: T,
728
- api: A
802
+ OPEN_DELAY: B,
803
+ api: E
729
804
  })
730
805
  });
731
- return Z(m(m(() => {
732
- e.checked = k(), e.checked && p();
806
+ return ne(u(u(() => {
807
+ e.checked = k(), e.checked && M();
733
808
  }, {
734
809
  metaData: {
735
810
  id: "engine.toolbars.save.Main.onMounted[1]"
736
811
  },
737
812
  ctx: () => ({
738
- delayOptions: o,
813
+ delayOptions: a,
739
814
  state: e,
740
- editor: a,
741
- isSaved: t,
742
- setSaved: s,
743
- getSchema: i,
815
+ editor: o,
816
+ poperVisible: t,
817
+ isSaved: l,
818
+ setSaved: n,
819
+ getSchema: p,
744
820
  subscribe: d,
745
- unsubscribe: r,
746
- subscriber: n,
747
- originSchema: l,
748
- close: f,
749
- openApi: v,
750
- saveApi: C,
751
- editorOptions: S,
752
- saveSetTimeout: p,
753
- saveConfig: D,
754
- VueMonaco: M,
755
- useCanvas: u,
756
- useMessage: b,
821
+ unsubscribe: i,
822
+ subscriber: c,
823
+ originSchema: s,
824
+ clickPopover: b,
825
+ close: S,
826
+ openApi: C,
827
+ saveApi: D,
828
+ editorOptions: m,
829
+ saveSetTimeout: M,
830
+ saveConfig: T,
831
+ VueMonaco: A,
832
+ iconUpWard: V,
833
+ iconDownWard: P,
834
+ useCanvas: v,
835
+ useMessage: f,
757
836
  ToolbarBase: h,
758
837
  openCommon: y,
759
838
  saveCommon: g,
760
- isLoading: c,
839
+ isLoading: r,
761
840
  setAutoSaveStatus: x,
762
841
  getAutoSaveStatus: k,
763
842
  constants: _,
764
- OPEN_DELAY: T,
765
- api: A
843
+ OPEN_DELAY: B,
844
+ api: E
766
845
  })
767
846
  }), {
768
847
  metaData: {
769
848
  id: "engine.toolbars.save.Main.onMounted[1]"
770
849
  },
771
850
  ctx: () => ({
772
- delayOptions: o,
851
+ delayOptions: a,
773
852
  state: e,
774
- editor: a,
775
- isSaved: t,
776
- setSaved: s,
777
- getSchema: i,
853
+ editor: o,
854
+ poperVisible: t,
855
+ isSaved: l,
856
+ setSaved: n,
857
+ getSchema: p,
778
858
  subscribe: d,
779
- unsubscribe: r,
780
- subscriber: n,
781
- originSchema: l,
782
- close: f,
783
- openApi: v,
784
- saveApi: C,
785
- editorOptions: S,
786
- saveSetTimeout: p,
787
- saveConfig: D,
788
- _callEntry: m,
789
- _useCompile: Q,
790
- _metaData: B,
791
- VueMonaco: M,
792
- useCanvas: u,
793
- useMessage: b,
859
+ unsubscribe: i,
860
+ subscriber: c,
861
+ originSchema: s,
862
+ clickPopover: b,
863
+ close: S,
864
+ openApi: C,
865
+ saveApi: D,
866
+ editorOptions: m,
867
+ saveSetTimeout: M,
868
+ saveConfig: T,
869
+ _callEntry: u,
870
+ _useCompile: $,
871
+ _metaData: w,
872
+ VueMonaco: A,
873
+ iconUpWard: V,
874
+ iconDownWard: P,
875
+ useCanvas: v,
876
+ useMessage: f,
794
877
  ToolbarBase: h,
795
878
  openCommon: y,
796
879
  saveCommon: g,
797
- isLoading: c,
880
+ isLoading: r,
798
881
  setAutoSaveStatus: x,
799
882
  getAutoSaveStatus: k,
800
883
  constants: _,
801
- OPEN_DELAY: T,
802
- api: A
884
+ OPEN_DELAY: B,
885
+ api: E
803
886
  })
804
- })), $(m(m(() => {
887
+ })), se(u(u(() => {
805
888
  clearTimeout(e.preservationTime);
806
889
  }, {
807
890
  metaData: {
808
891
  id: "engine.toolbars.save.Main.onUnmounted[1]"
809
892
  },
810
893
  ctx: () => ({
811
- delayOptions: o,
894
+ delayOptions: a,
812
895
  state: e,
813
- editor: a,
814
- isSaved: t,
815
- setSaved: s,
816
- getSchema: i,
896
+ editor: o,
897
+ poperVisible: t,
898
+ isSaved: l,
899
+ setSaved: n,
900
+ getSchema: p,
817
901
  subscribe: d,
818
- unsubscribe: r,
819
- subscriber: n,
820
- originSchema: l,
821
- close: f,
822
- openApi: v,
823
- saveApi: C,
824
- editorOptions: S,
825
- saveSetTimeout: p,
826
- saveConfig: D,
827
- VueMonaco: M,
828
- useCanvas: u,
829
- useMessage: b,
902
+ unsubscribe: i,
903
+ subscriber: c,
904
+ originSchema: s,
905
+ clickPopover: b,
906
+ close: S,
907
+ openApi: C,
908
+ saveApi: D,
909
+ editorOptions: m,
910
+ saveSetTimeout: M,
911
+ saveConfig: T,
912
+ VueMonaco: A,
913
+ iconUpWard: V,
914
+ iconDownWard: P,
915
+ useCanvas: v,
916
+ useMessage: f,
830
917
  ToolbarBase: h,
831
918
  openCommon: y,
832
919
  saveCommon: g,
833
- isLoading: c,
920
+ isLoading: r,
834
921
  setAutoSaveStatus: x,
835
922
  getAutoSaveStatus: k,
836
923
  constants: _,
837
- OPEN_DELAY: T,
838
- api: A
924
+ OPEN_DELAY: B,
925
+ api: E
839
926
  })
840
927
  }), {
841
928
  metaData: {
842
929
  id: "engine.toolbars.save.Main.onUnmounted[1]"
843
930
  },
844
931
  ctx: () => ({
845
- delayOptions: o,
932
+ delayOptions: a,
846
933
  state: e,
847
- editor: a,
848
- isSaved: t,
849
- setSaved: s,
850
- getSchema: i,
934
+ editor: o,
935
+ poperVisible: t,
936
+ isSaved: l,
937
+ setSaved: n,
938
+ getSchema: p,
851
939
  subscribe: d,
852
- unsubscribe: r,
853
- subscriber: n,
854
- originSchema: l,
855
- close: f,
856
- openApi: v,
857
- saveApi: C,
858
- editorOptions: S,
859
- saveSetTimeout: p,
860
- saveConfig: D,
861
- _callEntry: m,
862
- _useCompile: Q,
863
- _metaData: B,
864
- VueMonaco: M,
865
- useCanvas: u,
866
- useMessage: b,
940
+ unsubscribe: i,
941
+ subscriber: c,
942
+ originSchema: s,
943
+ clickPopover: b,
944
+ close: S,
945
+ openApi: C,
946
+ saveApi: D,
947
+ editorOptions: m,
948
+ saveSetTimeout: M,
949
+ saveConfig: T,
950
+ _callEntry: u,
951
+ _useCompile: $,
952
+ _metaData: w,
953
+ VueMonaco: A,
954
+ iconUpWard: V,
955
+ iconDownWard: P,
956
+ useCanvas: v,
957
+ useMessage: f,
867
958
  ToolbarBase: h,
868
959
  openCommon: y,
869
960
  saveCommon: g,
870
- isLoading: c,
961
+ isLoading: r,
871
962
  setAutoSaveStatus: x,
872
963
  getAutoSaveStatus: k,
873
964
  constants: _,
874
- OPEN_DELAY: T,
875
- api: A
965
+ OPEN_DELAY: B,
966
+ api: E
876
967
  })
877
968
  })), {
878
969
  state: e,
879
- editor: a,
880
- editorOptions: S,
881
- isLoading: c,
882
- isSaved: t,
883
- close: f,
884
- openApi: v,
885
- saveApi: C,
886
- delayOptions: o,
887
- saveConfig: D,
888
- OPEN_DELAY: T
970
+ editor: o,
971
+ poperVisible: t,
972
+ editorOptions: m,
973
+ isLoading: r,
974
+ isSaved: l,
975
+ clickPopover: b,
976
+ close: S,
977
+ openApi: C,
978
+ saveApi: D,
979
+ delayOptions: a,
980
+ saveConfig: T,
981
+ OPEN_DELAY: B
889
982
  };
890
983
  }
891
- }, me = (o, e) => {
892
- const a = o.__vccOpts || o;
893
- for (const [t, s] of e)
894
- a[t] = s;
895
- return a;
896
- }, ue = { class: "toolbar-save" }, ve = { class: "save-style" }, pe = { class: "save-time" }, ge = { class: "save-button-group" };
897
- function fe(o, e, a, t, s, i) {
898
- const d = w("svg-icon"), r = w("tiny-checkbox"), n = w("tiny-select"), l = w("tiny-button"), f = w("tiny-popover"), v = w("vue-monaco"), C = w("tiny-dialog-box"), S = w("toolbar-base");
899
- return ee(), ae("div", ue, [
900
- N(S, {
984
+ }, be = (a, e) => {
985
+ const o = a.__vccOpts || a;
986
+ for (const [t, l] of e)
987
+ o[t] = l;
988
+ return o;
989
+ }, fe = { class: "toolbar-save" }, ye = { class: "save-style" }, _e = { class: "save-time" }, ke = { class: "save-button-group" };
990
+ function xe(a, e, o, t, l, n) {
991
+ const p = I("tiny-icon-up-ward"), d = I("tiny-icon-down-ward"), i = I("tiny-checkbox"), c = I("tiny-select"), s = I("tiny-button"), b = I("tiny-popover"), S = I("vue-monaco"), C = I("tiny-dialog-box"), D = I("toolbar-base");
992
+ return ee(), le("div", fe, [
993
+ J(D, {
901
994
  content: t.isLoading ? "保存中" : "保存",
902
- icon: a.options.icon.default || a.options.icon,
903
- options: { ...a.options, showDots: !t.isSaved() },
995
+ icon: o.options.icon.default || o.options.icon,
996
+ options: { ...o.options, showDots: !t.isSaved() },
904
997
  onClickApi: t.openApi
905
998
  }, {
906
- button: P(() => [
907
- N(f, {
999
+ button: U(() => [
1000
+ J(b, {
908
1001
  "visible-arrow": !1,
909
1002
  width: "203",
910
- trigger: "click",
911
- "open-delay": t.OPEN_DELAY.Default
1003
+ trigger: "manual",
1004
+ "open-delay": t.OPEN_DELAY.Default,
1005
+ modelValue: t.poperVisible,
1006
+ "onUpdate:modelValue": e[3] || (e[3] = (m) => t.poperVisible = m)
912
1007
  }, {
913
- reference: P(() => [
914
- N(d, { name: a.iconExpand }, null, 8, ["name"])
1008
+ reference: U(() => [
1009
+ X("span", {
1010
+ onClick: e[0] || (e[0] = re((...m) => t.clickPopover && t.clickPopover(...m), ["stop"]))
1011
+ }, [
1012
+ t.poperVisible ? (ee(), ae(p, { key: 0 })) : (ee(), ae(d, { key: 1 }))
1013
+ ])
915
1014
  ]),
916
- default: P(() => [
917
- K("div", ve, [
918
- e[6] || (e[6] = K("div", { class: "save-setting" }, "保存设置", -1)),
919
- N(r, {
1015
+ default: U(() => [
1016
+ X("div", ye, [
1017
+ e[8] || (e[8] = X("div", { class: "save-setting" }, "保存设置", -1)),
1018
+ J(i, {
920
1019
  modelValue: t.state.checked,
921
- "onUpdate:modelValue": e[0] || (e[0] = (p) => t.state.checked = p),
1020
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => t.state.checked = m),
922
1021
  name: "tiny-checkbox"
923
1022
  }, {
924
- default: P(() => [...e[3] || (e[3] = [
925
- W("自动保存", -1)
1023
+ default: U(() => [...e[5] || (e[5] = [
1024
+ te("自动保存", -1)
926
1025
  ])]),
927
1026
  _: 1
928
1027
  }, 8, ["modelValue"]),
929
- K("div", pe, [
930
- e[4] || (e[4] = K("div", { class: "save-time-label" }, "保存间隔", -1)),
931
- N(n, {
1028
+ X("div", _e, [
1029
+ e[6] || (e[6] = X("div", { class: "save-time-label" }, "保存间隔", -1)),
1030
+ J(c, {
932
1031
  modelValue: t.state.timeValue,
933
- "onUpdate:modelValue": e[1] || (e[1] = (p) => t.state.timeValue = p),
1032
+ "onUpdate:modelValue": e[2] || (e[2] = (m) => t.state.timeValue = m),
934
1033
  options: t.delayOptions,
935
1034
  disabled: !t.state.checked,
936
1035
  autocomplete: ""
937
1036
  }, null, 8, ["modelValue", "options", "disabled"])
938
1037
  ]),
939
- K("div", ge, [
940
- N(l, {
1038
+ X("div", ke, [
1039
+ J(s, {
941
1040
  type: "primary",
942
1041
  onClick: t.saveConfig
943
1042
  }, {
944
- default: P(() => [...e[5] || (e[5] = [
945
- W("设置并保存", -1)
1043
+ default: U(() => [...e[7] || (e[7] = [
1044
+ te("设置并保存", -1)
946
1045
  ])]),
947
1046
  _: 1
948
1047
  }, 8, ["onClick"])
@@ -950,37 +1049,37 @@ function fe(o, e, a, t, s, i) {
950
1049
  ])
951
1050
  ]),
952
1051
  _: 1
953
- }, 8, ["open-delay"])
1052
+ }, 8, ["open-delay", "modelValue"])
954
1053
  ]),
955
- default: P(() => [
956
- N(C, {
1054
+ default: U(() => [
1055
+ J(C, {
957
1056
  class: "dialog-box",
958
1057
  modal: !1,
959
1058
  fullscreen: !0,
960
1059
  "append-to-body": !0,
961
1060
  visible: t.state.visible,
962
1061
  title: "Schema 本地与线上差异",
963
- "onUpdate:visible": e[2] || (e[2] = (p) => t.state.visible = p)
1062
+ "onUpdate:visible": e[4] || (e[4] = (m) => t.state.visible = m)
964
1063
  }, {
965
- footer: P(() => [
966
- N(l, { onClick: t.close }, {
967
- default: P(() => [...e[7] || (e[7] = [
968
- W("取 消", -1)
1064
+ footer: U(() => [
1065
+ J(s, { onClick: t.close }, {
1066
+ default: U(() => [...e[9] || (e[9] = [
1067
+ te("取 消", -1)
969
1068
  ])]),
970
1069
  _: 1
971
1070
  }, 8, ["onClick"]),
972
- N(l, {
1071
+ J(s, {
973
1072
  type: "primary",
974
1073
  onClick: t.saveApi
975
1074
  }, {
976
- default: P(() => [...e[8] || (e[8] = [
977
- W("保 存", -1)
1075
+ default: U(() => [...e[10] || (e[10] = [
1076
+ te("保 存", -1)
978
1077
  ])]),
979
1078
  _: 1
980
1079
  }, 8, ["onClick"])
981
1080
  ]),
982
- default: P(() => [
983
- t.state.visible ? (ee(), oe(v, {
1081
+ default: U(() => [
1082
+ t.state.visible ? (ee(), ae(S, {
984
1083
  key: 0,
985
1084
  ref: "editor",
986
1085
  class: "monaco-editor",
@@ -988,7 +1087,7 @@ function fe(o, e, a, t, s, i) {
988
1087
  options: t.editorOptions,
989
1088
  value: t.state.code,
990
1089
  original: t.state.originalCode
991
- }, null, 8, ["options", "value", "original"])) : ne("", !0)
1090
+ }, null, 8, ["options", "value", "original"])) : ce("", !0)
992
1091
  ]),
993
1092
  _: 1
994
1093
  }, 8, ["visible"])
@@ -997,12 +1096,12 @@ function fe(o, e, a, t, s, i) {
997
1096
  }, 8, ["content", "icon", "options", "onClickApi"])
998
1097
  ]);
999
1098
  }
1000
- const be = /* @__PURE__ */ me(de, [["render", fe], ["__scopeId", "data-v-cefd41f7"]]), he = {
1001
- ...B,
1002
- entry: be,
1003
- apis: A
1099
+ const Ce = /* @__PURE__ */ be(ge, [["render", xe], ["__scopeId", "data-v-60edfe5e"]]), Be = {
1100
+ ...w,
1101
+ entry: Ce,
1102
+ apis: E
1004
1103
  };
1005
1104
  export {
1006
- he as default
1105
+ Be as default
1007
1106
  };
1008
1107
  //# sourceMappingURL=index.js.map