@konstructio/ui 0.1.2-alpha.103 → 0.1.2-alpha.105
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/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/{AlertDialogTrigger-CgcsW_ta.js → AlertDialogTrigger-BGo_acd5.js} +3 -3
- package/dist/{Checkbox-DzAx7n67.js → Checkbox-B_ngk9Dj.js} +56 -56
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-BnvRMfLI.js → CommandInput-BLq69pOT.js} +1 -1
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/{FlagSelectorList-BoYG-_It.js → FlagSelectorList-CkTR3j6O.js} +222 -218
- package/dist/{HamburgerTrigger-1vOTrm8-.js → HamburgerTrigger-DRylBL2d.js} +1 -1
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-CW0VwW2T.js → Input-Cf44DzfE.js} +18 -18
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-Lw9mZYhg.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/{Switch-WBRr8uOJ.js → Switch-aPhL5rNG.js} +4 -4
- package/dist/{Toast-ByH-l4XK.js → Toast-3NEz7LLa.js} +149 -148
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-XeeD3av7.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/Wrapper-R8fik3ah.js +182 -0
- package/dist/components/Alert/Alert.js +21 -21
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +6 -6
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +13 -13
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +23 -22
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -56
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +30 -43
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +36 -49
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +31 -45
- package/dist/components/Filter/contexts/filter.provider.js +15 -10
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +2 -2
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +28 -39
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -29
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +0 -2
- package/dist/components/VirtualizedTable/components/Body/Body.js +5 -5
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -53
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +95 -89
- package/dist/{components-BIHlj4yH.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{dist-DISvWx7U.js → dist-BUocnzkM.js} +1 -1
- package/dist/{dist-Dse3gSmZ.js → dist-BZNE2Tnx.js} +4 -4
- package/dist/{dist-2bGlmy8N2.js → dist-BaPW7qXd2.js} +27 -26
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/{dist-BiJrNvNo.js → dist-C3YVLapk.js} +29 -28
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/{dist-C2aTw0m62.js → dist-DFCz63oC2.js} +5 -5
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/{dist-CTvBzxW8.js → dist-DX0sBG3Q.js} +1 -1
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/{dist-CVDFmWf2.js → dist-tGUUcv8n.js} +17 -16
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/{es2015-BWf6xQHm.js → es2015-CoHq2g4y.js} +95 -86
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +146 -138
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +2 -0
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +2 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -3
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +6 -5
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +24 -24
- package/dist/styles.css +1 -1
- package/dist/{table.provider-2sAkE7z_.js → table.provider-B0BafHuU.js} +395 -381
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/package.json +24 -24
- package/dist/Counter-CY0xGnVM.js +0 -208
- package/dist/DropdownButton-DnlwdPmb.js +0 -92
- package/dist/Modal-Bfzggwlr.js +0 -76
- package/dist/Wrapper-ClJ_Mham.js +0 -110
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BuFiu480.js +0 -13
- package/dist/dist-C2s4VX-42.js +0 -31
- package/dist/dist-CT6d9xe7.js +0 -441
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-D4FePjTS.js +0 -194
- package/dist/dist-Db6UeFo4.js +0 -291
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-j7FOUrFU.js +0 -206
- package/dist/dist-l-aDnQZC.js +0 -62
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
|
@@ -1,64 +1,65 @@
|
|
|
1
1
|
import { o as z } from "../../../../rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { t as V } from "../../../../Input-
|
|
2
|
+
import { t as V } from "../../../../Input-Cf44DzfE.js";
|
|
3
3
|
import { t as $ } from "../../../../utils-Cx-WzRZF.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { resetEvent as
|
|
6
|
-
import { Filter as
|
|
7
|
-
import { t as
|
|
8
|
-
import { useTableContext as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import { Button as G } from "../../../Button/Button.js";
|
|
5
|
+
import { resetEvent as H } from "../../../Filter/events/index.js";
|
|
6
|
+
import { Filter as o } from "../../../Filter/Filter.js";
|
|
7
|
+
import { t as J } from "../../../../debounce-C5Ycjilj.js";
|
|
8
|
+
import { useTableContext as K } from "../../contexts/table.hook.js";
|
|
9
|
+
import { getTableId as Q } from "../../utils/get-table-id.js";
|
|
10
|
+
import { t as U } from "../../../../events.types-BG1Uh8i6.js";
|
|
11
|
+
import { useEffect as W, useMemo as X, useRef as Y } from "react";
|
|
12
|
+
import { jsx as n, jsxs as u } from "react/jsx-runtime";
|
|
13
|
+
var Z = /* @__PURE__ */ z(J(), 1), ie = ({ id: i, actions: d, filters: h, multiSelectFilter: b, placeholder: y, showFilterInput: F = !0, showResetButton: v = !0, resetButtonClassName: S, closeOnApply: R = !0 }) => {
|
|
14
|
+
const s = Y(null), m = Q(i), { termOfSearch: T, multiselectSelected: w, dateFilters: D, dateRangeFilters: x, timeFilters: M, onChangeTermOfSearch: l, onSelectMultiselect: E, onSelectDateFilter: j, onSelectDateRangeFilter: k, onSelectTimeFilter: I } = K(), O = [...h ?? b?.map((e) => ({
|
|
14
15
|
...e,
|
|
15
16
|
type: "badgeMultiSelect"
|
|
16
|
-
})) ?? [], ...
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
17
|
+
})) ?? [], ...d ?? []], p = (e, t) => {
|
|
18
|
+
E(e, t.map((a) => a.id));
|
|
19
|
+
}, A = () => {
|
|
20
|
+
l(""), s.current && (s.current.value = "");
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
const e =
|
|
23
|
-
return document.addEventListener(
|
|
24
|
-
const { detail:
|
|
25
|
-
|
|
26
|
-
}, { signal:
|
|
27
|
-
}, [m,
|
|
28
|
-
const B =
|
|
29
|
-
|
|
30
|
-
}, 500), [
|
|
22
|
+
W(() => {
|
|
23
|
+
const e = new AbortController();
|
|
24
|
+
return document.addEventListener(U.RESET_FILTERS, (t) => {
|
|
25
|
+
const { detail: a } = t;
|
|
26
|
+
a.tableId === m && (l(""), s.current && (s.current.value = ""), H(m));
|
|
27
|
+
}, { signal: e.signal }), () => e.abort();
|
|
28
|
+
}, [m, l]);
|
|
29
|
+
const B = X(() => (0, Z.default)((e) => {
|
|
30
|
+
l(e.target.value);
|
|
31
|
+
}, 500), [l]), _ = !!T || Object.values(w ?? {}).flat().length > 0 || Object.values(D ?? {}).some(Boolean) || Object.values(x ?? {}).some(Boolean) || Object.values(M ?? {}).some(Boolean), P = (e) => {
|
|
31
32
|
if (e.type === "action") {
|
|
32
|
-
const { label: r, appearance:
|
|
33
|
-
return /* @__PURE__ */ u(
|
|
34
|
-
appearance:
|
|
35
|
-
variant:
|
|
33
|
+
const { label: r, appearance: N = "compact", variant: g = "secondary", leftIcon: L, rightIcon: f, type: C, ...q } = e;
|
|
34
|
+
return /* @__PURE__ */ u(G, {
|
|
35
|
+
appearance: N,
|
|
36
|
+
variant: g,
|
|
36
37
|
...q,
|
|
37
38
|
children: [
|
|
38
|
-
|
|
39
|
+
L,
|
|
39
40
|
r,
|
|
40
|
-
|
|
41
|
+
f
|
|
41
42
|
]
|
|
42
43
|
}, r);
|
|
43
44
|
}
|
|
44
|
-
const { key: t, label: a, position:
|
|
45
|
-
return e.type === "textMultiSelect" ? /* @__PURE__ */
|
|
45
|
+
const { key: t, label: a, position: c = "right" } = e;
|
|
46
|
+
return e.type === "textMultiSelect" ? /* @__PURE__ */ n(o.TextMultiSelect, {
|
|
46
47
|
label: a,
|
|
47
|
-
position:
|
|
48
|
+
position: c,
|
|
48
49
|
options: e.options,
|
|
49
50
|
onApply: (r) => {
|
|
50
51
|
p(t, r);
|
|
51
52
|
}
|
|
52
|
-
}, t) : e.type === "date" ? /* @__PURE__ */
|
|
53
|
+
}, t) : e.type === "date" ? /* @__PURE__ */ n(o.DateFilterDropdown, {
|
|
53
54
|
label: a,
|
|
54
|
-
position:
|
|
55
|
+
position: c,
|
|
55
56
|
countryCode: e.countryCode,
|
|
56
57
|
onApply: (r) => {
|
|
57
58
|
j(t, r);
|
|
58
59
|
}
|
|
59
|
-
}, t) : e.type === "dateRange" ? /* @__PURE__ */
|
|
60
|
+
}, t) : e.type === "dateRange" ? /* @__PURE__ */ n(o.DateRangeFilterDropdown, {
|
|
60
61
|
label: a,
|
|
61
|
-
position:
|
|
62
|
+
position: c,
|
|
62
63
|
showTime: e.showTime,
|
|
63
64
|
timeFormat: e.timeFormat,
|
|
64
65
|
showPresets: e.showPresets,
|
|
@@ -67,21 +68,21 @@ var X = /* @__PURE__ */ z(H(), 1), me = ({ id: m, actions: i, filters: d, multiS
|
|
|
67
68
|
maxDate: e.maxDate,
|
|
68
69
|
countryCode: e.countryCode,
|
|
69
70
|
onApply: (r) => {
|
|
70
|
-
|
|
71
|
+
k(t, r);
|
|
71
72
|
},
|
|
72
73
|
onRangeChange: e.onRangeChange
|
|
73
|
-
}, t) : e.type === "time" ? /* @__PURE__ */
|
|
74
|
+
}, t) : e.type === "time" ? /* @__PURE__ */ n(o.TimeFilterDropdown, {
|
|
74
75
|
label: a,
|
|
75
|
-
position:
|
|
76
|
+
position: c,
|
|
76
77
|
format: e.format,
|
|
77
78
|
presets: e.presets,
|
|
78
79
|
showTimePicker: e.showTimePicker,
|
|
79
80
|
onApply: (r) => {
|
|
80
|
-
|
|
81
|
+
I(t, r);
|
|
81
82
|
}
|
|
82
|
-
}, t) : /* @__PURE__ */
|
|
83
|
+
}, t) : /* @__PURE__ */ n(o.BadgeMultiSelect, {
|
|
83
84
|
label: a,
|
|
84
|
-
position:
|
|
85
|
+
position: c,
|
|
85
86
|
options: e.options,
|
|
86
87
|
onApply: (r) => {
|
|
87
88
|
p(t, r);
|
|
@@ -90,25 +91,26 @@ var X = /* @__PURE__ */ z(H(), 1), me = ({ id: m, actions: i, filters: d, multiS
|
|
|
90
91
|
};
|
|
91
92
|
return /* @__PURE__ */ u("div", {
|
|
92
93
|
className: "kvt-filter w-full flex items-center justify-end pb-6",
|
|
93
|
-
children: [F && /* @__PURE__ */
|
|
94
|
-
ref:
|
|
94
|
+
children: [F && /* @__PURE__ */ n(V, {
|
|
95
|
+
ref: s,
|
|
95
96
|
placeholder: y,
|
|
96
97
|
isSearch: !0,
|
|
97
98
|
autoComplete: "false",
|
|
98
99
|
className: "kvt-search w-72",
|
|
99
100
|
inputMode: "search",
|
|
100
101
|
onChange: B
|
|
101
|
-
}), /* @__PURE__ */ u(
|
|
102
|
+
}), /* @__PURE__ */ u(o, {
|
|
102
103
|
className: "kvt-filter-actions",
|
|
103
|
-
closeOnApply:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
closeOnApply: R,
|
|
105
|
+
resetScope: m,
|
|
106
|
+
children: [O.map(P), v && /* @__PURE__ */ n(o.ResetButton, {
|
|
107
|
+
className: $("select-none", S),
|
|
108
|
+
disabled: !_,
|
|
109
|
+
onClick: A
|
|
108
110
|
})]
|
|
109
111
|
})]
|
|
110
112
|
});
|
|
111
113
|
};
|
|
112
114
|
export {
|
|
113
|
-
|
|
115
|
+
ie as Filter
|
|
114
116
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as s } from "../../../../Input-
|
|
1
|
+
import { t as s } from "../../../../Input-Cf44DzfE.js";
|
|
2
2
|
import { Button as i } from "../../../Button/Button.js";
|
|
3
3
|
import { Typography as p } from "../../../Typography/Typography.js";
|
|
4
4
|
import { useTableContext as u } from "../../contexts/table.hook.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { n as g } from "../../../../table.provider-
|
|
2
|
+
import { n as g } from "../../../../table.provider-B0BafHuU.js";
|
|
3
3
|
import { useTableContext as k } from "../../contexts/table.hook.js";
|
|
4
4
|
import u from "../../assets/chevron-up.js";
|
|
5
5
|
import C from "../../assets/chevron-down.js";
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tableId: t,
|
|
6
|
-
rowId: e
|
|
7
|
-
} }));
|
|
8
|
-
}, i = (t, e) => {
|
|
9
|
-
document.dispatchEvent(new CustomEvent("@konstructio/VirtualizedTable/event-COLLAPSE_ROW", { detail: {
|
|
10
|
-
tableId: t,
|
|
11
|
-
rowId: e
|
|
12
|
-
} }));
|
|
13
|
-
}, E = (t, e) => {
|
|
14
|
-
document.dispatchEvent(new CustomEvent("@konstructio/VirtualizedTable/event-TOGGLE_ROW", { detail: {
|
|
15
|
-
tableId: t,
|
|
16
|
-
rowId: e
|
|
17
|
-
} }));
|
|
18
|
-
}, a = (t) => {
|
|
19
|
-
document.dispatchEvent(new CustomEvent("@konstructio/VirtualizedTable/event-RESET_FILTERS", { detail: { tableId: t } }));
|
|
20
|
-
};
|
|
1
|
+
import { t } from "../../../events.types-BG1Uh8i6.js";
|
|
2
|
+
import { sendResetFiltersEvent as n } from "./filters/filters.js";
|
|
3
|
+
import { sendRefreshEvent as s } from "./refresh/refresh.js";
|
|
4
|
+
import { sendCollapseRowEvent as d, sendExpandRowEvent as i, sendToggleRowEvent as p } from "./row/row.js";
|
|
21
5
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
t as VirtualizedTableEvent,
|
|
7
|
+
d as sendCollapseRowEvent,
|
|
8
|
+
i as sendExpandRowEvent,
|
|
9
|
+
s as sendRefreshEvent,
|
|
10
|
+
n as sendResetFiltersEvent,
|
|
11
|
+
p as sendToggleRowEvent
|
|
27
12
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as n } from "../../../../events.types-BG1Uh8i6.js";
|
|
2
|
+
var d = (e, t) => {
|
|
3
|
+
document.dispatchEvent(new CustomEvent(n.EXPAND_ROW, { detail: {
|
|
4
|
+
tableId: e,
|
|
5
|
+
rowId: t
|
|
6
|
+
} }));
|
|
7
|
+
}, o = (e, t) => {
|
|
8
|
+
document.dispatchEvent(new CustomEvent(n.COLLAPSE_ROW, { detail: {
|
|
9
|
+
tableId: e,
|
|
10
|
+
rowId: t
|
|
11
|
+
} }));
|
|
12
|
+
}, E = (e, t) => {
|
|
13
|
+
document.dispatchEvent(new CustomEvent(n.TOGGLE_ROW, { detail: {
|
|
14
|
+
tableId: e,
|
|
15
|
+
rowId: t
|
|
16
|
+
} }));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
o as sendCollapseRowEvent,
|
|
20
|
+
d as sendExpandRowEvent,
|
|
21
|
+
E as sendToggleRowEvent
|
|
22
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getTableId as o } from "./get-table-id.js";
|
|
2
|
+
import { isPaginationBarVisible as t } from "./pagination.js";
|
|
2
3
|
export {
|
|
3
|
-
o as
|
|
4
|
+
o as getTableId,
|
|
5
|
+
t as isPaginationBarVisible
|
|
4
6
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as o } from "../Checkbox-
|
|
2
|
-
import { t as m } from "../DropdownButton-
|
|
1
|
+
import { t as o } from "../Checkbox-B_ngk9Dj.js";
|
|
2
|
+
import { t as m } from "../DropdownButton-DfNojmCW.js";
|
|
3
3
|
import { t as p } from "../Breadcrumb-Cp3abB2w.js";
|
|
4
|
-
import { t as a } from "../Input-
|
|
5
|
-
import { t as n } from "../Counter-
|
|
4
|
+
import { t as a } from "../Input-Cf44DzfE.js";
|
|
5
|
+
import { t as n } from "../Counter-BV680M5r.js";
|
|
6
6
|
import { Alert as l } from "./Alert/Alert.js";
|
|
7
7
|
import { Button as g } from "./Button/Button.js";
|
|
8
|
-
import { AlertDialog as
|
|
8
|
+
import { AlertDialog as T } from "./AlertDialog/AlertDialog.js";
|
|
9
9
|
import { Autocomplete as D } from "./Autocomplete/Autocomplete.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { Badge as
|
|
12
|
-
import { Typography as
|
|
10
|
+
import { t as R } from "../Loading-DUh9PMJN.js";
|
|
11
|
+
import { Badge as b } from "./Badge/Badge.js";
|
|
12
|
+
import { Typography as w } from "./Typography/Typography.js";
|
|
13
13
|
import { ButtonGroup as h } from "./ButtonGroup/ButtonGroup.js";
|
|
14
|
-
import { Card as
|
|
15
|
-
import { DatePicker as
|
|
14
|
+
import { Card as E } from "./Card/Card.js";
|
|
15
|
+
import { DatePicker as x } from "./Datepicker/DatePicker.js";
|
|
16
16
|
import { Radio as I } from "./Radio/Radio.js";
|
|
17
17
|
import { RadioGroup as P } from "./RadioGroup/RadioGroup.js";
|
|
18
18
|
import { TimePicker as A } from "./TimePicker/TimePicker.js";
|
|
@@ -25,121 +25,127 @@ import { DateRangeFilterDropdown as K } from "./Filter/components/DateRangeFilte
|
|
|
25
25
|
import { TextMultiSelect as X } from "./Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
26
26
|
import { TimeFilterDropdown as Z } from "./Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
27
27
|
import { Filter as $ } from "./Filter/Filter.js";
|
|
28
|
-
import { t as or } from "../ImageUpload-
|
|
28
|
+
import { t as or } from "../ImageUpload-DiwymQcU.js";
|
|
29
29
|
import { LineChart as mr } from "./LineChart/LineChart.js";
|
|
30
|
-
import { t as pr } from "../Modal-
|
|
31
|
-
import { t as ar } from "../components-
|
|
30
|
+
import { t as pr } from "../Modal-Dyn088X7.js";
|
|
31
|
+
import { t as ar } from "../components-Cf345jTv.js";
|
|
32
32
|
import { PhoneNumberInput as nr } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
33
33
|
import { PieChart as lr } from "./PieChart/PieChart.js";
|
|
34
34
|
import { ProgressBar as gr } from "./ProgressBar/ProgressBar.js";
|
|
35
|
-
import { RadioCard as
|
|
35
|
+
import { RadioCard as Tr } from "./RadioCard/RadioCard.js";
|
|
36
36
|
import { RadioCardGroup as Dr } from "./RadioCardGroup/RadioCardGroup.js";
|
|
37
|
-
import { Range as
|
|
38
|
-
import { Select as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
37
|
+
import { Range as Rr } from "./Range/Range.js";
|
|
38
|
+
import { Select as br } from "./Select/Select.js";
|
|
39
|
+
import { CollapseTrigger as wr } from "./Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
40
|
+
import { Footer as hr } from "./Sidebar/components/Footer/Footer.js";
|
|
41
|
+
import { Label as Er } from "./Sidebar/components/Label/Label.js";
|
|
42
|
+
import { Logo as xr } from "./Sidebar/components/Logo/Logo.js";
|
|
43
|
+
import { NavigationGroup as Ir } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
44
|
+
import { NavigationOption as Pr } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
45
|
+
import { NavigationSeparator as Ar } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
46
|
+
import { Navigation as Mr } from "./Sidebar/components/Navigation/Navigation.js";
|
|
47
|
+
import { Sidebar as yr } from "./Sidebar/Sidebar.js";
|
|
48
|
+
import { Slider as Ur } from "./Slider/Slider.js";
|
|
49
|
+
import { t as jr } from "../Spinner-CUwE2bLm.js";
|
|
50
|
+
import { horizontalConnectorWrapperVariants as Hr, stepConnectorVariants as Jr, stepContentVariants as Kr, stepDescriptionVariants as Qr, stepIndicatorVariants as Xr, stepItemVariants as Yr, stepLabelVariants as Zr, stepListVariants as _r, stepVariants as $r, stepperVariants as ro } from "./Stepper/Stepper.variants.js";
|
|
51
|
+
import { Stepper as to } from "./Stepper/Stepper.js";
|
|
52
|
+
import { t as io } from "../Switch-aPhL5rNG.js";
|
|
53
|
+
import { Table as eo } from "./Table/Table.js";
|
|
54
|
+
import { Content as fo } from "./Tabs/components/Content.js";
|
|
55
|
+
import { List as so } from "./Tabs/components/List.js";
|
|
56
|
+
import { Trigger as go } from "./Tabs/components/Trigger.js";
|
|
57
|
+
import { Tabs as To } from "./Tabs/Tabs.js";
|
|
58
|
+
import { Tag as Do } from "./Tag/Tag.js";
|
|
59
|
+
import { TagSelect as Ro } from "./TagSelect/TagSelect.js";
|
|
60
|
+
import { TextArea as bo } from "./TextArea/TextArea.js";
|
|
61
|
+
import { t as wo } from "../Toast-3NEz7LLa.js";
|
|
62
|
+
import { Tooltip as ho } from "./Tooltip/Tooltip.js";
|
|
63
|
+
import { t as Eo } from "../events.types-BG1Uh8i6.js";
|
|
64
|
+
import { sendResetFiltersEvent as xo } from "./VirtualizedTable/events/filters/filters.js";
|
|
65
|
+
import { sendRefreshEvent as Io } from "./VirtualizedTable/events/refresh/refresh.js";
|
|
66
|
+
import { sendCollapseRowEvent as Po, sendExpandRowEvent as ko, sendToggleRowEvent as Ao } from "./VirtualizedTable/events/row/row.js";
|
|
67
|
+
import { TruncateText as Mo } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
68
|
+
import { VirtualizedTable as yo } from "./VirtualizedTable/VirtualizedTable.js";
|
|
65
69
|
export {
|
|
66
70
|
l as Alert,
|
|
67
|
-
|
|
71
|
+
T as AlertDialog,
|
|
68
72
|
D as Autocomplete,
|
|
69
|
-
|
|
73
|
+
b as Badge,
|
|
70
74
|
j as BadgeMultiSelect,
|
|
71
75
|
p as Breadcrumb,
|
|
72
76
|
g as Button,
|
|
73
77
|
h as ButtonGroup,
|
|
74
|
-
|
|
78
|
+
E as Card,
|
|
75
79
|
o as Checkbox,
|
|
76
|
-
|
|
80
|
+
wr as CollapseTrigger,
|
|
81
|
+
fo as Content,
|
|
77
82
|
n as Counter,
|
|
78
83
|
H as DateFilterDropdown,
|
|
79
|
-
|
|
84
|
+
x as DatePicker,
|
|
80
85
|
K as DateRangeFilterDropdown,
|
|
81
86
|
M as DateRangePicker,
|
|
82
87
|
y as Divider,
|
|
83
88
|
U as Drawer,
|
|
84
|
-
|
|
89
|
+
br as Dropdown,
|
|
85
90
|
m as DropdownButton,
|
|
86
91
|
$ as Filter,
|
|
87
|
-
|
|
92
|
+
hr as Footer,
|
|
88
93
|
or as ImageUpload,
|
|
89
94
|
a as Input,
|
|
90
|
-
|
|
95
|
+
Er as Label,
|
|
91
96
|
mr as LineChart,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
so as List,
|
|
98
|
+
R as Loading,
|
|
99
|
+
xr as Logo,
|
|
95
100
|
pr as Modal,
|
|
96
101
|
ar as MultiSelectDropdown,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
Mr as Navigation,
|
|
103
|
+
Ir as NavigationGroup,
|
|
104
|
+
Pr as NavigationOption,
|
|
105
|
+
Ar as NavigationSeparator,
|
|
101
106
|
n as NumberInput,
|
|
102
107
|
nr as PhoneNumberInput,
|
|
103
108
|
lr as PieChart,
|
|
104
109
|
gr as ProgressBar,
|
|
105
110
|
I as Radio,
|
|
106
|
-
|
|
111
|
+
Tr as RadioCard,
|
|
107
112
|
Dr as RadioCardGroup,
|
|
108
113
|
P as RadioGroup,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
Rr as Range,
|
|
115
|
+
br as Select,
|
|
116
|
+
yr as Sidebar,
|
|
117
|
+
Ur as Slider,
|
|
118
|
+
jr as Spinner,
|
|
119
|
+
to as Stepper,
|
|
120
|
+
io as Switch,
|
|
121
|
+
eo as Table,
|
|
122
|
+
To as Tabs,
|
|
123
|
+
Do as Tag,
|
|
124
|
+
Ro as TagSelect,
|
|
125
|
+
bo as TextArea,
|
|
121
126
|
X as TextMultiSelect,
|
|
122
127
|
Z as TimeFilterDropdown,
|
|
123
128
|
A as TimePicker,
|
|
124
129
|
wo as Toast,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
ho as Tooltip,
|
|
131
|
+
go as Trigger,
|
|
132
|
+
Mo as TruncateText,
|
|
133
|
+
w as Typography,
|
|
134
|
+
yo as VirtualizedTable,
|
|
135
|
+
Eo as VirtualizedTableEvent,
|
|
136
|
+
Hr as horizontalConnectorWrapperVariants,
|
|
137
|
+
Po as sendCollapseRowEvent,
|
|
138
|
+
ko as sendExpandRowEvent,
|
|
139
|
+
Io as sendRefreshEvent,
|
|
134
140
|
xo as sendResetFiltersEvent,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
Ao as sendToggleRowEvent,
|
|
142
|
+
Jr as stepConnectorVariants,
|
|
143
|
+
Kr as stepContentVariants,
|
|
144
|
+
Qr as stepDescriptionVariants,
|
|
145
|
+
Xr as stepIndicatorVariants,
|
|
146
|
+
Yr as stepItemVariants,
|
|
147
|
+
Zr as stepLabelVariants,
|
|
148
|
+
_r as stepListVariants,
|
|
149
|
+
$r as stepVariants,
|
|
150
|
+
ro as stepperVariants
|
|
145
151
|
};
|