@genesislcap/foundation-utils 15.29.0 → 15.30.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 +406 -406
  2. package/package.json +10 -10
@@ -250,208 +250,6 @@
250
250
  }
251
251
  ]
252
252
  },
253
- {
254
- "kind": "javascript-module",
255
- "path": "src/design-system/design-system.ts",
256
- "declarations": [
257
- {
258
- "kind": "function",
259
- "name": "assureDesignSystem",
260
- "return": {
261
- "type": {
262
- "text": "DesignSystemModule"
263
- }
264
- },
265
- "parameters": [
266
- {
267
- "name": "module",
268
- "type": {
269
- "text": "DesignSystemModule"
270
- }
271
- }
272
- ],
273
- "description": "assureDesignSystem.",
274
- "privacy": "public"
275
- },
276
- {
277
- "kind": "function",
278
- "name": "getCurrentDesignSystem",
279
- "return": {
280
- "type": {
281
- "text": ""
282
- }
283
- },
284
- "parameters": [
285
- {
286
- "name": "element",
287
- "type": {
288
- "text": "HTMLElement"
289
- },
290
- "description": "The starting HTML element"
291
- },
292
- {
293
- "name": "fallbackPrefix",
294
- "type": {
295
- "text": "string"
296
- },
297
- "description": "The prefix to fallback to if the provider is not available"
298
- }
299
- ],
300
- "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.",
301
- "privacy": "public"
302
- },
303
- {
304
- "kind": "function",
305
- "name": "getCurrentDesignSystemPrefix",
306
- "return": {
307
- "type": {
308
- "text": ""
309
- }
310
- },
311
- "parameters": [
312
- {
313
- "name": "element",
314
- "type": {
315
- "text": "HTMLElement"
316
- },
317
- "description": "The starting HTML element"
318
- },
319
- {
320
- "name": "fallbackPrefix",
321
- "type": {
322
- "text": "string"
323
- },
324
- "description": "The prefix to fallback to if the provider is not available"
325
- }
326
- ],
327
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
328
- "privacy": "public"
329
- }
330
- ],
331
- "exports": [
332
- {
333
- "kind": "js",
334
- "name": "assureDesignSystem",
335
- "declaration": {
336
- "name": "assureDesignSystem",
337
- "module": "src/design-system/design-system.ts"
338
- }
339
- },
340
- {
341
- "kind": "js",
342
- "name": "getCurrentDesignSystem",
343
- "declaration": {
344
- "name": "getCurrentDesignSystem",
345
- "module": "src/design-system/design-system.ts"
346
- }
347
- },
348
- {
349
- "kind": "js",
350
- "name": "getCurrentDesignSystemPrefix",
351
- "declaration": {
352
- "name": "getCurrentDesignSystemPrefix",
353
- "module": "src/design-system/design-system.ts"
354
- }
355
- }
356
- ]
357
- },
358
- {
359
- "kind": "javascript-module",
360
- "path": "src/design-system/editable-elements.ts",
361
- "declarations": [
362
- {
363
- "kind": "variable",
364
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
365
- "type": {
366
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
367
- },
368
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
369
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
370
- },
371
- {
372
- "kind": "variable",
373
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
374
- "type": {
375
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
376
- },
377
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
378
- "description": "Design-system specific editable host selectors."
379
- },
380
- {
381
- "kind": "function",
382
- "name": "buildEditableElementSelector",
383
- "return": {
384
- "type": {
385
- "text": "string"
386
- }
387
- },
388
- "parameters": [
389
- {
390
- "name": "designSystems",
391
- "type": {
392
- "text": "readonly EditableDesignSystemPrefix[]"
393
- }
394
- },
395
- {
396
- "name": "customEditableSelectors",
397
- "default": "[]",
398
- "type": {
399
- "text": "readonly string[]"
400
- }
401
- }
402
- ]
403
- }
404
- ],
405
- "exports": [
406
- {
407
- "kind": "js",
408
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
409
- "declaration": {
410
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
411
- "module": "src/design-system/editable-elements.ts"
412
- }
413
- },
414
- {
415
- "kind": "js",
416
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
417
- "declaration": {
418
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
419
- "module": "src/design-system/editable-elements.ts"
420
- }
421
- },
422
- {
423
- "kind": "js",
424
- "name": "buildEditableElementSelector",
425
- "declaration": {
426
- "name": "buildEditableElementSelector",
427
- "module": "src/design-system/editable-elements.ts"
428
- }
429
- }
430
- ]
431
- },
432
- {
433
- "kind": "javascript-module",
434
- "path": "src/design-system/index.ts",
435
- "declarations": [],
436
- "exports": [
437
- {
438
- "kind": "js",
439
- "name": "*",
440
- "declaration": {
441
- "name": "*",
442
- "package": "./design-system"
443
- }
444
- },
445
- {
446
- "kind": "js",
447
- "name": "*",
448
- "declaration": {
449
- "name": "*",
450
- "package": "./editable-elements"
451
- }
452
- }
453
- ]
454
- },
455
253
  {
456
254
  "kind": "javascript-module",
457
255
  "path": "src/data/inMemoryDatabase.ts",
@@ -652,60 +450,186 @@
652
450
  },
653
451
  {
654
452
  "kind": "javascript-module",
655
- "path": "src/decorators/index.ts",
656
- "declarations": [],
657
- "exports": [
658
- {
659
- "kind": "js",
660
- "name": "*",
661
- "declaration": {
662
- "name": "*",
663
- "package": "./renderOnChange"
664
- }
665
- }
666
- ]
667
- },
668
- {
669
- "kind": "javascript-module",
670
- "path": "src/decorators/renderOnChange.ts",
453
+ "path": "src/design-system/design-system.ts",
671
454
  "declarations": [
672
455
  {
673
456
  "kind": "function",
674
- "name": "renderOnChange",
457
+ "name": "assureDesignSystem",
458
+ "return": {
459
+ "type": {
460
+ "text": "DesignSystemModule"
461
+ }
462
+ },
675
463
  "parameters": [
676
464
  {
677
- "name": "target",
465
+ "name": "module",
678
466
  "type": {
679
- "text": "FASTElement & { render(): void }"
467
+ "text": "DesignSystemModule"
468
+ }
469
+ }
470
+ ],
471
+ "description": "assureDesignSystem.",
472
+ "privacy": "public"
473
+ },
474
+ {
475
+ "kind": "function",
476
+ "name": "getCurrentDesignSystem",
477
+ "return": {
478
+ "type": {
479
+ "text": ""
480
+ }
481
+ },
482
+ "parameters": [
483
+ {
484
+ "name": "element",
485
+ "type": {
486
+ "text": "HTMLElement"
680
487
  },
681
- "description": "The target to define the property change handler on."
488
+ "description": "The starting HTML element"
682
489
  },
683
490
  {
684
- "name": "name",
491
+ "name": "fallbackPrefix",
685
492
  "type": {
686
493
  "text": "string"
687
494
  },
688
- "description": "The property name."
495
+ "description": "The prefix to fallback to if the provider is not available"
689
496
  }
690
497
  ],
691
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
498
+ "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.",
499
+ "privacy": "public"
500
+ },
501
+ {
502
+ "kind": "function",
503
+ "name": "getCurrentDesignSystemPrefix",
504
+ "return": {
505
+ "type": {
506
+ "text": ""
507
+ }
508
+ },
509
+ "parameters": [
510
+ {
511
+ "name": "element",
512
+ "type": {
513
+ "text": "HTMLElement"
514
+ },
515
+ "description": "The starting HTML element"
516
+ },
517
+ {
518
+ "name": "fallbackPrefix",
519
+ "type": {
520
+ "text": "string"
521
+ },
522
+ "description": "The prefix to fallback to if the provider is not available"
523
+ }
524
+ ],
525
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
692
526
  "privacy": "public"
693
527
  }
694
528
  ],
695
529
  "exports": [
696
530
  {
697
531
  "kind": "js",
698
- "name": "renderOnChange",
532
+ "name": "assureDesignSystem",
699
533
  "declaration": {
700
- "name": "renderOnChange",
701
- "module": "src/decorators/renderOnChange.ts"
534
+ "name": "assureDesignSystem",
535
+ "module": "src/design-system/design-system.ts"
536
+ }
537
+ },
538
+ {
539
+ "kind": "js",
540
+ "name": "getCurrentDesignSystem",
541
+ "declaration": {
542
+ "name": "getCurrentDesignSystem",
543
+ "module": "src/design-system/design-system.ts"
544
+ }
545
+ },
546
+ {
547
+ "kind": "js",
548
+ "name": "getCurrentDesignSystemPrefix",
549
+ "declaration": {
550
+ "name": "getCurrentDesignSystemPrefix",
551
+ "module": "src/design-system/design-system.ts"
702
552
  }
703
553
  }
704
554
  ]
705
555
  },
706
556
  {
707
557
  "kind": "javascript-module",
708
- "path": "src/directives/index.ts",
558
+ "path": "src/design-system/editable-elements.ts",
559
+ "declarations": [
560
+ {
561
+ "kind": "variable",
562
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
563
+ "type": {
564
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
565
+ },
566
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
567
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
568
+ },
569
+ {
570
+ "kind": "variable",
571
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
572
+ "type": {
573
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
574
+ },
575
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
576
+ "description": "Design-system specific editable host selectors."
577
+ },
578
+ {
579
+ "kind": "function",
580
+ "name": "buildEditableElementSelector",
581
+ "return": {
582
+ "type": {
583
+ "text": "string"
584
+ }
585
+ },
586
+ "parameters": [
587
+ {
588
+ "name": "designSystems",
589
+ "type": {
590
+ "text": "readonly EditableDesignSystemPrefix[]"
591
+ }
592
+ },
593
+ {
594
+ "name": "customEditableSelectors",
595
+ "default": "[]",
596
+ "type": {
597
+ "text": "readonly string[]"
598
+ }
599
+ }
600
+ ]
601
+ }
602
+ ],
603
+ "exports": [
604
+ {
605
+ "kind": "js",
606
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
607
+ "declaration": {
608
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
609
+ "module": "src/design-system/editable-elements.ts"
610
+ }
611
+ },
612
+ {
613
+ "kind": "js",
614
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
615
+ "declaration": {
616
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
617
+ "module": "src/design-system/editable-elements.ts"
618
+ }
619
+ },
620
+ {
621
+ "kind": "js",
622
+ "name": "buildEditableElementSelector",
623
+ "declaration": {
624
+ "name": "buildEditableElementSelector",
625
+ "module": "src/design-system/editable-elements.ts"
626
+ }
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "kind": "javascript-module",
632
+ "path": "src/design-system/index.ts",
709
633
  "declarations": [],
710
634
  "exports": [
711
635
  {
@@ -713,7 +637,7 @@
713
637
  "name": "*",
714
638
  "declaration": {
715
639
  "name": "*",
716
- "package": "./sync"
640
+ "package": "./design-system"
717
641
  }
718
642
  },
719
643
  {
@@ -721,7 +645,7 @@
721
645
  "name": "*",
722
646
  "declaration": {
723
647
  "name": "*",
724
- "package": "./when-else"
648
+ "package": "./editable-elements"
725
649
  }
726
650
  }
727
651
  ]
@@ -741,6 +665,29 @@
741
665
  }
742
666
  ]
743
667
  },
668
+ {
669
+ "kind": "javascript-module",
670
+ "path": "src/directives/index.ts",
671
+ "declarations": [],
672
+ "exports": [
673
+ {
674
+ "kind": "js",
675
+ "name": "*",
676
+ "declaration": {
677
+ "name": "*",
678
+ "package": "./sync"
679
+ }
680
+ },
681
+ {
682
+ "kind": "js",
683
+ "name": "*",
684
+ "declaration": {
685
+ "name": "*",
686
+ "package": "./when-else"
687
+ }
688
+ }
689
+ ]
690
+ },
744
691
  {
745
692
  "kind": "javascript-module",
746
693
  "path": "src/env/index.ts",
@@ -1240,6 +1187,59 @@
1240
1187
  }
1241
1188
  ]
1242
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",
@@ -4904,165 +4904,78 @@
4904
4904
  },
4905
4905
  {
4906
4906
  "kind": "javascript-module",
4907
- "path": "src/directives/sync/index.ts",
4908
- "declarations": [],
4909
- "exports": [
4910
- {
4911
- "kind": "js",
4912
- "name": "*",
4913
- "declaration": {
4914
- "name": "*",
4915
- "package": "./sync"
4916
- }
4917
- }
4918
- ]
4919
- },
4920
- {
4921
- "kind": "javascript-module",
4922
- "path": "src/directives/sync/sync.ts",
4907
+ "path": "src/encoding/base64/decode.ts",
4923
4908
  "declarations": [
4924
4909
  {
4925
- "kind": "variable",
4926
- "name": "defaultEventMap",
4927
- "type": {
4928
- "text": "Map<string, EventName>"
4910
+ "kind": "function",
4911
+ "name": "decodeFromBase64",
4912
+ "return": {
4913
+ "type": {
4914
+ "text": ""
4915
+ }
4929
4916
  },
4930
- "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])",
4931
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
4917
+ "parameters": [
4918
+ {
4919
+ "name": "base64Value",
4920
+ "type": {
4921
+ "text": "string"
4922
+ }
4923
+ },
4924
+ {
4925
+ "description": "The value to decode from base64.",
4926
+ "name": "value"
4927
+ }
4928
+ ],
4929
+ "description": "Decodes a value from base64.",
4932
4930
  "privacy": "public"
4933
4931
  },
4934
4932
  {
4935
4933
  "kind": "function",
4936
- "name": "sync",
4934
+ "name": "decodeFromBase64WithPrefix",
4937
4935
  "return": {
4938
4936
  "type": {
4939
- "text": "CaptureType<TSource>"
4937
+ "text": ""
4940
4938
  }
4941
4939
  },
4942
4940
  "parameters": [
4943
4941
  {
4944
- "name": "binding",
4945
- "type": {
4946
- "text": "Binding<TSource, TReturn>"
4947
- }
4948
- },
4949
- {
4950
- "name": "conversionType",
4951
- "default": "'string'",
4952
- "type": {
4953
- "text": "ConversionType"
4954
- }
4955
- },
4956
- {
4957
- "name": "eventName",
4958
- "default": "'default'",
4959
- "type": {
4960
- "text": "EventName"
4961
- }
4962
- },
4963
- {
4964
- "name": "keyAttr",
4965
- "optional": true,
4942
+ "name": "value",
4966
4943
  "type": {
4967
4944
  "text": "string"
4968
- }
4945
+ },
4946
+ "description": "The value to decode from base64."
4969
4947
  }
4970
4948
  ],
4971
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
4949
+ "description": "Decodes a value from base64 with a prefix.",
4972
4950
  "privacy": "public"
4973
4951
  }
4974
4952
  ],
4975
4953
  "exports": [
4976
4954
  {
4977
4955
  "kind": "js",
4978
- "name": "defaultEventMap",
4956
+ "name": "decodeFromBase64",
4979
4957
  "declaration": {
4980
- "name": "defaultEventMap",
4981
- "module": "src/directives/sync/sync.ts"
4958
+ "name": "decodeFromBase64",
4959
+ "module": "src/encoding/base64/decode.ts"
4982
4960
  }
4983
4961
  },
4984
4962
  {
4985
4963
  "kind": "js",
4986
- "name": "sync",
4987
- "declaration": {
4988
- "name": "sync",
4989
- "module": "src/directives/sync/sync.ts"
4990
- }
4991
- }
4992
- ]
4993
- },
4994
- {
4995
- "kind": "javascript-module",
4996
- "path": "src/directives/when-else/index.ts",
4997
- "declarations": [],
4998
- "exports": [
4999
- {
5000
- "kind": "js",
5001
- "name": "*",
5002
- "declaration": {
5003
- "name": "*",
5004
- "package": "./when-else"
5005
- }
5006
- }
5007
- ]
5008
- },
5009
- {
5010
- "kind": "javascript-module",
5011
- "path": "src/directives/when-else/when-else.ts",
5012
- "declarations": [
5013
- {
5014
- "kind": "function",
5015
- "name": "whenElse",
5016
- "return": {
5017
- "type": {
5018
- "text": "CaptureType<TSource>"
5019
- }
5020
- },
5021
- "parameters": [
5022
- {
5023
- "name": "binding",
5024
- "type": {
5025
- "text": "Binding<TSource, TReturn>"
5026
- },
5027
- "description": "The condition to test for rendering."
5028
- },
5029
- {
5030
- "name": "trueTemplateOrTemplateBinding",
5031
- "type": {
5032
- "text": "WhenTemplate<TSource>"
5033
- },
5034
- "description": "The template or a binding that gets the template to render when the condition is true."
5035
- },
5036
- {
5037
- "name": "falseTemplateOrTemplateBinding",
5038
- "type": {
5039
- "text": "WhenTemplate<TSource>"
5040
- },
5041
- "description": "The template or a binding that gets the template to render when the condition is false."
5042
- }
5043
- ],
5044
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
5045
- "privacy": "public"
5046
- }
5047
- ],
5048
- "exports": [
5049
- {
5050
- "kind": "js",
5051
- "name": "whenElse",
4964
+ "name": "decodeFromBase64WithPrefix",
5052
4965
  "declaration": {
5053
- "name": "whenElse",
5054
- "module": "src/directives/when-else/when-else.ts"
4966
+ "name": "decodeFromBase64WithPrefix",
4967
+ "module": "src/encoding/base64/decode.ts"
5055
4968
  }
5056
4969
  }
5057
4970
  ]
5058
4971
  },
5059
4972
  {
5060
4973
  "kind": "javascript-module",
5061
- "path": "src/encoding/base64/decode.ts",
4974
+ "path": "src/encoding/base64/encode.ts",
5062
4975
  "declarations": [
5063
4976
  {
5064
4977
  "kind": "function",
5065
- "name": "decodeFromBase64",
4978
+ "name": "encodeToBase64",
5066
4979
  "return": {
5067
4980
  "type": {
5068
4981
  "text": ""
@@ -5070,22 +4983,19 @@
5070
4983
  },
5071
4984
  "parameters": [
5072
4985
  {
5073
- "name": "base64Value",
4986
+ "name": "value",
5074
4987
  "type": {
5075
- "text": "string"
5076
- }
5077
- },
5078
- {
5079
- "description": "The value to decode from base64.",
5080
- "name": "value"
4988
+ "text": "string | ArrayBuffer"
4989
+ },
4990
+ "description": "The value to encode to base64."
5081
4991
  }
5082
4992
  ],
5083
- "description": "Decodes a value from base64.",
4993
+ "description": "Encodes the given value to base64.",
5084
4994
  "privacy": "public"
5085
4995
  },
5086
4996
  {
5087
4997
  "kind": "function",
5088
- "name": "decodeFromBase64WithPrefix",
4998
+ "name": "encodeToBase64WithPrefix",
5089
4999
  "return": {
5090
5000
  "type": {
5091
5001
  "text": ""
@@ -5095,101 +5005,149 @@
5095
5005
  {
5096
5006
  "name": "value",
5097
5007
  "type": {
5098
- "text": "string"
5008
+ "text": "string | ArrayBuffer"
5099
5009
  },
5100
- "description": "The value to decode from base64."
5010
+ "description": "The value to encode to base64."
5101
5011
  }
5102
5012
  ],
5103
- "description": "Decodes a value from base64 with a prefix.",
5013
+ "description": "Encodes the given value with a prefix to base64.",
5104
5014
  "privacy": "public"
5105
5015
  }
5106
5016
  ],
5107
5017
  "exports": [
5108
5018
  {
5109
5019
  "kind": "js",
5110
- "name": "decodeFromBase64",
5020
+ "name": "encodeToBase64",
5111
5021
  "declaration": {
5112
- "name": "decodeFromBase64",
5113
- "module": "src/encoding/base64/decode.ts"
5022
+ "name": "encodeToBase64",
5023
+ "module": "src/encoding/base64/encode.ts"
5114
5024
  }
5115
5025
  },
5116
5026
  {
5117
5027
  "kind": "js",
5118
- "name": "decodeFromBase64WithPrefix",
5028
+ "name": "encodeToBase64WithPrefix",
5119
5029
  "declaration": {
5120
- "name": "decodeFromBase64WithPrefix",
5121
- "module": "src/encoding/base64/decode.ts"
5030
+ "name": "encodeToBase64WithPrefix",
5031
+ "module": "src/encoding/base64/encode.ts"
5122
5032
  }
5123
5033
  }
5124
5034
  ]
5125
5035
  },
5126
5036
  {
5127
5037
  "kind": "javascript-module",
5128
- "path": "src/encoding/base64/encode.ts",
5038
+ "path": "src/encoding/base64/index.ts",
5039
+ "declarations": [],
5040
+ "exports": [
5041
+ {
5042
+ "kind": "js",
5043
+ "name": "*",
5044
+ "declaration": {
5045
+ "name": "*",
5046
+ "package": "./decode"
5047
+ }
5048
+ },
5049
+ {
5050
+ "kind": "js",
5051
+ "name": "*",
5052
+ "declaration": {
5053
+ "name": "*",
5054
+ "package": "./encode"
5055
+ }
5056
+ }
5057
+ ]
5058
+ },
5059
+ {
5060
+ "kind": "javascript-module",
5061
+ "path": "src/directives/sync/index.ts",
5062
+ "declarations": [],
5063
+ "exports": [
5064
+ {
5065
+ "kind": "js",
5066
+ "name": "*",
5067
+ "declaration": {
5068
+ "name": "*",
5069
+ "package": "./sync"
5070
+ }
5071
+ }
5072
+ ]
5073
+ },
5074
+ {
5075
+ "kind": "javascript-module",
5076
+ "path": "src/directives/sync/sync.ts",
5129
5077
  "declarations": [
5130
5078
  {
5131
- "kind": "function",
5132
- "name": "encodeToBase64",
5133
- "return": {
5134
- "type": {
5135
- "text": ""
5136
- }
5079
+ "kind": "variable",
5080
+ "name": "defaultEventMap",
5081
+ "type": {
5082
+ "text": "Map<string, EventName>"
5137
5083
  },
5138
- "parameters": [
5139
- {
5140
- "name": "value",
5141
- "type": {
5142
- "text": "string | ArrayBuffer"
5143
- },
5144
- "description": "The value to encode to base64."
5145
- }
5146
- ],
5147
- "description": "Encodes the given value to base64.",
5084
+ "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])",
5085
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
5148
5086
  "privacy": "public"
5149
5087
  },
5150
5088
  {
5151
5089
  "kind": "function",
5152
- "name": "encodeToBase64WithPrefix",
5090
+ "name": "sync",
5153
5091
  "return": {
5154
5092
  "type": {
5155
- "text": ""
5093
+ "text": "CaptureType<TSource>"
5156
5094
  }
5157
5095
  },
5158
5096
  "parameters": [
5159
5097
  {
5160
- "name": "value",
5098
+ "name": "binding",
5161
5099
  "type": {
5162
- "text": "string | ArrayBuffer"
5163
- },
5164
- "description": "The value to encode to base64."
5100
+ "text": "Binding<TSource, TReturn>"
5101
+ }
5102
+ },
5103
+ {
5104
+ "name": "conversionType",
5105
+ "default": "'string'",
5106
+ "type": {
5107
+ "text": "ConversionType"
5108
+ }
5109
+ },
5110
+ {
5111
+ "name": "eventName",
5112
+ "default": "'default'",
5113
+ "type": {
5114
+ "text": "EventName"
5115
+ }
5116
+ },
5117
+ {
5118
+ "name": "keyAttr",
5119
+ "optional": true,
5120
+ "type": {
5121
+ "text": "string"
5122
+ }
5165
5123
  }
5166
5124
  ],
5167
- "description": "Encodes the given value with a prefix to base64.",
5125
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
5168
5126
  "privacy": "public"
5169
5127
  }
5170
5128
  ],
5171
5129
  "exports": [
5172
5130
  {
5173
5131
  "kind": "js",
5174
- "name": "encodeToBase64",
5132
+ "name": "defaultEventMap",
5175
5133
  "declaration": {
5176
- "name": "encodeToBase64",
5177
- "module": "src/encoding/base64/encode.ts"
5134
+ "name": "defaultEventMap",
5135
+ "module": "src/directives/sync/sync.ts"
5178
5136
  }
5179
5137
  },
5180
5138
  {
5181
5139
  "kind": "js",
5182
- "name": "encodeToBase64WithPrefix",
5140
+ "name": "sync",
5183
5141
  "declaration": {
5184
- "name": "encodeToBase64WithPrefix",
5185
- "module": "src/encoding/base64/encode.ts"
5142
+ "name": "sync",
5143
+ "module": "src/directives/sync/sync.ts"
5186
5144
  }
5187
5145
  }
5188
5146
  ]
5189
5147
  },
5190
5148
  {
5191
5149
  "kind": "javascript-module",
5192
- "path": "src/encoding/base64/index.ts",
5150
+ "path": "src/directives/when-else/index.ts",
5193
5151
  "declarations": [],
5194
5152
  "exports": [
5195
5153
  {
@@ -5197,15 +5155,57 @@
5197
5155
  "name": "*",
5198
5156
  "declaration": {
5199
5157
  "name": "*",
5200
- "package": "./decode"
5158
+ "package": "./when-else"
5201
5159
  }
5202
- },
5160
+ }
5161
+ ]
5162
+ },
5163
+ {
5164
+ "kind": "javascript-module",
5165
+ "path": "src/directives/when-else/when-else.ts",
5166
+ "declarations": [
5167
+ {
5168
+ "kind": "function",
5169
+ "name": "whenElse",
5170
+ "return": {
5171
+ "type": {
5172
+ "text": "CaptureType<TSource>"
5173
+ }
5174
+ },
5175
+ "parameters": [
5176
+ {
5177
+ "name": "binding",
5178
+ "type": {
5179
+ "text": "Binding<TSource, TReturn>"
5180
+ },
5181
+ "description": "The condition to test for rendering."
5182
+ },
5183
+ {
5184
+ "name": "trueTemplateOrTemplateBinding",
5185
+ "type": {
5186
+ "text": "WhenTemplate<TSource>"
5187
+ },
5188
+ "description": "The template or a binding that gets the template to render when the condition is true."
5189
+ },
5190
+ {
5191
+ "name": "falseTemplateOrTemplateBinding",
5192
+ "type": {
5193
+ "text": "WhenTemplate<TSource>"
5194
+ },
5195
+ "description": "The template or a binding that gets the template to render when the condition is false."
5196
+ }
5197
+ ],
5198
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
5199
+ "privacy": "public"
5200
+ }
5201
+ ],
5202
+ "exports": [
5203
5203
  {
5204
5204
  "kind": "js",
5205
- "name": "*",
5205
+ "name": "whenElse",
5206
5206
  "declaration": {
5207
- "name": "*",
5208
- "package": "./encode"
5207
+ "name": "whenElse",
5208
+ "module": "src/directives/when-else/when-else.ts"
5209
5209
  }
5210
5210
  }
5211
5211
  ]
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.29.0",
4
+ "version": "15.30.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": "15.29.0",
33
- "@genesislcap/genx": "15.29.0",
34
- "@genesislcap/rollup-builder": "15.29.0",
35
- "@genesislcap/ts-builder": "15.29.0",
36
- "@genesislcap/uvu-playwright-builder": "15.29.0",
37
- "@genesislcap/vite-builder": "15.29.0",
38
- "@genesislcap/webpack-builder": "15.29.0",
32
+ "@genesislcap/foundation-testing": "15.30.1",
33
+ "@genesislcap/genx": "15.30.1",
34
+ "@genesislcap/rollup-builder": "15.30.1",
35
+ "@genesislcap/ts-builder": "15.30.1",
36
+ "@genesislcap/uvu-playwright-builder": "15.30.1",
37
+ "@genesislcap/vite-builder": "15.30.1",
38
+ "@genesislcap/webpack-builder": "15.30.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.29.0",
43
- "@genesislcap/foundation-logger": "15.29.0",
42
+ "@genesislcap/expression-builder": "15.30.1",
43
+ "@genesislcap/foundation-logger": "15.30.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",