@genesislcap/foundation-utils 14.177.2 → 14.177.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +342 -342
  2. package/package.json +10 -10
@@ -357,6 +357,59 @@
357
357
  }
358
358
  ]
359
359
  },
360
+ {
361
+ "kind": "javascript-module",
362
+ "path": "src/decorators/index.ts",
363
+ "declarations": [],
364
+ "exports": [
365
+ {
366
+ "kind": "js",
367
+ "name": "*",
368
+ "declaration": {
369
+ "name": "*",
370
+ "package": "./renderOnChange"
371
+ }
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "kind": "javascript-module",
377
+ "path": "src/decorators/renderOnChange.ts",
378
+ "declarations": [
379
+ {
380
+ "kind": "function",
381
+ "name": "renderOnChange",
382
+ "parameters": [
383
+ {
384
+ "name": "target",
385
+ "type": {
386
+ "text": "FASTElement & { render(): void }"
387
+ },
388
+ "description": "The target to define the property change handler on."
389
+ },
390
+ {
391
+ "name": "name",
392
+ "type": {
393
+ "text": "string"
394
+ },
395
+ "description": "The property name."
396
+ }
397
+ ],
398
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
399
+ "privacy": "public"
400
+ }
401
+ ],
402
+ "exports": [
403
+ {
404
+ "kind": "js",
405
+ "name": "renderOnChange",
406
+ "declaration": {
407
+ "name": "renderOnChange",
408
+ "module": "src/decorators/renderOnChange.ts"
409
+ }
410
+ }
411
+ ]
412
+ },
360
413
  {
361
414
  "kind": "javascript-module",
362
415
  "path": "src/design-system/design-system.ts",
@@ -409,7 +462,7 @@
409
462
  },
410
463
  {
411
464
  "kind": "javascript-module",
412
- "path": "src/decorators/index.ts",
465
+ "path": "src/directives/index.ts",
413
466
  "declarations": [],
414
467
  "exports": [
415
468
  {
@@ -417,52 +470,206 @@
417
470
  "name": "*",
418
471
  "declaration": {
419
472
  "name": "*",
420
- "package": "./renderOnChange"
473
+ "package": "./sync"
474
+ }
475
+ },
476
+ {
477
+ "kind": "js",
478
+ "name": "*",
479
+ "declaration": {
480
+ "name": "*",
481
+ "package": "./when-else"
421
482
  }
422
483
  }
423
484
  ]
424
485
  },
425
486
  {
426
487
  "kind": "javascript-module",
427
- "path": "src/decorators/renderOnChange.ts",
488
+ "path": "src/error/errorMap.ts",
428
489
  "declarations": [
429
490
  {
430
- "kind": "function",
431
- "name": "renderOnChange",
432
- "parameters": [
491
+ "kind": "class",
492
+ "description": "",
493
+ "name": "DefaultErrorMap",
494
+ "members": [
433
495
  {
434
- "name": "target",
496
+ "kind": "field",
497
+ "name": "map",
498
+ "privacy": "private",
499
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
500
+ },
501
+ {
502
+ "kind": "field",
503
+ "name": "lastError",
435
504
  "type": {
436
- "text": "FASTElement & { render(): void }"
505
+ "text": "Error"
437
506
  },
438
- "description": "The target to define the property change handler on."
507
+ "description": "{@inheritDoc ErrorMap.lastError}"
439
508
  },
440
509
  {
441
- "name": "name",
510
+ "kind": "method",
511
+ "name": "set",
512
+ "return": {
513
+ "type": {
514
+ "text": "void"
515
+ }
516
+ },
517
+ "parameters": [
518
+ {
519
+ "name": "key",
520
+ "type": {
521
+ "text": "keyof TErrorDetailMap"
522
+ }
523
+ },
524
+ {
525
+ "name": "error",
526
+ "type": {
527
+ "text": "Error"
528
+ }
529
+ }
530
+ ],
531
+ "description": "{@inheritDoc ErrorMap.set}"
532
+ },
533
+ {
534
+ "kind": "method",
535
+ "name": "get",
536
+ "return": {
537
+ "type": {
538
+ "text": ""
539
+ }
540
+ },
541
+ "parameters": [
542
+ {
543
+ "name": "key",
544
+ "type": {
545
+ "text": "keyof TErrorDetailMap"
546
+ },
547
+ "description": "The key."
548
+ }
549
+ ],
550
+ "description": "Get an error by key.",
551
+ "privacy": "public"
552
+ },
553
+ {
554
+ "kind": "method",
555
+ "name": "has",
556
+ "return": {
557
+ "type": {
558
+ "text": ""
559
+ }
560
+ },
561
+ "parameters": [
562
+ {
563
+ "name": "key",
564
+ "type": {
565
+ "text": "keyof TErrorDetailMap"
566
+ },
567
+ "description": "The key."
568
+ }
569
+ ],
570
+ "description": "Has an error for key.",
571
+ "privacy": "public"
572
+ },
573
+ {
574
+ "kind": "method",
575
+ "name": "delete",
576
+ "return": {
577
+ "type": {
578
+ "text": ""
579
+ }
580
+ },
581
+ "parameters": [
582
+ {
583
+ "name": "key",
584
+ "type": {
585
+ "text": "keyof TErrorDetailMap"
586
+ },
587
+ "description": "The key."
588
+ }
589
+ ],
590
+ "description": "Delete an error.",
591
+ "privacy": "public"
592
+ },
593
+ {
594
+ "kind": "method",
595
+ "name": "clear",
596
+ "description": "Clear errors.",
597
+ "privacy": "public"
598
+ },
599
+ {
600
+ "kind": "field",
601
+ "name": "size",
602
+ "type": {
603
+ "text": "number"
604
+ },
605
+ "description": "The size of the error map.",
606
+ "return": {
607
+ "type": {
608
+ "text": ""
609
+ }
610
+ },
611
+ "privacy": "public",
612
+ "readonly": true
613
+ },
614
+ {
615
+ "kind": "method",
616
+ "name": "values",
617
+ "privacy": "public"
618
+ },
619
+ {
620
+ "kind": "field",
621
+ "name": "messages",
442
622
  "type": {
443
623
  "text": "string"
444
624
  },
445
- "description": "The property name."
625
+ "description": "{@inheritDoc ErrorMap.messages}",
626
+ "readonly": true
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "kind": "function",
632
+ "name": "createErrorMap",
633
+ "return": {
634
+ "type": {
635
+ "text": ""
636
+ }
637
+ },
638
+ "parameters": [
639
+ {
640
+ "name": "logger",
641
+ "type": {
642
+ "text": "ErrorMapLogger"
643
+ },
644
+ "description": "A logger error method reference."
446
645
  }
447
646
  ],
448
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
647
+ "description": "A factory to create the error map.",
449
648
  "privacy": "public"
450
649
  }
451
650
  ],
452
651
  "exports": [
453
652
  {
454
653
  "kind": "js",
455
- "name": "renderOnChange",
654
+ "name": "DefaultErrorMap",
456
655
  "declaration": {
457
- "name": "renderOnChange",
458
- "module": "src/decorators/renderOnChange.ts"
656
+ "name": "DefaultErrorMap",
657
+ "module": "src/error/errorMap.ts"
658
+ }
659
+ },
660
+ {
661
+ "kind": "js",
662
+ "name": "createErrorMap",
663
+ "declaration": {
664
+ "name": "createErrorMap",
665
+ "module": "src/error/errorMap.ts"
459
666
  }
460
667
  }
461
668
  ]
462
669
  },
463
670
  {
464
671
  "kind": "javascript-module",
465
- "path": "src/directives/index.ts",
672
+ "path": "src/error/index.ts",
466
673
  "declarations": [],
467
674
  "exports": [
468
675
  {
@@ -470,15 +677,7 @@
470
677
  "name": "*",
471
678
  "declaration": {
472
679
  "name": "*",
473
- "package": "./sync"
474
- }
475
- },
476
- {
477
- "kind": "js",
478
- "name": "*",
479
- "declaration": {
480
- "name": "*",
481
- "package": "./when-else"
680
+ "package": "./errorMap"
482
681
  }
483
682
  }
484
683
  ]
@@ -670,237 +869,38 @@
670
869
  "declaration": {
671
870
  "name": "_API_HOST",
672
871
  "module": "src/env/variables.ts"
673
- }
674
- },
675
- {
676
- "kind": "js",
677
- "name": "HTTP_CONFIG",
678
- "declaration": {
679
- "name": "_HTTP_CONFIG",
680
- "module": "src/env/variables.ts"
681
- }
682
- },
683
- {
684
- "kind": "js",
685
- "name": "DEFAULT_ORGANISATION",
686
- "declaration": {
687
- "name": "_DEFAULT_ORGANISATION",
688
- "module": "src/env/variables.ts"
689
- }
690
- },
691
- {
692
- "kind": "js",
693
- "name": "DEFAULT_PASSWORD",
694
- "declaration": {
695
- "name": "_DEFAULT_PASSWORD",
696
- "module": "src/env/variables.ts"
697
- }
698
- },
699
- {
700
- "kind": "js",
701
- "name": "DEFAULT_USER",
702
- "declaration": {
703
- "name": "_DEFAULT_USER",
704
- "module": "src/env/variables.ts"
705
- }
706
- }
707
- ]
708
- },
709
- {
710
- "kind": "javascript-module",
711
- "path": "src/error/errorMap.ts",
712
- "declarations": [
713
- {
714
- "kind": "class",
715
- "description": "",
716
- "name": "DefaultErrorMap",
717
- "members": [
718
- {
719
- "kind": "field",
720
- "name": "map",
721
- "privacy": "private",
722
- "default": "new Map<keyof TErrorDetailMap, Error>()"
723
- },
724
- {
725
- "kind": "field",
726
- "name": "lastError",
727
- "type": {
728
- "text": "Error"
729
- },
730
- "description": "{@inheritDoc ErrorMap.lastError}"
731
- },
732
- {
733
- "kind": "method",
734
- "name": "set",
735
- "return": {
736
- "type": {
737
- "text": "void"
738
- }
739
- },
740
- "parameters": [
741
- {
742
- "name": "key",
743
- "type": {
744
- "text": "keyof TErrorDetailMap"
745
- }
746
- },
747
- {
748
- "name": "error",
749
- "type": {
750
- "text": "Error"
751
- }
752
- }
753
- ],
754
- "description": "{@inheritDoc ErrorMap.set}"
755
- },
756
- {
757
- "kind": "method",
758
- "name": "get",
759
- "return": {
760
- "type": {
761
- "text": ""
762
- }
763
- },
764
- "parameters": [
765
- {
766
- "name": "key",
767
- "type": {
768
- "text": "keyof TErrorDetailMap"
769
- },
770
- "description": "The key."
771
- }
772
- ],
773
- "description": "Get an error by key.",
774
- "privacy": "public"
775
- },
776
- {
777
- "kind": "method",
778
- "name": "has",
779
- "return": {
780
- "type": {
781
- "text": ""
782
- }
783
- },
784
- "parameters": [
785
- {
786
- "name": "key",
787
- "type": {
788
- "text": "keyof TErrorDetailMap"
789
- },
790
- "description": "The key."
791
- }
792
- ],
793
- "description": "Has an error for key.",
794
- "privacy": "public"
795
- },
796
- {
797
- "kind": "method",
798
- "name": "delete",
799
- "return": {
800
- "type": {
801
- "text": ""
802
- }
803
- },
804
- "parameters": [
805
- {
806
- "name": "key",
807
- "type": {
808
- "text": "keyof TErrorDetailMap"
809
- },
810
- "description": "The key."
811
- }
812
- ],
813
- "description": "Delete an error.",
814
- "privacy": "public"
815
- },
816
- {
817
- "kind": "method",
818
- "name": "clear",
819
- "description": "Clear errors.",
820
- "privacy": "public"
821
- },
822
- {
823
- "kind": "field",
824
- "name": "size",
825
- "type": {
826
- "text": "number"
827
- },
828
- "description": "The size of the error map.",
829
- "return": {
830
- "type": {
831
- "text": ""
832
- }
833
- },
834
- "privacy": "public",
835
- "readonly": true
836
- },
837
- {
838
- "kind": "method",
839
- "name": "values",
840
- "privacy": "public"
841
- },
842
- {
843
- "kind": "field",
844
- "name": "messages",
845
- "type": {
846
- "text": "string"
847
- },
848
- "description": "{@inheritDoc ErrorMap.messages}",
849
- "readonly": true
850
- }
851
- ]
872
+ }
852
873
  },
853
874
  {
854
- "kind": "function",
855
- "name": "createErrorMap",
856
- "return": {
857
- "type": {
858
- "text": ""
859
- }
860
- },
861
- "parameters": [
862
- {
863
- "name": "logger",
864
- "type": {
865
- "text": "ErrorMapLogger"
866
- },
867
- "description": "A logger error method reference."
868
- }
869
- ],
870
- "description": "A factory to create the error map.",
871
- "privacy": "public"
872
- }
873
- ],
874
- "exports": [
875
+ "kind": "js",
876
+ "name": "HTTP_CONFIG",
877
+ "declaration": {
878
+ "name": "_HTTP_CONFIG",
879
+ "module": "src/env/variables.ts"
880
+ }
881
+ },
875
882
  {
876
883
  "kind": "js",
877
- "name": "DefaultErrorMap",
884
+ "name": "DEFAULT_ORGANISATION",
878
885
  "declaration": {
879
- "name": "DefaultErrorMap",
880
- "module": "src/error/errorMap.ts"
886
+ "name": "_DEFAULT_ORGANISATION",
887
+ "module": "src/env/variables.ts"
881
888
  }
882
889
  },
883
890
  {
884
891
  "kind": "js",
885
- "name": "createErrorMap",
892
+ "name": "DEFAULT_PASSWORD",
886
893
  "declaration": {
887
- "name": "createErrorMap",
888
- "module": "src/error/errorMap.ts"
894
+ "name": "_DEFAULT_PASSWORD",
895
+ "module": "src/env/variables.ts"
889
896
  }
890
- }
891
- ]
892
- },
893
- {
894
- "kind": "javascript-module",
895
- "path": "src/error/index.ts",
896
- "declarations": [],
897
- "exports": [
897
+ },
898
898
  {
899
899
  "kind": "js",
900
- "name": "*",
900
+ "name": "DEFAULT_USER",
901
901
  "declaration": {
902
- "name": "*",
903
- "package": "./errorMap"
902
+ "name": "_DEFAULT_USER",
903
+ "module": "src/env/variables.ts"
904
904
  }
905
905
  }
906
906
  ]
@@ -2272,6 +2272,106 @@
2272
2272
  }
2273
2273
  ]
2274
2274
  },
2275
+ {
2276
+ "kind": "javascript-module",
2277
+ "path": "src/mappers/dto/index.ts",
2278
+ "declarations": [],
2279
+ "exports": [
2280
+ {
2281
+ "kind": "js",
2282
+ "name": "*",
2283
+ "declaration": {
2284
+ "name": "*",
2285
+ "package": "./serverRow"
2286
+ }
2287
+ },
2288
+ {
2289
+ "kind": "js",
2290
+ "name": "*",
2291
+ "declaration": {
2292
+ "name": "*",
2293
+ "package": "./types"
2294
+ }
2295
+ }
2296
+ ]
2297
+ },
2298
+ {
2299
+ "kind": "javascript-module",
2300
+ "path": "src/mappers/dto/serverRow.ts",
2301
+ "declarations": [
2302
+ {
2303
+ "kind": "class",
2304
+ "description": "The default `ServerRowDTOMapper`.",
2305
+ "name": "DefaultServerRowDTOMapper",
2306
+ "members": [
2307
+ {
2308
+ "kind": "field",
2309
+ "name": "fromDTO",
2310
+ "description": "Converts a server row DTO to an entity.",
2311
+ "parameters": [
2312
+ {
2313
+ "description": "The DTO to convert.",
2314
+ "name": "dto"
2315
+ }
2316
+ ],
2317
+ "return": {
2318
+ "type": {
2319
+ "text": ""
2320
+ }
2321
+ },
2322
+ "privacy": "public"
2323
+ },
2324
+ {
2325
+ "kind": "field",
2326
+ "name": "toDTO",
2327
+ "description": "Converts a server row entity to a DTO.",
2328
+ "parameters": [
2329
+ {
2330
+ "description": "The entity to convert.",
2331
+ "name": "entity"
2332
+ }
2333
+ ],
2334
+ "return": {
2335
+ "type": {
2336
+ "text": ""
2337
+ }
2338
+ },
2339
+ "privacy": "public"
2340
+ }
2341
+ ]
2342
+ },
2343
+ {
2344
+ "kind": "variable",
2345
+ "name": "ServerRowDTOMapper",
2346
+ "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2347
+ "privacy": "public"
2348
+ }
2349
+ ],
2350
+ "exports": [
2351
+ {
2352
+ "kind": "js",
2353
+ "name": "DefaultServerRowDTOMapper",
2354
+ "declaration": {
2355
+ "name": "DefaultServerRowDTOMapper",
2356
+ "module": "src/mappers/dto/serverRow.ts"
2357
+ }
2358
+ },
2359
+ {
2360
+ "kind": "js",
2361
+ "name": "ServerRowDTOMapper",
2362
+ "declaration": {
2363
+ "name": "ServerRowDTOMapper",
2364
+ "module": "src/mappers/dto/serverRow.ts"
2365
+ }
2366
+ }
2367
+ ]
2368
+ },
2369
+ {
2370
+ "kind": "javascript-module",
2371
+ "path": "src/mappers/dto/types.ts",
2372
+ "declarations": [],
2373
+ "exports": []
2374
+ },
2275
2375
  {
2276
2376
  "kind": "javascript-module",
2277
2377
  "path": "src/mixins/lifecycle/index.ts",
@@ -2396,106 +2496,6 @@
2396
2496
  }
2397
2497
  ]
2398
2498
  },
2399
- {
2400
- "kind": "javascript-module",
2401
- "path": "src/mappers/dto/index.ts",
2402
- "declarations": [],
2403
- "exports": [
2404
- {
2405
- "kind": "js",
2406
- "name": "*",
2407
- "declaration": {
2408
- "name": "*",
2409
- "package": "./serverRow"
2410
- }
2411
- },
2412
- {
2413
- "kind": "js",
2414
- "name": "*",
2415
- "declaration": {
2416
- "name": "*",
2417
- "package": "./types"
2418
- }
2419
- }
2420
- ]
2421
- },
2422
- {
2423
- "kind": "javascript-module",
2424
- "path": "src/mappers/dto/serverRow.ts",
2425
- "declarations": [
2426
- {
2427
- "kind": "class",
2428
- "description": "The default `ServerRowDTOMapper`.",
2429
- "name": "DefaultServerRowDTOMapper",
2430
- "members": [
2431
- {
2432
- "kind": "field",
2433
- "name": "fromDTO",
2434
- "description": "Converts a server row DTO to an entity.",
2435
- "parameters": [
2436
- {
2437
- "description": "The DTO to convert.",
2438
- "name": "dto"
2439
- }
2440
- ],
2441
- "return": {
2442
- "type": {
2443
- "text": ""
2444
- }
2445
- },
2446
- "privacy": "public"
2447
- },
2448
- {
2449
- "kind": "field",
2450
- "name": "toDTO",
2451
- "description": "Converts a server row entity to a DTO.",
2452
- "parameters": [
2453
- {
2454
- "description": "The entity to convert.",
2455
- "name": "entity"
2456
- }
2457
- ],
2458
- "return": {
2459
- "type": {
2460
- "text": ""
2461
- }
2462
- },
2463
- "privacy": "public"
2464
- }
2465
- ]
2466
- },
2467
- {
2468
- "kind": "variable",
2469
- "name": "ServerRowDTOMapper",
2470
- "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2471
- "privacy": "public"
2472
- }
2473
- ],
2474
- "exports": [
2475
- {
2476
- "kind": "js",
2477
- "name": "DefaultServerRowDTOMapper",
2478
- "declaration": {
2479
- "name": "DefaultServerRowDTOMapper",
2480
- "module": "src/mappers/dto/serverRow.ts"
2481
- }
2482
- },
2483
- {
2484
- "kind": "js",
2485
- "name": "ServerRowDTOMapper",
2486
- "declaration": {
2487
- "name": "ServerRowDTOMapper",
2488
- "module": "src/mappers/dto/serverRow.ts"
2489
- }
2490
- }
2491
- ]
2492
- },
2493
- {
2494
- "kind": "javascript-module",
2495
- "path": "src/mappers/dto/types.ts",
2496
- "declarations": [],
2497
- "exports": []
2498
- },
2499
2499
  {
2500
2500
  "kind": "javascript-module",
2501
2501
  "path": "src/mixins/pendingState/index.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.177.2",
4
+ "version": "14.177.3",
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.177.2",
23
- "@genesislcap/genx": "14.177.2",
24
- "@genesislcap/rollup-builder": "14.177.2",
25
- "@genesislcap/ts-builder": "14.177.2",
26
- "@genesislcap/uvu-playwright-builder": "14.177.2",
27
- "@genesislcap/vite-builder": "14.177.2",
28
- "@genesislcap/webpack-builder": "14.177.2",
22
+ "@genesislcap/foundation-testing": "14.177.3",
23
+ "@genesislcap/genx": "14.177.3",
24
+ "@genesislcap/rollup-builder": "14.177.3",
25
+ "@genesislcap/ts-builder": "14.177.3",
26
+ "@genesislcap/uvu-playwright-builder": "14.177.3",
27
+ "@genesislcap/vite-builder": "14.177.3",
28
+ "@genesislcap/webpack-builder": "14.177.3",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.177.2",
32
+ "@genesislcap/foundation-logger": "14.177.3",
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": "a55c1f24c62a2c4ef8fbf89454f73afd86a18aa1"
50
+ "gitHead": "95449989e2502afe526bd583adf3e84089b2f5fb"
51
51
  }