@skewedaspect/sleekspace-ui 0.9.1 → 0.10.0
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/components/Accordion/context.d.ts +4 -0
- package/dist/components/Autocomplete/SkAutocomplete.vue.d.ts +87 -0
- package/dist/components/Autocomplete/SkAutocompleteEmpty.vue.d.ts +17 -0
- package/dist/components/Autocomplete/SkAutocompleteGroup.vue.d.ts +17 -0
- package/dist/components/Autocomplete/SkAutocompleteGroupLabel.vue.d.ts +17 -0
- package/dist/components/Autocomplete/SkAutocompleteItem.vue.d.ts +39 -0
- package/dist/components/Autocomplete/SkAutocompleteSeparator.vue.d.ts +2 -0
- package/dist/components/Autocomplete/index.d.ts +7 -0
- package/dist/components/Autocomplete/types.d.ts +3 -0
- package/dist/components/Breadcrumbs/context.d.ts +4 -0
- package/dist/components/Button/SkButton.vue.d.ts +8 -1
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Card/SkCard.vue.d.ts +1 -1
- package/dist/components/ContextMenu/context.d.ts +3 -0
- package/dist/components/Dropdown/SkDropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown/context.d.ts +3 -0
- package/dist/components/Field/SkField.vue.d.ts +7 -6
- package/dist/components/Input/SkInput.vue.d.ts +9 -2
- package/dist/components/Input/types.d.ts +2 -0
- package/dist/components/InputGroup/SkInputGroup.vue.d.ts +23 -0
- package/dist/components/InputGroup/SkInputGroupAddon.vue.d.ts +33 -0
- package/dist/components/InputGroup/types.d.ts +13 -0
- package/dist/components/NumberInput/SkNumberInput.vue.d.ts +7 -1
- package/dist/components/NumberInput/types.d.ts +2 -0
- package/dist/components/Pagination/context.d.ts +5 -0
- package/dist/components/Panel/SkPanel.vue.d.ts +1 -1
- package/dist/components/Panel/types.d.ts +2 -1
- package/dist/components/Radio/context.d.ts +4 -0
- package/dist/components/Select/SkSelect.vue.d.ts +7 -1
- package/dist/components/Select/types.d.ts +2 -0
- package/dist/components/Sidebar/SkSidebar.vue.d.ts +1 -1
- package/dist/components/Tabs/context.d.ts +6 -0
- package/dist/components/Textarea/SkTextarea.vue.d.ts +1 -1
- package/dist/components/Tooltip/SkTooltip.vue.d.ts +1 -1
- package/dist/composables/injectionKeys.d.ts +9 -0
- package/dist/global.d.ts +4 -0
- package/dist/index.d.ts +18 -0
- package/dist/sleekspace-ui.css +831 -277
- package/dist/sleekspace-ui.es.js +3693 -2514
- package/dist/sleekspace-ui.umd.js +3700 -2513
- package/dist/static/components/alert.d.ts +2 -1
- package/dist/static/components/avatar.d.ts +2 -1
- package/dist/static/components/breadcrumbs.d.ts +2 -1
- package/dist/static/components/button.d.ts +4 -2
- package/dist/static/components/card.d.ts +2 -1
- package/dist/static/components/checkbox.d.ts +2 -1
- package/dist/static/components/colorPicker.d.ts +2 -1
- package/dist/static/components/divider.d.ts +2 -1
- package/dist/static/components/dropdown.d.ts +2 -1
- package/dist/static/components/field.d.ts +2 -1
- package/dist/static/components/group.d.ts +2 -1
- package/dist/static/components/input.d.ts +4 -2
- package/dist/static/components/inputGroup.d.ts +8 -0
- package/dist/static/components/inputGroupAddon.d.ts +7 -0
- package/dist/static/components/navBar.d.ts +2 -1
- package/dist/static/components/numberInput.d.ts +4 -2
- package/dist/static/components/page.d.ts +2 -1
- package/dist/static/components/pagination.d.ts +2 -1
- package/dist/static/components/panel.d.ts +2 -1
- package/dist/static/components/progress.d.ts +2 -1
- package/dist/static/components/radio.d.ts +2 -1
- package/dist/static/components/select.d.ts +4 -2
- package/dist/static/components/sidebar.d.ts +2 -1
- package/dist/static/components/skeleton.d.ts +2 -1
- package/dist/static/components/slider.d.ts +2 -1
- package/dist/static/components/spinner.d.ts +2 -1
- package/dist/static/components/switchInput.d.ts +2 -1
- package/dist/static/components/table.d.ts +2 -1
- package/dist/static/components/tag.d.ts +2 -1
- package/dist/static/components/tagsInput.d.ts +2 -1
- package/dist/static/components/textarea.d.ts +2 -1
- package/dist/static/components/toolbar.d.ts +2 -1
- package/dist/static/components/tooltip.d.ts +2 -1
- package/dist/static/h.d.ts +2 -0
- package/dist/static/index.cjs.js +1 -1
- package/dist/static/index.d.ts +6 -0
- package/dist/static/index.es.js +366 -216
- package/dist/static/render.d.ts +2 -1
- package/dist/static/stringH.d.ts +2 -0
- package/dist/static/types.d.ts +5 -0
- package/dist/tailwind.css +222 -0
- package/dist/tokens.css +0 -223
- package/dist/types/corners.d.ts +1 -0
- package/llms-full.txt +14 -9
- package/package.json +6 -3
- package/src/components/Accordion/SkAccordion.vue +5 -2
- package/src/components/Accordion/SkAccordionItem.vue +7 -4
- package/src/components/Accordion/context.ts +23 -0
- package/src/components/Autocomplete/SkAutocomplete.test.ts +83 -0
- package/src/components/Autocomplete/SkAutocomplete.vue +305 -0
- package/src/components/Autocomplete/SkAutocompleteEmpty.vue +39 -0
- package/src/components/Autocomplete/SkAutocompleteGroup.vue +46 -0
- package/src/components/Autocomplete/SkAutocompleteGroupLabel.vue +39 -0
- package/src/components/Autocomplete/SkAutocompleteItem.vue +85 -0
- package/src/components/Autocomplete/SkAutocompleteSeparator.vue +39 -0
- package/src/components/Autocomplete/index.ts +13 -0
- package/src/components/Autocomplete/types.ts +10 -0
- package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +8 -3
- package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +8 -2
- package/src/components/Breadcrumbs/SkBreadcrumbs.vue +5 -2
- package/src/components/Breadcrumbs/context.ts +20 -0
- package/src/components/Button/SkButton.vue +46 -6
- package/src/components/Button/types.ts +6 -0
- package/src/components/ColorPicker/SkColorPicker.vue +27 -5
- package/src/components/ContextMenu/SkContextMenu.vue +4 -1
- package/src/components/ContextMenu/SkContextMenuSubmenu.vue +5 -2
- package/src/components/ContextMenu/context.ts +17 -0
- package/src/components/Dropdown/SkDropdown.vue +2 -1
- package/src/components/Dropdown/SkDropdownSubmenu.vue +4 -3
- package/src/components/Dropdown/context.ts +16 -0
- package/src/components/Field/SkField.test.ts +88 -0
- package/src/components/Field/SkField.vue +15 -7
- package/src/components/Input/SkInput.test.ts +61 -0
- package/src/components/Input/SkInput.vue +42 -7
- package/src/components/Input/types.ts +2 -0
- package/src/components/InputGroup/SkInputGroup.test.ts +171 -0
- package/src/components/InputGroup/SkInputGroup.vue +131 -0
- package/src/components/InputGroup/SkInputGroupAddon.test.ts +104 -0
- package/src/components/InputGroup/SkInputGroupAddon.vue +107 -0
- package/src/components/InputGroup/types.ts +27 -0
- package/src/components/Listbox/SkListbox.vue +27 -6
- package/src/components/NumberInput/SkNumberInput.vue +39 -7
- package/src/components/NumberInput/types.ts +2 -0
- package/src/components/Pagination/SkPagination.vue +6 -3
- package/src/components/Pagination/SkPaginationItem.vue +8 -5
- package/src/components/Pagination/context.ts +19 -0
- package/src/components/Panel/types.ts +3 -2
- package/src/components/Radio/SkRadio.vue +6 -3
- package/src/components/Radio/SkRadioGroup.vue +4 -2
- package/src/components/Radio/context.ts +17 -0
- package/src/components/Select/SkSelect.vue +39 -7
- package/src/components/Select/types.ts +2 -0
- package/src/components/Tabs/SkTab.vue +4 -2
- package/src/components/Tabs/SkTabList.vue +4 -2
- package/src/components/Tabs/SkTabs.vue +5 -3
- package/src/components/Tabs/context.ts +19 -0
- package/src/components/TagsInput/SkTagsInput.vue +28 -7
- package/src/components/Textarea/SkTextarea.vue +27 -6
- package/src/composables/injectionKeys.ts +52 -0
- package/src/index.ts +28 -0
- package/src/static/__tests__/parity.test.ts +2 -1
- package/src/static/__tests__/parityHarness.ts +5 -2
- package/src/static/components/__tests__/helpers.test.ts +191 -99
- package/src/static/components/alert.ts +12 -11
- package/src/static/components/avatar.ts +15 -16
- package/src/static/components/breadcrumbs.ts +3 -2
- package/src/static/components/button.ts +23 -27
- package/src/static/components/card.ts +3 -2
- package/src/static/components/checkbox.ts +11 -14
- package/src/static/components/colorPicker.ts +7 -9
- package/src/static/components/divider.ts +4 -3
- package/src/static/components/dropdown.ts +15 -6
- package/src/static/components/field.ts +32 -15
- package/src/static/components/group.ts +3 -2
- package/src/static/components/input.ts +20 -15
- package/src/static/components/inputGroup.ts +30 -0
- package/src/static/components/inputGroupAddon.ts +29 -0
- package/src/static/components/navBar.ts +30 -17
- package/src/static/components/numberInput.ts +17 -17
- package/src/static/components/page.ts +3 -2
- package/src/static/components/pagination.ts +3 -2
- package/src/static/components/panel.ts +3 -2
- package/src/static/components/progress.ts +3 -2
- package/src/static/components/radio.ts +14 -20
- package/src/static/components/select.ts +18 -15
- package/src/static/components/sidebar.ts +9 -13
- package/src/static/components/skeleton.ts +7 -10
- package/src/static/components/slider.ts +7 -9
- package/src/static/components/spinner.ts +22 -22
- package/src/static/components/switchInput.ts +12 -14
- package/src/static/components/table.ts +8 -10
- package/src/static/components/tag.ts +17 -11
- package/src/static/components/tagsInput.ts +3 -3
- package/src/static/components/textarea.ts +8 -13
- package/src/static/components/toolbar.ts +7 -10
- package/src/static/components/tooltip.ts +3 -2
- package/src/static/generated/defaults.ts +24 -9
- package/src/static/generated/propTypes.ts +18 -2
- package/src/static/h.ts +16 -0
- package/src/static/index.ts +8 -0
- package/src/static/render.test.ts +14 -10
- package/src/static/render.ts +33 -18
- package/src/static/specs.test.ts +1 -0
- package/src/static/specs.ts +22 -2
- package/src/static/stringH.ts +104 -0
- package/src/static/types.ts +25 -0
- package/src/styles/components/_autocomplete.scss +498 -0
- package/src/styles/components/_button.scss +55 -6
- package/src/styles/components/_index.scss +2 -0
- package/src/styles/components/_input-group.scss +292 -0
- package/src/styles/components/_input.scss +57 -9
- package/src/styles/components/_number-input.scss +84 -18
- package/src/styles/components/_select.scss +56 -9
- package/src/styles/mixins/_cut-border.scss +83 -0
- package/src/styles/tailwind.scss +262 -0
- package/src/styles/tokens.scss +8 -255
- package/src/types/corners.ts +10 -0
- package/src/utils/slots.test.ts +89 -0
- package/src/utils/slots.ts +6 -1
- package/web-types.json +382 -12
package/dist/static/index.es.js
CHANGED
|
@@ -25,21 +25,59 @@ function r(e, t) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/static/render.ts
|
|
28
|
-
function i(
|
|
29
|
-
let
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
r && typeof n.baseColor == "string" && o.push(`${r}: ${e(n.baseColor)};`), i && typeof n.textColor == "string" && o.push(`${i}: ${e(n.textColor)};`);
|
|
28
|
+
function i(e, t) {
|
|
29
|
+
let n = { class: r(e.classSpec, t) };
|
|
30
|
+
if (e.tag === "button" && (n.type = "button"), e.extraAttrs) for (let [t, r] of Object.entries(e.extraAttrs)) n[t] = r;
|
|
31
|
+
if (e.customColorVars) {
|
|
32
|
+
let r = [], { base: i, text: a } = e.customColorVars;
|
|
33
|
+
i && typeof t.baseColor == "string" && r.push(`${i}: ${t.baseColor};`), a && typeof t.textColor == "string" && r.push(`${a}: ${t.textColor};`), r.length > 0 && (n.style = r.join(" "));
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
return n;
|
|
36
|
+
}
|
|
37
|
+
function a(e, t, n, r) {
|
|
38
|
+
let a = i(t, n);
|
|
39
|
+
return t.void ? e(t.tag, a) : e(t.tag, a, r);
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/static/stringH.ts
|
|
43
|
+
var o = new Set([
|
|
44
|
+
"area",
|
|
45
|
+
"base",
|
|
46
|
+
"br",
|
|
47
|
+
"col",
|
|
48
|
+
"embed",
|
|
49
|
+
"hr",
|
|
50
|
+
"img",
|
|
51
|
+
"input",
|
|
52
|
+
"keygen",
|
|
53
|
+
"link",
|
|
54
|
+
"meta",
|
|
55
|
+
"param",
|
|
56
|
+
"progress",
|
|
57
|
+
"source",
|
|
58
|
+
"track",
|
|
59
|
+
"wbr"
|
|
60
|
+
]);
|
|
61
|
+
function s(t, n) {
|
|
62
|
+
return n == null || n === !1 ? null : n === !0 ? t : `${t}="${e(String(n))}"`;
|
|
63
|
+
}
|
|
64
|
+
function c(e) {
|
|
65
|
+
if (!e) return "";
|
|
66
|
+
let t = [];
|
|
67
|
+
for (let [n, r] of Object.entries(e)) {
|
|
68
|
+
let e = s(n, r);
|
|
69
|
+
e !== null && t.push(e);
|
|
70
|
+
}
|
|
71
|
+
return t.length > 0 ? ` ${t.join(" ")}` : "";
|
|
39
72
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
73
|
+
var l = (e, t, n) => {
|
|
74
|
+
if (t && typeof t.innerHTML == "string") {
|
|
75
|
+
let n = t.innerHTML, r = { ...t };
|
|
76
|
+
return delete r.innerHTML, `<${e}${c(r)}>${n}</${e}>`;
|
|
77
|
+
}
|
|
78
|
+
let r = c(t), i = n === void 0 || n === "" || Array.isArray(n) && n.length === 0;
|
|
79
|
+
return o.has(e) && i ? `<${e}${r} />` : `<${e}${r}>${n === void 0 ? "" : Array.isArray(n) ? n.join("") : n}</${e}>`;
|
|
80
|
+
}, u = {
|
|
43
81
|
panel: {
|
|
44
82
|
tag: "div",
|
|
45
83
|
classSpec: {
|
|
@@ -257,7 +295,11 @@ var a = {
|
|
|
257
295
|
classSpec: {
|
|
258
296
|
base: "sk-input",
|
|
259
297
|
kind: !0,
|
|
260
|
-
size: !0
|
|
298
|
+
size: !0,
|
|
299
|
+
listFlags: [{
|
|
300
|
+
prop: "corners",
|
|
301
|
+
family: "cut"
|
|
302
|
+
}]
|
|
261
303
|
},
|
|
262
304
|
void: !0
|
|
263
305
|
},
|
|
@@ -274,7 +316,11 @@ var a = {
|
|
|
274
316
|
classSpec: {
|
|
275
317
|
base: "sk-select",
|
|
276
318
|
kind: !0,
|
|
277
|
-
size: !0
|
|
319
|
+
size: !0,
|
|
320
|
+
listFlags: [{
|
|
321
|
+
prop: "corners",
|
|
322
|
+
family: "cut"
|
|
323
|
+
}]
|
|
278
324
|
}
|
|
279
325
|
},
|
|
280
326
|
slider: {
|
|
@@ -300,6 +346,30 @@ var a = {
|
|
|
300
346
|
void: !0,
|
|
301
347
|
extraAttrs: { type: "color" }
|
|
302
348
|
},
|
|
349
|
+
inputGroup: {
|
|
350
|
+
tag: "div",
|
|
351
|
+
classSpec: {
|
|
352
|
+
base: "sk-input-group",
|
|
353
|
+
kind: !0,
|
|
354
|
+
size: !0,
|
|
355
|
+
listFlags: [{
|
|
356
|
+
prop: "corners",
|
|
357
|
+
family: "cut"
|
|
358
|
+
}]
|
|
359
|
+
},
|
|
360
|
+
customColorVars: {
|
|
361
|
+
base: "--sk-input-group-color-base",
|
|
362
|
+
text: "--sk-input-group-fg"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
inputGroupAddon: {
|
|
366
|
+
tag: "span",
|
|
367
|
+
classSpec: {
|
|
368
|
+
base: "sk-input-group-addon",
|
|
369
|
+
kind: !0,
|
|
370
|
+
size: !0
|
|
371
|
+
}
|
|
372
|
+
},
|
|
303
373
|
dropdown: {
|
|
304
374
|
tag: "details",
|
|
305
375
|
classSpec: {
|
|
@@ -311,133 +381,156 @@ var a = {
|
|
|
311
381
|
};
|
|
312
382
|
//#endregion
|
|
313
383
|
//#region src/static/components/panel.ts
|
|
314
|
-
function
|
|
315
|
-
return
|
|
384
|
+
function d(e, t = {}, n) {
|
|
385
|
+
return a(e, u.panel, t, n);
|
|
316
386
|
}
|
|
317
387
|
//#endregion
|
|
318
388
|
//#region src/static/components/card.ts
|
|
319
|
-
function
|
|
320
|
-
return
|
|
389
|
+
function f(e, t = {}, n) {
|
|
390
|
+
return a(e, u.card, t, n);
|
|
321
391
|
}
|
|
322
392
|
//#endregion
|
|
323
393
|
//#region src/static/components/alert.ts
|
|
324
|
-
var
|
|
394
|
+
var p = new Set([
|
|
325
395
|
"info",
|
|
326
396
|
"success",
|
|
327
397
|
"warning",
|
|
328
398
|
"danger"
|
|
329
|
-
]),
|
|
399
|
+
]), m = {
|
|
330
400
|
info: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"></line><circle cx=\"12\" cy=\"8\" r=\"0.5\" fill=\"currentColor\"></circle></svg>",
|
|
331
401
|
success: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22 4 12 14.01 9 11.01\"></polyline></svg>",
|
|
332
402
|
warning: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"></path><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"></line><circle cx=\"12\" cy=\"17\" r=\"0.5\" fill=\"currentColor\"></circle></svg>",
|
|
333
403
|
danger: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"></line><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"></line></svg>"
|
|
334
404
|
};
|
|
335
|
-
function
|
|
336
|
-
let i = t.kind ?? "info", a =
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
405
|
+
function h(e, t = {}, n) {
|
|
406
|
+
let i = t.kind ?? "info", a = {
|
|
407
|
+
class: r({
|
|
408
|
+
base: "sk-alert",
|
|
409
|
+
kind: !0,
|
|
410
|
+
booleanFlags: ["subtle"]
|
|
411
|
+
}, {
|
|
412
|
+
...t,
|
|
413
|
+
kind: i
|
|
414
|
+
}),
|
|
415
|
+
role: "alert"
|
|
416
|
+
}, o = [];
|
|
417
|
+
typeof t.baseColor == "string" && o.push(`--sk-alert-color-base: ${t.baseColor};`), typeof t.textColor == "string" && o.push(`--sk-alert-fg: ${t.textColor};`), o.length > 0 && (a.style = o.join(" "));
|
|
418
|
+
let s = null;
|
|
346
419
|
if (t.icon !== !1) {
|
|
347
|
-
let
|
|
348
|
-
|
|
420
|
+
let n = typeof t.icon == "string" ? t.icon : p.has(i) ? m[i] ?? "" : null;
|
|
421
|
+
n !== null && (s = e("div", {
|
|
422
|
+
class: "sk-alert-icon",
|
|
423
|
+
innerHTML: n
|
|
424
|
+
}));
|
|
349
425
|
}
|
|
350
|
-
let
|
|
351
|
-
return
|
|
426
|
+
let c = e("div", { class: "sk-alert-content" }, n);
|
|
427
|
+
return e("div", a, s === null ? [c] : [s, c]);
|
|
352
428
|
}
|
|
353
429
|
//#endregion
|
|
354
430
|
//#region src/static/components/divider.ts
|
|
355
|
-
function
|
|
431
|
+
function g(e, t = {}) {
|
|
356
432
|
let n = t.orientation ?? "horizontal", r = t.kind ?? "neutral", i = t.size ?? "md", a = [
|
|
357
433
|
"sk-divider",
|
|
358
434
|
`sk-${n}`,
|
|
359
435
|
`sk-${r}`,
|
|
360
436
|
`sk-${i}`
|
|
361
437
|
];
|
|
362
|
-
return t.variant === "subtle" && a.push("sk-subtle"),
|
|
438
|
+
return t.variant === "subtle" && a.push("sk-subtle"), e("hr", {
|
|
439
|
+
class: a.join(" "),
|
|
440
|
+
role: "separator"
|
|
441
|
+
});
|
|
363
442
|
}
|
|
364
443
|
//#endregion
|
|
365
444
|
//#region src/static/components/page.ts
|
|
366
|
-
function
|
|
367
|
-
return
|
|
445
|
+
function _(e, t = {}, n) {
|
|
446
|
+
return a(e, u.page, t, n);
|
|
368
447
|
}
|
|
369
448
|
//#endregion
|
|
370
449
|
//#region src/static/components/group.ts
|
|
371
|
-
function
|
|
372
|
-
return
|
|
450
|
+
function v(e, t = {}, n) {
|
|
451
|
+
return a(e, u.group, t, n);
|
|
373
452
|
}
|
|
374
453
|
//#endregion
|
|
375
454
|
//#region src/static/components/skeleton.ts
|
|
376
|
-
function
|
|
455
|
+
function y(e, t = {}) {
|
|
377
456
|
let n = t.variant ?? "text", r = t.animation ?? "shimmer", i = ["sk-skeleton", `sk-${n}`];
|
|
378
457
|
r !== "none" && i.push(`sk-${r}`);
|
|
379
|
-
let a =
|
|
380
|
-
return typeof t.width == "string" && o.push(`width: ${
|
|
458
|
+
let a = { class: i.join(" ") }, o = [], s = t.height ?? ((n === "circular" || n === "square") && t.width ? t.width : void 0);
|
|
459
|
+
return typeof t.width == "string" && o.push(`width: ${t.width};`), typeof s == "string" && o.push(`height: ${s};`), o.length > 0 && (a.style = o.join(" ")), e("div", a);
|
|
381
460
|
}
|
|
382
461
|
//#endregion
|
|
383
462
|
//#region src/static/components/progress.ts
|
|
384
|
-
function
|
|
385
|
-
return
|
|
463
|
+
function b(e, t = {}, n) {
|
|
464
|
+
return a(e, u.progress, t, n);
|
|
386
465
|
}
|
|
387
466
|
//#endregion
|
|
388
467
|
//#region src/static/components/spinner.ts
|
|
389
|
-
function
|
|
390
|
-
switch (
|
|
391
|
-
case "circular": return "
|
|
392
|
-
case "dots": return "
|
|
393
|
-
|
|
468
|
+
function x(e, t) {
|
|
469
|
+
switch (t) {
|
|
470
|
+
case "circular": return e("div", { class: "sk-spinner-circular" }, [e("div", { class: "sk-arc sk-arc-large" }), e("div", { class: "sk-arc sk-arc-small" })]);
|
|
471
|
+
case "dots": return e("div", { class: "sk-spinner-dots" }, [
|
|
472
|
+
e("div", { class: "sk-dot" }),
|
|
473
|
+
e("div", { class: "sk-dot" }),
|
|
474
|
+
e("div", { class: "sk-dot" })
|
|
475
|
+
]);
|
|
476
|
+
case "crosshair": return e("div", { class: "sk-crosshair-loader" });
|
|
394
477
|
}
|
|
395
478
|
}
|
|
396
|
-
function
|
|
397
|
-
let n = t.kind ?? "primary", r = t.size ?? "md", i = t.variant ?? "circular", a =
|
|
398
|
-
|
|
479
|
+
function S(e, t = {}) {
|
|
480
|
+
let n = t.kind ?? "primary", r = t.size ?? "md", i = t.variant ?? "circular", a = {
|
|
481
|
+
class: [
|
|
399
482
|
"sk-spinner",
|
|
400
483
|
`sk-${n}`,
|
|
401
484
|
`sk-${r}`,
|
|
402
485
|
`sk-variant-${i}`
|
|
403
|
-
].join(" ")
|
|
404
|
-
|
|
405
|
-
"aria-live
|
|
406
|
-
"aria-label
|
|
407
|
-
|
|
408
|
-
return typeof t.color == "string" && a.
|
|
486
|
+
].join(" "),
|
|
487
|
+
role: "status",
|
|
488
|
+
"aria-live": "polite",
|
|
489
|
+
"aria-label": "Loading"
|
|
490
|
+
};
|
|
491
|
+
return typeof t.color == "string" && (a.style = `--sk-spinner-color: ${t.color};`), e("div", a, x(e, i));
|
|
409
492
|
}
|
|
410
493
|
//#endregion
|
|
411
494
|
//#region src/static/components/navBar.ts
|
|
412
|
-
function
|
|
495
|
+
function C(e, t = {}, n) {
|
|
413
496
|
let i = t.sticky !== !1, a = r({
|
|
414
497
|
base: "sk-navbar",
|
|
415
498
|
kind: !0
|
|
416
|
-
}, t), o =
|
|
417
|
-
typeof t.baseColor == "string" && s.push(`--sk-navbar-color-base: ${
|
|
418
|
-
let c =
|
|
419
|
-
t.leading &&
|
|
420
|
-
|
|
421
|
-
|
|
499
|
+
}, t), o = { class: i ? `${a} sk-sticky` : a }, s = [];
|
|
500
|
+
typeof t.baseColor == "string" && s.push(`--sk-navbar-color-base: ${t.baseColor};`), typeof t.textColor == "string" && s.push(`--sk-navbar-fg: ${t.textColor};`), s.length > 0 && (o.style = s.join(" "));
|
|
501
|
+
let c = [];
|
|
502
|
+
return t.leading && c.push(e("div", {
|
|
503
|
+
class: "sk-navbar-leading",
|
|
504
|
+
innerHTML: t.leading
|
|
505
|
+
})), t.brand && c.push(e("div", {
|
|
506
|
+
class: "sk-navbar-brand",
|
|
507
|
+
innerHTML: t.brand
|
|
508
|
+
})), n !== void 0 && (Array.isArray(n) ? n.length > 0 : n) && c.push(e("div", { class: "sk-navbar-nav" }, n)), t.actions && c.push(e("div", {
|
|
509
|
+
class: "sk-navbar-actions",
|
|
510
|
+
innerHTML: t.actions
|
|
511
|
+
})), e("nav", o, e("div", { class: "sk-navbar-content" }, c));
|
|
422
512
|
}
|
|
423
513
|
//#endregion
|
|
424
514
|
//#region src/static/components/toolbar.ts
|
|
425
|
-
var
|
|
515
|
+
var w = [
|
|
426
516
|
"top-left",
|
|
427
517
|
"top-right",
|
|
428
518
|
"bottom-right",
|
|
429
519
|
"bottom-left"
|
|
430
520
|
];
|
|
431
|
-
function
|
|
432
|
-
let r = t.kind, i = t.orientation ?? "horizontal", a = t.corners ??
|
|
521
|
+
function T(e, t = {}, n) {
|
|
522
|
+
let r = t.kind, i = t.orientation ?? "horizontal", a = t.corners ?? w, o = ["sk-toolbar"];
|
|
433
523
|
typeof r == "string" && o.push(`sk-${r}`), o.push(`sk-${i}`);
|
|
434
524
|
for (let e of a) o.push(`sk-cut-${e}`);
|
|
435
|
-
let s =
|
|
436
|
-
|
|
525
|
+
let s = {
|
|
526
|
+
class: o.join(" "),
|
|
527
|
+
role: "toolbar"
|
|
528
|
+
}, c = [];
|
|
529
|
+
return typeof t.baseColor == "string" && c.push(`--sk-toolbar-color-base: ${t.baseColor};`), typeof t.textColor == "string" && c.push(`--sk-toolbar-fg: ${t.textColor};`), c.length > 0 && (s.style = c.join(" ")), e("div", s, n);
|
|
437
530
|
}
|
|
438
531
|
//#endregion
|
|
439
532
|
//#region src/static/components/sidebar.ts
|
|
440
|
-
function
|
|
533
|
+
function E(e, t = {}, n) {
|
|
441
534
|
let r = t.kind ?? "neutral", i = t.side ?? "left", a = ["sk-sidebar", `sk-${r}`];
|
|
442
535
|
i === "right" && a.push("sk-sidebar-right"), t.dense === !0 && a.push("sk-dense");
|
|
443
536
|
let o = i === "right" ? "bottom-left" : "bottom-right", s = [
|
|
@@ -447,23 +540,25 @@ function x(t = {}, n = "") {
|
|
|
447
540
|
`sk-cut-${o}`,
|
|
448
541
|
`sk-decoration-${o}`,
|
|
449
542
|
"sk-sidebar-panel"
|
|
450
|
-
], c =
|
|
451
|
-
|
|
543
|
+
], c = { class: a.join(" ") }, l = [];
|
|
544
|
+
typeof t.baseColor == "string" && l.push(`--sk-sidebar-color-base: ${t.baseColor};`), l.length > 0 && (c.style = l.join(" "));
|
|
545
|
+
let u = e("div", { class: "sk-panel-scroll-content" }, e("nav", { class: "sk-sidebar-nav" }, n));
|
|
546
|
+
return e("aside", c, e("div", { class: s.join(" ") }, u));
|
|
452
547
|
}
|
|
453
548
|
//#endregion
|
|
454
549
|
//#region src/static/components/breadcrumbs.ts
|
|
455
|
-
function
|
|
456
|
-
return
|
|
550
|
+
function D(e, t = {}, n) {
|
|
551
|
+
return a(e, u.breadcrumbs, t, n);
|
|
457
552
|
}
|
|
458
553
|
//#endregion
|
|
459
554
|
//#region src/static/components/pagination.ts
|
|
460
|
-
function
|
|
461
|
-
return
|
|
555
|
+
function O(e, t = {}, n) {
|
|
556
|
+
return a(e, u.pagination, t, n);
|
|
462
557
|
}
|
|
463
558
|
//#endregion
|
|
464
559
|
//#region src/static/components/tag.ts
|
|
465
|
-
var
|
|
466
|
-
function
|
|
560
|
+
var k = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>";
|
|
561
|
+
function A(e, t = {}, n) {
|
|
467
562
|
let r = t.kind ?? "neutral", i = t.variant ?? "solid", a = t.size ?? "md", o = [
|
|
468
563
|
"sk-tag",
|
|
469
564
|
`sk-${r}`,
|
|
@@ -471,46 +566,74 @@ function T(t = {}, n = "") {
|
|
|
471
566
|
`sk-${a}`
|
|
472
567
|
];
|
|
473
568
|
t.removable && o.push("sk-removable");
|
|
474
|
-
let s =
|
|
475
|
-
typeof t.baseColor == "string" && c.push(`--sk-tag-color-base: ${
|
|
476
|
-
let l =
|
|
477
|
-
|
|
569
|
+
let s = { class: o.join(" ") }, c = [];
|
|
570
|
+
typeof t.baseColor == "string" && c.push(`--sk-tag-color-base: ${t.baseColor};`), typeof t.textColor == "string" && c.push(`--sk-tag-fg: ${t.textColor};`), c.length > 0 && (s.style = c.join(" "));
|
|
571
|
+
let l = [e("span", { class: "sk-tag-content" }, n)];
|
|
572
|
+
if (t.removable) {
|
|
573
|
+
let t = e("button", {
|
|
574
|
+
type: "button",
|
|
575
|
+
class: "sk-tag-remove",
|
|
576
|
+
"aria-label": "Remove",
|
|
577
|
+
innerHTML: k
|
|
578
|
+
});
|
|
579
|
+
l.push(t);
|
|
580
|
+
}
|
|
581
|
+
return e("span", s, l);
|
|
478
582
|
}
|
|
479
583
|
//#endregion
|
|
480
584
|
//#region src/static/components/avatar.ts
|
|
481
|
-
var
|
|
482
|
-
function
|
|
483
|
-
let
|
|
585
|
+
var j = "<svg class=\"sk-avatar-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"></path></svg>";
|
|
586
|
+
function M(e, n = {}) {
|
|
587
|
+
let r = n.kind ?? "neutral", i = n.size ?? "md", a = { class: [
|
|
484
588
|
"sk-avatar",
|
|
485
|
-
`sk-${
|
|
486
|
-
`sk-${
|
|
487
|
-
].join(" ")
|
|
488
|
-
typeof
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
589
|
+
`sk-${r}`,
|
|
590
|
+
`sk-${i}`
|
|
591
|
+
].join(" ") }, o = [];
|
|
592
|
+
if (typeof n.baseColor == "string" && o.push(`--sk-avatar-color-base: ${n.baseColor};`), typeof n.textColor == "string" && o.push(`--sk-avatar-fg: ${n.textColor};`), o.length > 0 && (a.style = o.join(" ")), n.src) {
|
|
593
|
+
let t = n.alt ?? "";
|
|
594
|
+
return e("div", a, e("img", {
|
|
595
|
+
src: n.src,
|
|
596
|
+
alt: t,
|
|
597
|
+
class: "sk-avatar-image"
|
|
598
|
+
}));
|
|
599
|
+
}
|
|
600
|
+
return n.initials ? e("div", a, e("span", {
|
|
601
|
+
class: "sk-avatar-initials",
|
|
602
|
+
innerHTML: t(n.initials.slice(0, 2).toUpperCase())
|
|
603
|
+
})) : e("div", {
|
|
604
|
+
...a,
|
|
605
|
+
innerHTML: j
|
|
606
|
+
});
|
|
495
607
|
}
|
|
496
608
|
//#endregion
|
|
497
609
|
//#region src/static/components/field.ts
|
|
498
|
-
function
|
|
499
|
-
let
|
|
500
|
-
|
|
501
|
-
let
|
|
502
|
-
if (
|
|
503
|
-
let
|
|
504
|
-
|
|
610
|
+
function N(e, n = {}, r) {
|
|
611
|
+
let i = ["sk-field", `sk-label-${n.labelPosition ?? "top"}`];
|
|
612
|
+
n.error && i.push("sk-has-error");
|
|
613
|
+
let a = { class: i.join(" ") }, o = [];
|
|
614
|
+
if (n.label) {
|
|
615
|
+
let r = { class: "sk-field-label" };
|
|
616
|
+
n.id && (r.for = n.id), n.required ? (r.innerHTML = `${t(n.label)}<span class="sk-field-required">*</span>`, o.push(e("label", r))) : (r.innerHTML = t(n.label), o.push(e("label", r)));
|
|
617
|
+
}
|
|
618
|
+
if (o.push(e("div", { class: "sk-field-input-wrapper" }, r)), n.description && !n.error) {
|
|
619
|
+
let r = {
|
|
620
|
+
class: "sk-field-description",
|
|
621
|
+
innerHTML: t(n.description)
|
|
622
|
+
};
|
|
623
|
+
n.id && (r.id = `${n.id}-description`), o.push(e("p", r));
|
|
624
|
+
}
|
|
625
|
+
if (n.error) {
|
|
626
|
+
let r = {
|
|
627
|
+
class: "sk-field-error",
|
|
628
|
+
innerHTML: t(n.error)
|
|
629
|
+
};
|
|
630
|
+
n.id && (r.id = `${n.id}-error`), o.push(e("p", r));
|
|
505
631
|
}
|
|
506
|
-
|
|
507
|
-
t.description && !t.error && (s = `<p${t.id ? ` id="${e(t.id)}-description"` : ""} class="sk-field-description">${e(t.description)}</p>`);
|
|
508
|
-
let c = "";
|
|
509
|
-
return t.error && (c = `<p${t.id ? ` id="${e(t.id)}-error"` : ""} class="sk-field-error">${e(t.error)}</p>`), `<div ${i}>${a}${o}${s}${c}</div>`;
|
|
632
|
+
return e("div", a, o);
|
|
510
633
|
}
|
|
511
634
|
//#endregion
|
|
512
635
|
//#region src/static/components/table.ts
|
|
513
|
-
function
|
|
636
|
+
function P(e, t = {}, n) {
|
|
514
637
|
let r = t.kind ?? "neutral", i = t.variant ?? "default", a = t.hoverable !== !1, o = t.bordered !== !1, s = t.innerBorders === !0, c = t.subtle === !0, l = t.darkBackground === !0, u = t.striped === !0, d = ["sk-table-wrapper", `sk-table-wrapper-${r}`];
|
|
515
638
|
l && d.push("sk-dark-background"), c && d.push("sk-subtle");
|
|
516
639
|
let f = [
|
|
@@ -519,18 +642,18 @@ function k(t = {}, n = "") {
|
|
|
519
642
|
`sk-${i}`
|
|
520
643
|
];
|
|
521
644
|
u && f.push("sk-striped"), a && f.push("sk-hoverable"), o && f.push("sk-bordered"), s || f.push("sk-no-inner-borders"), c && f.push("sk-subtle");
|
|
522
|
-
let p =
|
|
523
|
-
return typeof t.baseColor == "string" && m.push(`--sk-table-color-base: ${
|
|
645
|
+
let p = { class: f.join(" ") }, m = [];
|
|
646
|
+
return typeof t.baseColor == "string" && m.push(`--sk-table-color-base: ${t.baseColor};`), typeof t.textColor == "string" && m.push(`--sk-table-fg: ${t.textColor};`), m.length > 0 && (p.style = m.join(" ")), e("div", { class: d.join(" ") }, e("table", p, n));
|
|
524
647
|
}
|
|
525
648
|
//#endregion
|
|
526
649
|
//#region src/static/components/tooltip.ts
|
|
527
|
-
function
|
|
528
|
-
return
|
|
650
|
+
function F(e, t = {}, n) {
|
|
651
|
+
return a(e, u.tooltip, t, n);
|
|
529
652
|
}
|
|
530
653
|
//#endregion
|
|
531
654
|
//#region src/static/components/button.ts
|
|
532
|
-
function
|
|
533
|
-
let i =
|
|
655
|
+
function I(e, t = {}, n) {
|
|
656
|
+
let i = r({
|
|
534
657
|
base: "sk-button",
|
|
535
658
|
kind: !0,
|
|
536
659
|
size: !0,
|
|
@@ -539,158 +662,187 @@ function j(t = {}, n = "") {
|
|
|
539
662
|
"loading",
|
|
540
663
|
"pressed",
|
|
541
664
|
"dense"
|
|
542
|
-
]
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
549
|
-
t.disabled && i.push(a ? "aria-disabled=\"true\"" : "disabled"), t.loading && i.push("aria-busy=\"true\""), t.pressed && i.push("aria-pressed=\"true\"");
|
|
550
|
-
let o = a ? "a" : "button", s = `<span class="sk-button-chrome">${n}</span>`;
|
|
551
|
-
return `<${o} ${i.join(" ")}>${s}</${o}>`;
|
|
665
|
+
],
|
|
666
|
+
listFlags: [{
|
|
667
|
+
prop: "corners",
|
|
668
|
+
family: "cut"
|
|
669
|
+
}]
|
|
670
|
+
}, t), a = typeof t.href == "string", o = { class: i };
|
|
671
|
+
return a ? o.href = t.href ?? "" : o.type = t.type ?? "button", t.disabled && (a ? o["aria-disabled"] = "true" : o.disabled = !0), t.loading && (o["aria-busy"] = "true"), t.pressed && (o["aria-pressed"] = "true"), e(a ? "a" : "button", o, e("span", { class: "sk-button-chrome" }, n));
|
|
552
672
|
}
|
|
553
673
|
//#endregion
|
|
554
674
|
//#region src/static/components/input.ts
|
|
555
|
-
function
|
|
556
|
-
let n =
|
|
675
|
+
function L(e, t = {}) {
|
|
676
|
+
let n = { class: r({
|
|
557
677
|
base: "sk-input",
|
|
558
678
|
kind: !0,
|
|
559
|
-
size: !0
|
|
560
|
-
|
|
561
|
-
|
|
679
|
+
size: !0,
|
|
680
|
+
listFlags: [{
|
|
681
|
+
prop: "corners",
|
|
682
|
+
family: "cut"
|
|
683
|
+
}]
|
|
684
|
+
}, t) };
|
|
685
|
+
for (let e of [
|
|
562
686
|
"type",
|
|
563
687
|
"value",
|
|
564
688
|
"placeholder",
|
|
565
689
|
"name",
|
|
566
690
|
"id"
|
|
567
691
|
]) {
|
|
568
|
-
let
|
|
569
|
-
typeof
|
|
692
|
+
let r = t[e];
|
|
693
|
+
typeof r == "string" && (n[e] = r);
|
|
570
694
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
return
|
|
695
|
+
return t.disabled === !0 && (n.disabled = !0), t.readonly === !0 && (n.readonly = !0), t.required === !0 && (n.required = !0), e("input", n);
|
|
696
|
+
}
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region src/static/components/inputGroup.ts
|
|
699
|
+
function R(e, t = {}, n) {
|
|
700
|
+
return a(e, u.inputGroup, t, n);
|
|
701
|
+
}
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/static/components/inputGroupAddon.ts
|
|
704
|
+
function z(e, t = {}, n) {
|
|
705
|
+
return a(e, u.inputGroupAddon, t, n);
|
|
577
706
|
}
|
|
578
707
|
//#endregion
|
|
579
708
|
//#region src/static/components/textarea.ts
|
|
580
|
-
function
|
|
581
|
-
let i =
|
|
709
|
+
function B(e, t = {}, n) {
|
|
710
|
+
let i = { class: r({
|
|
582
711
|
base: "sk-textarea",
|
|
583
712
|
kind: !0,
|
|
584
713
|
size: !0
|
|
585
|
-
}, t)
|
|
586
|
-
for (let
|
|
714
|
+
}, t) };
|
|
715
|
+
for (let e of [
|
|
587
716
|
"placeholder",
|
|
588
717
|
"name",
|
|
589
718
|
"id"
|
|
590
719
|
]) {
|
|
591
|
-
let
|
|
592
|
-
typeof
|
|
720
|
+
let n = t[e];
|
|
721
|
+
typeof n == "string" && (i[e] = n);
|
|
593
722
|
}
|
|
594
|
-
|
|
595
|
-
"disabled",
|
|
596
|
-
"readonly",
|
|
597
|
-
"required"
|
|
598
|
-
]) t[e] === !0 && i.push(e);
|
|
599
|
-
return `<textarea ${i.join(" ")}>${n}</textarea>`;
|
|
723
|
+
return t.disabled === !0 && (i.disabled = !0), t.readonly === !0 && (i.readonly = !0), t.required === !0 && (i.required = !0), e("textarea", i, n);
|
|
600
724
|
}
|
|
601
725
|
//#endregion
|
|
602
726
|
//#region src/static/components/select.ts
|
|
603
|
-
function
|
|
604
|
-
let i =
|
|
727
|
+
function V(e, t = {}, n) {
|
|
728
|
+
let i = { class: r({
|
|
605
729
|
base: "sk-select",
|
|
606
730
|
kind: !0,
|
|
607
|
-
size: !0
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
731
|
+
size: !0,
|
|
732
|
+
listFlags: [{
|
|
733
|
+
prop: "corners",
|
|
734
|
+
family: "cut"
|
|
735
|
+
}]
|
|
736
|
+
}, t) };
|
|
737
|
+
for (let e of ["name", "id"]) {
|
|
738
|
+
let n = t[e];
|
|
739
|
+
typeof n == "string" && (i[e] = n);
|
|
612
740
|
}
|
|
613
|
-
|
|
614
|
-
return `<select ${i.join(" ")}>${n}</select>`;
|
|
741
|
+
return t.disabled === !0 && (i.disabled = !0), t.required === !0 && (i.required = !0), e("select", i, n);
|
|
615
742
|
}
|
|
616
743
|
//#endregion
|
|
617
744
|
//#region src/static/components/slider.ts
|
|
618
|
-
function
|
|
619
|
-
let n =
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
745
|
+
function H(e, t = {}) {
|
|
746
|
+
let n = {
|
|
747
|
+
class: r({
|
|
748
|
+
base: "sk-slider",
|
|
749
|
+
kind: !0,
|
|
750
|
+
size: !0
|
|
751
|
+
}, t),
|
|
752
|
+
type: "range"
|
|
753
|
+
};
|
|
754
|
+
for (let e of [
|
|
625
755
|
"min",
|
|
626
756
|
"max",
|
|
627
757
|
"step",
|
|
628
758
|
"value",
|
|
629
759
|
"name"
|
|
630
760
|
]) {
|
|
631
|
-
let
|
|
632
|
-
typeof
|
|
761
|
+
let r = t[e];
|
|
762
|
+
typeof r == "string" && (n[e] = r);
|
|
633
763
|
}
|
|
634
|
-
return t.disabled === !0 && n.
|
|
764
|
+
return t.disabled === !0 && (n.disabled = !0), e("input", n);
|
|
635
765
|
}
|
|
636
766
|
//#endregion
|
|
637
767
|
//#region src/static/components/colorPicker.ts
|
|
638
|
-
function
|
|
639
|
-
let n =
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
768
|
+
function U(e, t = {}) {
|
|
769
|
+
let n = {
|
|
770
|
+
class: r({
|
|
771
|
+
base: "sk-color-picker",
|
|
772
|
+
size: !0
|
|
773
|
+
}, t),
|
|
774
|
+
type: "color"
|
|
775
|
+
};
|
|
776
|
+
for (let e of ["value", "name"]) {
|
|
777
|
+
let r = t[e];
|
|
778
|
+
typeof r == "string" && (n[e] = r);
|
|
646
779
|
}
|
|
647
|
-
return t.disabled === !0 && n.
|
|
780
|
+
return t.disabled === !0 && (n.disabled = !0), e("input", n);
|
|
648
781
|
}
|
|
649
782
|
//#endregion
|
|
650
783
|
//#region src/static/components/checkbox.ts
|
|
651
|
-
function
|
|
784
|
+
function W(e, t = {}, n) {
|
|
652
785
|
let i = r({
|
|
653
786
|
base: "sk-checkbox",
|
|
654
787
|
kind: !0,
|
|
655
788
|
size: !0
|
|
656
|
-
}, t), a =
|
|
657
|
-
t.name && a.
|
|
658
|
-
let o =
|
|
659
|
-
return
|
|
789
|
+
}, t), a = { type: "checkbox" };
|
|
790
|
+
t.name && (a.name = t.name), t.checked === !0 && (a.checked = !0), t.disabled === !0 && (a.disabled = !0), t.required === !0 && (a.required = !0);
|
|
791
|
+
let o = e("input", a), s = e("span", { class: "sk-checkbox-box" }), c = e("span", { class: "sk-checkbox-label" }, n);
|
|
792
|
+
return e("label", { class: i }, [
|
|
793
|
+
o,
|
|
794
|
+
s,
|
|
795
|
+
c
|
|
796
|
+
]);
|
|
660
797
|
}
|
|
661
798
|
//#endregion
|
|
662
799
|
//#region src/static/components/radio.ts
|
|
663
|
-
function
|
|
800
|
+
function G(e, t = {}, n) {
|
|
664
801
|
let i = r({
|
|
665
802
|
base: "sk-radio",
|
|
666
803
|
kind: !0,
|
|
667
804
|
size: !0
|
|
668
|
-
}, t), a =
|
|
669
|
-
t.name && a.
|
|
670
|
-
let o =
|
|
671
|
-
return
|
|
805
|
+
}, t), a = { type: "radio" };
|
|
806
|
+
t.name && (a.name = t.name), t.value !== void 0 && (a.value = t.value), t.checked === !0 && (a.checked = !0), t.disabled === !0 && (a.disabled = !0), t.required === !0 && (a.required = !0);
|
|
807
|
+
let o = e("input", a), s = e("span", { class: "sk-radio-dot" }), c = e("span", { class: "sk-radio-label" }, n);
|
|
808
|
+
return e("label", { class: i }, [
|
|
809
|
+
o,
|
|
810
|
+
s,
|
|
811
|
+
c
|
|
812
|
+
]);
|
|
672
813
|
}
|
|
673
814
|
//#endregion
|
|
674
815
|
//#region src/static/components/switchInput.ts
|
|
675
|
-
function
|
|
816
|
+
function K(e, t = {}, n) {
|
|
676
817
|
let i = r({
|
|
677
818
|
base: "sk-switch",
|
|
678
819
|
kind: !0,
|
|
679
820
|
size: !0
|
|
680
|
-
}, t), a =
|
|
681
|
-
t.name && a.
|
|
682
|
-
let o =
|
|
683
|
-
return
|
|
821
|
+
}, t), a = { type: "checkbox" };
|
|
822
|
+
t.name && (a.name = t.name), t.checked === !0 && (a.checked = !0), t.disabled === !0 && (a.disabled = !0), t.required === !0 && (a.required = !0);
|
|
823
|
+
let o = e("input", a), s = e("span", { class: "sk-switch-track" }, e("span", { class: "sk-switch-thumb" })), c = e("span", { class: "sk-switch-label" }, n);
|
|
824
|
+
return e("label", { class: i }, [
|
|
825
|
+
o,
|
|
826
|
+
s,
|
|
827
|
+
c
|
|
828
|
+
]);
|
|
684
829
|
}
|
|
685
830
|
//#endregion
|
|
686
831
|
//#region src/static/components/numberInput.ts
|
|
687
|
-
function
|
|
832
|
+
function q(e, t = {}) {
|
|
688
833
|
let n = r({
|
|
689
834
|
base: "sk-number-input-wrapper",
|
|
690
835
|
kind: !0,
|
|
691
|
-
size: !0
|
|
692
|
-
|
|
693
|
-
|
|
836
|
+
size: !0,
|
|
837
|
+
listFlags: [{
|
|
838
|
+
prop: "corners",
|
|
839
|
+
family: "cut"
|
|
840
|
+
}]
|
|
841
|
+
}, t), i = {
|
|
842
|
+
class: "sk-number-input-field",
|
|
843
|
+
type: "number"
|
|
844
|
+
};
|
|
845
|
+
for (let e of [
|
|
694
846
|
"value",
|
|
695
847
|
"min",
|
|
696
848
|
"max",
|
|
@@ -698,35 +850,33 @@ function B(t = {}) {
|
|
|
698
850
|
"name",
|
|
699
851
|
"placeholder"
|
|
700
852
|
]) {
|
|
701
|
-
let
|
|
702
|
-
typeof
|
|
853
|
+
let n = t[e];
|
|
854
|
+
typeof n == "string" && (i[e] = n);
|
|
703
855
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
"required"
|
|
708
|
-
]) t[e] === !0 && i.push(e);
|
|
709
|
-
let a = `<input ${i.join(" ")} />`;
|
|
710
|
-
return `<div class="${e(n)}">${a}</div>`;
|
|
856
|
+
t.disabled === !0 && (i.disabled = !0), t.readonly === !0 && (i.readonly = !0), t.required === !0 && (i.required = !0);
|
|
857
|
+
let a = e("input", i);
|
|
858
|
+
return e("div", { class: n }, a);
|
|
711
859
|
}
|
|
712
860
|
//#endregion
|
|
713
861
|
//#region src/static/components/tagsInput.ts
|
|
714
|
-
function
|
|
715
|
-
return
|
|
862
|
+
function J(e, t = {}, n) {
|
|
863
|
+
return e("div", { class: r({
|
|
716
864
|
base: "sk-tags-input",
|
|
717
865
|
kind: !0,
|
|
718
866
|
size: !0
|
|
719
|
-
}, t)
|
|
867
|
+
}, t) }, n);
|
|
720
868
|
}
|
|
721
869
|
//#endregion
|
|
722
870
|
//#region src/static/components/dropdown.ts
|
|
723
|
-
function
|
|
724
|
-
let
|
|
871
|
+
function Y(e, n, i) {
|
|
872
|
+
let a = { class: r({
|
|
725
873
|
base: "sk-dropdown",
|
|
726
874
|
kind: !0,
|
|
727
875
|
size: !0
|
|
728
|
-
},
|
|
729
|
-
|
|
876
|
+
}, n) };
|
|
877
|
+
n.open && (a.open = !0);
|
|
878
|
+
let o = [e("summary", { innerHTML: t(n.summary) })];
|
|
879
|
+
return i !== void 0 && (Array.isArray(i) ? o.push(...i) : o.push(i)), e("details", a, o);
|
|
730
880
|
}
|
|
731
881
|
//#endregion
|
|
732
|
-
export {
|
|
882
|
+
export { h as alert, M as avatar, D as breadcrumbs, I as button, f as card, W as checkbox, U as colorPicker, r as composeClasses, g as divider, Y as dropdown, e as escapeAttr, N as field, v as group, L as input, R as inputGroup, z as inputGroupAddon, C as navBar, q as numberInput, _ as page, O as pagination, d as panel, b as progress, G as radio, a as render, V as select, E as sidebar, y as skeleton, H as slider, S as spinner, l as stringH, K as switchInput, P as table, A as tag, J as tagsInput, t as text, B as textarea, T as toolbar, F as tooltip };
|