@m4l/components 9.84.1 → 9.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CheckableList/CheckableList.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.js +250 -219
- package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.styles.js +12 -0
- package/components/CheckableList/constants.d.ts +1 -1
- package/components/CheckableList/constants.d.ts.map +1 -1
- package/components/CheckableList/dictionary.d.ts +4 -2
- package/components/CheckableList/dictionary.d.ts.map +1 -1
- package/components/CheckableList/dictionary.js +6 -1
- package/components/CheckableList/dictionaryDefaults.d.ts +26 -0
- package/components/CheckableList/dictionaryDefaults.d.ts.map +1 -0
- package/components/CheckableList/dictionaryDefaults.js +31 -0
- package/components/CheckableList/hooks/types.d.ts +9 -0
- package/components/CheckableList/hooks/types.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +2 -1
- package/components/CheckableList/hooks/useCheckableListHandlers.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListHandlers.js +54 -40
- package/components/CheckableList/hooks/useCheckableListValue.d.ts +4 -0
- package/components/CheckableList/hooks/useCheckableListValue.d.ts.map +1 -0
- package/components/CheckableList/hooks/useCheckableListValue.js +28 -0
- package/components/CheckableList/index.d.ts +2 -0
- package/components/CheckableList/index.d.ts.map +1 -1
- package/components/CheckableList/slots/slots.d.ts +1 -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 +3 -0
- package/components/CheckableList/slots/styled.d.ts.map +1 -1
- package/components/CheckableList/slots/styled.js +62 -58
- package/components/CheckableList/types.d.ts +4 -0
- package/components/CheckableList/types.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +132 -118
- package/components/DragResizeWindowRND/constants.d.ts +1 -0
- package/components/DragResizeWindowRND/constants.d.ts.map +1 -1
- package/components/DragResizeWindowRND/constants.js +3 -2
- package/components/DragResizeWindowRND/hooks/types.d.ts +15 -0
- package/components/DragResizeWindowRND/hooks/types.d.ts.map +1 -0
- package/components/DragResizeWindowRND/hooks/useRNDCollapse.d.ts +4 -0
- package/components/DragResizeWindowRND/hooks/useRNDCollapse.d.ts.map +1 -0
- package/components/DragResizeWindowRND/hooks/useRNDCollapse.js +41 -0
- package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.d.ts +1 -0
- package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.d.ts.map +1 -1
- package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.js +21 -19
- package/components/DragResizeWindowRND/hooks/useRNDDragOptions.d.ts +2 -0
- package/components/DragResizeWindowRND/hooks/useRNDDragOptions.d.ts.map +1 -1
- package/components/DragResizeWindowRND/hooks/useRNDDragOptions.js +55 -54
- package/components/DragResizeWindowRND/types.d.ts +4 -0
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/Label/Label.d.ts +2 -5
- package/components/Label/Label.d.ts.map +1 -1
- package/components/Label/Label.js +34 -35
- package/components/SortableList/dictionaryDefaults.d.ts +7 -0
- package/components/SortableList/dictionaryDefaults.d.ts.map +1 -0
- package/components/SortableList/dictionaryDefaults.js +34 -0
- package/components/SortableList/index.d.ts +1 -0
- package/components/SortableList/index.d.ts.map +1 -1
- package/components/Stepper/helpers/focusFirstErrorField/index.d.ts +1 -1
- package/components/Stepper/helpers/focusFirstErrorField/index.d.ts.map +1 -1
- package/components/Stepper/helpers/focusFirstErrorField/index.js +29 -14
- package/components/Stepper/helpers/getStepFocusTargets/constants.d.ts +4 -0
- package/components/Stepper/helpers/getStepFocusTargets/constants.d.ts.map +1 -0
- package/components/Stepper/helpers/getStepFocusTargets/constants.js +32 -0
- package/components/Stepper/helpers/getStepFocusTargets/index.d.ts +10 -0
- package/components/Stepper/helpers/getStepFocusTargets/index.d.ts.map +1 -0
- package/components/Stepper/helpers/getStepFocusTargets/index.js +34 -0
- package/components/Stepper/helpers/getStepFocusTargets/types.d.ts +6 -0
- package/components/Stepper/helpers/getStepFocusTargets/types.d.ts.map +1 -0
- package/components/Stepper/hooks/useStepEntryFocus/index.d.ts +4 -0
- package/components/Stepper/hooks/useStepEntryFocus/index.d.ts.map +1 -0
- package/components/Stepper/hooks/useStepEntryFocus/index.js +59 -0
- package/components/Stepper/hooks/useStepEntryFocus/types.d.ts +9 -0
- package/components/Stepper/hooks/useStepEntryFocus/types.d.ts.map +1 -0
- package/components/Stepper/hooks/useStepperActions/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useStepperActions/index.js +53 -43
- package/components/Stepper/index.d.ts +1 -0
- package/components/Stepper/index.d.ts.map +1 -1
- package/components/Stepper/store/StepperContext/index.d.ts.map +1 -1
- package/components/Stepper/store/StepperContext/index.js +37 -35
- package/components/Stepper/store/StepperFocusContext/index.d.ts +5 -0
- package/components/Stepper/store/StepperFocusContext/index.d.ts.map +1 -0
- package/components/Stepper/store/StepperFocusContext/index.js +9 -0
- package/components/Stepper/store/StepperFocusContext/types.d.ts +8 -0
- package/components/Stepper/store/StepperFocusContext/types.d.ts.map +1 -0
- package/components/Stepper/subcomponents/StepArea/hooks/useStepArea.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepArea/hooks/useStepArea.js +74 -57
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +21 -6
- package/components/Stepper/tests/focus/fixtures.d.ts +8 -0
- package/components/Stepper/tests/focus/fixtures.d.ts.map +1 -0
- package/components/Stepper/tests/focus/types.d.ts +63 -0
- package/components/Stepper/tests/focus/types.d.ts.map +1 -0
- package/components/Stepper/types.d.ts +8 -0
- package/components/Stepper/types.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.js +74 -64
- package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.styles.js +16 -5
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +59 -58
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +13 -12
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +5 -5
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +2 -0
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts.map +1 -1
- package/components/WindowBase/types.d.ts +7 -1
- package/components/WindowBase/types.d.ts.map +1 -1
- package/components/areas/types.d.ts +1 -1
- package/components/areas/types.d.ts.map +1 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +2 -2
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts +1 -1
- package/components/extended/mui/Autocomplete/hooks/useEndAdornments.d.ts +2 -1
- package/components/extended/mui/Autocomplete/hooks/useEndAdornments.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useEndAdornments.js +65 -58
- package/components/extended/mui/Autocomplete/hooks/useValuesAndHandlers.d.ts +1 -1
- package/components/extended/mui/Autocomplete/hooks/useValuesAndHandlers.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useValuesAndHandlers.js +51 -51
- package/components/extended/mui/Autocomplete/tests/keyboard/AutocompleteKeyboardFixture.d.ts +5 -0
- package/components/extended/mui/Autocomplete/tests/keyboard/AutocompleteKeyboardFixture.d.ts.map +1 -0
- package/components/extended/mui/Autocomplete/tests/keyboard/constants.d.ts +3 -0
- package/components/extended/mui/Autocomplete/tests/keyboard/constants.d.ts.map +1 -0
- package/components/extended/mui/Autocomplete/tests/keyboard/types.d.ts +17 -0
- package/components/extended/mui/Autocomplete/tests/keyboard/types.d.ts.map +1 -0
- package/components/extended/mui/Select/Select.d.ts.map +1 -1
- package/components/extended/mui/Select/Select.js +99 -94
- package/components/extended/mui/Select/Select.styles.d.ts.map +1 -1
- package/components/extended/mui/Select/Select.styles.js +48 -39
- package/components/extended/mui/Select/tests/keyboard/SelectKeyboardFixture.d.ts +4 -0
- package/components/extended/mui/Select/tests/keyboard/SelectKeyboardFixture.d.ts.map +1 -0
- package/components/extended/mui/Select/tests/keyboard/types.d.ts +6 -0
- package/components/extended/mui/Select/tests/keyboard/types.d.ts.map +1 -0
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.d.ts +2 -6
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.d.ts.map +1 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +18 -17
- package/components/formatters/DistanceToNowFormatter/dictionary.d.ts +18 -0
- package/components/formatters/DistanceToNowFormatter/dictionary.d.ts.map +1 -1
- package/components/formatters/DistanceToNowFormatter/dictionary.js +19 -1
- package/components/formatters/DistanceToNowFormatter/dictionaryDefaults.d.ts +96 -0
- package/components/formatters/DistanceToNowFormatter/dictionaryDefaults.d.ts.map +1 -0
- package/components/formatters/DistanceToNowFormatter/dictionaryDefaults.js +101 -0
- package/components/formatters/DistanceToNowFormatter/hooks/useDistanceToNowFormatter.d.ts +4 -9
- package/components/formatters/DistanceToNowFormatter/hooks/useDistanceToNowFormatter.d.ts.map +1 -1
- package/components/formatters/DistanceToNowFormatter/hooks/useDistanceToNowFormatter.js +41 -15
- package/components/formatters/DistanceToNowFormatter/index.d.ts +1 -0
- package/components/formatters/DistanceToNowFormatter/index.d.ts.map +1 -1
- package/components/formatters/DistanceToNowFormatter/types.d.ts +10 -3
- package/components/formatters/DistanceToNowFormatter/types.d.ts.map +1 -1
- package/components/hook-form/RHFActionsGroup/RHFActionsGroup.d.ts.map +1 -1
- package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +43 -40
- package/components/hook-form/RHFCheckableList/RHFCheckableList.d.ts.map +1 -1
- package/components/hook-form/RHFCheckableList/RHFCheckableList.js +82 -73
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts.map +1 -1
- package/components/hook-form/RHFCheckbox/RHFCheckbox.js +62 -53
- package/components/hook-form/RHFDatePicker/RHFDatePicker.d.ts.map +1 -1
- package/components/hook-form/RHFDatePicker/RHFDatePicker.js +35 -32
- package/components/hook-form/RHFDateTime/RHFDateTime.d.ts.map +1 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.js +42 -39
- package/components/hook-form/RHFMultiCheckbox/index.d.ts.map +1 -1
- package/components/hook-form/RHFMultiCheckbox/index.js +20 -17
- package/components/hook-form/RHFNumberInput/RHFNumberInput.d.ts.map +1 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.js +46 -43
- package/components/hook-form/RHFPeriod/RHFPeriod.d.ts.map +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +41 -39
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +62 -59
- package/components/hook-form/RHFSelect/RHFSelect.d.ts.map +1 -1
- package/components/hook-form/RHFSelect/RHFSelect.js +89 -73
- package/components/hook-form/RHFSelect/test/focus/SelectFocusFixture.d.ts +4 -0
- package/components/hook-form/RHFSelect/test/focus/SelectFocusFixture.d.ts.map +1 -0
- package/components/hook-form/RHFSelect/test/focus/constants.d.ts +3 -0
- package/components/hook-form/RHFSelect/test/focus/constants.d.ts.map +1 -0
- package/components/hook-form/RHFSelect/test/focus/types.d.ts +13 -0
- package/components/hook-form/RHFSelect/test/focus/types.d.ts.map +1 -0
- package/components/hook-form/RHFSelect/types.d.ts +5 -0
- package/components/hook-form/RHFSelect/types.d.ts.map +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.d.ts.map +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +55 -52
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts.map +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +93 -85
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/components/UploadMultiple/index.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/components/UploadMultiple/index.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/index.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/index.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/types.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/types.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +74 -66
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +52 -32
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/focus/UploadImageFocusFixture.d.ts +4 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/focus/UploadImageFocusFixture.d.ts.map +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/focus/types.d.ts +13 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/focus/types.d.ts.map +1 -0
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +34 -32
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +13 -13
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +16 -16
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +4 -2
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/types.d.ts +5 -0
- package/components/popups/components/PopupsProvider/hooks/types.d.ts.map +1 -0
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups.d.ts +3 -14
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups.js +34 -33
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.d.ts.map +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +125 -118
- package/components/popups/components/PopupsViewer/subcomponents/Popup/usePopupHeaderHeight.d.ts +3 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/usePopupHeaderHeight.d.ts.map +1 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/usePopupHeaderHeight.js +21 -0
- package/components/popups/dictionaryDefaults.d.ts +4 -0
- package/components/popups/dictionaryDefaults.d.ts.map +1 -0
- package/components/popups/dictionaryDefaults.js +16 -0
- package/components/popups/index.d.ts +1 -0
- package/components/popups/index.d.ts.map +1 -1
- package/hocs/withRHFController/index.d.ts.map +1 -1
- package/hocs/withRHFController/index.js +71 -61
- package/index.js +823 -813
- package/package.json +12 -12
- package/test/mocks/dictionary-mock.d.ts +71 -23
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/utils/formatDistanceToNow/formatDistanteToNow.d.ts +2 -2
- package/utils/formatDistanceToNow/formatDistanteToNow.d.ts.map +1 -1
- package/utils/formatDistanceToNow/formatDistanteToNow.js +40 -23
- package/utils/formatDistanceToNow/index.d.ts +1 -1
- package/utils/formatDistanceToNow/index.d.ts.map +1 -1
- package/utils/formatDistanceToNow/types.d.ts +12 -6
- package/utils/formatDistanceToNow/types.d.ts.map +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { FieldPath, UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import { StepperProps, StepProps } from '../../types';
|
|
4
|
+
import { FormStatusLoad } from '../../../hook-form/RHFormProvider/types';
|
|
5
|
+
import { ComponentWithRHFControllerProps } from '../../../../hocs/withRHFController/types';
|
|
6
|
+
/** Values shared by the real form focus fixtures. */
|
|
7
|
+
export interface FocusFormValues {
|
|
8
|
+
optional: string;
|
|
9
|
+
first: string;
|
|
10
|
+
second: string;
|
|
11
|
+
third: string;
|
|
12
|
+
locked: string;
|
|
13
|
+
disabled: string;
|
|
14
|
+
hidden: string;
|
|
15
|
+
required: string;
|
|
16
|
+
composite: string;
|
|
17
|
+
hideFirst: boolean;
|
|
18
|
+
contacts: Array<{
|
|
19
|
+
email: string;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
/** Native and semantic field states used to exercise effective editability. */
|
|
23
|
+
export interface FocusFieldProps {
|
|
24
|
+
name: FieldPath<FocusFormValues>;
|
|
25
|
+
label: string;
|
|
26
|
+
kind?: 'input' | 'textarea' | 'select' | 'combobox';
|
|
27
|
+
readOnly?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
fieldReadOnly?: boolean;
|
|
30
|
+
fieldDisabled?: boolean;
|
|
31
|
+
ariaReadOnly?: boolean;
|
|
32
|
+
ariaDisabled?: boolean;
|
|
33
|
+
hidden?: boolean;
|
|
34
|
+
inert?: boolean;
|
|
35
|
+
disabledFieldset?: boolean;
|
|
36
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
37
|
+
}
|
|
38
|
+
/** Composite widgets may own editability above an enabled inner input. */
|
|
39
|
+
export interface FocusCompositeProps {
|
|
40
|
+
inputLabel: string;
|
|
41
|
+
readOnly?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** Actual Controller props delivered through the shared RHF HOC. */
|
|
44
|
+
export type FocusCompositeControlProps = ComponentWithRHFControllerProps<FocusCompositeProps>;
|
|
45
|
+
/** Public composition options for entry-focus integration scenarios. */
|
|
46
|
+
export interface FocusFormFixtureProps {
|
|
47
|
+
focusOnEnter?: StepperProps['focusOnEnter'];
|
|
48
|
+
firstPolicy?: StepProps['focusOnEnter'];
|
|
49
|
+
secondPolicy?: StepProps['focusOnEnter'];
|
|
50
|
+
firstFields?: ReactNode;
|
|
51
|
+
secondFields?: ReactNode;
|
|
52
|
+
thirdFields?: ReactNode;
|
|
53
|
+
initialStepKey?: string;
|
|
54
|
+
statusLoad?: FormStatusLoad;
|
|
55
|
+
values?: Partial<FocusFormValues>;
|
|
56
|
+
firstValidationFields?: string[];
|
|
57
|
+
secondValidationFields?: string[];
|
|
58
|
+
conditionalFirst?: boolean;
|
|
59
|
+
onMethods?: (methods: UseFormReturn<FocusFormValues>) => void;
|
|
60
|
+
onFocus?: (label: string) => void;
|
|
61
|
+
rawProvider?: boolean;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Stepper/tests/focus/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,C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AG,+BAA+B,CAAC,mBAAmB,CAAC,CAAC;AAE9F,wEAAwE;AACxE,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -41,7 +41,12 @@ export type Step = {
|
|
|
41
41
|
*/
|
|
42
42
|
visibilityCondition?: (formData?: FormData, visibilityData?: VisibilityData) => boolean;
|
|
43
43
|
};
|
|
44
|
+
/** Entry focus policy shared by the Stepper and optional per-Step overrides. */
|
|
45
|
+
export type StepperFocusOnEnter = 'first-field' | 'heading' | false;
|
|
44
46
|
export interface StepperProps {
|
|
47
|
+
/** Focus the first editable RHF on entry (default), the heading, or leave focus unchanged.
|
|
48
|
+
* Enfoca el primer RHF editable al entrar (por defecto), el encabezado o conserva el foco. */
|
|
49
|
+
focusOnEnter?: StepperFocusOnEnter;
|
|
45
50
|
/**
|
|
46
51
|
* Children opcional para inyectar componentes adicionales
|
|
47
52
|
*/
|
|
@@ -130,6 +135,9 @@ export interface StepperContentProps {
|
|
|
130
135
|
* Props del Step
|
|
131
136
|
*/
|
|
132
137
|
export interface StepProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'style'> {
|
|
138
|
+
/** Override the Stepper's entry focus policy for this step.
|
|
139
|
+
* Sobrescribe la política de foco del Stepper para este paso. */
|
|
140
|
+
focusOnEnter?: StepperFocusOnEnter;
|
|
133
141
|
/**
|
|
134
142
|
* Clave única del step que determina cuándo se renderiza
|
|
135
143
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/Stepper/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC7C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAC3B,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OA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AAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,gBAAgB,GACxB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,kBAAkB,CAAC;AACvB,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAChD,gBAAgB,EAChB,OAAO,mBAAmB,EAC1B,KAAK,CACN,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/Stepper/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,q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AAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,gBAAgB,GACxB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,kBAAkB,CAAC;AACvB,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAChD,gBAAgB,EAChB,OAAO,mBAAmB,EAC1B,KAAK,CACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WindowBase.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/WindowBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"WindowBase.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/WindowBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,eAAe,EAAE,MAAM,SAAS,CAAC;AAUhE;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qDA6FhD,CAAC"}
|
|
@@ -1,82 +1,92 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { getPropDataTestId as
|
|
3
|
-
import { WINDOW_BASE_KEY_COMPONENT as
|
|
4
|
-
import { getComponentSlotRoot as
|
|
5
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as z } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { getPropDataTestId as s } from "../../test/getNameDataTestId.js";
|
|
3
|
+
import { WINDOW_BASE_KEY_COMPONENT as t } from "./constants.js";
|
|
4
|
+
import { getComponentSlotRoot as T } from "../../utils/getComponentSlotRoot.js";
|
|
5
|
+
import D from "clsx";
|
|
6
6
|
import { HeaderWindowBase as N } from "./subcomponents/Header/HeaderWindowBase.js";
|
|
7
|
-
import { EditionInfo as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
7
|
+
import { EditionInfo as P } from "./subcomponents/EditionInfo/EditionInfo.js";
|
|
8
|
+
import { useRef as L, useLayoutEffect as O } from "react";
|
|
9
|
+
import { WindowBaseStyled as R, ToastContainerStyled as _, ContentWindowStyled as j, LinearProgressIndeterminateStyled as A } from "./slots/WindowBaseSlots.js";
|
|
10
|
+
import { useComponentSize as M, AppearanceComponentProvider as V } from "@m4l/graphics";
|
|
11
|
+
import { WindowBaseSlots as d } from "./slots/WindowBaseEnum.js";
|
|
12
|
+
const $ = (W) => {
|
|
12
13
|
const {
|
|
13
|
-
children:
|
|
14
|
-
size:
|
|
15
|
-
selected:
|
|
16
|
-
maximized:
|
|
17
|
-
variant:
|
|
18
|
-
version:
|
|
19
|
-
buildTime:
|
|
20
|
-
dataTestId:
|
|
21
|
-
onClose:
|
|
22
|
-
className:
|
|
23
|
-
isLoading:
|
|
24
|
-
windowId:
|
|
25
|
-
onMouseDown:
|
|
26
|
-
editionInfo:
|
|
27
|
-
emergeType:
|
|
28
|
-
collapsed:
|
|
29
|
-
draggable:
|
|
30
|
-
...
|
|
31
|
-
} =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
14
|
+
children: v,
|
|
15
|
+
size: m = "medium",
|
|
16
|
+
selected: l = !1,
|
|
17
|
+
maximized: n,
|
|
18
|
+
variant: c = "outlined",
|
|
19
|
+
version: y,
|
|
20
|
+
buildTime: B,
|
|
21
|
+
dataTestId: r,
|
|
22
|
+
onClose: C,
|
|
23
|
+
className: I,
|
|
24
|
+
isLoading: p,
|
|
25
|
+
windowId: h,
|
|
26
|
+
onMouseDown: x,
|
|
27
|
+
editionInfo: f,
|
|
28
|
+
emergeType: i = "layout",
|
|
29
|
+
collapsed: e,
|
|
30
|
+
draggable: E,
|
|
31
|
+
...b
|
|
32
|
+
} = W, { currentSize: u } = M(m), g = L(null);
|
|
33
|
+
O(() => {
|
|
34
|
+
const a = g.current;
|
|
35
|
+
e && a?.contains(a.ownerDocument.activeElement) && a.parentElement?.querySelector("button.collapse-toggle")?.focus();
|
|
36
|
+
}, [e]);
|
|
37
|
+
const w = E ?? i !== "panel", S = {
|
|
38
|
+
selected: l,
|
|
39
|
+
variant: n ? "text" : c,
|
|
40
|
+
size: u,
|
|
41
|
+
emergeType: i,
|
|
42
|
+
maximized: n,
|
|
43
|
+
collapsed: e,
|
|
44
|
+
isLoading: p,
|
|
45
|
+
draggable: w
|
|
39
46
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
|
|
47
|
+
return /* @__PURE__ */ o(V, { defaultSize: u, children: /* @__PURE__ */ z(
|
|
48
|
+
R,
|
|
42
49
|
{
|
|
43
|
-
className:
|
|
44
|
-
...
|
|
45
|
-
ownerState:
|
|
46
|
-
onMouseDown:
|
|
50
|
+
className: D(T(t), I),
|
|
51
|
+
...s(t, d.wrapperWindowBase, r),
|
|
52
|
+
ownerState: S,
|
|
53
|
+
onMouseDown: x,
|
|
47
54
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ o(
|
|
49
56
|
N,
|
|
50
57
|
{
|
|
51
|
-
...
|
|
52
|
-
version:
|
|
53
|
-
buildTime:
|
|
54
|
-
size:
|
|
55
|
-
variant:
|
|
56
|
-
selected:
|
|
57
|
-
maximized:
|
|
58
|
-
collapsed:
|
|
59
|
-
onClose:
|
|
60
|
-
emergeType:
|
|
61
|
-
draggable:
|
|
62
|
-
...
|
|
58
|
+
...s(t, d.headerContentWindowBase, r),
|
|
59
|
+
version: y,
|
|
60
|
+
buildTime: B,
|
|
61
|
+
size: m,
|
|
62
|
+
variant: c,
|
|
63
|
+
selected: l,
|
|
64
|
+
maximized: n,
|
|
65
|
+
collapsed: e,
|
|
66
|
+
onClose: C,
|
|
67
|
+
emergeType: i,
|
|
68
|
+
draggable: w,
|
|
69
|
+
...b
|
|
63
70
|
}
|
|
64
71
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
72
|
+
/* @__PURE__ */ o(_, { fixed: !1, position: "top-right", containerId: h }),
|
|
73
|
+
f && !e && /* @__PURE__ */ o(P, { editionInfo: f }),
|
|
74
|
+
/* @__PURE__ */ o(
|
|
75
|
+
j,
|
|
69
76
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
ref: g,
|
|
78
|
+
inert: e || void 0,
|
|
79
|
+
"aria-hidden": e || void 0,
|
|
80
|
+
...s(t, d.contentWindowBase, r),
|
|
81
|
+
ownerState: S,
|
|
82
|
+
children: v
|
|
73
83
|
}
|
|
74
84
|
),
|
|
75
|
-
|
|
85
|
+
p && /* @__PURE__ */ o(A, {})
|
|
76
86
|
]
|
|
77
87
|
}
|
|
78
88
|
) });
|
|
79
89
|
};
|
|
80
90
|
export {
|
|
81
|
-
|
|
91
|
+
$ as WindowBase
|
|
82
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WindowBase.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/WindowBase.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAU3C;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"WindowBase.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/WindowBase.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAU3C;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBA+lB9B,CAAC"}
|
|
@@ -40,16 +40,27 @@ const d = {
|
|
|
40
40
|
},
|
|
41
41
|
...a?.emergeType === "popup" && {
|
|
42
42
|
"&&&": {
|
|
43
|
-
boxShadow:
|
|
43
|
+
boxShadow: "none",
|
|
44
44
|
border: `1px solid ${o.vars.palette?.border.secondary}`,
|
|
45
45
|
borderRadius: o.vars.size.borderRadius.r3,
|
|
46
46
|
...a?.selected && {
|
|
47
47
|
// Figma draws this shadow with its own geometry and color tokens; no `customShadows` token matches it.
|
|
48
48
|
// Layers: inner glow, primary halo and the `customShadowsColors.sh1` gray.
|
|
49
49
|
// `sh1` (rgba(146, 156, 171, 0.08)) has no theme token: `grey[500_8]` (rgba(145, 158, 171, 0.08)) is the closest one.
|
|
50
|
-
|
|
50
|
+
// The selected-edge POC retains the two accent layers and replaces that historical gray layer with themed z4 elevation.
|
|
51
|
+
boxShadow: `inset 0 8px 16px 0 ${o.vars.palette.primary.opacity}, 0 8px 24px -12px ${o.vars.palette.primary.selectedOpacity}, ${o.vars.customShadows.z4}`,
|
|
51
52
|
border: o.vars.size.borderStroke.container,
|
|
52
|
-
borderColor: o.vars.palette.primary.toneOpacity
|
|
53
|
+
borderColor: o.vars.palette.primary.toneOpacity,
|
|
54
|
+
// Loading owns the same top strip; the decorative selection edge yields without changing selection or geometry.
|
|
55
|
+
...!a?.isLoading && {
|
|
56
|
+
// A single border-box paint avoids the fractional-pixel seam between a colored border and a separate edge at browser zoom.
|
|
57
|
+
// The background itself paints the accent and surface, retaining the border geometry without an extra hit target.
|
|
58
|
+
backgroundColor: "transparent",
|
|
59
|
+
backgroundImage: `linear-gradient(to bottom, ${o.vars.palette.primary.enabled} 0px, ${o.vars.palette.primary.enabled} 2px, ${o.vars.palette.background.default} 2px)`,
|
|
60
|
+
backgroundOrigin: "border-box",
|
|
61
|
+
backgroundClip: "border-box",
|
|
62
|
+
borderTopColor: "transparent"
|
|
63
|
+
}
|
|
53
64
|
}
|
|
54
65
|
}
|
|
55
66
|
},
|
|
@@ -109,7 +120,7 @@ const d = {
|
|
|
109
120
|
display: "flex",
|
|
110
121
|
padding: o.vars.size.baseSpacings.sp1,
|
|
111
122
|
marginTop: 1,
|
|
112
|
-
...(a?.emergeType === "popup" || a?.emergeType === "modal" || a?.emergeType === "panel") && {
|
|
123
|
+
...(a?.emergeType === "popup" || a?.emergeType === "modal" || a?.emergeType === "panel") && !a?.collapsed && {
|
|
113
124
|
padding: `${o.vars.size.baseSpacings["sp2-5"]} ${o.vars.size.baseSpacings.sp2} 0 ${o.vars.size.baseSpacings.sp2}`
|
|
114
125
|
},
|
|
115
126
|
alignItems: r ? "flex-start" : "center",
|
|
@@ -118,7 +129,7 @@ const d = {
|
|
|
118
129
|
alignSelf: "stretch",
|
|
119
130
|
cursor: a?.draggable ? "all-scroll" : "default",
|
|
120
131
|
position: "relative",
|
|
121
|
-
...a?.emergeType === "layout" || a?.emergeType === "modal" ? n(
|
|
132
|
+
...a?.emergeType === "layout" || a?.emergeType === "modal" || a?.collapsed ? n(
|
|
122
133
|
o,
|
|
123
134
|
a?.size || "medium",
|
|
124
135
|
"container",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderWindowBase.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/Header/HeaderWindowBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC,OAAO,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAcrE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,GAAG,oBAAoB,
|
|
1
|
+
{"version":3,"file":"HeaderWindowBase.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/Header/HeaderWindowBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC,OAAO,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAcrE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,GAAG,oBAAoB,qDAmMzE,CAAC"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { WINDOW_BASE_ICON_COMPONENTS as
|
|
1
|
+
import { jsxs as c, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as h, useEffect as U, useMemo as V } from "react";
|
|
3
|
+
import { WINDOW_BASE_ICON_COMPONENTS as S, ICONS as y } from "../../icons.js";
|
|
4
4
|
import { dragResizeWindowRNDClasses as N } from "../../../DragResizeWindowRND/classes/index.js";
|
|
5
|
-
import { deepEqual as
|
|
6
|
-
import { useFormatter as
|
|
7
|
-
import { useModuleSkeleton as
|
|
5
|
+
import { deepEqual as b } from "fast-equals";
|
|
6
|
+
import { useFormatter as j } from "@m4l/graphics";
|
|
7
|
+
import { useModuleSkeleton as $ } from "@m4l/core";
|
|
8
8
|
import { useButtonActions as B } from "./useButtonActions.js";
|
|
9
|
-
import { HeaderWindowComponentStyled as
|
|
9
|
+
import { HeaderWindowComponentStyled as q, HeaderContentStyled as J, IconWindowStyled as K, ContainerTitleDescriptionStyled as G, ContainerTitleSubtitleStyled as Q, TitleWindowStyled as X, PointIconStyled as Y, PointIconSkeletonStyled as Z, SubtitleWindowStyled as ee, DescriptionWindowStyled as te, IconsWrapperStyled as oe, ContainerLeftActionsStyled as ne, MenuActionsWindowsStyled as ie } from "../../slots/WindowBaseSlots.js";
|
|
10
10
|
import { windowBaseClasses as D } from "../../constants.js";
|
|
11
|
-
import
|
|
12
|
-
import { IconButton as
|
|
13
|
-
const
|
|
11
|
+
import re from "clsx";
|
|
12
|
+
import { IconButton as le } from "../../../extended/mui/IconButton/IconButton.js";
|
|
13
|
+
const Ce = (O) => {
|
|
14
14
|
const {
|
|
15
15
|
title: T,
|
|
16
|
-
subTitle:
|
|
17
|
-
description:
|
|
18
|
-
onClose:
|
|
19
|
-
iconUrl:
|
|
16
|
+
subTitle: m,
|
|
17
|
+
description: p,
|
|
18
|
+
onClose: C,
|
|
19
|
+
iconUrl: w,
|
|
20
20
|
size: l,
|
|
21
|
-
selected:
|
|
21
|
+
selected: I,
|
|
22
22
|
maximized: E,
|
|
23
|
-
version:
|
|
24
|
-
buildTime:
|
|
25
|
-
variant:
|
|
23
|
+
version: d,
|
|
24
|
+
buildTime: u,
|
|
25
|
+
variant: R,
|
|
26
26
|
actions: a = [],
|
|
27
|
-
collapsed:
|
|
27
|
+
collapsed: s,
|
|
28
28
|
emergeType: i,
|
|
29
|
-
draggable: g
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
draggable: g,
|
|
30
|
+
headerRef: x
|
|
31
|
+
} = O, { dateFormatter: f } = j(), W = $(), [z, v] = h(() => a.filter((t) => t.place === "left")), [L, M] = h(() => a.filter((t) => t.place === "right")), [k, F] = h(() => a.filter((t) => t.place === "inside"));
|
|
32
|
+
U(() => {
|
|
32
33
|
const t = a.reduce(
|
|
33
34
|
(e, r) => (e[r.place]?.push(r), e),
|
|
34
35
|
{ left: [], right: [], inside: [] }
|
|
35
36
|
);
|
|
36
|
-
|
|
37
|
+
v((e) => b(e, t.left) ? e : t.left), M((e) => b(e, t.right) ? e : t.right), F((e) => b(e, t.inside) ? e : t.inside);
|
|
37
38
|
}, [a]);
|
|
38
|
-
const A =
|
|
39
|
+
const A = V(() => {
|
|
39
40
|
const t = [
|
|
40
41
|
...k.map((e) => e.type === "groupActions" ? e.actions.map((r) => ({
|
|
41
42
|
type: "menuItem",
|
|
@@ -55,45 +56,45 @@ const be = (O) => {
|
|
|
55
56
|
className: e.className
|
|
56
57
|
}).flat()
|
|
57
58
|
];
|
|
58
|
-
return
|
|
59
|
+
return d && t.push({
|
|
59
60
|
type: "menuItem",
|
|
60
|
-
startIcon:
|
|
61
|
-
label:
|
|
61
|
+
startIcon: S[y.VERSION],
|
|
62
|
+
label: u ? `${d} - ${f.formatDate(new Date(u), f.datetimeFormat)}` : d,
|
|
62
63
|
onClick: () => {
|
|
63
64
|
},
|
|
64
65
|
disabled: !0,
|
|
65
66
|
color: "default"
|
|
66
67
|
//className: 'version-action',
|
|
67
68
|
}), t;
|
|
68
|
-
}, [k,
|
|
69
|
-
selected:
|
|
69
|
+
}, [k, d, u, f]), H = i === "popup" && I || !(i === "popup" || i === "modal" || i === "panel") ? "captionDens" : "bodyStandard", o = {
|
|
70
|
+
selected: I,
|
|
70
71
|
maximized: E,
|
|
71
|
-
variant:
|
|
72
|
+
variant: R,
|
|
72
73
|
size: l,
|
|
73
74
|
emergeType: i,
|
|
74
|
-
collapsed:
|
|
75
|
+
collapsed: s,
|
|
75
76
|
draggable: g,
|
|
76
|
-
hasDescription: !!
|
|
77
|
+
hasDescription: !!p && !s,
|
|
77
78
|
isSkeleton: W
|
|
78
|
-
},
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */ n(
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
}, P = B(z), _ = B(L);
|
|
80
|
+
return /* @__PURE__ */ c(q, { ref: x, className: re(g && N.draggableHandle, D.headerWindowComponent), ownerState: o, children: [
|
|
81
|
+
/* @__PURE__ */ c(J, { ownerState: o, className: D.headerContentWindowBase, children: [
|
|
82
|
+
w && /* @__PURE__ */ n(K, { size: l, ownerState: o, src: w, "aria-label": "main icon" }),
|
|
83
|
+
/* @__PURE__ */ c(G, { size: l, ownerState: o, children: [
|
|
84
|
+
/* @__PURE__ */ c(Q, { size: l, ownerState: o, children: [
|
|
85
|
+
/* @__PURE__ */ n(X, { variant: H, size: l, skeletonWidth: 100, ownerState: o, children: T }),
|
|
86
|
+
m && /* @__PURE__ */ n(
|
|
87
|
+
Y,
|
|
87
88
|
{
|
|
88
89
|
ownerState: o,
|
|
89
90
|
"aria-hidden": "true",
|
|
90
|
-
children: W && /* @__PURE__ */ n(
|
|
91
|
+
children: W && /* @__PURE__ */ n(Z, { variant: "circular" })
|
|
91
92
|
}
|
|
92
93
|
),
|
|
93
|
-
|
|
94
|
+
m && /* @__PURE__ */ n(ee, { variant: i === "popup" || i === "modal" || i === "panel" ? "bodyStandard" : "captionDens", size: l, skeletonWidth: 100, ownerState: o, children: m })
|
|
94
95
|
] }),
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
p && !s && /* @__PURE__ */ n(
|
|
97
|
+
te,
|
|
97
98
|
{
|
|
98
99
|
color: "text.secondary",
|
|
99
100
|
fontFamily: "Jura",
|
|
@@ -101,25 +102,25 @@ const be = (O) => {
|
|
|
101
102
|
size: l,
|
|
102
103
|
skeletonWidth: 100,
|
|
103
104
|
variant: "microDens",
|
|
104
|
-
children:
|
|
105
|
+
children: p
|
|
105
106
|
}
|
|
106
107
|
)
|
|
107
108
|
] })
|
|
108
109
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
110
|
+
/* @__PURE__ */ c(
|
|
111
|
+
oe,
|
|
111
112
|
{
|
|
112
113
|
id: "icons-wrapper",
|
|
113
114
|
className: N.draggableCancel,
|
|
114
115
|
ownerState: o,
|
|
115
116
|
children: [
|
|
116
|
-
/* @__PURE__ */ n(
|
|
117
|
-
A.length > 0 && /* @__PURE__ */ n(
|
|
118
|
-
|
|
117
|
+
/* @__PURE__ */ n(ne, { ownerState: { collapsed: s }, children: P }),
|
|
118
|
+
A.length > 0 && !s && /* @__PURE__ */ n(
|
|
119
|
+
ie,
|
|
119
120
|
{
|
|
120
121
|
type: "menuItem",
|
|
121
122
|
ownerState: o,
|
|
122
|
-
icon:
|
|
123
|
+
icon: S[y.MORE_VERTICAL],
|
|
123
124
|
arrowType: "no-arrow",
|
|
124
125
|
iconButtonClassName: "window-actions",
|
|
125
126
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
@@ -128,12 +129,12 @@ const be = (O) => {
|
|
|
128
129
|
menuActions: A
|
|
129
130
|
}
|
|
130
131
|
),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
_,
|
|
133
|
+
C && /* @__PURE__ */ n(
|
|
134
|
+
le,
|
|
134
135
|
{
|
|
135
|
-
icon:
|
|
136
|
-
onClick:
|
|
136
|
+
icon: S[y.CLOSE],
|
|
137
|
+
onClick: C,
|
|
137
138
|
"aria-label": "close",
|
|
138
139
|
color: "error",
|
|
139
140
|
className: "close-button window-actions"
|
|
@@ -145,5 +146,5 @@ const be = (O) => {
|
|
|
145
146
|
] });
|
|
146
147
|
};
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
Ce as HeaderWindowBase
|
|
149
150
|
};
|
|
@@ -33,7 +33,7 @@ import { WindowBaseAction, WindowBaseProps } from '../../types';
|
|
|
33
33
|
* - `selected` modifies the visual appearance to indicate the selected state.
|
|
34
34
|
* @see WindowBaseProps - General properties for the window base.
|
|
35
35
|
*/
|
|
36
|
-
export type HeaderProps = Pick<WindowBaseProps, 'title' | 'subTitle' | 'description' | 'iconUrl' | 'onClose' | 'version' | 'selected' | 'variant' | 'emergeType' | 'buildTime' | 'maximized' | 'draggable'> & {
|
|
36
|
+
export type HeaderProps = Pick<WindowBaseProps, 'title' | 'subTitle' | 'description' | 'iconUrl' | 'onClose' | 'version' | 'selected' | 'variant' | 'emergeType' | 'buildTime' | 'maximized' | 'draggable' | 'headerRef'> & {
|
|
37
37
|
actions?: WindowBaseAction[];
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAChE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,eAAe,EACf,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAChE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,eAAe,EACf,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CACzK,GAAG;IACF,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC;AACF;;GAEG;AAEH;;GAEG;AAOH;;;;;;;;;;;;;;;;;;;;GAoBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useButtonActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/Header/useButtonActions.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"useButtonActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/Header/useButtonActions.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,gBAAgB,EAAE,qDA0D3D,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as o, Fragment as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import { ActionsGroup as
|
|
5
|
-
const u = (s) =>
|
|
1
|
+
import { jsx as o, Fragment as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
import m from "../MemoizedIconButton/MemoizedIconButton.js";
|
|
4
|
+
import { ActionsGroup as c } from "../../../ActionsGroup/ActionsGroup.js";
|
|
5
|
+
const u = (s) => t(() => /* @__PURE__ */ o(d, { children: s.map((e) => {
|
|
6
6
|
if (e.type === "groupActions") {
|
|
7
|
-
const
|
|
7
|
+
const n = e.actions.map((l) => ({
|
|
8
8
|
id: l.key,
|
|
9
9
|
label: l.label,
|
|
10
10
|
iconUrl: l.iconUrl,
|
|
11
11
|
onClick: l.onClick,
|
|
12
12
|
disabled: l.disabled
|
|
13
13
|
})), i = (l) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
14
|
+
const r = e.actions.find((a) => a.key === l);
|
|
15
|
+
r?.onClick && r.onClick();
|
|
16
16
|
};
|
|
17
17
|
return /* @__PURE__ */ o(
|
|
18
|
-
|
|
18
|
+
c,
|
|
19
19
|
{
|
|
20
|
-
actions:
|
|
20
|
+
actions: n,
|
|
21
21
|
value: e.selectedActionKey,
|
|
22
22
|
onChange: i,
|
|
23
23
|
variant: "horizontal",
|
|
@@ -27,7 +27,7 @@ const u = (s) => c(() => /* @__PURE__ */ o(m, { children: s.map((e) => {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
return /* @__PURE__ */ o(
|
|
30
|
-
|
|
30
|
+
m,
|
|
31
31
|
{
|
|
32
32
|
iconUrl: e.iconUrl,
|
|
33
33
|
label: e.label,
|
|
@@ -35,7 +35,8 @@ const u = (s) => c(() => /* @__PURE__ */ o(m, { children: s.map((e) => {
|
|
|
35
35
|
onClick: e.onClick || (() => {
|
|
36
36
|
}),
|
|
37
37
|
className: e.className,
|
|
38
|
-
tooltipProps: e.tooltipProps
|
|
38
|
+
tooltipProps: e.tooltipProps,
|
|
39
|
+
"aria-expanded": e["aria-expanded"]
|
|
39
40
|
},
|
|
40
41
|
e.key
|
|
41
42
|
);
|
|
@@ -6,6 +6,6 @@ import { MemoizedIconButtonProps } from './types';
|
|
|
6
6
|
* This component renders an `IconButton` with an icon and tooltip.
|
|
7
7
|
* It is memoized to avoid unnecessary re-renders when the props do not change.
|
|
8
8
|
*/
|
|
9
|
-
declare const MemoizedIconButton: React.MemoExoticComponent<({ iconUrl, label, disabled, onClick, color, className, selected, tooltipProps }: MemoizedIconButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
9
|
+
declare const MemoizedIconButton: React.MemoExoticComponent<({ iconUrl, label, disabled, onClick, color, className, selected, tooltipProps, "aria-expanded": expanded }: MemoizedIconButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
10
10
|
export default MemoizedIconButton;
|
|
11
11
|
//# sourceMappingURL=MemoizedIconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoizedIconButton.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"MemoizedIconButton.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,yIACuF,uBAAuB,sDAGrI,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|