@konstructio/ui 0.1.2-alpha.119 → 0.1.2-alpha.120
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/Breadcrumb-DDRmDlWK.js +93 -0
- package/dist/{Checkbox-DRdyrKjk.js → Checkbox-DrounE52.js} +2 -2
- package/dist/{CollapsedSteps-CR7oCTRC.js → CollapsedSteps-DvBeYShi.js} +3 -3
- package/dist/{CommandInput-Du2o616y.js → CommandInput-_vujzQ6B.js} +2 -2
- package/dist/{Counter-DMkXIsOO.js → Counter-LQ5_uh06.js} +2 -2
- package/dist/{DayPicker-BtpJg2q3.js → DayPicker-D7KFB2bI.js} +383 -383
- package/dist/DropdownButton-BWfWN4fg.js +121 -0
- package/dist/{HamburgerTrigger-BgeS_nBA.js → HamburgerTrigger-CfrAnhmG.js} +10 -10
- package/dist/{Input-2M2I_H60.js → Input-O2bqyJKW.js} +2 -2
- package/dist/Modal-B-l4ii6w.js +84 -0
- package/dist/{Wrapper-JmStmade.js → Wrapper-B5PmrW4J.js} +3 -3
- package/dist/{Wrapper-ThpRi_Gg.js → Wrapper-CZCSSCLm.js} +2 -2
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
- package/dist/components/Breadcrumb/components/index.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -0
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +7 -5
- package/dist/components/CopyButton/CopyButton.variants.js +3 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.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/Datepicker/components/DatePickerContent/DatePickerContent.js +1 -1
- package/dist/components/Drawer/Drawer.js +78 -58
- package/dist/components/Drawer/Drawer.variants.js +40 -22
- package/dist/components/Drawer/components/Footer/Footer.js +5 -5
- package/dist/components/Drawer/constants/index.js +5 -4
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/DropdownButton/components/ActionSheet/ActionSheet.js +34 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/utils/index.js +2 -2
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +1 -0
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +12 -6
- package/dist/components/Modal/components/index.js +1 -1
- 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/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +1 -1
- package/dist/components/Select/Select.variants.js +2 -0
- package/dist/components/Select/components/List/List.js +2 -2
- package/dist/components/Sheet/Sheet.js +130 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +103 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +13 -13
- 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/TextArea/TextArea.variants.js +1 -0
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +7 -7
- package/dist/components/VirtualizedTable/components/Body/Body.js +47 -44
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +68 -68
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +38 -31
- package/dist/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.js +75 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +42 -35
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +72 -72
- package/dist/components/VirtualizedTable/components/index.js +14 -12
- package/dist/components/VirtualizedTable/constants/index.js +5 -3
- package/dist/components/VirtualizedTable/constants/responsive.js +10 -0
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +4 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +8 -4
- package/dist/components/VirtualizedTable/utils/pinned-columns/index.js +6 -0
- package/dist/components/VirtualizedTable/utils/pinned-columns/pinned-columns.js +32 -0
- package/dist/components/index.js +147 -145
- package/dist/{components-B_SWqhCL.js → components-Bq71eyUH.js} +1 -1
- package/dist/{country-locale-map-DbrJ3bEE.js → country-locale-map-BQYYErun.js} +1407 -1407
- package/dist/{debounce-dMRJxNsT.js → debounce-DhCY9mXz.js} +2 -2
- package/dist/{dist-Dg3vyTx9.js → dist-BCqfbYE9.js} +1356 -1317
- package/dist/dist-CMqY_9n-.js +445 -0
- package/dist/{es2015-B_07N-UL.js → es2015-BvX7Yq5Q.js} +2 -2
- package/dist/index.js +158 -156
- package/dist/{isSymbol-BG9higgO.js → isSymbol-CcfkyZfq.js} +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +10 -0
- package/dist/lib/components/Drawer/Drawer.variants.d.ts +1 -0
- package/dist/lib/components/Drawer/constants/index.d.ts +1 -0
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +2 -1
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +25 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.d.ts +7 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.types.d.ts +12 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -0
- package/dist/lib/components/Sheet/Sheet.d.ts +21 -0
- package/dist/lib/components/Sheet/Sheet.types.d.ts +39 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +11 -2
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +4 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/pinned-columns.d.ts +23 -0
- package/dist/lib/components/index.d.ts +3 -1
- package/dist/{libphonenumber-DtibHRPP.js → libphonenumber-BIeQOhzl.js} +196 -164
- package/dist/package.json +18 -18
- package/dist/{phone-number.provider-DnuL-yYF.js → phone-number.provider-CJeivoDY.js} +2 -2
- package/dist/{prop-types-BCUW56rg.js → prop-types-qsAjMBb1.js} +1 -1
- package/dist/{rolldown-runtime-Dw9YIBcH.js → rolldown-runtime-B28h4lGi.js} +6 -6
- package/dist/styles.css +1 -1
- package/dist/{table.provider-CzfMGbe4.js → table.provider-QUo2buYX.js} +561 -523
- package/dist/{x-Vur_9PXW.js → x-BmNOD9Gr.js} +2 -2
- package/package.json +18 -18
- package/dist/Breadcrumb-CpXRb08J.js +0 -93
- package/dist/DropdownButton-JilCRLJY.js +0 -92
- package/dist/Modal-0Wp5szX4.js +0 -84
- package/dist/dist-BCoDIdCt.js +0 -429
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { Body as
|
|
4
|
-
import { Filter as
|
|
5
|
-
import { Header as
|
|
6
|
-
import { Pagination as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { t as p } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { t as rr } from "../../../../table.provider-QUo2buYX.js";
|
|
3
|
+
import { Body as er } from "../Body/Body.js";
|
|
4
|
+
import { Filter as ar } from "../Filter/Filter.js";
|
|
5
|
+
import { Header as tr } from "../Header/Header.js";
|
|
6
|
+
import { Pagination as lr } from "../Pagination/Pagination.js";
|
|
7
|
+
import { ScrollContainer as or } from "../ScrollContainer/ScrollContainer.js";
|
|
8
|
+
import { WrapperBody as ir } from "../WrapperBody/WrapperBody.js";
|
|
9
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
var ur = ({ id: o, ariaLabel: d, columns: n, data: b, totalItems: h = -1 / 0, className: u, classNameHeaderActiveArrows: v, classNameHeaderArrows: N, classNameHeaderTable: k, classNameTable: x, classNameWrapperTable: y, isLoading: a, emptyState: A, errorState: B, headerContent: j, classNameHeaderContent: w, classNameScrollContainer: i, columnPinning: t, getRowId: C, fetchData: P, queryOptions: g, showPagination: z, showTotalItems: s, showDropdownPagination: m, showDotPagination: c, showFormPagination: f, pageSizes: E, dropdownPaginationDirection: H, showFilter: T = !1, showFilterInput: V, filterSearchPlaceholder: W = "", filters: q, multiSelectFilter: F, filterActions: G, showResetButton: I = !0, resetButtonClassName: J, closeOnApply: K = !0, enableHoverRow: M, classNameHoverRow: O, enableExpandedRow: Q, expandedState: R, defaultExpanded: S, classNameExpandedRow: U, classNameExpandedCell: X, classNameExpandedContent: Y, classNameExpandedHeader: Z, classNameActiveExpandedRow: _, onExpandedChange: $, renderExpandedRow: L, keepExpandColumnVisible: D }) => {
|
|
11
|
+
const e = z || [
|
|
11
12
|
s,
|
|
12
13
|
m,
|
|
13
14
|
c,
|
|
14
|
-
|
|
15
|
+
f
|
|
15
16
|
].some(Boolean);
|
|
16
|
-
return /* @__PURE__ */ r(
|
|
17
|
-
id:
|
|
18
|
-
columns:
|
|
19
|
-
data:
|
|
20
|
-
headerContent:
|
|
21
|
-
getRowId:
|
|
22
|
-
fetchData:
|
|
23
|
-
totalItems:
|
|
24
|
-
queryOptions:
|
|
17
|
+
return /* @__PURE__ */ r(rr, {
|
|
18
|
+
id: o,
|
|
19
|
+
columns: n,
|
|
20
|
+
data: b,
|
|
21
|
+
headerContent: j,
|
|
22
|
+
getRowId: C,
|
|
23
|
+
fetchData: P,
|
|
24
|
+
totalItems: h,
|
|
25
|
+
queryOptions: g,
|
|
25
26
|
isPaginationEnabled: e,
|
|
26
|
-
enableExpandedRow:
|
|
27
|
-
expandedState:
|
|
27
|
+
enableExpandedRow: Q,
|
|
28
|
+
expandedState: R,
|
|
28
29
|
onExpandedChange: $,
|
|
29
|
-
defaultExpanded:
|
|
30
|
+
defaultExpanded: S,
|
|
30
31
|
classNameExpandedRow: U,
|
|
31
32
|
classNameExpandedCell: X,
|
|
32
33
|
classNameExpandedContent: Y,
|
|
33
34
|
classNameExpandedHeader: Z,
|
|
34
35
|
classNameActiveExpandedRow: _,
|
|
35
|
-
enableHoverRow:
|
|
36
|
-
classNameHoverRow:
|
|
36
|
+
enableHoverRow: M,
|
|
37
|
+
classNameHoverRow: O,
|
|
37
38
|
renderExpandedRow: L,
|
|
38
|
-
keepExpandColumnVisible:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
keepExpandColumnVisible: D,
|
|
40
|
+
columnPinning: t,
|
|
41
|
+
children: /* @__PURE__ */ l("section", {
|
|
42
|
+
className: p("kvt", "w-full min-w-fit", u),
|
|
43
|
+
children: [T && /* @__PURE__ */ r(ar, {
|
|
44
|
+
id: o,
|
|
45
|
+
actions: G,
|
|
44
46
|
filters: q,
|
|
45
|
-
multiSelectFilter:
|
|
46
|
-
placeholder:
|
|
47
|
-
showFilterInput:
|
|
48
|
-
showResetButton:
|
|
49
|
-
resetButtonClassName:
|
|
50
|
-
closeOnApply:
|
|
51
|
-
}), /* @__PURE__ */
|
|
52
|
-
className:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
})]
|
|
84
|
-
})
|
|
47
|
+
multiSelectFilter: F,
|
|
48
|
+
placeholder: W,
|
|
49
|
+
showFilterInput: V,
|
|
50
|
+
showResetButton: I,
|
|
51
|
+
resetButtonClassName: J,
|
|
52
|
+
closeOnApply: K
|
|
53
|
+
}), /* @__PURE__ */ l(or, {
|
|
54
|
+
className: i,
|
|
55
|
+
hasPinnedColumns: !!t?.left?.length || !!t?.right?.length,
|
|
56
|
+
children: [/* @__PURE__ */ r(ir, {
|
|
57
|
+
showPagination: e,
|
|
58
|
+
classNameWrapperTable: y,
|
|
59
|
+
isLoading: a,
|
|
60
|
+
children: /* @__PURE__ */ l("table", {
|
|
61
|
+
className: p("kvt-table", "w-full border-collapse table-auto", "dark:border-separate dark:border-spacing-0", x),
|
|
62
|
+
"aria-label": d,
|
|
63
|
+
children: [/* @__PURE__ */ r(tr, {
|
|
64
|
+
className: k,
|
|
65
|
+
classNameArrows: N,
|
|
66
|
+
classNameActiveArrows: v,
|
|
67
|
+
classNameHeaderContent: w
|
|
68
|
+
}), /* @__PURE__ */ r(er, {
|
|
69
|
+
isLoading: a,
|
|
70
|
+
showPagination: e,
|
|
71
|
+
emptyState: A,
|
|
72
|
+
errorState: B
|
|
73
|
+
})]
|
|
74
|
+
})
|
|
75
|
+
}), e && /* @__PURE__ */ r(lr, {
|
|
76
|
+
showTotalItems: s,
|
|
77
|
+
showDropdownPagination: m,
|
|
78
|
+
showDotPagination: c,
|
|
79
|
+
showFormPagination: f,
|
|
80
|
+
pageSizes: E,
|
|
81
|
+
isLoading: a,
|
|
82
|
+
isListPortal: !!i,
|
|
83
|
+
dropdownPaginationDirection: H
|
|
84
|
+
})]
|
|
85
85
|
})]
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
ur as VirtualizedTableContent
|
|
91
91
|
};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { Actions as o } from "./Actions/Actions.js";
|
|
2
2
|
import { EmptyState as m } from "./EmptyState/EmptyState.js";
|
|
3
|
-
import { EmptyResults as
|
|
3
|
+
import { EmptyResults as p } from "./EmptyResults/EmptyResults.js";
|
|
4
4
|
import { ErrorState as f } from "./ErrorState/ErrorState.js";
|
|
5
5
|
import { TruncateText as n } from "./TruncateText/TruncateText.js";
|
|
6
|
-
import { Body as
|
|
7
|
-
import { Filter as
|
|
8
|
-
import { Header as
|
|
9
|
-
import { Pagination as
|
|
10
|
-
import {
|
|
6
|
+
import { Body as y } from "./Body/Body.js";
|
|
7
|
+
import { Filter as d } from "./Filter/Filter.js";
|
|
8
|
+
import { Header as E } from "./Header/Header.js";
|
|
9
|
+
import { Pagination as u } from "./Pagination/Pagination.js";
|
|
10
|
+
import { ScrollContainer as B } from "./ScrollContainer/ScrollContainer.js";
|
|
11
|
+
import { WrapperBody as g } from "./WrapperBody/WrapperBody.js";
|
|
11
12
|
export {
|
|
12
13
|
o as Actions,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
y as Body,
|
|
15
|
+
p as EmptyResults,
|
|
15
16
|
m as EmptyState,
|
|
16
17
|
f as ErrorState,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
d as Filter,
|
|
19
|
+
E as Header,
|
|
20
|
+
u as Pagination,
|
|
21
|
+
B as ScrollContainer,
|
|
20
22
|
n as TruncateText,
|
|
21
|
-
|
|
23
|
+
g as WrapperBody
|
|
22
24
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { DEFAULT_PAGE_SIZE as
|
|
1
|
+
import { DEFAULT_PAGE_SIZE as _, DEFAULT_PAGE_SIZES as o } from "./pagination.js";
|
|
2
|
+
import { HIDE_BELOW_CLASS as A } from "./responsive.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
_ as DEFAULT_PAGE_SIZE,
|
|
5
|
+
o as DEFAULT_PAGE_SIZES,
|
|
6
|
+
A as HIDE_BELOW_CLASS
|
|
5
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableContext as r } from "./table.context.js";
|
|
2
2
|
import { useTableContext as e } from "./table.hook.js";
|
|
3
|
-
import { t as a } from "../../../table.provider-
|
|
3
|
+
import { t as a } from "../../../table.provider-QUo2buYX.js";
|
|
4
4
|
export {
|
|
5
5
|
r as TableContext,
|
|
6
6
|
a as TableProvider,
|
|
@@ -13,6 +13,10 @@ var r = e({
|
|
|
13
13
|
pageSize: 10,
|
|
14
14
|
totalPages: 1 / 0,
|
|
15
15
|
isFirstLoad: !0,
|
|
16
|
+
pinnedWidths: {},
|
|
17
|
+
getPinnedHeaderRef() {
|
|
18
|
+
throw new Error("getPinnedHeaderRef function is not implemented");
|
|
19
|
+
},
|
|
16
20
|
onSorting() {
|
|
17
21
|
throw new Error("onSorting function is not implemented");
|
|
18
22
|
},
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { getTableId as i } from "./get-table-id.js";
|
|
2
|
-
import { getLoadedVirtualizedTableContent as
|
|
2
|
+
import { getLoadedVirtualizedTableContent as o, isVirtualizedTableContentLoaded as a, loadVirtualizedTableContent as r, preloadVirtualizedTable as n, subscribeToVirtualizedTableContent as d } from "./load-content/load-content.js";
|
|
3
3
|
import { isPaginationBarVisible as b } from "./pagination.js";
|
|
4
|
+
import { getPinnedCellProps as s, getPinnedOffset as p, isPinnedBoundary as u } from "./pinned-columns/pinned-columns.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
o as getLoadedVirtualizedTableContent,
|
|
7
|
+
s as getPinnedCellProps,
|
|
8
|
+
p as getPinnedOffset,
|
|
6
9
|
i as getTableId,
|
|
7
10
|
b as isPaginationBarVisible,
|
|
8
|
-
|
|
11
|
+
u as isPinnedBoundary,
|
|
12
|
+
a as isVirtualizedTableContentLoaded,
|
|
9
13
|
r as loadVirtualizedTableContent,
|
|
10
|
-
|
|
14
|
+
n as preloadVirtualizedTable,
|
|
11
15
|
d as subscribeToVirtualizedTableContent
|
|
12
16
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as f } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
var o = (t, e) => t.reduce((r, { id: i }) => r + (e[i] ?? 0), 0), a = (t, e, r) => {
|
|
3
|
+
const i = e.getIsPinned();
|
|
4
|
+
if (i === "left") {
|
|
5
|
+
const n = t.getLeftLeafColumns(), d = n.findIndex(({ id: s }) => s === e.id);
|
|
6
|
+
return o(n.slice(0, d), r);
|
|
7
|
+
}
|
|
8
|
+
if (i === "right") {
|
|
9
|
+
const n = t.getRightLeafColumns(), d = n.findIndex(({ id: s }) => s === e.id);
|
|
10
|
+
return o(n.slice(d + 1), r);
|
|
11
|
+
}
|
|
12
|
+
return 0;
|
|
13
|
+
}, l = (t, e) => {
|
|
14
|
+
const r = e.getIsPinned();
|
|
15
|
+
return r === "left" ? t.getLeftLeafColumns().at(-1)?.id === e.id : r === "right" ? t.getRightLeafColumns()[0]?.id === e.id : !1;
|
|
16
|
+
}, u = (t, e, r) => {
|
|
17
|
+
const i = e.getIsPinned();
|
|
18
|
+
if (!i) return {};
|
|
19
|
+
const n = a(t, e, r), d = l(t, e);
|
|
20
|
+
return i === "left" ? {
|
|
21
|
+
className: f("kvt-pinned kvt-pinned-left sticky", d && "[[data-kvt-overflow]_&]:border-r border-r-gray-200 dark:border-r-metal-700"),
|
|
22
|
+
style: { left: n }
|
|
23
|
+
} : {
|
|
24
|
+
className: f("kvt-pinned kvt-pinned-right sticky", d && "[[data-kvt-overflow]_&]:border-l border-l-gray-200 dark:border-l-metal-700"),
|
|
25
|
+
style: { right: n }
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
u as getPinnedCellProps,
|
|
30
|
+
a as getPinnedOffset,
|
|
31
|
+
l as isPinnedBoundary
|
|
32
|
+
};
|