@m4l/components 9.79.1 → 9.80.1-beta-docs-autocomplete-async-with-add-mf-sync.0
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/components/MFLoader/MFLoader.d.ts.map +1 -1
- package/components/MFLoader/MFLoader.js +124 -112
- package/components/MFLoader/hooks/useMFCallbackLifecycle.d.ts +6 -0
- package/components/MFLoader/hooks/useMFCallbackLifecycle.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFCallbackLifecycle.js +25 -0
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.d.ts.map +1 -1
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +53 -61
- package/components/Pager/subcomponents/RowsPerPageSelect/RowsPerPageSelect.d.ts +7 -0
- package/components/Pager/subcomponents/RowsPerPageSelect/RowsPerPageSelect.d.ts.map +1 -0
- package/components/Pager/subcomponents/RowsPerPageSelect/RowsPerPageSelect.js +28 -0
- package/components/Pager/subcomponents/RowsPerPageSelect/types.d.ts +20 -0
- package/components/Pager/subcomponents/RowsPerPageSelect/types.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +49 -47
- package/components/areas/components/AreasViewer/test/popupAuthenticationConstants.d.ts +4 -0
- package/components/areas/components/AreasViewer/test/popupAuthenticationConstants.d.ts.map +1 -0
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +29 -28
- package/components/areas/contexts/AreasContext/tests/mfActionSupport.d.ts +22 -0
- package/components/areas/contexts/AreasContext/tests/mfActionSupport.d.ts.map +1 -0
- package/components/areas/contexts/AreasContext/useMFActionLifecycle.d.ts +4 -0
- package/components/areas/contexts/AreasContext/useMFActionLifecycle.d.ts.map +1 -0
- package/components/areas/contexts/AreasContext/useMFActionLifecycle.js +49 -0
- package/components/datagrids/Datagrid.styles.d.ts.map +1 -1
- package/components/datagrids/Datagrid.styles.js +329 -298
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.d.ts.map +1 -1
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +101 -95
- package/components/datagrids/constants.d.ts +7 -0
- package/components/datagrids/constants.d.ts.map +1 -1
- package/components/datagrids/constants.js +10 -6
- package/components/datagrids/contexts/DataGridContext/DataGridContext.d.ts.map +1 -1
- package/components/datagrids/contexts/DataGridContext/DataGridContext.js +112 -102
- package/components/datagrids/contexts/DataGridContext/types.d.ts +18 -3
- package/components/datagrids/contexts/DataGridContext/types.d.ts.map +1 -1
- package/components/datagrids/dictionary.d.ts +4 -0
- package/components/datagrids/dictionary.d.ts.map +1 -1
- package/components/datagrids/dictionary.js +12 -6
- package/components/datagrids/helpers/index.d.ts +5 -0
- package/components/datagrids/helpers/index.d.ts.map +1 -1
- package/components/datagrids/helpers/normalizeHeaderClickDeferMs.d.ts +5 -0
- package/components/datagrids/helpers/normalizeHeaderClickDeferMs.d.ts.map +1 -0
- package/components/datagrids/helpers/normalizeHeaderClickDeferMs.js +7 -0
- package/components/datagrids/helpers/shared/attachScrollElement/attachScrollElement.d.ts +9 -0
- package/components/datagrids/helpers/shared/attachScrollElement/attachScrollElement.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/attachScrollElement/attachScrollElement.js +14 -0
- package/components/datagrids/helpers/shared/attachScrollElement/index.d.ts +3 -0
- package/components/datagrids/helpers/shared/attachScrollElement/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/attachScrollElement/types.d.ts +14 -0
- package/components/datagrids/helpers/shared/attachScrollElement/types.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/buildCursorExportPaginationInfo.d.ts +4 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/buildCursorExportPaginationInfo.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/buildCursorExportPaginationInfo.js +10 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/index.d.ts +3 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/types.d.ts +7 -0
- package/components/datagrids/helpers/shared/buildCursorExportPaginationInfo/types.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/getInfinitePageSize.d.ts +4 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/getInfinitePageSize.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/getInfinitePageSize.js +12 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/index.d.ts +3 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/types.d.ts +8 -0
- package/components/datagrids/helpers/shared/getInfinitePageSize/types.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/isNearBottom/index.d.ts +2 -0
- package/components/datagrids/helpers/shared/isNearBottom/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/isNearBottom/isNearBottom.d.ts +15 -0
- package/components/datagrids/helpers/shared/isNearBottom/isNearBottom.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/isNearBottom/isNearBottom.js +6 -0
- package/components/datagrids/hooks/index.d.ts +2 -0
- package/components/datagrids/hooks/index.d.ts.map +1 -1
- package/components/datagrids/hooks/shared/useInfiniteScroll/index.d.ts +3 -0
- package/components/datagrids/hooks/shared/useInfiniteScroll/index.d.ts.map +1 -0
- package/components/datagrids/hooks/shared/useInfiniteScroll/types.d.ts +26 -0
- package/components/datagrids/hooks/shared/useInfiniteScroll/types.d.ts.map +1 -0
- package/components/datagrids/hooks/shared/useInfiniteScroll/useInfiniteScroll.d.ts +13 -0
- package/components/datagrids/hooks/shared/useInfiniteScroll/useInfiniteScroll.d.ts.map +1 -0
- package/components/datagrids/hooks/shared/useInfiniteScroll/useInfiniteScroll.js +69 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/index.d.ts +3 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/index.d.ts.map +1 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/types.d.ts +32 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/types.d.ts.map +1 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/useInfiniteScrollGate.d.ts +17 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/useInfiniteScrollGate.d.ts.map +1 -0
- package/components/datagrids/hooks/useInfiniteScrollGate/useInfiniteScrollGate.js +20 -0
- package/components/datagrids/hooks/useRemeasureOnReady/useRemeasureOnReady.d.ts +4 -1
- package/components/datagrids/hooks/useRemeasureOnReady/useRemeasureOnReady.d.ts.map +1 -1
- package/components/datagrids/hooks/useRemeasureOnReady/useRemeasureOnReady.js +33 -25
- package/components/datagrids/index.d.ts +5 -2
- package/components/datagrids/index.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridEnum.d.ts +4 -0
- package/components/datagrids/slots/DataGridEnum.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridEnum.js +5 -4
- package/components/datagrids/slots/DataGridSlot.d.ts +11 -0
- package/components/datagrids/slots/DataGridSlot.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridSlot.js +121 -113
- package/components/datagrids/subcomponents/InfiniteScrollStatus/InfiniteScrollStatus.d.ts +8 -0
- package/components/datagrids/subcomponents/InfiniteScrollStatus/InfiniteScrollStatus.d.ts.map +1 -0
- package/components/datagrids/subcomponents/InfiniteScrollStatus/InfiniteScrollStatus.js +46 -0
- package/components/datagrids/subcomponents/InfiniteScrollStatus/index.d.ts +3 -0
- package/components/datagrids/subcomponents/InfiniteScrollStatus/index.d.ts.map +1 -0
- package/components/datagrids/subcomponents/InfiniteScrollStatus/types.d.ts +11 -0
- package/components/datagrids/subcomponents/InfiniteScrollStatus/types.d.ts.map +1 -0
- package/components/datagrids/subcomponents/index.d.ts +1 -0
- package/components/datagrids/subcomponents/index.d.ts.map +1 -1
- package/components/datagrids/tests/helpers/InfiniteScrollStory.d.ts +9 -0
- package/components/datagrids/tests/helpers/InfiniteScrollStory.d.ts.map +1 -0
- package/components/datagrids/tests/helpers/infiniteScrollStoryHelpers.d.ts +22 -0
- package/components/datagrids/tests/helpers/infiniteScrollStoryHelpers.d.ts.map +1 -0
- package/components/datagrids/types.d.ts +69 -4
- package/components/datagrids/types.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/CardsView.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/CardsView.js +90 -79
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/index.d.ts +3 -0
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/index.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/observeContainerWidth.d.ts +9 -0
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/observeContainerWidth.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/observeContainerWidth.js +13 -0
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/types.d.ts +14 -0
- package/components/datagrids/views/CardsView/helpers/observeContainerWidth/types.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/types.d.ts +15 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/types.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/useCardsPerRow.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/useCardsPerRow.js +18 -14
- package/components/datagrids/views/ListView/ListView.d.ts.map +1 -1
- package/components/datagrids/views/ListView/ListView.js +65 -54
- package/components/datagrids/views/TableView/TableView.d.ts.map +1 -1
- package/components/datagrids/views/TableView/TableView.js +119 -111
- package/components/datagrids/views/TableView/helpers/getDragHeaderRenderer/getDragHeaderRenderer.d.ts +1 -0
- package/components/datagrids/views/TableView/helpers/getDragHeaderRenderer/getDragHeaderRenderer.d.ts.map +1 -1
- package/components/datagrids/views/TableView/helpers/getDragHeaderRenderer/getDragHeaderRenderer.js +9 -8
- package/components/datagrids/views/TableView/hooks/useColumnSortRules/index.d.ts +2 -0
- package/components/datagrids/views/TableView/hooks/useColumnSortRules/index.d.ts.map +1 -0
- package/components/datagrids/views/TableView/hooks/useColumnSortRules/useColumnSortRules.d.ts +25 -0
- package/components/datagrids/views/TableView/hooks/useColumnSortRules/useColumnSortRules.d.ts.map +1 -0
- package/components/datagrids/views/TableView/hooks/useColumnSortRules/useColumnSortRules.js +97 -0
- package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.d.ts.map +1 -1
- package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.js +117 -138
- package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.d.ts.map +1 -1
- package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +57 -54
- package/components/datagrids/views/TableView/subcomponents/DraggableHeaderRenderer/DraggableHeaderRenderer.d.ts.map +1 -1
- package/components/datagrids/views/TableView/subcomponents/DraggableHeaderRenderer/DraggableHeaderRenderer.js +108 -82
- package/components/datagrids/views/TableView/subcomponents/DraggableHeaderRenderer/types.d.ts +2 -0
- package/components/datagrids/views/TableView/subcomponents/DraggableHeaderRenderer/types.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.js +55 -54
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +81 -72
- package/components/extended/mui/Autocomplete/types.d.ts +1 -1
- package/components/extended/mui/Autocomplete/types.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts +4 -0
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.js +23 -0
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts +5 -9
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.js +87 -56
- package/components/extended/mui/AutocompleteAsync/constants.d.ts +4 -1
- package/components/extended/mui/AutocompleteAsync/constants.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/constants.js +24 -12
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts +9 -0
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.js +97 -0
- package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.js +47 -46
- package/components/extended/mui/AutocompleteAsync/index.d.ts +1 -1
- package/components/extended/mui/AutocompleteAsync/index.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.js +50 -28
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts +6 -0
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.js +19 -0
- package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts +5 -0
- package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts +8 -0
- package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts +20 -0
- package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts +4 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts +8 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts +4 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts +3 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts +21 -0
- package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts.map +1 -0
- package/components/extended/mui/AutocompleteAsync/types.d.ts +47 -0
- package/components/extended/mui/AutocompleteAsync/types.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/types.js +4 -2
- package/components/extended/mui/IconButton/IconButton.styles.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts.map +1 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts +3 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts.map +1 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts +4 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts.map +1 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts +12 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts.map +1 -0
- package/components/hook-form/index.d.ts +1 -0
- package/components/hook-form/index.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +764 -746
- package/package.json +6 -6
- package/utils/mfActions/constants.d.ts +6 -0
- package/utils/mfActions/constants.d.ts.map +1 -0
- package/utils/mfActions/constants.js +8 -0
- package/utils/mfActions/index.d.ts +5 -0
- package/utils/mfActions/index.d.ts.map +1 -0
- package/utils/mfActions/mfActions.d.ts +10 -0
- package/utils/mfActions/mfActions.d.ts.map +1 -0
- package/utils/mfActions/mfActions.js +47 -0
- package/utils/mfActions/openMFCallbackAction.d.ts +4 -0
- package/utils/mfActions/openMFCallbackAction.d.ts.map +1 -0
- package/utils/mfActions/openMFCallbackAction.js +36 -0
- package/utils/mfActions/tests/callbackHelpers.d.ts +9 -0
- package/utils/mfActions/tests/callbackHelpers.d.ts.map +1 -0
- package/utils/mfActions/tests/constants.d.ts +6 -0
- package/utils/mfActions/tests/constants.d.ts.map +1 -0
- package/utils/mfActions/tests/helpers.d.ts +4 -0
- package/utils/mfActions/tests/helpers.d.ts.map +1 -0
- package/utils/mfActions/tests/types.d.ts +8 -0
- package/utils/mfActions/tests/types.d.ts.map +1 -0
- package/utils/mfActions/types.d.ts +47 -0
- package/utils/mfActions/types.d.ts.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseDataGrid.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/components/BaseDataGrid/BaseDataGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseDataGrid.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/components/BaseDataGrid/BaseDataGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAqB,MAAM,aAAa,CAAC;AASvE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,EAC1E,KAAK,EAAE,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,oDA+IxE"}
|
|
@@ -1,128 +1,134 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useModuleSkeleton as
|
|
4
|
-
import { DataGridProvider as
|
|
5
|
-
import { TEST_PROP_COLUMNS as
|
|
6
|
-
import { TEST_PROP_ID as
|
|
7
|
-
import { getNameDataTestId as
|
|
8
|
-
import { TEST_SKELETON as
|
|
9
|
-
import { DataGridRootStyled as
|
|
10
|
-
import { getComponentSlotRoot as
|
|
11
|
-
import { useComponentSize as
|
|
12
|
-
import { useRemeasureOnReady as
|
|
13
|
-
import { FilterProvider as
|
|
14
|
-
import { HeaderActions as
|
|
15
|
-
import { ControlNavigate as
|
|
16
|
-
|
|
1
|
+
import { jsx as e, jsxs as q } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as Q, Fragment as W } from "react";
|
|
3
|
+
import { useModuleSkeleton as Y } from "@m4l/core";
|
|
4
|
+
import { DataGridProvider as Z } from "../../contexts/DataGridContext/DataGridContext.js";
|
|
5
|
+
import { TEST_PROP_COLUMNS as $ } from "../../types.js";
|
|
6
|
+
import { TEST_PROP_ID as ee } from "../../../../test/constants_no_mock.js";
|
|
7
|
+
import { getNameDataTestId as te } from "../../../../test/getNameDataTestId.js";
|
|
8
|
+
import { TEST_SKELETON as oe, DATAGRID_PREFIX_NAME as d } from "../../constants.js";
|
|
9
|
+
import { DataGridRootStyled as re, CustomHeaderStyled as ie } from "../../slots/DataGridSlot.js";
|
|
10
|
+
import { getComponentSlotRoot as se } from "../../../../utils/getComponentSlotRoot.js";
|
|
11
|
+
import { useComponentSize as ne } from "../../../../hooks/useComponentSize/index.js";
|
|
12
|
+
import { useRemeasureOnReady as ae } from "../../hooks/useRemeasureOnReady/useRemeasureOnReady.js";
|
|
13
|
+
import { FilterProvider as le } from "../../contexts/FilterContext/FilterContext.js";
|
|
14
|
+
import { HeaderActions as me } from "../../subcomponents/HeaderActions/HeaderActions.js";
|
|
15
|
+
import { ControlNavigate as ce } from "../../subcomponents/ControlNavigate/ControlNavigate.js";
|
|
16
|
+
import { InfiniteScrollStatus as de } from "../../subcomponents/InfiniteScrollStatus/InfiniteScrollStatus.js";
|
|
17
|
+
function Oe(f) {
|
|
17
18
|
const {
|
|
18
|
-
id:
|
|
19
|
-
withActions:
|
|
19
|
+
id: u,
|
|
20
|
+
withActions: p = !0,
|
|
20
21
|
rows: i,
|
|
21
22
|
columns: t,
|
|
22
23
|
actionsProps: s,
|
|
23
|
-
rowKeyGetter:
|
|
24
|
-
rowActionsGetter:
|
|
25
|
-
rowHeaderHeights:
|
|
26
|
-
rowHeights:
|
|
24
|
+
rowKeyGetter: g,
|
|
25
|
+
rowActionsGetter: h,
|
|
26
|
+
rowHeaderHeights: C,
|
|
27
|
+
rowHeights: S,
|
|
27
28
|
initialRowHeightVariant: w,
|
|
28
|
-
checkedRows:
|
|
29
|
-
onCheckedRowsChange:
|
|
30
|
-
checkedRowsMultiple:
|
|
31
|
-
dataTestId:
|
|
29
|
+
checkedRows: R,
|
|
30
|
+
onCheckedRowsChange: D,
|
|
31
|
+
checkedRowsMultiple: P,
|
|
32
|
+
dataTestId: T = "",
|
|
32
33
|
customHeader: n,
|
|
33
|
-
visibleCustomHeader:
|
|
34
|
-
defaultConfig:
|
|
35
|
-
onChangeConfig:
|
|
36
|
-
defaultUserColumns:
|
|
37
|
-
onChangeUserColumns:
|
|
38
|
-
size:
|
|
39
|
-
externalSortSettings:
|
|
40
|
-
externalFilterSettings:
|
|
41
|
-
defaultViewMode:
|
|
42
|
-
cardsViewConfig:
|
|
43
|
-
listViewConfig:
|
|
44
|
-
reorderable:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
visibleCustomHeader: A = !0,
|
|
35
|
+
defaultConfig: E,
|
|
36
|
+
onChangeConfig: H,
|
|
37
|
+
defaultUserColumns: N,
|
|
38
|
+
onChangeUserColumns: O,
|
|
39
|
+
size: _,
|
|
40
|
+
externalSortSettings: G,
|
|
41
|
+
externalFilterSettings: k,
|
|
42
|
+
defaultViewMode: v,
|
|
43
|
+
cardsViewConfig: x,
|
|
44
|
+
listViewConfig: y,
|
|
45
|
+
reorderable: z = !0,
|
|
46
|
+
headerClickDeferMs: F,
|
|
47
|
+
children: I
|
|
48
|
+
} = f, {
|
|
49
|
+
withSettings: M,
|
|
50
|
+
settingsProps: V,
|
|
51
|
+
withRowsCount: a,
|
|
52
|
+
withLocalFilters: K,
|
|
53
|
+
leftActions: L,
|
|
54
|
+
rightActions: U,
|
|
53
55
|
withPager: o,
|
|
54
|
-
pagerOptions:
|
|
55
|
-
exportConfig:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
pagerOptions: b,
|
|
57
|
+
exportConfig: j,
|
|
58
|
+
infiniteScrollOptions: l
|
|
59
|
+
} = s, { currentSize: r } = ne(_), m = Q(null), B = ae({ containerRef: m }), J = se(d), c = {
|
|
60
|
+
visibleCustomHeader: A
|
|
61
|
+
}, X = Y();
|
|
59
62
|
return /* @__PURE__ */ e(
|
|
60
|
-
|
|
63
|
+
re,
|
|
61
64
|
{
|
|
62
|
-
ownerState:
|
|
63
|
-
ref:
|
|
64
|
-
className:
|
|
65
|
+
ownerState: c,
|
|
66
|
+
ref: m,
|
|
67
|
+
className: J,
|
|
65
68
|
...process.env.NODE_ENV !== "production" ? {
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
|
|
69
|
+
[$]: JSON.stringify(t),
|
|
70
|
+
[ee]: te(
|
|
71
|
+
d,
|
|
69
72
|
"root",
|
|
70
|
-
|
|
73
|
+
T
|
|
71
74
|
),
|
|
72
|
-
[
|
|
75
|
+
[oe]: !!X
|
|
73
76
|
} : {},
|
|
74
77
|
children: /* @__PURE__ */ e(
|
|
75
|
-
|
|
78
|
+
Z,
|
|
76
79
|
{
|
|
77
|
-
id:
|
|
80
|
+
id: u,
|
|
78
81
|
columns: t,
|
|
79
|
-
rowHeights:
|
|
80
|
-
rowHeaderHeights:
|
|
82
|
+
rowHeights: S,
|
|
83
|
+
rowHeaderHeights: C,
|
|
81
84
|
initialRowHeightVariant: w,
|
|
82
85
|
rowsCount: i.length,
|
|
83
|
-
checkedRows:
|
|
84
|
-
rowActionsGetter:
|
|
85
|
-
onCheckedRowsChange:
|
|
86
|
-
checkedRowsMultiple:
|
|
87
|
-
rowKeyGetter:
|
|
86
|
+
checkedRows: R,
|
|
87
|
+
rowActionsGetter: h,
|
|
88
|
+
onCheckedRowsChange: D,
|
|
89
|
+
checkedRowsMultiple: P,
|
|
90
|
+
rowKeyGetter: g,
|
|
88
91
|
rows: i,
|
|
89
|
-
defaultConfig:
|
|
90
|
-
onChangeConfig:
|
|
91
|
-
defaultUserColumns:
|
|
92
|
-
onChangeUserColumns:
|
|
92
|
+
defaultConfig: E,
|
|
93
|
+
onChangeConfig: H,
|
|
94
|
+
defaultUserColumns: N,
|
|
95
|
+
onChangeUserColumns: O,
|
|
93
96
|
size: r,
|
|
94
|
-
externalSortSettings:
|
|
95
|
-
externalFilterSettings:
|
|
96
|
-
defaultViewMode:
|
|
97
|
-
cardsViewConfig:
|
|
98
|
-
listViewConfig:
|
|
99
|
-
reorderable:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
externalSortSettings: G,
|
|
98
|
+
externalFilterSettings: k,
|
|
99
|
+
defaultViewMode: v,
|
|
100
|
+
cardsViewConfig: x,
|
|
101
|
+
listViewConfig: y,
|
|
102
|
+
reorderable: z,
|
|
103
|
+
infiniteScrollOptions: l,
|
|
104
|
+
headerClickDeferMs: F,
|
|
105
|
+
children: /* @__PURE__ */ q(le, { initialActiveFilters: !1, children: [
|
|
106
|
+
p && s && /* @__PURE__ */ e(
|
|
107
|
+
me,
|
|
103
108
|
{
|
|
104
|
-
withSettings:
|
|
105
|
-
settingsProps:
|
|
106
|
-
withRowsCount:
|
|
107
|
-
withLocalFilters:
|
|
108
|
-
leftActions:
|
|
109
|
-
rightActions:
|
|
109
|
+
withSettings: M,
|
|
110
|
+
settingsProps: V,
|
|
111
|
+
withRowsCount: a,
|
|
112
|
+
withLocalFilters: K,
|
|
113
|
+
leftActions: L,
|
|
114
|
+
rightActions: U,
|
|
110
115
|
withPager: o,
|
|
111
|
-
exportConfig:
|
|
116
|
+
exportConfig: j,
|
|
112
117
|
columns: t,
|
|
113
118
|
size: r
|
|
114
119
|
}
|
|
115
120
|
),
|
|
116
|
-
n ? /* @__PURE__ */ e(
|
|
117
|
-
/* @__PURE__ */ e(
|
|
121
|
+
n ? /* @__PURE__ */ e(ie, { ownerState: c, children: n }) : null,
|
|
122
|
+
/* @__PURE__ */ e(W, { children: I }, B),
|
|
118
123
|
o && /* @__PURE__ */ e(
|
|
119
|
-
|
|
124
|
+
ce,
|
|
120
125
|
{
|
|
121
126
|
size: r,
|
|
122
127
|
withPager: o,
|
|
123
|
-
pagerOptions:
|
|
128
|
+
pagerOptions: b
|
|
124
129
|
}
|
|
125
|
-
)
|
|
130
|
+
),
|
|
131
|
+
l && /* @__PURE__ */ e(de, { withRowsCount: a })
|
|
126
132
|
] })
|
|
127
133
|
}
|
|
128
134
|
)
|
|
@@ -130,5 +136,5 @@ function De(c) {
|
|
|
130
136
|
);
|
|
131
137
|
}
|
|
132
138
|
export {
|
|
133
|
-
|
|
139
|
+
Oe as BaseDataGrid
|
|
134
140
|
};
|
|
@@ -5,6 +5,9 @@ export declare const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
|
5
5
|
export declare const TEST_SKELETON = "data-skeleton";
|
|
6
6
|
export declare const DATAGRID_HEADER_RENDER_CLICK_KEY = "M4LDataGrid-HeaderRenderClick";
|
|
7
7
|
export declare const DATAGRID_ID_DICTIONARY = "data_grid";
|
|
8
|
+
export declare const DEFAULT_HEADER_CLICK_DEFER_MS = 250;
|
|
9
|
+
/** Available row counts for a DataGrid page. */
|
|
10
|
+
export declare const DATA_GRID_ROWS_PER_PAGE_OPTIONS: number[];
|
|
8
11
|
export declare enum DATAGRID_SEMANTIC_WIDTHS {
|
|
9
12
|
actions = 40,
|
|
10
13
|
bigChip = 190,
|
|
@@ -34,6 +37,10 @@ export declare const DATAGRID_ROW_HEADER_HEIGHTS: number[];
|
|
|
34
37
|
* Alturas de las filas del DataGrid
|
|
35
38
|
*/
|
|
36
39
|
export declare const DATAGRID_ROW_HEIGHTS: number[];
|
|
40
|
+
/** Size of the first request before measurement and the floor for small grids. */
|
|
41
|
+
export declare const DATAGRID_INFINITE_MIN_PAGE_SIZE = 25;
|
|
42
|
+
/** Lowest per-request limit cap found in backend endpoints. */
|
|
43
|
+
export declare const DATAGRID_INFINITE_MAX_PAGE_SIZE = 100;
|
|
37
44
|
/**
|
|
38
45
|
* Configuración de densidad para el DataGrid.
|
|
39
46
|
* Densidad estándar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/datagrids/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,2BAA2B,8BAA8B,CAAC;AACvE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,gCAAgC,kCAAkC,CAAC;AAChF,eAAO,MAAM,sBAAsB,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/datagrids/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,2BAA2B,8BAA8B,CAAC;AACvE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,gCAAgC,kCAAkC,CAAC;AAChF,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,gDAAgD;AAChD,eAAO,MAAM,+BAA+B,EAAE,MAAM,EAAqC,CAAC;AAE1F,oBAAY,wBAAwB;IAClC,OAAO,KAAK;IACZ,OAAO,MAAM;IACb,cAAc,MAAM;IACpB,KAAK,MAAM;IACX,OAAO,MAAM;IACb,SAAS,MAAM;IACf,IAAI,MAAM;IACV,KAAK,MAAM;IACX,UAAU,MAAM;IAChB,iBAAiB,MAAM;IACvB,QAAQ,MAAM;IAEd,UAAU,MAAM;IAEhB,YAAY,MAAM;IAClB,aAAa,KAAK;IAClB,SAAS,KAAK;IAEd,gBAAgB,MAAM;IACtB,OAAO,KAAK;IAEZ,SAAS,KAAK;IACd,WAAW,KAAK;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,EAAiB,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,EAAiB,CAAC;AAE3D,kFAAkF;AAClF,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,+DAA+D;AAC/D,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,qBAIzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,MAAM,EAAiB,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,EAAiB,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,qBAI5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW;IACtB,0DAA0D;;IAE1D,yCAAyC;;IAEzC,8CAA8C;;IAE9C,yBAAyB;;CAE1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const e = "M4LDataGrid", a = "M4LDataGrid-ActionsColumn", t = "data-skeleton", s = "M4LDataGrid-HeaderRenderClick",
|
|
1
|
+
const e = "M4LDataGrid", a = "M4LDataGrid-ActionsColumn", t = "data-skeleton", s = "M4LDataGrid-HeaderRenderClick", n = "data_grid", d = 250, r = [1, 2, 3, 4, 5, 10, 25, 50, 100];
|
|
2
2
|
var m = /* @__PURE__ */ ((i) => (i[i.actions = 40] = "actions", i[i.bigChip = 190] = "bigChip", i[i.bigDescription = 350] = "bigDescription", i[i.bigId = 200] = "bigId", i[i.bigName = 290] = "bigName", i[i.bigNumber = 150] = "bigNumber", i[i.date = 180] = "date", i[i.email = 300] = "email", i[i.mediumChip = 140] = "mediumChip", i[i.mediumDescription = 280] = "mediumDescription", i[i.mediumId = 130] = "mediumId", i[i.mediumName = 180] = "mediumName", i[i.mediumNumber = 150] = "mediumNumber", i[i.percentNumber = 90] = "percentNumber", i[i.smallChip = 70] = "smallChip", i[i.smallDescription = 130] = "smallDescription", i[i.smallId = 50] = "smallId", i[i.smallName = 90] = "smallName", i[i.smallNumber = 60] = "smallNumber", i))(m || {});
|
|
3
|
-
const
|
|
3
|
+
const l = [32, 40, 48], c = [32, 40, 48], o = 25, u = 100, b = {
|
|
4
4
|
/** Altura del CardHeader (checkbox + iconos de acción) */
|
|
5
5
|
HEADER: 42,
|
|
6
6
|
/** Altura por columna (label + value) */
|
|
@@ -11,13 +11,17 @@ const r = [32, 40, 48], l = [32, 40, 48], n = {
|
|
|
11
11
|
BASE_MIN: 120
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
b as CARD_HEIGHT,
|
|
15
15
|
a as DATAGRID_ACTIONS_COLUMN_KEY,
|
|
16
16
|
s as DATAGRID_HEADER_RENDER_CLICK_KEY,
|
|
17
|
-
|
|
17
|
+
n as DATAGRID_ID_DICTIONARY,
|
|
18
|
+
u as DATAGRID_INFINITE_MAX_PAGE_SIZE,
|
|
19
|
+
o as DATAGRID_INFINITE_MIN_PAGE_SIZE,
|
|
18
20
|
e as DATAGRID_PREFIX_NAME,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
l as DATAGRID_ROW_HEADER_HEIGHTS,
|
|
22
|
+
c as DATAGRID_ROW_HEIGHTS,
|
|
21
23
|
m as DATAGRID_SEMANTIC_WIDTHS,
|
|
24
|
+
r as DATA_GRID_ROWS_PER_PAGE_OPTIONS,
|
|
25
|
+
d as DEFAULT_HEADER_CLICK_DEFER_MS,
|
|
22
26
|
t as TEST_SKELETON
|
|
23
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridContext.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/contexts/DataGridContext/DataGridContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EAGtB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DataGridContext.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/contexts/DataGridContext/DataGridContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EAGtB,MAAM,SAAS,CAAC;AAiCjB,QAAA,MAAM,eAAe,qEAIN,CAAC;AAEhB;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,EACvE,KAAK,EAAE,qBAAqB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,oDA6iBtD;AAED,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,85 +1,91 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useFirstRender as
|
|
4
|
-
import { getComponentClasses as
|
|
5
|
-
import { DATAGRID_ROW_HEIGHTS as
|
|
6
|
-
import { ControlNavigateSlots as
|
|
7
|
-
import { deepEqual as
|
|
8
|
-
import { useViewMode as
|
|
9
|
-
import { useRowHeight as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import { jsx as Ro } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext as So, useState as b, useEffect as H, useMemo as vo } from "react";
|
|
3
|
+
import { useFirstRender as Do } from "@m4l/graphics";
|
|
4
|
+
import { getComponentClasses as Ho } from "../../../../utils/getComponentSlotRoot.js";
|
|
5
|
+
import { DATAGRID_ROW_HEIGHTS as ko, DATAGRID_ROW_HEADER_HEIGHTS as xo, DATAGRID_PREFIX_NAME as Eo } from "../../constants.js";
|
|
6
|
+
import { ControlNavigateSlots as Go, ColumnsConfigSlots as To, TextEditorSlots as bo, TableSlots as Ko, RowsCountSlots as Io, ActionsSlots as Fo, DataGridSlots as Oo } from "../../slots/DataGridEnum.js";
|
|
7
|
+
import { deepEqual as $o } from "fast-equals";
|
|
8
|
+
import { useViewMode as Ao } from "../../hooks/useViewMode/useViewMode.js";
|
|
9
|
+
import { useRowHeight as Mo } from "../../hooks/useRowHeight/useRowHeight.js";
|
|
10
|
+
import { useInfiniteScrollGate as Wo } from "../../hooks/useInfiniteScrollGate/useInfiniteScrollGate.js";
|
|
11
|
+
import { useColumnsWidth as zo } from "../../hooks/useColumnsWidth/useColumnsWidth.js";
|
|
12
|
+
import { getColumnsWidth as K } from "../../helpers/persistence/getColumnsWidth/getColumnsWidth.js";
|
|
13
|
+
import { useViewConfig as Lo } from "../../hooks/useViewConfig/useViewConfig.js";
|
|
14
|
+
import { useChangeColumnsConfig as _o } from "../../hooks/useChangeColumnsConfig/useChangeColumnsConfig.js";
|
|
15
|
+
import { useChangeColumnsOrder as jo } from "../../hooks/useChangeColumnsOrder/useChangeColumnsOrder.js";
|
|
16
|
+
import { getViewMode as I } from "../../helpers/persistence/getViewMode/getViewMode.js";
|
|
16
17
|
import { getInitialColumnsConfig as y } from "../../helpers/shared/getInitialColumnsConfig/getInitialColumnsConfig.js";
|
|
17
18
|
import { getAllViewModes as V } from "../../helpers/shared/getAllViewModes/getAllViewModes.js";
|
|
18
|
-
import { getViewSpecificConfig as
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
import { getViewSpecificConfig as F } from "../../helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js";
|
|
20
|
+
const qo = So(null);
|
|
21
|
+
function ce(O) {
|
|
21
22
|
const {
|
|
22
23
|
id: r,
|
|
23
|
-
children:
|
|
24
|
+
children: $,
|
|
24
25
|
columns: n,
|
|
25
|
-
defaultConfig:
|
|
26
|
-
onChangeConfig:
|
|
27
|
-
defaultUserColumns:
|
|
26
|
+
defaultConfig: A,
|
|
27
|
+
onChangeConfig: M,
|
|
28
|
+
defaultUserColumns: W,
|
|
28
29
|
// deprecated
|
|
29
|
-
onChangeUserColumns:
|
|
30
|
+
onChangeUserColumns: z,
|
|
30
31
|
// deprecated
|
|
31
|
-
rows:
|
|
32
|
-
rowsCount:
|
|
32
|
+
rows: k,
|
|
33
|
+
rowsCount: L,
|
|
33
34
|
rowActionsGetter: _,
|
|
34
|
-
rowHeights: R =
|
|
35
|
-
rowHeaderHeights:
|
|
36
|
-
initialRowHeightVariant:
|
|
35
|
+
rowHeights: R = ko,
|
|
36
|
+
rowHeaderHeights: j = xo,
|
|
37
|
+
initialRowHeightVariant: q = "standard",
|
|
37
38
|
checkedRows: U,
|
|
38
|
-
onCheckedRowsChange:
|
|
39
|
-
checkedRowsMultiple:
|
|
40
|
-
rowKeyGetter:
|
|
39
|
+
onCheckedRowsChange: N,
|
|
40
|
+
checkedRowsMultiple: P,
|
|
41
|
+
rowKeyGetter: X,
|
|
41
42
|
externalSortSettings: h,
|
|
42
43
|
externalFilterSettings: p,
|
|
43
|
-
size:
|
|
44
|
-
viewMode:
|
|
45
|
-
onViewModeChange:
|
|
44
|
+
size: B,
|
|
45
|
+
viewMode: J,
|
|
46
|
+
onViewModeChange: Q,
|
|
46
47
|
defaultViewMode: m,
|
|
47
48
|
cardsViewConfig: s,
|
|
48
49
|
listViewConfig: c,
|
|
49
|
-
reorderable:
|
|
50
|
-
|
|
50
|
+
reorderable: Y = !0,
|
|
51
|
+
infiniteScrollOptions: x,
|
|
52
|
+
headerClickDeferMs: Z
|
|
53
|
+
} = O, l = A ?? W, g = M ?? z, E = Do([n, r]), { viewModeState: oo, setViewModeState: G, handleViewModeChange: eo } = Ao(
|
|
51
54
|
{
|
|
52
55
|
id: r,
|
|
53
|
-
viewMode:
|
|
56
|
+
viewMode: J,
|
|
54
57
|
defaultViewMode: m,
|
|
55
|
-
onViewModeChange:
|
|
58
|
+
onViewModeChange: Q,
|
|
56
59
|
onChangeConfig: g
|
|
57
60
|
}
|
|
58
|
-
), { currentRowHeightVariant: S, setRowHeightVariant:
|
|
61
|
+
), { currentRowHeightVariant: S, setRowHeightVariant: no } = Mo({
|
|
59
62
|
rowHeights: R,
|
|
60
|
-
rowHeaderHeights:
|
|
61
|
-
initialRowHeightVariant:
|
|
62
|
-
}), {
|
|
63
|
+
rowHeaderHeights: j,
|
|
64
|
+
initialRowHeightVariant: q
|
|
65
|
+
}), { requestLoadMore: io, retryLoadMore: to } = Wo({
|
|
66
|
+
infiniteScrollOptions: x,
|
|
67
|
+
rowsCount: k.length
|
|
68
|
+
}), { columnsWidths: ro, setColumnsWidths: so, onChangeColumnWidth: lo } = zo({
|
|
63
69
|
id: r,
|
|
64
70
|
onChangeConfig: g,
|
|
65
|
-
initialWidths:
|
|
66
|
-
}), { getConfigColumns: d, updateConfigColumns: C } =
|
|
71
|
+
initialWidths: K(r, n, l)
|
|
72
|
+
}), { getConfigColumns: d, updateConfigColumns: C } = Lo(), { onChangeColumnsConfig: T } = _o({
|
|
67
73
|
id: r,
|
|
68
74
|
onChangeConfig: g,
|
|
69
75
|
updateConfigColumns: C
|
|
70
|
-
}), { onChangeColumnsOrder:
|
|
76
|
+
}), { onChangeColumnsOrder: ao } = jo({
|
|
71
77
|
getConfigColumns: d,
|
|
72
78
|
onChangeColumnsConfig: T
|
|
73
|
-
}),
|
|
74
|
-
...
|
|
75
|
-
...
|
|
79
|
+
}), uo = Ho(Eo, {
|
|
80
|
+
...Oo,
|
|
81
|
+
...Fo,
|
|
82
|
+
...Io,
|
|
83
|
+
...Ko,
|
|
76
84
|
...bo,
|
|
77
85
|
...To,
|
|
78
|
-
...
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}), [so, lo] = b(z), [ao, uo] = b([]);
|
|
82
|
-
x(() => {
|
|
86
|
+
...Go
|
|
87
|
+
}), [fo, co] = b(L), [mo, go] = b([]);
|
|
88
|
+
H(() => {
|
|
83
89
|
const i = new Set(n.map((o) => o.key));
|
|
84
90
|
if (m === "cards" && s === void 0)
|
|
85
91
|
throw new Error(
|
|
@@ -190,13 +196,13 @@ function re(I) {
|
|
|
190
196
|
);
|
|
191
197
|
}
|
|
192
198
|
}, [n, h, p, s, c, m]);
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
if (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
),
|
|
199
|
-
|
|
199
|
+
const Co = vo(() => R, [R]);
|
|
200
|
+
H(() => {
|
|
201
|
+
if (E) {
|
|
202
|
+
so(K(r, n, l)), G(
|
|
203
|
+
I(r, l, m) ?? "table"
|
|
204
|
+
), G(
|
|
205
|
+
I(r, l, m) ?? "table"
|
|
200
206
|
), C(
|
|
201
207
|
"table",
|
|
202
208
|
y(
|
|
@@ -264,8 +270,8 @@ function re(I) {
|
|
|
264
270
|
);
|
|
265
271
|
}
|
|
266
272
|
}
|
|
267
|
-
}, [l]),
|
|
268
|
-
if (!
|
|
273
|
+
}, [l]), H(() => {
|
|
274
|
+
if (!E) {
|
|
269
275
|
const i = {
|
|
270
276
|
table: [],
|
|
271
277
|
cards: [],
|
|
@@ -283,7 +289,7 @@ function re(I) {
|
|
|
283
289
|
...t[a],
|
|
284
290
|
originalIndex: f,
|
|
285
291
|
// Propiedades específicas por vista dinámicamente
|
|
286
|
-
...
|
|
292
|
+
...F(e).dynamicOriginalProperty(
|
|
287
293
|
t[a] || w
|
|
288
294
|
),
|
|
289
295
|
originalVisible: w.visible ?? !0
|
|
@@ -298,7 +304,7 @@ function re(I) {
|
|
|
298
304
|
(f) => !u.has(f.key)
|
|
299
305
|
);
|
|
300
306
|
if (a.length > 0) {
|
|
301
|
-
const f = t.length,
|
|
307
|
+
const f = t.length, ho = y(
|
|
302
308
|
r,
|
|
303
309
|
a,
|
|
304
310
|
e,
|
|
@@ -315,28 +321,28 @@ function re(I) {
|
|
|
315
321
|
originalGrouped: !1,
|
|
316
322
|
originalGroupOrder: 0
|
|
317
323
|
}
|
|
318
|
-
).map((
|
|
319
|
-
const
|
|
320
|
-
(
|
|
321
|
-
),
|
|
324
|
+
).map((po, v) => {
|
|
325
|
+
const yo = n.findIndex(
|
|
326
|
+
(Vo) => Vo.key === a[v].key
|
|
327
|
+
), D = a[v];
|
|
322
328
|
return {
|
|
323
|
-
...
|
|
329
|
+
...po,
|
|
324
330
|
index: v + f,
|
|
325
|
-
name:
|
|
326
|
-
originalIndex:
|
|
327
|
-
originalVisible:
|
|
331
|
+
name: D.name,
|
|
332
|
+
originalIndex: yo,
|
|
333
|
+
originalVisible: D.visible ?? !0,
|
|
328
334
|
// Propiedades específicas por vista dinámicamente
|
|
329
|
-
...
|
|
330
|
-
|
|
335
|
+
...F(e).dynamicOriginalProperty(
|
|
336
|
+
D
|
|
331
337
|
)
|
|
332
338
|
};
|
|
333
339
|
});
|
|
334
|
-
i[e].push(...
|
|
340
|
+
i[e].push(...ho);
|
|
335
341
|
}
|
|
336
342
|
});
|
|
337
343
|
let o = !1;
|
|
338
344
|
if (V().forEach((e) => {
|
|
339
|
-
|
|
345
|
+
$o(
|
|
340
346
|
d(e),
|
|
341
347
|
i[e]
|
|
342
348
|
) || (o = !0);
|
|
@@ -347,52 +353,56 @@ function re(I) {
|
|
|
347
353
|
});
|
|
348
354
|
}
|
|
349
355
|
}, [n, r]);
|
|
350
|
-
const
|
|
351
|
-
|
|
356
|
+
const wo = (i) => {
|
|
357
|
+
co(i);
|
|
352
358
|
};
|
|
353
|
-
return /* @__PURE__ */
|
|
354
|
-
|
|
359
|
+
return /* @__PURE__ */ Ro(
|
|
360
|
+
qo.Provider,
|
|
355
361
|
{
|
|
356
362
|
value: {
|
|
357
363
|
getConfigColumns: d,
|
|
358
364
|
onChangeColumnsConfig: T,
|
|
359
365
|
columnsConfig: d("table"),
|
|
360
|
-
columnsWidths:
|
|
361
|
-
rowsCount:
|
|
366
|
+
columnsWidths: ro,
|
|
367
|
+
rowsCount: fo,
|
|
362
368
|
currentRowHeightVariant: S.rowHVariant,
|
|
363
369
|
currentRowHeight: S.rowHeight,
|
|
364
370
|
currentRowHeaderHeight: S.rowHeaderHeight,
|
|
365
|
-
rows:
|
|
366
|
-
rowHeights:
|
|
371
|
+
rows: k,
|
|
372
|
+
rowHeights: Co,
|
|
367
373
|
checkedRows: U,
|
|
368
|
-
reorderable:
|
|
369
|
-
onChangeColumnsOrder:
|
|
370
|
-
onChangeColumnWidth:
|
|
371
|
-
setRowsCount:
|
|
374
|
+
reorderable: Y,
|
|
375
|
+
onChangeColumnsOrder: ao,
|
|
376
|
+
onChangeColumnWidth: lo,
|
|
377
|
+
setRowsCount: wo,
|
|
372
378
|
rowActionsGetter: _,
|
|
373
|
-
setRowHeightVariant:
|
|
374
|
-
onCheckedRowsChange:
|
|
375
|
-
checkedRowsMultiple:
|
|
376
|
-
rowKeyGetter:
|
|
379
|
+
setRowHeightVariant: no,
|
|
380
|
+
onCheckedRowsChange: N,
|
|
381
|
+
checkedRowsMultiple: P,
|
|
382
|
+
rowKeyGetter: X,
|
|
377
383
|
onChangeConfig: g,
|
|
378
384
|
onChangeUserColumns: g,
|
|
379
385
|
// deprecated alias
|
|
380
|
-
sortColumns:
|
|
381
|
-
setSortColumns:
|
|
386
|
+
sortColumns: mo,
|
|
387
|
+
setSortColumns: go,
|
|
382
388
|
externalSortSettings: h,
|
|
383
389
|
externalFilterSettings: p,
|
|
384
|
-
classes:
|
|
385
|
-
size:
|
|
386
|
-
viewMode:
|
|
387
|
-
onViewModeChange:
|
|
390
|
+
classes: uo,
|
|
391
|
+
size: B,
|
|
392
|
+
viewMode: oo,
|
|
393
|
+
onViewModeChange: eo,
|
|
388
394
|
cardsViewConfig: s,
|
|
389
|
-
listViewConfig: c
|
|
395
|
+
listViewConfig: c,
|
|
396
|
+
infiniteScrollOptions: x,
|
|
397
|
+
headerClickDeferMs: Z,
|
|
398
|
+
requestLoadMore: io,
|
|
399
|
+
retryLoadMore: to
|
|
390
400
|
},
|
|
391
|
-
children:
|
|
401
|
+
children: $
|
|
392
402
|
}
|
|
393
403
|
);
|
|
394
404
|
}
|
|
395
405
|
export {
|
|
396
|
-
|
|
397
|
-
|
|
406
|
+
qo as DataGridContext,
|
|
407
|
+
ce as DataGridProvider
|
|
398
408
|
};
|