@genesislcap/foundation-utils 14.217.5 → 14.217.6-alpha-406f23c.0

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 +570 -570
  2. package/package.json +10 -10
@@ -167,6 +167,29 @@
167
167
  }
168
168
  ]
169
169
  },
170
+ {
171
+ "kind": "javascript-module",
172
+ "path": "src/directives/index.ts",
173
+ "declarations": [],
174
+ "exports": [
175
+ {
176
+ "kind": "js",
177
+ "name": "*",
178
+ "declaration": {
179
+ "name": "*",
180
+ "package": "./sync"
181
+ }
182
+ },
183
+ {
184
+ "kind": "js",
185
+ "name": "*",
186
+ "declaration": {
187
+ "name": "*",
188
+ "package": "./when-else"
189
+ }
190
+ }
191
+ ]
192
+ },
170
193
  {
171
194
  "kind": "javascript-module",
172
195
  "path": "src/data/inMemoryDatabase.ts",
@@ -367,110 +390,191 @@
367
390
  },
368
391
  {
369
392
  "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",
393
+ "path": "src/error/errorMap.ts",
386
394
  "declarations": [
387
395
  {
388
- "kind": "function",
389
- "name": "renderOnChange",
390
- "parameters": [
396
+ "kind": "class",
397
+ "description": "",
398
+ "name": "DefaultErrorMap",
399
+ "members": [
391
400
  {
392
- "name": "target",
401
+ "kind": "field",
402
+ "name": "map",
403
+ "privacy": "private",
404
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
405
+ },
406
+ {
407
+ "kind": "field",
408
+ "name": "lastError",
393
409
  "type": {
394
- "text": "FASTElement & { render(): void }"
410
+ "text": "Error"
395
411
  },
396
- "description": "The target to define the property change handler on."
412
+ "description": "{@inheritDoc ErrorMap.lastError}"
397
413
  },
398
414
  {
399
- "name": "name",
415
+ "kind": "method",
416
+ "name": "set",
417
+ "return": {
418
+ "type": {
419
+ "text": "void"
420
+ }
421
+ },
422
+ "parameters": [
423
+ {
424
+ "name": "key",
425
+ "type": {
426
+ "text": "keyof TErrorDetailMap"
427
+ }
428
+ },
429
+ {
430
+ "name": "error",
431
+ "type": {
432
+ "text": "Error"
433
+ }
434
+ }
435
+ ],
436
+ "description": "{@inheritDoc ErrorMap.set}"
437
+ },
438
+ {
439
+ "kind": "method",
440
+ "name": "get",
441
+ "return": {
442
+ "type": {
443
+ "text": ""
444
+ }
445
+ },
446
+ "parameters": [
447
+ {
448
+ "name": "key",
449
+ "type": {
450
+ "text": "keyof TErrorDetailMap"
451
+ },
452
+ "description": "The key."
453
+ }
454
+ ],
455
+ "description": "Get an error by key.",
456
+ "privacy": "public"
457
+ },
458
+ {
459
+ "kind": "method",
460
+ "name": "has",
461
+ "return": {
462
+ "type": {
463
+ "text": ""
464
+ }
465
+ },
466
+ "parameters": [
467
+ {
468
+ "name": "key",
469
+ "type": {
470
+ "text": "keyof TErrorDetailMap"
471
+ },
472
+ "description": "The key."
473
+ }
474
+ ],
475
+ "description": "Has an error for key.",
476
+ "privacy": "public"
477
+ },
478
+ {
479
+ "kind": "method",
480
+ "name": "delete",
481
+ "return": {
482
+ "type": {
483
+ "text": ""
484
+ }
485
+ },
486
+ "parameters": [
487
+ {
488
+ "name": "key",
489
+ "type": {
490
+ "text": "keyof TErrorDetailMap"
491
+ },
492
+ "description": "The key."
493
+ }
494
+ ],
495
+ "description": "Delete an error.",
496
+ "privacy": "public"
497
+ },
498
+ {
499
+ "kind": "method",
500
+ "name": "clear",
501
+ "description": "Clear errors.",
502
+ "privacy": "public"
503
+ },
504
+ {
505
+ "kind": "field",
506
+ "name": "size",
507
+ "type": {
508
+ "text": "number"
509
+ },
510
+ "description": "The size of the error map.",
511
+ "return": {
512
+ "type": {
513
+ "text": ""
514
+ }
515
+ },
516
+ "privacy": "public",
517
+ "readonly": true
518
+ },
519
+ {
520
+ "kind": "method",
521
+ "name": "values",
522
+ "privacy": "public"
523
+ },
524
+ {
525
+ "kind": "field",
526
+ "name": "messages",
400
527
  "type": {
401
528
  "text": "string"
402
529
  },
403
- "description": "The property name."
530
+ "description": "{@inheritDoc ErrorMap.messages}",
531
+ "readonly": true
404
532
  }
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
- {
422
- "kind": "javascript-module",
423
- "path": "src/design-system/design-system.ts",
424
- "declarations": [
533
+ ]
534
+ },
425
535
  {
426
536
  "kind": "function",
427
- "name": "assureDesignSystem",
537
+ "name": "createErrorMap",
428
538
  "return": {
429
539
  "type": {
430
- "text": "DesignSystemModule"
540
+ "text": ""
431
541
  }
432
542
  },
433
543
  "parameters": [
434
544
  {
435
- "name": "module",
545
+ "name": "logger",
436
546
  "type": {
437
- "text": "DesignSystemModule"
438
- }
547
+ "text": "ErrorMapLogger"
548
+ },
549
+ "description": "A logger error method reference."
439
550
  }
440
551
  ],
441
- "description": "assureDesignSystem.",
552
+ "description": "A factory to create the error map.",
442
553
  "privacy": "public"
443
554
  }
444
555
  ],
445
556
  "exports": [
446
557
  {
447
558
  "kind": "js",
448
- "name": "assureDesignSystem",
559
+ "name": "DefaultErrorMap",
449
560
  "declaration": {
450
- "name": "assureDesignSystem",
451
- "module": "src/design-system/design-system.ts"
561
+ "name": "DefaultErrorMap",
562
+ "module": "src/error/errorMap.ts"
452
563
  }
453
- }
454
- ]
455
- },
456
- {
457
- "kind": "javascript-module",
458
- "path": "src/design-system/index.ts",
459
- "declarations": [],
460
- "exports": [
564
+ },
461
565
  {
462
566
  "kind": "js",
463
- "name": "*",
567
+ "name": "createErrorMap",
464
568
  "declaration": {
465
- "name": "*",
466
- "package": "./design-system"
569
+ "name": "createErrorMap",
570
+ "module": "src/error/errorMap.ts"
467
571
  }
468
572
  }
469
573
  ]
470
574
  },
471
575
  {
472
576
  "kind": "javascript-module",
473
- "path": "src/directives/index.ts",
577
+ "path": "src/error/index.ts",
474
578
  "declarations": [],
475
579
  "exports": [
476
580
  {
@@ -478,737 +582,633 @@
478
582
  "name": "*",
479
583
  "declaration": {
480
584
  "name": "*",
481
- "package": "./sync"
482
- }
483
- },
484
- {
485
- "kind": "js",
486
- "name": "*",
487
- "declaration": {
488
- "name": "*",
489
- "package": "./when-else"
585
+ "package": "./errorMap"
490
586
  }
491
587
  }
492
588
  ]
493
589
  },
494
590
  {
495
591
  "kind": "javascript-module",
496
- "path": "src/env/index.ts",
497
- "declarations": [],
498
- "exports": [
499
- {
500
- "kind": "js",
501
- "name": "*",
502
- "declaration": {
503
- "name": "*",
504
- "package": "./is-dev"
505
- }
506
- },
507
- {
508
- "kind": "js",
509
- "name": "*",
510
- "declaration": {
511
- "name": "*",
512
- "package": "./variables"
513
- }
514
- }
515
- ]
516
- },
517
- {
518
- "kind": "javascript-module",
519
- "path": "src/env/is-dev.ts",
520
- "declarations": [
592
+ "path": "src/formatters/datetime.ts",
593
+ "declarations": [
521
594
  {
522
595
  "kind": "function",
523
- "name": "isDev",
524
- "description": "Determines if the current environment is a development environment.",
525
- "privacy": "public"
526
- }
527
- ],
528
- "exports": [
529
- {
530
- "kind": "js",
531
- "name": "isDev",
532
- "declaration": {
533
- "name": "isDev",
534
- "module": "src/env/is-dev.ts"
535
- }
536
- }
537
- ]
538
- },
539
- {
540
- "kind": "javascript-module",
541
- "path": "src/env/variables.ts",
542
- "declarations": [
543
- {
544
- "kind": "variable",
545
- "name": "SOCKET_EXT",
546
- "type": {
547
- "text": "string"
548
- }
549
- },
550
- {
551
- "kind": "variable",
552
- "name": "_SOCKET_EXT",
553
- "type": {
554
- "text": "string"
555
- },
556
- "default": "'gwf'",
557
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
558
- "privacy": "public"
559
- },
560
- {
561
- "kind": "variable",
562
- "name": "FORCE_HTTP",
563
- "type": {
564
- "text": "string"
565
- }
566
- },
567
- {
568
- "kind": "variable",
569
- "name": "_FORCE_HTTP",
570
- "type": {
571
- "text": "string"
572
- },
573
- "description": "The path to a JSON config file for the HTTP mode.",
574
- "privacy": "public"
575
- },
576
- {
577
- "kind": "variable",
578
- "name": "GENESIS_SOCKET_URL",
579
- "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
580
- "description": "Genesis Socket URL",
581
- "privacy": "public"
582
- },
583
- {
584
- "kind": "variable",
585
- "name": "API_HOST",
586
- "type": {
587
- "text": "string"
588
- }
589
- },
590
- {
591
- "kind": "variable",
592
- "name": "_API_HOST",
593
- "type": {
594
- "text": "string"
595
- },
596
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
597
- "description": "The Genesis Server URL (WebSocket or HTTP).",
598
- "privacy": "public"
599
- },
600
- {
601
- "kind": "variable",
602
- "name": "HTTP_CONFIG",
603
- "type": {
604
- "text": "string"
605
- }
606
- },
607
- {
608
- "kind": "variable",
609
- "name": "_HTTP_CONFIG",
610
- "type": {
611
- "text": "string"
596
+ "name": "formatDateTimestamp",
597
+ "return": {
598
+ "type": {
599
+ "text": "string"
600
+ }
612
601
  },
613
- "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
602
+ "parameters": [
603
+ {
604
+ "name": "timestamp",
605
+ "type": {
606
+ "text": "number"
607
+ }
608
+ }
609
+ ],
610
+ "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
614
611
  "privacy": "public"
615
612
  },
616
613
  {
617
- "kind": "variable",
618
- "name": "DEFAULT_ORGANISATION",
619
- "type": {
620
- "text": "string"
621
- }
622
- },
623
- {
624
- "kind": "variable",
625
- "name": "_DEFAULT_ORGANISATION",
626
- "type": {
627
- "text": "string"
614
+ "kind": "function",
615
+ "name": "formatDateTimeTimestamp",
616
+ "return": {
617
+ "type": {
618
+ "text": "string"
619
+ }
628
620
  },
629
- "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
621
+ "parameters": [
622
+ {
623
+ "name": "timestamp",
624
+ "type": {
625
+ "text": "number"
626
+ }
627
+ }
628
+ ],
629
+ "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
630
630
  "privacy": "public"
631
631
  },
632
632
  {
633
- "kind": "variable",
634
- "name": "DEFAULT_PASSWORD",
635
- "type": {
636
- "text": "string"
637
- }
638
- },
639
- {
640
- "kind": "variable",
641
- "name": "_DEFAULT_PASSWORD",
642
- "type": {
643
- "text": "string"
633
+ "kind": "function",
634
+ "name": "formatTimestamp",
635
+ "return": {
636
+ "type": {
637
+ "text": "string"
638
+ }
644
639
  },
645
- "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
640
+ "parameters": [
641
+ {
642
+ "name": "timestamp",
643
+ "type": {
644
+ "text": "number"
645
+ },
646
+ "description": "The UNIX Timestamp."
647
+ },
648
+ {
649
+ "name": "withTime",
650
+ "type": {
651
+ "text": "boolean"
652
+ },
653
+ "description": "The flag to determine if formatted value should contain 'time' info."
654
+ }
655
+ ],
656
+ "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
646
657
  "privacy": "public"
647
658
  },
648
659
  {
649
- "kind": "variable",
650
- "name": "DEFAULT_USER",
651
- "type": {
652
- "text": "string"
653
- }
654
- },
655
- {
656
- "kind": "variable",
657
- "name": "_DEFAULT_USER",
658
- "type": {
659
- "text": "string"
660
- },
661
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
660
+ "kind": "function",
661
+ "name": "getDateFormatter",
662
+ "parameters": [
663
+ {
664
+ "name": "locale",
665
+ "default": "'en-GB'",
666
+ "type": {
667
+ "text": "string"
668
+ }
669
+ },
670
+ {
671
+ "name": "options",
672
+ "default": "defaultDateOptions",
673
+ "type": {
674
+ "text": "Intl.DateTimeFormatOptions"
675
+ }
676
+ }
677
+ ],
662
678
  "privacy": "public"
663
679
  }
664
680
  ],
665
681
  "exports": [
666
682
  {
667
683
  "kind": "js",
668
- "name": "SOCKET_EXT",
669
- "declaration": {
670
- "name": "_SOCKET_EXT",
671
- "module": "src/env/variables.ts"
672
- }
673
- },
674
- {
675
- "kind": "js",
676
- "name": "FORCE_HTTP",
684
+ "name": "formatDateTimestamp",
677
685
  "declaration": {
678
- "name": "_FORCE_HTTP",
679
- "module": "src/env/variables.ts"
686
+ "name": "formatDateTimestamp",
687
+ "module": "src/formatters/datetime.ts"
680
688
  }
681
689
  },
682
690
  {
683
691
  "kind": "js",
684
- "name": "GENESIS_SOCKET_URL",
692
+ "name": "formatDateTimeTimestamp",
685
693
  "declaration": {
686
- "name": "GENESIS_SOCKET_URL",
687
- "module": "src/env/variables.ts"
694
+ "name": "formatDateTimeTimestamp",
695
+ "module": "src/formatters/datetime.ts"
688
696
  }
689
697
  },
690
698
  {
691
699
  "kind": "js",
692
- "name": "API_HOST",
700
+ "name": "formatTimestamp",
693
701
  "declaration": {
694
- "name": "_API_HOST",
695
- "module": "src/env/variables.ts"
702
+ "name": "formatTimestamp",
703
+ "module": "src/formatters/datetime.ts"
696
704
  }
697
705
  },
698
706
  {
699
707
  "kind": "js",
700
- "name": "HTTP_CONFIG",
708
+ "name": "getDateFormatter",
701
709
  "declaration": {
702
- "name": "_HTTP_CONFIG",
703
- "module": "src/env/variables.ts"
710
+ "name": "getDateFormatter",
711
+ "module": "src/formatters/datetime.ts"
704
712
  }
705
- },
713
+ }
714
+ ]
715
+ },
716
+ {
717
+ "kind": "javascript-module",
718
+ "path": "src/formatters/index.ts",
719
+ "declarations": [],
720
+ "exports": [
706
721
  {
707
722
  "kind": "js",
708
- "name": "DEFAULT_ORGANISATION",
723
+ "name": "*",
709
724
  "declaration": {
710
- "name": "_DEFAULT_ORGANISATION",
711
- "module": "src/env/variables.ts"
725
+ "name": "*",
726
+ "package": "./datetime"
712
727
  }
713
728
  },
714
729
  {
715
730
  "kind": "js",
716
- "name": "DEFAULT_PASSWORD",
731
+ "name": "*",
717
732
  "declaration": {
718
- "name": "_DEFAULT_PASSWORD",
719
- "module": "src/env/variables.ts"
733
+ "name": "*",
734
+ "package": "./localeNumberParser"
720
735
  }
721
736
  },
722
737
  {
723
738
  "kind": "js",
724
- "name": "DEFAULT_USER",
739
+ "name": "*",
725
740
  "declaration": {
726
- "name": "_DEFAULT_USER",
727
- "module": "src/env/variables.ts"
741
+ "name": "*",
742
+ "package": "./number"
728
743
  }
729
744
  }
730
745
  ]
731
746
  },
732
747
  {
733
748
  "kind": "javascript-module",
734
- "path": "src/error/errorMap.ts",
749
+ "path": "src/formatters/localeNumberParser.ts",
735
750
  "declarations": [
736
751
  {
737
752
  "kind": "class",
738
753
  "description": "",
739
- "name": "DefaultErrorMap",
754
+ "name": "NumberParser",
740
755
  "members": [
741
756
  {
742
757
  "kind": "field",
743
- "name": "map",
758
+ "name": "_decimal",
759
+ "type": {
760
+ "text": "RegExp"
761
+ },
744
762
  "privacy": "private",
745
- "default": "new Map<keyof TErrorDetailMap, Error>()"
763
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
746
764
  },
747
765
  {
748
766
  "kind": "field",
749
- "name": "lastError",
767
+ "name": "_separator",
750
768
  "type": {
751
- "text": "Error"
752
- },
753
- "description": "{@inheritDoc ErrorMap.lastError}"
754
- },
755
- {
756
- "kind": "method",
757
- "name": "set",
758
- "return": {
759
- "type": {
760
- "text": "void"
761
- }
769
+ "text": "RegExp"
762
770
  },
763
- "parameters": [
764
- {
765
- "name": "key",
766
- "type": {
767
- "text": "keyof TErrorDetailMap"
768
- }
769
- },
770
- {
771
- "name": "error",
772
- "type": {
773
- "text": "Error"
774
- }
775
- }
776
- ],
777
- "description": "{@inheritDoc ErrorMap.set}"
771
+ "privacy": "private",
772
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
778
773
  },
779
774
  {
780
- "kind": "method",
781
- "name": "get",
782
- "return": {
783
- "type": {
784
- "text": ""
785
- }
775
+ "kind": "field",
776
+ "name": "_numeral",
777
+ "type": {
778
+ "text": "RegExp"
786
779
  },
787
- "parameters": [
788
- {
789
- "name": "key",
790
- "type": {
791
- "text": "keyof TErrorDetailMap"
792
- },
793
- "description": "The key."
794
- }
795
- ],
796
- "description": "Get an error by key.",
797
- "privacy": "public"
780
+ "privacy": "private",
781
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
798
782
  },
799
783
  {
800
- "kind": "method",
801
- "name": "has",
802
- "return": {
803
- "type": {
804
- "text": ""
805
- }
784
+ "kind": "field",
785
+ "name": "_index",
786
+ "type": {
787
+ "text": "any"
806
788
  },
807
- "parameters": [
808
- {
809
- "name": "key",
810
- "type": {
811
- "text": "keyof TErrorDetailMap"
812
- },
813
- "description": "The key."
814
- }
815
- ],
816
- "description": "Has an error for key.",
817
- "privacy": "public"
789
+ "privacy": "private"
818
790
  },
819
791
  {
820
792
  "kind": "method",
821
- "name": "delete",
822
- "return": {
823
- "type": {
824
- "text": ""
825
- }
826
- },
793
+ "name": "parse",
827
794
  "parameters": [
828
795
  {
829
- "name": "key",
796
+ "name": "localeNumber",
830
797
  "type": {
831
- "text": "keyof TErrorDetailMap"
832
- },
833
- "description": "The key."
798
+ "text": "string"
799
+ }
834
800
  }
835
- ],
836
- "description": "Delete an error.",
837
- "privacy": "public"
801
+ ]
838
802
  },
839
803
  {
840
804
  "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.",
805
+ "name": "hasSeparator",
852
806
  "return": {
853
807
  "type": {
854
- "text": ""
808
+ "text": "boolean"
855
809
  }
856
810
  },
857
- "privacy": "public",
858
- "readonly": true
859
- },
860
- {
861
- "kind": "method",
862
- "name": "values",
863
- "privacy": "public"
811
+ "parameters": [
812
+ {
813
+ "name": "localeNumber",
814
+ "type": {
815
+ "text": "string"
816
+ }
817
+ }
818
+ ]
864
819
  },
865
820
  {
866
821
  "kind": "field",
867
- "name": "messages",
868
- "type": {
869
- "text": "string"
870
- },
871
- "description": "{@inheritDoc ErrorMap.messages}",
872
- "readonly": true
822
+ "name": "_group",
823
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
873
824
  }
874
825
  ]
875
- },
826
+ }
827
+ ],
828
+ "exports": [
829
+ {
830
+ "kind": "js",
831
+ "name": "NumberParser",
832
+ "declaration": {
833
+ "name": "NumberParser",
834
+ "module": "src/formatters/localeNumberParser.ts"
835
+ }
836
+ }
837
+ ]
838
+ },
839
+ {
840
+ "kind": "javascript-module",
841
+ "path": "src/formatters/number.ts",
842
+ "declarations": [
876
843
  {
877
844
  "kind": "function",
878
- "name": "createErrorMap",
879
- "return": {
880
- "type": {
881
- "text": ""
882
- }
883
- },
845
+ "name": "getNumberFormatter",
884
846
  "parameters": [
885
847
  {
886
- "name": "logger",
848
+ "name": "format",
887
849
  "type": {
888
- "text": "ErrorMapLogger"
889
- },
890
- "description": "A logger error method reference."
850
+ "text": "string"
851
+ }
852
+ },
853
+ {
854
+ "name": "locale",
855
+ "optional": true,
856
+ "type": {
857
+ "text": "string | null"
858
+ }
891
859
  }
892
860
  ],
893
- "description": "A factory to create the error map.",
894
861
  "privacy": "public"
895
862
  }
896
863
  ],
897
864
  "exports": [
898
865
  {
899
866
  "kind": "js",
900
- "name": "DefaultErrorMap",
867
+ "name": "getNumberFormatter",
901
868
  "declaration": {
902
- "name": "DefaultErrorMap",
903
- "module": "src/error/errorMap.ts"
869
+ "name": "getNumberFormatter",
870
+ "module": "src/formatters/number.ts"
871
+ }
872
+ }
873
+ ]
874
+ },
875
+ {
876
+ "kind": "javascript-module",
877
+ "path": "src/env/index.ts",
878
+ "declarations": [],
879
+ "exports": [
880
+ {
881
+ "kind": "js",
882
+ "name": "*",
883
+ "declaration": {
884
+ "name": "*",
885
+ "package": "./is-dev"
904
886
  }
905
887
  },
906
888
  {
907
889
  "kind": "js",
908
- "name": "createErrorMap",
890
+ "name": "*",
909
891
  "declaration": {
910
- "name": "createErrorMap",
911
- "module": "src/error/errorMap.ts"
892
+ "name": "*",
893
+ "package": "./variables"
912
894
  }
913
895
  }
914
896
  ]
915
897
  },
916
898
  {
917
899
  "kind": "javascript-module",
918
- "path": "src/error/index.ts",
919
- "declarations": [],
900
+ "path": "src/env/is-dev.ts",
901
+ "declarations": [
902
+ {
903
+ "kind": "function",
904
+ "name": "isDev",
905
+ "description": "Determines if the current environment is a development environment.",
906
+ "privacy": "public"
907
+ }
908
+ ],
920
909
  "exports": [
921
910
  {
922
911
  "kind": "js",
923
- "name": "*",
912
+ "name": "isDev",
924
913
  "declaration": {
925
- "name": "*",
926
- "package": "./errorMap"
914
+ "name": "isDev",
915
+ "module": "src/env/is-dev.ts"
927
916
  }
928
917
  }
929
918
  ]
930
919
  },
931
920
  {
932
921
  "kind": "javascript-module",
933
- "path": "src/formatters/datetime.ts",
922
+ "path": "src/env/variables.ts",
934
923
  "declarations": [
935
924
  {
936
- "kind": "function",
937
- "name": "formatDateTimestamp",
938
- "return": {
939
- "type": {
940
- "text": "string"
941
- }
925
+ "kind": "variable",
926
+ "name": "SOCKET_EXT",
927
+ "type": {
928
+ "text": "string"
929
+ }
930
+ },
931
+ {
932
+ "kind": "variable",
933
+ "name": "_SOCKET_EXT",
934
+ "type": {
935
+ "text": "string"
942
936
  },
943
- "parameters": [
944
- {
945
- "name": "timestamp",
946
- "type": {
947
- "text": "number"
948
- }
949
- }
950
- ],
951
- "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
937
+ "default": "'gwf'",
938
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
952
939
  "privacy": "public"
953
940
  },
954
941
  {
955
- "kind": "function",
956
- "name": "formatDateTimeTimestamp",
957
- "return": {
958
- "type": {
959
- "text": "string"
960
- }
942
+ "kind": "variable",
943
+ "name": "FORCE_HTTP",
944
+ "type": {
945
+ "text": "string"
946
+ }
947
+ },
948
+ {
949
+ "kind": "variable",
950
+ "name": "_FORCE_HTTP",
951
+ "type": {
952
+ "text": "string"
961
953
  },
962
- "parameters": [
963
- {
964
- "name": "timestamp",
965
- "type": {
966
- "text": "number"
967
- }
968
- }
969
- ],
970
- "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
954
+ "description": "The path to a JSON config file for the HTTP mode.",
971
955
  "privacy": "public"
972
956
  },
973
957
  {
974
- "kind": "function",
975
- "name": "formatTimestamp",
976
- "return": {
977
- "type": {
978
- "text": "string"
979
- }
958
+ "kind": "variable",
959
+ "name": "GENESIS_SOCKET_URL",
960
+ "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
961
+ "description": "Genesis Socket URL",
962
+ "privacy": "public"
963
+ },
964
+ {
965
+ "kind": "variable",
966
+ "name": "API_HOST",
967
+ "type": {
968
+ "text": "string"
969
+ }
970
+ },
971
+ {
972
+ "kind": "variable",
973
+ "name": "_API_HOST",
974
+ "type": {
975
+ "text": "string"
980
976
  },
981
- "parameters": [
982
- {
983
- "name": "timestamp",
984
- "type": {
985
- "text": "number"
986
- },
987
- "description": "The UNIX Timestamp."
988
- },
989
- {
990
- "name": "withTime",
991
- "type": {
992
- "text": "boolean"
993
- },
994
- "description": "The flag to determine if formatted value should contain 'time' info."
995
- }
996
- ],
997
- "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
977
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
978
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
979
+ "privacy": "public"
980
+ },
981
+ {
982
+ "kind": "variable",
983
+ "name": "HTTP_CONFIG",
984
+ "type": {
985
+ "text": "string"
986
+ }
987
+ },
988
+ {
989
+ "kind": "variable",
990
+ "name": "_HTTP_CONFIG",
991
+ "type": {
992
+ "text": "string"
993
+ },
994
+ "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
995
+ "privacy": "public"
996
+ },
997
+ {
998
+ "kind": "variable",
999
+ "name": "DEFAULT_ORGANISATION",
1000
+ "type": {
1001
+ "text": "string"
1002
+ }
1003
+ },
1004
+ {
1005
+ "kind": "variable",
1006
+ "name": "_DEFAULT_ORGANISATION",
1007
+ "type": {
1008
+ "text": "string"
1009
+ },
1010
+ "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
998
1011
  "privacy": "public"
999
1012
  },
1000
1013
  {
1001
- "kind": "function",
1002
- "name": "getDateFormatter",
1003
- "parameters": [
1004
- {
1005
- "name": "locale",
1006
- "default": "'en-GB'",
1007
- "type": {
1008
- "text": "string"
1009
- }
1010
- },
1011
- {
1012
- "name": "options",
1013
- "default": "defaultDateOptions",
1014
- "type": {
1015
- "text": "Intl.DateTimeFormatOptions"
1016
- }
1017
- }
1018
- ],
1014
+ "kind": "variable",
1015
+ "name": "DEFAULT_PASSWORD",
1016
+ "type": {
1017
+ "text": "string"
1018
+ }
1019
+ },
1020
+ {
1021
+ "kind": "variable",
1022
+ "name": "_DEFAULT_PASSWORD",
1023
+ "type": {
1024
+ "text": "string"
1025
+ },
1026
+ "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
1027
+ "privacy": "public"
1028
+ },
1029
+ {
1030
+ "kind": "variable",
1031
+ "name": "DEFAULT_USER",
1032
+ "type": {
1033
+ "text": "string"
1034
+ }
1035
+ },
1036
+ {
1037
+ "kind": "variable",
1038
+ "name": "_DEFAULT_USER",
1039
+ "type": {
1040
+ "text": "string"
1041
+ },
1042
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
1019
1043
  "privacy": "public"
1020
1044
  }
1021
1045
  ],
1022
1046
  "exports": [
1023
1047
  {
1024
1048
  "kind": "js",
1025
- "name": "formatDateTimestamp",
1049
+ "name": "SOCKET_EXT",
1026
1050
  "declaration": {
1027
- "name": "formatDateTimestamp",
1028
- "module": "src/formatters/datetime.ts"
1051
+ "name": "_SOCKET_EXT",
1052
+ "module": "src/env/variables.ts"
1029
1053
  }
1030
1054
  },
1031
1055
  {
1032
1056
  "kind": "js",
1033
- "name": "formatDateTimeTimestamp",
1057
+ "name": "FORCE_HTTP",
1034
1058
  "declaration": {
1035
- "name": "formatDateTimeTimestamp",
1036
- "module": "src/formatters/datetime.ts"
1059
+ "name": "_FORCE_HTTP",
1060
+ "module": "src/env/variables.ts"
1037
1061
  }
1038
1062
  },
1039
1063
  {
1040
1064
  "kind": "js",
1041
- "name": "formatTimestamp",
1065
+ "name": "GENESIS_SOCKET_URL",
1042
1066
  "declaration": {
1043
- "name": "formatTimestamp",
1044
- "module": "src/formatters/datetime.ts"
1067
+ "name": "GENESIS_SOCKET_URL",
1068
+ "module": "src/env/variables.ts"
1045
1069
  }
1046
1070
  },
1047
1071
  {
1048
1072
  "kind": "js",
1049
- "name": "getDateFormatter",
1073
+ "name": "API_HOST",
1050
1074
  "declaration": {
1051
- "name": "getDateFormatter",
1052
- "module": "src/formatters/datetime.ts"
1075
+ "name": "_API_HOST",
1076
+ "module": "src/env/variables.ts"
1053
1077
  }
1054
- }
1055
- ]
1056
- },
1057
- {
1058
- "kind": "javascript-module",
1059
- "path": "src/formatters/index.ts",
1060
- "declarations": [],
1061
- "exports": [
1078
+ },
1062
1079
  {
1063
1080
  "kind": "js",
1064
- "name": "*",
1081
+ "name": "HTTP_CONFIG",
1065
1082
  "declaration": {
1066
- "name": "*",
1067
- "package": "./datetime"
1083
+ "name": "_HTTP_CONFIG",
1084
+ "module": "src/env/variables.ts"
1068
1085
  }
1069
1086
  },
1070
1087
  {
1071
1088
  "kind": "js",
1072
- "name": "*",
1089
+ "name": "DEFAULT_ORGANISATION",
1073
1090
  "declaration": {
1074
- "name": "*",
1075
- "package": "./localeNumberParser"
1091
+ "name": "_DEFAULT_ORGANISATION",
1092
+ "module": "src/env/variables.ts"
1076
1093
  }
1077
1094
  },
1078
1095
  {
1079
1096
  "kind": "js",
1080
- "name": "*",
1097
+ "name": "DEFAULT_PASSWORD",
1081
1098
  "declaration": {
1082
- "name": "*",
1083
- "package": "./number"
1099
+ "name": "_DEFAULT_PASSWORD",
1100
+ "module": "src/env/variables.ts"
1101
+ }
1102
+ },
1103
+ {
1104
+ "kind": "js",
1105
+ "name": "DEFAULT_USER",
1106
+ "declaration": {
1107
+ "name": "_DEFAULT_USER",
1108
+ "module": "src/env/variables.ts"
1084
1109
  }
1085
1110
  }
1086
1111
  ]
1087
1112
  },
1088
1113
  {
1089
1114
  "kind": "javascript-module",
1090
- "path": "src/formatters/localeNumberParser.ts",
1115
+ "path": "src/design-system/design-system.ts",
1091
1116
  "declarations": [
1092
1117
  {
1093
- "kind": "class",
1094
- "description": "",
1095
- "name": "NumberParser",
1096
- "members": [
1097
- {
1098
- "kind": "field",
1099
- "name": "_decimal",
1100
- "type": {
1101
- "text": "RegExp"
1102
- },
1103
- "privacy": "private",
1104
- "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
1105
- },
1106
- {
1107
- "kind": "field",
1108
- "name": "_separator",
1109
- "type": {
1110
- "text": "RegExp"
1111
- },
1112
- "privacy": "private",
1113
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1114
- },
1115
- {
1116
- "kind": "field",
1117
- "name": "_numeral",
1118
- "type": {
1119
- "text": "RegExp"
1120
- },
1121
- "privacy": "private",
1122
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1123
- },
1118
+ "kind": "function",
1119
+ "name": "assureDesignSystem",
1120
+ "return": {
1121
+ "type": {
1122
+ "text": "DesignSystemModule"
1123
+ }
1124
+ },
1125
+ "parameters": [
1124
1126
  {
1125
- "kind": "field",
1126
- "name": "_index",
1127
+ "name": "module",
1127
1128
  "type": {
1128
- "text": "any"
1129
- },
1130
- "privacy": "private"
1131
- },
1132
- {
1133
- "kind": "method",
1134
- "name": "parse",
1135
- "parameters": [
1136
- {
1137
- "name": "localeNumber",
1138
- "type": {
1139
- "text": "string"
1140
- }
1141
- }
1142
- ]
1143
- },
1144
- {
1145
- "kind": "method",
1146
- "name": "hasSeparator",
1147
- "return": {
1148
- "type": {
1149
- "text": "boolean"
1150
- }
1151
- },
1152
- "parameters": [
1153
- {
1154
- "name": "localeNumber",
1155
- "type": {
1156
- "text": "string"
1157
- }
1158
- }
1159
- ]
1160
- },
1161
- {
1162
- "kind": "field",
1163
- "name": "_group",
1164
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1129
+ "text": "DesignSystemModule"
1130
+ }
1165
1131
  }
1166
- ]
1132
+ ],
1133
+ "description": "assureDesignSystem.",
1134
+ "privacy": "public"
1167
1135
  }
1168
1136
  ],
1169
1137
  "exports": [
1170
1138
  {
1171
1139
  "kind": "js",
1172
- "name": "NumberParser",
1140
+ "name": "assureDesignSystem",
1173
1141
  "declaration": {
1174
- "name": "NumberParser",
1175
- "module": "src/formatters/localeNumberParser.ts"
1142
+ "name": "assureDesignSystem",
1143
+ "module": "src/design-system/design-system.ts"
1176
1144
  }
1177
1145
  }
1178
1146
  ]
1179
1147
  },
1180
1148
  {
1181
1149
  "kind": "javascript-module",
1182
- "path": "src/formatters/number.ts",
1150
+ "path": "src/design-system/index.ts",
1151
+ "declarations": [],
1152
+ "exports": [
1153
+ {
1154
+ "kind": "js",
1155
+ "name": "*",
1156
+ "declaration": {
1157
+ "name": "*",
1158
+ "package": "./design-system"
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",
1183
1181
  "declarations": [
1184
1182
  {
1185
1183
  "kind": "function",
1186
- "name": "getNumberFormatter",
1184
+ "name": "renderOnChange",
1187
1185
  "parameters": [
1188
1186
  {
1189
- "name": "format",
1187
+ "name": "target",
1190
1188
  "type": {
1191
- "text": "string"
1192
- }
1189
+ "text": "FASTElement & { render(): void }"
1190
+ },
1191
+ "description": "The target to define the property change handler on."
1193
1192
  },
1194
1193
  {
1195
- "name": "locale",
1196
- "optional": true,
1194
+ "name": "name",
1197
1195
  "type": {
1198
- "text": "string | null"
1199
- }
1196
+ "text": "string"
1197
+ },
1198
+ "description": "The property name."
1200
1199
  }
1201
1200
  ],
1201
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1202
1202
  "privacy": "public"
1203
1203
  }
1204
1204
  ],
1205
1205
  "exports": [
1206
1206
  {
1207
1207
  "kind": "js",
1208
- "name": "getNumberFormatter",
1208
+ "name": "renderOnChange",
1209
1209
  "declaration": {
1210
- "name": "getNumberFormatter",
1211
- "module": "src/formatters/number.ts"
1210
+ "name": "renderOnChange",
1211
+ "module": "src/decorators/renderOnChange.ts"
1212
1212
  }
1213
1213
  }
1214
1214
  ]