@m4l/components 0.0.6 → 0.0.9
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/dist/can-use-dom.js +3 -0
- package/dist/components/DataGrid/components/Actions/types.d.ts +1 -1
- package/dist/components/DataGrid/contexts/BaseContext/types.d.ts +1 -1
- package/dist/components/DataGrid/index.js +5 -6
- package/dist/components/DataGrid/types.d.ts +1 -1
- package/dist/components/FormActions/types.d.ts +1 -1
- package/dist/components/ModalDialog/components/Header/types.d.ts +1 -1
- package/dist/components/ModalDialog/index.js +0 -5
- package/dist/components/NoItemSelected/dictionary.d.ts +3 -0
- package/dist/components/NoItemSelected/index.d.ts +2 -0
- package/dist/components/NoItemSelected/index.js +76 -0
- package/dist/components/NoItemSelected/styles.d.ts +5 -0
- package/dist/components/NoItemSelected/types.d.ts +5 -0
- package/dist/components/PropertyValue/index.d.ts +3 -0
- package/dist/components/PropertyValue/index.js +108 -0
- package/dist/components/PropertyValue/skeleton.d.ts +2 -0
- package/dist/components/PropertyValue/styles.d.ts +6 -0
- package/dist/components/PropertyValue/types.d.ts +11 -0
- package/dist/components/ScrollBar/index.d.ts +3 -0
- package/dist/components/ScrollBar/index.js +60 -0
- package/dist/components/ScrollBar/styles.d.ts +6 -0
- package/dist/components/ScrollBar/types.d.ts +7 -0
- package/dist/components/hook-form/FormProvider/components/FormActions/index.d.ts +3 -0
- package/dist/components/hook-form/FormProvider/components/FormActions/skeleton.d.ts +2 -0
- package/dist/components/hook-form/FormProvider/components/FormActions/styles.d.ts +3 -0
- package/dist/components/hook-form/FormProvider/components/FormActions/types.d.ts +4 -0
- package/dist/components/hook-form/FormProvider/index.d.ts +3 -0
- package/dist/components/hook-form/FormProvider/index.js +162 -0
- package/dist/components/hook-form/FormProvider/styles.d.ts +2 -0
- package/dist/components/hook-form/FormProvider/types.d.ts +10 -0
- package/dist/components/hook-form/RHFAutocompleteAsync/index.d.ts +4 -0
- package/dist/components/hook-form/RHFAutocompleteAsync/index.js +184 -0
- package/dist/components/hook-form/RHFAutocompleteAsync/styles.d.ts +4 -0
- package/dist/components/hook-form/RHFAutocompleteAsync/types.d.ts +17 -0
- package/dist/components/hook-form/RHFCheckbox/index.d.ts +3 -0
- package/dist/components/hook-form/RHFCheckbox/index.js +41 -0
- package/dist/components/hook-form/RHFCheckbox/skeleton.d.ts +2 -0
- package/dist/components/hook-form/RHFCheckbox/styles.d.ts +2 -0
- package/dist/components/hook-form/RHFCheckbox/types.d.ts +10 -0
- package/dist/components/hook-form/RHFMultiCheckbox/index.d.ts +3 -0
- package/dist/components/hook-form/RHFMultiCheckbox/index.js +32 -0
- package/dist/components/hook-form/RHFMultiCheckbox/types.d.ts +10 -0
- package/dist/components/hook-form/RHFRadioGroup.d.ts +9 -0
- package/dist/components/hook-form/RHFRadioGroup.js +41 -0
- package/dist/components/hook-form/RHFSelect.d.ts +8 -0
- package/dist/components/hook-form/RHFSelect.js +34 -0
- package/dist/components/hook-form/RHFTextField/index.d.ts +4 -0
- package/dist/components/hook-form/RHFTextField/index.js +57 -0
- package/dist/components/hook-form/RHFTextField/styles.d.ts +2 -0
- package/dist/components/hook-form/RHFTextField/types.d.ts +9 -0
- package/dist/components/hook-form/index.d.ts +7 -0
- package/dist/components/index.d.ts +12 -5
- package/dist/components/mui_extended/Accordion/index.d.ts +3 -0
- package/dist/components/mui_extended/Accordion/index.js +45 -0
- package/dist/components/mui_extended/Accordion/types.d.ts +11 -0
- package/dist/components/mui_extended/BoxIcon/index.js +1 -1
- package/dist/components/mui_extended/Breadcrumbs/index.d.ts +2 -1
- package/dist/components/mui_extended/MenuPopover/index.d.ts +2 -1
- package/dist/components/mui_extended/Tab/index.d.ts +2 -0
- package/dist/components/mui_extended/Tab/index.js +29 -0
- package/dist/components/mui_extended/Tab/styles.d.ts +2 -0
- package/dist/components/mui_extended/index.d.ts +8 -6
- package/dist/contexts/ModalContext/index.js +1 -1
- package/dist/core-js.js +2645 -0
- package/dist/index.js +35 -18
- package/dist/juggle.js +511 -0
- package/dist/lodash.js +489 -0
- package/dist/node_modules.js +54 -0
- package/dist/react-draggable.js +3 -3
- package/dist/react-resizable.js +3 -3
- package/dist/react-splitter-layout.js +2 -2
- package/dist/simplebar.js +849 -0
- package/dist/vendor.js +26 -14
- package/package.json +7 -2
package/dist/lodash.js
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { c as commonjsGlobal } from "./commonjs.js";
|
|
2
|
+
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
3
|
+
var NAN$1 = 0 / 0;
|
|
4
|
+
var symbolTag$1 = "[object Symbol]";
|
|
5
|
+
var reTrim$1 = /^\s+|\s+$/g;
|
|
6
|
+
var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
|
|
7
|
+
var reIsBinary$1 = /^0b[01]+$/i;
|
|
8
|
+
var reIsOctal$1 = /^0o[0-7]+$/i;
|
|
9
|
+
var freeParseInt$1 = parseInt;
|
|
10
|
+
var freeGlobal$2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
11
|
+
var freeSelf$2 = typeof self == "object" && self && self.Object === Object && self;
|
|
12
|
+
var root$2 = freeGlobal$2 || freeSelf$2 || Function("return this")();
|
|
13
|
+
var objectProto$2 = Object.prototype;
|
|
14
|
+
var objectToString$2 = objectProto$2.toString;
|
|
15
|
+
var nativeMax$1 = Math.max, nativeMin$1 = Math.min;
|
|
16
|
+
var now$1 = function() {
|
|
17
|
+
return root$2.Date.now();
|
|
18
|
+
};
|
|
19
|
+
function debounce$1(func, wait, options) {
|
|
20
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
21
|
+
if (typeof func != "function") {
|
|
22
|
+
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
23
|
+
}
|
|
24
|
+
wait = toNumber$1(wait) || 0;
|
|
25
|
+
if (isObject$2(options)) {
|
|
26
|
+
leading = !!options.leading;
|
|
27
|
+
maxing = "maxWait" in options;
|
|
28
|
+
maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
|
|
29
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
30
|
+
}
|
|
31
|
+
function invokeFunc(time) {
|
|
32
|
+
var args = lastArgs, thisArg = lastThis;
|
|
33
|
+
lastArgs = lastThis = void 0;
|
|
34
|
+
lastInvokeTime = time;
|
|
35
|
+
result = func.apply(thisArg, args);
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
function leadingEdge(time) {
|
|
39
|
+
lastInvokeTime = time;
|
|
40
|
+
timerId = setTimeout(timerExpired, wait);
|
|
41
|
+
return leading ? invokeFunc(time) : result;
|
|
42
|
+
}
|
|
43
|
+
function remainingWait(time) {
|
|
44
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
|
|
45
|
+
return maxing ? nativeMin$1(result2, maxWait - timeSinceLastInvoke) : result2;
|
|
46
|
+
}
|
|
47
|
+
function shouldInvoke(time) {
|
|
48
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
49
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
50
|
+
}
|
|
51
|
+
function timerExpired() {
|
|
52
|
+
var time = now$1();
|
|
53
|
+
if (shouldInvoke(time)) {
|
|
54
|
+
return trailingEdge(time);
|
|
55
|
+
}
|
|
56
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
57
|
+
}
|
|
58
|
+
function trailingEdge(time) {
|
|
59
|
+
timerId = void 0;
|
|
60
|
+
if (trailing && lastArgs) {
|
|
61
|
+
return invokeFunc(time);
|
|
62
|
+
}
|
|
63
|
+
lastArgs = lastThis = void 0;
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
function cancel() {
|
|
67
|
+
if (timerId !== void 0) {
|
|
68
|
+
clearTimeout(timerId);
|
|
69
|
+
}
|
|
70
|
+
lastInvokeTime = 0;
|
|
71
|
+
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
72
|
+
}
|
|
73
|
+
function flush() {
|
|
74
|
+
return timerId === void 0 ? result : trailingEdge(now$1());
|
|
75
|
+
}
|
|
76
|
+
function debounced() {
|
|
77
|
+
var time = now$1(), isInvoking = shouldInvoke(time);
|
|
78
|
+
lastArgs = arguments;
|
|
79
|
+
lastThis = this;
|
|
80
|
+
lastCallTime = time;
|
|
81
|
+
if (isInvoking) {
|
|
82
|
+
if (timerId === void 0) {
|
|
83
|
+
return leadingEdge(lastCallTime);
|
|
84
|
+
}
|
|
85
|
+
if (maxing) {
|
|
86
|
+
timerId = setTimeout(timerExpired, wait);
|
|
87
|
+
return invokeFunc(lastCallTime);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (timerId === void 0) {
|
|
91
|
+
timerId = setTimeout(timerExpired, wait);
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
debounced.cancel = cancel;
|
|
96
|
+
debounced.flush = flush;
|
|
97
|
+
return debounced;
|
|
98
|
+
}
|
|
99
|
+
function throttle(func, wait, options) {
|
|
100
|
+
var leading = true, trailing = true;
|
|
101
|
+
if (typeof func != "function") {
|
|
102
|
+
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
103
|
+
}
|
|
104
|
+
if (isObject$2(options)) {
|
|
105
|
+
leading = "leading" in options ? !!options.leading : leading;
|
|
106
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
107
|
+
}
|
|
108
|
+
return debounce$1(func, wait, {
|
|
109
|
+
"leading": leading,
|
|
110
|
+
"maxWait": wait,
|
|
111
|
+
"trailing": trailing
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function isObject$2(value) {
|
|
115
|
+
var type = typeof value;
|
|
116
|
+
return !!value && (type == "object" || type == "function");
|
|
117
|
+
}
|
|
118
|
+
function isObjectLike$1(value) {
|
|
119
|
+
return !!value && typeof value == "object";
|
|
120
|
+
}
|
|
121
|
+
function isSymbol$1(value) {
|
|
122
|
+
return typeof value == "symbol" || isObjectLike$1(value) && objectToString$2.call(value) == symbolTag$1;
|
|
123
|
+
}
|
|
124
|
+
function toNumber$1(value) {
|
|
125
|
+
if (typeof value == "number") {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
if (isSymbol$1(value)) {
|
|
129
|
+
return NAN$1;
|
|
130
|
+
}
|
|
131
|
+
if (isObject$2(value)) {
|
|
132
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
133
|
+
value = isObject$2(other) ? other + "" : other;
|
|
134
|
+
}
|
|
135
|
+
if (typeof value != "string") {
|
|
136
|
+
return value === 0 ? value : +value;
|
|
137
|
+
}
|
|
138
|
+
value = value.replace(reTrim$1, "");
|
|
139
|
+
var isBinary = reIsBinary$1.test(value);
|
|
140
|
+
return isBinary || reIsOctal$1.test(value) ? freeParseInt$1(value.slice(2), isBinary ? 2 : 8) : reIsBadHex$1.test(value) ? NAN$1 : +value;
|
|
141
|
+
}
|
|
142
|
+
var lodash_throttle = throttle;
|
|
143
|
+
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
144
|
+
var NAN = 0 / 0;
|
|
145
|
+
var symbolTag = "[object Symbol]";
|
|
146
|
+
var reTrim = /^\s+|\s+$/g;
|
|
147
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
148
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
149
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
150
|
+
var freeParseInt = parseInt;
|
|
151
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
152
|
+
var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
|
|
153
|
+
var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
|
|
154
|
+
var objectProto$1 = Object.prototype;
|
|
155
|
+
var objectToString$1 = objectProto$1.toString;
|
|
156
|
+
var nativeMax = Math.max, nativeMin = Math.min;
|
|
157
|
+
var now = function() {
|
|
158
|
+
return root$1.Date.now();
|
|
159
|
+
};
|
|
160
|
+
function debounce(func, wait, options) {
|
|
161
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
162
|
+
if (typeof func != "function") {
|
|
163
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
164
|
+
}
|
|
165
|
+
wait = toNumber(wait) || 0;
|
|
166
|
+
if (isObject$1(options)) {
|
|
167
|
+
leading = !!options.leading;
|
|
168
|
+
maxing = "maxWait" in options;
|
|
169
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
170
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
171
|
+
}
|
|
172
|
+
function invokeFunc(time) {
|
|
173
|
+
var args = lastArgs, thisArg = lastThis;
|
|
174
|
+
lastArgs = lastThis = void 0;
|
|
175
|
+
lastInvokeTime = time;
|
|
176
|
+
result = func.apply(thisArg, args);
|
|
177
|
+
return result;
|
|
178
|
+
}
|
|
179
|
+
function leadingEdge(time) {
|
|
180
|
+
lastInvokeTime = time;
|
|
181
|
+
timerId = setTimeout(timerExpired, wait);
|
|
182
|
+
return leading ? invokeFunc(time) : result;
|
|
183
|
+
}
|
|
184
|
+
function remainingWait(time) {
|
|
185
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
|
|
186
|
+
return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
|
|
187
|
+
}
|
|
188
|
+
function shouldInvoke(time) {
|
|
189
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
190
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
191
|
+
}
|
|
192
|
+
function timerExpired() {
|
|
193
|
+
var time = now();
|
|
194
|
+
if (shouldInvoke(time)) {
|
|
195
|
+
return trailingEdge(time);
|
|
196
|
+
}
|
|
197
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
198
|
+
}
|
|
199
|
+
function trailingEdge(time) {
|
|
200
|
+
timerId = void 0;
|
|
201
|
+
if (trailing && lastArgs) {
|
|
202
|
+
return invokeFunc(time);
|
|
203
|
+
}
|
|
204
|
+
lastArgs = lastThis = void 0;
|
|
205
|
+
return result;
|
|
206
|
+
}
|
|
207
|
+
function cancel() {
|
|
208
|
+
if (timerId !== void 0) {
|
|
209
|
+
clearTimeout(timerId);
|
|
210
|
+
}
|
|
211
|
+
lastInvokeTime = 0;
|
|
212
|
+
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
213
|
+
}
|
|
214
|
+
function flush() {
|
|
215
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
216
|
+
}
|
|
217
|
+
function debounced() {
|
|
218
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
219
|
+
lastArgs = arguments;
|
|
220
|
+
lastThis = this;
|
|
221
|
+
lastCallTime = time;
|
|
222
|
+
if (isInvoking) {
|
|
223
|
+
if (timerId === void 0) {
|
|
224
|
+
return leadingEdge(lastCallTime);
|
|
225
|
+
}
|
|
226
|
+
if (maxing) {
|
|
227
|
+
timerId = setTimeout(timerExpired, wait);
|
|
228
|
+
return invokeFunc(lastCallTime);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (timerId === void 0) {
|
|
232
|
+
timerId = setTimeout(timerExpired, wait);
|
|
233
|
+
}
|
|
234
|
+
return result;
|
|
235
|
+
}
|
|
236
|
+
debounced.cancel = cancel;
|
|
237
|
+
debounced.flush = flush;
|
|
238
|
+
return debounced;
|
|
239
|
+
}
|
|
240
|
+
function isObject$1(value) {
|
|
241
|
+
var type = typeof value;
|
|
242
|
+
return !!value && (type == "object" || type == "function");
|
|
243
|
+
}
|
|
244
|
+
function isObjectLike(value) {
|
|
245
|
+
return !!value && typeof value == "object";
|
|
246
|
+
}
|
|
247
|
+
function isSymbol(value) {
|
|
248
|
+
return typeof value == "symbol" || isObjectLike(value) && objectToString$1.call(value) == symbolTag;
|
|
249
|
+
}
|
|
250
|
+
function toNumber(value) {
|
|
251
|
+
if (typeof value == "number") {
|
|
252
|
+
return value;
|
|
253
|
+
}
|
|
254
|
+
if (isSymbol(value)) {
|
|
255
|
+
return NAN;
|
|
256
|
+
}
|
|
257
|
+
if (isObject$1(value)) {
|
|
258
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
259
|
+
value = isObject$1(other) ? other + "" : other;
|
|
260
|
+
}
|
|
261
|
+
if (typeof value != "string") {
|
|
262
|
+
return value === 0 ? value : +value;
|
|
263
|
+
}
|
|
264
|
+
value = value.replace(reTrim, "");
|
|
265
|
+
var isBinary = reIsBinary.test(value);
|
|
266
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
267
|
+
}
|
|
268
|
+
var lodash_debounce = debounce;
|
|
269
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
270
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
271
|
+
var funcTag = "[object Function]", genTag = "[object GeneratorFunction]";
|
|
272
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
273
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
274
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
275
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
276
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
277
|
+
function getValue(object, key) {
|
|
278
|
+
return object == null ? void 0 : object[key];
|
|
279
|
+
}
|
|
280
|
+
function isHostObject(value) {
|
|
281
|
+
var result = false;
|
|
282
|
+
if (value != null && typeof value.toString != "function") {
|
|
283
|
+
try {
|
|
284
|
+
result = !!(value + "");
|
|
285
|
+
} catch (e) {
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return result;
|
|
289
|
+
}
|
|
290
|
+
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
|
|
291
|
+
var coreJsData = root["__core-js_shared__"];
|
|
292
|
+
var maskSrcKey = function() {
|
|
293
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
294
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
295
|
+
}();
|
|
296
|
+
var funcToString = funcProto.toString;
|
|
297
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
298
|
+
var objectToString = objectProto.toString;
|
|
299
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
300
|
+
var splice = arrayProto.splice;
|
|
301
|
+
var Map = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
|
|
302
|
+
function Hash(entries) {
|
|
303
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
304
|
+
this.clear();
|
|
305
|
+
while (++index < length) {
|
|
306
|
+
var entry = entries[index];
|
|
307
|
+
this.set(entry[0], entry[1]);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
function hashClear() {
|
|
311
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
312
|
+
}
|
|
313
|
+
function hashDelete(key) {
|
|
314
|
+
return this.has(key) && delete this.__data__[key];
|
|
315
|
+
}
|
|
316
|
+
function hashGet(key) {
|
|
317
|
+
var data = this.__data__;
|
|
318
|
+
if (nativeCreate) {
|
|
319
|
+
var result = data[key];
|
|
320
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
321
|
+
}
|
|
322
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
323
|
+
}
|
|
324
|
+
function hashHas(key) {
|
|
325
|
+
var data = this.__data__;
|
|
326
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
327
|
+
}
|
|
328
|
+
function hashSet(key, value) {
|
|
329
|
+
var data = this.__data__;
|
|
330
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
331
|
+
return this;
|
|
332
|
+
}
|
|
333
|
+
Hash.prototype.clear = hashClear;
|
|
334
|
+
Hash.prototype["delete"] = hashDelete;
|
|
335
|
+
Hash.prototype.get = hashGet;
|
|
336
|
+
Hash.prototype.has = hashHas;
|
|
337
|
+
Hash.prototype.set = hashSet;
|
|
338
|
+
function ListCache(entries) {
|
|
339
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
340
|
+
this.clear();
|
|
341
|
+
while (++index < length) {
|
|
342
|
+
var entry = entries[index];
|
|
343
|
+
this.set(entry[0], entry[1]);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
function listCacheClear() {
|
|
347
|
+
this.__data__ = [];
|
|
348
|
+
}
|
|
349
|
+
function listCacheDelete(key) {
|
|
350
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
351
|
+
if (index < 0) {
|
|
352
|
+
return false;
|
|
353
|
+
}
|
|
354
|
+
var lastIndex = data.length - 1;
|
|
355
|
+
if (index == lastIndex) {
|
|
356
|
+
data.pop();
|
|
357
|
+
} else {
|
|
358
|
+
splice.call(data, index, 1);
|
|
359
|
+
}
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
362
|
+
function listCacheGet(key) {
|
|
363
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
364
|
+
return index < 0 ? void 0 : data[index][1];
|
|
365
|
+
}
|
|
366
|
+
function listCacheHas(key) {
|
|
367
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
368
|
+
}
|
|
369
|
+
function listCacheSet(key, value) {
|
|
370
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
371
|
+
if (index < 0) {
|
|
372
|
+
data.push([key, value]);
|
|
373
|
+
} else {
|
|
374
|
+
data[index][1] = value;
|
|
375
|
+
}
|
|
376
|
+
return this;
|
|
377
|
+
}
|
|
378
|
+
ListCache.prototype.clear = listCacheClear;
|
|
379
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
380
|
+
ListCache.prototype.get = listCacheGet;
|
|
381
|
+
ListCache.prototype.has = listCacheHas;
|
|
382
|
+
ListCache.prototype.set = listCacheSet;
|
|
383
|
+
function MapCache(entries) {
|
|
384
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
385
|
+
this.clear();
|
|
386
|
+
while (++index < length) {
|
|
387
|
+
var entry = entries[index];
|
|
388
|
+
this.set(entry[0], entry[1]);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
function mapCacheClear() {
|
|
392
|
+
this.__data__ = {
|
|
393
|
+
"hash": new Hash(),
|
|
394
|
+
"map": new (Map || ListCache)(),
|
|
395
|
+
"string": new Hash()
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
function mapCacheDelete(key) {
|
|
399
|
+
return getMapData(this, key)["delete"](key);
|
|
400
|
+
}
|
|
401
|
+
function mapCacheGet(key) {
|
|
402
|
+
return getMapData(this, key).get(key);
|
|
403
|
+
}
|
|
404
|
+
function mapCacheHas(key) {
|
|
405
|
+
return getMapData(this, key).has(key);
|
|
406
|
+
}
|
|
407
|
+
function mapCacheSet(key, value) {
|
|
408
|
+
getMapData(this, key).set(key, value);
|
|
409
|
+
return this;
|
|
410
|
+
}
|
|
411
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
412
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
413
|
+
MapCache.prototype.get = mapCacheGet;
|
|
414
|
+
MapCache.prototype.has = mapCacheHas;
|
|
415
|
+
MapCache.prototype.set = mapCacheSet;
|
|
416
|
+
function assocIndexOf(array, key) {
|
|
417
|
+
var length = array.length;
|
|
418
|
+
while (length--) {
|
|
419
|
+
if (eq(array[length][0], key)) {
|
|
420
|
+
return length;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
return -1;
|
|
424
|
+
}
|
|
425
|
+
function baseIsNative(value) {
|
|
426
|
+
if (!isObject(value) || isMasked(value)) {
|
|
427
|
+
return false;
|
|
428
|
+
}
|
|
429
|
+
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
430
|
+
return pattern.test(toSource(value));
|
|
431
|
+
}
|
|
432
|
+
function getMapData(map, key) {
|
|
433
|
+
var data = map.__data__;
|
|
434
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
435
|
+
}
|
|
436
|
+
function getNative(object, key) {
|
|
437
|
+
var value = getValue(object, key);
|
|
438
|
+
return baseIsNative(value) ? value : void 0;
|
|
439
|
+
}
|
|
440
|
+
function isKeyable(value) {
|
|
441
|
+
var type = typeof value;
|
|
442
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
443
|
+
}
|
|
444
|
+
function isMasked(func) {
|
|
445
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
446
|
+
}
|
|
447
|
+
function toSource(func) {
|
|
448
|
+
if (func != null) {
|
|
449
|
+
try {
|
|
450
|
+
return funcToString.call(func);
|
|
451
|
+
} catch (e) {
|
|
452
|
+
}
|
|
453
|
+
try {
|
|
454
|
+
return func + "";
|
|
455
|
+
} catch (e) {
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
return "";
|
|
459
|
+
}
|
|
460
|
+
function memoize(func, resolver) {
|
|
461
|
+
if (typeof func != "function" || resolver && typeof resolver != "function") {
|
|
462
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
463
|
+
}
|
|
464
|
+
var memoized = function() {
|
|
465
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
466
|
+
if (cache.has(key)) {
|
|
467
|
+
return cache.get(key);
|
|
468
|
+
}
|
|
469
|
+
var result = func.apply(this, args);
|
|
470
|
+
memoized.cache = cache.set(key, result);
|
|
471
|
+
return result;
|
|
472
|
+
};
|
|
473
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
474
|
+
return memoized;
|
|
475
|
+
}
|
|
476
|
+
memoize.Cache = MapCache;
|
|
477
|
+
function eq(value, other) {
|
|
478
|
+
return value === other || value !== value && other !== other;
|
|
479
|
+
}
|
|
480
|
+
function isFunction(value) {
|
|
481
|
+
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
482
|
+
return tag == funcTag || tag == genTag;
|
|
483
|
+
}
|
|
484
|
+
function isObject(value) {
|
|
485
|
+
var type = typeof value;
|
|
486
|
+
return !!value && (type == "object" || type == "function");
|
|
487
|
+
}
|
|
488
|
+
var lodash_memoize = memoize;
|
|
489
|
+
export { lodash_debounce as a, lodash_memoize as b, lodash_throttle as l };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { get, set, appendErrors } from "react-hook-form";
|
|
2
|
+
var e = function(i, e2, t2) {
|
|
3
|
+
if (i && "reportValidity" in i) {
|
|
4
|
+
var f2 = get(t2, e2);
|
|
5
|
+
i.setCustomValidity(f2 && f2.message || ""), i.reportValidity();
|
|
6
|
+
}
|
|
7
|
+
}, t = function(r, i) {
|
|
8
|
+
var t2 = function(t3) {
|
|
9
|
+
var f3 = i.fields[t3];
|
|
10
|
+
f3 && f3.ref && "reportValidity" in f3.ref ? e(f3.ref, t3, r) : f3.refs && f3.refs.forEach(function(i2) {
|
|
11
|
+
return e(i2, t3, r);
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
for (var f2 in i.fields)
|
|
15
|
+
t2(f2);
|
|
16
|
+
}, f = function(e2, f2) {
|
|
17
|
+
f2.shouldUseNativeValidation && t(e2, f2);
|
|
18
|
+
var o2 = {};
|
|
19
|
+
for (var a in e2) {
|
|
20
|
+
var n = get(f2.fields, a);
|
|
21
|
+
set(o2, a, Object.assign(e2[a], { ref: n && n.ref }));
|
|
22
|
+
}
|
|
23
|
+
return o2;
|
|
24
|
+
};
|
|
25
|
+
var o = function(o2, n, a) {
|
|
26
|
+
return n === void 0 && (n = {}), a === void 0 && (a = {}), function(s, i, c) {
|
|
27
|
+
try {
|
|
28
|
+
return Promise.resolve(function(t$1, r) {
|
|
29
|
+
try {
|
|
30
|
+
var u = (n.context && false, Promise.resolve(o2[a.mode === "sync" ? "validateSync" : "validate"](s, Object.assign({ abortEarly: false }, n, { context: i }))).then(function(t$12) {
|
|
31
|
+
return c.shouldUseNativeValidation && t({}, c), { values: a.rawValues ? s : t$12, errors: {} };
|
|
32
|
+
}));
|
|
33
|
+
} catch (e2) {
|
|
34
|
+
return r(e2);
|
|
35
|
+
}
|
|
36
|
+
return u && u.then ? u.then(void 0, r) : u;
|
|
37
|
+
}(0, function(e2) {
|
|
38
|
+
if (!e2.inner)
|
|
39
|
+
throw e2;
|
|
40
|
+
return { values: {}, errors: f((o3 = e2, n2 = !c.shouldUseNativeValidation && c.criteriaMode === "all", (o3.inner || []).reduce(function(e3, t2) {
|
|
41
|
+
if (e3[t2.path] || (e3[t2.path] = { message: t2.message, type: t2.type }), n2) {
|
|
42
|
+
var o4 = e3[t2.path].types, a2 = o4 && o4[t2.type];
|
|
43
|
+
e3[t2.path] = appendErrors(t2.path, n2, e3, t2.type, a2 ? [].concat(a2, t2.message) : t2.message);
|
|
44
|
+
}
|
|
45
|
+
return e3;
|
|
46
|
+
}, {})), c) };
|
|
47
|
+
var o3, n2;
|
|
48
|
+
}));
|
|
49
|
+
} catch (e2) {
|
|
50
|
+
return Promise.reject(e2);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export { o };
|
package/dist/react-draggable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
var cjs = { exports: {} };
|
|
@@ -494,7 +494,7 @@ Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
|
494
494
|
});
|
|
495
495
|
DraggableCore$2.default = void 0;
|
|
496
496
|
var React = _interopRequireWildcard(require$$0);
|
|
497
|
-
var _propTypes = _interopRequireDefault(
|
|
497
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
498
498
|
var _reactDom = _interopRequireDefault(require$$2);
|
|
499
499
|
var _domFns = domFns;
|
|
500
500
|
var _positionFns = positionFns;
|
|
@@ -956,7 +956,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
|
|
|
956
956
|
});
|
|
957
957
|
exports.default = void 0;
|
|
958
958
|
var React2 = _interopRequireWildcard2(require$$0);
|
|
959
|
-
var _propTypes2 = _interopRequireDefault2(
|
|
959
|
+
var _propTypes2 = _interopRequireDefault2(PropTypes);
|
|
960
960
|
var _reactDom2 = _interopRequireDefault2(require$$2);
|
|
961
961
|
var _clsx2 = _interopRequireDefault2(clsx);
|
|
962
962
|
var _domFns2 = domFns;
|
package/dist/react-resizable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
2
|
import { c as cjs } from "./react-draggable.js";
|
|
3
|
-
import
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
4
|
var reactResizable = { exports: {} };
|
|
5
5
|
var Resizable$1 = {};
|
|
6
6
|
var utils = {};
|
|
@@ -60,7 +60,7 @@ function cloneElement(element, props) {
|
|
|
60
60
|
var propTypes = {};
|
|
61
61
|
propTypes.__esModule = true;
|
|
62
62
|
propTypes.resizableProps = void 0;
|
|
63
|
-
var _propTypes$2 = _interopRequireDefault$1(
|
|
63
|
+
var _propTypes$2 = _interopRequireDefault$1(PropTypes);
|
|
64
64
|
function _interopRequireDefault$1(obj) {
|
|
65
65
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
66
66
|
}
|
|
@@ -389,7 +389,7 @@ var ResizableBox$2 = {};
|
|
|
389
389
|
ResizableBox$2.__esModule = true;
|
|
390
390
|
ResizableBox$2.default = void 0;
|
|
391
391
|
var React = _interopRequireWildcard(require$$0);
|
|
392
|
-
var _propTypes = _interopRequireDefault(
|
|
392
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
393
393
|
var _Resizable = _interopRequireDefault(Resizable$1);
|
|
394
394
|
var _propTypes2 = propTypes;
|
|
395
395
|
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./commonjs.js";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import require$$0 from "react";
|
|
4
4
|
var lib = { exports: {} };
|
|
5
5
|
(function(module, exports) {
|
|
6
6
|
!function(e, t) {
|
|
7
|
-
module.exports = t(
|
|
7
|
+
module.exports = t(PropTypes, require$$0);
|
|
8
8
|
}(window, function(e, t) {
|
|
9
9
|
return function(e2) {
|
|
10
10
|
var t2 = {};
|