@m4l/components 9.20.0 → 9.21.0
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/AccountPopover.js +43 -39
- package/components/AccountPopover/constants.d.ts +3 -0
- package/components/AccountPopover/constants.d.ts.map +1 -1
- package/components/AccountPopover/constants.js +11 -3
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +7 -7
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +45 -43
- package/components/AccountPopover/types.d.ts +9 -0
- package/components/AccountPopover/types.d.ts.map +1 -1
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
- package/components/AppBar/AppBar.d.ts +3 -18
- package/components/AppBar/AppBar.d.ts.map +1 -1
- package/components/AppBar/AppBar.js +64 -45
- package/components/AppBar/slots/AppBarEnum.d.ts +3 -1
- package/components/AppBar/slots/AppBarEnum.d.ts.map +1 -1
- package/components/AppBar/slots/AppBarEnum.js +2 -2
- package/components/AppBar/slots/AppBarSlots.d.ts +7 -1
- package/components/AppBar/slots/AppBarSlots.d.ts.map +1 -1
- package/components/AppBar/slots/AppBarSlots.js +30 -22
- package/components/AppBar/styles.d.ts.map +1 -1
- package/components/AppBar/styles.js +90 -47
- package/components/AppBar/types.d.ts +63 -29
- package/components/AppBar/types.d.ts.map +1 -1
- package/components/Card/constants.d.ts +1 -1
- package/components/CheckableList/slots/styled.d.ts +9 -9
- package/components/Chip/slots/ChipSlots.d.ts +4 -4
- package/components/ColorPicker/slots/ColorPickerSlots.d.ts +2 -2
- package/components/CommonActions/classes/index.d.ts +1 -1
- 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/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DateRangeCalendarPicker/constants.d.ts +1 -1
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.d.ts +9 -9
- package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
- package/components/DaysOfWeekPicker/constants.d.ts +1 -1
- package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +7 -7
- package/components/DynamicForm/constants.d.ts +1 -1
- package/components/DynamicForm/slots/DynamicFormSlots.d.ts +3 -3
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +7 -7
- package/components/EditLabel/constants.d.ts +1 -1
- package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
- package/components/ImageSelector/constants.d.ts +1 -1
- package/components/ImageSelector/slots/ImageSelectorSlots.d.ts +4 -4
- package/components/ImageText/constants.d.ts +1 -1
- package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
- package/components/Label/slots/LabelSlots.d.ts +2 -2
- package/components/LanguagePopover/LanguagePopover.d.ts +7 -7
- package/components/LanguagePopover/LanguagePopover.d.ts.map +1 -1
- package/components/LanguagePopover/LanguagePopover.js +40 -36
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LanguagePopover/types.d.ts +12 -3
- package/components/LanguagePopover/types.d.ts.map +1 -1
- package/components/LoadingError/LoadingError.js +4 -4
- package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/MenuActions/types.d.ts +1 -1
- package/components/MenuActions/types.d.ts.map +1 -1
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
- package/components/Pager/slots/PagerSlots.d.ts +3 -3
- package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
- 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/TabsNavigator/constants.d.ts +1 -1
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +3 -3
- package/components/TimePicker/slots/TimePickerSlots.d.ts +8 -8
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
- package/components/WindowConfirm/WindowConfirm.js +10 -10
- package/components/WindowConfirm/WindowConfirm.styles.d.ts.map +1 -1
- package/components/WindowConfirm/WindowConfirm.styles.js +26 -5
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +5 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +1 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +295 -119
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +309 -70
- package/components/areas/components/AreasAdmin/constants.d.ts +8 -0
- package/components/areas/components/AreasAdmin/constants.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/constants.js +10 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts +19 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.js +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +66 -9
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +176 -93
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts +6 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts.map +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.js +191 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts +2 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts.map +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts +37 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts.map +1 -0
- package/components/areas/components/AreasAdmin/types.d.ts +29 -3
- package/components/areas/components/AreasAdmin/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +3 -0
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +4 -1
- package/components/areas/hooks/index.d.ts +1 -1
- package/components/areas/hooks/index.d.ts.map +1 -1
- package/components/areas/hooks/useAreas/index.d.ts +5 -0
- package/components/areas/hooks/useAreas/index.d.ts.map +1 -1
- package/components/areas/hooks/useAreas/index.js +16 -7
- package/components/areas/icons.js +3 -10
- package/components/datagrids/slots/DataGridSlot.d.ts +6 -6
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +5 -5
- package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +4 -4
- package/components/extended/mui/Autocomplete/constants.d.ts +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
- package/components/extended/mui/Avatar/slots/AvatarSlots.d.ts +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 +2 -2
- package/components/extended/mui/DatePicker/constants.d.ts +1 -1
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +3 -3
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
- package/components/extended/mui/Divider/slots/DividerSlots.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/slots/MenuItemSlots.d.ts +4 -4
- package/components/extended/mui/NavLink/slots/NavLinkSlots.d.ts +1 -1
- package/components/extended/mui/Popover/Popover.d.ts.map +1 -1
- package/components/extended/mui/Popover/Popover.js +41 -41
- package/components/extended/mui/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/extended/mui/Radio/constants.d.ts +1 -1
- package/components/extended/mui/Radio/slots/styled.d.ts +2 -2
- 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/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/extended/mui/Stack/slots/StackSlot.d.ts +1 -1
- package/components/extended/mui/Switch/constants.d.ts +1 -1
- package/components/extended/mui/Switch/slots/SwitchSlots.d.ts +2 -2
- package/components/extended/mui/Tab/Slots/TabSlots.d.ts +4 -4
- package/components/extended/mui/Tab/constants.d.ts +1 -1
- package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
- 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 +3 -3
- package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
- package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
- package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
- package/components/formatters/ImageFormatter/constants.d.ts +1 -1
- package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
- package/components/formatters/NestedFormatter/constants.d.ts +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
- package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
- package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
- package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckableList/constants.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/constants.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +1 -1
- package/components/hook-form/RHFSelect/constants.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/hook-form/RHFormProvider/classes/index.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
- package/index.js +674 -673
- package/package.json +7 -7
- package/test/mocks/dictionary-mock.d.ts +1 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +0 -171
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js +0 -45
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +0 -69
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +0 -149
|
@@ -1,96 +1,179 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { MenuList as l } from "@mui/material";
|
|
2
|
+
import { styled as e } from "@mui/material/styles";
|
|
3
|
+
import { Typography as i } from "@m4l/base";
|
|
4
|
+
import { AREAS_ADMIN_KEY_COMPONENT as n } from "../constants.js";
|
|
3
5
|
import { areasAdminStyles as o } from "../AreasAdmin.styles.js";
|
|
4
|
-
import { AreasAdminSlots as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
name:
|
|
12
|
-
slot:
|
|
13
|
-
})(o
|
|
14
|
-
name:
|
|
15
|
-
slot:
|
|
16
|
-
})(o
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(o
|
|
26
|
-
name:
|
|
27
|
-
slot:
|
|
28
|
-
})(o
|
|
29
|
-
name:
|
|
30
|
-
slot:
|
|
31
|
-
})(o
|
|
32
|
-
name:
|
|
33
|
-
slot:
|
|
34
|
-
})(o
|
|
35
|
-
name:
|
|
36
|
-
slot:
|
|
37
|
-
})(o
|
|
38
|
-
name:
|
|
39
|
-
slot:
|
|
40
|
-
})(o
|
|
41
|
-
name:
|
|
42
|
-
slot:
|
|
43
|
-
})(o
|
|
44
|
-
name:
|
|
45
|
-
slot:
|
|
46
|
-
})(o
|
|
47
|
-
name:
|
|
48
|
-
slot:
|
|
49
|
-
})(o
|
|
50
|
-
name:
|
|
51
|
-
slot:
|
|
52
|
-
})(o
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
6
|
+
import { AreasAdminSlots as t } from "./AreasAdminEnum.js";
|
|
7
|
+
import { IconButton as a } from "../../../../extended/mui/IconButton/IconButton.js";
|
|
8
|
+
import { Divider as u } from "../../../../extended/mui/Divider/Divider.js";
|
|
9
|
+
import { Button as m } from "../../../../extended/mui/Button/Button.js";
|
|
10
|
+
import { Chip as r } from "../../../../Chip/Chip.js";
|
|
11
|
+
import { MenuActions as s } from "../../../../MenuActions/MenuActions.js";
|
|
12
|
+
const f = e("div", {
|
|
13
|
+
name: n,
|
|
14
|
+
slot: t.root
|
|
15
|
+
})(o.root), I = e("div", {
|
|
16
|
+
name: n,
|
|
17
|
+
slot: t.areasAdminContent
|
|
18
|
+
})(o.areasAdminContent);
|
|
19
|
+
e("div", {
|
|
20
|
+
name: n,
|
|
21
|
+
slot: t.areasTrigger
|
|
22
|
+
})(o.areasTrigger);
|
|
23
|
+
const H = e(a, {
|
|
24
|
+
name: n,
|
|
25
|
+
slot: t.areasTriggerButton,
|
|
26
|
+
shouldForwardProp: (d) => d !== "ownerState"
|
|
27
|
+
})(o.areasTriggerButton), g = e(u, {
|
|
28
|
+
name: n,
|
|
29
|
+
slot: t.sectionDivider
|
|
30
|
+
})(o.sectionDivider), R = e("div", {
|
|
31
|
+
name: n,
|
|
32
|
+
slot: t.areasMenuContent
|
|
33
|
+
})(o.areasMenuContent), T = e("div", {
|
|
34
|
+
name: n,
|
|
35
|
+
slot: t.areasMenuScrollArea
|
|
36
|
+
})(o.areasMenuScrollArea), w = e(l, {
|
|
37
|
+
name: n,
|
|
38
|
+
slot: t.areasMenuList
|
|
39
|
+
})(o.areasMenuList), E = e("div", {
|
|
40
|
+
name: n,
|
|
41
|
+
slot: t.areasMenuFooter
|
|
42
|
+
})(o.areasMenuFooter), O = e("div", {
|
|
43
|
+
name: n,
|
|
44
|
+
slot: t.areaMenuItemActions
|
|
45
|
+
})(o.areaMenuItemActions), D = e(a, {
|
|
46
|
+
name: n,
|
|
47
|
+
slot: t.areaMenuActionButton
|
|
48
|
+
})(o.areaMenuActionButton), F = e("div", {
|
|
49
|
+
name: n,
|
|
50
|
+
slot: t.containerModulesRoot
|
|
51
|
+
})(o.containerModulesRoot), L = e("div", {
|
|
52
|
+
name: n,
|
|
53
|
+
slot: t.containerModulesItems
|
|
54
|
+
})(o.containerModulesItems);
|
|
55
|
+
e("div", {
|
|
56
|
+
name: n,
|
|
57
|
+
slot: t.containerModulesOverflow
|
|
58
|
+
})(o.containerModulesOverflow);
|
|
59
|
+
const N = e(a, {
|
|
60
|
+
name: n,
|
|
61
|
+
slot: t.containerModulesOverflowButton
|
|
62
|
+
})(o.containerModulesOverflowButton), _ = e("div", {
|
|
63
|
+
name: n,
|
|
64
|
+
slot: t.containerModulesMenuContent
|
|
65
|
+
})(o.containerModulesMenuContent), P = e("div", {
|
|
66
|
+
name: n,
|
|
67
|
+
slot: t.containerModulesMenuHeader
|
|
68
|
+
})(o.containerModulesMenuHeader), W = e(i, {
|
|
69
|
+
name: n,
|
|
70
|
+
slot: t.containerModulesMenuHeaderTitle
|
|
71
|
+
})(o.containerModulesMenuHeaderTitle), x = e(r, {
|
|
72
|
+
name: n,
|
|
73
|
+
slot: t.containerModulesMenuHeaderCount
|
|
74
|
+
})(o.containerModulesMenuHeaderCount), K = e(a, {
|
|
75
|
+
name: n,
|
|
76
|
+
slot: t.containerModulesMenuEndAdornment
|
|
77
|
+
})(o.containerModulesMenuEndAdornment), Y = e(a, {
|
|
78
|
+
name: n,
|
|
79
|
+
slot: t.moduleIconButton
|
|
80
|
+
})(o.moduleIconButton);
|
|
81
|
+
e("div", {
|
|
82
|
+
name: n,
|
|
83
|
+
slot: t.areaContainerChipIcon
|
|
84
|
+
})(o.areaContainerChipIcon);
|
|
85
|
+
e("div", {
|
|
86
|
+
name: n,
|
|
87
|
+
slot: t.areaContainerContentChips
|
|
88
|
+
})(o.areaContainerContentChips);
|
|
89
|
+
e("div", {
|
|
90
|
+
name: n,
|
|
91
|
+
slot: t.areaContentChip
|
|
92
|
+
})(o.areaContentChip);
|
|
93
|
+
e("div", {
|
|
94
|
+
name: n,
|
|
95
|
+
slot: t.containerAdminWindows
|
|
96
|
+
})(o.containerAdminWindows);
|
|
97
|
+
e("div", {
|
|
98
|
+
name: n,
|
|
99
|
+
slot: t.areaChipRoot
|
|
100
|
+
})(o.areaChipRoot);
|
|
101
|
+
e("div", {
|
|
102
|
+
name: n,
|
|
103
|
+
slot: t.areaContainerChipEditButton
|
|
104
|
+
})(o.areaContainerChipEditButton);
|
|
105
|
+
e(r, {
|
|
106
|
+
name: n,
|
|
107
|
+
slot: t.chipAreas
|
|
108
|
+
})(o.chipAreas);
|
|
109
|
+
e(a, {
|
|
110
|
+
name: n,
|
|
111
|
+
slot: t.iconButtonAddArea
|
|
112
|
+
})(o.iconButtonAddArea);
|
|
113
|
+
e(s, {
|
|
114
|
+
name: n,
|
|
115
|
+
slot: t.menuActionsChip
|
|
116
|
+
})(o.menuActionsChip);
|
|
117
|
+
e("div", {
|
|
118
|
+
name: n,
|
|
119
|
+
slot: t.areaChipMobileRoot
|
|
120
|
+
})(o.areaChipMobileRoot);
|
|
121
|
+
e("div", {
|
|
122
|
+
name: n,
|
|
123
|
+
slot: t.chipMobileRoot
|
|
124
|
+
})(o.chipMobileRoot);
|
|
125
|
+
e("div", {
|
|
126
|
+
name: n,
|
|
127
|
+
slot: t.chipMobileContent
|
|
128
|
+
})(o.chipMobileContent);
|
|
129
|
+
e("div", {
|
|
130
|
+
name: n,
|
|
131
|
+
slot: t.addAreasMobileContainer
|
|
132
|
+
})(o.addAreasMobileContainer);
|
|
133
|
+
e(s, {
|
|
134
|
+
name: n,
|
|
135
|
+
slot: t.menuActionsAreaChipMobile
|
|
136
|
+
})(o.menuActionsAreaChipMobile);
|
|
137
|
+
const j = e(m, {
|
|
138
|
+
name: n,
|
|
139
|
+
slot: t.buttonAddArea
|
|
140
|
+
})(o.buttonAddArea);
|
|
141
|
+
e("div", {
|
|
142
|
+
name: n,
|
|
143
|
+
slot: t.editAreaChipContainer
|
|
144
|
+
})(o.editAreaChipContainer);
|
|
145
|
+
const k = e("div", {
|
|
146
|
+
name: n,
|
|
147
|
+
slot: t.editAreaHeader
|
|
148
|
+
})(o.editAreaHeader);
|
|
149
|
+
e("div", {
|
|
150
|
+
name: n,
|
|
151
|
+
slot: t.editAreaChipMobileContainer
|
|
152
|
+
})(o.editAreaChipMobileContainer);
|
|
153
|
+
e(i, {
|
|
154
|
+
name: n,
|
|
155
|
+
slot: t.nameChipMobile
|
|
156
|
+
})(o.nameChipMobile);
|
|
74
157
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
f as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
x as
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
158
|
+
D as AreaMenuActionButtonStyled,
|
|
159
|
+
O as AreaMenuItemActionsStyled,
|
|
160
|
+
I as AreasAdminContentStyled,
|
|
161
|
+
f as AreasAdminRootStyled,
|
|
162
|
+
R as AreasMenuContentStyled,
|
|
163
|
+
E as AreasMenuFooterStyled,
|
|
164
|
+
w as AreasMenuListStyled,
|
|
165
|
+
T as AreasMenuScrollAreaStyled,
|
|
166
|
+
g as AreasSectionDividerStyled,
|
|
167
|
+
H as AreasTriggerButtonStyled,
|
|
168
|
+
j as ButtonAddAreaStyled,
|
|
169
|
+
L as ContainerModulesItemsStyled,
|
|
170
|
+
_ as ContainerModulesMenuContentStyled,
|
|
171
|
+
K as ContainerModulesMenuEndAdornmentStyled,
|
|
172
|
+
x as ContainerModulesMenuHeaderCountStyled,
|
|
173
|
+
P as ContainerModulesMenuHeaderStyled,
|
|
174
|
+
W as ContainerModulesMenuHeaderTitleStyled,
|
|
175
|
+
N as ContainerModulesOverflowButtonStyled,
|
|
176
|
+
F as ContainerModulesRootStyled,
|
|
177
|
+
k as EditAreaHeaderStyled,
|
|
178
|
+
Y as ModuleIconButtonStyled
|
|
96
179
|
};
|
package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ContainerModulesProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Render the compact modules selector used by the refactored Areas admin.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ContainerModules(props: ContainerModulesProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
//# sourceMappingURL=ContainerModules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerModules.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.tsx"],"names":[],"mappings":"AA6BA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAgChD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2DA0M5D"}
|
package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { jsxs as u, jsx as n, Fragment as _ } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as y } from "react";
|
|
3
|
+
import { Tooltip as C } from "@m4l/base";
|
|
4
|
+
import { MenuMoreHorizontalOutlined as T, LayoutExpandOutlined as D } from "@m4l/icons";
|
|
5
|
+
import { AREAS_ADMIN_KEY_COMPONENT as z, AREAS_ADMIN_TOOLTIP_DELAY_PROPS as w, AREAS_MENU_MAX_VISIBLE_ITEMS as P } from "../../constants.js";
|
|
6
|
+
import { ContainerModulesRootStyled as N, ContainerModulesItemsStyled as B, ModuleIconButtonStyled as H, AreasSectionDividerStyled as L, ContainerModulesOverflowButtonStyled as R, ContainerModulesMenuContentStyled as k, ContainerModulesMenuHeaderStyled as U, ContainerModulesMenuHeaderTitleStyled as V, ContainerModulesMenuHeaderCountStyled as j, AreasMenuScrollAreaStyled as F, AreasMenuListStyled as W, ContainerModulesMenuEndAdornmentStyled as Y } from "../../slots/AreasAdminSlots.js";
|
|
7
|
+
import { getComponentClasses as $ } from "../../../../../../utils/getComponentSlotRoot.js";
|
|
8
|
+
import { AreasAdminSlots as K } from "../../slots/AreasAdminEnum.js";
|
|
9
|
+
import { Popover as X } from "../../../../../extended/mui/Popover/Popover.js";
|
|
10
|
+
import { MenuItem as q } from "../../../../../extended/mui/MenuItem/MenuItem.js";
|
|
11
|
+
function G(r, o, d) {
|
|
12
|
+
const s = d ? r.findIndex((i) => i.id === d) : -1;
|
|
13
|
+
if (s < 0 || s < o)
|
|
14
|
+
return {
|
|
15
|
+
overflowItems: r.slice(o),
|
|
16
|
+
visibleItems: r.slice(0, o)
|
|
17
|
+
};
|
|
18
|
+
const t = r.filter((i) => i.id !== d), c = r[s];
|
|
19
|
+
return t.splice(Math.max(o - 1, 0), 0, c), {
|
|
20
|
+
overflowItems: t.slice(o),
|
|
21
|
+
visibleItems: t.slice(0, o)
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function ae(r) {
|
|
25
|
+
const {
|
|
26
|
+
items: o,
|
|
27
|
+
itemLimit: d,
|
|
28
|
+
menuHeaderLabel: s,
|
|
29
|
+
orientation: t,
|
|
30
|
+
overflowLabel: c,
|
|
31
|
+
onSelect: i,
|
|
32
|
+
selectedItemId: M,
|
|
33
|
+
size: l
|
|
34
|
+
} = r, [f, h] = y(null), [v, m] = y(null), E = $(z, K);
|
|
35
|
+
if (o.length === 0)
|
|
36
|
+
return null;
|
|
37
|
+
const { visibleItems: O, overflowItems: x } = G(o, d, M), p = !!f;
|
|
38
|
+
function b(e) {
|
|
39
|
+
e.stopPropagation(), h(e.currentTarget);
|
|
40
|
+
}
|
|
41
|
+
function A() {
|
|
42
|
+
f?.blur(), h(null);
|
|
43
|
+
}
|
|
44
|
+
function g(e) {
|
|
45
|
+
i(e), A();
|
|
46
|
+
}
|
|
47
|
+
function S(e) {
|
|
48
|
+
m(e);
|
|
49
|
+
}
|
|
50
|
+
function I(e) {
|
|
51
|
+
m((a) => a === e ? null : a);
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ u(N, { ownerState: { orientation: t }, children: [
|
|
54
|
+
/* @__PURE__ */ n(B, { ownerState: { orientation: t }, children: O.map((e) => {
|
|
55
|
+
const a = M === e.id;
|
|
56
|
+
return /* @__PURE__ */ n(
|
|
57
|
+
C,
|
|
58
|
+
{
|
|
59
|
+
...w,
|
|
60
|
+
title: e.title,
|
|
61
|
+
children: /* @__PURE__ */ n(
|
|
62
|
+
H,
|
|
63
|
+
{
|
|
64
|
+
"aria-label": e.title,
|
|
65
|
+
"aria-pressed": a,
|
|
66
|
+
color: a ? "primary" : "default",
|
|
67
|
+
"data-testid": `AreasAdminModule-${e.id}`,
|
|
68
|
+
onClick: () => i(e.id),
|
|
69
|
+
size: l,
|
|
70
|
+
src: e.iconUrl,
|
|
71
|
+
variant: a ? "contained" : "text"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
e.id
|
|
76
|
+
);
|
|
77
|
+
}) }),
|
|
78
|
+
x.length > 0 ? /* @__PURE__ */ u(_, { children: [
|
|
79
|
+
t === "vertical" ? /* @__PURE__ */ n(
|
|
80
|
+
L,
|
|
81
|
+
{
|
|
82
|
+
customVariant: "solid",
|
|
83
|
+
"data-testid": "AreasAdminModulesDivider",
|
|
84
|
+
orientation: "horizontal",
|
|
85
|
+
size: l,
|
|
86
|
+
className: E.sectionDivider
|
|
87
|
+
}
|
|
88
|
+
) : null,
|
|
89
|
+
/* @__PURE__ */ n(
|
|
90
|
+
C,
|
|
91
|
+
{
|
|
92
|
+
...w,
|
|
93
|
+
title: c,
|
|
94
|
+
children: /* @__PURE__ */ n(
|
|
95
|
+
R,
|
|
96
|
+
{
|
|
97
|
+
"aria-label": c,
|
|
98
|
+
color: p ? "primary" : "default",
|
|
99
|
+
icon: /* @__PURE__ */ n(T, {}),
|
|
100
|
+
onClick: b,
|
|
101
|
+
selected: p,
|
|
102
|
+
size: l,
|
|
103
|
+
variant: "text"
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ n(
|
|
109
|
+
X,
|
|
110
|
+
{
|
|
111
|
+
anchorEl: f,
|
|
112
|
+
anchorOrigin: t === "vertical" ? { horizontal: "right", vertical: "center" } : { horizontal: "right", vertical: "bottom" },
|
|
113
|
+
arrowType: "no-arrow",
|
|
114
|
+
onClose: A,
|
|
115
|
+
open: p,
|
|
116
|
+
slotProps: {
|
|
117
|
+
paper: {
|
|
118
|
+
sx: {
|
|
119
|
+
width: 220,
|
|
120
|
+
maxWidth: 220,
|
|
121
|
+
minWidth: 220,
|
|
122
|
+
...t === "vertical" ? { ml: 1.5 } : { mt: 1 }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
transformOrigin: t === "vertical" ? { horizontal: "left", vertical: "center" } : { horizontal: "right", vertical: "top" },
|
|
127
|
+
children: /* @__PURE__ */ u(k, { children: [
|
|
128
|
+
/* @__PURE__ */ u(U, { children: [
|
|
129
|
+
/* @__PURE__ */ n(V, { variant: "bodyDens", children: s }),
|
|
130
|
+
/* @__PURE__ */ n(
|
|
131
|
+
j,
|
|
132
|
+
{
|
|
133
|
+
color: "default",
|
|
134
|
+
dataTestId: "AreasAdminModulesCount",
|
|
135
|
+
label: String(o.length),
|
|
136
|
+
size: l,
|
|
137
|
+
variant: "contained"
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ n(
|
|
142
|
+
F,
|
|
143
|
+
{
|
|
144
|
+
ownerState: { maxVisibleItems: P, size: l },
|
|
145
|
+
children: /* @__PURE__ */ n(W, { children: o.map((e) => /* @__PURE__ */ n(
|
|
146
|
+
q,
|
|
147
|
+
{
|
|
148
|
+
endAdornment: /* @__PURE__ */ n(
|
|
149
|
+
Y,
|
|
150
|
+
{
|
|
151
|
+
"aria-hidden": "true",
|
|
152
|
+
color: "default",
|
|
153
|
+
component: "span",
|
|
154
|
+
dataTestId: `AreasAdminModuleExpand-${e.id}`,
|
|
155
|
+
icon: /* @__PURE__ */ n(D, {}),
|
|
156
|
+
role: "presentation",
|
|
157
|
+
size: l,
|
|
158
|
+
style: {
|
|
159
|
+
flexShrink: 0,
|
|
160
|
+
marginLeft: "auto",
|
|
161
|
+
opacity: v === e.id ? 1 : 0,
|
|
162
|
+
pointerEvents: v === e.id ? "auto" : "none",
|
|
163
|
+
transition: "opacity 0.2s ease"
|
|
164
|
+
},
|
|
165
|
+
tabIndex: -1,
|
|
166
|
+
variant: "text"
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
label: e.label,
|
|
170
|
+
onBlur: () => I(e.id),
|
|
171
|
+
onClick: () => g(e.id),
|
|
172
|
+
onFocus: () => S(e.id),
|
|
173
|
+
onMouseEnter: () => S(e.id),
|
|
174
|
+
onMouseLeave: () => I(e.id),
|
|
175
|
+
selected: M === e.id,
|
|
176
|
+
size: l,
|
|
177
|
+
startAdornment: e.iconUrl
|
|
178
|
+
},
|
|
179
|
+
e.id
|
|
180
|
+
)) })
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] })
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
] }) : null
|
|
187
|
+
] });
|
|
188
|
+
}
|
|
189
|
+
export {
|
|
190
|
+
ae as ContainerModules
|
|
191
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Sizes } from '@m4l/styles';
|
|
2
|
+
import { AreasAdminModuleItem, AreasAdminOrientation } from '../../types';
|
|
3
|
+
export interface ContainerModulesProps {
|
|
4
|
+
/**
|
|
5
|
+
* Items rendered inside the modules container.
|
|
6
|
+
*/
|
|
7
|
+
items: AreasAdminModuleItem[];
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of visible items before overflow is collapsed into a menu.
|
|
10
|
+
*/
|
|
11
|
+
itemLimit: number;
|
|
12
|
+
/**
|
|
13
|
+
* Effective container orientation.
|
|
14
|
+
*/
|
|
15
|
+
orientation: AreasAdminOrientation;
|
|
16
|
+
/**
|
|
17
|
+
* Effective component size.
|
|
18
|
+
*/
|
|
19
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
20
|
+
/**
|
|
21
|
+
* Currently selected module item.
|
|
22
|
+
*/
|
|
23
|
+
selectedItemId?: string | false;
|
|
24
|
+
/**
|
|
25
|
+
* Label used by the overflow trigger.
|
|
26
|
+
*/
|
|
27
|
+
overflowLabel: string;
|
|
28
|
+
/**
|
|
29
|
+
* Title shown in the overflow popover header.
|
|
30
|
+
*/
|
|
31
|
+
menuHeaderLabel: string;
|
|
32
|
+
/**
|
|
33
|
+
* Selection handler for module changes.
|
|
34
|
+
*/
|
|
35
|
+
onSelect: (itemId: string) => void;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAChC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
|
-
import { AreasAdminSlots } from './slots/AreasAdminEnum';
|
|
3
|
-
import { AREAS_ADMIN_KEY_COMPONENT } from './constants';
|
|
4
2
|
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
5
3
|
import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
|
|
6
|
-
|
|
4
|
+
import { AREAS_ADMIN_KEY_COMPONENT } from './constants';
|
|
5
|
+
import { AreasAdminSlots } from './slots/AreasAdminEnum';
|
|
6
|
+
export type AreasAdminOrientation = 'vertical' | 'horizontal';
|
|
7
|
+
export type AreasAdminModuleItem = {
|
|
8
|
+
id: string;
|
|
9
|
+
iconUrl: string;
|
|
10
|
+
label: string;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
export interface AreasAdminEditForm {
|
|
14
|
+
inputEditArea: string;
|
|
15
|
+
}
|
|
7
16
|
export interface AreasAdminProps {
|
|
8
17
|
/**
|
|
9
18
|
* Component color variant.
|
|
@@ -13,6 +22,14 @@ export interface AreasAdminProps {
|
|
|
13
22
|
* Supported component sizes.
|
|
14
23
|
*/
|
|
15
24
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
25
|
+
/**
|
|
26
|
+
* Areas layout orientation.
|
|
27
|
+
*/
|
|
28
|
+
orientation?: AreasAdminOrientation;
|
|
29
|
+
/**
|
|
30
|
+
* Maximum number of visible module items before the overflow menu appears.
|
|
31
|
+
*/
|
|
32
|
+
moduleItemLimit?: number;
|
|
16
33
|
/**
|
|
17
34
|
* Optional `data-testid` override for tests.
|
|
18
35
|
*/
|
|
@@ -39,10 +56,19 @@ export interface AreasAdminOwnerState {
|
|
|
39
56
|
* Effective color variant.
|
|
40
57
|
*/
|
|
41
58
|
color: AreasAdminProps['color'];
|
|
59
|
+
/**
|
|
60
|
+
* Effective layout orientation.
|
|
61
|
+
*/
|
|
62
|
+
orientation: AreasAdminOrientation;
|
|
63
|
+
/**
|
|
64
|
+
* Whether a module-switching section is currently visible.
|
|
65
|
+
*/
|
|
66
|
+
hasModules: boolean;
|
|
42
67
|
/**
|
|
43
68
|
* Additional owner-state fields consumed by styled slots.
|
|
44
69
|
*/
|
|
45
70
|
[key: string]: unknown;
|
|
46
71
|
}
|
|
72
|
+
export type AreasAdminType = keyof typeof AreasAdminSlots;
|
|
47
73
|
export type AreasAdminStyles = M4LOverridesStyleRules<AreasAdminType, typeof AREAS_ADMIN_KEY_COMPONENT, Theme>;
|
|
48
74
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,eAAe,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CACnD,cAAc,EACd,OAAO,yBAAyB,EAChC,KAAK,CACN,CAAC"}
|
|
@@ -8,6 +8,8 @@ export declare const AREAS_DICCTIONARY: {
|
|
|
8
8
|
readonly validation_edit_area: "validation_edit_area";
|
|
9
9
|
readonly label_edit_area: "label_edit_area";
|
|
10
10
|
readonly label_delete_area: "label_delete_area";
|
|
11
|
+
readonly label_delete_area_confirm_title: "label_delete_area_confirm_title";
|
|
12
|
+
readonly label_delete_area_confirm_message: "label_delete_area_confirm_message";
|
|
11
13
|
readonly label_window_colapse: "label_window_colapse";
|
|
12
14
|
readonly label_window_un_colapse: "label_window_un_colapse";
|
|
13
15
|
readonly area_error_title: "area_error_title";
|
|
@@ -25,6 +27,7 @@ export declare const AREAS_DICCTIONARY: {
|
|
|
25
27
|
readonly label_unpin_panel: "label_unpin_panel";
|
|
26
28
|
readonly label_module_actions: "label_module_actions";
|
|
27
29
|
readonly label_window: "label_window";
|
|
30
|
+
readonly label_windows: "label_windows";
|
|
28
31
|
};
|
|
29
32
|
export type AreasDictionaryType = typeof AREAS_DICCTIONARY;
|
|
30
33
|
export declare const getAreasDictionary: (key: keyof AreasDictionaryType) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/areas/dictionary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,wBAAgB,4BAA4B,aAE3C;AACD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/areas/dictionary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,wBAAgB,4BAA4B,aAE3C;AACD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BpB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,mBAAmB,WAEhE,CAAC"}
|
|
@@ -9,6 +9,8 @@ const _ = "filter_tooltip", o = {
|
|
|
9
9
|
validation_edit_area: "validation_edit_area",
|
|
10
10
|
label_edit_area: "label_edit_area",
|
|
11
11
|
label_delete_area: "label_delete_area",
|
|
12
|
+
label_delete_area_confirm_title: "label_delete_area_confirm_title",
|
|
13
|
+
label_delete_area_confirm_message: "label_delete_area_confirm_message",
|
|
12
14
|
label_window_colapse: "label_window_colapse",
|
|
13
15
|
label_window_un_colapse: "label_window_un_colapse",
|
|
14
16
|
area_error_title: "area_error_title",
|
|
@@ -25,7 +27,8 @@ const _ = "filter_tooltip", o = {
|
|
|
25
27
|
label_pin_panel: "label_pin_panel",
|
|
26
28
|
label_unpin_panel: "label_unpin_panel",
|
|
27
29
|
label_module_actions: "label_module_actions",
|
|
28
|
-
label_window: "label_window"
|
|
30
|
+
label_window: "label_window",
|
|
31
|
+
label_windows: "label_windows"
|
|
29
32
|
}, i = (a) => `${e}.${a}`;
|
|
30
33
|
export {
|
|
31
34
|
o as AREAS_DICCTIONARY,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useAreasStore } from './useAreas';
|
|
1
|
+
export { useAreasStore, useAreasHasExpandedModule } from './useAreas';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/areas/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/areas/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -15,5 +15,10 @@ export declare function useAreas(): Omit<Omit<import('zustand').StoreApi<AreasSt
|
|
|
15
15
|
* Select reactive state from the shared Areas store with an optional equality function.
|
|
16
16
|
*/
|
|
17
17
|
export declare function useAreasStore<T>(selector: (state: AreasStoreStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
|
|
18
|
+
/**
|
|
19
|
+
* Report whether the active work area currently has an expanded module, i.e. a
|
|
20
|
+
* maximized layout while more than one layout window exists (the module strip).
|
|
21
|
+
*/
|
|
22
|
+
export declare function useAreasHasExpandedModule(): boolean;
|
|
18
23
|
export default useAreas;
|
|
19
24
|
//# sourceMappingURL=index.d.ts.map
|