@genesislcap/foundation-utils 15.56.0 → 15.58.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.
@@ -258,204 +258,6 @@
258
258
  }
259
259
  ]
260
260
  },
261
- {
262
- "kind": "javascript-module",
263
- "path": "src/data/inMemoryDatabase.ts",
264
- "declarations": [
265
- {
266
- "kind": "class",
267
- "description": "An in memory database of specific DatabaseRecord types.",
268
- "name": "InMemoryDatabase",
269
- "members": [
270
- {
271
- "kind": "field",
272
- "name": "isWorking",
273
- "type": {
274
- "text": "boolean"
275
- },
276
- "privacy": "public",
277
- "default": "false"
278
- },
279
- {
280
- "kind": "field",
281
- "name": "records",
282
- "type": {
283
- "text": "Record<string, T>"
284
- },
285
- "privacy": "private",
286
- "default": "{}"
287
- },
288
- {
289
- "kind": "field",
290
- "name": "beforeUpdateListeners",
291
- "privacy": "private"
292
- },
293
- {
294
- "kind": "field",
295
- "name": "afterUpdateListeners",
296
- "privacy": "private"
297
- },
298
- {
299
- "kind": "method",
300
- "name": "create",
301
- "privacy": "public",
302
- "return": {
303
- "type": {
304
- "text": "Promise<DatabaseAccessResult.Create<T>>"
305
- }
306
- },
307
- "parameters": [
308
- {
309
- "name": "newValue",
310
- "type": {
311
- "text": "Omit<T, 'id'>"
312
- }
313
- }
314
- ]
315
- },
316
- {
317
- "kind": "method",
318
- "name": "read",
319
- "privacy": "public",
320
- "return": {
321
- "type": {
322
- "text": "Promise<DatabaseAccessResult.Read<T>>"
323
- }
324
- },
325
- "parameters": [
326
- {
327
- "name": "id",
328
- "type": {
329
- "text": "string"
330
- }
331
- }
332
- ]
333
- },
334
- {
335
- "kind": "method",
336
- "name": "update",
337
- "privacy": "public",
338
- "return": {
339
- "type": {
340
- "text": "Promise<DatabaseAccessResult.Update<T>>"
341
- }
342
- },
343
- "parameters": [
344
- {
345
- "name": "id",
346
- "type": {
347
- "text": "string"
348
- }
349
- },
350
- {
351
- "name": "newValue",
352
- "type": {
353
- "text": "Omit<Partial<T>, 'id'>"
354
- }
355
- }
356
- ]
357
- },
358
- {
359
- "kind": "method",
360
- "name": "delete",
361
- "privacy": "public",
362
- "return": {
363
- "type": {
364
- "text": "Promise<DatabaseAccessResult.Delete>"
365
- }
366
- },
367
- "parameters": [
368
- {
369
- "name": "id",
370
- "type": {
371
- "text": "string"
372
- }
373
- }
374
- ]
375
- },
376
- {
377
- "kind": "method",
378
- "name": "visit",
379
- "privacy": "public",
380
- "return": {
381
- "type": {
382
- "text": "Promise<void>"
383
- }
384
- },
385
- "parameters": [
386
- {
387
- "name": "visitor",
388
- "type": {
389
- "text": "(record: T) => void"
390
- }
391
- }
392
- ]
393
- },
394
- {
395
- "kind": "method",
396
- "name": "onBeforeUpdate",
397
- "privacy": "public",
398
- "return": {
399
- "type": {
400
- "text": "() => void"
401
- }
402
- },
403
- "parameters": [
404
- {
405
- "name": "listener",
406
- "type": {
407
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
408
- }
409
- }
410
- ]
411
- },
412
- {
413
- "kind": "method",
414
- "name": "onAfterUpdate",
415
- "privacy": "public",
416
- "return": {
417
- "type": {
418
- "text": "() => void"
419
- }
420
- },
421
- "parameters": [
422
- {
423
- "name": "listener",
424
- "type": {
425
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
426
- }
427
- }
428
- ]
429
- }
430
- ]
431
- }
432
- ],
433
- "exports": [
434
- {
435
- "kind": "js",
436
- "name": "InMemoryDatabase",
437
- "declaration": {
438
- "name": "InMemoryDatabase",
439
- "module": "src/data/inMemoryDatabase.ts"
440
- }
441
- }
442
- ]
443
- },
444
- {
445
- "kind": "javascript-module",
446
- "path": "src/data/index.ts",
447
- "declarations": [],
448
- "exports": [
449
- {
450
- "kind": "js",
451
- "name": "*",
452
- "declaration": {
453
- "name": "*",
454
- "package": "./inMemoryDatabase"
455
- }
456
- }
457
- ]
458
- },
459
261
  {
460
262
  "kind": "javascript-module",
461
263
  "path": "src/design-system/design-system.ts",
@@ -660,53 +462,198 @@
660
462
  },
661
463
  {
662
464
  "kind": "javascript-module",
663
- "path": "src/decorators/index.ts",
664
- "declarations": [],
665
- "exports": [
666
- {
667
- "kind": "js",
668
- "name": "*",
669
- "declaration": {
670
- "name": "*",
671
- "package": "./renderOnChange"
672
- }
673
- }
674
- ]
675
- },
676
- {
677
- "kind": "javascript-module",
678
- "path": "src/decorators/renderOnChange.ts",
465
+ "path": "src/data/inMemoryDatabase.ts",
679
466
  "declarations": [
680
467
  {
681
- "kind": "function",
682
- "name": "renderOnChange",
683
- "parameters": [
468
+ "kind": "class",
469
+ "description": "An in memory database of specific DatabaseRecord types.",
470
+ "name": "InMemoryDatabase",
471
+ "members": [
684
472
  {
685
- "name": "target",
473
+ "kind": "field",
474
+ "name": "isWorking",
686
475
  "type": {
687
- "text": "FASTElement & { render(): void }"
476
+ "text": "boolean"
688
477
  },
689
- "description": "The target to define the property change handler on."
478
+ "privacy": "public",
479
+ "default": "false"
690
480
  },
691
481
  {
692
- "name": "name",
482
+ "kind": "field",
483
+ "name": "records",
693
484
  "type": {
694
- "text": "string"
485
+ "text": "Record<string, T>"
695
486
  },
696
- "description": "The property name."
487
+ "privacy": "private",
488
+ "default": "{}"
489
+ },
490
+ {
491
+ "kind": "field",
492
+ "name": "beforeUpdateListeners",
493
+ "privacy": "private"
494
+ },
495
+ {
496
+ "kind": "field",
497
+ "name": "afterUpdateListeners",
498
+ "privacy": "private"
499
+ },
500
+ {
501
+ "kind": "method",
502
+ "name": "create",
503
+ "privacy": "public",
504
+ "return": {
505
+ "type": {
506
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
507
+ }
508
+ },
509
+ "parameters": [
510
+ {
511
+ "name": "newValue",
512
+ "type": {
513
+ "text": "Omit<T, 'id'>"
514
+ }
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ "kind": "method",
520
+ "name": "read",
521
+ "privacy": "public",
522
+ "return": {
523
+ "type": {
524
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
525
+ }
526
+ },
527
+ "parameters": [
528
+ {
529
+ "name": "id",
530
+ "type": {
531
+ "text": "string"
532
+ }
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "kind": "method",
538
+ "name": "update",
539
+ "privacy": "public",
540
+ "return": {
541
+ "type": {
542
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
543
+ }
544
+ },
545
+ "parameters": [
546
+ {
547
+ "name": "id",
548
+ "type": {
549
+ "text": "string"
550
+ }
551
+ },
552
+ {
553
+ "name": "newValue",
554
+ "type": {
555
+ "text": "Omit<Partial<T>, 'id'>"
556
+ }
557
+ }
558
+ ]
559
+ },
560
+ {
561
+ "kind": "method",
562
+ "name": "delete",
563
+ "privacy": "public",
564
+ "return": {
565
+ "type": {
566
+ "text": "Promise<DatabaseAccessResult.Delete>"
567
+ }
568
+ },
569
+ "parameters": [
570
+ {
571
+ "name": "id",
572
+ "type": {
573
+ "text": "string"
574
+ }
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "kind": "method",
580
+ "name": "visit",
581
+ "privacy": "public",
582
+ "return": {
583
+ "type": {
584
+ "text": "Promise<void>"
585
+ }
586
+ },
587
+ "parameters": [
588
+ {
589
+ "name": "visitor",
590
+ "type": {
591
+ "text": "(record: T) => void"
592
+ }
593
+ }
594
+ ]
595
+ },
596
+ {
597
+ "kind": "method",
598
+ "name": "onBeforeUpdate",
599
+ "privacy": "public",
600
+ "return": {
601
+ "type": {
602
+ "text": "() => void"
603
+ }
604
+ },
605
+ "parameters": [
606
+ {
607
+ "name": "listener",
608
+ "type": {
609
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
610
+ }
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "kind": "method",
616
+ "name": "onAfterUpdate",
617
+ "privacy": "public",
618
+ "return": {
619
+ "type": {
620
+ "text": "() => void"
621
+ }
622
+ },
623
+ "parameters": [
624
+ {
625
+ "name": "listener",
626
+ "type": {
627
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
628
+ }
629
+ }
630
+ ]
697
631
  }
698
- ],
699
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
700
- "privacy": "public"
632
+ ]
701
633
  }
702
634
  ],
703
635
  "exports": [
704
636
  {
705
637
  "kind": "js",
706
- "name": "renderOnChange",
638
+ "name": "InMemoryDatabase",
707
639
  "declaration": {
708
- "name": "renderOnChange",
709
- "module": "src/decorators/renderOnChange.ts"
640
+ "name": "InMemoryDatabase",
641
+ "module": "src/data/inMemoryDatabase.ts"
642
+ }
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "kind": "javascript-module",
648
+ "path": "src/data/index.ts",
649
+ "declarations": [],
650
+ "exports": [
651
+ {
652
+ "kind": "js",
653
+ "name": "*",
654
+ "declaration": {
655
+ "name": "*",
656
+ "package": "./inMemoryDatabase"
710
657
  }
711
658
  }
712
659
  ]
@@ -1248,6 +1195,59 @@
1248
1195
  }
1249
1196
  ]
1250
1197
  },
1198
+ {
1199
+ "kind": "javascript-module",
1200
+ "path": "src/decorators/index.ts",
1201
+ "declarations": [],
1202
+ "exports": [
1203
+ {
1204
+ "kind": "js",
1205
+ "name": "*",
1206
+ "declaration": {
1207
+ "name": "*",
1208
+ "package": "./renderOnChange"
1209
+ }
1210
+ }
1211
+ ]
1212
+ },
1213
+ {
1214
+ "kind": "javascript-module",
1215
+ "path": "src/decorators/renderOnChange.ts",
1216
+ "declarations": [
1217
+ {
1218
+ "kind": "function",
1219
+ "name": "renderOnChange",
1220
+ "parameters": [
1221
+ {
1222
+ "name": "target",
1223
+ "type": {
1224
+ "text": "FASTElement & { render(): void }"
1225
+ },
1226
+ "description": "The target to define the property change handler on."
1227
+ },
1228
+ {
1229
+ "name": "name",
1230
+ "type": {
1231
+ "text": "string"
1232
+ },
1233
+ "description": "The property name."
1234
+ }
1235
+ ],
1236
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1237
+ "privacy": "public"
1238
+ }
1239
+ ],
1240
+ "exports": [
1241
+ {
1242
+ "kind": "js",
1243
+ "name": "renderOnChange",
1244
+ "declaration": {
1245
+ "name": "renderOnChange",
1246
+ "module": "src/decorators/renderOnChange.ts"
1247
+ }
1248
+ }
1249
+ ]
1250
+ },
1251
1251
  {
1252
1252
  "kind": "javascript-module",
1253
1253
  "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": "15.56.0",
4
+ "version": "15.58.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,17 +29,17 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.56.0",
33
- "@genesislcap/genx": "15.56.0",
34
- "@genesislcap/ts-builder": "15.56.0",
35
- "@genesislcap/uvu-playwright-builder": "15.56.0",
36
- "@genesislcap/vite-builder": "15.56.0",
37
- "@genesislcap/webpack-builder": "15.56.0",
32
+ "@genesislcap/foundation-testing": "15.58.0",
33
+ "@genesislcap/genx": "15.58.0",
34
+ "@genesislcap/ts-builder": "15.58.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.58.0",
36
+ "@genesislcap/vite-builder": "15.58.0",
37
+ "@genesislcap/webpack-builder": "15.58.0",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.56.0",
42
- "@genesislcap/foundation-logger": "15.56.0",
41
+ "@genesislcap/expression-builder": "15.58.0",
42
+ "@genesislcap/foundation-logger": "15.58.0",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",