dendelion-ui 0.0.8 → 0.0.10
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/dendelion-ui.cjs.js +2 -2
- package/dist/dendelion-ui.es.js +491 -331
- package/dist/dendelion-ui.umd.js +2 -2
- package/dist/types/components/button/Button.vue.d.ts +3 -3
- package/dist/types/components/button/interface.d.ts +2 -2
- package/dist/types/components/card/Card.vue.d.ts +3 -3
- package/dist/types/components/card/interface.d.ts +3 -3
- package/dist/types/components/modal/Modal.vue.d.ts +5 -0
- package/dist/types/components/modal/interface.d.ts +2 -0
- package/dist/types/components/table/interface.d.ts +2 -2
- package/dist/types/types/backgroundColor.d.ts +25 -0
- package/dist/types/types/buttonColor.d.ts +25 -0
- package/dist/types/types/buttonSize.d.ts +12 -0
- package/dist/types/types/index.d.ts +6 -2
- package/dist/types/types/roundedSize.d.ts +12 -0
- package/dist/types/types/tableSize.d.ts +12 -0
- package/dist/types/types/{color.d.ts → textColor.d.ts} +3 -3
- package/package.json +1 -1
- package/src/components/button/Button.vue +3 -3
- package/src/components/button/interface.ts +2 -2
- package/src/components/card/Card.vue +4 -4
- package/src/components/card/interface.ts +3 -3
- package/src/components/modal/Modal.vue +12 -4
- package/src/components/modal/interface.ts +2 -0
- package/src/components/table/Table.vue +3 -3
- package/src/components/table/interface.ts +2 -2
- package/src/shims-vue.d.ts +0 -1
- package/src/types/backgroundColor.ts +71 -0
- package/src/types/buttonColor.ts +73 -0
- package/src/types/buttonSize.ts +32 -0
- package/src/types/index.ts +6 -2
- package/src/types/roundedSize.ts +32 -0
- package/src/types/tableSize.ts +32 -0
- package/src/types/textColor.ts +71 -0
- package/dist/types/types/size.d.ts +0 -12
- package/src/types/color.ts +0 -72
- package/src/types/size.ts +0 -32
package/dist/dendelion-ui.es.js
CHANGED
|
@@ -1,71 +1,238 @@
|
|
|
1
|
-
import { defineComponent as N, computed as
|
|
2
|
-
var
|
|
3
|
-
class
|
|
1
|
+
import { defineComponent as N, computed as ae, createElementBlock as h, openBlock as p, normalizeClass as O, createElementVNode as g, renderSlot as W, ref as L, createBlock as J, resolveDynamicComponent as se, withCtx as ce, createTextVNode as ue, toDisplayString as j, onMounted as Y, watch as k, Fragment as V, renderList as U, createCommentVNode as q, provide as ye, inject as Q, Transition as _e, unref as C, onUnmounted as ge } from "vue";
|
|
2
|
+
var le = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(le || {});
|
|
3
|
+
class Se {
|
|
4
4
|
static toClassName(t) {
|
|
5
5
|
switch (t) {
|
|
6
6
|
case 0:
|
|
7
|
-
return "primary";
|
|
7
|
+
return "bg-primary";
|
|
8
8
|
case 1:
|
|
9
|
-
return "primary-content";
|
|
9
|
+
return "bg-primary-content";
|
|
10
10
|
case 2:
|
|
11
|
-
return "secondary";
|
|
11
|
+
return "bg-secondary";
|
|
12
12
|
case 3:
|
|
13
|
-
return "secondary-content";
|
|
13
|
+
return "bg-secondary-content";
|
|
14
14
|
case 4:
|
|
15
|
-
return "accent";
|
|
15
|
+
return "bg-accent";
|
|
16
16
|
case 5:
|
|
17
|
-
return "accent-content";
|
|
17
|
+
return "bg-accent-content";
|
|
18
18
|
case 6:
|
|
19
|
-
return "neutral";
|
|
19
|
+
return "bg-neutral";
|
|
20
20
|
case 7:
|
|
21
|
-
return "neutral-content";
|
|
21
|
+
return "bg-neutral-content";
|
|
22
22
|
case 8:
|
|
23
23
|
return "base-100";
|
|
24
24
|
case 9:
|
|
25
|
-
return "base-200";
|
|
25
|
+
return "bg-base-200";
|
|
26
26
|
case 10:
|
|
27
|
-
return "base-300";
|
|
27
|
+
return "bg-base-300";
|
|
28
28
|
case 11:
|
|
29
|
-
return "base-content";
|
|
29
|
+
return "bg-base-content";
|
|
30
30
|
case 12:
|
|
31
|
-
return "info";
|
|
31
|
+
return "bg-info";
|
|
32
32
|
case 13:
|
|
33
|
-
return "info-content";
|
|
33
|
+
return "bg-info-content";
|
|
34
34
|
case 14:
|
|
35
|
-
return "success";
|
|
35
|
+
return "bg-success";
|
|
36
36
|
case 15:
|
|
37
|
-
return "success-content";
|
|
37
|
+
return "bg-success-content";
|
|
38
38
|
case 16:
|
|
39
|
-
return "warning";
|
|
39
|
+
return "bg-warning";
|
|
40
40
|
case 17:
|
|
41
|
-
return "warning-content";
|
|
41
|
+
return "bg-warning-content";
|
|
42
42
|
case 18:
|
|
43
|
-
return "error";
|
|
43
|
+
return "bg-error";
|
|
44
44
|
case 19:
|
|
45
|
-
return "error-content";
|
|
45
|
+
return "bg-error-content";
|
|
46
46
|
default:
|
|
47
|
-
return "
|
|
47
|
+
return "bg-base-content";
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
var ie = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(ie || {});
|
|
52
|
+
class xe {
|
|
53
|
+
static toClassName(t) {
|
|
54
|
+
switch (t) {
|
|
55
|
+
case 0:
|
|
56
|
+
return "btn-primary";
|
|
57
|
+
case 1:
|
|
58
|
+
return "btn-primary-content";
|
|
59
|
+
case 2:
|
|
60
|
+
return "btn-secondary";
|
|
61
|
+
case 3:
|
|
62
|
+
return "btn-secondary-content";
|
|
63
|
+
case 4:
|
|
64
|
+
return "btn-accent";
|
|
65
|
+
case 5:
|
|
66
|
+
return "btn-accent-content";
|
|
67
|
+
case 6:
|
|
68
|
+
return "btn-neutral";
|
|
69
|
+
case 7:
|
|
70
|
+
return "btn-neutral-content";
|
|
71
|
+
case 8:
|
|
72
|
+
return "base-100";
|
|
73
|
+
case 9:
|
|
74
|
+
return "btn-base-200";
|
|
75
|
+
case 10:
|
|
76
|
+
return "btn-base-300";
|
|
77
|
+
case 11:
|
|
78
|
+
return "btn-base-content";
|
|
79
|
+
case 12:
|
|
80
|
+
return "btn-info";
|
|
81
|
+
case 13:
|
|
82
|
+
return "btn-info-content";
|
|
83
|
+
case 14:
|
|
84
|
+
return "btn-success";
|
|
85
|
+
case 15:
|
|
86
|
+
return "btn-success-content";
|
|
87
|
+
case 16:
|
|
88
|
+
return "btn-warning";
|
|
89
|
+
case 17:
|
|
90
|
+
return "btn-warning-content";
|
|
91
|
+
case 18:
|
|
92
|
+
return "btn-error";
|
|
93
|
+
case 19:
|
|
94
|
+
return "btn-error-content";
|
|
95
|
+
default:
|
|
96
|
+
return "btn-base-content";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
var we = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(we || {});
|
|
101
|
+
class tt {
|
|
102
|
+
static toClassName(t) {
|
|
103
|
+
switch (t) {
|
|
104
|
+
case 0:
|
|
105
|
+
return "text-primary";
|
|
106
|
+
case 1:
|
|
107
|
+
return "text-primary-content";
|
|
108
|
+
case 2:
|
|
109
|
+
return "text-secondary";
|
|
110
|
+
case 3:
|
|
111
|
+
return "text-secondary-content";
|
|
112
|
+
case 4:
|
|
113
|
+
return "text-accent";
|
|
114
|
+
case 5:
|
|
115
|
+
return "text-accent-content";
|
|
116
|
+
case 6:
|
|
117
|
+
return "text-neutral";
|
|
118
|
+
case 7:
|
|
119
|
+
return "text-neutral-content";
|
|
120
|
+
case 8:
|
|
121
|
+
return "base-100";
|
|
122
|
+
case 9:
|
|
123
|
+
return "text-base-200";
|
|
124
|
+
case 10:
|
|
125
|
+
return "text-base-300";
|
|
126
|
+
case 11:
|
|
127
|
+
return "text-base-content";
|
|
128
|
+
case 12:
|
|
129
|
+
return "text-info";
|
|
130
|
+
case 13:
|
|
131
|
+
return "text-info-content";
|
|
132
|
+
case 14:
|
|
133
|
+
return "text-success";
|
|
134
|
+
case 15:
|
|
135
|
+
return "text-success-content";
|
|
136
|
+
case 16:
|
|
137
|
+
return "text-warning";
|
|
138
|
+
case 17:
|
|
139
|
+
return "text-warning-content";
|
|
140
|
+
case 18:
|
|
141
|
+
return "text-error";
|
|
142
|
+
case 19:
|
|
143
|
+
return "text-error-content";
|
|
144
|
+
default:
|
|
145
|
+
return "text-base-content";
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
var oe = /* @__PURE__ */ ((e) => (e[e.XS = 0] = "XS", e[e.SM = 1] = "SM", e[e.MD = 2] = "MD", e[e.LG = 3] = "LG", e[e.XL = 4] = "XL", e[e.TWOXL = 5] = "TWOXL", e[e.THREEXL = 6] = "THREEXL", e))(oe || {});
|
|
150
|
+
class Me {
|
|
151
|
+
static toClassName(t) {
|
|
152
|
+
switch (t) {
|
|
153
|
+
case 0:
|
|
154
|
+
return "btn-xs";
|
|
155
|
+
case 1:
|
|
156
|
+
return "btn-sm";
|
|
157
|
+
case 2:
|
|
158
|
+
return "btn-md";
|
|
159
|
+
case 3:
|
|
160
|
+
return "btn-lg";
|
|
161
|
+
case 4:
|
|
162
|
+
return "btn-xl";
|
|
163
|
+
case 5:
|
|
164
|
+
return "btn-2xl";
|
|
165
|
+
case 6:
|
|
166
|
+
return "btn-3xl";
|
|
167
|
+
default:
|
|
168
|
+
return "btn-md";
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
var Le = /* @__PURE__ */ ((e) => (e[e.XS = 0] = "XS", e[e.SM = 1] = "SM", e[e.MD = 2] = "MD", e[e.LG = 3] = "LG", e[e.XL = 4] = "XL", e[e.TWOXL = 5] = "TWOXL", e[e.THREEXL = 6] = "THREEXL", e))(Le || {});
|
|
173
|
+
class Ee {
|
|
174
|
+
static toClassName(t) {
|
|
175
|
+
switch (t) {
|
|
176
|
+
case 0:
|
|
177
|
+
return "rounded-xs";
|
|
178
|
+
case 1:
|
|
179
|
+
return "rounded-sm";
|
|
180
|
+
case 2:
|
|
181
|
+
return "rounded-md";
|
|
182
|
+
case 3:
|
|
183
|
+
return "rounded-lg";
|
|
184
|
+
case 4:
|
|
185
|
+
return "rounded-xl";
|
|
186
|
+
case 5:
|
|
187
|
+
return "rounded-2xl";
|
|
188
|
+
case 6:
|
|
189
|
+
return "rounded-3xl";
|
|
190
|
+
default:
|
|
191
|
+
return "rounded-md";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
var de = /* @__PURE__ */ ((e) => (e[e.XS = 0] = "XS", e[e.SM = 1] = "SM", e[e.MD = 2] = "MD", e[e.LG = 3] = "LG", e[e.XL = 4] = "XL", e[e.TWOXL = 5] = "TWOXL", e[e.THREEXL = 6] = "THREEXL", e))(de || {});
|
|
196
|
+
class Ne {
|
|
197
|
+
static toClassName(t) {
|
|
198
|
+
switch (t) {
|
|
199
|
+
case 0:
|
|
200
|
+
return "table-xs";
|
|
201
|
+
case 1:
|
|
202
|
+
return "table-sm";
|
|
203
|
+
case 2:
|
|
204
|
+
return "table-md";
|
|
205
|
+
case 3:
|
|
206
|
+
return "table-lg";
|
|
207
|
+
case 4:
|
|
208
|
+
return "table-xl";
|
|
209
|
+
case 5:
|
|
210
|
+
return "table-2xl";
|
|
211
|
+
case 6:
|
|
212
|
+
return "table-3xl";
|
|
213
|
+
default:
|
|
214
|
+
return "table-md";
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function fe(e) {
|
|
52
219
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
53
220
|
}
|
|
54
|
-
var
|
|
221
|
+
var K = { exports: {} };
|
|
55
222
|
/*!
|
|
56
223
|
Copyright (c) 2018 Jed Watson.
|
|
57
224
|
Licensed under the MIT License (MIT), see
|
|
58
225
|
http://jedwatson.github.io/classnames
|
|
59
226
|
*/
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
return
|
|
227
|
+
var B;
|
|
228
|
+
function $e() {
|
|
229
|
+
return B || (B = 1, function(e) {
|
|
63
230
|
(function() {
|
|
64
231
|
var t = {}.hasOwnProperty;
|
|
65
232
|
function a() {
|
|
66
|
-
for (var n = "",
|
|
67
|
-
var
|
|
68
|
-
|
|
233
|
+
for (var n = "", c = 0; c < arguments.length; c++) {
|
|
234
|
+
var f = arguments[c];
|
|
235
|
+
f && (n = r(n, s(f)));
|
|
69
236
|
}
|
|
70
237
|
return n;
|
|
71
238
|
}
|
|
@@ -78,305 +245,281 @@ function ye() {
|
|
|
78
245
|
return a.apply(null, n);
|
|
79
246
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
80
247
|
return n.toString();
|
|
81
|
-
var
|
|
82
|
-
for (var
|
|
83
|
-
t.call(n,
|
|
84
|
-
return
|
|
248
|
+
var c = "";
|
|
249
|
+
for (var f in n)
|
|
250
|
+
t.call(n, f) && n[f] && (c = r(c, f));
|
|
251
|
+
return c;
|
|
85
252
|
}
|
|
86
|
-
function r(n,
|
|
87
|
-
return
|
|
253
|
+
function r(n, c) {
|
|
254
|
+
return c ? n ? n + " " + c : n + c : n;
|
|
88
255
|
}
|
|
89
256
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
90
257
|
})();
|
|
91
|
-
}(
|
|
258
|
+
}(K)), K.exports;
|
|
92
259
|
}
|
|
93
|
-
var
|
|
94
|
-
const
|
|
260
|
+
var We = $e();
|
|
261
|
+
const H = /* @__PURE__ */ fe(We), Xe = ["type", "disabled"], Fe = { class: "group-[.is-loading]:text-transparent" }, nt = /* @__PURE__ */ N({
|
|
95
262
|
__name: "Button",
|
|
96
263
|
props: {
|
|
97
264
|
type: { default: "button" },
|
|
98
265
|
loading: { type: Boolean },
|
|
99
|
-
color: { default:
|
|
266
|
+
color: { default: ie.Neutral },
|
|
100
267
|
disabled: { type: Boolean },
|
|
101
268
|
click: {}
|
|
102
269
|
},
|
|
103
270
|
setup(e) {
|
|
104
|
-
const t = e, a =
|
|
271
|
+
const t = e, a = ae(() => H(
|
|
105
272
|
"btn",
|
|
106
273
|
"group",
|
|
107
|
-
|
|
274
|
+
xe.toClassName(t.color),
|
|
108
275
|
t.loading ? "is-loading" : "",
|
|
109
276
|
t.disabled ? "disabled" : ""
|
|
110
277
|
));
|
|
111
|
-
return (s, r) => (
|
|
278
|
+
return (s, r) => (p(), h("button", {
|
|
112
279
|
onClick: r[0] || (r[0] = (n) => s.click ? s.click : void 0),
|
|
113
|
-
class:
|
|
280
|
+
class: O(a.value),
|
|
114
281
|
type: s.type,
|
|
115
282
|
disabled: s.disabled || s.loading
|
|
116
283
|
}, [
|
|
117
|
-
r[1] || (r[1] =
|
|
118
|
-
|
|
119
|
-
|
|
284
|
+
r[1] || (r[1] = g("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
|
|
285
|
+
g("span", Fe, [
|
|
286
|
+
W(s.$slots, "default")
|
|
120
287
|
])
|
|
121
|
-
], 10,
|
|
288
|
+
], 10, Xe));
|
|
122
289
|
}
|
|
123
|
-
}),
|
|
290
|
+
}), T = (e, t) => {
|
|
124
291
|
const a = e.__vccOpts || e;
|
|
125
292
|
for (const [s, r] of t)
|
|
126
293
|
a[s] = r;
|
|
127
294
|
return a;
|
|
128
|
-
},
|
|
129
|
-
function
|
|
130
|
-
return
|
|
295
|
+
}, Pe = {};
|
|
296
|
+
function Ae(e, t) {
|
|
297
|
+
return p(), h("button");
|
|
131
298
|
}
|
|
132
|
-
const
|
|
133
|
-
var ie = /* @__PURE__ */ ((e) => (e[e.XS = 0] = "XS", e[e.SM = 1] = "SM", e[e.MD = 2] = "MD", e[e.LG = 3] = "LG", e[e.XL = 4] = "XL", e[e.TWOXL = 5] = "TWOXL", e[e.THREEXL = 6] = "THREEXL", e))(ie || {});
|
|
134
|
-
class Be {
|
|
135
|
-
static toClassName(t) {
|
|
136
|
-
switch (t) {
|
|
137
|
-
case 0:
|
|
138
|
-
return "xs";
|
|
139
|
-
case 1:
|
|
140
|
-
return "sm";
|
|
141
|
-
case 2:
|
|
142
|
-
return "md";
|
|
143
|
-
case 3:
|
|
144
|
-
return "lg";
|
|
145
|
-
case 4:
|
|
146
|
-
return "xl";
|
|
147
|
-
case 5:
|
|
148
|
-
return "2xl";
|
|
149
|
-
case 6:
|
|
150
|
-
return "3xl";
|
|
151
|
-
default:
|
|
152
|
-
return "md";
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
const je = /* @__PURE__ */ N({
|
|
299
|
+
const rt = /* @__PURE__ */ T(Pe, [["render", Ae]]), at = /* @__PURE__ */ N({
|
|
157
300
|
__name: "Card",
|
|
158
301
|
props: {
|
|
159
|
-
backgroundColor: { default:
|
|
302
|
+
backgroundColor: { default: le.Primary },
|
|
160
303
|
shadow: { type: Boolean, default: !1 },
|
|
161
304
|
fullWidth: { type: Boolean, default: !1 },
|
|
162
305
|
rounded: { type: Boolean },
|
|
163
306
|
roundedSize: {}
|
|
164
307
|
},
|
|
165
308
|
setup(e) {
|
|
166
|
-
const t = e, a =
|
|
309
|
+
const t = e, a = L(H(
|
|
167
310
|
"card",
|
|
168
|
-
|
|
311
|
+
Se.toClassName(t.backgroundColor),
|
|
169
312
|
t.shadow ? "shadow-lg" : "",
|
|
170
313
|
t.fullWidth ? "w-full" : "",
|
|
171
|
-
t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ?
|
|
314
|
+
t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Ee.toClassName(t.roundedSize) : ""
|
|
172
315
|
));
|
|
173
|
-
return (s, r) => (
|
|
174
|
-
class:
|
|
316
|
+
return (s, r) => (p(), h("div", {
|
|
317
|
+
class: O(a.value)
|
|
175
318
|
}, [
|
|
176
|
-
|
|
319
|
+
W(s.$slots, "default")
|
|
177
320
|
], 2));
|
|
178
321
|
}
|
|
179
|
-
}),
|
|
180
|
-
function
|
|
181
|
-
return
|
|
182
|
-
|
|
322
|
+
}), Oe = {}, De = { class: "card-body" };
|
|
323
|
+
function Ie(e, t) {
|
|
324
|
+
return p(), h("div", De, [
|
|
325
|
+
W(e.$slots, "default")
|
|
183
326
|
]);
|
|
184
327
|
}
|
|
185
|
-
const
|
|
328
|
+
const st = /* @__PURE__ */ T(Oe, [["render", Ie]]), ct = /* @__PURE__ */ N({
|
|
186
329
|
__name: "CardTitle",
|
|
187
330
|
props: {
|
|
188
331
|
is: { default: "h1" },
|
|
189
332
|
text: { default: "" }
|
|
190
333
|
},
|
|
191
334
|
setup(e) {
|
|
192
|
-
return (t, a) => (
|
|
193
|
-
default:
|
|
194
|
-
|
|
335
|
+
return (t, a) => (p(), J(se(t.is), { class: "card-title" }, {
|
|
336
|
+
default: ce(() => [
|
|
337
|
+
ue(j(t.text), 1)
|
|
195
338
|
]),
|
|
196
339
|
_: 1
|
|
197
340
|
}));
|
|
198
341
|
}
|
|
199
|
-
}),
|
|
342
|
+
}), ut = /* @__PURE__ */ N({
|
|
200
343
|
__name: "Container",
|
|
201
344
|
props: {
|
|
202
345
|
container: { type: Boolean, default: !0 },
|
|
203
346
|
padding: { type: Boolean, default: !0 }
|
|
204
347
|
},
|
|
205
348
|
setup(e) {
|
|
206
|
-
const t = e, a =
|
|
349
|
+
const t = e, a = L([
|
|
207
350
|
t.container ? "container" : "",
|
|
208
351
|
//To disable the max width in some cases
|
|
209
352
|
t.padding ? "p-6" : ""
|
|
210
353
|
]);
|
|
211
|
-
return (s, r) => (
|
|
212
|
-
class:
|
|
354
|
+
return (s, r) => (p(), h("div", {
|
|
355
|
+
class: O(a.value)
|
|
213
356
|
}, [
|
|
214
|
-
|
|
357
|
+
W(s.$slots, "default")
|
|
215
358
|
], 2));
|
|
216
359
|
}
|
|
217
360
|
});
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
return
|
|
361
|
+
var z = {}, Z = {}, ee;
|
|
362
|
+
function pe() {
|
|
363
|
+
return ee || (ee = 1, function(e) {
|
|
221
364
|
e.__esModule = !0, e.default = r;
|
|
222
365
|
var t = /[\u0300-\u036f]/g, a = /ł/g, s = /ñ/g;
|
|
223
366
|
function r(n) {
|
|
224
367
|
return n.toLowerCase().normalize("NFD").replace(t, "").replace(a, "l").replace(s, "n").trim();
|
|
225
368
|
}
|
|
226
|
-
}(
|
|
369
|
+
}(Z)), Z;
|
|
227
370
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
var e = t(
|
|
233
|
-
function t(
|
|
234
|
-
return
|
|
371
|
+
var A = {}, te;
|
|
372
|
+
function ne() {
|
|
373
|
+
if (te) return A;
|
|
374
|
+
te = 1, A.__esModule = !0, A.aggressiveFuzzyMatch = _, A.createFuzzySearchImpl = I, A.experimentalSmartFuzzyMatch = X, A.fuzzyMatchImpl = y;
|
|
375
|
+
var e = t(pe());
|
|
376
|
+
function t(l) {
|
|
377
|
+
return l && l.__esModule ? l : { default: l };
|
|
235
378
|
}
|
|
236
|
-
var a = Number.MAX_SAFE_INTEGER, s = function(
|
|
379
|
+
var a = Number.MAX_SAFE_INTEGER, s = function(u, b) {
|
|
237
380
|
return (
|
|
238
381
|
/*: number*/
|
|
239
|
-
|
|
382
|
+
u.score - b.score
|
|
240
383
|
);
|
|
241
|
-
}, r = function(
|
|
384
|
+
}, r = function(u, b) {
|
|
242
385
|
return (
|
|
243
386
|
/*: number*/
|
|
244
|
-
|
|
387
|
+
u[0] - b[0]
|
|
245
388
|
);
|
|
246
389
|
}, n = new Set(` []()-–—'"“”`.split(""));
|
|
247
|
-
function
|
|
248
|
-
return n.has(
|
|
390
|
+
function c(l) {
|
|
391
|
+
return n.has(l);
|
|
249
392
|
}
|
|
250
|
-
function
|
|
251
|
-
if (
|
|
252
|
-
return [0, [[0,
|
|
253
|
-
var
|
|
254
|
-
if (
|
|
255
|
-
return [0.1, [[0,
|
|
256
|
-
if (
|
|
393
|
+
function f(l, u, b, x, i, S, v) {
|
|
394
|
+
if (l === x)
|
|
395
|
+
return [0, [[0, l.length - 1]]];
|
|
396
|
+
var d = x.length, m = u.length, w = i.length;
|
|
397
|
+
if (u === i)
|
|
398
|
+
return [0.1, [[0, m - 1]]];
|
|
399
|
+
if (u.startsWith(i))
|
|
257
400
|
return [0.5, [[0, w - 1]]];
|
|
258
|
-
var
|
|
259
|
-
if (
|
|
260
|
-
return [0.9, [[
|
|
261
|
-
var
|
|
262
|
-
if (
|
|
263
|
-
return [1, [[
|
|
264
|
-
var
|
|
265
|
-
if (
|
|
266
|
-
return
|
|
401
|
+
var E = l.indexOf(x);
|
|
402
|
+
if (E > -1 && c(l[E - 1]))
|
|
403
|
+
return [0.9, [[E, E + d - 1]]];
|
|
404
|
+
var M = u.indexOf(i);
|
|
405
|
+
if (M > -1 && c(u[M - 1]))
|
|
406
|
+
return [1, [[M, M + d - 1]]];
|
|
407
|
+
var $ = S.length;
|
|
408
|
+
if ($ > 1 && S.every(function(P) {
|
|
409
|
+
return b.has(P);
|
|
267
410
|
})) {
|
|
268
|
-
var
|
|
269
|
-
return [
|
|
270
|
-
var
|
|
271
|
-
return [
|
|
411
|
+
var F = 1.5 + $ * 0.2;
|
|
412
|
+
return [F, S.map(function(P) {
|
|
413
|
+
var D = u.indexOf(P);
|
|
414
|
+
return [D, D + P.length - 1];
|
|
272
415
|
}).sort(r)];
|
|
273
416
|
}
|
|
274
|
-
return
|
|
417
|
+
return M > -1 ? [2, [[M, M + d - 1]]] : v === "aggressive" ? _(u, i) : v === "smart" ? X(u, i) : null;
|
|
275
418
|
}
|
|
276
|
-
function
|
|
277
|
-
for (var
|
|
278
|
-
if (
|
|
279
|
-
if (w !==
|
|
280
|
-
return
|
|
281
|
-
|
|
419
|
+
function _(l, u) {
|
|
420
|
+
for (var b = l.length, x = u.length, i = 0, S = u[i], v = [], d = -1, m = -2, w = 0; w < b; w += 1)
|
|
421
|
+
if (l[w] === S) {
|
|
422
|
+
if (w !== m + 1 && (d >= 0 && v.push([d, m]), d = w), m = w, i += 1, i === x)
|
|
423
|
+
return v.push([d, m]), o(v, l);
|
|
424
|
+
S = u[i];
|
|
282
425
|
}
|
|
283
426
|
return null;
|
|
284
427
|
}
|
|
285
|
-
function
|
|
286
|
-
for (var
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
428
|
+
function X(l, u) {
|
|
429
|
+
for (var b = l.length, x = [], i = 0, S = u[i], v = -1, d = -2; ; ) {
|
|
430
|
+
var m = l.indexOf(S, d + 1);
|
|
431
|
+
if (m === -1)
|
|
289
432
|
break;
|
|
290
|
-
if (
|
|
291
|
-
|
|
433
|
+
if (m === 0 || c(l[m - 1]))
|
|
434
|
+
v = m;
|
|
292
435
|
else {
|
|
293
|
-
var w =
|
|
294
|
-
if (
|
|
295
|
-
|
|
436
|
+
var w = u.length - i, E = l.length - m, M = Math.min(3, w, E), $ = u.slice(i, i + M);
|
|
437
|
+
if (l.slice(m, m + M) === $)
|
|
438
|
+
v = m;
|
|
296
439
|
else {
|
|
297
|
-
|
|
440
|
+
d += 1;
|
|
298
441
|
continue;
|
|
299
442
|
}
|
|
300
443
|
}
|
|
301
|
-
for (
|
|
302
|
-
|
|
303
|
-
if (
|
|
304
|
-
return
|
|
444
|
+
for (d = v; d < b && l[d] === S; d += 1)
|
|
445
|
+
i += 1, S = u[i];
|
|
446
|
+
if (d -= 1, x.push([v, d]), i === u.length)
|
|
447
|
+
return o(x, l);
|
|
305
448
|
}
|
|
306
449
|
return null;
|
|
307
450
|
}
|
|
308
|
-
function
|
|
309
|
-
var
|
|
310
|
-
return
|
|
311
|
-
var
|
|
312
|
-
w ?
|
|
313
|
-
}), [
|
|
451
|
+
function o(l, u) {
|
|
452
|
+
var b = 2;
|
|
453
|
+
return l.forEach(function(x) {
|
|
454
|
+
var i = x[0], S = x[1], v = S - i + 1, d = i === 0 || u[i] === " " || u[i - 1] === " ", m = S === u.length - 1 || u[S] === " " || u[S + 1] === " ", w = d && m;
|
|
455
|
+
w ? b += 0.2 : d ? b += 0.4 : v >= 3 ? b += 0.8 : b += 1.6;
|
|
456
|
+
}), [b, l];
|
|
314
457
|
}
|
|
315
|
-
function
|
|
316
|
-
var
|
|
317
|
-
return
|
|
318
|
-
item:
|
|
319
|
-
score:
|
|
320
|
-
matches: [
|
|
458
|
+
function y(l, u) {
|
|
459
|
+
var b = (0, e.default)(u), x = b.split(" "), i = (0, e.default)(l), S = new Set(i.split(" ")), v = f(l, i, S, u, b, x, "smart");
|
|
460
|
+
return v ? {
|
|
461
|
+
item: l,
|
|
462
|
+
score: v[0],
|
|
463
|
+
matches: [v[1]]
|
|
321
464
|
} : null;
|
|
322
465
|
}
|
|
323
|
-
function
|
|
324
|
-
var
|
|
325
|
-
var
|
|
326
|
-
if (
|
|
327
|
-
|
|
466
|
+
function I(l, u) {
|
|
467
|
+
var b = u.strategy, x = b === void 0 ? "aggressive" : b, i = u.getText, S = l.map(function(v) {
|
|
468
|
+
var d;
|
|
469
|
+
if (i)
|
|
470
|
+
d = i(v);
|
|
328
471
|
else {
|
|
329
|
-
var
|
|
330
|
-
|
|
472
|
+
var m = u.key ? v[u.key] : v;
|
|
473
|
+
d = [m];
|
|
331
474
|
}
|
|
332
|
-
var w =
|
|
333
|
-
var
|
|
334
|
-
return [$,
|
|
475
|
+
var w = d.map(function(E) {
|
|
476
|
+
var M = E || "", $ = (0, e.default)(M), F = new Set($.split(" "));
|
|
477
|
+
return [M, $, F];
|
|
335
478
|
});
|
|
336
|
-
return [
|
|
479
|
+
return [v, w];
|
|
337
480
|
});
|
|
338
|
-
return function(
|
|
339
|
-
var
|
|
340
|
-
return
|
|
341
|
-
for (var
|
|
342
|
-
var
|
|
343
|
-
|
|
481
|
+
return function(v) {
|
|
482
|
+
var d = [], m = (0, e.default)(v), w = m.split(" ");
|
|
483
|
+
return m.length ? (S.forEach(function(E) {
|
|
484
|
+
for (var M = E[0], $ = E[1], F = a, P = [], D = 0, be = $.length; D < be; D += 1) {
|
|
485
|
+
var G = $[D], ve = G[0], me = G[1], he = G[2], R = f(ve, me, he, v, m, w, x);
|
|
486
|
+
R ? (F = Math.min(F, R[0]), P.push(R[1])) : P.push(null);
|
|
344
487
|
}
|
|
345
|
-
|
|
346
|
-
item:
|
|
347
|
-
score:
|
|
348
|
-
matches:
|
|
488
|
+
F < a && d.push({
|
|
489
|
+
item: M,
|
|
490
|
+
score: F,
|
|
491
|
+
matches: P
|
|
349
492
|
});
|
|
350
|
-
}),
|
|
493
|
+
}), d.sort(s), d) : [];
|
|
351
494
|
};
|
|
352
495
|
}
|
|
353
|
-
return
|
|
496
|
+
return A;
|
|
354
497
|
}
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
return
|
|
498
|
+
var re;
|
|
499
|
+
function Ve() {
|
|
500
|
+
return re || (re = 1, function(e) {
|
|
358
501
|
e.__esModule = !0, e.default = s, e.fuzzyMatch = r;
|
|
359
|
-
var t = a(
|
|
502
|
+
var t = a(pe());
|
|
360
503
|
e.normalizeText = t.default;
|
|
361
504
|
function a(n) {
|
|
362
505
|
return n && n.__esModule ? n : { default: n };
|
|
363
506
|
}
|
|
364
|
-
function s(n,
|
|
365
|
-
return
|
|
507
|
+
function s(n, c) {
|
|
508
|
+
return c === void 0 && (c = {}), ne().createFuzzySearchImpl(n, c);
|
|
366
509
|
}
|
|
367
|
-
function r(n,
|
|
368
|
-
return
|
|
510
|
+
function r(n, c) {
|
|
511
|
+
return ne().fuzzyMatchImpl(n, c);
|
|
369
512
|
}
|
|
370
|
-
}(
|
|
513
|
+
}(z)), z;
|
|
371
514
|
}
|
|
372
|
-
var
|
|
373
|
-
const
|
|
515
|
+
var qe = Ve();
|
|
516
|
+
const He = /* @__PURE__ */ fe(qe), ke = { key: 0 }, Ge = ["colspan"], Re = ["innerHTML"], lt = /* @__PURE__ */ N({
|
|
374
517
|
__name: "Table",
|
|
375
518
|
props: {
|
|
376
519
|
zebra: { type: Boolean, default: !1 },
|
|
377
520
|
pinRows: { type: Boolean, default: !1 },
|
|
378
521
|
pinCols: { type: Boolean, default: !1 },
|
|
379
|
-
size: { default:
|
|
522
|
+
size: { default: de.MD },
|
|
380
523
|
columns: {},
|
|
381
524
|
dataSource: {},
|
|
382
525
|
ajax: {},
|
|
@@ -384,202 +527,211 @@ const Ee = /* @__PURE__ */ le(ze), Fe = { key: 0 }, We = ["colspan"], Ce = ["inn
|
|
|
384
527
|
searchFunction: {}
|
|
385
528
|
},
|
|
386
529
|
setup(e) {
|
|
387
|
-
const t =
|
|
530
|
+
const t = L([]), a = L([]), s = L(null), r = e, n = L(H("table", Ne.toClassName(r.size), {
|
|
388
531
|
"table-zebra": r.zebra,
|
|
389
532
|
"table-pin-rows": r.pinRows,
|
|
390
533
|
"table-pin-cols ": r.pinCols
|
|
391
|
-
})),
|
|
392
|
-
|
|
534
|
+
})), c = (_, X) => String(!_ || typeof _ != "object" ? _ : X.split(".").reduce((o, y) => o && (typeof o == "object" ? o[y] : o), _));
|
|
535
|
+
Y(() => {
|
|
393
536
|
t.value = r.dataSource, a.value = r.dataSource;
|
|
394
|
-
}),
|
|
395
|
-
t.value =
|
|
396
|
-
}, { immediate: !0 }),
|
|
537
|
+
}), k(() => r.dataSource, (_) => {
|
|
538
|
+
t.value = _, a.value = _;
|
|
539
|
+
}, { immediate: !0 }), k(() => r.searchValue, (_) => {
|
|
397
540
|
if (r.searchFunction) {
|
|
398
|
-
a.value = r.searchFunction(
|
|
541
|
+
a.value = r.searchFunction(_ ?? "");
|
|
399
542
|
return;
|
|
400
543
|
}
|
|
401
|
-
a.value =
|
|
544
|
+
a.value = _ ? f(_) : t.value;
|
|
402
545
|
}, { immediate: !0 });
|
|
403
|
-
const
|
|
404
|
-
const
|
|
405
|
-
return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((
|
|
406
|
-
const
|
|
407
|
-
for (const
|
|
408
|
-
const
|
|
409
|
-
|
|
546
|
+
const f = (_) => {
|
|
547
|
+
const X = [];
|
|
548
|
+
return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((y) => {
|
|
549
|
+
const I = t.value.map((b) => c(b, y)), u = He(I)(_);
|
|
550
|
+
for (const b of u) {
|
|
551
|
+
const x = t.value.filter((i) => c(i, y) === b.item);
|
|
552
|
+
X.push(...x);
|
|
410
553
|
}
|
|
411
|
-
}),
|
|
554
|
+
}), X) : [];
|
|
412
555
|
};
|
|
413
|
-
return (
|
|
556
|
+
return (_, X) => (p(), h("table", {
|
|
414
557
|
ref_key: "table",
|
|
415
558
|
ref: s,
|
|
416
|
-
class:
|
|
559
|
+
class: O(n.value)
|
|
417
560
|
}, [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
(
|
|
421
|
-
key:
|
|
422
|
-
},
|
|
561
|
+
g("thead", null, [
|
|
562
|
+
g("tr", null, [
|
|
563
|
+
(p(!0), h(V, null, U(r.columns, (o) => (p(), h("th", {
|
|
564
|
+
key: o.title
|
|
565
|
+
}, j(o.title), 1))), 128))
|
|
423
566
|
])
|
|
424
567
|
]),
|
|
425
|
-
|
|
426
|
-
a.value.length === 0 ? (
|
|
427
|
-
|
|
568
|
+
g("tbody", null, [
|
|
569
|
+
a.value.length === 0 ? (p(), h("tr", ke, [
|
|
570
|
+
g("td", {
|
|
428
571
|
colspan: r.columns.length
|
|
429
|
-
}, " No data found ", 8,
|
|
430
|
-
])) : (
|
|
431
|
-
key: String(
|
|
572
|
+
}, " No data found ", 8, Ge)
|
|
573
|
+
])) : (p(!0), h(V, { key: 1 }, U(a.value, (o) => (p(), h("tr", {
|
|
574
|
+
key: String(o)
|
|
432
575
|
}, [
|
|
433
|
-
(
|
|
434
|
-
key:
|
|
576
|
+
(p(!0), h(V, null, U(r.columns, (y) => (p(), h("td", {
|
|
577
|
+
key: y.title
|
|
435
578
|
}, [
|
|
436
|
-
|
|
437
|
-
|
|
579
|
+
y.render ? q("", !0) : (p(), h(V, { key: 0 }, [
|
|
580
|
+
ue(j(c(o, y.data)), 1)
|
|
438
581
|
], 64)),
|
|
439
|
-
typeof
|
|
440
|
-
typeof
|
|
582
|
+
typeof y.render == "function" ? (p(), h(V, { key: 1 }, [
|
|
583
|
+
typeof y.render(c(o, y.data), o) == "string" ? (p(), h("div", {
|
|
441
584
|
key: 0,
|
|
442
|
-
innerHTML:
|
|
443
|
-
}, null, 8,
|
|
444
|
-
], 64)) :
|
|
585
|
+
innerHTML: y.render(c(o, y.data), o)
|
|
586
|
+
}, null, 8, Re)) : (p(), J(se(y.render(c(o, y.data), o)), { key: 1 }))
|
|
587
|
+
], 64)) : q("", !0)
|
|
445
588
|
]))), 128))
|
|
446
589
|
]))), 128))
|
|
447
590
|
])
|
|
448
591
|
], 2));
|
|
449
592
|
}
|
|
450
|
-
}),
|
|
593
|
+
}), it = /* @__PURE__ */ N({
|
|
451
594
|
__name: "Stepper",
|
|
452
595
|
props: {
|
|
453
596
|
value: {}
|
|
454
597
|
},
|
|
455
598
|
emits: ["update:value"],
|
|
456
599
|
setup(e, { expose: t, emit: a }) {
|
|
457
|
-
const s = e, r =
|
|
458
|
-
r.value =
|
|
600
|
+
const s = e, r = L(s.value), n = a, c = (f) => {
|
|
601
|
+
r.value = f, n("update:value", f);
|
|
459
602
|
};
|
|
460
|
-
return
|
|
603
|
+
return ye("stepper", {
|
|
461
604
|
value: r,
|
|
462
|
-
updateValue:
|
|
463
|
-
}),
|
|
464
|
-
r.value =
|
|
605
|
+
updateValue: c
|
|
606
|
+
}), k(() => s.value, (f) => {
|
|
607
|
+
r.value = f;
|
|
465
608
|
}), t({
|
|
466
|
-
updateValue:
|
|
467
|
-
}), (
|
|
609
|
+
updateValue: c
|
|
610
|
+
}), (f, _) => W(f.$slots, "default", { updateValue: c });
|
|
468
611
|
}
|
|
469
|
-
}),
|
|
612
|
+
}), ot = /* @__PURE__ */ N({
|
|
470
613
|
__name: "Step",
|
|
471
614
|
props: {
|
|
472
615
|
value: {}
|
|
473
616
|
},
|
|
474
617
|
setup(e) {
|
|
475
|
-
const t = e, a =
|
|
476
|
-
return
|
|
618
|
+
const t = e, a = Q("stepper"), s = L("");
|
|
619
|
+
return k(() => a == null ? void 0 : a.value.value, (r) => {
|
|
477
620
|
r && t.value && (s.value = Number(r) >= Number(t.value) ? "step-primary" : "");
|
|
478
|
-
}),
|
|
621
|
+
}), Y(() => {
|
|
479
622
|
a && (s.value = a.value.value === t.value ? "step-primary" : "", Number(a.value.value) >= Number(t.value) && (s.value = "step-primary"));
|
|
480
|
-
}), (r, n) => (
|
|
481
|
-
class:
|
|
623
|
+
}), (r, n) => (p(), h("li", {
|
|
624
|
+
class: O(["step", s.value])
|
|
482
625
|
}, [
|
|
483
|
-
|
|
626
|
+
W(r.$slots, "default")
|
|
484
627
|
], 2));
|
|
485
628
|
}
|
|
486
|
-
}),
|
|
487
|
-
function
|
|
488
|
-
return
|
|
489
|
-
|
|
629
|
+
}), Ue = {}, Ke = { class: "steps" };
|
|
630
|
+
function ze(e, t) {
|
|
631
|
+
return p(), h("ul", Ke, [
|
|
632
|
+
W(e.$slots, "default")
|
|
490
633
|
]);
|
|
491
634
|
}
|
|
492
|
-
const
|
|
635
|
+
const dt = /* @__PURE__ */ T(Ue, [["render", ze]]), Ze = { key: 0 }, ft = /* @__PURE__ */ N({
|
|
493
636
|
__name: "StepPanels",
|
|
494
637
|
setup(e) {
|
|
495
|
-
const t =
|
|
496
|
-
return (a, s) => (
|
|
638
|
+
const t = Q("stepper");
|
|
639
|
+
return (a, s) => (p(), J(_e, {
|
|
497
640
|
name: "fade",
|
|
498
641
|
mode: "out-in"
|
|
499
642
|
}, {
|
|
500
|
-
default:
|
|
643
|
+
default: ce(() => {
|
|
501
644
|
var r, n;
|
|
502
645
|
return [
|
|
503
|
-
(r =
|
|
504
|
-
|
|
505
|
-
currentStep: (n =
|
|
646
|
+
(r = C(t)) != null && r.value ? (p(), h("div", Ze, [
|
|
647
|
+
W(a.$slots, "default", {
|
|
648
|
+
currentStep: (n = C(t)) == null ? void 0 : n.value
|
|
506
649
|
})
|
|
507
|
-
])) :
|
|
650
|
+
])) : q("", !0)
|
|
508
651
|
];
|
|
509
652
|
}),
|
|
510
653
|
_: 3
|
|
511
654
|
}));
|
|
512
655
|
}
|
|
513
|
-
}),
|
|
656
|
+
}), je = { key: 0 }, pt = /* @__PURE__ */ N({
|
|
514
657
|
__name: "StepPanel",
|
|
515
658
|
props: {
|
|
516
659
|
value: {}
|
|
517
660
|
},
|
|
518
661
|
setup(e, { expose: t }) {
|
|
519
|
-
const a =
|
|
662
|
+
const a = ae(() => s == null ? void 0 : s.value.value), s = Q("stepper"), r = (n) => {
|
|
520
663
|
s && s.updateValue(n.toString());
|
|
521
664
|
};
|
|
522
665
|
return t({
|
|
523
666
|
activateCallback: r
|
|
524
|
-
}), (n,
|
|
525
|
-
|
|
526
|
-
])) :
|
|
667
|
+
}), (n, c) => n.value === a.value ? (p(), h("div", je, [
|
|
668
|
+
W(n.$slots, "default", { activateCallback: r })
|
|
669
|
+
])) : q("", !0);
|
|
527
670
|
}
|
|
528
|
-
}),
|
|
671
|
+
}), Je = { class: "modal-box" }, Ye = {
|
|
529
672
|
key: 0,
|
|
530
673
|
method: "dialog"
|
|
531
|
-
},
|
|
674
|
+
}, bt = /* @__PURE__ */ N({
|
|
532
675
|
__name: "Modal",
|
|
533
676
|
props: {
|
|
534
677
|
closeButton: { type: Boolean, default: !0 },
|
|
535
|
-
overflow: { type: Boolean, default: !1 }
|
|
678
|
+
overflow: { type: Boolean, default: !1 },
|
|
679
|
+
closeButtonSize: { default: oe.SM }
|
|
536
680
|
},
|
|
537
681
|
emits: ["close"],
|
|
538
682
|
setup(e, { expose: t, emit: a }) {
|
|
539
|
-
const s =
|
|
540
|
-
"overflow-visible":
|
|
541
|
-
}));
|
|
683
|
+
const s = L(null), r = a, n = e, c = L(H("modal", {
|
|
684
|
+
"overflow-visible": n.overflow
|
|
685
|
+
})), f = L(H("btn", Me.toClassName(n.closeButtonSize), "btn-circle", "btn-ghost", "absolute", "right-2", "top-2"));
|
|
542
686
|
return t({
|
|
543
687
|
showModal: () => {
|
|
544
|
-
var
|
|
545
|
-
(
|
|
688
|
+
var o;
|
|
689
|
+
(o = s.value) == null || o.showModal();
|
|
546
690
|
},
|
|
547
691
|
closeModal: () => {
|
|
548
|
-
var
|
|
549
|
-
(
|
|
692
|
+
var o;
|
|
693
|
+
(o = s.value) == null || o.close();
|
|
550
694
|
}
|
|
551
|
-
}), (
|
|
695
|
+
}), (o, y) => (p(), h("dialog", {
|
|
552
696
|
ref_key: "modal",
|
|
553
697
|
ref: s,
|
|
554
|
-
class:
|
|
698
|
+
class: O(c.value),
|
|
555
699
|
"aria-modal": "true",
|
|
556
700
|
"aria-hidden": "true",
|
|
557
701
|
role: "dialog",
|
|
558
|
-
onClose:
|
|
702
|
+
onClose: y[0] || (y[0] = (I) => r("close", I))
|
|
559
703
|
}, [
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
704
|
+
g("div", Je, [
|
|
705
|
+
o.closeButton ? (p(), h("form", Ye, [
|
|
706
|
+
g("button", {
|
|
707
|
+
class: O(f.value)
|
|
708
|
+
}, "✕", 2)
|
|
709
|
+
])) : q("", !0),
|
|
710
|
+
W(o.$slots, "default")
|
|
711
|
+
]),
|
|
712
|
+
y[1] || (y[1] = g("form", {
|
|
713
|
+
method: "dialog",
|
|
714
|
+
class: "modal-backdrop"
|
|
715
|
+
}, [
|
|
716
|
+
g("button", null, "close")
|
|
717
|
+
], -1))
|
|
566
718
|
], 34));
|
|
567
719
|
}
|
|
568
|
-
}),
|
|
720
|
+
}), Qe = { class: "hidden w-full max-w-sm lg:flex" }, Te = { class: "relative mx-3 w-full" }, Ce = { class: "w-full max-w-full relative" }, Be = ["value"], vt = /* @__PURE__ */ N({
|
|
569
721
|
__name: "SearchBar",
|
|
570
722
|
props: ["modelValue"],
|
|
571
723
|
emits: ["update:modelValue"],
|
|
572
724
|
setup(e, { emit: t }) {
|
|
573
|
-
const a = e, s =
|
|
574
|
-
(
|
|
725
|
+
const a = e, s = L(null), r = t, n = (c) => {
|
|
726
|
+
(c.ctrlKey || c.metaKey) && c.key.toLowerCase() === "k" && (c.preventDefault(), s.value && s.value.focus());
|
|
575
727
|
};
|
|
576
|
-
return
|
|
728
|
+
return Y(() => {
|
|
577
729
|
document.addEventListener("keydown", n);
|
|
578
|
-
}),
|
|
730
|
+
}), ge(() => {
|
|
579
731
|
document.removeEventListener("keydown", n);
|
|
580
|
-
}), (
|
|
581
|
-
|
|
582
|
-
|
|
732
|
+
}), (c, f) => (p(), h("div", Qe, [
|
|
733
|
+
g("label", Te, [
|
|
734
|
+
f[1] || (f[1] = g("svg", {
|
|
583
735
|
class: "pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content",
|
|
584
736
|
"aria-hidden": "true",
|
|
585
737
|
width: "16",
|
|
@@ -587,33 +739,33 @@ const rt = /* @__PURE__ */ Y(Re, [["render", Ve]]), De = { key: 0 }, at = /* @__
|
|
|
587
739
|
viewBox: "0.48 0.48 23.04 23.04",
|
|
588
740
|
fill: "currentColor"
|
|
589
741
|
}, [
|
|
590
|
-
|
|
742
|
+
g("path", {
|
|
591
743
|
fill: "none",
|
|
592
744
|
d: "M0 0h24v24H0z"
|
|
593
745
|
}),
|
|
594
|
-
|
|
746
|
+
g("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })
|
|
595
747
|
], -1)),
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
748
|
+
g("div", Ce, [
|
|
749
|
+
g("form", null, [
|
|
750
|
+
g("input", {
|
|
599
751
|
ref_key: "searchInput",
|
|
600
752
|
ref: s,
|
|
601
753
|
type: "search",
|
|
602
754
|
placeholder: "Zoeken...",
|
|
603
755
|
value: a.modelValue,
|
|
604
|
-
onInput:
|
|
756
|
+
onInput: f[0] || (f[0] = (_) => r("update:modelValue", _.target.value)),
|
|
605
757
|
class: "bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"
|
|
606
|
-
}, null, 40,
|
|
758
|
+
}, null, 40, Be)
|
|
607
759
|
])
|
|
608
760
|
]),
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
761
|
+
f[2] || (f[2] = g("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
|
|
762
|
+
g("kbd", { class: "kbd kbd-sm" }, "ctrl"),
|
|
763
|
+
g("kbd", { class: "kbd kbd-sm" }, "K")
|
|
612
764
|
], -1))
|
|
613
765
|
])
|
|
614
766
|
]));
|
|
615
767
|
}
|
|
616
|
-
}),
|
|
768
|
+
}), mt = [
|
|
617
769
|
"bg-primary",
|
|
618
770
|
"bg-primary-content",
|
|
619
771
|
"bg-secondary",
|
|
@@ -699,23 +851,31 @@ const rt = /* @__PURE__ */ Y(Re, [["render", Ve]]), De = { key: 0 }, at = /* @__
|
|
|
699
851
|
"block"
|
|
700
852
|
];
|
|
701
853
|
export {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
854
|
+
le as BackgroundColor,
|
|
855
|
+
Se as BackgroundColorUtils,
|
|
856
|
+
nt as Button,
|
|
857
|
+
ie as ButtonColor,
|
|
858
|
+
xe as ButtonColorUtils,
|
|
859
|
+
oe as ButtonSize,
|
|
860
|
+
Me as ButtonSizeUtils,
|
|
861
|
+
at as Card,
|
|
862
|
+
st as CardBody,
|
|
863
|
+
ct as CardTitle,
|
|
864
|
+
ut as Container,
|
|
865
|
+
bt as Modal,
|
|
866
|
+
Le as RoundedSize,
|
|
867
|
+
Ee as RoundedSizeUtils,
|
|
868
|
+
vt as SearchBar,
|
|
869
|
+
rt as SimpleButton,
|
|
870
|
+
ot as Step,
|
|
871
|
+
dt as StepList,
|
|
872
|
+
pt as StepPanel,
|
|
873
|
+
ft as StepPanels,
|
|
874
|
+
it as Stepper,
|
|
875
|
+
lt as Table,
|
|
876
|
+
de as TableSize,
|
|
877
|
+
Ne as TableSizeUtils,
|
|
878
|
+
we as TextColor,
|
|
879
|
+
tt as TextColorUtils,
|
|
880
|
+
mt as dendelionSafeList
|
|
721
881
|
};
|