@genesislcap/foundation-ui 15.10.1 → 15.10.2

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.
@@ -1455,11 +1455,11 @@
1455
1455
  },
1456
1456
  {
1457
1457
  "kind": "javascript-module",
1458
- "path": "src/accordion-item/accordion-item.styles.ts",
1458
+ "path": "src/accordion/accordion.styles.ts",
1459
1459
  "declarations": [
1460
1460
  {
1461
1461
  "kind": "function",
1462
- "name": "foundationAccordionItemStyles",
1462
+ "name": "foundationAccordionStyles",
1463
1463
  "return": {
1464
1464
  "type": {
1465
1465
  "text": "ElementStyles"
@@ -1484,24 +1484,24 @@
1484
1484
  "exports": [
1485
1485
  {
1486
1486
  "kind": "js",
1487
- "name": "foundationAccordionItemStyles",
1487
+ "name": "foundationAccordionStyles",
1488
1488
  "declaration": {
1489
- "name": "foundationAccordionItemStyles",
1490
- "module": "src/accordion-item/accordion-item.styles.ts"
1489
+ "name": "foundationAccordionStyles",
1490
+ "module": "src/accordion/accordion.styles.ts"
1491
1491
  }
1492
1492
  }
1493
1493
  ]
1494
1494
  },
1495
1495
  {
1496
1496
  "kind": "javascript-module",
1497
- "path": "src/accordion-item/accordion-item.template.ts",
1497
+ "path": "src/accordion/accordion.template.ts",
1498
1498
  "declarations": [
1499
1499
  {
1500
1500
  "kind": "function",
1501
- "name": "foundationAccordionItemTemplate",
1501
+ "name": "foundationAccordionTemplate",
1502
1502
  "return": {
1503
1503
  "type": {
1504
- "text": "ViewTemplate<AccordionItem>"
1504
+ "text": "ViewTemplate<Accordion>"
1505
1505
  }
1506
1506
  },
1507
1507
  "parameters": [
@@ -1523,116 +1523,237 @@
1523
1523
  "exports": [
1524
1524
  {
1525
1525
  "kind": "js",
1526
- "name": "foundationAccordionItemTemplate",
1526
+ "name": "foundationAccordionTemplate",
1527
1527
  "declaration": {
1528
- "name": "foundationAccordionItemTemplate",
1529
- "module": "src/accordion-item/accordion-item.template.ts"
1528
+ "name": "foundationAccordionTemplate",
1529
+ "module": "src/accordion/accordion.template.ts"
1530
1530
  }
1531
1531
  }
1532
1532
  ]
1533
1533
  },
1534
1534
  {
1535
1535
  "kind": "javascript-module",
1536
- "path": "src/accordion-item/accordion-item.ts",
1536
+ "path": "src/accordion/accordion.ts",
1537
1537
  "declarations": [
1538
1538
  {
1539
1539
  "kind": "class",
1540
1540
  "description": "",
1541
- "name": "AccordionItem",
1541
+ "name": "Accordion",
1542
1542
  "superclass": {
1543
- "name": "FASTAccordionItem",
1544
- "package": "@microsoft/fast-components"
1543
+ "name": "FASTAccordion",
1544
+ "package": "@microsoft/fast-foundation"
1545
1545
  },
1546
- "tagName": "%%prefix%%-accordion-item",
1546
+ "tagName": "%%prefix%%-accordion",
1547
1547
  "customElement": true,
1548
1548
  "attributes": [
1549
1549
  {
1550
- "name": "heading-level",
1550
+ "name": "expand-mode",
1551
1551
  "type": {
1552
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1552
+ "text": "AccordionExpandMode"
1553
1553
  },
1554
- "default": "2",
1555
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1556
- "fieldName": "headinglevel",
1554
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1555
+ "fieldName": "expandmode",
1557
1556
  "inheritedFrom": {
1558
- "name": "AccordionItem",
1559
- "module": "src/accordion-item/accordion-item.ts"
1557
+ "name": "Accordion",
1558
+ "module": "src/accordion/accordion.ts"
1560
1559
  }
1561
- },
1560
+ }
1561
+ ],
1562
+ "members": [
1562
1563
  {
1564
+ "kind": "field",
1565
+ "name": "expandmode",
1563
1566
  "type": {
1564
- "text": "boolean"
1567
+ "text": "AccordionExpandMode"
1565
1568
  },
1566
- "default": "false",
1567
- "description": "Expands or collapses the item.",
1568
- "fieldName": "expanded",
1569
+ "privacy": "public",
1570
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1569
1571
  "inheritedFrom": {
1570
- "name": "AccordionItem",
1571
- "module": "src/accordion-item/accordion-item.ts"
1572
+ "name": "Accordion",
1573
+ "module": "src/accordion/accordion.ts"
1572
1574
  }
1573
1575
  },
1574
1576
  {
1575
- "name": "id",
1577
+ "kind": "field",
1578
+ "name": "activeid",
1576
1579
  "type": {
1577
- "text": "string"
1580
+ "text": "string | null"
1578
1581
  },
1579
- "description": "The item ID",
1580
- "fieldName": "id",
1582
+ "privacy": "private",
1581
1583
  "inheritedFrom": {
1582
- "name": "AccordionItem",
1583
- "module": "src/accordion-item/accordion-item.ts"
1584
+ "name": "Accordion",
1585
+ "module": "src/accordion/accordion.ts"
1584
1586
  }
1585
- }
1586
- ],
1587
- "members": [
1587
+ },
1588
1588
  {
1589
1589
  "kind": "field",
1590
- "name": "headinglevel",
1590
+ "name": "activeItemIndex",
1591
1591
  "type": {
1592
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1592
+ "text": "number"
1593
1593
  },
1594
- "privacy": "public",
1595
- "default": "2",
1596
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1594
+ "privacy": "private",
1595
+ "default": "0",
1597
1596
  "inheritedFrom": {
1598
- "name": "AccordionItem",
1599
- "module": "src/accordion-item/accordion-item.ts"
1597
+ "name": "Accordion",
1598
+ "module": "src/accordion/accordion.ts"
1600
1599
  }
1601
1600
  },
1602
1601
  {
1603
1602
  "kind": "field",
1604
- "name": "expanded",
1603
+ "name": "accordionIds",
1605
1604
  "type": {
1606
- "text": "boolean"
1605
+ "text": "Array<string | null>"
1607
1606
  },
1608
- "privacy": "public",
1609
- "default": "false",
1610
- "description": "Expands or collapses the item.",
1607
+ "privacy": "private",
1611
1608
  "inheritedFrom": {
1612
- "name": "AccordionItem",
1613
- "module": "src/accordion-item/accordion-item.ts"
1609
+ "name": "Accordion",
1610
+ "module": "src/accordion/accordion.ts"
1614
1611
  }
1615
1612
  },
1616
1613
  {
1617
1614
  "kind": "field",
1618
- "name": "id",
1619
- "type": {
1620
- "text": "string"
1615
+ "name": "change",
1616
+ "privacy": "private",
1617
+ "inheritedFrom": {
1618
+ "name": "Accordion",
1619
+ "module": "src/accordion/accordion.ts"
1620
+ }
1621
+ },
1622
+ {
1623
+ "kind": "method",
1624
+ "name": "findExpandedItem",
1625
+ "privacy": "private",
1626
+ "return": {
1627
+ "type": {
1628
+ "text": "AccordionItem | null"
1629
+ }
1621
1630
  },
1622
- "privacy": "public",
1623
- "description": "The item ID",
1624
1631
  "inheritedFrom": {
1625
- "name": "AccordionItem",
1626
- "module": "src/accordion-item/accordion-item.ts"
1632
+ "name": "Accordion",
1633
+ "module": "src/accordion/accordion.ts"
1627
1634
  }
1628
1635
  },
1629
1636
  {
1630
1637
  "kind": "field",
1631
- "name": "change",
1638
+ "name": "setItems",
1632
1639
  "privacy": "private",
1633
1640
  "inheritedFrom": {
1634
- "name": "AccordionItem",
1635
- "module": "src/accordion-item/accordion-item.ts"
1641
+ "name": "Accordion",
1642
+ "module": "src/accordion/accordion.ts"
1643
+ }
1644
+ },
1645
+ {
1646
+ "kind": "method",
1647
+ "name": "resetItems",
1648
+ "privacy": "private",
1649
+ "return": {
1650
+ "type": {
1651
+ "text": "void"
1652
+ }
1653
+ },
1654
+ "inheritedFrom": {
1655
+ "name": "Accordion",
1656
+ "module": "src/accordion/accordion.ts"
1657
+ }
1658
+ },
1659
+ {
1660
+ "kind": "field",
1661
+ "name": "removeItemListeners",
1662
+ "privacy": "private",
1663
+ "inheritedFrom": {
1664
+ "name": "Accordion",
1665
+ "module": "src/accordion/accordion.ts"
1666
+ }
1667
+ },
1668
+ {
1669
+ "kind": "field",
1670
+ "name": "activeItemChange",
1671
+ "privacy": "private",
1672
+ "inheritedFrom": {
1673
+ "name": "Accordion",
1674
+ "module": "src/accordion/accordion.ts"
1675
+ }
1676
+ },
1677
+ {
1678
+ "kind": "method",
1679
+ "name": "getItemIds",
1680
+ "privacy": "private",
1681
+ "return": {
1682
+ "type": {
1683
+ "text": "Array<string | null>"
1684
+ }
1685
+ },
1686
+ "inheritedFrom": {
1687
+ "name": "Accordion",
1688
+ "module": "src/accordion/accordion.ts"
1689
+ }
1690
+ },
1691
+ {
1692
+ "kind": "method",
1693
+ "name": "isSingleExpandMode",
1694
+ "privacy": "private",
1695
+ "return": {
1696
+ "type": {
1697
+ "text": "boolean"
1698
+ }
1699
+ },
1700
+ "inheritedFrom": {
1701
+ "name": "Accordion",
1702
+ "module": "src/accordion/accordion.ts"
1703
+ }
1704
+ },
1705
+ {
1706
+ "kind": "field",
1707
+ "name": "handleItemKeyDown",
1708
+ "privacy": "private",
1709
+ "inheritedFrom": {
1710
+ "name": "Accordion",
1711
+ "module": "src/accordion/accordion.ts"
1712
+ }
1713
+ },
1714
+ {
1715
+ "kind": "field",
1716
+ "name": "handleItemFocus",
1717
+ "privacy": "private",
1718
+ "inheritedFrom": {
1719
+ "name": "Accordion",
1720
+ "module": "src/accordion/accordion.ts"
1721
+ }
1722
+ },
1723
+ {
1724
+ "kind": "method",
1725
+ "name": "adjust",
1726
+ "privacy": "private",
1727
+ "return": {
1728
+ "type": {
1729
+ "text": "void"
1730
+ }
1731
+ },
1732
+ "parameters": [
1733
+ {
1734
+ "name": "adjustment",
1735
+ "type": {
1736
+ "text": "number"
1737
+ }
1738
+ }
1739
+ ],
1740
+ "inheritedFrom": {
1741
+ "name": "Accordion",
1742
+ "module": "src/accordion/accordion.ts"
1743
+ }
1744
+ },
1745
+ {
1746
+ "kind": "method",
1747
+ "name": "focusItem",
1748
+ "privacy": "private",
1749
+ "return": {
1750
+ "type": {
1751
+ "text": "void"
1752
+ }
1753
+ },
1754
+ "inheritedFrom": {
1755
+ "name": "Accordion",
1756
+ "module": "src/accordion/accordion.ts"
1636
1757
  }
1637
1758
  },
1638
1759
  {
@@ -1749,18 +1870,18 @@
1749
1870
  ],
1750
1871
  "events": [
1751
1872
  {
1752
- "description": "Fires a custom 'change' event when the button is invoked",
1873
+ "description": "Fires a custom 'change' event when the active item changes",
1753
1874
  "name": "change",
1754
1875
  "inheritedFrom": {
1755
- "name": "AccordionItem",
1756
- "module": "src/accordion-item/accordion-item.ts"
1876
+ "name": "Accordion",
1877
+ "module": "src/accordion/accordion.ts"
1757
1878
  }
1758
1879
  }
1759
1880
  ]
1760
1881
  },
1761
1882
  {
1762
1883
  "kind": "variable",
1763
- "name": "foundationAccordionItemShadowOptions",
1884
+ "name": "foundationAccordionShadowOptions",
1764
1885
  "type": {
1765
1886
  "text": "ShadowRootInit"
1766
1887
  },
@@ -1768,57 +1889,57 @@
1768
1889
  },
1769
1890
  {
1770
1891
  "kind": "variable",
1771
- "name": "defaultAccordionItemConfig",
1892
+ "name": "defaultAccordionConfig",
1772
1893
  "type": {
1773
1894
  "text": "object"
1774
1895
  },
1775
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1896
+ "default": "{}"
1776
1897
  },
1777
1898
  {
1778
1899
  "kind": "variable",
1779
- "name": "foundationAccordionItem",
1780
- "description": "The Foundation Accordion Item",
1900
+ "name": "foundationAccordion",
1901
+ "description": "The Foundation Accordion",
1781
1902
  "privacy": "public"
1782
1903
  }
1783
1904
  ],
1784
1905
  "exports": [
1785
1906
  {
1786
1907
  "kind": "js",
1787
- "name": "AccordionItem",
1908
+ "name": "Accordion",
1788
1909
  "declaration": {
1789
- "name": "AccordionItem",
1790
- "module": "src/accordion-item/accordion-item.ts"
1910
+ "name": "Accordion",
1911
+ "module": "src/accordion/accordion.ts"
1791
1912
  }
1792
1913
  },
1793
1914
  {
1794
1915
  "kind": "js",
1795
- "name": "foundationAccordionItemShadowOptions",
1916
+ "name": "foundationAccordionShadowOptions",
1796
1917
  "declaration": {
1797
- "name": "foundationAccordionItemShadowOptions",
1798
- "module": "src/accordion-item/accordion-item.ts"
1918
+ "name": "foundationAccordionShadowOptions",
1919
+ "module": "src/accordion/accordion.ts"
1799
1920
  }
1800
1921
  },
1801
1922
  {
1802
1923
  "kind": "js",
1803
- "name": "defaultAccordionItemConfig",
1924
+ "name": "defaultAccordionConfig",
1804
1925
  "declaration": {
1805
- "name": "defaultAccordionItemConfig",
1806
- "module": "src/accordion-item/accordion-item.ts"
1926
+ "name": "defaultAccordionConfig",
1927
+ "module": "src/accordion/accordion.ts"
1807
1928
  }
1808
1929
  },
1809
1930
  {
1810
1931
  "kind": "js",
1811
- "name": "foundationAccordionItem",
1932
+ "name": "foundationAccordion",
1812
1933
  "declaration": {
1813
- "name": "foundationAccordionItem",
1814
- "module": "src/accordion-item/accordion-item.ts"
1934
+ "name": "foundationAccordion",
1935
+ "module": "src/accordion/accordion.ts"
1815
1936
  }
1816
1937
  }
1817
1938
  ]
1818
1939
  },
1819
1940
  {
1820
1941
  "kind": "javascript-module",
1821
- "path": "src/accordion-item/index.ts",
1942
+ "path": "src/accordion/index.ts",
1822
1943
  "declarations": [],
1823
1944
  "exports": [
1824
1945
  {
@@ -1826,7 +1947,7 @@
1826
1947
  "name": "*",
1827
1948
  "declaration": {
1828
1949
  "name": "*",
1829
- "package": "./accordion-item.template"
1950
+ "package": "./accordion.template"
1830
1951
  }
1831
1952
  },
1832
1953
  {
@@ -1834,7 +1955,7 @@
1834
1955
  "name": "*",
1835
1956
  "declaration": {
1836
1957
  "name": "*",
1837
- "package": "./accordion-item.styles"
1958
+ "package": "./accordion.styles"
1838
1959
  }
1839
1960
  },
1840
1961
  {
@@ -1842,122 +1963,210 @@
1842
1963
  "name": "*",
1843
1964
  "declaration": {
1844
1965
  "name": "*",
1845
- "package": "./accordion-item"
1966
+ "package": "./accordion"
1846
1967
  }
1847
1968
  }
1848
1969
  ]
1849
1970
  },
1850
1971
  {
1851
1972
  "kind": "javascript-module",
1852
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
1973
+ "path": "src/actions-menu/actions-menu.styles.ts",
1853
1974
  "declarations": [
1854
1975
  {
1855
- "kind": "variable",
1856
- "name": "foundationAiCriteriaSearchStyles",
1857
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
1976
+ "kind": "function",
1977
+ "name": "actionsMenuBaseStyles",
1978
+ "return": {
1979
+ "type": {
1980
+ "text": "ElementStyles"
1981
+ }
1982
+ },
1983
+ "parameters": [
1984
+ {
1985
+ "name": "context",
1986
+ "type": {
1987
+ "text": "ElementDefinitionContext"
1988
+ }
1989
+ },
1990
+ {
1991
+ "name": "definition",
1992
+ "type": {
1993
+ "text": "FoundationElementDefinition"
1994
+ }
1995
+ }
1996
+ ]
1997
+ },
1998
+ {
1999
+ "kind": "function",
2000
+ "name": "foundationActionsMenuStyles",
2001
+ "return": {
2002
+ "type": {
2003
+ "text": "ElementStyles"
2004
+ }
2005
+ },
2006
+ "parameters": [
2007
+ {
2008
+ "name": "context",
2009
+ "type": {
2010
+ "text": "ElementDefinitionContext"
2011
+ }
2012
+ },
2013
+ {
2014
+ "name": "definition",
2015
+ "type": {
2016
+ "text": "FoundationElementDefinition"
2017
+ }
2018
+ }
2019
+ ]
1858
2020
  }
1859
2021
  ],
1860
2022
  "exports": [
1861
2023
  {
1862
2024
  "kind": "js",
1863
- "name": "foundationAiCriteriaSearchStyles",
2025
+ "name": "actionsMenuBaseStyles",
1864
2026
  "declaration": {
1865
- "name": "foundationAiCriteriaSearchStyles",
1866
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2027
+ "name": "actionsMenuBaseStyles",
2028
+ "module": "src/actions-menu/actions-menu.styles.ts"
2029
+ }
2030
+ },
2031
+ {
2032
+ "kind": "js",
2033
+ "name": "foundationActionsMenuStyles",
2034
+ "declaration": {
2035
+ "name": "foundationActionsMenuStyles",
2036
+ "module": "src/actions-menu/actions-menu.styles.ts"
1867
2037
  }
1868
2038
  }
1869
2039
  ]
1870
2040
  },
1871
2041
  {
1872
2042
  "kind": "javascript-module",
1873
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2043
+ "path": "src/actions-menu/actions-menu.template.ts",
1874
2044
  "declarations": [
2045
+ {
2046
+ "kind": "function",
2047
+ "name": "menuTemplate",
2048
+ "parameters": [
2049
+ {
2050
+ "name": "prefix",
2051
+ "type": {
2052
+ "text": "string"
2053
+ }
2054
+ }
2055
+ ]
2056
+ },
2057
+ {
2058
+ "kind": "function",
2059
+ "name": "singleOptionTemplate",
2060
+ "parameters": [
2061
+ {
2062
+ "name": "prefix",
2063
+ "type": {
2064
+ "text": "string"
2065
+ }
2066
+ }
2067
+ ]
2068
+ },
1875
2069
  {
1876
2070
  "kind": "variable",
1877
- "name": "foundationAiCriteriaSearchTemplate",
2071
+ "name": "foundationActionsMenuTemplate",
1878
2072
  "type": {
1879
- "text": "ViewTemplate<AiCriteriaSearch>"
2073
+ "text": "ViewTemplate<ActionsMenu>"
1880
2074
  },
1881
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2075
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1882
2076
  }
1883
2077
  ],
1884
2078
  "exports": [
1885
2079
  {
1886
2080
  "kind": "js",
1887
- "name": "foundationAiCriteriaSearchTemplate",
2081
+ "name": "menuTemplate",
1888
2082
  "declaration": {
1889
- "name": "foundationAiCriteriaSearchTemplate",
1890
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2083
+ "name": "menuTemplate",
2084
+ "module": "src/actions-menu/actions-menu.template.ts"
2085
+ }
2086
+ },
2087
+ {
2088
+ "kind": "js",
2089
+ "name": "singleOptionTemplate",
2090
+ "declaration": {
2091
+ "name": "singleOptionTemplate",
2092
+ "module": "src/actions-menu/actions-menu.template.ts"
2093
+ }
2094
+ },
2095
+ {
2096
+ "kind": "js",
2097
+ "name": "foundationActionsMenuTemplate",
2098
+ "declaration": {
2099
+ "name": "foundationActionsMenuTemplate",
2100
+ "module": "src/actions-menu/actions-menu.template.ts"
1891
2101
  }
1892
2102
  }
1893
2103
  ]
1894
2104
  },
1895
2105
  {
1896
2106
  "kind": "javascript-module",
1897
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2107
+ "path": "src/actions-menu/actions-menu.ts",
1898
2108
  "declarations": [
1899
2109
  {
1900
2110
  "kind": "class",
1901
- "description": "Natural-language criteria search input with AI interpretation.",
1902
- "name": "AiCriteriaSearch",
2111
+ "description": "",
2112
+ "name": "ActionsMenu",
1903
2113
  "members": [
1904
2114
  {
1905
2115
  "kind": "field",
1906
- "name": "providerRegistry",
2116
+ "name": "actions",
1907
2117
  "type": {
1908
- "text": "AIProviderRegistry"
2118
+ "text": "ActionMenuItem[]"
1909
2119
  }
1910
2120
  },
1911
2121
  {
1912
2122
  "kind": "field",
1913
- "name": "placeholder",
2123
+ "name": "isVertical",
1914
2124
  "type": {
1915
- "text": "string"
2125
+ "text": "boolean"
1916
2126
  },
1917
- "default": "'Describe your search criteria in natural language...'"
2127
+ "default": "false"
1918
2128
  },
1919
2129
  {
1920
2130
  "kind": "field",
1921
- "name": "disabled",
2131
+ "name": "addDefaultActions",
1922
2132
  "type": {
1923
2133
  "text": "boolean"
1924
- }
2134
+ },
2135
+ "default": "true"
1925
2136
  },
1926
2137
  {
1927
2138
  "kind": "field",
1928
- "name": "inputValue",
2139
+ "name": "autoCloseOnAction",
1929
2140
  "type": {
1930
- "text": "string"
2141
+ "text": "boolean"
1931
2142
  },
1932
- "default": "''"
2143
+ "default": "true"
1933
2144
  },
1934
2145
  {
1935
2146
  "kind": "field",
1936
- "name": "isInterpreting",
2147
+ "name": "classNames",
1937
2148
  "type": {
1938
- "text": "boolean"
1939
- },
1940
- "default": "false"
2149
+ "text": "string"
2150
+ }
1941
2151
  },
1942
2152
  {
1943
2153
  "kind": "field",
1944
- "name": "lastValidCriteria",
2154
+ "name": "definition",
1945
2155
  "type": {
1946
- "text": "string | null"
1947
- },
1948
- "default": "null"
2156
+ "text": "any"
2157
+ }
1949
2158
  },
1950
2159
  {
1951
2160
  "kind": "field",
1952
- "name": "activeGroups",
2161
+ "name": "name",
1953
2162
  "type": {
1954
- "text": "CriteriaGroup[]"
2163
+ "text": "string"
1955
2164
  },
1956
- "default": "[]"
2165
+ "default": "'Actions'"
1957
2166
  },
1958
2167
  {
1959
2168
  "kind": "field",
1960
- "name": "showingChips",
2169
+ "name": "open",
1961
2170
  "type": {
1962
2171
  "text": "boolean"
1963
2172
  },
@@ -1965,15 +2174,14 @@
1965
2174
  },
1966
2175
  {
1967
2176
  "kind": "field",
1968
- "name": "fieldMetadata",
2177
+ "name": "buttonAppearance",
1969
2178
  "type": {
1970
- "text": "MetadataDetail[] | string[]"
1971
- },
1972
- "default": "[]"
2179
+ "text": "string"
2180
+ }
1973
2181
  },
1974
2182
  {
1975
2183
  "kind": "field",
1976
- "name": "isRecording",
2184
+ "name": "hideDisabled",
1977
2185
  "type": {
1978
2186
  "text": "boolean"
1979
2187
  },
@@ -1981,125 +2189,114 @@
1981
2189
  },
1982
2190
  {
1983
2191
  "kind": "field",
1984
- "name": "textAreaRef",
2192
+ "name": "hideMenuSingleOption",
1985
2193
  "type": {
1986
- "text": "HTMLTextAreaElement"
2194
+ "text": "boolean"
1987
2195
  },
1988
- "privacy": "public"
2196
+ "default": "false"
1989
2197
  },
1990
2198
  {
1991
2199
  "kind": "field",
1992
- "name": "stopRecording",
2200
+ "name": "singleOption",
1993
2201
  "type": {
1994
- "text": "(() => void) | null"
1995
- },
1996
- "privacy": "private",
1997
- "default": "null"
2202
+ "text": "ActionMenuItem"
2203
+ }
1998
2204
  },
1999
2205
  {
2000
2206
  "kind": "field",
2001
- "name": "speechApplyDebounceTimer",
2207
+ "name": "actionsMenu",
2002
2208
  "type": {
2003
- "text": "ReturnType<typeof setTimeout> | null"
2004
- },
2005
- "privacy": "private",
2006
- "default": "null"
2209
+ "text": "HTMLElement"
2210
+ }
2007
2211
  },
2008
2212
  {
2009
2213
  "kind": "field",
2010
- "name": "speechAvailable",
2214
+ "name": "actionsOpener",
2011
2215
  "type": {
2012
- "text": "boolean"
2013
- },
2014
- "readonly": true
2216
+ "text": "HTMLElement"
2217
+ }
2015
2218
  },
2016
2219
  {
2017
- "kind": "field",
2018
- "name": "criteriaChips",
2019
- "type": {
2020
- "text": "CriteriaChip[]"
2021
- },
2022
- "readonly": true
2220
+ "kind": "method",
2221
+ "name": "updateMenuPosition",
2222
+ "privacy": "private"
2023
2223
  },
2024
2224
  {
2025
2225
  "kind": "method",
2026
- "name": "getFieldLabel",
2027
- "privacy": "private",
2028
- "return": {
2029
- "type": {
2030
- "text": "string"
2031
- }
2032
- },
2226
+ "name": "definitionChanged",
2227
+ "privacy": "protected",
2033
2228
  "parameters": [
2034
2229
  {
2035
- "name": "fieldName",
2230
+ "name": "oldValue",
2036
2231
  "type": {
2037
- "text": "string"
2232
+ "text": "any"
2233
+ }
2234
+ },
2235
+ {
2236
+ "name": "newValue",
2237
+ "type": {
2238
+ "text": "any"
2038
2239
  }
2039
2240
  }
2040
2241
  ]
2041
2242
  },
2042
2243
  {
2043
2244
  "kind": "method",
2044
- "name": "toggleCriteriaView",
2045
- "return": {
2046
- "type": {
2047
- "text": "void"
2048
- }
2049
- }
2245
+ "name": "openChanged",
2246
+ "privacy": "protected"
2050
2247
  },
2051
2248
  {
2052
2249
  "kind": "method",
2053
- "name": "removeChip",
2054
- "return": {
2055
- "type": {
2056
- "text": "void"
2057
- }
2058
- },
2250
+ "name": "toggleActionsMenuVisibility"
2251
+ },
2252
+ {
2253
+ "kind": "method",
2254
+ "name": "onActionMenuItemClick",
2059
2255
  "parameters": [
2060
2256
  {
2061
- "name": "groupIndex",
2062
- "type": {
2063
- "text": "number"
2064
- }
2065
- },
2066
- {
2067
- "name": "clauseIndex",
2257
+ "name": "callback",
2068
2258
  "type": {
2069
- "text": "number"
2259
+ "text": "(rowData) => void | any"
2070
2260
  }
2071
2261
  }
2072
2262
  ]
2073
2263
  },
2074
2264
  {
2075
- "kind": "method",
2076
- "name": "clearChips",
2077
- "return": {
2078
- "type": {
2079
- "text": "void"
2080
- }
2081
- }
2082
- },
2083
- {
2084
- "kind": "method",
2085
- "name": "handleSubmit"
2086
- },
2087
- {
2088
- "kind": "method",
2089
- "name": "handleBlur"
2265
+ "kind": "field",
2266
+ "name": "allActions",
2267
+ "type": {
2268
+ "text": "ActionMenuItem[]"
2269
+ },
2270
+ "readonly": true
2090
2271
  },
2091
2272
  {
2092
- "kind": "method",
2093
- "name": "clear"
2273
+ "kind": "field",
2274
+ "name": "rowData",
2275
+ "readonly": true
2094
2276
  },
2095
2277
  {
2096
2278
  "kind": "method",
2097
- "name": "toggleSpeechInput"
2279
+ "name": "getLabel",
2280
+ "parameters": [
2281
+ {
2282
+ "name": "name",
2283
+ "type": {
2284
+ "text": "string | ((rowData: any) => string)"
2285
+ }
2286
+ }
2287
+ ]
2098
2288
  },
2099
2289
  {
2100
2290
  "kind": "method",
2101
- "name": "clearSpeechApplyDebounce",
2102
- "privacy": "private"
2291
+ "name": "getTemplate",
2292
+ "parameters": [
2293
+ {
2294
+ "name": "prefix",
2295
+ "type": {
2296
+ "text": "string"
2297
+ }
2298
+ }
2299
+ ]
2103
2300
  },
2104
2301
  {
2105
2302
  "kind": "field",
@@ -2213,448 +2410,262 @@
2213
2410
  }
2214
2411
  }
2215
2412
  ],
2216
- "events": [
2413
+ "attributes": [
2217
2414
  {
2218
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2219
- "name": "criteria-changed"
2415
+ "name": "is-vertical",
2416
+ "type": {
2417
+ "text": "boolean"
2418
+ },
2419
+ "default": "false",
2420
+ "fieldName": "isVertical"
2220
2421
  },
2221
2422
  {
2222
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2223
- "name": "validation-errors"
2224
- }
2225
- ],
2226
- "attributes": [
2423
+ "name": "add-default-actions",
2424
+ "type": {
2425
+ "text": "boolean"
2426
+ },
2427
+ "default": "true",
2428
+ "fieldName": "addDefaultActions"
2429
+ },
2227
2430
  {
2228
- "name": "placeholder",
2431
+ "name": "auto-close-on-action",
2432
+ "type": {
2433
+ "text": "boolean"
2434
+ },
2435
+ "default": "true",
2436
+ "fieldName": "autoCloseOnAction"
2437
+ },
2438
+ {
2439
+ "name": "name",
2229
2440
  "type": {
2230
2441
  "text": "string"
2231
2442
  },
2232
- "default": "'Describe your search criteria in natural language...'",
2233
- "fieldName": "placeholder"
2443
+ "default": "'Actions'",
2444
+ "fieldName": "name"
2445
+ },
2446
+ {
2447
+ "name": "open",
2448
+ "type": {
2449
+ "text": "boolean"
2450
+ },
2451
+ "default": "false",
2452
+ "fieldName": "open"
2453
+ },
2454
+ {
2455
+ "name": "buttonAppearance",
2456
+ "type": {
2457
+ "text": "string"
2458
+ },
2459
+ "fieldName": "buttonAppearance"
2234
2460
  },
2235
2461
  {
2462
+ "name": "hide-disabled",
2236
2463
  "type": {
2237
2464
  "text": "boolean"
2238
2465
  },
2239
- "fieldName": "disabled"
2466
+ "default": "false",
2467
+ "fieldName": "hideDisabled"
2468
+ },
2469
+ {
2470
+ "name": "hide-menu-single-option",
2471
+ "type": {
2472
+ "text": "boolean"
2473
+ },
2474
+ "default": "false",
2475
+ "fieldName": "hideMenuSingleOption"
2240
2476
  }
2241
2477
  ],
2242
2478
  "superclass": {
2243
2479
  "name": "FoundationElement",
2244
2480
  "package": "@microsoft/fast-foundation"
2245
2481
  },
2246
- "tagName": "%%prefix%%-ai-criteria-search",
2482
+ "tagName": "%%prefix%%-actions-menu",
2247
2483
  "customElement": true
2248
2484
  },
2249
2485
  {
2250
2486
  "kind": "variable",
2251
- "name": "foundationAiCriteriaSearchShadowOptions",
2252
- "type": {
2253
- "text": "ShadowRootInit"
2254
- },
2255
- "default": "undefined"
2256
- },
2257
- {
2258
- "kind": "variable",
2259
- "name": "defaultAiCriteriaSearchConfig",
2260
- "type": {
2261
- "text": "object"
2262
- },
2263
- "default": "{}"
2264
- },
2265
- {
2266
- "kind": "variable",
2267
- "name": "foundationAiCriteriaSearch"
2487
+ "name": "foundationActionsMenu",
2488
+ "description": "The Foundation Actions Menu",
2489
+ "privacy": "public"
2268
2490
  }
2269
2491
  ],
2270
2492
  "exports": [
2271
2493
  {
2272
2494
  "kind": "js",
2273
- "name": "AiCriteriaSearch",
2274
- "declaration": {
2275
- "name": "AiCriteriaSearch",
2276
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2277
- }
2278
- },
2279
- {
2280
- "kind": "js",
2281
- "name": "foundationAiCriteriaSearchShadowOptions",
2282
- "declaration": {
2283
- "name": "foundationAiCriteriaSearchShadowOptions",
2284
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2285
- }
2286
- },
2287
- {
2288
- "kind": "js",
2289
- "name": "defaultAiCriteriaSearchConfig",
2495
+ "name": "ActionsMenu",
2290
2496
  "declaration": {
2291
- "name": "defaultAiCriteriaSearchConfig",
2292
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2497
+ "name": "ActionsMenu",
2498
+ "module": "src/actions-menu/actions-menu.ts"
2293
2499
  }
2294
2500
  },
2295
2501
  {
2296
2502
  "kind": "js",
2297
- "name": "foundationAiCriteriaSearch",
2503
+ "name": "foundationActionsMenu",
2298
2504
  "declaration": {
2299
- "name": "foundationAiCriteriaSearch",
2300
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2505
+ "name": "foundationActionsMenu",
2506
+ "module": "src/actions-menu/actions-menu.ts"
2301
2507
  }
2302
2508
  }
2303
2509
  ]
2304
2510
  },
2305
2511
  {
2306
2512
  "kind": "javascript-module",
2307
- "path": "src/ai-criteria-search/index.ts",
2513
+ "path": "src/actions-menu/index.ts",
2308
2514
  "declarations": [],
2309
2515
  "exports": [
2310
2516
  {
2311
2517
  "kind": "js",
2312
- "name": "AiCriteriaSearch",
2518
+ "name": "*",
2313
2519
  "declaration": {
2314
- "name": "AiCriteriaSearch",
2315
- "module": "./ai-criteria-search"
2520
+ "name": "*",
2521
+ "package": "./actions-menu.styles"
2316
2522
  }
2317
2523
  },
2318
2524
  {
2319
2525
  "kind": "js",
2320
- "name": "defaultAiCriteriaSearchConfig",
2526
+ "name": "*",
2321
2527
  "declaration": {
2322
- "name": "defaultAiCriteriaSearchConfig",
2323
- "module": "./ai-criteria-search"
2528
+ "name": "*",
2529
+ "package": "./actions-menu.template"
2324
2530
  }
2325
2531
  },
2326
2532
  {
2327
2533
  "kind": "js",
2328
- "name": "foundationAiCriteriaSearch",
2534
+ "name": "*",
2329
2535
  "declaration": {
2330
- "name": "foundationAiCriteriaSearch",
2331
- "module": "./ai-criteria-search"
2536
+ "name": "*",
2537
+ "package": "./actions-menu"
2332
2538
  }
2333
- },
2539
+ }
2540
+ ]
2541
+ },
2542
+ {
2543
+ "kind": "javascript-module",
2544
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2545
+ "declarations": [
2334
2546
  {
2335
- "kind": "js",
2336
- "name": "foundationAiCriteriaSearchShadowOptions",
2337
- "declaration": {
2338
- "name": "foundationAiCriteriaSearchShadowOptions",
2339
- "module": "./ai-criteria-search"
2340
- }
2341
- },
2547
+ "kind": "variable",
2548
+ "name": "foundationAiCriteriaSearchStyles",
2549
+ "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2550
+ }
2551
+ ],
2552
+ "exports": [
2342
2553
  {
2343
2554
  "kind": "js",
2344
2555
  "name": "foundationAiCriteriaSearchStyles",
2345
2556
  "declaration": {
2346
2557
  "name": "foundationAiCriteriaSearchStyles",
2347
- "module": "./ai-criteria-search.styles"
2558
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2348
2559
  }
2349
- },
2560
+ }
2561
+ ]
2562
+ },
2563
+ {
2564
+ "kind": "javascript-module",
2565
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2566
+ "declarations": [
2350
2567
  {
2351
- "kind": "js",
2568
+ "kind": "variable",
2352
2569
  "name": "foundationAiCriteriaSearchTemplate",
2353
- "declaration": {
2354
- "name": "foundationAiCriteriaSearchTemplate",
2355
- "module": "./ai-criteria-search.template"
2356
- }
2357
- },
2358
- {
2359
- "kind": "js",
2360
- "name": "*",
2361
- "declaration": {
2362
- "name": "*",
2363
- "package": "./validation/criteria-ir"
2364
- }
2365
- },
2366
- {
2367
- "kind": "js",
2368
- "name": "*",
2369
- "declaration": {
2370
- "name": "*",
2371
- "package": "./validation/operator-map"
2372
- }
2373
- },
2374
- {
2375
- "kind": "js",
2376
- "name": "*",
2377
- "declaration": {
2378
- "name": "*",
2379
- "package": "./validation/schema-validator"
2380
- }
2381
- }
2382
- ]
2383
- },
2384
- {
2385
- "kind": "javascript-module",
2386
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2387
- "declarations": [
2388
- {
2389
- "kind": "function",
2390
- "name": "formatValidationErrors",
2391
- "return": {
2392
- "type": {
2393
- "text": "string"
2394
- }
2395
- },
2396
- "parameters": [
2397
- {
2398
- "name": "errors",
2399
- "type": {
2400
- "text": "ValidationError[]"
2401
- }
2402
- }
2403
- ],
2404
- "description": "Formats validation errors into a user-friendly message."
2405
- },
2406
- {
2407
- "kind": "function",
2408
- "name": "showCriteriaError",
2409
- "return": {
2410
- "type": {
2411
- "text": "void"
2412
- }
2570
+ "type": {
2571
+ "text": "ViewTemplate<AiCriteriaSearch>"
2413
2572
  },
2414
- "parameters": [
2415
- {
2416
- "name": "title",
2417
- "type": {
2418
- "text": "string"
2419
- },
2420
- "description": "Notification title (e.g. \"Criteria validation error\")"
2421
- },
2422
- {
2423
- "name": "body",
2424
- "type": {
2425
- "text": "string"
2426
- },
2427
- "description": "Error message to display"
2428
- },
2429
- {
2430
- "name": "tagName",
2431
- "type": {
2432
- "text": "string"
2433
- },
2434
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2435
- }
2436
- ],
2437
- "description": "Shows a criteria error as a toast notification."
2573
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2438
2574
  }
2439
2575
  ],
2440
2576
  "exports": [
2441
2577
  {
2442
2578
  "kind": "js",
2443
- "name": "formatValidationErrors",
2444
- "declaration": {
2445
- "name": "formatValidationErrors",
2446
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2447
- }
2448
- },
2449
- {
2450
- "kind": "js",
2451
- "name": "showCriteriaError",
2579
+ "name": "foundationAiCriteriaSearchTemplate",
2452
2580
  "declaration": {
2453
- "name": "showCriteriaError",
2454
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2581
+ "name": "foundationAiCriteriaSearchTemplate",
2582
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2455
2583
  }
2456
2584
  }
2457
2585
  ]
2458
2586
  },
2459
2587
  {
2460
2588
  "kind": "javascript-module",
2461
- "path": "src/actions-menu/actions-menu.styles.ts",
2589
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2462
2590
  "declarations": [
2463
2591
  {
2464
- "kind": "function",
2465
- "name": "actionsMenuBaseStyles",
2466
- "return": {
2467
- "type": {
2468
- "text": "ElementStyles"
2469
- }
2470
- },
2471
- "parameters": [
2472
- {
2473
- "name": "context",
2474
- "type": {
2475
- "text": "ElementDefinitionContext"
2476
- }
2477
- },
2478
- {
2479
- "name": "definition",
2480
- "type": {
2481
- "text": "FoundationElementDefinition"
2482
- }
2483
- }
2484
- ]
2485
- },
2486
- {
2487
- "kind": "function",
2488
- "name": "foundationActionsMenuStyles",
2489
- "return": {
2490
- "type": {
2491
- "text": "ElementStyles"
2492
- }
2493
- },
2494
- "parameters": [
2592
+ "kind": "class",
2593
+ "description": "Natural-language criteria search input with AI interpretation.",
2594
+ "name": "AiCriteriaSearch",
2595
+ "members": [
2495
2596
  {
2496
- "name": "context",
2597
+ "kind": "field",
2598
+ "name": "providerRegistry",
2497
2599
  "type": {
2498
- "text": "ElementDefinitionContext"
2600
+ "text": "AIProviderRegistry"
2499
2601
  }
2500
2602
  },
2501
2603
  {
2502
- "name": "definition",
2503
- "type": {
2504
- "text": "FoundationElementDefinition"
2505
- }
2506
- }
2507
- ]
2508
- }
2509
- ],
2510
- "exports": [
2511
- {
2512
- "kind": "js",
2513
- "name": "actionsMenuBaseStyles",
2514
- "declaration": {
2515
- "name": "actionsMenuBaseStyles",
2516
- "module": "src/actions-menu/actions-menu.styles.ts"
2517
- }
2518
- },
2519
- {
2520
- "kind": "js",
2521
- "name": "foundationActionsMenuStyles",
2522
- "declaration": {
2523
- "name": "foundationActionsMenuStyles",
2524
- "module": "src/actions-menu/actions-menu.styles.ts"
2525
- }
2526
- }
2527
- ]
2528
- },
2529
- {
2530
- "kind": "javascript-module",
2531
- "path": "src/actions-menu/actions-menu.template.ts",
2532
- "declarations": [
2533
- {
2534
- "kind": "function",
2535
- "name": "menuTemplate",
2536
- "parameters": [
2537
- {
2538
- "name": "prefix",
2539
- "type": {
2540
- "text": "string"
2541
- }
2542
- }
2543
- ]
2544
- },
2545
- {
2546
- "kind": "function",
2547
- "name": "singleOptionTemplate",
2548
- "parameters": [
2549
- {
2550
- "name": "prefix",
2604
+ "kind": "field",
2605
+ "name": "placeholder",
2551
2606
  "type": {
2552
2607
  "text": "string"
2553
- }
2554
- }
2555
- ]
2556
- },
2557
- {
2558
- "kind": "variable",
2559
- "name": "foundationActionsMenuTemplate",
2560
- "type": {
2561
- "text": "ViewTemplate<ActionsMenu>"
2562
- },
2563
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2564
- }
2565
- ],
2566
- "exports": [
2567
- {
2568
- "kind": "js",
2569
- "name": "menuTemplate",
2570
- "declaration": {
2571
- "name": "menuTemplate",
2572
- "module": "src/actions-menu/actions-menu.template.ts"
2573
- }
2574
- },
2575
- {
2576
- "kind": "js",
2577
- "name": "singleOptionTemplate",
2578
- "declaration": {
2579
- "name": "singleOptionTemplate",
2580
- "module": "src/actions-menu/actions-menu.template.ts"
2581
- }
2582
- },
2583
- {
2584
- "kind": "js",
2585
- "name": "foundationActionsMenuTemplate",
2586
- "declaration": {
2587
- "name": "foundationActionsMenuTemplate",
2588
- "module": "src/actions-menu/actions-menu.template.ts"
2589
- }
2590
- }
2591
- ]
2592
- },
2593
- {
2594
- "kind": "javascript-module",
2595
- "path": "src/actions-menu/actions-menu.ts",
2596
- "declarations": [
2597
- {
2598
- "kind": "class",
2599
- "description": "",
2600
- "name": "ActionsMenu",
2601
- "members": [
2608
+ },
2609
+ "default": "'Describe your search criteria in natural language...'"
2610
+ },
2602
2611
  {
2603
2612
  "kind": "field",
2604
- "name": "actions",
2613
+ "name": "disabled",
2605
2614
  "type": {
2606
- "text": "ActionMenuItem[]"
2615
+ "text": "boolean"
2607
2616
  }
2608
2617
  },
2609
2618
  {
2610
2619
  "kind": "field",
2611
- "name": "isVertical",
2620
+ "name": "inputValue",
2612
2621
  "type": {
2613
- "text": "boolean"
2622
+ "text": "string"
2614
2623
  },
2615
- "default": "false"
2624
+ "default": "''"
2616
2625
  },
2617
2626
  {
2618
2627
  "kind": "field",
2619
- "name": "addDefaultActions",
2628
+ "name": "isInterpreting",
2620
2629
  "type": {
2621
2630
  "text": "boolean"
2622
2631
  },
2623
- "default": "true"
2632
+ "default": "false"
2624
2633
  },
2625
2634
  {
2626
2635
  "kind": "field",
2627
- "name": "autoCloseOnAction",
2636
+ "name": "lastValidCriteria",
2628
2637
  "type": {
2629
- "text": "boolean"
2638
+ "text": "string | null"
2630
2639
  },
2631
- "default": "true"
2640
+ "default": "null"
2632
2641
  },
2633
2642
  {
2634
2643
  "kind": "field",
2635
- "name": "classNames",
2644
+ "name": "activeGroups",
2636
2645
  "type": {
2637
- "text": "string"
2638
- }
2646
+ "text": "CriteriaGroup[]"
2647
+ },
2648
+ "default": "[]"
2639
2649
  },
2640
2650
  {
2641
2651
  "kind": "field",
2642
- "name": "definition",
2652
+ "name": "showingChips",
2643
2653
  "type": {
2644
- "text": "any"
2645
- }
2654
+ "text": "boolean"
2655
+ },
2656
+ "default": "false"
2646
2657
  },
2647
2658
  {
2648
2659
  "kind": "field",
2649
- "name": "name",
2660
+ "name": "fieldMetadata",
2650
2661
  "type": {
2651
- "text": "string"
2662
+ "text": "MetadataDetail[] | string[]"
2652
2663
  },
2653
- "default": "'Actions'"
2664
+ "default": "[]"
2654
2665
  },
2655
2666
  {
2656
2667
  "kind": "field",
2657
- "name": "open",
2668
+ "name": "isRecording",
2658
2669
  "type": {
2659
2670
  "text": "boolean"
2660
2671
  },
@@ -2662,129 +2673,125 @@
2662
2673
  },
2663
2674
  {
2664
2675
  "kind": "field",
2665
- "name": "buttonAppearance",
2676
+ "name": "textAreaRef",
2666
2677
  "type": {
2667
- "text": "string"
2668
- }
2678
+ "text": "HTMLTextAreaElement"
2679
+ },
2680
+ "privacy": "public"
2669
2681
  },
2670
2682
  {
2671
2683
  "kind": "field",
2672
- "name": "hideDisabled",
2684
+ "name": "stopRecording",
2673
2685
  "type": {
2674
- "text": "boolean"
2686
+ "text": "(() => void) | null"
2675
2687
  },
2676
- "default": "false"
2688
+ "privacy": "private",
2689
+ "default": "null"
2677
2690
  },
2678
2691
  {
2679
2692
  "kind": "field",
2680
- "name": "hideMenuSingleOption",
2693
+ "name": "speechApplyDebounceTimer",
2681
2694
  "type": {
2682
- "text": "boolean"
2695
+ "text": "ReturnType<typeof setTimeout> | null"
2683
2696
  },
2684
- "default": "false"
2697
+ "privacy": "private",
2698
+ "default": "null"
2685
2699
  },
2686
2700
  {
2687
2701
  "kind": "field",
2688
- "name": "singleOption",
2702
+ "name": "speechAvailable",
2689
2703
  "type": {
2690
- "text": "ActionMenuItem"
2691
- }
2704
+ "text": "boolean"
2705
+ },
2706
+ "readonly": true
2692
2707
  },
2693
2708
  {
2694
2709
  "kind": "field",
2695
- "name": "actionsMenu",
2710
+ "name": "criteriaChips",
2696
2711
  "type": {
2697
- "text": "HTMLElement"
2698
- }
2712
+ "text": "CriteriaChip[]"
2713
+ },
2714
+ "readonly": true
2699
2715
  },
2700
2716
  {
2701
- "kind": "field",
2702
- "name": "actionsOpener",
2703
- "type": {
2704
- "text": "HTMLElement"
2705
- }
2717
+ "kind": "method",
2718
+ "name": "getFieldLabel",
2719
+ "privacy": "private",
2720
+ "return": {
2721
+ "type": {
2722
+ "text": "string"
2723
+ }
2724
+ },
2725
+ "parameters": [
2726
+ {
2727
+ "name": "fieldName",
2728
+ "type": {
2729
+ "text": "string"
2730
+ }
2731
+ }
2732
+ ]
2706
2733
  },
2707
2734
  {
2708
2735
  "kind": "method",
2709
- "name": "updateMenuPosition",
2710
- "privacy": "private"
2736
+ "name": "toggleCriteriaView",
2737
+ "return": {
2738
+ "type": {
2739
+ "text": "void"
2740
+ }
2741
+ }
2711
2742
  },
2712
2743
  {
2713
2744
  "kind": "method",
2714
- "name": "definitionChanged",
2715
- "privacy": "protected",
2745
+ "name": "removeChip",
2746
+ "return": {
2747
+ "type": {
2748
+ "text": "void"
2749
+ }
2750
+ },
2716
2751
  "parameters": [
2717
2752
  {
2718
- "name": "oldValue",
2753
+ "name": "groupIndex",
2719
2754
  "type": {
2720
- "text": "any"
2755
+ "text": "number"
2721
2756
  }
2722
2757
  },
2723
2758
  {
2724
- "name": "newValue",
2759
+ "name": "clauseIndex",
2725
2760
  "type": {
2726
- "text": "any"
2761
+ "text": "number"
2727
2762
  }
2728
2763
  }
2729
2764
  ]
2730
2765
  },
2731
2766
  {
2732
2767
  "kind": "method",
2733
- "name": "openChanged",
2734
- "privacy": "protected"
2768
+ "name": "clearChips",
2769
+ "return": {
2770
+ "type": {
2771
+ "text": "void"
2772
+ }
2773
+ }
2735
2774
  },
2736
2775
  {
2737
2776
  "kind": "method",
2738
- "name": "toggleActionsMenuVisibility"
2777
+ "name": "handleSubmit"
2739
2778
  },
2740
2779
  {
2741
2780
  "kind": "method",
2742
- "name": "onActionMenuItemClick",
2743
- "parameters": [
2744
- {
2745
- "name": "callback",
2746
- "type": {
2747
- "text": "(rowData) => void | any"
2748
- }
2749
- }
2750
- ]
2751
- },
2752
- {
2753
- "kind": "field",
2754
- "name": "allActions",
2755
- "type": {
2756
- "text": "ActionMenuItem[]"
2757
- },
2758
- "readonly": true
2781
+ "name": "handleBlur"
2759
2782
  },
2760
2783
  {
2761
- "kind": "field",
2762
- "name": "rowData",
2763
- "readonly": true
2784
+ "kind": "method",
2785
+ "name": "clear"
2764
2786
  },
2765
2787
  {
2766
2788
  "kind": "method",
2767
- "name": "getLabel",
2768
- "parameters": [
2769
- {
2770
- "name": "name",
2771
- "type": {
2772
- "text": "string | ((rowData: any) => string)"
2773
- }
2774
- }
2775
- ]
2789
+ "name": "toggleSpeechInput"
2776
2790
  },
2777
2791
  {
2778
2792
  "kind": "method",
2779
- "name": "getTemplate",
2780
- "parameters": [
2781
- {
2782
- "name": "prefix",
2783
- "type": {
2784
- "text": "string"
2785
- }
2786
- }
2787
- ]
2793
+ "name": "clearSpeechApplyDebounce",
2794
+ "privacy": "private"
2788
2795
  },
2789
2796
  {
2790
2797
  "kind": "field",
@@ -2898,131 +2905,245 @@
2898
2905
  }
2899
2906
  }
2900
2907
  ],
2908
+ "events": [
2909
+ {
2910
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2911
+ "name": "criteria-changed"
2912
+ },
2913
+ {
2914
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2915
+ "name": "validation-errors"
2916
+ }
2917
+ ],
2901
2918
  "attributes": [
2902
2919
  {
2903
- "name": "is-vertical",
2920
+ "name": "placeholder",
2904
2921
  "type": {
2905
- "text": "boolean"
2922
+ "text": "string"
2906
2923
  },
2907
- "default": "false",
2908
- "fieldName": "isVertical"
2924
+ "default": "'Describe your search criteria in natural language...'",
2925
+ "fieldName": "placeholder"
2909
2926
  },
2910
2927
  {
2911
- "name": "add-default-actions",
2912
2928
  "type": {
2913
2929
  "text": "boolean"
2914
2930
  },
2915
- "default": "true",
2916
- "fieldName": "addDefaultActions"
2917
- },
2931
+ "fieldName": "disabled"
2932
+ }
2933
+ ],
2934
+ "superclass": {
2935
+ "name": "FoundationElement",
2936
+ "package": "@microsoft/fast-foundation"
2937
+ },
2938
+ "tagName": "%%prefix%%-ai-criteria-search",
2939
+ "customElement": true
2940
+ },
2941
+ {
2942
+ "kind": "variable",
2943
+ "name": "foundationAiCriteriaSearchShadowOptions",
2944
+ "type": {
2945
+ "text": "ShadowRootInit"
2946
+ },
2947
+ "default": "undefined"
2948
+ },
2949
+ {
2950
+ "kind": "variable",
2951
+ "name": "defaultAiCriteriaSearchConfig",
2952
+ "type": {
2953
+ "text": "object"
2954
+ },
2955
+ "default": "{}"
2956
+ },
2957
+ {
2958
+ "kind": "variable",
2959
+ "name": "foundationAiCriteriaSearch"
2960
+ }
2961
+ ],
2962
+ "exports": [
2963
+ {
2964
+ "kind": "js",
2965
+ "name": "AiCriteriaSearch",
2966
+ "declaration": {
2967
+ "name": "AiCriteriaSearch",
2968
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2969
+ }
2970
+ },
2971
+ {
2972
+ "kind": "js",
2973
+ "name": "foundationAiCriteriaSearchShadowOptions",
2974
+ "declaration": {
2975
+ "name": "foundationAiCriteriaSearchShadowOptions",
2976
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2977
+ }
2978
+ },
2979
+ {
2980
+ "kind": "js",
2981
+ "name": "defaultAiCriteriaSearchConfig",
2982
+ "declaration": {
2983
+ "name": "defaultAiCriteriaSearchConfig",
2984
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2985
+ }
2986
+ },
2987
+ {
2988
+ "kind": "js",
2989
+ "name": "foundationAiCriteriaSearch",
2990
+ "declaration": {
2991
+ "name": "foundationAiCriteriaSearch",
2992
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2993
+ }
2994
+ }
2995
+ ]
2996
+ },
2997
+ {
2998
+ "kind": "javascript-module",
2999
+ "path": "src/ai-criteria-search/index.ts",
3000
+ "declarations": [],
3001
+ "exports": [
3002
+ {
3003
+ "kind": "js",
3004
+ "name": "AiCriteriaSearch",
3005
+ "declaration": {
3006
+ "name": "AiCriteriaSearch",
3007
+ "module": "./ai-criteria-search"
3008
+ }
3009
+ },
3010
+ {
3011
+ "kind": "js",
3012
+ "name": "defaultAiCriteriaSearchConfig",
3013
+ "declaration": {
3014
+ "name": "defaultAiCriteriaSearchConfig",
3015
+ "module": "./ai-criteria-search"
3016
+ }
3017
+ },
3018
+ {
3019
+ "kind": "js",
3020
+ "name": "foundationAiCriteriaSearch",
3021
+ "declaration": {
3022
+ "name": "foundationAiCriteriaSearch",
3023
+ "module": "./ai-criteria-search"
3024
+ }
3025
+ },
3026
+ {
3027
+ "kind": "js",
3028
+ "name": "foundationAiCriteriaSearchShadowOptions",
3029
+ "declaration": {
3030
+ "name": "foundationAiCriteriaSearchShadowOptions",
3031
+ "module": "./ai-criteria-search"
3032
+ }
3033
+ },
3034
+ {
3035
+ "kind": "js",
3036
+ "name": "foundationAiCriteriaSearchStyles",
3037
+ "declaration": {
3038
+ "name": "foundationAiCriteriaSearchStyles",
3039
+ "module": "./ai-criteria-search.styles"
3040
+ }
3041
+ },
3042
+ {
3043
+ "kind": "js",
3044
+ "name": "foundationAiCriteriaSearchTemplate",
3045
+ "declaration": {
3046
+ "name": "foundationAiCriteriaSearchTemplate",
3047
+ "module": "./ai-criteria-search.template"
3048
+ }
3049
+ },
3050
+ {
3051
+ "kind": "js",
3052
+ "name": "*",
3053
+ "declaration": {
3054
+ "name": "*",
3055
+ "package": "./validation/criteria-ir"
3056
+ }
3057
+ },
3058
+ {
3059
+ "kind": "js",
3060
+ "name": "*",
3061
+ "declaration": {
3062
+ "name": "*",
3063
+ "package": "./validation/operator-map"
3064
+ }
3065
+ },
3066
+ {
3067
+ "kind": "js",
3068
+ "name": "*",
3069
+ "declaration": {
3070
+ "name": "*",
3071
+ "package": "./validation/schema-validator"
3072
+ }
3073
+ }
3074
+ ]
3075
+ },
3076
+ {
3077
+ "kind": "javascript-module",
3078
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3079
+ "declarations": [
3080
+ {
3081
+ "kind": "function",
3082
+ "name": "formatValidationErrors",
3083
+ "return": {
3084
+ "type": {
3085
+ "text": "string"
3086
+ }
3087
+ },
3088
+ "parameters": [
2918
3089
  {
2919
- "name": "auto-close-on-action",
3090
+ "name": "errors",
2920
3091
  "type": {
2921
- "text": "boolean"
2922
- },
2923
- "default": "true",
2924
- "fieldName": "autoCloseOnAction"
2925
- },
3092
+ "text": "ValidationError[]"
3093
+ }
3094
+ }
3095
+ ],
3096
+ "description": "Formats validation errors into a user-friendly message."
3097
+ },
3098
+ {
3099
+ "kind": "function",
3100
+ "name": "showCriteriaError",
3101
+ "return": {
3102
+ "type": {
3103
+ "text": "void"
3104
+ }
3105
+ },
3106
+ "parameters": [
2926
3107
  {
2927
- "name": "name",
3108
+ "name": "title",
2928
3109
  "type": {
2929
3110
  "text": "string"
2930
3111
  },
2931
- "default": "'Actions'",
2932
- "fieldName": "name"
2933
- },
2934
- {
2935
- "name": "open",
2936
- "type": {
2937
- "text": "boolean"
2938
- },
2939
- "default": "false",
2940
- "fieldName": "open"
3112
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2941
3113
  },
2942
3114
  {
2943
- "name": "buttonAppearance",
3115
+ "name": "body",
2944
3116
  "type": {
2945
3117
  "text": "string"
2946
3118
  },
2947
- "fieldName": "buttonAppearance"
2948
- },
2949
- {
2950
- "name": "hide-disabled",
2951
- "type": {
2952
- "text": "boolean"
2953
- },
2954
- "default": "false",
2955
- "fieldName": "hideDisabled"
3119
+ "description": "Error message to display"
2956
3120
  },
2957
3121
  {
2958
- "name": "hide-menu-single-option",
3122
+ "name": "tagName",
2959
3123
  "type": {
2960
- "text": "boolean"
3124
+ "text": "string"
2961
3125
  },
2962
- "default": "false",
2963
- "fieldName": "hideMenuSingleOption"
3126
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2964
3127
  }
2965
3128
  ],
2966
- "superclass": {
2967
- "name": "FoundationElement",
2968
- "package": "@microsoft/fast-foundation"
2969
- },
2970
- "tagName": "%%prefix%%-actions-menu",
2971
- "customElement": true
2972
- },
2973
- {
2974
- "kind": "variable",
2975
- "name": "foundationActionsMenu",
2976
- "description": "The Foundation Actions Menu",
2977
- "privacy": "public"
3129
+ "description": "Shows a criteria error as a toast notification."
2978
3130
  }
2979
3131
  ],
2980
3132
  "exports": [
2981
3133
  {
2982
3134
  "kind": "js",
2983
- "name": "ActionsMenu",
2984
- "declaration": {
2985
- "name": "ActionsMenu",
2986
- "module": "src/actions-menu/actions-menu.ts"
2987
- }
2988
- },
2989
- {
2990
- "kind": "js",
2991
- "name": "foundationActionsMenu",
2992
- "declaration": {
2993
- "name": "foundationActionsMenu",
2994
- "module": "src/actions-menu/actions-menu.ts"
2995
- }
2996
- }
2997
- ]
2998
- },
2999
- {
3000
- "kind": "javascript-module",
3001
- "path": "src/actions-menu/index.ts",
3002
- "declarations": [],
3003
- "exports": [
3004
- {
3005
- "kind": "js",
3006
- "name": "*",
3007
- "declaration": {
3008
- "name": "*",
3009
- "package": "./actions-menu.styles"
3010
- }
3011
- },
3012
- {
3013
- "kind": "js",
3014
- "name": "*",
3135
+ "name": "formatValidationErrors",
3015
3136
  "declaration": {
3016
- "name": "*",
3017
- "package": "./actions-menu.template"
3137
+ "name": "formatValidationErrors",
3138
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3018
3139
  }
3019
3140
  },
3020
3141
  {
3021
3142
  "kind": "js",
3022
- "name": "*",
3143
+ "name": "showCriteriaError",
3023
3144
  "declaration": {
3024
- "name": "*",
3025
- "package": "./actions-menu"
3145
+ "name": "showCriteriaError",
3146
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3026
3147
  }
3027
3148
  }
3028
3149
  ]
@@ -3478,11 +3599,11 @@
3478
3599
  },
3479
3600
  {
3480
3601
  "kind": "javascript-module",
3481
- "path": "src/accordion/accordion.styles.ts",
3602
+ "path": "src/accordion-item/accordion-item.styles.ts",
3482
3603
  "declarations": [
3483
3604
  {
3484
3605
  "kind": "function",
3485
- "name": "foundationAccordionStyles",
3606
+ "name": "foundationAccordionItemStyles",
3486
3607
  "return": {
3487
3608
  "type": {
3488
3609
  "text": "ElementStyles"
@@ -3491,292 +3612,171 @@
3491
3612
  "parameters": [
3492
3613
  {
3493
3614
  "name": "context",
3494
- "type": {
3495
- "text": "ElementDefinitionContext"
3496
- }
3497
- },
3498
- {
3499
- "name": "definition",
3500
- "type": {
3501
- "text": "FoundationElementDefinition"
3502
- }
3503
- }
3504
- ]
3505
- }
3506
- ],
3507
- "exports": [
3508
- {
3509
- "kind": "js",
3510
- "name": "foundationAccordionStyles",
3511
- "declaration": {
3512
- "name": "foundationAccordionStyles",
3513
- "module": "src/accordion/accordion.styles.ts"
3514
- }
3515
- }
3516
- ]
3517
- },
3518
- {
3519
- "kind": "javascript-module",
3520
- "path": "src/accordion/accordion.template.ts",
3521
- "declarations": [
3522
- {
3523
- "kind": "function",
3524
- "name": "foundationAccordionTemplate",
3525
- "return": {
3526
- "type": {
3527
- "text": "ViewTemplate<Accordion>"
3528
- }
3529
- },
3530
- "parameters": [
3531
- {
3532
- "name": "context",
3533
- "type": {
3534
- "text": "ElementDefinitionContext"
3535
- }
3536
- },
3537
- {
3538
- "name": "definition",
3539
- "type": {
3540
- "text": "FoundationElementDefinition"
3541
- }
3542
- }
3543
- ]
3544
- }
3545
- ],
3546
- "exports": [
3547
- {
3548
- "kind": "js",
3549
- "name": "foundationAccordionTemplate",
3550
- "declaration": {
3551
- "name": "foundationAccordionTemplate",
3552
- "module": "src/accordion/accordion.template.ts"
3553
- }
3554
- }
3555
- ]
3556
- },
3557
- {
3558
- "kind": "javascript-module",
3559
- "path": "src/accordion/accordion.ts",
3560
- "declarations": [
3561
- {
3562
- "kind": "class",
3563
- "description": "",
3564
- "name": "Accordion",
3565
- "superclass": {
3566
- "name": "FASTAccordion",
3567
- "package": "@microsoft/fast-foundation"
3568
- },
3569
- "tagName": "%%prefix%%-accordion",
3570
- "customElement": true,
3571
- "attributes": [
3572
- {
3573
- "name": "expand-mode",
3574
- "type": {
3575
- "text": "AccordionExpandMode"
3576
- },
3577
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3578
- "fieldName": "expandmode",
3579
- "inheritedFrom": {
3580
- "name": "Accordion",
3581
- "module": "src/accordion/accordion.ts"
3582
- }
3583
- }
3584
- ],
3585
- "members": [
3586
- {
3587
- "kind": "field",
3588
- "name": "expandmode",
3589
- "type": {
3590
- "text": "AccordionExpandMode"
3591
- },
3592
- "privacy": "public",
3593
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3594
- "inheritedFrom": {
3595
- "name": "Accordion",
3596
- "module": "src/accordion/accordion.ts"
3597
- }
3598
- },
3599
- {
3600
- "kind": "field",
3601
- "name": "activeid",
3602
- "type": {
3603
- "text": "string | null"
3604
- },
3605
- "privacy": "private",
3606
- "inheritedFrom": {
3607
- "name": "Accordion",
3608
- "module": "src/accordion/accordion.ts"
3609
- }
3610
- },
3611
- {
3612
- "kind": "field",
3613
- "name": "activeItemIndex",
3614
- "type": {
3615
- "text": "number"
3616
- },
3617
- "privacy": "private",
3618
- "default": "0",
3619
- "inheritedFrom": {
3620
- "name": "Accordion",
3621
- "module": "src/accordion/accordion.ts"
3622
- }
3623
- },
3624
- {
3625
- "kind": "field",
3626
- "name": "accordionIds",
3627
- "type": {
3628
- "text": "Array<string | null>"
3629
- },
3630
- "privacy": "private",
3631
- "inheritedFrom": {
3632
- "name": "Accordion",
3633
- "module": "src/accordion/accordion.ts"
3634
- }
3635
- },
3636
- {
3637
- "kind": "field",
3638
- "name": "change",
3639
- "privacy": "private",
3640
- "inheritedFrom": {
3641
- "name": "Accordion",
3642
- "module": "src/accordion/accordion.ts"
3643
- }
3644
- },
3645
- {
3646
- "kind": "method",
3647
- "name": "findExpandedItem",
3648
- "privacy": "private",
3649
- "return": {
3650
- "type": {
3651
- "text": "AccordionItem | null"
3652
- }
3653
- },
3654
- "inheritedFrom": {
3655
- "name": "Accordion",
3656
- "module": "src/accordion/accordion.ts"
3615
+ "type": {
3616
+ "text": "ElementDefinitionContext"
3657
3617
  }
3658
3618
  },
3659
3619
  {
3660
- "kind": "field",
3661
- "name": "setItems",
3662
- "privacy": "private",
3663
- "inheritedFrom": {
3664
- "name": "Accordion",
3665
- "module": "src/accordion/accordion.ts"
3620
+ "name": "definition",
3621
+ "type": {
3622
+ "text": "FoundationElementDefinition"
3666
3623
  }
3667
- },
3624
+ }
3625
+ ]
3626
+ }
3627
+ ],
3628
+ "exports": [
3629
+ {
3630
+ "kind": "js",
3631
+ "name": "foundationAccordionItemStyles",
3632
+ "declaration": {
3633
+ "name": "foundationAccordionItemStyles",
3634
+ "module": "src/accordion-item/accordion-item.styles.ts"
3635
+ }
3636
+ }
3637
+ ]
3638
+ },
3639
+ {
3640
+ "kind": "javascript-module",
3641
+ "path": "src/accordion-item/accordion-item.template.ts",
3642
+ "declarations": [
3643
+ {
3644
+ "kind": "function",
3645
+ "name": "foundationAccordionItemTemplate",
3646
+ "return": {
3647
+ "type": {
3648
+ "text": "ViewTemplate<AccordionItem>"
3649
+ }
3650
+ },
3651
+ "parameters": [
3668
3652
  {
3669
- "kind": "method",
3670
- "name": "resetItems",
3671
- "privacy": "private",
3672
- "return": {
3673
- "type": {
3674
- "text": "void"
3675
- }
3676
- },
3677
- "inheritedFrom": {
3678
- "name": "Accordion",
3679
- "module": "src/accordion/accordion.ts"
3653
+ "name": "context",
3654
+ "type": {
3655
+ "text": "ElementDefinitionContext"
3680
3656
  }
3681
3657
  },
3682
3658
  {
3683
- "kind": "field",
3684
- "name": "removeItemListeners",
3685
- "privacy": "private",
3686
- "inheritedFrom": {
3687
- "name": "Accordion",
3688
- "module": "src/accordion/accordion.ts"
3659
+ "name": "definition",
3660
+ "type": {
3661
+ "text": "FoundationElementDefinition"
3689
3662
  }
3690
- },
3663
+ }
3664
+ ]
3665
+ }
3666
+ ],
3667
+ "exports": [
3668
+ {
3669
+ "kind": "js",
3670
+ "name": "foundationAccordionItemTemplate",
3671
+ "declaration": {
3672
+ "name": "foundationAccordionItemTemplate",
3673
+ "module": "src/accordion-item/accordion-item.template.ts"
3674
+ }
3675
+ }
3676
+ ]
3677
+ },
3678
+ {
3679
+ "kind": "javascript-module",
3680
+ "path": "src/accordion-item/accordion-item.ts",
3681
+ "declarations": [
3682
+ {
3683
+ "kind": "class",
3684
+ "description": "",
3685
+ "name": "AccordionItem",
3686
+ "superclass": {
3687
+ "name": "FASTAccordionItem",
3688
+ "package": "@microsoft/fast-components"
3689
+ },
3690
+ "tagName": "%%prefix%%-accordion-item",
3691
+ "customElement": true,
3692
+ "attributes": [
3691
3693
  {
3692
- "kind": "field",
3693
- "name": "activeItemChange",
3694
- "privacy": "private",
3694
+ "name": "heading-level",
3695
+ "type": {
3696
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
3697
+ },
3698
+ "default": "2",
3699
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
3700
+ "fieldName": "headinglevel",
3695
3701
  "inheritedFrom": {
3696
- "name": "Accordion",
3697
- "module": "src/accordion/accordion.ts"
3702
+ "name": "AccordionItem",
3703
+ "module": "src/accordion-item/accordion-item.ts"
3698
3704
  }
3699
3705
  },
3700
3706
  {
3701
- "kind": "method",
3702
- "name": "getItemIds",
3703
- "privacy": "private",
3704
- "return": {
3705
- "type": {
3706
- "text": "Array<string | null>"
3707
- }
3707
+ "type": {
3708
+ "text": "boolean"
3708
3709
  },
3710
+ "default": "false",
3711
+ "description": "Expands or collapses the item.",
3712
+ "fieldName": "expanded",
3709
3713
  "inheritedFrom": {
3710
- "name": "Accordion",
3711
- "module": "src/accordion/accordion.ts"
3714
+ "name": "AccordionItem",
3715
+ "module": "src/accordion-item/accordion-item.ts"
3712
3716
  }
3713
3717
  },
3714
3718
  {
3715
- "kind": "method",
3716
- "name": "isSingleExpandMode",
3717
- "privacy": "private",
3718
- "return": {
3719
- "type": {
3720
- "text": "boolean"
3721
- }
3719
+ "name": "id",
3720
+ "type": {
3721
+ "text": "string"
3722
3722
  },
3723
+ "description": "The item ID",
3724
+ "fieldName": "id",
3723
3725
  "inheritedFrom": {
3724
- "name": "Accordion",
3725
- "module": "src/accordion/accordion.ts"
3726
+ "name": "AccordionItem",
3727
+ "module": "src/accordion-item/accordion-item.ts"
3726
3728
  }
3727
- },
3729
+ }
3730
+ ],
3731
+ "members": [
3728
3732
  {
3729
3733
  "kind": "field",
3730
- "name": "handleItemKeyDown",
3731
- "privacy": "private",
3734
+ "name": "headinglevel",
3735
+ "type": {
3736
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
3737
+ },
3738
+ "privacy": "public",
3739
+ "default": "2",
3740
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
3732
3741
  "inheritedFrom": {
3733
- "name": "Accordion",
3734
- "module": "src/accordion/accordion.ts"
3742
+ "name": "AccordionItem",
3743
+ "module": "src/accordion-item/accordion-item.ts"
3735
3744
  }
3736
3745
  },
3737
3746
  {
3738
3747
  "kind": "field",
3739
- "name": "handleItemFocus",
3740
- "privacy": "private",
3748
+ "name": "expanded",
3749
+ "type": {
3750
+ "text": "boolean"
3751
+ },
3752
+ "privacy": "public",
3753
+ "default": "false",
3754
+ "description": "Expands or collapses the item.",
3741
3755
  "inheritedFrom": {
3742
- "name": "Accordion",
3743
- "module": "src/accordion/accordion.ts"
3756
+ "name": "AccordionItem",
3757
+ "module": "src/accordion-item/accordion-item.ts"
3744
3758
  }
3745
3759
  },
3746
3760
  {
3747
- "kind": "method",
3748
- "name": "adjust",
3749
- "privacy": "private",
3750
- "return": {
3751
- "type": {
3752
- "text": "void"
3753
- }
3761
+ "kind": "field",
3762
+ "name": "id",
3763
+ "type": {
3764
+ "text": "string"
3754
3765
  },
3755
- "parameters": [
3756
- {
3757
- "name": "adjustment",
3758
- "type": {
3759
- "text": "number"
3760
- }
3761
- }
3762
- ],
3766
+ "privacy": "public",
3767
+ "description": "The item ID",
3763
3768
  "inheritedFrom": {
3764
- "name": "Accordion",
3765
- "module": "src/accordion/accordion.ts"
3769
+ "name": "AccordionItem",
3770
+ "module": "src/accordion-item/accordion-item.ts"
3766
3771
  }
3767
3772
  },
3768
3773
  {
3769
- "kind": "method",
3770
- "name": "focusItem",
3774
+ "kind": "field",
3775
+ "name": "change",
3771
3776
  "privacy": "private",
3772
- "return": {
3773
- "type": {
3774
- "text": "void"
3775
- }
3776
- },
3777
3777
  "inheritedFrom": {
3778
- "name": "Accordion",
3779
- "module": "src/accordion/accordion.ts"
3778
+ "name": "AccordionItem",
3779
+ "module": "src/accordion-item/accordion-item.ts"
3780
3780
  }
3781
3781
  },
3782
3782
  {
@@ -3893,18 +3893,18 @@
3893
3893
  ],
3894
3894
  "events": [
3895
3895
  {
3896
- "description": "Fires a custom 'change' event when the active item changes",
3896
+ "description": "Fires a custom 'change' event when the button is invoked",
3897
3897
  "name": "change",
3898
3898
  "inheritedFrom": {
3899
- "name": "Accordion",
3900
- "module": "src/accordion/accordion.ts"
3899
+ "name": "AccordionItem",
3900
+ "module": "src/accordion-item/accordion-item.ts"
3901
3901
  }
3902
3902
  }
3903
3903
  ]
3904
3904
  },
3905
3905
  {
3906
3906
  "kind": "variable",
3907
- "name": "foundationAccordionShadowOptions",
3907
+ "name": "foundationAccordionItemShadowOptions",
3908
3908
  "type": {
3909
3909
  "text": "ShadowRootInit"
3910
3910
  },
@@ -3912,57 +3912,57 @@
3912
3912
  },
3913
3913
  {
3914
3914
  "kind": "variable",
3915
- "name": "defaultAccordionConfig",
3915
+ "name": "defaultAccordionItemConfig",
3916
3916
  "type": {
3917
3917
  "text": "object"
3918
3918
  },
3919
- "default": "{}"
3919
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
3920
3920
  },
3921
3921
  {
3922
3922
  "kind": "variable",
3923
- "name": "foundationAccordion",
3924
- "description": "The Foundation Accordion",
3923
+ "name": "foundationAccordionItem",
3924
+ "description": "The Foundation Accordion Item",
3925
3925
  "privacy": "public"
3926
3926
  }
3927
3927
  ],
3928
3928
  "exports": [
3929
3929
  {
3930
3930
  "kind": "js",
3931
- "name": "Accordion",
3931
+ "name": "AccordionItem",
3932
3932
  "declaration": {
3933
- "name": "Accordion",
3934
- "module": "src/accordion/accordion.ts"
3933
+ "name": "AccordionItem",
3934
+ "module": "src/accordion-item/accordion-item.ts"
3935
3935
  }
3936
3936
  },
3937
3937
  {
3938
3938
  "kind": "js",
3939
- "name": "foundationAccordionShadowOptions",
3939
+ "name": "foundationAccordionItemShadowOptions",
3940
3940
  "declaration": {
3941
- "name": "foundationAccordionShadowOptions",
3942
- "module": "src/accordion/accordion.ts"
3941
+ "name": "foundationAccordionItemShadowOptions",
3942
+ "module": "src/accordion-item/accordion-item.ts"
3943
3943
  }
3944
3944
  },
3945
3945
  {
3946
3946
  "kind": "js",
3947
- "name": "defaultAccordionConfig",
3947
+ "name": "defaultAccordionItemConfig",
3948
3948
  "declaration": {
3949
- "name": "defaultAccordionConfig",
3950
- "module": "src/accordion/accordion.ts"
3949
+ "name": "defaultAccordionItemConfig",
3950
+ "module": "src/accordion-item/accordion-item.ts"
3951
3951
  }
3952
3952
  },
3953
3953
  {
3954
3954
  "kind": "js",
3955
- "name": "foundationAccordion",
3955
+ "name": "foundationAccordionItem",
3956
3956
  "declaration": {
3957
- "name": "foundationAccordion",
3958
- "module": "src/accordion/accordion.ts"
3957
+ "name": "foundationAccordionItem",
3958
+ "module": "src/accordion-item/accordion-item.ts"
3959
3959
  }
3960
3960
  }
3961
3961
  ]
3962
3962
  },
3963
3963
  {
3964
3964
  "kind": "javascript-module",
3965
- "path": "src/accordion/index.ts",
3965
+ "path": "src/accordion-item/index.ts",
3966
3966
  "declarations": [],
3967
3967
  "exports": [
3968
3968
  {
@@ -3970,7 +3970,7 @@
3970
3970
  "name": "*",
3971
3971
  "declaration": {
3972
3972
  "name": "*",
3973
- "package": "./accordion.template"
3973
+ "package": "./accordion-item.template"
3974
3974
  }
3975
3975
  },
3976
3976
  {
@@ -3978,7 +3978,7 @@
3978
3978
  "name": "*",
3979
3979
  "declaration": {
3980
3980
  "name": "*",
3981
- "package": "./accordion.styles"
3981
+ "package": "./accordion-item.styles"
3982
3982
  }
3983
3983
  },
3984
3984
  {
@@ -3986,7 +3986,7 @@
3986
3986
  "name": "*",
3987
3987
  "declaration": {
3988
3988
  "name": "*",
3989
- "package": "./accordion"
3989
+ "package": "./accordion-item"
3990
3990
  }
3991
3991
  }
3992
3992
  ]