dendelion-ui 0.0.22 → 0.0.24
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 +286 -282
- package/dist/dendelion-ui.umd.js +1 -1
- 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 +3 -2
- package/dist/types/components/stepper/Stepper.vue.d.ts +3 -2
- package/dist/types/components/table/Table.vue.d.ts +4 -3
- package/dist/types/components/table/TableColumn.vue.d.ts +4 -3
- package/dist/types/components/table/interface.d.ts +1 -0
- package/dist/types/components/tabs/Tabs.vue.d.ts +3 -2
- package/package.json +12 -12
- package/src/components/table/interface.ts +1 -1
package/dist/dendelion-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as M, computed as I, createElementBlock as i, openBlock as c, 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, createCommentVNode as E, Fragment as R, unref as K, isVNode as ye, normalizeProps as xe, guardReactiveProps 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) {
|
|
@@ -211,7 +211,7 @@ class Le {
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
class
|
|
214
|
+
class Re {
|
|
215
215
|
static toClassName(t) {
|
|
216
216
|
switch (t) {
|
|
217
217
|
case 0:
|
|
@@ -239,18 +239,18 @@ var Z = { exports: {} };
|
|
|
239
239
|
http://jedwatson.github.io/classnames
|
|
240
240
|
*/
|
|
241
241
|
var oe;
|
|
242
|
-
function
|
|
242
|
+
function Ee() {
|
|
243
243
|
return oe || (oe = 1, function(e) {
|
|
244
244
|
(function() {
|
|
245
245
|
var t = {}.hasOwnProperty;
|
|
246
246
|
function r() {
|
|
247
247
|
for (var n = "", o = 0; o < arguments.length; o++) {
|
|
248
248
|
var f = arguments[o];
|
|
249
|
-
f && (n =
|
|
249
|
+
f && (n = a(n, s(f)));
|
|
250
250
|
}
|
|
251
251
|
return n;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function s(n) {
|
|
254
254
|
if (typeof n == "string" || typeof n == "number")
|
|
255
255
|
return n;
|
|
256
256
|
if (typeof n != "object")
|
|
@@ -261,18 +261,18 @@ function Re() {
|
|
|
261
261
|
return n.toString();
|
|
262
262
|
var o = "";
|
|
263
263
|
for (var f in n)
|
|
264
|
-
t.call(n, f) && n[f] && (o =
|
|
264
|
+
t.call(n, f) && n[f] && (o = a(o, f));
|
|
265
265
|
return o;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function a(n, o) {
|
|
268
268
|
return o ? n ? n + " " + o : n + o : n;
|
|
269
269
|
}
|
|
270
270
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
271
271
|
})();
|
|
272
272
|
}(Z)), Z.exports;
|
|
273
273
|
}
|
|
274
|
-
var Fe =
|
|
275
|
-
const
|
|
274
|
+
var Fe = Ee();
|
|
275
|
+
const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ M({
|
|
276
276
|
__name: "Button",
|
|
277
277
|
props: {
|
|
278
278
|
type: { default: "button" },
|
|
@@ -285,7 +285,7 @@ const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
|
|
|
285
285
|
},
|
|
286
286
|
setup(e) {
|
|
287
287
|
const t = e, r = I(
|
|
288
|
-
() =>
|
|
288
|
+
() => D(
|
|
289
289
|
"btn",
|
|
290
290
|
"group",
|
|
291
291
|
ze.toClassName(t.color),
|
|
@@ -295,28 +295,28 @@ const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
|
|
|
295
295
|
t.disabled ? "disabled" : ""
|
|
296
296
|
)
|
|
297
297
|
);
|
|
298
|
-
return (
|
|
299
|
-
onClick:
|
|
298
|
+
return (s, a) => (c(), i("button", {
|
|
299
|
+
onClick: a[0] || (a[0] = (n) => e.click ? e.click : void 0),
|
|
300
300
|
class: N(r.value),
|
|
301
|
-
type:
|
|
302
|
-
disabled:
|
|
301
|
+
type: e.type,
|
|
302
|
+
disabled: e.disabled || e.loading
|
|
303
303
|
}, [
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
T(
|
|
304
|
+
a[1] || (a[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
|
|
305
|
+
v("span", Ve, [
|
|
306
|
+
T(s.$slots, "default")
|
|
307
307
|
])
|
|
308
308
|
], 10, We));
|
|
309
309
|
}
|
|
310
310
|
}), ae = (e, t) => {
|
|
311
311
|
const r = e.__vccOpts || e;
|
|
312
|
-
for (const [
|
|
313
|
-
r[
|
|
312
|
+
for (const [s, a] of t)
|
|
313
|
+
r[s] = a;
|
|
314
314
|
return r;
|
|
315
315
|
}, De = {};
|
|
316
316
|
function Oe(e, t) {
|
|
317
|
-
return
|
|
317
|
+
return c(), i("button");
|
|
318
318
|
}
|
|
319
|
-
const yt = /* @__PURE__ */ ae(De, [["render", Oe]]),
|
|
319
|
+
const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), xt = /* @__PURE__ */ M({
|
|
320
320
|
__name: "Card",
|
|
321
321
|
props: {
|
|
322
322
|
backgroundColor: { default: re.Primary },
|
|
@@ -326,8 +326,8 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ C({
|
|
|
326
326
|
roundedSize: {}
|
|
327
327
|
},
|
|
328
328
|
setup(e) {
|
|
329
|
-
const t = e, r =
|
|
330
|
-
|
|
329
|
+
const t = e, r = C(
|
|
330
|
+
D(
|
|
331
331
|
"card",
|
|
332
332
|
Me.toClassName(t.backgroundColor),
|
|
333
333
|
t.shadow ? "shadow-lg" : "",
|
|
@@ -335,184 +335,184 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ C({
|
|
|
335
335
|
t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Te.toClassName(t.roundedSize) : ""
|
|
336
336
|
)
|
|
337
337
|
);
|
|
338
|
-
return (
|
|
338
|
+
return (s, a) => (c(), i("div", {
|
|
339
339
|
class: N(r.value)
|
|
340
340
|
}, [
|
|
341
|
-
T(
|
|
341
|
+
T(s.$slots, "default")
|
|
342
342
|
], 2));
|
|
343
343
|
}
|
|
344
344
|
}), Pe = {}, Ae = { class: "card-body" };
|
|
345
345
|
function qe(e, t) {
|
|
346
|
-
return
|
|
346
|
+
return c(), i("div", Ae, [
|
|
347
347
|
T(e.$slots, "default")
|
|
348
348
|
]);
|
|
349
349
|
}
|
|
350
|
-
const
|
|
350
|
+
const _t = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
|
|
351
351
|
__name: "CardTitle",
|
|
352
352
|
props: {
|
|
353
353
|
is: { default: "h1" },
|
|
354
354
|
text: { default: "" }
|
|
355
355
|
},
|
|
356
356
|
setup(e) {
|
|
357
|
-
return (t, r) => (
|
|
357
|
+
return (t, r) => (c(), q(ee(e.is), { class: "card-title" }, {
|
|
358
358
|
default: fe(() => [
|
|
359
|
-
te(X(
|
|
359
|
+
te(X(e.text), 1)
|
|
360
360
|
]),
|
|
361
361
|
_: 1
|
|
362
362
|
}));
|
|
363
363
|
}
|
|
364
|
-
}), St = /* @__PURE__ */
|
|
364
|
+
}), St = /* @__PURE__ */ M({
|
|
365
365
|
__name: "Container",
|
|
366
366
|
props: {
|
|
367
367
|
container: { type: Boolean, default: !0 },
|
|
368
368
|
padding: { type: Boolean, default: !0 }
|
|
369
369
|
},
|
|
370
370
|
setup(e) {
|
|
371
|
-
const t = e, r =
|
|
371
|
+
const t = e, r = C([
|
|
372
372
|
t.container ? "container" : "",
|
|
373
373
|
//To disable the max width in some cases
|
|
374
374
|
t.padding ? "p-6" : ""
|
|
375
375
|
]);
|
|
376
|
-
return (
|
|
376
|
+
return (s, a) => (c(), i("div", {
|
|
377
377
|
class: N(r.value)
|
|
378
378
|
}, [
|
|
379
|
-
T(
|
|
379
|
+
T(s.$slots, "default")
|
|
380
380
|
], 2));
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
382
|
+
}), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, s) => r && (typeof r == "object" ? r[s] : r), e));
|
|
383
383
|
var Y = {}, Q = {}, ue;
|
|
384
384
|
function be() {
|
|
385
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(
|
|
386
|
+
e.__esModule = !0, e.default = a;
|
|
387
|
+
var t = /[\u0300-\u036f]/g, r = /ł/g, s = /ñ/g;
|
|
388
|
+
function a(n) {
|
|
389
|
+
return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(s, "n").trim();
|
|
390
390
|
}
|
|
391
391
|
}(Q)), Q;
|
|
392
392
|
}
|
|
393
393
|
var V = {}, ce;
|
|
394
394
|
function le() {
|
|
395
395
|
if (ce) return V;
|
|
396
|
-
ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch =
|
|
396
|
+
ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = _, V.fuzzyMatchImpl = y;
|
|
397
397
|
var e = t(be());
|
|
398
|
-
function t(
|
|
399
|
-
return
|
|
398
|
+
function t(u) {
|
|
399
|
+
return u && u.__esModule ? u : { default: u };
|
|
400
400
|
}
|
|
401
|
-
var r = Number.MAX_SAFE_INTEGER,
|
|
401
|
+
var r = Number.MAX_SAFE_INTEGER, s = function(l, m) {
|
|
402
402
|
return (
|
|
403
403
|
/*: number*/
|
|
404
|
-
|
|
404
|
+
l.score - m.score
|
|
405
405
|
);
|
|
406
|
-
},
|
|
406
|
+
}, a = function(l, m) {
|
|
407
407
|
return (
|
|
408
408
|
/*: number*/
|
|
409
|
-
|
|
409
|
+
l[0] - m[0]
|
|
410
410
|
);
|
|
411
411
|
}, n = new Set(` []()-–—'"“”`.split(""));
|
|
412
|
-
function o(
|
|
413
|
-
return n.has(
|
|
412
|
+
function o(u) {
|
|
413
|
+
return n.has(u);
|
|
414
414
|
}
|
|
415
|
-
function f(
|
|
416
|
-
if (
|
|
417
|
-
return [0, [[0,
|
|
418
|
-
var
|
|
419
|
-
if (
|
|
420
|
-
return [0.1, [[0,
|
|
421
|
-
if (
|
|
422
|
-
return [0.5, [[0,
|
|
423
|
-
var z =
|
|
424
|
-
if (z > -1 && o(
|
|
425
|
-
return [0.9, [[z, z +
|
|
426
|
-
var B =
|
|
427
|
-
if (B > -1 && o(
|
|
428
|
-
return [1, [[B, B +
|
|
429
|
-
var L =
|
|
430
|
-
if (L > 1 &&
|
|
431
|
-
return
|
|
415
|
+
function f(u, l, m, x, d, g, b) {
|
|
416
|
+
if (u === x)
|
|
417
|
+
return [0, [[0, u.length - 1]]];
|
|
418
|
+
var p = x.length, h = l.length, S = d.length;
|
|
419
|
+
if (l === d)
|
|
420
|
+
return [0.1, [[0, h - 1]]];
|
|
421
|
+
if (l.startsWith(d))
|
|
422
|
+
return [0.5, [[0, S - 1]]];
|
|
423
|
+
var z = u.indexOf(x);
|
|
424
|
+
if (z > -1 && o(u[z - 1]))
|
|
425
|
+
return [0.9, [[z, z + p - 1]]];
|
|
426
|
+
var B = l.indexOf(d);
|
|
427
|
+
if (B > -1 && o(l[B - 1]))
|
|
428
|
+
return [1, [[B, B + p - 1]]];
|
|
429
|
+
var L = g.length;
|
|
430
|
+
if (L > 1 && g.every(function(W) {
|
|
431
|
+
return m.has(W);
|
|
432
432
|
})) {
|
|
433
433
|
var F = 1.5 + L * 0.2;
|
|
434
|
-
return [F,
|
|
435
|
-
var
|
|
436
|
-
return [
|
|
437
|
-
}).sort(
|
|
434
|
+
return [F, g.map(function(W) {
|
|
435
|
+
var O = l.indexOf(W);
|
|
436
|
+
return [O, O + W.length - 1];
|
|
437
|
+
}).sort(a)];
|
|
438
438
|
}
|
|
439
|
-
return B > -1 ? [2, [[B, B +
|
|
439
|
+
return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? _(l, d) : null;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (var
|
|
443
|
-
if (
|
|
444
|
-
if (
|
|
445
|
-
return
|
|
446
|
-
|
|
441
|
+
function k(u, l) {
|
|
442
|
+
for (var m = u.length, x = l.length, d = 0, g = l[d], b = [], p = -1, h = -2, S = 0; S < m; S += 1)
|
|
443
|
+
if (u[S] === g) {
|
|
444
|
+
if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, d += 1, d === x)
|
|
445
|
+
return b.push([p, h]), $(b, u);
|
|
446
|
+
g = l[d];
|
|
447
447
|
}
|
|
448
448
|
return null;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
for (var
|
|
452
|
-
var
|
|
453
|
-
if (
|
|
450
|
+
function _(u, l) {
|
|
451
|
+
for (var m = u.length, x = [], d = 0, g = l[d], b = -1, p = -2; ; ) {
|
|
452
|
+
var h = u.indexOf(g, p + 1);
|
|
453
|
+
if (h === -1)
|
|
454
454
|
break;
|
|
455
|
-
if (
|
|
456
|
-
|
|
455
|
+
if (h === 0 || o(u[h - 1]))
|
|
456
|
+
b = h;
|
|
457
457
|
else {
|
|
458
|
-
var
|
|
459
|
-
if (
|
|
460
|
-
|
|
458
|
+
var S = l.length - d, z = u.length - h, B = Math.min(3, S, z), L = l.slice(d, d + B);
|
|
459
|
+
if (u.slice(h, h + B) === L)
|
|
460
|
+
b = h;
|
|
461
461
|
else {
|
|
462
|
-
|
|
462
|
+
p += 1;
|
|
463
463
|
continue;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
for (
|
|
467
|
-
d += 1,
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
466
|
+
for (p = b; p < m && u[p] === g; p += 1)
|
|
467
|
+
d += 1, g = l[d];
|
|
468
|
+
if (p -= 1, x.push([b, p]), d === l.length)
|
|
469
|
+
return $(x, u);
|
|
470
470
|
}
|
|
471
471
|
return null;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
var
|
|
475
|
-
return
|
|
476
|
-
var d =
|
|
477
|
-
|
|
478
|
-
}), [
|
|
473
|
+
function $(u, l) {
|
|
474
|
+
var m = 2;
|
|
475
|
+
return u.forEach(function(x) {
|
|
476
|
+
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
|
+
S ? m += 0.2 : p ? m += 0.4 : b >= 3 ? m += 0.8 : m += 1.6;
|
|
478
|
+
}), [m, u];
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
var
|
|
482
|
-
return
|
|
483
|
-
item:
|
|
484
|
-
score:
|
|
485
|
-
matches: [
|
|
480
|
+
function y(u, l) {
|
|
481
|
+
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
|
+
return b ? {
|
|
483
|
+
item: u,
|
|
484
|
+
score: b[0],
|
|
485
|
+
matches: [b[1]]
|
|
486
486
|
} : null;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
var
|
|
490
|
-
var
|
|
488
|
+
function w(u, l) {
|
|
489
|
+
var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, g = u.map(function(b) {
|
|
490
|
+
var p;
|
|
491
491
|
if (d)
|
|
492
|
-
|
|
492
|
+
p = d(b);
|
|
493
493
|
else {
|
|
494
|
-
var
|
|
495
|
-
|
|
494
|
+
var h = l.key ? b[l.key] : b;
|
|
495
|
+
p = [h];
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var S = p.map(function(z) {
|
|
498
498
|
var B = z || "", L = (0, e.default)(B), F = new Set(L.split(" "));
|
|
499
499
|
return [B, L, F];
|
|
500
500
|
});
|
|
501
|
-
return [
|
|
501
|
+
return [b, S];
|
|
502
502
|
});
|
|
503
|
-
return function(
|
|
504
|
-
var
|
|
505
|
-
return
|
|
506
|
-
for (var B = z[0], L = z[1], F = r, W = [],
|
|
507
|
-
var j = L[
|
|
503
|
+
return function(b) {
|
|
504
|
+
var p = [], h = (0, e.default)(b), S = h.split(" ");
|
|
505
|
+
return h.length ? (g.forEach(function(z) {
|
|
506
|
+
for (var B = z[0], L = z[1], F = r, W = [], O = 0, ve = L.length; O < ve; O += 1) {
|
|
507
|
+
var j = L[O], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, b, h, S, x);
|
|
508
508
|
J ? (F = Math.min(F, J[0]), W.push(J[1])) : W.push(null);
|
|
509
509
|
}
|
|
510
|
-
F < r &&
|
|
510
|
+
F < r && p.push({
|
|
511
511
|
item: B,
|
|
512
512
|
score: F,
|
|
513
513
|
matches: W
|
|
514
514
|
});
|
|
515
|
-
}),
|
|
515
|
+
}), p.sort(s), p) : [];
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
return V;
|
|
@@ -520,22 +520,22 @@ function le() {
|
|
|
520
520
|
var ie;
|
|
521
521
|
function Ie() {
|
|
522
522
|
return ie || (ie = 1, function(e) {
|
|
523
|
-
e.__esModule = !0, e.default =
|
|
523
|
+
e.__esModule = !0, e.default = s, e.fuzzyMatch = a;
|
|
524
524
|
var t = r(be());
|
|
525
525
|
e.normalizeText = t.default;
|
|
526
526
|
function r(n) {
|
|
527
527
|
return n && n.__esModule ? n : { default: n };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function s(n, o) {
|
|
530
530
|
return o === void 0 && (o = {}), le().createFuzzySearchImpl(n, o);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function a(n, o) {
|
|
533
533
|
return le().fuzzyMatchImpl(n, o);
|
|
534
534
|
}
|
|
535
535
|
}(Y)), Y;
|
|
536
536
|
}
|
|
537
537
|
var Xe = Ie();
|
|
538
|
-
const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */
|
|
538
|
+
const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */ M({
|
|
539
539
|
__name: "TableColumn",
|
|
540
540
|
props: {
|
|
541
541
|
column: {},
|
|
@@ -543,28 +543,28 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
543
543
|
rowIndex: {}
|
|
544
544
|
},
|
|
545
545
|
setup(e) {
|
|
546
|
-
const t = e, r = I(() => t.column.render ? t.column.render(
|
|
546
|
+
const t = e, r = I(() => t.column.render ? t.column.render(A(t.row, t.column.data), t.row) : A(t.row, t.column.data));
|
|
547
547
|
H(() => {
|
|
548
548
|
r.value && typeof r.value == "object" && "then" in r.value && console.warn("Async component detected in TableColumn, this may cause issues with rendering.");
|
|
549
549
|
});
|
|
550
|
-
const
|
|
551
|
-
return (n, o) => (
|
|
552
|
-
|
|
553
|
-
r.value ? (
|
|
554
|
-
typeof r.value == "string" ? (
|
|
555
|
-
|
|
556
|
-
])) : ye(r.value) ? (
|
|
557
|
-
(
|
|
558
|
-
])) : (
|
|
559
|
-
(
|
|
550
|
+
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
|
+
return (n, o) => (c(), i("td", null, [
|
|
552
|
+
e.column.render ? e.row ? (c(), i(R, { key: 1 }, [
|
|
553
|
+
r.value ? (c(), i("div", Ke, [
|
|
554
|
+
typeof r.value == "string" ? (c(), i("div", He, [
|
|
555
|
+
v("div", { innerHTML: r.value }, null, 8, Ge)
|
|
556
|
+
])) : ye(r.value) ? (c(), i("div", je, [
|
|
557
|
+
(c(), q(ee(r.value)))
|
|
558
|
+
])) : (c(), i("div", Je, [
|
|
559
|
+
(c(), q(ee(a(r.value.component)), xe(_e(s(e.row, e.column))), null, 16))
|
|
560
560
|
]))
|
|
561
|
-
])) :
|
|
562
|
-
], 64)) :
|
|
563
|
-
te(X(K(
|
|
561
|
+
])) : E("", !0)
|
|
562
|
+
], 64)) : E("", !0) : (c(), i(R, { key: 0 }, [
|
|
563
|
+
te(X(K(A)(e.row, e.column.data)), 1)
|
|
564
564
|
], 64))
|
|
565
565
|
]));
|
|
566
566
|
}
|
|
567
|
-
}), Ze = { key: 0 }, Ye = { key: 1 }, Qe = { key: 0 }, et = ["colspan"], tt = ["onClick"], nt = { key: 2 }, rt = { key: 0 }, at = ["colspan"], kt = /* @__PURE__ */
|
|
567
|
+
}), Ze = { key: 0 }, Ye = { key: 1 }, Qe = { key: 0 }, et = ["colspan"], tt = ["onClick"], nt = { key: 2 }, rt = { key: 0 }, at = ["colspan"], kt = /* @__PURE__ */ M({
|
|
568
568
|
__name: "Table",
|
|
569
569
|
props: {
|
|
570
570
|
zebra: { type: Boolean, default: !1 },
|
|
@@ -572,6 +572,7 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
572
572
|
pinCols: { type: Boolean, default: !1 },
|
|
573
573
|
horizontal: { type: Boolean, default: !1 },
|
|
574
574
|
size: { default: G.MD },
|
|
575
|
+
customRowClasses: { default: void 0 },
|
|
575
576
|
columns: {},
|
|
576
577
|
dataSource: {},
|
|
577
578
|
ajax: {},
|
|
@@ -580,180 +581,183 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
580
581
|
onRowClick: {}
|
|
581
582
|
},
|
|
582
583
|
setup(e) {
|
|
583
|
-
const t =
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
584
|
+
const t = C([]), r = C([]), s = C(null), a = e, n = C(D(
|
|
585
|
+
a.customRowClasses,
|
|
586
|
+
{ hover: a.onRowClick }
|
|
587
|
+
)), o = C(
|
|
588
|
+
D("table", Le.toClassName(a.size), {
|
|
589
|
+
"table-zebra": a.zebra,
|
|
590
|
+
"table-pin-rows": a.pinRows,
|
|
591
|
+
"table-pin-cols ": a.pinCols
|
|
588
592
|
})
|
|
589
|
-
),
|
|
590
|
-
|
|
593
|
+
), f = (_, $) => {
|
|
594
|
+
a.onRowClick && a.onRowClick(_, $);
|
|
591
595
|
};
|
|
592
596
|
H(() => {
|
|
593
|
-
t.value =
|
|
597
|
+
t.value = a.dataSource, r.value = a.dataSource;
|
|
594
598
|
}), U(
|
|
595
|
-
() =>
|
|
596
|
-
(
|
|
597
|
-
t.value =
|
|
599
|
+
() => a.dataSource,
|
|
600
|
+
(_) => {
|
|
601
|
+
t.value = _, r.value = _;
|
|
598
602
|
},
|
|
599
603
|
{ immediate: !0 }
|
|
600
604
|
), U(
|
|
601
|
-
() =>
|
|
602
|
-
(
|
|
603
|
-
if (
|
|
604
|
-
r.value =
|
|
605
|
+
() => a.searchValue,
|
|
606
|
+
(_) => {
|
|
607
|
+
if (a.searchFunction) {
|
|
608
|
+
r.value = a.searchFunction(_ ?? "");
|
|
605
609
|
return;
|
|
606
610
|
}
|
|
607
|
-
r.value =
|
|
611
|
+
r.value = _ ? k(_) : t.value;
|
|
608
612
|
},
|
|
609
613
|
{ immediate: !0 }
|
|
610
614
|
);
|
|
611
|
-
const
|
|
612
|
-
const
|
|
613
|
-
return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((
|
|
614
|
-
const
|
|
615
|
-
for (const
|
|
616
|
-
const
|
|
617
|
-
|
|
615
|
+
const k = (_) => {
|
|
616
|
+
const $ = [];
|
|
617
|
+
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)(_);
|
|
619
|
+
for (const x of m) {
|
|
620
|
+
const d = t.value.filter((g) => A(g, w) === x.item);
|
|
621
|
+
$.push(...d);
|
|
618
622
|
}
|
|
619
|
-
}),
|
|
623
|
+
}), $) : [];
|
|
620
624
|
};
|
|
621
|
-
return (
|
|
625
|
+
return (_, $) => (c(), i("table", {
|
|
622
626
|
ref_key: "table",
|
|
623
|
-
ref:
|
|
624
|
-
class: N(
|
|
627
|
+
ref: s,
|
|
628
|
+
class: N(o.value)
|
|
625
629
|
}, [
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
(
|
|
630
|
+
e.horizontal ? E("", !0) : (c(), i("thead", Ze, [
|
|
631
|
+
v("tr", null, [
|
|
632
|
+
(c(!0), i(R, null, P(a.columns, (y) => (c(), i("th", {
|
|
629
633
|
key: y.title
|
|
630
634
|
}, X(y.title), 1))), 128))
|
|
631
635
|
])
|
|
632
636
|
])),
|
|
633
|
-
|
|
634
|
-
r.value.length === 0 ? (
|
|
635
|
-
|
|
636
|
-
colspan:
|
|
637
|
+
e.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
|
|
638
|
+
r.value.length === 0 ? (c(), i("tr", Qe, [
|
|
639
|
+
v("td", {
|
|
640
|
+
colspan: a.columns.length
|
|
637
641
|
}, "No data found", 8, et)
|
|
638
|
-
])) : (
|
|
639
|
-
class: N(
|
|
642
|
+
])) : (c(!0), i(R, { key: 1 }, P(r.value, (y, w) => (c(), i("tr", {
|
|
643
|
+
class: N(n.value),
|
|
640
644
|
key: JSON.stringify(y),
|
|
641
|
-
onClick: (
|
|
645
|
+
onClick: (u) => f(y, w)
|
|
642
646
|
}, [
|
|
643
|
-
(
|
|
644
|
-
key:
|
|
645
|
-
column:
|
|
647
|
+
(c(!0), i(R, null, P(a.columns, (u) => (c(), q(de, {
|
|
648
|
+
key: u.data,
|
|
649
|
+
column: u,
|
|
646
650
|
row: y,
|
|
647
|
-
rowIndex:
|
|
651
|
+
rowIndex: w
|
|
648
652
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
649
653
|
], 10, tt))), 128))
|
|
650
654
|
])),
|
|
651
|
-
|
|
652
|
-
(
|
|
655
|
+
e.horizontal ? (c(), i("tbody", nt, [
|
|
656
|
+
(c(!0), i(R, null, P(a.columns, (y) => (c(), i("tr", {
|
|
653
657
|
key: y.title
|
|
654
658
|
}, [
|
|
655
|
-
|
|
656
|
-
(
|
|
657
|
-
key:
|
|
659
|
+
v("th", null, X(y.title), 1),
|
|
660
|
+
(c(!0), i(R, null, P(r.value, (w, u) => (c(), q(de, {
|
|
661
|
+
key: u,
|
|
658
662
|
column: y,
|
|
659
|
-
row:
|
|
660
|
-
rowIndex:
|
|
663
|
+
row: w,
|
|
664
|
+
rowIndex: u
|
|
661
665
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
662
666
|
]))), 128)),
|
|
663
|
-
r.value.length === 0 ? (
|
|
664
|
-
|
|
665
|
-
colspan:
|
|
667
|
+
r.value.length === 0 ? (c(), i("tr", rt, [
|
|
668
|
+
v("td", {
|
|
669
|
+
colspan: a.columns.length + 1,
|
|
666
670
|
style: { "text-align": "center", padding: "1rem" }
|
|
667
671
|
}, " No data found ", 8, at)
|
|
668
|
-
])) :
|
|
669
|
-
])) :
|
|
672
|
+
])) : E("", !0)
|
|
673
|
+
])) : E("", !0)
|
|
670
674
|
], 2));
|
|
671
675
|
}
|
|
672
|
-
}), Bt = /* @__PURE__ */
|
|
676
|
+
}), Bt = /* @__PURE__ */ M({
|
|
673
677
|
__name: "Stepper",
|
|
674
678
|
props: {
|
|
675
679
|
value: {}
|
|
676
680
|
},
|
|
677
681
|
emits: ["update:value"],
|
|
678
682
|
setup(e, { expose: t, emit: r }) {
|
|
679
|
-
const
|
|
680
|
-
|
|
683
|
+
const s = e, a = C(s.value), n = r, o = (f) => {
|
|
684
|
+
a.value = f, n("update:value", f);
|
|
681
685
|
};
|
|
682
686
|
return we("stepper", {
|
|
683
|
-
value:
|
|
687
|
+
value: a,
|
|
684
688
|
updateValue: o
|
|
685
689
|
}), U(
|
|
686
|
-
() =>
|
|
690
|
+
() => s.value,
|
|
687
691
|
(f) => {
|
|
688
|
-
|
|
692
|
+
a.value = f;
|
|
689
693
|
}
|
|
690
694
|
), t({
|
|
691
695
|
updateValue: o
|
|
692
|
-
}), (f,
|
|
696
|
+
}), (f, k) => T(f.$slots, "default", { updateValue: o });
|
|
693
697
|
}
|
|
694
|
-
}),
|
|
698
|
+
}), Ct = /* @__PURE__ */ M({
|
|
695
699
|
__name: "Step",
|
|
696
700
|
props: {
|
|
697
701
|
value: {}
|
|
698
702
|
},
|
|
699
703
|
setup(e) {
|
|
700
|
-
const t = e, r = ne("stepper"),
|
|
704
|
+
const t = e, r = ne("stepper"), s = C("");
|
|
701
705
|
return U(
|
|
702
706
|
() => r?.value.value,
|
|
703
|
-
(
|
|
704
|
-
|
|
707
|
+
(a) => {
|
|
708
|
+
a && t.value && (s.value = Number(a) >= Number(t.value) ? "step-primary" : "");
|
|
705
709
|
}
|
|
706
710
|
), H(() => {
|
|
707
|
-
r && (
|
|
708
|
-
}), (
|
|
709
|
-
class: N(["step",
|
|
711
|
+
r && (s.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (s.value = "step-primary"));
|
|
712
|
+
}), (a, n) => (c(), i("li", {
|
|
713
|
+
class: N(["step", s.value])
|
|
710
714
|
}, [
|
|
711
|
-
T(
|
|
715
|
+
T(a.$slots, "default")
|
|
712
716
|
], 2));
|
|
713
717
|
}
|
|
714
718
|
}), st = {}, ot = { class: "steps" };
|
|
715
719
|
function ut(e, t) {
|
|
716
|
-
return
|
|
720
|
+
return c(), i("ul", ot, [
|
|
717
721
|
T(e.$slots, "default")
|
|
718
722
|
]);
|
|
719
723
|
}
|
|
720
|
-
const
|
|
724
|
+
const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @__PURE__ */ M({
|
|
721
725
|
__name: "StepPanels",
|
|
722
726
|
setup(e) {
|
|
723
727
|
const t = ne("stepper");
|
|
724
|
-
return (r,
|
|
728
|
+
return (r, s) => (c(), q(Se, {
|
|
725
729
|
name: "fade",
|
|
726
730
|
mode: "out-in"
|
|
727
731
|
}, {
|
|
728
732
|
default: fe(() => [
|
|
729
|
-
K(t)?.value ? (
|
|
733
|
+
K(t)?.value ? (c(), i("div", ct, [
|
|
730
734
|
T(r.$slots, "default", {
|
|
731
735
|
currentStep: K(t)?.value
|
|
732
736
|
})
|
|
733
|
-
])) :
|
|
737
|
+
])) : E("", !0)
|
|
734
738
|
]),
|
|
735
739
|
_: 3
|
|
736
740
|
}));
|
|
737
741
|
}
|
|
738
|
-
}), lt = { key: 0 }, zt = /* @__PURE__ */
|
|
742
|
+
}), lt = { key: 0 }, zt = /* @__PURE__ */ M({
|
|
739
743
|
__name: "StepPanel",
|
|
740
744
|
props: {
|
|
741
745
|
value: {}
|
|
742
746
|
},
|
|
743
747
|
setup(e, { expose: t }) {
|
|
744
|
-
const r = I(() =>
|
|
745
|
-
|
|
748
|
+
const r = I(() => s?.value.value), s = ne("stepper"), a = (n) => {
|
|
749
|
+
s && s.updateValue(n.toString());
|
|
746
750
|
};
|
|
747
751
|
return t({
|
|
748
|
-
activateCallback:
|
|
749
|
-
}), (n, o) =>
|
|
750
|
-
T(n.$slots, "default", { activateCallback:
|
|
751
|
-
])) :
|
|
752
|
+
activateCallback: a
|
|
753
|
+
}), (n, o) => e.value === r.value ? (c(), i("div", lt, [
|
|
754
|
+
T(n.$slots, "default", { activateCallback: a })
|
|
755
|
+
])) : E("", !0);
|
|
752
756
|
}
|
|
753
757
|
}), it = {
|
|
754
758
|
key: 0,
|
|
755
759
|
method: "dialog"
|
|
756
|
-
}, Nt = /* @__PURE__ */
|
|
760
|
+
}, Nt = /* @__PURE__ */ M({
|
|
757
761
|
__name: "Modal",
|
|
758
762
|
props: {
|
|
759
763
|
closeButton: { type: Boolean, default: !0 },
|
|
@@ -763,12 +767,12 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
763
767
|
},
|
|
764
768
|
emits: ["close"],
|
|
765
769
|
setup(e, { expose: t, emit: r }) {
|
|
766
|
-
const
|
|
770
|
+
const s = C(null), a = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
|
|
767
771
|
"overflow-visible": n.overflow
|
|
768
|
-
})), f =
|
|
769
|
-
|
|
770
|
-
),
|
|
771
|
-
|
|
772
|
+
})), f = C(
|
|
773
|
+
D("modal")
|
|
774
|
+
), k = C(
|
|
775
|
+
D(
|
|
772
776
|
"btn",
|
|
773
777
|
Ne.toClassName(n.closeButtonSize),
|
|
774
778
|
"btn-circle",
|
|
@@ -780,53 +784,53 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
780
784
|
);
|
|
781
785
|
return t({
|
|
782
786
|
showModal: () => {
|
|
783
|
-
|
|
787
|
+
s.value?.showModal();
|
|
784
788
|
},
|
|
785
789
|
closeModal: () => {
|
|
786
|
-
|
|
790
|
+
s.value?.close();
|
|
787
791
|
}
|
|
788
|
-
}), (
|
|
792
|
+
}), (y, w) => (c(), i("dialog", {
|
|
789
793
|
ref_key: "modal",
|
|
790
|
-
ref:
|
|
791
|
-
class: N([f.value,
|
|
794
|
+
ref: s,
|
|
795
|
+
class: N([f.value, y.$attrs.class]),
|
|
792
796
|
"aria-modal": "true",
|
|
793
797
|
"aria-hidden": "true",
|
|
794
798
|
role: "dialog",
|
|
795
|
-
onClose:
|
|
799
|
+
onClose: w[0] || (w[0] = (u) => a("close", u))
|
|
796
800
|
}, [
|
|
797
|
-
|
|
801
|
+
v("div", {
|
|
798
802
|
class: N(o.value)
|
|
799
803
|
}, [
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
class: N(
|
|
804
|
+
e.closeButton ? (c(), i("form", it, [
|
|
805
|
+
v("button", {
|
|
806
|
+
class: N(k.value)
|
|
803
807
|
}, "✕", 2)
|
|
804
|
-
])) :
|
|
805
|
-
T(
|
|
808
|
+
])) : E("", !0),
|
|
809
|
+
T(y.$slots, "default")
|
|
806
810
|
], 2),
|
|
807
|
-
|
|
811
|
+
w[1] || (w[1] = v("form", {
|
|
808
812
|
method: "dialog",
|
|
809
813
|
class: "modal-backdrop"
|
|
810
814
|
}, [
|
|
811
|
-
|
|
815
|
+
v("button", null, "close")
|
|
812
816
|
], -1))
|
|
813
817
|
], 34));
|
|
814
818
|
}
|
|
815
|
-
}), dt = { class: "hidden w-full max-w-sm lg:flex" }, ft = { class: "relative mx-3 w-full" }, pt = { class: "relative w-full max-w-full" }, bt = ["value"], Tt = /* @__PURE__ */
|
|
819
|
+
}), dt = { class: "hidden w-full max-w-sm lg:flex" }, ft = { class: "relative mx-3 w-full" }, pt = { class: "relative w-full max-w-full" }, bt = ["value"], Tt = /* @__PURE__ */ M({
|
|
816
820
|
__name: "SearchBar",
|
|
817
821
|
props: ["modelValue"],
|
|
818
822
|
emits: ["update:modelValue"],
|
|
819
823
|
setup(e, { emit: t }) {
|
|
820
|
-
const r = e,
|
|
821
|
-
(o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(),
|
|
824
|
+
const r = e, s = C(null), a = t, n = (o) => {
|
|
825
|
+
(o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), s.value && s.value.focus());
|
|
822
826
|
};
|
|
823
827
|
return H(() => {
|
|
824
828
|
document.addEventListener("keydown", n);
|
|
825
829
|
}), ke(() => {
|
|
826
830
|
document.removeEventListener("keydown", n);
|
|
827
|
-
}), (o, f) => (
|
|
828
|
-
|
|
829
|
-
f[1] || (f[1] =
|
|
831
|
+
}), (o, f) => (c(), i("div", dt, [
|
|
832
|
+
v("label", ft, [
|
|
833
|
+
f[1] || (f[1] = v("svg", {
|
|
830
834
|
class: "pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60",
|
|
831
835
|
"aria-hidden": "true",
|
|
832
836
|
width: "16",
|
|
@@ -834,33 +838,33 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
834
838
|
viewBox: "0.48 0.48 23.04 23.04",
|
|
835
839
|
fill: "currentColor"
|
|
836
840
|
}, [
|
|
837
|
-
|
|
841
|
+
v("path", {
|
|
838
842
|
fill: "none",
|
|
839
843
|
d: "M0 0h24v24H0z"
|
|
840
844
|
}),
|
|
841
|
-
|
|
845
|
+
v("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" })
|
|
842
846
|
], -1)),
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
847
|
+
v("div", pt, [
|
|
848
|
+
v("form", null, [
|
|
849
|
+
v("input", {
|
|
846
850
|
ref_key: "searchInput",
|
|
847
|
-
ref:
|
|
851
|
+
ref: s,
|
|
848
852
|
type: "search",
|
|
849
853
|
placeholder: "Zoeken...",
|
|
850
854
|
value: r.modelValue,
|
|
851
|
-
onInput: f[0] || (f[0] = (
|
|
855
|
+
onInput: f[0] || (f[0] = (k) => a("update:modelValue", k.target.value)),
|
|
852
856
|
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"
|
|
853
857
|
}, null, 40, bt)
|
|
854
858
|
])
|
|
855
859
|
]),
|
|
856
|
-
f[2] || (f[2] =
|
|
857
|
-
|
|
858
|
-
|
|
860
|
+
f[2] || (f[2] = v("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
|
|
861
|
+
v("kbd", { class: "kbd kbd-sm" }, "ctrl"),
|
|
862
|
+
v("kbd", { class: "kbd kbd-sm" }, "K")
|
|
859
863
|
], -1))
|
|
860
864
|
])
|
|
861
865
|
]));
|
|
862
866
|
}
|
|
863
|
-
}), vt = ["name", "value"], Lt = /* @__PURE__ */
|
|
867
|
+
}), vt = ["name", "value"], Lt = /* @__PURE__ */ M({
|
|
864
868
|
__name: "Tabs",
|
|
865
869
|
props: {
|
|
866
870
|
box: { type: Boolean, default: !1 },
|
|
@@ -873,51 +877,51 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
873
877
|
activeTab: { default: 0 }
|
|
874
878
|
},
|
|
875
879
|
setup(e, { expose: t }) {
|
|
876
|
-
const r = Math.random().toString(36).substring(2, 15),
|
|
880
|
+
const r = Math.random().toString(36).substring(2, 15), s = e, a = I(() => 100 / s.items.length), n = I(() => [
|
|
877
881
|
"tabs",
|
|
878
|
-
|
|
879
|
-
`${
|
|
882
|
+
s.placement === "top" ? "tabs-top" : "tabs-bottom",
|
|
883
|
+
`${Re.toClassName(s.size)}`,
|
|
880
884
|
{
|
|
881
|
-
"tabs-box":
|
|
882
|
-
"tabs-border":
|
|
883
|
-
"tabs-lift":
|
|
885
|
+
"tabs-box": s.box,
|
|
886
|
+
"tabs-border": s.border,
|
|
887
|
+
"tabs-lift": s.lift
|
|
884
888
|
}
|
|
885
|
-
]), o =
|
|
886
|
-
o.value =
|
|
889
|
+
]), o = C(s.activeTab ?? 0), f = (k) => {
|
|
890
|
+
o.value = k;
|
|
887
891
|
};
|
|
888
|
-
return U(() =>
|
|
889
|
-
o.value =
|
|
892
|
+
return U(() => s.activeTab, (k) => {
|
|
893
|
+
o.value = k;
|
|
890
894
|
}), t({
|
|
891
895
|
activeIndex: o,
|
|
892
896
|
setActiveTab: f
|
|
893
|
-
}), (
|
|
897
|
+
}), (k, _) => (c(), i("div", {
|
|
894
898
|
role: "tablist",
|
|
895
899
|
class: N(n.value)
|
|
896
900
|
}, [
|
|
897
|
-
(
|
|
898
|
-
|
|
901
|
+
(c(!0), i(R, null, P(s.items, ($, y) => (c(), i(R, { key: y }, [
|
|
902
|
+
v("label", {
|
|
899
903
|
class: "tab",
|
|
900
|
-
style: Be(
|
|
904
|
+
style: Be(s.fullWidth ? { width: a.value + "%" } : {})
|
|
901
905
|
}, [
|
|
902
|
-
|
|
906
|
+
Ce(v("input", {
|
|
903
907
|
type: "radio",
|
|
904
908
|
name: K(r),
|
|
905
|
-
value:
|
|
906
|
-
"onUpdate:modelValue":
|
|
909
|
+
value: y,
|
|
910
|
+
"onUpdate:modelValue": _[0] || (_[0] = (w) => o.value = w)
|
|
907
911
|
}, null, 8, vt), [
|
|
908
|
-
[
|
|
912
|
+
[$e, o.value]
|
|
909
913
|
]),
|
|
910
|
-
te(" " + X(
|
|
914
|
+
te(" " + X($.label), 1)
|
|
911
915
|
], 4),
|
|
912
|
-
|
|
913
|
-
class: N(["tab-content p-6",
|
|
916
|
+
v("div", {
|
|
917
|
+
class: N(["tab-content p-6", $.disabled ? "tab-disabled" : ""])
|
|
914
918
|
}, [
|
|
915
|
-
T(
|
|
919
|
+
T(k.$slots, $.slot)
|
|
916
920
|
], 2)
|
|
917
921
|
], 64))), 128))
|
|
918
922
|
], 2));
|
|
919
923
|
}
|
|
920
|
-
}),
|
|
924
|
+
}), Rt = [
|
|
921
925
|
"bg-primary",
|
|
922
926
|
"bg-primary-content",
|
|
923
927
|
"bg-secondary",
|
|
@@ -1007,8 +1011,8 @@ export {
|
|
|
1007
1011
|
gt as Button,
|
|
1008
1012
|
ze as ButtonColorUtils,
|
|
1009
1013
|
Ne as ButtonSizeUtils,
|
|
1010
|
-
|
|
1011
|
-
|
|
1014
|
+
xt as Card,
|
|
1015
|
+
_t as CardBody,
|
|
1012
1016
|
wt as CardTitle,
|
|
1013
1017
|
re as Color,
|
|
1014
1018
|
St as Container,
|
|
@@ -1017,16 +1021,16 @@ export {
|
|
|
1017
1021
|
Tt as SearchBar,
|
|
1018
1022
|
yt as SimpleButton,
|
|
1019
1023
|
G as Size,
|
|
1020
|
-
|
|
1021
|
-
|
|
1024
|
+
Ct as Step,
|
|
1025
|
+
$t as StepList,
|
|
1022
1026
|
zt as StepPanel,
|
|
1023
1027
|
Mt as StepPanels,
|
|
1024
1028
|
Bt as Stepper,
|
|
1025
1029
|
kt as Table,
|
|
1026
1030
|
Le as TableSizeUtils,
|
|
1027
1031
|
Lt as Tabs,
|
|
1028
|
-
|
|
1032
|
+
Re as TabsSizeUtils,
|
|
1029
1033
|
ht as TextColorUtils,
|
|
1030
|
-
|
|
1031
|
-
|
|
1034
|
+
Rt as dendelionSafeList,
|
|
1035
|
+
A as getValue
|
|
1032
1036
|
};
|