@genesislcap/foundation-utils 14.217.2 → 14.217.4

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 +378 -378
  2. package/package.json +11 -11
@@ -167,6 +167,257 @@
167
167
  }
168
168
  ]
169
169
  },
170
+ {
171
+ "kind": "javascript-module",
172
+ "path": "src/decorators/index.ts",
173
+ "declarations": [],
174
+ "exports": [
175
+ {
176
+ "kind": "js",
177
+ "name": "*",
178
+ "declaration": {
179
+ "name": "*",
180
+ "package": "./renderOnChange"
181
+ }
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "kind": "javascript-module",
187
+ "path": "src/decorators/renderOnChange.ts",
188
+ "declarations": [
189
+ {
190
+ "kind": "function",
191
+ "name": "renderOnChange",
192
+ "parameters": [
193
+ {
194
+ "name": "target",
195
+ "type": {
196
+ "text": "FASTElement & { render(): void }"
197
+ },
198
+ "description": "The target to define the property change handler on."
199
+ },
200
+ {
201
+ "name": "name",
202
+ "type": {
203
+ "text": "string"
204
+ },
205
+ "description": "The property name."
206
+ }
207
+ ],
208
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
209
+ "privacy": "public"
210
+ }
211
+ ],
212
+ "exports": [
213
+ {
214
+ "kind": "js",
215
+ "name": "renderOnChange",
216
+ "declaration": {
217
+ "name": "renderOnChange",
218
+ "module": "src/decorators/renderOnChange.ts"
219
+ }
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "kind": "javascript-module",
225
+ "path": "src/data/inMemoryDatabase.ts",
226
+ "declarations": [
227
+ {
228
+ "kind": "class",
229
+ "description": "An in memory database of specific DatabaseRecord types.",
230
+ "name": "InMemoryDatabase",
231
+ "members": [
232
+ {
233
+ "kind": "field",
234
+ "name": "isWorking",
235
+ "type": {
236
+ "text": "boolean"
237
+ },
238
+ "privacy": "public",
239
+ "default": "false"
240
+ },
241
+ {
242
+ "kind": "field",
243
+ "name": "records",
244
+ "type": {
245
+ "text": "Record<string, T>"
246
+ },
247
+ "privacy": "private",
248
+ "default": "{}"
249
+ },
250
+ {
251
+ "kind": "field",
252
+ "name": "beforeUpdateListeners",
253
+ "privacy": "private"
254
+ },
255
+ {
256
+ "kind": "field",
257
+ "name": "afterUpdateListeners",
258
+ "privacy": "private"
259
+ },
260
+ {
261
+ "kind": "method",
262
+ "name": "create",
263
+ "privacy": "public",
264
+ "return": {
265
+ "type": {
266
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
267
+ }
268
+ },
269
+ "parameters": [
270
+ {
271
+ "name": "newValue",
272
+ "type": {
273
+ "text": "Omit<T, 'id'>"
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "kind": "method",
280
+ "name": "read",
281
+ "privacy": "public",
282
+ "return": {
283
+ "type": {
284
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
285
+ }
286
+ },
287
+ "parameters": [
288
+ {
289
+ "name": "id",
290
+ "type": {
291
+ "text": "string"
292
+ }
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "kind": "method",
298
+ "name": "update",
299
+ "privacy": "public",
300
+ "return": {
301
+ "type": {
302
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
303
+ }
304
+ },
305
+ "parameters": [
306
+ {
307
+ "name": "id",
308
+ "type": {
309
+ "text": "string"
310
+ }
311
+ },
312
+ {
313
+ "name": "newValue",
314
+ "type": {
315
+ "text": "Omit<Partial<T>, 'id'>"
316
+ }
317
+ }
318
+ ]
319
+ },
320
+ {
321
+ "kind": "method",
322
+ "name": "delete",
323
+ "privacy": "public",
324
+ "return": {
325
+ "type": {
326
+ "text": "Promise<DatabaseAccessResult.Delete>"
327
+ }
328
+ },
329
+ "parameters": [
330
+ {
331
+ "name": "id",
332
+ "type": {
333
+ "text": "string"
334
+ }
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ "kind": "method",
340
+ "name": "visit",
341
+ "privacy": "public",
342
+ "return": {
343
+ "type": {
344
+ "text": "Promise<void>"
345
+ }
346
+ },
347
+ "parameters": [
348
+ {
349
+ "name": "visitor",
350
+ "type": {
351
+ "text": "(record: T) => void"
352
+ }
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "kind": "method",
358
+ "name": "onBeforeUpdate",
359
+ "privacy": "public",
360
+ "return": {
361
+ "type": {
362
+ "text": "() => void"
363
+ }
364
+ },
365
+ "parameters": [
366
+ {
367
+ "name": "listener",
368
+ "type": {
369
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
370
+ }
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "kind": "method",
376
+ "name": "onAfterUpdate",
377
+ "privacy": "public",
378
+ "return": {
379
+ "type": {
380
+ "text": "() => void"
381
+ }
382
+ },
383
+ "parameters": [
384
+ {
385
+ "name": "listener",
386
+ "type": {
387
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
388
+ }
389
+ }
390
+ ]
391
+ }
392
+ ]
393
+ }
394
+ ],
395
+ "exports": [
396
+ {
397
+ "kind": "js",
398
+ "name": "InMemoryDatabase",
399
+ "declaration": {
400
+ "name": "InMemoryDatabase",
401
+ "module": "src/data/inMemoryDatabase.ts"
402
+ }
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "kind": "javascript-module",
408
+ "path": "src/data/index.ts",
409
+ "declarations": [],
410
+ "exports": [
411
+ {
412
+ "kind": "js",
413
+ "name": "*",
414
+ "declaration": {
415
+ "name": "*",
416
+ "package": "./inMemoryDatabase"
417
+ }
418
+ }
419
+ ]
420
+ },
170
421
  {
171
422
  "kind": "javascript-module",
172
423
  "path": "src/design-system/design-system.ts",
@@ -547,337 +798,124 @@
547
798
  },
548
799
  {
549
800
  "kind": "method",
550
- "name": "has",
551
- "return": {
552
- "type": {
553
- "text": ""
554
- }
555
- },
556
- "parameters": [
557
- {
558
- "name": "key",
559
- "type": {
560
- "text": "keyof TErrorDetailMap"
561
- },
562
- "description": "The key."
563
- }
564
- ],
565
- "description": "Has an error for key.",
566
- "privacy": "public"
567
- },
568
- {
569
- "kind": "method",
570
- "name": "delete",
571
- "return": {
572
- "type": {
573
- "text": ""
574
- }
575
- },
576
- "parameters": [
577
- {
578
- "name": "key",
579
- "type": {
580
- "text": "keyof TErrorDetailMap"
581
- },
582
- "description": "The key."
583
- }
584
- ],
585
- "description": "Delete an error.",
586
- "privacy": "public"
587
- },
588
- {
589
- "kind": "method",
590
- "name": "clear",
591
- "description": "Clear errors.",
592
- "privacy": "public"
593
- },
594
- {
595
- "kind": "field",
596
- "name": "size",
597
- "type": {
598
- "text": "number"
599
- },
600
- "description": "The size of the error map.",
601
- "return": {
602
- "type": {
603
- "text": ""
604
- }
605
- },
606
- "privacy": "public",
607
- "readonly": true
608
- },
609
- {
610
- "kind": "method",
611
- "name": "values",
612
- "privacy": "public"
613
- },
614
- {
615
- "kind": "field",
616
- "name": "messages",
617
- "type": {
618
- "text": "string"
619
- },
620
- "description": "{@inheritDoc ErrorMap.messages}",
621
- "readonly": true
622
- }
623
- ]
624
- },
625
- {
626
- "kind": "function",
627
- "name": "createErrorMap",
628
- "return": {
629
- "type": {
630
- "text": ""
631
- }
632
- },
633
- "parameters": [
634
- {
635
- "name": "logger",
636
- "type": {
637
- "text": "ErrorMapLogger"
638
- },
639
- "description": "A logger error method reference."
640
- }
641
- ],
642
- "description": "A factory to create the error map.",
643
- "privacy": "public"
644
- }
645
- ],
646
- "exports": [
647
- {
648
- "kind": "js",
649
- "name": "DefaultErrorMap",
650
- "declaration": {
651
- "name": "DefaultErrorMap",
652
- "module": "src/error/errorMap.ts"
653
- }
654
- },
655
- {
656
- "kind": "js",
657
- "name": "createErrorMap",
658
- "declaration": {
659
- "name": "createErrorMap",
660
- "module": "src/error/errorMap.ts"
661
- }
662
- }
663
- ]
664
- },
665
- {
666
- "kind": "javascript-module",
667
- "path": "src/error/index.ts",
668
- "declarations": [],
669
- "exports": [
670
- {
671
- "kind": "js",
672
- "name": "*",
673
- "declaration": {
674
- "name": "*",
675
- "package": "./errorMap"
676
- }
677
- }
678
- ]
679
- },
680
- {
681
- "kind": "javascript-module",
682
- "path": "src/data/inMemoryDatabase.ts",
683
- "declarations": [
684
- {
685
- "kind": "class",
686
- "description": "An in memory database of specific DatabaseRecord types.",
687
- "name": "InMemoryDatabase",
688
- "members": [
689
- {
690
- "kind": "field",
691
- "name": "isWorking",
692
- "type": {
693
- "text": "boolean"
694
- },
695
- "privacy": "public",
696
- "default": "false"
697
- },
698
- {
699
- "kind": "field",
700
- "name": "records",
701
- "type": {
702
- "text": "Record<string, T>"
703
- },
704
- "privacy": "private",
705
- "default": "{}"
706
- },
707
- {
708
- "kind": "field",
709
- "name": "beforeUpdateListeners",
710
- "privacy": "private"
711
- },
712
- {
713
- "kind": "field",
714
- "name": "afterUpdateListeners",
715
- "privacy": "private"
716
- },
717
- {
718
- "kind": "method",
719
- "name": "create",
720
- "privacy": "public",
721
- "return": {
722
- "type": {
723
- "text": "Promise<DatabaseAccessResult.Create<T>>"
724
- }
725
- },
726
- "parameters": [
727
- {
728
- "name": "newValue",
729
- "type": {
730
- "text": "Omit<T, 'id'>"
731
- }
732
- }
733
- ]
734
- },
735
- {
736
- "kind": "method",
737
- "name": "read",
738
- "privacy": "public",
739
- "return": {
740
- "type": {
741
- "text": "Promise<DatabaseAccessResult.Read<T>>"
742
- }
743
- },
744
- "parameters": [
745
- {
746
- "name": "id",
747
- "type": {
748
- "text": "string"
749
- }
750
- }
751
- ]
752
- },
753
- {
754
- "kind": "method",
755
- "name": "update",
756
- "privacy": "public",
757
- "return": {
758
- "type": {
759
- "text": "Promise<DatabaseAccessResult.Update<T>>"
760
- }
761
- },
762
- "parameters": [
763
- {
764
- "name": "id",
765
- "type": {
766
- "text": "string"
767
- }
768
- },
769
- {
770
- "name": "newValue",
771
- "type": {
772
- "text": "Omit<Partial<T>, 'id'>"
773
- }
774
- }
775
- ]
776
- },
777
- {
778
- "kind": "method",
779
- "name": "delete",
780
- "privacy": "public",
781
- "return": {
782
- "type": {
783
- "text": "Promise<DatabaseAccessResult.Delete>"
784
- }
785
- },
786
- "parameters": [
787
- {
788
- "name": "id",
789
- "type": {
790
- "text": "string"
791
- }
792
- }
793
- ]
794
- },
795
- {
796
- "kind": "method",
797
- "name": "visit",
798
- "privacy": "public",
801
+ "name": "has",
799
802
  "return": {
800
803
  "type": {
801
- "text": "Promise<void>"
804
+ "text": ""
802
805
  }
803
806
  },
804
807
  "parameters": [
805
808
  {
806
- "name": "visitor",
809
+ "name": "key",
807
810
  "type": {
808
- "text": "(record: T) => void"
809
- }
811
+ "text": "keyof TErrorDetailMap"
812
+ },
813
+ "description": "The key."
810
814
  }
811
- ]
815
+ ],
816
+ "description": "Has an error for key.",
817
+ "privacy": "public"
812
818
  },
813
819
  {
814
820
  "kind": "method",
815
- "name": "onBeforeUpdate",
816
- "privacy": "public",
821
+ "name": "delete",
817
822
  "return": {
818
823
  "type": {
819
- "text": "() => void"
824
+ "text": ""
820
825
  }
821
826
  },
822
827
  "parameters": [
823
828
  {
824
- "name": "listener",
829
+ "name": "key",
825
830
  "type": {
826
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
827
- }
831
+ "text": "keyof TErrorDetailMap"
832
+ },
833
+ "description": "The key."
828
834
  }
829
- ]
835
+ ],
836
+ "description": "Delete an error.",
837
+ "privacy": "public"
830
838
  },
831
839
  {
832
840
  "kind": "method",
833
- "name": "onAfterUpdate",
834
- "privacy": "public",
841
+ "name": "clear",
842
+ "description": "Clear errors.",
843
+ "privacy": "public"
844
+ },
845
+ {
846
+ "kind": "field",
847
+ "name": "size",
848
+ "type": {
849
+ "text": "number"
850
+ },
851
+ "description": "The size of the error map.",
835
852
  "return": {
836
853
  "type": {
837
- "text": "() => void"
854
+ "text": ""
838
855
  }
839
856
  },
840
- "parameters": [
841
- {
842
- "name": "listener",
843
- "type": {
844
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
845
- }
846
- }
847
- ]
857
+ "privacy": "public",
858
+ "readonly": true
859
+ },
860
+ {
861
+ "kind": "method",
862
+ "name": "values",
863
+ "privacy": "public"
864
+ },
865
+ {
866
+ "kind": "field",
867
+ "name": "messages",
868
+ "type": {
869
+ "text": "string"
870
+ },
871
+ "description": "{@inheritDoc ErrorMap.messages}",
872
+ "readonly": true
848
873
  }
849
874
  ]
875
+ },
876
+ {
877
+ "kind": "function",
878
+ "name": "createErrorMap",
879
+ "return": {
880
+ "type": {
881
+ "text": ""
882
+ }
883
+ },
884
+ "parameters": [
885
+ {
886
+ "name": "logger",
887
+ "type": {
888
+ "text": "ErrorMapLogger"
889
+ },
890
+ "description": "A logger error method reference."
891
+ }
892
+ ],
893
+ "description": "A factory to create the error map.",
894
+ "privacy": "public"
850
895
  }
851
896
  ],
852
897
  "exports": [
853
898
  {
854
899
  "kind": "js",
855
- "name": "InMemoryDatabase",
900
+ "name": "DefaultErrorMap",
856
901
  "declaration": {
857
- "name": "InMemoryDatabase",
858
- "module": "src/data/inMemoryDatabase.ts"
902
+ "name": "DefaultErrorMap",
903
+ "module": "src/error/errorMap.ts"
859
904
  }
860
- }
861
- ]
862
- },
863
- {
864
- "kind": "javascript-module",
865
- "path": "src/data/index.ts",
866
- "declarations": [],
867
- "exports": [
905
+ },
868
906
  {
869
907
  "kind": "js",
870
- "name": "*",
908
+ "name": "createErrorMap",
871
909
  "declaration": {
872
- "name": "*",
873
- "package": "./inMemoryDatabase"
910
+ "name": "createErrorMap",
911
+ "module": "src/error/errorMap.ts"
874
912
  }
875
913
  }
876
914
  ]
877
915
  },
878
916
  {
879
917
  "kind": "javascript-module",
880
- "path": "src/decorators/index.ts",
918
+ "path": "src/error/index.ts",
881
919
  "declarations": [],
882
920
  "exports": [
883
921
  {
@@ -885,45 +923,7 @@
885
923
  "name": "*",
886
924
  "declaration": {
887
925
  "name": "*",
888
- "package": "./renderOnChange"
889
- }
890
- }
891
- ]
892
- },
893
- {
894
- "kind": "javascript-module",
895
- "path": "src/decorators/renderOnChange.ts",
896
- "declarations": [
897
- {
898
- "kind": "function",
899
- "name": "renderOnChange",
900
- "parameters": [
901
- {
902
- "name": "target",
903
- "type": {
904
- "text": "FASTElement & { render(): void }"
905
- },
906
- "description": "The target to define the property change handler on."
907
- },
908
- {
909
- "name": "name",
910
- "type": {
911
- "text": "string"
912
- },
913
- "description": "The property name."
914
- }
915
- ],
916
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
917
- "privacy": "public"
918
- }
919
- ],
920
- "exports": [
921
- {
922
- "kind": "js",
923
- "name": "renderOnChange",
924
- "declaration": {
925
- "name": "renderOnChange",
926
- "module": "src/decorators/renderOnChange.ts"
926
+ "package": "./errorMap"
927
927
  }
928
928
  }
929
929
  ]
@@ -1465,21 +1465,6 @@
1465
1465
  }
1466
1466
  ]
1467
1467
  },
1468
- {
1469
- "kind": "javascript-module",
1470
- "path": "src/serializers/index.ts",
1471
- "declarations": [],
1472
- "exports": [
1473
- {
1474
- "kind": "js",
1475
- "name": "*",
1476
- "declaration": {
1477
- "name": "*",
1478
- "package": "./json"
1479
- }
1480
- }
1481
- ]
1482
- },
1483
1468
  {
1484
1469
  "kind": "javascript-module",
1485
1470
  "path": "src/resource/index.ts",
@@ -1521,6 +1506,21 @@
1521
1506
  }
1522
1507
  ]
1523
1508
  },
1509
+ {
1510
+ "kind": "javascript-module",
1511
+ "path": "src/serializers/index.ts",
1512
+ "declarations": [],
1513
+ "exports": [
1514
+ {
1515
+ "kind": "js",
1516
+ "name": "*",
1517
+ "declaration": {
1518
+ "name": "*",
1519
+ "package": "./json"
1520
+ }
1521
+ }
1522
+ ]
1523
+ },
1524
1524
  {
1525
1525
  "kind": "javascript-module",
1526
1526
  "path": "src/state/index.ts",
@@ -1647,6 +1647,43 @@
1647
1647
  }
1648
1648
  ]
1649
1649
  },
1650
+ {
1651
+ "kind": "javascript-module",
1652
+ "path": "src/utils/index.ts",
1653
+ "declarations": [],
1654
+ "exports": [
1655
+ {
1656
+ "kind": "js",
1657
+ "name": "*",
1658
+ "declaration": {
1659
+ "name": "*",
1660
+ "package": "./logger"
1661
+ }
1662
+ }
1663
+ ]
1664
+ },
1665
+ {
1666
+ "kind": "javascript-module",
1667
+ "path": "src/utils/logger.ts",
1668
+ "declarations": [
1669
+ {
1670
+ "kind": "variable",
1671
+ "name": "logger",
1672
+ "description": "Logger for the foundation-utils package",
1673
+ "privacy": "public"
1674
+ }
1675
+ ],
1676
+ "exports": [
1677
+ {
1678
+ "kind": "js",
1679
+ "name": "logger",
1680
+ "declaration": {
1681
+ "name": "logger",
1682
+ "module": "src/utils/logger.ts"
1683
+ }
1684
+ }
1685
+ ]
1686
+ },
1650
1687
  {
1651
1688
  "kind": "javascript-module",
1652
1689
  "path": "src/styles/color.ts",
@@ -1994,43 +2031,6 @@
1994
2031
  }
1995
2032
  ]
1996
2033
  },
1997
- {
1998
- "kind": "javascript-module",
1999
- "path": "src/utils/index.ts",
2000
- "declarations": [],
2001
- "exports": [
2002
- {
2003
- "kind": "js",
2004
- "name": "*",
2005
- "declaration": {
2006
- "name": "*",
2007
- "package": "./logger"
2008
- }
2009
- }
2010
- ]
2011
- },
2012
- {
2013
- "kind": "javascript-module",
2014
- "path": "src/utils/logger.ts",
2015
- "declarations": [
2016
- {
2017
- "kind": "variable",
2018
- "name": "logger",
2019
- "description": "Logger for the foundation-utils package",
2020
- "privacy": "public"
2021
- }
2022
- ],
2023
- "exports": [
2024
- {
2025
- "kind": "js",
2026
- "name": "logger",
2027
- "declaration": {
2028
- "name": "logger",
2029
- "module": "src/utils/logger.ts"
2030
- }
2031
- }
2032
- ]
2033
- },
2034
2034
  {
2035
2035
  "kind": "javascript-module",
2036
2036
  "path": "src/uuid/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.217.2",
4
+ "version": "14.217.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,20 +27,20 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.217.2",
31
- "@genesislcap/genx": "14.217.2",
32
- "@genesislcap/rollup-builder": "14.217.2",
33
- "@genesislcap/ts-builder": "14.217.2",
34
- "@genesislcap/uvu-playwright-builder": "14.217.2",
35
- "@genesislcap/vite-builder": "14.217.2",
36
- "@genesislcap/webpack-builder": "14.217.2",
30
+ "@genesislcap/foundation-testing": "14.217.4",
31
+ "@genesislcap/genx": "14.217.4",
32
+ "@genesislcap/rollup-builder": "14.217.4",
33
+ "@genesislcap/ts-builder": "14.217.4",
34
+ "@genesislcap/uvu-playwright-builder": "14.217.4",
35
+ "@genesislcap/vite-builder": "14.217.4",
36
+ "@genesislcap/webpack-builder": "14.217.4",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.217.2",
40
+ "@genesislcap/foundation-logger": "14.217.4",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
- "@microsoft/fast-foundation": "^2.49.4",
43
+ "@microsoft/fast-foundation": "2.49.6",
44
44
  "lossless-json": "^2.0.11",
45
45
  "numeral": "2.0.6",
46
46
  "tslib": "^2.3.1",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "69c1d43ea24b182462a2bc522e270c2fb5502244"
58
+ "gitHead": "d7e7d4b855806613641fe36056b06efebc70a5a3"
59
59
  }