@genesislcap/foundation-utils 14.30.2 → 14.30.3

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.
@@ -333,6 +333,59 @@
333
333
  }
334
334
  ]
335
335
  },
336
+ {
337
+ "kind": "javascript-module",
338
+ "path": "src/decorators/index.ts",
339
+ "declarations": [],
340
+ "exports": [
341
+ {
342
+ "kind": "js",
343
+ "name": "*",
344
+ "declaration": {
345
+ "name": "*",
346
+ "package": "./renderOnChange"
347
+ }
348
+ }
349
+ ]
350
+ },
351
+ {
352
+ "kind": "javascript-module",
353
+ "path": "src/decorators/renderOnChange.ts",
354
+ "declarations": [
355
+ {
356
+ "kind": "function",
357
+ "name": "renderOnChange",
358
+ "parameters": [
359
+ {
360
+ "name": "target",
361
+ "type": {
362
+ "text": "FASTElement & { render(): void }"
363
+ },
364
+ "description": "The target to define the property change handler on."
365
+ },
366
+ {
367
+ "name": "name",
368
+ "type": {
369
+ "text": "string"
370
+ },
371
+ "description": "The property name."
372
+ }
373
+ ],
374
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
375
+ "privacy": "public"
376
+ }
377
+ ],
378
+ "exports": [
379
+ {
380
+ "kind": "js",
381
+ "name": "renderOnChange",
382
+ "declaration": {
383
+ "name": "renderOnChange",
384
+ "module": "src/decorators/renderOnChange.ts"
385
+ }
386
+ }
387
+ ]
388
+ },
336
389
  {
337
390
  "kind": "javascript-module",
338
391
  "path": "src/design-system/design-system.ts",
@@ -405,59 +458,6 @@
405
458
  }
406
459
  ]
407
460
  },
408
- {
409
- "kind": "javascript-module",
410
- "path": "src/decorators/index.ts",
411
- "declarations": [],
412
- "exports": [
413
- {
414
- "kind": "js",
415
- "name": "*",
416
- "declaration": {
417
- "name": "*",
418
- "package": "./renderOnChange"
419
- }
420
- }
421
- ]
422
- },
423
- {
424
- "kind": "javascript-module",
425
- "path": "src/decorators/renderOnChange.ts",
426
- "declarations": [
427
- {
428
- "kind": "function",
429
- "name": "renderOnChange",
430
- "parameters": [
431
- {
432
- "name": "target",
433
- "type": {
434
- "text": "FASTElement & { render(): void }"
435
- },
436
- "description": "The target to define the property change handler on."
437
- },
438
- {
439
- "name": "name",
440
- "type": {
441
- "text": "string"
442
- },
443
- "description": "The property name."
444
- }
445
- ],
446
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
447
- "privacy": "public"
448
- }
449
- ],
450
- "exports": [
451
- {
452
- "kind": "js",
453
- "name": "renderOnChange",
454
- "declaration": {
455
- "name": "renderOnChange",
456
- "module": "src/decorators/renderOnChange.ts"
457
- }
458
- }
459
- ]
460
- },
461
461
  {
462
462
  "kind": "javascript-module",
463
463
  "path": "src/env/index.ts",
@@ -1567,7 +1567,7 @@
1567
1567
  },
1568
1568
  {
1569
1569
  "kind": "javascript-module",
1570
- "path": "src/directives/when-else/index.ts",
1570
+ "path": "src/directives/sync/index.ts",
1571
1571
  "declarations": [],
1572
1572
  "exports": [
1573
1573
  {
@@ -1575,18 +1575,28 @@
1575
1575
  "name": "*",
1576
1576
  "declaration": {
1577
1577
  "name": "*",
1578
- "package": "./when-else"
1578
+ "package": "./sync"
1579
1579
  }
1580
1580
  }
1581
1581
  ]
1582
1582
  },
1583
1583
  {
1584
1584
  "kind": "javascript-module",
1585
- "path": "src/directives/when-else/when-else.ts",
1585
+ "path": "src/directives/sync/sync.ts",
1586
1586
  "declarations": [
1587
+ {
1588
+ "kind": "variable",
1589
+ "name": "defaultEventMap",
1590
+ "type": {
1591
+ "text": "Map<string, EventName>"
1592
+ },
1593
+ "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])",
1594
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
1595
+ "privacy": "public"
1596
+ },
1587
1597
  {
1588
1598
  "kind": "function",
1589
- "name": "whenElse",
1599
+ "name": "sync",
1590
1600
  "return": {
1591
1601
  "type": {
1592
1602
  "text": "CaptureType<TSource>"
@@ -1597,42 +1607,56 @@
1597
1607
  "name": "binding",
1598
1608
  "type": {
1599
1609
  "text": "Binding<TSource, TReturn>"
1600
- },
1601
- "description": "The condition to test for rendering."
1610
+ }
1602
1611
  },
1603
1612
  {
1604
- "name": "trueTemplateOrTemplateBinding",
1613
+ "name": "conversionType",
1614
+ "default": "'string'",
1605
1615
  "type": {
1606
- "text": "WhenTemplate<TSource>"
1607
- },
1608
- "description": "The template or a binding that gets the template to render when the condition is true."
1616
+ "text": "ConversionType"
1617
+ }
1609
1618
  },
1610
1619
  {
1611
- "name": "falseTemplateOrTemplateBinding",
1620
+ "name": "eventName",
1621
+ "default": "'default'",
1612
1622
  "type": {
1613
- "text": "WhenTemplate<TSource>"
1614
- },
1615
- "description": "The template or a binding that gets the template to render when the condition is false."
1623
+ "text": "EventName"
1624
+ }
1625
+ },
1626
+ {
1627
+ "name": "keyAttr",
1628
+ "optional": true,
1629
+ "type": {
1630
+ "text": "string"
1631
+ }
1616
1632
  }
1617
1633
  ],
1618
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
1634
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
1619
1635
  "privacy": "public"
1620
1636
  }
1621
1637
  ],
1622
1638
  "exports": [
1623
1639
  {
1624
1640
  "kind": "js",
1625
- "name": "whenElse",
1641
+ "name": "defaultEventMap",
1626
1642
  "declaration": {
1627
- "name": "whenElse",
1628
- "module": "src/directives/when-else/when-else.ts"
1643
+ "name": "defaultEventMap",
1644
+ "module": "src/directives/sync/sync.ts"
1645
+ }
1646
+ },
1647
+ {
1648
+ "kind": "js",
1649
+ "name": "sync",
1650
+ "declaration": {
1651
+ "name": "sync",
1652
+ "module": "src/directives/sync/sync.ts"
1629
1653
  }
1630
1654
  }
1631
1655
  ]
1632
1656
  },
1633
1657
  {
1634
1658
  "kind": "javascript-module",
1635
- "path": "src/directives/sync/index.ts",
1659
+ "path": "src/directives/when-else/index.ts",
1636
1660
  "declarations": [],
1637
1661
  "exports": [
1638
1662
  {
@@ -1640,28 +1664,18 @@
1640
1664
  "name": "*",
1641
1665
  "declaration": {
1642
1666
  "name": "*",
1643
- "package": "./sync"
1667
+ "package": "./when-else"
1644
1668
  }
1645
1669
  }
1646
1670
  ]
1647
1671
  },
1648
1672
  {
1649
1673
  "kind": "javascript-module",
1650
- "path": "src/directives/sync/sync.ts",
1674
+ "path": "src/directives/when-else/when-else.ts",
1651
1675
  "declarations": [
1652
- {
1653
- "kind": "variable",
1654
- "name": "defaultEventMap",
1655
- "type": {
1656
- "text": "Map<string, EventName>"
1657
- },
1658
- "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])",
1659
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
1660
- "privacy": "public"
1661
- },
1662
1676
  {
1663
1677
  "kind": "function",
1664
- "name": "sync",
1678
+ "name": "whenElse",
1665
1679
  "return": {
1666
1680
  "type": {
1667
1681
  "text": "CaptureType<TSource>"
@@ -1672,49 +1686,35 @@
1672
1686
  "name": "binding",
1673
1687
  "type": {
1674
1688
  "text": "Binding<TSource, TReturn>"
1675
- }
1676
- },
1677
- {
1678
- "name": "conversionType",
1679
- "default": "'string'",
1680
- "type": {
1681
- "text": "ConversionType"
1682
- }
1689
+ },
1690
+ "description": "The condition to test for rendering."
1683
1691
  },
1684
1692
  {
1685
- "name": "eventName",
1686
- "default": "'default'",
1693
+ "name": "trueTemplateOrTemplateBinding",
1687
1694
  "type": {
1688
- "text": "EventName"
1689
- }
1695
+ "text": "WhenTemplate<TSource>"
1696
+ },
1697
+ "description": "The template or a binding that gets the template to render when the condition is true."
1690
1698
  },
1691
1699
  {
1692
- "name": "keyAttr",
1693
- "optional": true,
1700
+ "name": "falseTemplateOrTemplateBinding",
1694
1701
  "type": {
1695
- "text": "string"
1696
- }
1702
+ "text": "WhenTemplate<TSource>"
1703
+ },
1704
+ "description": "The template or a binding that gets the template to render when the condition is false."
1697
1705
  }
1698
1706
  ],
1699
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
1707
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
1700
1708
  "privacy": "public"
1701
1709
  }
1702
1710
  ],
1703
1711
  "exports": [
1704
1712
  {
1705
1713
  "kind": "js",
1706
- "name": "defaultEventMap",
1707
- "declaration": {
1708
- "name": "defaultEventMap",
1709
- "module": "src/directives/sync/sync.ts"
1710
- }
1711
- },
1712
- {
1713
- "kind": "js",
1714
- "name": "sync",
1714
+ "name": "whenElse",
1715
1715
  "declaration": {
1716
- "name": "sync",
1717
- "module": "src/directives/sync/sync.ts"
1716
+ "name": "whenElse",
1717
+ "module": "src/directives/when-else/when-else.ts"
1718
1718
  }
1719
1719
  }
1720
1720
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.30.2",
4
+ "version": "14.30.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -23,7 +23,7 @@
23
23
  "serve": "genx serve"
24
24
  },
25
25
  "devDependencies": {
26
- "@genesislcap/genx": "^14.30.2",
26
+ "@genesislcap/genx": "^14.30.3",
27
27
  "@playwright/test": "^1.18.1",
28
28
  "@types/node": "^16.4.3",
29
29
  "analytics": "^0.8.0",
@@ -53,5 +53,5 @@
53
53
  "access": "public"
54
54
  },
55
55
  "customElements": "dist/custom-elements.json",
56
- "gitHead": "4ea8f548f55cde9b895b115a43f39f45c62d60af"
56
+ "gitHead": "5f2858b6708b64c5ed6378fc54e09629539a563a"
57
57
  }