@genesislcap/foundation-utils 14.143.2 → 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,257 +151,6 @@
151
151
  }
152
152
  ]
153
153
  },
154
- {
155
- "kind": "javascript-module",
156
- "path": "src/data/inMemoryDatabase.ts",
157
- "declarations": [
158
- {
159
- "kind": "class",
160
- "description": "An in memory database of specific DatabaseRecord types.",
161
- "name": "InMemoryDatabase",
162
- "members": [
163
- {
164
- "kind": "field",
165
- "name": "isWorking",
166
- "type": {
167
- "text": "boolean"
168
- },
169
- "privacy": "public",
170
- "default": "false"
171
- },
172
- {
173
- "kind": "field",
174
- "name": "records",
175
- "type": {
176
- "text": "Record<string, T>"
177
- },
178
- "privacy": "private",
179
- "default": "{}"
180
- },
181
- {
182
- "kind": "field",
183
- "name": "beforeUpdateListeners",
184
- "privacy": "private"
185
- },
186
- {
187
- "kind": "field",
188
- "name": "afterUpdateListeners",
189
- "privacy": "private"
190
- },
191
- {
192
- "kind": "method",
193
- "name": "create",
194
- "privacy": "public",
195
- "return": {
196
- "type": {
197
- "text": "Promise<DatabaseAccessResult.Create<T>>"
198
- }
199
- },
200
- "parameters": [
201
- {
202
- "name": "newValue",
203
- "type": {
204
- "text": "Omit<T, 'id'>"
205
- }
206
- }
207
- ]
208
- },
209
- {
210
- "kind": "method",
211
- "name": "read",
212
- "privacy": "public",
213
- "return": {
214
- "type": {
215
- "text": "Promise<DatabaseAccessResult.Read<T>>"
216
- }
217
- },
218
- "parameters": [
219
- {
220
- "name": "id",
221
- "type": {
222
- "text": "string"
223
- }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "method",
229
- "name": "update",
230
- "privacy": "public",
231
- "return": {
232
- "type": {
233
- "text": "Promise<DatabaseAccessResult.Update<T>>"
234
- }
235
- },
236
- "parameters": [
237
- {
238
- "name": "id",
239
- "type": {
240
- "text": "string"
241
- }
242
- },
243
- {
244
- "name": "newValue",
245
- "type": {
246
- "text": "Omit<Partial<T>, 'id'>"
247
- }
248
- }
249
- ]
250
- },
251
- {
252
- "kind": "method",
253
- "name": "delete",
254
- "privacy": "public",
255
- "return": {
256
- "type": {
257
- "text": "Promise<DatabaseAccessResult.Delete>"
258
- }
259
- },
260
- "parameters": [
261
- {
262
- "name": "id",
263
- "type": {
264
- "text": "string"
265
- }
266
- }
267
- ]
268
- },
269
- {
270
- "kind": "method",
271
- "name": "visit",
272
- "privacy": "public",
273
- "return": {
274
- "type": {
275
- "text": "Promise<void>"
276
- }
277
- },
278
- "parameters": [
279
- {
280
- "name": "visitor",
281
- "type": {
282
- "text": "(record: T) => void"
283
- }
284
- }
285
- ]
286
- },
287
- {
288
- "kind": "method",
289
- "name": "onBeforeUpdate",
290
- "privacy": "public",
291
- "return": {
292
- "type": {
293
- "text": "() => void"
294
- }
295
- },
296
- "parameters": [
297
- {
298
- "name": "listener",
299
- "type": {
300
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
301
- }
302
- }
303
- ]
304
- },
305
- {
306
- "kind": "method",
307
- "name": "onAfterUpdate",
308
- "privacy": "public",
309
- "return": {
310
- "type": {
311
- "text": "() => void"
312
- }
313
- },
314
- "parameters": [
315
- {
316
- "name": "listener",
317
- "type": {
318
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
319
- }
320
- }
321
- ]
322
- }
323
- ]
324
- }
325
- ],
326
- "exports": [
327
- {
328
- "kind": "js",
329
- "name": "InMemoryDatabase",
330
- "declaration": {
331
- "name": "InMemoryDatabase",
332
- "module": "src/data/inMemoryDatabase.ts"
333
- }
334
- }
335
- ]
336
- },
337
- {
338
- "kind": "javascript-module",
339
- "path": "src/data/index.ts",
340
- "declarations": [],
341
- "exports": [
342
- {
343
- "kind": "js",
344
- "name": "*",
345
- "declaration": {
346
- "name": "*",
347
- "package": "./inMemoryDatabase"
348
- }
349
- }
350
- ]
351
- },
352
- {
353
- "kind": "javascript-module",
354
- "path": "src/decorators/index.ts",
355
- "declarations": [],
356
- "exports": [
357
- {
358
- "kind": "js",
359
- "name": "*",
360
- "declaration": {
361
- "name": "*",
362
- "package": "./renderOnChange"
363
- }
364
- }
365
- ]
366
- },
367
- {
368
- "kind": "javascript-module",
369
- "path": "src/decorators/renderOnChange.ts",
370
- "declarations": [
371
- {
372
- "kind": "function",
373
- "name": "renderOnChange",
374
- "parameters": [
375
- {
376
- "name": "target",
377
- "type": {
378
- "text": "FASTElement & { render(): void }"
379
- },
380
- "description": "The target to define the property change handler on."
381
- },
382
- {
383
- "name": "name",
384
- "type": {
385
- "text": "string"
386
- },
387
- "description": "The property name."
388
- }
389
- ],
390
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
391
- "privacy": "public"
392
- }
393
- ],
394
- "exports": [
395
- {
396
- "kind": "js",
397
- "name": "renderOnChange",
398
- "declaration": {
399
- "name": "renderOnChange",
400
- "module": "src/decorators/renderOnChange.ts"
401
- }
402
- }
403
- ]
404
- },
405
154
  {
406
155
  "kind": "javascript-module",
407
156
  "path": "src/design-system/design-system.ts",
@@ -698,6 +447,59 @@
698
447
  }
699
448
  ]
700
449
  },
450
+ {
451
+ "kind": "javascript-module",
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",
468
+ "declarations": [
469
+ {
470
+ "kind": "function",
471
+ "name": "renderOnChange",
472
+ "parameters": [
473
+ {
474
+ "name": "target",
475
+ "type": {
476
+ "text": "FASTElement & { render(): void }"
477
+ },
478
+ "description": "The target to define the property change handler on."
479
+ },
480
+ {
481
+ "name": "name",
482
+ "type": {
483
+ "text": "string"
484
+ },
485
+ "description": "The property name."
486
+ }
487
+ ],
488
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
489
+ "privacy": "public"
490
+ }
491
+ ],
492
+ "exports": [
493
+ {
494
+ "kind": "js",
495
+ "name": "renderOnChange",
496
+ "declaration": {
497
+ "name": "renderOnChange",
498
+ "module": "src/decorators/renderOnChange.ts"
499
+ }
500
+ }
501
+ ]
502
+ },
701
503
  {
702
504
  "kind": "javascript-module",
703
505
  "path": "src/error/errorMap.ts",
@@ -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.2",
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.2",
23
- "@genesislcap/genx": "14.143.2",
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.2",
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": "126575303f48e0bcf0254498a0341d39fd1c8400"
45
+ "gitHead": "0c0a289115ff94106d6f8d18306b357d00e32f29"
46
46
  }