@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { forwardRef as $, useRef as x, useState as I, useImperativeHandle as q, useMemo as _, useEffect as J } from "react";
|
|
3
3
|
import { useModuleDictionary as Q } from "@m4l/core";
|
|
4
4
|
import X from "react-data-grid";
|
|
5
|
-
import { IconButton as
|
|
5
|
+
import { IconButton as p } from "../../../../../../../extended/mui/IconButton/IconButton.js";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "../../../../../../../formatters/BooleanFormatter/slots/BooleanFormatterSlots.js";
|
|
8
8
|
import "../../../../../../../formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.js";
|
|
@@ -52,185 +52,29 @@ import "../../../../../../../CommonActions/components/ActionIntro/ActionIntro.js
|
|
|
52
52
|
import "../../../../../../../CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.js";
|
|
53
53
|
import "../../../../../../../CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.js";
|
|
54
54
|
import "../../../../../../../CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.js";
|
|
55
|
-
import "../../../../../../../AccountPopover/slots/AccountPopoverSlots.js";
|
|
56
|
-
import "../../../../../../../animate/IconButtonAnimate/index.js";
|
|
57
|
-
import "framer-motion";
|
|
58
|
-
import "@mui/material/styles";
|
|
59
|
-
import "../../../../../../../animate/LoadingScreen/styles.js";
|
|
60
|
-
import "../../../../../../../animate/AnimatedScroll/styles.js";
|
|
61
|
-
import "../../../../../../../AppBar/slots/AppBarSlots.js";
|
|
62
|
-
import "../../../../../../../areas/contexts/AreasContext/index.js";
|
|
63
|
-
import "../../../../../../../areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js";
|
|
64
|
-
import "../../../../../../../areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js";
|
|
65
|
-
import "../../../../../../../areas/components/AreasAdmin/slots/AreasAdminSlots.js";
|
|
66
|
-
import "../../../../../../../extended/mui/Typography/Typography.js";
|
|
67
|
-
import "../../../../../../../MenuActions/MenuActions.js";
|
|
68
|
-
import "../../../../../../../areas/components/AreasViewer/AreasViewer.js";
|
|
69
|
-
import "../../../../../../../Card/slots/CardSlots.js";
|
|
70
|
-
import "../../../../../../../Card/constants.js";
|
|
71
|
-
import "../../../../../../../CheckableList/constants.js";
|
|
72
|
-
import "../../../../../../../CheckableList/slots/styled.js";
|
|
73
|
-
import "../../../../../../../extended/mui/Skeleton/Slots/skeletonSlots.js";
|
|
74
|
-
import "../../../../../../../ImageText/slots/ImageTextSlots.js";
|
|
75
|
-
import "../../../../../../../ImageText/constants.js";
|
|
76
55
|
import "lodash-es/throttle";
|
|
77
|
-
import "../../../../../../../Chip/Chip.js";
|
|
78
|
-
import "../../../../../../../commercial/AppBarCommercial/classes/index.js";
|
|
79
|
-
import "../../../../../../../commercial/AppBarCommercial/styles.js";
|
|
80
|
-
import "../../../../../../../commercial/HamburgerMenu/styles.js";
|
|
81
|
-
import "../../../../../../../commercial/HamburgerMenu/classes/index.js";
|
|
82
|
-
import "../../../../../../../SideBar/SideBar.js";
|
|
83
|
-
import "../../../../../../../commercial/TopBar/classes/index.js";
|
|
84
|
-
import "../../../../../../../commercial/TopBar/context/index.js";
|
|
85
|
-
import "../../../../../../../extended/mui/Popover/slots/PopoverSlots.js";
|
|
86
|
-
import "../../../../../../../extended/mui/Accordion/Accordion.js";
|
|
87
|
-
import "../../../../../../../extended/mui/Button/Button.js";
|
|
88
|
-
import "../../../../../../../commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/styles.js";
|
|
89
|
-
import "../../../../../../../commercial/TopBar/style.js";
|
|
90
|
-
import "../../../../../../../commercial/SectionCommercial/classes/index.js";
|
|
91
|
-
import "../../../../../../../commercial/SectionCommercial/styles.js";
|
|
92
|
-
import "../../../../../../../ContainerFlow/constants.js";
|
|
93
|
-
import "../../../../../../../ContainerFlow/slots/ContainerFlowSlots.js";
|
|
94
|
-
import "../../../../../../contexts/FilterContext/FilterContext.js";
|
|
95
|
-
import "../../../../../../contexts/DataGridContext/DataGridContext.js";
|
|
96
|
-
import { DICTIONARY as l } from "../../../../../../dictionary.js";
|
|
97
|
-
import { ArrowChevronUpOutlined as Z, ArrowChevronMdUpOutlined as tt, ArrowChevronDownOutlined as ot, ArrowChevronMdDownOutlined as it, ActionsMultiCheckOutlined as rt, ActionsCheckIndeterminateOutlined as et, ArrowRestoreOutlined as mt } from "@m4l/icons";
|
|
98
|
-
import { ColumnsConfigWrapperStyled as pt, ColumnsConfigDataGridStyled as nt, ColumnsConfigSelColumnsStyled as lt, TableWrapperDataGridStyled as st, ColumnsConfigActiosStyled as at } from "../../../../../../slots/DataGridSlot.js";
|
|
99
|
-
import "../../../../../TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
100
|
-
import "../../../../../../../Pager/slots/PagerSlots.js";
|
|
101
|
-
import "../../../../../../../extended/mui/Select/Select.js";
|
|
102
|
-
import "../../../CardRow/CardRow.js";
|
|
103
|
-
import "react-dnd";
|
|
104
|
-
import "react-dnd-html5-backend";
|
|
105
|
-
import "../../../../../TableView/subcomponents/CheckboxFormatter/CheckboxFormatter.js";
|
|
106
|
-
import "../../../../../TableView/subcomponents/ActionsColumn/ActionsColumn.js";
|
|
107
|
-
import "../../../../../TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.js";
|
|
108
|
-
import "../../../../../../../extended/mui/MenuItem/constants.js";
|
|
109
|
-
import "../../../../../../../extended/mui/MenuItem/slots/MenuItemSlots.js";
|
|
110
|
-
import "../../../../../../../extended/mui/MenuDivider/slots/MenuDividerSlots.js";
|
|
111
|
-
import "../../../../../../../DaysOfWeekPicker/DaysOfWeekPicker.js";
|
|
112
|
-
import "../../../../../../../DragResizeWindowRND/DragResizeWindowRND.js";
|
|
113
|
-
import "../../../../../../../DaysOfMonthPicker/DaysOfMonthPicker.js";
|
|
114
|
-
import "lodash-es/snakeCase";
|
|
115
|
-
import "lodash-es/camelCase";
|
|
116
|
-
import "../../../../../../../HelperError/HelperError.js";
|
|
117
|
-
import "../../../../../../../extended/mui/Autocomplete/Autocomplete.js";
|
|
118
|
-
import "../../../../../../../hook-form/RHFAutocomplete/slots/RHFAutocompleteSlots.js";
|
|
119
|
-
import "../../../../../../../hook-form/RHFAutocomplete/constants.js";
|
|
120
56
|
import "../../../../../../../Color/slots/ColorSlots.js";
|
|
121
|
-
import "../../../../../../../Label/slots/LabelSlots.js";
|
|
122
|
-
import "../../../../../../../hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js";
|
|
123
|
-
import "lodash-es/debounce";
|
|
124
|
-
import "../../../../../../../hook-form/RHFCheckbox/RHFCheckbox.js";
|
|
125
|
-
import "../../../../../../../hook-form/RHFCheckableList/constants.js";
|
|
126
|
-
import "../../../../../../../hook-form/RHFCheckableList/slots/RHFCheckableListSlots.js";
|
|
127
|
-
import "../../../../../../../extended/mui/DateTimePicker/slots/DateTimePickerSlots.js";
|
|
128
|
-
import "../../../../../../../hook-form/RHFDateTime/slots/RHFDateTimeSlots.js";
|
|
129
|
-
import "../../../../../../../extended/mui/DatePicker/slots/DatePickerSlots.js";
|
|
130
|
-
import "../../../../../../../extended/mui/DatePicker/constants.js";
|
|
131
|
-
import "../../../../../../../hook-form/RHFDatePicker/slots/RHFDatePickerSlots.js";
|
|
132
|
-
import "../../../../../../../hook-form/RHFDaysOfWeekPicker/RHFDaysOfWeekPicker.js";
|
|
133
|
-
import "../../../../../../../hook-form/RHFDaysOfMonthPicker/RHFDaysOfMonthPicker.js";
|
|
134
|
-
import "../../../../../../../hook-form/RHFSelect/constants.js";
|
|
135
|
-
import "../../../../../../../hook-form/RHFSelect/slots/RHFSlots.js";
|
|
136
|
-
import "../../../../../../../hook-form/RHFTextField/RHFTextField.js";
|
|
137
|
-
import "../../../../../../../hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js";
|
|
138
|
-
import "../../../../../../../hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
139
|
-
import "../../../../../../../extended/mui/Radio/Radio.js";
|
|
140
|
-
import "../../../../../../../hook-form/RHFRadioGroup/slots/styled.js";
|
|
141
|
-
import "../../../../../../../hook-form/RHFRadioGroup/constants.js";
|
|
142
|
-
import "@mui/material/utils/useId";
|
|
143
|
-
import "../../../../../../../NumberInput/NumberInput.js";
|
|
144
|
-
import "../../../../../../../hook-form/RHFNumberInput/slots/RHFNumberInputSlots.js";
|
|
145
|
-
import "react-dropzone";
|
|
146
|
-
import "../../../../../../../hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.js";
|
|
147
|
-
import "../../../../../../../hook-form/RHFUpload/RHFUploadSingleFile/constants.js";
|
|
148
|
-
import "../../../../../../../hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.js";
|
|
149
|
-
import "lodash-es/isString";
|
|
150
|
-
import "../../../../../../../Image/subcomponents/IntersectComponent/index.js";
|
|
151
|
-
import "../../../../../../../Image/slots/ImageSlots.js";
|
|
152
|
-
import "../../../../../../../Image/constant.js";
|
|
153
|
-
import "../../../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
154
|
-
import "yup";
|
|
155
|
-
import "../../../../../../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
156
|
-
import "../../../../../../../hook-form/RHFActionsGroup/constants.js";
|
|
157
|
-
import "../../../../../../../extended/React-Resizable/Resizable/slots/ResizableSlots.js";
|
|
158
|
-
import "../../../../../../../extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.js";
|
|
159
|
-
import "../../../../../../../extended/React-resizable-panels/slots/SplitLayoutSlots.js";
|
|
160
|
-
import "../../../../../../../extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.js";
|
|
161
|
-
import "../../../../../../../extended/React-Window/FixedSizeList/slots/FixedSizeListSlots.js";
|
|
162
|
-
import "../../../../../../../extended/React-Window/VariableSizeList/VariableSizeList.js";
|
|
163
|
-
import "@textea/json-viewer";
|
|
164
|
-
import "../../../../../../../extended/React-Json-Viewer/slots/ReactJsonViewerSlots.js";
|
|
165
|
-
import "../../../../../../../extended/React-Json-Viewer/constants.js";
|
|
166
|
-
import "../../../../../../../extended/mui/Avatar/Avatar.js";
|
|
167
|
-
import "react-router-dom";
|
|
168
|
-
import "../../../../../../../extended/mui/CheckBox/CheckBox.js";
|
|
169
|
-
import "../../../../../../../extended/mui/CircularProgress/slots/CircularProgressSlots.js";
|
|
170
|
-
import "../../../../../../../extended/mui/Badge/slots/BadgeSlots.js";
|
|
171
|
-
import "../../../../../../../extended/mui/ImageButton/styles.js";
|
|
172
|
-
import "../../../../../../../extended/mui/ImageButton/utils/Clases/index.js";
|
|
173
|
-
import "../../../../../../../extended/mui/LoadingButton/slots/LoadingButtonSlots.js";
|
|
174
|
-
import "../../../../../../../extended/mui/Stack/Stack.js";
|
|
175
|
-
import "../../../../../../../extended/mui/Tab/Slots/TabSlots.js";
|
|
176
|
-
import "../../../../../../../extended/mui/Tabs/slots/TabsSlots.js";
|
|
177
|
-
import "../../../../../../../extended/mui/TabContent/slots/TabContentSlots.js";
|
|
178
|
-
import "../../../../../../../extended/mui/ToggleButton/slots/ToggleButtonSlots.js";
|
|
179
|
-
import "../../../../../../../extended/mui/NavLink/slots/NavLinkSlots.js";
|
|
180
|
-
import "../../../../../../../extended/mui/NavLink/constants.js";
|
|
181
|
-
import "../../../../../../../extended/mui/Dialog/Dialog.js";
|
|
182
|
-
import "../../../../../../../extended/mui/Divider/slots/DividerSlots.js";
|
|
183
|
-
import "../../../../../../../FormContainer/slots/FormContainerSlots.js";
|
|
184
|
-
import "../../../../../../../FormContainer/constants.js";
|
|
185
|
-
import "../../../../../../../GridLayout/GridLayout.js";
|
|
186
|
-
import "../../../../../../../GridLayout/subcomponents/Responsive/index.js";
|
|
187
|
-
import "../../../../../../../HelmetPage/index.js";
|
|
188
|
-
import "../../../../../../../LanguagePopover/slots/LanguagePopoverSlots.js";
|
|
189
|
-
import "../../../../../../../LinearProgressIndeterminate/slots/LinearProgressIndeterminateSlots.js";
|
|
190
|
-
import "../../../../../../../LoadingError/slots/LoadingErrorSlots.js";
|
|
191
|
-
import "../../../../../../../MFIsolationApp/MFIsolationApp.js";
|
|
192
|
-
import "../../../../../../../MFIsolationAppStorybook/MFIsolationAppStorybook.js";
|
|
193
|
-
import "../../../../../../../MFLoader/classes/index.js";
|
|
194
|
-
import "../../../../../../../MFLoader/styles.js";
|
|
195
|
-
import "../../../../../../../NoItemSelected/constant.js";
|
|
196
|
-
import "../../../../../../../NoItemSelected/slots/NoItemSelectedSlots.js";
|
|
197
|
-
import "../../../../../../../NoItemPrivileges/constants.js";
|
|
198
|
-
import "../../../../../../../NoItemPrivileges/slots/NoItemPrivilegesSlots.js";
|
|
199
|
-
import "../../../../../../../ObjectLogs/slots/ObjectLogsSlots.js";
|
|
200
|
-
import "../../../../../../../formatters/IconsFormatter/constants.js";
|
|
201
|
-
import "../../../../../../../formatters/IconsFormatter/slots/IconsFormatterSlots.js";
|
|
202
|
-
import "date-fns";
|
|
203
|
-
import "../../../../../../../PaperForm/slots/PaperFormSlots.js";
|
|
204
|
-
import "../../../../../../../PropertyValue/slots/PropertyValueSlots.js";
|
|
205
|
-
import "../../../../../../../PDFViewer/slots/PDFViewerSlots.js";
|
|
206
|
-
import "../../../../../../../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
207
|
-
import "../../../../../../../popups/components/PopupsViewer/PopupsViewer.js";
|
|
208
|
-
import "../../../../../../../PrintingSystem/PrintingSystem.js";
|
|
209
|
-
import "../../../../../../../ScrollBar/slots/ScrollBarSlots.js";
|
|
210
|
-
import "react-toastify";
|
|
211
|
-
import "../../../../../../../ToastContainer/slots/toastContainerSlots.js";
|
|
212
|
-
import "../../../../../../../TabsNavigator/slots/TabsNavigatorSlots.js";
|
|
213
|
-
import "../../../../../../../TabsNavigator/constants.js";
|
|
214
|
-
import "../../../../../../../ModalDialog/slots/ModalDialogSlots.js";
|
|
215
|
-
import "../../../../../../../SettingsLayout/slots/SettingsLayoutSlots.js";
|
|
216
|
-
import "../../../../../../../SettingsLayout/constants.js";
|
|
217
|
-
import "../../../../../../../Stepper/store/StepperContext/index.js";
|
|
218
|
-
import "../../../../../../../Stepper/slots/StepperSlot.js";
|
|
219
57
|
import "../../../../../../../formatters/ColorFormatter/slots/ColorFormatterSlots.js";
|
|
220
58
|
import "../../../../../../../formatters/ImageFormatter/slots/ImageFormatterSlots.js";
|
|
221
59
|
import "../../../../../../../formatters/ImageFormatter/constants.js";
|
|
60
|
+
import "../../../../../../../formatters/IconsFormatter/constants.js";
|
|
61
|
+
import "../../../../../../../formatters/IconsFormatter/slots/IconsFormatterSlots.js";
|
|
222
62
|
import { ColumnInteractiveCheckFormatter as E } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
223
63
|
import "../../../../../adapters/CheckboxCellAdapter/CheckboxCellAdapter.js";
|
|
64
|
+
import "../../../../../../contexts/DataGridContext/DataGridContext.js";
|
|
65
|
+
import { ColumnsConfigWrapperStyled as Z, ColumnsConfigDataGridStyled as ee, ColumnsConfigSelColumnsStyled as te, TableWrapperDataGridStyled as oe, ColumnsConfigActiosStyled as ie } from "../../../../../../slots/DataGridSlot.js";
|
|
66
|
+
import { DICTIONARY as a } from "../../../../../../dictionary.js";
|
|
67
|
+
import { ArrowChevronUpOutlined as re, ArrowChevronMdUpOutlined as ne, ArrowChevronDownOutlined as le, ArrowChevronMdDownOutlined as se, ActionsMultiCheckOutlined as ae, ActionsCheckIndeterminateOutlined as me, ArrowRestoreOutlined as pe } from "@m4l/icons";
|
|
224
68
|
function R(d, c) {
|
|
225
|
-
return d.filter((
|
|
226
|
-
(
|
|
227
|
-
key:
|
|
228
|
-
name: c?.find((S) => S.key ===
|
|
229
|
-
visible:
|
|
230
|
-
showTitle:
|
|
231
|
-
originalIndex:
|
|
232
|
-
originalVisible:
|
|
233
|
-
originalShowTitle:
|
|
69
|
+
return d.filter((n) => !n.hidden).map(
|
|
70
|
+
(n) => ({
|
|
71
|
+
key: n.key,
|
|
72
|
+
name: c?.find((S) => S.key === n.key)?.name ?? "",
|
|
73
|
+
visible: n.visible === void 0 ? !0 : n.visible,
|
|
74
|
+
showTitle: n.showTitle === void 0 ? !0 : n.showTitle,
|
|
75
|
+
originalIndex: n.originalIndex,
|
|
76
|
+
originalVisible: n.originalVisible,
|
|
77
|
+
originalShowTitle: n.originalShowTitle
|
|
234
78
|
})
|
|
235
79
|
);
|
|
236
80
|
}
|
|
@@ -240,9 +84,9 @@ const f = (d) => {
|
|
|
240
84
|
cellClass: c,
|
|
241
85
|
headerCellClass: c
|
|
242
86
|
};
|
|
243
|
-
},
|
|
87
|
+
}, de = $(
|
|
244
88
|
(d, c) => {
|
|
245
|
-
const
|
|
89
|
+
const n = x(null), {
|
|
246
90
|
onCloseSettings: S,
|
|
247
91
|
columnsConfig: u,
|
|
248
92
|
onChangeColumnsConfig: N,
|
|
@@ -250,7 +94,7 @@ const f = (d) => {
|
|
|
250
94
|
classes: A,
|
|
251
95
|
size: T,
|
|
252
96
|
columns: k
|
|
253
|
-
} = d, { getLabel:
|
|
97
|
+
} = d, { getLabel: s } = Q(), [M, G] = I(!0), [o, m] = I(
|
|
254
98
|
R(u, k)
|
|
255
99
|
), [w, L] = I(
|
|
256
100
|
() => /* @__PURE__ */ new Set()
|
|
@@ -263,7 +107,7 @@ const f = (d) => {
|
|
|
263
107
|
() => [
|
|
264
108
|
{
|
|
265
109
|
key: "name",
|
|
266
|
-
name:
|
|
110
|
+
name: s(a.SETTINGS_COLUMN_NAME),
|
|
267
111
|
width: 220,
|
|
268
112
|
resizable: !0,
|
|
269
113
|
type: "string",
|
|
@@ -271,7 +115,7 @@ const f = (d) => {
|
|
|
271
115
|
},
|
|
272
116
|
{
|
|
273
117
|
key: "visible",
|
|
274
|
-
name:
|
|
118
|
+
name: s(a.SETTINGS_COLUMN_VISIBLE),
|
|
275
119
|
width: 80,
|
|
276
120
|
type: "boolean",
|
|
277
121
|
renderCell: E,
|
|
@@ -279,190 +123,190 @@ const f = (d) => {
|
|
|
279
123
|
},
|
|
280
124
|
{
|
|
281
125
|
key: "showTitle",
|
|
282
|
-
name:
|
|
126
|
+
name: s(a.SETTINGS_COLUMN_SHOW_TITLE),
|
|
283
127
|
width: 100,
|
|
284
128
|
type: "boolean",
|
|
285
129
|
renderCell: E,
|
|
286
130
|
...f("center")
|
|
287
131
|
}
|
|
288
132
|
],
|
|
289
|
-
[
|
|
133
|
+
[s]
|
|
290
134
|
), V = () => {
|
|
291
|
-
|
|
135
|
+
m(o.map((e) => ({ ...e, visible: !0 })));
|
|
292
136
|
}, U = () => {
|
|
293
|
-
|
|
137
|
+
m(o.map((e) => ({ ...e, visible: !1 })));
|
|
294
138
|
}, F = () => {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
...
|
|
298
|
-
visible:
|
|
299
|
-
showTitle:
|
|
300
|
-
index:
|
|
301
|
-
})).sort((
|
|
139
|
+
m(
|
|
140
|
+
o.map((e) => ({
|
|
141
|
+
...e,
|
|
142
|
+
visible: e.originalVisible,
|
|
143
|
+
showTitle: e.originalShowTitle,
|
|
144
|
+
index: e.originalIndex
|
|
145
|
+
})).sort((e, t) => e.index - t.index)
|
|
302
146
|
);
|
|
303
147
|
};
|
|
304
148
|
J(() => {
|
|
305
|
-
M === !1 &&
|
|
149
|
+
M === !1 && m(R(u, k)), G(!1);
|
|
306
150
|
}, [u]);
|
|
307
|
-
const
|
|
308
|
-
let
|
|
151
|
+
const i = _(() => {
|
|
152
|
+
let e = -1;
|
|
309
153
|
if (w.size !== 1)
|
|
310
|
-
return
|
|
311
|
-
const
|
|
312
|
-
return
|
|
313
|
-
}, [
|
|
314
|
-
if (
|
|
154
|
+
return e;
|
|
155
|
+
const l = w.entries().next().value?.[1];
|
|
156
|
+
return e = o.findIndex((C) => C.key === l), e;
|
|
157
|
+
}, [o, w]), B = () => {
|
|
158
|
+
if (i === -1)
|
|
315
159
|
return -1;
|
|
316
|
-
const
|
|
317
|
-
|
|
160
|
+
const e = [...o];
|
|
161
|
+
e.splice(i, 1), e.splice(0, 0, o[i]), n.current?.selectCell({ idx: 0, rowIdx: 0 }), m(e);
|
|
318
162
|
}, W = () => {
|
|
319
|
-
if (
|
|
163
|
+
if (i === -1)
|
|
320
164
|
return -1;
|
|
321
|
-
const
|
|
322
|
-
|
|
323
|
-
}, y = (
|
|
324
|
-
if (
|
|
165
|
+
const e = [...o];
|
|
166
|
+
e.splice(i, 1), e.splice(e.length, 0, o[i]), n.current?.selectCell({ idx: 0, rowIdx: e.length - 1 }), m(e);
|
|
167
|
+
}, y = (e) => {
|
|
168
|
+
if (i === -1)
|
|
325
169
|
return -1;
|
|
326
|
-
const
|
|
327
|
-
|
|
170
|
+
const t = [...o], l = t[i];
|
|
171
|
+
t.splice(i, 1), t.splice(i + e, 0, l), n.current?.selectCell({
|
|
328
172
|
idx: 0,
|
|
329
|
-
rowIdx:
|
|
330
|
-
}),
|
|
331
|
-
}, z = (
|
|
332
|
-
const
|
|
333
|
-
if (
|
|
173
|
+
rowIdx: i + e
|
|
174
|
+
}), m(t);
|
|
175
|
+
}, z = (e) => {
|
|
176
|
+
const t = o.findIndex((l) => l.key === e);
|
|
177
|
+
if (t > -1)
|
|
334
178
|
return {
|
|
335
|
-
visible:
|
|
336
|
-
showTitle:
|
|
179
|
+
visible: o[t].visible,
|
|
180
|
+
showTitle: o[t].showTitle
|
|
337
181
|
};
|
|
338
|
-
}, g = (
|
|
339
|
-
const
|
|
340
|
-
return
|
|
341
|
-
(
|
|
182
|
+
}, g = (e) => {
|
|
183
|
+
const t = o.findIndex((l) => l.key === e.key);
|
|
184
|
+
return t > -1 ? t : u.findIndex(
|
|
185
|
+
(l) => l.key === e.key
|
|
342
186
|
);
|
|
343
187
|
}, H = () => {
|
|
344
|
-
const
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
347
|
-
const C = z(
|
|
348
|
-
C && (
|
|
349
|
-
const v =
|
|
350
|
-
(Y) => Y.key ===
|
|
188
|
+
const e = u.map((t) => {
|
|
189
|
+
const l = { ...t };
|
|
190
|
+
if (!t.hidden) {
|
|
191
|
+
const C = z(t.key);
|
|
192
|
+
C && (l.visible = C.visible, l.showTitle = C.showTitle);
|
|
193
|
+
const v = o.findIndex(
|
|
194
|
+
(Y) => Y.key === t.key
|
|
351
195
|
);
|
|
352
|
-
v > -1 && (
|
|
196
|
+
v > -1 && (l.index = v);
|
|
353
197
|
}
|
|
354
|
-
return
|
|
355
|
-
}).sort((
|
|
356
|
-
N(
|
|
198
|
+
return l;
|
|
199
|
+
}).sort((t, l) => g(t) - g(l));
|
|
200
|
+
N(e), S();
|
|
357
201
|
}, j = () => {
|
|
358
|
-
}, K = (
|
|
359
|
-
|
|
360
|
-
}, P = ({ row:
|
|
361
|
-
if (w.has(
|
|
202
|
+
}, K = (e) => {
|
|
203
|
+
m(e);
|
|
204
|
+
}, P = ({ row: e }) => {
|
|
205
|
+
if (w.has(e.key))
|
|
362
206
|
return;
|
|
363
|
-
const
|
|
364
|
-
L(
|
|
207
|
+
const t = /* @__PURE__ */ new Set([e.key]);
|
|
208
|
+
L(t);
|
|
365
209
|
};
|
|
366
|
-
return /* @__PURE__ */ h(
|
|
367
|
-
/* @__PURE__ */ h(
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
|
|
210
|
+
return /* @__PURE__ */ h(Z, { ownerState: {}, ref: b, children: [
|
|
211
|
+
/* @__PURE__ */ h(ee, { ownerState: {}, children: [
|
|
212
|
+
/* @__PURE__ */ r(te, { ownerState: { size: T }, children: s(a.SETTINGS_SEL_COLUMNS) }),
|
|
213
|
+
/* @__PURE__ */ r(
|
|
214
|
+
oe,
|
|
371
215
|
{
|
|
372
216
|
className: A?.tableWrapperDataGrid,
|
|
373
217
|
ownerState: { size: T },
|
|
374
|
-
children: /* @__PURE__ */
|
|
218
|
+
children: /* @__PURE__ */ r(
|
|
375
219
|
X,
|
|
376
220
|
{
|
|
377
|
-
ref:
|
|
221
|
+
ref: n,
|
|
378
222
|
rowHeight: O,
|
|
379
223
|
columns: D,
|
|
380
|
-
rows:
|
|
224
|
+
rows: o,
|
|
381
225
|
onRowsChange: K,
|
|
382
226
|
selectedRows: w,
|
|
383
227
|
onSelectedRowsChange: j,
|
|
384
228
|
onCellClick: P,
|
|
385
|
-
rowKeyGetter: (
|
|
229
|
+
rowKeyGetter: (e) => e.key,
|
|
386
230
|
defaultColumnOptions: { resizable: !0, sortable: !0 }
|
|
387
231
|
}
|
|
388
232
|
)
|
|
389
233
|
}
|
|
390
234
|
)
|
|
391
235
|
] }),
|
|
392
|
-
/* @__PURE__ */ h(
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
|
|
236
|
+
/* @__PURE__ */ h(ie, { ownerState: {}, children: [
|
|
237
|
+
/* @__PURE__ */ r(
|
|
238
|
+
p,
|
|
395
239
|
{
|
|
396
|
-
tooltip:
|
|
240
|
+
tooltip: s(a.SETTINGS_MOVE_FIRST),
|
|
397
241
|
onClick: B,
|
|
398
242
|
"aria-label": "move first place",
|
|
399
|
-
disabled:
|
|
400
|
-
icon: /* @__PURE__ */
|
|
243
|
+
disabled: i < 1,
|
|
244
|
+
icon: /* @__PURE__ */ r(re, {})
|
|
401
245
|
}
|
|
402
246
|
),
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
|
|
247
|
+
/* @__PURE__ */ r(
|
|
248
|
+
p,
|
|
405
249
|
{
|
|
406
|
-
tooltip:
|
|
250
|
+
tooltip: s(a.SETTINGS_MOVE_UP),
|
|
407
251
|
onClick: () => y(-1),
|
|
408
252
|
"aria-label": "move up place",
|
|
409
|
-
disabled:
|
|
410
|
-
icon: /* @__PURE__ */
|
|
253
|
+
disabled: i < 1,
|
|
254
|
+
icon: /* @__PURE__ */ r(ne, {})
|
|
411
255
|
}
|
|
412
256
|
),
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
|
|
257
|
+
/* @__PURE__ */ r(
|
|
258
|
+
p,
|
|
415
259
|
{
|
|
416
|
-
tooltip:
|
|
260
|
+
tooltip: s(a.SETTINGS_MOVE_LAST),
|
|
417
261
|
onClick: W,
|
|
418
262
|
"aria-label": "move last place",
|
|
419
|
-
disabled:
|
|
420
|
-
icon: /* @__PURE__ */
|
|
263
|
+
disabled: i === o.length - 1 || i === -1,
|
|
264
|
+
icon: /* @__PURE__ */ r(le, {})
|
|
421
265
|
}
|
|
422
266
|
),
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
|
|
267
|
+
/* @__PURE__ */ r(
|
|
268
|
+
p,
|
|
425
269
|
{
|
|
426
|
-
tooltip:
|
|
270
|
+
tooltip: s(a.SETTINGS_MOVE_DOWN),
|
|
427
271
|
onClick: () => y(1),
|
|
428
272
|
"aria-label": "move down place",
|
|
429
|
-
disabled:
|
|
430
|
-
icon: /* @__PURE__ */
|
|
273
|
+
disabled: i === o.length - 1 || i === -1,
|
|
274
|
+
icon: /* @__PURE__ */ r(se, {})
|
|
431
275
|
}
|
|
432
276
|
),
|
|
433
|
-
/* @__PURE__ */
|
|
434
|
-
|
|
277
|
+
/* @__PURE__ */ r(
|
|
278
|
+
p,
|
|
435
279
|
{
|
|
436
|
-
tooltip:
|
|
280
|
+
tooltip: s(a.SETTINGS_VISIBLE_ALL),
|
|
437
281
|
onClick: V,
|
|
438
282
|
"aria-label": "check visible all",
|
|
439
|
-
icon: /* @__PURE__ */
|
|
283
|
+
icon: /* @__PURE__ */ r(ae, {})
|
|
440
284
|
}
|
|
441
285
|
),
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
|
|
286
|
+
/* @__PURE__ */ r(
|
|
287
|
+
p,
|
|
444
288
|
{
|
|
445
|
-
tooltip:
|
|
289
|
+
tooltip: s(a.SETTINGS_NO_VISIBLE_ALL),
|
|
446
290
|
onClick: U,
|
|
447
291
|
"aria-label": "un check all",
|
|
448
|
-
icon: /* @__PURE__ */
|
|
292
|
+
icon: /* @__PURE__ */ r(me, {})
|
|
449
293
|
}
|
|
450
294
|
),
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
|
|
295
|
+
/* @__PURE__ */ r(
|
|
296
|
+
p,
|
|
453
297
|
{
|
|
454
|
-
tooltip:
|
|
298
|
+
tooltip: s(a.SETTINGS_RESTORE),
|
|
455
299
|
onClick: F,
|
|
456
300
|
"aria-label": "Restore columns",
|
|
457
|
-
icon: /* @__PURE__ */
|
|
301
|
+
icon: /* @__PURE__ */ r(pe, {})
|
|
458
302
|
}
|
|
459
303
|
)
|
|
460
304
|
] })
|
|
461
305
|
] });
|
|
462
306
|
}
|
|
463
307
|
);
|
|
464
|
-
|
|
308
|
+
de.displayName = "ColumnsConfig";
|
|
465
309
|
export {
|
|
466
|
-
|
|
310
|
+
de as ColumnsConfig,
|
|
467
311
|
f as getAlignClass
|
|
468
312
|
};
|