@lax-wp/design-system 0.13.33 → 0.13.35

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 (169) hide show
  1. package/dist/components/button/Button.cjs.js +5 -5
  2. package/dist/components/button/Button.cjs.js.map +1 -1
  3. package/dist/components/button/Button.es.js +18 -18
  4. package/dist/components/button/Button.es.js.map +1 -1
  5. package/dist/components/button/IconButton.cjs.js +1 -1
  6. package/dist/components/button/IconButton.cjs.js.map +1 -1
  7. package/dist/components/button/IconButton.es.js +8 -8
  8. package/dist/components/button/IconButton.es.js.map +1 -1
  9. package/dist/components/buttons/option-button/OptionButton.cjs.js +1 -1
  10. package/dist/components/buttons/option-button/OptionButton.cjs.js.map +1 -1
  11. package/dist/components/buttons/option-button/OptionButton.es.js +1 -1
  12. package/dist/components/buttons/option-button/OptionButton.es.js.map +1 -1
  13. package/dist/components/data-display/comparison/components/Header.cjs.js +1 -1
  14. package/dist/components/data-display/comparison/components/Header.cjs.js.map +1 -1
  15. package/dist/components/data-display/comparison/components/Header.es.js +13 -13
  16. package/dist/components/data-display/comparison/components/Header.es.js.map +1 -1
  17. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.cjs.js +1 -1
  18. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.cjs.js.map +1 -1
  19. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.es.js +23 -23
  20. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.es.js.map +1 -1
  21. package/dist/components/data-display/infinite-table/body/cell/DataCell.cjs.js +1 -1
  22. package/dist/components/data-display/infinite-table/body/cell/DataCell.cjs.js.map +1 -1
  23. package/dist/components/data-display/infinite-table/body/cell/DataCell.es.js +1 -1
  24. package/dist/components/data-display/infinite-table/body/cell/DataCell.es.js.map +1 -1
  25. package/dist/components/data-display/infinite-table/body/rows/index.cjs.js +1 -1
  26. package/dist/components/data-display/infinite-table/body/rows/index.cjs.js.map +1 -1
  27. package/dist/components/data-display/infinite-table/body/rows/index.es.js +104 -101
  28. package/dist/components/data-display/infinite-table/body/rows/index.es.js.map +1 -1
  29. package/dist/components/data-display/infinite-table/constants.cjs.js +1 -1
  30. package/dist/components/data-display/infinite-table/constants.cjs.js.map +1 -1
  31. package/dist/components/data-display/infinite-table/constants.d.ts +6 -0
  32. package/dist/components/data-display/infinite-table/constants.es.js +17 -16
  33. package/dist/components/data-display/infinite-table/constants.es.js.map +1 -1
  34. package/dist/components/data-display/infinite-table/head/CheckAll.cjs.js +1 -1
  35. package/dist/components/data-display/infinite-table/head/CheckAll.cjs.js.map +1 -1
  36. package/dist/components/data-display/infinite-table/head/CheckAll.es.js +4 -4
  37. package/dist/components/data-display/infinite-table/head/CheckAll.es.js.map +1 -1
  38. package/dist/components/data-display/infinite-table/head/index.cjs.js +1 -1
  39. package/dist/components/data-display/infinite-table/head/index.cjs.js.map +1 -1
  40. package/dist/components/data-display/infinite-table/head/index.es.js +5 -5
  41. package/dist/components/data-display/infinite-table/head/index.es.js.map +1 -1
  42. package/dist/components/data-display/infinite-table/index.cjs.js +1 -1
  43. package/dist/components/data-display/infinite-table/index.cjs.js.map +1 -1
  44. package/dist/components/data-display/infinite-table/index.es.js +188 -187
  45. package/dist/components/data-display/infinite-table/index.es.js.map +1 -1
  46. package/dist/components/data-display/infinite-table/useRowHeight.cjs.js +2 -0
  47. package/dist/components/data-display/infinite-table/useRowHeight.cjs.js.map +1 -0
  48. package/dist/components/data-display/infinite-table/useRowHeight.d.ts +15 -0
  49. package/dist/components/data-display/infinite-table/useRowHeight.es.js +24 -0
  50. package/dist/components/data-display/infinite-table/useRowHeight.es.js.map +1 -0
  51. package/dist/components/data-display/tag/Tag.cjs.js +1 -1
  52. package/dist/components/data-display/tag/Tag.cjs.js.map +1 -1
  53. package/dist/components/data-display/tag/Tag.es.js +11 -9
  54. package/dist/components/data-display/tag/Tag.es.js.map +1 -1
  55. package/dist/components/floating-bar/FloatingBar.cjs.js +1 -1
  56. package/dist/components/floating-bar/FloatingBar.cjs.js.map +1 -1
  57. package/dist/components/floating-bar/FloatingBar.es.js +9 -9
  58. package/dist/components/floating-bar/FloatingBar.es.js.map +1 -1
  59. package/dist/components/forms/base-input-field/BaseInputField.cjs.js +2 -2
  60. package/dist/components/forms/base-input-field/BaseInputField.cjs.js.map +1 -1
  61. package/dist/components/forms/base-input-field/BaseInputField.es.js +40 -42
  62. package/dist/components/forms/base-input-field/BaseInputField.es.js.map +1 -1
  63. package/dist/components/forms/creatable-select/CreatableSelect.cjs.js +1 -1
  64. package/dist/components/forms/creatable-select/CreatableSelect.cjs.js.map +1 -1
  65. package/dist/components/forms/creatable-select/CreatableSelect.es.js +14 -15
  66. package/dist/components/forms/creatable-select/CreatableSelect.es.js.map +1 -1
  67. package/dist/components/forms/currency-input/CurrencyInputField.cjs.js +1 -1
  68. package/dist/components/forms/currency-input/CurrencyInputField.cjs.js.map +1 -1
  69. package/dist/components/forms/currency-input/CurrencyInputField.es.js +57 -65
  70. package/dist/components/forms/currency-input/CurrencyInputField.es.js.map +1 -1
  71. package/dist/components/forms/date-time-field/DateTimeField.cjs.js +1 -1
  72. package/dist/components/forms/date-time-field/DateTimeField.cjs.js.map +1 -1
  73. package/dist/components/forms/date-time-field/DateTimeField.es.js +33 -33
  74. package/dist/components/forms/date-time-field/DateTimeField.es.js.map +1 -1
  75. package/dist/components/forms/debounce-input/DebounceInputField.cjs.js +1 -1
  76. package/dist/components/forms/debounce-input/DebounceInputField.cjs.js.map +1 -1
  77. package/dist/components/forms/debounce-input/DebounceInputField.es.js +2 -2
  78. package/dist/components/forms/debounce-input/DebounceInputField.es.js.map +1 -1
  79. package/dist/components/forms/dynamic-data-input/DynamicDataInput.cjs.js +1 -1
  80. package/dist/components/forms/dynamic-data-input/DynamicDataInput.cjs.js.map +1 -1
  81. package/dist/components/forms/dynamic-data-input/DynamicDataInput.es.js +7 -7
  82. package/dist/components/forms/dynamic-data-input/DynamicDataInput.es.js.map +1 -1
  83. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js +1 -1
  84. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js.map +1 -1
  85. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js +17 -19
  86. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js.map +1 -1
  87. package/dist/components/forms/field-options/Item.cjs.js +1 -1
  88. package/dist/components/forms/field-options/Item.cjs.js.map +1 -1
  89. package/dist/components/forms/field-options/Item.es.js +5 -5
  90. package/dist/components/forms/field-options/Item.es.js.map +1 -1
  91. package/dist/components/forms/formula-input/FormulaInput.cjs.js +1 -1
  92. package/dist/components/forms/formula-input/FormulaInput.cjs.js.map +1 -1
  93. package/dist/components/forms/formula-input/FormulaInput.es.js +10 -10
  94. package/dist/components/forms/formula-input/FormulaInput.es.js.map +1 -1
  95. package/dist/components/forms/icon-picker/IconPicker.cjs.js +1 -1
  96. package/dist/components/forms/icon-picker/IconPicker.cjs.js.map +1 -1
  97. package/dist/components/forms/icon-picker/IconPicker.es.js +42 -57
  98. package/dist/components/forms/icon-picker/IconPicker.es.js.map +1 -1
  99. package/dist/components/forms/input-field/InputField.cjs.js.map +1 -1
  100. package/dist/components/forms/input-field/InputField.es.js.map +1 -1
  101. package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js +1 -1
  102. package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js.map +1 -1
  103. package/dist/components/forms/master-data-input/MasterDataInputField.es.js +54 -60
  104. package/dist/components/forms/master-data-input/MasterDataInputField.es.js.map +1 -1
  105. package/dist/components/forms/md-input/RichMarkdownInput.cjs.js +3 -3
  106. package/dist/components/forms/md-input/RichMarkdownInput.cjs.js.map +1 -1
  107. package/dist/components/forms/md-input/RichMarkdownInput.es.js +63 -63
  108. package/dist/components/forms/md-input/RichMarkdownInput.es.js.map +1 -1
  109. package/dist/components/forms/number-input-field/NumberInputField.cjs.js +1 -1
  110. package/dist/components/forms/number-input-field/NumberInputField.cjs.js.map +1 -1
  111. package/dist/components/forms/number-input-field/NumberInputField.es.js +5 -5
  112. package/dist/components/forms/number-input-field/NumberInputField.es.js.map +1 -1
  113. package/dist/components/forms/percentage-input/PercentageInputField.cjs.js +2 -2
  114. package/dist/components/forms/percentage-input/PercentageInputField.cjs.js.map +1 -1
  115. package/dist/components/forms/percentage-input/PercentageInputField.es.js +20 -20
  116. package/dist/components/forms/percentage-input/PercentageInputField.es.js.map +1 -1
  117. package/dist/components/forms/search-bar/SearchBar.cjs.js +1 -1
  118. package/dist/components/forms/search-bar/SearchBar.cjs.js.map +1 -1
  119. package/dist/components/forms/search-bar/SearchBar.es.js +16 -16
  120. package/dist/components/forms/search-bar/SearchBar.es.js.map +1 -1
  121. package/dist/components/forms/select-field/SelectField.cjs.js +2 -2
  122. package/dist/components/forms/select-field/SelectField.cjs.js.map +1 -1
  123. package/dist/components/forms/select-field/SelectField.d.ts +4 -0
  124. package/dist/components/forms/select-field/SelectField.es.js +202 -203
  125. package/dist/components/forms/select-field/SelectField.es.js.map +1 -1
  126. package/dist/components/forms/text-area-field/TextAreaField.cjs.js +1 -1
  127. package/dist/components/forms/text-area-field/TextAreaField.cjs.js.map +1 -1
  128. package/dist/components/forms/text-area-field/TextAreaField.es.js +14 -14
  129. package/dist/components/forms/text-area-field/TextAreaField.es.js.map +1 -1
  130. package/dist/components/forms/toggle/Toggle.cjs.js +1 -1
  131. package/dist/components/forms/toggle/Toggle.cjs.js.map +1 -1
  132. package/dist/components/forms/toggle/Toggle.es.js +65 -59
  133. package/dist/components/forms/toggle/Toggle.es.js.map +1 -1
  134. package/dist/components/navigation/accordion/Accordion.cjs.js +1 -1
  135. package/dist/components/navigation/accordion/Accordion.cjs.js.map +1 -1
  136. package/dist/components/navigation/accordion/Accordion.es.js +5 -5
  137. package/dist/components/navigation/accordion/Accordion.es.js.map +1 -1
  138. package/dist/components/navigation/stepper/Stepper.cjs.js +1 -1
  139. package/dist/components/navigation/stepper/Stepper.cjs.js.map +1 -1
  140. package/dist/components/navigation/stepper/Stepper.es.js +1 -1
  141. package/dist/components/navigation/stepper/Stepper.es.js.map +1 -1
  142. package/dist/components/navigation/tabs/TabOptions.cjs.js +1 -1
  143. package/dist/components/navigation/tabs/TabOptions.cjs.js.map +1 -1
  144. package/dist/components/navigation/tabs/TabOptions.es.js +15 -15
  145. package/dist/components/navigation/tabs/TabOptions.es.js.map +1 -1
  146. package/dist/components/navigation/tabs/TabSwitch.cjs.js +1 -1
  147. package/dist/components/navigation/tabs/TabSwitch.cjs.js.map +1 -1
  148. package/dist/components/navigation/tabs/TabSwitch.es.js +7 -7
  149. package/dist/components/navigation/tabs/TabSwitch.es.js.map +1 -1
  150. package/dist/components/navigation/tabs/Tabs.cjs.js +1 -1
  151. package/dist/components/navigation/tabs/Tabs.cjs.js.map +1 -1
  152. package/dist/components/navigation/tabs/Tabs.es.js +1 -1
  153. package/dist/components/navigation/tabs/Tabs.es.js.map +1 -1
  154. package/dist/components/tooltip/Tooltip.cjs.js +1 -1
  155. package/dist/components/tooltip/Tooltip.cjs.js.map +1 -1
  156. package/dist/components/tooltip/Tooltip.es.js +19 -19
  157. package/dist/components/tooltip/Tooltip.es.js.map +1 -1
  158. package/dist/components/user-avatar/UserAvatar.cjs.js +1 -1
  159. package/dist/components/user-avatar/UserAvatar.cjs.js.map +1 -1
  160. package/dist/components/user-avatar/UserAvatar.d.ts +1 -1
  161. package/dist/components/user-avatar/UserAvatar.es.js +40 -38
  162. package/dist/components/user-avatar/UserAvatar.es.js.map +1 -1
  163. package/dist/components/user-avatar/constants.cjs.js +1 -1
  164. package/dist/components/user-avatar/constants.cjs.js.map +1 -1
  165. package/dist/components/user-avatar/constants.d.ts +1 -0
  166. package/dist/components/user-avatar/constants.es.js +10 -9
  167. package/dist/components/user-avatar/constants.es.js.map +1 -1
  168. package/dist/design-system.css +1 -1
  169. package/package.json +2 -3
@@ -1,29 +1,30 @@
1
- import { jsx as s, jsxs as b, Fragment as yr } from "react/jsx-runtime";
2
- import { useCheckbox as Nr } from "../../../hooks/useCheckbox.es.js";
3
- import { useTableConfig as Dr } from "../../../providers/design-system-provider/hooks.es.js";
1
+ import { jsx as s, jsxs as b, Fragment as Nr } from "react/jsx-runtime";
2
+ import { useCheckbox as Dr } from "../../../hooks/useCheckbox.es.js";
3
+ import { useTableConfig as Ar } from "../../../providers/design-system-provider/hooks.es.js";
4
4
  import { mergeViewColumnsWithTableColumns as Lt } from "../../../utils/table.es.js";
5
- import Vt from "../../button/Button.es.js";
6
- import { FloatingBar as Ar } from "../../floating-bar/FloatingBar.es.js";
5
+ import gt from "../../button/Button.es.js";
6
+ import { FloatingBar as Er } from "../../floating-bar/FloatingBar.es.js";
7
7
  import { Typography as Te } from "../typography/Typography.es.js";
8
- import { useSensors as Er, useSensor as gt, MouseSensor as Or, TouchSensor as _r, DndContext as kr, closestCorners as Rr, DragOverlay as Mr } from "@dnd-kit/core";
9
- import Lr, { useState as p, useRef as A, useCallback as i, useEffect as y, useMemo as H, forwardRef as jt } from "react";
8
+ import { useSensors as Or, useSensor as Vt, MouseSensor as _r, TouchSensor as kr, DndContext as Rr, closestCorners as Mr, DragOverlay as Lr } from "@dnd-kit/core";
9
+ import gr, { useState as p, useRef as A, useCallback as c, useEffect as y, useMemo as $, forwardRef as jt } from "react";
10
10
  import { AutoSizer as Vr } from "react-virtualized-auto-sizer";
11
- import { createPortal as gr } from "react-dom";
12
- import { useTable as jr, useResizeColumns as Ir } from "react-table";
13
- import { Body as Pr } from "./body/index.es.js";
11
+ import { createPortal as jr } from "react-dom";
12
+ import { useTable as Ir, useResizeColumns as Pr } from "react-table";
13
+ import { Body as Br } from "./body/index.es.js";
14
14
  import { validateCellValue as It } from "./validateCell.es.js";
15
- import { Row as Br } from "./body/rows/row.es.js";
16
- import { TableContext as Wr } from "./context.es.js";
15
+ import { Row as Wr } from "./body/rows/row.es.js";
16
+ import { TableContext as Hr } from "./context.es.js";
17
17
  import { CurrencyDropdownPortal as $r } from "./CurrencyDropdownPortal.es.js";
18
- import { Head as Hr } from "./head/index.es.js";
19
- import { PendingEditsFloatingBar as zr } from "./PendingEditsFloatingBar.es.js";
20
- import { DATA_ROW_ID_ATTR as qr, DATA_COLUMN_KEY_ATTR as Ur, OS_VIEWPORT_SELECTOR as Jr, SCROLL_TO_CELL_COLUMN_WIDTH_FALLBACK as Gr, SCROLL_TO_CELL_LEFT_OFFSET as Xr, DEFAULT_PAGE_SIZE as Yr, DEFAULT_COLUMN_MAX_WIDTH as Zr, DEFAULT_COLUMN_WIDTH as Cr, DEFAULT_COLUMN_MIN_WIDTH as Qr, DND_ACTIVATION_DISTANCE as Pt, ROW_ADDITIONAL_ACTIONS_DEFAULT_WIDTH as Kr, ROW_OPTIONS_COLUMN_WIDTH as en, TOOLBAR_FIRST_BREAKPOINT as Z, TOOLBAR_SECOND_BREAKPOINT as Ue, DROP_ANIMATION_DURATION as tn, DROP_ANIMATION_EASING as ln } from "./constants.es.js";
21
- import { NoDataFoundWidgets as rn } from "../empty-state/NoDataFoundWidgets.es.js";
22
- import { NoDataFound as nn } from "../empty-state/NoDataFound.es.js";
23
- import { Add2Icon as sn } from "../../icon/icons.generated.es.js";
24
- const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-_]/g, "") || N}`, Mn = Lr.memo(
18
+ import { Head as zr } from "./head/index.es.js";
19
+ import { PendingEditsFloatingBar as qr } from "./PendingEditsFloatingBar.es.js";
20
+ import { DATA_ROW_ID_ATTR as Ur, DATA_COLUMN_KEY_ATTR as Jr, OS_VIEWPORT_SELECTOR as Gr, SCROLL_TO_CELL_COLUMN_WIDTH_FALLBACK as Xr, SCROLL_TO_CELL_LEFT_OFFSET as Yr, DEFAULT_PAGE_SIZE as Zr, DEFAULT_COLUMN_MAX_WIDTH as Cr, DEFAULT_COLUMN_WIDTH as Qr, DEFAULT_COLUMN_MIN_WIDTH as Kr, DND_ACTIVATION_DISTANCE as Pt, ROW_ADDITIONAL_ACTIONS_DEFAULT_WIDTH as en, ROW_OPTIONS_COLUMN_WIDTH as tn, TOOLBAR_FIRST_BREAKPOINT as Z, TOOLBAR_SECOND_BREAKPOINT as Ue, DROP_ANIMATION_DURATION as ln, DROP_ANIMATION_EASING as rn } from "./constants.es.js";
21
+ import { getRowSlotHeight as nn, useRowHeight as sn } from "./useRowHeight.es.js";
22
+ import { NoDataFoundWidgets as on } from "../empty-state/NoDataFoundWidgets.es.js";
23
+ import { NoDataFound as an } from "../empty-state/NoDataFound.es.js";
24
+ import { Add2Icon as cn } from "../../icon/icons.generated.es.js";
25
+ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-_]/g, "") || N}`, jn = gr.memo(
25
26
  ({
26
- tableKey: V,
27
+ tableKey: g,
27
28
  searchConfig: N = { search: "", handleSearch: () => null, allowAStarSearch: !1 },
28
29
  filterConfig: n = {
29
30
  columnFilters: [],
@@ -58,14 +59,14 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
58
59
  lineItemRowId: re,
59
60
  enumSuggestionsData: ne,
60
61
  data: m = [],
61
- onRowClick: $t,
62
+ onRowClick: Ht,
62
63
  showHeader: ye,
63
64
  tableActions: Je,
64
65
  rowOptions: z,
65
66
  hideRowOptionWidth: Ge,
66
- checkboxUtilities: g,
67
+ checkboxUtilities: V,
67
68
  isLoading: se = !1,
68
- onScroll: Ht,
69
+ onScroll: $t,
69
70
  onScrolling: zt,
70
71
  isColumnConfigurable: oe,
71
72
  onAddColumnClick: ae,
@@ -79,20 +80,20 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
79
80
  cascadingTableConfig: Jt,
80
81
  originalsOnly: Gt,
81
82
  disableOptionsForRowIndex: Xt,
82
- tableHeightClass: ce = "h-[calc(100vh-220px)]",
83
+ tableHeightClass: ie = "h-[calc(100vh-220px)]",
83
84
  getFullRowDataOnClick: Yt,
84
85
  selectedRowId: Zt = null,
85
86
  onRowEdit: R,
86
87
  onBulkRowEdit: j,
87
88
  inlineEditColumns: Ct,
88
89
  isResizable: Qt = !0,
89
- paginationConfig: ie,
90
+ paginationConfig: ce,
90
91
  dndSortableUtils: ue,
91
92
  multipleContexts: Ke,
92
93
  withSortable: Ne,
93
94
  withDraggable: Kt,
94
95
  enableRootDrag: el,
95
- pageSize: tl = Yr,
96
+ pageSize: tl = Zr,
96
97
  onCascadingRowExpand: ll,
97
98
  totalItems: et,
98
99
  showRecordCount: De = !1,
@@ -102,8 +103,8 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
102
103
  setExpandedRows: ol,
103
104
  showNewItem: al,
104
105
  rawData: tt,
105
- dragConfig: cl,
106
- isOverlayLoading: il,
106
+ dragConfig: il,
107
+ isOverlayLoading: cl,
107
108
  style: ul = {},
108
109
  floatingBarConfig: Ae,
109
110
  rowWrapper: dl,
@@ -128,7 +129,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
128
129
  onPendingEditsChange: lt,
129
130
  onCancelPendingEdits: P
130
131
  }) => {
131
- const a = Dr(), Nl = !!N?.search, rt = n?.columnFilters?.length > 0, q = Nl || rt, Dl = !!g, D = a?.getTableView?.(V) ?? null, [x, U] = p(D || null), [Re, Me] = p(!1), [Le, nt] = p(!1), [Al, st] = p(null), [w, Ve] = p(E), ot = (m.length === 0 || !w.length) && !se, [at, he] = p(null), [El, Ol] = p(!1), [_l, kl] = p(null), [Rl, Ml] = p(!1), [Ll, me] = p(null), [Vl, pe] = p(null), [gl, ct] = p({}), [J, ge] = p(null), [jl, it] = p(!1), [O, Il] = p(0), je = A(null), Ie = A(null), [ut, Pl] = p({ width: 0, height: 0 }), [Bl, B] = p(null), [_, dt] = p(null), [Wl, ht] = p(null), [mt, pt] = p(null), [Pe, G] = p({}), Be = A(!1), ve = A(!1), We = A(x);
132
+ const a = Ar(), Nl = nn(sn()), Dl = !!N?.search, rt = n?.columnFilters?.length > 0, q = Dl || rt, Al = !!V, D = a?.getTableView?.(g) ?? null, [x, U] = p(D || null), [Re, Me] = p(!1), [Le, nt] = p(!1), [El, st] = p(null), [w, ge] = p(E), ot = (m.length === 0 || !w.length) && !se, [at, he] = p(null), [Ol, _l] = p(!1), [kl, Rl] = p(null), [Ml, Ll] = p(!1), [gl, me] = p(null), [Vl, pe] = p(null), [jl, it] = p({}), [J, Ve] = p(null), [Il, ct] = p(!1), [O, Pl] = p(0), je = A(null), Ie = A(null), [ut, Bl] = p({ width: 0, height: 0 }), [Wl, B] = p(null), [_, dt] = p(null), [Hl, ht] = p(null), [mt, pt] = p(null), [Pe, G] = p({}), Be = A(!1), ve = A(!1), We = A(x);
132
133
  We.current = x;
133
134
  const vt = A(a);
134
135
  vt.current = a;
@@ -136,62 +137,62 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
136
137
  ft.current = E;
137
138
  const fe = A(n);
138
139
  fe.current = n;
139
- const wt = A(null), Ft = A(() => ({})), St = A(() => ({})), [d, k] = p({}), $e = i(
140
+ const wt = A(null), Ft = A(() => ({})), St = A(() => ({})), [d, k] = p({}), He = c(
140
141
  (e, t, l) => {
141
142
  k((r) => {
142
143
  const o = r[e]?.[t];
143
- let c = l.validationError;
144
- if (c === void 0) {
144
+ let i = l.validationError;
145
+ if (i === void 0) {
145
146
  const F = w.find((v) => v.key === t);
146
147
  if (F) {
147
148
  const v = It(l.value, F);
148
- c = v.isValid ? null : v.error || "Invalid";
149
+ i = v.isValid ? null : v.error || "Invalid";
149
150
  } else
150
- c = o?.validationError ?? null;
151
+ i = o?.validationError ?? null;
151
152
  }
152
- return { ...r, [e]: { ...r[e] || {}, [t]: { ...l, validationError: c ?? null } } };
153
+ return { ...r, [e]: { ...r[e] || {}, [t]: { ...l, validationError: i ?? null } } };
153
154
  });
154
155
  },
155
156
  [w]
156
- ), bt = i(() => Object.values(d).some((e) => Object.keys(e).length > 0), [d]);
157
+ ), bt = c(() => Object.values(d).some((e) => Object.keys(e).length > 0), [d]);
157
158
  y(() => {
158
- ke && ke({ addPendingEdit: $e, hasPendingEdits: bt });
159
- }, [ke, $e, bt]);
160
- const $l = i((e, t) => {
159
+ ke && ke({ addPendingEdit: He, hasPendingEdits: bt });
160
+ }, [ke, He, bt]);
161
+ const $l = c((e, t) => {
161
162
  k((l) => {
162
163
  const r = { ...l };
163
164
  if (r[e]) {
164
- const { [t]: o, ...c } = r[e];
165
- Object.keys(c).length === 0 ? delete r[e] : r[e] = c;
165
+ const { [t]: o, ...i } = r[e];
166
+ Object.keys(i).length === 0 ? delete r[e] : r[e] = i;
166
167
  }
167
168
  return r;
168
169
  });
169
- }, []), Hl = i(
170
+ }, []), zl = c(
170
171
  (e, t) => d[e]?.[t],
171
172
  [d]
172
- ), zl = i(
173
+ ), ql = c(
173
174
  (e, t) => !!d[e]?.[t],
174
175
  [d]
175
- ), xt = i(() => {
176
+ ), xt = c(() => {
176
177
  I || (P && Object.keys(d).length > 0 && P(d), k({}), G({}), B(null));
177
- }, [I, P, d]), W = i(
178
+ }, [I, P, d]), W = c(
178
179
  (e, t, l) => {
179
180
  setTimeout(() => {
180
181
  a?.dispatchEvent?.("SCROLL_TO_TABLE_ROW", { rowIndex: l });
181
182
  const r = w.findIndex((o) => o.key === t);
182
183
  setTimeout(() => {
183
- const o = document.querySelector(`[${qr}="${e}"] [${Ur}="${t}"]`);
184
+ const o = document.querySelector(`[${Ur}="${e}"] [${Jr}="${t}"]`);
184
185
  if (o)
185
186
  o.scrollIntoView({ behavior: "smooth", block: "center", inline: "center" });
186
187
  else if (r > 0) {
187
- const c = document.querySelector(Jr);
188
- if (c) {
188
+ const i = document.querySelector(Gr);
189
+ if (i) {
189
190
  let F = 0;
190
191
  for (let v = 0; v < r; v++) {
191
192
  const T = w[v];
192
- T?.sticky || (F += T?.width || Gr);
193
+ T?.sticky || (F += T?.width || Xr);
193
194
  }
194
- F = Math.max(0, F - Xr), c.scrollTo({ left: F, behavior: "smooth" });
195
+ F = Math.max(0, F - Yr), i.scrollTo({ left: F, behavior: "smooth" });
195
196
  }
196
197
  }
197
198
  B({ rowId: e, columnKey: t });
@@ -199,33 +200,33 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
199
200
  }, 100);
200
201
  },
201
202
  [w, a]
202
- ), X = i(
203
+ ), X = c(
203
204
  (e) => {
204
205
  let t = !1, l = null;
205
206
  const r = {}, o = /* @__PURE__ */ new Set();
206
- return Object.entries(e).forEach(([c, F]) => {
207
- r[c] = {}, Object.entries(F).forEach(([v, T]) => {
207
+ return Object.entries(e).forEach(([i, F]) => {
208
+ r[i] = {}, Object.entries(F).forEach(([v, T]) => {
208
209
  const L = w.find((S) => S.key === v), f = It(T.value, L);
209
- f.isValid ? r[c][v] = { ...T, validationError: null } : (t = !0, f.error && o.add(f.error), l || (l = { rowId: c, columnKey: v }), r[c][v] = { ...T, validationError: f.error });
210
+ f.isValid ? r[i][v] = { ...T, validationError: null } : (t = !0, f.error && o.add(f.error), l || (l = { rowId: i, columnKey: v }), r[i][v] = { ...T, validationError: f.error });
210
211
  });
211
212
  }), { hasErrors: t, updatedEdits: r, firstError: l, errorTypes: o };
212
213
  },
213
214
  [w]
214
- ), we = i((e) => {
215
+ ), we = c((e) => {
215
216
  const t = e.has("Field required"), l = e.size > (t ? 1 : 0);
216
217
  return t && l ? "Missing required field(s) and invalid format detected. Please review highlighted field(s)." : t ? "Missing required field(s). Please review highlighted field(s)." : "Invalid field value(s). Please review highlighted field(s).";
217
- }, []), Tt = i(() => {
218
+ }, []), Tt = c(() => {
218
219
  const { hasErrors: e, updatedEdits: t, firstError: l, errorTypes: r } = X(d);
219
220
  if (e) {
220
221
  if (k(t), a?.showNotification?.("error", we(r)), l) {
221
- const c = m.findIndex((F) => F.id === l.rowId);
222
- W(l.rowId, l.columnKey, c);
222
+ const i = m.findIndex((F) => F.id === l.rowId);
223
+ W(l.rowId, l.columnKey, i);
223
224
  }
224
225
  return;
225
226
  }
226
227
  const o = [];
227
- Object.entries(d).forEach(([c, F]) => {
228
- const v = m.find((T) => T.id === c);
228
+ Object.entries(d).forEach(([i, F]) => {
229
+ const v = m.find((T) => T.id === i);
229
230
  if (v) {
230
231
  const T = { ...v }, L = {};
231
232
  Object.entries(F).forEach(([f, S]) => {
@@ -233,7 +234,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
233
234
  }), o.push({ ...T, __editedFields: L });
234
235
  }
235
236
  }), o.length > 0 && (j ? j(o) : R && R(null, null, null, null, null, { isBulk: !0, rows: o })), k({}), G({}), B(null);
236
- }, [d, m, R, j, X, we, W, a]), ql = i(
237
+ }, [d, m, R, j, X, we, W, a]), Ul = c(
237
238
  (e) => {
238
239
  if (I) return;
239
240
  const t = d[e];
@@ -248,13 +249,13 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
248
249
  }), B(null);
249
250
  },
250
251
  [I, P, d]
251
- ), Ul = i(
252
+ ), Jl = c(
252
253
  (e) => {
253
254
  const t = d[e];
254
255
  if (!t || Object.keys(t).length === 0) return;
255
- const { hasErrors: l, updatedEdits: r, firstError: o, errorTypes: c } = X({ [e]: t });
256
+ const { hasErrors: l, updatedEdits: r, firstError: o, errorTypes: i } = X({ [e]: t });
256
257
  if (l) {
257
- if (k((f) => ({ ...f, [e]: r[e] })), a?.showNotification?.("error", we(c)), o) {
258
+ if (k((f) => ({ ...f, [e]: r[e] })), a?.showNotification?.("error", we(i)), o) {
258
259
  const f = m.findIndex((S) => S.id === o.rowId);
259
260
  W(o.rowId, o.columnKey, f);
260
261
  }
@@ -278,41 +279,41 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
278
279
  }), B(null);
279
280
  },
280
281
  [d, m, R, j, X, we, W, a]
281
- ), $ = H(() => Object.values(d).reduce((e, t) => e + Object.keys(t).length, 0), [d]);
282
+ ), H = $(() => Object.values(d).reduce((e, t) => e + Object.keys(t).length, 0), [d]);
282
283
  y(() => {
283
- lt?.($ > 0, $);
284
- }, [$, lt]);
285
- const Jl = H(() => {
284
+ lt?.(H > 0, H);
285
+ }, [H, lt]);
286
+ const Gl = $(() => {
286
287
  const e = [];
287
288
  return Object.entries(d).forEach(([t, l]) => {
288
289
  const r = m.findIndex((o) => o.id === t);
289
- Object.entries(l).forEach(([o, c]) => {
290
+ Object.entries(l).forEach(([o, i]) => {
290
291
  const F = w.find((v) => v.key === o);
291
- e.push({ rowId: t, columnKey: o, fieldName: F?.Header || F?.display_name || o, value: c.value, originalValue: c.originalValue, meta: c.meta, originalMeta: c.originalMeta, rowIndex: r });
292
+ e.push({ rowId: t, columnKey: o, fieldName: F?.Header || F?.display_name || o, value: i.value, originalValue: i.originalValue, meta: i.meta, originalMeta: i.originalMeta, rowIndex: r });
292
293
  });
293
294
  }), e;
294
- }, [d, w, m]), Gl = H(() => {
295
+ }, [d, w, m]), Xl = $(() => {
295
296
  const e = /* @__PURE__ */ new Map();
296
297
  return Object.entries(d).forEach(([t, l]) => {
297
298
  const r = m.findIndex((o) => o.id === t);
298
299
  e.set(t, { rowId: t, rowIndex: r, editCount: Object.keys(l).length });
299
300
  }), Array.from(e.values()).sort((t, l) => t.rowIndex - l.rowIndex);
300
- }, [d, m]), Xl = i((e) => dt(e), []), Fe = i(() => dt(null), []), Yl = i(
301
+ }, [d, m]), Yl = c((e) => dt(e), []), Fe = c(() => dt(null), []), Zl = c(
301
302
  (e, t) => {
302
303
  ht({ value: e, reference: t }), _?.onSelected && _.onSelected(e, t), Fe();
303
304
  },
304
305
  [_, Fe]
305
- ), Zl = i(() => ht(null), []), Cl = i((e) => pt(e), []), yt = i(() => pt(null), []), Ql = i((e, t) => {
306
+ ), Cl = c(() => ht(null), []), Ql = c((e) => pt(e), []), yt = c(() => pt(null), []), Kl = c((e, t) => {
306
307
  G((l) => ({ ...l, [e]: t }));
307
- }, []), Kl = i(
308
+ }, []), er = c(
308
309
  (e) => Pe[e],
309
310
  [Pe]
310
- ), er = H(() => {
311
- const e = ce.match(/h-\[(\d+px)\]/);
311
+ ), tr = $(() => {
312
+ const e = ie.match(/h-\[(\d+px)\]/);
312
313
  if (e) return e[1];
313
- const t = ce.match(/h-\[(calc\(.+\))\]/);
314
+ const t = ie.match(/h-\[(calc\(.+\))\]/);
314
315
  if (t) return t[1].replace(/([+-])/g, " $1 ").replace(/\s+/g, " ");
315
- }, [ce]), tr = {
316
+ }, [ie]), lr = {
316
317
  isEmpty: ot,
317
318
  isFilters: q,
318
319
  isColumnConfigurable: oe,
@@ -320,73 +321,73 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
320
321
  emptyMessage: Xe,
321
322
  buttons: Ze,
322
323
  noDataWidget: Ye
323
- }, lr = a?.t?.(Bt) ?? Bt, Se = q ? "No Results Found" : Xe || "No Data Found", rr = typeof Se == "string" ? a?.t?.(Se) ?? Se : Se, Nt = { __isLoading: !0 }, nr = new Array(1).fill(Nt), sr = new Array(tl).fill(Nt), Y = H(() => w.filter((e) => !!e?.visible), [w]), or = jr(
324
+ }, rr = a?.t?.(Bt) ?? Bt, Se = q ? "No Results Found" : Xe || "No Data Found", nr = typeof Se == "string" ? a?.t?.(Se) ?? Se : Se, Nt = { __isLoading: !0 }, sr = new Array(1).fill(Nt), or = new Array(tl).fill(Nt), Y = $(() => w.filter((e) => !!e?.visible), [w]), ar = Ir(
324
325
  {
325
326
  columns: pl ? Y : w,
326
- data: [...m, ...se ? m?.length ? nr : sr : []],
327
- defaultColumn: { minWidth: Qr, width: Cr, maxWidth: Zr }
327
+ data: [...m, ...se ? m?.length ? sr : or : []],
328
+ defaultColumn: { minWidth: Kr, width: Qr, maxWidth: Cr }
328
329
  },
329
- Ir
330
- ), { getTableProps: Dt, getTableBodyProps: At, headerGroups: be, prepareRow: Et, rows: M } = or;
330
+ Pr
331
+ ), { getTableProps: Dt, getTableBodyProps: At, headerGroups: be, prepareRow: Et, rows: M } = ar;
331
332
  wt.current = be;
332
- const ar = JSON.stringify(be[0]?.headers?.map((e) => e?.Header));
333
+ const ir = JSON.stringify(be[0]?.headers?.map((e) => e?.Header));
333
334
  y(() => {
334
335
  if (_e) {
335
336
  const e = wt.current;
336
337
  _e?.(e?.[0]?.headers?.map((t) => t?.Header) ?? []);
337
338
  }
338
- }, [ar, _e]);
339
- const { checkboxConfig: Ot } = Nr({
339
+ }, [ir, _e]);
340
+ const { checkboxConfig: Ot } = Dr({
340
341
  rows: M,
341
- checkedIds: g?.checkedIds,
342
- isCheckAllDisabled: g?.isCheckAllDisabled,
343
- selectionDisabledRowIds: g?.selectionDisabledRowIds,
342
+ checkedIds: V?.checkedIds,
343
+ isCheckAllDisabled: V?.isCheckAllDisabled,
344
+ selectionDisabledRowIds: V?.selectionDisabledRowIds,
344
345
  rawData: tt,
345
- onAllChecked: Ml,
346
- setCheckedIds: g?.setCheckedIds,
347
- checkboxMetadata: g?.checkboxMetadata
348
- }), cr = Er(
349
- gt(Or, { activationConstraint: { distance: Pt } }),
350
- gt(_r, { activationConstraint: { distance: Pt } })
351
- ), ir = { easing: ln, duration: tn };
352
- function ur() {
346
+ onAllChecked: Ll,
347
+ setCheckedIds: V?.setCheckedIds,
348
+ checkboxMetadata: V?.checkboxMetadata
349
+ }), cr = Or(
350
+ Vt(_r, { activationConstraint: { distance: Pt } }),
351
+ Vt(kr, { activationConstraint: { distance: Pt } })
352
+ ), ur = { easing: rn, duration: ln };
353
+ function dr() {
353
354
  return !Ke?.length || !Ne ? M : Ke.reduce((e, t) => (e[t] = M.filter((l) => l.original?.type === t), e), {});
354
355
  }
355
- St.current = ur;
356
- const dr = (e) => {
356
+ St.current = dr;
357
+ const hr = (e) => {
357
358
  const { active: t } = e;
358
- ge(M.find((l) => l.original?.id === t?.id) ?? null);
359
- }, hr = (e) => {
359
+ Ve(M.find((l) => l.original?.id === t?.id) ?? null);
360
+ }, mr = (e) => {
360
361
  const { active: t, over: l } = e;
361
- l && (ue?.checkDndDragEnd && ue.checkDndDragEnd(t, l, gl, (r) => {
362
- ct(r), it(!0), ue.onDragSuccess?.({
362
+ l && (ue?.checkDndDragEnd && ue.checkDndDragEnd(t, l, jl, (r) => {
363
+ it(r), ct(!0), ue.onDragSuccess?.({
363
364
  draggedId: t.id,
364
365
  droppedId: l.id,
365
366
  draggedType: t.data.current?.type,
366
367
  droppedType: l.data.current?.type,
367
368
  updatedList: r,
368
- cb: () => it(!1)
369
+ cb: () => ct(!1)
369
370
  });
370
- }), ge(null));
371
- }, mr = () => ge(null), pr = (e) => {
371
+ }), Ve(null));
372
+ }, pr = () => Ve(null), vr = (e) => {
372
373
  !h?.onSort && !n?.onFilter || he(at === e ? null : e);
373
- }, vr = (e) => {
374
- kl(e), Ol(!El), he(null);
375
- }, He = i(() => {
374
+ }, fr = (e) => {
375
+ Rl(e), _l(!Ol), he(null);
376
+ }, $e = c(() => {
376
377
  h?.onRemoveSort ? h.onRemoveSort() : h?.onSort && h.onSort("", "");
377
- }, [h]), xe = i((e = null) => {
378
+ }, [h]), xe = c((e = null) => {
378
379
  st(e), Me((t) => e ? !0 : !t);
379
- }, []), ze = i(() => nt((e) => !e), []), fr = () => {
380
+ }, []), ze = c(() => nt((e) => !e), []), wr = () => {
380
381
  const e = be[0]?.headers?.filter((t) => t?.visible !== !1);
381
382
  for (let t = 0; t < e.length; t++)
382
383
  if (e[t].sticky) return t - 1;
383
384
  return e.length - 1;
384
- }, wr = i(
385
+ }, Fr = c(
385
386
  (e) => {
386
387
  let t = 0;
387
388
  for (let l = e + 1; l < Y.length; l++)
388
389
  Y[l].visible !== !1 && (t += Y[l].width ?? 0);
389
- return de && (t += Oe || Kr), z && (t += Ge ? 0 : en), t;
390
+ return de && (t += Oe || en), z && (t += Ge ? 0 : tn), t;
390
391
  },
391
392
  [Y, Oe, Ge, de, z]
392
393
  ), _t = () => {
@@ -397,7 +398,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
397
398
  created_by: x?.created_by || e,
398
399
  filters: x?.filters || n?.columnFilters,
399
400
  id: x?.id || "untitled-view",
400
- table_key: x?.table_key || V,
401
+ table_key: x?.table_key || g,
401
402
  columns: x?.columns || E?.map((t, l) => ({
402
403
  name: t.Header,
403
404
  width: t.width,
@@ -411,7 +412,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
411
412
  };
412
413
  };
413
414
  Ft.current = _t;
414
- const Fr = (e, t) => {
415
+ const Sr = (e, t) => {
415
416
  const l = _t();
416
417
  U({
417
418
  ...l,
@@ -431,54 +432,54 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
431
432
  ve.current = !1;
432
433
  }
433
434
  }, [n?.columnFilters]);
434
- const Sr = i(
435
+ const br = c(
435
436
  (e) => {
436
437
  ve.current = !0, n?.onRemoveFilter?.(e);
437
438
  },
438
439
  [n?.onRemoveFilter]
439
- ), br = i(() => {
440
+ ), xr = c(() => {
440
441
  ve.current = !0, n?.onClearFilter?.();
441
442
  }, [n?.onClearFilter]);
442
443
  y(() => {
443
444
  h?.columnSort?.field ? (nt(!0), h.columnSort.order === "asc" ? (me(h.columnSort.field), pe(null)) : h.columnSort.order === "desc" && (pe(h.columnSort.field), me(null))) : (me(null), pe(null));
444
445
  }, [h?.columnSort?.field, h?.columnSort?.order]), y(() => {
445
- Ve(Lt(We.current?.columns || [], E));
446
+ ge(Lt(We.current?.columns || [], E));
446
447
  }, [E]), y(() => {
447
448
  x?.unsaved && vt.current?.persistTableView?.(x);
448
449
  }, [x]), y(() => {
449
- ct(St.current());
450
+ it(St.current());
450
451
  }, [M.length]), y(() => {
451
- U(D || null), D?.columns && Ve(Lt(D?.columns || [], ft.current)), D?.filters && D.filters.length > 0 && !Be.current ? (requestAnimationFrame(() => {
452
+ U(D || null), D?.columns && ge(Lt(D?.columns || [], ft.current)), D?.filters && D.filters.length > 0 && !Be.current ? (requestAnimationFrame(() => {
452
453
  fe.current?.onFilter?.(D.filters);
453
454
  }), Be.current = !0) : D?.filters && Be.current && JSON.stringify(D.filters) !== JSON.stringify(fe.current?.columnFilters) && fe.current?.onFilter?.(D.filters);
454
455
  }, [D]), y(() => {
455
456
  if (je.current) {
456
- const e = new ResizeObserver((t) => Il(t[0].contentRect.width));
457
+ const e = new ResizeObserver((t) => Pl(t[0].contentRect.width));
457
458
  return e.observe(je.current), () => e.disconnect();
458
459
  }
459
460
  }, []), y(() => {
460
461
  if (!Ie.current) return;
461
462
  const e = new ResizeObserver((t) => {
462
463
  const { width: l, height: r } = t[0].contentRect;
463
- Pl({ width: l, height: r });
464
+ Bl({ width: l, height: r });
464
465
  });
465
466
  return e.observe(Ie.current), () => e.disconnect();
466
467
  }, []);
467
468
  const kt = /* @__PURE__ */ s(
468
- Hr,
469
+ zr,
469
470
  {
470
471
  isResizable: Qt,
471
472
  headerGroups: be,
472
- isCheckbox: Dl,
473
+ isCheckbox: Al,
473
474
  checkboxConfig: Ot,
474
- isAllChecked: Rl,
475
+ isAllChecked: Ml,
475
476
  showHeaderOptions: at ?? "",
476
477
  setShowHeaderOptions: he,
477
- isShowSortArrowAsc: Ll,
478
+ isShowSortArrowAsc: gl,
478
479
  isShowSortArrowDesc: Vl,
479
480
  onSort: h?.onSort,
480
481
  onFilter: n?.onFilter,
481
- toggleHeaderOption: pr,
482
+ toggleHeaderOption: vr,
482
483
  setIsShowSortArrowAsc: me,
483
484
  setIsShowSortArrowDesc: pe,
484
485
  toggleDataFilterModal: xe,
@@ -490,10 +491,10 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
490
491
  tableActions: Je || null,
491
492
  isLoading: se,
492
493
  rowAdditionalActions: de ?? null,
493
- showPendingEditsColumn: $ > 0
494
+ showPendingEditsColumn: H > 0
494
495
  }
495
- ), Rt = /* @__PURE__ */ b(yr, { children: [
496
- jl || il ? /* @__PURE__ */ s("div", { className: "absolute left-0 top-0 w-full h-full z-40 flex items-center justify-center bg-neutral-100 dark:bg-black-700" }) : null,
496
+ ), Rt = /* @__PURE__ */ b(Nr, { children: [
497
+ Il || cl ? /* @__PURE__ */ s("div", { className: "absolute left-0 top-0 w-full h-full z-40 flex items-center justify-center bg-neutral-100 dark:bg-black-700" }) : null,
497
498
  /* @__PURE__ */ s(
498
499
  "div",
499
500
  {
@@ -501,38 +502,38 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
501
502
  className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 h-full bg-white dark:bg-black-800",
502
503
  children: ot ? /* @__PURE__ */ b("div", { className: "z-10", children: [
503
504
  kt,
504
- /* @__PURE__ */ s("div", { className: "absolute w-full", children: a?.renderEmpty ? a.renderEmpty(tr) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center w-full h-[12rem] text-neutral-900 dark:text-neutral-200 mt-8", children: [
505
- Ye && !q ? /* @__PURE__ */ s(rn, { widgetType: "TABLE" }) : /* @__PURE__ */ s(nn, { text: rr }),
505
+ /* @__PURE__ */ s("div", { className: "absolute w-full", children: a?.renderEmpty ? a.renderEmpty(lr) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center w-full h-[12rem] text-neutral-900 dark:text-neutral-200 mt-8", children: [
506
+ Ye && !q ? /* @__PURE__ */ s(on, { widgetType: "TABLE" }) : /* @__PURE__ */ s(an, { text: nr }),
506
507
  oe && !q ? /* @__PURE__ */ s("div", { className: "my-4", children: /* @__PURE__ */ b(
507
- Vt,
508
+ gt,
508
509
  {
509
510
  id: "btn-table-shell-create-column",
510
511
  status: "primary",
511
512
  appearance: "ghost",
512
513
  onClick: ae,
513
514
  children: [
514
- /* @__PURE__ */ s(sn, { className: "text-white dark:text-white" }),
515
+ /* @__PURE__ */ s(cn, { className: "text-white dark:text-white" }),
515
516
  " ",
516
- lr
517
+ rr
517
518
  ]
518
519
  }
519
520
  ) }) : null,
520
- !q && Ze?.map((e, t) => /* @__PURE__ */ s(Vt, { status: "secondary", id: an(e.label, t), onClick: e.onClick, children: a?.t?.(e.label) ?? e.label }, `${e.label}-${t}`))
521
+ !q && Ze?.map((e, t) => /* @__PURE__ */ s(gt, { status: "secondary", id: dn(e.label, t), onClick: e.onClick, children: a?.t?.(e.label) ?? e.label }, `${e.label}-${t}`))
521
522
  ] }) })
522
523
  ] }) : /* @__PURE__ */ s(
523
- on,
524
+ un,
524
525
  {
525
526
  style: { width: "100%", height: "100%" },
526
527
  renderProp: ({ width: e, height: t }) => {
527
528
  const l = e > 0 ? e : ut.width, r = t > 0 ? t : ut.height;
528
529
  return l > 0 && r > 0 ? /* @__PURE__ */ s(
529
- Pr,
530
+ Br,
530
531
  {
531
532
  getTableBodyProps: At,
532
533
  rows: M,
533
534
  prepareRow: Et,
534
535
  isLoading: se,
535
- onScroll: Ht,
536
+ onScroll: $t,
536
537
  onScrolling: zt,
537
538
  columns: E,
538
539
  width: l,
@@ -546,11 +547,11 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
546
547
  )
547
548
  }
548
549
  )
549
- ] }), xr = jt((e, t) => /* @__PURE__ */ b("div", { className: "h-full w-full", ...e, ref: t, children: [
550
+ ] }), Tr = jt((e, t) => /* @__PURE__ */ b("div", { className: "h-full w-full", ...e, ref: t, children: [
550
551
  kt,
551
552
  /* @__PURE__ */ s("div", { className: "relative w-full h-full", children: e?.children })
552
- ] })), Tr = jt((e, t) => /* @__PURE__ */ s("div", { className: "h-full w-full", ...e, ref: t, children: /* @__PURE__ */ s("div", { className: "relative w-full h-full", children: e?.children }) })), qe = H(() => a?.renderTableHeader ? a.renderTableHeader({
553
- tableKey: V,
553
+ ] })), yr = jt((e, t) => /* @__PURE__ */ s("div", { className: "h-full w-full", ...e, ref: t, children: /* @__PURE__ */ s("div", { className: "relative w-full h-full", children: e?.children }) })), qe = $(() => a?.renderTableHeader ? a.renderTableHeader({
554
+ tableKey: g,
554
555
  search: N?.search,
555
556
  handleSearch: N?.handleSearch,
556
557
  toggleShowFilters: xe,
@@ -575,13 +576,13 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
575
576
  showSorts: u?.showSorts,
576
577
  showSearch: u?.showSearch,
577
578
  isLoading: !!u?.isLoading,
578
- setTableHeaders: Ve,
579
+ setTableHeaders: ge,
579
580
  allowAStarSearch: !!N?.allowAStarSearch,
580
581
  withContent: !!u?.content,
581
582
  setShowFilters: Me,
582
583
  sort: h?.columnSort,
583
584
  onSort: h?.onSort,
584
- onRemoveSort: He,
585
+ onRemoveSort: $e,
585
586
  showExportButton: u?.showExportButton,
586
587
  agreementCategoryId: K,
587
588
  agreementDomainId: ee,
@@ -589,7 +590,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
589
590
  modificationId: le,
590
591
  lineItemRowId: re
591
592
  }) : null, [
592
- V,
593
+ g,
593
594
  N?.search,
594
595
  N?.handleSearch,
595
596
  xe,
@@ -608,7 +609,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
608
609
  w,
609
610
  h?.columnSort,
610
611
  h?.onSort,
611
- He,
612
+ $e,
612
613
  a,
613
614
  N?.allowAStarSearch,
614
615
  Q,
@@ -621,15 +622,15 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
621
622
  return y(() => {
622
623
  Ee && Ee(qe);
623
624
  }, [qe, Ee]), /* @__PURE__ */ b(
624
- Wr.Provider,
625
+ Hr.Provider,
625
626
  {
626
627
  value: {
627
- tableWrapper: xr,
628
- tableBodyWrapper: Tr,
629
- lastNonStickyColumnIndex: fr,
628
+ tableWrapper: Tr,
629
+ tableBodyWrapper: yr,
630
+ lastNonStickyColumnIndex: wr,
630
631
  search: N?.search,
631
632
  columnFilters: n?.columnFilters,
632
- onRowClick: $t,
633
+ onRowClick: Ht,
633
634
  onSort: h?.onSort,
634
635
  onFilter: n?.onFilter,
635
636
  toggleShowFilters: xe,
@@ -646,13 +647,13 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
646
647
  onRowTooltipClick: qt,
647
648
  tooltiptext: Ut,
648
649
  cascadingTableConfig: Jt,
649
- activeInlineEdit: Bl,
650
+ activeInlineEdit: Wl,
650
651
  setActiveInlineEdit: B,
651
652
  originalsOnly: Gt,
652
653
  disableOptionsForRowIndex: Xt,
653
654
  getFullRowDataOnClick: Yt,
654
655
  selectedRowId: Zt,
655
- getSumOfNextVisibleColumnWidth: wr,
656
+ getSumOfNextVisibleColumnWidth: Fr,
656
657
  onRowEdit: R,
657
658
  inlineEditColumns: Ct,
658
659
  tableActions: Je,
@@ -667,12 +668,12 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
667
668
  setExpandedRows: ol,
668
669
  showNewItem: al,
669
670
  rawData: tt,
670
- dragConfig: cl,
671
+ dragConfig: il,
671
672
  rowWrapper: dl,
672
673
  rowLinkConfig: hl,
673
674
  isCellClickDisabled: ml,
674
675
  asyncRowOptionsFilter: n?.asyncRowOptionsFilter,
675
- handleUpdateColumnWidth: Fr,
676
+ handleUpdateColumnWidth: Sr,
676
677
  multiSelectConfig: vl,
677
678
  headerContextOptions: fl,
678
679
  showHeaderContextOptions: wl,
@@ -684,27 +685,27 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
684
685
  rowAdditionalActionsWidth: Oe,
685
686
  cellEditing: bl,
686
687
  cellEditingValue: xl,
687
- openMasterDataModal: Xl,
688
+ openMasterDataModal: Yl,
688
689
  closeMasterDataModal: Fe,
689
- selectedMasterData: Wl,
690
- clearSelectedMasterData: Zl,
690
+ selectedMasterData: Hl,
691
+ clearSelectedMasterData: Cl,
691
692
  allowInlineEdit: Tl,
692
- openCurrencyDropdown: Cl,
693
+ openCurrencyDropdown: Ql,
693
694
  closeCurrencyDropdown: yt,
694
695
  currencyDropdownConfig: mt,
695
696
  selectedCurrenciesMap: Pe,
696
- setCurrencyForCell: Ql,
697
- getCurrencyForCell: Kl,
697
+ setCurrencyForCell: Kl,
698
+ getCurrencyForCell: er,
698
699
  pendingEdits: d,
699
- addPendingEdit: $e,
700
+ addPendingEdit: He,
700
701
  removePendingEdit: $l,
701
- getPendingEdit: Hl,
702
- hasPendingEdit: zl,
702
+ getPendingEdit: zl,
703
+ hasPendingEdit: ql,
703
704
  clearAllPendingEdits: xt,
704
705
  saveAllPendingEdits: Tt,
705
- clearRowPendingEdits: ql,
706
- saveRowPendingEdits: Ul,
707
- pendingEditsCount: $,
706
+ clearRowPendingEdits: Ul,
707
+ saveRowPendingEdits: Jl,
708
+ pendingEditsCount: H,
708
709
  scrollToCell: W,
709
710
  onFieldOperationFlow: yl,
710
711
  fieldOperationLoading: I,
@@ -774,13 +775,13 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
774
775
  ) : null,
775
776
  u?.showDivider ? /* @__PURE__ */ s("div", { className: "border-b pb-2 w-full dark:bg-black-800" }) : null,
776
777
  Re || Le ? /* @__PURE__ */ s("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: /* @__PURE__ */ b("div", { className: "flex gap-2 items-center", children: [
777
- Le && a?.renderSortItem ? a.renderSortItem({ sort: h?.columnSort, onRemoveSort: He, onSort: h?.onSort, tableHeaders: w, data: m }) : null,
778
+ Le && a?.renderSortItem ? a.renderSortItem({ sort: h?.columnSort, onRemoveSort: $e, onSort: h?.onSort, tableHeaders: w, data: m }) : null,
778
779
  Re && Le && h?.columnSort?.field !== "" ? /* @__PURE__ */ s("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
779
780
  Re ? /* @__PURE__ */ b("div", { className: "flex gap-2 items-center", children: [
780
781
  (rt || n?.onResetFilter) && a?.renderActiveFilters && a.renderActiveFilters({
781
782
  filters: n?.columnFilters,
782
- onRemoveFilter: Sr,
783
- onClearFilter: br,
783
+ onRemoveFilter: br,
784
+ onClearFilter: xr,
784
785
  onResetFilter: n?.onResetFilter,
785
786
  onFilter: n?.onFilter,
786
787
  tableHeaders: w,
@@ -799,12 +800,12 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
799
800
  }),
800
801
  a?.renderFilterButtons && a.renderFilterButtons({
801
802
  onClearFilter: n?.onClearFilter,
802
- onClose: vr,
803
+ onClose: fr,
803
804
  modelName: C,
804
805
  enableMasterDataEnumSuggestions: Q,
805
- defaultFilterColumn: Al,
806
+ defaultFilterColumn: El,
806
807
  resetDefaultFilterColumn: () => st(null),
807
- column: _l,
808
+ column: kl,
808
809
  onFilter: n?.onFilter,
809
810
  tableHeaders: w,
810
811
  columnFilters: n?.columnFilters,
@@ -819,7 +820,7 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
819
820
  })
820
821
  ] }) : null
821
822
  ] }) }) : null,
822
- Ae && Object.keys(Ae).length ? /* @__PURE__ */ s(Ar, { ...Ae }) : null,
823
+ Ae && Object.keys(Ae).length ? /* @__PURE__ */ s(Er, { ...Ae }) : null,
823
824
  !ye && De ? /* @__PURE__ */ b("div", { className: "flex items-center gap-1.5 mb-2", children: [
824
825
  /* @__PURE__ */ b(
825
826
  "svg",
@@ -850,27 +851,27 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
850
851
  "div",
851
852
  {
852
853
  ref: Ie,
853
- className: `w-full ${ie ? "h-auto" : ce} rounded-lg relative border overflow-x-hidden`,
854
+ className: `w-full ${ce ? "h-auto" : ie} rounded-lg relative border overflow-x-hidden`,
854
855
  style: {
855
- ...ie ? { height: m?.length > 0 ? `${(m?.length + 1) * 41 + 4}px` : "350px" } : { height: er },
856
+ ...ce ? { height: m?.length > 0 ? `${(m?.length + 1) * Nl + 4}px` : "350px" } : { height: tr },
856
857
  ...ul
857
858
  },
858
- children: el ? Rt : /* @__PURE__ */ b(kr, { sensors: cr, onDragEnd: hr, onDragStart: dr, onDragCancel: mr, collisionDetection: Rr, children: [
859
+ children: el ? Rt : /* @__PURE__ */ b(Rr, { sensors: cr, onDragEnd: mr, onDragStart: hr, onDragCancel: pr, collisionDetection: Mr, children: [
859
860
  Rt,
860
- J ? gr(
861
- /* @__PURE__ */ s(Mr, { adjustScale: !0, dropAnimation: ir, children: /* @__PURE__ */ s("table", { ...Dt(), className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 bg-white dark:bg-black-700 table-auto border-collapse", children: /* @__PURE__ */ b("tbody", { ...At(), className: "bg-transparent divide-y divide-neutral-200", children: [
861
+ J ? jr(
862
+ /* @__PURE__ */ s(Lr, { adjustScale: !0, dropAnimation: ur, children: /* @__PURE__ */ s("table", { ...Dt(), className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 bg-white dark:bg-black-700 table-auto border-collapse", children: /* @__PURE__ */ b("tbody", { ...At(), className: "bg-transparent divide-y divide-neutral-200", children: [
862
863
  void Et(J),
863
- /* @__PURE__ */ s(Br, { row: J, index: M?.findIndex((e) => e.id === J.original.id) }, J.original.id)
864
+ /* @__PURE__ */ s(Wr, { row: J, index: M?.findIndex((e) => e.id === J.original.id) }, J.original.id)
864
865
  ] }) }) }),
865
866
  document.getElementById("full-screen-container") || document.body
866
867
  ) : null
867
868
  ] })
868
869
  }
869
870
  ),
870
- ie && a?.renderPagination ? a.renderPagination(ie) : null,
871
+ ce && a?.renderPagination ? a.renderPagination(ce) : null,
871
872
  a?.renderMasterDataModal && a.renderMasterDataModal({
872
873
  isVisible: !!_,
873
- onSelected: Yl,
874
+ onSelected: Zl,
874
875
  onClose: Fe,
875
876
  masterDataColumnName: _?.masterDataColumnName,
876
877
  masterDataFilters: _?.masterDataFilters,
@@ -880,11 +881,11 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
880
881
  }),
881
882
  /* @__PURE__ */ s($r, { config: mt, onClose: yt }),
882
883
  /* @__PURE__ */ s(
883
- zr,
884
+ qr,
884
885
  {
885
- pendingEditsCount: $,
886
- pendingEditsList: Jl,
887
- rowsWithPendingEdits: Gl,
886
+ pendingEditsCount: H,
887
+ pendingEditsList: Gl,
888
+ rowsWithPendingEdits: Xl,
888
889
  fieldOperationLoading: I,
889
890
  onClearAll: xt,
890
891
  onSaveAll: Tt,
@@ -897,6 +898,6 @@ const on = Vr, Bt = "Create Column", an = (V, N) => `button-admin-${V.toLowerCas
897
898
  }
898
899
  );
899
900
  export {
900
- Mn as InfiniteTable
901
+ jn as InfiniteTable
901
902
  };
902
903
  //# sourceMappingURL=index.es.js.map