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
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as g, computed as u, resolveComponent as h, createElementBlock as r, openBlock as c, createElementVNode as n, Fragment as v, renderList as C, createVNode as x, toDisplayString as S } from "vue";
2
- import { c as b, l as y } from "./datav-DYcMOPlj.js";
3
- import { u as E, a as k, z as w, _ as D } from "./index-D6ZS8SXJ.js";
2
+ import { c as b, l as y } from "./datav-BER95ty-.js";
3
+ import { u as E, a as k, bc as w, _ as D } from "./index-CZJriuFt.js";
4
4
  import { u as L } from "./toolbar-Dhf_BVAU.js";
5
- const B = { class: "component-library" }, M = { class: "component-categories" }, N = { class: "component-grid" }, T = ["draggable", "onDragstart", "onClick"], V = { class: "component-preview flex-center" }, z = { class: "component-name" }, A = /* @__PURE__ */ g({
5
+ const B = { class: "component-library" }, M = { class: "component-categories" }, N = { class: "component-grid" }, T = ["draggable", "onDragstart", "onClick"], V = { class: "component-preview flex-center" }, A = { class: "component-name" }, F = /* @__PURE__ */ g({
6
6
  __name: "index",
7
- setup(F) {
7
+ setup(I) {
8
8
  const s = L(), i = E(), l = k(), m = u(() => {
9
9
  const e = [];
10
10
  return w.forEach((o) => {
@@ -48,14 +48,14 @@ const B = { class: "component-library" }, M = { class: "component-categories" },
48
48
  class: "com-icon"
49
49
  }, null, 8, ["icon"])
50
50
  ]),
51
- n("div", z, S(t.alias), 1)
51
+ n("div", A, S(t.alias), 1)
52
52
  ], 40, T))), 128))
53
53
  ])
54
54
  ])
55
55
  ]);
56
56
  };
57
57
  }
58
- }), G = /* @__PURE__ */ D(A, [["__scopeId", "data-v-e2dc34c4"]]);
58
+ }), G = /* @__PURE__ */ D(F, [["__scopeId", "data-v-e2dc34c4"]]);
59
59
  export {
60
60
  G as default
61
61
  };
@@ -0,0 +1,390 @@
1
+ import { b as N, f as r, d as p, r as q, g as h, h as B, i as M, j as G, k as J, n as Q, o as X, p as Y, w as Z, q as x, t as P, v as ee, x as te, E as oe, _ as re } from "./index-CZJriuFt.js";
2
+ import { E as le, a as ae } from "./el-tab-pane-DD2eM9rB.js";
3
+ import { defineComponent as W, computed as g, ref as b, unref as I, createBlock as V, openBlock as u, mergeProps as ne, withCtx as d, renderSlot as j, createCommentVNode as D, createElementBlock as A, normalizeClass as K, toDisplayString as z, createTextVNode as se, onMounted as ie, createElementVNode as w, createVNode as k, Fragment as pe, renderList as ue, resolveDynamicComponent as F } from "vue";
4
+ const L = N({
5
+ trigger: {
6
+ ...h.trigger,
7
+ type: p([
8
+ String,
9
+ Array
10
+ ])
11
+ },
12
+ triggerKeys: {
13
+ type: p(Array),
14
+ default: () => [
15
+ B.enter,
16
+ B.numpadEnter,
17
+ B.space,
18
+ B.down
19
+ ]
20
+ },
21
+ virtualTriggering: h.virtualTriggering,
22
+ virtualRef: h.virtualRef,
23
+ effect: {
24
+ ...r.effect,
25
+ default: "light"
26
+ },
27
+ type: {
28
+ type: p(String)
29
+ },
30
+ placement: {
31
+ type: p(String),
32
+ default: "bottom"
33
+ },
34
+ popperOptions: {
35
+ type: p(Object),
36
+ default: () => ({})
37
+ },
38
+ id: String,
39
+ size: {
40
+ type: String,
41
+ default: ""
42
+ },
43
+ splitButton: Boolean,
44
+ hideOnClick: {
45
+ type: Boolean,
46
+ default: !0
47
+ },
48
+ loop: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ showArrow: {
53
+ type: Boolean,
54
+ default: !0
55
+ },
56
+ showTimeout: {
57
+ type: Number,
58
+ default: 150
59
+ },
60
+ hideTimeout: {
61
+ type: Number,
62
+ default: 150
63
+ },
64
+ tabindex: {
65
+ type: p([Number, String]),
66
+ default: 0
67
+ },
68
+ maxHeight: {
69
+ type: p([Number, String]),
70
+ default: ""
71
+ },
72
+ popperClass: r.popperClass,
73
+ popperStyle: r.popperStyle,
74
+ disabled: Boolean,
75
+ role: {
76
+ type: String,
77
+ values: q,
78
+ default: "menu"
79
+ },
80
+ buttonProps: {
81
+ type: p(Object)
82
+ },
83
+ teleported: r.teleported,
84
+ appendTo: r.appendTo,
85
+ persistent: {
86
+ type: Boolean,
87
+ default: !0
88
+ }
89
+ });
90
+ N({
91
+ command: {
92
+ type: [Object, String, Number],
93
+ default: () => ({})
94
+ },
95
+ disabled: Boolean,
96
+ divided: Boolean,
97
+ textValue: String,
98
+ icon: {
99
+ type: M
100
+ }
101
+ });
102
+ N({
103
+ onKeydown: { type: p(Function) }
104
+ });
105
+ const de = N({
106
+ trigger: h.trigger,
107
+ triggerKeys: h.triggerKeys,
108
+ placement: L.placement,
109
+ disabled: h.disabled,
110
+ visible: r.visible,
111
+ transition: r.transition,
112
+ popperOptions: L.popperOptions,
113
+ tabindex: L.tabindex,
114
+ content: r.content,
115
+ popperStyle: r.popperStyle,
116
+ popperClass: r.popperClass,
117
+ enterable: {
118
+ ...r.enterable,
119
+ default: !0
120
+ },
121
+ effect: {
122
+ ...r.effect,
123
+ default: "light"
124
+ },
125
+ teleported: r.teleported,
126
+ appendTo: r.appendTo,
127
+ title: String,
128
+ width: {
129
+ type: [String, Number],
130
+ default: 150
131
+ },
132
+ offset: {
133
+ type: Number,
134
+ default: void 0
135
+ },
136
+ showAfter: {
137
+ type: Number,
138
+ default: 0
139
+ },
140
+ hideAfter: {
141
+ type: Number,
142
+ default: 200
143
+ },
144
+ autoClose: {
145
+ type: Number,
146
+ default: 0
147
+ },
148
+ showArrow: {
149
+ type: Boolean,
150
+ default: !0
151
+ },
152
+ persistent: {
153
+ type: Boolean,
154
+ default: !0
155
+ },
156
+ "onUpdate:visible": {
157
+ type: Function
158
+ }
159
+ }), ce = {
160
+ "update:visible": (o) => G(o),
161
+ "before-enter": () => !0,
162
+ "before-leave": () => !0,
163
+ "after-enter": () => !0,
164
+ "after-leave": () => !0
165
+ }, fe = "onUpdate:visible", ve = W({
166
+ name: "ElPopover",
167
+ __name: "popover",
168
+ props: de,
169
+ emits: ce,
170
+ setup(o, { expose: s, emit: y }) {
171
+ const a = o, c = y, f = g(() => a[fe]), v = Q("popover"), l = b(), E = g(() => {
172
+ var e;
173
+ return (e = I(l)) == null ? void 0 : e.popperRef;
174
+ }), _ = g(() => [
175
+ {
176
+ width: X(a.width)
177
+ },
178
+ a.popperStyle
179
+ ]), S = g(() => [v.b(), a.popperClass, { [v.m("plain")]: !!a.content }]), O = g(() => a.transition === `${v.namespace.value}-fade-in-linear`), $ = () => {
180
+ var e;
181
+ (e = l.value) == null || e.hide();
182
+ }, R = () => {
183
+ c("before-enter");
184
+ }, t = () => {
185
+ c("before-leave");
186
+ }, n = () => {
187
+ c("after-enter");
188
+ }, m = () => {
189
+ c("update:visible", !1), c("after-leave");
190
+ };
191
+ return s({
192
+ popperRef: E,
193
+ hide: $
194
+ }), (e, C) => (u(), V(I(Y), ne({
195
+ ref_key: "tooltipRef",
196
+ ref: l
197
+ }, e.$attrs, {
198
+ trigger: e.trigger,
199
+ "trigger-keys": e.triggerKeys,
200
+ placement: e.placement,
201
+ disabled: e.disabled,
202
+ visible: e.visible,
203
+ transition: e.transition,
204
+ "popper-options": e.popperOptions,
205
+ tabindex: e.tabindex,
206
+ content: e.content,
207
+ offset: e.offset,
208
+ "show-after": e.showAfter,
209
+ "hide-after": e.hideAfter,
210
+ "auto-close": e.autoClose,
211
+ "show-arrow": e.showArrow,
212
+ "aria-label": e.title,
213
+ effect: e.effect,
214
+ enterable: e.enterable,
215
+ "popper-class": S.value,
216
+ "popper-style": _.value,
217
+ teleported: e.teleported,
218
+ "append-to": e.appendTo,
219
+ persistent: e.persistent,
220
+ "gpu-acceleration": O.value,
221
+ "onUpdate:visible": f.value,
222
+ onBeforeShow: R,
223
+ onBeforeHide: t,
224
+ onShow: n,
225
+ onHide: m
226
+ }), {
227
+ content: d(() => [
228
+ e.title ? (u(), A(
229
+ "div",
230
+ {
231
+ key: 0,
232
+ class: K(I(v).e("title")),
233
+ role: "title"
234
+ },
235
+ z(e.title),
236
+ 3
237
+ )) : D("v-if", !0),
238
+ j(e.$slots, "default", {}, () => [
239
+ se(
240
+ z(e.content),
241
+ 1
242
+ )
243
+ ])
244
+ ]),
245
+ default: d(() => [
246
+ e.$slots.reference ? j(e.$slots, "reference", { key: 0 }) : D("v-if", !0)
247
+ ]),
248
+ _: 3
249
+ }, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]));
250
+ }
251
+ });
252
+ var me = /* @__PURE__ */ J(ve, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
253
+ const H = (o, s) => {
254
+ const y = s.arg || s.value, a = y?.popperRef;
255
+ a && (a.triggerRef = o);
256
+ };
257
+ var ge = {
258
+ mounted(o, s) {
259
+ H(o, s);
260
+ },
261
+ updated(o, s) {
262
+ H(o, s);
263
+ }
264
+ };
265
+ const ye = "popover", be = x(ge, ye), he = Z(me, {
266
+ directive: be
267
+ }), we = { class: "icon-picker-trigger" }, ke = { class: "icon-picker-content" }, Ve = { class: "search-bar" }, Ee = { class: "icon-list" }, Se = ["onClick"], Ce = /* @__PURE__ */ W({
268
+ __name: "index",
269
+ props: {
270
+ modelValue: {
271
+ type: String,
272
+ default: ""
273
+ }
274
+ },
275
+ emits: ["update:modelValue", "change"],
276
+ setup(o, { emit: s }) {
277
+ const y = o, a = s, c = b("ele"), f = b(""), v = b([]), l = b(""), E = b(!1);
278
+ async function _() {
279
+ if (!l.value)
280
+ return;
281
+ E.value = !0;
282
+ const t = document.createElement("link");
283
+ t.rel = "stylesheet", t.href = l.value.startsWith("//") ? `https:${l.value}` : l.value, t.id = "ali-icon-css";
284
+ const n = document.getElementById("ali-icon-css");
285
+ n && document.head.removeChild(n), document.head.appendChild(t);
286
+ try {
287
+ const m = l.value.startsWith("//") ? `https:${l.value}` : l.value, C = await (await fetch(m)).text(), U = /\.icon-[\w-]+(?=:before)/g, T = C.match(U);
288
+ T && (v.value = Array.from(new Set(T.map((i) => i.substring(1)))), localStorage.setItem("ali-icon-url", l.value));
289
+ } catch (m) {
290
+ console.error(m);
291
+ } finally {
292
+ E.value = !1;
293
+ }
294
+ }
295
+ ie(() => {
296
+ const t = localStorage.getItem("ali-icon-url");
297
+ t && (l.value = t, _());
298
+ }), g(() => f.value ? v.value.filter((t) => t.toLowerCase().includes(f.value.toLowerCase())) : v.value);
299
+ const S = Object.keys(P).filter((t) => t !== "default"), O = g(() => f.value ? S.filter((t) => t.toLowerCase().includes(f.value.toLowerCase())) : S), $ = g(() => y.modelValue);
300
+ function R(t) {
301
+ a("update:modelValue", t), a("change", t);
302
+ }
303
+ return (t, n) => {
304
+ const m = oe, e = ee, C = ae, U = le, T = he;
305
+ return u(), V(T, {
306
+ placement: "bottom",
307
+ width: 330,
308
+ trigger: "click",
309
+ teleported: !1,
310
+ "popper-class": "icon-picker-popover"
311
+ }, {
312
+ reference: d(() => [
313
+ w("div", we, [
314
+ k(e, {
315
+ "model-value": $.value,
316
+ placeholder: "点击选择图标",
317
+ readonly: "",
318
+ style: { "pointer-events": "none" }
319
+ }, {
320
+ prefix: d(() => [
321
+ o.modelValue && P[o.modelValue] ? (u(), V(m, {
322
+ key: 0,
323
+ class: "prefix-icon"
324
+ }, {
325
+ default: d(() => [
326
+ (u(), V(F(P[o.modelValue])))
327
+ ]),
328
+ _: 1
329
+ })) : o.modelValue && o.modelValue.startsWith("icon-") ? (u(), A("i", {
330
+ key: 1,
331
+ class: K(["iconfont prefix-icon", o.modelValue])
332
+ }, null, 2)) : D("", !0)
333
+ ]),
334
+ _: 1
335
+ }, 8, ["model-value"]),
336
+ n[2] || (n[2] = w("div", { class: "trigger-overlay" }, null, -1))
337
+ ])
338
+ ]),
339
+ default: d(() => [
340
+ w("div", ke, [
341
+ w("div", Ve, [
342
+ k(e, {
343
+ modelValue: f.value,
344
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => f.value = i),
345
+ placeholder: "请输入菜单图标",
346
+ clearable: "",
347
+ "prefix-icon": I(te)
348
+ }, null, 8, ["modelValue", "prefix-icon"])
349
+ ]),
350
+ k(U, {
351
+ modelValue: c.value,
352
+ "onUpdate:modelValue": n[1] || (n[1] = (i) => c.value = i),
353
+ class: "icon-tabs"
354
+ }, {
355
+ default: d(() => [
356
+ k(C, {
357
+ label: "ele",
358
+ name: "ele"
359
+ }, {
360
+ default: d(() => [
361
+ w("div", Ee, [
362
+ (u(!0), A(pe, null, ue(O.value, (i) => (u(), A("div", {
363
+ key: i,
364
+ class: K(["icon-item", { active: i === o.modelValue }]),
365
+ onClick: (Te) => R(i)
366
+ }, [
367
+ k(m, { size: "20" }, {
368
+ default: d(() => [
369
+ (u(), V(F(P[i])))
370
+ ]),
371
+ _: 2
372
+ }, 1024)
373
+ ], 10, Se))), 128))
374
+ ])
375
+ ]),
376
+ _: 1
377
+ })
378
+ ]),
379
+ _: 1
380
+ }, 8, ["modelValue"])
381
+ ])
382
+ ]),
383
+ _: 1
384
+ });
385
+ };
386
+ }
387
+ }), Ae = /* @__PURE__ */ re(Ce, [["__scopeId", "data-v-82a55f1a"]]);
388
+ export {
389
+ Ae as default
390
+ };
@@ -0,0 +1,68 @@
1
+ import { l as a, a as b, b6 as S, _ as P } from "./index-CZJriuFt.js";
2
+ import { E as v, a as h } from "./el-tab-pane-DD2eM9rB.js";
3
+ import { defineComponent as k, computed as r, provide as N, ref as T, resolveComponent as l, createElementBlock as L, openBlock as t, normalizeClass as V, createElementVNode as E, createBlock as n, withCtx as c, createVNode as $, createTextVNode as j, toDisplayString as M } from "vue";
4
+ import { u as w } from "./toolbar-Dhf_BVAU.js";
5
+ const B = Symbol("comInjectionKey"), I = k({
6
+ name: "ConfigPanel",
7
+ components: {
8
+ PageConfig: a(() => import("./page-config-Cmsi8Vpr.js")),
9
+ MultiLayoutConfig: a(() => import("./multi-layout-config-drSy7ezf.js")),
10
+ SettingPanel: a(() => import("./setting-panel-BgzN3BUP.js")),
11
+ LayerSettingPanel: a(() => import("./layer-setting-panel-VvDSQ-cn.js"))
12
+ },
13
+ setup() {
14
+ const e = w(), o = b(), i = r(() => e.config.show), m = r(() => o.selectedComs.length), s = r(() => o.selectedSubCom || o.selectedCom);
15
+ return N(B, s), {
16
+ activeName: T("config"),
17
+ ComType: S,
18
+ visiblePanel: i,
19
+ currCom: s,
20
+ selectedCount: m
21
+ };
22
+ }
23
+ }), z = { class: "config-manager" };
24
+ function K(e, o, i, m, s, d) {
25
+ const p = l("LayerSettingPanel"), u = l("SettingPanel"), f = h, g = v, C = l("MultiLayoutConfig"), y = l("PageConfig");
26
+ return t(), L("div", {
27
+ class: V(["g-aside config-panel-wp", [{ "--hide": !e.visiblePanel }]])
28
+ }, [
29
+ E("div", z, [
30
+ e.currCom && e.currCom.type === e.ComType.layer ? (t(), n(p, { key: 0 })) : e.currCom ? (t(), n(g, {
31
+ key: 1,
32
+ modelValue: e.activeName,
33
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => e.activeName = _),
34
+ type: "border-card",
35
+ style: { height: "100%" }
36
+ }, {
37
+ default: c(() => [
38
+ $(f, {
39
+ name: "config",
40
+ style: { height: "100%" }
41
+ }, {
42
+ label: c(() => [
43
+ j(M(e.currCom.alias), 1)
44
+ ]),
45
+ default: c(() => [
46
+ (t(), n(u, {
47
+ key: e.currCom.id
48
+ }))
49
+ ]),
50
+ _: 1
51
+ })
52
+ ]),
53
+ _: 1
54
+ }, 8, ["modelValue"])) : e.selectedCount > 1 ? (t(), n(C, {
55
+ key: 2,
56
+ "selected-count": e.selectedCount
57
+ }, null, 8, ["selected-count"])) : (t(), n(y, { key: 3 }))
58
+ ])
59
+ ], 2);
60
+ }
61
+ const O = /* @__PURE__ */ P(I, [["render", K], ["__scopeId", "data-v-edf3f863"]]), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
62
+ __proto__: null,
63
+ default: O
64
+ }, Symbol.toStringTag, { value: "Module" }));
65
+ export {
66
+ B as c,
67
+ F as i
68
+ };