@genesislcap/foundation-utils 14.374.1 → 14.374.2-alpha-2b5362b.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 +283 -283
  2. package/package.json +11 -11
@@ -393,53 +393,120 @@
393
393
  },
394
394
  {
395
395
  "kind": "javascript-module",
396
- "path": "src/decorators/index.ts",
397
- "declarations": [],
398
- "exports": [
399
- {
400
- "kind": "js",
401
- "name": "*",
402
- "declaration": {
403
- "name": "*",
404
- "package": "./renderOnChange"
405
- }
406
- }
407
- ]
408
- },
409
- {
410
- "kind": "javascript-module",
411
- "path": "src/decorators/renderOnChange.ts",
396
+ "path": "src/design-system/design-system.ts",
412
397
  "declarations": [
413
398
  {
414
399
  "kind": "function",
415
- "name": "renderOnChange",
400
+ "name": "assureDesignSystem",
401
+ "return": {
402
+ "type": {
403
+ "text": "DesignSystemModule"
404
+ }
405
+ },
416
406
  "parameters": [
417
407
  {
418
- "name": "target",
408
+ "name": "module",
419
409
  "type": {
420
- "text": "FASTElement & { render(): void }"
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"
421
430
  },
422
- "description": "The target to define the property change handler on."
431
+ "description": "The starting HTML element"
423
432
  },
424
433
  {
425
- "name": "name",
434
+ "name": "fallbackPrefix",
426
435
  "type": {
427
436
  "text": "string"
428
437
  },
429
- "description": "The property name."
438
+ "description": "The prefix to fallback to if the provider is not available"
430
439
  }
431
440
  ],
432
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
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.",
433
469
  "privacy": "public"
434
470
  }
435
471
  ],
436
472
  "exports": [
437
473
  {
438
474
  "kind": "js",
439
- "name": "renderOnChange",
475
+ "name": "assureDesignSystem",
440
476
  "declaration": {
441
- "name": "renderOnChange",
442
- "module": "src/decorators/renderOnChange.ts"
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"
443
510
  }
444
511
  }
445
512
  ]
@@ -469,57 +536,204 @@
469
536
  },
470
537
  {
471
538
  "kind": "javascript-module",
472
- "path": "src/design-system/design-system.ts",
539
+ "path": "src/decorators/index.ts",
540
+ "declarations": [],
541
+ "exports": [
542
+ {
543
+ "kind": "js",
544
+ "name": "*",
545
+ "declaration": {
546
+ "name": "*",
547
+ "package": "./renderOnChange"
548
+ }
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "kind": "javascript-module",
554
+ "path": "src/decorators/renderOnChange.ts",
473
555
  "declarations": [
474
556
  {
475
557
  "kind": "function",
476
- "name": "assureDesignSystem",
477
- "return": {
478
- "type": {
479
- "text": "DesignSystemModule"
480
- }
481
- },
558
+ "name": "renderOnChange",
482
559
  "parameters": [
483
560
  {
484
- "name": "module",
561
+ "name": "target",
485
562
  "type": {
486
- "text": "DesignSystemModule"
487
- }
563
+ "text": "FASTElement & { render(): void }"
564
+ },
565
+ "description": "The target to define the property change handler on."
566
+ },
567
+ {
568
+ "name": "name",
569
+ "type": {
570
+ "text": "string"
571
+ },
572
+ "description": "The property name."
488
573
  }
489
574
  ],
490
- "description": "assureDesignSystem.",
575
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
491
576
  "privacy": "public"
492
- },
577
+ }
578
+ ],
579
+ "exports": [
493
580
  {
494
- "kind": "function",
495
- "name": "getCurrentDesignSystem",
496
- "return": {
497
- "type": {
498
- "text": ""
499
- }
500
- },
501
- "parameters": [
581
+ "kind": "js",
582
+ "name": "renderOnChange",
583
+ "declaration": {
584
+ "name": "renderOnChange",
585
+ "module": "src/decorators/renderOnChange.ts"
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "kind": "javascript-module",
592
+ "path": "src/error/errorMap.ts",
593
+ "declarations": [
594
+ {
595
+ "kind": "class",
596
+ "description": "",
597
+ "name": "DefaultErrorMap",
598
+ "members": [
502
599
  {
503
- "name": "element",
600
+ "kind": "field",
601
+ "name": "map",
602
+ "privacy": "private",
603
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
604
+ },
605
+ {
606
+ "kind": "field",
607
+ "name": "lastError",
504
608
  "type": {
505
- "text": "HTMLElement"
609
+ "text": "Error"
506
610
  },
507
- "description": "The starting HTML element"
611
+ "description": "{@inheritDoc ErrorMap.lastError}"
612
+ },
613
+ {
614
+ "kind": "method",
615
+ "name": "set",
616
+ "return": {
617
+ "type": {
618
+ "text": "void"
619
+ }
620
+ },
621
+ "parameters": [
622
+ {
623
+ "name": "key",
624
+ "type": {
625
+ "text": "keyof TErrorDetailMap"
626
+ }
627
+ },
628
+ {
629
+ "name": "error",
630
+ "type": {
631
+ "text": "Error"
632
+ }
633
+ }
634
+ ],
635
+ "description": "{@inheritDoc ErrorMap.set}"
636
+ },
637
+ {
638
+ "kind": "method",
639
+ "name": "get",
640
+ "return": {
641
+ "type": {
642
+ "text": ""
643
+ }
644
+ },
645
+ "parameters": [
646
+ {
647
+ "name": "key",
648
+ "type": {
649
+ "text": "keyof TErrorDetailMap"
650
+ },
651
+ "description": "The key."
652
+ }
653
+ ],
654
+ "description": "Get an error by key.",
655
+ "privacy": "public"
656
+ },
657
+ {
658
+ "kind": "method",
659
+ "name": "has",
660
+ "return": {
661
+ "type": {
662
+ "text": ""
663
+ }
664
+ },
665
+ "parameters": [
666
+ {
667
+ "name": "key",
668
+ "type": {
669
+ "text": "keyof TErrorDetailMap"
670
+ },
671
+ "description": "The key."
672
+ }
673
+ ],
674
+ "description": "Has an error for key.",
675
+ "privacy": "public"
676
+ },
677
+ {
678
+ "kind": "method",
679
+ "name": "delete",
680
+ "return": {
681
+ "type": {
682
+ "text": ""
683
+ }
684
+ },
685
+ "parameters": [
686
+ {
687
+ "name": "key",
688
+ "type": {
689
+ "text": "keyof TErrorDetailMap"
690
+ },
691
+ "description": "The key."
692
+ }
693
+ ],
694
+ "description": "Delete an error.",
695
+ "privacy": "public"
696
+ },
697
+ {
698
+ "kind": "method",
699
+ "name": "clear",
700
+ "description": "Clear errors.",
701
+ "privacy": "public"
702
+ },
703
+ {
704
+ "kind": "field",
705
+ "name": "size",
706
+ "type": {
707
+ "text": "number"
708
+ },
709
+ "description": "The size of the error map.",
710
+ "return": {
711
+ "type": {
712
+ "text": ""
713
+ }
714
+ },
715
+ "privacy": "public",
716
+ "readonly": true
717
+ },
718
+ {
719
+ "kind": "method",
720
+ "name": "values",
721
+ "privacy": "public"
508
722
  },
509
723
  {
510
- "name": "fallbackPrefix",
724
+ "kind": "field",
725
+ "name": "messages",
511
726
  "type": {
512
727
  "text": "string"
513
728
  },
514
- "description": "The prefix to fallback to if the provider is not available"
729
+ "description": "{@inheritDoc ErrorMap.messages}",
730
+ "readonly": true
515
731
  }
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"
732
+ ]
519
733
  },
520
734
  {
521
735
  "kind": "function",
522
- "name": "getCurrentDesignSystemPrefix",
736
+ "name": "createErrorMap",
523
737
  "return": {
524
738
  "type": {
525
739
  "text": ""
@@ -527,69 +741,39 @@
527
741
  },
528
742
  "parameters": [
529
743
  {
530
- "name": "element",
531
- "type": {
532
- "text": "HTMLElement"
533
- },
534
- "description": "The starting HTML element"
535
- },
536
- {
537
- "name": "fallbackPrefix",
744
+ "name": "logger",
538
745
  "type": {
539
- "text": "string"
746
+ "text": "ErrorMapLogger"
540
747
  },
541
- "description": "The prefix to fallback to if the provider is not available"
748
+ "description": "A logger error method reference."
542
749
  }
543
750
  ],
544
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
751
+ "description": "A factory to create the error map.",
545
752
  "privacy": "public"
546
753
  }
547
754
  ],
548
755
  "exports": [
549
756
  {
550
757
  "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",
758
+ "name": "DefaultErrorMap",
560
759
  "declaration": {
561
- "name": "getCurrentDesignSystem",
562
- "module": "src/design-system/design-system.ts"
760
+ "name": "DefaultErrorMap",
761
+ "module": "src/error/errorMap.ts"
563
762
  }
564
763
  },
565
764
  {
566
765
  "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": "*",
766
+ "name": "createErrorMap",
583
767
  "declaration": {
584
- "name": "*",
585
- "package": "./design-system"
768
+ "name": "createErrorMap",
769
+ "module": "src/error/errorMap.ts"
586
770
  }
587
771
  }
588
772
  ]
589
773
  },
590
774
  {
591
775
  "kind": "javascript-module",
592
- "path": "src/encoding/index.ts",
776
+ "path": "src/error/index.ts",
593
777
  "declarations": [],
594
778
  "exports": [
595
779
  {
@@ -597,7 +781,7 @@
597
781
  "name": "*",
598
782
  "declaration": {
599
783
  "name": "*",
600
- "package": "./base64"
784
+ "package": "./errorMap"
601
785
  }
602
786
  }
603
787
  ]
@@ -1079,191 +1263,7 @@
1079
1263
  },
1080
1264
  {
1081
1265
  "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",
1266
+ "path": "src/encoding/index.ts",
1267
1267
  "declarations": [],
1268
1268
  "exports": [
1269
1269
  {
@@ -1271,7 +1271,7 @@
1271
1271
  "name": "*",
1272
1272
  "declaration": {
1273
1273
  "name": "*",
1274
- "package": "./errorMap"
1274
+ "package": "./base64"
1275
1275
  }
1276
1276
  }
1277
1277
  ]
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.374.1",
4
+ "version": "14.374.2-alpha-2b5362b.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.374.1",
31
- "@genesislcap/genx": "14.374.1",
32
- "@genesislcap/rollup-builder": "14.374.1",
33
- "@genesislcap/ts-builder": "14.374.1",
34
- "@genesislcap/uvu-playwright-builder": "14.374.1",
35
- "@genesislcap/vite-builder": "14.374.1",
36
- "@genesislcap/webpack-builder": "14.374.1",
30
+ "@genesislcap/foundation-testing": "14.374.2-alpha-2b5362b.0",
31
+ "@genesislcap/genx": "14.374.2-alpha-2b5362b.0",
32
+ "@genesislcap/rollup-builder": "14.374.2-alpha-2b5362b.0",
33
+ "@genesislcap/ts-builder": "14.374.2-alpha-2b5362b.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.374.2-alpha-2b5362b.0",
35
+ "@genesislcap/vite-builder": "14.374.2-alpha-2b5362b.0",
36
+ "@genesislcap/webpack-builder": "14.374.2-alpha-2b5362b.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.374.1",
41
- "@genesislcap/foundation-logger": "14.374.1",
40
+ "@genesislcap/expression-builder": "14.374.2-alpha-2b5362b.0",
41
+ "@genesislcap/foundation-logger": "14.374.2-alpha-2b5362b.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": "d24b43a726fb1bf4f47699743adf635196a06543"
59
+ "gitHead": "2a38a730604c2d06125ebbdc8b5f8ca80027fefc"
60
60
  }