@m4l/components 0.1.6 → 0.1.7
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/components/DynamicFilter/index.js +1 -1
- package/components/ScrollBar/index.js +2 -2
- package/index.js +2 -4
- package/lodash.js +23 -512
- package/package.json +3 -2
- package/react-draggable.js +4 -4
- package/react-resizable.js +4 -4
- package/react-splitter-layout.js +2 -2
- package/utils/index.js +1 -189
- package/can-use-dom.js +0 -3
- package/core-js.js +0 -2684
- package/juggle.js +0 -325
- package/simplebar.js +0 -850
- package/style.css +0 -1
|
@@ -19,7 +19,7 @@ import "../../react-lazy-load-image-component.js";
|
|
|
19
19
|
import "../Image/index.js";
|
|
20
20
|
import "../hook-form/RHFUpload/index.js";
|
|
21
21
|
import { I as IconButton } from "../mui_extended/IconButton/index.js";
|
|
22
|
-
import "
|
|
22
|
+
import "simplebar/dist/simplebar.min.css";
|
|
23
23
|
import { F as FilterButton } from "../mui_extended/Button/index.js";
|
|
24
24
|
import { L as LabelMemuItem, b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.js";
|
|
25
25
|
import { M as MenuPopover } from "../mui_extended/MenuPopover/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import SimpleBarReact from "simplebar-react";
|
|
2
2
|
import { styled, alpha } from "@mui/material/styles";
|
|
3
3
|
import { Box } from "@mui/material";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -7,7 +7,7 @@ const RootStyle = styled("div")(() => ({
|
|
|
7
7
|
height: "100%",
|
|
8
8
|
overflow: "hidden"
|
|
9
9
|
}));
|
|
10
|
-
const SimpleBarStyle = styled(
|
|
10
|
+
const SimpleBarStyle = styled(SimpleBarReact)(({
|
|
11
11
|
theme
|
|
12
12
|
}) => ({
|
|
13
13
|
maxHeight: "100%",
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/i
|
|
|
37
37
|
import "@mui/material/Button";
|
|
38
38
|
export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
39
39
|
export { D as DynamicFilter, d as defaultDynamicFilterDictionary, g as getDynamicFilterComponentsDictionary } from "./components/DynamicFilter/index.js";
|
|
40
|
-
import "
|
|
40
|
+
import "simplebar/dist/simplebar.min.css";
|
|
41
41
|
export { L as LanguagePopover } from "./components/LanguagePopover/index.js";
|
|
42
42
|
import "./react-draggable.js";
|
|
43
43
|
export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialogComponentsDictionary } from "./components/ModalDialog/index.js";
|
|
@@ -81,10 +81,8 @@ import "react-dom";
|
|
|
81
81
|
import "prop-types";
|
|
82
82
|
import "clsx";
|
|
83
83
|
import "./utils/index.js";
|
|
84
|
-
import "./juggle.js";
|
|
85
84
|
import "./react-data-grid.js";
|
|
85
|
+
import "simplebar-react";
|
|
86
86
|
import "yup";
|
|
87
|
-
import "./core-js.js";
|
|
88
|
-
import "./can-use-dom.js";
|
|
89
87
|
import "./react-resizable.js";
|
|
90
88
|
import "react-helmet-async";
|
package/lodash.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { c as commonjsGlobal } from "./commonjs.js";
|
|
2
|
-
var freeGlobal$
|
|
3
|
-
var _freeGlobal = freeGlobal$
|
|
4
|
-
var freeGlobal
|
|
5
|
-
var freeSelf
|
|
6
|
-
var root$
|
|
7
|
-
var _root = root$
|
|
8
|
-
var root
|
|
9
|
-
var Symbol$3 = root
|
|
2
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
3
|
+
var _freeGlobal = freeGlobal$1;
|
|
4
|
+
var freeGlobal = _freeGlobal;
|
|
5
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
6
|
+
var root$1 = freeGlobal || freeSelf || Function("return this")();
|
|
7
|
+
var _root = root$1;
|
|
8
|
+
var root = _root;
|
|
9
|
+
var Symbol$3 = root.Symbol;
|
|
10
10
|
var _Symbol = Symbol$3;
|
|
11
11
|
var Symbol$2 = _Symbol;
|
|
12
|
-
var objectProto$
|
|
13
|
-
var hasOwnProperty
|
|
14
|
-
var nativeObjectToString$1 = objectProto$
|
|
12
|
+
var objectProto$1 = Object.prototype;
|
|
13
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
14
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
15
15
|
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
16
16
|
function getRawTag$1(value) {
|
|
17
|
-
var isOwn = hasOwnProperty
|
|
17
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
18
18
|
try {
|
|
19
19
|
value[symToStringTag$1] = void 0;
|
|
20
20
|
var unmasked = true;
|
|
@@ -31,521 +31,32 @@ function getRawTag$1(value) {
|
|
|
31
31
|
return result;
|
|
32
32
|
}
|
|
33
33
|
var _getRawTag = getRawTag$1;
|
|
34
|
-
var objectProto
|
|
35
|
-
var nativeObjectToString = objectProto
|
|
36
|
-
function objectToString$
|
|
34
|
+
var objectProto = Object.prototype;
|
|
35
|
+
var nativeObjectToString = objectProto.toString;
|
|
36
|
+
function objectToString$1(value) {
|
|
37
37
|
return nativeObjectToString.call(value);
|
|
38
38
|
}
|
|
39
|
-
var _objectToString = objectToString$
|
|
40
|
-
var Symbol$1 = _Symbol, getRawTag = _getRawTag, objectToString
|
|
39
|
+
var _objectToString = objectToString$1;
|
|
40
|
+
var Symbol$1 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
41
41
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
42
42
|
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
43
43
|
function baseGetTag$1(value) {
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value === void 0 ? undefinedTag : nullTag;
|
|
46
46
|
}
|
|
47
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString
|
|
47
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
48
48
|
}
|
|
49
49
|
var _baseGetTag = baseGetTag$1;
|
|
50
50
|
var isArray$1 = Array.isArray;
|
|
51
51
|
var isArray_1 = isArray$1;
|
|
52
|
-
function isObjectLike$
|
|
52
|
+
function isObjectLike$1(value) {
|
|
53
53
|
return value != null && typeof value == "object";
|
|
54
54
|
}
|
|
55
|
-
var isObjectLike_1 = isObjectLike$
|
|
56
|
-
var baseGetTag = _baseGetTag, isArray = isArray_1, isObjectLike
|
|
55
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
56
|
+
var baseGetTag = _baseGetTag, isArray = isArray_1, isObjectLike = isObjectLike_1;
|
|
57
57
|
var stringTag = "[object String]";
|
|
58
58
|
function isString(value) {
|
|
59
|
-
return typeof value == "string" || !isArray(value) && isObjectLike
|
|
59
|
+
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
60
60
|
}
|
|
61
61
|
var isString_1 = isString;
|
|
62
|
-
|
|
63
|
-
var NAN$1 = 0 / 0;
|
|
64
|
-
var symbolTag$1 = "[object Symbol]";
|
|
65
|
-
var reTrim$1 = /^\s+|\s+$/g;
|
|
66
|
-
var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
|
|
67
|
-
var reIsBinary$1 = /^0b[01]+$/i;
|
|
68
|
-
var reIsOctal$1 = /^0o[0-7]+$/i;
|
|
69
|
-
var freeParseInt$1 = parseInt;
|
|
70
|
-
var freeGlobal$2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
71
|
-
var freeSelf$2 = typeof self == "object" && self && self.Object === Object && self;
|
|
72
|
-
var root$2 = freeGlobal$2 || freeSelf$2 || Function("return this")();
|
|
73
|
-
var objectProto$2 = Object.prototype;
|
|
74
|
-
var objectToString$2 = objectProto$2.toString;
|
|
75
|
-
var nativeMax$1 = Math.max, nativeMin$1 = Math.min;
|
|
76
|
-
var now$1 = function() {
|
|
77
|
-
return root$2.Date.now();
|
|
78
|
-
};
|
|
79
|
-
function debounce$1(func, wait, options) {
|
|
80
|
-
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
81
|
-
if (typeof func != "function") {
|
|
82
|
-
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
83
|
-
}
|
|
84
|
-
wait = toNumber$1(wait) || 0;
|
|
85
|
-
if (isObject$2(options)) {
|
|
86
|
-
leading = !!options.leading;
|
|
87
|
-
maxing = "maxWait" in options;
|
|
88
|
-
maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
|
|
89
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
90
|
-
}
|
|
91
|
-
function invokeFunc(time) {
|
|
92
|
-
var args = lastArgs, thisArg = lastThis;
|
|
93
|
-
lastArgs = lastThis = void 0;
|
|
94
|
-
lastInvokeTime = time;
|
|
95
|
-
result = func.apply(thisArg, args);
|
|
96
|
-
return result;
|
|
97
|
-
}
|
|
98
|
-
function leadingEdge(time) {
|
|
99
|
-
lastInvokeTime = time;
|
|
100
|
-
timerId = setTimeout(timerExpired, wait);
|
|
101
|
-
return leading ? invokeFunc(time) : result;
|
|
102
|
-
}
|
|
103
|
-
function remainingWait(time) {
|
|
104
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
|
|
105
|
-
return maxing ? nativeMin$1(result2, maxWait - timeSinceLastInvoke) : result2;
|
|
106
|
-
}
|
|
107
|
-
function shouldInvoke(time) {
|
|
108
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
109
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
110
|
-
}
|
|
111
|
-
function timerExpired() {
|
|
112
|
-
var time = now$1();
|
|
113
|
-
if (shouldInvoke(time)) {
|
|
114
|
-
return trailingEdge(time);
|
|
115
|
-
}
|
|
116
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
117
|
-
}
|
|
118
|
-
function trailingEdge(time) {
|
|
119
|
-
timerId = void 0;
|
|
120
|
-
if (trailing && lastArgs) {
|
|
121
|
-
return invokeFunc(time);
|
|
122
|
-
}
|
|
123
|
-
lastArgs = lastThis = void 0;
|
|
124
|
-
return result;
|
|
125
|
-
}
|
|
126
|
-
function cancel() {
|
|
127
|
-
if (timerId !== void 0) {
|
|
128
|
-
clearTimeout(timerId);
|
|
129
|
-
}
|
|
130
|
-
lastInvokeTime = 0;
|
|
131
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
132
|
-
}
|
|
133
|
-
function flush() {
|
|
134
|
-
return timerId === void 0 ? result : trailingEdge(now$1());
|
|
135
|
-
}
|
|
136
|
-
function debounced() {
|
|
137
|
-
var time = now$1(), isInvoking = shouldInvoke(time);
|
|
138
|
-
lastArgs = arguments;
|
|
139
|
-
lastThis = this;
|
|
140
|
-
lastCallTime = time;
|
|
141
|
-
if (isInvoking) {
|
|
142
|
-
if (timerId === void 0) {
|
|
143
|
-
return leadingEdge(lastCallTime);
|
|
144
|
-
}
|
|
145
|
-
if (maxing) {
|
|
146
|
-
timerId = setTimeout(timerExpired, wait);
|
|
147
|
-
return invokeFunc(lastCallTime);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
if (timerId === void 0) {
|
|
151
|
-
timerId = setTimeout(timerExpired, wait);
|
|
152
|
-
}
|
|
153
|
-
return result;
|
|
154
|
-
}
|
|
155
|
-
debounced.cancel = cancel;
|
|
156
|
-
debounced.flush = flush;
|
|
157
|
-
return debounced;
|
|
158
|
-
}
|
|
159
|
-
function throttle(func, wait, options) {
|
|
160
|
-
var leading = true, trailing = true;
|
|
161
|
-
if (typeof func != "function") {
|
|
162
|
-
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
163
|
-
}
|
|
164
|
-
if (isObject$2(options)) {
|
|
165
|
-
leading = "leading" in options ? !!options.leading : leading;
|
|
166
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
167
|
-
}
|
|
168
|
-
return debounce$1(func, wait, {
|
|
169
|
-
"leading": leading,
|
|
170
|
-
"maxWait": wait,
|
|
171
|
-
"trailing": trailing
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
function isObject$2(value) {
|
|
175
|
-
var type = typeof value;
|
|
176
|
-
return !!value && (type == "object" || type == "function");
|
|
177
|
-
}
|
|
178
|
-
function isObjectLike$1(value) {
|
|
179
|
-
return !!value && typeof value == "object";
|
|
180
|
-
}
|
|
181
|
-
function isSymbol$1(value) {
|
|
182
|
-
return typeof value == "symbol" || isObjectLike$1(value) && objectToString$2.call(value) == symbolTag$1;
|
|
183
|
-
}
|
|
184
|
-
function toNumber$1(value) {
|
|
185
|
-
if (typeof value == "number") {
|
|
186
|
-
return value;
|
|
187
|
-
}
|
|
188
|
-
if (isSymbol$1(value)) {
|
|
189
|
-
return NAN$1;
|
|
190
|
-
}
|
|
191
|
-
if (isObject$2(value)) {
|
|
192
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
193
|
-
value = isObject$2(other) ? other + "" : other;
|
|
194
|
-
}
|
|
195
|
-
if (typeof value != "string") {
|
|
196
|
-
return value === 0 ? value : +value;
|
|
197
|
-
}
|
|
198
|
-
value = value.replace(reTrim$1, "");
|
|
199
|
-
var isBinary = reIsBinary$1.test(value);
|
|
200
|
-
return isBinary || reIsOctal$1.test(value) ? freeParseInt$1(value.slice(2), isBinary ? 2 : 8) : reIsBadHex$1.test(value) ? NAN$1 : +value;
|
|
201
|
-
}
|
|
202
|
-
var lodash_throttle = throttle;
|
|
203
|
-
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
204
|
-
var NAN = 0 / 0;
|
|
205
|
-
var symbolTag = "[object Symbol]";
|
|
206
|
-
var reTrim = /^\s+|\s+$/g;
|
|
207
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
208
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
209
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
210
|
-
var freeParseInt = parseInt;
|
|
211
|
-
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
212
|
-
var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
|
|
213
|
-
var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
|
|
214
|
-
var objectProto$1 = Object.prototype;
|
|
215
|
-
var objectToString$1 = objectProto$1.toString;
|
|
216
|
-
var nativeMax = Math.max, nativeMin = Math.min;
|
|
217
|
-
var now = function() {
|
|
218
|
-
return root$1.Date.now();
|
|
219
|
-
};
|
|
220
|
-
function debounce(func, wait, options) {
|
|
221
|
-
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
222
|
-
if (typeof func != "function") {
|
|
223
|
-
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
224
|
-
}
|
|
225
|
-
wait = toNumber(wait) || 0;
|
|
226
|
-
if (isObject$1(options)) {
|
|
227
|
-
leading = !!options.leading;
|
|
228
|
-
maxing = "maxWait" in options;
|
|
229
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
230
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
231
|
-
}
|
|
232
|
-
function invokeFunc(time) {
|
|
233
|
-
var args = lastArgs, thisArg = lastThis;
|
|
234
|
-
lastArgs = lastThis = void 0;
|
|
235
|
-
lastInvokeTime = time;
|
|
236
|
-
result = func.apply(thisArg, args);
|
|
237
|
-
return result;
|
|
238
|
-
}
|
|
239
|
-
function leadingEdge(time) {
|
|
240
|
-
lastInvokeTime = time;
|
|
241
|
-
timerId = setTimeout(timerExpired, wait);
|
|
242
|
-
return leading ? invokeFunc(time) : result;
|
|
243
|
-
}
|
|
244
|
-
function remainingWait(time) {
|
|
245
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
|
|
246
|
-
return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
|
|
247
|
-
}
|
|
248
|
-
function shouldInvoke(time) {
|
|
249
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
250
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
251
|
-
}
|
|
252
|
-
function timerExpired() {
|
|
253
|
-
var time = now();
|
|
254
|
-
if (shouldInvoke(time)) {
|
|
255
|
-
return trailingEdge(time);
|
|
256
|
-
}
|
|
257
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
258
|
-
}
|
|
259
|
-
function trailingEdge(time) {
|
|
260
|
-
timerId = void 0;
|
|
261
|
-
if (trailing && lastArgs) {
|
|
262
|
-
return invokeFunc(time);
|
|
263
|
-
}
|
|
264
|
-
lastArgs = lastThis = void 0;
|
|
265
|
-
return result;
|
|
266
|
-
}
|
|
267
|
-
function cancel() {
|
|
268
|
-
if (timerId !== void 0) {
|
|
269
|
-
clearTimeout(timerId);
|
|
270
|
-
}
|
|
271
|
-
lastInvokeTime = 0;
|
|
272
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
273
|
-
}
|
|
274
|
-
function flush() {
|
|
275
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
|
276
|
-
}
|
|
277
|
-
function debounced() {
|
|
278
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
279
|
-
lastArgs = arguments;
|
|
280
|
-
lastThis = this;
|
|
281
|
-
lastCallTime = time;
|
|
282
|
-
if (isInvoking) {
|
|
283
|
-
if (timerId === void 0) {
|
|
284
|
-
return leadingEdge(lastCallTime);
|
|
285
|
-
}
|
|
286
|
-
if (maxing) {
|
|
287
|
-
timerId = setTimeout(timerExpired, wait);
|
|
288
|
-
return invokeFunc(lastCallTime);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (timerId === void 0) {
|
|
292
|
-
timerId = setTimeout(timerExpired, wait);
|
|
293
|
-
}
|
|
294
|
-
return result;
|
|
295
|
-
}
|
|
296
|
-
debounced.cancel = cancel;
|
|
297
|
-
debounced.flush = flush;
|
|
298
|
-
return debounced;
|
|
299
|
-
}
|
|
300
|
-
function isObject$1(value) {
|
|
301
|
-
var type = typeof value;
|
|
302
|
-
return !!value && (type == "object" || type == "function");
|
|
303
|
-
}
|
|
304
|
-
function isObjectLike(value) {
|
|
305
|
-
return !!value && typeof value == "object";
|
|
306
|
-
}
|
|
307
|
-
function isSymbol(value) {
|
|
308
|
-
return typeof value == "symbol" || isObjectLike(value) && objectToString$1.call(value) == symbolTag;
|
|
309
|
-
}
|
|
310
|
-
function toNumber(value) {
|
|
311
|
-
if (typeof value == "number") {
|
|
312
|
-
return value;
|
|
313
|
-
}
|
|
314
|
-
if (isSymbol(value)) {
|
|
315
|
-
return NAN;
|
|
316
|
-
}
|
|
317
|
-
if (isObject$1(value)) {
|
|
318
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
319
|
-
value = isObject$1(other) ? other + "" : other;
|
|
320
|
-
}
|
|
321
|
-
if (typeof value != "string") {
|
|
322
|
-
return value === 0 ? value : +value;
|
|
323
|
-
}
|
|
324
|
-
value = value.replace(reTrim, "");
|
|
325
|
-
var isBinary = reIsBinary.test(value);
|
|
326
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
327
|
-
}
|
|
328
|
-
var lodash_debounce = debounce;
|
|
329
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
330
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
331
|
-
var funcTag = "[object Function]", genTag = "[object GeneratorFunction]";
|
|
332
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
333
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
334
|
-
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
335
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
336
|
-
var root = freeGlobal || freeSelf || Function("return this")();
|
|
337
|
-
function getValue(object, key) {
|
|
338
|
-
return object == null ? void 0 : object[key];
|
|
339
|
-
}
|
|
340
|
-
function isHostObject(value) {
|
|
341
|
-
var result = false;
|
|
342
|
-
if (value != null && typeof value.toString != "function") {
|
|
343
|
-
try {
|
|
344
|
-
result = !!(value + "");
|
|
345
|
-
} catch (e) {
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return result;
|
|
349
|
-
}
|
|
350
|
-
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
|
|
351
|
-
var coreJsData = root["__core-js_shared__"];
|
|
352
|
-
var maskSrcKey = function() {
|
|
353
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
354
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
355
|
-
}();
|
|
356
|
-
var funcToString = funcProto.toString;
|
|
357
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
358
|
-
var objectToString = objectProto.toString;
|
|
359
|
-
var reIsNative = RegExp(
|
|
360
|
-
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
361
|
-
);
|
|
362
|
-
var splice = arrayProto.splice;
|
|
363
|
-
var Map = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
|
|
364
|
-
function Hash(entries) {
|
|
365
|
-
var index = -1, length = entries ? entries.length : 0;
|
|
366
|
-
this.clear();
|
|
367
|
-
while (++index < length) {
|
|
368
|
-
var entry = entries[index];
|
|
369
|
-
this.set(entry[0], entry[1]);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
function hashClear() {
|
|
373
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
374
|
-
}
|
|
375
|
-
function hashDelete(key) {
|
|
376
|
-
return this.has(key) && delete this.__data__[key];
|
|
377
|
-
}
|
|
378
|
-
function hashGet(key) {
|
|
379
|
-
var data = this.__data__;
|
|
380
|
-
if (nativeCreate) {
|
|
381
|
-
var result = data[key];
|
|
382
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
383
|
-
}
|
|
384
|
-
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
385
|
-
}
|
|
386
|
-
function hashHas(key) {
|
|
387
|
-
var data = this.__data__;
|
|
388
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
389
|
-
}
|
|
390
|
-
function hashSet(key, value) {
|
|
391
|
-
var data = this.__data__;
|
|
392
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
393
|
-
return this;
|
|
394
|
-
}
|
|
395
|
-
Hash.prototype.clear = hashClear;
|
|
396
|
-
Hash.prototype["delete"] = hashDelete;
|
|
397
|
-
Hash.prototype.get = hashGet;
|
|
398
|
-
Hash.prototype.has = hashHas;
|
|
399
|
-
Hash.prototype.set = hashSet;
|
|
400
|
-
function ListCache(entries) {
|
|
401
|
-
var index = -1, length = entries ? entries.length : 0;
|
|
402
|
-
this.clear();
|
|
403
|
-
while (++index < length) {
|
|
404
|
-
var entry = entries[index];
|
|
405
|
-
this.set(entry[0], entry[1]);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function listCacheClear() {
|
|
409
|
-
this.__data__ = [];
|
|
410
|
-
}
|
|
411
|
-
function listCacheDelete(key) {
|
|
412
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
413
|
-
if (index < 0) {
|
|
414
|
-
return false;
|
|
415
|
-
}
|
|
416
|
-
var lastIndex = data.length - 1;
|
|
417
|
-
if (index == lastIndex) {
|
|
418
|
-
data.pop();
|
|
419
|
-
} else {
|
|
420
|
-
splice.call(data, index, 1);
|
|
421
|
-
}
|
|
422
|
-
return true;
|
|
423
|
-
}
|
|
424
|
-
function listCacheGet(key) {
|
|
425
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
426
|
-
return index < 0 ? void 0 : data[index][1];
|
|
427
|
-
}
|
|
428
|
-
function listCacheHas(key) {
|
|
429
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
430
|
-
}
|
|
431
|
-
function listCacheSet(key, value) {
|
|
432
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
433
|
-
if (index < 0) {
|
|
434
|
-
data.push([key, value]);
|
|
435
|
-
} else {
|
|
436
|
-
data[index][1] = value;
|
|
437
|
-
}
|
|
438
|
-
return this;
|
|
439
|
-
}
|
|
440
|
-
ListCache.prototype.clear = listCacheClear;
|
|
441
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
442
|
-
ListCache.prototype.get = listCacheGet;
|
|
443
|
-
ListCache.prototype.has = listCacheHas;
|
|
444
|
-
ListCache.prototype.set = listCacheSet;
|
|
445
|
-
function MapCache(entries) {
|
|
446
|
-
var index = -1, length = entries ? entries.length : 0;
|
|
447
|
-
this.clear();
|
|
448
|
-
while (++index < length) {
|
|
449
|
-
var entry = entries[index];
|
|
450
|
-
this.set(entry[0], entry[1]);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function mapCacheClear() {
|
|
454
|
-
this.__data__ = {
|
|
455
|
-
"hash": new Hash(),
|
|
456
|
-
"map": new (Map || ListCache)(),
|
|
457
|
-
"string": new Hash()
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
function mapCacheDelete(key) {
|
|
461
|
-
return getMapData(this, key)["delete"](key);
|
|
462
|
-
}
|
|
463
|
-
function mapCacheGet(key) {
|
|
464
|
-
return getMapData(this, key).get(key);
|
|
465
|
-
}
|
|
466
|
-
function mapCacheHas(key) {
|
|
467
|
-
return getMapData(this, key).has(key);
|
|
468
|
-
}
|
|
469
|
-
function mapCacheSet(key, value) {
|
|
470
|
-
getMapData(this, key).set(key, value);
|
|
471
|
-
return this;
|
|
472
|
-
}
|
|
473
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
474
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
475
|
-
MapCache.prototype.get = mapCacheGet;
|
|
476
|
-
MapCache.prototype.has = mapCacheHas;
|
|
477
|
-
MapCache.prototype.set = mapCacheSet;
|
|
478
|
-
function assocIndexOf(array, key) {
|
|
479
|
-
var length = array.length;
|
|
480
|
-
while (length--) {
|
|
481
|
-
if (eq(array[length][0], key)) {
|
|
482
|
-
return length;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
return -1;
|
|
486
|
-
}
|
|
487
|
-
function baseIsNative(value) {
|
|
488
|
-
if (!isObject(value) || isMasked(value)) {
|
|
489
|
-
return false;
|
|
490
|
-
}
|
|
491
|
-
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
492
|
-
return pattern.test(toSource(value));
|
|
493
|
-
}
|
|
494
|
-
function getMapData(map, key) {
|
|
495
|
-
var data = map.__data__;
|
|
496
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
497
|
-
}
|
|
498
|
-
function getNative(object, key) {
|
|
499
|
-
var value = getValue(object, key);
|
|
500
|
-
return baseIsNative(value) ? value : void 0;
|
|
501
|
-
}
|
|
502
|
-
function isKeyable(value) {
|
|
503
|
-
var type = typeof value;
|
|
504
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
505
|
-
}
|
|
506
|
-
function isMasked(func) {
|
|
507
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
508
|
-
}
|
|
509
|
-
function toSource(func) {
|
|
510
|
-
if (func != null) {
|
|
511
|
-
try {
|
|
512
|
-
return funcToString.call(func);
|
|
513
|
-
} catch (e) {
|
|
514
|
-
}
|
|
515
|
-
try {
|
|
516
|
-
return func + "";
|
|
517
|
-
} catch (e) {
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
return "";
|
|
521
|
-
}
|
|
522
|
-
function memoize(func, resolver) {
|
|
523
|
-
if (typeof func != "function" || resolver && typeof resolver != "function") {
|
|
524
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
525
|
-
}
|
|
526
|
-
var memoized = function() {
|
|
527
|
-
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
528
|
-
if (cache.has(key)) {
|
|
529
|
-
return cache.get(key);
|
|
530
|
-
}
|
|
531
|
-
var result = func.apply(this, args);
|
|
532
|
-
memoized.cache = cache.set(key, result);
|
|
533
|
-
return result;
|
|
534
|
-
};
|
|
535
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
536
|
-
return memoized;
|
|
537
|
-
}
|
|
538
|
-
memoize.Cache = MapCache;
|
|
539
|
-
function eq(value, other) {
|
|
540
|
-
return value === other || value !== value && other !== other;
|
|
541
|
-
}
|
|
542
|
-
function isFunction(value) {
|
|
543
|
-
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
544
|
-
return tag == funcTag || tag == genTag;
|
|
545
|
-
}
|
|
546
|
-
function isObject(value) {
|
|
547
|
-
var type = typeof value;
|
|
548
|
-
return !!value && (type == "object" || type == "function");
|
|
549
|
-
}
|
|
550
|
-
var lodash_memoize = memoize;
|
|
551
|
-
export { lodash_debounce as a, lodash_memoize as b, isString_1 as i, lodash_throttle as l };
|
|
62
|
+
export { isString_1 as i };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@m4l/core": "*",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"react-helmet-async": "^1.3.0",
|
|
9
9
|
"react-hook-form": "^7.33.1",
|
|
10
10
|
"react-router-dom": "^6.3.0",
|
|
11
|
-
"yup": "^0.32.11"
|
|
11
|
+
"yup": "^0.32.11",
|
|
12
|
+
"simplebar-react": "2.4.1"
|
|
12
13
|
},
|
|
13
14
|
"peerDependencies": {
|
|
14
15
|
"@mui/lab": "^5.0.0-alpha.89",
|
package/react-draggable.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
|
-
import
|
|
2
|
+
import require$$1 from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import {
|
|
5
|
+
import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.js";
|
|
6
6
|
var cjs = { exports: {} };
|
|
7
7
|
var Draggable$2 = {};
|
|
8
8
|
var DraggableCore$2 = {};
|
|
@@ -19,7 +19,7 @@ Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
|
19
19
|
});
|
|
20
20
|
DraggableCore$2.default = void 0;
|
|
21
21
|
var React = _interopRequireWildcard(require$$0);
|
|
22
|
-
var _propTypes = _interopRequireDefault(
|
|
22
|
+
var _propTypes = _interopRequireDefault(require$$1);
|
|
23
23
|
var _reactDom = _interopRequireDefault(require$$2);
|
|
24
24
|
var _domFns = domFns;
|
|
25
25
|
var _positionFns = positionFns;
|
|
@@ -481,7 +481,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
|
|
|
481
481
|
});
|
|
482
482
|
exports.default = void 0;
|
|
483
483
|
var React2 = _interopRequireWildcard2(require$$0);
|
|
484
|
-
var _propTypes2 = _interopRequireDefault2(
|
|
484
|
+
var _propTypes2 = _interopRequireDefault2(require$$1);
|
|
485
485
|
var _reactDom2 = _interopRequireDefault2(require$$2);
|
|
486
486
|
var _clsx2 = _interopRequireDefault2(clsx);
|
|
487
487
|
var _domFns2 = domFns;
|
package/react-resizable.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
2
|
import { c as cjs } from "./react-draggable.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { u as utils } from "./utils/index.js";
|
|
4
|
+
import require$$1 from "prop-types";
|
|
5
5
|
var reactResizable = { exports: {} };
|
|
6
6
|
var Resizable$1 = {};
|
|
7
7
|
var propTypes = {};
|
|
8
8
|
propTypes.__esModule = true;
|
|
9
9
|
propTypes.resizableProps = void 0;
|
|
10
|
-
var _propTypes$2 = _interopRequireDefault$1(
|
|
10
|
+
var _propTypes$2 = _interopRequireDefault$1(require$$1);
|
|
11
11
|
function _interopRequireDefault$1(obj) {
|
|
12
12
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
13
13
|
}
|
|
@@ -336,7 +336,7 @@ var ResizableBox$2 = {};
|
|
|
336
336
|
ResizableBox$2.__esModule = true;
|
|
337
337
|
ResizableBox$2.default = void 0;
|
|
338
338
|
var React = _interopRequireWildcard(require$$0);
|
|
339
|
-
var _propTypes = _interopRequireDefault(
|
|
339
|
+
var _propTypes = _interopRequireDefault(require$$1);
|
|
340
340
|
var _Resizable = _interopRequireDefault(Resizable$1);
|
|
341
341
|
var _propTypes2 = propTypes;
|
|
342
342
|
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|