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