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