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