@genesislcap/foundation-utils 14.336.3-alpha-54b30b8.0 → 14.336.3-alpha-b3d768d.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 +251 -251
  2. package/package.json +11 -11
@@ -185,6 +185,204 @@
185
185
  }
186
186
  ]
187
187
  },
188
+ {
189
+ "kind": "javascript-module",
190
+ "path": "src/data/inMemoryDatabase.ts",
191
+ "declarations": [
192
+ {
193
+ "kind": "class",
194
+ "description": "An in memory database of specific DatabaseRecord types.",
195
+ "name": "InMemoryDatabase",
196
+ "members": [
197
+ {
198
+ "kind": "field",
199
+ "name": "isWorking",
200
+ "type": {
201
+ "text": "boolean"
202
+ },
203
+ "privacy": "public",
204
+ "default": "false"
205
+ },
206
+ {
207
+ "kind": "field",
208
+ "name": "records",
209
+ "type": {
210
+ "text": "Record<string, T>"
211
+ },
212
+ "privacy": "private",
213
+ "default": "{}"
214
+ },
215
+ {
216
+ "kind": "field",
217
+ "name": "beforeUpdateListeners",
218
+ "privacy": "private"
219
+ },
220
+ {
221
+ "kind": "field",
222
+ "name": "afterUpdateListeners",
223
+ "privacy": "private"
224
+ },
225
+ {
226
+ "kind": "method",
227
+ "name": "create",
228
+ "privacy": "public",
229
+ "return": {
230
+ "type": {
231
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
232
+ }
233
+ },
234
+ "parameters": [
235
+ {
236
+ "name": "newValue",
237
+ "type": {
238
+ "text": "Omit<T, 'id'>"
239
+ }
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "kind": "method",
245
+ "name": "read",
246
+ "privacy": "public",
247
+ "return": {
248
+ "type": {
249
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
250
+ }
251
+ },
252
+ "parameters": [
253
+ {
254
+ "name": "id",
255
+ "type": {
256
+ "text": "string"
257
+ }
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "kind": "method",
263
+ "name": "update",
264
+ "privacy": "public",
265
+ "return": {
266
+ "type": {
267
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
268
+ }
269
+ },
270
+ "parameters": [
271
+ {
272
+ "name": "id",
273
+ "type": {
274
+ "text": "string"
275
+ }
276
+ },
277
+ {
278
+ "name": "newValue",
279
+ "type": {
280
+ "text": "Omit<Partial<T>, 'id'>"
281
+ }
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "kind": "method",
287
+ "name": "delete",
288
+ "privacy": "public",
289
+ "return": {
290
+ "type": {
291
+ "text": "Promise<DatabaseAccessResult.Delete>"
292
+ }
293
+ },
294
+ "parameters": [
295
+ {
296
+ "name": "id",
297
+ "type": {
298
+ "text": "string"
299
+ }
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "kind": "method",
305
+ "name": "visit",
306
+ "privacy": "public",
307
+ "return": {
308
+ "type": {
309
+ "text": "Promise<void>"
310
+ }
311
+ },
312
+ "parameters": [
313
+ {
314
+ "name": "visitor",
315
+ "type": {
316
+ "text": "(record: T) => void"
317
+ }
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "kind": "method",
323
+ "name": "onBeforeUpdate",
324
+ "privacy": "public",
325
+ "return": {
326
+ "type": {
327
+ "text": "() => void"
328
+ }
329
+ },
330
+ "parameters": [
331
+ {
332
+ "name": "listener",
333
+ "type": {
334
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
335
+ }
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "kind": "method",
341
+ "name": "onAfterUpdate",
342
+ "privacy": "public",
343
+ "return": {
344
+ "type": {
345
+ "text": "() => void"
346
+ }
347
+ },
348
+ "parameters": [
349
+ {
350
+ "name": "listener",
351
+ "type": {
352
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
353
+ }
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ }
359
+ ],
360
+ "exports": [
361
+ {
362
+ "kind": "js",
363
+ "name": "InMemoryDatabase",
364
+ "declaration": {
365
+ "name": "InMemoryDatabase",
366
+ "module": "src/data/inMemoryDatabase.ts"
367
+ }
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "kind": "javascript-module",
373
+ "path": "src/data/index.ts",
374
+ "declarations": [],
375
+ "exports": [
376
+ {
377
+ "kind": "js",
378
+ "name": "*",
379
+ "declaration": {
380
+ "name": "*",
381
+ "package": "./inMemoryDatabase"
382
+ }
383
+ }
384
+ ]
385
+ },
188
386
  {
189
387
  "kind": "javascript-module",
190
388
  "path": "src/directives/index.ts",
@@ -897,257 +1095,6 @@
897
1095
  }
898
1096
  ]
899
1097
  },
900
- {
901
- "kind": "javascript-module",
902
- "path": "src/data/inMemoryDatabase.ts",
903
- "declarations": [
904
- {
905
- "kind": "class",
906
- "description": "An in memory database of specific DatabaseRecord types.",
907
- "name": "InMemoryDatabase",
908
- "members": [
909
- {
910
- "kind": "field",
911
- "name": "isWorking",
912
- "type": {
913
- "text": "boolean"
914
- },
915
- "privacy": "public",
916
- "default": "false"
917
- },
918
- {
919
- "kind": "field",
920
- "name": "records",
921
- "type": {
922
- "text": "Record<string, T>"
923
- },
924
- "privacy": "private",
925
- "default": "{}"
926
- },
927
- {
928
- "kind": "field",
929
- "name": "beforeUpdateListeners",
930
- "privacy": "private"
931
- },
932
- {
933
- "kind": "field",
934
- "name": "afterUpdateListeners",
935
- "privacy": "private"
936
- },
937
- {
938
- "kind": "method",
939
- "name": "create",
940
- "privacy": "public",
941
- "return": {
942
- "type": {
943
- "text": "Promise<DatabaseAccessResult.Create<T>>"
944
- }
945
- },
946
- "parameters": [
947
- {
948
- "name": "newValue",
949
- "type": {
950
- "text": "Omit<T, 'id'>"
951
- }
952
- }
953
- ]
954
- },
955
- {
956
- "kind": "method",
957
- "name": "read",
958
- "privacy": "public",
959
- "return": {
960
- "type": {
961
- "text": "Promise<DatabaseAccessResult.Read<T>>"
962
- }
963
- },
964
- "parameters": [
965
- {
966
- "name": "id",
967
- "type": {
968
- "text": "string"
969
- }
970
- }
971
- ]
972
- },
973
- {
974
- "kind": "method",
975
- "name": "update",
976
- "privacy": "public",
977
- "return": {
978
- "type": {
979
- "text": "Promise<DatabaseAccessResult.Update<T>>"
980
- }
981
- },
982
- "parameters": [
983
- {
984
- "name": "id",
985
- "type": {
986
- "text": "string"
987
- }
988
- },
989
- {
990
- "name": "newValue",
991
- "type": {
992
- "text": "Omit<Partial<T>, 'id'>"
993
- }
994
- }
995
- ]
996
- },
997
- {
998
- "kind": "method",
999
- "name": "delete",
1000
- "privacy": "public",
1001
- "return": {
1002
- "type": {
1003
- "text": "Promise<DatabaseAccessResult.Delete>"
1004
- }
1005
- },
1006
- "parameters": [
1007
- {
1008
- "name": "id",
1009
- "type": {
1010
- "text": "string"
1011
- }
1012
- }
1013
- ]
1014
- },
1015
- {
1016
- "kind": "method",
1017
- "name": "visit",
1018
- "privacy": "public",
1019
- "return": {
1020
- "type": {
1021
- "text": "Promise<void>"
1022
- }
1023
- },
1024
- "parameters": [
1025
- {
1026
- "name": "visitor",
1027
- "type": {
1028
- "text": "(record: T) => void"
1029
- }
1030
- }
1031
- ]
1032
- },
1033
- {
1034
- "kind": "method",
1035
- "name": "onBeforeUpdate",
1036
- "privacy": "public",
1037
- "return": {
1038
- "type": {
1039
- "text": "() => void"
1040
- }
1041
- },
1042
- "parameters": [
1043
- {
1044
- "name": "listener",
1045
- "type": {
1046
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1047
- }
1048
- }
1049
- ]
1050
- },
1051
- {
1052
- "kind": "method",
1053
- "name": "onAfterUpdate",
1054
- "privacy": "public",
1055
- "return": {
1056
- "type": {
1057
- "text": "() => void"
1058
- }
1059
- },
1060
- "parameters": [
1061
- {
1062
- "name": "listener",
1063
- "type": {
1064
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1065
- }
1066
- }
1067
- ]
1068
- }
1069
- ]
1070
- }
1071
- ],
1072
- "exports": [
1073
- {
1074
- "kind": "js",
1075
- "name": "InMemoryDatabase",
1076
- "declaration": {
1077
- "name": "InMemoryDatabase",
1078
- "module": "src/data/inMemoryDatabase.ts"
1079
- }
1080
- }
1081
- ]
1082
- },
1083
- {
1084
- "kind": "javascript-module",
1085
- "path": "src/data/index.ts",
1086
- "declarations": [],
1087
- "exports": [
1088
- {
1089
- "kind": "js",
1090
- "name": "*",
1091
- "declaration": {
1092
- "name": "*",
1093
- "package": "./inMemoryDatabase"
1094
- }
1095
- }
1096
- ]
1097
- },
1098
- {
1099
- "kind": "javascript-module",
1100
- "path": "src/decorators/index.ts",
1101
- "declarations": [],
1102
- "exports": [
1103
- {
1104
- "kind": "js",
1105
- "name": "*",
1106
- "declaration": {
1107
- "name": "*",
1108
- "package": "./renderOnChange"
1109
- }
1110
- }
1111
- ]
1112
- },
1113
- {
1114
- "kind": "javascript-module",
1115
- "path": "src/decorators/renderOnChange.ts",
1116
- "declarations": [
1117
- {
1118
- "kind": "function",
1119
- "name": "renderOnChange",
1120
- "parameters": [
1121
- {
1122
- "name": "target",
1123
- "type": {
1124
- "text": "FASTElement & { render(): void }"
1125
- },
1126
- "description": "The target to define the property change handler on."
1127
- },
1128
- {
1129
- "name": "name",
1130
- "type": {
1131
- "text": "string"
1132
- },
1133
- "description": "The property name."
1134
- }
1135
- ],
1136
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1137
- "privacy": "public"
1138
- }
1139
- ],
1140
- "exports": [
1141
- {
1142
- "kind": "js",
1143
- "name": "renderOnChange",
1144
- "declaration": {
1145
- "name": "renderOnChange",
1146
- "module": "src/decorators/renderOnChange.ts"
1147
- }
1148
- }
1149
- ]
1150
- },
1151
1098
  {
1152
1099
  "kind": "javascript-module",
1153
1100
  "path": "src/design-system/design-system.ts",
@@ -1268,6 +1215,59 @@
1268
1215
  }
1269
1216
  ]
1270
1217
  },
1218
+ {
1219
+ "kind": "javascript-module",
1220
+ "path": "src/decorators/index.ts",
1221
+ "declarations": [],
1222
+ "exports": [
1223
+ {
1224
+ "kind": "js",
1225
+ "name": "*",
1226
+ "declaration": {
1227
+ "name": "*",
1228
+ "package": "./renderOnChange"
1229
+ }
1230
+ }
1231
+ ]
1232
+ },
1233
+ {
1234
+ "kind": "javascript-module",
1235
+ "path": "src/decorators/renderOnChange.ts",
1236
+ "declarations": [
1237
+ {
1238
+ "kind": "function",
1239
+ "name": "renderOnChange",
1240
+ "parameters": [
1241
+ {
1242
+ "name": "target",
1243
+ "type": {
1244
+ "text": "FASTElement & { render(): void }"
1245
+ },
1246
+ "description": "The target to define the property change handler on."
1247
+ },
1248
+ {
1249
+ "name": "name",
1250
+ "type": {
1251
+ "text": "string"
1252
+ },
1253
+ "description": "The property name."
1254
+ }
1255
+ ],
1256
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1257
+ "privacy": "public"
1258
+ }
1259
+ ],
1260
+ "exports": [
1261
+ {
1262
+ "kind": "js",
1263
+ "name": "renderOnChange",
1264
+ "declaration": {
1265
+ "name": "renderOnChange",
1266
+ "module": "src/decorators/renderOnChange.ts"
1267
+ }
1268
+ }
1269
+ ]
1270
+ },
1271
1271
  {
1272
1272
  "kind": "javascript-module",
1273
1273
  "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.336.3-alpha-54b30b8.0",
4
+ "version": "14.336.3-alpha-b3d768d.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.336.3-alpha-54b30b8.0",
31
- "@genesislcap/genx": "14.336.3-alpha-54b30b8.0",
32
- "@genesislcap/rollup-builder": "14.336.3-alpha-54b30b8.0",
33
- "@genesislcap/ts-builder": "14.336.3-alpha-54b30b8.0",
34
- "@genesislcap/uvu-playwright-builder": "14.336.3-alpha-54b30b8.0",
35
- "@genesislcap/vite-builder": "14.336.3-alpha-54b30b8.0",
36
- "@genesislcap/webpack-builder": "14.336.3-alpha-54b30b8.0",
30
+ "@genesislcap/foundation-testing": "14.336.3-alpha-b3d768d.0",
31
+ "@genesislcap/genx": "14.336.3-alpha-b3d768d.0",
32
+ "@genesislcap/rollup-builder": "14.336.3-alpha-b3d768d.0",
33
+ "@genesislcap/ts-builder": "14.336.3-alpha-b3d768d.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.336.3-alpha-b3d768d.0",
35
+ "@genesislcap/vite-builder": "14.336.3-alpha-b3d768d.0",
36
+ "@genesislcap/webpack-builder": "14.336.3-alpha-b3d768d.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.336.3-alpha-54b30b8.0",
41
- "@genesislcap/foundation-logger": "14.336.3-alpha-54b30b8.0",
40
+ "@genesislcap/expression-builder": "14.336.3-alpha-b3d768d.0",
41
+ "@genesislcap/foundation-logger": "14.336.3-alpha-b3d768d.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": "0b4bbbff5505de9aab4f490e7a3cc488ad04735f"
59
+ "gitHead": "871e13b131a5a9211f9682e71ffe9ea72ed81f59"
60
60
  }