@m4l/components 9.17.1-beta-feat-areas-improvement-plan.0 → 9.17.1-beta-feature-731-m4l-components-code-editor.1

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 +11 -0
  2. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +1 -2
  3. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
  4. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +41 -30
  5. package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
  6. package/components/CommonActions/index.d.ts +0 -1
  7. package/components/CommonActions/index.d.ts.map +1 -1
  8. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +14 -3
  9. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
  10. package/components/DragResizeWindowRND/DragResizeWindowRND.js +119 -105
  11. package/components/DragResizeWindowRND/helpers/index.d.ts +0 -1
  12. package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
  13. package/components/DragResizeWindowRND/types.d.ts +1 -3
  14. package/components/DragResizeWindowRND/types.d.ts.map +1 -1
  15. package/components/WindowBase/WindowBase.d.ts.map +1 -1
  16. package/components/WindowBase/WindowBase.js +49 -49
  17. package/components/WindowBase/WindowBase.styles.d.ts +1 -1
  18. package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
  19. package/components/WindowBase/WindowBase.styles.js +12 -37
  20. package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +34 -19
  21. package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
  22. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
  23. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +5 -2
  24. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
  25. package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
  26. package/components/areas/components/AreasAdmin/helper.d.ts +4 -1
  27. package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
  28. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +26 -2
  29. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
  30. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +71 -72
  31. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
  32. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
  33. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +24 -2
  34. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
  35. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +57 -58
  36. package/components/areas/components/AreasAdmin/types.d.ts +9 -9
  37. package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
  38. package/components/areas/components/AreasViewer/AreasViewer.styles.js +6 -174
  39. package/components/areas/components/AreasViewer/constants.d.ts +0 -12
  40. package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
  41. package/components/areas/components/AreasViewer/constants.js +2 -5
  42. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +0 -9
  43. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
  44. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
  45. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +0 -27
  46. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
  47. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +25 -62
  48. package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +4 -1
  49. package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
  50. package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
  51. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +2 -1
  52. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
  53. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +11 -12
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +0 -61
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
  58. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +6 -3
  59. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
  60. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
  61. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +3 -1
  62. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
  63. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
  64. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
  65. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +40 -68
  66. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +11 -6
  67. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
  68. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +76 -77
  69. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +5 -3
  70. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
  71. package/components/areas/contexts/AreasContext/helpers/helper.d.ts +15 -20
  72. package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
  73. package/components/areas/contexts/AreasContext/helpers/helper.js +7 -8
  74. package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
  75. package/components/areas/contexts/AreasContext/index.js +48 -51
  76. package/components/areas/contexts/AreasContext/store.d.ts +3 -2
  77. package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
  78. package/components/areas/contexts/AreasContext/store.js +290 -397
  79. package/components/areas/contexts/AreasContext/types.d.ts +85 -109
  80. package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
  81. package/components/areas/dictionary.d.ts +0 -3
  82. package/components/areas/dictionary.d.ts.map +1 -1
  83. package/components/areas/dictionary.js +6 -9
  84. package/components/areas/hooks/useAreas/index.d.ts +2 -2
  85. package/components/areas/hooks/useAreas/index.js +4 -4
  86. package/components/areas/types.d.ts +47 -173
  87. package/components/areas/types.d.ts.map +1 -1
  88. package/components/areas/utils/useOnClickOutside/index.d.ts +1 -2
  89. package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
  90. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +6 -0
  91. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -0
  92. package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +247 -0
  93. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +3 -0
  94. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -0
  95. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +297 -0
  96. package/components/extended/ReactSimpleCodeEditor/constants.d.ts +82 -0
  97. package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -0
  98. package/components/extended/ReactSimpleCodeEditor/constants.js +149 -0
  99. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +11 -0
  100. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +1 -0
  101. package/components/extended/ReactSimpleCodeEditor/dictionary.js +7 -0
  102. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +59 -0
  103. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +1 -0
  104. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +1063 -0
  105. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +6 -0
  106. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +1 -0
  107. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +7 -0
  108. package/components/extended/ReactSimpleCodeEditor/index.d.ts +4 -0
  109. package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +1 -0
  110. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +18 -0
  111. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -0
  112. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +4 -0
  113. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +84 -0
  114. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -0
  115. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +63 -0
  116. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +3 -0
  117. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +1 -0
  118. package/components/extended/ReactSimpleCodeEditor/types.d.ts +127 -0
  119. package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -0
  120. package/components/extended/index.d.ts +1 -0
  121. package/components/extended/index.d.ts.map +1 -1
  122. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +7 -0
  123. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +1 -0
  124. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +6 -0
  125. package/components/hook-form/RHFCodeEditor/index.d.ts +3 -0
  126. package/components/hook-form/RHFCodeEditor/index.d.ts.map +1 -0
  127. package/components/hook-form/index.d.ts +1 -0
  128. package/components/hook-form/index.d.ts.map +1 -1
  129. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +4 -5
  130. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
  131. package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
  132. package/hooks/index.d.ts +0 -1
  133. package/hooks/index.d.ts.map +1 -1
  134. package/index.js +675 -664
  135. package/package.json +11 -8
  136. package/test/mocks/dictionary-mock.d.ts +0 -2
  137. package/test/mocks/dictionary-mock.d.ts.map +1 -1
  138. package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +0 -15
  139. package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +0 -1
  140. package/components/DragResizeWindowRND/helpers/resizeHandles.js +0 -68
  141. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +0 -78
  142. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +0 -1
  143. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +0 -86
  144. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +0 -33
  145. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +0 -1
  146. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +0 -91
  147. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +0 -6
  148. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +0 -1
  149. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +0 -45
  150. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +0 -16
  151. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +0 -1
  152. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +0 -105
  153. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +0 -6
  154. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +0 -1
  155. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +0 -158
  156. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +0 -15
  157. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +0 -1
  158. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +0 -19
  159. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +0 -14
  160. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +0 -1
  161. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +0 -35
  162. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +0 -7
  163. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +0 -1
  164. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +0 -68
  165. package/components/areas/utils/useOnClickOutside/index.js +0 -15
  166. package/hooks/useWindowCloseGuard/index.d.ts +0 -18
  167. package/hooks/useWindowCloseGuard/index.d.ts.map +0 -1
  168. package/hooks/useWindowCloseGuard/index.js +0 -56
package/@types/types.d.ts CHANGED
@@ -373,6 +373,10 @@ import {
373
373
  ReactJsonViewerOwnerState,
374
374
  ReactJsonViewerSlotsType,
375
375
  } from '../components/extended/React-Json-Viewer/types';
376
+ import {
377
+ CodeEditorOwnerState,
378
+ CodeEditorSlotsType,
379
+ } from '../components/extended/ReactSimpleCodeEditor/types';
376
380
  import {
377
381
  ResizableOwnerState as ReactResizableOwnerState,
378
382
  ResizableSlotsType,
@@ -499,6 +503,7 @@ declare module '@mui/material/styles' {
499
503
  M4LFixedSizeList: FixedSizeListSlotsType;
500
504
  M4LVariableSizeList: VariableSizeListSlotsType;
501
505
  M4LReactJsonViewer: ReactJsonViewerSlotsType;
506
+ M4LCodeEditor: CodeEditorSlotsType;
502
507
  M4LResizable: ResizableSlotsType;
503
508
  M4LResizableBox: ResizableBoxSlotsType;
504
509
  M4LImageSelector: ImageSelectorSlotsType;
@@ -614,6 +619,7 @@ declare module '@mui/material/styles' {
614
619
  M4LFixedSizeList: Partial<FixedSizeListOwnerState>;
615
620
  M4LVariableSizeList: Partial<VariableSizeListOwnerState>;
616
621
  M4LReactJsonViewer: Partial<ReactJsonViewerOwnerState>;
622
+ M4LCodeEditor: Partial<CodeEditorOwnerState>;
617
623
  M4LResizable: Partial<ReactResizableOwnerState>;
618
624
  M4LResizableBox: Partial<ResizableBoxOwnerState>;
619
625
  M4LImageSelector: Partial<ImageSelectorOwnerState>;
@@ -1168,6 +1174,11 @@ declare module '@mui/material/styles' {
1168
1174
  styleOverrides?: ComponentsOverrides<Theme>['M4LReactJsonViewer'];
1169
1175
  variants?: ComponentsVariants['M4LReactJsonViewer'];
1170
1176
  };
1177
+ M4LCodeEditor?: {
1178
+ defaultProps?: ComponentsPropsList['M4LCodeEditor'];
1179
+ styleOverrides?: ComponentsOverrides<Theme>['M4LCodeEditor'];
1180
+ variants?: ComponentsVariants['M4LCodeEditor'];
1181
+ };
1171
1182
  M4LResizable?: {
1172
1183
  defaultProps?: ComponentsPropsList['M4LResizable'];
1173
1184
  styleOverrides?: ComponentsOverrides<Theme>['M4LResizable'];
@@ -1,7 +1,6 @@
1
1
  import { ActionFormCancelProps } from './types';
2
2
  /**
3
- * Render a cancel action that can optionally become the guarded close entrypoint
4
- * for the whole window.
3
+ * Este componente es útil en formularios donde se necesita un botón de cancelación
5
4
  */
6
5
  export declare function ActionFormCancel(props: ActionFormCancelProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
6
  //# sourceMappingURL=ActionFormCancel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionFormCancel.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/CommonActions/components/ActionFormCancel/ActionFormCancel.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGhD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,oDAsC5D"}
1
+ {"version":3,"file":"ActionFormCancel.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/CommonActions/components/ActionFormCancel/ActionFormCancel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGhD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,oDA0D5D"}
@@ -1,41 +1,52 @@
1
- import { jsx as C } from "@emotion/react/jsx-runtime";
2
- import { useFormContext as f, useFormState as d } from "react-hook-form";
3
- import { useModuleDictionary as u } from "@m4l/core";
4
- import { useCallback as p } from "react";
5
- import { useWindowCloseGuard as I } from "../../../../hooks/useWindowCloseGuard/index.js";
6
- import { clsx as T } from "clsx";
1
+ import { jsx as c } from "@emotion/react/jsx-runtime";
2
+ import { useFormContext as I, useFormState as w } from "react-hook-form";
3
+ import { useModuleDictionary as F } from "@m4l/core";
4
+ import { useCallback as f, useEffect as T } from "react";
5
+ import { useModal as M } from "../../../../hooks/useModal/index.js";
6
+ import { useWindowToolsMF as N } from "../../../WindowBase/hooks/useWindowToolsMF/index.js";
7
+ import { clsx as k } from "clsx";
7
8
  import { classActoinFormCancelRoot as A } from "./constanst.js";
8
- import { DICTIONARY as t } from "../../dictionary.js";
9
- import { ButtonRootStyled as F } from "./slots/ActionFormCancelSlots.js";
10
- function w(r) {
9
+ import { DICTIONARY as r } from "../../dictionary.js";
10
+ import { WindowConfirm as L } from "../../../WindowConfirm/WindowConfirm.js";
11
+ import { ButtonRootStyled as R } from "./slots/ActionFormCancelSlots.js";
12
+ function W(C) {
11
13
  const {
12
- className: s,
14
+ className: d,
13
15
  onClose: e,
14
- linkToCloseWindow: n = !1,
15
- "data-testid": i
16
- } = r, { getLabel: o } = u(), { control: a } = f(), { isDirty: l } = d({
17
- control: a
18
- }), m = p(() => {
19
- e?.();
20
- }, [e]), { requestClose: c } = I({
21
- confirmMessage: o(t.CONFIRM_QUIT_MSG),
22
- confirmTitle: o(t.CONFIRM_QUIT_TITLE),
23
- isDirty: l,
24
- linkToCloseWindow: n,
25
- onAfterClose: m
26
- });
27
- return /* @__PURE__ */ C(
28
- F,
16
+ linkToCloseWindow: i = !1,
17
+ "data-testid": u
18
+ } = C, { getLabel: o } = F(), { openModal: s } = M(), { close: a, setFnQueryClose: l } = N(), { control: p } = I(), { isDirty: m } = w({
19
+ control: p
20
+ }), t = f(() => {
21
+ a(!1), e?.();
22
+ }, [a, e]), n = f(() => {
23
+ m ? s({
24
+ window: /* @__PURE__ */ c(
25
+ L,
26
+ {
27
+ variant: "warning",
28
+ title: o(r.CONFIRM_QUIT_TITLE),
29
+ msg: o(r.CONFIRM_QUIT_MSG),
30
+ onClickIntro: t
31
+ }
32
+ ),
33
+ variant: "warning"
34
+ }) : t();
35
+ }, [m, s, o, t]);
36
+ return T(() => {
37
+ i && l(n);
38
+ }, [n, l, i]), /* @__PURE__ */ c(
39
+ R,
29
40
  {
30
41
  ownerState: {},
31
42
  variant: "outlined",
32
- onClick: () => c(),
33
- className: T(A, s),
34
- label: o(t.LABEL_CANCEL),
35
- "data-testid": i
43
+ onClick: n,
44
+ className: k(A, d),
45
+ label: o(r.LABEL_CANCEL),
46
+ "data-testid": u
36
47
  }
37
48
  );
38
49
  }
39
50
  export {
40
- w as ActionFormCancel
51
+ W as ActionFormCancel
41
52
  };
@@ -11,11 +11,11 @@ export interface ActionFormCancelProps extends ButtonProps {
11
11
  dictionaryId?: string;
12
12
  className?: string;
13
13
  /**
14
- * Run this callback after the standard close path finishes successfully.
14
+ * Cuando efectivamente se cierrar la ventana se ejecuta esta función.
15
15
  */
16
16
  onClose?: () => void;
17
17
  /**
18
- * Register the same guarded flow as the shell-level query-close handler.
18
+ * Vicular la funcion de cierre de consulta con la funcion de cierre de la ventana.
19
19
  */
20
20
  linkToCloseWindow: boolean;
21
21
  'data-testid'?: string;
@@ -4,7 +4,6 @@ export { ActionIntro } from './components/ActionIntro';
4
4
  export { ActionFormCancel } from './components/ActionFormCancel/ActionFormCancel';
5
5
  export { ActionFormIntro } from './components/ActionFormIntro/ActionFormIntro';
6
6
  export { ActionFormSubmitProgrammatic } from './components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic';
7
- export { useWindowCloseGuard } from '../../hooks/useWindowCloseGuard';
8
7
  export { getCommonActionsDictionary } from './dictionary';
9
8
  export * from './dictionary';
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CommonActions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AACtH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CommonActions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,cAAc,cAAc,CAAC"}
@@ -1,8 +1,19 @@
1
1
  import { DragResizeWindowPropsRND, DragResizeWindowRNDRefHandler } from './types';
2
2
  /**
3
- * DragResizeWindowRND wraps children in a draggable and resizable shell.
4
- * It keeps a controlled size/position contract while adapting to parent bounds,
5
- * parent scroll, and container shrink/expand scenarios.
3
+ * Este component es un wrapper o ventana draggable y resizable al children.
4
+ * Características
5
+ * - Permite definir bounds para que la ventana no se salga del contenedor padre.
6
+ * - Es obligarlo pasarle como props el containerElement (HTMLElement) del padre.
7
+ * - Reajusta el Resizable para que los handlers n, w, crezcan en la dirección correcta.
8
+ * Funcionamiento interno:
9
+ * - DraggableCore clona el children y le agrega un handle para poder arrastrar la ventana
10
+ * - DraggableCore recomienda pasarle el nodeRef del wrapper Element , para que no tenga que hacer FindDOMNode.
11
+ * - DraggableCore No se le puede poner estilo, ya que no aporta className ni html, solo clona el children
12
+ * internamente le agrega las clases propias del componente: react-draggable,react-draggable-dragging,react-draggable-dragged
13
+ * Por lo tanto todo el estilo, va directamente a WrapperWindowRoot.
14
+ * Consideraciones:
15
+ * @param props
16
+ * @returns
6
17
  */
7
18
  export declare const DragResizeWindowRND: import('react').ForwardRefExoticComponent<Omit<DragResizeWindowPropsRND, "ref"> & import('react').RefAttributes<DragResizeWindowRNDRefHandler>>;
8
19
  export default DragResizeWindowRND;
@@ -1 +1 @@
1
- {"version":3,"file":"DragResizeWindowRND.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DragResizeWindowRND/DragResizeWindowRND.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAGV,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAgBjB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,iJAsR9B,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"DragResizeWindowRND.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DragResizeWindowRND/DragResizeWindowRND.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAA0B,wBAAwB,EAAG,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAUhH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,iJA2R9B,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1,57 +1,54 @@
1
- import { jsx as pe } from "@emotion/react/jsx-runtime";
2
- import { forwardRef as ue, useState as Re, useMemo as s, useRef as N, useImperativeHandle as Se } from "react";
3
- import we from "clsx";
1
+ import { jsx as de } from "@emotion/react/jsx-runtime";
2
+ import { forwardRef as he, useState as me, useMemo as v, useRef as C, useImperativeHandle as pe } from "react";
3
+ import ze from "clsx";
4
4
  import { dragResizeWindowRNDClasses as o } from "./classes/index.js";
5
- import { DEFAULT_TRANSFORM_SCALE as He } from "./constants.js";
6
- import { useDragOptions as De } from "./hooks/useRNDDragOptions.js";
7
- import { useResizeOptions as be } from "./hooks/useRNDReResizeOptions.js";
8
- import { useRNDDimensionEffects as We } from "./hooks/useRNDDimensionEffects.js";
9
- import { RndStyled as Ce } from "./slots/DragResizeWindowRNDSlots.js";
10
- import { getInitialSize as ye } from "./helpers/getInitialSize.js";
11
- import { buildEnableResizing as ve, buildDefaultResizeHandleStyles as xe, buildDefaultResizeHandleClasses as Oe } from "./helpers/resizeHandles.js";
12
- const _e = ue((T, L) => {
5
+ import { DEFAULT_TRANSFORM_SCALE as fe } from "./constants.js";
6
+ import { useDragOptions as Re } from "./hooks/useRNDDragOptions.js";
7
+ import { useResizeOptions as ue } from "./hooks/useRNDReResizeOptions.js";
8
+ import { useRNDDimensionEffects as xe } from "./hooks/useRNDDimensionEffects.js";
9
+ import { RndStyled as we } from "./slots/DragResizeWindowRNDSlots.js";
10
+ import { getInitialSize as Se } from "./helpers/getInitialSize.js";
11
+ const Be = he((I, y) => {
13
12
  const {
14
13
  //Comunes
15
- style: B,
16
- className: E,
17
- children: W,
18
- defaultPosition: V = { vertical: { top: 0, height: 100 }, horizontal: { left: 0, width: 100 } },
14
+ style: L,
15
+ className: O,
16
+ children: D,
17
+ defaultPosition: N = { vertical: { top: 0, height: 100 }, horizontal: { left: 0, width: 100 } },
19
18
  containerElement: t,
20
19
  containerSize: i,
21
- transformScale: A = He,
22
- bounds: p = { left: 5, top: 5, right: -5, bottom: -5 },
23
- minWidth: M = 200,
24
- minHeight: P = 100,
25
- minWindowWidth: I,
26
- minWindowHeight: F,
27
- resizeHandles: C,
28
- resizeHandleStyles: y,
29
- resizeHandleClasses: v,
20
+ transformScale: T = fe,
21
+ bounds: f = { left: 5, top: 5, right: -5, bottom: -5 },
22
+ minWidth: B = 200,
23
+ minHeight: V = 100,
24
+ minWindowWidth: A,
25
+ minWindowHeight: E,
26
+ resizeHandles: be,
30
27
  // maxWidth = 1000,
31
28
  // maxHeight = 1000,
32
29
  //Draggable
33
- draggableHandle: U = `${o.draggableHandle}`,
34
- draggableCancel: _ = `.${o.draggableCancel}`,
35
- draggable: $ = !0,
36
- onDragStart: j,
37
- onDrag: k,
38
- onDragStop: q,
39
- onMouseDown: G,
30
+ draggableHandle: M = `${o.draggableHandle}`,
31
+ draggableCancel: F = `.${o.draggableCancel}`,
32
+ draggable: P = !0,
33
+ onDragStart: _,
34
+ onDrag: U,
35
+ onDragStop: $,
36
+ onMouseDown: j,
40
37
  //resizable
41
- resizable: x = !0,
42
- onResizeStart: J,
43
- onResize: K,
44
- onResizeStop: Q,
45
- hidden: O,
38
+ resizable: k = !0,
39
+ onResizeStart: q,
40
+ onResize: G,
41
+ onResizeStop: J,
42
+ hidden: W,
46
43
  allowHeightResizeContainer: l = !1,
47
- allowWidthResizeContainer: c = !1,
48
- windowRef: Ne,
44
+ allowWidthResizeContainer: s = !1,
45
+ windowRef: He,
49
46
  //Otras
50
- ...X
51
- } = T, g = I ?? M, d = F ?? P, [e, u] = Re(
52
- () => ye(i, p, V, t, l, c)
53
- ), Y = s(() => [g, d], [g, d]), n = N({
54
- bounds: p,
47
+ ...K
48
+ } = I, g = A ?? B, c = E ?? V, [e, R] = me(
49
+ () => Se(i, f, N, t, l, s)
50
+ ), Q = v(() => [g, c], [g, c]), n = C({
51
+ bounds: f,
55
52
  data: void 0,
56
53
  dragging: void 0,
57
54
  containerSize: i ? { ...i } : void 0,
@@ -59,25 +56,25 @@ const _e = ue((T, L) => {
59
56
  y: e.y,
60
57
  width: e.width,
61
58
  height: e.height,
62
- minConstraints: Y,
59
+ minConstraints: Q,
63
60
  magnetizeRight: e.magnetizeRight,
64
61
  magnetizeBottom: e.magnetizeBottom
65
62
  });
66
63
  i && (n.current.containerSize?.containerWidth !== i.containerWidth || n.current.containerSize?.containerHeight !== i.containerHeight) && (n.current.containerSize = { ...i });
67
- const r = N(null);
68
- Se(L, () => ({
64
+ const r = C(null);
65
+ pe(y, () => ({
69
66
  /**
70
67
  * "ensureVisible" enfoca la ventana para que esté visible, cuando se requiere desde afuera ubicarla en el contenedor padre
71
68
  */
72
69
  ensureVisible: () => {
73
70
  if (!r.current || !t)
74
71
  return;
75
- const a = t.getBoundingClientRect(), h = r.current.getBoundingClientRect(), R = h.height, S = h.width, m = h.top - a.top + t.scrollTop, f = h.left - a.left + t.scrollLeft, de = m + R, he = f + S, w = t.clientHeight, H = t.clientWidth, me = t.scrollTop + w, z = 0.5, fe = m >= t.scrollTop - z && de <= me + z, ze = f >= t.scrollLeft - z && he <= t.scrollLeft + H + z;
76
- if (!fe || !ze) {
77
- let D, b;
78
- R > w ? D = m : D = m - w / 2 + R / 2, S > H ? b = f : b = f - H / 2 + S / 2, t.scrollTo({
79
- top: Math.max(0, D),
80
- left: Math.max(0, b),
72
+ const a = t.getBoundingClientRect(), h = r.current.getBoundingClientRect(), u = h.height, x = h.width, m = h.top - a.top + t.scrollTop, p = h.left - a.left + t.scrollLeft, ae = m + u, le = p + x, w = t.clientHeight, S = t.clientWidth, se = t.scrollTop + w, z = 0.5, ge = m >= t.scrollTop - z && ae <= se + z, ce = p >= t.scrollLeft - z && le <= t.scrollLeft + S + z;
73
+ if (!ge || !ce) {
74
+ let b, H;
75
+ u > w ? b = m : b = m - w / 2 + u / 2, x > S ? H = p : H = p - S / 2 + x / 2, t.scrollTo({
76
+ top: Math.max(0, b),
77
+ left: Math.max(0, H),
81
78
  behavior: "smooth"
82
79
  });
83
80
  }
@@ -87,40 +84,40 @@ const _e = ue((T, L) => {
87
84
  */
88
85
  current: r.current
89
86
  }), [t]);
90
- const { localOnDragStart: Z, localOnDrag: ee, localOnDragStop: te } = De({
87
+ const { localOnDragStart: X, localOnDrag: Y, localOnDragStop: Z } = Re({
91
88
  allowHeightResizeContainer: l,
92
- allowWidthResizeContainer: c,
89
+ allowWidthResizeContainer: s,
93
90
  containerElement: t,
94
- transformScale: A,
95
- onDragStart: j,
96
- onDrag: k,
97
- onDragStop: q,
91
+ transformScale: T,
92
+ onDragStart: _,
93
+ onDrag: U,
94
+ onDragStop: $,
98
95
  stateRef: n,
99
- setCurrentState: u
100
- }), { localOnResize: ie, localOnResizeStart: ne, localOnResizeStop: oe } = be({
96
+ setCurrentState: R
97
+ }), { localOnResize: ee, localOnResizeStart: te, localOnResizeStop: ie } = ue({
101
98
  allowHeightResizeContainer: l,
102
- allowWidthResizeContainer: c,
99
+ allowWidthResizeContainer: s,
103
100
  containerElement: t,
104
- onResizeStart: J,
105
- onResize: K,
106
- onResizeStop: Q,
101
+ onResizeStart: q,
102
+ onResize: G,
103
+ onResizeStop: J,
107
104
  stateRef: n,
108
- setCurrentState: u
105
+ setCurrentState: R
109
106
  });
110
- We({
107
+ xe({
111
108
  containerElement: t,
112
- bounds: p,
109
+ bounds: f,
113
110
  containerSize: i,
114
- setCurrentState: u,
111
+ setCurrentState: R,
115
112
  stateRef: n,
116
113
  minWindowWidth: g,
117
- minWindowHeight: d,
114
+ minWindowHeight: c,
118
115
  wrapperRef: r,
119
116
  allowHeightResizeContainer: l,
120
- allowWidthResizeContainer: c
117
+ allowWidthResizeContainer: s
121
118
  });
122
- const re = {
123
- hidden: O,
119
+ const ne = {
120
+ hidden: W,
124
121
  dragging: !!e.dragging,
125
122
  resizing: !!e.resizing,
126
123
  draggingActive: !!e.dragging,
@@ -128,53 +125,70 @@ const _e = ue((T, L) => {
128
125
  y: e.y,
129
126
  width: e.width,
130
127
  height: e.height
131
- }, ae = we(E, {
128
+ }, oe = ze(O, {
132
129
  //Requerido para el componente Draggable
133
- [o.hidden]: O,
130
+ [o.hidden]: W,
134
131
  [o.dragging]: !!e.dragging,
135
132
  [o.resizing]: !!e.resizing,
136
133
  [o.draggingActive]: !!e.dragging
137
134
  // dropping: Boolean(droppingPosition),
138
- }), se = s(() => ve(x, C), [x, C]), le = s(() => ({
139
- ...xe(),
140
- ...y
141
- }), [y]), ce = s(() => ({
142
- ...Oe(),
143
- ...v
144
- }), [v]), ge = s(() => W, [W]);
145
- return t ? /* @__PURE__ */ pe(
146
- Ce,
135
+ }), re = v(() => D, [D]);
136
+ if (!t)
137
+ return null;
138
+ const d = "5px";
139
+ return /* @__PURE__ */ de(
140
+ we,
147
141
  {
148
- ownerState: re,
149
- ...X,
150
- onMouseDown: G,
142
+ ownerState: ne,
143
+ ...K,
144
+ onMouseDown: j,
151
145
  ref: (a) => {
152
146
  a && (r.current = a.resizableElement.current);
153
147
  },
154
- style: { ...B },
155
- dragHandleClassName: U,
156
- enableResizing: se,
157
- disableDragging: !$,
148
+ style: { ...L },
149
+ dragHandleClassName: M,
150
+ enableResizing: k,
151
+ disableDragging: !P,
158
152
  minWidth: g,
159
- minHeight: d,
160
- cancel: _,
161
- className: ae,
153
+ minHeight: c,
154
+ cancel: F,
155
+ className: oe,
162
156
  enableUserSelectHack: !0,
163
- resizeHandleStyles: le,
164
- resizeHandleClasses: ce,
157
+ resizeHandleStyles: {
158
+ zIndex: 1,
159
+ //Se debe mover lo handler de resize para queden dentro de la ventana, o genería un scroll innecesario.
160
+ bottom: { bottom: "0px", zIndex: 1, height: d },
161
+ right: { right: "0px", zIndex: 1, width: d },
162
+ top: { top: "0px", zIndex: 1, height: d },
163
+ left: { left: "0px", zIndex: 1, width: d },
164
+ bottomRight: { bottom: "0px", right: "0px", zIndex: 1 },
165
+ bottomLeft: { bottom: "0px", left: "0px", zIndex: 1 },
166
+ topRight: { top: "0px", right: "0px", zIndex: 1 },
167
+ topLeft: { top: "0px", left: "0px", zIndex: 1 }
168
+ },
169
+ resizeHandleClasses: {
170
+ left: "resize-handle-left",
171
+ right: "resize-handle-right",
172
+ top: "resize-handle-top",
173
+ bottom: "resize-handle-bottom",
174
+ bottomRight: "resize-handle-bottom-right",
175
+ bottomLeft: "resize-handle-bottom-left",
176
+ topRight: "resize-handle-top-right",
177
+ topLeft: "resize-handle-top-left"
178
+ },
165
179
  size: { width: e.width, height: e.height },
166
180
  position: { x: e.x, y: e.y },
167
- onDragStart: Z,
168
- onDrag: ee,
169
- onDragStop: te,
170
- onResizeStart: ne,
171
- onResize: ie,
172
- onResizeStop: oe,
173
- children: ge
181
+ onDragStart: X,
182
+ onDrag: Y,
183
+ onDragStop: Z,
184
+ onResizeStart: te,
185
+ onResize: ee,
186
+ onResizeStop: ie,
187
+ children: re
174
188
  }
175
- ) : null;
189
+ );
176
190
  });
177
191
  export {
178
- _e as DragResizeWindowRND,
179
- _e as default
192
+ Be as DragResizeWindowRND,
193
+ Be as default
180
194
  };
@@ -1,7 +1,6 @@
1
1
  export * from './expandingParentContainer';
2
2
  export * from './isElmentInViewport';
3
3
  export * from './pointPosition';
4
- export * from './resizeHandles';
5
4
  export * from './shrinkingParentContainer';
6
5
  export * from './getInitialSize';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DragResizeWindowRND/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DragResizeWindowRND/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
@@ -248,9 +248,7 @@ export interface DragResizeWindowPropsRND extends Partial<Omit<RndProps, 'handle
248
248
  */
249
249
  minWindowHeight?: number;
250
250
  /**
251
- * Resize handles exposed by the shared shell. They are translated into the
252
- * `react-rnd` `enableResizing` edge map while preserving the default
253
- * all-handles behavior when omitted.
251
+ * Resize handles (used by parents; not forwarded to DOM react-rnd has its own handles)
254
252
  */
255
253
  resizeHandles?: ResizeHandle[] | readonly ResizeHandle[];
256
254
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DragResizeWindowRND/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAG,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AACF;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC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AC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,GAAG,SAAS,YAAY,EAAE,CAAC;CAC1D;AACD;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,EAAE,YAAY;IACtF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAI1B;AACD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,wBAAwB,CAAC;AACjF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,CAAC,4BAA4B,EAAE,OAAO,uBAAuB,EAAE,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DragResizeWindowRND/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;A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AAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAI1B;AACD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,wBAAwB,CAAC;AACjF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,CAAC,4BAA4B,EAAE,OAAO,uBAAuB,EAAE,KAAK,CAAC,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;AAShE;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qDAkFhD,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;AAShE;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qDA6EhD,CAAC"}