@m4l/components 9.4.29-beta.0 → 9.4.29-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/AccountPopover.d.ts.map +1 -1
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +6 -6
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/BaseModule/BaseModule.js +22 -31
- package/components/Card/constants.d.ts +1 -1
- package/components/CheckableList/slots/styled.d.ts +9 -9
- package/components/Chip/slots/ChipSlots.d.ts +2 -2
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormIntro/types.d.ts +0 -1
- package/components/CommonActions/components/ActionFormIntro/types.d.ts.map +1 -1
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
- package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +95 -92
- package/components/DragResizeWindowRND/types.d.ts +12 -0
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicFilter/store/DynamicFilterContext.js +4 -5
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/DataTypeComponent.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/DataTypeComponent.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +5 -5
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/DynamicSort/store/DynamicSortContext.js +4 -5
- package/components/DynamicSort/subcomponents/FieldTypes/DataTypeComponent.d.ts +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/DataTypeComponent.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +5 -5
- package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
- package/components/GridLayout/subcomponents/GridItem/index.js +33 -33
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +3 -3
- package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
- package/components/Label/slots/LabelSlots.d.ts +2 -2
- package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +49 -42
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
- package/components/MenuActions/MenuActions.js +29 -29
- package/components/MenuActions/constants.d.ts +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
- package/components/MswExample/MswExample.d.ts +5 -0
- package/components/MswExample/MswExample.d.ts.map +1 -0
- package/components/MswExample/index.d.ts +2 -0
- package/components/MswExample/index.d.ts.map +1 -0
- package/components/NoItemPrivileges/NoItemPrivileges.js +4 -5
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/hooks/useObjectLogsColumns.js +3 -3
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +6 -6
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +6 -6
- package/components/Pager/slots/PagerSlots.d.ts +3 -3
- package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
- package/components/PrintingSystem/utils/FactoryRender/index.d.ts.map +1 -1
- package/components/PrintingSystem/utils/FactoryRender/index.js +35 -33
- package/components/PrintingSystem/utils/PageRender/index.js +19 -19
- package/components/PropertyValue/PropertyValue.js +6 -6
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/Stepper/slots/StepperSlot.d.ts +4 -4
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +4 -5
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js +6 -21
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js +6 -11
- package/components/TabsNavigator/TabsNavigator.js +19 -19
- package/components/TabsNavigator/TabsNavigator.styles.js +1 -1
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
- package/components/TabsNavigator/subcomponents/TabNavigatorClusterComponent/TabNavigatorClusterComponent.js +13 -13
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
- package/components/WindowBase/WindowBase.styles.js +11 -11
- package/components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js +6 -6
- package/components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js +7 -7
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +2 -2
- package/components/WindowBase/subcomponents/MicroFrontend/MicroFrontend.js +4 -4
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +5 -5
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +3 -3
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +7 -8
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +7 -7
- package/components/areas/components/AreasViewer/AreasViewer.js +4 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +22 -22
- package/components/datagrids/contexts/DataGridContext/DataGridContext.d.ts.map +1 -1
- package/components/datagrids/contexts/DataGridContext/DataGridContext.js +15 -16
- package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js +8 -8
- package/components/datagrids/formatters/ColumnBooleanFormatter/formatter.js +2 -2
- package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.js +2 -2
- package/components/datagrids/formatters/ColumnColorFormatter/formatter.js +2 -2
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.js +10 -10
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/formatter.js +5 -5
- package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.js +2 -2
- package/components/datagrids/formatters/ColumnDateFormatter/formatter.js +4 -4
- package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.js +2 -2
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.js +2 -2
- package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.js +10 -10
- package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.js +8 -8
- package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.js +6 -6
- package/components/datagrids/formatters/ColumnPointsFormatter/formatter.js +5 -5
- package/components/datagrids/formatters/ColumnPriceFormatter/formatter.js +5 -5
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.js +2 -2
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/formatter.js +2 -2
- package/components/datagrids/hooks/shared/useDataGrid/useDataGrid.d.ts +1 -1
- package/components/datagrids/hooks/shared/useDataGrid/useDataGrid.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridSlot.d.ts +5 -5
- package/components/datagrids/subcomponents/ControlNavigate/subcomponents/RowsCount/RowsCount.js +7 -10
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.js +11 -13
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Density/Density.js +6 -8
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Filter/Filter.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Filter/Filter.js +9 -11
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +2 -4
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +12 -14
- package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +3 -4
- package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +4 -5
- package/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.js +24 -26
- package/components/datagrids/views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +2 -3
- package/components/datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +2 -2
- package/components/datagrids/views/TableView/TableView.d.ts.map +1 -1
- package/components/datagrids/views/TableView/TableView.js +20 -21
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js +8 -11
- package/components/datagrids/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +7 -8
- package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +2 -2
- package/components/datagrids/views/adapters/RenderContent/RenderContent.js +5 -8
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +3 -3
- package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +3 -3
- package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.js +32 -34
- package/components/extended/mui/Autocomplete/Autocomplete.styles.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.styles.js +10 -3
- package/components/extended/mui/Autocomplete/constants.d.ts +2 -1
- package/components/extended/mui/Autocomplete/constants.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useMultipleChips.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useMultipleChips.js +17 -17
- package/components/extended/mui/Autocomplete/slots/AutocompleteEnum.d.ts +1 -0
- package/components/extended/mui/Autocomplete/slots/AutocompleteEnum.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteEnum.js +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +8 -5
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.js +56 -52
- package/components/extended/mui/Autocomplete/subcomponents/PopperComponent/PopperComponent.js +5 -5
- package/components/extended/mui/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.d.ts +1 -1
- package/components/extended/mui/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.d.ts.map +1 -1
- package/components/extended/mui/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/extended/mui/Button/slots/ButtonSlots.d.ts +2 -2
- package/components/extended/mui/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
- package/components/extended/mui/DatePicker/constants.d.ts +1 -1
- package/components/extended/mui/DatePicker/hooks/useDatePicker/useDatePicker.js +9 -9
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +2 -2
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +3 -3
- package/components/extended/mui/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/extended/mui/IconButton/IconButton.d.ts.map +1 -1
- package/components/extended/mui/IconButton/IconButton.js +74 -74
- package/components/extended/mui/IconButton/constants.d.ts +1 -1
- package/components/extended/mui/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/extended/mui/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/extended/mui/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +12 -12
- package/components/extended/mui/MenuItem/slots/MenuItemSlots.d.ts +2 -2
- package/components/extended/mui/NavLink/slots/NavLinkSlots.d.ts +1 -1
- package/components/extended/mui/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/extended/mui/Radio/slots/styled.d.ts +1 -1
- package/components/extended/mui/Select/Select.js +31 -31
- package/components/extended/mui/Select/constants.d.ts +1 -1
- package/components/extended/mui/Select/slots/SelectSlots.d.ts +5 -5
- package/components/extended/mui/Tab/Slots/TabSlots.d.ts +2 -2
- package/components/extended/mui/Tabs/Tabs.js +4 -4
- package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/extended/mui/TextField/TextField.js +12 -12
- package/components/extended/mui/TextField/constants.d.ts +1 -1
- package/components/extended/mui/TextField/slots/TextFieldSlots.d.ts +4 -4
- package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +2 -2
- package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/extended/mui/Typography/slots/typographySlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +5 -5
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
- package/components/formatters/ChipStatusFormatter/ChipStatusFormatter.js +20 -20
- package/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js +5 -5
- package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
- package/components/formatters/DateFormatter/DateFormatter.js +10 -10
- package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +8 -8
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
- package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +15 -15
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
- package/components/formatters/PointsFormatter/PointsFormatter.js +11 -11
- package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
- package/components/formatters/PriceFormatter/PriceFormatter.js +4 -4
- package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
- package/components/formatters/TagsFormatter/TagsFormatter.js +4 -5
- package/components/formatters/TagsFormatter/helpers/renderMultipleTag.d.ts.map +1 -1
- package/components/formatters/TagsFormatter/helpers/renderMultipleTag.js +10 -15
- package/components/formatters/TagsFormatter/helpers/renderTag.d.ts.map +1 -1
- package/components/formatters/TagsFormatter/helpers/renderTag.js +6 -6
- package/components/formatters/UncertaintyFormatter/UncertaintyFormatter.js +5 -5
- package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +2 -2
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js +4 -4
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.d.ts.map +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +61 -59
- package/contexts/form.d.ts +10 -0
- package/contexts/form.d.ts.map +1 -0
- package/contexts/index.d.ts +0 -3
- package/contexts/index.d.ts.map +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +3 -3
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -6
- package/mockServiceWorker.js +349 -0
- package/package.json +3 -3
- package/_virtual/hoist-non-react-statics.cjs.js +0 -2
- package/_virtual/index.js +0 -4
- package/_virtual/react-is.development.js +0 -4
- package/_virtual/react-is.production.min.js +0 -4
|
@@ -3,40 +3,38 @@ import { Filter as h } from "./subcomponents/Filter/Filter.js";
|
|
|
3
3
|
import { Density as w } from "./subcomponents/Density/Density.js";
|
|
4
4
|
import { ViewMode as A } from "./subcomponents/ViewMode/ViewMode.js";
|
|
5
5
|
import { useDataGrid as y } from "../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../contexts/FilterContext/FilterContext.js";
|
|
8
6
|
import { useIsMobile as z } from "@m4l/graphics";
|
|
9
7
|
import { MobileMenuActions as C } from "./subcomponents/MobileMenuActions/MobileMenuActions.js";
|
|
10
8
|
import { ActionsRootStyled as M, ActionsConfigContainerStyled as b, ContainerLeftActionsStyled as x, ContainerRightActionsStyled as F } from "../../slots/DataGridSlot.js";
|
|
11
9
|
import { useComponentSize as R } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
12
10
|
import { Settings as j } from "../../views/TableView/subcomponents/Settings/Settings.js";
|
|
13
11
|
import { Settings as v } from "../../views/CardsView/subcomponents/Settings/Settings.js";
|
|
14
|
-
function
|
|
12
|
+
function J(d) {
|
|
15
13
|
const {
|
|
16
14
|
withSettings: l = !0,
|
|
17
15
|
settingsProps: s,
|
|
18
16
|
withLocalFilters: f,
|
|
19
|
-
leftActions:
|
|
17
|
+
leftActions: c,
|
|
20
18
|
rightActions: e,
|
|
21
19
|
withPager: a,
|
|
22
|
-
size:
|
|
20
|
+
size: u,
|
|
23
21
|
columns: r
|
|
24
|
-
} = d,
|
|
25
|
-
return /* @__PURE__ */ t(M, { ownerState: { size: o }, children:
|
|
26
|
-
|
|
22
|
+
} = d, S = z(), { rowHeights: p, viewMode: i, cardsViewConfig: m } = y(), { currentSize: o } = R(u);
|
|
23
|
+
return /* @__PURE__ */ t(M, { ownerState: { size: o }, children: S ? /* @__PURE__ */ n(g, { children: [
|
|
24
|
+
c,
|
|
27
25
|
/* @__PURE__ */ t(C, { columns: r }),
|
|
28
26
|
e
|
|
29
27
|
] }) : /* @__PURE__ */ n(b, { ownerState: { withPager: a }, children: [
|
|
30
28
|
/* @__PURE__ */ n(x, { ownerState: { size: o }, children: [
|
|
31
|
-
|
|
32
|
-
typeof
|
|
29
|
+
c,
|
|
30
|
+
typeof p != "number" && i !== "cards" && /* @__PURE__ */ t(w, {}),
|
|
33
31
|
f && /* @__PURE__ */ t(h, {}),
|
|
34
|
-
!l || i === "cards" &&
|
|
35
|
-
|
|
32
|
+
!l || i === "cards" && m?.customRender ? null : i === "cards" ? /* @__PURE__ */ t(v, { ...s, columns: r }) : /* @__PURE__ */ t(j, { ...s, columns: r }),
|
|
33
|
+
m !== void 0 && /* @__PURE__ */ t(A, {})
|
|
36
34
|
] }),
|
|
37
35
|
e && /* @__PURE__ */ t(F, { ownerState: { size: o }, children: e })
|
|
38
36
|
] }) });
|
|
39
37
|
}
|
|
40
38
|
export {
|
|
41
|
-
|
|
39
|
+
J as HeaderActions
|
|
42
40
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
1
|
+
import { jsx as t, Fragment as p } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMemo as m } from "react";
|
|
3
3
|
import { useModuleDictionary as d } from "@m4l/core";
|
|
4
4
|
import { MenuActions as f } from "../../../../../MenuActions/MenuActions.js";
|
|
5
5
|
import { useDataGrid as y } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
6
|
-
import "../../../../contexts/FilterContext/FilterContext.js";
|
|
7
|
-
import "@m4l/graphics";
|
|
8
6
|
import { DICTIONARY as n } from "../../../../dictionary.js";
|
|
9
7
|
import { LayoutDensityCompactOutlined as c, LayoutDensityStandardOutlined as l, LayoutDensityConfortableOutlined as s } from "@m4l/icons";
|
|
10
|
-
function
|
|
8
|
+
function h() {
|
|
11
9
|
const { rowHeights: i, currentRowHeightVariant: o, setRowHeightVariant: e } = y(), { getLabel: r } = d(), a = m(() => typeof i == "number" ? [] : [
|
|
12
10
|
{
|
|
13
11
|
type: "menuItem",
|
|
@@ -35,20 +33,20 @@ function N() {
|
|
|
35
33
|
o,
|
|
36
34
|
e,
|
|
37
35
|
r
|
|
38
|
-
]),
|
|
39
|
-
return a.length === 0 ? /* @__PURE__ */ t(
|
|
36
|
+
]), u = m(() => o === "compact" ? /* @__PURE__ */ t(c, {}) : o === "standard" ? /* @__PURE__ */ t(l, {}) : /* @__PURE__ */ t(s, {}), [o]);
|
|
37
|
+
return a.length === 0 ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(
|
|
40
38
|
f,
|
|
41
39
|
{
|
|
42
40
|
arrowType: "right-top",
|
|
43
41
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
44
42
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
45
43
|
menuActions: a,
|
|
46
|
-
icon:
|
|
44
|
+
icon: u,
|
|
47
45
|
toolTip: r(n.DENSITY_TOOLTIP),
|
|
48
46
|
paperProps: { style: { marginTop: "5px" } }
|
|
49
47
|
}
|
|
50
48
|
);
|
|
51
49
|
}
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
h as Density
|
|
54
52
|
};
|
package/components/datagrids/subcomponents/HeaderActions/subcomponents/Filter/Filter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/subcomponents/HeaderActions/subcomponents/Filter/Filter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/subcomponents/HeaderActions/subcomponents/Filter/Filter.tsx"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,qDA+BrB"}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEnvironment as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "react";
|
|
6
|
-
import "@m4l/graphics";
|
|
1
|
+
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEnvironment as m, useModuleDictionary as a } from "@m4l/core";
|
|
3
|
+
import { useFilters as p } from "../../../../hooks/shared/useFilters/useFilters.js";
|
|
4
|
+
import { useDataGrid as f } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
7
5
|
import { IconButton as I } from "../../../../../extended/mui/IconButton/IconButton.js";
|
|
8
6
|
import { pathIcons as u } from "../../../../icons.js";
|
|
9
7
|
import { DICTIONARY as i } from "../../../../dictionary.js";
|
|
10
|
-
function
|
|
11
|
-
const { activeFilters: t, setActiveFilters: r } =
|
|
8
|
+
function D() {
|
|
9
|
+
const { activeFilters: t, setActiveFilters: r } = p(), { host_static_assets: n, environment_assets: s } = m(), { getLabel: o } = a(), { externalFilterSettings: e } = f(), l = () => {
|
|
12
10
|
e ? e.onChange?.({
|
|
13
11
|
action: "openPopoverMenuFields"
|
|
14
12
|
}) : r(!t);
|
|
15
13
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ c(
|
|
17
15
|
I,
|
|
18
16
|
{
|
|
19
17
|
tooltip: o(t ? i.TOOLTIP_FILTER_HIDE : i.TOOLTIP_FILTER_SHOW),
|
|
20
|
-
onClick:
|
|
18
|
+
onClick: l,
|
|
21
19
|
"aria-label": "filter",
|
|
22
20
|
icon: `${n}/${s}/${u.filter}`
|
|
23
21
|
}
|
|
24
22
|
);
|
|
25
23
|
}
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
D as Filter
|
|
28
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileMenuActions.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobileMenuActions.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AASzC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO;IACvC,OAAO,EAAE,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;CACtC,qDAkEA,CAAC"}
|
|
@@ -2,14 +2,12 @@ import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import { useModuleDictionary as _, useEnvironment as y } from "@m4l/core";
|
|
3
3
|
import { useDataGrid as I } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
4
4
|
import { useFilters as M } from "../../../../hooks/shared/useFilters/useFilters.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "@m4l/graphics";
|
|
7
5
|
import { MenuActions as h } from "../../../../../MenuActions/MenuActions.js";
|
|
8
6
|
import { useModalSettings as C } from "../../../../views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
|
|
9
7
|
import { useModalSettings as S } from "../../../../views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
|
|
10
8
|
import { pathIcons as v } from "../../../../icons.js";
|
|
11
9
|
import { LayoutDensityCompactOutlined as O, LayoutDensityStandardOutlined as w, LayoutDensityConfortableOutlined as k, SettingsConfigOutlined as D, MenuMoreVerticalOutlined as A } from "@m4l/icons";
|
|
12
|
-
const
|
|
10
|
+
const E = (s) => {
|
|
13
11
|
const { columns: n } = s, { getLabel: t } = _(), { host_static_assets: l, environment_assets: c } = y(), { currentRowHeightVariant: e, setRowHeightVariant: i, size: a, viewMode: d } = I(), { activeFilters: r, setActiveFilters: m } = M(), u = C(a, n), p = S(a, n), g = d === "cards" ? p : u, f = () => {
|
|
14
12
|
m(!r);
|
|
15
13
|
}, b = [
|
|
@@ -60,5 +58,5 @@ const N = (s) => {
|
|
|
60
58
|
);
|
|
61
59
|
};
|
|
62
60
|
export {
|
|
63
|
-
|
|
61
|
+
E as MobileMenuActions
|
|
64
62
|
};
|
|
@@ -2,17 +2,15 @@ import { jsx as t, jsxs as r, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import { useState as y, useMemo as b, useCallback as d } from "react";
|
|
3
3
|
import { useModuleDictionary as I } from "@m4l/core";
|
|
4
4
|
import { useDataGrid as M } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
5
|
-
import "../../../../contexts/FilterContext/FilterContext.js";
|
|
6
|
-
import "@m4l/graphics";
|
|
7
5
|
import { IconButton as O } from "../../../../../extended/mui/IconButton/IconButton.js";
|
|
8
6
|
import { Popover as E } from "../../../../../extended/mui/Popover/Popover.js";
|
|
9
7
|
import { DICTIONARY as c } from "../../../../dictionary.js";
|
|
10
8
|
import { Icon as p } from "../../../../../Icon/Icon.js";
|
|
11
9
|
import { ContainerToggleCardsStyled as A, CardToggleButtonStyled as g, TextToggleCardButtonStyled as h } from "../../../../slots/DataGridSlot.js";
|
|
12
10
|
import { LayoutTableOutlined as C, LayoutCardOutlined as f } from "@m4l/icons";
|
|
13
|
-
function
|
|
14
|
-
const { viewMode:
|
|
15
|
-
viewMode:
|
|
11
|
+
function j() {
|
|
12
|
+
const { viewMode: e, onViewModeChange: s } = M(), { getLabel: n } = I(), [a, m] = y(null), o = {
|
|
13
|
+
viewMode: e
|
|
16
14
|
}, v = b(() => !!a, [a]), w = d(
|
|
17
15
|
(l) => {
|
|
18
16
|
m(l.currentTarget);
|
|
@@ -25,7 +23,7 @@ function F() {
|
|
|
25
23
|
s?.(l), i();
|
|
26
24
|
},
|
|
27
25
|
[s, i]
|
|
28
|
-
), S = b(() =>
|
|
26
|
+
), S = b(() => e === "table" ? /* @__PURE__ */ t(C, {}) : /* @__PURE__ */ t(f, {}), [e]);
|
|
29
27
|
return /* @__PURE__ */ r(T, { children: [
|
|
30
28
|
/* @__PURE__ */ t(
|
|
31
29
|
O,
|
|
@@ -50,11 +48,11 @@ function F() {
|
|
|
50
48
|
sx: { mt: 0.6 }
|
|
51
49
|
}
|
|
52
50
|
},
|
|
53
|
-
children: /* @__PURE__ */ r(A, { ownerState: { ownerState:
|
|
51
|
+
children: /* @__PURE__ */ r(A, { ownerState: { ownerState: o }, children: [
|
|
54
52
|
/* @__PURE__ */ r(
|
|
55
53
|
g,
|
|
56
54
|
{
|
|
57
|
-
ownerState: { ...
|
|
55
|
+
ownerState: { ...o, isActive: e === "table" },
|
|
58
56
|
variant: "outlined",
|
|
59
57
|
role: "button",
|
|
60
58
|
onClick: () => u("table"),
|
|
@@ -64,13 +62,13 @@ function F() {
|
|
|
64
62
|
p,
|
|
65
63
|
{
|
|
66
64
|
icon: /* @__PURE__ */ t(C, {}),
|
|
67
|
-
color:
|
|
65
|
+
color: e === "table" ? "primary.enabled" : "text.disabled"
|
|
68
66
|
}
|
|
69
67
|
),
|
|
70
68
|
/* @__PURE__ */ t(
|
|
71
69
|
h,
|
|
72
70
|
{
|
|
73
|
-
ownerState: { ...
|
|
71
|
+
ownerState: { ...o, isActive: e === "table" },
|
|
74
72
|
variant: "body",
|
|
75
73
|
children: n(c.VIEW_MODE_TABLE)
|
|
76
74
|
}
|
|
@@ -81,7 +79,7 @@ function F() {
|
|
|
81
79
|
/* @__PURE__ */ r(
|
|
82
80
|
g,
|
|
83
81
|
{
|
|
84
|
-
ownerState: { ...
|
|
82
|
+
ownerState: { ...o, isActive: e === "cards" },
|
|
85
83
|
variant: "outlined",
|
|
86
84
|
role: "button",
|
|
87
85
|
onClick: () => u("cards"),
|
|
@@ -91,13 +89,13 @@ function F() {
|
|
|
91
89
|
p,
|
|
92
90
|
{
|
|
93
91
|
icon: /* @__PURE__ */ t(f, {}),
|
|
94
|
-
color:
|
|
92
|
+
color: e === "cards" ? "primary.enabled" : "text.disabled"
|
|
95
93
|
}
|
|
96
94
|
),
|
|
97
95
|
/* @__PURE__ */ t(
|
|
98
96
|
h,
|
|
99
97
|
{
|
|
100
|
-
ownerState: { ...
|
|
98
|
+
ownerState: { ...o, isActive: e === "cards" },
|
|
101
99
|
variant: "body",
|
|
102
100
|
children: n(c.VIEW_MODE_CARDS)
|
|
103
101
|
}
|
|
@@ -111,5 +109,5 @@ function F() {
|
|
|
111
109
|
] });
|
|
112
110
|
}
|
|
113
111
|
export {
|
|
114
|
-
|
|
112
|
+
j as ViewMode
|
|
115
113
|
};
|
|
@@ -56,8 +56,6 @@ import "../../../../../areas/components/AreasAdmin/slots/AreasAdminSlots.js";
|
|
|
56
56
|
import "../../../../../extended/mui/Typography/Typography.js";
|
|
57
57
|
import "../../../../../MenuActions/MenuActions.js";
|
|
58
58
|
import "../../../../../areas/components/AreasViewer/AreasViewer.js";
|
|
59
|
-
import "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
60
|
-
import "zustand/middleware";
|
|
61
59
|
import "../../../../../Card/slots/CardSlots.js";
|
|
62
60
|
import "../../../../../Card/constants.js";
|
|
63
61
|
import "../../../../../CheckableList/constants.js";
|
|
@@ -161,6 +159,7 @@ import "lodash-es/isString";
|
|
|
161
159
|
import "../../../../../Image/subcomponents/IntersectComponent/index.js";
|
|
162
160
|
import "../../../../../Image/slots/ImageSlots.js";
|
|
163
161
|
import "../../../../../Image/constant.js";
|
|
162
|
+
import "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
164
163
|
import "yup";
|
|
165
164
|
import "../../../../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
166
165
|
import "../../../../../hook-form/RHFActionsGroup/constants.js";
|
|
@@ -223,7 +222,7 @@ import "../../../../../SettingsLayout/slots/SettingsLayoutSlots.js";
|
|
|
223
222
|
import "../../../../../SettingsLayout/constants.js";
|
|
224
223
|
import "../../../../../Stepper/store/StepperContext/index.js";
|
|
225
224
|
import "../../../../../Stepper/slots/StepperSlot.js";
|
|
226
|
-
function
|
|
225
|
+
function Qi({
|
|
227
226
|
row: i,
|
|
228
227
|
rows: C,
|
|
229
228
|
rowIndex: p,
|
|
@@ -325,5 +324,5 @@ function Ui({
|
|
|
325
324
|
};
|
|
326
325
|
}
|
|
327
326
|
export {
|
|
328
|
-
|
|
327
|
+
Qi as useCardContent
|
|
329
328
|
};
|
|
@@ -55,8 +55,6 @@ import "../../../../../areas/components/AreasAdmin/slots/AreasAdminSlots.js";
|
|
|
55
55
|
import "../../../../../extended/mui/Typography/Typography.js";
|
|
56
56
|
import "../../../../../MenuActions/MenuActions.js";
|
|
57
57
|
import "../../../../../areas/components/AreasViewer/AreasViewer.js";
|
|
58
|
-
import "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
59
|
-
import "zustand/middleware";
|
|
60
58
|
import "../../../../../Card/slots/CardSlots.js";
|
|
61
59
|
import "../../../../../Card/constants.js";
|
|
62
60
|
import "../../../../../CheckableList/constants.js";
|
|
@@ -82,8 +80,8 @@ import "../../../../../commercial/SectionCommercial/classes/index.js";
|
|
|
82
80
|
import "../../../../../commercial/SectionCommercial/styles.js";
|
|
83
81
|
import "../../../../../ContainerFlow/constants.js";
|
|
84
82
|
import "../../../../../ContainerFlow/slots/ContainerFlowSlots.js";
|
|
85
|
-
import "../../../../contexts/DataGridContext/DataGridContext.js";
|
|
86
83
|
import "../../../../contexts/FilterContext/FilterContext.js";
|
|
84
|
+
import "../../../../contexts/DataGridContext/DataGridContext.js";
|
|
87
85
|
import { ActionsEditOutlined as N } from "@m4l/icons";
|
|
88
86
|
import "../../../TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
89
87
|
import "../Settings/subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
@@ -160,6 +158,7 @@ import "lodash-es/isString";
|
|
|
160
158
|
import "../../../../../Image/subcomponents/IntersectComponent/index.js";
|
|
161
159
|
import "../../../../../Image/slots/ImageSlots.js";
|
|
162
160
|
import "../../../../../Image/constant.js";
|
|
161
|
+
import "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
163
162
|
import "yup";
|
|
164
163
|
import "../../../../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
165
164
|
import "../../../../../hook-form/RHFActionsGroup/constants.js";
|
|
@@ -222,7 +221,7 @@ import "../../../../../SettingsLayout/slots/SettingsLayoutSlots.js";
|
|
|
222
221
|
import "../../../../../SettingsLayout/constants.js";
|
|
223
222
|
import "../../../../../Stepper/store/StepperContext/index.js";
|
|
224
223
|
import "../../../../../Stepper/slots/StepperSlot.js";
|
|
225
|
-
function
|
|
224
|
+
function rp({
|
|
226
225
|
row: w,
|
|
227
226
|
columns: h,
|
|
228
227
|
viewColumnsConfig: f,
|
|
@@ -333,5 +332,5 @@ function op({
|
|
|
333
332
|
}) });
|
|
334
333
|
}
|
|
335
334
|
export {
|
|
336
|
-
|
|
335
|
+
rp as CardDetails
|
|
337
336
|
};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { jsxs as A, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import j, { useMemo as y } from "react";
|
|
3
|
-
import { CardContentWrapperStyled as B, CardContentStyled as L, CardStyled as
|
|
4
|
-
import { LazyLoadCard as
|
|
5
|
-
import { useCardContent as
|
|
6
|
-
import { CardHeader as
|
|
7
|
-
import { deepEqual as
|
|
8
|
-
import { useDataGrid as
|
|
9
|
-
import "../../../../
|
|
10
|
-
|
|
11
|
-
import { getDefaultAction as J } from "../../../../helpers/shared/getDefaultAction/getDefaultAction.js";
|
|
12
|
-
function N({
|
|
3
|
+
import { CardContentWrapperStyled as B, CardContentStyled as L, CardStyled as q } from "../../../../slots/DataGridSlot.js";
|
|
4
|
+
import { LazyLoadCard as z } from "./subcomponents/LazyLoadCard/LazyLoadCard.js";
|
|
5
|
+
import { useCardContent as H } from "../../hooks/useCardContent/useCardContent.js";
|
|
6
|
+
import { CardHeader as W } from "./subcomponents/CardHeader/CardHeader.js";
|
|
7
|
+
import { deepEqual as F } from "fast-equals";
|
|
8
|
+
import { useDataGrid as J } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
9
|
+
import { getDefaultAction as N } from "../../../../helpers/shared/getDefaultAction/getDefaultAction.js";
|
|
10
|
+
function O({
|
|
13
11
|
row: t,
|
|
14
12
|
rows: e,
|
|
15
13
|
rowIndex: g,
|
|
16
14
|
columns: S,
|
|
17
|
-
originalColumns:
|
|
15
|
+
originalColumns: P,
|
|
18
16
|
rowKeyGetter: n,
|
|
19
17
|
selectedRows: o,
|
|
20
18
|
onSelectedRowsChange: l,
|
|
@@ -22,38 +20,38 @@ function N({
|
|
|
22
20
|
customRender: i,
|
|
23
21
|
minHeight: I,
|
|
24
22
|
isChecked: a,
|
|
25
|
-
checkedRows:
|
|
26
|
-
showCheckbox:
|
|
23
|
+
checkedRows: d,
|
|
24
|
+
showCheckbox: m,
|
|
27
25
|
onCheckedRowsChange: s,
|
|
28
26
|
onOpenDetail: h
|
|
29
27
|
}) {
|
|
30
|
-
const { rowActionsGetter:
|
|
28
|
+
const { rowActionsGetter: C } = J(), f = i !== void 0, { cardContent: p } = H({
|
|
31
29
|
row: t,
|
|
32
30
|
rows: e,
|
|
33
31
|
rowIndex: g,
|
|
34
32
|
columns: S,
|
|
35
33
|
onRowsChange: v
|
|
36
|
-
}), k = y(() =>
|
|
34
|
+
}), k = y(() => f ? i.renderContent(t) : /* @__PURE__ */ A(B, { ownerState: {}, children: [
|
|
37
35
|
/* @__PURE__ */ r(
|
|
38
|
-
|
|
36
|
+
W,
|
|
39
37
|
{
|
|
40
38
|
row: t,
|
|
41
39
|
onOpenDetail: h,
|
|
42
40
|
isChecked: a,
|
|
43
|
-
showCheckbox:
|
|
44
|
-
checkedRows:
|
|
41
|
+
showCheckbox: m,
|
|
42
|
+
checkedRows: d,
|
|
45
43
|
onCheckedRowsChange: s
|
|
46
44
|
}
|
|
47
45
|
),
|
|
48
46
|
/* @__PURE__ */ r(L, { ownerState: {}, children: p })
|
|
49
47
|
] }), [
|
|
50
|
-
|
|
48
|
+
f,
|
|
51
49
|
i,
|
|
52
50
|
t,
|
|
53
51
|
p,
|
|
54
52
|
a,
|
|
55
|
-
d,
|
|
56
53
|
m,
|
|
54
|
+
d,
|
|
57
55
|
s
|
|
58
56
|
]), E = (c) => {
|
|
59
57
|
if (!c.target.closest(
|
|
@@ -67,13 +65,13 @@ function N({
|
|
|
67
65
|
}, M = (c) => {
|
|
68
66
|
if (c.target.closest(
|
|
69
67
|
'input, button, a, [role="button"], .MuiCheckbox-root, .MuiIconButton-root'
|
|
70
|
-
) || !
|
|
68
|
+
) || !C)
|
|
71
69
|
return;
|
|
72
|
-
const u =
|
|
70
|
+
const u = C(t), b = N(u);
|
|
73
71
|
b?.onClick && b.onClick(t);
|
|
74
72
|
};
|
|
75
|
-
return /* @__PURE__ */ r(
|
|
76
|
-
|
|
73
|
+
return /* @__PURE__ */ r(z, { threshold: 200, minHeight: I, rowKey: n(t), children: /* @__PURE__ */ r(
|
|
74
|
+
q,
|
|
77
75
|
{
|
|
78
76
|
variant: "outlined",
|
|
79
77
|
selected: o?.has(n(t)),
|
|
@@ -89,7 +87,7 @@ function N({
|
|
|
89
87
|
}
|
|
90
88
|
) });
|
|
91
89
|
}
|
|
92
|
-
const
|
|
90
|
+
const G = j.memo(O, (t, e) => F(t, e));
|
|
93
91
|
export {
|
|
94
|
-
|
|
92
|
+
G as CardRow
|
|
95
93
|
};
|
|
@@ -3,7 +3,6 @@ import { useModuleDictionary as M } from "@m4l/core";
|
|
|
3
3
|
import { useIsMobile as k } from "@m4l/graphics";
|
|
4
4
|
import { useRef as w, useCallback as e } from "react";
|
|
5
5
|
import { useDataGrid as I } from "../../../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
6
|
-
import "../../../../../../contexts/FilterContext/FilterContext.js";
|
|
7
6
|
import { useModal as b } from "../../../../../../../../hooks/useModal/index.js";
|
|
8
7
|
import { WindowBase as y } from "../../../../../../../WindowBase/WindowBase.js";
|
|
9
8
|
import "../../../../../../../WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
@@ -26,7 +25,7 @@ import "../../../../../../../CommonActions/components/ActionFormIntro/slots/Acti
|
|
|
26
25
|
import "../../../../../../../CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.js";
|
|
27
26
|
import { ContentModalSettingStyled as R, DataGridRootStyled as j } from "../../../../../../slots/DataGridSlot.js";
|
|
28
27
|
import { SettingsConfigOutlined as G } from "@m4l/icons";
|
|
29
|
-
const
|
|
28
|
+
const so = (s, l) => {
|
|
30
29
|
const { openModal: m, closeModal: t } = b(), { getConfigColumns: c, onChangeColumnsConfig: a, currentRowHeight: p, classes: n } = I(), d = c("cards"), { getLabel: C } = M(), g = k(), i = w(null), f = e(() => {
|
|
31
30
|
t();
|
|
32
31
|
}, [t]), u = e(() => {
|
|
@@ -73,5 +72,5 @@ const lo = (s, l) => {
|
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
so as useModalSettings
|
|
77
76
|
};
|
|
@@ -66,7 +66,6 @@ import "../../../../../../../areas/components/AreasAdmin/slots/AreasAdminSlots.j
|
|
|
66
66
|
import "../../../../../../../extended/mui/Typography/Typography.js";
|
|
67
67
|
import "../../../../../../../MenuActions/MenuActions.js";
|
|
68
68
|
import "../../../../../../../areas/components/AreasViewer/AreasViewer.js";
|
|
69
|
-
import "../../../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
70
69
|
import "../../../../../../../Card/slots/CardSlots.js";
|
|
71
70
|
import "../../../../../../../Card/constants.js";
|
|
72
71
|
import "../../../../../../../CheckableList/constants.js";
|
|
@@ -92,8 +91,8 @@ import "../../../../../../../commercial/SectionCommercial/classes/index.js";
|
|
|
92
91
|
import "../../../../../../../commercial/SectionCommercial/styles.js";
|
|
93
92
|
import "../../../../../../../ContainerFlow/constants.js";
|
|
94
93
|
import "../../../../../../../ContainerFlow/slots/ContainerFlowSlots.js";
|
|
95
|
-
import "../../../../../../contexts/DataGridContext/DataGridContext.js";
|
|
96
94
|
import "../../../../../../contexts/FilterContext/FilterContext.js";
|
|
95
|
+
import "../../../../../../contexts/DataGridContext/DataGridContext.js";
|
|
97
96
|
import { DICTIONARY as l } from "../../../../../../dictionary.js";
|
|
98
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";
|
|
99
98
|
import { ColumnsConfigWrapperStyled as pt, ColumnsConfigDataGridStyled as nt, ColumnsConfigSelColumnsStyled as lt, TableWrapperDataGridStyled as st, ColumnsConfigActiosStyled as at } from "../../../../../../slots/DataGridSlot.js";
|
|
@@ -151,6 +150,7 @@ import "lodash-es/isString";
|
|
|
151
150
|
import "../../../../../../../Image/subcomponents/IntersectComponent/index.js";
|
|
152
151
|
import "../../../../../../../Image/slots/ImageSlots.js";
|
|
153
152
|
import "../../../../../../../Image/constant.js";
|
|
153
|
+
import "../../../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
154
154
|
import "yup";
|
|
155
155
|
import "../../../../../../../hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js";
|
|
156
156
|
import "../../../../../../../hook-form/RHFActionsGroup/constants.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableView.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/views/TableView/TableView.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"TableView.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/views/TableView/TableView.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmBrD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,EACvE,KAAK,EAAE,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,oDAgX/C"}
|
|
@@ -6,13 +6,11 @@ import { HTML5Backend as te } from "react-dnd-html5-backend";
|
|
|
6
6
|
import { CheckboxFormatter as ne } from "./subcomponents/CheckboxFormatter/CheckboxFormatter.js";
|
|
7
7
|
import { filterHeight as W } from "./subcomponents/SelectColumn/SelectColumn.js";
|
|
8
8
|
import { useSortColumnsRows as le } from "./hooks/useSortColumnsRows/useSortColumnsRows.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { useHeaderMenuActions as me } from "./hooks/useHeaderMenuActions/useHeaderMenuActions.js";
|
|
15
|
-
import { HeaderRenderClick as de } from "./subcomponents/HeaderRenderClick/HeaderRenderClick.js";
|
|
9
|
+
import { useFilters as ie } from "../../hooks/shared/useFilters/useFilters.js";
|
|
10
|
+
import { useDataGrid as se } from "../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
11
|
+
import { TableContainerStyled as ce, TableWrapperDataGridStyled as ue } from "../../slots/DataGridSlot.js";
|
|
12
|
+
import { useHeaderMenuActions as ae } from "./hooks/useHeaderMenuActions/useHeaderMenuActions.js";
|
|
13
|
+
import { HeaderRenderClick as me } from "./subcomponents/HeaderRenderClick/HeaderRenderClick.js";
|
|
16
14
|
import "@m4l/core";
|
|
17
15
|
import "clsx";
|
|
18
16
|
import "../../../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
@@ -23,10 +21,11 @@ import "zustand/middleware/immer";
|
|
|
23
21
|
import "@m4l/styles";
|
|
24
22
|
import "../../../Icon/constants.js";
|
|
25
23
|
import "../../../Icon/slots/IconSlots.js";
|
|
26
|
-
import { getGroupBy as
|
|
27
|
-
import { defaultRowGrouper as
|
|
28
|
-
import { createRowCellsBackgroundMap as
|
|
29
|
-
|
|
24
|
+
import { getGroupBy as de } from "./helpers/getGroupBy/getGroupBy.js";
|
|
25
|
+
import { defaultRowGrouper as fe } from "./helpers/defaultRowGrouper/defaultRowGrouper.js";
|
|
26
|
+
import { createRowCellsBackgroundMap as pe, processColumnsWithRowCellsBackground as he } from "./helpers/rowCellsBackground/rowCellsBackground.js";
|
|
27
|
+
import { getDefaultAction as Ce } from "../../helpers/shared/getDefaultAction/getDefaultAction.js";
|
|
28
|
+
function qe(z) {
|
|
30
29
|
const {
|
|
31
30
|
columns: L,
|
|
32
31
|
rows: $,
|
|
@@ -62,7 +61,7 @@ function Ne(z) {
|
|
|
62
61
|
}),
|
|
63
62
|
[]
|
|
64
63
|
)
|
|
65
|
-
), { activeFilters: G } =
|
|
64
|
+
), { activeFilters: G } = ie(), {
|
|
66
65
|
onChangeColumnWidth: q,
|
|
67
66
|
setRowsCount: N,
|
|
68
67
|
currentRowHeight: w,
|
|
@@ -73,11 +72,11 @@ function Ne(z) {
|
|
|
73
72
|
setSortColumns: H,
|
|
74
73
|
columnsConfig: v,
|
|
75
74
|
rowActionsGetter: I
|
|
76
|
-
} =
|
|
75
|
+
} = se(), _ = C(() => n ? de(v) : [], [v, n]), J = n?.rowGrouper ?? fe, T = C(() => {
|
|
77
76
|
if (u)
|
|
78
|
-
return typeof u == "function" ? u :
|
|
77
|
+
return typeof u == "function" ? u : pe(u);
|
|
79
78
|
}, [u]), D = C(
|
|
80
|
-
() =>
|
|
79
|
+
() => he(
|
|
81
80
|
l,
|
|
82
81
|
T,
|
|
83
82
|
r,
|
|
@@ -101,7 +100,7 @@ function Ne(z) {
|
|
|
101
100
|
}, M = ({ row: e }) => {
|
|
102
101
|
if (!I)
|
|
103
102
|
return;
|
|
104
|
-
const o = I(e), d =
|
|
103
|
+
const o = I(e), d = Ce(o);
|
|
105
104
|
d?.onClick && d.onClick(e);
|
|
106
105
|
};
|
|
107
106
|
R(() => {
|
|
@@ -136,14 +135,14 @@ function Ne(z) {
|
|
|
136
135
|
resizable: !0,
|
|
137
136
|
sortable: !0,
|
|
138
137
|
...j || {}
|
|
139
|
-
}, X =
|
|
138
|
+
}, X = ae(
|
|
140
139
|
h.columnKey,
|
|
141
140
|
l,
|
|
142
141
|
!!S.sortable,
|
|
143
142
|
U
|
|
144
143
|
);
|
|
145
|
-
return /* @__PURE__ */ s(
|
|
146
|
-
|
|
144
|
+
return /* @__PURE__ */ s(ce, { ownerState: {}, id: "WrapperTable", children: /* @__PURE__ */ Z(
|
|
145
|
+
ue,
|
|
147
146
|
{
|
|
148
147
|
ownerState: { size: V, currentRowHeightVariant: g, currentRowHeight: w },
|
|
149
148
|
children: [
|
|
@@ -201,7 +200,7 @@ function Ne(z) {
|
|
|
201
200
|
}
|
|
202
201
|
) }),
|
|
203
202
|
h.columnKey && h.anchorEl instanceof HTMLDivElement && /* @__PURE__ */ s(
|
|
204
|
-
|
|
203
|
+
me,
|
|
205
204
|
{
|
|
206
205
|
externalOpen: h.anchorEl,
|
|
207
206
|
onOpen: (e) => {
|
|
@@ -218,5 +217,5 @@ function Ne(z) {
|
|
|
218
217
|
) });
|
|
219
218
|
}
|
|
220
219
|
export {
|
|
221
|
-
|
|
220
|
+
qe as TableView
|
|
222
221
|
};
|