@genesislcap/foundation-utils 14.95.0 → 14.96.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.
- package/dist/custom-elements.json +359 -315
- package/dist/dts/styles/index.d.ts +1 -0
- package/dist/dts/styles/index.d.ts.map +1 -1
- package/dist/dts/styles/toElementStyles.d.ts +10 -0
- package/dist/dts/styles/toElementStyles.d.ts.map +1 -0
- package/dist/esm/styles/index.js +1 -0
- package/dist/esm/styles/toElementStyles.js +20 -0
- package/dist/foundation-utils.api.json +60 -0
- package/dist/foundation-utils.d.ts +10 -0
- package/docs/api/foundation-utils.md +1 -0
- package/docs/api/foundation-utils.toelementstyles.md +28 -0
- package/docs/api-report.md +4 -0
- package/package.json +5 -5
|
@@ -143,6 +143,59 @@
|
|
|
143
143
|
}
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"kind": "javascript-module",
|
|
148
|
+
"path": "src/decorators/index.ts",
|
|
149
|
+
"declarations": [],
|
|
150
|
+
"exports": [
|
|
151
|
+
{
|
|
152
|
+
"kind": "js",
|
|
153
|
+
"name": "*",
|
|
154
|
+
"declaration": {
|
|
155
|
+
"name": "*",
|
|
156
|
+
"package": "./renderOnChange"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"kind": "javascript-module",
|
|
163
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
164
|
+
"declarations": [
|
|
165
|
+
{
|
|
166
|
+
"kind": "function",
|
|
167
|
+
"name": "renderOnChange",
|
|
168
|
+
"parameters": [
|
|
169
|
+
{
|
|
170
|
+
"name": "target",
|
|
171
|
+
"type": {
|
|
172
|
+
"text": "FASTElement & { render(): void }"
|
|
173
|
+
},
|
|
174
|
+
"description": "The target to define the property change handler on."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "name",
|
|
178
|
+
"type": {
|
|
179
|
+
"text": "string"
|
|
180
|
+
},
|
|
181
|
+
"description": "The property name."
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
185
|
+
"privacy": "public"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"exports": [
|
|
189
|
+
{
|
|
190
|
+
"kind": "js",
|
|
191
|
+
"name": "renderOnChange",
|
|
192
|
+
"declaration": {
|
|
193
|
+
"name": "renderOnChange",
|
|
194
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
146
199
|
{
|
|
147
200
|
"kind": "javascript-module",
|
|
148
201
|
"path": "src/data/inMemoryDatabase.ts",
|
|
@@ -343,7 +396,7 @@
|
|
|
343
396
|
},
|
|
344
397
|
{
|
|
345
398
|
"kind": "javascript-module",
|
|
346
|
-
"path": "src/
|
|
399
|
+
"path": "src/directives/index.ts",
|
|
347
400
|
"declarations": [],
|
|
348
401
|
"exports": [
|
|
349
402
|
{
|
|
@@ -351,45 +404,15 @@
|
|
|
351
404
|
"name": "*",
|
|
352
405
|
"declaration": {
|
|
353
406
|
"name": "*",
|
|
354
|
-
"package": "./
|
|
407
|
+
"package": "./sync"
|
|
355
408
|
}
|
|
356
|
-
}
|
|
357
|
-
]
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"kind": "javascript-module",
|
|
361
|
-
"path": "src/decorators/renderOnChange.ts",
|
|
362
|
-
"declarations": [
|
|
363
|
-
{
|
|
364
|
-
"kind": "function",
|
|
365
|
-
"name": "renderOnChange",
|
|
366
|
-
"parameters": [
|
|
367
|
-
{
|
|
368
|
-
"name": "target",
|
|
369
|
-
"type": {
|
|
370
|
-
"text": "FASTElement & { render(): void }"
|
|
371
|
-
},
|
|
372
|
-
"description": "The target to define the property change handler on."
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"name": "name",
|
|
376
|
-
"type": {
|
|
377
|
-
"text": "string"
|
|
378
|
-
},
|
|
379
|
-
"description": "The property name."
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
383
|
-
"privacy": "public"
|
|
384
|
-
}
|
|
385
|
-
],
|
|
386
|
-
"exports": [
|
|
409
|
+
},
|
|
387
410
|
{
|
|
388
411
|
"kind": "js",
|
|
389
|
-
"name": "
|
|
412
|
+
"name": "*",
|
|
390
413
|
"declaration": {
|
|
391
|
-
"name": "
|
|
392
|
-
"
|
|
414
|
+
"name": "*",
|
|
415
|
+
"package": "./when-else"
|
|
393
416
|
}
|
|
394
417
|
}
|
|
395
418
|
]
|
|
@@ -445,7 +468,7 @@
|
|
|
445
468
|
},
|
|
446
469
|
{
|
|
447
470
|
"kind": "javascript-module",
|
|
448
|
-
"path": "src/
|
|
471
|
+
"path": "src/env/index.ts",
|
|
449
472
|
"declarations": [],
|
|
450
473
|
"exports": [
|
|
451
474
|
{
|
|
@@ -453,7 +476,7 @@
|
|
|
453
476
|
"name": "*",
|
|
454
477
|
"declaration": {
|
|
455
478
|
"name": "*",
|
|
456
|
-
"package": "./
|
|
479
|
+
"package": "./is-dev"
|
|
457
480
|
}
|
|
458
481
|
},
|
|
459
482
|
{
|
|
@@ -461,7 +484,207 @@
|
|
|
461
484
|
"name": "*",
|
|
462
485
|
"declaration": {
|
|
463
486
|
"name": "*",
|
|
464
|
-
"package": "./
|
|
487
|
+
"package": "./variables"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"kind": "javascript-module",
|
|
494
|
+
"path": "src/env/is-dev.ts",
|
|
495
|
+
"declarations": [
|
|
496
|
+
{
|
|
497
|
+
"kind": "function",
|
|
498
|
+
"name": "isDev",
|
|
499
|
+
"description": "Determines if the current environment is a development environment.",
|
|
500
|
+
"privacy": "public"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"exports": [
|
|
504
|
+
{
|
|
505
|
+
"kind": "js",
|
|
506
|
+
"name": "isDev",
|
|
507
|
+
"declaration": {
|
|
508
|
+
"name": "isDev",
|
|
509
|
+
"module": "src/env/is-dev.ts"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"kind": "javascript-module",
|
|
516
|
+
"path": "src/env/variables.ts",
|
|
517
|
+
"declarations": [
|
|
518
|
+
{
|
|
519
|
+
"kind": "variable",
|
|
520
|
+
"name": "SOCKET_EXT",
|
|
521
|
+
"type": {
|
|
522
|
+
"text": "string"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"kind": "variable",
|
|
527
|
+
"name": "_SOCKET_EXT",
|
|
528
|
+
"type": {
|
|
529
|
+
"text": "string"
|
|
530
|
+
},
|
|
531
|
+
"default": "'gwf'",
|
|
532
|
+
"description": "The sub-path used for WebSocket connections when API_HOST is not set",
|
|
533
|
+
"privacy": "public"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "variable",
|
|
537
|
+
"name": "FORCE_HTTP",
|
|
538
|
+
"type": {
|
|
539
|
+
"text": "string"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"kind": "variable",
|
|
544
|
+
"name": "_FORCE_HTTP",
|
|
545
|
+
"type": {
|
|
546
|
+
"text": "string"
|
|
547
|
+
},
|
|
548
|
+
"description": "The path to a JSON config file for the HTTP mode.",
|
|
549
|
+
"privacy": "public"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"kind": "variable",
|
|
553
|
+
"name": "API_HOST",
|
|
554
|
+
"type": {
|
|
555
|
+
"text": "string"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"kind": "variable",
|
|
560
|
+
"name": "_API_HOST",
|
|
561
|
+
"type": {
|
|
562
|
+
"text": "string"
|
|
563
|
+
},
|
|
564
|
+
"default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
|
|
565
|
+
"description": "The Genesis Server URL (WebSocket or HTTP).",
|
|
566
|
+
"privacy": "public"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"kind": "variable",
|
|
570
|
+
"name": "HTTP_CONFIG",
|
|
571
|
+
"type": {
|
|
572
|
+
"text": "string"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"kind": "variable",
|
|
577
|
+
"name": "_HTTP_CONFIG",
|
|
578
|
+
"type": {
|
|
579
|
+
"text": "string"
|
|
580
|
+
},
|
|
581
|
+
"description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
|
|
582
|
+
"privacy": "public"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"kind": "variable",
|
|
586
|
+
"name": "DEFAULT_ORGANISATION",
|
|
587
|
+
"type": {
|
|
588
|
+
"text": "string"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"kind": "variable",
|
|
593
|
+
"name": "_DEFAULT_ORGANISATION",
|
|
594
|
+
"type": {
|
|
595
|
+
"text": "string"
|
|
596
|
+
},
|
|
597
|
+
"description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
598
|
+
"privacy": "public"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"kind": "variable",
|
|
602
|
+
"name": "DEFAULT_PASSWORD",
|
|
603
|
+
"type": {
|
|
604
|
+
"text": "string"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"kind": "variable",
|
|
609
|
+
"name": "_DEFAULT_PASSWORD",
|
|
610
|
+
"type": {
|
|
611
|
+
"text": "string"
|
|
612
|
+
},
|
|
613
|
+
"description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
614
|
+
"privacy": "public"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"kind": "variable",
|
|
618
|
+
"name": "DEFAULT_USER",
|
|
619
|
+
"type": {
|
|
620
|
+
"text": "string"
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"kind": "variable",
|
|
625
|
+
"name": "_DEFAULT_USER",
|
|
626
|
+
"type": {
|
|
627
|
+
"text": "string"
|
|
628
|
+
},
|
|
629
|
+
"description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
630
|
+
"privacy": "public"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"exports": [
|
|
634
|
+
{
|
|
635
|
+
"kind": "js",
|
|
636
|
+
"name": "SOCKET_EXT",
|
|
637
|
+
"declaration": {
|
|
638
|
+
"name": "_SOCKET_EXT",
|
|
639
|
+
"module": "src/env/variables.ts"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"kind": "js",
|
|
644
|
+
"name": "FORCE_HTTP",
|
|
645
|
+
"declaration": {
|
|
646
|
+
"name": "_FORCE_HTTP",
|
|
647
|
+
"module": "src/env/variables.ts"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"kind": "js",
|
|
652
|
+
"name": "API_HOST",
|
|
653
|
+
"declaration": {
|
|
654
|
+
"name": "_API_HOST",
|
|
655
|
+
"module": "src/env/variables.ts"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"kind": "js",
|
|
660
|
+
"name": "HTTP_CONFIG",
|
|
661
|
+
"declaration": {
|
|
662
|
+
"name": "_HTTP_CONFIG",
|
|
663
|
+
"module": "src/env/variables.ts"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"kind": "js",
|
|
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"
|
|
465
688
|
}
|
|
466
689
|
}
|
|
467
690
|
]
|
|
@@ -855,328 +1078,105 @@
|
|
|
855
1078
|
},
|
|
856
1079
|
{
|
|
857
1080
|
"kind": "field",
|
|
858
|
-
"name": "_group",
|
|
859
|
-
"default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
|
|
860
|
-
}
|
|
861
|
-
]
|
|
862
|
-
}
|
|
863
|
-
],
|
|
864
|
-
"exports": [
|
|
865
|
-
{
|
|
866
|
-
"kind": "js",
|
|
867
|
-
"name": "NumberParser",
|
|
868
|
-
"declaration": {
|
|
869
|
-
"name": "NumberParser",
|
|
870
|
-
"module": "src/formatters/localeNumberParser.ts"
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
]
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
"kind": "javascript-module",
|
|
877
|
-
"path": "src/logger/index.ts",
|
|
878
|
-
"declarations": [],
|
|
879
|
-
"exports": [
|
|
880
|
-
{
|
|
881
|
-
"kind": "js",
|
|
882
|
-
"name": "*",
|
|
883
|
-
"declaration": {
|
|
884
|
-
"name": "*",
|
|
885
|
-
"package": "./logger"
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
]
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
"kind": "javascript-module",
|
|
892
|
-
"path": "src/logger/logger.ts",
|
|
893
|
-
"declarations": [
|
|
894
|
-
{
|
|
895
|
-
"kind": "variable",
|
|
896
|
-
"name": "defaultLoggerOptions",
|
|
897
|
-
"type": {
|
|
898
|
-
"text": "LoggerOptions"
|
|
899
|
-
},
|
|
900
|
-
"default": "{\n level: logLevelDebug,\n}",
|
|
901
|
-
"description": "The default logger options.",
|
|
902
|
-
"privacy": "public"
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"kind": "function",
|
|
906
|
-
"name": "createLogger",
|
|
907
|
-
"return": {
|
|
908
|
-
"type": {
|
|
909
|
-
"text": ""
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
"parameters": [
|
|
913
|
-
{
|
|
914
|
-
"name": "name",
|
|
915
|
-
"type": {
|
|
916
|
-
"text": "string"
|
|
917
|
-
},
|
|
918
|
-
"description": "The name to give the logger."
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"name": "options",
|
|
922
|
-
"default": "defaultLoggerOptions",
|
|
923
|
-
"type": {
|
|
924
|
-
"text": "LoggerOptions"
|
|
925
|
-
},
|
|
926
|
-
"description": "The options to use when creating the logger."
|
|
927
|
-
}
|
|
928
|
-
],
|
|
929
|
-
"description": "Creates a logger with the given name and options.",
|
|
930
|
-
"deprecated": "- Use `createLogger` from `@genesislcap/foundation-logger` instead.",
|
|
931
|
-
"privacy": "public"
|
|
932
|
-
}
|
|
933
|
-
],
|
|
934
|
-
"exports": [
|
|
935
|
-
{
|
|
936
|
-
"kind": "js",
|
|
937
|
-
"name": "LogLevel",
|
|
938
|
-
"declaration": {
|
|
939
|
-
"name": "LogLevel",
|
|
940
|
-
"package": "consola"
|
|
941
|
-
}
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"kind": "js",
|
|
945
|
-
"name": "defaultLoggerOptions",
|
|
946
|
-
"declaration": {
|
|
947
|
-
"name": "defaultLoggerOptions",
|
|
948
|
-
"module": "src/logger/logger.ts"
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"kind": "js",
|
|
953
|
-
"name": "createLogger",
|
|
954
|
-
"declaration": {
|
|
955
|
-
"name": "createLogger",
|
|
956
|
-
"module": "src/logger/logger.ts"
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
]
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
"kind": "javascript-module",
|
|
963
|
-
"path": "src/env/index.ts",
|
|
964
|
-
"declarations": [],
|
|
1081
|
+
"name": "_group",
|
|
1082
|
+
"default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
|
|
1083
|
+
}
|
|
1084
|
+
]
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
965
1087
|
"exports": [
|
|
966
1088
|
{
|
|
967
1089
|
"kind": "js",
|
|
968
|
-
"name": "
|
|
969
|
-
"declaration": {
|
|
970
|
-
"name": "*",
|
|
971
|
-
"package": "./is-dev"
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
"kind": "js",
|
|
976
|
-
"name": "*",
|
|
1090
|
+
"name": "NumberParser",
|
|
977
1091
|
"declaration": {
|
|
978
|
-
"name": "
|
|
979
|
-
"
|
|
1092
|
+
"name": "NumberParser",
|
|
1093
|
+
"module": "src/formatters/localeNumberParser.ts"
|
|
980
1094
|
}
|
|
981
1095
|
}
|
|
982
1096
|
]
|
|
983
1097
|
},
|
|
984
1098
|
{
|
|
985
1099
|
"kind": "javascript-module",
|
|
986
|
-
"path": "src/
|
|
987
|
-
"declarations": [
|
|
988
|
-
{
|
|
989
|
-
"kind": "function",
|
|
990
|
-
"name": "isDev",
|
|
991
|
-
"description": "Determines if the current environment is a development environment.",
|
|
992
|
-
"privacy": "public"
|
|
993
|
-
}
|
|
994
|
-
],
|
|
1100
|
+
"path": "src/logger/index.ts",
|
|
1101
|
+
"declarations": [],
|
|
995
1102
|
"exports": [
|
|
996
1103
|
{
|
|
997
1104
|
"kind": "js",
|
|
998
|
-
"name": "
|
|
1105
|
+
"name": "*",
|
|
999
1106
|
"declaration": {
|
|
1000
|
-
"name": "
|
|
1001
|
-
"
|
|
1107
|
+
"name": "*",
|
|
1108
|
+
"package": "./logger"
|
|
1002
1109
|
}
|
|
1003
1110
|
}
|
|
1004
1111
|
]
|
|
1005
1112
|
},
|
|
1006
1113
|
{
|
|
1007
1114
|
"kind": "javascript-module",
|
|
1008
|
-
"path": "src/
|
|
1115
|
+
"path": "src/logger/logger.ts",
|
|
1009
1116
|
"declarations": [
|
|
1010
1117
|
{
|
|
1011
1118
|
"kind": "variable",
|
|
1012
|
-
"name": "
|
|
1013
|
-
"type": {
|
|
1014
|
-
"text": "string"
|
|
1015
|
-
}
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
"kind": "variable",
|
|
1019
|
-
"name": "_SOCKET_EXT",
|
|
1020
|
-
"type": {
|
|
1021
|
-
"text": "string"
|
|
1022
|
-
},
|
|
1023
|
-
"default": "'gwf'",
|
|
1024
|
-
"description": "The sub-path used for WebSocket connections when API_HOST is not set",
|
|
1025
|
-
"privacy": "public"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"kind": "variable",
|
|
1029
|
-
"name": "FORCE_HTTP",
|
|
1030
|
-
"type": {
|
|
1031
|
-
"text": "string"
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"kind": "variable",
|
|
1036
|
-
"name": "_FORCE_HTTP",
|
|
1037
|
-
"type": {
|
|
1038
|
-
"text": "string"
|
|
1039
|
-
},
|
|
1040
|
-
"description": "The path to a JSON config file for the HTTP mode.",
|
|
1041
|
-
"privacy": "public"
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
"kind": "variable",
|
|
1045
|
-
"name": "API_HOST",
|
|
1046
|
-
"type": {
|
|
1047
|
-
"text": "string"
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
"kind": "variable",
|
|
1052
|
-
"name": "_API_HOST",
|
|
1053
|
-
"type": {
|
|
1054
|
-
"text": "string"
|
|
1055
|
-
},
|
|
1056
|
-
"default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
|
|
1057
|
-
"description": "The Genesis Server URL (WebSocket or HTTP).",
|
|
1058
|
-
"privacy": "public"
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
"kind": "variable",
|
|
1062
|
-
"name": "HTTP_CONFIG",
|
|
1063
|
-
"type": {
|
|
1064
|
-
"text": "string"
|
|
1065
|
-
}
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
"kind": "variable",
|
|
1069
|
-
"name": "_HTTP_CONFIG",
|
|
1070
|
-
"type": {
|
|
1071
|
-
"text": "string"
|
|
1072
|
-
},
|
|
1073
|
-
"description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
|
|
1074
|
-
"privacy": "public"
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
"kind": "variable",
|
|
1078
|
-
"name": "DEFAULT_ORGANISATION",
|
|
1079
|
-
"type": {
|
|
1080
|
-
"text": "string"
|
|
1081
|
-
}
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"kind": "variable",
|
|
1085
|
-
"name": "_DEFAULT_ORGANISATION",
|
|
1086
|
-
"type": {
|
|
1087
|
-
"text": "string"
|
|
1088
|
-
},
|
|
1089
|
-
"description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
1090
|
-
"privacy": "public"
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
"kind": "variable",
|
|
1094
|
-
"name": "DEFAULT_PASSWORD",
|
|
1095
|
-
"type": {
|
|
1096
|
-
"text": "string"
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
"kind": "variable",
|
|
1101
|
-
"name": "_DEFAULT_PASSWORD",
|
|
1119
|
+
"name": "defaultLoggerOptions",
|
|
1102
1120
|
"type": {
|
|
1103
|
-
"text": "
|
|
1121
|
+
"text": "LoggerOptions"
|
|
1104
1122
|
},
|
|
1105
|
-
"
|
|
1123
|
+
"default": "{\n level: logLevelDebug,\n}",
|
|
1124
|
+
"description": "The default logger options.",
|
|
1106
1125
|
"privacy": "public"
|
|
1107
1126
|
},
|
|
1108
1127
|
{
|
|
1109
|
-
"kind": "
|
|
1110
|
-
"name": "
|
|
1111
|
-
"
|
|
1112
|
-
"
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
{
|
|
1116
|
-
"kind": "variable",
|
|
1117
|
-
"name": "_DEFAULT_USER",
|
|
1118
|
-
"type": {
|
|
1119
|
-
"text": "string"
|
|
1128
|
+
"kind": "function",
|
|
1129
|
+
"name": "createLogger",
|
|
1130
|
+
"return": {
|
|
1131
|
+
"type": {
|
|
1132
|
+
"text": ""
|
|
1133
|
+
}
|
|
1120
1134
|
},
|
|
1121
|
-
"
|
|
1135
|
+
"parameters": [
|
|
1136
|
+
{
|
|
1137
|
+
"name": "name",
|
|
1138
|
+
"type": {
|
|
1139
|
+
"text": "string"
|
|
1140
|
+
},
|
|
1141
|
+
"description": "The name to give the logger."
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "options",
|
|
1145
|
+
"default": "defaultLoggerOptions",
|
|
1146
|
+
"type": {
|
|
1147
|
+
"text": "LoggerOptions"
|
|
1148
|
+
},
|
|
1149
|
+
"description": "The options to use when creating the logger."
|
|
1150
|
+
}
|
|
1151
|
+
],
|
|
1152
|
+
"description": "Creates a logger with the given name and options.",
|
|
1153
|
+
"deprecated": "- Use `createLogger` from `@genesislcap/foundation-logger` instead.",
|
|
1122
1154
|
"privacy": "public"
|
|
1123
1155
|
}
|
|
1124
1156
|
],
|
|
1125
1157
|
"exports": [
|
|
1126
1158
|
{
|
|
1127
1159
|
"kind": "js",
|
|
1128
|
-
"name": "
|
|
1129
|
-
"declaration": {
|
|
1130
|
-
"name": "_SOCKET_EXT",
|
|
1131
|
-
"module": "src/env/variables.ts"
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
"kind": "js",
|
|
1136
|
-
"name": "FORCE_HTTP",
|
|
1137
|
-
"declaration": {
|
|
1138
|
-
"name": "_FORCE_HTTP",
|
|
1139
|
-
"module": "src/env/variables.ts"
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
"kind": "js",
|
|
1144
|
-
"name": "API_HOST",
|
|
1145
|
-
"declaration": {
|
|
1146
|
-
"name": "_API_HOST",
|
|
1147
|
-
"module": "src/env/variables.ts"
|
|
1148
|
-
}
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
"kind": "js",
|
|
1152
|
-
"name": "HTTP_CONFIG",
|
|
1153
|
-
"declaration": {
|
|
1154
|
-
"name": "_HTTP_CONFIG",
|
|
1155
|
-
"module": "src/env/variables.ts"
|
|
1156
|
-
}
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"kind": "js",
|
|
1160
|
-
"name": "DEFAULT_ORGANISATION",
|
|
1160
|
+
"name": "LogLevel",
|
|
1161
1161
|
"declaration": {
|
|
1162
|
-
"name": "
|
|
1163
|
-
"
|
|
1162
|
+
"name": "LogLevel",
|
|
1163
|
+
"package": "consola"
|
|
1164
1164
|
}
|
|
1165
1165
|
},
|
|
1166
1166
|
{
|
|
1167
1167
|
"kind": "js",
|
|
1168
|
-
"name": "
|
|
1168
|
+
"name": "defaultLoggerOptions",
|
|
1169
1169
|
"declaration": {
|
|
1170
|
-
"name": "
|
|
1171
|
-
"module": "src/
|
|
1170
|
+
"name": "defaultLoggerOptions",
|
|
1171
|
+
"module": "src/logger/logger.ts"
|
|
1172
1172
|
}
|
|
1173
1173
|
},
|
|
1174
1174
|
{
|
|
1175
1175
|
"kind": "js",
|
|
1176
|
-
"name": "
|
|
1176
|
+
"name": "createLogger",
|
|
1177
1177
|
"declaration": {
|
|
1178
|
-
"name": "
|
|
1179
|
-
"module": "src/
|
|
1178
|
+
"name": "createLogger",
|
|
1179
|
+
"module": "src/logger/logger.ts"
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
]
|
|
@@ -1471,6 +1471,14 @@
|
|
|
1471
1471
|
"name": "*",
|
|
1472
1472
|
"package": "./typography"
|
|
1473
1473
|
}
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"kind": "js",
|
|
1477
|
+
"name": "*",
|
|
1478
|
+
"declaration": {
|
|
1479
|
+
"name": "*",
|
|
1480
|
+
"package": "./toElementStyles"
|
|
1481
|
+
}
|
|
1474
1482
|
}
|
|
1475
1483
|
]
|
|
1476
1484
|
},
|
|
@@ -1545,6 +1553,42 @@
|
|
|
1545
1553
|
}
|
|
1546
1554
|
]
|
|
1547
1555
|
},
|
|
1556
|
+
{
|
|
1557
|
+
"kind": "javascript-module",
|
|
1558
|
+
"path": "src/styles/toElementStyles.ts",
|
|
1559
|
+
"declarations": [
|
|
1560
|
+
{
|
|
1561
|
+
"kind": "function",
|
|
1562
|
+
"name": "toElementStyles",
|
|
1563
|
+
"return": {
|
|
1564
|
+
"type": {
|
|
1565
|
+
"text": "ElementStyles"
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
"parameters": [
|
|
1569
|
+
{
|
|
1570
|
+
"name": "styles",
|
|
1571
|
+
"type": {
|
|
1572
|
+
"text": "ComposableStyles | ComposableStyles[]"
|
|
1573
|
+
},
|
|
1574
|
+
"description": "ComposableStyles or a ComposableStyles array."
|
|
1575
|
+
}
|
|
1576
|
+
],
|
|
1577
|
+
"description": "toElementStyles.",
|
|
1578
|
+
"privacy": "public"
|
|
1579
|
+
}
|
|
1580
|
+
],
|
|
1581
|
+
"exports": [
|
|
1582
|
+
{
|
|
1583
|
+
"kind": "js",
|
|
1584
|
+
"name": "toElementStyles",
|
|
1585
|
+
"declaration": {
|
|
1586
|
+
"name": "toElementStyles",
|
|
1587
|
+
"module": "src/styles/toElementStyles.ts"
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
]
|
|
1591
|
+
},
|
|
1548
1592
|
{
|
|
1549
1593
|
"kind": "javascript-module",
|
|
1550
1594
|
"path": "src/styles/typography.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComposableStyles, ElementStyles } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* toElementStyles.
|
|
4
|
+
* @remarks
|
|
5
|
+
* Converts {@link @microsoft/fast-element#ComposableStyles} or a ComposableStyles array to {@link @microsoft/fast-element#ElementStyles}.
|
|
6
|
+
* @param styles - ComposableStyles or a ComposableStyles array.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare function toElementStyles(styles: ComposableStyles | ComposableStyles[]): ElementStyles;
|
|
10
|
+
//# sourceMappingURL=toElementStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toElementStyles.d.ts","sourceRoot":"","sources":["../../../src/styles/toElementStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE1E;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,GAAG,aAAa,CAW5F"}
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* toElementStyles.
|
|
4
|
+
* @remarks
|
|
5
|
+
* Converts {@link @microsoft/fast-element#ComposableStyles} or a ComposableStyles array to {@link @microsoft/fast-element#ElementStyles}.
|
|
6
|
+
* @param styles - ComposableStyles or a ComposableStyles array.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export function toElementStyles(styles) {
|
|
10
|
+
if (!styles) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (Array.isArray(styles)) {
|
|
14
|
+
return ElementStyles.create(styles);
|
|
15
|
+
}
|
|
16
|
+
if (styles instanceof ElementStyles) {
|
|
17
|
+
return styles;
|
|
18
|
+
}
|
|
19
|
+
return ElementStyles.create([styles]);
|
|
20
|
+
}
|
|
@@ -12053,6 +12053,66 @@
|
|
|
12053
12053
|
],
|
|
12054
12054
|
"name": "sync"
|
|
12055
12055
|
},
|
|
12056
|
+
{
|
|
12057
|
+
"kind": "Function",
|
|
12058
|
+
"canonicalReference": "@genesislcap/foundation-utils!toElementStyles:function(1)",
|
|
12059
|
+
"docComment": "/**\n * toElementStyles.\n *\n * @remarks\n *\n * Converts {@link @microsoft/fast-element#ComposableStyles} or a ComposableStyles array to {@link @microsoft/fast-element#ElementStyles}.\n *\n * @param styles - ComposableStyles or a ComposableStyles array.\n *\n * @public\n */\n",
|
|
12060
|
+
"excerptTokens": [
|
|
12061
|
+
{
|
|
12062
|
+
"kind": "Content",
|
|
12063
|
+
"text": "export declare function toElementStyles(styles: "
|
|
12064
|
+
},
|
|
12065
|
+
{
|
|
12066
|
+
"kind": "Reference",
|
|
12067
|
+
"text": "ComposableStyles",
|
|
12068
|
+
"canonicalReference": "@microsoft/fast-element!ComposableStyles:type"
|
|
12069
|
+
},
|
|
12070
|
+
{
|
|
12071
|
+
"kind": "Content",
|
|
12072
|
+
"text": " | "
|
|
12073
|
+
},
|
|
12074
|
+
{
|
|
12075
|
+
"kind": "Reference",
|
|
12076
|
+
"text": "ComposableStyles",
|
|
12077
|
+
"canonicalReference": "@microsoft/fast-element!ComposableStyles:type"
|
|
12078
|
+
},
|
|
12079
|
+
{
|
|
12080
|
+
"kind": "Content",
|
|
12081
|
+
"text": "[]"
|
|
12082
|
+
},
|
|
12083
|
+
{
|
|
12084
|
+
"kind": "Content",
|
|
12085
|
+
"text": "): "
|
|
12086
|
+
},
|
|
12087
|
+
{
|
|
12088
|
+
"kind": "Reference",
|
|
12089
|
+
"text": "ElementStyles",
|
|
12090
|
+
"canonicalReference": "@microsoft/fast-element!ElementStyles:class"
|
|
12091
|
+
},
|
|
12092
|
+
{
|
|
12093
|
+
"kind": "Content",
|
|
12094
|
+
"text": ";"
|
|
12095
|
+
}
|
|
12096
|
+
],
|
|
12097
|
+
"fileUrlPath": "src/styles/toElementStyles.ts",
|
|
12098
|
+
"returnTypeTokenRange": {
|
|
12099
|
+
"startIndex": 6,
|
|
12100
|
+
"endIndex": 7
|
|
12101
|
+
},
|
|
12102
|
+
"releaseTag": "Public",
|
|
12103
|
+
"overloadIndex": 1,
|
|
12104
|
+
"parameters": [
|
|
12105
|
+
{
|
|
12106
|
+
"parameterName": "styles",
|
|
12107
|
+
"parameterTypeTokenRange": {
|
|
12108
|
+
"startIndex": 1,
|
|
12109
|
+
"endIndex": 5
|
|
12110
|
+
},
|
|
12111
|
+
"isOptional": false
|
|
12112
|
+
}
|
|
12113
|
+
],
|
|
12114
|
+
"name": "toElementStyles"
|
|
12115
|
+
},
|
|
12056
12116
|
{
|
|
12057
12117
|
"kind": "Variable",
|
|
12058
12118
|
"canonicalReference": "@genesislcap/foundation-utils!TypeRampValues:var",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Binding } from '@microsoft/fast-element';
|
|
2
2
|
import { CaptureType } from '@microsoft/fast-element';
|
|
3
|
+
import { ComposableStyles } from '@microsoft/fast-element';
|
|
3
4
|
import { Consola } from 'consola';
|
|
4
5
|
import { ConsolaOptions } from 'consola';
|
|
5
6
|
import { Constructable } from '@microsoft/fast-element';
|
|
@@ -1601,6 +1602,15 @@ export declare type Subscribe<EventType> = (listener: Listener<EventType>) => ()
|
|
|
1601
1602
|
*/
|
|
1602
1603
|
export declare function sync<TSource = any, TReturn = any>(binding: Binding<TSource, TReturn>, conversionType?: ConversionType, eventName?: EventName, keyAttr?: string): CaptureType<TSource>;
|
|
1603
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* toElementStyles.
|
|
1607
|
+
* @remarks
|
|
1608
|
+
* Converts {@link @microsoft/fast-element#ComposableStyles} or a ComposableStyles array to {@link @microsoft/fast-element#ElementStyles}.
|
|
1609
|
+
* @param styles - ComposableStyles or a ComposableStyles array.
|
|
1610
|
+
* @public
|
|
1611
|
+
*/
|
|
1612
|
+
export declare function toElementStyles(styles: ComposableStyles | ComposableStyles[]): ElementStyles;
|
|
1613
|
+
|
|
1604
1614
|
/**
|
|
1605
1615
|
* An object containing type ramp values.
|
|
1606
1616
|
* @public
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
| [JSONReviver(key, value)](./foundation-utils.jsonreviver.md) | JSON reviver function. |
|
|
37
37
|
| [renderOnChange(target, name)](./foundation-utils.renderonchange.md) | Defines a property changed handler that calls a render() method on the target as an internal observation enhancement. |
|
|
38
38
|
| [sync(binding, conversionType, eventName, keyAttr)](./foundation-utils.sync.md) | Creates a synchronization directive that binds a data source to an HTML element, |
|
|
39
|
+
| [toElementStyles(styles)](./foundation-utils.toelementstyles.md) | toElementStyles. |
|
|
39
40
|
| [whenElse(binding, trueTemplateOrTemplateBinding, falseTemplateOrTemplateBinding)](./foundation-utils.whenelse.md) | Directive that allows supplying an "else" template to the traditional [https://www.fast.design/docs/api/fast-element.when/\#when-function](https://www.fast.design/docs/api/fast-element.when/#when-function) directive |
|
|
40
41
|
|
|
41
42
|
## Interfaces
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [toElementStyles](./foundation-utils.toelementstyles.md)
|
|
4
|
+
|
|
5
|
+
## toElementStyles() function
|
|
6
|
+
|
|
7
|
+
toElementStyles.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function toElementStyles(styles: ComposableStyles | ComposableStyles[]): ElementStyles;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| styles | ComposableStyles \| ComposableStyles\[\] | ComposableStyles or a ComposableStyles array. |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
ElementStyles
|
|
24
|
+
|
|
25
|
+
## Remarks
|
|
26
|
+
|
|
27
|
+
Converts or a ComposableStyles array to .
|
|
28
|
+
|
package/docs/api-report.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { Binding } from '@microsoft/fast-element';
|
|
8
8
|
import { CaptureType } from '@microsoft/fast-element';
|
|
9
|
+
import { ComposableStyles } from '@microsoft/fast-element';
|
|
9
10
|
import { Consola } from 'consola';
|
|
10
11
|
import { ConsolaOptions } from 'consola';
|
|
11
12
|
import { Constructable } from '@microsoft/fast-element';
|
|
@@ -1112,6 +1113,9 @@ export type Subscribe<EventType> = (listener: Listener<EventType>) => () => void
|
|
|
1112
1113
|
// @public
|
|
1113
1114
|
export function sync<TSource = any, TReturn = any>(binding: Binding<TSource, TReturn>, conversionType?: ConversionType, eventName?: EventName, keyAttr?: string): CaptureType<TSource>;
|
|
1114
1115
|
|
|
1116
|
+
// @public
|
|
1117
|
+
export function toElementStyles(styles: ComposableStyles | ComposableStyles[]): ElementStyles;
|
|
1118
|
+
|
|
1115
1119
|
// @public
|
|
1116
1120
|
export const TypeRampValues: {
|
|
1117
1121
|
readonly minusOne: -1;
|
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.96.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.
|
|
23
|
-
"@genesislcap/genx": "14.
|
|
22
|
+
"@genesislcap/foundation-testing": "14.96.1",
|
|
23
|
+
"@genesislcap/genx": "14.96.1",
|
|
24
24
|
"rimraf": "^3.0.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@genesislcap/foundation-logger": "14.
|
|
27
|
+
"@genesislcap/foundation-logger": "14.96.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": "
|
|
45
|
+
"gitHead": "48d09fe0db8cfe16fa806a5f098a0fb0405ffcbb"
|
|
46
46
|
}
|