@genesislcap/foundation-utils 14.377.0 → 14.378.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +276 -276
  2. package/package.json +11 -11
@@ -391,6 +391,126 @@
391
391
  }
392
392
  ]
393
393
  },
394
+ {
395
+ "kind": "javascript-module",
396
+ "path": "src/design-system/design-system.ts",
397
+ "declarations": [
398
+ {
399
+ "kind": "function",
400
+ "name": "assureDesignSystem",
401
+ "return": {
402
+ "type": {
403
+ "text": "DesignSystemModule"
404
+ }
405
+ },
406
+ "parameters": [
407
+ {
408
+ "name": "module",
409
+ "type": {
410
+ "text": "DesignSystemModule"
411
+ }
412
+ }
413
+ ],
414
+ "description": "assureDesignSystem.",
415
+ "privacy": "public"
416
+ },
417
+ {
418
+ "kind": "function",
419
+ "name": "getCurrentDesignSystem",
420
+ "return": {
421
+ "type": {
422
+ "text": ""
423
+ }
424
+ },
425
+ "parameters": [
426
+ {
427
+ "name": "element",
428
+ "type": {
429
+ "text": "HTMLElement"
430
+ },
431
+ "description": "The starting HTML element"
432
+ },
433
+ {
434
+ "name": "fallbackPrefix",
435
+ "type": {
436
+ "text": "string"
437
+ },
438
+ "description": "The prefix to fallback to if the provider is not available"
439
+ }
440
+ ],
441
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
442
+ "privacy": "public"
443
+ },
444
+ {
445
+ "kind": "function",
446
+ "name": "getCurrentDesignSystemPrefix",
447
+ "return": {
448
+ "type": {
449
+ "text": ""
450
+ }
451
+ },
452
+ "parameters": [
453
+ {
454
+ "name": "element",
455
+ "type": {
456
+ "text": "HTMLElement"
457
+ },
458
+ "description": "The starting HTML element"
459
+ },
460
+ {
461
+ "name": "fallbackPrefix",
462
+ "type": {
463
+ "text": "string"
464
+ },
465
+ "description": "The prefix to fallback to if the provider is not available"
466
+ }
467
+ ],
468
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
469
+ "privacy": "public"
470
+ }
471
+ ],
472
+ "exports": [
473
+ {
474
+ "kind": "js",
475
+ "name": "assureDesignSystem",
476
+ "declaration": {
477
+ "name": "assureDesignSystem",
478
+ "module": "src/design-system/design-system.ts"
479
+ }
480
+ },
481
+ {
482
+ "kind": "js",
483
+ "name": "getCurrentDesignSystem",
484
+ "declaration": {
485
+ "name": "getCurrentDesignSystem",
486
+ "module": "src/design-system/design-system.ts"
487
+ }
488
+ },
489
+ {
490
+ "kind": "js",
491
+ "name": "getCurrentDesignSystemPrefix",
492
+ "declaration": {
493
+ "name": "getCurrentDesignSystemPrefix",
494
+ "module": "src/design-system/design-system.ts"
495
+ }
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "kind": "javascript-module",
501
+ "path": "src/design-system/index.ts",
502
+ "declarations": [],
503
+ "exports": [
504
+ {
505
+ "kind": "js",
506
+ "name": "*",
507
+ "declaration": {
508
+ "name": "*",
509
+ "package": "./design-system"
510
+ }
511
+ }
512
+ ]
513
+ },
394
514
  {
395
515
  "kind": "javascript-module",
396
516
  "path": "src/decorators/index.ts",
@@ -469,57 +589,166 @@
469
589
  },
470
590
  {
471
591
  "kind": "javascript-module",
472
- "path": "src/design-system/design-system.ts",
592
+ "path": "src/encoding/index.ts",
593
+ "declarations": [],
594
+ "exports": [
595
+ {
596
+ "kind": "js",
597
+ "name": "*",
598
+ "declaration": {
599
+ "name": "*",
600
+ "package": "./base64"
601
+ }
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "kind": "javascript-module",
607
+ "path": "src/error/errorMap.ts",
473
608
  "declarations": [
474
609
  {
475
- "kind": "function",
476
- "name": "assureDesignSystem",
477
- "return": {
478
- "type": {
479
- "text": "DesignSystemModule"
480
- }
481
- },
482
- "parameters": [
610
+ "kind": "class",
611
+ "description": "",
612
+ "name": "DefaultErrorMap",
613
+ "members": [
483
614
  {
484
- "name": "module",
615
+ "kind": "field",
616
+ "name": "map",
617
+ "privacy": "private",
618
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
619
+ },
620
+ {
621
+ "kind": "field",
622
+ "name": "lastError",
485
623
  "type": {
486
- "text": "DesignSystemModule"
487
- }
488
- }
489
- ],
490
- "description": "assureDesignSystem.",
491
- "privacy": "public"
492
- },
493
- {
494
- "kind": "function",
495
- "name": "getCurrentDesignSystem",
496
- "return": {
497
- "type": {
498
- "text": ""
499
- }
500
- },
501
- "parameters": [
624
+ "text": "Error"
625
+ },
626
+ "description": "{@inheritDoc ErrorMap.lastError}"
627
+ },
502
628
  {
503
- "name": "element",
629
+ "kind": "method",
630
+ "name": "set",
631
+ "return": {
632
+ "type": {
633
+ "text": "void"
634
+ }
635
+ },
636
+ "parameters": [
637
+ {
638
+ "name": "key",
639
+ "type": {
640
+ "text": "keyof TErrorDetailMap"
641
+ }
642
+ },
643
+ {
644
+ "name": "error",
645
+ "type": {
646
+ "text": "Error"
647
+ }
648
+ }
649
+ ],
650
+ "description": "{@inheritDoc ErrorMap.set}"
651
+ },
652
+ {
653
+ "kind": "method",
654
+ "name": "get",
655
+ "return": {
656
+ "type": {
657
+ "text": ""
658
+ }
659
+ },
660
+ "parameters": [
661
+ {
662
+ "name": "key",
663
+ "type": {
664
+ "text": "keyof TErrorDetailMap"
665
+ },
666
+ "description": "The key."
667
+ }
668
+ ],
669
+ "description": "Get an error by key.",
670
+ "privacy": "public"
671
+ },
672
+ {
673
+ "kind": "method",
674
+ "name": "has",
675
+ "return": {
676
+ "type": {
677
+ "text": ""
678
+ }
679
+ },
680
+ "parameters": [
681
+ {
682
+ "name": "key",
683
+ "type": {
684
+ "text": "keyof TErrorDetailMap"
685
+ },
686
+ "description": "The key."
687
+ }
688
+ ],
689
+ "description": "Has an error for key.",
690
+ "privacy": "public"
691
+ },
692
+ {
693
+ "kind": "method",
694
+ "name": "delete",
695
+ "return": {
696
+ "type": {
697
+ "text": ""
698
+ }
699
+ },
700
+ "parameters": [
701
+ {
702
+ "name": "key",
703
+ "type": {
704
+ "text": "keyof TErrorDetailMap"
705
+ },
706
+ "description": "The key."
707
+ }
708
+ ],
709
+ "description": "Delete an error.",
710
+ "privacy": "public"
711
+ },
712
+ {
713
+ "kind": "method",
714
+ "name": "clear",
715
+ "description": "Clear errors.",
716
+ "privacy": "public"
717
+ },
718
+ {
719
+ "kind": "field",
720
+ "name": "size",
504
721
  "type": {
505
- "text": "HTMLElement"
722
+ "text": "number"
506
723
  },
507
- "description": "The starting HTML element"
724
+ "description": "The size of the error map.",
725
+ "return": {
726
+ "type": {
727
+ "text": ""
728
+ }
729
+ },
730
+ "privacy": "public",
731
+ "readonly": true
508
732
  },
509
733
  {
510
- "name": "fallbackPrefix",
734
+ "kind": "method",
735
+ "name": "values",
736
+ "privacy": "public"
737
+ },
738
+ {
739
+ "kind": "field",
740
+ "name": "messages",
511
741
  "type": {
512
742
  "text": "string"
513
743
  },
514
- "description": "The prefix to fallback to if the provider is not available"
744
+ "description": "{@inheritDoc ErrorMap.messages}",
745
+ "readonly": true
515
746
  }
516
- ],
517
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
518
- "privacy": "public"
747
+ ]
519
748
  },
520
749
  {
521
750
  "kind": "function",
522
- "name": "getCurrentDesignSystemPrefix",
751
+ "name": "createErrorMap",
523
752
  "return": {
524
753
  "type": {
525
754
  "text": ""
@@ -527,69 +756,39 @@
527
756
  },
528
757
  "parameters": [
529
758
  {
530
- "name": "element",
531
- "type": {
532
- "text": "HTMLElement"
533
- },
534
- "description": "The starting HTML element"
535
- },
536
- {
537
- "name": "fallbackPrefix",
759
+ "name": "logger",
538
760
  "type": {
539
- "text": "string"
761
+ "text": "ErrorMapLogger"
540
762
  },
541
- "description": "The prefix to fallback to if the provider is not available"
763
+ "description": "A logger error method reference."
542
764
  }
543
765
  ],
544
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
766
+ "description": "A factory to create the error map.",
545
767
  "privacy": "public"
546
768
  }
547
769
  ],
548
770
  "exports": [
549
771
  {
550
772
  "kind": "js",
551
- "name": "assureDesignSystem",
552
- "declaration": {
553
- "name": "assureDesignSystem",
554
- "module": "src/design-system/design-system.ts"
555
- }
556
- },
557
- {
558
- "kind": "js",
559
- "name": "getCurrentDesignSystem",
773
+ "name": "DefaultErrorMap",
560
774
  "declaration": {
561
- "name": "getCurrentDesignSystem",
562
- "module": "src/design-system/design-system.ts"
775
+ "name": "DefaultErrorMap",
776
+ "module": "src/error/errorMap.ts"
563
777
  }
564
778
  },
565
779
  {
566
780
  "kind": "js",
567
- "name": "getCurrentDesignSystemPrefix",
568
- "declaration": {
569
- "name": "getCurrentDesignSystemPrefix",
570
- "module": "src/design-system/design-system.ts"
571
- }
572
- }
573
- ]
574
- },
575
- {
576
- "kind": "javascript-module",
577
- "path": "src/design-system/index.ts",
578
- "declarations": [],
579
- "exports": [
580
- {
581
- "kind": "js",
582
- "name": "*",
781
+ "name": "createErrorMap",
583
782
  "declaration": {
584
- "name": "*",
585
- "package": "./design-system"
783
+ "name": "createErrorMap",
784
+ "module": "src/error/errorMap.ts"
586
785
  }
587
786
  }
588
787
  ]
589
788
  },
590
789
  {
591
790
  "kind": "javascript-module",
592
- "path": "src/encoding/index.ts",
791
+ "path": "src/error/index.ts",
593
792
  "declarations": [],
594
793
  "exports": [
595
794
  {
@@ -597,7 +796,7 @@
597
796
  "name": "*",
598
797
  "declaration": {
599
798
  "name": "*",
600
- "package": "./base64"
799
+ "package": "./errorMap"
601
800
  }
602
801
  }
603
802
  ]
@@ -1077,205 +1276,6 @@
1077
1276
  }
1078
1277
  ]
1079
1278
  },
1080
- {
1081
- "kind": "javascript-module",
1082
- "path": "src/error/errorMap.ts",
1083
- "declarations": [
1084
- {
1085
- "kind": "class",
1086
- "description": "",
1087
- "name": "DefaultErrorMap",
1088
- "members": [
1089
- {
1090
- "kind": "field",
1091
- "name": "map",
1092
- "privacy": "private",
1093
- "default": "new Map<keyof TErrorDetailMap, Error>()"
1094
- },
1095
- {
1096
- "kind": "field",
1097
- "name": "lastError",
1098
- "type": {
1099
- "text": "Error"
1100
- },
1101
- "description": "{@inheritDoc ErrorMap.lastError}"
1102
- },
1103
- {
1104
- "kind": "method",
1105
- "name": "set",
1106
- "return": {
1107
- "type": {
1108
- "text": "void"
1109
- }
1110
- },
1111
- "parameters": [
1112
- {
1113
- "name": "key",
1114
- "type": {
1115
- "text": "keyof TErrorDetailMap"
1116
- }
1117
- },
1118
- {
1119
- "name": "error",
1120
- "type": {
1121
- "text": "Error"
1122
- }
1123
- }
1124
- ],
1125
- "description": "{@inheritDoc ErrorMap.set}"
1126
- },
1127
- {
1128
- "kind": "method",
1129
- "name": "get",
1130
- "return": {
1131
- "type": {
1132
- "text": ""
1133
- }
1134
- },
1135
- "parameters": [
1136
- {
1137
- "name": "key",
1138
- "type": {
1139
- "text": "keyof TErrorDetailMap"
1140
- },
1141
- "description": "The key."
1142
- }
1143
- ],
1144
- "description": "Get an error by key.",
1145
- "privacy": "public"
1146
- },
1147
- {
1148
- "kind": "method",
1149
- "name": "has",
1150
- "return": {
1151
- "type": {
1152
- "text": ""
1153
- }
1154
- },
1155
- "parameters": [
1156
- {
1157
- "name": "key",
1158
- "type": {
1159
- "text": "keyof TErrorDetailMap"
1160
- },
1161
- "description": "The key."
1162
- }
1163
- ],
1164
- "description": "Has an error for key.",
1165
- "privacy": "public"
1166
- },
1167
- {
1168
- "kind": "method",
1169
- "name": "delete",
1170
- "return": {
1171
- "type": {
1172
- "text": ""
1173
- }
1174
- },
1175
- "parameters": [
1176
- {
1177
- "name": "key",
1178
- "type": {
1179
- "text": "keyof TErrorDetailMap"
1180
- },
1181
- "description": "The key."
1182
- }
1183
- ],
1184
- "description": "Delete an error.",
1185
- "privacy": "public"
1186
- },
1187
- {
1188
- "kind": "method",
1189
- "name": "clear",
1190
- "description": "Clear errors.",
1191
- "privacy": "public"
1192
- },
1193
- {
1194
- "kind": "field",
1195
- "name": "size",
1196
- "type": {
1197
- "text": "number"
1198
- },
1199
- "description": "The size of the error map.",
1200
- "return": {
1201
- "type": {
1202
- "text": ""
1203
- }
1204
- },
1205
- "privacy": "public",
1206
- "readonly": true
1207
- },
1208
- {
1209
- "kind": "method",
1210
- "name": "values",
1211
- "privacy": "public"
1212
- },
1213
- {
1214
- "kind": "field",
1215
- "name": "messages",
1216
- "type": {
1217
- "text": "string"
1218
- },
1219
- "description": "{@inheritDoc ErrorMap.messages}",
1220
- "readonly": true
1221
- }
1222
- ]
1223
- },
1224
- {
1225
- "kind": "function",
1226
- "name": "createErrorMap",
1227
- "return": {
1228
- "type": {
1229
- "text": ""
1230
- }
1231
- },
1232
- "parameters": [
1233
- {
1234
- "name": "logger",
1235
- "type": {
1236
- "text": "ErrorMapLogger"
1237
- },
1238
- "description": "A logger error method reference."
1239
- }
1240
- ],
1241
- "description": "A factory to create the error map.",
1242
- "privacy": "public"
1243
- }
1244
- ],
1245
- "exports": [
1246
- {
1247
- "kind": "js",
1248
- "name": "DefaultErrorMap",
1249
- "declaration": {
1250
- "name": "DefaultErrorMap",
1251
- "module": "src/error/errorMap.ts"
1252
- }
1253
- },
1254
- {
1255
- "kind": "js",
1256
- "name": "createErrorMap",
1257
- "declaration": {
1258
- "name": "createErrorMap",
1259
- "module": "src/error/errorMap.ts"
1260
- }
1261
- }
1262
- ]
1263
- },
1264
- {
1265
- "kind": "javascript-module",
1266
- "path": "src/error/index.ts",
1267
- "declarations": [],
1268
- "exports": [
1269
- {
1270
- "kind": "js",
1271
- "name": "*",
1272
- "declaration": {
1273
- "name": "*",
1274
- "package": "./errorMap"
1275
- }
1276
- }
1277
- ]
1278
- },
1279
1279
  {
1280
1280
  "kind": "javascript-module",
1281
1281
  "path": "src/feature-flags/featureFlags.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.377.0",
4
+ "version": "14.378.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,18 +27,18 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.377.0",
31
- "@genesislcap/genx": "14.377.0",
32
- "@genesislcap/rollup-builder": "14.377.0",
33
- "@genesislcap/ts-builder": "14.377.0",
34
- "@genesislcap/uvu-playwright-builder": "14.377.0",
35
- "@genesislcap/vite-builder": "14.377.0",
36
- "@genesislcap/webpack-builder": "14.377.0",
30
+ "@genesislcap/foundation-testing": "14.378.0",
31
+ "@genesislcap/genx": "14.378.0",
32
+ "@genesislcap/rollup-builder": "14.378.0",
33
+ "@genesislcap/ts-builder": "14.378.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.378.0",
35
+ "@genesislcap/vite-builder": "14.378.0",
36
+ "@genesislcap/webpack-builder": "14.378.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.377.0",
41
- "@genesislcap/foundation-logger": "14.377.0",
40
+ "@genesislcap/expression-builder": "14.378.0",
41
+ "@genesislcap/foundation-logger": "14.378.0",
42
42
  "@microsoft/fast-components": "2.30.6",
43
43
  "@microsoft/fast-element": "1.14.0",
44
44
  "@microsoft/fast-foundation": "2.49.6",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "customElements": "dist/custom-elements.json",
59
- "gitHead": "3f78c249444b0985b76433db6882e2376dbd2886"
59
+ "gitHead": "ce2ed6cbbfa6bfd70aa33dbe5d90e219cd4337e9"
60
60
  }