bp-aicc-editor 1.2.507 → 1.2.511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/lib/ScreenPreview-CV95NWOd.js +373 -0
  2. package/lib/{atlas-C3az-9Mm.js → atlas-DsmLq2V0.js} +1 -1
  3. package/lib/{button-base-_jCki568.js → button-base-DHNVBrQ9.js} +1 -1
  4. package/lib/{cache-Jvpyvvq5.js → cache-lsjsKZHu.js} +1 -1
  5. package/lib/{container-group-DTRMf-Lh.js → container-group-DqAcKEBy.js} +1 -1
  6. package/lib/{copy-JUmhZHJW.js → copy-C5Pi6nJh.js} +1 -1
  7. package/lib/{datav-DYcMOPlj.js → datav-BER95ty-.js} +27 -27
  8. package/lib/{delete-C0k5m-ed.js → delete-C2EW4JCs.js} +1 -1
  9. package/lib/{divider-CvWkiVUb.js → divider-BazBGRgV.js} +1 -1
  10. package/lib/edit-B2pfd2q1.js +24 -0
  11. package/lib/el-button-DvLKp6Ga.js +815 -0
  12. package/lib/el-form-item-BDdxk5F5.js +1175 -0
  13. package/lib/el-link-D2ol9BHQ.js +91 -0
  14. package/lib/el-loading-Cgwgez55.js +230 -0
  15. package/lib/el-overlay-BK0_UIU6.js +704 -0
  16. package/lib/el-tab-pane-DD2eM9rB.js +536 -0
  17. package/lib/{fullscreen-DOYyz7vQ.js → fullscreen-OChDsSnk.js} +1 -1
  18. package/lib/{image-BQIpsLBo.js → image-C5ZAY3yt.js} +1 -1
  19. package/lib/index-3pzVrvby.js +150 -0
  20. package/lib/{index-D9Iayd4l.js → index-B19lEYui.js} +6 -6
  21. package/lib/index-B1yAU2Cb.js +390 -0
  22. package/lib/index-BCFXuK7k.js +68 -0
  23. package/lib/index-BD4Jwo8Z.js +449 -0
  24. package/lib/{index-BvcqtFEY.js → index-BMWqf88L.js} +10 -10
  25. package/lib/{index-CI4vgOJL.js → index-BPcvYtHf.js} +8 -11
  26. package/lib/index-BWPVi43E.js +21 -0
  27. package/lib/{index-CSkWvBQG.js → index-BatyRVpL.js} +1 -1
  28. package/lib/{index-D7jQaJbo.js → index-Belsn8kt.js} +1 -1
  29. package/lib/{index-C7ZW2TdD.js → index-BfIEunKC.js} +13 -15
  30. package/lib/{index-DTbzx51-.js → index-BhP9eBCp.js} +2 -2
  31. package/lib/{index-BdQOzowp.js → index-BkdiXCRY.js} +1 -1
  32. package/lib/{index-B4Kg0SOl.js → index-Buoc0ISP.js} +60 -65
  33. package/lib/index-BwCQWH-N.js +439 -0
  34. package/lib/{index-KO7LIDgy.js → index-C7k49L2T.js} +1 -1
  35. package/lib/{index-BCisGpRV.js → index-CGFEhUh9.js} +21 -21
  36. package/lib/{index-BCZuzL9x.js → index-CGrR_i0u.js} +1 -1
  37. package/lib/index-CIADz1i0.js +8494 -0
  38. package/lib/{index-BiybAKLy.js → index-CJyYGViv.js} +1 -1
  39. package/lib/{index-Curd3Q_C.js → index-CVE37oE7.js} +1 -1
  40. package/lib/{index-BGT3NcHb.js → index-CVsy2qTh.js} +2 -2
  41. package/lib/{index-CEKpsQ73.js → index-CWbZmzNT.js} +20 -20
  42. package/lib/{index-r0p4Zsdn.js → index-CXQ258ID.js} +1 -1
  43. package/lib/{index-C17gkQC5.js → index-CX_Ghcb6.js} +2 -2
  44. package/lib/index-CZJriuFt.js +27215 -0
  45. package/lib/{index-UdJ7RS5C.js → index-Ci8AbyIq.js} +1 -1
  46. package/lib/{index-DzglmFul.js → index-Ck7uFsPE.js} +1 -1
  47. package/lib/{index-DfKVDhZo.js → index-D4X0_jbv.js} +4 -4
  48. package/lib/{index-Q9GLzAp6.js → index-DKTrbqcA.js} +2 -2
  49. package/lib/{index-DiSYhNaR.js → index-Ge_d2xqD.js} +1 -1
  50. package/lib/{index-D9qrFCLu.js → index-qVyixI57.js} +21 -24
  51. package/lib/{index-DrO2UeJx.js → index-tbhuYbb0.js} +1 -1
  52. package/lib/index.es.js +3 -3
  53. package/lib/index.umd.js +57 -34
  54. package/lib/{layer-setting-panel-Bjnt_eL7.js → layer-setting-panel-VvDSQ-cn.js} +2 -2
  55. package/lib/{line-show-C7Nn6vkO.js → line-show-Bp4G-LqO.js} +1 -1
  56. package/lib/{multi-layout-config-Cq3yMVHR.js → multi-layout-config-drSy7ezf.js} +5 -5
  57. package/lib/{multiline-text-20qZej5M.js → multiline-text-D89kYrA2.js} +1 -1
  58. package/lib/{navigation-CYYFLmhU.js → navigation-YAGxZ0OT.js} +1 -1
  59. package/lib/page-config-Cmsi8Vpr.js +582 -0
  60. package/lib/page-tabs-wFeNBY4c.js +185 -0
  61. package/lib/{plus-CLcKk5PN.js → plus-3mdO6yXY.js} +1 -1
  62. package/lib/{requestOld-UJ_IbJZV.js → requestOld-DRcjsmRQ.js} +1 -1
  63. package/lib/{schema-EG3DcRzW.js → schema-BavJE-SK.js} +2 -2
  64. package/lib/{schema-B8SVu2jj.js → schema-BflqDw-a.js} +1 -1
  65. package/lib/{schema-D6lT1sLt.js → schema-Bo30dbBx.js} +1 -1
  66. package/lib/{schema-Blmk8VpW.js → schema-BsnIOGBI.js} +1 -1
  67. package/lib/{schema-C1vqYLAm.js → schema-_APJMUW3.js} +24 -24
  68. package/lib/{schema-C4qS2kV8.js → schema-qKI1F8Bt.js} +1 -1
  69. package/lib/{setting-panel-CoVHYjPW.js → setting-panel-BgzN3BUP.js} +91 -93
  70. package/lib/{show-DWWTez5i.js → show-C4AeWlKj.js} +13 -32
  71. package/lib/{stepper-bfTmJIGg.js → stepper-D5EFeJWG.js} +1 -1
  72. package/lib/strings-_mHAdgA4.js +6 -0
  73. package/lib/style.css +1 -0
  74. package/lib/{switch-Dxeq_HHd.js → switch-B0dR4LM_.js} +1 -1
  75. package/lib/unlock-Cq9PLhBA.js +62 -0
  76. package/lib/{use-env-url-CP2GpMCY.js → use-env-url-BM9dgwx_.js} +1 -1
  77. package/lib/use-global-config-CflpFoxU.js +115 -0
  78. package/lib/vnode-B_Dj8zxu.js +14 -0
  79. package/package.json +3 -2
  80. package/lib/ScreenPreview-DGe9FXWu.js +0 -126
  81. package/lib/index-08FGmL4D.js +0 -3744
  82. package/lib/index-Bg2serjU.js +0 -155
  83. package/lib/index-CJbqu93z.js +0 -496
  84. package/lib/index-D-A44QLA.js +0 -228
  85. package/lib/index-D6ZS8SXJ.js +0 -22369
  86. package/lib/index-DgTMT-ZH.js +0 -71
  87. package/lib/index-noVQZPd6.js +0 -133
  88. package/lib/page-config-Bw-OZliO.js +0 -257
  89. package/lib/page-tabs-DM9zkW_X.js +0 -190
  90. package/lib/styles.css +0 -1
@@ -0,0 +1,62 @@
1
+ import { createElementBlock as n, openBlock as o, createElementVNode as s } from "vue";
2
+ import { _ as a } from "./index-CZJriuFt.js";
3
+ const r = {}, i = {
4
+ t: "1656855915620",
5
+ class: "icon",
6
+ viewBox: "0 0 1024 1024",
7
+ version: "1.1",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ "p-id": "4392",
10
+ width: "200",
11
+ height: "200"
12
+ };
13
+ function c(e, t) {
14
+ return o(), n("svg", i, [...t[0] || (t[0] = [
15
+ s("path", {
16
+ d: "M105.28125027 371.37499973V204.38281277a43.9947507 43.9947507 0 0 1 43.94531223-43.94531304h243.96240235a43.65966824 43.65966824 0 0 1 31.07482882 12.87048339l90.02197321 90.02197321a8.71215793 8.71215793 0 0 0 6.21276855 2.5762934H869.92968777a43.9947507 43.9947507 0 0 1 43.94531223 43.94531304v61.52343696z m1e-8 35.15625027v377.92968777a43.9947507 43.9947507 0 0 0 43.94531222 43.94531223h720.70312528a43.9947507 43.9947507 0 0 0 43.94531222-43.94531223V406.53125z",
17
+ "p-id": "4393"
18
+ }, null, -1)
19
+ ])]);
20
+ }
21
+ const f = /* @__PURE__ */ a(r, [["render", c]]), v = {}, h = {
22
+ t: "1640065869771",
23
+ class: "icon",
24
+ viewBox: "0 0 1024 1024",
25
+ version: "1.1",
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ "p-id": "4145",
28
+ width: "64",
29
+ height: "64"
30
+ };
31
+ function d(e, t) {
32
+ return o(), n("svg", h, [...t[0] || (t[0] = [
33
+ s("path", {
34
+ d: "M512 92a240 240 0 0 1 240 240v90h60a60 60 0 0 1 60 60v390a60 60 0 0 1-60 60H212a60 60 0 0 1-60-60V482a60 60 0 0 1 60-60h60v-90a240 240 0 0 1 240-240z m300 390H212v390h600V482z m-300 90a60 60 0 0 1 30.03 111.96L542 752a30 30 0 0 1-60 0v-68.04A60 60 0 0 1 512 572z m0-420a180 180 0 0 0-180 180v90h360v-90a180 180 0 0 0-180-180z",
35
+ "p-id": "4146"
36
+ }, null, -1)
37
+ ])]);
38
+ }
39
+ const g = /* @__PURE__ */ a(v, [["render", d]]), _ = {}, l = {
40
+ t: "1640065966638",
41
+ class: "icon",
42
+ viewBox: "0 0 1024 1024",
43
+ version: "1.1",
44
+ xmlns: "http://www.w3.org/2000/svg",
45
+ "p-id": "4436",
46
+ width: "64",
47
+ height: "64"
48
+ };
49
+ function m(e, t) {
50
+ return o(), n("svg", l, [...t[0] || (t[0] = [
51
+ s("path", {
52
+ d: "M512 90.125a225 225 0 0 1 225 225 28.125 28.125 0 0 1-56.25 0 168.75 168.75 0 0 0-337.3875-6.328125L343.25 315.125v112.5h450a56.25 56.25 0 0 1 56.25 56.25v365.625a56.25 56.25 0 0 1-56.25 56.25H230.75a56.25 56.25 0 0 1-56.25-56.25V483.875a56.25 56.25 0 0 1 56.25-56.25h56.25V315.125a225 225 0 0 1 225-225z m281.25 393.75H230.75v365.625h562.5V483.875z m-281.25 84.375a56.25 56.25 0 0 1 28.153125 104.9625L540.125 737a28.125 28.125 0 0 1-56.25 0v-63.7875A56.25 56.25 0 0 1 512 568.25z",
53
+ "p-id": "4437"
54
+ }, null, -1)
55
+ ])]);
56
+ }
57
+ const x = /* @__PURE__ */ a(_, [["render", m]]);
58
+ export {
59
+ f as I,
60
+ x as a,
61
+ g as b
62
+ };
@@ -1,4 +1,4 @@
1
- import { q as r } from "./index-D6ZS8SXJ.js";
1
+ import { b3 as r } from "./index-CZJriuFt.js";
2
2
  function e() {
3
3
  return {
4
4
  setUrl: r
@@ -0,0 +1,115 @@
1
+ import { getCurrentInstance as p, inject as C, ref as c, computed as s, unref as d, provide as x } from "vue";
2
+ import { b as E, d as V, ak as f, K as m, a8 as I, F as g, s as S, a9 as z, aZ as K, a_ as A, a$ as P, b0 as F, n as L, b1 as N, J as k, Q as G, b2 as T } from "./index-CZJriuFt.js";
3
+ const b = Symbol(), O = Symbol("emptyValuesContextKey"), U = "use-empty-values", Z = ["", void 0, null], j = void 0, w = E({
4
+ emptyValues: Array,
5
+ valueOnClear: {
6
+ type: V([
7
+ String,
8
+ Number,
9
+ Boolean,
10
+ Function
11
+ ]),
12
+ default: void 0,
13
+ validator: (e) => (e = f(e) ? e() : e, m(e) ? e.every((u) => !u) : !e)
14
+ }
15
+ }), B = (e, u) => {
16
+ const n = p() ? C(O, c({})) : c({}), l = s(
17
+ () => e.emptyValues || n.value.emptyValues || Z
18
+ ), t = s(() => f(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : f(n.value.valueOnClear) ? n.value.valueOnClear() : n.value.valueOnClear !== void 0 ? n.value.valueOnClear : j), r = (o) => {
19
+ let a = !0;
20
+ return m(o) ? a = l.value.some((i) => I(o, i)) : a = l.value.includes(o), a;
21
+ };
22
+ return r(t.value) || g(U, "value-on-clear should be a value of empty-values"), {
23
+ emptyValues: l,
24
+ valueOnClear: t,
25
+ isEmptyValue: r
26
+ };
27
+ }, y = (e) => Object.keys(e), M = (e) => Object.entries(e), Q = (e, u, n) => ({
28
+ get value() {
29
+ return z(e, u, n);
30
+ },
31
+ set value(l) {
32
+ S(e, u, l);
33
+ }
34
+ }), v = c();
35
+ function _(e, u = void 0) {
36
+ const n = p() ? C(b, v) : v;
37
+ return e ? s(() => {
38
+ var l, t;
39
+ return (t = (l = n.value) == null ? void 0 : l[e]) != null ? t : u;
40
+ }) : n;
41
+ }
42
+ function R(e, u) {
43
+ const n = _(), l = L(
44
+ e,
45
+ s(() => {
46
+ var a;
47
+ return ((a = n.value) == null ? void 0 : a.namespace) || N;
48
+ })
49
+ ), t = k(s(() => {
50
+ var a;
51
+ return (a = n.value) == null ? void 0 : a.locale;
52
+ })), r = G(
53
+ s(() => {
54
+ var a;
55
+ return ((a = n.value) == null ? void 0 : a.zIndex) || T;
56
+ })
57
+ ), o = s(() => {
58
+ var a;
59
+ return d(u) || ((a = n.value) == null ? void 0 : a.size) || "";
60
+ });
61
+ return D(s(() => d(n) || {})), {
62
+ ns: l,
63
+ locale: t,
64
+ zIndex: r,
65
+ size: o
66
+ };
67
+ }
68
+ const D = (e, u, n = !1) => {
69
+ var l;
70
+ const t = !!p(), r = t ? _() : void 0, o = (l = void 0) != null ? l : t ? x : void 0;
71
+ if (!o) {
72
+ g(
73
+ "provideGlobalConfig",
74
+ "provideGlobalConfig() can only be used inside setup()."
75
+ );
76
+ return;
77
+ }
78
+ const a = s(() => {
79
+ const i = d(e);
80
+ return r?.value ? J(r.value, i) : i;
81
+ });
82
+ return o(b, a), o(
83
+ K,
84
+ s(() => a.value.locale)
85
+ ), o(
86
+ A,
87
+ s(() => a.value.namespace)
88
+ ), o(
89
+ P,
90
+ s(() => a.value.zIndex)
91
+ ), o(F, {
92
+ size: s(() => a.value.size || "")
93
+ }), o(
94
+ O,
95
+ s(() => ({
96
+ emptyValues: a.value.emptyValues,
97
+ valueOnClear: a.value.valueOnClear
98
+ }))
99
+ ), (n || !v.value) && (v.value = a.value), a;
100
+ }, J = (e, u) => {
101
+ const n = [.../* @__PURE__ */ new Set([...y(e), ...y(u)])], l = {};
102
+ for (const t of n)
103
+ l[t] = u[t] !== void 0 ? u[t] : e[t];
104
+ return l;
105
+ };
106
+ export {
107
+ B as a,
108
+ _ as b,
109
+ R as c,
110
+ M as e,
111
+ Q as g,
112
+ y as k,
113
+ D as p,
114
+ w as u
115
+ };
@@ -0,0 +1,14 @@
1
+ import { isVNode as A } from "vue";
2
+ import { K as r } from "./index-CZJriuFt.js";
3
+ var _ = /* @__PURE__ */ ((E) => (E[E.TEXT = 1] = "TEXT", E[E.CLASS = 2] = "CLASS", E[E.STYLE = 4] = "STYLE", E[E.PROPS = 8] = "PROPS", E[E.FULL_PROPS = 16] = "FULL_PROPS", E[E.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", E[E.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", E[E.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", E[E.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", E[E.NEED_PATCH = 512] = "NEED_PATCH", E[E.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", E[E.HOISTED = -1] = "HOISTED", E[E.BAIL = -2] = "BAIL", E))(_ || {});
4
+ const S = (E) => {
5
+ const N = r(E) ? E : [E], e = [];
6
+ return N.forEach((T) => {
7
+ var o;
8
+ r(T) ? e.push(...S(T)) : A(T) && ((o = T.component) != null && o.subTree) ? e.push(T, ...S(T.component.subTree)) : A(T) && r(T.children) ? e.push(...S(T.children)) : A(T) && T.shapeFlag === 2 ? e.push(...S(T.type())) : e.push(T);
9
+ }), e;
10
+ };
11
+ export {
12
+ _ as P,
13
+ S as f
14
+ };
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "bp-aicc-editor",
3
3
  "type": "module",
4
- "version": "1.2.507",
4
+ "version": "1.2.511",
5
5
  "packageManager": "pnpm@10.26.2",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./lib/index.es.js",
9
9
  "require": "./lib/index.umd.js"
10
10
  },
11
- "./styles.css": "./lib/styles.css"
11
+ "./styles": "./lib/style.css",
12
+ "./uno.css": "./lib/uno.css"
12
13
  },
13
14
  "main": "./lib/index.umd.js",
14
15
  "module": "./lib/index.es.js",
@@ -1,126 +0,0 @@
1
- import { ElConfigProvider as u } from "element-plus/es";
2
- import "element-plus/es/components/base/style/css";
3
- import "element-plus/es/components/config-provider/style/css";
4
- import { ElConfigProvider as m } from "element-plus";
5
- import p from "element-plus/es/locale/lang/zh-cn";
6
- import { defineComponent as f, provide as _, onMounted as y, resolveComponent as g, createBlock as C, openBlock as S, withCtx as v, createElementVNode as n, createVNode as h } from "vue";
7
- import { s as c, l as b, u as $, a as M, _ as w } from "./index-D6ZS8SXJ.js";
8
- import { defineStore as d } from "pinia";
9
- const P = d("debug", {
10
- state: () => ({
11
- debug: !1,
12
- originMap: {},
13
- fieldStatusMap: {},
14
- dataStatusMap: {}
15
- }),
16
- actions: {
17
- enable() {
18
- this.debug = !0;
19
- },
20
- stop() {
21
- this.debug = !1;
22
- },
23
- async setOrigin(e, t, a) {
24
- this.debug && c(this.originMap, `${e}.${t}`, a);
25
- },
26
- async setFieldStatus(e, t, a) {
27
- this.debug && c(this.fieldStatusMap, `${e}.${t}`, a);
28
- },
29
- async setDataStatus(e, t, a, i) {
30
- this.debug && c(this.dataStatusMap, `${e}.${t}.${a}`, i);
31
- }
32
- }
33
- }), D = d("filter", {
34
- state: () => ({
35
- dataFilters: []
36
- }),
37
- actions: {
38
- async loadFilters() {
39
- },
40
- async create(e) {
41
- },
42
- async update(e) {
43
- },
44
- async updateName(e) {
45
- },
46
- async delete(e) {
47
- }
48
- }
49
- });
50
- function E(e, t) {
51
- console.error(`[datav/${e}]: ${t}`);
52
- }
53
- const x = f({
54
- name: "ScreenPreview",
55
- components: {
56
- CanvasMain: b(() => import("./index-CI4vgOJL.js")),
57
- ElConfigProvider: m
58
- },
59
- props: {
60
- screenData: {
61
- type: Object,
62
- required: !1,
63
- default: () => ({})
64
- }
65
- },
66
- emits: ["componentClick"],
67
- setup(e, { emit: t }) {
68
- const a = D(), i = P(), o = $(), r = M();
69
- return i.enable(), o.setEditMode(!1), _("COMPONENT_CLICK", (s) => {
70
- t("componentClick", s);
71
- }), y(async () => {
72
- try {
73
- if (!e.screenData || Object.keys(e.screenData).length === 0)
74
- return;
75
- await Promise.all([
76
- o.loadScreen(e.screenData),
77
- a.loadFilters(),
78
- r.requestCom(e.screenData),
79
- r.requestCollectComs(e.screenData)
80
- ]);
81
- } catch (s) {
82
- E("editor", s);
83
- } finally {
84
- document.title = `${o.screen.name} | 预览`, o.autoCanvasScale(() => ({ x: 0, y: 0 }));
85
- }
86
- }), {
87
- zhCn: p
88
- };
89
- }
90
- }), O = { class: "boxs" }, k = { class: "g-layout is-vertical edit-container" }, F = {
91
- id: "edit-main-wp",
92
- class: "g-layout edit-main-wp"
93
- }, N = { style: { display: "flex", "flex-direction": "column", width: "100%" } }, j = {
94
- id: "iking-editor-main",
95
- class: "g-layout edit-main"
96
- };
97
- function q(e, t, a, i, o, r) {
98
- const s = g("CanvasMain"), l = u;
99
- return S(), C(l, { locale: e.zhCn }, {
100
- default: v(() => [
101
- n("div", O, [
102
- n("div", k, [
103
- n("div", F, [
104
- n("div", N, [
105
- n("div", j, [
106
- h(s)
107
- ])
108
- ])
109
- ])
110
- ])
111
- ])
112
- ]),
113
- _: 1
114
- }, 8, ["locale"]);
115
- }
116
- const z = /* @__PURE__ */ w(x, [["render", q], ["__scopeId", "data-v-ea84de8d"]]), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
117
- __proto__: null,
118
- default: z
119
- }, Symbol.toStringTag, { value: "Module" }));
120
- export {
121
- z as S,
122
- P as a,
123
- H as b,
124
- D as u,
125
- E as w
126
- };