@genesislcap/foundation-utils 14.255.0 → 14.255.1

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 +575 -575
  2. package/package.json +10 -10
@@ -169,6 +169,204 @@
169
169
  }
170
170
  ]
171
171
  },
172
+ {
173
+ "kind": "javascript-module",
174
+ "path": "src/data/inMemoryDatabase.ts",
175
+ "declarations": [
176
+ {
177
+ "kind": "class",
178
+ "description": "An in memory database of specific DatabaseRecord types.",
179
+ "name": "InMemoryDatabase",
180
+ "members": [
181
+ {
182
+ "kind": "field",
183
+ "name": "isWorking",
184
+ "type": {
185
+ "text": "boolean"
186
+ },
187
+ "privacy": "public",
188
+ "default": "false"
189
+ },
190
+ {
191
+ "kind": "field",
192
+ "name": "records",
193
+ "type": {
194
+ "text": "Record<string, T>"
195
+ },
196
+ "privacy": "private",
197
+ "default": "{}"
198
+ },
199
+ {
200
+ "kind": "field",
201
+ "name": "beforeUpdateListeners",
202
+ "privacy": "private"
203
+ },
204
+ {
205
+ "kind": "field",
206
+ "name": "afterUpdateListeners",
207
+ "privacy": "private"
208
+ },
209
+ {
210
+ "kind": "method",
211
+ "name": "create",
212
+ "privacy": "public",
213
+ "return": {
214
+ "type": {
215
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
216
+ }
217
+ },
218
+ "parameters": [
219
+ {
220
+ "name": "newValue",
221
+ "type": {
222
+ "text": "Omit<T, 'id'>"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "method",
229
+ "name": "read",
230
+ "privacy": "public",
231
+ "return": {
232
+ "type": {
233
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
234
+ }
235
+ },
236
+ "parameters": [
237
+ {
238
+ "name": "id",
239
+ "type": {
240
+ "text": "string"
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "kind": "method",
247
+ "name": "update",
248
+ "privacy": "public",
249
+ "return": {
250
+ "type": {
251
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
252
+ }
253
+ },
254
+ "parameters": [
255
+ {
256
+ "name": "id",
257
+ "type": {
258
+ "text": "string"
259
+ }
260
+ },
261
+ {
262
+ "name": "newValue",
263
+ "type": {
264
+ "text": "Omit<Partial<T>, 'id'>"
265
+ }
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "kind": "method",
271
+ "name": "delete",
272
+ "privacy": "public",
273
+ "return": {
274
+ "type": {
275
+ "text": "Promise<DatabaseAccessResult.Delete>"
276
+ }
277
+ },
278
+ "parameters": [
279
+ {
280
+ "name": "id",
281
+ "type": {
282
+ "text": "string"
283
+ }
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "kind": "method",
289
+ "name": "visit",
290
+ "privacy": "public",
291
+ "return": {
292
+ "type": {
293
+ "text": "Promise<void>"
294
+ }
295
+ },
296
+ "parameters": [
297
+ {
298
+ "name": "visitor",
299
+ "type": {
300
+ "text": "(record: T) => void"
301
+ }
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "kind": "method",
307
+ "name": "onBeforeUpdate",
308
+ "privacy": "public",
309
+ "return": {
310
+ "type": {
311
+ "text": "() => void"
312
+ }
313
+ },
314
+ "parameters": [
315
+ {
316
+ "name": "listener",
317
+ "type": {
318
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "kind": "method",
325
+ "name": "onAfterUpdate",
326
+ "privacy": "public",
327
+ "return": {
328
+ "type": {
329
+ "text": "() => void"
330
+ }
331
+ },
332
+ "parameters": [
333
+ {
334
+ "name": "listener",
335
+ "type": {
336
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
337
+ }
338
+ }
339
+ ]
340
+ }
341
+ ]
342
+ }
343
+ ],
344
+ "exports": [
345
+ {
346
+ "kind": "js",
347
+ "name": "InMemoryDatabase",
348
+ "declaration": {
349
+ "name": "InMemoryDatabase",
350
+ "module": "src/data/inMemoryDatabase.ts"
351
+ }
352
+ }
353
+ ]
354
+ },
355
+ {
356
+ "kind": "javascript-module",
357
+ "path": "src/data/index.ts",
358
+ "declarations": [],
359
+ "exports": [
360
+ {
361
+ "kind": "js",
362
+ "name": "*",
363
+ "declaration": {
364
+ "name": "*",
365
+ "package": "./inMemoryDatabase"
366
+ }
367
+ }
368
+ ]
369
+ },
172
370
  {
173
371
  "kind": "javascript-module",
174
372
  "path": "src/directives/index.ts",
@@ -192,6 +390,59 @@
192
390
  }
193
391
  ]
194
392
  },
393
+ {
394
+ "kind": "javascript-module",
395
+ "path": "src/decorators/index.ts",
396
+ "declarations": [],
397
+ "exports": [
398
+ {
399
+ "kind": "js",
400
+ "name": "*",
401
+ "declaration": {
402
+ "name": "*",
403
+ "package": "./renderOnChange"
404
+ }
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "kind": "javascript-module",
410
+ "path": "src/decorators/renderOnChange.ts",
411
+ "declarations": [
412
+ {
413
+ "kind": "function",
414
+ "name": "renderOnChange",
415
+ "parameters": [
416
+ {
417
+ "name": "target",
418
+ "type": {
419
+ "text": "FASTElement & { render(): void }"
420
+ },
421
+ "description": "The target to define the property change handler on."
422
+ },
423
+ {
424
+ "name": "name",
425
+ "type": {
426
+ "text": "string"
427
+ },
428
+ "description": "The property name."
429
+ }
430
+ ],
431
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
432
+ "privacy": "public"
433
+ }
434
+ ],
435
+ "exports": [
436
+ {
437
+ "kind": "js",
438
+ "name": "renderOnChange",
439
+ "declaration": {
440
+ "name": "renderOnChange",
441
+ "module": "src/decorators/renderOnChange.ts"
442
+ }
443
+ }
444
+ ]
445
+ },
195
446
  {
196
447
  "kind": "javascript-module",
197
448
  "path": "src/encoding/index.ts",
@@ -207,6 +458,56 @@
207
458
  }
208
459
  ]
209
460
  },
461
+ {
462
+ "kind": "javascript-module",
463
+ "path": "src/design-system/design-system.ts",
464
+ "declarations": [
465
+ {
466
+ "kind": "function",
467
+ "name": "assureDesignSystem",
468
+ "return": {
469
+ "type": {
470
+ "text": "DesignSystemModule"
471
+ }
472
+ },
473
+ "parameters": [
474
+ {
475
+ "name": "module",
476
+ "type": {
477
+ "text": "DesignSystemModule"
478
+ }
479
+ }
480
+ ],
481
+ "description": "assureDesignSystem.",
482
+ "privacy": "public"
483
+ }
484
+ ],
485
+ "exports": [
486
+ {
487
+ "kind": "js",
488
+ "name": "assureDesignSystem",
489
+ "declaration": {
490
+ "name": "assureDesignSystem",
491
+ "module": "src/design-system/design-system.ts"
492
+ }
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "kind": "javascript-module",
498
+ "path": "src/design-system/index.ts",
499
+ "declarations": [],
500
+ "exports": [
501
+ {
502
+ "kind": "js",
503
+ "name": "*",
504
+ "declaration": {
505
+ "name": "*",
506
+ "package": "./design-system"
507
+ }
508
+ }
509
+ ]
510
+ },
210
511
  {
211
512
  "kind": "javascript-module",
212
513
  "path": "src/env/index.ts",
@@ -498,644 +799,343 @@
498
799
  "kind": "js",
499
800
  "name": "BUILDER",
500
801
  "declaration": {
501
- "name": "_BUILDER",
502
- "module": "src/env/variables.ts"
503
- }
504
- },
505
- {
506
- "kind": "js",
507
- "name": "PUBLIC_PATH",
508
- "declaration": {
509
- "name": "_PUBLIC_PATH",
510
- "module": "src/env/variables.ts"
511
- }
512
- },
513
- {
514
- "kind": "js",
515
- "name": "SOCKET_EXT",
516
- "declaration": {
517
- "name": "_SOCKET_EXT",
518
- "module": "src/env/variables.ts"
519
- }
520
- },
521
- {
522
- "kind": "js",
523
- "name": "FORCE_HTTP",
524
- "declaration": {
525
- "name": "_FORCE_HTTP",
526
- "module": "src/env/variables.ts"
527
- }
528
- },
529
- {
530
- "kind": "js",
531
- "name": "GENESIS_SOCKET_URL",
532
- "declaration": {
533
- "name": "GENESIS_SOCKET_URL",
534
- "module": "src/env/variables.ts"
535
- }
536
- },
537
- {
538
- "kind": "js",
539
- "name": "API_HOST",
540
- "declaration": {
541
- "name": "_API_HOST",
542
- "module": "src/env/variables.ts"
543
- }
544
- },
545
- {
546
- "kind": "js",
547
- "name": "HTTP_CONFIG",
548
- "declaration": {
549
- "name": "_HTTP_CONFIG",
550
- "module": "src/env/variables.ts"
551
- }
552
- },
553
- {
554
- "kind": "js",
555
- "name": "DEFAULT_ORGANISATION",
556
- "declaration": {
557
- "name": "_DEFAULT_ORGANISATION",
558
- "module": "src/env/variables.ts"
559
- }
560
- },
561
- {
562
- "kind": "js",
563
- "name": "DEFAULT_PASSWORD",
564
- "declaration": {
565
- "name": "_DEFAULT_PASSWORD",
566
- "module": "src/env/variables.ts"
567
- }
568
- },
569
- {
570
- "kind": "js",
571
- "name": "DEFAULT_USER",
572
- "declaration": {
573
- "name": "_DEFAULT_USER",
574
- "module": "src/env/variables.ts"
575
- }
576
- },
577
- {
578
- "kind": "js",
579
- "name": "LOGIN_URL",
580
- "declaration": {
581
- "name": "LOGIN_URL",
802
+ "name": "_BUILDER",
582
803
  "module": "src/env/variables.ts"
583
804
  }
584
805
  },
585
806
  {
586
807
  "kind": "js",
587
- "name": "LOGIN_REFRESH_URL",
808
+ "name": "PUBLIC_PATH",
588
809
  "declaration": {
589
- "name": "LOGIN_REFRESH_URL",
810
+ "name": "_PUBLIC_PATH",
590
811
  "module": "src/env/variables.ts"
591
812
  }
592
813
  },
593
814
  {
594
815
  "kind": "js",
595
- "name": "LOGIN_DETAILS_URL",
816
+ "name": "SOCKET_EXT",
596
817
  "declaration": {
597
- "name": "LOGIN_DETAILS_URL",
818
+ "name": "_SOCKET_EXT",
598
819
  "module": "src/env/variables.ts"
599
820
  }
600
821
  },
601
822
  {
602
823
  "kind": "js",
603
- "name": "LOGOUT_URL",
824
+ "name": "FORCE_HTTP",
604
825
  "declaration": {
605
- "name": "LOGOUT_URL",
826
+ "name": "_FORCE_HTTP",
606
827
  "module": "src/env/variables.ts"
607
828
  }
608
829
  },
609
830
  {
610
831
  "kind": "js",
611
- "name": "CHANGE_PASSWORD_URL",
832
+ "name": "GENESIS_SOCKET_URL",
612
833
  "declaration": {
613
- "name": "CHANGE_PASSWORD_URL",
834
+ "name": "GENESIS_SOCKET_URL",
614
835
  "module": "src/env/variables.ts"
615
836
  }
616
837
  },
617
838
  {
618
839
  "kind": "js",
619
- "name": "FORGOT_PASSWORD_URL",
840
+ "name": "API_HOST",
620
841
  "declaration": {
621
- "name": "FORGOT_PASSWORD_URL",
842
+ "name": "_API_HOST",
622
843
  "module": "src/env/variables.ts"
623
844
  }
624
845
  },
625
846
  {
626
847
  "kind": "js",
627
- "name": "RESET_PASSWORD_URL",
848
+ "name": "HTTP_CONFIG",
628
849
  "declaration": {
629
- "name": "RESET_PASSWORD_URL",
850
+ "name": "_HTTP_CONFIG",
630
851
  "module": "src/env/variables.ts"
631
852
  }
632
853
  },
633
854
  {
634
855
  "kind": "js",
635
- "name": "SSO_LIST_URL",
856
+ "name": "DEFAULT_ORGANISATION",
636
857
  "declaration": {
637
- "name": "SSO_LIST_URL",
858
+ "name": "_DEFAULT_ORGANISATION",
638
859
  "module": "src/env/variables.ts"
639
860
  }
640
861
  },
641
862
  {
642
863
  "kind": "js",
643
- "name": "SSO_LOGIN_URL",
864
+ "name": "DEFAULT_PASSWORD",
644
865
  "declaration": {
645
- "name": "SSO_LOGIN_URL",
866
+ "name": "_DEFAULT_PASSWORD",
646
867
  "module": "src/env/variables.ts"
647
868
  }
648
- }
649
- ]
650
- },
651
- {
652
- "kind": "javascript-module",
653
- "path": "src/error/errorMap.ts",
654
- "declarations": [
655
- {
656
- "kind": "class",
657
- "description": "",
658
- "name": "DefaultErrorMap",
659
- "members": [
660
- {
661
- "kind": "field",
662
- "name": "map",
663
- "privacy": "private",
664
- "default": "new Map<keyof TErrorDetailMap, Error>()"
665
- },
666
- {
667
- "kind": "field",
668
- "name": "lastError",
669
- "type": {
670
- "text": "Error"
671
- },
672
- "description": "{@inheritDoc ErrorMap.lastError}"
673
- },
674
- {
675
- "kind": "method",
676
- "name": "set",
677
- "return": {
678
- "type": {
679
- "text": "void"
680
- }
681
- },
682
- "parameters": [
683
- {
684
- "name": "key",
685
- "type": {
686
- "text": "keyof TErrorDetailMap"
687
- }
688
- },
689
- {
690
- "name": "error",
691
- "type": {
692
- "text": "Error"
693
- }
694
- }
695
- ],
696
- "description": "{@inheritDoc ErrorMap.set}"
697
- },
698
- {
699
- "kind": "method",
700
- "name": "get",
701
- "return": {
702
- "type": {
703
- "text": ""
704
- }
705
- },
706
- "parameters": [
707
- {
708
- "name": "key",
709
- "type": {
710
- "text": "keyof TErrorDetailMap"
711
- },
712
- "description": "The key."
713
- }
714
- ],
715
- "description": "Get an error by key.",
716
- "privacy": "public"
717
- },
718
- {
719
- "kind": "method",
720
- "name": "has",
721
- "return": {
722
- "type": {
723
- "text": ""
724
- }
725
- },
726
- "parameters": [
727
- {
728
- "name": "key",
729
- "type": {
730
- "text": "keyof TErrorDetailMap"
731
- },
732
- "description": "The key."
733
- }
734
- ],
735
- "description": "Has an error for key.",
736
- "privacy": "public"
737
- },
738
- {
739
- "kind": "method",
740
- "name": "delete",
741
- "return": {
742
- "type": {
743
- "text": ""
744
- }
745
- },
746
- "parameters": [
747
- {
748
- "name": "key",
749
- "type": {
750
- "text": "keyof TErrorDetailMap"
751
- },
752
- "description": "The key."
753
- }
754
- ],
755
- "description": "Delete an error.",
756
- "privacy": "public"
757
- },
758
- {
759
- "kind": "method",
760
- "name": "clear",
761
- "description": "Clear errors.",
762
- "privacy": "public"
763
- },
764
- {
765
- "kind": "field",
766
- "name": "size",
767
- "type": {
768
- "text": "number"
769
- },
770
- "description": "The size of the error map.",
771
- "return": {
772
- "type": {
773
- "text": ""
774
- }
775
- },
776
- "privacy": "public",
777
- "readonly": true
778
- },
779
- {
780
- "kind": "method",
781
- "name": "values",
782
- "privacy": "public"
783
- },
784
- {
785
- "kind": "field",
786
- "name": "messages",
787
- "type": {
788
- "text": "string"
789
- },
790
- "description": "{@inheritDoc ErrorMap.messages}",
791
- "readonly": true
792
- }
793
- ]
794
869
  },
795
- {
796
- "kind": "function",
797
- "name": "createErrorMap",
798
- "return": {
799
- "type": {
800
- "text": ""
801
- }
802
- },
803
- "parameters": [
804
- {
805
- "name": "logger",
806
- "type": {
807
- "text": "ErrorMapLogger"
808
- },
809
- "description": "A logger error method reference."
810
- }
811
- ],
812
- "description": "A factory to create the error map.",
813
- "privacy": "public"
814
- }
815
- ],
816
- "exports": [
817
870
  {
818
871
  "kind": "js",
819
- "name": "DefaultErrorMap",
872
+ "name": "DEFAULT_USER",
820
873
  "declaration": {
821
- "name": "DefaultErrorMap",
822
- "module": "src/error/errorMap.ts"
874
+ "name": "_DEFAULT_USER",
875
+ "module": "src/env/variables.ts"
823
876
  }
824
877
  },
825
878
  {
826
879
  "kind": "js",
827
- "name": "createErrorMap",
880
+ "name": "LOGIN_URL",
828
881
  "declaration": {
829
- "name": "createErrorMap",
830
- "module": "src/error/errorMap.ts"
882
+ "name": "LOGIN_URL",
883
+ "module": "src/env/variables.ts"
831
884
  }
832
- }
833
- ]
834
- },
835
- {
836
- "kind": "javascript-module",
837
- "path": "src/error/index.ts",
838
- "declarations": [],
839
- "exports": [
885
+ },
840
886
  {
841
887
  "kind": "js",
842
- "name": "*",
843
- "declaration": {
844
- "name": "*",
845
- "package": "./errorMap"
846
- }
847
- }
848
- ]
849
- },
850
- {
851
- "kind": "javascript-module",
852
- "path": "src/design-system/design-system.ts",
853
- "declarations": [
854
- {
855
- "kind": "function",
856
- "name": "assureDesignSystem",
857
- "return": {
858
- "type": {
859
- "text": "DesignSystemModule"
860
- }
861
- },
862
- "parameters": [
863
- {
864
- "name": "module",
865
- "type": {
866
- "text": "DesignSystemModule"
867
- }
868
- }
869
- ],
870
- "description": "assureDesignSystem.",
871
- "privacy": "public"
872
- }
873
- ],
874
- "exports": [
888
+ "name": "LOGIN_REFRESH_URL",
889
+ "declaration": {
890
+ "name": "LOGIN_REFRESH_URL",
891
+ "module": "src/env/variables.ts"
892
+ }
893
+ },
875
894
  {
876
895
  "kind": "js",
877
- "name": "assureDesignSystem",
896
+ "name": "LOGIN_DETAILS_URL",
878
897
  "declaration": {
879
- "name": "assureDesignSystem",
880
- "module": "src/design-system/design-system.ts"
898
+ "name": "LOGIN_DETAILS_URL",
899
+ "module": "src/env/variables.ts"
881
900
  }
882
- }
883
- ]
884
- },
885
- {
886
- "kind": "javascript-module",
887
- "path": "src/design-system/index.ts",
888
- "declarations": [],
889
- "exports": [
901
+ },
890
902
  {
891
903
  "kind": "js",
892
- "name": "*",
904
+ "name": "LOGOUT_URL",
893
905
  "declaration": {
894
- "name": "*",
895
- "package": "./design-system"
906
+ "name": "LOGOUT_URL",
907
+ "module": "src/env/variables.ts"
896
908
  }
897
- }
898
- ]
899
- },
900
- {
901
- "kind": "javascript-module",
902
- "path": "src/decorators/index.ts",
903
- "declarations": [],
904
- "exports": [
909
+ },
905
910
  {
906
911
  "kind": "js",
907
- "name": "*",
912
+ "name": "CHANGE_PASSWORD_URL",
908
913
  "declaration": {
909
- "name": "*",
910
- "package": "./renderOnChange"
914
+ "name": "CHANGE_PASSWORD_URL",
915
+ "module": "src/env/variables.ts"
911
916
  }
912
- }
913
- ]
914
- },
915
- {
916
- "kind": "javascript-module",
917
- "path": "src/decorators/renderOnChange.ts",
918
- "declarations": [
917
+ },
919
918
  {
920
- "kind": "function",
921
- "name": "renderOnChange",
922
- "parameters": [
923
- {
924
- "name": "target",
925
- "type": {
926
- "text": "FASTElement & { render(): void }"
927
- },
928
- "description": "The target to define the property change handler on."
929
- },
930
- {
931
- "name": "name",
932
- "type": {
933
- "text": "string"
934
- },
935
- "description": "The property name."
936
- }
937
- ],
938
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
939
- "privacy": "public"
940
- }
941
- ],
942
- "exports": [
919
+ "kind": "js",
920
+ "name": "FORGOT_PASSWORD_URL",
921
+ "declaration": {
922
+ "name": "FORGOT_PASSWORD_URL",
923
+ "module": "src/env/variables.ts"
924
+ }
925
+ },
943
926
  {
944
927
  "kind": "js",
945
- "name": "renderOnChange",
928
+ "name": "RESET_PASSWORD_URL",
946
929
  "declaration": {
947
- "name": "renderOnChange",
948
- "module": "src/decorators/renderOnChange.ts"
930
+ "name": "RESET_PASSWORD_URL",
931
+ "module": "src/env/variables.ts"
932
+ }
933
+ },
934
+ {
935
+ "kind": "js",
936
+ "name": "SSO_LIST_URL",
937
+ "declaration": {
938
+ "name": "SSO_LIST_URL",
939
+ "module": "src/env/variables.ts"
940
+ }
941
+ },
942
+ {
943
+ "kind": "js",
944
+ "name": "SSO_LOGIN_URL",
945
+ "declaration": {
946
+ "name": "SSO_LOGIN_URL",
947
+ "module": "src/env/variables.ts"
949
948
  }
950
949
  }
951
950
  ]
952
951
  },
953
952
  {
954
953
  "kind": "javascript-module",
955
- "path": "src/data/inMemoryDatabase.ts",
954
+ "path": "src/error/errorMap.ts",
956
955
  "declarations": [
957
956
  {
958
957
  "kind": "class",
959
- "description": "An in memory database of specific DatabaseRecord types.",
960
- "name": "InMemoryDatabase",
958
+ "description": "",
959
+ "name": "DefaultErrorMap",
961
960
  "members": [
962
961
  {
963
962
  "kind": "field",
964
- "name": "isWorking",
965
- "type": {
966
- "text": "boolean"
967
- },
968
- "privacy": "public",
969
- "default": "false"
963
+ "name": "map",
964
+ "privacy": "private",
965
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
970
966
  },
971
967
  {
972
968
  "kind": "field",
973
- "name": "records",
969
+ "name": "lastError",
974
970
  "type": {
975
- "text": "Record<string, T>"
971
+ "text": "Error"
976
972
  },
977
- "privacy": "private",
978
- "default": "{}"
979
- },
980
- {
981
- "kind": "field",
982
- "name": "beforeUpdateListeners",
983
- "privacy": "private"
984
- },
985
- {
986
- "kind": "field",
987
- "name": "afterUpdateListeners",
988
- "privacy": "private"
973
+ "description": "{@inheritDoc ErrorMap.lastError}"
989
974
  },
990
975
  {
991
976
  "kind": "method",
992
- "name": "create",
993
- "privacy": "public",
977
+ "name": "set",
994
978
  "return": {
995
979
  "type": {
996
- "text": "Promise<DatabaseAccessResult.Create<T>>"
980
+ "text": "void"
997
981
  }
998
982
  },
999
983
  "parameters": [
1000
984
  {
1001
- "name": "newValue",
985
+ "name": "key",
1002
986
  "type": {
1003
- "text": "Omit<T, 'id'>"
987
+ "text": "keyof TErrorDetailMap"
1004
988
  }
1005
- }
1006
- ]
1007
- },
1008
- {
1009
- "kind": "method",
1010
- "name": "read",
1011
- "privacy": "public",
1012
- "return": {
1013
- "type": {
1014
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1015
- }
1016
- },
1017
- "parameters": [
989
+ },
1018
990
  {
1019
- "name": "id",
991
+ "name": "error",
1020
992
  "type": {
1021
- "text": "string"
993
+ "text": "Error"
1022
994
  }
1023
995
  }
1024
- ]
996
+ ],
997
+ "description": "{@inheritDoc ErrorMap.set}"
1025
998
  },
1026
999
  {
1027
1000
  "kind": "method",
1028
- "name": "update",
1029
- "privacy": "public",
1001
+ "name": "get",
1030
1002
  "return": {
1031
1003
  "type": {
1032
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1004
+ "text": ""
1033
1005
  }
1034
1006
  },
1035
1007
  "parameters": [
1036
1008
  {
1037
- "name": "id",
1038
- "type": {
1039
- "text": "string"
1040
- }
1041
- },
1042
- {
1043
- "name": "newValue",
1009
+ "name": "key",
1044
1010
  "type": {
1045
- "text": "Omit<Partial<T>, 'id'>"
1046
- }
1011
+ "text": "keyof TErrorDetailMap"
1012
+ },
1013
+ "description": "The key."
1047
1014
  }
1048
- ]
1015
+ ],
1016
+ "description": "Get an error by key.",
1017
+ "privacy": "public"
1049
1018
  },
1050
1019
  {
1051
1020
  "kind": "method",
1052
- "name": "delete",
1053
- "privacy": "public",
1021
+ "name": "has",
1054
1022
  "return": {
1055
1023
  "type": {
1056
- "text": "Promise<DatabaseAccessResult.Delete>"
1024
+ "text": ""
1057
1025
  }
1058
1026
  },
1059
1027
  "parameters": [
1060
1028
  {
1061
- "name": "id",
1029
+ "name": "key",
1062
1030
  "type": {
1063
- "text": "string"
1064
- }
1031
+ "text": "keyof TErrorDetailMap"
1032
+ },
1033
+ "description": "The key."
1065
1034
  }
1066
- ]
1035
+ ],
1036
+ "description": "Has an error for key.",
1037
+ "privacy": "public"
1067
1038
  },
1068
1039
  {
1069
1040
  "kind": "method",
1070
- "name": "visit",
1071
- "privacy": "public",
1041
+ "name": "delete",
1072
1042
  "return": {
1073
1043
  "type": {
1074
- "text": "Promise<void>"
1044
+ "text": ""
1075
1045
  }
1076
1046
  },
1077
1047
  "parameters": [
1078
1048
  {
1079
- "name": "visitor",
1049
+ "name": "key",
1080
1050
  "type": {
1081
- "text": "(record: T) => void"
1082
- }
1051
+ "text": "keyof TErrorDetailMap"
1052
+ },
1053
+ "description": "The key."
1083
1054
  }
1084
- ]
1055
+ ],
1056
+ "description": "Delete an error.",
1057
+ "privacy": "public"
1085
1058
  },
1086
1059
  {
1087
1060
  "kind": "method",
1088
- "name": "onBeforeUpdate",
1089
- "privacy": "public",
1061
+ "name": "clear",
1062
+ "description": "Clear errors.",
1063
+ "privacy": "public"
1064
+ },
1065
+ {
1066
+ "kind": "field",
1067
+ "name": "size",
1068
+ "type": {
1069
+ "text": "number"
1070
+ },
1071
+ "description": "The size of the error map.",
1090
1072
  "return": {
1091
1073
  "type": {
1092
- "text": "() => void"
1074
+ "text": ""
1093
1075
  }
1094
1076
  },
1095
- "parameters": [
1096
- {
1097
- "name": "listener",
1098
- "type": {
1099
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1100
- }
1101
- }
1102
- ]
1077
+ "privacy": "public",
1078
+ "readonly": true
1103
1079
  },
1104
1080
  {
1105
1081
  "kind": "method",
1106
- "name": "onAfterUpdate",
1107
- "privacy": "public",
1108
- "return": {
1109
- "type": {
1110
- "text": "() => void"
1111
- }
1082
+ "name": "values",
1083
+ "privacy": "public"
1084
+ },
1085
+ {
1086
+ "kind": "field",
1087
+ "name": "messages",
1088
+ "type": {
1089
+ "text": "string"
1112
1090
  },
1113
- "parameters": [
1114
- {
1115
- "name": "listener",
1116
- "type": {
1117
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1118
- }
1119
- }
1120
- ]
1091
+ "description": "{@inheritDoc ErrorMap.messages}",
1092
+ "readonly": true
1121
1093
  }
1122
1094
  ]
1095
+ },
1096
+ {
1097
+ "kind": "function",
1098
+ "name": "createErrorMap",
1099
+ "return": {
1100
+ "type": {
1101
+ "text": ""
1102
+ }
1103
+ },
1104
+ "parameters": [
1105
+ {
1106
+ "name": "logger",
1107
+ "type": {
1108
+ "text": "ErrorMapLogger"
1109
+ },
1110
+ "description": "A logger error method reference."
1111
+ }
1112
+ ],
1113
+ "description": "A factory to create the error map.",
1114
+ "privacy": "public"
1123
1115
  }
1124
1116
  ],
1125
1117
  "exports": [
1126
1118
  {
1127
1119
  "kind": "js",
1128
- "name": "InMemoryDatabase",
1120
+ "name": "DefaultErrorMap",
1129
1121
  "declaration": {
1130
- "name": "InMemoryDatabase",
1131
- "module": "src/data/inMemoryDatabase.ts"
1122
+ "name": "DefaultErrorMap",
1123
+ "module": "src/error/errorMap.ts"
1124
+ }
1125
+ },
1126
+ {
1127
+ "kind": "js",
1128
+ "name": "createErrorMap",
1129
+ "declaration": {
1130
+ "name": "createErrorMap",
1131
+ "module": "src/error/errorMap.ts"
1132
1132
  }
1133
1133
  }
1134
1134
  ]
1135
1135
  },
1136
1136
  {
1137
1137
  "kind": "javascript-module",
1138
- "path": "src/data/index.ts",
1138
+ "path": "src/error/index.ts",
1139
1139
  "declarations": [],
1140
1140
  "exports": [
1141
1141
  {
@@ -1143,7 +1143,7 @@
1143
1143
  "name": "*",
1144
1144
  "declaration": {
1145
1145
  "name": "*",
1146
- "package": "./inMemoryDatabase"
1146
+ "package": "./errorMap"
1147
1147
  }
1148
1148
  }
1149
1149
  ]
@@ -1685,21 +1685,6 @@
1685
1685
  }
1686
1686
  ]
1687
1687
  },
1688
- {
1689
- "kind": "javascript-module",
1690
- "path": "src/serializers/index.ts",
1691
- "declarations": [],
1692
- "exports": [
1693
- {
1694
- "kind": "js",
1695
- "name": "*",
1696
- "declaration": {
1697
- "name": "*",
1698
- "package": "./json"
1699
- }
1700
- }
1701
- ]
1702
- },
1703
1688
  {
1704
1689
  "kind": "javascript-module",
1705
1690
  "path": "src/resource/index.ts",
@@ -1741,6 +1726,21 @@
1741
1726
  }
1742
1727
  ]
1743
1728
  },
1729
+ {
1730
+ "kind": "javascript-module",
1731
+ "path": "src/serializers/index.ts",
1732
+ "declarations": [],
1733
+ "exports": [
1734
+ {
1735
+ "kind": "js",
1736
+ "name": "*",
1737
+ "declaration": {
1738
+ "name": "*",
1739
+ "package": "./json"
1740
+ }
1741
+ }
1742
+ ]
1743
+ },
1744
1744
  {
1745
1745
  "kind": "javascript-module",
1746
1746
  "path": "src/state/index.ts",
@@ -2288,6 +2288,95 @@
2288
2288
  }
2289
2289
  ]
2290
2290
  },
2291
+ {
2292
+ "kind": "javascript-module",
2293
+ "path": "src/directives/sync/index.ts",
2294
+ "declarations": [],
2295
+ "exports": [
2296
+ {
2297
+ "kind": "js",
2298
+ "name": "*",
2299
+ "declaration": {
2300
+ "name": "*",
2301
+ "package": "./sync"
2302
+ }
2303
+ }
2304
+ ]
2305
+ },
2306
+ {
2307
+ "kind": "javascript-module",
2308
+ "path": "src/directives/sync/sync.ts",
2309
+ "declarations": [
2310
+ {
2311
+ "kind": "variable",
2312
+ "name": "defaultEventMap",
2313
+ "type": {
2314
+ "text": "Map<string, EventName>"
2315
+ },
2316
+ "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
2317
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2318
+ "privacy": "public"
2319
+ },
2320
+ {
2321
+ "kind": "function",
2322
+ "name": "sync",
2323
+ "return": {
2324
+ "type": {
2325
+ "text": "CaptureType<TSource>"
2326
+ }
2327
+ },
2328
+ "parameters": [
2329
+ {
2330
+ "name": "binding",
2331
+ "type": {
2332
+ "text": "Binding<TSource, TReturn>"
2333
+ }
2334
+ },
2335
+ {
2336
+ "name": "conversionType",
2337
+ "default": "'string'",
2338
+ "type": {
2339
+ "text": "ConversionType"
2340
+ }
2341
+ },
2342
+ {
2343
+ "name": "eventName",
2344
+ "default": "'default'",
2345
+ "type": {
2346
+ "text": "EventName"
2347
+ }
2348
+ },
2349
+ {
2350
+ "name": "keyAttr",
2351
+ "optional": true,
2352
+ "type": {
2353
+ "text": "string"
2354
+ }
2355
+ }
2356
+ ],
2357
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2358
+ "privacy": "public"
2359
+ }
2360
+ ],
2361
+ "exports": [
2362
+ {
2363
+ "kind": "js",
2364
+ "name": "defaultEventMap",
2365
+ "declaration": {
2366
+ "name": "defaultEventMap",
2367
+ "module": "src/directives/sync/sync.ts"
2368
+ }
2369
+ },
2370
+ {
2371
+ "kind": "js",
2372
+ "name": "sync",
2373
+ "declaration": {
2374
+ "name": "sync",
2375
+ "module": "src/directives/sync/sync.ts"
2376
+ }
2377
+ }
2378
+ ]
2379
+ },
2291
2380
  {
2292
2381
  "kind": "javascript-module",
2293
2382
  "path": "src/window/index.ts",
@@ -2436,95 +2525,6 @@
2436
2525
  }
2437
2526
  ]
2438
2527
  },
2439
- {
2440
- "kind": "javascript-module",
2441
- "path": "src/directives/sync/index.ts",
2442
- "declarations": [],
2443
- "exports": [
2444
- {
2445
- "kind": "js",
2446
- "name": "*",
2447
- "declaration": {
2448
- "name": "*",
2449
- "package": "./sync"
2450
- }
2451
- }
2452
- ]
2453
- },
2454
- {
2455
- "kind": "javascript-module",
2456
- "path": "src/directives/sync/sync.ts",
2457
- "declarations": [
2458
- {
2459
- "kind": "variable",
2460
- "name": "defaultEventMap",
2461
- "type": {
2462
- "text": "Map<string, EventName>"
2463
- },
2464
- "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
2465
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2466
- "privacy": "public"
2467
- },
2468
- {
2469
- "kind": "function",
2470
- "name": "sync",
2471
- "return": {
2472
- "type": {
2473
- "text": "CaptureType<TSource>"
2474
- }
2475
- },
2476
- "parameters": [
2477
- {
2478
- "name": "binding",
2479
- "type": {
2480
- "text": "Binding<TSource, TReturn>"
2481
- }
2482
- },
2483
- {
2484
- "name": "conversionType",
2485
- "default": "'string'",
2486
- "type": {
2487
- "text": "ConversionType"
2488
- }
2489
- },
2490
- {
2491
- "name": "eventName",
2492
- "default": "'default'",
2493
- "type": {
2494
- "text": "EventName"
2495
- }
2496
- },
2497
- {
2498
- "name": "keyAttr",
2499
- "optional": true,
2500
- "type": {
2501
- "text": "string"
2502
- }
2503
- }
2504
- ],
2505
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2506
- "privacy": "public"
2507
- }
2508
- ],
2509
- "exports": [
2510
- {
2511
- "kind": "js",
2512
- "name": "defaultEventMap",
2513
- "declaration": {
2514
- "name": "defaultEventMap",
2515
- "module": "src/directives/sync/sync.ts"
2516
- }
2517
- },
2518
- {
2519
- "kind": "js",
2520
- "name": "sync",
2521
- "declaration": {
2522
- "name": "sync",
2523
- "module": "src/directives/sync/sync.ts"
2524
- }
2525
- }
2526
- ]
2527
- },
2528
2528
  {
2529
2529
  "kind": "javascript-module",
2530
2530
  "path": "src/directives/when-else/index.ts",