@genesislcap/foundation-utils 15.21.1 → 15.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +407 -407
  2. package/package.json +10 -10
@@ -250,6 +250,208 @@
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
+ },
253
455
  {
254
456
  "kind": "javascript-module",
255
457
  "path": "src/data/inMemoryDatabase.ts",
@@ -450,186 +652,60 @@
450
652
  },
451
653
  {
452
654
  "kind": "javascript-module",
453
- "path": "src/design-system/design-system.ts",
454
- "declarations": [
655
+ "path": "src/decorators/index.ts",
656
+ "declarations": [],
657
+ "exports": [
455
658
  {
456
- "kind": "function",
457
- "name": "assureDesignSystem",
458
- "return": {
459
- "type": {
460
- "text": "DesignSystemModule"
461
- }
462
- },
463
- "parameters": [
464
- {
465
- "name": "module",
466
- "type": {
467
- "text": "DesignSystemModule"
468
- }
469
- }
470
- ],
471
- "description": "assureDesignSystem.",
472
- "privacy": "public"
473
- },
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",
671
+ "declarations": [
474
672
  {
475
673
  "kind": "function",
476
- "name": "getCurrentDesignSystem",
477
- "return": {
478
- "type": {
479
- "text": ""
480
- }
481
- },
674
+ "name": "renderOnChange",
482
675
  "parameters": [
483
676
  {
484
- "name": "element",
677
+ "name": "target",
485
678
  "type": {
486
- "text": "HTMLElement"
679
+ "text": "FASTElement & { render(): void }"
487
680
  },
488
- "description": "The starting HTML element"
681
+ "description": "The target to define the property change handler on."
489
682
  },
490
683
  {
491
- "name": "fallbackPrefix",
684
+ "name": "name",
492
685
  "type": {
493
686
  "text": "string"
494
687
  },
495
- "description": "The prefix to fallback to if the provider is not available"
688
+ "description": "The property name."
496
689
  }
497
690
  ],
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.",
691
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
526
692
  "privacy": "public"
527
693
  }
528
694
  ],
529
695
  "exports": [
530
696
  {
531
697
  "kind": "js",
532
- "name": "assureDesignSystem",
533
- "declaration": {
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"
552
- }
553
- }
554
- ]
555
- },
556
- {
557
- "kind": "javascript-module",
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",
698
+ "name": "renderOnChange",
623
699
  "declaration": {
624
- "name": "buildEditableElementSelector",
625
- "module": "src/design-system/editable-elements.ts"
700
+ "name": "renderOnChange",
701
+ "module": "src/decorators/renderOnChange.ts"
626
702
  }
627
703
  }
628
704
  ]
629
705
  },
630
706
  {
631
707
  "kind": "javascript-module",
632
- "path": "src/design-system/index.ts",
708
+ "path": "src/directives/index.ts",
633
709
  "declarations": [],
634
710
  "exports": [
635
711
  {
@@ -637,7 +713,7 @@
637
713
  "name": "*",
638
714
  "declaration": {
639
715
  "name": "*",
640
- "package": "./design-system"
716
+ "package": "./sync"
641
717
  }
642
718
  },
643
719
  {
@@ -645,60 +721,7 @@
645
721
  "name": "*",
646
722
  "declaration": {
647
723
  "name": "*",
648
- "package": "./editable-elements"
649
- }
650
- }
651
- ]
652
- },
653
- {
654
- "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",
671
- "declarations": [
672
- {
673
- "kind": "function",
674
- "name": "renderOnChange",
675
- "parameters": [
676
- {
677
- "name": "target",
678
- "type": {
679
- "text": "FASTElement & { render(): void }"
680
- },
681
- "description": "The target to define the property change handler on."
682
- },
683
- {
684
- "name": "name",
685
- "type": {
686
- "text": "string"
687
- },
688
- "description": "The property name."
689
- }
690
- ],
691
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
692
- "privacy": "public"
693
- }
694
- ],
695
- "exports": [
696
- {
697
- "kind": "js",
698
- "name": "renderOnChange",
699
- "declaration": {
700
- "name": "renderOnChange",
701
- "module": "src/decorators/renderOnChange.ts"
724
+ "package": "./when-else"
702
725
  }
703
726
  }
704
727
  ]
@@ -1217,29 +1240,6 @@
1217
1240
  }
1218
1241
  ]
1219
1242
  },
1220
- {
1221
- "kind": "javascript-module",
1222
- "path": "src/directives/index.ts",
1223
- "declarations": [],
1224
- "exports": [
1225
- {
1226
- "kind": "js",
1227
- "name": "*",
1228
- "declaration": {
1229
- "name": "*",
1230
- "package": "./sync"
1231
- }
1232
- },
1233
- {
1234
- "kind": "js",
1235
- "name": "*",
1236
- "declaration": {
1237
- "name": "*",
1238
- "package": "./when-else"
1239
- }
1240
- }
1241
- ]
1242
- },
1243
1243
  {
1244
1244
  "kind": "javascript-module",
1245
1245
  "path": "src/error/errorMap.ts",
@@ -4904,98 +4904,188 @@
4904
4904
  },
4905
4905
  {
4906
4906
  "kind": "javascript-module",
4907
- "path": "src/encoding/base64/decode.ts",
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",
4908
4923
  "declarations": [
4909
4924
  {
4910
- "kind": "function",
4911
- "name": "decodeFromBase64",
4912
- "return": {
4913
- "type": {
4914
- "text": ""
4915
- }
4925
+ "kind": "variable",
4926
+ "name": "defaultEventMap",
4927
+ "type": {
4928
+ "text": "Map<string, EventName>"
4916
4929
  },
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.",
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.",
4930
4932
  "privacy": "public"
4931
4933
  },
4932
4934
  {
4933
4935
  "kind": "function",
4934
- "name": "decodeFromBase64WithPrefix",
4936
+ "name": "sync",
4935
4937
  "return": {
4936
4938
  "type": {
4937
- "text": ""
4939
+ "text": "CaptureType<TSource>"
4938
4940
  }
4939
4941
  },
4940
4942
  "parameters": [
4941
4943
  {
4942
- "name": "value",
4944
+ "name": "binding",
4943
4945
  "type": {
4944
- "text": "string"
4945
- },
4946
- "description": "The value to decode from base64."
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,
4966
+ "type": {
4967
+ "text": "string"
4968
+ }
4947
4969
  }
4948
4970
  ],
4949
- "description": "Decodes a value from base64 with a prefix.",
4971
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
4950
4972
  "privacy": "public"
4951
4973
  }
4952
4974
  ],
4953
4975
  "exports": [
4954
4976
  {
4955
4977
  "kind": "js",
4956
- "name": "decodeFromBase64",
4978
+ "name": "defaultEventMap",
4957
4979
  "declaration": {
4958
- "name": "decodeFromBase64",
4959
- "module": "src/encoding/base64/decode.ts"
4980
+ "name": "defaultEventMap",
4981
+ "module": "src/directives/sync/sync.ts"
4960
4982
  }
4961
4983
  },
4962
4984
  {
4963
4985
  "kind": "js",
4964
- "name": "decodeFromBase64WithPrefix",
4986
+ "name": "sync",
4965
4987
  "declaration": {
4966
- "name": "decodeFromBase64WithPrefix",
4967
- "module": "src/encoding/base64/decode.ts"
4988
+ "name": "sync",
4989
+ "module": "src/directives/sync/sync.ts"
4968
4990
  }
4969
4991
  }
4970
4992
  ]
4971
4993
  },
4972
4994
  {
4973
4995
  "kind": "javascript-module",
4974
- "path": "src/encoding/base64/encode.ts",
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",
4975
5012
  "declarations": [
4976
5013
  {
4977
5014
  "kind": "function",
4978
- "name": "encodeToBase64",
5015
+ "name": "whenElse",
4979
5016
  "return": {
4980
5017
  "type": {
4981
- "text": ""
5018
+ "text": "CaptureType<TSource>"
4982
5019
  }
4983
5020
  },
4984
5021
  "parameters": [
4985
5022
  {
4986
- "name": "value",
5023
+ "name": "binding",
4987
5024
  "type": {
4988
- "text": "string | ArrayBuffer"
5025
+ "text": "Binding<TSource, TReturn>"
4989
5026
  },
4990
- "description": "The value to encode to base64."
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."
4991
5042
  }
4992
5043
  ],
4993
- "description": "Encodes the given value to base64.",
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",
5052
+ "declaration": {
5053
+ "name": "whenElse",
5054
+ "module": "src/directives/when-else/when-else.ts"
5055
+ }
5056
+ }
5057
+ ]
5058
+ },
5059
+ {
5060
+ "kind": "javascript-module",
5061
+ "path": "src/encoding/base64/decode.ts",
5062
+ "declarations": [
5063
+ {
5064
+ "kind": "function",
5065
+ "name": "decodeFromBase64",
5066
+ "return": {
5067
+ "type": {
5068
+ "text": ""
5069
+ }
5070
+ },
5071
+ "parameters": [
5072
+ {
5073
+ "name": "base64Value",
5074
+ "type": {
5075
+ "text": "string"
5076
+ }
5077
+ },
5078
+ {
5079
+ "description": "The value to decode from base64.",
5080
+ "name": "value"
5081
+ }
5082
+ ],
5083
+ "description": "Decodes a value from base64.",
4994
5084
  "privacy": "public"
4995
5085
  },
4996
5086
  {
4997
5087
  "kind": "function",
4998
- "name": "encodeToBase64WithPrefix",
5088
+ "name": "decodeFromBase64WithPrefix",
4999
5089
  "return": {
5000
5090
  "type": {
5001
5091
  "text": ""
@@ -5005,149 +5095,101 @@
5005
5095
  {
5006
5096
  "name": "value",
5007
5097
  "type": {
5008
- "text": "string | ArrayBuffer"
5098
+ "text": "string"
5009
5099
  },
5010
- "description": "The value to encode to base64."
5100
+ "description": "The value to decode from base64."
5011
5101
  }
5012
5102
  ],
5013
- "description": "Encodes the given value with a prefix to base64.",
5103
+ "description": "Decodes a value from base64 with a prefix.",
5014
5104
  "privacy": "public"
5015
5105
  }
5016
5106
  ],
5017
5107
  "exports": [
5018
5108
  {
5019
5109
  "kind": "js",
5020
- "name": "encodeToBase64",
5021
- "declaration": {
5022
- "name": "encodeToBase64",
5023
- "module": "src/encoding/base64/encode.ts"
5024
- }
5025
- },
5026
- {
5027
- "kind": "js",
5028
- "name": "encodeToBase64WithPrefix",
5029
- "declaration": {
5030
- "name": "encodeToBase64WithPrefix",
5031
- "module": "src/encoding/base64/encode.ts"
5032
- }
5033
- }
5034
- ]
5035
- },
5036
- {
5037
- "kind": "javascript-module",
5038
- "path": "src/encoding/base64/index.ts",
5039
- "declarations": [],
5040
- "exports": [
5041
- {
5042
- "kind": "js",
5043
- "name": "*",
5110
+ "name": "decodeFromBase64",
5044
5111
  "declaration": {
5045
- "name": "*",
5046
- "package": "./decode"
5112
+ "name": "decodeFromBase64",
5113
+ "module": "src/encoding/base64/decode.ts"
5047
5114
  }
5048
5115
  },
5049
5116
  {
5050
5117
  "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": "*",
5118
+ "name": "decodeFromBase64WithPrefix",
5067
5119
  "declaration": {
5068
- "name": "*",
5069
- "package": "./sync"
5120
+ "name": "decodeFromBase64WithPrefix",
5121
+ "module": "src/encoding/base64/decode.ts"
5070
5122
  }
5071
5123
  }
5072
5124
  ]
5073
5125
  },
5074
5126
  {
5075
5127
  "kind": "javascript-module",
5076
- "path": "src/directives/sync/sync.ts",
5128
+ "path": "src/encoding/base64/encode.ts",
5077
5129
  "declarations": [
5078
5130
  {
5079
- "kind": "variable",
5080
- "name": "defaultEventMap",
5081
- "type": {
5082
- "text": "Map<string, EventName>"
5131
+ "kind": "function",
5132
+ "name": "encodeToBase64",
5133
+ "return": {
5134
+ "type": {
5135
+ "text": ""
5136
+ }
5083
5137
  },
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.",
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.",
5086
5148
  "privacy": "public"
5087
5149
  },
5088
5150
  {
5089
5151
  "kind": "function",
5090
- "name": "sync",
5152
+ "name": "encodeToBase64WithPrefix",
5091
5153
  "return": {
5092
5154
  "type": {
5093
- "text": "CaptureType<TSource>"
5155
+ "text": ""
5094
5156
  }
5095
5157
  },
5096
5158
  "parameters": [
5097
5159
  {
5098
- "name": "binding",
5099
- "type": {
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,
5160
+ "name": "value",
5120
5161
  "type": {
5121
- "text": "string"
5122
- }
5162
+ "text": "string | ArrayBuffer"
5163
+ },
5164
+ "description": "The value to encode to base64."
5123
5165
  }
5124
5166
  ],
5125
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
5167
+ "description": "Encodes the given value with a prefix to base64.",
5126
5168
  "privacy": "public"
5127
5169
  }
5128
5170
  ],
5129
5171
  "exports": [
5130
5172
  {
5131
5173
  "kind": "js",
5132
- "name": "defaultEventMap",
5174
+ "name": "encodeToBase64",
5133
5175
  "declaration": {
5134
- "name": "defaultEventMap",
5135
- "module": "src/directives/sync/sync.ts"
5176
+ "name": "encodeToBase64",
5177
+ "module": "src/encoding/base64/encode.ts"
5136
5178
  }
5137
5179
  },
5138
5180
  {
5139
5181
  "kind": "js",
5140
- "name": "sync",
5182
+ "name": "encodeToBase64WithPrefix",
5141
5183
  "declaration": {
5142
- "name": "sync",
5143
- "module": "src/directives/sync/sync.ts"
5184
+ "name": "encodeToBase64WithPrefix",
5185
+ "module": "src/encoding/base64/encode.ts"
5144
5186
  }
5145
5187
  }
5146
5188
  ]
5147
5189
  },
5148
5190
  {
5149
5191
  "kind": "javascript-module",
5150
- "path": "src/directives/when-else/index.ts",
5192
+ "path": "src/encoding/base64/index.ts",
5151
5193
  "declarations": [],
5152
5194
  "exports": [
5153
5195
  {
@@ -5155,57 +5197,15 @@
5155
5197
  "name": "*",
5156
5198
  "declaration": {
5157
5199
  "name": "*",
5158
- "package": "./when-else"
5200
+ "package": "./decode"
5159
5201
  }
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": [
5202
+ },
5203
5203
  {
5204
5204
  "kind": "js",
5205
- "name": "whenElse",
5205
+ "name": "*",
5206
5206
  "declaration": {
5207
- "name": "whenElse",
5208
- "module": "src/directives/when-else/when-else.ts"
5207
+ "name": "*",
5208
+ "package": "./encode"
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.21.1",
4
+ "version": "15.22.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.21.1",
33
- "@genesislcap/genx": "15.21.1",
34
- "@genesislcap/rollup-builder": "15.21.1",
35
- "@genesislcap/ts-builder": "15.21.1",
36
- "@genesislcap/uvu-playwright-builder": "15.21.1",
37
- "@genesislcap/vite-builder": "15.21.1",
38
- "@genesislcap/webpack-builder": "15.21.1",
32
+ "@genesislcap/foundation-testing": "15.22.0",
33
+ "@genesislcap/genx": "15.22.0",
34
+ "@genesislcap/rollup-builder": "15.22.0",
35
+ "@genesislcap/ts-builder": "15.22.0",
36
+ "@genesislcap/uvu-playwright-builder": "15.22.0",
37
+ "@genesislcap/vite-builder": "15.22.0",
38
+ "@genesislcap/webpack-builder": "15.22.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.21.1",
43
- "@genesislcap/foundation-logger": "15.21.1",
42
+ "@genesislcap/expression-builder": "15.22.0",
43
+ "@genesislcap/foundation-logger": "15.22.0",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",