@m4l/components 0.1.26 → 0.1.28
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.228dcb5a.js +42 -35
- package/commonjs.565e6834.js +5 -5
- package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
- package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
- package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
- package/components/DataGrid/index.76d8fd25.js +1075 -0
- package/components/DynamicFilter/index.342ba5fe.js +1577 -0
- package/components/ErrorLabel/index.c8615f16.js +13 -12
- package/components/Icon/index.619c31c4.js +96 -0
- package/components/Icon/types.d.ts +2 -1
- package/components/Image/index.93d5f37f.js +190 -0
- package/components/Loadable/index.f5518558.js +8 -8
- package/components/ModalDialog/index.9ea10764.js +184 -0
- package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
- package/components/ObjectLogs/index.f941fb79.js +288 -0
- package/components/Page/index.4237c241.js +22 -20
- package/components/PaperForm/index.ec9cb8c9.js +112 -0
- package/components/Period/index.2941fbda.js +249 -0
- package/components/PropertyValue/index.dfcfe1ba.js +147 -0
- package/components/PropertyValue/styles.d.ts +2 -1
- package/components/PropertyValue/types.d.ts +3 -3
- package/components/Resizeable/index.45995d2b.js +19 -19
- package/components/ScrollBar/index.39eeb2de.js +26 -21
- package/components/ScrollToTop/index.e06f98f6.js +8 -7
- package/components/SplitLayout/index.4032673d.js +35 -33
- package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
- package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
- package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
- package/components/animate/features.0fbf41e1.js +3 -3
- package/components/animate/variants/bounce.784aaaaa.js +16 -13
- package/components/animate/variants/container.11f82b76.js +8 -6
- package/components/animate/variants/fade.b561c0fc.js +32 -28
- package/components/animate/variants/transition.bd46b9ce.js +17 -12
- package/components/formatters/BooleanFormatter/index.8da35c9c.js +55 -0
- package/components/formatters/DateFormatter/index.1b9baacc.js +69 -0
- package/components/formatters/index.689a8086.js +119 -0
- package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
- package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
- package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
- package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
- package/components/hook-form/RHFTextField/index.f9aaaa90.js +146 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
- package/components/hook-form/RHFUpload/index.d5cc7c13.js +285 -0
- package/components/mui_extended/Accordion/index.a02ac6ae.js +107 -0
- package/components/mui_extended/Avatar/index.fe06afd7.js +51 -0
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
- package/components/mui_extended/Button/index.53b56958.js +178 -0
- package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
- package/components/mui_extended/IconButton/index.a321e5cb.js +120 -0
- package/components/mui_extended/IconButton/index.d.ts +1 -1
- package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
- package/components/mui_extended/Pager/index.c0865b70.js +141 -0
- package/components/mui_extended/Popover/index.705275a4.js +278 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
- package/components/mui_extended/Typography/index.e5494696.js +25 -21
- package/contexts/ModalContext/index.b92fa565.js +153 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
- package/contexts/RHFormContext/index.b142190a.js +63 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
- package/hooks/useModal/index.5fee01a3.js +11 -0
- package/index.js +153 -153
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +2206 -1663
- package/react-draggable.20e95c61.js +800 -553
- package/react-json-view.f56a7f8e.js +2344 -2340
- package/react-resizable.5277deaf.js +470 -298
- package/react-splitter-layout.7810ac1b.js +130 -128
- package/utils/index.214d9542.js +500 -354
- package/components/CommonActions/components/ActionCancel/index.6736b782.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.281ee166.js +0 -49
- package/components/CommonActions/components/ActionIntro/index.4665a611.js +0 -18
- package/components/CommonActions/components/Actions/index.cd7b2671.js +0 -742
- package/components/DataGrid/index.2caf6231.js +0 -894
- package/components/DynamicFilter/index.f2377369.js +0 -1157
- package/components/Icon/index.f569765b.js +0 -82
- package/components/Image/index.c9da2d5a.js +0 -152
- package/components/ModalDialog/index.bee344a5.js +0 -168
- package/components/ObjectLogs/index.6b6f95e6.js +0 -266
- package/components/PaperForm/index.3f8c7ef2.js +0 -105
- package/components/Period/index.a112ce37.js +0 -175
- package/components/PropertyValue/index.ab3dd7e9.js +0 -116
- package/components/contexts/RHFormContext/index.33dba822.js +0 -56
- package/components/formatters/BooleanFormatter/index.3ec56305.js +0 -42
- package/components/formatters/DateFormatter/index.08d8823b.js +0 -57
- package/components/formatters/index.6959c2de.js +0 -106
- package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
- package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
- package/components/hook-form/RHFPeriod/index.979d0898.js +0 -51
- package/components/hook-form/RHFTextField/index.ba2a8f67.js +0 -129
- package/components/hook-form/RHFUpload/index.6347159a.js +0 -258
- package/components/mui_extended/Accordion/index.49f5df8e.js +0 -103
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/Button/index.52d18aea.js +0 -144
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
- package/components/mui_extended/Pager/index.951b6975.js +0 -126
- package/components/mui_extended/Popover/index.4da8587a.js +0 -252
- package/contexts/ModalContext/index.5388dfd5.js +0 -136
- package/hooks/useModal/index.3b1ff084.js +0 -11
- package/node_modules.168cb897.js +0 -55
package/utils/index.214d9542.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
const getPaletteColor = function(palette, s) {
|
|
3
|
+
s = s.replace(/\[(\w+)\]/g, ".$1");
|
|
4
|
+
s = s.replace(/^\./, "");
|
|
5
|
+
let o = palette;
|
|
6
|
+
const a = s.split(".");
|
|
7
|
+
for (let i = 0, n = a.length; i < n; ++i) {
|
|
8
|
+
const k = a[i];
|
|
9
|
+
if (k in o) {
|
|
10
|
+
o = o[k];
|
|
11
|
+
} else {
|
|
12
|
+
return palette.action.active;
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
|
|
15
|
+
return o;
|
|
16
|
+
};
|
|
17
|
+
const getVariantColor = (variant) => {
|
|
18
|
+
switch (variant) {
|
|
16
19
|
case "warning":
|
|
17
20
|
return "warning";
|
|
18
21
|
case "delete":
|
|
@@ -21,415 +24,558 @@ const Pe = function(e, t) {
|
|
|
21
24
|
return "info";
|
|
22
25
|
}
|
|
23
26
|
return "primary";
|
|
24
|
-
}
|
|
25
|
-
|
|
27
|
+
};
|
|
28
|
+
const getThemeVariantColor = (theme, variant) => {
|
|
29
|
+
switch (variant) {
|
|
26
30
|
case "warning":
|
|
27
|
-
|
|
31
|
+
theme.palette.warning.main;
|
|
28
32
|
break;
|
|
29
33
|
case "delete":
|
|
30
|
-
|
|
34
|
+
theme.palette.error.main;
|
|
31
35
|
break;
|
|
32
36
|
case "info":
|
|
33
|
-
|
|
37
|
+
theme.palette.info.main;
|
|
34
38
|
break;
|
|
35
39
|
}
|
|
36
|
-
return
|
|
40
|
+
return theme.palette.text.primary;
|
|
37
41
|
};
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
var domFns = {};
|
|
43
|
+
var shims = {};
|
|
44
|
+
Object.defineProperty(shims, "__esModule", {
|
|
45
|
+
value: true
|
|
41
46
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
function
|
|
48
|
-
for (var
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
51
|
-
}
|
|
52
|
-
function j(e) {
|
|
53
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
54
|
-
}
|
|
55
|
-
function H(e) {
|
|
56
|
-
return typeof e == "number" && !isNaN(e);
|
|
57
|
-
}
|
|
58
|
-
function V(e) {
|
|
59
|
-
return parseInt(e, 10);
|
|
60
|
-
}
|
|
61
|
-
function $(e, t, r) {
|
|
62
|
-
if (e[t])
|
|
63
|
-
return new Error("Invalid prop ".concat(t, " passed to ").concat(r, " - do not set this, set it on the child."));
|
|
64
|
-
}
|
|
65
|
-
var p = {};
|
|
66
|
-
Object.defineProperty(p, "__esModule", {
|
|
67
|
-
value: !0
|
|
68
|
-
});
|
|
69
|
-
p.browserPrefixToKey = C;
|
|
70
|
-
p.browserPrefixToStyle = I;
|
|
71
|
-
p.default = void 0;
|
|
72
|
-
p.getPrefix = E;
|
|
73
|
-
var w = ["Moz", "Webkit", "O", "ms"];
|
|
74
|
-
function E() {
|
|
75
|
-
var e, t, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
76
|
-
if (typeof window > "u")
|
|
77
|
-
return "";
|
|
78
|
-
var n = (e = window.document) === null || e === void 0 || (t = e.documentElement) === null || t === void 0 ? void 0 : t.style;
|
|
79
|
-
if (!n || r in n)
|
|
80
|
-
return "";
|
|
81
|
-
for (var a = 0; a < w.length; a++)
|
|
82
|
-
if (C(r, w[a]) in n)
|
|
83
|
-
return w[a];
|
|
84
|
-
return "";
|
|
47
|
+
shims.dontSetMe = dontSetMe;
|
|
48
|
+
shims.findInArray = findInArray;
|
|
49
|
+
shims.int = int;
|
|
50
|
+
shims.isFunction = isFunction;
|
|
51
|
+
shims.isNum = isNum;
|
|
52
|
+
function findInArray(array, callback) {
|
|
53
|
+
for (var i = 0, length = array.length; i < length; i++) {
|
|
54
|
+
if (callback.apply(callback, [array[i], i, array]))
|
|
55
|
+
return array[i];
|
|
56
|
+
}
|
|
85
57
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
58
|
+
function isFunction(func) {
|
|
59
|
+
return typeof func === "function" || Object.prototype.toString.call(func) === "[object Function]";
|
|
88
60
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
61
|
+
function isNum(num) {
|
|
62
|
+
return typeof num === "number" && !isNaN(num);
|
|
91
63
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
r ? (t += e[n].toUpperCase(), r = !1) : e[n] === "-" ? r = !0 : t += e[n];
|
|
95
|
-
return t;
|
|
64
|
+
function int(a) {
|
|
65
|
+
return parseInt(a, 10);
|
|
96
66
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return typeof t;
|
|
102
|
-
} : function(t) {
|
|
103
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
104
|
-
}, b(e);
|
|
67
|
+
function dontSetMe(props, propName, componentName) {
|
|
68
|
+
if (props[propName]) {
|
|
69
|
+
return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child."));
|
|
70
|
+
}
|
|
105
71
|
}
|
|
106
|
-
|
|
107
|
-
|
|
72
|
+
var getPrefix$1 = {};
|
|
73
|
+
Object.defineProperty(getPrefix$1, "__esModule", {
|
|
74
|
+
value: true
|
|
108
75
|
});
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
i
|
|
125
|
-
i
|
|
126
|
-
i
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
76
|
+
getPrefix$1.browserPrefixToKey = browserPrefixToKey;
|
|
77
|
+
getPrefix$1.browserPrefixToStyle = browserPrefixToStyle;
|
|
78
|
+
getPrefix$1.default = void 0;
|
|
79
|
+
getPrefix$1.getPrefix = getPrefix;
|
|
80
|
+
var prefixes = ["Moz", "Webkit", "O", "ms"];
|
|
81
|
+
function getPrefix() {
|
|
82
|
+
var _window$document, _window$document$docu;
|
|
83
|
+
var prop = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
84
|
+
if (typeof window === "undefined")
|
|
85
|
+
return "";
|
|
86
|
+
var style = (_window$document = window.document) === null || _window$document === void 0 ? void 0 : (_window$document$docu = _window$document.documentElement) === null || _window$document$docu === void 0 ? void 0 : _window$document$docu.style;
|
|
87
|
+
if (!style)
|
|
88
|
+
return "";
|
|
89
|
+
if (prop in style)
|
|
90
|
+
return "";
|
|
91
|
+
for (var i = 0; i < prefixes.length; i++) {
|
|
92
|
+
if (browserPrefixToKey(prop, prefixes[i]) in style)
|
|
93
|
+
return prefixes[i];
|
|
94
|
+
}
|
|
95
|
+
return "";
|
|
96
|
+
}
|
|
97
|
+
function browserPrefixToKey(prop, prefix) {
|
|
98
|
+
return prefix ? "".concat(prefix).concat(kebabToTitleCase(prop)) : prop;
|
|
99
|
+
}
|
|
100
|
+
function browserPrefixToStyle(prop, prefix) {
|
|
101
|
+
return prefix ? "-".concat(prefix.toLowerCase(), "-").concat(prop) : prop;
|
|
102
|
+
}
|
|
103
|
+
function kebabToTitleCase(str) {
|
|
104
|
+
var out = "";
|
|
105
|
+
var shouldCapitalize = true;
|
|
106
|
+
for (var i = 0; i < str.length; i++) {
|
|
107
|
+
if (shouldCapitalize) {
|
|
108
|
+
out += str[i].toUpperCase();
|
|
109
|
+
shouldCapitalize = false;
|
|
110
|
+
} else if (str[i] === "-") {
|
|
111
|
+
shouldCapitalize = true;
|
|
112
|
+
} else {
|
|
113
|
+
out += str[i];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return out;
|
|
117
|
+
}
|
|
118
|
+
var _default = getPrefix();
|
|
119
|
+
getPrefix$1.default = _default;
|
|
120
|
+
function _typeof(obj) {
|
|
121
|
+
"@babel/helpers - typeof";
|
|
122
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
123
|
+
return typeof obj2;
|
|
124
|
+
} : function(obj2) {
|
|
125
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
126
|
+
}, _typeof(obj);
|
|
127
|
+
}
|
|
128
|
+
Object.defineProperty(domFns, "__esModule", {
|
|
129
|
+
value: true
|
|
130
|
+
});
|
|
131
|
+
domFns.addClassName = addClassName;
|
|
132
|
+
domFns.addEvent = addEvent;
|
|
133
|
+
domFns.addUserSelectStyles = addUserSelectStyles;
|
|
134
|
+
domFns.createCSSTransform = createCSSTransform;
|
|
135
|
+
domFns.createSVGTransform = createSVGTransform;
|
|
136
|
+
domFns.getTouch = getTouch;
|
|
137
|
+
domFns.getTouchIdentifier = getTouchIdentifier;
|
|
138
|
+
domFns.getTranslation = getTranslation;
|
|
139
|
+
domFns.innerHeight = innerHeight;
|
|
140
|
+
domFns.innerWidth = innerWidth;
|
|
141
|
+
domFns.matchesSelector = matchesSelector;
|
|
142
|
+
domFns.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
|
|
143
|
+
domFns.offsetXYFromParent = offsetXYFromParent;
|
|
144
|
+
domFns.outerHeight = outerHeight;
|
|
145
|
+
domFns.outerWidth = outerWidth;
|
|
146
|
+
domFns.removeClassName = removeClassName;
|
|
147
|
+
domFns.removeEvent = removeEvent;
|
|
148
|
+
domFns.removeUserSelectStyles = removeUserSelectStyles;
|
|
149
|
+
var _shims$1 = shims;
|
|
150
|
+
var _getPrefix = _interopRequireWildcard(getPrefix$1);
|
|
151
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
152
|
+
if (typeof WeakMap !== "function")
|
|
130
153
|
return null;
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
var
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
154
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
155
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
156
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
157
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
158
|
+
})(nodeInterop);
|
|
159
|
+
}
|
|
160
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
161
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
162
|
+
return obj;
|
|
163
|
+
}
|
|
164
|
+
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
165
|
+
return { default: obj };
|
|
166
|
+
}
|
|
167
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
168
|
+
if (cache && cache.has(obj)) {
|
|
169
|
+
return cache.get(obj);
|
|
170
|
+
}
|
|
171
|
+
var newObj = {};
|
|
172
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
173
|
+
for (var key in obj) {
|
|
174
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
175
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
176
|
+
if (desc && (desc.get || desc.set)) {
|
|
177
|
+
Object.defineProperty(newObj, key, desc);
|
|
178
|
+
} else {
|
|
179
|
+
newObj[key] = obj[key];
|
|
180
|
+
}
|
|
149
181
|
}
|
|
150
|
-
|
|
182
|
+
}
|
|
183
|
+
newObj.default = obj;
|
|
184
|
+
if (cache) {
|
|
185
|
+
cache.set(obj, newObj);
|
|
186
|
+
}
|
|
187
|
+
return newObj;
|
|
151
188
|
}
|
|
152
|
-
function
|
|
153
|
-
var
|
|
189
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
190
|
+
var keys = Object.keys(object);
|
|
154
191
|
if (Object.getOwnPropertySymbols) {
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
return Object.getOwnPropertyDescriptor(
|
|
158
|
-
})),
|
|
192
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
193
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
194
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
195
|
+
})), keys.push.apply(keys, symbols);
|
|
159
196
|
}
|
|
160
|
-
return
|
|
161
|
-
}
|
|
162
|
-
function
|
|
163
|
-
for (var
|
|
164
|
-
var
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
168
|
-
Object.defineProperty(
|
|
197
|
+
return keys;
|
|
198
|
+
}
|
|
199
|
+
function _objectSpread$1(target) {
|
|
200
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
201
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
202
|
+
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
203
|
+
_defineProperty$1(target, key, source[key]);
|
|
204
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
205
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
169
206
|
});
|
|
170
207
|
}
|
|
171
|
-
return
|
|
208
|
+
return target;
|
|
172
209
|
}
|
|
173
|
-
function
|
|
174
|
-
|
|
210
|
+
function _defineProperty$1(obj, key, value) {
|
|
211
|
+
if (key in obj) {
|
|
212
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
213
|
+
} else {
|
|
214
|
+
obj[key] = value;
|
|
215
|
+
}
|
|
216
|
+
return obj;
|
|
175
217
|
}
|
|
176
|
-
var
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
218
|
+
var matchesSelectorFunc = "";
|
|
219
|
+
function matchesSelector(el, selector) {
|
|
220
|
+
if (!matchesSelectorFunc) {
|
|
221
|
+
matchesSelectorFunc = (0, _shims$1.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(method) {
|
|
222
|
+
return (0, _shims$1.isFunction)(el[method]);
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
if (!(0, _shims$1.isFunction)(el[matchesSelectorFunc]))
|
|
226
|
+
return false;
|
|
227
|
+
return el[matchesSelectorFunc](selector);
|
|
181
228
|
}
|
|
182
|
-
function
|
|
183
|
-
var
|
|
229
|
+
function matchesSelectorAndParentsTo(el, selector, baseNode) {
|
|
230
|
+
var node = el;
|
|
184
231
|
do {
|
|
185
|
-
if (
|
|
186
|
-
return
|
|
187
|
-
if (
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
} while (
|
|
191
|
-
return
|
|
192
|
-
}
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
232
|
+
if (matchesSelector(node, selector))
|
|
233
|
+
return true;
|
|
234
|
+
if (node === baseNode)
|
|
235
|
+
return false;
|
|
236
|
+
node = node.parentNode;
|
|
237
|
+
} while (node);
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
function addEvent(el, event, handler, inputOptions) {
|
|
241
|
+
if (!el)
|
|
242
|
+
return;
|
|
243
|
+
var options = _objectSpread$1({
|
|
244
|
+
capture: true
|
|
245
|
+
}, inputOptions);
|
|
246
|
+
if (el.addEventListener) {
|
|
247
|
+
el.addEventListener(event, handler, options);
|
|
248
|
+
} else if (el.attachEvent) {
|
|
249
|
+
el.attachEvent("on" + event, handler);
|
|
250
|
+
} else {
|
|
251
|
+
el["on" + event] = handler;
|
|
199
252
|
}
|
|
200
253
|
}
|
|
201
|
-
function
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
254
|
+
function removeEvent(el, event, handler, inputOptions) {
|
|
255
|
+
if (!el)
|
|
256
|
+
return;
|
|
257
|
+
var options = _objectSpread$1({
|
|
258
|
+
capture: true
|
|
259
|
+
}, inputOptions);
|
|
260
|
+
if (el.removeEventListener) {
|
|
261
|
+
el.removeEventListener(event, handler, options);
|
|
262
|
+
} else if (el.detachEvent) {
|
|
263
|
+
el.detachEvent("on" + event, handler);
|
|
264
|
+
} else {
|
|
265
|
+
el["on" + event] = null;
|
|
207
266
|
}
|
|
208
267
|
}
|
|
209
|
-
function
|
|
210
|
-
var
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
var
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
268
|
+
function outerHeight(node) {
|
|
269
|
+
var height = node.clientHeight;
|
|
270
|
+
var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
271
|
+
height += (0, _shims$1.int)(computedStyle.borderTopWidth);
|
|
272
|
+
height += (0, _shims$1.int)(computedStyle.borderBottomWidth);
|
|
273
|
+
return height;
|
|
274
|
+
}
|
|
275
|
+
function outerWidth(node) {
|
|
276
|
+
var width = node.clientWidth;
|
|
277
|
+
var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
278
|
+
width += (0, _shims$1.int)(computedStyle.borderLeftWidth);
|
|
279
|
+
width += (0, _shims$1.int)(computedStyle.borderRightWidth);
|
|
280
|
+
return width;
|
|
281
|
+
}
|
|
282
|
+
function innerHeight(node) {
|
|
283
|
+
var height = node.clientHeight;
|
|
284
|
+
var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
285
|
+
height -= (0, _shims$1.int)(computedStyle.paddingTop);
|
|
286
|
+
height -= (0, _shims$1.int)(computedStyle.paddingBottom);
|
|
287
|
+
return height;
|
|
288
|
+
}
|
|
289
|
+
function innerWidth(node) {
|
|
290
|
+
var width = node.clientWidth;
|
|
291
|
+
var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
292
|
+
width -= (0, _shims$1.int)(computedStyle.paddingLeft);
|
|
293
|
+
width -= (0, _shims$1.int)(computedStyle.paddingRight);
|
|
294
|
+
return width;
|
|
295
|
+
}
|
|
296
|
+
function offsetXYFromParent(evt, offsetParent, scale) {
|
|
297
|
+
var isBody = offsetParent === offsetParent.ownerDocument.body;
|
|
298
|
+
var offsetParentRect = isBody ? {
|
|
227
299
|
left: 0,
|
|
228
300
|
top: 0
|
|
229
|
-
} :
|
|
301
|
+
} : offsetParent.getBoundingClientRect();
|
|
302
|
+
var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;
|
|
303
|
+
var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;
|
|
230
304
|
return {
|
|
231
|
-
x
|
|
232
|
-
y
|
|
305
|
+
x,
|
|
306
|
+
y
|
|
233
307
|
};
|
|
234
308
|
}
|
|
235
|
-
function
|
|
236
|
-
var
|
|
237
|
-
return
|
|
238
|
-
}
|
|
239
|
-
function
|
|
240
|
-
var
|
|
241
|
-
return
|
|
242
|
-
}
|
|
243
|
-
function
|
|
244
|
-
var
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
309
|
+
function createCSSTransform(controlPos, positionOffset) {
|
|
310
|
+
var translation = getTranslation(controlPos, positionOffset, "px");
|
|
311
|
+
return _defineProperty$1({}, (0, _getPrefix.browserPrefixToKey)("transform", _getPrefix.default), translation);
|
|
312
|
+
}
|
|
313
|
+
function createSVGTransform(controlPos, positionOffset) {
|
|
314
|
+
var translation = getTranslation(controlPos, positionOffset, "");
|
|
315
|
+
return translation;
|
|
316
|
+
}
|
|
317
|
+
function getTranslation(_ref2, positionOffset, unitSuffix) {
|
|
318
|
+
var x = _ref2.x, y = _ref2.y;
|
|
319
|
+
var translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")");
|
|
320
|
+
if (positionOffset) {
|
|
321
|
+
var defaultX = "".concat(typeof positionOffset.x === "string" ? positionOffset.x : positionOffset.x + unitSuffix);
|
|
322
|
+
var defaultY = "".concat(typeof positionOffset.y === "string" ? positionOffset.y : positionOffset.y + unitSuffix);
|
|
323
|
+
translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation;
|
|
248
324
|
}
|
|
249
|
-
return
|
|
325
|
+
return translation;
|
|
250
326
|
}
|
|
251
|
-
function
|
|
252
|
-
return e.targetTouches && (0,
|
|
253
|
-
return
|
|
254
|
-
}) || e.changedTouches && (0,
|
|
255
|
-
return
|
|
327
|
+
function getTouch(e, identifier) {
|
|
328
|
+
return e.targetTouches && (0, _shims$1.findInArray)(e.targetTouches, function(t) {
|
|
329
|
+
return identifier === t.identifier;
|
|
330
|
+
}) || e.changedTouches && (0, _shims$1.findInArray)(e.changedTouches, function(t) {
|
|
331
|
+
return identifier === t.identifier;
|
|
256
332
|
});
|
|
257
333
|
}
|
|
258
|
-
function
|
|
334
|
+
function getTouchIdentifier(e) {
|
|
259
335
|
if (e.targetTouches && e.targetTouches[0])
|
|
260
336
|
return e.targetTouches[0].identifier;
|
|
261
337
|
if (e.changedTouches && e.changedTouches[0])
|
|
262
338
|
return e.changedTouches[0].identifier;
|
|
263
339
|
}
|
|
264
|
-
function
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
340
|
+
function addUserSelectStyles(doc) {
|
|
341
|
+
if (!doc)
|
|
342
|
+
return;
|
|
343
|
+
var styleEl = doc.getElementById("react-draggable-style-el");
|
|
344
|
+
if (!styleEl) {
|
|
345
|
+
styleEl = doc.createElement("style");
|
|
346
|
+
styleEl.type = "text/css";
|
|
347
|
+
styleEl.id = "react-draggable-style-el";
|
|
348
|
+
styleEl.innerHTML = ".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n";
|
|
349
|
+
styleEl.innerHTML += ".react-draggable-transparent-selection *::selection {all: inherit;}\n";
|
|
350
|
+
doc.getElementsByTagName("head")[0].appendChild(styleEl);
|
|
270
351
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
352
|
+
if (doc.body)
|
|
353
|
+
addClassName(doc.body, "react-draggable-transparent-selection");
|
|
354
|
+
}
|
|
355
|
+
function removeUserSelectStyles(doc) {
|
|
356
|
+
if (!doc)
|
|
357
|
+
return;
|
|
358
|
+
try {
|
|
359
|
+
if (doc.body)
|
|
360
|
+
removeClassName(doc.body, "react-draggable-transparent-selection");
|
|
361
|
+
if (doc.selection) {
|
|
362
|
+
doc.selection.empty();
|
|
363
|
+
} else {
|
|
364
|
+
var selection = (doc.defaultView || window).getSelection();
|
|
365
|
+
if (selection && selection.type !== "Caret") {
|
|
366
|
+
selection.removeAllRanges();
|
|
280
367
|
}
|
|
281
|
-
} catch {
|
|
282
368
|
}
|
|
369
|
+
} catch (e) {
|
|
370
|
+
}
|
|
283
371
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
372
|
+
function addClassName(el, className) {
|
|
373
|
+
if (el.classList) {
|
|
374
|
+
el.classList.add(className);
|
|
375
|
+
} else {
|
|
376
|
+
if (!el.className.match(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)")))) {
|
|
377
|
+
el.className += " ".concat(className);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
286
380
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
381
|
+
function removeClassName(el, className) {
|
|
382
|
+
if (el.classList) {
|
|
383
|
+
el.classList.remove(className);
|
|
384
|
+
} else {
|
|
385
|
+
el.className = el.className.replace(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)"), "g"), "");
|
|
386
|
+
}
|
|
289
387
|
}
|
|
290
|
-
var
|
|
291
|
-
Object.defineProperty(
|
|
292
|
-
value:
|
|
388
|
+
var positionFns = {};
|
|
389
|
+
Object.defineProperty(positionFns, "__esModule", {
|
|
390
|
+
value: true
|
|
293
391
|
});
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
var
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
var
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
392
|
+
positionFns.canDragX = canDragX;
|
|
393
|
+
positionFns.canDragY = canDragY;
|
|
394
|
+
positionFns.createCoreData = createCoreData;
|
|
395
|
+
positionFns.createDraggableData = createDraggableData;
|
|
396
|
+
positionFns.getBoundPosition = getBoundPosition;
|
|
397
|
+
positionFns.getControlPosition = getControlPosition;
|
|
398
|
+
positionFns.snapToGrid = snapToGrid;
|
|
399
|
+
var _shims = shims;
|
|
400
|
+
var _domFns = domFns;
|
|
401
|
+
function getBoundPosition(draggable, x, y) {
|
|
402
|
+
if (!draggable.props.bounds)
|
|
403
|
+
return [x, y];
|
|
404
|
+
var bounds = draggable.props.bounds;
|
|
405
|
+
bounds = typeof bounds === "string" ? bounds : cloneBounds(bounds);
|
|
406
|
+
var node = findDOMNode(draggable);
|
|
407
|
+
if (typeof bounds === "string") {
|
|
408
|
+
var ownerDocument = node.ownerDocument;
|
|
409
|
+
var ownerWindow = ownerDocument.defaultView;
|
|
410
|
+
var boundNode;
|
|
411
|
+
if (bounds === "parent") {
|
|
412
|
+
boundNode = node.parentNode;
|
|
413
|
+
} else {
|
|
414
|
+
boundNode = ownerDocument.querySelector(bounds);
|
|
415
|
+
}
|
|
416
|
+
if (!(boundNode instanceof ownerWindow.HTMLElement)) {
|
|
417
|
+
throw new Error('Bounds selector "' + bounds + '" could not find an element.');
|
|
418
|
+
}
|
|
419
|
+
var boundNodeEl = boundNode;
|
|
420
|
+
var nodeStyle = ownerWindow.getComputedStyle(node);
|
|
421
|
+
var boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl);
|
|
422
|
+
bounds = {
|
|
423
|
+
left: -node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingLeft) + (0, _shims.int)(nodeStyle.marginLeft),
|
|
424
|
+
top: -node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingTop) + (0, _shims.int)(nodeStyle.marginTop),
|
|
425
|
+
right: (0, _domFns.innerWidth)(boundNodeEl) - (0, _domFns.outerWidth)(node) - node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingRight) - (0, _shims.int)(nodeStyle.marginRight),
|
|
426
|
+
bottom: (0, _domFns.innerHeight)(boundNodeEl) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom)
|
|
318
427
|
};
|
|
319
428
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
429
|
+
if ((0, _shims.isNum)(bounds.right))
|
|
430
|
+
x = Math.min(x, bounds.right);
|
|
431
|
+
if ((0, _shims.isNum)(bounds.bottom))
|
|
432
|
+
y = Math.min(y, bounds.bottom);
|
|
433
|
+
if ((0, _shims.isNum)(bounds.left))
|
|
434
|
+
x = Math.max(x, bounds.left);
|
|
435
|
+
if ((0, _shims.isNum)(bounds.top))
|
|
436
|
+
y = Math.max(y, bounds.top);
|
|
437
|
+
return [x, y];
|
|
438
|
+
}
|
|
439
|
+
function snapToGrid(grid, pendingX, pendingY) {
|
|
440
|
+
var x = Math.round(pendingX / grid[0]) * grid[0];
|
|
441
|
+
var y = Math.round(pendingY / grid[1]) * grid[1];
|
|
442
|
+
return [x, y];
|
|
443
|
+
}
|
|
444
|
+
function canDragX(draggable) {
|
|
445
|
+
return draggable.props.axis === "both" || draggable.props.axis === "x";
|
|
446
|
+
}
|
|
447
|
+
function canDragY(draggable) {
|
|
448
|
+
return draggable.props.axis === "both" || draggable.props.axis === "y";
|
|
449
|
+
}
|
|
450
|
+
function getControlPosition(e, touchIdentifier, draggableCore) {
|
|
451
|
+
var touchObj = typeof touchIdentifier === "number" ? (0, _domFns.getTouch)(e, touchIdentifier) : null;
|
|
452
|
+
if (typeof touchIdentifier === "number" && !touchObj)
|
|
335
453
|
return null;
|
|
336
|
-
var
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
454
|
+
var node = findDOMNode(draggableCore);
|
|
455
|
+
var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
|
|
456
|
+
return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);
|
|
457
|
+
}
|
|
458
|
+
function createCoreData(draggable, x, y) {
|
|
459
|
+
var state = draggable.state;
|
|
460
|
+
var isStart = !(0, _shims.isNum)(state.lastX);
|
|
461
|
+
var node = findDOMNode(draggable);
|
|
462
|
+
if (isStart) {
|
|
463
|
+
return {
|
|
464
|
+
node,
|
|
465
|
+
deltaX: 0,
|
|
466
|
+
deltaY: 0,
|
|
467
|
+
lastX: x,
|
|
468
|
+
lastY: y,
|
|
469
|
+
x,
|
|
470
|
+
y
|
|
471
|
+
};
|
|
472
|
+
} else {
|
|
473
|
+
return {
|
|
474
|
+
node,
|
|
475
|
+
deltaX: x - state.lastX,
|
|
476
|
+
deltaY: y - state.lastY,
|
|
477
|
+
lastX: state.lastX,
|
|
478
|
+
lastY: state.lastY,
|
|
479
|
+
x,
|
|
480
|
+
y
|
|
481
|
+
};
|
|
482
|
+
}
|
|
358
483
|
}
|
|
359
|
-
function
|
|
360
|
-
var
|
|
484
|
+
function createDraggableData(draggable, coreData) {
|
|
485
|
+
var scale = draggable.props.scale;
|
|
361
486
|
return {
|
|
362
|
-
node:
|
|
363
|
-
x:
|
|
364
|
-
y:
|
|
365
|
-
deltaX:
|
|
366
|
-
deltaY:
|
|
367
|
-
lastX:
|
|
368
|
-
lastY:
|
|
487
|
+
node: coreData.node,
|
|
488
|
+
x: draggable.state.x + coreData.deltaX / scale,
|
|
489
|
+
y: draggable.state.y + coreData.deltaY / scale,
|
|
490
|
+
deltaX: coreData.deltaX / scale,
|
|
491
|
+
deltaY: coreData.deltaY / scale,
|
|
492
|
+
lastX: draggable.state.x,
|
|
493
|
+
lastY: draggable.state.y
|
|
369
494
|
};
|
|
370
495
|
}
|
|
371
|
-
function
|
|
496
|
+
function cloneBounds(bounds) {
|
|
372
497
|
return {
|
|
373
|
-
left:
|
|
374
|
-
top:
|
|
375
|
-
right:
|
|
376
|
-
bottom:
|
|
498
|
+
left: bounds.left,
|
|
499
|
+
top: bounds.top,
|
|
500
|
+
right: bounds.right,
|
|
501
|
+
bottom: bounds.bottom
|
|
377
502
|
};
|
|
378
503
|
}
|
|
379
|
-
function
|
|
380
|
-
var
|
|
381
|
-
if (!
|
|
504
|
+
function findDOMNode(draggable) {
|
|
505
|
+
var node = draggable.findDOMNode();
|
|
506
|
+
if (!node) {
|
|
382
507
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
383
|
-
|
|
508
|
+
}
|
|
509
|
+
return node;
|
|
384
510
|
}
|
|
385
|
-
var
|
|
386
|
-
Object.defineProperty(
|
|
387
|
-
value:
|
|
511
|
+
var log$1 = {};
|
|
512
|
+
Object.defineProperty(log$1, "__esModule", {
|
|
513
|
+
value: true
|
|
388
514
|
});
|
|
389
|
-
|
|
390
|
-
function
|
|
391
|
-
}
|
|
392
|
-
var
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
var
|
|
396
|
-
function
|
|
397
|
-
return
|
|
398
|
-
}
|
|
399
|
-
function
|
|
400
|
-
var
|
|
515
|
+
log$1.default = log;
|
|
516
|
+
function log() {
|
|
517
|
+
}
|
|
518
|
+
var utils = {};
|
|
519
|
+
utils.__esModule = true;
|
|
520
|
+
utils.cloneElement = cloneElement;
|
|
521
|
+
var _react = _interopRequireDefault(React);
|
|
522
|
+
function _interopRequireDefault(obj) {
|
|
523
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
524
|
+
}
|
|
525
|
+
function ownKeys(object, enumerableOnly) {
|
|
526
|
+
var keys = Object.keys(object);
|
|
401
527
|
if (Object.getOwnPropertySymbols) {
|
|
402
|
-
var
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
528
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
529
|
+
if (enumerableOnly) {
|
|
530
|
+
symbols = symbols.filter(function(sym) {
|
|
531
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
keys.push.apply(keys, symbols);
|
|
406
535
|
}
|
|
407
|
-
return
|
|
408
|
-
}
|
|
409
|
-
function
|
|
410
|
-
for (var
|
|
411
|
-
var
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
})
|
|
536
|
+
return keys;
|
|
537
|
+
}
|
|
538
|
+
function _objectSpread(target) {
|
|
539
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
540
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
541
|
+
if (i % 2) {
|
|
542
|
+
ownKeys(Object(source), true).forEach(function(key) {
|
|
543
|
+
_defineProperty(target, key, source[key]);
|
|
544
|
+
});
|
|
545
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
546
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
547
|
+
} else {
|
|
548
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
549
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
550
|
+
});
|
|
551
|
+
}
|
|
417
552
|
}
|
|
418
|
-
return
|
|
553
|
+
return target;
|
|
419
554
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
555
|
+
function _defineProperty(obj, key, value) {
|
|
556
|
+
if (key in obj) {
|
|
557
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
558
|
+
} else {
|
|
559
|
+
obj[key] = value;
|
|
560
|
+
}
|
|
561
|
+
return obj;
|
|
422
562
|
}
|
|
423
|
-
function
|
|
424
|
-
|
|
563
|
+
function cloneElement(element, props) {
|
|
564
|
+
if (props.style && element.props.style) {
|
|
565
|
+
props.style = _objectSpread(_objectSpread({}, element.props.style), props.style);
|
|
566
|
+
}
|
|
567
|
+
if (props.className && element.props.className) {
|
|
568
|
+
props.className = element.props.className + " " + props.className;
|
|
569
|
+
}
|
|
570
|
+
return /* @__PURE__ */ _react.default.cloneElement(element, props);
|
|
425
571
|
}
|
|
426
572
|
export {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
573
|
+
getThemeVariantColor as a,
|
|
574
|
+
getVariantColor as b,
|
|
575
|
+
domFns as d,
|
|
576
|
+
getPaletteColor as g,
|
|
577
|
+
log$1 as l,
|
|
578
|
+
positionFns as p,
|
|
579
|
+
shims as s,
|
|
580
|
+
utils as u
|
|
435
581
|
};
|