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