@genesislcap/foundation-utils 14.252.1-alpha-ea46342.0 → 14.252.1-alpha-37ebbf6.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 +277 -277
  2. package/package.json +10 -10
@@ -171,42 +171,190 @@
171
171
  },
172
172
  {
173
173
  "kind": "javascript-module",
174
- "path": "src/design-system/design-system.ts",
174
+ "path": "src/data/inMemoryDatabase.ts",
175
175
  "declarations": [
176
176
  {
177
- "kind": "function",
178
- "name": "assureDesignSystem",
179
- "return": {
180
- "type": {
181
- "text": "DesignSystemModule"
182
- }
183
- },
184
- "parameters": [
177
+ "kind": "class",
178
+ "description": "An in memory database of specific DatabaseRecord types.",
179
+ "name": "InMemoryDatabase",
180
+ "members": [
185
181
  {
186
- "name": "module",
182
+ "kind": "field",
183
+ "name": "isWorking",
187
184
  "type": {
188
- "text": "DesignSystemModule"
189
- }
185
+ "text": "boolean"
186
+ },
187
+ "privacy": "public",
188
+ "default": "false"
189
+ },
190
+ {
191
+ "kind": "field",
192
+ "name": "records",
193
+ "type": {
194
+ "text": "Record<string, T>"
195
+ },
196
+ "privacy": "private",
197
+ "default": "{}"
198
+ },
199
+ {
200
+ "kind": "field",
201
+ "name": "beforeUpdateListeners",
202
+ "privacy": "private"
203
+ },
204
+ {
205
+ "kind": "field",
206
+ "name": "afterUpdateListeners",
207
+ "privacy": "private"
208
+ },
209
+ {
210
+ "kind": "method",
211
+ "name": "create",
212
+ "privacy": "public",
213
+ "return": {
214
+ "type": {
215
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
216
+ }
217
+ },
218
+ "parameters": [
219
+ {
220
+ "name": "newValue",
221
+ "type": {
222
+ "text": "Omit<T, 'id'>"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "method",
229
+ "name": "read",
230
+ "privacy": "public",
231
+ "return": {
232
+ "type": {
233
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
234
+ }
235
+ },
236
+ "parameters": [
237
+ {
238
+ "name": "id",
239
+ "type": {
240
+ "text": "string"
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "kind": "method",
247
+ "name": "update",
248
+ "privacy": "public",
249
+ "return": {
250
+ "type": {
251
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
252
+ }
253
+ },
254
+ "parameters": [
255
+ {
256
+ "name": "id",
257
+ "type": {
258
+ "text": "string"
259
+ }
260
+ },
261
+ {
262
+ "name": "newValue",
263
+ "type": {
264
+ "text": "Omit<Partial<T>, 'id'>"
265
+ }
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "kind": "method",
271
+ "name": "delete",
272
+ "privacy": "public",
273
+ "return": {
274
+ "type": {
275
+ "text": "Promise<DatabaseAccessResult.Delete>"
276
+ }
277
+ },
278
+ "parameters": [
279
+ {
280
+ "name": "id",
281
+ "type": {
282
+ "text": "string"
283
+ }
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "kind": "method",
289
+ "name": "visit",
290
+ "privacy": "public",
291
+ "return": {
292
+ "type": {
293
+ "text": "Promise<void>"
294
+ }
295
+ },
296
+ "parameters": [
297
+ {
298
+ "name": "visitor",
299
+ "type": {
300
+ "text": "(record: T) => void"
301
+ }
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "kind": "method",
307
+ "name": "onBeforeUpdate",
308
+ "privacy": "public",
309
+ "return": {
310
+ "type": {
311
+ "text": "() => void"
312
+ }
313
+ },
314
+ "parameters": [
315
+ {
316
+ "name": "listener",
317
+ "type": {
318
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "kind": "method",
325
+ "name": "onAfterUpdate",
326
+ "privacy": "public",
327
+ "return": {
328
+ "type": {
329
+ "text": "() => void"
330
+ }
331
+ },
332
+ "parameters": [
333
+ {
334
+ "name": "listener",
335
+ "type": {
336
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
337
+ }
338
+ }
339
+ ]
190
340
  }
191
- ],
192
- "description": "assureDesignSystem.",
193
- "privacy": "public"
341
+ ]
194
342
  }
195
343
  ],
196
344
  "exports": [
197
345
  {
198
346
  "kind": "js",
199
- "name": "assureDesignSystem",
347
+ "name": "InMemoryDatabase",
200
348
  "declaration": {
201
- "name": "assureDesignSystem",
202
- "module": "src/design-system/design-system.ts"
349
+ "name": "InMemoryDatabase",
350
+ "module": "src/data/inMemoryDatabase.ts"
203
351
  }
204
352
  }
205
353
  ]
206
354
  },
207
355
  {
208
356
  "kind": "javascript-module",
209
- "path": "src/design-system/index.ts",
357
+ "path": "src/data/index.ts",
210
358
  "declarations": [],
211
359
  "exports": [
212
360
  {
@@ -214,7 +362,7 @@
214
362
  "name": "*",
215
363
  "declaration": {
216
364
  "name": "*",
217
- "package": "./design-system"
365
+ "package": "./inMemoryDatabase"
218
366
  }
219
367
  }
220
368
  ]
@@ -242,59 +390,6 @@
242
390
  }
243
391
  ]
244
392
  },
245
- {
246
- "kind": "javascript-module",
247
- "path": "src/decorators/index.ts",
248
- "declarations": [],
249
- "exports": [
250
- {
251
- "kind": "js",
252
- "name": "*",
253
- "declaration": {
254
- "name": "*",
255
- "package": "./renderOnChange"
256
- }
257
- }
258
- ]
259
- },
260
- {
261
- "kind": "javascript-module",
262
- "path": "src/decorators/renderOnChange.ts",
263
- "declarations": [
264
- {
265
- "kind": "function",
266
- "name": "renderOnChange",
267
- "parameters": [
268
- {
269
- "name": "target",
270
- "type": {
271
- "text": "FASTElement & { render(): void }"
272
- },
273
- "description": "The target to define the property change handler on."
274
- },
275
- {
276
- "name": "name",
277
- "type": {
278
- "text": "string"
279
- },
280
- "description": "The property name."
281
- }
282
- ],
283
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
284
- "privacy": "public"
285
- }
286
- ],
287
- "exports": [
288
- {
289
- "kind": "js",
290
- "name": "renderOnChange",
291
- "declaration": {
292
- "name": "renderOnChange",
293
- "module": "src/decorators/renderOnChange.ts"
294
- }
295
- }
296
- ]
297
- },
298
393
  {
299
394
  "kind": "javascript-module",
300
395
  "path": "src/encoding/index.ts",
@@ -753,15 +848,118 @@
753
848
  },
754
849
  {
755
850
  "kind": "javascript-module",
756
- "path": "src/error/errorMap.ts",
851
+ "path": "src/design-system/design-system.ts",
757
852
  "declarations": [
758
853
  {
759
- "kind": "class",
760
- "description": "",
761
- "name": "DefaultErrorMap",
762
- "members": [
854
+ "kind": "function",
855
+ "name": "assureDesignSystem",
856
+ "return": {
857
+ "type": {
858
+ "text": "DesignSystemModule"
859
+ }
860
+ },
861
+ "parameters": [
763
862
  {
764
- "kind": "field",
863
+ "name": "module",
864
+ "type": {
865
+ "text": "DesignSystemModule"
866
+ }
867
+ }
868
+ ],
869
+ "description": "assureDesignSystem.",
870
+ "privacy": "public"
871
+ }
872
+ ],
873
+ "exports": [
874
+ {
875
+ "kind": "js",
876
+ "name": "assureDesignSystem",
877
+ "declaration": {
878
+ "name": "assureDesignSystem",
879
+ "module": "src/design-system/design-system.ts"
880
+ }
881
+ }
882
+ ]
883
+ },
884
+ {
885
+ "kind": "javascript-module",
886
+ "path": "src/design-system/index.ts",
887
+ "declarations": [],
888
+ "exports": [
889
+ {
890
+ "kind": "js",
891
+ "name": "*",
892
+ "declaration": {
893
+ "name": "*",
894
+ "package": "./design-system"
895
+ }
896
+ }
897
+ ]
898
+ },
899
+ {
900
+ "kind": "javascript-module",
901
+ "path": "src/decorators/index.ts",
902
+ "declarations": [],
903
+ "exports": [
904
+ {
905
+ "kind": "js",
906
+ "name": "*",
907
+ "declaration": {
908
+ "name": "*",
909
+ "package": "./renderOnChange"
910
+ }
911
+ }
912
+ ]
913
+ },
914
+ {
915
+ "kind": "javascript-module",
916
+ "path": "src/decorators/renderOnChange.ts",
917
+ "declarations": [
918
+ {
919
+ "kind": "function",
920
+ "name": "renderOnChange",
921
+ "parameters": [
922
+ {
923
+ "name": "target",
924
+ "type": {
925
+ "text": "FASTElement & { render(): void }"
926
+ },
927
+ "description": "The target to define the property change handler on."
928
+ },
929
+ {
930
+ "name": "name",
931
+ "type": {
932
+ "text": "string"
933
+ },
934
+ "description": "The property name."
935
+ }
936
+ ],
937
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
938
+ "privacy": "public"
939
+ }
940
+ ],
941
+ "exports": [
942
+ {
943
+ "kind": "js",
944
+ "name": "renderOnChange",
945
+ "declaration": {
946
+ "name": "renderOnChange",
947
+ "module": "src/decorators/renderOnChange.ts"
948
+ }
949
+ }
950
+ ]
951
+ },
952
+ {
953
+ "kind": "javascript-module",
954
+ "path": "src/error/errorMap.ts",
955
+ "declarations": [
956
+ {
957
+ "kind": "class",
958
+ "description": "",
959
+ "name": "DefaultErrorMap",
960
+ "members": [
961
+ {
962
+ "kind": "field",
765
963
  "name": "map",
766
964
  "privacy": "private",
767
965
  "default": "new Map<keyof TErrorDetailMap, Error>()"
@@ -950,204 +1148,6 @@
950
1148
  }
951
1149
  ]
952
1150
  },
953
- {
954
- "kind": "javascript-module",
955
- "path": "src/data/inMemoryDatabase.ts",
956
- "declarations": [
957
- {
958
- "kind": "class",
959
- "description": "An in memory database of specific DatabaseRecord types.",
960
- "name": "InMemoryDatabase",
961
- "members": [
962
- {
963
- "kind": "field",
964
- "name": "isWorking",
965
- "type": {
966
- "text": "boolean"
967
- },
968
- "privacy": "public",
969
- "default": "false"
970
- },
971
- {
972
- "kind": "field",
973
- "name": "records",
974
- "type": {
975
- "text": "Record<string, T>"
976
- },
977
- "privacy": "private",
978
- "default": "{}"
979
- },
980
- {
981
- "kind": "field",
982
- "name": "beforeUpdateListeners",
983
- "privacy": "private"
984
- },
985
- {
986
- "kind": "field",
987
- "name": "afterUpdateListeners",
988
- "privacy": "private"
989
- },
990
- {
991
- "kind": "method",
992
- "name": "create",
993
- "privacy": "public",
994
- "return": {
995
- "type": {
996
- "text": "Promise<DatabaseAccessResult.Create<T>>"
997
- }
998
- },
999
- "parameters": [
1000
- {
1001
- "name": "newValue",
1002
- "type": {
1003
- "text": "Omit<T, 'id'>"
1004
- }
1005
- }
1006
- ]
1007
- },
1008
- {
1009
- "kind": "method",
1010
- "name": "read",
1011
- "privacy": "public",
1012
- "return": {
1013
- "type": {
1014
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1015
- }
1016
- },
1017
- "parameters": [
1018
- {
1019
- "name": "id",
1020
- "type": {
1021
- "text": "string"
1022
- }
1023
- }
1024
- ]
1025
- },
1026
- {
1027
- "kind": "method",
1028
- "name": "update",
1029
- "privacy": "public",
1030
- "return": {
1031
- "type": {
1032
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1033
- }
1034
- },
1035
- "parameters": [
1036
- {
1037
- "name": "id",
1038
- "type": {
1039
- "text": "string"
1040
- }
1041
- },
1042
- {
1043
- "name": "newValue",
1044
- "type": {
1045
- "text": "Omit<Partial<T>, 'id'>"
1046
- }
1047
- }
1048
- ]
1049
- },
1050
- {
1051
- "kind": "method",
1052
- "name": "delete",
1053
- "privacy": "public",
1054
- "return": {
1055
- "type": {
1056
- "text": "Promise<DatabaseAccessResult.Delete>"
1057
- }
1058
- },
1059
- "parameters": [
1060
- {
1061
- "name": "id",
1062
- "type": {
1063
- "text": "string"
1064
- }
1065
- }
1066
- ]
1067
- },
1068
- {
1069
- "kind": "method",
1070
- "name": "visit",
1071
- "privacy": "public",
1072
- "return": {
1073
- "type": {
1074
- "text": "Promise<void>"
1075
- }
1076
- },
1077
- "parameters": [
1078
- {
1079
- "name": "visitor",
1080
- "type": {
1081
- "text": "(record: T) => void"
1082
- }
1083
- }
1084
- ]
1085
- },
1086
- {
1087
- "kind": "method",
1088
- "name": "onBeforeUpdate",
1089
- "privacy": "public",
1090
- "return": {
1091
- "type": {
1092
- "text": "() => void"
1093
- }
1094
- },
1095
- "parameters": [
1096
- {
1097
- "name": "listener",
1098
- "type": {
1099
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1100
- }
1101
- }
1102
- ]
1103
- },
1104
- {
1105
- "kind": "method",
1106
- "name": "onAfterUpdate",
1107
- "privacy": "public",
1108
- "return": {
1109
- "type": {
1110
- "text": "() => void"
1111
- }
1112
- },
1113
- "parameters": [
1114
- {
1115
- "name": "listener",
1116
- "type": {
1117
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1118
- }
1119
- }
1120
- ]
1121
- }
1122
- ]
1123
- }
1124
- ],
1125
- "exports": [
1126
- {
1127
- "kind": "js",
1128
- "name": "InMemoryDatabase",
1129
- "declaration": {
1130
- "name": "InMemoryDatabase",
1131
- "module": "src/data/inMemoryDatabase.ts"
1132
- }
1133
- }
1134
- ]
1135
- },
1136
- {
1137
- "kind": "javascript-module",
1138
- "path": "src/data/index.ts",
1139
- "declarations": [],
1140
- "exports": [
1141
- {
1142
- "kind": "js",
1143
- "name": "*",
1144
- "declaration": {
1145
- "name": "*",
1146
- "package": "./inMemoryDatabase"
1147
- }
1148
- }
1149
- ]
1150
- },
1151
1151
  {
1152
1152
  "kind": "javascript-module",
1153
1153
  "path": "src/formatters/datetime.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.252.1-alpha-ea46342.0",
4
+ "version": "14.252.1-alpha-37ebbf6.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.252.1-alpha-ea46342.0",
31
- "@genesislcap/genx": "14.252.1-alpha-ea46342.0",
32
- "@genesislcap/rollup-builder": "14.252.1-alpha-ea46342.0",
33
- "@genesislcap/ts-builder": "14.252.1-alpha-ea46342.0",
34
- "@genesislcap/uvu-playwright-builder": "14.252.1-alpha-ea46342.0",
35
- "@genesislcap/vite-builder": "14.252.1-alpha-ea46342.0",
36
- "@genesislcap/webpack-builder": "14.252.1-alpha-ea46342.0",
30
+ "@genesislcap/foundation-testing": "14.252.1-alpha-37ebbf6.0",
31
+ "@genesislcap/genx": "14.252.1-alpha-37ebbf6.0",
32
+ "@genesislcap/rollup-builder": "14.252.1-alpha-37ebbf6.0",
33
+ "@genesislcap/ts-builder": "14.252.1-alpha-37ebbf6.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.252.1-alpha-37ebbf6.0",
35
+ "@genesislcap/vite-builder": "14.252.1-alpha-37ebbf6.0",
36
+ "@genesislcap/webpack-builder": "14.252.1-alpha-37ebbf6.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.252.1-alpha-ea46342.0",
40
+ "@genesislcap/foundation-logger": "14.252.1-alpha-37ebbf6.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": "485b2409a4e213714ababadb49b8b87d3052c6cf"
58
+ "gitHead": "d961f6e647e22edea45ba96f12577436eb4bd016"
59
59
  }