@majoo-ui/react 1.52.0 → 1.52.2-rc.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/contentEditor/ContentEditor.d.ts +12 -0
- package/index.esm.css +1298 -1311
- package/index.esm.js +680 -673
- package/index.umd.css +1298 -1311
- package/index.umd.js +687 -679
- package/package.json +2 -1
package/index.esm.js
CHANGED
|
@@ -40,13 +40,12 @@ import ScrollSpy from 'react-ui-scrollspy';
|
|
|
40
40
|
import { useJsApiLoader, GoogleMap, StandaloneSearchBox } from '@react-google-maps/api';
|
|
41
41
|
import request from 'superagent';
|
|
42
42
|
import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Line as Line$1 } from 'recharts';
|
|
43
|
-
import { EditorState
|
|
43
|
+
import { EditorState } from 'draft-js';
|
|
44
44
|
import { Editor } from 'react-draft-wysiwyg';
|
|
45
|
-
import draftToHtml from 'draftjs-to-html';
|
|
46
45
|
import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
47
46
|
import { useSticky } from 'react-table-sticky';
|
|
48
47
|
|
|
49
|
-
var _jsxFileName$10 = "
|
|
48
|
+
var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
|
|
50
49
|
|
|
51
50
|
function ThemeProvider({
|
|
52
51
|
theme,
|
|
@@ -75,7 +74,7 @@ var check = function (it) {
|
|
|
75
74
|
};
|
|
76
75
|
|
|
77
76
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
78
|
-
var global$
|
|
77
|
+
var global$s =
|
|
79
78
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
80
79
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
81
80
|
check(typeof window == 'object' && window) ||
|
|
@@ -169,31 +168,28 @@ var classofRaw$1 = function (it) {
|
|
|
169
168
|
return stringSlice$b(toString$j(it), 8, -1);
|
|
170
169
|
};
|
|
171
170
|
|
|
172
|
-
var global$T = global$U;
|
|
173
171
|
var uncurryThis$v = functionUncurryThis;
|
|
174
172
|
var fails$q = fails$t;
|
|
175
173
|
var classof$8 = classofRaw$1;
|
|
176
174
|
|
|
177
|
-
var Object$
|
|
175
|
+
var $Object$4 = Object;
|
|
178
176
|
var split$3 = uncurryThis$v(''.split);
|
|
179
177
|
|
|
180
178
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
181
179
|
var indexedObject = fails$q(function () {
|
|
182
180
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
183
181
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
184
|
-
return
|
|
182
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
|
185
183
|
}) ? function (it) {
|
|
186
|
-
return classof$8(it) == 'String' ? split$3(it, '') : Object$
|
|
187
|
-
} : Object$
|
|
184
|
+
return classof$8(it) == 'String' ? split$3(it, '') : $Object$4(it);
|
|
185
|
+
} : $Object$4;
|
|
188
186
|
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
var TypeError$j = global$S.TypeError;
|
|
187
|
+
var $TypeError$f = TypeError;
|
|
192
188
|
|
|
193
189
|
// `RequireObjectCoercible` abstract operation
|
|
194
190
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
195
191
|
var requireObjectCoercible$a = function (it) {
|
|
196
|
-
if (it == undefined) throw TypeError$
|
|
192
|
+
if (it == undefined) throw $TypeError$f("Can't call method on " + it);
|
|
197
193
|
return it;
|
|
198
194
|
};
|
|
199
195
|
|
|
@@ -217,7 +213,7 @@ var isObject$d = function (it) {
|
|
|
217
213
|
return typeof it == 'object' ? it !== null : isCallable$o(it);
|
|
218
214
|
};
|
|
219
215
|
|
|
220
|
-
var global$
|
|
216
|
+
var global$r = global$s;
|
|
221
217
|
var isCallable$n = isCallable$p;
|
|
222
218
|
|
|
223
219
|
var aFunction = function (argument) {
|
|
@@ -225,7 +221,7 @@ var aFunction = function (argument) {
|
|
|
225
221
|
};
|
|
226
222
|
|
|
227
223
|
var getBuiltIn$8 = function (namespace, method) {
|
|
228
|
-
return arguments.length < 2 ? aFunction(global$
|
|
224
|
+
return arguments.length < 2 ? aFunction(global$r[namespace]) : global$r[namespace] && global$r[namespace][method];
|
|
229
225
|
};
|
|
230
226
|
|
|
231
227
|
var uncurryThis$u = functionUncurryThis;
|
|
@@ -236,11 +232,11 @@ var getBuiltIn$7 = getBuiltIn$8;
|
|
|
236
232
|
|
|
237
233
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
238
234
|
|
|
239
|
-
var global$
|
|
235
|
+
var global$q = global$s;
|
|
240
236
|
var userAgent$5 = engineUserAgent;
|
|
241
237
|
|
|
242
|
-
var process$3 = global$
|
|
243
|
-
var Deno$1 = global$
|
|
238
|
+
var process$3 = global$q.process;
|
|
239
|
+
var Deno$1 = global$q.Deno;
|
|
244
240
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
245
241
|
var v8 = versions && versions.v8;
|
|
246
242
|
var match, version;
|
|
@@ -287,43 +283,39 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
287
283
|
&& !Symbol.sham
|
|
288
284
|
&& typeof Symbol.iterator == 'symbol';
|
|
289
285
|
|
|
290
|
-
var global$P = global$U;
|
|
291
286
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
292
287
|
var isCallable$m = isCallable$p;
|
|
293
288
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
294
289
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
295
290
|
|
|
296
|
-
var Object$
|
|
291
|
+
var $Object$3 = Object;
|
|
297
292
|
|
|
298
293
|
var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
299
294
|
return typeof it == 'symbol';
|
|
300
295
|
} : function (it) {
|
|
301
296
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
302
|
-
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$
|
|
297
|
+
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, $Object$3(it));
|
|
303
298
|
};
|
|
304
299
|
|
|
305
|
-
var
|
|
306
|
-
|
|
307
|
-
var String$6 = global$O.String;
|
|
300
|
+
var $String$4 = String;
|
|
308
301
|
|
|
309
|
-
var tryToString$
|
|
302
|
+
var tryToString$5 = function (argument) {
|
|
310
303
|
try {
|
|
311
|
-
return String$
|
|
304
|
+
return $String$4(argument);
|
|
312
305
|
} catch (error) {
|
|
313
306
|
return 'Object';
|
|
314
307
|
}
|
|
315
308
|
};
|
|
316
309
|
|
|
317
|
-
var global$N = global$U;
|
|
318
310
|
var isCallable$l = isCallable$p;
|
|
319
|
-
var tryToString$
|
|
311
|
+
var tryToString$4 = tryToString$5;
|
|
320
312
|
|
|
321
|
-
var TypeError$
|
|
313
|
+
var $TypeError$e = TypeError;
|
|
322
314
|
|
|
323
315
|
// `Assert: IsCallable(argument) is true`
|
|
324
316
|
var aCallable$9 = function (argument) {
|
|
325
317
|
if (isCallable$l(argument)) return argument;
|
|
326
|
-
throw TypeError$
|
|
318
|
+
throw $TypeError$e(tryToString$4(argument) + ' is not a function');
|
|
327
319
|
};
|
|
328
320
|
|
|
329
321
|
var aCallable$8 = aCallable$9;
|
|
@@ -335,12 +327,11 @@ var getMethod$6 = function (V, P) {
|
|
|
335
327
|
return func == null ? undefined : aCallable$8(func);
|
|
336
328
|
};
|
|
337
329
|
|
|
338
|
-
var global$M = global$U;
|
|
339
330
|
var call$l = functionCall;
|
|
340
331
|
var isCallable$k = isCallable$p;
|
|
341
332
|
var isObject$c = isObject$d;
|
|
342
333
|
|
|
343
|
-
var TypeError$
|
|
334
|
+
var $TypeError$d = TypeError;
|
|
344
335
|
|
|
345
336
|
// `OrdinaryToPrimitive` abstract operation
|
|
346
337
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -349,31 +340,31 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
349
340
|
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
350
341
|
if (isCallable$k(fn = input.valueOf) && !isObject$c(val = call$l(fn, input))) return val;
|
|
351
342
|
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
352
|
-
throw TypeError$
|
|
343
|
+
throw $TypeError$d("Can't convert object to primitive value");
|
|
353
344
|
};
|
|
354
345
|
|
|
355
346
|
var shared$4 = {exports: {}};
|
|
356
347
|
|
|
357
348
|
var isPure = false;
|
|
358
349
|
|
|
359
|
-
var global$
|
|
350
|
+
var global$p = global$s;
|
|
360
351
|
|
|
361
352
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
362
|
-
var defineProperty$
|
|
353
|
+
var defineProperty$8 = Object.defineProperty;
|
|
363
354
|
|
|
364
|
-
var
|
|
355
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
365
356
|
try {
|
|
366
|
-
defineProperty$
|
|
357
|
+
defineProperty$8(global$p, key, { value: value, configurable: true, writable: true });
|
|
367
358
|
} catch (error) {
|
|
368
|
-
global$
|
|
359
|
+
global$p[key] = value;
|
|
369
360
|
} return value;
|
|
370
361
|
};
|
|
371
362
|
|
|
372
|
-
var global$
|
|
373
|
-
var
|
|
363
|
+
var global$o = global$s;
|
|
364
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
374
365
|
|
|
375
366
|
var SHARED = '__core-js_shared__';
|
|
376
|
-
var store$3 = global$
|
|
367
|
+
var store$3 = global$o[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
377
368
|
|
|
378
369
|
var sharedStore = store$3;
|
|
379
370
|
|
|
@@ -382,22 +373,21 @@ var store$2 = sharedStore;
|
|
|
382
373
|
(shared$4.exports = function (key, value) {
|
|
383
374
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
384
375
|
})('versions', []).push({
|
|
385
|
-
version: '3.
|
|
376
|
+
version: '3.24.1',
|
|
386
377
|
mode: 'global',
|
|
387
378
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
388
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
379
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
389
380
|
source: 'https://github.com/zloirock/core-js'
|
|
390
381
|
});
|
|
391
382
|
|
|
392
|
-
var global$J = global$U;
|
|
393
383
|
var requireObjectCoercible$8 = requireObjectCoercible$a;
|
|
394
384
|
|
|
395
|
-
var Object$
|
|
385
|
+
var $Object$2 = Object;
|
|
396
386
|
|
|
397
387
|
// `ToObject` abstract operation
|
|
398
388
|
// https://tc39.es/ecma262/#sec-toobject
|
|
399
389
|
var toObject$7 = function (argument) {
|
|
400
|
-
return Object$
|
|
390
|
+
return $Object$2(requireObjectCoercible$8(argument));
|
|
401
391
|
};
|
|
402
392
|
|
|
403
393
|
var uncurryThis$t = functionUncurryThis;
|
|
@@ -422,7 +412,7 @@ var uid$2 = function (key) {
|
|
|
422
412
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$i(++id + postfix, 36);
|
|
423
413
|
};
|
|
424
414
|
|
|
425
|
-
var global$
|
|
415
|
+
var global$n = global$s;
|
|
426
416
|
var shared$3 = shared$4.exports;
|
|
427
417
|
var hasOwn$e = hasOwnProperty_1;
|
|
428
418
|
var uid$1 = uid$2;
|
|
@@ -430,7 +420,7 @@ var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
|
430
420
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
431
421
|
|
|
432
422
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
433
|
-
var Symbol$7 = global$
|
|
423
|
+
var Symbol$7 = global$n.Symbol;
|
|
434
424
|
var symbolFor = Symbol$7 && Symbol$7['for'];
|
|
435
425
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$7 : Symbol$7 && Symbol$7.withoutSetter || uid$1;
|
|
436
426
|
|
|
@@ -447,7 +437,6 @@ var wellKnownSymbol$l = function (name) {
|
|
|
447
437
|
} return WellKnownSymbolsStore[name];
|
|
448
438
|
};
|
|
449
439
|
|
|
450
|
-
var global$H = global$U;
|
|
451
440
|
var call$k = functionCall;
|
|
452
441
|
var isObject$b = isObject$d;
|
|
453
442
|
var isSymbol$5 = isSymbol$6;
|
|
@@ -455,7 +444,7 @@ var getMethod$5 = getMethod$6;
|
|
|
455
444
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
456
445
|
var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
457
446
|
|
|
458
|
-
var TypeError$
|
|
447
|
+
var $TypeError$c = TypeError;
|
|
459
448
|
var TO_PRIMITIVE = wellKnownSymbol$k('toPrimitive');
|
|
460
449
|
|
|
461
450
|
// `ToPrimitive` abstract operation
|
|
@@ -468,7 +457,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
468
457
|
if (pref === undefined) pref = 'default';
|
|
469
458
|
result = call$k(exoticToPrim, input, pref);
|
|
470
459
|
if (!isObject$b(result) || isSymbol$5(result)) return result;
|
|
471
|
-
throw TypeError$
|
|
460
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
472
461
|
}
|
|
473
462
|
if (pref === undefined) pref = 'number';
|
|
474
463
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -484,10 +473,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
484
473
|
return isSymbol$4(key) ? key : key + '';
|
|
485
474
|
};
|
|
486
475
|
|
|
487
|
-
var global$
|
|
476
|
+
var global$m = global$s;
|
|
488
477
|
var isObject$a = isObject$d;
|
|
489
478
|
|
|
490
|
-
var document$3 = global$
|
|
479
|
+
var document$3 = global$m.document;
|
|
491
480
|
// typeof document.createElement is 'object' in old IE
|
|
492
481
|
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
493
482
|
|
|
@@ -545,26 +534,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$n(function () {
|
|
|
545
534
|
}).prototype != 42;
|
|
546
535
|
});
|
|
547
536
|
|
|
548
|
-
var global$F = global$U;
|
|
549
537
|
var isObject$9 = isObject$d;
|
|
550
538
|
|
|
551
|
-
var String$
|
|
552
|
-
var TypeError$
|
|
539
|
+
var $String$3 = String;
|
|
540
|
+
var $TypeError$b = TypeError;
|
|
553
541
|
|
|
554
542
|
// `Assert: Type(argument) is Object`
|
|
555
543
|
var anObject$i = function (argument) {
|
|
556
544
|
if (isObject$9(argument)) return argument;
|
|
557
|
-
throw TypeError$
|
|
545
|
+
throw $TypeError$b($String$3(argument) + ' is not an object');
|
|
558
546
|
};
|
|
559
547
|
|
|
560
|
-
var global$E = global$U;
|
|
561
548
|
var DESCRIPTORS$b = descriptors;
|
|
562
549
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
563
550
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
564
551
|
var anObject$h = anObject$i;
|
|
565
552
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
566
553
|
|
|
567
|
-
var TypeError$
|
|
554
|
+
var $TypeError$a = TypeError;
|
|
568
555
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
569
556
|
var $defineProperty = Object.defineProperty;
|
|
570
557
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -597,7 +584,7 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
597
584
|
if (IE8_DOM_DEFINE) try {
|
|
598
585
|
return $defineProperty(O, P, Attributes);
|
|
599
586
|
} catch (error) { /* empty */ }
|
|
600
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
587
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
|
|
601
588
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
602
589
|
return O;
|
|
603
590
|
};
|
|
@@ -606,7 +593,7 @@ var DESCRIPTORS$a = descriptors;
|
|
|
606
593
|
var definePropertyModule$5 = objectDefineProperty;
|
|
607
594
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
608
595
|
|
|
609
|
-
var createNonEnumerableProperty$
|
|
596
|
+
var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
|
|
610
597
|
return definePropertyModule$5.f(object, key, createPropertyDescriptor$3(1, value));
|
|
611
598
|
} : function (object, key, value) {
|
|
612
599
|
object[key] = value;
|
|
@@ -648,11 +635,11 @@ if (!isCallable$j(store$1.inspectSource)) {
|
|
|
648
635
|
|
|
649
636
|
var inspectSource$4 = store$1.inspectSource;
|
|
650
637
|
|
|
651
|
-
var global$
|
|
638
|
+
var global$l = global$s;
|
|
652
639
|
var isCallable$i = isCallable$p;
|
|
653
640
|
var inspectSource$3 = inspectSource$4;
|
|
654
641
|
|
|
655
|
-
var WeakMap$1 = global$
|
|
642
|
+
var WeakMap$1 = global$l.WeakMap;
|
|
656
643
|
|
|
657
644
|
var nativeWeakMap = isCallable$i(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
658
645
|
|
|
@@ -668,18 +655,18 @@ var sharedKey$3 = function (key) {
|
|
|
668
655
|
var hiddenKeys$4 = {};
|
|
669
656
|
|
|
670
657
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
671
|
-
var global$
|
|
658
|
+
var global$k = global$s;
|
|
672
659
|
var uncurryThis$q = functionUncurryThis;
|
|
673
660
|
var isObject$8 = isObject$d;
|
|
674
|
-
var createNonEnumerableProperty$
|
|
661
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
675
662
|
var hasOwn$b = hasOwnProperty_1;
|
|
676
663
|
var shared$1 = sharedStore;
|
|
677
664
|
var sharedKey$2 = sharedKey$3;
|
|
678
665
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
679
666
|
|
|
680
667
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
681
|
-
var TypeError$
|
|
682
|
-
var WeakMap = global$
|
|
668
|
+
var TypeError$4 = global$k.TypeError;
|
|
669
|
+
var WeakMap = global$k.WeakMap;
|
|
683
670
|
var set$1, get$1, has;
|
|
684
671
|
|
|
685
672
|
var enforce = function (it) {
|
|
@@ -690,7 +677,7 @@ var getterFor = function (TYPE) {
|
|
|
690
677
|
return function (it) {
|
|
691
678
|
var state;
|
|
692
679
|
if (!isObject$8(it) || (state = get$1(it)).type !== TYPE) {
|
|
693
|
-
throw TypeError$
|
|
680
|
+
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
694
681
|
} return state;
|
|
695
682
|
};
|
|
696
683
|
};
|
|
@@ -701,7 +688,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
701
688
|
var wmhas = uncurryThis$q(store.has);
|
|
702
689
|
var wmset = uncurryThis$q(store.set);
|
|
703
690
|
set$1 = function (it, metadata) {
|
|
704
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
691
|
+
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
705
692
|
metadata.facade = it;
|
|
706
693
|
wmset(store, it, metadata);
|
|
707
694
|
return metadata;
|
|
@@ -716,9 +703,9 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
716
703
|
var STATE = sharedKey$2('state');
|
|
717
704
|
hiddenKeys$3[STATE] = true;
|
|
718
705
|
set$1 = function (it, metadata) {
|
|
719
|
-
if (hasOwn$b(it, STATE)) throw new TypeError$
|
|
706
|
+
if (hasOwn$b(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
720
707
|
metadata.facade = it;
|
|
721
|
-
createNonEnumerableProperty$
|
|
708
|
+
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
722
709
|
return metadata;
|
|
723
710
|
};
|
|
724
711
|
get$1 = function (it) {
|
|
@@ -748,10 +735,10 @@ var InternalStateModule$5 = internalState;
|
|
|
748
735
|
var enforceInternalState$1 = InternalStateModule$5.enforce;
|
|
749
736
|
var getInternalState$3 = InternalStateModule$5.get;
|
|
750
737
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
751
|
-
var defineProperty$
|
|
738
|
+
var defineProperty$7 = Object.defineProperty;
|
|
752
739
|
|
|
753
740
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$m(function () {
|
|
754
|
-
return defineProperty$
|
|
741
|
+
return defineProperty$7(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
755
742
|
});
|
|
756
743
|
|
|
757
744
|
var TEMPLATE = String(String).split('String');
|
|
@@ -763,16 +750,18 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
763
750
|
if (options && options.getter) name = 'get ' + name;
|
|
764
751
|
if (options && options.setter) name = 'set ' + name;
|
|
765
752
|
if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
766
|
-
defineProperty$
|
|
753
|
+
if (DESCRIPTORS$8) defineProperty$7(value, 'name', { value: name, configurable: true });
|
|
754
|
+
else value.name = name;
|
|
767
755
|
}
|
|
768
756
|
if (CONFIGURABLE_LENGTH && options && hasOwn$a(options, 'arity') && value.length !== options.arity) {
|
|
769
|
-
defineProperty$
|
|
757
|
+
defineProperty$7(value, 'length', { value: options.arity });
|
|
770
758
|
}
|
|
771
|
-
|
|
772
|
-
if (
|
|
773
|
-
defineProperty$
|
|
774
|
-
|
|
775
|
-
|
|
759
|
+
try {
|
|
760
|
+
if (options && hasOwn$a(options, 'constructor') && options.constructor) {
|
|
761
|
+
if (DESCRIPTORS$8) defineProperty$7(value, 'prototype', { writable: false });
|
|
762
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
763
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
764
|
+
} catch (error) { /* empty */ }
|
|
776
765
|
var state = enforceInternalState$1(value);
|
|
777
766
|
if (!hasOwn$a(state, 'source')) {
|
|
778
767
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -785,30 +774,32 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
785
774
|
return isCallable$h(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
786
775
|
}, 'toString');
|
|
787
776
|
|
|
788
|
-
var global$B = global$U;
|
|
789
777
|
var isCallable$g = isCallable$p;
|
|
790
|
-
var
|
|
778
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
791
779
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
792
|
-
var
|
|
780
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
793
781
|
|
|
794
782
|
var defineBuiltIn$b = function (O, key, value, options) {
|
|
795
|
-
|
|
796
|
-
var simple = options
|
|
797
|
-
var
|
|
798
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
783
|
+
if (!options) options = {};
|
|
784
|
+
var simple = options.enumerable;
|
|
785
|
+
var name = options.name !== undefined ? options.name : key;
|
|
799
786
|
if (isCallable$g(value)) makeBuiltIn$1(value, name, options);
|
|
800
|
-
if (
|
|
787
|
+
if (options.global) {
|
|
801
788
|
if (simple) O[key] = value;
|
|
802
|
-
else
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
789
|
+
else defineGlobalProperty$1(key, value);
|
|
790
|
+
} else {
|
|
791
|
+
try {
|
|
792
|
+
if (!options.unsafe) delete O[key];
|
|
793
|
+
else if (O[key]) simple = true;
|
|
794
|
+
} catch (error) { /* empty */ }
|
|
795
|
+
if (simple) O[key] = value;
|
|
796
|
+
else definePropertyModule$4.f(O, key, {
|
|
797
|
+
value: value,
|
|
798
|
+
enumerable: false,
|
|
799
|
+
configurable: !options.nonConfigurable,
|
|
800
|
+
writable: !options.nonWritable
|
|
801
|
+
});
|
|
802
|
+
} return O;
|
|
812
803
|
};
|
|
813
804
|
|
|
814
805
|
var objectGetOwnPropertyNames = {};
|
|
@@ -816,12 +807,22 @@ var objectGetOwnPropertyNames = {};
|
|
|
816
807
|
var ceil = Math.ceil;
|
|
817
808
|
var floor$5 = Math.floor;
|
|
818
809
|
|
|
810
|
+
// `Math.trunc` method
|
|
811
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
812
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
813
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
814
|
+
var n = +x;
|
|
815
|
+
return (n > 0 ? floor$5 : ceil)(n);
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
var trunc = mathTrunc;
|
|
819
|
+
|
|
819
820
|
// `ToIntegerOrInfinity` abstract operation
|
|
820
821
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
821
822
|
var toIntegerOrInfinity$6 = function (argument) {
|
|
822
823
|
var number = +argument;
|
|
823
|
-
// eslint-disable-next-line no-self-compare --
|
|
824
|
-
return number !== number || number === 0 ? 0 : (number
|
|
824
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
825
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
825
826
|
};
|
|
826
827
|
|
|
827
828
|
var toIntegerOrInfinity$5 = toIntegerOrInfinity$6;
|
|
@@ -955,11 +956,11 @@ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
955
956
|
var hasOwn$8 = hasOwnProperty_1;
|
|
956
957
|
var ownKeys = ownKeys$1;
|
|
957
958
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
958
|
-
var definePropertyModule$
|
|
959
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
959
960
|
|
|
960
961
|
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
961
962
|
var keys = ownKeys(source);
|
|
962
|
-
var defineProperty = definePropertyModule$
|
|
963
|
+
var defineProperty = definePropertyModule$3.f;
|
|
963
964
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
964
965
|
for (var i = 0; i < keys.length; i++) {
|
|
965
966
|
var key = keys[i];
|
|
@@ -992,28 +993,28 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
992
993
|
|
|
993
994
|
var isForced_1 = isForced$3;
|
|
994
995
|
|
|
995
|
-
var global$
|
|
996
|
+
var global$j = global$s;
|
|
996
997
|
var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
|
|
997
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$
|
|
998
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
998
999
|
var defineBuiltIn$a = defineBuiltIn$b;
|
|
999
|
-
var
|
|
1000
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1000
1001
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1001
1002
|
var isForced$2 = isForced_1;
|
|
1002
1003
|
|
|
1003
1004
|
/*
|
|
1004
|
-
options.target
|
|
1005
|
-
options.global
|
|
1006
|
-
options.stat
|
|
1007
|
-
options.proto
|
|
1008
|
-
options.real
|
|
1009
|
-
options.forced
|
|
1010
|
-
options.bind
|
|
1011
|
-
options.wrap
|
|
1012
|
-
options.unsafe
|
|
1013
|
-
options.sham
|
|
1014
|
-
options.enumerable
|
|
1015
|
-
options.
|
|
1016
|
-
options.name
|
|
1005
|
+
options.target - name of the target object
|
|
1006
|
+
options.global - target is the global object
|
|
1007
|
+
options.stat - export as static methods of target
|
|
1008
|
+
options.proto - export as prototype methods of target
|
|
1009
|
+
options.real - real prototype method for the `pure` version
|
|
1010
|
+
options.forced - export even if the native feature is available
|
|
1011
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1012
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1013
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1014
|
+
options.sham - add a flag to not completely full polyfills
|
|
1015
|
+
options.enumerable - export as enumerable property
|
|
1016
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1017
|
+
options.name - the .name of the function if it does not match the key
|
|
1017
1018
|
*/
|
|
1018
1019
|
var _export = function (options, source) {
|
|
1019
1020
|
var TARGET = options.target;
|
|
@@ -1021,15 +1022,15 @@ var _export = function (options, source) {
|
|
|
1021
1022
|
var STATIC = options.stat;
|
|
1022
1023
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1023
1024
|
if (GLOBAL) {
|
|
1024
|
-
target = global$
|
|
1025
|
+
target = global$j;
|
|
1025
1026
|
} else if (STATIC) {
|
|
1026
|
-
target = global$
|
|
1027
|
+
target = global$j[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1027
1028
|
} else {
|
|
1028
|
-
target = (global$
|
|
1029
|
+
target = (global$j[TARGET] || {}).prototype;
|
|
1029
1030
|
}
|
|
1030
1031
|
if (target) for (key in source) {
|
|
1031
1032
|
sourceProperty = source[key];
|
|
1032
|
-
if (options.
|
|
1033
|
+
if (options.dontCallGetSet) {
|
|
1033
1034
|
descriptor = getOwnPropertyDescriptor$3(target, key);
|
|
1034
1035
|
targetProperty = descriptor && descriptor.value;
|
|
1035
1036
|
} else targetProperty = target[key];
|
|
@@ -1070,17 +1071,17 @@ var IndexedObject$1 = indexedObject;
|
|
|
1070
1071
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
1071
1072
|
var $assign = Object.assign;
|
|
1072
1073
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1073
|
-
var defineProperty$
|
|
1074
|
+
var defineProperty$6 = Object.defineProperty;
|
|
1074
1075
|
var concat$1 = uncurryThis$n([].concat);
|
|
1075
1076
|
|
|
1076
1077
|
// `Object.assign` method
|
|
1077
1078
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1078
1079
|
var objectAssign = !$assign || fails$k(function () {
|
|
1079
1080
|
// should have correct order of operations (Edge bug)
|
|
1080
|
-
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$
|
|
1081
|
+
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$6({}, 'a', {
|
|
1081
1082
|
enumerable: true,
|
|
1082
1083
|
get: function () {
|
|
1083
|
-
defineProperty$
|
|
1084
|
+
defineProperty$6(this, 'b', {
|
|
1084
1085
|
value: 3,
|
|
1085
1086
|
enumerable: false
|
|
1086
1087
|
});
|
|
@@ -1400,7 +1401,7 @@ var objectDefineProperties = {};
|
|
|
1400
1401
|
|
|
1401
1402
|
var DESCRIPTORS$6 = descriptors;
|
|
1402
1403
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1403
|
-
var definePropertyModule$
|
|
1404
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1404
1405
|
var anObject$f = anObject$i;
|
|
1405
1406
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1406
1407
|
var objectKeys = objectKeys$2;
|
|
@@ -1415,7 +1416,7 @@ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1415
1416
|
var length = keys.length;
|
|
1416
1417
|
var index = 0;
|
|
1417
1418
|
var key;
|
|
1418
|
-
while (length > index) definePropertyModule$
|
|
1419
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1419
1420
|
return O;
|
|
1420
1421
|
};
|
|
1421
1422
|
|
|
@@ -1510,7 +1511,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1510
1511
|
|
|
1511
1512
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1512
1513
|
var create$3 = objectCreate;
|
|
1513
|
-
var
|
|
1514
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
1514
1515
|
|
|
1515
1516
|
var UNSCOPABLES = wellKnownSymbol$j('unscopables');
|
|
1516
1517
|
var ArrayPrototype$1 = Array.prototype;
|
|
@@ -1518,7 +1519,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1518
1519
|
// Array.prototype[@@unscopables]
|
|
1519
1520
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1520
1521
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1521
|
-
|
|
1522
|
+
defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
|
|
1522
1523
|
configurable: true,
|
|
1523
1524
|
value: create$3(null)
|
|
1524
1525
|
});
|
|
@@ -1540,7 +1541,6 @@ var correctPrototypeGetter = !fails$j(function () {
|
|
|
1540
1541
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1541
1542
|
});
|
|
1542
1543
|
|
|
1543
|
-
var global$z = global$U;
|
|
1544
1544
|
var hasOwn$7 = hasOwnProperty_1;
|
|
1545
1545
|
var isCallable$e = isCallable$p;
|
|
1546
1546
|
var toObject$4 = toObject$7;
|
|
@@ -1548,18 +1548,19 @@ var sharedKey = sharedKey$3;
|
|
|
1548
1548
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1549
1549
|
|
|
1550
1550
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1551
|
-
var Object$
|
|
1552
|
-
var ObjectPrototype = Object$
|
|
1551
|
+
var $Object$1 = Object;
|
|
1552
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1553
1553
|
|
|
1554
1554
|
// `Object.getPrototypeOf` method
|
|
1555
1555
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1556
|
-
|
|
1556
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
1557
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1557
1558
|
var object = toObject$4(O);
|
|
1558
1559
|
if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
|
|
1559
1560
|
var constructor = object.constructor;
|
|
1560
1561
|
if (isCallable$e(constructor) && object instanceof constructor) {
|
|
1561
1562
|
return constructor.prototype;
|
|
1562
|
-
} return object instanceof Object$
|
|
1563
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1563
1564
|
};
|
|
1564
1565
|
|
|
1565
1566
|
var fails$i = fails$t;
|
|
@@ -1636,15 +1637,14 @@ var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1636
1637
|
return IteratorConstructor;
|
|
1637
1638
|
};
|
|
1638
1639
|
|
|
1639
|
-
var global$y = global$U;
|
|
1640
1640
|
var isCallable$c = isCallable$p;
|
|
1641
1641
|
|
|
1642
|
-
var String$
|
|
1643
|
-
var TypeError$
|
|
1642
|
+
var $String$2 = String;
|
|
1643
|
+
var $TypeError$9 = TypeError;
|
|
1644
1644
|
|
|
1645
1645
|
var aPossiblePrototype$1 = function (argument) {
|
|
1646
1646
|
if (typeof argument == 'object' || isCallable$c(argument)) return argument;
|
|
1647
|
-
throw TypeError$
|
|
1647
|
+
throw $TypeError$9("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1648
1648
|
};
|
|
1649
1649
|
|
|
1650
1650
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1684,7 +1684,7 @@ var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
|
1684
1684
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1685
1685
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1686
1686
|
var setToStringTag$3 = setToStringTag$5;
|
|
1687
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$
|
|
1687
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
|
|
1688
1688
|
var defineBuiltIn$8 = defineBuiltIn$b;
|
|
1689
1689
|
var wellKnownSymbol$g = wellKnownSymbol$l;
|
|
1690
1690
|
var Iterators$3 = iterators;
|
|
@@ -1877,11 +1877,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1877
1877
|
|
|
1878
1878
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1879
1879
|
|
|
1880
|
-
var global$
|
|
1880
|
+
var global$i = global$s;
|
|
1881
1881
|
var DOMIterables = domIterables;
|
|
1882
1882
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1883
1883
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1884
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$
|
|
1884
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
|
|
1885
1885
|
var wellKnownSymbol$f = wellKnownSymbol$l;
|
|
1886
1886
|
|
|
1887
1887
|
var ITERATOR$7 = wellKnownSymbol$f('iterator');
|
|
@@ -1911,7 +1911,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1911
1911
|
};
|
|
1912
1912
|
|
|
1913
1913
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1914
|
-
handlePrototype(global$
|
|
1914
|
+
handlePrototype(global$i[COLLECTION_NAME] && global$i[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1915
1915
|
}
|
|
1916
1916
|
|
|
1917
1917
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1925,14 +1925,13 @@ test$1[TO_STRING_TAG$1] = 'z';
|
|
|
1925
1925
|
|
|
1926
1926
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1927
1927
|
|
|
1928
|
-
var global$w = global$U;
|
|
1929
1928
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1930
1929
|
var isCallable$a = isCallable$p;
|
|
1931
1930
|
var classofRaw = classofRaw$1;
|
|
1932
1931
|
var wellKnownSymbol$d = wellKnownSymbol$l;
|
|
1933
1932
|
|
|
1934
1933
|
var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
|
|
1935
|
-
var Object
|
|
1934
|
+
var $Object = Object;
|
|
1936
1935
|
|
|
1937
1936
|
// ES3 wrong here
|
|
1938
1937
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1949,26 +1948,25 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1949
1948
|
var O, tag, result;
|
|
1950
1949
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1951
1950
|
// @@toStringTag case
|
|
1952
|
-
: typeof (tag = tryGet(O = Object
|
|
1951
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1953
1952
|
// builtinTag case
|
|
1954
1953
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1955
1954
|
// ES3 arguments fallback
|
|
1956
1955
|
: (result = classofRaw(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
1957
1956
|
};
|
|
1958
1957
|
|
|
1959
|
-
var global$v = global$U;
|
|
1960
1958
|
var classof$6 = classof$7;
|
|
1961
1959
|
|
|
1962
|
-
var String$
|
|
1960
|
+
var $String$1 = String;
|
|
1963
1961
|
|
|
1964
1962
|
var toString$h = function (argument) {
|
|
1965
1963
|
if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1966
|
-
return String$
|
|
1964
|
+
return $String$1(argument);
|
|
1967
1965
|
};
|
|
1968
1966
|
|
|
1969
1967
|
var $$k = _export;
|
|
1970
1968
|
var DESCRIPTORS$4 = descriptors;
|
|
1971
|
-
var global$
|
|
1969
|
+
var global$h = global$s;
|
|
1972
1970
|
var uncurryThis$l = functionUncurryThis;
|
|
1973
1971
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1974
1972
|
var isCallable$9 = isCallable$p;
|
|
@@ -1977,7 +1975,7 @@ var toString$g = toString$h;
|
|
|
1977
1975
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1978
1976
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1979
1977
|
|
|
1980
|
-
var NativeSymbol = global$
|
|
1978
|
+
var NativeSymbol = global$h.Symbol;
|
|
1981
1979
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
1982
1980
|
|
|
1983
1981
|
if (DESCRIPTORS$4 && isCallable$9(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
@@ -2057,14 +2055,13 @@ var isRegexp = function (it) {
|
|
|
2057
2055
|
return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');
|
|
2058
2056
|
};
|
|
2059
2057
|
|
|
2060
|
-
var global$t = global$U;
|
|
2061
2058
|
var isRegExp$2 = isRegexp;
|
|
2062
2059
|
|
|
2063
|
-
var TypeError$
|
|
2060
|
+
var $TypeError$8 = TypeError;
|
|
2064
2061
|
|
|
2065
2062
|
var notARegexp = function (it) {
|
|
2066
2063
|
if (isRegExp$2(it)) {
|
|
2067
|
-
throw TypeError$
|
|
2064
|
+
throw $TypeError$8("The method doesn't accept regular expressions");
|
|
2068
2065
|
} return it;
|
|
2069
2066
|
};
|
|
2070
2067
|
|
|
@@ -2238,7 +2235,7 @@ Flex$1.displayName = 'Flex';
|
|
|
2238
2235
|
|
|
2239
2236
|
const _excluded$A = ["children"],
|
|
2240
2237
|
_excluded2$2 = ["children"];
|
|
2241
|
-
var _jsxFileName$$ = "
|
|
2238
|
+
var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
|
|
2242
2239
|
const GridComponent = styled('div', {
|
|
2243
2240
|
display: 'grid',
|
|
2244
2241
|
variants: {
|
|
@@ -2497,7 +2494,7 @@ GridItem.propTypes = {
|
|
|
2497
2494
|
GridItem.displayName = 'Grid Item';
|
|
2498
2495
|
|
|
2499
2496
|
const _excluded$z = ["children", "isCollapse", "css", "contentHeader"];
|
|
2500
|
-
var _jsxFileName$_ = "
|
|
2497
|
+
var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
2501
2498
|
const StyledDiv$3 = styled(Flex$1, {
|
|
2502
2499
|
justifyContent: 'center',
|
|
2503
2500
|
marginLeft: 'auto',
|
|
@@ -2507,7 +2504,7 @@ const StyledDiv$3 = styled(Flex$1, {
|
|
|
2507
2504
|
backgroundColor: '$white',
|
|
2508
2505
|
width: '100%'
|
|
2509
2506
|
},
|
|
2510
|
-
'@
|
|
2507
|
+
'@lg': {
|
|
2511
2508
|
padding: '0',
|
|
2512
2509
|
backgroundColor: '$bgGray'
|
|
2513
2510
|
},
|
|
@@ -2850,7 +2847,7 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2850
2847
|
});
|
|
2851
2848
|
|
|
2852
2849
|
const _excluded$y = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
2853
|
-
var _jsxFileName$Z = "
|
|
2850
|
+
var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
2854
2851
|
const TOAST_WIDTH = 576;
|
|
2855
2852
|
const ANIMATION_DURATION = 400;
|
|
2856
2853
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -3197,7 +3194,7 @@ Toast.defaultProps = {
|
|
|
3197
3194
|
|
|
3198
3195
|
const ToastContext = /*#__PURE__*/React.createContext({});
|
|
3199
3196
|
|
|
3200
|
-
var _jsxFileName$Y = "
|
|
3197
|
+
var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
3201
3198
|
const ToastBox = styled(Flex$1, {
|
|
3202
3199
|
position: 'fixed',
|
|
3203
3200
|
variants: {
|
|
@@ -3273,7 +3270,7 @@ const ToastContainer = ({
|
|
|
3273
3270
|
};
|
|
3274
3271
|
|
|
3275
3272
|
const _excluded$x = ["id"];
|
|
3276
|
-
var _jsxFileName$X = "
|
|
3273
|
+
var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
3277
3274
|
let toastCount = 0;
|
|
3278
3275
|
|
|
3279
3276
|
const ToastProvider = ({
|
|
@@ -3358,7 +3355,7 @@ const ToastProvider = ({
|
|
|
3358
3355
|
}));
|
|
3359
3356
|
};
|
|
3360
3357
|
|
|
3361
|
-
var _jsxFileName$W = "
|
|
3358
|
+
var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
|
|
3362
3359
|
|
|
3363
3360
|
function MajooProvider({
|
|
3364
3361
|
children,
|
|
@@ -3393,7 +3390,7 @@ MajooProvider.propTypes = {
|
|
|
3393
3390
|
};
|
|
3394
3391
|
|
|
3395
3392
|
const _excluded$w = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock"];
|
|
3396
|
-
var _jsxFileName$V = "
|
|
3393
|
+
var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
|
|
3397
3394
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
3398
3395
|
const StyledBanner = styled(Flex$1, {
|
|
3399
3396
|
maxWidth: '100%',
|
|
@@ -3481,13 +3478,13 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
|
|
|
3481
3478
|
}
|
|
3482
3479
|
}), props.children);
|
|
3483
3480
|
BannerTitle.propTypes = {
|
|
3484
|
-
/**
|
|
3485
|
-
Additional styles of title
|
|
3481
|
+
/**
|
|
3482
|
+
Additional styles of title
|
|
3486
3483
|
*/
|
|
3487
3484
|
css: PropTypes.object,
|
|
3488
3485
|
|
|
3489
|
-
/**
|
|
3490
|
-
Title of the Banner to be displayed
|
|
3486
|
+
/**
|
|
3487
|
+
Title of the Banner to be displayed
|
|
3491
3488
|
*/
|
|
3492
3489
|
children: PropTypes.string
|
|
3493
3490
|
};
|
|
@@ -3503,13 +3500,13 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
|
|
|
3503
3500
|
}
|
|
3504
3501
|
}), props.children);
|
|
3505
3502
|
BannerDescription.propTypes = {
|
|
3506
|
-
/**
|
|
3507
|
-
Additional styles of description
|
|
3503
|
+
/**
|
|
3504
|
+
Additional styles of description
|
|
3508
3505
|
*/
|
|
3509
3506
|
css: PropTypes.object,
|
|
3510
3507
|
|
|
3511
|
-
/**
|
|
3512
|
-
Description of the Banner to be displayed
|
|
3508
|
+
/**
|
|
3509
|
+
Description of the Banner to be displayed
|
|
3513
3510
|
*/
|
|
3514
3511
|
children: PropTypes.string
|
|
3515
3512
|
};
|
|
@@ -3538,18 +3535,18 @@ const BannerLink = ({
|
|
|
3538
3535
|
}
|
|
3539
3536
|
}, children));
|
|
3540
3537
|
BannerLink.propTypes = {
|
|
3541
|
-
/**
|
|
3542
|
-
The purpose of a clickable link, presented in url
|
|
3538
|
+
/**
|
|
3539
|
+
The purpose of a clickable link, presented in url
|
|
3543
3540
|
*/
|
|
3544
3541
|
link: PropTypes.string,
|
|
3545
3542
|
|
|
3546
|
-
/**
|
|
3547
|
-
Text of BannerLink to be displayed
|
|
3543
|
+
/**
|
|
3544
|
+
Text of BannerLink to be displayed
|
|
3548
3545
|
*/
|
|
3549
3546
|
children: PropTypes.string,
|
|
3550
3547
|
|
|
3551
|
-
/**
|
|
3552
|
-
Additional theme of BannerLink is presented by color variants
|
|
3548
|
+
/**
|
|
3549
|
+
Additional theme of BannerLink is presented by color variants
|
|
3553
3550
|
*/
|
|
3554
3551
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed'])
|
|
3555
3552
|
};
|
|
@@ -3567,7 +3564,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
3567
3564
|
onClick: e => {
|
|
3568
3565
|
e.preventDefault();
|
|
3569
3566
|
e.stopPropagation();
|
|
3570
|
-
value
|
|
3567
|
+
value == null ? void 0 : value.onRemove();
|
|
3571
3568
|
},
|
|
3572
3569
|
__self: undefined,
|
|
3573
3570
|
__source: {
|
|
@@ -3644,7 +3641,7 @@ const SingleTagBanner = props => {
|
|
|
3644
3641
|
onClick: e => {
|
|
3645
3642
|
e.preventDefault();
|
|
3646
3643
|
e.stopPropagation();
|
|
3647
|
-
props
|
|
3644
|
+
props == null ? void 0 : props.onRemove();
|
|
3648
3645
|
},
|
|
3649
3646
|
closeCenter: !props.title && !props.link,
|
|
3650
3647
|
__self: undefined,
|
|
@@ -3740,43 +3737,43 @@ Banner.displayName = 'Banner';
|
|
|
3740
3737
|
BannerTitle.displayName = 'BannerTitle';
|
|
3741
3738
|
BannerDescription.displayName = 'BannerDescription';
|
|
3742
3739
|
Banner.propTypes = {
|
|
3743
|
-
/**
|
|
3744
|
-
Title of banner to be displayed
|
|
3740
|
+
/**
|
|
3741
|
+
Title of banner to be displayed
|
|
3745
3742
|
*/
|
|
3746
3743
|
title: PropTypes.string,
|
|
3747
3744
|
|
|
3748
|
-
/**
|
|
3749
|
-
Description of banner to be displayed
|
|
3745
|
+
/**
|
|
3746
|
+
Description of banner to be displayed
|
|
3750
3747
|
*/
|
|
3751
3748
|
description: PropTypes.string,
|
|
3752
3749
|
|
|
3753
|
-
/**
|
|
3754
|
-
The banner theme is presented in color variants
|
|
3750
|
+
/**
|
|
3751
|
+
The banner theme is presented in color variants
|
|
3755
3752
|
*/
|
|
3756
3753
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed']),
|
|
3757
3754
|
|
|
3758
|
-
/**
|
|
3759
|
-
The purpose of a clickable link, presented in url
|
|
3755
|
+
/**
|
|
3756
|
+
The purpose of a clickable link, presented in url
|
|
3760
3757
|
*/
|
|
3761
3758
|
link: PropTypes.string,
|
|
3762
3759
|
|
|
3763
|
-
/**
|
|
3764
|
-
Text of button link to be displayed
|
|
3760
|
+
/**
|
|
3761
|
+
Text of button link to be displayed
|
|
3765
3762
|
*/
|
|
3766
3763
|
linkText: PropTypes.string,
|
|
3767
3764
|
|
|
3768
|
-
/**
|
|
3769
|
-
Clickable event handler
|
|
3765
|
+
/**
|
|
3766
|
+
Clickable event handler
|
|
3770
3767
|
*/
|
|
3771
3768
|
onClick: PropTypes.func,
|
|
3772
3769
|
|
|
3773
|
-
/**
|
|
3774
|
-
Closable event handler
|
|
3770
|
+
/**
|
|
3771
|
+
Closable event handler
|
|
3775
3772
|
*/
|
|
3776
3773
|
onRemove: PropTypes.func,
|
|
3777
3774
|
|
|
3778
|
-
/**
|
|
3779
|
-
Block type banner to display in full width
|
|
3775
|
+
/**
|
|
3776
|
+
Block type banner to display in full width
|
|
3780
3777
|
*/
|
|
3781
3778
|
bannerBlock: PropTypes.bool
|
|
3782
3779
|
};
|
|
@@ -4040,7 +4037,7 @@ const Button$3 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
4040
4037
|
});
|
|
4041
4038
|
|
|
4042
4039
|
const _excluded$v = ["className", "children", "color", "shadow", "radius", "padding", "title", "width", "textColor", "icon"];
|
|
4043
|
-
var _jsxFileName$U = "
|
|
4040
|
+
var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/card/Card.js";
|
|
4044
4041
|
const CardComponent = styled('div', {
|
|
4045
4042
|
padding: '12px',
|
|
4046
4043
|
height: 'auto',
|
|
@@ -4248,7 +4245,7 @@ Card.defaultProps = {
|
|
|
4248
4245
|
};
|
|
4249
4246
|
|
|
4250
4247
|
const _excluded$u = ["children"];
|
|
4251
|
-
var _jsxFileName$T = "
|
|
4248
|
+
var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
4252
4249
|
const BreadcrumbStyle = styled('nav', {
|
|
4253
4250
|
wordWrap: 'break-word',
|
|
4254
4251
|
'& li+li:before': {
|
|
@@ -4524,7 +4521,7 @@ Badge.defaultProps = {
|
|
|
4524
4521
|
Badge.displayName = 'Badge';
|
|
4525
4522
|
|
|
4526
4523
|
const _excluded$t = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
4527
|
-
var _jsxFileName$S = "
|
|
4524
|
+
var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
4528
4525
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
4529
4526
|
width: '32px',
|
|
4530
4527
|
height: '32px',
|
|
@@ -4627,7 +4624,7 @@ Avatar.defaultProps = {
|
|
|
4627
4624
|
};
|
|
4628
4625
|
|
|
4629
4626
|
const _excluded$s = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
4630
|
-
var _jsxFileName$R = "
|
|
4627
|
+
var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
|
|
4631
4628
|
const ContainerFallback = styled(Flex$1, {
|
|
4632
4629
|
boxSizing: 'border-box',
|
|
4633
4630
|
border: '2px dashed #C0C4C4',
|
|
@@ -4724,58 +4721,58 @@ function Image(_ref) {
|
|
|
4724
4721
|
}
|
|
4725
4722
|
}
|
|
4726
4723
|
Image.propTypes = {
|
|
4727
|
-
/**
|
|
4728
|
-
Additional className for img element.
|
|
4724
|
+
/**
|
|
4725
|
+
Additional className for img element.
|
|
4729
4726
|
*/
|
|
4730
4727
|
className: PropTypes.string,
|
|
4731
4728
|
|
|
4732
|
-
/**
|
|
4733
|
-
Which is used to specify the source of an image.
|
|
4729
|
+
/**
|
|
4730
|
+
Which is used to specify the source of an image.
|
|
4734
4731
|
*/
|
|
4735
4732
|
src: PropTypes.string,
|
|
4736
4733
|
|
|
4737
|
-
/**
|
|
4738
|
-
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4734
|
+
/**
|
|
4735
|
+
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4739
4736
|
*/
|
|
4740
4737
|
alt: PropTypes.string,
|
|
4741
4738
|
|
|
4742
|
-
/**
|
|
4743
|
-
Additional css for img element.
|
|
4739
|
+
/**
|
|
4740
|
+
Additional css for img element.
|
|
4744
4741
|
*/
|
|
4745
4742
|
css: PropTypes.object,
|
|
4746
4743
|
|
|
4747
|
-
/**
|
|
4748
|
-
Additional css for default fallback element.
|
|
4744
|
+
/**
|
|
4745
|
+
Additional css for default fallback element.
|
|
4749
4746
|
*/
|
|
4750
4747
|
cssFallback: PropTypes.object,
|
|
4751
4748
|
|
|
4752
|
-
/**
|
|
4753
|
-
Custom width of img element.
|
|
4749
|
+
/**
|
|
4750
|
+
Custom width of img element.
|
|
4754
4751
|
*/
|
|
4755
4752
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4756
4753
|
|
|
4757
|
-
/**
|
|
4758
|
-
Custom height of img element.
|
|
4754
|
+
/**
|
|
4755
|
+
Custom height of img element.
|
|
4759
4756
|
*/
|
|
4760
4757
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4761
4758
|
|
|
4762
|
-
/**
|
|
4763
|
-
Set image to circle.
|
|
4759
|
+
/**
|
|
4760
|
+
Set image to circle.
|
|
4764
4761
|
*/
|
|
4765
4762
|
rounded: PropTypes.bool,
|
|
4766
4763
|
|
|
4767
|
-
/**
|
|
4768
|
-
Used to specify how an <img> should be resized to fit its container.
|
|
4764
|
+
/**
|
|
4765
|
+
Used to specify how an <img> should be resized to fit its container.
|
|
4769
4766
|
*/
|
|
4770
4767
|
objectFit: PropTypes.string,
|
|
4771
4768
|
|
|
4772
|
-
/**
|
|
4773
|
-
Custom fallback if image url doesn't exist.
|
|
4769
|
+
/**
|
|
4770
|
+
Custom fallback if image url doesn't exist.
|
|
4774
4771
|
*/
|
|
4775
4772
|
fallback: PropTypes.string,
|
|
4776
4773
|
|
|
4777
|
-
/**
|
|
4778
|
-
Custom fallback title for default fallback.
|
|
4774
|
+
/**
|
|
4775
|
+
Custom fallback title for default fallback.
|
|
4779
4776
|
*/
|
|
4780
4777
|
fallbackTitle: PropTypes.string
|
|
4781
4778
|
};
|
|
@@ -4785,7 +4782,7 @@ Image.defaultProps = {
|
|
|
4785
4782
|
};
|
|
4786
4783
|
|
|
4787
4784
|
const _excluded$r = ["children", "label", "color", "css", "withClick", "side", "align"];
|
|
4788
|
-
var _jsxFileName$Q = "
|
|
4785
|
+
var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4789
4786
|
const {
|
|
4790
4787
|
zIndices: zIndices$1
|
|
4791
4788
|
} = foundations;
|
|
@@ -4986,7 +4983,7 @@ Tooltip$1.defaultProps = {
|
|
|
4986
4983
|
};
|
|
4987
4984
|
|
|
4988
4985
|
const _excluded$q = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4989
|
-
var _jsxFileName$P = "
|
|
4986
|
+
var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4990
4987
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4991
4988
|
position: 'relative',
|
|
4992
4989
|
overflow: 'hidden',
|
|
@@ -5247,7 +5244,7 @@ const FormGroup = styled('div', {
|
|
|
5247
5244
|
FormGroup.displayName = 'FormGroup';
|
|
5248
5245
|
|
|
5249
5246
|
const _excluded$p = ["children", "htmlFor", "variant", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
5250
|
-
var _jsxFileName$O = "
|
|
5247
|
+
var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
5251
5248
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
5252
5249
|
display: 'inline-block',
|
|
5253
5250
|
fontSize: '$label',
|
|
@@ -5362,7 +5359,7 @@ FormLabel.propTypes = {
|
|
|
5362
5359
|
FormLabel.displayName = 'FormLabel';
|
|
5363
5360
|
|
|
5364
5361
|
const _excluded$o = ["children", "error", "errorMessage"];
|
|
5365
|
-
var _jsxFileName$N = "
|
|
5362
|
+
var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
5366
5363
|
const StyledHelper = styled(Text$1, {
|
|
5367
5364
|
display: 'inline-block',
|
|
5368
5365
|
color: '$textSecondary',
|
|
@@ -5423,7 +5420,7 @@ FormHelper.propTypes = {
|
|
|
5423
5420
|
};
|
|
5424
5421
|
FormHelper.displayName = 'FormHelper';
|
|
5425
5422
|
|
|
5426
|
-
var _jsxFileName$M = "
|
|
5423
|
+
var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
5427
5424
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
5428
5425
|
|
|
5429
5426
|
const CheckboxGroup = ({
|
|
@@ -5486,7 +5483,7 @@ CheckboxGroup.defaultProps = {
|
|
|
5486
5483
|
};
|
|
5487
5484
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
5488
5485
|
|
|
5489
|
-
var _jsxFileName$L = "
|
|
5486
|
+
var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
5490
5487
|
|
|
5491
5488
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5492
5489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5534,7 +5531,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
5534
5531
|
}
|
|
5535
5532
|
}));
|
|
5536
5533
|
|
|
5537
|
-
var _jsxFileName$K = "
|
|
5534
|
+
var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
5538
5535
|
|
|
5539
5536
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5540
5537
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5583,7 +5580,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
5583
5580
|
}));
|
|
5584
5581
|
|
|
5585
5582
|
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
5586
|
-
var _jsxFileName$J = "
|
|
5583
|
+
var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
5587
5584
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
5588
5585
|
alignItems: 'center',
|
|
5589
5586
|
display: 'flex',
|
|
@@ -5648,7 +5645,7 @@ const Checkbox = _ref => {
|
|
|
5648
5645
|
const [isChecked, setChecked] = useState(false);
|
|
5649
5646
|
useEffect(() => {
|
|
5650
5647
|
const checkValue = context && context.checkedItems.includes(value) || checked || indeterminate;
|
|
5651
|
-
setChecked(checkValue
|
|
5648
|
+
setChecked(checkValue != null ? checkValue : false);
|
|
5652
5649
|
}, [checked, indeterminate, context]);
|
|
5653
5650
|
return /*#__PURE__*/React__default.createElement(StyledCheckbox, _extends({
|
|
5654
5651
|
id: id,
|
|
@@ -5749,7 +5746,7 @@ InputCheckbox.propTypes = {
|
|
|
5749
5746
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
5750
5747
|
|
|
5751
5748
|
const _excluded$m = ["children", "size"];
|
|
5752
|
-
var _jsxFileName$I = "
|
|
5749
|
+
var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
5753
5750
|
const InputGroupStyle = styled('div', {
|
|
5754
5751
|
display: 'flex',
|
|
5755
5752
|
width: '100%',
|
|
@@ -5896,13 +5893,13 @@ const InputGroup = _ref => {
|
|
|
5896
5893
|
}));
|
|
5897
5894
|
};
|
|
5898
5895
|
InputGroup.propTypes = {
|
|
5899
|
-
/**
|
|
5900
|
-
Adjust Input Text Size
|
|
5896
|
+
/**
|
|
5897
|
+
Adjust Input Text Size
|
|
5901
5898
|
*/
|
|
5902
5899
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
5903
5900
|
|
|
5904
|
-
/**
|
|
5905
|
-
Children must be InputText, InputAddon, or InputPrefixes
|
|
5901
|
+
/**
|
|
5902
|
+
Children must be InputText, InputAddon, or InputPrefixes
|
|
5906
5903
|
*/
|
|
5907
5904
|
children: PropTypes.node.isRequired,
|
|
5908
5905
|
|
|
@@ -6036,7 +6033,7 @@ InputSuffix.propTypes = {
|
|
|
6036
6033
|
};
|
|
6037
6034
|
|
|
6038
6035
|
const _excluded$l = ["disabled", "readOnly"];
|
|
6039
|
-
var _jsxFileName$H = "
|
|
6036
|
+
var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
6040
6037
|
const disabledStyle = {
|
|
6041
6038
|
backgroundColor: '$formDisable',
|
|
6042
6039
|
color: '$textDisable',
|
|
@@ -6198,7 +6195,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6198
6195
|
InputText.displayName = 'InputText';
|
|
6199
6196
|
|
|
6200
6197
|
const _excluded$k = ["disabled", "readOnly"];
|
|
6201
|
-
var _jsxFileName$G = "
|
|
6198
|
+
var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
6202
6199
|
const StyledTextArea = styled(StyledInput$1, {
|
|
6203
6200
|
variants: {
|
|
6204
6201
|
size: {
|
|
@@ -6243,10 +6240,10 @@ InputTextArea.defaultProps = {
|
|
|
6243
6240
|
|
|
6244
6241
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
6245
6242
|
|
|
6246
|
-
var _jsxFileName$F = "
|
|
6243
|
+
var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
6247
6244
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
6248
6245
|
function InputRadioGroup(props) {
|
|
6249
|
-
return (props
|
|
6246
|
+
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
6250
6247
|
value: props,
|
|
6251
6248
|
__self: this,
|
|
6252
6249
|
__source: {
|
|
@@ -6261,7 +6258,7 @@ function InputRadioGroup(props) {
|
|
|
6261
6258
|
lineNumber: 14,
|
|
6262
6259
|
columnNumber: 9
|
|
6263
6260
|
}
|
|
6264
|
-
}), React__default.Children.map(props
|
|
6261
|
+
}), React__default.Children.map(props == null ? void 0 : props.children, child => /*#__PURE__*/React__default.cloneElement(child, {
|
|
6265
6262
|
style: Object.assign({}, child.props.style, {
|
|
6266
6263
|
opacity: 1
|
|
6267
6264
|
})
|
|
@@ -6276,7 +6273,7 @@ InputRadioGroup.propTypes = {
|
|
|
6276
6273
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
6277
6274
|
|
|
6278
6275
|
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps"];
|
|
6279
|
-
var _jsxFileName$E = "
|
|
6276
|
+
var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
6280
6277
|
const INDICATOR_BASE_STYLES = {
|
|
6281
6278
|
alignItems: 'center',
|
|
6282
6279
|
display: 'flex',
|
|
@@ -6452,7 +6449,7 @@ const InputRadio = _ref => {
|
|
|
6452
6449
|
value,
|
|
6453
6450
|
outlined
|
|
6454
6451
|
}) => {
|
|
6455
|
-
const checked = value
|
|
6452
|
+
const checked = value != null ? value : defaultValue;
|
|
6456
6453
|
return /*#__PURE__*/React__default.createElement(Container$8, {
|
|
6457
6454
|
align: "center",
|
|
6458
6455
|
gap: 4,
|
|
@@ -6527,7 +6524,7 @@ InputRightElement.propTypes = {
|
|
|
6527
6524
|
InputRightElement.name = 'InputRightElement';
|
|
6528
6525
|
|
|
6529
6526
|
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled"];
|
|
6530
|
-
var _jsxFileName$D = "
|
|
6527
|
+
var _jsxFileName$D = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
6531
6528
|
const StyledInput = styled(NumberFormat, {
|
|
6532
6529
|
// Reset
|
|
6533
6530
|
appearance: 'none',
|
|
@@ -6734,6 +6731,7 @@ var regexpFlags$1 = function () {
|
|
|
6734
6731
|
if (that.multiline) result += 'm';
|
|
6735
6732
|
if (that.dotAll) result += 's';
|
|
6736
6733
|
if (that.unicode) result += 'u';
|
|
6734
|
+
if (that.unicodeSets) result += 'v';
|
|
6737
6735
|
if (that.sticky) result += 'y';
|
|
6738
6736
|
return result;
|
|
6739
6737
|
};
|
|
@@ -6752,10 +6750,10 @@ var regexpGetFlags = function (R) {
|
|
|
6752
6750
|
};
|
|
6753
6751
|
|
|
6754
6752
|
var fails$g = fails$t;
|
|
6755
|
-
var global$
|
|
6753
|
+
var global$g = global$s;
|
|
6756
6754
|
|
|
6757
6755
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
6758
|
-
var $RegExp$2 = global$
|
|
6756
|
+
var $RegExp$2 = global$g.RegExp;
|
|
6759
6757
|
|
|
6760
6758
|
var UNSUPPORTED_Y$3 = fails$g(function () {
|
|
6761
6759
|
var re = $RegExp$2('a', 'y');
|
|
@@ -6812,10 +6810,10 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
6812
6810
|
};
|
|
6813
6811
|
|
|
6814
6812
|
var fails$f = fails$t;
|
|
6815
|
-
var global$
|
|
6813
|
+
var global$f = global$s;
|
|
6816
6814
|
|
|
6817
6815
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
6818
|
-
var $RegExp$1 = global$
|
|
6816
|
+
var $RegExp$1 = global$f.RegExp;
|
|
6819
6817
|
|
|
6820
6818
|
var regexpUnsupportedDotAll = fails$f(function () {
|
|
6821
6819
|
var re = $RegExp$1('.', 's');
|
|
@@ -6823,10 +6821,10 @@ var regexpUnsupportedDotAll = fails$f(function () {
|
|
|
6823
6821
|
});
|
|
6824
6822
|
|
|
6825
6823
|
var fails$e = fails$t;
|
|
6826
|
-
var global$
|
|
6824
|
+
var global$e = global$s;
|
|
6827
6825
|
|
|
6828
6826
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
6829
|
-
var $RegExp = global$
|
|
6827
|
+
var $RegExp = global$e.RegExp;
|
|
6830
6828
|
|
|
6831
6829
|
var regexpUnsupportedNcg = fails$e(function () {
|
|
6832
6830
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -6835,11 +6833,11 @@ var regexpUnsupportedNcg = fails$e(function () {
|
|
|
6835
6833
|
});
|
|
6836
6834
|
|
|
6837
6835
|
var DESCRIPTORS$2 = descriptors;
|
|
6838
|
-
var global$
|
|
6836
|
+
var global$d = global$s;
|
|
6839
6837
|
var uncurryThis$j = functionUncurryThis;
|
|
6840
6838
|
var isForced$1 = isForced_1;
|
|
6841
6839
|
var inheritIfRequired = inheritIfRequired$1;
|
|
6842
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
6840
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
|
|
6843
6841
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
6844
6842
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
6845
6843
|
var isRegExp$1 = isRegexp;
|
|
@@ -6857,15 +6855,15 @@ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
|
6857
6855
|
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
6858
6856
|
|
|
6859
6857
|
var MATCH = wellKnownSymbol$9('match');
|
|
6860
|
-
var NativeRegExp = global$
|
|
6858
|
+
var NativeRegExp = global$d.RegExp;
|
|
6861
6859
|
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
6862
|
-
var SyntaxError = global$
|
|
6860
|
+
var SyntaxError = global$d.SyntaxError;
|
|
6863
6861
|
var exec$6 = uncurryThis$j(RegExpPrototype$2.exec);
|
|
6864
6862
|
var charAt$8 = uncurryThis$j(''.charAt);
|
|
6865
6863
|
var replace$6 = uncurryThis$j(''.replace);
|
|
6866
6864
|
var stringIndexOf$1 = uncurryThis$j(''.indexOf);
|
|
6867
6865
|
var stringSlice$9 = uncurryThis$j(''.slice);
|
|
6868
|
-
// TODO: Use only
|
|
6866
|
+
// TODO: Use only proper RegExpIdentifierName
|
|
6869
6867
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
6870
6868
|
var re1 = /a/g;
|
|
6871
6869
|
var re2 = /a/g;
|
|
@@ -7019,7 +7017,7 @@ if (isForced$1('RegExp', BASE_FORCED)) {
|
|
|
7019
7017
|
|
|
7020
7018
|
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
7021
7019
|
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
7022
|
-
defineBuiltIn$7(global$
|
|
7020
|
+
defineBuiltIn$7(global$d, 'RegExp', RegExpWrapper, { constructor: true });
|
|
7023
7021
|
}
|
|
7024
7022
|
|
|
7025
7023
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -7120,7 +7118,7 @@ if (PATCH) {
|
|
|
7120
7118
|
}
|
|
7121
7119
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
7122
7120
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
7123
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
7121
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
7124
7122
|
call$f(nativeReplace, match[0], reCopy, function () {
|
|
7125
7123
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
7126
7124
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
@@ -7178,7 +7176,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
7178
7176
|
}
|
|
7179
7177
|
|
|
7180
7178
|
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
7181
|
-
var _jsxFileName$C = "
|
|
7179
|
+
var _jsxFileName$C = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
7182
7180
|
const TagWrapper$3 = styled('div', {
|
|
7183
7181
|
boxSizing: 'border-box',
|
|
7184
7182
|
listStyle: 'none',
|
|
@@ -7355,7 +7353,7 @@ Tag.defaultProps = {
|
|
|
7355
7353
|
};
|
|
7356
7354
|
|
|
7357
7355
|
const _excluded$g = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
|
|
7358
|
-
var _jsxFileName$B = "
|
|
7356
|
+
var _jsxFileName$B = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTags/InputTags.js";
|
|
7359
7357
|
const Wrapper$2 = styled('div', {
|
|
7360
7358
|
margin: 0,
|
|
7361
7359
|
flexDirection: 'column',
|
|
@@ -7491,18 +7489,18 @@ function TagsInput(_ref) {
|
|
|
7491
7489
|
const addTags = event => {
|
|
7492
7490
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
7493
7491
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
7494
|
-
onEnter
|
|
7492
|
+
onEnter == null ? void 0 : onEnter({
|
|
7495
7493
|
key: 'duplicate',
|
|
7496
7494
|
value: event.target.value
|
|
7497
7495
|
});
|
|
7498
7496
|
return;
|
|
7499
7497
|
}
|
|
7500
7498
|
|
|
7501
|
-
if (pattern && pattern
|
|
7499
|
+
if (pattern && pattern != null && pattern.regex) {
|
|
7502
7500
|
const regex = new RegExp(pattern.regex);
|
|
7503
7501
|
|
|
7504
7502
|
if (!regex.test(event.target.value)) {
|
|
7505
|
-
onEnter
|
|
7503
|
+
onEnter == null ? void 0 : onEnter({
|
|
7506
7504
|
key: 'error',
|
|
7507
7505
|
value: event.target.value
|
|
7508
7506
|
});
|
|
@@ -7512,7 +7510,7 @@ function TagsInput(_ref) {
|
|
|
7512
7510
|
}
|
|
7513
7511
|
|
|
7514
7512
|
setRegexError(false);
|
|
7515
|
-
onEnter
|
|
7513
|
+
onEnter == null ? void 0 : onEnter({
|
|
7516
7514
|
key: 'success',
|
|
7517
7515
|
value: event.target.value
|
|
7518
7516
|
});
|
|
@@ -7525,7 +7523,7 @@ function TagsInput(_ref) {
|
|
|
7525
7523
|
if (disabled || readOnly) {
|
|
7526
7524
|
return tags;
|
|
7527
7525
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
7528
|
-
onRemoveItem
|
|
7526
|
+
onRemoveItem == null ? void 0 : onRemoveItem(tags[index]);
|
|
7529
7527
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
7530
7528
|
}
|
|
7531
7529
|
}; // const handleErrorMessage = () => {
|
|
@@ -7573,7 +7571,7 @@ function TagsInput(_ref) {
|
|
|
7573
7571
|
lineNumber: 180,
|
|
7574
7572
|
columnNumber: 9
|
|
7575
7573
|
}
|
|
7576
|
-
})), regexError && pattern && (pattern
|
|
7574
|
+
})), regexError && pattern && (pattern != null && pattern.errorMessage ? /*#__PURE__*/React__default.createElement(FormHelper, {
|
|
7577
7575
|
color: "red",
|
|
7578
7576
|
__self: this,
|
|
7579
7577
|
__source: {
|
|
@@ -7655,7 +7653,7 @@ TagsInput.defaultProps = {
|
|
|
7655
7653
|
};
|
|
7656
7654
|
|
|
7657
7655
|
const _excluded$f = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
|
|
7658
|
-
var _jsxFileName$A = "
|
|
7656
|
+
var _jsxFileName$A = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSwitch/InputSwitch.js";
|
|
7659
7657
|
const StyledThumb$1 = styled(SwitchPrimitive.Thumb, {
|
|
7660
7658
|
display: 'block',
|
|
7661
7659
|
width: '16px',
|
|
@@ -7763,7 +7761,7 @@ InputSwitch.propTypes = {
|
|
|
7763
7761
|
};
|
|
7764
7762
|
InputSwitch.displayName = 'InputSwitch';
|
|
7765
7763
|
|
|
7766
|
-
var _jsxFileName$z = "
|
|
7764
|
+
var _jsxFileName$z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/CloseFilled.js";
|
|
7767
7765
|
|
|
7768
7766
|
const SvgCloseFilled = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7769
7767
|
width: props.size,
|
|
@@ -7824,7 +7822,7 @@ SvgCloseFilled.defaultProps = {
|
|
|
7824
7822
|
size: 24
|
|
7825
7823
|
};
|
|
7826
7824
|
|
|
7827
|
-
var _jsxFileName$y = "
|
|
7825
|
+
var _jsxFileName$y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/SearchOutline.js";
|
|
7828
7826
|
|
|
7829
7827
|
const SvgSearchOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7830
7828
|
width: props.size,
|
|
@@ -7867,7 +7865,7 @@ SvgSearchOutline.defaultProps = {
|
|
|
7867
7865
|
};
|
|
7868
7866
|
|
|
7869
7867
|
const _excluded$e = ["size", "onChange", "css", "disabled"];
|
|
7870
|
-
var _jsxFileName$x = "
|
|
7868
|
+
var _jsxFileName$x = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
|
|
7871
7869
|
|
|
7872
7870
|
const InputSearchbox = _ref => {
|
|
7873
7871
|
let {
|
|
@@ -7982,7 +7980,7 @@ var defineBuiltIn$5 = defineBuiltIn$b;
|
|
|
7982
7980
|
var regexpExec$2 = regexpExec$3;
|
|
7983
7981
|
var fails$b = fails$t;
|
|
7984
7982
|
var wellKnownSymbol$8 = wellKnownSymbol$l;
|
|
7985
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
7983
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
7986
7984
|
|
|
7987
7985
|
var SPECIES$2 = wellKnownSymbol$8('species');
|
|
7988
7986
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -8057,14 +8055,13 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
8057
8055
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
8058
8056
|
};
|
|
8059
8057
|
|
|
8060
|
-
var global$o = global$U;
|
|
8061
8058
|
var call$e = functionCall;
|
|
8062
8059
|
var anObject$a = anObject$i;
|
|
8063
8060
|
var isCallable$7 = isCallable$p;
|
|
8064
8061
|
var classof$4 = classofRaw$1;
|
|
8065
8062
|
var regexpExec$1 = regexpExec$3;
|
|
8066
8063
|
|
|
8067
|
-
var TypeError$
|
|
8064
|
+
var $TypeError$7 = TypeError;
|
|
8068
8065
|
|
|
8069
8066
|
// `RegExpExec` abstract operation
|
|
8070
8067
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -8076,7 +8073,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
8076
8073
|
return result;
|
|
8077
8074
|
}
|
|
8078
8075
|
if (classof$4(R) === 'RegExp') return call$e(regexpExec$1, R, S);
|
|
8079
|
-
throw TypeError$
|
|
8076
|
+
throw $TypeError$7('RegExp#exec called on incompatible receiver');
|
|
8080
8077
|
};
|
|
8081
8078
|
|
|
8082
8079
|
var call$d = functionCall;
|
|
@@ -8693,6 +8690,14 @@ function InputSelect(_a) {
|
|
|
8693
8690
|
}), void 0);
|
|
8694
8691
|
}
|
|
8695
8692
|
|
|
8693
|
+
var tryToString$3 = tryToString$5;
|
|
8694
|
+
|
|
8695
|
+
var $TypeError$6 = TypeError;
|
|
8696
|
+
|
|
8697
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
8698
|
+
if (!delete O[P]) throw $TypeError$6('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
8699
|
+
};
|
|
8700
|
+
|
|
8696
8701
|
var toPropertyKey = toPropertyKey$3;
|
|
8697
8702
|
var definePropertyModule = objectDefineProperty;
|
|
8698
8703
|
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
@@ -8703,19 +8708,18 @@ var createProperty$2 = function (object, key, value) {
|
|
|
8703
8708
|
else object[propertyKey] = value;
|
|
8704
8709
|
};
|
|
8705
8710
|
|
|
8706
|
-
var global$n = global$U;
|
|
8707
8711
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
8708
8712
|
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
|
8709
8713
|
var createProperty$1 = createProperty$2;
|
|
8710
8714
|
|
|
8711
|
-
var Array$
|
|
8715
|
+
var $Array$1 = Array;
|
|
8712
8716
|
var max$1 = Math.max;
|
|
8713
8717
|
|
|
8714
8718
|
var arraySliceSimple = function (O, start, end) {
|
|
8715
8719
|
var length = lengthOfArrayLike$4(O);
|
|
8716
8720
|
var k = toAbsoluteIndex(start, length);
|
|
8717
8721
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
8718
|
-
var result = Array$
|
|
8722
|
+
var result = $Array$1(max$1(fin - k, 0));
|
|
8719
8723
|
for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
|
|
8720
8724
|
result.length = n;
|
|
8721
8725
|
return result;
|
|
@@ -8797,6 +8801,7 @@ var uncurryThis$g = functionUncurryThis;
|
|
|
8797
8801
|
var aCallable$7 = aCallable$9;
|
|
8798
8802
|
var toObject$3 = toObject$7;
|
|
8799
8803
|
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
|
8804
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
8800
8805
|
var toString$b = toString$h;
|
|
8801
8806
|
var fails$9 = fails$t;
|
|
8802
8807
|
var internalSort = arraySort$1;
|
|
@@ -8891,19 +8896,18 @@ $$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
|
8891
8896
|
index = 0;
|
|
8892
8897
|
|
|
8893
8898
|
while (index < itemsLength) array[index] = items[index++];
|
|
8894
|
-
while (index < arrayLength)
|
|
8899
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
8895
8900
|
|
|
8896
8901
|
return array;
|
|
8897
8902
|
}
|
|
8898
8903
|
});
|
|
8899
8904
|
|
|
8900
|
-
var global$m = global$U;
|
|
8901
8905
|
var aCallable$6 = aCallable$9;
|
|
8902
8906
|
var toObject$2 = toObject$7;
|
|
8903
8907
|
var IndexedObject = indexedObject;
|
|
8904
8908
|
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
|
8905
8909
|
|
|
8906
|
-
var TypeError$
|
|
8910
|
+
var $TypeError$5 = TypeError;
|
|
8907
8911
|
|
|
8908
8912
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
8909
8913
|
var createMethod$2 = function (IS_RIGHT) {
|
|
@@ -8922,7 +8926,7 @@ var createMethod$2 = function (IS_RIGHT) {
|
|
|
8922
8926
|
}
|
|
8923
8927
|
index += i;
|
|
8924
8928
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
8925
|
-
throw TypeError$
|
|
8929
|
+
throw $TypeError$5('Reduce of empty array with no initial value');
|
|
8926
8930
|
}
|
|
8927
8931
|
}
|
|
8928
8932
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -8942,20 +8946,20 @@ var arrayReduce = {
|
|
|
8942
8946
|
};
|
|
8943
8947
|
|
|
8944
8948
|
var classof$3 = classofRaw$1;
|
|
8945
|
-
var global$
|
|
8949
|
+
var global$c = global$s;
|
|
8946
8950
|
|
|
8947
|
-
var engineIsNode = classof$3(global$
|
|
8951
|
+
var engineIsNode = classof$3(global$c.process) == 'process';
|
|
8948
8952
|
|
|
8949
8953
|
var $$f = _export;
|
|
8950
8954
|
var $reduce = arrayReduce.left;
|
|
8951
8955
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
8952
8956
|
var CHROME_VERSION = engineV8Version;
|
|
8953
|
-
var IS_NODE$
|
|
8957
|
+
var IS_NODE$4 = engineIsNode;
|
|
8954
8958
|
|
|
8955
8959
|
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
8956
8960
|
// Chrome 80-82 has a critical bug
|
|
8957
8961
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
8958
|
-
var CHROME_BUG = !IS_NODE$
|
|
8962
|
+
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
8959
8963
|
|
|
8960
8964
|
// `Array.prototype.reduce` method
|
|
8961
8965
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
@@ -9001,7 +9005,7 @@ $$e({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
9001
9005
|
}
|
|
9002
9006
|
});
|
|
9003
9007
|
|
|
9004
|
-
var _jsxFileName$w = "
|
|
9008
|
+
var _jsxFileName$w = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/icon/CheckOutline.js";
|
|
9005
9009
|
|
|
9006
9010
|
const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
9007
9011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9050,7 +9054,7 @@ const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
9050
9054
|
}));
|
|
9051
9055
|
|
|
9052
9056
|
const _excluded$d = ["placeholder", "option", "value", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css"];
|
|
9053
|
-
var _jsxFileName$v = "
|
|
9057
|
+
var _jsxFileName$v = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
|
|
9054
9058
|
const Wrapper$1 = styled('div', {
|
|
9055
9059
|
margin: 0,
|
|
9056
9060
|
flexDirection: 'column',
|
|
@@ -9411,7 +9415,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9411
9415
|
setSelectedValue(filterItems);
|
|
9412
9416
|
|
|
9413
9417
|
if (selected.id !== '!all') {
|
|
9414
|
-
onChange
|
|
9418
|
+
onChange == null ? void 0 : onChange(filterItems);
|
|
9415
9419
|
}
|
|
9416
9420
|
}
|
|
9417
9421
|
};
|
|
@@ -9455,7 +9459,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9455
9459
|
removeSelectedItem(item);
|
|
9456
9460
|
});
|
|
9457
9461
|
setSelectedValue([]);
|
|
9458
|
-
onChange
|
|
9462
|
+
onChange == null ? void 0 : onChange([]);
|
|
9459
9463
|
} else {
|
|
9460
9464
|
removeItem(selectedItem);
|
|
9461
9465
|
}
|
|
@@ -9470,12 +9474,12 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9470
9474
|
itemIds.push(item.id);
|
|
9471
9475
|
});
|
|
9472
9476
|
setSelectedValue(itemIds);
|
|
9473
|
-
onChange
|
|
9477
|
+
onChange == null ? void 0 : onChange(itemIds.slice(1));
|
|
9474
9478
|
} else {
|
|
9475
9479
|
addSelectedItem(selectedItem);
|
|
9476
9480
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
9477
9481
|
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
9478
|
-
onChange
|
|
9482
|
+
onChange == null ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
|
|
9479
9483
|
}
|
|
9480
9484
|
|
|
9481
9485
|
selectItem(null);
|
|
@@ -9812,7 +9816,7 @@ InputSelectCheck.defaultProps = {
|
|
|
9812
9816
|
selectAllLabel: 'Pilih Semua'
|
|
9813
9817
|
};
|
|
9814
9818
|
|
|
9815
|
-
var _jsxFileName$u = "
|
|
9819
|
+
var _jsxFileName$u = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectTag/InputSelectTag.js";
|
|
9816
9820
|
const InputSelectTag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
9817
9821
|
return /*#__PURE__*/React.createElement(InputSelectCheck, _extends({
|
|
9818
9822
|
ref: ref,
|
|
@@ -9859,7 +9863,7 @@ InputSelectTag.defaultProps = {
|
|
|
9859
9863
|
sortBy: 'name'
|
|
9860
9864
|
};
|
|
9861
9865
|
|
|
9862
|
-
var _jsxFileName$t = "
|
|
9866
|
+
var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCreatable/InputCreatable.js";
|
|
9863
9867
|
const Wrapper = styled('div', {
|
|
9864
9868
|
margin: 0,
|
|
9865
9869
|
flexDirection: 'column',
|
|
@@ -10456,15 +10460,15 @@ var stringTrim = {
|
|
|
10456
10460
|
trim: createMethod$1(3)
|
|
10457
10461
|
};
|
|
10458
10462
|
|
|
10459
|
-
var global$
|
|
10463
|
+
var global$b = global$s;
|
|
10460
10464
|
var fails$8 = fails$t;
|
|
10461
10465
|
var uncurryThis$d = functionUncurryThis;
|
|
10462
10466
|
var toString$8 = toString$h;
|
|
10463
10467
|
var trim$1 = stringTrim.trim;
|
|
10464
10468
|
var whitespaces$2 = whitespaces$4;
|
|
10465
10469
|
|
|
10466
|
-
var $parseInt$1 = global$
|
|
10467
|
-
var Symbol$6 = global$
|
|
10470
|
+
var $parseInt$1 = global$b.parseInt;
|
|
10471
|
+
var Symbol$6 = global$b.Symbol;
|
|
10468
10472
|
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
10469
10473
|
var hex = /^[+-]?0x/i;
|
|
10470
10474
|
var exec$4 = uncurryThis$d(hex.exec);
|
|
@@ -10644,7 +10648,7 @@ InputCounter.defaultProps = {
|
|
|
10644
10648
|
};
|
|
10645
10649
|
|
|
10646
10650
|
const _excluded$c = ["children"];
|
|
10647
|
-
var _jsxFileName$s = "
|
|
10651
|
+
var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/popover/Popover.js";
|
|
10648
10652
|
const {
|
|
10649
10653
|
zIndices
|
|
10650
10654
|
} = foundations;
|
|
@@ -10734,8 +10738,8 @@ const PopoverContent = ({
|
|
|
10734
10738
|
ref: floating,
|
|
10735
10739
|
style: Object.assign({
|
|
10736
10740
|
position: strategy,
|
|
10737
|
-
top: isMobile ? 0 : y
|
|
10738
|
-
left: isMobile ? 0 : x
|
|
10741
|
+
top: isMobile ? 0 : y != null ? y : '',
|
|
10742
|
+
left: isMobile ? 0 : x != null ? x : '',
|
|
10739
10743
|
zIndex: zIndices.popover
|
|
10740
10744
|
}, style)
|
|
10741
10745
|
}), {
|
|
@@ -10778,7 +10782,7 @@ Popover.propTypes = {
|
|
|
10778
10782
|
Popover.displayName = 'Popover';
|
|
10779
10783
|
|
|
10780
10784
|
const _excluded$b = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
10781
|
-
var _jsxFileName$r = "
|
|
10785
|
+
var _jsxFileName$r = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
|
|
10782
10786
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
10783
10787
|
position: 'relative',
|
|
10784
10788
|
display: 'flex',
|
|
@@ -11123,7 +11127,7 @@ Slider.defaultProps = {
|
|
|
11123
11127
|
};
|
|
11124
11128
|
|
|
11125
11129
|
const _excluded$a = ["className", "children", "onClick", "type", "size"];
|
|
11126
|
-
var _jsxFileName$q = "
|
|
11130
|
+
var _jsxFileName$q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
|
|
11127
11131
|
const TagWrapper = styled('div', {
|
|
11128
11132
|
boxSizing: 'border-box',
|
|
11129
11133
|
fontSize: '12px',
|
|
@@ -11289,7 +11293,7 @@ const _excluded$9 = ["children"],
|
|
|
11289
11293
|
_excluded2$1 = ["children", "activeTabs"],
|
|
11290
11294
|
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
11291
11295
|
_excluded4 = ["activeTabs"];
|
|
11292
|
-
var _jsxFileName$p = "
|
|
11296
|
+
var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tabs/Tabs.js";
|
|
11293
11297
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
11294
11298
|
display: 'flex',
|
|
11295
11299
|
flexDirection: 'column',
|
|
@@ -11513,7 +11517,7 @@ Separator$2.displayName = 'Separator';
|
|
|
11513
11517
|
|
|
11514
11518
|
const _excluded$8 = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size"],
|
|
11515
11519
|
_excluded2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
11516
|
-
var _jsxFileName$o = "
|
|
11520
|
+
var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
|
|
11517
11521
|
const ButtonGroupComponent = styled(ToggleGroupPrimitive.Root, {
|
|
11518
11522
|
display: 'inline-flex',
|
|
11519
11523
|
borderRadius: '$md',
|
|
@@ -11741,7 +11745,7 @@ ButtonGroupItem.defaultProps = {
|
|
|
11741
11745
|
};
|
|
11742
11746
|
|
|
11743
11747
|
const _excluded$7 = ["children"];
|
|
11744
|
-
var _jsxFileName$n = "
|
|
11748
|
+
var _jsxFileName$n = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
|
|
11745
11749
|
const NotificationBadgeRootStyle = styled('span', {
|
|
11746
11750
|
position: 'relative',
|
|
11747
11751
|
display: 'inline-flex',
|
|
@@ -11841,7 +11845,7 @@ const NotificationBadge = _ref => {
|
|
|
11841
11845
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
11842
11846
|
|
|
11843
11847
|
const getValue = () => {
|
|
11844
|
-
let value = props
|
|
11848
|
+
let value = props == null ? void 0 : props.value;
|
|
11845
11849
|
|
|
11846
11850
|
if (typeof value === 'number' || parseInt(value)) {
|
|
11847
11851
|
if (Math.sign(value) === 1 || Math.sign(value) === 0) {
|
|
@@ -11885,7 +11889,7 @@ NotificationBadge.propTypes = {
|
|
|
11885
11889
|
};
|
|
11886
11890
|
|
|
11887
11891
|
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
11888
|
-
var _jsxFileName$m = "
|
|
11892
|
+
var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
|
|
11889
11893
|
const PaperComponent = styled('div', {
|
|
11890
11894
|
padding: '20px',
|
|
11891
11895
|
height: 'auto',
|
|
@@ -12096,14 +12100,13 @@ DialogClose.displayName = 'DialogClose';
|
|
|
12096
12100
|
DialogOverlay.displayName = 'DialogOverlay';
|
|
12097
12101
|
DialogPortal.displayName = 'DialogPortal';
|
|
12098
12102
|
|
|
12099
|
-
var global$j = global$U;
|
|
12100
12103
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
12101
12104
|
|
|
12102
|
-
var TypeError$
|
|
12105
|
+
var $TypeError$4 = TypeError;
|
|
12103
12106
|
|
|
12104
12107
|
var anInstance$3 = function (it, Prototype) {
|
|
12105
12108
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
12106
|
-
throw TypeError$
|
|
12109
|
+
throw $TypeError$4('Incorrect invocation');
|
|
12107
12110
|
};
|
|
12108
12111
|
|
|
12109
12112
|
var uncurryThis$c = functionUncurryThis;
|
|
@@ -12159,16 +12162,15 @@ var isConstructor$2 = !construct || fails$7(function () {
|
|
|
12159
12162
|
|| called;
|
|
12160
12163
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
12161
12164
|
|
|
12162
|
-
var global$i = global$U;
|
|
12163
12165
|
var isConstructor$1 = isConstructor$2;
|
|
12164
|
-
var tryToString$2 = tryToString$
|
|
12166
|
+
var tryToString$2 = tryToString$5;
|
|
12165
12167
|
|
|
12166
|
-
var TypeError$
|
|
12168
|
+
var $TypeError$3 = TypeError;
|
|
12167
12169
|
|
|
12168
12170
|
// `Assert: IsConstructor(argument) is true`
|
|
12169
12171
|
var aConstructor$1 = function (argument) {
|
|
12170
12172
|
if (isConstructor$1(argument)) return argument;
|
|
12171
|
-
throw TypeError$
|
|
12173
|
+
throw $TypeError$3(tryToString$2(argument) + ' is not a constructor');
|
|
12172
12174
|
};
|
|
12173
12175
|
|
|
12174
12176
|
var anObject$8 = anObject$i;
|
|
@@ -12214,12 +12216,10 @@ var uncurryThis$a = functionUncurryThis;
|
|
|
12214
12216
|
|
|
12215
12217
|
var arraySlice$3 = uncurryThis$a([].slice);
|
|
12216
12218
|
|
|
12217
|
-
var
|
|
12218
|
-
|
|
12219
|
-
var TypeError$6 = global$h.TypeError;
|
|
12219
|
+
var $TypeError$2 = TypeError;
|
|
12220
12220
|
|
|
12221
12221
|
var validateArgumentsLength$3 = function (passed, required) {
|
|
12222
|
-
if (passed < required) throw TypeError$
|
|
12222
|
+
if (passed < required) throw $TypeError$2('Not enough arguments');
|
|
12223
12223
|
return passed;
|
|
12224
12224
|
};
|
|
12225
12225
|
|
|
@@ -12227,7 +12227,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
12227
12227
|
|
|
12228
12228
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
12229
12229
|
|
|
12230
|
-
var global$
|
|
12230
|
+
var global$a = global$s;
|
|
12231
12231
|
var apply$2 = functionApply;
|
|
12232
12232
|
var bind$6 = functionBindContext;
|
|
12233
12233
|
var isCallable$5 = isCallable$p;
|
|
@@ -12238,15 +12238,15 @@ var arraySlice$2 = arraySlice$3;
|
|
|
12238
12238
|
var createElement = documentCreateElement$2;
|
|
12239
12239
|
var validateArgumentsLength$2 = validateArgumentsLength$3;
|
|
12240
12240
|
var IS_IOS$1 = engineIsIos;
|
|
12241
|
-
var IS_NODE$
|
|
12241
|
+
var IS_NODE$3 = engineIsNode;
|
|
12242
12242
|
|
|
12243
|
-
var set = global$
|
|
12244
|
-
var clear = global$
|
|
12245
|
-
var process$2 = global$
|
|
12246
|
-
var Dispatch = global$
|
|
12247
|
-
var Function$1 = global$
|
|
12248
|
-
var MessageChannel = global$
|
|
12249
|
-
var String$
|
|
12243
|
+
var set = global$a.setImmediate;
|
|
12244
|
+
var clear = global$a.clearImmediate;
|
|
12245
|
+
var process$2 = global$a.process;
|
|
12246
|
+
var Dispatch = global$a.Dispatch;
|
|
12247
|
+
var Function$1 = global$a.Function;
|
|
12248
|
+
var MessageChannel = global$a.MessageChannel;
|
|
12249
|
+
var String$1 = global$a.String;
|
|
12250
12250
|
var counter = 0;
|
|
12251
12251
|
var queue$1 = {};
|
|
12252
12252
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -12254,7 +12254,7 @@ var location, defer, channel, port;
|
|
|
12254
12254
|
|
|
12255
12255
|
try {
|
|
12256
12256
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
12257
|
-
location = global$
|
|
12257
|
+
location = global$a.location;
|
|
12258
12258
|
} catch (error) { /* empty */ }
|
|
12259
12259
|
|
|
12260
12260
|
var run = function (id) {
|
|
@@ -12277,7 +12277,7 @@ var listener = function (event) {
|
|
|
12277
12277
|
|
|
12278
12278
|
var post = function (id) {
|
|
12279
12279
|
// old engines have not location.origin
|
|
12280
|
-
global$
|
|
12280
|
+
global$a.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
12281
12281
|
};
|
|
12282
12282
|
|
|
12283
12283
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -12296,7 +12296,7 @@ if (!set || !clear) {
|
|
|
12296
12296
|
delete queue$1[id];
|
|
12297
12297
|
};
|
|
12298
12298
|
// Node.js 0.8-
|
|
12299
|
-
if (IS_NODE$
|
|
12299
|
+
if (IS_NODE$3) {
|
|
12300
12300
|
defer = function (id) {
|
|
12301
12301
|
process$2.nextTick(runner(id));
|
|
12302
12302
|
};
|
|
@@ -12315,14 +12315,14 @@ if (!set || !clear) {
|
|
|
12315
12315
|
// Browsers with postMessage, skip WebWorkers
|
|
12316
12316
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
12317
12317
|
} else if (
|
|
12318
|
-
global$
|
|
12319
|
-
isCallable$5(global$
|
|
12320
|
-
!global$
|
|
12318
|
+
global$a.addEventListener &&
|
|
12319
|
+
isCallable$5(global$a.postMessage) &&
|
|
12320
|
+
!global$a.importScripts &&
|
|
12321
12321
|
location && location.protocol !== 'file:' &&
|
|
12322
12322
|
!fails$6(post)
|
|
12323
12323
|
) {
|
|
12324
12324
|
defer = post;
|
|
12325
|
-
global$
|
|
12325
|
+
global$a.addEventListener('message', listener, false);
|
|
12326
12326
|
// IE8-
|
|
12327
12327
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
12328
12328
|
defer = function (id) {
|
|
@@ -12345,29 +12345,29 @@ var task$1 = {
|
|
|
12345
12345
|
};
|
|
12346
12346
|
|
|
12347
12347
|
var userAgent$1 = engineUserAgent;
|
|
12348
|
-
var global$
|
|
12348
|
+
var global$9 = global$s;
|
|
12349
12349
|
|
|
12350
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
12350
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$9.Pebble !== undefined;
|
|
12351
12351
|
|
|
12352
12352
|
var userAgent = engineUserAgent;
|
|
12353
12353
|
|
|
12354
12354
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
12355
12355
|
|
|
12356
|
-
var global$
|
|
12356
|
+
var global$8 = global$s;
|
|
12357
12357
|
var bind$5 = functionBindContext;
|
|
12358
12358
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
12359
12359
|
var macrotask = task$1.set;
|
|
12360
12360
|
var IS_IOS = engineIsIos;
|
|
12361
12361
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
12362
12362
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
12363
|
-
var IS_NODE$
|
|
12363
|
+
var IS_NODE$2 = engineIsNode;
|
|
12364
12364
|
|
|
12365
|
-
var MutationObserver = global$
|
|
12366
|
-
var document$2 = global$
|
|
12367
|
-
var process$1 = global$
|
|
12368
|
-
var Promise$1 = global$
|
|
12365
|
+
var MutationObserver = global$8.MutationObserver || global$8.WebKitMutationObserver;
|
|
12366
|
+
var document$2 = global$8.document;
|
|
12367
|
+
var process$1 = global$8.process;
|
|
12368
|
+
var Promise$1 = global$8.Promise;
|
|
12369
12369
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
12370
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$
|
|
12370
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$8, 'queueMicrotask');
|
|
12371
12371
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
12372
12372
|
|
|
12373
12373
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -12376,7 +12376,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
|
|
|
12376
12376
|
if (!queueMicrotask) {
|
|
12377
12377
|
flush = function () {
|
|
12378
12378
|
var parent, fn;
|
|
12379
|
-
if (IS_NODE$
|
|
12379
|
+
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
12380
12380
|
while (head) {
|
|
12381
12381
|
fn = head.fn;
|
|
12382
12382
|
head = head.next;
|
|
@@ -12393,7 +12393,7 @@ if (!queueMicrotask) {
|
|
|
12393
12393
|
|
|
12394
12394
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
12395
12395
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
12396
|
-
if (!IS_IOS && !IS_NODE$
|
|
12396
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
12397
12397
|
toggle = true;
|
|
12398
12398
|
node = document$2.createTextNode('');
|
|
12399
12399
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
@@ -12411,7 +12411,7 @@ if (!queueMicrotask) {
|
|
|
12411
12411
|
then(flush);
|
|
12412
12412
|
};
|
|
12413
12413
|
// Node.js without promises
|
|
12414
|
-
} else if (IS_NODE$
|
|
12414
|
+
} else if (IS_NODE$2) {
|
|
12415
12415
|
notify$1 = function () {
|
|
12416
12416
|
process$1.nextTick(flush);
|
|
12417
12417
|
};
|
|
@@ -12423,7 +12423,7 @@ if (!queueMicrotask) {
|
|
|
12423
12423
|
// - setTimeout
|
|
12424
12424
|
} else {
|
|
12425
12425
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
12426
|
-
macrotask = bind$5(macrotask, global$
|
|
12426
|
+
macrotask = bind$5(macrotask, global$8);
|
|
12427
12427
|
notify$1 = function () {
|
|
12428
12428
|
macrotask(flush);
|
|
12429
12429
|
};
|
|
@@ -12439,10 +12439,10 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
12439
12439
|
} last = task;
|
|
12440
12440
|
};
|
|
12441
12441
|
|
|
12442
|
-
var global$
|
|
12442
|
+
var global$7 = global$s;
|
|
12443
12443
|
|
|
12444
12444
|
var hostReportErrors$1 = function (a, b) {
|
|
12445
|
-
var console = global$
|
|
12445
|
+
var console = global$7.console;
|
|
12446
12446
|
if (console && console.error) {
|
|
12447
12447
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
12448
12448
|
}
|
|
@@ -12480,25 +12480,35 @@ Queue$1.prototype = {
|
|
|
12480
12480
|
|
|
12481
12481
|
var queue = Queue$1;
|
|
12482
12482
|
|
|
12483
|
-
var global$
|
|
12483
|
+
var global$6 = global$s;
|
|
12484
|
+
|
|
12485
|
+
var promiseNativeConstructor = global$6.Promise;
|
|
12486
|
+
|
|
12487
|
+
/* global Deno -- Deno case */
|
|
12484
12488
|
|
|
12485
|
-
var
|
|
12489
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
12486
12490
|
|
|
12487
|
-
var
|
|
12491
|
+
var IS_DENO$1 = engineIsDeno;
|
|
12492
|
+
var IS_NODE$1 = engineIsNode;
|
|
12493
|
+
|
|
12494
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
12495
|
+
&& typeof window == 'object'
|
|
12496
|
+
&& typeof document == 'object';
|
|
12488
12497
|
|
|
12489
|
-
var global$
|
|
12498
|
+
var global$5 = global$s;
|
|
12490
12499
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
12491
12500
|
var isCallable$4 = isCallable$p;
|
|
12492
12501
|
var isForced = isForced_1;
|
|
12493
12502
|
var inspectSource = inspectSource$4;
|
|
12494
12503
|
var wellKnownSymbol$6 = wellKnownSymbol$l;
|
|
12495
12504
|
var IS_BROWSER = engineIsBrowser;
|
|
12505
|
+
var IS_DENO = engineIsDeno;
|
|
12496
12506
|
var V8_VERSION = engineV8Version;
|
|
12497
12507
|
|
|
12498
12508
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
12499
12509
|
var SPECIES = wellKnownSymbol$6('species');
|
|
12500
12510
|
var SUBCLASSING = false;
|
|
12501
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$
|
|
12511
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$5.PromiseRejectionEvent);
|
|
12502
12512
|
|
|
12503
12513
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
12504
12514
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -12510,18 +12520,18 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
12510
12520
|
// We can't use @@species feature detection in V8 since it causes
|
|
12511
12521
|
// deoptimization and performance degradation
|
|
12512
12522
|
// https://github.com/zloirock/core-js/issues/679
|
|
12513
|
-
if (V8_VERSION
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
12524
|
+
// Detect correctness of subclassing with @@species support
|
|
12525
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
12526
|
+
var FakePromise = function (exec) {
|
|
12527
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
12528
|
+
};
|
|
12529
|
+
var constructor = promise.constructor = {};
|
|
12530
|
+
constructor[SPECIES] = FakePromise;
|
|
12531
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
12532
|
+
if (!SUBCLASSING) return true;
|
|
12523
12533
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
12524
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
12534
|
+
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
12525
12535
|
});
|
|
12526
12536
|
|
|
12527
12537
|
var promiseConstructorDetection = {
|
|
@@ -12553,7 +12563,7 @@ newPromiseCapability$2.f = function (C) {
|
|
|
12553
12563
|
|
|
12554
12564
|
var $$c = _export;
|
|
12555
12565
|
var IS_NODE = engineIsNode;
|
|
12556
|
-
var global$
|
|
12566
|
+
var global$4 = global$s;
|
|
12557
12567
|
var call$b = functionCall;
|
|
12558
12568
|
var defineBuiltIn$4 = defineBuiltIn$b;
|
|
12559
12569
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -12583,13 +12593,13 @@ var setInternalState$3 = InternalStateModule$3.set;
|
|
|
12583
12593
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
12584
12594
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
12585
12595
|
var PromisePrototype = NativePromisePrototype$1;
|
|
12586
|
-
var TypeError$
|
|
12587
|
-
var document$1 = global$
|
|
12588
|
-
var process = global$
|
|
12596
|
+
var TypeError$3 = global$4.TypeError;
|
|
12597
|
+
var document$1 = global$4.document;
|
|
12598
|
+
var process = global$4.process;
|
|
12589
12599
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
12590
12600
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
12591
12601
|
|
|
12592
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
12602
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
|
|
12593
12603
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
12594
12604
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
12595
12605
|
var PENDING = 0;
|
|
@@ -12630,7 +12640,7 @@ var callReaction = function (reaction, state) {
|
|
|
12630
12640
|
}
|
|
12631
12641
|
}
|
|
12632
12642
|
if (result === reaction.promise) {
|
|
12633
|
-
reject(TypeError$
|
|
12643
|
+
reject(TypeError$3('Promise-chain cycle'));
|
|
12634
12644
|
} else if (then = isThenable(result)) {
|
|
12635
12645
|
call$b(then, result, resolve, reject);
|
|
12636
12646
|
} else resolve(result);
|
|
@@ -12662,14 +12672,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
12662
12672
|
event.promise = promise;
|
|
12663
12673
|
event.reason = reason;
|
|
12664
12674
|
event.initEvent(name, false, true);
|
|
12665
|
-
global$
|
|
12675
|
+
global$4.dispatchEvent(event);
|
|
12666
12676
|
} else event = { promise: promise, reason: reason };
|
|
12667
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
12677
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
|
|
12668
12678
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
12669
12679
|
};
|
|
12670
12680
|
|
|
12671
12681
|
var onUnhandled = function (state) {
|
|
12672
|
-
call$b(task, global$
|
|
12682
|
+
call$b(task, global$4, function () {
|
|
12673
12683
|
var promise = state.facade;
|
|
12674
12684
|
var value = state.value;
|
|
12675
12685
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -12692,7 +12702,7 @@ var isUnhandled = function (state) {
|
|
|
12692
12702
|
};
|
|
12693
12703
|
|
|
12694
12704
|
var onHandleUnhandled = function (state) {
|
|
12695
|
-
call$b(task, global$
|
|
12705
|
+
call$b(task, global$4, function () {
|
|
12696
12706
|
var promise = state.facade;
|
|
12697
12707
|
if (IS_NODE) {
|
|
12698
12708
|
process.emit('rejectionHandled', promise);
|
|
@@ -12720,7 +12730,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
12720
12730
|
state.done = true;
|
|
12721
12731
|
if (unwrap) state = unwrap;
|
|
12722
12732
|
try {
|
|
12723
|
-
if (state.facade === value) throw TypeError$
|
|
12733
|
+
if (state.facade === value) throw TypeError$3("Promise can't be resolved itself");
|
|
12724
12734
|
var then = isThenable(value);
|
|
12725
12735
|
if (then) {
|
|
12726
12736
|
microtask(function () {
|
|
@@ -12862,19 +12872,18 @@ var getIteratorMethod$4 = function (it) {
|
|
|
12862
12872
|
|| Iterators[classof$1(it)];
|
|
12863
12873
|
};
|
|
12864
12874
|
|
|
12865
|
-
var global$9 = global$U;
|
|
12866
12875
|
var call$a = functionCall;
|
|
12867
12876
|
var aCallable$2 = aCallable$9;
|
|
12868
12877
|
var anObject$7 = anObject$i;
|
|
12869
|
-
var tryToString$1 = tryToString$
|
|
12878
|
+
var tryToString$1 = tryToString$5;
|
|
12870
12879
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
12871
12880
|
|
|
12872
|
-
var TypeError$
|
|
12881
|
+
var $TypeError$1 = TypeError;
|
|
12873
12882
|
|
|
12874
12883
|
var getIterator$3 = function (argument, usingIterator) {
|
|
12875
12884
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
12876
12885
|
if (aCallable$2(iteratorMethod)) return anObject$7(call$a(iteratorMethod, argument));
|
|
12877
|
-
throw TypeError$
|
|
12886
|
+
throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
12878
12887
|
};
|
|
12879
12888
|
|
|
12880
12889
|
var call$9 = functionCall;
|
|
@@ -12901,11 +12910,10 @@ var iteratorClose$2 = function (iterator, kind, value) {
|
|
|
12901
12910
|
return value;
|
|
12902
12911
|
};
|
|
12903
12912
|
|
|
12904
|
-
var global$8 = global$U;
|
|
12905
12913
|
var bind$3 = functionBindContext;
|
|
12906
12914
|
var call$8 = functionCall;
|
|
12907
12915
|
var anObject$5 = anObject$i;
|
|
12908
|
-
var tryToString = tryToString$
|
|
12916
|
+
var tryToString = tryToString$5;
|
|
12909
12917
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
12910
12918
|
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
|
12911
12919
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
@@ -12913,7 +12921,7 @@ var getIterator$2 = getIterator$3;
|
|
|
12913
12921
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
12914
12922
|
var iteratorClose$1 = iteratorClose$2;
|
|
12915
12923
|
|
|
12916
|
-
var TypeError
|
|
12924
|
+
var $TypeError = TypeError;
|
|
12917
12925
|
|
|
12918
12926
|
var Result = function (stopped, result) {
|
|
12919
12927
|
this.stopped = stopped;
|
|
@@ -12925,6 +12933,7 @@ var ResultPrototype = Result.prototype;
|
|
|
12925
12933
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
12926
12934
|
var that = options && options.that;
|
|
12927
12935
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
12936
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
12928
12937
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
12929
12938
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
12930
12939
|
var fn = bind$3(unboundFunction, that);
|
|
@@ -12942,11 +12951,13 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
12942
12951
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
12943
12952
|
};
|
|
12944
12953
|
|
|
12945
|
-
if (
|
|
12954
|
+
if (IS_RECORD) {
|
|
12955
|
+
iterator = iterable.iterator;
|
|
12956
|
+
} else if (IS_ITERATOR) {
|
|
12946
12957
|
iterator = iterable;
|
|
12947
12958
|
} else {
|
|
12948
12959
|
iterFn = getIteratorMethod$2(iterable);
|
|
12949
|
-
if (!iterFn) throw TypeError
|
|
12960
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
12950
12961
|
// optimisation for array iterators
|
|
12951
12962
|
if (isArrayIteratorMethod$1(iterFn)) {
|
|
12952
12963
|
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
@@ -12957,7 +12968,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
12957
12968
|
iterator = getIterator$2(iterable, iterFn);
|
|
12958
12969
|
}
|
|
12959
12970
|
|
|
12960
|
-
next = iterator.next;
|
|
12971
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
12961
12972
|
while (!(step = call$8(next, iterator)).done) {
|
|
12962
12973
|
try {
|
|
12963
12974
|
result = callFn(step.value);
|
|
@@ -13377,7 +13388,7 @@ ModalDialog.defaultProps = {
|
|
|
13377
13388
|
};
|
|
13378
13389
|
|
|
13379
13390
|
const _excluded$5 = ["children"];
|
|
13380
|
-
var _jsxFileName$l = "
|
|
13391
|
+
var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
|
|
13381
13392
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
13382
13393
|
const {
|
|
13383
13394
|
sizes
|
|
@@ -15069,7 +15080,7 @@ const MobileCalendarBox = ({
|
|
|
15069
15080
|
return null;
|
|
15070
15081
|
};
|
|
15071
15082
|
|
|
15072
|
-
var _jsxFileName$k = "
|
|
15083
|
+
var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/datePicker/timePicker/TimePicker.js";
|
|
15073
15084
|
const Input$3 = styled('input', {
|
|
15074
15085
|
display: 'none'
|
|
15075
15086
|
});
|
|
@@ -15326,33 +15337,33 @@ const NativeTimePicker = ({
|
|
|
15326
15337
|
})));
|
|
15327
15338
|
};
|
|
15328
15339
|
NativeTimePicker.propTypes = {
|
|
15329
|
-
/**
|
|
15330
|
-
Resize time picker.
|
|
15340
|
+
/**
|
|
15341
|
+
Resize time picker.
|
|
15331
15342
|
*/
|
|
15332
15343
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15333
15344
|
|
|
15334
|
-
/**
|
|
15335
|
-
Change handler.
|
|
15345
|
+
/**
|
|
15346
|
+
Change handler.
|
|
15336
15347
|
*/
|
|
15337
15348
|
onChange: PropTypes.func,
|
|
15338
15349
|
|
|
15339
|
-
/**
|
|
15340
|
-
Time picker default value, support moment format.
|
|
15350
|
+
/**
|
|
15351
|
+
Time picker default value, support moment format.
|
|
15341
15352
|
*/
|
|
15342
15353
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15343
15354
|
|
|
15344
|
-
/**
|
|
15345
|
-
Time picker value, support moment format.
|
|
15355
|
+
/**
|
|
15356
|
+
Time picker value, support moment format.
|
|
15346
15357
|
*/
|
|
15347
15358
|
value: PropTypes.instanceOf(Date),
|
|
15348
15359
|
|
|
15349
|
-
/**
|
|
15350
|
-
Specify the minimum date.
|
|
15360
|
+
/**
|
|
15361
|
+
Specify the minimum date.
|
|
15351
15362
|
*/
|
|
15352
15363
|
minDate: PropTypes.instanceOf(Date),
|
|
15353
15364
|
|
|
15354
|
-
/**
|
|
15355
|
-
Specify the maximum date.
|
|
15365
|
+
/**
|
|
15366
|
+
Specify the maximum date.
|
|
15356
15367
|
*/
|
|
15357
15368
|
maxDate: PropTypes.instanceOf(Date)
|
|
15358
15369
|
};
|
|
@@ -15397,49 +15408,49 @@ const TimePicker = ({
|
|
|
15397
15408
|
};
|
|
15398
15409
|
TimePicker.displayName = 'TimePicker';
|
|
15399
15410
|
TimePicker.propTypes = {
|
|
15400
|
-
/**
|
|
15401
|
-
Additional styles.
|
|
15411
|
+
/**
|
|
15412
|
+
Additional styles.
|
|
15402
15413
|
*/
|
|
15403
15414
|
css: PropTypes.object,
|
|
15404
15415
|
|
|
15405
|
-
/**
|
|
15406
|
-
Resize time picker.
|
|
15416
|
+
/**
|
|
15417
|
+
Resize time picker.
|
|
15407
15418
|
*/
|
|
15408
15419
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15409
15420
|
|
|
15410
|
-
/**
|
|
15411
|
-
Change handler.
|
|
15421
|
+
/**
|
|
15422
|
+
Change handler.
|
|
15412
15423
|
*/
|
|
15413
15424
|
onChange: PropTypes.func,
|
|
15414
15425
|
|
|
15415
|
-
/**
|
|
15416
|
-
Time picker default value, support moment format.
|
|
15426
|
+
/**
|
|
15427
|
+
Time picker default value, support moment format.
|
|
15417
15428
|
*/
|
|
15418
15429
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15419
15430
|
|
|
15420
|
-
/**
|
|
15421
|
-
Time picker value, support moment format.
|
|
15431
|
+
/**
|
|
15432
|
+
Time picker value, support moment format.
|
|
15422
15433
|
*/
|
|
15423
15434
|
value: PropTypes.instanceOf(Date),
|
|
15424
15435
|
|
|
15425
|
-
/**
|
|
15426
|
-
Disabled state.
|
|
15436
|
+
/**
|
|
15437
|
+
Disabled state.
|
|
15427
15438
|
*/
|
|
15428
15439
|
disabled: PropTypes.bool,
|
|
15429
15440
|
|
|
15430
|
-
/**
|
|
15431
|
-
Specify the minimum date.
|
|
15441
|
+
/**
|
|
15442
|
+
Specify the minimum date.
|
|
15432
15443
|
*/
|
|
15433
15444
|
minDate: PropTypes.instanceOf(Date),
|
|
15434
15445
|
|
|
15435
|
-
/**
|
|
15436
|
-
Specify the maximum date.
|
|
15446
|
+
/**
|
|
15447
|
+
Specify the maximum date.
|
|
15437
15448
|
*/
|
|
15438
15449
|
maxDate: PropTypes.instanceOf(Date)
|
|
15439
15450
|
};
|
|
15440
15451
|
NativeTimePicker.displayName = 'NativeTimePicker';
|
|
15441
15452
|
|
|
15442
|
-
var _jsxFileName$j = "
|
|
15453
|
+
var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/datePicker/timePicker/InputTimePicker.js";
|
|
15443
15454
|
|
|
15444
15455
|
const getInputPickerValue$1 = date => {
|
|
15445
15456
|
if (!date) return;
|
|
@@ -15613,58 +15624,58 @@ InputTimePicker.defaultProps = {
|
|
|
15613
15624
|
placeholder: 'Select Time'
|
|
15614
15625
|
};
|
|
15615
15626
|
InputTimePicker.propTypes = {
|
|
15616
|
-
/**
|
|
15617
|
-
Additional styles.
|
|
15627
|
+
/**
|
|
15628
|
+
Additional styles.
|
|
15618
15629
|
*/
|
|
15619
15630
|
css: PropTypes.object,
|
|
15620
15631
|
|
|
15621
|
-
/**
|
|
15622
|
-
Disabled state.
|
|
15632
|
+
/**
|
|
15633
|
+
Disabled state.
|
|
15623
15634
|
*/
|
|
15624
15635
|
disabled: PropTypes.bool,
|
|
15625
15636
|
|
|
15626
|
-
/**
|
|
15627
|
-
ReadOnly state.
|
|
15637
|
+
/**
|
|
15638
|
+
ReadOnly state.
|
|
15628
15639
|
*/
|
|
15629
15640
|
readOnly: PropTypes.bool,
|
|
15630
15641
|
|
|
15631
|
-
/**
|
|
15632
|
-
Resize time picker.
|
|
15642
|
+
/**
|
|
15643
|
+
Resize time picker.
|
|
15633
15644
|
*/
|
|
15634
15645
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15635
15646
|
|
|
15636
|
-
/**
|
|
15637
|
-
Custom placeholder input time picker.
|
|
15647
|
+
/**
|
|
15648
|
+
Custom placeholder input time picker.
|
|
15638
15649
|
*/
|
|
15639
15650
|
placeholder: PropTypes.string,
|
|
15640
15651
|
|
|
15641
|
-
/**
|
|
15642
|
-
Time picker default value, support moment format.
|
|
15652
|
+
/**
|
|
15653
|
+
Time picker default value, support moment format.
|
|
15643
15654
|
*/
|
|
15644
15655
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15645
15656
|
|
|
15646
|
-
/**
|
|
15647
|
-
Time picker value, support moment format.
|
|
15657
|
+
/**
|
|
15658
|
+
Time picker value, support moment format.
|
|
15648
15659
|
*/
|
|
15649
15660
|
value: PropTypes.instanceOf(Date),
|
|
15650
15661
|
|
|
15651
|
-
/**
|
|
15652
|
-
Change handler.
|
|
15662
|
+
/**
|
|
15663
|
+
Change handler.
|
|
15653
15664
|
*/
|
|
15654
15665
|
onChange: PropTypes.func,
|
|
15655
15666
|
|
|
15656
|
-
/**
|
|
15657
|
-
Placement popover input time picker.
|
|
15667
|
+
/**
|
|
15668
|
+
Placement popover input time picker.
|
|
15658
15669
|
*/
|
|
15659
15670
|
placement: PropTypes.string,
|
|
15660
15671
|
|
|
15661
|
-
/**
|
|
15662
|
-
Specify the minimum date.
|
|
15672
|
+
/**
|
|
15673
|
+
Specify the minimum date.
|
|
15663
15674
|
*/
|
|
15664
15675
|
minDate: PropTypes.instanceOf(Date),
|
|
15665
15676
|
|
|
15666
|
-
/**
|
|
15667
|
-
Specify the maximum date.
|
|
15677
|
+
/**
|
|
15678
|
+
Specify the maximum date.
|
|
15668
15679
|
*/
|
|
15669
15680
|
maxDate: PropTypes.instanceOf(Date)
|
|
15670
15681
|
};
|
|
@@ -16199,7 +16210,7 @@ const removeUndefinedFields = obj => {
|
|
|
16199
16210
|
};
|
|
16200
16211
|
|
|
16201
16212
|
const _excluded$4 = ["isActive", "onClick"];
|
|
16202
|
-
var _jsxFileName$i = "
|
|
16213
|
+
var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
|
|
16203
16214
|
const PrevNextButton = styled(Text$1, {
|
|
16204
16215
|
padding: '$spacing-01',
|
|
16205
16216
|
cursor: 'pointer',
|
|
@@ -16469,7 +16480,7 @@ const PaginationButton = ({
|
|
|
16469
16480
|
};
|
|
16470
16481
|
|
|
16471
16482
|
const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
16472
|
-
var _jsxFileName$h = "
|
|
16483
|
+
var _jsxFileName$h = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
|
|
16473
16484
|
const LimitContainer = styled(Flex$1, {
|
|
16474
16485
|
cursor: 'pointer'
|
|
16475
16486
|
});
|
|
@@ -16575,7 +16586,7 @@ function PaginationInfo(_ref) {
|
|
|
16575
16586
|
lineNumber: 40,
|
|
16576
16587
|
columnNumber: 11
|
|
16577
16588
|
}
|
|
16578
|
-
}, limits
|
|
16589
|
+
}, limits == null ? void 0 : limits.map(limit => /*#__PURE__*/React__default.createElement(PopoverClose, {
|
|
16579
16590
|
key: limit,
|
|
16580
16591
|
css: limitItemContainerStyle(selectedLimit === limit),
|
|
16581
16592
|
onClick: () => onChange(limit),
|
|
@@ -16606,7 +16617,7 @@ function PaginationInfo(_ref) {
|
|
|
16606
16617
|
}
|
|
16607
16618
|
|
|
16608
16619
|
const _excluded$2 = ["limit", "currentPage", "totalData", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions"];
|
|
16609
|
-
var _jsxFileName$g = "
|
|
16620
|
+
var _jsxFileName$g = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
|
|
16610
16621
|
|
|
16611
16622
|
function Pagination(_ref) {
|
|
16612
16623
|
let {
|
|
@@ -17326,8 +17337,7 @@ function Table({
|
|
|
17326
17337
|
return jsx(TableHeadRow$3, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
17327
17338
|
children: visibleHeaders.map((column, index) => {
|
|
17328
17339
|
const headerRender = column.render('Header');
|
|
17329
|
-
return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props,
|
|
17330
|
-
!column.unsortable ? column.getSortByToggleProps({
|
|
17340
|
+
return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, !column.unsortable ? column.getSortByToggleProps({
|
|
17331
17341
|
title: 'Urutkan'
|
|
17332
17342
|
}) : {}, {
|
|
17333
17343
|
style: {
|
|
@@ -17338,23 +17348,7 @@ function Table({
|
|
|
17338
17348
|
}]), {
|
|
17339
17349
|
css: stickyPositionStyling(column)
|
|
17340
17350
|
}, {
|
|
17341
|
-
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer
|
|
17342
|
-
// padding:
|
|
17343
|
-
// index > 0
|
|
17344
|
-
// ? index < visibleHeaders.length - 1
|
|
17345
|
-
// ? '0 $spacing-03'
|
|
17346
|
-
// : '0 20px 0 $spacing-03'
|
|
17347
|
-
// : '0 $spacing-03 0 20px',
|
|
17348
|
-
// }}
|
|
17349
|
-
, Object.assign({
|
|
17350
|
-
// css={{
|
|
17351
|
-
// padding:
|
|
17352
|
-
// index > 0
|
|
17353
|
-
// ? index < visibleHeaders.length - 1
|
|
17354
|
-
// ? '0 $spacing-03'
|
|
17355
|
-
// : '0 20px 0 $spacing-03'
|
|
17356
|
-
// : '0 $spacing-03 0 20px',
|
|
17357
|
-
// }}
|
|
17351
|
+
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
|
|
17358
17352
|
isSortedDesc: column.isSortedDesc,
|
|
17359
17353
|
unsortable: column.unsortable
|
|
17360
17354
|
}, {
|
|
@@ -17404,7 +17398,7 @@ function Table({
|
|
|
17404
17398
|
children: cell.render('Cell')
|
|
17405
17399
|
}), void 0);
|
|
17406
17400
|
})
|
|
17407
|
-
}), void 0),
|
|
17401
|
+
}), void 0), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$3, Object.assign({
|
|
17408
17402
|
subRow: true
|
|
17409
17403
|
}, {
|
|
17410
17404
|
children: [leftAddOnCells.map((_, index) => jsx("td", {}, index)), jsxs(React.Fragment, {
|
|
@@ -17437,7 +17431,7 @@ function Table({
|
|
|
17437
17431
|
}), void 0)
|
|
17438
17432
|
}), void 0)]
|
|
17439
17433
|
}, cell.column.id)]
|
|
17440
|
-
}), cell.column.id)) : null]
|
|
17434
|
+
}), cell.column.id)) : null, ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row))]
|
|
17441
17435
|
}, row.id);
|
|
17442
17436
|
})
|
|
17443
17437
|
}), void 0)]
|
|
@@ -17485,7 +17479,7 @@ const TableColumn = _a => {
|
|
|
17485
17479
|
return jsx("div", {}, void 0);
|
|
17486
17480
|
};
|
|
17487
17481
|
|
|
17488
|
-
var _jsxFileName$f = "
|
|
17482
|
+
var _jsxFileName$f = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/DateColumn.js";
|
|
17489
17483
|
|
|
17490
17484
|
const DateColumn = ({
|
|
17491
17485
|
value
|
|
@@ -17520,12 +17514,11 @@ var uncurryThis$9 = functionUncurryThis;
|
|
|
17520
17514
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
17521
17515
|
var thisNumberValue$1 = uncurryThis$9(1.0.valueOf);
|
|
17522
17516
|
|
|
17523
|
-
var global$7 = global$U;
|
|
17524
17517
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
|
|
17525
17518
|
var toString$7 = toString$h;
|
|
17526
17519
|
var requireObjectCoercible$3 = requireObjectCoercible$a;
|
|
17527
17520
|
|
|
17528
|
-
var RangeError$2 =
|
|
17521
|
+
var $RangeError$2 = RangeError;
|
|
17529
17522
|
|
|
17530
17523
|
// `String.prototype.repeat` method implementation
|
|
17531
17524
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
@@ -17533,21 +17526,20 @@ var stringRepeat = function repeat(count) {
|
|
|
17533
17526
|
var str = toString$7(requireObjectCoercible$3(this));
|
|
17534
17527
|
var result = '';
|
|
17535
17528
|
var n = toIntegerOrInfinity$3(count);
|
|
17536
|
-
if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
|
|
17529
|
+
if (n < 0 || n == Infinity) throw $RangeError$2('Wrong number of repetitions');
|
|
17537
17530
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
17538
17531
|
return result;
|
|
17539
17532
|
};
|
|
17540
17533
|
|
|
17541
17534
|
var $$6 = _export;
|
|
17542
|
-
var global$6 = global$U;
|
|
17543
17535
|
var uncurryThis$8 = functionUncurryThis;
|
|
17544
17536
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
|
|
17545
17537
|
var thisNumberValue = thisNumberValue$1;
|
|
17546
17538
|
var $repeat = stringRepeat;
|
|
17547
17539
|
var fails$5 = fails$t;
|
|
17548
17540
|
|
|
17549
|
-
var RangeError$1 =
|
|
17550
|
-
var String
|
|
17541
|
+
var $RangeError$1 = RangeError;
|
|
17542
|
+
var $String = String;
|
|
17551
17543
|
var floor$3 = Math.floor;
|
|
17552
17544
|
var repeat = uncurryThis$8($repeat);
|
|
17553
17545
|
var stringSlice$6 = uncurryThis$8(''.slice);
|
|
@@ -17595,7 +17587,7 @@ var dataToString = function (data) {
|
|
|
17595
17587
|
var s = '';
|
|
17596
17588
|
while (--index >= 0) {
|
|
17597
17589
|
if (s !== '' || index === 0 || data[index] !== 0) {
|
|
17598
|
-
var t = String
|
|
17590
|
+
var t = $String(data[index]);
|
|
17599
17591
|
s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
|
|
17600
17592
|
}
|
|
17601
17593
|
} return s;
|
|
@@ -17623,10 +17615,10 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
17623
17615
|
var e, z, j, k;
|
|
17624
17616
|
|
|
17625
17617
|
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
17626
|
-
if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits');
|
|
17618
|
+
if (fractDigits < 0 || fractDigits > 20) throw $RangeError$1('Incorrect fraction digits');
|
|
17627
17619
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
17628
17620
|
if (number != number) return 'NaN';
|
|
17629
|
-
if (number <= -1e21 || number >= 1e21) return String
|
|
17621
|
+
if (number <= -1e21 || number >= 1e21) return $String(number);
|
|
17630
17622
|
if (number < 0) {
|
|
17631
17623
|
sign = '-';
|
|
17632
17624
|
number = -number;
|
|
@@ -17670,7 +17662,7 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
17670
17662
|
}
|
|
17671
17663
|
});
|
|
17672
17664
|
|
|
17673
|
-
var global$
|
|
17665
|
+
var global$3 = global$s;
|
|
17674
17666
|
var fails$4 = fails$t;
|
|
17675
17667
|
var uncurryThis$7 = functionUncurryThis;
|
|
17676
17668
|
var toString$6 = toString$h;
|
|
@@ -17678,8 +17670,8 @@ var trim = stringTrim.trim;
|
|
|
17678
17670
|
var whitespaces$1 = whitespaces$4;
|
|
17679
17671
|
|
|
17680
17672
|
var charAt$6 = uncurryThis$7(''.charAt);
|
|
17681
|
-
var n$ParseFloat = global$
|
|
17682
|
-
var Symbol$5 = global$
|
|
17673
|
+
var n$ParseFloat = global$3.parseFloat;
|
|
17674
|
+
var Symbol$5 = global$3.Symbol;
|
|
17683
17675
|
var ITERATOR$2 = Symbol$5 && Symbol$5.iterator;
|
|
17684
17676
|
var FORCED = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity
|
|
17685
17677
|
// MS Edge 18- broken with boxed symbols
|
|
@@ -18168,7 +18160,7 @@ const PriceColumn = props => {
|
|
|
18168
18160
|
return addThousandSeparator(param);
|
|
18169
18161
|
};
|
|
18170
18162
|
|
|
18171
|
-
var _jsxFileName$e = "
|
|
18163
|
+
var _jsxFileName$e = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowExpanderColumn.js";
|
|
18172
18164
|
const rowExpanderColumn = {
|
|
18173
18165
|
id: 'expander',
|
|
18174
18166
|
Header: () => null,
|
|
@@ -18210,7 +18202,7 @@ const rowExpanderColumn = {
|
|
|
18210
18202
|
unsortable: true
|
|
18211
18203
|
};
|
|
18212
18204
|
|
|
18213
|
-
var _jsxFileName$d = "
|
|
18205
|
+
var _jsxFileName$d = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowMenuColumn.js";
|
|
18214
18206
|
|
|
18215
18207
|
const rowMenuColumn = (options, icon, config) => ({
|
|
18216
18208
|
id: 'menu',
|
|
@@ -18454,7 +18446,7 @@ const rowMenuColumn = (options, icon, config) => ({
|
|
|
18454
18446
|
unsortable: true
|
|
18455
18447
|
});
|
|
18456
18448
|
|
|
18457
|
-
var _jsxFileName$c = "
|
|
18449
|
+
var _jsxFileName$c = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowSelectionColumn.js";
|
|
18458
18450
|
const rowSelectionColumn = {
|
|
18459
18451
|
id: 'selection',
|
|
18460
18452
|
Header: ({
|
|
@@ -18746,7 +18738,7 @@ PageDialog.defaultProps = {
|
|
|
18746
18738
|
};
|
|
18747
18739
|
|
|
18748
18740
|
const _excluded$1 = ["children"];
|
|
18749
|
-
var _jsxFileName$b = "
|
|
18741
|
+
var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
|
|
18750
18742
|
const overlayShow = keyframes({
|
|
18751
18743
|
'0%': {
|
|
18752
18744
|
opacity: 0
|
|
@@ -18918,7 +18910,7 @@ const TemplateAlertFunction = props => {
|
|
|
18918
18910
|
if (!props.onOpenAutoFocus) {
|
|
18919
18911
|
e.preventDefault();
|
|
18920
18912
|
} else {
|
|
18921
|
-
props
|
|
18913
|
+
props == null ? void 0 : props.onOpenAutoFocus();
|
|
18922
18914
|
}
|
|
18923
18915
|
},
|
|
18924
18916
|
__self: undefined,
|
|
@@ -19039,8 +19031,8 @@ const TemplateAlertFunction = props => {
|
|
|
19039
19031
|
size: "sm",
|
|
19040
19032
|
onClick: buttonConfirm,
|
|
19041
19033
|
buttonType: props.dialogType,
|
|
19042
|
-
disabled: props
|
|
19043
|
-
}, props
|
|
19034
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19035
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19044
19036
|
__self: undefined,
|
|
19045
19037
|
__source: {
|
|
19046
19038
|
fileName: _jsxFileName$b,
|
|
@@ -19059,12 +19051,12 @@ const TemplateAlertFunction = props => {
|
|
|
19059
19051
|
size: "sm",
|
|
19060
19052
|
onClick: buttonCancel,
|
|
19061
19053
|
css: {
|
|
19062
|
-
color: props.dialogType === 'negative' && !(props
|
|
19054
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
19063
19055
|
flex: props.isMobile && 1
|
|
19064
19056
|
},
|
|
19065
19057
|
buttonType: "ghost",
|
|
19066
|
-
disabled: props
|
|
19067
|
-
}, props
|
|
19058
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19059
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
19068
19060
|
__self: undefined,
|
|
19069
19061
|
__source: {
|
|
19070
19062
|
fileName: _jsxFileName$b,
|
|
@@ -19086,8 +19078,8 @@ const TemplateAlertFunction = props => {
|
|
|
19086
19078
|
css: {
|
|
19087
19079
|
flex: props.isMobile && 1
|
|
19088
19080
|
},
|
|
19089
|
-
disabled: props
|
|
19090
|
-
}, props
|
|
19081
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19082
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19091
19083
|
__self: undefined,
|
|
19092
19084
|
__source: {
|
|
19093
19085
|
fileName: _jsxFileName$b,
|
|
@@ -19246,8 +19238,8 @@ function AlertDialog(props) {
|
|
|
19246
19238
|
css: {
|
|
19247
19239
|
flex: props.isMobile && 1
|
|
19248
19240
|
},
|
|
19249
|
-
disabled: props
|
|
19250
|
-
}, props
|
|
19241
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19242
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19251
19243
|
__self: this,
|
|
19252
19244
|
__source: {
|
|
19253
19245
|
fileName: _jsxFileName$b,
|
|
@@ -19266,12 +19258,12 @@ function AlertDialog(props) {
|
|
|
19266
19258
|
size: "sm",
|
|
19267
19259
|
onClick: props.onCancel,
|
|
19268
19260
|
css: {
|
|
19269
|
-
color: props.dialogType === 'negative' && !(props
|
|
19261
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
19270
19262
|
flex: props.isMobile && 1
|
|
19271
19263
|
},
|
|
19272
19264
|
buttonType: "ghost",
|
|
19273
|
-
disabled: props
|
|
19274
|
-
}, props
|
|
19265
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19266
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
19275
19267
|
__self: this,
|
|
19276
19268
|
__source: {
|
|
19277
19269
|
fileName: _jsxFileName$b,
|
|
@@ -19293,8 +19285,8 @@ function AlertDialog(props) {
|
|
|
19293
19285
|
css: {
|
|
19294
19286
|
flex: props.isMobile && 1
|
|
19295
19287
|
},
|
|
19296
|
-
disabled: props
|
|
19297
|
-
}, props
|
|
19288
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19289
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19298
19290
|
__self: this,
|
|
19299
19291
|
__source: {
|
|
19300
19292
|
fileName: _jsxFileName$b,
|
|
@@ -19344,7 +19336,7 @@ const AlertDialogCancel = ADialog.Cancel;
|
|
|
19344
19336
|
const AlertDialogConfirm = ADialog.Action;
|
|
19345
19337
|
|
|
19346
19338
|
const _excluded = ["side", "align", "children"];
|
|
19347
|
-
var _jsxFileName$a = "
|
|
19339
|
+
var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
|
|
19348
19340
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
19349
19341
|
const slideUpAndFade = keyframes({
|
|
19350
19342
|
'0%': {
|
|
@@ -19680,7 +19672,6 @@ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
|
19680
19672
|
}
|
|
19681
19673
|
};
|
|
19682
19674
|
|
|
19683
|
-
var global$4 = global$U;
|
|
19684
19675
|
var bind$2 = functionBindContext;
|
|
19685
19676
|
var call$2 = functionCall;
|
|
19686
19677
|
var toObject = toObject$7;
|
|
@@ -19692,7 +19683,7 @@ var createProperty = createProperty$2;
|
|
|
19692
19683
|
var getIterator$1 = getIterator$3;
|
|
19693
19684
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
19694
19685
|
|
|
19695
|
-
var Array
|
|
19686
|
+
var $Array = Array;
|
|
19696
19687
|
|
|
19697
19688
|
// `Array.from` method implementation
|
|
19698
19689
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -19707,7 +19698,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
19707
19698
|
var index = 0;
|
|
19708
19699
|
var length, result, step, iterator, next, value;
|
|
19709
19700
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
19710
|
-
if (iteratorMethod && !(this
|
|
19701
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
19711
19702
|
iterator = getIterator$1(O, iteratorMethod);
|
|
19712
19703
|
next = iterator.next;
|
|
19713
19704
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -19717,7 +19708,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
19717
19708
|
}
|
|
19718
19709
|
} else {
|
|
19719
19710
|
length = lengthOfArrayLike(O);
|
|
19720
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array
|
|
19711
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
19721
19712
|
for (;length > index; index++) {
|
|
19722
19713
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
19723
19714
|
createProperty(result, index, value);
|
|
@@ -19728,7 +19719,6 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
19728
19719
|
};
|
|
19729
19720
|
|
|
19730
19721
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
19731
|
-
var global$3 = global$U;
|
|
19732
19722
|
var uncurryThis$2 = functionUncurryThis;
|
|
19733
19723
|
|
|
19734
19724
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
@@ -19745,7 +19735,7 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
19745
19735
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
19746
19736
|
var baseMinusTMin = base - tMin;
|
|
19747
19737
|
|
|
19748
|
-
var RangeError =
|
|
19738
|
+
var $RangeError = RangeError;
|
|
19749
19739
|
var exec$1 = uncurryThis$2(regexSeparators.exec);
|
|
19750
19740
|
var floor$1 = Math.floor;
|
|
19751
19741
|
var fromCharCode = String.fromCharCode;
|
|
@@ -19860,7 +19850,7 @@ var encode = function (input) {
|
|
|
19860
19850
|
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
19861
19851
|
var handledCPCountPlusOne = handledCPCount + 1;
|
|
19862
19852
|
if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
|
|
19863
|
-
throw RangeError(OVERFLOW_ERROR);
|
|
19853
|
+
throw $RangeError(OVERFLOW_ERROR);
|
|
19864
19854
|
}
|
|
19865
19855
|
|
|
19866
19856
|
delta += (m - n) * handledCPCountPlusOne;
|
|
@@ -19869,7 +19859,7 @@ var encode = function (input) {
|
|
|
19869
19859
|
for (i = 0; i < input.length; i++) {
|
|
19870
19860
|
currentValue = input[i];
|
|
19871
19861
|
if (currentValue < n && ++delta > maxInt) {
|
|
19872
|
-
throw RangeError(OVERFLOW_ERROR);
|
|
19862
|
+
throw $RangeError(OVERFLOW_ERROR);
|
|
19873
19863
|
}
|
|
19874
19864
|
if (currentValue == n) {
|
|
19875
19865
|
// Represent delta as a generalized variable-length integer.
|
|
@@ -19919,7 +19909,7 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
19919
19909
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
19920
19910
|
|
|
19921
19911
|
var $$4 = _export;
|
|
19922
|
-
var global$2 = global$
|
|
19912
|
+
var global$2 = global$s;
|
|
19923
19913
|
var call$1 = functionCall;
|
|
19924
19914
|
var uncurryThis$1 = functionUncurryThis;
|
|
19925
19915
|
var DESCRIPTORS$1 = descriptors;
|
|
@@ -20281,7 +20271,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
20281
20271
|
};
|
|
20282
20272
|
|
|
20283
20273
|
if (isCallable(nativeFetch)) {
|
|
20284
|
-
$$4({ global: true, enumerable: true,
|
|
20274
|
+
$$4({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
|
|
20285
20275
|
fetch: function fetch(input /* , init */) {
|
|
20286
20276
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
20287
20277
|
}
|
|
@@ -20297,7 +20287,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
20297
20287
|
RequestPrototype.constructor = RequestConstructor;
|
|
20298
20288
|
RequestConstructor.prototype = RequestPrototype;
|
|
20299
20289
|
|
|
20300
|
-
$$4({ global: true, constructor: true,
|
|
20290
|
+
$$4({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
|
|
20301
20291
|
Request: RequestConstructor
|
|
20302
20292
|
});
|
|
20303
20293
|
}
|
|
@@ -20313,7 +20303,7 @@ var web_urlSearchParams_constructor = {
|
|
|
20313
20303
|
var $$3 = _export;
|
|
20314
20304
|
var DESCRIPTORS = descriptors;
|
|
20315
20305
|
var USE_NATIVE_URL = nativeUrl;
|
|
20316
|
-
var global$1 = global$
|
|
20306
|
+
var global$1 = global$s;
|
|
20317
20307
|
var bind = functionBindContext;
|
|
20318
20308
|
var uncurryThis = functionUncurryThis;
|
|
20319
20309
|
var defineBuiltIn = defineBuiltIn$b;
|
|
@@ -21436,7 +21426,7 @@ function upload({
|
|
|
21436
21426
|
return promise;
|
|
21437
21427
|
}
|
|
21438
21428
|
|
|
21439
|
-
var _jsxFileName$9 = "
|
|
21429
|
+
var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
|
|
21440
21430
|
const Input$2 = styled('input', {
|
|
21441
21431
|
display: 'none !important'
|
|
21442
21432
|
});
|
|
@@ -21776,7 +21766,7 @@ const Upload = ({
|
|
|
21776
21766
|
file: fileProgress,
|
|
21777
21767
|
indexReplace: indexReplace.current,
|
|
21778
21768
|
isReplace: indexReplace.current !== null
|
|
21779
|
-
}))
|
|
21769
|
+
})) == null ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) == null ? void 0 : _onChange$then.catch(error => setError(error.message));
|
|
21780
21770
|
}
|
|
21781
21771
|
}).then(result => {
|
|
21782
21772
|
var _onChange2, _onChange2$then;
|
|
@@ -21798,7 +21788,7 @@ const Upload = ({
|
|
|
21798
21788
|
file: fileSuccess,
|
|
21799
21789
|
indexReplace: indexReplace.current,
|
|
21800
21790
|
isReplace: indexReplace.current !== null
|
|
21801
|
-
}))
|
|
21791
|
+
})) == null ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) == null ? void 0 : _onChange2$then.catch(error => setError(error.message));
|
|
21802
21792
|
}).catch(error => {
|
|
21803
21793
|
var _onChange3, _onChange3$then;
|
|
21804
21794
|
|
|
@@ -21819,7 +21809,7 @@ const Upload = ({
|
|
|
21819
21809
|
file: fileError,
|
|
21820
21810
|
indexReplace: indexReplace.current,
|
|
21821
21811
|
isReplace: indexReplace.current !== null
|
|
21822
|
-
}))
|
|
21812
|
+
})) == null ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) == null ? void 0 : _onChange3$then.catch(error => setError(error.message));
|
|
21823
21813
|
});
|
|
21824
21814
|
} else {
|
|
21825
21815
|
var _onChange4, _onChange4$then;
|
|
@@ -21829,7 +21819,7 @@ const Upload = ({
|
|
|
21829
21819
|
file: newFile,
|
|
21830
21820
|
indexReplace: indexReplace.current,
|
|
21831
21821
|
isReplace: indexReplace.current !== null
|
|
21832
|
-
}))
|
|
21822
|
+
})) == null ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) == null ? void 0 : _onChange4$then.catch(error => setError(error.message));
|
|
21833
21823
|
}
|
|
21834
21824
|
|
|
21835
21825
|
if (indexReplace.current !== null) {
|
|
@@ -21856,9 +21846,9 @@ const Upload = ({
|
|
|
21856
21846
|
}
|
|
21857
21847
|
|
|
21858
21848
|
function handleCrop() {
|
|
21859
|
-
if (completedCrop
|
|
21849
|
+
if (completedCrop != null && completedCrop.width && completedCrop != null && completedCrop.height && imgRef.current) {
|
|
21860
21850
|
imgPreview(imgRef.current, completedCrop, 1, 0, ratio).then(blob => {
|
|
21861
|
-
const file = new File([blob], fileState
|
|
21851
|
+
const file = new File([blob], fileState == null ? void 0 : fileState.name, {
|
|
21862
21852
|
type: blob.type
|
|
21863
21853
|
});
|
|
21864
21854
|
handleUpload([file]);
|
|
@@ -21926,22 +21916,22 @@ const Upload = ({
|
|
|
21926
21916
|
function handleOpenFile(file) {
|
|
21927
21917
|
var _String, _file$name;
|
|
21928
21918
|
|
|
21929
|
-
let extension = (_String = String(file
|
|
21919
|
+
let extension = (_String = String(file == null ? void 0 : (_file$name = file.name) == null ? void 0 : _file$name.split('.').pop())) == null ? void 0 : _String.toLowerCase();
|
|
21930
21920
|
|
|
21931
21921
|
if (extension === 'pdf') {
|
|
21932
|
-
window.open(file
|
|
21922
|
+
window.open(file == null ? void 0 : file.url);
|
|
21933
21923
|
} else {
|
|
21934
|
-
request.get(file
|
|
21924
|
+
request.get(file == null ? void 0 : file.url).end((err, res) => {
|
|
21935
21925
|
if (err) {
|
|
21936
21926
|
console.error(err.message);
|
|
21937
21927
|
}
|
|
21938
21928
|
|
|
21939
|
-
if (res && res
|
|
21940
|
-
const response = res
|
|
21929
|
+
if (res && res != null && res.ok) {
|
|
21930
|
+
const response = res == null ? void 0 : res.text;
|
|
21941
21931
|
const url = window.URL.createObjectURL(new Blob([response]));
|
|
21942
21932
|
const link = document.createElement('a');
|
|
21943
21933
|
link.href = url;
|
|
21944
|
-
link.setAttribute('download', file
|
|
21934
|
+
link.setAttribute('download', file == null ? void 0 : file.name);
|
|
21945
21935
|
document.body.appendChild(link);
|
|
21946
21936
|
link.click();
|
|
21947
21937
|
document.body.removeChild(link);
|
|
@@ -22011,12 +22001,12 @@ const Upload = ({
|
|
|
22011
22001
|
}
|
|
22012
22002
|
|
|
22013
22003
|
const renderPicture = () => {
|
|
22014
|
-
return fileList
|
|
22015
|
-
if ((item
|
|
22004
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
22005
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
22016
22006
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
22017
22007
|
key: index,
|
|
22018
|
-
progress: item
|
|
22019
|
-
loading: item
|
|
22008
|
+
progress: item == null ? void 0 : item.percent,
|
|
22009
|
+
loading: item == null ? void 0 : item.loading,
|
|
22020
22010
|
__self: undefined,
|
|
22021
22011
|
__source: {
|
|
22022
22012
|
fileName: _jsxFileName$9,
|
|
@@ -22091,14 +22081,14 @@ const Upload = ({
|
|
|
22091
22081
|
};
|
|
22092
22082
|
|
|
22093
22083
|
const renderFile = () => {
|
|
22094
|
-
return fileList
|
|
22084
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
22095
22085
|
var _item$name;
|
|
22096
22086
|
|
|
22097
|
-
if ((item
|
|
22087
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
22098
22088
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
22099
22089
|
key: index,
|
|
22100
|
-
progress: item
|
|
22101
|
-
loading: item
|
|
22090
|
+
progress: item == null ? void 0 : item.percent,
|
|
22091
|
+
loading: item == null ? void 0 : item.loading,
|
|
22102
22092
|
__self: undefined,
|
|
22103
22093
|
__source: {
|
|
22104
22094
|
fileName: _jsxFileName$9,
|
|
@@ -22165,7 +22155,7 @@ const Upload = ({
|
|
|
22165
22155
|
lineNumber: 611,
|
|
22166
22156
|
columnNumber: 17
|
|
22167
22157
|
}
|
|
22168
|
-
}, ".", item
|
|
22158
|
+
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
22169
22159
|
label: item.name,
|
|
22170
22160
|
__self: undefined,
|
|
22171
22161
|
__source: {
|
|
@@ -22337,7 +22327,7 @@ const Upload = ({
|
|
|
22337
22327
|
lineNumber: 686,
|
|
22338
22328
|
columnNumber: 11
|
|
22339
22329
|
}
|
|
22340
|
-
}, children
|
|
22330
|
+
}, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
22341
22331
|
__self: this,
|
|
22342
22332
|
__source: {
|
|
22343
22333
|
fileName: _jsxFileName$9,
|
|
@@ -22371,7 +22361,7 @@ const Upload = ({
|
|
|
22371
22361
|
lineNumber: 692,
|
|
22372
22362
|
columnNumber: 17
|
|
22373
22363
|
}
|
|
22374
|
-
}, placeholder
|
|
22364
|
+
}, placeholder != null ? placeholder : `Pilih atau letakkan berkas di sini`)))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
22375
22365
|
__self: this,
|
|
22376
22366
|
__source: {
|
|
22377
22367
|
fileName: _jsxFileName$9,
|
|
@@ -22519,12 +22509,12 @@ const Upload = ({
|
|
|
22519
22509
|
lineNumber: 731,
|
|
22520
22510
|
columnNumber: 15
|
|
22521
22511
|
}
|
|
22522
|
-
}, `${completedCrop
|
|
22512
|
+
}, `${completedCrop != null && completedCrop.width && completedCrop != null && completedCrop.height ? 'Potong & Simpan' : 'Simpan'}`)))));
|
|
22523
22513
|
}
|
|
22524
22514
|
|
|
22525
22515
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
22526
22516
|
direction: "row",
|
|
22527
|
-
gap: (fileList
|
|
22517
|
+
gap: (fileList == null ? void 0 : fileList.length) <= 1 && max === 1 ? 0 : 3,
|
|
22528
22518
|
wrap: "wrap",
|
|
22529
22519
|
css: {
|
|
22530
22520
|
userSelect: 'none'
|
|
@@ -22561,151 +22551,151 @@ Upload.defaultProps = {
|
|
|
22561
22551
|
disabled: false
|
|
22562
22552
|
};
|
|
22563
22553
|
Upload.propTypes = {
|
|
22564
|
-
/**
|
|
22565
|
-
Placeholder label of upload.
|
|
22554
|
+
/**
|
|
22555
|
+
Placeholder label of upload.
|
|
22566
22556
|
*/
|
|
22567
22557
|
placeholder: PropTypes.string,
|
|
22568
22558
|
|
|
22569
|
-
/**
|
|
22570
|
-
Disabled state of upload.
|
|
22559
|
+
/**
|
|
22560
|
+
Disabled state of upload.
|
|
22571
22561
|
*/
|
|
22572
22562
|
disabled: PropTypes.bool,
|
|
22573
22563
|
|
|
22574
|
-
/**
|
|
22575
|
-
Built-in stylesheets, support for two types.
|
|
22564
|
+
/**
|
|
22565
|
+
Built-in stylesheets, support for two types.
|
|
22576
22566
|
*/
|
|
22577
22567
|
listType: PropTypes.oneOf(['file', 'picture']),
|
|
22578
22568
|
|
|
22579
|
-
/**
|
|
22580
|
-
Whether to support selected multiple file.
|
|
22569
|
+
/**
|
|
22570
|
+
Whether to support selected multiple file.
|
|
22581
22571
|
*/
|
|
22582
22572
|
multiple: PropTypes.bool,
|
|
22583
22573
|
|
|
22584
|
-
/**
|
|
22585
|
-
List of files to be uploaded.
|
|
22574
|
+
/**
|
|
22575
|
+
List of files to be uploaded.
|
|
22586
22576
|
*/
|
|
22587
22577
|
fileList: PropTypes.array,
|
|
22588
22578
|
|
|
22589
|
-
/**
|
|
22590
|
-
A callback function, can be executed when uploading state is changing.
|
|
22579
|
+
/**
|
|
22580
|
+
A callback function, can be executed when uploading state is changing.
|
|
22591
22581
|
*/
|
|
22592
22582
|
onChange: PropTypes.func,
|
|
22593
22583
|
|
|
22594
|
-
/**
|
|
22595
|
-
A callback function, can be executed when uploading in progress.
|
|
22596
|
-
`(progress) => void`
|
|
22584
|
+
/**
|
|
22585
|
+
A callback function, can be executed when uploading in progress.
|
|
22586
|
+
`(progress) => void`
|
|
22597
22587
|
*/
|
|
22598
22588
|
onProgress: PropTypes.func,
|
|
22599
22589
|
|
|
22600
|
-
/**
|
|
22601
|
-
A callback function, can be executed when uploading is success.
|
|
22602
|
-
`(response) => void`
|
|
22590
|
+
/**
|
|
22591
|
+
A callback function, can be executed when uploading is success.
|
|
22592
|
+
`(response) => void`
|
|
22603
22593
|
*/
|
|
22604
22594
|
onSuccess: PropTypes.func,
|
|
22605
22595
|
|
|
22606
|
-
/**
|
|
22607
|
-
A callback function, can be executed when uploading is error.
|
|
22608
|
-
`(error, response) => void`
|
|
22596
|
+
/**
|
|
22597
|
+
A callback function, can be executed when uploading is error.
|
|
22598
|
+
`(error, response) => void`
|
|
22609
22599
|
*/
|
|
22610
22600
|
onError: PropTypes.func,
|
|
22611
22601
|
|
|
22612
|
-
/**
|
|
22613
|
-
A callback function, can be executed when preview icon in picture type is clicked.
|
|
22602
|
+
/**
|
|
22603
|
+
A callback function, can be executed when preview icon in picture type is clicked.
|
|
22614
22604
|
*/
|
|
22615
22605
|
onPreview: PropTypes.func,
|
|
22616
22606
|
|
|
22617
|
-
/**
|
|
22618
|
-
A callback function, can be executed when remove icon is clicked.
|
|
22607
|
+
/**
|
|
22608
|
+
A callback function, can be executed when remove icon is clicked.
|
|
22619
22609
|
*/
|
|
22620
22610
|
onRemove: PropTypes.func,
|
|
22621
22611
|
|
|
22622
|
-
/**
|
|
22623
|
-
A custom element inside upload container.
|
|
22612
|
+
/**
|
|
22613
|
+
A custom element inside upload container.
|
|
22624
22614
|
*/
|
|
22625
22615
|
children: PropTypes.element,
|
|
22626
22616
|
|
|
22627
|
-
/**
|
|
22628
|
-
Limit the number of uploaded files.
|
|
22617
|
+
/**
|
|
22618
|
+
Limit the number of uploaded files.
|
|
22629
22619
|
*/
|
|
22630
22620
|
max: PropTypes.number,
|
|
22631
22621
|
|
|
22632
|
-
/**
|
|
22633
|
-
Limit file type of upload.
|
|
22622
|
+
/**
|
|
22623
|
+
Limit file type of upload.
|
|
22634
22624
|
*/
|
|
22635
22625
|
accept: PropTypes.string,
|
|
22636
22626
|
|
|
22637
|
-
/**
|
|
22638
|
-
Custom label for replace button.
|
|
22627
|
+
/**
|
|
22628
|
+
Custom label for replace button.
|
|
22639
22629
|
*/
|
|
22640
22630
|
replaceLabel: PropTypes.string,
|
|
22641
22631
|
|
|
22642
|
-
/**
|
|
22643
|
-
Custom width of upload container.
|
|
22632
|
+
/**
|
|
22633
|
+
Custom width of upload container.
|
|
22644
22634
|
*/
|
|
22645
22635
|
width: PropTypes.number,
|
|
22646
22636
|
|
|
22647
|
-
/**
|
|
22648
|
-
Custom height of upload container.
|
|
22637
|
+
/**
|
|
22638
|
+
Custom height of upload container.
|
|
22649
22639
|
*/
|
|
22650
22640
|
height: PropTypes.number,
|
|
22651
22641
|
|
|
22652
|
-
/**
|
|
22653
|
-
Additional css.
|
|
22642
|
+
/**
|
|
22643
|
+
Additional css.
|
|
22654
22644
|
*/
|
|
22655
22645
|
css: PropTypes.object,
|
|
22656
22646
|
|
|
22657
|
-
/**
|
|
22658
|
-
Custom title header of cropper modal.
|
|
22647
|
+
/**
|
|
22648
|
+
Custom title header of cropper modal.
|
|
22659
22649
|
*/
|
|
22660
22650
|
cropperTitle: PropTypes.string,
|
|
22661
22651
|
|
|
22662
|
-
/**
|
|
22663
|
-
Add image cropper on upload.
|
|
22652
|
+
/**
|
|
22653
|
+
Add image cropper on upload.
|
|
22664
22654
|
*/
|
|
22665
22655
|
showCropper: PropTypes.bool,
|
|
22666
22656
|
|
|
22667
|
-
/**
|
|
22668
|
-
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.
|
|
22657
|
+
/**
|
|
22658
|
+
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.
|
|
22669
22659
|
*/
|
|
22670
22660
|
ratio: PropTypes.number,
|
|
22671
22661
|
|
|
22672
|
-
/**
|
|
22673
|
-
Can set error message to the upload.
|
|
22662
|
+
/**
|
|
22663
|
+
Can set error message to the upload.
|
|
22674
22664
|
*/
|
|
22675
22665
|
errorMessage: PropTypes.string,
|
|
22676
22666
|
|
|
22677
|
-
/**
|
|
22678
|
-
Progress of upload process.
|
|
22667
|
+
/**
|
|
22668
|
+
Progress of upload process.
|
|
22679
22669
|
*/
|
|
22680
22670
|
progress: PropTypes.number,
|
|
22681
22671
|
|
|
22682
|
-
/**
|
|
22683
|
-
Auto increment progress of upload process.
|
|
22672
|
+
/**
|
|
22673
|
+
Auto increment progress of upload process.
|
|
22684
22674
|
*/
|
|
22685
22675
|
loading: PropTypes.bool,
|
|
22686
22676
|
|
|
22687
|
-
/**
|
|
22688
|
-
API upload url, allows components to automatically upload directly to API service.
|
|
22677
|
+
/**
|
|
22678
|
+
API upload url, allows components to automatically upload directly to API service.
|
|
22689
22679
|
*/
|
|
22690
22680
|
action: PropTypes.string,
|
|
22691
22681
|
|
|
22692
|
-
/**
|
|
22693
|
-
Contains an authentication token for upload API.
|
|
22682
|
+
/**
|
|
22683
|
+
Contains an authentication token for upload API.
|
|
22694
22684
|
*/
|
|
22695
22685
|
token: PropTypes.string,
|
|
22696
22686
|
|
|
22697
|
-
/**
|
|
22698
|
-
Referencing the headers key to attach the token.
|
|
22687
|
+
/**
|
|
22688
|
+
Referencing the headers key to attach the token.
|
|
22699
22689
|
*/
|
|
22700
22690
|
tokenKey: PropTypes.string,
|
|
22701
22691
|
|
|
22702
|
-
/**
|
|
22703
|
-
Referencing the key to attach the file to be sent.
|
|
22692
|
+
/**
|
|
22693
|
+
Referencing the key to attach the file to be sent.
|
|
22704
22694
|
*/
|
|
22705
22695
|
reqKey: PropTypes.string,
|
|
22706
22696
|
|
|
22707
|
-
/**
|
|
22708
|
-
Referencing the key to get the file from the API response.
|
|
22697
|
+
/**
|
|
22698
|
+
Referencing the key to get the file from the API response.
|
|
22709
22699
|
*/
|
|
22710
22700
|
resKey: PropTypes.string
|
|
22711
22701
|
};
|
|
@@ -22937,7 +22927,7 @@ const Device = props => {
|
|
|
22937
22927
|
|
|
22938
22928
|
Device.displayName = 'DevicePreview';
|
|
22939
22929
|
|
|
22940
|
-
var _jsxFileName$8 = "
|
|
22930
|
+
var _jsxFileName$8 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/InputColorPicker.js";
|
|
22941
22931
|
const Separator$1 = styled('div', {
|
|
22942
22932
|
height: 20,
|
|
22943
22933
|
width: 1,
|
|
@@ -22949,10 +22939,10 @@ function InputColorPicker(props) {
|
|
|
22949
22939
|
const [isPopover, setIsPopover] = useState(false);
|
|
22950
22940
|
|
|
22951
22941
|
function getColor() {
|
|
22952
|
-
const color = props
|
|
22942
|
+
const color = props == null ? void 0 : props.color;
|
|
22953
22943
|
|
|
22954
22944
|
if (typeof color === 'string') {
|
|
22955
|
-
return color
|
|
22945
|
+
return color == null ? void 0 : color.toUpperCase();
|
|
22956
22946
|
}
|
|
22957
22947
|
|
|
22958
22948
|
return `rgba(${color.r},${color.g},${color.b},${color.a})`;
|
|
@@ -23049,28 +23039,28 @@ function InputColorPicker(props) {
|
|
|
23049
23039
|
|
|
23050
23040
|
InputColorPicker.displayName = 'InputColorPicker';
|
|
23051
23041
|
InputColorPicker.propTypes = {
|
|
23052
|
-
/**
|
|
23053
|
-
Color code to be displayed.
|
|
23042
|
+
/**
|
|
23043
|
+
Color code to be displayed.
|
|
23054
23044
|
*/
|
|
23055
23045
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
23056
23046
|
|
|
23057
|
-
/**
|
|
23058
|
-
Additional color list.
|
|
23047
|
+
/**
|
|
23048
|
+
Additional color list.
|
|
23059
23049
|
*/
|
|
23060
23050
|
presetColors: PropTypes.array,
|
|
23061
23051
|
|
|
23062
|
-
/**
|
|
23063
|
-
Change event handler.
|
|
23052
|
+
/**
|
|
23053
|
+
Change event handler.
|
|
23064
23054
|
*/
|
|
23065
23055
|
onChange: PropTypes.func,
|
|
23066
23056
|
|
|
23067
|
-
/**
|
|
23068
|
-
Add preset color event handler.
|
|
23057
|
+
/**
|
|
23058
|
+
Add preset color event handler.
|
|
23069
23059
|
*/
|
|
23070
23060
|
onAddColor: PropTypes.func,
|
|
23071
23061
|
|
|
23072
|
-
/**
|
|
23073
|
-
Disable opacity selector.
|
|
23062
|
+
/**
|
|
23063
|
+
Disable opacity selector.
|
|
23074
23064
|
*/
|
|
23075
23065
|
disableAlpha: PropTypes.bool
|
|
23076
23066
|
};
|
|
@@ -23080,7 +23070,7 @@ InputColorPicker.defaultProps = {
|
|
|
23080
23070
|
|
|
23081
23071
|
var img$d = "data:image/gif;base64,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";
|
|
23082
23072
|
|
|
23083
|
-
var _jsxFileName$7 = "
|
|
23073
|
+
var _jsxFileName$7 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/components/ColorMap.js";
|
|
23084
23074
|
const Container$6 = styled('div', {
|
|
23085
23075
|
userSelect: 'none',
|
|
23086
23076
|
margin: 'auto',
|
|
@@ -25044,7 +25034,7 @@ function ColorMap({
|
|
|
25044
25034
|
})));
|
|
25045
25035
|
}
|
|
25046
25036
|
|
|
25047
|
-
var _jsxFileName$6 = "
|
|
25037
|
+
var _jsxFileName$6 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/components/ColorFields.js";
|
|
25048
25038
|
const CheckBoard = styled(Flex$1, {
|
|
25049
25039
|
background: '$bgwhite',
|
|
25050
25040
|
border: '1px solid #E5E7EB',
|
|
@@ -25245,7 +25235,7 @@ function ColorFields({
|
|
|
25245
25235
|
}, "%")));
|
|
25246
25236
|
}
|
|
25247
25237
|
|
|
25248
|
-
var _jsxFileName$5 = "
|
|
25238
|
+
var _jsxFileName$5 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/ColorPicker.js";
|
|
25249
25239
|
const Container$5 = styled(Flex$1, {
|
|
25250
25240
|
background: '$white',
|
|
25251
25241
|
padding: 16,
|
|
@@ -25748,28 +25738,28 @@ function ColorPicker({
|
|
|
25748
25738
|
}
|
|
25749
25739
|
|
|
25750
25740
|
ColorPicker.propTypes = {
|
|
25751
|
-
/**
|
|
25752
|
-
Color code to be displayed.
|
|
25741
|
+
/**
|
|
25742
|
+
Color code to be displayed.
|
|
25753
25743
|
*/
|
|
25754
25744
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
25755
25745
|
|
|
25756
|
-
/**
|
|
25757
|
-
Additional color list
|
|
25746
|
+
/**
|
|
25747
|
+
Additional color list
|
|
25758
25748
|
*/
|
|
25759
25749
|
presetColors: PropTypes.array,
|
|
25760
25750
|
|
|
25761
|
-
/**
|
|
25762
|
-
Change event handler
|
|
25751
|
+
/**
|
|
25752
|
+
Change event handler
|
|
25763
25753
|
*/
|
|
25764
25754
|
onChange: PropTypes.func,
|
|
25765
25755
|
|
|
25766
|
-
/**
|
|
25767
|
-
Add preset color event handler
|
|
25756
|
+
/**
|
|
25757
|
+
Add preset color event handler
|
|
25768
25758
|
*/
|
|
25769
25759
|
onAddColor: PropTypes.func,
|
|
25770
25760
|
|
|
25771
|
-
/**
|
|
25772
|
-
Disable opacity selector
|
|
25761
|
+
/**
|
|
25762
|
+
Disable opacity selector
|
|
25773
25763
|
*/
|
|
25774
25764
|
disableAlpha: PropTypes.bool
|
|
25775
25765
|
};
|
|
@@ -25778,7 +25768,7 @@ ColorPicker.defaultProps = {
|
|
|
25778
25768
|
};
|
|
25779
25769
|
var ColorPicker$1 = ColorWrap(ColorPicker);
|
|
25780
25770
|
|
|
25781
|
-
var _jsxFileName$4 = "
|
|
25771
|
+
var _jsxFileName$4 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/stepWizard/StepWizard.js";
|
|
25782
25772
|
const StepWizardContext = /*#__PURE__*/React__default.createContext({});
|
|
25783
25773
|
const Stepper = StepWizard$1;
|
|
25784
25774
|
Stepper.displayName = 'Stepper';
|
|
@@ -25922,9 +25912,9 @@ const Navigation = props => {
|
|
|
25922
25912
|
lineNumber: 119,
|
|
25923
25913
|
columnNumber: 30
|
|
25924
25914
|
}
|
|
25925
|
-
}), data[i - 1].title, ((_data = data[i - 1])
|
|
25915
|
+
}), data[i - 1].title, ((_data = data[i - 1]) == null ? void 0 : _data.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
25926
25916
|
align: "center",
|
|
25927
|
-
label: (_data2 = data[i - 1])
|
|
25917
|
+
label: (_data2 = data[i - 1]) == null ? void 0 : _data2.tooltipsContents,
|
|
25928
25918
|
__self: undefined,
|
|
25929
25919
|
__source: {
|
|
25930
25920
|
fileName: _jsxFileName$4,
|
|
@@ -25995,10 +25985,10 @@ const Navigation = props => {
|
|
|
25995
25985
|
lineNumber: 155,
|
|
25996
25986
|
columnNumber: 15
|
|
25997
25987
|
}
|
|
25998
|
-
}, isActive ? data[i - 1].title : ''), isActive && ((_data3 = data[i - 1])
|
|
25988
|
+
}, isActive ? data[i - 1].title : ''), isActive && ((_data3 = data[i - 1]) == null ? void 0 : _data3.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
25999
25989
|
align: "center",
|
|
26000
25990
|
withClick: true,
|
|
26001
|
-
label: (_data4 = data[i - 1])
|
|
25991
|
+
label: (_data4 = data[i - 1]) == null ? void 0 : _data4.tooltipsContents,
|
|
26002
25992
|
__self: undefined,
|
|
26003
25993
|
__source: {
|
|
26004
25994
|
fileName: _jsxFileName$4,
|
|
@@ -26079,9 +26069,7 @@ const Default = props => {
|
|
|
26079
26069
|
}));
|
|
26080
26070
|
}, [props.hide]);
|
|
26081
26071
|
useEffect(() => {
|
|
26082
|
-
|
|
26083
|
-
|
|
26084
|
-
props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
|
|
26072
|
+
props == null ? void 0 : props.onChangeVisibility == null ? void 0 : props.onChangeVisibility(state.hide);
|
|
26085
26073
|
}, [state.hide]);
|
|
26086
26074
|
|
|
26087
26075
|
const toogleVisibility = value => {
|
|
@@ -26093,13 +26081,13 @@ const Default = props => {
|
|
|
26093
26081
|
const getIsComplete = currentStep => {
|
|
26094
26082
|
var _state$isComplete;
|
|
26095
26083
|
|
|
26096
|
-
return state
|
|
26084
|
+
return state == null ? void 0 : (_state$isComplete = state.isComplete) == null ? void 0 : _state$isComplete[currentStep - 1];
|
|
26097
26085
|
};
|
|
26098
26086
|
|
|
26099
26087
|
const getTitleStep = currentStep => {
|
|
26100
26088
|
var _props$navContents, _props$navContents2;
|
|
26101
26089
|
|
|
26102
|
-
return props
|
|
26090
|
+
return props == null ? void 0 : (_props$navContents = props.navContents) == null ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) == null ? void 0 : _props$navContents2.title;
|
|
26103
26091
|
};
|
|
26104
26092
|
|
|
26105
26093
|
const setState = value => {
|
|
@@ -26151,11 +26139,11 @@ const Default = props => {
|
|
|
26151
26139
|
}, /*#__PURE__*/React__default.createElement(StepWizardContext.Provider, {
|
|
26152
26140
|
value: {
|
|
26153
26141
|
toogleVisibility,
|
|
26154
|
-
isHide: state
|
|
26142
|
+
isHide: state == null ? void 0 : state.hide,
|
|
26155
26143
|
setComplete,
|
|
26156
26144
|
setState,
|
|
26157
26145
|
state,
|
|
26158
|
-
SW: state
|
|
26146
|
+
SW: state == null ? void 0 : state.SW,
|
|
26159
26147
|
forbidClickNav: props.forbidClickNav,
|
|
26160
26148
|
titles: props.titles,
|
|
26161
26149
|
isMobile: props.isMobile,
|
|
@@ -26201,7 +26189,7 @@ const StepWizard = props => {
|
|
|
26201
26189
|
}), void 0);
|
|
26202
26190
|
};
|
|
26203
26191
|
|
|
26204
|
-
var _jsxFileName$3 = "
|
|
26192
|
+
var _jsxFileName$3 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tableOfContent/transition.js";
|
|
26205
26193
|
|
|
26206
26194
|
function Collapse({
|
|
26207
26195
|
children,
|
|
@@ -26246,7 +26234,7 @@ Collapse.defaultProps = {
|
|
|
26246
26234
|
isOpen: false
|
|
26247
26235
|
};
|
|
26248
26236
|
|
|
26249
|
-
var _jsxFileName$2 = "
|
|
26237
|
+
var _jsxFileName$2 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tableOfContent/TableOfContent.js";
|
|
26250
26238
|
const DesktopContainer = styled(Flex$1, {
|
|
26251
26239
|
display: 'none',
|
|
26252
26240
|
'& .active-scroll-spy': {
|
|
@@ -26327,10 +26315,10 @@ function Content({
|
|
|
26327
26315
|
function getDatasets(content, activeId, isCollapse) {
|
|
26328
26316
|
const datasets = [];
|
|
26329
26317
|
|
|
26330
|
-
for (let i = 0; i < (content
|
|
26318
|
+
for (let i = 0; i < (content == null ? void 0 : content.length); i++) {
|
|
26331
26319
|
var _content$i;
|
|
26332
26320
|
|
|
26333
|
-
if (((_content$i = content[i])
|
|
26321
|
+
if (((_content$i = content[i]) == null ? void 0 : _content$i.id) === activeId) {
|
|
26334
26322
|
datasets.unshift(content[i]);
|
|
26335
26323
|
} else {
|
|
26336
26324
|
datasets.push(content[i]);
|
|
@@ -26370,7 +26358,7 @@ function Content({
|
|
|
26370
26358
|
lineNumber: 99,
|
|
26371
26359
|
columnNumber: 7
|
|
26372
26360
|
}
|
|
26373
|
-
}, (_getDatasets = getDatasets(content, activeId, isCollapse))
|
|
26361
|
+
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) == null ? void 0 : _getDatasets.map((item, index) => {
|
|
26374
26362
|
return /*#__PURE__*/React__default.createElement(List, {
|
|
26375
26363
|
key: index,
|
|
26376
26364
|
__self: this,
|
|
@@ -26387,11 +26375,11 @@ function Content({
|
|
|
26387
26375
|
marginLeft: '-4px !important',
|
|
26388
26376
|
borderLeftWidth: '4px !important',
|
|
26389
26377
|
borderLeftStyle: 'solid !important',
|
|
26390
|
-
borderLeftColor: `${(item
|
|
26378
|
+
borderLeftColor: `${(item == null ? void 0 : item.id) === activeId ? colors$4.primary500 : 'transparent'} !important`,
|
|
26391
26379
|
paddingLeft: '16px !important',
|
|
26392
26380
|
minHeight: 25
|
|
26393
26381
|
},
|
|
26394
|
-
"data-to-scrollspy-id": item
|
|
26382
|
+
"data-to-scrollspy-id": item == null ? void 0 : item.id,
|
|
26395
26383
|
__self: this,
|
|
26396
26384
|
__source: {
|
|
26397
26385
|
fileName: _jsxFileName$2,
|
|
@@ -26400,8 +26388,8 @@ function Content({
|
|
|
26400
26388
|
}
|
|
26401
26389
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
26402
26390
|
className: "link-title",
|
|
26403
|
-
active: (item
|
|
26404
|
-
href: `#${item
|
|
26391
|
+
active: (item == null ? void 0 : item.id) === activeId,
|
|
26392
|
+
href: `#${item == null ? void 0 : item.id}`,
|
|
26405
26393
|
onClick: e => {
|
|
26406
26394
|
e.preventDefault();
|
|
26407
26395
|
const target = window.document.getElementById(e.currentTarget.href.split('#')[1]);
|
|
@@ -26430,7 +26418,7 @@ function Content({
|
|
|
26430
26418
|
lineNumber: 117,
|
|
26431
26419
|
columnNumber: 17
|
|
26432
26420
|
}
|
|
26433
|
-
}, item
|
|
26421
|
+
}, item == null ? void 0 : item.title), item == null ? void 0 : item.icon));
|
|
26434
26422
|
})));
|
|
26435
26423
|
}
|
|
26436
26424
|
|
|
@@ -26532,23 +26520,23 @@ TableOfContent.defaultProps = {
|
|
|
26532
26520
|
isDialog: false
|
|
26533
26521
|
};
|
|
26534
26522
|
TableOfContent.propTypes = {
|
|
26535
|
-
/**
|
|
26536
|
-
List of contents containing the title and id of a content.
|
|
26523
|
+
/**
|
|
26524
|
+
List of contents containing the title and id of a content.
|
|
26537
26525
|
*/
|
|
26538
26526
|
content: PropTypes.array,
|
|
26539
26527
|
|
|
26540
|
-
/**
|
|
26541
|
-
Components devoted to mobile viewing only.
|
|
26528
|
+
/**
|
|
26529
|
+
Components devoted to mobile viewing only.
|
|
26542
26530
|
*/
|
|
26543
26531
|
isMobile: PropTypes.bool,
|
|
26544
26532
|
|
|
26545
|
-
/**
|
|
26546
|
-
Condition when table of content is inside a component dialog.
|
|
26533
|
+
/**
|
|
26534
|
+
Condition when table of content is inside a component dialog.
|
|
26547
26535
|
*/
|
|
26548
26536
|
isDialog: PropTypes.bool,
|
|
26549
26537
|
|
|
26550
|
-
/**
|
|
26551
|
-
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
26538
|
+
/**
|
|
26539
|
+
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
26552
26540
|
*/
|
|
26553
26541
|
activeId: PropTypes.string
|
|
26554
26542
|
};
|
|
@@ -26568,7 +26556,7 @@ TableOfContentPage.defaultProps = {
|
|
|
26568
26556
|
useBoxMethod: true
|
|
26569
26557
|
};
|
|
26570
26558
|
|
|
26571
|
-
var _jsxFileName$1 = "
|
|
26559
|
+
var _jsxFileName$1 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/editableTable/transition.js";
|
|
26572
26560
|
|
|
26573
26561
|
function Collapalse({
|
|
26574
26562
|
children,
|
|
@@ -29323,7 +29311,7 @@ function CheckboxTable(props) {
|
|
|
29323
29311
|
css: {
|
|
29324
29312
|
marginRight: 12,
|
|
29325
29313
|
cursor: 'pointer',
|
|
29326
|
-
display: ((_a = originalCell === null || originalCell === void 0 ? void 0 : originalCell.detail) === null || _a === void 0 ? void 0 : _a.length) ? 'flex' : 'none'
|
|
29314
|
+
display: ((_a = originalCell === null || originalCell === void 0 ? void 0 : originalCell.detail) === null || _a === void 0 ? void 0 : _a.length) ? 'flex' : 'none !important'
|
|
29327
29315
|
},
|
|
29328
29316
|
onClick: () => {
|
|
29329
29317
|
if (!Object.keys(state.expanded).includes(row.id)) {
|
|
@@ -29488,18 +29476,42 @@ const Container = styled('div', {
|
|
|
29488
29476
|
}), 1000)
|
|
29489
29477
|
}
|
|
29490
29478
|
});
|
|
29479
|
+
const MaxLengthText = styled('p', {
|
|
29480
|
+
fontSize: 12,
|
|
29481
|
+
fontWeight: 400,
|
|
29482
|
+
color: '$textSecondary',
|
|
29483
|
+
textAlign: 'right',
|
|
29484
|
+
padding: '$spacing-03',
|
|
29485
|
+
variants: {
|
|
29486
|
+
warning: {
|
|
29487
|
+
true: {
|
|
29488
|
+
color: '$textRed'
|
|
29489
|
+
}
|
|
29490
|
+
}
|
|
29491
|
+
}
|
|
29492
|
+
});
|
|
29491
29493
|
function ContentEditor(props) {
|
|
29494
|
+
var _a, _b, _c, _d;
|
|
29495
|
+
|
|
29492
29496
|
const {
|
|
29493
29497
|
css,
|
|
29498
|
+
editorState: value,
|
|
29494
29499
|
onChange,
|
|
29500
|
+
toolbar,
|
|
29495
29501
|
editorHeight,
|
|
29496
|
-
uploadCallback
|
|
29502
|
+
uploadCallback,
|
|
29503
|
+
maxLength
|
|
29497
29504
|
} = props;
|
|
29498
29505
|
const [editorState, setEditorState] = useState(() => EditorState.createEmpty());
|
|
29506
|
+
useEffect(() => {
|
|
29507
|
+
if (value) {
|
|
29508
|
+
setEditorState(value);
|
|
29509
|
+
}
|
|
29510
|
+
}, [value]);
|
|
29499
29511
|
|
|
29500
29512
|
function onEditorStateChange(e) {
|
|
29501
29513
|
setEditorState(e);
|
|
29502
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
29514
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
29503
29515
|
}
|
|
29504
29516
|
|
|
29505
29517
|
const config = {
|
|
@@ -29507,41 +29519,32 @@ function ContentEditor(props) {
|
|
|
29507
29519
|
history: {
|
|
29508
29520
|
options: ['undo', 'redo'],
|
|
29509
29521
|
undo: {
|
|
29510
|
-
icon: img$4
|
|
29511
|
-
className: undefined
|
|
29522
|
+
icon: img$4
|
|
29512
29523
|
},
|
|
29513
29524
|
redo: {
|
|
29514
|
-
icon: img$3
|
|
29515
|
-
className: undefined
|
|
29525
|
+
icon: img$3
|
|
29516
29526
|
}
|
|
29517
29527
|
},
|
|
29518
29528
|
inline: {
|
|
29519
29529
|
options: ['bold', 'italic', 'underline', 'strikethrough', 'monospace'],
|
|
29520
29530
|
bold: {
|
|
29521
|
-
icon: img$9
|
|
29522
|
-
className: undefined
|
|
29531
|
+
icon: img$9
|
|
29523
29532
|
},
|
|
29524
29533
|
italic: {
|
|
29525
|
-
icon: img$8
|
|
29526
|
-
className: undefined
|
|
29534
|
+
icon: img$8
|
|
29527
29535
|
},
|
|
29528
29536
|
underline: {
|
|
29529
|
-
icon: img$7
|
|
29530
|
-
className: undefined
|
|
29537
|
+
icon: img$7
|
|
29531
29538
|
},
|
|
29532
29539
|
strikethrough: {
|
|
29533
|
-
icon: img$6
|
|
29534
|
-
className: undefined
|
|
29540
|
+
icon: img$6
|
|
29535
29541
|
},
|
|
29536
29542
|
monospace: {
|
|
29537
|
-
icon: img$a
|
|
29538
|
-
className: undefined
|
|
29543
|
+
icon: img$a
|
|
29539
29544
|
}
|
|
29540
29545
|
},
|
|
29541
29546
|
remove: {
|
|
29542
|
-
icon: img$5
|
|
29543
|
-
className: undefined,
|
|
29544
|
-
component: undefined
|
|
29547
|
+
icon: img$5
|
|
29545
29548
|
},
|
|
29546
29549
|
blockType: {
|
|
29547
29550
|
inDropdown: true,
|
|
@@ -29575,22 +29578,26 @@ function ContentEditor(props) {
|
|
|
29575
29578
|
uploadCallback: uploadCallback
|
|
29576
29579
|
}
|
|
29577
29580
|
};
|
|
29578
|
-
return
|
|
29581
|
+
return jsxs(Container, Object.assign({
|
|
29579
29582
|
css: css,
|
|
29580
29583
|
editorHeight: editorHeight
|
|
29581
29584
|
}, {
|
|
29582
|
-
children: jsx(Editor, {
|
|
29585
|
+
children: [jsx(Editor, {
|
|
29583
29586
|
wrapperClassName: "wrapper-root",
|
|
29584
29587
|
editorClassName: "editor-root",
|
|
29585
29588
|
toolbarClassName: "toolbar-root",
|
|
29586
29589
|
editorState: editorState,
|
|
29587
29590
|
onEditorStateChange: onEditorStateChange,
|
|
29588
|
-
toolbar: config
|
|
29589
|
-
}, void 0)
|
|
29591
|
+
toolbar: toolbar ? toolbar(config) : config
|
|
29592
|
+
}, void 0), maxLength && typeof maxLength === 'number' && jsx(MaxLengthText, Object.assign({
|
|
29593
|
+
warning: ((_b = (_a = editorState === null || editorState === void 0 ? void 0 : editorState.getCurrentContent()) === null || _a === void 0 ? void 0 : _a.getPlainText()) === null || _b === void 0 ? void 0 : _b.length) > maxLength
|
|
29594
|
+
}, {
|
|
29595
|
+
children: `${(_d = (_c = editorState === null || editorState === void 0 ? void 0 : editorState.getCurrentContent()) === null || _c === void 0 ? void 0 : _c.getPlainText()) === null || _d === void 0 ? void 0 : _d.length} / ${maxLength}`
|
|
29596
|
+
}), void 0)]
|
|
29590
29597
|
}), void 0);
|
|
29591
29598
|
}
|
|
29592
29599
|
|
|
29593
|
-
var _jsxFileName = "
|
|
29600
|
+
var _jsxFileName = "/home/alfiantryp/Project/majoo-ui/packages/react/src/colors/Colors.js";
|
|
29594
29601
|
const StyledPaper = styled(Paper, {
|
|
29595
29602
|
borderRadius: '10px 10px 0 0',
|
|
29596
29603
|
padding: 15,
|