@genesislcap/foundation-utils 15.5.0 → 15.6.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +330 -330
  2. package/package.json +11 -11
@@ -436,7 +436,7 @@
436
436
  },
437
437
  {
438
438
  "kind": "javascript-module",
439
- "path": "src/converters/index.ts",
439
+ "path": "src/encoding/index.ts",
440
440
  "declarations": [],
441
441
  "exports": [
442
442
  {
@@ -444,374 +444,82 @@
444
444
  "name": "*",
445
445
  "declaration": {
446
446
  "name": "*",
447
- "package": "./string-array-converter"
447
+ "package": "./base64"
448
448
  }
449
449
  }
450
450
  ]
451
451
  },
452
452
  {
453
453
  "kind": "javascript-module",
454
- "path": "src/converters/string-array-converter.ts",
455
- "declarations": [
456
- {
457
- "kind": "variable",
458
- "name": "stringArrayConverter",
459
- "type": {
460
- "text": "ValueConverter"
461
- },
462
- "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
463
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
464
- "privacy": "public"
465
- }
466
- ],
454
+ "path": "src/env/index.ts",
455
+ "declarations": [],
467
456
  "exports": [
468
457
  {
469
458
  "kind": "js",
470
- "name": "stringArrayConverter",
459
+ "name": "*",
471
460
  "declaration": {
472
- "name": "stringArrayConverter",
473
- "module": "src/converters/string-array-converter.ts"
461
+ "name": "*",
462
+ "package": "./is-dev"
474
463
  }
475
- }
476
- ]
477
- },
478
- {
479
- "kind": "javascript-module",
480
- "path": "src/encoding/index.ts",
481
- "declarations": [],
482
- "exports": [
464
+ },
483
465
  {
484
466
  "kind": "js",
485
467
  "name": "*",
486
468
  "declaration": {
487
469
  "name": "*",
488
- "package": "./base64"
470
+ "package": "./variables"
489
471
  }
490
472
  }
491
473
  ]
492
474
  },
493
475
  {
494
476
  "kind": "javascript-module",
495
- "path": "src/data/inMemoryDatabase.ts",
477
+ "path": "src/env/is-dev.ts",
496
478
  "declarations": [
497
479
  {
498
- "kind": "class",
499
- "description": "An in memory database of specific DatabaseRecord types.",
500
- "name": "InMemoryDatabase",
501
- "members": [
502
- {
503
- "kind": "field",
504
- "name": "isWorking",
505
- "type": {
506
- "text": "boolean"
507
- },
508
- "privacy": "public",
509
- "default": "false"
510
- },
511
- {
512
- "kind": "field",
513
- "name": "records",
514
- "type": {
515
- "text": "Record<string, T>"
516
- },
517
- "privacy": "private",
518
- "default": "{}"
519
- },
520
- {
521
- "kind": "field",
522
- "name": "beforeUpdateListeners",
523
- "privacy": "private"
524
- },
525
- {
526
- "kind": "field",
527
- "name": "afterUpdateListeners",
528
- "privacy": "private"
529
- },
530
- {
531
- "kind": "method",
532
- "name": "create",
533
- "privacy": "public",
534
- "return": {
535
- "type": {
536
- "text": "Promise<DatabaseAccessResult.Create<T>>"
537
- }
538
- },
539
- "parameters": [
540
- {
541
- "name": "newValue",
542
- "type": {
543
- "text": "Omit<T, 'id'>"
544
- }
545
- }
546
- ]
547
- },
548
- {
549
- "kind": "method",
550
- "name": "read",
551
- "privacy": "public",
552
- "return": {
553
- "type": {
554
- "text": "Promise<DatabaseAccessResult.Read<T>>"
555
- }
556
- },
557
- "parameters": [
558
- {
559
- "name": "id",
560
- "type": {
561
- "text": "string"
562
- }
563
- }
564
- ]
565
- },
566
- {
567
- "kind": "method",
568
- "name": "update",
569
- "privacy": "public",
570
- "return": {
571
- "type": {
572
- "text": "Promise<DatabaseAccessResult.Update<T>>"
573
- }
574
- },
575
- "parameters": [
576
- {
577
- "name": "id",
578
- "type": {
579
- "text": "string"
580
- }
581
- },
582
- {
583
- "name": "newValue",
584
- "type": {
585
- "text": "Omit<Partial<T>, 'id'>"
586
- }
587
- }
588
- ]
589
- },
590
- {
591
- "kind": "method",
592
- "name": "delete",
593
- "privacy": "public",
594
- "return": {
595
- "type": {
596
- "text": "Promise<DatabaseAccessResult.Delete>"
597
- }
598
- },
599
- "parameters": [
600
- {
601
- "name": "id",
602
- "type": {
603
- "text": "string"
604
- }
605
- }
606
- ]
607
- },
608
- {
609
- "kind": "method",
610
- "name": "visit",
611
- "privacy": "public",
612
- "return": {
613
- "type": {
614
- "text": "Promise<void>"
615
- }
616
- },
617
- "parameters": [
618
- {
619
- "name": "visitor",
620
- "type": {
621
- "text": "(record: T) => void"
622
- }
623
- }
624
- ]
625
- },
626
- {
627
- "kind": "method",
628
- "name": "onBeforeUpdate",
629
- "privacy": "public",
630
- "return": {
631
- "type": {
632
- "text": "() => void"
633
- }
634
- },
635
- "parameters": [
636
- {
637
- "name": "listener",
638
- "type": {
639
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
640
- }
641
- }
642
- ]
643
- },
644
- {
645
- "kind": "method",
646
- "name": "onAfterUpdate",
647
- "privacy": "public",
648
- "return": {
649
- "type": {
650
- "text": "() => void"
651
- }
652
- },
653
- "parameters": [
654
- {
655
- "name": "listener",
656
- "type": {
657
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
658
- }
659
- }
660
- ]
661
- }
662
- ]
480
+ "kind": "function",
481
+ "name": "isDev",
482
+ "description": "Determines if the current environment is a development environment.",
483
+ "privacy": "public"
663
484
  }
664
485
  ],
665
486
  "exports": [
666
487
  {
667
488
  "kind": "js",
668
- "name": "InMemoryDatabase",
489
+ "name": "isDev",
669
490
  "declaration": {
670
- "name": "InMemoryDatabase",
671
- "module": "src/data/inMemoryDatabase.ts"
491
+ "name": "isDev",
492
+ "module": "src/env/is-dev.ts"
672
493
  }
673
494
  }
674
495
  ]
675
496
  },
676
497
  {
677
498
  "kind": "javascript-module",
678
- "path": "src/data/index.ts",
679
- "declarations": [],
680
- "exports": [
499
+ "path": "src/env/variables.ts",
500
+ "declarations": [
681
501
  {
682
- "kind": "js",
683
- "name": "*",
684
- "declaration": {
685
- "name": "*",
686
- "package": "./inMemoryDatabase"
502
+ "kind": "variable",
503
+ "name": "BUILDER",
504
+ "type": {
505
+ "text": "string"
687
506
  }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "javascript-module",
693
- "path": "src/decorators/index.ts",
694
- "declarations": [],
695
- "exports": [
507
+ },
696
508
  {
697
- "kind": "js",
698
- "name": "*",
699
- "declaration": {
700
- "name": "*",
701
- "package": "./renderOnChange"
702
- }
703
- }
704
- ]
705
- },
706
- {
707
- "kind": "javascript-module",
708
- "path": "src/decorators/renderOnChange.ts",
709
- "declarations": [
710
- {
711
- "kind": "function",
712
- "name": "renderOnChange",
713
- "parameters": [
714
- {
715
- "name": "target",
716
- "type": {
717
- "text": "FASTElement & { render(): void }"
718
- },
719
- "description": "The target to define the property change handler on."
720
- },
721
- {
722
- "name": "name",
723
- "type": {
724
- "text": "string"
725
- },
726
- "description": "The property name."
727
- }
728
- ],
729
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
730
- "privacy": "public"
731
- }
732
- ],
733
- "exports": [
734
- {
735
- "kind": "js",
736
- "name": "renderOnChange",
737
- "declaration": {
738
- "name": "renderOnChange",
739
- "module": "src/decorators/renderOnChange.ts"
740
- }
741
- }
742
- ]
743
- },
744
- {
745
- "kind": "javascript-module",
746
- "path": "src/env/index.ts",
747
- "declarations": [],
748
- "exports": [
749
- {
750
- "kind": "js",
751
- "name": "*",
752
- "declaration": {
753
- "name": "*",
754
- "package": "./is-dev"
755
- }
756
- },
757
- {
758
- "kind": "js",
759
- "name": "*",
760
- "declaration": {
761
- "name": "*",
762
- "package": "./variables"
763
- }
764
- }
765
- ]
766
- },
767
- {
768
- "kind": "javascript-module",
769
- "path": "src/env/is-dev.ts",
770
- "declarations": [
771
- {
772
- "kind": "function",
773
- "name": "isDev",
774
- "description": "Determines if the current environment is a development environment.",
775
- "privacy": "public"
776
- }
777
- ],
778
- "exports": [
779
- {
780
- "kind": "js",
781
- "name": "isDev",
782
- "declaration": {
783
- "name": "isDev",
784
- "module": "src/env/is-dev.ts"
785
- }
786
- }
787
- ]
788
- },
789
- {
790
- "kind": "javascript-module",
791
- "path": "src/env/variables.ts",
792
- "declarations": [
793
- {
794
- "kind": "variable",
795
- "name": "BUILDER",
796
- "type": {
797
- "text": "string"
798
- }
799
- },
800
- {
801
- "kind": "variable",
802
- "name": "_BUILDER",
803
- "type": {
804
- "text": "string"
805
- },
806
- "default": "'webpack'",
807
- "description": "The builder aka file bundler.",
808
- "privacy": "public"
809
- },
810
- {
811
- "kind": "variable",
812
- "name": "PUBLIC_PATH",
813
- "type": {
814
- "text": "string"
509
+ "kind": "variable",
510
+ "name": "_BUILDER",
511
+ "type": {
512
+ "text": "string"
513
+ },
514
+ "default": "'webpack'",
515
+ "description": "The builder aka file bundler.",
516
+ "privacy": "public"
517
+ },
518
+ {
519
+ "kind": "variable",
520
+ "name": "PUBLIC_PATH",
521
+ "type": {
522
+ "text": "string"
815
523
  }
816
524
  },
817
525
  {
@@ -1240,6 +948,298 @@
1240
948
  }
1241
949
  ]
1242
950
  },
951
+ {
952
+ "kind": "javascript-module",
953
+ "path": "src/converters/index.ts",
954
+ "declarations": [],
955
+ "exports": [
956
+ {
957
+ "kind": "js",
958
+ "name": "*",
959
+ "declaration": {
960
+ "name": "*",
961
+ "package": "./string-array-converter"
962
+ }
963
+ }
964
+ ]
965
+ },
966
+ {
967
+ "kind": "javascript-module",
968
+ "path": "src/converters/string-array-converter.ts",
969
+ "declarations": [
970
+ {
971
+ "kind": "variable",
972
+ "name": "stringArrayConverter",
973
+ "type": {
974
+ "text": "ValueConverter"
975
+ },
976
+ "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
977
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
978
+ "privacy": "public"
979
+ }
980
+ ],
981
+ "exports": [
982
+ {
983
+ "kind": "js",
984
+ "name": "stringArrayConverter",
985
+ "declaration": {
986
+ "name": "stringArrayConverter",
987
+ "module": "src/converters/string-array-converter.ts"
988
+ }
989
+ }
990
+ ]
991
+ },
992
+ {
993
+ "kind": "javascript-module",
994
+ "path": "src/data/inMemoryDatabase.ts",
995
+ "declarations": [
996
+ {
997
+ "kind": "class",
998
+ "description": "An in memory database of specific DatabaseRecord types.",
999
+ "name": "InMemoryDatabase",
1000
+ "members": [
1001
+ {
1002
+ "kind": "field",
1003
+ "name": "isWorking",
1004
+ "type": {
1005
+ "text": "boolean"
1006
+ },
1007
+ "privacy": "public",
1008
+ "default": "false"
1009
+ },
1010
+ {
1011
+ "kind": "field",
1012
+ "name": "records",
1013
+ "type": {
1014
+ "text": "Record<string, T>"
1015
+ },
1016
+ "privacy": "private",
1017
+ "default": "{}"
1018
+ },
1019
+ {
1020
+ "kind": "field",
1021
+ "name": "beforeUpdateListeners",
1022
+ "privacy": "private"
1023
+ },
1024
+ {
1025
+ "kind": "field",
1026
+ "name": "afterUpdateListeners",
1027
+ "privacy": "private"
1028
+ },
1029
+ {
1030
+ "kind": "method",
1031
+ "name": "create",
1032
+ "privacy": "public",
1033
+ "return": {
1034
+ "type": {
1035
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1036
+ }
1037
+ },
1038
+ "parameters": [
1039
+ {
1040
+ "name": "newValue",
1041
+ "type": {
1042
+ "text": "Omit<T, 'id'>"
1043
+ }
1044
+ }
1045
+ ]
1046
+ },
1047
+ {
1048
+ "kind": "method",
1049
+ "name": "read",
1050
+ "privacy": "public",
1051
+ "return": {
1052
+ "type": {
1053
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1054
+ }
1055
+ },
1056
+ "parameters": [
1057
+ {
1058
+ "name": "id",
1059
+ "type": {
1060
+ "text": "string"
1061
+ }
1062
+ }
1063
+ ]
1064
+ },
1065
+ {
1066
+ "kind": "method",
1067
+ "name": "update",
1068
+ "privacy": "public",
1069
+ "return": {
1070
+ "type": {
1071
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1072
+ }
1073
+ },
1074
+ "parameters": [
1075
+ {
1076
+ "name": "id",
1077
+ "type": {
1078
+ "text": "string"
1079
+ }
1080
+ },
1081
+ {
1082
+ "name": "newValue",
1083
+ "type": {
1084
+ "text": "Omit<Partial<T>, 'id'>"
1085
+ }
1086
+ }
1087
+ ]
1088
+ },
1089
+ {
1090
+ "kind": "method",
1091
+ "name": "delete",
1092
+ "privacy": "public",
1093
+ "return": {
1094
+ "type": {
1095
+ "text": "Promise<DatabaseAccessResult.Delete>"
1096
+ }
1097
+ },
1098
+ "parameters": [
1099
+ {
1100
+ "name": "id",
1101
+ "type": {
1102
+ "text": "string"
1103
+ }
1104
+ }
1105
+ ]
1106
+ },
1107
+ {
1108
+ "kind": "method",
1109
+ "name": "visit",
1110
+ "privacy": "public",
1111
+ "return": {
1112
+ "type": {
1113
+ "text": "Promise<void>"
1114
+ }
1115
+ },
1116
+ "parameters": [
1117
+ {
1118
+ "name": "visitor",
1119
+ "type": {
1120
+ "text": "(record: T) => void"
1121
+ }
1122
+ }
1123
+ ]
1124
+ },
1125
+ {
1126
+ "kind": "method",
1127
+ "name": "onBeforeUpdate",
1128
+ "privacy": "public",
1129
+ "return": {
1130
+ "type": {
1131
+ "text": "() => void"
1132
+ }
1133
+ },
1134
+ "parameters": [
1135
+ {
1136
+ "name": "listener",
1137
+ "type": {
1138
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1139
+ }
1140
+ }
1141
+ ]
1142
+ },
1143
+ {
1144
+ "kind": "method",
1145
+ "name": "onAfterUpdate",
1146
+ "privacy": "public",
1147
+ "return": {
1148
+ "type": {
1149
+ "text": "() => void"
1150
+ }
1151
+ },
1152
+ "parameters": [
1153
+ {
1154
+ "name": "listener",
1155
+ "type": {
1156
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1157
+ }
1158
+ }
1159
+ ]
1160
+ }
1161
+ ]
1162
+ }
1163
+ ],
1164
+ "exports": [
1165
+ {
1166
+ "kind": "js",
1167
+ "name": "InMemoryDatabase",
1168
+ "declaration": {
1169
+ "name": "InMemoryDatabase",
1170
+ "module": "src/data/inMemoryDatabase.ts"
1171
+ }
1172
+ }
1173
+ ]
1174
+ },
1175
+ {
1176
+ "kind": "javascript-module",
1177
+ "path": "src/data/index.ts",
1178
+ "declarations": [],
1179
+ "exports": [
1180
+ {
1181
+ "kind": "js",
1182
+ "name": "*",
1183
+ "declaration": {
1184
+ "name": "*",
1185
+ "package": "./inMemoryDatabase"
1186
+ }
1187
+ }
1188
+ ]
1189
+ },
1190
+ {
1191
+ "kind": "javascript-module",
1192
+ "path": "src/decorators/index.ts",
1193
+ "declarations": [],
1194
+ "exports": [
1195
+ {
1196
+ "kind": "js",
1197
+ "name": "*",
1198
+ "declaration": {
1199
+ "name": "*",
1200
+ "package": "./renderOnChange"
1201
+ }
1202
+ }
1203
+ ]
1204
+ },
1205
+ {
1206
+ "kind": "javascript-module",
1207
+ "path": "src/decorators/renderOnChange.ts",
1208
+ "declarations": [
1209
+ {
1210
+ "kind": "function",
1211
+ "name": "renderOnChange",
1212
+ "parameters": [
1213
+ {
1214
+ "name": "target",
1215
+ "type": {
1216
+ "text": "FASTElement & { render(): void }"
1217
+ },
1218
+ "description": "The target to define the property change handler on."
1219
+ },
1220
+ {
1221
+ "name": "name",
1222
+ "type": {
1223
+ "text": "string"
1224
+ },
1225
+ "description": "The property name."
1226
+ }
1227
+ ],
1228
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1229
+ "privacy": "public"
1230
+ }
1231
+ ],
1232
+ "exports": [
1233
+ {
1234
+ "kind": "js",
1235
+ "name": "renderOnChange",
1236
+ "declaration": {
1237
+ "name": "renderOnChange",
1238
+ "module": "src/decorators/renderOnChange.ts"
1239
+ }
1240
+ }
1241
+ ]
1242
+ },
1243
1243
  {
1244
1244
  "kind": "javascript-module",
1245
1245
  "path": "src/error/errorMap.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": "15.5.0",
4
+ "version": "15.6.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.5.0",
33
- "@genesislcap/genx": "15.5.0",
34
- "@genesislcap/rollup-builder": "15.5.0",
35
- "@genesislcap/ts-builder": "15.5.0",
36
- "@genesislcap/uvu-playwright-builder": "15.5.0",
37
- "@genesislcap/vite-builder": "15.5.0",
38
- "@genesislcap/webpack-builder": "15.5.0",
32
+ "@genesislcap/foundation-testing": "15.6.0",
33
+ "@genesislcap/genx": "15.6.0",
34
+ "@genesislcap/rollup-builder": "15.6.0",
35
+ "@genesislcap/ts-builder": "15.6.0",
36
+ "@genesislcap/uvu-playwright-builder": "15.6.0",
37
+ "@genesislcap/vite-builder": "15.6.0",
38
+ "@genesislcap/webpack-builder": "15.6.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.5.0",
43
- "@genesislcap/foundation-logger": "15.5.0",
42
+ "@genesislcap/expression-builder": "15.6.0",
43
+ "@genesislcap/foundation-logger": "15.6.0",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -70,5 +70,5 @@
70
70
  },
71
71
  "./package.json": "./package.json"
72
72
  },
73
- "gitHead": "be7121280e828345e79cca6a084b1025536813f2"
73
+ "gitHead": "dbf070bac8a4bfc2a178e335b1faffb130e8f761"
74
74
  }