@opentiny/tiny-engine-toolbar-save 2.8.2-alpha.3 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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";
2
+ import { useMessage as f, 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
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
4
  import { ToolbarBase as h, VueMonaco as M } from "@opentiny/tiny-engine-common";
5
5
  import { Select as se, Checkbox as ie, DialogBox as le, Popover as ce, Button as re } from "@opentiny/vue";
@@ -17,7 +17,7 @@ const B = {
17
17
  }
18
18
  }, {
19
19
  publish: q
20
- } = b(), {
20
+ } = f(), {
21
21
  PAGE_STATUS: E,
22
22
  AUTO_SAVED: U
23
23
  } = _, O = te({
@@ -44,7 +44,7 @@ const B = {
44
44
  getOptions: L,
45
45
  getMetaApi: j,
46
46
  META_APP: I,
47
- useMessage: b,
47
+ useMessage: f,
48
48
  constants: _,
49
49
  handlePageUpdate: Y,
50
50
  meta: B,
@@ -90,7 +90,7 @@ const B = {
90
90
  getOptions: L,
91
91
  getMetaApi: j,
92
92
  META_APP: I,
93
- useMessage: b,
93
+ useMessage: f,
94
94
  constants: _,
95
95
  handlePageUpdate: Y,
96
96
  meta: B,
@@ -127,8 +127,8 @@ const B = {
127
127
  pageSchema: n
128
128
  }), e != null && e.isAIPage) {
129
129
  a.saved && (a.saved = !1), a.saved = !0;
130
- const f = "page_content";
131
- return e.currentPageData[f] = n, Promise.resolve();
130
+ const b = "page_content";
131
+ return e.currentPageData[b] = n, Promise.resolve();
132
132
  }
133
133
  return l(null), t() ? z(n) : F(n);
134
134
  }, {
@@ -144,7 +144,7 @@ const B = {
144
144
  getOptions: L,
145
145
  getMetaApi: j,
146
146
  META_APP: I,
147
- useMessage: b,
147
+ useMessage: f,
148
148
  constants: _,
149
149
  handlePageUpdate: Y,
150
150
  meta: B,
@@ -161,7 +161,7 @@ const B = {
161
161
  setAutoSaveStatus: x
162
162
  })
163
163
  }), y = m(async () => {
164
- var f;
164
+ var b;
165
165
  const {
166
166
  isSaved: o,
167
167
  getSchema: e
@@ -182,7 +182,7 @@ const B = {
182
182
  message: `Error in saving: ${v}`
183
183
  });
184
184
  }
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 = {
185
+ const i = (b = R().layoutState) == null ? void 0 : b.pageStatus, d = i == null ? void 0 : i.state, r = i == null ? void 0 : i.data, n = {
186
186
  [E.Release]: "当前页面未锁定,请先锁定再保存",
187
187
  [E.Empty]: "当前应用无页面,请先新建页面再保存",
188
188
  [E.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
@@ -222,7 +222,7 @@ const B = {
222
222
  getOptions: L,
223
223
  getMetaApi: j,
224
224
  META_APP: I,
225
- useMessage: b,
225
+ useMessage: f,
226
226
  constants: _,
227
227
  handlePageUpdate: Y,
228
228
  meta: B,
@@ -258,7 +258,7 @@ const B = {
258
258
  getOptions: L,
259
259
  getMetaApi: j,
260
260
  META_APP: I,
261
- useMessage: b,
261
+ useMessage: f,
262
262
  constants: _,
263
263
  handlePageUpdate: Y,
264
264
  meta: B,
@@ -293,7 +293,7 @@ const B = {
293
293
  getOptions: L,
294
294
  getMetaApi: j,
295
295
  META_APP: I,
296
- useMessage: b,
296
+ useMessage: f,
297
297
  constants: _,
298
298
  handlePageUpdate: Y,
299
299
  meta: B,
@@ -358,7 +358,7 @@ const B = {
358
358
  } = u(), {
359
359
  subscribe: d,
360
360
  unsubscribe: r
361
- } = b(), n = "toolbar-save", l = X(null);
361
+ } = f(), n = "toolbar-save", l = X(null);
362
362
  Z(m(m(() => {
363
363
  d({
364
364
  topic: "pageOrBlockInit",
@@ -400,7 +400,7 @@ const B = {
400
400
  unsubscribe: r,
401
401
  subscriber: n,
402
402
  originSchema: l,
403
- close: f,
403
+ close: b,
404
404
  openApi: v,
405
405
  saveApi: C,
406
406
  editorOptions: S,
@@ -408,7 +408,7 @@ const B = {
408
408
  saveConfig: D,
409
409
  VueMonaco: M,
410
410
  useCanvas: u,
411
- useMessage: b,
411
+ useMessage: f,
412
412
  ToolbarBase: h,
413
413
  openCommon: y,
414
414
  saveCommon: g,
@@ -434,7 +434,7 @@ const B = {
434
434
  unsubscribe: r,
435
435
  subscriber: n,
436
436
  originSchema: l,
437
- close: f,
437
+ close: b,
438
438
  openApi: v,
439
439
  saveApi: C,
440
440
  editorOptions: S,
@@ -445,7 +445,7 @@ const B = {
445
445
  _metaData: B,
446
446
  VueMonaco: M,
447
447
  useCanvas: u,
448
- useMessage: b,
448
+ useMessage: f,
449
449
  ToolbarBase: h,
450
450
  openCommon: y,
451
451
  saveCommon: g,
@@ -482,7 +482,7 @@ const B = {
482
482
  unsubscribe: r,
483
483
  subscriber: n,
484
484
  originSchema: l,
485
- close: f,
485
+ close: b,
486
486
  openApi: v,
487
487
  saveApi: C,
488
488
  editorOptions: S,
@@ -490,7 +490,7 @@ const B = {
490
490
  saveConfig: D,
491
491
  VueMonaco: M,
492
492
  useCanvas: u,
493
- useMessage: b,
493
+ useMessage: f,
494
494
  ToolbarBase: h,
495
495
  openCommon: y,
496
496
  saveCommon: g,
@@ -516,7 +516,7 @@ const B = {
516
516
  unsubscribe: r,
517
517
  subscriber: n,
518
518
  originSchema: l,
519
- close: f,
519
+ close: b,
520
520
  openApi: v,
521
521
  saveApi: C,
522
522
  editorOptions: S,
@@ -527,7 +527,7 @@ const B = {
527
527
  _metaData: B,
528
528
  VueMonaco: M,
529
529
  useCanvas: u,
530
- useMessage: b,
530
+ useMessage: f,
531
531
  ToolbarBase: h,
532
532
  openCommon: y,
533
533
  saveCommon: g,
@@ -539,7 +539,7 @@ const B = {
539
539
  api: A
540
540
  })
541
541
  }));
542
- const f = m(() => {
542
+ const b = m(() => {
543
543
  e.visible = !1, e.originalCode = "";
544
544
  }, {
545
545
  metaData: {
@@ -556,7 +556,7 @@ const B = {
556
556
  unsubscribe: r,
557
557
  subscriber: n,
558
558
  originSchema: l,
559
- close: f,
559
+ close: b,
560
560
  openApi: v,
561
561
  saveApi: C,
562
562
  editorOptions: S,
@@ -564,7 +564,7 @@ const B = {
564
564
  saveConfig: D,
565
565
  VueMonaco: M,
566
566
  useCanvas: u,
567
- useMessage: b,
567
+ useMessage: f,
568
568
  ToolbarBase: h,
569
569
  openCommon: y,
570
570
  saveCommon: g,
@@ -592,7 +592,7 @@ const B = {
592
592
  unsubscribe: r,
593
593
  subscriber: n,
594
594
  originSchema: l,
595
- close: f,
595
+ close: b,
596
596
  openApi: v,
597
597
  saveApi: C,
598
598
  editorOptions: S,
@@ -600,7 +600,7 @@ const B = {
600
600
  saveConfig: D,
601
601
  VueMonaco: M,
602
602
  useCanvas: u,
603
- useMessage: b,
603
+ useMessage: f,
604
604
  ToolbarBase: h,
605
605
  openCommon: y,
606
606
  saveCommon: g,
@@ -628,7 +628,7 @@ const B = {
628
628
  unsubscribe: r,
629
629
  subscriber: n,
630
630
  originSchema: l,
631
- close: f,
631
+ close: b,
632
632
  openApi: v,
633
633
  saveApi: C,
634
634
  editorOptions: S,
@@ -636,7 +636,7 @@ const B = {
636
636
  saveConfig: D,
637
637
  VueMonaco: M,
638
638
  useCanvas: u,
639
- useMessage: b,
639
+ useMessage: f,
640
640
  ToolbarBase: h,
641
641
  openCommon: y,
642
642
  saveCommon: g,
@@ -672,7 +672,7 @@ const B = {
672
672
  unsubscribe: r,
673
673
  subscriber: n,
674
674
  originSchema: l,
675
- close: f,
675
+ close: b,
676
676
  openApi: v,
677
677
  saveApi: C,
678
678
  editorOptions: S,
@@ -680,7 +680,7 @@ const B = {
680
680
  saveConfig: D,
681
681
  VueMonaco: M,
682
682
  useCanvas: u,
683
- useMessage: b,
683
+ useMessage: f,
684
684
  ToolbarBase: h,
685
685
  openCommon: y,
686
686
  saveCommon: g,
@@ -708,7 +708,7 @@ const B = {
708
708
  unsubscribe: r,
709
709
  subscriber: n,
710
710
  originSchema: l,
711
- close: f,
711
+ close: b,
712
712
  openApi: v,
713
713
  saveApi: C,
714
714
  editorOptions: S,
@@ -716,7 +716,7 @@ const B = {
716
716
  saveConfig: D,
717
717
  VueMonaco: M,
718
718
  useCanvas: u,
719
- useMessage: b,
719
+ useMessage: f,
720
720
  ToolbarBase: h,
721
721
  openCommon: y,
722
722
  saveCommon: g,
@@ -745,7 +745,7 @@ const B = {
745
745
  unsubscribe: r,
746
746
  subscriber: n,
747
747
  originSchema: l,
748
- close: f,
748
+ close: b,
749
749
  openApi: v,
750
750
  saveApi: C,
751
751
  editorOptions: S,
@@ -753,7 +753,7 @@ const B = {
753
753
  saveConfig: D,
754
754
  VueMonaco: M,
755
755
  useCanvas: u,
756
- useMessage: b,
756
+ useMessage: f,
757
757
  ToolbarBase: h,
758
758
  openCommon: y,
759
759
  saveCommon: g,
@@ -779,7 +779,7 @@ const B = {
779
779
  unsubscribe: r,
780
780
  subscriber: n,
781
781
  originSchema: l,
782
- close: f,
782
+ close: b,
783
783
  openApi: v,
784
784
  saveApi: C,
785
785
  editorOptions: S,
@@ -790,7 +790,7 @@ const B = {
790
790
  _metaData: B,
791
791
  VueMonaco: M,
792
792
  useCanvas: u,
793
- useMessage: b,
793
+ useMessage: f,
794
794
  ToolbarBase: h,
795
795
  openCommon: y,
796
796
  saveCommon: g,
@@ -818,7 +818,7 @@ const B = {
818
818
  unsubscribe: r,
819
819
  subscriber: n,
820
820
  originSchema: l,
821
- close: f,
821
+ close: b,
822
822
  openApi: v,
823
823
  saveApi: C,
824
824
  editorOptions: S,
@@ -826,7 +826,7 @@ const B = {
826
826
  saveConfig: D,
827
827
  VueMonaco: M,
828
828
  useCanvas: u,
829
- useMessage: b,
829
+ useMessage: f,
830
830
  ToolbarBase: h,
831
831
  openCommon: y,
832
832
  saveCommon: g,
@@ -852,7 +852,7 @@ const B = {
852
852
  unsubscribe: r,
853
853
  subscriber: n,
854
854
  originSchema: l,
855
- close: f,
855
+ close: b,
856
856
  openApi: v,
857
857
  saveApi: C,
858
858
  editorOptions: S,
@@ -863,7 +863,7 @@ const B = {
863
863
  _metaData: B,
864
864
  VueMonaco: M,
865
865
  useCanvas: u,
866
- useMessage: b,
866
+ useMessage: f,
867
867
  ToolbarBase: h,
868
868
  openCommon: y,
869
869
  saveCommon: g,
@@ -880,7 +880,7 @@ const B = {
880
880
  editorOptions: S,
881
881
  isLoading: c,
882
882
  isSaved: t,
883
- close: f,
883
+ close: b,
884
884
  openApi: v,
885
885
  saveApi: C,
886
886
  delayOptions: o,
@@ -894,8 +894,8 @@ const B = {
894
894
  a[t] = s;
895
895
  return a;
896
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");
897
+ function be(o, e, a, t, s, i) {
898
+ const d = w("svg-icon"), r = w("tiny-checkbox"), n = w("tiny-select"), l = w("tiny-button"), b = w("tiny-popover"), v = w("vue-monaco"), C = w("tiny-dialog-box"), S = w("toolbar-base");
899
899
  return ee(), ae("div", ue, [
900
900
  N(S, {
901
901
  content: t.isLoading ? "保存中" : "保存",
@@ -904,7 +904,7 @@ function fe(o, e, a, t, s, i) {
904
904
  onClickApi: t.openApi
905
905
  }, {
906
906
  button: P(() => [
907
- N(f, {
907
+ N(b, {
908
908
  "visible-arrow": !1,
909
909
  width: "203",
910
910
  trigger: "click",
@@ -997,9 +997,9 @@ function fe(o, e, a, t, s, i) {
997
997
  }, 8, ["content", "icon", "options", "onClickApi"])
998
998
  ]);
999
999
  }
1000
- const be = /* @__PURE__ */ me(de, [["render", fe], ["__scopeId", "data-v-cefd41f7"]]), he = {
1000
+ const fe = /* @__PURE__ */ me(de, [["render", be], ["__scopeId", "data-v-0ac2d01a"]]), he = {
1001
1001
  ...B,
1002
- entry: be,
1002
+ entry: fe,
1003
1003
  apis: A
1004
1004
  };
1005
1005
  export {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .dots[data-v-cefd41f7]{width:6px;height:6px;background:var(--te-toolbars-save-dot-color);border-radius:50%;display:inline-block;position:absolute;top:4px;right:3px;z-index:100}.toolbar-save .icon-down-arrow.icon-down-arrow[data-v-cefd41f7]{margin-left:var(--te-base-space-2x);margin-right:var(--te-base-space-0)}.toolbar-save .save-button[data-v-cefd41f7]{background-color:var(--te-toolbars-save-button-bg-color);border:none;min-width:70px;height:26px;display:flex;align-items:center;padding:0 8px;border-radius:4px}.toolbar-save .save-button[data-v-cefd41f7]:not(.disabled):hover{background-color:var(--te-toolbars-save-button-bg-color)}.toolbar-save[data-v-cefd41f7] .icon-down-arrow:focus{outline:none}.save-style[data-v-cefd41f7]{padding:8px 4px;font-size:12px}.save-style .save-setting[data-v-cefd41f7]{font-size:14px;font-weight:600;line-height:20px;height:20px;margin-bottom:16px}.save-style .save-time[data-v-cefd41f7]{line-height:24px;font-size:12px;margin:12px 0 16px;display:flex}.save-style .save-time .save-time-label[data-v-cefd41f7]{width:60px;color:var(--te-toolbars-save-text-color)}.save-style .save-time .tiny-select[data-v-cefd41f7]{width:103px;margin-left:12px}.save-style .save-time .tiny-select[data-v-cefd41f7] .tiny-input__suffix{width:12px}.save-style .save-time[data-v-cefd41f7] .tiny-select.is-disabled .tiny-input__suffix{display:flex}.save-style .save-button-group[data-v-cefd41f7]{text-align:right}#saving[data-v-cefd41f7]{cursor:not-allowed;color:var(--te-toolbars-save-text-color-disabled)}#saving[data-v-cefd41f7] svg{color:var(--te-toolbars-save-text-color-disabled)}.dialog-box[data-v-cefd41f7] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-cefd41f7] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-cefd41f7]{width:100%;height:100%}.changeRole a{color:var(--te-toolbars-save-text-color-link);padding:0 5px}.save-style .save-time .tiny-input__inner{height:24px!important}:root{--te-toolbars-save-text-color: var(--te-common-text-secondary);--te-toolbars-save-text-color-disabled: var(--te-common-text-disabled);--te-toolbars-save-dot-color: var(--te-common-color-error);--te-toolbars-save-button-bg-color: var(--te-common-bg-prompt);--te-toolbars-save-text-color-link: var(--te-common-text-link)}
1
+ .dots[data-v-0ac2d01a]{width:6px;height:6px;background:var(--te-toolbars-save-dot-color);border-radius:50%;display:inline-block;position:absolute;top:4px;right:3px;z-index:100}.toolbar-save .icon-down-arrow.icon-down-arrow[data-v-0ac2d01a]{margin-left:var(--te-base-space-2x);margin-right:var(--te-base-space-0)}.toolbar-save .save-button[data-v-0ac2d01a]{background-color:var(--te-toolbars-save-button-bg-color);border:none;min-width:70px;height:26px;display:flex;align-items:center;padding:0 8px;border-radius:4px}.toolbar-save .save-button[data-v-0ac2d01a]:not(.disabled):hover{background-color:var(--te-toolbars-save-button-bg-color)}.toolbar-save[data-v-0ac2d01a] .icon-down-arrow:focus{outline:none}.save-style[data-v-0ac2d01a]{padding:8px 4px;font-size:12px}.save-style .save-setting[data-v-0ac2d01a]{font-size:14px;font-weight:600;line-height:20px;height:20px;margin-bottom:16px}.save-style .save-time[data-v-0ac2d01a]{line-height:24px;font-size:12px;margin:12px 0 16px;display:flex}.save-style .save-time .save-time-label[data-v-0ac2d01a]{width:60px;color:var(--te-toolbars-save-text-color)}.save-style .save-time .tiny-select[data-v-0ac2d01a]{width:103px;margin-left:12px}.save-style .save-time .tiny-select[data-v-0ac2d01a] .tiny-input__suffix{width:12px}.save-style .save-time[data-v-0ac2d01a] .tiny-select.is-disabled .tiny-input__suffix{display:flex}.save-style .save-button-group[data-v-0ac2d01a]{text-align:right}#saving[data-v-0ac2d01a]{cursor:not-allowed;color:var(--te-toolbars-save-text-color-disabled)}#saving[data-v-0ac2d01a] svg{color:var(--te-toolbars-save-text-color-disabled)}.dialog-box[data-v-0ac2d01a] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-0ac2d01a] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-0ac2d01a]{width:100%;height:100%}.changeRole a{color:var(--te-toolbars-save-text-color-link);padding:0 5px}.save-style .save-time .tiny-input__inner{height:24px!important}:root{--te-toolbars-save-text-color: var(--te-common-text-secondary);--te-toolbars-save-text-color-disabled: var(--te-common-text-disabled);--te-toolbars-save-dot-color: var(--te-common-color-error);--te-toolbars-save-button-bg-color: var(--te-common-bg-prompt);--te-toolbars-save-text-color-link: var(--te-common-text-link)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-save",
3
- "version": "2.8.2-alpha.3",
3
+ "version": "2.8.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.8.2-alpha.3",
29
- "@opentiny/tiny-engine-meta-register": "2.8.2-alpha.3",
30
- "@opentiny/tiny-engine-utils": "2.8.2-alpha.3"
28
+ "@opentiny/tiny-engine-common": "2.8.2",
29
+ "@opentiny/tiny-engine-meta-register": "2.8.2",
30
+ "@opentiny/tiny-engine-utils": "2.8.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.8.2-alpha.3",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.8.2",
34
34
  "@vitejs/plugin-vue": "^5.1.2",
35
35
  "@vitejs/plugin-vue-jsx": "^4.0.1",
36
36
  "vite": "^5.4.2"
@@ -39,5 +39,5 @@
39
39
  "@opentiny/vue": "^3.20.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "f1e69f7edb63a47b92f9fde6e75b5da6b8b168dd"
42
+ "gitHead": "de9ef61b71e32ac134ebd9b92b2f685cecf5d2cd"
43
43
  }