@m4l/components 0.1.4 → 0.1.6
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/assets/Logo/index.js +91 -0
- package/assets/Logo.d.ts +7 -0
- package/components/CommonActions/components/ActionCancel/index.js +1 -1
- package/components/CommonActions/components/ActionFormCancel/index.js +1 -1
- package/components/CommonActions/components/ActionIntro/index.js +1 -1
- package/components/CommonActions/components/Actions/index.js +1 -1
- package/components/DynamicFilter/index.js +6 -78
- package/components/Icon/index.js +1 -1
- package/components/LanguagePopover/index.d.ts +1 -2
- package/components/LanguagePopover/index.js +15 -12
- package/components/LanguagePopover/styles.d.ts +2 -0
- package/components/ModalDialog/index.js +1 -1
- package/components/Page/index.d.ts +1 -1
- package/components/ScrollToTop/index.d.ts +1 -0
- package/components/ScrollToTop/index.js +10 -0
- package/components/animate/IconButtonAnimate/index.d.ts +1 -1
- package/components/animate/LoadingScreen/index.d.ts +8 -0
- package/components/animate/LoadingScreen/index.js +91 -0
- package/components/animate/index.d.ts +1 -0
- package/components/animate/variants/bounce.d.ts +9 -9
- package/components/animate/variants/fade.d.ts +20 -20
- package/components/animate/variants/transition.d.ts +3 -3
- package/components/formatters/DateFormatter/index.js +6 -1
- package/components/formatters/DateFormatter/types.d.ts +2 -1
- package/components/hook-form/RHFAutocomplete/index.js +142 -0
- package/components/hook-form/{RHFDateTime.js → RHFDateTime/index.js} +0 -0
- package/components/hook-form/{RHFRadioGroup.js → RHFRadioGroup/index.js} +0 -0
- package/components/hook-form/{RHFSelect.js → RHFSelect/index.js} +0 -0
- package/components/hook-form/RHFTextField/index.d.ts +1 -1
- package/components/hook-form/{RHFUpload.js → RHFUpload/index.js} +3 -3
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Avatar/index.d.ts +4 -0
- package/components/mui_extended/Avatar/index.js +33 -0
- package/components/mui_extended/Avatar/types.d.ts +6 -0
- package/components/mui_extended/Button/index.js +131 -0
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/MenuActions/styles.d.ts +3 -3
- package/components/mui_extended/index.d.ts +2 -0
- package/contexts/ModalContext/index.js +1 -1
- package/core-js.js +16 -6
- package/index.d.ts +1 -0
- package/index.js +60 -55
- package/juggle.js +5 -191
- package/package.json +1 -1
- package/react-draggable.js +14 -489
- package/react-resizable.js +1 -54
- package/utils/index.js +761 -0
- package/components/LanguagePopover/types.d.ts +0 -3
- package/components/mui_extended/LoadingButton/index.js +0 -35
- package/vendor.js +0 -268
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
2
|
+
import { Skeleton, styled as styled$1 } from "@mui/material";
|
|
3
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
6
|
+
import MuiButton from "@mui/material/Button";
|
|
7
|
+
import { I as IconButton } from "../IconButton/index.js";
|
|
8
|
+
import { u as useBase } from "../../DynamicFilter/index.js";
|
|
9
|
+
import { useMemo } from "react";
|
|
10
|
+
const WrapperSKTLoadingButton = styled("div")(({
|
|
11
|
+
theme
|
|
12
|
+
}) => ({
|
|
13
|
+
display: "flex",
|
|
14
|
+
width: "100%",
|
|
15
|
+
borderRadius: theme.spacing(1),
|
|
16
|
+
overflow: "hidden"
|
|
17
|
+
}));
|
|
18
|
+
const SKTLoadingButton = () => /* @__PURE__ */ jsx(WrapperSKTLoadingButton, {
|
|
19
|
+
id: "WrapperSKTLoadingButton",
|
|
20
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
21
|
+
variant: "rectangular",
|
|
22
|
+
width: "100%",
|
|
23
|
+
height: "48px"
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
const LoadingButton = (props) => {
|
|
27
|
+
const {
|
|
28
|
+
isSkeleton,
|
|
29
|
+
children,
|
|
30
|
+
...other
|
|
31
|
+
} = props;
|
|
32
|
+
if (isSkeleton) {
|
|
33
|
+
return /* @__PURE__ */ jsx(SKTLoadingButton, {});
|
|
34
|
+
}
|
|
35
|
+
return /* @__PURE__ */ jsx(LoadingButton$1, {
|
|
36
|
+
...other,
|
|
37
|
+
children
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const SKTButton = styled$1(Skeleton)(({
|
|
41
|
+
theme
|
|
42
|
+
}) => ({
|
|
43
|
+
borderRadius: theme.spacing(0.5)
|
|
44
|
+
}));
|
|
45
|
+
const Button = (props) => {
|
|
46
|
+
const isSkeleton = useModuleSkeleton();
|
|
47
|
+
if (isSkeleton) {
|
|
48
|
+
return /* @__PURE__ */ jsx(SKTButton, {
|
|
49
|
+
variant: "rectangular",
|
|
50
|
+
width: "100px",
|
|
51
|
+
height: "36px"
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return /* @__PURE__ */ jsx(MuiButton, {
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const SKTWrapperFilterButton = styled("div")(({
|
|
59
|
+
theme
|
|
60
|
+
}) => ({
|
|
61
|
+
display: "flex",
|
|
62
|
+
justifyContent: "center",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
minWidth: theme.spacing(3.75),
|
|
65
|
+
height: theme.spacing(3.75),
|
|
66
|
+
background: alpha(theme.palette.primary.main, 0.3)
|
|
67
|
+
}));
|
|
68
|
+
const WrapperFilterButton = styled("div")(() => ({
|
|
69
|
+
"&.isDirty": {
|
|
70
|
+
animationName: "dirtyEffect",
|
|
71
|
+
animationDuration: "1s",
|
|
72
|
+
animationFillMode: "both",
|
|
73
|
+
animationIterationCount: "infinite",
|
|
74
|
+
transition: "all .3s",
|
|
75
|
+
"@keyframes dirtyEffect": {
|
|
76
|
+
"20%": {
|
|
77
|
+
opacity: 1
|
|
78
|
+
},
|
|
79
|
+
"50%": {
|
|
80
|
+
opacity: 0.5
|
|
81
|
+
},
|
|
82
|
+
"100%": {
|
|
83
|
+
opacity: 1
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"&.isDirtyError": {}
|
|
88
|
+
}));
|
|
89
|
+
function FilterButton() {
|
|
90
|
+
const {
|
|
91
|
+
isSkeleton,
|
|
92
|
+
fireOnChangeFilters,
|
|
93
|
+
automatic,
|
|
94
|
+
isDirty,
|
|
95
|
+
isValid
|
|
96
|
+
} = useBase();
|
|
97
|
+
const {
|
|
98
|
+
host_static_assets,
|
|
99
|
+
environment_assets
|
|
100
|
+
} = useEnvironment();
|
|
101
|
+
if (isSkeleton) {
|
|
102
|
+
return /* @__PURE__ */ jsx(SKTWrapperFilterButton, {
|
|
103
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
104
|
+
variant: "circular",
|
|
105
|
+
width: 20,
|
|
106
|
+
height: 20
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
const color = useMemo(() => {
|
|
111
|
+
if (automatic || !isDirty) {
|
|
112
|
+
return "action.active";
|
|
113
|
+
}
|
|
114
|
+
if (!isValid) {
|
|
115
|
+
return "error.main";
|
|
116
|
+
}
|
|
117
|
+
return "primary.main";
|
|
118
|
+
}, [automatic, isValid, isDirty]);
|
|
119
|
+
return /* @__PURE__ */ jsx(WrapperFilterButton, {
|
|
120
|
+
id: "WrapperFilterButton",
|
|
121
|
+
className: isDirty && isValid ? "isDirty" : "",
|
|
122
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
123
|
+
bgColor: color,
|
|
124
|
+
dictionaryTooltip: "dynamic_filter.filter_tooltip",
|
|
125
|
+
onClick: () => fireOnChangeFilters(),
|
|
126
|
+
"aria-label": "settings",
|
|
127
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/${automatic ? "refresh" : "search"}.svg`
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export { Button as B, FilterButton as F, LoadingButton as L };
|
|
@@ -9,4 +9,4 @@ export declare const SKTButton: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
width?: string | number | undefined;
|
|
10
10
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
11
11
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
12
|
-
}, "
|
|
12
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "width" | "height" | "animation" | "children" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
export declare const WrapperMenuActions: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "inherit" | "default" | "warning" | "info" | "primary" | "error" | "secondary" | "success" | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
disableFocusRipple?: boolean | undefined;
|
|
8
8
|
edge?: false | "end" | "start" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
10
10
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
11
|
} & Omit<{
|
|
12
12
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
@@ -26,5 +26,5 @@ export declare const WrapperMenuActions: import("@emotion/styled").StyledCompone
|
|
|
26
26
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
27
27
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
28
28
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
29
|
-
}, "
|
|
29
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "tabIndex" | "disabled" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
30
|
export declare const LabelMemuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
7
7
|
import { M as ModalDialog } from "../../components/ModalDialog/index.js";
|
|
8
8
|
import { A as ActionIntro } from "../../components/CommonActions/components/ActionIntro/index.js";
|
|
9
9
|
import { A as ActionCancel } from "../../components/CommonActions/components/ActionCancel/index.js";
|
|
10
|
-
import { b as getVariantColor } from "../../
|
|
10
|
+
import { b as getVariantColor } from "../../utils/index.js";
|
|
11
11
|
const WrapperContentConfirm = styled("div")(() => ({
|
|
12
12
|
display: "flex",
|
|
13
13
|
flexDirection: "column",
|
package/core-js.js
CHANGED
|
@@ -89,13 +89,23 @@ var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
|
89
89
|
var toIndexedObject$6 = function(it) {
|
|
90
90
|
return IndexedObject$3(requireObjectCoercible$5(it));
|
|
91
91
|
};
|
|
92
|
-
var
|
|
92
|
+
var documentAll$2 = typeof document == "object" && document.all;
|
|
93
|
+
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
94
|
+
var documentAll_1 = {
|
|
95
|
+
all: documentAll$2,
|
|
96
|
+
IS_HTMLDDA
|
|
97
|
+
};
|
|
98
|
+
var $documentAll$1 = documentAll_1;
|
|
99
|
+
var documentAll$1 = $documentAll$1.all;
|
|
100
|
+
var isCallable$k = $documentAll$1.IS_HTMLDDA ? function(argument) {
|
|
101
|
+
return typeof argument == "function" || argument === documentAll$1;
|
|
102
|
+
} : function(argument) {
|
|
93
103
|
return typeof argument == "function";
|
|
94
104
|
};
|
|
95
105
|
var isCallable$j = isCallable$k;
|
|
96
|
-
var documentAll =
|
|
97
|
-
var
|
|
98
|
-
var isObject$d =
|
|
106
|
+
var $documentAll = documentAll_1;
|
|
107
|
+
var documentAll = $documentAll.all;
|
|
108
|
+
var isObject$d = $documentAll.IS_HTMLDDA ? function(it) {
|
|
99
109
|
return typeof it == "object" ? it !== null : isCallable$j(it) || it === documentAll;
|
|
100
110
|
} : function(it) {
|
|
101
111
|
return typeof it == "object" ? it !== null : isCallable$j(it);
|
|
@@ -207,10 +217,10 @@ var store$2 = sharedStore;
|
|
|
207
217
|
(shared$4.exports = function(key, value) {
|
|
208
218
|
return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
|
|
209
219
|
})("versions", []).push({
|
|
210
|
-
version: "3.25.
|
|
220
|
+
version: "3.25.2",
|
|
211
221
|
mode: "global",
|
|
212
222
|
copyright: "\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",
|
|
213
|
-
license: "https://github.com/zloirock/core-js/blob/v3.25.
|
|
223
|
+
license: "https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE",
|
|
214
224
|
source: "https://github.com/zloirock/core-js"
|
|
215
225
|
});
|
|
216
226
|
var requireObjectCoercible$4 = requireObjectCoercible$6;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,85 +1,90 @@
|
|
|
1
|
+
export { I as IconButton, a as IconButtonAnimate } from "./components/mui_extended/IconButton/index.js";
|
|
2
|
+
import "framer-motion";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
export { L as LoadingScreen } from "./components/animate/LoadingScreen/index.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-hook-form";
|
|
8
|
+
export { F as FormProvider } from "./components/hook-form/FormProvider/index.js";
|
|
9
|
+
import "@m4l/core";
|
|
10
|
+
export { R as RHFAutocomplete } from "./components/hook-form/RHFAutocomplete/index.js";
|
|
11
|
+
export { R as RHFAutocompleteAsync } from "./components/hook-form/RHFAutocompleteAsync/index.js";
|
|
12
|
+
export { R as RHFCheckbox } from "./components/hook-form/RHFCheckbox/index.js";
|
|
13
|
+
export { R as RHFDateTime } from "./components/hook-form/RHFDateTime/index.js";
|
|
14
|
+
import "@mui/x-date-pickers";
|
|
15
|
+
export { R as RHFTextField } from "./components/hook-form/RHFTextField/index.js";
|
|
16
|
+
import "./lodash.js";
|
|
17
|
+
import "react-dropzone";
|
|
18
|
+
import "@mui/material/styles";
|
|
19
|
+
import "./react-lazy-load-image-component.js";
|
|
20
|
+
export { I as Image } from "./components/Image/index.js";
|
|
21
|
+
export { R as RHFUploadImage } from "./components/hook-form/RHFUpload/index.js";
|
|
22
|
+
export { I as Icon } from "./components/Icon/index.js";
|
|
23
|
+
export { A as Avatar } from "./components/mui_extended/Avatar/index.js";
|
|
24
|
+
import "react-router-dom";
|
|
25
|
+
import "@mui/lab";
|
|
26
|
+
export { L as LoadingButton } from "./components/mui_extended/Button/index.js";
|
|
27
|
+
export { M as MenuPopover } from "./components/mui_extended/MenuPopover/index.js";
|
|
28
|
+
export { b as Actions, M as MenuActions, d as defaultCommonActionsDictionary, g as getCommonActionsDictionary } from "./components/CommonActions/components/Actions/index.js";
|
|
29
|
+
export { P as Pager, g as getPagerComponentsDictionary } from "./components/mui_extended/Pager/index.js";
|
|
30
|
+
export { T as Tab } from "./components/mui_extended/Tab/index.js";
|
|
31
|
+
import "@m4l/graphics";
|
|
32
|
+
export { C as CompanyLogo } from "./components/CompanyLogo/index.js";
|
|
33
|
+
export { D as DataGrid, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
|
|
34
|
+
import "react-dnd";
|
|
35
|
+
import "react-dnd-html5-backend";
|
|
36
|
+
export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/index.js";
|
|
37
|
+
import "@mui/material/Button";
|
|
38
|
+
export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
39
|
+
export { D as DynamicFilter, d as defaultDynamicFilterDictionary, g as getDynamicFilterComponentsDictionary } from "./components/DynamicFilter/index.js";
|
|
40
|
+
import "./simplebar.js";
|
|
41
|
+
export { L as LanguagePopover } from "./components/LanguagePopover/index.js";
|
|
42
|
+
import "./react-draggable.js";
|
|
43
|
+
export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialogComponentsDictionary } from "./components/ModalDialog/index.js";
|
|
44
|
+
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
45
|
+
export { N as NoItemSelected, d as defaultNoItemSelectedDictionary, g as getNoItemSelectedComponentsDictionary } from "./components/NoItemSelected/index.js";
|
|
46
|
+
export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsComponentsDictionary } from "./components/ObjectLogs/index.js";
|
|
47
|
+
import "./react-json-view.js";
|
|
48
|
+
export { P as PaperForm } from "./components/PaperForm/index.js";
|
|
49
|
+
export { P as Page } from "./components/Page/index.js";
|
|
50
|
+
export { P as PropertyValue } from "./components/PropertyValue/index.js";
|
|
51
|
+
import "./react-splitter-layout.js";
|
|
52
|
+
export { S as SplitLayout } from "./components/SplitLayout/index.js";
|
|
1
53
|
export { v as varFade } from "./components/animate/variants/fade.js";
|
|
2
54
|
export { v as varBounce } from "./components/animate/variants/bounce.js";
|
|
3
55
|
export { v as varContainer } from "./components/animate/variants/container.js";
|
|
4
56
|
export { v as varTranEnter, a as varTranExit, b as varTranHover } from "./components/animate/variants/transition.js";
|
|
5
|
-
export { I as IconButton, a as IconButtonAnimate } from "./components/mui_extended/IconButton/index.js";
|
|
6
57
|
export { M as MotionContainer } from "./components/animate/MotionContainer/index.js";
|
|
7
58
|
export { M as MotionLazyContainer } from "./components/animate/MotionLazyContainer/index.js";
|
|
8
|
-
export { F as FormProvider } from "./components/hook-form/FormProvider/index.js";
|
|
9
|
-
export { R as RHFAutocomplete } from "./vendor.js";
|
|
10
|
-
export { R as RHFAutocompleteAsync } from "./components/hook-form/RHFAutocompleteAsync/index.js";
|
|
11
|
-
export { R as RHFCheckbox } from "./components/hook-form/RHFCheckbox/index.js";
|
|
12
|
-
export { R as RHFDateTime } from "./components/hook-form/RHFDateTime.js";
|
|
13
59
|
export { R as RHFMultiCheckbox } from "./components/hook-form/RHFMultiCheckbox/index.js";
|
|
14
|
-
export { R as RHFSelect } from "./components/hook-form/RHFSelect.js";
|
|
15
|
-
export { R as
|
|
16
|
-
export { R as RHFRadioGroup } from "./components/hook-form/RHFRadioGroup.js";
|
|
17
|
-
export { R as RHFUploadImage } from "./components/hook-form/RHFUpload.js";
|
|
60
|
+
export { R as RHFSelect } from "./components/hook-form/RHFSelect/index.js";
|
|
61
|
+
export { R as RHFRadioGroup } from "./components/hook-form/RHFRadioGroup/index.js";
|
|
18
62
|
export { A as Accordion } from "./components/mui_extended/Accordion/index.js";
|
|
19
63
|
export { B as BoxIcon } from "./components/mui_extended/BoxIcon/index.js";
|
|
20
64
|
export { B as Breadcrumbs } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
21
65
|
export { L as LinkWithRoute } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
22
|
-
export { L as LoadingButton } from "./components/mui_extended/LoadingButton/index.js";
|
|
23
|
-
export { b as Actions, M as MenuActions, d as defaultCommonActionsDictionary, g as getCommonActionsDictionary } from "./components/CommonActions/components/Actions/index.js";
|
|
24
|
-
export { M as MenuPopover } from "./components/mui_extended/MenuPopover/index.js";
|
|
25
|
-
export { P as Pager, g as getPagerComponentsDictionary } from "./components/mui_extended/Pager/index.js";
|
|
26
|
-
export { T as Tab } from "./components/mui_extended/Tab/index.js";
|
|
27
66
|
export { T as Typography } from "./components/mui_extended/Typography/index.js";
|
|
28
|
-
export { C as CompanyLogo } from "./components/CompanyLogo/index.js";
|
|
29
67
|
export { B as BooleanFormatter } from "./components/formatters/BooleanFormatter/index.js";
|
|
30
68
|
export { D as DateFormatter } from "./components/formatters/DateFormatter/index.js";
|
|
31
69
|
export { d as defaultFormattersDictionary, g as getFormattersComponentsDictionary } from "./components/formatters/index.js";
|
|
32
|
-
export { D as DataGrid, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
|
|
33
|
-
export { D as DynamicFilter, d as defaultDynamicFilterDictionary, g as getDynamicFilterComponentsDictionary } from "./components/DynamicFilter/index.js";
|
|
34
70
|
export { A as ActionCancel } from "./components/CommonActions/components/ActionCancel/index.js";
|
|
35
71
|
export { A as ActionIntro } from "./components/CommonActions/components/ActionIntro/index.js";
|
|
36
72
|
export { A as ActionFormCancel } from "./components/CommonActions/components/ActionFormCancel/index.js";
|
|
37
73
|
export { A as ActionFormIntro } from "./components/CommonActions/components/ActionFormIntro/index.js";
|
|
38
|
-
export { I as Icon } from "./components/Icon/index.js";
|
|
39
|
-
export { I as Image } from "./components/Image/index.js";
|
|
40
|
-
export { L as LanguagePopover } from "./components/LanguagePopover/index.js";
|
|
41
74
|
export { L as Loadable } from "./components/Loadable/index.js";
|
|
42
|
-
export {
|
|
43
|
-
export { N as NoItemSelected, d as defaultNoItemSelectedDictionary, g as getNoItemSelectedComponentsDictionary } from "./components/NoItemSelected/index.js";
|
|
44
|
-
export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsComponentsDictionary } from "./components/ObjectLogs/index.js";
|
|
45
|
-
export { P as PaperForm } from "./components/PaperForm/index.js";
|
|
46
|
-
export { P as Page } from "./components/Page/index.js";
|
|
47
|
-
export { P as PropertyValue } from "./components/PropertyValue/index.js";
|
|
48
|
-
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
49
|
-
export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
50
|
-
export { S as SplitLayout } from "./components/SplitLayout/index.js";
|
|
51
|
-
export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/index.js";
|
|
75
|
+
export { S as ScrollToTop } from "./components/ScrollToTop/index.js";
|
|
52
76
|
export { u as useModal } from "./hooks/useModal/index.js";
|
|
53
|
-
|
|
54
|
-
import "react";
|
|
55
|
-
import "@mui/material";
|
|
56
|
-
import "react/jsx-runtime";
|
|
57
|
-
import "@m4l/core";
|
|
58
|
-
import "react-hook-form";
|
|
77
|
+
export { L as Logo } from "./assets/Logo/index.js";
|
|
59
78
|
import "./node_modules.js";
|
|
60
|
-
import "@mui/material/styles";
|
|
61
|
-
import "@mui/x-date-pickers";
|
|
62
|
-
import "./lodash.js";
|
|
63
79
|
import "./commonjs.js";
|
|
64
80
|
import "react-dom";
|
|
65
81
|
import "prop-types";
|
|
66
82
|
import "clsx";
|
|
67
|
-
import "
|
|
68
|
-
import "./react-lazy-load-image-component.js";
|
|
69
|
-
import "react-router-dom";
|
|
70
|
-
import "@mui/lab";
|
|
71
|
-
import "@mui/material/Button";
|
|
72
|
-
import "@m4l/graphics";
|
|
73
|
-
import "react-dnd";
|
|
74
|
-
import "react-dnd-html5-backend";
|
|
75
|
-
import "./simplebar.js";
|
|
76
|
-
import "./core-js.js";
|
|
83
|
+
import "./utils/index.js";
|
|
77
84
|
import "./juggle.js";
|
|
78
|
-
import "./can-use-dom.js";
|
|
79
|
-
import "./react-draggable.js";
|
|
80
|
-
import "./react-json-view.js";
|
|
81
|
-
import "./react-splitter-layout.js";
|
|
82
85
|
import "./react-data-grid.js";
|
|
83
86
|
import "yup";
|
|
84
|
-
import "
|
|
87
|
+
import "./core-js.js";
|
|
88
|
+
import "./can-use-dom.js";
|
|
85
89
|
import "./react-resizable.js";
|
|
90
|
+
import "react-helmet-async";
|
package/juggle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { r as resizeObservers, f as freeze, c as global, i as isHidden, d as isSVG, e as isReplacedElement, u as updateCount, s as scheduler, h as isElement } from "./utils/index.js";
|
|
2
2
|
var hasActiveObservations = function() {
|
|
3
3
|
return resizeObservers.some(function(ro) {
|
|
4
4
|
return ro.activeTargets.length > 0;
|
|
@@ -29,9 +29,6 @@ var ResizeObserverBoxOptions;
|
|
|
29
29
|
ResizeObserverBoxOptions2["CONTENT_BOX"] = "content-box";
|
|
30
30
|
ResizeObserverBoxOptions2["DEVICE_PIXEL_CONTENT_BOX"] = "device-pixel-content-box";
|
|
31
31
|
})(ResizeObserverBoxOptions || (ResizeObserverBoxOptions = {}));
|
|
32
|
-
var freeze = function(obj) {
|
|
33
|
-
return Object.freeze(obj);
|
|
34
|
-
};
|
|
35
32
|
var ResizeObserverSize = function() {
|
|
36
33
|
function ResizeObserverSize2(inlineSize, blockSize) {
|
|
37
34
|
this.inlineSize = inlineSize;
|
|
@@ -61,43 +58,6 @@ var DOMRectReadOnly = function() {
|
|
|
61
58
|
};
|
|
62
59
|
return DOMRectReadOnly2;
|
|
63
60
|
}();
|
|
64
|
-
var isSVG = function(target) {
|
|
65
|
-
return target instanceof SVGElement && "getBBox" in target;
|
|
66
|
-
};
|
|
67
|
-
var isHidden = function(target) {
|
|
68
|
-
if (isSVG(target)) {
|
|
69
|
-
var _a = target.getBBox(), width = _a.width, height = _a.height;
|
|
70
|
-
return !width && !height;
|
|
71
|
-
}
|
|
72
|
-
var _b = target, offsetWidth = _b.offsetWidth, offsetHeight = _b.offsetHeight;
|
|
73
|
-
return !(offsetWidth || offsetHeight || target.getClientRects().length);
|
|
74
|
-
};
|
|
75
|
-
var isElement = function(obj) {
|
|
76
|
-
var _a;
|
|
77
|
-
if (obj instanceof Element) {
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
var scope = (_a = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
|
|
81
|
-
return !!(scope && obj instanceof scope.Element);
|
|
82
|
-
};
|
|
83
|
-
var isReplacedElement = function(target) {
|
|
84
|
-
switch (target.tagName) {
|
|
85
|
-
case "INPUT":
|
|
86
|
-
if (target.type !== "image") {
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
case "VIDEO":
|
|
90
|
-
case "AUDIO":
|
|
91
|
-
case "EMBED":
|
|
92
|
-
case "OBJECT":
|
|
93
|
-
case "CANVAS":
|
|
94
|
-
case "IFRAME":
|
|
95
|
-
case "IMG":
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
return false;
|
|
99
|
-
};
|
|
100
|
-
var global = typeof window !== "undefined" ? window : {};
|
|
101
61
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
102
62
|
var scrollRegexp = /auto|scroll/;
|
|
103
63
|
var verticalRegexp = /^tb|vertical/;
|
|
@@ -205,7 +165,7 @@ var calculateDepthForNode = function(node) {
|
|
|
205
165
|
};
|
|
206
166
|
var broadcastActiveObservations = function() {
|
|
207
167
|
var shallowestDepth = Infinity;
|
|
208
|
-
var
|
|
168
|
+
var callbacks = [];
|
|
209
169
|
resizeObservers.forEach(function processObserver(ro) {
|
|
210
170
|
if (ro.activeTargets.length === 0) {
|
|
211
171
|
return;
|
|
@@ -220,12 +180,12 @@ var broadcastActiveObservations = function() {
|
|
|
220
180
|
shallowestDepth = targetDepth;
|
|
221
181
|
}
|
|
222
182
|
});
|
|
223
|
-
|
|
183
|
+
callbacks.push(function resizeObserverCallback() {
|
|
224
184
|
ro.callback.call(ro.observer, entries, ro.observer);
|
|
225
185
|
});
|
|
226
186
|
ro.activeTargets.splice(0, ro.activeTargets.length);
|
|
227
187
|
});
|
|
228
|
-
for (var _i = 0, callbacks_1 =
|
|
188
|
+
for (var _i = 0, callbacks_1 = callbacks; _i < callbacks_1.length; _i++) {
|
|
229
189
|
var callback = callbacks_1[_i];
|
|
230
190
|
callback();
|
|
231
191
|
}
|
|
@@ -246,152 +206,6 @@ var gatherActiveObservationsAtDepth = function(depth) {
|
|
|
246
206
|
});
|
|
247
207
|
});
|
|
248
208
|
};
|
|
249
|
-
var process = function() {
|
|
250
|
-
var depth = 0;
|
|
251
|
-
gatherActiveObservationsAtDepth(depth);
|
|
252
|
-
while (hasActiveObservations()) {
|
|
253
|
-
depth = broadcastActiveObservations();
|
|
254
|
-
gatherActiveObservationsAtDepth(depth);
|
|
255
|
-
}
|
|
256
|
-
if (hasSkippedObservations()) {
|
|
257
|
-
deliverResizeLoopError();
|
|
258
|
-
}
|
|
259
|
-
return depth > 0;
|
|
260
|
-
};
|
|
261
|
-
var trigger;
|
|
262
|
-
var callbacks = [];
|
|
263
|
-
var notify = function() {
|
|
264
|
-
return callbacks.splice(0).forEach(function(cb) {
|
|
265
|
-
return cb();
|
|
266
|
-
});
|
|
267
|
-
};
|
|
268
|
-
var queueMicroTask = function(callback) {
|
|
269
|
-
if (!trigger) {
|
|
270
|
-
var toggle_1 = 0;
|
|
271
|
-
var el_1 = document.createTextNode("");
|
|
272
|
-
var config = { characterData: true };
|
|
273
|
-
new MutationObserver(function() {
|
|
274
|
-
return notify();
|
|
275
|
-
}).observe(el_1, config);
|
|
276
|
-
trigger = function() {
|
|
277
|
-
el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++);
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
callbacks.push(callback);
|
|
281
|
-
trigger();
|
|
282
|
-
};
|
|
283
|
-
var queueResizeObserver = function(cb) {
|
|
284
|
-
queueMicroTask(function ResizeObserver2() {
|
|
285
|
-
requestAnimationFrame(cb);
|
|
286
|
-
});
|
|
287
|
-
};
|
|
288
|
-
var watching = 0;
|
|
289
|
-
var isWatching = function() {
|
|
290
|
-
return !!watching;
|
|
291
|
-
};
|
|
292
|
-
var CATCH_PERIOD = 250;
|
|
293
|
-
var observerConfig = { attributes: true, characterData: true, childList: true, subtree: true };
|
|
294
|
-
var events = [
|
|
295
|
-
"resize",
|
|
296
|
-
"load",
|
|
297
|
-
"transitionend",
|
|
298
|
-
"animationend",
|
|
299
|
-
"animationstart",
|
|
300
|
-
"animationiteration",
|
|
301
|
-
"keyup",
|
|
302
|
-
"keydown",
|
|
303
|
-
"mouseup",
|
|
304
|
-
"mousedown",
|
|
305
|
-
"mouseover",
|
|
306
|
-
"mouseout",
|
|
307
|
-
"blur",
|
|
308
|
-
"focus"
|
|
309
|
-
];
|
|
310
|
-
var time = function(timeout) {
|
|
311
|
-
if (timeout === void 0) {
|
|
312
|
-
timeout = 0;
|
|
313
|
-
}
|
|
314
|
-
return Date.now() + timeout;
|
|
315
|
-
};
|
|
316
|
-
var scheduled = false;
|
|
317
|
-
var Scheduler = function() {
|
|
318
|
-
function Scheduler2() {
|
|
319
|
-
var _this = this;
|
|
320
|
-
this.stopped = true;
|
|
321
|
-
this.listener = function() {
|
|
322
|
-
return _this.schedule();
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
Scheduler2.prototype.run = function(timeout) {
|
|
326
|
-
var _this = this;
|
|
327
|
-
if (timeout === void 0) {
|
|
328
|
-
timeout = CATCH_PERIOD;
|
|
329
|
-
}
|
|
330
|
-
if (scheduled) {
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
scheduled = true;
|
|
334
|
-
var until = time(timeout);
|
|
335
|
-
queueResizeObserver(function() {
|
|
336
|
-
var elementsHaveResized = false;
|
|
337
|
-
try {
|
|
338
|
-
elementsHaveResized = process();
|
|
339
|
-
} finally {
|
|
340
|
-
scheduled = false;
|
|
341
|
-
timeout = until - time();
|
|
342
|
-
if (!isWatching()) {
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
if (elementsHaveResized) {
|
|
346
|
-
_this.run(1e3);
|
|
347
|
-
} else if (timeout > 0) {
|
|
348
|
-
_this.run(timeout);
|
|
349
|
-
} else {
|
|
350
|
-
_this.start();
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
};
|
|
355
|
-
Scheduler2.prototype.schedule = function() {
|
|
356
|
-
this.stop();
|
|
357
|
-
this.run();
|
|
358
|
-
};
|
|
359
|
-
Scheduler2.prototype.observe = function() {
|
|
360
|
-
var _this = this;
|
|
361
|
-
var cb = function() {
|
|
362
|
-
return _this.observer && _this.observer.observe(document.body, observerConfig);
|
|
363
|
-
};
|
|
364
|
-
document.body ? cb() : global.addEventListener("DOMContentLoaded", cb);
|
|
365
|
-
};
|
|
366
|
-
Scheduler2.prototype.start = function() {
|
|
367
|
-
var _this = this;
|
|
368
|
-
if (this.stopped) {
|
|
369
|
-
this.stopped = false;
|
|
370
|
-
this.observer = new MutationObserver(this.listener);
|
|
371
|
-
this.observe();
|
|
372
|
-
events.forEach(function(name) {
|
|
373
|
-
return global.addEventListener(name, _this.listener, true);
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
Scheduler2.prototype.stop = function() {
|
|
378
|
-
var _this = this;
|
|
379
|
-
if (!this.stopped) {
|
|
380
|
-
this.observer && this.observer.disconnect();
|
|
381
|
-
events.forEach(function(name) {
|
|
382
|
-
return global.removeEventListener(name, _this.listener, true);
|
|
383
|
-
});
|
|
384
|
-
this.stopped = true;
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
return Scheduler2;
|
|
388
|
-
}();
|
|
389
|
-
var scheduler = new Scheduler();
|
|
390
|
-
var updateCount = function(n) {
|
|
391
|
-
!watching && n > 0 && scheduler.start();
|
|
392
|
-
watching += n;
|
|
393
|
-
!watching && scheduler.stop();
|
|
394
|
-
};
|
|
395
209
|
var skipNotifyOnElement = function(target) {
|
|
396
210
|
return !isSVG(target) && !isReplacedElement(target) && getComputedStyle(target).display === "inline";
|
|
397
211
|
};
|
|
@@ -508,4 +322,4 @@ var ResizeObserver = function() {
|
|
|
508
322
|
};
|
|
509
323
|
return ResizeObserver2;
|
|
510
324
|
}();
|
|
511
|
-
export { ResizeObserver as R };
|
|
325
|
+
export { ResizeObserver as R, hasSkippedObservations as a, broadcastActiveObservations as b, deliverResizeLoopError as d, gatherActiveObservationsAtDepth as g, hasActiveObservations as h };
|