@abgov/jsonforms-components 1.1.0 → 1.2.0
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/index.esm.js
CHANGED
|
@@ -15,7 +15,7 @@ import range from 'lodash/range';
|
|
|
15
15
|
|
|
16
16
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
17
17
|
|
|
18
|
-
var fails$
|
|
18
|
+
var fails$i = function (exec) {
|
|
19
19
|
try {
|
|
20
20
|
return !!exec();
|
|
21
21
|
} catch (error) {
|
|
@@ -23,9 +23,9 @@ var fails$h = function (exec) {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
var fails$
|
|
26
|
+
var fails$h = fails$i;
|
|
27
27
|
|
|
28
|
-
var functionBindNative = !fails$
|
|
28
|
+
var functionBindNative = !fails$h(function () {
|
|
29
29
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
30
30
|
var test = (function () { /* empty */ }).bind();
|
|
31
31
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -35,12 +35,12 @@ var functionBindNative = !fails$g(function () {
|
|
|
35
35
|
var NATIVE_BIND$2 = functionBindNative;
|
|
36
36
|
|
|
37
37
|
var FunctionPrototype$2 = Function.prototype;
|
|
38
|
-
var call$
|
|
39
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
38
|
+
var call$c = FunctionPrototype$2.call;
|
|
39
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$c, call$c);
|
|
40
40
|
|
|
41
41
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
42
42
|
return function () {
|
|
43
|
-
return call$
|
|
43
|
+
return call$c.apply(fn, arguments);
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -54,14 +54,14 @@ var classofRaw$1 = function (it) {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
var uncurryThis$f = functionUncurryThis;
|
|
57
|
-
var fails$
|
|
57
|
+
var fails$g = fails$i;
|
|
58
58
|
var classof$4 = classofRaw$1;
|
|
59
59
|
|
|
60
60
|
var $Object$4 = Object;
|
|
61
61
|
var split = uncurryThis$f(''.split);
|
|
62
62
|
|
|
63
63
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
64
|
-
var indexedObject = fails$
|
|
64
|
+
var indexedObject = fails$g(function () {
|
|
65
65
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
66
66
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
67
67
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -209,13 +209,13 @@ var engineV8Version = version;
|
|
|
209
209
|
|
|
210
210
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
211
211
|
var V8_VERSION = engineV8Version;
|
|
212
|
-
var fails$
|
|
212
|
+
var fails$f = fails$i;
|
|
213
213
|
var global$c = global$f;
|
|
214
214
|
|
|
215
215
|
var $String$5 = global$c.String;
|
|
216
216
|
|
|
217
217
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
218
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
218
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
|
|
219
219
|
var symbol = Symbol('symbol detection');
|
|
220
220
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
221
221
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -235,7 +235,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
235
235
|
|
|
236
236
|
var global$b = global$f;
|
|
237
237
|
var shared$3 = shared$4;
|
|
238
|
-
var hasOwn$
|
|
238
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
239
239
|
var uid$1 = uid$2;
|
|
240
240
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
241
241
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
@@ -245,8 +245,8 @@ var WellKnownSymbolsStore = shared$3('wks');
|
|
|
245
245
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
246
246
|
|
|
247
247
|
var wellKnownSymbol$c = function (name) {
|
|
248
|
-
if (!hasOwn$
|
|
249
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$
|
|
248
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
249
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$a(Symbol$1, name)
|
|
250
250
|
? Symbol$1[name]
|
|
251
251
|
: createWellKnownSymbol('Symbol.' + name);
|
|
252
252
|
} return WellKnownSymbolsStore[name];
|
|
@@ -276,27 +276,27 @@ var $String$4 = String;
|
|
|
276
276
|
var $TypeError$7 = TypeError;
|
|
277
277
|
|
|
278
278
|
// `Assert: Type(argument) is Object`
|
|
279
|
-
var anObject$
|
|
279
|
+
var anObject$9 = function (argument) {
|
|
280
280
|
if (isObject$7(argument)) return argument;
|
|
281
281
|
throw new $TypeError$7($String$4(argument) + ' is not an object');
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
var objectDefineProperties = {};
|
|
285
285
|
|
|
286
|
-
var fails$
|
|
286
|
+
var fails$e = fails$i;
|
|
287
287
|
|
|
288
288
|
// Detect IE8's incomplete defineProperty implementation
|
|
289
|
-
var descriptors = !fails$
|
|
289
|
+
var descriptors = !fails$e(function () {
|
|
290
290
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
291
291
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
292
292
|
});
|
|
293
293
|
|
|
294
294
|
var DESCRIPTORS$a = descriptors;
|
|
295
|
-
var fails$
|
|
295
|
+
var fails$d = fails$i;
|
|
296
296
|
|
|
297
297
|
// V8 ~ Chrome 36-
|
|
298
298
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
299
|
-
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$
|
|
299
|
+
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$d(function () {
|
|
300
300
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
301
301
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
302
302
|
value: 42,
|
|
@@ -318,11 +318,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
var DESCRIPTORS$9 = descriptors;
|
|
321
|
-
var fails$
|
|
321
|
+
var fails$c = fails$i;
|
|
322
322
|
var createElement = documentCreateElement$2;
|
|
323
323
|
|
|
324
324
|
// Thanks to IE8 for its funny defineProperty
|
|
325
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$
|
|
325
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$c(function () {
|
|
326
326
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
327
327
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
328
328
|
get: function () { return 7; }
|
|
@@ -331,10 +331,10 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$b(function () {
|
|
|
331
331
|
|
|
332
332
|
var NATIVE_BIND$1 = functionBindNative;
|
|
333
333
|
|
|
334
|
-
var call$
|
|
334
|
+
var call$b = Function.prototype.call;
|
|
335
335
|
|
|
336
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
|
337
|
-
return call$
|
|
336
|
+
var functionCall = NATIVE_BIND$1 ? call$b.bind(call$b) : function () {
|
|
337
|
+
return call$b.apply(call$b, arguments);
|
|
338
338
|
};
|
|
339
339
|
|
|
340
340
|
var global$9 = global$f;
|
|
@@ -354,7 +354,7 @@ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
|
354
354
|
|
|
355
355
|
var getBuiltIn$2 = getBuiltIn$3;
|
|
356
356
|
var isCallable$e = isCallable$h;
|
|
357
|
-
var isPrototypeOf$
|
|
357
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
358
358
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
359
359
|
|
|
360
360
|
var $Object$2 = Object;
|
|
@@ -363,7 +363,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
363
363
|
return typeof it == 'symbol';
|
|
364
364
|
} : function (it) {
|
|
365
365
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
366
|
-
return isCallable$e($Symbol) && isPrototypeOf$
|
|
366
|
+
return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
var $String$3 = String;
|
|
@@ -397,7 +397,7 @@ var getMethod$2 = function (V, P) {
|
|
|
397
397
|
return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
|
|
398
398
|
};
|
|
399
399
|
|
|
400
|
-
var call$
|
|
400
|
+
var call$a = functionCall;
|
|
401
401
|
var isCallable$c = isCallable$h;
|
|
402
402
|
var isObject$5 = isObject$8;
|
|
403
403
|
|
|
@@ -407,13 +407,13 @@ var $TypeError$5 = TypeError;
|
|
|
407
407
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
408
408
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
409
409
|
var fn, val;
|
|
410
|
-
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$
|
|
411
|
-
if (isCallable$c(fn = input.valueOf) && !isObject$5(val = call$
|
|
412
|
-
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$
|
|
410
|
+
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
411
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
|
|
412
|
+
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
413
413
|
throw new $TypeError$5("Can't convert object to primitive value");
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
var call$
|
|
416
|
+
var call$9 = functionCall;
|
|
417
417
|
var isObject$4 = isObject$8;
|
|
418
418
|
var isSymbol$1 = isSymbol$2;
|
|
419
419
|
var getMethod$1 = getMethod$2;
|
|
@@ -431,7 +431,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
431
431
|
var result;
|
|
432
432
|
if (exoticToPrim) {
|
|
433
433
|
if (pref === undefined) pref = 'default';
|
|
434
|
-
result = call$
|
|
434
|
+
result = call$9(exoticToPrim, input, pref);
|
|
435
435
|
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
436
436
|
throw new $TypeError$4("Can't convert object to primitive value");
|
|
437
437
|
}
|
|
@@ -452,7 +452,7 @@ var toPropertyKey$2 = function (argument) {
|
|
|
452
452
|
var DESCRIPTORS$8 = descriptors;
|
|
453
453
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
454
454
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
455
|
-
var anObject$
|
|
455
|
+
var anObject$8 = anObject$9;
|
|
456
456
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
457
457
|
|
|
458
458
|
var $TypeError$3 = TypeError;
|
|
@@ -467,9 +467,9 @@ var WRITABLE = 'writable';
|
|
|
467
467
|
// `Object.defineProperty` method
|
|
468
468
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
469
469
|
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
470
|
-
anObject$
|
|
470
|
+
anObject$8(O);
|
|
471
471
|
P = toPropertyKey$1(P);
|
|
472
|
-
anObject$
|
|
472
|
+
anObject$8(Attributes);
|
|
473
473
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
474
474
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
475
475
|
if (current && current[WRITABLE]) {
|
|
@@ -482,9 +482,9 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
482
482
|
}
|
|
483
483
|
} return $defineProperty(O, P, Attributes);
|
|
484
484
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
485
|
-
anObject$
|
|
485
|
+
anObject$8(O);
|
|
486
486
|
P = toPropertyKey$1(P);
|
|
487
|
-
anObject$
|
|
487
|
+
anObject$8(Attributes);
|
|
488
488
|
if (IE8_DOM_DEFINE$1) try {
|
|
489
489
|
return $defineProperty(O, P, Attributes);
|
|
490
490
|
} catch (error) { /* empty */ }
|
|
@@ -583,7 +583,7 @@ var arrayIncludes = {
|
|
|
583
583
|
var hiddenKeys$4 = {};
|
|
584
584
|
|
|
585
585
|
var uncurryThis$b = functionUncurryThis;
|
|
586
|
-
var hasOwn$
|
|
586
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
587
587
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
588
588
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
589
589
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
@@ -595,9 +595,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
595
595
|
var i = 0;
|
|
596
596
|
var result = [];
|
|
597
597
|
var key;
|
|
598
|
-
for (key in O) !hasOwn$
|
|
598
|
+
for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$1(result, key);
|
|
599
599
|
// Don't enum bug & hidden keys
|
|
600
|
-
while (names.length > i) if (hasOwn$
|
|
600
|
+
while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
|
|
601
601
|
~indexOf$1(result, key) || push$1(result, key);
|
|
602
602
|
}
|
|
603
603
|
return result;
|
|
@@ -627,7 +627,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
627
627
|
var DESCRIPTORS$7 = descriptors;
|
|
628
628
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
629
629
|
var definePropertyModule$3 = objectDefineProperty;
|
|
630
|
-
var anObject$
|
|
630
|
+
var anObject$7 = anObject$9;
|
|
631
631
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
632
632
|
var objectKeys$1 = objectKeys$2;
|
|
633
633
|
|
|
@@ -635,7 +635,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
635
635
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
636
636
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
637
637
|
objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
638
|
-
anObject$
|
|
638
|
+
anObject$7(O);
|
|
639
639
|
var props = toIndexedObject$2(Properties);
|
|
640
640
|
var keys = objectKeys$1(Properties);
|
|
641
641
|
var length = keys.length;
|
|
@@ -659,7 +659,7 @@ var sharedKey$3 = function (key) {
|
|
|
659
659
|
};
|
|
660
660
|
|
|
661
661
|
/* global ActiveXObject -- old IE, WSH */
|
|
662
|
-
var anObject$
|
|
662
|
+
var anObject$6 = anObject$9;
|
|
663
663
|
var definePropertiesModule = objectDefineProperties;
|
|
664
664
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
665
665
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -733,7 +733,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
733
733
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
734
734
|
var result;
|
|
735
735
|
if (O !== null) {
|
|
736
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
736
|
+
EmptyConstructor[PROTOTYPE] = anObject$6(O);
|
|
737
737
|
result = new EmptyConstructor();
|
|
738
738
|
EmptyConstructor[PROTOTYPE] = null;
|
|
739
739
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -796,7 +796,7 @@ var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
|
796
796
|
var global$7 = global$f;
|
|
797
797
|
var isObject$3 = isObject$8;
|
|
798
798
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
799
|
-
var hasOwn$
|
|
799
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
800
800
|
var shared$1 = sharedStore.exports;
|
|
801
801
|
var sharedKey$1 = sharedKey$3;
|
|
802
802
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
@@ -842,16 +842,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
842
842
|
var STATE = sharedKey$1('state');
|
|
843
843
|
hiddenKeys$1[STATE] = true;
|
|
844
844
|
set = function (it, metadata) {
|
|
845
|
-
if (hasOwn$
|
|
845
|
+
if (hasOwn$8(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
846
846
|
metadata.facade = it;
|
|
847
847
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
848
848
|
return metadata;
|
|
849
849
|
};
|
|
850
850
|
get = function (it) {
|
|
851
|
-
return hasOwn$
|
|
851
|
+
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
852
852
|
};
|
|
853
853
|
has = function (it) {
|
|
854
|
-
return hasOwn$
|
|
854
|
+
return hasOwn$8(it, STATE);
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
857
|
|
|
@@ -882,12 +882,12 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
882
882
|
} : $propertyIsEnumerable;
|
|
883
883
|
|
|
884
884
|
var DESCRIPTORS$5 = descriptors;
|
|
885
|
-
var call$
|
|
885
|
+
var call$8 = functionCall;
|
|
886
886
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
887
887
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
888
888
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
889
889
|
var toPropertyKey = toPropertyKey$2;
|
|
890
|
-
var hasOwn$
|
|
890
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
891
891
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
892
892
|
|
|
893
893
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -901,19 +901,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor : f
|
|
|
901
901
|
if (IE8_DOM_DEFINE) try {
|
|
902
902
|
return $getOwnPropertyDescriptor(O, P);
|
|
903
903
|
} catch (error) { /* empty */ }
|
|
904
|
-
if (hasOwn$
|
|
904
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
905
905
|
};
|
|
906
906
|
|
|
907
907
|
var makeBuiltIn$3 = {exports: {}};
|
|
908
908
|
|
|
909
909
|
var DESCRIPTORS$4 = descriptors;
|
|
910
|
-
var hasOwn$
|
|
910
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
911
911
|
|
|
912
912
|
var FunctionPrototype$1 = Function.prototype;
|
|
913
913
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
914
914
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
915
915
|
|
|
916
|
-
var EXISTS = hasOwn$
|
|
916
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
917
917
|
// additional protection from minified / mangled / dropped function names
|
|
918
918
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
919
919
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
@@ -940,9 +940,9 @@ if (!isCallable$a(store.inspectSource)) {
|
|
|
940
940
|
var inspectSource$1 = store.inspectSource;
|
|
941
941
|
|
|
942
942
|
var uncurryThis$9 = functionUncurryThis;
|
|
943
|
-
var fails$
|
|
943
|
+
var fails$b = fails$i;
|
|
944
944
|
var isCallable$9 = isCallable$h;
|
|
945
|
-
var hasOwn$
|
|
945
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
946
946
|
var DESCRIPTORS$3 = descriptors;
|
|
947
947
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
948
948
|
var inspectSource = inspectSource$1;
|
|
@@ -957,7 +957,7 @@ var stringSlice$5 = uncurryThis$9(''.slice);
|
|
|
957
957
|
var replace$3 = uncurryThis$9(''.replace);
|
|
958
958
|
var join = uncurryThis$9([].join);
|
|
959
959
|
|
|
960
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$
|
|
960
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$b(function () {
|
|
961
961
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
962
962
|
});
|
|
963
963
|
|
|
@@ -969,21 +969,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
969
969
|
}
|
|
970
970
|
if (options && options.getter) name = 'get ' + name;
|
|
971
971
|
if (options && options.setter) name = 'set ' + name;
|
|
972
|
-
if (!hasOwn$
|
|
972
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
973
973
|
if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
974
974
|
else value.name = name;
|
|
975
975
|
}
|
|
976
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
976
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
977
977
|
defineProperty$4(value, 'length', { value: options.arity });
|
|
978
978
|
}
|
|
979
979
|
try {
|
|
980
|
-
if (options && hasOwn$
|
|
980
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
981
981
|
if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
|
|
982
982
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
983
983
|
} else if (value.prototype) value.prototype = undefined;
|
|
984
984
|
} catch (error) { /* empty */ }
|
|
985
985
|
var state = enforceInternalState(value);
|
|
986
|
-
if (!hasOwn$
|
|
986
|
+
if (!hasOwn$5(state, 'source')) {
|
|
987
987
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
988
988
|
} return value;
|
|
989
989
|
};
|
|
@@ -999,7 +999,7 @@ var definePropertyModule$1 = objectDefineProperty;
|
|
|
999
999
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
1000
1000
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1001
1001
|
|
|
1002
|
-
var defineBuiltIn$
|
|
1002
|
+
var defineBuiltIn$5 = function (O, key, value, options) {
|
|
1003
1003
|
if (!options) options = {};
|
|
1004
1004
|
var simple = options.enumerable;
|
|
1005
1005
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -1045,18 +1045,18 @@ var getBuiltIn = getBuiltIn$3;
|
|
|
1045
1045
|
var uncurryThis$8 = functionUncurryThis;
|
|
1046
1046
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1047
1047
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1048
|
-
var anObject$
|
|
1048
|
+
var anObject$5 = anObject$9;
|
|
1049
1049
|
|
|
1050
1050
|
var concat$2 = uncurryThis$8([].concat);
|
|
1051
1051
|
|
|
1052
1052
|
// all object keys, includes non-enumerable and symbols
|
|
1053
1053
|
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1054
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1054
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
1055
1055
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1056
1056
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1057
1057
|
};
|
|
1058
1058
|
|
|
1059
|
-
var hasOwn$
|
|
1059
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1060
1060
|
var ownKeys = ownKeys$1;
|
|
1061
1061
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1062
1062
|
var definePropertyModule = objectDefineProperty;
|
|
@@ -1067,13 +1067,13 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
1067
1067
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1068
1068
|
for (var i = 0; i < keys.length; i++) {
|
|
1069
1069
|
var key = keys[i];
|
|
1070
|
-
if (!hasOwn$
|
|
1070
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
1071
1071
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
|
|
1076
|
-
var fails$
|
|
1076
|
+
var fails$a = fails$i;
|
|
1077
1077
|
var isCallable$7 = isCallable$h;
|
|
1078
1078
|
|
|
1079
1079
|
var replacement = /#|\.prototype\./;
|
|
@@ -1082,7 +1082,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
1082
1082
|
var value = data[normalize(feature)];
|
|
1083
1083
|
return value === POLYFILL ? true
|
|
1084
1084
|
: value === NATIVE ? false
|
|
1085
|
-
: isCallable$7(detection) ? fails$
|
|
1085
|
+
: isCallable$7(detection) ? fails$a(detection)
|
|
1086
1086
|
: !!detection;
|
|
1087
1087
|
};
|
|
1088
1088
|
|
|
@@ -1099,7 +1099,7 @@ var isForced_1 = isForced$1;
|
|
|
1099
1099
|
var global$6 = global$f;
|
|
1100
1100
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1101
1101
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
1102
|
-
var defineBuiltIn$
|
|
1102
|
+
var defineBuiltIn$4 = defineBuiltIn$5;
|
|
1103
1103
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1104
1104
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1105
1105
|
var isForced = isForced_1;
|
|
@@ -1147,20 +1147,20 @@ var _export = function (options, source) {
|
|
|
1147
1147
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1148
1148
|
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
1149
1149
|
}
|
|
1150
|
-
defineBuiltIn$
|
|
1150
|
+
defineBuiltIn$4(target, key, sourceProperty, options);
|
|
1151
1151
|
}
|
|
1152
1152
|
};
|
|
1153
1153
|
|
|
1154
|
-
var fails$
|
|
1154
|
+
var fails$9 = fails$i;
|
|
1155
1155
|
|
|
1156
|
-
var correctPrototypeGetter = !fails$
|
|
1156
|
+
var correctPrototypeGetter = !fails$9(function () {
|
|
1157
1157
|
function F() { /* empty */ }
|
|
1158
1158
|
F.prototype.constructor = null;
|
|
1159
1159
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1160
1160
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1161
1161
|
});
|
|
1162
1162
|
|
|
1163
|
-
var hasOwn$
|
|
1163
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1164
1164
|
var isCallable$6 = isCallable$h;
|
|
1165
1165
|
var toObject$2 = toObject$4;
|
|
1166
1166
|
var sharedKey = sharedKey$3;
|
|
@@ -1175,18 +1175,18 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1175
1175
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1176
1176
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1177
1177
|
var object = toObject$2(O);
|
|
1178
|
-
if (hasOwn$
|
|
1178
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
1179
1179
|
var constructor = object.constructor;
|
|
1180
1180
|
if (isCallable$6(constructor) && object instanceof constructor) {
|
|
1181
1181
|
return constructor.prototype;
|
|
1182
1182
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1183
1183
|
};
|
|
1184
1184
|
|
|
1185
|
-
var fails$
|
|
1185
|
+
var fails$8 = fails$i;
|
|
1186
1186
|
var isCallable$5 = isCallable$h;
|
|
1187
1187
|
var isObject$2 = isObject$8;
|
|
1188
1188
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1189
|
-
var defineBuiltIn$
|
|
1189
|
+
var defineBuiltIn$3 = defineBuiltIn$5;
|
|
1190
1190
|
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
1191
1191
|
|
|
1192
1192
|
var ITERATOR$2 = wellKnownSymbol$9('iterator');
|
|
@@ -1207,7 +1207,7 @@ if ([].keys) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$
|
|
1210
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$8(function () {
|
|
1211
1211
|
var test = {};
|
|
1212
1212
|
// FF44- legacy iterators case
|
|
1213
1213
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1218,7 +1218,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1218
1218
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1219
1219
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1220
1220
|
if (!isCallable$5(IteratorPrototype$2[ITERATOR$2])) {
|
|
1221
|
-
defineBuiltIn$
|
|
1221
|
+
defineBuiltIn$3(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1222
1222
|
return this;
|
|
1223
1223
|
});
|
|
1224
1224
|
}
|
|
@@ -1229,14 +1229,14 @@ var iteratorsCore = {
|
|
|
1229
1229
|
};
|
|
1230
1230
|
|
|
1231
1231
|
var defineProperty$3 = objectDefineProperty.f;
|
|
1232
|
-
var hasOwn$
|
|
1232
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1233
1233
|
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1234
1234
|
|
|
1235
1235
|
var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
|
|
1236
1236
|
|
|
1237
1237
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1238
1238
|
if (target && !STATIC) target = target.prototype;
|
|
1239
|
-
if (target && !hasOwn$
|
|
1239
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
|
|
1240
1240
|
defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1241
1241
|
}
|
|
1242
1242
|
};
|
|
@@ -1285,7 +1285,7 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1285
1285
|
|
|
1286
1286
|
/* eslint-disable no-proto -- safe */
|
|
1287
1287
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1288
|
-
var anObject$
|
|
1288
|
+
var anObject$4 = anObject$9;
|
|
1289
1289
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1290
1290
|
|
|
1291
1291
|
// `Object.setPrototypeOf` method
|
|
@@ -1302,7 +1302,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1302
1302
|
CORRECT_SETTER = test instanceof Array;
|
|
1303
1303
|
} catch (error) { /* empty */ }
|
|
1304
1304
|
return function setPrototypeOf(O, proto) {
|
|
1305
|
-
anObject$
|
|
1305
|
+
anObject$4(O);
|
|
1306
1306
|
aPossiblePrototype(proto);
|
|
1307
1307
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1308
1308
|
else O.__proto__ = proto;
|
|
@@ -1311,7 +1311,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1311
1311
|
}() : undefined);
|
|
1312
1312
|
|
|
1313
1313
|
var $$5 = _export;
|
|
1314
|
-
var call$
|
|
1314
|
+
var call$7 = functionCall;
|
|
1315
1315
|
var FunctionName = functionName;
|
|
1316
1316
|
var isCallable$4 = isCallable$h;
|
|
1317
1317
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1319,12 +1319,12 @@ var getPrototypeOf = objectGetPrototypeOf;
|
|
|
1319
1319
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1320
1320
|
var setToStringTag$1 = setToStringTag$3;
|
|
1321
1321
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1322
|
-
var defineBuiltIn$
|
|
1322
|
+
var defineBuiltIn$2 = defineBuiltIn$5;
|
|
1323
1323
|
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1324
1324
|
var Iterators$1 = iterators;
|
|
1325
1325
|
var IteratorsCore = iteratorsCore;
|
|
1326
1326
|
|
|
1327
|
-
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1327
|
+
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
1328
1328
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1329
1329
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1330
1330
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
@@ -1369,7 +1369,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1369
1369
|
if (setPrototypeOf) {
|
|
1370
1370
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1371
1371
|
} else if (!isCallable$4(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1372
|
-
defineBuiltIn$
|
|
1372
|
+
defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
// Set @@toStringTag to native iterators
|
|
@@ -1378,12 +1378,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
1380
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1381
|
-
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1381
|
+
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1382
1382
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1383
1383
|
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
1384
1384
|
} else {
|
|
1385
1385
|
INCORRECT_VALUES_NAME = true;
|
|
1386
|
-
defaultIterator = function values() { return call$
|
|
1386
|
+
defaultIterator = function values() { return call$7(nativeIterator, this); };
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
@@ -1396,14 +1396,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1396
1396
|
};
|
|
1397
1397
|
if (FORCED) for (KEY in methods) {
|
|
1398
1398
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1399
|
-
defineBuiltIn$
|
|
1399
|
+
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1400
1400
|
}
|
|
1401
1401
|
} else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
// define iterator
|
|
1405
1405
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1406
|
-
defineBuiltIn$
|
|
1406
|
+
defineBuiltIn$2(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1407
1407
|
}
|
|
1408
1408
|
Iterators$1[NAME] = defaultIterator;
|
|
1409
1409
|
|
|
@@ -1619,9 +1619,9 @@ var $$4 = _export;
|
|
|
1619
1619
|
var DESCRIPTORS$1 = descriptors;
|
|
1620
1620
|
var global$4 = global$f;
|
|
1621
1621
|
var uncurryThis$6 = functionUncurryThis;
|
|
1622
|
-
var hasOwn = hasOwnProperty_1;
|
|
1622
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1623
1623
|
var isCallable$2 = isCallable$h;
|
|
1624
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1624
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1625
1625
|
var toString$4 = toString$5;
|
|
1626
1626
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1627
1627
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
@@ -1637,7 +1637,7 @@ if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1637
1637
|
// wrap Symbol constructor for correct work with undefined description
|
|
1638
1638
|
var SymbolWrapper = function Symbol() {
|
|
1639
1639
|
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$4(arguments[0]);
|
|
1640
|
-
var result = isPrototypeOf(SymbolPrototype, this)
|
|
1640
|
+
var result = isPrototypeOf$1(SymbolPrototype, this)
|
|
1641
1641
|
? new NativeSymbol(description)
|
|
1642
1642
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
1643
1643
|
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
@@ -1660,7 +1660,7 @@ if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1660
1660
|
configurable: true,
|
|
1661
1661
|
get: function description() {
|
|
1662
1662
|
var symbol = thisSymbolValue(this);
|
|
1663
|
-
if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
|
|
1663
|
+
if (hasOwn$1(EmptyStringDescriptionStore, symbol)) return '';
|
|
1664
1664
|
var string = symbolDescriptiveString(symbol);
|
|
1665
1665
|
var desc = NATIVE_SYMBOL ? stringSlice$4(string, 7, -1) : replace$2(string, regexp, '$1');
|
|
1666
1666
|
return desc === '' ? undefined : desc;
|
|
@@ -1674,8 +1674,8 @@ if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1674
1674
|
|
|
1675
1675
|
var DESCRIPTORS = descriptors;
|
|
1676
1676
|
var uncurryThis$5 = functionUncurryThis;
|
|
1677
|
-
var call$
|
|
1678
|
-
var fails$
|
|
1677
|
+
var call$6 = functionCall;
|
|
1678
|
+
var fails$7 = fails$i;
|
|
1679
1679
|
var objectKeys = objectKeys$2;
|
|
1680
1680
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1681
1681
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1690,7 +1690,7 @@ var concat$1 = uncurryThis$5([].concat);
|
|
|
1690
1690
|
|
|
1691
1691
|
// `Object.assign` method
|
|
1692
1692
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1693
|
-
var objectAssign = !$assign || fails$
|
|
1693
|
+
var objectAssign = !$assign || fails$7(function () {
|
|
1694
1694
|
// should have correct order of operations (Edge bug)
|
|
1695
1695
|
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1696
1696
|
enumerable: true,
|
|
@@ -1724,7 +1724,7 @@ var objectAssign = !$assign || fails$6(function () {
|
|
|
1724
1724
|
var key;
|
|
1725
1725
|
while (length > j) {
|
|
1726
1726
|
key = keys[j++];
|
|
1727
|
-
if (!DESCRIPTORS || call$
|
|
1727
|
+
if (!DESCRIPTORS || call$6(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1728
1728
|
}
|
|
1729
1729
|
} return T;
|
|
1730
1730
|
} : $assign;
|
|
@@ -1739,12 +1739,12 @@ $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
|
|
|
1739
1739
|
assign: assign
|
|
1740
1740
|
});
|
|
1741
1741
|
|
|
1742
|
-
var anObject$
|
|
1742
|
+
var anObject$3 = anObject$9;
|
|
1743
1743
|
|
|
1744
1744
|
// `RegExp.prototype.flags` getter implementation
|
|
1745
1745
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1746
1746
|
var regexpFlags$1 = function () {
|
|
1747
|
-
var that = anObject$
|
|
1747
|
+
var that = anObject$3(this);
|
|
1748
1748
|
var result = '';
|
|
1749
1749
|
if (that.hasIndices) result += 'd';
|
|
1750
1750
|
if (that.global) result += 'g';
|
|
@@ -1757,13 +1757,13 @@ var regexpFlags$1 = function () {
|
|
|
1757
1757
|
return result;
|
|
1758
1758
|
};
|
|
1759
1759
|
|
|
1760
|
-
var fails$
|
|
1760
|
+
var fails$6 = fails$i;
|
|
1761
1761
|
var global$3 = global$f;
|
|
1762
1762
|
|
|
1763
1763
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1764
1764
|
var $RegExp$2 = global$3.RegExp;
|
|
1765
1765
|
|
|
1766
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
1766
|
+
var UNSUPPORTED_Y$1 = fails$6(function () {
|
|
1767
1767
|
var re = $RegExp$2('a', 'y');
|
|
1768
1768
|
re.lastIndex = 2;
|
|
1769
1769
|
return re.exec('abcd') !== null;
|
|
@@ -1771,11 +1771,11 @@ var UNSUPPORTED_Y$1 = fails$5(function () {
|
|
|
1771
1771
|
|
|
1772
1772
|
// UC Browser bug
|
|
1773
1773
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1774
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
1774
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$6(function () {
|
|
1775
1775
|
return !$RegExp$2('a', 'y').sticky;
|
|
1776
1776
|
});
|
|
1777
1777
|
|
|
1778
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
1778
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
|
|
1779
1779
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1780
1780
|
var re = $RegExp$2('^r', 'gy');
|
|
1781
1781
|
re.lastIndex = 2;
|
|
@@ -1788,24 +1788,24 @@ var regexpStickyHelpers = {
|
|
|
1788
1788
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1789
1789
|
};
|
|
1790
1790
|
|
|
1791
|
-
var fails$
|
|
1791
|
+
var fails$5 = fails$i;
|
|
1792
1792
|
var global$2 = global$f;
|
|
1793
1793
|
|
|
1794
1794
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1795
1795
|
var $RegExp$1 = global$2.RegExp;
|
|
1796
1796
|
|
|
1797
|
-
var regexpUnsupportedDotAll = fails$
|
|
1797
|
+
var regexpUnsupportedDotAll = fails$5(function () {
|
|
1798
1798
|
var re = $RegExp$1('.', 's');
|
|
1799
1799
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1800
1800
|
});
|
|
1801
1801
|
|
|
1802
|
-
var fails$
|
|
1802
|
+
var fails$4 = fails$i;
|
|
1803
1803
|
var global$1 = global$f;
|
|
1804
1804
|
|
|
1805
1805
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1806
1806
|
var $RegExp = global$1.RegExp;
|
|
1807
1807
|
|
|
1808
|
-
var regexpUnsupportedNcg = fails$
|
|
1808
|
+
var regexpUnsupportedNcg = fails$4(function () {
|
|
1809
1809
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1810
1810
|
return re.exec('b').groups.a !== 'b' ||
|
|
1811
1811
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1813,7 +1813,7 @@ var regexpUnsupportedNcg = fails$3(function () {
|
|
|
1813
1813
|
|
|
1814
1814
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1815
1815
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1816
|
-
var call$
|
|
1816
|
+
var call$5 = functionCall;
|
|
1817
1817
|
var uncurryThis$4 = functionUncurryThis;
|
|
1818
1818
|
var toString$3 = toString$5;
|
|
1819
1819
|
var regexpFlags = regexpFlags$1;
|
|
@@ -1835,8 +1835,8 @@ var stringSlice$3 = uncurryThis$4(''.slice);
|
|
|
1835
1835
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1836
1836
|
var re1 = /a/;
|
|
1837
1837
|
var re2 = /b*/g;
|
|
1838
|
-
call$
|
|
1839
|
-
call$
|
|
1838
|
+
call$5(nativeExec, re1, 'a');
|
|
1839
|
+
call$5(nativeExec, re2, 'a');
|
|
1840
1840
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1841
1841
|
})();
|
|
1842
1842
|
|
|
@@ -1857,14 +1857,14 @@ if (PATCH) {
|
|
|
1857
1857
|
|
|
1858
1858
|
if (raw) {
|
|
1859
1859
|
raw.lastIndex = re.lastIndex;
|
|
1860
|
-
result = call$
|
|
1860
|
+
result = call$5(patchedExec, raw, str);
|
|
1861
1861
|
re.lastIndex = raw.lastIndex;
|
|
1862
1862
|
return result;
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
1865
|
var groups = state.groups;
|
|
1866
1866
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1867
|
-
var flags = call$
|
|
1867
|
+
var flags = call$5(regexpFlags, re);
|
|
1868
1868
|
var source = re.source;
|
|
1869
1869
|
var charsAdded = 0;
|
|
1870
1870
|
var strCopy = str;
|
|
@@ -1892,7 +1892,7 @@ if (PATCH) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1894
1894
|
|
|
1895
|
-
match = call$
|
|
1895
|
+
match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1896
1896
|
|
|
1897
1897
|
if (sticky) {
|
|
1898
1898
|
if (match) {
|
|
@@ -1907,7 +1907,7 @@ if (PATCH) {
|
|
|
1907
1907
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1908
1908
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1909
1909
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1910
|
-
call$
|
|
1910
|
+
call$5(nativeReplace, match[0], reCopy, function () {
|
|
1911
1911
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1912
1912
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1913
1913
|
}
|
|
@@ -1941,36 +1941,36 @@ var NATIVE_BIND = functionBindNative;
|
|
|
1941
1941
|
|
|
1942
1942
|
var FunctionPrototype = Function.prototype;
|
|
1943
1943
|
var apply$1 = FunctionPrototype.apply;
|
|
1944
|
-
var call$
|
|
1944
|
+
var call$4 = FunctionPrototype.call;
|
|
1945
1945
|
|
|
1946
1946
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1947
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
1948
|
-
return call$
|
|
1947
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$1) : function () {
|
|
1948
|
+
return call$4.apply(apply$1, arguments);
|
|
1949
1949
|
});
|
|
1950
1950
|
|
|
1951
1951
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1952
1952
|
|
|
1953
|
-
var call$
|
|
1954
|
-
var defineBuiltIn = defineBuiltIn$
|
|
1953
|
+
var call$3 = functionCall;
|
|
1954
|
+
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
1955
1955
|
var regexpExec$1 = regexpExec$2;
|
|
1956
|
-
var fails$
|
|
1956
|
+
var fails$3 = fails$i;
|
|
1957
1957
|
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
1958
1958
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1959
1959
|
|
|
1960
1960
|
var SPECIES = wellKnownSymbol$3('species');
|
|
1961
|
-
var RegExpPrototype = RegExp.prototype;
|
|
1961
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
1962
1962
|
|
|
1963
1963
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1964
1964
|
var SYMBOL = wellKnownSymbol$3(KEY);
|
|
1965
1965
|
|
|
1966
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
1966
|
+
var DELEGATES_TO_SYMBOL = !fails$3(function () {
|
|
1967
1967
|
// String methods call symbol-named RegExp methods
|
|
1968
1968
|
var O = {};
|
|
1969
1969
|
O[SYMBOL] = function () { return 7; };
|
|
1970
1970
|
return ''[KEY](O) !== 7;
|
|
1971
1971
|
});
|
|
1972
1972
|
|
|
1973
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
1973
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
|
|
1974
1974
|
// Symbol-named RegExp methods call .exec
|
|
1975
1975
|
var execCalled = false;
|
|
1976
1976
|
var re = /a/;
|
|
@@ -2005,23 +2005,23 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
2005
2005
|
var nativeRegExpMethod = /./[SYMBOL];
|
|
2006
2006
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
2007
2007
|
var $exec = regexp.exec;
|
|
2008
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
2008
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
|
|
2009
2009
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
2010
2010
|
// The native String method already delegates to @@method (this
|
|
2011
2011
|
// polyfilled function), leasing to infinite recursion.
|
|
2012
2012
|
// We avoid it by directly calling the native @@method method.
|
|
2013
|
-
return { done: true, value: call$
|
|
2013
|
+
return { done: true, value: call$3(nativeRegExpMethod, regexp, str, arg2) };
|
|
2014
2014
|
}
|
|
2015
|
-
return { done: true, value: call$
|
|
2015
|
+
return { done: true, value: call$3(nativeMethod, str, regexp, arg2) };
|
|
2016
2016
|
}
|
|
2017
2017
|
return { done: false };
|
|
2018
2018
|
});
|
|
2019
2019
|
|
|
2020
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
2021
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
2020
|
+
defineBuiltIn$1(String.prototype, KEY, methods[0]);
|
|
2021
|
+
defineBuiltIn$1(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
2022
2022
|
}
|
|
2023
2023
|
|
|
2024
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2024
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
2025
2025
|
};
|
|
2026
2026
|
|
|
2027
2027
|
var uncurryThis$3 = functionUncurryThis;
|
|
@@ -2115,8 +2115,8 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2115
2115
|
});
|
|
2116
2116
|
};
|
|
2117
2117
|
|
|
2118
|
-
var call$
|
|
2119
|
-
var anObject$
|
|
2118
|
+
var call$2 = functionCall;
|
|
2119
|
+
var anObject$2 = anObject$9;
|
|
2120
2120
|
var isCallable$1 = isCallable$h;
|
|
2121
2121
|
var classof$1 = classofRaw$1;
|
|
2122
2122
|
var regexpExec = regexpExec$2;
|
|
@@ -2128,20 +2128,20 @@ var $TypeError$1 = TypeError;
|
|
|
2128
2128
|
var regexpExecAbstract = function (R, S) {
|
|
2129
2129
|
var exec = R.exec;
|
|
2130
2130
|
if (isCallable$1(exec)) {
|
|
2131
|
-
var result = call$
|
|
2132
|
-
if (result !== null) anObject$
|
|
2131
|
+
var result = call$2(exec, R, S);
|
|
2132
|
+
if (result !== null) anObject$2(result);
|
|
2133
2133
|
return result;
|
|
2134
2134
|
}
|
|
2135
|
-
if (classof$1(R) === 'RegExp') return call$
|
|
2135
|
+
if (classof$1(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
2136
2136
|
throw new $TypeError$1('RegExp#exec called on incompatible receiver');
|
|
2137
2137
|
};
|
|
2138
2138
|
|
|
2139
2139
|
var apply = functionApply;
|
|
2140
|
-
var call = functionCall;
|
|
2140
|
+
var call$1 = functionCall;
|
|
2141
2141
|
var uncurryThis$1 = functionUncurryThis;
|
|
2142
2142
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2143
|
-
var fails$
|
|
2144
|
-
var anObject = anObject$
|
|
2143
|
+
var fails$2 = fails$i;
|
|
2144
|
+
var anObject$1 = anObject$9;
|
|
2145
2145
|
var isCallable = isCallable$h;
|
|
2146
2146
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
2147
2147
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
@@ -2181,7 +2181,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
2181
2181
|
return false;
|
|
2182
2182
|
})();
|
|
2183
2183
|
|
|
2184
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
2184
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$2(function () {
|
|
2185
2185
|
var re = /./;
|
|
2186
2186
|
re.exec = function () {
|
|
2187
2187
|
var result = [];
|
|
@@ -2203,13 +2203,13 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2203
2203
|
var O = requireObjectCoercible$1(this);
|
|
2204
2204
|
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
2205
2205
|
return replacer
|
|
2206
|
-
? call(replacer, searchValue, O, replaceValue)
|
|
2207
|
-
: call(nativeReplace, toString$1(O), searchValue, replaceValue);
|
|
2206
|
+
? call$1(replacer, searchValue, O, replaceValue)
|
|
2207
|
+
: call$1(nativeReplace, toString$1(O), searchValue, replaceValue);
|
|
2208
2208
|
},
|
|
2209
2209
|
// `RegExp.prototype[@@replace]` method
|
|
2210
2210
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2211
2211
|
function (string, replaceValue) {
|
|
2212
|
-
var rx = anObject(this);
|
|
2212
|
+
var rx = anObject$1(this);
|
|
2213
2213
|
var S = toString$1(string);
|
|
2214
2214
|
|
|
2215
2215
|
if (
|
|
@@ -2823,11 +2823,11 @@ const GoAInputTimeControl = withJsonFormsControlProps(GoATimeControl);
|
|
|
2823
2823
|
|
|
2824
2824
|
var $$1 = _export;
|
|
2825
2825
|
var $includes = arrayIncludes.includes;
|
|
2826
|
-
var fails = fails$
|
|
2826
|
+
var fails$1 = fails$i;
|
|
2827
2827
|
var addToUnscopables = addToUnscopables$2;
|
|
2828
2828
|
|
|
2829
2829
|
// FF99+ bug
|
|
2830
|
-
var BROKEN_ON_SPARSE = fails(function () {
|
|
2830
|
+
var BROKEN_ON_SPARSE = fails$1(function () {
|
|
2831
2831
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
2832
2832
|
return !Array(1).includes();
|
|
2833
2833
|
});
|
|
@@ -3307,6 +3307,45 @@ const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({},
|
|
|
3307
3307
|
const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
|
|
3308
3308
|
const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
|
|
3309
3309
|
|
|
3310
|
+
var call = functionCall;
|
|
3311
|
+
var hasOwn = hasOwnProperty_1;
|
|
3312
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
3313
|
+
var regExpFlags = regexpFlags$1;
|
|
3314
|
+
|
|
3315
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
3316
|
+
|
|
3317
|
+
var regexpGetFlags = function (R) {
|
|
3318
|
+
var flags = R.flags;
|
|
3319
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
3320
|
+
? call(regExpFlags, R) : flags;
|
|
3321
|
+
};
|
|
3322
|
+
|
|
3323
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3324
|
+
var defineBuiltIn = defineBuiltIn$5;
|
|
3325
|
+
var anObject = anObject$9;
|
|
3326
|
+
var $toString = toString$5;
|
|
3327
|
+
var fails = fails$i;
|
|
3328
|
+
var getRegExpFlags = regexpGetFlags;
|
|
3329
|
+
|
|
3330
|
+
var TO_STRING = 'toString';
|
|
3331
|
+
var RegExpPrototype = RegExp.prototype;
|
|
3332
|
+
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3333
|
+
|
|
3334
|
+
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
3335
|
+
// FF44- RegExp#toString has a wrong name
|
|
3336
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
3337
|
+
|
|
3338
|
+
// `RegExp.prototype.toString` method
|
|
3339
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3340
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3341
|
+
defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
|
|
3342
|
+
var R = anObject(this);
|
|
3343
|
+
var pattern = $toString(R.source);
|
|
3344
|
+
var flags = $toString(getRegExpFlags(R));
|
|
3345
|
+
return '/' + pattern + '/' + flags;
|
|
3346
|
+
}, { unsafe: true });
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3310
3349
|
let _$5 = t => t,
|
|
3311
3350
|
_t$5,
|
|
3312
3351
|
_t2$3;
|
|
@@ -3361,21 +3400,100 @@ const GridItem = styled.div(_t2$3 || (_t2$3 = _$5`
|
|
|
3361
3400
|
let _$4 = t => t,
|
|
3362
3401
|
_t$4,
|
|
3363
3402
|
_t2$2,
|
|
3364
|
-
_t3$1
|
|
3403
|
+
_t3$1,
|
|
3404
|
+
_t4,
|
|
3405
|
+
_t5,
|
|
3406
|
+
_t6,
|
|
3407
|
+
_t7;
|
|
3365
3408
|
const ReviewItem = styled.div(_t$4 || (_t$4 = _$4`
|
|
3366
3409
|
display: flex;
|
|
3410
|
+
flex-direction: column;
|
|
3367
3411
|
border: var(--goa-border-width-s) solid grey;
|
|
3368
3412
|
border-radius: var(--goa-border-radius-m);
|
|
3369
3413
|
margin: var(--goa-space-2xs);
|
|
3370
3414
|
padding: var(--goa-space-xs);
|
|
3371
3415
|
`));
|
|
3372
|
-
const
|
|
3416
|
+
const ReviewItemSection = styled.div(_t2$2 || (_t2$2 = _$4`
|
|
3417
|
+
background-color: #f1f1f1;
|
|
3418
|
+
margin-bottom: 1rem;
|
|
3419
|
+
padding: 1rem;
|
|
3420
|
+
border: 1px solid #dcdcdc;
|
|
3421
|
+
border-radius: 5px;
|
|
3422
|
+
`));
|
|
3423
|
+
const ReviewItemHeader = styled.div(_t3$1 || (_t3$1 = _$4`
|
|
3424
|
+
display: flex;
|
|
3425
|
+
align-items: center;
|
|
3426
|
+
justify-content: space-between;
|
|
3427
|
+
margin-bottom: 2rem;
|
|
3428
|
+
`));
|
|
3429
|
+
const ReviewItemTitle = styled.div(_t4 || (_t4 = _$4`
|
|
3430
|
+
font-size: var(--fs-xl);
|
|
3431
|
+
line-height: var(--lh-lg);
|
|
3432
|
+
font-weight: var(--fw-light);
|
|
3433
|
+
`));
|
|
3434
|
+
const Anchor = styled.div(_t5 || (_t5 = _$4`
|
|
3435
|
+
color: #0070c4;
|
|
3436
|
+
text-decoration: underline;
|
|
3437
|
+
outline: none;
|
|
3438
|
+
cursor: pointer;
|
|
3439
|
+
`));
|
|
3440
|
+
styled.div(_t6 || (_t6 = _$4`
|
|
3373
3441
|
margin-left: var(--goa-space-m);
|
|
3374
3442
|
`));
|
|
3375
|
-
|
|
3443
|
+
styled.div(_t7 || (_t7 = _$4`
|
|
3376
3444
|
margin-bottom: var(--goa-space-m);
|
|
3377
3445
|
`));
|
|
3378
3446
|
|
|
3447
|
+
const resolveLabelFromScope = scope => {
|
|
3448
|
+
// eslint-disable-next-line no-useless-escape
|
|
3449
|
+
const validPatternRegex = /^#(\/properties\/[^\/]+)+$/;
|
|
3450
|
+
const isValid = validPatternRegex.test(scope);
|
|
3451
|
+
if (!isValid) return null;
|
|
3452
|
+
const lastSegment = scope.split('/').pop();
|
|
3453
|
+
if (lastSegment) {
|
|
3454
|
+
const lowercased = lastSegment.replace(/([A-Z])/g, ' $1').toLowerCase();
|
|
3455
|
+
return lowercased.charAt(0).toUpperCase() + lowercased.slice(1);
|
|
3456
|
+
}
|
|
3457
|
+
return '';
|
|
3458
|
+
};
|
|
3459
|
+
const getFormFieldValue = (scope, data) => {
|
|
3460
|
+
if (data !== undefined) {
|
|
3461
|
+
const pathArray = scope.replace('#/properties/', '').replace('properties/', '').split('/');
|
|
3462
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3463
|
+
let currentValue = data;
|
|
3464
|
+
for (const key of pathArray) {
|
|
3465
|
+
if (currentValue[key] === undefined) {
|
|
3466
|
+
return '';
|
|
3467
|
+
}
|
|
3468
|
+
currentValue = currentValue[key];
|
|
3469
|
+
}
|
|
3470
|
+
return typeof currentValue === 'object' ? '' : currentValue;
|
|
3471
|
+
} else {
|
|
3472
|
+
return '';
|
|
3473
|
+
}
|
|
3474
|
+
};
|
|
3475
|
+
const renderFormFields = (elements, data) => elements.map((element, index) => {
|
|
3476
|
+
// const clonedElement = element;
|
|
3477
|
+
const clonedElement = JSON.parse(JSON.stringify(element));
|
|
3478
|
+
if (clonedElement.type === 'Control' && clonedElement.scope) {
|
|
3479
|
+
const label = resolveLabelFromScope(clonedElement.scope);
|
|
3480
|
+
if (!label) return null;
|
|
3481
|
+
const value = getFormFieldValue(clonedElement.scope, data ? data : {}).toString();
|
|
3482
|
+
return jsxs(GridItem, {
|
|
3483
|
+
md: 6,
|
|
3484
|
+
vSpacing: 1,
|
|
3485
|
+
hSpacing: 0.5,
|
|
3486
|
+
children: [jsxs("strong", {
|
|
3487
|
+
children: [label, ":"]
|
|
3488
|
+
}), " ", value]
|
|
3489
|
+
}, index);
|
|
3490
|
+
} else if (clonedElement === null || clonedElement === void 0 ? void 0 : clonedElement.elements) {
|
|
3491
|
+
return jsx(React.Fragment, {
|
|
3492
|
+
children: renderFormFields(clonedElement.elements, data)
|
|
3493
|
+
}, index);
|
|
3494
|
+
}
|
|
3495
|
+
return null;
|
|
3496
|
+
});
|
|
3379
3497
|
const FormStepper = ({
|
|
3380
3498
|
uischema,
|
|
3381
3499
|
data,
|
|
@@ -3390,7 +3508,6 @@ const FormStepper = ({
|
|
|
3390
3508
|
enabled,
|
|
3391
3509
|
t
|
|
3392
3510
|
}) => {
|
|
3393
|
-
var _a;
|
|
3394
3511
|
const categorization = uischema;
|
|
3395
3512
|
const [step, setStep] = useState(0);
|
|
3396
3513
|
const [isFormValid, setIsFormValid] = useState(false);
|
|
@@ -3466,6 +3583,9 @@ const FormStepper = ({
|
|
|
3466
3583
|
})
|
|
3467
3584
|
);
|
|
3468
3585
|
};
|
|
3586
|
+
const handleEdit = index => {
|
|
3587
|
+
setPage(index + 1);
|
|
3588
|
+
};
|
|
3469
3589
|
return jsx(Hidden, {
|
|
3470
3590
|
xsUp: !visible,
|
|
3471
3591
|
children: jsxs("div", {
|
|
@@ -3501,24 +3621,20 @@ const FormStepper = ({
|
|
|
3501
3621
|
},
|
|
3502
3622
|
children: "Summary"
|
|
3503
3623
|
}), jsx(ReviewItem, {
|
|
3504
|
-
children:
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
}, ix)]
|
|
3519
|
-
}, ix);
|
|
3520
|
-
})
|
|
3521
|
-
})
|
|
3624
|
+
children: categories.map((category, index) => {
|
|
3625
|
+
const categoryLabel = category.label || category.i18n || 'Unknown Category';
|
|
3626
|
+
return jsxs(ReviewItemSection, {
|
|
3627
|
+
children: [jsxs(ReviewItemHeader, {
|
|
3628
|
+
children: [jsx(ReviewItemTitle, {
|
|
3629
|
+
children: categoryLabel
|
|
3630
|
+
}), jsx(Anchor, {
|
|
3631
|
+
onClick: () => handleEdit(index),
|
|
3632
|
+
children: "Edit"
|
|
3633
|
+
})]
|
|
3634
|
+
}), jsx(Grid, {
|
|
3635
|
+
children: renderFormFields(category.elements, data)
|
|
3636
|
+
})]
|
|
3637
|
+
}, index);
|
|
3522
3638
|
})
|
|
3523
3639
|
})]
|
|
3524
3640
|
})]
|
|
@@ -3549,43 +3665,6 @@ const FormStepper = ({
|
|
|
3549
3665
|
})
|
|
3550
3666
|
});
|
|
3551
3667
|
};
|
|
3552
|
-
const PreventControlElement = props => {
|
|
3553
|
-
if (typeof (props === null || props === void 0 ? void 0 : props.value) === 'string') return jsx("span", {
|
|
3554
|
-
children: props.value
|
|
3555
|
-
});
|
|
3556
|
-
if (Array.isArray(props === null || props === void 0 ? void 0 : props.value)) {
|
|
3557
|
-
return jsx("div", {
|
|
3558
|
-
children: props.value.map((item, index) => {
|
|
3559
|
-
return jsx(ReviewListWrapper, {
|
|
3560
|
-
children: item && Object.keys(item).map((key, innerIndex) => {
|
|
3561
|
-
if (typeof item[key] === 'string') {
|
|
3562
|
-
return jsxs(ReviewListItem, {
|
|
3563
|
-
children: [key, ": ", item[key]]
|
|
3564
|
-
}, innerIndex);
|
|
3565
|
-
}
|
|
3566
|
-
return jsxs(ReviewListItem, {
|
|
3567
|
-
children: [key, ": ", String(item[key])]
|
|
3568
|
-
}, innerIndex);
|
|
3569
|
-
})
|
|
3570
|
-
}, index);
|
|
3571
|
-
})
|
|
3572
|
-
});
|
|
3573
|
-
}
|
|
3574
|
-
// eslint-disable-next-line
|
|
3575
|
-
return jsx(Fragment, {});
|
|
3576
|
-
};
|
|
3577
|
-
const flattenObject = obj => {
|
|
3578
|
-
const flattened = {};
|
|
3579
|
-
Object.keys(obj || {}).forEach(key => {
|
|
3580
|
-
const value = obj[key];
|
|
3581
|
-
if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
|
|
3582
|
-
Object.assign(flattened, flattenObject(value));
|
|
3583
|
-
} else {
|
|
3584
|
-
flattened[key] = value;
|
|
3585
|
-
}
|
|
3586
|
-
});
|
|
3587
|
-
return flattened;
|
|
3588
|
-
};
|
|
3589
3668
|
const FormStepperControl = withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepper)));
|
|
3590
3669
|
|
|
3591
3670
|
// Ensure that all children (Category) have valid elements or things tend
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
|
+
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
|
4
7
|
"peerDependencies": {
|
|
5
8
|
"@abgov/react-components": "^4.18.1",
|
|
6
9
|
"@jsonforms/core": "^3.1.0",
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StatePropsOfLayout } from '@jsonforms/core';
|
|
2
|
+
import { Categorization, UISchemaElement, Category, StatePropsOfLayout } from '@jsonforms/core';
|
|
3
3
|
import { TranslateProps } from '@jsonforms/react';
|
|
4
4
|
import { AjvProps } from '@jsonforms/material-renderers';
|
|
5
5
|
export interface CategorizationStepperLayoutRendererProps extends StatePropsOfLayout, AjvProps, TranslateProps {
|
|
6
6
|
data: any;
|
|
7
7
|
}
|
|
8
|
+
export declare const resolveLabelFromScope: (scope: string) => string | null;
|
|
9
|
+
export declare const getFormFieldValue: (scope: string, data: object) => any;
|
|
10
|
+
export declare const renderFormFields: (elements: UISchemaElement[] | (Category | Categorization)[], data: object) => (import("react/jsx-runtime").JSX.Element | null)[];
|
|
8
11
|
export declare const FormStepper: ({ uischema, data, schema, ajv, path, cells, renderers, config, visible, enabled, t, }: CategorizationStepperLayoutRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export declare const flattenObject: (obj: Record<string, string>) => Record<string, string>;
|
|
10
13
|
export declare const FormStepperControl: (props: CategorizationStepperLayoutRendererProps & import("@jsonforms/core").OwnPropsOfLayout) => React.JSX.Element;
|
|
14
|
+
export default FormStepper;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export declare const ReviewItem: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const ReviewItemSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ReviewItemHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const ReviewItemTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const Anchor: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
6
|
export declare const ReviewListItem: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
7
|
export declare const ReviewListWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|