@genesislcap/foundation-utils 14.200.0-FUI-2127.2 → 14.200.0-FUI-2127.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +379 -379
  2. package/package.json +10 -10
@@ -159,109 +159,6 @@
159
159
  }
160
160
  ]
161
161
  },
162
- {
163
- "kind": "javascript-module",
164
- "path": "src/design-system/design-system.ts",
165
- "declarations": [
166
- {
167
- "kind": "function",
168
- "name": "assureDesignSystem",
169
- "return": {
170
- "type": {
171
- "text": "DesignSystemModule"
172
- }
173
- },
174
- "parameters": [
175
- {
176
- "name": "module",
177
- "type": {
178
- "text": "DesignSystemModule"
179
- }
180
- }
181
- ],
182
- "description": "assureDesignSystem.",
183
- "privacy": "public"
184
- }
185
- ],
186
- "exports": [
187
- {
188
- "kind": "js",
189
- "name": "assureDesignSystem",
190
- "declaration": {
191
- "name": "assureDesignSystem",
192
- "module": "src/design-system/design-system.ts"
193
- }
194
- }
195
- ]
196
- },
197
- {
198
- "kind": "javascript-module",
199
- "path": "src/design-system/index.ts",
200
- "declarations": [],
201
- "exports": [
202
- {
203
- "kind": "js",
204
- "name": "*",
205
- "declaration": {
206
- "name": "*",
207
- "package": "./design-system"
208
- }
209
- }
210
- ]
211
- },
212
- {
213
- "kind": "javascript-module",
214
- "path": "src/decorators/index.ts",
215
- "declarations": [],
216
- "exports": [
217
- {
218
- "kind": "js",
219
- "name": "*",
220
- "declaration": {
221
- "name": "*",
222
- "package": "./renderOnChange"
223
- }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "javascript-module",
229
- "path": "src/decorators/renderOnChange.ts",
230
- "declarations": [
231
- {
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.",
251
- "privacy": "public"
252
- }
253
- ],
254
- "exports": [
255
- {
256
- "kind": "js",
257
- "name": "renderOnChange",
258
- "declaration": {
259
- "name": "renderOnChange",
260
- "module": "src/decorators/renderOnChange.ts"
261
- }
262
- }
263
- ]
264
- },
265
162
  {
266
163
  "kind": "javascript-module",
267
164
  "path": "src/directives/index.ts",
@@ -525,198 +422,53 @@
525
422
  },
526
423
  {
527
424
  "kind": "javascript-module",
528
- "path": "src/data/inMemoryDatabase.ts",
425
+ "path": "src/decorators/index.ts",
426
+ "declarations": [],
427
+ "exports": [
428
+ {
429
+ "kind": "js",
430
+ "name": "*",
431
+ "declaration": {
432
+ "name": "*",
433
+ "package": "./renderOnChange"
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "kind": "javascript-module",
440
+ "path": "src/decorators/renderOnChange.ts",
529
441
  "declarations": [
530
442
  {
531
- "kind": "class",
532
- "description": "An in memory database of specific DatabaseRecord types.",
533
- "name": "InMemoryDatabase",
534
- "members": [
443
+ "kind": "function",
444
+ "name": "renderOnChange",
445
+ "parameters": [
535
446
  {
536
- "kind": "field",
537
- "name": "isWorking",
447
+ "name": "target",
538
448
  "type": {
539
- "text": "boolean"
449
+ "text": "FASTElement & { render(): void }"
540
450
  },
541
- "privacy": "public",
542
- "default": "false"
451
+ "description": "The target to define the property change handler on."
543
452
  },
544
453
  {
545
- "kind": "field",
546
- "name": "records",
454
+ "name": "name",
547
455
  "type": {
548
- "text": "Record<string, T>"
549
- },
550
- "privacy": "private",
551
- "default": "{}"
552
- },
553
- {
554
- "kind": "field",
555
- "name": "beforeUpdateListeners",
556
- "privacy": "private"
557
- },
558
- {
559
- "kind": "field",
560
- "name": "afterUpdateListeners",
561
- "privacy": "private"
562
- },
563
- {
564
- "kind": "method",
565
- "name": "create",
566
- "privacy": "public",
567
- "return": {
568
- "type": {
569
- "text": "Promise<DatabaseAccessResult.Create<T>>"
570
- }
571
- },
572
- "parameters": [
573
- {
574
- "name": "newValue",
575
- "type": {
576
- "text": "Omit<T, 'id'>"
577
- }
578
- }
579
- ]
580
- },
581
- {
582
- "kind": "method",
583
- "name": "read",
584
- "privacy": "public",
585
- "return": {
586
- "type": {
587
- "text": "Promise<DatabaseAccessResult.Read<T>>"
588
- }
589
- },
590
- "parameters": [
591
- {
592
- "name": "id",
593
- "type": {
594
- "text": "string"
595
- }
596
- }
597
- ]
598
- },
599
- {
600
- "kind": "method",
601
- "name": "update",
602
- "privacy": "public",
603
- "return": {
604
- "type": {
605
- "text": "Promise<DatabaseAccessResult.Update<T>>"
606
- }
607
- },
608
- "parameters": [
609
- {
610
- "name": "id",
611
- "type": {
612
- "text": "string"
613
- }
614
- },
615
- {
616
- "name": "newValue",
617
- "type": {
618
- "text": "Omit<Partial<T>, 'id'>"
619
- }
620
- }
621
- ]
622
- },
623
- {
624
- "kind": "method",
625
- "name": "delete",
626
- "privacy": "public",
627
- "return": {
628
- "type": {
629
- "text": "Promise<DatabaseAccessResult.Delete>"
630
- }
631
- },
632
- "parameters": [
633
- {
634
- "name": "id",
635
- "type": {
636
- "text": "string"
637
- }
638
- }
639
- ]
640
- },
641
- {
642
- "kind": "method",
643
- "name": "visit",
644
- "privacy": "public",
645
- "return": {
646
- "type": {
647
- "text": "Promise<void>"
648
- }
649
- },
650
- "parameters": [
651
- {
652
- "name": "visitor",
653
- "type": {
654
- "text": "(record: T) => void"
655
- }
656
- }
657
- ]
658
- },
659
- {
660
- "kind": "method",
661
- "name": "onBeforeUpdate",
662
- "privacy": "public",
663
- "return": {
664
- "type": {
665
- "text": "() => void"
666
- }
667
- },
668
- "parameters": [
669
- {
670
- "name": "listener",
671
- "type": {
672
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
673
- }
674
- }
675
- ]
676
- },
677
- {
678
- "kind": "method",
679
- "name": "onAfterUpdate",
680
- "privacy": "public",
681
- "return": {
682
- "type": {
683
- "text": "() => void"
684
- }
456
+ "text": "string"
685
457
  },
686
- "parameters": [
687
- {
688
- "name": "listener",
689
- "type": {
690
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
691
- }
692
- }
693
- ]
458
+ "description": "The property name."
694
459
  }
695
- ]
460
+ ],
461
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
462
+ "privacy": "public"
696
463
  }
697
464
  ],
698
465
  "exports": [
699
466
  {
700
467
  "kind": "js",
701
- "name": "InMemoryDatabase",
702
- "declaration": {
703
- "name": "InMemoryDatabase",
704
- "module": "src/data/inMemoryDatabase.ts"
705
- }
706
- }
707
- ]
708
- },
709
- {
710
- "kind": "javascript-module",
711
- "path": "src/data/index.ts",
712
- "declarations": [],
713
- "exports": [
714
- {
715
- "kind": "js",
716
- "name": "*",
468
+ "name": "renderOnChange",
717
469
  "declaration": {
718
- "name": "*",
719
- "package": "./inMemoryDatabase"
470
+ "name": "renderOnChange",
471
+ "module": "src/decorators/renderOnChange.ts"
720
472
  }
721
473
  }
722
474
  ]
@@ -1105,55 +857,274 @@
1105
857
  "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1106
858
  },
1107
859
  {
1108
- "kind": "field",
1109
- "name": "_numeral",
1110
- "type": {
1111
- "text": "RegExp"
860
+ "kind": "field",
861
+ "name": "_numeral",
862
+ "type": {
863
+ "text": "RegExp"
864
+ },
865
+ "privacy": "private",
866
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
867
+ },
868
+ {
869
+ "kind": "field",
870
+ "name": "_index",
871
+ "type": {
872
+ "text": "any"
873
+ },
874
+ "privacy": "private"
875
+ },
876
+ {
877
+ "kind": "method",
878
+ "name": "parse",
879
+ "parameters": [
880
+ {
881
+ "name": "localeNumber",
882
+ "type": {
883
+ "text": "string"
884
+ }
885
+ }
886
+ ]
887
+ },
888
+ {
889
+ "kind": "method",
890
+ "name": "hasSeparator",
891
+ "return": {
892
+ "type": {
893
+ "text": "boolean"
894
+ }
895
+ },
896
+ "parameters": [
897
+ {
898
+ "name": "localeNumber",
899
+ "type": {
900
+ "text": "string"
901
+ }
902
+ }
903
+ ]
904
+ },
905
+ {
906
+ "kind": "field",
907
+ "name": "_group",
908
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
909
+ }
910
+ ]
911
+ }
912
+ ],
913
+ "exports": [
914
+ {
915
+ "kind": "js",
916
+ "name": "NumberParser",
917
+ "declaration": {
918
+ "name": "NumberParser",
919
+ "module": "src/formatters/localeNumberParser.ts"
920
+ }
921
+ }
922
+ ]
923
+ },
924
+ {
925
+ "kind": "javascript-module",
926
+ "path": "src/formatters/number.ts",
927
+ "declarations": [
928
+ {
929
+ "kind": "function",
930
+ "name": "getNumberFormatter",
931
+ "parameters": [
932
+ {
933
+ "name": "format",
934
+ "type": {
935
+ "text": "string"
936
+ }
937
+ },
938
+ {
939
+ "name": "locale",
940
+ "optional": true,
941
+ "type": {
942
+ "text": "string | null"
943
+ }
944
+ }
945
+ ],
946
+ "privacy": "public"
947
+ }
948
+ ],
949
+ "exports": [
950
+ {
951
+ "kind": "js",
952
+ "name": "getNumberFormatter",
953
+ "declaration": {
954
+ "name": "getNumberFormatter",
955
+ "module": "src/formatters/number.ts"
956
+ }
957
+ }
958
+ ]
959
+ },
960
+ {
961
+ "kind": "javascript-module",
962
+ "path": "src/data/inMemoryDatabase.ts",
963
+ "declarations": [
964
+ {
965
+ "kind": "class",
966
+ "description": "An in memory database of specific DatabaseRecord types.",
967
+ "name": "InMemoryDatabase",
968
+ "members": [
969
+ {
970
+ "kind": "field",
971
+ "name": "isWorking",
972
+ "type": {
973
+ "text": "boolean"
974
+ },
975
+ "privacy": "public",
976
+ "default": "false"
977
+ },
978
+ {
979
+ "kind": "field",
980
+ "name": "records",
981
+ "type": {
982
+ "text": "Record<string, T>"
983
+ },
984
+ "privacy": "private",
985
+ "default": "{}"
986
+ },
987
+ {
988
+ "kind": "field",
989
+ "name": "beforeUpdateListeners",
990
+ "privacy": "private"
991
+ },
992
+ {
993
+ "kind": "field",
994
+ "name": "afterUpdateListeners",
995
+ "privacy": "private"
996
+ },
997
+ {
998
+ "kind": "method",
999
+ "name": "create",
1000
+ "privacy": "public",
1001
+ "return": {
1002
+ "type": {
1003
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1004
+ }
1005
+ },
1006
+ "parameters": [
1007
+ {
1008
+ "name": "newValue",
1009
+ "type": {
1010
+ "text": "Omit<T, 'id'>"
1011
+ }
1012
+ }
1013
+ ]
1014
+ },
1015
+ {
1016
+ "kind": "method",
1017
+ "name": "read",
1018
+ "privacy": "public",
1019
+ "return": {
1020
+ "type": {
1021
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1022
+ }
1023
+ },
1024
+ "parameters": [
1025
+ {
1026
+ "name": "id",
1027
+ "type": {
1028
+ "text": "string"
1029
+ }
1030
+ }
1031
+ ]
1032
+ },
1033
+ {
1034
+ "kind": "method",
1035
+ "name": "update",
1036
+ "privacy": "public",
1037
+ "return": {
1038
+ "type": {
1039
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1040
+ }
1041
+ },
1042
+ "parameters": [
1043
+ {
1044
+ "name": "id",
1045
+ "type": {
1046
+ "text": "string"
1047
+ }
1048
+ },
1049
+ {
1050
+ "name": "newValue",
1051
+ "type": {
1052
+ "text": "Omit<Partial<T>, 'id'>"
1053
+ }
1054
+ }
1055
+ ]
1056
+ },
1057
+ {
1058
+ "kind": "method",
1059
+ "name": "delete",
1060
+ "privacy": "public",
1061
+ "return": {
1062
+ "type": {
1063
+ "text": "Promise<DatabaseAccessResult.Delete>"
1064
+ }
1112
1065
  },
1113
- "privacy": "private",
1114
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1066
+ "parameters": [
1067
+ {
1068
+ "name": "id",
1069
+ "type": {
1070
+ "text": "string"
1071
+ }
1072
+ }
1073
+ ]
1115
1074
  },
1116
1075
  {
1117
- "kind": "field",
1118
- "name": "_index",
1119
- "type": {
1120
- "text": "any"
1076
+ "kind": "method",
1077
+ "name": "visit",
1078
+ "privacy": "public",
1079
+ "return": {
1080
+ "type": {
1081
+ "text": "Promise<void>"
1082
+ }
1121
1083
  },
1122
- "privacy": "private"
1084
+ "parameters": [
1085
+ {
1086
+ "name": "visitor",
1087
+ "type": {
1088
+ "text": "(record: T) => void"
1089
+ }
1090
+ }
1091
+ ]
1123
1092
  },
1124
1093
  {
1125
1094
  "kind": "method",
1126
- "name": "parse",
1095
+ "name": "onBeforeUpdate",
1096
+ "privacy": "public",
1097
+ "return": {
1098
+ "type": {
1099
+ "text": "() => void"
1100
+ }
1101
+ },
1127
1102
  "parameters": [
1128
1103
  {
1129
- "name": "localeNumber",
1104
+ "name": "listener",
1130
1105
  "type": {
1131
- "text": "string"
1106
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1132
1107
  }
1133
1108
  }
1134
1109
  ]
1135
1110
  },
1136
1111
  {
1137
1112
  "kind": "method",
1138
- "name": "hasSeparator",
1113
+ "name": "onAfterUpdate",
1114
+ "privacy": "public",
1139
1115
  "return": {
1140
1116
  "type": {
1141
- "text": "boolean"
1117
+ "text": "() => void"
1142
1118
  }
1143
1119
  },
1144
1120
  "parameters": [
1145
1121
  {
1146
- "name": "localeNumber",
1122
+ "name": "listener",
1147
1123
  "type": {
1148
- "text": "string"
1124
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1149
1125
  }
1150
1126
  }
1151
1127
  ]
1152
- },
1153
- {
1154
- "kind": "field",
1155
- "name": "_group",
1156
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1157
1128
  }
1158
1129
  ]
1159
1130
  }
@@ -1161,46 +1132,75 @@
1161
1132
  "exports": [
1162
1133
  {
1163
1134
  "kind": "js",
1164
- "name": "NumberParser",
1135
+ "name": "InMemoryDatabase",
1165
1136
  "declaration": {
1166
- "name": "NumberParser",
1167
- "module": "src/formatters/localeNumberParser.ts"
1137
+ "name": "InMemoryDatabase",
1138
+ "module": "src/data/inMemoryDatabase.ts"
1168
1139
  }
1169
1140
  }
1170
1141
  ]
1171
1142
  },
1172
1143
  {
1173
1144
  "kind": "javascript-module",
1174
- "path": "src/formatters/number.ts",
1145
+ "path": "src/data/index.ts",
1146
+ "declarations": [],
1147
+ "exports": [
1148
+ {
1149
+ "kind": "js",
1150
+ "name": "*",
1151
+ "declaration": {
1152
+ "name": "*",
1153
+ "package": "./inMemoryDatabase"
1154
+ }
1155
+ }
1156
+ ]
1157
+ },
1158
+ {
1159
+ "kind": "javascript-module",
1160
+ "path": "src/design-system/design-system.ts",
1175
1161
  "declarations": [
1176
1162
  {
1177
1163
  "kind": "function",
1178
- "name": "getNumberFormatter",
1164
+ "name": "assureDesignSystem",
1165
+ "return": {
1166
+ "type": {
1167
+ "text": "DesignSystemModule"
1168
+ }
1169
+ },
1179
1170
  "parameters": [
1180
1171
  {
1181
- "name": "format",
1182
- "type": {
1183
- "text": "string"
1184
- }
1185
- },
1186
- {
1187
- "name": "locale",
1188
- "optional": true,
1172
+ "name": "module",
1189
1173
  "type": {
1190
- "text": "string | null"
1174
+ "text": "DesignSystemModule"
1191
1175
  }
1192
1176
  }
1193
1177
  ],
1178
+ "description": "assureDesignSystem.",
1194
1179
  "privacy": "public"
1195
1180
  }
1196
1181
  ],
1197
1182
  "exports": [
1198
1183
  {
1199
1184
  "kind": "js",
1200
- "name": "getNumberFormatter",
1185
+ "name": "assureDesignSystem",
1201
1186
  "declaration": {
1202
- "name": "getNumberFormatter",
1203
- "module": "src/formatters/number.ts"
1187
+ "name": "assureDesignSystem",
1188
+ "module": "src/design-system/design-system.ts"
1189
+ }
1190
+ }
1191
+ ]
1192
+ },
1193
+ {
1194
+ "kind": "javascript-module",
1195
+ "path": "src/design-system/index.ts",
1196
+ "declarations": [],
1197
+ "exports": [
1198
+ {
1199
+ "kind": "js",
1200
+ "name": "*",
1201
+ "declaration": {
1202
+ "name": "*",
1203
+ "package": "./design-system"
1204
1204
  }
1205
1205
  }
1206
1206
  ]
@@ -2208,7 +2208,7 @@
2208
2208
  },
2209
2209
  {
2210
2210
  "kind": "javascript-module",
2211
- "path": "src/directives/when-else/index.ts",
2211
+ "path": "src/directives/sync/index.ts",
2212
2212
  "declarations": [],
2213
2213
  "exports": [
2214
2214
  {
@@ -2216,18 +2216,28 @@
2216
2216
  "name": "*",
2217
2217
  "declaration": {
2218
2218
  "name": "*",
2219
- "package": "./when-else"
2219
+ "package": "./sync"
2220
2220
  }
2221
2221
  }
2222
2222
  ]
2223
2223
  },
2224
2224
  {
2225
2225
  "kind": "javascript-module",
2226
- "path": "src/directives/when-else/when-else.ts",
2226
+ "path": "src/directives/sync/sync.ts",
2227
2227
  "declarations": [
2228
+ {
2229
+ "kind": "variable",
2230
+ "name": "defaultEventMap",
2231
+ "type": {
2232
+ "text": "Map<string, EventName>"
2233
+ },
2234
+ "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])",
2235
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2236
+ "privacy": "public"
2237
+ },
2228
2238
  {
2229
2239
  "kind": "function",
2230
- "name": "whenElse",
2240
+ "name": "sync",
2231
2241
  "return": {
2232
2242
  "type": {
2233
2243
  "text": "CaptureType<TSource>"
@@ -2238,42 +2248,56 @@
2238
2248
  "name": "binding",
2239
2249
  "type": {
2240
2250
  "text": "Binding<TSource, TReturn>"
2241
- },
2242
- "description": "The condition to test for rendering."
2251
+ }
2243
2252
  },
2244
2253
  {
2245
- "name": "trueTemplateOrTemplateBinding",
2254
+ "name": "conversionType",
2255
+ "default": "'string'",
2246
2256
  "type": {
2247
- "text": "WhenTemplate<TSource>"
2248
- },
2249
- "description": "The template or a binding that gets the template to render when the condition is true."
2257
+ "text": "ConversionType"
2258
+ }
2250
2259
  },
2251
2260
  {
2252
- "name": "falseTemplateOrTemplateBinding",
2261
+ "name": "eventName",
2262
+ "default": "'default'",
2253
2263
  "type": {
2254
- "text": "WhenTemplate<TSource>"
2255
- },
2256
- "description": "The template or a binding that gets the template to render when the condition is false."
2264
+ "text": "EventName"
2265
+ }
2266
+ },
2267
+ {
2268
+ "name": "keyAttr",
2269
+ "optional": true,
2270
+ "type": {
2271
+ "text": "string"
2272
+ }
2257
2273
  }
2258
2274
  ],
2259
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
2275
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2260
2276
  "privacy": "public"
2261
2277
  }
2262
2278
  ],
2263
2279
  "exports": [
2264
2280
  {
2265
2281
  "kind": "js",
2266
- "name": "whenElse",
2282
+ "name": "defaultEventMap",
2267
2283
  "declaration": {
2268
- "name": "whenElse",
2269
- "module": "src/directives/when-else/when-else.ts"
2284
+ "name": "defaultEventMap",
2285
+ "module": "src/directives/sync/sync.ts"
2286
+ }
2287
+ },
2288
+ {
2289
+ "kind": "js",
2290
+ "name": "sync",
2291
+ "declaration": {
2292
+ "name": "sync",
2293
+ "module": "src/directives/sync/sync.ts"
2270
2294
  }
2271
2295
  }
2272
2296
  ]
2273
2297
  },
2274
2298
  {
2275
2299
  "kind": "javascript-module",
2276
- "path": "src/directives/sync/index.ts",
2300
+ "path": "src/directives/when-else/index.ts",
2277
2301
  "declarations": [],
2278
2302
  "exports": [
2279
2303
  {
@@ -2281,28 +2305,18 @@
2281
2305
  "name": "*",
2282
2306
  "declaration": {
2283
2307
  "name": "*",
2284
- "package": "./sync"
2308
+ "package": "./when-else"
2285
2309
  }
2286
2310
  }
2287
2311
  ]
2288
2312
  },
2289
2313
  {
2290
2314
  "kind": "javascript-module",
2291
- "path": "src/directives/sync/sync.ts",
2315
+ "path": "src/directives/when-else/when-else.ts",
2292
2316
  "declarations": [
2293
- {
2294
- "kind": "variable",
2295
- "name": "defaultEventMap",
2296
- "type": {
2297
- "text": "Map<string, EventName>"
2298
- },
2299
- "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])",
2300
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2301
- "privacy": "public"
2302
- },
2303
2317
  {
2304
2318
  "kind": "function",
2305
- "name": "sync",
2319
+ "name": "whenElse",
2306
2320
  "return": {
2307
2321
  "type": {
2308
2322
  "text": "CaptureType<TSource>"
@@ -2313,49 +2327,35 @@
2313
2327
  "name": "binding",
2314
2328
  "type": {
2315
2329
  "text": "Binding<TSource, TReturn>"
2316
- }
2317
- },
2318
- {
2319
- "name": "conversionType",
2320
- "default": "'string'",
2321
- "type": {
2322
- "text": "ConversionType"
2323
- }
2330
+ },
2331
+ "description": "The condition to test for rendering."
2324
2332
  },
2325
2333
  {
2326
- "name": "eventName",
2327
- "default": "'default'",
2334
+ "name": "trueTemplateOrTemplateBinding",
2328
2335
  "type": {
2329
- "text": "EventName"
2330
- }
2336
+ "text": "WhenTemplate<TSource>"
2337
+ },
2338
+ "description": "The template or a binding that gets the template to render when the condition is true."
2331
2339
  },
2332
2340
  {
2333
- "name": "keyAttr",
2334
- "optional": true,
2341
+ "name": "falseTemplateOrTemplateBinding",
2335
2342
  "type": {
2336
- "text": "string"
2337
- }
2343
+ "text": "WhenTemplate<TSource>"
2344
+ },
2345
+ "description": "The template or a binding that gets the template to render when the condition is false."
2338
2346
  }
2339
2347
  ],
2340
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2348
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
2341
2349
  "privacy": "public"
2342
2350
  }
2343
2351
  ],
2344
2352
  "exports": [
2345
2353
  {
2346
2354
  "kind": "js",
2347
- "name": "defaultEventMap",
2348
- "declaration": {
2349
- "name": "defaultEventMap",
2350
- "module": "src/directives/sync/sync.ts"
2351
- }
2352
- },
2353
- {
2354
- "kind": "js",
2355
- "name": "sync",
2355
+ "name": "whenElse",
2356
2356
  "declaration": {
2357
- "name": "sync",
2358
- "module": "src/directives/sync/sync.ts"
2357
+ "name": "whenElse",
2358
+ "module": "src/directives/when-else/when-else.ts"
2359
2359
  }
2360
2360
  }
2361
2361
  ]
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.200.0-FUI-2127.2",
4
+ "version": "14.200.0-FUI-2127.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.200.0-FUI-2127.2",
31
- "@genesislcap/genx": "14.200.0-FUI-2127.2",
32
- "@genesislcap/rollup-builder": "14.200.0-FUI-2127.2",
33
- "@genesislcap/ts-builder": "14.200.0-FUI-2127.2",
34
- "@genesislcap/uvu-playwright-builder": "14.200.0-FUI-2127.2",
35
- "@genesislcap/vite-builder": "14.200.0-FUI-2127.2",
36
- "@genesislcap/webpack-builder": "14.200.0-FUI-2127.2",
30
+ "@genesislcap/foundation-testing": "14.200.0-FUI-2127.3",
31
+ "@genesislcap/genx": "14.200.0-FUI-2127.3",
32
+ "@genesislcap/rollup-builder": "14.200.0-FUI-2127.3",
33
+ "@genesislcap/ts-builder": "14.200.0-FUI-2127.3",
34
+ "@genesislcap/uvu-playwright-builder": "14.200.0-FUI-2127.3",
35
+ "@genesislcap/vite-builder": "14.200.0-FUI-2127.3",
36
+ "@genesislcap/webpack-builder": "14.200.0-FUI-2127.3",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.200.0-FUI-2127.2",
40
+ "@genesislcap/foundation-logger": "14.200.0-FUI-2127.3",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "eaec2581b4a6918eb9f0e8a1f1800ebf233d9f62"
58
+ "gitHead": "b29e581ae1cc6e2acdaec752de35ddeb6262894d"
59
59
  }