dendelion-ui 0.0.23 → 0.0.25
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 -5
- package/dist/dendelion-ui.es.js +148 -153
- package/dist/dendelion-ui.umd.js +1 -5
- package/dist/types/components/button/Button.vue.d.ts +3 -2
- package/dist/types/components/button/SimpleButton.vue.d.ts +2 -1
- package/dist/types/components/card/Card.vue.d.ts +3 -2
- package/dist/types/components/card/CardBody.vue.d.ts +3 -2
- package/dist/types/components/card/CardTitle.vue.d.ts +2 -1
- package/dist/types/components/container/Container.vue.d.ts +3 -2
- package/dist/types/components/modal/Modal.vue.d.ts +3 -2
- package/dist/types/components/search/SearchBar.vue.d.ts +3 -2
- package/dist/types/components/stepper/Step.vue.d.ts +3 -2
- package/dist/types/components/stepper/StepList.vue.d.ts +3 -2
- package/dist/types/components/stepper/StepPanel.vue.d.ts +3 -2
- package/dist/types/components/stepper/StepPanels.vue.d.ts +5 -4
- package/dist/types/components/stepper/Stepper.vue.d.ts +3 -2
- package/dist/types/components/table/Table.vue.d.ts +10 -5
- package/dist/types/components/table/TableColumn.vue.d.ts +10 -5
- package/dist/types/components/table/interface.d.ts +1 -1
- package/dist/types/components/tabs/Tabs.vue.d.ts +3 -2
- package/package.json +80 -77
- package/src/components/table/interface.ts +1 -1
package/dist/dendelion-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, computed as I,
|
|
1
|
+
import { defineComponent as M, computed as I, openBlock as c, createElementBlock as i, normalizeClass as N, createElementVNode as v, renderSlot as T, ref as C, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, Fragment as R, unref as K, isVNode as ye, normalizeProps as xe, guardReactiveProps as _e, createCommentVNode as E, defineAsyncComponent as se, watch as U, renderList as P, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as Ce, vModelRadio as $e } from "vue";
|
|
2
2
|
var re = /* @__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))(re || {});
|
|
3
3
|
class Me {
|
|
4
4
|
static toClassName(t) {
|
|
@@ -233,24 +233,19 @@ function pe(e) {
|
|
|
233
233
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
234
234
|
}
|
|
235
235
|
var Z = { exports: {} };
|
|
236
|
-
/*!
|
|
237
|
-
Copyright (c) 2018 Jed Watson.
|
|
238
|
-
Licensed under the MIT License (MIT), see
|
|
239
|
-
http://jedwatson.github.io/classnames
|
|
240
|
-
*/
|
|
241
236
|
var oe;
|
|
242
237
|
function Ee() {
|
|
243
|
-
return oe || (oe = 1, function(e) {
|
|
238
|
+
return oe || (oe = 1, (function(e) {
|
|
244
239
|
(function() {
|
|
245
240
|
var t = {}.hasOwnProperty;
|
|
246
241
|
function r() {
|
|
247
242
|
for (var n = "", o = 0; o < arguments.length; o++) {
|
|
248
243
|
var f = arguments[o];
|
|
249
|
-
f && (n =
|
|
244
|
+
f && (n = a(n, s(f)));
|
|
250
245
|
}
|
|
251
246
|
return n;
|
|
252
247
|
}
|
|
253
|
-
function
|
|
248
|
+
function s(n) {
|
|
254
249
|
if (typeof n == "string" || typeof n == "number")
|
|
255
250
|
return n;
|
|
256
251
|
if (typeof n != "object")
|
|
@@ -261,15 +256,15 @@ function Ee() {
|
|
|
261
256
|
return n.toString();
|
|
262
257
|
var o = "";
|
|
263
258
|
for (var f in n)
|
|
264
|
-
t.call(n, f) && n[f] && (o =
|
|
259
|
+
t.call(n, f) && n[f] && (o = a(o, f));
|
|
265
260
|
return o;
|
|
266
261
|
}
|
|
267
|
-
function
|
|
262
|
+
function a(n, o) {
|
|
268
263
|
return o ? n ? n + " " + o : n + o : n;
|
|
269
264
|
}
|
|
270
265
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
271
266
|
})();
|
|
272
|
-
}(Z)), Z.exports;
|
|
267
|
+
})(Z)), Z.exports;
|
|
273
268
|
}
|
|
274
269
|
var Fe = Ee();
|
|
275
270
|
const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ M({
|
|
@@ -295,28 +290,28 @@ const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
|
|
|
295
290
|
t.disabled ? "disabled" : ""
|
|
296
291
|
)
|
|
297
292
|
);
|
|
298
|
-
return (
|
|
299
|
-
onClick:
|
|
293
|
+
return (s, a) => (c(), i("button", {
|
|
294
|
+
onClick: a[0] || (a[0] = (n) => e.click ? e.click : void 0),
|
|
300
295
|
class: N(r.value),
|
|
301
|
-
type:
|
|
302
|
-
disabled:
|
|
296
|
+
type: e.type,
|
|
297
|
+
disabled: e.disabled || e.loading
|
|
303
298
|
}, [
|
|
304
|
-
|
|
299
|
+
a[1] || (a[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
|
|
305
300
|
v("span", Ve, [
|
|
306
|
-
T(
|
|
301
|
+
T(s.$slots, "default")
|
|
307
302
|
])
|
|
308
303
|
], 10, We));
|
|
309
304
|
}
|
|
310
305
|
}), ae = (e, t) => {
|
|
311
306
|
const r = e.__vccOpts || e;
|
|
312
|
-
for (const [
|
|
313
|
-
r[
|
|
307
|
+
for (const [s, a] of t)
|
|
308
|
+
r[s] = a;
|
|
314
309
|
return r;
|
|
315
310
|
}, De = {};
|
|
316
311
|
function Oe(e, t) {
|
|
317
312
|
return c(), i("button");
|
|
318
313
|
}
|
|
319
|
-
const yt = /* @__PURE__ */ ae(De, [["render", Oe]]),
|
|
314
|
+
const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), xt = /* @__PURE__ */ M({
|
|
320
315
|
__name: "Card",
|
|
321
316
|
props: {
|
|
322
317
|
backgroundColor: { default: re.Primary },
|
|
@@ -335,10 +330,10 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ M({
|
|
|
335
330
|
t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Te.toClassName(t.roundedSize) : ""
|
|
336
331
|
)
|
|
337
332
|
);
|
|
338
|
-
return (
|
|
333
|
+
return (s, a) => (c(), i("div", {
|
|
339
334
|
class: N(r.value)
|
|
340
335
|
}, [
|
|
341
|
-
T(
|
|
336
|
+
T(s.$slots, "default")
|
|
342
337
|
], 2));
|
|
343
338
|
}
|
|
344
339
|
}), Pe = {}, Ae = { class: "card-body" };
|
|
@@ -347,16 +342,16 @@ function qe(e, t) {
|
|
|
347
342
|
T(e.$slots, "default")
|
|
348
343
|
]);
|
|
349
344
|
}
|
|
350
|
-
const
|
|
345
|
+
const _t = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
|
|
351
346
|
__name: "CardTitle",
|
|
352
347
|
props: {
|
|
353
348
|
is: { default: "h1" },
|
|
354
349
|
text: { default: "" }
|
|
355
350
|
},
|
|
356
351
|
setup(e) {
|
|
357
|
-
return (t, r) => (c(), q(ee(
|
|
352
|
+
return (t, r) => (c(), q(ee(e.is), { class: "card-title" }, {
|
|
358
353
|
default: fe(() => [
|
|
359
|
-
te(X(
|
|
354
|
+
te(X(e.text), 1)
|
|
360
355
|
]),
|
|
361
356
|
_: 1
|
|
362
357
|
}));
|
|
@@ -373,37 +368,37 @@ const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
|
|
|
373
368
|
//To disable the max width in some cases
|
|
374
369
|
t.padding ? "p-6" : ""
|
|
375
370
|
]);
|
|
376
|
-
return (
|
|
371
|
+
return (s, a) => (c(), i("div", {
|
|
377
372
|
class: N(r.value)
|
|
378
373
|
}, [
|
|
379
|
-
T(
|
|
374
|
+
T(s.$slots, "default")
|
|
380
375
|
], 2));
|
|
381
376
|
}
|
|
382
|
-
}), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r,
|
|
377
|
+
}), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, s) => r && (typeof r == "object" ? r[s] : r), e));
|
|
383
378
|
var Y = {}, Q = {}, ue;
|
|
384
379
|
function be() {
|
|
385
|
-
return ue || (ue = 1, function(e) {
|
|
386
|
-
e.__esModule = !0, e.default =
|
|
387
|
-
var t = /[\u0300-\u036f]/g, r = /ł/g,
|
|
388
|
-
function
|
|
389
|
-
return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(
|
|
380
|
+
return ue || (ue = 1, (function(e) {
|
|
381
|
+
e.__esModule = !0, e.default = a;
|
|
382
|
+
var t = /[\u0300-\u036f]/g, r = /ł/g, s = /ñ/g;
|
|
383
|
+
function a(n) {
|
|
384
|
+
return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(s, "n").trim();
|
|
390
385
|
}
|
|
391
|
-
}(Q)), Q;
|
|
386
|
+
})(Q)), Q;
|
|
392
387
|
}
|
|
393
388
|
var V = {}, ce;
|
|
394
389
|
function le() {
|
|
395
390
|
if (ce) return V;
|
|
396
|
-
ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch =
|
|
391
|
+
ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = _, V.fuzzyMatchImpl = y;
|
|
397
392
|
var e = t(be());
|
|
398
393
|
function t(u) {
|
|
399
394
|
return u && u.__esModule ? u : { default: u };
|
|
400
395
|
}
|
|
401
|
-
var r = Number.MAX_SAFE_INTEGER,
|
|
396
|
+
var r = Number.MAX_SAFE_INTEGER, s = function(l, m) {
|
|
402
397
|
return (
|
|
403
398
|
/*: number*/
|
|
404
399
|
l.score - m.score
|
|
405
400
|
);
|
|
406
|
-
},
|
|
401
|
+
}, a = function(l, m) {
|
|
407
402
|
return (
|
|
408
403
|
/*: number*/
|
|
409
404
|
l[0] - m[0]
|
|
@@ -412,7 +407,7 @@ function le() {
|
|
|
412
407
|
function o(u) {
|
|
413
408
|
return n.has(u);
|
|
414
409
|
}
|
|
415
|
-
function f(u, l, m, x, d,
|
|
410
|
+
function f(u, l, m, x, d, g, b) {
|
|
416
411
|
if (u === x)
|
|
417
412
|
return [0, [[0, u.length - 1]]];
|
|
418
413
|
var p = x.length, h = l.length, S = d.length;
|
|
@@ -426,30 +421,30 @@ function le() {
|
|
|
426
421
|
var B = l.indexOf(d);
|
|
427
422
|
if (B > -1 && o(l[B - 1]))
|
|
428
423
|
return [1, [[B, B + p - 1]]];
|
|
429
|
-
var L =
|
|
430
|
-
if (L > 1 &&
|
|
424
|
+
var L = g.length;
|
|
425
|
+
if (L > 1 && g.every(function(W) {
|
|
431
426
|
return m.has(W);
|
|
432
427
|
})) {
|
|
433
428
|
var F = 1.5 + L * 0.2;
|
|
434
|
-
return [F,
|
|
429
|
+
return [F, g.map(function(W) {
|
|
435
430
|
var O = l.indexOf(W);
|
|
436
431
|
return [O, O + W.length - 1];
|
|
437
|
-
}).sort(
|
|
432
|
+
}).sort(a)];
|
|
438
433
|
}
|
|
439
|
-
return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ?
|
|
434
|
+
return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? _(l, d) : null;
|
|
440
435
|
}
|
|
441
436
|
function k(u, l) {
|
|
442
|
-
for (var m = u.length, x = l.length, d = 0,
|
|
443
|
-
if (u[S] ===
|
|
437
|
+
for (var m = u.length, x = l.length, d = 0, g = l[d], b = [], p = -1, h = -2, S = 0; S < m; S += 1)
|
|
438
|
+
if (u[S] === g) {
|
|
444
439
|
if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, d += 1, d === x)
|
|
445
440
|
return b.push([p, h]), $(b, u);
|
|
446
|
-
|
|
441
|
+
g = l[d];
|
|
447
442
|
}
|
|
448
443
|
return null;
|
|
449
444
|
}
|
|
450
|
-
function
|
|
451
|
-
for (var m = u.length, x = [], d = 0,
|
|
452
|
-
var h = u.indexOf(
|
|
445
|
+
function _(u, l) {
|
|
446
|
+
for (var m = u.length, x = [], d = 0, g = l[d], b = -1, p = -2; ; ) {
|
|
447
|
+
var h = u.indexOf(g, p + 1);
|
|
453
448
|
if (h === -1)
|
|
454
449
|
break;
|
|
455
450
|
if (h === 0 || o(u[h - 1]))
|
|
@@ -463,8 +458,8 @@ function le() {
|
|
|
463
458
|
continue;
|
|
464
459
|
}
|
|
465
460
|
}
|
|
466
|
-
for (p = b; p < m && u[p] ===
|
|
467
|
-
d += 1,
|
|
461
|
+
for (p = b; p < m && u[p] === g; p += 1)
|
|
462
|
+
d += 1, g = l[d];
|
|
468
463
|
if (p -= 1, x.push([b, p]), d === l.length)
|
|
469
464
|
return $(x, u);
|
|
470
465
|
}
|
|
@@ -473,12 +468,12 @@ function le() {
|
|
|
473
468
|
function $(u, l) {
|
|
474
469
|
var m = 2;
|
|
475
470
|
return u.forEach(function(x) {
|
|
476
|
-
var d = x[0],
|
|
471
|
+
var d = x[0], g = x[1], b = g - d + 1, p = d === 0 || l[d] === " " || l[d - 1] === " ", h = g === l.length - 1 || l[g] === " " || l[g + 1] === " ", S = p && h;
|
|
477
472
|
S ? m += 0.2 : p ? m += 0.4 : b >= 3 ? m += 0.8 : m += 1.6;
|
|
478
473
|
}), [m, u];
|
|
479
474
|
}
|
|
480
|
-
function
|
|
481
|
-
var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u),
|
|
475
|
+
function y(u, l) {
|
|
476
|
+
var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u), g = new Set(d.split(" ")), b = f(u, d, g, l, m, x, "smart");
|
|
482
477
|
return b ? {
|
|
483
478
|
item: u,
|
|
484
479
|
score: b[0],
|
|
@@ -486,7 +481,7 @@ function le() {
|
|
|
486
481
|
} : null;
|
|
487
482
|
}
|
|
488
483
|
function w(u, l) {
|
|
489
|
-
var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText,
|
|
484
|
+
var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, g = u.map(function(b) {
|
|
490
485
|
var p;
|
|
491
486
|
if (d)
|
|
492
487
|
p = d(b);
|
|
@@ -502,7 +497,7 @@ function le() {
|
|
|
502
497
|
});
|
|
503
498
|
return function(b) {
|
|
504
499
|
var p = [], h = (0, e.default)(b), S = h.split(" ");
|
|
505
|
-
return h.length ? (
|
|
500
|
+
return h.length ? (g.forEach(function(z) {
|
|
506
501
|
for (var B = z[0], L = z[1], F = r, W = [], O = 0, ve = L.length; O < ve; O += 1) {
|
|
507
502
|
var j = L[O], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, b, h, S, x);
|
|
508
503
|
J ? (F = Math.min(F, J[0]), W.push(J[1])) : W.push(null);
|
|
@@ -512,27 +507,27 @@ function le() {
|
|
|
512
507
|
score: F,
|
|
513
508
|
matches: W
|
|
514
509
|
});
|
|
515
|
-
}), p.sort(
|
|
510
|
+
}), p.sort(s), p) : [];
|
|
516
511
|
};
|
|
517
512
|
}
|
|
518
513
|
return V;
|
|
519
514
|
}
|
|
520
515
|
var ie;
|
|
521
516
|
function Ie() {
|
|
522
|
-
return ie || (ie = 1, function(e) {
|
|
523
|
-
e.__esModule = !0, e.default =
|
|
517
|
+
return ie || (ie = 1, (function(e) {
|
|
518
|
+
e.__esModule = !0, e.default = s, e.fuzzyMatch = a;
|
|
524
519
|
var t = r(be());
|
|
525
520
|
e.normalizeText = t.default;
|
|
526
521
|
function r(n) {
|
|
527
522
|
return n && n.__esModule ? n : { default: n };
|
|
528
523
|
}
|
|
529
|
-
function
|
|
524
|
+
function s(n, o) {
|
|
530
525
|
return o === void 0 && (o = {}), le().createFuzzySearchImpl(n, o);
|
|
531
526
|
}
|
|
532
|
-
function
|
|
527
|
+
function a(n, o) {
|
|
533
528
|
return le().fuzzyMatchImpl(n, o);
|
|
534
529
|
}
|
|
535
|
-
}(Y)), Y;
|
|
530
|
+
})(Y)), Y;
|
|
536
531
|
}
|
|
537
532
|
var Xe = Ie();
|
|
538
533
|
const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */ M({
|
|
@@ -547,20 +542,20 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
547
542
|
H(() => {
|
|
548
543
|
r.value && typeof r.value == "object" && "then" in r.value && console.warn("Async component detected in TableColumn, this may cause issues with rendering.");
|
|
549
544
|
});
|
|
550
|
-
const
|
|
545
|
+
const s = (n, o) => o.render === void 0 ? {} : o.render(A(n, o.data), n).props, a = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? se(() => n) : typeof n == "function" ? se(n) : n);
|
|
551
546
|
return (n, o) => (c(), i("td", null, [
|
|
552
|
-
|
|
547
|
+
e.column.render ? e.row ? (c(), i(R, { key: 1 }, [
|
|
553
548
|
r.value ? (c(), i("div", Ke, [
|
|
554
549
|
typeof r.value == "string" ? (c(), i("div", He, [
|
|
555
550
|
v("div", { innerHTML: r.value }, null, 8, Ge)
|
|
556
551
|
])) : ye(r.value) ? (c(), i("div", je, [
|
|
557
552
|
(c(), q(ee(r.value)))
|
|
558
553
|
])) : (c(), i("div", Je, [
|
|
559
|
-
(c(), q(ee(
|
|
554
|
+
(c(), q(ee(a(r.value.component)), xe(_e(s(e.row, e.column))), null, 16))
|
|
560
555
|
]))
|
|
561
556
|
])) : E("", !0)
|
|
562
557
|
], 64)) : E("", !0) : (c(), i(R, { key: 0 }, [
|
|
563
|
-
te(X(K(A)(
|
|
558
|
+
te(X(K(A)(e.row, e.column.data)), 1)
|
|
564
559
|
], 64))
|
|
565
560
|
]));
|
|
566
561
|
}
|
|
@@ -581,92 +576,92 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
581
576
|
onRowClick: {}
|
|
582
577
|
},
|
|
583
578
|
setup(e) {
|
|
584
|
-
const t = C([]), r = C([]),
|
|
585
|
-
|
|
586
|
-
{ hover:
|
|
579
|
+
const t = C([]), r = C([]), s = C(null), a = e, n = C(D(
|
|
580
|
+
a.customRowClasses,
|
|
581
|
+
{ hover: a.onRowClick }
|
|
587
582
|
)), o = C(
|
|
588
|
-
D("table", Le.toClassName(
|
|
589
|
-
"table-zebra":
|
|
590
|
-
"table-pin-rows":
|
|
591
|
-
"table-pin-cols ":
|
|
583
|
+
D("table", Le.toClassName(a.size), {
|
|
584
|
+
"table-zebra": a.zebra,
|
|
585
|
+
"table-pin-rows": a.pinRows,
|
|
586
|
+
"table-pin-cols ": a.pinCols
|
|
592
587
|
})
|
|
593
|
-
), f = (
|
|
594
|
-
|
|
588
|
+
), f = (_, $) => {
|
|
589
|
+
a.onRowClick && a.onRowClick(_, $);
|
|
595
590
|
};
|
|
596
591
|
H(() => {
|
|
597
|
-
t.value =
|
|
592
|
+
t.value = a.dataSource, r.value = a.dataSource;
|
|
598
593
|
}), U(
|
|
599
|
-
() =>
|
|
600
|
-
(
|
|
601
|
-
t.value =
|
|
594
|
+
() => a.dataSource,
|
|
595
|
+
(_) => {
|
|
596
|
+
t.value = _, r.value = _;
|
|
602
597
|
},
|
|
603
598
|
{ immediate: !0 }
|
|
604
599
|
), U(
|
|
605
|
-
() =>
|
|
606
|
-
(
|
|
607
|
-
if (
|
|
608
|
-
r.value =
|
|
600
|
+
() => a.searchValue,
|
|
601
|
+
(_) => {
|
|
602
|
+
if (a.searchFunction) {
|
|
603
|
+
r.value = a.searchFunction(_ ?? "");
|
|
609
604
|
return;
|
|
610
605
|
}
|
|
611
|
-
r.value =
|
|
606
|
+
r.value = _ ? k(_) : t.value;
|
|
612
607
|
},
|
|
613
608
|
{ immediate: !0 }
|
|
614
609
|
);
|
|
615
|
-
const k = (
|
|
610
|
+
const k = (_) => {
|
|
616
611
|
const $ = [];
|
|
617
612
|
return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((w) => {
|
|
618
|
-
const u = t.value.map((x) => A(x, w)), m = Ue(u)(
|
|
613
|
+
const u = t.value.map((x) => A(x, w)), m = Ue(u)(_);
|
|
619
614
|
for (const x of m) {
|
|
620
|
-
const d = t.value.filter((
|
|
615
|
+
const d = t.value.filter((g) => A(g, w) === x.item);
|
|
621
616
|
$.push(...d);
|
|
622
617
|
}
|
|
623
618
|
}), $) : [];
|
|
624
619
|
};
|
|
625
|
-
return (
|
|
620
|
+
return (_, $) => (c(), i("table", {
|
|
626
621
|
ref_key: "table",
|
|
627
|
-
ref:
|
|
622
|
+
ref: s,
|
|
628
623
|
class: N(o.value)
|
|
629
624
|
}, [
|
|
630
|
-
|
|
625
|
+
e.horizontal ? E("", !0) : (c(), i("thead", Ze, [
|
|
631
626
|
v("tr", null, [
|
|
632
|
-
(c(!0), i(R, null, P(
|
|
633
|
-
key:
|
|
634
|
-
}, X(
|
|
627
|
+
(c(!0), i(R, null, P(a.columns, (y) => (c(), i("th", {
|
|
628
|
+
key: y.title
|
|
629
|
+
}, X(y.title), 1))), 128))
|
|
635
630
|
])
|
|
636
631
|
])),
|
|
637
|
-
|
|
632
|
+
e.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
|
|
638
633
|
r.value.length === 0 ? (c(), i("tr", Qe, [
|
|
639
634
|
v("td", {
|
|
640
|
-
colspan:
|
|
635
|
+
colspan: a.columns.length
|
|
641
636
|
}, "No data found", 8, et)
|
|
642
|
-
])) : (c(!0), i(R, { key: 1 }, P(r.value, (
|
|
637
|
+
])) : (c(!0), i(R, { key: 1 }, P(r.value, (y, w) => (c(), i("tr", {
|
|
643
638
|
class: N(n.value),
|
|
644
|
-
key: JSON.stringify(
|
|
645
|
-
onClick: (u) => f(
|
|
639
|
+
key: JSON.stringify(y),
|
|
640
|
+
onClick: (u) => f(y, w)
|
|
646
641
|
}, [
|
|
647
|
-
(c(!0), i(R, null, P(
|
|
642
|
+
(c(!0), i(R, null, P(a.columns, (u) => (c(), q(de, {
|
|
648
643
|
key: u.data,
|
|
649
644
|
column: u,
|
|
650
|
-
row:
|
|
645
|
+
row: y,
|
|
651
646
|
rowIndex: w
|
|
652
647
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
653
648
|
], 10, tt))), 128))
|
|
654
649
|
])),
|
|
655
|
-
|
|
656
|
-
(c(!0), i(R, null, P(
|
|
657
|
-
key:
|
|
650
|
+
e.horizontal ? (c(), i("tbody", nt, [
|
|
651
|
+
(c(!0), i(R, null, P(a.columns, (y) => (c(), i("tr", {
|
|
652
|
+
key: y.title
|
|
658
653
|
}, [
|
|
659
|
-
v("th", null, X(
|
|
654
|
+
v("th", null, X(y.title), 1),
|
|
660
655
|
(c(!0), i(R, null, P(r.value, (w, u) => (c(), q(de, {
|
|
661
656
|
key: u,
|
|
662
|
-
column:
|
|
657
|
+
column: y,
|
|
663
658
|
row: w,
|
|
664
659
|
rowIndex: u
|
|
665
660
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
666
661
|
]))), 128)),
|
|
667
662
|
r.value.length === 0 ? (c(), i("tr", rt, [
|
|
668
663
|
v("td", {
|
|
669
|
-
colspan:
|
|
664
|
+
colspan: a.columns.length + 1,
|
|
670
665
|
style: { "text-align": "center", padding: "1rem" }
|
|
671
666
|
}, " No data found ", 8, at)
|
|
672
667
|
])) : E("", !0)
|
|
@@ -680,16 +675,16 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
680
675
|
},
|
|
681
676
|
emits: ["update:value"],
|
|
682
677
|
setup(e, { expose: t, emit: r }) {
|
|
683
|
-
const
|
|
684
|
-
|
|
678
|
+
const s = e, a = C(s.value), n = r, o = (f) => {
|
|
679
|
+
a.value = f, n("update:value", f);
|
|
685
680
|
};
|
|
686
681
|
return we("stepper", {
|
|
687
|
-
value:
|
|
682
|
+
value: a,
|
|
688
683
|
updateValue: o
|
|
689
684
|
}), U(
|
|
690
|
-
() =>
|
|
685
|
+
() => s.value,
|
|
691
686
|
(f) => {
|
|
692
|
-
|
|
687
|
+
a.value = f;
|
|
693
688
|
}
|
|
694
689
|
), t({
|
|
695
690
|
updateValue: o
|
|
@@ -701,18 +696,18 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
701
696
|
value: {}
|
|
702
697
|
},
|
|
703
698
|
setup(e) {
|
|
704
|
-
const t = e, r = ne("stepper"),
|
|
699
|
+
const t = e, r = ne("stepper"), s = C("");
|
|
705
700
|
return U(
|
|
706
701
|
() => r?.value.value,
|
|
707
|
-
(
|
|
708
|
-
|
|
702
|
+
(a) => {
|
|
703
|
+
a && t.value && (s.value = Number(a) >= Number(t.value) ? "step-primary" : "");
|
|
709
704
|
}
|
|
710
705
|
), H(() => {
|
|
711
|
-
r && (
|
|
712
|
-
}), (
|
|
713
|
-
class: N(["step",
|
|
706
|
+
r && (s.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (s.value = "step-primary"));
|
|
707
|
+
}), (a, n) => (c(), i("li", {
|
|
708
|
+
class: N(["step", s.value])
|
|
714
709
|
}, [
|
|
715
|
-
T(
|
|
710
|
+
T(a.$slots, "default")
|
|
716
711
|
], 2));
|
|
717
712
|
}
|
|
718
713
|
}), st = {}, ot = { class: "steps" };
|
|
@@ -725,7 +720,7 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
725
720
|
__name: "StepPanels",
|
|
726
721
|
setup(e) {
|
|
727
722
|
const t = ne("stepper");
|
|
728
|
-
return (r,
|
|
723
|
+
return (r, s) => (c(), q(Se, {
|
|
729
724
|
name: "fade",
|
|
730
725
|
mode: "out-in"
|
|
731
726
|
}, {
|
|
@@ -745,13 +740,13 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
745
740
|
value: {}
|
|
746
741
|
},
|
|
747
742
|
setup(e, { expose: t }) {
|
|
748
|
-
const r = I(() =>
|
|
749
|
-
|
|
743
|
+
const r = I(() => s?.value.value), s = ne("stepper"), a = (n) => {
|
|
744
|
+
s && s.updateValue(n.toString());
|
|
750
745
|
};
|
|
751
746
|
return t({
|
|
752
|
-
activateCallback:
|
|
753
|
-
}), (n, o) =>
|
|
754
|
-
T(n.$slots, "default", { activateCallback:
|
|
747
|
+
activateCallback: a
|
|
748
|
+
}), (n, o) => e.value === r.value ? (c(), i("div", lt, [
|
|
749
|
+
T(n.$slots, "default", { activateCallback: a })
|
|
755
750
|
])) : E("", !0);
|
|
756
751
|
}
|
|
757
752
|
}), it = {
|
|
@@ -767,7 +762,7 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
767
762
|
},
|
|
768
763
|
emits: ["close"],
|
|
769
764
|
setup(e, { expose: t, emit: r }) {
|
|
770
|
-
const
|
|
765
|
+
const s = C(null), a = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
|
|
771
766
|
"overflow-visible": n.overflow
|
|
772
767
|
})), f = C(
|
|
773
768
|
D("modal")
|
|
@@ -784,29 +779,29 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
784
779
|
);
|
|
785
780
|
return t({
|
|
786
781
|
showModal: () => {
|
|
787
|
-
|
|
782
|
+
s.value?.showModal();
|
|
788
783
|
},
|
|
789
784
|
closeModal: () => {
|
|
790
|
-
|
|
785
|
+
s.value?.close();
|
|
791
786
|
}
|
|
792
|
-
}), (
|
|
787
|
+
}), (y, w) => (c(), i("dialog", {
|
|
793
788
|
ref_key: "modal",
|
|
794
|
-
ref:
|
|
795
|
-
class: N([f.value,
|
|
789
|
+
ref: s,
|
|
790
|
+
class: N([f.value, y.$attrs.class]),
|
|
796
791
|
"aria-modal": "true",
|
|
797
792
|
"aria-hidden": "true",
|
|
798
793
|
role: "dialog",
|
|
799
|
-
onClose: w[0] || (w[0] = (u) =>
|
|
794
|
+
onClose: w[0] || (w[0] = (u) => a("close", u))
|
|
800
795
|
}, [
|
|
801
796
|
v("div", {
|
|
802
797
|
class: N(o.value)
|
|
803
798
|
}, [
|
|
804
|
-
|
|
799
|
+
e.closeButton ? (c(), i("form", it, [
|
|
805
800
|
v("button", {
|
|
806
801
|
class: N(k.value)
|
|
807
802
|
}, "✕", 2)
|
|
808
803
|
])) : E("", !0),
|
|
809
|
-
T(
|
|
804
|
+
T(y.$slots, "default")
|
|
810
805
|
], 2),
|
|
811
806
|
w[1] || (w[1] = v("form", {
|
|
812
807
|
method: "dialog",
|
|
@@ -821,8 +816,8 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
821
816
|
props: ["modelValue"],
|
|
822
817
|
emits: ["update:modelValue"],
|
|
823
818
|
setup(e, { emit: t }) {
|
|
824
|
-
const r = e,
|
|
825
|
-
(o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(),
|
|
819
|
+
const r = e, s = C(null), a = t, n = (o) => {
|
|
820
|
+
(o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), s.value && s.value.focus());
|
|
826
821
|
};
|
|
827
822
|
return H(() => {
|
|
828
823
|
document.addEventListener("keydown", n);
|
|
@@ -848,11 +843,11 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
848
843
|
v("form", null, [
|
|
849
844
|
v("input", {
|
|
850
845
|
ref_key: "searchInput",
|
|
851
|
-
ref:
|
|
846
|
+
ref: s,
|
|
852
847
|
type: "search",
|
|
853
848
|
placeholder: "Zoeken...",
|
|
854
849
|
value: r.modelValue,
|
|
855
|
-
onInput: f[0] || (f[0] = (k) =>
|
|
850
|
+
onInput: f[0] || (f[0] = (k) => a("update:modelValue", k.target.value)),
|
|
856
851
|
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"
|
|
857
852
|
}, null, 40, bt)
|
|
858
853
|
])
|
|
@@ -877,37 +872,37 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
877
872
|
activeTab: { default: 0 }
|
|
878
873
|
},
|
|
879
874
|
setup(e, { expose: t }) {
|
|
880
|
-
const r = Math.random().toString(36).substring(2, 15),
|
|
875
|
+
const r = Math.random().toString(36).substring(2, 15), s = e, a = I(() => 100 / s.items.length), n = I(() => [
|
|
881
876
|
"tabs",
|
|
882
|
-
|
|
883
|
-
`${Re.toClassName(
|
|
877
|
+
s.placement === "top" ? "tabs-top" : "tabs-bottom",
|
|
878
|
+
`${Re.toClassName(s.size)}`,
|
|
884
879
|
{
|
|
885
|
-
"tabs-box":
|
|
886
|
-
"tabs-border":
|
|
887
|
-
"tabs-lift":
|
|
880
|
+
"tabs-box": s.box,
|
|
881
|
+
"tabs-border": s.border,
|
|
882
|
+
"tabs-lift": s.lift
|
|
888
883
|
}
|
|
889
|
-
]), o = C(
|
|
884
|
+
]), o = C(s.activeTab ?? 0), f = (k) => {
|
|
890
885
|
o.value = k;
|
|
891
886
|
};
|
|
892
|
-
return U(() =>
|
|
887
|
+
return U(() => s.activeTab, (k) => {
|
|
893
888
|
o.value = k;
|
|
894
889
|
}), t({
|
|
895
890
|
activeIndex: o,
|
|
896
891
|
setActiveTab: f
|
|
897
|
-
}), (k,
|
|
892
|
+
}), (k, _) => (c(), i("div", {
|
|
898
893
|
role: "tablist",
|
|
899
894
|
class: N(n.value)
|
|
900
895
|
}, [
|
|
901
|
-
(c(!0), i(R, null, P(
|
|
896
|
+
(c(!0), i(R, null, P(s.items, ($, y) => (c(), i(R, { key: y }, [
|
|
902
897
|
v("label", {
|
|
903
898
|
class: "tab",
|
|
904
|
-
style: Be(
|
|
899
|
+
style: Be(s.fullWidth ? { width: a.value + "%" } : {})
|
|
905
900
|
}, [
|
|
906
901
|
Ce(v("input", {
|
|
907
902
|
type: "radio",
|
|
908
903
|
name: K(r),
|
|
909
|
-
value:
|
|
910
|
-
"onUpdate:modelValue":
|
|
904
|
+
value: y,
|
|
905
|
+
"onUpdate:modelValue": _[0] || (_[0] = (w) => o.value = w)
|
|
911
906
|
}, null, 8, vt), [
|
|
912
907
|
[$e, o.value]
|
|
913
908
|
]),
|
|
@@ -1011,8 +1006,8 @@ export {
|
|
|
1011
1006
|
gt as Button,
|
|
1012
1007
|
ze as ButtonColorUtils,
|
|
1013
1008
|
Ne as ButtonSizeUtils,
|
|
1014
|
-
|
|
1015
|
-
|
|
1009
|
+
xt as Card,
|
|
1010
|
+
_t as CardBody,
|
|
1016
1011
|
wt as CardTitle,
|
|
1017
1012
|
re as Color,
|
|
1018
1013
|
St as Container,
|