@genesislcap/foundation-utils 14.145.1 → 14.145.2

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.
@@ -151,6 +151,109 @@
151
151
  }
152
152
  ]
153
153
  },
154
+ {
155
+ "kind": "javascript-module",
156
+ "path": "src/decorators/index.ts",
157
+ "declarations": [],
158
+ "exports": [
159
+ {
160
+ "kind": "js",
161
+ "name": "*",
162
+ "declaration": {
163
+ "name": "*",
164
+ "package": "./renderOnChange"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "kind": "javascript-module",
171
+ "path": "src/decorators/renderOnChange.ts",
172
+ "declarations": [
173
+ {
174
+ "kind": "function",
175
+ "name": "renderOnChange",
176
+ "parameters": [
177
+ {
178
+ "name": "target",
179
+ "type": {
180
+ "text": "FASTElement & { render(): void }"
181
+ },
182
+ "description": "The target to define the property change handler on."
183
+ },
184
+ {
185
+ "name": "name",
186
+ "type": {
187
+ "text": "string"
188
+ },
189
+ "description": "The property name."
190
+ }
191
+ ],
192
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
193
+ "privacy": "public"
194
+ }
195
+ ],
196
+ "exports": [
197
+ {
198
+ "kind": "js",
199
+ "name": "renderOnChange",
200
+ "declaration": {
201
+ "name": "renderOnChange",
202
+ "module": "src/decorators/renderOnChange.ts"
203
+ }
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "kind": "javascript-module",
209
+ "path": "src/design-system/design-system.ts",
210
+ "declarations": [
211
+ {
212
+ "kind": "function",
213
+ "name": "assureDesignSystem",
214
+ "return": {
215
+ "type": {
216
+ "text": "DesignSystemModule"
217
+ }
218
+ },
219
+ "parameters": [
220
+ {
221
+ "name": "module",
222
+ "type": {
223
+ "text": "DesignSystemModule"
224
+ }
225
+ }
226
+ ],
227
+ "description": "assureDesignSystem.",
228
+ "privacy": "public"
229
+ }
230
+ ],
231
+ "exports": [
232
+ {
233
+ "kind": "js",
234
+ "name": "assureDesignSystem",
235
+ "declaration": {
236
+ "name": "assureDesignSystem",
237
+ "module": "src/design-system/design-system.ts"
238
+ }
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "kind": "javascript-module",
244
+ "path": "src/design-system/index.ts",
245
+ "declarations": [],
246
+ "exports": [
247
+ {
248
+ "kind": "js",
249
+ "name": "*",
250
+ "declaration": {
251
+ "name": "*",
252
+ "package": "./design-system"
253
+ }
254
+ }
255
+ ]
256
+ },
154
257
  {
155
258
  "kind": "javascript-module",
156
259
  "path": "src/directives/index.ts",
@@ -598,121 +701,269 @@
598
701
  },
599
702
  {
600
703
  "kind": "javascript-module",
601
- "path": "src/design-system/design-system.ts",
704
+ "path": "src/data/inMemoryDatabase.ts",
602
705
  "declarations": [
603
706
  {
604
- "kind": "function",
605
- "name": "assureDesignSystem",
606
- "return": {
607
- "type": {
608
- "text": "DesignSystemModule"
609
- }
610
- },
611
- "parameters": [
707
+ "kind": "class",
708
+ "description": "An in memory database of specific DatabaseRecord types.",
709
+ "name": "InMemoryDatabase",
710
+ "members": [
612
711
  {
613
- "name": "module",
712
+ "kind": "field",
713
+ "name": "isWorking",
614
714
  "type": {
615
- "text": "DesignSystemModule"
616
- }
617
- }
618
- ],
619
- "description": "assureDesignSystem.",
620
- "privacy": "public"
621
- }
622
- ],
623
- "exports": [
624
- {
625
- "kind": "js",
626
- "name": "assureDesignSystem",
627
- "declaration": {
628
- "name": "assureDesignSystem",
629
- "module": "src/design-system/design-system.ts"
630
- }
631
- }
632
- ]
633
- },
634
- {
635
- "kind": "javascript-module",
636
- "path": "src/design-system/index.ts",
637
- "declarations": [],
638
- "exports": [
639
- {
640
- "kind": "js",
641
- "name": "*",
642
- "declaration": {
643
- "name": "*",
644
- "package": "./design-system"
645
- }
646
- }
647
- ]
648
- },
649
- {
650
- "kind": "javascript-module",
651
- "path": "src/formatters/datetime.ts",
652
- "declarations": [
653
- {
654
- "kind": "function",
655
- "name": "formatDateTimestamp",
656
- "return": {
657
- "type": {
658
- "text": "string"
659
- }
660
- },
661
- "parameters": [
715
+ "text": "boolean"
716
+ },
717
+ "privacy": "public",
718
+ "default": "false"
719
+ },
662
720
  {
663
- "name": "timestamp",
721
+ "kind": "field",
722
+ "name": "records",
664
723
  "type": {
665
- "text": "number"
666
- }
667
- }
668
- ],
669
- "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
670
- "privacy": "public"
671
- },
672
- {
673
- "kind": "function",
674
- "name": "formatDateTimeTimestamp",
675
- "return": {
676
- "type": {
677
- "text": "string"
678
- }
679
- },
680
- "parameters": [
724
+ "text": "Record<string, T>"
725
+ },
726
+ "privacy": "private",
727
+ "default": "{}"
728
+ },
681
729
  {
682
- "name": "timestamp",
683
- "type": {
684
- "text": "number"
685
- }
686
- }
687
- ],
688
- "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
689
- "privacy": "public"
690
- },
691
- {
692
- "kind": "function",
693
- "name": "formatTimestamp",
694
- "return": {
695
- "type": {
696
- "text": "string"
697
- }
698
- },
699
- "parameters": [
730
+ "kind": "field",
731
+ "name": "beforeUpdateListeners",
732
+ "privacy": "private"
733
+ },
700
734
  {
701
- "name": "timestamp",
702
- "type": {
703
- "text": "number"
735
+ "kind": "field",
736
+ "name": "afterUpdateListeners",
737
+ "privacy": "private"
738
+ },
739
+ {
740
+ "kind": "method",
741
+ "name": "create",
742
+ "privacy": "public",
743
+ "return": {
744
+ "type": {
745
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
746
+ }
704
747
  },
705
- "description": "The UNIX Timestamp."
748
+ "parameters": [
749
+ {
750
+ "name": "newValue",
751
+ "type": {
752
+ "text": "Omit<T, 'id'>"
753
+ }
754
+ }
755
+ ]
706
756
  },
707
757
  {
708
- "name": "withTime",
709
- "type": {
710
- "text": "boolean"
758
+ "kind": "method",
759
+ "name": "read",
760
+ "privacy": "public",
761
+ "return": {
762
+ "type": {
763
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
764
+ }
711
765
  },
712
- "description": "The flag to determine if formatted value should contain 'time' info."
713
- }
714
- ],
715
- "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
766
+ "parameters": [
767
+ {
768
+ "name": "id",
769
+ "type": {
770
+ "text": "string"
771
+ }
772
+ }
773
+ ]
774
+ },
775
+ {
776
+ "kind": "method",
777
+ "name": "update",
778
+ "privacy": "public",
779
+ "return": {
780
+ "type": {
781
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
782
+ }
783
+ },
784
+ "parameters": [
785
+ {
786
+ "name": "id",
787
+ "type": {
788
+ "text": "string"
789
+ }
790
+ },
791
+ {
792
+ "name": "newValue",
793
+ "type": {
794
+ "text": "Omit<Partial<T>, 'id'>"
795
+ }
796
+ }
797
+ ]
798
+ },
799
+ {
800
+ "kind": "method",
801
+ "name": "delete",
802
+ "privacy": "public",
803
+ "return": {
804
+ "type": {
805
+ "text": "Promise<DatabaseAccessResult.Delete>"
806
+ }
807
+ },
808
+ "parameters": [
809
+ {
810
+ "name": "id",
811
+ "type": {
812
+ "text": "string"
813
+ }
814
+ }
815
+ ]
816
+ },
817
+ {
818
+ "kind": "method",
819
+ "name": "visit",
820
+ "privacy": "public",
821
+ "return": {
822
+ "type": {
823
+ "text": "Promise<void>"
824
+ }
825
+ },
826
+ "parameters": [
827
+ {
828
+ "name": "visitor",
829
+ "type": {
830
+ "text": "(record: T) => void"
831
+ }
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "kind": "method",
837
+ "name": "onBeforeUpdate",
838
+ "privacy": "public",
839
+ "return": {
840
+ "type": {
841
+ "text": "() => void"
842
+ }
843
+ },
844
+ "parameters": [
845
+ {
846
+ "name": "listener",
847
+ "type": {
848
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
849
+ }
850
+ }
851
+ ]
852
+ },
853
+ {
854
+ "kind": "method",
855
+ "name": "onAfterUpdate",
856
+ "privacy": "public",
857
+ "return": {
858
+ "type": {
859
+ "text": "() => void"
860
+ }
861
+ },
862
+ "parameters": [
863
+ {
864
+ "name": "listener",
865
+ "type": {
866
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
867
+ }
868
+ }
869
+ ]
870
+ }
871
+ ]
872
+ }
873
+ ],
874
+ "exports": [
875
+ {
876
+ "kind": "js",
877
+ "name": "InMemoryDatabase",
878
+ "declaration": {
879
+ "name": "InMemoryDatabase",
880
+ "module": "src/data/inMemoryDatabase.ts"
881
+ }
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ "kind": "javascript-module",
887
+ "path": "src/data/index.ts",
888
+ "declarations": [],
889
+ "exports": [
890
+ {
891
+ "kind": "js",
892
+ "name": "*",
893
+ "declaration": {
894
+ "name": "*",
895
+ "package": "./inMemoryDatabase"
896
+ }
897
+ }
898
+ ]
899
+ },
900
+ {
901
+ "kind": "javascript-module",
902
+ "path": "src/formatters/datetime.ts",
903
+ "declarations": [
904
+ {
905
+ "kind": "function",
906
+ "name": "formatDateTimestamp",
907
+ "return": {
908
+ "type": {
909
+ "text": "string"
910
+ }
911
+ },
912
+ "parameters": [
913
+ {
914
+ "name": "timestamp",
915
+ "type": {
916
+ "text": "number"
917
+ }
918
+ }
919
+ ],
920
+ "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
921
+ "privacy": "public"
922
+ },
923
+ {
924
+ "kind": "function",
925
+ "name": "formatDateTimeTimestamp",
926
+ "return": {
927
+ "type": {
928
+ "text": "string"
929
+ }
930
+ },
931
+ "parameters": [
932
+ {
933
+ "name": "timestamp",
934
+ "type": {
935
+ "text": "number"
936
+ }
937
+ }
938
+ ],
939
+ "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
940
+ "privacy": "public"
941
+ },
942
+ {
943
+ "kind": "function",
944
+ "name": "formatTimestamp",
945
+ "return": {
946
+ "type": {
947
+ "text": "string"
948
+ }
949
+ },
950
+ "parameters": [
951
+ {
952
+ "name": "timestamp",
953
+ "type": {
954
+ "text": "number"
955
+ },
956
+ "description": "The UNIX Timestamp."
957
+ },
958
+ {
959
+ "name": "withTime",
960
+ "type": {
961
+ "text": "boolean"
962
+ },
963
+ "description": "The flag to determine if formatted value should contain 'time' info."
964
+ }
965
+ ],
966
+ "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
716
967
  "privacy": "public"
717
968
  }
718
969
  ],
@@ -858,257 +1109,6 @@
858
1109
  }
859
1110
  ]
860
1111
  },
861
- {
862
- "kind": "javascript-module",
863
- "path": "src/decorators/index.ts",
864
- "declarations": [],
865
- "exports": [
866
- {
867
- "kind": "js",
868
- "name": "*",
869
- "declaration": {
870
- "name": "*",
871
- "package": "./renderOnChange"
872
- }
873
- }
874
- ]
875
- },
876
- {
877
- "kind": "javascript-module",
878
- "path": "src/decorators/renderOnChange.ts",
879
- "declarations": [
880
- {
881
- "kind": "function",
882
- "name": "renderOnChange",
883
- "parameters": [
884
- {
885
- "name": "target",
886
- "type": {
887
- "text": "FASTElement & { render(): void }"
888
- },
889
- "description": "The target to define the property change handler on."
890
- },
891
- {
892
- "name": "name",
893
- "type": {
894
- "text": "string"
895
- },
896
- "description": "The property name."
897
- }
898
- ],
899
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
900
- "privacy": "public"
901
- }
902
- ],
903
- "exports": [
904
- {
905
- "kind": "js",
906
- "name": "renderOnChange",
907
- "declaration": {
908
- "name": "renderOnChange",
909
- "module": "src/decorators/renderOnChange.ts"
910
- }
911
- }
912
- ]
913
- },
914
- {
915
- "kind": "javascript-module",
916
- "path": "src/data/inMemoryDatabase.ts",
917
- "declarations": [
918
- {
919
- "kind": "class",
920
- "description": "An in memory database of specific DatabaseRecord types.",
921
- "name": "InMemoryDatabase",
922
- "members": [
923
- {
924
- "kind": "field",
925
- "name": "isWorking",
926
- "type": {
927
- "text": "boolean"
928
- },
929
- "privacy": "public",
930
- "default": "false"
931
- },
932
- {
933
- "kind": "field",
934
- "name": "records",
935
- "type": {
936
- "text": "Record<string, T>"
937
- },
938
- "privacy": "private",
939
- "default": "{}"
940
- },
941
- {
942
- "kind": "field",
943
- "name": "beforeUpdateListeners",
944
- "privacy": "private"
945
- },
946
- {
947
- "kind": "field",
948
- "name": "afterUpdateListeners",
949
- "privacy": "private"
950
- },
951
- {
952
- "kind": "method",
953
- "name": "create",
954
- "privacy": "public",
955
- "return": {
956
- "type": {
957
- "text": "Promise<DatabaseAccessResult.Create<T>>"
958
- }
959
- },
960
- "parameters": [
961
- {
962
- "name": "newValue",
963
- "type": {
964
- "text": "Omit<T, 'id'>"
965
- }
966
- }
967
- ]
968
- },
969
- {
970
- "kind": "method",
971
- "name": "read",
972
- "privacy": "public",
973
- "return": {
974
- "type": {
975
- "text": "Promise<DatabaseAccessResult.Read<T>>"
976
- }
977
- },
978
- "parameters": [
979
- {
980
- "name": "id",
981
- "type": {
982
- "text": "string"
983
- }
984
- }
985
- ]
986
- },
987
- {
988
- "kind": "method",
989
- "name": "update",
990
- "privacy": "public",
991
- "return": {
992
- "type": {
993
- "text": "Promise<DatabaseAccessResult.Update<T>>"
994
- }
995
- },
996
- "parameters": [
997
- {
998
- "name": "id",
999
- "type": {
1000
- "text": "string"
1001
- }
1002
- },
1003
- {
1004
- "name": "newValue",
1005
- "type": {
1006
- "text": "Omit<Partial<T>, 'id'>"
1007
- }
1008
- }
1009
- ]
1010
- },
1011
- {
1012
- "kind": "method",
1013
- "name": "delete",
1014
- "privacy": "public",
1015
- "return": {
1016
- "type": {
1017
- "text": "Promise<DatabaseAccessResult.Delete>"
1018
- }
1019
- },
1020
- "parameters": [
1021
- {
1022
- "name": "id",
1023
- "type": {
1024
- "text": "string"
1025
- }
1026
- }
1027
- ]
1028
- },
1029
- {
1030
- "kind": "method",
1031
- "name": "visit",
1032
- "privacy": "public",
1033
- "return": {
1034
- "type": {
1035
- "text": "Promise<void>"
1036
- }
1037
- },
1038
- "parameters": [
1039
- {
1040
- "name": "visitor",
1041
- "type": {
1042
- "text": "(record: T) => void"
1043
- }
1044
- }
1045
- ]
1046
- },
1047
- {
1048
- "kind": "method",
1049
- "name": "onBeforeUpdate",
1050
- "privacy": "public",
1051
- "return": {
1052
- "type": {
1053
- "text": "() => void"
1054
- }
1055
- },
1056
- "parameters": [
1057
- {
1058
- "name": "listener",
1059
- "type": {
1060
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1061
- }
1062
- }
1063
- ]
1064
- },
1065
- {
1066
- "kind": "method",
1067
- "name": "onAfterUpdate",
1068
- "privacy": "public",
1069
- "return": {
1070
- "type": {
1071
- "text": "() => void"
1072
- }
1073
- },
1074
- "parameters": [
1075
- {
1076
- "name": "listener",
1077
- "type": {
1078
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1079
- }
1080
- }
1081
- ]
1082
- }
1083
- ]
1084
- }
1085
- ],
1086
- "exports": [
1087
- {
1088
- "kind": "js",
1089
- "name": "InMemoryDatabase",
1090
- "declaration": {
1091
- "name": "InMemoryDatabase",
1092
- "module": "src/data/inMemoryDatabase.ts"
1093
- }
1094
- }
1095
- ]
1096
- },
1097
- {
1098
- "kind": "javascript-module",
1099
- "path": "src/data/index.ts",
1100
- "declarations": [],
1101
- "exports": [
1102
- {
1103
- "kind": "js",
1104
- "name": "*",
1105
- "declaration": {
1106
- "name": "*",
1107
- "package": "./inMemoryDatabase"
1108
- }
1109
- }
1110
- ]
1111
- },
1112
1112
  {
1113
1113
  "kind": "javascript-module",
1114
1114
  "path": "src/logger/index.ts",
@@ -1210,6 +1210,29 @@
1210
1210
  }
1211
1211
  ]
1212
1212
  },
1213
+ {
1214
+ "kind": "javascript-module",
1215
+ "path": "src/mixins/index.ts",
1216
+ "declarations": [],
1217
+ "exports": [
1218
+ {
1219
+ "kind": "js",
1220
+ "name": "*",
1221
+ "declaration": {
1222
+ "name": "*",
1223
+ "package": "./pendingState"
1224
+ }
1225
+ },
1226
+ {
1227
+ "kind": "js",
1228
+ "name": "*",
1229
+ "declaration": {
1230
+ "name": "*",
1231
+ "package": "./lifecycle"
1232
+ }
1233
+ }
1234
+ ]
1235
+ },
1213
1236
  {
1214
1237
  "kind": "javascript-module",
1215
1238
  "path": "src/observer/index.ts",
@@ -1282,29 +1305,6 @@
1282
1305
  }
1283
1306
  ]
1284
1307
  },
1285
- {
1286
- "kind": "javascript-module",
1287
- "path": "src/mixins/index.ts",
1288
- "declarations": [],
1289
- "exports": [
1290
- {
1291
- "kind": "js",
1292
- "name": "*",
1293
- "declaration": {
1294
- "name": "*",
1295
- "package": "./pendingState"
1296
- }
1297
- },
1298
- {
1299
- "kind": "js",
1300
- "name": "*",
1301
- "declaration": {
1302
- "name": "*",
1303
- "package": "./lifecycle"
1304
- }
1305
- }
1306
- ]
1307
- },
1308
1308
  {
1309
1309
  "kind": "javascript-module",
1310
1310
  "path": "src/resource/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.145.1",
4
+ "version": "14.145.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.145.1",
23
- "@genesislcap/genx": "14.145.1",
22
+ "@genesislcap/foundation-testing": "14.145.2",
23
+ "@genesislcap/genx": "14.145.2",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.145.1",
27
+ "@genesislcap/foundation-logger": "14.145.2",
28
28
  "@microsoft/fast-components": "^2.30.6",
29
29
  "@microsoft/fast-element": "^1.12.0",
30
30
  "@microsoft/fast-foundation": "^2.49.4",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "5ec311e6d296eb8c048be764d107f7f4dd14de22"
45
+ "gitHead": "314ab3fa0ca7683fc31b183c76087bda15f77d98"
46
46
  }