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