@genesislcap/foundation-utils 14.160.0 → 14.160.1-beta.88ffd67.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.
package/README.md CHANGED
@@ -12,9 +12,30 @@ foundation.*
12
12
  [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
13
13
  [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](https://www.typescriptlang.org/)
14
14
 
15
+
16
+ ## Installation
17
+
18
+ To enable this module in your application, follow the steps below.
19
+
20
+ 1. Add `@genesislcap/foundation-utils` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.
21
+
22
+ ```json
23
+ {
24
+ ...
25
+ "dependencies": {
26
+ ...
27
+ "@genesislcap/foundation-utils": "latest"
28
+ ...
29
+ },
30
+ ...
31
+ }
32
+ ```
33
+
34
+ ## [API Docs](./docs/api/index.md)
35
+
15
36
  ## License
16
37
 
17
- Note: this project provides front end dependencies and uses licensed components listed in the next section, thus licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
38
+ Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
18
39
 
19
40
  ### Licensed components
20
41
  Genesis low-code platform
@@ -624,218 +624,6 @@
624
624
  }
625
625
  ]
626
626
  },
627
- {
628
- "kind": "javascript-module",
629
- "path": "src/formatters/datetime.ts",
630
- "declarations": [
631
- {
632
- "kind": "function",
633
- "name": "formatDateTimestamp",
634
- "return": {
635
- "type": {
636
- "text": "string"
637
- }
638
- },
639
- "parameters": [
640
- {
641
- "name": "timestamp",
642
- "type": {
643
- "text": "number"
644
- }
645
- }
646
- ],
647
- "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
648
- "privacy": "public"
649
- },
650
- {
651
- "kind": "function",
652
- "name": "formatDateTimeTimestamp",
653
- "return": {
654
- "type": {
655
- "text": "string"
656
- }
657
- },
658
- "parameters": [
659
- {
660
- "name": "timestamp",
661
- "type": {
662
- "text": "number"
663
- }
664
- }
665
- ],
666
- "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
667
- "privacy": "public"
668
- },
669
- {
670
- "kind": "function",
671
- "name": "formatTimestamp",
672
- "return": {
673
- "type": {
674
- "text": "string"
675
- }
676
- },
677
- "parameters": [
678
- {
679
- "name": "timestamp",
680
- "type": {
681
- "text": "number"
682
- },
683
- "description": "The UNIX Timestamp."
684
- },
685
- {
686
- "name": "withTime",
687
- "type": {
688
- "text": "boolean"
689
- },
690
- "description": "The flag to determine if formatted value should contain 'time' info."
691
- }
692
- ],
693
- "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
694
- "privacy": "public"
695
- }
696
- ],
697
- "exports": [
698
- {
699
- "kind": "js",
700
- "name": "formatDateTimestamp",
701
- "declaration": {
702
- "name": "formatDateTimestamp",
703
- "module": "src/formatters/datetime.ts"
704
- }
705
- },
706
- {
707
- "kind": "js",
708
- "name": "formatDateTimeTimestamp",
709
- "declaration": {
710
- "name": "formatDateTimeTimestamp",
711
- "module": "src/formatters/datetime.ts"
712
- }
713
- },
714
- {
715
- "kind": "js",
716
- "name": "formatTimestamp",
717
- "declaration": {
718
- "name": "formatTimestamp",
719
- "module": "src/formatters/datetime.ts"
720
- }
721
- }
722
- ]
723
- },
724
- {
725
- "kind": "javascript-module",
726
- "path": "src/formatters/index.ts",
727
- "declarations": [],
728
- "exports": [
729
- {
730
- "kind": "js",
731
- "name": "*",
732
- "declaration": {
733
- "name": "*",
734
- "package": "./datetime"
735
- }
736
- },
737
- {
738
- "kind": "js",
739
- "name": "*",
740
- "declaration": {
741
- "name": "*",
742
- "package": "./localeNumberParser"
743
- }
744
- }
745
- ]
746
- },
747
- {
748
- "kind": "javascript-module",
749
- "path": "src/formatters/localeNumberParser.ts",
750
- "declarations": [
751
- {
752
- "kind": "class",
753
- "description": "",
754
- "name": "NumberParser",
755
- "members": [
756
- {
757
- "kind": "field",
758
- "name": "_decimal",
759
- "type": {
760
- "text": "RegExp"
761
- },
762
- "privacy": "private",
763
- "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
764
- },
765
- {
766
- "kind": "field",
767
- "name": "_separator",
768
- "type": {
769
- "text": "RegExp"
770
- },
771
- "privacy": "private",
772
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
773
- },
774
- {
775
- "kind": "field",
776
- "name": "_numeral",
777
- "type": {
778
- "text": "RegExp"
779
- },
780
- "privacy": "private",
781
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
782
- },
783
- {
784
- "kind": "field",
785
- "name": "_index",
786
- "type": {
787
- "text": "any"
788
- },
789
- "privacy": "private"
790
- },
791
- {
792
- "kind": "method",
793
- "name": "parse",
794
- "parameters": [
795
- {
796
- "name": "localeNumber",
797
- "type": {
798
- "text": "string"
799
- }
800
- }
801
- ]
802
- },
803
- {
804
- "kind": "method",
805
- "name": "hasSeparator",
806
- "return": {
807
- "type": {
808
- "text": "boolean"
809
- }
810
- },
811
- "parameters": [
812
- {
813
- "name": "localeNumber",
814
- "type": {
815
- "text": "string"
816
- }
817
- }
818
- ]
819
- },
820
- {
821
- "kind": "field",
822
- "name": "_group",
823
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
824
- }
825
- ]
826
- }
827
- ],
828
- "exports": [
829
- {
830
- "kind": "js",
831
- "name": "NumberParser",
832
- "declaration": {
833
- "name": "NumberParser",
834
- "module": "src/formatters/localeNumberParser.ts"
835
- }
836
- }
837
- ]
838
- },
839
627
  {
840
628
  "kind": "javascript-module",
841
629
  "path": "src/env/index.ts",
@@ -1109,6 +897,218 @@
1109
897
  }
1110
898
  ]
1111
899
  },
900
+ {
901
+ "kind": "javascript-module",
902
+ "path": "src/formatters/datetime.ts",
903
+ "declarations": [
904
+ {
905
+ "kind": "function",
906
+ "name": "formatDateTimestamp",
907
+ "return": {
908
+ "type": {
909
+ "text": "string"
910
+ }
911
+ },
912
+ "parameters": [
913
+ {
914
+ "name": "timestamp",
915
+ "type": {
916
+ "text": "number"
917
+ }
918
+ }
919
+ ],
920
+ "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
921
+ "privacy": "public"
922
+ },
923
+ {
924
+ "kind": "function",
925
+ "name": "formatDateTimeTimestamp",
926
+ "return": {
927
+ "type": {
928
+ "text": "string"
929
+ }
930
+ },
931
+ "parameters": [
932
+ {
933
+ "name": "timestamp",
934
+ "type": {
935
+ "text": "number"
936
+ }
937
+ }
938
+ ],
939
+ "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
940
+ "privacy": "public"
941
+ },
942
+ {
943
+ "kind": "function",
944
+ "name": "formatTimestamp",
945
+ "return": {
946
+ "type": {
947
+ "text": "string"
948
+ }
949
+ },
950
+ "parameters": [
951
+ {
952
+ "name": "timestamp",
953
+ "type": {
954
+ "text": "number"
955
+ },
956
+ "description": "The UNIX Timestamp."
957
+ },
958
+ {
959
+ "name": "withTime",
960
+ "type": {
961
+ "text": "boolean"
962
+ },
963
+ "description": "The flag to determine if formatted value should contain 'time' info."
964
+ }
965
+ ],
966
+ "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
967
+ "privacy": "public"
968
+ }
969
+ ],
970
+ "exports": [
971
+ {
972
+ "kind": "js",
973
+ "name": "formatDateTimestamp",
974
+ "declaration": {
975
+ "name": "formatDateTimestamp",
976
+ "module": "src/formatters/datetime.ts"
977
+ }
978
+ },
979
+ {
980
+ "kind": "js",
981
+ "name": "formatDateTimeTimestamp",
982
+ "declaration": {
983
+ "name": "formatDateTimeTimestamp",
984
+ "module": "src/formatters/datetime.ts"
985
+ }
986
+ },
987
+ {
988
+ "kind": "js",
989
+ "name": "formatTimestamp",
990
+ "declaration": {
991
+ "name": "formatTimestamp",
992
+ "module": "src/formatters/datetime.ts"
993
+ }
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "kind": "javascript-module",
999
+ "path": "src/formatters/index.ts",
1000
+ "declarations": [],
1001
+ "exports": [
1002
+ {
1003
+ "kind": "js",
1004
+ "name": "*",
1005
+ "declaration": {
1006
+ "name": "*",
1007
+ "package": "./datetime"
1008
+ }
1009
+ },
1010
+ {
1011
+ "kind": "js",
1012
+ "name": "*",
1013
+ "declaration": {
1014
+ "name": "*",
1015
+ "package": "./localeNumberParser"
1016
+ }
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "kind": "javascript-module",
1022
+ "path": "src/formatters/localeNumberParser.ts",
1023
+ "declarations": [
1024
+ {
1025
+ "kind": "class",
1026
+ "description": "",
1027
+ "name": "NumberParser",
1028
+ "members": [
1029
+ {
1030
+ "kind": "field",
1031
+ "name": "_decimal",
1032
+ "type": {
1033
+ "text": "RegExp"
1034
+ },
1035
+ "privacy": "private",
1036
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
1037
+ },
1038
+ {
1039
+ "kind": "field",
1040
+ "name": "_separator",
1041
+ "type": {
1042
+ "text": "RegExp"
1043
+ },
1044
+ "privacy": "private",
1045
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1046
+ },
1047
+ {
1048
+ "kind": "field",
1049
+ "name": "_numeral",
1050
+ "type": {
1051
+ "text": "RegExp"
1052
+ },
1053
+ "privacy": "private",
1054
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1055
+ },
1056
+ {
1057
+ "kind": "field",
1058
+ "name": "_index",
1059
+ "type": {
1060
+ "text": "any"
1061
+ },
1062
+ "privacy": "private"
1063
+ },
1064
+ {
1065
+ "kind": "method",
1066
+ "name": "parse",
1067
+ "parameters": [
1068
+ {
1069
+ "name": "localeNumber",
1070
+ "type": {
1071
+ "text": "string"
1072
+ }
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "kind": "method",
1078
+ "name": "hasSeparator",
1079
+ "return": {
1080
+ "type": {
1081
+ "text": "boolean"
1082
+ }
1083
+ },
1084
+ "parameters": [
1085
+ {
1086
+ "name": "localeNumber",
1087
+ "type": {
1088
+ "text": "string"
1089
+ }
1090
+ }
1091
+ ]
1092
+ },
1093
+ {
1094
+ "kind": "field",
1095
+ "name": "_group",
1096
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1097
+ }
1098
+ ]
1099
+ }
1100
+ ],
1101
+ "exports": [
1102
+ {
1103
+ "kind": "js",
1104
+ "name": "NumberParser",
1105
+ "declaration": {
1106
+ "name": "NumberParser",
1107
+ "module": "src/formatters/localeNumberParser.ts"
1108
+ }
1109
+ }
1110
+ ]
1111
+ },
1112
1112
  {
1113
1113
  "kind": "javascript-module",
1114
1114
  "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.160.0",
4
+ "version": "14.160.1-beta.88ffd67.0",
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.160.0",
23
- "@genesislcap/genx": "14.160.0",
24
- "@genesislcap/rollup-builder": "14.160.0",
25
- "@genesislcap/ts-builder": "14.160.0",
26
- "@genesislcap/uvu-playwright-builder": "14.160.0",
27
- "@genesislcap/vite-builder": "14.160.0",
28
- "@genesislcap/webpack-builder": "14.160.0",
22
+ "@genesislcap/foundation-testing": "14.160.1-beta.88ffd67.0",
23
+ "@genesislcap/genx": "14.160.1-beta.88ffd67.0",
24
+ "@genesislcap/rollup-builder": "14.160.1-beta.88ffd67.0",
25
+ "@genesislcap/ts-builder": "14.160.1-beta.88ffd67.0",
26
+ "@genesislcap/uvu-playwright-builder": "14.160.1-beta.88ffd67.0",
27
+ "@genesislcap/vite-builder": "14.160.1-beta.88ffd67.0",
28
+ "@genesislcap/webpack-builder": "14.160.1-beta.88ffd67.0",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.160.0",
32
+ "@genesislcap/foundation-logger": "14.160.1-beta.88ffd67.0",
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": "f8c85f5e0a1928e51aacd7403607bd2e7457f510"
50
+ "gitHead": "ac913c069762d50f7331a116cb1544cf9dbbbe87"
51
51
  }