@cst-ui/nano-buttons 0.6.1 → 0.7.0

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 (38) hide show
  1. package/README.md +36 -16
  2. package/dist/NanoButton.vue_vue_type_script_setup_true_lang-C7C0CPgM.cjs +1 -0
  3. package/dist/NanoButton.vue_vue_type_script_setup_true_lang-ePBle9vj.js +137 -0
  4. package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-BbgObDU0.cjs +1 -0
  5. package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-X8msNdPD.js +705 -0
  6. package/dist/buttons/components/NanoAddButton.vue.d.ts +63 -58
  7. package/dist/buttons/components/NanoBackTopButton.vue.d.ts +63 -58
  8. package/dist/buttons/components/NanoButton.vue.d.ts +256 -2
  9. package/dist/buttons/components/NanoCancelButton.vue.d.ts +63 -58
  10. package/dist/buttons/components/NanoCompleteButton.vue.d.ts +39 -34
  11. package/dist/buttons/components/NanoConfirmButton.vue.d.ts +39 -34
  12. package/dist/buttons/components/NanoConfirmedButton.vue.d.ts +63 -58
  13. package/dist/buttons/components/NanoDeleteButton.vue.d.ts +39 -34
  14. package/dist/buttons/components/NanoEditButton.vue.d.ts +63 -58
  15. package/dist/buttons/components/NanoExportButton.vue.d.ts +63 -58
  16. package/dist/buttons/components/NanoFreezeButton.vue.d.ts +39 -34
  17. package/dist/buttons/components/NanoImportButton.vue.d.ts +63 -58
  18. package/dist/buttons/components/NanoInterruptButton.vue.d.ts +39 -34
  19. package/dist/buttons/components/NanoManageButton.vue.d.ts +63 -58
  20. package/dist/buttons/components/NanoMoveButton.vue.d.ts +63 -58
  21. package/dist/buttons/components/NanoResetButton.vue.d.ts +63 -58
  22. package/dist/buttons/components/NanoSendButton.vue.d.ts +63 -58
  23. package/dist/buttons/components/NanoSubmitButton.vue.d.ts +63 -58
  24. package/dist/buttons/components/NanoTextAddButton.vue.d.ts +63 -58
  25. package/dist/buttons/components/NanoUnfreezeButton.vue.d.ts +39 -34
  26. package/dist/buttons/components/props.d.ts +1 -0
  27. package/dist/buttons/index.cjs +1 -1
  28. package/dist/buttons/index.mjs +2 -2
  29. package/dist/dialog-tabs/index.cjs +1 -1
  30. package/dist/dialog-tabs/index.mjs +1 -1
  31. package/dist/index.cjs +1 -1
  32. package/dist/index.mjs +2 -2
  33. package/dist/style.css +1 -1
  34. package/package.json +1 -1
  35. package/dist/NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs +0 -1
  36. package/dist/NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js +0 -57
  37. package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-CYOJwieV.js +0 -692
  38. package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-ClUhZWV4.cjs +0 -1
@@ -0,0 +1,705 @@
1
+ import { defineComponent as y, openBlock as o, createBlock as r, mergeProps as a, withCtx as i, renderSlot as m, createElementVNode as v, normalizeProps as S, useAttrs as C, computed as N, resolveComponent as g, unref as c } from "vue";
2
+ import { n as _, _ as s } from "./NanoButton.vue_vue_type_script_setup_true_lang-ePBle9vj.js";
3
+ const w = /* @__PURE__ */ y({
4
+ name: "NanoAddButton",
5
+ inheritAttrs: !1,
6
+ __name: "NanoAddButton",
7
+ props: _,
8
+ setup(d) {
9
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
10
+ type: "primary",
11
+ icon: "Plus"
12
+ }), {
13
+ default: i(() => [
14
+ m(t.$slots, "default")
15
+ ]),
16
+ _: 3
17
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
18
+ type: "primary",
19
+ icon: "Plus"
20
+ }), null, 16));
21
+ }
22
+ }), D = /* @__PURE__ */ y({
23
+ name: "NanoBackTopButton",
24
+ inheritAttrs: !1,
25
+ __name: "NanoBackTopButton",
26
+ props: _,
27
+ setup(d) {
28
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
29
+ secondary: "",
30
+ class: "app-backtop-button"
31
+ }), {
32
+ default: i(() => [
33
+ m(t.$slots, "default")
34
+ ]),
35
+ _: 3
36
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
37
+ secondary: "",
38
+ class: "app-backtop-button"
39
+ }), {
40
+ icon: i(() => [...n[0] || (n[0] = [
41
+ v("svg", {
42
+ class: "app-backtop-icon",
43
+ viewBox: "0 0 24 24",
44
+ "aria-hidden": "true",
45
+ focusable: "false"
46
+ }, [
47
+ v("path", { d: "M6 5h12" }),
48
+ v("path", { d: "M12 19V9" }),
49
+ v("path", { d: "m8 13 4-4 4 4" })
50
+ ], -1)
51
+ ])]),
52
+ _: 1
53
+ }, 16));
54
+ }
55
+ }), E = /* @__PURE__ */ y({
56
+ name: "NanoCancelButton",
57
+ inheritAttrs: !1,
58
+ __name: "NanoCancelButton",
59
+ props: _,
60
+ setup(d) {
61
+ return (t, n) => t.$slots.default ? (o(), r(s, S(a({ key: 0 }, { ...t.$props, ...t.$attrs })), {
62
+ default: i(() => [
63
+ m(t.$slots, "default")
64
+ ]),
65
+ _: 3
66
+ }, 16)) : (o(), r(s, S(a({ key: 1 }, { ...t.$props, ...t.$attrs })), null, 16));
67
+ }
68
+ }), M = /* @__PURE__ */ y({
69
+ name: "NanoCompleteButton",
70
+ inheritAttrs: !1,
71
+ __name: "NanoCompleteButton",
72
+ props: {
73
+ ..._,
74
+ confirmTitle: String,
75
+ confirmButtonText: String,
76
+ cancelButtonText: String
77
+ },
78
+ emits: ["click", "confirm", "cancel"],
79
+ setup(d, { emit: t }) {
80
+ const n = d, f = t, l = C(), u = N(() => {
81
+ const {
82
+ confirmTitle: e,
83
+ confirmButtonText: b,
84
+ cancelButtonText: B,
85
+ ...$
86
+ } = n;
87
+ return $;
88
+ }), p = (e) => {
89
+ f("click", e);
90
+ }, k = (e) => {
91
+ f("confirm", e);
92
+ }, T = (e) => {
93
+ f("cancel", e);
94
+ };
95
+ return (e, b) => {
96
+ var $;
97
+ const B = g("el-popconfirm");
98
+ return n.confirmTitle ? (o(), r(B, {
99
+ key: 0,
100
+ title: n.confirmTitle,
101
+ "confirm-button-text": n.confirmButtonText,
102
+ "cancel-button-text": n.cancelButtonText,
103
+ onConfirm: k,
104
+ onCancel: T
105
+ }, {
106
+ reference: i(() => {
107
+ var h;
108
+ return [
109
+ e.$slots.default ? (o(), r(s, a({ key: 0 }, { ...u.value, ...c(l) }, {
110
+ type: "success",
111
+ icon: "CircleCheck",
112
+ onClick: p
113
+ }), {
114
+ default: i(() => [
115
+ m(e.$slots, "default")
116
+ ]),
117
+ _: 3
118
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
119
+ "aria-label": c(l)["aria-label"] ?? (((h = n.tooltip) == null ? void 0 : h.trim()) || "完成"),
120
+ type: "success",
121
+ icon: "CircleCheck",
122
+ onClick: p
123
+ }), null, 16, ["aria-label"]))
124
+ ];
125
+ }),
126
+ _: 3
127
+ }, 8, ["title", "confirm-button-text", "cancel-button-text"])) : e.$slots.default ? (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
128
+ type: "success",
129
+ icon: "CircleCheck",
130
+ onClick: p
131
+ }), {
132
+ default: i(() => [
133
+ m(e.$slots, "default")
134
+ ]),
135
+ _: 3
136
+ }, 16)) : (o(), r(s, a({ key: 2 }, { ...u.value, ...c(l) }, {
137
+ "aria-label": c(l)["aria-label"] ?? ((($ = n.tooltip) == null ? void 0 : $.trim()) || "完成"),
138
+ type: "success",
139
+ icon: "CircleCheck",
140
+ onClick: p
141
+ }), null, 16, ["aria-label"]));
142
+ };
143
+ }
144
+ }), R = /* @__PURE__ */ y({
145
+ name: "NanoConfirmButton",
146
+ inheritAttrs: !1,
147
+ __name: "NanoConfirmButton",
148
+ props: {
149
+ ..._,
150
+ confirmTitle: String,
151
+ confirmButtonText: String,
152
+ cancelButtonText: String
153
+ },
154
+ emits: ["click", "confirm", "cancel"],
155
+ setup(d, { emit: t }) {
156
+ const n = d, f = t, l = C(), u = N(() => {
157
+ const {
158
+ confirmTitle: e,
159
+ confirmButtonText: b,
160
+ cancelButtonText: B,
161
+ ...$
162
+ } = n;
163
+ return $;
164
+ }), p = (e) => {
165
+ f("click", e);
166
+ }, k = (e) => {
167
+ f("confirm", e);
168
+ }, T = (e) => {
169
+ f("cancel", e);
170
+ };
171
+ return (e, b) => {
172
+ var $;
173
+ const B = g("el-popconfirm");
174
+ return n.confirmTitle ? (o(), r(B, {
175
+ key: 0,
176
+ title: n.confirmTitle,
177
+ "confirm-button-text": n.confirmButtonText,
178
+ "cancel-button-text": n.cancelButtonText,
179
+ onConfirm: k,
180
+ onCancel: T
181
+ }, {
182
+ reference: i(() => {
183
+ var h;
184
+ return [
185
+ e.$slots.default ? (o(), r(s, a({ key: 0 }, { ...u.value, ...c(l) }, {
186
+ type: "primary",
187
+ icon: "Check",
188
+ onClick: p
189
+ }), {
190
+ default: i(() => [
191
+ m(e.$slots, "default")
192
+ ]),
193
+ _: 3
194
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
195
+ "aria-label": c(l)["aria-label"] ?? (((h = n.tooltip) == null ? void 0 : h.trim()) || "确认"),
196
+ type: "primary",
197
+ icon: "Check",
198
+ onClick: p
199
+ }), null, 16, ["aria-label"]))
200
+ ];
201
+ }),
202
+ _: 3
203
+ }, 8, ["title", "confirm-button-text", "cancel-button-text"])) : e.$slots.default ? (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
204
+ type: "primary",
205
+ icon: "Check",
206
+ onClick: p
207
+ }), {
208
+ default: i(() => [
209
+ m(e.$slots, "default")
210
+ ]),
211
+ _: 3
212
+ }, 16)) : (o(), r(s, a({ key: 2 }, { ...u.value, ...c(l) }, {
213
+ "aria-label": c(l)["aria-label"] ?? ((($ = n.tooltip) == null ? void 0 : $.trim()) || "确认"),
214
+ type: "primary",
215
+ icon: "Check",
216
+ onClick: p
217
+ }), null, 16, ["aria-label"]));
218
+ };
219
+ }
220
+ }), V = /* @__PURE__ */ y({
221
+ name: "NanoConfirmedButton",
222
+ inheritAttrs: !1,
223
+ __name: "NanoConfirmedButton",
224
+ props: _,
225
+ setup(d) {
226
+ return (t, n) => {
227
+ var f;
228
+ return t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
229
+ type: "success",
230
+ icon: "Check",
231
+ disabled: ""
232
+ }), {
233
+ default: i(() => [
234
+ m(t.$slots, "default")
235
+ ]),
236
+ _: 3
237
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
238
+ "aria-label": t.$attrs["aria-label"] ?? (((f = t.$props.tooltip) == null ? void 0 : f.trim()) || "确认完成"),
239
+ type: "success",
240
+ icon: "Check",
241
+ disabled: ""
242
+ }), null, 16, ["aria-label"]));
243
+ };
244
+ }
245
+ }), z = /* @__PURE__ */ y({
246
+ name: "NanoDeleteButton",
247
+ inheritAttrs: !1,
248
+ __name: "NanoDeleteButton",
249
+ props: {
250
+ ..._,
251
+ confirmTitle: String,
252
+ confirmButtonText: String,
253
+ cancelButtonText: String
254
+ },
255
+ emits: ["click", "confirm", "cancel"],
256
+ setup(d, { emit: t }) {
257
+ const n = d, f = t, l = C(), u = N(() => {
258
+ const {
259
+ confirmTitle: e,
260
+ confirmButtonText: b,
261
+ cancelButtonText: B,
262
+ ...$
263
+ } = n;
264
+ return $;
265
+ }), p = (e) => {
266
+ f("click", e);
267
+ }, k = (e) => {
268
+ f("confirm", e);
269
+ }, T = (e) => {
270
+ f("cancel", e);
271
+ };
272
+ return (e, b) => {
273
+ const B = g("el-popconfirm");
274
+ return n.confirmTitle ? (o(), r(B, {
275
+ key: 0,
276
+ title: n.confirmTitle,
277
+ "confirm-button-text": n.confirmButtonText,
278
+ "cancel-button-text": n.cancelButtonText,
279
+ onConfirm: k,
280
+ onCancel: T
281
+ }, {
282
+ reference: i(() => [
283
+ e.$slots.default ? (o(), r(s, a({ key: 0 }, { ...u.value, ...c(l) }, {
284
+ type: "danger",
285
+ icon: "Delete",
286
+ onClick: p
287
+ }), {
288
+ default: i(() => [
289
+ m(e.$slots, "default")
290
+ ]),
291
+ _: 3
292
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
293
+ type: "danger",
294
+ icon: "Delete",
295
+ onClick: p
296
+ }), null, 16))
297
+ ]),
298
+ _: 3
299
+ }, 8, ["title", "confirm-button-text", "cancel-button-text"])) : e.$slots.default ? (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
300
+ type: "danger",
301
+ icon: "Delete",
302
+ onClick: p
303
+ }), {
304
+ default: i(() => [
305
+ m(e.$slots, "default")
306
+ ]),
307
+ _: 3
308
+ }, 16)) : (o(), r(s, a({ key: 2 }, { ...u.value, ...c(l) }, {
309
+ type: "danger",
310
+ icon: "Delete",
311
+ onClick: p
312
+ }), null, 16));
313
+ };
314
+ }
315
+ }), H = /* @__PURE__ */ y({
316
+ name: "NanoEditButton",
317
+ inheritAttrs: !1,
318
+ __name: "NanoEditButton",
319
+ props: _,
320
+ setup(d) {
321
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), {
322
+ default: i(() => [
323
+ m(t.$slots, "default")
324
+ ]),
325
+ _: 3
326
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), null, 16));
327
+ }
328
+ }), I = /* @__PURE__ */ y({
329
+ name: "NanoExportButton",
330
+ inheritAttrs: !1,
331
+ __name: "NanoExportButton",
332
+ props: _,
333
+ setup(d) {
334
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
335
+ class: "app-button-export",
336
+ icon: "Download"
337
+ }), {
338
+ default: i(() => [
339
+ m(t.$slots, "default")
340
+ ]),
341
+ _: 3
342
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
343
+ class: "app-button-export",
344
+ icon: "Download"
345
+ }), null, 16));
346
+ }
347
+ }), U = /* @__PURE__ */ y({
348
+ name: "NanoFreezeButton",
349
+ inheritAttrs: !1,
350
+ __name: "NanoFreezeButton",
351
+ props: {
352
+ ..._,
353
+ confirmTitle: String,
354
+ confirmButtonText: String,
355
+ cancelButtonText: String
356
+ },
357
+ emits: ["click", "confirm", "cancel"],
358
+ setup(d, { emit: t }) {
359
+ const n = d, f = t, l = C(), u = N(() => {
360
+ const {
361
+ confirmTitle: e,
362
+ confirmButtonText: b,
363
+ cancelButtonText: B,
364
+ ...$
365
+ } = n;
366
+ return $;
367
+ }), p = (e) => {
368
+ f("click", e);
369
+ }, k = (e) => {
370
+ f("confirm", e);
371
+ }, T = (e) => {
372
+ f("cancel", e);
373
+ };
374
+ return (e, b) => {
375
+ const B = g("el-popconfirm");
376
+ return n.confirmTitle ? (o(), r(B, {
377
+ key: 0,
378
+ title: n.confirmTitle,
379
+ "confirm-button-text": n.confirmButtonText,
380
+ "cancel-button-text": n.cancelButtonText,
381
+ onConfirm: k,
382
+ onCancel: T
383
+ }, {
384
+ reference: i(() => [
385
+ e.$slots.default ? (o(), r(s, a({ key: 0 }, { ...u.value, ...c(l) }, {
386
+ type: "danger",
387
+ icon: "Hide",
388
+ onClick: p
389
+ }), {
390
+ default: i(() => [
391
+ m(e.$slots, "default")
392
+ ]),
393
+ _: 3
394
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
395
+ type: "danger",
396
+ icon: "Hide",
397
+ onClick: p
398
+ }), null, 16))
399
+ ]),
400
+ _: 3
401
+ }, 8, ["title", "confirm-button-text", "cancel-button-text"])) : e.$slots.default ? (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
402
+ type: "danger",
403
+ icon: "Hide",
404
+ onClick: p
405
+ }), {
406
+ default: i(() => [
407
+ m(e.$slots, "default")
408
+ ]),
409
+ _: 3
410
+ }, 16)) : (o(), r(s, a({ key: 2 }, { ...u.value, ...c(l) }, {
411
+ type: "danger",
412
+ icon: "Hide",
413
+ onClick: p
414
+ }), null, 16));
415
+ };
416
+ }
417
+ }), j = /* @__PURE__ */ y({
418
+ name: "NanoImportButton",
419
+ inheritAttrs: !1,
420
+ __name: "NanoImportButton",
421
+ props: _,
422
+ setup(d) {
423
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
424
+ class: "app-button-import",
425
+ icon: "Upload"
426
+ }), {
427
+ default: i(() => [
428
+ m(t.$slots, "default")
429
+ ]),
430
+ _: 3
431
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
432
+ class: "app-button-import",
433
+ icon: "Upload"
434
+ }), null, 16));
435
+ }
436
+ }), F = /* @__PURE__ */ y({
437
+ name: "NanoInterruptButton",
438
+ inheritAttrs: !1,
439
+ __name: "NanoInterruptButton",
440
+ props: {
441
+ ..._,
442
+ confirmTitle: String,
443
+ confirmButtonText: String,
444
+ cancelButtonText: String
445
+ },
446
+ emits: ["click", "confirm", "cancel"],
447
+ setup(d, { emit: t }) {
448
+ const n = d, f = t, l = C(), u = N(() => {
449
+ const {
450
+ confirmTitle: e,
451
+ confirmButtonText: b,
452
+ cancelButtonText: B,
453
+ ...$
454
+ } = n;
455
+ return $;
456
+ }), p = (e) => {
457
+ f("click", e);
458
+ }, k = (e) => {
459
+ f("confirm", e);
460
+ }, T = (e) => {
461
+ f("cancel", e);
462
+ };
463
+ return (e, b) => {
464
+ var $;
465
+ const B = g("el-popconfirm");
466
+ return n.confirmTitle ? (o(), r(B, {
467
+ key: 0,
468
+ title: n.confirmTitle,
469
+ "confirm-button-text": n.confirmButtonText,
470
+ "cancel-button-text": n.cancelButtonText,
471
+ onConfirm: k,
472
+ onCancel: T
473
+ }, {
474
+ reference: i(() => {
475
+ var h;
476
+ return [
477
+ e.$slots.default ? (o(), r(s, a({ key: 0 }, { ...u.value, ...c(l) }, {
478
+ type: "danger",
479
+ icon: "CircleClose",
480
+ onClick: p
481
+ }), {
482
+ default: i(() => [
483
+ m(e.$slots, "default")
484
+ ]),
485
+ _: 3
486
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
487
+ "aria-label": c(l)["aria-label"] ?? (((h = n.tooltip) == null ? void 0 : h.trim()) || "中断"),
488
+ type: "danger",
489
+ icon: "CircleClose",
490
+ onClick: p
491
+ }), null, 16, ["aria-label"]))
492
+ ];
493
+ }),
494
+ _: 3
495
+ }, 8, ["title", "confirm-button-text", "cancel-button-text"])) : e.$slots.default ? (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
496
+ type: "danger",
497
+ icon: "CircleClose",
498
+ onClick: p
499
+ }), {
500
+ default: i(() => [
501
+ m(e.$slots, "default")
502
+ ]),
503
+ _: 3
504
+ }, 16)) : (o(), r(s, a({ key: 2 }, { ...u.value, ...c(l) }, {
505
+ "aria-label": c(l)["aria-label"] ?? ((($ = n.tooltip) == null ? void 0 : $.trim()) || "中断"),
506
+ type: "danger",
507
+ icon: "CircleClose",
508
+ onClick: p
509
+ }), null, 16, ["aria-label"]));
510
+ };
511
+ }
512
+ }), L = /* @__PURE__ */ y({
513
+ name: "NanoManageButton",
514
+ inheritAttrs: !1,
515
+ __name: "NanoManageButton",
516
+ props: _,
517
+ setup(d) {
518
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
519
+ type: "primary",
520
+ icon: "Setting"
521
+ }), {
522
+ default: i(() => [
523
+ m(t.$slots, "default")
524
+ ]),
525
+ _: 3
526
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
527
+ type: "primary",
528
+ icon: "Setting"
529
+ }), null, 16));
530
+ }
531
+ }), q = /* @__PURE__ */ y({
532
+ name: "NanoMoveButton",
533
+ inheritAttrs: !1,
534
+ __name: "NanoMoveButton",
535
+ props: _,
536
+ setup(d) {
537
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, { icon: "Rank" }), {
538
+ default: i(() => [
539
+ m(t.$slots, "default")
540
+ ]),
541
+ _: 3
542
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, { icon: "Rank" }), null, 16));
543
+ }
544
+ }), G = /* @__PURE__ */ y({
545
+ name: "NanoResetButton",
546
+ inheritAttrs: !1,
547
+ __name: "NanoResetButton",
548
+ props: _,
549
+ setup(d) {
550
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
551
+ secondary: "",
552
+ icon: "RefreshLeft"
553
+ }), {
554
+ default: i(() => [
555
+ m(t.$slots, "default")
556
+ ]),
557
+ _: 3
558
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
559
+ secondary: "",
560
+ icon: "RefreshLeft"
561
+ }), null, 16));
562
+ }
563
+ }), J = /* @__PURE__ */ y({
564
+ name: "NanoSendButton",
565
+ inheritAttrs: !1,
566
+ __name: "NanoSendButton",
567
+ props: _,
568
+ setup(d) {
569
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
570
+ type: "primary",
571
+ icon: "Promotion"
572
+ }), {
573
+ default: i(() => [
574
+ m(t.$slots, "default")
575
+ ]),
576
+ _: 3
577
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
578
+ type: "primary",
579
+ icon: "Promotion"
580
+ }), null, 16));
581
+ }
582
+ }), K = /* @__PURE__ */ y({
583
+ name: "NanoSubmitButton",
584
+ inheritAttrs: !1,
585
+ __name: "NanoSubmitButton",
586
+ props: _,
587
+ setup(d) {
588
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, { type: "primary" }), {
589
+ default: i(() => [
590
+ m(t.$slots, "default")
591
+ ]),
592
+ _: 3
593
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, { type: "primary" }), null, 16));
594
+ }
595
+ }), O = /* @__PURE__ */ y({
596
+ name: "NanoTextAddButton",
597
+ inheritAttrs: !1,
598
+ __name: "NanoTextAddButton",
599
+ props: _,
600
+ setup(d) {
601
+ return (t, n) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
602
+ text: "",
603
+ icon: "Plus"
604
+ }), {
605
+ default: i(() => [
606
+ m(t.$slots, "default")
607
+ ]),
608
+ _: 3
609
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
610
+ text: "",
611
+ icon: "Plus"
612
+ }), null, 16));
613
+ }
614
+ }), Q = /* @__PURE__ */ y({
615
+ name: "NanoUnfreezeButton",
616
+ inheritAttrs: !1,
617
+ __name: "NanoUnfreezeButton",
618
+ props: {
619
+ ..._,
620
+ confirmTitle: String,
621
+ confirmButtonText: String,
622
+ cancelButtonText: String
623
+ },
624
+ emits: ["click", "confirm", "cancel"],
625
+ setup(d, { emit: t }) {
626
+ const n = d, f = t, l = C(), u = N(() => {
627
+ const {
628
+ confirmTitle: e,
629
+ confirmButtonText: b,
630
+ cancelButtonText: B,
631
+ ...$
632
+ } = n;
633
+ return $;
634
+ }), p = (e) => {
635
+ f("click", e);
636
+ }, k = (e) => {
637
+ f("confirm", e);
638
+ }, T = (e) => {
639
+ f("cancel", e);
640
+ };
641
+ return (e, b) => {
642
+ const B = g("el-popconfirm");
643
+ return n.confirmTitle ? (o(), r(B, {
644
+ key: 0,
645
+ title: n.confirmTitle,
646
+ "confirm-button-text": n.confirmButtonText,
647
+ "cancel-button-text": n.cancelButtonText,
648
+ onConfirm: k,
649
+ onCancel: T
650
+ }, {
651
+ reference: i(() => [
652
+ e.$slots.default ? (o(), r(s, a({ key: 0 }, { ...u.value, ...c(l) }, {
653
+ type: "success",
654
+ icon: "View",
655
+ onClick: p
656
+ }), {
657
+ default: i(() => [
658
+ m(e.$slots, "default")
659
+ ]),
660
+ _: 3
661
+ }, 16)) : (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
662
+ type: "success",
663
+ icon: "View",
664
+ onClick: p
665
+ }), null, 16))
666
+ ]),
667
+ _: 3
668
+ }, 8, ["title", "confirm-button-text", "cancel-button-text"])) : e.$slots.default ? (o(), r(s, a({ key: 1 }, { ...u.value, ...c(l) }, {
669
+ type: "success",
670
+ icon: "View",
671
+ onClick: p
672
+ }), {
673
+ default: i(() => [
674
+ m(e.$slots, "default")
675
+ ]),
676
+ _: 3
677
+ }, 16)) : (o(), r(s, a({ key: 2 }, { ...u.value, ...c(l) }, {
678
+ type: "success",
679
+ icon: "View",
680
+ onClick: p
681
+ }), null, 16));
682
+ };
683
+ }
684
+ });
685
+ export {
686
+ w as _,
687
+ O as a,
688
+ q as b,
689
+ j as c,
690
+ I as d,
691
+ H as e,
692
+ L as f,
693
+ R as g,
694
+ V as h,
695
+ F as i,
696
+ M as j,
697
+ J as k,
698
+ G as l,
699
+ z as m,
700
+ U as n,
701
+ Q as o,
702
+ K as p,
703
+ E as q,
704
+ D as r
705
+ };