@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.
Files changed (93) hide show
  1. package/@types/augmentations.d.ts +1 -31
  2. package/@types/augmentations.d.ts.map +1 -1
  3. package/components/DynamicFilter/store/DynamicFilterContext.js +66 -281
  4. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +3 -2
  5. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +3 -2
  6. package/components/DynamicSort/dictionary.js +7 -6
  7. package/components/DynamicSort/store/DynamicSortContext.js +47 -263
  8. package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
  9. package/components/MFIsolationApp/MFIsolationApp.js +18 -17
  10. package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.d.ts.map +1 -1
  11. package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +10 -9
  12. package/components/MFIsolationAppStorybook/index.d.ts +3 -0
  13. package/components/MFIsolationAppStorybook/index.d.ts.map +1 -1
  14. package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/MFAppStorybook.d.ts +6 -0
  15. package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/MFAppStorybook.d.ts.map +1 -0
  16. package/components/MFIsolationAppStorybook/subcomponents/{MFAuthAppStorybook/MFAuthAppStorybook.js → MFAppStorybook/MFAppStorybook.js} +1 -1
  17. package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/index.d.ts +2 -0
  18. package/components/MFIsolationAppStorybook/subcomponents/{MFAuthAppStorybook → MFAppStorybook}/index.d.ts.map +1 -1
  19. package/components/MFIsolationAppStorybook/subcomponents/MFAppStorybook/types.d.ts.map +1 -0
  20. package/components/NoItemPrivileges/NoItemPrivileges.js +12 -228
  21. package/components/ObjectLogs/hooks/useObjectLogsColumns.js +19 -156
  22. package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +8 -145
  23. package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +8 -145
  24. package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +12 -192
  25. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +1 -0
  26. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +1 -0
  27. package/components/areas/components/AreasViewer/AreasViewer.js +8 -187
  28. package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js +2 -166
  29. package/components/datagrids/formatters/ColumnBooleanFormatter/formatter.js +2 -166
  30. package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.js +2 -167
  31. package/components/datagrids/formatters/ColumnColorFormatter/formatter.js +2 -167
  32. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.js +2 -166
  33. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/formatter.js +2 -166
  34. package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.js +2 -166
  35. package/components/datagrids/formatters/ColumnDateFormatter/formatter.js +2 -166
  36. package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.js +2 -166
  37. package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.js +7 -170
  38. package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.js +2 -166
  39. package/components/datagrids/formatters/ColumnUncertaintyFormatter/formatter.js +2 -166
  40. package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +36 -216
  41. package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +36 -216
  42. package/components/datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +122 -278
  43. package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +127 -284
  44. package/components/extended/index.d.ts +1 -0
  45. package/components/extended/index.d.ts.map +1 -1
  46. package/components/extended/rsuite/DateRangePicker/DateRangePicker.d.ts +38 -0
  47. package/components/extended/rsuite/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  48. package/components/extended/rsuite/DateRangePicker/DateRangePicker.js +67 -0
  49. package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.d.ts +7 -0
  50. package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.d.ts.map +1 -0
  51. package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.js +83 -0
  52. package/components/extended/rsuite/DateRangePicker/constants.d.ts +13 -0
  53. package/components/extended/rsuite/DateRangePicker/constants.d.ts.map +1 -0
  54. package/components/extended/rsuite/DateRangePicker/constants.js +10 -0
  55. package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/types.d.ts +12 -0
  56. package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/types.d.ts.map +1 -0
  57. package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/useDateRangePicker.d.ts +10 -0
  58. package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/useDateRangePicker.d.ts.map +1 -0
  59. package/components/extended/rsuite/DateRangePicker/hooks/useDateRangePicker/useDateRangePicker.js +24 -0
  60. package/components/extended/rsuite/DateRangePicker/index.d.ts +3 -0
  61. package/components/extended/rsuite/DateRangePicker/index.d.ts.map +1 -0
  62. package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerEnum.d.ts +5 -0
  63. package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerEnum.d.ts.map +1 -0
  64. package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerEnum.js +4 -0
  65. package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerSlots.d.ts +15 -0
  66. package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerSlots.d.ts.map +1 -0
  67. package/components/extended/rsuite/DateRangePicker/slots/DateRangePickerSlots.js +18 -0
  68. package/components/extended/rsuite/DateRangePicker/slots/index.d.ts +4 -0
  69. package/components/extended/rsuite/DateRangePicker/slots/index.d.ts.map +1 -0
  70. package/components/extended/rsuite/DateRangePicker/types.d.ts +83 -0
  71. package/components/extended/rsuite/DateRangePicker/types.d.ts.map +1 -0
  72. package/components/extended/rsuite/index.d.ts +2 -0
  73. package/components/extended/rsuite/index.d.ts.map +1 -0
  74. package/components/formatters/TagsFormatter/TagsFormatter.js +2 -182
  75. package/components/hook-form/RHFDateRangePicker/RHFDateRangePicker.d.ts +29 -0
  76. package/components/hook-form/RHFDateRangePicker/RHFDateRangePicker.d.ts.map +1 -0
  77. package/components/hook-form/RHFDateRangePicker/RHFDateRangePicker.js +6 -0
  78. package/components/hook-form/RHFDateRangePicker/index.d.ts +3 -0
  79. package/components/hook-form/RHFDateRangePicker/index.d.ts.map +1 -0
  80. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.js +3 -2
  81. package/components/hook-form/index.d.ts +1 -0
  82. package/components/hook-form/index.d.ts.map +1 -1
  83. package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +2 -1
  84. package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts.map +1 -1
  85. package/hooks/useDataGridPersistence/useDataGridPersistence.js +33 -254
  86. package/index.js +333 -327
  87. package/package.json +13 -12
  88. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.d.ts +0 -6
  89. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.d.ts.map +0 -1
  90. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.d.ts +0 -2
  91. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/types.d.ts.map +0 -1
  92. package/mockServiceWorker.js +0 -349
  93. /package/components/MFIsolationAppStorybook/subcomponents/{MFAuthAppStorybook → MFAppStorybook}/types.d.ts +0 -0
@@ -1,8 +1,8 @@
1
- import { jsxs as h, jsx as e } from "@emotion/react/jsx-runtime";
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 a } from "../../../../../../../extended/mui/IconButton/IconButton.js";
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((m) => !m.hidden).map(
226
- (m) => ({
227
- key: m.key,
228
- name: c?.find((S) => S.key === m.key)?.name ?? "",
229
- visible: m.visible === void 0 ? !0 : m.visible,
230
- showTitle: m.showTitle === void 0 ? !0 : m.showTitle,
231
- originalIndex: m.originalIndex,
232
- originalVisible: m.originalVisible,
233
- originalShowTitle: m.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
- }, dt = $(
87
+ }, de = $(
244
88
  (d, c) => {
245
- const m = x(null), {
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: n } = Q(), [M, G] = I(!0), [i, s] = I(
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: n(l.SETTINGS_COLUMN_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: n(l.SETTINGS_COLUMN_VISIBLE),
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: n(l.SETTINGS_COLUMN_SHOW_TITLE),
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
- [n]
133
+ [s]
290
134
  ), V = () => {
291
- s(i.map((t) => ({ ...t, visible: !0 })));
135
+ m(o.map((e) => ({ ...e, visible: !0 })));
292
136
  }, U = () => {
293
- s(i.map((t) => ({ ...t, visible: !1 })));
137
+ m(o.map((e) => ({ ...e, visible: !1 })));
294
138
  }, F = () => {
295
- s(
296
- i.map((t) => ({
297
- ...t,
298
- visible: t.originalVisible,
299
- showTitle: t.originalShowTitle,
300
- index: t.originalIndex
301
- })).sort((t, o) => t.index - o.index)
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 && s(R(u, k)), G(!1);
149
+ M === !1 && m(R(u, k)), G(!1);
306
150
  }, [u]);
307
- const r = _(() => {
308
- let t = -1;
151
+ const i = _(() => {
152
+ let e = -1;
309
153
  if (w.size !== 1)
310
- return t;
311
- const p = w.entries().next().value?.[1];
312
- return t = i.findIndex((C) => C.key === p), t;
313
- }, [i, w]), B = () => {
314
- if (r === -1)
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 t = [...i];
317
- t.splice(r, 1), t.splice(0, 0, i[r]), m.current?.selectCell({ idx: 0, rowIdx: 0 }), s(t);
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 (r === -1)
163
+ if (i === -1)
320
164
  return -1;
321
- const t = [...i];
322
- t.splice(r, 1), t.splice(t.length, 0, i[r]), m.current?.selectCell({ idx: 0, rowIdx: t.length - 1 }), s(t);
323
- }, y = (t) => {
324
- if (r === -1)
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 o = [...i], p = o[r];
327
- o.splice(r, 1), o.splice(r + t, 0, p), m.current?.selectCell({
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: r + t
330
- }), s(o);
331
- }, z = (t) => {
332
- const o = i.findIndex((p) => p.key === t);
333
- if (o > -1)
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: i[o].visible,
336
- showTitle: i[o].showTitle
179
+ visible: o[t].visible,
180
+ showTitle: o[t].showTitle
337
181
  };
338
- }, g = (t) => {
339
- const o = i.findIndex((p) => p.key === t.key);
340
- return o > -1 ? o : u.findIndex(
341
- (p) => p.key === t.key
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 t = u.map((o) => {
345
- const p = { ...o };
346
- if (!o.hidden) {
347
- const C = z(o.key);
348
- C && (p.visible = C.visible, p.showTitle = C.showTitle);
349
- const v = i.findIndex(
350
- (Y) => Y.key === o.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 && (p.index = v);
196
+ v > -1 && (l.index = v);
353
197
  }
354
- return p;
355
- }).sort((o, p) => g(o) - g(p));
356
- N(t), S();
198
+ return l;
199
+ }).sort((t, l) => g(t) - g(l));
200
+ N(e), S();
357
201
  }, j = () => {
358
- }, K = (t) => {
359
- s(t);
360
- }, P = ({ row: t }) => {
361
- if (w.has(t.key))
202
+ }, K = (e) => {
203
+ m(e);
204
+ }, P = ({ row: e }) => {
205
+ if (w.has(e.key))
362
206
  return;
363
- const o = /* @__PURE__ */ new Set([t.key]);
364
- L(o);
207
+ const t = /* @__PURE__ */ new Set([e.key]);
208
+ L(t);
365
209
  };
366
- return /* @__PURE__ */ h(pt, { ownerState: {}, ref: b, children: [
367
- /* @__PURE__ */ h(nt, { ownerState: {}, children: [
368
- /* @__PURE__ */ e(lt, { ownerState: { size: T }, children: n(l.SETTINGS_SEL_COLUMNS) }),
369
- /* @__PURE__ */ e(
370
- st,
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__ */ e(
218
+ children: /* @__PURE__ */ r(
375
219
  X,
376
220
  {
377
- ref: m,
221
+ ref: n,
378
222
  rowHeight: O,
379
223
  columns: D,
380
- rows: i,
224
+ rows: o,
381
225
  onRowsChange: K,
382
226
  selectedRows: w,
383
227
  onSelectedRowsChange: j,
384
228
  onCellClick: P,
385
- rowKeyGetter: (t) => t.key,
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(at, { ownerState: {}, children: [
393
- /* @__PURE__ */ e(
394
- a,
236
+ /* @__PURE__ */ h(ie, { ownerState: {}, children: [
237
+ /* @__PURE__ */ r(
238
+ p,
395
239
  {
396
- tooltip: n(l.SETTINGS_MOVE_FIRST),
240
+ tooltip: s(a.SETTINGS_MOVE_FIRST),
397
241
  onClick: B,
398
242
  "aria-label": "move first place",
399
- disabled: r < 1,
400
- icon: /* @__PURE__ */ e(Z, {})
243
+ disabled: i < 1,
244
+ icon: /* @__PURE__ */ r(re, {})
401
245
  }
402
246
  ),
403
- /* @__PURE__ */ e(
404
- a,
247
+ /* @__PURE__ */ r(
248
+ p,
405
249
  {
406
- tooltip: n(l.SETTINGS_MOVE_UP),
250
+ tooltip: s(a.SETTINGS_MOVE_UP),
407
251
  onClick: () => y(-1),
408
252
  "aria-label": "move up place",
409
- disabled: r < 1,
410
- icon: /* @__PURE__ */ e(tt, {})
253
+ disabled: i < 1,
254
+ icon: /* @__PURE__ */ r(ne, {})
411
255
  }
412
256
  ),
413
- /* @__PURE__ */ e(
414
- a,
257
+ /* @__PURE__ */ r(
258
+ p,
415
259
  {
416
- tooltip: n(l.SETTINGS_MOVE_LAST),
260
+ tooltip: s(a.SETTINGS_MOVE_LAST),
417
261
  onClick: W,
418
262
  "aria-label": "move last place",
419
- disabled: r === i.length - 1 || r === -1,
420
- icon: /* @__PURE__ */ e(ot, {})
263
+ disabled: i === o.length - 1 || i === -1,
264
+ icon: /* @__PURE__ */ r(le, {})
421
265
  }
422
266
  ),
423
- /* @__PURE__ */ e(
424
- a,
267
+ /* @__PURE__ */ r(
268
+ p,
425
269
  {
426
- tooltip: n(l.SETTINGS_MOVE_DOWN),
270
+ tooltip: s(a.SETTINGS_MOVE_DOWN),
427
271
  onClick: () => y(1),
428
272
  "aria-label": "move down place",
429
- disabled: r === i.length - 1 || r === -1,
430
- icon: /* @__PURE__ */ e(it, {})
273
+ disabled: i === o.length - 1 || i === -1,
274
+ icon: /* @__PURE__ */ r(se, {})
431
275
  }
432
276
  ),
433
- /* @__PURE__ */ e(
434
- a,
277
+ /* @__PURE__ */ r(
278
+ p,
435
279
  {
436
- tooltip: n(l.SETTINGS_VISIBLE_ALL),
280
+ tooltip: s(a.SETTINGS_VISIBLE_ALL),
437
281
  onClick: V,
438
282
  "aria-label": "check visible all",
439
- icon: /* @__PURE__ */ e(rt, {})
283
+ icon: /* @__PURE__ */ r(ae, {})
440
284
  }
441
285
  ),
442
- /* @__PURE__ */ e(
443
- a,
286
+ /* @__PURE__ */ r(
287
+ p,
444
288
  {
445
- tooltip: n(l.SETTINGS_NO_VISIBLE_ALL),
289
+ tooltip: s(a.SETTINGS_NO_VISIBLE_ALL),
446
290
  onClick: U,
447
291
  "aria-label": "un check all",
448
- icon: /* @__PURE__ */ e(et, {})
292
+ icon: /* @__PURE__ */ r(me, {})
449
293
  }
450
294
  ),
451
- /* @__PURE__ */ e(
452
- a,
295
+ /* @__PURE__ */ r(
296
+ p,
453
297
  {
454
- tooltip: n(l.SETTINGS_RESTORE),
298
+ tooltip: s(a.SETTINGS_RESTORE),
455
299
  onClick: F,
456
300
  "aria-label": "Restore columns",
457
- icon: /* @__PURE__ */ e(mt, {})
301
+ icon: /* @__PURE__ */ r(pe, {})
458
302
  }
459
303
  )
460
304
  ] })
461
305
  ] });
462
306
  }
463
307
  );
464
- dt.displayName = "ColumnsConfig";
308
+ de.displayName = "ColumnsConfig";
465
309
  export {
466
- dt as ColumnsConfig,
310
+ de as ColumnsConfig,
467
311
  f as getAlignClass
468
312
  };