@majoo-ui/react 1.54.1-rc.1 → 1.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/components/editableTable/EditableMobile.d.ts +1 -0
- package/components/editableTable/EditableTable.d.ts +4 -0
- package/components/pageDialog/PageDialog.d.ts +8 -24
- package/index.esm.css +1307 -1294
- package/index.esm.js +795 -745
- package/index.umd.css +1307 -1294
- package/index.umd.js +806 -750
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -49,7 +49,7 @@ import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
|
49
49
|
import imageCompressionComponent from 'browser-image-compression';
|
|
50
50
|
import { useSticky } from 'react-table-sticky';
|
|
51
51
|
|
|
52
|
-
var _jsxFileName$10 = "
|
|
52
|
+
var _jsxFileName$10 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\majoo-provider\\ThemeProvider.js";
|
|
53
53
|
|
|
54
54
|
function ThemeProvider({
|
|
55
55
|
theme,
|
|
@@ -78,7 +78,7 @@ var check = function (it) {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
81
|
-
var global$
|
|
81
|
+
var global$U =
|
|
82
82
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
83
83
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
84
84
|
check(typeof window == 'object' && window) ||
|
|
@@ -172,28 +172,31 @@ var classofRaw$1 = function (it) {
|
|
|
172
172
|
return stringSlice$b(toString$j(it), 8, -1);
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
+
var global$T = global$U;
|
|
175
176
|
var uncurryThis$v = functionUncurryThis;
|
|
176
177
|
var fails$q = fails$t;
|
|
177
178
|
var classof$8 = classofRaw$1;
|
|
178
179
|
|
|
179
|
-
var
|
|
180
|
+
var Object$5 = global$T.Object;
|
|
180
181
|
var split$3 = uncurryThis$v(''.split);
|
|
181
182
|
|
|
182
183
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
183
184
|
var indexedObject = fails$q(function () {
|
|
184
185
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
185
186
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
186
|
-
return
|
|
187
|
+
return !Object$5('z').propertyIsEnumerable(0);
|
|
187
188
|
}) ? function (it) {
|
|
188
|
-
return classof$8(it) == 'String' ? split$3(it, '') :
|
|
189
|
-
} :
|
|
189
|
+
return classof$8(it) == 'String' ? split$3(it, '') : Object$5(it);
|
|
190
|
+
} : Object$5;
|
|
190
191
|
|
|
191
|
-
var $
|
|
192
|
+
var global$S = global$U;
|
|
193
|
+
|
|
194
|
+
var TypeError$j = global$S.TypeError;
|
|
192
195
|
|
|
193
196
|
// `RequireObjectCoercible` abstract operation
|
|
194
197
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
195
198
|
var requireObjectCoercible$a = function (it) {
|
|
196
|
-
if (it == undefined) throw
|
|
199
|
+
if (it == undefined) throw TypeError$j("Can't call method on " + it);
|
|
197
200
|
return it;
|
|
198
201
|
};
|
|
199
202
|
|
|
@@ -217,7 +220,7 @@ var isObject$d = function (it) {
|
|
|
217
220
|
return typeof it == 'object' ? it !== null : isCallable$o(it);
|
|
218
221
|
};
|
|
219
222
|
|
|
220
|
-
var global$
|
|
223
|
+
var global$R = global$U;
|
|
221
224
|
var isCallable$n = isCallable$p;
|
|
222
225
|
|
|
223
226
|
var aFunction = function (argument) {
|
|
@@ -225,7 +228,7 @@ var aFunction = function (argument) {
|
|
|
225
228
|
};
|
|
226
229
|
|
|
227
230
|
var getBuiltIn$8 = function (namespace, method) {
|
|
228
|
-
return arguments.length < 2 ? aFunction(global$
|
|
231
|
+
return arguments.length < 2 ? aFunction(global$R[namespace]) : global$R[namespace] && global$R[namespace][method];
|
|
229
232
|
};
|
|
230
233
|
|
|
231
234
|
var uncurryThis$u = functionUncurryThis;
|
|
@@ -236,11 +239,11 @@ var getBuiltIn$7 = getBuiltIn$8;
|
|
|
236
239
|
|
|
237
240
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
238
241
|
|
|
239
|
-
var global$
|
|
242
|
+
var global$Q = global$U;
|
|
240
243
|
var userAgent$5 = engineUserAgent;
|
|
241
244
|
|
|
242
|
-
var process$3 = global$
|
|
243
|
-
var Deno$1 = global$
|
|
245
|
+
var process$3 = global$Q.process;
|
|
246
|
+
var Deno$1 = global$Q.Deno;
|
|
244
247
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
245
248
|
var v8 = versions && versions.v8;
|
|
246
249
|
var match, version;
|
|
@@ -287,39 +290,43 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
287
290
|
&& !Symbol.sham
|
|
288
291
|
&& typeof Symbol.iterator == 'symbol';
|
|
289
292
|
|
|
293
|
+
var global$P = global$U;
|
|
290
294
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
291
295
|
var isCallable$m = isCallable$p;
|
|
292
296
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
293
297
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
294
298
|
|
|
295
|
-
var
|
|
299
|
+
var Object$4 = global$P.Object;
|
|
296
300
|
|
|
297
301
|
var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
298
302
|
return typeof it == 'symbol';
|
|
299
303
|
} : function (it) {
|
|
300
304
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
301
|
-
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype,
|
|
305
|
+
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
|
|
302
306
|
};
|
|
303
307
|
|
|
304
|
-
var $
|
|
308
|
+
var global$O = global$U;
|
|
309
|
+
|
|
310
|
+
var String$6 = global$O.String;
|
|
305
311
|
|
|
306
|
-
var tryToString$
|
|
312
|
+
var tryToString$4 = function (argument) {
|
|
307
313
|
try {
|
|
308
|
-
return
|
|
314
|
+
return String$6(argument);
|
|
309
315
|
} catch (error) {
|
|
310
316
|
return 'Object';
|
|
311
317
|
}
|
|
312
318
|
};
|
|
313
319
|
|
|
320
|
+
var global$N = global$U;
|
|
314
321
|
var isCallable$l = isCallable$p;
|
|
315
|
-
var tryToString$
|
|
322
|
+
var tryToString$3 = tryToString$4;
|
|
316
323
|
|
|
317
|
-
var
|
|
324
|
+
var TypeError$i = global$N.TypeError;
|
|
318
325
|
|
|
319
326
|
// `Assert: IsCallable(argument) is true`
|
|
320
327
|
var aCallable$9 = function (argument) {
|
|
321
328
|
if (isCallable$l(argument)) return argument;
|
|
322
|
-
throw
|
|
329
|
+
throw TypeError$i(tryToString$3(argument) + ' is not a function');
|
|
323
330
|
};
|
|
324
331
|
|
|
325
332
|
var aCallable$8 = aCallable$9;
|
|
@@ -331,11 +338,12 @@ var getMethod$6 = function (V, P) {
|
|
|
331
338
|
return func == null ? undefined : aCallable$8(func);
|
|
332
339
|
};
|
|
333
340
|
|
|
341
|
+
var global$M = global$U;
|
|
334
342
|
var call$l = functionCall;
|
|
335
343
|
var isCallable$k = isCallable$p;
|
|
336
344
|
var isObject$c = isObject$d;
|
|
337
345
|
|
|
338
|
-
var
|
|
346
|
+
var TypeError$h = global$M.TypeError;
|
|
339
347
|
|
|
340
348
|
// `OrdinaryToPrimitive` abstract operation
|
|
341
349
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -344,31 +352,31 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
344
352
|
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
345
353
|
if (isCallable$k(fn = input.valueOf) && !isObject$c(val = call$l(fn, input))) return val;
|
|
346
354
|
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
347
|
-
throw
|
|
355
|
+
throw TypeError$h("Can't convert object to primitive value");
|
|
348
356
|
};
|
|
349
357
|
|
|
350
358
|
var shared$4 = {exports: {}};
|
|
351
359
|
|
|
352
360
|
var isPure = false;
|
|
353
361
|
|
|
354
|
-
var global$
|
|
362
|
+
var global$L = global$U;
|
|
355
363
|
|
|
356
364
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
357
|
-
var defineProperty$
|
|
365
|
+
var defineProperty$7 = Object.defineProperty;
|
|
358
366
|
|
|
359
|
-
var
|
|
367
|
+
var setGlobal$3 = function (key, value) {
|
|
360
368
|
try {
|
|
361
|
-
defineProperty$
|
|
369
|
+
defineProperty$7(global$L, key, { value: value, configurable: true, writable: true });
|
|
362
370
|
} catch (error) {
|
|
363
|
-
global$
|
|
371
|
+
global$L[key] = value;
|
|
364
372
|
} return value;
|
|
365
373
|
};
|
|
366
374
|
|
|
367
|
-
var global$
|
|
368
|
-
var
|
|
375
|
+
var global$K = global$U;
|
|
376
|
+
var setGlobal$2 = setGlobal$3;
|
|
369
377
|
|
|
370
378
|
var SHARED = '__core-js_shared__';
|
|
371
|
-
var store$3 = global$
|
|
379
|
+
var store$3 = global$K[SHARED] || setGlobal$2(SHARED, {});
|
|
372
380
|
|
|
373
381
|
var sharedStore = store$3;
|
|
374
382
|
|
|
@@ -377,21 +385,22 @@ var store$2 = sharedStore;
|
|
|
377
385
|
(shared$4.exports = function (key, value) {
|
|
378
386
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
379
387
|
})('versions', []).push({
|
|
380
|
-
version: '3.
|
|
388
|
+
version: '3.22.5',
|
|
381
389
|
mode: 'global',
|
|
382
390
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
383
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
391
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
384
392
|
source: 'https://github.com/zloirock/core-js'
|
|
385
393
|
});
|
|
386
394
|
|
|
395
|
+
var global$J = global$U;
|
|
387
396
|
var requireObjectCoercible$8 = requireObjectCoercible$a;
|
|
388
397
|
|
|
389
|
-
var
|
|
398
|
+
var Object$3 = global$J.Object;
|
|
390
399
|
|
|
391
400
|
// `ToObject` abstract operation
|
|
392
401
|
// https://tc39.es/ecma262/#sec-toobject
|
|
393
402
|
var toObject$7 = function (argument) {
|
|
394
|
-
return
|
|
403
|
+
return Object$3(requireObjectCoercible$8(argument));
|
|
395
404
|
};
|
|
396
405
|
|
|
397
406
|
var uncurryThis$t = functionUncurryThis;
|
|
@@ -416,7 +425,7 @@ var uid$2 = function (key) {
|
|
|
416
425
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$i(++id + postfix, 36);
|
|
417
426
|
};
|
|
418
427
|
|
|
419
|
-
var global$
|
|
428
|
+
var global$I = global$U;
|
|
420
429
|
var shared$3 = shared$4.exports;
|
|
421
430
|
var hasOwn$e = hasOwnProperty_1;
|
|
422
431
|
var uid$1 = uid$2;
|
|
@@ -424,7 +433,7 @@ var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
|
424
433
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
425
434
|
|
|
426
435
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
427
|
-
var Symbol$7 = global$
|
|
436
|
+
var Symbol$7 = global$I.Symbol;
|
|
428
437
|
var symbolFor = Symbol$7 && Symbol$7['for'];
|
|
429
438
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$7 : Symbol$7 && Symbol$7.withoutSetter || uid$1;
|
|
430
439
|
|
|
@@ -441,6 +450,7 @@ var wellKnownSymbol$l = function (name) {
|
|
|
441
450
|
} return WellKnownSymbolsStore[name];
|
|
442
451
|
};
|
|
443
452
|
|
|
453
|
+
var global$H = global$U;
|
|
444
454
|
var call$k = functionCall;
|
|
445
455
|
var isObject$b = isObject$d;
|
|
446
456
|
var isSymbol$5 = isSymbol$6;
|
|
@@ -448,7 +458,7 @@ var getMethod$5 = getMethod$6;
|
|
|
448
458
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
449
459
|
var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
450
460
|
|
|
451
|
-
var
|
|
461
|
+
var TypeError$g = global$H.TypeError;
|
|
452
462
|
var TO_PRIMITIVE = wellKnownSymbol$k('toPrimitive');
|
|
453
463
|
|
|
454
464
|
// `ToPrimitive` abstract operation
|
|
@@ -461,7 +471,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
461
471
|
if (pref === undefined) pref = 'default';
|
|
462
472
|
result = call$k(exoticToPrim, input, pref);
|
|
463
473
|
if (!isObject$b(result) || isSymbol$5(result)) return result;
|
|
464
|
-
throw
|
|
474
|
+
throw TypeError$g("Can't convert object to primitive value");
|
|
465
475
|
}
|
|
466
476
|
if (pref === undefined) pref = 'number';
|
|
467
477
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -477,10 +487,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
477
487
|
return isSymbol$4(key) ? key : key + '';
|
|
478
488
|
};
|
|
479
489
|
|
|
480
|
-
var global$
|
|
490
|
+
var global$G = global$U;
|
|
481
491
|
var isObject$a = isObject$d;
|
|
482
492
|
|
|
483
|
-
var document$3 = global$
|
|
493
|
+
var document$3 = global$G.document;
|
|
484
494
|
// typeof document.createElement is 'object' in old IE
|
|
485
495
|
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
486
496
|
|
|
@@ -538,24 +548,26 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$n(function () {
|
|
|
538
548
|
}).prototype != 42;
|
|
539
549
|
});
|
|
540
550
|
|
|
551
|
+
var global$F = global$U;
|
|
541
552
|
var isObject$9 = isObject$d;
|
|
542
553
|
|
|
543
|
-
var
|
|
544
|
-
var
|
|
554
|
+
var String$5 = global$F.String;
|
|
555
|
+
var TypeError$f = global$F.TypeError;
|
|
545
556
|
|
|
546
557
|
// `Assert: Type(argument) is Object`
|
|
547
558
|
var anObject$i = function (argument) {
|
|
548
559
|
if (isObject$9(argument)) return argument;
|
|
549
|
-
throw
|
|
560
|
+
throw TypeError$f(String$5(argument) + ' is not an object');
|
|
550
561
|
};
|
|
551
562
|
|
|
563
|
+
var global$E = global$U;
|
|
552
564
|
var DESCRIPTORS$b = descriptors;
|
|
553
565
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
554
566
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
555
567
|
var anObject$h = anObject$i;
|
|
556
568
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
557
569
|
|
|
558
|
-
var
|
|
570
|
+
var TypeError$e = global$E.TypeError;
|
|
559
571
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
560
572
|
var $defineProperty = Object.defineProperty;
|
|
561
573
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -588,7 +600,7 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
588
600
|
if (IE8_DOM_DEFINE) try {
|
|
589
601
|
return $defineProperty(O, P, Attributes);
|
|
590
602
|
} catch (error) { /* empty */ }
|
|
591
|
-
if ('get' in Attributes || 'set' in Attributes) throw
|
|
603
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$e('Accessors not supported');
|
|
592
604
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
593
605
|
return O;
|
|
594
606
|
};
|
|
@@ -597,7 +609,7 @@ var DESCRIPTORS$a = descriptors;
|
|
|
597
609
|
var definePropertyModule$5 = objectDefineProperty;
|
|
598
610
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
599
611
|
|
|
600
|
-
var createNonEnumerableProperty$
|
|
612
|
+
var createNonEnumerableProperty$7 = DESCRIPTORS$a ? function (object, key, value) {
|
|
601
613
|
return definePropertyModule$5.f(object, key, createPropertyDescriptor$3(1, value));
|
|
602
614
|
} : function (object, key, value) {
|
|
603
615
|
object[key] = value;
|
|
@@ -639,11 +651,11 @@ if (!isCallable$j(store$1.inspectSource)) {
|
|
|
639
651
|
|
|
640
652
|
var inspectSource$4 = store$1.inspectSource;
|
|
641
653
|
|
|
642
|
-
var global$
|
|
654
|
+
var global$D = global$U;
|
|
643
655
|
var isCallable$i = isCallable$p;
|
|
644
656
|
var inspectSource$3 = inspectSource$4;
|
|
645
657
|
|
|
646
|
-
var WeakMap$1 = global$
|
|
658
|
+
var WeakMap$1 = global$D.WeakMap;
|
|
647
659
|
|
|
648
660
|
var nativeWeakMap = isCallable$i(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
649
661
|
|
|
@@ -659,18 +671,18 @@ var sharedKey$3 = function (key) {
|
|
|
659
671
|
var hiddenKeys$4 = {};
|
|
660
672
|
|
|
661
673
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
662
|
-
var global$
|
|
674
|
+
var global$C = global$U;
|
|
663
675
|
var uncurryThis$q = functionUncurryThis;
|
|
664
676
|
var isObject$8 = isObject$d;
|
|
665
|
-
var createNonEnumerableProperty$
|
|
677
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
|
|
666
678
|
var hasOwn$b = hasOwnProperty_1;
|
|
667
679
|
var shared$1 = sharedStore;
|
|
668
680
|
var sharedKey$2 = sharedKey$3;
|
|
669
681
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
670
682
|
|
|
671
683
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
672
|
-
var TypeError$
|
|
673
|
-
var WeakMap = global$
|
|
684
|
+
var TypeError$d = global$C.TypeError;
|
|
685
|
+
var WeakMap = global$C.WeakMap;
|
|
674
686
|
var set$1, get$1, has;
|
|
675
687
|
|
|
676
688
|
var enforce = function (it) {
|
|
@@ -681,7 +693,7 @@ var getterFor = function (TYPE) {
|
|
|
681
693
|
return function (it) {
|
|
682
694
|
var state;
|
|
683
695
|
if (!isObject$8(it) || (state = get$1(it)).type !== TYPE) {
|
|
684
|
-
throw TypeError$
|
|
696
|
+
throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
|
|
685
697
|
} return state;
|
|
686
698
|
};
|
|
687
699
|
};
|
|
@@ -692,7 +704,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
692
704
|
var wmhas = uncurryThis$q(store.has);
|
|
693
705
|
var wmset = uncurryThis$q(store.set);
|
|
694
706
|
set$1 = function (it, metadata) {
|
|
695
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
707
|
+
if (wmhas(store, it)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
|
|
696
708
|
metadata.facade = it;
|
|
697
709
|
wmset(store, it, metadata);
|
|
698
710
|
return metadata;
|
|
@@ -707,9 +719,9 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
707
719
|
var STATE = sharedKey$2('state');
|
|
708
720
|
hiddenKeys$3[STATE] = true;
|
|
709
721
|
set$1 = function (it, metadata) {
|
|
710
|
-
if (hasOwn$b(it, STATE)) throw new TypeError$
|
|
722
|
+
if (hasOwn$b(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
|
|
711
723
|
metadata.facade = it;
|
|
712
|
-
createNonEnumerableProperty$
|
|
724
|
+
createNonEnumerableProperty$6(it, STATE, metadata);
|
|
713
725
|
return metadata;
|
|
714
726
|
};
|
|
715
727
|
get$1 = function (it) {
|
|
@@ -739,10 +751,10 @@ var InternalStateModule$5 = internalState;
|
|
|
739
751
|
var enforceInternalState$1 = InternalStateModule$5.enforce;
|
|
740
752
|
var getInternalState$3 = InternalStateModule$5.get;
|
|
741
753
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
742
|
-
var defineProperty$
|
|
754
|
+
var defineProperty$6 = Object.defineProperty;
|
|
743
755
|
|
|
744
756
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$m(function () {
|
|
745
|
-
return defineProperty$
|
|
757
|
+
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
746
758
|
});
|
|
747
759
|
|
|
748
760
|
var TEMPLATE = String(String).split('String');
|
|
@@ -754,18 +766,16 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
754
766
|
if (options && options.getter) name = 'get ' + name;
|
|
755
767
|
if (options && options.setter) name = 'set ' + name;
|
|
756
768
|
if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
757
|
-
|
|
758
|
-
else value.name = name;
|
|
769
|
+
defineProperty$6(value, 'name', { value: name, configurable: true });
|
|
759
770
|
}
|
|
760
771
|
if (CONFIGURABLE_LENGTH && options && hasOwn$a(options, 'arity') && value.length !== options.arity) {
|
|
761
|
-
defineProperty$
|
|
772
|
+
defineProperty$6(value, 'length', { value: options.arity });
|
|
762
773
|
}
|
|
763
|
-
|
|
764
|
-
if (
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
} catch (error) { /* empty */ }
|
|
774
|
+
if (options && hasOwn$a(options, 'constructor') && options.constructor) {
|
|
775
|
+
if (DESCRIPTORS$8) try {
|
|
776
|
+
defineProperty$6(value, 'prototype', { writable: false });
|
|
777
|
+
} catch (error) { /* empty */ }
|
|
778
|
+
} else value.prototype = undefined;
|
|
769
779
|
var state = enforceInternalState$1(value);
|
|
770
780
|
if (!hasOwn$a(state, 'source')) {
|
|
771
781
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -778,32 +788,30 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
778
788
|
return isCallable$h(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
779
789
|
}, 'toString');
|
|
780
790
|
|
|
791
|
+
var global$B = global$U;
|
|
781
792
|
var isCallable$g = isCallable$p;
|
|
782
|
-
var
|
|
793
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
|
|
783
794
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
784
|
-
var
|
|
795
|
+
var setGlobal$1 = setGlobal$3;
|
|
785
796
|
|
|
786
797
|
var defineBuiltIn$b = function (O, key, value, options) {
|
|
787
|
-
|
|
788
|
-
var simple = options.enumerable;
|
|
789
|
-
var
|
|
798
|
+
var unsafe = options ? !!options.unsafe : false;
|
|
799
|
+
var simple = options ? !!options.enumerable : false;
|
|
800
|
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
801
|
+
var name = options && options.name !== undefined ? options.name : key;
|
|
790
802
|
if (isCallable$g(value)) makeBuiltIn$1(value, name, options);
|
|
791
|
-
if (
|
|
803
|
+
if (O === global$B) {
|
|
792
804
|
if (simple) O[key] = value;
|
|
793
|
-
else
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
configurable: !options.nonConfigurable,
|
|
804
|
-
writable: !options.nonWritable
|
|
805
|
-
});
|
|
806
|
-
} return O;
|
|
805
|
+
else setGlobal$1(key, value);
|
|
806
|
+
return O;
|
|
807
|
+
} else if (!unsafe) {
|
|
808
|
+
delete O[key];
|
|
809
|
+
} else if (!noTargetGet && O[key]) {
|
|
810
|
+
simple = true;
|
|
811
|
+
}
|
|
812
|
+
if (simple) O[key] = value;
|
|
813
|
+
else createNonEnumerableProperty$5(O, key, value);
|
|
814
|
+
return O;
|
|
807
815
|
};
|
|
808
816
|
|
|
809
817
|
var objectGetOwnPropertyNames = {};
|
|
@@ -811,22 +819,12 @@ var objectGetOwnPropertyNames = {};
|
|
|
811
819
|
var ceil = Math.ceil;
|
|
812
820
|
var floor$5 = Math.floor;
|
|
813
821
|
|
|
814
|
-
// `Math.trunc` method
|
|
815
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
816
|
-
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
817
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
818
|
-
var n = +x;
|
|
819
|
-
return (n > 0 ? floor$5 : ceil)(n);
|
|
820
|
-
};
|
|
821
|
-
|
|
822
|
-
var trunc = mathTrunc;
|
|
823
|
-
|
|
824
822
|
// `ToIntegerOrInfinity` abstract operation
|
|
825
823
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
826
824
|
var toIntegerOrInfinity$6 = function (argument) {
|
|
827
825
|
var number = +argument;
|
|
828
|
-
// eslint-disable-next-line no-self-compare --
|
|
829
|
-
return number !== number || number === 0 ? 0 :
|
|
826
|
+
// eslint-disable-next-line no-self-compare -- safe
|
|
827
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$5 : ceil)(number);
|
|
830
828
|
};
|
|
831
829
|
|
|
832
830
|
var toIntegerOrInfinity$5 = toIntegerOrInfinity$6;
|
|
@@ -960,11 +958,11 @@ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
960
958
|
var hasOwn$8 = hasOwnProperty_1;
|
|
961
959
|
var ownKeys = ownKeys$1;
|
|
962
960
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
963
|
-
var definePropertyModule$
|
|
961
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
964
962
|
|
|
965
963
|
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
966
964
|
var keys = ownKeys(source);
|
|
967
|
-
var defineProperty = definePropertyModule$
|
|
965
|
+
var defineProperty = definePropertyModule$4.f;
|
|
968
966
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
969
967
|
for (var i = 0; i < keys.length; i++) {
|
|
970
968
|
var key = keys[i];
|
|
@@ -997,28 +995,28 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
997
995
|
|
|
998
996
|
var isForced_1 = isForced$3;
|
|
999
997
|
|
|
1000
|
-
var global$
|
|
998
|
+
var global$A = global$U;
|
|
1001
999
|
var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
|
|
1002
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$
|
|
1000
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
|
|
1003
1001
|
var defineBuiltIn$a = defineBuiltIn$b;
|
|
1004
|
-
var
|
|
1002
|
+
var setGlobal = setGlobal$3;
|
|
1005
1003
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1006
1004
|
var isForced$2 = isForced_1;
|
|
1007
1005
|
|
|
1008
1006
|
/*
|
|
1009
|
-
options.target
|
|
1010
|
-
options.global
|
|
1011
|
-
options.stat
|
|
1012
|
-
options.proto
|
|
1013
|
-
options.real
|
|
1014
|
-
options.forced
|
|
1015
|
-
options.bind
|
|
1016
|
-
options.wrap
|
|
1017
|
-
options.unsafe
|
|
1018
|
-
options.sham
|
|
1019
|
-
options.enumerable
|
|
1020
|
-
options.
|
|
1021
|
-
options.name
|
|
1007
|
+
options.target - name of the target object
|
|
1008
|
+
options.global - target is the global object
|
|
1009
|
+
options.stat - export as static methods of target
|
|
1010
|
+
options.proto - export as prototype methods of target
|
|
1011
|
+
options.real - real prototype method for the `pure` version
|
|
1012
|
+
options.forced - export even if the native feature is available
|
|
1013
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1014
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1015
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1016
|
+
options.sham - add a flag to not completely full polyfills
|
|
1017
|
+
options.enumerable - export as enumerable property
|
|
1018
|
+
options.noTargetGet - prevent calling a getter on target
|
|
1019
|
+
options.name - the .name of the function if it does not match the key
|
|
1022
1020
|
*/
|
|
1023
1021
|
var _export = function (options, source) {
|
|
1024
1022
|
var TARGET = options.target;
|
|
@@ -1026,15 +1024,15 @@ var _export = function (options, source) {
|
|
|
1026
1024
|
var STATIC = options.stat;
|
|
1027
1025
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1028
1026
|
if (GLOBAL) {
|
|
1029
|
-
target = global$
|
|
1027
|
+
target = global$A;
|
|
1030
1028
|
} else if (STATIC) {
|
|
1031
|
-
target = global$
|
|
1029
|
+
target = global$A[TARGET] || setGlobal(TARGET, {});
|
|
1032
1030
|
} else {
|
|
1033
|
-
target = (global$
|
|
1031
|
+
target = (global$A[TARGET] || {}).prototype;
|
|
1034
1032
|
}
|
|
1035
1033
|
if (target) for (key in source) {
|
|
1036
1034
|
sourceProperty = source[key];
|
|
1037
|
-
if (options.
|
|
1035
|
+
if (options.noTargetGet) {
|
|
1038
1036
|
descriptor = getOwnPropertyDescriptor$3(target, key);
|
|
1039
1037
|
targetProperty = descriptor && descriptor.value;
|
|
1040
1038
|
} else targetProperty = target[key];
|
|
@@ -1075,17 +1073,17 @@ var IndexedObject$1 = indexedObject;
|
|
|
1075
1073
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
1076
1074
|
var $assign = Object.assign;
|
|
1077
1075
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1078
|
-
var defineProperty$
|
|
1076
|
+
var defineProperty$5 = Object.defineProperty;
|
|
1079
1077
|
var concat$1 = uncurryThis$n([].concat);
|
|
1080
1078
|
|
|
1081
1079
|
// `Object.assign` method
|
|
1082
1080
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1083
1081
|
var objectAssign = !$assign || fails$k(function () {
|
|
1084
1082
|
// should have correct order of operations (Edge bug)
|
|
1085
|
-
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$
|
|
1083
|
+
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
|
|
1086
1084
|
enumerable: true,
|
|
1087
1085
|
get: function () {
|
|
1088
|
-
defineProperty$
|
|
1086
|
+
defineProperty$5(this, 'b', {
|
|
1089
1087
|
value: 3,
|
|
1090
1088
|
enumerable: false
|
|
1091
1089
|
});
|
|
@@ -1405,7 +1403,7 @@ var objectDefineProperties = {};
|
|
|
1405
1403
|
|
|
1406
1404
|
var DESCRIPTORS$6 = descriptors;
|
|
1407
1405
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1408
|
-
var definePropertyModule$
|
|
1406
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
1409
1407
|
var anObject$f = anObject$i;
|
|
1410
1408
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1411
1409
|
var objectKeys = objectKeys$2;
|
|
@@ -1420,7 +1418,7 @@ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1420
1418
|
var length = keys.length;
|
|
1421
1419
|
var index = 0;
|
|
1422
1420
|
var key;
|
|
1423
|
-
while (length > index) definePropertyModule$
|
|
1421
|
+
while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
|
|
1424
1422
|
return O;
|
|
1425
1423
|
};
|
|
1426
1424
|
|
|
@@ -1515,7 +1513,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1515
1513
|
|
|
1516
1514
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1517
1515
|
var create$3 = objectCreate;
|
|
1518
|
-
var
|
|
1516
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1519
1517
|
|
|
1520
1518
|
var UNSCOPABLES = wellKnownSymbol$j('unscopables');
|
|
1521
1519
|
var ArrayPrototype$1 = Array.prototype;
|
|
@@ -1523,7 +1521,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1523
1521
|
// Array.prototype[@@unscopables]
|
|
1524
1522
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1525
1523
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1526
|
-
|
|
1524
|
+
definePropertyModule$2.f(ArrayPrototype$1, UNSCOPABLES, {
|
|
1527
1525
|
configurable: true,
|
|
1528
1526
|
value: create$3(null)
|
|
1529
1527
|
});
|
|
@@ -1545,6 +1543,7 @@ var correctPrototypeGetter = !fails$j(function () {
|
|
|
1545
1543
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1546
1544
|
});
|
|
1547
1545
|
|
|
1546
|
+
var global$z = global$U;
|
|
1548
1547
|
var hasOwn$7 = hasOwnProperty_1;
|
|
1549
1548
|
var isCallable$e = isCallable$p;
|
|
1550
1549
|
var toObject$4 = toObject$7;
|
|
@@ -1552,19 +1551,18 @@ var sharedKey = sharedKey$3;
|
|
|
1552
1551
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1553
1552
|
|
|
1554
1553
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1555
|
-
var
|
|
1556
|
-
var ObjectPrototype =
|
|
1554
|
+
var Object$2 = global$z.Object;
|
|
1555
|
+
var ObjectPrototype = Object$2.prototype;
|
|
1557
1556
|
|
|
1558
1557
|
// `Object.getPrototypeOf` method
|
|
1559
1558
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1560
|
-
|
|
1561
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1559
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$2.getPrototypeOf : function (O) {
|
|
1562
1560
|
var object = toObject$4(O);
|
|
1563
1561
|
if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
|
|
1564
1562
|
var constructor = object.constructor;
|
|
1565
1563
|
if (isCallable$e(constructor) && object instanceof constructor) {
|
|
1566
1564
|
return constructor.prototype;
|
|
1567
|
-
} return object instanceof
|
|
1565
|
+
} return object instanceof Object$2 ? ObjectPrototype : null;
|
|
1568
1566
|
};
|
|
1569
1567
|
|
|
1570
1568
|
var fails$i = fails$t;
|
|
@@ -1641,14 +1639,15 @@ var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1641
1639
|
return IteratorConstructor;
|
|
1642
1640
|
};
|
|
1643
1641
|
|
|
1642
|
+
var global$y = global$U;
|
|
1644
1643
|
var isCallable$c = isCallable$p;
|
|
1645
1644
|
|
|
1646
|
-
var
|
|
1647
|
-
var
|
|
1645
|
+
var String$4 = global$y.String;
|
|
1646
|
+
var TypeError$c = global$y.TypeError;
|
|
1648
1647
|
|
|
1649
1648
|
var aPossiblePrototype$1 = function (argument) {
|
|
1650
1649
|
if (typeof argument == 'object' || isCallable$c(argument)) return argument;
|
|
1651
|
-
throw
|
|
1650
|
+
throw TypeError$c("Can't set " + String$4(argument) + ' as a prototype');
|
|
1652
1651
|
};
|
|
1653
1652
|
|
|
1654
1653
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1688,7 +1687,7 @@ var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
|
1688
1687
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1689
1688
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1690
1689
|
var setToStringTag$3 = setToStringTag$5;
|
|
1691
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$
|
|
1690
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
|
|
1692
1691
|
var defineBuiltIn$8 = defineBuiltIn$b;
|
|
1693
1692
|
var wellKnownSymbol$g = wellKnownSymbol$l;
|
|
1694
1693
|
var Iterators$3 = iterators;
|
|
@@ -1881,11 +1880,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1881
1880
|
|
|
1882
1881
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1883
1882
|
|
|
1884
|
-
var global$
|
|
1883
|
+
var global$x = global$U;
|
|
1885
1884
|
var DOMIterables = domIterables;
|
|
1886
1885
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1887
1886
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1888
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$
|
|
1887
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
|
|
1889
1888
|
var wellKnownSymbol$f = wellKnownSymbol$l;
|
|
1890
1889
|
|
|
1891
1890
|
var ITERATOR$7 = wellKnownSymbol$f('iterator');
|
|
@@ -1915,7 +1914,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1915
1914
|
};
|
|
1916
1915
|
|
|
1917
1916
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1918
|
-
handlePrototype(global$
|
|
1917
|
+
handlePrototype(global$x[COLLECTION_NAME] && global$x[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1919
1918
|
}
|
|
1920
1919
|
|
|
1921
1920
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1929,13 +1928,14 @@ test$1[TO_STRING_TAG$1] = 'z';
|
|
|
1929
1928
|
|
|
1930
1929
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1931
1930
|
|
|
1931
|
+
var global$w = global$U;
|
|
1932
1932
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1933
1933
|
var isCallable$a = isCallable$p;
|
|
1934
1934
|
var classofRaw = classofRaw$1;
|
|
1935
1935
|
var wellKnownSymbol$d = wellKnownSymbol$l;
|
|
1936
1936
|
|
|
1937
1937
|
var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
|
|
1938
|
-
var $
|
|
1938
|
+
var Object$1 = global$w.Object;
|
|
1939
1939
|
|
|
1940
1940
|
// ES3 wrong here
|
|
1941
1941
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1952,25 +1952,26 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1952
1952
|
var O, tag, result;
|
|
1953
1953
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1954
1954
|
// @@toStringTag case
|
|
1955
|
-
: typeof (tag = tryGet(O = $
|
|
1955
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1956
1956
|
// builtinTag case
|
|
1957
1957
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1958
1958
|
// ES3 arguments fallback
|
|
1959
1959
|
: (result = classofRaw(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
|
+
var global$v = global$U;
|
|
1962
1963
|
var classof$6 = classof$7;
|
|
1963
1964
|
|
|
1964
|
-
var
|
|
1965
|
+
var String$3 = global$v.String;
|
|
1965
1966
|
|
|
1966
1967
|
var toString$h = function (argument) {
|
|
1967
1968
|
if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1968
|
-
return
|
|
1969
|
+
return String$3(argument);
|
|
1969
1970
|
};
|
|
1970
1971
|
|
|
1971
1972
|
var $$k = _export;
|
|
1972
1973
|
var DESCRIPTORS$4 = descriptors;
|
|
1973
|
-
var global$
|
|
1974
|
+
var global$u = global$U;
|
|
1974
1975
|
var uncurryThis$l = functionUncurryThis;
|
|
1975
1976
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1976
1977
|
var isCallable$9 = isCallable$p;
|
|
@@ -1979,7 +1980,7 @@ var toString$g = toString$h;
|
|
|
1979
1980
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1980
1981
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1981
1982
|
|
|
1982
|
-
var NativeSymbol = global$
|
|
1983
|
+
var NativeSymbol = global$u.Symbol;
|
|
1983
1984
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
1984
1985
|
|
|
1985
1986
|
if (DESCRIPTORS$4 && isCallable$9(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
@@ -2059,13 +2060,14 @@ var isRegexp = function (it) {
|
|
|
2059
2060
|
return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');
|
|
2060
2061
|
};
|
|
2061
2062
|
|
|
2063
|
+
var global$t = global$U;
|
|
2062
2064
|
var isRegExp$2 = isRegexp;
|
|
2063
2065
|
|
|
2064
|
-
var
|
|
2066
|
+
var TypeError$b = global$t.TypeError;
|
|
2065
2067
|
|
|
2066
2068
|
var notARegexp = function (it) {
|
|
2067
2069
|
if (isRegExp$2(it)) {
|
|
2068
|
-
throw
|
|
2070
|
+
throw TypeError$b("The method doesn't accept regular expressions");
|
|
2069
2071
|
} return it;
|
|
2070
2072
|
};
|
|
2071
2073
|
|
|
@@ -2239,7 +2241,7 @@ Flex$1.displayName = 'Flex';
|
|
|
2239
2241
|
|
|
2240
2242
|
const _excluded$A = ["children"],
|
|
2241
2243
|
_excluded2$2 = ["children"];
|
|
2242
|
-
var _jsxFileName$$ = "
|
|
2244
|
+
var _jsxFileName$$ = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\layout\\grid\\Grid.js";
|
|
2243
2245
|
const GridComponent = styled('div', {
|
|
2244
2246
|
display: 'grid',
|
|
2245
2247
|
variants: {
|
|
@@ -2498,7 +2500,7 @@ GridItem.propTypes = {
|
|
|
2498
2500
|
GridItem.displayName = 'Grid Item';
|
|
2499
2501
|
|
|
2500
2502
|
const _excluded$z = ["children", "isCollapse", "css", "contentHeader"];
|
|
2501
|
-
var _jsxFileName$_ = "
|
|
2503
|
+
var _jsxFileName$_ = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\layout\\pageContainer\\PageContainer.js";
|
|
2502
2504
|
const StyledDiv$3 = styled(Flex$1, {
|
|
2503
2505
|
justifyContent: 'center',
|
|
2504
2506
|
marginLeft: 'auto',
|
|
@@ -2854,7 +2856,7 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2854
2856
|
});
|
|
2855
2857
|
|
|
2856
2858
|
const _excluded$y = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
2857
|
-
var _jsxFileName$Z = "
|
|
2859
|
+
var _jsxFileName$Z = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\toast\\Toast.js";
|
|
2858
2860
|
const TOAST_WIDTH = 576;
|
|
2859
2861
|
const ANIMATION_DURATION = 400;
|
|
2860
2862
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -3208,7 +3210,7 @@ Toast.defaultProps = {
|
|
|
3208
3210
|
|
|
3209
3211
|
const ToastContext = /*#__PURE__*/React.createContext({});
|
|
3210
3212
|
|
|
3211
|
-
var _jsxFileName$Y = "
|
|
3213
|
+
var _jsxFileName$Y = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\toast\\ToastContainer.js";
|
|
3212
3214
|
const ToastBox = styled(Flex$1, {
|
|
3213
3215
|
position: 'fixed',
|
|
3214
3216
|
variants: {
|
|
@@ -3284,7 +3286,7 @@ const ToastContainer = ({
|
|
|
3284
3286
|
};
|
|
3285
3287
|
|
|
3286
3288
|
const _excluded$x = ["id"];
|
|
3287
|
-
var _jsxFileName$X = "
|
|
3289
|
+
var _jsxFileName$X = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\toast\\context\\ToastProvider.js";
|
|
3288
3290
|
let toastCount = 0;
|
|
3289
3291
|
|
|
3290
3292
|
const ToastProvider = ({
|
|
@@ -3369,7 +3371,7 @@ const ToastProvider = ({
|
|
|
3369
3371
|
}));
|
|
3370
3372
|
};
|
|
3371
3373
|
|
|
3372
|
-
var _jsxFileName$W = "
|
|
3374
|
+
var _jsxFileName$W = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\majoo-provider\\MajooProvider.js";
|
|
3373
3375
|
|
|
3374
3376
|
function MajooProvider({
|
|
3375
3377
|
children,
|
|
@@ -3404,7 +3406,7 @@ MajooProvider.propTypes = {
|
|
|
3404
3406
|
};
|
|
3405
3407
|
|
|
3406
3408
|
const _excluded$w = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock"];
|
|
3407
|
-
var _jsxFileName$V = "
|
|
3409
|
+
var _jsxFileName$V = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\banner\\Banner.js";
|
|
3408
3410
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
3409
3411
|
const StyledBanner = styled(Flex$1, {
|
|
3410
3412
|
maxWidth: '100%',
|
|
@@ -3496,13 +3498,13 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
|
|
|
3496
3498
|
}
|
|
3497
3499
|
}), props.children);
|
|
3498
3500
|
BannerTitle.propTypes = {
|
|
3499
|
-
/**
|
|
3500
|
-
Additional styles of title
|
|
3501
|
+
/**
|
|
3502
|
+
Additional styles of title
|
|
3501
3503
|
*/
|
|
3502
3504
|
css: PropTypes.object,
|
|
3503
3505
|
|
|
3504
|
-
/**
|
|
3505
|
-
Title of the Banner to be displayed
|
|
3506
|
+
/**
|
|
3507
|
+
Title of the Banner to be displayed
|
|
3506
3508
|
*/
|
|
3507
3509
|
children: PropTypes.string
|
|
3508
3510
|
};
|
|
@@ -3518,13 +3520,13 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
|
|
|
3518
3520
|
}
|
|
3519
3521
|
}), props.children);
|
|
3520
3522
|
BannerDescription.propTypes = {
|
|
3521
|
-
/**
|
|
3522
|
-
Additional styles of description
|
|
3523
|
+
/**
|
|
3524
|
+
Additional styles of description
|
|
3523
3525
|
*/
|
|
3524
3526
|
css: PropTypes.object,
|
|
3525
3527
|
|
|
3526
|
-
/**
|
|
3527
|
-
Description of the Banner to be displayed
|
|
3528
|
+
/**
|
|
3529
|
+
Description of the Banner to be displayed
|
|
3528
3530
|
*/
|
|
3529
3531
|
children: PropTypes.string
|
|
3530
3532
|
};
|
|
@@ -3553,18 +3555,18 @@ const BannerLink = ({
|
|
|
3553
3555
|
}
|
|
3554
3556
|
}, children));
|
|
3555
3557
|
BannerLink.propTypes = {
|
|
3556
|
-
/**
|
|
3557
|
-
The purpose of a clickable link, presented in url
|
|
3558
|
+
/**
|
|
3559
|
+
The purpose of a clickable link, presented in url
|
|
3558
3560
|
*/
|
|
3559
3561
|
link: PropTypes.string,
|
|
3560
3562
|
|
|
3561
|
-
/**
|
|
3562
|
-
Text of BannerLink to be displayed
|
|
3563
|
+
/**
|
|
3564
|
+
Text of BannerLink to be displayed
|
|
3563
3565
|
*/
|
|
3564
3566
|
children: PropTypes.string,
|
|
3565
3567
|
|
|
3566
|
-
/**
|
|
3567
|
-
Additional theme of BannerLink is presented by color variants
|
|
3568
|
+
/**
|
|
3569
|
+
Additional theme of BannerLink is presented by color variants
|
|
3568
3570
|
*/
|
|
3569
3571
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed'])
|
|
3570
3572
|
};
|
|
@@ -3582,7 +3584,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
3582
3584
|
onClick: e => {
|
|
3583
3585
|
e.preventDefault();
|
|
3584
3586
|
e.stopPropagation();
|
|
3585
|
-
value
|
|
3587
|
+
value === null || value === void 0 ? void 0 : value.onRemove();
|
|
3586
3588
|
},
|
|
3587
3589
|
__self: undefined,
|
|
3588
3590
|
__source: {
|
|
@@ -3659,7 +3661,7 @@ const SingleTagBanner = props => {
|
|
|
3659
3661
|
onClick: e => {
|
|
3660
3662
|
e.preventDefault();
|
|
3661
3663
|
e.stopPropagation();
|
|
3662
|
-
props
|
|
3664
|
+
props === null || props === void 0 ? void 0 : props.onRemove();
|
|
3663
3665
|
},
|
|
3664
3666
|
closeCenter: !props.title && !props.link,
|
|
3665
3667
|
__self: undefined,
|
|
@@ -3755,43 +3757,43 @@ Banner.displayName = 'Banner';
|
|
|
3755
3757
|
BannerTitle.displayName = 'BannerTitle';
|
|
3756
3758
|
BannerDescription.displayName = 'BannerDescription';
|
|
3757
3759
|
Banner.propTypes = {
|
|
3758
|
-
/**
|
|
3759
|
-
Title of banner to be displayed
|
|
3760
|
+
/**
|
|
3761
|
+
Title of banner to be displayed
|
|
3760
3762
|
*/
|
|
3761
3763
|
title: PropTypes.string,
|
|
3762
3764
|
|
|
3763
|
-
/**
|
|
3764
|
-
Description of banner to be displayed
|
|
3765
|
+
/**
|
|
3766
|
+
Description of banner to be displayed
|
|
3765
3767
|
*/
|
|
3766
3768
|
description: PropTypes.string,
|
|
3767
3769
|
|
|
3768
|
-
/**
|
|
3769
|
-
The banner theme is presented in color variants
|
|
3770
|
+
/**
|
|
3771
|
+
The banner theme is presented in color variants
|
|
3770
3772
|
*/
|
|
3771
3773
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed']),
|
|
3772
3774
|
|
|
3773
|
-
/**
|
|
3774
|
-
The purpose of a clickable link, presented in url
|
|
3775
|
+
/**
|
|
3776
|
+
The purpose of a clickable link, presented in url
|
|
3775
3777
|
*/
|
|
3776
3778
|
link: PropTypes.string,
|
|
3777
3779
|
|
|
3778
|
-
/**
|
|
3779
|
-
Text of button link to be displayed
|
|
3780
|
+
/**
|
|
3781
|
+
Text of button link to be displayed
|
|
3780
3782
|
*/
|
|
3781
3783
|
linkText: PropTypes.string,
|
|
3782
3784
|
|
|
3783
|
-
/**
|
|
3784
|
-
Clickable event handler
|
|
3785
|
+
/**
|
|
3786
|
+
Clickable event handler
|
|
3785
3787
|
*/
|
|
3786
3788
|
onClick: PropTypes.func,
|
|
3787
3789
|
|
|
3788
|
-
/**
|
|
3789
|
-
Closable event handler
|
|
3790
|
+
/**
|
|
3791
|
+
Closable event handler
|
|
3790
3792
|
*/
|
|
3791
3793
|
onRemove: PropTypes.func,
|
|
3792
3794
|
|
|
3793
|
-
/**
|
|
3794
|
-
Block type banner to display in full width
|
|
3795
|
+
/**
|
|
3796
|
+
Block type banner to display in full width
|
|
3795
3797
|
*/
|
|
3796
3798
|
bannerBlock: PropTypes.bool
|
|
3797
3799
|
};
|
|
@@ -4088,7 +4090,7 @@ const Button$3 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
4088
4090
|
});
|
|
4089
4091
|
|
|
4090
4092
|
const _excluded$v = ["className", "children", "color", "shadow", "radius", "padding", "title", "width", "textColor", "icon"];
|
|
4091
|
-
var _jsxFileName$U = "
|
|
4093
|
+
var _jsxFileName$U = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\card\\Card.js";
|
|
4092
4094
|
const CardComponent = styled('div', {
|
|
4093
4095
|
padding: '12px',
|
|
4094
4096
|
height: 'auto',
|
|
@@ -4296,7 +4298,7 @@ Card$1.defaultProps = {
|
|
|
4296
4298
|
};
|
|
4297
4299
|
|
|
4298
4300
|
const _excluded$u = ["children"];
|
|
4299
|
-
var _jsxFileName$T = "
|
|
4301
|
+
var _jsxFileName$T = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\breadcrumb\\Breadcrumb.js";
|
|
4300
4302
|
const BreadcrumbStyle = styled('nav', {
|
|
4301
4303
|
wordWrap: 'break-word',
|
|
4302
4304
|
'& li+li:before': {
|
|
@@ -4572,7 +4574,7 @@ Badge.defaultProps = {
|
|
|
4572
4574
|
Badge.displayName = 'Badge';
|
|
4573
4575
|
|
|
4574
4576
|
const _excluded$t = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
4575
|
-
var _jsxFileName$S = "
|
|
4577
|
+
var _jsxFileName$S = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\avatar\\Avatar.js";
|
|
4576
4578
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
4577
4579
|
width: '32px',
|
|
4578
4580
|
height: '32px',
|
|
@@ -4675,7 +4677,7 @@ Avatar.defaultProps = {
|
|
|
4675
4677
|
};
|
|
4676
4678
|
|
|
4677
4679
|
const _excluded$s = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
4678
|
-
var _jsxFileName$R = "
|
|
4680
|
+
var _jsxFileName$R = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\image\\Image.js";
|
|
4679
4681
|
const ContainerFallback = styled(Flex$1, {
|
|
4680
4682
|
boxSizing: 'border-box',
|
|
4681
4683
|
border: '2px dashed #C0C4C4',
|
|
@@ -4772,58 +4774,58 @@ function Image(_ref) {
|
|
|
4772
4774
|
}
|
|
4773
4775
|
}
|
|
4774
4776
|
Image.propTypes = {
|
|
4775
|
-
/**
|
|
4776
|
-
Additional className for img element.
|
|
4777
|
+
/**
|
|
4778
|
+
Additional className for img element.
|
|
4777
4779
|
*/
|
|
4778
4780
|
className: PropTypes.string,
|
|
4779
4781
|
|
|
4780
|
-
/**
|
|
4781
|
-
Which is used to specify the source of an image.
|
|
4782
|
+
/**
|
|
4783
|
+
Which is used to specify the source of an image.
|
|
4782
4784
|
*/
|
|
4783
4785
|
src: PropTypes.string,
|
|
4784
4786
|
|
|
4785
|
-
/**
|
|
4786
|
-
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4787
|
+
/**
|
|
4788
|
+
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4787
4789
|
*/
|
|
4788
4790
|
alt: PropTypes.string,
|
|
4789
4791
|
|
|
4790
|
-
/**
|
|
4791
|
-
Additional css for img element.
|
|
4792
|
+
/**
|
|
4793
|
+
Additional css for img element.
|
|
4792
4794
|
*/
|
|
4793
4795
|
css: PropTypes.object,
|
|
4794
4796
|
|
|
4795
|
-
/**
|
|
4796
|
-
Additional css for default fallback element.
|
|
4797
|
+
/**
|
|
4798
|
+
Additional css for default fallback element.
|
|
4797
4799
|
*/
|
|
4798
4800
|
cssFallback: PropTypes.object,
|
|
4799
4801
|
|
|
4800
|
-
/**
|
|
4801
|
-
Custom width of img element.
|
|
4802
|
+
/**
|
|
4803
|
+
Custom width of img element.
|
|
4802
4804
|
*/
|
|
4803
4805
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4804
4806
|
|
|
4805
|
-
/**
|
|
4806
|
-
Custom height of img element.
|
|
4807
|
+
/**
|
|
4808
|
+
Custom height of img element.
|
|
4807
4809
|
*/
|
|
4808
4810
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4809
4811
|
|
|
4810
|
-
/**
|
|
4811
|
-
Set image to circle.
|
|
4812
|
+
/**
|
|
4813
|
+
Set image to circle.
|
|
4812
4814
|
*/
|
|
4813
4815
|
rounded: PropTypes.bool,
|
|
4814
4816
|
|
|
4815
|
-
/**
|
|
4816
|
-
Used to specify how an <img> should be resized to fit its container.
|
|
4817
|
+
/**
|
|
4818
|
+
Used to specify how an <img> should be resized to fit its container.
|
|
4817
4819
|
*/
|
|
4818
4820
|
objectFit: PropTypes.string,
|
|
4819
4821
|
|
|
4820
|
-
/**
|
|
4821
|
-
Custom fallback if image url doesn't exist.
|
|
4822
|
+
/**
|
|
4823
|
+
Custom fallback if image url doesn't exist.
|
|
4822
4824
|
*/
|
|
4823
4825
|
fallback: PropTypes.string,
|
|
4824
4826
|
|
|
4825
|
-
/**
|
|
4826
|
-
Custom fallback title for default fallback.
|
|
4827
|
+
/**
|
|
4828
|
+
Custom fallback title for default fallback.
|
|
4827
4829
|
*/
|
|
4828
4830
|
fallbackTitle: PropTypes.string
|
|
4829
4831
|
};
|
|
@@ -4833,7 +4835,7 @@ Image.defaultProps = {
|
|
|
4833
4835
|
};
|
|
4834
4836
|
|
|
4835
4837
|
const _excluded$r = ["children", "label", "color", "css", "withClick", "side", "align"];
|
|
4836
|
-
var _jsxFileName$Q = "
|
|
4838
|
+
var _jsxFileName$Q = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\tooltip\\Tooltip.js";
|
|
4837
4839
|
const {
|
|
4838
4840
|
zIndices: zIndices$1
|
|
4839
4841
|
} = foundations;
|
|
@@ -5034,7 +5036,7 @@ Tooltip$1.defaultProps = {
|
|
|
5034
5036
|
};
|
|
5035
5037
|
|
|
5036
5038
|
const _excluded$q = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
5037
|
-
var _jsxFileName$P = "
|
|
5039
|
+
var _jsxFileName$P = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\progress\\Progress.js";
|
|
5038
5040
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
5039
5041
|
position: 'relative',
|
|
5040
5042
|
overflow: 'hidden',
|
|
@@ -5295,7 +5297,7 @@ const FormGroup = styled('div', {
|
|
|
5295
5297
|
FormGroup.displayName = 'FormGroup';
|
|
5296
5298
|
|
|
5297
5299
|
const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
5298
|
-
var _jsxFileName$O = "
|
|
5300
|
+
var _jsxFileName$O = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\FormLabel\\Label.js";
|
|
5299
5301
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
5300
5302
|
display: 'inline-block',
|
|
5301
5303
|
fontSize: '$label',
|
|
@@ -5415,7 +5417,7 @@ FormLabel.defaultProps = {
|
|
|
5415
5417
|
FormLabel.displayName = 'FormLabel';
|
|
5416
5418
|
|
|
5417
5419
|
const _excluded$o = ["children", "error", "errorMessage"];
|
|
5418
|
-
var _jsxFileName$N = "
|
|
5420
|
+
var _jsxFileName$N = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\FormHelper\\Helper.js";
|
|
5419
5421
|
const StyledHelper = styled(Text$1, {
|
|
5420
5422
|
display: 'inline-block',
|
|
5421
5423
|
color: '$textSecondary',
|
|
@@ -5476,7 +5478,7 @@ FormHelper.propTypes = {
|
|
|
5476
5478
|
};
|
|
5477
5479
|
FormHelper.displayName = 'FormHelper';
|
|
5478
5480
|
|
|
5479
|
-
var _jsxFileName$M = "
|
|
5481
|
+
var _jsxFileName$M = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputCheckbox\\CheckboxGroup.js";
|
|
5480
5482
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
5481
5483
|
|
|
5482
5484
|
const CheckboxGroup = ({
|
|
@@ -5539,7 +5541,7 @@ CheckboxGroup.defaultProps = {
|
|
|
5539
5541
|
};
|
|
5540
5542
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
5541
5543
|
|
|
5542
|
-
var _jsxFileName$L = "
|
|
5544
|
+
var _jsxFileName$L = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputCheckbox\\icon\\CheckOutline.js";
|
|
5543
5545
|
|
|
5544
5546
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5545
5547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5587,7 +5589,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
5587
5589
|
}
|
|
5588
5590
|
}));
|
|
5589
5591
|
|
|
5590
|
-
var _jsxFileName$K = "
|
|
5592
|
+
var _jsxFileName$K = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputCheckbox\\icon\\MinusOutline.js";
|
|
5591
5593
|
|
|
5592
5594
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5593
5595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5636,7 +5638,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
5636
5638
|
}));
|
|
5637
5639
|
|
|
5638
5640
|
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
5639
|
-
var _jsxFileName$J = "
|
|
5641
|
+
var _jsxFileName$J = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputCheckbox\\InputCheckbox.js";
|
|
5640
5642
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
5641
5643
|
alignItems: 'center',
|
|
5642
5644
|
display: 'flex',
|
|
@@ -5701,7 +5703,7 @@ const Checkbox = _ref => {
|
|
|
5701
5703
|
const [isChecked, setChecked] = useState(false);
|
|
5702
5704
|
useEffect(() => {
|
|
5703
5705
|
const checkValue = context && context.checkedItems.includes(value) || checked || indeterminate;
|
|
5704
|
-
setChecked(checkValue
|
|
5706
|
+
setChecked(checkValue !== null && checkValue !== void 0 ? checkValue : false);
|
|
5705
5707
|
}, [checked, indeterminate, context]);
|
|
5706
5708
|
return /*#__PURE__*/React__default.createElement(StyledCheckbox, _extends({
|
|
5707
5709
|
id: id,
|
|
@@ -5802,7 +5804,7 @@ InputCheckbox.propTypes = {
|
|
|
5802
5804
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
5803
5805
|
|
|
5804
5806
|
const _excluded$m = ["children", "size"];
|
|
5805
|
-
var _jsxFileName$I = "
|
|
5807
|
+
var _jsxFileName$I = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputGroup\\InputGroup.js";
|
|
5806
5808
|
const InputGroupStyle = styled('div', {
|
|
5807
5809
|
display: 'flex',
|
|
5808
5810
|
width: '100%',
|
|
@@ -5949,13 +5951,13 @@ const InputGroup = _ref => {
|
|
|
5949
5951
|
}));
|
|
5950
5952
|
};
|
|
5951
5953
|
InputGroup.propTypes = {
|
|
5952
|
-
/**
|
|
5953
|
-
Adjust Input Text Size
|
|
5954
|
+
/**
|
|
5955
|
+
Adjust Input Text Size
|
|
5954
5956
|
*/
|
|
5955
5957
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
5956
5958
|
|
|
5957
|
-
/**
|
|
5958
|
-
Children must be InputText, InputAddon, or InputPrefixes
|
|
5959
|
+
/**
|
|
5960
|
+
Children must be InputText, InputAddon, or InputPrefixes
|
|
5959
5961
|
*/
|
|
5960
5962
|
children: PropTypes.node.isRequired,
|
|
5961
5963
|
|
|
@@ -6121,7 +6123,7 @@ InputSuffix.propTypes = {
|
|
|
6121
6123
|
};
|
|
6122
6124
|
|
|
6123
6125
|
const _excluded$l = ["disabled", "readOnly"];
|
|
6124
|
-
var _jsxFileName$H = "
|
|
6126
|
+
var _jsxFileName$H = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputText\\InputText.js";
|
|
6125
6127
|
const disabledStyle = {
|
|
6126
6128
|
backgroundColor: '$formDisable',
|
|
6127
6129
|
color: '$textDisable',
|
|
@@ -6283,7 +6285,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6283
6285
|
InputText.displayName = 'InputText';
|
|
6284
6286
|
|
|
6285
6287
|
const _excluded$k = ["disabled", "readOnly"];
|
|
6286
|
-
var _jsxFileName$G = "
|
|
6288
|
+
var _jsxFileName$G = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputTextArea\\InputTextArea.js";
|
|
6287
6289
|
const StyledTextArea = styled(StyledInput$1, {
|
|
6288
6290
|
variants: {
|
|
6289
6291
|
size: {
|
|
@@ -6309,15 +6311,15 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6309
6311
|
const textareaRef = useRef(null);
|
|
6310
6312
|
useEffect(() => {
|
|
6311
6313
|
if (textareaRef.current) {
|
|
6312
|
-
textareaRef.current.style.height = '
|
|
6313
|
-
const scrollHeight = textareaRef
|
|
6314
|
-
textareaRef.current.style.height = scrollHeight +
|
|
6314
|
+
textareaRef.current.style.height = '50px';
|
|
6315
|
+
const scrollHeight = textareaRef === null || textareaRef === void 0 ? void 0 : textareaRef.current.scrollHeight;
|
|
6316
|
+
textareaRef.current.style.height = scrollHeight + 5 + 'px';
|
|
6315
6317
|
}
|
|
6316
6318
|
}, []);
|
|
6317
6319
|
|
|
6318
6320
|
function handleKeyDown(e) {
|
|
6319
|
-
e.target.style.height = '
|
|
6320
|
-
e.target.style.height = `${e.target.scrollHeight +
|
|
6321
|
+
e.target.style.height = '50px';
|
|
6322
|
+
e.target.style.height = `${e.target.scrollHeight + 5}px`;
|
|
6321
6323
|
}
|
|
6322
6324
|
|
|
6323
6325
|
return /*#__PURE__*/React__default.createElement(StyledTextArea, _extends({
|
|
@@ -6349,10 +6351,10 @@ InputTextArea.defaultProps = {
|
|
|
6349
6351
|
|
|
6350
6352
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
6351
6353
|
|
|
6352
|
-
var _jsxFileName$F = "
|
|
6354
|
+
var _jsxFileName$F = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputRadio\\InputRadioGroup.js";
|
|
6353
6355
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
6354
6356
|
function InputRadioGroup(props) {
|
|
6355
|
-
return (props
|
|
6357
|
+
return (props === null || props === void 0 ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
6356
6358
|
value: props,
|
|
6357
6359
|
__self: this,
|
|
6358
6360
|
__source: {
|
|
@@ -6367,7 +6369,7 @@ function InputRadioGroup(props) {
|
|
|
6367
6369
|
lineNumber: 14,
|
|
6368
6370
|
columnNumber: 9
|
|
6369
6371
|
}
|
|
6370
|
-
}), React__default.Children.map(props
|
|
6372
|
+
}), React__default.Children.map(props === null || props === void 0 ? void 0 : props.children, child => /*#__PURE__*/React__default.cloneElement(child, {
|
|
6371
6373
|
style: Object.assign({}, child.props.style, {
|
|
6372
6374
|
opacity: 1
|
|
6373
6375
|
})
|
|
@@ -6382,7 +6384,7 @@ InputRadioGroup.propTypes = {
|
|
|
6382
6384
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
6383
6385
|
|
|
6384
6386
|
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
6385
|
-
var _jsxFileName$E = "
|
|
6387
|
+
var _jsxFileName$E = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputRadio\\InputRadio.js";
|
|
6386
6388
|
const INDICATOR_BASE_STYLES = {
|
|
6387
6389
|
alignItems: 'center',
|
|
6388
6390
|
display: 'flex',
|
|
@@ -6581,7 +6583,7 @@ const InputRadio = _ref => {
|
|
|
6581
6583
|
value,
|
|
6582
6584
|
outlined
|
|
6583
6585
|
}) => {
|
|
6584
|
-
const checked = value
|
|
6586
|
+
const checked = value !== null && value !== void 0 ? value : defaultValue;
|
|
6585
6587
|
return /*#__PURE__*/React__default.createElement(Container$8, {
|
|
6586
6588
|
direction: "column",
|
|
6587
6589
|
outlined: outlined,
|
|
@@ -6680,7 +6682,7 @@ InputRightElement.propTypes = {
|
|
|
6680
6682
|
InputRightElement.name = 'InputRightElement';
|
|
6681
6683
|
|
|
6682
6684
|
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled"];
|
|
6683
|
-
var _jsxFileName$D = "
|
|
6685
|
+
var _jsxFileName$D = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputNumber\\InputNumber.js";
|
|
6684
6686
|
const StyledInput = styled(NumberFormat, {
|
|
6685
6687
|
// Reset
|
|
6686
6688
|
appearance: 'none',
|
|
@@ -6831,7 +6833,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6831
6833
|
size: size,
|
|
6832
6834
|
isInvalid: isInvalid,
|
|
6833
6835
|
readOnly: readOnly,
|
|
6834
|
-
isReadOnly: readOnly && !(props
|
|
6836
|
+
isReadOnly: readOnly && !(props !== null && props !== void 0 && props.inputGroup),
|
|
6835
6837
|
disabled: disabled
|
|
6836
6838
|
}, props, {
|
|
6837
6839
|
__self: undefined,
|
|
@@ -6890,7 +6892,6 @@ var regexpFlags$1 = function () {
|
|
|
6890
6892
|
if (that.multiline) result += 'm';
|
|
6891
6893
|
if (that.dotAll) result += 's';
|
|
6892
6894
|
if (that.unicode) result += 'u';
|
|
6893
|
-
if (that.unicodeSets) result += 'v';
|
|
6894
6895
|
if (that.sticky) result += 'y';
|
|
6895
6896
|
return result;
|
|
6896
6897
|
};
|
|
@@ -6909,10 +6910,10 @@ var regexpGetFlags = function (R) {
|
|
|
6909
6910
|
};
|
|
6910
6911
|
|
|
6911
6912
|
var fails$g = fails$t;
|
|
6912
|
-
var global$
|
|
6913
|
+
var global$s = global$U;
|
|
6913
6914
|
|
|
6914
6915
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
6915
|
-
var $RegExp$2 = global$
|
|
6916
|
+
var $RegExp$2 = global$s.RegExp;
|
|
6916
6917
|
|
|
6917
6918
|
var UNSUPPORTED_Y$3 = fails$g(function () {
|
|
6918
6919
|
var re = $RegExp$2('a', 'y');
|
|
@@ -6969,10 +6970,10 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
6969
6970
|
};
|
|
6970
6971
|
|
|
6971
6972
|
var fails$f = fails$t;
|
|
6972
|
-
var global$
|
|
6973
|
+
var global$r = global$U;
|
|
6973
6974
|
|
|
6974
6975
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
6975
|
-
var $RegExp$1 = global$
|
|
6976
|
+
var $RegExp$1 = global$r.RegExp;
|
|
6976
6977
|
|
|
6977
6978
|
var regexpUnsupportedDotAll = fails$f(function () {
|
|
6978
6979
|
var re = $RegExp$1('.', 's');
|
|
@@ -6980,10 +6981,10 @@ var regexpUnsupportedDotAll = fails$f(function () {
|
|
|
6980
6981
|
});
|
|
6981
6982
|
|
|
6982
6983
|
var fails$e = fails$t;
|
|
6983
|
-
var global$
|
|
6984
|
+
var global$q = global$U;
|
|
6984
6985
|
|
|
6985
6986
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
6986
|
-
var $RegExp = global$
|
|
6987
|
+
var $RegExp = global$q.RegExp;
|
|
6987
6988
|
|
|
6988
6989
|
var regexpUnsupportedNcg = fails$e(function () {
|
|
6989
6990
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -6992,11 +6993,11 @@ var regexpUnsupportedNcg = fails$e(function () {
|
|
|
6992
6993
|
});
|
|
6993
6994
|
|
|
6994
6995
|
var DESCRIPTORS$2 = descriptors;
|
|
6995
|
-
var global$
|
|
6996
|
+
var global$p = global$U;
|
|
6996
6997
|
var uncurryThis$j = functionUncurryThis;
|
|
6997
6998
|
var isForced$1 = isForced_1;
|
|
6998
6999
|
var inheritIfRequired = inheritIfRequired$1;
|
|
6999
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
7000
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
|
|
7000
7001
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
7001
7002
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
7002
7003
|
var isRegExp$1 = isRegexp;
|
|
@@ -7014,15 +7015,15 @@ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
|
7014
7015
|
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
7015
7016
|
|
|
7016
7017
|
var MATCH = wellKnownSymbol$9('match');
|
|
7017
|
-
var NativeRegExp = global$
|
|
7018
|
+
var NativeRegExp = global$p.RegExp;
|
|
7018
7019
|
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
7019
|
-
var SyntaxError = global$
|
|
7020
|
+
var SyntaxError = global$p.SyntaxError;
|
|
7020
7021
|
var exec$6 = uncurryThis$j(RegExpPrototype$2.exec);
|
|
7021
7022
|
var charAt$8 = uncurryThis$j(''.charAt);
|
|
7022
7023
|
var replace$6 = uncurryThis$j(''.replace);
|
|
7023
7024
|
var stringIndexOf$1 = uncurryThis$j(''.indexOf);
|
|
7024
7025
|
var stringSlice$9 = uncurryThis$j(''.slice);
|
|
7025
|
-
// TODO: Use only
|
|
7026
|
+
// TODO: Use only propper RegExpIdentifierName
|
|
7026
7027
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
7027
7028
|
var re1 = /a/g;
|
|
7028
7029
|
var re2 = /a/g;
|
|
@@ -7176,7 +7177,7 @@ if (isForced$1('RegExp', BASE_FORCED)) {
|
|
|
7176
7177
|
|
|
7177
7178
|
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
7178
7179
|
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
7179
|
-
defineBuiltIn$7(global$
|
|
7180
|
+
defineBuiltIn$7(global$p, 'RegExp', RegExpWrapper, { constructor: true });
|
|
7180
7181
|
}
|
|
7181
7182
|
|
|
7182
7183
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -7277,7 +7278,7 @@ if (PATCH) {
|
|
|
7277
7278
|
}
|
|
7278
7279
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
7279
7280
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
7280
|
-
// for NPCG, like IE8. NOTE: This doesn'
|
|
7281
|
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
7281
7282
|
call$f(nativeReplace, match[0], reCopy, function () {
|
|
7282
7283
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
7283
7284
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
@@ -7335,7 +7336,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
7335
7336
|
}
|
|
7336
7337
|
|
|
7337
7338
|
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
7338
|
-
var _jsxFileName$C = "
|
|
7339
|
+
var _jsxFileName$C = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\tag\\Tag.js";
|
|
7339
7340
|
const TagWrapper$3 = styled('div', {
|
|
7340
7341
|
boxSizing: 'border-box',
|
|
7341
7342
|
listStyle: 'none',
|
|
@@ -7512,7 +7513,7 @@ Tag.defaultProps = {
|
|
|
7512
7513
|
};
|
|
7513
7514
|
|
|
7514
7515
|
const _excluded$g = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
|
|
7515
|
-
var _jsxFileName$B = "
|
|
7516
|
+
var _jsxFileName$B = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputTags\\InputTags.js";
|
|
7516
7517
|
const Wrapper$2 = styled('div', {
|
|
7517
7518
|
margin: 0,
|
|
7518
7519
|
flexDirection: 'column',
|
|
@@ -7648,18 +7649,18 @@ function TagsInput(_ref) {
|
|
|
7648
7649
|
const addTags = event => {
|
|
7649
7650
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
7650
7651
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
7651
|
-
onEnter
|
|
7652
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter({
|
|
7652
7653
|
key: 'duplicate',
|
|
7653
7654
|
value: event.target.value
|
|
7654
7655
|
});
|
|
7655
7656
|
return;
|
|
7656
7657
|
}
|
|
7657
7658
|
|
|
7658
|
-
if (pattern && pattern
|
|
7659
|
+
if (pattern && pattern !== null && pattern !== void 0 && pattern.regex) {
|
|
7659
7660
|
const regex = new RegExp(pattern.regex);
|
|
7660
7661
|
|
|
7661
7662
|
if (!regex.test(event.target.value)) {
|
|
7662
|
-
onEnter
|
|
7663
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter({
|
|
7663
7664
|
key: 'error',
|
|
7664
7665
|
value: event.target.value
|
|
7665
7666
|
});
|
|
@@ -7669,7 +7670,7 @@ function TagsInput(_ref) {
|
|
|
7669
7670
|
}
|
|
7670
7671
|
|
|
7671
7672
|
setRegexError(false);
|
|
7672
|
-
onEnter
|
|
7673
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter({
|
|
7673
7674
|
key: 'success',
|
|
7674
7675
|
value: event.target.value
|
|
7675
7676
|
});
|
|
@@ -7682,7 +7683,7 @@ function TagsInput(_ref) {
|
|
|
7682
7683
|
if (disabled || readOnly) {
|
|
7683
7684
|
return tags;
|
|
7684
7685
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
7685
|
-
onRemoveItem
|
|
7686
|
+
onRemoveItem === null || onRemoveItem === void 0 ? void 0 : onRemoveItem(tags[index]);
|
|
7686
7687
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
7687
7688
|
}
|
|
7688
7689
|
}; // const handleErrorMessage = () => {
|
|
@@ -7730,7 +7731,7 @@ function TagsInput(_ref) {
|
|
|
7730
7731
|
lineNumber: 180,
|
|
7731
7732
|
columnNumber: 9
|
|
7732
7733
|
}
|
|
7733
|
-
})), regexError && pattern && (pattern
|
|
7734
|
+
})), regexError && pattern && (pattern !== null && pattern !== void 0 && pattern.errorMessage ? /*#__PURE__*/React__default.createElement(FormHelper, {
|
|
7734
7735
|
color: "red",
|
|
7735
7736
|
__self: this,
|
|
7736
7737
|
__source: {
|
|
@@ -7812,7 +7813,7 @@ TagsInput.defaultProps = {
|
|
|
7812
7813
|
};
|
|
7813
7814
|
|
|
7814
7815
|
const _excluded$f = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
|
|
7815
|
-
var _jsxFileName$A = "
|
|
7816
|
+
var _jsxFileName$A = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSwitch\\InputSwitch.js";
|
|
7816
7817
|
const StyledThumb$1 = styled(SwitchPrimitive.Thumb, {
|
|
7817
7818
|
display: 'block',
|
|
7818
7819
|
width: '16px',
|
|
@@ -7920,7 +7921,7 @@ InputSwitch.propTypes = {
|
|
|
7920
7921
|
};
|
|
7921
7922
|
InputSwitch.displayName = 'InputSwitch';
|
|
7922
7923
|
|
|
7923
|
-
var _jsxFileName$z = "
|
|
7924
|
+
var _jsxFileName$z = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSearchbox\\CloseFilled.js";
|
|
7924
7925
|
|
|
7925
7926
|
const SvgCloseFilled = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7926
7927
|
width: props.size,
|
|
@@ -7981,7 +7982,7 @@ SvgCloseFilled.defaultProps = {
|
|
|
7981
7982
|
size: 24
|
|
7982
7983
|
};
|
|
7983
7984
|
|
|
7984
|
-
var _jsxFileName$y = "
|
|
7985
|
+
var _jsxFileName$y = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSearchbox\\SearchOutline.js";
|
|
7985
7986
|
|
|
7986
7987
|
const SvgSearchOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7987
7988
|
width: props.size,
|
|
@@ -8024,7 +8025,7 @@ SvgSearchOutline.defaultProps = {
|
|
|
8024
8025
|
};
|
|
8025
8026
|
|
|
8026
8027
|
const _excluded$e = ["size", "onChange", "css", "disabled"];
|
|
8027
|
-
var _jsxFileName$x = "
|
|
8028
|
+
var _jsxFileName$x = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSearchbox\\InputSearchbox.js";
|
|
8028
8029
|
|
|
8029
8030
|
const InputSearchbox = _ref => {
|
|
8030
8031
|
let {
|
|
@@ -8139,7 +8140,7 @@ var defineBuiltIn$5 = defineBuiltIn$b;
|
|
|
8139
8140
|
var regexpExec$2 = regexpExec$3;
|
|
8140
8141
|
var fails$b = fails$t;
|
|
8141
8142
|
var wellKnownSymbol$8 = wellKnownSymbol$l;
|
|
8142
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
8143
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$7;
|
|
8143
8144
|
|
|
8144
8145
|
var SPECIES$2 = wellKnownSymbol$8('species');
|
|
8145
8146
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -8214,13 +8215,14 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
8214
8215
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
8215
8216
|
};
|
|
8216
8217
|
|
|
8218
|
+
var global$o = global$U;
|
|
8217
8219
|
var call$e = functionCall;
|
|
8218
8220
|
var anObject$a = anObject$i;
|
|
8219
8221
|
var isCallable$7 = isCallable$p;
|
|
8220
8222
|
var classof$4 = classofRaw$1;
|
|
8221
8223
|
var regexpExec$1 = regexpExec$3;
|
|
8222
8224
|
|
|
8223
|
-
var
|
|
8225
|
+
var TypeError$a = global$o.TypeError;
|
|
8224
8226
|
|
|
8225
8227
|
// `RegExpExec` abstract operation
|
|
8226
8228
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -8232,7 +8234,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
8232
8234
|
return result;
|
|
8233
8235
|
}
|
|
8234
8236
|
if (classof$4(R) === 'RegExp') return call$e(regexpExec$1, R, S);
|
|
8235
|
-
throw
|
|
8237
|
+
throw TypeError$a('RegExp#exec called on incompatible receiver');
|
|
8236
8238
|
};
|
|
8237
8239
|
|
|
8238
8240
|
var call$d = functionCall;
|
|
@@ -8786,7 +8788,8 @@ function InputSelect(_a) {
|
|
|
8786
8788
|
suppressRefError: true
|
|
8787
8789
|
}), {
|
|
8788
8790
|
css: {
|
|
8789
|
-
display: isOpen ? 'block' : 'none'
|
|
8791
|
+
display: isOpen ? 'block' : 'none',
|
|
8792
|
+
zIndex: '$popover'
|
|
8790
8793
|
},
|
|
8791
8794
|
placement: placement
|
|
8792
8795
|
}, {
|
|
@@ -8863,14 +8866,6 @@ function InputSelect(_a) {
|
|
|
8863
8866
|
}), void 0);
|
|
8864
8867
|
}
|
|
8865
8868
|
|
|
8866
|
-
var tryToString$3 = tryToString$5;
|
|
8867
|
-
|
|
8868
|
-
var $TypeError$6 = TypeError;
|
|
8869
|
-
|
|
8870
|
-
var deletePropertyOrThrow$1 = function (O, P) {
|
|
8871
|
-
if (!delete O[P]) throw $TypeError$6('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
8872
|
-
};
|
|
8873
|
-
|
|
8874
8869
|
var toPropertyKey = toPropertyKey$3;
|
|
8875
8870
|
var definePropertyModule = objectDefineProperty;
|
|
8876
8871
|
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
@@ -8881,18 +8876,19 @@ var createProperty$2 = function (object, key, value) {
|
|
|
8881
8876
|
else object[propertyKey] = value;
|
|
8882
8877
|
};
|
|
8883
8878
|
|
|
8879
|
+
var global$n = global$U;
|
|
8884
8880
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
8885
8881
|
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
|
8886
8882
|
var createProperty$1 = createProperty$2;
|
|
8887
8883
|
|
|
8888
|
-
var
|
|
8884
|
+
var Array$2 = global$n.Array;
|
|
8889
8885
|
var max$1 = Math.max;
|
|
8890
8886
|
|
|
8891
8887
|
var arraySliceSimple = function (O, start, end) {
|
|
8892
8888
|
var length = lengthOfArrayLike$4(O);
|
|
8893
8889
|
var k = toAbsoluteIndex(start, length);
|
|
8894
8890
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
8895
|
-
var result =
|
|
8891
|
+
var result = Array$2(max$1(fin - k, 0));
|
|
8896
8892
|
for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
|
|
8897
8893
|
result.length = n;
|
|
8898
8894
|
return result;
|
|
@@ -8974,7 +8970,6 @@ var uncurryThis$g = functionUncurryThis;
|
|
|
8974
8970
|
var aCallable$7 = aCallable$9;
|
|
8975
8971
|
var toObject$3 = toObject$7;
|
|
8976
8972
|
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
|
8977
|
-
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
8978
8973
|
var toString$b = toString$h;
|
|
8979
8974
|
var fails$9 = fails$t;
|
|
8980
8975
|
var internalSort = arraySort$1;
|
|
@@ -9069,18 +9064,19 @@ $$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
|
9069
9064
|
index = 0;
|
|
9070
9065
|
|
|
9071
9066
|
while (index < itemsLength) array[index] = items[index++];
|
|
9072
|
-
while (index < arrayLength)
|
|
9067
|
+
while (index < arrayLength) delete array[index++];
|
|
9073
9068
|
|
|
9074
9069
|
return array;
|
|
9075
9070
|
}
|
|
9076
9071
|
});
|
|
9077
9072
|
|
|
9073
|
+
var global$m = global$U;
|
|
9078
9074
|
var aCallable$6 = aCallable$9;
|
|
9079
9075
|
var toObject$2 = toObject$7;
|
|
9080
9076
|
var IndexedObject = indexedObject;
|
|
9081
9077
|
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
|
9082
9078
|
|
|
9083
|
-
var
|
|
9079
|
+
var TypeError$9 = global$m.TypeError;
|
|
9084
9080
|
|
|
9085
9081
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
9086
9082
|
var createMethod$2 = function (IS_RIGHT) {
|
|
@@ -9099,7 +9095,7 @@ var createMethod$2 = function (IS_RIGHT) {
|
|
|
9099
9095
|
}
|
|
9100
9096
|
index += i;
|
|
9101
9097
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
9102
|
-
throw
|
|
9098
|
+
throw TypeError$9('Reduce of empty array with no initial value');
|
|
9103
9099
|
}
|
|
9104
9100
|
}
|
|
9105
9101
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -9119,20 +9115,20 @@ var arrayReduce = {
|
|
|
9119
9115
|
};
|
|
9120
9116
|
|
|
9121
9117
|
var classof$3 = classofRaw$1;
|
|
9122
|
-
var global$
|
|
9118
|
+
var global$l = global$U;
|
|
9123
9119
|
|
|
9124
|
-
var engineIsNode = classof$3(global$
|
|
9120
|
+
var engineIsNode = classof$3(global$l.process) == 'process';
|
|
9125
9121
|
|
|
9126
9122
|
var $$f = _export;
|
|
9127
9123
|
var $reduce = arrayReduce.left;
|
|
9128
9124
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
9129
9125
|
var CHROME_VERSION = engineV8Version;
|
|
9130
|
-
var IS_NODE$
|
|
9126
|
+
var IS_NODE$3 = engineIsNode;
|
|
9131
9127
|
|
|
9132
9128
|
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
9133
9129
|
// Chrome 80-82 has a critical bug
|
|
9134
9130
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
9135
|
-
var CHROME_BUG = !IS_NODE$
|
|
9131
|
+
var CHROME_BUG = !IS_NODE$3 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
9136
9132
|
|
|
9137
9133
|
// `Array.prototype.reduce` method
|
|
9138
9134
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
@@ -9143,7 +9139,7 @@ $$f({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
|
9143
9139
|
}
|
|
9144
9140
|
});
|
|
9145
9141
|
|
|
9146
|
-
var _jsxFileName$w = "
|
|
9142
|
+
var _jsxFileName$w = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSelectCheck\\icon\\CheckOutline.js";
|
|
9147
9143
|
|
|
9148
9144
|
const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
9149
9145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9192,7 +9188,7 @@ const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
9192
9188
|
}));
|
|
9193
9189
|
|
|
9194
9190
|
const _excluded$d = ["placeholder", "option", "value", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css", "showCounter", "labelCounter"];
|
|
9195
|
-
var _jsxFileName$v = "
|
|
9191
|
+
var _jsxFileName$v = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSelectCheck\\InputSelectCheck.js";
|
|
9196
9192
|
const Wrapper$1 = styled('div', {
|
|
9197
9193
|
margin: 0,
|
|
9198
9194
|
flexDirection: 'column',
|
|
@@ -9557,10 +9553,10 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9557
9553
|
return setItems(sortValue);
|
|
9558
9554
|
}
|
|
9559
9555
|
} else {
|
|
9560
|
-
let filterItems = option
|
|
9561
|
-
var _item$name, _item$name$toLowerCas;
|
|
9556
|
+
let filterItems = option === null || option === void 0 ? void 0 : option.filter(item => {
|
|
9557
|
+
var _item$name, _item$name$toLowerCas, _item$name$toLowerCas2, _input$toLocaleLowerC;
|
|
9562
9558
|
|
|
9563
|
-
return item
|
|
9559
|
+
return item === null || item === void 0 ? void 0 : (_item$name = item.name) === null || _item$name === void 0 ? void 0 : (_item$name$toLowerCas = _item$name.toLowerCase()) === null || _item$name$toLowerCas === void 0 ? void 0 : (_item$name$toLowerCas2 = _item$name$toLowerCas.includes) === null || _item$name$toLowerCas2 === void 0 ? void 0 : _item$name$toLowerCas2.call(_item$name$toLowerCas, input === null || input === void 0 ? void 0 : (_input$toLocaleLowerC = input.toLocaleLowerCase) === null || _input$toLocaleLowerC === void 0 ? void 0 : _input$toLocaleLowerC.call(input));
|
|
9564
9560
|
});
|
|
9565
9561
|
setItems(filterItems);
|
|
9566
9562
|
}
|
|
@@ -9570,9 +9566,9 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9570
9566
|
if (disabled || readOnly) {
|
|
9571
9567
|
return selectedValue;
|
|
9572
9568
|
} else {
|
|
9573
|
-
if ((selected
|
|
9569
|
+
if ((selected === null || selected === void 0 ? void 0 : selected.id) === 'counter') {
|
|
9574
9570
|
setSelectedValue([]);
|
|
9575
|
-
onChange
|
|
9571
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([]);
|
|
9576
9572
|
|
|
9577
9573
|
for (let i = 0; i < selectedValue.length; i++) {
|
|
9578
9574
|
removeSelectedItem(selectedValue[i]);
|
|
@@ -9583,7 +9579,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9583
9579
|
setSelectedValue(filterItems);
|
|
9584
9580
|
|
|
9585
9581
|
if (selected.id !== '!all') {
|
|
9586
|
-
onChange
|
|
9582
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(filterItems);
|
|
9587
9583
|
}
|
|
9588
9584
|
}
|
|
9589
9585
|
}
|
|
@@ -9628,7 +9624,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9628
9624
|
removeSelectedItem(item);
|
|
9629
9625
|
});
|
|
9630
9626
|
setSelectedValue([]);
|
|
9631
|
-
onChange
|
|
9627
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([]);
|
|
9632
9628
|
} else {
|
|
9633
9629
|
removeItem(selectedItem);
|
|
9634
9630
|
}
|
|
@@ -9643,12 +9639,12 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9643
9639
|
itemIds.push(item.id);
|
|
9644
9640
|
});
|
|
9645
9641
|
setSelectedValue(itemIds);
|
|
9646
|
-
onChange
|
|
9642
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(itemIds.slice(1));
|
|
9647
9643
|
} else {
|
|
9648
9644
|
addSelectedItem(selectedItem);
|
|
9649
9645
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
9650
9646
|
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
9651
|
-
onChange
|
|
9647
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
|
|
9652
9648
|
}
|
|
9653
9649
|
|
|
9654
9650
|
selectItem(null);
|
|
@@ -9800,7 +9796,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9800
9796
|
lineNumber: 559,
|
|
9801
9797
|
columnNumber: 11
|
|
9802
9798
|
}
|
|
9803
|
-
}, selectedItems
|
|
9799
|
+
}, selectedItems === null || selectedItems === void 0 ? void 0 : (_selectedItems$filter = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter === void 0 ? void 0 : _selectedItems$filter.map((selectedItem, index) => /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
9804
9800
|
disabled: disabled,
|
|
9805
9801
|
isRemovable: readOnly || disabled || unremovableTags.includes(selectedItem.id) ? false : true,
|
|
9806
9802
|
size: size,
|
|
@@ -9824,7 +9820,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9824
9820
|
lineNumber: 563,
|
|
9825
9821
|
columnNumber: 17
|
|
9826
9822
|
}
|
|
9827
|
-
}), selectedItem.name))), showSelectedTag && showCounter && Boolean(selectedItems
|
|
9823
|
+
}), selectedItem.name))), showSelectedTag && showCounter && Boolean(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) && /*#__PURE__*/React__default.createElement(TagWrapper$1, {
|
|
9828
9824
|
disabled: disabled,
|
|
9829
9825
|
__self: undefined,
|
|
9830
9826
|
__source: {
|
|
@@ -9837,7 +9833,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9837
9833
|
maxWidth: '150px !important'
|
|
9838
9834
|
},
|
|
9839
9835
|
disabled: disabled,
|
|
9840
|
-
isRemovable: readOnly || disabled || Boolean(selectedItems
|
|
9836
|
+
isRemovable: readOnly || disabled || Boolean(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length),
|
|
9841
9837
|
size: size,
|
|
9842
9838
|
readOnly: readOnly // {...getSelectedItemProps({ selectedItem, index })}
|
|
9843
9839
|
,
|
|
@@ -9859,7 +9855,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9859
9855
|
lineNumber: 586,
|
|
9860
9856
|
columnNumber: 13
|
|
9861
9857
|
}
|
|
9862
|
-
}, `${selectedItems
|
|
9858
|
+
}, `${selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length} ${labelCounter}`)), /*#__PURE__*/React__default.createElement(OptionWrapper$1, {
|
|
9863
9859
|
placement: placement,
|
|
9864
9860
|
css: {
|
|
9865
9861
|
display: isOpen && disabled === false ? 'block' : 'none',
|
|
@@ -9927,7 +9923,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9927
9923
|
lineNumber: 640,
|
|
9928
9924
|
columnNumber: 27
|
|
9929
9925
|
}
|
|
9930
|
-
}), showSelectAll && (item
|
|
9926
|
+
}), showSelectAll && (item === null || item === void 0 ? void 0 : item.id) === '!all' && selectedValue !== null && selectedValue !== void 0 && selectedValue.length && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) < (items === null || items === void 0 ? void 0 : items.length) ? /*#__PURE__*/React__default.createElement(IndeterminateFilled, {
|
|
9931
9927
|
__self: undefined,
|
|
9932
9928
|
__source: {
|
|
9933
9929
|
fileName: _jsxFileName$v,
|
|
@@ -10038,7 +10034,7 @@ InputSelectCheck.defaultProps = {
|
|
|
10038
10034
|
labelCounter: 'Item terpilih'
|
|
10039
10035
|
};
|
|
10040
10036
|
|
|
10041
|
-
var _jsxFileName$u = "
|
|
10037
|
+
var _jsxFileName$u = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSelectTag\\InputSelectTag.js";
|
|
10042
10038
|
const InputSelectTag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
10043
10039
|
return /*#__PURE__*/React.createElement(InputSelectCheck, _extends({
|
|
10044
10040
|
ref: ref,
|
|
@@ -10089,7 +10085,7 @@ InputSelectTag.defaultProps = {
|
|
|
10089
10085
|
labelCounter: 'Item terpilih'
|
|
10090
10086
|
};
|
|
10091
10087
|
|
|
10092
|
-
var _jsxFileName$t = "
|
|
10088
|
+
var _jsxFileName$t = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputCreatable\\InputCreatable.js";
|
|
10093
10089
|
const Wrapper = styled('div', {
|
|
10094
10090
|
margin: 0,
|
|
10095
10091
|
flexDirection: 'column',
|
|
@@ -10854,15 +10850,15 @@ var stringTrim = {
|
|
|
10854
10850
|
trim: createMethod$1(3)
|
|
10855
10851
|
};
|
|
10856
10852
|
|
|
10857
|
-
var global$
|
|
10853
|
+
var global$k = global$U;
|
|
10858
10854
|
var fails$8 = fails$t;
|
|
10859
10855
|
var uncurryThis$d = functionUncurryThis;
|
|
10860
10856
|
var toString$8 = toString$h;
|
|
10861
10857
|
var trim$1 = stringTrim.trim;
|
|
10862
10858
|
var whitespaces$2 = whitespaces$4;
|
|
10863
10859
|
|
|
10864
|
-
var $parseInt$1 = global$
|
|
10865
|
-
var Symbol$6 = global$
|
|
10860
|
+
var $parseInt$1 = global$k.parseInt;
|
|
10861
|
+
var Symbol$6 = global$k.Symbol;
|
|
10866
10862
|
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
10867
10863
|
var hex = /^[+-]?0x/i;
|
|
10868
10864
|
var exec$4 = uncurryThis$d(hex.exec);
|
|
@@ -11081,7 +11077,7 @@ InputCounter.defaultProps = {
|
|
|
11081
11077
|
};
|
|
11082
11078
|
|
|
11083
11079
|
const _excluded$c = ["children"];
|
|
11084
|
-
var _jsxFileName$s = "
|
|
11080
|
+
var _jsxFileName$s = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\popover\\Popover.js";
|
|
11085
11081
|
const {
|
|
11086
11082
|
zIndices
|
|
11087
11083
|
} = foundations;
|
|
@@ -11171,8 +11167,8 @@ const PopoverContent = ({
|
|
|
11171
11167
|
ref: floating,
|
|
11172
11168
|
style: Object.assign({
|
|
11173
11169
|
position: strategy,
|
|
11174
|
-
top: isMobile ? 0 : y
|
|
11175
|
-
left: isMobile ? 0 : x
|
|
11170
|
+
top: isMobile ? 0 : y !== null && y !== void 0 ? y : '',
|
|
11171
|
+
left: isMobile ? 0 : x !== null && x !== void 0 ? x : '',
|
|
11176
11172
|
zIndex: zIndices.popover
|
|
11177
11173
|
}, style)
|
|
11178
11174
|
}), {
|
|
@@ -11215,7 +11211,7 @@ Popover.propTypes = {
|
|
|
11215
11211
|
Popover.displayName = 'Popover';
|
|
11216
11212
|
|
|
11217
11213
|
const _excluded$b = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
11218
|
-
var _jsxFileName$r = "
|
|
11214
|
+
var _jsxFileName$r = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\slider\\Slider.js";
|
|
11219
11215
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
11220
11216
|
position: 'relative',
|
|
11221
11217
|
display: 'flex',
|
|
@@ -11560,7 +11556,7 @@ Slider.defaultProps = {
|
|
|
11560
11556
|
};
|
|
11561
11557
|
|
|
11562
11558
|
const _excluded$a = ["className", "children", "onClick", "type", "size"];
|
|
11563
|
-
var _jsxFileName$q = "
|
|
11559
|
+
var _jsxFileName$q = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\tagStatus\\TagStatus.js";
|
|
11564
11560
|
const TagWrapper = styled('div', {
|
|
11565
11561
|
boxSizing: 'border-box',
|
|
11566
11562
|
fontSize: '12px',
|
|
@@ -11726,7 +11722,7 @@ const _excluded$9 = ["children"],
|
|
|
11726
11722
|
_excluded2$1 = ["children", "activeTabs"],
|
|
11727
11723
|
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
11728
11724
|
_excluded4 = ["activeTabs"];
|
|
11729
|
-
var _jsxFileName$p = "
|
|
11725
|
+
var _jsxFileName$p = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\tabs\\Tabs.js";
|
|
11730
11726
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
11731
11727
|
display: 'flex',
|
|
11732
11728
|
flexDirection: 'column',
|
|
@@ -12077,7 +12073,7 @@ Separator$2.displayName = 'Separator';
|
|
|
12077
12073
|
|
|
12078
12074
|
const _excluded$8 = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size"],
|
|
12079
12075
|
_excluded2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
12080
|
-
var _jsxFileName$o = "
|
|
12076
|
+
var _jsxFileName$o = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\buttonGroup\\ButtonGroup.js";
|
|
12081
12077
|
const ButtonGroupComponent = styled(ToggleGroupPrimitive.Root, {
|
|
12082
12078
|
display: 'inline-flex',
|
|
12083
12079
|
borderRadius: '$md',
|
|
@@ -12305,7 +12301,7 @@ ButtonGroupItem.defaultProps = {
|
|
|
12305
12301
|
};
|
|
12306
12302
|
|
|
12307
12303
|
const _excluded$7 = ["children"];
|
|
12308
|
-
var _jsxFileName$n = "
|
|
12304
|
+
var _jsxFileName$n = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\notificationBadge\\NotificationBadge.js";
|
|
12309
12305
|
const NotificationBadgeRootStyle = styled('span', {
|
|
12310
12306
|
position: 'relative',
|
|
12311
12307
|
display: 'inline-flex',
|
|
@@ -12405,7 +12401,7 @@ const NotificationBadge = _ref => {
|
|
|
12405
12401
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
12406
12402
|
|
|
12407
12403
|
const getValue = () => {
|
|
12408
|
-
let value = props
|
|
12404
|
+
let value = props === null || props === void 0 ? void 0 : props.value;
|
|
12409
12405
|
|
|
12410
12406
|
if (typeof value === 'number' || parseInt(value)) {
|
|
12411
12407
|
if (Math.sign(value) === 1 || Math.sign(value) === 0) {
|
|
@@ -12449,7 +12445,7 @@ NotificationBadge.propTypes = {
|
|
|
12449
12445
|
};
|
|
12450
12446
|
|
|
12451
12447
|
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
12452
|
-
var _jsxFileName$m = "
|
|
12448
|
+
var _jsxFileName$m = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\paper\\Paper.js";
|
|
12453
12449
|
const PaperComponent = styled('div', {
|
|
12454
12450
|
padding: '20px',
|
|
12455
12451
|
height: 'auto',
|
|
@@ -12660,13 +12656,14 @@ DialogClose.displayName = 'DialogClose';
|
|
|
12660
12656
|
DialogOverlay.displayName = 'DialogOverlay';
|
|
12661
12657
|
DialogPortal.displayName = 'DialogPortal';
|
|
12662
12658
|
|
|
12659
|
+
var global$j = global$U;
|
|
12663
12660
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
12664
12661
|
|
|
12665
|
-
var
|
|
12662
|
+
var TypeError$8 = global$j.TypeError;
|
|
12666
12663
|
|
|
12667
12664
|
var anInstance$3 = function (it, Prototype) {
|
|
12668
12665
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
12669
|
-
throw
|
|
12666
|
+
throw TypeError$8('Incorrect invocation');
|
|
12670
12667
|
};
|
|
12671
12668
|
|
|
12672
12669
|
var uncurryThis$c = functionUncurryThis;
|
|
@@ -12722,15 +12719,16 @@ var isConstructor$2 = !construct || fails$7(function () {
|
|
|
12722
12719
|
|| called;
|
|
12723
12720
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
12724
12721
|
|
|
12722
|
+
var global$i = global$U;
|
|
12725
12723
|
var isConstructor$1 = isConstructor$2;
|
|
12726
|
-
var tryToString$2 = tryToString$
|
|
12724
|
+
var tryToString$2 = tryToString$4;
|
|
12727
12725
|
|
|
12728
|
-
var
|
|
12726
|
+
var TypeError$7 = global$i.TypeError;
|
|
12729
12727
|
|
|
12730
12728
|
// `Assert: IsConstructor(argument) is true`
|
|
12731
12729
|
var aConstructor$1 = function (argument) {
|
|
12732
12730
|
if (isConstructor$1(argument)) return argument;
|
|
12733
|
-
throw
|
|
12731
|
+
throw TypeError$7(tryToString$2(argument) + ' is not a constructor');
|
|
12734
12732
|
};
|
|
12735
12733
|
|
|
12736
12734
|
var anObject$8 = anObject$i;
|
|
@@ -12776,10 +12774,12 @@ var uncurryThis$a = functionUncurryThis;
|
|
|
12776
12774
|
|
|
12777
12775
|
var arraySlice$3 = uncurryThis$a([].slice);
|
|
12778
12776
|
|
|
12779
|
-
var $
|
|
12777
|
+
var global$h = global$U;
|
|
12778
|
+
|
|
12779
|
+
var TypeError$6 = global$h.TypeError;
|
|
12780
12780
|
|
|
12781
12781
|
var validateArgumentsLength$3 = function (passed, required) {
|
|
12782
|
-
if (passed < required) throw
|
|
12782
|
+
if (passed < required) throw TypeError$6('Not enough arguments');
|
|
12783
12783
|
return passed;
|
|
12784
12784
|
};
|
|
12785
12785
|
|
|
@@ -12787,7 +12787,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
12787
12787
|
|
|
12788
12788
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
12789
12789
|
|
|
12790
|
-
var global$
|
|
12790
|
+
var global$g = global$U;
|
|
12791
12791
|
var apply$2 = functionApply;
|
|
12792
12792
|
var bind$6 = functionBindContext;
|
|
12793
12793
|
var isCallable$5 = isCallable$p;
|
|
@@ -12798,15 +12798,15 @@ var arraySlice$2 = arraySlice$3;
|
|
|
12798
12798
|
var createElement = documentCreateElement$2;
|
|
12799
12799
|
var validateArgumentsLength$2 = validateArgumentsLength$3;
|
|
12800
12800
|
var IS_IOS$1 = engineIsIos;
|
|
12801
|
-
var IS_NODE$
|
|
12801
|
+
var IS_NODE$2 = engineIsNode;
|
|
12802
12802
|
|
|
12803
|
-
var set = global$
|
|
12804
|
-
var clear = global$
|
|
12805
|
-
var process$2 = global$
|
|
12806
|
-
var Dispatch = global$
|
|
12807
|
-
var Function$1 = global$
|
|
12808
|
-
var MessageChannel = global$
|
|
12809
|
-
var String$
|
|
12803
|
+
var set = global$g.setImmediate;
|
|
12804
|
+
var clear = global$g.clearImmediate;
|
|
12805
|
+
var process$2 = global$g.process;
|
|
12806
|
+
var Dispatch = global$g.Dispatch;
|
|
12807
|
+
var Function$1 = global$g.Function;
|
|
12808
|
+
var MessageChannel = global$g.MessageChannel;
|
|
12809
|
+
var String$2 = global$g.String;
|
|
12810
12810
|
var counter = 0;
|
|
12811
12811
|
var queue$1 = {};
|
|
12812
12812
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -12814,7 +12814,7 @@ var location, defer, channel, port;
|
|
|
12814
12814
|
|
|
12815
12815
|
try {
|
|
12816
12816
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
12817
|
-
location = global$
|
|
12817
|
+
location = global$g.location;
|
|
12818
12818
|
} catch (error) { /* empty */ }
|
|
12819
12819
|
|
|
12820
12820
|
var run = function (id) {
|
|
@@ -12837,7 +12837,7 @@ var listener = function (event) {
|
|
|
12837
12837
|
|
|
12838
12838
|
var post = function (id) {
|
|
12839
12839
|
// old engines have not location.origin
|
|
12840
|
-
global$
|
|
12840
|
+
global$g.postMessage(String$2(id), location.protocol + '//' + location.host);
|
|
12841
12841
|
};
|
|
12842
12842
|
|
|
12843
12843
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -12856,7 +12856,7 @@ if (!set || !clear) {
|
|
|
12856
12856
|
delete queue$1[id];
|
|
12857
12857
|
};
|
|
12858
12858
|
// Node.js 0.8-
|
|
12859
|
-
if (IS_NODE$
|
|
12859
|
+
if (IS_NODE$2) {
|
|
12860
12860
|
defer = function (id) {
|
|
12861
12861
|
process$2.nextTick(runner(id));
|
|
12862
12862
|
};
|
|
@@ -12875,14 +12875,14 @@ if (!set || !clear) {
|
|
|
12875
12875
|
// Browsers with postMessage, skip WebWorkers
|
|
12876
12876
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
12877
12877
|
} else if (
|
|
12878
|
-
global$
|
|
12879
|
-
isCallable$5(global$
|
|
12880
|
-
!global$
|
|
12878
|
+
global$g.addEventListener &&
|
|
12879
|
+
isCallable$5(global$g.postMessage) &&
|
|
12880
|
+
!global$g.importScripts &&
|
|
12881
12881
|
location && location.protocol !== 'file:' &&
|
|
12882
12882
|
!fails$6(post)
|
|
12883
12883
|
) {
|
|
12884
12884
|
defer = post;
|
|
12885
|
-
global$
|
|
12885
|
+
global$g.addEventListener('message', listener, false);
|
|
12886
12886
|
// IE8-
|
|
12887
12887
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
12888
12888
|
defer = function (id) {
|
|
@@ -12905,29 +12905,29 @@ var task$1 = {
|
|
|
12905
12905
|
};
|
|
12906
12906
|
|
|
12907
12907
|
var userAgent$1 = engineUserAgent;
|
|
12908
|
-
var global$
|
|
12908
|
+
var global$f = global$U;
|
|
12909
12909
|
|
|
12910
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
12910
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$f.Pebble !== undefined;
|
|
12911
12911
|
|
|
12912
12912
|
var userAgent = engineUserAgent;
|
|
12913
12913
|
|
|
12914
12914
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
12915
12915
|
|
|
12916
|
-
var global$
|
|
12916
|
+
var global$e = global$U;
|
|
12917
12917
|
var bind$5 = functionBindContext;
|
|
12918
12918
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
12919
12919
|
var macrotask = task$1.set;
|
|
12920
12920
|
var IS_IOS = engineIsIos;
|
|
12921
12921
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
12922
12922
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
12923
|
-
var IS_NODE$
|
|
12923
|
+
var IS_NODE$1 = engineIsNode;
|
|
12924
12924
|
|
|
12925
|
-
var MutationObserver = global$
|
|
12926
|
-
var document$2 = global$
|
|
12927
|
-
var process$1 = global$
|
|
12928
|
-
var Promise$1 = global$
|
|
12925
|
+
var MutationObserver = global$e.MutationObserver || global$e.WebKitMutationObserver;
|
|
12926
|
+
var document$2 = global$e.document;
|
|
12927
|
+
var process$1 = global$e.process;
|
|
12928
|
+
var Promise$1 = global$e.Promise;
|
|
12929
12929
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
12930
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$
|
|
12930
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$e, 'queueMicrotask');
|
|
12931
12931
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
12932
12932
|
|
|
12933
12933
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -12936,7 +12936,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
|
|
|
12936
12936
|
if (!queueMicrotask) {
|
|
12937
12937
|
flush = function () {
|
|
12938
12938
|
var parent, fn;
|
|
12939
|
-
if (IS_NODE$
|
|
12939
|
+
if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
|
|
12940
12940
|
while (head) {
|
|
12941
12941
|
fn = head.fn;
|
|
12942
12942
|
head = head.next;
|
|
@@ -12953,7 +12953,7 @@ if (!queueMicrotask) {
|
|
|
12953
12953
|
|
|
12954
12954
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
12955
12955
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
12956
|
-
if (!IS_IOS && !IS_NODE$
|
|
12956
|
+
if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
12957
12957
|
toggle = true;
|
|
12958
12958
|
node = document$2.createTextNode('');
|
|
12959
12959
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
@@ -12971,7 +12971,7 @@ if (!queueMicrotask) {
|
|
|
12971
12971
|
then(flush);
|
|
12972
12972
|
};
|
|
12973
12973
|
// Node.js without promises
|
|
12974
|
-
} else if (IS_NODE$
|
|
12974
|
+
} else if (IS_NODE$1) {
|
|
12975
12975
|
notify$1 = function () {
|
|
12976
12976
|
process$1.nextTick(flush);
|
|
12977
12977
|
};
|
|
@@ -12983,7 +12983,7 @@ if (!queueMicrotask) {
|
|
|
12983
12983
|
// - setTimeout
|
|
12984
12984
|
} else {
|
|
12985
12985
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
12986
|
-
macrotask = bind$5(macrotask, global$
|
|
12986
|
+
macrotask = bind$5(macrotask, global$e);
|
|
12987
12987
|
notify$1 = function () {
|
|
12988
12988
|
macrotask(flush);
|
|
12989
12989
|
};
|
|
@@ -12999,10 +12999,10 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
12999
12999
|
} last = task;
|
|
13000
13000
|
};
|
|
13001
13001
|
|
|
13002
|
-
var global$
|
|
13002
|
+
var global$d = global$U;
|
|
13003
13003
|
|
|
13004
13004
|
var hostReportErrors$1 = function (a, b) {
|
|
13005
|
-
var console = global$
|
|
13005
|
+
var console = global$d.console;
|
|
13006
13006
|
if (console && console.error) {
|
|
13007
13007
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
13008
13008
|
}
|
|
@@ -13040,35 +13040,25 @@ Queue$1.prototype = {
|
|
|
13040
13040
|
|
|
13041
13041
|
var queue = Queue$1;
|
|
13042
13042
|
|
|
13043
|
-
var global$
|
|
13044
|
-
|
|
13045
|
-
var promiseNativeConstructor = global$6.Promise;
|
|
13043
|
+
var global$c = global$U;
|
|
13046
13044
|
|
|
13047
|
-
|
|
13045
|
+
var promiseNativeConstructor = global$c.Promise;
|
|
13048
13046
|
|
|
13049
|
-
var
|
|
13047
|
+
var engineIsBrowser = typeof window == 'object' && typeof Deno != 'object';
|
|
13050
13048
|
|
|
13051
|
-
var
|
|
13052
|
-
var IS_NODE$1 = engineIsNode;
|
|
13053
|
-
|
|
13054
|
-
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
13055
|
-
&& typeof window == 'object'
|
|
13056
|
-
&& typeof document == 'object';
|
|
13057
|
-
|
|
13058
|
-
var global$5 = global$s;
|
|
13049
|
+
var global$b = global$U;
|
|
13059
13050
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
13060
13051
|
var isCallable$4 = isCallable$p;
|
|
13061
13052
|
var isForced = isForced_1;
|
|
13062
13053
|
var inspectSource = inspectSource$4;
|
|
13063
13054
|
var wellKnownSymbol$6 = wellKnownSymbol$l;
|
|
13064
13055
|
var IS_BROWSER = engineIsBrowser;
|
|
13065
|
-
var IS_DENO = engineIsDeno;
|
|
13066
13056
|
var V8_VERSION = engineV8Version;
|
|
13067
13057
|
|
|
13068
13058
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
13069
13059
|
var SPECIES = wellKnownSymbol$6('species');
|
|
13070
13060
|
var SUBCLASSING = false;
|
|
13071
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$
|
|
13061
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$b.PromiseRejectionEvent);
|
|
13072
13062
|
|
|
13073
13063
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
13074
13064
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -13080,18 +13070,18 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
13080
13070
|
// We can't use @@species feature detection in V8 since it causes
|
|
13081
13071
|
// deoptimization and performance degradation
|
|
13082
13072
|
// https://github.com/zloirock/core-js/issues/679
|
|
13083
|
-
if (
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13073
|
+
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
13074
|
+
// Detect correctness of subclassing with @@species support
|
|
13075
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
13076
|
+
var FakePromise = function (exec) {
|
|
13077
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
13078
|
+
};
|
|
13079
|
+
var constructor = promise.constructor = {};
|
|
13080
|
+
constructor[SPECIES] = FakePromise;
|
|
13081
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
13082
|
+
if (!SUBCLASSING) return true;
|
|
13093
13083
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
13094
|
-
|
|
13084
|
+
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
13095
13085
|
});
|
|
13096
13086
|
|
|
13097
13087
|
var promiseConstructorDetection = {
|
|
@@ -13123,7 +13113,7 @@ newPromiseCapability$2.f = function (C) {
|
|
|
13123
13113
|
|
|
13124
13114
|
var $$c = _export;
|
|
13125
13115
|
var IS_NODE = engineIsNode;
|
|
13126
|
-
var global$
|
|
13116
|
+
var global$a = global$U;
|
|
13127
13117
|
var call$b = functionCall;
|
|
13128
13118
|
var defineBuiltIn$4 = defineBuiltIn$b;
|
|
13129
13119
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -13153,13 +13143,13 @@ var setInternalState$3 = InternalStateModule$3.set;
|
|
|
13153
13143
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
13154
13144
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
13155
13145
|
var PromisePrototype = NativePromisePrototype$1;
|
|
13156
|
-
var TypeError$
|
|
13157
|
-
var document$1 = global$
|
|
13158
|
-
var process = global$
|
|
13146
|
+
var TypeError$5 = global$a.TypeError;
|
|
13147
|
+
var document$1 = global$a.document;
|
|
13148
|
+
var process = global$a.process;
|
|
13159
13149
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
13160
13150
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
13161
13151
|
|
|
13162
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
13152
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$a.dispatchEvent);
|
|
13163
13153
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
13164
13154
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
13165
13155
|
var PENDING = 0;
|
|
@@ -13200,7 +13190,7 @@ var callReaction = function (reaction, state) {
|
|
|
13200
13190
|
}
|
|
13201
13191
|
}
|
|
13202
13192
|
if (result === reaction.promise) {
|
|
13203
|
-
reject(TypeError$
|
|
13193
|
+
reject(TypeError$5('Promise-chain cycle'));
|
|
13204
13194
|
} else if (then = isThenable(result)) {
|
|
13205
13195
|
call$b(then, result, resolve, reject);
|
|
13206
13196
|
} else resolve(result);
|
|
@@ -13232,14 +13222,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
13232
13222
|
event.promise = promise;
|
|
13233
13223
|
event.reason = reason;
|
|
13234
13224
|
event.initEvent(name, false, true);
|
|
13235
|
-
global$
|
|
13225
|
+
global$a.dispatchEvent(event);
|
|
13236
13226
|
} else event = { promise: promise, reason: reason };
|
|
13237
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
13227
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$a['on' + name])) handler(event);
|
|
13238
13228
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
13239
13229
|
};
|
|
13240
13230
|
|
|
13241
13231
|
var onUnhandled = function (state) {
|
|
13242
|
-
call$b(task, global$
|
|
13232
|
+
call$b(task, global$a, function () {
|
|
13243
13233
|
var promise = state.facade;
|
|
13244
13234
|
var value = state.value;
|
|
13245
13235
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -13262,7 +13252,7 @@ var isUnhandled = function (state) {
|
|
|
13262
13252
|
};
|
|
13263
13253
|
|
|
13264
13254
|
var onHandleUnhandled = function (state) {
|
|
13265
|
-
call$b(task, global$
|
|
13255
|
+
call$b(task, global$a, function () {
|
|
13266
13256
|
var promise = state.facade;
|
|
13267
13257
|
if (IS_NODE) {
|
|
13268
13258
|
process.emit('rejectionHandled', promise);
|
|
@@ -13290,7 +13280,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
13290
13280
|
state.done = true;
|
|
13291
13281
|
if (unwrap) state = unwrap;
|
|
13292
13282
|
try {
|
|
13293
|
-
if (state.facade === value) throw TypeError$
|
|
13283
|
+
if (state.facade === value) throw TypeError$5("Promise can't be resolved itself");
|
|
13294
13284
|
var then = isThenable(value);
|
|
13295
13285
|
if (then) {
|
|
13296
13286
|
microtask(function () {
|
|
@@ -13432,18 +13422,19 @@ var getIteratorMethod$4 = function (it) {
|
|
|
13432
13422
|
|| Iterators[classof$1(it)];
|
|
13433
13423
|
};
|
|
13434
13424
|
|
|
13425
|
+
var global$9 = global$U;
|
|
13435
13426
|
var call$a = functionCall;
|
|
13436
13427
|
var aCallable$2 = aCallable$9;
|
|
13437
13428
|
var anObject$7 = anObject$i;
|
|
13438
|
-
var tryToString$1 = tryToString$
|
|
13429
|
+
var tryToString$1 = tryToString$4;
|
|
13439
13430
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
13440
13431
|
|
|
13441
|
-
var
|
|
13432
|
+
var TypeError$4 = global$9.TypeError;
|
|
13442
13433
|
|
|
13443
13434
|
var getIterator$3 = function (argument, usingIterator) {
|
|
13444
13435
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
13445
13436
|
if (aCallable$2(iteratorMethod)) return anObject$7(call$a(iteratorMethod, argument));
|
|
13446
|
-
throw
|
|
13437
|
+
throw TypeError$4(tryToString$1(argument) + ' is not iterable');
|
|
13447
13438
|
};
|
|
13448
13439
|
|
|
13449
13440
|
var call$9 = functionCall;
|
|
@@ -13470,10 +13461,11 @@ var iteratorClose$2 = function (iterator, kind, value) {
|
|
|
13470
13461
|
return value;
|
|
13471
13462
|
};
|
|
13472
13463
|
|
|
13464
|
+
var global$8 = global$U;
|
|
13473
13465
|
var bind$3 = functionBindContext;
|
|
13474
13466
|
var call$8 = functionCall;
|
|
13475
13467
|
var anObject$5 = anObject$i;
|
|
13476
|
-
var tryToString = tryToString$
|
|
13468
|
+
var tryToString = tryToString$4;
|
|
13477
13469
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
13478
13470
|
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
|
13479
13471
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
@@ -13481,7 +13473,7 @@ var getIterator$2 = getIterator$3;
|
|
|
13481
13473
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
13482
13474
|
var iteratorClose$1 = iteratorClose$2;
|
|
13483
13475
|
|
|
13484
|
-
var $
|
|
13476
|
+
var TypeError$3 = global$8.TypeError;
|
|
13485
13477
|
|
|
13486
13478
|
var Result = function (stopped, result) {
|
|
13487
13479
|
this.stopped = stopped;
|
|
@@ -13493,7 +13485,6 @@ var ResultPrototype = Result.prototype;
|
|
|
13493
13485
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
13494
13486
|
var that = options && options.that;
|
|
13495
13487
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
13496
|
-
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
13497
13488
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
13498
13489
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
13499
13490
|
var fn = bind$3(unboundFunction, that);
|
|
@@ -13511,13 +13502,11 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
13511
13502
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
13512
13503
|
};
|
|
13513
13504
|
|
|
13514
|
-
if (
|
|
13515
|
-
iterator = iterable.iterator;
|
|
13516
|
-
} else if (IS_ITERATOR) {
|
|
13505
|
+
if (IS_ITERATOR) {
|
|
13517
13506
|
iterator = iterable;
|
|
13518
13507
|
} else {
|
|
13519
13508
|
iterFn = getIteratorMethod$2(iterable);
|
|
13520
|
-
if (!iterFn) throw $
|
|
13509
|
+
if (!iterFn) throw TypeError$3(tryToString(iterable) + ' is not iterable');
|
|
13521
13510
|
// optimisation for array iterators
|
|
13522
13511
|
if (isArrayIteratorMethod$1(iterFn)) {
|
|
13523
13512
|
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
@@ -13528,7 +13517,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
13528
13517
|
iterator = getIterator$2(iterable, iterFn);
|
|
13529
13518
|
}
|
|
13530
13519
|
|
|
13531
|
-
next =
|
|
13520
|
+
next = iterator.next;
|
|
13532
13521
|
while (!(step = call$8(next, iterator)).done) {
|
|
13533
13522
|
try {
|
|
13534
13523
|
result = callFn(step.value);
|
|
@@ -13955,7 +13944,7 @@ ModalDialog.defaultProps = {
|
|
|
13955
13944
|
};
|
|
13956
13945
|
|
|
13957
13946
|
const _excluded$5 = ["children"];
|
|
13958
|
-
var _jsxFileName$l = "
|
|
13947
|
+
var _jsxFileName$l = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\drawer\\Drawer.js";
|
|
13959
13948
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
13960
13949
|
const {
|
|
13961
13950
|
sizes
|
|
@@ -15647,7 +15636,7 @@ const MobileCalendarBox = ({
|
|
|
15647
15636
|
return null;
|
|
15648
15637
|
};
|
|
15649
15638
|
|
|
15650
|
-
var _jsxFileName$k = "
|
|
15639
|
+
var _jsxFileName$k = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\datePicker\\timePicker\\TimePicker.js";
|
|
15651
15640
|
const Input$3 = styled('input', {
|
|
15652
15641
|
display: 'none'
|
|
15653
15642
|
});
|
|
@@ -15904,33 +15893,33 @@ const NativeTimePicker = ({
|
|
|
15904
15893
|
})));
|
|
15905
15894
|
};
|
|
15906
15895
|
NativeTimePicker.propTypes = {
|
|
15907
|
-
/**
|
|
15908
|
-
Resize time picker.
|
|
15896
|
+
/**
|
|
15897
|
+
Resize time picker.
|
|
15909
15898
|
*/
|
|
15910
15899
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15911
15900
|
|
|
15912
|
-
/**
|
|
15913
|
-
Change handler.
|
|
15901
|
+
/**
|
|
15902
|
+
Change handler.
|
|
15914
15903
|
*/
|
|
15915
15904
|
onChange: PropTypes.func,
|
|
15916
15905
|
|
|
15917
|
-
/**
|
|
15918
|
-
Time picker default value, support moment format.
|
|
15906
|
+
/**
|
|
15907
|
+
Time picker default value, support moment format.
|
|
15919
15908
|
*/
|
|
15920
15909
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15921
15910
|
|
|
15922
|
-
/**
|
|
15923
|
-
Time picker value, support moment format.
|
|
15911
|
+
/**
|
|
15912
|
+
Time picker value, support moment format.
|
|
15924
15913
|
*/
|
|
15925
15914
|
value: PropTypes.instanceOf(Date),
|
|
15926
15915
|
|
|
15927
|
-
/**
|
|
15928
|
-
Specify the minimum date.
|
|
15916
|
+
/**
|
|
15917
|
+
Specify the minimum date.
|
|
15929
15918
|
*/
|
|
15930
15919
|
minDate: PropTypes.instanceOf(Date),
|
|
15931
15920
|
|
|
15932
|
-
/**
|
|
15933
|
-
Specify the maximum date.
|
|
15921
|
+
/**
|
|
15922
|
+
Specify the maximum date.
|
|
15934
15923
|
*/
|
|
15935
15924
|
maxDate: PropTypes.instanceOf(Date)
|
|
15936
15925
|
};
|
|
@@ -15975,49 +15964,49 @@ const TimePicker = ({
|
|
|
15975
15964
|
};
|
|
15976
15965
|
TimePicker.displayName = 'TimePicker';
|
|
15977
15966
|
TimePicker.propTypes = {
|
|
15978
|
-
/**
|
|
15979
|
-
Additional styles.
|
|
15967
|
+
/**
|
|
15968
|
+
Additional styles.
|
|
15980
15969
|
*/
|
|
15981
15970
|
css: PropTypes.object,
|
|
15982
15971
|
|
|
15983
|
-
/**
|
|
15984
|
-
Resize time picker.
|
|
15972
|
+
/**
|
|
15973
|
+
Resize time picker.
|
|
15985
15974
|
*/
|
|
15986
15975
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15987
15976
|
|
|
15988
|
-
/**
|
|
15989
|
-
Change handler.
|
|
15977
|
+
/**
|
|
15978
|
+
Change handler.
|
|
15990
15979
|
*/
|
|
15991
15980
|
onChange: PropTypes.func,
|
|
15992
15981
|
|
|
15993
|
-
/**
|
|
15994
|
-
Time picker default value, support moment format.
|
|
15982
|
+
/**
|
|
15983
|
+
Time picker default value, support moment format.
|
|
15995
15984
|
*/
|
|
15996
15985
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15997
15986
|
|
|
15998
|
-
/**
|
|
15999
|
-
Time picker value, support moment format.
|
|
15987
|
+
/**
|
|
15988
|
+
Time picker value, support moment format.
|
|
16000
15989
|
*/
|
|
16001
15990
|
value: PropTypes.instanceOf(Date),
|
|
16002
15991
|
|
|
16003
|
-
/**
|
|
16004
|
-
Disabled state.
|
|
15992
|
+
/**
|
|
15993
|
+
Disabled state.
|
|
16005
15994
|
*/
|
|
16006
15995
|
disabled: PropTypes.bool,
|
|
16007
15996
|
|
|
16008
|
-
/**
|
|
16009
|
-
Specify the minimum date.
|
|
15997
|
+
/**
|
|
15998
|
+
Specify the minimum date.
|
|
16010
15999
|
*/
|
|
16011
16000
|
minDate: PropTypes.instanceOf(Date),
|
|
16012
16001
|
|
|
16013
|
-
/**
|
|
16014
|
-
Specify the maximum date.
|
|
16002
|
+
/**
|
|
16003
|
+
Specify the maximum date.
|
|
16015
16004
|
*/
|
|
16016
16005
|
maxDate: PropTypes.instanceOf(Date)
|
|
16017
16006
|
};
|
|
16018
16007
|
NativeTimePicker.displayName = 'NativeTimePicker';
|
|
16019
16008
|
|
|
16020
|
-
var _jsxFileName$j = "
|
|
16009
|
+
var _jsxFileName$j = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\datePicker\\timePicker\\InputTimePicker.js";
|
|
16021
16010
|
|
|
16022
16011
|
const getInputPickerValue$1 = date => {
|
|
16023
16012
|
if (!date) return;
|
|
@@ -16193,63 +16182,63 @@ InputTimePicker.defaultProps = {
|
|
|
16193
16182
|
placeholder: 'Select Time'
|
|
16194
16183
|
};
|
|
16195
16184
|
InputTimePicker.propTypes = {
|
|
16196
|
-
/**
|
|
16197
|
-
Additional styles.
|
|
16185
|
+
/**
|
|
16186
|
+
Additional styles.
|
|
16198
16187
|
*/
|
|
16199
16188
|
css: PropTypes.object,
|
|
16200
16189
|
|
|
16201
|
-
/**
|
|
16202
|
-
Disabled state.
|
|
16190
|
+
/**
|
|
16191
|
+
Disabled state.
|
|
16203
16192
|
*/
|
|
16204
16193
|
disabled: PropTypes.bool,
|
|
16205
16194
|
|
|
16206
|
-
/**
|
|
16207
|
-
ReadOnly state.
|
|
16195
|
+
/**
|
|
16196
|
+
ReadOnly state.
|
|
16208
16197
|
*/
|
|
16209
16198
|
readOnly: PropTypes.bool,
|
|
16210
16199
|
|
|
16211
|
-
/**
|
|
16212
|
-
Resize time picker.
|
|
16200
|
+
/**
|
|
16201
|
+
Resize time picker.
|
|
16213
16202
|
*/
|
|
16214
16203
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
16215
16204
|
|
|
16216
|
-
/**
|
|
16217
|
-
Custom placeholder input time picker.
|
|
16205
|
+
/**
|
|
16206
|
+
Custom placeholder input time picker.
|
|
16218
16207
|
*/
|
|
16219
16208
|
placeholder: PropTypes.string,
|
|
16220
16209
|
|
|
16221
|
-
/**
|
|
16222
|
-
Time picker default value, support moment format.
|
|
16210
|
+
/**
|
|
16211
|
+
Time picker default value, support moment format.
|
|
16223
16212
|
*/
|
|
16224
16213
|
defaultValue: PropTypes.instanceOf(Date),
|
|
16225
16214
|
|
|
16226
|
-
/**
|
|
16227
|
-
Time picker value, support moment format.
|
|
16215
|
+
/**
|
|
16216
|
+
Time picker value, support moment format.
|
|
16228
16217
|
*/
|
|
16229
16218
|
value: PropTypes.instanceOf(Date),
|
|
16230
16219
|
|
|
16231
|
-
/**
|
|
16232
|
-
Change handler.
|
|
16220
|
+
/**
|
|
16221
|
+
Change handler.
|
|
16233
16222
|
*/
|
|
16234
16223
|
onChange: PropTypes.func,
|
|
16235
16224
|
|
|
16236
|
-
/**
|
|
16237
|
-
Placement popover input time picker.
|
|
16225
|
+
/**
|
|
16226
|
+
Placement popover input time picker.
|
|
16238
16227
|
*/
|
|
16239
16228
|
placement: PropTypes.string,
|
|
16240
16229
|
|
|
16241
|
-
/**
|
|
16242
|
-
Specify the minimum date.
|
|
16230
|
+
/**
|
|
16231
|
+
Specify the minimum date.
|
|
16243
16232
|
*/
|
|
16244
16233
|
minDate: PropTypes.instanceOf(Date),
|
|
16245
16234
|
|
|
16246
|
-
/**
|
|
16247
|
-
Specify the maximum date.
|
|
16235
|
+
/**
|
|
16236
|
+
Specify the maximum date.
|
|
16248
16237
|
*/
|
|
16249
16238
|
maxDate: PropTypes.instanceOf(Date),
|
|
16250
16239
|
|
|
16251
|
-
/**
|
|
16252
|
-
* Invalid state input.
|
|
16240
|
+
/**
|
|
16241
|
+
* Invalid state input.
|
|
16253
16242
|
*/
|
|
16254
16243
|
isInvalid: PropTypes.bool
|
|
16255
16244
|
};
|
|
@@ -16784,7 +16773,7 @@ const removeUndefinedFields = obj => {
|
|
|
16784
16773
|
};
|
|
16785
16774
|
|
|
16786
16775
|
const _excluded$4 = ["isActive", "onClick"];
|
|
16787
|
-
var _jsxFileName$i = "
|
|
16776
|
+
var _jsxFileName$i = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\pagination\\PaginationButton.js";
|
|
16788
16777
|
const PrevNextButton = styled(Text$1, {
|
|
16789
16778
|
padding: '$spacing-01',
|
|
16790
16779
|
cursor: 'pointer',
|
|
@@ -17054,7 +17043,7 @@ const PaginationButton = ({
|
|
|
17054
17043
|
};
|
|
17055
17044
|
|
|
17056
17045
|
const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
17057
|
-
var _jsxFileName$h = "
|
|
17046
|
+
var _jsxFileName$h = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\pagination\\PaginationInfo.js";
|
|
17058
17047
|
const LimitContainer = styled(Flex$1, {
|
|
17059
17048
|
cursor: 'pointer'
|
|
17060
17049
|
});
|
|
@@ -17160,7 +17149,7 @@ function PaginationInfo(_ref) {
|
|
|
17160
17149
|
lineNumber: 40,
|
|
17161
17150
|
columnNumber: 11
|
|
17162
17151
|
}
|
|
17163
|
-
}, limits
|
|
17152
|
+
}, limits === null || limits === void 0 ? void 0 : limits.map(limit => /*#__PURE__*/React__default.createElement(PopoverClose, {
|
|
17164
17153
|
key: limit,
|
|
17165
17154
|
css: limitItemContainerStyle(selectedLimit === limit),
|
|
17166
17155
|
onClick: () => onChange(limit),
|
|
@@ -17191,7 +17180,7 @@ function PaginationInfo(_ref) {
|
|
|
17191
17180
|
}
|
|
17192
17181
|
|
|
17193
17182
|
const _excluded$2 = ["limit", "currentPage", "totalData", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions"];
|
|
17194
|
-
var _jsxFileName$g = "
|
|
17183
|
+
var _jsxFileName$g = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\pagination\\Pagination.js";
|
|
17195
17184
|
|
|
17196
17185
|
function Pagination(_ref) {
|
|
17197
17186
|
let {
|
|
@@ -17808,7 +17797,7 @@ const stickyPositionStyling = column => {
|
|
|
17808
17797
|
return {};
|
|
17809
17798
|
};
|
|
17810
17799
|
|
|
17811
|
-
const stickyShadowStyling = column => {
|
|
17800
|
+
const stickyShadowStyling = (column, tableScrollPosition) => {
|
|
17812
17801
|
const cssAfter = {
|
|
17813
17802
|
position: 'absolute',
|
|
17814
17803
|
top: 0,
|
|
@@ -17824,12 +17813,12 @@ const stickyShadowStyling = column => {
|
|
|
17824
17813
|
return column.sticky === 'left' ? {
|
|
17825
17814
|
'&::after': Object.assign(Object.assign({}, cssAfter), {
|
|
17826
17815
|
right: 0,
|
|
17827
|
-
boxShadow: 'inset 10px 0 10px -10px #00000026'
|
|
17816
|
+
boxShadow: tableScrollPosition === 'start' ? 'none' : 'inset 10px 0 10px -10px #00000026'
|
|
17828
17817
|
})
|
|
17829
17818
|
} : {
|
|
17830
17819
|
'&::after': Object.assign(Object.assign({}, cssAfter), {
|
|
17831
17820
|
left: 0,
|
|
17832
|
-
boxShadow: 'inset -10px 0 10px -10px #00000026'
|
|
17821
|
+
boxShadow: tableScrollPosition === 'end' ? 'none' : 'inset -10px 0 10px -10px #00000026'
|
|
17833
17822
|
})
|
|
17834
17823
|
};
|
|
17835
17824
|
}
|
|
@@ -17884,6 +17873,8 @@ function Table({
|
|
|
17884
17873
|
}) {
|
|
17885
17874
|
const [limit, setLimit] = useState(rowLimit);
|
|
17886
17875
|
const [dataRow, setDataRow] = useState({});
|
|
17876
|
+
const [tableScrollPosition, setTableScrollPosition] = useState('start');
|
|
17877
|
+
const [scrollAreaWidth, setScrollAreaWidth] = useState(0);
|
|
17887
17878
|
|
|
17888
17879
|
const getInitialState = () => {
|
|
17889
17880
|
const initialState = {};
|
|
@@ -17917,6 +17908,8 @@ function Table({
|
|
|
17917
17908
|
autoResetSelectedRows: false,
|
|
17918
17909
|
getRowId: showDuplicatedData ? undefined : row => row[keyId] || JSON.stringify(row)
|
|
17919
17910
|
}, useSortBy, useExpanded, usePagination, useRowSelect, useSticky, useColumnOrder);
|
|
17911
|
+
const scrollerRef = useRef(null);
|
|
17912
|
+
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 1024px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
17920
17913
|
const {
|
|
17921
17914
|
getTableProps,
|
|
17922
17915
|
getTableBodyProps,
|
|
@@ -17948,9 +17941,6 @@ function Table({
|
|
|
17948
17941
|
if (fetchData) fetchData(fetchParams);
|
|
17949
17942
|
};
|
|
17950
17943
|
|
|
17951
|
-
const scrollerRef = useRef(null);
|
|
17952
|
-
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 1024px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
17953
|
-
|
|
17954
17944
|
const renderFooter = () => jsx(Pagination, {
|
|
17955
17945
|
limit: pageSize,
|
|
17956
17946
|
currentPage: pageIndex + 1,
|
|
@@ -17992,43 +17982,6 @@ function Table({
|
|
|
17992
17982
|
children: children
|
|
17993
17983
|
}), void 0);
|
|
17994
17984
|
|
|
17995
|
-
useEffect(() => {
|
|
17996
|
-
if (hiddenColumns) setHiddenColumns(hiddenColumns);
|
|
17997
|
-
}, [hiddenColumns]);
|
|
17998
|
-
useEffect(() => {
|
|
17999
|
-
if (columnOrder) setColumnOrder(columnOrder);
|
|
18000
|
-
}, [columnOrder]);
|
|
18001
|
-
useEffect(() => {
|
|
18002
|
-
setPageSize(rowLimit);
|
|
18003
|
-
}, [rowLimit]);
|
|
18004
|
-
useEffect(() => {
|
|
18005
|
-
gotoPage(controlledPageIndex);
|
|
18006
|
-
}, [controlledPageIndex]);
|
|
18007
|
-
useEffect(() => {
|
|
18008
|
-
if (data && data.length > 0) doFetchData(0, isInfiniteScroll ? rowLimit : pageSize);
|
|
18009
|
-
}, [sortBy]);
|
|
18010
|
-
useMountedLayoutEffect(() => {
|
|
18011
|
-
if (data && data.length > 0 && selectedRowIds && onSelectedChange) onSelectedChange(selectedRowIds ? Object.keys(selectedRowIds) : []);
|
|
18012
|
-
}, [selectedRowIds]);
|
|
18013
|
-
useEffect(() => {
|
|
18014
|
-
var _a;
|
|
18015
|
-
|
|
18016
|
-
if (isInfiniteScroll && data.length <= rowLimit) {
|
|
18017
|
-
(_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
18018
|
-
top: 0
|
|
18019
|
-
});
|
|
18020
|
-
}
|
|
18021
|
-
}, [data]);
|
|
18022
|
-
useEffect(() => {
|
|
18023
|
-
if (selectedIds && data.length > 0) {
|
|
18024
|
-
const selectedIdsKeys = Object.keys(selectedIds);
|
|
18025
|
-
selectedIdsKeys.map(key => {
|
|
18026
|
-
toggleRowSelected(key, true);
|
|
18027
|
-
return key;
|
|
18028
|
-
});
|
|
18029
|
-
}
|
|
18030
|
-
}, [data, selectedIds]);
|
|
18031
|
-
|
|
18032
17985
|
const getOptionsMenu = () => {
|
|
18033
17986
|
var _a, _b;
|
|
18034
17987
|
|
|
@@ -18076,6 +18029,47 @@ function Table({
|
|
|
18076
18029
|
setDataRow(row);
|
|
18077
18030
|
};
|
|
18078
18031
|
|
|
18032
|
+
useLayoutEffect(() => {
|
|
18033
|
+
if (scrollerRef && scrollerRef.current) {
|
|
18034
|
+
setScrollAreaWidth(scrollerRef.current.scrollWidth - scrollerRef.current.clientWidth);
|
|
18035
|
+
}
|
|
18036
|
+
}, [scrollerRef]);
|
|
18037
|
+
useEffect(() => {
|
|
18038
|
+
if (hiddenColumns) setHiddenColumns(hiddenColumns);
|
|
18039
|
+
}, [hiddenColumns]);
|
|
18040
|
+
useEffect(() => {
|
|
18041
|
+
if (columnOrder) setColumnOrder(columnOrder);
|
|
18042
|
+
}, [columnOrder]);
|
|
18043
|
+
useEffect(() => {
|
|
18044
|
+
setPageSize(rowLimit);
|
|
18045
|
+
}, [rowLimit]);
|
|
18046
|
+
useEffect(() => {
|
|
18047
|
+
gotoPage(controlledPageIndex);
|
|
18048
|
+
}, [controlledPageIndex]);
|
|
18049
|
+
useEffect(() => {
|
|
18050
|
+
if (data && data.length > 0) doFetchData(0, isInfiniteScroll ? rowLimit : pageSize);
|
|
18051
|
+
}, [sortBy]);
|
|
18052
|
+
useMountedLayoutEffect(() => {
|
|
18053
|
+
if (data && data.length > 0 && selectedRowIds && onSelectedChange) onSelectedChange(selectedRowIds ? Object.keys(selectedRowIds) : []);
|
|
18054
|
+
}, [selectedRowIds]);
|
|
18055
|
+
useEffect(() => {
|
|
18056
|
+
var _a;
|
|
18057
|
+
|
|
18058
|
+
if (isInfiniteScroll && data.length <= rowLimit) {
|
|
18059
|
+
(_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
18060
|
+
top: 0
|
|
18061
|
+
});
|
|
18062
|
+
}
|
|
18063
|
+
}, [data]);
|
|
18064
|
+
useEffect(() => {
|
|
18065
|
+
if (selectedIds && data.length > 0) {
|
|
18066
|
+
const selectedIdsKeys = Object.keys(selectedIds);
|
|
18067
|
+
selectedIdsKeys.map(key => {
|
|
18068
|
+
toggleRowSelected(key, true);
|
|
18069
|
+
return key;
|
|
18070
|
+
});
|
|
18071
|
+
}
|
|
18072
|
+
}, [data, selectedIds]);
|
|
18079
18073
|
return jsxs(Box, Object.assign({
|
|
18080
18074
|
css: {
|
|
18081
18075
|
position: 'relative',
|
|
@@ -18105,7 +18099,18 @@ function Table({
|
|
|
18105
18099
|
}), void 0), !isMobile ? jsxs(Fragment, {
|
|
18106
18100
|
children: [jsxs(TableContainer$3, Object.assign({
|
|
18107
18101
|
css: css,
|
|
18108
|
-
ref: scrollerRef
|
|
18102
|
+
ref: scrollerRef,
|
|
18103
|
+
onScroll: e => {
|
|
18104
|
+
const scrollPosition = e.currentTarget.scrollLeft;
|
|
18105
|
+
|
|
18106
|
+
if (scrollPosition < 3) {
|
|
18107
|
+
setTableScrollPosition('start');
|
|
18108
|
+
} else if (scrollPosition > scrollAreaWidth - 3) {
|
|
18109
|
+
setTableScrollPosition('end');
|
|
18110
|
+
} else {
|
|
18111
|
+
setTableScrollPosition('between');
|
|
18112
|
+
}
|
|
18113
|
+
}
|
|
18109
18114
|
}, {
|
|
18110
18115
|
children: [renderInfiniteScrollWrapper(jsxs(TableContent$3, Object.assign({}, getTableProps(), {
|
|
18111
18116
|
children: [jsx(TableHead$3, Object.assign({
|
|
@@ -18125,7 +18130,7 @@ function Table({
|
|
|
18125
18130
|
minWidth: column.colMinWidth
|
|
18126
18131
|
}
|
|
18127
18132
|
}]), {
|
|
18128
|
-
css: Object.assign(Object.assign({}, stickyPositionStyling(column)), stickyShadowStyling(column))
|
|
18133
|
+
css: Object.assign(Object.assign({}, stickyPositionStyling(column)), stickyShadowStyling(column, tableScrollPosition))
|
|
18129
18134
|
}, {
|
|
18130
18135
|
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
|
|
18131
18136
|
isSortedDesc: column.isSortedDesc,
|
|
@@ -18180,7 +18185,7 @@ function Table({
|
|
|
18180
18185
|
padding: !isContextMenu || ['expander', 'selection', 'menu', 'eye'].includes((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id) ? cell.column.accessor ? '20px 8px' : '20px 20px' : '',
|
|
18181
18186
|
verticalAlign: cell.column.accessor ? cellAlign : 'center',
|
|
18182
18187
|
cursor: onRowClick ? 'pointer' : 'unset'
|
|
18183
|
-
}, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column)),
|
|
18188
|
+
}, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column, tableScrollPosition)),
|
|
18184
18189
|
onClick: () => handleRowClick(row, i)
|
|
18185
18190
|
}, {
|
|
18186
18191
|
children: jsx(ConditionalWrapper, Object.assign({
|
|
@@ -18285,7 +18290,7 @@ const TableColumn = _a => {
|
|
|
18285
18290
|
return jsx("div", {}, void 0);
|
|
18286
18291
|
};
|
|
18287
18292
|
|
|
18288
|
-
var _jsxFileName$f = "
|
|
18293
|
+
var _jsxFileName$f = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\table\\components\\columns\\DateColumn.js";
|
|
18289
18294
|
|
|
18290
18295
|
const DateColumn = ({
|
|
18291
18296
|
value,
|
|
@@ -18321,11 +18326,12 @@ var uncurryThis$9 = functionUncurryThis;
|
|
|
18321
18326
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
18322
18327
|
var thisNumberValue$1 = uncurryThis$9(1.0.valueOf);
|
|
18323
18328
|
|
|
18329
|
+
var global$7 = global$U;
|
|
18324
18330
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
|
|
18325
18331
|
var toString$7 = toString$h;
|
|
18326
18332
|
var requireObjectCoercible$3 = requireObjectCoercible$a;
|
|
18327
18333
|
|
|
18328
|
-
var
|
|
18334
|
+
var RangeError$2 = global$7.RangeError;
|
|
18329
18335
|
|
|
18330
18336
|
// `String.prototype.repeat` method implementation
|
|
18331
18337
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
@@ -18333,20 +18339,21 @@ var stringRepeat = function repeat(count) {
|
|
|
18333
18339
|
var str = toString$7(requireObjectCoercible$3(this));
|
|
18334
18340
|
var result = '';
|
|
18335
18341
|
var n = toIntegerOrInfinity$3(count);
|
|
18336
|
-
if (n < 0 || n == Infinity) throw
|
|
18342
|
+
if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
|
|
18337
18343
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
18338
18344
|
return result;
|
|
18339
18345
|
};
|
|
18340
18346
|
|
|
18341
18347
|
var $$6 = _export;
|
|
18348
|
+
var global$6 = global$U;
|
|
18342
18349
|
var uncurryThis$8 = functionUncurryThis;
|
|
18343
18350
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
|
|
18344
18351
|
var thisNumberValue = thisNumberValue$1;
|
|
18345
18352
|
var $repeat = stringRepeat;
|
|
18346
18353
|
var fails$5 = fails$t;
|
|
18347
18354
|
|
|
18348
|
-
var
|
|
18349
|
-
var $
|
|
18355
|
+
var RangeError$1 = global$6.RangeError;
|
|
18356
|
+
var String$1 = global$6.String;
|
|
18350
18357
|
var floor$3 = Math.floor;
|
|
18351
18358
|
var repeat = uncurryThis$8($repeat);
|
|
18352
18359
|
var stringSlice$6 = uncurryThis$8(''.slice);
|
|
@@ -18394,7 +18401,7 @@ var dataToString = function (data) {
|
|
|
18394
18401
|
var s = '';
|
|
18395
18402
|
while (--index >= 0) {
|
|
18396
18403
|
if (s !== '' || index === 0 || data[index] !== 0) {
|
|
18397
|
-
var t = $
|
|
18404
|
+
var t = String$1(data[index]);
|
|
18398
18405
|
s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
|
|
18399
18406
|
}
|
|
18400
18407
|
} return s;
|
|
@@ -18422,10 +18429,10 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
18422
18429
|
var e, z, j, k;
|
|
18423
18430
|
|
|
18424
18431
|
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
18425
|
-
if (fractDigits < 0 || fractDigits > 20) throw
|
|
18432
|
+
if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits');
|
|
18426
18433
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
18427
18434
|
if (number != number) return 'NaN';
|
|
18428
|
-
if (number <= -1e21 || number >= 1e21) return $
|
|
18435
|
+
if (number <= -1e21 || number >= 1e21) return String$1(number);
|
|
18429
18436
|
if (number < 0) {
|
|
18430
18437
|
sign = '-';
|
|
18431
18438
|
number = -number;
|
|
@@ -18469,7 +18476,7 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
18469
18476
|
}
|
|
18470
18477
|
});
|
|
18471
18478
|
|
|
18472
|
-
var global$
|
|
18479
|
+
var global$5 = global$U;
|
|
18473
18480
|
var fails$4 = fails$t;
|
|
18474
18481
|
var uncurryThis$7 = functionUncurryThis;
|
|
18475
18482
|
var toString$6 = toString$h;
|
|
@@ -18477,8 +18484,8 @@ var trim = stringTrim.trim;
|
|
|
18477
18484
|
var whitespaces$1 = whitespaces$4;
|
|
18478
18485
|
|
|
18479
18486
|
var charAt$6 = uncurryThis$7(''.charAt);
|
|
18480
|
-
var n$ParseFloat = global$
|
|
18481
|
-
var Symbol$5 = global$
|
|
18487
|
+
var n$ParseFloat = global$5.parseFloat;
|
|
18488
|
+
var Symbol$5 = global$5.Symbol;
|
|
18482
18489
|
var ITERATOR$2 = Symbol$5 && Symbol$5.iterator;
|
|
18483
18490
|
var FORCED = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity
|
|
18484
18491
|
// MS Edge 18- broken with boxed symbols
|
|
@@ -18967,7 +18974,7 @@ const PriceColumn = props => {
|
|
|
18967
18974
|
return addThousandSeparator(param);
|
|
18968
18975
|
};
|
|
18969
18976
|
|
|
18970
|
-
var _jsxFileName$e = "
|
|
18977
|
+
var _jsxFileName$e = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\table\\components\\columns\\RowExpanderColumn.js";
|
|
18971
18978
|
const rowExpanderColumn = {
|
|
18972
18979
|
id: 'expander',
|
|
18973
18980
|
Header: () => null,
|
|
@@ -19009,7 +19016,7 @@ const rowExpanderColumn = {
|
|
|
19009
19016
|
unsortable: true
|
|
19010
19017
|
};
|
|
19011
19018
|
|
|
19012
|
-
var _jsxFileName$d = "
|
|
19019
|
+
var _jsxFileName$d = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\table\\components\\columns\\RowMenuColumn.js";
|
|
19013
19020
|
|
|
19014
19021
|
const rowMenuColumn = (options, icon, config) => ({
|
|
19015
19022
|
id: 'menu',
|
|
@@ -19261,7 +19268,7 @@ const rowMenuColumn = (options, icon, config) => ({
|
|
|
19261
19268
|
unsortable: true
|
|
19262
19269
|
});
|
|
19263
19270
|
|
|
19264
|
-
var _jsxFileName$c = "
|
|
19271
|
+
var _jsxFileName$c = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\table\\components\\columns\\RowSelectionColumn.js";
|
|
19265
19272
|
const rowSelectionColumn = {
|
|
19266
19273
|
id: 'selection',
|
|
19267
19274
|
Header: ({
|
|
@@ -19564,7 +19571,7 @@ PageDialog.defaultProps = {
|
|
|
19564
19571
|
};
|
|
19565
19572
|
|
|
19566
19573
|
const _excluded$1 = ["children"];
|
|
19567
|
-
var _jsxFileName$b = "
|
|
19574
|
+
var _jsxFileName$b = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\alertDialog\\AlertDialog.js";
|
|
19568
19575
|
const overlayShow = keyframes({
|
|
19569
19576
|
'0%': {
|
|
19570
19577
|
opacity: 0
|
|
@@ -19736,7 +19743,7 @@ const TemplateAlertFunction = props => {
|
|
|
19736
19743
|
if (!props.onOpenAutoFocus) {
|
|
19737
19744
|
e.preventDefault();
|
|
19738
19745
|
} else {
|
|
19739
|
-
props
|
|
19746
|
+
props === null || props === void 0 ? void 0 : props.onOpenAutoFocus();
|
|
19740
19747
|
}
|
|
19741
19748
|
},
|
|
19742
19749
|
__self: undefined,
|
|
@@ -19857,8 +19864,8 @@ const TemplateAlertFunction = props => {
|
|
|
19857
19864
|
size: "sm",
|
|
19858
19865
|
onClick: buttonConfirm,
|
|
19859
19866
|
buttonType: props.dialogType,
|
|
19860
|
-
disabled: props
|
|
19861
|
-
}, props
|
|
19867
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19868
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
19862
19869
|
__self: undefined,
|
|
19863
19870
|
__source: {
|
|
19864
19871
|
fileName: _jsxFileName$b,
|
|
@@ -19877,12 +19884,12 @@ const TemplateAlertFunction = props => {
|
|
|
19877
19884
|
size: "sm",
|
|
19878
19885
|
onClick: buttonCancel,
|
|
19879
19886
|
css: {
|
|
19880
|
-
color: props.dialogType === 'negative' && !(props
|
|
19887
|
+
color: props.dialogType === 'negative' && !(props !== null && props !== void 0 && props.disabledButton) && '$gray900 !important',
|
|
19881
19888
|
flex: props.isMobile && 1
|
|
19882
19889
|
},
|
|
19883
19890
|
buttonType: "ghost",
|
|
19884
|
-
disabled: props
|
|
19885
|
-
}, props
|
|
19891
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19892
|
+
}, props === null || props === void 0 ? void 0 : props.cancelButtonProps, {
|
|
19886
19893
|
__self: undefined,
|
|
19887
19894
|
__source: {
|
|
19888
19895
|
fileName: _jsxFileName$b,
|
|
@@ -19904,8 +19911,8 @@ const TemplateAlertFunction = props => {
|
|
|
19904
19911
|
css: {
|
|
19905
19912
|
flex: props.isMobile && 1
|
|
19906
19913
|
},
|
|
19907
|
-
disabled: props
|
|
19908
|
-
}, props
|
|
19914
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19915
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
19909
19916
|
__self: undefined,
|
|
19910
19917
|
__source: {
|
|
19911
19918
|
fileName: _jsxFileName$b,
|
|
@@ -20065,8 +20072,8 @@ function AlertDialog(props) {
|
|
|
20065
20072
|
css: {
|
|
20066
20073
|
flex: props.isMobile && 1
|
|
20067
20074
|
},
|
|
20068
|
-
disabled: props
|
|
20069
|
-
}, props
|
|
20075
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
20076
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
20070
20077
|
__self: this,
|
|
20071
20078
|
__source: {
|
|
20072
20079
|
fileName: _jsxFileName$b,
|
|
@@ -20085,12 +20092,12 @@ function AlertDialog(props) {
|
|
|
20085
20092
|
size: "sm",
|
|
20086
20093
|
onClick: props.onCancel,
|
|
20087
20094
|
css: {
|
|
20088
|
-
color: props.dialogType === 'negative' && !(props
|
|
20095
|
+
color: props.dialogType === 'negative' && !(props !== null && props !== void 0 && props.disabledButton) && '$gray900 !important',
|
|
20089
20096
|
flex: props.isMobile && 1
|
|
20090
20097
|
},
|
|
20091
20098
|
buttonType: "ghost",
|
|
20092
|
-
disabled: props
|
|
20093
|
-
}, props
|
|
20099
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
20100
|
+
}, props === null || props === void 0 ? void 0 : props.cancelButtonProps, {
|
|
20094
20101
|
__self: this,
|
|
20095
20102
|
__source: {
|
|
20096
20103
|
fileName: _jsxFileName$b,
|
|
@@ -20112,8 +20119,8 @@ function AlertDialog(props) {
|
|
|
20112
20119
|
css: {
|
|
20113
20120
|
flex: props.isMobile && 1
|
|
20114
20121
|
},
|
|
20115
|
-
disabled: props
|
|
20116
|
-
}, props
|
|
20122
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
20123
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
20117
20124
|
__self: this,
|
|
20118
20125
|
__source: {
|
|
20119
20126
|
fileName: _jsxFileName$b,
|
|
@@ -20163,7 +20170,7 @@ const AlertDialogCancel = ADialog.Cancel;
|
|
|
20163
20170
|
const AlertDialogConfirm = ADialog.Action;
|
|
20164
20171
|
|
|
20165
20172
|
const _excluded = ["side", "align", "children"];
|
|
20166
|
-
var _jsxFileName$a = "
|
|
20173
|
+
var _jsxFileName$a = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\dropdownMenu\\DropdownMenu.js";
|
|
20167
20174
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
20168
20175
|
const slideUpAndFade = keyframes({
|
|
20169
20176
|
'0%': {
|
|
@@ -20500,6 +20507,7 @@ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
|
20500
20507
|
}
|
|
20501
20508
|
};
|
|
20502
20509
|
|
|
20510
|
+
var global$4 = global$U;
|
|
20503
20511
|
var bind$2 = functionBindContext;
|
|
20504
20512
|
var call$2 = functionCall;
|
|
20505
20513
|
var toObject = toObject$7;
|
|
@@ -20511,7 +20519,7 @@ var createProperty = createProperty$2;
|
|
|
20511
20519
|
var getIterator$1 = getIterator$3;
|
|
20512
20520
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
20513
20521
|
|
|
20514
|
-
var $
|
|
20522
|
+
var Array$1 = global$4.Array;
|
|
20515
20523
|
|
|
20516
20524
|
// `Array.from` method implementation
|
|
20517
20525
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -20526,7 +20534,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
20526
20534
|
var index = 0;
|
|
20527
20535
|
var length, result, step, iterator, next, value;
|
|
20528
20536
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
20529
|
-
if (iteratorMethod && !(this
|
|
20537
|
+
if (iteratorMethod && !(this == Array$1 && isArrayIteratorMethod(iteratorMethod))) {
|
|
20530
20538
|
iterator = getIterator$1(O, iteratorMethod);
|
|
20531
20539
|
next = iterator.next;
|
|
20532
20540
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -20536,7 +20544,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
20536
20544
|
}
|
|
20537
20545
|
} else {
|
|
20538
20546
|
length = lengthOfArrayLike(O);
|
|
20539
|
-
result = IS_CONSTRUCTOR ? new this(length) : $
|
|
20547
|
+
result = IS_CONSTRUCTOR ? new this(length) : Array$1(length);
|
|
20540
20548
|
for (;length > index; index++) {
|
|
20541
20549
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
20542
20550
|
createProperty(result, index, value);
|
|
@@ -20547,6 +20555,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
20547
20555
|
};
|
|
20548
20556
|
|
|
20549
20557
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
20558
|
+
var global$3 = global$U;
|
|
20550
20559
|
var uncurryThis$2 = functionUncurryThis;
|
|
20551
20560
|
|
|
20552
20561
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
@@ -20563,7 +20572,7 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
20563
20572
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
20564
20573
|
var baseMinusTMin = base - tMin;
|
|
20565
20574
|
|
|
20566
|
-
var
|
|
20575
|
+
var RangeError = global$3.RangeError;
|
|
20567
20576
|
var exec$1 = uncurryThis$2(regexSeparators.exec);
|
|
20568
20577
|
var floor$1 = Math.floor;
|
|
20569
20578
|
var fromCharCode = String.fromCharCode;
|
|
@@ -20678,7 +20687,7 @@ var encode = function (input) {
|
|
|
20678
20687
|
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
20679
20688
|
var handledCPCountPlusOne = handledCPCount + 1;
|
|
20680
20689
|
if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
|
|
20681
|
-
throw
|
|
20690
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
20682
20691
|
}
|
|
20683
20692
|
|
|
20684
20693
|
delta += (m - n) * handledCPCountPlusOne;
|
|
@@ -20687,7 +20696,7 @@ var encode = function (input) {
|
|
|
20687
20696
|
for (i = 0; i < input.length; i++) {
|
|
20688
20697
|
currentValue = input[i];
|
|
20689
20698
|
if (currentValue < n && ++delta > maxInt) {
|
|
20690
|
-
throw
|
|
20699
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
20691
20700
|
}
|
|
20692
20701
|
if (currentValue == n) {
|
|
20693
20702
|
// Represent delta as a generalized variable-length integer.
|
|
@@ -20737,7 +20746,7 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
20737
20746
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
20738
20747
|
|
|
20739
20748
|
var $$4 = _export;
|
|
20740
|
-
var global$2 = global$
|
|
20749
|
+
var global$2 = global$U;
|
|
20741
20750
|
var call$1 = functionCall;
|
|
20742
20751
|
var uncurryThis$1 = functionUncurryThis;
|
|
20743
20752
|
var DESCRIPTORS$1 = descriptors;
|
|
@@ -21099,7 +21108,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
21099
21108
|
};
|
|
21100
21109
|
|
|
21101
21110
|
if (isCallable(nativeFetch)) {
|
|
21102
|
-
$$4({ global: true, enumerable: true,
|
|
21111
|
+
$$4({ global: true, enumerable: true, noTargetGet: true, forced: true }, {
|
|
21103
21112
|
fetch: function fetch(input /* , init */) {
|
|
21104
21113
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
21105
21114
|
}
|
|
@@ -21115,7 +21124,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
21115
21124
|
RequestPrototype.constructor = RequestConstructor;
|
|
21116
21125
|
RequestConstructor.prototype = RequestPrototype;
|
|
21117
21126
|
|
|
21118
|
-
$$4({ global: true, constructor: true,
|
|
21127
|
+
$$4({ global: true, constructor: true, noTargetGet: true, forced: true }, {
|
|
21119
21128
|
Request: RequestConstructor
|
|
21120
21129
|
});
|
|
21121
21130
|
}
|
|
@@ -21131,7 +21140,7 @@ var web_urlSearchParams_constructor = {
|
|
|
21131
21140
|
var $$3 = _export;
|
|
21132
21141
|
var DESCRIPTORS = descriptors;
|
|
21133
21142
|
var USE_NATIVE_URL = nativeUrl;
|
|
21134
|
-
var global$1 = global$
|
|
21143
|
+
var global$1 = global$U;
|
|
21135
21144
|
var bind = functionBindContext;
|
|
21136
21145
|
var uncurryThis = functionUncurryThis;
|
|
21137
21146
|
var defineBuiltIn = defineBuiltIn$b;
|
|
@@ -22275,7 +22284,7 @@ function upload({
|
|
|
22275
22284
|
return promise;
|
|
22276
22285
|
}
|
|
22277
22286
|
|
|
22278
|
-
var _jsxFileName$9 = "
|
|
22287
|
+
var _jsxFileName$9 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\upload\\Upload.js";
|
|
22279
22288
|
const Input$2 = styled('input', {
|
|
22280
22289
|
display: 'none !important'
|
|
22281
22290
|
});
|
|
@@ -22593,7 +22602,7 @@ const Upload = ({
|
|
|
22593
22602
|
upload({
|
|
22594
22603
|
url: action,
|
|
22595
22604
|
file: newFile,
|
|
22596
|
-
customBody: customBodyRequest
|
|
22605
|
+
customBody: customBodyRequest === null || customBodyRequest === void 0 ? void 0 : customBodyRequest(newFile),
|
|
22597
22606
|
token,
|
|
22598
22607
|
tokenKey,
|
|
22599
22608
|
reqKey,
|
|
@@ -22616,12 +22625,12 @@ const Upload = ({
|
|
|
22616
22625
|
}
|
|
22617
22626
|
}
|
|
22618
22627
|
|
|
22619
|
-
onChange
|
|
22628
|
+
onChange === null || onChange === void 0 ? void 0 : (_onChange = onChange({
|
|
22620
22629
|
fileList: arrProgress,
|
|
22621
22630
|
file: fileProgress,
|
|
22622
22631
|
indexReplace: indexReplace.current,
|
|
22623
22632
|
isReplace: indexReplace.current !== null
|
|
22624
|
-
}))
|
|
22633
|
+
})) === null || _onChange === void 0 ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) === null || _onChange$then === void 0 ? void 0 : _onChange$then.catch(error => setError(error.message));
|
|
22625
22634
|
}
|
|
22626
22635
|
}).then(result => {
|
|
22627
22636
|
var _onChange2, _onChange2$then;
|
|
@@ -22638,12 +22647,12 @@ const Upload = ({
|
|
|
22638
22647
|
}
|
|
22639
22648
|
}
|
|
22640
22649
|
|
|
22641
|
-
onChange
|
|
22650
|
+
onChange === null || onChange === void 0 ? void 0 : (_onChange2 = onChange({
|
|
22642
22651
|
fileList: arrSuccess,
|
|
22643
22652
|
file: fileSuccess,
|
|
22644
22653
|
indexReplace: indexReplace.current,
|
|
22645
22654
|
isReplace: indexReplace.current !== null
|
|
22646
|
-
}))
|
|
22655
|
+
})) === null || _onChange2 === void 0 ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) === null || _onChange2$then === void 0 ? void 0 : _onChange2$then.catch(error => setError(error.message));
|
|
22647
22656
|
}).catch(error => {
|
|
22648
22657
|
var _onChange3, _onChange3$then;
|
|
22649
22658
|
|
|
@@ -22659,22 +22668,22 @@ const Upload = ({
|
|
|
22659
22668
|
}
|
|
22660
22669
|
}
|
|
22661
22670
|
|
|
22662
|
-
onChange
|
|
22671
|
+
onChange === null || onChange === void 0 ? void 0 : (_onChange3 = onChange({
|
|
22663
22672
|
fileList: arrError,
|
|
22664
22673
|
file: fileError,
|
|
22665
22674
|
indexReplace: indexReplace.current,
|
|
22666
22675
|
isReplace: indexReplace.current !== null
|
|
22667
|
-
}))
|
|
22676
|
+
})) === null || _onChange3 === void 0 ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) === null || _onChange3$then === void 0 ? void 0 : _onChange3$then.catch(error => setError(error.message));
|
|
22668
22677
|
});
|
|
22669
22678
|
} else {
|
|
22670
22679
|
var _onChange4, _onChange4$then;
|
|
22671
22680
|
|
|
22672
|
-
onChange
|
|
22681
|
+
onChange === null || onChange === void 0 ? void 0 : (_onChange4 = onChange({
|
|
22673
22682
|
fileList: arrFile,
|
|
22674
22683
|
file: newFile,
|
|
22675
22684
|
indexReplace: indexReplace.current,
|
|
22676
22685
|
isReplace: indexReplace.current !== null
|
|
22677
|
-
}))
|
|
22686
|
+
})) === null || _onChange4 === void 0 ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) === null || _onChange4$then === void 0 ? void 0 : _onChange4$then.catch(error => setError(error.message));
|
|
22678
22687
|
}
|
|
22679
22688
|
|
|
22680
22689
|
if (indexReplace.current !== null) {
|
|
@@ -22699,24 +22708,24 @@ const Upload = ({
|
|
|
22699
22708
|
// program to get the dimensions of an image
|
|
22700
22709
|
const img = document.createElement('img');
|
|
22701
22710
|
img.src = URL.createObjectURL(files[0]);
|
|
22702
|
-
img.size = files
|
|
22703
|
-
img.type = files
|
|
22711
|
+
img.size = files === null || files === void 0 ? void 0 : (_files$ = files[0]) === null || _files$ === void 0 ? void 0 : _files$.size;
|
|
22712
|
+
img.type = files === null || files === void 0 ? void 0 : (_files$2 = files[0]) === null || _files$2 === void 0 ? void 0 : _files$2.type;
|
|
22704
22713
|
|
|
22705
22714
|
img.onload = () => {
|
|
22706
22715
|
var _onBeforeCrop, _onBeforeCrop$then;
|
|
22707
22716
|
|
|
22708
|
-
onBeforeCrop
|
|
22717
|
+
onBeforeCrop === null || onBeforeCrop === void 0 ? void 0 : (_onBeforeCrop = onBeforeCrop(img)) === null || _onBeforeCrop === void 0 ? void 0 : (_onBeforeCrop$then = _onBeforeCrop.then(() => {
|
|
22709
22718
|
setError(null);
|
|
22710
22719
|
toggleModal();
|
|
22711
22720
|
setFileState(files[0]);
|
|
22712
22721
|
setPreviewImage(URL.createObjectURL(files[0]));
|
|
22713
|
-
}))
|
|
22722
|
+
})) === null || _onBeforeCrop$then === void 0 ? void 0 : _onBeforeCrop$then.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
|
|
22714
22723
|
};
|
|
22715
22724
|
|
|
22716
22725
|
img.onerror = error => {
|
|
22717
22726
|
var _onBeforeCrop2, _onBeforeCrop2$then;
|
|
22718
22727
|
|
|
22719
|
-
onBeforeCrop
|
|
22728
|
+
onBeforeCrop === null || onBeforeCrop === void 0 ? void 0 : (_onBeforeCrop2 = onBeforeCrop(img, error)) === null || _onBeforeCrop2 === void 0 ? void 0 : (_onBeforeCrop2$then = _onBeforeCrop2.then(() => setError(null))) === null || _onBeforeCrop2$then === void 0 ? void 0 : _onBeforeCrop2$then.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
|
|
22720
22729
|
};
|
|
22721
22730
|
} else {
|
|
22722
22731
|
toggleModal();
|
|
@@ -22728,15 +22737,15 @@ const Upload = ({
|
|
|
22728
22737
|
}
|
|
22729
22738
|
|
|
22730
22739
|
function handleCrop() {
|
|
22731
|
-
if (completedCrop
|
|
22740
|
+
if (completedCrop !== null && completedCrop !== void 0 && completedCrop.width && completedCrop !== null && completedCrop !== void 0 && completedCrop.height && imgRef.current) {
|
|
22732
22741
|
imgPreview(imgRef.current, completedCrop, 1, 0, ratio).then(blob => {
|
|
22733
|
-
const sizeMB = (blob
|
|
22742
|
+
const sizeMB = (blob === null || blob === void 0 ? void 0 : blob.size) / 1024 / 1024;
|
|
22734
22743
|
|
|
22735
22744
|
if (sizeMB < maxSizeMB || sizeMB < 1 || !imageCompression) {
|
|
22736
22745
|
var _fileState$name;
|
|
22737
22746
|
|
|
22738
|
-
const file = new File([blob], (fileState
|
|
22739
|
-
type: blob
|
|
22747
|
+
const file = new File([blob], (fileState === null || fileState === void 0 ? void 0 : (_fileState$name = fileState.name) === null || _fileState$name === void 0 ? void 0 : _fileState$name.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
22748
|
+
type: blob === null || blob === void 0 ? void 0 : blob.type
|
|
22740
22749
|
});
|
|
22741
22750
|
handleUpload([file]);
|
|
22742
22751
|
setCrop(null);
|
|
@@ -22751,17 +22760,17 @@ const Upload = ({
|
|
|
22751
22760
|
}).then(compressedFile => {
|
|
22752
22761
|
var _fileState$name2;
|
|
22753
22762
|
|
|
22754
|
-
const file = new File([compressedFile], (fileState
|
|
22755
|
-
type: compressedFile
|
|
22763
|
+
const file = new File([compressedFile], (fileState === null || fileState === void 0 ? void 0 : (_fileState$name2 = fileState.name) === null || _fileState$name2 === void 0 ? void 0 : _fileState$name2.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
22764
|
+
type: compressedFile === null || compressedFile === void 0 ? void 0 : compressedFile.type
|
|
22756
22765
|
});
|
|
22757
22766
|
handleUpload([file]);
|
|
22758
22767
|
setCrop(null);
|
|
22759
22768
|
setCompletedCrop(null);
|
|
22760
|
-
}).catch(error => console.error(error
|
|
22769
|
+
}).catch(error => console.error(error === null || error === void 0 ? void 0 : error.message));
|
|
22761
22770
|
}
|
|
22762
22771
|
|
|
22763
22772
|
toggleModal();
|
|
22764
|
-
}).catch(error => console.error(error
|
|
22773
|
+
}).catch(error => console.error(error === null || error === void 0 ? void 0 : error.message));
|
|
22765
22774
|
} else {
|
|
22766
22775
|
handleUpload([fileState]);
|
|
22767
22776
|
toggleModal();
|
|
@@ -22792,7 +22801,7 @@ const Upload = ({
|
|
|
22792
22801
|
const index = fileList.indexOf(file);
|
|
22793
22802
|
const newFileList = fileList.slice();
|
|
22794
22803
|
newFileList.splice(index, 1);
|
|
22795
|
-
onChange
|
|
22804
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
22796
22805
|
fileList: newFileList,
|
|
22797
22806
|
file
|
|
22798
22807
|
});
|
|
@@ -22820,22 +22829,22 @@ const Upload = ({
|
|
|
22820
22829
|
function handleOpenFile(file) {
|
|
22821
22830
|
var _String, _file$name;
|
|
22822
22831
|
|
|
22823
|
-
let extension = (_String = String(file
|
|
22832
|
+
let extension = (_String = String(file === null || file === void 0 ? void 0 : (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.split('.').pop())) === null || _String === void 0 ? void 0 : _String.toLowerCase();
|
|
22824
22833
|
|
|
22825
22834
|
if (extension === 'pdf') {
|
|
22826
|
-
window.open(file
|
|
22835
|
+
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
22827
22836
|
} else {
|
|
22828
|
-
request.get(file
|
|
22837
|
+
request.get(file === null || file === void 0 ? void 0 : file.url).end((err, res) => {
|
|
22829
22838
|
if (err) {
|
|
22830
22839
|
console.error(err.message);
|
|
22831
22840
|
}
|
|
22832
22841
|
|
|
22833
|
-
if (res && res
|
|
22834
|
-
const response = res
|
|
22842
|
+
if (res && res !== null && res !== void 0 && res.ok) {
|
|
22843
|
+
const response = res === null || res === void 0 ? void 0 : res.text;
|
|
22835
22844
|
const url = window.URL.createObjectURL(new Blob([response]));
|
|
22836
22845
|
const link = document.createElement('a');
|
|
22837
22846
|
link.href = url;
|
|
22838
|
-
link.setAttribute('download', file
|
|
22847
|
+
link.setAttribute('download', file === null || file === void 0 ? void 0 : file.name);
|
|
22839
22848
|
document.body.appendChild(link);
|
|
22840
22849
|
link.click();
|
|
22841
22850
|
document.body.removeChild(link);
|
|
@@ -22905,12 +22914,12 @@ const Upload = ({
|
|
|
22905
22914
|
}
|
|
22906
22915
|
|
|
22907
22916
|
const renderPicture = () => {
|
|
22908
|
-
return fileList
|
|
22909
|
-
if ((item
|
|
22917
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map((item, index) => {
|
|
22918
|
+
if ((item === null || item === void 0 ? void 0 : item.status) === 'uploading') {
|
|
22910
22919
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
22911
22920
|
key: index,
|
|
22912
|
-
progress: item
|
|
22913
|
-
loading: item
|
|
22921
|
+
progress: item === null || item === void 0 ? void 0 : item.percent,
|
|
22922
|
+
loading: item === null || item === void 0 ? void 0 : item.loading,
|
|
22914
22923
|
__self: undefined,
|
|
22915
22924
|
__source: {
|
|
22916
22925
|
fileName: _jsxFileName$9,
|
|
@@ -22985,14 +22994,14 @@ const Upload = ({
|
|
|
22985
22994
|
};
|
|
22986
22995
|
|
|
22987
22996
|
const renderFile = () => {
|
|
22988
|
-
return fileList
|
|
22997
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map((item, index) => {
|
|
22989
22998
|
var _item$name;
|
|
22990
22999
|
|
|
22991
|
-
if ((item
|
|
23000
|
+
if ((item === null || item === void 0 ? void 0 : item.status) === 'uploading') {
|
|
22992
23001
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
22993
23002
|
key: index,
|
|
22994
|
-
progress: item
|
|
22995
|
-
loading: item
|
|
23003
|
+
progress: item === null || item === void 0 ? void 0 : item.percent,
|
|
23004
|
+
loading: item === null || item === void 0 ? void 0 : item.loading,
|
|
22996
23005
|
__self: undefined,
|
|
22997
23006
|
__source: {
|
|
22998
23007
|
fileName: _jsxFileName$9,
|
|
@@ -23059,7 +23068,7 @@ const Upload = ({
|
|
|
23059
23068
|
lineNumber: 661,
|
|
23060
23069
|
columnNumber: 17
|
|
23061
23070
|
}
|
|
23062
|
-
}, ".", item
|
|
23071
|
+
}, ".", item === null || item === void 0 ? void 0 : (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
23063
23072
|
label: item.name,
|
|
23064
23073
|
__self: undefined,
|
|
23065
23074
|
__source: {
|
|
@@ -23231,7 +23240,7 @@ const Upload = ({
|
|
|
23231
23240
|
lineNumber: 736,
|
|
23232
23241
|
columnNumber: 11
|
|
23233
23242
|
}
|
|
23234
|
-
}, children
|
|
23243
|
+
}, children !== null && children !== void 0 ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
23235
23244
|
__self: this,
|
|
23236
23245
|
__source: {
|
|
23237
23246
|
fileName: _jsxFileName$9,
|
|
@@ -23265,7 +23274,7 @@ const Upload = ({
|
|
|
23265
23274
|
lineNumber: 742,
|
|
23266
23275
|
columnNumber: 17
|
|
23267
23276
|
}
|
|
23268
|
-
}, placeholder
|
|
23277
|
+
}, placeholder !== null && placeholder !== void 0 ? placeholder : `Pilih atau letakkan berkas di sini`)))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
23269
23278
|
__self: this,
|
|
23270
23279
|
__source: {
|
|
23271
23280
|
fileName: _jsxFileName$9,
|
|
@@ -23425,7 +23434,7 @@ const Upload = ({
|
|
|
23425
23434
|
|
|
23426
23435
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
23427
23436
|
direction: "row",
|
|
23428
|
-
gap: (fileList
|
|
23437
|
+
gap: (fileList === null || fileList === void 0 ? void 0 : fileList.length) <= 1 && max === 1 ? 0 : 3,
|
|
23429
23438
|
wrap: "wrap",
|
|
23430
23439
|
css: {
|
|
23431
23440
|
userSelect: 'none'
|
|
@@ -23464,176 +23473,176 @@ Upload.defaultProps = {
|
|
|
23464
23473
|
imageCompression: true
|
|
23465
23474
|
};
|
|
23466
23475
|
Upload.propTypes = {
|
|
23467
|
-
/**
|
|
23468
|
-
Placeholder label of upload.
|
|
23476
|
+
/**
|
|
23477
|
+
Placeholder label of upload.
|
|
23469
23478
|
*/
|
|
23470
23479
|
placeholder: PropTypes.string,
|
|
23471
23480
|
|
|
23472
|
-
/**
|
|
23473
|
-
Disabled state of upload.
|
|
23481
|
+
/**
|
|
23482
|
+
Disabled state of upload.
|
|
23474
23483
|
*/
|
|
23475
23484
|
disabled: PropTypes.bool,
|
|
23476
23485
|
|
|
23477
|
-
/**
|
|
23478
|
-
Built-in stylesheets, support for two types.
|
|
23486
|
+
/**
|
|
23487
|
+
Built-in stylesheets, support for two types.
|
|
23479
23488
|
*/
|
|
23480
23489
|
listType: PropTypes.oneOf(['file', 'picture']),
|
|
23481
23490
|
|
|
23482
|
-
/**
|
|
23483
|
-
Whether to support selected multiple file.
|
|
23491
|
+
/**
|
|
23492
|
+
Whether to support selected multiple file.
|
|
23484
23493
|
*/
|
|
23485
23494
|
multiple: PropTypes.bool,
|
|
23486
23495
|
|
|
23487
|
-
/**
|
|
23488
|
-
List of files to be uploaded.
|
|
23496
|
+
/**
|
|
23497
|
+
List of files to be uploaded.
|
|
23489
23498
|
*/
|
|
23490
23499
|
fileList: PropTypes.array,
|
|
23491
23500
|
|
|
23492
|
-
/**
|
|
23493
|
-
A callback function, can be executed when uploading state is changing.
|
|
23501
|
+
/**
|
|
23502
|
+
A callback function, can be executed when uploading state is changing.
|
|
23494
23503
|
*/
|
|
23495
23504
|
onChange: PropTypes.func,
|
|
23496
23505
|
|
|
23497
|
-
/**
|
|
23498
|
-
A callback function, can be executed when uploading in progress.
|
|
23499
|
-
`(progress) => void`
|
|
23506
|
+
/**
|
|
23507
|
+
A callback function, can be executed when uploading in progress.
|
|
23508
|
+
`(progress) => void`
|
|
23500
23509
|
*/
|
|
23501
23510
|
onProgress: PropTypes.func,
|
|
23502
23511
|
|
|
23503
|
-
/**
|
|
23504
|
-
A callback function, can be executed when uploading is success.
|
|
23505
|
-
`(response) => void`
|
|
23512
|
+
/**
|
|
23513
|
+
A callback function, can be executed when uploading is success.
|
|
23514
|
+
`(response) => void`
|
|
23506
23515
|
*/
|
|
23507
23516
|
onSuccess: PropTypes.func,
|
|
23508
23517
|
|
|
23509
|
-
/**
|
|
23510
|
-
A callback function, can be executed when uploading is error.
|
|
23511
|
-
`(error, response) => void`
|
|
23518
|
+
/**
|
|
23519
|
+
A callback function, can be executed when uploading is error.
|
|
23520
|
+
`(error, response) => void`
|
|
23512
23521
|
*/
|
|
23513
23522
|
onError: PropTypes.func,
|
|
23514
23523
|
|
|
23515
|
-
/**
|
|
23516
|
-
A callback function, can be executed when preview icon in picture type is clicked.
|
|
23524
|
+
/**
|
|
23525
|
+
A callback function, can be executed when preview icon in picture type is clicked.
|
|
23517
23526
|
*/
|
|
23518
23527
|
onPreview: PropTypes.func,
|
|
23519
23528
|
|
|
23520
|
-
/**
|
|
23521
|
-
A callback function, can be executed when remove icon is clicked.
|
|
23529
|
+
/**
|
|
23530
|
+
A callback function, can be executed when remove icon is clicked.
|
|
23522
23531
|
*/
|
|
23523
23532
|
onRemove: PropTypes.func,
|
|
23524
23533
|
|
|
23525
|
-
/**
|
|
23526
|
-
A custom element inside upload container.
|
|
23534
|
+
/**
|
|
23535
|
+
A custom element inside upload container.
|
|
23527
23536
|
*/
|
|
23528
23537
|
children: PropTypes.element,
|
|
23529
23538
|
|
|
23530
|
-
/**
|
|
23531
|
-
Limit the number of uploaded files.
|
|
23539
|
+
/**
|
|
23540
|
+
Limit the number of uploaded files.
|
|
23532
23541
|
*/
|
|
23533
23542
|
max: PropTypes.number,
|
|
23534
23543
|
|
|
23535
|
-
/**
|
|
23536
|
-
Limit the maximum image size in MB.
|
|
23544
|
+
/**
|
|
23545
|
+
Limit the maximum image size in MB.
|
|
23537
23546
|
*/
|
|
23538
23547
|
maxSizeMB: PropTypes.number,
|
|
23539
23548
|
|
|
23540
|
-
/**
|
|
23541
|
-
Limit file type of upload.
|
|
23549
|
+
/**
|
|
23550
|
+
Limit file type of upload.
|
|
23542
23551
|
*/
|
|
23543
23552
|
accept: PropTypes.string,
|
|
23544
23553
|
|
|
23545
|
-
/**
|
|
23546
|
-
Custom label for replace button.
|
|
23554
|
+
/**
|
|
23555
|
+
Custom label for replace button.
|
|
23547
23556
|
*/
|
|
23548
23557
|
replaceLabel: PropTypes.string,
|
|
23549
23558
|
|
|
23550
|
-
/**
|
|
23551
|
-
Custom width of upload container.
|
|
23559
|
+
/**
|
|
23560
|
+
Custom width of upload container.
|
|
23552
23561
|
*/
|
|
23553
23562
|
width: PropTypes.number,
|
|
23554
23563
|
|
|
23555
|
-
/**
|
|
23556
|
-
Custom height of upload container.
|
|
23564
|
+
/**
|
|
23565
|
+
Custom height of upload container.
|
|
23557
23566
|
*/
|
|
23558
23567
|
height: PropTypes.number,
|
|
23559
23568
|
|
|
23560
|
-
/**
|
|
23561
|
-
Additional css.
|
|
23569
|
+
/**
|
|
23570
|
+
Additional css.
|
|
23562
23571
|
*/
|
|
23563
23572
|
css: PropTypes.object,
|
|
23564
23573
|
|
|
23565
|
-
/**
|
|
23566
|
-
Custom title header of cropper modal.
|
|
23574
|
+
/**
|
|
23575
|
+
Custom title header of cropper modal.
|
|
23567
23576
|
*/
|
|
23568
23577
|
cropperTitle: PropTypes.string,
|
|
23569
23578
|
|
|
23570
|
-
/**
|
|
23571
|
-
Add image cropper on upload.
|
|
23579
|
+
/**
|
|
23580
|
+
Add image cropper on upload.
|
|
23572
23581
|
*/
|
|
23573
23582
|
showCropper: PropTypes.bool,
|
|
23574
23583
|
|
|
23575
|
-
/**
|
|
23576
|
-
Hidden toggle aspect ratio image cropper.
|
|
23584
|
+
/**
|
|
23585
|
+
Hidden toggle aspect ratio image cropper.
|
|
23577
23586
|
*/
|
|
23578
23587
|
hiddenToggleAspect: PropTypes.bool,
|
|
23579
23588
|
|
|
23580
|
-
/**
|
|
23581
|
-
The aspect ratio of the crop, e.g. `1` for a square or `16 / 9` for landscape. Omit/pass undefined for a free-form crop.
|
|
23589
|
+
/**
|
|
23590
|
+
The aspect ratio of the crop, e.g. `1` for a square or `16 / 9` for landscape. Omit/pass undefined for a free-form crop.
|
|
23582
23591
|
*/
|
|
23583
23592
|
ratio: PropTypes.number,
|
|
23584
23593
|
|
|
23585
|
-
/**
|
|
23586
|
-
Can set error message to the upload.
|
|
23594
|
+
/**
|
|
23595
|
+
Can set error message to the upload.
|
|
23587
23596
|
*/
|
|
23588
23597
|
errorMessage: PropTypes.string,
|
|
23589
23598
|
|
|
23590
|
-
/**
|
|
23591
|
-
Progress of upload process.
|
|
23599
|
+
/**
|
|
23600
|
+
Progress of upload process.
|
|
23592
23601
|
*/
|
|
23593
23602
|
progress: PropTypes.number,
|
|
23594
23603
|
|
|
23595
|
-
/**
|
|
23596
|
-
Auto increment progress of upload process.
|
|
23604
|
+
/**
|
|
23605
|
+
Auto increment progress of upload process.
|
|
23597
23606
|
*/
|
|
23598
23607
|
loading: PropTypes.bool,
|
|
23599
23608
|
|
|
23600
|
-
/**
|
|
23601
|
-
API upload url, allows components to automatically upload directly to API service.
|
|
23609
|
+
/**
|
|
23610
|
+
API upload url, allows components to automatically upload directly to API service.
|
|
23602
23611
|
*/
|
|
23603
23612
|
action: PropTypes.string,
|
|
23604
23613
|
|
|
23605
|
-
/**
|
|
23606
|
-
Custom body request to upload action.
|
|
23614
|
+
/**
|
|
23615
|
+
Custom body request to upload action.
|
|
23607
23616
|
*/
|
|
23608
23617
|
customBodyRequest: PropTypes.func,
|
|
23609
23618
|
|
|
23610
|
-
/**
|
|
23611
|
-
Contains an authentication token for upload API.
|
|
23619
|
+
/**
|
|
23620
|
+
Contains an authentication token for upload API.
|
|
23612
23621
|
*/
|
|
23613
23622
|
token: PropTypes.string,
|
|
23614
23623
|
|
|
23615
|
-
/**
|
|
23616
|
-
Referencing the headers key to attach the token.
|
|
23624
|
+
/**
|
|
23625
|
+
Referencing the headers key to attach the token.
|
|
23617
23626
|
*/
|
|
23618
23627
|
tokenKey: PropTypes.string,
|
|
23619
23628
|
|
|
23620
|
-
/**
|
|
23621
|
-
Referencing the key to attach the file to be sent.
|
|
23629
|
+
/**
|
|
23630
|
+
Referencing the key to attach the file to be sent.
|
|
23622
23631
|
*/
|
|
23623
23632
|
reqKey: PropTypes.string,
|
|
23624
23633
|
|
|
23625
|
-
/**
|
|
23626
|
-
Referencing the key to get the file from the API response.
|
|
23634
|
+
/**
|
|
23635
|
+
Referencing the key to get the file from the API response.
|
|
23627
23636
|
*/
|
|
23628
23637
|
resKey: PropTypes.string,
|
|
23629
23638
|
|
|
23630
|
-
/**
|
|
23631
|
-
To compression image if file size > 1MB.
|
|
23639
|
+
/**
|
|
23640
|
+
To compression image if file size > 1MB.
|
|
23632
23641
|
*/
|
|
23633
23642
|
imageCompression: PropTypes.bool,
|
|
23634
23643
|
|
|
23635
|
-
/**
|
|
23636
|
-
Callback to handle before crop image.
|
|
23644
|
+
/**
|
|
23645
|
+
Callback to handle before crop image.
|
|
23637
23646
|
*/
|
|
23638
23647
|
onBeforeCrop: PropTypes.func
|
|
23639
23648
|
};
|
|
@@ -23682,6 +23691,8 @@ const CardMessage = styled('div', {
|
|
|
23682
23691
|
color: '$textPrimary',
|
|
23683
23692
|
fontSize: 12,
|
|
23684
23693
|
fontWeight: 400,
|
|
23694
|
+
overflowWrap: 'break-word',
|
|
23695
|
+
wordWrap: 'break-word',
|
|
23685
23696
|
variants: {
|
|
23686
23697
|
variant: {
|
|
23687
23698
|
sms: {
|
|
@@ -23909,8 +23920,7 @@ const Device = props => {
|
|
|
23909
23920
|
border: 'none',
|
|
23910
23921
|
width: '100%',
|
|
23911
23922
|
height: '100%',
|
|
23912
|
-
|
|
23913
|
-
zIndex: 1
|
|
23923
|
+
zIndex: 3
|
|
23914
23924
|
}
|
|
23915
23925
|
}, {
|
|
23916
23926
|
children: jsxs(Box, Object.assign({
|
|
@@ -23923,13 +23933,29 @@ const Device = props => {
|
|
|
23923
23933
|
height: "100%",
|
|
23924
23934
|
objectFit: props.typeDevice === 'android' ? 'fill' : 'cover',
|
|
23925
23935
|
src: img$g,
|
|
23926
|
-
alt: "whatsapp-preview"
|
|
23936
|
+
alt: "whatsapp-preview",
|
|
23937
|
+
css: {
|
|
23938
|
+
borderRadius: 8
|
|
23939
|
+
}
|
|
23927
23940
|
}, void 0), jsx(Box, Object.assign({
|
|
23941
|
+
className: "mobile-scrollbar",
|
|
23928
23942
|
css: {
|
|
23929
23943
|
position: 'absolute',
|
|
23930
23944
|
right: '5%',
|
|
23931
23945
|
bottom: '12%',
|
|
23932
|
-
left: '10%'
|
|
23946
|
+
left: '10%',
|
|
23947
|
+
top: '10%',
|
|
23948
|
+
overflow: 'auto',
|
|
23949
|
+
'&::-webkit-scrollbar': {
|
|
23950
|
+
width: 3
|
|
23951
|
+
},
|
|
23952
|
+
'&::-webkit-scrollbar-track': {
|
|
23953
|
+
boxShadow: 'inset 0 0 6px $gray200'
|
|
23954
|
+
},
|
|
23955
|
+
'&::-webkit-scrollbar-thumb': {
|
|
23956
|
+
backgroundColor: '$gray150',
|
|
23957
|
+
outline: '1px solid $gray150'
|
|
23958
|
+
}
|
|
23933
23959
|
}
|
|
23934
23960
|
}, {
|
|
23935
23961
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? jsx(CardMessage, Object.assign({
|
|
@@ -24045,7 +24071,9 @@ const Device = props => {
|
|
|
24045
24071
|
css: {
|
|
24046
24072
|
fontSize: 12,
|
|
24047
24073
|
color: '$textPrimary',
|
|
24048
|
-
lineHeight: '16px'
|
|
24074
|
+
lineHeight: '16px',
|
|
24075
|
+
overflowWrap: 'break-word',
|
|
24076
|
+
wordWrap: 'break-word'
|
|
24049
24077
|
}
|
|
24050
24078
|
}, {
|
|
24051
24079
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? content === null || content === void 0 ? void 0 : content.message : (_f = content === null || content === void 0 ? void 0 : content.message) === null || _f === void 0 ? void 0 : _f.call(content)
|
|
@@ -24144,7 +24172,9 @@ const Device = props => {
|
|
|
24144
24172
|
css: {
|
|
24145
24173
|
fontSize: 9,
|
|
24146
24174
|
color: '$textSecondary',
|
|
24147
|
-
lineHeight: '14px !important'
|
|
24175
|
+
lineHeight: '14px !important',
|
|
24176
|
+
overflowWrap: 'break-word',
|
|
24177
|
+
wordWrap: 'break-word'
|
|
24148
24178
|
}
|
|
24149
24179
|
}, {
|
|
24150
24180
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? content === null || content === void 0 ? void 0 : content.message : (_j = content === null || content === void 0 ? void 0 : content.message) === null || _j === void 0 ? void 0 : _j.call(content)
|
|
@@ -24188,7 +24218,7 @@ const Device = props => {
|
|
|
24188
24218
|
style: {
|
|
24189
24219
|
width: props.size ? props.size : undefined,
|
|
24190
24220
|
position: 'relative',
|
|
24191
|
-
zIndex: withComponent ? 1 : 2
|
|
24221
|
+
zIndex: withComponent || (props === null || props === void 0 ? void 0 : props.variant) === 'whatsapp' ? 1 : 2
|
|
24192
24222
|
},
|
|
24193
24223
|
src: properties.typeDevice,
|
|
24194
24224
|
alt: "device-preview"
|
|
@@ -24239,7 +24269,7 @@ const Device = props => {
|
|
|
24239
24269
|
|
|
24240
24270
|
Device.displayName = 'DevicePreview';
|
|
24241
24271
|
|
|
24242
|
-
var _jsxFileName$8 = "
|
|
24272
|
+
var _jsxFileName$8 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\colorPicker\\InputColorPicker.js";
|
|
24243
24273
|
const Separator$1 = styled('div', {
|
|
24244
24274
|
height: 20,
|
|
24245
24275
|
width: 1,
|
|
@@ -24251,10 +24281,10 @@ function InputColorPicker(props) {
|
|
|
24251
24281
|
const [isPopover, setIsPopover] = useState(false);
|
|
24252
24282
|
|
|
24253
24283
|
function getColor() {
|
|
24254
|
-
const color = props
|
|
24284
|
+
const color = props === null || props === void 0 ? void 0 : props.color;
|
|
24255
24285
|
|
|
24256
24286
|
if (typeof color === 'string') {
|
|
24257
|
-
return color
|
|
24287
|
+
return color === null || color === void 0 ? void 0 : color.toUpperCase();
|
|
24258
24288
|
}
|
|
24259
24289
|
|
|
24260
24290
|
return `rgba(${color.r},${color.g},${color.b},${color.a})`;
|
|
@@ -24351,28 +24381,28 @@ function InputColorPicker(props) {
|
|
|
24351
24381
|
|
|
24352
24382
|
InputColorPicker.displayName = 'InputColorPicker';
|
|
24353
24383
|
InputColorPicker.propTypes = {
|
|
24354
|
-
/**
|
|
24355
|
-
Color code to be displayed.
|
|
24384
|
+
/**
|
|
24385
|
+
Color code to be displayed.
|
|
24356
24386
|
*/
|
|
24357
24387
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
24358
24388
|
|
|
24359
|
-
/**
|
|
24360
|
-
Additional color list.
|
|
24389
|
+
/**
|
|
24390
|
+
Additional color list.
|
|
24361
24391
|
*/
|
|
24362
24392
|
presetColors: PropTypes.array,
|
|
24363
24393
|
|
|
24364
|
-
/**
|
|
24365
|
-
Change event handler.
|
|
24394
|
+
/**
|
|
24395
|
+
Change event handler.
|
|
24366
24396
|
*/
|
|
24367
24397
|
onChange: PropTypes.func,
|
|
24368
24398
|
|
|
24369
|
-
/**
|
|
24370
|
-
Add preset color event handler.
|
|
24399
|
+
/**
|
|
24400
|
+
Add preset color event handler.
|
|
24371
24401
|
*/
|
|
24372
24402
|
onAddColor: PropTypes.func,
|
|
24373
24403
|
|
|
24374
|
-
/**
|
|
24375
|
-
Disable opacity selector.
|
|
24404
|
+
/**
|
|
24405
|
+
Disable opacity selector.
|
|
24376
24406
|
*/
|
|
24377
24407
|
disableAlpha: PropTypes.bool
|
|
24378
24408
|
};
|
|
@@ -24382,7 +24412,7 @@ InputColorPicker.defaultProps = {
|
|
|
24382
24412
|
|
|
24383
24413
|
var img$d = "data:image/gif;base64,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";
|
|
24384
24414
|
|
|
24385
|
-
var _jsxFileName$7 = "
|
|
24415
|
+
var _jsxFileName$7 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\colorPicker\\components\\ColorMap.js";
|
|
24386
24416
|
const Container$6 = styled('div', {
|
|
24387
24417
|
userSelect: 'none',
|
|
24388
24418
|
margin: 'auto',
|
|
@@ -26346,7 +26376,7 @@ function ColorMap({
|
|
|
26346
26376
|
})));
|
|
26347
26377
|
}
|
|
26348
26378
|
|
|
26349
|
-
var _jsxFileName$6 = "
|
|
26379
|
+
var _jsxFileName$6 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\colorPicker\\components\\ColorFields.js";
|
|
26350
26380
|
const CheckBoard = styled(Flex$1, {
|
|
26351
26381
|
background: '$bgwhite',
|
|
26352
26382
|
border: '1px solid #E5E7EB',
|
|
@@ -26547,7 +26577,7 @@ function ColorFields({
|
|
|
26547
26577
|
}, "%")));
|
|
26548
26578
|
}
|
|
26549
26579
|
|
|
26550
|
-
var _jsxFileName$5 = "
|
|
26580
|
+
var _jsxFileName$5 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\colorPicker\\ColorPicker.js";
|
|
26551
26581
|
const Container$5 = styled(Flex$1, {
|
|
26552
26582
|
background: '$white',
|
|
26553
26583
|
padding: 16,
|
|
@@ -27050,28 +27080,28 @@ function ColorPicker({
|
|
|
27050
27080
|
}
|
|
27051
27081
|
|
|
27052
27082
|
ColorPicker.propTypes = {
|
|
27053
|
-
/**
|
|
27054
|
-
Color code to be displayed.
|
|
27083
|
+
/**
|
|
27084
|
+
Color code to be displayed.
|
|
27055
27085
|
*/
|
|
27056
27086
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
27057
27087
|
|
|
27058
|
-
/**
|
|
27059
|
-
Additional color list
|
|
27088
|
+
/**
|
|
27089
|
+
Additional color list
|
|
27060
27090
|
*/
|
|
27061
27091
|
presetColors: PropTypes.array,
|
|
27062
27092
|
|
|
27063
|
-
/**
|
|
27064
|
-
Change event handler
|
|
27093
|
+
/**
|
|
27094
|
+
Change event handler
|
|
27065
27095
|
*/
|
|
27066
27096
|
onChange: PropTypes.func,
|
|
27067
27097
|
|
|
27068
|
-
/**
|
|
27069
|
-
Add preset color event handler
|
|
27098
|
+
/**
|
|
27099
|
+
Add preset color event handler
|
|
27070
27100
|
*/
|
|
27071
27101
|
onAddColor: PropTypes.func,
|
|
27072
27102
|
|
|
27073
|
-
/**
|
|
27074
|
-
Disable opacity selector
|
|
27103
|
+
/**
|
|
27104
|
+
Disable opacity selector
|
|
27075
27105
|
*/
|
|
27076
27106
|
disableAlpha: PropTypes.bool
|
|
27077
27107
|
};
|
|
@@ -27080,7 +27110,7 @@ ColorPicker.defaultProps = {
|
|
|
27080
27110
|
};
|
|
27081
27111
|
var ColorPicker$1 = ColorWrap(ColorPicker);
|
|
27082
27112
|
|
|
27083
|
-
var _jsxFileName$4 = "
|
|
27113
|
+
var _jsxFileName$4 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\stepWizard\\StepWizard.js";
|
|
27084
27114
|
const StepWizardContext = /*#__PURE__*/React__default.createContext({});
|
|
27085
27115
|
const Stepper = StepWizard$1;
|
|
27086
27116
|
Stepper.displayName = 'Stepper';
|
|
@@ -27226,9 +27256,9 @@ const Navigation = props => {
|
|
|
27226
27256
|
lineNumber: 120,
|
|
27227
27257
|
columnNumber: 30
|
|
27228
27258
|
}
|
|
27229
|
-
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data = data[i - 1]).title)
|
|
27259
|
+
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data = data[i - 1]).title) === null || _data$title === void 0 ? void 0 : _data$title.call(_data), ((_data2 = data[i - 1]) === null || _data2 === void 0 ? void 0 : _data2.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
27230
27260
|
align: "center",
|
|
27231
|
-
label: (_data3 = data[i - 1])
|
|
27261
|
+
label: (_data3 = data[i - 1]) === null || _data3 === void 0 ? void 0 : _data3.tooltipsContents,
|
|
27232
27262
|
__self: undefined,
|
|
27233
27263
|
__source: {
|
|
27234
27264
|
fileName: _jsxFileName$4,
|
|
@@ -27247,9 +27277,9 @@ const Navigation = props => {
|
|
|
27247
27277
|
lineNumber: 124,
|
|
27248
27278
|
columnNumber: 19
|
|
27249
27279
|
}
|
|
27250
|
-
})), ((_data4 = data[i - 1])
|
|
27280
|
+
})), ((_data4 = data[i - 1]) === null || _data4 === void 0 ? void 0 : _data4.comingSoon) && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
27251
27281
|
css: {
|
|
27252
|
-
marginLeft: (_data5 = data[i - 1])
|
|
27282
|
+
marginLeft: (_data5 = data[i - 1]) !== null && _data5 !== void 0 && _data5.withTolltip ? 0 : '$spacing-03'
|
|
27253
27283
|
},
|
|
27254
27284
|
align: "center",
|
|
27255
27285
|
__self: undefined,
|
|
@@ -27301,7 +27331,7 @@ const Navigation = props => {
|
|
|
27301
27331
|
height: 24,
|
|
27302
27332
|
borderRadius: '$round',
|
|
27303
27333
|
border: `4px solid ${isActive ? '$bgGreen' : '$bgInactive'}`,
|
|
27304
|
-
backgroundColor: (_data6 = data[i - 1])
|
|
27334
|
+
backgroundColor: (_data6 = data[i - 1]) !== null && _data6 !== void 0 && _data6.disabled ? '$gray200' : '$white'
|
|
27305
27335
|
},
|
|
27306
27336
|
__self: undefined,
|
|
27307
27337
|
__source: {
|
|
@@ -27319,10 +27349,10 @@ const Navigation = props => {
|
|
|
27319
27349
|
lineNumber: 163,
|
|
27320
27350
|
columnNumber: 15
|
|
27321
27351
|
}
|
|
27322
|
-
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data7 = data[i - 1]).title)
|
|
27352
|
+
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data7 = data[i - 1]).title) === null || _data$title2 === void 0 ? void 0 : _data$title2.call(_data7) : ''), isActive && ((_data8 = data[i - 1]) === null || _data8 === void 0 ? void 0 : _data8.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
27323
27353
|
align: "center",
|
|
27324
27354
|
withClick: true,
|
|
27325
|
-
label: (_data9 = data[i - 1])
|
|
27355
|
+
label: (_data9 = data[i - 1]) === null || _data9 === void 0 ? void 0 : _data9.tooltipsContents,
|
|
27326
27356
|
__self: undefined,
|
|
27327
27357
|
__source: {
|
|
27328
27358
|
fileName: _jsxFileName$4,
|
|
@@ -27338,11 +27368,11 @@ const Navigation = props => {
|
|
|
27338
27368
|
lineNumber: 168,
|
|
27339
27369
|
columnNumber: 19
|
|
27340
27370
|
}
|
|
27341
|
-
})), isActive && ((_data10 = data[i - 1])
|
|
27371
|
+
})), isActive && ((_data10 = data[i - 1]) === null || _data10 === void 0 ? void 0 : _data10.comingSoon) && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
27342
27372
|
align: "center",
|
|
27343
27373
|
justify: "center",
|
|
27344
27374
|
css: {
|
|
27345
|
-
marginTop: (_data11 = data[i - 1])
|
|
27375
|
+
marginTop: (_data11 = data[i - 1]) !== null && _data11 !== void 0 && _data11.withTolltip ? 0 : '$spacing-03'
|
|
27346
27376
|
},
|
|
27347
27377
|
__self: undefined,
|
|
27348
27378
|
__source: {
|
|
@@ -27424,7 +27454,9 @@ const Default = props => {
|
|
|
27424
27454
|
}));
|
|
27425
27455
|
}, [props.hide]);
|
|
27426
27456
|
useEffect(() => {
|
|
27427
|
-
|
|
27457
|
+
var _props$onChangeVisibi;
|
|
27458
|
+
|
|
27459
|
+
props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
|
|
27428
27460
|
}, [state.hide]);
|
|
27429
27461
|
|
|
27430
27462
|
const toogleVisibility = value => {
|
|
@@ -27436,13 +27468,13 @@ const Default = props => {
|
|
|
27436
27468
|
const getIsComplete = currentStep => {
|
|
27437
27469
|
var _state$isComplete;
|
|
27438
27470
|
|
|
27439
|
-
return state
|
|
27471
|
+
return state === null || state === void 0 ? void 0 : (_state$isComplete = state.isComplete) === null || _state$isComplete === void 0 ? void 0 : _state$isComplete[currentStep - 1];
|
|
27440
27472
|
};
|
|
27441
27473
|
|
|
27442
27474
|
const getTitleStep = currentStep => {
|
|
27443
27475
|
var _props$navContents, _props$navContents2;
|
|
27444
27476
|
|
|
27445
|
-
return props
|
|
27477
|
+
return props === null || props === void 0 ? void 0 : (_props$navContents = props.navContents) === null || _props$navContents === void 0 ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) === null || _props$navContents2 === void 0 ? void 0 : _props$navContents2.title;
|
|
27446
27478
|
};
|
|
27447
27479
|
|
|
27448
27480
|
const setState = value => {
|
|
@@ -27484,15 +27516,15 @@ const Default = props => {
|
|
|
27484
27516
|
});
|
|
27485
27517
|
props.onStepChange && props.onStepChange(e);
|
|
27486
27518
|
|
|
27487
|
-
if (props
|
|
27488
|
-
if ((e
|
|
27519
|
+
if (props !== null && props !== void 0 && (_props$navContents3 = props.navContents) !== null && _props$navContents3 !== void 0 && (_props$navContents4 = _props$navContents3[(e === null || e === void 0 ? void 0 : e.activeStep) - 1]) !== null && _props$navContents4 !== void 0 && _props$navContents4.disabled) {
|
|
27520
|
+
if ((e === null || e === void 0 ? void 0 : e.activeStep) > (e === null || e === void 0 ? void 0 : e.previousStep)) {
|
|
27489
27521
|
var _state$SW;
|
|
27490
27522
|
|
|
27491
|
-
state
|
|
27523
|
+
state === null || state === void 0 ? void 0 : (_state$SW = state.SW) === null || _state$SW === void 0 ? void 0 : _state$SW.nextStep();
|
|
27492
27524
|
} else {
|
|
27493
27525
|
var _state$SW2;
|
|
27494
27526
|
|
|
27495
|
-
state
|
|
27527
|
+
state === null || state === void 0 ? void 0 : (_state$SW2 = state.SW) === null || _state$SW2 === void 0 ? void 0 : _state$SW2.previousStep();
|
|
27496
27528
|
}
|
|
27497
27529
|
}
|
|
27498
27530
|
};
|
|
@@ -27508,11 +27540,11 @@ const Default = props => {
|
|
|
27508
27540
|
}, /*#__PURE__*/React__default.createElement(StepWizardContext.Provider, {
|
|
27509
27541
|
value: {
|
|
27510
27542
|
toogleVisibility,
|
|
27511
|
-
isHide: state
|
|
27543
|
+
isHide: state === null || state === void 0 ? void 0 : state.hide,
|
|
27512
27544
|
setComplete,
|
|
27513
27545
|
setState,
|
|
27514
27546
|
state,
|
|
27515
|
-
SW: state
|
|
27547
|
+
SW: state === null || state === void 0 ? void 0 : state.SW,
|
|
27516
27548
|
forbidClickNav: props.forbidClickNav,
|
|
27517
27549
|
titles: props.titles,
|
|
27518
27550
|
isMobile: props.isMobile,
|
|
@@ -27559,7 +27591,7 @@ const StepWizard = props => {
|
|
|
27559
27591
|
}), void 0);
|
|
27560
27592
|
};
|
|
27561
27593
|
|
|
27562
|
-
var _jsxFileName$3 = "
|
|
27594
|
+
var _jsxFileName$3 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\tableOfContent\\transition.js";
|
|
27563
27595
|
|
|
27564
27596
|
function Collapse({
|
|
27565
27597
|
children,
|
|
@@ -27604,7 +27636,7 @@ Collapse.defaultProps = {
|
|
|
27604
27636
|
isOpen: false
|
|
27605
27637
|
};
|
|
27606
27638
|
|
|
27607
|
-
var _jsxFileName$2 = "
|
|
27639
|
+
var _jsxFileName$2 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\tableOfContent\\TableOfContent.js";
|
|
27608
27640
|
const DesktopContainer = styled(Flex$1, {
|
|
27609
27641
|
display: 'none',
|
|
27610
27642
|
'& .active-scroll-spy': {
|
|
@@ -27685,10 +27717,10 @@ function Content({
|
|
|
27685
27717
|
function getDatasets(content, activeId, isCollapse) {
|
|
27686
27718
|
const datasets = [];
|
|
27687
27719
|
|
|
27688
|
-
for (let i = 0; i < (content
|
|
27720
|
+
for (let i = 0; i < (content === null || content === void 0 ? void 0 : content.length); i++) {
|
|
27689
27721
|
var _content$i;
|
|
27690
27722
|
|
|
27691
|
-
if (((_content$i = content[i])
|
|
27723
|
+
if (((_content$i = content[i]) === null || _content$i === void 0 ? void 0 : _content$i.id) === activeId) {
|
|
27692
27724
|
datasets.unshift(content[i]);
|
|
27693
27725
|
} else {
|
|
27694
27726
|
datasets.push(content[i]);
|
|
@@ -27728,7 +27760,7 @@ function Content({
|
|
|
27728
27760
|
lineNumber: 99,
|
|
27729
27761
|
columnNumber: 7
|
|
27730
27762
|
}
|
|
27731
|
-
}, (_getDatasets = getDatasets(content, activeId, isCollapse))
|
|
27763
|
+
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) === null || _getDatasets === void 0 ? void 0 : _getDatasets.map((item, index) => {
|
|
27732
27764
|
return /*#__PURE__*/React__default.createElement(List, {
|
|
27733
27765
|
key: index,
|
|
27734
27766
|
__self: this,
|
|
@@ -27745,11 +27777,11 @@ function Content({
|
|
|
27745
27777
|
marginLeft: '-4px !important',
|
|
27746
27778
|
borderLeftWidth: '4px !important',
|
|
27747
27779
|
borderLeftStyle: 'solid !important',
|
|
27748
|
-
borderLeftColor: `${(item
|
|
27780
|
+
borderLeftColor: `${(item === null || item === void 0 ? void 0 : item.id) === activeId ? colors$4.primary500 : 'transparent'} !important`,
|
|
27749
27781
|
paddingLeft: '16px !important',
|
|
27750
27782
|
minHeight: 25
|
|
27751
27783
|
},
|
|
27752
|
-
"data-to-scrollspy-id": item
|
|
27784
|
+
"data-to-scrollspy-id": item === null || item === void 0 ? void 0 : item.id,
|
|
27753
27785
|
__self: this,
|
|
27754
27786
|
__source: {
|
|
27755
27787
|
fileName: _jsxFileName$2,
|
|
@@ -27758,8 +27790,8 @@ function Content({
|
|
|
27758
27790
|
}
|
|
27759
27791
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
27760
27792
|
className: "link-title",
|
|
27761
|
-
active: (item
|
|
27762
|
-
href: `#${item
|
|
27793
|
+
active: (item === null || item === void 0 ? void 0 : item.id) === activeId,
|
|
27794
|
+
href: `#${item === null || item === void 0 ? void 0 : item.id}`,
|
|
27763
27795
|
onClick: e => {
|
|
27764
27796
|
e.preventDefault();
|
|
27765
27797
|
const target = window.document.getElementById(e.currentTarget.href.split('#')[1]);
|
|
@@ -27788,7 +27820,7 @@ function Content({
|
|
|
27788
27820
|
lineNumber: 117,
|
|
27789
27821
|
columnNumber: 17
|
|
27790
27822
|
}
|
|
27791
|
-
}, item
|
|
27823
|
+
}, item === null || item === void 0 ? void 0 : item.title), item === null || item === void 0 ? void 0 : item.icon));
|
|
27792
27824
|
})));
|
|
27793
27825
|
}
|
|
27794
27826
|
|
|
@@ -27890,23 +27922,23 @@ TableOfContent.defaultProps = {
|
|
|
27890
27922
|
isDialog: false
|
|
27891
27923
|
};
|
|
27892
27924
|
TableOfContent.propTypes = {
|
|
27893
|
-
/**
|
|
27894
|
-
List of contents containing the title and id of a content.
|
|
27925
|
+
/**
|
|
27926
|
+
List of contents containing the title and id of a content.
|
|
27895
27927
|
*/
|
|
27896
27928
|
content: PropTypes.array,
|
|
27897
27929
|
|
|
27898
|
-
/**
|
|
27899
|
-
Components devoted to mobile viewing only.
|
|
27930
|
+
/**
|
|
27931
|
+
Components devoted to mobile viewing only.
|
|
27900
27932
|
*/
|
|
27901
27933
|
isMobile: PropTypes.bool,
|
|
27902
27934
|
|
|
27903
|
-
/**
|
|
27904
|
-
Condition when table of content is inside a component dialog.
|
|
27935
|
+
/**
|
|
27936
|
+
Condition when table of content is inside a component dialog.
|
|
27905
27937
|
*/
|
|
27906
27938
|
isDialog: PropTypes.bool,
|
|
27907
27939
|
|
|
27908
|
-
/**
|
|
27909
|
-
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
27940
|
+
/**
|
|
27941
|
+
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
27910
27942
|
*/
|
|
27911
27943
|
activeId: PropTypes.string
|
|
27912
27944
|
};
|
|
@@ -27926,7 +27958,7 @@ TableOfContentPage.defaultProps = {
|
|
|
27926
27958
|
useBoxMethod: true
|
|
27927
27959
|
};
|
|
27928
27960
|
|
|
27929
|
-
var _jsxFileName$1 = "
|
|
27961
|
+
var _jsxFileName$1 = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\editableTable\\transition.js";
|
|
27930
27962
|
|
|
27931
27963
|
function Collapalse({
|
|
27932
27964
|
children,
|
|
@@ -28052,7 +28084,8 @@ function EditableTableMobile(props) {
|
|
|
28052
28084
|
instance,
|
|
28053
28085
|
emptyDataMessage,
|
|
28054
28086
|
showCheckbox,
|
|
28055
|
-
customRows
|
|
28087
|
+
customRows,
|
|
28088
|
+
onExpand
|
|
28056
28089
|
} = props;
|
|
28057
28090
|
const {
|
|
28058
28091
|
getTableProps,
|
|
@@ -28134,6 +28167,7 @@ function EditableTableMobile(props) {
|
|
|
28134
28167
|
}
|
|
28135
28168
|
|
|
28136
28169
|
row.toggleRowExpanded(!row.isExpanded);
|
|
28170
|
+
onExpand === null || onExpand === void 0 ? void 0 : onExpand(!row.isExpanded);
|
|
28137
28171
|
}
|
|
28138
28172
|
}, {
|
|
28139
28173
|
children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
|
|
@@ -28580,7 +28614,8 @@ function EditableTable(props) {
|
|
|
28580
28614
|
onSelectedChange,
|
|
28581
28615
|
getCheckboxProps,
|
|
28582
28616
|
keyId = 'id',
|
|
28583
|
-
selectedIds
|
|
28617
|
+
selectedIds,
|
|
28618
|
+
onExpand
|
|
28584
28619
|
} = props;
|
|
28585
28620
|
const [selectedIndex, setSelectedIndex] = useState(null);
|
|
28586
28621
|
|
|
@@ -28829,7 +28864,8 @@ function EditableTable(props) {
|
|
|
28829
28864
|
instance: instance,
|
|
28830
28865
|
emptyDataMessage: emptyDataMessage,
|
|
28831
28866
|
showCheckbox: showCheckbox,
|
|
28832
|
-
customRows: customRows
|
|
28867
|
+
customRows: customRows,
|
|
28868
|
+
onExpand: onExpand
|
|
28833
28869
|
}, void 0);
|
|
28834
28870
|
}
|
|
28835
28871
|
|
|
@@ -31182,6 +31218,18 @@ function ContentEditor(props) {
|
|
|
31182
31218
|
}), void 0);
|
|
31183
31219
|
}
|
|
31184
31220
|
|
|
31221
|
+
const transform = keyframes({
|
|
31222
|
+
'100%': {
|
|
31223
|
+
transform: 'translateX(100%)'
|
|
31224
|
+
}
|
|
31225
|
+
});
|
|
31226
|
+
const SkeletonContainer = styled(Box, {
|
|
31227
|
+
'& .react-loading-skeleton::after': {
|
|
31228
|
+
animation: `1.5s infinite normal ${transform} !important`,
|
|
31229
|
+
animationTimingFunction: 'ease-in-out !important'
|
|
31230
|
+
}
|
|
31231
|
+
});
|
|
31232
|
+
|
|
31185
31233
|
const StyledSkeleton = props => {
|
|
31186
31234
|
const {
|
|
31187
31235
|
color,
|
|
@@ -31220,10 +31268,12 @@ const StyledSkeleton = props => {
|
|
|
31220
31268
|
baseColor: getBaseColor(color),
|
|
31221
31269
|
highlightColor: "#FAFAFA"
|
|
31222
31270
|
}, {
|
|
31223
|
-
children: jsx(
|
|
31224
|
-
|
|
31225
|
-
|
|
31226
|
-
|
|
31271
|
+
children: jsx(SkeletonContainer, {
|
|
31272
|
+
children: jsx(ReactSkeleton, {
|
|
31273
|
+
height: getSize(size),
|
|
31274
|
+
count: count,
|
|
31275
|
+
circle: circle
|
|
31276
|
+
}, void 0)
|
|
31227
31277
|
}, void 0)
|
|
31228
31278
|
}), void 0);
|
|
31229
31279
|
};
|
|
@@ -31585,7 +31635,7 @@ function Skeleton() {
|
|
|
31585
31635
|
}
|
|
31586
31636
|
}
|
|
31587
31637
|
|
|
31588
|
-
var _jsxFileName = "
|
|
31638
|
+
var _jsxFileName = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\colors\\Colors.js";
|
|
31589
31639
|
const StyledPaper = styled(Paper, {
|
|
31590
31640
|
borderRadius: '10px 10px 0 0',
|
|
31591
31641
|
padding: 15,
|