@genesislcap/foundation-utils 15.87.0 → 15.88.1-GENC-0.7

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.
@@ -260,198 +260,53 @@
260
260
  },
261
261
  {
262
262
  "kind": "javascript-module",
263
- "path": "src/data/inMemoryDatabase.ts",
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",
264
279
  "declarations": [
265
280
  {
266
- "kind": "class",
267
- "description": "An in memory database of specific DatabaseRecord types.",
268
- "name": "InMemoryDatabase",
269
- "members": [
281
+ "kind": "function",
282
+ "name": "renderOnChange",
283
+ "parameters": [
270
284
  {
271
- "kind": "field",
272
- "name": "isWorking",
285
+ "name": "target",
273
286
  "type": {
274
- "text": "boolean"
287
+ "text": "FASTElement & { render(): void }"
275
288
  },
276
- "privacy": "public",
277
- "default": "false"
289
+ "description": "The target to define the property change handler on."
278
290
  },
279
291
  {
280
- "kind": "field",
281
- "name": "records",
292
+ "name": "name",
282
293
  "type": {
283
- "text": "Record<string, T>"
284
- },
285
- "privacy": "private",
286
- "default": "{}"
287
- },
288
- {
289
- "kind": "field",
290
- "name": "beforeUpdateListeners",
291
- "privacy": "private"
292
- },
293
- {
294
- "kind": "field",
295
- "name": "afterUpdateListeners",
296
- "privacy": "private"
297
- },
298
- {
299
- "kind": "method",
300
- "name": "create",
301
- "privacy": "public",
302
- "return": {
303
- "type": {
304
- "text": "Promise<DatabaseAccessResult.Create<T>>"
305
- }
306
- },
307
- "parameters": [
308
- {
309
- "name": "newValue",
310
- "type": {
311
- "text": "Omit<T, 'id'>"
312
- }
313
- }
314
- ]
315
- },
316
- {
317
- "kind": "method",
318
- "name": "read",
319
- "privacy": "public",
320
- "return": {
321
- "type": {
322
- "text": "Promise<DatabaseAccessResult.Read<T>>"
323
- }
324
- },
325
- "parameters": [
326
- {
327
- "name": "id",
328
- "type": {
329
- "text": "string"
330
- }
331
- }
332
- ]
333
- },
334
- {
335
- "kind": "method",
336
- "name": "update",
337
- "privacy": "public",
338
- "return": {
339
- "type": {
340
- "text": "Promise<DatabaseAccessResult.Update<T>>"
341
- }
342
- },
343
- "parameters": [
344
- {
345
- "name": "id",
346
- "type": {
347
- "text": "string"
348
- }
349
- },
350
- {
351
- "name": "newValue",
352
- "type": {
353
- "text": "Omit<Partial<T>, 'id'>"
354
- }
355
- }
356
- ]
357
- },
358
- {
359
- "kind": "method",
360
- "name": "delete",
361
- "privacy": "public",
362
- "return": {
363
- "type": {
364
- "text": "Promise<DatabaseAccessResult.Delete>"
365
- }
366
- },
367
- "parameters": [
368
- {
369
- "name": "id",
370
- "type": {
371
- "text": "string"
372
- }
373
- }
374
- ]
375
- },
376
- {
377
- "kind": "method",
378
- "name": "visit",
379
- "privacy": "public",
380
- "return": {
381
- "type": {
382
- "text": "Promise<void>"
383
- }
384
- },
385
- "parameters": [
386
- {
387
- "name": "visitor",
388
- "type": {
389
- "text": "(record: T) => void"
390
- }
391
- }
392
- ]
393
- },
394
- {
395
- "kind": "method",
396
- "name": "onBeforeUpdate",
397
- "privacy": "public",
398
- "return": {
399
- "type": {
400
- "text": "() => void"
401
- }
402
- },
403
- "parameters": [
404
- {
405
- "name": "listener",
406
- "type": {
407
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
408
- }
409
- }
410
- ]
411
- },
412
- {
413
- "kind": "method",
414
- "name": "onAfterUpdate",
415
- "privacy": "public",
416
- "return": {
417
- "type": {
418
- "text": "() => void"
419
- }
294
+ "text": "string"
420
295
  },
421
- "parameters": [
422
- {
423
- "name": "listener",
424
- "type": {
425
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
426
- }
427
- }
428
- ]
296
+ "description": "The property name."
429
297
  }
430
- ]
298
+ ],
299
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
300
+ "privacy": "public"
431
301
  }
432
302
  ],
433
303
  "exports": [
434
304
  {
435
305
  "kind": "js",
436
- "name": "InMemoryDatabase",
437
- "declaration": {
438
- "name": "InMemoryDatabase",
439
- "module": "src/data/inMemoryDatabase.ts"
440
- }
441
- }
442
- ]
443
- },
444
- {
445
- "kind": "javascript-module",
446
- "path": "src/data/index.ts",
447
- "declarations": [],
448
- "exports": [
449
- {
450
- "kind": "js",
451
- "name": "*",
306
+ "name": "renderOnChange",
452
307
  "declaration": {
453
- "name": "*",
454
- "package": "./inMemoryDatabase"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
455
310
  }
456
311
  }
457
312
  ]
@@ -696,76 +551,198 @@
696
551
  },
697
552
  {
698
553
  "kind": "javascript-module",
699
- "path": "src/directives/index.ts",
700
- "declarations": [],
701
- "exports": [
702
- {
703
- "kind": "js",
704
- "name": "*",
705
- "declaration": {
706
- "name": "*",
707
- "package": "./sync"
708
- }
709
- },
710
- {
711
- "kind": "js",
712
- "name": "*",
713
- "declaration": {
714
- "name": "*",
715
- "package": "./when-else"
716
- }
717
- }
718
- ]
719
- },
720
- {
721
- "kind": "javascript-module",
722
- "path": "src/decorators/index.ts",
723
- "declarations": [],
724
- "exports": [
725
- {
726
- "kind": "js",
727
- "name": "*",
728
- "declaration": {
729
- "name": "*",
730
- "package": "./renderOnChange"
731
- }
732
- }
733
- ]
734
- },
735
- {
736
- "kind": "javascript-module",
737
- "path": "src/decorators/renderOnChange.ts",
554
+ "path": "src/data/inMemoryDatabase.ts",
738
555
  "declarations": [
739
556
  {
740
- "kind": "function",
741
- "name": "renderOnChange",
742
- "parameters": [
557
+ "kind": "class",
558
+ "description": "An in memory database of specific DatabaseRecord types.",
559
+ "name": "InMemoryDatabase",
560
+ "members": [
743
561
  {
744
- "name": "target",
745
- "type": {
746
- "text": "FASTElement & { render(): void }"
562
+ "kind": "field",
563
+ "name": "isWorking",
564
+ "type": {
565
+ "text": "boolean"
747
566
  },
748
- "description": "The target to define the property change handler on."
567
+ "privacy": "public",
568
+ "default": "false"
749
569
  },
750
570
  {
751
- "name": "name",
571
+ "kind": "field",
572
+ "name": "records",
752
573
  "type": {
753
- "text": "string"
574
+ "text": "Record<string, T>"
754
575
  },
755
- "description": "The property name."
576
+ "privacy": "private",
577
+ "default": "{}"
578
+ },
579
+ {
580
+ "kind": "field",
581
+ "name": "beforeUpdateListeners",
582
+ "privacy": "private"
583
+ },
584
+ {
585
+ "kind": "field",
586
+ "name": "afterUpdateListeners",
587
+ "privacy": "private"
588
+ },
589
+ {
590
+ "kind": "method",
591
+ "name": "create",
592
+ "privacy": "public",
593
+ "return": {
594
+ "type": {
595
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
596
+ }
597
+ },
598
+ "parameters": [
599
+ {
600
+ "name": "newValue",
601
+ "type": {
602
+ "text": "Omit<T, 'id'>"
603
+ }
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ "kind": "method",
609
+ "name": "read",
610
+ "privacy": "public",
611
+ "return": {
612
+ "type": {
613
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
614
+ }
615
+ },
616
+ "parameters": [
617
+ {
618
+ "name": "id",
619
+ "type": {
620
+ "text": "string"
621
+ }
622
+ }
623
+ ]
624
+ },
625
+ {
626
+ "kind": "method",
627
+ "name": "update",
628
+ "privacy": "public",
629
+ "return": {
630
+ "type": {
631
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
632
+ }
633
+ },
634
+ "parameters": [
635
+ {
636
+ "name": "id",
637
+ "type": {
638
+ "text": "string"
639
+ }
640
+ },
641
+ {
642
+ "name": "newValue",
643
+ "type": {
644
+ "text": "Omit<Partial<T>, 'id'>"
645
+ }
646
+ }
647
+ ]
648
+ },
649
+ {
650
+ "kind": "method",
651
+ "name": "delete",
652
+ "privacy": "public",
653
+ "return": {
654
+ "type": {
655
+ "text": "Promise<DatabaseAccessResult.Delete>"
656
+ }
657
+ },
658
+ "parameters": [
659
+ {
660
+ "name": "id",
661
+ "type": {
662
+ "text": "string"
663
+ }
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "kind": "method",
669
+ "name": "visit",
670
+ "privacy": "public",
671
+ "return": {
672
+ "type": {
673
+ "text": "Promise<void>"
674
+ }
675
+ },
676
+ "parameters": [
677
+ {
678
+ "name": "visitor",
679
+ "type": {
680
+ "text": "(record: T) => void"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "kind": "method",
687
+ "name": "onBeforeUpdate",
688
+ "privacy": "public",
689
+ "return": {
690
+ "type": {
691
+ "text": "() => void"
692
+ }
693
+ },
694
+ "parameters": [
695
+ {
696
+ "name": "listener",
697
+ "type": {
698
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
699
+ }
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "kind": "method",
705
+ "name": "onAfterUpdate",
706
+ "privacy": "public",
707
+ "return": {
708
+ "type": {
709
+ "text": "() => void"
710
+ }
711
+ },
712
+ "parameters": [
713
+ {
714
+ "name": "listener",
715
+ "type": {
716
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
717
+ }
718
+ }
719
+ ]
756
720
  }
757
- ],
758
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
759
- "privacy": "public"
721
+ ]
760
722
  }
761
723
  ],
762
724
  "exports": [
763
725
  {
764
726
  "kind": "js",
765
- "name": "renderOnChange",
727
+ "name": "InMemoryDatabase",
766
728
  "declaration": {
767
- "name": "renderOnChange",
768
- "module": "src/decorators/renderOnChange.ts"
729
+ "name": "InMemoryDatabase",
730
+ "module": "src/data/inMemoryDatabase.ts"
731
+ }
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "kind": "javascript-module",
737
+ "path": "src/data/index.ts",
738
+ "declarations": [],
739
+ "exports": [
740
+ {
741
+ "kind": "js",
742
+ "name": "*",
743
+ "declaration": {
744
+ "name": "*",
745
+ "package": "./inMemoryDatabase"
769
746
  }
770
747
  }
771
748
  ]
@@ -1284,6 +1261,29 @@
1284
1261
  }
1285
1262
  ]
1286
1263
  },
1264
+ {
1265
+ "kind": "javascript-module",
1266
+ "path": "src/directives/index.ts",
1267
+ "declarations": [],
1268
+ "exports": [
1269
+ {
1270
+ "kind": "js",
1271
+ "name": "*",
1272
+ "declaration": {
1273
+ "name": "*",
1274
+ "package": "./sync"
1275
+ }
1276
+ },
1277
+ {
1278
+ "kind": "js",
1279
+ "name": "*",
1280
+ "declaration": {
1281
+ "name": "*",
1282
+ "package": "./when-else"
1283
+ }
1284
+ }
1285
+ ]
1286
+ },
1287
1287
  {
1288
1288
  "kind": "javascript-module",
1289
1289
  "path": "src/error/errorMap.ts",
@@ -5039,165 +5039,78 @@
5039
5039
  },
5040
5040
  {
5041
5041
  "kind": "javascript-module",
5042
- "path": "src/directives/sync/index.ts",
5043
- "declarations": [],
5044
- "exports": [
5045
- {
5046
- "kind": "js",
5047
- "name": "*",
5048
- "declaration": {
5049
- "name": "*",
5050
- "package": "./sync"
5051
- }
5052
- }
5053
- ]
5054
- },
5055
- {
5056
- "kind": "javascript-module",
5057
- "path": "src/directives/sync/sync.ts",
5042
+ "path": "src/encoding/base64/decode.ts",
5058
5043
  "declarations": [
5059
5044
  {
5060
- "kind": "variable",
5061
- "name": "defaultEventMap",
5062
- "type": {
5063
- "text": "Map<string, EventName>"
5045
+ "kind": "function",
5046
+ "name": "decodeFromBase64",
5047
+ "return": {
5048
+ "type": {
5049
+ "text": ""
5050
+ }
5064
5051
  },
5065
- "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])",
5066
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
5052
+ "parameters": [
5053
+ {
5054
+ "name": "base64Value",
5055
+ "type": {
5056
+ "text": "string"
5057
+ }
5058
+ },
5059
+ {
5060
+ "description": "The value to decode from base64.",
5061
+ "name": "value"
5062
+ }
5063
+ ],
5064
+ "description": "Decodes a value from base64.",
5067
5065
  "privacy": "public"
5068
5066
  },
5069
5067
  {
5070
5068
  "kind": "function",
5071
- "name": "sync",
5069
+ "name": "decodeFromBase64WithPrefix",
5072
5070
  "return": {
5073
5071
  "type": {
5074
- "text": "CaptureType<TSource>"
5072
+ "text": ""
5075
5073
  }
5076
5074
  },
5077
5075
  "parameters": [
5078
5076
  {
5079
- "name": "binding",
5080
- "type": {
5081
- "text": "Binding<TSource, TReturn>"
5082
- }
5083
- },
5084
- {
5085
- "name": "conversionType",
5086
- "default": "'string'",
5087
- "type": {
5088
- "text": "ConversionType"
5089
- }
5090
- },
5091
- {
5092
- "name": "eventName",
5093
- "default": "'default'",
5094
- "type": {
5095
- "text": "EventName"
5096
- }
5097
- },
5098
- {
5099
- "name": "keyAttr",
5100
- "optional": true,
5077
+ "name": "value",
5101
5078
  "type": {
5102
5079
  "text": "string"
5103
- }
5080
+ },
5081
+ "description": "The value to decode from base64."
5104
5082
  }
5105
5083
  ],
5106
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
5084
+ "description": "Decodes a value from base64 with a prefix.",
5107
5085
  "privacy": "public"
5108
5086
  }
5109
5087
  ],
5110
5088
  "exports": [
5111
5089
  {
5112
5090
  "kind": "js",
5113
- "name": "defaultEventMap",
5091
+ "name": "decodeFromBase64",
5114
5092
  "declaration": {
5115
- "name": "defaultEventMap",
5116
- "module": "src/directives/sync/sync.ts"
5093
+ "name": "decodeFromBase64",
5094
+ "module": "src/encoding/base64/decode.ts"
5117
5095
  }
5118
5096
  },
5119
5097
  {
5120
5098
  "kind": "js",
5121
- "name": "sync",
5122
- "declaration": {
5123
- "name": "sync",
5124
- "module": "src/directives/sync/sync.ts"
5125
- }
5126
- }
5127
- ]
5128
- },
5129
- {
5130
- "kind": "javascript-module",
5131
- "path": "src/directives/when-else/index.ts",
5132
- "declarations": [],
5133
- "exports": [
5134
- {
5135
- "kind": "js",
5136
- "name": "*",
5137
- "declaration": {
5138
- "name": "*",
5139
- "package": "./when-else"
5140
- }
5141
- }
5142
- ]
5143
- },
5144
- {
5145
- "kind": "javascript-module",
5146
- "path": "src/directives/when-else/when-else.ts",
5147
- "declarations": [
5148
- {
5149
- "kind": "function",
5150
- "name": "whenElse",
5151
- "return": {
5152
- "type": {
5153
- "text": "CaptureType<TSource>"
5154
- }
5155
- },
5156
- "parameters": [
5157
- {
5158
- "name": "binding",
5159
- "type": {
5160
- "text": "Binding<TSource, TReturn>"
5161
- },
5162
- "description": "The condition to test for rendering."
5163
- },
5164
- {
5165
- "name": "trueTemplateOrTemplateBinding",
5166
- "type": {
5167
- "text": "WhenTemplate<TSource>"
5168
- },
5169
- "description": "The template or a binding that gets the template to render when the condition is true."
5170
- },
5171
- {
5172
- "name": "falseTemplateOrTemplateBinding",
5173
- "type": {
5174
- "text": "WhenTemplate<TSource>"
5175
- },
5176
- "description": "The template or a binding that gets the template to render when the condition is false."
5177
- }
5178
- ],
5179
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
5180
- "privacy": "public"
5181
- }
5182
- ],
5183
- "exports": [
5184
- {
5185
- "kind": "js",
5186
- "name": "whenElse",
5099
+ "name": "decodeFromBase64WithPrefix",
5187
5100
  "declaration": {
5188
- "name": "whenElse",
5189
- "module": "src/directives/when-else/when-else.ts"
5101
+ "name": "decodeFromBase64WithPrefix",
5102
+ "module": "src/encoding/base64/decode.ts"
5190
5103
  }
5191
5104
  }
5192
5105
  ]
5193
5106
  },
5194
5107
  {
5195
5108
  "kind": "javascript-module",
5196
- "path": "src/encoding/base64/decode.ts",
5109
+ "path": "src/encoding/base64/encode.ts",
5197
5110
  "declarations": [
5198
5111
  {
5199
5112
  "kind": "function",
5200
- "name": "decodeFromBase64",
5113
+ "name": "encodeToBase64",
5201
5114
  "return": {
5202
5115
  "type": {
5203
5116
  "text": ""
@@ -5205,22 +5118,19 @@
5205
5118
  },
5206
5119
  "parameters": [
5207
5120
  {
5208
- "name": "base64Value",
5121
+ "name": "value",
5209
5122
  "type": {
5210
- "text": "string"
5211
- }
5212
- },
5213
- {
5214
- "description": "The value to decode from base64.",
5215
- "name": "value"
5123
+ "text": "string | ArrayBuffer"
5124
+ },
5125
+ "description": "The value to encode to base64."
5216
5126
  }
5217
5127
  ],
5218
- "description": "Decodes a value from base64.",
5128
+ "description": "Encodes the given value to base64.",
5219
5129
  "privacy": "public"
5220
5130
  },
5221
5131
  {
5222
5132
  "kind": "function",
5223
- "name": "decodeFromBase64WithPrefix",
5133
+ "name": "encodeToBase64WithPrefix",
5224
5134
  "return": {
5225
5135
  "type": {
5226
5136
  "text": ""
@@ -5230,101 +5140,149 @@
5230
5140
  {
5231
5141
  "name": "value",
5232
5142
  "type": {
5233
- "text": "string"
5143
+ "text": "string | ArrayBuffer"
5234
5144
  },
5235
- "description": "The value to decode from base64."
5145
+ "description": "The value to encode to base64."
5236
5146
  }
5237
5147
  ],
5238
- "description": "Decodes a value from base64 with a prefix.",
5148
+ "description": "Encodes the given value with a prefix to base64.",
5239
5149
  "privacy": "public"
5240
5150
  }
5241
5151
  ],
5242
5152
  "exports": [
5243
5153
  {
5244
5154
  "kind": "js",
5245
- "name": "decodeFromBase64",
5155
+ "name": "encodeToBase64",
5246
5156
  "declaration": {
5247
- "name": "decodeFromBase64",
5248
- "module": "src/encoding/base64/decode.ts"
5157
+ "name": "encodeToBase64",
5158
+ "module": "src/encoding/base64/encode.ts"
5249
5159
  }
5250
5160
  },
5251
5161
  {
5252
5162
  "kind": "js",
5253
- "name": "decodeFromBase64WithPrefix",
5163
+ "name": "encodeToBase64WithPrefix",
5254
5164
  "declaration": {
5255
- "name": "decodeFromBase64WithPrefix",
5256
- "module": "src/encoding/base64/decode.ts"
5165
+ "name": "encodeToBase64WithPrefix",
5166
+ "module": "src/encoding/base64/encode.ts"
5257
5167
  }
5258
5168
  }
5259
5169
  ]
5260
5170
  },
5261
5171
  {
5262
5172
  "kind": "javascript-module",
5263
- "path": "src/encoding/base64/encode.ts",
5173
+ "path": "src/encoding/base64/index.ts",
5174
+ "declarations": [],
5175
+ "exports": [
5176
+ {
5177
+ "kind": "js",
5178
+ "name": "*",
5179
+ "declaration": {
5180
+ "name": "*",
5181
+ "package": "./decode"
5182
+ }
5183
+ },
5184
+ {
5185
+ "kind": "js",
5186
+ "name": "*",
5187
+ "declaration": {
5188
+ "name": "*",
5189
+ "package": "./encode"
5190
+ }
5191
+ }
5192
+ ]
5193
+ },
5194
+ {
5195
+ "kind": "javascript-module",
5196
+ "path": "src/directives/sync/index.ts",
5197
+ "declarations": [],
5198
+ "exports": [
5199
+ {
5200
+ "kind": "js",
5201
+ "name": "*",
5202
+ "declaration": {
5203
+ "name": "*",
5204
+ "package": "./sync"
5205
+ }
5206
+ }
5207
+ ]
5208
+ },
5209
+ {
5210
+ "kind": "javascript-module",
5211
+ "path": "src/directives/sync/sync.ts",
5264
5212
  "declarations": [
5265
5213
  {
5266
- "kind": "function",
5267
- "name": "encodeToBase64",
5268
- "return": {
5269
- "type": {
5270
- "text": ""
5271
- }
5214
+ "kind": "variable",
5215
+ "name": "defaultEventMap",
5216
+ "type": {
5217
+ "text": "Map<string, EventName>"
5272
5218
  },
5273
- "parameters": [
5274
- {
5275
- "name": "value",
5276
- "type": {
5277
- "text": "string | ArrayBuffer"
5278
- },
5279
- "description": "The value to encode to base64."
5280
- }
5281
- ],
5282
- "description": "Encodes the given value to base64.",
5219
+ "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])",
5220
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
5283
5221
  "privacy": "public"
5284
5222
  },
5285
5223
  {
5286
5224
  "kind": "function",
5287
- "name": "encodeToBase64WithPrefix",
5225
+ "name": "sync",
5288
5226
  "return": {
5289
5227
  "type": {
5290
- "text": ""
5228
+ "text": "CaptureType<TSource>"
5291
5229
  }
5292
5230
  },
5293
5231
  "parameters": [
5294
5232
  {
5295
- "name": "value",
5233
+ "name": "binding",
5296
5234
  "type": {
5297
- "text": "string | ArrayBuffer"
5298
- },
5299
- "description": "The value to encode to base64."
5235
+ "text": "Binding<TSource, TReturn>"
5236
+ }
5237
+ },
5238
+ {
5239
+ "name": "conversionType",
5240
+ "default": "'string'",
5241
+ "type": {
5242
+ "text": "ConversionType"
5243
+ }
5244
+ },
5245
+ {
5246
+ "name": "eventName",
5247
+ "default": "'default'",
5248
+ "type": {
5249
+ "text": "EventName"
5250
+ }
5251
+ },
5252
+ {
5253
+ "name": "keyAttr",
5254
+ "optional": true,
5255
+ "type": {
5256
+ "text": "string"
5257
+ }
5300
5258
  }
5301
5259
  ],
5302
- "description": "Encodes the given value with a prefix to base64.",
5260
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
5303
5261
  "privacy": "public"
5304
5262
  }
5305
5263
  ],
5306
5264
  "exports": [
5307
5265
  {
5308
5266
  "kind": "js",
5309
- "name": "encodeToBase64",
5267
+ "name": "defaultEventMap",
5310
5268
  "declaration": {
5311
- "name": "encodeToBase64",
5312
- "module": "src/encoding/base64/encode.ts"
5269
+ "name": "defaultEventMap",
5270
+ "module": "src/directives/sync/sync.ts"
5313
5271
  }
5314
5272
  },
5315
5273
  {
5316
5274
  "kind": "js",
5317
- "name": "encodeToBase64WithPrefix",
5275
+ "name": "sync",
5318
5276
  "declaration": {
5319
- "name": "encodeToBase64WithPrefix",
5320
- "module": "src/encoding/base64/encode.ts"
5277
+ "name": "sync",
5278
+ "module": "src/directives/sync/sync.ts"
5321
5279
  }
5322
5280
  }
5323
5281
  ]
5324
5282
  },
5325
5283
  {
5326
5284
  "kind": "javascript-module",
5327
- "path": "src/encoding/base64/index.ts",
5285
+ "path": "src/directives/when-else/index.ts",
5328
5286
  "declarations": [],
5329
5287
  "exports": [
5330
5288
  {
@@ -5332,15 +5290,57 @@
5332
5290
  "name": "*",
5333
5291
  "declaration": {
5334
5292
  "name": "*",
5335
- "package": "./decode"
5293
+ "package": "./when-else"
5336
5294
  }
5337
- },
5295
+ }
5296
+ ]
5297
+ },
5298
+ {
5299
+ "kind": "javascript-module",
5300
+ "path": "src/directives/when-else/when-else.ts",
5301
+ "declarations": [
5302
+ {
5303
+ "kind": "function",
5304
+ "name": "whenElse",
5305
+ "return": {
5306
+ "type": {
5307
+ "text": "CaptureType<TSource>"
5308
+ }
5309
+ },
5310
+ "parameters": [
5311
+ {
5312
+ "name": "binding",
5313
+ "type": {
5314
+ "text": "Binding<TSource, TReturn>"
5315
+ },
5316
+ "description": "The condition to test for rendering."
5317
+ },
5318
+ {
5319
+ "name": "trueTemplateOrTemplateBinding",
5320
+ "type": {
5321
+ "text": "WhenTemplate<TSource>"
5322
+ },
5323
+ "description": "The template or a binding that gets the template to render when the condition is true."
5324
+ },
5325
+ {
5326
+ "name": "falseTemplateOrTemplateBinding",
5327
+ "type": {
5328
+ "text": "WhenTemplate<TSource>"
5329
+ },
5330
+ "description": "The template or a binding that gets the template to render when the condition is false."
5331
+ }
5332
+ ],
5333
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
5334
+ "privacy": "public"
5335
+ }
5336
+ ],
5337
+ "exports": [
5338
5338
  {
5339
5339
  "kind": "js",
5340
- "name": "*",
5340
+ "name": "whenElse",
5341
5341
  "declaration": {
5342
- "name": "*",
5343
- "package": "./encode"
5342
+ "name": "whenElse",
5343
+ "module": "src/directives/when-else/when-else.ts"
5344
5344
  }
5345
5345
  }
5346
5346
  ]
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.87.0",
4
+ "version": "15.88.1-GENC-0.7",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,17 +29,17 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.87.0",
33
- "@genesislcap/genx": "15.87.0",
34
- "@genesislcap/ts-builder": "15.87.0",
35
- "@genesislcap/uvu-playwright-builder": "15.87.0",
36
- "@genesislcap/vite-builder": "15.87.0",
37
- "@genesislcap/webpack-builder": "15.87.0",
32
+ "@genesislcap/foundation-testing": "15.88.1-GENC-0.7",
33
+ "@genesislcap/genx": "15.88.1-GENC-0.7",
34
+ "@genesislcap/ts-builder": "15.88.1-GENC-0.7",
35
+ "@genesislcap/uvu-playwright-builder": "15.88.1-GENC-0.7",
36
+ "@genesislcap/vite-builder": "15.88.1-GENC-0.7",
37
+ "@genesislcap/webpack-builder": "15.88.1-GENC-0.7",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.87.0",
42
- "@genesislcap/foundation-logger": "15.87.0",
41
+ "@genesislcap/expression-builder": "15.88.1-GENC-0.7",
42
+ "@genesislcap/foundation-logger": "15.88.1-GENC-0.7",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",