@enos5/enos-vue 0.2.0 → 0.2.2
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/index.js +1220 -1276
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,163 +1,145 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { usePage as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { CheckCircleIcon as
|
|
5
|
-
const
|
|
1
|
+
import { ref as O, computed as g, watch as J, openBlock as a, createElementBlock as i, createElementVNode as o, Fragment as q, renderList as W, normalizeClass as S, normalizeStyle as Te, toDisplayString as V, createBlock as B, createCommentVNode as M, renderSlot as w, createVNode as F, Transition as re, withCtx as z, mergeProps as E, useSlots as ge, unref as I, withDirectives as ee, vShow as oe, watchEffect as Qe, onMounted as se, useAttrs as ne, vModelCheckbox as Ye, nextTick as ve, onBeforeUnmount as Je, Teleport as Ze, withModifiers as he, onUnmounted as Ae, isRef as be, createTextVNode as ue, resolveDynamicComponent as Be, vModelText as et } from "vue";
|
|
2
|
+
import { usePage as tt, Link as ye } from "@inertiajs/vue3";
|
|
3
|
+
import { useI18n as lt } from "vue-i18n";
|
|
4
|
+
import { CheckCircleIcon as at, ExclamationTriangleIcon as Le, XMarkIcon as Ie, LockClosedIcon as st, ChevronDownIcon as xe, PhotoIcon as nt, ExclamationCircleIcon as rt, ChevronUpIcon as De, MagnifyingGlassIcon as ot, CheckIcon as it, PencilSquareIcon as dt } from "@heroicons/vue/24/outline";
|
|
5
|
+
const ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
get ActionCard() {
|
|
8
|
-
return
|
|
8
|
+
return mt;
|
|
9
9
|
},
|
|
10
10
|
get ActionMessage() {
|
|
11
|
-
return
|
|
11
|
+
return vt;
|
|
12
12
|
},
|
|
13
13
|
get ActionSection() {
|
|
14
|
-
return
|
|
14
|
+
return At;
|
|
15
15
|
},
|
|
16
16
|
get ApplicationLogo() {
|
|
17
|
-
return
|
|
17
|
+
return Dt;
|
|
18
18
|
},
|
|
19
19
|
get AuthenticationCard() {
|
|
20
|
-
return
|
|
20
|
+
return Et;
|
|
21
21
|
},
|
|
22
22
|
get Badge() {
|
|
23
|
-
return
|
|
23
|
+
return Nt;
|
|
24
24
|
},
|
|
25
25
|
get Banner() {
|
|
26
|
-
return
|
|
26
|
+
return Gt;
|
|
27
|
+
},
|
|
28
|
+
get Button() {
|
|
29
|
+
return fe;
|
|
27
30
|
},
|
|
28
31
|
get Card() {
|
|
29
|
-
return
|
|
32
|
+
return je;
|
|
30
33
|
},
|
|
31
34
|
get CardTabs() {
|
|
32
|
-
return
|
|
35
|
+
return Me;
|
|
33
36
|
},
|
|
34
37
|
get Checkbox() {
|
|
35
|
-
return
|
|
38
|
+
return Yt;
|
|
36
39
|
},
|
|
37
40
|
get CheckboxInput() {
|
|
38
|
-
return
|
|
41
|
+
return Oe;
|
|
39
42
|
},
|
|
40
43
|
get CheckboxMultipleInput() {
|
|
41
|
-
return
|
|
44
|
+
return Pe;
|
|
42
45
|
},
|
|
43
46
|
get ConfirmationModal() {
|
|
44
|
-
return
|
|
47
|
+
return Dl;
|
|
45
48
|
},
|
|
46
49
|
get CustomSelect() {
|
|
47
|
-
return
|
|
48
|
-
},
|
|
49
|
-
get DangerButton() {
|
|
50
|
-
return vl;
|
|
50
|
+
return Fe;
|
|
51
51
|
},
|
|
52
52
|
get DateInput() {
|
|
53
|
-
return
|
|
53
|
+
return Ue;
|
|
54
54
|
},
|
|
55
55
|
get DialogModal() {
|
|
56
|
-
return
|
|
56
|
+
return El;
|
|
57
57
|
},
|
|
58
58
|
get Divider() {
|
|
59
|
-
return
|
|
59
|
+
return we;
|
|
60
60
|
},
|
|
61
61
|
get Dropdown() {
|
|
62
|
-
return
|
|
62
|
+
return Nl;
|
|
63
63
|
},
|
|
64
64
|
get DropdownLink() {
|
|
65
|
-
return
|
|
65
|
+
return Rl;
|
|
66
66
|
},
|
|
67
67
|
get EnosVue() {
|
|
68
|
-
return
|
|
68
|
+
return Ja;
|
|
69
69
|
},
|
|
70
70
|
get FormSection() {
|
|
71
|
-
return
|
|
71
|
+
return Gl;
|
|
72
72
|
},
|
|
73
73
|
get ImageInput() {
|
|
74
|
-
return
|
|
74
|
+
return Ke;
|
|
75
75
|
},
|
|
76
76
|
get InputError() {
|
|
77
|
-
return
|
|
77
|
+
return Ql;
|
|
78
78
|
},
|
|
79
79
|
get InputGroup() {
|
|
80
|
-
return
|
|
80
|
+
return pe;
|
|
81
81
|
},
|
|
82
82
|
get InputLabel() {
|
|
83
|
-
return
|
|
83
|
+
return ea;
|
|
84
|
+
},
|
|
85
|
+
get LinkButton() {
|
|
86
|
+
return Ce;
|
|
84
87
|
},
|
|
85
88
|
get Modal() {
|
|
86
|
-
return
|
|
89
|
+
return $e;
|
|
87
90
|
},
|
|
88
91
|
get NavLink() {
|
|
89
|
-
return
|
|
92
|
+
return la;
|
|
90
93
|
},
|
|
91
94
|
get NotationInput() {
|
|
92
|
-
return
|
|
93
|
-
},
|
|
94
|
-
get PrimaryButton() {
|
|
95
|
-
return Rl;
|
|
96
|
-
},
|
|
97
|
-
get PrimaryLinkButton() {
|
|
98
|
-
return ye;
|
|
95
|
+
return Re;
|
|
99
96
|
},
|
|
100
97
|
get RadioInput() {
|
|
101
|
-
return
|
|
98
|
+
return He;
|
|
102
99
|
},
|
|
103
100
|
get RadioMultipleInput() {
|
|
104
|
-
return
|
|
101
|
+
return qe;
|
|
105
102
|
},
|
|
106
103
|
get ResponsiveNavLink() {
|
|
107
|
-
return
|
|
108
|
-
},
|
|
109
|
-
get SecondaryButton() {
|
|
110
|
-
return Gl;
|
|
111
|
-
},
|
|
112
|
-
get SecondaryLinkButton() {
|
|
113
|
-
return Jl;
|
|
104
|
+
return sa;
|
|
114
105
|
},
|
|
115
106
|
get SectionBorder() {
|
|
116
|
-
return
|
|
107
|
+
return oa;
|
|
117
108
|
},
|
|
118
109
|
get SectionTitle() {
|
|
119
|
-
return
|
|
110
|
+
return Se;
|
|
120
111
|
},
|
|
121
112
|
get SelectInput() {
|
|
122
|
-
return
|
|
113
|
+
return Ne;
|
|
123
114
|
},
|
|
124
115
|
get SortControls() {
|
|
125
|
-
return
|
|
116
|
+
return pa;
|
|
126
117
|
},
|
|
127
118
|
get TableList() {
|
|
128
|
-
return
|
|
119
|
+
return Ia;
|
|
129
120
|
},
|
|
130
121
|
get TableListForm() {
|
|
131
|
-
return
|
|
132
|
-
},
|
|
133
|
-
get TertiaryButton() {
|
|
134
|
-
return Gs;
|
|
135
|
-
},
|
|
136
|
-
get TertiaryLinkButton() {
|
|
137
|
-
return Js;
|
|
122
|
+
return Ya;
|
|
138
123
|
},
|
|
139
124
|
get TextArea() {
|
|
140
|
-
return
|
|
125
|
+
return Ee;
|
|
141
126
|
},
|
|
142
127
|
get TextInput() {
|
|
143
|
-
return
|
|
128
|
+
return ze;
|
|
144
129
|
},
|
|
145
130
|
get ThSortable() {
|
|
146
|
-
return
|
|
147
|
-
},
|
|
148
|
-
get WarningButton() {
|
|
149
|
-
return Ys;
|
|
131
|
+
return Ve;
|
|
150
132
|
}
|
|
151
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
133
|
+
}, Symbol.toStringTag, { value: "Module" })), ct = { class: "border-b border-gray-200/80 bg-gray-50/80 p-2" }, ft = {
|
|
152
134
|
role: "tablist",
|
|
153
135
|
class: "flex rounded-lg bg-white shadow-sm ring-1 ring-gray-200/80 overflow-hidden"
|
|
154
|
-
},
|
|
136
|
+
}, gt = ["aria-selected", "tabindex", "onClick", "onKeydown"], Me = {
|
|
155
137
|
__name: "CardTabs",
|
|
156
138
|
props: {
|
|
157
139
|
tabs: {
|
|
158
140
|
type: Array,
|
|
159
141
|
default: () => [],
|
|
160
|
-
validator: (e) => e.every((
|
|
142
|
+
validator: (e) => e.every((s) => typeof s == "object" && s !== null && typeof s.value == "string" && s.value.length > 0 && typeof s.label == "string")
|
|
161
143
|
},
|
|
162
144
|
activeTab: {
|
|
163
145
|
type: String,
|
|
@@ -168,72 +150,72 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
168
150
|
"update:activeTab",
|
|
169
151
|
"tab-click"
|
|
170
152
|
],
|
|
171
|
-
setup(e, { emit:
|
|
172
|
-
const t = e, l =
|
|
173
|
-
|
|
153
|
+
setup(e, { emit: s }) {
|
|
154
|
+
const t = e, l = s, n = O([]), u = g(() => t.tabs.map((h) => h.value)), d = g(() => u.value.includes(t.activeTab) ? t.activeTab : u.value[0] ?? "");
|
|
155
|
+
J(d, (h) => {
|
|
174
156
|
h !== t.activeTab && l("update:activeTab", h);
|
|
175
157
|
}, { immediate: !0 });
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
},
|
|
158
|
+
const f = (h, k) => {
|
|
159
|
+
n.value[k] = h;
|
|
160
|
+
}, v = (h) => {
|
|
179
161
|
!h || h === t.activeTab || (l("update:activeTab", h), l("tab-click", h));
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
},
|
|
162
|
+
}, b = (h) => {
|
|
163
|
+
n.value[h]?.focus();
|
|
164
|
+
}, _ = (h, k) => {
|
|
183
165
|
if (t.tabs.length === 0)
|
|
184
166
|
return;
|
|
185
|
-
let
|
|
167
|
+
let T = k;
|
|
186
168
|
switch (h.key) {
|
|
187
169
|
case "ArrowRight":
|
|
188
170
|
case "ArrowDown":
|
|
189
|
-
|
|
171
|
+
T = (k + 1) % t.tabs.length;
|
|
190
172
|
break;
|
|
191
173
|
case "ArrowLeft":
|
|
192
174
|
case "ArrowUp":
|
|
193
|
-
|
|
175
|
+
T = (k - 1 + t.tabs.length) % t.tabs.length;
|
|
194
176
|
break;
|
|
195
177
|
case "Home":
|
|
196
|
-
|
|
178
|
+
T = 0;
|
|
197
179
|
break;
|
|
198
180
|
case "End":
|
|
199
|
-
|
|
181
|
+
T = t.tabs.length - 1;
|
|
200
182
|
break;
|
|
201
183
|
default:
|
|
202
184
|
return;
|
|
203
185
|
}
|
|
204
|
-
h.preventDefault(),
|
|
186
|
+
h.preventDefault(), v(t.tabs[T].value), b(T);
|
|
205
187
|
};
|
|
206
|
-
return (h,
|
|
207
|
-
|
|
208
|
-
(
|
|
209
|
-
key:
|
|
188
|
+
return (h, k) => (a(), i("div", ct, [
|
|
189
|
+
o("div", ft, [
|
|
190
|
+
(a(!0), i(q, null, W(e.tabs, (T, m) => (a(), i("button", {
|
|
191
|
+
key: T.value,
|
|
210
192
|
ref_for: !0,
|
|
211
|
-
ref: (L) =>
|
|
193
|
+
ref: (L) => f(L, m),
|
|
212
194
|
type: "button",
|
|
213
|
-
style:
|
|
195
|
+
style: Te({ width: `${100 / e.tabs.length}%` }),
|
|
214
196
|
role: "tab",
|
|
215
|
-
"aria-selected":
|
|
216
|
-
tabindex:
|
|
217
|
-
class:
|
|
197
|
+
"aria-selected": d.value === T.value,
|
|
198
|
+
tabindex: d.value === T.value ? 0 : -1,
|
|
199
|
+
class: S([
|
|
218
200
|
"px-4 py-3 text-center text-sm font-semibold tracking-wide transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/40 focus-visible:ring-inset",
|
|
219
|
-
|
|
201
|
+
d.value === T.value ? "bg-blue-50 text-blue-700 shadow-[inset_0_-2px_0_0_rgb(37_99_235)]" : "text-gray-700 hover:bg-gray-50",
|
|
220
202
|
{
|
|
221
|
-
"border-r border-gray-200/80":
|
|
203
|
+
"border-r border-gray-200/80": m !== e.tabs.length - 1
|
|
222
204
|
}
|
|
223
205
|
]),
|
|
224
|
-
onClick: (L) =>
|
|
225
|
-
onKeydown: (L) =>
|
|
226
|
-
},
|
|
206
|
+
onClick: (L) => v(T.value),
|
|
207
|
+
onKeydown: (L) => _(L, m)
|
|
208
|
+
}, V(T.label), 47, gt))), 128))
|
|
227
209
|
])
|
|
228
210
|
]));
|
|
229
211
|
}
|
|
230
|
-
},
|
|
212
|
+
}, yt = {
|
|
231
213
|
key: 0,
|
|
232
214
|
class: "mb-4"
|
|
233
|
-
},
|
|
215
|
+
}, pt = {
|
|
234
216
|
key: 1,
|
|
235
217
|
class: "text-lg font-semibold text-gray-900 mb-4"
|
|
236
|
-
},
|
|
218
|
+
}, je = {
|
|
237
219
|
__name: "Card",
|
|
238
220
|
props: {
|
|
239
221
|
title: {
|
|
@@ -263,7 +245,7 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
263
245
|
tabs: {
|
|
264
246
|
type: Array,
|
|
265
247
|
default: () => [],
|
|
266
|
-
validator: (e) => e.every((
|
|
248
|
+
validator: (e) => e.every((s) => typeof s == "object" && s !== null && typeof s.value == "string" && s.value.length > 0 && typeof s.label == "string")
|
|
267
249
|
},
|
|
268
250
|
activeTab: {
|
|
269
251
|
type: String,
|
|
@@ -275,29 +257,29 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
275
257
|
"tab-click"
|
|
276
258
|
],
|
|
277
259
|
setup(e) {
|
|
278
|
-
const
|
|
279
|
-
return
|
|
280
|
-
|
|
281
|
-
}), (
|
|
282
|
-
class:
|
|
260
|
+
const s = e, t = O(""), l = O("right"), n = g(() => s.tabs.findIndex((u) => u.value === s.activeTab));
|
|
261
|
+
return g(() => s.tabs.findIndex((u) => u.value === t.value)), J(n, (u, d) => {
|
|
262
|
+
d !== void 0 && d !== -1 && u !== -1 && u !== d && (l.value = u > d ? "right" : "left", t.value = s.activeTab);
|
|
263
|
+
}), (u, d) => (a(), i("div", {
|
|
264
|
+
class: S(["bg-white/80 backdrop-blur-sm border border-gray-200/60 rounded-xl shadow-[0_1px_3px_rgba(0,0,0,0.1)]", e.overflowClass, { "sticky top-6 self-start": e.sticky }, e.cardClass])
|
|
283
265
|
}, [
|
|
284
|
-
e.tabs.length > 0 ? (
|
|
266
|
+
e.tabs.length > 0 ? (a(), B(Me, {
|
|
285
267
|
key: 0,
|
|
286
268
|
tabs: e.tabs,
|
|
287
269
|
"active-tab": e.activeTab,
|
|
288
|
-
"onUpdate:activeTab":
|
|
289
|
-
onTabClick:
|
|
290
|
-
}, null, 8, ["tabs", "active-tab"])) :
|
|
291
|
-
|
|
292
|
-
class:
|
|
270
|
+
"onUpdate:activeTab": d[0] || (d[0] = (f) => u.$emit("update:activeTab", f)),
|
|
271
|
+
onTabClick: d[1] || (d[1] = (f) => u.$emit("tab-click", f))
|
|
272
|
+
}, null, 8, ["tabs", "active-tab"])) : M("", !0),
|
|
273
|
+
o("div", {
|
|
274
|
+
class: S(e.paddingClass)
|
|
293
275
|
}, [
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
])) : e.title ? (
|
|
297
|
-
|
|
298
|
-
class:
|
|
276
|
+
u.$slots.customTitle ? (a(), i("div", yt, [
|
|
277
|
+
w(u.$slots, "customTitle")
|
|
278
|
+
])) : e.title ? (a(), i("h3", pt, V(e.title), 1)) : M("", !0),
|
|
279
|
+
o("div", {
|
|
280
|
+
class: S(["relative", e.tabs.length > 0 ? "overflow-hidden" : "overflow-visible"])
|
|
299
281
|
}, [
|
|
300
|
-
|
|
282
|
+
F(re, {
|
|
301
283
|
"enter-active-class": "transition-all duration-200 ease-in-out",
|
|
302
284
|
"enter-from-class": l.value === "right" ? "translate-x-full opacity-0" : "-translate-x-full opacity-0",
|
|
303
285
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -306,12 +288,12 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
306
288
|
"leave-to-class": l.value === "right" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
|
|
307
289
|
mode: "out-in"
|
|
308
290
|
}, {
|
|
309
|
-
default:
|
|
310
|
-
(
|
|
291
|
+
default: z(() => [
|
|
292
|
+
(a(), i("div", {
|
|
311
293
|
key: e.activeTab,
|
|
312
|
-
class:
|
|
294
|
+
class: S([e.tabs.length > 0 ? "p-2" : "", e.contentClass])
|
|
313
295
|
}, [
|
|
314
|
-
|
|
296
|
+
w(u.$slots, "default")
|
|
315
297
|
], 2))
|
|
316
298
|
]),
|
|
317
299
|
_: 3
|
|
@@ -320,16 +302,16 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
320
302
|
], 2)
|
|
321
303
|
], 2));
|
|
322
304
|
}
|
|
323
|
-
},
|
|
305
|
+
}, we = /* @__PURE__ */ Object.assign({
|
|
324
306
|
inheritAttrs: !1
|
|
325
307
|
}, {
|
|
326
308
|
__name: "Divider",
|
|
327
309
|
setup(e) {
|
|
328
|
-
return (
|
|
329
|
-
|
|
310
|
+
return (s, t) => (a(), i("div", E({ class: "border-t border-gray-200" }, s.$attrs), [
|
|
311
|
+
w(s.$slots, "default")
|
|
330
312
|
], 16));
|
|
331
313
|
}
|
|
332
|
-
}),
|
|
314
|
+
}), mt = {
|
|
333
315
|
__name: "ActionCard",
|
|
334
316
|
props: {
|
|
335
317
|
title: {
|
|
@@ -342,123 +324,123 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
342
324
|
}
|
|
343
325
|
},
|
|
344
326
|
setup(e) {
|
|
345
|
-
const
|
|
346
|
-
return (t, l) => (
|
|
327
|
+
const s = ge();
|
|
328
|
+
return (t, l) => (a(), B(je, {
|
|
347
329
|
title: e.title,
|
|
348
330
|
"content-class": e.actionsClass
|
|
349
331
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
|
|
352
|
-
|
|
332
|
+
default: z(() => [
|
|
333
|
+
w(t.$slots, "default"),
|
|
334
|
+
I(s).danger ? (a(), B(we, {
|
|
353
335
|
key: 0,
|
|
354
336
|
class: "mt-6 pt-4"
|
|
355
337
|
}, {
|
|
356
|
-
default:
|
|
357
|
-
|
|
338
|
+
default: z(() => [
|
|
339
|
+
w(t.$slots, "danger")
|
|
358
340
|
]),
|
|
359
341
|
_: 3
|
|
360
|
-
})) :
|
|
342
|
+
})) : M("", !0)
|
|
361
343
|
]),
|
|
362
344
|
_: 3
|
|
363
345
|
}, 8, ["title", "content-class"]));
|
|
364
346
|
}
|
|
365
|
-
},
|
|
347
|
+
}, bt = { class: "text-sm text-gray-600" }, vt = {
|
|
366
348
|
__name: "ActionMessage",
|
|
367
349
|
props: {
|
|
368
350
|
on: Boolean
|
|
369
351
|
},
|
|
370
352
|
setup(e) {
|
|
371
|
-
return (
|
|
372
|
-
|
|
353
|
+
return (s, t) => (a(), i("div", null, [
|
|
354
|
+
F(re, {
|
|
373
355
|
"leave-active-class": "transition ease-in duration-1000",
|
|
374
356
|
"leave-from-class": "opacity-100",
|
|
375
357
|
"leave-to-class": "opacity-0"
|
|
376
358
|
}, {
|
|
377
|
-
default:
|
|
378
|
-
|
|
379
|
-
|
|
359
|
+
default: z(() => [
|
|
360
|
+
ee(o("div", bt, [
|
|
361
|
+
w(s.$slots, "default")
|
|
380
362
|
], 512), [
|
|
381
|
-
[
|
|
363
|
+
[oe, e.on]
|
|
382
364
|
])
|
|
383
365
|
]),
|
|
384
366
|
_: 3
|
|
385
367
|
})
|
|
386
368
|
]));
|
|
387
369
|
}
|
|
388
|
-
},
|
|
370
|
+
}, ke = (e, s) => {
|
|
389
371
|
const t = e.__vccOpts || e;
|
|
390
|
-
for (const [l,
|
|
391
|
-
t[l] =
|
|
372
|
+
for (const [l, n] of s)
|
|
373
|
+
t[l] = n;
|
|
392
374
|
return t;
|
|
393
|
-
},
|
|
394
|
-
function
|
|
395
|
-
return
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
375
|
+
}, ht = {}, xt = { class: "md:col-span-1 flex justify-between" }, wt = { class: "px-4 sm:px-0" }, kt = { class: "text-lg font-medium text-gray-900" }, St = { class: "mt-1 text-sm text-gray-600" }, $t = { class: "px-4 sm:px-0" };
|
|
376
|
+
function Ct(e, s) {
|
|
377
|
+
return a(), i("div", xt, [
|
|
378
|
+
o("div", wt, [
|
|
379
|
+
o("h3", kt, [
|
|
380
|
+
w(e.$slots, "title")
|
|
399
381
|
]),
|
|
400
|
-
|
|
401
|
-
|
|
382
|
+
o("p", St, [
|
|
383
|
+
w(e.$slots, "description")
|
|
402
384
|
])
|
|
403
385
|
]),
|
|
404
|
-
|
|
405
|
-
|
|
386
|
+
o("div", $t, [
|
|
387
|
+
w(e.$slots, "aside")
|
|
406
388
|
])
|
|
407
389
|
]);
|
|
408
390
|
}
|
|
409
|
-
const
|
|
391
|
+
const Se = /* @__PURE__ */ ke(ht, [["render", Ct]]), Vt = { class: "md:grid md:grid-cols-3 md:gap-6" }, _t = { class: "mt-5 md:mt-0 md:col-span-2" }, Tt = { class: "px-4 py-5 sm:p-6 bg-white shadow sm:rounded-lg" }, At = {
|
|
410
392
|
__name: "ActionSection",
|
|
411
393
|
setup(e) {
|
|
412
|
-
return (
|
|
413
|
-
|
|
414
|
-
title:
|
|
415
|
-
|
|
394
|
+
return (s, t) => (a(), i("div", Vt, [
|
|
395
|
+
F(Se, null, {
|
|
396
|
+
title: z(() => [
|
|
397
|
+
w(s.$slots, "title")
|
|
416
398
|
]),
|
|
417
|
-
description:
|
|
418
|
-
|
|
399
|
+
description: z(() => [
|
|
400
|
+
w(s.$slots, "description")
|
|
419
401
|
]),
|
|
420
402
|
_: 3
|
|
421
403
|
}),
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
404
|
+
o("div", _t, [
|
|
405
|
+
o("div", Tt, [
|
|
406
|
+
w(s.$slots, "content")
|
|
425
407
|
])
|
|
426
408
|
])
|
|
427
409
|
]));
|
|
428
410
|
}
|
|
429
|
-
},
|
|
411
|
+
}, Bt = {}, Lt = {
|
|
430
412
|
viewBox: "0 0 317 48",
|
|
431
413
|
fill: "none",
|
|
432
414
|
xmlns: "http://www.w3.org/2000/svg"
|
|
433
415
|
};
|
|
434
|
-
function
|
|
435
|
-
return
|
|
436
|
-
|
|
416
|
+
function It(e, s) {
|
|
417
|
+
return a(), i("svg", Lt, [...s[0] || (s[0] = [
|
|
418
|
+
o("path", {
|
|
437
419
|
d: "M74.09 30.04V13h-4.14v21H82.1v-3.96h-8.01zM95.379 19v1.77c-1.08-1.35-2.7-2.19-4.89-2.19-3.99 0-7.29 3.45-7.29 7.92s3.3 7.92 7.29 7.92c2.19 0 3.81-.84 4.89-2.19V34h3.87V19h-3.87zm-4.17 11.73c-2.37 0-4.14-1.71-4.14-4.23 0-2.52 1.77-4.23 4.14-4.23 2.4 0 4.17 1.71 4.17 4.23 0 2.52-1.77 4.23-4.17 4.23zM106.628 21.58V19h-3.87v15h3.87v-7.17c0-3.15 2.55-4.05 4.56-3.81V18.7c-1.89 0-3.78.84-4.56 2.88zM124.295 19v1.77c-1.08-1.35-2.7-2.19-4.89-2.19-3.99 0-7.29 3.45-7.29 7.92s3.3 7.92 7.29 7.92c2.19 0 3.81-.84 4.89-2.19V34h3.87V19h-3.87zm-4.17 11.73c-2.37 0-4.14-1.71-4.14-4.23 0-2.52 1.77-4.23 4.14-4.23 2.4 0 4.17 1.71 4.17 4.23 0 2.52-1.77 4.23-4.17 4.23zM141.544 19l-3.66 10.5-3.63-10.5h-4.26l5.7 15h4.41l5.7-15h-4.26zM150.354 28.09h11.31c.09-.51.15-1.02.15-1.59 0-4.41-3.15-7.92-7.59-7.92-4.71 0-7.92 3.45-7.92 7.92s3.18 7.92 8.22 7.92c2.88 0 5.13-1.17 6.54-3.21l-3.12-1.8c-.66.87-1.86 1.5-3.36 1.5-2.04 0-3.69-.84-4.23-2.82zm-.06-3c.45-1.92 1.86-3.03 3.93-3.03 1.62 0 3.24.87 3.72 3.03h-7.65zM164.516 34h3.87V12.1h-3.87V34zM185.248 34.36c3.69 0 6.9-2.01 6.9-6.3V13h-2.1v15.06c0 3.03-2.07 4.26-4.8 4.26-2.19 0-3.93-.78-4.62-2.61l-1.77 1.05c1.05 2.43 3.57 3.6 6.39 3.6zM203.124 18.64c-4.65 0-7.83 3.45-7.83 7.86 0 4.53 3.24 7.86 7.98 7.86 3.03 0 5.34-1.41 6.6-3.45l-1.74-1.02c-.81 1.44-2.46 2.55-4.83 2.55-3.18 0-5.55-1.89-5.97-4.95h13.17c.03-.3.06-.63.06-.93 0-4.11-2.85-7.92-7.44-7.92zm0 1.92c2.58 0 4.98 1.71 5.4 5.01h-11.19c.39-2.94 2.64-5.01 5.79-5.01zM221.224 20.92V19h-4.32v-4.2l-1.98.6V19h-3.15v1.92h3.15v9.09c0 3.6 2.25 4.59 6.3 3.99v-1.74c-2.91.12-4.32.33-4.32-2.25v-9.09h4.32zM225.176 22.93c0-1.62 1.59-2.37 3.15-2.37 1.44 0 2.97.57 3.6 2.1l1.65-.96c-.87-1.86-2.79-3.06-5.25-3.06-3 0-5.13 1.89-5.13 4.29 0 5.52 8.76 3.39 8.76 7.11 0 1.77-1.68 2.4-3.45 2.4-2.01 0-3.57-.99-4.11-2.52l-1.68.99c.75 1.92 2.79 3.45 5.79 3.45 3.21 0 5.43-1.77 5.43-4.32 0-5.52-8.76-3.39-8.76-7.11zM244.603 20.92V19h-4.32v-4.2l-1.98.6V19h-3.15v1.92h3.15v9.09c0 3.6 2.25 4.59 6.3 3.99v-1.74c-2.91.12-4.32.33-4.32-2.25v-9.09h4.32zM249.883 21.49V19h-1.98v15h1.98v-8.34c0-3.72 2.34-4.98 4.74-4.98v-1.92c-1.92 0-3.69.63-4.74 2.73zM263.358 18.64c-4.65 0-7.83 3.45-7.83 7.86 0 4.53 3.24 7.86 7.98 7.86 3.03 0 5.34-1.41 6.6-3.45l-1.74-1.02c-.81 1.44-2.46 2.55-4.83 2.55-3.18 0-5.55-1.89-5.97-4.95h13.17c.03-.3.06-.63.06-.93 0-4.11-2.85-7.92-7.44-7.92zm0 1.92c2.58 0 4.98 1.71 5.4 5.01h-11.19c.39-2.94 2.64-5.01 5.79-5.01zM286.848 19v2.94c-1.26-2.01-3.39-3.3-6.06-3.3-4.23 0-7.74 3.42-7.74 7.86s3.51 7.86 7.74 7.86c2.67 0 4.8-1.29 6.06-3.3V34h1.98V19h-1.98zm-5.91 13.44c-3.33 0-5.91-2.61-5.91-5.94 0-3.33 2.58-5.94 5.91-5.94s5.91 2.61 5.91 5.94c0 3.33-2.58 5.94-5.91 5.94zM309.01 18.64c-1.92 0-3.75.87-4.86 2.73-.84-1.74-2.46-2.73-4.56-2.73-1.8 0-3.42.72-4.59 2.55V19h-1.98v15H295v-8.31c0-3.72 2.16-5.13 4.32-5.13 2.13 0 3.51 1.41 3.51 4.08V34h1.98v-8.31c0-3.72 1.86-5.13 4.17-5.13 2.13 0 3.66 1.41 3.66 4.08V34h1.98v-9.36c0-3.75-2.31-6-5.61-6z",
|
|
438
420
|
class: "fill-black"
|
|
439
421
|
}, null, -1),
|
|
440
|
-
|
|
422
|
+
o("path", {
|
|
441
423
|
d: "M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z",
|
|
442
424
|
fill: "#6875F5"
|
|
443
425
|
}, null, -1),
|
|
444
|
-
|
|
426
|
+
o("path", {
|
|
445
427
|
d: "M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z",
|
|
446
428
|
fill: "#6875F5"
|
|
447
429
|
}, null, -1)
|
|
448
430
|
])]);
|
|
449
431
|
}
|
|
450
|
-
const
|
|
451
|
-
function
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
|
|
432
|
+
const Dt = /* @__PURE__ */ ke(Bt, [["render", It]]), Mt = {}, jt = { class: "min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100" }, Ot = { class: "w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden rounded-lg" };
|
|
433
|
+
function zt(e, s) {
|
|
434
|
+
return a(), i("div", jt, [
|
|
435
|
+
o("div", null, [
|
|
436
|
+
w(e.$slots, "logo")
|
|
455
437
|
]),
|
|
456
|
-
|
|
457
|
-
|
|
438
|
+
o("div", Ot, [
|
|
439
|
+
w(e.$slots, "default")
|
|
458
440
|
])
|
|
459
441
|
]);
|
|
460
442
|
}
|
|
461
|
-
const
|
|
443
|
+
const Et = /* @__PURE__ */ ke(Mt, [["render", zt]]), Ft = { class: "sr-only" }, Nt = {
|
|
462
444
|
__name: "Badge",
|
|
463
445
|
props: {
|
|
464
446
|
type: {
|
|
@@ -492,7 +474,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
492
474
|
}
|
|
493
475
|
},
|
|
494
476
|
setup(e) {
|
|
495
|
-
const
|
|
477
|
+
const s = {
|
|
496
478
|
default: { bg: "bg-gray-100", text: "text-gray-800", dot: "bg-gray-600" },
|
|
497
479
|
primary: { bg: "bg-blue-100", text: "text-blue-800", dot: "bg-blue-600" },
|
|
498
480
|
secondary: { bg: "bg-purple-100", text: "text-purple-800", dot: "bg-purple-600" },
|
|
@@ -513,98 +495,136 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
513
495
|
lg: "rounded-lg",
|
|
514
496
|
full: "rounded-full"
|
|
515
497
|
};
|
|
516
|
-
return (
|
|
498
|
+
return (n, u) => e.type === "dot" ? (a(), i("span", {
|
|
517
499
|
key: 0,
|
|
518
|
-
class:
|
|
500
|
+
class: S(["inline-flex items-center justify-center w-6 h-6 rounded-full", s[e.color].bg])
|
|
519
501
|
}, [
|
|
520
|
-
|
|
521
|
-
class:
|
|
502
|
+
o("span", {
|
|
503
|
+
class: S(["w-2 h-2 rounded-full", s[e.color].dot])
|
|
522
504
|
}, null, 2),
|
|
523
|
-
|
|
524
|
-
|
|
505
|
+
o("span", Ft, [
|
|
506
|
+
w(n.$slots, "default")
|
|
525
507
|
])
|
|
526
|
-
], 2)) : (
|
|
508
|
+
], 2)) : (a(), i("span", {
|
|
527
509
|
key: 1,
|
|
528
|
-
class:
|
|
529
|
-
|
|
530
|
-
|
|
510
|
+
class: S(["inline-flex items-center font-medium", [
|
|
511
|
+
s[e.color].bg,
|
|
512
|
+
s[e.color].text,
|
|
531
513
|
t[e.size],
|
|
532
514
|
l[e.rounded]
|
|
533
515
|
]])
|
|
534
516
|
}, [
|
|
535
|
-
|
|
517
|
+
w(n.$slots, "default")
|
|
536
518
|
], 2));
|
|
537
519
|
}
|
|
538
|
-
},
|
|
520
|
+
}, Ut = {
|
|
539
521
|
key: 0,
|
|
540
522
|
class: "fixed bottom-4 right-4 z-50"
|
|
541
|
-
},
|
|
523
|
+
}, Kt = { class: "flex items-center" }, Rt = { class: "flex-shrink-0" }, Ht = { class: "ml-3 w-0 flex-1" }, qt = { class: "text-sm font-medium text-white" }, Pt = { class: "ml-4 flex-shrink-0 flex" }, Wt = { class: "sr-only" }, Gt = {
|
|
542
524
|
__name: "Banner",
|
|
543
525
|
setup(e) {
|
|
544
|
-
const
|
|
545
|
-
let
|
|
546
|
-
const
|
|
547
|
-
|
|
526
|
+
const s = tt(), { t } = lt(), l = O(!1), n = O("success"), u = O(""), d = O(!1);
|
|
527
|
+
let f = null;
|
|
528
|
+
const v = () => {
|
|
529
|
+
d.value = !1, setTimeout(() => {
|
|
548
530
|
l.value = !1;
|
|
549
531
|
}, 300);
|
|
550
|
-
},
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}, 50),
|
|
554
|
-
|
|
532
|
+
}, b = () => {
|
|
533
|
+
f && clearTimeout(f), l.value = !0, setTimeout(() => {
|
|
534
|
+
d.value = !0;
|
|
535
|
+
}, 50), f = setTimeout(() => {
|
|
536
|
+
v();
|
|
555
537
|
}, 5e3);
|
|
556
538
|
};
|
|
557
|
-
return
|
|
558
|
-
const
|
|
559
|
-
h && (
|
|
560
|
-
}),
|
|
561
|
-
|
|
562
|
-
}), (
|
|
563
|
-
|
|
564
|
-
class:
|
|
539
|
+
return Qe(async () => {
|
|
540
|
+
const _ = s.props.jetstream.flash?.bannerStyle || "success", h = s.props.jetstream.flash?.banner || "";
|
|
541
|
+
h && (n.value = _, u.value = h, b());
|
|
542
|
+
}), se(() => {
|
|
543
|
+
u.value && b();
|
|
544
|
+
}), (_, h) => l.value ? (a(), i("div", Ut, [
|
|
545
|
+
o("div", {
|
|
546
|
+
class: S([
|
|
565
547
|
"transform transition-all duration-300 ease-out shadow-lg rounded-lg p-4 min-w-[300px] max-w-md",
|
|
566
|
-
|
|
567
|
-
|
|
548
|
+
d.value ? "translate-y-0 opacity-100" : "translate-y-full opacity-0",
|
|
549
|
+
n.value === "success" ? "bg-green-600" : "bg-red-600"
|
|
568
550
|
])
|
|
569
551
|
}, [
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
class:
|
|
552
|
+
o("div", Kt, [
|
|
553
|
+
o("div", Rt, [
|
|
554
|
+
o("div", {
|
|
555
|
+
class: S([
|
|
574
556
|
"flex p-2 rounded-full",
|
|
575
|
-
|
|
557
|
+
n.value === "success" ? "bg-green-700" : "bg-red-700"
|
|
576
558
|
])
|
|
577
559
|
}, [
|
|
578
|
-
|
|
560
|
+
n.value === "success" ? (a(), B(I(at), {
|
|
579
561
|
key: 0,
|
|
580
562
|
class: "w-5 h-5 text-white"
|
|
581
|
-
})) :
|
|
582
|
-
|
|
563
|
+
})) : M("", !0),
|
|
564
|
+
n.value === "danger" ? (a(), B(I(Le), {
|
|
583
565
|
key: 1,
|
|
584
566
|
class: "w-5 h-5 text-white"
|
|
585
|
-
})) :
|
|
567
|
+
})) : M("", !0)
|
|
586
568
|
], 2)
|
|
587
569
|
]),
|
|
588
|
-
|
|
589
|
-
|
|
570
|
+
o("div", Ht, [
|
|
571
|
+
o("p", qt, V(u.value), 1)
|
|
590
572
|
]),
|
|
591
|
-
|
|
592
|
-
|
|
573
|
+
o("div", Pt, [
|
|
574
|
+
o("button", {
|
|
593
575
|
type: "button",
|
|
594
|
-
class:
|
|
595
|
-
|
|
576
|
+
class: S(["inline-flex text-white hover:bg-white/20 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-green-600 focus:ring-white rounded-md p-1.5 transition-colors", [
|
|
577
|
+
n.value === "success" ? "hover:bg-green-700 focus:ring-offset-green-600" : "hover:bg-red-700 focus:ring-offset-red-600"
|
|
596
578
|
]]),
|
|
597
|
-
onClick:
|
|
579
|
+
onClick: v
|
|
598
580
|
}, [
|
|
599
|
-
|
|
600
|
-
|
|
581
|
+
o("span", Wt, V(I(t)("Dismiss")), 1),
|
|
582
|
+
F(I(Ie), { class: "w-5 h-5" })
|
|
601
583
|
], 2)
|
|
602
584
|
])
|
|
603
585
|
])
|
|
604
586
|
], 2)
|
|
605
|
-
])) :
|
|
587
|
+
])) : M("", !0);
|
|
588
|
+
}
|
|
589
|
+
}, Xt = ["type", "disabled"], fe = /* @__PURE__ */ Object.assign({
|
|
590
|
+
inheritAttrs: !1
|
|
591
|
+
}, {
|
|
592
|
+
__name: "Button",
|
|
593
|
+
props: {
|
|
594
|
+
type: {
|
|
595
|
+
type: String,
|
|
596
|
+
default: "submit"
|
|
597
|
+
},
|
|
598
|
+
disabled: {
|
|
599
|
+
type: Boolean,
|
|
600
|
+
default: !1
|
|
601
|
+
},
|
|
602
|
+
variant: {
|
|
603
|
+
type: String,
|
|
604
|
+
default: "primary"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
setup(e) {
|
|
608
|
+
const s = ne(), t = e, l = {
|
|
609
|
+
primary: "bg-gradient-to-r from-blue-500 to-blue-600 text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] hover:from-blue-600 hover:to-blue-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:ring-blue-500 disabled:hover:from-blue-500 disabled:hover:to-blue-600",
|
|
610
|
+
secondary: "bg-gradient-to-r from-green-500 to-green-600 text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] hover:from-green-600 hover:to-green-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:ring-green-500 disabled:hover:from-green-500 disabled:hover:to-green-600",
|
|
611
|
+
tertiary: "bg-gradient-to-r from-gray-500 to-gray-600 text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] hover:from-gray-600 hover:to-gray-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:ring-gray-500 disabled:hover:from-gray-500 disabled:hover:to-gray-600",
|
|
612
|
+
warning: "border border-yellow-300 bg-yellow-50 text-yellow-700 hover:bg-yellow-100 focus:ring-yellow-500 disabled:hover:bg-yellow-50",
|
|
613
|
+
danger: "border border-red-300 bg-red-50 text-red-700 hover:bg-red-100 focus:ring-red-500 disabled:hover:bg-red-50"
|
|
614
|
+
}, n = g(() => l[t.variant] ? t.variant : "primary"), u = g(() => [
|
|
615
|
+
"min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg p-3 py-2 text-sm font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
616
|
+
l[n.value],
|
|
617
|
+
s.class
|
|
618
|
+
]);
|
|
619
|
+
return (d, f) => (a(), i("button", E(I(s), {
|
|
620
|
+
type: e.type,
|
|
621
|
+
disabled: e.disabled,
|
|
622
|
+
class: u.value
|
|
623
|
+
}), [
|
|
624
|
+
w(d.$slots, "default")
|
|
625
|
+
], 16, Xt));
|
|
606
626
|
}
|
|
607
|
-
},
|
|
627
|
+
}), Qt = ["value"], Yt = {
|
|
608
628
|
__name: "Checkbox",
|
|
609
629
|
props: {
|
|
610
630
|
checked: {
|
|
@@ -617,25 +637,25 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
617
637
|
}
|
|
618
638
|
},
|
|
619
639
|
emits: ["update:checked"],
|
|
620
|
-
setup(e, { emit:
|
|
621
|
-
const t =
|
|
640
|
+
setup(e, { emit: s }) {
|
|
641
|
+
const t = s, l = e, n = g({
|
|
622
642
|
get() {
|
|
623
643
|
return l.checked;
|
|
624
644
|
},
|
|
625
|
-
set(
|
|
626
|
-
t("update:checked",
|
|
645
|
+
set(u) {
|
|
646
|
+
t("update:checked", u);
|
|
627
647
|
}
|
|
628
648
|
});
|
|
629
|
-
return (
|
|
630
|
-
"onUpdate:modelValue":
|
|
649
|
+
return (u, d) => ee((a(), i("input", {
|
|
650
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
|
|
631
651
|
type: "checkbox",
|
|
632
652
|
value: e.value,
|
|
633
653
|
class: "rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"
|
|
634
|
-
}, null, 8,
|
|
635
|
-
[
|
|
654
|
+
}, null, 8, Qt)), [
|
|
655
|
+
[Ye, n.value]
|
|
636
656
|
]);
|
|
637
657
|
}
|
|
638
|
-
},
|
|
658
|
+
}, Jt = ["checked", "disabled"], Oe = {
|
|
639
659
|
__name: "CheckboxInput",
|
|
640
660
|
props: {
|
|
641
661
|
modelValue: {
|
|
@@ -660,55 +680,55 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
660
680
|
}
|
|
661
681
|
},
|
|
662
682
|
emits: ["update:modelValue"],
|
|
663
|
-
setup(e, { emit:
|
|
664
|
-
const t =
|
|
665
|
-
|
|
666
|
-
},
|
|
667
|
-
|
|
668
|
-
},
|
|
669
|
-
t("update:modelValue",
|
|
683
|
+
setup(e, { emit: s }) {
|
|
684
|
+
const t = s, l = e, n = g(() => l.modelValue === l.value), u = O(!1), d = () => {
|
|
685
|
+
u.value = !0;
|
|
686
|
+
}, f = () => {
|
|
687
|
+
u.value = !1;
|
|
688
|
+
}, v = (b) => {
|
|
689
|
+
t("update:modelValue", b.target.checked ? l.value : l.uncheckedValue);
|
|
670
690
|
};
|
|
671
|
-
return (
|
|
672
|
-
class:
|
|
673
|
-
|
|
691
|
+
return (b, _) => (a(), i("label", {
|
|
692
|
+
class: S(["inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm font-medium select-none transition-colors", [
|
|
693
|
+
n.value ? "bg-indigo-600 text-white border-indigo-600" : "text-gray-600 border-gray-200",
|
|
674
694
|
e.disabled ? "opacity-60 cursor-not-allowed" : "cursor-pointer",
|
|
675
|
-
|
|
695
|
+
u.value && !e.disabled ? "ring-2 ring-indigo-500/80 ring-offset-2 ring-offset-white" : ""
|
|
676
696
|
]])
|
|
677
697
|
}, [
|
|
678
|
-
|
|
698
|
+
o("input", {
|
|
679
699
|
type: "checkbox",
|
|
680
700
|
class: "sr-only",
|
|
681
|
-
checked:
|
|
701
|
+
checked: n.value,
|
|
682
702
|
disabled: e.disabled,
|
|
683
|
-
onChange:
|
|
684
|
-
onFocus:
|
|
685
|
-
onBlur:
|
|
686
|
-
}, null, 40,
|
|
687
|
-
|
|
688
|
-
class:
|
|
689
|
-
|
|
703
|
+
onChange: v,
|
|
704
|
+
onFocus: d,
|
|
705
|
+
onBlur: f
|
|
706
|
+
}, null, 40, Jt),
|
|
707
|
+
o("span", {
|
|
708
|
+
class: S(["inline-flex h-4 w-4 items-center justify-center border text-[10px] font-bold leading-none", [
|
|
709
|
+
n.value ? "border-current bg-white/15 text-current" : "border-current/70 text-transparent",
|
|
690
710
|
"rounded"
|
|
691
711
|
]])
|
|
692
712
|
}, " ✓ ", 2),
|
|
693
|
-
|
|
713
|
+
o("span", null, V(e.label), 1)
|
|
694
714
|
], 2));
|
|
695
715
|
}
|
|
696
|
-
},
|
|
716
|
+
}, Zt = { class: "relative flex items-center" }, el = {
|
|
697
717
|
key: 0,
|
|
698
718
|
class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"
|
|
699
|
-
},
|
|
719
|
+
}, tl = ["type", "value", "disabled"], ll = ["aria-label"], al = {
|
|
700
720
|
key: 0,
|
|
701
721
|
class: "h-5 w-5",
|
|
702
722
|
fill: "none",
|
|
703
723
|
stroke: "currentColor",
|
|
704
724
|
viewBox: "0 0 24 24"
|
|
705
|
-
},
|
|
725
|
+
}, sl = {
|
|
706
726
|
key: 1,
|
|
707
727
|
class: "h-5 w-5",
|
|
708
728
|
fill: "none",
|
|
709
729
|
stroke: "currentColor",
|
|
710
730
|
viewBox: "0 0 24 24"
|
|
711
|
-
},
|
|
731
|
+
}, nl = 254, ze = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
712
732
|
__name: "TextInput",
|
|
713
733
|
props: {
|
|
714
734
|
modelValue: {
|
|
@@ -725,73 +745,73 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
725
745
|
}
|
|
726
746
|
},
|
|
727
747
|
emits: ["update:modelValue", "blur"],
|
|
728
|
-
setup(e, { expose:
|
|
729
|
-
const l = e,
|
|
730
|
-
const { class:
|
|
731
|
-
return
|
|
732
|
-
}),
|
|
748
|
+
setup(e, { expose: s, emit: t }) {
|
|
749
|
+
const l = e, n = t, u = ne(), d = O(null), f = O(!1), v = g(() => String(u.type ?? "text")), b = g(() => v.value === "password"), _ = g(() => b.value && f.value ? "text" : v.value), h = g(() => l.modelValue ?? ""), k = g(() => {
|
|
750
|
+
const { class: D, type: j, ...H } = u;
|
|
751
|
+
return H.maxlength === void 0 && (H.maxlength = nl), H;
|
|
752
|
+
}), T = g(() => [
|
|
733
753
|
"w-full min-w-0 max-w-full border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm",
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
]),
|
|
737
|
-
|
|
738
|
-
}, L = (
|
|
739
|
-
if (
|
|
754
|
+
u.class,
|
|
755
|
+
b.value ? "pr-10 pl-10" : ""
|
|
756
|
+
]), m = () => {
|
|
757
|
+
f.value = !f.value;
|
|
758
|
+
}, L = (D) => {
|
|
759
|
+
if (_.value !== "number")
|
|
740
760
|
return;
|
|
741
|
-
|
|
742
|
-
const
|
|
743
|
-
|
|
761
|
+
D.preventDefault();
|
|
762
|
+
const j = document.scrollingElement ?? document.documentElement ?? document.body;
|
|
763
|
+
j && (j.scrollTop += D.deltaY);
|
|
744
764
|
};
|
|
745
|
-
return
|
|
746
|
-
|
|
747
|
-
}),
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
])) :
|
|
751
|
-
|
|
765
|
+
return se(() => {
|
|
766
|
+
d.value?.hasAttribute("autofocus") && d.value.focus();
|
|
767
|
+
}), s({ focus: () => d.value?.focus() }), (D, j) => (a(), i("div", Zt, [
|
|
768
|
+
b.value ? (a(), i("div", el, [
|
|
769
|
+
F(I(st), { class: "h-5 w-5 text-gray-400" })
|
|
770
|
+
])) : M("", !0),
|
|
771
|
+
o("input", E({
|
|
752
772
|
ref_key: "input",
|
|
753
|
-
ref:
|
|
754
|
-
},
|
|
755
|
-
type:
|
|
756
|
-
class: [
|
|
773
|
+
ref: d
|
|
774
|
+
}, k.value, {
|
|
775
|
+
type: _.value,
|
|
776
|
+
class: [T.value, l.disabled ? l.disabledClass : null],
|
|
757
777
|
value: h.value,
|
|
758
778
|
disabled: l.disabled,
|
|
759
|
-
onInput:
|
|
760
|
-
onBlur:
|
|
779
|
+
onInput: j[0] || (j[0] = (H) => n("update:modelValue", H.target.value)),
|
|
780
|
+
onBlur: j[1] || (j[1] = (H) => n("blur", H)),
|
|
761
781
|
onWheel: L
|
|
762
|
-
}), null, 16,
|
|
763
|
-
|
|
782
|
+
}), null, 16, tl),
|
|
783
|
+
b.value ? (a(), i("button", {
|
|
764
784
|
key: 1,
|
|
765
785
|
type: "button",
|
|
766
786
|
class: "absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400 hover:text-gray-600 focus:outline-none",
|
|
767
|
-
"aria-label":
|
|
768
|
-
onClick:
|
|
787
|
+
"aria-label": f.value ? "Hide password" : "Show password",
|
|
788
|
+
onClick: m
|
|
769
789
|
}, [
|
|
770
|
-
|
|
771
|
-
|
|
790
|
+
f.value ? (a(), i("svg", al, [...j[2] || (j[2] = [
|
|
791
|
+
o("path", {
|
|
772
792
|
"stroke-linecap": "round",
|
|
773
793
|
"stroke-linejoin": "round",
|
|
774
794
|
"stroke-width": "2",
|
|
775
795
|
d: "M13.875 18.825A10.05 10.05 0 0112 19c-5 0-9.27-3.11-11-7 1.01-2.27 2.78-4.1 5-5.32m3.08-1.3A9.96 9.96 0 0112 5c5 0 9.27 3.11 11 7a11.03 11.03 0 01-4.16 4.91M15 12a3 3 0 00-3-3m0 0a3 3 0 00-2.94 3.59M3 3l18 18"
|
|
776
796
|
}, null, -1)
|
|
777
|
-
])])) : (
|
|
778
|
-
|
|
797
|
+
])])) : (a(), i("svg", sl, [...j[3] || (j[3] = [
|
|
798
|
+
o("path", {
|
|
779
799
|
"stroke-linecap": "round",
|
|
780
800
|
"stroke-linejoin": "round",
|
|
781
801
|
"stroke-width": "2",
|
|
782
802
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
783
803
|
}, null, -1),
|
|
784
|
-
|
|
804
|
+
o("path", {
|
|
785
805
|
"stroke-linecap": "round",
|
|
786
806
|
"stroke-linejoin": "round",
|
|
787
807
|
"stroke-width": "2",
|
|
788
808
|
d: "M2.458 12C3.732 7.943 7.523 5 12 5s8.268 2.943 9.542 7c-1.274 4.057-5.065 7-9.542 7S3.732 16.057 2.458 12z"
|
|
789
809
|
}, null, -1)
|
|
790
810
|
])]))
|
|
791
|
-
], 8,
|
|
811
|
+
], 8, ll)) : M("", !0)
|
|
792
812
|
]));
|
|
793
813
|
}
|
|
794
|
-
}),
|
|
814
|
+
}), rl = ["value", "disabled"], ol = 1e3, Ee = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
795
815
|
__name: "TextArea",
|
|
796
816
|
props: {
|
|
797
817
|
modelValue: String,
|
|
@@ -809,40 +829,40 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
809
829
|
}
|
|
810
830
|
},
|
|
811
831
|
emits: ["update:modelValue"],
|
|
812
|
-
setup(e, { expose:
|
|
813
|
-
const l = e,
|
|
814
|
-
const { class: h, ...
|
|
815
|
-
return
|
|
816
|
-
}),
|
|
832
|
+
setup(e, { expose: s, emit: t }) {
|
|
833
|
+
const l = e, n = t, u = ne(), d = O(null), f = g(() => {
|
|
834
|
+
const { class: h, ...k } = u;
|
|
835
|
+
return k.maxlength === void 0 && (k.maxlength = ol), k;
|
|
836
|
+
}), v = g(() => [
|
|
817
837
|
"w-full min-w-0 max-w-full border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm",
|
|
818
838
|
l.autoResize ? "resize-none overflow-y-auto" : "resize-y",
|
|
819
|
-
|
|
820
|
-
]),
|
|
821
|
-
!l.autoResize || !
|
|
822
|
-
},
|
|
823
|
-
|
|
839
|
+
u.class
|
|
840
|
+
]), b = () => {
|
|
841
|
+
!l.autoResize || !d.value || (d.value.style.height = "auto", d.value.style.height = `${d.value.scrollHeight}px`);
|
|
842
|
+
}, _ = (h) => {
|
|
843
|
+
n("update:modelValue", h.target.value), b();
|
|
824
844
|
};
|
|
825
|
-
return
|
|
826
|
-
|
|
827
|
-
|
|
845
|
+
return se(() => {
|
|
846
|
+
d.value?.hasAttribute("autofocus") && d.value.focus(), ve(() => {
|
|
847
|
+
b();
|
|
828
848
|
});
|
|
829
|
-
}),
|
|
830
|
-
|
|
831
|
-
|
|
849
|
+
}), J(() => l.modelValue, () => {
|
|
850
|
+
ve(() => {
|
|
851
|
+
b();
|
|
832
852
|
});
|
|
833
|
-
}),
|
|
834
|
-
|
|
853
|
+
}), s({ focus: () => d.value?.focus() }), (h, k) => (a(), i("div", null, [
|
|
854
|
+
o("textarea", E({
|
|
835
855
|
ref_key: "textarea",
|
|
836
|
-
ref:
|
|
837
|
-
},
|
|
838
|
-
class: [
|
|
856
|
+
ref: d
|
|
857
|
+
}, f.value, {
|
|
858
|
+
class: [v.value, l.disabled ? l.disabledClass : ""],
|
|
839
859
|
value: l.modelValue,
|
|
840
860
|
disabled: l.disabled,
|
|
841
|
-
onInput:
|
|
842
|
-
}), null, 16,
|
|
861
|
+
onInput: _
|
|
862
|
+
}), null, 16, rl)
|
|
843
863
|
]));
|
|
844
864
|
}
|
|
845
|
-
}),
|
|
865
|
+
}), il = ["onClick"], Fe = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
846
866
|
__name: "CustomSelect",
|
|
847
867
|
props: {
|
|
848
868
|
modelValue: {
|
|
@@ -927,68 +947,68 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
927
947
|
}
|
|
928
948
|
},
|
|
929
949
|
emits: ["update:modelValue"],
|
|
930
|
-
setup(e, { emit:
|
|
931
|
-
const t = e, l =
|
|
932
|
-
if (t.modelValue === null || t.modelValue === void 0 || t.modelValue === "" && !t.options.some((
|
|
950
|
+
setup(e, { emit: s }) {
|
|
951
|
+
const t = e, l = s, n = ne(), u = O(!1), d = O(null), f = O(null), v = O(null), b = O({}), _ = (x) => typeof x == "object" && x !== null, h = (x) => _(x) ? x[t.valueKey] : x, k = (x) => t.optionLabel ? t.optionLabel(x) : _(x) ? x[t.labelKey] ?? x[t.valueKey] ?? "" : x, T = (x) => !t.softDeleteAware || !_(x) ? !1 : !!x[t.deletedKey], m = g(() => String(t.modelValue ?? "")), L = g(() => !t.softDeleteAware || m.value === "" ? null : t.options.find((x) => T(x) && String(h(x) ?? "") === m.value) ?? null), D = g(() => t.softDeleteAware ? t.options.filter((x) => !T(x)) : t.options), j = g(() => {
|
|
952
|
+
if (t.modelValue === null || t.modelValue === void 0 || t.modelValue === "" && !t.options.some((K) => h(K) === ""))
|
|
933
953
|
return t.placeholder;
|
|
934
|
-
const
|
|
935
|
-
const N = h(
|
|
954
|
+
const x = t.options.find((K) => {
|
|
955
|
+
const N = h(K);
|
|
936
956
|
return N === t.modelValue || String(N) === String(t.modelValue);
|
|
937
957
|
});
|
|
938
|
-
return
|
|
939
|
-
}),
|
|
940
|
-
t.disabled || (
|
|
941
|
-
},
|
|
942
|
-
const
|
|
943
|
-
l("update:modelValue", K
|
|
944
|
-
},
|
|
945
|
-
t.placeholderDisabled || (l("update:modelValue",
|
|
946
|
-
},
|
|
947
|
-
if (!
|
|
958
|
+
return x ? k(x) : t.modelValue;
|
|
959
|
+
}), H = (x) => t.modelModifiers.number ? x === "" ? "" : Number(x) : x, Q = () => {
|
|
960
|
+
t.disabled || (u.value = !u.value);
|
|
961
|
+
}, G = (x) => {
|
|
962
|
+
const K = h(x);
|
|
963
|
+
l("update:modelValue", H(K)), u.value = !1;
|
|
964
|
+
}, te = () => {
|
|
965
|
+
t.placeholderDisabled || (l("update:modelValue", H("")), u.value = !1);
|
|
966
|
+
}, X = () => {
|
|
967
|
+
if (!f.value)
|
|
948
968
|
return;
|
|
949
|
-
const
|
|
950
|
-
|
|
969
|
+
const x = f.value.getBoundingClientRect(), K = window.innerWidth, N = window.innerHeight, Y = N - x.bottom - 8, le = x.top - 8, Z = Y < 240 && le > Y, ae = Math.min(x.width, Math.max(K - x.left - 16, 160)), ie = Math.max(Math.min(240, Z ? le : Y), 120);
|
|
970
|
+
b.value = {
|
|
951
971
|
position: "fixed",
|
|
952
|
-
left: `${Math.max(
|
|
953
|
-
width: `${
|
|
954
|
-
maxHeight: `${
|
|
972
|
+
left: `${Math.max(x.left, 8)}px`,
|
|
973
|
+
width: `${ae}px`,
|
|
974
|
+
maxHeight: `${ie}px`,
|
|
955
975
|
zIndex: "9999",
|
|
956
|
-
...
|
|
976
|
+
...Z ? { bottom: `${N - x.top + 1}px` } : { top: `${x.bottom - 1}px` }
|
|
957
977
|
};
|
|
958
|
-
},
|
|
959
|
-
const
|
|
960
|
-
!
|
|
978
|
+
}, P = (x) => {
|
|
979
|
+
const K = d.value?.contains(x.target), N = v.value?.contains(x.target);
|
|
980
|
+
!K && !N && (u.value = !1);
|
|
961
981
|
};
|
|
962
|
-
return
|
|
963
|
-
document.addEventListener("click",
|
|
964
|
-
}),
|
|
965
|
-
document.removeEventListener("click",
|
|
966
|
-
}),
|
|
967
|
-
|
|
968
|
-
}), (
|
|
982
|
+
return se(() => {
|
|
983
|
+
document.addEventListener("click", P), window.addEventListener("resize", X), window.addEventListener("scroll", X, !0);
|
|
984
|
+
}), Je(() => {
|
|
985
|
+
document.removeEventListener("click", P), window.removeEventListener("resize", X), window.removeEventListener("scroll", X, !0);
|
|
986
|
+
}), J(u, async (x) => {
|
|
987
|
+
x && (await ve(), X());
|
|
988
|
+
}), (x, K) => (a(), i("div", {
|
|
969
989
|
ref_key: "rootRef",
|
|
970
|
-
ref:
|
|
990
|
+
ref: d,
|
|
971
991
|
class: "relative",
|
|
972
|
-
onClick:
|
|
992
|
+
onClick: Q
|
|
973
993
|
}, [
|
|
974
|
-
|
|
994
|
+
o("div", E({
|
|
975
995
|
ref_key: "triggerRef",
|
|
976
|
-
ref:
|
|
996
|
+
ref: f,
|
|
977
997
|
class: [
|
|
978
998
|
e.baseClass,
|
|
979
999
|
L.value ? e.deletedSelectedClass : e.normalTextClass,
|
|
980
1000
|
"flex items-center justify-between cursor-pointer",
|
|
981
|
-
|
|
1001
|
+
I(n).class
|
|
982
1002
|
]
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
class:
|
|
986
|
-
},
|
|
987
|
-
|
|
988
|
-
class:
|
|
1003
|
+
}, I(n), { tabindex: "0" }), [
|
|
1004
|
+
o("span", {
|
|
1005
|
+
class: S({ "text-gray-400": !e.modelValue && e.placeholder })
|
|
1006
|
+
}, V(j.value), 3),
|
|
1007
|
+
F(I(xe), {
|
|
1008
|
+
class: S(["size-5 text-gray-400 transition-transform", { "rotate-180": u.value }])
|
|
989
1009
|
}, null, 8, ["class"])
|
|
990
1010
|
], 16),
|
|
991
|
-
|
|
1011
|
+
F(re, {
|
|
992
1012
|
"enter-active-class": "transition-all duration-200 ease-out",
|
|
993
1013
|
"enter-from-class": "opacity-0 transform scale-95 -translate-y-2",
|
|
994
1014
|
"enter-to-class": "opacity-100 transform scale-100 translate-y-0",
|
|
@@ -996,53 +1016,53 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
996
1016
|
"leave-from-class": "opacity-100 transform scale-100 translate-y-0",
|
|
997
1017
|
"leave-to-class": "opacity-0 transform scale-95 -translate-y-2"
|
|
998
1018
|
}, {
|
|
999
|
-
default:
|
|
1000
|
-
(
|
|
1001
|
-
|
|
1019
|
+
default: z(() => [
|
|
1020
|
+
(a(), B(Ze, { to: "body" }, [
|
|
1021
|
+
u.value ? (a(), i("div", {
|
|
1002
1022
|
key: 0,
|
|
1003
1023
|
ref_key: "dropdownMenuRef",
|
|
1004
|
-
ref:
|
|
1005
|
-
class:
|
|
1006
|
-
style:
|
|
1024
|
+
ref: v,
|
|
1025
|
+
class: S(e.dropdownClass),
|
|
1026
|
+
style: Te(b.value)
|
|
1007
1027
|
}, [
|
|
1008
|
-
e.placeholder ? (
|
|
1028
|
+
e.placeholder ? (a(), i("div", {
|
|
1009
1029
|
key: 0,
|
|
1010
|
-
class:
|
|
1030
|
+
class: S([
|
|
1011
1031
|
e.dropdownOptionClass,
|
|
1012
1032
|
e.placeholderClass,
|
|
1013
1033
|
{ "text-gray-400": !e.modelValue }
|
|
1014
1034
|
]),
|
|
1015
|
-
onClick:
|
|
1016
|
-
},
|
|
1017
|
-
L.value ? (
|
|
1035
|
+
onClick: he(te, ["stop"])
|
|
1036
|
+
}, V(e.placeholder), 3)) : M("", !0),
|
|
1037
|
+
L.value ? (a(), i("div", {
|
|
1018
1038
|
key: 1,
|
|
1019
|
-
class:
|
|
1039
|
+
class: S([
|
|
1020
1040
|
e.dropdownOptionClass,
|
|
1021
1041
|
e.deletedOptionClass,
|
|
1022
1042
|
e.dropdownSelectedClass
|
|
1023
1043
|
])
|
|
1024
|
-
},
|
|
1025
|
-
(
|
|
1044
|
+
}, V(k(L.value)), 3)) : M("", !0),
|
|
1045
|
+
(a(!0), i(q, null, W(D.value, (N) => (a(), i("div", {
|
|
1026
1046
|
key: String(h(N)),
|
|
1027
|
-
class:
|
|
1047
|
+
class: S([
|
|
1028
1048
|
e.dropdownOptionClass,
|
|
1029
1049
|
e.optionClass,
|
|
1030
1050
|
{
|
|
1031
1051
|
[e.dropdownSelectedClass]: h(N) === e.modelValue || String(h(N)) === String(e.modelValue),
|
|
1032
|
-
"rounded-b-lg": N ===
|
|
1033
|
-
"rounded-lg": !e.placeholder &&
|
|
1052
|
+
"rounded-b-lg": N === D.value[D.value.length - 1] && !e.placeholder,
|
|
1053
|
+
"rounded-lg": !e.placeholder && D.value.length === 1
|
|
1034
1054
|
}
|
|
1035
1055
|
]),
|
|
1036
|
-
onClick:
|
|
1037
|
-
},
|
|
1038
|
-
], 6)) :
|
|
1056
|
+
onClick: he((Y) => G(N), ["stop"])
|
|
1057
|
+
}, V(k(N)), 11, il))), 128))
|
|
1058
|
+
], 6)) : M("", !0)
|
|
1039
1059
|
]))
|
|
1040
1060
|
]),
|
|
1041
1061
|
_: 1
|
|
1042
1062
|
})
|
|
1043
1063
|
], 512));
|
|
1044
1064
|
}
|
|
1045
|
-
}),
|
|
1065
|
+
}), Ne = {
|
|
1046
1066
|
__name: "SelectInput",
|
|
1047
1067
|
props: {
|
|
1048
1068
|
modelValue: {
|
|
@@ -1127,9 +1147,9 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1127
1147
|
}
|
|
1128
1148
|
},
|
|
1129
1149
|
emits: ["update:modelValue"],
|
|
1130
|
-
setup(e, { emit:
|
|
1131
|
-
const t =
|
|
1132
|
-
return (l,
|
|
1150
|
+
setup(e, { emit: s }) {
|
|
1151
|
+
const t = s;
|
|
1152
|
+
return (l, n) => (a(), B(Fe, E({
|
|
1133
1153
|
"model-value": e.modelValue,
|
|
1134
1154
|
"model-modifiers": e.modelModifiers,
|
|
1135
1155
|
options: e.options,
|
|
@@ -1150,10 +1170,10 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1150
1170
|
"dropdown-class": e.dropdownClass,
|
|
1151
1171
|
"dropdown-option-class": e.dropdownOptionClass,
|
|
1152
1172
|
"dropdown-selected-class": e.dropdownSelectedClass,
|
|
1153
|
-
"onUpdate:modelValue":
|
|
1173
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => t("update:modelValue", u))
|
|
1154
1174
|
}, l.$attrs), null, 16, ["model-value", "model-modifiers", "options", "placeholder", "placeholder-disabled", "disabled", "soft-delete-aware", "label-key", "value-key", "deleted-key", "option-label", "base-class", "normal-text-class", "deleted-selected-class", "option-class", "deleted-option-class", "placeholder-class", "dropdown-class", "dropdown-option-class", "dropdown-selected-class"]));
|
|
1155
1175
|
}
|
|
1156
|
-
},
|
|
1176
|
+
}, dl = ["type", "max", "value", "disabled"], Ue = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1157
1177
|
__name: "DateInput",
|
|
1158
1178
|
props: {
|
|
1159
1179
|
modelValue: {
|
|
@@ -1174,42 +1194,42 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1174
1194
|
}
|
|
1175
1195
|
},
|
|
1176
1196
|
emits: ["update:modelValue"],
|
|
1177
|
-
setup(e, { expose:
|
|
1178
|
-
const l = e,
|
|
1179
|
-
const
|
|
1180
|
-
return typeof L != "string" || L === "" || L >
|
|
1181
|
-
}),
|
|
1182
|
-
const { class:
|
|
1183
|
-
return
|
|
1184
|
-
}), h =
|
|
1197
|
+
setup(e, { expose: s, emit: t }) {
|
|
1198
|
+
const l = e, n = t, u = ne(), d = O(null), f = g(() => l.withTimestamp ? "datetime-local" : "date"), v = g(() => l.modelValue ?? ""), b = g(() => {
|
|
1199
|
+
const m = l.withTimestamp ? "9999-12-31T23:59" : "9999-12-31", L = u.max;
|
|
1200
|
+
return typeof L != "string" || L === "" || L > m ? m : L;
|
|
1201
|
+
}), _ = g(() => {
|
|
1202
|
+
const { class: m, type: L, ...D } = u;
|
|
1203
|
+
return D;
|
|
1204
|
+
}), h = g(() => [
|
|
1185
1205
|
"w-full border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm",
|
|
1186
|
-
|
|
1187
|
-
]),
|
|
1188
|
-
const L =
|
|
1206
|
+
u.class
|
|
1207
|
+
]), k = (m) => typeof m != "string" ? "" : m.replace(/^(\d{4})\d+/, "$1"), T = (m) => {
|
|
1208
|
+
const L = m.target;
|
|
1189
1209
|
if (!L)
|
|
1190
1210
|
return;
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1211
|
+
const D = String(L.value ?? ""), j = k(D);
|
|
1212
|
+
j !== D && (L.value = j), n("update:modelValue", j);
|
|
1193
1213
|
};
|
|
1194
|
-
return
|
|
1195
|
-
|
|
1196
|
-
}),
|
|
1214
|
+
return se(() => {
|
|
1215
|
+
d.value?.hasAttribute("autofocus") && d.value.focus();
|
|
1216
|
+
}), s({ focus: () => d.value?.focus() }), (m, L) => (a(), i("input", E({
|
|
1197
1217
|
ref_key: "input",
|
|
1198
|
-
ref:
|
|
1199
|
-
},
|
|
1200
|
-
type:
|
|
1201
|
-
max:
|
|
1218
|
+
ref: d
|
|
1219
|
+
}, _.value, {
|
|
1220
|
+
type: f.value,
|
|
1221
|
+
max: b.value,
|
|
1202
1222
|
class: [h.value, l.disabled ? l.disabledClass : null],
|
|
1203
|
-
value:
|
|
1223
|
+
value: v.value,
|
|
1204
1224
|
disabled: l.disabled,
|
|
1205
|
-
onInput:
|
|
1206
|
-
onChange:
|
|
1207
|
-
}), null, 16,
|
|
1225
|
+
onInput: T,
|
|
1226
|
+
onChange: T
|
|
1227
|
+
}), null, 16, dl));
|
|
1208
1228
|
}
|
|
1209
|
-
}),
|
|
1229
|
+
}), ul = { class: "relative" }, cl = { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" }, fl = ["accept"], gl = {
|
|
1210
1230
|
key: 0,
|
|
1211
1231
|
class: "mt-4 p-4 bg-gray-50 rounded-lg border border-gray-200"
|
|
1212
|
-
},
|
|
1232
|
+
}, yl = { class: "flex items-center space-x-4" }, pl = ["src"], ml = { class: "text-sm font-medium text-gray-900" }, bl = { class: "text-xs text-gray-500" }, Ke = {
|
|
1213
1233
|
__name: "ImageInput",
|
|
1214
1234
|
props: {
|
|
1215
1235
|
currentImageUrl: {
|
|
@@ -1234,39 +1254,39 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1234
1254
|
}
|
|
1235
1255
|
},
|
|
1236
1256
|
emits: ["update:modelValue"],
|
|
1237
|
-
setup(e, { emit:
|
|
1238
|
-
const t =
|
|
1239
|
-
const
|
|
1240
|
-
t("update:modelValue",
|
|
1257
|
+
setup(e, { emit: s }) {
|
|
1258
|
+
const t = s, l = e, n = (u) => {
|
|
1259
|
+
const d = u.target.files?.[0] ?? null;
|
|
1260
|
+
t("update:modelValue", d);
|
|
1241
1261
|
};
|
|
1242
|
-
return (
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1262
|
+
return (u, d) => (a(), i("div", null, [
|
|
1263
|
+
o("div", ul, [
|
|
1264
|
+
o("div", cl, [
|
|
1265
|
+
F(I(nt), { class: "size-5 text-gray-400" })
|
|
1246
1266
|
]),
|
|
1247
|
-
|
|
1267
|
+
o("input", E(e.attrs, {
|
|
1248
1268
|
type: "file",
|
|
1249
1269
|
accept: e.accept,
|
|
1250
1270
|
class: "block w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg bg-white text-sm file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-medium file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 cursor-pointer",
|
|
1251
|
-
onChange:
|
|
1252
|
-
}), null, 16,
|
|
1271
|
+
onChange: n
|
|
1272
|
+
}), null, 16, fl)
|
|
1253
1273
|
]),
|
|
1254
|
-
l.currentImageUrl ? (
|
|
1255
|
-
|
|
1256
|
-
|
|
1274
|
+
l.currentImageUrl ? (a(), i("div", gl, [
|
|
1275
|
+
o("div", yl, [
|
|
1276
|
+
o("img", {
|
|
1257
1277
|
src: l.currentImageUrl,
|
|
1258
1278
|
alt: "Current logo",
|
|
1259
1279
|
class: "h-16 w-auto max-w-24 object-contain rounded-lg shadow-sm"
|
|
1260
|
-
}, null, 8,
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1280
|
+
}, null, 8, pl),
|
|
1281
|
+
o("div", null, [
|
|
1282
|
+
o("p", ml, V(l.currentLabel), 1),
|
|
1283
|
+
o("p", bl, V(l.currentSubtext), 1)
|
|
1264
1284
|
])
|
|
1265
1285
|
])
|
|
1266
|
-
])) :
|
|
1286
|
+
])) : M("", !0)
|
|
1267
1287
|
]));
|
|
1268
1288
|
}
|
|
1269
|
-
},
|
|
1289
|
+
}, vl = { class: "flex h-12 overflow-hidden rounded-lg border border-gray-300 text-sm" }, hl = ["disabled", "onClick"], Re = {
|
|
1270
1290
|
__name: "NotationInput",
|
|
1271
1291
|
props: {
|
|
1272
1292
|
modelValue: {
|
|
@@ -1283,24 +1303,24 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1283
1303
|
}
|
|
1284
1304
|
},
|
|
1285
1305
|
emits: ["update:modelValue"],
|
|
1286
|
-
setup(e, { emit:
|
|
1287
|
-
const t =
|
|
1288
|
-
return (
|
|
1289
|
-
(
|
|
1290
|
-
key: `notation-${
|
|
1306
|
+
setup(e, { emit: s }) {
|
|
1307
|
+
const t = s, l = e, n = g(() => l.options.map((f) => f == null ? "" : String(f).trim()).filter((f) => f !== "")), u = (f) => String(f) === String(l.modelValue ?? ""), d = (f) => t("update:modelValue", f);
|
|
1308
|
+
return (f, v) => (a(), i("div", vl, [
|
|
1309
|
+
(a(!0), i(q, null, W(n.value, (b, _) => (a(), i("button", {
|
|
1310
|
+
key: `notation-${_}-${b}`,
|
|
1291
1311
|
type: "button",
|
|
1292
|
-
class:
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1312
|
+
class: S(["flex-1 border-l border-gray-300 px-2 text-center font-semibold transition-colors duration-150 first:border-l-0", [
|
|
1313
|
+
_ === 0 ? "rounded-l-lg" : "",
|
|
1314
|
+
_ === n.value.length - 1 ? "rounded-r-lg" : "",
|
|
1315
|
+
u(b) ? "bg-indigo-600 text-white" : "bg-white text-gray-700 hover:bg-gray-50",
|
|
1296
1316
|
"focus-visible:ring-2 "
|
|
1297
1317
|
]]),
|
|
1298
1318
|
disabled: e.disabled,
|
|
1299
|
-
onClick: (h) =>
|
|
1300
|
-
},
|
|
1319
|
+
onClick: (h) => d(b)
|
|
1320
|
+
}, V(b), 11, hl))), 128))
|
|
1301
1321
|
]));
|
|
1302
1322
|
}
|
|
1303
|
-
},
|
|
1323
|
+
}, xl = ["name", "value", "checked", "disabled"], He = {
|
|
1304
1324
|
__name: "RadioInput",
|
|
1305
1325
|
props: {
|
|
1306
1326
|
modelValue: {
|
|
@@ -1325,34 +1345,34 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1325
1345
|
}
|
|
1326
1346
|
},
|
|
1327
1347
|
emits: ["update:modelValue"],
|
|
1328
|
-
setup(e, { emit:
|
|
1329
|
-
const t =
|
|
1330
|
-
|
|
1331
|
-
},
|
|
1332
|
-
|
|
1333
|
-
},
|
|
1334
|
-
return (
|
|
1335
|
-
class:
|
|
1336
|
-
|
|
1348
|
+
setup(e, { emit: s }) {
|
|
1349
|
+
const t = s, l = e, n = g(() => String(l.modelValue ?? "") === String(l.value)), u = O(!1), d = () => {
|
|
1350
|
+
u.value = !0;
|
|
1351
|
+
}, f = () => {
|
|
1352
|
+
u.value = !1;
|
|
1353
|
+
}, v = () => t("update:modelValue", l.value);
|
|
1354
|
+
return (b, _) => (a(), i("label", {
|
|
1355
|
+
class: S(["inline-flex items-center rounded-full border px-3 py-1 text-sm font-medium select-none transition-colors", [
|
|
1356
|
+
n.value ? "bg-indigo-600 text-white border-indigo-600" : "text-gray-600 border-gray-200",
|
|
1337
1357
|
e.disabled ? "opacity-60 cursor-not-allowed" : "cursor-pointer",
|
|
1338
|
-
|
|
1358
|
+
u.value && !e.disabled ? "ring-2 ring-indigo-500/80 ring-offset-2 ring-offset-white" : ""
|
|
1339
1359
|
]])
|
|
1340
1360
|
}, [
|
|
1341
|
-
|
|
1361
|
+
o("input", {
|
|
1342
1362
|
type: "radio",
|
|
1343
1363
|
class: "sr-only",
|
|
1344
1364
|
name: e.name,
|
|
1345
1365
|
value: e.value,
|
|
1346
|
-
checked:
|
|
1366
|
+
checked: n.value,
|
|
1347
1367
|
disabled: e.disabled,
|
|
1348
|
-
onChange:
|
|
1349
|
-
onFocus:
|
|
1350
|
-
onBlur:
|
|
1351
|
-
}, null, 40,
|
|
1352
|
-
|
|
1368
|
+
onChange: v,
|
|
1369
|
+
onFocus: d,
|
|
1370
|
+
onBlur: f
|
|
1371
|
+
}, null, 40, xl),
|
|
1372
|
+
o("span", null, V(n.value ? "✓" : "○") + " " + V(e.label), 1)
|
|
1353
1373
|
], 2));
|
|
1354
1374
|
}
|
|
1355
|
-
},
|
|
1375
|
+
}, wl = { class: "flex flex-wrap gap-3" }, qe = {
|
|
1356
1376
|
__name: "RadioMultipleInput",
|
|
1357
1377
|
props: {
|
|
1358
1378
|
modelValue: {
|
|
@@ -1373,28 +1393,28 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1373
1393
|
}
|
|
1374
1394
|
},
|
|
1375
1395
|
emits: ["update:modelValue"],
|
|
1376
|
-
setup(e, { emit:
|
|
1377
|
-
const t =
|
|
1378
|
-
return (
|
|
1379
|
-
(
|
|
1380
|
-
key: `radio-${e.name ?? "group"}-${
|
|
1396
|
+
setup(e, { emit: s }) {
|
|
1397
|
+
const t = s, l = e, n = g(() => l.options.map((d) => d == null ? "" : String(d).trim()).filter((d) => d !== "")), u = (d) => t("update:modelValue", d);
|
|
1398
|
+
return (d, f) => (a(), i("div", wl, [
|
|
1399
|
+
(a(!0), i(q, null, W(n.value, (v) => (a(), B(pe, {
|
|
1400
|
+
key: `radio-${e.name ?? "group"}-${v}`,
|
|
1381
1401
|
type: "radio-input",
|
|
1382
1402
|
"model-value": l.modelValue,
|
|
1383
1403
|
name: e.name,
|
|
1384
|
-
value:
|
|
1385
|
-
label:
|
|
1404
|
+
value: v,
|
|
1405
|
+
label: v,
|
|
1386
1406
|
disabled: e.disabled,
|
|
1387
|
-
"onUpdate:modelValue":
|
|
1407
|
+
"onUpdate:modelValue": u
|
|
1388
1408
|
}, null, 8, ["model-value", "name", "value", "label", "disabled"]))), 128))
|
|
1389
1409
|
]));
|
|
1390
1410
|
}
|
|
1391
|
-
},
|
|
1411
|
+
}, kl = ["for"], Sl = {
|
|
1392
1412
|
key: 1,
|
|
1393
1413
|
class: "text-xs text-gray-500 mb-1 block break-all"
|
|
1394
|
-
},
|
|
1414
|
+
}, $l = {
|
|
1395
1415
|
key: 14,
|
|
1396
1416
|
class: "flex items-center mt-2 text-sm text-red-600"
|
|
1397
|
-
},
|
|
1417
|
+
}, ce = "block w-full px-4 py-3 rounded-lg bg-white text-sm placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200", pe = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1398
1418
|
__name: "InputGroup",
|
|
1399
1419
|
props: {
|
|
1400
1420
|
type: {
|
|
@@ -1511,11 +1531,11 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1511
1531
|
}
|
|
1512
1532
|
},
|
|
1513
1533
|
emits: ["update:modelValue", "blur"],
|
|
1514
|
-
setup(e, { emit:
|
|
1515
|
-
const t = e, l =
|
|
1516
|
-
const
|
|
1517
|
-
return typeof
|
|
1518
|
-
}),
|
|
1534
|
+
setup(e, { emit: s }) {
|
|
1535
|
+
const t = e, l = s, n = ne(), u = (U) => l("update:modelValue", U), d = g(() => !!t.errorMessage), f = g(() => T.value || m.value), v = g(() => {
|
|
1536
|
+
const U = n.id;
|
|
1537
|
+
return typeof U == "string" && U !== "" ? U : void 0;
|
|
1538
|
+
}), b = [
|
|
1519
1539
|
"text",
|
|
1520
1540
|
"email",
|
|
1521
1541
|
"password",
|
|
@@ -1527,30 +1547,30 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1527
1547
|
"month",
|
|
1528
1548
|
"week",
|
|
1529
1549
|
"color"
|
|
1530
|
-
],
|
|
1531
|
-
...
|
|
1532
|
-
class: [
|
|
1550
|
+
], _ = [], h = g(() => t.type === "image"), k = g(() => t.type === "notation"), T = g(() => t.type === "checkbox-input"), m = g(() => t.type === "radio-input"), L = g(() => t.type === "checkbox"), D = g(() => t.type === "radio"), j = g(() => t.type === "date" || t.type === "datetime-local"), H = g(() => t.type === "textarea"), Q = g(() => t.type === "select"), G = g(() => b.includes(t.type)), te = g(() => _.includes(t.type)), X = g(() => ({
|
|
1551
|
+
...n,
|
|
1552
|
+
class: [ce, n.class],
|
|
1533
1553
|
type: t.type,
|
|
1534
1554
|
modelValue: t.modelValue,
|
|
1535
1555
|
disabled: t.disabled,
|
|
1536
1556
|
disabledClass: t.disabledClass
|
|
1537
|
-
})),
|
|
1538
|
-
...
|
|
1539
|
-
class: [
|
|
1557
|
+
})), P = g(() => ({
|
|
1558
|
+
...n,
|
|
1559
|
+
class: [ce, n.class],
|
|
1540
1560
|
modelValue: t.modelValue,
|
|
1541
1561
|
disabled: t.disabled,
|
|
1542
1562
|
disabledClass: t.disabledClass
|
|
1543
|
-
})),
|
|
1544
|
-
...
|
|
1545
|
-
class: [
|
|
1563
|
+
})), x = g(() => ({
|
|
1564
|
+
...n,
|
|
1565
|
+
class: [ce, n.class],
|
|
1546
1566
|
modelValue: t.modelValue,
|
|
1547
1567
|
withTimestamp: t.type === "datetime-local" || t.withTimestamp,
|
|
1548
1568
|
disabled: t.disabled,
|
|
1549
1569
|
disabledClass: t.disabledClass
|
|
1550
|
-
})),
|
|
1551
|
-
const
|
|
1552
|
-
...
|
|
1553
|
-
class: [
|
|
1570
|
+
})), K = g(() => {
|
|
1571
|
+
const U = {
|
|
1572
|
+
...n,
|
|
1573
|
+
class: [ce, n.class],
|
|
1554
1574
|
modelValue: t.modelValue,
|
|
1555
1575
|
modelModifiers: t.modelModifiers,
|
|
1556
1576
|
options: t.options,
|
|
@@ -1563,99 +1583,99 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1563
1583
|
deletedKey: t.deletedKey,
|
|
1564
1584
|
optionLabel: t.optionLabel
|
|
1565
1585
|
};
|
|
1566
|
-
return t.baseClass !== void 0 && (
|
|
1567
|
-
}), N =
|
|
1568
|
-
...
|
|
1586
|
+
return t.baseClass !== void 0 && (U.baseClass = t.baseClass), t.normalTextClass !== void 0 && (U.normalTextClass = t.normalTextClass), t.deletedSelectedClass !== void 0 && (U.deletedSelectedClass = t.deletedSelectedClass), t.optionClass !== void 0 && (U.optionClass = t.optionClass), t.deletedOptionClass !== void 0 && (U.deletedOptionClass = t.deletedOptionClass), t.placeholderClass !== void 0 && (U.placeholderClass = t.placeholderClass), U;
|
|
1587
|
+
}), N = g(() => ({
|
|
1588
|
+
...n,
|
|
1569
1589
|
modelValue: t.modelValue,
|
|
1570
1590
|
options: t.options,
|
|
1571
1591
|
disabled: t.disabled
|
|
1572
|
-
})),
|
|
1573
|
-
...
|
|
1592
|
+
})), Y = g(() => ({
|
|
1593
|
+
...n,
|
|
1574
1594
|
modelValue: t.modelValue,
|
|
1575
1595
|
options: t.options,
|
|
1576
1596
|
disabled: t.disabled
|
|
1577
|
-
})),
|
|
1578
|
-
...
|
|
1597
|
+
})), le = g(() => ({
|
|
1598
|
+
...n,
|
|
1579
1599
|
modelValue: t.modelValue,
|
|
1580
1600
|
options: t.options,
|
|
1581
|
-
name: t.name ??
|
|
1601
|
+
name: t.name ?? n.name,
|
|
1582
1602
|
disabled: t.disabled
|
|
1583
|
-
})),
|
|
1584
|
-
...
|
|
1603
|
+
})), Z = g(() => ({
|
|
1604
|
+
...n,
|
|
1585
1605
|
modelValue: t.modelValue,
|
|
1586
|
-
label: t.label ||
|
|
1606
|
+
label: t.label || n.label || "",
|
|
1587
1607
|
disabled: t.disabled
|
|
1588
|
-
})),
|
|
1589
|
-
...
|
|
1608
|
+
})), ae = g(() => ({
|
|
1609
|
+
...n,
|
|
1590
1610
|
modelValue: t.modelValue,
|
|
1591
|
-
label: t.label ||
|
|
1592
|
-
name: t.name ??
|
|
1611
|
+
label: t.label || n.label || "",
|
|
1612
|
+
name: t.name ?? n.name,
|
|
1593
1613
|
disabled: t.disabled
|
|
1594
|
-
})),
|
|
1595
|
-
...
|
|
1596
|
-
accept: t.accept ??
|
|
1614
|
+
})), ie = g(() => ({
|
|
1615
|
+
...n,
|
|
1616
|
+
accept: t.accept ?? n.accept ?? "image/*",
|
|
1597
1617
|
modelValue: t.modelValue,
|
|
1598
1618
|
currentImageUrl: t.currentImageUrl,
|
|
1599
1619
|
currentLabel: t.currentLabel,
|
|
1600
1620
|
currentSubtext: t.currentSubtext
|
|
1601
1621
|
}));
|
|
1602
|
-
return (
|
|
1603
|
-
e.label && !
|
|
1622
|
+
return (U, $) => (a(), i("div", null, [
|
|
1623
|
+
e.label && !f.value ? (a(), i("label", {
|
|
1604
1624
|
key: 0,
|
|
1605
|
-
for:
|
|
1625
|
+
for: v.value,
|
|
1606
1626
|
class: "text-base font-semibold text-gray-900 mb-1 block"
|
|
1607
|
-
},
|
|
1608
|
-
e.helperText && !
|
|
1609
|
-
|
|
1610
|
-
"onUpdate:modelValue":
|
|
1611
|
-
onBlur:
|
|
1612
|
-
}), null, 16)) :
|
|
1613
|
-
"onUpdate:modelValue":
|
|
1614
|
-
onBlur:
|
|
1615
|
-
}), null, 16)) :
|
|
1616
|
-
"onUpdate:modelValue":
|
|
1617
|
-
onBlur:
|
|
1618
|
-
}), null, 16)) :
|
|
1619
|
-
"onUpdate:modelValue":
|
|
1620
|
-
onBlur:
|
|
1621
|
-
}), null, 16)) : h.value ? (
|
|
1622
|
-
"onUpdate:modelValue":
|
|
1623
|
-
onBlur:
|
|
1624
|
-
}), null, 16)) :
|
|
1625
|
-
"onUpdate:modelValue":
|
|
1626
|
-
onBlur:
|
|
1627
|
-
}), null, 16)) :
|
|
1628
|
-
"onUpdate:modelValue":
|
|
1629
|
-
onBlur:
|
|
1630
|
-
}), null, 16)) :
|
|
1631
|
-
"onUpdate:modelValue":
|
|
1632
|
-
onBlur:
|
|
1633
|
-
}), null, 16)) : L.value ? (
|
|
1634
|
-
"onUpdate:modelValue":
|
|
1635
|
-
onBlur:
|
|
1636
|
-
}), null, 16)) :
|
|
1637
|
-
"onUpdate:modelValue":
|
|
1638
|
-
onBlur:
|
|
1639
|
-
}), null, 16)) :
|
|
1627
|
+
}, V(e.label), 9, kl)) : M("", !0),
|
|
1628
|
+
e.helperText && !f.value ? (a(), i("span", Sl, V(e.helperText), 1)) : M("", !0),
|
|
1629
|
+
H.value ? (a(), B(Ee, E({ key: 2 }, P.value, {
|
|
1630
|
+
"onUpdate:modelValue": $[0] || ($[0] = (C) => l("update:modelValue", C)),
|
|
1631
|
+
onBlur: $[1] || ($[1] = (C) => l("blur", C))
|
|
1632
|
+
}), null, 16)) : Q.value ? (a(), B(Ne, E({ key: 3 }, K.value, {
|
|
1633
|
+
"onUpdate:modelValue": $[2] || ($[2] = (C) => l("update:modelValue", C)),
|
|
1634
|
+
onBlur: $[3] || ($[3] = (C) => l("blur", C))
|
|
1635
|
+
}), null, 16)) : j.value ? (a(), B(Ue, E({ key: 4 }, x.value, {
|
|
1636
|
+
"onUpdate:modelValue": $[4] || ($[4] = (C) => l("update:modelValue", C)),
|
|
1637
|
+
onBlur: $[5] || ($[5] = (C) => l("blur", C))
|
|
1638
|
+
}), null, 16)) : G.value ? (a(), B(ze, E({ key: 5 }, X.value, {
|
|
1639
|
+
"onUpdate:modelValue": $[6] || ($[6] = (C) => l("update:modelValue", C)),
|
|
1640
|
+
onBlur: $[7] || ($[7] = (C) => l("blur", C))
|
|
1641
|
+
}), null, 16)) : h.value ? (a(), B(Ke, E({ key: 6 }, ie.value, {
|
|
1642
|
+
"onUpdate:modelValue": $[8] || ($[8] = (C) => l("update:modelValue", C)),
|
|
1643
|
+
onBlur: $[9] || ($[9] = (C) => l("blur", C))
|
|
1644
|
+
}), null, 16)) : T.value ? (a(), B(Oe, E({ key: 7 }, Z.value, {
|
|
1645
|
+
"onUpdate:modelValue": $[10] || ($[10] = (C) => l("update:modelValue", C)),
|
|
1646
|
+
onBlur: $[11] || ($[11] = (C) => l("blur", C))
|
|
1647
|
+
}), null, 16)) : m.value ? (a(), B(He, E({ key: 8 }, ae.value, {
|
|
1648
|
+
"onUpdate:modelValue": $[12] || ($[12] = (C) => l("update:modelValue", C)),
|
|
1649
|
+
onBlur: $[13] || ($[13] = (C) => l("blur", C))
|
|
1650
|
+
}), null, 16)) : k.value ? (a(), B(Re, E({ key: 9 }, N.value, {
|
|
1651
|
+
"onUpdate:modelValue": $[14] || ($[14] = (C) => l("update:modelValue", C)),
|
|
1652
|
+
onBlur: $[15] || ($[15] = (C) => l("blur", C))
|
|
1653
|
+
}), null, 16)) : L.value ? (a(), B(Pe, E({ key: 10 }, Y.value, {
|
|
1654
|
+
"onUpdate:modelValue": $[16] || ($[16] = (C) => l("update:modelValue", C)),
|
|
1655
|
+
onBlur: $[17] || ($[17] = (C) => l("blur", C))
|
|
1656
|
+
}), null, 16)) : D.value ? (a(), B(qe, E({ key: 11 }, le.value, {
|
|
1657
|
+
"onUpdate:modelValue": $[18] || ($[18] = (C) => l("update:modelValue", C)),
|
|
1658
|
+
onBlur: $[19] || ($[19] = (C) => l("blur", C))
|
|
1659
|
+
}), null, 16)) : te.value ? w(U.$slots, "unsupported-type", {
|
|
1640
1660
|
key: 12,
|
|
1641
1661
|
type: e.type,
|
|
1642
1662
|
modelValue: e.modelValue,
|
|
1643
|
-
updateValue:
|
|
1644
|
-
attrs:
|
|
1645
|
-
}) :
|
|
1663
|
+
updateValue: u,
|
|
1664
|
+
attrs: I(n)
|
|
1665
|
+
}) : w(U.$slots, "unsupported-type", {
|
|
1646
1666
|
key: 13,
|
|
1647
1667
|
type: e.type,
|
|
1648
1668
|
modelValue: e.modelValue,
|
|
1649
|
-
updateValue:
|
|
1650
|
-
attrs:
|
|
1669
|
+
updateValue: u,
|
|
1670
|
+
attrs: I(n)
|
|
1651
1671
|
}),
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
])) :
|
|
1672
|
+
d.value ? (a(), i("div", $l, [
|
|
1673
|
+
F(I(rt), { class: "mr-1 h-4 w-4 flex-shrink-0" }),
|
|
1674
|
+
o("span", null, V(e.errorMessage), 1)
|
|
1675
|
+
])) : M("", !0)
|
|
1656
1676
|
]));
|
|
1657
1677
|
}
|
|
1658
|
-
}),
|
|
1678
|
+
}), Cl = { class: "flex flex-wrap gap-3" }, Pe = {
|
|
1659
1679
|
__name: "CheckboxMultipleInput",
|
|
1660
1680
|
props: {
|
|
1661
1681
|
modelValue: {
|
|
@@ -1672,25 +1692,25 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1672
1692
|
}
|
|
1673
1693
|
},
|
|
1674
1694
|
emits: ["update:modelValue"],
|
|
1675
|
-
setup(e, { emit:
|
|
1676
|
-
const t =
|
|
1677
|
-
const
|
|
1678
|
-
|
|
1695
|
+
setup(e, { emit: s }) {
|
|
1696
|
+
const t = s, l = e, n = g(() => l.options.map((f) => f == null ? "" : String(f).trim()).filter((f) => f !== "")), u = (f) => Array.isArray(l.modelValue) && l.modelValue.includes(f), d = (f, v) => {
|
|
1697
|
+
const b = Array.isArray(l.modelValue) ? [...l.modelValue] : [], _ = b.indexOf(f);
|
|
1698
|
+
v && _ === -1 ? b.push(f) : !v && _ !== -1 && b.splice(_, 1), t("update:modelValue", b);
|
|
1679
1699
|
};
|
|
1680
|
-
return (
|
|
1681
|
-
(
|
|
1682
|
-
key: `checkbox-${
|
|
1700
|
+
return (f, v) => (a(), i("div", Cl, [
|
|
1701
|
+
(a(!0), i(q, null, W(n.value, (b) => (a(), B(pe, {
|
|
1702
|
+
key: `checkbox-${b}`,
|
|
1683
1703
|
type: "checkbox-input",
|
|
1684
|
-
"model-value":
|
|
1704
|
+
"model-value": u(b),
|
|
1685
1705
|
value: !0,
|
|
1686
1706
|
"unchecked-value": !1,
|
|
1687
|
-
label:
|
|
1707
|
+
label: b,
|
|
1688
1708
|
disabled: e.disabled,
|
|
1689
|
-
"onUpdate:modelValue": (
|
|
1709
|
+
"onUpdate:modelValue": (_) => d(b, _)
|
|
1690
1710
|
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"]))), 128))
|
|
1691
1711
|
]));
|
|
1692
1712
|
}
|
|
1693
|
-
},
|
|
1713
|
+
}, $e = {
|
|
1694
1714
|
__name: "Modal",
|
|
1695
1715
|
props: {
|
|
1696
1716
|
show: {
|
|
@@ -1712,28 +1732,28 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1712
1732
|
}
|
|
1713
1733
|
},
|
|
1714
1734
|
emits: ["close"],
|
|
1715
|
-
setup(e, { emit:
|
|
1716
|
-
const t = e, l =
|
|
1717
|
-
|
|
1718
|
-
t.show ? (document.body.style.overflow = "hidden",
|
|
1719
|
-
|
|
1735
|
+
setup(e, { emit: s }) {
|
|
1736
|
+
const t = e, l = s, n = O(), u = O(t.show);
|
|
1737
|
+
J(() => t.show, () => {
|
|
1738
|
+
t.show ? (document.body.style.overflow = "hidden", u.value = !0, n.value?.showModal()) : (document.body.style.overflow = null, setTimeout(() => {
|
|
1739
|
+
n.value?.close(), u.value = !1;
|
|
1720
1740
|
}, 200));
|
|
1721
1741
|
});
|
|
1722
|
-
const
|
|
1742
|
+
const d = () => {
|
|
1723
1743
|
t.closeable && l("close");
|
|
1724
|
-
},
|
|
1725
|
-
|
|
1744
|
+
}, f = (_) => {
|
|
1745
|
+
_.key === "Escape" && (_.preventDefault(), t.show && d());
|
|
1726
1746
|
};
|
|
1727
|
-
|
|
1728
|
-
document.removeEventListener("keydown",
|
|
1747
|
+
se(() => document.addEventListener("keydown", f)), Ae(() => {
|
|
1748
|
+
document.removeEventListener("keydown", f), document.body.style.overflow = null;
|
|
1729
1749
|
});
|
|
1730
|
-
const
|
|
1750
|
+
const v = g(() => ({
|
|
1731
1751
|
sm: "sm:max-w-sm",
|
|
1732
1752
|
md: "sm:max-w-md",
|
|
1733
1753
|
lg: "sm:max-w-lg",
|
|
1734
1754
|
xl: "sm:max-w-xl",
|
|
1735
1755
|
"2xl": "sm:max-w-2xl"
|
|
1736
|
-
})[t.maxWidth]),
|
|
1756
|
+
})[t.maxWidth]), b = g(() => {
|
|
1737
1757
|
switch (t.position) {
|
|
1738
1758
|
case "top":
|
|
1739
1759
|
return "flex-col items-center pt-16";
|
|
@@ -1743,15 +1763,15 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1743
1763
|
return "items-center justify-center";
|
|
1744
1764
|
}
|
|
1745
1765
|
});
|
|
1746
|
-
return (
|
|
1766
|
+
return (_, h) => (a(), i("dialog", {
|
|
1747
1767
|
class: "z-50 m-0 min-h-full min-w-full overflow-y-auto bg-transparent backdrop:bg-transparent",
|
|
1748
1768
|
ref_key: "dialog",
|
|
1749
|
-
ref:
|
|
1769
|
+
ref: n
|
|
1750
1770
|
}, [
|
|
1751
|
-
|
|
1752
|
-
class:
|
|
1771
|
+
o("div", {
|
|
1772
|
+
class: S(["fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50 flex", b.value])
|
|
1753
1773
|
}, [
|
|
1754
|
-
|
|
1774
|
+
F(re, {
|
|
1755
1775
|
"enter-active-class": "ease-out duration-300",
|
|
1756
1776
|
"enter-from-class": "opacity-0",
|
|
1757
1777
|
"enter-to-class": "opacity-100",
|
|
@@ -1759,19 +1779,19 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1759
1779
|
"leave-from-class": "opacity-100",
|
|
1760
1780
|
"leave-to-class": "opacity-0"
|
|
1761
1781
|
}, {
|
|
1762
|
-
default:
|
|
1763
|
-
|
|
1782
|
+
default: z(() => [
|
|
1783
|
+
ee(o("div", {
|
|
1764
1784
|
class: "fixed inset-0 transform transition-all",
|
|
1765
|
-
onClick:
|
|
1785
|
+
onClick: d
|
|
1766
1786
|
}, [...h[0] || (h[0] = [
|
|
1767
|
-
|
|
1787
|
+
o("div", { class: "absolute inset-0 bg-gray-500 opacity-75" }, null, -1)
|
|
1768
1788
|
])], 512), [
|
|
1769
|
-
[
|
|
1789
|
+
[oe, e.show]
|
|
1770
1790
|
])
|
|
1771
1791
|
]),
|
|
1772
1792
|
_: 1
|
|
1773
1793
|
}),
|
|
1774
|
-
|
|
1794
|
+
F(re, {
|
|
1775
1795
|
"enter-active-class": "ease-out duration-300",
|
|
1776
1796
|
"enter-from-class": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
1777
1797
|
"enter-to-class": "opacity-100 translate-y-0 sm:scale-100",
|
|
@@ -1779,13 +1799,13 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1779
1799
|
"leave-from-class": "opacity-100 translate-y-0 sm:scale-100",
|
|
1780
1800
|
"leave-to-class": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
1781
1801
|
}, {
|
|
1782
|
-
default:
|
|
1783
|
-
|
|
1784
|
-
class:
|
|
1802
|
+
default: z(() => [
|
|
1803
|
+
ee(o("div", {
|
|
1804
|
+
class: S(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto", v.value])
|
|
1785
1805
|
}, [
|
|
1786
|
-
|
|
1806
|
+
u.value ? w(_.$slots, "default", { key: 0 }) : M("", !0)
|
|
1787
1807
|
], 2), [
|
|
1788
|
-
[
|
|
1808
|
+
[oe, e.show]
|
|
1789
1809
|
])
|
|
1790
1810
|
]),
|
|
1791
1811
|
_: 3
|
|
@@ -1793,7 +1813,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1793
1813
|
], 2)
|
|
1794
1814
|
], 512));
|
|
1795
1815
|
}
|
|
1796
|
-
},
|
|
1816
|
+
}, Vl = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, _l = { class: "sm:flex sm:items-start" }, Tl = { class: "mx-auto shrink-0 flex items-center justify-center size-12 rounded-full bg-red-100 sm:mx-0 sm:size-10" }, Al = { class: "mt-3 text-center sm:mt-0 sm:ms-4 sm:text-start" }, Bl = { class: "text-lg font-medium text-gray-900" }, Ll = { class: "mt-4 text-sm text-gray-600" }, Il = { class: "flex flex-col-reverse lg:flex-row lg:justify-end px-6 py-4 bg-gray-100 text-end gap-4 lg:gap-0" }, Dl = {
|
|
1797
1817
|
__name: "ConfirmationModal",
|
|
1798
1818
|
props: {
|
|
1799
1819
|
show: {
|
|
@@ -1815,65 +1835,41 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1815
1835
|
}
|
|
1816
1836
|
},
|
|
1817
1837
|
emits: ["close"],
|
|
1818
|
-
setup(e, { emit:
|
|
1819
|
-
const t =
|
|
1838
|
+
setup(e, { emit: s }) {
|
|
1839
|
+
const t = s, l = () => {
|
|
1820
1840
|
t("close");
|
|
1821
1841
|
};
|
|
1822
|
-
return (
|
|
1842
|
+
return (n, u) => (a(), B($e, {
|
|
1823
1843
|
show: e.show,
|
|
1824
1844
|
"max-width": e.maxWidth,
|
|
1825
1845
|
closeable: e.closeable,
|
|
1826
1846
|
position: e.position,
|
|
1827
1847
|
onClose: l
|
|
1828
1848
|
}, {
|
|
1829
|
-
default:
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1849
|
+
default: z(() => [
|
|
1850
|
+
o("div", Vl, [
|
|
1851
|
+
o("div", _l, [
|
|
1852
|
+
o("div", Tl, [
|
|
1853
|
+
F(I(Le), { class: "size-6 text-red-600" })
|
|
1834
1854
|
]),
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1855
|
+
o("div", Al, [
|
|
1856
|
+
o("h3", Bl, [
|
|
1857
|
+
w(n.$slots, "title")
|
|
1838
1858
|
]),
|
|
1839
|
-
|
|
1840
|
-
|
|
1859
|
+
o("div", Ll, [
|
|
1860
|
+
w(n.$slots, "content")
|
|
1841
1861
|
])
|
|
1842
1862
|
])
|
|
1843
1863
|
])
|
|
1844
1864
|
]),
|
|
1845
|
-
|
|
1846
|
-
|
|
1865
|
+
o("div", Il, [
|
|
1866
|
+
w(n.$slots, "footer")
|
|
1847
1867
|
])
|
|
1848
1868
|
]),
|
|
1849
1869
|
_: 3
|
|
1850
1870
|
}, 8, ["show", "max-width", "closeable", "position"]));
|
|
1851
1871
|
}
|
|
1852
|
-
},
|
|
1853
|
-
inheritAttrs: !1
|
|
1854
|
-
}, {
|
|
1855
|
-
__name: "DangerButton",
|
|
1856
|
-
props: {
|
|
1857
|
-
type: {
|
|
1858
|
-
type: String,
|
|
1859
|
-
default: "button"
|
|
1860
|
-
},
|
|
1861
|
-
disabled: {
|
|
1862
|
-
type: Boolean,
|
|
1863
|
-
default: !1
|
|
1864
|
-
}
|
|
1865
|
-
},
|
|
1866
|
-
setup(e) {
|
|
1867
|
-
const a = P();
|
|
1868
|
-
return (t, l) => (s(), n("button", M(V(a), {
|
|
1869
|
-
type: e.type,
|
|
1870
|
-
disabled: e.disabled,
|
|
1871
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg border border-red-300 bg-red-50 p-3 py-2 text-sm font-medium text-red-700 transition-all duration-200 hover:bg-red-100 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-red-50"
|
|
1872
|
-
}), [
|
|
1873
|
-
g(t.$slots, "default")
|
|
1874
|
-
], 16, hl));
|
|
1875
|
-
}
|
|
1876
|
-
}), xl = { class: "px-6 py-4" }, wl = { class: "text-lg font-medium text-gray-900" }, kl = { class: "mt-4 text-sm text-gray-600" }, Sl = { class: "flex flex-row justify-end px-6 py-4 bg-gray-100 text-end" }, $l = {
|
|
1872
|
+
}, Ml = { class: "px-6 py-4" }, jl = { class: "text-lg font-medium text-gray-900" }, Ol = { class: "mt-4 text-sm text-gray-600" }, zl = { class: "flex flex-row justify-end px-6 py-4 bg-gray-100 text-end" }, El = {
|
|
1877
1873
|
__name: "DialogModal",
|
|
1878
1874
|
props: {
|
|
1879
1875
|
show: {
|
|
@@ -1890,33 +1886,33 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1890
1886
|
}
|
|
1891
1887
|
},
|
|
1892
1888
|
emits: ["close"],
|
|
1893
|
-
setup(e, { emit:
|
|
1894
|
-
const t =
|
|
1889
|
+
setup(e, { emit: s }) {
|
|
1890
|
+
const t = s, l = () => {
|
|
1895
1891
|
t("close");
|
|
1896
1892
|
};
|
|
1897
|
-
return (
|
|
1893
|
+
return (n, u) => (a(), B($e, {
|
|
1898
1894
|
show: e.show,
|
|
1899
1895
|
"max-width": e.maxWidth,
|
|
1900
1896
|
closeable: e.closeable,
|
|
1901
1897
|
onClose: l
|
|
1902
1898
|
}, {
|
|
1903
|
-
default:
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1899
|
+
default: z(() => [
|
|
1900
|
+
o("div", Ml, [
|
|
1901
|
+
o("div", jl, [
|
|
1902
|
+
w(n.$slots, "title")
|
|
1907
1903
|
]),
|
|
1908
|
-
|
|
1909
|
-
|
|
1904
|
+
o("div", Ol, [
|
|
1905
|
+
w(n.$slots, "content")
|
|
1910
1906
|
])
|
|
1911
1907
|
]),
|
|
1912
|
-
|
|
1913
|
-
|
|
1908
|
+
o("div", zl, [
|
|
1909
|
+
w(n.$slots, "footer")
|
|
1914
1910
|
])
|
|
1915
1911
|
]),
|
|
1916
1912
|
_: 3
|
|
1917
1913
|
}, 8, ["show", "max-width", "closeable"]));
|
|
1918
1914
|
}
|
|
1919
|
-
},
|
|
1915
|
+
}, Fl = { class: "relative" }, Nl = {
|
|
1920
1916
|
__name: "Dropdown",
|
|
1921
1917
|
props: {
|
|
1922
1918
|
align: {
|
|
@@ -1933,28 +1929,28 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1933
1929
|
}
|
|
1934
1930
|
},
|
|
1935
1931
|
setup(e) {
|
|
1936
|
-
const
|
|
1937
|
-
let t =
|
|
1938
|
-
const l = (
|
|
1939
|
-
t.value &&
|
|
1932
|
+
const s = e;
|
|
1933
|
+
let t = O(!1);
|
|
1934
|
+
const l = (d) => {
|
|
1935
|
+
t.value && d.key === "Escape" && (t.value = !1);
|
|
1940
1936
|
};
|
|
1941
|
-
|
|
1942
|
-
const
|
|
1937
|
+
se(() => document.addEventListener("keydown", l)), Ae(() => document.removeEventListener("keydown", l));
|
|
1938
|
+
const n = g(() => ({
|
|
1943
1939
|
48: "w-48"
|
|
1944
|
-
})[
|
|
1945
|
-
return (
|
|
1946
|
-
|
|
1947
|
-
onClick:
|
|
1940
|
+
})[s.width.toString()]), u = g(() => s.align === "left" ? "ltr:origin-top-left rtl:origin-top-right start-0" : s.align === "right" ? "ltr:origin-top-right rtl:origin-top-left end-0" : "origin-top");
|
|
1941
|
+
return (d, f) => (a(), i("div", Fl, [
|
|
1942
|
+
o("div", {
|
|
1943
|
+
onClick: f[0] || (f[0] = (v) => be(t) ? t.value = !I(t) : t = !I(t))
|
|
1948
1944
|
}, [
|
|
1949
|
-
|
|
1945
|
+
w(d.$slots, "trigger", { open: I(t) })
|
|
1950
1946
|
]),
|
|
1951
|
-
|
|
1947
|
+
ee(o("div", {
|
|
1952
1948
|
class: "fixed inset-0 z-40",
|
|
1953
|
-
onClick:
|
|
1949
|
+
onClick: f[1] || (f[1] = (v) => be(t) ? t.value = !1 : t = !1)
|
|
1954
1950
|
}, null, 512), [
|
|
1955
|
-
[
|
|
1951
|
+
[oe, I(t)]
|
|
1956
1952
|
]),
|
|
1957
|
-
|
|
1953
|
+
F(re, {
|
|
1958
1954
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
1959
1955
|
"enter-from-class": "transform opacity-0 scale-95 translate-y-2",
|
|
1960
1956
|
"enter-to-class": "transform opacity-100 scale-100 translate-y-0",
|
|
@@ -1962,163 +1958,121 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1962
1958
|
"leave-from-class": "transform opacity-100 scale-100 translate-y-0",
|
|
1963
1959
|
"leave-to-class": "transform opacity-0 scale-95 translate-y-2"
|
|
1964
1960
|
}, {
|
|
1965
|
-
default:
|
|
1966
|
-
|
|
1967
|
-
class:
|
|
1961
|
+
default: z(() => [
|
|
1962
|
+
ee(o("div", {
|
|
1963
|
+
class: S(["absolute z-50 mt-2 rounded-xl shadow-xl shadow-gray-900/10", [n.value, u.value]]),
|
|
1968
1964
|
style: { display: "none" },
|
|
1969
|
-
onClick:
|
|
1965
|
+
onClick: f[2] || (f[2] = (v) => be(t) ? t.value = !1 : t = !1)
|
|
1970
1966
|
}, [
|
|
1971
|
-
|
|
1972
|
-
class:
|
|
1967
|
+
o("div", {
|
|
1968
|
+
class: S(["rounded-xl ring-1 ring-gray-200/60 backdrop-blur-sm bg-white/95", e.contentClasses])
|
|
1973
1969
|
}, [
|
|
1974
|
-
|
|
1970
|
+
w(d.$slots, "content")
|
|
1975
1971
|
], 2)
|
|
1976
1972
|
], 2), [
|
|
1977
|
-
[
|
|
1973
|
+
[oe, I(t)]
|
|
1978
1974
|
])
|
|
1979
1975
|
]),
|
|
1980
1976
|
_: 3
|
|
1981
1977
|
})
|
|
1982
1978
|
]));
|
|
1983
1979
|
}
|
|
1984
|
-
},
|
|
1980
|
+
}, Ul = {
|
|
1985
1981
|
key: 0,
|
|
1986
1982
|
type: "submit",
|
|
1987
1983
|
class: "block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"
|
|
1988
|
-
},
|
|
1984
|
+
}, Kl = ["href"], Rl = {
|
|
1989
1985
|
__name: "DropdownLink",
|
|
1990
1986
|
props: {
|
|
1991
1987
|
href: String,
|
|
1992
1988
|
as: String
|
|
1993
1989
|
},
|
|
1994
1990
|
setup(e) {
|
|
1995
|
-
return (
|
|
1996
|
-
e.as == "button" ? (
|
|
1997
|
-
|
|
1998
|
-
])) : e.as == "a" ? (
|
|
1991
|
+
return (s, t) => (a(), i("div", null, [
|
|
1992
|
+
e.as == "button" ? (a(), i("button", Ul, [
|
|
1993
|
+
w(s.$slots, "default")
|
|
1994
|
+
])) : e.as == "a" ? (a(), i("a", {
|
|
1999
1995
|
key: 1,
|
|
2000
1996
|
href: e.href,
|
|
2001
1997
|
class: "block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"
|
|
2002
1998
|
}, [
|
|
2003
|
-
|
|
2004
|
-
], 8,
|
|
1999
|
+
w(s.$slots, "default")
|
|
2000
|
+
], 8, Kl)) : (a(), B(I(ye), {
|
|
2005
2001
|
key: 2,
|
|
2006
2002
|
href: e.href,
|
|
2007
2003
|
class: "block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"
|
|
2008
2004
|
}, {
|
|
2009
|
-
default:
|
|
2010
|
-
|
|
2005
|
+
default: z(() => [
|
|
2006
|
+
w(s.$slots, "default")
|
|
2011
2007
|
]),
|
|
2012
2008
|
_: 3
|
|
2013
2009
|
}, 8, ["href"]))
|
|
2014
2010
|
]));
|
|
2015
2011
|
}
|
|
2016
|
-
},
|
|
2012
|
+
}, Hl = { class: "md:grid md:grid-cols-3 md:gap-6" }, ql = { class: "mt-5 md:mt-0 md:col-span-2 shadow sm:rounded-lg" }, Pl = { class: "grid grid-cols-6 gap-6" }, Wl = {
|
|
2017
2013
|
key: 0,
|
|
2018
2014
|
class: "flex items-center justify-start px-3 pb-6 bg-white text-end sm:rounded-bl-md sm:rounded-br-md"
|
|
2019
|
-
},
|
|
2015
|
+
}, Gl = {
|
|
2020
2016
|
__name: "FormSection",
|
|
2021
2017
|
emits: ["submitted"],
|
|
2022
2018
|
setup(e) {
|
|
2023
|
-
const
|
|
2024
|
-
return (t, l) => (
|
|
2025
|
-
|
|
2026
|
-
title:
|
|
2027
|
-
|
|
2019
|
+
const s = g(() => !!ge().actions);
|
|
2020
|
+
return (t, l) => (a(), i("div", Hl, [
|
|
2021
|
+
F(Se, null, {
|
|
2022
|
+
title: z(() => [
|
|
2023
|
+
w(t.$slots, "title")
|
|
2028
2024
|
]),
|
|
2029
|
-
description:
|
|
2030
|
-
|
|
2025
|
+
description: z(() => [
|
|
2026
|
+
w(t.$slots, "description")
|
|
2031
2027
|
]),
|
|
2032
2028
|
_: 3
|
|
2033
2029
|
}),
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
onSubmit: l[0] || (l[0] =
|
|
2030
|
+
o("div", ql, [
|
|
2031
|
+
o("form", {
|
|
2032
|
+
onSubmit: l[0] || (l[0] = he((n) => t.$emit("submitted"), ["prevent"]))
|
|
2037
2033
|
}, [
|
|
2038
|
-
|
|
2039
|
-
class:
|
|
2034
|
+
o("div", {
|
|
2035
|
+
class: S(["px-4 py-5 bg-white sm:p-6", s.value ? "sm:rounded-tl-md sm:rounded-tr-md" : "sm:rounded-md"])
|
|
2040
2036
|
}, [
|
|
2041
|
-
|
|
2042
|
-
|
|
2037
|
+
o("div", Pl, [
|
|
2038
|
+
w(t.$slots, "form")
|
|
2043
2039
|
])
|
|
2044
2040
|
], 2),
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
])) :
|
|
2041
|
+
s.value ? (a(), i("div", Wl, [
|
|
2042
|
+
w(t.$slots, "actions")
|
|
2043
|
+
])) : M("", !0)
|
|
2048
2044
|
], 32)
|
|
2049
2045
|
])
|
|
2050
2046
|
]));
|
|
2051
2047
|
}
|
|
2052
|
-
},
|
|
2048
|
+
}, Xl = { class: "text-sm text-red-600" }, Ql = {
|
|
2053
2049
|
__name: "InputError",
|
|
2054
2050
|
props: {
|
|
2055
2051
|
message: String
|
|
2056
2052
|
},
|
|
2057
2053
|
setup(e) {
|
|
2058
|
-
return (
|
|
2059
|
-
|
|
2054
|
+
return (s, t) => ee((a(), i("div", null, [
|
|
2055
|
+
o("p", Xl, V(e.message), 1)
|
|
2060
2056
|
], 512)), [
|
|
2061
|
-
[
|
|
2057
|
+
[oe, e.message]
|
|
2062
2058
|
]);
|
|
2063
2059
|
}
|
|
2064
|
-
},
|
|
2060
|
+
}, Yl = { class: "block font-medium text-sm text-gray-700" }, Jl = { key: 0 }, Zl = { key: 1 }, ea = {
|
|
2065
2061
|
__name: "InputLabel",
|
|
2066
2062
|
props: {
|
|
2067
2063
|
value: String
|
|
2068
2064
|
},
|
|
2069
2065
|
setup(e) {
|
|
2070
|
-
return (
|
|
2071
|
-
e.value ? (
|
|
2072
|
-
|
|
2066
|
+
return (s, t) => (a(), i("label", Yl, [
|
|
2067
|
+
e.value ? (a(), i("span", Jl, V(e.value), 1)) : (a(), i("span", Zl, [
|
|
2068
|
+
w(s.$slots, "default")
|
|
2073
2069
|
]))
|
|
2074
2070
|
]));
|
|
2075
2071
|
}
|
|
2076
|
-
},
|
|
2077
|
-
__name: "NavLink",
|
|
2078
|
-
props: {
|
|
2079
|
-
href: String,
|
|
2080
|
-
active: Boolean
|
|
2081
|
-
},
|
|
2082
|
-
setup(e) {
|
|
2083
|
-
const a = e, t = f(() => a.active ? "inline-flex items-center px-1 pt-1 border-b-2 border-indigo-500 text-sm font-semibold leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition-all duration-300 ease-out relative group" : "inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-600 hover:text-gray-900 hover:border-gray-400 focus:outline-none focus:text-gray-900 focus:border-gray-400 transition-all duration-300 ease-out relative group");
|
|
2084
|
-
return (l, o) => (s(), A(V(ee), {
|
|
2085
|
-
href: e.href,
|
|
2086
|
-
class: _(t.value)
|
|
2087
|
-
}, {
|
|
2088
|
-
default: F(() => [
|
|
2089
|
-
g(l.$slots, "default")
|
|
2090
|
-
]),
|
|
2091
|
-
_: 3
|
|
2092
|
-
}, 8, ["href", "class"]));
|
|
2093
|
-
}
|
|
2094
|
-
}, Kl = ["type", "disabled"], Rl = /* @__PURE__ */ Object.assign({
|
|
2095
|
-
inheritAttrs: !1
|
|
2096
|
-
}, {
|
|
2097
|
-
__name: "PrimaryButton",
|
|
2098
|
-
props: {
|
|
2099
|
-
type: {
|
|
2100
|
-
type: String,
|
|
2101
|
-
default: "submit"
|
|
2102
|
-
},
|
|
2103
|
-
disabled: {
|
|
2104
|
-
type: Boolean,
|
|
2105
|
-
default: !1
|
|
2106
|
-
}
|
|
2107
|
-
},
|
|
2108
|
-
setup(e) {
|
|
2109
|
-
const a = P();
|
|
2110
|
-
return (t, l) => (s(), n("button", M(V(a), {
|
|
2111
|
-
type: e.type,
|
|
2112
|
-
disabled: e.disabled,
|
|
2113
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-blue-500 to-blue-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-blue-600 hover:to-blue-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:from-blue-500 disabled:hover:to-blue-600"
|
|
2114
|
-
}), [
|
|
2115
|
-
g(t.$slots, "default")
|
|
2116
|
-
], 16, Kl));
|
|
2117
|
-
}
|
|
2118
|
-
}), Hl = ["href", "title", "target", "rel"], ye = /* @__PURE__ */ Object.assign({
|
|
2072
|
+
}, ta = ["href", "title", "target", "rel"], Ce = /* @__PURE__ */ Object.assign({
|
|
2119
2073
|
inheritAttrs: !1
|
|
2120
2074
|
}, {
|
|
2121
|
-
__name: "
|
|
2075
|
+
__name: "LinkButton",
|
|
2122
2076
|
props: {
|
|
2123
2077
|
href: {
|
|
2124
2078
|
type: String,
|
|
@@ -2139,30 +2093,62 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2139
2093
|
rel: {
|
|
2140
2094
|
type: String,
|
|
2141
2095
|
default: null
|
|
2096
|
+
},
|
|
2097
|
+
variant: {
|
|
2098
|
+
type: String,
|
|
2099
|
+
default: "primary"
|
|
2142
2100
|
}
|
|
2143
2101
|
},
|
|
2144
2102
|
setup(e) {
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2103
|
+
const s = ne(), t = e, l = {
|
|
2104
|
+
primary: "bg-gradient-to-r from-blue-500 to-blue-600 text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] hover:from-blue-600 hover:to-blue-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:ring-blue-500",
|
|
2105
|
+
secondary: "bg-gradient-to-r from-green-500 to-green-600 text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] hover:from-green-600 hover:to-green-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:ring-green-500",
|
|
2106
|
+
tertiary: "bg-gradient-to-r from-gray-500 to-gray-600 text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] hover:from-gray-600 hover:to-gray-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:ring-gray-500",
|
|
2107
|
+
warning: "border border-yellow-300 bg-yellow-50 text-yellow-700 hover:bg-yellow-100 focus:ring-yellow-500",
|
|
2108
|
+
danger: "border border-red-300 bg-red-50 text-red-700 hover:bg-red-100 focus:ring-red-500"
|
|
2109
|
+
}, n = g(() => l[t.variant] ? t.variant : "primary"), u = g(() => [
|
|
2110
|
+
"min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg p-3 py-2 text-sm font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
2111
|
+
l[n.value],
|
|
2112
|
+
s.class
|
|
2113
|
+
]);
|
|
2114
|
+
return (d, f) => e.external ? (a(), i("a", E({ key: 1 }, I(s), {
|
|
2147
2115
|
href: e.href,
|
|
2148
2116
|
title: e.title,
|
|
2149
2117
|
target: e.target,
|
|
2150
2118
|
rel: e.rel,
|
|
2151
|
-
class:
|
|
2119
|
+
class: u.value
|
|
2152
2120
|
}), [
|
|
2153
|
-
|
|
2154
|
-
], 16,
|
|
2121
|
+
w(d.$slots, "default")
|
|
2122
|
+
], 16, ta)) : (a(), B(I(ye), E({ key: 0 }, I(s), {
|
|
2155
2123
|
href: e.href,
|
|
2156
2124
|
title: e.title,
|
|
2157
|
-
class:
|
|
2125
|
+
class: u.value
|
|
2158
2126
|
}), {
|
|
2159
|
-
default:
|
|
2160
|
-
|
|
2127
|
+
default: z(() => [
|
|
2128
|
+
w(d.$slots, "default")
|
|
2161
2129
|
]),
|
|
2162
2130
|
_: 3
|
|
2163
|
-
}, 16, ["href", "title"]));
|
|
2131
|
+
}, 16, ["href", "title", "class"]));
|
|
2164
2132
|
}
|
|
2165
|
-
}),
|
|
2133
|
+
}), la = {
|
|
2134
|
+
__name: "NavLink",
|
|
2135
|
+
props: {
|
|
2136
|
+
href: String,
|
|
2137
|
+
active: Boolean
|
|
2138
|
+
},
|
|
2139
|
+
setup(e) {
|
|
2140
|
+
const s = e, t = g(() => s.active ? "inline-flex items-center px-1 pt-1 border-b-2 border-indigo-500 text-sm font-semibold leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition-all duration-300 ease-out relative group" : "inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-600 hover:text-gray-900 hover:border-gray-400 focus:outline-none focus:text-gray-900 focus:border-gray-400 transition-all duration-300 ease-out relative group");
|
|
2141
|
+
return (l, n) => (a(), B(I(ye), {
|
|
2142
|
+
href: e.href,
|
|
2143
|
+
class: S(t.value)
|
|
2144
|
+
}, {
|
|
2145
|
+
default: z(() => [
|
|
2146
|
+
w(l.$slots, "default")
|
|
2147
|
+
]),
|
|
2148
|
+
_: 3
|
|
2149
|
+
}, 8, ["href", "class"]));
|
|
2150
|
+
}
|
|
2151
|
+
}, aa = ["href"], sa = {
|
|
2166
2152
|
__name: "ResponsiveNavLink",
|
|
2167
2153
|
props: {
|
|
2168
2154
|
active: Boolean,
|
|
@@ -2170,119 +2156,48 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2170
2156
|
as: String
|
|
2171
2157
|
},
|
|
2172
2158
|
setup(e) {
|
|
2173
|
-
const
|
|
2174
|
-
return (l,
|
|
2175
|
-
e.as == "button" ? (
|
|
2159
|
+
const s = e, t = g(() => s.active ? "block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out" : "block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out");
|
|
2160
|
+
return (l, n) => (a(), i("div", null, [
|
|
2161
|
+
e.as == "button" ? (a(), i("button", {
|
|
2176
2162
|
key: 0,
|
|
2177
|
-
class:
|
|
2163
|
+
class: S([t.value, "w-full text-start"])
|
|
2178
2164
|
}, [
|
|
2179
|
-
|
|
2180
|
-
], 2)) : e.as == "a" ? (
|
|
2165
|
+
w(l.$slots, "default")
|
|
2166
|
+
], 2)) : e.as == "a" ? (a(), i("a", {
|
|
2181
2167
|
key: 1,
|
|
2182
|
-
class:
|
|
2168
|
+
class: S([t.value, "w-full text-start"]),
|
|
2183
2169
|
href: e.href
|
|
2184
2170
|
}, [
|
|
2185
|
-
|
|
2186
|
-
], 10,
|
|
2171
|
+
w(l.$slots, "default")
|
|
2172
|
+
], 10, aa)) : (a(), B(I(ye), {
|
|
2187
2173
|
key: 2,
|
|
2188
2174
|
href: e.href,
|
|
2189
|
-
class:
|
|
2175
|
+
class: S(t.value)
|
|
2190
2176
|
}, {
|
|
2191
|
-
default:
|
|
2192
|
-
|
|
2177
|
+
default: z(() => [
|
|
2178
|
+
w(l.$slots, "default")
|
|
2193
2179
|
]),
|
|
2194
2180
|
_: 3
|
|
2195
2181
|
}, 8, ["href", "class"]))
|
|
2196
2182
|
]));
|
|
2197
2183
|
}
|
|
2198
|
-
},
|
|
2199
|
-
inheritAttrs: !1
|
|
2200
|
-
}, {
|
|
2201
|
-
__name: "SecondaryButton",
|
|
2202
|
-
props: {
|
|
2203
|
-
type: {
|
|
2204
|
-
type: String,
|
|
2205
|
-
default: "button"
|
|
2206
|
-
},
|
|
2207
|
-
disabled: {
|
|
2208
|
-
type: Boolean,
|
|
2209
|
-
default: !1
|
|
2210
|
-
}
|
|
2211
|
-
},
|
|
2212
|
-
setup(e) {
|
|
2213
|
-
const a = P();
|
|
2214
|
-
return (t, l) => (s(), n("button", M(V(a), {
|
|
2215
|
-
type: e.type,
|
|
2216
|
-
disabled: e.disabled,
|
|
2217
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-green-500 to-green-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-green-600 hover:to-green-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:from-green-500 disabled:hover:to-green-600"
|
|
2218
|
-
}), [
|
|
2219
|
-
g(t.$slots, "default")
|
|
2220
|
-
], 16, ql));
|
|
2221
|
-
}
|
|
2222
|
-
}), Xl = ["href", "title", "target", "rel"], Jl = /* @__PURE__ */ Object.assign({
|
|
2223
|
-
inheritAttrs: !1
|
|
2224
|
-
}, {
|
|
2225
|
-
__name: "SecondaryLinkButton",
|
|
2226
|
-
props: {
|
|
2227
|
-
href: {
|
|
2228
|
-
type: String,
|
|
2229
|
-
required: !0
|
|
2230
|
-
},
|
|
2231
|
-
title: {
|
|
2232
|
-
type: String,
|
|
2233
|
-
default: null
|
|
2234
|
-
},
|
|
2235
|
-
external: {
|
|
2236
|
-
type: Boolean,
|
|
2237
|
-
default: !1
|
|
2238
|
-
},
|
|
2239
|
-
target: {
|
|
2240
|
-
type: String,
|
|
2241
|
-
default: null
|
|
2242
|
-
},
|
|
2243
|
-
rel: {
|
|
2244
|
-
type: String,
|
|
2245
|
-
default: null
|
|
2246
|
-
}
|
|
2247
|
-
},
|
|
2248
|
-
setup(e) {
|
|
2249
|
-
const a = P();
|
|
2250
|
-
return (t, l) => e.external ? (s(), n("a", M({ key: 1 }, V(a), {
|
|
2251
|
-
href: e.href,
|
|
2252
|
-
title: e.title,
|
|
2253
|
-
target: e.target,
|
|
2254
|
-
rel: e.rel,
|
|
2255
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-green-500 to-green-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-green-600 hover:to-green-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"
|
|
2256
|
-
}), [
|
|
2257
|
-
g(t.$slots, "default")
|
|
2258
|
-
], 16, Xl)) : (s(), A(V(ee), M({ key: 0 }, V(a), {
|
|
2259
|
-
href: e.href,
|
|
2260
|
-
title: e.title,
|
|
2261
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-green-500 to-green-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-green-600 hover:to-green-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"
|
|
2262
|
-
}), {
|
|
2263
|
-
default: F(() => [
|
|
2264
|
-
g(t.$slots, "default")
|
|
2265
|
-
]),
|
|
2266
|
-
_: 3
|
|
2267
|
-
}, 16, ["href", "title"]));
|
|
2268
|
-
}
|
|
2269
|
-
}), Ql = { class: "hidden sm:block" }, Yl = { class: "py-8" }, Zl = {
|
|
2184
|
+
}, na = { class: "hidden sm:block" }, ra = { class: "py-8" }, oa = {
|
|
2270
2185
|
__name: "SectionBorder",
|
|
2271
2186
|
setup(e) {
|
|
2272
|
-
return (
|
|
2273
|
-
|
|
2274
|
-
|
|
2187
|
+
return (s, t) => (a(), i("div", na, [
|
|
2188
|
+
o("div", ra, [
|
|
2189
|
+
F(we)
|
|
2275
2190
|
])
|
|
2276
2191
|
]));
|
|
2277
2192
|
}
|
|
2278
|
-
},
|
|
2193
|
+
}, ia = { class: "bg-white/80 backdrop-blur-sm border border-gray-200/60 rounded-xl px-6 py-4" }, da = { class: "flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4" }, ua = { class: "flex items-center gap-3" }, ca = { class: "text-sm font-medium text-gray-700" }, fa = { class: "flex flex-wrap items-center gap-2" }, ga = ["onClick"], ya = { class: "text-xs text-gray-500" }, pa = {
|
|
2279
2194
|
__name: "SortControls",
|
|
2280
2195
|
props: {
|
|
2281
2196
|
fields: {
|
|
2282
2197
|
type: Array,
|
|
2283
2198
|
required: !0,
|
|
2284
2199
|
validator: (e) => e.every(
|
|
2285
|
-
(
|
|
2200
|
+
(s) => typeof s == "object" && s.key && s.label
|
|
2286
2201
|
)
|
|
2287
2202
|
},
|
|
2288
2203
|
currentSortField: {
|
|
@@ -2308,40 +2223,40 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2308
2223
|
}
|
|
2309
2224
|
},
|
|
2310
2225
|
emits: ["sort"],
|
|
2311
|
-
setup(e, { emit:
|
|
2312
|
-
const t =
|
|
2313
|
-
t("sort",
|
|
2226
|
+
setup(e, { emit: s }) {
|
|
2227
|
+
const t = s, l = (n) => {
|
|
2228
|
+
t("sort", n);
|
|
2314
2229
|
};
|
|
2315
|
-
return (
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
(
|
|
2321
|
-
key:
|
|
2322
|
-
onClick: (
|
|
2323
|
-
class:
|
|
2230
|
+
return (n, u) => (a(), i("div", ia, [
|
|
2231
|
+
o("div", da, [
|
|
2232
|
+
o("div", ua, [
|
|
2233
|
+
o("label", ca, V(e.sortByLabel) + ":", 1),
|
|
2234
|
+
o("div", fa, [
|
|
2235
|
+
(a(!0), i(q, null, W(e.fields, (d) => (a(), i("button", {
|
|
2236
|
+
key: d.key,
|
|
2237
|
+
onClick: (f) => l(d.key),
|
|
2238
|
+
class: S([
|
|
2324
2239
|
"px-3 py-1.5 text-sm font-medium rounded-lg transition-all duration-200",
|
|
2325
|
-
e.currentSortField ===
|
|
2240
|
+
e.currentSortField === d.key ? "bg-blue-500 text-white shadow-sm" : "bg-gray-100 text-gray-700 hover:bg-gray-200"
|
|
2326
2241
|
])
|
|
2327
2242
|
}, [
|
|
2328
|
-
|
|
2329
|
-
e.currentSortField ===
|
|
2243
|
+
ue(V(d.label) + " ", 1),
|
|
2244
|
+
e.currentSortField === d.key && e.currentDirection === "asc" ? (a(), B(I(De), {
|
|
2330
2245
|
key: 0,
|
|
2331
2246
|
class: "w-3 h-3 ml-1 inline"
|
|
2332
|
-
})) :
|
|
2333
|
-
e.currentSortField ===
|
|
2247
|
+
})) : M("", !0),
|
|
2248
|
+
e.currentSortField === d.key && e.currentDirection === "desc" ? (a(), B(I(xe), {
|
|
2334
2249
|
key: 1,
|
|
2335
2250
|
class: "w-3 h-3 ml-1 inline"
|
|
2336
|
-
})) :
|
|
2337
|
-
], 10,
|
|
2251
|
+
})) : M("", !0)
|
|
2252
|
+
], 10, ga))), 128))
|
|
2338
2253
|
])
|
|
2339
2254
|
]),
|
|
2340
|
-
|
|
2255
|
+
o("div", ya, V(e.count) + " " + V(e.countLabel), 1)
|
|
2341
2256
|
])
|
|
2342
2257
|
]));
|
|
2343
2258
|
}
|
|
2344
|
-
},
|
|
2259
|
+
}, ma = { class: "flex items-center space-x-1" }, ba = { class: "flex flex-col" }, Ve = {
|
|
2345
2260
|
__name: "ThSortable",
|
|
2346
2261
|
props: {
|
|
2347
2262
|
field: {
|
|
@@ -2358,44 +2273,44 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2358
2273
|
}
|
|
2359
2274
|
},
|
|
2360
2275
|
setup(e) {
|
|
2361
|
-
const
|
|
2362
|
-
return (
|
|
2276
|
+
const s = e, t = g(() => s.field === s.currentSortField), l = g(() => t.value ? "text-blue-600" : "text-gray-400");
|
|
2277
|
+
return (n, u) => (a(), i("th", {
|
|
2363
2278
|
class: "px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100 transition-colors duration-150",
|
|
2364
|
-
onClick:
|
|
2279
|
+
onClick: u[0] || (u[0] = (d) => n.$emit("sort", e.field))
|
|
2365
2280
|
}, [
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2281
|
+
o("div", ma, [
|
|
2282
|
+
o("span", null, [
|
|
2283
|
+
w(n.$slots, "default")
|
|
2369
2284
|
]),
|
|
2370
|
-
|
|
2371
|
-
t.value && e.currentDirection === "asc" ? (
|
|
2285
|
+
o("div", ba, [
|
|
2286
|
+
t.value && e.currentDirection === "asc" ? (a(), B(I(De), {
|
|
2372
2287
|
key: 0,
|
|
2373
|
-
class:
|
|
2374
|
-
}, null, 8, ["class"])) :
|
|
2375
|
-
t.value && e.currentDirection === "desc" ? (
|
|
2288
|
+
class: S([l.value, "w-3 h-3"])
|
|
2289
|
+
}, null, 8, ["class"])) : M("", !0),
|
|
2290
|
+
t.value && e.currentDirection === "desc" ? (a(), B(I(xe), {
|
|
2376
2291
|
key: 1,
|
|
2377
|
-
class:
|
|
2378
|
-
}, null, 8, ["class"])) :
|
|
2292
|
+
class: S([l.value, "w-3 h-3"])
|
|
2293
|
+
}, null, 8, ["class"])) : M("", !0)
|
|
2379
2294
|
])
|
|
2380
2295
|
])
|
|
2381
2296
|
]));
|
|
2382
2297
|
}
|
|
2383
|
-
},
|
|
2298
|
+
}, va = { class: "min-w-full divide-y divide-gray-200" }, ha = { class: "bg-gray-50" }, xa = {
|
|
2384
2299
|
key: 0,
|
|
2385
2300
|
class: "px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider"
|
|
2386
|
-
},
|
|
2301
|
+
}, wa = { class: "bg-white divide-y divide-gray-200" }, ka = {
|
|
2387
2302
|
key: 0,
|
|
2388
2303
|
class: "flex items-center"
|
|
2389
|
-
},
|
|
2304
|
+
}, Sa = ["title"], $a = {
|
|
2390
2305
|
key: 0,
|
|
2391
2306
|
class: "ml-2 inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-red-100 text-red-800"
|
|
2392
|
-
},
|
|
2307
|
+
}, Ca = ["innerHTML"], Va = { key: 3 }, _a = {
|
|
2393
2308
|
key: 0,
|
|
2394
2309
|
class: "px-6 py-4 whitespace-nowrap text-right text-sm font-medium"
|
|
2395
|
-
},
|
|
2310
|
+
}, Ta = {
|
|
2396
2311
|
key: 0,
|
|
2397
2312
|
class: "text-center py-12"
|
|
2398
|
-
},
|
|
2313
|
+
}, Aa = { class: "inline-flex items-center justify-center w-16 h-16 bg-gray-100 rounded-full mb-4" }, Ba = { class: "text-lg font-medium text-gray-900 mb-2" }, La = { class: "text-gray-500 mb-4" }, Ia = {
|
|
2399
2314
|
__name: "TableList",
|
|
2400
2315
|
props: {
|
|
2401
2316
|
data: {
|
|
@@ -2426,7 +2341,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2426
2341
|
},
|
|
2427
2342
|
rowClasses: {
|
|
2428
2343
|
type: Function,
|
|
2429
|
-
default: (e,
|
|
2344
|
+
default: (e, s) => [
|
|
2430
2345
|
"transition-colors duration-150",
|
|
2431
2346
|
e.deleted_at ? "bg-red-50 hover:bg-red-100" : "odd:bg-white even:bg-gray-50 hover:bg-gray-100"
|
|
2432
2347
|
]
|
|
@@ -2435,6 +2350,10 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2435
2350
|
type: Number,
|
|
2436
2351
|
default: 40
|
|
2437
2352
|
},
|
|
2353
|
+
isCard: {
|
|
2354
|
+
type: Boolean,
|
|
2355
|
+
default: !0
|
|
2356
|
+
},
|
|
2438
2357
|
actionsLabel: {
|
|
2439
2358
|
type: String,
|
|
2440
2359
|
default: "Actions"
|
|
@@ -2445,129 +2364,128 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2445
2364
|
}
|
|
2446
2365
|
},
|
|
2447
2366
|
emits: ["sort"],
|
|
2448
|
-
setup(e, { emit:
|
|
2449
|
-
const t =
|
|
2450
|
-
|
|
2451
|
-
const
|
|
2452
|
-
|
|
2453
|
-
},
|
|
2454
|
-
const
|
|
2455
|
-
return !Number.isFinite(
|
|
2456
|
-
},
|
|
2457
|
-
if (
|
|
2367
|
+
setup(e, { emit: s }) {
|
|
2368
|
+
const t = ge(), l = e, n = s;
|
|
2369
|
+
g(() => !!t.actions);
|
|
2370
|
+
const u = g(() => l.data && l.data.length > 0), d = (k) => {
|
|
2371
|
+
n("sort", k);
|
|
2372
|
+
}, f = (k) => {
|
|
2373
|
+
const T = String(k ?? ""), m = Number(l.maxTextLength);
|
|
2374
|
+
return !Number.isFinite(m) || m <= 0 || T.length <= m ? T : `${T.slice(0, m)}...`;
|
|
2375
|
+
}, v = (k, T) => {
|
|
2376
|
+
if (T.slot)
|
|
2458
2377
|
return null;
|
|
2459
|
-
if (
|
|
2460
|
-
return
|
|
2461
|
-
const
|
|
2462
|
-
return
|
|
2463
|
-
},
|
|
2464
|
-
if (
|
|
2465
|
-
return
|
|
2466
|
-
let
|
|
2467
|
-
return
|
|
2468
|
-
}, h = (
|
|
2469
|
-
return (
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2378
|
+
if (T.render)
|
|
2379
|
+
return T.render(k);
|
|
2380
|
+
const m = T.key.split(".").reduce((L, D) => L?.[D], k);
|
|
2381
|
+
return m == null || m === "" ? "-" : f(m);
|
|
2382
|
+
}, b = (k) => k.deleted_at || k.deleted, _ = (k) => {
|
|
2383
|
+
if (k.class)
|
|
2384
|
+
return k.class;
|
|
2385
|
+
let T = "px-6 py-4 text-sm truncate";
|
|
2386
|
+
return k.isSecondary || (T += " font-medium"), k.isSecondary && (T += " text-gray-600"), T;
|
|
2387
|
+
}, h = (k) => k.sortable ? "" : "px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider";
|
|
2388
|
+
return (k, T) => (a(), i("div", {
|
|
2389
|
+
class: S(["bg-white", e.isCard ? "border border-gray-200/60 rounded-xl shadow-[0_1px_3px_rgba(0,0,0,0.1)] animate-fadeIn mx-4 md:mx-0" : ""])
|
|
2390
|
+
}, [
|
|
2391
|
+
o("div", {
|
|
2392
|
+
class: S(["overflow-x-auto", e.isCard ? "rounded-xl" : ""])
|
|
2393
|
+
}, [
|
|
2394
|
+
o("table", va, [
|
|
2395
|
+
o("thead", ha, [
|
|
2396
|
+
o("tr", null, [
|
|
2397
|
+
(a(!0), i(q, null, W(e.columns, (m) => (a(), i(q, {
|
|
2398
|
+
key: m.key
|
|
2476
2399
|
}, [
|
|
2477
|
-
|
|
2400
|
+
m.sortable ? (a(), B(Ve, {
|
|
2478
2401
|
key: 0,
|
|
2479
|
-
field:
|
|
2402
|
+
field: m.key,
|
|
2480
2403
|
"current-sort-field": e.sortField,
|
|
2481
2404
|
"current-direction": e.sortDirection,
|
|
2482
|
-
onSort:
|
|
2405
|
+
onSort: d
|
|
2483
2406
|
}, {
|
|
2484
|
-
default:
|
|
2485
|
-
|
|
2407
|
+
default: z(() => [
|
|
2408
|
+
ue(V(m.label), 1)
|
|
2486
2409
|
]),
|
|
2487
2410
|
_: 2
|
|
2488
|
-
}, 1032, ["field", "current-sort-field", "current-direction"])) : (
|
|
2411
|
+
}, 1032, ["field", "current-sort-field", "current-direction"])) : (a(), i("th", {
|
|
2489
2412
|
key: 1,
|
|
2490
|
-
class:
|
|
2491
|
-
},
|
|
2413
|
+
class: S([h(m), { "text-right": m.align === "right" }])
|
|
2414
|
+
}, V(m.label), 3))
|
|
2492
2415
|
], 64))), 128)),
|
|
2493
|
-
|
|
2416
|
+
k.$slots.actions ? (a(), i("th", xa, V(e.actionsLabel), 1)) : M("", !0)
|
|
2494
2417
|
])
|
|
2495
2418
|
]),
|
|
2496
|
-
|
|
2497
|
-
(
|
|
2498
|
-
key:
|
|
2499
|
-
class:
|
|
2419
|
+
o("tbody", wa, [
|
|
2420
|
+
(a(!0), i(q, null, W(e.data, (m, L) => (a(), i("tr", {
|
|
2421
|
+
key: m.id,
|
|
2422
|
+
class: S(e.rowClasses(m, L))
|
|
2500
2423
|
}, [
|
|
2501
|
-
(
|
|
2502
|
-
key:
|
|
2503
|
-
class: _(
|
|
2424
|
+
(a(!0), i(q, null, W(e.columns, (D) => (a(), i("td", {
|
|
2425
|
+
key: D.key,
|
|
2426
|
+
class: S(_(D))
|
|
2504
2427
|
}, [
|
|
2505
|
-
|
|
2506
|
-
|
|
2428
|
+
D.key === "name" && !D.slot ? (a(), i("div", ka, [
|
|
2429
|
+
o("div", {
|
|
2507
2430
|
class: "text-sm font-medium truncate",
|
|
2508
|
-
title:
|
|
2509
|
-
},
|
|
2510
|
-
|
|
2511
|
-
])) :
|
|
2431
|
+
title: v(m, D)
|
|
2432
|
+
}, V(v(m, D)), 9, Sa),
|
|
2433
|
+
b(m) ? (a(), i("span", $a, V(e.deletedLabel), 1)) : M("", !0)
|
|
2434
|
+
])) : D.slot ? w(k.$slots, D.slot, {
|
|
2512
2435
|
key: 1,
|
|
2513
|
-
item:
|
|
2514
|
-
column:
|
|
2436
|
+
item: m,
|
|
2437
|
+
column: D,
|
|
2515
2438
|
index: L
|
|
2516
|
-
}) :
|
|
2439
|
+
}) : D.render ? (a(), i("div", {
|
|
2517
2440
|
key: 2,
|
|
2518
|
-
innerHTML:
|
|
2519
|
-
}, null, 8,
|
|
2441
|
+
innerHTML: D.render(m)
|
|
2442
|
+
}, null, 8, Ca)) : (a(), i("div", Va, V(v(m, D)), 1))
|
|
2520
2443
|
], 2))), 128)),
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
item:
|
|
2444
|
+
k.$slots.actions ? (a(), i("td", _a, [
|
|
2445
|
+
w(k.$slots, "actions", {
|
|
2446
|
+
item: m,
|
|
2524
2447
|
index: L
|
|
2525
2448
|
})
|
|
2526
|
-
])) :
|
|
2449
|
+
])) : M("", !0)
|
|
2527
2450
|
], 2))), 128))
|
|
2528
2451
|
])
|
|
2529
2452
|
])
|
|
2530
|
-
]),
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
(
|
|
2453
|
+
], 2),
|
|
2454
|
+
u.value ? M("", !0) : (a(), i("div", Ta, [
|
|
2455
|
+
o("div", Aa, [
|
|
2456
|
+
(a(), B(Be(e.emptyState.icon), { class: "w-8 h-8 text-gray-400" }))
|
|
2534
2457
|
]),
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
e.emptyState.actionText && e.emptyState.actionUrl ? (
|
|
2458
|
+
o("h3", Ba, V(e.emptyState.title), 1),
|
|
2459
|
+
o("p", La, V(e.emptyState.description), 1),
|
|
2460
|
+
e.emptyState.actionText && e.emptyState.actionUrl ? (a(), B(Ce, {
|
|
2538
2461
|
key: 0,
|
|
2539
|
-
href: e.emptyState.actionUrl
|
|
2462
|
+
href: e.emptyState.actionUrl,
|
|
2463
|
+
variant: "primary"
|
|
2540
2464
|
}, {
|
|
2541
|
-
default:
|
|
2542
|
-
|
|
2465
|
+
default: z(() => [
|
|
2466
|
+
ue(V(e.emptyState.actionText), 1)
|
|
2543
2467
|
]),
|
|
2544
2468
|
_: 1
|
|
2545
|
-
}, 8, ["href"])) :
|
|
2469
|
+
}, 8, ["href"])) : M("", !0)
|
|
2546
2470
|
]))
|
|
2547
|
-
]));
|
|
2471
|
+
], 2));
|
|
2548
2472
|
}
|
|
2549
|
-
},
|
|
2550
|
-
key: 0,
|
|
2551
|
-
class: "bg-white/80 backdrop-blur-sm px-4 py-3 mx-4 md:mx-0 mb-4"
|
|
2552
|
-
}, Bs = { class: "relative p-1" }, Ts = { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" }, As = ["placeholder"], js = {
|
|
2553
|
-
key: 1,
|
|
2554
|
-
class: "overflow-x-auto rounded-xl"
|
|
2555
|
-
}, Is = { class: "min-w-full divide-y divide-gray-200" }, Ls = { class: "bg-gray-50" }, Ds = {
|
|
2473
|
+
}, Da = { class: "relative max-w-sm" }, Ma = { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" }, ja = ["placeholder"], Oa = { class: "min-w-full divide-y divide-gray-200" }, za = { class: "bg-gray-50" }, Ea = {
|
|
2556
2474
|
key: 0,
|
|
2557
2475
|
class: "px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider"
|
|
2558
|
-
},
|
|
2559
|
-
key:
|
|
2476
|
+
}, Fa = { class: "bg-white divide-y divide-gray-200" }, Na = {
|
|
2477
|
+
key: 2,
|
|
2560
2478
|
class: "flex items-center"
|
|
2561
|
-
},
|
|
2479
|
+
}, Ua = ["title"], Ka = {
|
|
2562
2480
|
key: 0,
|
|
2563
|
-
class: "ml-2 inline-flex items-center px-2 py-1
|
|
2564
|
-
},
|
|
2481
|
+
class: "ml-2 inline-flex items-center rounded-full bg-red-100 px-2 py-1 text-xs font-medium text-red-800"
|
|
2482
|
+
}, Ra = ["innerHTML"], Ha = { key: 5 }, qa = {
|
|
2565
2483
|
key: 0,
|
|
2566
2484
|
class: "px-6 py-4 whitespace-nowrap text-right text-sm font-medium"
|
|
2567
|
-
},
|
|
2485
|
+
}, Pa = { class: "flex items-center justify-end gap-2" }, Wa = {
|
|
2568
2486
|
key: 2,
|
|
2569
|
-
class: "text-center
|
|
2570
|
-
},
|
|
2487
|
+
class: "py-12 text-center"
|
|
2488
|
+
}, Ga = { class: "mb-4 inline-flex h-16 w-16 items-center justify-center rounded-full bg-gray-100" }, Xa = { class: "mb-2 text-lg font-medium text-gray-900" }, Qa = { class: "mb-4 text-gray-500" }, Ya = {
|
|
2571
2489
|
__name: "TableListForm",
|
|
2572
2490
|
props: {
|
|
2573
2491
|
data: {
|
|
@@ -2598,17 +2516,15 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2598
2516
|
},
|
|
2599
2517
|
rowClasses: {
|
|
2600
2518
|
type: Function,
|
|
2601
|
-
default: (e
|
|
2519
|
+
default: (e) => [
|
|
2602
2520
|
"transition-colors duration-150",
|
|
2603
2521
|
e.deleted_at ? "bg-red-50 hover:bg-red-100" : "odd:bg-white even:bg-gray-50 hover:bg-gray-100"
|
|
2604
2522
|
]
|
|
2605
2523
|
},
|
|
2606
|
-
// New prop for error handling function
|
|
2607
2524
|
getErrorMessage: {
|
|
2608
2525
|
type: Function,
|
|
2609
|
-
default: (
|
|
2526
|
+
default: () => null
|
|
2610
2527
|
},
|
|
2611
|
-
// Search functionality
|
|
2612
2528
|
search: {
|
|
2613
2529
|
type: Boolean,
|
|
2614
2530
|
default: !0
|
|
@@ -2640,327 +2556,355 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2640
2556
|
deletedLabel: {
|
|
2641
2557
|
type: String,
|
|
2642
2558
|
default: "Deleted"
|
|
2559
|
+
},
|
|
2560
|
+
maxTextLength: {
|
|
2561
|
+
type: Number,
|
|
2562
|
+
default: 40
|
|
2563
|
+
},
|
|
2564
|
+
rowEditing: {
|
|
2565
|
+
type: Boolean,
|
|
2566
|
+
default: !0
|
|
2567
|
+
},
|
|
2568
|
+
canEditRow: {
|
|
2569
|
+
type: Function,
|
|
2570
|
+
default: () => !0
|
|
2571
|
+
},
|
|
2572
|
+
editLabel: {
|
|
2573
|
+
type: String,
|
|
2574
|
+
default: "Edit row"
|
|
2575
|
+
},
|
|
2576
|
+
saveLabel: {
|
|
2577
|
+
type: String,
|
|
2578
|
+
default: "Save row"
|
|
2579
|
+
},
|
|
2580
|
+
cancelLabel: {
|
|
2581
|
+
type: String,
|
|
2582
|
+
default: "Cancel editing"
|
|
2643
2583
|
}
|
|
2644
2584
|
},
|
|
2645
|
-
emits: ["sort", "update"],
|
|
2646
|
-
setup(e, { emit:
|
|
2647
|
-
const t =
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
}),
|
|
2651
|
-
|
|
2652
|
-
})
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2585
|
+
emits: ["sort", "update", "edit-start", "edit-cancel", "save"],
|
|
2586
|
+
setup(e, { emit: s }) {
|
|
2587
|
+
const t = ge(), l = e, n = s, u = O(l.sortField), d = O(l.sortDirection), f = O(""), v = O(null), b = O({});
|
|
2588
|
+
J(() => l.sortField, (r) => {
|
|
2589
|
+
u.value = r;
|
|
2590
|
+
}), J(() => l.sortDirection, (r) => {
|
|
2591
|
+
d.value = r;
|
|
2592
|
+
}), J(() => l.rowEditing, (r) => {
|
|
2593
|
+
r || K();
|
|
2594
|
+
}), J(
|
|
2595
|
+
() => l.data,
|
|
2596
|
+
() => {
|
|
2597
|
+
if (v.value === null)
|
|
2598
|
+
return;
|
|
2599
|
+
l.data.find((y, c) => G(y, c) === v.value) || K();
|
|
2600
|
+
},
|
|
2601
|
+
{ deep: !0 }
|
|
2602
|
+
);
|
|
2603
|
+
const _ = g(() => {
|
|
2604
|
+
let r = l.data;
|
|
2605
|
+
if (l.search && f.value.trim()) {
|
|
2606
|
+
const y = f.value.toLowerCase().trim();
|
|
2607
|
+
r = l.data.filter((c) => l.columns.some((A) => {
|
|
2608
|
+
if (!A.searchable)
|
|
2609
|
+
return !1;
|
|
2610
|
+
const p = j(c, A.key);
|
|
2611
|
+
return p == null || p === "" ? !1 : String(p).toLowerCase().includes(y);
|
|
2661
2612
|
}));
|
|
2662
2613
|
}
|
|
2663
|
-
return
|
|
2664
|
-
const
|
|
2665
|
-
if (
|
|
2666
|
-
if (
|
|
2667
|
-
let
|
|
2668
|
-
return
|
|
2669
|
-
}) :
|
|
2670
|
-
}),
|
|
2671
|
-
|
|
2672
|
-
},
|
|
2673
|
-
|
|
2614
|
+
return u.value ? [...r].sort((y, c) => {
|
|
2615
|
+
const A = j(y, u.value), p = j(c, u.value);
|
|
2616
|
+
if (A == null || A === "") return 1;
|
|
2617
|
+
if (p == null || p === "") return -1;
|
|
2618
|
+
let R = 0;
|
|
2619
|
+
return A < p && (R = -1), A > p && (R = 1), d.value === "desc" ? -R : R;
|
|
2620
|
+
}) : r;
|
|
2621
|
+
}), h = g(() => !!t.actions), k = g(() => h.value || l.rowEditing), T = g(() => _.value && _.value.length > 0), m = (r) => {
|
|
2622
|
+
u.value === r ? d.value = d.value === "asc" ? "desc" : "asc" : (u.value = r, d.value = "asc"), n("sort", { field: r, direction: d.value });
|
|
2623
|
+
}, L = (r) => Array.isArray(r) ? r.map((y) => L(y)) : r && typeof r == "object" ? Object.fromEntries(
|
|
2624
|
+
Object.entries(r).map(([y, c]) => [y, L(c)])
|
|
2625
|
+
) : r, D = (r) => {
|
|
2626
|
+
const y = String(r ?? ""), c = Number(l.maxTextLength);
|
|
2627
|
+
return !Number.isFinite(c) || c <= 0 || y.length <= c ? y : `${y.slice(0, c)}...`;
|
|
2628
|
+
}, j = (r, y) => !y || typeof y != "string" ? r : y.split(".").reduce((c, A) => c?.[A], r), H = (r, y, c) => {
|
|
2629
|
+
if (!y || typeof y != "string" || r == null)
|
|
2674
2630
|
return;
|
|
2675
|
-
const
|
|
2676
|
-
let
|
|
2677
|
-
for (const
|
|
2678
|
-
(
|
|
2679
|
-
|
|
2680
|
-
},
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2631
|
+
const A = y.split("."), p = A.pop();
|
|
2632
|
+
let R = r;
|
|
2633
|
+
for (const de of A)
|
|
2634
|
+
(R[de] === void 0 || R[de] === null || typeof R[de] != "object") && (R[de] = {}), R = R[de];
|
|
2635
|
+
p !== void 0 && (R[p] = c);
|
|
2636
|
+
}, Q = (r) => r?.id ? l.data.findIndex((y) => y?.id === r.id) : l.data.findIndex((y) => y === r), G = (r, y) => typeof l.rowKey == "function" ? l.rowKey(r, y) ?? `row-${y}` : j(r, l.rowKey) ?? `row-${y}`, te = (r) => `${r.slot}-edit`, X = (r) => l.isDeletedFn(r), P = (r, y) => l.rowEditing && v.value !== null && v.value === G(r, y), x = (r, y) => !l.rowEditing || !l.canEditRow(r, y) || X(r) ? !0 : v.value !== null && !P(r, y), K = () => {
|
|
2637
|
+
v.value = null, b.value = {};
|
|
2638
|
+
}, N = (r, y) => {
|
|
2639
|
+
x(r, y) || (v.value = G(r, y), b.value = L(r), n("edit-start", {
|
|
2640
|
+
item: r,
|
|
2641
|
+
index: Q(r),
|
|
2642
|
+
rowKey: v.value
|
|
2643
|
+
}));
|
|
2644
|
+
}, Y = (r, y) => {
|
|
2645
|
+
n("edit-cancel", {
|
|
2646
|
+
item: r,
|
|
2647
|
+
index: Q(r),
|
|
2648
|
+
rowKey: G(r, y)
|
|
2649
|
+
}), K();
|
|
2650
|
+
}, le = (r, y) => {
|
|
2651
|
+
const c = L(b.value), A = G(r, y);
|
|
2652
|
+
if (l.mutateRows)
|
|
2653
|
+
for (const p of l.columns)
|
|
2654
|
+
p.key && H(r, p.key, L(j(c, p.key)));
|
|
2655
|
+
n("save", {
|
|
2656
|
+
item: r,
|
|
2657
|
+
draft: c,
|
|
2658
|
+
index: Q(r),
|
|
2659
|
+
rowKey: A
|
|
2660
|
+
}), K();
|
|
2661
|
+
}, Z = (r, y, c, A = void 0) => {
|
|
2662
|
+
H(b.value, r, y), n("update", {
|
|
2701
2663
|
item: c,
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2664
|
+
draft: b.value,
|
|
2665
|
+
field: r,
|
|
2666
|
+
value: y,
|
|
2667
|
+
index: Q(c),
|
|
2668
|
+
rowKey: v.value,
|
|
2669
|
+
event: A
|
|
2706
2670
|
});
|
|
2707
|
-
},
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2671
|
+
}, ae = (r, y) => {
|
|
2672
|
+
if (y.slot)
|
|
2673
|
+
return null;
|
|
2674
|
+
if (y.render)
|
|
2675
|
+
return y.render(r);
|
|
2676
|
+
const c = j(r, y.key);
|
|
2677
|
+
return c == null || c === "" ? "-" : D(c);
|
|
2678
|
+
}, ie = (r, y, c) => {
|
|
2679
|
+
if (r.class)
|
|
2680
|
+
return r.class;
|
|
2681
|
+
let p = P(y, c) && (r.input || t[te(r)]) ? "px-6 py-3 text-sm align-top" : "px-6 py-4 text-sm truncate";
|
|
2682
|
+
return r.isSecondary || (p += " font-medium"), r.isSecondary && (p += " text-gray-600"), p;
|
|
2683
|
+
}, U = (r) => r.sortable ? "" : "px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider", $ = (r) => r.inputType || "text", C = (r) => {
|
|
2684
|
+
let y = "block w-full min-w-0 max-w-xs rounded-md border border-gray-200 bg-gray-50 px-3 py-2 text-sm text-gray-900 shadow-none placeholder-gray-400 transition-colors duration-200 focus:border-blue-500 focus:bg-white focus:outline-none focus:ring-2 focus:ring-blue-500/20";
|
|
2685
|
+
return r.inputClass && (y += ` ${r.inputClass}`), r.isSecondary && (y += " text-gray-600"), y;
|
|
2686
|
+
}, We = (r) => r.placeholder || r.label || "", _e = (r, y, c) => P(r, c) ? j(b.value, y.key) ?? "" : j(r, y.key) ?? "", Ge = (r, y) => {
|
|
2687
|
+
const c = Q(r);
|
|
2688
|
+
return c === -1 ? null : l.getErrorMessage(c, y.key);
|
|
2689
|
+
}, me = (r, y, c) => ({
|
|
2690
|
+
item: r,
|
|
2691
|
+
column: y,
|
|
2692
|
+
index: c,
|
|
2693
|
+
isEditing: P(r, c),
|
|
2694
|
+
draft: b.value,
|
|
2695
|
+
rowKey: G(r, c),
|
|
2696
|
+
updateDraft: (A, p) => Z(A, p, r),
|
|
2697
|
+
startEdit: () => N(r, c),
|
|
2698
|
+
cancelEdit: () => Y(r, c),
|
|
2699
|
+
saveEdit: () => le(r, c)
|
|
2700
|
+
}), Xe = (r, y, c) => !!((typeof r.disabled == "function" ? r.disabled(y, c) : r.disabled) || X(y));
|
|
2701
|
+
return (r, y) => (a(), i("div", {
|
|
2702
|
+
class: S(["bg-white", e.isCard ? "mx-4 md:mx-0 border border-gray-200/60 rounded-xl shadow-[0_1px_3px_rgba(0,0,0,0.1)] animate-fadeIn" : ""])
|
|
2713
2703
|
}, [
|
|
2714
|
-
e.search ? (
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2704
|
+
e.search ? (a(), i("div", {
|
|
2705
|
+
key: 0,
|
|
2706
|
+
class: S([
|
|
2707
|
+
"px-6 py-4",
|
|
2708
|
+
e.isCard ? "border-b border-gray-200 bg-gray-50/80 rounded-t-xl" : "mb-4 bg-white/80 backdrop-blur-sm"
|
|
2709
|
+
])
|
|
2710
|
+
}, [
|
|
2711
|
+
o("div", Da, [
|
|
2712
|
+
o("div", Ma, [
|
|
2713
|
+
F(I(ot), { class: "h-4 w-4 text-gray-400" })
|
|
2718
2714
|
]),
|
|
2719
|
-
|
|
2720
|
-
"onUpdate:modelValue":
|
|
2715
|
+
ee(o("input", {
|
|
2716
|
+
"onUpdate:modelValue": y[0] || (y[0] = (c) => f.value = c),
|
|
2721
2717
|
type: "text",
|
|
2722
2718
|
placeholder: e.searchPlaceholder,
|
|
2723
|
-
class: "block w-full pl-
|
|
2724
|
-
}, null, 8,
|
|
2725
|
-
[
|
|
2719
|
+
class: "block w-full rounded-md border border-gray-200 bg-white pl-9 pr-3 py-2 text-sm text-gray-900 placeholder-gray-500 transition-colors duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
|
|
2720
|
+
}, null, 8, ja), [
|
|
2721
|
+
[et, f.value]
|
|
2726
2722
|
])
|
|
2727
2723
|
])
|
|
2728
|
-
])) :
|
|
2729
|
-
T.value ? (
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2724
|
+
], 2)) : M("", !0),
|
|
2725
|
+
T.value ? (a(), i("div", {
|
|
2726
|
+
key: 1,
|
|
2727
|
+
class: S(["overflow-x-auto", e.isCard ? "rounded-xl" : ""])
|
|
2728
|
+
}, [
|
|
2729
|
+
o("table", Oa, [
|
|
2730
|
+
o("thead", za, [
|
|
2731
|
+
o("tr", null, [
|
|
2732
|
+
(a(!0), i(q, null, W(e.columns, (c) => (a(), i(q, {
|
|
2733
|
+
key: c.key
|
|
2735
2734
|
}, [
|
|
2736
|
-
|
|
2735
|
+
c.sortable ? (a(), B(Ve, {
|
|
2737
2736
|
key: 0,
|
|
2738
|
-
field:
|
|
2739
|
-
"current-sort-field":
|
|
2740
|
-
"current-direction":
|
|
2741
|
-
onSort:
|
|
2737
|
+
field: c.key,
|
|
2738
|
+
"current-sort-field": u.value,
|
|
2739
|
+
"current-direction": d.value,
|
|
2740
|
+
onSort: m
|
|
2742
2741
|
}, {
|
|
2743
|
-
default:
|
|
2744
|
-
|
|
2742
|
+
default: z(() => [
|
|
2743
|
+
ue(V(c.label), 1)
|
|
2745
2744
|
]),
|
|
2746
2745
|
_: 2
|
|
2747
|
-
}, 1032, ["field", "current-sort-field", "current-direction"])) : (
|
|
2746
|
+
}, 1032, ["field", "current-sort-field", "current-direction"])) : (a(), i("th", {
|
|
2748
2747
|
key: 1,
|
|
2749
|
-
class:
|
|
2750
|
-
},
|
|
2748
|
+
class: S([U(c), { "text-right": c.align === "right" }])
|
|
2749
|
+
}, V(c.label), 3))
|
|
2751
2750
|
], 64))), 128)),
|
|
2752
|
-
|
|
2751
|
+
k.value ? (a(), i("th", Ea, V(e.actionsLabel), 1)) : M("", !0)
|
|
2753
2752
|
])
|
|
2754
2753
|
]),
|
|
2755
|
-
|
|
2756
|
-
(
|
|
2757
|
-
key:
|
|
2758
|
-
class:
|
|
2754
|
+
o("tbody", Fa, [
|
|
2755
|
+
(a(!0), i(q, null, W(_.value, (c, A) => (a(), i("tr", {
|
|
2756
|
+
key: G(c, A),
|
|
2757
|
+
class: S(e.rowClasses(c, A))
|
|
2759
2758
|
}, [
|
|
2760
|
-
(
|
|
2761
|
-
key:
|
|
2762
|
-
class:
|
|
2759
|
+
(a(!0), i(q, null, W(e.columns, (p) => (a(), i("td", {
|
|
2760
|
+
key: p.key,
|
|
2761
|
+
class: S([ie(p, c, A), { "text-right": p.align === "right" }])
|
|
2763
2762
|
}, [
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
}, $(j(y, S)), 9, zs),
|
|
2769
|
-
U(y) ? (s(), n("span", Fs, $(e.deletedLabel), 1)) : O("", !0)
|
|
2770
|
-
])) : S.input ? (s(), A(re, {
|
|
2763
|
+
P(c, A) && p.slot && I(t)[te(p)] ? w(r.$slots, te(p), E({
|
|
2764
|
+
key: 0,
|
|
2765
|
+
ref_for: !0
|
|
2766
|
+
}, me(c, p, A))) : P(c, A) && p.input ? (a(), B(pe, {
|
|
2771
2767
|
key: 1,
|
|
2772
|
-
type:
|
|
2773
|
-
class:
|
|
2774
|
-
placeholder:
|
|
2775
|
-
"model-value":
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
"
|
|
2781
|
-
|
|
2782
|
-
}, null, 8, ["type", "class", "placeholder", "model-value", "
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2768
|
+
type: $(p),
|
|
2769
|
+
class: S(C(p)),
|
|
2770
|
+
placeholder: We(p),
|
|
2771
|
+
"model-value": _e(c, p, A),
|
|
2772
|
+
disabled: Xe(p, c, A),
|
|
2773
|
+
maxlength: p.maxlength,
|
|
2774
|
+
"error-message": Ge(c, p),
|
|
2775
|
+
"helper-text": "",
|
|
2776
|
+
"onUpdate:modelValue": (R) => Z(p.key, R, c),
|
|
2777
|
+
onBlur: (R) => Z(p.key, R?.target?.value ?? _e(c, p, A), c, "blur")
|
|
2778
|
+
}, null, 8, ["type", "class", "placeholder", "model-value", "disabled", "maxlength", "error-message", "onUpdate:modelValue", "onBlur"])) : p.key === "name" && !p.slot ? (a(), i("div", Na, [
|
|
2779
|
+
o("div", {
|
|
2780
|
+
class: "text-sm font-medium truncate",
|
|
2781
|
+
title: ae(c, p)
|
|
2782
|
+
}, V(ae(c, p)), 9, Ua),
|
|
2783
|
+
X(c) ? (a(), i("span", Ka, V(e.deletedLabel), 1)) : M("", !0)
|
|
2784
|
+
])) : p.slot ? w(r.$slots, p.slot, E({
|
|
2785
|
+
key: 3,
|
|
2786
|
+
ref_for: !0
|
|
2787
|
+
}, me(c, p, A))) : p.render ? (a(), i("div", {
|
|
2788
|
+
key: 4,
|
|
2789
|
+
innerHTML: p.render(c)
|
|
2790
|
+
}, null, 8, Ra)) : (a(), i("div", Ha, V(ae(c, p)), 1))
|
|
2788
2791
|
], 2))), 128)),
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2792
|
+
k.value ? (a(), i("td", qa, [
|
|
2793
|
+
o("div", Pa, [
|
|
2794
|
+
h.value ? w(r.$slots, "actions", E({
|
|
2795
|
+
key: 0,
|
|
2796
|
+
ref_for: !0
|
|
2797
|
+
}, me(c, null, A))) : M("", !0),
|
|
2798
|
+
e.rowEditing && P(c, A) ? (a(), i(q, { key: 1 }, [
|
|
2799
|
+
F(fe, {
|
|
2800
|
+
type: "button",
|
|
2801
|
+
variant: "secondary",
|
|
2802
|
+
title: e.saveLabel,
|
|
2803
|
+
"aria-label": e.saveLabel,
|
|
2804
|
+
onClick: (p) => le(c, A)
|
|
2805
|
+
}, {
|
|
2806
|
+
default: z(() => [
|
|
2807
|
+
F(I(it), { class: "size-4" })
|
|
2808
|
+
]),
|
|
2809
|
+
_: 1
|
|
2810
|
+
}, 8, ["title", "aria-label", "onClick"]),
|
|
2811
|
+
F(fe, {
|
|
2812
|
+
type: "button",
|
|
2813
|
+
variant: "tertiary",
|
|
2814
|
+
title: e.cancelLabel,
|
|
2815
|
+
"aria-label": e.cancelLabel,
|
|
2816
|
+
onClick: (p) => Y(c, A)
|
|
2817
|
+
}, {
|
|
2818
|
+
default: z(() => [
|
|
2819
|
+
F(I(Ie), { class: "size-4" })
|
|
2820
|
+
]),
|
|
2821
|
+
_: 1
|
|
2822
|
+
}, 8, ["title", "aria-label", "onClick"])
|
|
2823
|
+
], 64)) : e.rowEditing ? (a(), B(fe, {
|
|
2824
|
+
key: 2,
|
|
2825
|
+
type: "button",
|
|
2826
|
+
variant: "warning",
|
|
2827
|
+
disabled: x(c, A),
|
|
2828
|
+
title: e.editLabel,
|
|
2829
|
+
"aria-label": e.editLabel,
|
|
2830
|
+
onClick: (p) => N(c, A)
|
|
2831
|
+
}, {
|
|
2832
|
+
default: z(() => [
|
|
2833
|
+
F(I(dt), { class: "size-4" })
|
|
2834
|
+
]),
|
|
2835
|
+
_: 1
|
|
2836
|
+
}, 8, ["disabled", "title", "aria-label", "onClick"])) : M("", !0)
|
|
2837
|
+
])
|
|
2838
|
+
])) : M("", !0)
|
|
2795
2839
|
], 2))), 128))
|
|
2796
2840
|
])
|
|
2797
2841
|
])
|
|
2798
|
-
])) : (
|
|
2799
|
-
|
|
2800
|
-
(
|
|
2842
|
+
], 2)) : (a(), i("div", Wa, [
|
|
2843
|
+
o("div", Ga, [
|
|
2844
|
+
(a(), B(Be(e.emptyState.icon), { class: "h-8 w-8 text-gray-400" }))
|
|
2801
2845
|
]),
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
e.emptyState.actionText && e.emptyState.actionUrl ? (
|
|
2846
|
+
o("h3", Xa, V(e.emptyState.title), 1),
|
|
2847
|
+
o("p", Qa, V(e.emptyState.description), 1),
|
|
2848
|
+
e.emptyState.actionText && e.emptyState.actionUrl ? (a(), B(Ce, {
|
|
2805
2849
|
key: 0,
|
|
2806
|
-
href: e.emptyState.actionUrl
|
|
2850
|
+
href: e.emptyState.actionUrl,
|
|
2851
|
+
variant: "primary"
|
|
2807
2852
|
}, {
|
|
2808
|
-
default:
|
|
2809
|
-
|
|
2853
|
+
default: z(() => [
|
|
2854
|
+
ue(V(e.emptyState.actionText), 1)
|
|
2810
2855
|
]),
|
|
2811
2856
|
_: 1
|
|
2812
|
-
}, 8, ["href"])) :
|
|
2857
|
+
}, 8, ["href"])) : M("", !0)
|
|
2813
2858
|
]))
|
|
2814
2859
|
], 2));
|
|
2815
2860
|
}
|
|
2816
|
-
},
|
|
2817
|
-
inheritAttrs: !1
|
|
2818
|
-
}, {
|
|
2819
|
-
__name: "TertiaryButton",
|
|
2820
|
-
props: {
|
|
2821
|
-
type: {
|
|
2822
|
-
type: String,
|
|
2823
|
-
default: "button"
|
|
2824
|
-
},
|
|
2825
|
-
disabled: {
|
|
2826
|
-
type: Boolean,
|
|
2827
|
-
default: !1
|
|
2828
|
-
}
|
|
2829
|
-
},
|
|
2830
|
-
setup(e) {
|
|
2831
|
-
const a = P();
|
|
2832
|
-
return (t, l) => (s(), n("button", M(V(a), {
|
|
2833
|
-
type: e.type,
|
|
2834
|
-
disabled: e.disabled,
|
|
2835
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-gray-500 to-gray-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-gray-600 hover:to-gray-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:from-gray-500 disabled:hover:to-gray-600"
|
|
2836
|
-
}), [
|
|
2837
|
-
g(t.$slots, "default")
|
|
2838
|
-
], 16, qs));
|
|
2839
|
-
}
|
|
2840
|
-
}), Xs = ["href", "title", "target", "rel"], Js = /* @__PURE__ */ Object.assign({
|
|
2841
|
-
inheritAttrs: !1
|
|
2842
|
-
}, {
|
|
2843
|
-
__name: "TertiaryLinkButton",
|
|
2844
|
-
props: {
|
|
2845
|
-
href: {
|
|
2846
|
-
type: String,
|
|
2847
|
-
required: !0
|
|
2848
|
-
},
|
|
2849
|
-
title: {
|
|
2850
|
-
type: String,
|
|
2851
|
-
default: null
|
|
2852
|
-
},
|
|
2853
|
-
external: {
|
|
2854
|
-
type: Boolean,
|
|
2855
|
-
default: !1
|
|
2856
|
-
},
|
|
2857
|
-
target: {
|
|
2858
|
-
type: String,
|
|
2859
|
-
default: null
|
|
2860
|
-
},
|
|
2861
|
-
rel: {
|
|
2862
|
-
type: String,
|
|
2863
|
-
default: null
|
|
2864
|
-
}
|
|
2865
|
-
},
|
|
2866
|
-
setup(e) {
|
|
2867
|
-
const a = P();
|
|
2868
|
-
return (t, l) => e.external ? (s(), n("a", M({ key: 1 }, V(a), {
|
|
2869
|
-
href: e.href,
|
|
2870
|
-
title: e.title,
|
|
2871
|
-
target: e.target,
|
|
2872
|
-
rel: e.rel,
|
|
2873
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-gray-500 to-gray-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-gray-600 hover:to-gray-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2"
|
|
2874
|
-
}), [
|
|
2875
|
-
g(t.$slots, "default")
|
|
2876
|
-
], 16, Xs)) : (s(), A(V(ee), M({ key: 0 }, V(a), {
|
|
2877
|
-
href: e.href,
|
|
2878
|
-
title: e.title,
|
|
2879
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-gray-500 to-gray-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-gray-600 hover:to-gray-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2"
|
|
2880
|
-
}), {
|
|
2881
|
-
default: F(() => [
|
|
2882
|
-
g(t.$slots, "default")
|
|
2883
|
-
]),
|
|
2884
|
-
_: 3
|
|
2885
|
-
}, 16, ["href", "title"]));
|
|
2886
|
-
}
|
|
2887
|
-
}), Qs = ["type", "disabled"], Ys = /* @__PURE__ */ Object.assign({
|
|
2888
|
-
inheritAttrs: !1
|
|
2889
|
-
}, {
|
|
2890
|
-
__name: "WarningButton",
|
|
2891
|
-
props: {
|
|
2892
|
-
type: {
|
|
2893
|
-
type: String,
|
|
2894
|
-
default: "button"
|
|
2895
|
-
},
|
|
2896
|
-
disabled: {
|
|
2897
|
-
type: Boolean,
|
|
2898
|
-
default: !1
|
|
2899
|
-
}
|
|
2900
|
-
},
|
|
2901
|
-
setup(e) {
|
|
2902
|
-
const a = P();
|
|
2903
|
-
return (t, l) => (s(), n("button", M(V(a), {
|
|
2904
|
-
type: e.type,
|
|
2905
|
-
disabled: e.disabled,
|
|
2906
|
-
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg border border-yellow-300 bg-yellow-50 p-3 py-2 text-sm font-medium text-yellow-700 transition-all duration-200 hover:bg-yellow-100 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-yellow-50"
|
|
2907
|
-
}), [
|
|
2908
|
-
g(t.$slots, "default")
|
|
2909
|
-
], 16, Qs));
|
|
2910
|
-
}
|
|
2911
|
-
}), Zs = {
|
|
2861
|
+
}, Ja = {
|
|
2912
2862
|
install(e) {
|
|
2913
|
-
for (const [
|
|
2914
|
-
|
|
2863
|
+
for (const [s, t] of Object.entries(ut))
|
|
2864
|
+
s !== "EnosVue" && e.component(s, t);
|
|
2915
2865
|
}
|
|
2916
2866
|
};
|
|
2917
2867
|
export {
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
Oe as
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
Gs as TertiaryButton,
|
|
2961
|
-
Js as TertiaryLinkButton,
|
|
2962
|
-
Ve as TextArea,
|
|
2963
|
-
_e as TextInput,
|
|
2964
|
-
be as ThSortable,
|
|
2965
|
-
Ys as WarningButton
|
|
2868
|
+
mt as ActionCard,
|
|
2869
|
+
vt as ActionMessage,
|
|
2870
|
+
At as ActionSection,
|
|
2871
|
+
Dt as ApplicationLogo,
|
|
2872
|
+
Et as AuthenticationCard,
|
|
2873
|
+
Nt as Badge,
|
|
2874
|
+
Gt as Banner,
|
|
2875
|
+
fe as Button,
|
|
2876
|
+
je as Card,
|
|
2877
|
+
Me as CardTabs,
|
|
2878
|
+
Yt as Checkbox,
|
|
2879
|
+
Oe as CheckboxInput,
|
|
2880
|
+
Pe as CheckboxMultipleInput,
|
|
2881
|
+
Dl as ConfirmationModal,
|
|
2882
|
+
Fe as CustomSelect,
|
|
2883
|
+
Ue as DateInput,
|
|
2884
|
+
El as DialogModal,
|
|
2885
|
+
we as Divider,
|
|
2886
|
+
Nl as Dropdown,
|
|
2887
|
+
Rl as DropdownLink,
|
|
2888
|
+
Ja as EnosVue,
|
|
2889
|
+
Gl as FormSection,
|
|
2890
|
+
Ke as ImageInput,
|
|
2891
|
+
Ql as InputError,
|
|
2892
|
+
pe as InputGroup,
|
|
2893
|
+
ea as InputLabel,
|
|
2894
|
+
Ce as LinkButton,
|
|
2895
|
+
$e as Modal,
|
|
2896
|
+
la as NavLink,
|
|
2897
|
+
Re as NotationInput,
|
|
2898
|
+
He as RadioInput,
|
|
2899
|
+
qe as RadioMultipleInput,
|
|
2900
|
+
sa as ResponsiveNavLink,
|
|
2901
|
+
oa as SectionBorder,
|
|
2902
|
+
Se as SectionTitle,
|
|
2903
|
+
Ne as SelectInput,
|
|
2904
|
+
pa as SortControls,
|
|
2905
|
+
Ia as TableList,
|
|
2906
|
+
Ya as TableListForm,
|
|
2907
|
+
Ee as TextArea,
|
|
2908
|
+
ze as TextInput,
|
|
2909
|
+
Ve as ThSortable
|
|
2966
2910
|
};
|