@genesislcap/foundation-utils 14.94.0 → 14.94.1-pa-958.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -341,55 +341,6 @@
341
341
  }
342
342
  ]
343
343
  },
344
- {
345
- "kind": "javascript-module",
346
- "path": "src/design-system/design-system.ts",
347
- "declarations": [
348
- {
349
- "kind": "function",
350
- "name": "assureDesignSystem",
351
- "return": {
352
- "type": {
353
- "text": "DesignSystemModule"
354
- }
355
- },
356
- "parameters": [
357
- {
358
- "name": "module",
359
- "type": {
360
- "text": "DesignSystemModule"
361
- }
362
- }
363
- ],
364
- "privacy": "public"
365
- }
366
- ],
367
- "exports": [
368
- {
369
- "kind": "js",
370
- "name": "assureDesignSystem",
371
- "declaration": {
372
- "name": "assureDesignSystem",
373
- "module": "src/design-system/design-system.ts"
374
- }
375
- }
376
- ]
377
- },
378
- {
379
- "kind": "javascript-module",
380
- "path": "src/design-system/index.ts",
381
- "declarations": [],
382
- "exports": [
383
- {
384
- "kind": "js",
385
- "name": "*",
386
- "declaration": {
387
- "name": "*",
388
- "package": "./design-system"
389
- }
390
- }
391
- ]
392
- },
393
344
  {
394
345
  "kind": "javascript-module",
395
346
  "path": "src/decorators/index.ts",
@@ -445,209 +396,56 @@
445
396
  },
446
397
  {
447
398
  "kind": "javascript-module",
448
- "path": "src/directives/index.ts",
449
- "declarations": [],
450
- "exports": [
451
- {
452
- "kind": "js",
453
- "name": "*",
454
- "declaration": {
455
- "name": "*",
456
- "package": "./sync"
457
- }
458
- },
459
- {
460
- "kind": "js",
461
- "name": "*",
462
- "declaration": {
463
- "name": "*",
464
- "package": "./when-else"
465
- }
466
- }
467
- ]
468
- },
469
- {
470
- "kind": "javascript-module",
471
- "path": "src/error/errorMap.ts",
399
+ "path": "src/design-system/design-system.ts",
472
400
  "declarations": [
473
- {
474
- "kind": "class",
475
- "description": "",
476
- "name": "DefaultErrorMap",
477
- "members": [
478
- {
479
- "kind": "field",
480
- "name": "map",
481
- "privacy": "private",
482
- "default": "new Map<keyof TErrorDetailMap, Error>()"
483
- },
484
- {
485
- "kind": "field",
486
- "name": "lastError",
487
- "type": {
488
- "text": "Error"
489
- },
490
- "description": "{@inheritDoc ErrorMap.lastError}"
491
- },
492
- {
493
- "kind": "method",
494
- "name": "set",
495
- "return": {
496
- "type": {
497
- "text": "void"
498
- }
499
- },
500
- "parameters": [
501
- {
502
- "name": "key",
503
- "type": {
504
- "text": "keyof TErrorDetailMap"
505
- }
506
- },
507
- {
508
- "name": "error",
509
- "type": {
510
- "text": "Error"
511
- }
512
- }
513
- ],
514
- "description": "{@inheritDoc ErrorMap.set}"
515
- },
516
- {
517
- "kind": "method",
518
- "name": "get",
519
- "return": {
520
- "type": {
521
- "text": ""
522
- }
523
- },
524
- "parameters": [
525
- {
526
- "name": "key",
527
- "type": {
528
- "text": "keyof TErrorDetailMap"
529
- },
530
- "description": "The key."
531
- }
532
- ],
533
- "description": "Get an error by key.",
534
- "privacy": "public"
535
- },
536
- {
537
- "kind": "method",
538
- "name": "has",
539
- "return": {
540
- "type": {
541
- "text": ""
542
- }
543
- },
544
- "parameters": [
545
- {
546
- "name": "key",
547
- "type": {
548
- "text": "keyof TErrorDetailMap"
549
- },
550
- "description": "The key."
551
- }
552
- ],
553
- "description": "Has an error for key.",
554
- "privacy": "public"
555
- },
556
- {
557
- "kind": "method",
558
- "name": "delete",
559
- "return": {
560
- "type": {
561
- "text": ""
562
- }
563
- },
564
- "parameters": [
565
- {
566
- "name": "key",
567
- "type": {
568
- "text": "keyof TErrorDetailMap"
569
- },
570
- "description": "The key."
571
- }
572
- ],
573
- "description": "Delete an error.",
574
- "privacy": "public"
575
- },
576
- {
577
- "kind": "method",
578
- "name": "clear",
579
- "description": "Clear errors.",
580
- "privacy": "public"
581
- },
582
- {
583
- "kind": "field",
584
- "name": "size",
585
- "type": {
586
- "text": "number"
587
- },
588
- "description": "The size of the error map.",
589
- "return": {
590
- "type": {
591
- "text": ""
592
- }
593
- },
594
- "privacy": "public",
595
- "readonly": true
596
- },
597
- {
598
- "kind": "field",
599
- "name": "messages",
600
- "type": {
601
- "text": "string"
602
- },
603
- "description": "{@inheritDoc ErrorMap.messages}",
604
- "readonly": true
605
- }
606
- ]
607
- },
608
401
  {
609
402
  "kind": "function",
610
- "name": "createErrorMap",
403
+ "name": "assureDesignSystem",
611
404
  "return": {
612
405
  "type": {
613
- "text": ""
406
+ "text": "DesignSystemModule"
614
407
  }
615
408
  },
616
409
  "parameters": [
617
410
  {
618
- "name": "logger",
411
+ "name": "module",
619
412
  "type": {
620
- "text": "ErrorMapLogger"
621
- },
622
- "description": "A logger error method reference."
413
+ "text": "DesignSystemModule"
414
+ }
623
415
  }
624
416
  ],
625
- "description": "A factory to create the error map.",
626
417
  "privacy": "public"
627
418
  }
628
419
  ],
629
420
  "exports": [
630
421
  {
631
422
  "kind": "js",
632
- "name": "DefaultErrorMap",
423
+ "name": "assureDesignSystem",
633
424
  "declaration": {
634
- "name": "DefaultErrorMap",
635
- "module": "src/error/errorMap.ts"
425
+ "name": "assureDesignSystem",
426
+ "module": "src/design-system/design-system.ts"
636
427
  }
637
- },
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ "kind": "javascript-module",
433
+ "path": "src/design-system/index.ts",
434
+ "declarations": [],
435
+ "exports": [
638
436
  {
639
437
  "kind": "js",
640
- "name": "createErrorMap",
438
+ "name": "*",
641
439
  "declaration": {
642
- "name": "createErrorMap",
643
- "module": "src/error/errorMap.ts"
440
+ "name": "*",
441
+ "package": "./design-system"
644
442
  }
645
443
  }
646
444
  ]
647
445
  },
648
446
  {
649
447
  "kind": "javascript-module",
650
- "path": "src/error/index.ts",
448
+ "path": "src/directives/index.ts",
651
449
  "declarations": [],
652
450
  "exports": [
653
451
  {
@@ -655,7 +453,15 @@
655
453
  "name": "*",
656
454
  "declaration": {
657
455
  "name": "*",
658
- "package": "./errorMap"
456
+ "package": "./sync"
457
+ }
458
+ },
459
+ {
460
+ "kind": "js",
461
+ "name": "*",
462
+ "declaration": {
463
+ "name": "*",
464
+ "package": "./when-else"
659
465
  }
660
466
  }
661
467
  ]
@@ -859,26 +665,220 @@
859
665
  },
860
666
  {
861
667
  "kind": "js",
862
- "name": "DEFAULT_ORGANISATION",
668
+ "name": "DEFAULT_ORGANISATION",
669
+ "declaration": {
670
+ "name": "_DEFAULT_ORGANISATION",
671
+ "module": "src/env/variables.ts"
672
+ }
673
+ },
674
+ {
675
+ "kind": "js",
676
+ "name": "DEFAULT_PASSWORD",
677
+ "declaration": {
678
+ "name": "_DEFAULT_PASSWORD",
679
+ "module": "src/env/variables.ts"
680
+ }
681
+ },
682
+ {
683
+ "kind": "js",
684
+ "name": "DEFAULT_USER",
685
+ "declaration": {
686
+ "name": "_DEFAULT_USER",
687
+ "module": "src/env/variables.ts"
688
+ }
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "kind": "javascript-module",
694
+ "path": "src/error/errorMap.ts",
695
+ "declarations": [
696
+ {
697
+ "kind": "class",
698
+ "description": "",
699
+ "name": "DefaultErrorMap",
700
+ "members": [
701
+ {
702
+ "kind": "field",
703
+ "name": "map",
704
+ "privacy": "private",
705
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
706
+ },
707
+ {
708
+ "kind": "field",
709
+ "name": "lastError",
710
+ "type": {
711
+ "text": "Error"
712
+ },
713
+ "description": "{@inheritDoc ErrorMap.lastError}"
714
+ },
715
+ {
716
+ "kind": "method",
717
+ "name": "set",
718
+ "return": {
719
+ "type": {
720
+ "text": "void"
721
+ }
722
+ },
723
+ "parameters": [
724
+ {
725
+ "name": "key",
726
+ "type": {
727
+ "text": "keyof TErrorDetailMap"
728
+ }
729
+ },
730
+ {
731
+ "name": "error",
732
+ "type": {
733
+ "text": "Error"
734
+ }
735
+ }
736
+ ],
737
+ "description": "{@inheritDoc ErrorMap.set}"
738
+ },
739
+ {
740
+ "kind": "method",
741
+ "name": "get",
742
+ "return": {
743
+ "type": {
744
+ "text": ""
745
+ }
746
+ },
747
+ "parameters": [
748
+ {
749
+ "name": "key",
750
+ "type": {
751
+ "text": "keyof TErrorDetailMap"
752
+ },
753
+ "description": "The key."
754
+ }
755
+ ],
756
+ "description": "Get an error by key.",
757
+ "privacy": "public"
758
+ },
759
+ {
760
+ "kind": "method",
761
+ "name": "has",
762
+ "return": {
763
+ "type": {
764
+ "text": ""
765
+ }
766
+ },
767
+ "parameters": [
768
+ {
769
+ "name": "key",
770
+ "type": {
771
+ "text": "keyof TErrorDetailMap"
772
+ },
773
+ "description": "The key."
774
+ }
775
+ ],
776
+ "description": "Has an error for key.",
777
+ "privacy": "public"
778
+ },
779
+ {
780
+ "kind": "method",
781
+ "name": "delete",
782
+ "return": {
783
+ "type": {
784
+ "text": ""
785
+ }
786
+ },
787
+ "parameters": [
788
+ {
789
+ "name": "key",
790
+ "type": {
791
+ "text": "keyof TErrorDetailMap"
792
+ },
793
+ "description": "The key."
794
+ }
795
+ ],
796
+ "description": "Delete an error.",
797
+ "privacy": "public"
798
+ },
799
+ {
800
+ "kind": "method",
801
+ "name": "clear",
802
+ "description": "Clear errors.",
803
+ "privacy": "public"
804
+ },
805
+ {
806
+ "kind": "field",
807
+ "name": "size",
808
+ "type": {
809
+ "text": "number"
810
+ },
811
+ "description": "The size of the error map.",
812
+ "return": {
813
+ "type": {
814
+ "text": ""
815
+ }
816
+ },
817
+ "privacy": "public",
818
+ "readonly": true
819
+ },
820
+ {
821
+ "kind": "field",
822
+ "name": "messages",
823
+ "type": {
824
+ "text": "string"
825
+ },
826
+ "description": "{@inheritDoc ErrorMap.messages}",
827
+ "readonly": true
828
+ }
829
+ ]
830
+ },
831
+ {
832
+ "kind": "function",
833
+ "name": "createErrorMap",
834
+ "return": {
835
+ "type": {
836
+ "text": ""
837
+ }
838
+ },
839
+ "parameters": [
840
+ {
841
+ "name": "logger",
842
+ "type": {
843
+ "text": "ErrorMapLogger"
844
+ },
845
+ "description": "A logger error method reference."
846
+ }
847
+ ],
848
+ "description": "A factory to create the error map.",
849
+ "privacy": "public"
850
+ }
851
+ ],
852
+ "exports": [
853
+ {
854
+ "kind": "js",
855
+ "name": "DefaultErrorMap",
863
856
  "declaration": {
864
- "name": "_DEFAULT_ORGANISATION",
865
- "module": "src/env/variables.ts"
857
+ "name": "DefaultErrorMap",
858
+ "module": "src/error/errorMap.ts"
866
859
  }
867
860
  },
868
861
  {
869
862
  "kind": "js",
870
- "name": "DEFAULT_PASSWORD",
863
+ "name": "createErrorMap",
871
864
  "declaration": {
872
- "name": "_DEFAULT_PASSWORD",
873
- "module": "src/env/variables.ts"
865
+ "name": "createErrorMap",
866
+ "module": "src/error/errorMap.ts"
874
867
  }
875
- },
868
+ }
869
+ ]
870
+ },
871
+ {
872
+ "kind": "javascript-module",
873
+ "path": "src/error/index.ts",
874
+ "declarations": [],
875
+ "exports": [
876
876
  {
877
877
  "kind": "js",
878
- "name": "DEFAULT_USER",
878
+ "name": "*",
879
879
  "declaration": {
880
- "name": "_DEFAULT_USER",
881
- "module": "src/env/variables.ts"
880
+ "name": "*",
881
+ "package": "./errorMap"
882
882
  }
883
883
  }
884
884
  ]
@@ -1183,7 +1183,7 @@
1183
1183
  },
1184
1184
  {
1185
1185
  "kind": "javascript-module",
1186
- "path": "src/mixins/index.ts",
1186
+ "path": "src/mappers/index.ts",
1187
1187
  "declarations": [],
1188
1188
  "exports": [
1189
1189
  {
@@ -1191,22 +1191,14 @@
1191
1191
  "name": "*",
1192
1192
  "declaration": {
1193
1193
  "name": "*",
1194
- "package": "./pendingState"
1195
- }
1196
- },
1197
- {
1198
- "kind": "js",
1199
- "name": "*",
1200
- "declaration": {
1201
- "name": "*",
1202
- "package": "./lifecycle"
1194
+ "package": "./dto"
1203
1195
  }
1204
1196
  }
1205
1197
  ]
1206
1198
  },
1207
1199
  {
1208
1200
  "kind": "javascript-module",
1209
- "path": "src/mappers/index.ts",
1201
+ "path": "src/mixins/index.ts",
1210
1202
  "declarations": [],
1211
1203
  "exports": [
1212
1204
  {
@@ -1214,7 +1206,15 @@
1214
1206
  "name": "*",
1215
1207
  "declaration": {
1216
1208
  "name": "*",
1217
- "package": "./dto"
1209
+ "package": "./pendingState"
1210
+ }
1211
+ },
1212
+ {
1213
+ "kind": "js",
1214
+ "name": "*",
1215
+ "declaration": {
1216
+ "name": "*",
1217
+ "package": "./lifecycle"
1218
1218
  }
1219
1219
  }
1220
1220
  ]
@@ -2024,6 +2024,106 @@
2024
2024
  }
2025
2025
  ]
2026
2026
  },
2027
+ {
2028
+ "kind": "javascript-module",
2029
+ "path": "src/mappers/dto/index.ts",
2030
+ "declarations": [],
2031
+ "exports": [
2032
+ {
2033
+ "kind": "js",
2034
+ "name": "*",
2035
+ "declaration": {
2036
+ "name": "*",
2037
+ "package": "./serverRow"
2038
+ }
2039
+ },
2040
+ {
2041
+ "kind": "js",
2042
+ "name": "*",
2043
+ "declaration": {
2044
+ "name": "*",
2045
+ "package": "./types"
2046
+ }
2047
+ }
2048
+ ]
2049
+ },
2050
+ {
2051
+ "kind": "javascript-module",
2052
+ "path": "src/mappers/dto/serverRow.ts",
2053
+ "declarations": [
2054
+ {
2055
+ "kind": "class",
2056
+ "description": "The default `ServerRowDTOMapper`.",
2057
+ "name": "DefaultServerRowDTOMapper",
2058
+ "members": [
2059
+ {
2060
+ "kind": "field",
2061
+ "name": "fromDTO",
2062
+ "description": "Converts a server row DTO to an entity.",
2063
+ "parameters": [
2064
+ {
2065
+ "description": "The DTO to convert.",
2066
+ "name": "dto"
2067
+ }
2068
+ ],
2069
+ "return": {
2070
+ "type": {
2071
+ "text": ""
2072
+ }
2073
+ },
2074
+ "privacy": "public"
2075
+ },
2076
+ {
2077
+ "kind": "field",
2078
+ "name": "toDTO",
2079
+ "description": "Converts a server row entity to a DTO.",
2080
+ "parameters": [
2081
+ {
2082
+ "description": "The entity to convert.",
2083
+ "name": "entity"
2084
+ }
2085
+ ],
2086
+ "return": {
2087
+ "type": {
2088
+ "text": ""
2089
+ }
2090
+ },
2091
+ "privacy": "public"
2092
+ }
2093
+ ]
2094
+ },
2095
+ {
2096
+ "kind": "variable",
2097
+ "name": "ServerRowDTOMapper",
2098
+ "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2099
+ "privacy": "public"
2100
+ }
2101
+ ],
2102
+ "exports": [
2103
+ {
2104
+ "kind": "js",
2105
+ "name": "DefaultServerRowDTOMapper",
2106
+ "declaration": {
2107
+ "name": "DefaultServerRowDTOMapper",
2108
+ "module": "src/mappers/dto/serverRow.ts"
2109
+ }
2110
+ },
2111
+ {
2112
+ "kind": "js",
2113
+ "name": "ServerRowDTOMapper",
2114
+ "declaration": {
2115
+ "name": "ServerRowDTOMapper",
2116
+ "module": "src/mappers/dto/serverRow.ts"
2117
+ }
2118
+ }
2119
+ ]
2120
+ },
2121
+ {
2122
+ "kind": "javascript-module",
2123
+ "path": "src/mappers/dto/types.ts",
2124
+ "declarations": [],
2125
+ "exports": []
2126
+ },
2027
2127
  {
2028
2128
  "kind": "javascript-module",
2029
2129
  "path": "src/mixins/lifecycle/index.ts",
@@ -2235,106 +2335,6 @@
2235
2335
  }
2236
2336
  ]
2237
2337
  },
2238
- {
2239
- "kind": "javascript-module",
2240
- "path": "src/mappers/dto/index.ts",
2241
- "declarations": [],
2242
- "exports": [
2243
- {
2244
- "kind": "js",
2245
- "name": "*",
2246
- "declaration": {
2247
- "name": "*",
2248
- "package": "./serverRow"
2249
- }
2250
- },
2251
- {
2252
- "kind": "js",
2253
- "name": "*",
2254
- "declaration": {
2255
- "name": "*",
2256
- "package": "./types"
2257
- }
2258
- }
2259
- ]
2260
- },
2261
- {
2262
- "kind": "javascript-module",
2263
- "path": "src/mappers/dto/serverRow.ts",
2264
- "declarations": [
2265
- {
2266
- "kind": "class",
2267
- "description": "The default `ServerRowDTOMapper`.",
2268
- "name": "DefaultServerRowDTOMapper",
2269
- "members": [
2270
- {
2271
- "kind": "field",
2272
- "name": "fromDTO",
2273
- "description": "Converts a server row DTO to an entity.",
2274
- "parameters": [
2275
- {
2276
- "description": "The DTO to convert.",
2277
- "name": "dto"
2278
- }
2279
- ],
2280
- "return": {
2281
- "type": {
2282
- "text": ""
2283
- }
2284
- },
2285
- "privacy": "public"
2286
- },
2287
- {
2288
- "kind": "field",
2289
- "name": "toDTO",
2290
- "description": "Converts a server row entity to a DTO.",
2291
- "parameters": [
2292
- {
2293
- "description": "The entity to convert.",
2294
- "name": "entity"
2295
- }
2296
- ],
2297
- "return": {
2298
- "type": {
2299
- "text": ""
2300
- }
2301
- },
2302
- "privacy": "public"
2303
- }
2304
- ]
2305
- },
2306
- {
2307
- "kind": "variable",
2308
- "name": "ServerRowDTOMapper",
2309
- "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2310
- "privacy": "public"
2311
- }
2312
- ],
2313
- "exports": [
2314
- {
2315
- "kind": "js",
2316
- "name": "DefaultServerRowDTOMapper",
2317
- "declaration": {
2318
- "name": "DefaultServerRowDTOMapper",
2319
- "module": "src/mappers/dto/serverRow.ts"
2320
- }
2321
- },
2322
- {
2323
- "kind": "js",
2324
- "name": "ServerRowDTOMapper",
2325
- "declaration": {
2326
- "name": "ServerRowDTOMapper",
2327
- "module": "src/mappers/dto/serverRow.ts"
2328
- }
2329
- }
2330
- ]
2331
- },
2332
- {
2333
- "kind": "javascript-module",
2334
- "path": "src/mappers/dto/types.ts",
2335
- "declarations": [],
2336
- "exports": []
2337
- },
2338
2338
  {
2339
2339
  "kind": "javascript-module",
2340
2340
  "path": "src/serializers/json/index.ts",
@@ -154,6 +154,7 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
154
154
  return result;
155
155
  },
156
156
  __tryFindContainingLayout = function __tryFindContainingLayout(e) {
157
+ var _a;
157
158
  /**
158
159
  * This is a special case where the element is part of the layout cache
159
160
  * signified by a symbol put on the document cache root
@@ -166,7 +167,7 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
166
167
  * without finding a containing FoundationLayout
167
168
  * hence, this item is not in a custom layout
168
169
  */
169
- if (e.getRootNode() instanceof Document) {
170
+ if (e.getRootNode() instanceof Document || !((_a = e.getRootNode()) === null || _a === void 0 ? void 0 : _a.host)) {
170
171
  return { _key: 'dom' };
171
172
  }
172
173
  const shadowHost = e.getRootNode().host;
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.94.0",
4
+ "version": "14.94.1-pa-958.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.94.0",
23
- "@genesislcap/genx": "14.94.0",
22
+ "@genesislcap/foundation-testing": "14.94.1-pa-958.1",
23
+ "@genesislcap/genx": "14.94.1-pa-958.1",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.94.0",
27
+ "@genesislcap/foundation-logger": "14.94.1-pa-958.1",
28
28
  "@microsoft/fast-components": "^2.21.3",
29
29
  "@microsoft/fast-element": "^1.7.0",
30
30
  "@microsoft/fast-foundation": "^2.33.2",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "cb3b05d51d51d25f3558ab4436258df58268aa0e"
45
+ "gitHead": "3dbe67e6d256eb52af379754c2c5097a36891e37"
46
46
  }