@genesislcap/foundation-utils 14.430.2-alpha-d7b354f.0 → 14.431.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 +229 -229
  2. package/package.json +11 -11
@@ -252,53 +252,198 @@
252
252
  },
253
253
  {
254
254
  "kind": "javascript-module",
255
- "path": "src/decorators/index.ts",
256
- "declarations": [],
257
- "exports": [
258
- {
259
- "kind": "js",
260
- "name": "*",
261
- "declaration": {
262
- "name": "*",
263
- "package": "./renderOnChange"
264
- }
265
- }
266
- ]
267
- },
268
- {
269
- "kind": "javascript-module",
270
- "path": "src/decorators/renderOnChange.ts",
255
+ "path": "src/data/inMemoryDatabase.ts",
271
256
  "declarations": [
272
257
  {
273
- "kind": "function",
274
- "name": "renderOnChange",
275
- "parameters": [
258
+ "kind": "class",
259
+ "description": "An in memory database of specific DatabaseRecord types.",
260
+ "name": "InMemoryDatabase",
261
+ "members": [
276
262
  {
277
- "name": "target",
263
+ "kind": "field",
264
+ "name": "isWorking",
278
265
  "type": {
279
- "text": "FASTElement & { render(): void }"
266
+ "text": "boolean"
280
267
  },
281
- "description": "The target to define the property change handler on."
268
+ "privacy": "public",
269
+ "default": "false"
282
270
  },
283
271
  {
284
- "name": "name",
272
+ "kind": "field",
273
+ "name": "records",
285
274
  "type": {
286
- "text": "string"
275
+ "text": "Record<string, T>"
287
276
  },
288
- "description": "The property name."
277
+ "privacy": "private",
278
+ "default": "{}"
279
+ },
280
+ {
281
+ "kind": "field",
282
+ "name": "beforeUpdateListeners",
283
+ "privacy": "private"
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "afterUpdateListeners",
288
+ "privacy": "private"
289
+ },
290
+ {
291
+ "kind": "method",
292
+ "name": "create",
293
+ "privacy": "public",
294
+ "return": {
295
+ "type": {
296
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
297
+ }
298
+ },
299
+ "parameters": [
300
+ {
301
+ "name": "newValue",
302
+ "type": {
303
+ "text": "Omit<T, 'id'>"
304
+ }
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "kind": "method",
310
+ "name": "read",
311
+ "privacy": "public",
312
+ "return": {
313
+ "type": {
314
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
315
+ }
316
+ },
317
+ "parameters": [
318
+ {
319
+ "name": "id",
320
+ "type": {
321
+ "text": "string"
322
+ }
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "kind": "method",
328
+ "name": "update",
329
+ "privacy": "public",
330
+ "return": {
331
+ "type": {
332
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
333
+ }
334
+ },
335
+ "parameters": [
336
+ {
337
+ "name": "id",
338
+ "type": {
339
+ "text": "string"
340
+ }
341
+ },
342
+ {
343
+ "name": "newValue",
344
+ "type": {
345
+ "text": "Omit<Partial<T>, 'id'>"
346
+ }
347
+ }
348
+ ]
349
+ },
350
+ {
351
+ "kind": "method",
352
+ "name": "delete",
353
+ "privacy": "public",
354
+ "return": {
355
+ "type": {
356
+ "text": "Promise<DatabaseAccessResult.Delete>"
357
+ }
358
+ },
359
+ "parameters": [
360
+ {
361
+ "name": "id",
362
+ "type": {
363
+ "text": "string"
364
+ }
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "kind": "method",
370
+ "name": "visit",
371
+ "privacy": "public",
372
+ "return": {
373
+ "type": {
374
+ "text": "Promise<void>"
375
+ }
376
+ },
377
+ "parameters": [
378
+ {
379
+ "name": "visitor",
380
+ "type": {
381
+ "text": "(record: T) => void"
382
+ }
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "kind": "method",
388
+ "name": "onBeforeUpdate",
389
+ "privacy": "public",
390
+ "return": {
391
+ "type": {
392
+ "text": "() => void"
393
+ }
394
+ },
395
+ "parameters": [
396
+ {
397
+ "name": "listener",
398
+ "type": {
399
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
+ }
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "kind": "method",
406
+ "name": "onAfterUpdate",
407
+ "privacy": "public",
408
+ "return": {
409
+ "type": {
410
+ "text": "() => void"
411
+ }
412
+ },
413
+ "parameters": [
414
+ {
415
+ "name": "listener",
416
+ "type": {
417
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
+ }
419
+ }
420
+ ]
289
421
  }
290
- ],
291
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
292
- "privacy": "public"
422
+ ]
293
423
  }
294
424
  ],
295
425
  "exports": [
296
426
  {
297
427
  "kind": "js",
298
- "name": "renderOnChange",
428
+ "name": "InMemoryDatabase",
299
429
  "declaration": {
300
- "name": "renderOnChange",
301
- "module": "src/decorators/renderOnChange.ts"
430
+ "name": "InMemoryDatabase",
431
+ "module": "src/data/inMemoryDatabase.ts"
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "kind": "javascript-module",
438
+ "path": "src/data/index.ts",
439
+ "declarations": [],
440
+ "exports": [
441
+ {
442
+ "kind": "js",
443
+ "name": "*",
444
+ "declaration": {
445
+ "name": "*",
446
+ "package": "./inMemoryDatabase"
302
447
  }
303
448
  }
304
449
  ]
@@ -505,204 +650,6 @@
505
650
  }
506
651
  ]
507
652
  },
508
- {
509
- "kind": "javascript-module",
510
- "path": "src/data/inMemoryDatabase.ts",
511
- "declarations": [
512
- {
513
- "kind": "class",
514
- "description": "An in memory database of specific DatabaseRecord types.",
515
- "name": "InMemoryDatabase",
516
- "members": [
517
- {
518
- "kind": "field",
519
- "name": "isWorking",
520
- "type": {
521
- "text": "boolean"
522
- },
523
- "privacy": "public",
524
- "default": "false"
525
- },
526
- {
527
- "kind": "field",
528
- "name": "records",
529
- "type": {
530
- "text": "Record<string, T>"
531
- },
532
- "privacy": "private",
533
- "default": "{}"
534
- },
535
- {
536
- "kind": "field",
537
- "name": "beforeUpdateListeners",
538
- "privacy": "private"
539
- },
540
- {
541
- "kind": "field",
542
- "name": "afterUpdateListeners",
543
- "privacy": "private"
544
- },
545
- {
546
- "kind": "method",
547
- "name": "create",
548
- "privacy": "public",
549
- "return": {
550
- "type": {
551
- "text": "Promise<DatabaseAccessResult.Create<T>>"
552
- }
553
- },
554
- "parameters": [
555
- {
556
- "name": "newValue",
557
- "type": {
558
- "text": "Omit<T, 'id'>"
559
- }
560
- }
561
- ]
562
- },
563
- {
564
- "kind": "method",
565
- "name": "read",
566
- "privacy": "public",
567
- "return": {
568
- "type": {
569
- "text": "Promise<DatabaseAccessResult.Read<T>>"
570
- }
571
- },
572
- "parameters": [
573
- {
574
- "name": "id",
575
- "type": {
576
- "text": "string"
577
- }
578
- }
579
- ]
580
- },
581
- {
582
- "kind": "method",
583
- "name": "update",
584
- "privacy": "public",
585
- "return": {
586
- "type": {
587
- "text": "Promise<DatabaseAccessResult.Update<T>>"
588
- }
589
- },
590
- "parameters": [
591
- {
592
- "name": "id",
593
- "type": {
594
- "text": "string"
595
- }
596
- },
597
- {
598
- "name": "newValue",
599
- "type": {
600
- "text": "Omit<Partial<T>, 'id'>"
601
- }
602
- }
603
- ]
604
- },
605
- {
606
- "kind": "method",
607
- "name": "delete",
608
- "privacy": "public",
609
- "return": {
610
- "type": {
611
- "text": "Promise<DatabaseAccessResult.Delete>"
612
- }
613
- },
614
- "parameters": [
615
- {
616
- "name": "id",
617
- "type": {
618
- "text": "string"
619
- }
620
- }
621
- ]
622
- },
623
- {
624
- "kind": "method",
625
- "name": "visit",
626
- "privacy": "public",
627
- "return": {
628
- "type": {
629
- "text": "Promise<void>"
630
- }
631
- },
632
- "parameters": [
633
- {
634
- "name": "visitor",
635
- "type": {
636
- "text": "(record: T) => void"
637
- }
638
- }
639
- ]
640
- },
641
- {
642
- "kind": "method",
643
- "name": "onBeforeUpdate",
644
- "privacy": "public",
645
- "return": {
646
- "type": {
647
- "text": "() => void"
648
- }
649
- },
650
- "parameters": [
651
- {
652
- "name": "listener",
653
- "type": {
654
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
655
- }
656
- }
657
- ]
658
- },
659
- {
660
- "kind": "method",
661
- "name": "onAfterUpdate",
662
- "privacy": "public",
663
- "return": {
664
- "type": {
665
- "text": "() => void"
666
- }
667
- },
668
- "parameters": [
669
- {
670
- "name": "listener",
671
- "type": {
672
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
673
- }
674
- }
675
- ]
676
- }
677
- ]
678
- }
679
- ],
680
- "exports": [
681
- {
682
- "kind": "js",
683
- "name": "InMemoryDatabase",
684
- "declaration": {
685
- "name": "InMemoryDatabase",
686
- "module": "src/data/inMemoryDatabase.ts"
687
- }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "javascript-module",
693
- "path": "src/data/index.ts",
694
- "declarations": [],
695
- "exports": [
696
- {
697
- "kind": "js",
698
- "name": "*",
699
- "declaration": {
700
- "name": "*",
701
- "package": "./inMemoryDatabase"
702
- }
703
- }
704
- ]
705
- },
706
653
  {
707
654
  "kind": "javascript-module",
708
655
  "path": "src/directives/index.ts",
@@ -1216,6 +1163,59 @@
1216
1163
  }
1217
1164
  ]
1218
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.430.2-alpha-d7b354f.0",
4
+ "version": "14.431.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.430.2-alpha-d7b354f.0",
33
- "@genesislcap/genx": "14.430.2-alpha-d7b354f.0",
34
- "@genesislcap/rollup-builder": "14.430.2-alpha-d7b354f.0",
35
- "@genesislcap/ts-builder": "14.430.2-alpha-d7b354f.0",
36
- "@genesislcap/uvu-playwright-builder": "14.430.2-alpha-d7b354f.0",
37
- "@genesislcap/vite-builder": "14.430.2-alpha-d7b354f.0",
38
- "@genesislcap/webpack-builder": "14.430.2-alpha-d7b354f.0",
32
+ "@genesislcap/foundation-testing": "14.431.0",
33
+ "@genesislcap/genx": "14.431.0",
34
+ "@genesislcap/rollup-builder": "14.431.0",
35
+ "@genesislcap/ts-builder": "14.431.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.431.0",
37
+ "@genesislcap/vite-builder": "14.431.0",
38
+ "@genesislcap/webpack-builder": "14.431.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.430.2-alpha-d7b354f.0",
43
- "@genesislcap/foundation-logger": "14.430.2-alpha-d7b354f.0",
42
+ "@genesislcap/expression-builder": "14.431.0",
43
+ "@genesislcap/foundation-logger": "14.431.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": "9d31b69209fe04ed88ada10358b330780eb4cc66"
61
+ "gitHead": "4e523b6a77df321a9c70fcdf7c12a4ffcb98769a"
62
62
  }