@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,239 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as N } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCallback as l } from "react";
|
|
3
|
+
import { CheckableListItemRow as F } from "../subcomponents/CheckableListItemRow/CheckableListItemRow.js";
|
|
4
|
+
import { CheckableListGroupRow as J } from "../subcomponents/CheckableListGroupRow/CheckableListGroupRow.js";
|
|
5
|
+
import { CHECKABLE_LIST_ICON_COMPONENTS as Q, ICONS as U } from "../icons.js";
|
|
6
|
+
import { LegacyS3NoItemSelectedNoSelectedOutlined as V } from "@m4l/icons";
|
|
7
|
+
const y = ({
|
|
7
8
|
isItemSelected: u,
|
|
8
|
-
disabled:
|
|
9
|
-
readOnly:
|
|
10
|
-
size:
|
|
11
|
-
variant:
|
|
12
|
-
checkboxSize:
|
|
13
|
-
multiple:
|
|
14
|
-
handleItemToggle:
|
|
15
|
-
renderItem:
|
|
16
|
-
expandedGroups:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
9
|
+
disabled: f = !1,
|
|
10
|
+
readOnly: r = !1,
|
|
11
|
+
size: c = "medium",
|
|
12
|
+
variant: C = "standard",
|
|
13
|
+
checkboxSize: e = "medium",
|
|
14
|
+
multiple: L = !0,
|
|
15
|
+
handleItemToggle: R,
|
|
16
|
+
renderItem: E,
|
|
17
|
+
expandedGroups: _,
|
|
18
|
+
getGroupSelectionState: d,
|
|
19
|
+
getGroupItems: i,
|
|
20
|
+
indeterminateBehavior: A = "indicate-some",
|
|
21
|
+
renderGroup: H,
|
|
22
|
+
groupable: S = !0,
|
|
23
|
+
showCheckboxOnGroup: j = !0,
|
|
24
|
+
handleGroupExpandToggle: k,
|
|
25
|
+
handleGroupToggle: w,
|
|
26
|
+
grouped: K = !1,
|
|
27
|
+
groups: M,
|
|
28
|
+
uppercaseGroupLabels: O = !1,
|
|
29
|
+
groupCountVariant: P = "neutral"
|
|
26
30
|
}) => {
|
|
27
|
-
const
|
|
28
|
-
(t,
|
|
29
|
-
|
|
31
|
+
const q = Q[U.SEARCH], B = /* @__PURE__ */ N(V, {}), n = l(
|
|
32
|
+
(t, o, s) => /* @__PURE__ */ N(
|
|
33
|
+
F,
|
|
34
|
+
{
|
|
30
35
|
item: t,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
disabled:
|
|
34
|
-
readOnly:
|
|
35
|
-
size:
|
|
36
|
-
variant:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
children: t.label
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
t.description && /* @__PURE__ */ r(
|
|
49
|
-
Z,
|
|
50
|
-
{
|
|
51
|
-
ownerState: { size: d, variant: a },
|
|
52
|
-
variant: "bodyStandard",
|
|
53
|
-
color: "text.secondary",
|
|
54
|
-
disabled: e,
|
|
55
|
-
children: t.description
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] });
|
|
59
|
-
return /* @__PURE__ */ f(
|
|
60
|
-
v,
|
|
61
|
-
{
|
|
62
|
-
ownerState: { size: d, variant: a, disabled: e, readOnly: o, selected: n },
|
|
63
|
-
role: "option",
|
|
64
|
-
"aria-label": "item",
|
|
65
|
-
"aria-selected": n,
|
|
66
|
-
"aria-disabled": S,
|
|
67
|
-
onClick: S ? void 0 : () => b(t.id),
|
|
68
|
-
children: [
|
|
69
|
-
!o && h ? /* @__PURE__ */ r(
|
|
70
|
-
z,
|
|
71
|
-
{
|
|
72
|
-
checked: n,
|
|
73
|
-
disabled: e,
|
|
74
|
-
readOnly: o,
|
|
75
|
-
size: s,
|
|
76
|
-
onChange: (l) => {
|
|
77
|
-
l.stopPropagation(), !o && b(t.id);
|
|
78
|
-
},
|
|
79
|
-
onClick: (l) => l.stopPropagation()
|
|
80
|
-
}
|
|
81
|
-
) : null,
|
|
82
|
-
!o && !h ? /* @__PURE__ */ r(
|
|
83
|
-
O,
|
|
84
|
-
{
|
|
85
|
-
checked: n,
|
|
86
|
-
disabled: e,
|
|
87
|
-
readOnly: o,
|
|
88
|
-
size: s,
|
|
89
|
-
onChange: (l) => {
|
|
90
|
-
l.stopPropagation(), !o && b(t.id);
|
|
91
|
-
},
|
|
92
|
-
onClick: (l) => l.stopPropagation()
|
|
93
|
-
}
|
|
94
|
-
) : null,
|
|
95
|
-
t.icon && /* @__PURE__ */ r(tt, { children: t.icon }),
|
|
96
|
-
/* @__PURE__ */ r(ot, { children: g ?? k })
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
},
|
|
36
|
+
index: o,
|
|
37
|
+
checked: u(t.id),
|
|
38
|
+
disabled: f,
|
|
39
|
+
readOnly: r,
|
|
40
|
+
size: c,
|
|
41
|
+
variant: C,
|
|
42
|
+
checkboxSize: e,
|
|
43
|
+
multiple: L,
|
|
44
|
+
handleItemToggle: R,
|
|
45
|
+
renderItem: E,
|
|
46
|
+
grouped: K,
|
|
47
|
+
groupColor: s
|
|
48
|
+
}
|
|
49
|
+
),
|
|
101
50
|
[
|
|
102
51
|
u,
|
|
52
|
+
f,
|
|
53
|
+
r,
|
|
54
|
+
c,
|
|
103
55
|
C,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
h,
|
|
110
|
-
b
|
|
56
|
+
e,
|
|
57
|
+
L,
|
|
58
|
+
R,
|
|
59
|
+
E,
|
|
60
|
+
K
|
|
111
61
|
]
|
|
112
|
-
),
|
|
113
|
-
(t,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const E = (c) => {
|
|
118
|
-
c.stopPropagation(), !(e || !m) && G(t.id);
|
|
119
|
-
}, M = (c) => {
|
|
120
|
-
c.stopPropagation(), !S && R(t);
|
|
121
|
-
}, $ = l.filter(
|
|
122
|
-
(c) => u(c.id)
|
|
123
|
-
).length, q = _?.({
|
|
62
|
+
), I = l(
|
|
63
|
+
(t, o, s = !1) => /* @__PURE__ */ N(
|
|
64
|
+
J,
|
|
65
|
+
{
|
|
66
|
+
isActiveSticky: s,
|
|
124
67
|
group: t,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
children: t.label
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
/* @__PURE__ */ r(
|
|
148
|
-
rt,
|
|
149
|
-
{
|
|
150
|
-
ownerState: { size: d, variant: a, disabled: e, color: t.color },
|
|
151
|
-
children: o ? l.length : `${$}/${l.length}`
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
] }), J = q ?? F;
|
|
155
|
-
return (
|
|
156
|
-
// The group row keeps the label boundary while the toggle button exposes expansion state.
|
|
157
|
-
/* @__PURE__ */ r(
|
|
158
|
-
lt,
|
|
159
|
-
{
|
|
160
|
-
ownerState: { size: d, variant: a, grouped: !0, readOnly: o, selected: i === !0 },
|
|
161
|
-
role: "group",
|
|
162
|
-
"aria-label": t.label,
|
|
163
|
-
"aria-disabled": e,
|
|
164
|
-
children: /* @__PURE__ */ f(
|
|
165
|
-
dt,
|
|
166
|
-
{
|
|
167
|
-
ownerState: { size: d, variant: a, disabled: e, readOnly: o },
|
|
168
|
-
onClick: E,
|
|
169
|
-
children: [
|
|
170
|
-
A && !o && /* @__PURE__ */ r(
|
|
171
|
-
at,
|
|
172
|
-
{
|
|
173
|
-
checked: i === !0,
|
|
174
|
-
indeterminate: i === "indeterminate",
|
|
175
|
-
disabled: e,
|
|
176
|
-
readOnly: o,
|
|
177
|
-
size: s,
|
|
178
|
-
onChange: M,
|
|
179
|
-
onClick: (c) => c.stopPropagation()
|
|
180
|
-
}
|
|
181
|
-
),
|
|
182
|
-
t.icon && /* @__PURE__ */ r(ct, { children: t.icon }),
|
|
183
|
-
/* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: J }),
|
|
184
|
-
m && /* @__PURE__ */ r(
|
|
185
|
-
it,
|
|
186
|
-
{
|
|
187
|
-
size: d,
|
|
188
|
-
variant: "text",
|
|
189
|
-
icon: n ? j : H,
|
|
190
|
-
onClick: E,
|
|
191
|
-
"aria-expanded": n,
|
|
192
|
-
"aria-label": n ? "Colapsar grupo" : "Expandir grupo"
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
);
|
|
201
|
-
},
|
|
68
|
+
index: o,
|
|
69
|
+
isExpanded: _.has(t.id),
|
|
70
|
+
groupItems: i(t),
|
|
71
|
+
selection: d(t),
|
|
72
|
+
disabled: f,
|
|
73
|
+
readOnly: r,
|
|
74
|
+
size: c,
|
|
75
|
+
variant: C,
|
|
76
|
+
checkboxSize: e,
|
|
77
|
+
indeterminateBehavior: A,
|
|
78
|
+
renderGroup: H,
|
|
79
|
+
groupable: S,
|
|
80
|
+
showCheckboxOnGroup: j,
|
|
81
|
+
handleGroupExpandToggle: k,
|
|
82
|
+
handleGroupToggle: w,
|
|
83
|
+
uppercaseGroupLabels: O,
|
|
84
|
+
groupCountVariant: P
|
|
85
|
+
}
|
|
86
|
+
),
|
|
202
87
|
[
|
|
203
|
-
T,
|
|
204
|
-
C,
|
|
205
|
-
D,
|
|
206
|
-
w,
|
|
207
|
-
B,
|
|
208
|
-
W,
|
|
209
88
|
_,
|
|
89
|
+
i,
|
|
210
90
|
d,
|
|
211
|
-
|
|
91
|
+
f,
|
|
92
|
+
r,
|
|
93
|
+
c,
|
|
94
|
+
C,
|
|
95
|
+
e,
|
|
212
96
|
A,
|
|
213
|
-
o,
|
|
214
|
-
s,
|
|
215
|
-
m,
|
|
216
|
-
j,
|
|
217
97
|
H,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
98
|
+
S,
|
|
99
|
+
j,
|
|
100
|
+
k,
|
|
101
|
+
w,
|
|
102
|
+
O,
|
|
103
|
+
P
|
|
221
104
|
]
|
|
222
|
-
),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
[y, I]
|
|
228
|
-
);
|
|
229
|
-
return {
|
|
230
|
-
renderItemContent: I,
|
|
231
|
-
renderGroupContent: y,
|
|
232
|
-
renderVirtualizedItem: X,
|
|
233
|
-
urlIconSearch: K,
|
|
234
|
-
urlIconNoResults: V
|
|
235
|
-
};
|
|
105
|
+
), D = l(({ index: t, virtualizedItems: o, isActiveSticky: s = !1 }) => {
|
|
106
|
+
const m = o[t];
|
|
107
|
+
return m ? m.type === "group" ? I(m.data, t, s) : n(m.data, t, m.groupIndex === void 0 ? void 0 : M?.[m.groupIndex]?.color) : null;
|
|
108
|
+
}, [I, n, M]);
|
|
109
|
+
return { renderItemContent: n, renderGroupContent: I, renderVirtualizedItem: D, urlIconSearch: q, urlIconNoResults: B };
|
|
236
110
|
};
|
|
237
111
|
export {
|
|
238
|
-
|
|
112
|
+
y as useCheckableListRender
|
|
239
113
|
};
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
normalizedItems: CheckableListItem[];
|
|
5
|
-
groups?: CheckableListGroup[];
|
|
6
|
-
isGrouped: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Hook para manejar la lógica de selección del componente CheckableList
|
|
10
|
-
*/
|
|
1
|
+
import { CheckableListGroup, CheckableListItem } from '../types';
|
|
2
|
+
import { CheckableListGroupSelection, UseCheckableListSelectionProps } from './types';
|
|
3
|
+
/** Resolve selection membership and cache group statistics independently of scrolling. */
|
|
11
4
|
export declare const useCheckableListSelection: ({ value, normalizedItems, groups, isGrouped, }: UseCheckableListSelectionProps) => {
|
|
12
5
|
getGroupItems: (group: CheckableListGroup) => CheckableListItem[];
|
|
6
|
+
getGroupSelectionState: (group: CheckableListGroup) => CheckableListGroupSelection;
|
|
13
7
|
isItemSelected: (itemId: string | number) => boolean;
|
|
14
8
|
isGroupFullySelected: (group: CheckableListGroup) => boolean;
|
|
15
9
|
isGroupPartiallySelected: (group: CheckableListGroup) => boolean;
|
|
16
10
|
areAllItemsSelected: boolean;
|
|
17
11
|
areSomeItemsSelected: boolean;
|
|
18
12
|
};
|
|
19
|
-
export {};
|
|
20
13
|
//# sourceMappingURL=useCheckableListSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckableListSelection.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/hooks/useCheckableListSelection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useCheckableListSelection.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/hooks/useCheckableListSelection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,KAAK,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAG3F,0FAA0F;AAC1F,eAAO,MAAM,yBAAyB,GAAI,gDAEvC,8BAA8B;2BAUW,kBAAkB;oCAqBT,kBAAkB;6BAjBzB,MAAM,GAAG,MAAM;kCAqBV,kBAAkB;sCAEd,kBAAkB;;;CAaxE,CAAC"}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useMemo as n, useCallback as S } from "react";
|
|
2
|
+
import { CHECKABLE_LIST_EMPTY_ITEMS as M, CHECKABLE_LIST_EMPTY_GROUP_SELECTION as T } from "../constants.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
value: d,
|
|
5
|
+
normalizedItems: c,
|
|
6
|
+
groups: r,
|
|
7
|
+
isGrouped: u
|
|
7
8
|
}) => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
), t =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
).length;
|
|
28
|
-
return s > 0 && s < r.length;
|
|
29
|
-
},
|
|
30
|
-
[l, t]
|
|
31
|
-
), h = f(() => n.length === 0 ? !1 : n.every((e) => t(e.id)), [n, t]), S = f(() => n.length === 0 ? !1 : n.some((e) => t(e.id)), [n, t]);
|
|
9
|
+
const t = n(() => new Set(d), [d]), a = n(() => {
|
|
10
|
+
const e = /* @__PURE__ */ new Map();
|
|
11
|
+
return u && r && r.forEach((o) => e.set(o.id, o.items)), e;
|
|
12
|
+
}, [r, u]), y = S((e) => a.get(e.id) ?? M, [a]), h = S((e) => t.has(e), [t]), E = n(() => {
|
|
13
|
+
const e = /* @__PURE__ */ new Map();
|
|
14
|
+
return a.forEach((o, G) => {
|
|
15
|
+
let s = 0;
|
|
16
|
+
o.forEach((L) => {
|
|
17
|
+
t.has(L.id) && (s += 1);
|
|
18
|
+
});
|
|
19
|
+
const i = o.length;
|
|
20
|
+
e.set(G, {
|
|
21
|
+
selectedCount: s,
|
|
22
|
+
totalCount: i,
|
|
23
|
+
fullySelected: i > 0 && s === i,
|
|
24
|
+
partiallySelected: s > 0 && s < i
|
|
25
|
+
});
|
|
26
|
+
}), e;
|
|
27
|
+
}, [a, t]), l = S((e) => E.get(e.id) ?? T, [E]), f = S((e) => l(e).fullySelected, [l]), C = S((e) => l(e).partiallySelected, [l]), p = n(() => c.length > 0 && c.every((e) => t.has(e.id)), [c, t]), _ = n(() => c.some((e) => t.has(e.id)), [c, t]);
|
|
32
28
|
return {
|
|
33
|
-
getGroupItems:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
getGroupItems: y,
|
|
30
|
+
getGroupSelectionState: l,
|
|
31
|
+
isItemSelected: h,
|
|
32
|
+
isGroupFullySelected: f,
|
|
33
|
+
isGroupPartiallySelected: C,
|
|
34
|
+
areAllItemsSelected: p,
|
|
35
|
+
areSomeItemsSelected: _
|
|
39
36
|
};
|
|
40
37
|
};
|
|
41
38
|
export {
|
|
42
|
-
|
|
39
|
+
m as useCheckableListSelection
|
|
43
40
|
};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface UseCheckableListStateProps {
|
|
3
|
-
groups?: CheckableListGroup[];
|
|
4
|
-
expandAllGroups?: boolean;
|
|
5
|
-
}
|
|
1
|
+
import { UseCheckableListStateProps } from './types';
|
|
6
2
|
/**
|
|
7
|
-
*
|
|
3
|
+
* Manage CheckableList search and group expansion state.
|
|
8
4
|
*/
|
|
9
5
|
export declare const useCheckableListState: ({ groups, expandAllGroups, }: UseCheckableListStateProps) => {
|
|
10
6
|
searchQuery: string;
|
|
11
7
|
setSearchQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
12
8
|
expandedGroups: Set<string | number>;
|
|
13
|
-
itemHeights: Map<number, number>;
|
|
14
|
-
setItemHeights: import('react').Dispatch<import('react').SetStateAction<Map<number, number>>>;
|
|
15
9
|
handleGroupExpandToggle: (groupId: string | number) => void;
|
|
16
10
|
};
|
|
17
|
-
export {};
|
|
18
11
|
//# sourceMappingURL=useCheckableListState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckableListState.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/hooks/useCheckableListState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCheckableListState.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/hooks/useCheckableListState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAI1D;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,8BAGnC,0BAA0B;;;;uCAkD2B,MAAM,GAAG,MAAM;CAkBtE,CAAC"}
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import { useState as i, useRef as f, useEffect as E } from "react";
|
|
2
|
-
const
|
|
1
|
+
import { useState as i, useRef as f, useEffect as w, useCallback as E } from "react";
|
|
2
|
+
const G = ({
|
|
3
3
|
groups: t,
|
|
4
4
|
expandAllGroups: r = !0
|
|
5
5
|
}) => {
|
|
6
|
-
const [
|
|
6
|
+
const [S, h] = i(""), [l, d] = i(
|
|
7
7
|
() => t ? r ? new Set(t.map((e) => e.id)) : new Set(t.filter((e) => !e.collapsed).map((e) => e.id)) : /* @__PURE__ */ new Set()
|
|
8
|
-
), [S, l] = i(
|
|
9
|
-
/* @__PURE__ */ new Map()
|
|
10
8
|
), o = f([]), u = f(r);
|
|
11
|
-
|
|
9
|
+
w(() => {
|
|
12
10
|
if (!t) {
|
|
13
11
|
d(/* @__PURE__ */ new Set()), o.current = [];
|
|
14
12
|
return;
|
|
15
13
|
}
|
|
16
|
-
const e = t.map((c) => c.id), a = o.current, s = e.length !== a.length || e.some((c, n) => c !== a[n]),
|
|
17
|
-
if (s ||
|
|
14
|
+
const e = t.map((c) => c.id), a = o.current, s = e.length !== a.length || e.some((c, n) => c !== a[n]), m = u.current !== r;
|
|
15
|
+
if (s || m) {
|
|
18
16
|
const c = r ? new Set(t.map((n) => n.id)) : new Set(t.filter((n) => !n.collapsed).map((n) => n.id));
|
|
19
17
|
d(c), o.current = e, u.current = r;
|
|
20
18
|
}
|
|
21
|
-
}, [t, r])
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
}, [t, r]);
|
|
20
|
+
const p = E((e) => {
|
|
21
|
+
d((a) => {
|
|
22
|
+
const s = new Set(a);
|
|
23
|
+
return s.has(e) ? s.delete(e) : s.add(e), s;
|
|
24
|
+
});
|
|
25
|
+
}, []);
|
|
26
|
+
return {
|
|
27
|
+
searchQuery: S,
|
|
28
|
+
setSearchQuery: h,
|
|
29
|
+
expandedGroups: l,
|
|
30
|
+
handleGroupExpandToggle: p
|
|
33
31
|
};
|
|
34
32
|
};
|
|
35
33
|
export {
|
|
36
|
-
|
|
34
|
+
G as useCheckableListState
|
|
37
35
|
};
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VirtualizedItem } from '../types';
|
|
3
|
-
interface UseCheckableListVirtualizationProps {
|
|
4
|
-
virtualizedItems: VirtualizedItem[];
|
|
5
|
-
itemHeights: Map<number, number>;
|
|
6
|
-
defaultItemRowHeight?: number;
|
|
7
|
-
defaultGroupRowHeight?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Referencia al elemento scrolleable que observa TanStack Virtual.
|
|
10
|
-
*/
|
|
11
|
-
scrollElementRef: RefObject<HTMLDivElement | null>;
|
|
12
|
-
}
|
|
1
|
+
import { UseCheckableListVirtualizationProps } from './types';
|
|
13
2
|
/**
|
|
14
|
-
*
|
|
3
|
+
* Virtualize CheckableList rows using TanStack Virtual.
|
|
15
4
|
*
|
|
16
|
-
* `getItemSize`
|
|
17
|
-
*
|
|
18
|
-
*
|
|
5
|
+
* `getItemSize` estimates row height; TanStack corrects it using real DOM
|
|
6
|
+
* measurements (`measureElement` + `ResizeObserver`) so rows can grow with
|
|
7
|
+
* their content.
|
|
19
8
|
*/
|
|
20
|
-
export declare const useCheckableListVirtualization: ({ virtualizedItems,
|
|
9
|
+
export declare const useCheckableListVirtualization: ({ virtualizedItems, groupHeaderIndexes, defaultItemRowHeight, defaultGroupRowHeight, scrollElementRef, }: UseCheckableListVirtualizationProps) => {
|
|
21
10
|
getItemSize: (index: number) => number;
|
|
11
|
+
getItemKey: (index: number) => string;
|
|
22
12
|
virtualizer: import('@tanstack/virtual-core').Virtualizer<HTMLDivElement, Element>;
|
|
23
13
|
virtualItems: import('@tanstack/virtual-core').VirtualItem[];
|
|
14
|
+
activeStickyIndex: number | undefined;
|
|
24
15
|
totalSize: number;
|
|
25
16
|
};
|
|
26
|
-
export {};
|
|
27
17
|
//# sourceMappingURL=useCheckableListVirtualization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckableListVirtualization.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/hooks/useCheckableListVirtualization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCheckableListVirtualization.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/hooks/useCheckableListVirtualization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAQnE;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GAAI,0GAM5C,mCAAmC;yBA6B1B,MAAM;wBAyBuB,MAAM;;;;;CAyB9C,CAAC"}
|