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