@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.
- package/@types/types.d.ts +11 -0
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +1 -2
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +41 -30
- package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
- package/components/CommonActions/index.d.ts +0 -1
- package/components/CommonActions/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +14 -3
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +119 -105
- package/components/DragResizeWindowRND/helpers/index.d.ts +0 -1
- package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/types.d.ts +1 -3
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.js +49 -49
- package/components/WindowBase/WindowBase.styles.d.ts +1 -1
- package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.styles.js +12 -37
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +34 -19
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +5 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
- package/components/areas/components/AreasAdmin/helper.d.ts +4 -1
- package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +26 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +71 -72
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +24 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +57 -58
- package/components/areas/components/AreasAdmin/types.d.ts +9 -9
- package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +6 -174
- package/components/areas/components/AreasViewer/constants.d.ts +0 -12
- package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/constants.js +2 -5
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +0 -9
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +0 -27
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +25 -62
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +4 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +11 -12
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +0 -61
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +6 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +3 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +40 -68
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +11 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +76 -77
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +5 -3
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +15 -20
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +7 -8
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +48 -51
- package/components/areas/contexts/AreasContext/store.d.ts +3 -2
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +290 -397
- package/components/areas/contexts/AreasContext/types.d.ts +85 -109
- package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +0 -3
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +6 -9
- package/components/areas/hooks/useAreas/index.d.ts +2 -2
- package/components/areas/hooks/useAreas/index.js +4 -4
- package/components/areas/types.d.ts +47 -173
- package/components/areas/types.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts +1 -2
- package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +247 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +3 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +297 -0
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +82 -0
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/constants.js +149 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +11 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +7 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +59 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +1063 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +7 -0
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +4 -0
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +18 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +4 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +84 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +63 -0
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +3 -0
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +127 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -0
- package/components/extended/index.d.ts +1 -0
- package/components/extended/index.d.ts.map +1 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +7 -0
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +1 -0
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +6 -0
- package/components/hook-form/RHFCodeEditor/index.d.ts +3 -0
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +1 -0
- package/components/hook-form/index.d.ts +1 -0
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +4 -5
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
- package/hooks/index.d.ts +0 -1
- package/hooks/index.d.ts.map +1 -1
- package/index.js +675 -664
- package/package.json +11 -8
- package/test/mocks/dictionary-mock.d.ts +0 -2
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +0 -15
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +0 -1
- package/components/DragResizeWindowRND/helpers/resizeHandles.js +0 -68
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +0 -78
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +0 -86
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +0 -33
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +0 -91
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +0 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +0 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +0 -16
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +0 -105
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +0 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +0 -158
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +0 -15
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +0 -19
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +0 -14
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +0 -35
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +0 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +0 -68
- package/components/areas/utils/useOnClickOutside/index.js +0 -15
- package/hooks/useWindowCloseGuard/index.d.ts +0 -18
- package/hooks/useWindowCloseGuard/index.d.ts.map +0 -1
- 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
|
-
*
|
|
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":"
|
|
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
|
|
2
|
-
import { useFormContext as
|
|
3
|
-
import { useModuleDictionary as
|
|
4
|
-
import { useCallback as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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
|
|
9
|
-
import {
|
|
10
|
-
|
|
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:
|
|
14
|
+
className: d,
|
|
13
15
|
onClose: e,
|
|
14
|
-
linkToCloseWindow:
|
|
15
|
-
"data-testid":
|
|
16
|
-
} =
|
|
17
|
-
control:
|
|
18
|
-
}),
|
|
19
|
-
e?.();
|
|
20
|
-
}, [e]),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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:
|
|
33
|
-
className:
|
|
34
|
-
label: o(
|
|
35
|
-
"data-testid":
|
|
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
|
-
|
|
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
|
-
*
|
|
14
|
+
* Cuando efectivamente se cierrar la ventana se ejecuta esta función.
|
|
15
15
|
*/
|
|
16
16
|
onClose?: () => void;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
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,
|
|
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
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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":"
|
|
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
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
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
|
|
6
|
-
import { useDragOptions as
|
|
7
|
-
import { useResizeOptions as
|
|
8
|
-
import { useRNDDimensionEffects as
|
|
9
|
-
import { RndStyled as
|
|
10
|
-
import { getInitialSize as
|
|
11
|
-
|
|
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:
|
|
16
|
-
className:
|
|
17
|
-
children:
|
|
18
|
-
defaultPosition:
|
|
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:
|
|
22
|
-
bounds:
|
|
23
|
-
minWidth:
|
|
24
|
-
minHeight:
|
|
25
|
-
minWindowWidth:
|
|
26
|
-
minWindowHeight:
|
|
27
|
-
resizeHandles:
|
|
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:
|
|
34
|
-
draggableCancel:
|
|
35
|
-
draggable:
|
|
36
|
-
onDragStart:
|
|
37
|
-
onDrag:
|
|
38
|
-
onDragStop:
|
|
39
|
-
onMouseDown:
|
|
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:
|
|
42
|
-
onResizeStart:
|
|
43
|
-
onResize:
|
|
44
|
-
onResizeStop:
|
|
45
|
-
hidden:
|
|
38
|
+
resizable: k = !0,
|
|
39
|
+
onResizeStart: q,
|
|
40
|
+
onResize: G,
|
|
41
|
+
onResizeStop: J,
|
|
42
|
+
hidden: W,
|
|
46
43
|
allowHeightResizeContainer: l = !1,
|
|
47
|
-
allowWidthResizeContainer:
|
|
48
|
-
windowRef:
|
|
44
|
+
allowWidthResizeContainer: s = !1,
|
|
45
|
+
windowRef: He,
|
|
49
46
|
//Otras
|
|
50
|
-
...
|
|
51
|
-
} =
|
|
52
|
-
() =>
|
|
53
|
-
),
|
|
54
|
-
bounds:
|
|
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:
|
|
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 =
|
|
68
|
-
|
|
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(),
|
|
76
|
-
if (!
|
|
77
|
-
let
|
|
78
|
-
|
|
79
|
-
top: Math.max(0,
|
|
80
|
-
left: Math.max(0,
|
|
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:
|
|
87
|
+
const { localOnDragStart: X, localOnDrag: Y, localOnDragStop: Z } = Re({
|
|
91
88
|
allowHeightResizeContainer: l,
|
|
92
|
-
allowWidthResizeContainer:
|
|
89
|
+
allowWidthResizeContainer: s,
|
|
93
90
|
containerElement: t,
|
|
94
|
-
transformScale:
|
|
95
|
-
onDragStart:
|
|
96
|
-
onDrag:
|
|
97
|
-
onDragStop:
|
|
91
|
+
transformScale: T,
|
|
92
|
+
onDragStart: _,
|
|
93
|
+
onDrag: U,
|
|
94
|
+
onDragStop: $,
|
|
98
95
|
stateRef: n,
|
|
99
|
-
setCurrentState:
|
|
100
|
-
}), { localOnResize:
|
|
96
|
+
setCurrentState: R
|
|
97
|
+
}), { localOnResize: ee, localOnResizeStart: te, localOnResizeStop: ie } = ue({
|
|
101
98
|
allowHeightResizeContainer: l,
|
|
102
|
-
allowWidthResizeContainer:
|
|
99
|
+
allowWidthResizeContainer: s,
|
|
103
100
|
containerElement: t,
|
|
104
|
-
onResizeStart:
|
|
105
|
-
onResize:
|
|
106
|
-
onResizeStop:
|
|
101
|
+
onResizeStart: q,
|
|
102
|
+
onResize: G,
|
|
103
|
+
onResizeStop: J,
|
|
107
104
|
stateRef: n,
|
|
108
|
-
setCurrentState:
|
|
105
|
+
setCurrentState: R
|
|
109
106
|
});
|
|
110
|
-
|
|
107
|
+
xe({
|
|
111
108
|
containerElement: t,
|
|
112
|
-
bounds:
|
|
109
|
+
bounds: f,
|
|
113
110
|
containerSize: i,
|
|
114
|
-
setCurrentState:
|
|
111
|
+
setCurrentState: R,
|
|
115
112
|
stateRef: n,
|
|
116
113
|
minWindowWidth: g,
|
|
117
|
-
minWindowHeight:
|
|
114
|
+
minWindowHeight: c,
|
|
118
115
|
wrapperRef: r,
|
|
119
116
|
allowHeightResizeContainer: l,
|
|
120
|
-
allowWidthResizeContainer:
|
|
117
|
+
allowWidthResizeContainer: s
|
|
121
118
|
});
|
|
122
|
-
const
|
|
123
|
-
hidden:
|
|
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
|
-
},
|
|
128
|
+
}, oe = ze(O, {
|
|
132
129
|
//Requerido para el componente Draggable
|
|
133
|
-
[o.hidden]:
|
|
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
|
-
}),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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:
|
|
149
|
-
...
|
|
150
|
-
onMouseDown:
|
|
142
|
+
ownerState: ne,
|
|
143
|
+
...K,
|
|
144
|
+
onMouseDown: j,
|
|
151
145
|
ref: (a) => {
|
|
152
146
|
a && (r.current = a.resizableElement.current);
|
|
153
147
|
},
|
|
154
|
-
style: { ...
|
|
155
|
-
dragHandleClassName:
|
|
156
|
-
enableResizing:
|
|
157
|
-
disableDragging:
|
|
148
|
+
style: { ...L },
|
|
149
|
+
dragHandleClassName: M,
|
|
150
|
+
enableResizing: k,
|
|
151
|
+
disableDragging: !P,
|
|
158
152
|
minWidth: g,
|
|
159
|
-
minHeight:
|
|
160
|
-
cancel:
|
|
161
|
-
className:
|
|
153
|
+
minHeight: c,
|
|
154
|
+
cancel: F,
|
|
155
|
+
className: oe,
|
|
162
156
|
enableUserSelectHack: !0,
|
|
163
|
-
resizeHandleStyles:
|
|
164
|
-
|
|
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:
|
|
168
|
-
onDrag:
|
|
169
|
-
onDragStop:
|
|
170
|
-
onResizeStart:
|
|
171
|
-
onResize:
|
|
172
|
-
onResizeStop:
|
|
173
|
-
children:
|
|
181
|
+
onDragStart: X,
|
|
182
|
+
onDrag: Y,
|
|
183
|
+
onDragStop: Z,
|
|
184
|
+
onResizeStart: te,
|
|
185
|
+
onResize: ee,
|
|
186
|
+
onResizeStop: ie,
|
|
187
|
+
children: re
|
|
174
188
|
}
|
|
175
|
-
)
|
|
189
|
+
);
|
|
176
190
|
});
|
|
177
191
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
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,
|
|
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
|
|
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;AACF,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE;;OAEG;IACH,QA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SAAQ,OAAO,CACb,IAAI,CAAC,QAAQ,EAAI,QAAQ,GAAG,QAAQ,CAAC,CACtC;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAE1C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB
|
|
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,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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 +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,
|
|
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"}
|