@genesislcap/foundation-utils 14.405.0 → 14.406.0-workspaces.2

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.
@@ -7,6 +7,14 @@
7
7
  "path": "src/index.ts",
8
8
  "declarations": [],
9
9
  "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "package": "./converters"
16
+ }
17
+ },
10
18
  {
11
19
  "kind": "js",
12
20
  "name": "*",
@@ -198,6 +206,228 @@
198
206
  "name": "*",
199
207
  "package": "./inactivity"
200
208
  }
209
+ },
210
+ {
211
+ "kind": "js",
212
+ "name": "*",
213
+ "declaration": {
214
+ "name": "*",
215
+ "package": "./workspace"
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "kind": "javascript-module",
222
+ "path": "src/converters/index.ts",
223
+ "declarations": [],
224
+ "exports": [
225
+ {
226
+ "kind": "js",
227
+ "name": "*",
228
+ "declaration": {
229
+ "name": "*",
230
+ "package": "./string-array-converter"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "javascript-module",
237
+ "path": "src/converters/string-array-converter.ts",
238
+ "declarations": [
239
+ {
240
+ "kind": "variable",
241
+ "name": "stringArrayConverter",
242
+ "type": {
243
+ "text": "ValueConverter"
244
+ },
245
+ "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}",
246
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
247
+ "privacy": "public"
248
+ }
249
+ ],
250
+ "exports": [
251
+ {
252
+ "kind": "js",
253
+ "name": "stringArrayConverter",
254
+ "declaration": {
255
+ "name": "stringArrayConverter",
256
+ "module": "src/converters/string-array-converter.ts"
257
+ }
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "kind": "javascript-module",
263
+ "path": "src/decorators/index.ts",
264
+ "declarations": [],
265
+ "exports": [
266
+ {
267
+ "kind": "js",
268
+ "name": "*",
269
+ "declaration": {
270
+ "name": "*",
271
+ "package": "./renderOnChange"
272
+ }
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "kind": "javascript-module",
278
+ "path": "src/decorators/renderOnChange.ts",
279
+ "declarations": [
280
+ {
281
+ "kind": "function",
282
+ "name": "renderOnChange",
283
+ "parameters": [
284
+ {
285
+ "name": "target",
286
+ "type": {
287
+ "text": "FASTElement & { render(): void }"
288
+ },
289
+ "description": "The target to define the property change handler on."
290
+ },
291
+ {
292
+ "name": "name",
293
+ "type": {
294
+ "text": "string"
295
+ },
296
+ "description": "The property name."
297
+ }
298
+ ],
299
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
300
+ "privacy": "public"
301
+ }
302
+ ],
303
+ "exports": [
304
+ {
305
+ "kind": "js",
306
+ "name": "renderOnChange",
307
+ "declaration": {
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
310
+ }
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "kind": "javascript-module",
316
+ "path": "src/design-system/design-system.ts",
317
+ "declarations": [
318
+ {
319
+ "kind": "function",
320
+ "name": "assureDesignSystem",
321
+ "return": {
322
+ "type": {
323
+ "text": "DesignSystemModule"
324
+ }
325
+ },
326
+ "parameters": [
327
+ {
328
+ "name": "module",
329
+ "type": {
330
+ "text": "DesignSystemModule"
331
+ }
332
+ }
333
+ ],
334
+ "description": "assureDesignSystem.",
335
+ "privacy": "public"
336
+ },
337
+ {
338
+ "kind": "function",
339
+ "name": "getCurrentDesignSystem",
340
+ "return": {
341
+ "type": {
342
+ "text": ""
343
+ }
344
+ },
345
+ "parameters": [
346
+ {
347
+ "name": "element",
348
+ "type": {
349
+ "text": "HTMLElement"
350
+ },
351
+ "description": "The starting HTML element"
352
+ },
353
+ {
354
+ "name": "fallbackPrefix",
355
+ "type": {
356
+ "text": "string"
357
+ },
358
+ "description": "The prefix to fallback to if the provider is not available"
359
+ }
360
+ ],
361
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
362
+ "privacy": "public"
363
+ },
364
+ {
365
+ "kind": "function",
366
+ "name": "getCurrentDesignSystemPrefix",
367
+ "return": {
368
+ "type": {
369
+ "text": ""
370
+ }
371
+ },
372
+ "parameters": [
373
+ {
374
+ "name": "element",
375
+ "type": {
376
+ "text": "HTMLElement"
377
+ },
378
+ "description": "The starting HTML element"
379
+ },
380
+ {
381
+ "name": "fallbackPrefix",
382
+ "type": {
383
+ "text": "string"
384
+ },
385
+ "description": "The prefix to fallback to if the provider is not available"
386
+ }
387
+ ],
388
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
389
+ "privacy": "public"
390
+ }
391
+ ],
392
+ "exports": [
393
+ {
394
+ "kind": "js",
395
+ "name": "assureDesignSystem",
396
+ "declaration": {
397
+ "name": "assureDesignSystem",
398
+ "module": "src/design-system/design-system.ts"
399
+ }
400
+ },
401
+ {
402
+ "kind": "js",
403
+ "name": "getCurrentDesignSystem",
404
+ "declaration": {
405
+ "name": "getCurrentDesignSystem",
406
+ "module": "src/design-system/design-system.ts"
407
+ }
408
+ },
409
+ {
410
+ "kind": "js",
411
+ "name": "getCurrentDesignSystemPrefix",
412
+ "declaration": {
413
+ "name": "getCurrentDesignSystemPrefix",
414
+ "module": "src/design-system/design-system.ts"
415
+ }
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ "kind": "javascript-module",
421
+ "path": "src/design-system/index.ts",
422
+ "declarations": [],
423
+ "exports": [
424
+ {
425
+ "kind": "js",
426
+ "name": "*",
427
+ "declaration": {
428
+ "name": "*",
429
+ "package": "./design-system"
430
+ }
201
431
  }
202
432
  ]
203
433
  },
@@ -401,7 +631,7 @@
401
631
  },
402
632
  {
403
633
  "kind": "javascript-module",
404
- "path": "src/directives/index.ts",
634
+ "path": "src/env/index.ts",
405
635
  "declarations": [],
406
636
  "exports": [
407
637
  {
@@ -409,7 +639,7 @@
409
639
  "name": "*",
410
640
  "declaration": {
411
641
  "name": "*",
412
- "package": "./sync"
642
+ "package": "./is-dev"
413
643
  }
414
644
  },
415
645
  {
@@ -417,127 +647,36 @@
417
647
  "name": "*",
418
648
  "declaration": {
419
649
  "name": "*",
420
- "package": "./when-else"
650
+ "package": "./variables"
421
651
  }
422
652
  }
423
653
  ]
424
654
  },
425
655
  {
426
656
  "kind": "javascript-module",
427
- "path": "src/encoding/index.ts",
428
- "declarations": [],
429
- "exports": [
657
+ "path": "src/env/is-dev.ts",
658
+ "declarations": [
430
659
  {
431
- "kind": "js",
432
- "name": "*",
433
- "declaration": {
434
- "name": "*",
435
- "package": "./base64"
436
- }
660
+ "kind": "function",
661
+ "name": "isDev",
662
+ "description": "Determines if the current environment is a development environment.",
663
+ "privacy": "public"
437
664
  }
438
- ]
439
- },
440
- {
441
- "kind": "javascript-module",
442
- "path": "src/decorators/index.ts",
443
- "declarations": [],
665
+ ],
444
666
  "exports": [
445
667
  {
446
668
  "kind": "js",
447
- "name": "*",
669
+ "name": "isDev",
448
670
  "declaration": {
449
- "name": "*",
450
- "package": "./renderOnChange"
671
+ "name": "isDev",
672
+ "module": "src/env/is-dev.ts"
451
673
  }
452
674
  }
453
675
  ]
454
676
  },
455
677
  {
456
678
  "kind": "javascript-module",
457
- "path": "src/decorators/renderOnChange.ts",
458
- "declarations": [
459
- {
460
- "kind": "function",
461
- "name": "renderOnChange",
462
- "parameters": [
463
- {
464
- "name": "target",
465
- "type": {
466
- "text": "FASTElement & { render(): void }"
467
- },
468
- "description": "The target to define the property change handler on."
469
- },
470
- {
471
- "name": "name",
472
- "type": {
473
- "text": "string"
474
- },
475
- "description": "The property name."
476
- }
477
- ],
478
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
479
- "privacy": "public"
480
- }
481
- ],
482
- "exports": [
483
- {
484
- "kind": "js",
485
- "name": "renderOnChange",
486
- "declaration": {
487
- "name": "renderOnChange",
488
- "module": "src/decorators/renderOnChange.ts"
489
- }
490
- }
491
- ]
492
- },
493
- {
494
- "kind": "javascript-module",
495
- "path": "src/env/index.ts",
496
- "declarations": [],
497
- "exports": [
498
- {
499
- "kind": "js",
500
- "name": "*",
501
- "declaration": {
502
- "name": "*",
503
- "package": "./is-dev"
504
- }
505
- },
506
- {
507
- "kind": "js",
508
- "name": "*",
509
- "declaration": {
510
- "name": "*",
511
- "package": "./variables"
512
- }
513
- }
514
- ]
515
- },
516
- {
517
- "kind": "javascript-module",
518
- "path": "src/env/is-dev.ts",
519
- "declarations": [
520
- {
521
- "kind": "function",
522
- "name": "isDev",
523
- "description": "Determines if the current environment is a development environment.",
524
- "privacy": "public"
525
- }
526
- ],
527
- "exports": [
528
- {
529
- "kind": "js",
530
- "name": "isDev",
531
- "declaration": {
532
- "name": "isDev",
533
- "module": "src/env/is-dev.ts"
534
- }
535
- }
536
- ]
537
- },
538
- {
539
- "kind": "javascript-module",
540
- "path": "src/env/variables.ts",
679
+ "path": "src/env/variables.ts",
541
680
  "declarations": [
542
681
  {
543
682
  "kind": "variable",
@@ -965,6 +1104,44 @@
965
1104
  }
966
1105
  ]
967
1106
  },
1107
+ {
1108
+ "kind": "javascript-module",
1109
+ "path": "src/encoding/index.ts",
1110
+ "declarations": [],
1111
+ "exports": [
1112
+ {
1113
+ "kind": "js",
1114
+ "name": "*",
1115
+ "declaration": {
1116
+ "name": "*",
1117
+ "package": "./base64"
1118
+ }
1119
+ }
1120
+ ]
1121
+ },
1122
+ {
1123
+ "kind": "javascript-module",
1124
+ "path": "src/directives/index.ts",
1125
+ "declarations": [],
1126
+ "exports": [
1127
+ {
1128
+ "kind": "js",
1129
+ "name": "*",
1130
+ "declaration": {
1131
+ "name": "*",
1132
+ "package": "./sync"
1133
+ }
1134
+ },
1135
+ {
1136
+ "kind": "js",
1137
+ "name": "*",
1138
+ "declaration": {
1139
+ "name": "*",
1140
+ "package": "./when-else"
1141
+ }
1142
+ }
1143
+ ]
1144
+ },
968
1145
  {
969
1146
  "kind": "javascript-module",
970
1147
  "path": "src/error/errorMap.ts",
@@ -1164,126 +1341,6 @@
1164
1341
  }
1165
1342
  ]
1166
1343
  },
1167
- {
1168
- "kind": "javascript-module",
1169
- "path": "src/design-system/design-system.ts",
1170
- "declarations": [
1171
- {
1172
- "kind": "function",
1173
- "name": "assureDesignSystem",
1174
- "return": {
1175
- "type": {
1176
- "text": "DesignSystemModule"
1177
- }
1178
- },
1179
- "parameters": [
1180
- {
1181
- "name": "module",
1182
- "type": {
1183
- "text": "DesignSystemModule"
1184
- }
1185
- }
1186
- ],
1187
- "description": "assureDesignSystem.",
1188
- "privacy": "public"
1189
- },
1190
- {
1191
- "kind": "function",
1192
- "name": "getCurrentDesignSystem",
1193
- "return": {
1194
- "type": {
1195
- "text": ""
1196
- }
1197
- },
1198
- "parameters": [
1199
- {
1200
- "name": "element",
1201
- "type": {
1202
- "text": "HTMLElement"
1203
- },
1204
- "description": "The starting HTML element"
1205
- },
1206
- {
1207
- "name": "fallbackPrefix",
1208
- "type": {
1209
- "text": "string"
1210
- },
1211
- "description": "The prefix to fallback to if the provider is not available"
1212
- }
1213
- ],
1214
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1215
- "privacy": "public"
1216
- },
1217
- {
1218
- "kind": "function",
1219
- "name": "getCurrentDesignSystemPrefix",
1220
- "return": {
1221
- "type": {
1222
- "text": ""
1223
- }
1224
- },
1225
- "parameters": [
1226
- {
1227
- "name": "element",
1228
- "type": {
1229
- "text": "HTMLElement"
1230
- },
1231
- "description": "The starting HTML element"
1232
- },
1233
- {
1234
- "name": "fallbackPrefix",
1235
- "type": {
1236
- "text": "string"
1237
- },
1238
- "description": "The prefix to fallback to if the provider is not available"
1239
- }
1240
- ],
1241
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1242
- "privacy": "public"
1243
- }
1244
- ],
1245
- "exports": [
1246
- {
1247
- "kind": "js",
1248
- "name": "assureDesignSystem",
1249
- "declaration": {
1250
- "name": "assureDesignSystem",
1251
- "module": "src/design-system/design-system.ts"
1252
- }
1253
- },
1254
- {
1255
- "kind": "js",
1256
- "name": "getCurrentDesignSystem",
1257
- "declaration": {
1258
- "name": "getCurrentDesignSystem",
1259
- "module": "src/design-system/design-system.ts"
1260
- }
1261
- },
1262
- {
1263
- "kind": "js",
1264
- "name": "getCurrentDesignSystemPrefix",
1265
- "declaration": {
1266
- "name": "getCurrentDesignSystemPrefix",
1267
- "module": "src/design-system/design-system.ts"
1268
- }
1269
- }
1270
- ]
1271
- },
1272
- {
1273
- "kind": "javascript-module",
1274
- "path": "src/design-system/index.ts",
1275
- "declarations": [],
1276
- "exports": [
1277
- {
1278
- "kind": "js",
1279
- "name": "*",
1280
- "declaration": {
1281
- "name": "*",
1282
- "package": "./design-system"
1283
- }
1284
- }
1285
- ]
1286
- },
1287
1344
  {
1288
1345
  "kind": "javascript-module",
1289
1346
  "path": "src/feature-flags/featureFlags.ts",
@@ -4261,161 +4318,13 @@
4261
4318
  },
4262
4319
  {
4263
4320
  "kind": "javascript-module",
4264
- "path": "src/directives/sync/index.ts",
4321
+ "path": "src/workspace/index.ts",
4265
4322
  "declarations": [],
4266
- "exports": [
4267
- {
4268
- "kind": "js",
4269
- "name": "*",
4270
- "declaration": {
4271
- "name": "*",
4272
- "package": "./sync"
4273
- }
4274
- }
4275
- ]
4323
+ "exports": []
4276
4324
  },
4277
4325
  {
4278
4326
  "kind": "javascript-module",
4279
- "path": "src/directives/sync/sync.ts",
4280
- "declarations": [
4281
- {
4282
- "kind": "variable",
4283
- "name": "defaultEventMap",
4284
- "type": {
4285
- "text": "Map<string, EventName>"
4286
- },
4287
- "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])",
4288
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
4289
- "privacy": "public"
4290
- },
4291
- {
4292
- "kind": "function",
4293
- "name": "sync",
4294
- "return": {
4295
- "type": {
4296
- "text": "CaptureType<TSource>"
4297
- }
4298
- },
4299
- "parameters": [
4300
- {
4301
- "name": "binding",
4302
- "type": {
4303
- "text": "Binding<TSource, TReturn>"
4304
- }
4305
- },
4306
- {
4307
- "name": "conversionType",
4308
- "default": "'string'",
4309
- "type": {
4310
- "text": "ConversionType"
4311
- }
4312
- },
4313
- {
4314
- "name": "eventName",
4315
- "default": "'default'",
4316
- "type": {
4317
- "text": "EventName"
4318
- }
4319
- },
4320
- {
4321
- "name": "keyAttr",
4322
- "optional": true,
4323
- "type": {
4324
- "text": "string"
4325
- }
4326
- }
4327
- ],
4328
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
4329
- "privacy": "public"
4330
- }
4331
- ],
4332
- "exports": [
4333
- {
4334
- "kind": "js",
4335
- "name": "defaultEventMap",
4336
- "declaration": {
4337
- "name": "defaultEventMap",
4338
- "module": "src/directives/sync/sync.ts"
4339
- }
4340
- },
4341
- {
4342
- "kind": "js",
4343
- "name": "sync",
4344
- "declaration": {
4345
- "name": "sync",
4346
- "module": "src/directives/sync/sync.ts"
4347
- }
4348
- }
4349
- ]
4350
- },
4351
- {
4352
- "kind": "javascript-module",
4353
- "path": "src/directives/when-else/index.ts",
4354
- "declarations": [],
4355
- "exports": [
4356
- {
4357
- "kind": "js",
4358
- "name": "*",
4359
- "declaration": {
4360
- "name": "*",
4361
- "package": "./when-else"
4362
- }
4363
- }
4364
- ]
4365
- },
4366
- {
4367
- "kind": "javascript-module",
4368
- "path": "src/directives/when-else/when-else.ts",
4369
- "declarations": [
4370
- {
4371
- "kind": "function",
4372
- "name": "whenElse",
4373
- "return": {
4374
- "type": {
4375
- "text": "CaptureType<TSource>"
4376
- }
4377
- },
4378
- "parameters": [
4379
- {
4380
- "name": "binding",
4381
- "type": {
4382
- "text": "Binding<TSource, TReturn>"
4383
- },
4384
- "description": "The condition to test for rendering."
4385
- },
4386
- {
4387
- "name": "trueTemplateOrTemplateBinding",
4388
- "type": {
4389
- "text": "WhenTemplate<TSource>"
4390
- },
4391
- "description": "The template or a binding that gets the template to render when the condition is true."
4392
- },
4393
- {
4394
- "name": "falseTemplateOrTemplateBinding",
4395
- "type": {
4396
- "text": "WhenTemplate<TSource>"
4397
- },
4398
- "description": "The template or a binding that gets the template to render when the condition is false."
4399
- }
4400
- ],
4401
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
4402
- "privacy": "public"
4403
- }
4404
- ],
4405
- "exports": [
4406
- {
4407
- "kind": "js",
4408
- "name": "whenElse",
4409
- "declaration": {
4410
- "name": "whenElse",
4411
- "module": "src/directives/when-else/when-else.ts"
4412
- }
4413
- }
4414
- ]
4415
- },
4416
- {
4417
- "kind": "javascript-module",
4418
- "path": "src/encoding/base64/decode.ts",
4327
+ "path": "src/encoding/base64/decode.ts",
4419
4328
  "declarations": [
4420
4329
  {
4421
4330
  "kind": "function",
@@ -4567,6 +4476,160 @@
4567
4476
  }
4568
4477
  ]
4569
4478
  },
4479
+ {
4480
+ "kind": "javascript-module",
4481
+ "path": "src/directives/sync/index.ts",
4482
+ "declarations": [],
4483
+ "exports": [
4484
+ {
4485
+ "kind": "js",
4486
+ "name": "*",
4487
+ "declaration": {
4488
+ "name": "*",
4489
+ "package": "./sync"
4490
+ }
4491
+ }
4492
+ ]
4493
+ },
4494
+ {
4495
+ "kind": "javascript-module",
4496
+ "path": "src/directives/sync/sync.ts",
4497
+ "declarations": [
4498
+ {
4499
+ "kind": "variable",
4500
+ "name": "defaultEventMap",
4501
+ "type": {
4502
+ "text": "Map<string, EventName>"
4503
+ },
4504
+ "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])",
4505
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
4506
+ "privacy": "public"
4507
+ },
4508
+ {
4509
+ "kind": "function",
4510
+ "name": "sync",
4511
+ "return": {
4512
+ "type": {
4513
+ "text": "CaptureType<TSource>"
4514
+ }
4515
+ },
4516
+ "parameters": [
4517
+ {
4518
+ "name": "binding",
4519
+ "type": {
4520
+ "text": "Binding<TSource, TReturn>"
4521
+ }
4522
+ },
4523
+ {
4524
+ "name": "conversionType",
4525
+ "default": "'string'",
4526
+ "type": {
4527
+ "text": "ConversionType"
4528
+ }
4529
+ },
4530
+ {
4531
+ "name": "eventName",
4532
+ "default": "'default'",
4533
+ "type": {
4534
+ "text": "EventName"
4535
+ }
4536
+ },
4537
+ {
4538
+ "name": "keyAttr",
4539
+ "optional": true,
4540
+ "type": {
4541
+ "text": "string"
4542
+ }
4543
+ }
4544
+ ],
4545
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
4546
+ "privacy": "public"
4547
+ }
4548
+ ],
4549
+ "exports": [
4550
+ {
4551
+ "kind": "js",
4552
+ "name": "defaultEventMap",
4553
+ "declaration": {
4554
+ "name": "defaultEventMap",
4555
+ "module": "src/directives/sync/sync.ts"
4556
+ }
4557
+ },
4558
+ {
4559
+ "kind": "js",
4560
+ "name": "sync",
4561
+ "declaration": {
4562
+ "name": "sync",
4563
+ "module": "src/directives/sync/sync.ts"
4564
+ }
4565
+ }
4566
+ ]
4567
+ },
4568
+ {
4569
+ "kind": "javascript-module",
4570
+ "path": "src/directives/when-else/index.ts",
4571
+ "declarations": [],
4572
+ "exports": [
4573
+ {
4574
+ "kind": "js",
4575
+ "name": "*",
4576
+ "declaration": {
4577
+ "name": "*",
4578
+ "package": "./when-else"
4579
+ }
4580
+ }
4581
+ ]
4582
+ },
4583
+ {
4584
+ "kind": "javascript-module",
4585
+ "path": "src/directives/when-else/when-else.ts",
4586
+ "declarations": [
4587
+ {
4588
+ "kind": "function",
4589
+ "name": "whenElse",
4590
+ "return": {
4591
+ "type": {
4592
+ "text": "CaptureType<TSource>"
4593
+ }
4594
+ },
4595
+ "parameters": [
4596
+ {
4597
+ "name": "binding",
4598
+ "type": {
4599
+ "text": "Binding<TSource, TReturn>"
4600
+ },
4601
+ "description": "The condition to test for rendering."
4602
+ },
4603
+ {
4604
+ "name": "trueTemplateOrTemplateBinding",
4605
+ "type": {
4606
+ "text": "WhenTemplate<TSource>"
4607
+ },
4608
+ "description": "The template or a binding that gets the template to render when the condition is true."
4609
+ },
4610
+ {
4611
+ "name": "falseTemplateOrTemplateBinding",
4612
+ "type": {
4613
+ "text": "WhenTemplate<TSource>"
4614
+ },
4615
+ "description": "The template or a binding that gets the template to render when the condition is false."
4616
+ }
4617
+ ],
4618
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
4619
+ "privacy": "public"
4620
+ }
4621
+ ],
4622
+ "exports": [
4623
+ {
4624
+ "kind": "js",
4625
+ "name": "whenElse",
4626
+ "declaration": {
4627
+ "name": "whenElse",
4628
+ "module": "src/directives/when-else/when-else.ts"
4629
+ }
4630
+ }
4631
+ ]
4632
+ },
4570
4633
  {
4571
4634
  "kind": "javascript-module",
4572
4635
  "path": "src/mappers/dto/index.ts",
@@ -0,0 +1,2 @@
1
+ export * from './string-array-converter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/converters/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ValueConverter } from '@microsoft/fast-element';
2
+ /**
3
+ * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes
4
+ * and `string | string[]` properties.
5
+ *
6
+ * @remarks
7
+ * - fromView: "A,B,C" → ["A","B","C"], "A" → "A", "" → undefined
8
+ * - toView: ["A","B","C"] → "A,B,C", "A" → "A", undefined → ""
9
+ *
10
+ * @public
11
+ */
12
+ export declare const stringArrayConverter: ValueConverter;
13
+ //# sourceMappingURL=string-array-converter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-array-converter.d.ts","sourceRoot":"","sources":["../../../src/converters/string-array-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAUlC,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './converters';
1
2
  export * from './data';
2
3
  export * from './decorators';
3
4
  export * from './design-system';
@@ -22,4 +23,5 @@ export * from './utils';
22
23
  export * from './uuid';
23
24
  export * from './window';
24
25
  export * from './inactivity';
26
+ export * from './workspace';
25
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './string-array-converter';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes
3
+ * and `string | string[]` properties.
4
+ *
5
+ * @remarks
6
+ * - fromView: "A,B,C" → ["A","B","C"], "A" → "A", "" → undefined
7
+ * - toView: ["A","B","C"] → "A,B,C", "A" → "A", undefined → ""
8
+ *
9
+ * @public
10
+ */
11
+ export const stringArrayConverter = {
12
+ fromView(v) {
13
+ if (!(v === null || v === void 0 ? void 0 : v.trim()))
14
+ return undefined;
15
+ return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();
16
+ },
17
+ toView(v) {
18
+ if (typeof v === 'string')
19
+ return v;
20
+ if (Array.isArray(v))
21
+ return v.join(',');
22
+ return '';
23
+ },
24
+ };
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './converters';
1
2
  export * from './data';
2
3
  export * from './decorators';
3
4
  export * from './design-system';
@@ -22,3 +23,4 @@ export * from './utils';
22
23
  export * from './uuid';
23
24
  export * from './window';
24
25
  export * from './inactivity';
26
+ export * from './workspace';
@@ -0,0 +1 @@
1
+ export {};
@@ -18938,6 +18938,30 @@
18938
18938
  "endIndex": 2
18939
18939
  }
18940
18940
  },
18941
+ {
18942
+ "kind": "Variable",
18943
+ "canonicalReference": "@genesislcap/foundation-utils!stringArrayConverter:var",
18944
+ "docComment": "/**\n * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes and `string | string[]` properties.\n *\n * @remarks\n *\n * - fromView: \"A,B,C\" → [\"A\",\"B\",\"C\"], \"A\" → \"A\", \"\" → undefined - toView: [\"A\",\"B\",\"C\"] → \"A,B,C\", \"A\" → \"A\", undefined → \"\"\n *\n * @public\n */\n",
18945
+ "excerptTokens": [
18946
+ {
18947
+ "kind": "Content",
18948
+ "text": "stringArrayConverter: "
18949
+ },
18950
+ {
18951
+ "kind": "Reference",
18952
+ "text": "ValueConverter",
18953
+ "canonicalReference": "@microsoft/fast-element!ValueConverter:interface"
18954
+ }
18955
+ ],
18956
+ "fileUrlPath": "src/converters/string-array-converter.ts",
18957
+ "isReadonly": true,
18958
+ "releaseTag": "Public",
18959
+ "name": "stringArrayConverter",
18960
+ "variableTypeTokenRange": {
18961
+ "startIndex": 1,
18962
+ "endIndex": 2
18963
+ }
18964
+ },
18941
18965
  {
18942
18966
  "kind": "TypeAlias",
18943
18967
  "canonicalReference": "@genesislcap/foundation-utils!Subscribe:type",
@@ -16,6 +16,7 @@ import { LogLevel } from '@genesislcap/foundation-logger';
16
16
  import { Observable } from 'rxjs';
17
17
  import { SyntheticViewTemplate } from '@microsoft/fast-element';
18
18
  import { Types } from '@genesislcap/expression-builder';
19
+ import type { ValueConverter } from '@microsoft/fast-element';
19
20
 
20
21
  /**
21
22
  * @public
@@ -2349,6 +2350,18 @@ export declare let SSO_LIST_URL: string;
2349
2350
  */
2350
2351
  export declare let SSO_LOGIN_URL: string;
2351
2352
 
2353
+ /**
2354
+ * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes
2355
+ * and `string | string[]` properties.
2356
+ *
2357
+ * @remarks
2358
+ * - fromView: "A,B,C" → ["A","B","C"], "A" → "A", "" → undefined
2359
+ * - toView: ["A","B","C"] → "A,B,C", "A" → "A", undefined → ""
2360
+ *
2361
+ * @public
2362
+ */
2363
+ export declare const stringArrayConverter: ValueConverter;
2364
+
2352
2365
  /**
2353
2366
  * Subscribes a listener function to receive events of a specific type.
2354
2367
  * @returns An unsubscribe function.
@@ -1339,6 +1339,17 @@ The sub-path used for WebSocket connections when API\_HOST is not set
1339
1339
 
1340
1340
 
1341
1341
 
1342
+ </td></tr>
1343
+ <tr><td>
1344
+
1345
+ [stringArrayConverter](./foundation-utils.stringarrayconverter.md)
1346
+
1347
+
1348
+ </td><td>
1349
+
1350
+ A that converts between comma-separated string attributes and `string | string[]` properties.
1351
+
1352
+
1342
1353
  </td></tr>
1343
1354
  <tr><td>
1344
1355
 
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [stringArrayConverter](./foundation-utils.stringarrayconverter.md)
4
+
5
+ ## stringArrayConverter variable
6
+
7
+ A that converts between comma-separated string attributes and `string | string[]` properties.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ stringArrayConverter: ValueConverter
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ - fromView: "A,B,C" → \["A","B","C"\], "A" → "A", "" → undefined - toView: \["A","B","C"\] → "A,B,C", "A" → "A", undefined → ""
18
+
@@ -22,6 +22,7 @@ import { LogLevel } from '@genesislcap/foundation-logger';
22
22
  import { Observable } from 'rxjs';
23
23
  import { SyntheticViewTemplate } from '@microsoft/fast-element';
24
24
  import { Types } from '@genesislcap/expression-builder';
25
+ import type { ValueConverter } from '@microsoft/fast-element';
25
26
 
26
27
  // @public (undocumented)
27
28
  export let ACCEPT_TERMS_URL: string;
@@ -1572,6 +1573,9 @@ export let SSO_LIST_URL: string;
1572
1573
  // @public (undocumented)
1573
1574
  export let SSO_LOGIN_URL: string;
1574
1575
 
1576
+ // @public
1577
+ export const stringArrayConverter: ValueConverter;
1578
+
1575
1579
  // @public
1576
1580
  export type Subscribe<EventType> = (listener: Listener<EventType>) => () => void;
1577
1581
 
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.405.0",
4
+ "version": "14.406.0-workspaces.2",
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.405.0",
33
- "@genesislcap/genx": "14.405.0",
34
- "@genesislcap/rollup-builder": "14.405.0",
35
- "@genesislcap/ts-builder": "14.405.0",
36
- "@genesislcap/uvu-playwright-builder": "14.405.0",
37
- "@genesislcap/vite-builder": "14.405.0",
38
- "@genesislcap/webpack-builder": "14.405.0",
32
+ "@genesislcap/foundation-testing": "14.406.0-workspaces.2",
33
+ "@genesislcap/genx": "14.406.0-workspaces.2",
34
+ "@genesislcap/rollup-builder": "14.406.0-workspaces.2",
35
+ "@genesislcap/ts-builder": "14.406.0-workspaces.2",
36
+ "@genesislcap/uvu-playwright-builder": "14.406.0-workspaces.2",
37
+ "@genesislcap/vite-builder": "14.406.0-workspaces.2",
38
+ "@genesislcap/webpack-builder": "14.406.0-workspaces.2",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.405.0",
43
- "@genesislcap/foundation-logger": "14.405.0",
42
+ "@genesislcap/expression-builder": "14.406.0-workspaces.2",
43
+ "@genesislcap/foundation-logger": "14.406.0-workspaces.2",
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": "90757d4adb4c7b20ee266e0add3126dd76cb6398"
61
+ "gitHead": "3391e5272de97281b8144b11f7acd24488c027ab"
62
62
  }