@genesislcap/foundation-utils 14.92.4 → 14.93.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.
@@ -589,7 +589,41 @@
589
589
  },
590
590
  {
591
591
  "kind": "javascript-module",
592
- "path": "src/decorators/index.ts",
592
+ "path": "src/design-system/design-system.ts",
593
+ "declarations": [
594
+ {
595
+ "kind": "function",
596
+ "name": "assureDesignSystem",
597
+ "return": {
598
+ "type": {
599
+ "text": "DesignSystemModule"
600
+ }
601
+ },
602
+ "parameters": [
603
+ {
604
+ "name": "module",
605
+ "type": {
606
+ "text": "DesignSystemModule"
607
+ }
608
+ }
609
+ ],
610
+ "privacy": "public"
611
+ }
612
+ ],
613
+ "exports": [
614
+ {
615
+ "kind": "js",
616
+ "name": "assureDesignSystem",
617
+ "declaration": {
618
+ "name": "assureDesignSystem",
619
+ "module": "src/design-system/design-system.ts"
620
+ }
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "kind": "javascript-module",
626
+ "path": "src/design-system/index.ts",
593
627
  "declarations": [],
594
628
  "exports": [
595
629
  {
@@ -597,86 +631,193 @@
597
631
  "name": "*",
598
632
  "declaration": {
599
633
  "name": "*",
600
- "package": "./renderOnChange"
634
+ "package": "./design-system"
601
635
  }
602
636
  }
603
637
  ]
604
638
  },
605
639
  {
606
640
  "kind": "javascript-module",
607
- "path": "src/decorators/renderOnChange.ts",
641
+ "path": "src/error/errorMap.ts",
608
642
  "declarations": [
609
643
  {
610
- "kind": "function",
611
- "name": "renderOnChange",
612
- "parameters": [
644
+ "kind": "class",
645
+ "description": "",
646
+ "name": "DefaultErrorMap",
647
+ "members": [
613
648
  {
614
- "name": "target",
649
+ "kind": "field",
650
+ "name": "map",
651
+ "privacy": "private",
652
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
653
+ },
654
+ {
655
+ "kind": "field",
656
+ "name": "lastError",
615
657
  "type": {
616
- "text": "FASTElement & { render(): void }"
658
+ "text": "Error"
617
659
  },
618
- "description": "The target to define the property change handler on."
660
+ "description": "{@inheritDoc ErrorMap.lastError}"
619
661
  },
620
662
  {
621
- "name": "name",
663
+ "kind": "method",
664
+ "name": "set",
665
+ "return": {
666
+ "type": {
667
+ "text": "void"
668
+ }
669
+ },
670
+ "parameters": [
671
+ {
672
+ "name": "key",
673
+ "type": {
674
+ "text": "keyof TErrorDetailMap"
675
+ }
676
+ },
677
+ {
678
+ "name": "error",
679
+ "type": {
680
+ "text": "Error"
681
+ }
682
+ }
683
+ ],
684
+ "description": "{@inheritDoc ErrorMap.set}"
685
+ },
686
+ {
687
+ "kind": "method",
688
+ "name": "get",
689
+ "return": {
690
+ "type": {
691
+ "text": ""
692
+ }
693
+ },
694
+ "parameters": [
695
+ {
696
+ "name": "key",
697
+ "type": {
698
+ "text": "keyof TErrorDetailMap"
699
+ },
700
+ "description": "The key."
701
+ }
702
+ ],
703
+ "description": "Get an error by key.",
704
+ "privacy": "public"
705
+ },
706
+ {
707
+ "kind": "method",
708
+ "name": "has",
709
+ "return": {
710
+ "type": {
711
+ "text": ""
712
+ }
713
+ },
714
+ "parameters": [
715
+ {
716
+ "name": "key",
717
+ "type": {
718
+ "text": "keyof TErrorDetailMap"
719
+ },
720
+ "description": "The key."
721
+ }
722
+ ],
723
+ "description": "Has an error for key.",
724
+ "privacy": "public"
725
+ },
726
+ {
727
+ "kind": "method",
728
+ "name": "delete",
729
+ "return": {
730
+ "type": {
731
+ "text": ""
732
+ }
733
+ },
734
+ "parameters": [
735
+ {
736
+ "name": "key",
737
+ "type": {
738
+ "text": "keyof TErrorDetailMap"
739
+ },
740
+ "description": "The key."
741
+ }
742
+ ],
743
+ "description": "Delete an error.",
744
+ "privacy": "public"
745
+ },
746
+ {
747
+ "kind": "method",
748
+ "name": "clear",
749
+ "description": "Clear errors.",
750
+ "privacy": "public"
751
+ },
752
+ {
753
+ "kind": "field",
754
+ "name": "size",
755
+ "type": {
756
+ "text": "number"
757
+ },
758
+ "description": "The size of the error map.",
759
+ "return": {
760
+ "type": {
761
+ "text": ""
762
+ }
763
+ },
764
+ "privacy": "public",
765
+ "readonly": true
766
+ },
767
+ {
768
+ "kind": "field",
769
+ "name": "messages",
622
770
  "type": {
623
771
  "text": "string"
624
772
  },
625
- "description": "The property name."
773
+ "description": "{@inheritDoc ErrorMap.messages}",
774
+ "readonly": true
626
775
  }
627
- ],
628
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
629
- "privacy": "public"
630
- }
631
- ],
632
- "exports": [
633
- {
634
- "kind": "js",
635
- "name": "renderOnChange",
636
- "declaration": {
637
- "name": "renderOnChange",
638
- "module": "src/decorators/renderOnChange.ts"
639
- }
640
- }
641
- ]
642
- },
643
- {
644
- "kind": "javascript-module",
645
- "path": "src/design-system/design-system.ts",
646
- "declarations": [
776
+ ]
777
+ },
647
778
  {
648
779
  "kind": "function",
649
- "name": "assureDesignSystem",
780
+ "name": "createErrorMap",
650
781
  "return": {
651
782
  "type": {
652
- "text": "DesignSystemModule"
783
+ "text": ""
653
784
  }
654
785
  },
655
786
  "parameters": [
656
787
  {
657
- "name": "module",
788
+ "name": "logger",
658
789
  "type": {
659
- "text": "DesignSystemModule"
660
- }
790
+ "text": "ErrorMapLogger"
791
+ },
792
+ "description": "A logger error method reference."
661
793
  }
662
794
  ],
795
+ "description": "A factory to create the error map.",
663
796
  "privacy": "public"
664
797
  }
665
798
  ],
666
799
  "exports": [
667
800
  {
668
801
  "kind": "js",
669
- "name": "assureDesignSystem",
802
+ "name": "DefaultErrorMap",
670
803
  "declaration": {
671
- "name": "assureDesignSystem",
672
- "module": "src/design-system/design-system.ts"
804
+ "name": "DefaultErrorMap",
805
+ "module": "src/error/errorMap.ts"
806
+ }
807
+ },
808
+ {
809
+ "kind": "js",
810
+ "name": "createErrorMap",
811
+ "declaration": {
812
+ "name": "createErrorMap",
813
+ "module": "src/error/errorMap.ts"
673
814
  }
674
815
  }
675
816
  ]
676
817
  },
677
818
  {
678
819
  "kind": "javascript-module",
679
- "path": "src/design-system/index.ts",
820
+ "path": "src/error/index.ts",
680
821
  "declarations": [],
681
822
  "exports": [
682
823
  {
@@ -684,7 +825,60 @@
684
825
  "name": "*",
685
826
  "declaration": {
686
827
  "name": "*",
687
- "package": "./design-system"
828
+ "package": "./errorMap"
829
+ }
830
+ }
831
+ ]
832
+ },
833
+ {
834
+ "kind": "javascript-module",
835
+ "path": "src/decorators/index.ts",
836
+ "declarations": [],
837
+ "exports": [
838
+ {
839
+ "kind": "js",
840
+ "name": "*",
841
+ "declaration": {
842
+ "name": "*",
843
+ "package": "./renderOnChange"
844
+ }
845
+ }
846
+ ]
847
+ },
848
+ {
849
+ "kind": "javascript-module",
850
+ "path": "src/decorators/renderOnChange.ts",
851
+ "declarations": [
852
+ {
853
+ "kind": "function",
854
+ "name": "renderOnChange",
855
+ "parameters": [
856
+ {
857
+ "name": "target",
858
+ "type": {
859
+ "text": "FASTElement & { render(): void }"
860
+ },
861
+ "description": "The target to define the property change handler on."
862
+ },
863
+ {
864
+ "name": "name",
865
+ "type": {
866
+ "text": "string"
867
+ },
868
+ "description": "The property name."
869
+ }
870
+ ],
871
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
872
+ "privacy": "public"
873
+ }
874
+ ],
875
+ "exports": [
876
+ {
877
+ "kind": "js",
878
+ "name": "renderOnChange",
879
+ "declaration": {
880
+ "name": "renderOnChange",
881
+ "module": "src/decorators/renderOnChange.ts"
688
882
  }
689
883
  }
690
884
  ]
@@ -901,200 +1095,6 @@
901
1095
  }
902
1096
  ]
903
1097
  },
904
- {
905
- "kind": "javascript-module",
906
- "path": "src/error/errorMap.ts",
907
- "declarations": [
908
- {
909
- "kind": "class",
910
- "description": "",
911
- "name": "DefaultErrorMap",
912
- "members": [
913
- {
914
- "kind": "field",
915
- "name": "map",
916
- "privacy": "private",
917
- "default": "new Map<keyof TErrorDetailMap, Error>()"
918
- },
919
- {
920
- "kind": "field",
921
- "name": "lastError",
922
- "type": {
923
- "text": "Error"
924
- },
925
- "description": "{@inheritDoc ErrorMap.lastError}"
926
- },
927
- {
928
- "kind": "method",
929
- "name": "set",
930
- "return": {
931
- "type": {
932
- "text": "void"
933
- }
934
- },
935
- "parameters": [
936
- {
937
- "name": "key",
938
- "type": {
939
- "text": "keyof TErrorDetailMap"
940
- }
941
- },
942
- {
943
- "name": "error",
944
- "type": {
945
- "text": "Error"
946
- }
947
- }
948
- ],
949
- "description": "{@inheritDoc ErrorMap.set}"
950
- },
951
- {
952
- "kind": "method",
953
- "name": "get",
954
- "return": {
955
- "type": {
956
- "text": ""
957
- }
958
- },
959
- "parameters": [
960
- {
961
- "name": "key",
962
- "type": {
963
- "text": "keyof TErrorDetailMap"
964
- },
965
- "description": "The key."
966
- }
967
- ],
968
- "description": "Get an error by key.",
969
- "privacy": "public"
970
- },
971
- {
972
- "kind": "method",
973
- "name": "has",
974
- "return": {
975
- "type": {
976
- "text": ""
977
- }
978
- },
979
- "parameters": [
980
- {
981
- "name": "key",
982
- "type": {
983
- "text": "keyof TErrorDetailMap"
984
- },
985
- "description": "The key."
986
- }
987
- ],
988
- "description": "Has an error for key.",
989
- "privacy": "public"
990
- },
991
- {
992
- "kind": "method",
993
- "name": "delete",
994
- "return": {
995
- "type": {
996
- "text": ""
997
- }
998
- },
999
- "parameters": [
1000
- {
1001
- "name": "key",
1002
- "type": {
1003
- "text": "keyof TErrorDetailMap"
1004
- },
1005
- "description": "The key."
1006
- }
1007
- ],
1008
- "description": "Delete an error.",
1009
- "privacy": "public"
1010
- },
1011
- {
1012
- "kind": "method",
1013
- "name": "clear",
1014
- "description": "Clear errors.",
1015
- "privacy": "public"
1016
- },
1017
- {
1018
- "kind": "field",
1019
- "name": "size",
1020
- "type": {
1021
- "text": "number"
1022
- },
1023
- "description": "The size of the error map.",
1024
- "return": {
1025
- "type": {
1026
- "text": ""
1027
- }
1028
- },
1029
- "privacy": "public",
1030
- "readonly": true
1031
- },
1032
- {
1033
- "kind": "field",
1034
- "name": "messages",
1035
- "type": {
1036
- "text": "string"
1037
- },
1038
- "description": "{@inheritDoc ErrorMap.messages}",
1039
- "readonly": true
1040
- }
1041
- ]
1042
- },
1043
- {
1044
- "kind": "function",
1045
- "name": "createErrorMap",
1046
- "return": {
1047
- "type": {
1048
- "text": ""
1049
- }
1050
- },
1051
- "parameters": [
1052
- {
1053
- "name": "logger",
1054
- "type": {
1055
- "text": "ErrorMapLogger"
1056
- },
1057
- "description": "A logger error method reference."
1058
- }
1059
- ],
1060
- "description": "A factory to create the error map.",
1061
- "privacy": "public"
1062
- }
1063
- ],
1064
- "exports": [
1065
- {
1066
- "kind": "js",
1067
- "name": "DefaultErrorMap",
1068
- "declaration": {
1069
- "name": "DefaultErrorMap",
1070
- "module": "src/error/errorMap.ts"
1071
- }
1072
- },
1073
- {
1074
- "kind": "js",
1075
- "name": "createErrorMap",
1076
- "declaration": {
1077
- "name": "createErrorMap",
1078
- "module": "src/error/errorMap.ts"
1079
- }
1080
- }
1081
- ]
1082
- },
1083
- {
1084
- "kind": "javascript-module",
1085
- "path": "src/error/index.ts",
1086
- "declarations": [],
1087
- "exports": [
1088
- {
1089
- "kind": "js",
1090
- "name": "*",
1091
- "declaration": {
1092
- "name": "*",
1093
- "package": "./errorMap"
1094
- }
1095
- }
1096
- ]
1097
- },
1098
1098
  {
1099
1099
  "kind": "javascript-module",
1100
1100
  "path": "src/logger/index.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.92.4",
4
+ "version": "14.93.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.92.4",
23
- "@genesislcap/genx": "14.92.4",
22
+ "@genesislcap/foundation-testing": "14.93.0",
23
+ "@genesislcap/genx": "14.93.0",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.92.4",
27
+ "@genesislcap/foundation-logger": "14.93.0",
28
28
  "@microsoft/fast-components": "^2.21.3",
29
29
  "@microsoft/fast-element": "^1.7.0",
30
30
  "@microsoft/fast-foundation": "^2.33.2",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "04c7691aa4331bd6caa2748f96508050665467cd"
45
+ "gitHead": "2e777404028ad7c11b239b17ae32946c873b7a4d"
46
46
  }