@genesislcap/foundation-utils 14.427.1 → 14.427.2-alpha-e0ffaad.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 +276 -276
  2. package/package.json +11 -11
@@ -209,6 +209,204 @@
209
209
  }
210
210
  ]
211
211
  },
212
+ {
213
+ "kind": "javascript-module",
214
+ "path": "src/data/inMemoryDatabase.ts",
215
+ "declarations": [
216
+ {
217
+ "kind": "class",
218
+ "description": "An in memory database of specific DatabaseRecord types.",
219
+ "name": "InMemoryDatabase",
220
+ "members": [
221
+ {
222
+ "kind": "field",
223
+ "name": "isWorking",
224
+ "type": {
225
+ "text": "boolean"
226
+ },
227
+ "privacy": "public",
228
+ "default": "false"
229
+ },
230
+ {
231
+ "kind": "field",
232
+ "name": "records",
233
+ "type": {
234
+ "text": "Record<string, T>"
235
+ },
236
+ "privacy": "private",
237
+ "default": "{}"
238
+ },
239
+ {
240
+ "kind": "field",
241
+ "name": "beforeUpdateListeners",
242
+ "privacy": "private"
243
+ },
244
+ {
245
+ "kind": "field",
246
+ "name": "afterUpdateListeners",
247
+ "privacy": "private"
248
+ },
249
+ {
250
+ "kind": "method",
251
+ "name": "create",
252
+ "privacy": "public",
253
+ "return": {
254
+ "type": {
255
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
256
+ }
257
+ },
258
+ "parameters": [
259
+ {
260
+ "name": "newValue",
261
+ "type": {
262
+ "text": "Omit<T, 'id'>"
263
+ }
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "kind": "method",
269
+ "name": "read",
270
+ "privacy": "public",
271
+ "return": {
272
+ "type": {
273
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
274
+ }
275
+ },
276
+ "parameters": [
277
+ {
278
+ "name": "id",
279
+ "type": {
280
+ "text": "string"
281
+ }
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "kind": "method",
287
+ "name": "update",
288
+ "privacy": "public",
289
+ "return": {
290
+ "type": {
291
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
292
+ }
293
+ },
294
+ "parameters": [
295
+ {
296
+ "name": "id",
297
+ "type": {
298
+ "text": "string"
299
+ }
300
+ },
301
+ {
302
+ "name": "newValue",
303
+ "type": {
304
+ "text": "Omit<Partial<T>, 'id'>"
305
+ }
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "kind": "method",
311
+ "name": "delete",
312
+ "privacy": "public",
313
+ "return": {
314
+ "type": {
315
+ "text": "Promise<DatabaseAccessResult.Delete>"
316
+ }
317
+ },
318
+ "parameters": [
319
+ {
320
+ "name": "id",
321
+ "type": {
322
+ "text": "string"
323
+ }
324
+ }
325
+ ]
326
+ },
327
+ {
328
+ "kind": "method",
329
+ "name": "visit",
330
+ "privacy": "public",
331
+ "return": {
332
+ "type": {
333
+ "text": "Promise<void>"
334
+ }
335
+ },
336
+ "parameters": [
337
+ {
338
+ "name": "visitor",
339
+ "type": {
340
+ "text": "(record: T) => void"
341
+ }
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "kind": "method",
347
+ "name": "onBeforeUpdate",
348
+ "privacy": "public",
349
+ "return": {
350
+ "type": {
351
+ "text": "() => void"
352
+ }
353
+ },
354
+ "parameters": [
355
+ {
356
+ "name": "listener",
357
+ "type": {
358
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
359
+ }
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "kind": "method",
365
+ "name": "onAfterUpdate",
366
+ "privacy": "public",
367
+ "return": {
368
+ "type": {
369
+ "text": "() => void"
370
+ }
371
+ },
372
+ "parameters": [
373
+ {
374
+ "name": "listener",
375
+ "type": {
376
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
377
+ }
378
+ }
379
+ ]
380
+ }
381
+ ]
382
+ }
383
+ ],
384
+ "exports": [
385
+ {
386
+ "kind": "js",
387
+ "name": "InMemoryDatabase",
388
+ "declaration": {
389
+ "name": "InMemoryDatabase",
390
+ "module": "src/data/inMemoryDatabase.ts"
391
+ }
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "kind": "javascript-module",
397
+ "path": "src/data/index.ts",
398
+ "declarations": [],
399
+ "exports": [
400
+ {
401
+ "kind": "js",
402
+ "name": "*",
403
+ "declaration": {
404
+ "name": "*",
405
+ "package": "./inMemoryDatabase"
406
+ }
407
+ }
408
+ ]
409
+ },
212
410
  {
213
411
  "kind": "javascript-module",
214
412
  "path": "src/converters/index.ts",
@@ -250,29 +448,6 @@
250
448
  }
251
449
  ]
252
450
  },
253
- {
254
- "kind": "javascript-module",
255
- "path": "src/directives/index.ts",
256
- "declarations": [],
257
- "exports": [
258
- {
259
- "kind": "js",
260
- "name": "*",
261
- "declaration": {
262
- "name": "*",
263
- "package": "./sync"
264
- }
265
- },
266
- {
267
- "kind": "js",
268
- "name": "*",
269
- "declaration": {
270
- "name": "*",
271
- "package": "./when-else"
272
- }
273
- }
274
- ]
275
- },
276
451
  {
277
452
  "kind": "javascript-module",
278
453
  "path": "src/design-system/design-system.ts",
@@ -469,8 +644,84 @@
469
644
  "kind": "js",
470
645
  "name": "*",
471
646
  "declaration": {
472
- "name": "*",
473
- "package": "./editable-elements"
647
+ "name": "*",
648
+ "package": "./editable-elements"
649
+ }
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "kind": "javascript-module",
655
+ "path": "src/directives/index.ts",
656
+ "declarations": [],
657
+ "exports": [
658
+ {
659
+ "kind": "js",
660
+ "name": "*",
661
+ "declaration": {
662
+ "name": "*",
663
+ "package": "./sync"
664
+ }
665
+ },
666
+ {
667
+ "kind": "js",
668
+ "name": "*",
669
+ "declaration": {
670
+ "name": "*",
671
+ "package": "./when-else"
672
+ }
673
+ }
674
+ ]
675
+ },
676
+ {
677
+ "kind": "javascript-module",
678
+ "path": "src/decorators/index.ts",
679
+ "declarations": [],
680
+ "exports": [
681
+ {
682
+ "kind": "js",
683
+ "name": "*",
684
+ "declaration": {
685
+ "name": "*",
686
+ "package": "./renderOnChange"
687
+ }
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "kind": "javascript-module",
693
+ "path": "src/decorators/renderOnChange.ts",
694
+ "declarations": [
695
+ {
696
+ "kind": "function",
697
+ "name": "renderOnChange",
698
+ "parameters": [
699
+ {
700
+ "name": "target",
701
+ "type": {
702
+ "text": "FASTElement & { render(): void }"
703
+ },
704
+ "description": "The target to define the property change handler on."
705
+ },
706
+ {
707
+ "name": "name",
708
+ "type": {
709
+ "text": "string"
710
+ },
711
+ "description": "The property name."
712
+ }
713
+ ],
714
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
715
+ "privacy": "public"
716
+ }
717
+ ],
718
+ "exports": [
719
+ {
720
+ "kind": "js",
721
+ "name": "renderOnChange",
722
+ "declaration": {
723
+ "name": "renderOnChange",
724
+ "module": "src/decorators/renderOnChange.ts"
474
725
  }
475
726
  }
476
727
  ]
@@ -965,257 +1216,6 @@
965
1216
  }
966
1217
  ]
967
1218
  },
968
- {
969
- "kind": "javascript-module",
970
- "path": "src/data/inMemoryDatabase.ts",
971
- "declarations": [
972
- {
973
- "kind": "class",
974
- "description": "An in memory database of specific DatabaseRecord types.",
975
- "name": "InMemoryDatabase",
976
- "members": [
977
- {
978
- "kind": "field",
979
- "name": "isWorking",
980
- "type": {
981
- "text": "boolean"
982
- },
983
- "privacy": "public",
984
- "default": "false"
985
- },
986
- {
987
- "kind": "field",
988
- "name": "records",
989
- "type": {
990
- "text": "Record<string, T>"
991
- },
992
- "privacy": "private",
993
- "default": "{}"
994
- },
995
- {
996
- "kind": "field",
997
- "name": "beforeUpdateListeners",
998
- "privacy": "private"
999
- },
1000
- {
1001
- "kind": "field",
1002
- "name": "afterUpdateListeners",
1003
- "privacy": "private"
1004
- },
1005
- {
1006
- "kind": "method",
1007
- "name": "create",
1008
- "privacy": "public",
1009
- "return": {
1010
- "type": {
1011
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1012
- }
1013
- },
1014
- "parameters": [
1015
- {
1016
- "name": "newValue",
1017
- "type": {
1018
- "text": "Omit<T, 'id'>"
1019
- }
1020
- }
1021
- ]
1022
- },
1023
- {
1024
- "kind": "method",
1025
- "name": "read",
1026
- "privacy": "public",
1027
- "return": {
1028
- "type": {
1029
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1030
- }
1031
- },
1032
- "parameters": [
1033
- {
1034
- "name": "id",
1035
- "type": {
1036
- "text": "string"
1037
- }
1038
- }
1039
- ]
1040
- },
1041
- {
1042
- "kind": "method",
1043
- "name": "update",
1044
- "privacy": "public",
1045
- "return": {
1046
- "type": {
1047
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1048
- }
1049
- },
1050
- "parameters": [
1051
- {
1052
- "name": "id",
1053
- "type": {
1054
- "text": "string"
1055
- }
1056
- },
1057
- {
1058
- "name": "newValue",
1059
- "type": {
1060
- "text": "Omit<Partial<T>, 'id'>"
1061
- }
1062
- }
1063
- ]
1064
- },
1065
- {
1066
- "kind": "method",
1067
- "name": "delete",
1068
- "privacy": "public",
1069
- "return": {
1070
- "type": {
1071
- "text": "Promise<DatabaseAccessResult.Delete>"
1072
- }
1073
- },
1074
- "parameters": [
1075
- {
1076
- "name": "id",
1077
- "type": {
1078
- "text": "string"
1079
- }
1080
- }
1081
- ]
1082
- },
1083
- {
1084
- "kind": "method",
1085
- "name": "visit",
1086
- "privacy": "public",
1087
- "return": {
1088
- "type": {
1089
- "text": "Promise<void>"
1090
- }
1091
- },
1092
- "parameters": [
1093
- {
1094
- "name": "visitor",
1095
- "type": {
1096
- "text": "(record: T) => void"
1097
- }
1098
- }
1099
- ]
1100
- },
1101
- {
1102
- "kind": "method",
1103
- "name": "onBeforeUpdate",
1104
- "privacy": "public",
1105
- "return": {
1106
- "type": {
1107
- "text": "() => void"
1108
- }
1109
- },
1110
- "parameters": [
1111
- {
1112
- "name": "listener",
1113
- "type": {
1114
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1115
- }
1116
- }
1117
- ]
1118
- },
1119
- {
1120
- "kind": "method",
1121
- "name": "onAfterUpdate",
1122
- "privacy": "public",
1123
- "return": {
1124
- "type": {
1125
- "text": "() => void"
1126
- }
1127
- },
1128
- "parameters": [
1129
- {
1130
- "name": "listener",
1131
- "type": {
1132
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1133
- }
1134
- }
1135
- ]
1136
- }
1137
- ]
1138
- }
1139
- ],
1140
- "exports": [
1141
- {
1142
- "kind": "js",
1143
- "name": "InMemoryDatabase",
1144
- "declaration": {
1145
- "name": "InMemoryDatabase",
1146
- "module": "src/data/inMemoryDatabase.ts"
1147
- }
1148
- }
1149
- ]
1150
- },
1151
- {
1152
- "kind": "javascript-module",
1153
- "path": "src/data/index.ts",
1154
- "declarations": [],
1155
- "exports": [
1156
- {
1157
- "kind": "js",
1158
- "name": "*",
1159
- "declaration": {
1160
- "name": "*",
1161
- "package": "./inMemoryDatabase"
1162
- }
1163
- }
1164
- ]
1165
- },
1166
- {
1167
- "kind": "javascript-module",
1168
- "path": "src/decorators/index.ts",
1169
- "declarations": [],
1170
- "exports": [
1171
- {
1172
- "kind": "js",
1173
- "name": "*",
1174
- "declaration": {
1175
- "name": "*",
1176
- "package": "./renderOnChange"
1177
- }
1178
- }
1179
- ]
1180
- },
1181
- {
1182
- "kind": "javascript-module",
1183
- "path": "src/decorators/renderOnChange.ts",
1184
- "declarations": [
1185
- {
1186
- "kind": "function",
1187
- "name": "renderOnChange",
1188
- "parameters": [
1189
- {
1190
- "name": "target",
1191
- "type": {
1192
- "text": "FASTElement & { render(): void }"
1193
- },
1194
- "description": "The target to define the property change handler on."
1195
- },
1196
- {
1197
- "name": "name",
1198
- "type": {
1199
- "text": "string"
1200
- },
1201
- "description": "The property name."
1202
- }
1203
- ],
1204
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1205
- "privacy": "public"
1206
- }
1207
- ],
1208
- "exports": [
1209
- {
1210
- "kind": "js",
1211
- "name": "renderOnChange",
1212
- "declaration": {
1213
- "name": "renderOnChange",
1214
- "module": "src/decorators/renderOnChange.ts"
1215
- }
1216
- }
1217
- ]
1218
- },
1219
1219
  {
1220
1220
  "kind": "javascript-module",
1221
1221
  "path": "src/error/errorMap.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.427.1",
4
+ "version": "14.427.2-alpha-e0ffaad.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.427.1",
33
- "@genesislcap/genx": "14.427.1",
34
- "@genesislcap/rollup-builder": "14.427.1",
35
- "@genesislcap/ts-builder": "14.427.1",
36
- "@genesislcap/uvu-playwright-builder": "14.427.1",
37
- "@genesislcap/vite-builder": "14.427.1",
38
- "@genesislcap/webpack-builder": "14.427.1",
32
+ "@genesislcap/foundation-testing": "14.427.2-alpha-e0ffaad.0",
33
+ "@genesislcap/genx": "14.427.2-alpha-e0ffaad.0",
34
+ "@genesislcap/rollup-builder": "14.427.2-alpha-e0ffaad.0",
35
+ "@genesislcap/ts-builder": "14.427.2-alpha-e0ffaad.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.427.2-alpha-e0ffaad.0",
37
+ "@genesislcap/vite-builder": "14.427.2-alpha-e0ffaad.0",
38
+ "@genesislcap/webpack-builder": "14.427.2-alpha-e0ffaad.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.427.1",
43
- "@genesislcap/foundation-logger": "14.427.1",
42
+ "@genesislcap/expression-builder": "14.427.2-alpha-e0ffaad.0",
43
+ "@genesislcap/foundation-logger": "14.427.2-alpha-e0ffaad.0",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "9f153865e43ebc40b6d8ce2c8725ad64dee9e8da"
61
+ "gitHead": "189e38590abb21df6ac6c641d58b758f5eba8eca"
62
62
  }