@m4l/components 9.2.18 → 9.2.19
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/DynamicFilter/DynamicFilter.d.ts +7 -3
- package/components/DynamicFilter/DynamicFilter.js +4 -3
- package/components/DynamicFilter/{DynamicFIlter.styles.d.ts → DynamicFilter.styles.d.ts} +1 -1
- package/components/DynamicFilter/{DynamicFIlter.styles.js → DynamicFilter.styles.js} +20 -2
- package/components/DynamicFilter/dictionary.d.ts +6 -1
- package/components/DynamicFilter/helpers/frontEndHelpers.js +2 -2
- package/components/DynamicFilter/index.d.ts +3 -3
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +2 -2
- package/components/DynamicFilter/store/DynamicFilterContext.d.ts +4 -4
- package/components/DynamicFilter/store/DynamicFilterContext.js +25 -10
- package/components/DynamicFilter/store/DynamicFilterStore.js +32 -17
- package/components/DynamicFilter/store/types.d.ts +10 -33
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.js +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +3 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +4 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.js +2 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.d.ts +9 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/DataTypeComponent.d.ts +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.d.ts +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/FieldTypeInterface.d.ts +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.d.ts +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.d.ts +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +5 -5
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.d.ts +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.js +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +1 -1
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +3 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.js +1 -1
- package/components/DynamicFilter/types.d.ts +23 -8
- package/components/DynamicSort/DynamicSort.d.ts +2 -2
- package/components/DynamicSort/DynamicSort.js +4 -3
- package/components/DynamicSort/DynamicSort.styles.js +20 -2
- package/components/DynamicSort/dictionary.d.ts +6 -1
- package/components/DynamicSort/dictionary.js +2 -3
- package/components/DynamicSort/helpers/getPurgedInitialSortApplyed.d.ts +1 -1
- package/components/DynamicSort/index.d.ts +2 -2
- package/components/DynamicSort/store/DynamicSortContext.d.ts +3 -3
- package/components/DynamicSort/store/DynamicSortContext.js +24 -9
- package/components/DynamicSort/store/DynamicSortStore.d.ts +2 -2
- package/components/DynamicSort/store/DynamicSortStore.js +31 -16
- package/components/DynamicSort/store/types.d.ts +9 -15
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +2 -3
- package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.d.ts +2 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.js +2 -1
- package/components/DynamicSort/subcomponents/FieldTypes/DataTypeComponent.d.ts +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/FieldTypeInterface.d.ts +2 -2
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.d.ts +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.js +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +2 -2
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts +1 -1
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.js +3 -3
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/usePopoverMenuFields.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +2 -2
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.js +2 -2
- package/components/DynamicSort/subcomponents/SortActions/SortActions.d.ts +3 -1
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +7 -7
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +1 -1
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
- package/components/DynamicSort/types.d.ts +25 -8
- package/hooks/useDynamicFilterAndSort/styles.js +4 -2
- package/hooks/useDynamicFilterAndSort/types.d.ts +2 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +31 -9
- package/index.js +29 -29
- package/package.json +1 -1
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +8 -2
- package/storybook/components/DataGrid/subcomponents/DataGridRender.d.ts +2 -0
- package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +4 -0
- package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +5 -1
- /package/components/DynamicSort/{slots → store}/tests/DynamicSort.test.d.ts +0 -0
|
@@ -1,20 +1,34 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
|
-
import { T as ToggleIconButton } from "../../components/mui_extended/ToggleIconButton/ToggleIconButton.js";
|
|
4
|
-
import { I as ICON_PATH_FILTER, a as ICON_PATH_SORT, A as ASSETS } from "./icons.js";
|
|
5
3
|
import { useState, useRef, useMemo, useCallback } from "react";
|
|
6
4
|
import { D as DynamicFilter } from "../../components/DynamicFilter/DynamicFilter.js";
|
|
7
5
|
import { D as DynamicSort } from "../../components/DynamicSort/DynamicSort.js";
|
|
8
|
-
import { S as StackLeftActionsStyled, a as StackRightActionsStyled, b as StackCustomHeaderStyled } from "./slots/DynamicFilterAndSortSlots.js";
|
|
9
6
|
import { B as Badge } from "../../components/mui_extended/Badge/Badge.js";
|
|
7
|
+
import { I as IconButton } from "../../components/mui_extended/IconButton/IconButton.js";
|
|
8
|
+
import { T as ToggleIconButton } from "../../components/mui_extended/ToggleIconButton/ToggleIconButton.js";
|
|
10
9
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
11
10
|
import { C as COOKIE_APPLIED_FILTERS, a as COOKIE_APPLIED_SORTS, M as M4LDYNAMIC_KEY_FILTER_AND_SORT } from "./constants.js";
|
|
11
|
+
import { I as ICON_PATH_FILTER, a as ICON_PATH_SORT, A as ASSETS } from "./icons.js";
|
|
12
12
|
import { D as DynamicFilterAndSortSlots } from "./slots/DynamicFilterAndSortEnum.js";
|
|
13
|
-
import {
|
|
13
|
+
import { S as StackLeftActionsStyled, a as StackRightActionsStyled, b as StackCustomHeaderStyled } from "./slots/DynamicFilterAndSortSlots.js";
|
|
14
14
|
import { deepEqual } from "fast-equals";
|
|
15
15
|
import { g as getPurgedCookie } from "./helpers.js";
|
|
16
16
|
const useDynamicFilterAndSort = (props) => {
|
|
17
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
fields,
|
|
19
|
+
sorts,
|
|
20
|
+
onChangeFilterSort,
|
|
21
|
+
dataTestId,
|
|
22
|
+
withAllField,
|
|
23
|
+
rightActions,
|
|
24
|
+
initialFilterToggleed = true,
|
|
25
|
+
initialSortToggleed = true,
|
|
26
|
+
prefixCookie,
|
|
27
|
+
setCookie,
|
|
28
|
+
getCookie,
|
|
29
|
+
filterSortAutomatic = true,
|
|
30
|
+
visibleRefresh
|
|
31
|
+
} = props;
|
|
18
32
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
19
33
|
const [togglesLeftActions, setTogglesLeftActions] = useState(() => ({ filter: initialFilterToggleed, sort: initialSortToggleed }));
|
|
20
34
|
const [initialAppliedFilters] = useState(() => {
|
|
@@ -24,6 +38,8 @@ const useDynamicFilterAndSort = (props) => {
|
|
|
24
38
|
return getPurgedCookie(getCookie?.(prefixCookie ? `${prefixCookie}_${COOKIE_APPLIED_SORTS}` : COOKIE_APPLIED_SORTS));
|
|
25
39
|
});
|
|
26
40
|
const refOnChangeFilterSort = useRef(0);
|
|
41
|
+
const fireOnChangeFilterRef = useRef(null);
|
|
42
|
+
const fireOnChangeSortRef = useRef(null);
|
|
27
43
|
const [invisibleBadge, setInvisibleBadge] = useState(() => ({
|
|
28
44
|
filter: initialAppliedFilters?.length === 0,
|
|
29
45
|
sort: initialAppliedSorts?.length === 0
|
|
@@ -66,8 +82,14 @@ const useDynamicFilterAndSort = (props) => {
|
|
|
66
82
|
onChangeFilterSort(eventRefs.current);
|
|
67
83
|
}, [onChangeFilterSort, prefixCookie, setCookie, setInvisibleBadge]);
|
|
68
84
|
const onRefresh = useCallback(() => {
|
|
85
|
+
if (fireOnChangeFilterRef.current) {
|
|
86
|
+
fireOnChangeFilterRef.current.fireOnChangeFilter();
|
|
87
|
+
}
|
|
88
|
+
if (fireOnChangeSortRef.current) {
|
|
89
|
+
fireOnChangeSortRef.current.fireOnChangeSort();
|
|
90
|
+
}
|
|
69
91
|
onChangeFilterSort(eventRefs.current);
|
|
70
|
-
}, [onChangeFilterSort]);
|
|
92
|
+
}, [onChangeFilterSort, fireOnChangeFilterRef]);
|
|
71
93
|
const leftActions = useMemo(() => /* @__PURE__ */ jsxs(StackLeftActionsStyled, { direction: "row", ownerState: {}, ...getPropDataTestId(M4LDYNAMIC_KEY_FILTER_AND_SORT, DynamicFilterAndSortSlots.stackLeftActions, dataTestId), children: [
|
|
72
94
|
/* @__PURE__ */ jsx(Badge, { badgeContent: "", size: "small", color: "primary", invisible: invisibleBadge.filter, children: /* @__PURE__ */ jsx(ToggleIconButton, { icon: `${host_static_assets}/${environment_assets}/${ICON_PATH_FILTER}`, isToggled: togglesLeftActions.filter, onToggle: () => handleToggles("filter") }) }),
|
|
73
95
|
/* @__PURE__ */ jsx(Badge, { badgeContent: "", size: "small", color: "primary", invisible: invisibleBadge.sort, children: /* @__PURE__ */ jsx(ToggleIconButton, { icon: `${host_static_assets}/${environment_assets}/${ICON_PATH_SORT}`, isToggled: togglesLeftActions.sort, onToggle: () => handleToggles("sort") }) })
|
|
@@ -92,9 +114,9 @@ const useDynamicFilterAndSort = (props) => {
|
|
|
92
114
|
}
|
|
93
115
|
), [dataTestId, rightActions, sortIconUrl, onRefresh]);
|
|
94
116
|
const dynamicsFiltersSorts = useMemo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
95
|
-
/* @__PURE__ */ jsx(DynamicFilter, { fields, initialAppliedFilters, onChangeFilters: handleChangeFilters, withAllField }),
|
|
96
|
-
sorts ? /* @__PURE__ */ jsx(DynamicSort, { fields: sorts, initialAppliedSorts, onChangeSorts: handleChangeSorts }) : null
|
|
97
|
-
] }), [fields, sorts, initialAppliedFilters, initialAppliedSorts, handleChangeFilters, handleChangeSorts, withAllField]);
|
|
117
|
+
/* @__PURE__ */ jsx(DynamicFilter, { ref: fireOnChangeFilterRef, visibleRefresh, automatic: filterSortAutomatic, fields, initialAppliedFilters, onChangeFilters: handleChangeFilters, withAllField }),
|
|
118
|
+
sorts ? /* @__PURE__ */ jsx(DynamicSort, { ref: fireOnChangeSortRef, visibleRefresh, automatic: filterSortAutomatic, fields: sorts, initialAppliedSorts, onChangeSorts: handleChangeSorts }) : null
|
|
119
|
+
] }), [fields, sorts, initialAppliedFilters, initialAppliedSorts, handleChangeFilters, handleChangeSorts, withAllField, filterSortAutomatic, visibleRefresh]);
|
|
98
120
|
const customHeaderComponent = useMemo(() => /* @__PURE__ */ jsx(StackCustomHeaderStyled, { direction: "row", ownerState: { showDynamicFilter: togglesLeftActions.filter, showDynamicSort: togglesLeftActions.sort }, ...getPropDataTestId(M4LDYNAMIC_KEY_FILTER_AND_SORT, DynamicFilterAndSortSlots.stackCustomHeader, dataTestId), children: dynamicsFiltersSorts }), [togglesLeftActions]);
|
|
99
121
|
return {
|
|
100
122
|
leftActions,
|
package/index.js
CHANGED
|
@@ -58,9 +58,9 @@ import { u as u12 } from "./components/DataGrid/formatters/ColumnChipStatusForma
|
|
|
58
58
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
59
59
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
60
60
|
import { a as a4 } from "./components/DynamicFilter/dictionary.js";
|
|
61
|
-
import {
|
|
61
|
+
import { g as g7, a as a5 } from "./components/DynamicFilter/helpers/frontEndHelpers.js";
|
|
62
62
|
import { D as D4 } from "./components/DynamicFilter/DynamicFilter.js";
|
|
63
|
-
import {
|
|
63
|
+
import { a as a6 } from "./components/DynamicSort/dictionary.js";
|
|
64
64
|
import { S as S2 } from "./components/DynamicSort/helpers/frontEndHelpers.js";
|
|
65
65
|
import { D as D5 } from "./components/DynamicSort/DynamicSort.js";
|
|
66
66
|
import { R } from "./components/extended/React-Resizable/Resizable/Resizable.js";
|
|
@@ -91,7 +91,7 @@ import { S as S5 } from "./components/mui_extended/Stack/Stack.js";
|
|
|
91
91
|
import { T as T4 } from "./components/mui_extended/Tab/Tab.js";
|
|
92
92
|
import { T as T5 } from "./components/mui_extended/Tabs/Tabs.js";
|
|
93
93
|
import { T as T6 } from "./components/mui_extended/TabContent/TabContent.js";
|
|
94
|
-
import { T as T7, a as
|
|
94
|
+
import { T as T7, a as a7 } from "./components/mui_extended/TabContext/index.js";
|
|
95
95
|
import { T as T8 } from "./components/mui_extended/Typography/Typography.js";
|
|
96
96
|
import { t } from "./components/mui_extended/ToggleButton/ToggleButton.styles.js";
|
|
97
97
|
import { T as T9 } from "./components/mui_extended/ToggleButton/ToggleButton.js";
|
|
@@ -153,8 +153,8 @@ import { L as L8 } from "./components/LinearProgressIndeterminate/LinearProgress
|
|
|
153
153
|
import { L as L9 } from "./components/Loadable/index.js";
|
|
154
154
|
import { L as L10 } from "./components/LoadingError/LoadingError.js";
|
|
155
155
|
import { g as g19 } from "./components/LoadingError/dictionary.js";
|
|
156
|
-
import { a as
|
|
157
|
-
import { a as
|
|
156
|
+
import { a as a8 } from "./components/MenuActions/dictionary.js";
|
|
157
|
+
import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
158
158
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
159
159
|
import { M as M5 } from "./components/MFLoader/MFLoader.js";
|
|
160
160
|
import { g as g20 } from "./components/MFLoader/dictionary.js";
|
|
@@ -165,7 +165,7 @@ import { d as d4, g as g22 } from "./components/ObjectLogs/dictionary.js";
|
|
|
165
165
|
import { P as P8 } from "./components/PaperForm/PaperForm.js";
|
|
166
166
|
import { P as P9 } from "./components/PDFViewer/PDFViewer.js";
|
|
167
167
|
import { u as u14 } from "./components/popups/components/PopupsProvider/hooks/usePopupsStore.js";
|
|
168
|
-
import { a as
|
|
168
|
+
import { a as a10, P as P10 } from "./components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
169
169
|
import { P as P11 } from "./components/popups/components/PopupsViewer/PopupsViewer.js";
|
|
170
170
|
import { P as P12 } from "./components/PrintingSystem/PrintingSystem.js";
|
|
171
171
|
import { P as P13 } from "./components/PropertyValue/PropertyValue.js";
|
|
@@ -175,18 +175,18 @@ import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
|
|
|
175
175
|
import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
176
176
|
import { W } from "./components/WindowBase/WindowBase.js";
|
|
177
177
|
import { u as u15 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
178
|
-
import { a as
|
|
179
|
-
import { M as M6, W as W2, a as
|
|
178
|
+
import { a as a11, u as u16 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
179
|
+
import { M as M6, W as W2, a as a12 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
180
180
|
import { c as c3 } from "./components/WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
181
|
-
import { D as D9, a as
|
|
181
|
+
import { D as D9, a as a13, M as M7 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
182
182
|
import { W as W3 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
183
|
-
import { a as
|
|
183
|
+
import { a as a14, g as g23 } from "./components/ModalDialog/dictionary.js";
|
|
184
184
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
185
185
|
import { F as F2, R as R22, u as u17 } from "./components/hook-form/RHFormContext/index.js";
|
|
186
186
|
import { g as g24 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
187
187
|
import { u as u18 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
188
188
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
189
|
-
import { a as
|
|
189
|
+
import { a as a15, M as M9 } from "./contexts/ModalContext/index.js";
|
|
190
190
|
import { u as u19 } from "./hooks/useFormAddEdit/index.js";
|
|
191
191
|
import { u as u20 } from "./hooks/useModal/index.js";
|
|
192
192
|
import { u as u21 } from "./hooks/useTab/index.js";
|
|
@@ -196,7 +196,7 @@ import { u as u23 } from "./hooks/useInterval/index.js";
|
|
|
196
196
|
import { u as u24 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
197
197
|
import { u as u25 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
198
198
|
import { u as u26 } from "./hooks/useStateRef/index.js";
|
|
199
|
-
import { a as
|
|
199
|
+
import { a as a16 } from "./hooks/useSvgColor/constants.js";
|
|
200
200
|
import { u as u27 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
201
201
|
import { u as u28 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
202
202
|
import { u as u29 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
@@ -206,9 +206,9 @@ import { g as g26 } from "./utils/getComponentUtilityClass.js";
|
|
|
206
206
|
import { g as g27 } from "./utils/getPaletteColor.js";
|
|
207
207
|
import { g as g28 } from "./utils/getTypographyStyles.js";
|
|
208
208
|
import { g as g29 } from "./utils/getIconColor.js";
|
|
209
|
-
import { a as
|
|
209
|
+
import { a as a17 } from "./utils/getSizeStyles/getSizeStyles.js";
|
|
210
210
|
import { O as O2 } from "./utils/ObjectQueue.js";
|
|
211
|
-
import { g as g30, a as
|
|
211
|
+
import { g as g30, a as a18 } from "./utils/getComponentSlotRoot.js";
|
|
212
212
|
import { f } from "./utils/formatDistanceToNow/formatDistanteToNow.js";
|
|
213
213
|
import { g as g31 } from "./utils/getValidDate.js";
|
|
214
214
|
import { g as g32 } from "./utils/getNullGuard.js";
|
|
@@ -261,7 +261,7 @@ export {
|
|
|
261
261
|
D3 as DragResizeWindowRND,
|
|
262
262
|
D4 as DynamicFilter,
|
|
263
263
|
D9 as DynamicMFParmsContext,
|
|
264
|
-
|
|
264
|
+
a13 as DynamicMFParmsProvider,
|
|
265
265
|
D5 as DynamicSort,
|
|
266
266
|
F as FixedSizeList,
|
|
267
267
|
F2 as FormProviderCustom,
|
|
@@ -287,10 +287,10 @@ export {
|
|
|
287
287
|
M4 as MFIsolationApp,
|
|
288
288
|
M5 as MFLoader,
|
|
289
289
|
M7 as MemonizedDynamicMFParmsProvider,
|
|
290
|
-
|
|
290
|
+
a9 as MemonizedMenuActions,
|
|
291
291
|
M6 as MemonizedWindowToolsMFContext,
|
|
292
292
|
M3 as MenuActions,
|
|
293
|
-
|
|
293
|
+
a15 as ModalContext,
|
|
294
294
|
M8 as ModalDialog,
|
|
295
295
|
M9 as ModalProvider,
|
|
296
296
|
M as MotionContainer,
|
|
@@ -307,7 +307,7 @@ export {
|
|
|
307
307
|
P7 as PeriodRootStyled,
|
|
308
308
|
P4 as PointsFormatter,
|
|
309
309
|
P3 as Popover,
|
|
310
|
-
|
|
310
|
+
a10 as PopupsContext,
|
|
311
311
|
P10 as PopupsProvider,
|
|
312
312
|
P11 as PopupsViewer,
|
|
313
313
|
P6 as PriceFormatter,
|
|
@@ -336,7 +336,7 @@ export {
|
|
|
336
336
|
R as Resizable,
|
|
337
337
|
R2 as ResizableBox,
|
|
338
338
|
R3 as Responsive,
|
|
339
|
-
|
|
339
|
+
a16 as SKELETON_SVG_ICON,
|
|
340
340
|
S7 as ScrollBar,
|
|
341
341
|
S as SectionCommercial,
|
|
342
342
|
S6 as SelectStyled,
|
|
@@ -350,7 +350,7 @@ export {
|
|
|
350
350
|
T4 as Tab,
|
|
351
351
|
T6 as TabContent,
|
|
352
352
|
T7 as TabContext,
|
|
353
|
-
|
|
353
|
+
a7 as TabProvider,
|
|
354
354
|
T5 as Tabs,
|
|
355
355
|
T2 as TextEditor,
|
|
356
356
|
T17 as TextFieldStyled,
|
|
@@ -370,7 +370,7 @@ export {
|
|
|
370
370
|
W as WindowBase,
|
|
371
371
|
W3 as WindowConfirm,
|
|
372
372
|
W2 as WindowToolsMFContext,
|
|
373
|
-
|
|
373
|
+
a12 as WindowToolsMFProvider,
|
|
374
374
|
c2 as addLayoutItemToBreakPointIfNoExists,
|
|
375
375
|
d3 as addLayoutItemToBreakPoints,
|
|
376
376
|
c4 as capitalizeFirstLetter,
|
|
@@ -387,27 +387,27 @@ export {
|
|
|
387
387
|
g3 as getAreasDictionary,
|
|
388
388
|
g4 as getCommonActionsDictionary,
|
|
389
389
|
g30 as getComponentClasses,
|
|
390
|
-
|
|
390
|
+
a18 as getComponentSlotRoot,
|
|
391
391
|
g26 as getComponentUtilityClass,
|
|
392
392
|
g5 as getDataGridComponentsDictionary,
|
|
393
393
|
g6 as getDataGridRowsFromSet,
|
|
394
394
|
g14 as getDistanceToNowFormatterComponentsDictionary,
|
|
395
395
|
a4 as getDynamicFilterComponentsDictionary,
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
a6 as getDynamicSortComponentsDictionary,
|
|
397
|
+
g7 as getFilterGroupFieldsByName,
|
|
398
398
|
g24 as getFormComponentsDictionary,
|
|
399
399
|
g12 as getFormatConcatenated,
|
|
400
400
|
g9 as getFormatDate,
|
|
401
401
|
g11 as getFormatPoints,
|
|
402
402
|
g13 as getFormatPrice,
|
|
403
403
|
g15 as getFormattersComponentsDictionary,
|
|
404
|
-
|
|
404
|
+
a17 as getHeightSizeStyles,
|
|
405
405
|
g29 as getIconColor,
|
|
406
|
-
|
|
406
|
+
a5 as getIsIfInDynamicFilter,
|
|
407
407
|
g19 as getLoadingErrorComponentsDictionary,
|
|
408
408
|
g20 as getMFLoaderComponentsDictionary,
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
a8 as getMenuActionsComponentsDictionary,
|
|
410
|
+
a14 as getModalDialogComponentsDictionary,
|
|
411
411
|
g23 as getModalDictionary,
|
|
412
412
|
g21 as getNoItemSelectedComponentsDictionary,
|
|
413
413
|
g32 as getNullGuard,
|
|
@@ -443,7 +443,7 @@ export {
|
|
|
443
443
|
u17 as useCustomForm,
|
|
444
444
|
u29 as useDataGridPersistence,
|
|
445
445
|
u28 as useDynamicFilterAndSort,
|
|
446
|
-
|
|
446
|
+
a11 as useDynamicMFParameters,
|
|
447
447
|
u16 as useDynamicMFParametersStore,
|
|
448
448
|
u19 as useFormAddEdit,
|
|
449
449
|
u22 as useFormFocus,
|
package/package.json
CHANGED
|
@@ -24,8 +24,14 @@ export declare const DatagridWithFormatters: Story;
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const NoPager: Story;
|
|
26
26
|
/**
|
|
27
|
-
* DataGrid con leftActions y
|
|
27
|
+
* DataGrid con leftActions, rightActions y
|
|
28
|
+
* Filter y Sort en busqueda automatica
|
|
28
29
|
*/
|
|
29
|
-
export declare const
|
|
30
|
+
export declare const CustomHeaderFilterSortAutomatic: Story;
|
|
31
|
+
/**
|
|
32
|
+
* DataGrid con leftActions, rightActions y
|
|
33
|
+
* Filter y Sort en busqueda manual
|
|
34
|
+
*/
|
|
35
|
+
export declare const CustomHeaderFilterSortManual: Story;
|
|
30
36
|
export declare const DynamicColumns: Story;
|
|
31
37
|
export default meta;
|
|
@@ -6,6 +6,8 @@ interface DataGridRenderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
|
|
|
6
6
|
rowsSelecteds?: boolean;
|
|
7
7
|
withCustomHeader?: boolean;
|
|
8
8
|
dynamicColumns?: boolean;
|
|
9
|
+
filterSortAutomatic?: boolean;
|
|
10
|
+
visibleRefreshFilterSort?: boolean;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Componente que renderiza el DataGrid para el storybook
|
|
@@ -11,6 +11,10 @@ export declare const Base: Story;
|
|
|
11
11
|
* DynamicFilter With props `automatic=true`
|
|
12
12
|
*/
|
|
13
13
|
export declare const WithAutomatic: Story;
|
|
14
|
+
/**
|
|
15
|
+
* DynamicFilter With props `visibleRefresh=true`
|
|
16
|
+
*/
|
|
17
|
+
export declare const WithAutomaticVisibleRefreshFalse: Story;
|
|
14
18
|
/**
|
|
15
19
|
* DynamicFilter With props `withAllField=true`
|
|
16
20
|
*/
|
|
@@ -4,7 +4,7 @@ declare const meta: Meta<typeof DynamicSort>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof DynamicSort>;
|
|
6
6
|
/**
|
|
7
|
-
* Base DynamicSort component
|
|
7
|
+
* Base DynamicSort component is automatic in false
|
|
8
8
|
*/
|
|
9
9
|
export declare const Base: Story;
|
|
10
10
|
/**
|
|
@@ -23,3 +23,7 @@ export declare const WithFixedField: Story;
|
|
|
23
23
|
* DynamicFilter With props `automatic=true`
|
|
24
24
|
*/
|
|
25
25
|
export declare const WithAutomatic: Story;
|
|
26
|
+
/**
|
|
27
|
+
* DynamicFilter With props `visibleRefresh=true`
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithAutomaticVisibleRefreshFalse: Story;
|
|
File without changes
|