@m4l/components 9.84.0-beta-feat-temporal-scatter-widgets-reports.1 → 9.84.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/@types/types.d.ts +24 -0
- package/components/BaseModule/BaseModule.d.ts +1 -1
- package/components/BaseModule/BaseModule.d.ts.map +1 -1
- package/components/BaseModule/BaseModule.js +29 -21
- package/components/BaseModule/types.d.ts +5 -1
- package/components/BaseModule/types.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.d.ts +3 -3
- package/components/CheckableList/CheckableList.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.js +218 -202
- package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.styles.js +37 -18
- package/components/CheckableList/constants.d.ts +19 -1
- package/components/CheckableList/constants.d.ts.map +1 -1
- package/components/CheckableList/constants.js +29 -7
- package/components/CheckableList/helpers/resolveGroupEdgeColors.d.ts +6 -0
- package/components/CheckableList/helpers/resolveGroupEdgeColors.d.ts.map +1 -0
- package/components/CheckableList/helpers/resolveGroupEdgeColors.js +37 -0
- package/components/CheckableList/helpers/types.d.ts +6 -0
- package/components/CheckableList/helpers/types.d.ts.map +1 -0
- package/components/CheckableList/hooks/types.d.ts +107 -0
- package/components/CheckableList/hooks/types.d.ts.map +1 -0
- package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +3 -14
- package/components/CheckableList/hooks/useCheckableListHandlers.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListHandlers.js +37 -39
- package/components/CheckableList/hooks/useCheckableListItems.d.ts +5 -15
- package/components/CheckableList/hooks/useCheckableListItems.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListItems.js +35 -64
- package/components/CheckableList/hooks/useCheckableListRender.d.ts +4 -59
- package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +96 -222
- package/components/CheckableList/hooks/useCheckableListSelection.d.ts +4 -11
- package/components/CheckableList/hooks/useCheckableListSelection.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListSelection.js +34 -37
- package/components/CheckableList/hooks/useCheckableListState.d.ts +2 -9
- package/components/CheckableList/hooks/useCheckableListState.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListState.js +19 -21
- package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts +8 -18
- package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListVirtualization.js +51 -39
- package/components/CheckableList/slots/slots.d.ts +2 -0
- package/components/CheckableList/slots/slots.d.ts.map +1 -1
- package/components/CheckableList/slots/slots.js +1 -1
- package/components/CheckableList/slots/styled.d.ts +6 -0
- package/components/CheckableList/slots/styled.d.ts.map +1 -1
- package/components/CheckableList/slots/styled.js +62 -54
- package/components/CheckableList/subcomponents/CheckableListGroupRow/CheckableListGroupRow.d.ts +4 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/CheckableListGroupRow.d.ts.map +1 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/CheckableListGroupRow.js +114 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/types.d.ts +11 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/types.d.ts.map +1 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/CheckableListItemRow.d.ts +4 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/CheckableListItemRow.d.ts.map +1 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/CheckableListItemRow.js +93 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/types.d.ts +9 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/types.d.ts.map +1 -0
- package/components/CheckableList/types.d.ts +99 -81
- package/components/CheckableList/types.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +1 -1
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.js +65 -123
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.styles.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.styles.js +71 -47
- package/components/HoursOfWeekPicker/HoursOfWeekSelection.d.ts +7 -0
- package/components/HoursOfWeekPicker/HoursOfWeekSelection.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/HoursOfWeekSelection.js +28 -0
- package/components/HoursOfWeekPicker/constants.d.ts +5 -3
- package/components/HoursOfWeekPicker/constants.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/constants.js +19 -13
- package/components/HoursOfWeekPicker/helpers/firstAvailableRange/firstAvailableRange.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/firstAvailableRange/firstAvailableRange.js +7 -8
- package/components/HoursOfWeekPicker/helpers/getHoursOfWeekPresets/getHoursOfWeekPresets.d.ts +7 -0
- package/components/HoursOfWeekPicker/helpers/getHoursOfWeekPresets/getHoursOfWeekPresets.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/helpers/getHoursOfWeekPresets/getHoursOfWeekPresets.js +29 -0
- package/components/HoursOfWeekPicker/helpers/getTimeOptions/getTimeOptions.d.ts +1 -1
- package/components/HoursOfWeekPicker/helpers/getTimeOptions/getTimeOptions.js +4 -4
- package/components/HoursOfWeekPicker/helpers/index.d.ts +1 -1
- package/components/HoursOfWeekPicker/helpers/index.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/matrixToValue/matrixToValue.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/matrixToValue/matrixToValue.js +5 -6
- package/components/HoursOfWeekPicker/helpers/normalizeValue/normalizeValue.d.ts +7 -0
- package/components/HoursOfWeekPicker/helpers/normalizeValue/normalizeValue.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/helpers/normalizeValue/normalizeValue.js +12 -0
- package/components/HoursOfWeekPicker/helpers/parseTime/parseTime.d.ts +5 -2
- package/components/HoursOfWeekPicker/helpers/parseTime/parseTime.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/parseTime/parseTime.js +5 -8
- package/components/HoursOfWeekPicker/helpers/valueToMatrix/valueToMatrix.d.ts +6 -3
- package/components/HoursOfWeekPicker/helpers/valueToMatrix/valueToMatrix.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/valueToMatrix/valueToMatrix.js +8 -11
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekCards/useHoursOfWeekCards.d.ts +1 -1
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekPicker/useHoursOfWeekPicker.d.ts +1 -1
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekPicker/useHoursOfWeekPicker.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekPicker/useHoursOfWeekPicker.js +56 -56
- package/components/HoursOfWeekPicker/index.d.ts +4 -0
- package/components/HoursOfWeekPicker/index.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerEnum.d.ts +4 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerEnum.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerEnum.js +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerSlots.d.ts +51 -144
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerSlots.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerSlots.js +212 -54
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekCards/HoursOfWeekCards.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekCards/HoursOfWeekCards.js +75 -75
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekCell/HoursOfWeekCell.js +9 -9
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekLegend/HoursOfWeekLegend.js +21 -21
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekPeriods/HoursOfWeekPeriods.js +19 -19
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekRow/HoursOfWeekRow.js +15 -15
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSelectionContent/HoursOfWeekSelectionContent.d.ts +7 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSelectionContent/HoursOfWeekSelectionContent.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSelectionContent/HoursOfWeekSelectionContent.js +75 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekShortcuts/HoursOfWeekShortcuts.d.ts +7 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekShortcuts/HoursOfWeekShortcuts.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekShortcuts/HoursOfWeekShortcuts.js +35 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSkeleton/HoursOfWeekSkeleton.d.ts +2 -1
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSkeleton/HoursOfWeekSkeleton.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSkeleton/HoursOfWeekSkeleton.js +10 -10
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSummary/HoursOfWeekSummary.js +18 -18
- package/components/HoursOfWeekPicker/types.d.ts +97 -16
- package/components/HoursOfWeekPicker/types.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +134 -130
- package/components/MFIsolationAppStorybook/createComponentsMFIsolationAppStorybookProps.d.ts +2 -1
- package/components/MFIsolationAppStorybook/createComponentsMFIsolationAppStorybookProps.d.ts.map +1 -1
- package/components/MFIsolationAppStorybook/createComponentsMFIsolationAppStorybookProps.js +33 -25
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map +1 -1
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js +9 -4
- package/components/MFLoader/index.d.ts +0 -1
- package/components/MFLoader/index.d.ts.map +1 -1
- package/components/MFLoader/types.d.ts +0 -3
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/SortableList/SortableList.d.ts +3 -0
- package/components/SortableList/SortableList.d.ts.map +1 -0
- package/components/SortableList/SortableList.js +137 -0
- package/components/SortableList/SortableList.styles.d.ts +3 -0
- package/components/SortableList/SortableList.styles.d.ts.map +1 -0
- package/components/SortableList/SortableList.styles.js +45 -0
- package/components/SortableList/__testing__/SortableHarnesses.d.ts +23 -0
- package/components/SortableList/__testing__/SortableHarnesses.d.ts.map +1 -0
- package/components/SortableList/__testing__/fixtures.d.ts +24 -0
- package/components/SortableList/__testing__/fixtures.d.ts.map +1 -0
- package/components/SortableList/__testing__/types.d.ts +78 -0
- package/components/SortableList/__testing__/types.d.ts.map +1 -0
- package/components/SortableList/constants.d.ts +14 -0
- package/components/SortableList/constants.d.ts.map +1 -0
- package/components/SortableList/constants.js +18 -0
- package/components/SortableList/dictionary.d.ts +3 -0
- package/components/SortableList/dictionary.d.ts.map +1 -0
- package/components/SortableList/dictionary.js +6 -0
- package/components/SortableList/helpers.d.ts +12 -0
- package/components/SortableList/helpers.d.ts.map +1 -0
- package/components/SortableList/helpers.js +35 -0
- package/components/SortableList/index.d.ts +4 -0
- package/components/SortableList/index.d.ts.map +1 -0
- package/components/SortableList/slots/SortableListEnum.d.ts +10 -0
- package/components/SortableList/slots/SortableListEnum.d.ts.map +1 -0
- package/components/SortableList/slots/SortableListEnum.js +4 -0
- package/components/SortableList/slots/SortableListSlots.d.ts +9 -0
- package/components/SortableList/slots/SortableListSlots.d.ts.map +1 -0
- package/components/SortableList/slots/SortableListSlots.js +38 -0
- package/components/SortableList/slots/index.d.ts +2 -0
- package/components/SortableList/slots/index.d.ts.map +1 -0
- package/components/SortableList/subcomponents/SortableListItem/SortableListItem.d.ts +4 -0
- package/components/SortableList/subcomponents/SortableListItem/SortableListItem.d.ts.map +1 -0
- package/components/SortableList/subcomponents/SortableListItem/SortableListItem.js +103 -0
- package/components/SortableList/types.d.ts +80 -0
- package/components/SortableList/types.d.ts.map +1 -0
- package/components/SortableList/vendor.d.ts +7 -0
- package/components/SortableList/vendor.d.ts.map +1 -0
- package/components/SortableList/vendor.js +10 -0
- package/components/Stepper/Stepper.d.ts +3 -2
- package/components/Stepper/Stepper.d.ts.map +1 -1
- package/components/Stepper/Stepper.js +48 -35
- package/components/Stepper/Stepper.styles.d.ts.map +1 -1
- package/components/Stepper/Stepper.styles.js +141 -99
- package/components/Stepper/constants.d.ts +6 -0
- package/components/Stepper/constants.d.ts.map +1 -1
- package/components/Stepper/constants.js +8 -2
- package/components/Stepper/dictionary.d.ts +1 -0
- package/components/Stepper/dictionary.d.ts.map +1 -1
- package/components/Stepper/dictionary.js +1 -0
- package/components/Stepper/hooks/useDynamicValidation/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useDynamicValidation/index.js +44 -42
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts +4 -3
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.js +19 -15
- package/components/Stepper/hooks/useStepper/index.d.ts +3 -0
- package/components/Stepper/hooks/useStepper/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useStepper/index.js +12 -8
- package/components/Stepper/hooks/useStepperActions/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useStepperActions/index.js +40 -38
- package/components/Stepper/hooks/useStepperLayout/useStepperLayout.d.ts +9 -0
- package/components/Stepper/hooks/useStepperLayout/useStepperLayout.d.ts.map +1 -0
- package/components/Stepper/hooks/useStepperLayout/useStepperLayout.js +54 -0
- package/components/Stepper/slots/StepperEnum.d.ts +1 -0
- package/components/Stepper/slots/StepperEnum.d.ts.map +1 -1
- package/components/Stepper/slots/StepperEnum.js +3 -3
- package/components/Stepper/slots/StepperSlot.d.ts +3 -0
- package/components/Stepper/slots/StepperSlot.d.ts.map +1 -1
- package/components/Stepper/slots/StepperSlot.js +21 -17
- package/components/Stepper/subcomponents/ContentArea/index.d.ts +1 -0
- package/components/Stepper/subcomponents/ContentArea/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/ContentArea/index.js +17 -16
- package/components/Stepper/subcomponents/StepArea/index.d.ts +3 -1
- package/components/Stepper/subcomponents/StepArea/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepArea/index.js +32 -29
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts +1 -0
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +20 -20
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts +4 -2
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +7 -7
- package/components/Stepper/subcomponents/StepperSideList/StepperSideList.d.ts +9 -0
- package/components/Stepper/subcomponents/StepperSideList/StepperSideList.d.ts.map +1 -0
- package/components/Stepper/subcomponents/StepperSideList/StepperSideList.js +33 -0
- package/components/Stepper/tests/responsive/fixtures.d.ts +7 -0
- package/components/Stepper/tests/responsive/fixtures.d.ts.map +1 -0
- package/components/Stepper/tests/responsive/observer.d.ts +34 -0
- package/components/Stepper/tests/responsive/observer.d.ts.map +1 -0
- package/components/Stepper/tests/responsive/types.d.ts +27 -0
- package/components/Stepper/tests/responsive/types.d.ts.map +1 -0
- package/components/Stepper/types.d.ts +70 -3
- package/components/Stepper/types.d.ts.map +1 -1
- package/components/WindowBase/icons.d.ts +0 -6
- package/components/WindowBase/icons.d.ts.map +1 -1
- package/components/WindowBase/icons.js +13 -20
- package/components/datagrids/formatters/ColumnDurationFormatter/__testing__/types.d.ts +8 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/__testing__/types.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/index.d.ts +3 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/index.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/types.d.ts +5 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/types.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/useColumnDuration.d.ts +9 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/useColumnDuration.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/useColumnDuration.js +14 -0
- package/components/datagrids/formatters/index.d.ts +1 -0
- package/components/datagrids/formatters/index.d.ts.map +1 -1
- package/components/extended/Re-resizable/ResizablePanel.d.ts +4 -0
- package/components/extended/Re-resizable/ResizablePanel.d.ts.map +1 -0
- package/components/extended/Re-resizable/ResizablePanel.js +75 -0
- package/components/extended/Re-resizable/ResizablePanel.styles.d.ts +3 -0
- package/components/extended/Re-resizable/ResizablePanel.styles.d.ts.map +1 -0
- package/components/extended/Re-resizable/ResizablePanel.styles.js +65 -0
- package/components/extended/Re-resizable/constants.d.ts +18 -0
- package/components/extended/Re-resizable/constants.d.ts.map +1 -0
- package/components/extended/Re-resizable/constants.js +25 -0
- package/components/extended/Re-resizable/helpers.d.ts +6 -0
- package/components/extended/Re-resizable/helpers.d.ts.map +1 -0
- package/components/extended/Re-resizable/helpers.js +22 -0
- package/components/extended/Re-resizable/hooks/useResizablePanel.d.ts +4 -0
- package/components/extended/Re-resizable/hooks/useResizablePanel.d.ts.map +1 -0
- package/components/extended/Re-resizable/hooks/useResizablePanel.js +113 -0
- package/components/extended/Re-resizable/index.d.ts +3 -0
- package/components/extended/Re-resizable/index.d.ts.map +1 -0
- package/components/extended/Re-resizable/slots/slots.d.ts +5 -0
- package/components/extended/Re-resizable/slots/slots.d.ts.map +1 -0
- package/components/extended/Re-resizable/slots/slots.js +4 -0
- package/components/extended/Re-resizable/slots/styled.d.ts +19 -0
- package/components/extended/Re-resizable/slots/styled.d.ts.map +1 -0
- package/components/extended/Re-resizable/slots/styled.js +10 -0
- package/components/extended/Re-resizable/tests/engineBoundary.d.ts +33 -0
- package/components/extended/Re-resizable/tests/engineBoundary.d.ts.map +1 -0
- package/components/extended/Re-resizable/tests/fixtures.d.ts +7 -0
- package/components/extended/Re-resizable/tests/fixtures.d.ts.map +1 -0
- package/components/extended/Re-resizable/tests/observerBoundary.d.ts +28 -0
- package/components/extended/Re-resizable/tests/observerBoundary.d.ts.map +1 -0
- package/components/extended/Re-resizable/tests/types.d.ts +7 -0
- package/components/extended/Re-resizable/tests/types.d.ts.map +1 -0
- package/components/extended/Re-resizable/types.d.ts +67 -0
- package/components/extended/Re-resizable/types.d.ts.map +1 -0
- package/components/extended/index.d.ts +1 -0
- package/components/extended/index.d.ts.map +1 -1
- package/components/extended/mui/MenuItem/MenuItem.d.ts.map +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +13 -15
- package/components/extended/mui/Switch/Switch.styles.d.ts.map +1 -1
- package/components/extended/mui/Switch/Switch.styles.js +39 -27
- package/components/formatters/DurationFormatter/DurationFormatter.d.ts +6 -0
- package/components/formatters/DurationFormatter/DurationFormatter.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/DurationFormatter.js +49 -0
- package/components/formatters/DurationFormatter/DurationFormatter.styles.d.ts +3 -0
- package/components/formatters/DurationFormatter/DurationFormatter.styles.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/DurationFormatter.styles.js +8 -0
- package/components/formatters/DurationFormatter/constants.d.ts +2 -0
- package/components/formatters/DurationFormatter/constants.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/constants.js +4 -0
- package/components/formatters/DurationFormatter/hooks/useDurationFormatter.d.ts +4 -0
- package/components/formatters/DurationFormatter/hooks/useDurationFormatter.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/hooks/useDurationFormatter.js +21 -0
- package/components/formatters/DurationFormatter/index.d.ts +4 -0
- package/components/formatters/DurationFormatter/index.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterEnum.d.ts +4 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterEnum.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterEnum.js +4 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterSlots.d.ts +3 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterSlots.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterSlots.js +12 -0
- package/components/formatters/DurationFormatter/types.d.ts +28 -0
- package/components/formatters/DurationFormatter/types.d.ts.map +1 -0
- package/components/formatters/index.d.ts +1 -0
- package/components/formatters/index.d.ts.map +1 -1
- package/components/hook-form/RHFHelperError/index.d.ts +1 -1
- package/components/hook-form/RHFHelperError/index.d.ts.map +1 -1
- package/components/hook-form/RHFHelperError/index.js +7 -11
- package/components/hook-form/RHFHoursOfWeekPicker/RHFHoursOfWeekPicker.d.ts.map +1 -1
- package/components/hook-form/RHFHoursOfWeekPicker/RHFHoursOfWeekPicker.js +12 -8
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +226 -143
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +99 -29
- package/components/hook-form/RHFRadioGroup/constants.d.ts +4 -2
- package/components/hook-form/RHFRadioGroup/constants.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/constants.js +4 -3
- package/components/hook-form/RHFRadioGroup/index.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/index.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/layoutHelpers.d.ts +8 -0
- package/components/hook-form/RHFRadioGroup/layoutHelpers.d.ts.map +1 -0
- package/components/hook-form/RHFRadioGroup/layoutHelpers.js +23 -0
- package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +3 -0
- package/components/hook-form/RHFRadioGroup/slots/slots.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/slots.js +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +8 -2
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.js +40 -26
- package/components/hook-form/RHFRadioGroup/types.d.ts +51 -13
- package/components/hook-form/RHFRadioGroup/types.d.ts.map +1 -1
- package/components/hook-form/RHFSortableList/RHFSortableList.d.ts +5 -0
- package/components/hook-form/RHFSortableList/RHFSortableList.d.ts.map +1 -0
- package/components/hook-form/RHFSortableList/RHFSortableList.js +49 -0
- package/components/hook-form/RHFSortableList/index.d.ts +3 -0
- package/components/hook-form/RHFSortableList/index.d.ts.map +1 -0
- package/components/hook-form/RHFSortableList/types.d.ts +19 -0
- package/components/hook-form/RHFSortableList/types.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/RHFormProvider.d.ts +5 -5
- package/components/hook-form/RHFormProvider/RHFormProvider.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/RHFormProvider.js +107 -60
- package/components/hook-form/RHFormProvider/classes/index.d.ts +5 -0
- package/components/hook-form/RHFormProvider/classes/index.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/classes/index.js +19 -9
- package/components/hook-form/RHFormProvider/classes/types.d.ts +5 -0
- package/components/hook-form/RHFormProvider/classes/types.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/constants.d.ts +7 -0
- package/components/hook-form/RHFormProvider/constants.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/constants.js +9 -0
- package/components/hook-form/RHFormProvider/dictionary.d.ts +15 -0
- package/components/hook-form/RHFormProvider/dictionary.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/dictionary.js +17 -2
- package/components/hook-form/RHFormProvider/dictionaryDefaults.d.ts +32 -0
- package/components/hook-form/RHFormProvider/dictionaryDefaults.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/dictionaryDefaults.js +37 -0
- package/components/hook-form/RHFormProvider/hooks/useFormInteractionBoundary.d.ts +21 -0
- package/components/hook-form/RHFormProvider/hooks/useFormInteractionBoundary.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/hooks/useFormInteractionBoundary.js +56 -0
- package/components/hook-form/RHFormProvider/hooks/useGuardedFormMethods.d.ts +25 -0
- package/components/hook-form/RHFormProvider/hooks/useGuardedFormMethods.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/hooks/useGuardedFormMethods.js +29 -0
- package/components/hook-form/RHFormProvider/index.d.ts +1 -1
- package/components/hook-form/RHFormProvider/index.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/styles.d.ts +8 -0
- package/components/hook-form/RHFormProvider/styles.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/styles.js +81 -5
- package/components/hook-form/RHFormProvider/tests/fixtures.d.ts +10 -0
- package/components/hook-form/RHFormProvider/tests/fixtures.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/tests/interactionFixture.d.ts +4 -0
- package/components/hook-form/RHFormProvider/tests/interactionFixture.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/tests/types.d.ts +23 -0
- package/components/hook-form/RHFormProvider/tests/types.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/types.d.ts +77 -40
- package/components/hook-form/RHFormProvider/types.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +2 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/contexts/form.d.ts +1 -0
- package/contexts/form.d.ts.map +1 -1
- package/index.js +733 -713
- package/package.json +11 -8
- package/components/HoursOfWeekPicker/helpers/copyDay/copyDay.d.ts +0 -4
- package/components/HoursOfWeekPicker/helpers/copyDay/copyDay.d.ts.map +0 -1
- package/components/HoursOfWeekPicker/helpers/copyDay/copyDay.js +0 -6
- package/components/MFLoader/reportTypes.d.ts +0 -19
- package/components/MFLoader/reportTypes.d.ts.map +0 -1
|
@@ -1,152 +1,159 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useRef as R } from "react";
|
|
3
3
|
import N from "clsx";
|
|
4
|
-
import { CHECKABLE_LIST_CLASSES as
|
|
5
|
-
import { useModuleDictionary as
|
|
6
|
-
import { DICCTIONARY as
|
|
7
|
-
import { useSizeContainer as
|
|
8
|
-
import { useStateRef as
|
|
9
|
-
import { Icon as
|
|
10
|
-
import { useCheckableListState as
|
|
11
|
-
import { useCheckableListItems as
|
|
12
|
-
import { useCheckableListSelection as
|
|
13
|
-
import { useCheckableListHandlers as
|
|
14
|
-
import { useCheckableListVirtualization as
|
|
15
|
-
import { useCheckableListRender as
|
|
16
|
-
import { RootStyled as V, LoadingContainerStyled as
|
|
17
|
-
import { Skeleton as
|
|
18
|
-
import { ImageText as
|
|
19
|
-
const
|
|
4
|
+
import { CHECKABLE_LIST_EMPTY_VALUES as Ge, CHECKABLE_LIST_EMPTY_ITEMS as ze, CHECKABLE_LIST_CLASSES as c, CHECKABLE_LIST_DEFAULT_ITEM_ROW_HEIGHT as Re } from "./constants.js";
|
|
5
|
+
import { useModuleDictionary as Ne } from "@m4l/core";
|
|
6
|
+
import { DICCTIONARY as d } from "./dictionary.js";
|
|
7
|
+
import { useSizeContainer as Ve } from "../../hooks/useSizeContainer/index.js";
|
|
8
|
+
import { useStateRef as Me } from "../../hooks/useStateRef/index.js";
|
|
9
|
+
import { Icon as Be, Typography as Oe } from "@m4l/base";
|
|
10
|
+
import { useCheckableListState as De } from "./hooks/useCheckableListState.js";
|
|
11
|
+
import { useCheckableListItems as Ke } from "./hooks/useCheckableListItems.js";
|
|
12
|
+
import { useCheckableListSelection as Qe } from "./hooks/useCheckableListSelection.js";
|
|
13
|
+
import { useCheckableListHandlers as Fe } from "./hooks/useCheckableListHandlers.js";
|
|
14
|
+
import { useCheckableListVirtualization as Pe } from "./hooks/useCheckableListVirtualization.js";
|
|
15
|
+
import { useCheckableListRender as Ue } from "./hooks/useCheckableListRender.js";
|
|
16
|
+
import { RootStyled as V, LoadingContainerStyled as We, SearchContainerStyled as Ye, SearchInputStyled as je, SelectAllContainerStyled as qe, SelectAllCheckboxStyled as Je, ChipCountTypografyStyled as Xe, ListContainerStyled as Ze, VirtualizedListStyled as $e, VirtualContainerStyled as et, VirtualRowStyled as tt, EmptyMessageWrapperStyled as rt } from "./slots/styled.js";
|
|
17
|
+
import { Skeleton as lt } from "../extended/mui/Skeleton/Skeleton.js";
|
|
18
|
+
import { ImageText as at } from "../ImageText/ImageText.js";
|
|
19
|
+
const xt = (M) => {
|
|
20
20
|
const {
|
|
21
|
-
value:
|
|
21
|
+
value: a = Ge,
|
|
22
22
|
onChange: B,
|
|
23
|
-
items:
|
|
24
|
-
groups:
|
|
23
|
+
items: O = ze,
|
|
24
|
+
groups: p,
|
|
25
25
|
multiple: o = !0,
|
|
26
|
-
selectAll:
|
|
27
|
-
selectAllLabel:
|
|
28
|
-
selectAllCount:
|
|
29
|
-
groupable:
|
|
30
|
-
expandAllGroups:
|
|
31
|
-
searchable:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
selectAll: D = !1,
|
|
27
|
+
selectAllLabel: y,
|
|
28
|
+
selectAllCount: K,
|
|
29
|
+
groupable: Q = !0,
|
|
30
|
+
expandAllGroups: F = !0,
|
|
31
|
+
searchable: P = !1,
|
|
32
|
+
searchEndAdornment: U,
|
|
33
|
+
searchHelperText: W,
|
|
34
|
+
filterFn: Y,
|
|
35
|
+
onSearchChange: j,
|
|
36
|
+
size: n = "medium",
|
|
37
|
+
variant: I = "standard",
|
|
38
|
+
width: q = "100%",
|
|
39
|
+
checkboxSize: L = "medium",
|
|
40
|
+
showCheckboxOnGroup: J = !0,
|
|
41
|
+
indeterminateBehavior: X = "indicate-some",
|
|
42
|
+
className: x,
|
|
43
|
+
"data-testid": E,
|
|
44
|
+
ariaLabel: _,
|
|
45
|
+
ariaLabelledBy: T,
|
|
46
|
+
renderItem: Z,
|
|
47
|
+
renderGroup: $,
|
|
48
|
+
loading: ee = !1,
|
|
49
|
+
disabled: u = !1,
|
|
48
50
|
readOnly: e = !1,
|
|
49
|
-
measureImmediately:
|
|
50
|
-
itemRowHeight:
|
|
51
|
-
groupRowHeight:
|
|
52
|
-
|
|
51
|
+
measureImmediately: te = !1,
|
|
52
|
+
itemRowHeight: re,
|
|
53
|
+
groupRowHeight: le,
|
|
54
|
+
uppercaseGroupLabels: ae = !1,
|
|
55
|
+
groupCountVariant: oe = "neutral"
|
|
56
|
+
} = M, ne = u || e, ie = P && !e, A = R(null), [se, ce] = Me(null), h = Ve(se, {
|
|
53
57
|
// excludePadding: true,
|
|
54
|
-
leading:
|
|
55
|
-
}), { getLabel:
|
|
56
|
-
|
|
58
|
+
leading: te
|
|
59
|
+
}), { getLabel: i } = Ne(), s = R(h?.containerHeight ?? 0);
|
|
60
|
+
s.current !== h?.containerHeight && h?.containerHeight !== 0 && (s.current = h?.containerHeight ?? 0);
|
|
57
61
|
const {
|
|
58
|
-
searchQuery:
|
|
59
|
-
setSearchQuery:
|
|
60
|
-
expandedGroups:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
isGrouped: p,
|
|
62
|
+
searchQuery: H,
|
|
63
|
+
setSearchQuery: de,
|
|
64
|
+
expandedGroups: k,
|
|
65
|
+
handleGroupExpandToggle: ue
|
|
66
|
+
} = De({
|
|
67
|
+
groups: p,
|
|
68
|
+
expandAllGroups: F
|
|
69
|
+
}), he = e ? "" : H, {
|
|
70
|
+
isGrouped: m,
|
|
68
71
|
normalizedItems: S,
|
|
69
|
-
filteredItems:
|
|
70
|
-
filteredGroups:
|
|
71
|
-
virtualizedItems:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
filteredItems: me,
|
|
73
|
+
filteredGroups: g,
|
|
74
|
+
virtualizedItems: v,
|
|
75
|
+
groupHeaderIndexes: pe
|
|
76
|
+
} = Ke({
|
|
77
|
+
items: O,
|
|
78
|
+
groups: p,
|
|
79
|
+
selectedValues: a,
|
|
76
80
|
readOnly: e,
|
|
77
|
-
searchQuery:
|
|
78
|
-
filterFn:
|
|
79
|
-
expandedGroups:
|
|
80
|
-
}),
|
|
81
|
-
getGroupItems:
|
|
82
|
-
isItemSelected:
|
|
83
|
-
isGroupFullySelected:
|
|
84
|
-
|
|
85
|
-
areAllItemsSelected:
|
|
86
|
-
areSomeItemsSelected:
|
|
87
|
-
} =
|
|
88
|
-
value:
|
|
81
|
+
searchQuery: he,
|
|
82
|
+
filterFn: Y,
|
|
83
|
+
expandedGroups: k
|
|
84
|
+
}), Se = e ? g : p, {
|
|
85
|
+
getGroupItems: w,
|
|
86
|
+
isItemSelected: G,
|
|
87
|
+
isGroupFullySelected: ge,
|
|
88
|
+
getGroupSelectionState: fe,
|
|
89
|
+
areAllItemsSelected: f,
|
|
90
|
+
areSomeItemsSelected: be
|
|
91
|
+
} = Qe({
|
|
92
|
+
value: a,
|
|
89
93
|
normalizedItems: S,
|
|
90
|
-
groups:
|
|
91
|
-
isGrouped:
|
|
92
|
-
}), { handleItemToggle:
|
|
93
|
-
value:
|
|
94
|
+
groups: Se,
|
|
95
|
+
isGrouped: m
|
|
96
|
+
}), { handleItemToggle: Ce, handleGroupToggle: ye, handleSelectAllToggle: Ie } = Fe({
|
|
97
|
+
value: a,
|
|
94
98
|
onChange: B,
|
|
95
99
|
multiple: o,
|
|
96
|
-
disabled:
|
|
100
|
+
disabled: ne,
|
|
97
101
|
normalizedItems: S,
|
|
98
|
-
getGroupItems:
|
|
99
|
-
isGroupFullySelected:
|
|
100
|
-
isItemSelected:
|
|
101
|
-
areAllItemsSelected:
|
|
102
|
-
}), { virtualizer:
|
|
103
|
-
virtualizedItems:
|
|
104
|
-
|
|
105
|
-
defaultItemRowHeight:
|
|
106
|
-
defaultGroupRowHeight:
|
|
107
|
-
scrollElementRef:
|
|
108
|
-
}), { renderVirtualizedItem:
|
|
109
|
-
isItemSelected:
|
|
110
|
-
disabled:
|
|
102
|
+
getGroupItems: w,
|
|
103
|
+
isGroupFullySelected: ge,
|
|
104
|
+
isItemSelected: G,
|
|
105
|
+
areAllItemsSelected: f
|
|
106
|
+
}), { virtualizer: Le, virtualItems: xe, totalSize: Ee, activeStickyIndex: _e } = Pe({
|
|
107
|
+
virtualizedItems: v,
|
|
108
|
+
groupHeaderIndexes: pe,
|
|
109
|
+
defaultItemRowHeight: re ?? (e ? Re : void 0),
|
|
110
|
+
defaultGroupRowHeight: le,
|
|
111
|
+
scrollElementRef: A
|
|
112
|
+
}), { renderVirtualizedItem: Te, urlIconSearch: Ae, urlIconNoResults: He } = Ue({
|
|
113
|
+
isItemSelected: G,
|
|
114
|
+
disabled: u,
|
|
111
115
|
readOnly: e,
|
|
112
|
-
size:
|
|
113
|
-
variant:
|
|
114
|
-
checkboxSize:
|
|
116
|
+
size: n,
|
|
117
|
+
variant: I,
|
|
118
|
+
checkboxSize: L,
|
|
115
119
|
multiple: o,
|
|
116
|
-
handleItemToggle:
|
|
117
|
-
renderItem:
|
|
118
|
-
expandedGroups:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
120
|
+
handleItemToggle: Ce,
|
|
121
|
+
renderItem: Z,
|
|
122
|
+
expandedGroups: k,
|
|
123
|
+
grouped: m,
|
|
124
|
+
groups: g,
|
|
125
|
+
uppercaseGroupLabels: ae,
|
|
126
|
+
groupCountVariant: oe,
|
|
127
|
+
getGroupSelectionState: fe,
|
|
128
|
+
getGroupItems: w,
|
|
129
|
+
indeterminateBehavior: X,
|
|
130
|
+
renderGroup: $,
|
|
131
|
+
groupable: Q,
|
|
132
|
+
// Single selection cannot select an entire group: its batch checkbox
|
|
133
|
+
// would select multiple items simultaneously, which
|
|
134
|
+
// multiple={false} forbids.
|
|
135
|
+
showCheckboxOnGroup: o && J,
|
|
136
|
+
handleGroupExpandToggle: ue,
|
|
137
|
+
handleGroupToggle: ye
|
|
138
|
+
}), r = {
|
|
139
|
+
size: n,
|
|
140
|
+
variant: I,
|
|
141
|
+
disabled: u,
|
|
135
142
|
readOnly: e,
|
|
136
|
-
grouped:
|
|
137
|
-
hasSelected:
|
|
143
|
+
grouped: m,
|
|
144
|
+
hasSelected: a.length > 0
|
|
138
145
|
};
|
|
139
|
-
if (
|
|
146
|
+
if (ee)
|
|
140
147
|
return /* @__PURE__ */ t(
|
|
141
148
|
V,
|
|
142
149
|
{
|
|
143
|
-
ownerState:
|
|
144
|
-
className: N(
|
|
145
|
-
"data-testid":
|
|
146
|
-
"aria-label":
|
|
147
|
-
"aria-labelledby":
|
|
148
|
-
children: /* @__PURE__ */ t(
|
|
149
|
-
|
|
150
|
+
ownerState: r,
|
|
151
|
+
className: N(x, c.root),
|
|
152
|
+
"data-testid": E,
|
|
153
|
+
"aria-label": _ || "checkable list",
|
|
154
|
+
"aria-labelledby": T,
|
|
155
|
+
children: /* @__PURE__ */ t(We, { ownerState: r, children: /* @__PURE__ */ t(
|
|
156
|
+
lt,
|
|
150
157
|
{
|
|
151
158
|
variant: "rectangular",
|
|
152
159
|
width: "100%",
|
|
@@ -158,118 +165,127 @@ const St = (O) => {
|
|
|
158
165
|
) })
|
|
159
166
|
}
|
|
160
167
|
);
|
|
161
|
-
const
|
|
162
|
-
return /* @__PURE__ */
|
|
168
|
+
const b = m ? g.length > 0 : me.length > 0, ke = e ? S.length : a.length, ve = D && o && (b || e), we = !e && !b;
|
|
169
|
+
return /* @__PURE__ */ C(
|
|
163
170
|
V,
|
|
164
171
|
{
|
|
165
|
-
ownerState:
|
|
166
|
-
className: N(
|
|
167
|
-
"data-testid":
|
|
172
|
+
ownerState: r,
|
|
173
|
+
className: N(x, c.root),
|
|
174
|
+
"data-testid": E,
|
|
168
175
|
"data-readonly": e ? "true" : void 0,
|
|
169
176
|
role: "group",
|
|
170
|
-
"aria-label":
|
|
171
|
-
"aria-labelledby":
|
|
177
|
+
"aria-label": _ || "checkable list",
|
|
178
|
+
"aria-labelledby": T,
|
|
172
179
|
children: [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
180
|
+
ie && /* @__PURE__ */ C(Ye, { ownerState: r, role: "search", children: [
|
|
181
|
+
/* @__PURE__ */ t(
|
|
182
|
+
je,
|
|
183
|
+
{
|
|
184
|
+
role: "searchbox",
|
|
185
|
+
"aria-label": "search",
|
|
186
|
+
ownerState: r,
|
|
187
|
+
value: H,
|
|
188
|
+
onChange: (l) => {
|
|
189
|
+
de(l.target.value), j?.(l.target.value);
|
|
190
|
+
},
|
|
191
|
+
placeholder: i(d.label_search_placeholder),
|
|
192
|
+
size: n,
|
|
193
|
+
className: c.searchInput,
|
|
194
|
+
variant: "contained",
|
|
195
|
+
InputProps: {
|
|
196
|
+
startAdornment: /* @__PURE__ */ t(Be, { src: Ae }),
|
|
197
|
+
endAdornment: U
|
|
198
|
+
}
|
|
189
199
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
200
|
+
),
|
|
201
|
+
W
|
|
202
|
+
] }),
|
|
203
|
+
ve && /* @__PURE__ */ C(
|
|
204
|
+
qe,
|
|
194
205
|
{
|
|
195
|
-
ownerState:
|
|
196
|
-
className:
|
|
206
|
+
ownerState: r,
|
|
207
|
+
className: c.selectAllContainer,
|
|
197
208
|
role: "group",
|
|
198
209
|
"aria-label": e ? "Todos" : "Seleccionar todo",
|
|
199
210
|
children: [
|
|
200
211
|
e ? /* @__PURE__ */ t(
|
|
201
|
-
|
|
212
|
+
Oe,
|
|
202
213
|
{
|
|
203
214
|
color: "text.secondary",
|
|
204
215
|
component: "span",
|
|
205
|
-
size:
|
|
216
|
+
size: n,
|
|
206
217
|
variant: "bodyStandard",
|
|
207
|
-
children:
|
|
218
|
+
children: y ?? i(d.label_select_all)
|
|
208
219
|
}
|
|
209
220
|
) : /* @__PURE__ */ t(
|
|
210
|
-
|
|
221
|
+
Je,
|
|
211
222
|
{
|
|
212
|
-
checked:
|
|
213
|
-
indeterminate:
|
|
214
|
-
disabled:
|
|
215
|
-
size:
|
|
216
|
-
onChange:
|
|
217
|
-
inlineText:
|
|
223
|
+
checked: f,
|
|
224
|
+
indeterminate: be && !f,
|
|
225
|
+
disabled: u,
|
|
226
|
+
size: L,
|
|
227
|
+
onChange: Ie,
|
|
228
|
+
inlineText: y ?? i(d.label_select_all)
|
|
218
229
|
}
|
|
219
230
|
),
|
|
220
231
|
/* @__PURE__ */ t(
|
|
221
|
-
|
|
232
|
+
Xe,
|
|
222
233
|
{
|
|
223
|
-
ownerState:
|
|
234
|
+
ownerState: r,
|
|
224
235
|
variant: "bodyStandard",
|
|
225
|
-
size:
|
|
236
|
+
size: n,
|
|
226
237
|
color: "text.disabled",
|
|
227
|
-
children:
|
|
238
|
+
children: K ?? ke
|
|
228
239
|
}
|
|
229
240
|
)
|
|
230
241
|
]
|
|
231
242
|
}
|
|
232
243
|
),
|
|
233
244
|
/* @__PURE__ */ t(
|
|
234
|
-
|
|
245
|
+
Ze,
|
|
235
246
|
{
|
|
236
|
-
ref:
|
|
237
|
-
ownerState: { ...
|
|
247
|
+
ref: ce,
|
|
248
|
+
ownerState: { ...r },
|
|
238
249
|
"data-readonly": e ? "true" : void 0,
|
|
239
250
|
"aria-multiselectable": o ? "true" : "false",
|
|
240
|
-
children:
|
|
241
|
-
|
|
251
|
+
children: b ? s.current > 0 ? /* @__PURE__ */ t(
|
|
252
|
+
$e,
|
|
242
253
|
{
|
|
243
|
-
ref:
|
|
254
|
+
ref: A,
|
|
244
255
|
ownerState: {
|
|
245
|
-
...
|
|
246
|
-
listHeight:
|
|
247
|
-
listWidth:
|
|
256
|
+
...r,
|
|
257
|
+
listHeight: s.current,
|
|
258
|
+
listWidth: q
|
|
248
259
|
},
|
|
249
|
-
className:
|
|
250
|
-
children: /* @__PURE__ */ t(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
260
|
+
className: c.virtualizedList,
|
|
261
|
+
children: /* @__PURE__ */ t(et, { ownerState: { ...r, totalSize: Ee }, children: xe.map((l) => {
|
|
262
|
+
const z = l.index === _e && l.size < s.current;
|
|
263
|
+
return /* @__PURE__ */ t(
|
|
264
|
+
tt,
|
|
265
|
+
{
|
|
266
|
+
ref: Le.measureElement,
|
|
267
|
+
"data-index": l.index,
|
|
268
|
+
ownerState: {
|
|
269
|
+
...r,
|
|
270
|
+
offsetTop: l.start,
|
|
271
|
+
isActiveSticky: z
|
|
272
|
+
},
|
|
273
|
+
children: Te({
|
|
274
|
+
index: l.index,
|
|
275
|
+
virtualizedItems: v,
|
|
276
|
+
isActiveSticky: z
|
|
277
|
+
})
|
|
258
278
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
})
|
|
263
|
-
},
|
|
264
|
-
a.key
|
|
265
|
-
)) })
|
|
279
|
+
l.key
|
|
280
|
+
);
|
|
281
|
+
}) })
|
|
266
282
|
}
|
|
267
|
-
) : null :
|
|
268
|
-
|
|
283
|
+
) : null : we ? /* @__PURE__ */ t(rt, { ownerState: r, role: "status", "aria-live": "polite", children: /* @__PURE__ */ t(
|
|
284
|
+
at,
|
|
269
285
|
{
|
|
270
|
-
title:
|
|
271
|
-
message:
|
|
272
|
-
imageUrl:
|
|
286
|
+
title: i(d.label_no_results),
|
|
287
|
+
message: i(d.label_no_results_description),
|
|
288
|
+
imageUrl: He
|
|
273
289
|
}
|
|
274
290
|
) }) : null
|
|
275
291
|
}
|
|
@@ -279,5 +295,5 @@ const St = (O) => {
|
|
|
279
295
|
);
|
|
280
296
|
};
|
|
281
297
|
export {
|
|
282
|
-
|
|
298
|
+
xt as CheckableList
|
|
283
299
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckableList.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CheckableList/CheckableList.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckableList.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CheckableList/CheckableList.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAO9C,eAAO,MAAM,mBAAmB,EAAE,mBA8VjC,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { getContrastTextColor as
|
|
2
|
-
import { CHECKABLE_LIST_DEFAULT_MIN_HEIGHT as
|
|
1
|
+
import { getContrastTextColor as p } from "@m4l/graphics";
|
|
2
|
+
import { CHECKABLE_LIST_DEFAULT_MIN_HEIGHT as o } from "./constants.js";
|
|
3
|
+
import { TYPOGRAPHY_LETTER_SPACING as n, BASE_WEIGHT as t } from "@m4l/styles";
|
|
4
|
+
import { resolveGroupEdgeColors as r } from "./helpers/resolveGroupEdgeColors.js";
|
|
3
5
|
import { getSizeStyles as e } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
4
|
-
const
|
|
6
|
+
const b = {
|
|
5
7
|
/**
|
|
6
8
|
* Root slot for the main component container.
|
|
7
9
|
*/
|
|
8
10
|
root: ({ theme: i, ownerState: s }) => ({
|
|
9
11
|
width: "100%",
|
|
10
12
|
minWidth: 0,
|
|
11
|
-
minHeight:
|
|
13
|
+
minHeight: o,
|
|
12
14
|
flex: "1 1 auto",
|
|
13
15
|
overflow: "hidden",
|
|
14
16
|
display: "flex",
|
|
@@ -24,6 +26,9 @@ const d = {
|
|
|
24
26
|
*/
|
|
25
27
|
searchContainer: ({ theme: i }) => ({
|
|
26
28
|
width: "100%",
|
|
29
|
+
display: "flex",
|
|
30
|
+
flexDirection: "column",
|
|
31
|
+
gap: i.vars.size.baseSpacings.sp1,
|
|
27
32
|
padding: i.vars.size.baseSpacings.sp1
|
|
28
33
|
}),
|
|
29
34
|
/**
|
|
@@ -112,11 +117,10 @@ const d = {
|
|
|
112
117
|
* not cover the band and consecutive selected rows looked detached.
|
|
113
118
|
*/
|
|
114
119
|
virtualRow: ({ ownerState: i }) => ({
|
|
115
|
-
position: "absolute",
|
|
116
120
|
top: 0,
|
|
117
121
|
left: 0,
|
|
118
122
|
width: "100%",
|
|
119
|
-
transform: `translateY(${i?.offsetTop ?? 0}px)`
|
|
123
|
+
...i?.isActiveSticky ? { position: "sticky", zIndex: 1 } : { position: "absolute", transform: `translateY(${i?.offsetTop ?? 0}px)` }
|
|
120
124
|
}),
|
|
121
125
|
/**
|
|
122
126
|
* Item wrapper slot.
|
|
@@ -142,6 +146,11 @@ const d = {
|
|
|
142
146
|
paddingBottom: i.vars.size.baseSpacings.sp1,
|
|
143
147
|
paddingLeft: i.vars.size.baseSpacings.sp3,
|
|
144
148
|
paddingRight: i.vars.size.baseSpacings["sp2-5"]
|
|
149
|
+
},
|
|
150
|
+
...s?.grouped && {
|
|
151
|
+
paddingLeft: `calc(${i.vars.size.baseSpacings.sp2} + ${i.vars.size.baseSpacings.sp3})`,
|
|
152
|
+
// Virtual group wrappers contain headers only; each child owns its flush-left border.
|
|
153
|
+
borderLeft: `3px solid ${r(i, s.groupColor).row}`
|
|
145
154
|
}
|
|
146
155
|
}),
|
|
147
156
|
/**
|
|
@@ -201,11 +210,8 @@ const d = {
|
|
|
201
210
|
groupWrapper: ({ theme: i, ownerState: s }) => ({
|
|
202
211
|
display: "flex",
|
|
203
212
|
flexDirection: "column",
|
|
204
|
-
backgroundColor: s?.selected && !s?.readOnly ? i.vars.palette.primary.opacity : "transparent"
|
|
205
|
-
|
|
206
|
-
"&:last-child": {
|
|
207
|
-
borderBottom: "none"
|
|
208
|
-
}
|
|
213
|
+
backgroundColor: s?.selected && !s?.readOnly ? i.vars.palette.primary.opacity : "transparent"
|
|
214
|
+
// The header owns the single divider, including collapsed groups.
|
|
209
215
|
}),
|
|
210
216
|
/**
|
|
211
217
|
* Group header slot.
|
|
@@ -217,7 +223,9 @@ const d = {
|
|
|
217
223
|
gap: i.vars.size.baseSpacings.sp1,
|
|
218
224
|
padding: i.vars.size.baseSpacings["sp1-5"],
|
|
219
225
|
paddingLeft: i.vars.size.baseSpacings.sp2,
|
|
220
|
-
//
|
|
226
|
+
// The edge, divider and label weight separate siblings without a header fill.
|
|
227
|
+
borderLeft: `3px solid ${r(i, s?.color).header}`,
|
|
228
|
+
borderBottom: `1px solid ${i.vars.palette.border.secondary}`,
|
|
221
229
|
cursor: "pointer",
|
|
222
230
|
...s?.readOnly && {
|
|
223
231
|
gap: i.vars.size.baseSpacings["sp1-5"],
|
|
@@ -225,6 +233,10 @@ const d = {
|
|
|
225
233
|
cursor: s?.disabled ? "default" : "pointer"
|
|
226
234
|
}
|
|
227
235
|
}),
|
|
236
|
+
/** Group body keeps custom content inside the available header width. */
|
|
237
|
+
groupContentWrapper: () => ({ flex: 1, minWidth: 0 }),
|
|
238
|
+
/** Only the active sticky header needs an opaque surface to hide scrolling rows beneath it. */
|
|
239
|
+
stickyGroupHeader: ({ theme: i, ownerState: s }) => s?.isActiveSticky ? { backgroundColor: i.vars.palette.background.default } : {},
|
|
228
240
|
/**
|
|
229
241
|
* Group checkbox slot.
|
|
230
242
|
*/
|
|
@@ -243,10 +255,12 @@ const d = {
|
|
|
243
255
|
/**
|
|
244
256
|
* Group label slot.
|
|
245
257
|
*/
|
|
246
|
-
groupLabel: ({ theme: i }) => ({
|
|
258
|
+
groupLabel: ({ theme: i, ownerState: s }) => ({
|
|
247
259
|
flex: 1,
|
|
248
|
-
|
|
249
|
-
|
|
260
|
+
fontWeight: t.semibold600,
|
|
261
|
+
letterSpacing: n,
|
|
262
|
+
color: i.vars.palette.text.secondary,
|
|
263
|
+
...s?.uppercaseGroupLabels && { textTransform: "uppercase" }
|
|
250
264
|
}),
|
|
251
265
|
/**
|
|
252
266
|
* Chip count slot.
|
|
@@ -256,8 +270,13 @@ const d = {
|
|
|
256
270
|
borderRadius: i.vars.size.borderRadius["r1-5"],
|
|
257
271
|
paddingLeft: i.vars.size.baseSpacings.sp1,
|
|
258
272
|
paddingRight: i.vars.size.baseSpacings.sp1,
|
|
259
|
-
|
|
260
|
-
|
|
273
|
+
...s?.groupCountVariant === "group-color" && s.color ? {
|
|
274
|
+
backgroundColor: s.color,
|
|
275
|
+
color: p(s.color)
|
|
276
|
+
} : {
|
|
277
|
+
backgroundColor: i.vars.palette.background.surface,
|
|
278
|
+
color: i.vars.palette.text.secondary
|
|
279
|
+
}
|
|
261
280
|
}
|
|
262
281
|
}),
|
|
263
282
|
/**
|
|
@@ -311,5 +330,5 @@ const d = {
|
|
|
311
330
|
})
|
|
312
331
|
};
|
|
313
332
|
export {
|
|
314
|
-
|
|
333
|
+
b as checkableListStyles
|
|
315
334
|
};
|