@abgov/jsonforms-components 1.24.12 → 1.25.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/index.esm.js +870 -683
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/lib/Additional/HelpContent.d.ts +1 -0
- package/src/lib/Controls/FileUploader/FileUploaderControl.d.ts +6 -1
- package/src/lib/Controls/Inputs/InputBaseControl.d.ts +1 -0
- package/src/lib/Controls/Inputs/InputBaseReviewControl.d.ts +7 -0
- package/src/lib/Controls/Inputs/index.d.ts +1 -0
- package/src/lib/Controls/ObjectArray/DeleteDialog.d.ts +1 -1
- package/src/lib/Controls/ObjectArray/ListWithDetailControl.d.ts +38 -0
- package/src/lib/Controls/ObjectArray/ObjectArray.d.ts +2 -1
- package/src/lib/Controls/ObjectArray/ObjectListControl.d.ts +7 -2
- package/src/lib/Controls/ObjectArray/index.d.ts +1 -0
- package/src/lib/Controls/ObjectArray/listWithDetails.d.ts +5 -0
- package/src/lib/Controls/ObjectArray/styled-components.d.ts +8 -0
- package/src/lib/common/Ajv.d.ts +1 -1
- package/src/lib/layouts/HorizontalLayoutControl.d.ts +2 -0
- package/src/lib/util/layout.d.ts +2 -1
- package/src/lib/Controls/FormStepper/util/GenerateFormFields.d.ts +0 -11
- package/src/lib/Controls/FormStepper/util/RenderFormReviewFields.d.ts +0 -10
- package/src/lib/Controls/FormStepper/util/getRequiredFields.d.ts +0 -2
- package/src/lib/Controls/FormStepper/util/renderReviewControl.d.ts +0 -8
- package/src/lib/Controls/FormStepper/util/renderReviewLIstWithDetail.d.ts +0 -2
package/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import React, { createContext, useContext, useReducer, useMemo, useEffect, useState, useCallback } from 'react';
|
|
3
|
-
import { GoAFormItem, GoAInput, GoATextArea, GoACallout, GoAInputDate, GoAInputDateTime, GoAInputTime, GoADropdown, GoADropdownItem, GoARadioGroup, GoARadioItem, GoACheckbox, GoAGrid,
|
|
2
|
+
import React, { createContext, useContext, useReducer, useMemo, useEffect, useState, useCallback, useRef } from 'react';
|
|
3
|
+
import { GoAFormItem, GoAInput, GoATextArea, GoACallout, GoAInputDate, GoAInputDateTime, GoAInputTime, GoADropdown, GoADropdownItem, GoARadioGroup, GoARadioItem, GoACheckbox, GoAGrid, GoAFormStepper, GoAFormStep, GoAPages, GoAButton, GoAModal, GoAButtonGroup, GoAIconButton, GoAFileUploadInput, GoACircularProgress, GoAContainer, GoADetails } from '@abgov/react-components';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import get$1 from 'lodash/get';
|
|
7
|
-
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, isEnabled, deriveLabelForUISchemaElement, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, withIncreasedRank, hasType, isControl
|
|
7
|
+
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, isEnabled, deriveLabelForUISchemaElement, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, withIncreasedRank, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
|
|
8
8
|
import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, useJsonForms, JsonFormsDispatch, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
9
9
|
import merge from 'lodash/merge';
|
|
10
10
|
import isEmpty$1 from 'lodash/isEmpty';
|
|
@@ -14,7 +14,7 @@ import addFormats from 'ajv-formats';
|
|
|
14
14
|
|
|
15
15
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
16
|
|
|
17
|
-
var fails$
|
|
17
|
+
var fails$n = function (exec) {
|
|
18
18
|
try {
|
|
19
19
|
return !!exec();
|
|
20
20
|
} catch (error) {
|
|
@@ -22,9 +22,9 @@ var fails$o = function (exec) {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
var fails$
|
|
25
|
+
var fails$m = fails$n;
|
|
26
26
|
|
|
27
|
-
var functionBindNative = !fails$
|
|
27
|
+
var functionBindNative = !fails$m(function () {
|
|
28
28
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
29
29
|
var test = (function () { /* empty */ }).bind();
|
|
30
30
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -53,19 +53,19 @@ var classofRaw$1 = function (it) {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
var uncurryThis$l = functionUncurryThis;
|
|
56
|
-
var fails$
|
|
57
|
-
var classof$
|
|
56
|
+
var fails$l = fails$n;
|
|
57
|
+
var classof$7 = classofRaw$1;
|
|
58
58
|
|
|
59
59
|
var $Object$4 = Object;
|
|
60
60
|
var split = uncurryThis$l(''.split);
|
|
61
61
|
|
|
62
62
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
63
|
-
var indexedObject = fails$
|
|
63
|
+
var indexedObject = fails$l(function () {
|
|
64
64
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
65
65
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
66
66
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
67
67
|
}) ? function (it) {
|
|
68
|
-
return classof$
|
|
68
|
+
return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
69
69
|
} : $Object$4;
|
|
70
70
|
|
|
71
71
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -76,21 +76,21 @@ var isNullOrUndefined$3 = function (it) {
|
|
|
76
76
|
|
|
77
77
|
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
78
78
|
|
|
79
|
-
var $TypeError$
|
|
79
|
+
var $TypeError$b = TypeError;
|
|
80
80
|
|
|
81
81
|
// `RequireObjectCoercible` abstract operation
|
|
82
82
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
83
83
|
var requireObjectCoercible$7 = function (it) {
|
|
84
|
-
if (isNullOrUndefined$2(it)) throw new $TypeError$
|
|
84
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
|
|
85
85
|
return it;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// toObject with fallback for non-array-like ES3 strings
|
|
89
|
-
var IndexedObject$
|
|
89
|
+
var IndexedObject$1 = indexedObject;
|
|
90
90
|
var requireObjectCoercible$6 = requireObjectCoercible$7;
|
|
91
91
|
|
|
92
92
|
var toIndexedObject$5 = function (it) {
|
|
93
|
-
return IndexedObject$
|
|
93
|
+
return IndexedObject$1(requireObjectCoercible$6(it));
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
var check = function (it) {
|
|
@@ -98,7 +98,7 @@ var check = function (it) {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
101
|
-
var global$
|
|
101
|
+
var global$h =
|
|
102
102
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
103
103
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
104
104
|
check(typeof window == 'object' && window) ||
|
|
@@ -111,20 +111,20 @@ var global$i =
|
|
|
111
111
|
|
|
112
112
|
var sharedStore = {exports: {}};
|
|
113
113
|
|
|
114
|
-
var global$
|
|
114
|
+
var global$g = global$h;
|
|
115
115
|
|
|
116
116
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
117
117
|
var defineProperty$7 = Object.defineProperty;
|
|
118
118
|
|
|
119
119
|
var defineGlobalProperty$3 = function (key, value) {
|
|
120
120
|
try {
|
|
121
|
-
defineProperty$7(global$
|
|
121
|
+
defineProperty$7(global$g, key, { value: value, configurable: true, writable: true });
|
|
122
122
|
} catch (error) {
|
|
123
|
-
global$
|
|
123
|
+
global$g[key] = value;
|
|
124
124
|
} return value;
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
-
var globalThis$1 = global$
|
|
127
|
+
var globalThis$1 = global$h;
|
|
128
128
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
129
129
|
|
|
130
130
|
var SHARED = '__core-js_shared__';
|
|
@@ -150,12 +150,12 @@ var $Object$3 = Object;
|
|
|
150
150
|
|
|
151
151
|
// `ToObject` abstract operation
|
|
152
152
|
// https://tc39.es/ecma262/#sec-toobject
|
|
153
|
-
var toObject$
|
|
153
|
+
var toObject$6 = function (argument) {
|
|
154
154
|
return $Object$3(requireObjectCoercible$5(argument));
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
var uncurryThis$k = functionUncurryThis;
|
|
158
|
-
var toObject$
|
|
158
|
+
var toObject$5 = toObject$6;
|
|
159
159
|
|
|
160
160
|
var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
|
|
161
161
|
|
|
@@ -163,7 +163,7 @@ var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
|
|
|
163
163
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
164
164
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
165
165
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
166
|
-
return hasOwnProperty(toObject$
|
|
166
|
+
return hasOwnProperty(toObject$5(it), key);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
var uncurryThis$j = functionUncurryThis;
|
|
@@ -178,11 +178,11 @@ var uid$2 = function (key) {
|
|
|
178
178
|
|
|
179
179
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
180
180
|
|
|
181
|
-
var global$
|
|
181
|
+
var global$f = global$h;
|
|
182
182
|
var userAgent = engineUserAgent;
|
|
183
183
|
|
|
184
|
-
var process = global$
|
|
185
|
-
var Deno = global$
|
|
184
|
+
var process = global$f.process;
|
|
185
|
+
var Deno = global$f.Deno;
|
|
186
186
|
var versions = process && process.versions || Deno && Deno.version;
|
|
187
187
|
var v8 = versions && versions.v8;
|
|
188
188
|
var match, version;
|
|
@@ -208,13 +208,13 @@ var engineV8Version = version;
|
|
|
208
208
|
|
|
209
209
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
210
210
|
var V8_VERSION = engineV8Version;
|
|
211
|
-
var fails$
|
|
212
|
-
var global$
|
|
211
|
+
var fails$k = fails$n;
|
|
212
|
+
var global$e = global$h;
|
|
213
213
|
|
|
214
|
-
var $String$6 = global$
|
|
214
|
+
var $String$6 = global$e.String;
|
|
215
215
|
|
|
216
216
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
217
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
217
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$k(function () {
|
|
218
218
|
var symbol = Symbol('symbol detection');
|
|
219
219
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
220
220
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -232,14 +232,14 @@ var useSymbolAsUid = NATIVE_SYMBOL$3
|
|
|
232
232
|
&& !Symbol.sham
|
|
233
233
|
&& typeof Symbol.iterator == 'symbol';
|
|
234
234
|
|
|
235
|
-
var global$
|
|
235
|
+
var global$d = global$h;
|
|
236
236
|
var shared$3 = shared$4;
|
|
237
237
|
var hasOwn$c = hasOwnProperty_1;
|
|
238
238
|
var uid$1 = uid$2;
|
|
239
239
|
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
240
240
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
241
241
|
|
|
242
|
-
var Symbol$1 = global$
|
|
242
|
+
var Symbol$1 = global$d.Symbol;
|
|
243
243
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
244
244
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
245
245
|
|
|
@@ -272,30 +272,30 @@ var isObject$b = function (it) {
|
|
|
272
272
|
var isObject$a = isObject$b;
|
|
273
273
|
|
|
274
274
|
var $String$5 = String;
|
|
275
|
-
var $TypeError$
|
|
275
|
+
var $TypeError$a = TypeError;
|
|
276
276
|
|
|
277
277
|
// `Assert: Type(argument) is Object`
|
|
278
278
|
var anObject$9 = function (argument) {
|
|
279
279
|
if (isObject$a(argument)) return argument;
|
|
280
|
-
throw new $TypeError$
|
|
280
|
+
throw new $TypeError$a($String$5(argument) + ' is not an object');
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
var objectDefineProperties = {};
|
|
284
284
|
|
|
285
|
-
var fails$
|
|
285
|
+
var fails$j = fails$n;
|
|
286
286
|
|
|
287
287
|
// Detect IE8's incomplete defineProperty implementation
|
|
288
|
-
var descriptors = !fails$
|
|
288
|
+
var descriptors = !fails$j(function () {
|
|
289
289
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
290
290
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
var DESCRIPTORS$f = descriptors;
|
|
294
|
-
var fails$
|
|
294
|
+
var fails$i = fails$n;
|
|
295
295
|
|
|
296
296
|
// V8 ~ Chrome 36-
|
|
297
297
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
298
|
-
var v8PrototypeDefineBug = DESCRIPTORS$f && fails$
|
|
298
|
+
var v8PrototypeDefineBug = DESCRIPTORS$f && fails$i(function () {
|
|
299
299
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
300
300
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
301
301
|
value: 42,
|
|
@@ -305,10 +305,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$f && fails$j(function () {
|
|
|
305
305
|
|
|
306
306
|
var objectDefineProperty = {};
|
|
307
307
|
|
|
308
|
-
var global$
|
|
308
|
+
var global$c = global$h;
|
|
309
309
|
var isObject$9 = isObject$b;
|
|
310
310
|
|
|
311
|
-
var document$1 = global$
|
|
311
|
+
var document$1 = global$c.document;
|
|
312
312
|
// typeof document.createElement is 'object' in old IE
|
|
313
313
|
var EXISTS$1 = isObject$9(document$1) && isObject$9(document$1.createElement);
|
|
314
314
|
|
|
@@ -317,11 +317,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
var DESCRIPTORS$e = descriptors;
|
|
320
|
-
var fails$
|
|
320
|
+
var fails$h = fails$n;
|
|
321
321
|
var createElement = documentCreateElement$2;
|
|
322
322
|
|
|
323
323
|
// Thanks to IE8 for its funny defineProperty
|
|
324
|
-
var ie8DomDefine = !DESCRIPTORS$e && !fails$
|
|
324
|
+
var ie8DomDefine = !DESCRIPTORS$e && !fails$h(function () {
|
|
325
325
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
326
326
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
327
327
|
get: function () { return 7; }
|
|
@@ -336,7 +336,7 @@ var functionCall = NATIVE_BIND$1 ? call$d.bind(call$d) : function () {
|
|
|
336
336
|
return call$d.apply(call$d, arguments);
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
var global$
|
|
339
|
+
var global$b = global$h;
|
|
340
340
|
var isCallable$j = isCallable$l;
|
|
341
341
|
|
|
342
342
|
var aFunction = function (argument) {
|
|
@@ -344,7 +344,7 @@ var aFunction = function (argument) {
|
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
var getBuiltIn$6 = function (namespace, method) {
|
|
347
|
-
return arguments.length < 2 ? aFunction(global$
|
|
347
|
+
return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
|
348
348
|
};
|
|
349
349
|
|
|
350
350
|
var uncurryThis$i = functionUncurryThis;
|
|
@@ -378,29 +378,29 @@ var tryToString$1 = function (argument) {
|
|
|
378
378
|
var isCallable$h = isCallable$l;
|
|
379
379
|
var tryToString = tryToString$1;
|
|
380
380
|
|
|
381
|
-
var $TypeError$
|
|
381
|
+
var $TypeError$9 = TypeError;
|
|
382
382
|
|
|
383
383
|
// `Assert: IsCallable(argument) is true`
|
|
384
|
-
var aCallable$
|
|
384
|
+
var aCallable$2 = function (argument) {
|
|
385
385
|
if (isCallable$h(argument)) return argument;
|
|
386
|
-
throw new $TypeError$
|
|
386
|
+
throw new $TypeError$9(tryToString(argument) + ' is not a function');
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
-
var aCallable$
|
|
389
|
+
var aCallable$1 = aCallable$2;
|
|
390
390
|
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
391
391
|
|
|
392
392
|
// `GetMethod` abstract operation
|
|
393
393
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
394
394
|
var getMethod$2 = function (V, P) {
|
|
395
395
|
var func = V[P];
|
|
396
|
-
return isNullOrUndefined$1(func) ? undefined : aCallable$
|
|
396
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
|
|
397
397
|
};
|
|
398
398
|
|
|
399
399
|
var call$c = functionCall;
|
|
400
400
|
var isCallable$g = isCallable$l;
|
|
401
401
|
var isObject$8 = isObject$b;
|
|
402
402
|
|
|
403
|
-
var $TypeError$
|
|
403
|
+
var $TypeError$8 = TypeError;
|
|
404
404
|
|
|
405
405
|
// `OrdinaryToPrimitive` abstract operation
|
|
406
406
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -409,7 +409,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
409
409
|
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
|
|
410
410
|
if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
|
|
411
411
|
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
|
|
412
|
-
throw new $TypeError$
|
|
412
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
413
413
|
};
|
|
414
414
|
|
|
415
415
|
var call$b = functionCall;
|
|
@@ -419,7 +419,7 @@ var getMethod$1 = getMethod$2;
|
|
|
419
419
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
420
420
|
var wellKnownSymbol$d = wellKnownSymbol$e;
|
|
421
421
|
|
|
422
|
-
var $TypeError$
|
|
422
|
+
var $TypeError$7 = TypeError;
|
|
423
423
|
var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
|
|
424
424
|
|
|
425
425
|
// `ToPrimitive` abstract operation
|
|
@@ -432,7 +432,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
432
432
|
if (pref === undefined) pref = 'default';
|
|
433
433
|
result = call$b(exoticToPrim, input, pref);
|
|
434
434
|
if (!isObject$7(result) || isSymbol$2(result)) return result;
|
|
435
|
-
throw new $TypeError$
|
|
435
|
+
throw new $TypeError$7("Can't convert object to primitive value");
|
|
436
436
|
}
|
|
437
437
|
if (pref === undefined) pref = 'number';
|
|
438
438
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -454,7 +454,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
|
454
454
|
var anObject$8 = anObject$9;
|
|
455
455
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
456
456
|
|
|
457
|
-
var $TypeError$
|
|
457
|
+
var $TypeError$6 = TypeError;
|
|
458
458
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
459
459
|
var $defineProperty = Object.defineProperty;
|
|
460
460
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -487,7 +487,7 @@ objectDefineProperty.f = DESCRIPTORS$d ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
487
487
|
if (IE8_DOM_DEFINE$1) try {
|
|
488
488
|
return $defineProperty(O, P, Attributes);
|
|
489
489
|
} catch (error) { /* empty */ }
|
|
490
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
490
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
|
|
491
491
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
492
492
|
return O;
|
|
493
493
|
};
|
|
@@ -541,19 +541,19 @@ var toLength$1 = toLength$2;
|
|
|
541
541
|
|
|
542
542
|
// `LengthOfArrayLike` abstract operation
|
|
543
543
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
544
|
-
var lengthOfArrayLike$
|
|
544
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
545
545
|
return toLength$1(obj.length);
|
|
546
546
|
};
|
|
547
547
|
|
|
548
548
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
549
549
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
550
|
-
var lengthOfArrayLike$
|
|
550
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
551
551
|
|
|
552
552
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
553
|
-
var createMethod$
|
|
553
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
554
554
|
return function ($this, el, fromIndex) {
|
|
555
555
|
var O = toIndexedObject$4($this);
|
|
556
|
-
var length = lengthOfArrayLike$
|
|
556
|
+
var length = lengthOfArrayLike$2(O);
|
|
557
557
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
558
558
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
559
559
|
var value;
|
|
@@ -573,10 +573,10 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
573
573
|
var arrayIncludes = {
|
|
574
574
|
// `Array.prototype.includes` method
|
|
575
575
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
576
|
-
includes: createMethod$
|
|
576
|
+
includes: createMethod$1(true),
|
|
577
577
|
// `Array.prototype.indexOf` method
|
|
578
578
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
579
|
-
indexOf: createMethod$
|
|
579
|
+
indexOf: createMethod$1(false)
|
|
580
580
|
};
|
|
581
581
|
|
|
582
582
|
var hiddenKeys$4 = {};
|
|
@@ -764,10 +764,10 @@ var addToUnscopables$3 = function (key) {
|
|
|
764
764
|
|
|
765
765
|
var iterators = {};
|
|
766
766
|
|
|
767
|
-
var global$
|
|
767
|
+
var global$a = global$h;
|
|
768
768
|
var isCallable$f = isCallable$l;
|
|
769
769
|
|
|
770
|
-
var WeakMap$1 = global$
|
|
770
|
+
var WeakMap$1 = global$a.WeakMap;
|
|
771
771
|
|
|
772
772
|
var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
773
773
|
|
|
@@ -792,7 +792,7 @@ var createNonEnumerableProperty$9 = DESCRIPTORS$b ? function (object, key, value
|
|
|
792
792
|
};
|
|
793
793
|
|
|
794
794
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
795
|
-
var global$
|
|
795
|
+
var global$9 = global$h;
|
|
796
796
|
var isObject$6 = isObject$b;
|
|
797
797
|
var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
|
|
798
798
|
var hasOwn$a = hasOwnProperty_1;
|
|
@@ -801,8 +801,8 @@ var sharedKey$1 = sharedKey$3;
|
|
|
801
801
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
802
802
|
|
|
803
803
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
804
|
-
var TypeError$1 = global$
|
|
805
|
-
var WeakMap = global$
|
|
804
|
+
var TypeError$1 = global$9.TypeError;
|
|
805
|
+
var WeakMap = global$9.WeakMap;
|
|
806
806
|
var set, get, has;
|
|
807
807
|
|
|
808
808
|
var enforce = function (it) {
|
|
@@ -939,7 +939,7 @@ if (!isCallable$e(store.inspectSource)) {
|
|
|
939
939
|
var inspectSource$1 = store.inspectSource;
|
|
940
940
|
|
|
941
941
|
var uncurryThis$f = functionUncurryThis;
|
|
942
|
-
var fails$
|
|
942
|
+
var fails$g = fails$n;
|
|
943
943
|
var isCallable$d = isCallable$l;
|
|
944
944
|
var hasOwn$7 = hasOwnProperty_1;
|
|
945
945
|
var DESCRIPTORS$8 = descriptors;
|
|
@@ -956,7 +956,7 @@ var stringSlice$6 = uncurryThis$f(''.slice);
|
|
|
956
956
|
var replace$6 = uncurryThis$f(''.replace);
|
|
957
957
|
var join = uncurryThis$f([].join);
|
|
958
958
|
|
|
959
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$
|
|
959
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$g(function () {
|
|
960
960
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
961
961
|
});
|
|
962
962
|
|
|
@@ -1072,7 +1072,7 @@ var copyConstructorProperties$3 = function (target, source, exceptions) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
1074
|
|
|
1075
|
-
var fails$
|
|
1075
|
+
var fails$f = fails$n;
|
|
1076
1076
|
var isCallable$b = isCallable$l;
|
|
1077
1077
|
|
|
1078
1078
|
var replacement = /#|\.prototype\./;
|
|
@@ -1081,7 +1081,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
1081
1081
|
var value = data[normalize(feature)];
|
|
1082
1082
|
return value === POLYFILL ? true
|
|
1083
1083
|
: value === NATIVE ? false
|
|
1084
|
-
: isCallable$b(detection) ? fails$
|
|
1084
|
+
: isCallable$b(detection) ? fails$f(detection)
|
|
1085
1085
|
: !!detection;
|
|
1086
1086
|
};
|
|
1087
1087
|
|
|
@@ -1095,7 +1095,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
1095
1095
|
|
|
1096
1096
|
var isForced_1 = isForced$2;
|
|
1097
1097
|
|
|
1098
|
-
var global$
|
|
1098
|
+
var global$8 = global$h;
|
|
1099
1099
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1100
1100
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;
|
|
1101
1101
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -1124,11 +1124,11 @@ var _export = function (options, source) {
|
|
|
1124
1124
|
var STATIC = options.stat;
|
|
1125
1125
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1126
1126
|
if (GLOBAL) {
|
|
1127
|
-
target = global$
|
|
1127
|
+
target = global$8;
|
|
1128
1128
|
} else if (STATIC) {
|
|
1129
|
-
target = global$
|
|
1129
|
+
target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1130
1130
|
} else {
|
|
1131
|
-
target = global$
|
|
1131
|
+
target = global$8[TARGET] && global$8[TARGET].prototype;
|
|
1132
1132
|
}
|
|
1133
1133
|
if (target) for (key in source) {
|
|
1134
1134
|
sourceProperty = source[key];
|
|
@@ -1150,9 +1150,9 @@ var _export = function (options, source) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
1152
|
|
|
1153
|
-
var fails$
|
|
1153
|
+
var fails$e = fails$n;
|
|
1154
1154
|
|
|
1155
|
-
var correctPrototypeGetter = !fails$
|
|
1155
|
+
var correctPrototypeGetter = !fails$e(function () {
|
|
1156
1156
|
function F() { /* empty */ }
|
|
1157
1157
|
F.prototype.constructor = null;
|
|
1158
1158
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1161,7 +1161,7 @@ var correctPrototypeGetter = !fails$f(function () {
|
|
|
1161
1161
|
|
|
1162
1162
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1163
1163
|
var isCallable$a = isCallable$l;
|
|
1164
|
-
var toObject$
|
|
1164
|
+
var toObject$4 = toObject$6;
|
|
1165
1165
|
var sharedKey = sharedKey$3;
|
|
1166
1166
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1167
1167
|
|
|
@@ -1173,7 +1173,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1173
1173
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1174
1174
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1175
1175
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1176
|
-
var object = toObject$
|
|
1176
|
+
var object = toObject$4(O);
|
|
1177
1177
|
if (hasOwn$5(object, IE_PROTO)) return object[IE_PROTO];
|
|
1178
1178
|
var constructor = object.constructor;
|
|
1179
1179
|
if (isCallable$a(constructor) && object instanceof constructor) {
|
|
@@ -1181,7 +1181,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1181
1181
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1182
1182
|
};
|
|
1183
1183
|
|
|
1184
|
-
var fails$
|
|
1184
|
+
var fails$d = fails$n;
|
|
1185
1185
|
var isCallable$9 = isCallable$l;
|
|
1186
1186
|
var isObject$5 = isObject$b;
|
|
1187
1187
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1206,7 +1206,7 @@ if ([].keys) {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$
|
|
1209
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$d(function () {
|
|
1210
1210
|
var test = {};
|
|
1211
1211
|
// FF44- legacy iterators case
|
|
1212
1212
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1257,12 +1257,12 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1257
1257
|
};
|
|
1258
1258
|
|
|
1259
1259
|
var uncurryThis$d = functionUncurryThis;
|
|
1260
|
-
var aCallable
|
|
1260
|
+
var aCallable = aCallable$2;
|
|
1261
1261
|
|
|
1262
1262
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1263
1263
|
try {
|
|
1264
1264
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1265
|
-
return uncurryThis$d(aCallable
|
|
1265
|
+
return uncurryThis$d(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1266
1266
|
} catch (error) { /* empty */ }
|
|
1267
1267
|
};
|
|
1268
1268
|
|
|
@@ -1275,11 +1275,11 @@ var isPossiblePrototype$1 = function (argument) {
|
|
|
1275
1275
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1276
1276
|
|
|
1277
1277
|
var $String$2 = String;
|
|
1278
|
-
var $TypeError$
|
|
1278
|
+
var $TypeError$5 = TypeError;
|
|
1279
1279
|
|
|
1280
1280
|
var aPossiblePrototype$1 = function (argument) {
|
|
1281
1281
|
if (isPossiblePrototype(argument)) return argument;
|
|
1282
|
-
throw new $TypeError$
|
|
1282
|
+
throw new $TypeError$5("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1283
1283
|
};
|
|
1284
1284
|
|
|
1285
1285
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1311,7 +1311,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1311
1311
|
};
|
|
1312
1312
|
}() : undefined);
|
|
1313
1313
|
|
|
1314
|
-
var $$
|
|
1314
|
+
var $$b = _export;
|
|
1315
1315
|
var call$9 = functionCall;
|
|
1316
1316
|
var FunctionName = functionName;
|
|
1317
1317
|
var isCallable$8 = isCallable$l;
|
|
@@ -1399,7 +1399,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1399
1399
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1400
1400
|
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1401
1401
|
}
|
|
1402
|
-
} else $$
|
|
1402
|
+
} else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
// define iterator
|
|
@@ -1522,7 +1522,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1522
1522
|
|
|
1523
1523
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1524
1524
|
|
|
1525
|
-
var global$
|
|
1525
|
+
var global$7 = global$h;
|
|
1526
1526
|
var DOMIterables = domIterables;
|
|
1527
1527
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1528
1528
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1554,7 +1554,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1554
1554
|
};
|
|
1555
1555
|
|
|
1556
1556
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1557
|
-
handlePrototype(global$
|
|
1557
|
+
handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
1560
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1562,12 +1562,12 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
|
1562
1562
|
var DESCRIPTORS$6 = descriptors;
|
|
1563
1563
|
var uncurryThis$c = functionUncurryThis;
|
|
1564
1564
|
var call$8 = functionCall;
|
|
1565
|
-
var fails$
|
|
1565
|
+
var fails$c = fails$n;
|
|
1566
1566
|
var objectKeys = objectKeys$2;
|
|
1567
1567
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1568
1568
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1569
|
-
var toObject$
|
|
1570
|
-
var IndexedObject
|
|
1569
|
+
var toObject$3 = toObject$6;
|
|
1570
|
+
var IndexedObject = indexedObject;
|
|
1571
1571
|
|
|
1572
1572
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1573
1573
|
var $assign = Object.assign;
|
|
@@ -1577,7 +1577,7 @@ var concat$1 = uncurryThis$c([].concat);
|
|
|
1577
1577
|
|
|
1578
1578
|
// `Object.assign` method
|
|
1579
1579
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1580
|
-
var objectAssign = !$assign || fails$
|
|
1580
|
+
var objectAssign = !$assign || fails$c(function () {
|
|
1581
1581
|
// should have correct order of operations (Edge bug)
|
|
1582
1582
|
if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1583
1583
|
enumerable: true,
|
|
@@ -1598,13 +1598,13 @@ var objectAssign = !$assign || fails$d(function () {
|
|
|
1598
1598
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1599
1599
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1600
1600
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1601
|
-
var T = toObject$
|
|
1601
|
+
var T = toObject$3(target);
|
|
1602
1602
|
var argumentsLength = arguments.length;
|
|
1603
1603
|
var index = 1;
|
|
1604
1604
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1605
1605
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1606
1606
|
while (argumentsLength > index) {
|
|
1607
|
-
var S = IndexedObject
|
|
1607
|
+
var S = IndexedObject(arguments[index++]);
|
|
1608
1608
|
var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1609
1609
|
var length = keys.length;
|
|
1610
1610
|
var j = 0;
|
|
@@ -1616,34 +1616,34 @@ var objectAssign = !$assign || fails$d(function () {
|
|
|
1616
1616
|
} return T;
|
|
1617
1617
|
} : $assign;
|
|
1618
1618
|
|
|
1619
|
-
var $$
|
|
1619
|
+
var $$a = _export;
|
|
1620
1620
|
var assign = objectAssign;
|
|
1621
1621
|
|
|
1622
1622
|
// `Object.assign` method
|
|
1623
1623
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1624
1624
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1625
|
-
$$
|
|
1625
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1626
1626
|
assign: assign
|
|
1627
1627
|
});
|
|
1628
1628
|
|
|
1629
|
-
let _$
|
|
1630
|
-
_t$
|
|
1631
|
-
const FormFieldWrapper = styled.div(_t$
|
|
1629
|
+
let _$7 = t => t,
|
|
1630
|
+
_t$7;
|
|
1631
|
+
const FormFieldWrapper = styled.div(_t$7 || (_t$7 = _$7`
|
|
1632
1632
|
margin-bottom: var(--goa-space-l);
|
|
1633
1633
|
`));
|
|
1634
1634
|
|
|
1635
|
-
var $$
|
|
1636
|
-
var toObject$
|
|
1637
|
-
var lengthOfArrayLike$
|
|
1635
|
+
var $$9 = _export;
|
|
1636
|
+
var toObject$2 = toObject$6;
|
|
1637
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1638
1638
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
|
|
1639
1639
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
1640
1640
|
|
|
1641
1641
|
// `Array.prototype.at` method
|
|
1642
1642
|
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
1643
|
-
$$
|
|
1643
|
+
$$9({ target: 'Array', proto: true }, {
|
|
1644
1644
|
at: function at(index) {
|
|
1645
|
-
var O = toObject$
|
|
1646
|
-
var len = lengthOfArrayLike$
|
|
1645
|
+
var O = toObject$2(this);
|
|
1646
|
+
var len = lengthOfArrayLike$1(O);
|
|
1647
1647
|
var relativeIndex = toIntegerOrInfinity$3(index);
|
|
1648
1648
|
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
1649
1649
|
return (k < 0 || k >= len) ? undefined : O[k];
|
|
@@ -1680,7 +1680,7 @@ var tryGet = function (it, key) {
|
|
|
1680
1680
|
};
|
|
1681
1681
|
|
|
1682
1682
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1683
|
-
var classof$
|
|
1683
|
+
var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1684
1684
|
var O, tag, result;
|
|
1685
1685
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1686
1686
|
// @@toStringTag case
|
|
@@ -1691,12 +1691,12 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1691
1691
|
: (result = classofRaw(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
|
|
1692
1692
|
};
|
|
1693
1693
|
|
|
1694
|
-
var classof$
|
|
1694
|
+
var classof$5 = classof$6;
|
|
1695
1695
|
|
|
1696
1696
|
var $String$1 = String;
|
|
1697
1697
|
|
|
1698
1698
|
var toString$a = function (argument) {
|
|
1699
|
-
if (classof$
|
|
1699
|
+
if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1700
1700
|
return $String$1(argument);
|
|
1701
1701
|
};
|
|
1702
1702
|
|
|
@@ -1718,13 +1718,13 @@ var regexpFlags$1 = function () {
|
|
|
1718
1718
|
return result;
|
|
1719
1719
|
};
|
|
1720
1720
|
|
|
1721
|
-
var fails$
|
|
1722
|
-
var global$
|
|
1721
|
+
var fails$b = fails$n;
|
|
1722
|
+
var global$6 = global$h;
|
|
1723
1723
|
|
|
1724
1724
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1725
|
-
var $RegExp$2 = global$
|
|
1725
|
+
var $RegExp$2 = global$6.RegExp;
|
|
1726
1726
|
|
|
1727
|
-
var UNSUPPORTED_Y$2 = fails$
|
|
1727
|
+
var UNSUPPORTED_Y$2 = fails$b(function () {
|
|
1728
1728
|
var re = $RegExp$2('a', 'y');
|
|
1729
1729
|
re.lastIndex = 2;
|
|
1730
1730
|
return re.exec('abcd') !== null;
|
|
@@ -1732,11 +1732,11 @@ var UNSUPPORTED_Y$2 = fails$c(function () {
|
|
|
1732
1732
|
|
|
1733
1733
|
// UC Browser bug
|
|
1734
1734
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1735
|
-
var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails$
|
|
1735
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails$b(function () {
|
|
1736
1736
|
return !$RegExp$2('a', 'y').sticky;
|
|
1737
1737
|
});
|
|
1738
1738
|
|
|
1739
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$
|
|
1739
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$b(function () {
|
|
1740
1740
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1741
1741
|
var re = $RegExp$2('^r', 'gy');
|
|
1742
1742
|
re.lastIndex = 2;
|
|
@@ -1749,24 +1749,24 @@ var regexpStickyHelpers = {
|
|
|
1749
1749
|
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
1750
1750
|
};
|
|
1751
1751
|
|
|
1752
|
-
var fails$
|
|
1753
|
-
var global$
|
|
1752
|
+
var fails$a = fails$n;
|
|
1753
|
+
var global$5 = global$h;
|
|
1754
1754
|
|
|
1755
1755
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1756
|
-
var $RegExp$1 = global$
|
|
1756
|
+
var $RegExp$1 = global$5.RegExp;
|
|
1757
1757
|
|
|
1758
|
-
var regexpUnsupportedDotAll = fails$
|
|
1758
|
+
var regexpUnsupportedDotAll = fails$a(function () {
|
|
1759
1759
|
var re = $RegExp$1('.', 's');
|
|
1760
1760
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1761
1761
|
});
|
|
1762
1762
|
|
|
1763
|
-
var fails$
|
|
1764
|
-
var global$
|
|
1763
|
+
var fails$9 = fails$n;
|
|
1764
|
+
var global$4 = global$h;
|
|
1765
1765
|
|
|
1766
1766
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1767
|
-
var $RegExp = global$
|
|
1767
|
+
var $RegExp = global$4.RegExp;
|
|
1768
1768
|
|
|
1769
|
-
var regexpUnsupportedNcg = fails$
|
|
1769
|
+
var regexpUnsupportedNcg = fails$9(function () {
|
|
1770
1770
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1771
1771
|
return re.exec('b').groups.a !== 'b' ||
|
|
1772
1772
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1889,18 +1889,18 @@ if (PATCH) {
|
|
|
1889
1889
|
|
|
1890
1890
|
var regexpExec$2 = patchedExec;
|
|
1891
1891
|
|
|
1892
|
-
var $$
|
|
1892
|
+
var $$8 = _export;
|
|
1893
1893
|
var exec$2 = regexpExec$2;
|
|
1894
1894
|
|
|
1895
1895
|
// `RegExp.prototype.exec` method
|
|
1896
1896
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1897
|
-
$$
|
|
1897
|
+
$$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
|
1898
1898
|
exec: exec$2
|
|
1899
1899
|
});
|
|
1900
1900
|
|
|
1901
1901
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1902
1902
|
|
|
1903
|
-
var $$
|
|
1903
|
+
var $$7 = _export;
|
|
1904
1904
|
var call$6 = functionCall;
|
|
1905
1905
|
var isCallable$6 = isCallable$l;
|
|
1906
1906
|
var anObject$3 = anObject$9;
|
|
@@ -1920,7 +1920,7 @@ var nativeTest = /./.test;
|
|
|
1920
1920
|
|
|
1921
1921
|
// `RegExp.prototype.test` method
|
|
1922
1922
|
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
1923
|
-
$$
|
|
1923
|
+
$$7({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
1924
1924
|
test: function (S) {
|
|
1925
1925
|
var R = anObject$3(this);
|
|
1926
1926
|
var string = toString$8(S);
|
|
@@ -1933,23 +1933,23 @@ $$8({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
|
|
1936
|
-
var $$
|
|
1936
|
+
var $$6 = _export;
|
|
1937
1937
|
var uncurryThis$a = functionUncurryThis;
|
|
1938
1938
|
var requireObjectCoercible$3 = requireObjectCoercible$7;
|
|
1939
1939
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
|
|
1940
1940
|
var toString$7 = toString$a;
|
|
1941
|
-
var fails$
|
|
1941
|
+
var fails$8 = fails$n;
|
|
1942
1942
|
|
|
1943
1943
|
var charAt$5 = uncurryThis$a(''.charAt);
|
|
1944
1944
|
|
|
1945
|
-
var FORCED$
|
|
1945
|
+
var FORCED$2 = fails$8(function () {
|
|
1946
1946
|
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
1947
1947
|
return '𠮷'.at(-2) !== '\uD842';
|
|
1948
1948
|
});
|
|
1949
1949
|
|
|
1950
1950
|
// `String.prototype.at` method
|
|
1951
1951
|
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
1952
|
-
$$
|
|
1952
|
+
$$6({ target: 'String', proto: true, forced: FORCED$2 }, {
|
|
1953
1953
|
at: function at(index) {
|
|
1954
1954
|
var S = toString$7(requireObjectCoercible$3(this));
|
|
1955
1955
|
var len = S.length;
|
|
@@ -1975,7 +1975,7 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
|
|
|
1975
1975
|
var call$4 = functionCall;
|
|
1976
1976
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
1977
1977
|
var regexpExec$1 = regexpExec$2;
|
|
1978
|
-
var fails$
|
|
1978
|
+
var fails$7 = fails$n;
|
|
1979
1979
|
var wellKnownSymbol$5 = wellKnownSymbol$e;
|
|
1980
1980
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
|
|
1981
1981
|
|
|
@@ -1985,14 +1985,14 @@ var RegExpPrototype$4 = RegExp.prototype;
|
|
|
1985
1985
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1986
1986
|
var SYMBOL = wellKnownSymbol$5(KEY);
|
|
1987
1987
|
|
|
1988
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
1988
|
+
var DELEGATES_TO_SYMBOL = !fails$7(function () {
|
|
1989
1989
|
// String methods call symbol-named RegExp methods
|
|
1990
1990
|
var O = {};
|
|
1991
1991
|
O[SYMBOL] = function () { return 7; };
|
|
1992
1992
|
return ''[KEY](O) !== 7;
|
|
1993
1993
|
});
|
|
1994
1994
|
|
|
1995
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
1995
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
|
|
1996
1996
|
// Symbol-named RegExp methods call .exec
|
|
1997
1997
|
var execCalled = false;
|
|
1998
1998
|
var re = /a/;
|
|
@@ -2055,7 +2055,7 @@ var charAt$4 = uncurryThis$9(''.charAt);
|
|
|
2055
2055
|
var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
|
|
2056
2056
|
var stringSlice$4 = uncurryThis$9(''.slice);
|
|
2057
2057
|
|
|
2058
|
-
var createMethod
|
|
2058
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
2059
2059
|
return function ($this, pos) {
|
|
2060
2060
|
var S = toString$6(requireObjectCoercible$2($this));
|
|
2061
2061
|
var position = toIntegerOrInfinity$1(pos);
|
|
@@ -2077,10 +2077,10 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
|
2077
2077
|
var stringMultibyte = {
|
|
2078
2078
|
// `String.prototype.codePointAt` method
|
|
2079
2079
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
2080
|
-
codeAt: createMethod
|
|
2080
|
+
codeAt: createMethod(false),
|
|
2081
2081
|
// `String.prototype.at` method
|
|
2082
2082
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
2083
|
-
charAt: createMethod
|
|
2083
|
+
charAt: createMethod(true)
|
|
2084
2084
|
};
|
|
2085
2085
|
|
|
2086
2086
|
var charAt$3 = stringMultibyte.charAt;
|
|
@@ -2092,7 +2092,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
|
|
|
2092
2092
|
};
|
|
2093
2093
|
|
|
2094
2094
|
var uncurryThis$8 = functionUncurryThis;
|
|
2095
|
-
var toObject$
|
|
2095
|
+
var toObject$1 = toObject$6;
|
|
2096
2096
|
|
|
2097
2097
|
var floor = Math.floor;
|
|
2098
2098
|
var charAt$2 = uncurryThis$8(''.charAt);
|
|
@@ -2109,7 +2109,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2109
2109
|
var m = captures.length;
|
|
2110
2110
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2111
2111
|
if (namedCaptures !== undefined) {
|
|
2112
|
-
namedCaptures = toObject$
|
|
2112
|
+
namedCaptures = toObject$1(namedCaptures);
|
|
2113
2113
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
2114
2114
|
}
|
|
2115
2115
|
return replace$4(replacement, symbols, function (match, ch) {
|
|
@@ -2140,10 +2140,10 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2140
2140
|
var call$3 = functionCall;
|
|
2141
2141
|
var anObject$2 = anObject$9;
|
|
2142
2142
|
var isCallable$5 = isCallable$l;
|
|
2143
|
-
var classof$
|
|
2143
|
+
var classof$4 = classofRaw$1;
|
|
2144
2144
|
var regexpExec = regexpExec$2;
|
|
2145
2145
|
|
|
2146
|
-
var $TypeError$
|
|
2146
|
+
var $TypeError$4 = TypeError;
|
|
2147
2147
|
|
|
2148
2148
|
// `RegExpExec` abstract operation
|
|
2149
2149
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -2154,15 +2154,15 @@ var regexpExecAbstract = function (R, S) {
|
|
|
2154
2154
|
if (result !== null) anObject$2(result);
|
|
2155
2155
|
return result;
|
|
2156
2156
|
}
|
|
2157
|
-
if (classof$
|
|
2158
|
-
throw new $TypeError$
|
|
2157
|
+
if (classof$4(R) === 'RegExp') return call$3(regexpExec, R, S);
|
|
2158
|
+
throw new $TypeError$4('RegExp#exec called on incompatible receiver');
|
|
2159
2159
|
};
|
|
2160
2160
|
|
|
2161
2161
|
var apply$2 = functionApply;
|
|
2162
2162
|
var call$2 = functionCall;
|
|
2163
2163
|
var uncurryThis$7 = functionUncurryThis;
|
|
2164
2164
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2165
|
-
var fails$
|
|
2165
|
+
var fails$6 = fails$n;
|
|
2166
2166
|
var anObject$1 = anObject$9;
|
|
2167
2167
|
var isCallable$4 = isCallable$l;
|
|
2168
2168
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
@@ -2203,7 +2203,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
2203
2203
|
return false;
|
|
2204
2204
|
})();
|
|
2205
2205
|
|
|
2206
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
2206
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$6(function () {
|
|
2207
2207
|
var re = /./;
|
|
2208
2208
|
re.exec = function () {
|
|
2209
2209
|
var result = [];
|
|
@@ -2697,34 +2697,34 @@ const onChangeForNumericControl = props => {
|
|
|
2697
2697
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2698
2698
|
const onChangeForCheckboxData = (data, name, value) => data ? !value ? data === null || data === void 0 ? void 0 : data.filter(item => item !== name) : [...data, name] : [name];
|
|
2699
2699
|
|
|
2700
|
-
let _$
|
|
2701
|
-
_t$
|
|
2702
|
-
_t2$
|
|
2703
|
-
styled.div(_t$
|
|
2700
|
+
let _$6 = t => t,
|
|
2701
|
+
_t$6,
|
|
2702
|
+
_t2$3;
|
|
2703
|
+
styled.div(_t$6 || (_t$6 = _$6`
|
|
2704
2704
|
height: 70vh;
|
|
2705
2705
|
overflow-y: auto;
|
|
2706
2706
|
padding-left: var(--goa-space-2xs);
|
|
2707
2707
|
padding-right: var(--goa-space-2xs);
|
|
2708
2708
|
`));
|
|
2709
|
-
const Visible = styled.div(_t2$
|
|
2709
|
+
const Visible = styled.div(_t2$3 || (_t2$3 = _$6`
|
|
2710
2710
|
display: ${0};
|
|
2711
2711
|
`), p => p.visible ? 'initial' : 'none');
|
|
2712
2712
|
|
|
2713
2713
|
const ADD_REGISTER_DATA_ACTION = 'jsonforms/register/data/add';
|
|
2714
2714
|
|
|
2715
|
-
var classof$
|
|
2715
|
+
var classof$3 = classofRaw$1;
|
|
2716
2716
|
|
|
2717
2717
|
// `IsArray` abstract operation
|
|
2718
2718
|
// https://tc39.es/ecma262/#sec-isarray
|
|
2719
2719
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2720
2720
|
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
2721
|
-
return classof$
|
|
2721
|
+
return classof$3(argument) === 'Array';
|
|
2722
2722
|
};
|
|
2723
2723
|
|
|
2724
2724
|
var DESCRIPTORS$5 = descriptors;
|
|
2725
2725
|
var isArray$1 = isArray$2;
|
|
2726
2726
|
|
|
2727
|
-
var $TypeError$
|
|
2727
|
+
var $TypeError$3 = TypeError;
|
|
2728
2728
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2729
2729
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2730
2730
|
|
|
@@ -2742,28 +2742,28 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$5 && !function () {
|
|
|
2742
2742
|
|
|
2743
2743
|
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2744
2744
|
if (isArray$1(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2745
|
-
throw new $TypeError$
|
|
2745
|
+
throw new $TypeError$3('Cannot set read only .length');
|
|
2746
2746
|
} return O.length = length;
|
|
2747
2747
|
} : function (O, length) {
|
|
2748
2748
|
return O.length = length;
|
|
2749
2749
|
};
|
|
2750
2750
|
|
|
2751
|
-
var $TypeError$
|
|
2751
|
+
var $TypeError$2 = TypeError;
|
|
2752
2752
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2753
2753
|
|
|
2754
2754
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2755
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
2755
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
|
|
2756
2756
|
return it;
|
|
2757
2757
|
};
|
|
2758
2758
|
|
|
2759
|
-
var $$
|
|
2760
|
-
var toObject
|
|
2761
|
-
var lengthOfArrayLike
|
|
2759
|
+
var $$5 = _export;
|
|
2760
|
+
var toObject = toObject$6;
|
|
2761
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
2762
2762
|
var setArrayLength = arraySetLength;
|
|
2763
2763
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2764
|
-
var fails$
|
|
2764
|
+
var fails$5 = fails$n;
|
|
2765
2765
|
|
|
2766
|
-
var INCORRECT_TO_LENGTH = fails$
|
|
2766
|
+
var INCORRECT_TO_LENGTH = fails$5(function () {
|
|
2767
2767
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2768
2768
|
});
|
|
2769
2769
|
|
|
@@ -2778,15 +2778,15 @@ var properErrorOnNonWritableLength = function () {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
};
|
|
2780
2780
|
|
|
2781
|
-
var FORCED$
|
|
2781
|
+
var FORCED$1 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2782
2782
|
|
|
2783
2783
|
// `Array.prototype.push` method
|
|
2784
2784
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2785
|
-
$$
|
|
2785
|
+
$$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
|
2786
2786
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2787
2787
|
push: function push(item) {
|
|
2788
|
-
var O = toObject
|
|
2789
|
-
var len = lengthOfArrayLike
|
|
2788
|
+
var O = toObject(this);
|
|
2789
|
+
var len = lengthOfArrayLike(O);
|
|
2790
2790
|
var argCount = arguments.length;
|
|
2791
2791
|
doesNotExceedSafeInteger(len + argCount);
|
|
2792
2792
|
for (var i = 0; i < argCount; i++) {
|
|
@@ -2871,7 +2871,7 @@ var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
|
|
|
2871
2871
|
};
|
|
2872
2872
|
|
|
2873
2873
|
var isObject$1 = isObject$b;
|
|
2874
|
-
var classof$
|
|
2874
|
+
var classof$2 = classofRaw$1;
|
|
2875
2875
|
var wellKnownSymbol$3 = wellKnownSymbol$e;
|
|
2876
2876
|
|
|
2877
2877
|
var MATCH$2 = wellKnownSymbol$3('match');
|
|
@@ -2880,7 +2880,7 @@ var MATCH$2 = wellKnownSymbol$3('match');
|
|
|
2880
2880
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2881
2881
|
var isRegexp = function (it) {
|
|
2882
2882
|
var isRegExp;
|
|
2883
|
-
return isObject$1(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$
|
|
2883
|
+
return isObject$1(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$2(it) === 'RegExp');
|
|
2884
2884
|
};
|
|
2885
2885
|
|
|
2886
2886
|
var call$1 = functionCall;
|
|
@@ -2934,7 +2934,7 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
2934
2934
|
};
|
|
2935
2935
|
|
|
2936
2936
|
var DESCRIPTORS$3 = descriptors;
|
|
2937
|
-
var global$
|
|
2937
|
+
var global$3 = global$h;
|
|
2938
2938
|
var uncurryThis$6 = functionUncurryThis;
|
|
2939
2939
|
var isForced = isForced_1;
|
|
2940
2940
|
var inheritIfRequired$1 = inheritIfRequired$2;
|
|
@@ -2948,7 +2948,7 @@ var getRegExpFlags$1 = regexpGetFlags;
|
|
|
2948
2948
|
var stickyHelpers = regexpStickyHelpers;
|
|
2949
2949
|
var proxyAccessor$1 = proxyAccessor$2;
|
|
2950
2950
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
2951
|
-
var fails$
|
|
2951
|
+
var fails$4 = fails$n;
|
|
2952
2952
|
var hasOwn$2 = hasOwnProperty_1;
|
|
2953
2953
|
var enforceInternalState = internalState.enforce;
|
|
2954
2954
|
var setSpecies = setSpecies$1;
|
|
@@ -2957,9 +2957,9 @@ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
|
2957
2957
|
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
2958
2958
|
|
|
2959
2959
|
var MATCH$1 = wellKnownSymbol$1('match');
|
|
2960
|
-
var NativeRegExp = global$
|
|
2960
|
+
var NativeRegExp = global$3.RegExp;
|
|
2961
2961
|
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
2962
|
-
var SyntaxError = global$
|
|
2962
|
+
var SyntaxError = global$3.SyntaxError;
|
|
2963
2963
|
var exec$1 = uncurryThis$6(RegExpPrototype$2.exec);
|
|
2964
2964
|
var charAt$1 = uncurryThis$6(''.charAt);
|
|
2965
2965
|
var replace$3 = uncurryThis$6(''.replace);
|
|
@@ -2977,7 +2977,7 @@ var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
|
|
|
2977
2977
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
2978
2978
|
|
|
2979
2979
|
var BASE_FORCED = DESCRIPTORS$3 &&
|
|
2980
|
-
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$
|
|
2980
|
+
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$4(function () {
|
|
2981
2981
|
re2[MATCH$1] = false;
|
|
2982
2982
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
2983
2983
|
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
|
|
@@ -3119,7 +3119,7 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
3119
3119
|
|
|
3120
3120
|
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
3121
3121
|
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
3122
|
-
defineBuiltIn$1(global$
|
|
3122
|
+
defineBuiltIn$1(global$3, 'RegExp', RegExpWrapper, { constructor: true });
|
|
3123
3123
|
}
|
|
3124
3124
|
|
|
3125
3125
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -3127,12 +3127,12 @@ setSpecies('RegExp');
|
|
|
3127
3127
|
|
|
3128
3128
|
var DESCRIPTORS$2 = descriptors;
|
|
3129
3129
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
3130
|
-
var classof$
|
|
3130
|
+
var classof$1 = classofRaw$1;
|
|
3131
3131
|
var defineBuiltInAccessor$1 = defineBuiltInAccessor$3;
|
|
3132
3132
|
var getInternalState = internalState.get;
|
|
3133
3133
|
|
|
3134
3134
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
3135
|
-
var $TypeError$
|
|
3135
|
+
var $TypeError$1 = TypeError;
|
|
3136
3136
|
|
|
3137
3137
|
// `RegExp.prototype.dotAll` getter
|
|
3138
3138
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
|
|
@@ -3143,10 +3143,10 @@ if (DESCRIPTORS$2 && UNSUPPORTED_DOT_ALL) {
|
|
|
3143
3143
|
if (this === RegExpPrototype$1) return;
|
|
3144
3144
|
// We can't use InternalStateModule.getterFor because
|
|
3145
3145
|
// we don't add metadata for regexps created by a literal.
|
|
3146
|
-
if (classof$
|
|
3146
|
+
if (classof$1(this) === 'RegExp') {
|
|
3147
3147
|
return !!getInternalState(this).dotAll;
|
|
3148
3148
|
}
|
|
3149
|
-
throw new $TypeError$
|
|
3149
|
+
throw new $TypeError$1('Incompatible receiver, RegExp required');
|
|
3150
3150
|
}
|
|
3151
3151
|
});
|
|
3152
3152
|
}
|
|
@@ -3155,14 +3155,14 @@ var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
|
3155
3155
|
var defineBuiltIn = defineBuiltIn$6;
|
|
3156
3156
|
var anObject = anObject$9;
|
|
3157
3157
|
var $toString = toString$a;
|
|
3158
|
-
var fails$
|
|
3158
|
+
var fails$3 = fails$n;
|
|
3159
3159
|
var getRegExpFlags = regexpGetFlags;
|
|
3160
3160
|
|
|
3161
3161
|
var TO_STRING = 'toString';
|
|
3162
3162
|
var RegExpPrototype = RegExp.prototype;
|
|
3163
3163
|
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3164
3164
|
|
|
3165
|
-
var NOT_GENERIC = fails$
|
|
3165
|
+
var NOT_GENERIC = fails$3(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
3166
3166
|
// FF44- RegExp#toString has a wrong name
|
|
3167
3167
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
3168
3168
|
|
|
@@ -3299,11 +3299,15 @@ const GoAInputBaseControl = props => {
|
|
|
3299
3299
|
input,
|
|
3300
3300
|
required,
|
|
3301
3301
|
errors,
|
|
3302
|
-
path
|
|
3302
|
+
path,
|
|
3303
|
+
isStepperReview
|
|
3303
3304
|
} = props;
|
|
3304
3305
|
const InnerComponent = input;
|
|
3305
3306
|
const labelToUpdate = getLabelText(uischema.scope, label || '');
|
|
3306
|
-
checkFieldValidity(props);
|
|
3307
|
+
let modifiedErrors = checkFieldValidity(props);
|
|
3308
|
+
if (modifiedErrors === 'should be equal to one of the allowed values') {
|
|
3309
|
+
modifiedErrors = '';
|
|
3310
|
+
}
|
|
3307
3311
|
const getStepStatus = (props, value) => {
|
|
3308
3312
|
return {
|
|
3309
3313
|
id: props.id,
|
|
@@ -3335,8 +3339,8 @@ const GoAInputBaseControl = props => {
|
|
|
3335
3339
|
children: jsx(FormFieldWrapper, {
|
|
3336
3340
|
children: jsx(GoAFormItem, {
|
|
3337
3341
|
requirement: required ? 'required' : undefined,
|
|
3338
|
-
error:
|
|
3339
|
-
testId: `${path}`,
|
|
3342
|
+
error: modifiedErrors,
|
|
3343
|
+
testId: `${isStepperReview === true && 'review-base-'}${path}`,
|
|
3340
3344
|
label: (props === null || props === void 0 ? void 0 : props.noLabel) === true ? '' : labelToUpdate,
|
|
3341
3345
|
helpText: typeof ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.help) === 'string' ? (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.help : '',
|
|
3342
3346
|
children: jsx(InnerComponent, Object.assign({}, modifiedProps))
|
|
@@ -3346,9 +3350,9 @@ const GoAInputBaseControl = props => {
|
|
|
3346
3350
|
});
|
|
3347
3351
|
};
|
|
3348
3352
|
|
|
3349
|
-
var $$
|
|
3353
|
+
var $$4 = _export;
|
|
3350
3354
|
var DESCRIPTORS$1 = descriptors;
|
|
3351
|
-
var global$
|
|
3355
|
+
var global$2 = global$h;
|
|
3352
3356
|
var uncurryThis$5 = functionUncurryThis;
|
|
3353
3357
|
var hasOwn$1 = hasOwnProperty_1;
|
|
3354
3358
|
var isCallable$2 = isCallable$l;
|
|
@@ -3357,7 +3361,7 @@ var toString$3 = toString$a;
|
|
|
3357
3361
|
var defineBuiltInAccessor = defineBuiltInAccessor$3;
|
|
3358
3362
|
var copyConstructorProperties$1 = copyConstructorProperties$3;
|
|
3359
3363
|
|
|
3360
|
-
var NativeSymbol = global$
|
|
3364
|
+
var NativeSymbol = global$2.Symbol;
|
|
3361
3365
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
3362
3366
|
|
|
3363
3367
|
if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
@@ -3398,7 +3402,7 @@ if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
|
|
|
3398
3402
|
}
|
|
3399
3403
|
});
|
|
3400
3404
|
|
|
3401
|
-
$$
|
|
3405
|
+
$$4({ global: true, constructor: true, forced: true }, {
|
|
3402
3406
|
Symbol: SymbolWrapper
|
|
3403
3407
|
});
|
|
3404
3408
|
}
|
|
@@ -3654,7 +3658,7 @@ var arraySlice$1 = uncurryThis$4([].slice);
|
|
|
3654
3658
|
var uncurryThis$3 = functionUncurryThis;
|
|
3655
3659
|
var isArray = isArray$2;
|
|
3656
3660
|
var isCallable$1 = isCallable$l;
|
|
3657
|
-
var classof
|
|
3661
|
+
var classof = classofRaw$1;
|
|
3658
3662
|
var toString$2 = toString$a;
|
|
3659
3663
|
|
|
3660
3664
|
var push = uncurryThis$3([].push);
|
|
@@ -3667,7 +3671,7 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
3667
3671
|
for (var i = 0; i < rawLength; i++) {
|
|
3668
3672
|
var element = replacer[i];
|
|
3669
3673
|
if (typeof element == 'string') push(keys, element);
|
|
3670
|
-
else if (typeof element == 'number' || classof
|
|
3674
|
+
else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString$2(element));
|
|
3671
3675
|
}
|
|
3672
3676
|
var keysLength = keys.length;
|
|
3673
3677
|
var root = true;
|
|
@@ -3681,12 +3685,12 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
3681
3685
|
};
|
|
3682
3686
|
};
|
|
3683
3687
|
|
|
3684
|
-
var $$
|
|
3688
|
+
var $$3 = _export;
|
|
3685
3689
|
var getBuiltIn$1 = getBuiltIn$6;
|
|
3686
3690
|
var apply$1 = functionApply;
|
|
3687
3691
|
var call = functionCall;
|
|
3688
3692
|
var uncurryThis$2 = functionUncurryThis;
|
|
3689
|
-
var fails$
|
|
3693
|
+
var fails$2 = fails$n;
|
|
3690
3694
|
var isCallable = isCallable$l;
|
|
3691
3695
|
var isSymbol = isSymbol$3;
|
|
3692
3696
|
var arraySlice = arraySlice$1;
|
|
@@ -3705,7 +3709,7 @@ var tester = /[\uD800-\uDFFF]/g;
|
|
|
3705
3709
|
var low = /^[\uD800-\uDBFF]$/;
|
|
3706
3710
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
3707
3711
|
|
|
3708
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$
|
|
3712
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$2(function () {
|
|
3709
3713
|
var symbol = getBuiltIn$1('Symbol')('stringify detection');
|
|
3710
3714
|
// MS Edge converts symbol values to JSON as {}
|
|
3711
3715
|
return $stringify([symbol]) !== '[null]'
|
|
@@ -3716,7 +3720,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
|
|
|
3716
3720
|
});
|
|
3717
3721
|
|
|
3718
3722
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
3719
|
-
var ILL_FORMED_UNICODE = fails$
|
|
3723
|
+
var ILL_FORMED_UNICODE = fails$2(function () {
|
|
3720
3724
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
3721
3725
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
3722
3726
|
});
|
|
@@ -3744,7 +3748,7 @@ var fixIllFormed = function (match, offset, string) {
|
|
|
3744
3748
|
if ($stringify) {
|
|
3745
3749
|
// `JSON.stringify` method
|
|
3746
3750
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
3747
|
-
$$
|
|
3751
|
+
$$3({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
3748
3752
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3749
3753
|
stringify: function stringify(it, replacer, space) {
|
|
3750
3754
|
var args = arraySlice(arguments);
|
|
@@ -4050,6 +4054,7 @@ const EnumSelect = props => {
|
|
|
4050
4054
|
value: data,
|
|
4051
4055
|
disabled: !enabled,
|
|
4052
4056
|
relative: true,
|
|
4057
|
+
width: "100%",
|
|
4053
4058
|
filterable: autocompletion,
|
|
4054
4059
|
testId: `${id || label}-jsonform`
|
|
4055
4060
|
}, appliedUiSchemaOptions, {
|
|
@@ -4221,20 +4226,20 @@ const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({},
|
|
|
4221
4226
|
const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
|
|
4222
4227
|
const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
|
|
4223
4228
|
|
|
4224
|
-
var $$
|
|
4229
|
+
var $$2 = _export;
|
|
4225
4230
|
var $includes = arrayIncludes.includes;
|
|
4226
|
-
var fails$
|
|
4231
|
+
var fails$1 = fails$n;
|
|
4227
4232
|
var addToUnscopables = addToUnscopables$3;
|
|
4228
4233
|
|
|
4229
4234
|
// FF99+ bug
|
|
4230
|
-
var BROKEN_ON_SPARSE = fails$
|
|
4235
|
+
var BROKEN_ON_SPARSE = fails$1(function () {
|
|
4231
4236
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
4232
4237
|
return !Array(1).includes();
|
|
4233
4238
|
});
|
|
4234
4239
|
|
|
4235
4240
|
// `Array.prototype.includes` method
|
|
4236
4241
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4237
|
-
$$
|
|
4242
|
+
$$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
4238
4243
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
4239
4244
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
4240
4245
|
}
|
|
@@ -4245,11 +4250,11 @@ addToUnscopables('includes');
|
|
|
4245
4250
|
|
|
4246
4251
|
var isRegExp = isRegexp;
|
|
4247
4252
|
|
|
4248
|
-
var $TypeError
|
|
4253
|
+
var $TypeError = TypeError;
|
|
4249
4254
|
|
|
4250
4255
|
var notARegexp = function (it) {
|
|
4251
4256
|
if (isRegExp(it)) {
|
|
4252
|
-
throw new $TypeError
|
|
4257
|
+
throw new $TypeError("The method doesn't accept regular expressions");
|
|
4253
4258
|
} return it;
|
|
4254
4259
|
};
|
|
4255
4260
|
|
|
@@ -4269,7 +4274,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
4269
4274
|
} return false;
|
|
4270
4275
|
};
|
|
4271
4276
|
|
|
4272
|
-
var $$
|
|
4277
|
+
var $$1 = _export;
|
|
4273
4278
|
var uncurryThis$1 = functionUncurryThis;
|
|
4274
4279
|
var notARegExp = notARegexp;
|
|
4275
4280
|
var requireObjectCoercible = requireObjectCoercible$7;
|
|
@@ -4280,7 +4285,7 @@ var stringIndexOf = uncurryThis$1(''.indexOf);
|
|
|
4280
4285
|
|
|
4281
4286
|
// `String.prototype.includes` method
|
|
4282
4287
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
4283
|
-
$$
|
|
4288
|
+
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
4284
4289
|
includes: function includes(searchString /* , position = 0 */) {
|
|
4285
4290
|
return !!~stringIndexOf(
|
|
4286
4291
|
toString$1(requireObjectCoercible(this)),
|
|
@@ -4290,8 +4295,8 @@ $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
|
|
|
4290
4295
|
}
|
|
4291
4296
|
});
|
|
4292
4297
|
|
|
4293
|
-
let _$
|
|
4294
|
-
_t$
|
|
4298
|
+
let _$5 = t => t,
|
|
4299
|
+
_t$5;
|
|
4295
4300
|
const Checkboxes = ({
|
|
4296
4301
|
children,
|
|
4297
4302
|
orientation,
|
|
@@ -4303,7 +4308,7 @@ const Checkboxes = ({
|
|
|
4303
4308
|
children: children
|
|
4304
4309
|
});
|
|
4305
4310
|
};
|
|
4306
|
-
const CheckBoxGroupDiv = styled.div(_t$
|
|
4311
|
+
const CheckBoxGroupDiv = styled.div(_t$5 || (_t$5 = _$5`
|
|
4307
4312
|
.horizontal {
|
|
4308
4313
|
display: flex;
|
|
4309
4314
|
flex-direction: row;
|
|
@@ -4357,6 +4362,28 @@ const EnumCheckboxControl = props => {
|
|
|
4357
4362
|
const GoAEnumCheckboxGroupControl = withJsonFormsEnumProps(withTranslateProps(EnumCheckboxControl), true);
|
|
4358
4363
|
const GoACheckoutGroupControlTester = rankWith(18, and(isEnumControl, optionIs('format', 'checkbox')));
|
|
4359
4364
|
|
|
4365
|
+
const GoABaseInputReviewComponent = props => {
|
|
4366
|
+
// eslint-disable-next-line
|
|
4367
|
+
const {
|
|
4368
|
+
data,
|
|
4369
|
+
id
|
|
4370
|
+
} = props;
|
|
4371
|
+
let reviewText = data;
|
|
4372
|
+
const isBoolean = typeof data === 'boolean';
|
|
4373
|
+
if (isBoolean) {
|
|
4374
|
+
reviewText = data ? 'Yes' : 'No';
|
|
4375
|
+
}
|
|
4376
|
+
return jsx("div", {
|
|
4377
|
+
"data-testid": `review-control-${id}`,
|
|
4378
|
+
children: reviewText
|
|
4379
|
+
});
|
|
4380
|
+
};
|
|
4381
|
+
const GoInputBaseReview = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
|
|
4382
|
+
input: GoABaseInputReviewComponent,
|
|
4383
|
+
isStepperReview: true
|
|
4384
|
+
}));
|
|
4385
|
+
const GoInputBaseReviewControl = withJsonFormsControlProps(GoInputBaseReview);
|
|
4386
|
+
|
|
4360
4387
|
const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
|
|
4361
4388
|
return elements.map((child, index) => jsx("div", {
|
|
4362
4389
|
children: jsx(JsonFormsDispatch, {
|
|
@@ -4386,7 +4413,8 @@ const LayoutRenderer = ({
|
|
|
4386
4413
|
direction,
|
|
4387
4414
|
renderers,
|
|
4388
4415
|
cells,
|
|
4389
|
-
visible
|
|
4416
|
+
visible,
|
|
4417
|
+
width
|
|
4390
4418
|
}) => {
|
|
4391
4419
|
if (isEmpty$1(elements)) {
|
|
4392
4420
|
return null;
|
|
@@ -4395,7 +4423,7 @@ const LayoutRenderer = ({
|
|
|
4395
4423
|
return jsx(Visible, {
|
|
4396
4424
|
visible: visible,
|
|
4397
4425
|
children: jsx(GoAGrid, {
|
|
4398
|
-
minChildWidth:
|
|
4426
|
+
minChildWidth: width || '10ch',
|
|
4399
4427
|
children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
|
|
4400
4428
|
})
|
|
4401
4429
|
});
|
|
@@ -4408,68 +4436,17 @@ const LayoutRenderer = ({
|
|
|
4408
4436
|
}
|
|
4409
4437
|
};
|
|
4410
4438
|
|
|
4411
|
-
let _$5 = t => t,
|
|
4412
|
-
_t$5,
|
|
4413
|
-
_t2$3;
|
|
4414
|
-
const Grid = styled.div(_t$5 || (_t$5 = _$5`
|
|
4415
|
-
display: flex;
|
|
4416
|
-
flex-direction: row;
|
|
4417
|
-
flex-wrap: wrap;
|
|
4418
|
-
justify-content: space-between;
|
|
4419
|
-
align-items: stretch;
|
|
4420
|
-
`));
|
|
4421
|
-
const GridItem = styled.div(_t2$3 || (_t2$3 = _$5`
|
|
4422
|
-
margin-bottom: ${0};
|
|
4423
|
-
|
|
4424
|
-
> .goa-card {
|
|
4425
|
-
height: 100% !important;
|
|
4426
|
-
width: 100% !important;
|
|
4427
|
-
}
|
|
4428
|
-
|
|
4429
|
-
> img {
|
|
4430
|
-
width: 100%;
|
|
4431
|
-
}
|
|
4432
|
-
|
|
4433
|
-
flex: 0 1
|
|
4434
|
-
${0};
|
|
4435
|
-
|
|
4436
|
-
@media (min-width: 768px) {
|
|
4437
|
-
flex-basis: ${0};
|
|
4438
|
-
}
|
|
4439
|
-
@media (min-width: 1024px) {
|
|
4440
|
-
flex-basis: ${0};
|
|
4441
|
-
}
|
|
4442
|
-
@media (min-width: 1280px) {
|
|
4443
|
-
flex-basis: ${0};
|
|
4444
|
-
}
|
|
4445
|
-
`), props => {
|
|
4446
|
-
var _a;
|
|
4447
|
-
return `${(_a = props.vSpacing) !== null && _a !== void 0 ? _a : 0}rem`;
|
|
4448
|
-
}, props => {
|
|
4449
|
-
var _a, _b;
|
|
4450
|
-
return props.sm === 12 || props.sm === undefined ? '100%' : `calc(${100 * ((_a = props === null || props === void 0 ? void 0 : props.sm) !== null && _a !== void 0 ? _a : 12) / 12}% - ${(_b = props.hSpacing) !== null && _b !== void 0 ? _b : 0}rem)`;
|
|
4451
|
-
}, props => {
|
|
4452
|
-
var _a, _b, _c;
|
|
4453
|
-
return props.md === 12 ? '100%' : `calc(${100 * ((_b = (_a = props === null || props === void 0 ? void 0 : props.md) !== null && _a !== void 0 ? _a : props.sm) !== null && _b !== void 0 ? _b : 12) / 12}% - ${(_c = props.hSpacing) !== null && _c !== void 0 ? _c : 0}rem)`;
|
|
4454
|
-
}, props => {
|
|
4455
|
-
var _a, _b, _c, _d;
|
|
4456
|
-
return props.lg === 12 ? '100%' : `calc(${100 * ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.lg) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.md) !== null && _b !== void 0 ? _b : props.sm) !== null && _c !== void 0 ? _c : 12) / 12}% - ${(_d = props.hSpacing) !== null && _d !== void 0 ? _d : 0}rem)`;
|
|
4457
|
-
}, props => {
|
|
4458
|
-
var _a, _b, _c, _d;
|
|
4459
|
-
return props.xl === 12 ? '100%' : `calc(${100 * ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.xl) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.md) !== null && _b !== void 0 ? _b : props.sm) !== null && _c !== void 0 ? _c : 12) / 12}% - ${(_d = props.hSpacing) !== null && _d !== void 0 ? _d : 0}rem)`;
|
|
4460
|
-
});
|
|
4461
|
-
|
|
4462
4439
|
let _$4 = t => t,
|
|
4463
4440
|
_t$4,
|
|
4464
4441
|
_t2$2,
|
|
4465
4442
|
_t3$2,
|
|
4466
4443
|
_t4$1,
|
|
4467
|
-
_t5,
|
|
4468
|
-
_t6,
|
|
4469
|
-
_t7,
|
|
4470
|
-
_t8,
|
|
4471
|
-
_t9,
|
|
4472
|
-
_t10;
|
|
4444
|
+
_t5$1,
|
|
4445
|
+
_t6$1,
|
|
4446
|
+
_t7$1,
|
|
4447
|
+
_t8$1,
|
|
4448
|
+
_t9$1,
|
|
4449
|
+
_t10$1;
|
|
4473
4450
|
const ReviewItem = styled.div(_t$4 || (_t$4 = _$4`
|
|
4474
4451
|
display: flex;
|
|
4475
4452
|
flex-direction: column;
|
|
@@ -4496,26 +4473,26 @@ const ReviewItemTitle = styled.div(_t4$1 || (_t4$1 = _$4`
|
|
|
4496
4473
|
line-height: var(--lh-lg);
|
|
4497
4474
|
font-weight: var(--fw-light);
|
|
4498
4475
|
`));
|
|
4499
|
-
const Anchor = styled.div(_t5 || (_t5 = _$4`
|
|
4476
|
+
const Anchor = styled.div(_t5$1 || (_t5$1 = _$4`
|
|
4500
4477
|
color: #0070c4;
|
|
4501
4478
|
text-decoration: underline;
|
|
4502
4479
|
outline: none;
|
|
4503
4480
|
cursor: pointer;
|
|
4504
4481
|
`));
|
|
4505
|
-
styled.div(_t6 || (_t6 = _$4`
|
|
4482
|
+
styled.div(_t6$1 || (_t6$1 = _$4`
|
|
4506
4483
|
margin-left: var(--goa-space-m);
|
|
4507
4484
|
`));
|
|
4508
|
-
styled.div(_t7 || (_t7 = _$4`
|
|
4485
|
+
styled.div(_t7$1 || (_t7$1 = _$4`
|
|
4509
4486
|
margin-bottom: var(--goa-space-m);
|
|
4510
4487
|
`));
|
|
4511
|
-
|
|
4488
|
+
styled.div(_t8$1 || (_t8$1 = _$4`
|
|
4512
4489
|
margin: var(--goa-space-s);
|
|
4513
4490
|
width: 100%;
|
|
4514
4491
|
`));
|
|
4515
|
-
|
|
4492
|
+
styled.h3(_t9$1 || (_t9$1 = _$4`
|
|
4516
4493
|
text-transform: capitalize;
|
|
4517
4494
|
`));
|
|
4518
|
-
const RightAlignmentDiv = styled.div(_t10 || (_t10 = _$4`
|
|
4495
|
+
const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$4`
|
|
4519
4496
|
display: flex;
|
|
4520
4497
|
justify-content: flex-end;
|
|
4521
4498
|
`));
|
|
@@ -4553,10 +4530,10 @@ var errorStackClear = function (stack, dropEntries) {
|
|
|
4553
4530
|
} return stack;
|
|
4554
4531
|
};
|
|
4555
4532
|
|
|
4556
|
-
var fails
|
|
4533
|
+
var fails = fails$n;
|
|
4557
4534
|
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
4558
4535
|
|
|
4559
|
-
var errorStackInstallable = !fails
|
|
4536
|
+
var errorStackInstallable = !fails(function () {
|
|
4560
4537
|
var error = new Error('a');
|
|
4561
4538
|
if (!('stack' in error)) return true;
|
|
4562
4539
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -4643,28 +4620,28 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
4643
4620
|
};
|
|
4644
4621
|
|
|
4645
4622
|
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
4646
|
-
var
|
|
4647
|
-
var global$
|
|
4623
|
+
var $ = _export;
|
|
4624
|
+
var global$1 = global$h;
|
|
4648
4625
|
var apply = functionApply;
|
|
4649
4626
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
4650
4627
|
|
|
4651
4628
|
var WEB_ASSEMBLY = 'WebAssembly';
|
|
4652
|
-
var WebAssembly = global$
|
|
4629
|
+
var WebAssembly = global$1[WEB_ASSEMBLY];
|
|
4653
4630
|
|
|
4654
4631
|
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
4655
|
-
var FORCED
|
|
4632
|
+
var FORCED = new Error('e', { cause: 7 }).cause !== 7;
|
|
4656
4633
|
|
|
4657
4634
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
4658
4635
|
var O = {};
|
|
4659
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED
|
|
4660
|
-
|
|
4636
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
4637
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
4661
4638
|
};
|
|
4662
4639
|
|
|
4663
4640
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
4664
4641
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
4665
4642
|
var O = {};
|
|
4666
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED
|
|
4667
|
-
|
|
4643
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
4644
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
4668
4645
|
}
|
|
4669
4646
|
};
|
|
4670
4647
|
|
|
@@ -4824,356 +4801,6 @@ const ContextProviderFactory = () => new ContextProviderClass().setup;
|
|
|
4824
4801
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4825
4802
|
const JsonFormContext = /*#__PURE__*/createContext(null);
|
|
4826
4803
|
|
|
4827
|
-
const getAllRequiredFields = schema => {
|
|
4828
|
-
const requiredFields = [];
|
|
4829
|
-
function findRequired(fields) {
|
|
4830
|
-
if (fields && fields.required && Array.isArray(fields.required)) {
|
|
4831
|
-
fields.required.forEach(field => {
|
|
4832
|
-
requiredFields.push(field);
|
|
4833
|
-
});
|
|
4834
|
-
}
|
|
4835
|
-
if (fields !== undefined && fields.properties) {
|
|
4836
|
-
Object.keys(fields.properties).forEach(key => {
|
|
4837
|
-
if (fields.properties) {
|
|
4838
|
-
findRequired(fields.properties[key]);
|
|
4839
|
-
}
|
|
4840
|
-
});
|
|
4841
|
-
} else if (fields && fields.type === 'array' && fields.items && typeof fields.items === 'object') {
|
|
4842
|
-
const childItems = JSON.parse(JSON.stringify(fields.items));
|
|
4843
|
-
findRequired(childItems);
|
|
4844
|
-
}
|
|
4845
|
-
}
|
|
4846
|
-
findRequired(schema);
|
|
4847
|
-
return requiredFields;
|
|
4848
|
-
};
|
|
4849
|
-
|
|
4850
|
-
var aCallable = aCallable$3;
|
|
4851
|
-
var toObject = toObject$7;
|
|
4852
|
-
var IndexedObject = indexedObject;
|
|
4853
|
-
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
4854
|
-
|
|
4855
|
-
var $TypeError = TypeError;
|
|
4856
|
-
|
|
4857
|
-
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
4858
|
-
|
|
4859
|
-
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
4860
|
-
var createMethod = function (IS_RIGHT) {
|
|
4861
|
-
return function (that, callbackfn, argumentsLength, memo) {
|
|
4862
|
-
var O = toObject(that);
|
|
4863
|
-
var self = IndexedObject(O);
|
|
4864
|
-
var length = lengthOfArrayLike(O);
|
|
4865
|
-
aCallable(callbackfn);
|
|
4866
|
-
if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY);
|
|
4867
|
-
var index = IS_RIGHT ? length - 1 : 0;
|
|
4868
|
-
var i = IS_RIGHT ? -1 : 1;
|
|
4869
|
-
if (argumentsLength < 2) while (true) {
|
|
4870
|
-
if (index in self) {
|
|
4871
|
-
memo = self[index];
|
|
4872
|
-
index += i;
|
|
4873
|
-
break;
|
|
4874
|
-
}
|
|
4875
|
-
index += i;
|
|
4876
|
-
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
4877
|
-
throw new $TypeError(REDUCE_EMPTY);
|
|
4878
|
-
}
|
|
4879
|
-
}
|
|
4880
|
-
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
4881
|
-
memo = callbackfn(memo, self[index], index, O);
|
|
4882
|
-
}
|
|
4883
|
-
return memo;
|
|
4884
|
-
};
|
|
4885
|
-
};
|
|
4886
|
-
|
|
4887
|
-
var arrayReduce = {
|
|
4888
|
-
// `Array.prototype.reduce` method
|
|
4889
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
4890
|
-
left: createMethod(false),
|
|
4891
|
-
// `Array.prototype.reduceRight` method
|
|
4892
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
4893
|
-
right: createMethod(true)
|
|
4894
|
-
};
|
|
4895
|
-
|
|
4896
|
-
var fails = fails$o;
|
|
4897
|
-
|
|
4898
|
-
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
4899
|
-
var method = [][METHOD_NAME];
|
|
4900
|
-
return !!method && fails(function () {
|
|
4901
|
-
// eslint-disable-next-line no-useless-call -- required for testing
|
|
4902
|
-
method.call(null, argument || function () { return 1; }, 1);
|
|
4903
|
-
});
|
|
4904
|
-
};
|
|
4905
|
-
|
|
4906
|
-
var global$1 = global$i;
|
|
4907
|
-
var classof = classofRaw$1;
|
|
4908
|
-
|
|
4909
|
-
var engineIsNode = classof(global$1.process) === 'process';
|
|
4910
|
-
|
|
4911
|
-
var $ = _export;
|
|
4912
|
-
var $reduce = arrayReduce.left;
|
|
4913
|
-
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
4914
|
-
var CHROME_VERSION = engineV8Version;
|
|
4915
|
-
var IS_NODE = engineIsNode;
|
|
4916
|
-
|
|
4917
|
-
// Chrome 80-82 has a critical bug
|
|
4918
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
4919
|
-
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
4920
|
-
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
4921
|
-
|
|
4922
|
-
// `Array.prototype.reduce` method
|
|
4923
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
4924
|
-
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
4925
|
-
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
4926
|
-
var length = arguments.length;
|
|
4927
|
-
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
4928
|
-
}
|
|
4929
|
-
});
|
|
4930
|
-
|
|
4931
|
-
const labelToString = (label, scope) => {
|
|
4932
|
-
if (!label) {
|
|
4933
|
-
return resolveLabelFromScope(scope);
|
|
4934
|
-
}
|
|
4935
|
-
if (typeof label === 'object' && label !== null && 'show' in label && label.show) {
|
|
4936
|
-
return label.text ? label.text : resolveLabelFromScope(scope);
|
|
4937
|
-
}
|
|
4938
|
-
if (typeof label === 'string') {
|
|
4939
|
-
return label;
|
|
4940
|
-
}
|
|
4941
|
-
return '';
|
|
4942
|
-
};
|
|
4943
|
-
const resolveLabelFromScope = scope => {
|
|
4944
|
-
// eslint-disable-next-line no-useless-escape
|
|
4945
|
-
const validPatternRegex = /^#(\/properties\/[^\/]+)+$/;
|
|
4946
|
-
const isValid = validPatternRegex.test(scope);
|
|
4947
|
-
if (!isValid) return '';
|
|
4948
|
-
const fieldName = scope.split('/').pop();
|
|
4949
|
-
if (fieldName) {
|
|
4950
|
-
const lowercased = fieldName.replace(/([A-Z])/g, ' $1').toLowerCase();
|
|
4951
|
-
return lowercased.charAt(0).toUpperCase() + lowercased.slice(1);
|
|
4952
|
-
}
|
|
4953
|
-
return '';
|
|
4954
|
-
};
|
|
4955
|
-
/*
|
|
4956
|
-
* Convert object to an array like [[ke1, value1], [key2, value2]]
|
|
4957
|
-
* Note: this handles nested objects.
|
|
4958
|
-
*/
|
|
4959
|
-
const objToArray = obj => {
|
|
4960
|
-
return Object.entries(obj).map(([key, value]) => {
|
|
4961
|
-
if (typeof value === 'object' && !Array.isArray(value)) {
|
|
4962
|
-
return [key, objToArray(value)];
|
|
4963
|
-
}
|
|
4964
|
-
return [key, getValue(value)];
|
|
4965
|
-
});
|
|
4966
|
-
};
|
|
4967
|
-
// test for ['name', 'fred']
|
|
4968
|
-
const isNameValuePair = value => {
|
|
4969
|
-
return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string' && typeof value[1] === 'string';
|
|
4970
|
-
};
|
|
4971
|
-
// test for: ['name', [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]];
|
|
4972
|
-
const isNestedValue = value => {
|
|
4973
|
-
return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string' && Array.isArray(value[1]);
|
|
4974
|
-
};
|
|
4975
|
-
const isObjectArray = value => {
|
|
4976
|
-
return Array.isArray(value) && value.length > 0 && typeof value[0] === 'object';
|
|
4977
|
-
};
|
|
4978
|
-
/*
|
|
4979
|
-
* Convert ['name', [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]]
|
|
4980
|
-
* into [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]
|
|
4981
|
-
*/
|
|
4982
|
-
const flatten = arr => {
|
|
4983
|
-
return arr.reduce((acc, val) => {
|
|
4984
|
-
if (typeof val === 'string' || !val) {
|
|
4985
|
-
return acc;
|
|
4986
|
-
}
|
|
4987
|
-
if (isNestedValue(val)) {
|
|
4988
|
-
const flatter = flatten(val[1]);
|
|
4989
|
-
return acc.concat(flatter);
|
|
4990
|
-
}
|
|
4991
|
-
if (isNameValuePair(val)) {
|
|
4992
|
-
return acc.concat([[String(val[0]), getValue(val[1]) || '']]);
|
|
4993
|
-
}
|
|
4994
|
-
return acc;
|
|
4995
|
-
}, []);
|
|
4996
|
-
};
|
|
4997
|
-
/*
|
|
4998
|
-
* Flatten(objToArray(currentValue))
|
|
4999
|
-
* Might have to be revisited. It currently looses information that may be
|
|
5000
|
-
* deemed to be important later on - i.e. if an object contains nested objects,
|
|
5001
|
-
* such as { person: { name: 'fred', 'address':'calgary' }, isRich: false }
|
|
5002
|
-
* then the 'person' identifier is lost, resulting in
|
|
5003
|
-
* [['name', 'fred'], ['address', 'calgary'], ['isRich', 'false']]
|
|
5004
|
-
*
|
|
5005
|
-
* However, we need to decide how to handle these sorts of nested data in the summary
|
|
5006
|
-
* page before messing with it.
|
|
5007
|
-
*/
|
|
5008
|
-
const getFormFieldValue = (schema, scope, data) => {
|
|
5009
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5010
|
-
let currentValue = data;
|
|
5011
|
-
if (scope) {
|
|
5012
|
-
const pathArray = scope.replace('#/properties/', '').replace('properties/', '').split('/');
|
|
5013
|
-
for (const key of pathArray) {
|
|
5014
|
-
if (!currentValue) break;
|
|
5015
|
-
currentValue = currentValue[key];
|
|
5016
|
-
}
|
|
5017
|
-
}
|
|
5018
|
-
return isObjectArray(currentValue) ? {
|
|
5019
|
-
type: 'array',
|
|
5020
|
-
value: objToArray(currentValue)
|
|
5021
|
-
} : typeof currentValue === 'object' ? {
|
|
5022
|
-
type: 'object',
|
|
5023
|
-
value: flatten(objToArray(currentValue))
|
|
5024
|
-
} : {
|
|
5025
|
-
type: 'primitive',
|
|
5026
|
-
value: getValue(currentValue)
|
|
5027
|
-
};
|
|
5028
|
-
};
|
|
5029
|
-
const getValue = currentValue => {
|
|
5030
|
-
if (typeof currentValue === 'boolean') {
|
|
5031
|
-
return currentValue ? 'Yes' : 'No';
|
|
5032
|
-
}
|
|
5033
|
-
return currentValue ? String(currentValue) : undefined;
|
|
5034
|
-
};
|
|
5035
|
-
|
|
5036
|
-
const renderValue = (label, key,
|
|
5037
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5038
|
-
value, fileUploaderElement, downloadFile) => {
|
|
5039
|
-
const actualValue = fileUploaderElement ? renderFileLink(fileUploaderElement, downloadFile) : value ? value : '';
|
|
5040
|
-
return jsxs(GridItem, {
|
|
5041
|
-
md: 6,
|
|
5042
|
-
vSpacing: 1,
|
|
5043
|
-
hSpacing: 0.5,
|
|
5044
|
-
children: [jsx("strong", {
|
|
5045
|
-
children: label
|
|
5046
|
-
}), actualValue]
|
|
5047
|
-
}, key);
|
|
5048
|
-
};
|
|
5049
|
-
const renderFileLink = (fileUploaderElement, downloadFile) => {
|
|
5050
|
-
return jsx("a", {
|
|
5051
|
-
onClick: () => downloadFile(fileUploaderElement, fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.propertyId),
|
|
5052
|
-
children: fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.filename
|
|
5053
|
-
});
|
|
5054
|
-
};
|
|
5055
|
-
const renderReviewControl = (schema, data, element, requiredFields, index,
|
|
5056
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5057
|
-
fileList, downloadFile) => {
|
|
5058
|
-
const fieldName = element.scope.split('/').pop() || '';
|
|
5059
|
-
const label = labelToString(element.label, element.scope);
|
|
5060
|
-
if (!fieldName || !label) return null;
|
|
5061
|
-
const isFileUploader = element.scope.includes('fileUploader');
|
|
5062
|
-
const fileUploaderElement = isFileUploader ? fileList && fileList[fieldName] : null;
|
|
5063
|
-
const fieldValues = getFormFieldValue(schema, element.scope, data ? data : {});
|
|
5064
|
-
const isRequired = requiredFields.includes(fieldName);
|
|
5065
|
-
const asterisk = isRequired ? ' *' : '';
|
|
5066
|
-
const values = fieldValues.value;
|
|
5067
|
-
return jsxs(React.Fragment, {
|
|
5068
|
-
children: [fieldValues.type === 'primitive' && renderValue(`${label}${asterisk}: `, `${index}`, fieldValues.value, fileUploaderElement, downloadFile), fieldValues.type === 'object' && values && values.length > 0 && values.map((v, i) => {
|
|
5069
|
-
return renderValue(`${v[0]}: `, `${index}:${i}`, v[1]);
|
|
5070
|
-
}), fieldValues.type === 'array' && values && values.length > 0 && renderList(values)]
|
|
5071
|
-
}, index);
|
|
5072
|
-
};
|
|
5073
|
-
const renderList = items => {
|
|
5074
|
-
return jsx(React.Fragment, {
|
|
5075
|
-
children: items.map((item, itemIndex) => {
|
|
5076
|
-
const details = Array.isArray(item) ? item : [undefined, [undefined, undefined]];
|
|
5077
|
-
return jsxs("div", {
|
|
5078
|
-
children: [jsx(Grid, {
|
|
5079
|
-
children: details[1].map((detail, detailIndex) => {
|
|
5080
|
-
const safeDetail = Array.isArray(detail) ? detail : [undefined, undefined];
|
|
5081
|
-
return renderValue(`${safeDetail[0]}: `, `item-${itemIndex}-detail-${detailIndex}}`, safeDetail[1]);
|
|
5082
|
-
})
|
|
5083
|
-
}, `item-${itemIndex}`), itemIndex < items.length - 1 ? jsx(GoADivider, {
|
|
5084
|
-
mb: "m"
|
|
5085
|
-
}) : null]
|
|
5086
|
-
});
|
|
5087
|
-
})
|
|
5088
|
-
});
|
|
5089
|
-
};
|
|
5090
|
-
|
|
5091
|
-
const renderReviewListWithDetail = (schema, elements,
|
|
5092
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5093
|
-
data, field, index, requiredFields) => {
|
|
5094
|
-
const listData = data[field];
|
|
5095
|
-
const detailData = [];
|
|
5096
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5097
|
-
listData.forEach((elementData, i) => {
|
|
5098
|
-
const itemData = [];
|
|
5099
|
-
elements.forEach((element, j) => {
|
|
5100
|
-
var _a;
|
|
5101
|
-
const fieldName = element.scope.split('/').pop() || '';
|
|
5102
|
-
const label = resolveLabelFromScope(element.scope);
|
|
5103
|
-
const value = (_a = elementData[fieldName]) !== null && _a !== void 0 ? _a : '';
|
|
5104
|
-
itemData.push([label, value]);
|
|
5105
|
-
});
|
|
5106
|
-
detailData.push([`${i}`, itemData]);
|
|
5107
|
-
});
|
|
5108
|
-
return jsxs(ListWithDetail, {
|
|
5109
|
-
children: [jsxs(ListWithDetailHeading, {
|
|
5110
|
-
children: [field, listData.length > 1 && 's']
|
|
5111
|
-
}), renderList(detailData)]
|
|
5112
|
-
}, `${index}-${field}`);
|
|
5113
|
-
};
|
|
5114
|
-
|
|
5115
|
-
const isControl = type => {
|
|
5116
|
-
return type === 'Control';
|
|
5117
|
-
};
|
|
5118
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5119
|
-
const isListWithDetail$1 = (type, data, fieldName) => {
|
|
5120
|
-
return type === 'ListWithDetail' && typeof data === 'object' && data !== null && fieldName in data && Array.isArray(data[fieldName]) && data[fieldName].length > 0;
|
|
5121
|
-
};
|
|
5122
|
-
const isLayout = schema => {
|
|
5123
|
-
return typeof schema === 'object' && schema !== null && 'elements' in schema;
|
|
5124
|
-
};
|
|
5125
|
-
const RenderFormReviewFields = ({
|
|
5126
|
-
elements,
|
|
5127
|
-
data,
|
|
5128
|
-
requiredFields,
|
|
5129
|
-
schema
|
|
5130
|
-
}) => {
|
|
5131
|
-
var _a, _b;
|
|
5132
|
-
const enumerators = useContext(JsonFormContext);
|
|
5133
|
-
const downloadTriggerFunction = (_a = enumerators === null || enumerators === void 0 ? void 0 : enumerators.functions) === null || _a === void 0 ? void 0 : _a.get('download-file');
|
|
5134
|
-
const downloadTrigger = downloadTriggerFunction && downloadTriggerFunction();
|
|
5135
|
-
const fileListValue = (_b = enumerators === null || enumerators === void 0 ? void 0 : enumerators.data) === null || _b === void 0 ? void 0 : _b.get('file-list');
|
|
5136
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5137
|
-
const fileList = fileListValue && fileListValue();
|
|
5138
|
-
const downloadFile = (file, propertyId) => {
|
|
5139
|
-
if (downloadTrigger) {
|
|
5140
|
-
downloadTrigger(file, propertyId);
|
|
5141
|
-
}
|
|
5142
|
-
};
|
|
5143
|
-
return elements.map((element, index) => {
|
|
5144
|
-
var _a, _b, _c;
|
|
5145
|
-
const clonedElement = JSON.parse(JSON.stringify(element));
|
|
5146
|
-
const fieldName = (_a = clonedElement.scope) === null || _a === void 0 ? void 0 : _a.split('/').pop();
|
|
5147
|
-
if (isControl(clonedElement.type)) {
|
|
5148
|
-
return renderReviewControl(schema, data, clonedElement, requiredFields, index, fileList, downloadFile);
|
|
5149
|
-
} else if (isListWithDetail$1(clonedElement.type, data, fieldName)) {
|
|
5150
|
-
const elements = removeLayouts((_c = (_b = clonedElement === null || clonedElement === void 0 ? void 0 : clonedElement.options) === null || _b === void 0 ? void 0 : _b.detail) === null || _c === void 0 ? void 0 : _c.elements) || [];
|
|
5151
|
-
return renderReviewListWithDetail(schema, elements, data, fieldName, index);
|
|
5152
|
-
} else if (isLayout(clonedElement)) {
|
|
5153
|
-
return jsx(React.Fragment, {
|
|
5154
|
-
children: jsx(RenderFormReviewFields, {
|
|
5155
|
-
elements: clonedElement.elements,
|
|
5156
|
-
data: data,
|
|
5157
|
-
requiredFields: requiredFields,
|
|
5158
|
-
schema: schema
|
|
5159
|
-
})
|
|
5160
|
-
}, index);
|
|
5161
|
-
}
|
|
5162
|
-
return null;
|
|
5163
|
-
});
|
|
5164
|
-
};
|
|
5165
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5166
|
-
const removeLayouts = elements => {
|
|
5167
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5168
|
-
return elements.reduce((acc, item) => {
|
|
5169
|
-
if (isLayout(item)) {
|
|
5170
|
-
return acc.concat(removeLayouts(item.elements));
|
|
5171
|
-
} else {
|
|
5172
|
-
return acc.concat(item);
|
|
5173
|
-
}
|
|
5174
|
-
}, []);
|
|
5175
|
-
};
|
|
5176
|
-
|
|
5177
4804
|
const RenderStepElements = props => {
|
|
5178
4805
|
return (
|
|
5179
4806
|
/*
|
|
@@ -5405,7 +5032,6 @@ const FormStepper = props => {
|
|
|
5405
5032
|
}), jsx(ReviewItem, {
|
|
5406
5033
|
children: categories.map((category, index) => {
|
|
5407
5034
|
const categoryLabel = category.label || category.i18n || 'Unknown Category';
|
|
5408
|
-
const requiredFields = getAllRequiredFields(schema);
|
|
5409
5035
|
const testId = `${categoryLabel}-review-link`;
|
|
5410
5036
|
return jsxs(ReviewItemSection, {
|
|
5411
5037
|
children: [jsxs(ReviewItemHeader, {
|
|
@@ -5416,12 +5042,17 @@ const FormStepper = props => {
|
|
|
5416
5042
|
"data-testid": testId,
|
|
5417
5043
|
children: readOnly ? 'View' : 'Edit'
|
|
5418
5044
|
})]
|
|
5419
|
-
}), jsx(
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5045
|
+
}), jsx(GoAGrid, {
|
|
5046
|
+
minChildWidth: "600px",
|
|
5047
|
+
children: category.elements.map(element => {
|
|
5048
|
+
return jsx(JsonFormsDispatch, {
|
|
5049
|
+
"data-testid": `jsonforms-object-list-defined-elements-dispatch`,
|
|
5050
|
+
schema: schema,
|
|
5051
|
+
uischema: element,
|
|
5052
|
+
enabled: enabled,
|
|
5053
|
+
renderers: GoAReviewRenderers,
|
|
5054
|
+
cells: cells
|
|
5055
|
+
});
|
|
5425
5056
|
})
|
|
5426
5057
|
})]
|
|
5427
5058
|
}, index);
|
|
@@ -5573,6 +5204,11 @@ let _$2 = t => t,
|
|
|
5573
5204
|
_t3$1;
|
|
5574
5205
|
const DELAY_UPLOAD_TIMEOUT_MS = 5;
|
|
5575
5206
|
const DELAY_DELETE_TIMEOUT_MS = 5;
|
|
5207
|
+
const FileUploaderReview = props => {
|
|
5208
|
+
return FileUploader(Object.assign(Object.assign({}, props), {
|
|
5209
|
+
isStepperReview: true
|
|
5210
|
+
}));
|
|
5211
|
+
};
|
|
5576
5212
|
const FileUploader = _a => {
|
|
5577
5213
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5578
5214
|
var {
|
|
@@ -5791,7 +5427,15 @@ let _$1 = t => t,
|
|
|
5791
5427
|
_t$1,
|
|
5792
5428
|
_t2,
|
|
5793
5429
|
_t3,
|
|
5794
|
-
_t4
|
|
5430
|
+
_t4,
|
|
5431
|
+
_t5,
|
|
5432
|
+
_t6,
|
|
5433
|
+
_t7,
|
|
5434
|
+
_t8,
|
|
5435
|
+
_t9,
|
|
5436
|
+
_t10,
|
|
5437
|
+
_t11,
|
|
5438
|
+
_t12;
|
|
5795
5439
|
const DeleteDialogContent = styled.div(_t$1 || (_t$1 = _$1`
|
|
5796
5440
|
margin-bottom: var(--goa-space-m);
|
|
5797
5441
|
`));
|
|
@@ -5804,9 +5448,46 @@ const ObjectArrayTitle = styled.h2(_t3 || (_t3 = _$1`
|
|
|
5804
5448
|
const TextCenter = styled.div(_t4 || (_t4 = _$1`
|
|
5805
5449
|
text-align: center;
|
|
5806
5450
|
`));
|
|
5451
|
+
const SideMenuItem = styled.div(_t5 || (_t5 = _$1`
|
|
5452
|
+
&:hover {
|
|
5453
|
+
background: #f1f1f1;
|
|
5454
|
+
}
|
|
5455
|
+
`));
|
|
5456
|
+
const RowFlex = styled.div(_t6 || (_t6 = _$1`
|
|
5457
|
+
display: flex;
|
|
5458
|
+
align-items: stretch;
|
|
5459
|
+
`));
|
|
5460
|
+
const RowFlexMenu = styled.div(_t7 || (_t7 = _$1`
|
|
5461
|
+
display: flex;
|
|
5462
|
+
flex-direction: row;
|
|
5463
|
+
border-bottom: 1px solid #dcdcdc;
|
|
5464
|
+
`));
|
|
5465
|
+
const FlexTabs = styled.div(_t8 || (_t8 = _$1`
|
|
5466
|
+
flex-direction: column;
|
|
5467
|
+
flex: 1;
|
|
5468
|
+
overflow-y: auto !important;
|
|
5469
|
+
margin-right: 1.5rem;
|
|
5470
|
+
`));
|
|
5471
|
+
const FlexForm = styled.div(_t9 || (_t9 = _$1`
|
|
5472
|
+
flex-direction: column;
|
|
5473
|
+
margin: 1.5rem 0;
|
|
5474
|
+
flex: 3;
|
|
5475
|
+
`));
|
|
5476
|
+
const TabName = styled.div(_t10 || (_t10 = _$1`
|
|
5477
|
+
margin: 1rem 0 1rem 1rem;
|
|
5478
|
+
font-weight: 700;
|
|
5479
|
+
`));
|
|
5480
|
+
const Trash = styled.div(_t11 || (_t11 = _$1`
|
|
5481
|
+
margin: 0.75rem 1.25rem 0.75rem 0.75rem;
|
|
5482
|
+
margin-left: auto;
|
|
5483
|
+
`));
|
|
5484
|
+
const ListContainer = styled.div(_t12 || (_t12 = _$1`
|
|
5485
|
+
padding: 0 1.5rem 0 0;
|
|
5486
|
+
border: 1px solid #dcdcdc;
|
|
5487
|
+
`));
|
|
5807
5488
|
|
|
5808
5489
|
// eslint-disable-next-line
|
|
5809
|
-
const extractScopesFromUISchema = uischema => {
|
|
5490
|
+
const extractScopesFromUISchema$1 = uischema => {
|
|
5810
5491
|
var _a;
|
|
5811
5492
|
const scopes = [];
|
|
5812
5493
|
if (uischema === null || uischema === void 0 ? void 0 : uischema.elements) {
|
|
@@ -5829,14 +5510,15 @@ const extractScopesFromUISchema = uischema => {
|
|
|
5829
5510
|
}
|
|
5830
5511
|
return scopes;
|
|
5831
5512
|
};
|
|
5832
|
-
const GenerateRows = (Cell, schema, rowPath, enabled, cells, uischema) => {
|
|
5513
|
+
const GenerateRows$1 = (Cell, schema, rowPath, enabled, cells, uischema, isInReview) => {
|
|
5833
5514
|
if (schema.type === 'object') {
|
|
5834
5515
|
const props = {
|
|
5835
5516
|
schema,
|
|
5836
5517
|
rowPath,
|
|
5837
5518
|
enabled,
|
|
5838
5519
|
cells,
|
|
5839
|
-
uischema
|
|
5520
|
+
uischema,
|
|
5521
|
+
isInReview
|
|
5840
5522
|
};
|
|
5841
5523
|
return jsx(Cell, Object.assign({}, props));
|
|
5842
5524
|
} else {
|
|
@@ -5845,12 +5527,13 @@ const GenerateRows = (Cell, schema, rowPath, enabled, cells, uischema) => {
|
|
|
5845
5527
|
schema,
|
|
5846
5528
|
rowPath,
|
|
5847
5529
|
cellPath: rowPath,
|
|
5848
|
-
enabled
|
|
5530
|
+
enabled,
|
|
5531
|
+
isInReview
|
|
5849
5532
|
};
|
|
5850
5533
|
return jsx(Cell, Object.assign({}, props), rowPath);
|
|
5851
5534
|
}
|
|
5852
5535
|
};
|
|
5853
|
-
const getValidColumnProps = scopedSchema => {
|
|
5536
|
+
const getValidColumnProps$1 = scopedSchema => {
|
|
5854
5537
|
if (scopedSchema.type === 'object' && typeof scopedSchema.properties === 'object') {
|
|
5855
5538
|
return Object.keys(scopedSchema.properties).filter(prop => {
|
|
5856
5539
|
var _a;
|
|
@@ -5860,7 +5543,7 @@ const getValidColumnProps = scopedSchema => {
|
|
|
5860
5543
|
// primitives
|
|
5861
5544
|
return [''];
|
|
5862
5545
|
};
|
|
5863
|
-
const EmptyList = ({
|
|
5546
|
+
const EmptyList$1 = ({
|
|
5864
5547
|
numColumns,
|
|
5865
5548
|
translations
|
|
5866
5549
|
}) => jsx(GoAGrid, {
|
|
@@ -5871,7 +5554,7 @@ const EmptyList = ({
|
|
|
5871
5554
|
})
|
|
5872
5555
|
})
|
|
5873
5556
|
});
|
|
5874
|
-
const ctxToNonEmptyCellProps = (ctx, ownProps) => {
|
|
5557
|
+
const ctxToNonEmptyCellProps$1 = (ctx, ownProps) => {
|
|
5875
5558
|
var _a;
|
|
5876
5559
|
ownProps.rowPath + (ownProps.schema.type === 'object' ? '.' + ownProps.propName : '');
|
|
5877
5560
|
const errors = '';
|
|
@@ -5886,7 +5569,7 @@ const ctxToNonEmptyCellProps = (ctx, ownProps) => {
|
|
|
5886
5569
|
renderers: ownProps.renderers || ctx.renderers
|
|
5887
5570
|
};
|
|
5888
5571
|
};
|
|
5889
|
-
const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellComponent(props) {
|
|
5572
|
+
const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellComponent(props) {
|
|
5890
5573
|
var _a, _b;
|
|
5891
5574
|
const {
|
|
5892
5575
|
schema,
|
|
@@ -5896,13 +5579,14 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
|
|
|
5896
5579
|
cells,
|
|
5897
5580
|
rowPath,
|
|
5898
5581
|
isValid,
|
|
5899
|
-
uischema
|
|
5582
|
+
uischema,
|
|
5583
|
+
isInReview
|
|
5900
5584
|
} = props;
|
|
5901
|
-
const propNames = getValidColumnProps(schema);
|
|
5585
|
+
const propNames = getValidColumnProps$1(schema);
|
|
5902
5586
|
const propScopes = (uischema === null || uischema === void 0 ? void 0 : uischema.scope) ? propNames.map(name => {
|
|
5903
5587
|
return `#/properties/${name}`;
|
|
5904
5588
|
}) : [];
|
|
5905
|
-
const scopesInElements = extractScopesFromUISchema(uischema);
|
|
5589
|
+
const scopesInElements = extractScopesFromUISchema$1(uischema);
|
|
5906
5590
|
const scopesNotInElements = propScopes.filter(scope => {
|
|
5907
5591
|
return !scopesInElements.includes(scope);
|
|
5908
5592
|
});
|
|
@@ -5928,7 +5612,10 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
|
|
|
5928
5612
|
elements: scopesNotInElements.map(scope => {
|
|
5929
5613
|
return {
|
|
5930
5614
|
type: 'Control',
|
|
5931
|
-
scope
|
|
5615
|
+
scope,
|
|
5616
|
+
options: {
|
|
5617
|
+
isStepperReview: isInReview
|
|
5618
|
+
}
|
|
5932
5619
|
};
|
|
5933
5620
|
})
|
|
5934
5621
|
};
|
|
@@ -5942,7 +5629,7 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
|
|
|
5942
5629
|
uischema: element,
|
|
5943
5630
|
path: rowPath,
|
|
5944
5631
|
enabled: enabled,
|
|
5945
|
-
renderers: renderers,
|
|
5632
|
+
renderers: isInReview ? GoAReviewRenderers : renderers,
|
|
5946
5633
|
cells: cells
|
|
5947
5634
|
}, rowPath);
|
|
5948
5635
|
}), ((_b = uiSchemaElementsForNotDefined === null || uiSchemaElementsForNotDefined === void 0 ? void 0 : uiSchemaElementsForNotDefined.elements) === null || _b === void 0 ? void 0 : _b.length) > 0 && jsx(JsonFormsDispatch, {
|
|
@@ -5950,20 +5637,21 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
|
|
|
5950
5637
|
uischema: uiSchemaElementsForNotDefined,
|
|
5951
5638
|
path: rowPath,
|
|
5952
5639
|
enabled: enabled,
|
|
5953
|
-
renderers: renderers,
|
|
5640
|
+
renderers: isInReview ? GoAReviewRenderers : renderers,
|
|
5954
5641
|
cells: cells
|
|
5955
5642
|
})]
|
|
5956
5643
|
});
|
|
5957
5644
|
});
|
|
5958
|
-
const NonEmptyCell = ownProps => {
|
|
5645
|
+
const NonEmptyCell$1 = ownProps => {
|
|
5959
5646
|
const ctx = useJsonForms();
|
|
5960
|
-
const emptyCellProps = ctxToNonEmptyCellProps(ctx, ownProps);
|
|
5647
|
+
const emptyCellProps = ctxToNonEmptyCellProps$1(ctx, ownProps);
|
|
5961
5648
|
const isValid = isEmpty$1(emptyCellProps.errors);
|
|
5962
|
-
return jsx(NonEmptyCellComponent, Object.assign({}, emptyCellProps, {
|
|
5649
|
+
return jsx(NonEmptyCellComponent$1, Object.assign({}, emptyCellProps, {
|
|
5650
|
+
isInReview: ownProps === null || ownProps === void 0 ? void 0 : ownProps.isInReview,
|
|
5963
5651
|
isValid: isValid
|
|
5964
5652
|
}));
|
|
5965
5653
|
};
|
|
5966
|
-
const NonEmptyRowComponent = ({
|
|
5654
|
+
const NonEmptyRowComponent$1 = ({
|
|
5967
5655
|
childPath,
|
|
5968
5656
|
schema,
|
|
5969
5657
|
rowIndex,
|
|
@@ -5972,23 +5660,24 @@ const NonEmptyRowComponent = ({
|
|
|
5972
5660
|
cells,
|
|
5973
5661
|
path,
|
|
5974
5662
|
translations,
|
|
5975
|
-
uischema
|
|
5663
|
+
uischema,
|
|
5664
|
+
isInReview
|
|
5976
5665
|
}) => {
|
|
5977
5666
|
return jsx("div", {
|
|
5978
5667
|
children: enabled ? jsxs(GoAContainer, {
|
|
5979
|
-
children: [jsx(GoAGrid, {
|
|
5668
|
+
children: [isInReview !== true && jsx(GoAGrid, {
|
|
5980
5669
|
minChildWidth: "30ch",
|
|
5981
5670
|
children: jsx(GoAIconButton, {
|
|
5982
5671
|
icon: "trash",
|
|
5983
5672
|
"aria-label": translations.removeAriaLabel,
|
|
5984
5673
|
onClick: () => openDeleteDialog(childPath, rowIndex)
|
|
5985
5674
|
})
|
|
5986
|
-
}), GenerateRows(NonEmptyCell, schema, childPath, enabled, cells, uischema)]
|
|
5675
|
+
}), GenerateRows$1(NonEmptyCell$1, schema, childPath, enabled, cells, uischema, isInReview)]
|
|
5987
5676
|
}) : null
|
|
5988
5677
|
}, childPath);
|
|
5989
5678
|
};
|
|
5990
|
-
const NonEmptyList = /*#__PURE__*/React.memo(NonEmptyRowComponent);
|
|
5991
|
-
const ObjectArrayList = ({
|
|
5679
|
+
const NonEmptyList$1 = /*#__PURE__*/React.memo(NonEmptyRowComponent$1);
|
|
5680
|
+
const ObjectArrayList$1 = ({
|
|
5992
5681
|
data,
|
|
5993
5682
|
path,
|
|
5994
5683
|
schema,
|
|
@@ -5997,12 +5686,13 @@ const ObjectArrayList = ({
|
|
|
5997
5686
|
config,
|
|
5998
5687
|
enabled,
|
|
5999
5688
|
cells,
|
|
6000
|
-
translations
|
|
5689
|
+
translations,
|
|
5690
|
+
isInReview
|
|
6001
5691
|
}) => {
|
|
6002
5692
|
const isEmptyList = data === 0;
|
|
6003
5693
|
if (isEmptyList) {
|
|
6004
|
-
return jsx(EmptyList, {
|
|
6005
|
-
numColumns: getValidColumnProps(schema).length + 1,
|
|
5694
|
+
return jsx(EmptyList$1, {
|
|
5695
|
+
numColumns: getValidColumnProps$1(schema).length + 1,
|
|
6006
5696
|
translations: translations
|
|
6007
5697
|
});
|
|
6008
5698
|
}
|
|
@@ -6010,7 +5700,7 @@ const ObjectArrayList = ({
|
|
|
6010
5700
|
return jsx(Fragment, {
|
|
6011
5701
|
children: range(data).map(index => {
|
|
6012
5702
|
const childPath = Paths.compose(path, `${index}`);
|
|
6013
|
-
return jsx(NonEmptyList, {
|
|
5703
|
+
return jsx(NonEmptyList$1, {
|
|
6014
5704
|
childPath: childPath,
|
|
6015
5705
|
rowIndex: index,
|
|
6016
5706
|
schema: schema,
|
|
@@ -6020,7 +5710,8 @@ const ObjectArrayList = ({
|
|
|
6020
5710
|
cells: cells,
|
|
6021
5711
|
path: path,
|
|
6022
5712
|
uischema: uischema,
|
|
6023
|
-
translations: translations
|
|
5713
|
+
translations: translations,
|
|
5714
|
+
isInReview: isInReview
|
|
6024
5715
|
}, childPath);
|
|
6025
5716
|
})
|
|
6026
5717
|
});
|
|
@@ -6048,19 +5739,23 @@ class ObjectArrayControl extends React.Component {
|
|
|
6048
5739
|
cells,
|
|
6049
5740
|
translations,
|
|
6050
5741
|
data,
|
|
6051
|
-
config
|
|
5742
|
+
config,
|
|
5743
|
+
isStepperReview
|
|
6052
5744
|
} = _b,
|
|
6053
|
-
additionalProps = __rest(_b, ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "translations", "data", "config"]);
|
|
5745
|
+
additionalProps = __rest(_b, ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "translations", "data", "config", "isStepperReview"]);
|
|
6054
5746
|
const controlElement = uischema;
|
|
6055
5747
|
// eslint-disable-next-line
|
|
6056
5748
|
const listTitle = label || ((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.title);
|
|
5749
|
+
const isInReview = isStepperReview === true;
|
|
6057
5750
|
return jsxs(Visible, {
|
|
6058
5751
|
visible: visible,
|
|
6059
5752
|
"data-testid": "jsonforms-object-list-wrapper",
|
|
6060
5753
|
children: [jsxs(ToolBarHeader, {
|
|
6061
|
-
children: [listTitle && jsx(
|
|
5754
|
+
children: [isInReview && listTitle && jsx("b", {
|
|
6062
5755
|
children: listTitle
|
|
6063
|
-
}), jsx(
|
|
5756
|
+
}), !isInReview && listTitle && jsx(ObjectArrayTitle, {
|
|
5757
|
+
children: listTitle
|
|
5758
|
+
}), !isInReview && jsx(ObjectArrayToolBar, {
|
|
6064
5759
|
errors: errors,
|
|
6065
5760
|
label: label,
|
|
6066
5761
|
addItem: this.addItem,
|
|
@@ -6073,7 +5768,7 @@ class ObjectArrayControl extends React.Component {
|
|
|
6073
5768
|
translations: translations
|
|
6074
5769
|
})]
|
|
6075
5770
|
}), jsx("div", {
|
|
6076
|
-
children: jsx(ObjectArrayList, Object.assign({
|
|
5771
|
+
children: jsx(ObjectArrayList$1, Object.assign({
|
|
6077
5772
|
path: path,
|
|
6078
5773
|
schema: schema,
|
|
6079
5774
|
uischema: uischema,
|
|
@@ -6082,7 +5777,8 @@ class ObjectArrayControl extends React.Component {
|
|
|
6082
5777
|
translations: translations,
|
|
6083
5778
|
data: data,
|
|
6084
5779
|
cells: cells,
|
|
6085
|
-
config: config
|
|
5780
|
+
config: config,
|
|
5781
|
+
isInReview: isInReview
|
|
6086
5782
|
}, additionalProps))
|
|
6087
5783
|
})]
|
|
6088
5784
|
});
|
|
@@ -6114,6 +5810,7 @@ const DeleteDialog = /*#__PURE__*/React.memo(function DeleteDialog({
|
|
|
6114
5810
|
children: "Cancel"
|
|
6115
5811
|
}), jsx(GoAButton, {
|
|
6116
5812
|
type: "primary",
|
|
5813
|
+
variant: "destructive",
|
|
6117
5814
|
testId: "object-array-confirm-button",
|
|
6118
5815
|
onClick: () => {
|
|
6119
5816
|
onConfirm();
|
|
@@ -6160,8 +5857,407 @@ const ArrayControl = props => {
|
|
|
6160
5857
|
})]
|
|
6161
5858
|
});
|
|
6162
5859
|
};
|
|
5860
|
+
const ArrayBaseReviewControl = props => {
|
|
5861
|
+
const {
|
|
5862
|
+
visible
|
|
5863
|
+
} = props;
|
|
5864
|
+
return jsx(Visible, {
|
|
5865
|
+
visible: visible,
|
|
5866
|
+
children: jsx(ObjectArrayControl, Object.assign({}, props, {
|
|
5867
|
+
openDeleteDialog: () => {},
|
|
5868
|
+
isStepperReview: true
|
|
5869
|
+
}))
|
|
5870
|
+
});
|
|
5871
|
+
};
|
|
6163
5872
|
const GoAArrayControlTester = rankWith(3, or(isObjectArrayControl, isPrimitiveArrayControl));
|
|
6164
5873
|
const GoAArrayControlRenderer = withJsonFormsArrayLayoutProps(ArrayControl);
|
|
5874
|
+
const GoAArrayControlReviewRenderer = withJsonFormsArrayLayoutProps(ArrayBaseReviewControl);
|
|
5875
|
+
|
|
5876
|
+
// eslint-disable-next-line
|
|
5877
|
+
const extractScopesFromUISchema = uischema => {
|
|
5878
|
+
var _a;
|
|
5879
|
+
const scopes = [];
|
|
5880
|
+
if (uischema === null || uischema === void 0 ? void 0 : uischema.elements) {
|
|
5881
|
+
// eslint-disable-next-line
|
|
5882
|
+
(_a = uischema === null || uischema === void 0 ? void 0 : uischema.elements) === null || _a === void 0 ? void 0 : _a.forEach(element => {
|
|
5883
|
+
var _a;
|
|
5884
|
+
if (element === null || element === void 0 ? void 0 : element.elements) {
|
|
5885
|
+
// eslint-disable-next-line
|
|
5886
|
+
(_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.forEach(internalElement => {
|
|
5887
|
+
if (internalElement === null || internalElement === void 0 ? void 0 : internalElement.scope) {
|
|
5888
|
+
scopes.push(internalElement === null || internalElement === void 0 ? void 0 : internalElement.scope);
|
|
5889
|
+
}
|
|
5890
|
+
});
|
|
5891
|
+
} else {
|
|
5892
|
+
if (element === null || element === void 0 ? void 0 : element.scope) {
|
|
5893
|
+
scopes.push(element === null || element === void 0 ? void 0 : element.scope);
|
|
5894
|
+
}
|
|
5895
|
+
}
|
|
5896
|
+
});
|
|
5897
|
+
}
|
|
5898
|
+
return scopes;
|
|
5899
|
+
};
|
|
5900
|
+
const GenerateRows = (Cell, schema, rowPath, enabled, cells, uischema) => {
|
|
5901
|
+
if (schema.type === 'object') {
|
|
5902
|
+
const props = {
|
|
5903
|
+
schema,
|
|
5904
|
+
rowPath,
|
|
5905
|
+
enabled,
|
|
5906
|
+
cells,
|
|
5907
|
+
uischema
|
|
5908
|
+
};
|
|
5909
|
+
return jsx(Cell, Object.assign({}, props));
|
|
5910
|
+
} else {
|
|
5911
|
+
// primitives
|
|
5912
|
+
const props = {
|
|
5913
|
+
schema,
|
|
5914
|
+
rowPath,
|
|
5915
|
+
cellPath: rowPath,
|
|
5916
|
+
enabled
|
|
5917
|
+
};
|
|
5918
|
+
return jsx(Cell, Object.assign({}, props), rowPath);
|
|
5919
|
+
}
|
|
5920
|
+
};
|
|
5921
|
+
const getValidColumnProps = scopedSchema => {
|
|
5922
|
+
if (scopedSchema.type === 'object' && typeof scopedSchema.properties === 'object') {
|
|
5923
|
+
return Object.keys(scopedSchema.properties).filter(prop => {
|
|
5924
|
+
var _a;
|
|
5925
|
+
return ((_a = scopedSchema.properties) === null || _a === void 0 ? void 0 : _a[prop].type) !== 'array';
|
|
5926
|
+
});
|
|
5927
|
+
}
|
|
5928
|
+
// primitives
|
|
5929
|
+
return [''];
|
|
5930
|
+
};
|
|
5931
|
+
const EmptyList = ({
|
|
5932
|
+
numColumns,
|
|
5933
|
+
translations
|
|
5934
|
+
}) => jsx(GoAGrid, {
|
|
5935
|
+
minChildWidth: "60ch",
|
|
5936
|
+
children: jsx(TextCenter, {
|
|
5937
|
+
children: jsx("b", {
|
|
5938
|
+
children: translations.noDataMessage
|
|
5939
|
+
})
|
|
5940
|
+
})
|
|
5941
|
+
});
|
|
5942
|
+
const ctxToNonEmptyCellProps = (ctx, ownProps) => {
|
|
5943
|
+
var _a;
|
|
5944
|
+
ownProps.rowPath + (ownProps.schema.type === 'object' ? '.' + ownProps.propName : '');
|
|
5945
|
+
const errors = '';
|
|
5946
|
+
return {
|
|
5947
|
+
uischema: ownProps.uischema,
|
|
5948
|
+
rowPath: ownProps.rowPath,
|
|
5949
|
+
schema: ownProps.schema,
|
|
5950
|
+
rootSchema: (_a = ctx.core) === null || _a === void 0 ? void 0 : _a.schema,
|
|
5951
|
+
errors,
|
|
5952
|
+
enabled: ownProps.enabled,
|
|
5953
|
+
cells: ownProps.cells || ctx.cells,
|
|
5954
|
+
renderers: ownProps.renderers || ctx.renderers
|
|
5955
|
+
};
|
|
5956
|
+
};
|
|
5957
|
+
const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellComponent(props) {
|
|
5958
|
+
var _a, _b;
|
|
5959
|
+
const {
|
|
5960
|
+
schema,
|
|
5961
|
+
errors,
|
|
5962
|
+
enabled,
|
|
5963
|
+
renderers,
|
|
5964
|
+
cells,
|
|
5965
|
+
rowPath,
|
|
5966
|
+
isValid,
|
|
5967
|
+
uischema
|
|
5968
|
+
} = props;
|
|
5969
|
+
const propNames = getValidColumnProps(schema);
|
|
5970
|
+
const propScopes = (uischema === null || uischema === void 0 ? void 0 : uischema.scope) ? propNames.map(name => {
|
|
5971
|
+
return `#/properties/${name}`;
|
|
5972
|
+
}) : [];
|
|
5973
|
+
const scopesInElements = extractScopesFromUISchema(uischema);
|
|
5974
|
+
const scopesNotInElements = propScopes.filter(scope => {
|
|
5975
|
+
return !scopesInElements.includes(scope);
|
|
5976
|
+
});
|
|
5977
|
+
/**
|
|
5978
|
+
* Get the first layout type in the elements for the object array and used it
|
|
5979
|
+
* as the default type, if none is provided.
|
|
5980
|
+
* @returns layout type
|
|
5981
|
+
*/
|
|
5982
|
+
const getFirstLayoutType = () => {
|
|
5983
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5984
|
+
let defaultType = 'VerticalLayout';
|
|
5985
|
+
if ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.defaultType) return (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.defaultType;
|
|
5986
|
+
if (((_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.detail) && ((_f = (_e = (_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.detail) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.length) > 0) {
|
|
5987
|
+
defaultType = (_h = (_g = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _g === void 0 ? void 0 : _g.detail) === null || _h === void 0 ? void 0 : _h.elements.at(0).type;
|
|
5988
|
+
}
|
|
5989
|
+
return defaultType;
|
|
5990
|
+
};
|
|
5991
|
+
/* Create default elements for scope not defined in the uischema
|
|
5992
|
+
* future work: merge the options
|
|
5993
|
+
*/
|
|
5994
|
+
const uiSchemaElementsForNotDefined = {
|
|
5995
|
+
type: getFirstLayoutType(),
|
|
5996
|
+
elements: scopesNotInElements.map(scope => {
|
|
5997
|
+
return {
|
|
5998
|
+
type: 'Control',
|
|
5999
|
+
scope
|
|
6000
|
+
};
|
|
6001
|
+
})
|
|
6002
|
+
};
|
|
6003
|
+
return jsxs(Fragment, {
|
|
6004
|
+
children: [
|
|
6005
|
+
// eslint-disable-next-line
|
|
6006
|
+
(_a = uischema === null || uischema === void 0 ? void 0 : uischema.elements) === null || _a === void 0 ? void 0 : _a.map(element => {
|
|
6007
|
+
return jsx(JsonFormsDispatch, {
|
|
6008
|
+
"data-testid": `jsonforms-object-list-defined-elements-dispatch`,
|
|
6009
|
+
schema: schema,
|
|
6010
|
+
uischema: element,
|
|
6011
|
+
path: rowPath,
|
|
6012
|
+
enabled: enabled,
|
|
6013
|
+
renderers: renderers,
|
|
6014
|
+
cells: cells
|
|
6015
|
+
}, rowPath);
|
|
6016
|
+
}), ((_b = uiSchemaElementsForNotDefined === null || uiSchemaElementsForNotDefined === void 0 ? void 0 : uiSchemaElementsForNotDefined.elements) === null || _b === void 0 ? void 0 : _b.length) > 0 && jsx(JsonFormsDispatch, {
|
|
6017
|
+
schema: schema,
|
|
6018
|
+
uischema: uiSchemaElementsForNotDefined,
|
|
6019
|
+
path: rowPath,
|
|
6020
|
+
enabled: enabled,
|
|
6021
|
+
renderers: renderers,
|
|
6022
|
+
cells: cells
|
|
6023
|
+
})]
|
|
6024
|
+
});
|
|
6025
|
+
});
|
|
6026
|
+
const NonEmptyCell = ownProps => {
|
|
6027
|
+
const ctx = useJsonForms();
|
|
6028
|
+
const emptyCellProps = ctxToNonEmptyCellProps(ctx, ownProps);
|
|
6029
|
+
const isValid = isEmpty$1(emptyCellProps.errors);
|
|
6030
|
+
return jsx(NonEmptyCellComponent, Object.assign({}, emptyCellProps, {
|
|
6031
|
+
isValid: isValid
|
|
6032
|
+
}));
|
|
6033
|
+
};
|
|
6034
|
+
const NonEmptyRowComponent = ({
|
|
6035
|
+
childPath,
|
|
6036
|
+
schema,
|
|
6037
|
+
enabled,
|
|
6038
|
+
cells,
|
|
6039
|
+
uischema
|
|
6040
|
+
}) => {
|
|
6041
|
+
return jsx("div", {
|
|
6042
|
+
children: enabled ? jsx(GoAGrid, {
|
|
6043
|
+
minChildWidth: "30ch",
|
|
6044
|
+
children: GenerateRows(NonEmptyCell, schema, childPath, enabled, cells, uischema)
|
|
6045
|
+
}) : null
|
|
6046
|
+
}, childPath);
|
|
6047
|
+
};
|
|
6048
|
+
const LeftTab = ({
|
|
6049
|
+
childPath,
|
|
6050
|
+
rowIndex,
|
|
6051
|
+
openDeleteDialog,
|
|
6052
|
+
selectCurrentTab,
|
|
6053
|
+
enabled,
|
|
6054
|
+
currentTab,
|
|
6055
|
+
name,
|
|
6056
|
+
translations
|
|
6057
|
+
}) => {
|
|
6058
|
+
return jsx("div", {
|
|
6059
|
+
children: enabled ? jsx(SideMenuItem, {
|
|
6060
|
+
style: currentTab === rowIndex ? {
|
|
6061
|
+
background: '#EFF8FF'
|
|
6062
|
+
} : {},
|
|
6063
|
+
onClick: () => selectCurrentTab(rowIndex),
|
|
6064
|
+
children: jsxs(RowFlexMenu, {
|
|
6065
|
+
children: [jsx(TabName, {
|
|
6066
|
+
children: name
|
|
6067
|
+
}), jsx(Trash, {
|
|
6068
|
+
children: jsx(GoAIconButton, {
|
|
6069
|
+
icon: "trash",
|
|
6070
|
+
"aria-label": translations.removeAriaLabel,
|
|
6071
|
+
onClick: () => openDeleteDialog(childPath, rowIndex, name)
|
|
6072
|
+
})
|
|
6073
|
+
})]
|
|
6074
|
+
})
|
|
6075
|
+
}) : null
|
|
6076
|
+
}, childPath);
|
|
6077
|
+
};
|
|
6078
|
+
const NonEmptyList = /*#__PURE__*/React.memo(NonEmptyRowComponent);
|
|
6079
|
+
const ObjectArrayList = ({
|
|
6080
|
+
data,
|
|
6081
|
+
path,
|
|
6082
|
+
schema,
|
|
6083
|
+
openDeleteDialog,
|
|
6084
|
+
uischema,
|
|
6085
|
+
config,
|
|
6086
|
+
enabled,
|
|
6087
|
+
cells,
|
|
6088
|
+
translations
|
|
6089
|
+
}) => {
|
|
6090
|
+
const isEmptyList = data === 0;
|
|
6091
|
+
const rightRef = useRef(null);
|
|
6092
|
+
const current = rightRef.current;
|
|
6093
|
+
const [rightHeight, setRightHeight] = useState(0);
|
|
6094
|
+
const [currentTab, setCurrentTab] = useState(0);
|
|
6095
|
+
useEffect(() => {
|
|
6096
|
+
const resizeObserver = new ResizeObserver(entries => {
|
|
6097
|
+
if (rightHeight !== (current === null || current === void 0 ? void 0 : current.offsetHeight)) setRightHeight(current === null || current === void 0 ? void 0 : current.offsetHeight);
|
|
6098
|
+
});
|
|
6099
|
+
if (current) {
|
|
6100
|
+
resizeObserver.observe(current);
|
|
6101
|
+
}
|
|
6102
|
+
return () => {
|
|
6103
|
+
if (current) {
|
|
6104
|
+
resizeObserver.unobserve(current);
|
|
6105
|
+
}
|
|
6106
|
+
};
|
|
6107
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6108
|
+
}, [current]);
|
|
6109
|
+
if (isEmptyList) {
|
|
6110
|
+
return jsx(EmptyList, {
|
|
6111
|
+
numColumns: getValidColumnProps(schema).length + 1,
|
|
6112
|
+
translations: translations
|
|
6113
|
+
});
|
|
6114
|
+
}
|
|
6115
|
+
const appliedUiSchemaOptions = merge({}, config, uischema.options);
|
|
6116
|
+
const selectCurrentTab = index => {
|
|
6117
|
+
setCurrentTab(index);
|
|
6118
|
+
};
|
|
6119
|
+
const paddedHeight = rightHeight && rightHeight + 48;
|
|
6120
|
+
return jsx(ListContainer, {
|
|
6121
|
+
children: jsxs(RowFlex, {
|
|
6122
|
+
children: [jsx(FlexTabs, {
|
|
6123
|
+
style: {
|
|
6124
|
+
height: paddedHeight
|
|
6125
|
+
},
|
|
6126
|
+
children: range(data).map(index => {
|
|
6127
|
+
const childPath = Paths.compose(path, `${index}`);
|
|
6128
|
+
const name = `${index}: ${path}`;
|
|
6129
|
+
return jsx(LeftTab, {
|
|
6130
|
+
childPath: childPath,
|
|
6131
|
+
rowIndex: index,
|
|
6132
|
+
currentTab: currentTab,
|
|
6133
|
+
name: name,
|
|
6134
|
+
openDeleteDialog: openDeleteDialog,
|
|
6135
|
+
selectCurrentTab: selectCurrentTab,
|
|
6136
|
+
enabled: enabled,
|
|
6137
|
+
translations: translations
|
|
6138
|
+
}, childPath);
|
|
6139
|
+
})
|
|
6140
|
+
}), jsx(FlexForm, {
|
|
6141
|
+
ref: rightRef,
|
|
6142
|
+
children: jsx(NonEmptyList, {
|
|
6143
|
+
childPath: Paths.compose(path, `${currentTab}`),
|
|
6144
|
+
rowIndex: currentTab,
|
|
6145
|
+
schema: schema,
|
|
6146
|
+
openDeleteDialog: openDeleteDialog,
|
|
6147
|
+
showSortButtons: appliedUiSchemaOptions.showSortButtons || appliedUiSchemaOptions.showArrayTableSortButtons,
|
|
6148
|
+
enabled: enabled,
|
|
6149
|
+
cells: cells,
|
|
6150
|
+
path: path,
|
|
6151
|
+
uischema: uischema,
|
|
6152
|
+
translations: translations
|
|
6153
|
+
}, Paths.compose(path, `${currentTab}`))
|
|
6154
|
+
})]
|
|
6155
|
+
})
|
|
6156
|
+
});
|
|
6157
|
+
};
|
|
6158
|
+
// eslint-disable-next-line
|
|
6159
|
+
class ListWithDetailControl extends React.Component {
|
|
6160
|
+
constructor() {
|
|
6161
|
+
super(...arguments);
|
|
6162
|
+
// eslint-disable-next-line
|
|
6163
|
+
this.addItem = (path, value) => this.props.addItem(path, value);
|
|
6164
|
+
}
|
|
6165
|
+
render() {
|
|
6166
|
+
var _a;
|
|
6167
|
+
const _b = this.props,
|
|
6168
|
+
{
|
|
6169
|
+
label,
|
|
6170
|
+
path,
|
|
6171
|
+
schema,
|
|
6172
|
+
rootSchema,
|
|
6173
|
+
uischema,
|
|
6174
|
+
errors,
|
|
6175
|
+
openDeleteDialog,
|
|
6176
|
+
visible,
|
|
6177
|
+
enabled,
|
|
6178
|
+
cells,
|
|
6179
|
+
translations,
|
|
6180
|
+
data,
|
|
6181
|
+
config
|
|
6182
|
+
} = _b,
|
|
6183
|
+
additionalProps = __rest(_b, ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "translations", "data", "config"]);
|
|
6184
|
+
const controlElement = uischema;
|
|
6185
|
+
// eslint-disable-next-line
|
|
6186
|
+
const listTitle = label || ((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.title);
|
|
6187
|
+
return jsxs(Visible, {
|
|
6188
|
+
visible: visible,
|
|
6189
|
+
"data-testid": "jsonforms-object-list-wrapper",
|
|
6190
|
+
children: [jsxs(ToolBarHeader, {
|
|
6191
|
+
children: [listTitle && jsx(ObjectArrayTitle, {
|
|
6192
|
+
children: listTitle
|
|
6193
|
+
}), jsx(ObjectArrayToolBar, {
|
|
6194
|
+
errors: errors,
|
|
6195
|
+
label: label,
|
|
6196
|
+
addItem: this.addItem,
|
|
6197
|
+
numColumns: 0,
|
|
6198
|
+
path: path,
|
|
6199
|
+
uischema: controlElement,
|
|
6200
|
+
schema: schema,
|
|
6201
|
+
rootSchema: rootSchema,
|
|
6202
|
+
enabled: enabled,
|
|
6203
|
+
translations: translations
|
|
6204
|
+
})]
|
|
6205
|
+
}), jsx("div", {
|
|
6206
|
+
children: jsx(ObjectArrayList, Object.assign({
|
|
6207
|
+
path: path,
|
|
6208
|
+
schema: schema,
|
|
6209
|
+
uischema: uischema,
|
|
6210
|
+
enabled: enabled,
|
|
6211
|
+
openDeleteDialog: openDeleteDialog,
|
|
6212
|
+
translations: translations,
|
|
6213
|
+
data: data,
|
|
6214
|
+
cells: cells,
|
|
6215
|
+
config: config
|
|
6216
|
+
}, additionalProps))
|
|
6217
|
+
})]
|
|
6218
|
+
});
|
|
6219
|
+
}
|
|
6220
|
+
}
|
|
6221
|
+
|
|
6222
|
+
const ListWithDetailsControl = props => {
|
|
6223
|
+
const [open, setOpen] = useState(false);
|
|
6224
|
+
const [path, setPath] = useState();
|
|
6225
|
+
const [name, setName] = useState();
|
|
6226
|
+
const [rowData, setRowData] = useState(0);
|
|
6227
|
+
const {
|
|
6228
|
+
removeItems,
|
|
6229
|
+
visible
|
|
6230
|
+
} = props;
|
|
6231
|
+
const openDeleteDialog = useCallback((p, rowIndex, name) => {
|
|
6232
|
+
setOpen(true);
|
|
6233
|
+
setPath(p);
|
|
6234
|
+
setName(name);
|
|
6235
|
+
setRowData(rowIndex);
|
|
6236
|
+
}, [setOpen, setPath, setRowData]);
|
|
6237
|
+
const deleteCancel = useCallback(() => setOpen(false), [setOpen]);
|
|
6238
|
+
// eslint-disable-next-line
|
|
6239
|
+
const deleteConfirm = useCallback(() => {
|
|
6240
|
+
const p = path === null || path === void 0 ? void 0 : path.substring(0, path.lastIndexOf('.'));
|
|
6241
|
+
if (removeItems && p) {
|
|
6242
|
+
removeItems(p, [rowData])();
|
|
6243
|
+
}
|
|
6244
|
+
setOpen(false);
|
|
6245
|
+
// eslint-disable-next-line
|
|
6246
|
+
}, [setOpen, path, rowData]);
|
|
6247
|
+
return jsxs(Visible, {
|
|
6248
|
+
visible: visible,
|
|
6249
|
+
children: [jsx(ListWithDetailControl, Object.assign({}, props, {
|
|
6250
|
+
openDeleteDialog: openDeleteDialog
|
|
6251
|
+
})), jsx(DeleteDialog, {
|
|
6252
|
+
open: open,
|
|
6253
|
+
onCancel: deleteCancel,
|
|
6254
|
+
onConfirm: deleteConfirm,
|
|
6255
|
+
title: props.translations.deleteDialogTitle || '',
|
|
6256
|
+
message: `Are you sure you wish to delete ${name} `
|
|
6257
|
+
})]
|
|
6258
|
+
});
|
|
6259
|
+
};
|
|
6260
|
+
const GoAListWithDetailsControlRenderer = withJsonFormsArrayLayoutProps(ListWithDetailsControl);
|
|
6165
6261
|
const GoAListWithDetailsTester = rankWith(3, and(uiTypeIs('ListWithDetail')));
|
|
6166
6262
|
|
|
6167
6263
|
const GoATextCell = props => jsx(GoAInputText, Object.assign({}, props));
|
|
@@ -6218,7 +6314,33 @@ const GoAHorizontalLayoutComponent = ({
|
|
|
6218
6314
|
path,
|
|
6219
6315
|
enabled,
|
|
6220
6316
|
direction: 'row',
|
|
6221
|
-
visible
|
|
6317
|
+
visible,
|
|
6318
|
+
width: '10ch'
|
|
6319
|
+
};
|
|
6320
|
+
return jsx(LayoutRenderer, Object.assign({}, childProps, {
|
|
6321
|
+
renderers: renderers,
|
|
6322
|
+
cells: cells
|
|
6323
|
+
}));
|
|
6324
|
+
};
|
|
6325
|
+
const GoAHorizontalReviewLayoutComponent = ({
|
|
6326
|
+
uischema,
|
|
6327
|
+
renderers,
|
|
6328
|
+
cells,
|
|
6329
|
+
schema,
|
|
6330
|
+
path,
|
|
6331
|
+
enabled,
|
|
6332
|
+
visible
|
|
6333
|
+
}) => {
|
|
6334
|
+
var _a, _b;
|
|
6335
|
+
const layout = uischema;
|
|
6336
|
+
const childProps = {
|
|
6337
|
+
elements: layout.elements,
|
|
6338
|
+
schema,
|
|
6339
|
+
path,
|
|
6340
|
+
enabled,
|
|
6341
|
+
direction: 'row',
|
|
6342
|
+
visible,
|
|
6343
|
+
width: ((_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.review) === null || _b === void 0 ? void 0 : _b.width) || '30ch'
|
|
6222
6344
|
};
|
|
6223
6345
|
return jsx(LayoutRenderer, Object.assign({}, childProps, {
|
|
6224
6346
|
renderers: renderers,
|
|
@@ -6226,6 +6348,7 @@ const GoAHorizontalLayoutComponent = ({
|
|
|
6226
6348
|
}));
|
|
6227
6349
|
};
|
|
6228
6350
|
const GoAHorizontalLayout = withJsonFormsLayoutProps(GoAHorizontalLayoutComponent, true);
|
|
6351
|
+
const GoAHorizontalReviewLayout = withJsonFormsLayoutProps(GoAHorizontalReviewLayoutComponent, true);
|
|
6229
6352
|
|
|
6230
6353
|
const GoAVerticalLayoutComponent = ({
|
|
6231
6354
|
uischema,
|
|
@@ -6380,6 +6503,9 @@ const RenderLink = props => {
|
|
|
6380
6503
|
});
|
|
6381
6504
|
};
|
|
6382
6505
|
|
|
6506
|
+
const HelpContentReviewComponent = () => {
|
|
6507
|
+
return jsx(Fragment, {});
|
|
6508
|
+
};
|
|
6383
6509
|
const HelpContentComponent = _a => {
|
|
6384
6510
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
6385
6511
|
var {
|
|
@@ -6468,6 +6594,7 @@ const HelpContents = ({
|
|
|
6468
6594
|
});
|
|
6469
6595
|
const HelpContentTester = rankWith(1, uiTypeIs('HelpContent'));
|
|
6470
6596
|
const HelpContent = withJsonFormsControlProps(HelpContentComponent);
|
|
6597
|
+
const HelpReviewContent = withJsonFormsControlProps(HelpContentReviewComponent);
|
|
6471
6598
|
|
|
6472
6599
|
const isNullSchema = schema => {
|
|
6473
6600
|
return schema === undefined || schema === null;
|
|
@@ -6539,7 +6666,7 @@ const getUISchemaErrors = (uiSchema, schema) => {
|
|
|
6539
6666
|
return '';
|
|
6540
6667
|
}
|
|
6541
6668
|
// Check control elements
|
|
6542
|
-
if (isControl
|
|
6669
|
+
if (isControl(uiSchema) && hasType(uiSchema, 'Control')) {
|
|
6543
6670
|
if (!isScopedPrefixed(uiSchema.scope)) {
|
|
6544
6671
|
return errMalformedScope(uiSchema.scope);
|
|
6545
6672
|
}
|
|
@@ -6573,7 +6700,7 @@ const getUISchemaErrors = (uiSchema, schema) => {
|
|
|
6573
6700
|
}
|
|
6574
6701
|
// ensure each element has type Category, and that each category
|
|
6575
6702
|
// has elements
|
|
6576
|
-
if (isLayout
|
|
6703
|
+
if (isLayout(uiSchema)) {
|
|
6577
6704
|
const invalidCategorizations = [];
|
|
6578
6705
|
const invalidCategories = [];
|
|
6579
6706
|
uiSchema.elements.forEach(e => {
|
|
@@ -6636,14 +6763,16 @@ const GoAErrorControlTester = rankWith(1000, (uischema, schema, context) => {
|
|
|
6636
6763
|
});
|
|
6637
6764
|
var GoAErrorControl = withJsonFormsControlProps(ErrorControl);
|
|
6638
6765
|
|
|
6639
|
-
const
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
ajv.addFormat('file-urn', /^urn:ads:platform:file-service:v[0-9]:\/files\/[a-zA-Z0-9.-]*$/);
|
|
6646
|
-
addFormats(ajv);
|
|
6766
|
+
const createDefaultAjv = () => {
|
|
6767
|
+
const ajv = new Ajv({
|
|
6768
|
+
allErrors: true,
|
|
6769
|
+
verbose: true,
|
|
6770
|
+
strict: 'log'
|
|
6771
|
+
});
|
|
6772
|
+
ajv.addFormat('file-urn', /^urn:ads:platform:file-service:v[0-9]:\/files\/[a-zA-Z0-9.-]*$/);
|
|
6773
|
+
addFormats(ajv);
|
|
6774
|
+
return ajv;
|
|
6775
|
+
};
|
|
6647
6776
|
|
|
6648
6777
|
const GoABaseRenderers = [
|
|
6649
6778
|
// controls
|
|
@@ -6688,7 +6817,7 @@ const GoABaseRenderers = [
|
|
|
6688
6817
|
renderer: GoAArrayControlRenderer
|
|
6689
6818
|
}, {
|
|
6690
6819
|
tester: GoAListWithDetailsTester,
|
|
6691
|
-
renderer:
|
|
6820
|
+
renderer: GoAListWithDetailsControlRenderer
|
|
6692
6821
|
},
|
|
6693
6822
|
// layouts
|
|
6694
6823
|
{
|
|
@@ -6712,6 +6841,64 @@ const GoABaseRenderers = [
|
|
|
6712
6841
|
tester: HelpContentTester,
|
|
6713
6842
|
renderer: HelpContent
|
|
6714
6843
|
}];
|
|
6844
|
+
const GoABaseReviewRenderers = [
|
|
6845
|
+
// controls
|
|
6846
|
+
{
|
|
6847
|
+
tester: GoAEnumControlTester,
|
|
6848
|
+
renderer: GoInputBaseReviewControl
|
|
6849
|
+
}, {
|
|
6850
|
+
tester: GoAIntegerControlTester,
|
|
6851
|
+
renderer: GoInputBaseReviewControl
|
|
6852
|
+
}, {
|
|
6853
|
+
tester: GoANumberControlTester,
|
|
6854
|
+
renderer: GoInputBaseReviewControl
|
|
6855
|
+
}, {
|
|
6856
|
+
tester: GoATextControlTester,
|
|
6857
|
+
renderer: GoInputBaseReviewControl
|
|
6858
|
+
}, {
|
|
6859
|
+
tester: GoADateControlTester,
|
|
6860
|
+
renderer: GoInputBaseReviewControl
|
|
6861
|
+
}, {
|
|
6862
|
+
tester: GoADateTimeControlTester,
|
|
6863
|
+
renderer: GoInputBaseReviewControl
|
|
6864
|
+
}, {
|
|
6865
|
+
tester: GoATimeControlTester,
|
|
6866
|
+
renderer: GoInputBaseReviewControl
|
|
6867
|
+
}, {
|
|
6868
|
+
tester: GoARadioGroupControlTester,
|
|
6869
|
+
renderer: GoInputBaseReviewControl
|
|
6870
|
+
}, {
|
|
6871
|
+
tester: GoACheckoutGroupControlTester,
|
|
6872
|
+
renderer: GoInputBaseReviewControl
|
|
6873
|
+
}, {
|
|
6874
|
+
tester: GoABooleanControlTester,
|
|
6875
|
+
renderer: GoInputBaseReviewControl
|
|
6876
|
+
}, {
|
|
6877
|
+
tester: GoABooleanRadioControlTester,
|
|
6878
|
+
renderer: GoInputBaseReviewControl
|
|
6879
|
+
}, {
|
|
6880
|
+
tester: MultiLineTextControlTester,
|
|
6881
|
+
renderer: GoInputBaseReviewControl
|
|
6882
|
+
}, {
|
|
6883
|
+
tester: GoAArrayControlTester,
|
|
6884
|
+
renderer: GoAArrayControlReviewRenderer
|
|
6885
|
+
}, {
|
|
6886
|
+
tester: GoAListWithDetailsTester,
|
|
6887
|
+
renderer: GoAArrayControlReviewRenderer
|
|
6888
|
+
}, {
|
|
6889
|
+
tester: GoAHorizontalLayoutTester,
|
|
6890
|
+
renderer: GoAHorizontalReviewLayout
|
|
6891
|
+
}, {
|
|
6892
|
+
tester: GoAlVerticalLayoutTester,
|
|
6893
|
+
renderer: GoAVerticalLayout
|
|
6894
|
+
}, {
|
|
6895
|
+
tester: HelpContentTester,
|
|
6896
|
+
renderer: HelpReviewContent
|
|
6897
|
+
}];
|
|
6898
|
+
const GoAReviewRenderers = [...GoABaseReviewRenderers, {
|
|
6899
|
+
tester: FileUploaderTester,
|
|
6900
|
+
renderer: withJsonFormsControlProps(FileUploaderReview)
|
|
6901
|
+
}];
|
|
6715
6902
|
const GoARenderers = [...GoABaseRenderers, {
|
|
6716
6903
|
tester: CategorizationRendererTester,
|
|
6717
6904
|
renderer: FormStepperControl
|
|
@@ -6721,4 +6908,4 @@ const GoARenderers = [...GoABaseRenderers, {
|
|
|
6721
6908
|
}];
|
|
6722
6909
|
const GoACells = [...InputCells];
|
|
6723
6910
|
|
|
6724
|
-
export { ADD_REGISTER_DATA_ACTION, ContextProviderC, ContextProviderClass, ContextProviderFactory, GoABaseRenderers, GoACells, GoARenderers, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext,
|
|
6911
|
+
export { ADD_REGISTER_DATA_ACTION, ContextProviderC, ContextProviderClass, ContextProviderFactory, GoABaseRenderers, GoABaseReviewRenderers, GoACells, GoARenderers, GoAReviewRenderers, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, createDefaultAjv, registerReducer };
|