@genesislcap/foundation-utils 14.217.6-alpha-f6d0d1c0fdc7.0 → 14.217.6

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 +361 -361
  2. package/package.json +10 -10
@@ -167,6 +167,257 @@
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
+ },
170
421
  {
171
422
  "kind": "javascript-module",
172
423
  "path": "src/design-system/design-system.ts",
@@ -457,389 +708,214 @@
457
708
  },
458
709
  {
459
710
  "kind": "javascript-module",
460
- "path": "src/error/errorMap.ts",
461
- "declarations": [
462
- {
463
- "kind": "class",
464
- "description": "",
465
- "name": "DefaultErrorMap",
466
- "members": [
467
- {
468
- "kind": "field",
469
- "name": "map",
470
- "privacy": "private",
471
- "default": "new Map<keyof TErrorDetailMap, Error>()"
472
- },
473
- {
474
- "kind": "field",
475
- "name": "lastError",
476
- "type": {
477
- "text": "Error"
478
- },
479
- "description": "{@inheritDoc ErrorMap.lastError}"
480
- },
481
- {
482
- "kind": "method",
483
- "name": "set",
484
- "return": {
485
- "type": {
486
- "text": "void"
487
- }
488
- },
489
- "parameters": [
490
- {
491
- "name": "key",
492
- "type": {
493
- "text": "keyof TErrorDetailMap"
494
- }
495
- },
496
- {
497
- "name": "error",
498
- "type": {
499
- "text": "Error"
500
- }
501
- }
502
- ],
503
- "description": "{@inheritDoc ErrorMap.set}"
504
- },
505
- {
506
- "kind": "method",
507
- "name": "get",
508
- "return": {
509
- "type": {
510
- "text": ""
511
- }
512
- },
513
- "parameters": [
514
- {
515
- "name": "key",
516
- "type": {
517
- "text": "keyof TErrorDetailMap"
518
- },
519
- "description": "The key."
520
- }
521
- ],
522
- "description": "Get an error by key.",
523
- "privacy": "public"
524
- },
525
- {
526
- "kind": "method",
527
- "name": "has",
528
- "return": {
529
- "type": {
530
- "text": ""
531
- }
532
- },
533
- "parameters": [
534
- {
535
- "name": "key",
536
- "type": {
537
- "text": "keyof TErrorDetailMap"
538
- },
539
- "description": "The key."
540
- }
541
- ],
542
- "description": "Has an error for key.",
543
- "privacy": "public"
544
- },
545
- {
546
- "kind": "method",
547
- "name": "delete",
548
- "return": {
549
- "type": {
550
- "text": ""
551
- }
552
- },
553
- "parameters": [
554
- {
555
- "name": "key",
556
- "type": {
557
- "text": "keyof TErrorDetailMap"
558
- },
559
- "description": "The key."
560
- }
561
- ],
562
- "description": "Delete an error.",
563
- "privacy": "public"
564
- },
565
- {
566
- "kind": "method",
567
- "name": "clear",
568
- "description": "Clear errors.",
569
- "privacy": "public"
570
- },
571
- {
572
- "kind": "field",
573
- "name": "size",
574
- "type": {
575
- "text": "number"
576
- },
577
- "description": "The size of the error map.",
578
- "return": {
579
- "type": {
580
- "text": ""
581
- }
582
- },
583
- "privacy": "public",
584
- "readonly": true
585
- },
586
- {
587
- "kind": "method",
588
- "name": "values",
589
- "privacy": "public"
590
- },
591
- {
592
- "kind": "field",
593
- "name": "messages",
594
- "type": {
595
- "text": "string"
596
- },
597
- "description": "{@inheritDoc ErrorMap.messages}",
598
- "readonly": true
599
- }
600
- ]
601
- },
602
- {
603
- "kind": "function",
604
- "name": "createErrorMap",
605
- "return": {
606
- "type": {
607
- "text": ""
608
- }
609
- },
610
- "parameters": [
611
- {
612
- "name": "logger",
613
- "type": {
614
- "text": "ErrorMapLogger"
615
- },
616
- "description": "A logger error method reference."
617
- }
618
- ],
619
- "description": "A factory to create the error map.",
620
- "privacy": "public"
621
- }
622
- ],
711
+ "path": "src/directives/index.ts",
712
+ "declarations": [],
623
713
  "exports": [
624
714
  {
625
715
  "kind": "js",
626
- "name": "DefaultErrorMap",
716
+ "name": "*",
627
717
  "declaration": {
628
- "name": "DefaultErrorMap",
629
- "module": "src/error/errorMap.ts"
718
+ "name": "*",
719
+ "package": "./sync"
630
720
  }
631
721
  },
632
- {
633
- "kind": "js",
634
- "name": "createErrorMap",
635
- "declaration": {
636
- "name": "createErrorMap",
637
- "module": "src/error/errorMap.ts"
638
- }
639
- }
640
- ]
641
- },
642
- {
643
- "kind": "javascript-module",
644
- "path": "src/error/index.ts",
645
- "declarations": [],
646
- "exports": [
647
722
  {
648
723
  "kind": "js",
649
724
  "name": "*",
650
725
  "declaration": {
651
726
  "name": "*",
652
- "package": "./errorMap"
727
+ "package": "./when-else"
653
728
  }
654
729
  }
655
730
  ]
656
731
  },
657
732
  {
658
733
  "kind": "javascript-module",
659
- "path": "src/data/inMemoryDatabase.ts",
734
+ "path": "src/error/errorMap.ts",
660
735
  "declarations": [
661
736
  {
662
737
  "kind": "class",
663
- "description": "An in memory database of specific DatabaseRecord types.",
664
- "name": "InMemoryDatabase",
738
+ "description": "",
739
+ "name": "DefaultErrorMap",
665
740
  "members": [
666
741
  {
667
742
  "kind": "field",
668
- "name": "isWorking",
669
- "type": {
670
- "text": "boolean"
671
- },
672
- "privacy": "public",
673
- "default": "false"
674
- },
675
- {
676
- "kind": "field",
677
- "name": "records",
678
- "type": {
679
- "text": "Record<string, T>"
680
- },
681
- "privacy": "private",
682
- "default": "{}"
683
- },
684
- {
685
- "kind": "field",
686
- "name": "beforeUpdateListeners",
687
- "privacy": "private"
743
+ "name": "map",
744
+ "privacy": "private",
745
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
688
746
  },
689
747
  {
690
748
  "kind": "field",
691
- "name": "afterUpdateListeners",
692
- "privacy": "private"
749
+ "name": "lastError",
750
+ "type": {
751
+ "text": "Error"
752
+ },
753
+ "description": "{@inheritDoc ErrorMap.lastError}"
693
754
  },
694
755
  {
695
756
  "kind": "method",
696
- "name": "create",
697
- "privacy": "public",
757
+ "name": "set",
698
758
  "return": {
699
759
  "type": {
700
- "text": "Promise<DatabaseAccessResult.Create<T>>"
760
+ "text": "void"
701
761
  }
702
762
  },
703
763
  "parameters": [
704
764
  {
705
- "name": "newValue",
765
+ "name": "key",
706
766
  "type": {
707
- "text": "Omit<T, 'id'>"
767
+ "text": "keyof TErrorDetailMap"
708
768
  }
709
- }
710
- ]
711
- },
712
- {
713
- "kind": "method",
714
- "name": "read",
715
- "privacy": "public",
716
- "return": {
717
- "type": {
718
- "text": "Promise<DatabaseAccessResult.Read<T>>"
719
- }
720
- },
721
- "parameters": [
769
+ },
722
770
  {
723
- "name": "id",
771
+ "name": "error",
724
772
  "type": {
725
- "text": "string"
773
+ "text": "Error"
726
774
  }
727
775
  }
728
- ]
776
+ ],
777
+ "description": "{@inheritDoc ErrorMap.set}"
729
778
  },
730
779
  {
731
780
  "kind": "method",
732
- "name": "update",
733
- "privacy": "public",
781
+ "name": "get",
734
782
  "return": {
735
783
  "type": {
736
- "text": "Promise<DatabaseAccessResult.Update<T>>"
784
+ "text": ""
737
785
  }
738
786
  },
739
787
  "parameters": [
740
788
  {
741
- "name": "id",
742
- "type": {
743
- "text": "string"
744
- }
745
- },
746
- {
747
- "name": "newValue",
789
+ "name": "key",
748
790
  "type": {
749
- "text": "Omit<Partial<T>, 'id'>"
750
- }
791
+ "text": "keyof TErrorDetailMap"
792
+ },
793
+ "description": "The key."
751
794
  }
752
- ]
795
+ ],
796
+ "description": "Get an error by key.",
797
+ "privacy": "public"
753
798
  },
754
799
  {
755
800
  "kind": "method",
756
- "name": "delete",
757
- "privacy": "public",
801
+ "name": "has",
758
802
  "return": {
759
803
  "type": {
760
- "text": "Promise<DatabaseAccessResult.Delete>"
804
+ "text": ""
761
805
  }
762
806
  },
763
807
  "parameters": [
764
808
  {
765
- "name": "id",
809
+ "name": "key",
766
810
  "type": {
767
- "text": "string"
768
- }
811
+ "text": "keyof TErrorDetailMap"
812
+ },
813
+ "description": "The key."
769
814
  }
770
- ]
815
+ ],
816
+ "description": "Has an error for key.",
817
+ "privacy": "public"
771
818
  },
772
819
  {
773
820
  "kind": "method",
774
- "name": "visit",
775
- "privacy": "public",
821
+ "name": "delete",
776
822
  "return": {
777
823
  "type": {
778
- "text": "Promise<void>"
824
+ "text": ""
779
825
  }
780
826
  },
781
827
  "parameters": [
782
828
  {
783
- "name": "visitor",
829
+ "name": "key",
784
830
  "type": {
785
- "text": "(record: T) => void"
786
- }
831
+ "text": "keyof TErrorDetailMap"
832
+ },
833
+ "description": "The key."
787
834
  }
788
- ]
835
+ ],
836
+ "description": "Delete an error.",
837
+ "privacy": "public"
789
838
  },
790
839
  {
791
840
  "kind": "method",
792
- "name": "onBeforeUpdate",
793
- "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.",
794
852
  "return": {
795
853
  "type": {
796
- "text": "() => void"
854
+ "text": ""
797
855
  }
798
856
  },
799
- "parameters": [
800
- {
801
- "name": "listener",
802
- "type": {
803
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
804
- }
805
- }
806
- ]
857
+ "privacy": "public",
858
+ "readonly": true
807
859
  },
808
860
  {
809
861
  "kind": "method",
810
- "name": "onAfterUpdate",
811
- "privacy": "public",
812
- "return": {
813
- "type": {
814
- "text": "() => void"
815
- }
862
+ "name": "values",
863
+ "privacy": "public"
864
+ },
865
+ {
866
+ "kind": "field",
867
+ "name": "messages",
868
+ "type": {
869
+ "text": "string"
816
870
  },
817
- "parameters": [
818
- {
819
- "name": "listener",
820
- "type": {
821
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
822
- }
823
- }
824
- ]
871
+ "description": "{@inheritDoc ErrorMap.messages}",
872
+ "readonly": true
825
873
  }
826
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"
827
895
  }
828
896
  ],
829
897
  "exports": [
830
898
  {
831
899
  "kind": "js",
832
- "name": "InMemoryDatabase",
900
+ "name": "DefaultErrorMap",
833
901
  "declaration": {
834
- "name": "InMemoryDatabase",
835
- "module": "src/data/inMemoryDatabase.ts"
902
+ "name": "DefaultErrorMap",
903
+ "module": "src/error/errorMap.ts"
904
+ }
905
+ },
906
+ {
907
+ "kind": "js",
908
+ "name": "createErrorMap",
909
+ "declaration": {
910
+ "name": "createErrorMap",
911
+ "module": "src/error/errorMap.ts"
836
912
  }
837
913
  }
838
914
  ]
839
915
  },
840
916
  {
841
917
  "kind": "javascript-module",
842
- "path": "src/data/index.ts",
918
+ "path": "src/error/index.ts",
843
919
  "declarations": [],
844
920
  "exports": [
845
921
  {
@@ -847,7 +923,7 @@
847
923
  "name": "*",
848
924
  "declaration": {
849
925
  "name": "*",
850
- "package": "./inMemoryDatabase"
926
+ "package": "./errorMap"
851
927
  }
852
928
  }
853
929
  ]
@@ -1137,82 +1213,6 @@
1137
1213
  }
1138
1214
  ]
1139
1215
  },
1140
- {
1141
- "kind": "javascript-module",
1142
- "path": "src/directives/index.ts",
1143
- "declarations": [],
1144
- "exports": [
1145
- {
1146
- "kind": "js",
1147
- "name": "*",
1148
- "declaration": {
1149
- "name": "*",
1150
- "package": "./sync"
1151
- }
1152
- },
1153
- {
1154
- "kind": "js",
1155
- "name": "*",
1156
- "declaration": {
1157
- "name": "*",
1158
- "package": "./when-else"
1159
- }
1160
- }
1161
- ]
1162
- },
1163
- {
1164
- "kind": "javascript-module",
1165
- "path": "src/decorators/index.ts",
1166
- "declarations": [],
1167
- "exports": [
1168
- {
1169
- "kind": "js",
1170
- "name": "*",
1171
- "declaration": {
1172
- "name": "*",
1173
- "package": "./renderOnChange"
1174
- }
1175
- }
1176
- ]
1177
- },
1178
- {
1179
- "kind": "javascript-module",
1180
- "path": "src/decorators/renderOnChange.ts",
1181
- "declarations": [
1182
- {
1183
- "kind": "function",
1184
- "name": "renderOnChange",
1185
- "parameters": [
1186
- {
1187
- "name": "target",
1188
- "type": {
1189
- "text": "FASTElement & { render(): void }"
1190
- },
1191
- "description": "The target to define the property change handler on."
1192
- },
1193
- {
1194
- "name": "name",
1195
- "type": {
1196
- "text": "string"
1197
- },
1198
- "description": "The property name."
1199
- }
1200
- ],
1201
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1202
- "privacy": "public"
1203
- }
1204
- ],
1205
- "exports": [
1206
- {
1207
- "kind": "js",
1208
- "name": "renderOnChange",
1209
- "declaration": {
1210
- "name": "renderOnChange",
1211
- "module": "src/decorators/renderOnChange.ts"
1212
- }
1213
- }
1214
- ]
1215
- },
1216
1216
  {
1217
1217
  "kind": "javascript-module",
1218
1218
  "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.217.6-alpha-f6d0d1c0fdc7.0",
4
+ "version": "14.217.6",
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.6-alpha-f6d0d1c0fdc7.0",
31
- "@genesislcap/genx": "14.217.6-alpha-f6d0d1c0fdc7.0",
32
- "@genesislcap/rollup-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
33
- "@genesislcap/ts-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
34
- "@genesislcap/uvu-playwright-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
35
- "@genesislcap/vite-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
36
- "@genesislcap/webpack-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
30
+ "@genesislcap/foundation-testing": "14.217.6",
31
+ "@genesislcap/genx": "14.217.6",
32
+ "@genesislcap/rollup-builder": "14.217.6",
33
+ "@genesislcap/ts-builder": "14.217.6",
34
+ "@genesislcap/uvu-playwright-builder": "14.217.6",
35
+ "@genesislcap/vite-builder": "14.217.6",
36
+ "@genesislcap/webpack-builder": "14.217.6",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.217.6-alpha-f6d0d1c0fdc7.0",
40
+ "@genesislcap/foundation-logger": "14.217.6",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "2.49.6",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "2d8bbf3cb2cf1ec3d91d958ee2739cf426ae7d04"
58
+ "gitHead": "84132703b718e0149c22f3ddac32e7d1441013cc"
59
59
  }