dendelion-ui 0.0.21 → 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 +419 -342
- package/dist/dendelion-ui.umd.js +2 -2
- 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 +7 -2
- package/src/components/table/TableColumn.vue +1 -5
- package/src/components/table/interface.ts +2 -0
- 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 C, computed 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 Be {
|
|
|
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 $e {
|
|
|
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 ft {
|
|
|
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 Me {
|
|
|
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 Ne {
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
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
|
+
}
|
|
214
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
248
|
var f = arguments[o];
|
|
231
|
-
f && (n =
|
|
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")
|
|
@@ -243,65 +261,65 @@ function ze() {
|
|
|
243
261
|
return n.toString();
|
|
244
262
|
var o = "";
|
|
245
263
|
for (var f in n)
|
|
246
|
-
t.call(n, f) && n[f] && (o =
|
|
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
|
-
|
|
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
|
|
315
|
+
}, De = {};
|
|
316
|
+
function Oe(e, t) {
|
|
299
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 },
|
|
@@ -309,41 +327,41 @@ const bt = /* @__PURE__ */ re(Re, [["render", Fe]]), vt = /* @__PURE__ */ C({
|
|
|
309
327
|
},
|
|
310
328
|
setup(e) {
|
|
311
329
|
const t = e, r = $(
|
|
312
|
-
|
|
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
|
-
|
|
341
|
+
T(a.$slots, "default")
|
|
324
342
|
], 2));
|
|
325
343
|
}
|
|
326
|
-
}),
|
|
327
|
-
function
|
|
328
|
-
return u(), i("div",
|
|
329
|
-
|
|
344
|
+
}), Pe = {}, Ae = { class: "card-body" };
|
|
345
|
+
function qe(e, t) {
|
|
346
|
+
return u(), i("div", Ae, [
|
|
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) => (u(),
|
|
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 },
|
|
@@ -355,169 +373,169 @@ const ht = /* @__PURE__ */ re(We, [["render", Ve]]), mt = /* @__PURE__ */ C({
|
|
|
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
|
-
|
|
379
|
+
T(a.$slots, "default")
|
|
362
380
|
], 2));
|
|
363
381
|
}
|
|
364
|
-
}), P = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r,
|
|
365
|
-
var
|
|
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;
|
|
366
384
|
function be() {
|
|
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(
|
|
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
|
-
|
|
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;
|
|
379
397
|
var e = t(be());
|
|
380
398
|
function t(l) {
|
|
381
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
|
-
c.score -
|
|
404
|
+
c.score - v.score
|
|
387
405
|
);
|
|
388
|
-
},
|
|
406
|
+
}, s = function(c, v) {
|
|
389
407
|
return (
|
|
390
408
|
/*: number*/
|
|
391
|
-
c[0] -
|
|
409
|
+
c[0] - v[0]
|
|
392
410
|
);
|
|
393
411
|
}, n = new Set(` []()-–—'"“”`.split(""));
|
|
394
412
|
function o(l) {
|
|
395
413
|
return n.has(l);
|
|
396
414
|
}
|
|
397
|
-
function f(l, c,
|
|
398
|
-
if (l ===
|
|
415
|
+
function f(l, c, v, w, d, _, m) {
|
|
416
|
+
if (l === w)
|
|
399
417
|
return [0, [[0, l.length - 1]]];
|
|
400
|
-
var
|
|
418
|
+
var b = w.length, g = c.length, k = d.length;
|
|
401
419
|
if (c === d)
|
|
402
|
-
return [0.1, [[0,
|
|
420
|
+
return [0.1, [[0, g - 1]]];
|
|
403
421
|
if (c.startsWith(d))
|
|
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
|
|
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 (l[
|
|
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 (l.slice(
|
|
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
|
-
d += 1,
|
|
450
|
-
if (
|
|
451
|
-
return w
|
|
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 l.forEach(function(
|
|
458
|
-
var d =
|
|
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
|
|
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 ? {
|
|
465
483
|
item: l,
|
|
466
|
-
score:
|
|
467
|
-
matches: [
|
|
484
|
+
score: m[0],
|
|
485
|
+
matches: [m[1]]
|
|
468
486
|
} : null;
|
|
469
487
|
}
|
|
470
|
-
function
|
|
471
|
-
var
|
|
472
|
-
var
|
|
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;
|
|
473
491
|
if (d)
|
|
474
|
-
|
|
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 =
|
|
520
|
+
var ie;
|
|
521
|
+
function Ie() {
|
|
522
|
+
return ie || (ie = 1, function(e) {
|
|
523
|
+
e.__esModule = !0, e.default = a, e.fuzzyMatch = s;
|
|
506
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);
|
|
516
531
|
}
|
|
517
|
-
|
|
532
|
+
function s(n, o) {
|
|
533
|
+
return le().fuzzyMatchImpl(n, o);
|
|
534
|
+
}
|
|
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,35 +543,35 @@ const Ae = /* @__PURE__ */ pe(De), qe = { key: 0 }, Ie = { key: 0 }, Xe = ["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
|
|
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);
|
|
533
551
|
return (n, o) => (u(), i("td", null, [
|
|
534
|
-
n.column.render ? n.row ? (u(), i(
|
|
535
|
-
r.value ? (u(), i("div",
|
|
536
|
-
typeof r.value == "string" ? (u(), i("div",
|
|
537
|
-
|
|
538
|
-
])) : ye(r.value) ? (u(), i("div",
|
|
539
|
-
(u(),
|
|
540
|
-
])) : (u(), i("div",
|
|
541
|
-
(u(),
|
|
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 },
|
|
556
|
-
size: { default:
|
|
574
|
+
size: { default: G.MD },
|
|
557
575
|
columns: {},
|
|
558
576
|
dataSource: {},
|
|
559
577
|
ajax: {},
|
|
@@ -562,197 +580,197 @@ const Ae = /* @__PURE__ */ pe(De), qe = { key: 0 }, Ie = { key: 0 }, Xe = ["inne
|
|
|
562
580
|
onRowClick: {}
|
|
563
581
|
},
|
|
564
582
|
setup(e) {
|
|
565
|
-
const t = $([]), r = $([]),
|
|
566
|
-
|
|
567
|
-
"table-zebra":
|
|
568
|
-
"table-pin-rows":
|
|
569
|
-
"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
|
|
570
588
|
})
|
|
571
|
-
), o = (
|
|
572
|
-
|
|
589
|
+
), o = (p, M) => {
|
|
590
|
+
s.onRowClick && s.onRowClick(p, M);
|
|
573
591
|
};
|
|
574
|
-
|
|
575
|
-
t.value =
|
|
576
|
-
}),
|
|
577
|
-
() =>
|
|
578
|
-
(
|
|
579
|
-
|
|
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;
|
|
580
598
|
},
|
|
581
599
|
{ immediate: !0 }
|
|
582
|
-
),
|
|
583
|
-
() =>
|
|
584
|
-
(
|
|
585
|
-
if (
|
|
586
|
-
r.value =
|
|
600
|
+
), U(
|
|
601
|
+
() => s.searchValue,
|
|
602
|
+
(p) => {
|
|
603
|
+
if (s.searchFunction) {
|
|
604
|
+
r.value = s.searchFunction(p ?? "");
|
|
587
605
|
return;
|
|
588
606
|
}
|
|
589
|
-
r.value =
|
|
607
|
+
r.value = p ? f(p) : t.value;
|
|
590
608
|
},
|
|
591
609
|
{ immediate: !0 }
|
|
592
610
|
);
|
|
593
|
-
const f = (
|
|
594
|
-
const
|
|
595
|
-
return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((
|
|
596
|
-
const
|
|
597
|
-
for (const
|
|
598
|
-
const
|
|
599
|
-
|
|
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);
|
|
600
618
|
}
|
|
601
|
-
}),
|
|
619
|
+
}), M) : [];
|
|
602
620
|
};
|
|
603
|
-
return (
|
|
621
|
+
return (p, M) => (u(), i("table", {
|
|
604
622
|
ref_key: "table",
|
|
605
|
-
ref:
|
|
606
|
-
class:
|
|
623
|
+
ref: a,
|
|
624
|
+
class: N(n.value)
|
|
607
625
|
}, [
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
(u(!0), i(
|
|
611
|
-
key:
|
|
612
|
-
},
|
|
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))
|
|
613
631
|
])
|
|
614
632
|
])),
|
|
615
|
-
|
|
616
|
-
r.value.length === 0 ? (u(), i("tr",
|
|
617
|
-
|
|
618
|
-
colspan:
|
|
619
|
-
}, "No data found", 8,
|
|
620
|
-
])) : (u(!0), i(
|
|
621
|
-
class:
|
|
622
|
-
key: JSON.stringify(
|
|
623
|
-
onClick: (
|
|
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)
|
|
624
642
|
}, [
|
|
625
|
-
(u(!0), i(
|
|
626
|
-
key:
|
|
627
|
-
column:
|
|
628
|
-
row:
|
|
629
|
-
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
|
|
630
648
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
631
|
-
], 10,
|
|
649
|
+
], 10, tt))), 128))
|
|
632
650
|
])),
|
|
633
|
-
|
|
634
|
-
(u(!0), i(
|
|
635
|
-
key:
|
|
651
|
+
p.horizontal ? (u(), i("tbody", nt, [
|
|
652
|
+
(u(!0), i(E, null, O(s.columns, (y) => (u(), i("tr", {
|
|
653
|
+
key: y.title
|
|
636
654
|
}, [
|
|
637
|
-
|
|
638
|
-
(u(!0), i(
|
|
639
|
-
key:
|
|
640
|
-
column:
|
|
641
|
-
row:
|
|
642
|
-
rowIndex:
|
|
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
|
|
643
661
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
644
662
|
]))), 128)),
|
|
645
|
-
r.value.length === 0 ? (u(), i("tr",
|
|
646
|
-
|
|
647
|
-
colspan:
|
|
663
|
+
r.value.length === 0 ? (u(), i("tr", rt, [
|
|
664
|
+
h("td", {
|
|
665
|
+
colspan: s.columns.length + 1,
|
|
648
666
|
style: { "text-align": "center", padding: "1rem" }
|
|
649
|
-
}, " No data found ", 8,
|
|
650
|
-
])) :
|
|
651
|
-
])) :
|
|
667
|
+
}, " No data found ", 8, at)
|
|
668
|
+
])) : R("", !0)
|
|
669
|
+
])) : R("", !0)
|
|
652
670
|
], 2));
|
|
653
671
|
}
|
|
654
|
-
}),
|
|
672
|
+
}), Bt = /* @__PURE__ */ C({
|
|
655
673
|
__name: "Stepper",
|
|
656
674
|
props: {
|
|
657
675
|
value: {}
|
|
658
676
|
},
|
|
659
677
|
emits: ["update:value"],
|
|
660
678
|
setup(e, { expose: t, emit: r }) {
|
|
661
|
-
const
|
|
662
|
-
|
|
679
|
+
const a = e, s = $(a.value), n = r, o = (f) => {
|
|
680
|
+
s.value = f, n("update:value", f);
|
|
663
681
|
};
|
|
664
682
|
return we("stepper", {
|
|
665
|
-
value:
|
|
683
|
+
value: s,
|
|
666
684
|
updateValue: o
|
|
667
|
-
}),
|
|
668
|
-
() =>
|
|
685
|
+
}), U(
|
|
686
|
+
() => a.value,
|
|
669
687
|
(f) => {
|
|
670
|
-
|
|
688
|
+
s.value = f;
|
|
671
689
|
}
|
|
672
690
|
), t({
|
|
673
691
|
updateValue: o
|
|
674
|
-
}), (f,
|
|
692
|
+
}), (f, p) => T(f.$slots, "default", { updateValue: o });
|
|
675
693
|
}
|
|
676
|
-
}),
|
|
694
|
+
}), $t = /* @__PURE__ */ C({
|
|
677
695
|
__name: "Step",
|
|
678
696
|
props: {
|
|
679
697
|
value: {}
|
|
680
698
|
},
|
|
681
699
|
setup(e) {
|
|
682
|
-
const t = e, r =
|
|
683
|
-
return
|
|
700
|
+
const t = e, r = ne("stepper"), a = $("");
|
|
701
|
+
return U(
|
|
684
702
|
() => r?.value.value,
|
|
685
|
-
(
|
|
686
|
-
|
|
703
|
+
(s) => {
|
|
704
|
+
s && t.value && (a.value = Number(s) >= Number(t.value) ? "step-primary" : "");
|
|
687
705
|
}
|
|
688
|
-
),
|
|
689
|
-
r && (
|
|
690
|
-
}), (
|
|
691
|
-
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])
|
|
692
710
|
}, [
|
|
693
|
-
|
|
711
|
+
T(s.$slots, "default")
|
|
694
712
|
], 2));
|
|
695
713
|
}
|
|
696
|
-
}),
|
|
697
|
-
function
|
|
698
|
-
return u(), i("ul",
|
|
699
|
-
|
|
714
|
+
}), st = {}, ot = { class: "steps" };
|
|
715
|
+
function ut(e, t) {
|
|
716
|
+
return u(), i("ul", ot, [
|
|
717
|
+
T(e.$slots, "default")
|
|
700
718
|
]);
|
|
701
719
|
}
|
|
702
|
-
const
|
|
720
|
+
const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @__PURE__ */ C({
|
|
703
721
|
__name: "StepPanels",
|
|
704
722
|
setup(e) {
|
|
705
|
-
const t =
|
|
706
|
-
return (r,
|
|
723
|
+
const t = ne("stepper");
|
|
724
|
+
return (r, a) => (u(), q(Se, {
|
|
707
725
|
name: "fade",
|
|
708
726
|
mode: "out-in"
|
|
709
727
|
}, {
|
|
710
|
-
default:
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
currentStep:
|
|
728
|
+
default: fe(() => [
|
|
729
|
+
K(t)?.value ? (u(), i("div", ct, [
|
|
730
|
+
T(r.$slots, "default", {
|
|
731
|
+
currentStep: K(t)?.value
|
|
714
732
|
})
|
|
715
|
-
])) :
|
|
733
|
+
])) : R("", !0)
|
|
716
734
|
]),
|
|
717
735
|
_: 3
|
|
718
736
|
}));
|
|
719
737
|
}
|
|
720
|
-
}),
|
|
738
|
+
}), lt = { key: 0 }, zt = /* @__PURE__ */ C({
|
|
721
739
|
__name: "StepPanel",
|
|
722
740
|
props: {
|
|
723
741
|
value: {}
|
|
724
742
|
},
|
|
725
743
|
setup(e, { expose: t }) {
|
|
726
|
-
const r =
|
|
727
|
-
|
|
744
|
+
const r = I(() => a?.value.value), a = ne("stepper"), s = (n) => {
|
|
745
|
+
a && a.updateValue(n.toString());
|
|
728
746
|
};
|
|
729
747
|
return t({
|
|
730
|
-
activateCallback:
|
|
731
|
-
}), (n, o) => n.value === r.value ? (u(), i("div",
|
|
732
|
-
|
|
733
|
-
])) :
|
|
748
|
+
activateCallback: s
|
|
749
|
+
}), (n, o) => n.value === r.value ? (u(), i("div", lt, [
|
|
750
|
+
T(n.$slots, "default", { activateCallback: s })
|
|
751
|
+
])) : R("", !0);
|
|
734
752
|
}
|
|
735
|
-
}),
|
|
753
|
+
}), it = {
|
|
736
754
|
key: 0,
|
|
737
755
|
method: "dialog"
|
|
738
|
-
},
|
|
756
|
+
}, Nt = /* @__PURE__ */ C({
|
|
739
757
|
__name: "Modal",
|
|
740
758
|
props: {
|
|
741
759
|
closeButton: { type: Boolean, default: !0 },
|
|
742
760
|
overflow: { type: Boolean, default: !1 },
|
|
743
|
-
closeButtonSize: { default:
|
|
761
|
+
closeButtonSize: { default: G.SM },
|
|
744
762
|
extraBoxClasses: {}
|
|
745
763
|
},
|
|
746
764
|
emits: ["close"],
|
|
747
765
|
setup(e, { expose: t, emit: r }) {
|
|
748
|
-
const
|
|
766
|
+
const a = $(null), s = r, n = e, o = $(A("modal-box", n.extraBoxClasses, {
|
|
749
767
|
"overflow-visible": n.overflow
|
|
750
768
|
})), f = $(
|
|
751
|
-
|
|
752
|
-
),
|
|
753
|
-
|
|
769
|
+
A("modal")
|
|
770
|
+
), p = $(
|
|
771
|
+
A(
|
|
754
772
|
"btn",
|
|
755
|
-
|
|
773
|
+
Ne.toClassName(n.closeButtonSize),
|
|
756
774
|
"btn-circle",
|
|
757
775
|
"btn-ghost",
|
|
758
776
|
"absolute",
|
|
@@ -762,53 +780,53 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
|
|
|
762
780
|
);
|
|
763
781
|
return t({
|
|
764
782
|
showModal: () => {
|
|
765
|
-
|
|
783
|
+
a.value?.showModal();
|
|
766
784
|
},
|
|
767
785
|
closeModal: () => {
|
|
768
|
-
|
|
786
|
+
a.value?.close();
|
|
769
787
|
}
|
|
770
|
-
}), (
|
|
788
|
+
}), (S, x) => (u(), i("dialog", {
|
|
771
789
|
ref_key: "modal",
|
|
772
|
-
ref:
|
|
773
|
-
class:
|
|
790
|
+
ref: a,
|
|
791
|
+
class: N([f.value, S.$attrs.class]),
|
|
774
792
|
"aria-modal": "true",
|
|
775
793
|
"aria-hidden": "true",
|
|
776
794
|
role: "dialog",
|
|
777
|
-
onClose:
|
|
795
|
+
onClose: x[0] || (x[0] = (l) => s("close", l))
|
|
778
796
|
}, [
|
|
779
|
-
|
|
780
|
-
class:
|
|
797
|
+
h("div", {
|
|
798
|
+
class: N(o.value)
|
|
781
799
|
}, [
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
class:
|
|
800
|
+
S.closeButton ? (u(), i("form", it, [
|
|
801
|
+
h("button", {
|
|
802
|
+
class: N(p.value)
|
|
785
803
|
}, "✕", 2)
|
|
786
|
-
])) :
|
|
787
|
-
|
|
804
|
+
])) : R("", !0),
|
|
805
|
+
T(S.$slots, "default")
|
|
788
806
|
], 2),
|
|
789
|
-
|
|
807
|
+
x[1] || (x[1] = h("form", {
|
|
790
808
|
method: "dialog",
|
|
791
809
|
class: "modal-backdrop"
|
|
792
810
|
}, [
|
|
793
|
-
|
|
811
|
+
h("button", null, "close")
|
|
794
812
|
], -1))
|
|
795
813
|
], 34));
|
|
796
814
|
}
|
|
797
|
-
}),
|
|
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({
|
|
798
816
|
__name: "SearchBar",
|
|
799
817
|
props: ["modelValue"],
|
|
800
818
|
emits: ["update:modelValue"],
|
|
801
819
|
setup(e, { emit: t }) {
|
|
802
|
-
const r = e,
|
|
803
|
-
(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());
|
|
804
822
|
};
|
|
805
|
-
return
|
|
823
|
+
return H(() => {
|
|
806
824
|
document.addEventListener("keydown", n);
|
|
807
|
-
}),
|
|
825
|
+
}), ke(() => {
|
|
808
826
|
document.removeEventListener("keydown", n);
|
|
809
|
-
}), (o, f) => (u(), i("div",
|
|
810
|
-
|
|
811
|
-
f[1] || (f[1] =
|
|
827
|
+
}), (o, f) => (u(), i("div", dt, [
|
|
828
|
+
h("label", ft, [
|
|
829
|
+
f[1] || (f[1] = h("svg", {
|
|
812
830
|
class: "pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60",
|
|
813
831
|
"aria-hidden": "true",
|
|
814
832
|
width: "16",
|
|
@@ -816,33 +834,90 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
|
|
|
816
834
|
viewBox: "0.48 0.48 23.04 23.04",
|
|
817
835
|
fill: "currentColor"
|
|
818
836
|
}, [
|
|
819
|
-
|
|
837
|
+
h("path", {
|
|
820
838
|
fill: "none",
|
|
821
839
|
d: "M0 0h24v24H0z"
|
|
822
840
|
}),
|
|
823
|
-
|
|
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" })
|
|
824
842
|
], -1)),
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
843
|
+
h("div", pt, [
|
|
844
|
+
h("form", null, [
|
|
845
|
+
h("input", {
|
|
828
846
|
ref_key: "searchInput",
|
|
829
|
-
ref:
|
|
847
|
+
ref: a,
|
|
830
848
|
type: "search",
|
|
831
849
|
placeholder: "Zoeken...",
|
|
832
850
|
value: r.modelValue,
|
|
833
|
-
onInput: f[0] || (f[0] = (
|
|
851
|
+
onInput: f[0] || (f[0] = (p) => s("update:modelValue", p.target.value)),
|
|
834
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"
|
|
835
|
-
}, null, 40,
|
|
853
|
+
}, null, 40, bt)
|
|
836
854
|
])
|
|
837
855
|
]),
|
|
838
|
-
f[2] || (f[2] =
|
|
839
|
-
|
|
840
|
-
|
|
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")
|
|
841
859
|
], -1))
|
|
842
860
|
])
|
|
843
861
|
]));
|
|
844
862
|
}
|
|
845
|
-
}),
|
|
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 = [
|
|
846
921
|
"bg-primary",
|
|
847
922
|
"bg-primary-content",
|
|
848
923
|
"bg-secondary",
|
|
@@ -928,28 +1003,30 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
|
|
|
928
1003
|
"block"
|
|
929
1004
|
];
|
|
930
1005
|
export {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
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,
|
|
954
1031
|
P as getValue
|
|
955
1032
|
};
|