@m4l/components 9.4.30 → 9.4.31
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/@types/augmentations.d.ts +1 -31
- package/@types/augmentations.d.ts.map +1 -1
- package/components/DynamicFilter/store/DynamicFilterContext.js +66 -281
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +3 -2
- package/components/DynamicSort/dictionary.js +7 -6
- package/components/DynamicSort/store/DynamicSortContext.js +47 -263
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +18 -17
- package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.d.ts.map +1 -1
- package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +10 -9
- package/components/MFIsolationAppStorybook/index.d.ts +3 -0
- package/components/MFIsolationAppStorybook/index.d.ts.map +1 -1
- package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/MFAppStorybook.d.ts +6 -0
- package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/MFAppStorybook.d.ts.map +1 -0
- package/components/MFIsolationAppStorybook/subcomponents/{MFAuthAppStorybook/MFAuthAppStorybook.js → MFAppStorybook/MFAppStorybook.js} +1 -1
- package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/index.d.ts +2 -0
- package/components/MFIsolationAppStorybook/subcomponents/{MFAuthAppStorybook → MFAppStorybook}/index.d.ts.map +1 -1
- package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/types.d.ts.map +1 -0
- package/components/NoItemPrivileges/NoItemPrivileges.js +12 -228
- package/components/ObjectLogs/hooks/useObjectLogsColumns.js +19 -156
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +8 -145
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +8 -145
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +12 -192
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +1 -0
- package/components/areas/components/AreasViewer/AreasViewer.js +8 -187
- package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js +2 -166
- package/components/datagrids/formatters/ColumnBooleanFormatter/formatter.js +2 -166
- package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.js +2 -167
- package/components/datagrids/formatters/ColumnColorFormatter/formatter.js +2 -167
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.js +2 -166
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/formatter.js +2 -166
- package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.js +2 -166
- package/components/datagrids/formatters/ColumnDateFormatter/formatter.js +2 -166
- package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.js +2 -166
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.js +7 -170
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.js +2 -166
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/formatter.js +2 -166
- package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +36 -216
- package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +36 -216
- package/components/datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +122 -278
- package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +127 -284
- package/components/extended/index.d.ts +1 -0
- package/components/extended/index.d.ts.map +1 -1
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.d.ts +38 -0
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.js +67 -0
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.d.ts +7 -0
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.js +83 -0
- package/components/extended/rsuite/DateRangePicker/constants.d.ts +13 -0
- package/components/extended/rsuite/DateRangePicker/constants.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/constants.js +10 -0
- package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/types.d.ts +12 -0
- package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/types.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/useDateRangePicker.d.ts +10 -0
- package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/useDateRangePicker.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/useDateRangePicker.js +24 -0
- package/components/extended/rsuite/DateRangePicker/index.d.ts +3 -0
- package/components/extended/rsuite/DateRangePicker/index.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerEnum.d.ts +5 -0
- package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerEnum.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerEnum.js +4 -0
- package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerSlots.d.ts +15 -0
- package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerSlots.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerSlots.js +18 -0
- package/components/extended/rsuite/DateRangePicker/slots/index.d.ts +4 -0
- package/components/extended/rsuite/DateRangePicker/slots/index.d.ts.map +1 -0
- package/components/extended/rsuite/DateRangePicker/types.d.ts +83 -0
- package/components/extended/rsuite/DateRangePicker/types.d.ts.map +1 -0
- package/components/extended/rsuite/index.d.ts +2 -0
- package/components/extended/rsuite/index.d.ts.map +1 -0
- package/components/formatters/TagsFormatter/TagsFormatter.js +2 -182
- package/components/hook-form/RHFDateRangePicker/RHFDateRangePicker.d.ts +29 -0
- package/components/hook-form/RHFDateRangePicker/RHFDateRangePicker.d.ts.map +1 -0
- package/components/hook-form/RHFDateRangePicker/RHFDateRangePicker.js +6 -0
- package/components/hook-form/RHFDateRangePicker/index.d.ts +3 -0
- package/components/hook-form/RHFDateRangePicker/index.d.ts.map +1 -0
- package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.js +3 -2
- package/components/hook-form/index.d.ts +1 -0
- package/components/hook-form/index.d.ts.map +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +2 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts.map +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +33 -254
- package/index.js +333 -327
- package/package.json +13 -12
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.d.ts +0 -6
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.d.ts.map +0 -1
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.d.ts +0 -2
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/types.d.ts.map +0 -1
- package/mockServiceWorker.js +0 -349
- /package/components/MFIsolationAppStorybook/subcomponents/{MFAuthAppStorybook → MFAppStorybook}/types.d.ts +0 -0
|
@@ -2,42 +2,12 @@ import { EmitEvents } from '@m4l/core';
|
|
|
2
2
|
import { NewWindow } from '../components';
|
|
3
3
|
import { Interpolation } from '@mui/material';
|
|
4
4
|
import { ComponentsPropsList } from '@mui/material/styles';
|
|
5
|
+
/** MUI Typography/Theme augmentations come from @m4l/styles. */
|
|
5
6
|
declare module '@m4l/core' {
|
|
6
7
|
interface EmmitEventsGuard {
|
|
7
8
|
[EmitEvents.EMMIT_EVENT_HOST_EMERGE_WINDOW]: NewWindow;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
declare module '@mui/material/styles' {
|
|
11
|
-
interface TypographyVariants {
|
|
12
|
-
subtitle: Record<string, any>;
|
|
13
|
-
subtitleDens: Record<string, any>;
|
|
14
|
-
paragraph: Record<string, any>;
|
|
15
|
-
paragraphDens: Record<string, any>;
|
|
16
|
-
body: Record<string, any>;
|
|
17
|
-
bodyDens: Record<string, any>;
|
|
18
|
-
action: Record<string, any>;
|
|
19
|
-
}
|
|
20
|
-
interface TypographyVariantsOptions {
|
|
21
|
-
subtitle: React.CSSProperties;
|
|
22
|
-
subtitleDens: React.CSSProperties;
|
|
23
|
-
paragraph: React.CSSProperties;
|
|
24
|
-
paragraphDens: React.CSSProperties;
|
|
25
|
-
body: React.CSSProperties;
|
|
26
|
-
bodyDens: React.CSSProperties;
|
|
27
|
-
action: React.CSSProperties;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
declare module '@mui/material/Typography' {
|
|
31
|
-
interface TypographyPropsVariantOverrides {
|
|
32
|
-
subtitle: true;
|
|
33
|
-
subtitleDens: true;
|
|
34
|
-
paragraph: true;
|
|
35
|
-
paragraphDens: true;
|
|
36
|
-
body: true;
|
|
37
|
-
bodyDens: true;
|
|
38
|
-
action: true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
11
|
export type M4LOverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? Record<string, unknown> & {
|
|
42
12
|
ownerState?: ComponentsPropsList[ComponentName] & Record<string, unknown>;
|
|
43
13
|
} : {}) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"augmentations.d.ts","sourceRoot":"","sources":["../../../../../packages/components/src/@types/augmentations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"augmentations.d.ts","sourceRoot":"","sources":["../../../../../packages/components/src/@types/augmentations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,gEAAgE;AAEhE,OAAO,QAAQ,WAAW,CAAC;IACzB,UAAU,gBAAgB;QACxB,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,SAAS,CAAC;KACxD;CACF;AAED,MAAM,MAAM,sBAAsB,CAChC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,aAAa,GAAG,MAAM,mBAAmB,EACzC,KAAK,GAAG,OAAO,IACb,MAAM,CACR,QAAQ,EACR,aAAa,CAGX,CAAC,aAAa,SAAS,MAAM,mBAAmB,GAC1C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACxB,UAAU,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3E,GACH,EAAE,CAAC,GAAG;IACR,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAC5B,CACF,CAAC"}
|
|
@@ -1,245 +1,30 @@
|
|
|
1
1
|
import { jsx as $ } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { createContext as V, forwardRef as j, useRef as B, useImperativeHandle as H, useEffect as
|
|
3
|
-
import { useStore as
|
|
4
|
-
import { shallow as
|
|
2
|
+
import { createContext as V, forwardRef as j, useRef as B, useImperativeHandle as H, useEffect as s } from "react";
|
|
3
|
+
import { useStore as r } from "zustand";
|
|
4
|
+
import { shallow as i } from "zustand/shallow";
|
|
5
5
|
import { useModuleDictionary as N, useEnvironment as q, useModuleSkeleton as G } from "@m4l/core";
|
|
6
6
|
import { useIsMobile as J, useFirstRender as Q } from "@m4l/graphics";
|
|
7
|
-
import "../../../contexts/ModalContext/index.js";
|
|
8
|
-
import "../../WindowConfirm/slots/WindowConfirmSlots.js";
|
|
9
7
|
import { useComponentSize as U } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
10
|
-
import "../../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
11
|
-
import "clsx";
|
|
12
|
-
import "../../WindowBase/slots/WindowBaseSlots.js";
|
|
13
|
-
import "../../WindowBase/constants.js";
|
|
14
|
-
import "../../DragResizeWindowRND/classes/index.js";
|
|
15
|
-
import "../../extended/mui/IconButton/IconButton.js";
|
|
16
|
-
import "fast-equals";
|
|
17
|
-
import "../../WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js";
|
|
18
|
-
import "../../ActionsGroup/slots/ActionsGroupSlots.js";
|
|
19
|
-
import "../../ActionsGroup/constants.js";
|
|
20
|
-
import "@m4l/styles";
|
|
21
|
-
import "../../extended/mui/Tooltip/slots/TooltipSlots.js";
|
|
22
|
-
import "../../extended/mui/Tooltip/constants.js";
|
|
23
|
-
import "../../Icon/constants.js";
|
|
24
|
-
import "../../Icon/slots/IconSlots.js";
|
|
25
|
-
import "../../WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
26
|
-
import "../../WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
27
|
-
import "zustand/middleware/immer";
|
|
28
|
-
import "../../extended/mui/TabContext/index.js";
|
|
29
|
-
import "../../../hooks/useSvgColor/constants.js";
|
|
30
|
-
import "react-hook-form";
|
|
31
|
-
import "../DynamicFilter.js";
|
|
32
|
-
import "../../DynamicSort/DynamicSort.js";
|
|
33
|
-
import "../../extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.js";
|
|
34
|
-
import "../../../hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js";
|
|
35
|
-
import "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
36
|
-
import "../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
37
|
-
import "../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
38
|
-
import "../../CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.js";
|
|
39
|
-
import "../../CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.js";
|
|
40
|
-
import "../../CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.js";
|
|
41
|
-
import "../../AccountPopover/slots/AccountPopoverSlots.js";
|
|
42
|
-
import "@mui/material";
|
|
43
|
-
import "../../animate/IconButtonAnimate/index.js";
|
|
44
|
-
import "framer-motion";
|
|
45
|
-
import "@mui/material/styles";
|
|
46
|
-
import "../../animate/LoadingScreen/styles.js";
|
|
47
|
-
import "../../animate/AnimatedScroll/styles.js";
|
|
48
|
-
import "../../AppBar/slots/AppBarSlots.js";
|
|
49
|
-
import "../../areas/contexts/AreasContext/index.js";
|
|
50
|
-
import "../../areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js";
|
|
51
|
-
import "../../areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js";
|
|
52
|
-
import "../../areas/components/AreasAdmin/slots/AreasAdminSlots.js";
|
|
53
|
-
import "../../extended/mui/Typography/Typography.js";
|
|
54
|
-
import "../../MenuActions/MenuActions.js";
|
|
55
|
-
import "../../areas/components/AreasViewer/AreasViewer.js";
|
|
56
|
-
import "../../Card/slots/CardSlots.js";
|
|
57
|
-
import "../../Card/constants.js";
|
|
58
|
-
import "../../CheckableList/constants.js";
|
|
59
|
-
import "../../CheckableList/slots/styled.js";
|
|
60
|
-
import "../../extended/mui/Skeleton/Slots/skeletonSlots.js";
|
|
61
|
-
import "../../ImageText/slots/ImageTextSlots.js";
|
|
62
|
-
import "../../ImageText/constants.js";
|
|
63
|
-
import "lodash-es/throttle";
|
|
64
|
-
import "../../Chip/Chip.js";
|
|
65
|
-
import "../../commercial/AppBarCommercial/classes/index.js";
|
|
66
|
-
import "../../commercial/AppBarCommercial/styles.js";
|
|
67
|
-
import "../../commercial/HamburgerMenu/styles.js";
|
|
68
|
-
import "../../commercial/HamburgerMenu/classes/index.js";
|
|
69
|
-
import "../../SideBar/SideBar.js";
|
|
70
|
-
import "../../commercial/TopBar/classes/index.js";
|
|
71
|
-
import "../../commercial/TopBar/context/index.js";
|
|
72
|
-
import "../../extended/mui/Popover/slots/PopoverSlots.js";
|
|
73
|
-
import "../../extended/mui/Accordion/Accordion.js";
|
|
74
|
-
import "../../extended/mui/Button/Button.js";
|
|
75
|
-
import "../../commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/styles.js";
|
|
76
|
-
import "../../commercial/TopBar/style.js";
|
|
77
|
-
import "../../commercial/SectionCommercial/classes/index.js";
|
|
78
|
-
import "../../commercial/SectionCommercial/styles.js";
|
|
79
|
-
import "../../ContainerFlow/constants.js";
|
|
80
|
-
import "../../ContainerFlow/slots/ContainerFlowSlots.js";
|
|
81
|
-
import "../../datagrids/contexts/FilterContext/FilterContext.js";
|
|
82
|
-
import "../../datagrids/contexts/DataGridContext/DataGridContext.js";
|
|
83
|
-
import "@m4l/icons";
|
|
84
|
-
import "../../datagrids/slots/DataGridSlot.js";
|
|
85
|
-
import "../../datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
86
|
-
import "../../datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
87
|
-
import "../../Pager/slots/PagerSlots.js";
|
|
88
|
-
import "../../extended/mui/Select/Select.js";
|
|
89
|
-
import "../../datagrids/views/CardsView/subcomponents/CardRow/CardRow.js";
|
|
90
|
-
import "react-data-grid";
|
|
91
|
-
import "react-dnd";
|
|
92
|
-
import "react-dnd-html5-backend";
|
|
93
|
-
import "../../datagrids/views/TableView/subcomponents/CheckboxFormatter/CheckboxFormatter.js";
|
|
94
|
-
import "../../datagrids/views/TableView/subcomponents/ActionsColumn/ActionsColumn.js";
|
|
95
|
-
import "../../datagrids/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.js";
|
|
96
|
-
import "../../extended/mui/MenuItem/constants.js";
|
|
97
|
-
import "../../extended/mui/MenuItem/slots/MenuItemSlots.js";
|
|
98
|
-
import "../../extended/mui/MenuDivider/slots/MenuDividerSlots.js";
|
|
99
|
-
import "../../formatters/BooleanFormatter/slots/BooleanFormatterSlots.js";
|
|
100
|
-
import "../../formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.js";
|
|
101
|
-
import "../../formatters/ChipStatusFormatter/constants.js";
|
|
102
|
-
import "../../formatters/DateFormatter/slots/DateFormatterSlots.js";
|
|
103
|
-
import "../../formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.js";
|
|
104
|
-
import "../../formatters/PointsFormatter/slots/ointsFormatterSlots.js";
|
|
105
|
-
import "../../formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.js";
|
|
106
|
-
import "../../formatters/PeriodFormatter/slots/PeriodFormatterSlots.js";
|
|
107
|
-
import "../../formatters/PriceFormatter/slots/PriceFormatterSlots.js";
|
|
108
|
-
import "../../formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.js";
|
|
109
|
-
import "../../formatters/TagsFormatter/slots/TagsFormatterSlots.js";
|
|
110
|
-
import "../../formatters/TagsFormatter/constants.js";
|
|
111
|
-
import "../../Color/slots/ColorSlots.js";
|
|
112
|
-
import "../../formatters/ColorFormatter/slots/ColorFormatterSlots.js";
|
|
113
|
-
import "../../formatters/ImageFormatter/slots/ImageFormatterSlots.js";
|
|
114
|
-
import "../../formatters/ImageFormatter/constants.js";
|
|
115
|
-
import "../../formatters/IconsFormatter/constants.js";
|
|
116
|
-
import "../../formatters/IconsFormatter/slots/IconsFormatterSlots.js";
|
|
117
|
-
import "../../extended/mui/CheckBox/CheckBox.js";
|
|
118
|
-
import "../../datagrids/views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js";
|
|
119
|
-
import "../../DaysOfWeekPicker/DaysOfWeekPicker.js";
|
|
120
|
-
import "../../DragResizeWindowRND/DragResizeWindowRND.js";
|
|
121
|
-
import "../../DaysOfMonthPicker/DaysOfMonthPicker.js";
|
|
122
|
-
import "lodash-es/snakeCase";
|
|
123
|
-
import "lodash-es/camelCase";
|
|
124
|
-
import "../../HelperError/HelperError.js";
|
|
125
|
-
import "../../extended/mui/Autocomplete/Autocomplete.js";
|
|
126
|
-
import "../../hook-form/RHFAutocomplete/slots/RHFAutocompleteSlots.js";
|
|
127
|
-
import "../../hook-form/RHFAutocomplete/constants.js";
|
|
128
|
-
import "../../Label/slots/LabelSlots.js";
|
|
129
|
-
import "../../hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js";
|
|
130
|
-
import "lodash-es/debounce";
|
|
131
|
-
import "../../hook-form/RHFCheckbox/RHFCheckbox.js";
|
|
132
|
-
import "../../hook-form/RHFCheckableList/constants.js";
|
|
133
|
-
import "../../hook-form/RHFCheckableList/slots/RHFCheckableListSlots.js";
|
|
134
|
-
import "../../extended/mui/DateTimePicker/slots/DateTimePickerSlots.js";
|
|
135
|
-
import "../../hook-form/RHFDateTime/slots/RHFDateTimeSlots.js";
|
|
136
|
-
import "../../extended/mui/DatePicker/slots/DatePickerSlots.js";
|
|
137
|
-
import "../../extended/mui/DatePicker/constants.js";
|
|
138
|
-
import "../../hook-form/RHFDatePicker/slots/RHFDatePickerSlots.js";
|
|
139
|
-
import "../../hook-form/RHFDaysOfWeekPicker/RHFDaysOfWeekPicker.js";
|
|
140
|
-
import "../../hook-form/RHFDaysOfMonthPicker/RHFDaysOfMonthPicker.js";
|
|
141
|
-
import "../../hook-form/RHFSelect/constants.js";
|
|
142
|
-
import "../../hook-form/RHFSelect/slots/RHFSlots.js";
|
|
143
|
-
import "../../hook-form/RHFTextField/RHFTextField.js";
|
|
144
|
-
import "../../hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js";
|
|
145
|
-
import "../../hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
146
|
-
import "../../extended/mui/Radio/Radio.js";
|
|
147
|
-
import "../../hook-form/RHFRadioGroup/slots/styled.js";
|
|
148
|
-
import "../../hook-form/RHFRadioGroup/constants.js";
|
|
149
|
-
import "@mui/material/utils/useId";
|
|
150
|
-
import "../../NumberInput/NumberInput.js";
|
|
151
|
-
import "../../hook-form/RHFNumberInput/slots/RHFNumberInputSlots.js";
|
|
152
|
-
import "react-dropzone";
|
|
153
|
-
import "../../hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.js";
|
|
154
|
-
import "../../hook-form/RHFUpload/RHFUploadSingleFile/constants.js";
|
|
155
|
-
import "../../hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.js";
|
|
156
|
-
import "lodash-es/isString";
|
|
157
|
-
import "../../Image/subcomponents/IntersectComponent/index.js";
|
|
158
|
-
import "../../Image/slots/ImageSlots.js";
|
|
159
|
-
import "../../Image/constant.js";
|
|
160
|
-
import "../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
161
|
-
import "yup";
|
|
162
|
-
import "../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
163
|
-
import "../../hook-form/RHFActionsGroup/constants.js";
|
|
164
|
-
import "../../extended/React-Resizable/Resizable/slots/ResizableSlots.js";
|
|
165
|
-
import "../../extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.js";
|
|
166
|
-
import "../../extended/React-resizable-panels/slots/SplitLayoutSlots.js";
|
|
167
|
-
import "../../extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.js";
|
|
168
|
-
import "../../extended/React-Window/FixedSizeList/slots/FixedSizeListSlots.js";
|
|
169
|
-
import "../../extended/React-Window/VariableSizeList/VariableSizeList.js";
|
|
170
|
-
import "@textea/json-viewer";
|
|
171
|
-
import "../../extended/React-Json-Viewer/slots/ReactJsonViewerSlots.js";
|
|
172
|
-
import "../../extended/React-Json-Viewer/constants.js";
|
|
173
|
-
import "../../extended/mui/Avatar/Avatar.js";
|
|
174
|
-
import "react-router-dom";
|
|
175
|
-
import "../../extended/mui/CircularProgress/slots/CircularProgressSlots.js";
|
|
176
|
-
import "../../extended/mui/Badge/slots/BadgeSlots.js";
|
|
177
|
-
import "../../extended/mui/ImageButton/styles.js";
|
|
178
|
-
import "../../extended/mui/ImageButton/utils/Clases/index.js";
|
|
179
|
-
import "../../extended/mui/LoadingButton/slots/LoadingButtonSlots.js";
|
|
180
|
-
import "../../extended/mui/Stack/Stack.js";
|
|
181
|
-
import "../../extended/mui/Tab/Slots/TabSlots.js";
|
|
182
|
-
import "../../extended/mui/Tabs/slots/TabsSlots.js";
|
|
183
|
-
import "../../extended/mui/TabContent/slots/TabContentSlots.js";
|
|
184
|
-
import "../../extended/mui/ToggleButton/slots/ToggleButtonSlots.js";
|
|
185
|
-
import "../../extended/mui/NavLink/slots/NavLinkSlots.js";
|
|
186
|
-
import "../../extended/mui/NavLink/constants.js";
|
|
187
|
-
import "../../extended/mui/Dialog/Dialog.js";
|
|
188
|
-
import "../../extended/mui/Divider/slots/DividerSlots.js";
|
|
189
|
-
import "../../FormContainer/slots/FormContainerSlots.js";
|
|
190
|
-
import "../../FormContainer/constants.js";
|
|
191
|
-
import "../../GridLayout/GridLayout.js";
|
|
192
|
-
import "../../GridLayout/subcomponents/Responsive/index.js";
|
|
193
|
-
import "../../HelmetPage/index.js";
|
|
194
|
-
import "../../LanguagePopover/slots/LanguagePopoverSlots.js";
|
|
195
|
-
import "../../LinearProgressIndeterminate/slots/LinearProgressIndeterminateSlots.js";
|
|
196
|
-
import "../../LoadingError/slots/LoadingErrorSlots.js";
|
|
197
|
-
import "../../MFIsolationApp/MFIsolationApp.js";
|
|
198
|
-
import "../../MFIsolationAppStorybook/MFIsolationAppStorybook.js";
|
|
199
|
-
import "../../MFLoader/classes/index.js";
|
|
200
|
-
import "../../MFLoader/styles.js";
|
|
201
|
-
import "../../NoItemSelected/constant.js";
|
|
202
|
-
import "../../NoItemSelected/slots/NoItemSelectedSlots.js";
|
|
203
|
-
import "../../NoItemPrivileges/constants.js";
|
|
204
|
-
import "../../NoItemPrivileges/slots/NoItemPrivilegesSlots.js";
|
|
205
|
-
import "../../ObjectLogs/slots/ObjectLogsSlots.js";
|
|
206
|
-
import "date-fns";
|
|
207
|
-
import "../../PaperForm/slots/PaperFormSlots.js";
|
|
208
|
-
import "../../PropertyValue/slots/PropertyValueSlots.js";
|
|
209
|
-
import "../../PDFViewer/slots/PDFViewerSlots.js";
|
|
210
|
-
import "../../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
211
|
-
import "../../popups/components/PopupsViewer/PopupsViewer.js";
|
|
212
|
-
import "../../PrintingSystem/PrintingSystem.js";
|
|
213
|
-
import "../../ScrollBar/slots/ScrollBarSlots.js";
|
|
214
|
-
import "react-toastify";
|
|
215
|
-
import "../../ToastContainer/slots/toastContainerSlots.js";
|
|
216
|
-
import "../../TabsNavigator/slots/TabsNavigatorSlots.js";
|
|
217
|
-
import "../../TabsNavigator/constants.js";
|
|
218
|
-
import "../../ModalDialog/slots/ModalDialogSlots.js";
|
|
219
|
-
import "../../SettingsLayout/slots/SettingsLayoutSlots.js";
|
|
220
|
-
import "../../SettingsLayout/constants.js";
|
|
221
|
-
import "../../Stepper/store/StepperContext/index.js";
|
|
222
|
-
import "../../Stepper/slots/StepperSlot.js";
|
|
223
8
|
import { ALL_FIELD as W } from "../constants.js";
|
|
224
9
|
import { formatToRawFilter as X } from "../helpers/formatToRowFilter.js";
|
|
225
10
|
import { formatToInitialFilters as Y } from "../helpers/formatToInitialFilters.js";
|
|
226
11
|
import { createDynamicFilterStore as Z } from "./DynamicFilterStore.js";
|
|
227
|
-
const K = V(null),
|
|
12
|
+
const K = V(null), fe = j((g, S) => {
|
|
228
13
|
const {
|
|
229
|
-
automatic:
|
|
14
|
+
automatic: f = !0,
|
|
230
15
|
withAllField: h = !0,
|
|
231
16
|
fields: v,
|
|
232
17
|
initialAppliedFilters: y = [],
|
|
233
18
|
onChangeFilters: C,
|
|
234
|
-
onDirty:
|
|
19
|
+
onDirty: u,
|
|
235
20
|
dataTestId: D = "",
|
|
236
21
|
size: w,
|
|
237
22
|
children: E,
|
|
238
23
|
storeId: R,
|
|
239
24
|
storeDevtoolsEnabled: b = !1,
|
|
240
|
-
visibleRefresh:
|
|
241
|
-
} = g, { currentSize:
|
|
242
|
-
|
|
25
|
+
visibleRefresh: l = !0
|
|
26
|
+
} = g, { currentSize: n } = U(w), { getLabel: A } = N(), e = B(null), { host_static_assets: M, environment_assets: x } = q(), a = !J(), c = G(), z = Q([a, c]);
|
|
27
|
+
e.current || (e.current = Z(
|
|
243
28
|
{
|
|
244
29
|
allField: {
|
|
245
30
|
...W,
|
|
@@ -247,54 +32,54 @@ const K = V(null), cp = j((g, S) => {
|
|
|
247
32
|
},
|
|
248
33
|
withAllField: h,
|
|
249
34
|
fields: v,
|
|
250
|
-
automatic:
|
|
35
|
+
automatic: f,
|
|
251
36
|
getLabel: A,
|
|
252
37
|
dataTestId: D,
|
|
253
|
-
size:
|
|
38
|
+
size: n,
|
|
254
39
|
storeId: R,
|
|
255
|
-
visibleRefresh:
|
|
40
|
+
visibleRefresh: l,
|
|
256
41
|
ownerState: {
|
|
257
|
-
isSkeleton:
|
|
42
|
+
isSkeleton: c,
|
|
258
43
|
isDirty: !1,
|
|
259
44
|
inEdition: !1,
|
|
260
45
|
isValid: !0,
|
|
261
|
-
isMobile: !
|
|
46
|
+
isMobile: !a,
|
|
262
47
|
isEmpty: !0,
|
|
263
|
-
size:
|
|
48
|
+
size: n
|
|
264
49
|
}
|
|
265
50
|
},
|
|
266
51
|
b
|
|
267
|
-
),
|
|
268
|
-
const I =
|
|
269
|
-
|
|
270
|
-
(
|
|
271
|
-
|
|
272
|
-
), O =
|
|
273
|
-
|
|
274
|
-
(
|
|
275
|
-
|
|
276
|
-
), P =
|
|
277
|
-
|
|
278
|
-
(
|
|
279
|
-
|
|
280
|
-
), _ = (
|
|
52
|
+
), e.current.getState().actions.init(y));
|
|
53
|
+
const I = r(
|
|
54
|
+
e.current,
|
|
55
|
+
(t) => t.actions.fireOnChangeFilters,
|
|
56
|
+
i
|
|
57
|
+
), O = r(
|
|
58
|
+
e.current,
|
|
59
|
+
(t) => t.actions.openPopoverMenuFields,
|
|
60
|
+
i
|
|
61
|
+
), P = r(
|
|
62
|
+
e.current,
|
|
63
|
+
(t) => t.actions.showPopoverFilterForAdd,
|
|
64
|
+
i
|
|
65
|
+
), _ = (t) => {
|
|
281
66
|
try {
|
|
282
|
-
const
|
|
283
|
-
if (!
|
|
67
|
+
const o = e.current?.getState();
|
|
68
|
+
if (!o)
|
|
284
69
|
return;
|
|
285
|
-
const
|
|
286
|
-
(F) => F.field.name ===
|
|
287
|
-
), T =
|
|
70
|
+
const m = o.actions.getFieldByName(t), k = o.appliedFilters.some(
|
|
71
|
+
(F) => F.field.name === t && F.isSet
|
|
72
|
+
), T = m.multiple;
|
|
288
73
|
if (k && !T)
|
|
289
74
|
return;
|
|
290
|
-
P(
|
|
291
|
-
} catch (
|
|
292
|
-
throw new Error(`Error al agregar el filtro externo: ${
|
|
75
|
+
P(m);
|
|
76
|
+
} catch (o) {
|
|
77
|
+
throw new Error(`Error al agregar el filtro externo: ${o}`);
|
|
293
78
|
}
|
|
294
|
-
}, L =
|
|
295
|
-
|
|
296
|
-
(
|
|
297
|
-
|
|
79
|
+
}, L = r(
|
|
80
|
+
e.current,
|
|
81
|
+
(t) => () => t.appliedFilters,
|
|
82
|
+
i
|
|
298
83
|
);
|
|
299
84
|
H(S, () => ({
|
|
300
85
|
fireOnChangeFilter: I,
|
|
@@ -302,37 +87,37 @@ const K = V(null), cp = j((g, S) => {
|
|
|
302
87
|
addExternalFilter: _,
|
|
303
88
|
getCurrentFilters: L
|
|
304
89
|
}));
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
(
|
|
308
|
-
|
|
309
|
-
),
|
|
310
|
-
|
|
311
|
-
(
|
|
312
|
-
|
|
90
|
+
const d = r(
|
|
91
|
+
e.current,
|
|
92
|
+
(t) => t.countOnChangeFiltersApplied,
|
|
93
|
+
i
|
|
94
|
+
), p = r(
|
|
95
|
+
e.current,
|
|
96
|
+
(t) => t.ownerState.isDirty,
|
|
97
|
+
i
|
|
313
98
|
);
|
|
314
|
-
return
|
|
315
|
-
if (
|
|
99
|
+
return s(() => {
|
|
100
|
+
if (d === 0)
|
|
316
101
|
return;
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
Y(
|
|
320
|
-
X(
|
|
102
|
+
const t = e.current?.getState();
|
|
103
|
+
t && C?.(
|
|
104
|
+
Y(t.appliedFilters),
|
|
105
|
+
X(t.appliedFilters)
|
|
321
106
|
);
|
|
322
|
-
}, [
|
|
323
|
-
z ||
|
|
324
|
-
}, [
|
|
325
|
-
if (
|
|
326
|
-
|
|
107
|
+
}, [d]), s(() => {
|
|
108
|
+
z || e.current?.getState().actions.setExternalState({ isMobile: !a, isSkeleton: c });
|
|
109
|
+
}, [a, c]), s(() => {
|
|
110
|
+
if (f) {
|
|
111
|
+
e.current?.getState().actions.fireOnChangeFilters();
|
|
327
112
|
return;
|
|
328
113
|
}
|
|
329
|
-
}, []),
|
|
330
|
-
|
|
331
|
-
}, [
|
|
332
|
-
|
|
333
|
-
}, [
|
|
114
|
+
}, []), s(() => {
|
|
115
|
+
u && p && u();
|
|
116
|
+
}, [p, u]), s(() => {
|
|
117
|
+
e.current?.getState().size !== n && e.current?.getState().actions.setSize(n), e.current?.getState().visibleRefresh !== l && e.current?.getState().actions.setVisibleRefresh(l);
|
|
118
|
+
}, [n, l]), /* @__PURE__ */ $(K.Provider, { value: e.current, children: E });
|
|
334
119
|
});
|
|
335
120
|
export {
|
|
336
121
|
K as DynamicFilterContext,
|
|
337
|
-
|
|
122
|
+
fe as DynamicFilterProvider
|
|
338
123
|
};
|
|
@@ -75,10 +75,11 @@ import "../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
|
75
75
|
import "yup";
|
|
76
76
|
import "../../../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
77
77
|
import "../../../../hook-form/RHFActionsGroup/constants.js";
|
|
78
|
+
import "../../../../hook-form/RHFDateRangePicker/RHFDateRangePicker.js";
|
|
78
79
|
import { SELECT_ASYNC_OPERATORS_MULTIPLE as A, SELECT_ASYNC_OPERATORS_SINGLE as O } from "../../../constants.js";
|
|
79
80
|
import { DYNAMIC_FILTER_DICTIONARY_ID as E, DICCTIONARY as m } from "../../../dictionary.js";
|
|
80
81
|
import { useDynamicFilterStore as y } from "../../../store/useDynamicFilterStore.js";
|
|
81
|
-
function
|
|
82
|
+
function Jo() {
|
|
82
83
|
const { getLabel: t } = f(), i = y((o) => o.popoverFilterData?.field), e = i?.selectAsyncOptions, r = e?.multiple ?? !1, p = i?.restritcOperatorsTo;
|
|
83
84
|
if (!i?.selectAsyncOptions?.endPoint)
|
|
84
85
|
throw new Error("El filtro tipo Select requiere la configuración del Endpoint");
|
|
@@ -114,5 +115,5 @@ function Bo() {
|
|
|
114
115
|
] });
|
|
115
116
|
}
|
|
116
117
|
export {
|
|
117
|
-
|
|
118
|
+
Jo as SelectAsyncFilter
|
|
118
119
|
};
|
|
@@ -74,10 +74,11 @@ import "../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
|
74
74
|
import "yup";
|
|
75
75
|
import "../../../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
76
76
|
import "../../../../hook-form/RHFActionsGroup/constants.js";
|
|
77
|
+
import "../../../../hook-form/RHFDateRangePicker/RHFDateRangePicker.js";
|
|
77
78
|
import { SELECT_OPERATORS_MULTIPLE as d, SELECT_OPERATORS_SINGLE as T } from "../../../constants.js";
|
|
78
79
|
import { DYNAMIC_FILTER_DICTIONARY_ID as E, DICCTIONARY as m } from "../../../dictionary.js";
|
|
79
80
|
import { useDynamicFilterStore as b } from "../../../store/useDynamicFilterStore.js";
|
|
80
|
-
function
|
|
81
|
+
function Bo() {
|
|
81
82
|
const { getLabel: t } = f(), i = b((o) => o.popoverFilterData?.field), e = i?.selectOptions, r = e?.multiple ?? !1, p = i?.restritcOperatorsTo, a = u(
|
|
82
83
|
() => (r ? d : T).map((o) => ({
|
|
83
84
|
id: o,
|
|
@@ -110,5 +111,5 @@ function zo() {
|
|
|
110
111
|
] });
|
|
111
112
|
}
|
|
112
113
|
export {
|
|
113
|
-
|
|
114
|
+
Bo as SelectFilter
|
|
114
115
|
};
|
|
@@ -79,23 +79,24 @@ import "../hook-form/RHFormProvider/RHFormProvider.js";
|
|
|
79
79
|
import "yup";
|
|
80
80
|
import "../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
81
81
|
import "../hook-form/RHFActionsGroup/constants.js";
|
|
82
|
+
import "../hook-form/RHFDateRangePicker/RHFDateRangePicker.js";
|
|
82
83
|
const o = "dynamic_sort";
|
|
83
|
-
function
|
|
84
|
+
function Fo() {
|
|
84
85
|
return [o].concat(
|
|
85
86
|
i().concat(r())
|
|
86
87
|
);
|
|
87
88
|
}
|
|
88
|
-
const
|
|
89
|
+
const Ho = {
|
|
89
90
|
input_placeholder: "input_placeholder",
|
|
90
91
|
sort_tooltip_refresh: "sort_tooltip_refresh",
|
|
91
92
|
sort_tooltip_dirty: "sort_tooltip_dirty",
|
|
92
93
|
sort_tooltip_invalid: "sort_tooltip_invalid",
|
|
93
94
|
tooltip_clear_sort: "tooltip_clear_sort",
|
|
94
95
|
label_no_fields_available: "label_no_fields_available"
|
|
95
|
-
},
|
|
96
|
+
}, Mo = (t) => `${o}.${t}`;
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
Ho as DICCTIONARY,
|
|
98
99
|
o as DYNAMICSORT_DICTIONARY_ID,
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
Fo as getDynamicSortComponentsDictionary,
|
|
101
|
+
Mo as getDynamicSortDictionary
|
|
101
102
|
};
|