@genesislcap/foundation-utils 14.418.1-alpha-7cce044.0 → 14.418.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +530 -530
  2. package/package.json +11 -11
@@ -211,7 +211,7 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/converters/index.ts",
214
+ "path": "src/decorators/index.ts",
215
215
  "declarations": [],
216
216
  "exports": [
217
217
  {
@@ -219,40 +219,52 @@
219
219
  "name": "*",
220
220
  "declaration": {
221
221
  "name": "*",
222
- "package": "./string-array-converter"
222
+ "package": "./renderOnChange"
223
223
  }
224
224
  }
225
225
  ]
226
226
  },
227
227
  {
228
228
  "kind": "javascript-module",
229
- "path": "src/converters/string-array-converter.ts",
229
+ "path": "src/decorators/renderOnChange.ts",
230
230
  "declarations": [
231
231
  {
232
- "kind": "variable",
233
- "name": "stringArrayConverter",
234
- "type": {
235
- "text": "ValueConverter"
236
- },
237
- "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}",
238
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
232
+ "kind": "function",
233
+ "name": "renderOnChange",
234
+ "parameters": [
235
+ {
236
+ "name": "target",
237
+ "type": {
238
+ "text": "FASTElement & { render(): void }"
239
+ },
240
+ "description": "The target to define the property change handler on."
241
+ },
242
+ {
243
+ "name": "name",
244
+ "type": {
245
+ "text": "string"
246
+ },
247
+ "description": "The property name."
248
+ }
249
+ ],
250
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
239
251
  "privacy": "public"
240
252
  }
241
253
  ],
242
254
  "exports": [
243
255
  {
244
256
  "kind": "js",
245
- "name": "stringArrayConverter",
257
+ "name": "renderOnChange",
246
258
  "declaration": {
247
- "name": "stringArrayConverter",
248
- "module": "src/converters/string-array-converter.ts"
259
+ "name": "renderOnChange",
260
+ "module": "src/decorators/renderOnChange.ts"
249
261
  }
250
262
  }
251
263
  ]
252
264
  },
253
265
  {
254
266
  "kind": "javascript-module",
255
- "path": "src/directives/index.ts",
267
+ "path": "src/converters/index.ts",
256
268
  "declarations": [],
257
269
  "exports": [
258
270
  {
@@ -260,15 +272,33 @@
260
272
  "name": "*",
261
273
  "declaration": {
262
274
  "name": "*",
263
- "package": "./sync"
275
+ "package": "./string-array-converter"
264
276
  }
265
- },
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "kind": "javascript-module",
282
+ "path": "src/converters/string-array-converter.ts",
283
+ "declarations": [
284
+ {
285
+ "kind": "variable",
286
+ "name": "stringArrayConverter",
287
+ "type": {
288
+ "text": "ValueConverter"
289
+ },
290
+ "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}",
291
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
292
+ "privacy": "public"
293
+ }
294
+ ],
295
+ "exports": [
266
296
  {
267
297
  "kind": "js",
268
- "name": "*",
298
+ "name": "stringArrayConverter",
269
299
  "declaration": {
270
- "name": "*",
271
- "package": "./when-else"
300
+ "name": "stringArrayConverter",
301
+ "module": "src/converters/string-array-converter.ts"
272
302
  }
273
303
  }
274
304
  ]
@@ -410,7 +440,7 @@
410
440
  },
411
441
  {
412
442
  "kind": "javascript-module",
413
- "path": "src/env/index.ts",
443
+ "path": "src/directives/index.ts",
414
444
  "declarations": [],
415
445
  "exports": [
416
446
  {
@@ -418,7 +448,7 @@
418
448
  "name": "*",
419
449
  "declaration": {
420
450
  "name": "*",
421
- "package": "./is-dev"
451
+ "package": "./sync"
422
452
  }
423
453
  },
424
454
  {
@@ -426,37 +456,258 @@
426
456
  "name": "*",
427
457
  "declaration": {
428
458
  "name": "*",
429
- "package": "./variables"
459
+ "package": "./when-else"
430
460
  }
431
461
  }
432
462
  ]
433
463
  },
434
464
  {
435
465
  "kind": "javascript-module",
436
- "path": "src/env/is-dev.ts",
466
+ "path": "src/data/inMemoryDatabase.ts",
437
467
  "declarations": [
438
468
  {
439
- "kind": "function",
440
- "name": "isDev",
441
- "description": "Determines if the current environment is a development environment.",
442
- "privacy": "public"
469
+ "kind": "class",
470
+ "description": "An in memory database of specific DatabaseRecord types.",
471
+ "name": "InMemoryDatabase",
472
+ "members": [
473
+ {
474
+ "kind": "field",
475
+ "name": "isWorking",
476
+ "type": {
477
+ "text": "boolean"
478
+ },
479
+ "privacy": "public",
480
+ "default": "false"
481
+ },
482
+ {
483
+ "kind": "field",
484
+ "name": "records",
485
+ "type": {
486
+ "text": "Record<string, T>"
487
+ },
488
+ "privacy": "private",
489
+ "default": "{}"
490
+ },
491
+ {
492
+ "kind": "field",
493
+ "name": "beforeUpdateListeners",
494
+ "privacy": "private"
495
+ },
496
+ {
497
+ "kind": "field",
498
+ "name": "afterUpdateListeners",
499
+ "privacy": "private"
500
+ },
501
+ {
502
+ "kind": "method",
503
+ "name": "create",
504
+ "privacy": "public",
505
+ "return": {
506
+ "type": {
507
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
508
+ }
509
+ },
510
+ "parameters": [
511
+ {
512
+ "name": "newValue",
513
+ "type": {
514
+ "text": "Omit<T, 'id'>"
515
+ }
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "kind": "method",
521
+ "name": "read",
522
+ "privacy": "public",
523
+ "return": {
524
+ "type": {
525
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
526
+ }
527
+ },
528
+ "parameters": [
529
+ {
530
+ "name": "id",
531
+ "type": {
532
+ "text": "string"
533
+ }
534
+ }
535
+ ]
536
+ },
537
+ {
538
+ "kind": "method",
539
+ "name": "update",
540
+ "privacy": "public",
541
+ "return": {
542
+ "type": {
543
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
544
+ }
545
+ },
546
+ "parameters": [
547
+ {
548
+ "name": "id",
549
+ "type": {
550
+ "text": "string"
551
+ }
552
+ },
553
+ {
554
+ "name": "newValue",
555
+ "type": {
556
+ "text": "Omit<Partial<T>, 'id'>"
557
+ }
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "kind": "method",
563
+ "name": "delete",
564
+ "privacy": "public",
565
+ "return": {
566
+ "type": {
567
+ "text": "Promise<DatabaseAccessResult.Delete>"
568
+ }
569
+ },
570
+ "parameters": [
571
+ {
572
+ "name": "id",
573
+ "type": {
574
+ "text": "string"
575
+ }
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "kind": "method",
581
+ "name": "visit",
582
+ "privacy": "public",
583
+ "return": {
584
+ "type": {
585
+ "text": "Promise<void>"
586
+ }
587
+ },
588
+ "parameters": [
589
+ {
590
+ "name": "visitor",
591
+ "type": {
592
+ "text": "(record: T) => void"
593
+ }
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "kind": "method",
599
+ "name": "onBeforeUpdate",
600
+ "privacy": "public",
601
+ "return": {
602
+ "type": {
603
+ "text": "() => void"
604
+ }
605
+ },
606
+ "parameters": [
607
+ {
608
+ "name": "listener",
609
+ "type": {
610
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
611
+ }
612
+ }
613
+ ]
614
+ },
615
+ {
616
+ "kind": "method",
617
+ "name": "onAfterUpdate",
618
+ "privacy": "public",
619
+ "return": {
620
+ "type": {
621
+ "text": "() => void"
622
+ }
623
+ },
624
+ "parameters": [
625
+ {
626
+ "name": "listener",
627
+ "type": {
628
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
629
+ }
630
+ }
631
+ ]
632
+ }
633
+ ]
443
634
  }
444
635
  ],
445
636
  "exports": [
446
637
  {
447
638
  "kind": "js",
448
- "name": "isDev",
639
+ "name": "InMemoryDatabase",
449
640
  "declaration": {
450
- "name": "isDev",
451
- "module": "src/env/is-dev.ts"
641
+ "name": "InMemoryDatabase",
642
+ "module": "src/data/inMemoryDatabase.ts"
452
643
  }
453
644
  }
454
645
  ]
455
646
  },
456
647
  {
457
648
  "kind": "javascript-module",
458
- "path": "src/env/variables.ts",
459
- "declarations": [
649
+ "path": "src/data/index.ts",
650
+ "declarations": [],
651
+ "exports": [
652
+ {
653
+ "kind": "js",
654
+ "name": "*",
655
+ "declaration": {
656
+ "name": "*",
657
+ "package": "./inMemoryDatabase"
658
+ }
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "kind": "javascript-module",
664
+ "path": "src/env/index.ts",
665
+ "declarations": [],
666
+ "exports": [
667
+ {
668
+ "kind": "js",
669
+ "name": "*",
670
+ "declaration": {
671
+ "name": "*",
672
+ "package": "./is-dev"
673
+ }
674
+ },
675
+ {
676
+ "kind": "js",
677
+ "name": "*",
678
+ "declaration": {
679
+ "name": "*",
680
+ "package": "./variables"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "kind": "javascript-module",
687
+ "path": "src/env/is-dev.ts",
688
+ "declarations": [
689
+ {
690
+ "kind": "function",
691
+ "name": "isDev",
692
+ "description": "Determines if the current environment is a development environment.",
693
+ "privacy": "public"
694
+ }
695
+ ],
696
+ "exports": [
697
+ {
698
+ "kind": "js",
699
+ "name": "isDev",
700
+ "declaration": {
701
+ "name": "isDev",
702
+ "module": "src/env/is-dev.ts"
703
+ }
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "kind": "javascript-module",
709
+ "path": "src/env/variables.ts",
710
+ "declarations": [
460
711
  {
461
712
  "kind": "variable",
462
713
  "name": "BUILDER",
@@ -885,427 +1136,176 @@
885
1136
  },
886
1137
  {
887
1138
  "kind": "javascript-module",
888
- "path": "src/data/inMemoryDatabase.ts",
1139
+ "path": "src/error/errorMap.ts",
889
1140
  "declarations": [
890
1141
  {
891
1142
  "kind": "class",
892
- "description": "An in memory database of specific DatabaseRecord types.",
893
- "name": "InMemoryDatabase",
1143
+ "description": "",
1144
+ "name": "DefaultErrorMap",
894
1145
  "members": [
895
1146
  {
896
1147
  "kind": "field",
897
- "name": "isWorking",
898
- "type": {
899
- "text": "boolean"
900
- },
901
- "privacy": "public",
902
- "default": "false"
1148
+ "name": "map",
1149
+ "privacy": "private",
1150
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
903
1151
  },
904
1152
  {
905
1153
  "kind": "field",
906
- "name": "records",
1154
+ "name": "lastError",
907
1155
  "type": {
908
- "text": "Record<string, T>"
1156
+ "text": "Error"
909
1157
  },
910
- "privacy": "private",
911
- "default": "{}"
912
- },
913
- {
914
- "kind": "field",
915
- "name": "beforeUpdateListeners",
916
- "privacy": "private"
917
- },
918
- {
919
- "kind": "field",
920
- "name": "afterUpdateListeners",
921
- "privacy": "private"
1158
+ "description": "{@inheritDoc ErrorMap.lastError}"
922
1159
  },
923
1160
  {
924
1161
  "kind": "method",
925
- "name": "create",
926
- "privacy": "public",
1162
+ "name": "set",
927
1163
  "return": {
928
1164
  "type": {
929
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1165
+ "text": "void"
930
1166
  }
931
1167
  },
932
1168
  "parameters": [
933
1169
  {
934
- "name": "newValue",
1170
+ "name": "key",
935
1171
  "type": {
936
- "text": "Omit<T, 'id'>"
1172
+ "text": "keyof TErrorDetailMap"
937
1173
  }
938
- }
939
- ]
940
- },
941
- {
942
- "kind": "method",
943
- "name": "read",
944
- "privacy": "public",
945
- "return": {
946
- "type": {
947
- "text": "Promise<DatabaseAccessResult.Read<T>>"
948
- }
949
- },
950
- "parameters": [
1174
+ },
951
1175
  {
952
- "name": "id",
1176
+ "name": "error",
953
1177
  "type": {
954
- "text": "string"
1178
+ "text": "Error"
955
1179
  }
956
1180
  }
957
- ]
1181
+ ],
1182
+ "description": "{@inheritDoc ErrorMap.set}"
958
1183
  },
959
1184
  {
960
1185
  "kind": "method",
961
- "name": "update",
962
- "privacy": "public",
1186
+ "name": "get",
963
1187
  "return": {
964
1188
  "type": {
965
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1189
+ "text": ""
966
1190
  }
967
1191
  },
968
1192
  "parameters": [
969
1193
  {
970
- "name": "id",
971
- "type": {
972
- "text": "string"
973
- }
974
- },
975
- {
976
- "name": "newValue",
1194
+ "name": "key",
977
1195
  "type": {
978
- "text": "Omit<Partial<T>, 'id'>"
979
- }
1196
+ "text": "keyof TErrorDetailMap"
1197
+ },
1198
+ "description": "The key."
980
1199
  }
981
- ]
1200
+ ],
1201
+ "description": "Get an error by key.",
1202
+ "privacy": "public"
982
1203
  },
983
1204
  {
984
1205
  "kind": "method",
985
- "name": "delete",
986
- "privacy": "public",
1206
+ "name": "has",
987
1207
  "return": {
988
1208
  "type": {
989
- "text": "Promise<DatabaseAccessResult.Delete>"
1209
+ "text": ""
990
1210
  }
991
1211
  },
992
1212
  "parameters": [
993
1213
  {
994
- "name": "id",
1214
+ "name": "key",
995
1215
  "type": {
996
- "text": "string"
997
- }
1216
+ "text": "keyof TErrorDetailMap"
1217
+ },
1218
+ "description": "The key."
998
1219
  }
999
- ]
1220
+ ],
1221
+ "description": "Has an error for key.",
1222
+ "privacy": "public"
1000
1223
  },
1001
1224
  {
1002
1225
  "kind": "method",
1003
- "name": "visit",
1004
- "privacy": "public",
1226
+ "name": "delete",
1005
1227
  "return": {
1006
1228
  "type": {
1007
- "text": "Promise<void>"
1229
+ "text": ""
1008
1230
  }
1009
1231
  },
1010
1232
  "parameters": [
1011
1233
  {
1012
- "name": "visitor",
1234
+ "name": "key",
1013
1235
  "type": {
1014
- "text": "(record: T) => void"
1015
- }
1236
+ "text": "keyof TErrorDetailMap"
1237
+ },
1238
+ "description": "The key."
1016
1239
  }
1017
- ]
1240
+ ],
1241
+ "description": "Delete an error.",
1242
+ "privacy": "public"
1018
1243
  },
1019
1244
  {
1020
1245
  "kind": "method",
1021
- "name": "onBeforeUpdate",
1022
- "privacy": "public",
1246
+ "name": "clear",
1247
+ "description": "Clear errors.",
1248
+ "privacy": "public"
1249
+ },
1250
+ {
1251
+ "kind": "field",
1252
+ "name": "size",
1253
+ "type": {
1254
+ "text": "number"
1255
+ },
1256
+ "description": "The size of the error map.",
1023
1257
  "return": {
1024
1258
  "type": {
1025
- "text": "() => void"
1259
+ "text": ""
1026
1260
  }
1027
1261
  },
1028
- "parameters": [
1029
- {
1030
- "name": "listener",
1031
- "type": {
1032
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1033
- }
1034
- }
1035
- ]
1262
+ "privacy": "public",
1263
+ "readonly": true
1036
1264
  },
1037
1265
  {
1038
1266
  "kind": "method",
1039
- "name": "onAfterUpdate",
1040
- "privacy": "public",
1041
- "return": {
1042
- "type": {
1043
- "text": "() => void"
1044
- }
1267
+ "name": "values",
1268
+ "privacy": "public"
1269
+ },
1270
+ {
1271
+ "kind": "field",
1272
+ "name": "messages",
1273
+ "type": {
1274
+ "text": "string"
1045
1275
  },
1046
- "parameters": [
1047
- {
1048
- "name": "listener",
1049
- "type": {
1050
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1051
- }
1052
- }
1053
- ]
1276
+ "description": "{@inheritDoc ErrorMap.messages}",
1277
+ "readonly": true
1054
1278
  }
1055
1279
  ]
1280
+ },
1281
+ {
1282
+ "kind": "function",
1283
+ "name": "createErrorMap",
1284
+ "return": {
1285
+ "type": {
1286
+ "text": ""
1287
+ }
1288
+ },
1289
+ "parameters": [
1290
+ {
1291
+ "name": "logger",
1292
+ "type": {
1293
+ "text": "ErrorMapLogger"
1294
+ },
1295
+ "description": "A logger error method reference."
1296
+ }
1297
+ ],
1298
+ "description": "A factory to create the error map.",
1299
+ "privacy": "public"
1056
1300
  }
1057
1301
  ],
1058
1302
  "exports": [
1059
1303
  {
1060
1304
  "kind": "js",
1061
- "name": "InMemoryDatabase",
1305
+ "name": "DefaultErrorMap",
1062
1306
  "declaration": {
1063
- "name": "InMemoryDatabase",
1064
- "module": "src/data/inMemoryDatabase.ts"
1065
- }
1066
- }
1067
- ]
1068
- },
1069
- {
1070
- "kind": "javascript-module",
1071
- "path": "src/data/index.ts",
1072
- "declarations": [],
1073
- "exports": [
1074
- {
1075
- "kind": "js",
1076
- "name": "*",
1077
- "declaration": {
1078
- "name": "*",
1079
- "package": "./inMemoryDatabase"
1080
- }
1081
- }
1082
- ]
1083
- },
1084
- {
1085
- "kind": "javascript-module",
1086
- "path": "src/decorators/index.ts",
1087
- "declarations": [],
1088
- "exports": [
1089
- {
1090
- "kind": "js",
1091
- "name": "*",
1092
- "declaration": {
1093
- "name": "*",
1094
- "package": "./renderOnChange"
1095
- }
1096
- }
1097
- ]
1098
- },
1099
- {
1100
- "kind": "javascript-module",
1101
- "path": "src/decorators/renderOnChange.ts",
1102
- "declarations": [
1103
- {
1104
- "kind": "function",
1105
- "name": "renderOnChange",
1106
- "parameters": [
1107
- {
1108
- "name": "target",
1109
- "type": {
1110
- "text": "FASTElement & { render(): void }"
1111
- },
1112
- "description": "The target to define the property change handler on."
1113
- },
1114
- {
1115
- "name": "name",
1116
- "type": {
1117
- "text": "string"
1118
- },
1119
- "description": "The property name."
1120
- }
1121
- ],
1122
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1123
- "privacy": "public"
1124
- }
1125
- ],
1126
- "exports": [
1127
- {
1128
- "kind": "js",
1129
- "name": "renderOnChange",
1130
- "declaration": {
1131
- "name": "renderOnChange",
1132
- "module": "src/decorators/renderOnChange.ts"
1133
- }
1134
- }
1135
- ]
1136
- },
1137
- {
1138
- "kind": "javascript-module",
1139
- "path": "src/error/errorMap.ts",
1140
- "declarations": [
1141
- {
1142
- "kind": "class",
1143
- "description": "",
1144
- "name": "DefaultErrorMap",
1145
- "members": [
1146
- {
1147
- "kind": "field",
1148
- "name": "map",
1149
- "privacy": "private",
1150
- "default": "new Map<keyof TErrorDetailMap, Error>()"
1151
- },
1152
- {
1153
- "kind": "field",
1154
- "name": "lastError",
1155
- "type": {
1156
- "text": "Error"
1157
- },
1158
- "description": "{@inheritDoc ErrorMap.lastError}"
1159
- },
1160
- {
1161
- "kind": "method",
1162
- "name": "set",
1163
- "return": {
1164
- "type": {
1165
- "text": "void"
1166
- }
1167
- },
1168
- "parameters": [
1169
- {
1170
- "name": "key",
1171
- "type": {
1172
- "text": "keyof TErrorDetailMap"
1173
- }
1174
- },
1175
- {
1176
- "name": "error",
1177
- "type": {
1178
- "text": "Error"
1179
- }
1180
- }
1181
- ],
1182
- "description": "{@inheritDoc ErrorMap.set}"
1183
- },
1184
- {
1185
- "kind": "method",
1186
- "name": "get",
1187
- "return": {
1188
- "type": {
1189
- "text": ""
1190
- }
1191
- },
1192
- "parameters": [
1193
- {
1194
- "name": "key",
1195
- "type": {
1196
- "text": "keyof TErrorDetailMap"
1197
- },
1198
- "description": "The key."
1199
- }
1200
- ],
1201
- "description": "Get an error by key.",
1202
- "privacy": "public"
1203
- },
1204
- {
1205
- "kind": "method",
1206
- "name": "has",
1207
- "return": {
1208
- "type": {
1209
- "text": ""
1210
- }
1211
- },
1212
- "parameters": [
1213
- {
1214
- "name": "key",
1215
- "type": {
1216
- "text": "keyof TErrorDetailMap"
1217
- },
1218
- "description": "The key."
1219
- }
1220
- ],
1221
- "description": "Has an error for key.",
1222
- "privacy": "public"
1223
- },
1224
- {
1225
- "kind": "method",
1226
- "name": "delete",
1227
- "return": {
1228
- "type": {
1229
- "text": ""
1230
- }
1231
- },
1232
- "parameters": [
1233
- {
1234
- "name": "key",
1235
- "type": {
1236
- "text": "keyof TErrorDetailMap"
1237
- },
1238
- "description": "The key."
1239
- }
1240
- ],
1241
- "description": "Delete an error.",
1242
- "privacy": "public"
1243
- },
1244
- {
1245
- "kind": "method",
1246
- "name": "clear",
1247
- "description": "Clear errors.",
1248
- "privacy": "public"
1249
- },
1250
- {
1251
- "kind": "field",
1252
- "name": "size",
1253
- "type": {
1254
- "text": "number"
1255
- },
1256
- "description": "The size of the error map.",
1257
- "return": {
1258
- "type": {
1259
- "text": ""
1260
- }
1261
- },
1262
- "privacy": "public",
1263
- "readonly": true
1264
- },
1265
- {
1266
- "kind": "method",
1267
- "name": "values",
1268
- "privacy": "public"
1269
- },
1270
- {
1271
- "kind": "field",
1272
- "name": "messages",
1273
- "type": {
1274
- "text": "string"
1275
- },
1276
- "description": "{@inheritDoc ErrorMap.messages}",
1277
- "readonly": true
1278
- }
1279
- ]
1280
- },
1281
- {
1282
- "kind": "function",
1283
- "name": "createErrorMap",
1284
- "return": {
1285
- "type": {
1286
- "text": ""
1287
- }
1288
- },
1289
- "parameters": [
1290
- {
1291
- "name": "logger",
1292
- "type": {
1293
- "text": "ErrorMapLogger"
1294
- },
1295
- "description": "A logger error method reference."
1296
- }
1297
- ],
1298
- "description": "A factory to create the error map.",
1299
- "privacy": "public"
1300
- }
1301
- ],
1302
- "exports": [
1303
- {
1304
- "kind": "js",
1305
- "name": "DefaultErrorMap",
1306
- "declaration": {
1307
- "name": "DefaultErrorMap",
1308
- "module": "src/error/errorMap.ts"
1307
+ "name": "DefaultErrorMap",
1308
+ "module": "src/error/errorMap.ts"
1309
1309
  }
1310
1310
  },
1311
1311
  {
@@ -4310,161 +4310,7 @@
4310
4310
  },
4311
4311
  {
4312
4312
  "kind": "javascript-module",
4313
- "path": "src/directives/sync/index.ts",
4314
- "declarations": [],
4315
- "exports": [
4316
- {
4317
- "kind": "js",
4318
- "name": "*",
4319
- "declaration": {
4320
- "name": "*",
4321
- "package": "./sync"
4322
- }
4323
- }
4324
- ]
4325
- },
4326
- {
4327
- "kind": "javascript-module",
4328
- "path": "src/directives/sync/sync.ts",
4329
- "declarations": [
4330
- {
4331
- "kind": "variable",
4332
- "name": "defaultEventMap",
4333
- "type": {
4334
- "text": "Map<string, EventName>"
4335
- },
4336
- "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
4337
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
4338
- "privacy": "public"
4339
- },
4340
- {
4341
- "kind": "function",
4342
- "name": "sync",
4343
- "return": {
4344
- "type": {
4345
- "text": "CaptureType<TSource>"
4346
- }
4347
- },
4348
- "parameters": [
4349
- {
4350
- "name": "binding",
4351
- "type": {
4352
- "text": "Binding<TSource, TReturn>"
4353
- }
4354
- },
4355
- {
4356
- "name": "conversionType",
4357
- "default": "'string'",
4358
- "type": {
4359
- "text": "ConversionType"
4360
- }
4361
- },
4362
- {
4363
- "name": "eventName",
4364
- "default": "'default'",
4365
- "type": {
4366
- "text": "EventName"
4367
- }
4368
- },
4369
- {
4370
- "name": "keyAttr",
4371
- "optional": true,
4372
- "type": {
4373
- "text": "string"
4374
- }
4375
- }
4376
- ],
4377
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
4378
- "privacy": "public"
4379
- }
4380
- ],
4381
- "exports": [
4382
- {
4383
- "kind": "js",
4384
- "name": "defaultEventMap",
4385
- "declaration": {
4386
- "name": "defaultEventMap",
4387
- "module": "src/directives/sync/sync.ts"
4388
- }
4389
- },
4390
- {
4391
- "kind": "js",
4392
- "name": "sync",
4393
- "declaration": {
4394
- "name": "sync",
4395
- "module": "src/directives/sync/sync.ts"
4396
- }
4397
- }
4398
- ]
4399
- },
4400
- {
4401
- "kind": "javascript-module",
4402
- "path": "src/directives/when-else/index.ts",
4403
- "declarations": [],
4404
- "exports": [
4405
- {
4406
- "kind": "js",
4407
- "name": "*",
4408
- "declaration": {
4409
- "name": "*",
4410
- "package": "./when-else"
4411
- }
4412
- }
4413
- ]
4414
- },
4415
- {
4416
- "kind": "javascript-module",
4417
- "path": "src/directives/when-else/when-else.ts",
4418
- "declarations": [
4419
- {
4420
- "kind": "function",
4421
- "name": "whenElse",
4422
- "return": {
4423
- "type": {
4424
- "text": "CaptureType<TSource>"
4425
- }
4426
- },
4427
- "parameters": [
4428
- {
4429
- "name": "binding",
4430
- "type": {
4431
- "text": "Binding<TSource, TReturn>"
4432
- },
4433
- "description": "The condition to test for rendering."
4434
- },
4435
- {
4436
- "name": "trueTemplateOrTemplateBinding",
4437
- "type": {
4438
- "text": "WhenTemplate<TSource>"
4439
- },
4440
- "description": "The template or a binding that gets the template to render when the condition is true."
4441
- },
4442
- {
4443
- "name": "falseTemplateOrTemplateBinding",
4444
- "type": {
4445
- "text": "WhenTemplate<TSource>"
4446
- },
4447
- "description": "The template or a binding that gets the template to render when the condition is false."
4448
- }
4449
- ],
4450
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
4451
- "privacy": "public"
4452
- }
4453
- ],
4454
- "exports": [
4455
- {
4456
- "kind": "js",
4457
- "name": "whenElse",
4458
- "declaration": {
4459
- "name": "whenElse",
4460
- "module": "src/directives/when-else/when-else.ts"
4461
- }
4462
- }
4463
- ]
4464
- },
4465
- {
4466
- "kind": "javascript-module",
4467
- "path": "src/encoding/base64/decode.ts",
4313
+ "path": "src/encoding/base64/decode.ts",
4468
4314
  "declarations": [
4469
4315
  {
4470
4316
  "kind": "function",
@@ -4616,6 +4462,160 @@
4616
4462
  }
4617
4463
  ]
4618
4464
  },
4465
+ {
4466
+ "kind": "javascript-module",
4467
+ "path": "src/directives/sync/index.ts",
4468
+ "declarations": [],
4469
+ "exports": [
4470
+ {
4471
+ "kind": "js",
4472
+ "name": "*",
4473
+ "declaration": {
4474
+ "name": "*",
4475
+ "package": "./sync"
4476
+ }
4477
+ }
4478
+ ]
4479
+ },
4480
+ {
4481
+ "kind": "javascript-module",
4482
+ "path": "src/directives/sync/sync.ts",
4483
+ "declarations": [
4484
+ {
4485
+ "kind": "variable",
4486
+ "name": "defaultEventMap",
4487
+ "type": {
4488
+ "text": "Map<string, EventName>"
4489
+ },
4490
+ "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
4491
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
4492
+ "privacy": "public"
4493
+ },
4494
+ {
4495
+ "kind": "function",
4496
+ "name": "sync",
4497
+ "return": {
4498
+ "type": {
4499
+ "text": "CaptureType<TSource>"
4500
+ }
4501
+ },
4502
+ "parameters": [
4503
+ {
4504
+ "name": "binding",
4505
+ "type": {
4506
+ "text": "Binding<TSource, TReturn>"
4507
+ }
4508
+ },
4509
+ {
4510
+ "name": "conversionType",
4511
+ "default": "'string'",
4512
+ "type": {
4513
+ "text": "ConversionType"
4514
+ }
4515
+ },
4516
+ {
4517
+ "name": "eventName",
4518
+ "default": "'default'",
4519
+ "type": {
4520
+ "text": "EventName"
4521
+ }
4522
+ },
4523
+ {
4524
+ "name": "keyAttr",
4525
+ "optional": true,
4526
+ "type": {
4527
+ "text": "string"
4528
+ }
4529
+ }
4530
+ ],
4531
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
4532
+ "privacy": "public"
4533
+ }
4534
+ ],
4535
+ "exports": [
4536
+ {
4537
+ "kind": "js",
4538
+ "name": "defaultEventMap",
4539
+ "declaration": {
4540
+ "name": "defaultEventMap",
4541
+ "module": "src/directives/sync/sync.ts"
4542
+ }
4543
+ },
4544
+ {
4545
+ "kind": "js",
4546
+ "name": "sync",
4547
+ "declaration": {
4548
+ "name": "sync",
4549
+ "module": "src/directives/sync/sync.ts"
4550
+ }
4551
+ }
4552
+ ]
4553
+ },
4554
+ {
4555
+ "kind": "javascript-module",
4556
+ "path": "src/directives/when-else/index.ts",
4557
+ "declarations": [],
4558
+ "exports": [
4559
+ {
4560
+ "kind": "js",
4561
+ "name": "*",
4562
+ "declaration": {
4563
+ "name": "*",
4564
+ "package": "./when-else"
4565
+ }
4566
+ }
4567
+ ]
4568
+ },
4569
+ {
4570
+ "kind": "javascript-module",
4571
+ "path": "src/directives/when-else/when-else.ts",
4572
+ "declarations": [
4573
+ {
4574
+ "kind": "function",
4575
+ "name": "whenElse",
4576
+ "return": {
4577
+ "type": {
4578
+ "text": "CaptureType<TSource>"
4579
+ }
4580
+ },
4581
+ "parameters": [
4582
+ {
4583
+ "name": "binding",
4584
+ "type": {
4585
+ "text": "Binding<TSource, TReturn>"
4586
+ },
4587
+ "description": "The condition to test for rendering."
4588
+ },
4589
+ {
4590
+ "name": "trueTemplateOrTemplateBinding",
4591
+ "type": {
4592
+ "text": "WhenTemplate<TSource>"
4593
+ },
4594
+ "description": "The template or a binding that gets the template to render when the condition is true."
4595
+ },
4596
+ {
4597
+ "name": "falseTemplateOrTemplateBinding",
4598
+ "type": {
4599
+ "text": "WhenTemplate<TSource>"
4600
+ },
4601
+ "description": "The template or a binding that gets the template to render when the condition is false."
4602
+ }
4603
+ ],
4604
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
4605
+ "privacy": "public"
4606
+ }
4607
+ ],
4608
+ "exports": [
4609
+ {
4610
+ "kind": "js",
4611
+ "name": "whenElse",
4612
+ "declaration": {
4613
+ "name": "whenElse",
4614
+ "module": "src/directives/when-else/when-else.ts"
4615
+ }
4616
+ }
4617
+ ]
4618
+ },
4619
4619
  {
4620
4620
  "kind": "javascript-module",
4621
4621
  "path": "src/mappers/dto/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.418.1-alpha-7cce044.0",
4
+ "version": "14.418.1",
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": "14.418.1-alpha-7cce044.0",
33
- "@genesislcap/genx": "14.418.1-alpha-7cce044.0",
34
- "@genesislcap/rollup-builder": "14.418.1-alpha-7cce044.0",
35
- "@genesislcap/ts-builder": "14.418.1-alpha-7cce044.0",
36
- "@genesislcap/uvu-playwright-builder": "14.418.1-alpha-7cce044.0",
37
- "@genesislcap/vite-builder": "14.418.1-alpha-7cce044.0",
38
- "@genesislcap/webpack-builder": "14.418.1-alpha-7cce044.0",
32
+ "@genesislcap/foundation-testing": "14.418.1",
33
+ "@genesislcap/genx": "14.418.1",
34
+ "@genesislcap/rollup-builder": "14.418.1",
35
+ "@genesislcap/ts-builder": "14.418.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.418.1",
37
+ "@genesislcap/vite-builder": "14.418.1",
38
+ "@genesislcap/webpack-builder": "14.418.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.418.1-alpha-7cce044.0",
43
- "@genesislcap/foundation-logger": "14.418.1-alpha-7cce044.0",
42
+ "@genesislcap/expression-builder": "14.418.1",
43
+ "@genesislcap/foundation-logger": "14.418.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "15cb965879e5000edcfe7d8ae4214b8fc2d755f0"
61
+ "gitHead": "b1a23eb47a71171d6e390db3c775941ab52be315"
62
62
  }