@nysds/components 1.16.1 → 1.17.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.
- package/custom-elements.json +480 -52
- package/dist/.vscode/vscode.html-custom-data.json +52 -9
- package/dist/custom-elements.json +480 -52
- package/dist/nysds.es.js +1752 -1560
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +218 -218
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-breadcrumbs/src/index.d.ts +1 -0
- package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +119 -0
- package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.figma.d.ts +1 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +2 -2
- package/dist/packages/nys-combobox/src/nys-combobox.d.ts +8 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +1 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +3 -1
- package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +2 -2
- package/dist/packages/nys-label/src/nys-label.d.ts +9 -6
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +1 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +2 -1
- package/dist/packages/nys-video/src/nys-video.d.ts +25 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -2
- package/packages/react/NysBreadcrumbItem.d.ts +72 -0
- package/packages/react/NysBreadcrumbItem.js +42 -0
- package/packages/react/NysBreadcrumbs.d.ts +89 -0
- package/packages/react/NysBreadcrumbs.js +50 -0
- package/packages/react/NysButton.d.ts +2 -2
- package/packages/react/NysErrorMessage.d.ts +3 -0
- package/packages/react/NysErrorMessage.js +2 -1
- package/packages/react/NysLabel.d.ts +16 -4
- package/packages/react/NysLabel.js +17 -3
- package/packages/react/NysVideo.d.ts +7 -1
- package/packages/react/NysVideo.js +14 -1
- package/packages/react/index.d.ts +1 -0
- package/packages/react/index.js +1 -0
- package/packages/react/nysds-jsx.d.ts +59 -5
|
@@ -1479,6 +1479,377 @@
|
|
|
1479
1479
|
}
|
|
1480
1480
|
]
|
|
1481
1481
|
},
|
|
1482
|
+
{
|
|
1483
|
+
"kind": "javascript-module",
|
|
1484
|
+
"path": "packages/nys-breadcrumbs/src/index.ts",
|
|
1485
|
+
"declarations": [],
|
|
1486
|
+
"exports": [
|
|
1487
|
+
{
|
|
1488
|
+
"kind": "js",
|
|
1489
|
+
"name": "*",
|
|
1490
|
+
"declaration": {
|
|
1491
|
+
"name": "*",
|
|
1492
|
+
"module": "packages/nys-breadcrumbs/src/nys-breadcrumbs"
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
]
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"kind": "javascript-module",
|
|
1499
|
+
"path": "packages/nys-breadcrumbs/src/nys-breadcrumbs.ts",
|
|
1500
|
+
"declarations": [
|
|
1501
|
+
{
|
|
1502
|
+
"kind": "class",
|
|
1503
|
+
"description": "A breadcrumb navigation trail composed of `nys-breadcrumbitem` elements.\nCollapses when the trail exceeds 5 items on desktop or 3 items on mobile,\nshowing the first, last, and item before the current page, with an ellipsis to expand.\nA single item renders as a back-to-parent link instead of a trail.",
|
|
1504
|
+
"name": "NysBreadcrumbs",
|
|
1505
|
+
"slots": [
|
|
1506
|
+
{
|
|
1507
|
+
"description": "One or more `nys-breadcrumbitem` elements defining the trail.",
|
|
1508
|
+
"name": ""
|
|
1509
|
+
}
|
|
1510
|
+
],
|
|
1511
|
+
"members": [
|
|
1512
|
+
{
|
|
1513
|
+
"kind": "field",
|
|
1514
|
+
"name": "id",
|
|
1515
|
+
"type": {
|
|
1516
|
+
"text": "string"
|
|
1517
|
+
},
|
|
1518
|
+
"default": "\"\"",
|
|
1519
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1520
|
+
"attribute": "id",
|
|
1521
|
+
"reflects": true
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"kind": "field",
|
|
1525
|
+
"name": "ariaLabel",
|
|
1526
|
+
"type": {
|
|
1527
|
+
"text": "string"
|
|
1528
|
+
},
|
|
1529
|
+
"default": "\"\"",
|
|
1530
|
+
"description": "Accessible label for the `<nav>` landmark. Defaults to \"path to this page\" if not set.\nOverride when multiple crumbs exist on the same page.",
|
|
1531
|
+
"attribute": "ariaLabel"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"kind": "field",
|
|
1535
|
+
"name": "size",
|
|
1536
|
+
"type": {
|
|
1537
|
+
"text": "\"sm\" | \"md\" | \"\""
|
|
1538
|
+
},
|
|
1539
|
+
"default": "\"md\"",
|
|
1540
|
+
"description": "Controls the visual size of the breadcrumb text and spacing: `sm` for dense layouts, `md` (default) for standard use.",
|
|
1541
|
+
"attribute": "size",
|
|
1542
|
+
"reflects": true
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"kind": "field",
|
|
1546
|
+
"name": "backToParent",
|
|
1547
|
+
"type": {
|
|
1548
|
+
"text": "boolean"
|
|
1549
|
+
},
|
|
1550
|
+
"default": "false",
|
|
1551
|
+
"description": "On mobile, renders the trail as a single back-to-parent link pointing to the item before the current page.\nHas no effect on desktop or when only one item is present (which always renders as a back link).",
|
|
1552
|
+
"attribute": "backToParent"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"kind": "field",
|
|
1556
|
+
"name": "collapsed",
|
|
1557
|
+
"type": {
|
|
1558
|
+
"text": "boolean"
|
|
1559
|
+
},
|
|
1560
|
+
"default": "false",
|
|
1561
|
+
"description": "Forces the trail into its collapsed state.\nIt shows only the first item, an ellipsis, and the last two items.\nThe user can still expand the trail by clicking the ellipsis.",
|
|
1562
|
+
"attribute": "collapsed"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"kind": "field",
|
|
1566
|
+
"name": "backgroundBar",
|
|
1567
|
+
"type": {
|
|
1568
|
+
"text": "boolean"
|
|
1569
|
+
},
|
|
1570
|
+
"default": "false",
|
|
1571
|
+
"description": "Renders a filled light theme background bar behind the breadcrumb trail.",
|
|
1572
|
+
"attribute": "backgroundBar"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"kind": "field",
|
|
1576
|
+
"name": "disabled",
|
|
1577
|
+
"type": {
|
|
1578
|
+
"text": "boolean"
|
|
1579
|
+
},
|
|
1580
|
+
"default": "false",
|
|
1581
|
+
"description": "Prevents interaction.",
|
|
1582
|
+
"attribute": "disabled",
|
|
1583
|
+
"reflects": true
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"kind": "field",
|
|
1587
|
+
"name": "_collapseThreshold",
|
|
1588
|
+
"type": {
|
|
1589
|
+
"text": "number"
|
|
1590
|
+
},
|
|
1591
|
+
"privacy": "private",
|
|
1592
|
+
"default": "5"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"kind": "field",
|
|
1596
|
+
"name": "_manuallyExpanded",
|
|
1597
|
+
"type": {
|
|
1598
|
+
"text": "boolean"
|
|
1599
|
+
},
|
|
1600
|
+
"privacy": "private",
|
|
1601
|
+
"default": "false"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"kind": "field",
|
|
1605
|
+
"name": "_mediaQuery",
|
|
1606
|
+
"type": {
|
|
1607
|
+
"text": "MediaQueryList | null"
|
|
1608
|
+
},
|
|
1609
|
+
"privacy": "private",
|
|
1610
|
+
"default": "null"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"kind": "field",
|
|
1614
|
+
"name": "_updateCollapseThreshold",
|
|
1615
|
+
"privacy": "private",
|
|
1616
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"kind": "method",
|
|
1620
|
+
"name": "_getSlottedOl",
|
|
1621
|
+
"privacy": "private",
|
|
1622
|
+
"return": {
|
|
1623
|
+
"type": {
|
|
1624
|
+
"text": "HTMLOListElement | null"
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"kind": "method",
|
|
1630
|
+
"name": "_getSlottedItems",
|
|
1631
|
+
"privacy": "private",
|
|
1632
|
+
"return": {
|
|
1633
|
+
"type": {
|
|
1634
|
+
"text": "HTMLLIElement[]"
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"kind": "method",
|
|
1640
|
+
"name": "_getAnchor",
|
|
1641
|
+
"privacy": "private",
|
|
1642
|
+
"return": {
|
|
1643
|
+
"type": {
|
|
1644
|
+
"text": "HTMLAnchorElement | null"
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
"parameters": [
|
|
1648
|
+
{
|
|
1649
|
+
"name": "li",
|
|
1650
|
+
"type": {
|
|
1651
|
+
"text": "HTMLLIElement"
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
]
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"kind": "method",
|
|
1658
|
+
"name": "_isCurrentPage",
|
|
1659
|
+
"privacy": "private",
|
|
1660
|
+
"return": {
|
|
1661
|
+
"type": {
|
|
1662
|
+
"text": "boolean"
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1665
|
+
"parameters": [
|
|
1666
|
+
{
|
|
1667
|
+
"name": "li",
|
|
1668
|
+
"type": {
|
|
1669
|
+
"text": "HTMLLIElement"
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
]
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"kind": "method",
|
|
1676
|
+
"name": "_createBackToParentElement",
|
|
1677
|
+
"privacy": "private",
|
|
1678
|
+
"parameters": [
|
|
1679
|
+
{
|
|
1680
|
+
"name": "li",
|
|
1681
|
+
"type": {
|
|
1682
|
+
"text": "HTMLLIElement"
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
]
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"kind": "method",
|
|
1689
|
+
"name": "_createCrumbElement",
|
|
1690
|
+
"privacy": "private",
|
|
1691
|
+
"parameters": [
|
|
1692
|
+
{
|
|
1693
|
+
"name": "li",
|
|
1694
|
+
"type": {
|
|
1695
|
+
"text": "HTMLLIElement"
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"name": "isCurrentPage",
|
|
1700
|
+
"type": {
|
|
1701
|
+
"text": "boolean"
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
]
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"kind": "method",
|
|
1708
|
+
"name": "_handleSlotChange",
|
|
1709
|
+
"privacy": "private",
|
|
1710
|
+
"description": "Main logic for cloning and handling user slots.\nNew <ol>, <li>, and <a> tags are created and rendered out as crumbs for the breadcrumbs trail."
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"kind": "method",
|
|
1714
|
+
"name": "_moveFocusToFirstExpandCrumb",
|
|
1715
|
+
"privacy": "private"
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"kind": "method",
|
|
1719
|
+
"name": "_dispatchExpandEvent",
|
|
1720
|
+
"privacy": "private",
|
|
1721
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"events": [
|
|
1725
|
+
{
|
|
1726
|
+
"name": "nys-expand",
|
|
1727
|
+
"type": {
|
|
1728
|
+
"text": "CustomEvent"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"description": "Fired when the user clicks the ellipsis to expand the trail.",
|
|
1733
|
+
"name": "nys-breadcrumbs-expand"
|
|
1734
|
+
}
|
|
1735
|
+
],
|
|
1736
|
+
"attributes": [
|
|
1737
|
+
{
|
|
1738
|
+
"name": "id",
|
|
1739
|
+
"type": {
|
|
1740
|
+
"text": "string"
|
|
1741
|
+
},
|
|
1742
|
+
"default": "\"\"",
|
|
1743
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1744
|
+
"fieldName": "id",
|
|
1745
|
+
"propName": "id"
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"name": "ariaLabel",
|
|
1749
|
+
"type": {
|
|
1750
|
+
"text": "string"
|
|
1751
|
+
},
|
|
1752
|
+
"default": "\"\"",
|
|
1753
|
+
"description": "Accessible label for the `<nav>` landmark. Defaults to \"path to this page\" if not set.\nOverride when multiple crumbs exist on the same page.",
|
|
1754
|
+
"fieldName": "ariaLabel",
|
|
1755
|
+
"propName": "arialabel"
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"name": "size",
|
|
1759
|
+
"type": {
|
|
1760
|
+
"text": "\"sm\" | \"md\" | \"\""
|
|
1761
|
+
},
|
|
1762
|
+
"default": "\"md\"",
|
|
1763
|
+
"description": "Controls the visual size of the breadcrumb text and spacing: `sm` for dense layouts, `md` (default) for standard use.",
|
|
1764
|
+
"fieldName": "size",
|
|
1765
|
+
"propName": "size"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"name": "backToParent",
|
|
1769
|
+
"type": {
|
|
1770
|
+
"text": "boolean"
|
|
1771
|
+
},
|
|
1772
|
+
"default": "false",
|
|
1773
|
+
"description": "On mobile, renders the trail as a single back-to-parent link pointing to the item before the current page.\nHas no effect on desktop or when only one item is present (which always renders as a back link).",
|
|
1774
|
+
"fieldName": "backToParent",
|
|
1775
|
+
"propName": "backtoparent"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"name": "collapsed",
|
|
1779
|
+
"type": {
|
|
1780
|
+
"text": "boolean"
|
|
1781
|
+
},
|
|
1782
|
+
"default": "false",
|
|
1783
|
+
"description": "Forces the trail into its collapsed state.\nIt shows only the first item, an ellipsis, and the last two items.\nThe user can still expand the trail by clicking the ellipsis.",
|
|
1784
|
+
"fieldName": "collapsed",
|
|
1785
|
+
"propName": "collapsed"
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"name": "backgroundBar",
|
|
1789
|
+
"type": {
|
|
1790
|
+
"text": "boolean"
|
|
1791
|
+
},
|
|
1792
|
+
"default": "false",
|
|
1793
|
+
"description": "Renders a filled light theme background bar behind the breadcrumb trail.",
|
|
1794
|
+
"fieldName": "backgroundBar",
|
|
1795
|
+
"propName": "backgroundbar"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "disabled",
|
|
1799
|
+
"type": {
|
|
1800
|
+
"text": "boolean"
|
|
1801
|
+
},
|
|
1802
|
+
"default": "false",
|
|
1803
|
+
"description": "Prevents interaction.",
|
|
1804
|
+
"fieldName": "disabled",
|
|
1805
|
+
"propName": "disabled"
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
"superclass": {
|
|
1809
|
+
"name": "LitElement",
|
|
1810
|
+
"package": "lit"
|
|
1811
|
+
},
|
|
1812
|
+
"tagName": "nys-breadcrumbs",
|
|
1813
|
+
"customElement": true,
|
|
1814
|
+
"summary": "Breadcrumb navigation trail with responsive collapse support.",
|
|
1815
|
+
"examples": [
|
|
1816
|
+
{
|
|
1817
|
+
"title": "Full trail with current page",
|
|
1818
|
+
"code": "<nys-breadcrumbs>\n<ol>\n<li><a href=\"/\">Home</a></li>\n<li><a href=\"/services\">Services</a></li>\n<li>Current Page</li>\n</ol>\n</nys-breadcrumbs>",
|
|
1819
|
+
"lang": "html"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"title": "Trail without current page",
|
|
1823
|
+
"code": "<nys-breadcrumbs>\n<ol>\n<li><a href=\"/\">Home</a></li>\n<li><a href=\"/services\">Services</a></li>\n</ol>\n</nys-breadcrumbs>",
|
|
1824
|
+
"lang": "html"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"title": "Single item renders as back-to-parent",
|
|
1828
|
+
"code": "<nys-breadcrumbs>\n<ol>\n<li><a href=\"/services\">Services</a></li>\n</ol>\n</nys-breadcrumbs>",
|
|
1829
|
+
"lang": "html"
|
|
1830
|
+
}
|
|
1831
|
+
]
|
|
1832
|
+
}
|
|
1833
|
+
],
|
|
1834
|
+
"exports": [
|
|
1835
|
+
{
|
|
1836
|
+
"kind": "custom-element-definition",
|
|
1837
|
+
"name": "nys-breadcrumbs",
|
|
1838
|
+
"declaration": {
|
|
1839
|
+
"name": "NysBreadcrumbs",
|
|
1840
|
+
"module": "packages/nys-breadcrumbs/src/nys-breadcrumbs.ts"
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"kind": "js",
|
|
1845
|
+
"name": "NysBreadcrumbs",
|
|
1846
|
+
"declaration": {
|
|
1847
|
+
"name": "NysBreadcrumbs",
|
|
1848
|
+
"module": "packages/nys-breadcrumbs/src/nys-breadcrumbs.ts"
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
]
|
|
1852
|
+
},
|
|
1482
1853
|
{
|
|
1483
1854
|
"kind": "javascript-module",
|
|
1484
1855
|
"path": "packages/nys-button/src/index.ts",
|
|
@@ -1667,7 +2038,7 @@
|
|
|
1667
2038
|
"text": "string"
|
|
1668
2039
|
},
|
|
1669
2040
|
"default": "\"\"",
|
|
1670
|
-
"description": "Material Symbol icon before label. Not shown for `
|
|
2041
|
+
"description": "Material Symbol icon before label. Not shown for `circle` mode.",
|
|
1671
2042
|
"attribute": "prefixIcon"
|
|
1672
2043
|
},
|
|
1673
2044
|
{
|
|
@@ -1677,7 +2048,7 @@
|
|
|
1677
2048
|
"text": "string"
|
|
1678
2049
|
},
|
|
1679
2050
|
"default": "\"\"",
|
|
1680
|
-
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `
|
|
2051
|
+
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `circle` mode.",
|
|
1681
2052
|
"attribute": "suffixIcon"
|
|
1682
2053
|
},
|
|
1683
2054
|
{
|
|
@@ -1991,7 +2362,7 @@
|
|
|
1991
2362
|
"text": "string"
|
|
1992
2363
|
},
|
|
1993
2364
|
"default": "\"\"",
|
|
1994
|
-
"description": "Material Symbol icon before label. Not shown for `
|
|
2365
|
+
"description": "Material Symbol icon before label. Not shown for `circle` mode.",
|
|
1995
2366
|
"fieldName": "prefixIcon",
|
|
1996
2367
|
"propName": "prefixicon"
|
|
1997
2368
|
},
|
|
@@ -2001,7 +2372,7 @@
|
|
|
2001
2372
|
"text": "string"
|
|
2002
2373
|
},
|
|
2003
2374
|
"default": "\"\"",
|
|
2004
|
-
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `
|
|
2375
|
+
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `circle` mode.",
|
|
2005
2376
|
"fieldName": "suffixIcon",
|
|
2006
2377
|
"propName": "suffixicon"
|
|
2007
2378
|
},
|
|
@@ -3391,6 +3762,15 @@
|
|
|
3391
3762
|
}
|
|
3392
3763
|
],
|
|
3393
3764
|
"members": [
|
|
3765
|
+
{
|
|
3766
|
+
"kind": "field",
|
|
3767
|
+
"name": "shadowRootOptions",
|
|
3768
|
+
"type": {
|
|
3769
|
+
"text": "object"
|
|
3770
|
+
},
|
|
3771
|
+
"static": true,
|
|
3772
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
3773
|
+
},
|
|
3394
3774
|
{
|
|
3395
3775
|
"kind": "field",
|
|
3396
3776
|
"name": "id",
|
|
@@ -5084,6 +5464,15 @@
|
|
|
5084
5464
|
"privacy": "private",
|
|
5085
5465
|
"default": "null"
|
|
5086
5466
|
},
|
|
5467
|
+
{
|
|
5468
|
+
"kind": "field",
|
|
5469
|
+
"name": "_lastFocusedIndex",
|
|
5470
|
+
"type": {
|
|
5471
|
+
"text": "number"
|
|
5472
|
+
},
|
|
5473
|
+
"privacy": "private",
|
|
5474
|
+
"default": "0"
|
|
5475
|
+
},
|
|
5087
5476
|
{
|
|
5088
5477
|
"kind": "field",
|
|
5089
5478
|
"name": "GAP",
|
|
@@ -5132,8 +5521,17 @@
|
|
|
5132
5521
|
},
|
|
5133
5522
|
{
|
|
5134
5523
|
"kind": "method",
|
|
5135
|
-
"name": "
|
|
5136
|
-
"privacy": "private"
|
|
5524
|
+
"name": "_focusOnItem",
|
|
5525
|
+
"privacy": "private",
|
|
5526
|
+
"parameters": [
|
|
5527
|
+
{
|
|
5528
|
+
"name": "index",
|
|
5529
|
+
"default": "0",
|
|
5530
|
+
"type": {
|
|
5531
|
+
"text": "number"
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
]
|
|
5137
5535
|
},
|
|
5138
5536
|
{
|
|
5139
5537
|
"kind": "method",
|
|
@@ -5298,11 +5696,16 @@
|
|
|
5298
5696
|
]
|
|
5299
5697
|
},
|
|
5300
5698
|
{
|
|
5301
|
-
"kind": "
|
|
5302
|
-
"name": "
|
|
5699
|
+
"kind": "method",
|
|
5700
|
+
"name": "_handleMenuClick",
|
|
5303
5701
|
"privacy": "private",
|
|
5304
5702
|
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
5305
5703
|
},
|
|
5704
|
+
{
|
|
5705
|
+
"kind": "field",
|
|
5706
|
+
"name": "_handleTriggerKeydown",
|
|
5707
|
+
"privacy": "private"
|
|
5708
|
+
},
|
|
5306
5709
|
{
|
|
5307
5710
|
"kind": "field",
|
|
5308
5711
|
"name": "_handleMenuKeydown",
|
|
@@ -5591,6 +5994,17 @@
|
|
|
5591
5994
|
"description": "**Internal component.** Displays error messages for form validation with icon and ARIA alert role.\n\nUsed internally by form components. Not intended for direct use. Shows error icon and message\nwhen `showError` is true. Integrates with ElementInternals for native form validation messages.",
|
|
5592
5995
|
"name": "NysErrorMessage",
|
|
5593
5996
|
"members": [
|
|
5997
|
+
{
|
|
5998
|
+
"kind": "field",
|
|
5999
|
+
"name": "id",
|
|
6000
|
+
"type": {
|
|
6001
|
+
"text": "string"
|
|
6002
|
+
},
|
|
6003
|
+
"default": "\"\"",
|
|
6004
|
+
"description": "The \"id\" of the error message.",
|
|
6005
|
+
"attribute": "id",
|
|
6006
|
+
"reflects": true
|
|
6007
|
+
},
|
|
5594
6008
|
{
|
|
5595
6009
|
"kind": "field",
|
|
5596
6010
|
"name": "showError",
|
|
@@ -5621,27 +6035,19 @@
|
|
|
5621
6035
|
"description": "Shows a divider line above the error message.",
|
|
5622
6036
|
"attribute": "showDivider",
|
|
5623
6037
|
"reflects": true
|
|
5624
|
-
}
|
|
6038
|
+
}
|
|
6039
|
+
],
|
|
6040
|
+
"attributes": [
|
|
5625
6041
|
{
|
|
5626
|
-
"
|
|
5627
|
-
"name": "_internals",
|
|
6042
|
+
"name": "id",
|
|
5628
6043
|
"type": {
|
|
5629
|
-
"text": "
|
|
6044
|
+
"text": "string"
|
|
5630
6045
|
},
|
|
5631
|
-
"
|
|
6046
|
+
"default": "\"\"",
|
|
6047
|
+
"description": "The \"id\" of the error message.",
|
|
6048
|
+
"fieldName": "id",
|
|
6049
|
+
"propName": "id"
|
|
5632
6050
|
},
|
|
5633
|
-
{
|
|
5634
|
-
"kind": "field",
|
|
5635
|
-
"name": "formAssociated",
|
|
5636
|
-
"type": {
|
|
5637
|
-
"text": "boolean"
|
|
5638
|
-
},
|
|
5639
|
-
"static": true,
|
|
5640
|
-
"default": "true",
|
|
5641
|
-
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
5642
|
-
}
|
|
5643
|
-
],
|
|
5644
|
-
"attributes": [
|
|
5645
6051
|
{
|
|
5646
6052
|
"name": "showError",
|
|
5647
6053
|
"type": {
|
|
@@ -7137,13 +7543,14 @@
|
|
|
7137
7543
|
"members": [
|
|
7138
7544
|
{
|
|
7139
7545
|
"kind": "field",
|
|
7140
|
-
"name": "
|
|
7546
|
+
"name": "id",
|
|
7141
7547
|
"type": {
|
|
7142
7548
|
"text": "string"
|
|
7143
7549
|
},
|
|
7144
7550
|
"default": "\"\"",
|
|
7145
|
-
"description": "ID of the
|
|
7146
|
-
"attribute": "
|
|
7551
|
+
"description": "The ID of the label.",
|
|
7552
|
+
"attribute": "id",
|
|
7553
|
+
"reflects": true
|
|
7147
7554
|
},
|
|
7148
7555
|
{
|
|
7149
7556
|
"kind": "field",
|
|
@@ -7189,43 +7596,38 @@
|
|
|
7189
7596
|
{
|
|
7190
7597
|
"kind": "field",
|
|
7191
7598
|
"name": "tooltip",
|
|
7192
|
-
"description": "Tooltip text shown on hover/focus of info icon next to label.",
|
|
7193
|
-
"attribute": "tooltip"
|
|
7194
|
-
},
|
|
7195
|
-
{
|
|
7196
|
-
"kind": "field",
|
|
7197
|
-
"name": "_tooltip",
|
|
7198
7599
|
"type": {
|
|
7199
7600
|
"text": "string"
|
|
7200
7601
|
},
|
|
7201
|
-
"
|
|
7202
|
-
"
|
|
7602
|
+
"default": "\"\"",
|
|
7603
|
+
"description": "Tooltip text shown on hover/focus of info icon next to label.",
|
|
7604
|
+
"attribute": "tooltip"
|
|
7203
7605
|
},
|
|
7204
7606
|
{
|
|
7205
7607
|
"kind": "method",
|
|
7206
|
-
"name": "
|
|
7608
|
+
"name": "_dispatchLabelClick",
|
|
7207
7609
|
"privacy": "private",
|
|
7208
|
-
"
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7610
|
+
"description": "While most components don't need to listen for this event.\nSpecial components like \"nys-fileinput\" and \"nys-toggle\" need to listen for label to execute their specific functionalities."
|
|
7611
|
+
}
|
|
7612
|
+
],
|
|
7613
|
+
"events": [
|
|
7614
|
+
{
|
|
7615
|
+
"name": "nys-label-click",
|
|
7616
|
+
"type": {
|
|
7617
|
+
"text": "CustomEvent"
|
|
7618
|
+
}
|
|
7217
7619
|
}
|
|
7218
7620
|
],
|
|
7219
7621
|
"attributes": [
|
|
7220
7622
|
{
|
|
7221
|
-
"name": "
|
|
7623
|
+
"name": "id",
|
|
7222
7624
|
"type": {
|
|
7223
7625
|
"text": "string"
|
|
7224
7626
|
},
|
|
7225
7627
|
"default": "\"\"",
|
|
7226
|
-
"description": "ID of the
|
|
7227
|
-
"fieldName": "
|
|
7228
|
-
"propName": "
|
|
7628
|
+
"description": "The ID of the label.",
|
|
7629
|
+
"fieldName": "id",
|
|
7630
|
+
"propName": "id"
|
|
7229
7631
|
},
|
|
7230
7632
|
{
|
|
7231
7633
|
"name": "label",
|
|
@@ -7269,6 +7671,10 @@
|
|
|
7269
7671
|
},
|
|
7270
7672
|
{
|
|
7271
7673
|
"name": "tooltip",
|
|
7674
|
+
"type": {
|
|
7675
|
+
"text": "string"
|
|
7676
|
+
},
|
|
7677
|
+
"default": "\"\"",
|
|
7272
7678
|
"description": "Tooltip text shown on hover/focus of info icon next to label.",
|
|
7273
7679
|
"fieldName": "tooltip",
|
|
7274
7680
|
"propName": "tooltip"
|
|
@@ -11448,6 +11854,14 @@
|
|
|
11448
11854
|
"description": "Error message text. Shown only when `showError` is true.",
|
|
11449
11855
|
"attribute": "errorMessage"
|
|
11450
11856
|
},
|
|
11857
|
+
{
|
|
11858
|
+
"kind": "field",
|
|
11859
|
+
"name": "_inputEl",
|
|
11860
|
+
"type": {
|
|
11861
|
+
"text": "HTMLInputElement"
|
|
11862
|
+
},
|
|
11863
|
+
"privacy": "private"
|
|
11864
|
+
},
|
|
11451
11865
|
{
|
|
11452
11866
|
"kind": "field",
|
|
11453
11867
|
"name": "showPassword",
|
|
@@ -13157,7 +13571,7 @@
|
|
|
13157
13571
|
"declarations": [
|
|
13158
13572
|
{
|
|
13159
13573
|
"kind": "class",
|
|
13160
|
-
"description": "",
|
|
13574
|
+
"description": "A YouTube video player with a thumbnail preview and play button.\nLoads the iframe only after the user clicks play, keeping initial page load light.\nSupports autoplay (muted), custom thumbnails, start time, lazy loading, and disabled state.\nAnnounces playback state and ad state to screen readers via a live region.\n\nFor use with YouTube URLs only. Component renders nothing if the URL is invalid.",
|
|
13161
13575
|
"name": "NysVideo",
|
|
13162
13576
|
"members": [
|
|
13163
13577
|
{
|
|
@@ -13333,6 +13747,12 @@
|
|
|
13333
13747
|
"privacy": "private"
|
|
13334
13748
|
}
|
|
13335
13749
|
],
|
|
13750
|
+
"events": [
|
|
13751
|
+
{
|
|
13752
|
+
"description": "Fired when the user clicks the thumbnail to load the player.",
|
|
13753
|
+
"name": "nys-video-play"
|
|
13754
|
+
}
|
|
13755
|
+
],
|
|
13336
13756
|
"attributes": [
|
|
13337
13757
|
{
|
|
13338
13758
|
"name": "id",
|
|
@@ -13429,7 +13849,15 @@
|
|
|
13429
13849
|
"package": "lit"
|
|
13430
13850
|
},
|
|
13431
13851
|
"tagName": "nys-video",
|
|
13432
|
-
"customElement": true
|
|
13852
|
+
"customElement": true,
|
|
13853
|
+
"summary": "YouTube video player with thumbnail preview and accessibility announcements.",
|
|
13854
|
+
"examples": [
|
|
13855
|
+
{
|
|
13856
|
+
"title": "Basic usage",
|
|
13857
|
+
"code": "<nys-video\nvideourl=\"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\ntitleText=\"Video Title\"\n></nys-video>",
|
|
13858
|
+
"lang": "html"
|
|
13859
|
+
}
|
|
13860
|
+
]
|
|
13433
13861
|
}
|
|
13434
13862
|
],
|
|
13435
13863
|
"exports": [
|