@servicetitan/anvil2 2.9.3 → 2.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{AiMark-Dge6ktmW.js → AiMark-DINVII8-.js} +3 -3
- package/dist/{AiMark-Dge6ktmW.js.map → AiMark-DINVII8-.js.map} +1 -1
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-B83r7r7T.js → Alert-Bcjw74vx.js} +2 -2
- package/dist/{Alert-B83r7r7T.js.map → Alert-Bcjw74vx.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Breadcrumbs-c-0298cq.js → Breadcrumbs-CoOuSd2L.js} +2 -2
- package/dist/{Breadcrumbs-c-0298cq.js.map → Breadcrumbs-CoOuSd2L.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Calendar-BHH6BxIs.js → Calendar-C7QP11uk.js} +2 -2
- package/dist/{Calendar-BHH6BxIs.js.map → Calendar-C7QP11uk.js.map} +1 -1
- package/dist/{Calendar-Bl6ZSodE.js → Calendar-rjAph002.js} +2 -2
- package/dist/{Calendar-Bl6ZSodE.js.map → Calendar-rjAph002.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-DuQLvvM8.js → Checkbox-BZ8k0uZb.js} +3 -3
- package/dist/{Checkbox-DuQLvvM8.js.map → Checkbox-BZ8k0uZb.js.map} +1 -1
- package/dist/{Checkbox-CmuW0fml.js → Checkbox-CsNIatRo.js} +2 -2
- package/dist/{Checkbox-CmuW0fml.js.map → Checkbox-CsNIatRo.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-DVzFbbgS.js → Chip-PvXSFpKl.js} +2 -2
- package/dist/{Chip-DVzFbbgS.js.map → Chip-PvXSFpKl.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-BlFWPOin.js → Combobox-BgFH9P75.js} +4 -4
- package/dist/{Combobox-BlFWPOin.js.map → Combobox-BgFH9P75.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-BA-Kn63l.js → DataTable-CbHaFuj2.js} +49 -58
- package/dist/DataTable-CbHaFuj2.js.map +1 -0
- package/dist/{DateFieldRange-4axIJ9QU.js → DateFieldRange-DQ1cmyb5.js} +4 -4
- package/dist/{DateFieldRange-4axIJ9QU.js.map → DateFieldRange-DQ1cmyb5.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-qGf_thDE.js → DateFieldSingle-BpTphoeG.js} +4 -4
- package/dist/{DateFieldSingle-qGf_thDE.js.map → DateFieldSingle-BpTphoeG.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-UTq-FBLX.js → DateFieldYearless-Ph5nlpyY.js} +4 -4
- package/dist/{DateFieldYearless-UTq-FBLX.js.map → DateFieldYearless-Ph5nlpyY.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-Bdf7R_tb.js → DateFieldYearlessRange-iEOUw3Du.js} +3 -3
- package/dist/{DateFieldYearlessRange-Bdf7R_tb.js.map → DateFieldYearlessRange-iEOUw3Du.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-DneS1Y3_.js → DaysOfTheWeek-CBsjDoih.js} +3 -3
- package/dist/{DaysOfTheWeek-DneS1Y3_.js.map → DaysOfTheWeek-CBsjDoih.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Dialog-C6tkX_v7.js → Dialog-n5kt_Ow5.js} +4 -4
- package/dist/{Dialog-C6tkX_v7.js.map → Dialog-n5kt_Ow5.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-5Hj96MyV.js → Drawer-AV26Rn1L.js} +4 -4
- package/dist/{Drawer-5Hj96MyV.js.map → Drawer-AV26Rn1L.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-CJWjBx2_.js → EditCard-03B0-jHq.js} +2 -2
- package/dist/{EditCard-CJWjBx2_.js.map → EditCard-03B0-jHq.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-Qxe_2xNX.js → FieldLabel-1g9Y_K44.js} +3 -3
- package/dist/{FieldLabel-Qxe_2xNX.js.map → FieldLabel-1g9Y_K44.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{InputMask-CcbJbNCy.js → InputMask-Bd4tw5-x.js} +3 -3
- package/dist/{InputMask-CcbJbNCy.js.map → InputMask-Bd4tw5-x.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/InteractiveCard-DqxbIX4f.js +102 -0
- package/dist/InteractiveCard-DqxbIX4f.js.map +1 -0
- package/dist/InteractiveCard.css +13 -21
- package/dist/InteractiveCard.js +1 -1
- package/dist/{ListView-D724tdzO.js → ListView-_ynU8UuV.js} +2 -2
- package/dist/{ListView-D724tdzO.js.map → ListView-_ynU8UuV.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-C7IBAFy_.js → Listbox-DuYnCSLM.js} +2 -2
- package/dist/{Listbox-C7IBAFy_.js.map → Listbox-DuYnCSLM.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-BRXRCOvC.js → MultiSelectFieldSync-CA_OHWZ5.js} +5 -5
- package/dist/{MultiSelectFieldSync-BRXRCOvC.js.map → MultiSelectFieldSync-CA_OHWZ5.js.map} +1 -1
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-DRs3iDQN.js → MultiSelectMenuSync-BSz5_4Wu.js} +3 -3
- package/dist/{MultiSelectMenuSync-DRs3iDQN.js.map → MultiSelectMenuSync-BSz5_4Wu.js.map} +1 -1
- package/dist/{NumberField-Ca-B_7Q5.js → NumberField-CE_6UnsG.js} +3 -3
- package/dist/{NumberField-Ca-B_7Q5.js.map → NumberField-CE_6UnsG.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/Overflow.js +1 -1
- package/dist/{Page-DJIcjeg7.js → Page-D6iAbBGj.js} +9 -9
- package/dist/{Page-DJIcjeg7.js.map → Page-D6iAbBGj.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Pagination-C7O7o6tl.js → Pagination-YO69lIlZ.js} +169 -22
- package/dist/Pagination-YO69lIlZ.js.map +1 -0
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CfG1IJP6.js → Popover-BbqTZw-1.js} +2 -2
- package/dist/{Popover-CfG1IJP6.js.map → Popover-BbqTZw-1.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-gMNOCMkq.js → ProgressBar-Cygv2ii1.js} +2 -2
- package/dist/{ProgressBar-gMNOCMkq.js.map → ProgressBar-Cygv2ii1.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-Cm_MS-YF.js → Radio-BftTzQIc.js} +3 -3
- package/dist/{Radio-Cm_MS-YF.js.map → Radio-BftTzQIc.js.map} +1 -1
- package/dist/{Radio-B_TLtNDx.js → Radio-CGFmTxJ1.js} +2 -2
- package/dist/{Radio-B_TLtNDx.js.map → Radio-CGFmTxJ1.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SelectCard-BbZcAhq1.js → SelectCard-CjDxc2q7.js} +3 -3
- package/dist/{SelectCard-BbZcAhq1.js.map → SelectCard-CjDxc2q7.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-CktsTa2n.js → SelectFieldLabel-DXgUk8cU.js} +2 -2
- package/dist/{SelectFieldLabel-CktsTa2n.js.map → SelectFieldLabel-DXgUk8cU.js.map} +1 -1
- package/dist/{SelectFieldSync-DFnRsT54.js → SelectFieldSync-D0aeALNV.js} +4 -4
- package/dist/{SelectFieldSync-DFnRsT54.js.map → SelectFieldSync-D0aeALNV.js.map} +1 -1
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-ghETSNCu.js → SelectMenuSync-Cf_yCjTR.js} +3 -3
- package/dist/{SelectMenuSync-ghETSNCu.js.map → SelectMenuSync-Cf_yCjTR.js.map} +1 -1
- package/dist/{SelectOptions-D4VTheY3.js → SelectOptions-DWBJXyzG.js} +2 -2
- package/dist/{SelectOptions-D4VTheY3.js.map → SelectOptions-DWBJXyzG.js.map} +1 -1
- package/dist/{SelectTrigger-BpqY5C5I.js → SelectTrigger-BERAM4ZL.js} +2 -2
- package/dist/{SelectTrigger-BpqY5C5I.js.map → SelectTrigger-BERAM4ZL.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-CuchBk53.js → SelectTriggerBase-B0hyyOl4.js} +3 -3
- package/dist/{SelectTriggerBase-CuchBk53.js.map → SelectTriggerBase-B0hyyOl4.js.map} +1 -1
- package/dist/{Switch-rvb_rYeS.js → Switch-BVVW9wp0.js} +2 -2
- package/dist/{Switch-rvb_rYeS.js.map → Switch-BVVW9wp0.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-BRUESjpN.js → Text-3Tbp9SGi.js} +2 -2
- package/dist/{Text-BRUESjpN.js.map → Text-3Tbp9SGi.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-Be-VJZPT.js → TextField-PMLHWUlx.js} +3 -3
- package/dist/{TextField-Be-VJZPT.js.map → TextField-PMLHWUlx.js.map} +1 -1
- package/dist/{TextField-CMkLsLLk.js → TextField-vDEUHRSI.js} +2 -2
- package/dist/{TextField-CMkLsLLk.js.map → TextField-vDEUHRSI.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-DLUFxF7O.js → Textarea-CoHBVOM-.js} +3 -3
- package/dist/{Textarea-DLUFxF7O.js.map → Textarea-CoHBVOM-.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{TimeField-D7pAP5pv.js → TimeField-_ojaBuXD.js} +4 -4
- package/dist/{TimeField-D7pAP5pv.js.map → TimeField-_ojaBuXD.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-Da6LU4h-.js → Toaster-DRM8VdJw.js} +3 -3
- package/dist/{Toaster-Da6LU4h-.js.map → Toaster-DRM8VdJw.js.map} +1 -1
- package/dist/{Toaster-C7j9mOgX.js → Toaster-DeA4M9hh.js} +2 -2
- package/dist/{Toaster-C7j9mOgX.js.map → Toaster-DeA4M9hh.js.map} +1 -1
- package/dist/{Toolbar-CmiI43BR.js → Toolbar-V14Z3yMP.js} +14 -14
- package/dist/{Toolbar-CmiI43BR.js.map → Toolbar-V14Z3yMP.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-Drml7OMN.js → Tooltip-BboNo2-B.js} +2 -2
- package/dist/{Tooltip-Drml7OMN.js.map → Tooltip-BboNo2-B.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/{YearlessDateInputWithPicker-BCUWcF_p.js → YearlessDateInputWithPicker-BGPlWZVx.js} +2 -2
- package/dist/{YearlessDateInputWithPicker-BCUWcF_p.js.map → YearlessDateInputWithPicker-BGPlWZVx.js.map} +1 -1
- package/dist/assets/icons/st/unsorted.svg +1 -1
- package/dist/beta/components/InteractiveCard/InteractiveCard.d.ts +3 -1
- package/dist/beta/components/Table/DataTable/DataTable.d.ts +4 -6
- package/dist/beta/components/Table/DataTable/internal/DataTableBodyRow.d.ts +6 -1
- package/dist/beta/components/Table/DataTable/internal/context/focus/DTFocusContext.d.ts +1 -11
- package/dist/beta/components/Table/DataTable/internal/context/focus/useDTFocusDispatchContext.d.ts +0 -2
- package/dist/beta/components/Table/DataTable/internal/useColumnOrder.d.ts +1 -0
- package/dist/beta.js +10 -10
- package/dist/components/Pagination/internal/Pagination.d.ts +1 -0
- package/dist/components/Pagination/internal/PaginationOverflowMenu.d.ts +12 -1
- package/dist/getKeyboardFocusableElements-CPUr9cdf.js +11 -0
- package/dist/getKeyboardFocusableElements-CPUr9cdf.js.map +1 -0
- package/dist/index.js +38 -38
- package/dist/internal/functions/getKeyboardFocusableElements.d.ts +9 -0
- package/dist/{stripInlineMarkdown-BvoVEz8b.js → stripInlineMarkdown-Dleqe05B.js} +2 -2
- package/dist/{stripInlineMarkdown-BvoVEz8b.js.map → stripInlineMarkdown-Dleqe05B.js.map} +1 -1
- package/dist/{syncFilterUtils-v2Mrjxg-.js → syncFilterUtils-CSfEaBwR.js} +4 -4
- package/dist/{syncFilterUtils-v2Mrjxg-.js.map → syncFilterUtils-CSfEaBwR.js.map} +1 -1
- package/dist/{useDrilldown-5Tl36ntS.js → useDrilldown-DdTNc90h.js} +3 -3
- package/dist/{useDrilldown-5Tl36ntS.js.map → useDrilldown-DdTNc90h.js.map} +1 -1
- package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-BUxEDMEG.js} +2 -2
- package/dist/{useInitialFocus-BIvXK1Rp.js.map → useInitialFocus-BUxEDMEG.js.map} +1 -1
- package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
- package/dist/{usePopoverTransitionStates-B1opfxxn.js.map → usePopoverTransitionStates-CDXCdyKa.js.map} +1 -1
- package/dist/{useToggleSelection-CxDdyrDJ.js → useToggleSelection-OIOX5MHV.js} +2 -2
- package/dist/{useToggleSelection-CxDdyrDJ.js.map → useToggleSelection-OIOX5MHV.js.map} +1 -1
- package/package.json +1 -1
- package/dist/DataTable-BA-Kn63l.js.map +0 -1
- package/dist/InteractiveCard-GTYbR6Xy.js +0 -87
- package/dist/InteractiveCard-GTYbR6Xy.js.map +0 -1
- package/dist/Pagination-C7O7o6tl.js.map +0 -1
- package/dist/getKeyboardFocusableElements-QqcABz0D.js +0 -12
- package/dist/getKeyboardFocusableElements-QqcABz0D.js.map +0 -1
package/dist/Combobox.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as Combobox, a as ComboboxElement, c as ComboboxList, b as ComboboxSelect, C as default } from './Combobox-
|
|
1
|
+
export { C as Combobox, a as ComboboxElement, c as ComboboxList, b as ComboboxSelect, C as default } from './Combobox-BgFH9P75.js';
|
|
2
2
|
export { u as useInfiniteCombobox } from './useInfiniteCombobox-WcRgC9p6.js';
|
|
3
3
|
//# sourceMappingURL=Combobox.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { C as Chip } from './Chip-
|
|
2
|
+
import { C as Chip } from './Chip-PvXSFpKl.js';
|
|
3
3
|
import { F as Flex } from './Flex-WyyZm1bf.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useRef, useState, useLayoutEffect, createContext, useContext, useCallback, forwardRef, useMemo, useImperativeHandle, useEffect, useId, memo as memo$1, Fragment as Fragment$1, isValidElement } from 'react';
|
|
6
6
|
import { c as cx } from './index-De1g9FRV.js';
|
|
7
7
|
import { D as DateTime } from './luxon-wpz4A-OQ.js';
|
|
8
|
-
import { C as Checkbox } from './Checkbox-
|
|
8
|
+
import { C as Checkbox } from './Checkbox-CsNIatRo.js';
|
|
9
9
|
import { B as Button } from './Button-BdrrhBTI.js';
|
|
10
10
|
import { S as SvgChevronRight } from './chevron_right-BdpsxX7x.js';
|
|
11
11
|
import { S as SvgEdit } from './edit-DQOiktcu.js';
|
|
@@ -13,15 +13,15 @@ import { I as Icon } from './Icon-DuIlne4x.js';
|
|
|
13
13
|
import { S as SrOnly } from './SrOnly-eUpYGpAT.js';
|
|
14
14
|
import { u as useNumberField } from './useNumberField-eMyk7MB8.js';
|
|
15
15
|
import { u as useMergeRefs, m as mergeRefs } from './useMergeRefs-Dfmtq9cI.js';
|
|
16
|
-
import { a as SelectMenuSync, S as SelectMenu } from './SelectMenuSync-
|
|
17
|
-
import { a as MultiSelectMenuSync, M as MultiSelectMenu } from './MultiSelectMenuSync-
|
|
18
|
-
import { F as FieldLabel } from './FieldLabel-
|
|
16
|
+
import { a as SelectMenuSync, S as SelectMenu } from './SelectMenuSync-Cf_yCjTR.js';
|
|
17
|
+
import { a as MultiSelectMenuSync, M as MultiSelectMenu } from './MultiSelectMenuSync-BSz5_4Wu.js';
|
|
18
|
+
import { F as FieldLabel } from './FieldLabel-1g9Y_K44.js';
|
|
19
19
|
import { S as SvgError } from './error-DR_wWdYY.js';
|
|
20
20
|
import { S as SvgWarning } from './warning-c4Wj1rI4.js';
|
|
21
|
-
import { T as Tooltip } from './Tooltip-
|
|
21
|
+
import { T as Tooltip } from './Tooltip-BboNo2-B.js';
|
|
22
22
|
import { flushSync } from 'react-dom';
|
|
23
23
|
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-DMDdfIah.js';
|
|
24
|
-
import { P as Pagination } from './Pagination-
|
|
24
|
+
import { P as Pagination } from './Pagination-YO69lIlZ.js';
|
|
25
25
|
import { T as ThemeProviderContext } from './ThemeProviderContext-l52GohYT.js';
|
|
26
26
|
import { u as useVirtualizer } from './index-DXeGMe23.js';
|
|
27
27
|
import { S as Spinner } from './Spinner-BqmcE2pb.js';
|
|
@@ -3903,20 +3903,12 @@ function useDTFocusDispatchContext() {
|
|
|
3903
3903
|
type: "BLUR"
|
|
3904
3904
|
});
|
|
3905
3905
|
}, [dispatch]);
|
|
3906
|
-
const focusSubComponent = useCallback(() => {
|
|
3907
|
-
dispatch({ type: "FOCUS_SUB_COMPONENT" });
|
|
3908
|
-
}, [dispatch]);
|
|
3909
|
-
const blurSubComponent = useCallback(() => {
|
|
3910
|
-
dispatch({ type: "BLUR_SUB_COMPONENT" });
|
|
3911
|
-
}, [dispatch]);
|
|
3912
3906
|
return {
|
|
3913
3907
|
focusTableGenerally,
|
|
3914
3908
|
moveFocusToCell,
|
|
3915
3909
|
moveFocus,
|
|
3916
3910
|
jumpFocus,
|
|
3917
3911
|
blur,
|
|
3918
|
-
focusSubComponent,
|
|
3919
|
-
blurSubComponent,
|
|
3920
3912
|
dispatch
|
|
3921
3913
|
};
|
|
3922
3914
|
}
|
|
@@ -5510,7 +5502,12 @@ function collectDescendantIds(row) {
|
|
|
5510
5502
|
return out;
|
|
5511
5503
|
}
|
|
5512
5504
|
function DataTableBodyRowInner({
|
|
5513
|
-
columnOrder
|
|
5505
|
+
// columnOrder is no longer read directly; the row only needs the
|
|
5506
|
+
// index map for cell positioning. It remains on the props for the
|
|
5507
|
+
// memo-equality check downstream — when columnOrder identity changes
|
|
5508
|
+
// (column reorder/pin change) the row re-renders.
|
|
5509
|
+
columnOrder: _columnOrder,
|
|
5510
|
+
columnIndexMap,
|
|
5514
5511
|
row,
|
|
5515
5512
|
rowIndex,
|
|
5516
5513
|
tableHasSubRows,
|
|
@@ -5527,7 +5524,7 @@ function DataTableBodyRowInner({
|
|
|
5527
5524
|
const visibleCells = row.getVisibleCells();
|
|
5528
5525
|
const id = row.id;
|
|
5529
5526
|
const original = row.original;
|
|
5530
|
-
const
|
|
5527
|
+
const descendantIds = useMemo(() => collectDescendantIds(row), [row]);
|
|
5531
5528
|
const handleRowClick = useCallback(
|
|
5532
5529
|
(event) => {
|
|
5533
5530
|
if (!isActivatable) return;
|
|
@@ -5536,10 +5533,10 @@ function DataTableBodyRowInner({
|
|
|
5536
5533
|
if (target?.closest(ACTIVATE_IGNORE_SELECTOR)) return;
|
|
5537
5534
|
onToggleActive(
|
|
5538
5535
|
row.id,
|
|
5539
|
-
|
|
5536
|
+
descendantIds
|
|
5540
5537
|
);
|
|
5541
5538
|
},
|
|
5542
|
-
[isActivatable, isReadOnly, onToggleActive, row]
|
|
5539
|
+
[isActivatable, isReadOnly, onToggleActive, row.id, descendantIds]
|
|
5543
5540
|
);
|
|
5544
5541
|
const shouldCascadeHover = isActivatable && canExpand;
|
|
5545
5542
|
const handleMouseEnter = useCallback(
|
|
@@ -5547,28 +5544,28 @@ function DataTableBodyRowInner({
|
|
|
5547
5544
|
if (!shouldCascadeHover) return;
|
|
5548
5545
|
const doc = event.currentTarget.ownerDocument ?? document;
|
|
5549
5546
|
const className = styles$8["data-table-body-row-ancestor-hovered"];
|
|
5550
|
-
for (const descendantId of
|
|
5547
|
+
for (const descendantId of descendantIds) {
|
|
5551
5548
|
const el = doc.querySelector(
|
|
5552
5549
|
`[data-row-id="${CSS.escape(String(descendantId))}"]`
|
|
5553
5550
|
);
|
|
5554
5551
|
el?.classList.add(className);
|
|
5555
5552
|
}
|
|
5556
5553
|
},
|
|
5557
|
-
[shouldCascadeHover,
|
|
5554
|
+
[shouldCascadeHover, descendantIds]
|
|
5558
5555
|
);
|
|
5559
5556
|
const handleMouseLeave = useCallback(
|
|
5560
5557
|
(event) => {
|
|
5561
5558
|
if (!shouldCascadeHover) return;
|
|
5562
5559
|
const doc = event.currentTarget.ownerDocument ?? document;
|
|
5563
5560
|
const className = styles$8["data-table-body-row-ancestor-hovered"];
|
|
5564
|
-
for (const descendantId of
|
|
5561
|
+
for (const descendantId of descendantIds) {
|
|
5565
5562
|
const el = doc.querySelector(
|
|
5566
5563
|
`[data-row-id="${CSS.escape(String(descendantId))}"]`
|
|
5567
5564
|
);
|
|
5568
5565
|
el?.classList.remove(className);
|
|
5569
5566
|
}
|
|
5570
5567
|
},
|
|
5571
|
-
[shouldCascadeHover,
|
|
5568
|
+
[shouldCascadeHover, descendantIds]
|
|
5572
5569
|
);
|
|
5573
5570
|
const rowRef = useRef(null);
|
|
5574
5571
|
useLayoutEffect(() => {
|
|
@@ -5621,7 +5618,7 @@ function DataTableBodyRowInner({
|
|
|
5621
5618
|
[styles$8["data-table-body-cell-group"]]: "columns" in cell.column.columnDef || cell.column.parent && isLastInParentGroup,
|
|
5622
5619
|
[styles$8["data-table-body-cell-depth-indent"]]: isFirstDataCell
|
|
5623
5620
|
});
|
|
5624
|
-
const columnIndex =
|
|
5621
|
+
const columnIndex = columnIndexMap.get(cell.column.getIndex()) ?? -1;
|
|
5625
5622
|
return /* @__PURE__ */ jsx(
|
|
5626
5623
|
DataTableBodyCell,
|
|
5627
5624
|
{
|
|
@@ -5646,12 +5643,6 @@ function DataTableBodyRowInner({
|
|
|
5646
5643
|
className: cx(styles$8["data-table-body-sub-component-row"], {
|
|
5647
5644
|
[styles$8["data-table-body-sub-component-row-active"]]: isActive
|
|
5648
5645
|
}),
|
|
5649
|
-
onFocus: () => {
|
|
5650
|
-
focusSubComponent();
|
|
5651
|
-
},
|
|
5652
|
-
onBlur: () => {
|
|
5653
|
-
blurSubComponent();
|
|
5654
|
-
},
|
|
5655
5646
|
children: /* @__PURE__ */ jsx("div", { className: styles$8["data-table-body-sub-component-container"], children: /* @__PURE__ */ jsx(Flex, { className: styles$8["data-table-body-sub-component-content"], children: original.subComponent }) })
|
|
5656
5647
|
}
|
|
5657
5648
|
)
|
|
@@ -5691,8 +5682,16 @@ const useColumnOrder = ({ table }) => {
|
|
|
5691
5682
|
});
|
|
5692
5683
|
return left.concat(middle).concat(right);
|
|
5693
5684
|
}, [table, getColumnIndexes]);
|
|
5685
|
+
const columnIndexMap = useMemo(() => {
|
|
5686
|
+
const map = /* @__PURE__ */ new Map();
|
|
5687
|
+
for (let i = 0; i < columnOrder.length; i++) {
|
|
5688
|
+
map.set(columnOrder[i], i);
|
|
5689
|
+
}
|
|
5690
|
+
return map;
|
|
5691
|
+
}, [columnOrder]);
|
|
5694
5692
|
return {
|
|
5695
|
-
columnOrder
|
|
5693
|
+
columnOrder,
|
|
5694
|
+
columnIndexMap
|
|
5696
5695
|
};
|
|
5697
5696
|
};
|
|
5698
5697
|
|
|
@@ -5722,12 +5721,13 @@ function NonVirtualizedContent({
|
|
|
5722
5721
|
readOnlyRowMap,
|
|
5723
5722
|
onToggleActive
|
|
5724
5723
|
}) {
|
|
5725
|
-
const { columnOrder } = useColumnOrder({ table });
|
|
5724
|
+
const { columnOrder, columnIndexMap } = useColumnOrder({ table });
|
|
5726
5725
|
const headerCount = table.getHeaderGroups().length;
|
|
5727
5726
|
return /* @__PURE__ */ jsx(Fragment, { children: table.getRowModel().rows.map((row, rowIndex) => /* @__PURE__ */ jsx(
|
|
5728
5727
|
DataTableBodyRow,
|
|
5729
5728
|
{
|
|
5730
5729
|
columnOrder,
|
|
5730
|
+
columnIndexMap,
|
|
5731
5731
|
row,
|
|
5732
5732
|
rowIndex: rowIndex + headerCount,
|
|
5733
5733
|
tableHasSubRows: hasSubRows,
|
|
@@ -5757,7 +5757,7 @@ function VirtualizedContent({
|
|
|
5757
5757
|
readOnlyRowMap,
|
|
5758
5758
|
onToggleActive
|
|
5759
5759
|
}) {
|
|
5760
|
-
const { columnOrder } = useColumnOrder({ table });
|
|
5760
|
+
const { columnOrder, columnIndexMap } = useColumnOrder({ table });
|
|
5761
5761
|
const headerCount = table.getHeaderGroups().length;
|
|
5762
5762
|
const rows = table.getRowModel().rows;
|
|
5763
5763
|
const virtualItems = virtualizer.getVirtualItems();
|
|
@@ -5787,6 +5787,7 @@ function VirtualizedContent({
|
|
|
5787
5787
|
DataTableBodyRow,
|
|
5788
5788
|
{
|
|
5789
5789
|
columnOrder,
|
|
5790
|
+
columnIndexMap,
|
|
5790
5791
|
row,
|
|
5791
5792
|
rowIndex: virtualRow.index + headerCount,
|
|
5792
5793
|
tableHasSubRows: hasSubRows,
|
|
@@ -6978,24 +6979,21 @@ function scrollCellIntoView(element, stickyDimensions) {
|
|
|
6978
6979
|
|
|
6979
6980
|
const initialState = {
|
|
6980
6981
|
focusedCell: null,
|
|
6981
|
-
focusRestorePoint: { rowIndex: 0, columnIndex: 0 }
|
|
6982
|
-
hasFocusBeenDisrupted: false
|
|
6982
|
+
focusRestorePoint: { rowIndex: 0, columnIndex: 0 }
|
|
6983
6983
|
};
|
|
6984
6984
|
function reducer(state, action, rowCount, columnCount) {
|
|
6985
6985
|
switch (action.type) {
|
|
6986
6986
|
case "FOCUS_CELL_MANUALLY": {
|
|
6987
6987
|
return {
|
|
6988
6988
|
...state,
|
|
6989
|
-
focusedCell: action.payload.cellPosition
|
|
6990
|
-
hasFocusBeenDisrupted: false
|
|
6989
|
+
focusedCell: action.payload.cellPosition
|
|
6991
6990
|
};
|
|
6992
6991
|
}
|
|
6993
6992
|
case "FOCUS_CELL": {
|
|
6994
6993
|
return {
|
|
6995
6994
|
...state,
|
|
6996
6995
|
focusedCell: action.payload.cellPosition,
|
|
6997
|
-
focusRestorePoint: action.payload.cellPosition
|
|
6998
|
-
hasFocusBeenDisrupted: false
|
|
6996
|
+
focusRestorePoint: action.payload.cellPosition
|
|
6999
6997
|
};
|
|
7000
6998
|
}
|
|
7001
6999
|
case "FOCUS_TABLE": {
|
|
@@ -7081,19 +7079,7 @@ function reducer(state, action, rowCount, columnCount) {
|
|
|
7081
7079
|
return {
|
|
7082
7080
|
...state,
|
|
7083
7081
|
focusedCell: null,
|
|
7084
|
-
focusRestorePoint: state.focusedCell ?? { columnIndex: 0, rowIndex: 0 }
|
|
7085
|
-
hasFocusBeenDisrupted: false
|
|
7086
|
-
};
|
|
7087
|
-
}
|
|
7088
|
-
case "FOCUS_SUB_COMPONENT": {
|
|
7089
|
-
return {
|
|
7090
|
-
...state,
|
|
7091
|
-
hasFocusBeenDisrupted: true
|
|
7092
|
-
};
|
|
7093
|
-
}
|
|
7094
|
-
case "BLUR_SUB_COMPONENT": {
|
|
7095
|
-
return {
|
|
7096
|
-
...state
|
|
7082
|
+
focusRestorePoint: state.focusedCell ?? { columnIndex: 0, rowIndex: 0 }
|
|
7097
7083
|
};
|
|
7098
7084
|
}
|
|
7099
7085
|
default: {
|
|
@@ -7142,9 +7128,6 @@ function DTFocusProvider({
|
|
|
7142
7128
|
stateRef.current.focusedCell
|
|
7143
7129
|
)) {
|
|
7144
7130
|
shouldSkipFocusUpdate = true;
|
|
7145
|
-
if (action.type === "FOCUS_TABLE" && newState.hasFocusBeenDisrupted) {
|
|
7146
|
-
shouldSkipFocusUpdate = false;
|
|
7147
|
-
}
|
|
7148
7131
|
}
|
|
7149
7132
|
stateRef.current = newState;
|
|
7150
7133
|
syncRovingTabindex();
|
|
@@ -7595,10 +7578,10 @@ function DataTableInner(props, ref) {
|
|
|
7595
7578
|
}
|
|
7596
7579
|
},
|
|
7597
7580
|
manualPagination: !isPaginated || isAsyncPaginated,
|
|
7581
|
+
columnResizeMode: "onChange",
|
|
7598
7582
|
// Server provides sorted data via loadPageData; disable client-side sort.
|
|
7599
7583
|
manualSorting: isAsyncPaginated,
|
|
7600
7584
|
autoResetPageIndex: false,
|
|
7601
|
-
columnResizeMode: "onChange",
|
|
7602
7585
|
enableRowSelection: !isSelectable ? false : (row) => {
|
|
7603
7586
|
const original = row.original;
|
|
7604
7587
|
if (readOnlyRowMap[String(original.id)]) return false;
|
|
@@ -7668,6 +7651,14 @@ function DataTableInner(props, ref) {
|
|
|
7668
7651
|
if (typeof svg === "function") return svg;
|
|
7669
7652
|
return colorSchemeMode === "dark" ? svg.dark ?? svg.light : svg.light ?? svg.dark;
|
|
7670
7653
|
})();
|
|
7654
|
+
const headerFingerprint = useMemo(() => {
|
|
7655
|
+
let fp = "";
|
|
7656
|
+
for (const header of headers) {
|
|
7657
|
+
if (header.subHeaders?.length !== 0) continue;
|
|
7658
|
+
fp += header.column.id + ":" + header.column.getSize() + ":" + (header.column.getIsPinned() ?? "") + ":" + (header.column.columnDef.maxSize ?? "") + "|";
|
|
7659
|
+
}
|
|
7660
|
+
return fp;
|
|
7661
|
+
}, [headers]);
|
|
7671
7662
|
const cssVars = useMemo(() => {
|
|
7672
7663
|
const vars = {};
|
|
7673
7664
|
const leafHeaders = headers.filter(
|
|
@@ -7692,7 +7683,7 @@ function DataTableInner(props, ref) {
|
|
|
7692
7683
|
vars["--a2-grid-template-columns"] = gridColumns;
|
|
7693
7684
|
vars["--a2-table-width"] = allHaveMaxWidth ? "max-content" : "100%";
|
|
7694
7685
|
return vars;
|
|
7695
|
-
}, [
|
|
7686
|
+
}, [headerFingerprint, columnSizing]);
|
|
7696
7687
|
const columnCount = useMemo(() => {
|
|
7697
7688
|
return headers.filter((header) => header.subHeaders?.length === 0).length;
|
|
7698
7689
|
}, [headers]);
|
|
@@ -7825,4 +7816,4 @@ function DataTableInner(props, ref) {
|
|
|
7825
7816
|
const DataTable = forwardRef(DataTableInner);
|
|
7826
7817
|
|
|
7827
7818
|
export { COLUMN_TYPE_DEFAULTS as C, DataTable as D, chipsFormatter as a, booleanFormatter as b, createColumnHelper$1 as c, currencyFormatter as d, dateFormatter as e, dateTimeFormatter as f, getColumnTypeDefaults as g, htmlFormatter as h, dateFormatPresets as i, timeFormatter as j, markdownFormatter as m, numberFormatter as n, percentFormatter as p, resolveColumnTypeConfig as r, timeFormatPresets as t, yearlessDateFormatter as y };
|
|
7828
|
-
//# sourceMappingURL=DataTable-
|
|
7819
|
+
//# sourceMappingURL=DataTable-CbHaFuj2.js.map
|