@genesislcap/foundation-utils 14.219.3-alpha-cbd5fc5.0 → 14.221.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/custom-elements.json +353 -353
  2. package/package.json +10 -10
@@ -167,56 +167,6 @@
167
167
  }
168
168
  ]
169
169
  },
170
- {
171
- "kind": "javascript-module",
172
- "path": "src/design-system/design-system.ts",
173
- "declarations": [
174
- {
175
- "kind": "function",
176
- "name": "assureDesignSystem",
177
- "return": {
178
- "type": {
179
- "text": "DesignSystemModule"
180
- }
181
- },
182
- "parameters": [
183
- {
184
- "name": "module",
185
- "type": {
186
- "text": "DesignSystemModule"
187
- }
188
- }
189
- ],
190
- "description": "assureDesignSystem.",
191
- "privacy": "public"
192
- }
193
- ],
194
- "exports": [
195
- {
196
- "kind": "js",
197
- "name": "assureDesignSystem",
198
- "declaration": {
199
- "name": "assureDesignSystem",
200
- "module": "src/design-system/design-system.ts"
201
- }
202
- }
203
- ]
204
- },
205
- {
206
- "kind": "javascript-module",
207
- "path": "src/design-system/index.ts",
208
- "declarations": [],
209
- "exports": [
210
- {
211
- "kind": "js",
212
- "name": "*",
213
- "declaration": {
214
- "name": "*",
215
- "package": "./design-system"
216
- }
217
- }
218
- ]
219
- },
220
170
  {
221
171
  "kind": "javascript-module",
222
172
  "path": "src/directives/index.ts",
@@ -480,190 +430,191 @@
480
430
  },
481
431
  {
482
432
  "kind": "javascript-module",
483
- "path": "src/data/inMemoryDatabase.ts",
433
+ "path": "src/error/errorMap.ts",
484
434
  "declarations": [
485
435
  {
486
436
  "kind": "class",
487
- "description": "An in memory database of specific DatabaseRecord types.",
488
- "name": "InMemoryDatabase",
437
+ "description": "",
438
+ "name": "DefaultErrorMap",
489
439
  "members": [
490
440
  {
491
441
  "kind": "field",
492
- "name": "isWorking",
493
- "type": {
494
- "text": "boolean"
495
- },
496
- "privacy": "public",
497
- "default": "false"
442
+ "name": "map",
443
+ "privacy": "private",
444
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
498
445
  },
499
446
  {
500
447
  "kind": "field",
501
- "name": "records",
448
+ "name": "lastError",
502
449
  "type": {
503
- "text": "Record<string, T>"
450
+ "text": "Error"
504
451
  },
505
- "privacy": "private",
506
- "default": "{}"
507
- },
508
- {
509
- "kind": "field",
510
- "name": "beforeUpdateListeners",
511
- "privacy": "private"
512
- },
513
- {
514
- "kind": "field",
515
- "name": "afterUpdateListeners",
516
- "privacy": "private"
452
+ "description": "{@inheritDoc ErrorMap.lastError}"
517
453
  },
518
454
  {
519
455
  "kind": "method",
520
- "name": "create",
521
- "privacy": "public",
456
+ "name": "set",
522
457
  "return": {
523
458
  "type": {
524
- "text": "Promise<DatabaseAccessResult.Create<T>>"
459
+ "text": "void"
525
460
  }
526
461
  },
527
462
  "parameters": [
528
463
  {
529
- "name": "newValue",
464
+ "name": "key",
530
465
  "type": {
531
- "text": "Omit<T, 'id'>"
466
+ "text": "keyof TErrorDetailMap"
532
467
  }
533
- }
534
- ]
535
- },
536
- {
537
- "kind": "method",
538
- "name": "read",
539
- "privacy": "public",
540
- "return": {
541
- "type": {
542
- "text": "Promise<DatabaseAccessResult.Read<T>>"
543
- }
544
- },
545
- "parameters": [
468
+ },
546
469
  {
547
- "name": "id",
470
+ "name": "error",
548
471
  "type": {
549
- "text": "string"
472
+ "text": "Error"
550
473
  }
551
474
  }
552
- ]
475
+ ],
476
+ "description": "{@inheritDoc ErrorMap.set}"
553
477
  },
554
478
  {
555
479
  "kind": "method",
556
- "name": "update",
557
- "privacy": "public",
480
+ "name": "get",
558
481
  "return": {
559
482
  "type": {
560
- "text": "Promise<DatabaseAccessResult.Update<T>>"
483
+ "text": ""
561
484
  }
562
485
  },
563
486
  "parameters": [
564
487
  {
565
- "name": "id",
566
- "type": {
567
- "text": "string"
568
- }
569
- },
570
- {
571
- "name": "newValue",
488
+ "name": "key",
572
489
  "type": {
573
- "text": "Omit<Partial<T>, 'id'>"
574
- }
490
+ "text": "keyof TErrorDetailMap"
491
+ },
492
+ "description": "The key."
575
493
  }
576
- ]
494
+ ],
495
+ "description": "Get an error by key.",
496
+ "privacy": "public"
577
497
  },
578
498
  {
579
499
  "kind": "method",
580
- "name": "delete",
581
- "privacy": "public",
500
+ "name": "has",
582
501
  "return": {
583
502
  "type": {
584
- "text": "Promise<DatabaseAccessResult.Delete>"
503
+ "text": ""
585
504
  }
586
505
  },
587
506
  "parameters": [
588
507
  {
589
- "name": "id",
508
+ "name": "key",
590
509
  "type": {
591
- "text": "string"
592
- }
510
+ "text": "keyof TErrorDetailMap"
511
+ },
512
+ "description": "The key."
593
513
  }
594
- ]
514
+ ],
515
+ "description": "Has an error for key.",
516
+ "privacy": "public"
595
517
  },
596
518
  {
597
519
  "kind": "method",
598
- "name": "visit",
599
- "privacy": "public",
520
+ "name": "delete",
600
521
  "return": {
601
522
  "type": {
602
- "text": "Promise<void>"
523
+ "text": ""
603
524
  }
604
525
  },
605
526
  "parameters": [
606
527
  {
607
- "name": "visitor",
528
+ "name": "key",
608
529
  "type": {
609
- "text": "(record: T) => void"
610
- }
530
+ "text": "keyof TErrorDetailMap"
531
+ },
532
+ "description": "The key."
611
533
  }
612
- ]
534
+ ],
535
+ "description": "Delete an error.",
536
+ "privacy": "public"
613
537
  },
614
538
  {
615
539
  "kind": "method",
616
- "name": "onBeforeUpdate",
617
- "privacy": "public",
540
+ "name": "clear",
541
+ "description": "Clear errors.",
542
+ "privacy": "public"
543
+ },
544
+ {
545
+ "kind": "field",
546
+ "name": "size",
547
+ "type": {
548
+ "text": "number"
549
+ },
550
+ "description": "The size of the error map.",
618
551
  "return": {
619
552
  "type": {
620
- "text": "() => void"
553
+ "text": ""
621
554
  }
622
555
  },
623
- "parameters": [
624
- {
625
- "name": "listener",
626
- "type": {
627
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
628
- }
629
- }
630
- ]
556
+ "privacy": "public",
557
+ "readonly": true
631
558
  },
632
559
  {
633
560
  "kind": "method",
634
- "name": "onAfterUpdate",
635
- "privacy": "public",
636
- "return": {
637
- "type": {
638
- "text": "() => void"
639
- }
561
+ "name": "values",
562
+ "privacy": "public"
563
+ },
564
+ {
565
+ "kind": "field",
566
+ "name": "messages",
567
+ "type": {
568
+ "text": "string"
640
569
  },
641
- "parameters": [
642
- {
643
- "name": "listener",
644
- "type": {
645
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
646
- }
647
- }
648
- ]
570
+ "description": "{@inheritDoc ErrorMap.messages}",
571
+ "readonly": true
649
572
  }
650
573
  ]
574
+ },
575
+ {
576
+ "kind": "function",
577
+ "name": "createErrorMap",
578
+ "return": {
579
+ "type": {
580
+ "text": ""
581
+ }
582
+ },
583
+ "parameters": [
584
+ {
585
+ "name": "logger",
586
+ "type": {
587
+ "text": "ErrorMapLogger"
588
+ },
589
+ "description": "A logger error method reference."
590
+ }
591
+ ],
592
+ "description": "A factory to create the error map.",
593
+ "privacy": "public"
651
594
  }
652
595
  ],
653
596
  "exports": [
654
597
  {
655
598
  "kind": "js",
656
- "name": "InMemoryDatabase",
599
+ "name": "DefaultErrorMap",
657
600
  "declaration": {
658
- "name": "InMemoryDatabase",
659
- "module": "src/data/inMemoryDatabase.ts"
601
+ "name": "DefaultErrorMap",
602
+ "module": "src/error/errorMap.ts"
603
+ }
604
+ },
605
+ {
606
+ "kind": "js",
607
+ "name": "createErrorMap",
608
+ "declaration": {
609
+ "name": "createErrorMap",
610
+ "module": "src/error/errorMap.ts"
660
611
  }
661
612
  }
662
613
  ]
663
614
  },
664
615
  {
665
616
  "kind": "javascript-module",
666
- "path": "src/data/index.ts",
617
+ "path": "src/error/index.ts",
667
618
  "declarations": [],
668
619
  "exports": [
669
620
  {
@@ -671,16 +622,66 @@
671
622
  "name": "*",
672
623
  "declaration": {
673
624
  "name": "*",
674
- "package": "./inMemoryDatabase"
625
+ "package": "./errorMap"
675
626
  }
676
627
  }
677
628
  ]
678
629
  },
679
630
  {
680
631
  "kind": "javascript-module",
681
- "path": "src/decorators/index.ts",
682
- "declarations": [],
683
- "exports": [
632
+ "path": "src/design-system/design-system.ts",
633
+ "declarations": [
634
+ {
635
+ "kind": "function",
636
+ "name": "assureDesignSystem",
637
+ "return": {
638
+ "type": {
639
+ "text": "DesignSystemModule"
640
+ }
641
+ },
642
+ "parameters": [
643
+ {
644
+ "name": "module",
645
+ "type": {
646
+ "text": "DesignSystemModule"
647
+ }
648
+ }
649
+ ],
650
+ "description": "assureDesignSystem.",
651
+ "privacy": "public"
652
+ }
653
+ ],
654
+ "exports": [
655
+ {
656
+ "kind": "js",
657
+ "name": "assureDesignSystem",
658
+ "declaration": {
659
+ "name": "assureDesignSystem",
660
+ "module": "src/design-system/design-system.ts"
661
+ }
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ "kind": "javascript-module",
667
+ "path": "src/design-system/index.ts",
668
+ "declarations": [],
669
+ "exports": [
670
+ {
671
+ "kind": "js",
672
+ "name": "*",
673
+ "declaration": {
674
+ "name": "*",
675
+ "package": "./design-system"
676
+ }
677
+ }
678
+ ]
679
+ },
680
+ {
681
+ "kind": "javascript-module",
682
+ "path": "src/decorators/index.ts",
683
+ "declarations": [],
684
+ "exports": [
684
685
  {
685
686
  "kind": "js",
686
687
  "name": "*",
@@ -729,205 +730,6 @@
729
730
  }
730
731
  ]
731
732
  },
732
- {
733
- "kind": "javascript-module",
734
- "path": "src/error/errorMap.ts",
735
- "declarations": [
736
- {
737
- "kind": "class",
738
- "description": "",
739
- "name": "DefaultErrorMap",
740
- "members": [
741
- {
742
- "kind": "field",
743
- "name": "map",
744
- "privacy": "private",
745
- "default": "new Map<keyof TErrorDetailMap, Error>()"
746
- },
747
- {
748
- "kind": "field",
749
- "name": "lastError",
750
- "type": {
751
- "text": "Error"
752
- },
753
- "description": "{@inheritDoc ErrorMap.lastError}"
754
- },
755
- {
756
- "kind": "method",
757
- "name": "set",
758
- "return": {
759
- "type": {
760
- "text": "void"
761
- }
762
- },
763
- "parameters": [
764
- {
765
- "name": "key",
766
- "type": {
767
- "text": "keyof TErrorDetailMap"
768
- }
769
- },
770
- {
771
- "name": "error",
772
- "type": {
773
- "text": "Error"
774
- }
775
- }
776
- ],
777
- "description": "{@inheritDoc ErrorMap.set}"
778
- },
779
- {
780
- "kind": "method",
781
- "name": "get",
782
- "return": {
783
- "type": {
784
- "text": ""
785
- }
786
- },
787
- "parameters": [
788
- {
789
- "name": "key",
790
- "type": {
791
- "text": "keyof TErrorDetailMap"
792
- },
793
- "description": "The key."
794
- }
795
- ],
796
- "description": "Get an error by key.",
797
- "privacy": "public"
798
- },
799
- {
800
- "kind": "method",
801
- "name": "has",
802
- "return": {
803
- "type": {
804
- "text": ""
805
- }
806
- },
807
- "parameters": [
808
- {
809
- "name": "key",
810
- "type": {
811
- "text": "keyof TErrorDetailMap"
812
- },
813
- "description": "The key."
814
- }
815
- ],
816
- "description": "Has an error for key.",
817
- "privacy": "public"
818
- },
819
- {
820
- "kind": "method",
821
- "name": "delete",
822
- "return": {
823
- "type": {
824
- "text": ""
825
- }
826
- },
827
- "parameters": [
828
- {
829
- "name": "key",
830
- "type": {
831
- "text": "keyof TErrorDetailMap"
832
- },
833
- "description": "The key."
834
- }
835
- ],
836
- "description": "Delete an error.",
837
- "privacy": "public"
838
- },
839
- {
840
- "kind": "method",
841
- "name": "clear",
842
- "description": "Clear errors.",
843
- "privacy": "public"
844
- },
845
- {
846
- "kind": "field",
847
- "name": "size",
848
- "type": {
849
- "text": "number"
850
- },
851
- "description": "The size of the error map.",
852
- "return": {
853
- "type": {
854
- "text": ""
855
- }
856
- },
857
- "privacy": "public",
858
- "readonly": true
859
- },
860
- {
861
- "kind": "method",
862
- "name": "values",
863
- "privacy": "public"
864
- },
865
- {
866
- "kind": "field",
867
- "name": "messages",
868
- "type": {
869
- "text": "string"
870
- },
871
- "description": "{@inheritDoc ErrorMap.messages}",
872
- "readonly": true
873
- }
874
- ]
875
- },
876
- {
877
- "kind": "function",
878
- "name": "createErrorMap",
879
- "return": {
880
- "type": {
881
- "text": ""
882
- }
883
- },
884
- "parameters": [
885
- {
886
- "name": "logger",
887
- "type": {
888
- "text": "ErrorMapLogger"
889
- },
890
- "description": "A logger error method reference."
891
- }
892
- ],
893
- "description": "A factory to create the error map.",
894
- "privacy": "public"
895
- }
896
- ],
897
- "exports": [
898
- {
899
- "kind": "js",
900
- "name": "DefaultErrorMap",
901
- "declaration": {
902
- "name": "DefaultErrorMap",
903
- "module": "src/error/errorMap.ts"
904
- }
905
- },
906
- {
907
- "kind": "js",
908
- "name": "createErrorMap",
909
- "declaration": {
910
- "name": "createErrorMap",
911
- "module": "src/error/errorMap.ts"
912
- }
913
- }
914
- ]
915
- },
916
- {
917
- "kind": "javascript-module",
918
- "path": "src/error/index.ts",
919
- "declarations": [],
920
- "exports": [
921
- {
922
- "kind": "js",
923
- "name": "*",
924
- "declaration": {
925
- "name": "*",
926
- "package": "./errorMap"
927
- }
928
- }
929
- ]
930
- },
931
733
  {
932
734
  "kind": "javascript-module",
933
735
  "path": "src/formatters/datetime.ts",
@@ -1213,6 +1015,204 @@
1213
1015
  }
1214
1016
  ]
1215
1017
  },
1018
+ {
1019
+ "kind": "javascript-module",
1020
+ "path": "src/data/inMemoryDatabase.ts",
1021
+ "declarations": [
1022
+ {
1023
+ "kind": "class",
1024
+ "description": "An in memory database of specific DatabaseRecord types.",
1025
+ "name": "InMemoryDatabase",
1026
+ "members": [
1027
+ {
1028
+ "kind": "field",
1029
+ "name": "isWorking",
1030
+ "type": {
1031
+ "text": "boolean"
1032
+ },
1033
+ "privacy": "public",
1034
+ "default": "false"
1035
+ },
1036
+ {
1037
+ "kind": "field",
1038
+ "name": "records",
1039
+ "type": {
1040
+ "text": "Record<string, T>"
1041
+ },
1042
+ "privacy": "private",
1043
+ "default": "{}"
1044
+ },
1045
+ {
1046
+ "kind": "field",
1047
+ "name": "beforeUpdateListeners",
1048
+ "privacy": "private"
1049
+ },
1050
+ {
1051
+ "kind": "field",
1052
+ "name": "afterUpdateListeners",
1053
+ "privacy": "private"
1054
+ },
1055
+ {
1056
+ "kind": "method",
1057
+ "name": "create",
1058
+ "privacy": "public",
1059
+ "return": {
1060
+ "type": {
1061
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1062
+ }
1063
+ },
1064
+ "parameters": [
1065
+ {
1066
+ "name": "newValue",
1067
+ "type": {
1068
+ "text": "Omit<T, 'id'>"
1069
+ }
1070
+ }
1071
+ ]
1072
+ },
1073
+ {
1074
+ "kind": "method",
1075
+ "name": "read",
1076
+ "privacy": "public",
1077
+ "return": {
1078
+ "type": {
1079
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1080
+ }
1081
+ },
1082
+ "parameters": [
1083
+ {
1084
+ "name": "id",
1085
+ "type": {
1086
+ "text": "string"
1087
+ }
1088
+ }
1089
+ ]
1090
+ },
1091
+ {
1092
+ "kind": "method",
1093
+ "name": "update",
1094
+ "privacy": "public",
1095
+ "return": {
1096
+ "type": {
1097
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1098
+ }
1099
+ },
1100
+ "parameters": [
1101
+ {
1102
+ "name": "id",
1103
+ "type": {
1104
+ "text": "string"
1105
+ }
1106
+ },
1107
+ {
1108
+ "name": "newValue",
1109
+ "type": {
1110
+ "text": "Omit<Partial<T>, 'id'>"
1111
+ }
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ "kind": "method",
1117
+ "name": "delete",
1118
+ "privacy": "public",
1119
+ "return": {
1120
+ "type": {
1121
+ "text": "Promise<DatabaseAccessResult.Delete>"
1122
+ }
1123
+ },
1124
+ "parameters": [
1125
+ {
1126
+ "name": "id",
1127
+ "type": {
1128
+ "text": "string"
1129
+ }
1130
+ }
1131
+ ]
1132
+ },
1133
+ {
1134
+ "kind": "method",
1135
+ "name": "visit",
1136
+ "privacy": "public",
1137
+ "return": {
1138
+ "type": {
1139
+ "text": "Promise<void>"
1140
+ }
1141
+ },
1142
+ "parameters": [
1143
+ {
1144
+ "name": "visitor",
1145
+ "type": {
1146
+ "text": "(record: T) => void"
1147
+ }
1148
+ }
1149
+ ]
1150
+ },
1151
+ {
1152
+ "kind": "method",
1153
+ "name": "onBeforeUpdate",
1154
+ "privacy": "public",
1155
+ "return": {
1156
+ "type": {
1157
+ "text": "() => void"
1158
+ }
1159
+ },
1160
+ "parameters": [
1161
+ {
1162
+ "name": "listener",
1163
+ "type": {
1164
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1165
+ }
1166
+ }
1167
+ ]
1168
+ },
1169
+ {
1170
+ "kind": "method",
1171
+ "name": "onAfterUpdate",
1172
+ "privacy": "public",
1173
+ "return": {
1174
+ "type": {
1175
+ "text": "() => void"
1176
+ }
1177
+ },
1178
+ "parameters": [
1179
+ {
1180
+ "name": "listener",
1181
+ "type": {
1182
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1183
+ }
1184
+ }
1185
+ ]
1186
+ }
1187
+ ]
1188
+ }
1189
+ ],
1190
+ "exports": [
1191
+ {
1192
+ "kind": "js",
1193
+ "name": "InMemoryDatabase",
1194
+ "declaration": {
1195
+ "name": "InMemoryDatabase",
1196
+ "module": "src/data/inMemoryDatabase.ts"
1197
+ }
1198
+ }
1199
+ ]
1200
+ },
1201
+ {
1202
+ "kind": "javascript-module",
1203
+ "path": "src/data/index.ts",
1204
+ "declarations": [],
1205
+ "exports": [
1206
+ {
1207
+ "kind": "js",
1208
+ "name": "*",
1209
+ "declaration": {
1210
+ "name": "*",
1211
+ "package": "./inMemoryDatabase"
1212
+ }
1213
+ }
1214
+ ]
1215
+ },
1216
1216
  {
1217
1217
  "kind": "javascript-module",
1218
1218
  "path": "src/logger/index.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.219.3-alpha-cbd5fc5.0",
4
+ "version": "14.221.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.219.3-alpha-cbd5fc5.0",
31
- "@genesislcap/genx": "14.219.3-alpha-cbd5fc5.0",
32
- "@genesislcap/rollup-builder": "14.219.3-alpha-cbd5fc5.0",
33
- "@genesislcap/ts-builder": "14.219.3-alpha-cbd5fc5.0",
34
- "@genesislcap/uvu-playwright-builder": "14.219.3-alpha-cbd5fc5.0",
35
- "@genesislcap/vite-builder": "14.219.3-alpha-cbd5fc5.0",
36
- "@genesislcap/webpack-builder": "14.219.3-alpha-cbd5fc5.0",
30
+ "@genesislcap/foundation-testing": "14.221.0",
31
+ "@genesislcap/genx": "14.221.0",
32
+ "@genesislcap/rollup-builder": "14.221.0",
33
+ "@genesislcap/ts-builder": "14.221.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.221.0",
35
+ "@genesislcap/vite-builder": "14.221.0",
36
+ "@genesislcap/webpack-builder": "14.221.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.219.3-alpha-cbd5fc5.0",
40
+ "@genesislcap/foundation-logger": "14.221.0",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "2.49.6",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "1882a14a52bd115b82d360b63510b3102fac2aa8"
58
+ "gitHead": "74cb1a2eb7b1b23c6c56f8852db7b8254968b88b"
59
59
  }