@genesislcap/foundation-utils 14.143.1 → 14.143.3-alpha-b3a864d.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.
@@ -151,59 +151,6 @@
151
151
  }
152
152
  ]
153
153
  },
154
- {
155
- "kind": "javascript-module",
156
- "path": "src/decorators/index.ts",
157
- "declarations": [],
158
- "exports": [
159
- {
160
- "kind": "js",
161
- "name": "*",
162
- "declaration": {
163
- "name": "*",
164
- "package": "./renderOnChange"
165
- }
166
- }
167
- ]
168
- },
169
- {
170
- "kind": "javascript-module",
171
- "path": "src/decorators/renderOnChange.ts",
172
- "declarations": [
173
- {
174
- "kind": "function",
175
- "name": "renderOnChange",
176
- "parameters": [
177
- {
178
- "name": "target",
179
- "type": {
180
- "text": "FASTElement & { render(): void }"
181
- },
182
- "description": "The target to define the property change handler on."
183
- },
184
- {
185
- "name": "name",
186
- "type": {
187
- "text": "string"
188
- },
189
- "description": "The property name."
190
- }
191
- ],
192
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
193
- "privacy": "public"
194
- }
195
- ],
196
- "exports": [
197
- {
198
- "kind": "js",
199
- "name": "renderOnChange",
200
- "declaration": {
201
- "name": "renderOnChange",
202
- "module": "src/decorators/renderOnChange.ts"
203
- }
204
- }
205
- ]
206
- },
207
154
  {
208
155
  "kind": "javascript-module",
209
156
  "path": "src/design-system/design-system.ts",
@@ -502,198 +449,53 @@
502
449
  },
503
450
  {
504
451
  "kind": "javascript-module",
505
- "path": "src/data/inMemoryDatabase.ts",
452
+ "path": "src/decorators/index.ts",
453
+ "declarations": [],
454
+ "exports": [
455
+ {
456
+ "kind": "js",
457
+ "name": "*",
458
+ "declaration": {
459
+ "name": "*",
460
+ "package": "./renderOnChange"
461
+ }
462
+ }
463
+ ]
464
+ },
465
+ {
466
+ "kind": "javascript-module",
467
+ "path": "src/decorators/renderOnChange.ts",
506
468
  "declarations": [
507
469
  {
508
- "kind": "class",
509
- "description": "An in memory database of specific DatabaseRecord types.",
510
- "name": "InMemoryDatabase",
511
- "members": [
470
+ "kind": "function",
471
+ "name": "renderOnChange",
472
+ "parameters": [
512
473
  {
513
- "kind": "field",
514
- "name": "isWorking",
474
+ "name": "target",
515
475
  "type": {
516
- "text": "boolean"
476
+ "text": "FASTElement & { render(): void }"
517
477
  },
518
- "privacy": "public",
519
- "default": "false"
478
+ "description": "The target to define the property change handler on."
520
479
  },
521
480
  {
522
- "kind": "field",
523
- "name": "records",
481
+ "name": "name",
524
482
  "type": {
525
- "text": "Record<string, T>"
526
- },
527
- "privacy": "private",
528
- "default": "{}"
529
- },
530
- {
531
- "kind": "field",
532
- "name": "beforeUpdateListeners",
533
- "privacy": "private"
534
- },
535
- {
536
- "kind": "field",
537
- "name": "afterUpdateListeners",
538
- "privacy": "private"
539
- },
540
- {
541
- "kind": "method",
542
- "name": "create",
543
- "privacy": "public",
544
- "return": {
545
- "type": {
546
- "text": "Promise<DatabaseAccessResult.Create<T>>"
547
- }
548
- },
549
- "parameters": [
550
- {
551
- "name": "newValue",
552
- "type": {
553
- "text": "Omit<T, 'id'>"
554
- }
555
- }
556
- ]
557
- },
558
- {
559
- "kind": "method",
560
- "name": "read",
561
- "privacy": "public",
562
- "return": {
563
- "type": {
564
- "text": "Promise<DatabaseAccessResult.Read<T>>"
565
- }
566
- },
567
- "parameters": [
568
- {
569
- "name": "id",
570
- "type": {
571
- "text": "string"
572
- }
573
- }
574
- ]
575
- },
576
- {
577
- "kind": "method",
578
- "name": "update",
579
- "privacy": "public",
580
- "return": {
581
- "type": {
582
- "text": "Promise<DatabaseAccessResult.Update<T>>"
583
- }
584
- },
585
- "parameters": [
586
- {
587
- "name": "id",
588
- "type": {
589
- "text": "string"
590
- }
591
- },
592
- {
593
- "name": "newValue",
594
- "type": {
595
- "text": "Omit<Partial<T>, 'id'>"
596
- }
597
- }
598
- ]
599
- },
600
- {
601
- "kind": "method",
602
- "name": "delete",
603
- "privacy": "public",
604
- "return": {
605
- "type": {
606
- "text": "Promise<DatabaseAccessResult.Delete>"
607
- }
608
- },
609
- "parameters": [
610
- {
611
- "name": "id",
612
- "type": {
613
- "text": "string"
614
- }
615
- }
616
- ]
617
- },
618
- {
619
- "kind": "method",
620
- "name": "visit",
621
- "privacy": "public",
622
- "return": {
623
- "type": {
624
- "text": "Promise<void>"
625
- }
626
- },
627
- "parameters": [
628
- {
629
- "name": "visitor",
630
- "type": {
631
- "text": "(record: T) => void"
632
- }
633
- }
634
- ]
635
- },
636
- {
637
- "kind": "method",
638
- "name": "onBeforeUpdate",
639
- "privacy": "public",
640
- "return": {
641
- "type": {
642
- "text": "() => void"
643
- }
644
- },
645
- "parameters": [
646
- {
647
- "name": "listener",
648
- "type": {
649
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
650
- }
651
- }
652
- ]
653
- },
654
- {
655
- "kind": "method",
656
- "name": "onAfterUpdate",
657
- "privacy": "public",
658
- "return": {
659
- "type": {
660
- "text": "() => void"
661
- }
483
+ "text": "string"
662
484
  },
663
- "parameters": [
664
- {
665
- "name": "listener",
666
- "type": {
667
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
668
- }
669
- }
670
- ]
485
+ "description": "The property name."
671
486
  }
672
- ]
487
+ ],
488
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
489
+ "privacy": "public"
673
490
  }
674
491
  ],
675
492
  "exports": [
676
493
  {
677
494
  "kind": "js",
678
- "name": "InMemoryDatabase",
679
- "declaration": {
680
- "name": "InMemoryDatabase",
681
- "module": "src/data/inMemoryDatabase.ts"
682
- }
683
- }
684
- ]
685
- },
686
- {
687
- "kind": "javascript-module",
688
- "path": "src/data/index.ts",
689
- "declarations": [],
690
- "exports": [
691
- {
692
- "kind": "js",
693
- "name": "*",
495
+ "name": "renderOnChange",
694
496
  "declaration": {
695
- "name": "*",
696
- "package": "./inMemoryDatabase"
497
+ "name": "renderOnChange",
498
+ "module": "src/decorators/renderOnChange.ts"
697
499
  }
698
500
  }
699
501
  ]
@@ -1045,55 +847,238 @@
1045
847
  "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1046
848
  },
1047
849
  {
1048
- "kind": "field",
1049
- "name": "_numeral",
1050
- "type": {
1051
- "text": "RegExp"
850
+ "kind": "field",
851
+ "name": "_numeral",
852
+ "type": {
853
+ "text": "RegExp"
854
+ },
855
+ "privacy": "private",
856
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
857
+ },
858
+ {
859
+ "kind": "field",
860
+ "name": "_index",
861
+ "type": {
862
+ "text": "any"
863
+ },
864
+ "privacy": "private"
865
+ },
866
+ {
867
+ "kind": "method",
868
+ "name": "parse",
869
+ "parameters": [
870
+ {
871
+ "name": "localeNumber",
872
+ "type": {
873
+ "text": "string"
874
+ }
875
+ }
876
+ ]
877
+ },
878
+ {
879
+ "kind": "method",
880
+ "name": "hasSeparator",
881
+ "return": {
882
+ "type": {
883
+ "text": "boolean"
884
+ }
885
+ },
886
+ "parameters": [
887
+ {
888
+ "name": "localeNumber",
889
+ "type": {
890
+ "text": "string"
891
+ }
892
+ }
893
+ ]
894
+ },
895
+ {
896
+ "kind": "field",
897
+ "name": "_group",
898
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
899
+ }
900
+ ]
901
+ }
902
+ ],
903
+ "exports": [
904
+ {
905
+ "kind": "js",
906
+ "name": "NumberParser",
907
+ "declaration": {
908
+ "name": "NumberParser",
909
+ "module": "src/formatters/localeNumberParser.ts"
910
+ }
911
+ }
912
+ ]
913
+ },
914
+ {
915
+ "kind": "javascript-module",
916
+ "path": "src/data/inMemoryDatabase.ts",
917
+ "declarations": [
918
+ {
919
+ "kind": "class",
920
+ "description": "An in memory database of specific DatabaseRecord types.",
921
+ "name": "InMemoryDatabase",
922
+ "members": [
923
+ {
924
+ "kind": "field",
925
+ "name": "isWorking",
926
+ "type": {
927
+ "text": "boolean"
928
+ },
929
+ "privacy": "public",
930
+ "default": "false"
931
+ },
932
+ {
933
+ "kind": "field",
934
+ "name": "records",
935
+ "type": {
936
+ "text": "Record<string, T>"
937
+ },
938
+ "privacy": "private",
939
+ "default": "{}"
940
+ },
941
+ {
942
+ "kind": "field",
943
+ "name": "beforeUpdateListeners",
944
+ "privacy": "private"
945
+ },
946
+ {
947
+ "kind": "field",
948
+ "name": "afterUpdateListeners",
949
+ "privacy": "private"
950
+ },
951
+ {
952
+ "kind": "method",
953
+ "name": "create",
954
+ "privacy": "public",
955
+ "return": {
956
+ "type": {
957
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
958
+ }
959
+ },
960
+ "parameters": [
961
+ {
962
+ "name": "newValue",
963
+ "type": {
964
+ "text": "Omit<T, 'id'>"
965
+ }
966
+ }
967
+ ]
968
+ },
969
+ {
970
+ "kind": "method",
971
+ "name": "read",
972
+ "privacy": "public",
973
+ "return": {
974
+ "type": {
975
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
976
+ }
977
+ },
978
+ "parameters": [
979
+ {
980
+ "name": "id",
981
+ "type": {
982
+ "text": "string"
983
+ }
984
+ }
985
+ ]
986
+ },
987
+ {
988
+ "kind": "method",
989
+ "name": "update",
990
+ "privacy": "public",
991
+ "return": {
992
+ "type": {
993
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
994
+ }
1052
995
  },
1053
- "privacy": "private",
1054
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
996
+ "parameters": [
997
+ {
998
+ "name": "id",
999
+ "type": {
1000
+ "text": "string"
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "newValue",
1005
+ "type": {
1006
+ "text": "Omit<Partial<T>, 'id'>"
1007
+ }
1008
+ }
1009
+ ]
1055
1010
  },
1056
1011
  {
1057
- "kind": "field",
1058
- "name": "_index",
1059
- "type": {
1060
- "text": "any"
1012
+ "kind": "method",
1013
+ "name": "delete",
1014
+ "privacy": "public",
1015
+ "return": {
1016
+ "type": {
1017
+ "text": "Promise<DatabaseAccessResult.Delete>"
1018
+ }
1061
1019
  },
1062
- "privacy": "private"
1020
+ "parameters": [
1021
+ {
1022
+ "name": "id",
1023
+ "type": {
1024
+ "text": "string"
1025
+ }
1026
+ }
1027
+ ]
1063
1028
  },
1064
1029
  {
1065
1030
  "kind": "method",
1066
- "name": "parse",
1031
+ "name": "visit",
1032
+ "privacy": "public",
1033
+ "return": {
1034
+ "type": {
1035
+ "text": "Promise<void>"
1036
+ }
1037
+ },
1067
1038
  "parameters": [
1068
1039
  {
1069
- "name": "localeNumber",
1040
+ "name": "visitor",
1070
1041
  "type": {
1071
- "text": "string"
1042
+ "text": "(record: T) => void"
1072
1043
  }
1073
1044
  }
1074
1045
  ]
1075
1046
  },
1076
1047
  {
1077
1048
  "kind": "method",
1078
- "name": "hasSeparator",
1049
+ "name": "onBeforeUpdate",
1050
+ "privacy": "public",
1079
1051
  "return": {
1080
1052
  "type": {
1081
- "text": "boolean"
1053
+ "text": "() => void"
1082
1054
  }
1083
1055
  },
1084
1056
  "parameters": [
1085
1057
  {
1086
- "name": "localeNumber",
1058
+ "name": "listener",
1087
1059
  "type": {
1088
- "text": "string"
1060
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1089
1061
  }
1090
1062
  }
1091
1063
  ]
1092
1064
  },
1093
1065
  {
1094
- "kind": "field",
1095
- "name": "_group",
1096
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1066
+ "kind": "method",
1067
+ "name": "onAfterUpdate",
1068
+ "privacy": "public",
1069
+ "return": {
1070
+ "type": {
1071
+ "text": "() => void"
1072
+ }
1073
+ },
1074
+ "parameters": [
1075
+ {
1076
+ "name": "listener",
1077
+ "type": {
1078
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1079
+ }
1080
+ }
1081
+ ]
1097
1082
  }
1098
1083
  ]
1099
1084
  }
@@ -1101,10 +1086,25 @@
1101
1086
  "exports": [
1102
1087
  {
1103
1088
  "kind": "js",
1104
- "name": "NumberParser",
1089
+ "name": "InMemoryDatabase",
1105
1090
  "declaration": {
1106
- "name": "NumberParser",
1107
- "module": "src/formatters/localeNumberParser.ts"
1091
+ "name": "InMemoryDatabase",
1092
+ "module": "src/data/inMemoryDatabase.ts"
1093
+ }
1094
+ }
1095
+ ]
1096
+ },
1097
+ {
1098
+ "kind": "javascript-module",
1099
+ "path": "src/data/index.ts",
1100
+ "declarations": [],
1101
+ "exports": [
1102
+ {
1103
+ "kind": "js",
1104
+ "name": "*",
1105
+ "declaration": {
1106
+ "name": "*",
1107
+ "package": "./inMemoryDatabase"
1108
1108
  }
1109
1109
  }
1110
1110
  ]
@@ -1487,6 +1487,78 @@
1487
1487
  }
1488
1488
  ]
1489
1489
  },
1490
+ {
1491
+ "kind": "javascript-module",
1492
+ "path": "src/utils/index.ts",
1493
+ "declarations": [],
1494
+ "exports": [
1495
+ {
1496
+ "kind": "js",
1497
+ "name": "*",
1498
+ "declaration": {
1499
+ "name": "*",
1500
+ "package": "./logger"
1501
+ }
1502
+ }
1503
+ ]
1504
+ },
1505
+ {
1506
+ "kind": "javascript-module",
1507
+ "path": "src/utils/logger.ts",
1508
+ "declarations": [
1509
+ {
1510
+ "kind": "variable",
1511
+ "name": "logger"
1512
+ }
1513
+ ],
1514
+ "exports": [
1515
+ {
1516
+ "kind": "js",
1517
+ "name": "logger",
1518
+ "declaration": {
1519
+ "name": "logger",
1520
+ "module": "src/utils/logger.ts"
1521
+ }
1522
+ }
1523
+ ]
1524
+ },
1525
+ {
1526
+ "kind": "javascript-module",
1527
+ "path": "src/uuid/index.ts",
1528
+ "declarations": [],
1529
+ "exports": [
1530
+ {
1531
+ "kind": "js",
1532
+ "name": "*",
1533
+ "declaration": {
1534
+ "name": "*",
1535
+ "package": "./uuid"
1536
+ }
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "kind": "javascript-module",
1542
+ "path": "src/uuid/uuid.ts",
1543
+ "declarations": [
1544
+ {
1545
+ "kind": "variable",
1546
+ "name": "UUID",
1547
+ "description": "A dependency injection token for the UUID interface.",
1548
+ "privacy": "public"
1549
+ }
1550
+ ],
1551
+ "exports": [
1552
+ {
1553
+ "kind": "js",
1554
+ "name": "UUID",
1555
+ "declaration": {
1556
+ "name": "UUID",
1557
+ "module": "src/uuid/uuid.ts"
1558
+ }
1559
+ }
1560
+ ]
1561
+ },
1490
1562
  {
1491
1563
  "kind": "javascript-module",
1492
1564
  "path": "src/styles/color.ts",
@@ -1834,78 +1906,6 @@
1834
1906
  }
1835
1907
  ]
1836
1908
  },
1837
- {
1838
- "kind": "javascript-module",
1839
- "path": "src/utils/index.ts",
1840
- "declarations": [],
1841
- "exports": [
1842
- {
1843
- "kind": "js",
1844
- "name": "*",
1845
- "declaration": {
1846
- "name": "*",
1847
- "package": "./logger"
1848
- }
1849
- }
1850
- ]
1851
- },
1852
- {
1853
- "kind": "javascript-module",
1854
- "path": "src/utils/logger.ts",
1855
- "declarations": [
1856
- {
1857
- "kind": "variable",
1858
- "name": "logger"
1859
- }
1860
- ],
1861
- "exports": [
1862
- {
1863
- "kind": "js",
1864
- "name": "logger",
1865
- "declaration": {
1866
- "name": "logger",
1867
- "module": "src/utils/logger.ts"
1868
- }
1869
- }
1870
- ]
1871
- },
1872
- {
1873
- "kind": "javascript-module",
1874
- "path": "src/uuid/index.ts",
1875
- "declarations": [],
1876
- "exports": [
1877
- {
1878
- "kind": "js",
1879
- "name": "*",
1880
- "declaration": {
1881
- "name": "*",
1882
- "package": "./uuid"
1883
- }
1884
- }
1885
- ]
1886
- },
1887
- {
1888
- "kind": "javascript-module",
1889
- "path": "src/uuid/uuid.ts",
1890
- "declarations": [
1891
- {
1892
- "kind": "variable",
1893
- "name": "UUID",
1894
- "description": "A dependency injection token for the UUID interface.",
1895
- "privacy": "public"
1896
- }
1897
- ],
1898
- "exports": [
1899
- {
1900
- "kind": "js",
1901
- "name": "UUID",
1902
- "declaration": {
1903
- "name": "UUID",
1904
- "module": "src/uuid/uuid.ts"
1905
- }
1906
- }
1907
- ]
1908
- },
1909
1909
  {
1910
1910
  "kind": "javascript-module",
1911
1911
  "path": "src/window/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.143.1",
4
+ "version": "14.143.3-alpha-b3a864d.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.143.1",
23
- "@genesislcap/genx": "14.143.1",
22
+ "@genesislcap/foundation-testing": "14.143.3-alpha-b3a864d.0",
23
+ "@genesislcap/genx": "14.143.3-alpha-b3a864d.0",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.143.1",
27
+ "@genesislcap/foundation-logger": "14.143.3-alpha-b3a864d.0",
28
28
  "@microsoft/fast-components": "^2.30.6",
29
29
  "@microsoft/fast-element": "^1.12.0",
30
30
  "@microsoft/fast-foundation": "^2.49.4",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "5301ef68fff841cfb91d8b80ff57fee8e553b71b"
45
+ "gitHead": "0c0a289115ff94106d6f8d18306b357d00e32f29"
46
46
  }