@abgov/jsonforms-components 2.59.0 → 2.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -4352,83 +4352,6 @@ const ADD_DATALIST_ACTION = 'jsonforms/register/add_datalist_action';
4352
4352
  const ADD_USER_ACTION = 'jsonforms/register/add_user_action';
4353
4353
  const ADD_REGISTER_DATA_ERROR = 'jsonforms/register/add_register_data_error';
4354
4354
 
4355
- var DESCRIPTORS$a = descriptors;
4356
- var isArray$3 = isArray$5;
4357
-
4358
- var $TypeError$7 = TypeError;
4359
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
4360
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
4361
-
4362
- // Safari < 13 does not throw an error in this case
4363
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$a && !function () {
4364
- // makes no sense without proper strict mode support
4365
- if (this !== undefined) return true;
4366
- try {
4367
- // eslint-disable-next-line es/no-object-defineproperty -- safe
4368
- Object.defineProperty([], 'length', { writable: false }).length = 1;
4369
- } catch (error) {
4370
- return error instanceof TypeError;
4371
- }
4372
- }();
4373
-
4374
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
4375
- if (isArray$3(O) && !getOwnPropertyDescriptor$3(O, 'length').writable) {
4376
- throw new $TypeError$7('Cannot set read only .length');
4377
- } return O.length = length;
4378
- } : function (O, length) {
4379
- return O.length = length;
4380
- };
4381
-
4382
- var $TypeError$6 = TypeError;
4383
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
4384
-
4385
- var doesNotExceedSafeInteger$2 = function (it) {
4386
- if (it > MAX_SAFE_INTEGER) throw $TypeError$6('Maximum allowed index exceeded');
4387
- return it;
4388
- };
4389
-
4390
- var $$n = _export;
4391
- var toObject$4 = toObject$a;
4392
- var lengthOfArrayLike$6 = lengthOfArrayLike$a;
4393
- var setArrayLength = arraySetLength;
4394
- var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
4395
- var fails$9 = fails$x;
4396
-
4397
- var INCORRECT_TO_LENGTH = fails$9(function () {
4398
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
4399
- });
4400
-
4401
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
4402
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
4403
- var properErrorOnNonWritableLength = function () {
4404
- try {
4405
- // eslint-disable-next-line es/no-object-defineproperty -- safe
4406
- Object.defineProperty([], 'length', { writable: false }).push();
4407
- } catch (error) {
4408
- return error instanceof TypeError;
4409
- }
4410
- };
4411
-
4412
- var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
4413
-
4414
- // `Array.prototype.push` method
4415
- // https://tc39.es/ecma262/#sec-array.prototype.push
4416
- $$n({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
4417
- // eslint-disable-next-line no-unused-vars -- required for `.length`
4418
- push: function push(item) {
4419
- var O = toObject$4(this);
4420
- var len = lengthOfArrayLike$6(O);
4421
- var argCount = arguments.length;
4422
- doesNotExceedSafeInteger$1(len + argCount);
4423
- for (var i = 0; i < argCount; i++) {
4424
- O[len] = arguments[i];
4425
- len++;
4426
- }
4427
- setArrayLength(O, len);
4428
- return len;
4429
- }
4430
- });
4431
-
4432
4355
  function registerReducer(state, action) {
4433
4356
  switch (action.type) {
4434
4357
  case ADD_REGISTER_DATA_ERROR:
@@ -4443,9 +4366,11 @@ function registerReducer(state, action) {
4443
4366
  const {
4444
4367
  registerData
4445
4368
  } = state;
4446
- registerData.push(action.payload);
4369
+ const payload = action.payload;
4370
+ const existingIndex = registerData.findIndex(r => payload.urn && r.urn === payload.urn || payload.url && r.url === payload.url);
4371
+ const updatedData = existingIndex >= 0 ? registerData.map((r, i) => i === existingIndex ? payload : r) : [...registerData, payload];
4447
4372
  return Object.assign({}, state, {
4448
- registerData: registerData
4373
+ registerData: updatedData
4449
4374
  });
4450
4375
  }
4451
4376
  case ADD_NO_ANONYMOUS_ACTION:
@@ -4470,20 +4395,20 @@ function registerReducer(state, action) {
4470
4395
  return state;
4471
4396
  }
4472
4397
 
4473
- var $$m = _export;
4398
+ var $$n = _export;
4474
4399
  var $includes = arrayIncludes.includes;
4475
- var fails$8 = fails$x;
4400
+ var fails$9 = fails$x;
4476
4401
  var addToUnscopables$2 = addToUnscopables$5;
4477
4402
 
4478
4403
  // FF99+ bug
4479
- var BROKEN_ON_SPARSE = fails$8(function () {
4404
+ var BROKEN_ON_SPARSE = fails$9(function () {
4480
4405
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
4481
4406
  return !Array(1).includes();
4482
4407
  });
4483
4408
 
4484
4409
  // `Array.prototype.includes` method
4485
4410
  // https://tc39.es/ecma262/#sec-array.prototype.includes
4486
- $$m({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4411
+ $$n({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4487
4412
  includes: function includes(el /* , fromIndex = 0 */) {
4488
4413
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4489
4414
  }
@@ -4500,14 +4425,14 @@ var engineIsNode = classof$3(global$d.process) === 'process';
4500
4425
  var getBuiltIn$4 = getBuiltIn$b;
4501
4426
  var defineBuiltInAccessor$5 = defineBuiltInAccessor$7;
4502
4427
  var wellKnownSymbol$7 = wellKnownSymbol$o;
4503
- var DESCRIPTORS$9 = descriptors;
4428
+ var DESCRIPTORS$a = descriptors;
4504
4429
 
4505
4430
  var SPECIES$3 = wellKnownSymbol$7('species');
4506
4431
 
4507
4432
  var setSpecies$2 = function (CONSTRUCTOR_NAME) {
4508
4433
  var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
4509
4434
 
4510
- if (DESCRIPTORS$9 && Constructor && !Constructor[SPECIES$3]) {
4435
+ if (DESCRIPTORS$a && Constructor && !Constructor[SPECIES$3]) {
4511
4436
  defineBuiltInAccessor$5(Constructor, SPECIES$3, {
4512
4437
  configurable: true,
4513
4438
  get: function () { return this; }
@@ -4516,7 +4441,7 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
4516
4441
  };
4517
4442
 
4518
4443
  var uncurryThis$f = functionUncurryThis;
4519
- var fails$7 = fails$x;
4444
+ var fails$8 = fails$x;
4520
4445
  var isCallable$7 = isCallable$t;
4521
4446
  var classof$2 = classof$a;
4522
4447
  var getBuiltIn$3 = getBuiltIn$b;
@@ -4559,7 +4484,7 @@ isConstructorLegacy.sham = true;
4559
4484
 
4560
4485
  // `IsConstructor` abstract operation
4561
4486
  // https://tc39.es/ecma262/#sec-isconstructor
4562
- var isConstructor$3 = !construct || fails$7(function () {
4487
+ var isConstructor$3 = !construct || fails$8(function () {
4563
4488
  var called;
4564
4489
  return isConstructorModern(isConstructorModern.call)
4565
4490
  || !isConstructorModern(Object)
@@ -4570,12 +4495,12 @@ var isConstructor$3 = !construct || fails$7(function () {
4570
4495
  var isConstructor$2 = isConstructor$3;
4571
4496
  var tryToString = tryToString$4;
4572
4497
 
4573
- var $TypeError$5 = TypeError;
4498
+ var $TypeError$7 = TypeError;
4574
4499
 
4575
4500
  // `Assert: IsConstructor(argument) is true`
4576
4501
  var aConstructor$1 = function (argument) {
4577
4502
  if (isConstructor$2(argument)) return argument;
4578
- throw new $TypeError$5(tryToString(argument) + ' is not a constructor');
4503
+ throw new $TypeError$7(tryToString(argument) + ' is not a constructor');
4579
4504
  };
4580
4505
 
4581
4506
  var anObject$8 = anObject$t;
@@ -4593,10 +4518,10 @@ var speciesConstructor$2 = function (O, defaultConstructor) {
4593
4518
  return C === undefined || isNullOrUndefined$2(S = anObject$8(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
4594
4519
  };
4595
4520
 
4596
- var $TypeError$4 = TypeError;
4521
+ var $TypeError$6 = TypeError;
4597
4522
 
4598
4523
  var validateArgumentsLength$5 = function (passed, required) {
4599
- if (passed < required) throw new $TypeError$4('Not enough arguments');
4524
+ if (passed < required) throw new $TypeError$6('Not enough arguments');
4600
4525
  return passed;
4601
4526
  };
4602
4527
 
@@ -4610,7 +4535,7 @@ var apply = functionApply;
4610
4535
  var bind$6 = functionBindContext;
4611
4536
  var isCallable$6 = isCallable$t;
4612
4537
  var hasOwn$6 = hasOwnProperty_1;
4613
- var fails$6 = fails$x;
4538
+ var fails$7 = fails$x;
4614
4539
  var html = html$2;
4615
4540
  var arraySlice$2 = arraySlice$4;
4616
4541
  var createElement = documentCreateElement$2;
@@ -4630,7 +4555,7 @@ var queue$2 = {};
4630
4555
  var ONREADYSTATECHANGE = 'onreadystatechange';
4631
4556
  var $location, defer, channel, port;
4632
4557
 
4633
- fails$6(function () {
4558
+ fails$7(function () {
4634
4559
  // Deno throws a ReferenceError on `location` access without `--location` flag
4635
4560
  $location = global$c.location;
4636
4561
  });
@@ -4697,7 +4622,7 @@ if (!set || !clear) {
4697
4622
  isCallable$6(global$c.postMessage) &&
4698
4623
  !global$c.importScripts &&
4699
4624
  $location && $location.protocol !== 'file:' &&
4700
- !fails$6(globalPostMessageDefer)
4625
+ !fails$7(globalPostMessageDefer)
4701
4626
  ) {
4702
4627
  defer = globalPostMessageDefer;
4703
4628
  global$c.addEventListener('message', eventListener, false);
@@ -4721,15 +4646,15 @@ var task$1 = {
4721
4646
  set: set};
4722
4647
 
4723
4648
  var global$b = global$t;
4724
- var DESCRIPTORS$8 = descriptors;
4649
+ var DESCRIPTORS$9 = descriptors;
4725
4650
 
4726
4651
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
4727
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
4652
+ var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
4728
4653
 
4729
4654
  // Avoid NodeJS experimental warning
4730
4655
  var safeGetBuiltIn$2 = function (name) {
4731
- if (!DESCRIPTORS$8) return global$b[name];
4732
- var descriptor = getOwnPropertyDescriptor$2(global$b, name);
4656
+ if (!DESCRIPTORS$9) return global$b[name];
4657
+ var descriptor = getOwnPropertyDescriptor$3(global$b, name);
4733
4658
  return descriptor && descriptor.value;
4734
4659
  };
4735
4660
 
@@ -4923,12 +4848,12 @@ var newPromiseCapability$2 = {};
4923
4848
 
4924
4849
  var aCallable$8 = aCallable$j;
4925
4850
 
4926
- var $TypeError$3 = TypeError;
4851
+ var $TypeError$5 = TypeError;
4927
4852
 
4928
4853
  var PromiseCapability = function (C) {
4929
4854
  var resolve, reject;
4930
4855
  this.promise = new C(function ($$resolve, $$reject) {
4931
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
4856
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$5('Bad Promise constructor');
4932
4857
  resolve = $$resolve;
4933
4858
  reject = $$reject;
4934
4859
  });
@@ -4942,7 +4867,7 @@ newPromiseCapability$2.f = function (C) {
4942
4867
  return new PromiseCapability(C);
4943
4868
  };
4944
4869
 
4945
- var $$l = _export;
4870
+ var $$m = _export;
4946
4871
  var IS_NODE$1 = engineIsNode;
4947
4872
  var global$7 = global$t;
4948
4873
  var call$a = functionCall;
@@ -5222,7 +5147,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5222
5147
  }
5223
5148
  }
5224
5149
 
5225
- $$l({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5150
+ $$m({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5226
5151
  Promise: PromiseConstructor
5227
5152
  });
5228
5153
 
@@ -5278,7 +5203,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
5278
5203
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
5279
5204
  });
5280
5205
 
5281
- var $$k = _export;
5206
+ var $$l = _export;
5282
5207
  var call$9 = functionCall;
5283
5208
  var aCallable$6 = aCallable$j;
5284
5209
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -5288,7 +5213,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
5288
5213
 
5289
5214
  // `Promise.all` method
5290
5215
  // https://tc39.es/ecma262/#sec-promise.all
5291
- $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5216
+ $$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5292
5217
  all: function all(iterable) {
5293
5218
  var C = this;
5294
5219
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -5317,7 +5242,7 @@ $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5317
5242
  }
5318
5243
  });
5319
5244
 
5320
- var $$j = _export;
5245
+ var $$k = _export;
5321
5246
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
5322
5247
  var NativePromiseConstructor = promiseNativeConstructor;
5323
5248
  var getBuiltIn$2 = getBuiltIn$b;
@@ -5328,7 +5253,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
5328
5253
 
5329
5254
  // `Promise.prototype.catch` method
5330
5255
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
5331
- $$j({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5256
+ $$k({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5332
5257
  'catch': function (onRejected) {
5333
5258
  return this.then(undefined, onRejected);
5334
5259
  }
@@ -5342,7 +5267,7 @@ if (isCallable$3(NativePromiseConstructor)) {
5342
5267
  }
5343
5268
  }
5344
5269
 
5345
- var $$i = _export;
5270
+ var $$j = _export;
5346
5271
  var call$8 = functionCall;
5347
5272
  var aCallable$5 = aCallable$j;
5348
5273
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -5352,7 +5277,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
5352
5277
 
5353
5278
  // `Promise.race` method
5354
5279
  // https://tc39.es/ecma262/#sec-promise.race
5355
- $$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5280
+ $$j({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5356
5281
  race: function race(iterable) {
5357
5282
  var C = this;
5358
5283
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -5368,13 +5293,13 @@ $$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5368
5293
  }
5369
5294
  });
5370
5295
 
5371
- var $$h = _export;
5296
+ var $$i = _export;
5372
5297
  var newPromiseCapabilityModule = newPromiseCapability$2;
5373
5298
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
5374
5299
 
5375
5300
  // `Promise.reject` method
5376
5301
  // https://tc39.es/ecma262/#sec-promise.reject
5377
- $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5302
+ $$i({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5378
5303
  reject: function reject(r) {
5379
5304
  var capability = newPromiseCapabilityModule.f(this);
5380
5305
  var capabilityReject = capability.reject;
@@ -5396,7 +5321,7 @@ var promiseResolve$1 = function (C, x) {
5396
5321
  return promiseCapability.promise;
5397
5322
  };
5398
5323
 
5399
- var $$g = _export;
5324
+ var $$h = _export;
5400
5325
  var getBuiltIn$1 = getBuiltIn$b;
5401
5326
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
5402
5327
  var promiseResolve = promiseResolve$1;
@@ -5405,13 +5330,13 @@ getBuiltIn$1('Promise');
5405
5330
 
5406
5331
  // `Promise.resolve` method
5407
5332
  // https://tc39.es/ecma262/#sec-promise.resolve
5408
- $$g({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5333
+ $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5409
5334
  resolve: function resolve(x) {
5410
5335
  return promiseResolve(this, x);
5411
5336
  }
5412
5337
  });
5413
5338
 
5414
- var $$f = _export;
5339
+ var $$g = _export;
5415
5340
  var uncurryThis$e = functionUncurryThis;
5416
5341
  var notARegExp$1 = notARegexp;
5417
5342
  var requireObjectCoercible$5 = requireObjectCoercible$e;
@@ -5422,7 +5347,7 @@ var stringIndexOf$1 = uncurryThis$e(''.indexOf);
5422
5347
 
5423
5348
  // `String.prototype.includes` method
5424
5349
  // https://tc39.es/ecma262/#sec-string.prototype.includes
5425
- $$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
5350
+ $$g({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
5426
5351
  includes: function includes(searchString /* , position = 0 */) {
5427
5352
  return !!~stringIndexOf$1(
5428
5353
  toString$c(requireObjectCoercible$5(this)),
@@ -5432,7 +5357,7 @@ $$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes')
5432
5357
  }
5433
5358
  });
5434
5359
 
5435
- var $$e = _export;
5360
+ var $$f = _export;
5436
5361
  var iterate$2 = iterate$a;
5437
5362
  var aCallable$4 = aCallable$j;
5438
5363
  var anObject$6 = anObject$t;
@@ -5440,7 +5365,7 @@ var getIteratorDirect$3 = getIteratorDirect$a;
5440
5365
 
5441
5366
  // `Iterator.prototype.some` method
5442
5367
  // https://github.com/tc39/proposal-iterator-helpers
5443
- $$e({ target: 'Iterator', proto: true, real: true }, {
5368
+ $$f({ target: 'Iterator', proto: true, real: true }, {
5444
5369
  some: function some(predicate) {
5445
5370
  anObject$6(this);
5446
5371
  aCallable$4(predicate);
@@ -5452,7 +5377,7 @@ $$e({ target: 'Iterator', proto: true, real: true }, {
5452
5377
  }
5453
5378
  });
5454
5379
 
5455
- var DESCRIPTORS$7 = descriptors;
5380
+ var DESCRIPTORS$8 = descriptors;
5456
5381
  var global$6 = global$t;
5457
5382
  var uncurryThis$d = functionUncurryThis;
5458
5383
  var isForced = isForced_1;
@@ -5467,7 +5392,7 @@ var getRegExpFlags = regexpGetFlags;
5467
5392
  var stickyHelpers$1 = regexpStickyHelpers;
5468
5393
  var proxyAccessor = proxyAccessor$2;
5469
5394
  var defineBuiltIn$4 = defineBuiltIn$d;
5470
- var fails$5 = fails$x;
5395
+ var fails$6 = fails$x;
5471
5396
  var hasOwn$5 = hasOwnProperty_1;
5472
5397
  var enforceInternalState = internalState.enforce;
5473
5398
  var setSpecies = setSpecies$2;
@@ -5495,8 +5420,8 @@ var CORRECT_NEW = new NativeRegExp(re1) !== re1;
5495
5420
  var MISSED_STICKY = stickyHelpers$1.MISSED_STICKY;
5496
5421
  var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
5497
5422
 
5498
- var BASE_FORCED = DESCRIPTORS$7 &&
5499
- (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$5(function () {
5423
+ var BASE_FORCED = DESCRIPTORS$8 &&
5424
+ (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$6(function () {
5500
5425
  re2[MATCH] = false;
5501
5426
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
5502
5427
  return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
@@ -5644,18 +5569,18 @@ if (isForced('RegExp', BASE_FORCED)) {
5644
5569
  // https://tc39.es/ecma262/#sec-get-regexp-@@species
5645
5570
  setSpecies('RegExp');
5646
5571
 
5647
- var DESCRIPTORS$6 = descriptors;
5572
+ var DESCRIPTORS$7 = descriptors;
5648
5573
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
5649
5574
  var classof$1 = classofRaw$2;
5650
5575
  var defineBuiltInAccessor$4 = defineBuiltInAccessor$7;
5651
5576
  var getInternalState$1 = internalState.get;
5652
5577
 
5653
5578
  var RegExpPrototype = RegExp.prototype;
5654
- var $TypeError$2 = TypeError;
5579
+ var $TypeError$4 = TypeError;
5655
5580
 
5656
5581
  // `RegExp.prototype.dotAll` getter
5657
5582
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
5658
- if (DESCRIPTORS$6 && UNSUPPORTED_DOT_ALL) {
5583
+ if (DESCRIPTORS$7 && UNSUPPORTED_DOT_ALL) {
5659
5584
  defineBuiltInAccessor$4(RegExpPrototype, 'dotAll', {
5660
5585
  configurable: true,
5661
5586
  get: function dotAll() {
@@ -5665,7 +5590,7 @@ if (DESCRIPTORS$6 && UNSUPPORTED_DOT_ALL) {
5665
5590
  if (classof$1(this) === 'RegExp') {
5666
5591
  return !!getInternalState$1(this).dotAll;
5667
5592
  }
5668
- throw new $TypeError$2('Incompatible receiver, RegExp required');
5593
+ throw new $TypeError$4('Incompatible receiver, RegExp required');
5669
5594
  }
5670
5595
  });
5671
5596
  }
@@ -5952,22 +5877,22 @@ styled.h4(_t10$2 || (_t10$2 = _$a`
5952
5877
  `));
5953
5878
 
5954
5879
  var aCallable$3 = aCallable$j;
5955
- var toObject$3 = toObject$a;
5880
+ var toObject$4 = toObject$a;
5956
5881
  var IndexedObject = indexedObject;
5957
- var lengthOfArrayLike$5 = lengthOfArrayLike$a;
5882
+ var lengthOfArrayLike$6 = lengthOfArrayLike$a;
5958
5883
 
5959
- var $TypeError$1 = TypeError;
5884
+ var $TypeError$3 = TypeError;
5960
5885
 
5961
5886
  var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
5962
5887
 
5963
5888
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
5964
5889
  var createMethod$1 = function (IS_RIGHT) {
5965
5890
  return function (that, callbackfn, argumentsLength, memo) {
5966
- var O = toObject$3(that);
5891
+ var O = toObject$4(that);
5967
5892
  var self = IndexedObject(O);
5968
- var length = lengthOfArrayLike$5(O);
5893
+ var length = lengthOfArrayLike$6(O);
5969
5894
  aCallable$3(callbackfn);
5970
- if (length === 0 && argumentsLength < 2) throw new $TypeError$1(REDUCE_EMPTY);
5895
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$3(REDUCE_EMPTY);
5971
5896
  var index = IS_RIGHT ? length - 1 : 0;
5972
5897
  var i = IS_RIGHT ? -1 : 1;
5973
5898
  if (argumentsLength < 2) while (true) {
@@ -5978,7 +5903,7 @@ var createMethod$1 = function (IS_RIGHT) {
5978
5903
  }
5979
5904
  index += i;
5980
5905
  if (IS_RIGHT ? index < 0 : length <= index) {
5981
- throw new $TypeError$1(REDUCE_EMPTY);
5906
+ throw new $TypeError$3(REDUCE_EMPTY);
5982
5907
  }
5983
5908
  }
5984
5909
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -5993,17 +5918,17 @@ var arrayReduce = {
5993
5918
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5994
5919
  left: createMethod$1(false)};
5995
5920
 
5996
- var fails$4 = fails$x;
5921
+ var fails$5 = fails$x;
5997
5922
 
5998
5923
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
5999
5924
  var method = [][METHOD_NAME];
6000
- return !!method && fails$4(function () {
5925
+ return !!method && fails$5(function () {
6001
5926
  // eslint-disable-next-line no-useless-call -- required for testing
6002
5927
  method.call(null, argument || function () { return 1; }, 1);
6003
5928
  });
6004
5929
  };
6005
5930
 
6006
- var $$d = _export;
5931
+ var $$e = _export;
6007
5932
  var $reduce = arrayReduce.left;
6008
5933
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
6009
5934
  var CHROME_VERSION = engineV8Version;
@@ -6012,28 +5937,28 @@ var IS_NODE = engineIsNode;
6012
5937
  // Chrome 80-82 has a critical bug
6013
5938
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
6014
5939
  var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
6015
- var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
5940
+ var FORCED$2 = CHROME_BUG || !arrayMethodIsStrict('reduce');
6016
5941
 
6017
5942
  // `Array.prototype.reduce` method
6018
5943
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
6019
- $$d({ target: 'Array', proto: true, forced: FORCED$1 }, {
5944
+ $$e({ target: 'Array', proto: true, forced: FORCED$2 }, {
6020
5945
  reduce: function reduce(callbackfn /* , initialValue */) {
6021
5946
  var length = arguments.length;
6022
5947
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
6023
5948
  }
6024
5949
  });
6025
5950
 
6026
- var $$c = _export;
5951
+ var $$d = _export;
6027
5952
  var iterate$1 = iterate$a;
6028
5953
  var aCallable$2 = aCallable$j;
6029
5954
  var anObject$5 = anObject$t;
6030
5955
  var getIteratorDirect$2 = getIteratorDirect$a;
6031
5956
 
6032
- var $TypeError = TypeError;
5957
+ var $TypeError$2 = TypeError;
6033
5958
 
6034
5959
  // `Iterator.prototype.reduce` method
6035
5960
  // https://github.com/tc39/proposal-iterator-helpers
6036
- $$c({ target: 'Iterator', proto: true, real: true }, {
5961
+ $$d({ target: 'Iterator', proto: true, real: true }, {
6037
5962
  reduce: function reduce(reducer /* , initialValue */) {
6038
5963
  anObject$5(this);
6039
5964
  aCallable$2(reducer);
@@ -6050,11 +5975,88 @@ $$c({ target: 'Iterator', proto: true, real: true }, {
6050
5975
  }
6051
5976
  counter++;
6052
5977
  }, { IS_RECORD: true });
6053
- if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');
5978
+ if (noInitial) throw new $TypeError$2('Reduce of empty iterator with no initial value');
6054
5979
  return accumulator;
6055
5980
  }
6056
5981
  });
6057
5982
 
5983
+ var DESCRIPTORS$6 = descriptors;
5984
+ var isArray$3 = isArray$5;
5985
+
5986
+ var $TypeError$1 = TypeError;
5987
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
5988
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
5989
+
5990
+ // Safari < 13 does not throw an error in this case
5991
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$6 && !function () {
5992
+ // makes no sense without proper strict mode support
5993
+ if (this !== undefined) return true;
5994
+ try {
5995
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
5996
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
5997
+ } catch (error) {
5998
+ return error instanceof TypeError;
5999
+ }
6000
+ }();
6001
+
6002
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
6003
+ if (isArray$3(O) && !getOwnPropertyDescriptor$2(O, 'length').writable) {
6004
+ throw new $TypeError$1('Cannot set read only .length');
6005
+ } return O.length = length;
6006
+ } : function (O, length) {
6007
+ return O.length = length;
6008
+ };
6009
+
6010
+ var $TypeError = TypeError;
6011
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
6012
+
6013
+ var doesNotExceedSafeInteger$2 = function (it) {
6014
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
6015
+ return it;
6016
+ };
6017
+
6018
+ var $$c = _export;
6019
+ var toObject$3 = toObject$a;
6020
+ var lengthOfArrayLike$5 = lengthOfArrayLike$a;
6021
+ var setArrayLength = arraySetLength;
6022
+ var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
6023
+ var fails$4 = fails$x;
6024
+
6025
+ var INCORRECT_TO_LENGTH = fails$4(function () {
6026
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
6027
+ });
6028
+
6029
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
6030
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
6031
+ var properErrorOnNonWritableLength = function () {
6032
+ try {
6033
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
6034
+ Object.defineProperty([], 'length', { writable: false }).push();
6035
+ } catch (error) {
6036
+ return error instanceof TypeError;
6037
+ }
6038
+ };
6039
+
6040
+ var FORCED$1 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
6041
+
6042
+ // `Array.prototype.push` method
6043
+ // https://tc39.es/ecma262/#sec-array.prototype.push
6044
+ $$c({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
6045
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
6046
+ push: function push(item) {
6047
+ var O = toObject$3(this);
6048
+ var len = lengthOfArrayLike$5(O);
6049
+ var argCount = arguments.length;
6050
+ doesNotExceedSafeInteger$1(len + argCount);
6051
+ for (var i = 0; i < argCount; i++) {
6052
+ O[len] = arguments[i];
6053
+ len++;
6054
+ }
6055
+ setArrayLength(O, len);
6056
+ return len;
6057
+ }
6058
+ });
6059
+
6058
6060
  // TODO: Typing in this function is inconsistent. Needs to be cleaned up since it's not clear that
6059
6061
  // output typing of string[] is correct which could affect downstream code.
6060
6062
  const pickPropertyValues = (obj, property, endWithType) => {
@@ -13135,7 +13137,7 @@ const MarkdownComponent = ({
13135
13137
  });
13136
13138
  };
13137
13139
  const HelpContentComponent = _ref => {
13138
- var _uischema$options, _uischema$options$mar, _uischema$options2, _uischema$options3, _uischema$options4, _uischema$options5, _uischema$options6, _uischema$options8, _uischema$options9, _uischema$options0, _uischema$options1, _uischema$options10, _uischema$options11, _uischema$options12, _uischema$options13, _uischema$options14, _uischema$elements, _uischema$options15;
13140
+ var _uischema$options, _uischema$options$mar, _uischema$options2, _uischema$options3, _uischema$options4, _uischema$options5, _uischema$options6, _uischema$options7, _uischema$options1, _uischema$options10, _uischema$options11, _uischema$options12, _uischema$options13, _uischema$options14, _uischema$options15, _uischema$options16, _uischema$options17, _uischema$elements2, _uischema$options18;
13139
13141
  let {
13140
13142
  isParent = true,
13141
13143
  showLabel = true
@@ -13187,14 +13189,39 @@ const HelpContentComponent = _ref => {
13187
13189
  return '';
13188
13190
  };
13189
13191
  const textVariant = !((_uischema$options4 = uischema.options) != null && _uischema$options4.variant) || ((_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.variant) !== 'details' && ((_uischema$options6 = uischema.options) == null ? void 0 : _uischema$options6.variant) !== 'hyperlink';
13192
+ if (markdown && ((_uischema$options7 = uischema.options) == null ? void 0 : _uischema$options7.variant) === 'details') {
13193
+ var _uischema$options8, _uischema$options9, _uischema$elements;
13194
+ return jsx(Visible, {
13195
+ visible: visible,
13196
+ children: jsx(HelpContentDiv, {
13197
+ "aria-label": (_uischema$options8 = uischema.options) == null ? void 0 : _uischema$options8.ariaLabel,
13198
+ children: jsx("div", {
13199
+ className: `help-content-markdown ${marginClass}`,
13200
+ children: jsxs(GoabDetails, {
13201
+ heading: label ? label : '',
13202
+ mt: "3xs",
13203
+ mb: "none",
13204
+ children: [jsx("div", {
13205
+ className: "help-content-markdown",
13206
+ children: MarkdownComponent({
13207
+ markdown: getMarkDownData(uischema == null || (_uischema$options9 = uischema.options) == null ? void 0 : _uischema$options9.help)
13208
+ })
13209
+ }), (uischema == null ? void 0 : uischema.elements) && (uischema == null || (_uischema$elements = uischema.elements) == null ? void 0 : _uischema$elements.length) > 0 && jsx(HelpContents, {
13210
+ elements: uischema == null ? void 0 : uischema.elements
13211
+ })]
13212
+ })
13213
+ })
13214
+ })
13215
+ });
13216
+ }
13190
13217
  if (markdown) {
13191
- var _uischema$options7;
13218
+ var _uischema$options0;
13192
13219
  return jsx(Visible, {
13193
13220
  visible: visible,
13194
13221
  children: jsx("div", {
13195
13222
  className: "help-content-markdown",
13196
13223
  children: MarkdownComponent({
13197
- markdown: getMarkDownData(uischema == null || (_uischema$options7 = uischema.options) == null ? void 0 : _uischema$options7.help)
13224
+ markdown: getMarkDownData(uischema == null || (_uischema$options0 = uischema.options) == null ? void 0 : _uischema$options0.help)
13198
13225
  })
13199
13226
  })
13200
13227
  });
@@ -13202,21 +13229,21 @@ const HelpContentComponent = _ref => {
13202
13229
  return jsx(Visible, {
13203
13230
  visible: visible,
13204
13231
  children: jsx(HelpContentDiv, {
13205
- "aria-label": (_uischema$options8 = uischema.options) == null ? void 0 : _uischema$options8.ariaLabel,
13232
+ "aria-label": (_uischema$options1 = uischema.options) == null ? void 0 : _uischema$options1.ariaLabel,
13206
13233
  children: jsxs("div", {
13207
13234
  className: `help-content-markdown ${marginClass}`,
13208
- children: [label && showLabel && (!((_uischema$options9 = uischema.options) != null && _uischema$options9.variant) || ((_uischema$options0 = uischema.options) == null ? void 0 : _uischema$options0.variant) === 'hyperlink') && jsxs("div", {
13235
+ children: [label && showLabel && (!((_uischema$options10 = uischema.options) != null && _uischema$options10.variant) || ((_uischema$options11 = uischema.options) == null ? void 0 : _uischema$options11.variant) === 'hyperlink') && jsxs("div", {
13209
13236
  className: labelClass,
13210
13237
  "data-testid": label,
13211
13238
  children: [label, jsx("br", {})]
13212
- }), ((_uischema$options1 = uischema.options) == null ? void 0 : _uischema$options1.variant) && ((_uischema$options10 = uischema.options) == null ? void 0 : _uischema$options10.variant) === 'img' && renderImage(uischema.options), (uischema == null || (_uischema$options11 = uischema.options) == null ? void 0 : _uischema$options11.variant) && ((_uischema$options12 = uischema.options) == null ? void 0 : _uischema$options12.variant) === 'hyperlink' && link && RenderLink(uischema == null ? void 0 : uischema.options), textVariant && renderHelp(), ((_uischema$options13 = uischema.options) == null ? void 0 : _uischema$options13.variant) && ((_uischema$options14 = uischema.options) == null ? void 0 : _uischema$options14.variant) === 'details' && jsxs(GoabDetails, {
13239
+ }), ((_uischema$options12 = uischema.options) == null ? void 0 : _uischema$options12.variant) && ((_uischema$options13 = uischema.options) == null ? void 0 : _uischema$options13.variant) === 'img' && renderImage(uischema.options), (uischema == null || (_uischema$options14 = uischema.options) == null ? void 0 : _uischema$options14.variant) && ((_uischema$options15 = uischema.options) == null ? void 0 : _uischema$options15.variant) === 'hyperlink' && link && RenderLink(uischema == null ? void 0 : uischema.options), textVariant && renderHelp(), ((_uischema$options16 = uischema.options) == null ? void 0 : _uischema$options16.variant) && ((_uischema$options17 = uischema.options) == null ? void 0 : _uischema$options17.variant) === 'details' && jsxs(GoabDetails, {
13213
13240
  heading: label ? label : '',
13214
13241
  mt: "3xs",
13215
13242
  mb: "none",
13216
- children: [renderHelp(), (uischema == null ? void 0 : uischema.elements) && (uischema == null || (_uischema$elements = uischema.elements) == null ? void 0 : _uischema$elements.length) > 0 && jsx(HelpContents, {
13243
+ children: [renderHelp(), (uischema == null ? void 0 : uischema.elements) && (uischema == null || (_uischema$elements2 = uischema.elements) == null ? void 0 : _uischema$elements2.length) > 0 && jsx(HelpContents, {
13217
13244
  elements: uischema == null ? void 0 : uischema.elements
13218
13245
  })]
13219
- }), (uischema == null ? void 0 : uischema.elements) && (uischema == null ? void 0 : uischema.elements.length) > 0 && ((_uischema$options15 = uischema.options) == null ? void 0 : _uischema$options15.variant) !== 'details' && jsx(HelpContents, {
13246
+ }), (uischema == null ? void 0 : uischema.elements) && (uischema == null ? void 0 : uischema.elements.length) > 0 && ((_uischema$options18 = uischema.options) == null ? void 0 : _uischema$options18.variant) !== 'details' && jsx(HelpContents, {
13220
13247
  elements: uischema.elements,
13221
13248
  isParent: false
13222
13249
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.59.0",
3
+ "version": "2.60.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-04-08T15:18:24.865Z",
4
- "sourceCommit": "4eb89d4a45740fd054804409a0174dd1dcf4b9a4",
3
+ "generatedAt": "2026-04-08T16:11:13.566Z",
4
+ "sourceCommit": "6e09c179d6bc219c658e0626bf92dcce5f77c112",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [