@genesislcap/web-core 14.157.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 (79) hide show
  1. package/README.md +67 -0
  2. package/dist/cjs/FAST/fast-colors.js +7 -0
  3. package/dist/cjs/FAST/fast-components.js +4 -0
  4. package/dist/cjs/FAST/fast-element.js +30 -0
  5. package/dist/cjs/FAST/fast-foundation.js +64 -0
  6. package/dist/cjs/FAST/fast-router.js +11 -0
  7. package/dist/cjs/FAST/fast-web-utilities.js +11 -0
  8. package/dist/cjs/FAST/index.js +9 -0
  9. package/dist/cjs/directives/index.js +5 -0
  10. package/dist/cjs/directives/sync.js +101 -0
  11. package/dist/cjs/directives/when-else.js +18 -0
  12. package/dist/cjs/index.js +6 -0
  13. package/dist/cjs/patterns/define.js +41 -0
  14. package/dist/cjs/patterns/index.js +5 -0
  15. package/dist/cjs/patterns/tag-for.js +24 -0
  16. package/dist/dts/FAST/fast-colors.d.ts +2 -0
  17. package/dist/dts/FAST/fast-colors.d.ts.map +1 -0
  18. package/dist/dts/FAST/fast-components.d.ts +2 -0
  19. package/dist/dts/FAST/fast-components.d.ts.map +1 -0
  20. package/dist/dts/FAST/fast-element.d.ts +2 -0
  21. package/dist/dts/FAST/fast-element.d.ts.map +1 -0
  22. package/dist/dts/FAST/fast-foundation.d.ts +2 -0
  23. package/dist/dts/FAST/fast-foundation.d.ts.map +1 -0
  24. package/dist/dts/FAST/fast-router.d.ts +2 -0
  25. package/dist/dts/FAST/fast-router.d.ts.map +1 -0
  26. package/dist/dts/FAST/fast-web-utilities.d.ts +2 -0
  27. package/dist/dts/FAST/fast-web-utilities.d.ts.map +1 -0
  28. package/dist/dts/FAST/index.d.ts +7 -0
  29. package/dist/dts/FAST/index.d.ts.map +1 -0
  30. package/dist/dts/directives/index.d.ts +3 -0
  31. package/dist/dts/directives/index.d.ts.map +1 -0
  32. package/dist/dts/directives/sync.d.ts +22 -0
  33. package/dist/dts/directives/sync.d.ts.map +1 -0
  34. package/dist/dts/directives/when-else.d.ts +13 -0
  35. package/dist/dts/directives/when-else.d.ts.map +1 -0
  36. package/dist/dts/index.d.ts +4 -0
  37. package/dist/dts/index.d.ts.map +1 -0
  38. package/dist/dts/patterns/define.d.ts +39 -0
  39. package/dist/dts/patterns/define.d.ts.map +1 -0
  40. package/dist/dts/patterns/index.d.ts +3 -0
  41. package/dist/dts/patterns/index.d.ts.map +1 -0
  42. package/dist/dts/patterns/tag-for.d.ts +21 -0
  43. package/dist/dts/patterns/tag-for.d.ts.map +1 -0
  44. package/dist/dts/tsdoc-metadata.json +11 -0
  45. package/dist/esm/FAST/fast-colors.js +1 -0
  46. package/dist/esm/FAST/fast-components.js +1 -0
  47. package/dist/esm/FAST/fast-element.js +1 -0
  48. package/dist/esm/FAST/fast-foundation.js +1 -0
  49. package/dist/esm/FAST/fast-router.js +1 -0
  50. package/dist/esm/FAST/fast-web-utilities.js +1 -0
  51. package/dist/esm/FAST/index.js +6 -0
  52. package/dist/esm/directives/index.js +2 -0
  53. package/dist/esm/directives/sync.js +97 -0
  54. package/dist/esm/directives/when-else.js +14 -0
  55. package/dist/esm/index.js +3 -0
  56. package/dist/esm/patterns/define.js +37 -0
  57. package/dist/esm/patterns/index.js +2 -0
  58. package/dist/esm/patterns/tag-for.js +20 -0
  59. package/dist/web-core.api.json +863 -0
  60. package/dist/web-core.d.ts +526 -0
  61. package/docs/.gitattributes +2 -0
  62. package/docs/api/index.md +12 -0
  63. package/docs/api/web-core.conversiontype.md +13 -0
  64. package/docs/api/web-core.defaulteventmap.md +13 -0
  65. package/docs/api/web-core.definefactory.md +41 -0
  66. package/docs/api/web-core.definefunction.md +15 -0
  67. package/docs/api/web-core.definitionoverrider.md +15 -0
  68. package/docs/api/web-core.eventname.md +13 -0
  69. package/docs/api/web-core.md +32 -0
  70. package/docs/api/web-core.sync.md +27 -0
  71. package/docs/api/web-core.tagfor.md +29 -0
  72. package/docs/api/web-core.templateelementdependency.md +16 -0
  73. package/docs/api/web-core.templateelements.md +20 -0
  74. package/docs/api/web-core.whenelse.md +26 -0
  75. package/docs/api-report.md +473 -0
  76. package/license.txt +46 -0
  77. package/package.json +39 -0
  78. package/tsconfig.cjs.json +10 -0
  79. package/tsdoc.json +20 -0
@@ -0,0 +1,863 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.34.9",
5
+ "schemaVersion": 1011,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@betaDocumentation",
119
+ "syntaxKind": "modifier"
120
+ },
121
+ {
122
+ "tagName": "@internalRemarks",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@preapproved",
127
+ "syntaxKind": "modifier"
128
+ },
129
+ {
130
+ "tagName": "@tagname",
131
+ "syntaxKind": "block",
132
+ "allowMultiple": true
133
+ },
134
+ {
135
+ "tagName": "@fires",
136
+ "syntaxKind": "block",
137
+ "allowMultiple": true
138
+ },
139
+ {
140
+ "tagName": "@csspart",
141
+ "syntaxKind": "block",
142
+ "allowMultiple": true
143
+ },
144
+ {
145
+ "tagName": "@slot",
146
+ "syntaxKind": "block",
147
+ "allowMultiple": true
148
+ }
149
+ ],
150
+ "supportForTags": {
151
+ "@alpha": true,
152
+ "@beta": true,
153
+ "@defaultValue": true,
154
+ "@decorator": true,
155
+ "@deprecated": true,
156
+ "@eventProperty": true,
157
+ "@example": true,
158
+ "@experimental": true,
159
+ "@inheritDoc": true,
160
+ "@internal": true,
161
+ "@label": true,
162
+ "@link": true,
163
+ "@override": true,
164
+ "@packageDocumentation": true,
165
+ "@param": true,
166
+ "@privateRemarks": true,
167
+ "@public": true,
168
+ "@readonly": true,
169
+ "@remarks": true,
170
+ "@returns": true,
171
+ "@sealed": true,
172
+ "@see": true,
173
+ "@throws": true,
174
+ "@typeParam": true,
175
+ "@virtual": true,
176
+ "@betaDocumentation": true,
177
+ "@internalRemarks": true,
178
+ "@preapproved": true,
179
+ "@tagname": true,
180
+ "@fires": true,
181
+ "@csspart": true,
182
+ "@slot": true
183
+ },
184
+ "reportUnsupportedHtmlElements": false
185
+ }
186
+ },
187
+ "kind": "Package",
188
+ "canonicalReference": "@genesislcap/web-core!",
189
+ "docComment": "",
190
+ "name": "@genesislcap/web-core",
191
+ "preserveMemberOrder": false,
192
+ "members": [
193
+ {
194
+ "kind": "EntryPoint",
195
+ "canonicalReference": "@genesislcap/web-core!",
196
+ "name": "",
197
+ "preserveMemberOrder": false,
198
+ "members": [
199
+ {
200
+ "kind": "TypeAlias",
201
+ "canonicalReference": "@genesislcap/web-core!ConversionType:type",
202
+ "docComment": "/**\n * Represents the possible types of value conversion for data synchronization.\n *\n * @public\n */\n",
203
+ "excerptTokens": [
204
+ {
205
+ "kind": "Content",
206
+ "text": "export type ConversionType = "
207
+ },
208
+ {
209
+ "kind": "Content",
210
+ "text": "'string' | 'number' | 'time' | 'boolean'"
211
+ },
212
+ {
213
+ "kind": "Content",
214
+ "text": ";"
215
+ }
216
+ ],
217
+ "fileUrlPath": "src/directives/sync.ts",
218
+ "releaseTag": "Public",
219
+ "name": "ConversionType",
220
+ "typeTokenRange": {
221
+ "startIndex": 1,
222
+ "endIndex": 2
223
+ }
224
+ },
225
+ {
226
+ "kind": "Variable",
227
+ "canonicalReference": "@genesislcap/web-core!defaultEventMap:var",
228
+ "docComment": "/**\n * A map that associates specific HTML element tags with their corresponding default event names.\n *\n * @public\n */\n",
229
+ "excerptTokens": [
230
+ {
231
+ "kind": "Content",
232
+ "text": "defaultEventMap: "
233
+ },
234
+ {
235
+ "kind": "Reference",
236
+ "text": "Map",
237
+ "canonicalReference": "!Map:interface"
238
+ },
239
+ {
240
+ "kind": "Content",
241
+ "text": "<string, "
242
+ },
243
+ {
244
+ "kind": "Reference",
245
+ "text": "EventName",
246
+ "canonicalReference": "@genesislcap/web-core!EventName:type"
247
+ },
248
+ {
249
+ "kind": "Content",
250
+ "text": ">"
251
+ }
252
+ ],
253
+ "fileUrlPath": "src/directives/sync.ts",
254
+ "isReadonly": true,
255
+ "releaseTag": "Public",
256
+ "name": "defaultEventMap",
257
+ "variableTypeTokenRange": {
258
+ "startIndex": 1,
259
+ "endIndex": 5
260
+ }
261
+ },
262
+ {
263
+ "kind": "Variable",
264
+ "canonicalReference": "@genesislcap/web-core!defineFactory:var",
265
+ "docComment": "/**\n * Defines a platform custom element based on the provided type and definition.\n *\n * @param Type - The custom element Type / Class to define.\n *\n * @param overriderOrBase - A function that merges definitions, or the base definition if custom merging is not needed.\n *\n * @returns The type class.\n *\n * @example\n *\n * An example using custom definition merge logic, useful if you need to impose hard restrictions.\n * ```ts\n * const definitionOverrider = (definition) => ({\n * ...baseDefinition,\n * ...definition,\n * styles: baseDefinition.styles,\n * shadowOptions: {\n * mode: 'closed,\n * },\n * });\n * export const define = defineFactory(LoginForm, definitionOverrider);\n * ```\n *\n * @example\n *\n * You can provide the base definition if you're happy with the default spread operator merge logic.\n * ```ts\n * export const define = defineFactory(LoginForm, baseDefinition);\n * ```\n *\n * @beta\n */\n",
266
+ "excerptTokens": [
267
+ {
268
+ "kind": "Content",
269
+ "text": "defineFactory: "
270
+ },
271
+ {
272
+ "kind": "Content",
273
+ "text": "<TType extends "
274
+ },
275
+ {
276
+ "kind": "Reference",
277
+ "text": "Constructable",
278
+ "canonicalReference": "@microsoft/fast-element!Constructable:type"
279
+ },
280
+ {
281
+ "kind": "Content",
282
+ "text": "<"
283
+ },
284
+ {
285
+ "kind": "Reference",
286
+ "text": "FASTElement",
287
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
288
+ },
289
+ {
290
+ "kind": "Content",
291
+ "text": ">>(Type: TType, overriderOrBase: "
292
+ },
293
+ {
294
+ "kind": "Reference",
295
+ "text": "DefinitionOverrider",
296
+ "canonicalReference": "@genesislcap/web-core!DefinitionOverrider:type"
297
+ },
298
+ {
299
+ "kind": "Content",
300
+ "text": " | "
301
+ },
302
+ {
303
+ "kind": "Reference",
304
+ "text": "PartialFASTElementDefinition",
305
+ "canonicalReference": "@microsoft/fast-element!PartialFASTElementDefinition:interface"
306
+ },
307
+ {
308
+ "kind": "Content",
309
+ "text": ") => "
310
+ },
311
+ {
312
+ "kind": "Reference",
313
+ "text": "DefineFunction",
314
+ "canonicalReference": "@genesislcap/web-core!DefineFunction:type"
315
+ },
316
+ {
317
+ "kind": "Content",
318
+ "text": "<TType>"
319
+ }
320
+ ],
321
+ "fileUrlPath": "src/patterns/define.ts",
322
+ "isReadonly": true,
323
+ "releaseTag": "Beta",
324
+ "name": "defineFactory",
325
+ "variableTypeTokenRange": {
326
+ "startIndex": 1,
327
+ "endIndex": 12
328
+ }
329
+ },
330
+ {
331
+ "kind": "TypeAlias",
332
+ "canonicalReference": "@genesislcap/web-core!DefineFunction:type",
333
+ "docComment": "/**\n * @beta\n */\n",
334
+ "excerptTokens": [
335
+ {
336
+ "kind": "Content",
337
+ "text": "export type DefineFunction<TType> = "
338
+ },
339
+ {
340
+ "kind": "Content",
341
+ "text": "(definition: "
342
+ },
343
+ {
344
+ "kind": "Reference",
345
+ "text": "PartialFASTElementDefinition",
346
+ "canonicalReference": "@microsoft/fast-element!PartialFASTElementDefinition:interface"
347
+ },
348
+ {
349
+ "kind": "Content",
350
+ "text": ") => TType"
351
+ },
352
+ {
353
+ "kind": "Content",
354
+ "text": ";"
355
+ }
356
+ ],
357
+ "fileUrlPath": "src/patterns/define.ts",
358
+ "releaseTag": "Beta",
359
+ "name": "DefineFunction",
360
+ "typeParameters": [
361
+ {
362
+ "typeParameterName": "TType",
363
+ "constraintTokenRange": {
364
+ "startIndex": 0,
365
+ "endIndex": 0
366
+ },
367
+ "defaultTypeTokenRange": {
368
+ "startIndex": 0,
369
+ "endIndex": 0
370
+ }
371
+ }
372
+ ],
373
+ "typeTokenRange": {
374
+ "startIndex": 1,
375
+ "endIndex": 4
376
+ }
377
+ },
378
+ {
379
+ "kind": "TypeAlias",
380
+ "canonicalReference": "@genesislcap/web-core!DefinitionOverrider:type",
381
+ "docComment": "/**\n * @beta\n */\n",
382
+ "excerptTokens": [
383
+ {
384
+ "kind": "Content",
385
+ "text": "export type DefinitionOverrider = "
386
+ },
387
+ {
388
+ "kind": "Content",
389
+ "text": "(override: "
390
+ },
391
+ {
392
+ "kind": "Reference",
393
+ "text": "PartialFASTElementDefinition",
394
+ "canonicalReference": "@microsoft/fast-element!PartialFASTElementDefinition:interface"
395
+ },
396
+ {
397
+ "kind": "Content",
398
+ "text": ") => "
399
+ },
400
+ {
401
+ "kind": "Reference",
402
+ "text": "PartialFASTElementDefinition",
403
+ "canonicalReference": "@microsoft/fast-element!PartialFASTElementDefinition:interface"
404
+ },
405
+ {
406
+ "kind": "Content",
407
+ "text": ";"
408
+ }
409
+ ],
410
+ "fileUrlPath": "src/patterns/define.ts",
411
+ "releaseTag": "Beta",
412
+ "name": "DefinitionOverrider",
413
+ "typeTokenRange": {
414
+ "startIndex": 1,
415
+ "endIndex": 5
416
+ }
417
+ },
418
+ {
419
+ "kind": "TypeAlias",
420
+ "canonicalReference": "@genesislcap/web-core!EventName:type",
421
+ "docComment": "/**\n * Represents the possible event names for data synchronization.\n *\n * @public\n */\n",
422
+ "excerptTokens": [
423
+ {
424
+ "kind": "Content",
425
+ "text": "export type EventName = "
426
+ },
427
+ {
428
+ "kind": "Content",
429
+ "text": "'input' | 'change' | 'default'"
430
+ },
431
+ {
432
+ "kind": "Content",
433
+ "text": ";"
434
+ }
435
+ ],
436
+ "fileUrlPath": "src/directives/sync.ts",
437
+ "releaseTag": "Public",
438
+ "name": "EventName",
439
+ "typeTokenRange": {
440
+ "startIndex": 1,
441
+ "endIndex": 2
442
+ }
443
+ },
444
+ {
445
+ "kind": "Function",
446
+ "canonicalReference": "@genesislcap/web-core!sync:function(1)",
447
+ "docComment": "/**\n * Creates a synchronization directive that binds a data source to an HTML element,\n *\n * @public\n */\n",
448
+ "excerptTokens": [
449
+ {
450
+ "kind": "Content",
451
+ "text": "export declare function sync<TSource = "
452
+ },
453
+ {
454
+ "kind": "Content",
455
+ "text": "any"
456
+ },
457
+ {
458
+ "kind": "Content",
459
+ "text": ", TReturn = "
460
+ },
461
+ {
462
+ "kind": "Content",
463
+ "text": "any"
464
+ },
465
+ {
466
+ "kind": "Content",
467
+ "text": ">(binding: "
468
+ },
469
+ {
470
+ "kind": "Reference",
471
+ "text": "Binding",
472
+ "canonicalReference": "@microsoft/fast-element!Binding:type"
473
+ },
474
+ {
475
+ "kind": "Content",
476
+ "text": "<TSource, TReturn>"
477
+ },
478
+ {
479
+ "kind": "Content",
480
+ "text": ", conversionType?: "
481
+ },
482
+ {
483
+ "kind": "Reference",
484
+ "text": "ConversionType",
485
+ "canonicalReference": "@genesislcap/web-core!ConversionType:type"
486
+ },
487
+ {
488
+ "kind": "Content",
489
+ "text": ", eventName?: "
490
+ },
491
+ {
492
+ "kind": "Reference",
493
+ "text": "EventName",
494
+ "canonicalReference": "@genesislcap/web-core!EventName:type"
495
+ },
496
+ {
497
+ "kind": "Content",
498
+ "text": ", keyAttr?: "
499
+ },
500
+ {
501
+ "kind": "Content",
502
+ "text": "string"
503
+ },
504
+ {
505
+ "kind": "Content",
506
+ "text": "): "
507
+ },
508
+ {
509
+ "kind": "Reference",
510
+ "text": "CaptureType",
511
+ "canonicalReference": "@microsoft/fast-element!CaptureType:interface"
512
+ },
513
+ {
514
+ "kind": "Content",
515
+ "text": "<TSource>"
516
+ },
517
+ {
518
+ "kind": "Content",
519
+ "text": ";"
520
+ }
521
+ ],
522
+ "fileUrlPath": "src/directives/sync.ts",
523
+ "returnTypeTokenRange": {
524
+ "startIndex": 14,
525
+ "endIndex": 16
526
+ },
527
+ "releaseTag": "Public",
528
+ "overloadIndex": 1,
529
+ "parameters": [
530
+ {
531
+ "parameterName": "binding",
532
+ "parameterTypeTokenRange": {
533
+ "startIndex": 5,
534
+ "endIndex": 7
535
+ },
536
+ "isOptional": false
537
+ },
538
+ {
539
+ "parameterName": "conversionType",
540
+ "parameterTypeTokenRange": {
541
+ "startIndex": 8,
542
+ "endIndex": 9
543
+ },
544
+ "isOptional": true
545
+ },
546
+ {
547
+ "parameterName": "eventName",
548
+ "parameterTypeTokenRange": {
549
+ "startIndex": 10,
550
+ "endIndex": 11
551
+ },
552
+ "isOptional": true
553
+ },
554
+ {
555
+ "parameterName": "keyAttr",
556
+ "parameterTypeTokenRange": {
557
+ "startIndex": 12,
558
+ "endIndex": 13
559
+ },
560
+ "isOptional": true
561
+ }
562
+ ],
563
+ "typeParameters": [
564
+ {
565
+ "typeParameterName": "TSource",
566
+ "constraintTokenRange": {
567
+ "startIndex": 0,
568
+ "endIndex": 0
569
+ },
570
+ "defaultTypeTokenRange": {
571
+ "startIndex": 1,
572
+ "endIndex": 2
573
+ }
574
+ },
575
+ {
576
+ "typeParameterName": "TReturn",
577
+ "constraintTokenRange": {
578
+ "startIndex": 0,
579
+ "endIndex": 0
580
+ },
581
+ "defaultTypeTokenRange": {
582
+ "startIndex": 3,
583
+ "endIndex": 4
584
+ }
585
+ }
586
+ ],
587
+ "name": "sync"
588
+ },
589
+ {
590
+ "kind": "Function",
591
+ "canonicalReference": "@genesislcap/web-core!tagFor:function(1)",
592
+ "docComment": "/**\n * Determines what HTML tag name to use for the dependency.\n *\n * @param dependency - The dependency the template is dependent on.\n *\n * @returns The tag name to use in markup.\n *\n * @beta\n */\n",
593
+ "excerptTokens": [
594
+ {
595
+ "kind": "Content",
596
+ "text": "export declare function tagFor(dependency: "
597
+ },
598
+ {
599
+ "kind": "Reference",
600
+ "text": "TemplateElementDependency",
601
+ "canonicalReference": "@genesislcap/web-core!TemplateElementDependency:type"
602
+ },
603
+ {
604
+ "kind": "Content",
605
+ "text": "): "
606
+ },
607
+ {
608
+ "kind": "Content",
609
+ "text": "string"
610
+ },
611
+ {
612
+ "kind": "Content",
613
+ "text": ";"
614
+ }
615
+ ],
616
+ "fileUrlPath": "src/patterns/tag-for.ts",
617
+ "returnTypeTokenRange": {
618
+ "startIndex": 3,
619
+ "endIndex": 4
620
+ },
621
+ "releaseTag": "Beta",
622
+ "overloadIndex": 1,
623
+ "parameters": [
624
+ {
625
+ "parameterName": "dependency",
626
+ "parameterTypeTokenRange": {
627
+ "startIndex": 1,
628
+ "endIndex": 2
629
+ },
630
+ "isOptional": false
631
+ }
632
+ ],
633
+ "name": "tagFor"
634
+ },
635
+ {
636
+ "kind": "TypeAlias",
637
+ "canonicalReference": "@genesislcap/web-core!TemplateElementDependency:type",
638
+ "docComment": "/**\n * Used to designate a template's dependency on another custom element.\n *\n * @beta\n */\n",
639
+ "excerptTokens": [
640
+ {
641
+ "kind": "Content",
642
+ "text": "export type TemplateElementDependency = "
643
+ },
644
+ {
645
+ "kind": "Content",
646
+ "text": "string | "
647
+ },
648
+ {
649
+ "kind": "Reference",
650
+ "text": "FASTElementDefinition",
651
+ "canonicalReference": "@microsoft/fast-element!FASTElementDefinition:class"
652
+ },
653
+ {
654
+ "kind": "Content",
655
+ "text": " | "
656
+ },
657
+ {
658
+ "kind": "Reference",
659
+ "text": "Constructable",
660
+ "canonicalReference": "@microsoft/fast-element!Constructable:type"
661
+ },
662
+ {
663
+ "kind": "Content",
664
+ "text": "<"
665
+ },
666
+ {
667
+ "kind": "Reference",
668
+ "text": "FASTElement",
669
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
670
+ },
671
+ {
672
+ "kind": "Content",
673
+ "text": ">"
674
+ },
675
+ {
676
+ "kind": "Content",
677
+ "text": ";"
678
+ }
679
+ ],
680
+ "fileUrlPath": "src/patterns/tag-for.ts",
681
+ "releaseTag": "Beta",
682
+ "name": "TemplateElementDependency",
683
+ "typeTokenRange": {
684
+ "startIndex": 1,
685
+ "endIndex": 8
686
+ }
687
+ },
688
+ {
689
+ "kind": "TypeAlias",
690
+ "canonicalReference": "@genesislcap/web-core!TemplateElements:type",
691
+ "docComment": "/**\n * Used to help map components / elements for tagFor usage\n *\n * @beta\n */\n",
692
+ "excerptTokens": [
693
+ {
694
+ "kind": "Content",
695
+ "text": "export type TemplateElements = "
696
+ },
697
+ {
698
+ "kind": "Content",
699
+ "text": "{\n [key: string]: "
700
+ },
701
+ {
702
+ "kind": "Reference",
703
+ "text": "TemplateElementDependency",
704
+ "canonicalReference": "@genesislcap/web-core!TemplateElementDependency:type"
705
+ },
706
+ {
707
+ "kind": "Content",
708
+ "text": ";\n}"
709
+ },
710
+ {
711
+ "kind": "Content",
712
+ "text": ";"
713
+ }
714
+ ],
715
+ "fileUrlPath": "src/patterns/tag-for.ts",
716
+ "releaseTag": "Beta",
717
+ "name": "TemplateElements",
718
+ "typeTokenRange": {
719
+ "startIndex": 1,
720
+ "endIndex": 4
721
+ }
722
+ },
723
+ {
724
+ "kind": "Function",
725
+ "canonicalReference": "@genesislcap/web-core!whenElse:function(1)",
726
+ "docComment": "/**\n * Directive that allows supplying an \"else\" template to the traditional {@link https://www.fast.design/docs/api/fast-element.when/#when-function} directive\n *\n * @param binding - The condition to test for rendering.\n *\n * @param trueTemplateOrTemplateBinding - The template or a binding that gets the template to render when the condition is true.\n *\n * @param falseTemplateOrTemplateBinding - The template or a binding that gets the template to render when the condition is false.\n *\n * @public\n */\n",
727
+ "excerptTokens": [
728
+ {
729
+ "kind": "Content",
730
+ "text": "export declare function whenElse<TSource = "
731
+ },
732
+ {
733
+ "kind": "Content",
734
+ "text": "any"
735
+ },
736
+ {
737
+ "kind": "Content",
738
+ "text": ", TReturn = "
739
+ },
740
+ {
741
+ "kind": "Content",
742
+ "text": "any"
743
+ },
744
+ {
745
+ "kind": "Content",
746
+ "text": ">(binding: "
747
+ },
748
+ {
749
+ "kind": "Reference",
750
+ "text": "Binding",
751
+ "canonicalReference": "@microsoft/fast-element!Binding:type"
752
+ },
753
+ {
754
+ "kind": "Content",
755
+ "text": "<TSource, TReturn>"
756
+ },
757
+ {
758
+ "kind": "Content",
759
+ "text": ", trueTemplateOrTemplateBinding: "
760
+ },
761
+ {
762
+ "kind": "Reference",
763
+ "text": "WhenTemplate",
764
+ "canonicalReference": "@genesislcap/web-core!~WhenTemplate:type"
765
+ },
766
+ {
767
+ "kind": "Content",
768
+ "text": "<TSource>"
769
+ },
770
+ {
771
+ "kind": "Content",
772
+ "text": ", falseTemplateOrTemplateBinding: "
773
+ },
774
+ {
775
+ "kind": "Reference",
776
+ "text": "WhenTemplate",
777
+ "canonicalReference": "@genesislcap/web-core!~WhenTemplate:type"
778
+ },
779
+ {
780
+ "kind": "Content",
781
+ "text": "<TSource>"
782
+ },
783
+ {
784
+ "kind": "Content",
785
+ "text": "): "
786
+ },
787
+ {
788
+ "kind": "Reference",
789
+ "text": "CaptureType",
790
+ "canonicalReference": "@microsoft/fast-element!CaptureType:interface"
791
+ },
792
+ {
793
+ "kind": "Content",
794
+ "text": "<TSource>"
795
+ },
796
+ {
797
+ "kind": "Content",
798
+ "text": ";"
799
+ }
800
+ ],
801
+ "fileUrlPath": "src/directives/when-else.ts",
802
+ "returnTypeTokenRange": {
803
+ "startIndex": 14,
804
+ "endIndex": 16
805
+ },
806
+ "releaseTag": "Public",
807
+ "overloadIndex": 1,
808
+ "parameters": [
809
+ {
810
+ "parameterName": "binding",
811
+ "parameterTypeTokenRange": {
812
+ "startIndex": 5,
813
+ "endIndex": 7
814
+ },
815
+ "isOptional": false
816
+ },
817
+ {
818
+ "parameterName": "trueTemplateOrTemplateBinding",
819
+ "parameterTypeTokenRange": {
820
+ "startIndex": 8,
821
+ "endIndex": 10
822
+ },
823
+ "isOptional": false
824
+ },
825
+ {
826
+ "parameterName": "falseTemplateOrTemplateBinding",
827
+ "parameterTypeTokenRange": {
828
+ "startIndex": 11,
829
+ "endIndex": 13
830
+ },
831
+ "isOptional": false
832
+ }
833
+ ],
834
+ "typeParameters": [
835
+ {
836
+ "typeParameterName": "TSource",
837
+ "constraintTokenRange": {
838
+ "startIndex": 0,
839
+ "endIndex": 0
840
+ },
841
+ "defaultTypeTokenRange": {
842
+ "startIndex": 1,
843
+ "endIndex": 2
844
+ }
845
+ },
846
+ {
847
+ "typeParameterName": "TReturn",
848
+ "constraintTokenRange": {
849
+ "startIndex": 0,
850
+ "endIndex": 0
851
+ },
852
+ "defaultTypeTokenRange": {
853
+ "startIndex": 3,
854
+ "endIndex": 4
855
+ }
856
+ }
857
+ ],
858
+ "name": "whenElse"
859
+ }
860
+ ]
861
+ }
862
+ ]
863
+ }