ss-component-new 1.3.735 → 1.3.737

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 (130) hide show
  1. package/dist/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/MTLLoader-CkNZudBE.js +657 -0
  3. package/dist/URDFLoader-DIzEVzUD.js +2299 -0
  4. package/dist/__vite-browser-external-DYxpcVy9.js +4 -0
  5. package/dist/animationData-DvL_4GZ5.js +83 -0
  6. package/dist/array-BN2tTnqd.js +1045 -0
  7. package/dist/clone-Dp_gc9ll.js +8 -0
  8. package/dist/config.js +1 -1
  9. package/dist/eleIcon-qStmsM1q.js +29 -0
  10. package/dist/fileUtil-UOt_otFo.js +20 -0
  11. package/dist/iconfont-BwY2qVoK.js +1030 -0
  12. package/dist/icons/svg/functionList.svg +1 -0
  13. package/dist/icons/svg/method.svg +1 -0
  14. package/dist/index-11kpzK0A.js +209 -0
  15. package/dist/index-5S_ATziA.js +25341 -0
  16. package/dist/index-B0H3C7WG.js +103 -0
  17. package/dist/index-B6ePvQgB.js +83 -0
  18. package/dist/index-BHtNKL1L.js +27 -0
  19. package/dist/index-BQrVYtnl.js +201 -0
  20. package/dist/index-BbyrFzEO.js +93 -0
  21. package/dist/index-Bej2dPck.js +873 -0
  22. package/dist/index-BooO2Bml.js +78 -0
  23. package/dist/index-BqZj6gM7.js +470 -0
  24. package/dist/index-Bw3sTXPI.js +8993 -0
  25. package/dist/index-BzUgGzuc.js +48 -0
  26. package/dist/index-C9nks7xM.js +30 -0
  27. package/dist/index-CGi0g-VN.js +627 -0
  28. package/dist/index-CV_jQDcg.js +9 -0
  29. package/dist/index-CWOXvFfD.js +44 -0
  30. package/dist/index-CWpFqtvA.js +1000 -0
  31. package/dist/index-CYwlat81.js +20578 -0
  32. package/dist/index-Cflxz2Xv.js +572 -0
  33. package/dist/index-Ch8te5LO.js +411 -0
  34. package/dist/{index-DyhB-cd1.js → index-ChNfRlIP.js} +18 -253
  35. package/dist/index-Ckqlxqaw.js +119 -0
  36. package/dist/index-CpGn7sfE.js +93 -0
  37. package/dist/index-CydXQbtX.js +622 -0
  38. package/dist/index-DG4hoOWt.js +665 -0
  39. package/dist/index-DUbk5m5P.js +99 -0
  40. package/dist/index-DbHIH067.js +107 -0
  41. package/dist/index-DhUE8pTF.js +61 -0
  42. package/dist/index-Dhjj5seQ.js +98 -0
  43. package/dist/index-Ds6m_4JJ.js +28500 -0
  44. package/dist/index-DyCq_odP.js +331 -0
  45. package/dist/index-Ru-cNTPj.js +84 -0
  46. package/dist/index-UB_oCdlo.js +62 -0
  47. package/dist/index-XcH1poa0.js +63306 -0
  48. package/dist/index-YjBTGOkO.js +61 -0
  49. package/dist/index-jbOjjV0j.js +447 -0
  50. package/dist/index-rlStojTL.js +52 -0
  51. package/dist/index-uF-ibwG0.js +9 -0
  52. package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js +137927 -0
  53. package/dist/isString-0ZglyOfu.js +8 -0
  54. package/dist/localIcon-D5UoFBU5.js +76 -0
  55. package/dist/main-BCc8TzAj.js +502 -0
  56. package/dist/menuIndex-BB0uVPRX.js +159 -0
  57. package/dist/obj/model.mtl +42 -0
  58. package/dist/obj/model.obj +26110 -0
  59. package/dist/pyodide-Dc1Mu-0d.js +489 -0
  60. package/dist/request-1RPa2bBn.js +9048 -0
  61. package/dist/ss-component.css +8 -2
  62. package/dist/ss-component.js +64 -28
  63. package/dist/ss-component2.js +75 -15
  64. package/dist/ss-component3.js +1 -1
  65. package/dist/threeModel-BXXLFYOy.js +1109 -0
  66. package/dist/threePreview-DUfFZQ5q.js +3091 -0
  67. package/dist/threeSceneView-Dez2tha0.js +1290 -0
  68. package/dist/threeSceneViewForCPMPIP-DDk128w_.js +539 -0
  69. package/dist/threeTrackPathView-DmE9QE_0.js +620 -0
  70. package/dist/threeViewerHost-7g8xu3oh.js +233 -0
  71. package/dist/urdfTree-VRms7Vm3.js +254 -0
  72. package/dist/workpieceTreePanel-DCSz_IDY.js +559 -0
  73. package/package.json +8 -11
  74. package/public/config.js +1 -1
  75. package/public/icons/svg/functionList.svg +1 -0
  76. package/public/icons/svg/method.svg +1 -0
  77. package/public/obj/model.mtl +42 -0
  78. package/public/obj/model.obj +26110 -0
  79. package/dist/index-8KTFGqOM.js +0 -25
  80. package/dist/index-A8OE-eSF.js +0 -29
  81. package/dist/index-B2xkIV6C.js +0 -25
  82. package/dist/index-B3v82KuY.js +0 -1044
  83. package/dist/index-BggN-zvK.js +0 -634
  84. package/dist/index-C0HH0uAE.js +0 -188
  85. package/dist/index-C0U2Epeo.js +0 -25
  86. package/dist/index-C8GSZPvd.js +0 -4
  87. package/dist/index-CA0CoKiz.js +0 -25
  88. package/dist/index-CHjBtkir.js +0 -4
  89. package/dist/index-CJP9hdx4.js +0 -53
  90. package/dist/index-COeMUCuq.js +0 -213
  91. package/dist/index-COxVr3MC.js +0 -4
  92. package/dist/index-CXoQiaXz.js +0 -27
  93. package/dist/index-CdanNGTM.js +0 -4
  94. package/dist/index-CfwzR4gE.js +0 -469
  95. package/dist/index-CoEteqj_.js +0 -4
  96. package/dist/index-Cqt27z96.js +0 -23
  97. package/dist/index-Cqyl2URI.js +0 -32
  98. package/dist/index-CsdL6xGl.js +0 -181
  99. package/dist/index-CuIbbhNo.js +0 -25
  100. package/dist/index-D1WMhpsE.js +0 -26
  101. package/dist/index-D3G5ymZc.js +0 -4
  102. package/dist/index-D5oMkTBW.js +0 -35
  103. package/dist/index-DGogREB4.js +0 -26
  104. package/dist/index-DRqX_bCT.js +0 -4
  105. package/dist/index-DbUt70zC.js +0 -50
  106. package/dist/index-DnLZtsZU.js +0 -4
  107. package/dist/index-IoMa0kLh.js +0 -27
  108. package/dist/index-JkTP1vyC.js +0 -4
  109. package/dist/index-boICNvPL.js +0 -4
  110. package/dist/index-qO33lx52.js +0 -50664
  111. package/dist/index-uriwf_fo.js +0 -4
  112. package/dist/index.vue_vue_type_script_setup_true_lang-B-JCE78v.js +0 -21
  113. package/dist/index.vue_vue_type_script_setup_true_lang-BSZB17y-.js +0 -42
  114. package/dist/index.vue_vue_type_script_setup_true_lang-Brir5Bym.js +0 -41
  115. package/dist/index.vue_vue_type_script_setup_true_lang-BrnE_n0l.js +0 -25
  116. package/dist/index.vue_vue_type_script_setup_true_lang-C7BgxSz4.js +0 -28
  117. package/dist/index.vue_vue_type_script_setup_true_lang-CARZt7yC.js +0 -25
  118. package/dist/index.vue_vue_type_script_setup_true_lang-CVALRKBG.js +0 -48
  119. package/dist/index.vue_vue_type_script_setup_true_lang-CsThRoDZ.js +0 -28
  120. package/dist/index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js +0 -39
  121. package/dist/index.vue_vue_type_script_setup_true_lang-DAb-qhJ1.js +0 -40
  122. package/dist/index.vue_vue_type_script_setup_true_lang-DimtrEJj.js +0 -26
  123. package/dist/menu-ClNHLze7.js +0 -5208
  124. package/dist/platform-CPTootse.js +0 -11429
  125. /package/dist/icons/svg/{update.svg → Update.svg} +0 -0
  126. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  127. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  128. /package/public/icons/svg/{update.svg → Update.svg} +0 -0
  129. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  130. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -1,634 +0,0 @@
1
- import { defineComponent as $, createBlock as _, openBlock as i, resolveDynamicComponent as w, normalizeProps as E, guardReactiveProps as b, withCtx as l, renderSlot as r, resolveComponent as v, computed as k, mergeProps as h, createSlots as g, ref as C, watch as A, createElementBlock as x, createCommentVNode as T, createVNode as N, Fragment as P, renderList as R } from "vue";
2
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-BrnE_n0l.js";
3
- import { _ as L } from "./index.vue_vue_type_script_setup_true_lang-B-JCE78v.js";
4
- import { _ as S } from "./index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js";
5
- import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-CVALRKBG.js";
6
- import { _ as I } from "./index.vue_vue_type_script_setup_true_lang-DimtrEJj.js";
7
- import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-CARZt7yC.js";
8
- import { g as G } from "./index-qO33lx52.js";
9
- const H = /* @__PURE__ */ $({
10
- __name: "index",
11
- props: {
12
- componentName: {
13
- type: String,
14
- default: ""
15
- },
16
- extra: {
17
- type: Object,
18
- default: () => ({})
19
- }
20
- },
21
- setup(s) {
22
- const d = s;
23
- return (t, n) => (i(), _(w(d.componentName), E(b(d.extra)), {
24
- default: l(() => [
25
- r(t.$slots, "default")
26
- ]),
27
- _: 3
28
- }, 16));
29
- }
30
- }), F = /* @__PURE__ */ $({
31
- __name: "index",
32
- props: {
33
- extra: {
34
- type: Object,
35
- default: () => ({})
36
- }
37
- },
38
- setup(s) {
39
- const d = s;
40
- return (t, n) => {
41
- const o = v("n-menu");
42
- return i(), _(o, E(b(d.extra)), {
43
- default: l(() => [
44
- r(t.$slots, "default")
45
- ]),
46
- _: 3
47
- }, 16);
48
- };
49
- }
50
- }), K = /* @__PURE__ */ $({
51
- __name: "index",
52
- props: {
53
- extra: {
54
- type: Object,
55
- default: () => ({})
56
- },
57
- modelValue: {
58
- default: void 0
59
- }
60
- },
61
- emits: ["update:modelValue", "change"],
62
- setup(s, { emit: d }) {
63
- const t = s, n = d, o = k({
64
- get: () => t.modelValue,
65
- set: (e) => {
66
- n("update:modelValue", e), n("change", e);
67
- }
68
- });
69
- return (e, a) => {
70
- const c = v("n-cascader");
71
- return i(), _(c, h(t.extra, {
72
- value: o.value,
73
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u)
74
- }), g({ _: 2 }, [
75
- e.$slots.default ? {
76
- name: "default",
77
- fn: l(() => [
78
- r(e.$slots, "default")
79
- ]),
80
- key: "0"
81
- } : void 0,
82
- e.$slots.action ? {
83
- name: "action",
84
- fn: l(() => [
85
- r(e.$slots, "action")
86
- ]),
87
- key: "1"
88
- } : void 0,
89
- e.$slots.arrow ? {
90
- name: "arrow",
91
- fn: l(() => [
92
- r(e.$slots, "arrow")
93
- ]),
94
- key: "2"
95
- } : void 0,
96
- e.$slots.empty ? {
97
- name: "empty",
98
- fn: l(() => [
99
- r(e.$slots, "empty")
100
- ]),
101
- key: "3"
102
- } : void 0,
103
- e.$slots["not-found"] ? {
104
- name: "not-found",
105
- fn: l(() => [
106
- r(e.$slots, "not-found")
107
- ]),
108
- key: "4"
109
- } : void 0
110
- ]), 1040, ["value"]);
111
- };
112
- }
113
- }), M = /* @__PURE__ */ $({
114
- __name: "index",
115
- props: {
116
- extra: {
117
- type: Object,
118
- default: () => ({})
119
- },
120
- modelValue: {
121
- default: void 0
122
- }
123
- },
124
- emits: ["update:modelValue", "change"],
125
- setup(s, { emit: d }) {
126
- const t = s, n = d, o = k({
127
- get: () => t.modelValue,
128
- set: (e) => {
129
- n("update:modelValue", e), n("change", e);
130
- }
131
- });
132
- return (e, a) => {
133
- const c = v("n-checkbox");
134
- return i(), _(c, h(t.extra, {
135
- checked: o.value,
136
- "onUpdate:checked": a[0] || (a[0] = (u) => o.value = u)
137
- }), g({ _: 2 }, [
138
- e.$slots.default ? {
139
- name: "default",
140
- fn: l(() => [
141
- r(e.$slots, "default")
142
- ]),
143
- key: "0"
144
- } : void 0
145
- ]), 1040, ["checked"]);
146
- };
147
- }
148
- }), W = /* @__PURE__ */ $({
149
- __name: "index",
150
- props: {
151
- extra: {
152
- type: Object,
153
- default: () => ({})
154
- },
155
- modelValue: {
156
- default: void 0
157
- }
158
- },
159
- emits: ["update:modelValue", "change"],
160
- setup(s, { emit: d }) {
161
- const t = s, n = d, o = k({
162
- get: () => t.modelValue,
163
- set: (e) => {
164
- n("update:modelValue", e), n("change", e);
165
- }
166
- });
167
- return (e, a) => {
168
- const c = v("n-checkbox-group");
169
- return i(), _(c, h(t.extra, {
170
- value: o.value,
171
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u)
172
- }), {
173
- default: l(() => [
174
- r(e.$slots, "default")
175
- ]),
176
- _: 3
177
- }, 16, ["value"]);
178
- };
179
- }
180
- }), z = /* @__PURE__ */ $({
181
- __name: "index",
182
- props: {
183
- extra: {
184
- type: Object,
185
- default: () => ({})
186
- }
187
- },
188
- setup(s) {
189
- const d = s;
190
- return (t, n) => {
191
- const o = v("n-dropdown");
192
- return i(), _(o, E(b(d.extra)), g({ _: 2 }, [
193
- t.$slots.default ? {
194
- name: "default",
195
- fn: l(() => [
196
- r(t.$slots, "default")
197
- ]),
198
- key: "0"
199
- } : void 0
200
- ]), 1040);
201
- };
202
- }
203
- }), Y = /* @__PURE__ */ $({
204
- __name: "index",
205
- props: {
206
- extra: {
207
- type: Object,
208
- default: () => ({})
209
- },
210
- modelValue: {
211
- default: void 0
212
- }
213
- },
214
- emits: ["update:modelValue", "change"],
215
- setup(s, { emit: d }) {
216
- const t = s, n = d, o = k({
217
- get: () => t.modelValue,
218
- set: (e) => {
219
- n("update:modelValue", e), n("change", e);
220
- }
221
- });
222
- return (e, a) => {
223
- const c = v("n-radio");
224
- return i(), _(c, h(t.extra, {
225
- checked: o.value,
226
- "onUpdate:checked": a[0] || (a[0] = (u) => o.value = u)
227
- }), g({ _: 2 }, [
228
- e.$slots.default ? {
229
- name: "default",
230
- fn: l(() => [
231
- r(e.$slots, "default")
232
- ]),
233
- key: "0"
234
- } : void 0
235
- ]), 1040, ["checked"]);
236
- };
237
- }
238
- }), q = /* @__PURE__ */ $({
239
- __name: "index",
240
- props: {
241
- extra: {
242
- type: Object,
243
- default: () => ({})
244
- },
245
- modelValue: {
246
- default: void 0
247
- }
248
- },
249
- emits: ["update:modelValue", "change"],
250
- setup(s, { emit: d }) {
251
- const t = s, n = d, o = k({
252
- get: () => t.modelValue,
253
- set: (e) => {
254
- n("update:modelValue", e), n("change", e);
255
- }
256
- });
257
- return (e, a) => {
258
- const c = v("n-radio-group");
259
- return i(), _(c, h(t.extra, {
260
- value: o.value,
261
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u)
262
- }), {
263
- default: l(() => [
264
- r(e.$slots, "default")
265
- ]),
266
- _: 3
267
- }, 16, ["value"]);
268
- };
269
- }
270
- }), J = /* @__PURE__ */ $({
271
- __name: "index",
272
- props: {
273
- extra: {
274
- type: Object,
275
- default: () => ({})
276
- },
277
- modelValue: {
278
- default: void 0
279
- }
280
- },
281
- emits: ["update:modelValue", "change"],
282
- setup(s, { emit: d }) {
283
- const t = s, n = d, o = k({
284
- get: () => t.modelValue,
285
- set: (e) => {
286
- n("update:modelValue", e), n("change", e);
287
- }
288
- });
289
- return (e, a) => {
290
- const c = v("n-select");
291
- return i(), _(c, h(t.extra, {
292
- value: o.value,
293
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u)
294
- }), g({ _: 2 }, [
295
- e.$slots.default ? {
296
- name: "default",
297
- fn: l(() => [
298
- r(e.$slots, "default")
299
- ]),
300
- key: "0"
301
- } : void 0,
302
- e.$slots.action ? {
303
- name: "action",
304
- fn: l(() => [
305
- r(e.$slots, "action")
306
- ]),
307
- key: "1"
308
- } : void 0,
309
- e.$slots.arrow ? {
310
- name: "arrow",
311
- fn: l(() => [
312
- r(e.$slots, "arrow")
313
- ]),
314
- key: "2"
315
- } : void 0,
316
- e.$slots.empty ? {
317
- name: "empty",
318
- fn: l(() => [
319
- r(e.$slots, "empty")
320
- ]),
321
- key: "3"
322
- } : void 0,
323
- e.$slots.header ? {
324
- name: "header",
325
- fn: l(() => [
326
- r(e.$slots, "header")
327
- ]),
328
- key: "4"
329
- } : void 0
330
- ]), 1040, ["value"]);
331
- };
332
- }
333
- }), Q = /* @__PURE__ */ $({
334
- __name: "index",
335
- props: {
336
- extra: {
337
- type: Object,
338
- default: () => ({})
339
- },
340
- modelValue: {
341
- default: void 0
342
- }
343
- },
344
- emits: ["update:modelValue", "change"],
345
- setup(s, { emit: d }) {
346
- const t = s, n = d, o = k({
347
- get: () => t.modelValue,
348
- set: (e) => {
349
- n("update:modelValue", e), n("change", e);
350
- }
351
- });
352
- return (e, a) => {
353
- const c = v("n-switch");
354
- return i(), _(c, h(t.extra, {
355
- value: o.value,
356
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u)
357
- }), g({ _: 2 }, [
358
- e.$slots.checked ? {
359
- name: "checked",
360
- fn: l(() => [
361
- r(e.$slots, "checked")
362
- ]),
363
- key: "0"
364
- } : void 0,
365
- e.$slots["checked-icon"] ? {
366
- name: "checked-icon",
367
- fn: l(() => [
368
- r(e.$slots, "checked-icon")
369
- ]),
370
- key: "1"
371
- } : void 0,
372
- e.$slots.icon ? {
373
- name: "icon",
374
- fn: l(() => [
375
- r(e.$slots, "icon")
376
- ]),
377
- key: "2"
378
- } : void 0,
379
- e.$slots.unchecked ? {
380
- name: "unchecked",
381
- fn: l(() => [
382
- r(e.$slots, "unchecked")
383
- ]),
384
- key: "3"
385
- } : void 0,
386
- e.$slots["unchecked-icon"] ? {
387
- name: "unchecked-icon",
388
- fn: l(() => [
389
- r(e.$slots, "unchecked-icon")
390
- ]),
391
- key: "4"
392
- } : void 0
393
- ]), 1040, ["value"]);
394
- };
395
- }
396
- }), Z = /* @__PURE__ */ $({
397
- __name: "index",
398
- props: {
399
- extra: {
400
- type: Object,
401
- default: () => ({})
402
- },
403
- modelValue: {
404
- default: void 0
405
- }
406
- },
407
- emits: ["update:modelValue", "change"],
408
- setup(s, { emit: d }) {
409
- const t = s, n = d, o = k({
410
- get: () => t.modelValue,
411
- set: (e) => {
412
- n("update:modelValue", e), n("change", e);
413
- }
414
- });
415
- return (e, a) => {
416
- const c = v("n-input");
417
- return i(), _(c, h(t.extra, {
418
- value: o.value,
419
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u),
420
- type: "textarea"
421
- }), g({ _: 2 }, [
422
- e.$slots.prefix ? {
423
- name: "prefix",
424
- fn: l(() => [
425
- r(e.$slots, "prefix")
426
- ]),
427
- key: "0"
428
- } : void 0,
429
- e.$slots.suffix ? {
430
- name: "suffix",
431
- fn: l(() => [
432
- r(e.$slots, "suffix")
433
- ]),
434
- key: "1"
435
- } : void 0
436
- ]), 1040, ["value"]);
437
- };
438
- }
439
- }), ee = /* @__PURE__ */ $({
440
- __name: "index",
441
- props: {
442
- extra: {
443
- type: Object,
444
- default: () => ({})
445
- },
446
- modelValue: {
447
- default: void 0
448
- }
449
- },
450
- emits: ["update:modelValue", "change"],
451
- setup(s, { emit: d }) {
452
- const t = s, n = d, o = k({
453
- get: () => t.modelValue,
454
- set: (e) => {
455
- n("update:modelValue", e), n("change", e);
456
- }
457
- });
458
- return (e, a) => {
459
- const c = v("n-tree-select");
460
- return i(), _(c, h(t.extra, {
461
- value: o.value,
462
- "onUpdate:value": a[0] || (a[0] = (u) => o.value = u)
463
- }), g({ _: 2 }, [
464
- e.$slots.action ? {
465
- name: "action",
466
- fn: l(() => [
467
- r(e.$slots, "action")
468
- ]),
469
- key: "0"
470
- } : void 0,
471
- e.$slots.arrow ? {
472
- name: "arrow",
473
- fn: l(() => [
474
- r(e.$slots, "arrow")
475
- ]),
476
- key: "1"
477
- } : void 0,
478
- e.$slots.empty ? {
479
- name: "empty",
480
- fn: l(() => [
481
- r(e.$slots, "empty")
482
- ]),
483
- key: "2"
484
- } : void 0,
485
- e.$slots.header ? {
486
- name: "header",
487
- fn: l(() => [
488
- r(e.$slots, "header")
489
- ]),
490
- key: "3"
491
- } : void 0
492
- ]), 1040, ["value"]);
493
- };
494
- }
495
- }), oe = /* @__PURE__ */ $({
496
- __name: "index",
497
- props: {
498
- extra: {
499
- type: Object,
500
- default: () => ({})
501
- },
502
- modelValue: {
503
- default: void 0
504
- }
505
- },
506
- emits: ["update:modelValue", "change"],
507
- setup(s, { emit: d }) {
508
- const t = s, n = d, o = k({
509
- get: () => t.modelValue,
510
- set: (e) => {
511
- n("update:modelValue", e), n("change", e);
512
- }
513
- });
514
- return (e, a) => {
515
- const c = v("n-upload");
516
- return i(), _(c, h(t.extra, {
517
- "file-list": o.value,
518
- "onUpdate:fileList": a[0] || (a[0] = (u) => o.value = u)
519
- }), g({ _: 2 }, [
520
- e.$slots.default ? {
521
- name: "default",
522
- fn: l((u) => [
523
- r(e.$slots, "default", E(b(u)))
524
- ]),
525
- key: "0"
526
- } : void 0
527
- ]), 1040, ["file-list"]);
528
- };
529
- }
530
- }), te = {
531
- BUTTON: S,
532
- CASCADER: K,
533
- CHECKBOX: M,
534
- CHECKBOXGROUP: W,
535
- DROPDOWN: z,
536
- FLEX: D,
537
- INPUT: B,
538
- LAYOUT: H,
539
- MENU: F,
540
- PAGINATION: L,
541
- RADIO: Y,
542
- RADIOGROUP: q,
543
- SELECT: J,
544
- SWITCH: Q,
545
- TAG: I,
546
- TEXT: X,
547
- TEXTAREA: Z,
548
- TREESELECT: ee,
549
- UPLOAD: oe
550
- };
551
- function ne(s) {
552
- return te[s == null ? void 0 : s.toUpperCase()] || null;
553
- }
554
- const ae = { key: 0 }, fe = /* @__PURE__ */ $({
555
- __name: "index",
556
- props: {
557
- extra: {
558
- type: Object,
559
- default: () => ({})
560
- },
561
- formElements: {
562
- type: Object,
563
- default: () => ({})
564
- },
565
- componentElement: {
566
- type: Object,
567
- default: () => ({})
568
- }
569
- },
570
- setup(s) {
571
- const d = (m) => {
572
- if (Array.isArray(m))
573
- return m.flatMap((p) => Array.isArray(p == null ? void 0 : p.filter) ? p.filter : p).find((p) => {
574
- var y;
575
- return ((y = p == null ? void 0 : p.lib) == null ? void 0 : y.trim().toLowerCase()) === "naive";
576
- });
577
- }, t = (m) => {
578
- var p;
579
- return ((p = d(m)) == null ? void 0 : p.elementProp) ?? {};
580
- }, n = (m, p) => {
581
- var V;
582
- const y = ((V = d(m)) == null ? void 0 : V.elementComponent) || p;
583
- return y == null ? void 0 : y.replace(/^n-/i, "");
584
- }, o = s, e = C([]), a = C({}), c = (m) => ne(m), u = (m) => {
585
- var p;
586
- return {
587
- ...(p = m == null ? void 0 : m.options) != null && p.length ? { options: m.options } : {},
588
- ...t(m == null ? void 0 : m.extraProps)
589
- };
590
- };
591
- return A(
592
- () => [o == null ? void 0 : o.formElements, o == null ? void 0 : o.componentElement],
593
- () => {
594
- var y, V;
595
- let m = {};
596
- const p = Array.isArray((y = o == null ? void 0 : o.formElements) == null ? void 0 : y.rowElements) ? o.formElements : G(o == null ? void 0 : o.componentElement);
597
- e.value = (p == null ? void 0 : p.rowElements) ?? [], (V = e.value) == null || V.forEach((O) => {
598
- m[O.prop] = O.value;
599
- }), a.value = m;
600
- },
601
- { immediate: !0 }
602
- ), (m, p) => {
603
- var O;
604
- const y = v("n-form-item"), V = v("n-form");
605
- return ((O = e.value) == null ? void 0 : O.length) > 0 ? (i(), x("div", ae, [
606
- N(V, h({
607
- ref: "formRef",
608
- model: a.value
609
- }, o.extra), {
610
- default: l(() => [
611
- (i(!0), x(P, null, R(e.value, (f, U) => (i(), _(y, {
612
- key: U,
613
- label: f == null ? void 0 : f.prop,
614
- span: 24 / (f == null ? void 0 : f.width)
615
- }, {
616
- default: l(() => [
617
- (i(), _(w(c(n(f == null ? void 0 : f.extraProps, f == null ? void 0 : f.type))), {
618
- modelValue: a.value[f == null ? void 0 : f.prop],
619
- "onUpdate:modelValue": (j) => a.value[f == null ? void 0 : f.prop] = j,
620
- extra: u(f)
621
- }, null, 8, ["modelValue", "onUpdate:modelValue", "extra"]))
622
- ]),
623
- _: 2
624
- }, 1032, ["label", "span"]))), 128))
625
- ]),
626
- _: 1
627
- }, 16, ["model"])
628
- ])) : T("", !0);
629
- };
630
- }
631
- });
632
- export {
633
- fe as default
634
- };