@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":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAiBhD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAgQ5C;AACD,eAAe,QAAQ,CAAC"}
|
|
@@ -1,146 +1,158 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useNetwork as
|
|
4
|
-
import { useHostTheme as
|
|
5
|
-
import { ProggessLoadingMF as
|
|
1
|
+
import { jsxs as te, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as d, useEffect as I } from "react";
|
|
3
|
+
import { useNetwork as oe, useEnvironment as se, useHostTools as ne, useUserPreferences as ie, resolveLocalLoopbackOrigin as ce } from "@m4l/core";
|
|
4
|
+
import { useHostTheme as ae, useFormatter as de, useLocales as le } from "@m4l/graphics";
|
|
5
|
+
import { ProggessLoadingMF as me } from "./subcomponents/ProggessLoadingMF/index.js";
|
|
6
6
|
import { LoadingError as ue } from "../LoadingError/LoadingError.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
7
|
+
import { useMFCallbackLifecycle as fe } from "./hooks/useMFCallbackLifecycle.js";
|
|
8
|
+
import { useHostRuntime as pe } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
|
|
9
|
+
import { useShellObservability as Se } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
|
|
10
|
+
import { projectMFHostRuntimeTools as Le } from "./helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js";
|
|
11
|
+
import { useMFTelemetry as Me } from "./hooks/useMFTelemetry/useMFTelemetry.js";
|
|
12
|
+
import { useMFSwap as Re } from "./hooks/useMFSwap/useMFSwap.js";
|
|
13
|
+
import { useMFLifecycle as ge } from "./hooks/useMFLifecycle/useMFLifecycle.js";
|
|
14
|
+
import { MF_ACTION_CALLBACKS_PARAM as he, MF_ACTION_REQUEST_PARAM as Fe } from "../../utils/mfActions/constants.js";
|
|
15
|
+
import { useMFRender as ye } from "./hooks/useMFRender/useMFRender.js";
|
|
16
|
+
import { MFLoaderRootStyled as ve, MFLoaderMountContainerStyled as P, MFLoaderOverlayStyled as _ } from "./slots/MFLoaderSlots.js";
|
|
17
|
+
import { isMFActionRequest as be, completeMFAction as Te } from "../../utils/mfActions/mfActions.js";
|
|
18
|
+
function Ve(E) {
|
|
16
19
|
const {
|
|
17
20
|
prefix: o,
|
|
18
|
-
moduleId:
|
|
19
|
-
cache:
|
|
21
|
+
moduleId: H,
|
|
22
|
+
cache: l = !0,
|
|
20
23
|
debugPort: s,
|
|
21
|
-
hostRuntime:
|
|
22
|
-
observability:
|
|
23
|
-
dynamicMFStore:
|
|
24
|
-
windowTools:
|
|
25
|
-
emergeType:
|
|
26
|
-
loggedUser:
|
|
27
|
-
} =
|
|
24
|
+
hostRuntime: q,
|
|
25
|
+
observability: x,
|
|
26
|
+
dynamicMFStore: n,
|
|
27
|
+
windowTools: i,
|
|
28
|
+
emergeType: k,
|
|
29
|
+
loggedUser: N
|
|
30
|
+
} = E, j = pe(), B = Se(), G = Le(q ?? j), U = x ?? B, { hostThemeOptions: V, fnComponentsOverrides: $ } = ae(), { networkOperation: D } = oe(), c = se(), m = ne(), K = ie(), Q = de(), z = { hostThemeOptions: V, fnComponentsOverrides: $ }, M = d(null), R = d(null), g = d("progress"), h = d(
|
|
28
31
|
null
|
|
29
|
-
), { currentLocale:
|
|
30
|
-
activeSwapRef:
|
|
31
|
-
createTelemetryContext:
|
|
32
|
-
emitAbandonedLoadTelemetry:
|
|
33
|
-
emitSwapStartedTelemetry:
|
|
34
|
-
emitSwapFailedTelemetry:
|
|
32
|
+
), { currentLocale: J } = le(), W = !c.isLocalhost || Number.isInteger(s) && s > 0, {
|
|
33
|
+
activeSwapRef: F,
|
|
34
|
+
createTelemetryContext: u,
|
|
35
|
+
emitAbandonedLoadTelemetry: X,
|
|
36
|
+
emitSwapStartedTelemetry: y,
|
|
37
|
+
emitSwapFailedTelemetry: f,
|
|
35
38
|
reportLoaderError: v
|
|
36
|
-
} =
|
|
37
|
-
cache:
|
|
39
|
+
} = Me({
|
|
40
|
+
cache: l,
|
|
38
41
|
prefix: o,
|
|
39
|
-
mountedScriptRefBridge:
|
|
40
|
-
requestedScriptRefBridge:
|
|
41
|
-
setStatusLoaderRef:
|
|
42
|
-
statusLoaderRef:
|
|
42
|
+
mountedScriptRefBridge: M,
|
|
43
|
+
requestedScriptRefBridge: R,
|
|
44
|
+
setStatusLoaderRef: h,
|
|
45
|
+
statusLoaderRef: g
|
|
43
46
|
}), {
|
|
44
|
-
mountedScript:
|
|
45
|
-
requestedScript:
|
|
46
|
-
isSwappingModule:
|
|
47
|
-
mountedScriptRef:
|
|
48
|
-
requestedScriptRef:
|
|
49
|
-
promoteRequestedScript:
|
|
50
|
-
} =
|
|
51
|
-
activeSwapRef:
|
|
52
|
-
cache:
|
|
53
|
-
createTelemetryContext:
|
|
54
|
-
emitAbandonedLoadTelemetry:
|
|
55
|
-
emitSwapFailedTelemetry:
|
|
56
|
-
emitSwapStartedTelemetry:
|
|
57
|
-
moduleId:
|
|
47
|
+
mountedScript: p,
|
|
48
|
+
requestedScript: r,
|
|
49
|
+
isSwappingModule: Y,
|
|
50
|
+
mountedScriptRef: b,
|
|
51
|
+
requestedScriptRef: T,
|
|
52
|
+
promoteRequestedScript: w
|
|
53
|
+
} = Re({
|
|
54
|
+
activeSwapRef: F,
|
|
55
|
+
cache: l,
|
|
56
|
+
createTelemetryContext: u,
|
|
57
|
+
emitAbandonedLoadTelemetry: X,
|
|
58
|
+
emitSwapFailedTelemetry: f,
|
|
59
|
+
emitSwapStartedTelemetry: y,
|
|
60
|
+
moduleId: H,
|
|
58
61
|
prefix: o,
|
|
59
62
|
reportLoaderError: v
|
|
60
63
|
});
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
statusLoader:
|
|
64
|
-
setStatusLoader:
|
|
65
|
-
loadingProgress:
|
|
66
|
-
tryAgainOnError:
|
|
67
|
-
loadGeneration:
|
|
68
|
-
completedGeneration:
|
|
69
|
-
renderedGeneration:
|
|
70
|
-
} =
|
|
71
|
-
activeHost:
|
|
72
|
-
cache:
|
|
73
|
-
createTelemetryContext:
|
|
74
|
-
environmentIsLocalhost:
|
|
75
|
-
hasValidLocalDebugPort:
|
|
76
|
-
mountedScriptRef:
|
|
77
|
-
networkOperation:
|
|
64
|
+
M.current = b, R.current = T;
|
|
65
|
+
const Z = c.isLocalhost ? ce(s) : `https://${window.location.host}/mf/${r.moduleId}`, {
|
|
66
|
+
statusLoader: e,
|
|
67
|
+
setStatusLoader: C,
|
|
68
|
+
loadingProgress: ee,
|
|
69
|
+
tryAgainOnError: re,
|
|
70
|
+
loadGeneration: a,
|
|
71
|
+
completedGeneration: A,
|
|
72
|
+
renderedGeneration: S
|
|
73
|
+
} = ge({
|
|
74
|
+
activeHost: Z,
|
|
75
|
+
cache: l,
|
|
76
|
+
createTelemetryContext: u,
|
|
77
|
+
environmentIsLocalhost: c.isLocalhost,
|
|
78
|
+
hasValidLocalDebugPort: W,
|
|
79
|
+
mountedScriptRef: b,
|
|
80
|
+
networkOperation: D,
|
|
78
81
|
prefix: o,
|
|
79
|
-
requestedScript:
|
|
80
|
-
requestedScriptRef:
|
|
81
|
-
activeSwapRef:
|
|
82
|
-
emitSwapFailedTelemetry:
|
|
83
|
-
emitSwapStartedTelemetry:
|
|
82
|
+
requestedScript: r,
|
|
83
|
+
requestedScriptRef: T,
|
|
84
|
+
activeSwapRef: F,
|
|
85
|
+
emitSwapFailedTelemetry: f,
|
|
86
|
+
emitSwapStartedTelemetry: y
|
|
84
87
|
});
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
g.current = e, h.current = C, fe(
|
|
89
|
+
n?.getState().dynamicMFParameters?.[he],
|
|
90
|
+
e === "error",
|
|
91
|
+
i.close
|
|
92
|
+
), I(() => {
|
|
93
|
+
if (e !== "error")
|
|
94
|
+
return;
|
|
95
|
+
const L = n?.getState().dynamicMFParameters?.[Fe];
|
|
96
|
+
be(L) && (Te(m, L, { status: "failed", errorCode: "mf_load_failed" }), i?.close(!1));
|
|
97
|
+
}, [e, n, m, i]);
|
|
98
|
+
const { renderMicroFrontend: O } = ye({
|
|
87
99
|
prefix: o,
|
|
88
100
|
debugPort: s,
|
|
89
|
-
dynamicMFStore:
|
|
90
|
-
windowTools:
|
|
91
|
-
emergeType:
|
|
92
|
-
loggedUser:
|
|
93
|
-
environment:
|
|
94
|
-
hostTools:
|
|
95
|
-
currentLocale:
|
|
96
|
-
hostTheme:
|
|
97
|
-
formatter:
|
|
98
|
-
userPreferences:
|
|
99
|
-
resolvedHostRuntime:
|
|
100
|
-
resolvedObservability:
|
|
101
|
+
dynamicMFStore: n,
|
|
102
|
+
windowTools: i,
|
|
103
|
+
emergeType: k,
|
|
104
|
+
loggedUser: N,
|
|
105
|
+
environment: c,
|
|
106
|
+
hostTools: m,
|
|
107
|
+
currentLocale: J,
|
|
108
|
+
hostTheme: z,
|
|
109
|
+
formatter: Q,
|
|
110
|
+
userPreferences: K,
|
|
111
|
+
resolvedHostRuntime: G,
|
|
112
|
+
resolvedObservability: U,
|
|
101
113
|
reportLoaderError: v,
|
|
102
|
-
emitSwapFailedTelemetry:
|
|
103
|
-
setStatusLoader:
|
|
104
|
-
createTelemetryContext:
|
|
114
|
+
emitSwapFailedTelemetry: f,
|
|
115
|
+
setStatusLoader: C,
|
|
116
|
+
createTelemetryContext: u
|
|
105
117
|
});
|
|
106
|
-
return
|
|
107
|
-
if (
|
|
108
|
-
if (!
|
|
118
|
+
return I(() => {
|
|
119
|
+
if (e === "complete" && A.current === a.current && S.current !== a.current) {
|
|
120
|
+
if (!O(r))
|
|
109
121
|
return;
|
|
110
|
-
|
|
122
|
+
S.current = a.current, w();
|
|
111
123
|
}
|
|
112
124
|
}, [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
A,
|
|
126
|
+
a,
|
|
127
|
+
p,
|
|
116
128
|
o,
|
|
117
|
-
b,
|
|
118
129
|
w,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
O,
|
|
131
|
+
S,
|
|
132
|
+
r,
|
|
133
|
+
e
|
|
134
|
+
]), /* @__PURE__ */ te(ve, { children: [
|
|
135
|
+
/* @__PURE__ */ t(
|
|
136
|
+
P,
|
|
125
137
|
{
|
|
126
|
-
id:
|
|
138
|
+
id: p.divContainerId,
|
|
127
139
|
ownerState: { isVisible: !0 }
|
|
128
140
|
},
|
|
129
|
-
|
|
141
|
+
p.divContainerId
|
|
130
142
|
),
|
|
131
|
-
|
|
132
|
-
|
|
143
|
+
Y ? /* @__PURE__ */ t(
|
|
144
|
+
P,
|
|
133
145
|
{
|
|
134
|
-
id:
|
|
146
|
+
id: r.divContainerId,
|
|
135
147
|
ownerState: { isVisible: !1 }
|
|
136
148
|
},
|
|
137
|
-
|
|
149
|
+
r.divContainerId
|
|
138
150
|
) : null,
|
|
139
|
-
|
|
140
|
-
|
|
151
|
+
e === "progress" ? /* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(me, { loadingProgress: ee }) }) : null,
|
|
152
|
+
e === "error" ? /* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(ue, { status: e, action: re }) }) : null
|
|
141
153
|
] });
|
|
142
154
|
}
|
|
143
155
|
export {
|
|
144
|
-
|
|
145
|
-
|
|
156
|
+
Ve as MFLoader,
|
|
157
|
+
Ve as default
|
|
146
158
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deliver local loader lifecycle results without subscribing to or publishing host action events.
|
|
3
|
+
* Entrega el ciclo de vida local sin suscribirse ni publicar eventos de acción del host.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useMFCallbackLifecycle(value: unknown, failed: boolean, close: (guard?: boolean) => void): void;
|
|
6
|
+
//# sourceMappingURL=useMFCallbackLifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMFCallbackLifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/MFLoader/hooks/useMFCallbackLifecycle.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,QAwBvG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useRef as i, useEffect as c } from "react";
|
|
2
|
+
function f(n) {
|
|
3
|
+
return !n || typeof n != "object" ? !1 : "onOpened" in n && typeof n.onOpened == "function" && "onClosed" in n && typeof n.onClosed == "function" && "onLoadError" in n && typeof n.onLoadError == "function";
|
|
4
|
+
}
|
|
5
|
+
function d(n, t, e) {
|
|
6
|
+
const o = f(n) ? n : void 0, r = i(void 0);
|
|
7
|
+
c(() => {
|
|
8
|
+
if (o)
|
|
9
|
+
return r.current = o, o.onOpened(), () => {
|
|
10
|
+
r.current = void 0, queueMicrotask(() => {
|
|
11
|
+
r.current !== o && o.onClosed();
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
}, [o]), c(() => {
|
|
15
|
+
if (!(!t || !o))
|
|
16
|
+
try {
|
|
17
|
+
o.onLoadError();
|
|
18
|
+
} finally {
|
|
19
|
+
e(!1);
|
|
20
|
+
}
|
|
21
|
+
}, [o, t, e]);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
d as useMFCallbackLifecycle
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomTablePagination.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AASrD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,
|
|
1
|
+
{"version":3,"file":"CustomTablePagination.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AASrD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,qDAmGtE,CAAC"}
|
|
@@ -1,73 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { PagerActions as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as O, Fragment as j, jsx as w } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { PagerActions as E } from "../PagerActions/PagerActions.js";
|
|
3
|
+
import { RowsPerPageSelect as I } from "../RowsPerPageSelect/RowsPerPageSelect.js";
|
|
4
|
+
import { useState as L, useMemo as n, useEffect as T, useCallback as z } from "react";
|
|
5
|
+
import { useModuleDictionary as k } from "@m4l/core";
|
|
6
|
+
import { PAGER_DICTIONARY as m } from "../../dicctionary.js";
|
|
7
|
+
import { ActionsContainerStyled as v } from "../../slots/PagerSlots.js";
|
|
8
|
+
const J = (y) => {
|
|
9
9
|
const {
|
|
10
|
-
count:
|
|
11
|
-
page:
|
|
12
|
-
rowsPerPage:
|
|
13
|
-
rowsPerPageOptions:
|
|
14
|
-
onRowsPerPageChange:
|
|
10
|
+
count: e,
|
|
11
|
+
page: P,
|
|
12
|
+
rowsPerPage: i = 25,
|
|
13
|
+
rowsPerPageOptions: g = [10, 25, 50, 100],
|
|
14
|
+
onRowsPerPageChange: u,
|
|
15
15
|
onPageChange: c,
|
|
16
|
-
size:
|
|
17
|
-
labelOf:
|
|
18
|
-
labelTotalRows:
|
|
19
|
-
} =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
return
|
|
28
|
-
const
|
|
29
|
-
return `${
|
|
30
|
-
}, [
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
}, [
|
|
34
|
-
|
|
16
|
+
size: f,
|
|
17
|
+
labelOf: h,
|
|
18
|
+
labelTotalRows: A
|
|
19
|
+
} = y, [r, p] = L(i), [R, d] = L(Math.max(0, P)), { getLabel: o } = k(), s = n(() => Math.max(1, Math.ceil(e / r)), [e, r]);
|
|
20
|
+
T(() => {
|
|
21
|
+
d(Math.max(0, Math.min(P, s - 1)));
|
|
22
|
+
}, [P, s]), T(() => {
|
|
23
|
+
g.includes(i) && p(i);
|
|
24
|
+
}, [i, g]);
|
|
25
|
+
const l = n(() => Math.max(0, Math.min(R, s - 1)), [R, s]), b = n(() => o(m.page), [o]), M = n(() => o(m.rows), [o]), S = n(() => o(m.rows_per_page), [o]), C = n(() => o(m.no_records), [o]), _ = n(() => {
|
|
26
|
+
if (e === 0)
|
|
27
|
+
return C;
|
|
28
|
+
const a = l + 1;
|
|
29
|
+
return `${b} ${a} ${h} ${s}`;
|
|
30
|
+
}, [l, s, e, h, b, C]), $ = z((a) => {
|
|
31
|
+
const t = Number(a.id), N = Math.ceil(e / t), x = Math.min(l, N - 1);
|
|
32
|
+
p(t), d(x), u && u({ id: t, value: t, label: `${t} ${M}` }), c && c(null, x);
|
|
33
|
+
}, [e, l, M, c, u]), D = z((a) => {
|
|
34
|
+
a && $(a);
|
|
35
35
|
}, [$]);
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/* @__PURE__ */ w(W, { children: [
|
|
40
|
-
/* @__PURE__ */ g(F, { skeletonWidth: 50, size: m, variant: "bodyStandard", children: `${A}:` }),
|
|
41
|
-
/* @__PURE__ */ g(
|
|
42
|
-
V,
|
|
43
|
-
{
|
|
44
|
-
size: m,
|
|
45
|
-
value: l.includes(n) ? n.toString() : l[0].toString(),
|
|
46
|
-
onChange: k,
|
|
47
|
-
options: l.map((e) => ({
|
|
48
|
-
id: e.toString(),
|
|
49
|
-
value: e.toString(),
|
|
50
|
-
label: e.toString()
|
|
51
|
-
}))
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] })
|
|
55
|
-
] }) : null,
|
|
56
|
-
/* @__PURE__ */ g(G, { children: /* @__PURE__ */ g(
|
|
57
|
-
O,
|
|
36
|
+
return /* @__PURE__ */ O(j, { children: [
|
|
37
|
+
g?.length > 1 ? /* @__PURE__ */ w(
|
|
38
|
+
I,
|
|
58
39
|
{
|
|
59
|
-
size:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
rowsPerPage:
|
|
40
|
+
size: f,
|
|
41
|
+
totalRowText: `${A}: ${Math.min(r, e - l * r)} ${h} ${e}`,
|
|
42
|
+
labelRowsPerPage: S,
|
|
43
|
+
rowsPerPage: r,
|
|
44
|
+
rowsPerPageOptions: g,
|
|
45
|
+
onChange: D
|
|
46
|
+
}
|
|
47
|
+
) : null,
|
|
48
|
+
/* @__PURE__ */ w(v, { children: /* @__PURE__ */ w(
|
|
49
|
+
E,
|
|
50
|
+
{
|
|
51
|
+
size: f,
|
|
52
|
+
count: e,
|
|
53
|
+
page: l,
|
|
54
|
+
rowsPerPage: r,
|
|
63
55
|
pageCounter: _,
|
|
64
|
-
onPageChange: (
|
|
65
|
-
|
|
56
|
+
onPageChange: (a, t) => {
|
|
57
|
+
d(t), c && c(a, t);
|
|
66
58
|
}
|
|
67
59
|
}
|
|
68
60
|
) })
|
|
69
61
|
] });
|
|
70
62
|
};
|
|
71
63
|
export {
|
|
72
|
-
|
|
64
|
+
J as CustomTablePagination
|
|
73
65
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RowsPerPageSelectProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Rows counter and "Rows per page" select of the pager. The DataGrid infinite scroll status bar
|
|
4
|
+
* renders this same block, so both look exactly alike.
|
|
5
|
+
*/
|
|
6
|
+
export declare function RowsPerPageSelect(props: RowsPerPageSelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=RowsPerPageSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowsPerPageSelect.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Pager/subcomponents/RowsPerPageSelect/RowsPerPageSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,oDAyB9D"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ContainerTotalRowSelectStyled as S, TotalRowStyled as c, LabelSelectContainerStyled as g, RowsPerPageStyled as P } from "../../slots/PagerSlots.js";
|
|
3
|
+
import { Select as w } from "../../../extended/mui/Select/Select.js";
|
|
4
|
+
function R(i) {
|
|
5
|
+
const { size: e, totalRowText: n, labelRowsPerPage: d, rowsPerPage: a, rowsPerPageOptions: t, onChange: s } = i;
|
|
6
|
+
return /* @__PURE__ */ l(S, { children: [
|
|
7
|
+
n !== void 0 && /* @__PURE__ */ r(c, { skeletonWidth: 50, size: e, variant: "bodyStandard", children: n }),
|
|
8
|
+
/* @__PURE__ */ l(g, { children: [
|
|
9
|
+
/* @__PURE__ */ r(P, { skeletonWidth: 50, size: e, variant: "bodyStandard", children: `${d}:` }),
|
|
10
|
+
/* @__PURE__ */ r(
|
|
11
|
+
w,
|
|
12
|
+
{
|
|
13
|
+
size: e,
|
|
14
|
+
value: t.includes(a) ? a.toString() : t[0].toString(),
|
|
15
|
+
onChange: s,
|
|
16
|
+
options: t.map((o) => ({
|
|
17
|
+
id: o.toString(),
|
|
18
|
+
value: o.toString(),
|
|
19
|
+
label: o.toString()
|
|
20
|
+
}))
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
] })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
R as RowsPerPageSelect
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SelectOption } from '../../../extended/mui/Select/types';
|
|
2
|
+
import { CustomTablePaginationProps } from '../CustomTablePagination/types';
|
|
3
|
+
/**
|
|
4
|
+
* Props of the pager's rows counter and rows-per-page select block.
|
|
5
|
+
*/
|
|
6
|
+
export interface RowsPerPageSelectProps {
|
|
7
|
+
/** Size of the texts and the select, the same one the pager receives. */
|
|
8
|
+
size: CustomTablePaginationProps['size'];
|
|
9
|
+
/** Counter text, for example "Rows: 7 of 7". Without it, only the label and the select show. */
|
|
10
|
+
totalRowText?: string;
|
|
11
|
+
/** Label of the select, already translated; the block adds the colon. */
|
|
12
|
+
labelRowsPerPage: string;
|
|
13
|
+
/** Size currently chosen. When it is not one of the options, the first option shows. */
|
|
14
|
+
rowsPerPage: number;
|
|
15
|
+
/** Sizes offered by the select. */
|
|
16
|
+
rowsPerPageOptions: number[];
|
|
17
|
+
/** Called by the select with the option the user picks. */
|
|
18
|
+
onChange: (option: SelectOption<string | number> | SelectOption<string | number>[] | null) => void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Pager/subcomponents/RowsPerPageSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACzC,gGAAgG;IAChG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,gBAAgB,EAAE,MAAM,CAAC;IACzB,wFAAwF;IACxF,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;CACpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreaGridLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AreaGridLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAc1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDAgLpD,CAAC"}
|