@vokril/ui-solid 0.5.0 → 0.8.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/CHANGELOG.md +65 -0
- package/README.md +20 -1
- package/dist/AttributeGrid-Bnn1w5XX.cjs +1 -0
- package/dist/AttributeGrid-DJdW32LQ.js +320 -0
- package/dist/CommandPalette-BBDBVARB.cjs +2 -0
- package/dist/CommandPalette-e6FePgys.js +3950 -0
- package/dist/{DateRangePicker-jnZfDhQA.js → DateRangePicker-BcqoUao4.js} +4 -4
- package/dist/{DateRangePicker-CHrwr34H.cjs → DateRangePicker-DHI3SNna.cjs} +1 -1
- package/dist/{GuidedTour-DHgMaTVv.js → GuidedTour-B-BXe3ul.js} +2239 -2223
- package/dist/{GuidedTour-B-67TJlO.cjs → GuidedTour-c7XiyOmE.cjs} +7 -7
- package/dist/{IconPicker-C_gAGvo0.cjs → IconPicker-D2dZK0n3.cjs} +1 -1
- package/dist/{IconPicker-BxofGXCS.js → IconPicker-Fd2IE2Dm.js} +2 -2
- package/dist/Input-BEnk4FCF.cjs +1 -0
- package/dist/Input-PZ5wRvPx.js +227 -0
- package/dist/{Modal-BmtEt5Yo.js → Modal-CsiV55WW.js} +1 -1
- package/dist/{Modal-BSSY6C3D.cjs → Modal-DpDHzCWT.cjs} +1 -1
- package/dist/{Popover-Cg8LZCYo.js → Popover-C3dFuObM.js} +49 -45
- package/dist/Popover-Dbi7L860.cjs +1 -0
- package/dist/{SearchableSelect-ByCRBEZI.js → SearchableSelect-C6KL7e42.js} +2 -2
- package/dist/{SearchableSelect-9pgcO5JS.cjs → SearchableSelect-zT8XNpmt.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-DpTaPcoW.cjs → StatusBarNotificationBell-2bIRvg2s.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-Czirj1Df.js → StatusBarNotificationBell-B5knnCWK.js} +5 -5
- package/dist/{Stepper-CrTxBpDL.js → Stepper-B26aF0bA.js} +1 -1
- package/dist/{Stepper-C3dnwwiV.cjs → Stepper-Bl8P6HJx.cjs} +1 -1
- package/dist/Textarea-BUxibzkR.js +42 -0
- package/dist/Textarea-BunKEY68.cjs +1 -0
- package/dist/{ToggleButton-CFvMUndy.cjs → ToggleButton-DuKoI5PE.cjs} +1 -1
- package/dist/{ToggleButton-DBWFnm_R.js → ToggleButton-DwvUV2en.js} +6 -6
- package/dist/base.css +0 -1
- package/dist/{createResizableSidebar-uf_OJsjO.js → createResizableSidebar-B22SKv9b.js} +1 -1
- package/dist/{createResizableSidebar-DVATOkMf.cjs → createResizableSidebar-C3I0HSwo.cjs} +1 -1
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +2 -2
- package/dist/{dialogFocusRestore-DKxaV82N.js → dialogFocusRestore-B4ggeVAM.js} +1 -1
- package/dist/{dialogFocusRestore-BAF8QM6v.cjs → dialogFocusRestore-BcMPrbig.cjs} +1 -1
- package/dist/format-Dih0q9gm.cjs +1 -0
- package/dist/{format-Dd946oS-.js → format-UGlMj0HW.js} +91 -88
- package/dist/forms/formFieldContext.d.cts +15 -0
- package/dist/forms/formFieldContext.d.ts +15 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +41 -40
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.d.cts +1 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.js +7 -6
- package/dist/grid/resultTabToolbarClasses.d.cts +47 -0
- package/dist/grid/resultTabToolbarClasses.d.ts +47 -0
- package/dist/iconScale.module-C3O0bxfp.js +13 -0
- package/dist/iconScale.module-CzmKG1rf.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1106 -1008
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/overlay/DropdownMenu.d.cts +15 -1
- package/dist/overlay/DropdownMenu.d.ts +15 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -0
- package/dist/overlay/index.d.ts +2 -0
- package/dist/overlay/index.js +132 -122
- package/dist/overlay/menu/MenuParts.d.cts +121 -0
- package/dist/overlay/menu/MenuParts.d.ts +121 -0
- package/dist/overlay/menu/index.d.cts +2 -0
- package/dist/overlay/menu/index.d.ts +2 -0
- package/dist/overlay/menu/menuSurfaceClasses.d.cts +28 -0
- package/dist/overlay/menu/menuSurfaceClasses.d.ts +28 -0
- package/dist/overlay/overlayStack.d.cts +6 -0
- package/dist/overlay/overlayStack.d.ts +6 -0
- package/dist/overlay/panelClasses.d.cts +50 -0
- package/dist/overlay/panelClasses.d.ts +50 -0
- package/dist/overlay/popover/PopoverPanel.d.cts +103 -0
- package/dist/overlay/popover/PopoverPanel.d.ts +103 -0
- package/dist/overlay/popover/index.d.cts +2 -0
- package/dist/overlay/popover/index.d.ts +2 -0
- package/dist/overlay/popover/popoverFocusNavigation.d.cts +6 -2
- package/dist/overlay/popover/popoverFocusNavigation.d.ts +6 -2
- package/dist/overlay-stack/index.cjs +1 -1
- package/dist/overlay-stack/index.js +1 -1
- package/dist/overlayStack-DvGdPMdq.js +203 -0
- package/dist/overlayStack-DvKYN7SD.cjs +1 -0
- package/dist/server/AttributeGrid-BCYNwNjw.js +281 -0
- package/dist/server/AttributeGrid-BVAQshm3.cjs +1 -0
- package/dist/server/CommandPalette-4RCiBlmz.js +3210 -0
- package/dist/server/CommandPalette-Dd8AW-WZ.cjs +1 -0
- package/dist/server/{DateRangePicker-BK2Ul2uy.js → DateRangePicker-TW0Dy4u6.js} +4 -4
- package/dist/server/{DateRangePicker-s-I_rNUK.cjs → DateRangePicker-sX2m4194.cjs} +1 -1
- package/dist/server/{GuidedTour-BvDY-xaZ.js → GuidedTour-Bc7SqDXY.js} +756 -740
- package/dist/server/{GuidedTour-zesfTSmE.cjs → GuidedTour-DvMqeZIU.cjs} +8 -8
- package/dist/server/{IconPicker-Bw8tZjCl.cjs → IconPicker-Bat7VYeo.cjs} +1 -1
- package/dist/server/{IconPicker-BCUZcq-i.js → IconPicker-Dw4tbosO.js} +2 -2
- package/dist/server/Input-CjvD8w18.cjs +1 -0
- package/dist/server/Input-DaEN2JJd.js +127 -0
- package/dist/server/{Modal-CM54uXRu.js → Modal-Jf89av-C.js} +2 -2
- package/dist/server/{Modal-R86Fb2mX.cjs → Modal-W2cb3Xrx.cjs} +1 -1
- package/dist/server/{Popover-CTnX42Jq.js → Popover-BRU2E-ek.js} +17 -13
- package/dist/server/Popover-C2VwtQyu.cjs +1 -0
- package/dist/server/{SearchableSelect-Cog_rb31.js → SearchableSelect-0dP7bp0a.js} +2 -2
- package/dist/server/{SearchableSelect-fofn1Bjg.cjs → SearchableSelect-nMecJAYS.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-Mh81s2kG.js → StatusBarNotificationBell-Bk9ETGFK.js} +5 -5
- package/dist/server/{StatusBarNotificationBell-COaYD8sz.cjs → StatusBarNotificationBell-t7B7rSrd.cjs} +1 -1
- package/dist/server/{Stepper-BdOBuNco.js → Stepper-CJIoTXSv.js} +1 -1
- package/dist/server/{Stepper-DqwKOszc.cjs → Stepper-RFkjF_fm.cjs} +1 -1
- package/dist/server/Textarea-BQf2lL59.cjs +1 -0
- package/dist/server/Textarea-BTH48NET.js +37 -0
- package/dist/server/{ToggleButton-B0YuAGY4.js → ToggleButton-BAhucFQT.js} +6 -6
- package/dist/server/{ToggleButton-CbX1kbpI.cjs → ToggleButton-D9IXRIdl.cjs} +1 -1
- package/dist/server/{createResizableSidebar-D28fY_SX.cjs → createResizableSidebar-BymQA2Fs.cjs} +1 -1
- package/dist/server/{createResizableSidebar-BfTFOM7v.js → createResizableSidebar-IcXBM-BE.js} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/{dialogFocusRestore-DKxaV82N.js → dialogFocusRestore-B4ggeVAM.js} +1 -1
- package/dist/server/{dialogFocusRestore-BAF8QM6v.cjs → dialogFocusRestore-BcMPrbig.cjs} +1 -1
- package/dist/server/format-CW_FVfq2.js +385 -0
- package/dist/server/format-x-8syaS2.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +41 -40
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +7 -6
- package/dist/server/iconScale.module-C3O0bxfp.js +13 -0
- package/dist/server/iconScale.module-CzmKG1rf.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1442 -1344
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +131 -121
- package/dist/server/overlay-stack/index.cjs +1 -1
- package/dist/server/overlay-stack/index.js +1 -1
- package/dist/server/overlayStack-DvGdPMdq.js +203 -0
- package/dist/server/overlayStack-DvKYN7SD.cjs +1 -0
- package/dist/server/{useFloatingDropdown-HD3G-ECb.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/server/{useFloatingDropdown-vYQiMh6N.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/solid/forms/Checkbox.jsx +5 -2
- package/dist/solid/forms/Input.jsx +5 -2
- package/dist/solid/forms/Textarea.jsx +5 -2
- package/dist/solid/forms/formFieldContext.js +7 -0
- package/dist/solid/grid/index.js +1 -0
- package/dist/solid/grid/resultTabToolbarClasses.js +33 -0
- package/dist/solid/index.js +1 -0
- package/dist/solid/overlay/DropdownMenu.jsx +48 -26
- package/dist/solid/overlay/DropdownMenu.module.css.js +1 -7
- package/dist/solid/overlay/index.js +2 -0
- package/dist/solid/overlay/menu/MenuParts.jsx +140 -0
- package/dist/solid/overlay/menu/MenuParts.module.css.js +34 -0
- package/dist/solid/overlay/menu/index.js +2 -0
- package/dist/solid/overlay/menu/menuSurfaceClasses.js +16 -0
- package/dist/solid/overlay/overlayStack.js +10 -3
- package/dist/solid/overlay/panelClasses.js +29 -0
- package/dist/solid/overlay/popover/Popover.jsx +1 -1
- package/dist/solid/overlay/popover/PopoverPanel.jsx +95 -0
- package/dist/solid/overlay/popover/PopoverPanel.module.css.js +22 -0
- package/dist/solid/overlay/popover/index.js +1 -0
- package/dist/solid/overlay/popover/popoverFocusNavigation.js +7 -1
- package/dist/solid/styles/detachedLayout.module.css.js +8 -0
- package/dist/solid/styles/detachedLayoutClasses.js +8 -0
- package/dist/solid/styles/hljsTheme.module.css.js +4 -0
- package/dist/solid/styles/hljsThemeClasses.js +4 -0
- package/dist/solid/styles/iconScaleClasses.js +11 -0
- package/dist/solid/styles/index.js +5 -0
- package/dist/solid/styles/menuSurface.module.css.js +17 -0
- package/dist/solid/styles/recordTable.module.css.js +6 -0
- package/dist/solid/styles/recordTableClasses.js +6 -0
- package/dist/solid/styles/widgetChrome.module.css.js +13 -0
- package/dist/solid/styles/widgetChromeClasses.js +13 -0
- package/dist/solid/widgets/index.js +1 -0
- package/dist/solid/widgets/settingsFieldClasses.js +26 -0
- package/dist/style.css +2 -2
- package/dist/styles/detachedLayoutClasses.d.cts +17 -0
- package/dist/styles/detachedLayoutClasses.d.ts +17 -0
- package/dist/styles/hljsThemeClasses.d.cts +11 -0
- package/dist/styles/hljsThemeClasses.d.ts +11 -0
- package/dist/styles/iconScaleClasses.d.cts +19 -0
- package/dist/styles/iconScaleClasses.d.ts +19 -0
- package/dist/styles/index.d.cts +5 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/recordTableClasses.d.cts +17 -0
- package/dist/styles/recordTableClasses.d.ts +17 -0
- package/dist/styles/widgetChromeClasses.d.cts +31 -0
- package/dist/styles/widgetChromeClasses.d.ts +31 -0
- package/dist/theme.css +1 -1
- package/dist/tokens/tokens.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CaQNfmfZ.js → useFloatingDropdown-CfPEYRut.js} +1 -1
- package/dist/{useFloatingDropdown-BKckfuUv.cjs → useFloatingDropdown-DcU7ozDg.cjs} +1 -1
- package/dist/widgets/index.d.cts +1 -0
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/settingsFieldClasses.d.cts +41 -0
- package/dist/widgets/settingsFieldClasses.d.ts +41 -0
- package/package.json +1 -1
- package/dist/AttributeGrid-BUyv-hUX.js +0 -260
- package/dist/AttributeGrid-Tk8KJx8e.cjs +0 -1
- package/dist/CommandPalette-CIAqAbBE.cjs +0 -2
- package/dist/CommandPalette-l_vmlEnR.js +0 -3371
- package/dist/Input-BqiQPUxA.js +0 -215
- package/dist/Input-BrxV_Xcb.cjs +0 -1
- package/dist/Popover-B8ozGuDX.cjs +0 -1
- package/dist/Textarea-CXFZz3Oe.js +0 -36
- package/dist/Textarea-vl5fZzJa.cjs +0 -1
- package/dist/format-aHRZi12I.cjs +0 -1
- package/dist/iconScale.module-BA7n9qSH.cjs +0 -1
- package/dist/iconScale.module-Cw_Yn8O6.js +0 -10
- package/dist/overlayStack-BZR1emYS.cjs +0 -1
- package/dist/overlayStack-ND6EQZlX.js +0 -196
- package/dist/server/AttributeGrid-CSidAjfz.cjs +0 -1
- package/dist/server/AttributeGrid-D6b2qQS9.js +0 -221
- package/dist/server/CommandPalette-9dL9DSG8.js +0 -2704
- package/dist/server/CommandPalette-Q296oZjU.cjs +0 -1
- package/dist/server/Input-Cxwc5CK4.js +0 -115
- package/dist/server/Input-k-IAQ5Wp.cjs +0 -1
- package/dist/server/Popover-BkZ9n6TA.cjs +0 -1
- package/dist/server/Textarea-DAoq3wWf.cjs +0 -1
- package/dist/server/Textarea-D_1mHXTj.js +0 -31
- package/dist/server/format-BWHKiXRe.cjs +0 -1
- package/dist/server/format-BubrMUMq.js +0 -382
- package/dist/server/iconScale.module-BA7n9qSH.cjs +0 -1
- package/dist/server/iconScale.module-Cw_Yn8O6.js +0 -10
- package/dist/server/overlayStack-BZR1emYS.cjs +0 -1
- package/dist/server/overlayStack-ND6EQZlX.js +0 -196
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { ssr as s, ssrAttribute as o, escape as t, createComponent as n, mergeProps as f } from "solid-js/web";
|
|
2
|
-
import { createMemo as p, onMount as k, Show as h, For as S } from "solid-js";
|
|
3
|
-
import { S as w } from "./SearchableSelect-Cog_rb31.js";
|
|
4
|
-
import { B as b } from "./Button-BhqhjFpY.js";
|
|
5
|
-
import { t as r } from "./i18n-CYq-dVvv.js";
|
|
6
|
-
import { I as P, P as m } from "./Input-Cxwc5CK4.js";
|
|
7
|
-
import { i as _ } from "./iconScale.module-Cw_Yn8O6.js";
|
|
8
|
-
import { i as B } from "./keys-B2nlkpqc.js";
|
|
9
|
-
import { V as $ } from "./VpClose-1RAQ20H9.js";
|
|
10
|
-
import { V as C } from "./VpSearch-CzVlR0ue.js";
|
|
11
|
-
import { B as z } from "./bugIndicatingError-h3J5qkL6.js";
|
|
12
|
-
import { V as I } from "./VpCheck-XZpSme0g.js";
|
|
13
|
-
function A(e, a) {
|
|
14
|
-
return e <= 0 ? a : String(e);
|
|
15
|
-
}
|
|
16
|
-
const M = "vk_paginationRow_hg8fj", O = "vk_paginationMeta_rPi8N", y = "vk_paginationActions_gD2Fz", R = "vk_paginationLabel_9x9Ah", L = "vk_paginationSelect_h5BcT", T = "vk_paginationPage_CYJRF", c = {
|
|
17
|
-
paginationRow: M,
|
|
18
|
-
paginationMeta: O,
|
|
19
|
-
paginationActions: y,
|
|
20
|
-
paginationLabel: R,
|
|
21
|
-
paginationSelect: L,
|
|
22
|
-
paginationPage: T
|
|
23
|
-
};
|
|
24
|
-
var V = ["<div", "><span", ">", "</span><div", "><label", ">", "", "</label>", "<span", ">", " / ", "</span>", "</div></div>"];
|
|
25
|
-
function me(e) {
|
|
26
|
-
const a = p(() => {
|
|
27
|
-
const i = r("Unlimited");
|
|
28
|
-
return e.pageSizeOptions.map((v) => ({
|
|
29
|
-
value: String(v),
|
|
30
|
-
label: A(v, i)
|
|
31
|
-
}));
|
|
32
|
-
});
|
|
33
|
-
return s(V, o("class", t(c.paginationRow, !0), !1), o("class", t(c.paginationMeta, !0), !1), t(r("Showing {shown} of {total} items", {
|
|
34
|
-
shown: e.shownCount(),
|
|
35
|
-
total: e.totalCount()
|
|
36
|
-
})), o("class", t(c.paginationActions, !0), !1), o("class", t(c.paginationLabel, !0), !1), t(r("Page size")), t(n(w, {
|
|
37
|
-
size: "sm",
|
|
38
|
-
get class() {
|
|
39
|
-
return c.paginationSelect;
|
|
40
|
-
},
|
|
41
|
-
get value() {
|
|
42
|
-
return String(e.pageSize());
|
|
43
|
-
},
|
|
44
|
-
get options() {
|
|
45
|
-
return a();
|
|
46
|
-
},
|
|
47
|
-
onChange: (i) => {
|
|
48
|
-
e.onPageSizeChange(Number(i));
|
|
49
|
-
},
|
|
50
|
-
searchable: !1,
|
|
51
|
-
get ariaLabel() {
|
|
52
|
-
return r("Page size");
|
|
53
|
-
}
|
|
54
|
-
})), t(n(b, {
|
|
55
|
-
size: "sm",
|
|
56
|
-
variant: "secondary",
|
|
57
|
-
get disabled() {
|
|
58
|
-
return e.page() <= 1;
|
|
59
|
-
},
|
|
60
|
-
onClick: () => e.onPageChange(Math.max(1, e.page() - 1)),
|
|
61
|
-
get children() {
|
|
62
|
-
return r("Previous");
|
|
63
|
-
}
|
|
64
|
-
})), o("class", t(c.paginationPage, !0), !1), t(e.page()), t(e.totalPages()), t(n(b, {
|
|
65
|
-
size: "sm",
|
|
66
|
-
variant: "secondary",
|
|
67
|
-
get disabled() {
|
|
68
|
-
return e.page() >= e.totalPages();
|
|
69
|
-
},
|
|
70
|
-
onClick: () => e.onPageChange(Math.min(e.totalPages(), e.page() + 1)),
|
|
71
|
-
get children() {
|
|
72
|
-
return r("Next");
|
|
73
|
-
}
|
|
74
|
-
})));
|
|
75
|
-
}
|
|
76
|
-
const x = "vk_toolbarBtnActive_UgTBV", F = "vk_toolbarSettingsBtn_XXfMz", N = "vk_toolbarIcon_0FvlL", u = {
|
|
77
|
-
toolbarBtnActive: x,
|
|
78
|
-
toolbarSettingsBtn: F,
|
|
79
|
-
toolbarIcon: N
|
|
80
|
-
}, K = "vk_searchRow_2pwXX", X = "vk_searchInput_PbDtG", D = "vk_clearBtn_upa-E", g = {
|
|
81
|
-
searchRow: K,
|
|
82
|
-
searchInput: X,
|
|
83
|
-
clearBtn: D
|
|
84
|
-
};
|
|
85
|
-
var E = ["<div", ">", "", "</div>"];
|
|
86
|
-
function _e(e) {
|
|
87
|
-
return n(m, {
|
|
88
|
-
type: "button",
|
|
89
|
-
get class() {
|
|
90
|
-
return `${u.toolbarSettingsBtn} ${e.active ? u.toolbarBtnActive : ""}`;
|
|
91
|
-
},
|
|
92
|
-
get onClick() {
|
|
93
|
-
return e.onToggle;
|
|
94
|
-
},
|
|
95
|
-
get "aria-pressed"() {
|
|
96
|
-
return e.active;
|
|
97
|
-
},
|
|
98
|
-
get "aria-label"() {
|
|
99
|
-
return r("Search");
|
|
100
|
-
},
|
|
101
|
-
get title() {
|
|
102
|
-
return r("Search");
|
|
103
|
-
},
|
|
104
|
-
get children() {
|
|
105
|
-
return n(C, {
|
|
106
|
-
get class() {
|
|
107
|
-
return u.toolbarIcon;
|
|
108
|
-
},
|
|
109
|
-
"aria-hidden": "true"
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function fe(e) {
|
|
115
|
-
let a;
|
|
116
|
-
return k(() => a == null ? void 0 : a.focus()), s(E, o("class", t(g.searchRow, !0), !1), t(n(P, f({
|
|
117
|
-
get class() {
|
|
118
|
-
return g.searchInput;
|
|
119
|
-
},
|
|
120
|
-
type: "search",
|
|
121
|
-
size: "sm",
|
|
122
|
-
get value() {
|
|
123
|
-
return e.value;
|
|
124
|
-
},
|
|
125
|
-
onInput: (i) => e.onInput(i.currentTarget.value),
|
|
126
|
-
onKeyDown: (i) => {
|
|
127
|
-
B(i, "Escape") && e.onClose();
|
|
128
|
-
},
|
|
129
|
-
get placeholder() {
|
|
130
|
-
return e.placeholder ?? r("Search…");
|
|
131
|
-
}
|
|
132
|
-
}, () => e.disabled !== void 0 ? {
|
|
133
|
-
disabled: e.disabled
|
|
134
|
-
} : {}))), t(n(h, {
|
|
135
|
-
get when() {
|
|
136
|
-
return e.value.length > 0;
|
|
137
|
-
},
|
|
138
|
-
get children() {
|
|
139
|
-
return n(m, {
|
|
140
|
-
type: "button",
|
|
141
|
-
get class() {
|
|
142
|
-
return g.clearBtn;
|
|
143
|
-
},
|
|
144
|
-
onClick: () => e.onInput(""),
|
|
145
|
-
get "aria-label"() {
|
|
146
|
-
return r("Clear search");
|
|
147
|
-
},
|
|
148
|
-
get title() {
|
|
149
|
-
return r("Clear search");
|
|
150
|
-
},
|
|
151
|
-
get children() {
|
|
152
|
-
return n($, {
|
|
153
|
-
get class() {
|
|
154
|
-
return _.iconSm;
|
|
155
|
-
},
|
|
156
|
-
"aria-hidden": "true"
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
})));
|
|
162
|
-
}
|
|
163
|
-
function U(e, a) {
|
|
164
|
-
const i = `${a}: `;
|
|
165
|
-
throw new z(
|
|
166
|
-
`${i}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
const G = "vk_grid_uK6pm", J = "vk_card_33OV3", Z = "vk_item_UeZrE", j = "vk_label_a-LFz", q = "vk_value_9ZQBt", H = "vk_valueMono_knknq", Q = "vk_boolOn_5zd-H", Y = "vk_boolOff_-6I4K", W = "vk_stacked_2T--a", l = {
|
|
170
|
-
grid: G,
|
|
171
|
-
card: J,
|
|
172
|
-
item: Z,
|
|
173
|
-
label: j,
|
|
174
|
-
value: q,
|
|
175
|
-
valueMono: H,
|
|
176
|
-
boolOn: Q,
|
|
177
|
-
boolOff: Y,
|
|
178
|
-
stacked: W
|
|
179
|
-
};
|
|
180
|
-
var d = ["<span", ">", "</span>"], ee = ['<span class="', '">', "</span>"], te = ['<div class="', '">', "</div>"], ae = ["<div", "><span", ">", "</span>", "</div>"];
|
|
181
|
-
function ne(e, a) {
|
|
182
|
-
switch (e.kind) {
|
|
183
|
-
case "text":
|
|
184
|
-
return s(d, o("class", t(l.value, !0), !1), t(e.value(a)));
|
|
185
|
-
case "mono":
|
|
186
|
-
return s(d, o("class", t(l.valueMono, !0), !1), t(e.value(a)));
|
|
187
|
-
case "bool":
|
|
188
|
-
return s(ee, `${t(l.value, !0)} ${e.on(a) ? t(l.boolOn, !0) : t(l.boolOff, !0)}`, e.on(a) ? t(n(I, {
|
|
189
|
-
get class() {
|
|
190
|
-
return _.iconSm;
|
|
191
|
-
},
|
|
192
|
-
"aria-hidden": "true"
|
|
193
|
-
})) : "—");
|
|
194
|
-
case "custom":
|
|
195
|
-
return e.render(a);
|
|
196
|
-
default:
|
|
197
|
-
return U(e, "AttributeField.kind");
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
function pe(e) {
|
|
201
|
-
return n(h, {
|
|
202
|
-
get when() {
|
|
203
|
-
return e.row() != null;
|
|
204
|
-
},
|
|
205
|
-
get children() {
|
|
206
|
-
return s(te, `${t(l.grid, !0)} ${t(l[e.variant] ?? "", !0)}`, t(n(S, {
|
|
207
|
-
get each() {
|
|
208
|
-
return e.fields;
|
|
209
|
-
},
|
|
210
|
-
children: (a) => s(ae, o("class", t(l.item, !0), !1), o("class", t(l.label, !0), !1), t(a.label), t(ne(a, e.row())))
|
|
211
|
-
})));
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
export {
|
|
216
|
-
pe as A,
|
|
217
|
-
me as P,
|
|
218
|
-
fe as T,
|
|
219
|
-
_e as a,
|
|
220
|
-
A as p
|
|
221
|
-
};
|