@limetech/lime-elements 37.1.0-next.25 → 37.1.0-next.26

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.
@@ -860,7 +860,7 @@ var numberTag$4 = '[object Number]';
860
860
  * _.isNumber('3');
861
861
  * // => false
862
862
  */
863
- function isNumber$1(value) {
863
+ function isNumber$2(value) {
864
864
  return typeof value == 'number' ||
865
865
  (isObjectLike$1.isObjectLike(value) && isObject$3.baseGetTag(value) == numberTag$4);
866
866
  }
@@ -1536,6 +1536,15 @@ function checkDCE() {
1536
1536
  }
1537
1537
  });
1538
1538
 
1539
+ var client = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1540
+
1541
+
1542
+ {
1543
+ exports.createRoot = reactDom.createRoot;
1544
+ exports.hydrateRoot = reactDom.hydrateRoot;
1545
+ }
1546
+ });
1547
+
1539
1548
  var toString$2 = {}.toString;
1540
1549
 
1541
1550
  var _cof = function (it) {
@@ -8881,14 +8890,14 @@ var lib$7 = Array.isArray || isArray;
8881
8890
  * @param {*} value - value to be validated
8882
8891
  * @returns {Boolean} boolean indicating whether value is a number
8883
8892
  */
8884
- function isNumber( value ) {
8893
+ function isNumber$1( value ) {
8885
8894
  return ( typeof value === 'number' || Object.prototype.toString.call( value ) === '[object Number]' ) && value.valueOf() === value.valueOf();
8886
8895
  } // end FUNCTION isNumber()
8887
8896
 
8888
8897
 
8889
8898
  // EXPORTS //
8890
8899
 
8891
- var lib$6 = isNumber;
8900
+ var lib$6 = isNumber$1;
8892
8901
 
8893
8902
  // MODULES //
8894
8903
 
@@ -17528,15 +17537,15 @@ var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2
17528
17537
  var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
17529
17538
 
17530
17539
 
17531
- var formats_1 = formats;
17540
+ var formats_1 = formats$1;
17532
17541
 
17533
- function formats(mode) {
17542
+ function formats$1(mode) {
17534
17543
  mode = mode == 'full' ? 'full' : 'fast';
17535
- return util$1.copy(formats[mode]);
17544
+ return util$1.copy(formats$1[mode]);
17536
17545
  }
17537
17546
 
17538
17547
 
17539
- formats.fast = {
17548
+ formats$1.fast = {
17540
17549
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
17541
17550
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
17542
17551
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -17568,7 +17577,7 @@ formats.fast = {
17568
17577
  };
17569
17578
 
17570
17579
 
17571
- formats.full = {
17580
+ formats$1.full = {
17572
17581
  date: date,
17573
17582
  time: time,
17574
17583
  'date-time': date_time,
@@ -24207,7 +24216,7 @@ function isCollapsed(schema) {
24207
24216
  * @param {any} value the value to check
24208
24217
  * @returns {boolean} Whether or not the value is primitive
24209
24218
  */
24210
- const isPrimitive = (value) => isNil(value) || isNumber$1(value) || isString(value) || isBoolean$1(value);
24219
+ const isPrimitive = (value) => isNil(value) || isNumber$2(value) || isString(value) || isBoolean$1(value);
24211
24220
  /**
24212
24221
  * Renders a webcomponent by name
24213
24222
  *
@@ -35347,9 +35356,298 @@ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () {
35347
35356
 
35348
35357
  const Ajv = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(ajv);
35349
35358
 
35359
+ var formats = _commonjsHelpers.createCommonjsModule(function (module, exports) {
35360
+ Object.defineProperty(exports, "__esModule", { value: true });
35361
+ exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
35362
+ function fmtDef(validate, compare) {
35363
+ return { validate, compare };
35364
+ }
35365
+ exports.fullFormats = {
35366
+ // date: http://tools.ietf.org/html/rfc3339#section-5.6
35367
+ date: fmtDef(date, compareDate),
35368
+ // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
35369
+ time: fmtDef(time, compareTime),
35370
+ "date-time": fmtDef(date_time, compareDateTime),
35371
+ // duration: https://tools.ietf.org/html/rfc3339#appendix-A
35372
+ duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
35373
+ uri,
35374
+ "uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
35375
+ // uri-template: https://tools.ietf.org/html/rfc6570
35376
+ "uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
35377
+ // For the source: https://gist.github.com/dperini/729294
35378
+ // For test cases: https://mathiasbynens.be/demo/url-regex
35379
+ url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
35380
+ email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
35381
+ hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
35382
+ // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
35383
+ ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
35384
+ ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
35385
+ regex,
35386
+ // uuid: http://tools.ietf.org/html/rfc4122
35387
+ uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
35388
+ // JSON-pointer: https://tools.ietf.org/html/rfc6901
35389
+ // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
35390
+ "json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
35391
+ "json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
35392
+ // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
35393
+ "relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
35394
+ // the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
35395
+ // byte: https://github.com/miguelmota/is-base64
35396
+ byte,
35397
+ // signed 32 bit integer
35398
+ int32: { type: "number", validate: validateInt32 },
35399
+ // signed 64 bit integer
35400
+ int64: { type: "number", validate: validateInt64 },
35401
+ // C-type float
35402
+ float: { type: "number", validate: validateNumber },
35403
+ // C-type double
35404
+ double: { type: "number", validate: validateNumber },
35405
+ // hint to the UI to hide input strings
35406
+ password: true,
35407
+ // unchecked string payload
35408
+ binary: true,
35409
+ };
35410
+ exports.fastFormats = {
35411
+ ...exports.fullFormats,
35412
+ date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
35413
+ time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareTime),
35414
+ "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
35415
+ // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
35416
+ uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
35417
+ "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
35418
+ // email (sources from jsen validator):
35419
+ // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
35420
+ // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
35421
+ email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
35422
+ };
35423
+ exports.formatNames = Object.keys(exports.fullFormats);
35424
+ function isLeapYear(year) {
35425
+ // https://tools.ietf.org/html/rfc3339#appendix-C
35426
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
35427
+ }
35428
+ const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
35429
+ const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
35430
+ function date(str) {
35431
+ // full-date from http://tools.ietf.org/html/rfc3339#section-5.6
35432
+ const matches = DATE.exec(str);
35433
+ if (!matches)
35434
+ return false;
35435
+ const year = +matches[1];
35436
+ const month = +matches[2];
35437
+ const day = +matches[3];
35438
+ return (month >= 1 &&
35439
+ month <= 12 &&
35440
+ day >= 1 &&
35441
+ day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]));
35442
+ }
35443
+ function compareDate(d1, d2) {
35444
+ if (!(d1 && d2))
35445
+ return undefined;
35446
+ if (d1 > d2)
35447
+ return 1;
35448
+ if (d1 < d2)
35449
+ return -1;
35450
+ return 0;
35451
+ }
35452
+ const TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
35453
+ function time(str, withTimeZone) {
35454
+ const matches = TIME.exec(str);
35455
+ if (!matches)
35456
+ return false;
35457
+ const hour = +matches[1];
35458
+ const minute = +matches[2];
35459
+ const second = +matches[3];
35460
+ const timeZone = matches[5];
35461
+ return (((hour <= 23 && minute <= 59 && second <= 59) ||
35462
+ (hour === 23 && minute === 59 && second === 60)) &&
35463
+ (!withTimeZone || timeZone !== ""));
35464
+ }
35465
+ function compareTime(t1, t2) {
35466
+ if (!(t1 && t2))
35467
+ return undefined;
35468
+ const a1 = TIME.exec(t1);
35469
+ const a2 = TIME.exec(t2);
35470
+ if (!(a1 && a2))
35471
+ return undefined;
35472
+ t1 = a1[1] + a1[2] + a1[3] + (a1[4] || "");
35473
+ t2 = a2[1] + a2[2] + a2[3] + (a2[4] || "");
35474
+ if (t1 > t2)
35475
+ return 1;
35476
+ if (t1 < t2)
35477
+ return -1;
35478
+ return 0;
35479
+ }
35480
+ const DATE_TIME_SEPARATOR = /t|\s/i;
35481
+ function date_time(str) {
35482
+ // http://tools.ietf.org/html/rfc3339#section-5.6
35483
+ const dateTime = str.split(DATE_TIME_SEPARATOR);
35484
+ return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1], true);
35485
+ }
35486
+ function compareDateTime(dt1, dt2) {
35487
+ if (!(dt1 && dt2))
35488
+ return undefined;
35489
+ const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
35490
+ const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);
35491
+ const res = compareDate(d1, d2);
35492
+ if (res === undefined)
35493
+ return undefined;
35494
+ return res || compareTime(t1, t2);
35495
+ }
35496
+ const NOT_URI_FRAGMENT = /\/|:/;
35497
+ const URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
35498
+ function uri(str) {
35499
+ // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
35500
+ return NOT_URI_FRAGMENT.test(str) && URI.test(str);
35501
+ }
35502
+ const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
35503
+ function byte(str) {
35504
+ BYTE.lastIndex = 0;
35505
+ return BYTE.test(str);
35506
+ }
35507
+ const MIN_INT32 = -(2 ** 31);
35508
+ const MAX_INT32 = 2 ** 31 - 1;
35509
+ function validateInt32(value) {
35510
+ return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
35511
+ }
35512
+ function validateInt64(value) {
35513
+ // JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64
35514
+ return Number.isInteger(value);
35515
+ }
35516
+ function validateNumber() {
35517
+ return true;
35518
+ }
35519
+ const Z_ANCHOR = /[^\\]\\Z/;
35520
+ function regex(str) {
35521
+ if (Z_ANCHOR.test(str))
35522
+ return false;
35523
+ try {
35524
+ return true;
35525
+ }
35526
+ catch (e) {
35527
+ return false;
35528
+ }
35529
+ }
35530
+ //# sourceMappingURL=formats.js.map
35531
+ });
35532
+
35533
+ var limit = _commonjsHelpers.createCommonjsModule(function (module, exports) {
35534
+ Object.defineProperty(exports, "__esModule", { value: true });
35535
+ exports.formatLimitDefinition = void 0;
35536
+
35537
+
35538
+ const ops = codegen.operators;
35539
+ const KWDs = {
35540
+ formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
35541
+ formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
35542
+ formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
35543
+ formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE },
35544
+ };
35545
+ const error = {
35546
+ message: ({ keyword, schemaCode }) => codegen.str `should be ${KWDs[keyword].okStr} ${schemaCode}`,
35547
+ params: ({ keyword, schemaCode }) => codegen._ `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
35548
+ };
35549
+ exports.formatLimitDefinition = {
35550
+ keyword: Object.keys(KWDs),
35551
+ type: "string",
35552
+ schemaType: "string",
35553
+ $data: true,
35554
+ error,
35555
+ code(cxt) {
35556
+ const { gen, data, schemaCode, keyword, it } = cxt;
35557
+ const { opts, self } = it;
35558
+ if (!opts.validateFormats)
35559
+ return;
35560
+ const fCxt = new ajv.KeywordCxt(it, self.RULES.all.format.definition, "format");
35561
+ if (fCxt.$data)
35562
+ validate$DataFormat();
35563
+ else
35564
+ validateFormat();
35565
+ function validate$DataFormat() {
35566
+ const fmts = gen.scopeValue("formats", {
35567
+ ref: self.formats,
35568
+ code: opts.code.formats,
35569
+ });
35570
+ const fmt = gen.const("fmt", codegen._ `${fmts}[${fCxt.schemaCode}]`);
35571
+ cxt.fail$data(codegen.or(codegen._ `typeof ${fmt} != "object"`, codegen._ `${fmt} instanceof RegExp`, codegen._ `typeof ${fmt}.compare != "function"`, compareCode(fmt)));
35572
+ }
35573
+ function validateFormat() {
35574
+ const format = fCxt.schema;
35575
+ const fmtDef = self.formats[format];
35576
+ if (!fmtDef || fmtDef === true)
35577
+ return;
35578
+ if (typeof fmtDef != "object" ||
35579
+ fmtDef instanceof RegExp ||
35580
+ typeof fmtDef.compare != "function") {
35581
+ throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
35582
+ }
35583
+ const fmt = gen.scopeValue("formats", {
35584
+ key: format,
35585
+ ref: fmtDef,
35586
+ code: opts.code.formats ? codegen._ `${opts.code.formats}${codegen.getProperty(format)}` : undefined,
35587
+ });
35588
+ cxt.fail$data(compareCode(fmt));
35589
+ }
35590
+ function compareCode(fmt) {
35591
+ return codegen._ `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
35592
+ }
35593
+ },
35594
+ dependencies: ["format"],
35595
+ };
35596
+ const formatLimitPlugin = (ajv) => {
35597
+ ajv.addKeyword(exports.formatLimitDefinition);
35598
+ return ajv;
35599
+ };
35600
+ exports.default = formatLimitPlugin;
35601
+ //# sourceMappingURL=limit.js.map
35602
+ });
35603
+
35604
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
35605
+ Object.defineProperty(exports, "__esModule", { value: true });
35606
+
35607
+
35608
+
35609
+ const fullName = new codegen.Name("fullFormats");
35610
+ const fastName = new codegen.Name("fastFormats");
35611
+ const formatsPlugin = (ajv, opts = { keywords: true }) => {
35612
+ if (Array.isArray(opts)) {
35613
+ addFormats(ajv, opts, formats.fullFormats, fullName);
35614
+ return ajv;
35615
+ }
35616
+ const [formats$1, exportName] = opts.mode === "fast" ? [formats.fastFormats, fastName] : [formats.fullFormats, fullName];
35617
+ const list = opts.formats || formats.formatNames;
35618
+ addFormats(ajv, list, formats$1, exportName);
35619
+ if (opts.keywords)
35620
+ limit.default(ajv);
35621
+ return ajv;
35622
+ };
35623
+ formatsPlugin.get = (name, mode = "full") => {
35624
+ const formats$1 = mode === "fast" ? formats.fastFormats : formats.fullFormats;
35625
+ const f = formats$1[name];
35626
+ if (!f)
35627
+ throw new Error(`Unknown format "${name}"`);
35628
+ return f;
35629
+ };
35630
+ function addFormats(ajv, list, fs, exportName) {
35631
+ var _a;
35632
+ var _b;
35633
+ (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = codegen._ `require("ajv-formats/dist/formats").${exportName}`);
35634
+ for (const f of list)
35635
+ ajv.addFormat(f, fs[f]);
35636
+ }
35637
+ module.exports = exports = formatsPlugin;
35638
+ Object.defineProperty(exports, "__esModule", { value: true });
35639
+ exports.default = formatsPlugin;
35640
+ //# sourceMappingURL=index.js.map
35641
+ });
35642
+
35643
+ const addFormats = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(dist);
35644
+
35350
35645
  function isInteger(data) {
35351
35646
  return Number.isInteger(Number(data));
35352
35647
  }
35648
+ function isNumber(data) {
35649
+ return Number.isFinite(Number(data));
35650
+ }
35353
35651
 
35354
35652
  const formCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}.mdc-typography{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif)}.mdc-typography--headline1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.375rem;font-size:var(--mdc-typography-headline1-font-size, 1.375rem);line-height:1.375rem;line-height:var(--mdc-typography-headline1-line-height, 1.375rem);font-weight:300;font-weight:var(--mdc-typography-headline1-font-weight, 300);letter-spacing:-0.015625em;letter-spacing:var(--mdc-typography-headline1-letter-spacing, -0.015625em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline1-text-transform, inherit)}.mdc-typography--headline2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline2-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline2-line-height, 0.875rem);font-weight:300;font-weight:var(--mdc-typography-headline2-font-weight, 300);letter-spacing:-0.0083333333em;letter-spacing:var(--mdc-typography-headline2-letter-spacing, -0.0083333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline2-text-transform, inherit)}.mdc-typography--headline3{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline3-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline3-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline3-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline3-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline3-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline3-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline3-text-transform, inherit)}.mdc-typography--headline4{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline4-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline4-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline4-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline4-font-weight, 400);letter-spacing:0.0073529412em;letter-spacing:var(--mdc-typography-headline4-letter-spacing, 0.0073529412em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline4-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline4-text-transform, inherit)}.mdc-typography--headline5{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline5-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline5-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline5-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline5-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline5-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline5-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline5-text-transform, inherit)}.mdc-typography--headline6{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline6-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline6-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-typography--subtitle1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit)}.mdc-typography--subtitle2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.8125rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.125rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-typography--body1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body1-font-size, 0.8125rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-typography--body2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-typography--caption{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-caption-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-caption-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-typography--button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:none;text-transform:var(--mdc-typography-button-text-transform, none)}.mdc-typography--overline{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-overline-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-overline-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-overline-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-overline-font-weight, 500);letter-spacing:0.1666666667em;letter-spacing:var(--mdc-typography-overline-letter-spacing, 0.1666666667em);text-decoration:none;text-decoration:var(--mdc-typography-overline-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-overline-text-transform, uppercase)}.form-group{min-width:0}.limel-form-array-item--simple{display:flex;align-items:center}.limel-form-array-item--simple *:first-child{flex-grow:1}limel-code-editor{margin-bottom:0.75rem}.limel-form-array-item--object{margin-bottom:0.25rem}.limel-form-layout--default{display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem)}.limel-form-layout--grid{--min-height-of-one-row:3.5rem;display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem);grid-template-columns:repeat(var(--number-of-columns), minmax(0, 1fr))}.limel-form-layout--grid.auto-reorder-to-avoid-empty-cells{grid-auto-flow:dense}.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--1,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--5{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--5{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--5{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--5{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--4{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--5{grid-column:span 5}.limel-form-layout--grid .limel-form-layout-colspan--all{grid-column:1/-1}.limel-form-layout--grid limel-checkbox,.limel-form-layout--grid limel-switch{min-height:var(--min-height-of-one-row)}.limel-form-layout--grid limel-checkbox{margin-top:0.5rem;display:block}.limel-form-layout--grid limel-switch{margin-left:0.5rem}.form-error{color:var(--mdc-theme-error, #b00020);font-size:0.6875rem;line-height:1.5;visibility:inherit;padding-right:1rem;padding-left:1rem;padding-top:0.25rem}.button-add-new{margin-top:0.5rem;width:100%}.mdc-typography--headline1{position:relative}.form-group .mdc-typography--headline1,.form-group .mdc-typography--body1{color:rgb(var(--contrast-1100))}.form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:2rem;--mdc-typography-headline1-line-height:2.25rem;--mdc-typography-headline1-letter-spacing:-0.01rem;--mdc-typography-headline1-font-weight:400;margin-top:1.5rem;margin-bottom:0.25rem}.form-group .mdc-typography--body1{margin-top:0;margin-bottom:0.5rem}.form-group .form-group .mdc-typography--headline1,.form-group .form-group .mdc-typography--body1{color:rgb(var(--contrast-1200))}.form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.625rem;--mdc-typography-headline1-line-height:1.25rem;--mdc-typography-headline1-font-weight:300;margin-top:1rem}.form-group .form-group .mdc-typography--headline1:before{content:\"\";display:block;position:absolute;top:0;bottom:0;margin:auto;left:-0.75rem;background-color:var(--mdc-theme-primary);width:0.125rem;height:var(--mdc-typography-headline1-line-height);border-radius:0.125rem;opacity:0.6}.form-group .form-group .form-group .mdc-typography--headline1,.form-group .form-group .form-group .mdc-typography--body1{color:rgb(var(--contrast-1300))}.form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.375rem;--mdc-typography-headline1-line-height:1.5rem;margin-top:0.5rem}.form-group .form-group .form-group .mdc-typography--headline1:before{display:none}.form-group .form-group .form-group .form-group .mdc-typography--headline1,.form-group .form-group .form-group .form-group .mdc-typography--body1{color:rgb(var(--contrast-1400))}.form-group .form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.25rem;--mdc-typography-headline1-line-height:1.25rem;margin-top:1rem}.form-group .form-group .form-group .form-group .mdc-typography--headline1:before{display:none}.form-group .form-group .form-group .form-group .mdc-typography--headline1,.form-group .form-group .form-group .form-group .mdc-typography--body1{color:rgb(var(--contrast-1400))}.form-group .form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.25rem;--mdc-typography-headline1-line-height:1.25rem;margin-top:0.25rem}.form-group .form-group .form-group .form-group .mdc-typography--headline1:before{display:none}.form-group .form-group .form-group .form-group .form-group .mdc-typography--headline1,.form-group .form-group .form-group .form-group .form-group .mdc-typography--body1{color:rgb(var(--contrast-1400))}.form-group .form-group .form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1rem;--mdc-typography-headline1-line-height:1rem;margin-top:0.25rem}.form-group .form-group .form-group .form-group .form-group .mdc-typography--headline1:before{display:none}.limel-form-row--layout{--limel-form-row-border-radius:0.375rem;--limel-form-row-icon-size:1.75rem;--limel-form-row-main-information-gap:0.5rem;display:flex;flex-direction:column}.limel-form-row--layout .row{display:flex;gap:0.5rem;flex-direction:column;padding:0.5rem 1rem}.limel-form-row--layout .row:nth-child(odd){background-color:var(--form-background-color-of-odd-rows, rgb(var(--contrast-200)))}.limel-form-row--layout .row:nth-child(even){background-color:var(--form-background-color-of-even-rows, transparent)}.limel-form-row--layout .row:first-child{border-radius:var(--limel-form-row-border-radius) var(--limel-form-row-border-radius) 0 0}.limel-form-row--layout .row:last-child{border-radius:0 0 var(--limel-form-row-border-radius) var(--limel-form-row-border-radius)}.limel-form-row--layout .main-information{display:flex;flex-direction:row;align-items:center;gap:var(--limel-form-row-main-information-gap);min-width:0}.limel-form-row--layout limel-icon{color:rgb(var(--contrast-1200));width:var(--limel-form-row-icon-size);flex-shrink:0;min-width:0}.limel-form-row--layout .title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;font-weight:normal;flex-grow:1;color:var(--mdc-theme-on-surface);font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem)}.limel-form-row--layout .description{margin:0;color:var(--mdc-theme-text-secondary-on-background);font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.5}.limel-form-row--layout .has-icon .description{padding-left:calc(var(--limel-form-row-icon-size) + var(--limel-form-row-main-information-gap))}.limel-form-row--layout .form-group.field{flex-shrink:0;display:flex;align-content:center}.limel-form-row--layout .form-group.field limel-slider{min-width:8rem;display:block}";
35355
35653
 
@@ -35400,8 +35698,11 @@ const Form = class {
35400
35698
  return index.h("div", { class: "root" });
35401
35699
  }
35402
35700
  reactRender() {
35403
- const rootElement = this.host.shadowRoot.querySelector('.root');
35404
- reactDom.render(react.createElement(Form$1, {
35701
+ if (!this.root) {
35702
+ const rootElement = this.host.shadowRoot.querySelector('.root');
35703
+ this.root = client.createRoot(rootElement);
35704
+ }
35705
+ this.root.render(react.createElement(Form$1, {
35405
35706
  schema: this.modifiedSchema,
35406
35707
  formData: this.value,
35407
35708
  onChange: this.handleChange,
@@ -35424,7 +35725,7 @@ const Form = class {
35424
35725
  ArrayField: ArrayField,
35425
35726
  ObjectField: ObjectField,
35426
35727
  },
35427
- }, []), rootElement);
35728
+ }, []));
35428
35729
  }
35429
35730
  handleChange(event) {
35430
35731
  this.change.emit(event.formData);
@@ -35454,16 +35755,23 @@ const Form = class {
35454
35755
  }
35455
35756
  createValidator() {
35456
35757
  const validator = new Ajv({
35457
- unknownFormats: 'ignore',
35458
35758
  allErrors: true,
35459
35759
  multipleOfPrecision: 2,
35460
- }).addFormat('integer', isInteger);
35760
+ allowUnionTypes: true,
35761
+ strict: 'log',
35762
+ keywords: ['lime', 'many', 'inline'],
35763
+ formats: {
35764
+ integer: isInteger,
35765
+ decimal: isNumber,
35766
+ },
35767
+ });
35768
+ addFormats(validator);
35461
35769
  this.validator = validator.compile(this.schema);
35462
35770
  }
35463
35771
  getValidationErrors() {
35464
35772
  const errors = this.validator.errors || [];
35465
35773
  return errors.map((error) => {
35466
- let property = error.dataPath;
35774
+ let property = error.instancePath;
35467
35775
  if (error.keyword === 'required') {
35468
35776
  property = error.params.missingProperty;
35469
35777
  }