@genesislcap/foundation-utils 14.162.0 → 14.162.1

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 +253 -253
  2. package/package.json +10 -10
@@ -174,56 +174,6 @@
174
174
  }
175
175
  ]
176
176
  },
177
- {
178
- "kind": "javascript-module",
179
- "path": "src/design-system/design-system.ts",
180
- "declarations": [
181
- {
182
- "kind": "function",
183
- "name": "assureDesignSystem",
184
- "return": {
185
- "type": {
186
- "text": "DesignSystemModule"
187
- }
188
- },
189
- "parameters": [
190
- {
191
- "name": "module",
192
- "type": {
193
- "text": "DesignSystemModule"
194
- }
195
- }
196
- ],
197
- "description": "assureDesignSystem.",
198
- "privacy": "public"
199
- }
200
- ],
201
- "exports": [
202
- {
203
- "kind": "js",
204
- "name": "assureDesignSystem",
205
- "declaration": {
206
- "name": "assureDesignSystem",
207
- "module": "src/design-system/design-system.ts"
208
- }
209
- }
210
- ]
211
- },
212
- {
213
- "kind": "javascript-module",
214
- "path": "src/design-system/index.ts",
215
- "declarations": [],
216
- "exports": [
217
- {
218
- "kind": "js",
219
- "name": "*",
220
- "declaration": {
221
- "name": "*",
222
- "package": "./design-system"
223
- }
224
- }
225
- ]
226
- },
227
177
  {
228
178
  "kind": "javascript-module",
229
179
  "path": "src/env/index.ts",
@@ -449,191 +399,190 @@
449
399
  },
450
400
  {
451
401
  "kind": "javascript-module",
452
- "path": "src/error/errorMap.ts",
402
+ "path": "src/data/inMemoryDatabase.ts",
453
403
  "declarations": [
454
404
  {
455
405
  "kind": "class",
456
- "description": "",
457
- "name": "DefaultErrorMap",
406
+ "description": "An in memory database of specific DatabaseRecord types.",
407
+ "name": "InMemoryDatabase",
458
408
  "members": [
459
409
  {
460
410
  "kind": "field",
461
- "name": "map",
462
- "privacy": "private",
463
- "default": "new Map<keyof TErrorDetailMap, Error>()"
411
+ "name": "isWorking",
412
+ "type": {
413
+ "text": "boolean"
414
+ },
415
+ "privacy": "public",
416
+ "default": "false"
464
417
  },
465
418
  {
466
419
  "kind": "field",
467
- "name": "lastError",
420
+ "name": "records",
468
421
  "type": {
469
- "text": "Error"
422
+ "text": "Record<string, T>"
470
423
  },
471
- "description": "{@inheritDoc ErrorMap.lastError}"
424
+ "privacy": "private",
425
+ "default": "{}"
426
+ },
427
+ {
428
+ "kind": "field",
429
+ "name": "beforeUpdateListeners",
430
+ "privacy": "private"
431
+ },
432
+ {
433
+ "kind": "field",
434
+ "name": "afterUpdateListeners",
435
+ "privacy": "private"
472
436
  },
473
437
  {
474
438
  "kind": "method",
475
- "name": "set",
439
+ "name": "create",
440
+ "privacy": "public",
476
441
  "return": {
477
442
  "type": {
478
- "text": "void"
443
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
479
444
  }
480
445
  },
481
446
  "parameters": [
482
447
  {
483
- "name": "key",
484
- "type": {
485
- "text": "keyof TErrorDetailMap"
486
- }
487
- },
488
- {
489
- "name": "error",
448
+ "name": "newValue",
490
449
  "type": {
491
- "text": "Error"
450
+ "text": "Omit<T, 'id'>"
492
451
  }
493
452
  }
494
- ],
495
- "description": "{@inheritDoc ErrorMap.set}"
453
+ ]
496
454
  },
497
455
  {
498
456
  "kind": "method",
499
- "name": "get",
457
+ "name": "read",
458
+ "privacy": "public",
500
459
  "return": {
501
460
  "type": {
502
- "text": ""
461
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
503
462
  }
504
463
  },
505
464
  "parameters": [
506
465
  {
507
- "name": "key",
466
+ "name": "id",
508
467
  "type": {
509
- "text": "keyof TErrorDetailMap"
510
- },
511
- "description": "The key."
468
+ "text": "string"
469
+ }
512
470
  }
513
- ],
514
- "description": "Get an error by key.",
515
- "privacy": "public"
471
+ ]
516
472
  },
517
473
  {
518
474
  "kind": "method",
519
- "name": "has",
475
+ "name": "update",
476
+ "privacy": "public",
520
477
  "return": {
521
478
  "type": {
522
- "text": ""
479
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
523
480
  }
524
481
  },
525
482
  "parameters": [
526
483
  {
527
- "name": "key",
484
+ "name": "id",
528
485
  "type": {
529
- "text": "keyof TErrorDetailMap"
530
- },
531
- "description": "The key."
486
+ "text": "string"
487
+ }
488
+ },
489
+ {
490
+ "name": "newValue",
491
+ "type": {
492
+ "text": "Omit<Partial<T>, 'id'>"
493
+ }
532
494
  }
533
- ],
534
- "description": "Has an error for key.",
535
- "privacy": "public"
495
+ ]
536
496
  },
537
497
  {
538
498
  "kind": "method",
539
499
  "name": "delete",
500
+ "privacy": "public",
540
501
  "return": {
541
502
  "type": {
542
- "text": ""
503
+ "text": "Promise<DatabaseAccessResult.Delete>"
543
504
  }
544
505
  },
545
506
  "parameters": [
546
507
  {
547
- "name": "key",
508
+ "name": "id",
548
509
  "type": {
549
- "text": "keyof TErrorDetailMap"
550
- },
551
- "description": "The key."
510
+ "text": "string"
511
+ }
552
512
  }
553
- ],
554
- "description": "Delete an error.",
555
- "privacy": "public"
513
+ ]
556
514
  },
557
515
  {
558
516
  "kind": "method",
559
- "name": "clear",
560
- "description": "Clear errors.",
561
- "privacy": "public"
562
- },
563
- {
564
- "kind": "field",
565
- "name": "size",
566
- "type": {
567
- "text": "number"
568
- },
569
- "description": "The size of the error map.",
517
+ "name": "visit",
518
+ "privacy": "public",
570
519
  "return": {
571
520
  "type": {
572
- "text": ""
521
+ "text": "Promise<void>"
573
522
  }
574
523
  },
575
- "privacy": "public",
576
- "readonly": true
524
+ "parameters": [
525
+ {
526
+ "name": "visitor",
527
+ "type": {
528
+ "text": "(record: T) => void"
529
+ }
530
+ }
531
+ ]
577
532
  },
578
533
  {
579
534
  "kind": "method",
580
- "name": "values",
581
- "privacy": "public"
535
+ "name": "onBeforeUpdate",
536
+ "privacy": "public",
537
+ "return": {
538
+ "type": {
539
+ "text": "() => void"
540
+ }
541
+ },
542
+ "parameters": [
543
+ {
544
+ "name": "listener",
545
+ "type": {
546
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
547
+ }
548
+ }
549
+ ]
582
550
  },
583
551
  {
584
- "kind": "field",
585
- "name": "messages",
586
- "type": {
587
- "text": "string"
552
+ "kind": "method",
553
+ "name": "onAfterUpdate",
554
+ "privacy": "public",
555
+ "return": {
556
+ "type": {
557
+ "text": "() => void"
558
+ }
588
559
  },
589
- "description": "{@inheritDoc ErrorMap.messages}",
590
- "readonly": true
560
+ "parameters": [
561
+ {
562
+ "name": "listener",
563
+ "type": {
564
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
565
+ }
566
+ }
567
+ ]
591
568
  }
592
569
  ]
593
- },
594
- {
595
- "kind": "function",
596
- "name": "createErrorMap",
597
- "return": {
598
- "type": {
599
- "text": ""
600
- }
601
- },
602
- "parameters": [
603
- {
604
- "name": "logger",
605
- "type": {
606
- "text": "ErrorMapLogger"
607
- },
608
- "description": "A logger error method reference."
609
- }
610
- ],
611
- "description": "A factory to create the error map.",
612
- "privacy": "public"
613
570
  }
614
571
  ],
615
572
  "exports": [
616
573
  {
617
574
  "kind": "js",
618
- "name": "DefaultErrorMap",
619
- "declaration": {
620
- "name": "DefaultErrorMap",
621
- "module": "src/error/errorMap.ts"
622
- }
623
- },
624
- {
625
- "kind": "js",
626
- "name": "createErrorMap",
575
+ "name": "InMemoryDatabase",
627
576
  "declaration": {
628
- "name": "createErrorMap",
629
- "module": "src/error/errorMap.ts"
577
+ "name": "InMemoryDatabase",
578
+ "module": "src/data/inMemoryDatabase.ts"
630
579
  }
631
580
  }
632
581
  ]
633
582
  },
634
583
  {
635
584
  "kind": "javascript-module",
636
- "path": "src/error/index.ts",
585
+ "path": "src/data/index.ts",
637
586
  "declarations": [],
638
587
  "exports": [
639
588
  {
@@ -641,7 +590,7 @@
641
590
  "name": "*",
642
591
  "declaration": {
643
592
  "name": "*",
644
- "package": "./errorMap"
593
+ "package": "./inMemoryDatabase"
645
594
  }
646
595
  }
647
596
  ]
@@ -701,190 +650,191 @@
701
650
  },
702
651
  {
703
652
  "kind": "javascript-module",
704
- "path": "src/data/inMemoryDatabase.ts",
653
+ "path": "src/error/errorMap.ts",
705
654
  "declarations": [
706
655
  {
707
656
  "kind": "class",
708
- "description": "An in memory database of specific DatabaseRecord types.",
709
- "name": "InMemoryDatabase",
657
+ "description": "",
658
+ "name": "DefaultErrorMap",
710
659
  "members": [
711
660
  {
712
661
  "kind": "field",
713
- "name": "isWorking",
714
- "type": {
715
- "text": "boolean"
716
- },
717
- "privacy": "public",
718
- "default": "false"
662
+ "name": "map",
663
+ "privacy": "private",
664
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
719
665
  },
720
666
  {
721
667
  "kind": "field",
722
- "name": "records",
668
+ "name": "lastError",
723
669
  "type": {
724
- "text": "Record<string, T>"
670
+ "text": "Error"
725
671
  },
726
- "privacy": "private",
727
- "default": "{}"
728
- },
729
- {
730
- "kind": "field",
731
- "name": "beforeUpdateListeners",
732
- "privacy": "private"
733
- },
734
- {
735
- "kind": "field",
736
- "name": "afterUpdateListeners",
737
- "privacy": "private"
672
+ "description": "{@inheritDoc ErrorMap.lastError}"
738
673
  },
739
674
  {
740
675
  "kind": "method",
741
- "name": "create",
742
- "privacy": "public",
676
+ "name": "set",
743
677
  "return": {
744
678
  "type": {
745
- "text": "Promise<DatabaseAccessResult.Create<T>>"
679
+ "text": "void"
746
680
  }
747
681
  },
748
682
  "parameters": [
749
683
  {
750
- "name": "newValue",
684
+ "name": "key",
751
685
  "type": {
752
- "text": "Omit<T, 'id'>"
686
+ "text": "keyof TErrorDetailMap"
753
687
  }
754
- }
755
- ]
756
- },
757
- {
758
- "kind": "method",
759
- "name": "read",
760
- "privacy": "public",
761
- "return": {
762
- "type": {
763
- "text": "Promise<DatabaseAccessResult.Read<T>>"
764
- }
765
- },
766
- "parameters": [
688
+ },
767
689
  {
768
- "name": "id",
690
+ "name": "error",
769
691
  "type": {
770
- "text": "string"
692
+ "text": "Error"
771
693
  }
772
694
  }
773
- ]
695
+ ],
696
+ "description": "{@inheritDoc ErrorMap.set}"
774
697
  },
775
698
  {
776
699
  "kind": "method",
777
- "name": "update",
778
- "privacy": "public",
700
+ "name": "get",
779
701
  "return": {
780
702
  "type": {
781
- "text": "Promise<DatabaseAccessResult.Update<T>>"
703
+ "text": ""
782
704
  }
783
705
  },
784
706
  "parameters": [
785
707
  {
786
- "name": "id",
787
- "type": {
788
- "text": "string"
789
- }
790
- },
791
- {
792
- "name": "newValue",
708
+ "name": "key",
793
709
  "type": {
794
- "text": "Omit<Partial<T>, 'id'>"
795
- }
710
+ "text": "keyof TErrorDetailMap"
711
+ },
712
+ "description": "The key."
796
713
  }
797
- ]
714
+ ],
715
+ "description": "Get an error by key.",
716
+ "privacy": "public"
798
717
  },
799
718
  {
800
719
  "kind": "method",
801
- "name": "delete",
802
- "privacy": "public",
720
+ "name": "has",
803
721
  "return": {
804
722
  "type": {
805
- "text": "Promise<DatabaseAccessResult.Delete>"
723
+ "text": ""
806
724
  }
807
725
  },
808
726
  "parameters": [
809
727
  {
810
- "name": "id",
728
+ "name": "key",
811
729
  "type": {
812
- "text": "string"
813
- }
730
+ "text": "keyof TErrorDetailMap"
731
+ },
732
+ "description": "The key."
814
733
  }
815
- ]
734
+ ],
735
+ "description": "Has an error for key.",
736
+ "privacy": "public"
816
737
  },
817
738
  {
818
739
  "kind": "method",
819
- "name": "visit",
820
- "privacy": "public",
740
+ "name": "delete",
821
741
  "return": {
822
742
  "type": {
823
- "text": "Promise<void>"
743
+ "text": ""
824
744
  }
825
745
  },
826
746
  "parameters": [
827
747
  {
828
- "name": "visitor",
748
+ "name": "key",
829
749
  "type": {
830
- "text": "(record: T) => void"
831
- }
750
+ "text": "keyof TErrorDetailMap"
751
+ },
752
+ "description": "The key."
832
753
  }
833
- ]
754
+ ],
755
+ "description": "Delete an error.",
756
+ "privacy": "public"
834
757
  },
835
758
  {
836
759
  "kind": "method",
837
- "name": "onBeforeUpdate",
838
- "privacy": "public",
760
+ "name": "clear",
761
+ "description": "Clear errors.",
762
+ "privacy": "public"
763
+ },
764
+ {
765
+ "kind": "field",
766
+ "name": "size",
767
+ "type": {
768
+ "text": "number"
769
+ },
770
+ "description": "The size of the error map.",
839
771
  "return": {
840
772
  "type": {
841
- "text": "() => void"
773
+ "text": ""
842
774
  }
843
775
  },
844
- "parameters": [
845
- {
846
- "name": "listener",
847
- "type": {
848
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
849
- }
850
- }
851
- ]
776
+ "privacy": "public",
777
+ "readonly": true
852
778
  },
853
779
  {
854
780
  "kind": "method",
855
- "name": "onAfterUpdate",
856
- "privacy": "public",
857
- "return": {
858
- "type": {
859
- "text": "() => void"
860
- }
781
+ "name": "values",
782
+ "privacy": "public"
783
+ },
784
+ {
785
+ "kind": "field",
786
+ "name": "messages",
787
+ "type": {
788
+ "text": "string"
861
789
  },
862
- "parameters": [
863
- {
864
- "name": "listener",
865
- "type": {
866
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
867
- }
868
- }
869
- ]
790
+ "description": "{@inheritDoc ErrorMap.messages}",
791
+ "readonly": true
870
792
  }
871
793
  ]
794
+ },
795
+ {
796
+ "kind": "function",
797
+ "name": "createErrorMap",
798
+ "return": {
799
+ "type": {
800
+ "text": ""
801
+ }
802
+ },
803
+ "parameters": [
804
+ {
805
+ "name": "logger",
806
+ "type": {
807
+ "text": "ErrorMapLogger"
808
+ },
809
+ "description": "A logger error method reference."
810
+ }
811
+ ],
812
+ "description": "A factory to create the error map.",
813
+ "privacy": "public"
872
814
  }
873
815
  ],
874
816
  "exports": [
875
817
  {
876
818
  "kind": "js",
877
- "name": "InMemoryDatabase",
819
+ "name": "DefaultErrorMap",
878
820
  "declaration": {
879
- "name": "InMemoryDatabase",
880
- "module": "src/data/inMemoryDatabase.ts"
821
+ "name": "DefaultErrorMap",
822
+ "module": "src/error/errorMap.ts"
823
+ }
824
+ },
825
+ {
826
+ "kind": "js",
827
+ "name": "createErrorMap",
828
+ "declaration": {
829
+ "name": "createErrorMap",
830
+ "module": "src/error/errorMap.ts"
881
831
  }
882
832
  }
883
833
  ]
884
834
  },
885
835
  {
886
836
  "kind": "javascript-module",
887
- "path": "src/data/index.ts",
837
+ "path": "src/error/index.ts",
888
838
  "declarations": [],
889
839
  "exports": [
890
840
  {
@@ -892,7 +842,57 @@
892
842
  "name": "*",
893
843
  "declaration": {
894
844
  "name": "*",
895
- "package": "./inMemoryDatabase"
845
+ "package": "./errorMap"
846
+ }
847
+ }
848
+ ]
849
+ },
850
+ {
851
+ "kind": "javascript-module",
852
+ "path": "src/design-system/design-system.ts",
853
+ "declarations": [
854
+ {
855
+ "kind": "function",
856
+ "name": "assureDesignSystem",
857
+ "return": {
858
+ "type": {
859
+ "text": "DesignSystemModule"
860
+ }
861
+ },
862
+ "parameters": [
863
+ {
864
+ "name": "module",
865
+ "type": {
866
+ "text": "DesignSystemModule"
867
+ }
868
+ }
869
+ ],
870
+ "description": "assureDesignSystem.",
871
+ "privacy": "public"
872
+ }
873
+ ],
874
+ "exports": [
875
+ {
876
+ "kind": "js",
877
+ "name": "assureDesignSystem",
878
+ "declaration": {
879
+ "name": "assureDesignSystem",
880
+ "module": "src/design-system/design-system.ts"
881
+ }
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ "kind": "javascript-module",
887
+ "path": "src/design-system/index.ts",
888
+ "declarations": [],
889
+ "exports": [
890
+ {
891
+ "kind": "js",
892
+ "name": "*",
893
+ "declaration": {
894
+ "name": "*",
895
+ "package": "./design-system"
896
896
  }
897
897
  }
898
898
  ]
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.162.0",
4
+ "version": "14.162.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,17 +19,17 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.162.0",
23
- "@genesislcap/genx": "14.162.0",
24
- "@genesislcap/rollup-builder": "14.162.0",
25
- "@genesislcap/ts-builder": "14.162.0",
26
- "@genesislcap/uvu-playwright-builder": "14.162.0",
27
- "@genesislcap/vite-builder": "14.162.0",
28
- "@genesislcap/webpack-builder": "14.162.0",
22
+ "@genesislcap/foundation-testing": "14.162.1",
23
+ "@genesislcap/genx": "14.162.1",
24
+ "@genesislcap/rollup-builder": "14.162.1",
25
+ "@genesislcap/ts-builder": "14.162.1",
26
+ "@genesislcap/uvu-playwright-builder": "14.162.1",
27
+ "@genesislcap/vite-builder": "14.162.1",
28
+ "@genesislcap/webpack-builder": "14.162.1",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.162.0",
32
+ "@genesislcap/foundation-logger": "14.162.1",
33
33
  "@microsoft/fast-components": "^2.30.6",
34
34
  "@microsoft/fast-element": "^1.12.0",
35
35
  "@microsoft/fast-foundation": "^2.49.4",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "customElements": "dist/custom-elements.json",
50
- "gitHead": "874e7ee403e4cfab01c6fb2542ae3264c7202831"
50
+ "gitHead": "3bdf3555a95a41116950dde7656081b9b693ffbc"
51
51
  }