@m4l/components 9.3.37-JT20251128-beta.2 → 9.3.38

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.
Files changed (168) hide show
  1. package/@types/types.d.ts +16 -0
  2. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  3. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  4. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  5. package/components/DataGrid/contexts/DataGridContext/index.js +268 -41
  6. package/components/DataGrid/contexts/DataGridContext/types.d.ts +20 -3
  7. package/components/DataGrid/index.d.ts +4 -5
  8. package/components/EditLabel/slots/EditLabelSlots.d.ts +1 -1
  9. package/components/LoadingError/LoadingError.js +1 -1
  10. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
  11. package/components/PropertyValue/PropertyValue.js +1 -1
  12. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
  13. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +1 -1
  14. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
  15. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.js +1 -1
  16. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  17. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js +1 -1
  18. package/components/hook-form/RHFDatePicker/RHFDatePicker.d.ts +7 -0
  19. package/components/hook-form/RHFDatePicker/RHFDatePicker.js +85 -0
  20. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.d.ts +5 -0
  21. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.js +200 -0
  22. package/components/hook-form/RHFDatePicker/constants.d.ts +4 -0
  23. package/components/hook-form/RHFDatePicker/constants.js +4 -0
  24. package/components/hook-form/RHFDatePicker/icons.d.ts +6 -0
  25. package/components/hook-form/RHFDatePicker/index.d.ts +1 -0
  26. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.d.ts +11 -0
  27. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.js +15 -0
  28. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +50 -0
  29. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.js +44 -0
  30. package/components/hook-form/RHFDatePicker/slots/index.d.ts +2 -0
  31. package/components/hook-form/RHFDatePicker/types.d.ts +61 -0
  32. package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +24 -1
  33. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.d.ts +11 -0
  34. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.js +8 -0
  35. package/components/hook-form/RHFDateTimePicker/index.d.ts +1 -0
  36. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  37. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  38. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  39. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  40. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
  41. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
  42. package/components/hook-form/index.d.ts +2 -0
  43. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
  44. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +1 -1
  45. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  46. package/components/mui_extended/DatePicker/DatePicker.d.ts +7 -0
  47. package/components/mui_extended/DatePicker/DatePicker.js +39 -0
  48. package/components/mui_extended/DatePicker/DatePicker.styles.d.ts +5 -0
  49. package/components/mui_extended/DatePicker/DatePicker.styles.js +193 -0
  50. package/components/mui_extended/DatePicker/constants.d.ts +2 -0
  51. package/components/mui_extended/DatePicker/constants.js +8 -0
  52. package/components/mui_extended/DatePicker/hooks/useDatePicker/types.d.ts +11 -0
  53. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.d.ts +9 -0
  54. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +200 -0
  55. package/components/mui_extended/DatePicker/icons.d.ts +4 -0
  56. package/components/mui_extended/DatePicker/icons.js +10 -0
  57. package/components/mui_extended/DatePicker/index.d.ts +2 -0
  58. package/components/mui_extended/DatePicker/slots/DatePickerEnum.d.ts +10 -0
  59. package/components/mui_extended/DatePicker/slots/DatePickerEnum.js +14 -0
  60. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +44 -0
  61. package/components/mui_extended/DatePicker/slots/DatePickerSlots.js +46 -0
  62. package/components/mui_extended/DatePicker/types.d.ts +32 -0
  63. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  64. package/components/mui_extended/NavLink/constants.d.ts +1 -1
  65. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  66. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  67. package/components/mui_extended/TextField/TextField.js +2 -2
  68. package/components/mui_extended/TextField/TextField.styles.js +1 -1
  69. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
  70. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  71. package/components/mui_extended/index.d.ts +1 -0
  72. package/hooks/useDataGridPersistence/constants.d.ts +0 -1
  73. package/hooks/useDataGridPersistence/constants.js +2 -4
  74. package/hooks/useDataGridPersistence/useDataGridPersistence.js +2 -5
  75. package/index.js +46 -40
  76. package/package.json +1 -1
  77. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.d.ts +0 -19
  78. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.js +0 -6
  79. package/components/DataGrid/helpers/getAllViewModes/index.d.ts +0 -1
  80. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.d.ts +0 -47
  81. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.js +0 -32
  82. package/components/DataGrid/helpers/getColumnsWidth/index.d.ts +0 -1
  83. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.d.ts +0 -24
  84. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.js +0 -12
  85. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.test.d.ts +0 -1
  86. package/components/DataGrid/helpers/getIndexRowHeightVariant/index.d.ts +0 -1
  87. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.d.ts +0 -48
  88. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.js +0 -35
  89. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.test.d.ts +0 -1
  90. package/components/DataGrid/helpers/getInitialColumnsConfig/index.d.ts +0 -1
  91. package/components/DataGrid/helpers/getViewMode/getViewMode.d.ts +0 -41
  92. package/components/DataGrid/helpers/getViewMode/getViewMode.js +0 -19
  93. package/components/DataGrid/helpers/getViewMode/getViewMode.test.d.ts +0 -1
  94. package/components/DataGrid/helpers/getViewMode/index.d.ts +0 -1
  95. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.d.ts +0 -28
  96. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.js +0 -22
  97. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.test.d.ts +0 -1
  98. package/components/DataGrid/helpers/getViewSpecificConfig/index.d.ts +0 -1
  99. package/components/DataGrid/helpers/getViewSpecificConfig/index.js +0 -1
  100. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.d.ts +0 -24
  101. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.js +0 -9
  102. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.test.d.ts +0 -1
  103. package/components/DataGrid/helpers/getViewSuffix/index.d.ts +0 -1
  104. package/components/DataGrid/helpers/getViewSuffix/index.js +0 -1
  105. package/components/DataGrid/helpers/index.d.ts +0 -13
  106. package/components/DataGrid/helpers/index.js +0 -1
  107. package/components/DataGrid/helpers/loadViewConfig/index.d.ts +0 -1
  108. package/components/DataGrid/helpers/loadViewConfig/index.js +0 -1
  109. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.d.ts +0 -23
  110. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.js +0 -12
  111. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.test.d.ts +0 -1
  112. package/components/DataGrid/helpers/saveColumnsWidth/index.d.ts +0 -1
  113. package/components/DataGrid/helpers/saveColumnsWidth/index.js +0 -1
  114. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.d.ts +0 -52
  115. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.js +0 -18
  116. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.test.d.ts +0 -1
  117. package/components/DataGrid/helpers/saveViewConfig/index.d.ts +0 -1
  118. package/components/DataGrid/helpers/saveViewConfig/index.js +0 -1
  119. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.d.ts +0 -35
  120. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.js +0 -15
  121. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.test.d.ts +0 -1
  122. package/components/DataGrid/helpers/saveViewMode/index.d.ts +0 -1
  123. package/components/DataGrid/helpers/saveViewMode/index.js +0 -1
  124. package/components/DataGrid/helpers/saveViewMode/saveViewMode.d.ts +0 -33
  125. package/components/DataGrid/helpers/saveViewMode/saveViewMode.js +0 -13
  126. package/components/DataGrid/helpers/saveViewMode/saveViewMode.test.d.ts +0 -1
  127. package/components/DataGrid/hooks/index.d.ts +0 -6
  128. package/components/DataGrid/hooks/index.js +0 -1
  129. package/components/DataGrid/hooks/useChangeColumnsConfig/index.d.ts +0 -1
  130. package/components/DataGrid/hooks/useChangeColumnsConfig/index.js +0 -1
  131. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.d.ts +0 -9
  132. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.js +0 -27
  133. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.test.d.ts +0 -1
  134. package/components/DataGrid/hooks/useChangeColumnsOrder/index.d.ts +0 -1
  135. package/components/DataGrid/hooks/useChangeColumnsOrder/index.js +0 -1
  136. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +0 -10
  137. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.js +0 -34
  138. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.test.d.ts +0 -1
  139. package/components/DataGrid/hooks/useColumnsWidth/index.d.ts +0 -1
  140. package/components/DataGrid/hooks/useColumnsWidth/index.js +0 -1
  141. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.d.ts +0 -11
  142. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.js +0 -29
  143. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.test.d.ts +0 -1
  144. package/components/DataGrid/hooks/useRowHeight/index.d.ts +0 -1
  145. package/components/DataGrid/hooks/useRowHeight/index.js +0 -1
  146. package/components/DataGrid/hooks/useRowHeight/useRowHeight.d.ts +0 -28
  147. package/components/DataGrid/hooks/useRowHeight/useRowHeight.js +0 -51
  148. package/components/DataGrid/hooks/useRowHeight/useRowHeight.test.d.ts +0 -1
  149. package/components/DataGrid/hooks/useViewConfig/index.d.ts +0 -1
  150. package/components/DataGrid/hooks/useViewConfig/index.js +0 -1
  151. package/components/DataGrid/hooks/useViewConfig/useViewConfig.d.ts +0 -9
  152. package/components/DataGrid/hooks/useViewConfig/useViewConfig.js +0 -30
  153. package/components/DataGrid/hooks/useViewConfig/useViewConfig.test.d.ts +0 -1
  154. package/components/DataGrid/hooks/useViewMode/index.d.ts +0 -1
  155. package/components/DataGrid/hooks/useViewMode/index.js +0 -1
  156. package/components/DataGrid/hooks/useViewMode/useViewMode.d.ts +0 -31
  157. package/components/DataGrid/hooks/useViewMode/useViewMode.js +0 -44
  158. package/components/DataGrid/hooks/useViewMode/useViewMode.test.d.ts +0 -1
  159. package/components/DataGrid/types.helpers.d.ts +0 -55
  160. package/components/DataGrid/types.helpers.js +0 -1
  161. package/components/DataGrid/types.hooks.d.ts +0 -81
  162. /package/components/{DataGrid/helpers/getAllViewModes/getAllViewModes.test.d.ts → hook-form/RHFDatePicker/__tests__/RHFDatePicker.test.d.ts} +0 -0
  163. /package/components/{DataGrid/helpers/getAllViewModes → hook-form/RHFDatePicker}/index.js +0 -0
  164. /package/components/{DataGrid/helpers/getColumnsWidth → hook-form/RHFDatePicker/slots}/index.js +0 -0
  165. /package/components/{DataGrid/helpers/getIndexRowHeightVariant → hook-form/RHFDateTimePicker}/index.js +0 -0
  166. /package/components/{DataGrid/helpers/getColumnsWidth/getColumnsWidth.test.d.ts → mui_extended/DatePicker/__tests__/DatePicker.test.d.ts} +0 -0
  167. /package/components/{DataGrid/helpers/getInitialColumnsConfig → mui_extended/DatePicker}/index.js +0 -0
  168. /package/components/{DataGrid/helpers/getViewMode → mui_extended/LoadingButton}/index.js +0 -0
package/@types/types.d.ts CHANGED
@@ -324,6 +324,8 @@ import {
324
324
  IconsFormatterOwnerState,
325
325
  IconsFormatterSlotsType,
326
326
  } from '../components/formatters/IconsFormatter/types';
327
+ import { RHFDatePickerOwnerState, RHFDatePickerSlotsType } from '../components/hook-form/RHFDatePicker/types';
328
+ import { DatePickerOwnerState, DatePickerSlotsType } from '../components/mui_extended/DatePicker/types';
327
329
  import {
328
330
  ImageFormatterOwnerState,
329
331
  ImageFormatterSlotsType,
@@ -424,6 +426,8 @@ declare module '@mui/material/styles' {
424
426
  M4LMFIsolationApp: MFIsolationAppSlotsType;
425
427
  M4LTagsFormatter: TagsFormatterSlotsType;
426
428
  M4LIconsFormatter: IconsFormatterSlotsType;
429
+ M4LRHFDatePicker: RHFDatePickerSlotsType;
430
+ M4LDatePicker: DatePickerSlotsType;
427
431
  M4LImageFormatter: ImageFormatterSlotsType;
428
432
  }
429
433
  interface ComponentsPropsList {
@@ -519,6 +523,8 @@ declare module '@mui/material/styles' {
519
523
  M4LMFIsolationApp: Partial<MFIsolationAppOwnerState>;
520
524
  M4LTagsFormatter: Partial<TagsFormatterOwnerState>;
521
525
  M4LIconsFormatter: Partial<IconsFormatterOwnerState>;
526
+ M4LDatePicker: Partial<DatePickerOwnerState>;
527
+ M4LRHFDatePicker: Partial<RHFDatePickerOwnerState>;
522
528
  M4LImageFormatter: Partial<ImageFormatterOwnerState>;
523
529
  }
524
530
  interface Components {
@@ -987,6 +993,16 @@ declare module '@mui/material/styles' {
987
993
  styleOverrides?: ComponentsOverrides<Theme>['M4LIconsFormatter'];
988
994
  variants?: ComponentsVariants['M4LIconsFormatter'];
989
995
  };
996
+ M4LRHFDatePicker?: {
997
+ defaultProps?: ComponentsPropsList['M4LRHFDatePicker'];
998
+ styleOverrides?: ComponentsOverrides<Theme>['M4LRHFDatePicker'];
999
+ variants?: ComponentsVariants['M4LRHFDatePicker'];
1000
+ };
1001
+ M4LDatePicker?: {
1002
+ defaultProps?: ComponentsPropsList['M4LDatePicker'];
1003
+ styleOverrides?: ComponentsOverrides<Theme>['M4LDatePicker'];
1004
+ variants?: ComponentsVariants['M4LDatePicker'];
1005
+ };
990
1006
  M4LImageFormatter?: {
991
1007
  defaultProps?: ComponentsPropsList['M4LImageFormatter'];
992
1008
  styleOverrides?: ComponentsOverrides<Theme>['M4LImageFormatter'];
@@ -1,4 +1,4 @@
1
- declare const ActionCancelRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ActionCancelOwnerState> & Record<string, unknown> & {
1
+ declare const ActionCancelRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "fullWidth" | "disableElevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ActionCancelOwnerState> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('..').ActionCancelOwnerState> & Record<string, unknown>;
3
3
  }, {}, {}>;
4
4
  export { ActionCancelRootStyled };
@@ -1,3 +1,3 @@
1
- export declare const ButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ActionFormCancelOwnerState> & Record<string, unknown> & {
1
+ export declare const ButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "fullWidth" | "disableElevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ActionFormCancelOwnerState> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('../types').ActionFormCancelOwnerState> & Record<string, unknown>;
3
3
  }, {}, {}>;
@@ -1,4 +1,4 @@
1
- declare const ActionIntroRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ActionIntroOwnerState> & Record<string, unknown> & {
1
+ declare const ActionIntroRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "fullWidth" | "disableElevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ActionIntroOwnerState> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('..').ActionIntroOwnerState> & Record<string, unknown>;
3
3
  }, {}, {}>;
4
4
  export { ActionIntroRootStyled };
@@ -1,22 +1,146 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useState, useEffect, useMemo, createContext } from "react";
3
- import { useFirstRender } from "@m4l/graphics";
2
+ import { useState, useCallback, useEffect, useMemo, createContext } from "react";
3
+ import { c as castMapColumnsWidthToRecord } from "../../helpers/castMapColumnsWidthToRecord.js";
4
+ import { useFirstRender, useIsMobile } from "@m4l/graphics";
4
5
  import { g as getComponentClasses } from "../../../../utils/getComponentSlotRoot.js";
5
6
  import { a as DATAGRID_ROW_HEIGHTS, b as DATAGRID_ROW_HEADER_HEIGHTS, D as DATAGRID_PREFIX_NAME } from "../../constants.js";
6
7
  import { C as ControlNavigateSlots, a as ColumnsConfigSlots, T as TextEditorSlots, b as TableSlots, R as RowsCountSlots, A as ActionsSlots, D as DataGridSlots } from "../../slots/DataGridEnum.js";
7
8
  import { deepEqual } from "fast-equals";
8
- import { u as useViewMode } from "../../hooks/useViewMode/useViewMode.js";
9
- import { u as useRowHeight } from "../../hooks/useRowHeight/useRowHeight.js";
10
- import { u as useColumnsWidth } from "../../hooks/useColumnsWidth/useColumnsWidth.js";
11
- import { u as useViewConfig } from "../../hooks/useViewConfig/useViewConfig.js";
12
- import { u as useChangeColumnsConfig } from "../../hooks/useChangeColumnsConfig/useChangeColumnsConfig.js";
13
- import { u as useChangeColumnsOrder } from "../../hooks/useChangeColumnsOrder/useChangeColumnsOrder.js";
14
- import { g as getColumnsWidth } from "../../helpers/getColumnsWidth/getColumnsWidth.js";
15
- import { g as getInitialColumnsConfig } from "../../helpers/getInitialColumnsConfig/getInitialColumnsConfig.js";
16
- import { g as getAllViewModes } from "../../helpers/getAllViewModes/getAllViewModes.js";
17
- import { g as getViewSpecificConfig } from "../../helpers/getViewSpecificConfig/getViewSpecificConfig.js";
18
- import { g as getViewMode } from "../../helpers/getViewMode/getViewMode.js";
19
9
  const DataGridContext = createContext(null);
10
+ function getColumnsWidth(id, columns, defaultUserColumns) {
11
+ const newMap = /* @__PURE__ */ new Map();
12
+ let storeColumnsWidth;
13
+ try {
14
+ const item = window.localStorage.getItem(`${id}_columns_width`);
15
+ storeColumnsWidth = item !== null ? new Map(JSON.parse(item)) : /* @__PURE__ */ new Map();
16
+ } catch (_e) {
17
+ storeColumnsWidth = /* @__PURE__ */ new Map();
18
+ }
19
+ for (let i = 0; i < columns.length; i++) {
20
+ let width;
21
+ if (defaultUserColumns) {
22
+ try {
23
+ width = defaultUserColumns.columnsWidths[columns[i].key];
24
+ } catch (_e) {
25
+ }
26
+ }
27
+ if (width === void 0) {
28
+ const storeWidth = storeColumnsWidth.get(columns[i].key);
29
+ if (typeof storeWidth === "number") {
30
+ width = storeWidth;
31
+ }
32
+ }
33
+ if (width !== void 0) {
34
+ newMap.set(columns[i].key, width);
35
+ }
36
+ }
37
+ return newMap;
38
+ }
39
+ function saveColumnsWidth(id, storeColumnsWidth, onChangeUserColumns) {
40
+ if (onChangeUserColumns) {
41
+ const columnsWidthObject = castMapColumnsWidthToRecord(storeColumnsWidth);
42
+ onChangeUserColumns({
43
+ reason: "columnsWidths",
44
+ userConfig: columnsWidthObject
45
+ });
46
+ return;
47
+ }
48
+ localStorage.setItem(
49
+ `${id}_columns_width`,
50
+ JSON.stringify([...storeColumnsWidth])
51
+ );
52
+ }
53
+ const getAllViewModes = () => {
54
+ return ["table", "cards"];
55
+ };
56
+ const getViewSpecificConfig = (viewMode) => {
57
+ const configs = {
58
+ table: {
59
+ defaults: { frozen: false },
60
+ originalDefaults: { originalFrozen: false },
61
+ dynamicOriginalProperty: (item) => ({
62
+ originalFrozen: item?.frozen ?? false
63
+ })
64
+ },
65
+ cards: {
66
+ defaults: { showTitle: true },
67
+ originalDefaults: { originalShowTitle: true },
68
+ dynamicOriginalProperty: (item) => ({
69
+ originalShowTitle: item?.showTitle ?? true
70
+ })
71
+ }
72
+ };
73
+ return configs[viewMode] || configs.table;
74
+ };
75
+ const getViewSuffix = (viewMode) => {
76
+ if (viewMode === "table") {
77
+ return "";
78
+ }
79
+ return `_${viewMode}`;
80
+ };
81
+ function getInitialColumnsConfig(id, columns, viewMode, defaultUserConfig, viewSpecificDefaults, originalViewSpecificDefaults) {
82
+ let columnsConfig;
83
+ if (defaultUserConfig) {
84
+ columnsConfig = defaultUserConfig;
85
+ } else {
86
+ columnsConfig = loadViewConfig(
87
+ id,
88
+ getViewSuffix(viewMode)
89
+ ) || [];
90
+ }
91
+ return columns.map((column, index) => {
92
+ const existingConfig = columnsConfig.find((c) => c.key === column.key);
93
+ const columnConfigIndex = existingConfig ? columnsConfig.indexOf(existingConfig) : -1;
94
+ const baseConfig = {
95
+ key: column.key,
96
+ name: typeof column.name === "string" ? column.name : String(column.name),
97
+ hidden: column.hidden === void 0 ? false : column.hidden,
98
+ index: columnConfigIndex > -1 ? columnConfigIndex : index,
99
+ visible: existingConfig?.visible !== void 0 ? existingConfig.visible : column.visible === void 0 ? true : column.visible,
100
+ originalIndex: index,
101
+ originalVisible: column.visible === void 0 ? true : column.visible
102
+ };
103
+ return {
104
+ ...baseConfig,
105
+ ...viewSpecificDefaults,
106
+ ...originalViewSpecificDefaults,
107
+ ...existingConfig || {}
108
+ };
109
+ }).sort((a, b) => a.index - b.index);
110
+ }
111
+ function saveViewConfig(id, viewSuffix, config, onChangeCallback) {
112
+ if (onChangeCallback) {
113
+ const reason = viewSuffix === "" ? "columnsConfig" : `columnsConfig${viewSuffix.replace("_", "")}`;
114
+ onChangeCallback({
115
+ reason,
116
+ userConfig: config
117
+ });
118
+ return;
119
+ }
120
+ const storageKey = viewSuffix === "" ? `${id}_columns_config` : `${id}_columns_config${viewSuffix}`;
121
+ localStorage.setItem(storageKey, JSON.stringify(config));
122
+ }
123
+ function loadViewConfig(id, viewSuffix) {
124
+ try {
125
+ const storageKey = viewSuffix === "" ? `${id}_columns_config` : `${id}_columns_config${viewSuffix}`;
126
+ const stored = localStorage.getItem(storageKey);
127
+ return stored ? JSON.parse(stored) : null;
128
+ } catch (_e) {
129
+ return null;
130
+ }
131
+ }
132
+ function saveViewMode(id, viewMode) {
133
+ localStorage.setItem(`${id}_view_mode`, viewMode);
134
+ }
135
+ function getIndexRowHeightVariant(variant) {
136
+ if (variant === "compact") {
137
+ return 0;
138
+ }
139
+ if (variant === "standard") {
140
+ return 1;
141
+ }
142
+ return 2;
143
+ }
20
144
  function DataGridProvider(props) {
21
145
  const {
22
146
  id,
@@ -43,32 +167,7 @@ function DataGridProvider(props) {
43
167
  cardsViewConfig
44
168
  } = props;
45
169
  const isFirstRender = useFirstRender([columns, id]);
46
- const { viewModeState, setViewModeState, handleViewModeChange } = useViewMode({
47
- id,
48
- viewMode,
49
- defaultViewMode,
50
- onViewModeChange,
51
- onChangeUserColumns
52
- });
53
- const { currentRowHeightVariant, setRowHeightVariant } = useRowHeight({
54
- rowHeights,
55
- rowHeaderHeights,
56
- initialRowHeightVariant
57
- });
58
- const { columnsWidths, setColumnsWidths, onChangeColumnWidth } = useColumnsWidth({
59
- id,
60
- onChangeUserColumns
61
- });
62
- const { getConfigColumns, updateConfigColumns } = useViewConfig();
63
- const { onChangeColumnsConfig } = useChangeColumnsConfig({
64
- id,
65
- onChangeUserColumns,
66
- updateConfigColumns
67
- });
68
- const { onChangeColumnsOrder } = useChangeColumnsOrder({
69
- getConfigColumns,
70
- onChangeColumnsConfig
71
- });
170
+ const isMobile = useIsMobile();
72
171
  const classes = getComponentClasses(DATAGRID_PREFIX_NAME, {
73
172
  ...DataGridSlots,
74
173
  ...ActionsSlots,
@@ -78,8 +177,80 @@ function DataGridProvider(props) {
78
177
  ...ColumnsConfigSlots,
79
178
  ...ControlNavigateSlots
80
179
  });
180
+ const [columnsWidths, setColumnsWidths] = useState(/* @__PURE__ */ new Map());
181
+ const [viewConfig, setViewConfig] = useState(() => ({
182
+ table: [],
183
+ cards: []
184
+ }));
185
+ const getConfigColumns = useCallback(
186
+ (viewModeParam) => {
187
+ return viewConfig[viewModeParam];
188
+ },
189
+ [viewConfig]
190
+ );
191
+ const updateConfigColumns = useCallback(
192
+ (viewModeParam, config) => {
193
+ setViewConfig((prev) => ({
194
+ ...prev,
195
+ [viewModeParam]: config
196
+ }));
197
+ },
198
+ []
199
+ );
81
200
  const [rowsFilterCount, setRowFilterCount] = useState(rowsCount);
82
201
  const [sortColumns, setSortColumns] = useState([]);
202
+ const [viewModeState, setViewModeState] = useState(() => {
203
+ if (viewMode) {
204
+ return viewMode;
205
+ }
206
+ try {
207
+ const savedViewMode = localStorage.getItem(`${id}_view_mode`);
208
+ if (savedViewMode === "cards" || savedViewMode === "table") {
209
+ return savedViewMode;
210
+ }
211
+ } catch (_e) {
212
+ }
213
+ if (defaultViewMode) {
214
+ return defaultViewMode;
215
+ }
216
+ return isMobile ? "cards" : "table";
217
+ });
218
+ const handleViewModeChange = useCallback(
219
+ (newViewMode) => {
220
+ setViewModeState(newViewMode);
221
+ saveViewMode(id, newViewMode);
222
+ onViewModeChange?.(newViewMode);
223
+ },
224
+ [onViewModeChange, id]
225
+ );
226
+ useEffect(() => {
227
+ if (viewMode !== void 0) {
228
+ setViewModeState(viewMode);
229
+ }
230
+ }, [viewMode]);
231
+ const [currentRowHeightVariant, setCurrentRowHeightVariant] = useState(() => {
232
+ if (typeof rowHeights !== typeof rowHeaderHeights) {
233
+ throw new Error("Must be same type rowheights and rowHeaderTypes");
234
+ }
235
+ if (typeof rowHeights === "number" && typeof rowHeaderHeights === "number") {
236
+ return {
237
+ rowHVariant: "compact",
238
+ rowHeight: rowHeights,
239
+ rowHeaderHeight: rowHeaderHeights
240
+ };
241
+ }
242
+ if (typeof rowHeights !== "number" && rowHeights.length !== 3) {
243
+ throw new Error("Must be 3 heights");
244
+ }
245
+ if (typeof rowHeaderHeights !== "number" && rowHeaderHeights.length !== 3) {
246
+ throw new Error("Must be 3 HeaderHeights");
247
+ }
248
+ return {
249
+ rowHVariant: initialRowHeightVariant,
250
+ rowHeight: typeof rowHeights !== "number" ? rowHeights[getIndexRowHeightVariant(initialRowHeightVariant)] : rowHeights,
251
+ rowHeaderHeight: typeof rowHeaderHeights !== "number" ? rowHeaderHeights[getIndexRowHeightVariant(initialRowHeightVariant)] : rowHeaderHeights
252
+ };
253
+ });
83
254
  useEffect(() => {
84
255
  const keys = new Set(columns.map((c) => c.key));
85
256
  if (sortSettings?.sortsColumns) {
@@ -145,10 +316,10 @@ function DataGridProvider(props) {
145
316
  }
146
317
  }, [columns, sortSettings, filterSettings, cardsViewConfig]);
147
318
  const finalRowHeights = useMemo(() => rowHeights, [rowHeights]);
319
+ let timerSaveColumns;
148
320
  useEffect(() => {
149
321
  if (isFirstRender) {
150
322
  setColumnsWidths(getColumnsWidth(id, columns, defaultUserColumns));
151
- setViewModeState(getViewMode(id, defaultUserColumns, defaultViewMode) ?? "table");
152
323
  updateConfigColumns(
153
324
  "table",
154
325
  getInitialColumnsConfig(
@@ -280,9 +451,65 @@ function DataGridProvider(props) {
280
451
  });
281
452
  }
282
453
  }, [columns, id]);
454
+ const onChangeColumnsConfig = useCallback(
455
+ (viewModeParam, newConfig) => {
456
+ saveViewConfig(
457
+ id,
458
+ getViewSuffix(viewModeParam),
459
+ newConfig,
460
+ onChangeUserColumns
461
+ );
462
+ updateConfigColumns(viewModeParam, newConfig);
463
+ },
464
+ [id, onChangeUserColumns, updateConfigColumns]
465
+ );
466
+ const onChangeColumnsOrder = useCallback(
467
+ (viewModeParam, sourceKey, targetKey) => {
468
+ if (sourceKey === targetKey) {
469
+ return;
470
+ }
471
+ const currentConfig = getConfigColumns(viewModeParam);
472
+ const sourceColumnIndex = currentConfig.findIndex(
473
+ (c) => c.key === sourceKey
474
+ );
475
+ const targetColumnIndex = currentConfig.findIndex(
476
+ (c) => c.key === targetKey
477
+ );
478
+ const reorderedConfig = [...currentConfig];
479
+ reorderedConfig.splice(
480
+ targetColumnIndex,
481
+ 0,
482
+ reorderedConfig.splice(sourceColumnIndex, 1)[0]
483
+ );
484
+ onChangeColumnsConfig(viewModeParam, reorderedConfig);
485
+ },
486
+ [getConfigColumns, onChangeColumnsConfig]
487
+ );
488
+ const onChangeColumnWidth = (columnKey, width) => {
489
+ columnsWidths.set(columnKey, Math.round(width));
490
+ if (timerSaveColumns) {
491
+ clearTimeout(timerSaveColumns);
492
+ }
493
+ timerSaveColumns = setTimeout(() => {
494
+ saveColumnsWidth(id, columnsWidths, onChangeUserColumns);
495
+ }, 500);
496
+ };
283
497
  const setRowFilterCountInternal = (newRowsCount) => {
284
498
  setRowFilterCount(newRowsCount);
285
499
  };
500
+ const setCurrentRowHeightInternal = useCallback(
501
+ (newVariant) => {
502
+ if (typeof rowHeights === "number" || typeof rowHeaderHeights === "number") {
503
+ throw new Error("Only use setCurrentRowHeight with vector rowHeights");
504
+ }
505
+ setCurrentRowHeightVariant({
506
+ rowHVariant: newVariant,
507
+ rowHeight: rowHeights[getIndexRowHeightVariant(newVariant)],
508
+ rowHeaderHeight: rowHeaderHeights[getIndexRowHeightVariant(newVariant)]
509
+ });
510
+ },
511
+ [setCurrentRowHeightVariant, rowHeights, rowHeaderHeights]
512
+ );
286
513
  return /* @__PURE__ */ jsx(
287
514
  DataGridContext.Provider,
288
515
  {
@@ -302,7 +529,7 @@ function DataGridProvider(props) {
302
529
  onChangeColumnWidth,
303
530
  setRowsCount: setRowFilterCountInternal,
304
531
  rowActionsGetter,
305
- setRowHeightVariant,
532
+ setRowHeightVariant: setCurrentRowHeightInternal,
306
533
  onCheckedRowsChange,
307
534
  checkedRowsMultiple,
308
535
  rowKeyGetter,
@@ -3,12 +3,21 @@ import { RowKey, RowHeightVariants, GridProps } from '../../types';
3
3
  import { Maybe } from '@m4l/core';
4
4
  import { ActionsSlots, ColumnsConfigSlots, ControlNavigateSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from '../../slots/DataGridEnum';
5
5
  import { SortColumn } from 'react-data-grid';
6
- import { IGridConfig, BaseViewConfig } from '../../types.helpers';
6
+ /**
7
+ * Configuración base genérica que puede extenderse con propiedades específicas de cualquier vista
8
+ * USO INTERNO: El sistema usa esto para manejar genéricamente las configuraciones
9
+ */
10
+ export type BaseViewConfig<TViewSpecific = {}> = TViewSpecific & {
11
+ key: string;
12
+ visible: boolean;
13
+ index: number;
14
+ name?: string;
15
+ };
7
16
  /**
8
17
  * Configuración extendida genérica con propiedades originales
9
18
  * USO INTERNO: El contexto usa esto para el estado interno con propiedades de tracking
10
19
  */
11
- export type IViewConfig<TViewSpecific = object, TOriginalViewSpecific = object> = BaseViewConfig<TViewSpecific> & {
20
+ export type IViewConfig<TViewSpecific = {}, TOriginalViewSpecific = {}> = BaseViewConfig<TViewSpecific> & {
12
21
  hidden: boolean;
13
22
  originalIndex: number;
14
23
  originalVisible: boolean;
@@ -53,6 +62,15 @@ export interface IConfigColumnCards extends Omit<IConfigColumn, 'frozen' | 'orig
53
62
  originalShowTitle: boolean;
54
63
  }
55
64
  export type ViewMode = 'table' | 'cards';
65
+ /**
66
+ * Configuración base del Grid (API pública original)
67
+ * USO: Tipo base para defaultUserColumns - mantiene retrocompatibilidad
68
+ * IMPORTANTE: No modificar para mantener retrocompatibilidad con código existente
69
+ */
70
+ export interface IGridConfig {
71
+ columnsConfig: BaseConfigColumn[];
72
+ columnsWidths: Record<RowKey, number>;
73
+ }
56
74
  /**
57
75
  * Configuración extendida del Grid para soportar múltiples vistas
58
76
  * USO: Para nuevas implementaciones que soporten cards y futuras vistas
@@ -60,7 +78,6 @@ export type ViewMode = 'table' | 'cards';
60
78
  */
61
79
  export interface IGridConfigExtended extends IGridConfig {
62
80
  columnsConfigCards?: BaseConfigColumnCards[];
63
- viewMode?: ViewMode;
64
81
  }
65
82
  export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Pick<GridProps<TRow, TSummaryRow, TKey>, 'rows' | 'columns' | 'rowActionsGetter' | 'rowHeaderHeights' | 'rowHeights' | 'initialRowHeightVariant' | 'checkedRows' | 'onCheckedRowsChange' | 'checkedRowsMultiple' | 'rowKeyGetter' | 'onChangeUserColumns' | 'defaultUserColumns' | 'externalSortSettings' | 'externalFilterSettings' | 'defaultViewMode' | 'cardsViewConfig'> {
66
83
  id: number | string;
@@ -1,10 +1,9 @@
1
1
  export { DataGrid } from './DataGrid';
2
2
  export * from './formatters';
3
- export type { Column, RenderEditCellProps, RenderCellProps, } from 'react-data-grid';
4
- export type { RowKey, ChangeUserColumn, RowActionsGetter, RowKeyGetter, } from './types';
3
+ export type { Column, RenderEditCellProps, RenderCellProps } from 'react-data-grid';
4
+ export type { RowKey, ChangeUserColumn, RowActionsGetter, RowKeyGetter } from './types';
5
5
  export { getDataGridComponentsDictionary } from './dictionary';
6
6
  export { TextEditor, NumberEditor } from './subcomponents/editors/TextEditor';
7
7
  export { getDataGridRowsFromSet } from './utils/getDataGridRowsFromSet';
8
- export type { IGridConfigExtended, BaseConfigColumn, } from './contexts/DataGridContext/types';
9
- export { DATAGRID_SEMANTIC_WIDTHS, DATAGRID_ROW_HEADER_HEIGHTS, DATAGRID_ROW_HEIGHTS, } from './constants';
10
- export * from './types.helpers';
8
+ export type { IGridConfig, IGridConfigExtended, BaseConfigColumn } from './contexts/DataGridContext/types';
9
+ export { DATAGRID_SEMANTIC_WIDTHS, DATAGRID_ROW_HEADER_HEIGHTS, DATAGRID_ROW_HEIGHTS } from './constants';