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