bp-aicc-editor 1.2.521 → 1.2.523

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 (112) hide show
  1. package/lib/{ScreenPreview-CV95NWOd.js → ScreenPreview-yUHo60be.js} +51 -105
  2. package/lib/atlas-BMjKIOwk.js +3891 -0
  3. package/lib/{button-base-DHNVBrQ9.js → button-base-CXl1z-_m.js} +1 -1
  4. package/lib/{cache-lsjsKZHu.js → cache-DbHSDjJy.js} +1 -1
  5. package/lib/config-provider-Bui8m4GV.js +62 -0
  6. package/lib/{container-group-DqAcKEBy.js → container-group-D6Extorz.js} +1 -1
  7. package/lib/{copy-C5Pi6nJh.js → copy-CsCmPy4J.js} +1 -1
  8. package/lib/{datav-BER95ty-.js → datav-BTD-HJhV.js} +27 -27
  9. package/lib/{delete-C2EW4JCs.js → delete-COj0ilHh.js} +1 -1
  10. package/lib/{divider-BazBGRgV.js → divider-B3K_URZc.js} +1 -1
  11. package/lib/dropdown-CWvnuJsO.js +105 -0
  12. package/lib/{edit-B2pfd2q1.js → edit-vdJaEine.js} +1 -1
  13. package/lib/{el-form-item-BDdxk5F5.js → el-form-item-BbaNohQv.js} +51 -51
  14. package/lib/{el-link-D2ol9BHQ.js → el-link-Dq721Q7-.js} +12 -12
  15. package/lib/{el-loading-Cgwgez55.js → el-loading-DOxnN3bm.js} +17 -17
  16. package/lib/{fullscreen-OChDsSnk.js → fullscreen-DXSogbcG.js} +1 -1
  17. package/lib/{image-C5ZAY3yt.js → image-Cu7JTK9-.js} +1 -1
  18. package/lib/{index-Ci8AbyIq.js → index-68soBnbK.js} +8 -8
  19. package/lib/{index-BatyRVpL.js → index-B-d8WIg1.js} +7 -7
  20. package/lib/{index-BfIEunKC.js → index-B4zV3cxV.js} +18 -17
  21. package/lib/{index-CZJriuFt.js → index-B8QqTLfg.js} +4974 -4898
  22. package/lib/index-BBMItxtW.js +619 -0
  23. package/lib/{index-CGrR_i0u.js → index-BMm0MRz5.js} +14 -15
  24. package/lib/index-BMn8EzMD.js +1027 -0
  25. package/lib/index-BNTW8F-9.js +322 -0
  26. package/lib/index-BTI518b1.js +69 -0
  27. package/lib/{index-BWPVi43E.js → index-BZxUAT4z.js} +4 -4
  28. package/lib/{index-Ck7uFsPE.js → index-BdYTc41r.js} +24 -24
  29. package/lib/index-BfI55Ioc.js +404 -0
  30. package/lib/{index-BhP9eBCp.js → index-BmAcetSf.js} +19 -20
  31. package/lib/index-C35Yp3i8.js +545 -0
  32. package/lib/{index-B19lEYui.js → index-C6GUNRx9.js} +2 -2
  33. package/lib/index-CC28_8Jl.js +567 -0
  34. package/lib/index-CDhmvVt8.js +338 -0
  35. package/lib/index-CDx0y0fp.js +144 -0
  36. package/lib/{el-button-DvLKp6Ga.js → index-CJjljoJG.js} +106 -106
  37. package/lib/index-CNCgXPiO.js +235 -0
  38. package/lib/{index-CWbZmzNT.js → index-CPa_MnOD.js} +30 -29
  39. package/lib/index-CW6ljdNf.js +1582 -0
  40. package/lib/index-C_WopEui.js +513 -0
  41. package/lib/{index-CX_Ghcb6.js → index-CejowjGd.js} +56 -53
  42. package/lib/{index-BwCQWH-N.js → index-CfZXOvi-.js} +42 -40
  43. package/lib/{index-CVsy2qTh.js → index-CgzRTmPh.js} +16 -15
  44. package/lib/index-CmzuNM9v.js +32 -0
  45. package/lib/index-CrxcAFt8.js +5343 -0
  46. package/lib/{index-C7k49L2T.js → index-CuHA7QXu.js} +10 -10
  47. package/lib/{index-qVyixI57.js → index-CyBGAB7D.js} +21 -20
  48. package/lib/index-D6J7coU0.js +129 -0
  49. package/lib/index-DDHxrdAo.js +1773 -0
  50. package/lib/index-DDL-yqq0.js +1401 -0
  51. package/lib/{index-BPcvYtHf.js → index-DOxy-bey.js} +6 -6
  52. package/lib/{index-CVE37oE7.js → index-DOyr0BHr.js} +7 -7
  53. package/lib/index-DPOanmXI.js +887 -0
  54. package/lib/{index-3pzVrvby.js → index-DR_husZg.js} +46 -46
  55. package/lib/{el-tab-pane-DD2eM9rB.js → index-DUzOCQrW.js} +125 -124
  56. package/lib/{index-CGFEhUh9.js → index-DVYI-g8Q.js} +53 -52
  57. package/lib/index-DVyjilLy.js +51 -0
  58. package/lib/{index-CJyYGViv.js → index-DWAJ9GyC.js} +9 -9
  59. package/lib/index-Dj2qCwPD.js +178 -0
  60. package/lib/{index-D4X0_jbv.js → index-Dx2Gld1J.js} +32 -32
  61. package/lib/{index-C2XeCqtq.js → index-E9T-y2Yz.js} +3 -3
  62. package/lib/{index-Buoc0ISP.js → index-FlmXAW0Z.js} +60 -58
  63. package/lib/index-NqqOvc6V.js +169 -0
  64. package/lib/{index-BkdiXCRY.js → index-ObKRNOmJ.js} +6 -7
  65. package/lib/index-bOWjoplU.js +448 -0
  66. package/lib/{index-CXQ258ID.js → index-buU8mDzi.js} +15 -16
  67. package/lib/{index-tbhuYbb0.js → index-mGKAWDJZ.js} +11 -12
  68. package/lib/index.es.js +4 -4
  69. package/lib/index.umd.js +46 -40
  70. package/lib/{layer-setting-panel-VvDSQ-cn.js → layer-setting-panel-BGPj32nP.js} +2 -2
  71. package/lib/{line-show-Bp4G-LqO.js → line-show-DUn1bu_P.js} +1 -1
  72. package/lib/{multi-layout-config-drSy7ezf.js → multi-layout-config-BTWxJeuc.js} +7 -8
  73. package/lib/{multiline-text-D89kYrA2.js → multiline-text-CPJdCWJ7.js} +1 -1
  74. package/lib/{navigation-YAGxZ0OT.js → navigation-ZLJaBOUj.js} +1 -1
  75. package/lib/page-config-CHP07Ndf.js +253 -0
  76. package/lib/{page-tabs-wFeNBY4c.js → page-tabs-CKLhgrip.js} +45 -41
  77. package/lib/{plus-3mdO6yXY.js → plus-xgpQU22I.js} +1 -1
  78. package/lib/raf-CJog_tcv.js +6 -0
  79. package/lib/refs-DZMysoBI.js +8 -0
  80. package/lib/{requestOld-DRcjsmRQ.js → requestOld-CaGzCXrV.js} +97 -96
  81. package/lib/{schema-BsnIOGBI.js → schema-BaFWGeFt.js} +1 -1
  82. package/lib/{schema-_APJMUW3.js → schema-CUR-UK2S.js} +44 -41
  83. package/lib/{schema-BavJE-SK.js → schema-WUk7XVq7.js} +58 -54
  84. package/lib/{schema-qKI1F8Bt.js → schema-geZfujv8.js} +1 -1
  85. package/lib/{schema-BflqDw-a.js → schema-iosjRxCC.js} +1 -1
  86. package/lib/{schema-Bo30dbBx.js → schema-tuPllxn6.js} +1 -1
  87. package/lib/scroll-CWfl60Tu.js +58 -0
  88. package/lib/{setting-panel-BgzN3BUP.js → setting-panel-0qLcwYyT.js} +154 -151
  89. package/lib/{show-C4AeWlKj.js → show-BCwE3hGY.js} +1 -1
  90. package/lib/{stepper-D5EFeJWG.js → stepper-Bud1Jppr.js} +1 -1
  91. package/lib/strings-BvUQWzDM.js +6 -0
  92. package/lib/style.css +1 -1
  93. package/lib/{switch-B0dR4LM_.js → switch-VlaUmSpJ.js} +1 -1
  94. package/lib/{unlock-Cq9PLhBA.js → unlock-B2FVPQlm.js} +1 -1
  95. package/lib/{use-env-url-BM9dgwx_.js → use-env-url-D1p8ib2L.js} +1 -1
  96. package/lib/use-global-config-D_yoqf3Q.js +90 -0
  97. package/lib/validator-BOXH2OMA.js +5 -0
  98. package/lib/{vnode-B_Dj8zxu.js → vnode-Bxs1g06p.js} +1 -1
  99. package/package.json +1 -1
  100. package/lib/atlas-DsmLq2V0.js +0 -38
  101. package/lib/el-overlay-BK0_UIU6.js +0 -704
  102. package/lib/index-B1yAU2Cb.js +0 -390
  103. package/lib/index-BCFXuK7k.js +0 -68
  104. package/lib/index-BD4Jwo8Z.js +0 -449
  105. package/lib/index-BMWqf88L.js +0 -356
  106. package/lib/index-Belsn8kt.js +0 -107
  107. package/lib/index-CIADz1i0.js +0 -8494
  108. package/lib/index-DKTrbqcA.js +0 -56
  109. package/lib/index-Ge_d2xqD.js +0 -127
  110. package/lib/page-config-Cmsi8Vpr.js +0 -582
  111. package/lib/strings-_mHAdgA4.js +0 -6
  112. package/lib/use-global-config-CflpFoxU.js +0 -115
@@ -0,0 +1,619 @@
1
+ import { ref as H, watch as X, provide as ue, computed as u, defineComponent as U, createElementBlock as v, openBlock as i, normalizeClass as h, unref as t, renderSlot as A, inject as re, createElementVNode as I, createVNode as y, withKeys as me, withModifiers as P, createTextVNode as pe, toDisplayString as L, withCtx as f, createBlock as E, resolveDynamicComponent as fe, withDirectives as ve, vShow as be, Fragment as M, normalizeStyle as he, renderList as W, createCommentVNode as N } from "vue";
2
+ import { i as ge, V as ye, R as Ce, e as Z, a0 as ee, ah as te, f as O, m as ke, ai as G, h as j, aj as q, ak as we, al as xe, a5 as Ee, g as le, G as Ie, Y as Ve, am as Te, E as B, w as $e, an as _e, _ as se, U as Y, ao as D, k as z, ap as Ne } from "./index-B8QqTLfg.js";
3
+ import { I as Se } from "./copy-CsCmPy4J.js";
4
+ import { I as Ke } from "./delete-COj0ilHh.js";
5
+ import { I as De } from "./plus-xgpQU22I.js";
6
+ import { E as Pe } from "./index-DVyjilLy.js";
7
+ import { E as Ae, a as Be } from "./index-DUzOCQrW.js";
8
+ import { E as He } from "./index-BNTW8F-9.js";
9
+ const J = (l) => ge(l) || ye(l) || Ce(l), Me = Z({
10
+ accordion: Boolean,
11
+ modelValue: {
12
+ type: O([Array, String, Number]),
13
+ default: () => ke([])
14
+ },
15
+ expandIconPosition: {
16
+ type: O([String]),
17
+ default: "right"
18
+ },
19
+ beforeCollapse: {
20
+ type: O(
21
+ Function
22
+ )
23
+ }
24
+ }), ze = {
25
+ [te]: J,
26
+ [ee]: J
27
+ }, ae = Symbol("collapseContextKey"), Q = "ElCollapse", Le = (l, n) => {
28
+ const e = H(G(l.modelValue)), m = (o) => {
29
+ e.value = o;
30
+ const c = l.accordion ? e.value[0] : e.value;
31
+ n(te, c), n(ee, c);
32
+ }, a = (o) => {
33
+ if (l.accordion)
34
+ m([e.value[0] === o ? "" : o]);
35
+ else {
36
+ const c = [...e.value], r = c.indexOf(o);
37
+ r > -1 ? c.splice(r, 1) : c.push(o), m(c);
38
+ }
39
+ }, d = async (o) => {
40
+ const { beforeCollapse: c } = l;
41
+ if (!c) {
42
+ a(o);
43
+ return;
44
+ }
45
+ const r = c(o);
46
+ [
47
+ q(r),
48
+ we(r)
49
+ ].includes(!0) || xe(
50
+ Q,
51
+ "beforeCollapse must return type `Promise<boolean>` or `boolean`"
52
+ ), q(r) ? r.then((C) => {
53
+ C !== !1 && a(o);
54
+ }).catch((C) => {
55
+ Ee(Q, `some error occurred: ${C}`);
56
+ }) : r && a(o);
57
+ };
58
+ return X(
59
+ () => l.modelValue,
60
+ () => e.value = G(l.modelValue),
61
+ { deep: !0 }
62
+ ), ue(ae, {
63
+ activeNames: e,
64
+ handleItemClick: d
65
+ }), {
66
+ activeNames: e,
67
+ setActiveNames: m
68
+ };
69
+ }, Oe = (l) => {
70
+ const n = j("collapse");
71
+ return {
72
+ rootKls: u(() => [
73
+ n.b(),
74
+ n.b(`icon-position-${l.expandIconPosition}`)
75
+ ])
76
+ };
77
+ }, Fe = U({
78
+ name: "ElCollapse",
79
+ __name: "collapse",
80
+ props: Me,
81
+ emits: ze,
82
+ setup(l, { expose: n, emit: e }) {
83
+ const m = l, a = e, { activeNames: d, setActiveNames: o } = Le(m, a), { rootKls: c } = Oe(m);
84
+ return n({
85
+ activeNames: d,
86
+ setActiveNames: o
87
+ }), (r, V) => (i(), v(
88
+ "div",
89
+ {
90
+ class: h(t(c))
91
+ },
92
+ [
93
+ A(r.$slots, "default")
94
+ ],
95
+ 2
96
+ ));
97
+ }
98
+ });
99
+ var Ue = /* @__PURE__ */ le(Fe, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);
100
+ const je = Z({
101
+ title: {
102
+ type: String,
103
+ default: ""
104
+ },
105
+ name: {
106
+ type: O([String, Number]),
107
+ default: void 0
108
+ },
109
+ icon: {
110
+ type: Ve,
111
+ default: Ie
112
+ },
113
+ disabled: Boolean
114
+ }), Re = (l) => {
115
+ const n = re(ae), { namespace: e } = j("collapse"), m = H(!1), a = H(!1), d = Te(), o = u(() => d.current++), c = u(() => {
116
+ var b;
117
+ return (b = l.name) != null ? b : `${e.value}-id-${d.prefix}-${t(o)}`;
118
+ }), r = u(
119
+ () => n?.activeNames.value.includes(t(c))
120
+ );
121
+ return {
122
+ focusing: m,
123
+ id: o,
124
+ isActive: r,
125
+ handleFocus: () => {
126
+ setTimeout(() => {
127
+ a.value ? a.value = !1 : m.value = !0;
128
+ }, 50);
129
+ },
130
+ handleHeaderClick: (b) => {
131
+ if (l.disabled)
132
+ return;
133
+ const w = b.target;
134
+ w?.closest("input, textarea, select") || (n?.handleItemClick(t(c)), m.value = !1, a.value = !0);
135
+ },
136
+ handleEnterClick: (b) => {
137
+ const w = b.target;
138
+ w?.closest("input, textarea, select") || (b.preventDefault(), n?.handleItemClick(t(c)));
139
+ }
140
+ };
141
+ }, We = (l, { focusing: n, isActive: e, id: m }) => {
142
+ const a = j("collapse"), d = u(() => [
143
+ a.b("item"),
144
+ a.is("active", t(e)),
145
+ a.is("disabled", l.disabled)
146
+ ]), o = u(() => [
147
+ a.be("item", "header"),
148
+ a.is("active", t(e)),
149
+ { focusing: t(n) && !l.disabled }
150
+ ]), c = u(() => [
151
+ a.be("item", "arrow"),
152
+ a.is("active", t(e))
153
+ ]), r = u(() => [a.be("item", "title")]), V = u(() => a.be("item", "wrap")), C = u(() => a.be("item", "content")), S = u(() => a.b(`content-${t(m)}`)), b = u(() => a.b(`head-${t(m)}`));
154
+ return {
155
+ itemTitleKls: r,
156
+ arrowKls: c,
157
+ headKls: o,
158
+ rootKls: d,
159
+ itemWrapperKls: V,
160
+ itemContentKls: C,
161
+ scopedContentId: S,
162
+ scopedHeadId: b
163
+ };
164
+ }, Ge = ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex", "aria-disabled"], qe = ["id", "aria-hidden", "aria-labelledby"], Ye = U({
165
+ name: "ElCollapseItem",
166
+ __name: "collapse-item",
167
+ props: je,
168
+ setup(l, { expose: n }) {
169
+ const e = l, {
170
+ focusing: m,
171
+ id: a,
172
+ isActive: d,
173
+ handleFocus: o,
174
+ handleHeaderClick: c,
175
+ handleEnterClick: r
176
+ } = Re(e), {
177
+ arrowKls: V,
178
+ headKls: C,
179
+ rootKls: S,
180
+ itemTitleKls: b,
181
+ itemWrapperKls: w,
182
+ itemContentKls: F,
183
+ scopedContentId: T,
184
+ scopedHeadId: K
185
+ } = We(e, { focusing: m, isActive: d, id: a });
186
+ return n({
187
+ isActive: d
188
+ }), (g, x) => (i(), v(
189
+ "div",
190
+ {
191
+ class: h(t(S))
192
+ },
193
+ [
194
+ I("div", {
195
+ id: t(K),
196
+ class: h(t(C)),
197
+ "aria-expanded": t(d),
198
+ "aria-controls": t(T),
199
+ "aria-describedby": t(T),
200
+ tabindex: g.disabled ? void 0 : 0,
201
+ "aria-disabled": g.disabled,
202
+ role: "button",
203
+ onClick: x[0] || (x[0] = (...$) => t(c) && t(c)(...$)),
204
+ onKeydown: x[1] || (x[1] = me(P(
205
+ (...$) => t(r) && t(r)(...$),
206
+ ["stop"]
207
+ ), ["space", "enter"])),
208
+ onFocus: x[2] || (x[2] = (...$) => t(o) && t(o)(...$)),
209
+ onBlur: x[3] || (x[3] = ($) => m.value = !1)
210
+ }, [
211
+ I(
212
+ "span",
213
+ {
214
+ class: h(t(b))
215
+ },
216
+ [
217
+ A(g.$slots, "title", { isActive: t(d) }, () => [
218
+ pe(
219
+ L(g.title),
220
+ 1
221
+ )
222
+ ])
223
+ ],
224
+ 2
225
+ ),
226
+ A(g.$slots, "icon", { isActive: t(d) }, () => [
227
+ y(t(B), {
228
+ class: h(t(V))
229
+ }, {
230
+ default: f(() => [
231
+ (i(), E(fe(g.icon)))
232
+ ]),
233
+ _: 1
234
+ }, 8, ["class"])
235
+ ])
236
+ ], 42, Ge),
237
+ y(t(Pe), null, {
238
+ default: f(() => [
239
+ ve(I("div", {
240
+ id: t(T),
241
+ role: "region",
242
+ class: h(t(w)),
243
+ "aria-hidden": !t(d),
244
+ "aria-labelledby": t(K)
245
+ }, [
246
+ I(
247
+ "div",
248
+ {
249
+ class: h(t(F))
250
+ },
251
+ [
252
+ A(g.$slots, "default")
253
+ ],
254
+ 2
255
+ )
256
+ ], 10, qe), [
257
+ [be, t(d)]
258
+ ])
259
+ ]),
260
+ _: 3
261
+ })
262
+ ],
263
+ 2
264
+ ));
265
+ }
266
+ });
267
+ var oe = /* @__PURE__ */ le(Ye, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);
268
+ const Je = $e(Ue, {
269
+ CollapseItem: oe
270
+ }), Qe = _e(oe), Xe = {}, Ze = {
271
+ t: "1641143458555",
272
+ class: "icon",
273
+ viewBox: "0 0 1024 1024",
274
+ version: "1.1",
275
+ xmlns: "http://www.w3.org/2000/svg",
276
+ "p-id": "4027",
277
+ width: "64",
278
+ height: "64"
279
+ };
280
+ function et(l, n) {
281
+ return i(), v("svg", Ze, [...n[0] || (n[0] = [
282
+ I("path", {
283
+ d: "M853.333333 128H170.666667c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h682.666666c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM213.333333 810.666667V213.333333h256v597.333334H213.333333z m597.333334 0h-256V213.333333h256v597.333334z",
284
+ "p-id": "4028"
285
+ }, null, -1)
286
+ ])]);
287
+ }
288
+ const tt = /* @__PURE__ */ se(Xe, [["render", et]]), lt = {}, st = {
289
+ t: "1641143491910",
290
+ class: "icon",
291
+ viewBox: "0 0 1024 1024",
292
+ version: "1.1",
293
+ xmlns: "http://www.w3.org/2000/svg",
294
+ "p-id": "4028",
295
+ width: "64",
296
+ height: "64"
297
+ };
298
+ function at(l, n) {
299
+ return i(), v("svg", st, [...n[0] || (n[0] = [
300
+ I("path", {
301
+ d: "M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667z m-42.666667 682.666667H170.666667V213.333333h682.666666v597.333334z",
302
+ "p-id": "4029"
303
+ }, null, -1),
304
+ I("path", {
305
+ d: "M170.666667 469.333333h682.666666v85.333334H170.666667v-85.333334z",
306
+ "p-id": "4030"
307
+ }, null, -1)
308
+ ])]);
309
+ }
310
+ const ot = /* @__PURE__ */ se(lt, [["render", at]]), nt = {
311
+ key: 0,
312
+ class: "g-field-show-placeholder"
313
+ }, it = ["innerHTML"], dt = ["title"], ct = ["title"], ut = {
314
+ key: 3,
315
+ class: "g-field-collapse-panel-toolbox"
316
+ }, rt = {
317
+ key: 2,
318
+ class: "g-field-collapse-panel-toolbox-split"
319
+ }, mt = {
320
+ key: 1,
321
+ class: "g-field-tabs --column"
322
+ }, pt = ["onClick"], ft = {
323
+ key: 1,
324
+ class: "g-field-collapse-panel-empty"
325
+ }, Et = /* @__PURE__ */ U({
326
+ __name: "index",
327
+ props: {
328
+ mode: {
329
+ type: String,
330
+ default: ""
331
+ },
332
+ label: {
333
+ type: String,
334
+ required: !0
335
+ },
336
+ tooltip: {
337
+ type: String
338
+ },
339
+ toggle: {
340
+ type: Boolean,
341
+ default: !1
342
+ },
343
+ modelValue: {
344
+ type: Boolean,
345
+ default: !0
346
+ },
347
+ defaultLayout: {
348
+ type: String,
349
+ default: D.horizontal
350
+ },
351
+ features: {
352
+ type: Array,
353
+ default: () => []
354
+ },
355
+ list: {
356
+ type: Array,
357
+ default: () => []
358
+ },
359
+ min: {
360
+ type: Number,
361
+ default: 0
362
+ },
363
+ max: {
364
+ type: Number,
365
+ default: 1e3
366
+ },
367
+ tab: {
368
+ type: [String, Function]
369
+ },
370
+ addItem: {
371
+ type: Function,
372
+ default: () => {
373
+ }
374
+ },
375
+ autoOpen: {
376
+ type: Boolean,
377
+ default: !1
378
+ },
379
+ dIndex: {
380
+ type: Number,
381
+ default: 0
382
+ }
383
+ },
384
+ emits: [Y, "delete"],
385
+ setup(l, { emit: n }) {
386
+ const e = l, m = n, a = H(e.autoOpen && e.modelValue ? ["1"] : []), d = H(0), o = H(e.defaultLayout === D.horizontal), c = {}, r = u(() => a.value.length > 0 && e.features.length > 0), V = u(() => e.features.includes(D.horizontal)), C = u(() => e.features.includes(D.vertical)), S = u(() => e.features.includes(D.copy)), b = u(() => e.features.includes(D.add)), w = u(() => e.features.includes(D.remove)), F = u(() => (V.value || C.value) && (S.value || b.value || w.value)), T = u(() => {
387
+ const s = !e.list || e.list.length < e.min || e.list.length >= e.max;
388
+ return {
389
+ disabled: s,
390
+ msg: s ? "不可复制" : ""
391
+ };
392
+ }), K = u(() => {
393
+ const s = !e.list || e.list.length >= e.max;
394
+ return {
395
+ disabled: s,
396
+ msg: s ? "已至最大项数" : ""
397
+ };
398
+ }), g = u(() => {
399
+ const s = !e.list || e.list.length <= e.min;
400
+ return {
401
+ disabled: s,
402
+ msg: s ? "已至最小项数" : ""
403
+ };
404
+ });
405
+ function x(s) {
406
+ e.toggle && !e.modelValue || (a.value = Array.isArray(s) ? s : [s]);
407
+ }
408
+ function $(s) {
409
+ m(Y, !!s);
410
+ }
411
+ function ne() {
412
+ if (!T.value.disabled) {
413
+ const s = Math.min(d.value, e.list.length - 1);
414
+ e.list.push(Ne(e.list[s]));
415
+ }
416
+ }
417
+ function ie() {
418
+ if (typeof e.dIndex == "number") {
419
+ e.list.splice(e.dIndex, 1);
420
+ return;
421
+ }
422
+ if (!g.value.disabled) {
423
+ const s = Math.min(d.value, e.list.length - 1);
424
+ e.list.splice(s, 1), d.value = 0;
425
+ }
426
+ }
427
+ function de() {
428
+ if (!K.value.disabled && typeof e.addItem == "function") {
429
+ const s = e.addItem() || {};
430
+ e.list.push(s);
431
+ }
432
+ }
433
+ function R(s) {
434
+ const { tab: p, label: k } = e;
435
+ return typeof p == "function" ? p(e.list[s]) : (p || k) + (s + 1);
436
+ }
437
+ function ce(s) {
438
+ d.value = s;
439
+ }
440
+ return X(
441
+ () => e.modelValue,
442
+ (s) => {
443
+ s || (a.value = []);
444
+ }
445
+ ), (s, p) => (i(), E(t(Je), {
446
+ modelValue: a.value,
447
+ "onUpdate:modelValue": p[4] || (p[4] = (k) => a.value = k),
448
+ class: h(["g-field-collapse", { "--disabled": l.toggle && !l.modelValue }]),
449
+ onChange: x
450
+ }, {
451
+ default: f(() => [
452
+ y(t(Qe), {
453
+ class: "g-field-collapse-panel",
454
+ name: "1"
455
+ }, {
456
+ title: f(() => [
457
+ l.toggle ? (i(), v("i", nt, [
458
+ y(t(He), {
459
+ "model-value": l.modelValue,
460
+ size: "small",
461
+ onClick: p[0] || (p[0] = P(() => {
462
+ }, ["stop"])),
463
+ onChange: $
464
+ }, null, 8, ["model-value"])
465
+ ])) : N("", !0),
466
+ l.tooltip ? (i(), E(t(z), {
467
+ key: 1,
468
+ placement: "top"
469
+ }, {
470
+ content: f(() => [
471
+ I("span", { innerHTML: l.tooltip }, null, 8, it)
472
+ ]),
473
+ default: f(() => [
474
+ I("label", {
475
+ class: "g-field-title-with-description",
476
+ title: l.label
477
+ }, L(l.label), 9, dt)
478
+ ]),
479
+ _: 1
480
+ })) : (i(), v("label", {
481
+ key: 2,
482
+ class: "g-field-title",
483
+ title: l.label
484
+ }, L(l.label), 9, ct)),
485
+ r.value ? (i(), v("div", ut, [
486
+ V.value ? (i(), E(t(B), {
487
+ key: 0,
488
+ class: h(["toolbox-icon", { "--selected": o.value }]),
489
+ onClick: p[1] || (p[1] = P((k) => o.value = !0, ["stop"]))
490
+ }, {
491
+ default: f(() => [
492
+ y(ot)
493
+ ]),
494
+ _: 1
495
+ }, 8, ["class"])) : N("", !0),
496
+ C.value ? (i(), E(t(B), {
497
+ key: 1,
498
+ class: h(["toolbox-icon", { "--selected": !o.value }]),
499
+ onClick: p[2] || (p[2] = P((k) => o.value = !1, ["stop"]))
500
+ }, {
501
+ default: f(() => [
502
+ y(tt)
503
+ ]),
504
+ _: 1
505
+ }, 8, ["class"])) : N("", !0),
506
+ F.value ? (i(), v("span", rt)) : N("", !0),
507
+ S.value ? (i(), E(t(z), {
508
+ key: 3,
509
+ placement: "top",
510
+ disabled: !T.value.disabled,
511
+ content: T.value.msg
512
+ }, {
513
+ default: f(() => [
514
+ y(t(B), {
515
+ class: h(["toolbox-icon", { "--disabled": T.value.disabled }]),
516
+ onClick: P(ne, ["stop"])
517
+ }, {
518
+ default: f(() => [
519
+ y(Se)
520
+ ]),
521
+ _: 1
522
+ }, 8, ["class"])
523
+ ]),
524
+ _: 1
525
+ }, 8, ["disabled", "content"])) : N("", !0),
526
+ b.value ? (i(), E(t(z), {
527
+ key: 4,
528
+ placement: "top",
529
+ disabled: !K.value.disabled,
530
+ content: K.value.msg
531
+ }, {
532
+ default: f(() => [
533
+ y(t(B), {
534
+ class: h(["toolbox-icon --icon-add", { "--disabled": K.value.disabled }]),
535
+ onClick: P(de, ["stop"])
536
+ }, {
537
+ default: f(() => [
538
+ y(De)
539
+ ]),
540
+ _: 1
541
+ }, 8, ["class"])
542
+ ]),
543
+ _: 1
544
+ }, 8, ["disabled", "content"])) : N("", !0),
545
+ w.value ? (i(), E(t(z), {
546
+ key: 5,
547
+ placement: "top",
548
+ disabled: !g.value.disabled,
549
+ content: g.value.msg
550
+ }, {
551
+ default: f(() => [
552
+ y(t(B), {
553
+ class: h(["toolbox-icon", { "--disabled": g.value.disabled }]),
554
+ onClick: P(ie, ["stop"])
555
+ }, {
556
+ default: f(() => [
557
+ y(Ke)
558
+ ]),
559
+ _: 1
560
+ }, 8, ["class"])
561
+ ]),
562
+ _: 1
563
+ }, 8, ["disabled", "content"])) : N("", !0)
564
+ ])) : N("", !0)
565
+ ]),
566
+ default: f(() => [
567
+ l.mode === "layout" ? (i(), v(M, { key: 0 }, [
568
+ l.list && l.list.length > 0 ? (i(), v(M, { key: 0 }, [
569
+ o.value ? (i(), E(t(Ae), {
570
+ key: 0,
571
+ modelValue: d.value,
572
+ "onUpdate:modelValue": p[3] || (p[3] = (k) => d.value = k),
573
+ type: "card",
574
+ class: "g-field-tabs",
575
+ style: he({
576
+ "--datav-gui-tabs-card-num": l.max
577
+ })
578
+ }, {
579
+ default: f(() => [
580
+ (i(!0), v(M, null, W(l.list, (k, _) => (i(), E(t(Be), {
581
+ key: _,
582
+ name: _,
583
+ label: R(_)
584
+ }, {
585
+ default: f(() => [
586
+ A(s.$slots, "default", { item: k })
587
+ ]),
588
+ _: 2
589
+ }, 1032, ["name", "label"]))), 128))
590
+ ]),
591
+ _: 3
592
+ }, 8, ["modelValue", "style"])) : (i(), v("div", mt, [
593
+ (i(!0), v(M, null, W(l.list, (k, _) => (i(), v("div", {
594
+ key: _,
595
+ class: "g-field-tabs-column-item"
596
+ }, [
597
+ I("span", {
598
+ class: h(["g-field-tabs-column-item-head", { "--selected": _ === d.value }]),
599
+ onClick: (vt) => ce(_)
600
+ }, L(R(_)), 11, pt),
601
+ A(s.$slots, "default", { item: k })
602
+ ]))), 128))
603
+ ]))
604
+ ], 64)) : (i(), v("span", ft, " 列表为空 "))
605
+ ], 64)) : A(s.$slots, "default", {
606
+ key: 1,
607
+ item: c
608
+ })
609
+ ]),
610
+ _: 3
611
+ })
612
+ ]),
613
+ _: 3
614
+ }, 8, ["modelValue", "class"]));
615
+ }
616
+ });
617
+ export {
618
+ Et as default
619
+ };
@@ -1,10 +1,9 @@
1
- import { defineComponent as d, createElementBlock as n, openBlock as i, normalizeClass as r, createElementVNode as f, createCommentVNode as c, createVNode as a, unref as m, toDisplayString as g } from "vue";
2
- import { ElSlider as x, ElInputNumber as y } from "element-plus";
3
- import { U as o } from "./index-CZJriuFt.js";
4
- const p = { class: "g-slider-main" }, b = {
1
+ import { defineComponent as d, createElementBlock as n, openBlock as a, normalizeClass as r, createElementVNode as c, createCommentVNode as f, createVNode as i, unref as m, toDisplayString as g } from "vue";
2
+ import { U as s, q as x, b as y } from "./index-B8QqTLfg.js";
3
+ const b = { class: "g-slider-main" }, p = {
5
4
  key: 0,
6
5
  class: "g-input__caption"
7
- }, V = /* @__PURE__ */ d({
6
+ }, v = /* @__PURE__ */ d({
8
7
  __name: "index",
9
8
  props: {
10
9
  modelValue: {
@@ -38,21 +37,21 @@ const p = { class: "g-slider-main" }, b = {
38
37
  suffix: String,
39
38
  disabled: Boolean
40
39
  },
41
- emits: [o],
42
- setup(e, { emit: s }) {
43
- const u = s;
40
+ emits: [s],
41
+ setup(e, { emit: o }) {
42
+ const u = o;
44
43
  function t(l) {
45
- u(o, l);
44
+ u(s, l);
46
45
  }
47
- return (l, N) => (i(), n("div", {
46
+ return (l, N) => (a(), n("div", {
48
47
  class: r(["datav-gui g-slider", [
49
48
  {
50
49
  "--inline --single": !!e.inline
51
50
  }
52
51
  ]])
53
52
  }, [
54
- f("div", p, [
55
- a(m(x), {
53
+ c("div", b, [
54
+ i(m(x), {
56
55
  "model-value": e.modelValue,
57
56
  min: e.min,
58
57
  max: e.max,
@@ -60,7 +59,7 @@ const p = { class: "g-slider-main" }, b = {
60
59
  "show-tooltip": !1,
61
60
  onInput: t
62
61
  }, null, 8, ["model-value", "min", "max", "step"]),
63
- a(m(y), {
62
+ i(m(y), {
64
63
  "model-value": e.modelValue,
65
64
  min: e.min,
66
65
  max: e.max,
@@ -70,10 +69,10 @@ const p = { class: "g-slider-main" }, b = {
70
69
  onChange: t
71
70
  }, null, 8, ["model-value", "min", "max", "step", "size"])
72
71
  ]),
73
- e.label ? (i(), n("span", b, g(e.label), 1)) : c("", !0)
72
+ e.label ? (a(), n("span", p, g(e.label), 1)) : f("", !0)
74
73
  ], 2));
75
74
  }
76
75
  });
77
76
  export {
78
- V as default
77
+ v as default
79
78
  };