@genesislcap/foundation-utils 14.217.2-alpha-06a4fa3.0 → 14.217.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/custom-elements.json +360 -360
  2. package/package.json +10 -10
@@ -167,257 +167,6 @@
167
167
  }
168
168
  ]
169
169
  },
170
- {
171
- "kind": "javascript-module",
172
- "path": "src/data/inMemoryDatabase.ts",
173
- "declarations": [
174
- {
175
- "kind": "class",
176
- "description": "An in memory database of specific DatabaseRecord types.",
177
- "name": "InMemoryDatabase",
178
- "members": [
179
- {
180
- "kind": "field",
181
- "name": "isWorking",
182
- "type": {
183
- "text": "boolean"
184
- },
185
- "privacy": "public",
186
- "default": "false"
187
- },
188
- {
189
- "kind": "field",
190
- "name": "records",
191
- "type": {
192
- "text": "Record<string, T>"
193
- },
194
- "privacy": "private",
195
- "default": "{}"
196
- },
197
- {
198
- "kind": "field",
199
- "name": "beforeUpdateListeners",
200
- "privacy": "private"
201
- },
202
- {
203
- "kind": "field",
204
- "name": "afterUpdateListeners",
205
- "privacy": "private"
206
- },
207
- {
208
- "kind": "method",
209
- "name": "create",
210
- "privacy": "public",
211
- "return": {
212
- "type": {
213
- "text": "Promise<DatabaseAccessResult.Create<T>>"
214
- }
215
- },
216
- "parameters": [
217
- {
218
- "name": "newValue",
219
- "type": {
220
- "text": "Omit<T, 'id'>"
221
- }
222
- }
223
- ]
224
- },
225
- {
226
- "kind": "method",
227
- "name": "read",
228
- "privacy": "public",
229
- "return": {
230
- "type": {
231
- "text": "Promise<DatabaseAccessResult.Read<T>>"
232
- }
233
- },
234
- "parameters": [
235
- {
236
- "name": "id",
237
- "type": {
238
- "text": "string"
239
- }
240
- }
241
- ]
242
- },
243
- {
244
- "kind": "method",
245
- "name": "update",
246
- "privacy": "public",
247
- "return": {
248
- "type": {
249
- "text": "Promise<DatabaseAccessResult.Update<T>>"
250
- }
251
- },
252
- "parameters": [
253
- {
254
- "name": "id",
255
- "type": {
256
- "text": "string"
257
- }
258
- },
259
- {
260
- "name": "newValue",
261
- "type": {
262
- "text": "Omit<Partial<T>, 'id'>"
263
- }
264
- }
265
- ]
266
- },
267
- {
268
- "kind": "method",
269
- "name": "delete",
270
- "privacy": "public",
271
- "return": {
272
- "type": {
273
- "text": "Promise<DatabaseAccessResult.Delete>"
274
- }
275
- },
276
- "parameters": [
277
- {
278
- "name": "id",
279
- "type": {
280
- "text": "string"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "visit",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<void>"
292
- }
293
- },
294
- "parameters": [
295
- {
296
- "name": "visitor",
297
- "type": {
298
- "text": "(record: T) => void"
299
- }
300
- }
301
- ]
302
- },
303
- {
304
- "kind": "method",
305
- "name": "onBeforeUpdate",
306
- "privacy": "public",
307
- "return": {
308
- "type": {
309
- "text": "() => void"
310
- }
311
- },
312
- "parameters": [
313
- {
314
- "name": "listener",
315
- "type": {
316
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
317
- }
318
- }
319
- ]
320
- },
321
- {
322
- "kind": "method",
323
- "name": "onAfterUpdate",
324
- "privacy": "public",
325
- "return": {
326
- "type": {
327
- "text": "() => void"
328
- }
329
- },
330
- "parameters": [
331
- {
332
- "name": "listener",
333
- "type": {
334
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
335
- }
336
- }
337
- ]
338
- }
339
- ]
340
- }
341
- ],
342
- "exports": [
343
- {
344
- "kind": "js",
345
- "name": "InMemoryDatabase",
346
- "declaration": {
347
- "name": "InMemoryDatabase",
348
- "module": "src/data/inMemoryDatabase.ts"
349
- }
350
- }
351
- ]
352
- },
353
- {
354
- "kind": "javascript-module",
355
- "path": "src/data/index.ts",
356
- "declarations": [],
357
- "exports": [
358
- {
359
- "kind": "js",
360
- "name": "*",
361
- "declaration": {
362
- "name": "*",
363
- "package": "./inMemoryDatabase"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "kind": "javascript-module",
370
- "path": "src/decorators/index.ts",
371
- "declarations": [],
372
- "exports": [
373
- {
374
- "kind": "js",
375
- "name": "*",
376
- "declaration": {
377
- "name": "*",
378
- "package": "./renderOnChange"
379
- }
380
- }
381
- ]
382
- },
383
- {
384
- "kind": "javascript-module",
385
- "path": "src/decorators/renderOnChange.ts",
386
- "declarations": [
387
- {
388
- "kind": "function",
389
- "name": "renderOnChange",
390
- "parameters": [
391
- {
392
- "name": "target",
393
- "type": {
394
- "text": "FASTElement & { render(): void }"
395
- },
396
- "description": "The target to define the property change handler on."
397
- },
398
- {
399
- "name": "name",
400
- "type": {
401
- "text": "string"
402
- },
403
- "description": "The property name."
404
- }
405
- ],
406
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
407
- "privacy": "public"
408
- }
409
- ],
410
- "exports": [
411
- {
412
- "kind": "js",
413
- "name": "renderOnChange",
414
- "declaration": {
415
- "name": "renderOnChange",
416
- "module": "src/decorators/renderOnChange.ts"
417
- }
418
- }
419
- ]
420
- },
421
170
  {
422
171
  "kind": "javascript-module",
423
172
  "path": "src/design-system/design-system.ts",
@@ -746,176 +495,389 @@
746
495
  },
747
496
  {
748
497
  "kind": "field",
749
- "name": "lastError",
750
- "type": {
751
- "text": "Error"
752
- },
753
- "description": "{@inheritDoc ErrorMap.lastError}"
498
+ "name": "lastError",
499
+ "type": {
500
+ "text": "Error"
501
+ },
502
+ "description": "{@inheritDoc ErrorMap.lastError}"
503
+ },
504
+ {
505
+ "kind": "method",
506
+ "name": "set",
507
+ "return": {
508
+ "type": {
509
+ "text": "void"
510
+ }
511
+ },
512
+ "parameters": [
513
+ {
514
+ "name": "key",
515
+ "type": {
516
+ "text": "keyof TErrorDetailMap"
517
+ }
518
+ },
519
+ {
520
+ "name": "error",
521
+ "type": {
522
+ "text": "Error"
523
+ }
524
+ }
525
+ ],
526
+ "description": "{@inheritDoc ErrorMap.set}"
527
+ },
528
+ {
529
+ "kind": "method",
530
+ "name": "get",
531
+ "return": {
532
+ "type": {
533
+ "text": ""
534
+ }
535
+ },
536
+ "parameters": [
537
+ {
538
+ "name": "key",
539
+ "type": {
540
+ "text": "keyof TErrorDetailMap"
541
+ },
542
+ "description": "The key."
543
+ }
544
+ ],
545
+ "description": "Get an error by key.",
546
+ "privacy": "public"
547
+ },
548
+ {
549
+ "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"
754
716
  },
755
717
  {
756
718
  "kind": "method",
757
- "name": "set",
719
+ "name": "create",
720
+ "privacy": "public",
758
721
  "return": {
759
722
  "type": {
760
- "text": "void"
723
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
761
724
  }
762
725
  },
763
726
  "parameters": [
764
727
  {
765
- "name": "key",
766
- "type": {
767
- "text": "keyof TErrorDetailMap"
768
- }
769
- },
770
- {
771
- "name": "error",
728
+ "name": "newValue",
772
729
  "type": {
773
- "text": "Error"
730
+ "text": "Omit<T, 'id'>"
774
731
  }
775
732
  }
776
- ],
777
- "description": "{@inheritDoc ErrorMap.set}"
733
+ ]
778
734
  },
779
735
  {
780
736
  "kind": "method",
781
- "name": "get",
737
+ "name": "read",
738
+ "privacy": "public",
782
739
  "return": {
783
740
  "type": {
784
- "text": ""
741
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
785
742
  }
786
743
  },
787
744
  "parameters": [
788
745
  {
789
- "name": "key",
746
+ "name": "id",
790
747
  "type": {
791
- "text": "keyof TErrorDetailMap"
792
- },
793
- "description": "The key."
748
+ "text": "string"
749
+ }
794
750
  }
795
- ],
796
- "description": "Get an error by key.",
797
- "privacy": "public"
751
+ ]
798
752
  },
799
753
  {
800
754
  "kind": "method",
801
- "name": "has",
755
+ "name": "update",
756
+ "privacy": "public",
802
757
  "return": {
803
758
  "type": {
804
- "text": ""
759
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
805
760
  }
806
761
  },
807
762
  "parameters": [
808
763
  {
809
- "name": "key",
764
+ "name": "id",
810
765
  "type": {
811
- "text": "keyof TErrorDetailMap"
812
- },
813
- "description": "The key."
766
+ "text": "string"
767
+ }
768
+ },
769
+ {
770
+ "name": "newValue",
771
+ "type": {
772
+ "text": "Omit<Partial<T>, 'id'>"
773
+ }
814
774
  }
815
- ],
816
- "description": "Has an error for key.",
817
- "privacy": "public"
775
+ ]
818
776
  },
819
777
  {
820
778
  "kind": "method",
821
779
  "name": "delete",
780
+ "privacy": "public",
822
781
  "return": {
823
782
  "type": {
824
- "text": ""
783
+ "text": "Promise<DatabaseAccessResult.Delete>"
825
784
  }
826
785
  },
827
786
  "parameters": [
828
787
  {
829
- "name": "key",
788
+ "name": "id",
830
789
  "type": {
831
- "text": "keyof TErrorDetailMap"
832
- },
833
- "description": "The key."
790
+ "text": "string"
791
+ }
834
792
  }
835
- ],
836
- "description": "Delete an error.",
837
- "privacy": "public"
793
+ ]
838
794
  },
839
795
  {
840
796
  "kind": "method",
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.",
797
+ "name": "visit",
798
+ "privacy": "public",
852
799
  "return": {
853
800
  "type": {
854
- "text": ""
801
+ "text": "Promise<void>"
855
802
  }
856
803
  },
857
- "privacy": "public",
858
- "readonly": true
804
+ "parameters": [
805
+ {
806
+ "name": "visitor",
807
+ "type": {
808
+ "text": "(record: T) => void"
809
+ }
810
+ }
811
+ ]
859
812
  },
860
813
  {
861
814
  "kind": "method",
862
- "name": "values",
863
- "privacy": "public"
815
+ "name": "onBeforeUpdate",
816
+ "privacy": "public",
817
+ "return": {
818
+ "type": {
819
+ "text": "() => void"
820
+ }
821
+ },
822
+ "parameters": [
823
+ {
824
+ "name": "listener",
825
+ "type": {
826
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
827
+ }
828
+ }
829
+ ]
864
830
  },
865
831
  {
866
- "kind": "field",
867
- "name": "messages",
868
- "type": {
869
- "text": "string"
832
+ "kind": "method",
833
+ "name": "onAfterUpdate",
834
+ "privacy": "public",
835
+ "return": {
836
+ "type": {
837
+ "text": "() => void"
838
+ }
870
839
  },
871
- "description": "{@inheritDoc ErrorMap.messages}",
872
- "readonly": true
840
+ "parameters": [
841
+ {
842
+ "name": "listener",
843
+ "type": {
844
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
845
+ }
846
+ }
847
+ ]
873
848
  }
874
849
  ]
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"
895
850
  }
896
851
  ],
897
852
  "exports": [
898
853
  {
899
854
  "kind": "js",
900
- "name": "DefaultErrorMap",
855
+ "name": "InMemoryDatabase",
901
856
  "declaration": {
902
- "name": "DefaultErrorMap",
903
- "module": "src/error/errorMap.ts"
857
+ "name": "InMemoryDatabase",
858
+ "module": "src/data/inMemoryDatabase.ts"
904
859
  }
905
- },
860
+ }
861
+ ]
862
+ },
863
+ {
864
+ "kind": "javascript-module",
865
+ "path": "src/data/index.ts",
866
+ "declarations": [],
867
+ "exports": [
906
868
  {
907
869
  "kind": "js",
908
- "name": "createErrorMap",
870
+ "name": "*",
909
871
  "declaration": {
910
- "name": "createErrorMap",
911
- "module": "src/error/errorMap.ts"
872
+ "name": "*",
873
+ "package": "./inMemoryDatabase"
912
874
  }
913
875
  }
914
876
  ]
915
877
  },
916
878
  {
917
879
  "kind": "javascript-module",
918
- "path": "src/error/index.ts",
880
+ "path": "src/decorators/index.ts",
919
881
  "declarations": [],
920
882
  "exports": [
921
883
  {
@@ -923,7 +885,45 @@
923
885
  "name": "*",
924
886
  "declaration": {
925
887
  "name": "*",
926
- "package": "./errorMap"
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"
927
927
  }
928
928
  }
929
929
  ]
@@ -1465,6 +1465,21 @@
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
+ },
1468
1483
  {
1469
1484
  "kind": "javascript-module",
1470
1485
  "path": "src/resource/index.ts",
@@ -1506,21 +1521,6 @@
1506
1521
  }
1507
1522
  ]
1508
1523
  },
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",
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-alpha-06a4fa3.0",
4
+ "version": "14.217.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.217.2-alpha-06a4fa3.0",
31
- "@genesislcap/genx": "14.217.2-alpha-06a4fa3.0",
32
- "@genesislcap/rollup-builder": "14.217.2-alpha-06a4fa3.0",
33
- "@genesislcap/ts-builder": "14.217.2-alpha-06a4fa3.0",
34
- "@genesislcap/uvu-playwright-builder": "14.217.2-alpha-06a4fa3.0",
35
- "@genesislcap/vite-builder": "14.217.2-alpha-06a4fa3.0",
36
- "@genesislcap/webpack-builder": "14.217.2-alpha-06a4fa3.0",
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",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.217.2-alpha-06a4fa3.0",
40
+ "@genesislcap/foundation-logger": "14.217.2",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "80ca06610cabd47ce8a919489c9d6ec730e6b7da"
58
+ "gitHead": "69c1d43ea24b182462a2bc522e270c2fb5502244"
59
59
  }