@enos5/enos-vue-default 1.3.1 → 1.4.1
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.
- package/dist/components/Toast.vue.d.ts +22 -0
- package/dist/components/ToastContainer.vue.d.ts +16 -0
- package/dist/index.css +105 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.docs.d.ts +2 -0
- package/dist/index.js +456 -329
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,175 +5,181 @@ import { Link } from "@inertiajs/vue3";
|
|
|
5
5
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
get ActionCard() {
|
|
8
|
-
return _sfc_main$
|
|
8
|
+
return _sfc_main$O;
|
|
9
9
|
},
|
|
10
10
|
get ActionMessage() {
|
|
11
|
-
return _sfc_main$
|
|
11
|
+
return _sfc_main$N;
|
|
12
12
|
},
|
|
13
13
|
get ActionSection() {
|
|
14
|
-
return _sfc_main$
|
|
14
|
+
return _sfc_main$L;
|
|
15
15
|
},
|
|
16
16
|
get Badge() {
|
|
17
|
-
return _sfc_main$
|
|
17
|
+
return _sfc_main$K;
|
|
18
18
|
},
|
|
19
19
|
get Button() {
|
|
20
|
-
return _sfc_main$
|
|
20
|
+
return _sfc_main$J;
|
|
21
21
|
},
|
|
22
22
|
get Card() {
|
|
23
|
-
return _sfc_main$
|
|
23
|
+
return _sfc_main$Q;
|
|
24
24
|
},
|
|
25
25
|
get CardTabs() {
|
|
26
|
-
return _sfc_main$
|
|
26
|
+
return _sfc_main$R;
|
|
27
27
|
},
|
|
28
28
|
get Checkbox() {
|
|
29
|
-
return _sfc_main$
|
|
29
|
+
return _sfc_main$I;
|
|
30
30
|
},
|
|
31
31
|
get CheckboxInput() {
|
|
32
|
-
return _sfc_main$
|
|
32
|
+
return _sfc_main$H;
|
|
33
33
|
},
|
|
34
34
|
get CheckboxMultipleInput() {
|
|
35
|
-
return _sfc_main$
|
|
35
|
+
return _sfc_main$u;
|
|
36
36
|
},
|
|
37
37
|
get ConfirmationModal() {
|
|
38
|
-
return _sfc_main$
|
|
38
|
+
return _sfc_main$s;
|
|
39
39
|
},
|
|
40
40
|
get CustomSelect() {
|
|
41
|
-
return _sfc_main$
|
|
41
|
+
return _sfc_main$E;
|
|
42
42
|
},
|
|
43
43
|
get DateInput() {
|
|
44
|
-
return _sfc_main$
|
|
44
|
+
return _sfc_main$C;
|
|
45
45
|
},
|
|
46
46
|
get DialogModal() {
|
|
47
|
-
return _sfc_main$
|
|
47
|
+
return _sfc_main$r;
|
|
48
48
|
},
|
|
49
49
|
get Divider() {
|
|
50
|
-
return _sfc_main$
|
|
50
|
+
return _sfc_main$P;
|
|
51
51
|
},
|
|
52
52
|
get Dropdown() {
|
|
53
|
-
return _sfc_main$
|
|
53
|
+
return _sfc_main$q;
|
|
54
54
|
},
|
|
55
55
|
get DropdownLink() {
|
|
56
|
-
return _sfc_main$
|
|
56
|
+
return _sfc_main$p;
|
|
57
57
|
},
|
|
58
58
|
get EnosVueDefault() {
|
|
59
59
|
return plugin;
|
|
60
60
|
},
|
|
61
61
|
get FormSection() {
|
|
62
|
-
return _sfc_main$
|
|
62
|
+
return _sfc_main$o;
|
|
63
63
|
},
|
|
64
64
|
get ImageInput() {
|
|
65
|
-
return _sfc_main$
|
|
65
|
+
return _sfc_main$B;
|
|
66
66
|
},
|
|
67
67
|
get InputError() {
|
|
68
|
-
return _sfc_main$
|
|
68
|
+
return _sfc_main$n;
|
|
69
69
|
},
|
|
70
70
|
get InputGroup() {
|
|
71
|
-
return _sfc_main$
|
|
71
|
+
return _sfc_main$v;
|
|
72
72
|
},
|
|
73
73
|
get InputLabel() {
|
|
74
|
-
return _sfc_main$
|
|
74
|
+
return _sfc_main$m;
|
|
75
75
|
},
|
|
76
76
|
get LinkButton() {
|
|
77
|
-
return _sfc_main$
|
|
77
|
+
return _sfc_main$l;
|
|
78
78
|
},
|
|
79
79
|
get Modal() {
|
|
80
|
-
return _sfc_main$
|
|
80
|
+
return _sfc_main$t;
|
|
81
81
|
},
|
|
82
82
|
get NotationInput() {
|
|
83
|
-
return _sfc_main$
|
|
83
|
+
return _sfc_main$A;
|
|
84
84
|
},
|
|
85
85
|
get RadioInput() {
|
|
86
|
-
return _sfc_main$
|
|
86
|
+
return _sfc_main$z;
|
|
87
87
|
},
|
|
88
88
|
get RadioMultipleInput() {
|
|
89
|
-
return _sfc_main$
|
|
89
|
+
return _sfc_main$x;
|
|
90
90
|
},
|
|
91
91
|
get SectionBorder() {
|
|
92
|
-
return _sfc_main$
|
|
92
|
+
return _sfc_main$k;
|
|
93
93
|
},
|
|
94
94
|
get SectionTitle() {
|
|
95
95
|
return SectionTitle;
|
|
96
96
|
},
|
|
97
97
|
get SelectInput() {
|
|
98
|
-
return _sfc_main$
|
|
98
|
+
return _sfc_main$D;
|
|
99
99
|
},
|
|
100
100
|
get Sidebar() {
|
|
101
|
-
return _sfc_main$
|
|
101
|
+
return _sfc_main$j;
|
|
102
102
|
},
|
|
103
103
|
get SidebarContent() {
|
|
104
|
-
return _sfc_main$
|
|
104
|
+
return _sfc_main$i;
|
|
105
105
|
},
|
|
106
106
|
get SidebarFooter() {
|
|
107
|
-
return _sfc_main$
|
|
107
|
+
return _sfc_main$h;
|
|
108
108
|
},
|
|
109
109
|
get SidebarGroup() {
|
|
110
|
-
return _sfc_main$
|
|
110
|
+
return _sfc_main$g;
|
|
111
111
|
},
|
|
112
112
|
get SidebarGroupContent() {
|
|
113
|
-
return _sfc_main$
|
|
113
|
+
return _sfc_main$f;
|
|
114
114
|
},
|
|
115
115
|
get SidebarGroupLabel() {
|
|
116
|
-
return _sfc_main$
|
|
116
|
+
return _sfc_main$e;
|
|
117
117
|
},
|
|
118
118
|
get SidebarHeader() {
|
|
119
|
-
return _sfc_main$
|
|
119
|
+
return _sfc_main$d;
|
|
120
120
|
},
|
|
121
121
|
get SidebarInset() {
|
|
122
|
-
return _sfc_main$
|
|
122
|
+
return _sfc_main$c;
|
|
123
123
|
},
|
|
124
124
|
get SidebarMenu() {
|
|
125
|
-
return _sfc_main$
|
|
125
|
+
return _sfc_main$b;
|
|
126
126
|
},
|
|
127
127
|
get SidebarMenuButton() {
|
|
128
|
-
return _sfc_main$
|
|
128
|
+
return _sfc_main$a;
|
|
129
129
|
},
|
|
130
130
|
get SidebarMenuItem() {
|
|
131
|
-
return _sfc_main$
|
|
131
|
+
return _sfc_main$9;
|
|
132
132
|
},
|
|
133
133
|
get SidebarProvider() {
|
|
134
|
-
return _sfc_main$
|
|
134
|
+
return _sfc_main$8;
|
|
135
135
|
},
|
|
136
136
|
get SidebarTrigger() {
|
|
137
|
-
return _sfc_main$
|
|
137
|
+
return _sfc_main$7;
|
|
138
138
|
},
|
|
139
139
|
get SortControls() {
|
|
140
|
-
return _sfc_main$
|
|
140
|
+
return _sfc_main$6;
|
|
141
141
|
},
|
|
142
142
|
get TableList() {
|
|
143
|
-
return _sfc_main$
|
|
143
|
+
return _sfc_main$3;
|
|
144
144
|
},
|
|
145
145
|
get TableListForm() {
|
|
146
|
-
return _sfc_main;
|
|
146
|
+
return _sfc_main$2;
|
|
147
147
|
},
|
|
148
148
|
get TableSearch() {
|
|
149
|
-
return _sfc_main$
|
|
149
|
+
return _sfc_main$4;
|
|
150
150
|
},
|
|
151
151
|
get TextArea() {
|
|
152
|
-
return _sfc_main$
|
|
152
|
+
return _sfc_main$F;
|
|
153
153
|
},
|
|
154
154
|
get TextInput() {
|
|
155
|
-
return _sfc_main$
|
|
155
|
+
return _sfc_main$G;
|
|
156
156
|
},
|
|
157
157
|
get ThSortable() {
|
|
158
|
-
return _sfc_main$
|
|
158
|
+
return _sfc_main$5;
|
|
159
159
|
},
|
|
160
160
|
get TinyEditor() {
|
|
161
|
-
return _sfc_main$
|
|
161
|
+
return _sfc_main$w;
|
|
162
|
+
},
|
|
163
|
+
get Toast() {
|
|
164
|
+
return _sfc_main$1;
|
|
165
|
+
},
|
|
166
|
+
get ToastContainer() {
|
|
167
|
+
return _sfc_main;
|
|
162
168
|
},
|
|
163
169
|
get ToggleInput() {
|
|
164
|
-
return _sfc_main$
|
|
170
|
+
return _sfc_main$y;
|
|
165
171
|
},
|
|
166
172
|
get useSidebar() {
|
|
167
173
|
return useSidebar;
|
|
168
174
|
}
|
|
169
175
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
170
|
-
const _hoisted_1$
|
|
171
|
-
const _hoisted_2$
|
|
176
|
+
const _hoisted_1$C = { class: "border-b border-neutral-200 bg-neutral-50/80 p-2 dark:border-neutral-800 dark:bg-neutral-900/80" };
|
|
177
|
+
const _hoisted_2$l = {
|
|
172
178
|
role: "tablist",
|
|
173
179
|
class: "flex overflow-hidden rounded-lg bg-white shadow-sm ring-1 ring-neutral-200 dark:bg-neutral-950 dark:ring-neutral-800"
|
|
174
180
|
};
|
|
175
|
-
const _hoisted_3$
|
|
176
|
-
const _sfc_main$
|
|
181
|
+
const _hoisted_3$e = ["aria-selected", "tabindex", "onClick", "onKeydown"];
|
|
182
|
+
const _sfc_main$R = {
|
|
177
183
|
__name: "CardTabs",
|
|
178
184
|
props: {
|
|
179
185
|
tabs: {
|
|
@@ -242,8 +248,8 @@ const _sfc_main$P = {
|
|
|
242
248
|
focusTabAtIndex(targetIndex);
|
|
243
249
|
};
|
|
244
250
|
return (_ctx, _cache) => {
|
|
245
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
246
|
-
createElementVNode("div", _hoisted_2$
|
|
251
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
252
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
247
253
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab, index) => {
|
|
248
254
|
return openBlock(), createElementBlock("button", {
|
|
249
255
|
key: tab.value,
|
|
@@ -263,22 +269,22 @@ const _sfc_main$P = {
|
|
|
263
269
|
]),
|
|
264
270
|
onClick: ($event) => activateTab(tab.value),
|
|
265
271
|
onKeydown: ($event) => onTabKeydown($event, index)
|
|
266
|
-
}, toDisplayString(tab.label), 47, _hoisted_3$
|
|
272
|
+
}, toDisplayString(tab.label), 47, _hoisted_3$e);
|
|
267
273
|
}), 128))
|
|
268
274
|
])
|
|
269
275
|
]);
|
|
270
276
|
};
|
|
271
277
|
}
|
|
272
278
|
};
|
|
273
|
-
const _hoisted_1$
|
|
279
|
+
const _hoisted_1$B = {
|
|
274
280
|
key: 0,
|
|
275
281
|
class: "mb-4"
|
|
276
282
|
};
|
|
277
|
-
const _hoisted_2$
|
|
283
|
+
const _hoisted_2$k = {
|
|
278
284
|
key: 1,
|
|
279
285
|
class: "mb-4 text-xl font-semibold tracking-tight text-neutral-950 dark:text-neutral-50"
|
|
280
286
|
};
|
|
281
|
-
const _sfc_main$
|
|
287
|
+
const _sfc_main$Q = {
|
|
282
288
|
__name: "Card",
|
|
283
289
|
props: {
|
|
284
290
|
title: {
|
|
@@ -339,7 +345,7 @@ const _sfc_main$O = {
|
|
|
339
345
|
return openBlock(), createElementBlock("div", {
|
|
340
346
|
class: normalizeClass(["rounded-2xl border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50", __props.overflowClass, { "sticky top-6 self-start": __props.sticky }, __props.cardClass])
|
|
341
347
|
}, [
|
|
342
|
-
__props.tabs.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
348
|
+
__props.tabs.length > 0 ? (openBlock(), createBlock(_sfc_main$R, {
|
|
343
349
|
key: 0,
|
|
344
350
|
tabs: __props.tabs,
|
|
345
351
|
"active-tab": __props.activeTab,
|
|
@@ -349,9 +355,9 @@ const _sfc_main$O = {
|
|
|
349
355
|
createElementVNode("div", {
|
|
350
356
|
class: normalizeClass(__props.paddingClass)
|
|
351
357
|
}, [
|
|
352
|
-
_ctx.$slots.customTitle ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
358
|
+
_ctx.$slots.customTitle ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
353
359
|
renderSlot(_ctx.$slots, "customTitle")
|
|
354
|
-
])) : __props.title ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
360
|
+
])) : __props.title ? (openBlock(), createElementBlock("h3", _hoisted_2$k, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
355
361
|
createElementVNode("div", {
|
|
356
362
|
class: normalizeClass(["relative", __props.tabs.length > 0 ? "overflow-hidden" : "overflow-visible"])
|
|
357
363
|
}, [
|
|
@@ -384,7 +390,7 @@ const _sfc_main$O = {
|
|
|
384
390
|
};
|
|
385
391
|
}
|
|
386
392
|
};
|
|
387
|
-
const _sfc_main$
|
|
393
|
+
const _sfc_main$P = /* @__PURE__ */ Object.assign({
|
|
388
394
|
inheritAttrs: false
|
|
389
395
|
}, {
|
|
390
396
|
__name: "Divider",
|
|
@@ -396,7 +402,7 @@ const _sfc_main$N = /* @__PURE__ */ Object.assign({
|
|
|
396
402
|
};
|
|
397
403
|
}
|
|
398
404
|
});
|
|
399
|
-
const _sfc_main$
|
|
405
|
+
const _sfc_main$O = {
|
|
400
406
|
__name: "ActionCard",
|
|
401
407
|
props: {
|
|
402
408
|
title: {
|
|
@@ -411,13 +417,13 @@ const _sfc_main$M = {
|
|
|
411
417
|
setup(__props) {
|
|
412
418
|
const slots = useSlots();
|
|
413
419
|
return (_ctx, _cache) => {
|
|
414
|
-
return openBlock(), createBlock(_sfc_main$
|
|
420
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
415
421
|
title: __props.title,
|
|
416
422
|
"content-class": __props.actionsClass
|
|
417
423
|
}, {
|
|
418
424
|
default: withCtx(() => [
|
|
419
425
|
renderSlot(_ctx.$slots, "default"),
|
|
420
|
-
unref(slots).danger ? (openBlock(), createBlock(_sfc_main$
|
|
426
|
+
unref(slots).danger ? (openBlock(), createBlock(_sfc_main$P, {
|
|
421
427
|
key: 0,
|
|
422
428
|
class: "mt-6 pt-4"
|
|
423
429
|
}, {
|
|
@@ -432,8 +438,8 @@ const _sfc_main$M = {
|
|
|
432
438
|
};
|
|
433
439
|
}
|
|
434
440
|
};
|
|
435
|
-
const _hoisted_1$
|
|
436
|
-
const _sfc_main$
|
|
441
|
+
const _hoisted_1$A = { class: "text-sm text-gray-600" };
|
|
442
|
+
const _sfc_main$N = {
|
|
437
443
|
__name: "ActionMessage",
|
|
438
444
|
props: {
|
|
439
445
|
on: Boolean
|
|
@@ -447,7 +453,7 @@ const _sfc_main$L = {
|
|
|
447
453
|
"leave-to-class": "opacity-0"
|
|
448
454
|
}, {
|
|
449
455
|
default: withCtx(() => [
|
|
450
|
-
withDirectives(createElementVNode("div", _hoisted_1$
|
|
456
|
+
withDirectives(createElementVNode("div", _hoisted_1$A, [
|
|
451
457
|
renderSlot(_ctx.$slots, "default")
|
|
452
458
|
], 512), [
|
|
453
459
|
[vShow, __props.on]
|
|
@@ -466,16 +472,16 @@ const _export_sfc = (sfc, props) => {
|
|
|
466
472
|
}
|
|
467
473
|
return target;
|
|
468
474
|
};
|
|
469
|
-
const _sfc_main$
|
|
470
|
-
const _hoisted_1$
|
|
471
|
-
const _hoisted_2$
|
|
472
|
-
const _hoisted_3$
|
|
475
|
+
const _sfc_main$M = {};
|
|
476
|
+
const _hoisted_1$z = { class: "md:col-span-1 flex justify-between" };
|
|
477
|
+
const _hoisted_2$j = { class: "px-4 sm:px-0" };
|
|
478
|
+
const _hoisted_3$d = { class: "text-xl font-semibold tracking-tight text-neutral-950 dark:text-neutral-50" };
|
|
473
479
|
const _hoisted_4$9 = { class: "mt-1 max-w-2xl text-sm text-neutral-600 dark:text-neutral-200" };
|
|
474
480
|
const _hoisted_5$7 = { class: "px-4 sm:px-0" };
|
|
475
481
|
function _sfc_render(_ctx, _cache) {
|
|
476
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
477
|
-
createElementVNode("div", _hoisted_2$
|
|
478
|
-
createElementVNode("h3", _hoisted_3$
|
|
482
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
483
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
484
|
+
createElementVNode("h3", _hoisted_3$d, [
|
|
479
485
|
renderSlot(_ctx.$slots, "title")
|
|
480
486
|
]),
|
|
481
487
|
createElementVNode("p", _hoisted_4$9, [
|
|
@@ -487,15 +493,15 @@ function _sfc_render(_ctx, _cache) {
|
|
|
487
493
|
])
|
|
488
494
|
]);
|
|
489
495
|
}
|
|
490
|
-
const SectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
491
|
-
const _hoisted_1$
|
|
492
|
-
const _hoisted_2$
|
|
493
|
-
const _hoisted_3$
|
|
494
|
-
const _sfc_main$
|
|
496
|
+
const SectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render]]);
|
|
497
|
+
const _hoisted_1$y = { class: "md:grid md:grid-cols-3 md:gap-6" };
|
|
498
|
+
const _hoisted_2$i = { class: "mt-5 md:mt-0 md:col-span-2" };
|
|
499
|
+
const _hoisted_3$c = { class: "rounded-lg border border-neutral-200 bg-white px-4 py-5 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 sm:p-6" };
|
|
500
|
+
const _sfc_main$L = {
|
|
495
501
|
__name: "ActionSection",
|
|
496
502
|
setup(__props) {
|
|
497
503
|
return (_ctx, _cache) => {
|
|
498
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
504
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
499
505
|
createVNode(SectionTitle, null, {
|
|
500
506
|
title: withCtx(() => [
|
|
501
507
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -505,8 +511,8 @@ const _sfc_main$J = {
|
|
|
505
511
|
]),
|
|
506
512
|
_: 3
|
|
507
513
|
}),
|
|
508
|
-
createElementVNode("div", _hoisted_2$
|
|
509
|
-
createElementVNode("div", _hoisted_3$
|
|
514
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
515
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
510
516
|
renderSlot(_ctx.$slots, "content")
|
|
511
517
|
])
|
|
512
518
|
])
|
|
@@ -514,8 +520,8 @@ const _sfc_main$J = {
|
|
|
514
520
|
};
|
|
515
521
|
}
|
|
516
522
|
};
|
|
517
|
-
const _hoisted_1$
|
|
518
|
-
const _sfc_main$
|
|
523
|
+
const _hoisted_1$x = { class: "sr-only" };
|
|
524
|
+
const _sfc_main$K = {
|
|
519
525
|
__name: "Badge",
|
|
520
526
|
props: {
|
|
521
527
|
type: {
|
|
@@ -580,7 +586,7 @@ const _sfc_main$I = {
|
|
|
580
586
|
createElementVNode("span", {
|
|
581
587
|
class: normalizeClass(["w-2 h-2 rounded-full", colorClasses[__props.color].dot])
|
|
582
588
|
}, null, 2),
|
|
583
|
-
createElementVNode("span", _hoisted_1$
|
|
589
|
+
createElementVNode("span", _hoisted_1$x, [
|
|
584
590
|
renderSlot(_ctx.$slots, "default")
|
|
585
591
|
])
|
|
586
592
|
], 2)) : (openBlock(), createElementBlock("span", {
|
|
@@ -597,8 +603,8 @@ const _sfc_main$I = {
|
|
|
597
603
|
};
|
|
598
604
|
}
|
|
599
605
|
};
|
|
600
|
-
const _hoisted_1$
|
|
601
|
-
const _sfc_main$
|
|
606
|
+
const _hoisted_1$w = ["type", "disabled"];
|
|
607
|
+
const _sfc_main$J = /* @__PURE__ */ Object.assign({
|
|
602
608
|
inheritAttrs: false
|
|
603
609
|
}, {
|
|
604
610
|
__name: "Button",
|
|
@@ -665,12 +671,12 @@ const _sfc_main$H = /* @__PURE__ */ Object.assign({
|
|
|
665
671
|
class: buttonClasses.value
|
|
666
672
|
}), [
|
|
667
673
|
renderSlot(_ctx.$slots, "default")
|
|
668
|
-
], 16, _hoisted_1$
|
|
674
|
+
], 16, _hoisted_1$w);
|
|
669
675
|
};
|
|
670
676
|
}
|
|
671
677
|
});
|
|
672
|
-
const _hoisted_1$
|
|
673
|
-
const _sfc_main$
|
|
678
|
+
const _hoisted_1$v = ["value"];
|
|
679
|
+
const _sfc_main$I = {
|
|
674
680
|
__name: "Checkbox",
|
|
675
681
|
props: {
|
|
676
682
|
checked: {
|
|
@@ -700,14 +706,14 @@ const _sfc_main$G = {
|
|
|
700
706
|
type: "checkbox",
|
|
701
707
|
value: __props.value,
|
|
702
708
|
class: "rounded border-neutral-300 text-neutral-900 shadow-sm focus:ring-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-neutral-100 dark:focus:ring-neutral-100"
|
|
703
|
-
}, null, 8, _hoisted_1$
|
|
709
|
+
}, null, 8, _hoisted_1$v)), [
|
|
704
710
|
[vModelCheckbox, proxyChecked.value]
|
|
705
711
|
]);
|
|
706
712
|
};
|
|
707
713
|
}
|
|
708
714
|
};
|
|
709
|
-
const _hoisted_1$
|
|
710
|
-
const _sfc_main$
|
|
715
|
+
const _hoisted_1$u = ["name", "checked", "disabled"];
|
|
716
|
+
const _sfc_main$H = {
|
|
711
717
|
__name: "CheckboxInput",
|
|
712
718
|
props: {
|
|
713
719
|
modelValue: {
|
|
@@ -767,7 +773,7 @@ const _sfc_main$F = {
|
|
|
767
773
|
onChange,
|
|
768
774
|
onFocus: handleFocus,
|
|
769
775
|
onBlur: handleBlur
|
|
770
|
-
}, null, 40, _hoisted_1$
|
|
776
|
+
}, null, 40, _hoisted_1$u),
|
|
771
777
|
createElementVNode("span", {
|
|
772
778
|
class: normalizeClass(["inline-flex h-4 w-4 items-center justify-center border text-[10px] font-bold leading-none", [
|
|
773
779
|
isChecked.value ? "border-current bg-white/15 text-current dark:bg-neutral-900/15" : "border-current/70 text-transparent",
|
|
@@ -779,12 +785,12 @@ const _sfc_main$F = {
|
|
|
779
785
|
};
|
|
780
786
|
}
|
|
781
787
|
};
|
|
782
|
-
const _hoisted_1$
|
|
783
|
-
const _hoisted_2$
|
|
788
|
+
const _hoisted_1$t = { class: "relative flex items-center" };
|
|
789
|
+
const _hoisted_2$h = {
|
|
784
790
|
key: 0,
|
|
785
791
|
class: "absolute inset-y-0 left-0 flex items-center pointer-events-none pl-3"
|
|
786
792
|
};
|
|
787
|
-
const _hoisted_3$
|
|
793
|
+
const _hoisted_3$b = ["type", "value", "disabled"];
|
|
788
794
|
const _hoisted_4$8 = ["aria-label"];
|
|
789
795
|
const _hoisted_5$6 = {
|
|
790
796
|
key: 0,
|
|
@@ -801,7 +807,7 @@ const _hoisted_6$6 = {
|
|
|
801
807
|
viewBox: "0 0 24 24"
|
|
802
808
|
};
|
|
803
809
|
const DEFAULT_MAX_LENGTH$1 = 254;
|
|
804
|
-
const _sfc_main$
|
|
810
|
+
const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
805
811
|
__name: "TextInput",
|
|
806
812
|
props: {
|
|
807
813
|
modelValue: {
|
|
@@ -860,8 +866,8 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
860
866
|
});
|
|
861
867
|
__expose({ focus: () => input.value?.focus() });
|
|
862
868
|
return (_ctx, _cache) => {
|
|
863
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
864
|
-
isPasswordField.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
869
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
870
|
+
isPasswordField.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
|
|
865
871
|
createVNode(unref(LockClosedIcon), { class: "h-5 w-5 text-neutral-400 dark:text-neutral-200" })
|
|
866
872
|
])) : createCommentVNode("", true),
|
|
867
873
|
createElementVNode("input", mergeProps({
|
|
@@ -875,7 +881,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
875
881
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value)),
|
|
876
882
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event)),
|
|
877
883
|
onWheel: handleWheel
|
|
878
|
-
}), null, 16, _hoisted_3$
|
|
884
|
+
}), null, 16, _hoisted_3$b),
|
|
879
885
|
isPasswordField.value ? (openBlock(), createElementBlock("button", {
|
|
880
886
|
key: 1,
|
|
881
887
|
type: "button",
|
|
@@ -909,9 +915,9 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
909
915
|
};
|
|
910
916
|
}
|
|
911
917
|
});
|
|
912
|
-
const _hoisted_1$
|
|
918
|
+
const _hoisted_1$s = ["value", "disabled"];
|
|
913
919
|
const DEFAULT_MAX_LENGTH = 1e3;
|
|
914
|
-
const _sfc_main$
|
|
920
|
+
const _sfc_main$F = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
915
921
|
__name: "TextArea",
|
|
916
922
|
props: {
|
|
917
923
|
modelValue: String,
|
|
@@ -981,13 +987,13 @@ const _sfc_main$D = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
981
987
|
value: props.modelValue,
|
|
982
988
|
disabled: props.disabled,
|
|
983
989
|
onInput: updateValue
|
|
984
|
-
}), null, 16, _hoisted_1$
|
|
990
|
+
}), null, 16, _hoisted_1$s)
|
|
985
991
|
]);
|
|
986
992
|
};
|
|
987
993
|
}
|
|
988
994
|
});
|
|
989
|
-
const _hoisted_1$
|
|
990
|
-
const _sfc_main$
|
|
995
|
+
const _hoisted_1$r = ["onClick"];
|
|
996
|
+
const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
991
997
|
__name: "CustomSelect",
|
|
992
998
|
props: {
|
|
993
999
|
modelValue: {
|
|
@@ -1267,7 +1273,7 @@ const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1267
1273
|
}
|
|
1268
1274
|
]),
|
|
1269
1275
|
onClick: withModifiers(($event) => selectOption(option), ["stop"])
|
|
1270
|
-
}, toDisplayString(optionText(option)), 11, _hoisted_1$
|
|
1276
|
+
}, toDisplayString(optionText(option)), 11, _hoisted_1$r);
|
|
1271
1277
|
}), 128))
|
|
1272
1278
|
], 6)) : createCommentVNode("", true)
|
|
1273
1279
|
]))
|
|
@@ -1278,7 +1284,7 @@ const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1278
1284
|
};
|
|
1279
1285
|
}
|
|
1280
1286
|
});
|
|
1281
|
-
const _sfc_main$
|
|
1287
|
+
const _sfc_main$D = {
|
|
1282
1288
|
__name: "SelectInput",
|
|
1283
1289
|
props: {
|
|
1284
1290
|
modelValue: {
|
|
@@ -1366,7 +1372,7 @@ const _sfc_main$B = {
|
|
|
1366
1372
|
setup(__props, { emit: __emit }) {
|
|
1367
1373
|
const emit = __emit;
|
|
1368
1374
|
return (_ctx, _cache) => {
|
|
1369
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1375
|
+
return openBlock(), createBlock(_sfc_main$E, mergeProps({
|
|
1370
1376
|
"model-value": __props.modelValue,
|
|
1371
1377
|
"model-modifiers": __props.modelModifiers,
|
|
1372
1378
|
options: __props.options,
|
|
@@ -1392,8 +1398,8 @@ const _sfc_main$B = {
|
|
|
1392
1398
|
};
|
|
1393
1399
|
}
|
|
1394
1400
|
};
|
|
1395
|
-
const _hoisted_1$
|
|
1396
|
-
const _sfc_main$
|
|
1401
|
+
const _hoisted_1$q = ["type", "max", "value", "disabled"];
|
|
1402
|
+
const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
1397
1403
|
__name: "DateInput",
|
|
1398
1404
|
props: {
|
|
1399
1405
|
modelValue: {
|
|
@@ -1473,13 +1479,13 @@ const _sfc_main$A = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1473
1479
|
disabled: props.disabled,
|
|
1474
1480
|
onInput: handleDateInput,
|
|
1475
1481
|
onChange: handleDateInput
|
|
1476
|
-
}), null, 16, _hoisted_1$
|
|
1482
|
+
}), null, 16, _hoisted_1$q);
|
|
1477
1483
|
};
|
|
1478
1484
|
}
|
|
1479
1485
|
});
|
|
1480
|
-
const _hoisted_1$
|
|
1481
|
-
const _hoisted_2$
|
|
1482
|
-
const _hoisted_3$
|
|
1486
|
+
const _hoisted_1$p = { class: "relative" };
|
|
1487
|
+
const _hoisted_2$g = { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" };
|
|
1488
|
+
const _hoisted_3$a = ["accept"];
|
|
1483
1489
|
const _hoisted_4$7 = {
|
|
1484
1490
|
key: 0,
|
|
1485
1491
|
class: "mt-4 rounded-lg border border-neutral-200 bg-neutral-50 p-4 dark:border-neutral-800 dark:bg-neutral-900/50"
|
|
@@ -1488,7 +1494,7 @@ const _hoisted_5$5 = { class: "flex items-center space-x-4" };
|
|
|
1488
1494
|
const _hoisted_6$5 = ["src"];
|
|
1489
1495
|
const _hoisted_7$5 = { class: "text-sm font-medium text-neutral-900 dark:text-neutral-50" };
|
|
1490
1496
|
const _hoisted_8$3 = { class: "text-xs text-neutral-500 dark:text-neutral-200" };
|
|
1491
|
-
const _sfc_main$
|
|
1497
|
+
const _sfc_main$B = {
|
|
1492
1498
|
__name: "ImageInput",
|
|
1493
1499
|
props: {
|
|
1494
1500
|
currentImageUrl: {
|
|
@@ -1522,8 +1528,8 @@ const _sfc_main$z = {
|
|
|
1522
1528
|
};
|
|
1523
1529
|
return (_ctx, _cache) => {
|
|
1524
1530
|
return openBlock(), createElementBlock("div", null, [
|
|
1525
|
-
createElementVNode("div", _hoisted_1$
|
|
1526
|
-
createElementVNode("div", _hoisted_2$
|
|
1531
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
1532
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
1527
1533
|
createVNode(unref(PhotoIcon), { class: "size-5 text-neutral-400 dark:text-neutral-200" })
|
|
1528
1534
|
]),
|
|
1529
1535
|
createElementVNode("input", mergeProps(__props.attrs, {
|
|
@@ -1531,7 +1537,7 @@ const _sfc_main$z = {
|
|
|
1531
1537
|
accept: __props.accept,
|
|
1532
1538
|
class: "block w-full cursor-pointer rounded-lg border border-neutral-200 bg-white py-3 pl-10 pr-4 text-sm text-neutral-700 shadow-sm transition-all duration-200 file:mr-4 file:rounded-md file:border-0 file:bg-neutral-900 file:px-4 file:py-2 file:text-sm file:font-medium file:text-neutral-50 hover:file:bg-neutral-800 focus:border-neutral-900 focus:outline-none focus:ring-2 focus:ring-neutral-950/10 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-100 dark:file:bg-neutral-800 dark:file:text-neutral-50 dark:hover:file:bg-neutral-700 dark:focus:border-neutral-100 dark:focus:ring-neutral-100/10",
|
|
1533
1539
|
onChange: handleFileChange
|
|
1534
|
-
}), null, 16, _hoisted_3$
|
|
1540
|
+
}), null, 16, _hoisted_3$a)
|
|
1535
1541
|
]),
|
|
1536
1542
|
props.currentImageUrl ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
1537
1543
|
createElementVNode("div", _hoisted_5$5, [
|
|
@@ -1550,9 +1556,9 @@ const _sfc_main$z = {
|
|
|
1550
1556
|
};
|
|
1551
1557
|
}
|
|
1552
1558
|
};
|
|
1553
|
-
const _hoisted_1$
|
|
1554
|
-
const _hoisted_2$
|
|
1555
|
-
const _sfc_main$
|
|
1559
|
+
const _hoisted_1$o = { class: "flex h-12 overflow-hidden rounded-lg border border-neutral-200 bg-white text-sm dark:border-neutral-800 dark:bg-neutral-950" };
|
|
1560
|
+
const _hoisted_2$f = ["disabled", "onClick"];
|
|
1561
|
+
const _sfc_main$A = {
|
|
1556
1562
|
__name: "NotationInput",
|
|
1557
1563
|
props: {
|
|
1558
1564
|
modelValue: {
|
|
@@ -1578,7 +1584,7 @@ const _sfc_main$y = {
|
|
|
1578
1584
|
const isSelected = (option) => String(option) === String(props.modelValue ?? "");
|
|
1579
1585
|
const selectOption = (option) => emit("update:modelValue", option);
|
|
1580
1586
|
return (_ctx, _cache) => {
|
|
1581
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1587
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
1582
1588
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedOptions.value, (option, idx) => {
|
|
1583
1589
|
return openBlock(), createElementBlock("button", {
|
|
1584
1590
|
key: `notation-${idx}-${option}`,
|
|
@@ -1591,14 +1597,14 @@ const _sfc_main$y = {
|
|
|
1591
1597
|
]]),
|
|
1592
1598
|
disabled: __props.disabled,
|
|
1593
1599
|
onClick: ($event) => selectOption(option)
|
|
1594
|
-
}, toDisplayString(option), 11, _hoisted_2$
|
|
1600
|
+
}, toDisplayString(option), 11, _hoisted_2$f);
|
|
1595
1601
|
}), 128))
|
|
1596
1602
|
]);
|
|
1597
1603
|
};
|
|
1598
1604
|
}
|
|
1599
1605
|
};
|
|
1600
|
-
const _hoisted_1$
|
|
1601
|
-
const _sfc_main$
|
|
1606
|
+
const _hoisted_1$n = ["name", "value", "checked", "disabled"];
|
|
1607
|
+
const _sfc_main$z = {
|
|
1602
1608
|
__name: "RadioInput",
|
|
1603
1609
|
props: {
|
|
1604
1610
|
modelValue: {
|
|
@@ -1653,18 +1659,18 @@ const _sfc_main$x = {
|
|
|
1653
1659
|
onChange,
|
|
1654
1660
|
onFocus: handleFocus,
|
|
1655
1661
|
onBlur: handleBlur
|
|
1656
|
-
}, null, 40, _hoisted_1$
|
|
1662
|
+
}, null, 40, _hoisted_1$n),
|
|
1657
1663
|
createElementVNode("span", null, toDisplayString(isChecked.value ? "✓" : "○") + " " + toDisplayString(__props.label), 1)
|
|
1658
1664
|
], 2);
|
|
1659
1665
|
};
|
|
1660
1666
|
}
|
|
1661
1667
|
};
|
|
1662
|
-
const _hoisted_1$
|
|
1663
|
-
const _hoisted_2$
|
|
1668
|
+
const _hoisted_1$m = ["name", "checked", "disabled"];
|
|
1669
|
+
const _hoisted_2$e = {
|
|
1664
1670
|
key: 0,
|
|
1665
1671
|
class: "text-sm text-neutral-700 dark:text-neutral-200"
|
|
1666
1672
|
};
|
|
1667
|
-
const _sfc_main$
|
|
1673
|
+
const _sfc_main$y = {
|
|
1668
1674
|
__name: "ToggleInput",
|
|
1669
1675
|
props: {
|
|
1670
1676
|
modelValue: {
|
|
@@ -1727,7 +1733,7 @@ const _sfc_main$w = {
|
|
|
1727
1733
|
onChange,
|
|
1728
1734
|
onFocus: handleFocus,
|
|
1729
1735
|
onBlur: handleBlur
|
|
1730
|
-
}, null, 40, _hoisted_1$
|
|
1736
|
+
}, null, 40, _hoisted_1$m),
|
|
1731
1737
|
createElementVNode("span", {
|
|
1732
1738
|
"aria-hidden": "true",
|
|
1733
1739
|
class: normalizeClass(["relative inline-flex h-6 w-11 items-center rounded-full border transition-colors duration-200", [
|
|
@@ -1738,13 +1744,13 @@ const _sfc_main$w = {
|
|
|
1738
1744
|
class: normalizeClass(["inline-block size-4 rounded-full bg-white shadow-sm transition-transform duration-200 dark:bg-neutral-950", [isChecked.value ? "translate-x-6" : "translate-x-1"]])
|
|
1739
1745
|
}, null, 2)
|
|
1740
1746
|
], 2),
|
|
1741
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1747
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(__props.label), 1)) : createCommentVNode("", true)
|
|
1742
1748
|
], 2);
|
|
1743
1749
|
};
|
|
1744
1750
|
}
|
|
1745
1751
|
};
|
|
1746
|
-
const _hoisted_1$
|
|
1747
|
-
const _sfc_main$
|
|
1752
|
+
const _hoisted_1$l = { class: "flex flex-wrap gap-3" };
|
|
1753
|
+
const _sfc_main$x = {
|
|
1748
1754
|
__name: "RadioMultipleInput",
|
|
1749
1755
|
props: {
|
|
1750
1756
|
modelValue: {
|
|
@@ -1773,9 +1779,9 @@ const _sfc_main$v = {
|
|
|
1773
1779
|
});
|
|
1774
1780
|
const selectOption = (option) => emit("update:modelValue", option);
|
|
1775
1781
|
return (_ctx, _cache) => {
|
|
1776
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1782
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
1777
1783
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedOptions.value, (option) => {
|
|
1778
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1784
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
1779
1785
|
key: `radio-${__props.name ?? "group"}-${option}`,
|
|
1780
1786
|
type: "radio-input",
|
|
1781
1787
|
"model-value": props.modelValue,
|
|
@@ -1790,11 +1796,11 @@ const _sfc_main$v = {
|
|
|
1790
1796
|
};
|
|
1791
1797
|
}
|
|
1792
1798
|
};
|
|
1793
|
-
const _hoisted_1$
|
|
1799
|
+
const _hoisted_1$k = {
|
|
1794
1800
|
key: 0,
|
|
1795
1801
|
class: "min-h-[12rem] w-full rounded-lg border border-slate-300 bg-slate-50"
|
|
1796
1802
|
};
|
|
1797
|
-
const _sfc_main$
|
|
1803
|
+
const _sfc_main$w = {
|
|
1798
1804
|
__name: "TinyEditor",
|
|
1799
1805
|
props: {
|
|
1800
1806
|
modelValue: {
|
|
@@ -1899,7 +1905,7 @@ const _sfc_main$u = {
|
|
|
1899
1905
|
};
|
|
1900
1906
|
return (_ctx, _cache) => {
|
|
1901
1907
|
return openBlock(), createElementBlock("div", { key: editorKey.value }, [
|
|
1902
|
-
!isEditorReady.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1908
|
+
!isEditorReady.value ? (openBlock(), createElementBlock("div", _hoisted_1$k)) : (openBlock(), createBlock(unref(Editor), {
|
|
1903
1909
|
key: 1,
|
|
1904
1910
|
"initial-value": content.value,
|
|
1905
1911
|
"license-key": __props.licenseKey,
|
|
@@ -1913,17 +1919,17 @@ const _sfc_main$u = {
|
|
|
1913
1919
|
};
|
|
1914
1920
|
}
|
|
1915
1921
|
};
|
|
1916
|
-
const _hoisted_1$
|
|
1917
|
-
const _hoisted_2$
|
|
1922
|
+
const _hoisted_1$j = ["for"];
|
|
1923
|
+
const _hoisted_2$d = {
|
|
1918
1924
|
key: 1,
|
|
1919
1925
|
class: "text-xs text-gray-500 mb-1 block break-all"
|
|
1920
1926
|
};
|
|
1921
|
-
const _hoisted_3$
|
|
1927
|
+
const _hoisted_3$9 = {
|
|
1922
1928
|
key: 16,
|
|
1923
1929
|
class: "flex items-center mt-2 text-sm text-red-600"
|
|
1924
1930
|
};
|
|
1925
1931
|
const defaultFieldClass = "block w-full rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-950 placeholder:text-neutral-400 shadow-sm transition-all duration-200 focus:border-neutral-900 focus:outline-none focus:ring-2 focus:ring-neutral-950/10 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50 dark:placeholder:text-neutral-500 dark:focus:border-neutral-100 dark:focus:ring-neutral-100/10";
|
|
1926
|
-
const _sfc_main$
|
|
1932
|
+
const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
1927
1933
|
__name: "InputGroup",
|
|
1928
1934
|
props: {
|
|
1929
1935
|
type: {
|
|
@@ -2239,42 +2245,42 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2239
2245
|
key: 0,
|
|
2240
2246
|
for: fieldId.value,
|
|
2241
2247
|
class: "text-base font-semibold text-gray-900 dark:text-gray-50 mb-1 block"
|
|
2242
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
2243
|
-
__props.helperText && !showsInlineChoiceControl.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2244
|
-
isTextareaType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2248
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$j)) : createCommentVNode("", true),
|
|
2249
|
+
__props.helperText && !showsInlineChoiceControl.value ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(__props.helperText), 1)) : createCommentVNode("", true),
|
|
2250
|
+
isTextareaType.value ? (openBlock(), createBlock(_sfc_main$F, mergeProps({ key: 2 }, textAreaBindings.value, {
|
|
2245
2251
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
|
|
2246
2252
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event))
|
|
2247
|
-
}), null, 16)) : isTinyEditorType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2253
|
+
}), null, 16)) : isTinyEditorType.value ? (openBlock(), createBlock(_sfc_main$w, mergeProps({ key: 3 }, tinyEditorBindings.value, {
|
|
2248
2254
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => emit("update:modelValue", $event)),
|
|
2249
2255
|
onBlur: _cache[3] || (_cache[3] = ($event) => emit("blur", $event))
|
|
2250
|
-
}), null, 16)) : isSelectType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2256
|
+
}), null, 16)) : isSelectType.value ? (openBlock(), createBlock(_sfc_main$D, mergeProps({ key: 4 }, selectBindings.value, {
|
|
2251
2257
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => emit("update:modelValue", $event)),
|
|
2252
2258
|
onBlur: _cache[5] || (_cache[5] = ($event) => emit("blur", $event))
|
|
2253
|
-
}), null, 16)) : isDateType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2259
|
+
}), null, 16)) : isDateType.value ? (openBlock(), createBlock(_sfc_main$C, mergeProps({ key: 5 }, dateBindings.value, {
|
|
2254
2260
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => emit("update:modelValue", $event)),
|
|
2255
2261
|
onBlur: _cache[7] || (_cache[7] = ($event) => emit("blur", $event))
|
|
2256
|
-
}), null, 16)) : isTextLikeType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2262
|
+
}), null, 16)) : isTextLikeType.value ? (openBlock(), createBlock(_sfc_main$G, mergeProps({ key: 6 }, textInputBindings.value, {
|
|
2257
2263
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => emit("update:modelValue", $event)),
|
|
2258
2264
|
onBlur: _cache[9] || (_cache[9] = ($event) => emit("blur", $event))
|
|
2259
|
-
}), null, 16)) : isImageType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2265
|
+
}), null, 16)) : isImageType.value ? (openBlock(), createBlock(_sfc_main$B, mergeProps({ key: 7 }, imageBindings.value, {
|
|
2260
2266
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => emit("update:modelValue", $event)),
|
|
2261
2267
|
onBlur: _cache[11] || (_cache[11] = ($event) => emit("blur", $event))
|
|
2262
|
-
}), null, 16)) : isCheckboxSingleType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2268
|
+
}), null, 16)) : isCheckboxSingleType.value ? (openBlock(), createBlock(_sfc_main$H, mergeProps({ key: 8 }, checkboxSingleBindings.value, {
|
|
2263
2269
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => emit("update:modelValue", $event)),
|
|
2264
2270
|
onBlur: _cache[13] || (_cache[13] = ($event) => emit("blur", $event))
|
|
2265
|
-
}), null, 16)) : isRadioSingleType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2271
|
+
}), null, 16)) : isRadioSingleType.value ? (openBlock(), createBlock(_sfc_main$z, mergeProps({ key: 9 }, radioSingleBindings.value, {
|
|
2266
2272
|
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => emit("update:modelValue", $event)),
|
|
2267
2273
|
onBlur: _cache[15] || (_cache[15] = ($event) => emit("blur", $event))
|
|
2268
|
-
}), null, 16)) : isToggleSingleType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2274
|
+
}), null, 16)) : isToggleSingleType.value ? (openBlock(), createBlock(_sfc_main$y, mergeProps({ key: 10 }, toggleSingleBindings.value, {
|
|
2269
2275
|
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => emit("update:modelValue", $event)),
|
|
2270
2276
|
onBlur: _cache[17] || (_cache[17] = ($event) => emit("blur", $event))
|
|
2271
|
-
}), null, 16)) : isNotationType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2277
|
+
}), null, 16)) : isNotationType.value ? (openBlock(), createBlock(_sfc_main$A, mergeProps({ key: 11 }, notationBindings.value, {
|
|
2272
2278
|
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => emit("update:modelValue", $event)),
|
|
2273
2279
|
onBlur: _cache[19] || (_cache[19] = ($event) => emit("blur", $event))
|
|
2274
|
-
}), null, 16)) : isCheckboxType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2280
|
+
}), null, 16)) : isCheckboxType.value ? (openBlock(), createBlock(_sfc_main$u, mergeProps({ key: 12 }, checkboxBindings.value, {
|
|
2275
2281
|
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => emit("update:modelValue", $event)),
|
|
2276
2282
|
onBlur: _cache[21] || (_cache[21] = ($event) => emit("blur", $event))
|
|
2277
|
-
}), null, 16)) : isRadioType.value ? (openBlock(), createBlock(_sfc_main$
|
|
2283
|
+
}), null, 16)) : isRadioType.value ? (openBlock(), createBlock(_sfc_main$x, mergeProps({ key: 13 }, radioBindings.value, {
|
|
2278
2284
|
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => emit("update:modelValue", $event)),
|
|
2279
2285
|
onBlur: _cache[23] || (_cache[23] = ($event) => emit("blur", $event))
|
|
2280
2286
|
}), null, 16)) : isNoComponentType.value ? renderSlot(_ctx.$slots, "unsupported-type", {
|
|
@@ -2290,7 +2296,7 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2290
2296
|
updateValue,
|
|
2291
2297
|
attrs: unref(attrs)
|
|
2292
2298
|
}),
|
|
2293
|
-
hasError.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2299
|
+
hasError.value ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
2294
2300
|
createVNode(unref(ExclamationCircleIcon), { class: "mr-1 h-4 w-4 flex-shrink-0" }),
|
|
2295
2301
|
createElementVNode("span", null, toDisplayString(__props.errorMessage), 1)
|
|
2296
2302
|
])) : createCommentVNode("", true)
|
|
@@ -2298,8 +2304,8 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2298
2304
|
};
|
|
2299
2305
|
}
|
|
2300
2306
|
});
|
|
2301
|
-
const _hoisted_1$
|
|
2302
|
-
const _sfc_main$
|
|
2307
|
+
const _hoisted_1$i = { class: "flex flex-wrap gap-3" };
|
|
2308
|
+
const _sfc_main$u = {
|
|
2303
2309
|
__name: "CheckboxMultipleInput",
|
|
2304
2310
|
props: {
|
|
2305
2311
|
modelValue: {
|
|
@@ -2340,9 +2346,9 @@ const _sfc_main$s = {
|
|
|
2340
2346
|
emit("update:modelValue", nextSelection);
|
|
2341
2347
|
};
|
|
2342
2348
|
return (_ctx, _cache) => {
|
|
2343
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2349
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2344
2350
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedOptions.value, (option) => {
|
|
2345
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2351
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
2346
2352
|
key: `checkbox-${option}`,
|
|
2347
2353
|
type: "checkbox-input",
|
|
2348
2354
|
name: __props.name,
|
|
@@ -2358,7 +2364,7 @@ const _sfc_main$s = {
|
|
|
2358
2364
|
};
|
|
2359
2365
|
}
|
|
2360
2366
|
};
|
|
2361
|
-
const _sfc_main$
|
|
2367
|
+
const _sfc_main$t = {
|
|
2362
2368
|
__name: "Modal",
|
|
2363
2369
|
props: {
|
|
2364
2370
|
show: {
|
|
@@ -2499,14 +2505,14 @@ const _sfc_main$r = {
|
|
|
2499
2505
|
};
|
|
2500
2506
|
}
|
|
2501
2507
|
};
|
|
2502
|
-
const _hoisted_1$
|
|
2503
|
-
const _hoisted_2$
|
|
2504
|
-
const _hoisted_3$
|
|
2508
|
+
const _hoisted_1$h = { class: "bg-white px-4 pb-4 pt-5 dark:bg-neutral-950 sm:p-6 sm:pb-4" };
|
|
2509
|
+
const _hoisted_2$c = { class: "sm:flex sm:items-start" };
|
|
2510
|
+
const _hoisted_3$8 = { class: "mx-auto flex size-12 shrink-0 items-center justify-center rounded-full bg-red-100 dark:bg-red-950/60 sm:mx-0 sm:size-10" };
|
|
2505
2511
|
const _hoisted_4$6 = { class: "mt-3 text-center sm:mt-0 sm:ms-4 sm:text-start" };
|
|
2506
2512
|
const _hoisted_5$4 = { class: "text-lg font-medium text-neutral-950 dark:text-neutral-50" };
|
|
2507
2513
|
const _hoisted_6$4 = { class: "mt-4 text-sm text-neutral-600 dark:text-neutral-200" };
|
|
2508
2514
|
const _hoisted_7$4 = { class: "flex flex-col-reverse gap-4 border-t border-neutral-200 bg-neutral-50 px-6 py-4 text-end dark:border-neutral-800 dark:bg-neutral-900/60 lg:flex-row lg:justify-end lg:gap-0" };
|
|
2509
|
-
const _sfc_main$
|
|
2515
|
+
const _sfc_main$s = {
|
|
2510
2516
|
__name: "ConfirmationModal",
|
|
2511
2517
|
props: {
|
|
2512
2518
|
show: {
|
|
@@ -2534,7 +2540,7 @@ const _sfc_main$q = {
|
|
|
2534
2540
|
emit("close");
|
|
2535
2541
|
};
|
|
2536
2542
|
return (_ctx, _cache) => {
|
|
2537
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2543
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2538
2544
|
show: __props.show,
|
|
2539
2545
|
"max-width": __props.maxWidth,
|
|
2540
2546
|
closeable: __props.closeable,
|
|
@@ -2542,9 +2548,9 @@ const _sfc_main$q = {
|
|
|
2542
2548
|
onClose: close
|
|
2543
2549
|
}, {
|
|
2544
2550
|
default: withCtx(() => [
|
|
2545
|
-
createElementVNode("div", _hoisted_1$
|
|
2546
|
-
createElementVNode("div", _hoisted_2$
|
|
2547
|
-
createElementVNode("div", _hoisted_3$
|
|
2551
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
2552
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
2553
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
2548
2554
|
createVNode(unref(ExclamationTriangleIcon), { class: "size-6 text-red-600 dark:text-neutral-100" })
|
|
2549
2555
|
]),
|
|
2550
2556
|
createElementVNode("div", _hoisted_4$6, [
|
|
@@ -2566,11 +2572,11 @@ const _sfc_main$q = {
|
|
|
2566
2572
|
};
|
|
2567
2573
|
}
|
|
2568
2574
|
};
|
|
2569
|
-
const _hoisted_1$
|
|
2570
|
-
const _hoisted_2$
|
|
2571
|
-
const _hoisted_3$
|
|
2575
|
+
const _hoisted_1$g = { class: "px-6 py-4" };
|
|
2576
|
+
const _hoisted_2$b = { class: "text-lg font-medium text-neutral-950 dark:text-neutral-50" };
|
|
2577
|
+
const _hoisted_3$7 = { class: "mt-4 text-sm text-neutral-600 dark:text-neutral-200" };
|
|
2572
2578
|
const _hoisted_4$5 = { class: "flex flex-row justify-end border-t border-neutral-200 bg-neutral-50 px-6 py-4 text-end dark:border-neutral-800 dark:bg-neutral-900/60" };
|
|
2573
|
-
const _sfc_main$
|
|
2579
|
+
const _sfc_main$r = {
|
|
2574
2580
|
__name: "DialogModal",
|
|
2575
2581
|
props: {
|
|
2576
2582
|
show: {
|
|
@@ -2593,18 +2599,18 @@ const _sfc_main$p = {
|
|
|
2593
2599
|
emit("close");
|
|
2594
2600
|
};
|
|
2595
2601
|
return (_ctx, _cache) => {
|
|
2596
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2602
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2597
2603
|
show: __props.show,
|
|
2598
2604
|
"max-width": __props.maxWidth,
|
|
2599
2605
|
closeable: __props.closeable,
|
|
2600
2606
|
onClose: close
|
|
2601
2607
|
}, {
|
|
2602
2608
|
default: withCtx(() => [
|
|
2603
|
-
createElementVNode("div", _hoisted_1$
|
|
2604
|
-
createElementVNode("div", _hoisted_2$
|
|
2609
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
2610
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
2605
2611
|
renderSlot(_ctx.$slots, "title")
|
|
2606
2612
|
]),
|
|
2607
|
-
createElementVNode("div", _hoisted_3$
|
|
2613
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
2608
2614
|
renderSlot(_ctx.$slots, "content")
|
|
2609
2615
|
])
|
|
2610
2616
|
]),
|
|
@@ -2617,8 +2623,8 @@ const _sfc_main$p = {
|
|
|
2617
2623
|
};
|
|
2618
2624
|
}
|
|
2619
2625
|
};
|
|
2620
|
-
const _hoisted_1$
|
|
2621
|
-
const _sfc_main$
|
|
2626
|
+
const _hoisted_1$f = { class: "relative inline-block w-fit" };
|
|
2627
|
+
const _sfc_main$q = {
|
|
2622
2628
|
__name: "Dropdown",
|
|
2623
2629
|
props: {
|
|
2624
2630
|
align: {
|
|
@@ -2759,7 +2765,7 @@ const _sfc_main$o = {
|
|
|
2759
2765
|
window.removeEventListener("scroll", handleViewportChange, true);
|
|
2760
2766
|
});
|
|
2761
2767
|
return (_ctx, _cache) => {
|
|
2762
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2768
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
2763
2769
|
createElementVNode("div", {
|
|
2764
2770
|
ref_key: "triggerRef",
|
|
2765
2771
|
ref: triggerRef,
|
|
@@ -2799,13 +2805,13 @@ const _sfc_main$o = {
|
|
|
2799
2805
|
};
|
|
2800
2806
|
}
|
|
2801
2807
|
};
|
|
2802
|
-
const _hoisted_1$
|
|
2808
|
+
const _hoisted_1$e = {
|
|
2803
2809
|
key: 0,
|
|
2804
2810
|
type: "submit",
|
|
2805
2811
|
class: "block w-full px-4 py-2 text-start text-sm leading-5 text-neutral-700 transition duration-150 ease-in-out hover:bg-neutral-100 focus:bg-neutral-100 focus:outline-none dark:text-neutral-100 dark:hover:bg-neutral-900 dark:focus:bg-neutral-900"
|
|
2806
2812
|
};
|
|
2807
|
-
const _hoisted_2$
|
|
2808
|
-
const _sfc_main$
|
|
2813
|
+
const _hoisted_2$a = ["href"];
|
|
2814
|
+
const _sfc_main$p = {
|
|
2809
2815
|
__name: "DropdownLink",
|
|
2810
2816
|
props: {
|
|
2811
2817
|
href: String,
|
|
@@ -2814,7 +2820,7 @@ const _sfc_main$n = {
|
|
|
2814
2820
|
setup(__props) {
|
|
2815
2821
|
return (_ctx, _cache) => {
|
|
2816
2822
|
return openBlock(), createElementBlock("div", null, [
|
|
2817
|
-
__props.as == "button" ? (openBlock(), createElementBlock("button", _hoisted_1$
|
|
2823
|
+
__props.as == "button" ? (openBlock(), createElementBlock("button", _hoisted_1$e, [
|
|
2818
2824
|
renderSlot(_ctx.$slots, "default")
|
|
2819
2825
|
])) : __props.as == "a" ? (openBlock(), createElementBlock("a", {
|
|
2820
2826
|
key: 1,
|
|
@@ -2822,7 +2828,7 @@ const _sfc_main$n = {
|
|
|
2822
2828
|
class: "block px-4 py-2 text-sm leading-5 text-neutral-700 transition duration-150 ease-in-out hover:bg-neutral-100 focus:bg-neutral-100 focus:outline-none dark:text-neutral-100 dark:hover:bg-neutral-900 dark:focus:bg-neutral-900"
|
|
2823
2829
|
}, [
|
|
2824
2830
|
renderSlot(_ctx.$slots, "default")
|
|
2825
|
-
], 8, _hoisted_2$
|
|
2831
|
+
], 8, _hoisted_2$a)) : (openBlock(), createBlock(unref(Link), {
|
|
2826
2832
|
key: 2,
|
|
2827
2833
|
href: __props.href,
|
|
2828
2834
|
class: "block px-4 py-2 text-sm leading-5 text-neutral-700 transition duration-150 ease-in-out hover:bg-neutral-100 focus:bg-neutral-100 focus:outline-none dark:text-neutral-100 dark:hover:bg-neutral-900 dark:focus:bg-neutral-900"
|
|
@@ -2836,20 +2842,20 @@ const _sfc_main$n = {
|
|
|
2836
2842
|
};
|
|
2837
2843
|
}
|
|
2838
2844
|
};
|
|
2839
|
-
const _hoisted_1$
|
|
2840
|
-
const _hoisted_2$
|
|
2841
|
-
const _hoisted_3$
|
|
2845
|
+
const _hoisted_1$d = { class: "md:grid md:grid-cols-3 md:gap-6" };
|
|
2846
|
+
const _hoisted_2$9 = { class: "mt-5 md:col-span-2 md:mt-0" };
|
|
2847
|
+
const _hoisted_3$6 = { class: "grid grid-cols-6 gap-6" };
|
|
2842
2848
|
const _hoisted_4$4 = {
|
|
2843
2849
|
key: 0,
|
|
2844
2850
|
class: "flex items-center justify-start rounded-b-lg border border-t-0 border-neutral-200 bg-neutral-50 px-3 pb-6 text-end dark:border-neutral-800 dark:bg-neutral-900/60 sm:rounded-bl-md sm:rounded-br-md"
|
|
2845
2851
|
};
|
|
2846
|
-
const _sfc_main$
|
|
2852
|
+
const _sfc_main$o = {
|
|
2847
2853
|
__name: "FormSection",
|
|
2848
2854
|
emits: ["submitted"],
|
|
2849
2855
|
setup(__props) {
|
|
2850
2856
|
const hasActions = computed(() => !!useSlots().actions);
|
|
2851
2857
|
return (_ctx, _cache) => {
|
|
2852
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2858
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
2853
2859
|
createVNode(SectionTitle, null, {
|
|
2854
2860
|
title: withCtx(() => [
|
|
2855
2861
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -2859,14 +2865,14 @@ const _sfc_main$m = {
|
|
|
2859
2865
|
]),
|
|
2860
2866
|
_: 3
|
|
2861
2867
|
}),
|
|
2862
|
-
createElementVNode("div", _hoisted_2$
|
|
2868
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
2863
2869
|
createElementVNode("form", {
|
|
2864
2870
|
onSubmit: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("submitted"), ["prevent"]))
|
|
2865
2871
|
}, [
|
|
2866
2872
|
createElementVNode("div", {
|
|
2867
2873
|
class: normalizeClass(["rounded-lg border border-neutral-200 bg-white px-4 py-5 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 sm:p-6", hasActions.value ? "sm:rounded-tl-md sm:rounded-tr-md" : "sm:rounded-md"])
|
|
2868
2874
|
}, [
|
|
2869
|
-
createElementVNode("div", _hoisted_3$
|
|
2875
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
2870
2876
|
renderSlot(_ctx.$slots, "form")
|
|
2871
2877
|
])
|
|
2872
2878
|
], 2),
|
|
@@ -2879,8 +2885,8 @@ const _sfc_main$m = {
|
|
|
2879
2885
|
};
|
|
2880
2886
|
}
|
|
2881
2887
|
};
|
|
2882
|
-
const _hoisted_1$
|
|
2883
|
-
const _sfc_main$
|
|
2888
|
+
const _hoisted_1$c = { class: "text-sm text-red-600 dark:text-neutral-100" };
|
|
2889
|
+
const _sfc_main$n = {
|
|
2884
2890
|
__name: "InputError",
|
|
2885
2891
|
props: {
|
|
2886
2892
|
message: String
|
|
@@ -2888,33 +2894,33 @@ const _sfc_main$l = {
|
|
|
2888
2894
|
setup(__props) {
|
|
2889
2895
|
return (_ctx, _cache) => {
|
|
2890
2896
|
return withDirectives((openBlock(), createElementBlock("div", null, [
|
|
2891
|
-
createElementVNode("p", _hoisted_1$
|
|
2897
|
+
createElementVNode("p", _hoisted_1$c, toDisplayString(__props.message), 1)
|
|
2892
2898
|
], 512)), [
|
|
2893
2899
|
[vShow, __props.message]
|
|
2894
2900
|
]);
|
|
2895
2901
|
};
|
|
2896
2902
|
}
|
|
2897
2903
|
};
|
|
2898
|
-
const _hoisted_1$
|
|
2899
|
-
const _hoisted_2$
|
|
2900
|
-
const _hoisted_3$
|
|
2901
|
-
const _sfc_main$
|
|
2904
|
+
const _hoisted_1$b = { class: "block text-sm font-medium text-neutral-700 dark:text-neutral-100" };
|
|
2905
|
+
const _hoisted_2$8 = { key: 0 };
|
|
2906
|
+
const _hoisted_3$5 = { key: 1 };
|
|
2907
|
+
const _sfc_main$m = {
|
|
2902
2908
|
__name: "InputLabel",
|
|
2903
2909
|
props: {
|
|
2904
2910
|
value: String
|
|
2905
2911
|
},
|
|
2906
2912
|
setup(__props) {
|
|
2907
2913
|
return (_ctx, _cache) => {
|
|
2908
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
2909
|
-
__props.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2914
|
+
return openBlock(), createElementBlock("label", _hoisted_1$b, [
|
|
2915
|
+
__props.value ? (openBlock(), createElementBlock("span", _hoisted_2$8, toDisplayString(__props.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_3$5, [
|
|
2910
2916
|
renderSlot(_ctx.$slots, "default")
|
|
2911
2917
|
]))
|
|
2912
2918
|
]);
|
|
2913
2919
|
};
|
|
2914
2920
|
}
|
|
2915
2921
|
};
|
|
2916
|
-
const _hoisted_1$
|
|
2917
|
-
const _sfc_main$
|
|
2922
|
+
const _hoisted_1$a = ["href", "title", "target", "rel"];
|
|
2923
|
+
const _sfc_main$l = /* @__PURE__ */ Object.assign({
|
|
2918
2924
|
inheritAttrs: false
|
|
2919
2925
|
}, {
|
|
2920
2926
|
__name: "LinkButton",
|
|
@@ -2983,19 +2989,19 @@ const _sfc_main$j = /* @__PURE__ */ Object.assign({
|
|
|
2983
2989
|
class: linkClasses.value
|
|
2984
2990
|
}), [
|
|
2985
2991
|
renderSlot(_ctx.$slots, "default")
|
|
2986
|
-
], 16, _hoisted_1$
|
|
2992
|
+
], 16, _hoisted_1$a));
|
|
2987
2993
|
};
|
|
2988
2994
|
}
|
|
2989
2995
|
});
|
|
2990
|
-
const _hoisted_1$
|
|
2991
|
-
const _hoisted_2$
|
|
2992
|
-
const _sfc_main$
|
|
2996
|
+
const _hoisted_1$9 = { class: "hidden sm:block" };
|
|
2997
|
+
const _hoisted_2$7 = { class: "py-8" };
|
|
2998
|
+
const _sfc_main$k = {
|
|
2993
2999
|
__name: "SectionBorder",
|
|
2994
3000
|
setup(__props) {
|
|
2995
3001
|
return (_ctx, _cache) => {
|
|
2996
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2997
|
-
createElementVNode("div", _hoisted_2$
|
|
2998
|
-
createVNode(_sfc_main$
|
|
3002
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
3003
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
3004
|
+
createVNode(_sfc_main$P)
|
|
2999
3005
|
])
|
|
3000
3006
|
]);
|
|
3001
3007
|
};
|
|
@@ -3044,12 +3050,12 @@ function provideSidebarContext(defaultOpen = true) {
|
|
|
3044
3050
|
function useSidebar() {
|
|
3045
3051
|
return inject(SIDEBAR_CONTEXT_KEY, fallbackContext);
|
|
3046
3052
|
}
|
|
3047
|
-
const _hoisted_1$
|
|
3048
|
-
const _hoisted_2$
|
|
3053
|
+
const _hoisted_1$8 = ["data-state", "data-collapsible", "data-variant", "data-side"];
|
|
3054
|
+
const _hoisted_2$6 = {
|
|
3049
3055
|
"data-sidebar": "sidebar",
|
|
3050
3056
|
class: "bg-sidebar text-sidebar-foreground flex h-full w-full flex-col group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
|
|
3051
3057
|
};
|
|
3052
|
-
const _sfc_main$
|
|
3058
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
3053
3059
|
...{ inheritAttrs: false },
|
|
3054
3060
|
__name: "Sidebar",
|
|
3055
3061
|
props: {
|
|
@@ -3097,15 +3103,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
3097
3103
|
props.class
|
|
3098
3104
|
]
|
|
3099
3105
|
}, _ctx.$attrs), [
|
|
3100
|
-
createElementVNode("div", _hoisted_2$
|
|
3106
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
3101
3107
|
renderSlot(_ctx.$slots, "default")
|
|
3102
3108
|
])
|
|
3103
3109
|
], 16)
|
|
3104
|
-
], 8, _hoisted_1$
|
|
3110
|
+
], 8, _hoisted_1$8));
|
|
3105
3111
|
};
|
|
3106
3112
|
}
|
|
3107
3113
|
});
|
|
3108
|
-
const _sfc_main$
|
|
3114
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
3109
3115
|
__name: "SidebarContent",
|
|
3110
3116
|
props: {
|
|
3111
3117
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3123,7 +3129,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3123
3129
|
};
|
|
3124
3130
|
}
|
|
3125
3131
|
});
|
|
3126
|
-
const _sfc_main$
|
|
3132
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
3127
3133
|
__name: "SidebarFooter",
|
|
3128
3134
|
props: {
|
|
3129
3135
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3141,7 +3147,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3141
3147
|
};
|
|
3142
3148
|
}
|
|
3143
3149
|
});
|
|
3144
|
-
const _sfc_main$
|
|
3150
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
3145
3151
|
__name: "SidebarGroup",
|
|
3146
3152
|
props: {
|
|
3147
3153
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3159,7 +3165,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3159
3165
|
};
|
|
3160
3166
|
}
|
|
3161
3167
|
});
|
|
3162
|
-
const _sfc_main$
|
|
3168
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
3163
3169
|
__name: "SidebarGroupContent",
|
|
3164
3170
|
props: {
|
|
3165
3171
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3177,7 +3183,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3177
3183
|
};
|
|
3178
3184
|
}
|
|
3179
3185
|
});
|
|
3180
|
-
const _sfc_main$
|
|
3186
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3181
3187
|
...{ inheritAttrs: false },
|
|
3182
3188
|
__name: "SidebarGroupLabel",
|
|
3183
3189
|
props: {
|
|
@@ -3223,7 +3229,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3223
3229
|
};
|
|
3224
3230
|
}
|
|
3225
3231
|
});
|
|
3226
|
-
const _sfc_main$
|
|
3232
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3227
3233
|
__name: "SidebarHeader",
|
|
3228
3234
|
props: {
|
|
3229
3235
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3241,7 +3247,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3241
3247
|
};
|
|
3242
3248
|
}
|
|
3243
3249
|
});
|
|
3244
|
-
const _sfc_main$
|
|
3250
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3245
3251
|
__name: "SidebarInset",
|
|
3246
3252
|
props: {
|
|
3247
3253
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3262,7 +3268,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3262
3268
|
};
|
|
3263
3269
|
}
|
|
3264
3270
|
});
|
|
3265
|
-
const _sfc_main$
|
|
3271
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3266
3272
|
__name: "SidebarMenu",
|
|
3267
3273
|
props: {
|
|
3268
3274
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3280,8 +3286,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3280
3286
|
};
|
|
3281
3287
|
}
|
|
3282
3288
|
});
|
|
3283
|
-
const _hoisted_1$
|
|
3284
|
-
const _sfc_main$
|
|
3289
|
+
const _hoisted_1$7 = ["href", "target", "rel"];
|
|
3290
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3285
3291
|
...{ inheritAttrs: false },
|
|
3286
3292
|
__name: "SidebarMenuButton",
|
|
3287
3293
|
props: {
|
|
@@ -3354,7 +3360,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3354
3360
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3355
3361
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
3356
3362
|
])
|
|
3357
|
-
], 16, _hoisted_1$
|
|
3363
|
+
], 16, _hoisted_1$7)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
3358
3364
|
key: 3,
|
|
3359
3365
|
type: "button"
|
|
3360
3366
|
}, sharedAttrs.value), [
|
|
@@ -3366,7 +3372,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3366
3372
|
};
|
|
3367
3373
|
}
|
|
3368
3374
|
});
|
|
3369
|
-
const _sfc_main$
|
|
3375
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
3370
3376
|
__name: "SidebarMenuItem",
|
|
3371
3377
|
props: {
|
|
3372
3378
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3384,7 +3390,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3384
3390
|
};
|
|
3385
3391
|
}
|
|
3386
3392
|
});
|
|
3387
|
-
const _sfc_main$
|
|
3393
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3388
3394
|
...{ inheritAttrs: false },
|
|
3389
3395
|
__name: "SidebarProvider",
|
|
3390
3396
|
props: {
|
|
@@ -3512,7 +3518,7 @@ const __iconNode = [
|
|
|
3512
3518
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
3513
3519
|
];
|
|
3514
3520
|
const Search = createLucideIcon("search", __iconNode);
|
|
3515
|
-
const _sfc_main$
|
|
3521
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3516
3522
|
__name: "SidebarTrigger",
|
|
3517
3523
|
props: {
|
|
3518
3524
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
@@ -3521,7 +3527,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3521
3527
|
const props = __props;
|
|
3522
3528
|
const { state, toggleSidebar } = useSidebar();
|
|
3523
3529
|
return (_ctx, _cache) => {
|
|
3524
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3530
|
+
return openBlock(), createBlock(_sfc_main$J, {
|
|
3525
3531
|
"data-sidebar": "trigger",
|
|
3526
3532
|
"data-slot": "sidebar-trigger",
|
|
3527
3533
|
variant: "ghost",
|
|
@@ -3538,14 +3544,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3538
3544
|
};
|
|
3539
3545
|
}
|
|
3540
3546
|
});
|
|
3541
|
-
const _hoisted_1$
|
|
3542
|
-
const _hoisted_2$
|
|
3543
|
-
const _hoisted_3$
|
|
3547
|
+
const _hoisted_1$6 = { class: "rounded-xl border border-neutral-200 bg-white/80 px-6 py-4 backdrop-blur-sm dark:border-neutral-800 dark:bg-neutral-950/80" };
|
|
3548
|
+
const _hoisted_2$5 = { class: "flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center" };
|
|
3549
|
+
const _hoisted_3$4 = { class: "flex items-center gap-3" };
|
|
3544
3550
|
const _hoisted_4$3 = { class: "text-sm font-medium text-neutral-700 dark:text-neutral-100" };
|
|
3545
3551
|
const _hoisted_5$3 = { class: "flex flex-wrap items-center gap-2" };
|
|
3546
3552
|
const _hoisted_6$3 = ["onClick"];
|
|
3547
3553
|
const _hoisted_7$3 = { class: "text-xs text-neutral-500 dark:text-neutral-200" };
|
|
3548
|
-
const _sfc_main$
|
|
3554
|
+
const _sfc_main$6 = {
|
|
3549
3555
|
__name: "SortControls",
|
|
3550
3556
|
props: {
|
|
3551
3557
|
fields: {
|
|
@@ -3586,9 +3592,9 @@ const _sfc_main$4 = {
|
|
|
3586
3592
|
emit("sort", fieldKey);
|
|
3587
3593
|
};
|
|
3588
3594
|
return (_ctx, _cache) => {
|
|
3589
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3590
|
-
createElementVNode("div", _hoisted_2$
|
|
3591
|
-
createElementVNode("div", _hoisted_3$
|
|
3595
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
3596
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
3597
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
3592
3598
|
createElementVNode("label", _hoisted_4$3, toDisplayString(__props.sortByLabel) + ":", 1),
|
|
3593
3599
|
createElementVNode("div", _hoisted_5$3, [
|
|
3594
3600
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fields, (field) => {
|
|
@@ -3619,9 +3625,9 @@ const _sfc_main$4 = {
|
|
|
3619
3625
|
};
|
|
3620
3626
|
}
|
|
3621
3627
|
};
|
|
3622
|
-
const _hoisted_1$
|
|
3623
|
-
const _hoisted_2$
|
|
3624
|
-
const _sfc_main$
|
|
3628
|
+
const _hoisted_1$5 = { class: "flex items-center space-x-1" };
|
|
3629
|
+
const _hoisted_2$4 = { class: "flex flex-col" };
|
|
3630
|
+
const _sfc_main$5 = {
|
|
3625
3631
|
__name: "ThSortable",
|
|
3626
3632
|
props: {
|
|
3627
3633
|
field: {
|
|
@@ -3653,11 +3659,11 @@ const _sfc_main$3 = {
|
|
|
3653
3659
|
class: "cursor-pointer px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-neutral-500 transition-colors duration-150 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-900",
|
|
3654
3660
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("sort", __props.field))
|
|
3655
3661
|
}, [
|
|
3656
|
-
createElementVNode("div", _hoisted_1$
|
|
3662
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
3657
3663
|
createElementVNode("span", null, [
|
|
3658
3664
|
renderSlot(_ctx.$slots, "default")
|
|
3659
3665
|
]),
|
|
3660
|
-
createElementVNode("div", _hoisted_2$
|
|
3666
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
3661
3667
|
isCurrentSort.value && __props.currentDirection === "asc" ? (openBlock(), createBlock(unref(ChevronUpIcon), {
|
|
3662
3668
|
key: 0,
|
|
3663
3669
|
class: normalizeClass([sortIconClass.value, "w-3 h-3"])
|
|
@@ -3672,9 +3678,9 @@ const _sfc_main$3 = {
|
|
|
3672
3678
|
};
|
|
3673
3679
|
}
|
|
3674
3680
|
};
|
|
3675
|
-
const _hoisted_1$
|
|
3676
|
-
const _hoisted_2$
|
|
3677
|
-
const _hoisted_3$
|
|
3681
|
+
const _hoisted_1$4 = { class: "flex flex-col lg:items-center items-start justify-between gap-4 lg:flex-row" };
|
|
3682
|
+
const _hoisted_2$3 = { class: "flex w-full lg:max-w-md" };
|
|
3683
|
+
const _hoisted_3$3 = { class: "relative w-full" };
|
|
3678
3684
|
const _hoisted_4$2 = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3" };
|
|
3679
3685
|
const _hoisted_5$2 = ["placeholder"];
|
|
3680
3686
|
const _hoisted_6$2 = {
|
|
@@ -3694,7 +3700,7 @@ const _hoisted_9$2 = {
|
|
|
3694
3700
|
class: "ml-2"
|
|
3695
3701
|
};
|
|
3696
3702
|
const _hoisted_10$2 = { class: "font-medium text-neutral-700 dark:text-neutral-200" };
|
|
3697
|
-
const _sfc_main$
|
|
3703
|
+
const _sfc_main$4 = {
|
|
3698
3704
|
__name: "TableSearch",
|
|
3699
3705
|
props: {
|
|
3700
3706
|
modelValue: {
|
|
@@ -3750,9 +3756,9 @@ const _sfc_main$2 = {
|
|
|
3750
3756
|
return openBlock(), createElementBlock("div", {
|
|
3751
3757
|
class: normalizeClass(__props.cardClass)
|
|
3752
3758
|
}, [
|
|
3753
|
-
createElementVNode("div", _hoisted_1$
|
|
3754
|
-
createElementVNode("div", _hoisted_2$
|
|
3755
|
-
createElementVNode("div", _hoisted_3$
|
|
3759
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
3760
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
3761
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
3756
3762
|
createElementVNode("div", _hoisted_4$2, [
|
|
3757
3763
|
createVNode(unref(Search), { class: "h-5 w-5 text-neutral-400 dark:text-neutral-500" })
|
|
3758
3764
|
]),
|
|
@@ -3768,7 +3774,7 @@ const _sfc_main$2 = {
|
|
|
3768
3774
|
]),
|
|
3769
3775
|
__props.showDeletedToggle || __props.count !== null ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
3770
3776
|
__props.showDeletedToggle ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
3771
|
-
createVNode(_sfc_main$
|
|
3777
|
+
createVNode(_sfc_main$y, {
|
|
3772
3778
|
modelValue: showDeletedModel.value,
|
|
3773
3779
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showDeletedModel.value = $event),
|
|
3774
3780
|
label: __props.showDeletedLabel
|
|
@@ -3787,9 +3793,9 @@ const _sfc_main$2 = {
|
|
|
3787
3793
|
};
|
|
3788
3794
|
}
|
|
3789
3795
|
};
|
|
3790
|
-
const _hoisted_1$
|
|
3791
|
-
const _hoisted_2$
|
|
3792
|
-
const _hoisted_3$
|
|
3796
|
+
const _hoisted_1$3 = { class: "space-y-6" };
|
|
3797
|
+
const _hoisted_2$2 = { class: "min-w-full divide-y divide-neutral-200 dark:divide-neutral-800" };
|
|
3798
|
+
const _hoisted_3$2 = { class: "bg-neutral-50/80 dark:bg-neutral-900/80" };
|
|
3793
3799
|
const _hoisted_4$1 = {
|
|
3794
3800
|
key: 0,
|
|
3795
3801
|
class: "px-6 py-3 text-right text-[11px] font-semibold tracking-[0.12em] text-neutral-600 uppercase dark:text-neutral-200"
|
|
@@ -3817,7 +3823,7 @@ const _hoisted_12$1 = {
|
|
|
3817
3823
|
const _hoisted_13$1 = { class: "mb-4 inline-flex h-16 w-16 items-center justify-center rounded-full bg-neutral-100 dark:bg-neutral-900" };
|
|
3818
3824
|
const _hoisted_14$1 = { class: "mb-2 text-lg font-semibold text-neutral-950 dark:text-neutral-50" };
|
|
3819
3825
|
const _hoisted_15$1 = { class: "mb-4 text-neutral-600 dark:text-neutral-200" };
|
|
3820
|
-
const _sfc_main$
|
|
3826
|
+
const _sfc_main$3 = {
|
|
3821
3827
|
__name: "TableList",
|
|
3822
3828
|
props: {
|
|
3823
3829
|
data: {
|
|
@@ -3974,8 +3980,8 @@ const _sfc_main$1 = {
|
|
|
3974
3980
|
return "px-6 py-3 text-left text-[11px] font-semibold tracking-[0.12em] text-neutral-600 uppercase dark:text-neutral-200";
|
|
3975
3981
|
};
|
|
3976
3982
|
return (_ctx, _cache) => {
|
|
3977
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3978
|
-
__props.search ? (openBlock(), createBlock(_sfc_main$
|
|
3983
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
3984
|
+
__props.search ? (openBlock(), createBlock(_sfc_main$4, {
|
|
3979
3985
|
key: 0,
|
|
3980
3986
|
"model-value": searchQuery.value,
|
|
3981
3987
|
placeholder: __props.searchPlaceholder,
|
|
@@ -3997,14 +4003,14 @@ const _sfc_main$1 = {
|
|
|
3997
4003
|
createElementVNode("div", {
|
|
3998
4004
|
class: normalizeClass(["overflow-x-auto", __props.isCard ? "rounded-xl" : ""])
|
|
3999
4005
|
}, [
|
|
4000
|
-
createElementVNode("table", _hoisted_2$
|
|
4001
|
-
createElementVNode("thead", _hoisted_3$
|
|
4006
|
+
createElementVNode("table", _hoisted_2$2, [
|
|
4007
|
+
createElementVNode("thead", _hoisted_3$2, [
|
|
4002
4008
|
createElementVNode("tr", null, [
|
|
4003
4009
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
4004
4010
|
return openBlock(), createElementBlock(Fragment, {
|
|
4005
4011
|
key: column.key
|
|
4006
4012
|
}, [
|
|
4007
|
-
column.sortable ? (openBlock(), createBlock(_sfc_main$
|
|
4013
|
+
column.sortable ? (openBlock(), createBlock(_sfc_main$5, {
|
|
4008
4014
|
key: 0,
|
|
4009
4015
|
field: column.key,
|
|
4010
4016
|
"current-sort-field": __props.sortField,
|
|
@@ -4069,7 +4075,7 @@ const _sfc_main$1 = {
|
|
|
4069
4075
|
]),
|
|
4070
4076
|
createElementVNode("h3", _hoisted_14$1, toDisplayString(__props.emptyState.title), 1),
|
|
4071
4077
|
createElementVNode("p", _hoisted_15$1, toDisplayString(__props.emptyState.description), 1),
|
|
4072
|
-
__props.emptyState.actionText && __props.emptyState.actionUrl ? (openBlock(), createBlock(_sfc_main$
|
|
4078
|
+
__props.emptyState.actionText && __props.emptyState.actionUrl ? (openBlock(), createBlock(_sfc_main$l, {
|
|
4073
4079
|
key: 0,
|
|
4074
4080
|
href: __props.emptyState.actionUrl,
|
|
4075
4081
|
variant: "primary"
|
|
@@ -4085,9 +4091,9 @@ const _sfc_main$1 = {
|
|
|
4085
4091
|
};
|
|
4086
4092
|
}
|
|
4087
4093
|
};
|
|
4088
|
-
const _hoisted_1 = { class: "relative max-w-sm" };
|
|
4089
|
-
const _hoisted_2 = { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" };
|
|
4090
|
-
const _hoisted_3 = ["placeholder"];
|
|
4094
|
+
const _hoisted_1$2 = { class: "relative max-w-sm" };
|
|
4095
|
+
const _hoisted_2$1 = { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" };
|
|
4096
|
+
const _hoisted_3$1 = ["placeholder"];
|
|
4091
4097
|
const _hoisted_4 = { class: "min-w-full divide-y divide-neutral-200 dark:divide-neutral-800" };
|
|
4092
4098
|
const _hoisted_5 = { class: "bg-neutral-50 dark:bg-neutral-900" };
|
|
4093
4099
|
const _hoisted_6 = {
|
|
@@ -4118,7 +4124,7 @@ const _hoisted_15 = {
|
|
|
4118
4124
|
const _hoisted_16 = { class: "mb-4 inline-flex h-16 w-16 items-center justify-center rounded-full bg-neutral-100 dark:bg-neutral-900" };
|
|
4119
4125
|
const _hoisted_17 = { class: "mb-2 text-lg font-medium text-neutral-950 dark:text-neutral-50" };
|
|
4120
4126
|
const _hoisted_18 = { class: "mb-4 text-neutral-500 dark:text-neutral-200" };
|
|
4121
|
-
const _sfc_main = {
|
|
4127
|
+
const _sfc_main$2 = {
|
|
4122
4128
|
__name: "TableListForm",
|
|
4123
4129
|
props: {
|
|
4124
4130
|
data: {
|
|
@@ -4504,8 +4510,8 @@ const _sfc_main = {
|
|
|
4504
4510
|
__props.isCard ? "rounded-t-xl border-b border-neutral-200 bg-neutral-50/80 dark:border-neutral-800 dark:bg-neutral-900/80" : "mb-4 bg-white/80 backdrop-blur-sm dark:bg-neutral-950/80"
|
|
4505
4511
|
])
|
|
4506
4512
|
}, [
|
|
4507
|
-
createElementVNode("div", _hoisted_1, [
|
|
4508
|
-
createElementVNode("div", _hoisted_2, [
|
|
4513
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
4514
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
4509
4515
|
createVNode(unref(MagnifyingGlassIcon), { class: "h-4 w-4 text-neutral-400 dark:text-neutral-200" })
|
|
4510
4516
|
]),
|
|
4511
4517
|
withDirectives(createElementVNode("input", {
|
|
@@ -4513,7 +4519,7 @@ const _sfc_main = {
|
|
|
4513
4519
|
type: "text",
|
|
4514
4520
|
placeholder: __props.searchPlaceholder,
|
|
4515
4521
|
class: "block w-full rounded-lg border border-neutral-200 bg-white py-2 pl-9 pr-3 text-sm text-neutral-900 placeholder:text-neutral-500 transition-colors duration-200 focus:border-neutral-900 focus:outline-none focus:ring-2 focus:ring-neutral-950/10 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50 dark:placeholder:text-neutral-500 dark:focus:border-neutral-100 dark:focus:ring-neutral-100/10"
|
|
4516
|
-
}, null, 8, _hoisted_3), [
|
|
4522
|
+
}, null, 8, _hoisted_3$1), [
|
|
4517
4523
|
[vModelText, searchQuery.value]
|
|
4518
4524
|
])
|
|
4519
4525
|
])
|
|
@@ -4529,7 +4535,7 @@ const _sfc_main = {
|
|
|
4529
4535
|
return openBlock(), createElementBlock(Fragment, {
|
|
4530
4536
|
key: column.key
|
|
4531
4537
|
}, [
|
|
4532
|
-
column.sortable ? (openBlock(), createBlock(_sfc_main$
|
|
4538
|
+
column.sortable ? (openBlock(), createBlock(_sfc_main$5, {
|
|
4533
4539
|
key: 0,
|
|
4534
4540
|
field: column.key,
|
|
4535
4541
|
"current-sort-field": localSortField.value,
|
|
@@ -4563,7 +4569,7 @@ const _sfc_main = {
|
|
|
4563
4569
|
isEditingRow(item, index) && column.slot && unref(slots)[getEditSlotName(column)] ? renderSlot(_ctx.$slots, getEditSlotName(column), mergeProps({
|
|
4564
4570
|
key: 0,
|
|
4565
4571
|
ref_for: true
|
|
4566
|
-
}, getSlotBindings(item, column, index))) : isEditingRow(item, index) && column.input ? (openBlock(), createBlock(_sfc_main$
|
|
4572
|
+
}, getSlotBindings(item, column, index))) : isEditingRow(item, index) && column.input ? (openBlock(), createBlock(_sfc_main$v, {
|
|
4567
4573
|
key: 1,
|
|
4568
4574
|
type: getInputType(column),
|
|
4569
4575
|
class: normalizeClass(getInputClass(column)),
|
|
@@ -4596,7 +4602,7 @@ const _sfc_main = {
|
|
|
4596
4602
|
key: 0,
|
|
4597
4603
|
ref_for: true
|
|
4598
4604
|
}, getSlotBindings(item, null, index))) : createCommentVNode("", true),
|
|
4599
|
-
__props.rowEditing && isEditingRow(item, index) ? (openBlock(), createBlock(_sfc_main$
|
|
4605
|
+
__props.rowEditing && isEditingRow(item, index) ? (openBlock(), createBlock(_sfc_main$J, {
|
|
4600
4606
|
key: 1,
|
|
4601
4607
|
type: "button",
|
|
4602
4608
|
variant: "outline",
|
|
@@ -4609,7 +4615,7 @@ const _sfc_main = {
|
|
|
4609
4615
|
createVNode(unref(CheckIcon), { class: "size-4" })
|
|
4610
4616
|
]),
|
|
4611
4617
|
_: 1
|
|
4612
|
-
}, 8, ["title", "aria-label", "onClick"])) : __props.rowEditing ? (openBlock(), createBlock(_sfc_main$
|
|
4618
|
+
}, 8, ["title", "aria-label", "onClick"])) : __props.rowEditing ? (openBlock(), createBlock(_sfc_main$J, {
|
|
4613
4619
|
key: 2,
|
|
4614
4620
|
type: "button",
|
|
4615
4621
|
variant: "secondary",
|
|
@@ -4636,7 +4642,7 @@ const _sfc_main = {
|
|
|
4636
4642
|
]),
|
|
4637
4643
|
createElementVNode("h3", _hoisted_17, toDisplayString(__props.emptyState.title), 1),
|
|
4638
4644
|
createElementVNode("p", _hoisted_18, toDisplayString(__props.emptyState.description), 1),
|
|
4639
|
-
__props.emptyState.actionText && __props.emptyState.actionUrl ? (openBlock(), createBlock(_sfc_main$
|
|
4645
|
+
__props.emptyState.actionText && __props.emptyState.actionUrl ? (openBlock(), createBlock(_sfc_main$l, {
|
|
4640
4646
|
key: 0,
|
|
4641
4647
|
href: __props.emptyState.actionUrl,
|
|
4642
4648
|
variant: "primary"
|
|
@@ -4651,6 +4657,125 @@ const _sfc_main = {
|
|
|
4651
4657
|
};
|
|
4652
4658
|
}
|
|
4653
4659
|
};
|
|
4660
|
+
const _hoisted_1$1 = { class: "grid gap-1" };
|
|
4661
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4662
|
+
__name: "Toast",
|
|
4663
|
+
props: {
|
|
4664
|
+
class: { type: [Boolean, null, String, Object, Array] },
|
|
4665
|
+
variant: {}
|
|
4666
|
+
},
|
|
4667
|
+
emits: ["close"],
|
|
4668
|
+
setup(__props) {
|
|
4669
|
+
const props = __props;
|
|
4670
|
+
const variants = {
|
|
4671
|
+
default: "bg-background border-border text-foreground",
|
|
4672
|
+
destructive: "bg-destructive text-destructive-foreground border-destructive",
|
|
4673
|
+
success: "bg-green-500 text-white border-green-600 dark:bg-green-700 dark:border-green-800",
|
|
4674
|
+
error: "bg-red-500 text-white border-red-600 dark:bg-red-900 dark:border-red-950"
|
|
4675
|
+
};
|
|
4676
|
+
return (_ctx, _cache) => {
|
|
4677
|
+
return openBlock(), createElementBlock("div", {
|
|
4678
|
+
class: normalizeClass([
|
|
4679
|
+
"relative flex w-full max-w-sm items-center justify-between space-x-4 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all",
|
|
4680
|
+
variants[__props.variant || "default"],
|
|
4681
|
+
props.class
|
|
4682
|
+
]),
|
|
4683
|
+
role: "alert"
|
|
4684
|
+
}, [
|
|
4685
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
4686
|
+
renderSlot(_ctx.$slots, "default")
|
|
4687
|
+
]),
|
|
4688
|
+
createElementVNode("button", {
|
|
4689
|
+
class: "absolute top-2 right-2 rounded-md opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
4690
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
4691
|
+
}, [..._cache[1] || (_cache[1] = [
|
|
4692
|
+
createElementVNode("svg", {
|
|
4693
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4694
|
+
width: "24",
|
|
4695
|
+
height: "24",
|
|
4696
|
+
viewBox: "0 0 24 24",
|
|
4697
|
+
fill: "none",
|
|
4698
|
+
stroke: "currentColor",
|
|
4699
|
+
"stroke-width": "2",
|
|
4700
|
+
"stroke-linecap": "round",
|
|
4701
|
+
"stroke-linejoin": "round",
|
|
4702
|
+
class: "h-4 w-4"
|
|
4703
|
+
}, [
|
|
4704
|
+
createElementVNode("line", {
|
|
4705
|
+
x1: "18",
|
|
4706
|
+
y1: "6",
|
|
4707
|
+
x2: "6",
|
|
4708
|
+
y2: "18"
|
|
4709
|
+
}),
|
|
4710
|
+
createElementVNode("line", {
|
|
4711
|
+
x1: "6",
|
|
4712
|
+
y1: "6",
|
|
4713
|
+
x2: "18",
|
|
4714
|
+
y2: "18"
|
|
4715
|
+
})
|
|
4716
|
+
], -1),
|
|
4717
|
+
createElementVNode("span", { class: "sr-only" }, "Close", -1)
|
|
4718
|
+
])])
|
|
4719
|
+
], 2);
|
|
4720
|
+
};
|
|
4721
|
+
}
|
|
4722
|
+
});
|
|
4723
|
+
const _hoisted_1 = { class: "fixed top-4 right-4 z-50 space-y-2" };
|
|
4724
|
+
const _hoisted_2 = { class: "font-semibold" };
|
|
4725
|
+
const _hoisted_3 = { class: "text-sm opacity-90" };
|
|
4726
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4727
|
+
__name: "ToastContainer",
|
|
4728
|
+
setup(__props, { expose: __expose }) {
|
|
4729
|
+
const toasts = ref([]);
|
|
4730
|
+
const addToast = (message, options = {}) => {
|
|
4731
|
+
const {
|
|
4732
|
+
variant = "success",
|
|
4733
|
+
duration = 5e3,
|
|
4734
|
+
title
|
|
4735
|
+
} = options;
|
|
4736
|
+
const id = Date.now().toString();
|
|
4737
|
+
const toast = {
|
|
4738
|
+
id,
|
|
4739
|
+
title: title || (variant === "error" || variant === "destructive" ? "Error" : "Success"),
|
|
4740
|
+
message,
|
|
4741
|
+
variant,
|
|
4742
|
+
duration
|
|
4743
|
+
};
|
|
4744
|
+
toasts.value.push(toast);
|
|
4745
|
+
if (duration > 0) {
|
|
4746
|
+
setTimeout(() => {
|
|
4747
|
+
removeToast(id);
|
|
4748
|
+
}, duration);
|
|
4749
|
+
}
|
|
4750
|
+
};
|
|
4751
|
+
const removeToast = (id) => {
|
|
4752
|
+
const index = toasts.value.findIndex((toast) => toast.id === id);
|
|
4753
|
+
if (index > -1) {
|
|
4754
|
+
toasts.value.splice(index, 1);
|
|
4755
|
+
}
|
|
4756
|
+
};
|
|
4757
|
+
__expose({
|
|
4758
|
+
addToast
|
|
4759
|
+
});
|
|
4760
|
+
return (_ctx, _cache) => {
|
|
4761
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
4762
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(toasts.value, (toast) => {
|
|
4763
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
4764
|
+
key: toast.id,
|
|
4765
|
+
variant: toast.variant,
|
|
4766
|
+
onClose: ($event) => removeToast(toast.id)
|
|
4767
|
+
}, {
|
|
4768
|
+
default: withCtx(() => [
|
|
4769
|
+
createElementVNode("div", _hoisted_2, toDisplayString(toast.title), 1),
|
|
4770
|
+
createElementVNode("div", _hoisted_3, toDisplayString(toast.message), 1)
|
|
4771
|
+
]),
|
|
4772
|
+
_: 2
|
|
4773
|
+
}, 1032, ["variant", "onClose"]);
|
|
4774
|
+
}), 128))
|
|
4775
|
+
]);
|
|
4776
|
+
};
|
|
4777
|
+
}
|
|
4778
|
+
});
|
|
4654
4779
|
const plugin = {
|
|
4655
4780
|
install(app) {
|
|
4656
4781
|
for (const [name, component] of Object.entries(components)) {
|
|
@@ -4662,59 +4787,61 @@ const plugin = {
|
|
|
4662
4787
|
}
|
|
4663
4788
|
};
|
|
4664
4789
|
export {
|
|
4665
|
-
_sfc_main$
|
|
4666
|
-
_sfc_main$
|
|
4667
|
-
_sfc_main$
|
|
4668
|
-
_sfc_main$
|
|
4669
|
-
_sfc_main$
|
|
4670
|
-
_sfc_main$
|
|
4671
|
-
_sfc_main$
|
|
4672
|
-
_sfc_main$
|
|
4673
|
-
_sfc_main$
|
|
4674
|
-
_sfc_main$
|
|
4675
|
-
_sfc_main$
|
|
4676
|
-
_sfc_main$
|
|
4677
|
-
_sfc_main$
|
|
4678
|
-
_sfc_main$
|
|
4679
|
-
_sfc_main$
|
|
4680
|
-
_sfc_main$
|
|
4681
|
-
_sfc_main$
|
|
4790
|
+
_sfc_main$O as ActionCard,
|
|
4791
|
+
_sfc_main$N as ActionMessage,
|
|
4792
|
+
_sfc_main$L as ActionSection,
|
|
4793
|
+
_sfc_main$K as Badge,
|
|
4794
|
+
_sfc_main$J as Button,
|
|
4795
|
+
_sfc_main$Q as Card,
|
|
4796
|
+
_sfc_main$R as CardTabs,
|
|
4797
|
+
_sfc_main$I as Checkbox,
|
|
4798
|
+
_sfc_main$H as CheckboxInput,
|
|
4799
|
+
_sfc_main$u as CheckboxMultipleInput,
|
|
4800
|
+
_sfc_main$s as ConfirmationModal,
|
|
4801
|
+
_sfc_main$E as CustomSelect,
|
|
4802
|
+
_sfc_main$C as DateInput,
|
|
4803
|
+
_sfc_main$r as DialogModal,
|
|
4804
|
+
_sfc_main$P as Divider,
|
|
4805
|
+
_sfc_main$q as Dropdown,
|
|
4806
|
+
_sfc_main$p as DropdownLink,
|
|
4682
4807
|
plugin as EnosVueDefault,
|
|
4683
|
-
_sfc_main$
|
|
4684
|
-
_sfc_main$
|
|
4685
|
-
_sfc_main$
|
|
4686
|
-
_sfc_main$
|
|
4687
|
-
_sfc_main$
|
|
4688
|
-
_sfc_main$
|
|
4689
|
-
_sfc_main$
|
|
4690
|
-
_sfc_main$
|
|
4691
|
-
_sfc_main$
|
|
4692
|
-
_sfc_main$
|
|
4693
|
-
_sfc_main$
|
|
4808
|
+
_sfc_main$o as FormSection,
|
|
4809
|
+
_sfc_main$B as ImageInput,
|
|
4810
|
+
_sfc_main$n as InputError,
|
|
4811
|
+
_sfc_main$v as InputGroup,
|
|
4812
|
+
_sfc_main$m as InputLabel,
|
|
4813
|
+
_sfc_main$l as LinkButton,
|
|
4814
|
+
_sfc_main$t as Modal,
|
|
4815
|
+
_sfc_main$A as NotationInput,
|
|
4816
|
+
_sfc_main$z as RadioInput,
|
|
4817
|
+
_sfc_main$x as RadioMultipleInput,
|
|
4818
|
+
_sfc_main$k as SectionBorder,
|
|
4694
4819
|
SectionTitle,
|
|
4695
|
-
_sfc_main$
|
|
4696
|
-
_sfc_main$
|
|
4697
|
-
_sfc_main$
|
|
4698
|
-
_sfc_main$
|
|
4699
|
-
_sfc_main$
|
|
4700
|
-
_sfc_main$
|
|
4701
|
-
_sfc_main$
|
|
4702
|
-
_sfc_main$
|
|
4703
|
-
_sfc_main$
|
|
4704
|
-
_sfc_main$
|
|
4705
|
-
_sfc_main$
|
|
4706
|
-
_sfc_main$
|
|
4707
|
-
_sfc_main$
|
|
4708
|
-
_sfc_main$
|
|
4709
|
-
_sfc_main$
|
|
4710
|
-
_sfc_main$
|
|
4711
|
-
_sfc_main as TableListForm,
|
|
4712
|
-
_sfc_main$
|
|
4713
|
-
_sfc_main$
|
|
4714
|
-
_sfc_main$
|
|
4715
|
-
_sfc_main$
|
|
4716
|
-
_sfc_main$
|
|
4717
|
-
_sfc_main$
|
|
4820
|
+
_sfc_main$D as SelectInput,
|
|
4821
|
+
_sfc_main$j as Sidebar,
|
|
4822
|
+
_sfc_main$i as SidebarContent,
|
|
4823
|
+
_sfc_main$h as SidebarFooter,
|
|
4824
|
+
_sfc_main$g as SidebarGroup,
|
|
4825
|
+
_sfc_main$f as SidebarGroupContent,
|
|
4826
|
+
_sfc_main$e as SidebarGroupLabel,
|
|
4827
|
+
_sfc_main$d as SidebarHeader,
|
|
4828
|
+
_sfc_main$c as SidebarInset,
|
|
4829
|
+
_sfc_main$b as SidebarMenu,
|
|
4830
|
+
_sfc_main$a as SidebarMenuButton,
|
|
4831
|
+
_sfc_main$9 as SidebarMenuItem,
|
|
4832
|
+
_sfc_main$8 as SidebarProvider,
|
|
4833
|
+
_sfc_main$7 as SidebarTrigger,
|
|
4834
|
+
_sfc_main$6 as SortControls,
|
|
4835
|
+
_sfc_main$3 as TableList,
|
|
4836
|
+
_sfc_main$2 as TableListForm,
|
|
4837
|
+
_sfc_main$4 as TableSearch,
|
|
4838
|
+
_sfc_main$F as TextArea,
|
|
4839
|
+
_sfc_main$G as TextInput,
|
|
4840
|
+
_sfc_main$5 as ThSortable,
|
|
4841
|
+
_sfc_main$w as TinyEditor,
|
|
4842
|
+
_sfc_main$1 as Toast,
|
|
4843
|
+
_sfc_main as ToastContainer,
|
|
4844
|
+
_sfc_main$y as ToggleInput,
|
|
4718
4845
|
useSidebar
|
|
4719
4846
|
};
|
|
4720
4847
|
//# sourceMappingURL=index.js.map
|