@genesislcap/foundation-utils 14.158.2 → 14.160.0
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.
- package/dist/custom-elements.json +445 -445
- package/package.json +10 -10
|
@@ -404,42 +404,326 @@
|
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
"kind": "javascript-module",
|
|
407
|
-
"path": "src/
|
|
407
|
+
"path": "src/directives/index.ts",
|
|
408
|
+
"declarations": [],
|
|
409
|
+
"exports": [
|
|
410
|
+
{
|
|
411
|
+
"kind": "js",
|
|
412
|
+
"name": "*",
|
|
413
|
+
"declaration": {
|
|
414
|
+
"name": "*",
|
|
415
|
+
"package": "./sync"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"kind": "js",
|
|
420
|
+
"name": "*",
|
|
421
|
+
"declaration": {
|
|
422
|
+
"name": "*",
|
|
423
|
+
"package": "./when-else"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "javascript-module",
|
|
430
|
+
"path": "src/error/errorMap.ts",
|
|
408
431
|
"declarations": [
|
|
432
|
+
{
|
|
433
|
+
"kind": "class",
|
|
434
|
+
"description": "",
|
|
435
|
+
"name": "DefaultErrorMap",
|
|
436
|
+
"members": [
|
|
437
|
+
{
|
|
438
|
+
"kind": "field",
|
|
439
|
+
"name": "map",
|
|
440
|
+
"privacy": "private",
|
|
441
|
+
"default": "new Map<keyof TErrorDetailMap, Error>()"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"kind": "field",
|
|
445
|
+
"name": "lastError",
|
|
446
|
+
"type": {
|
|
447
|
+
"text": "Error"
|
|
448
|
+
},
|
|
449
|
+
"description": "{@inheritDoc ErrorMap.lastError}"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"kind": "method",
|
|
453
|
+
"name": "set",
|
|
454
|
+
"return": {
|
|
455
|
+
"type": {
|
|
456
|
+
"text": "void"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"parameters": [
|
|
460
|
+
{
|
|
461
|
+
"name": "key",
|
|
462
|
+
"type": {
|
|
463
|
+
"text": "keyof TErrorDetailMap"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "error",
|
|
468
|
+
"type": {
|
|
469
|
+
"text": "Error"
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"description": "{@inheritDoc ErrorMap.set}"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"kind": "method",
|
|
477
|
+
"name": "get",
|
|
478
|
+
"return": {
|
|
479
|
+
"type": {
|
|
480
|
+
"text": ""
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"parameters": [
|
|
484
|
+
{
|
|
485
|
+
"name": "key",
|
|
486
|
+
"type": {
|
|
487
|
+
"text": "keyof TErrorDetailMap"
|
|
488
|
+
},
|
|
489
|
+
"description": "The key."
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"description": "Get an error by key.",
|
|
493
|
+
"privacy": "public"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"kind": "method",
|
|
497
|
+
"name": "has",
|
|
498
|
+
"return": {
|
|
499
|
+
"type": {
|
|
500
|
+
"text": ""
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"parameters": [
|
|
504
|
+
{
|
|
505
|
+
"name": "key",
|
|
506
|
+
"type": {
|
|
507
|
+
"text": "keyof TErrorDetailMap"
|
|
508
|
+
},
|
|
509
|
+
"description": "The key."
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"description": "Has an error for key.",
|
|
513
|
+
"privacy": "public"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"kind": "method",
|
|
517
|
+
"name": "delete",
|
|
518
|
+
"return": {
|
|
519
|
+
"type": {
|
|
520
|
+
"text": ""
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"parameters": [
|
|
524
|
+
{
|
|
525
|
+
"name": "key",
|
|
526
|
+
"type": {
|
|
527
|
+
"text": "keyof TErrorDetailMap"
|
|
528
|
+
},
|
|
529
|
+
"description": "The key."
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"description": "Delete an error.",
|
|
533
|
+
"privacy": "public"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "method",
|
|
537
|
+
"name": "clear",
|
|
538
|
+
"description": "Clear errors.",
|
|
539
|
+
"privacy": "public"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"kind": "field",
|
|
543
|
+
"name": "size",
|
|
544
|
+
"type": {
|
|
545
|
+
"text": "number"
|
|
546
|
+
},
|
|
547
|
+
"description": "The size of the error map.",
|
|
548
|
+
"return": {
|
|
549
|
+
"type": {
|
|
550
|
+
"text": ""
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"privacy": "public",
|
|
554
|
+
"readonly": true
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"kind": "method",
|
|
558
|
+
"name": "values",
|
|
559
|
+
"privacy": "public"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"kind": "field",
|
|
563
|
+
"name": "messages",
|
|
564
|
+
"type": {
|
|
565
|
+
"text": "string"
|
|
566
|
+
},
|
|
567
|
+
"description": "{@inheritDoc ErrorMap.messages}",
|
|
568
|
+
"readonly": true
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
},
|
|
409
572
|
{
|
|
410
573
|
"kind": "function",
|
|
411
|
-
"name": "
|
|
574
|
+
"name": "createErrorMap",
|
|
412
575
|
"return": {
|
|
413
576
|
"type": {
|
|
414
|
-
"text": "
|
|
577
|
+
"text": ""
|
|
415
578
|
}
|
|
416
579
|
},
|
|
417
580
|
"parameters": [
|
|
418
581
|
{
|
|
419
|
-
"name": "
|
|
582
|
+
"name": "logger",
|
|
420
583
|
"type": {
|
|
421
|
-
"text": "
|
|
584
|
+
"text": "ErrorMapLogger"
|
|
585
|
+
},
|
|
586
|
+
"description": "A logger error method reference."
|
|
587
|
+
}
|
|
588
|
+
],
|
|
589
|
+
"description": "A factory to create the error map.",
|
|
590
|
+
"privacy": "public"
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"exports": [
|
|
594
|
+
{
|
|
595
|
+
"kind": "js",
|
|
596
|
+
"name": "DefaultErrorMap",
|
|
597
|
+
"declaration": {
|
|
598
|
+
"name": "DefaultErrorMap",
|
|
599
|
+
"module": "src/error/errorMap.ts"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"kind": "js",
|
|
604
|
+
"name": "createErrorMap",
|
|
605
|
+
"declaration": {
|
|
606
|
+
"name": "createErrorMap",
|
|
607
|
+
"module": "src/error/errorMap.ts"
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"kind": "javascript-module",
|
|
614
|
+
"path": "src/error/index.ts",
|
|
615
|
+
"declarations": [],
|
|
616
|
+
"exports": [
|
|
617
|
+
{
|
|
618
|
+
"kind": "js",
|
|
619
|
+
"name": "*",
|
|
620
|
+
"declaration": {
|
|
621
|
+
"name": "*",
|
|
622
|
+
"package": "./errorMap"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"kind": "javascript-module",
|
|
629
|
+
"path": "src/formatters/datetime.ts",
|
|
630
|
+
"declarations": [
|
|
631
|
+
{
|
|
632
|
+
"kind": "function",
|
|
633
|
+
"name": "formatDateTimestamp",
|
|
634
|
+
"return": {
|
|
635
|
+
"type": {
|
|
636
|
+
"text": "string"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"parameters": [
|
|
640
|
+
{
|
|
641
|
+
"name": "timestamp",
|
|
642
|
+
"type": {
|
|
643
|
+
"text": "number"
|
|
422
644
|
}
|
|
423
645
|
}
|
|
424
646
|
],
|
|
425
|
-
"description": "
|
|
647
|
+
"description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
|
|
648
|
+
"privacy": "public"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"kind": "function",
|
|
652
|
+
"name": "formatDateTimeTimestamp",
|
|
653
|
+
"return": {
|
|
654
|
+
"type": {
|
|
655
|
+
"text": "string"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"parameters": [
|
|
659
|
+
{
|
|
660
|
+
"name": "timestamp",
|
|
661
|
+
"type": {
|
|
662
|
+
"text": "number"
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
"description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
|
|
667
|
+
"privacy": "public"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"kind": "function",
|
|
671
|
+
"name": "formatTimestamp",
|
|
672
|
+
"return": {
|
|
673
|
+
"type": {
|
|
674
|
+
"text": "string"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"parameters": [
|
|
678
|
+
{
|
|
679
|
+
"name": "timestamp",
|
|
680
|
+
"type": {
|
|
681
|
+
"text": "number"
|
|
682
|
+
},
|
|
683
|
+
"description": "The UNIX Timestamp."
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "withTime",
|
|
687
|
+
"type": {
|
|
688
|
+
"text": "boolean"
|
|
689
|
+
},
|
|
690
|
+
"description": "The flag to determine if formatted value should contain 'time' info."
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
|
|
426
694
|
"privacy": "public"
|
|
427
695
|
}
|
|
428
696
|
],
|
|
429
697
|
"exports": [
|
|
430
698
|
{
|
|
431
699
|
"kind": "js",
|
|
432
|
-
"name": "
|
|
700
|
+
"name": "formatDateTimestamp",
|
|
433
701
|
"declaration": {
|
|
434
|
-
"name": "
|
|
435
|
-
"module": "src/
|
|
702
|
+
"name": "formatDateTimestamp",
|
|
703
|
+
"module": "src/formatters/datetime.ts"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"kind": "js",
|
|
708
|
+
"name": "formatDateTimeTimestamp",
|
|
709
|
+
"declaration": {
|
|
710
|
+
"name": "formatDateTimeTimestamp",
|
|
711
|
+
"module": "src/formatters/datetime.ts"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"kind": "js",
|
|
716
|
+
"name": "formatTimestamp",
|
|
717
|
+
"declaration": {
|
|
718
|
+
"name": "formatTimestamp",
|
|
719
|
+
"module": "src/formatters/datetime.ts"
|
|
436
720
|
}
|
|
437
721
|
}
|
|
438
722
|
]
|
|
439
723
|
},
|
|
440
724
|
{
|
|
441
725
|
"kind": "javascript-module",
|
|
442
|
-
"path": "src/
|
|
726
|
+
"path": "src/formatters/index.ts",
|
|
443
727
|
"declarations": [],
|
|
444
728
|
"exports": [
|
|
445
729
|
{
|
|
@@ -447,30 +731,107 @@
|
|
|
447
731
|
"name": "*",
|
|
448
732
|
"declaration": {
|
|
449
733
|
"name": "*",
|
|
450
|
-
"package": "./
|
|
734
|
+
"package": "./datetime"
|
|
451
735
|
}
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"kind": "js",
|
|
739
|
+
"name": "*",
|
|
740
|
+
"declaration": {
|
|
741
|
+
"name": "*",
|
|
742
|
+
"package": "./localeNumberParser"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"kind": "javascript-module",
|
|
749
|
+
"path": "src/formatters/localeNumberParser.ts",
|
|
750
|
+
"declarations": [
|
|
751
|
+
{
|
|
752
|
+
"kind": "class",
|
|
753
|
+
"description": "",
|
|
754
|
+
"name": "NumberParser",
|
|
755
|
+
"members": [
|
|
756
|
+
{
|
|
757
|
+
"kind": "field",
|
|
758
|
+
"name": "_decimal",
|
|
759
|
+
"type": {
|
|
760
|
+
"text": "RegExp"
|
|
761
|
+
},
|
|
762
|
+
"privacy": "private",
|
|
763
|
+
"default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"kind": "field",
|
|
767
|
+
"name": "_separator",
|
|
768
|
+
"type": {
|
|
769
|
+
"text": "RegExp"
|
|
770
|
+
},
|
|
771
|
+
"privacy": "private",
|
|
772
|
+
"default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"kind": "field",
|
|
776
|
+
"name": "_numeral",
|
|
777
|
+
"type": {
|
|
778
|
+
"text": "RegExp"
|
|
779
|
+
},
|
|
780
|
+
"privacy": "private",
|
|
781
|
+
"default": "new RegExp(`[${numerals.join('')}]`, 'g')"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"kind": "field",
|
|
785
|
+
"name": "_index",
|
|
786
|
+
"type": {
|
|
787
|
+
"text": "any"
|
|
788
|
+
},
|
|
789
|
+
"privacy": "private"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"kind": "method",
|
|
793
|
+
"name": "parse",
|
|
794
|
+
"parameters": [
|
|
795
|
+
{
|
|
796
|
+
"name": "localeNumber",
|
|
797
|
+
"type": {
|
|
798
|
+
"text": "string"
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
]
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"kind": "method",
|
|
805
|
+
"name": "hasSeparator",
|
|
806
|
+
"return": {
|
|
807
|
+
"type": {
|
|
808
|
+
"text": "boolean"
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
"parameters": [
|
|
812
|
+
{
|
|
813
|
+
"name": "localeNumber",
|
|
814
|
+
"type": {
|
|
815
|
+
"text": "string"
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
]
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"kind": "field",
|
|
822
|
+
"name": "_group",
|
|
823
|
+
"default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
|
|
824
|
+
}
|
|
825
|
+
]
|
|
452
826
|
}
|
|
453
|
-
]
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"kind": "javascript-module",
|
|
457
|
-
"path": "src/directives/index.ts",
|
|
458
|
-
"declarations": [],
|
|
827
|
+
],
|
|
459
828
|
"exports": [
|
|
460
829
|
{
|
|
461
830
|
"kind": "js",
|
|
462
|
-
"name": "
|
|
463
|
-
"declaration": {
|
|
464
|
-
"name": "*",
|
|
465
|
-
"package": "./sync"
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"kind": "js",
|
|
470
|
-
"name": "*",
|
|
831
|
+
"name": "NumberParser",
|
|
471
832
|
"declaration": {
|
|
472
|
-
"name": "
|
|
473
|
-
"
|
|
833
|
+
"name": "NumberParser",
|
|
834
|
+
"module": "src/formatters/localeNumberParser.ts"
|
|
474
835
|
}
|
|
475
836
|
}
|
|
476
837
|
]
|
|
@@ -632,371 +993,110 @@
|
|
|
632
993
|
{
|
|
633
994
|
"kind": "variable",
|
|
634
995
|
"name": "_DEFAULT_USER",
|
|
635
|
-
"type": {
|
|
636
|
-
"text": "string"
|
|
637
|
-
},
|
|
638
|
-
"description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
639
|
-
"privacy": "public"
|
|
640
|
-
}
|
|
641
|
-
],
|
|
642
|
-
"exports": [
|
|
643
|
-
{
|
|
644
|
-
"kind": "js",
|
|
645
|
-
"name": "SOCKET_EXT",
|
|
646
|
-
"declaration": {
|
|
647
|
-
"name": "_SOCKET_EXT",
|
|
648
|
-
"module": "src/env/variables.ts"
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"kind": "js",
|
|
653
|
-
"name": "FORCE_HTTP",
|
|
654
|
-
"declaration": {
|
|
655
|
-
"name": "_FORCE_HTTP",
|
|
656
|
-
"module": "src/env/variables.ts"
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
"kind": "js",
|
|
661
|
-
"name": "API_HOST",
|
|
662
|
-
"declaration": {
|
|
663
|
-
"name": "_API_HOST",
|
|
664
|
-
"module": "src/env/variables.ts"
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
"kind": "js",
|
|
669
|
-
"name": "HTTP_CONFIG",
|
|
670
|
-
"declaration": {
|
|
671
|
-
"name": "_HTTP_CONFIG",
|
|
672
|
-
"module": "src/env/variables.ts"
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"kind": "js",
|
|
677
|
-
"name": "DEFAULT_ORGANISATION",
|
|
678
|
-
"declaration": {
|
|
679
|
-
"name": "_DEFAULT_ORGANISATION",
|
|
680
|
-
"module": "src/env/variables.ts"
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"kind": "js",
|
|
685
|
-
"name": "DEFAULT_PASSWORD",
|
|
686
|
-
"declaration": {
|
|
687
|
-
"name": "_DEFAULT_PASSWORD",
|
|
688
|
-
"module": "src/env/variables.ts"
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"kind": "js",
|
|
693
|
-
"name": "DEFAULT_USER",
|
|
694
|
-
"declaration": {
|
|
695
|
-
"name": "_DEFAULT_USER",
|
|
696
|
-
"module": "src/env/variables.ts"
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
]
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
"kind": "javascript-module",
|
|
703
|
-
"path": "src/error/errorMap.ts",
|
|
704
|
-
"declarations": [
|
|
705
|
-
{
|
|
706
|
-
"kind": "class",
|
|
707
|
-
"description": "",
|
|
708
|
-
"name": "DefaultErrorMap",
|
|
709
|
-
"members": [
|
|
710
|
-
{
|
|
711
|
-
"kind": "field",
|
|
712
|
-
"name": "map",
|
|
713
|
-
"privacy": "private",
|
|
714
|
-
"default": "new Map<keyof TErrorDetailMap, Error>()"
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
"kind": "field",
|
|
718
|
-
"name": "lastError",
|
|
719
|
-
"type": {
|
|
720
|
-
"text": "Error"
|
|
721
|
-
},
|
|
722
|
-
"description": "{@inheritDoc ErrorMap.lastError}"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"kind": "method",
|
|
726
|
-
"name": "set",
|
|
727
|
-
"return": {
|
|
728
|
-
"type": {
|
|
729
|
-
"text": "void"
|
|
730
|
-
}
|
|
731
|
-
},
|
|
732
|
-
"parameters": [
|
|
733
|
-
{
|
|
734
|
-
"name": "key",
|
|
735
|
-
"type": {
|
|
736
|
-
"text": "keyof TErrorDetailMap"
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"name": "error",
|
|
741
|
-
"type": {
|
|
742
|
-
"text": "Error"
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
],
|
|
746
|
-
"description": "{@inheritDoc ErrorMap.set}"
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"kind": "method",
|
|
750
|
-
"name": "get",
|
|
751
|
-
"return": {
|
|
752
|
-
"type": {
|
|
753
|
-
"text": ""
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
"parameters": [
|
|
757
|
-
{
|
|
758
|
-
"name": "key",
|
|
759
|
-
"type": {
|
|
760
|
-
"text": "keyof TErrorDetailMap"
|
|
761
|
-
},
|
|
762
|
-
"description": "The key."
|
|
763
|
-
}
|
|
764
|
-
],
|
|
765
|
-
"description": "Get an error by key.",
|
|
766
|
-
"privacy": "public"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"kind": "method",
|
|
770
|
-
"name": "has",
|
|
771
|
-
"return": {
|
|
772
|
-
"type": {
|
|
773
|
-
"text": ""
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
"parameters": [
|
|
777
|
-
{
|
|
778
|
-
"name": "key",
|
|
779
|
-
"type": {
|
|
780
|
-
"text": "keyof TErrorDetailMap"
|
|
781
|
-
},
|
|
782
|
-
"description": "The key."
|
|
783
|
-
}
|
|
784
|
-
],
|
|
785
|
-
"description": "Has an error for key.",
|
|
786
|
-
"privacy": "public"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"kind": "method",
|
|
790
|
-
"name": "delete",
|
|
791
|
-
"return": {
|
|
792
|
-
"type": {
|
|
793
|
-
"text": ""
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
"parameters": [
|
|
797
|
-
{
|
|
798
|
-
"name": "key",
|
|
799
|
-
"type": {
|
|
800
|
-
"text": "keyof TErrorDetailMap"
|
|
801
|
-
},
|
|
802
|
-
"description": "The key."
|
|
803
|
-
}
|
|
804
|
-
],
|
|
805
|
-
"description": "Delete an error.",
|
|
806
|
-
"privacy": "public"
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
"kind": "method",
|
|
810
|
-
"name": "clear",
|
|
811
|
-
"description": "Clear errors.",
|
|
812
|
-
"privacy": "public"
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
"kind": "field",
|
|
816
|
-
"name": "size",
|
|
817
|
-
"type": {
|
|
818
|
-
"text": "number"
|
|
819
|
-
},
|
|
820
|
-
"description": "The size of the error map.",
|
|
821
|
-
"return": {
|
|
822
|
-
"type": {
|
|
823
|
-
"text": ""
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
"privacy": "public",
|
|
827
|
-
"readonly": true
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
"kind": "method",
|
|
831
|
-
"name": "values",
|
|
832
|
-
"privacy": "public"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
"kind": "field",
|
|
836
|
-
"name": "messages",
|
|
837
|
-
"type": {
|
|
838
|
-
"text": "string"
|
|
839
|
-
},
|
|
840
|
-
"description": "{@inheritDoc ErrorMap.messages}",
|
|
841
|
-
"readonly": true
|
|
842
|
-
}
|
|
843
|
-
]
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
"kind": "function",
|
|
847
|
-
"name": "createErrorMap",
|
|
848
|
-
"return": {
|
|
849
|
-
"type": {
|
|
850
|
-
"text": ""
|
|
851
|
-
}
|
|
996
|
+
"type": {
|
|
997
|
+
"text": "string"
|
|
852
998
|
},
|
|
853
|
-
"
|
|
854
|
-
{
|
|
855
|
-
"name": "logger",
|
|
856
|
-
"type": {
|
|
857
|
-
"text": "ErrorMapLogger"
|
|
858
|
-
},
|
|
859
|
-
"description": "A logger error method reference."
|
|
860
|
-
}
|
|
861
|
-
],
|
|
862
|
-
"description": "A factory to create the error map.",
|
|
999
|
+
"description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
863
1000
|
"privacy": "public"
|
|
864
1001
|
}
|
|
865
1002
|
],
|
|
866
1003
|
"exports": [
|
|
867
1004
|
{
|
|
868
1005
|
"kind": "js",
|
|
869
|
-
"name": "
|
|
1006
|
+
"name": "SOCKET_EXT",
|
|
870
1007
|
"declaration": {
|
|
871
|
-
"name": "
|
|
872
|
-
"module": "src/
|
|
1008
|
+
"name": "_SOCKET_EXT",
|
|
1009
|
+
"module": "src/env/variables.ts"
|
|
873
1010
|
}
|
|
874
1011
|
},
|
|
875
1012
|
{
|
|
876
1013
|
"kind": "js",
|
|
877
|
-
"name": "
|
|
1014
|
+
"name": "FORCE_HTTP",
|
|
878
1015
|
"declaration": {
|
|
879
|
-
"name": "
|
|
880
|
-
"module": "src/
|
|
1016
|
+
"name": "_FORCE_HTTP",
|
|
1017
|
+
"module": "src/env/variables.ts"
|
|
881
1018
|
}
|
|
882
|
-
}
|
|
883
|
-
]
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
"kind": "javascript-module",
|
|
887
|
-
"path": "src/error/index.ts",
|
|
888
|
-
"declarations": [],
|
|
889
|
-
"exports": [
|
|
1019
|
+
},
|
|
890
1020
|
{
|
|
891
1021
|
"kind": "js",
|
|
892
|
-
"name": "
|
|
1022
|
+
"name": "API_HOST",
|
|
893
1023
|
"declaration": {
|
|
894
|
-
"name": "
|
|
895
|
-
"
|
|
1024
|
+
"name": "_API_HOST",
|
|
1025
|
+
"module": "src/env/variables.ts"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "js",
|
|
1030
|
+
"name": "HTTP_CONFIG",
|
|
1031
|
+
"declaration": {
|
|
1032
|
+
"name": "_HTTP_CONFIG",
|
|
1033
|
+
"module": "src/env/variables.ts"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "js",
|
|
1038
|
+
"name": "DEFAULT_ORGANISATION",
|
|
1039
|
+
"declaration": {
|
|
1040
|
+
"name": "_DEFAULT_ORGANISATION",
|
|
1041
|
+
"module": "src/env/variables.ts"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"kind": "js",
|
|
1046
|
+
"name": "DEFAULT_PASSWORD",
|
|
1047
|
+
"declaration": {
|
|
1048
|
+
"name": "_DEFAULT_PASSWORD",
|
|
1049
|
+
"module": "src/env/variables.ts"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "js",
|
|
1054
|
+
"name": "DEFAULT_USER",
|
|
1055
|
+
"declaration": {
|
|
1056
|
+
"name": "_DEFAULT_USER",
|
|
1057
|
+
"module": "src/env/variables.ts"
|
|
896
1058
|
}
|
|
897
1059
|
}
|
|
898
1060
|
]
|
|
899
1061
|
},
|
|
900
1062
|
{
|
|
901
1063
|
"kind": "javascript-module",
|
|
902
|
-
"path": "src/
|
|
1064
|
+
"path": "src/design-system/design-system.ts",
|
|
903
1065
|
"declarations": [
|
|
904
1066
|
{
|
|
905
1067
|
"kind": "function",
|
|
906
|
-
"name": "
|
|
907
|
-
"return": {
|
|
908
|
-
"type": {
|
|
909
|
-
"text": "string"
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
"parameters": [
|
|
913
|
-
{
|
|
914
|
-
"name": "timestamp",
|
|
915
|
-
"type": {
|
|
916
|
-
"text": "number"
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
],
|
|
920
|
-
"description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
|
|
921
|
-
"privacy": "public"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
"kind": "function",
|
|
925
|
-
"name": "formatDateTimeTimestamp",
|
|
1068
|
+
"name": "assureDesignSystem",
|
|
926
1069
|
"return": {
|
|
927
1070
|
"type": {
|
|
928
|
-
"text": "
|
|
1071
|
+
"text": "DesignSystemModule"
|
|
929
1072
|
}
|
|
930
1073
|
},
|
|
931
1074
|
"parameters": [
|
|
932
1075
|
{
|
|
933
|
-
"name": "
|
|
1076
|
+
"name": "module",
|
|
934
1077
|
"type": {
|
|
935
|
-
"text": "
|
|
1078
|
+
"text": "DesignSystemModule"
|
|
936
1079
|
}
|
|
937
1080
|
}
|
|
938
1081
|
],
|
|
939
|
-
"description": "
|
|
940
|
-
"privacy": "public"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
"kind": "function",
|
|
944
|
-
"name": "formatTimestamp",
|
|
945
|
-
"return": {
|
|
946
|
-
"type": {
|
|
947
|
-
"text": "string"
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
"parameters": [
|
|
951
|
-
{
|
|
952
|
-
"name": "timestamp",
|
|
953
|
-
"type": {
|
|
954
|
-
"text": "number"
|
|
955
|
-
},
|
|
956
|
-
"description": "The UNIX Timestamp."
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
"name": "withTime",
|
|
960
|
-
"type": {
|
|
961
|
-
"text": "boolean"
|
|
962
|
-
},
|
|
963
|
-
"description": "The flag to determine if formatted value should contain 'time' info."
|
|
964
|
-
}
|
|
965
|
-
],
|
|
966
|
-
"description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
|
|
1082
|
+
"description": "assureDesignSystem.",
|
|
967
1083
|
"privacy": "public"
|
|
968
1084
|
}
|
|
969
1085
|
],
|
|
970
1086
|
"exports": [
|
|
971
1087
|
{
|
|
972
1088
|
"kind": "js",
|
|
973
|
-
"name": "
|
|
974
|
-
"declaration": {
|
|
975
|
-
"name": "formatDateTimestamp",
|
|
976
|
-
"module": "src/formatters/datetime.ts"
|
|
977
|
-
}
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
"kind": "js",
|
|
981
|
-
"name": "formatDateTimeTimestamp",
|
|
982
|
-
"declaration": {
|
|
983
|
-
"name": "formatDateTimeTimestamp",
|
|
984
|
-
"module": "src/formatters/datetime.ts"
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"kind": "js",
|
|
989
|
-
"name": "formatTimestamp",
|
|
1089
|
+
"name": "assureDesignSystem",
|
|
990
1090
|
"declaration": {
|
|
991
|
-
"name": "
|
|
992
|
-
"module": "src/
|
|
1091
|
+
"name": "assureDesignSystem",
|
|
1092
|
+
"module": "src/design-system/design-system.ts"
|
|
993
1093
|
}
|
|
994
1094
|
}
|
|
995
1095
|
]
|
|
996
1096
|
},
|
|
997
1097
|
{
|
|
998
1098
|
"kind": "javascript-module",
|
|
999
|
-
"path": "src/
|
|
1099
|
+
"path": "src/design-system/index.ts",
|
|
1000
1100
|
"declarations": [],
|
|
1001
1101
|
"exports": [
|
|
1002
1102
|
{
|
|
@@ -1004,107 +1104,7 @@
|
|
|
1004
1104
|
"name": "*",
|
|
1005
1105
|
"declaration": {
|
|
1006
1106
|
"name": "*",
|
|
1007
|
-
"package": "./
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"kind": "js",
|
|
1012
|
-
"name": "*",
|
|
1013
|
-
"declaration": {
|
|
1014
|
-
"name": "*",
|
|
1015
|
-
"package": "./localeNumberParser"
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
]
|
|
1019
|
-
},
|
|
1020
|
-
{
|
|
1021
|
-
"kind": "javascript-module",
|
|
1022
|
-
"path": "src/formatters/localeNumberParser.ts",
|
|
1023
|
-
"declarations": [
|
|
1024
|
-
{
|
|
1025
|
-
"kind": "class",
|
|
1026
|
-
"description": "",
|
|
1027
|
-
"name": "NumberParser",
|
|
1028
|
-
"members": [
|
|
1029
|
-
{
|
|
1030
|
-
"kind": "field",
|
|
1031
|
-
"name": "_decimal",
|
|
1032
|
-
"type": {
|
|
1033
|
-
"text": "RegExp"
|
|
1034
|
-
},
|
|
1035
|
-
"privacy": "private",
|
|
1036
|
-
"default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
"kind": "field",
|
|
1040
|
-
"name": "_separator",
|
|
1041
|
-
"type": {
|
|
1042
|
-
"text": "RegExp"
|
|
1043
|
-
},
|
|
1044
|
-
"privacy": "private",
|
|
1045
|
-
"default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
"kind": "field",
|
|
1049
|
-
"name": "_numeral",
|
|
1050
|
-
"type": {
|
|
1051
|
-
"text": "RegExp"
|
|
1052
|
-
},
|
|
1053
|
-
"privacy": "private",
|
|
1054
|
-
"default": "new RegExp(`[${numerals.join('')}]`, 'g')"
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"kind": "field",
|
|
1058
|
-
"name": "_index",
|
|
1059
|
-
"type": {
|
|
1060
|
-
"text": "any"
|
|
1061
|
-
},
|
|
1062
|
-
"privacy": "private"
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"kind": "method",
|
|
1066
|
-
"name": "parse",
|
|
1067
|
-
"parameters": [
|
|
1068
|
-
{
|
|
1069
|
-
"name": "localeNumber",
|
|
1070
|
-
"type": {
|
|
1071
|
-
"text": "string"
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
]
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
"kind": "method",
|
|
1078
|
-
"name": "hasSeparator",
|
|
1079
|
-
"return": {
|
|
1080
|
-
"type": {
|
|
1081
|
-
"text": "boolean"
|
|
1082
|
-
}
|
|
1083
|
-
},
|
|
1084
|
-
"parameters": [
|
|
1085
|
-
{
|
|
1086
|
-
"name": "localeNumber",
|
|
1087
|
-
"type": {
|
|
1088
|
-
"text": "string"
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
]
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
"kind": "field",
|
|
1095
|
-
"name": "_group",
|
|
1096
|
-
"default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
|
|
1097
|
-
}
|
|
1098
|
-
]
|
|
1099
|
-
}
|
|
1100
|
-
],
|
|
1101
|
-
"exports": [
|
|
1102
|
-
{
|
|
1103
|
-
"kind": "js",
|
|
1104
|
-
"name": "NumberParser",
|
|
1105
|
-
"declaration": {
|
|
1106
|
-
"name": "NumberParser",
|
|
1107
|
-
"module": "src/formatters/localeNumberParser.ts"
|
|
1107
|
+
"package": "./design-system"
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.160.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"test": "genx test"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@genesislcap/foundation-testing": "14.
|
|
23
|
-
"@genesislcap/genx": "14.
|
|
24
|
-
"@genesislcap/rollup-builder": "14.
|
|
25
|
-
"@genesislcap/ts-builder": "14.
|
|
26
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
27
|
-
"@genesislcap/vite-builder": "14.
|
|
28
|
-
"@genesislcap/webpack-builder": "14.
|
|
22
|
+
"@genesislcap/foundation-testing": "14.160.0",
|
|
23
|
+
"@genesislcap/genx": "14.160.0",
|
|
24
|
+
"@genesislcap/rollup-builder": "14.160.0",
|
|
25
|
+
"@genesislcap/ts-builder": "14.160.0",
|
|
26
|
+
"@genesislcap/uvu-playwright-builder": "14.160.0",
|
|
27
|
+
"@genesislcap/vite-builder": "14.160.0",
|
|
28
|
+
"@genesislcap/webpack-builder": "14.160.0",
|
|
29
29
|
"rimraf": "^3.0.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@genesislcap/foundation-logger": "14.
|
|
32
|
+
"@genesislcap/foundation-logger": "14.160.0",
|
|
33
33
|
"@microsoft/fast-components": "^2.30.6",
|
|
34
34
|
"@microsoft/fast-element": "^1.12.0",
|
|
35
35
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"customElements": "dist/custom-elements.json",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f8c85f5e0a1928e51aacd7403607bd2e7457f510"
|
|
51
51
|
}
|