@genesislcap/foundation-ui 15.10.0 → 15.10.1

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/accordion.styles.ts",
1458
+ "path": "src/accordion-item/accordion-item.styles.ts",
1459
1459
  "declarations": [
1460
1460
  {
1461
1461
  "kind": "function",
1462
- "name": "foundationAccordionStyles",
1462
+ "name": "foundationAccordionItemStyles",
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": "foundationAccordionStyles",
1487
+ "name": "foundationAccordionItemStyles",
1488
1488
  "declaration": {
1489
- "name": "foundationAccordionStyles",
1490
- "module": "src/accordion/accordion.styles.ts"
1489
+ "name": "foundationAccordionItemStyles",
1490
+ "module": "src/accordion-item/accordion-item.styles.ts"
1491
1491
  }
1492
1492
  }
1493
1493
  ]
1494
1494
  },
1495
1495
  {
1496
1496
  "kind": "javascript-module",
1497
- "path": "src/accordion/accordion.template.ts",
1497
+ "path": "src/accordion-item/accordion-item.template.ts",
1498
1498
  "declarations": [
1499
1499
  {
1500
1500
  "kind": "function",
1501
- "name": "foundationAccordionTemplate",
1501
+ "name": "foundationAccordionItemTemplate",
1502
1502
  "return": {
1503
1503
  "type": {
1504
- "text": "ViewTemplate<Accordion>"
1504
+ "text": "ViewTemplate<AccordionItem>"
1505
1505
  }
1506
1506
  },
1507
1507
  "parameters": [
@@ -1523,237 +1523,116 @@
1523
1523
  "exports": [
1524
1524
  {
1525
1525
  "kind": "js",
1526
- "name": "foundationAccordionTemplate",
1526
+ "name": "foundationAccordionItemTemplate",
1527
1527
  "declaration": {
1528
- "name": "foundationAccordionTemplate",
1529
- "module": "src/accordion/accordion.template.ts"
1528
+ "name": "foundationAccordionItemTemplate",
1529
+ "module": "src/accordion-item/accordion-item.template.ts"
1530
1530
  }
1531
1531
  }
1532
1532
  ]
1533
1533
  },
1534
1534
  {
1535
1535
  "kind": "javascript-module",
1536
- "path": "src/accordion/accordion.ts",
1536
+ "path": "src/accordion-item/accordion-item.ts",
1537
1537
  "declarations": [
1538
1538
  {
1539
1539
  "kind": "class",
1540
1540
  "description": "",
1541
- "name": "Accordion",
1541
+ "name": "AccordionItem",
1542
1542
  "superclass": {
1543
- "name": "FASTAccordion",
1544
- "package": "@microsoft/fast-foundation"
1543
+ "name": "FASTAccordionItem",
1544
+ "package": "@microsoft/fast-components"
1545
1545
  },
1546
- "tagName": "%%prefix%%-accordion",
1546
+ "tagName": "%%prefix%%-accordion-item",
1547
1547
  "customElement": true,
1548
1548
  "attributes": [
1549
1549
  {
1550
- "name": "expand-mode",
1551
- "type": {
1552
- "text": "AccordionExpandMode"
1553
- },
1554
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1555
- "fieldName": "expandmode",
1556
- "inheritedFrom": {
1557
- "name": "Accordion",
1558
- "module": "src/accordion/accordion.ts"
1559
- }
1560
- }
1561
- ],
1562
- "members": [
1563
- {
1564
- "kind": "field",
1565
- "name": "expandmode",
1550
+ "name": "heading-level",
1566
1551
  "type": {
1567
- "text": "AccordionExpandMode"
1552
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1568
1553
  },
1569
- "privacy": "public",
1570
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
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",
1571
1557
  "inheritedFrom": {
1572
- "name": "Accordion",
1573
- "module": "src/accordion/accordion.ts"
1558
+ "name": "AccordionItem",
1559
+ "module": "src/accordion-item/accordion-item.ts"
1574
1560
  }
1575
1561
  },
1576
1562
  {
1577
- "kind": "field",
1578
- "name": "activeid",
1579
1563
  "type": {
1580
- "text": "string | null"
1564
+ "text": "boolean"
1581
1565
  },
1582
- "privacy": "private",
1566
+ "default": "false",
1567
+ "description": "Expands or collapses the item.",
1568
+ "fieldName": "expanded",
1583
1569
  "inheritedFrom": {
1584
- "name": "Accordion",
1585
- "module": "src/accordion/accordion.ts"
1570
+ "name": "AccordionItem",
1571
+ "module": "src/accordion-item/accordion-item.ts"
1586
1572
  }
1587
1573
  },
1588
1574
  {
1589
- "kind": "field",
1590
- "name": "activeItemIndex",
1575
+ "name": "id",
1591
1576
  "type": {
1592
- "text": "number"
1577
+ "text": "string"
1593
1578
  },
1594
- "privacy": "private",
1595
- "default": "0",
1579
+ "description": "The item ID",
1580
+ "fieldName": "id",
1596
1581
  "inheritedFrom": {
1597
- "name": "Accordion",
1598
- "module": "src/accordion/accordion.ts"
1582
+ "name": "AccordionItem",
1583
+ "module": "src/accordion-item/accordion-item.ts"
1599
1584
  }
1600
- },
1585
+ }
1586
+ ],
1587
+ "members": [
1601
1588
  {
1602
1589
  "kind": "field",
1603
- "name": "accordionIds",
1590
+ "name": "headinglevel",
1604
1591
  "type": {
1605
- "text": "Array<string | null>"
1606
- },
1607
- "privacy": "private",
1608
- "inheritedFrom": {
1609
- "name": "Accordion",
1610
- "module": "src/accordion/accordion.ts"
1611
- }
1612
- },
1613
- {
1614
- "kind": "field",
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
- }
1592
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1630
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.",
1631
1597
  "inheritedFrom": {
1632
- "name": "Accordion",
1633
- "module": "src/accordion/accordion.ts"
1598
+ "name": "AccordionItem",
1599
+ "module": "src/accordion-item/accordion-item.ts"
1634
1600
  }
1635
1601
  },
1636
1602
  {
1637
1603
  "kind": "field",
1638
- "name": "setItems",
1639
- "privacy": "private",
1640
- "inheritedFrom": {
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
- }
1604
+ "name": "expanded",
1605
+ "type": {
1606
+ "text": "boolean"
1653
1607
  },
1608
+ "privacy": "public",
1609
+ "default": "false",
1610
+ "description": "Expands or collapses the item.",
1654
1611
  "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"
1612
+ "name": "AccordionItem",
1613
+ "module": "src/accordion-item/accordion-item.ts"
1666
1614
  }
1667
1615
  },
1668
1616
  {
1669
1617
  "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
- }
1618
+ "name": "id",
1619
+ "type": {
1620
+ "text": "string"
1699
1621
  },
1622
+ "privacy": "public",
1623
+ "description": "The item ID",
1700
1624
  "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"
1625
+ "name": "AccordionItem",
1626
+ "module": "src/accordion-item/accordion-item.ts"
1712
1627
  }
1713
1628
  },
1714
1629
  {
1715
1630
  "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",
1631
+ "name": "change",
1748
1632
  "privacy": "private",
1749
- "return": {
1750
- "type": {
1751
- "text": "void"
1752
- }
1753
- },
1754
1633
  "inheritedFrom": {
1755
- "name": "Accordion",
1756
- "module": "src/accordion/accordion.ts"
1634
+ "name": "AccordionItem",
1635
+ "module": "src/accordion-item/accordion-item.ts"
1757
1636
  }
1758
1637
  },
1759
1638
  {
@@ -1870,18 +1749,18 @@
1870
1749
  ],
1871
1750
  "events": [
1872
1751
  {
1873
- "description": "Fires a custom 'change' event when the active item changes",
1752
+ "description": "Fires a custom 'change' event when the button is invoked",
1874
1753
  "name": "change",
1875
1754
  "inheritedFrom": {
1876
- "name": "Accordion",
1877
- "module": "src/accordion/accordion.ts"
1755
+ "name": "AccordionItem",
1756
+ "module": "src/accordion-item/accordion-item.ts"
1878
1757
  }
1879
1758
  }
1880
1759
  ]
1881
1760
  },
1882
1761
  {
1883
1762
  "kind": "variable",
1884
- "name": "foundationAccordionShadowOptions",
1763
+ "name": "foundationAccordionItemShadowOptions",
1885
1764
  "type": {
1886
1765
  "text": "ShadowRootInit"
1887
1766
  },
@@ -1889,57 +1768,57 @@
1889
1768
  },
1890
1769
  {
1891
1770
  "kind": "variable",
1892
- "name": "defaultAccordionConfig",
1771
+ "name": "defaultAccordionItemConfig",
1893
1772
  "type": {
1894
1773
  "text": "object"
1895
1774
  },
1896
- "default": "{}"
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}"
1897
1776
  },
1898
1777
  {
1899
1778
  "kind": "variable",
1900
- "name": "foundationAccordion",
1901
- "description": "The Foundation Accordion",
1779
+ "name": "foundationAccordionItem",
1780
+ "description": "The Foundation Accordion Item",
1902
1781
  "privacy": "public"
1903
1782
  }
1904
1783
  ],
1905
1784
  "exports": [
1906
1785
  {
1907
1786
  "kind": "js",
1908
- "name": "Accordion",
1787
+ "name": "AccordionItem",
1909
1788
  "declaration": {
1910
- "name": "Accordion",
1911
- "module": "src/accordion/accordion.ts"
1789
+ "name": "AccordionItem",
1790
+ "module": "src/accordion-item/accordion-item.ts"
1912
1791
  }
1913
1792
  },
1914
1793
  {
1915
1794
  "kind": "js",
1916
- "name": "foundationAccordionShadowOptions",
1795
+ "name": "foundationAccordionItemShadowOptions",
1917
1796
  "declaration": {
1918
- "name": "foundationAccordionShadowOptions",
1919
- "module": "src/accordion/accordion.ts"
1797
+ "name": "foundationAccordionItemShadowOptions",
1798
+ "module": "src/accordion-item/accordion-item.ts"
1920
1799
  }
1921
1800
  },
1922
1801
  {
1923
1802
  "kind": "js",
1924
- "name": "defaultAccordionConfig",
1803
+ "name": "defaultAccordionItemConfig",
1925
1804
  "declaration": {
1926
- "name": "defaultAccordionConfig",
1927
- "module": "src/accordion/accordion.ts"
1805
+ "name": "defaultAccordionItemConfig",
1806
+ "module": "src/accordion-item/accordion-item.ts"
1928
1807
  }
1929
1808
  },
1930
1809
  {
1931
1810
  "kind": "js",
1932
- "name": "foundationAccordion",
1811
+ "name": "foundationAccordionItem",
1933
1812
  "declaration": {
1934
- "name": "foundationAccordion",
1935
- "module": "src/accordion/accordion.ts"
1813
+ "name": "foundationAccordionItem",
1814
+ "module": "src/accordion-item/accordion-item.ts"
1936
1815
  }
1937
1816
  }
1938
1817
  ]
1939
1818
  },
1940
1819
  {
1941
1820
  "kind": "javascript-module",
1942
- "path": "src/accordion/index.ts",
1821
+ "path": "src/accordion-item/index.ts",
1943
1822
  "declarations": [],
1944
1823
  "exports": [
1945
1824
  {
@@ -1947,7 +1826,7 @@
1947
1826
  "name": "*",
1948
1827
  "declaration": {
1949
1828
  "name": "*",
1950
- "package": "./accordion.template"
1829
+ "package": "./accordion-item.template"
1951
1830
  }
1952
1831
  },
1953
1832
  {
@@ -1955,7 +1834,7 @@
1955
1834
  "name": "*",
1956
1835
  "declaration": {
1957
1836
  "name": "*",
1958
- "package": "./accordion.styles"
1837
+ "package": "./accordion-item.styles"
1959
1838
  }
1960
1839
  },
1961
1840
  {
@@ -1963,254 +1842,326 @@
1963
1842
  "name": "*",
1964
1843
  "declaration": {
1965
1844
  "name": "*",
1966
- "package": "./accordion"
1845
+ "package": "./accordion-item"
1967
1846
  }
1968
1847
  }
1969
1848
  ]
1970
1849
  },
1971
1850
  {
1972
1851
  "kind": "javascript-module",
1973
- "path": "src/accordion-item/accordion-item.styles.ts",
1852
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
1974
1853
  "declarations": [
1975
1854
  {
1976
- "kind": "function",
1977
- "name": "foundationAccordionItemStyles",
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
- ]
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`"
1997
1858
  }
1998
1859
  ],
1999
1860
  "exports": [
2000
1861
  {
2001
1862
  "kind": "js",
2002
- "name": "foundationAccordionItemStyles",
1863
+ "name": "foundationAiCriteriaSearchStyles",
2003
1864
  "declaration": {
2004
- "name": "foundationAccordionItemStyles",
2005
- "module": "src/accordion-item/accordion-item.styles.ts"
1865
+ "name": "foundationAiCriteriaSearchStyles",
1866
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2006
1867
  }
2007
1868
  }
2008
1869
  ]
2009
1870
  },
2010
1871
  {
2011
1872
  "kind": "javascript-module",
2012
- "path": "src/accordion-item/accordion-item.template.ts",
1873
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2013
1874
  "declarations": [
2014
1875
  {
2015
- "kind": "function",
2016
- "name": "foundationAccordionItemTemplate",
2017
- "return": {
2018
- "type": {
2019
- "text": "ViewTemplate<AccordionItem>"
2020
- }
1876
+ "kind": "variable",
1877
+ "name": "foundationAiCriteriaSearchTemplate",
1878
+ "type": {
1879
+ "text": "ViewTemplate<AiCriteriaSearch>"
2021
1880
  },
2022
- "parameters": [
2023
- {
2024
- "name": "context",
2025
- "type": {
2026
- "text": "ElementDefinitionContext"
2027
- }
2028
- },
2029
- {
2030
- "name": "definition",
2031
- "type": {
2032
- "text": "FoundationElementDefinition"
2033
- }
2034
- }
2035
- ]
1881
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2036
1882
  }
2037
1883
  ],
2038
1884
  "exports": [
2039
1885
  {
2040
1886
  "kind": "js",
2041
- "name": "foundationAccordionItemTemplate",
1887
+ "name": "foundationAiCriteriaSearchTemplate",
2042
1888
  "declaration": {
2043
- "name": "foundationAccordionItemTemplate",
2044
- "module": "src/accordion-item/accordion-item.template.ts"
1889
+ "name": "foundationAiCriteriaSearchTemplate",
1890
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2045
1891
  }
2046
1892
  }
2047
1893
  ]
2048
1894
  },
2049
1895
  {
2050
1896
  "kind": "javascript-module",
2051
- "path": "src/accordion-item/accordion-item.ts",
1897
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2052
1898
  "declarations": [
2053
1899
  {
2054
1900
  "kind": "class",
2055
- "description": "",
2056
- "name": "AccordionItem",
2057
- "superclass": {
2058
- "name": "FASTAccordionItem",
2059
- "package": "@microsoft/fast-components"
2060
- },
2061
- "tagName": "%%prefix%%-accordion-item",
2062
- "customElement": true,
2063
- "attributes": [
1901
+ "description": "Natural-language criteria search input with AI interpretation.",
1902
+ "name": "AiCriteriaSearch",
1903
+ "members": [
2064
1904
  {
2065
- "name": "heading-level",
1905
+ "kind": "field",
1906
+ "name": "providerRegistry",
2066
1907
  "type": {
2067
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2068
- },
2069
- "default": "2",
2070
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2071
- "fieldName": "headinglevel",
2072
- "inheritedFrom": {
2073
- "name": "AccordionItem",
2074
- "module": "src/accordion-item/accordion-item.ts"
1908
+ "text": "AIProviderRegistry"
2075
1909
  }
2076
1910
  },
2077
1911
  {
1912
+ "kind": "field",
1913
+ "name": "placeholder",
2078
1914
  "type": {
2079
- "text": "boolean"
1915
+ "text": "string"
2080
1916
  },
2081
- "default": "false",
2082
- "description": "Expands or collapses the item.",
2083
- "fieldName": "expanded",
2084
- "inheritedFrom": {
2085
- "name": "AccordionItem",
2086
- "module": "src/accordion-item/accordion-item.ts"
2087
- }
1917
+ "default": "'Describe your search criteria in natural language...'"
2088
1918
  },
2089
1919
  {
2090
- "name": "id",
1920
+ "kind": "field",
1921
+ "name": "disabled",
2091
1922
  "type": {
2092
- "text": "string"
2093
- },
2094
- "description": "The item ID",
2095
- "fieldName": "id",
2096
- "inheritedFrom": {
2097
- "name": "AccordionItem",
2098
- "module": "src/accordion-item/accordion-item.ts"
1923
+ "text": "boolean"
2099
1924
  }
2100
- }
2101
- ],
2102
- "members": [
1925
+ },
2103
1926
  {
2104
1927
  "kind": "field",
2105
- "name": "headinglevel",
1928
+ "name": "inputValue",
2106
1929
  "type": {
2107
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1930
+ "text": "string"
2108
1931
  },
2109
- "privacy": "public",
2110
- "default": "2",
2111
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2112
- "inheritedFrom": {
2113
- "name": "AccordionItem",
2114
- "module": "src/accordion-item/accordion-item.ts"
2115
- }
1932
+ "default": "''"
2116
1933
  },
2117
1934
  {
2118
1935
  "kind": "field",
2119
- "name": "expanded",
1936
+ "name": "isInterpreting",
2120
1937
  "type": {
2121
1938
  "text": "boolean"
2122
1939
  },
2123
- "privacy": "public",
2124
- "default": "false",
2125
- "description": "Expands or collapses the item.",
2126
- "inheritedFrom": {
2127
- "name": "AccordionItem",
2128
- "module": "src/accordion-item/accordion-item.ts"
2129
- }
1940
+ "default": "false"
2130
1941
  },
2131
1942
  {
2132
1943
  "kind": "field",
2133
- "name": "id",
1944
+ "name": "lastValidCriteria",
2134
1945
  "type": {
2135
- "text": "string"
1946
+ "text": "string | null"
2136
1947
  },
2137
- "privacy": "public",
2138
- "description": "The item ID",
2139
- "inheritedFrom": {
2140
- "name": "AccordionItem",
2141
- "module": "src/accordion-item/accordion-item.ts"
2142
- }
1948
+ "default": "null"
2143
1949
  },
2144
1950
  {
2145
1951
  "kind": "field",
2146
- "name": "change",
2147
- "privacy": "private",
2148
- "inheritedFrom": {
2149
- "name": "AccordionItem",
2150
- "module": "src/accordion-item/accordion-item.ts"
2151
- }
1952
+ "name": "activeGroups",
1953
+ "type": {
1954
+ "text": "CriteriaGroup[]"
1955
+ },
1956
+ "default": "[]"
2152
1957
  },
2153
1958
  {
2154
1959
  "kind": "field",
2155
- "name": "_presentation",
1960
+ "name": "showingChips",
2156
1961
  "type": {
2157
- "text": "ComponentPresentation | null | undefined"
1962
+ "text": "boolean"
2158
1963
  },
2159
- "privacy": "private",
2160
- "default": "void 0",
2161
- "inheritedFrom": {
2162
- "name": "FoundationElement",
2163
- "module": "src/foundation-element/foundation-element.ts"
2164
- }
1964
+ "default": "false"
2165
1965
  },
2166
1966
  {
2167
1967
  "kind": "field",
2168
- "name": "$presentation",
1968
+ "name": "fieldMetadata",
2169
1969
  "type": {
2170
- "text": "ComponentPresentation | null"
1970
+ "text": "MetadataDetail[] | string[]"
2171
1971
  },
2172
- "privacy": "public",
2173
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2174
- "inheritedFrom": {
2175
- "name": "FoundationElement",
2176
- "module": "src/foundation-element/foundation-element.ts"
2177
- }
1972
+ "default": "[]"
2178
1973
  },
2179
1974
  {
2180
1975
  "kind": "field",
2181
- "name": "template",
1976
+ "name": "isRecording",
2182
1977
  "type": {
2183
- "text": "ElementViewTemplate | void | null"
1978
+ "text": "boolean"
2184
1979
  },
2185
- "privacy": "public",
2186
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2187
- "inheritedFrom": {
2188
- "name": "FoundationElement",
2189
- "module": "src/foundation-element/foundation-element.ts"
2190
- }
1980
+ "default": "false"
2191
1981
  },
2192
1982
  {
2193
- "kind": "method",
2194
- "name": "templateChanged",
2195
- "privacy": "protected",
2196
- "return": {
2197
- "type": {
2198
- "text": "void"
2199
- }
1983
+ "kind": "field",
1984
+ "name": "textAreaRef",
1985
+ "type": {
1986
+ "text": "HTMLTextAreaElement"
2200
1987
  },
2201
- "inheritedFrom": {
2202
- "name": "FoundationElement",
2203
- "module": "src/foundation-element/foundation-element.ts"
2204
- }
1988
+ "privacy": "public"
2205
1989
  },
2206
1990
  {
2207
1991
  "kind": "field",
2208
- "name": "styles",
1992
+ "name": "stopRecording",
2209
1993
  "type": {
2210
- "text": "ElementStyles | void | null"
1994
+ "text": "(() => void) | null"
2211
1995
  },
2212
- "privacy": "public",
2213
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1996
+ "privacy": "private",
1997
+ "default": "null"
1998
+ },
1999
+ {
2000
+ "kind": "field",
2001
+ "name": "speechApplyDebounceTimer",
2002
+ "type": {
2003
+ "text": "ReturnType<typeof setTimeout> | null"
2004
+ },
2005
+ "privacy": "private",
2006
+ "default": "null"
2007
+ },
2008
+ {
2009
+ "kind": "field",
2010
+ "name": "speechAvailable",
2011
+ "type": {
2012
+ "text": "boolean"
2013
+ },
2014
+ "readonly": true
2015
+ },
2016
+ {
2017
+ "kind": "field",
2018
+ "name": "criteriaChips",
2019
+ "type": {
2020
+ "text": "CriteriaChip[]"
2021
+ },
2022
+ "readonly": true
2023
+ },
2024
+ {
2025
+ "kind": "method",
2026
+ "name": "getFieldLabel",
2027
+ "privacy": "private",
2028
+ "return": {
2029
+ "type": {
2030
+ "text": "string"
2031
+ }
2032
+ },
2033
+ "parameters": [
2034
+ {
2035
+ "name": "fieldName",
2036
+ "type": {
2037
+ "text": "string"
2038
+ }
2039
+ }
2040
+ ]
2041
+ },
2042
+ {
2043
+ "kind": "method",
2044
+ "name": "toggleCriteriaView",
2045
+ "return": {
2046
+ "type": {
2047
+ "text": "void"
2048
+ }
2049
+ }
2050
+ },
2051
+ {
2052
+ "kind": "method",
2053
+ "name": "removeChip",
2054
+ "return": {
2055
+ "type": {
2056
+ "text": "void"
2057
+ }
2058
+ },
2059
+ "parameters": [
2060
+ {
2061
+ "name": "groupIndex",
2062
+ "type": {
2063
+ "text": "number"
2064
+ }
2065
+ },
2066
+ {
2067
+ "name": "clauseIndex",
2068
+ "type": {
2069
+ "text": "number"
2070
+ }
2071
+ }
2072
+ ]
2073
+ },
2074
+ {
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"
2090
+ },
2091
+ {
2092
+ "kind": "method",
2093
+ "name": "clear"
2094
+ },
2095
+ {
2096
+ "kind": "method",
2097
+ "name": "toggleSpeechInput"
2098
+ },
2099
+ {
2100
+ "kind": "method",
2101
+ "name": "clearSpeechApplyDebounce",
2102
+ "privacy": "private"
2103
+ },
2104
+ {
2105
+ "kind": "field",
2106
+ "name": "_presentation",
2107
+ "type": {
2108
+ "text": "ComponentPresentation | null | undefined"
2109
+ },
2110
+ "privacy": "private",
2111
+ "default": "void 0",
2112
+ "inheritedFrom": {
2113
+ "name": "FoundationElement",
2114
+ "module": "src/foundation-element/foundation-element.ts"
2115
+ }
2116
+ },
2117
+ {
2118
+ "kind": "field",
2119
+ "name": "$presentation",
2120
+ "type": {
2121
+ "text": "ComponentPresentation | null"
2122
+ },
2123
+ "privacy": "public",
2124
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2125
+ "inheritedFrom": {
2126
+ "name": "FoundationElement",
2127
+ "module": "src/foundation-element/foundation-element.ts"
2128
+ }
2129
+ },
2130
+ {
2131
+ "kind": "field",
2132
+ "name": "template",
2133
+ "type": {
2134
+ "text": "ElementViewTemplate | void | null"
2135
+ },
2136
+ "privacy": "public",
2137
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2138
+ "inheritedFrom": {
2139
+ "name": "FoundationElement",
2140
+ "module": "src/foundation-element/foundation-element.ts"
2141
+ }
2142
+ },
2143
+ {
2144
+ "kind": "method",
2145
+ "name": "templateChanged",
2146
+ "privacy": "protected",
2147
+ "return": {
2148
+ "type": {
2149
+ "text": "void"
2150
+ }
2151
+ },
2152
+ "inheritedFrom": {
2153
+ "name": "FoundationElement",
2154
+ "module": "src/foundation-element/foundation-element.ts"
2155
+ }
2156
+ },
2157
+ {
2158
+ "kind": "field",
2159
+ "name": "styles",
2160
+ "type": {
2161
+ "text": "ElementStyles | void | null"
2162
+ },
2163
+ "privacy": "public",
2164
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2214
2165
  "inheritedFrom": {
2215
2166
  "name": "FoundationElement",
2216
2167
  "module": "src/foundation-element/foundation-element.ts"
@@ -2264,215 +2215,446 @@
2264
2215
  ],
2265
2216
  "events": [
2266
2217
  {
2267
- "description": "Fires a custom 'change' event when the button is invoked",
2268
- "name": "change",
2269
- "inheritedFrom": {
2270
- "name": "AccordionItem",
2271
- "module": "src/accordion-item/accordion-item.ts"
2272
- }
2218
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2219
+ "name": "criteria-changed"
2220
+ },
2221
+ {
2222
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2223
+ "name": "validation-errors"
2273
2224
  }
2274
- ]
2225
+ ],
2226
+ "attributes": [
2227
+ {
2228
+ "name": "placeholder",
2229
+ "type": {
2230
+ "text": "string"
2231
+ },
2232
+ "default": "'Describe your search criteria in natural language...'",
2233
+ "fieldName": "placeholder"
2234
+ },
2235
+ {
2236
+ "type": {
2237
+ "text": "boolean"
2238
+ },
2239
+ "fieldName": "disabled"
2240
+ }
2241
+ ],
2242
+ "superclass": {
2243
+ "name": "FoundationElement",
2244
+ "package": "@microsoft/fast-foundation"
2245
+ },
2246
+ "tagName": "%%prefix%%-ai-criteria-search",
2247
+ "customElement": true
2275
2248
  },
2276
2249
  {
2277
2250
  "kind": "variable",
2278
- "name": "foundationAccordionItemShadowOptions",
2251
+ "name": "foundationAiCriteriaSearchShadowOptions",
2279
2252
  "type": {
2280
2253
  "text": "ShadowRootInit"
2281
2254
  },
2282
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2255
+ "default": "undefined"
2283
2256
  },
2284
2257
  {
2285
2258
  "kind": "variable",
2286
- "name": "defaultAccordionItemConfig",
2259
+ "name": "defaultAiCriteriaSearchConfig",
2287
2260
  "type": {
2288
2261
  "text": "object"
2289
2262
  },
2290
- "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}"
2263
+ "default": "{}"
2291
2264
  },
2292
2265
  {
2293
2266
  "kind": "variable",
2294
- "name": "foundationAccordionItem",
2295
- "description": "The Foundation Accordion Item",
2296
- "privacy": "public"
2267
+ "name": "foundationAiCriteriaSearch"
2297
2268
  }
2298
2269
  ],
2299
2270
  "exports": [
2300
2271
  {
2301
2272
  "kind": "js",
2302
- "name": "AccordionItem",
2273
+ "name": "AiCriteriaSearch",
2303
2274
  "declaration": {
2304
- "name": "AccordionItem",
2305
- "module": "src/accordion-item/accordion-item.ts"
2275
+ "name": "AiCriteriaSearch",
2276
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2306
2277
  }
2307
2278
  },
2308
2279
  {
2309
2280
  "kind": "js",
2310
- "name": "foundationAccordionItemShadowOptions",
2281
+ "name": "foundationAiCriteriaSearchShadowOptions",
2311
2282
  "declaration": {
2312
- "name": "foundationAccordionItemShadowOptions",
2313
- "module": "src/accordion-item/accordion-item.ts"
2283
+ "name": "foundationAiCriteriaSearchShadowOptions",
2284
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2314
2285
  }
2315
2286
  },
2316
2287
  {
2317
2288
  "kind": "js",
2318
- "name": "defaultAccordionItemConfig",
2289
+ "name": "defaultAiCriteriaSearchConfig",
2319
2290
  "declaration": {
2320
- "name": "defaultAccordionItemConfig",
2321
- "module": "src/accordion-item/accordion-item.ts"
2291
+ "name": "defaultAiCriteriaSearchConfig",
2292
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2322
2293
  }
2323
2294
  },
2324
2295
  {
2325
2296
  "kind": "js",
2326
- "name": "foundationAccordionItem",
2297
+ "name": "foundationAiCriteriaSearch",
2327
2298
  "declaration": {
2328
- "name": "foundationAccordionItem",
2329
- "module": "src/accordion-item/accordion-item.ts"
2299
+ "name": "foundationAiCriteriaSearch",
2300
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2330
2301
  }
2331
2302
  }
2332
2303
  ]
2333
2304
  },
2334
2305
  {
2335
2306
  "kind": "javascript-module",
2336
- "path": "src/accordion-item/index.ts",
2307
+ "path": "src/ai-criteria-search/index.ts",
2337
2308
  "declarations": [],
2338
2309
  "exports": [
2310
+ {
2311
+ "kind": "js",
2312
+ "name": "AiCriteriaSearch",
2313
+ "declaration": {
2314
+ "name": "AiCriteriaSearch",
2315
+ "module": "./ai-criteria-search"
2316
+ }
2317
+ },
2318
+ {
2319
+ "kind": "js",
2320
+ "name": "defaultAiCriteriaSearchConfig",
2321
+ "declaration": {
2322
+ "name": "defaultAiCriteriaSearchConfig",
2323
+ "module": "./ai-criteria-search"
2324
+ }
2325
+ },
2326
+ {
2327
+ "kind": "js",
2328
+ "name": "foundationAiCriteriaSearch",
2329
+ "declaration": {
2330
+ "name": "foundationAiCriteriaSearch",
2331
+ "module": "./ai-criteria-search"
2332
+ }
2333
+ },
2334
+ {
2335
+ "kind": "js",
2336
+ "name": "foundationAiCriteriaSearchShadowOptions",
2337
+ "declaration": {
2338
+ "name": "foundationAiCriteriaSearchShadowOptions",
2339
+ "module": "./ai-criteria-search"
2340
+ }
2341
+ },
2342
+ {
2343
+ "kind": "js",
2344
+ "name": "foundationAiCriteriaSearchStyles",
2345
+ "declaration": {
2346
+ "name": "foundationAiCriteriaSearchStyles",
2347
+ "module": "./ai-criteria-search.styles"
2348
+ }
2349
+ },
2350
+ {
2351
+ "kind": "js",
2352
+ "name": "foundationAiCriteriaSearchTemplate",
2353
+ "declaration": {
2354
+ "name": "foundationAiCriteriaSearchTemplate",
2355
+ "module": "./ai-criteria-search.template"
2356
+ }
2357
+ },
2339
2358
  {
2340
2359
  "kind": "js",
2341
2360
  "name": "*",
2342
2361
  "declaration": {
2343
2362
  "name": "*",
2344
- "package": "./accordion-item.template"
2363
+ "package": "./validation/criteria-ir"
2364
+ }
2365
+ },
2366
+ {
2367
+ "kind": "js",
2368
+ "name": "*",
2369
+ "declaration": {
2370
+ "name": "*",
2371
+ "package": "./validation/operator-map"
2345
2372
  }
2346
2373
  },
2347
2374
  {
2348
2375
  "kind": "js",
2349
2376
  "name": "*",
2350
2377
  "declaration": {
2351
- "name": "*",
2352
- "package": "./accordion-item.styles"
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
+ }
2413
+ },
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."
2438
+ }
2439
+ ],
2440
+ "exports": [
2441
+ {
2442
+ "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",
2452
+ "declaration": {
2453
+ "name": "showCriteriaError",
2454
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2455
+ }
2456
+ }
2457
+ ]
2458
+ },
2459
+ {
2460
+ "kind": "javascript-module",
2461
+ "path": "src/actions-menu/actions-menu.styles.ts",
2462
+ "declarations": [
2463
+ {
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": [
2495
+ {
2496
+ "name": "context",
2497
+ "type": {
2498
+ "text": "ElementDefinitionContext"
2499
+ }
2500
+ },
2501
+ {
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"
2353
2517
  }
2354
2518
  },
2355
2519
  {
2356
2520
  "kind": "js",
2357
- "name": "*",
2521
+ "name": "foundationActionsMenuStyles",
2358
2522
  "declaration": {
2359
- "name": "*",
2360
- "package": "./accordion-item"
2523
+ "name": "foundationActionsMenuStyles",
2524
+ "module": "src/actions-menu/actions-menu.styles.ts"
2361
2525
  }
2362
2526
  }
2363
2527
  ]
2364
2528
  },
2365
2529
  {
2366
2530
  "kind": "javascript-module",
2367
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2531
+ "path": "src/actions-menu/actions-menu.template.ts",
2368
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",
2551
+ "type": {
2552
+ "text": "string"
2553
+ }
2554
+ }
2555
+ ]
2556
+ },
2369
2557
  {
2370
2558
  "kind": "variable",
2371
- "name": "foundationAiCriteriaSearchStyles",
2372
- "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`"
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`"
2373
2564
  }
2374
2565
  ],
2375
2566
  "exports": [
2376
2567
  {
2377
2568
  "kind": "js",
2378
- "name": "foundationAiCriteriaSearchStyles",
2569
+ "name": "menuTemplate",
2379
2570
  "declaration": {
2380
- "name": "foundationAiCriteriaSearchStyles",
2381
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2571
+ "name": "menuTemplate",
2572
+ "module": "src/actions-menu/actions-menu.template.ts"
2382
2573
  }
2383
- }
2384
- ]
2385
- },
2386
- {
2387
- "kind": "javascript-module",
2388
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2389
- "declarations": [
2574
+ },
2390
2575
  {
2391
- "kind": "variable",
2392
- "name": "foundationAiCriteriaSearchTemplate",
2393
- "type": {
2394
- "text": "ViewTemplate<AiCriteriaSearch>"
2395
- },
2396
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2397
- }
2398
- ],
2399
- "exports": [
2576
+ "kind": "js",
2577
+ "name": "singleOptionTemplate",
2578
+ "declaration": {
2579
+ "name": "singleOptionTemplate",
2580
+ "module": "src/actions-menu/actions-menu.template.ts"
2581
+ }
2582
+ },
2400
2583
  {
2401
2584
  "kind": "js",
2402
- "name": "foundationAiCriteriaSearchTemplate",
2585
+ "name": "foundationActionsMenuTemplate",
2403
2586
  "declaration": {
2404
- "name": "foundationAiCriteriaSearchTemplate",
2405
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2587
+ "name": "foundationActionsMenuTemplate",
2588
+ "module": "src/actions-menu/actions-menu.template.ts"
2406
2589
  }
2407
2590
  }
2408
2591
  ]
2409
2592
  },
2410
2593
  {
2411
2594
  "kind": "javascript-module",
2412
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2595
+ "path": "src/actions-menu/actions-menu.ts",
2413
2596
  "declarations": [
2414
2597
  {
2415
2598
  "kind": "class",
2416
- "description": "Natural-language criteria search input with AI interpretation.",
2417
- "name": "AiCriteriaSearch",
2599
+ "description": "",
2600
+ "name": "ActionsMenu",
2418
2601
  "members": [
2419
2602
  {
2420
2603
  "kind": "field",
2421
- "name": "providerRegistry",
2604
+ "name": "actions",
2422
2605
  "type": {
2423
- "text": "AIProviderRegistry"
2606
+ "text": "ActionMenuItem[]"
2424
2607
  }
2425
2608
  },
2426
2609
  {
2427
2610
  "kind": "field",
2428
- "name": "placeholder",
2611
+ "name": "isVertical",
2429
2612
  "type": {
2430
- "text": "string"
2613
+ "text": "boolean"
2431
2614
  },
2432
- "default": "'Describe your search criteria in natural language...'"
2615
+ "default": "false"
2433
2616
  },
2434
2617
  {
2435
2618
  "kind": "field",
2436
- "name": "disabled",
2619
+ "name": "addDefaultActions",
2437
2620
  "type": {
2438
2621
  "text": "boolean"
2439
- }
2622
+ },
2623
+ "default": "true"
2440
2624
  },
2441
2625
  {
2442
2626
  "kind": "field",
2443
- "name": "inputValue",
2627
+ "name": "autoCloseOnAction",
2444
2628
  "type": {
2445
- "text": "string"
2629
+ "text": "boolean"
2446
2630
  },
2447
- "default": "''"
2631
+ "default": "true"
2448
2632
  },
2449
2633
  {
2450
2634
  "kind": "field",
2451
- "name": "isInterpreting",
2635
+ "name": "classNames",
2452
2636
  "type": {
2453
- "text": "boolean"
2454
- },
2455
- "default": "false"
2637
+ "text": "string"
2638
+ }
2456
2639
  },
2457
2640
  {
2458
2641
  "kind": "field",
2459
- "name": "lastValidCriteria",
2642
+ "name": "definition",
2460
2643
  "type": {
2461
- "text": "string | null"
2462
- },
2463
- "default": "null"
2644
+ "text": "any"
2645
+ }
2464
2646
  },
2465
2647
  {
2466
2648
  "kind": "field",
2467
- "name": "activeGroups",
2649
+ "name": "name",
2468
2650
  "type": {
2469
- "text": "CriteriaGroup[]"
2651
+ "text": "string"
2470
2652
  },
2471
- "default": "[]"
2653
+ "default": "'Actions'"
2472
2654
  },
2473
2655
  {
2474
2656
  "kind": "field",
2475
- "name": "showingChips",
2657
+ "name": "open",
2476
2658
  "type": {
2477
2659
  "text": "boolean"
2478
2660
  },
@@ -2480,15 +2662,14 @@
2480
2662
  },
2481
2663
  {
2482
2664
  "kind": "field",
2483
- "name": "fieldMetadata",
2665
+ "name": "buttonAppearance",
2484
2666
  "type": {
2485
- "text": "MetadataDetail[] | string[]"
2486
- },
2487
- "default": "[]"
2667
+ "text": "string"
2668
+ }
2488
2669
  },
2489
2670
  {
2490
2671
  "kind": "field",
2491
- "name": "isRecording",
2672
+ "name": "hideDisabled",
2492
2673
  "type": {
2493
2674
  "text": "boolean"
2494
2675
  },
@@ -2496,125 +2677,114 @@
2496
2677
  },
2497
2678
  {
2498
2679
  "kind": "field",
2499
- "name": "textAreaRef",
2500
- "type": {
2501
- "text": "HTMLTextAreaElement"
2502
- },
2503
- "privacy": "public"
2504
- },
2505
- {
2506
- "kind": "field",
2507
- "name": "stopRecording",
2680
+ "name": "hideMenuSingleOption",
2508
2681
  "type": {
2509
- "text": "(() => void) | null"
2682
+ "text": "boolean"
2510
2683
  },
2511
- "privacy": "private",
2512
- "default": "null"
2684
+ "default": "false"
2513
2685
  },
2514
2686
  {
2515
2687
  "kind": "field",
2516
- "name": "speechApplyDebounceTimer",
2688
+ "name": "singleOption",
2517
2689
  "type": {
2518
- "text": "ReturnType<typeof setTimeout> | null"
2519
- },
2520
- "privacy": "private",
2521
- "default": "null"
2690
+ "text": "ActionMenuItem"
2691
+ }
2522
2692
  },
2523
2693
  {
2524
2694
  "kind": "field",
2525
- "name": "speechAvailable",
2695
+ "name": "actionsMenu",
2526
2696
  "type": {
2527
- "text": "boolean"
2528
- },
2529
- "readonly": true
2697
+ "text": "HTMLElement"
2698
+ }
2530
2699
  },
2531
2700
  {
2532
2701
  "kind": "field",
2533
- "name": "criteriaChips",
2702
+ "name": "actionsOpener",
2534
2703
  "type": {
2535
- "text": "CriteriaChip[]"
2536
- },
2537
- "readonly": true
2538
- },
2539
- {
2540
- "kind": "method",
2541
- "name": "getFieldLabel",
2542
- "privacy": "private",
2543
- "return": {
2544
- "type": {
2545
- "text": "string"
2546
- }
2547
- },
2548
- "parameters": [
2549
- {
2550
- "name": "fieldName",
2551
- "type": {
2552
- "text": "string"
2553
- }
2554
- }
2555
- ]
2704
+ "text": "HTMLElement"
2705
+ }
2556
2706
  },
2557
2707
  {
2558
2708
  "kind": "method",
2559
- "name": "toggleCriteriaView",
2560
- "return": {
2561
- "type": {
2562
- "text": "void"
2563
- }
2564
- }
2709
+ "name": "updateMenuPosition",
2710
+ "privacy": "private"
2565
2711
  },
2566
2712
  {
2567
2713
  "kind": "method",
2568
- "name": "removeChip",
2569
- "return": {
2570
- "type": {
2571
- "text": "void"
2572
- }
2573
- },
2714
+ "name": "definitionChanged",
2715
+ "privacy": "protected",
2574
2716
  "parameters": [
2575
2717
  {
2576
- "name": "groupIndex",
2718
+ "name": "oldValue",
2577
2719
  "type": {
2578
- "text": "number"
2720
+ "text": "any"
2579
2721
  }
2580
2722
  },
2581
2723
  {
2582
- "name": "clauseIndex",
2724
+ "name": "newValue",
2583
2725
  "type": {
2584
- "text": "number"
2726
+ "text": "any"
2585
2727
  }
2586
2728
  }
2587
2729
  ]
2588
2730
  },
2589
2731
  {
2590
2732
  "kind": "method",
2591
- "name": "clearChips",
2592
- "return": {
2593
- "type": {
2594
- "text": "void"
2595
- }
2596
- }
2733
+ "name": "openChanged",
2734
+ "privacy": "protected"
2597
2735
  },
2598
2736
  {
2599
2737
  "kind": "method",
2600
- "name": "handleSubmit"
2738
+ "name": "toggleActionsMenuVisibility"
2601
2739
  },
2602
2740
  {
2603
2741
  "kind": "method",
2604
- "name": "handleBlur"
2742
+ "name": "onActionMenuItemClick",
2743
+ "parameters": [
2744
+ {
2745
+ "name": "callback",
2746
+ "type": {
2747
+ "text": "(rowData) => void | any"
2748
+ }
2749
+ }
2750
+ ]
2605
2751
  },
2606
2752
  {
2607
- "kind": "method",
2608
- "name": "clear"
2753
+ "kind": "field",
2754
+ "name": "allActions",
2755
+ "type": {
2756
+ "text": "ActionMenuItem[]"
2757
+ },
2758
+ "readonly": true
2759
+ },
2760
+ {
2761
+ "kind": "field",
2762
+ "name": "rowData",
2763
+ "readonly": true
2609
2764
  },
2610
2765
  {
2611
2766
  "kind": "method",
2612
- "name": "toggleSpeechInput"
2767
+ "name": "getLabel",
2768
+ "parameters": [
2769
+ {
2770
+ "name": "name",
2771
+ "type": {
2772
+ "text": "string | ((rowData: any) => string)"
2773
+ }
2774
+ }
2775
+ ]
2613
2776
  },
2614
2777
  {
2615
2778
  "kind": "method",
2616
- "name": "clearSpeechApplyDebounce",
2617
- "privacy": "private"
2779
+ "name": "getTemplate",
2780
+ "parameters": [
2781
+ {
2782
+ "name": "prefix",
2783
+ "type": {
2784
+ "text": "string"
2785
+ }
2786
+ }
2787
+ ]
2618
2788
  },
2619
2789
  {
2620
2790
  "kind": "field",
@@ -2728,245 +2898,131 @@
2728
2898
  }
2729
2899
  }
2730
2900
  ],
2731
- "events": [
2901
+ "attributes": [
2732
2902
  {
2733
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2734
- "name": "criteria-changed"
2903
+ "name": "is-vertical",
2904
+ "type": {
2905
+ "text": "boolean"
2906
+ },
2907
+ "default": "false",
2908
+ "fieldName": "isVertical"
2735
2909
  },
2736
2910
  {
2737
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2738
- "name": "validation-errors"
2739
- }
2740
- ],
2741
- "attributes": [
2911
+ "name": "add-default-actions",
2912
+ "type": {
2913
+ "text": "boolean"
2914
+ },
2915
+ "default": "true",
2916
+ "fieldName": "addDefaultActions"
2917
+ },
2742
2918
  {
2743
- "name": "placeholder",
2919
+ "name": "auto-close-on-action",
2920
+ "type": {
2921
+ "text": "boolean"
2922
+ },
2923
+ "default": "true",
2924
+ "fieldName": "autoCloseOnAction"
2925
+ },
2926
+ {
2927
+ "name": "name",
2744
2928
  "type": {
2745
2929
  "text": "string"
2746
2930
  },
2747
- "default": "'Describe your search criteria in natural language...'",
2748
- "fieldName": "placeholder"
2931
+ "default": "'Actions'",
2932
+ "fieldName": "name"
2749
2933
  },
2750
2934
  {
2935
+ "name": "open",
2751
2936
  "type": {
2752
2937
  "text": "boolean"
2753
2938
  },
2754
- "fieldName": "disabled"
2939
+ "default": "false",
2940
+ "fieldName": "open"
2941
+ },
2942
+ {
2943
+ "name": "buttonAppearance",
2944
+ "type": {
2945
+ "text": "string"
2946
+ },
2947
+ "fieldName": "buttonAppearance"
2948
+ },
2949
+ {
2950
+ "name": "hide-disabled",
2951
+ "type": {
2952
+ "text": "boolean"
2953
+ },
2954
+ "default": "false",
2955
+ "fieldName": "hideDisabled"
2956
+ },
2957
+ {
2958
+ "name": "hide-menu-single-option",
2959
+ "type": {
2960
+ "text": "boolean"
2961
+ },
2962
+ "default": "false",
2963
+ "fieldName": "hideMenuSingleOption"
2755
2964
  }
2756
2965
  ],
2757
2966
  "superclass": {
2758
2967
  "name": "FoundationElement",
2759
2968
  "package": "@microsoft/fast-foundation"
2760
2969
  },
2761
- "tagName": "%%prefix%%-ai-criteria-search",
2970
+ "tagName": "%%prefix%%-actions-menu",
2762
2971
  "customElement": true
2763
2972
  },
2764
2973
  {
2765
2974
  "kind": "variable",
2766
- "name": "foundationAiCriteriaSearchShadowOptions",
2767
- "type": {
2768
- "text": "ShadowRootInit"
2769
- },
2770
- "default": "undefined"
2771
- },
2772
- {
2773
- "kind": "variable",
2774
- "name": "defaultAiCriteriaSearchConfig",
2775
- "type": {
2776
- "text": "object"
2777
- },
2778
- "default": "{}"
2779
- },
2780
- {
2781
- "kind": "variable",
2782
- "name": "foundationAiCriteriaSearch"
2975
+ "name": "foundationActionsMenu",
2976
+ "description": "The Foundation Actions Menu",
2977
+ "privacy": "public"
2783
2978
  }
2784
2979
  ],
2785
2980
  "exports": [
2786
2981
  {
2787
2982
  "kind": "js",
2788
- "name": "AiCriteriaSearch",
2789
- "declaration": {
2790
- "name": "AiCriteriaSearch",
2791
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2792
- }
2793
- },
2794
- {
2795
- "kind": "js",
2796
- "name": "foundationAiCriteriaSearchShadowOptions",
2797
- "declaration": {
2798
- "name": "foundationAiCriteriaSearchShadowOptions",
2799
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2800
- }
2801
- },
2802
- {
2803
- "kind": "js",
2804
- "name": "defaultAiCriteriaSearchConfig",
2983
+ "name": "ActionsMenu",
2805
2984
  "declaration": {
2806
- "name": "defaultAiCriteriaSearchConfig",
2807
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2985
+ "name": "ActionsMenu",
2986
+ "module": "src/actions-menu/actions-menu.ts"
2808
2987
  }
2809
2988
  },
2810
2989
  {
2811
2990
  "kind": "js",
2812
- "name": "foundationAiCriteriaSearch",
2991
+ "name": "foundationActionsMenu",
2813
2992
  "declaration": {
2814
- "name": "foundationAiCriteriaSearch",
2815
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2993
+ "name": "foundationActionsMenu",
2994
+ "module": "src/actions-menu/actions-menu.ts"
2816
2995
  }
2817
2996
  }
2818
2997
  ]
2819
2998
  },
2820
2999
  {
2821
3000
  "kind": "javascript-module",
2822
- "path": "src/ai-criteria-search/index.ts",
3001
+ "path": "src/actions-menu/index.ts",
2823
3002
  "declarations": [],
2824
3003
  "exports": [
2825
- {
2826
- "kind": "js",
2827
- "name": "AiCriteriaSearch",
2828
- "declaration": {
2829
- "name": "AiCriteriaSearch",
2830
- "module": "./ai-criteria-search"
2831
- }
2832
- },
2833
- {
2834
- "kind": "js",
2835
- "name": "defaultAiCriteriaSearchConfig",
2836
- "declaration": {
2837
- "name": "defaultAiCriteriaSearchConfig",
2838
- "module": "./ai-criteria-search"
2839
- }
2840
- },
2841
- {
2842
- "kind": "js",
2843
- "name": "foundationAiCriteriaSearch",
2844
- "declaration": {
2845
- "name": "foundationAiCriteriaSearch",
2846
- "module": "./ai-criteria-search"
2847
- }
2848
- },
2849
- {
2850
- "kind": "js",
2851
- "name": "foundationAiCriteriaSearchShadowOptions",
2852
- "declaration": {
2853
- "name": "foundationAiCriteriaSearchShadowOptions",
2854
- "module": "./ai-criteria-search"
2855
- }
2856
- },
2857
- {
2858
- "kind": "js",
2859
- "name": "foundationAiCriteriaSearchStyles",
2860
- "declaration": {
2861
- "name": "foundationAiCriteriaSearchStyles",
2862
- "module": "./ai-criteria-search.styles"
2863
- }
2864
- },
2865
- {
2866
- "kind": "js",
2867
- "name": "foundationAiCriteriaSearchTemplate",
2868
- "declaration": {
2869
- "name": "foundationAiCriteriaSearchTemplate",
2870
- "module": "./ai-criteria-search.template"
2871
- }
2872
- },
2873
- {
2874
- "kind": "js",
2875
- "name": "*",
2876
- "declaration": {
2877
- "name": "*",
2878
- "package": "./validation/criteria-ir"
2879
- }
2880
- },
2881
- {
2882
- "kind": "js",
2883
- "name": "*",
2884
- "declaration": {
2885
- "name": "*",
2886
- "package": "./validation/operator-map"
2887
- }
2888
- },
2889
3004
  {
2890
3005
  "kind": "js",
2891
3006
  "name": "*",
2892
3007
  "declaration": {
2893
- "name": "*",
2894
- "package": "./validation/schema-validator"
2895
- }
2896
- }
2897
- ]
2898
- },
2899
- {
2900
- "kind": "javascript-module",
2901
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2902
- "declarations": [
2903
- {
2904
- "kind": "function",
2905
- "name": "formatValidationErrors",
2906
- "return": {
2907
- "type": {
2908
- "text": "string"
2909
- }
2910
- },
2911
- "parameters": [
2912
- {
2913
- "name": "errors",
2914
- "type": {
2915
- "text": "ValidationError[]"
2916
- }
2917
- }
2918
- ],
2919
- "description": "Formats validation errors into a user-friendly message."
2920
- },
2921
- {
2922
- "kind": "function",
2923
- "name": "showCriteriaError",
2924
- "return": {
2925
- "type": {
2926
- "text": "void"
2927
- }
2928
- },
2929
- "parameters": [
2930
- {
2931
- "name": "title",
2932
- "type": {
2933
- "text": "string"
2934
- },
2935
- "description": "Notification title (e.g. \"Criteria validation error\")"
2936
- },
2937
- {
2938
- "name": "body",
2939
- "type": {
2940
- "text": "string"
2941
- },
2942
- "description": "Error message to display"
2943
- },
2944
- {
2945
- "name": "tagName",
2946
- "type": {
2947
- "text": "string"
2948
- },
2949
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2950
- }
2951
- ],
2952
- "description": "Shows a criteria error as a toast notification."
2953
- }
2954
- ],
2955
- "exports": [
3008
+ "name": "*",
3009
+ "package": "./actions-menu.styles"
3010
+ }
3011
+ },
2956
3012
  {
2957
3013
  "kind": "js",
2958
- "name": "formatValidationErrors",
3014
+ "name": "*",
2959
3015
  "declaration": {
2960
- "name": "formatValidationErrors",
2961
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3016
+ "name": "*",
3017
+ "package": "./actions-menu.template"
2962
3018
  }
2963
3019
  },
2964
3020
  {
2965
3021
  "kind": "js",
2966
- "name": "showCriteriaError",
3022
+ "name": "*",
2967
3023
  "declaration": {
2968
- "name": "showCriteriaError",
2969
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3024
+ "name": "*",
3025
+ "package": "./actions-menu"
2970
3026
  }
2971
3027
  }
2972
3028
  ]
@@ -3422,34 +3478,11 @@
3422
3478
  },
3423
3479
  {
3424
3480
  "kind": "javascript-module",
3425
- "path": "src/actions-menu/actions-menu.styles.ts",
3481
+ "path": "src/accordion/accordion.styles.ts",
3426
3482
  "declarations": [
3427
3483
  {
3428
3484
  "kind": "function",
3429
- "name": "actionsMenuBaseStyles",
3430
- "return": {
3431
- "type": {
3432
- "text": "ElementStyles"
3433
- }
3434
- },
3435
- "parameters": [
3436
- {
3437
- "name": "context",
3438
- "type": {
3439
- "text": "ElementDefinitionContext"
3440
- }
3441
- },
3442
- {
3443
- "name": "definition",
3444
- "type": {
3445
- "text": "FoundationElementDefinition"
3446
- }
3447
- }
3448
- ]
3449
- },
3450
- {
3451
- "kind": "function",
3452
- "name": "foundationActionsMenuStyles",
3485
+ "name": "foundationAccordionStyles",
3453
3486
  "return": {
3454
3487
  "type": {
3455
3488
  "text": "ElementStyles"
@@ -3474,281 +3507,277 @@
3474
3507
  "exports": [
3475
3508
  {
3476
3509
  "kind": "js",
3477
- "name": "actionsMenuBaseStyles",
3478
- "declaration": {
3479
- "name": "actionsMenuBaseStyles",
3480
- "module": "src/actions-menu/actions-menu.styles.ts"
3481
- }
3482
- },
3483
- {
3484
- "kind": "js",
3485
- "name": "foundationActionsMenuStyles",
3510
+ "name": "foundationAccordionStyles",
3486
3511
  "declaration": {
3487
- "name": "foundationActionsMenuStyles",
3488
- "module": "src/actions-menu/actions-menu.styles.ts"
3512
+ "name": "foundationAccordionStyles",
3513
+ "module": "src/accordion/accordion.styles.ts"
3489
3514
  }
3490
3515
  }
3491
3516
  ]
3492
3517
  },
3493
3518
  {
3494
3519
  "kind": "javascript-module",
3495
- "path": "src/actions-menu/actions-menu.template.ts",
3520
+ "path": "src/accordion/accordion.template.ts",
3496
3521
  "declarations": [
3497
3522
  {
3498
3523
  "kind": "function",
3499
- "name": "menuTemplate",
3524
+ "name": "foundationAccordionTemplate",
3525
+ "return": {
3526
+ "type": {
3527
+ "text": "ViewTemplate<Accordion>"
3528
+ }
3529
+ },
3500
3530
  "parameters": [
3501
3531
  {
3502
- "name": "prefix",
3532
+ "name": "context",
3503
3533
  "type": {
3504
- "text": "string"
3534
+ "text": "ElementDefinitionContext"
3505
3535
  }
3506
- }
3507
- ]
3508
- },
3509
- {
3510
- "kind": "function",
3511
- "name": "singleOptionTemplate",
3512
- "parameters": [
3536
+ },
3513
3537
  {
3514
- "name": "prefix",
3538
+ "name": "definition",
3515
3539
  "type": {
3516
- "text": "string"
3540
+ "text": "FoundationElementDefinition"
3517
3541
  }
3518
3542
  }
3519
3543
  ]
3520
- },
3521
- {
3522
- "kind": "variable",
3523
- "name": "foundationActionsMenuTemplate",
3524
- "type": {
3525
- "text": "ViewTemplate<ActionsMenu>"
3526
- },
3527
- "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`"
3528
3544
  }
3529
3545
  ],
3530
3546
  "exports": [
3531
3547
  {
3532
3548
  "kind": "js",
3533
- "name": "menuTemplate",
3534
- "declaration": {
3535
- "name": "menuTemplate",
3536
- "module": "src/actions-menu/actions-menu.template.ts"
3537
- }
3538
- },
3539
- {
3540
- "kind": "js",
3541
- "name": "singleOptionTemplate",
3542
- "declaration": {
3543
- "name": "singleOptionTemplate",
3544
- "module": "src/actions-menu/actions-menu.template.ts"
3545
- }
3546
- },
3547
- {
3548
- "kind": "js",
3549
- "name": "foundationActionsMenuTemplate",
3549
+ "name": "foundationAccordionTemplate",
3550
3550
  "declaration": {
3551
- "name": "foundationActionsMenuTemplate",
3552
- "module": "src/actions-menu/actions-menu.template.ts"
3551
+ "name": "foundationAccordionTemplate",
3552
+ "module": "src/accordion/accordion.template.ts"
3553
3553
  }
3554
3554
  }
3555
3555
  ]
3556
3556
  },
3557
3557
  {
3558
3558
  "kind": "javascript-module",
3559
- "path": "src/actions-menu/actions-menu.ts",
3559
+ "path": "src/accordion/accordion.ts",
3560
3560
  "declarations": [
3561
3561
  {
3562
3562
  "kind": "class",
3563
3563
  "description": "",
3564
- "name": "ActionsMenu",
3565
- "members": [
3566
- {
3567
- "kind": "field",
3568
- "name": "actions",
3569
- "type": {
3570
- "text": "ActionMenuItem[]"
3571
- }
3572
- },
3573
- {
3574
- "kind": "field",
3575
- "name": "isVertical",
3576
- "type": {
3577
- "text": "boolean"
3578
- },
3579
- "default": "false"
3580
- },
3564
+ "name": "Accordion",
3565
+ "superclass": {
3566
+ "name": "FASTAccordion",
3567
+ "package": "@microsoft/fast-foundation"
3568
+ },
3569
+ "tagName": "%%prefix%%-accordion",
3570
+ "customElement": true,
3571
+ "attributes": [
3581
3572
  {
3582
- "kind": "field",
3583
- "name": "addDefaultActions",
3573
+ "name": "expand-mode",
3584
3574
  "type": {
3585
- "text": "boolean"
3575
+ "text": "AccordionExpandMode"
3586
3576
  },
3587
- "default": "true"
3588
- },
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": [
3589
3586
  {
3590
3587
  "kind": "field",
3591
- "name": "autoCloseOnAction",
3588
+ "name": "expandmode",
3592
3589
  "type": {
3593
- "text": "boolean"
3590
+ "text": "AccordionExpandMode"
3594
3591
  },
3595
- "default": "true"
3596
- },
3597
- {
3598
- "kind": "field",
3599
- "name": "classNames",
3600
- "type": {
3601
- "text": "string"
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"
3602
3597
  }
3603
3598
  },
3604
3599
  {
3605
3600
  "kind": "field",
3606
- "name": "definition",
3601
+ "name": "activeid",
3607
3602
  "type": {
3608
- "text": "any"
3603
+ "text": "string | null"
3604
+ },
3605
+ "privacy": "private",
3606
+ "inheritedFrom": {
3607
+ "name": "Accordion",
3608
+ "module": "src/accordion/accordion.ts"
3609
3609
  }
3610
3610
  },
3611
3611
  {
3612
3612
  "kind": "field",
3613
- "name": "name",
3613
+ "name": "activeItemIndex",
3614
3614
  "type": {
3615
- "text": "string"
3615
+ "text": "number"
3616
3616
  },
3617
- "default": "'Actions'"
3617
+ "privacy": "private",
3618
+ "default": "0",
3619
+ "inheritedFrom": {
3620
+ "name": "Accordion",
3621
+ "module": "src/accordion/accordion.ts"
3622
+ }
3618
3623
  },
3619
3624
  {
3620
3625
  "kind": "field",
3621
- "name": "open",
3626
+ "name": "accordionIds",
3622
3627
  "type": {
3623
- "text": "boolean"
3628
+ "text": "Array<string | null>"
3624
3629
  },
3625
- "default": "false"
3626
- },
3627
- {
3628
- "kind": "field",
3629
- "name": "buttonAppearance",
3630
- "type": {
3631
- "text": "string"
3630
+ "privacy": "private",
3631
+ "inheritedFrom": {
3632
+ "name": "Accordion",
3633
+ "module": "src/accordion/accordion.ts"
3632
3634
  }
3633
3635
  },
3634
3636
  {
3635
3637
  "kind": "field",
3636
- "name": "hideDisabled",
3637
- "type": {
3638
- "text": "boolean"
3639
- },
3640
- "default": "false"
3638
+ "name": "change",
3639
+ "privacy": "private",
3640
+ "inheritedFrom": {
3641
+ "name": "Accordion",
3642
+ "module": "src/accordion/accordion.ts"
3643
+ }
3641
3644
  },
3642
3645
  {
3643
- "kind": "field",
3644
- "name": "hideMenuSingleOption",
3645
- "type": {
3646
- "text": "boolean"
3646
+ "kind": "method",
3647
+ "name": "findExpandedItem",
3648
+ "privacy": "private",
3649
+ "return": {
3650
+ "type": {
3651
+ "text": "AccordionItem | null"
3652
+ }
3647
3653
  },
3648
- "default": "false"
3654
+ "inheritedFrom": {
3655
+ "name": "Accordion",
3656
+ "module": "src/accordion/accordion.ts"
3657
+ }
3649
3658
  },
3650
3659
  {
3651
3660
  "kind": "field",
3652
- "name": "singleOption",
3653
- "type": {
3654
- "text": "ActionMenuItem"
3661
+ "name": "setItems",
3662
+ "privacy": "private",
3663
+ "inheritedFrom": {
3664
+ "name": "Accordion",
3665
+ "module": "src/accordion/accordion.ts"
3655
3666
  }
3656
3667
  },
3657
3668
  {
3658
- "kind": "field",
3659
- "name": "actionsMenu",
3660
- "type": {
3661
- "text": "HTMLElement"
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"
3662
3680
  }
3663
3681
  },
3664
3682
  {
3665
3683
  "kind": "field",
3666
- "name": "actionsOpener",
3667
- "type": {
3668
- "text": "HTMLElement"
3684
+ "name": "removeItemListeners",
3685
+ "privacy": "private",
3686
+ "inheritedFrom": {
3687
+ "name": "Accordion",
3688
+ "module": "src/accordion/accordion.ts"
3669
3689
  }
3670
3690
  },
3671
3691
  {
3672
- "kind": "method",
3673
- "name": "updateMenuPosition",
3674
- "privacy": "private"
3692
+ "kind": "field",
3693
+ "name": "activeItemChange",
3694
+ "privacy": "private",
3695
+ "inheritedFrom": {
3696
+ "name": "Accordion",
3697
+ "module": "src/accordion/accordion.ts"
3698
+ }
3675
3699
  },
3676
3700
  {
3677
3701
  "kind": "method",
3678
- "name": "definitionChanged",
3679
- "privacy": "protected",
3680
- "parameters": [
3681
- {
3682
- "name": "oldValue",
3683
- "type": {
3684
- "text": "any"
3685
- }
3686
- },
3687
- {
3688
- "name": "newValue",
3689
- "type": {
3690
- "text": "any"
3691
- }
3702
+ "name": "getItemIds",
3703
+ "privacy": "private",
3704
+ "return": {
3705
+ "type": {
3706
+ "text": "Array<string | null>"
3692
3707
  }
3693
- ]
3694
- },
3695
- {
3696
- "kind": "method",
3697
- "name": "openChanged",
3698
- "privacy": "protected"
3699
- },
3700
- {
3701
- "kind": "method",
3702
- "name": "toggleActionsMenuVisibility"
3708
+ },
3709
+ "inheritedFrom": {
3710
+ "name": "Accordion",
3711
+ "module": "src/accordion/accordion.ts"
3712
+ }
3703
3713
  },
3704
3714
  {
3705
3715
  "kind": "method",
3706
- "name": "onActionMenuItemClick",
3707
- "parameters": [
3708
- {
3709
- "name": "callback",
3710
- "type": {
3711
- "text": "(rowData) => void | any"
3712
- }
3716
+ "name": "isSingleExpandMode",
3717
+ "privacy": "private",
3718
+ "return": {
3719
+ "type": {
3720
+ "text": "boolean"
3713
3721
  }
3714
- ]
3722
+ },
3723
+ "inheritedFrom": {
3724
+ "name": "Accordion",
3725
+ "module": "src/accordion/accordion.ts"
3726
+ }
3715
3727
  },
3716
3728
  {
3717
3729
  "kind": "field",
3718
- "name": "allActions",
3719
- "type": {
3720
- "text": "ActionMenuItem[]"
3721
- },
3722
- "readonly": true
3730
+ "name": "handleItemKeyDown",
3731
+ "privacy": "private",
3732
+ "inheritedFrom": {
3733
+ "name": "Accordion",
3734
+ "module": "src/accordion/accordion.ts"
3735
+ }
3723
3736
  },
3724
3737
  {
3725
3738
  "kind": "field",
3726
- "name": "rowData",
3727
- "readonly": true
3739
+ "name": "handleItemFocus",
3740
+ "privacy": "private",
3741
+ "inheritedFrom": {
3742
+ "name": "Accordion",
3743
+ "module": "src/accordion/accordion.ts"
3744
+ }
3728
3745
  },
3729
3746
  {
3730
3747
  "kind": "method",
3731
- "name": "getLabel",
3748
+ "name": "adjust",
3749
+ "privacy": "private",
3750
+ "return": {
3751
+ "type": {
3752
+ "text": "void"
3753
+ }
3754
+ },
3732
3755
  "parameters": [
3733
3756
  {
3734
- "name": "name",
3757
+ "name": "adjustment",
3735
3758
  "type": {
3736
- "text": "string | ((rowData: any) => string)"
3759
+ "text": "number"
3737
3760
  }
3738
3761
  }
3739
- ]
3762
+ ],
3763
+ "inheritedFrom": {
3764
+ "name": "Accordion",
3765
+ "module": "src/accordion/accordion.ts"
3766
+ }
3740
3767
  },
3741
3768
  {
3742
3769
  "kind": "method",
3743
- "name": "getTemplate",
3744
- "parameters": [
3745
- {
3746
- "name": "prefix",
3747
- "type": {
3748
- "text": "string"
3749
- }
3770
+ "name": "focusItem",
3771
+ "privacy": "private",
3772
+ "return": {
3773
+ "type": {
3774
+ "text": "void"
3750
3775
  }
3751
- ]
3776
+ },
3777
+ "inheritedFrom": {
3778
+ "name": "Accordion",
3779
+ "module": "src/accordion/accordion.ts"
3780
+ }
3752
3781
  },
3753
3782
  {
3754
3783
  "kind": "field",
@@ -3862,107 +3891,78 @@
3862
3891
  }
3863
3892
  }
3864
3893
  ],
3865
- "attributes": [
3866
- {
3867
- "name": "is-vertical",
3868
- "type": {
3869
- "text": "boolean"
3870
- },
3871
- "default": "false",
3872
- "fieldName": "isVertical"
3873
- },
3874
- {
3875
- "name": "add-default-actions",
3876
- "type": {
3877
- "text": "boolean"
3878
- },
3879
- "default": "true",
3880
- "fieldName": "addDefaultActions"
3881
- },
3882
- {
3883
- "name": "auto-close-on-action",
3884
- "type": {
3885
- "text": "boolean"
3886
- },
3887
- "default": "true",
3888
- "fieldName": "autoCloseOnAction"
3889
- },
3890
- {
3891
- "name": "name",
3892
- "type": {
3893
- "text": "string"
3894
- },
3895
- "default": "'Actions'",
3896
- "fieldName": "name"
3897
- },
3898
- {
3899
- "name": "open",
3900
- "type": {
3901
- "text": "boolean"
3902
- },
3903
- "default": "false",
3904
- "fieldName": "open"
3905
- },
3906
- {
3907
- "name": "buttonAppearance",
3908
- "type": {
3909
- "text": "string"
3910
- },
3911
- "fieldName": "buttonAppearance"
3912
- },
3913
- {
3914
- "name": "hide-disabled",
3915
- "type": {
3916
- "text": "boolean"
3917
- },
3918
- "default": "false",
3919
- "fieldName": "hideDisabled"
3920
- },
3894
+ "events": [
3921
3895
  {
3922
- "name": "hide-menu-single-option",
3923
- "type": {
3924
- "text": "boolean"
3925
- },
3926
- "default": "false",
3927
- "fieldName": "hideMenuSingleOption"
3896
+ "description": "Fires a custom 'change' event when the active item changes",
3897
+ "name": "change",
3898
+ "inheritedFrom": {
3899
+ "name": "Accordion",
3900
+ "module": "src/accordion/accordion.ts"
3901
+ }
3928
3902
  }
3929
- ],
3930
- "superclass": {
3931
- "name": "FoundationElement",
3932
- "package": "@microsoft/fast-foundation"
3903
+ ]
3904
+ },
3905
+ {
3906
+ "kind": "variable",
3907
+ "name": "foundationAccordionShadowOptions",
3908
+ "type": {
3909
+ "text": "ShadowRootInit"
3933
3910
  },
3934
- "tagName": "%%prefix%%-actions-menu",
3935
- "customElement": true
3911
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3936
3912
  },
3937
3913
  {
3938
3914
  "kind": "variable",
3939
- "name": "foundationActionsMenu",
3940
- "description": "The Foundation Actions Menu",
3915
+ "name": "defaultAccordionConfig",
3916
+ "type": {
3917
+ "text": "object"
3918
+ },
3919
+ "default": "{}"
3920
+ },
3921
+ {
3922
+ "kind": "variable",
3923
+ "name": "foundationAccordion",
3924
+ "description": "The Foundation Accordion",
3941
3925
  "privacy": "public"
3942
3926
  }
3943
3927
  ],
3944
3928
  "exports": [
3945
3929
  {
3946
3930
  "kind": "js",
3947
- "name": "ActionsMenu",
3931
+ "name": "Accordion",
3948
3932
  "declaration": {
3949
- "name": "ActionsMenu",
3950
- "module": "src/actions-menu/actions-menu.ts"
3933
+ "name": "Accordion",
3934
+ "module": "src/accordion/accordion.ts"
3951
3935
  }
3952
3936
  },
3953
3937
  {
3954
3938
  "kind": "js",
3955
- "name": "foundationActionsMenu",
3939
+ "name": "foundationAccordionShadowOptions",
3956
3940
  "declaration": {
3957
- "name": "foundationActionsMenu",
3958
- "module": "src/actions-menu/actions-menu.ts"
3941
+ "name": "foundationAccordionShadowOptions",
3942
+ "module": "src/accordion/accordion.ts"
3943
+ }
3944
+ },
3945
+ {
3946
+ "kind": "js",
3947
+ "name": "defaultAccordionConfig",
3948
+ "declaration": {
3949
+ "name": "defaultAccordionConfig",
3950
+ "module": "src/accordion/accordion.ts"
3951
+ }
3952
+ },
3953
+ {
3954
+ "kind": "js",
3955
+ "name": "foundationAccordion",
3956
+ "declaration": {
3957
+ "name": "foundationAccordion",
3958
+ "module": "src/accordion/accordion.ts"
3959
3959
  }
3960
3960
  }
3961
3961
  ]
3962
3962
  },
3963
3963
  {
3964
3964
  "kind": "javascript-module",
3965
- "path": "src/actions-menu/index.ts",
3965
+ "path": "src/accordion/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": "./actions-menu.styles"
3973
+ "package": "./accordion.template"
3974
3974
  }
3975
3975
  },
3976
3976
  {
@@ -3978,7 +3978,7 @@
3978
3978
  "name": "*",
3979
3979
  "declaration": {
3980
3980
  "name": "*",
3981
- "package": "./actions-menu.template"
3981
+ "package": "./accordion.styles"
3982
3982
  }
3983
3983
  },
3984
3984
  {
@@ -3986,7 +3986,7 @@
3986
3986
  "name": "*",
3987
3987
  "declaration": {
3988
3988
  "name": "*",
3989
- "package": "./actions-menu"
3989
+ "package": "./accordion"
3990
3990
  }
3991
3991
  }
3992
3992
  ]