@genesislcap/foundation-ui 15.20.2 → 15.21.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.
@@ -1495,34 +1495,42 @@
1495
1495
  },
1496
1496
  {
1497
1497
  "kind": "javascript-module",
1498
- "path": "src/actions-menu/actions-menu.styles.ts",
1499
- "declarations": [
1498
+ "path": "src/_config/index.ts",
1499
+ "declarations": [],
1500
+ "exports": [
1500
1501
  {
1501
- "kind": "function",
1502
- "name": "actionsMenuBaseStyles",
1503
- "return": {
1504
- "type": {
1505
- "text": "ElementStyles"
1506
- }
1507
- },
1508
- "parameters": [
1509
- {
1510
- "name": "context",
1511
- "type": {
1512
- "text": "ElementDefinitionContext"
1513
- }
1514
- },
1515
- {
1516
- "name": "definition",
1517
- "type": {
1518
- "text": "FoundationElementDefinition"
1519
- }
1520
- }
1521
- ]
1502
+ "kind": "js",
1503
+ "name": "*",
1504
+ "declaration": {
1505
+ "name": "*",
1506
+ "package": "./styles"
1507
+ }
1522
1508
  },
1509
+ {
1510
+ "kind": "js",
1511
+ "name": "*",
1512
+ "declaration": {
1513
+ "name": "*",
1514
+ "package": "./tokens"
1515
+ }
1516
+ },
1517
+ {
1518
+ "kind": "js",
1519
+ "name": "*",
1520
+ "declaration": {
1521
+ "name": "*",
1522
+ "package": "./values"
1523
+ }
1524
+ }
1525
+ ]
1526
+ },
1527
+ {
1528
+ "kind": "javascript-module",
1529
+ "path": "src/accordion-item/accordion-item.styles.ts",
1530
+ "declarations": [
1523
1531
  {
1524
1532
  "kind": "function",
1525
- "name": "foundationActionsMenuStyles",
1533
+ "name": "foundationAccordionItemStyles",
1526
1534
  "return": {
1527
1535
  "type": {
1528
1536
  "text": "ElementStyles"
@@ -1547,320 +1555,195 @@
1547
1555
  "exports": [
1548
1556
  {
1549
1557
  "kind": "js",
1550
- "name": "actionsMenuBaseStyles",
1551
- "declaration": {
1552
- "name": "actionsMenuBaseStyles",
1553
- "module": "src/actions-menu/actions-menu.styles.ts"
1554
- }
1555
- },
1556
- {
1557
- "kind": "js",
1558
- "name": "foundationActionsMenuStyles",
1558
+ "name": "foundationAccordionItemStyles",
1559
1559
  "declaration": {
1560
- "name": "foundationActionsMenuStyles",
1561
- "module": "src/actions-menu/actions-menu.styles.ts"
1560
+ "name": "foundationAccordionItemStyles",
1561
+ "module": "src/accordion-item/accordion-item.styles.ts"
1562
1562
  }
1563
1563
  }
1564
1564
  ]
1565
1565
  },
1566
1566
  {
1567
1567
  "kind": "javascript-module",
1568
- "path": "src/actions-menu/actions-menu.template.ts",
1568
+ "path": "src/accordion-item/accordion-item.template.ts",
1569
1569
  "declarations": [
1570
1570
  {
1571
1571
  "kind": "function",
1572
- "name": "menuTemplate",
1572
+ "name": "foundationAccordionItemTemplate",
1573
+ "return": {
1574
+ "type": {
1575
+ "text": "ViewTemplate<AccordionItem>"
1576
+ }
1577
+ },
1573
1578
  "parameters": [
1574
1579
  {
1575
- "name": "prefix",
1580
+ "name": "context",
1576
1581
  "type": {
1577
- "text": "string"
1582
+ "text": "ElementDefinitionContext"
1578
1583
  }
1579
- }
1580
- ]
1581
- },
1582
- {
1583
- "kind": "function",
1584
- "name": "singleOptionTemplate",
1585
- "parameters": [
1584
+ },
1586
1585
  {
1587
- "name": "prefix",
1586
+ "name": "definition",
1588
1587
  "type": {
1589
- "text": "string"
1588
+ "text": "FoundationElementDefinition"
1590
1589
  }
1591
1590
  }
1592
1591
  ]
1593
- },
1594
- {
1595
- "kind": "variable",
1596
- "name": "foundationActionsMenuTemplate",
1597
- "type": {
1598
- "text": "ViewTemplate<ActionsMenu>"
1599
- },
1600
- "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`"
1601
1592
  }
1602
1593
  ],
1603
1594
  "exports": [
1604
1595
  {
1605
1596
  "kind": "js",
1606
- "name": "menuTemplate",
1607
- "declaration": {
1608
- "name": "menuTemplate",
1609
- "module": "src/actions-menu/actions-menu.template.ts"
1610
- }
1611
- },
1612
- {
1613
- "kind": "js",
1614
- "name": "singleOptionTemplate",
1615
- "declaration": {
1616
- "name": "singleOptionTemplate",
1617
- "module": "src/actions-menu/actions-menu.template.ts"
1618
- }
1619
- },
1620
- {
1621
- "kind": "js",
1622
- "name": "foundationActionsMenuTemplate",
1597
+ "name": "foundationAccordionItemTemplate",
1623
1598
  "declaration": {
1624
- "name": "foundationActionsMenuTemplate",
1625
- "module": "src/actions-menu/actions-menu.template.ts"
1599
+ "name": "foundationAccordionItemTemplate",
1600
+ "module": "src/accordion-item/accordion-item.template.ts"
1626
1601
  }
1627
1602
  }
1628
1603
  ]
1629
1604
  },
1630
1605
  {
1631
1606
  "kind": "javascript-module",
1632
- "path": "src/actions-menu/actions-menu.ts",
1607
+ "path": "src/accordion-item/accordion-item.ts",
1633
1608
  "declarations": [
1634
1609
  {
1635
1610
  "kind": "class",
1636
1611
  "description": "",
1637
- "name": "ActionsMenu",
1638
- "members": [
1612
+ "name": "AccordionItem",
1613
+ "superclass": {
1614
+ "name": "FASTAccordionItem",
1615
+ "package": "@microsoft/fast-components"
1616
+ },
1617
+ "tagName": "%%prefix%%-accordion-item",
1618
+ "customElement": true,
1619
+ "attributes": [
1639
1620
  {
1640
- "kind": "field",
1641
- "name": "actions",
1621
+ "name": "heading-level",
1642
1622
  "type": {
1643
- "text": "ActionMenuItem[]"
1623
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1624
+ },
1625
+ "default": "2",
1626
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1627
+ "fieldName": "headinglevel",
1628
+ "inheritedFrom": {
1629
+ "name": "AccordionItem",
1630
+ "module": "src/accordion-item/accordion-item.ts"
1644
1631
  }
1645
1632
  },
1646
1633
  {
1647
- "kind": "field",
1648
- "name": "isVertical",
1649
1634
  "type": {
1650
1635
  "text": "boolean"
1651
1636
  },
1652
- "default": "false"
1637
+ "default": "false",
1638
+ "description": "Expands or collapses the item.",
1639
+ "fieldName": "expanded",
1640
+ "inheritedFrom": {
1641
+ "name": "AccordionItem",
1642
+ "module": "src/accordion-item/accordion-item.ts"
1643
+ }
1653
1644
  },
1654
1645
  {
1655
- "kind": "field",
1656
- "name": "addDefaultActions",
1646
+ "name": "id",
1657
1647
  "type": {
1658
- "text": "boolean"
1648
+ "text": "string"
1659
1649
  },
1660
- "default": "true"
1661
- },
1650
+ "description": "The item ID",
1651
+ "fieldName": "id",
1652
+ "inheritedFrom": {
1653
+ "name": "AccordionItem",
1654
+ "module": "src/accordion-item/accordion-item.ts"
1655
+ }
1656
+ }
1657
+ ],
1658
+ "members": [
1662
1659
  {
1663
1660
  "kind": "field",
1664
- "name": "autoCloseOnAction",
1661
+ "name": "headinglevel",
1665
1662
  "type": {
1666
- "text": "boolean"
1663
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1667
1664
  },
1668
- "default": "true"
1669
- },
1670
- {
1671
- "kind": "field",
1672
- "name": "classNames",
1673
- "type": {
1674
- "text": "string"
1665
+ "privacy": "public",
1666
+ "default": "2",
1667
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1668
+ "inheritedFrom": {
1669
+ "name": "AccordionItem",
1670
+ "module": "src/accordion-item/accordion-item.ts"
1675
1671
  }
1676
1672
  },
1677
1673
  {
1678
1674
  "kind": "field",
1679
- "name": "definition",
1675
+ "name": "expanded",
1680
1676
  "type": {
1681
- "text": "any"
1677
+ "text": "boolean"
1678
+ },
1679
+ "privacy": "public",
1680
+ "default": "false",
1681
+ "description": "Expands or collapses the item.",
1682
+ "inheritedFrom": {
1683
+ "name": "AccordionItem",
1684
+ "module": "src/accordion-item/accordion-item.ts"
1682
1685
  }
1683
1686
  },
1684
1687
  {
1685
1688
  "kind": "field",
1686
- "name": "name",
1689
+ "name": "id",
1687
1690
  "type": {
1688
1691
  "text": "string"
1689
1692
  },
1690
- "default": "'Actions'"
1693
+ "privacy": "public",
1694
+ "description": "The item ID",
1695
+ "inheritedFrom": {
1696
+ "name": "AccordionItem",
1697
+ "module": "src/accordion-item/accordion-item.ts"
1698
+ }
1691
1699
  },
1692
1700
  {
1693
1701
  "kind": "field",
1694
- "name": "open",
1695
- "type": {
1696
- "text": "boolean"
1697
- },
1698
- "default": "false"
1702
+ "name": "change",
1703
+ "privacy": "private",
1704
+ "inheritedFrom": {
1705
+ "name": "AccordionItem",
1706
+ "module": "src/accordion-item/accordion-item.ts"
1707
+ }
1699
1708
  },
1700
1709
  {
1701
1710
  "kind": "field",
1702
- "name": "buttonAppearance",
1711
+ "name": "_presentation",
1703
1712
  "type": {
1704
- "text": "string"
1713
+ "text": "ComponentPresentation | null | undefined"
1714
+ },
1715
+ "privacy": "private",
1716
+ "default": "void 0",
1717
+ "inheritedFrom": {
1718
+ "name": "FoundationElement",
1719
+ "module": "src/foundation-element/foundation-element.ts"
1705
1720
  }
1706
1721
  },
1707
1722
  {
1708
1723
  "kind": "field",
1709
- "name": "hideDisabled",
1724
+ "name": "$presentation",
1710
1725
  "type": {
1711
- "text": "boolean"
1726
+ "text": "ComponentPresentation | null"
1712
1727
  },
1713
- "default": "false"
1728
+ "privacy": "public",
1729
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1730
+ "inheritedFrom": {
1731
+ "name": "FoundationElement",
1732
+ "module": "src/foundation-element/foundation-element.ts"
1733
+ }
1714
1734
  },
1715
1735
  {
1716
1736
  "kind": "field",
1717
- "name": "hideMenuSingleOption",
1737
+ "name": "template",
1718
1738
  "type": {
1719
- "text": "boolean"
1739
+ "text": "ElementViewTemplate | void | null"
1720
1740
  },
1721
- "default": "false"
1722
- },
1723
- {
1724
- "kind": "field",
1725
- "name": "singleOption",
1726
- "type": {
1727
- "text": "ActionMenuItem"
1728
- }
1729
- },
1730
- {
1731
- "kind": "field",
1732
- "name": "actionsMenu",
1733
- "type": {
1734
- "text": "HTMLElement"
1735
- }
1736
- },
1737
- {
1738
- "kind": "field",
1739
- "name": "actionsOpener",
1740
- "type": {
1741
- "text": "HTMLElement"
1742
- }
1743
- },
1744
- {
1745
- "kind": "method",
1746
- "name": "updateMenuPosition",
1747
- "privacy": "private"
1748
- },
1749
- {
1750
- "kind": "method",
1751
- "name": "definitionChanged",
1752
- "privacy": "protected",
1753
- "parameters": [
1754
- {
1755
- "name": "oldValue",
1756
- "type": {
1757
- "text": "any"
1758
- }
1759
- },
1760
- {
1761
- "name": "newValue",
1762
- "type": {
1763
- "text": "any"
1764
- }
1765
- }
1766
- ]
1767
- },
1768
- {
1769
- "kind": "method",
1770
- "name": "openChanged",
1771
- "privacy": "protected"
1772
- },
1773
- {
1774
- "kind": "method",
1775
- "name": "toggleActionsMenuVisibility"
1776
- },
1777
- {
1778
- "kind": "method",
1779
- "name": "onActionMenuItemClick",
1780
- "parameters": [
1781
- {
1782
- "name": "callback",
1783
- "type": {
1784
- "text": "(rowData) => void | any"
1785
- }
1786
- }
1787
- ]
1788
- },
1789
- {
1790
- "kind": "field",
1791
- "name": "allActions",
1792
- "type": {
1793
- "text": "ActionMenuItem[]"
1794
- },
1795
- "readonly": true
1796
- },
1797
- {
1798
- "kind": "field",
1799
- "name": "rowData",
1800
- "readonly": true
1801
- },
1802
- {
1803
- "kind": "method",
1804
- "name": "getLabel",
1805
- "parameters": [
1806
- {
1807
- "name": "name",
1808
- "type": {
1809
- "text": "string | ((rowData: any) => string)"
1810
- }
1811
- }
1812
- ]
1813
- },
1814
- {
1815
- "kind": "method",
1816
- "name": "getTemplate",
1817
- "parameters": [
1818
- {
1819
- "name": "prefix",
1820
- "type": {
1821
- "text": "string"
1822
- }
1823
- }
1824
- ]
1825
- },
1826
- {
1827
- "kind": "field",
1828
- "name": "_presentation",
1829
- "type": {
1830
- "text": "ComponentPresentation | null | undefined"
1831
- },
1832
- "privacy": "private",
1833
- "default": "void 0",
1834
- "inheritedFrom": {
1835
- "name": "FoundationElement",
1836
- "module": "src/foundation-element/foundation-element.ts"
1837
- }
1838
- },
1839
- {
1840
- "kind": "field",
1841
- "name": "$presentation",
1842
- "type": {
1843
- "text": "ComponentPresentation | null"
1844
- },
1845
- "privacy": "public",
1846
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1847
- "inheritedFrom": {
1848
- "name": "FoundationElement",
1849
- "module": "src/foundation-element/foundation-element.ts"
1850
- }
1851
- },
1852
- {
1853
- "kind": "field",
1854
- "name": "template",
1855
- "type": {
1856
- "text": "ElementViewTemplate | void | null"
1857
- },
1858
- "privacy": "public",
1859
- "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.",
1860
- "inheritedFrom": {
1861
- "name": "FoundationElement",
1862
- "module": "src/foundation-element/foundation-element.ts"
1863
- }
1741
+ "privacy": "public",
1742
+ "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.",
1743
+ "inheritedFrom": {
1744
+ "name": "FoundationElement",
1745
+ "module": "src/foundation-element/foundation-element.ts"
1746
+ }
1864
1747
  },
1865
1748
  {
1866
1749
  "kind": "method",
@@ -1935,115 +1818,86 @@
1935
1818
  }
1936
1819
  }
1937
1820
  ],
1938
- "attributes": [
1939
- {
1940
- "name": "is-vertical",
1941
- "type": {
1942
- "text": "boolean"
1943
- },
1944
- "default": "false",
1945
- "fieldName": "isVertical"
1946
- },
1947
- {
1948
- "name": "add-default-actions",
1949
- "type": {
1950
- "text": "boolean"
1951
- },
1952
- "default": "true",
1953
- "fieldName": "addDefaultActions"
1954
- },
1955
- {
1956
- "name": "auto-close-on-action",
1957
- "type": {
1958
- "text": "boolean"
1959
- },
1960
- "default": "true",
1961
- "fieldName": "autoCloseOnAction"
1962
- },
1963
- {
1964
- "name": "name",
1965
- "type": {
1966
- "text": "string"
1967
- },
1968
- "default": "'Actions'",
1969
- "fieldName": "name"
1970
- },
1971
- {
1972
- "name": "open",
1973
- "type": {
1974
- "text": "boolean"
1975
- },
1976
- "default": "false",
1977
- "fieldName": "open"
1978
- },
1979
- {
1980
- "name": "buttonAppearance",
1981
- "type": {
1982
- "text": "string"
1983
- },
1984
- "fieldName": "buttonAppearance"
1985
- },
1986
- {
1987
- "name": "hide-disabled",
1988
- "type": {
1989
- "text": "boolean"
1990
- },
1991
- "default": "false",
1992
- "fieldName": "hideDisabled"
1993
- },
1821
+ "events": [
1994
1822
  {
1995
- "name": "hide-menu-single-option",
1996
- "type": {
1997
- "text": "boolean"
1998
- },
1999
- "default": "false",
2000
- "fieldName": "hideMenuSingleOption"
1823
+ "description": "Fires a custom 'change' event when the button is invoked",
1824
+ "name": "change",
1825
+ "inheritedFrom": {
1826
+ "name": "AccordionItem",
1827
+ "module": "src/accordion-item/accordion-item.ts"
1828
+ }
2001
1829
  }
2002
- ],
2003
- "superclass": {
2004
- "name": "FoundationElement",
2005
- "package": "@microsoft/fast-foundation"
1830
+ ]
1831
+ },
1832
+ {
1833
+ "kind": "variable",
1834
+ "name": "foundationAccordionItemShadowOptions",
1835
+ "type": {
1836
+ "text": "ShadowRootInit"
2006
1837
  },
2007
- "tagName": "%%prefix%%-actions-menu",
2008
- "customElement": true
1838
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2009
1839
  },
2010
1840
  {
2011
1841
  "kind": "variable",
2012
- "name": "foundationActionsMenu",
2013
- "description": "The Foundation Actions Menu",
1842
+ "name": "defaultAccordionItemConfig",
1843
+ "type": {
1844
+ "text": "object"
1845
+ },
1846
+ "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}"
1847
+ },
1848
+ {
1849
+ "kind": "variable",
1850
+ "name": "foundationAccordionItem",
1851
+ "description": "The Foundation Accordion Item",
2014
1852
  "privacy": "public"
2015
1853
  }
2016
1854
  ],
2017
1855
  "exports": [
2018
1856
  {
2019
1857
  "kind": "js",
2020
- "name": "ActionsMenu",
1858
+ "name": "AccordionItem",
2021
1859
  "declaration": {
2022
- "name": "ActionsMenu",
2023
- "module": "src/actions-menu/actions-menu.ts"
1860
+ "name": "AccordionItem",
1861
+ "module": "src/accordion-item/accordion-item.ts"
2024
1862
  }
2025
1863
  },
2026
1864
  {
2027
1865
  "kind": "js",
2028
- "name": "foundationActionsMenu",
1866
+ "name": "foundationAccordionItemShadowOptions",
2029
1867
  "declaration": {
2030
- "name": "foundationActionsMenu",
2031
- "module": "src/actions-menu/actions-menu.ts"
1868
+ "name": "foundationAccordionItemShadowOptions",
1869
+ "module": "src/accordion-item/accordion-item.ts"
2032
1870
  }
2033
- }
2034
- ]
2035
- },
2036
- {
2037
- "kind": "javascript-module",
2038
- "path": "src/actions-menu/index.ts",
2039
- "declarations": [],
2040
- "exports": [
1871
+ },
1872
+ {
1873
+ "kind": "js",
1874
+ "name": "defaultAccordionItemConfig",
1875
+ "declaration": {
1876
+ "name": "defaultAccordionItemConfig",
1877
+ "module": "src/accordion-item/accordion-item.ts"
1878
+ }
1879
+ },
1880
+ {
1881
+ "kind": "js",
1882
+ "name": "foundationAccordionItem",
1883
+ "declaration": {
1884
+ "name": "foundationAccordionItem",
1885
+ "module": "src/accordion-item/accordion-item.ts"
1886
+ }
1887
+ }
1888
+ ]
1889
+ },
1890
+ {
1891
+ "kind": "javascript-module",
1892
+ "path": "src/accordion-item/index.ts",
1893
+ "declarations": [],
1894
+ "exports": [
2041
1895
  {
2042
1896
  "kind": "js",
2043
1897
  "name": "*",
2044
1898
  "declaration": {
2045
1899
  "name": "*",
2046
- "package": "./actions-menu.styles"
1900
+ "package": "./accordion-item.template"
2047
1901
  }
2048
1902
  },
2049
1903
  {
@@ -2051,7 +1905,7 @@
2051
1905
  "name": "*",
2052
1906
  "declaration": {
2053
1907
  "name": "*",
2054
- "package": "./actions-menu.template"
1908
+ "package": "./accordion-item.styles"
2055
1909
  }
2056
1910
  },
2057
1911
  {
@@ -2059,193 +1913,265 @@
2059
1913
  "name": "*",
2060
1914
  "declaration": {
2061
1915
  "name": "*",
2062
- "package": "./actions-menu"
1916
+ "package": "./accordion-item"
2063
1917
  }
2064
1918
  }
2065
1919
  ]
2066
1920
  },
2067
1921
  {
2068
1922
  "kind": "javascript-module",
2069
- "path": "src/accordion-item/accordion-item.styles.ts",
1923
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2070
1924
  "declarations": [
2071
1925
  {
2072
- "kind": "function",
2073
- "name": "foundationAccordionItemStyles",
2074
- "return": {
2075
- "type": {
2076
- "text": "ElementStyles"
2077
- }
2078
- },
2079
- "parameters": [
2080
- {
2081
- "name": "context",
2082
- "type": {
2083
- "text": "ElementDefinitionContext"
2084
- }
2085
- },
2086
- {
2087
- "name": "definition",
2088
- "type": {
2089
- "text": "FoundationElementDefinition"
2090
- }
2091
- }
2092
- ]
1926
+ "kind": "variable",
1927
+ "name": "foundationAiCriteriaSearchStyles",
1928
+ "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`"
2093
1929
  }
2094
1930
  ],
2095
1931
  "exports": [
2096
1932
  {
2097
1933
  "kind": "js",
2098
- "name": "foundationAccordionItemStyles",
1934
+ "name": "foundationAiCriteriaSearchStyles",
2099
1935
  "declaration": {
2100
- "name": "foundationAccordionItemStyles",
2101
- "module": "src/accordion-item/accordion-item.styles.ts"
1936
+ "name": "foundationAiCriteriaSearchStyles",
1937
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2102
1938
  }
2103
1939
  }
2104
1940
  ]
2105
1941
  },
2106
1942
  {
2107
1943
  "kind": "javascript-module",
2108
- "path": "src/accordion-item/accordion-item.template.ts",
1944
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2109
1945
  "declarations": [
2110
1946
  {
2111
- "kind": "function",
2112
- "name": "foundationAccordionItemTemplate",
2113
- "return": {
2114
- "type": {
2115
- "text": "ViewTemplate<AccordionItem>"
2116
- }
1947
+ "kind": "variable",
1948
+ "name": "foundationAiCriteriaSearchTemplate",
1949
+ "type": {
1950
+ "text": "ViewTemplate<AiCriteriaSearch>"
2117
1951
  },
2118
- "parameters": [
2119
- {
2120
- "name": "context",
2121
- "type": {
2122
- "text": "ElementDefinitionContext"
2123
- }
2124
- },
2125
- {
2126
- "name": "definition",
2127
- "type": {
2128
- "text": "FoundationElementDefinition"
2129
- }
2130
- }
2131
- ]
1952
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2132
1953
  }
2133
1954
  ],
2134
1955
  "exports": [
2135
1956
  {
2136
1957
  "kind": "js",
2137
- "name": "foundationAccordionItemTemplate",
1958
+ "name": "foundationAiCriteriaSearchTemplate",
2138
1959
  "declaration": {
2139
- "name": "foundationAccordionItemTemplate",
2140
- "module": "src/accordion-item/accordion-item.template.ts"
1960
+ "name": "foundationAiCriteriaSearchTemplate",
1961
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2141
1962
  }
2142
1963
  }
2143
1964
  ]
2144
1965
  },
2145
1966
  {
2146
1967
  "kind": "javascript-module",
2147
- "path": "src/accordion-item/accordion-item.ts",
1968
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2148
1969
  "declarations": [
2149
1970
  {
2150
1971
  "kind": "class",
2151
- "description": "",
2152
- "name": "AccordionItem",
2153
- "superclass": {
2154
- "name": "FASTAccordionItem",
2155
- "package": "@microsoft/fast-components"
2156
- },
2157
- "tagName": "%%prefix%%-accordion-item",
2158
- "customElement": true,
2159
- "attributes": [
1972
+ "description": "Natural-language criteria search input with AI interpretation.",
1973
+ "name": "AiCriteriaSearch",
1974
+ "members": [
2160
1975
  {
2161
- "name": "heading-level",
1976
+ "kind": "field",
1977
+ "name": "providerRegistry",
2162
1978
  "type": {
2163
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2164
- },
2165
- "default": "2",
2166
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2167
- "fieldName": "headinglevel",
2168
- "inheritedFrom": {
2169
- "name": "AccordionItem",
2170
- "module": "src/accordion-item/accordion-item.ts"
1979
+ "text": "AIProviderRegistry"
2171
1980
  }
2172
1981
  },
2173
1982
  {
1983
+ "kind": "field",
1984
+ "name": "placeholder",
2174
1985
  "type": {
2175
- "text": "boolean"
1986
+ "text": "string"
2176
1987
  },
2177
- "default": "false",
2178
- "description": "Expands or collapses the item.",
2179
- "fieldName": "expanded",
2180
- "inheritedFrom": {
2181
- "name": "AccordionItem",
2182
- "module": "src/accordion-item/accordion-item.ts"
1988
+ "default": "'Describe your search criteria in natural language...'"
1989
+ },
1990
+ {
1991
+ "kind": "field",
1992
+ "name": "disabled",
1993
+ "type": {
1994
+ "text": "boolean"
2183
1995
  }
2184
1996
  },
2185
1997
  {
2186
- "name": "id",
1998
+ "kind": "field",
1999
+ "name": "inputValue",
2187
2000
  "type": {
2188
2001
  "text": "string"
2189
2002
  },
2190
- "description": "The item ID",
2191
- "fieldName": "id",
2192
- "inheritedFrom": {
2193
- "name": "AccordionItem",
2194
- "module": "src/accordion-item/accordion-item.ts"
2195
- }
2196
- }
2197
- ],
2198
- "members": [
2003
+ "default": "''"
2004
+ },
2199
2005
  {
2200
2006
  "kind": "field",
2201
- "name": "headinglevel",
2007
+ "name": "isInterpreting",
2202
2008
  "type": {
2203
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2009
+ "text": "boolean"
2204
2010
  },
2205
- "privacy": "public",
2206
- "default": "2",
2207
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2208
- "inheritedFrom": {
2209
- "name": "AccordionItem",
2210
- "module": "src/accordion-item/accordion-item.ts"
2211
- }
2011
+ "default": "false"
2212
2012
  },
2213
2013
  {
2214
2014
  "kind": "field",
2215
- "name": "expanded",
2015
+ "name": "lastValidCriteria",
2016
+ "type": {
2017
+ "text": "string | null"
2018
+ },
2019
+ "default": "null"
2020
+ },
2021
+ {
2022
+ "kind": "field",
2023
+ "name": "activeGroups",
2024
+ "type": {
2025
+ "text": "CriteriaGroup[]"
2026
+ },
2027
+ "default": "[]"
2028
+ },
2029
+ {
2030
+ "kind": "field",
2031
+ "name": "showingChips",
2216
2032
  "type": {
2217
2033
  "text": "boolean"
2218
2034
  },
2219
- "privacy": "public",
2220
- "default": "false",
2221
- "description": "Expands or collapses the item.",
2222
- "inheritedFrom": {
2223
- "name": "AccordionItem",
2224
- "module": "src/accordion-item/accordion-item.ts"
2225
- }
2035
+ "default": "false"
2226
2036
  },
2227
2037
  {
2228
2038
  "kind": "field",
2229
- "name": "id",
2039
+ "name": "fieldMetadata",
2230
2040
  "type": {
2231
- "text": "string"
2041
+ "text": "MetadataDetail[] | string[]"
2232
2042
  },
2233
- "privacy": "public",
2234
- "description": "The item ID",
2235
- "inheritedFrom": {
2236
- "name": "AccordionItem",
2237
- "module": "src/accordion-item/accordion-item.ts"
2238
- }
2043
+ "default": "[]"
2239
2044
  },
2240
2045
  {
2241
2046
  "kind": "field",
2242
- "name": "change",
2047
+ "name": "isRecording",
2048
+ "type": {
2049
+ "text": "boolean"
2050
+ },
2051
+ "default": "false"
2052
+ },
2053
+ {
2054
+ "kind": "field",
2055
+ "name": "textAreaRef",
2056
+ "type": {
2057
+ "text": "HTMLTextAreaElement"
2058
+ },
2059
+ "privacy": "public"
2060
+ },
2061
+ {
2062
+ "kind": "field",
2063
+ "name": "stopRecording",
2064
+ "type": {
2065
+ "text": "(() => void) | null"
2066
+ },
2243
2067
  "privacy": "private",
2244
- "inheritedFrom": {
2245
- "name": "AccordionItem",
2246
- "module": "src/accordion-item/accordion-item.ts"
2068
+ "default": "null"
2069
+ },
2070
+ {
2071
+ "kind": "field",
2072
+ "name": "speechApplyDebounceTimer",
2073
+ "type": {
2074
+ "text": "ReturnType<typeof setTimeout> | null"
2075
+ },
2076
+ "privacy": "private",
2077
+ "default": "null"
2078
+ },
2079
+ {
2080
+ "kind": "field",
2081
+ "name": "speechAvailable",
2082
+ "type": {
2083
+ "text": "boolean"
2084
+ },
2085
+ "readonly": true
2086
+ },
2087
+ {
2088
+ "kind": "field",
2089
+ "name": "criteriaChips",
2090
+ "type": {
2091
+ "text": "CriteriaChip[]"
2092
+ },
2093
+ "readonly": true
2094
+ },
2095
+ {
2096
+ "kind": "method",
2097
+ "name": "getFieldLabel",
2098
+ "privacy": "private",
2099
+ "return": {
2100
+ "type": {
2101
+ "text": "string"
2102
+ }
2103
+ },
2104
+ "parameters": [
2105
+ {
2106
+ "name": "fieldName",
2107
+ "type": {
2108
+ "text": "string"
2109
+ }
2110
+ }
2111
+ ]
2112
+ },
2113
+ {
2114
+ "kind": "method",
2115
+ "name": "toggleCriteriaView",
2116
+ "return": {
2117
+ "type": {
2118
+ "text": "void"
2119
+ }
2247
2120
  }
2248
2121
  },
2122
+ {
2123
+ "kind": "method",
2124
+ "name": "removeChip",
2125
+ "return": {
2126
+ "type": {
2127
+ "text": "void"
2128
+ }
2129
+ },
2130
+ "parameters": [
2131
+ {
2132
+ "name": "groupIndex",
2133
+ "type": {
2134
+ "text": "number"
2135
+ }
2136
+ },
2137
+ {
2138
+ "name": "clauseIndex",
2139
+ "type": {
2140
+ "text": "number"
2141
+ }
2142
+ }
2143
+ ]
2144
+ },
2145
+ {
2146
+ "kind": "method",
2147
+ "name": "clearChips",
2148
+ "return": {
2149
+ "type": {
2150
+ "text": "void"
2151
+ }
2152
+ }
2153
+ },
2154
+ {
2155
+ "kind": "method",
2156
+ "name": "handleSubmit"
2157
+ },
2158
+ {
2159
+ "kind": "method",
2160
+ "name": "handleBlur"
2161
+ },
2162
+ {
2163
+ "kind": "method",
2164
+ "name": "clear"
2165
+ },
2166
+ {
2167
+ "kind": "method",
2168
+ "name": "toggleSpeechInput"
2169
+ },
2170
+ {
2171
+ "kind": "method",
2172
+ "name": "clearSpeechApplyDebounce",
2173
+ "privacy": "private"
2174
+ },
2249
2175
  {
2250
2176
  "kind": "field",
2251
2177
  "name": "_presentation",
@@ -2360,84 +2286,152 @@
2360
2286
  ],
2361
2287
  "events": [
2362
2288
  {
2363
- "description": "Fires a custom 'change' event when the button is invoked",
2364
- "name": "change",
2365
- "inheritedFrom": {
2366
- "name": "AccordionItem",
2367
- "module": "src/accordion-item/accordion-item.ts"
2368
- }
2289
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2290
+ "name": "criteria-changed"
2291
+ },
2292
+ {
2293
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2294
+ "name": "validation-errors"
2369
2295
  }
2370
- ]
2296
+ ],
2297
+ "attributes": [
2298
+ {
2299
+ "name": "placeholder",
2300
+ "type": {
2301
+ "text": "string"
2302
+ },
2303
+ "default": "'Describe your search criteria in natural language...'",
2304
+ "fieldName": "placeholder"
2305
+ },
2306
+ {
2307
+ "type": {
2308
+ "text": "boolean"
2309
+ },
2310
+ "fieldName": "disabled"
2311
+ }
2312
+ ],
2313
+ "superclass": {
2314
+ "name": "FoundationElement",
2315
+ "package": "@microsoft/fast-foundation"
2316
+ },
2317
+ "tagName": "%%prefix%%-ai-criteria-search",
2318
+ "customElement": true
2371
2319
  },
2372
2320
  {
2373
2321
  "kind": "variable",
2374
- "name": "foundationAccordionItemShadowOptions",
2322
+ "name": "foundationAiCriteriaSearchShadowOptions",
2375
2323
  "type": {
2376
2324
  "text": "ShadowRootInit"
2377
2325
  },
2378
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2326
+ "default": "undefined"
2379
2327
  },
2380
2328
  {
2381
2329
  "kind": "variable",
2382
- "name": "defaultAccordionItemConfig",
2330
+ "name": "defaultAiCriteriaSearchConfig",
2383
2331
  "type": {
2384
2332
  "text": "object"
2385
2333
  },
2386
- "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}"
2334
+ "default": "{}"
2387
2335
  },
2388
2336
  {
2389
2337
  "kind": "variable",
2390
- "name": "foundationAccordionItem",
2391
- "description": "The Foundation Accordion Item",
2392
- "privacy": "public"
2338
+ "name": "foundationAiCriteriaSearch"
2393
2339
  }
2394
2340
  ],
2395
2341
  "exports": [
2396
2342
  {
2397
2343
  "kind": "js",
2398
- "name": "AccordionItem",
2344
+ "name": "AiCriteriaSearch",
2399
2345
  "declaration": {
2400
- "name": "AccordionItem",
2401
- "module": "src/accordion-item/accordion-item.ts"
2346
+ "name": "AiCriteriaSearch",
2347
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2402
2348
  }
2403
2349
  },
2404
2350
  {
2405
2351
  "kind": "js",
2406
- "name": "foundationAccordionItemShadowOptions",
2352
+ "name": "foundationAiCriteriaSearchShadowOptions",
2407
2353
  "declaration": {
2408
- "name": "foundationAccordionItemShadowOptions",
2409
- "module": "src/accordion-item/accordion-item.ts"
2354
+ "name": "foundationAiCriteriaSearchShadowOptions",
2355
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2410
2356
  }
2411
2357
  },
2412
2358
  {
2413
2359
  "kind": "js",
2414
- "name": "defaultAccordionItemConfig",
2360
+ "name": "defaultAiCriteriaSearchConfig",
2415
2361
  "declaration": {
2416
- "name": "defaultAccordionItemConfig",
2417
- "module": "src/accordion-item/accordion-item.ts"
2362
+ "name": "defaultAiCriteriaSearchConfig",
2363
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2418
2364
  }
2419
2365
  },
2420
2366
  {
2421
2367
  "kind": "js",
2422
- "name": "foundationAccordionItem",
2368
+ "name": "foundationAiCriteriaSearch",
2423
2369
  "declaration": {
2424
- "name": "foundationAccordionItem",
2425
- "module": "src/accordion-item/accordion-item.ts"
2370
+ "name": "foundationAiCriteriaSearch",
2371
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2426
2372
  }
2427
2373
  }
2428
2374
  ]
2429
2375
  },
2430
2376
  {
2431
2377
  "kind": "javascript-module",
2432
- "path": "src/accordion-item/index.ts",
2378
+ "path": "src/ai-criteria-search/index.ts",
2433
2379
  "declarations": [],
2434
2380
  "exports": [
2381
+ {
2382
+ "kind": "js",
2383
+ "name": "AiCriteriaSearch",
2384
+ "declaration": {
2385
+ "name": "AiCriteriaSearch",
2386
+ "module": "./ai-criteria-search"
2387
+ }
2388
+ },
2389
+ {
2390
+ "kind": "js",
2391
+ "name": "defaultAiCriteriaSearchConfig",
2392
+ "declaration": {
2393
+ "name": "defaultAiCriteriaSearchConfig",
2394
+ "module": "./ai-criteria-search"
2395
+ }
2396
+ },
2397
+ {
2398
+ "kind": "js",
2399
+ "name": "foundationAiCriteriaSearch",
2400
+ "declaration": {
2401
+ "name": "foundationAiCriteriaSearch",
2402
+ "module": "./ai-criteria-search"
2403
+ }
2404
+ },
2405
+ {
2406
+ "kind": "js",
2407
+ "name": "foundationAiCriteriaSearchShadowOptions",
2408
+ "declaration": {
2409
+ "name": "foundationAiCriteriaSearchShadowOptions",
2410
+ "module": "./ai-criteria-search"
2411
+ }
2412
+ },
2413
+ {
2414
+ "kind": "js",
2415
+ "name": "foundationAiCriteriaSearchStyles",
2416
+ "declaration": {
2417
+ "name": "foundationAiCriteriaSearchStyles",
2418
+ "module": "./ai-criteria-search.styles"
2419
+ }
2420
+ },
2421
+ {
2422
+ "kind": "js",
2423
+ "name": "foundationAiCriteriaSearchTemplate",
2424
+ "declaration": {
2425
+ "name": "foundationAiCriteriaSearchTemplate",
2426
+ "module": "./ai-criteria-search.template"
2427
+ }
2428
+ },
2435
2429
  {
2436
2430
  "kind": "js",
2437
2431
  "name": "*",
2438
2432
  "declaration": {
2439
2433
  "name": "*",
2440
- "package": "./accordion-item.template"
2434
+ "package": "./validation/criteria-ir"
2441
2435
  }
2442
2436
  },
2443
2437
  {
@@ -2445,7 +2439,7 @@
2445
2439
  "name": "*",
2446
2440
  "declaration": {
2447
2441
  "name": "*",
2448
- "package": "./accordion-item.styles"
2442
+ "package": "./validation/operator-map"
2449
2443
  }
2450
2444
  },
2451
2445
  {
@@ -2453,95 +2447,157 @@
2453
2447
  "name": "*",
2454
2448
  "declaration": {
2455
2449
  "name": "*",
2456
- "package": "./accordion-item"
2450
+ "package": "./validation/schema-validator"
2457
2451
  }
2458
2452
  }
2459
2453
  ]
2460
2454
  },
2461
2455
  {
2462
2456
  "kind": "javascript-module",
2463
- "path": "src/_config/index.ts",
2464
- "declarations": [],
2465
- "exports": [
2457
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2458
+ "declarations": [
2466
2459
  {
2467
- "kind": "js",
2468
- "name": "*",
2469
- "declaration": {
2470
- "name": "*",
2471
- "package": "./styles"
2472
- }
2460
+ "kind": "function",
2461
+ "name": "formatValidationErrors",
2462
+ "return": {
2463
+ "type": {
2464
+ "text": "string"
2465
+ }
2466
+ },
2467
+ "parameters": [
2468
+ {
2469
+ "name": "errors",
2470
+ "type": {
2471
+ "text": "ValidationError[]"
2472
+ }
2473
+ }
2474
+ ],
2475
+ "description": "Formats validation errors into a user-friendly message."
2473
2476
  },
2477
+ {
2478
+ "kind": "function",
2479
+ "name": "showCriteriaError",
2480
+ "return": {
2481
+ "type": {
2482
+ "text": "void"
2483
+ }
2484
+ },
2485
+ "parameters": [
2486
+ {
2487
+ "name": "title",
2488
+ "type": {
2489
+ "text": "string"
2490
+ },
2491
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2492
+ },
2493
+ {
2494
+ "name": "body",
2495
+ "type": {
2496
+ "text": "string"
2497
+ },
2498
+ "description": "Error message to display"
2499
+ },
2500
+ {
2501
+ "name": "tagName",
2502
+ "type": {
2503
+ "text": "string"
2504
+ },
2505
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2506
+ }
2507
+ ],
2508
+ "description": "Shows a criteria error as a toast notification."
2509
+ }
2510
+ ],
2511
+ "exports": [
2474
2512
  {
2475
2513
  "kind": "js",
2476
- "name": "*",
2514
+ "name": "formatValidationErrors",
2477
2515
  "declaration": {
2478
- "name": "*",
2479
- "package": "./tokens"
2516
+ "name": "formatValidationErrors",
2517
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2480
2518
  }
2481
2519
  },
2482
2520
  {
2483
2521
  "kind": "js",
2484
- "name": "*",
2522
+ "name": "showCriteriaError",
2485
2523
  "declaration": {
2486
- "name": "*",
2487
- "package": "./values"
2524
+ "name": "showCriteriaError",
2525
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2488
2526
  }
2489
2527
  }
2490
2528
  ]
2491
2529
  },
2492
2530
  {
2493
2531
  "kind": "javascript-module",
2494
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2532
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
2495
2533
  "declarations": [
2496
2534
  {
2497
- "kind": "variable",
2498
- "name": "foundationAiCriteriaSearchStyles",
2499
- "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`"
2535
+ "kind": "function",
2536
+ "name": "foundationAiIndicatorStyles",
2537
+ "return": {
2538
+ "type": {
2539
+ "text": "ElementStyles"
2540
+ }
2541
+ },
2542
+ "parameters": [
2543
+ {
2544
+ "name": "context",
2545
+ "type": {
2546
+ "text": "ElementDefinitionContext"
2547
+ }
2548
+ },
2549
+ {
2550
+ "name": "definition",
2551
+ "type": {
2552
+ "text": "FoundationElementDefinition"
2553
+ }
2554
+ }
2555
+ ]
2500
2556
  }
2501
2557
  ],
2502
2558
  "exports": [
2503
2559
  {
2504
2560
  "kind": "js",
2505
- "name": "foundationAiCriteriaSearchStyles",
2561
+ "name": "foundationAiIndicatorStyles",
2506
2562
  "declaration": {
2507
- "name": "foundationAiCriteriaSearchStyles",
2508
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2563
+ "name": "foundationAiIndicatorStyles",
2564
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
2509
2565
  }
2510
2566
  }
2511
2567
  ]
2512
2568
  },
2513
2569
  {
2514
2570
  "kind": "javascript-module",
2515
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2571
+ "path": "src/ai-indicator/ai-indicator.template.ts",
2516
2572
  "declarations": [
2517
2573
  {
2518
2574
  "kind": "variable",
2519
- "name": "foundationAiCriteriaSearchTemplate",
2575
+ "name": "foundationAiIndicatorTemplate",
2520
2576
  "type": {
2521
- "text": "ViewTemplate<AiCriteriaSearch>"
2577
+ "text": "ViewTemplate<AiIndicator>"
2522
2578
  },
2523
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2579
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2524
2580
  }
2525
2581
  ],
2526
2582
  "exports": [
2527
2583
  {
2528
2584
  "kind": "js",
2529
- "name": "foundationAiCriteriaSearchTemplate",
2585
+ "name": "foundationAiIndicatorTemplate",
2530
2586
  "declaration": {
2531
- "name": "foundationAiCriteriaSearchTemplate",
2532
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2587
+ "name": "foundationAiIndicatorTemplate",
2588
+ "module": "src/ai-indicator/ai-indicator.template.ts"
2533
2589
  }
2534
2590
  }
2535
2591
  ]
2536
2592
  },
2537
2593
  {
2538
2594
  "kind": "javascript-module",
2539
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2595
+ "path": "src/ai-indicator/ai-indicator.ts",
2540
2596
  "declarations": [
2541
2597
  {
2542
2598
  "kind": "class",
2543
- "description": "Natural-language criteria search input with AI interpretation.",
2544
- "name": "AiCriteriaSearch",
2599
+ "description": "",
2600
+ "name": "AiIndicator",
2545
2601
  "members": [
2546
2602
  {
2547
2603
  "kind": "field",
@@ -2552,54 +2608,25 @@
2552
2608
  },
2553
2609
  {
2554
2610
  "kind": "field",
2555
- "name": "placeholder",
2556
- "type": {
2557
- "text": "string"
2558
- },
2559
- "default": "'Describe your search criteria in natural language...'"
2560
- },
2561
- {
2562
- "kind": "field",
2563
- "name": "disabled",
2564
- "type": {
2565
- "text": "boolean"
2566
- }
2567
- },
2568
- {
2569
- "kind": "field",
2570
- "name": "inputValue",
2571
- "type": {
2572
- "text": "string"
2573
- },
2574
- "default": "''"
2575
- },
2576
- {
2577
- "kind": "field",
2578
- "name": "isInterpreting",
2611
+ "name": "aiProvider",
2579
2612
  "type": {
2580
- "text": "boolean"
2613
+ "text": "AIProvider | undefined"
2581
2614
  },
2582
- "default": "false"
2615
+ "privacy": "private",
2616
+ "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
2617
+ "readonly": true
2583
2618
  },
2584
2619
  {
2585
2620
  "kind": "field",
2586
- "name": "lastValidCriteria",
2621
+ "name": "status",
2587
2622
  "type": {
2588
- "text": "string | null"
2623
+ "text": "AIStatus | null"
2589
2624
  },
2590
2625
  "default": "null"
2591
2626
  },
2592
2627
  {
2593
2628
  "kind": "field",
2594
- "name": "activeGroups",
2595
- "type": {
2596
- "text": "CriteriaGroup[]"
2597
- },
2598
- "default": "[]"
2599
- },
2600
- {
2601
- "kind": "field",
2602
- "name": "showingChips",
2629
+ "name": "open",
2603
2630
  "type": {
2604
2631
  "text": "boolean"
2605
2632
  },
@@ -2607,15 +2634,15 @@
2607
2634
  },
2608
2635
  {
2609
2636
  "kind": "field",
2610
- "name": "fieldMetadata",
2637
+ "name": "state",
2611
2638
  "type": {
2612
- "text": "MetadataDetail[] | string[]"
2639
+ "text": "AIIndicatorState"
2613
2640
  },
2614
- "default": "[]"
2641
+ "default": "'none'"
2615
2642
  },
2616
2643
  {
2617
2644
  "kind": "field",
2618
- "name": "isRecording",
2645
+ "name": "isInstalling",
2619
2646
  "type": {
2620
2647
  "text": "boolean"
2621
2648
  },
@@ -2623,33 +2650,29 @@
2623
2650
  },
2624
2651
  {
2625
2652
  "kind": "field",
2626
- "name": "textAreaRef",
2653
+ "name": "pollTimer",
2627
2654
  "type": {
2628
- "text": "HTMLTextAreaElement"
2655
+ "text": "ReturnType<typeof setInterval> | null"
2629
2656
  },
2630
- "privacy": "public"
2657
+ "privacy": "private",
2658
+ "default": "null"
2631
2659
  },
2632
2660
  {
2633
2661
  "kind": "field",
2634
- "name": "stopRecording",
2635
- "type": {
2636
- "text": "(() => void) | null"
2637
- },
2638
- "privacy": "private",
2639
- "default": "null"
2662
+ "name": "clickOutside",
2663
+ "privacy": "private"
2640
2664
  },
2641
2665
  {
2642
2666
  "kind": "field",
2643
- "name": "speechApplyDebounceTimer",
2667
+ "name": "chromeStatusLabel",
2644
2668
  "type": {
2645
- "text": "ReturnType<typeof setTimeout> | null"
2669
+ "text": "string | null"
2646
2670
  },
2647
- "privacy": "private",
2648
- "default": "null"
2671
+ "readonly": true
2649
2672
  },
2650
2673
  {
2651
2674
  "kind": "field",
2652
- "name": "speechAvailable",
2675
+ "name": "canInstall",
2653
2676
  "type": {
2654
2677
  "text": "boolean"
2655
2678
  },
@@ -2657,65 +2680,69 @@
2657
2680
  },
2658
2681
  {
2659
2682
  "kind": "field",
2660
- "name": "criteriaChips",
2683
+ "name": "isDownloading",
2661
2684
  "type": {
2662
- "text": "CriteriaChip[]"
2685
+ "text": "boolean"
2663
2686
  },
2664
2687
  "readonly": true
2665
2688
  },
2666
2689
  {
2667
2690
  "kind": "method",
2668
- "name": "getFieldLabel",
2669
- "privacy": "private",
2691
+ "name": "openChanged",
2670
2692
  "return": {
2671
2693
  "type": {
2672
- "text": "string"
2694
+ "text": "void"
2673
2695
  }
2674
- },
2696
+ }
2697
+ },
2698
+ {
2699
+ "kind": "method",
2700
+ "name": "handleClickOutside",
2701
+ "privacy": "private",
2675
2702
  "parameters": [
2676
2703
  {
2677
- "name": "fieldName",
2704
+ "name": "event",
2678
2705
  "type": {
2679
- "text": "string"
2706
+ "text": "MouseEvent"
2680
2707
  }
2681
2708
  }
2682
2709
  ]
2683
2710
  },
2684
2711
  {
2685
2712
  "kind": "method",
2686
- "name": "toggleCriteriaView",
2713
+ "name": "toggleDropdown"
2714
+ },
2715
+ {
2716
+ "kind": "method",
2717
+ "name": "refreshStatus",
2687
2718
  "return": {
2688
2719
  "type": {
2689
- "text": "void"
2720
+ "text": "Promise<void>"
2690
2721
  }
2691
2722
  }
2692
2723
  },
2693
2724
  {
2694
2725
  "kind": "method",
2695
- "name": "removeChip",
2726
+ "name": "deriveState",
2727
+ "privacy": "private",
2696
2728
  "return": {
2697
2729
  "type": {
2698
- "text": "void"
2730
+ "text": "AIIndicatorState"
2699
2731
  }
2700
2732
  },
2701
2733
  "parameters": [
2702
2734
  {
2703
- "name": "groupIndex",
2704
- "type": {
2705
- "text": "number"
2706
- }
2707
- },
2708
- {
2709
- "name": "clauseIndex",
2735
+ "name": "s",
2710
2736
  "type": {
2711
- "text": "number"
2737
+ "text": "AIStatus | null"
2712
2738
  }
2713
2739
  }
2714
2740
  ]
2715
2741
  },
2716
2742
  {
2717
2743
  "kind": "method",
2718
- "name": "clearChips",
2744
+ "name": "maybeStartPolling",
2745
+ "privacy": "private",
2719
2746
  "return": {
2720
2747
  "type": {
2721
2748
  "text": "void"
@@ -2724,24 +2751,32 @@
2724
2751
  },
2725
2752
  {
2726
2753
  "kind": "method",
2727
- "name": "handleSubmit"
2728
- },
2729
- {
2730
- "kind": "method",
2731
- "name": "handleBlur"
2732
- },
2733
- {
2734
- "kind": "method",
2735
- "name": "clear"
2754
+ "name": "startPolling",
2755
+ "privacy": "private",
2756
+ "return": {
2757
+ "type": {
2758
+ "text": "void"
2759
+ }
2760
+ }
2736
2761
  },
2737
2762
  {
2738
2763
  "kind": "method",
2739
- "name": "toggleSpeechInput"
2764
+ "name": "stopPolling",
2765
+ "privacy": "private",
2766
+ "return": {
2767
+ "type": {
2768
+ "text": "void"
2769
+ }
2770
+ }
2740
2771
  },
2741
2772
  {
2742
2773
  "kind": "method",
2743
- "name": "clearSpeechApplyDebounce",
2744
- "privacy": "private"
2774
+ "name": "onInstall",
2775
+ "return": {
2776
+ "type": {
2777
+ "text": "Promise<void>"
2778
+ }
2779
+ }
2745
2780
  },
2746
2781
  {
2747
2782
  "kind": "field",
@@ -2855,345 +2890,287 @@
2855
2890
  }
2856
2891
  }
2857
2892
  ],
2858
- "events": [
2859
- {
2860
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2861
- "name": "criteria-changed"
2862
- },
2863
- {
2864
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2865
- "name": "validation-errors"
2866
- }
2867
- ],
2868
- "attributes": [
2869
- {
2870
- "name": "placeholder",
2871
- "type": {
2872
- "text": "string"
2873
- },
2874
- "default": "'Describe your search criteria in natural language...'",
2875
- "fieldName": "placeholder"
2876
- },
2877
- {
2878
- "type": {
2879
- "text": "boolean"
2880
- },
2881
- "fieldName": "disabled"
2882
- }
2883
- ],
2884
2893
  "superclass": {
2885
2894
  "name": "FoundationElement",
2886
- "package": "@microsoft/fast-foundation"
2887
- },
2888
- "tagName": "%%prefix%%-ai-criteria-search",
2889
- "customElement": true
2890
- },
2891
- {
2892
- "kind": "variable",
2893
- "name": "foundationAiCriteriaSearchShadowOptions",
2894
- "type": {
2895
- "text": "ShadowRootInit"
2896
- },
2897
- "default": "undefined"
2898
- },
2899
- {
2900
- "kind": "variable",
2901
- "name": "defaultAiCriteriaSearchConfig",
2902
- "type": {
2903
- "text": "object"
2904
- },
2905
- "default": "{}"
2906
- },
2907
- {
2908
- "kind": "variable",
2909
- "name": "foundationAiCriteriaSearch"
2910
- }
2911
- ],
2912
- "exports": [
2913
- {
2914
- "kind": "js",
2915
- "name": "AiCriteriaSearch",
2916
- "declaration": {
2917
- "name": "AiCriteriaSearch",
2918
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2919
- }
2920
- },
2921
- {
2922
- "kind": "js",
2923
- "name": "foundationAiCriteriaSearchShadowOptions",
2924
- "declaration": {
2925
- "name": "foundationAiCriteriaSearchShadowOptions",
2926
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2927
- }
2928
- },
2929
- {
2930
- "kind": "js",
2931
- "name": "defaultAiCriteriaSearchConfig",
2932
- "declaration": {
2933
- "name": "defaultAiCriteriaSearchConfig",
2934
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2935
- }
2936
- },
2937
- {
2938
- "kind": "js",
2939
- "name": "foundationAiCriteriaSearch",
2940
- "declaration": {
2941
- "name": "foundationAiCriteriaSearch",
2942
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2943
- }
2944
- }
2945
- ]
2946
- },
2947
- {
2948
- "kind": "javascript-module",
2949
- "path": "src/ai-criteria-search/index.ts",
2950
- "declarations": [],
2951
- "exports": [
2952
- {
2953
- "kind": "js",
2954
- "name": "AiCriteriaSearch",
2955
- "declaration": {
2956
- "name": "AiCriteriaSearch",
2957
- "module": "./ai-criteria-search"
2958
- }
2895
+ "package": "@microsoft/fast-foundation"
2896
+ },
2897
+ "tagName": "%%prefix%%-ai-indicator",
2898
+ "customElement": true
2959
2899
  },
2900
+ {
2901
+ "kind": "variable",
2902
+ "name": "foundationAiIndicator"
2903
+ }
2904
+ ],
2905
+ "exports": [
2960
2906
  {
2961
2907
  "kind": "js",
2962
- "name": "defaultAiCriteriaSearchConfig",
2908
+ "name": "AiIndicator",
2963
2909
  "declaration": {
2964
- "name": "defaultAiCriteriaSearchConfig",
2965
- "module": "./ai-criteria-search"
2910
+ "name": "AiIndicator",
2911
+ "module": "src/ai-indicator/ai-indicator.ts"
2966
2912
  }
2967
2913
  },
2968
2914
  {
2969
2915
  "kind": "js",
2970
- "name": "foundationAiCriteriaSearch",
2916
+ "name": "foundationAiIndicator",
2971
2917
  "declaration": {
2972
- "name": "foundationAiCriteriaSearch",
2973
- "module": "./ai-criteria-search"
2918
+ "name": "foundationAiIndicator",
2919
+ "module": "src/ai-indicator/ai-indicator.ts"
2974
2920
  }
2975
- },
2921
+ }
2922
+ ]
2923
+ },
2924
+ {
2925
+ "kind": "javascript-module",
2926
+ "path": "src/ai-indicator/index.ts",
2927
+ "declarations": [],
2928
+ "exports": [
2976
2929
  {
2977
2930
  "kind": "js",
2978
- "name": "foundationAiCriteriaSearchShadowOptions",
2931
+ "name": "AiIndicator",
2979
2932
  "declaration": {
2980
- "name": "foundationAiCriteriaSearchShadowOptions",
2981
- "module": "./ai-criteria-search"
2933
+ "name": "AiIndicator",
2934
+ "module": "./ai-indicator"
2982
2935
  }
2983
2936
  },
2984
2937
  {
2985
2938
  "kind": "js",
2986
- "name": "foundationAiCriteriaSearchStyles",
2939
+ "name": "foundationAiIndicator",
2987
2940
  "declaration": {
2988
- "name": "foundationAiCriteriaSearchStyles",
2989
- "module": "./ai-criteria-search.styles"
2941
+ "name": "foundationAiIndicator",
2942
+ "module": "./ai-indicator"
2990
2943
  }
2991
2944
  },
2992
2945
  {
2993
2946
  "kind": "js",
2994
- "name": "foundationAiCriteriaSearchTemplate",
2947
+ "name": "type",
2995
2948
  "declaration": {
2996
- "name": "foundationAiCriteriaSearchTemplate",
2997
- "module": "./ai-criteria-search.template"
2949
+ "name": "type",
2950
+ "module": "./ai-indicator"
2998
2951
  }
2999
2952
  },
3000
2953
  {
3001
2954
  "kind": "js",
3002
- "name": "*",
2955
+ "name": "AIIndicatorState",
3003
2956
  "declaration": {
3004
- "name": "*",
3005
- "package": "./validation/criteria-ir"
2957
+ "name": "AIIndicatorState",
2958
+ "module": "./ai-indicator"
3006
2959
  }
3007
2960
  },
3008
2961
  {
3009
2962
  "kind": "js",
3010
- "name": "*",
2963
+ "name": "foundationAiIndicatorTemplate",
3011
2964
  "declaration": {
3012
- "name": "*",
3013
- "package": "./validation/operator-map"
2965
+ "name": "foundationAiIndicatorTemplate",
2966
+ "module": "./ai-indicator.template"
3014
2967
  }
3015
2968
  },
3016
2969
  {
3017
2970
  "kind": "js",
3018
- "name": "*",
2971
+ "name": "foundationAiIndicatorStyles",
3019
2972
  "declaration": {
3020
- "name": "*",
3021
- "package": "./validation/schema-validator"
2973
+ "name": "foundationAiIndicatorStyles",
2974
+ "module": "./ai-indicator.styles"
3022
2975
  }
3023
2976
  }
3024
2977
  ]
3025
2978
  },
3026
2979
  {
3027
2980
  "kind": "javascript-module",
3028
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2981
+ "path": "src/actions-menu/actions-menu.styles.ts",
3029
2982
  "declarations": [
3030
2983
  {
3031
2984
  "kind": "function",
3032
- "name": "formatValidationErrors",
2985
+ "name": "actionsMenuBaseStyles",
3033
2986
  "return": {
3034
2987
  "type": {
3035
- "text": "string"
2988
+ "text": "ElementStyles"
3036
2989
  }
3037
2990
  },
3038
2991
  "parameters": [
3039
2992
  {
3040
- "name": "errors",
2993
+ "name": "context",
3041
2994
  "type": {
3042
- "text": "ValidationError[]"
2995
+ "text": "ElementDefinitionContext"
2996
+ }
2997
+ },
2998
+ {
2999
+ "name": "definition",
3000
+ "type": {
3001
+ "text": "FoundationElementDefinition"
3043
3002
  }
3044
3003
  }
3045
- ],
3046
- "description": "Formats validation errors into a user-friendly message."
3004
+ ]
3047
3005
  },
3048
3006
  {
3049
3007
  "kind": "function",
3050
- "name": "showCriteriaError",
3008
+ "name": "foundationActionsMenuStyles",
3051
3009
  "return": {
3052
3010
  "type": {
3053
- "text": "void"
3011
+ "text": "ElementStyles"
3054
3012
  }
3055
3013
  },
3056
3014
  "parameters": [
3057
3015
  {
3058
- "name": "title",
3059
- "type": {
3060
- "text": "string"
3061
- },
3062
- "description": "Notification title (e.g. \"Criteria validation error\")"
3063
- },
3064
- {
3065
- "name": "body",
3016
+ "name": "context",
3066
3017
  "type": {
3067
- "text": "string"
3068
- },
3069
- "description": "Error message to display"
3018
+ "text": "ElementDefinitionContext"
3019
+ }
3070
3020
  },
3071
3021
  {
3072
- "name": "tagName",
3022
+ "name": "definition",
3073
3023
  "type": {
3074
- "text": "string"
3075
- },
3076
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3024
+ "text": "FoundationElementDefinition"
3025
+ }
3077
3026
  }
3078
- ],
3079
- "description": "Shows a criteria error as a toast notification."
3027
+ ]
3080
3028
  }
3081
3029
  ],
3082
3030
  "exports": [
3083
3031
  {
3084
3032
  "kind": "js",
3085
- "name": "formatValidationErrors",
3033
+ "name": "actionsMenuBaseStyles",
3086
3034
  "declaration": {
3087
- "name": "formatValidationErrors",
3088
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3035
+ "name": "actionsMenuBaseStyles",
3036
+ "module": "src/actions-menu/actions-menu.styles.ts"
3089
3037
  }
3090
3038
  },
3091
3039
  {
3092
3040
  "kind": "js",
3093
- "name": "showCriteriaError",
3041
+ "name": "foundationActionsMenuStyles",
3094
3042
  "declaration": {
3095
- "name": "showCriteriaError",
3096
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3043
+ "name": "foundationActionsMenuStyles",
3044
+ "module": "src/actions-menu/actions-menu.styles.ts"
3097
3045
  }
3098
3046
  }
3099
3047
  ]
3100
3048
  },
3101
3049
  {
3102
3050
  "kind": "javascript-module",
3103
- "path": "src/ai-indicator/ai-indicator.styles.ts",
3051
+ "path": "src/actions-menu/actions-menu.template.ts",
3104
3052
  "declarations": [
3105
3053
  {
3106
3054
  "kind": "function",
3107
- "name": "foundationAiIndicatorStyles",
3108
- "return": {
3109
- "type": {
3110
- "text": "ElementStyles"
3111
- }
3112
- },
3055
+ "name": "menuTemplate",
3113
3056
  "parameters": [
3114
3057
  {
3115
- "name": "context",
3058
+ "name": "prefix",
3116
3059
  "type": {
3117
- "text": "ElementDefinitionContext"
3060
+ "text": "string"
3118
3061
  }
3119
- },
3062
+ }
3063
+ ]
3064
+ },
3065
+ {
3066
+ "kind": "function",
3067
+ "name": "singleOptionTemplate",
3068
+ "parameters": [
3120
3069
  {
3121
- "name": "definition",
3070
+ "name": "prefix",
3122
3071
  "type": {
3123
- "text": "FoundationElementDefinition"
3072
+ "text": "string"
3124
3073
  }
3125
3074
  }
3126
3075
  ]
3076
+ },
3077
+ {
3078
+ "kind": "variable",
3079
+ "name": "foundationActionsMenuTemplate",
3080
+ "type": {
3081
+ "text": "ViewTemplate<ActionsMenu>"
3082
+ },
3083
+ "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`"
3127
3084
  }
3128
3085
  ],
3129
3086
  "exports": [
3130
3087
  {
3131
3088
  "kind": "js",
3132
- "name": "foundationAiIndicatorStyles",
3089
+ "name": "menuTemplate",
3133
3090
  "declaration": {
3134
- "name": "foundationAiIndicatorStyles",
3135
- "module": "src/ai-indicator/ai-indicator.styles.ts"
3091
+ "name": "menuTemplate",
3092
+ "module": "src/actions-menu/actions-menu.template.ts"
3136
3093
  }
3137
- }
3138
- ]
3139
- },
3140
- {
3141
- "kind": "javascript-module",
3142
- "path": "src/ai-indicator/ai-indicator.template.ts",
3143
- "declarations": [
3094
+ },
3144
3095
  {
3145
- "kind": "variable",
3146
- "name": "foundationAiIndicatorTemplate",
3147
- "type": {
3148
- "text": "ViewTemplate<AiIndicator>"
3149
- },
3150
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3151
- }
3152
- ],
3153
- "exports": [
3096
+ "kind": "js",
3097
+ "name": "singleOptionTemplate",
3098
+ "declaration": {
3099
+ "name": "singleOptionTemplate",
3100
+ "module": "src/actions-menu/actions-menu.template.ts"
3101
+ }
3102
+ },
3154
3103
  {
3155
3104
  "kind": "js",
3156
- "name": "foundationAiIndicatorTemplate",
3105
+ "name": "foundationActionsMenuTemplate",
3157
3106
  "declaration": {
3158
- "name": "foundationAiIndicatorTemplate",
3159
- "module": "src/ai-indicator/ai-indicator.template.ts"
3107
+ "name": "foundationActionsMenuTemplate",
3108
+ "module": "src/actions-menu/actions-menu.template.ts"
3160
3109
  }
3161
3110
  }
3162
3111
  ]
3163
3112
  },
3164
3113
  {
3165
3114
  "kind": "javascript-module",
3166
- "path": "src/ai-indicator/ai-indicator.ts",
3115
+ "path": "src/actions-menu/actions-menu.ts",
3167
3116
  "declarations": [
3168
3117
  {
3169
3118
  "kind": "class",
3170
3119
  "description": "",
3171
- "name": "AiIndicator",
3120
+ "name": "ActionsMenu",
3172
3121
  "members": [
3173
3122
  {
3174
3123
  "kind": "field",
3175
- "name": "providerRegistry",
3124
+ "name": "actions",
3176
3125
  "type": {
3177
- "text": "AIProviderRegistry"
3126
+ "text": "ActionMenuItem[]"
3178
3127
  }
3179
3128
  },
3180
3129
  {
3181
3130
  "kind": "field",
3182
- "name": "aiProvider",
3131
+ "name": "isVertical",
3183
3132
  "type": {
3184
- "text": "AIProvider | undefined"
3133
+ "text": "boolean"
3185
3134
  },
3186
- "privacy": "private",
3187
- "description": "The indicator reflects status for the registry's default provider only —\nper-agent provider overrides live with the assistant component, not this\ntop-level chrome.",
3188
- "readonly": true
3135
+ "default": "false"
3189
3136
  },
3190
3137
  {
3191
3138
  "kind": "field",
3192
- "name": "status",
3139
+ "name": "addDefaultActions",
3193
3140
  "type": {
3194
- "text": "AIStatus | null"
3141
+ "text": "boolean"
3195
3142
  },
3196
- "default": "null"
3143
+ "default": "true"
3144
+ },
3145
+ {
3146
+ "kind": "field",
3147
+ "name": "autoCloseOnAction",
3148
+ "type": {
3149
+ "text": "boolean"
3150
+ },
3151
+ "default": "true"
3152
+ },
3153
+ {
3154
+ "kind": "field",
3155
+ "name": "classNames",
3156
+ "type": {
3157
+ "text": "string"
3158
+ }
3159
+ },
3160
+ {
3161
+ "kind": "field",
3162
+ "name": "definition",
3163
+ "type": {
3164
+ "text": "any"
3165
+ }
3166
+ },
3167
+ {
3168
+ "kind": "field",
3169
+ "name": "name",
3170
+ "type": {
3171
+ "text": "string"
3172
+ },
3173
+ "default": "'Actions'"
3197
3174
  },
3198
3175
  {
3199
3176
  "kind": "field",
@@ -3205,15 +3182,14 @@
3205
3182
  },
3206
3183
  {
3207
3184
  "kind": "field",
3208
- "name": "state",
3185
+ "name": "buttonAppearance",
3209
3186
  "type": {
3210
- "text": "AIIndicatorState"
3211
- },
3212
- "default": "'none'"
3187
+ "text": "string"
3188
+ }
3213
3189
  },
3214
3190
  {
3215
3191
  "kind": "field",
3216
- "name": "isInstalling",
3192
+ "name": "hideDisabled",
3217
3193
  "type": {
3218
3194
  "text": "boolean"
3219
3195
  },
@@ -3221,133 +3197,114 @@
3221
3197
  },
3222
3198
  {
3223
3199
  "kind": "field",
3224
- "name": "pollTimer",
3200
+ "name": "hideMenuSingleOption",
3225
3201
  "type": {
3226
- "text": "ReturnType<typeof setInterval> | null"
3202
+ "text": "boolean"
3227
3203
  },
3228
- "privacy": "private",
3229
- "default": "null"
3230
- },
3231
- {
3232
- "kind": "field",
3233
- "name": "clickOutside",
3234
- "privacy": "private"
3204
+ "default": "false"
3235
3205
  },
3236
3206
  {
3237
3207
  "kind": "field",
3238
- "name": "chromeStatusLabel",
3208
+ "name": "singleOption",
3239
3209
  "type": {
3240
- "text": "string | null"
3241
- },
3242
- "readonly": true
3210
+ "text": "ActionMenuItem"
3211
+ }
3243
3212
  },
3244
3213
  {
3245
3214
  "kind": "field",
3246
- "name": "canInstall",
3215
+ "name": "actionsMenu",
3247
3216
  "type": {
3248
- "text": "boolean"
3249
- },
3250
- "readonly": true
3217
+ "text": "HTMLElement"
3218
+ }
3251
3219
  },
3252
3220
  {
3253
3221
  "kind": "field",
3254
- "name": "isDownloading",
3222
+ "name": "actionsOpener",
3255
3223
  "type": {
3256
- "text": "boolean"
3257
- },
3258
- "readonly": true
3224
+ "text": "HTMLElement"
3225
+ }
3259
3226
  },
3260
3227
  {
3261
3228
  "kind": "method",
3262
- "name": "openChanged",
3263
- "return": {
3264
- "type": {
3265
- "text": "void"
3266
- }
3267
- }
3229
+ "name": "updateMenuPosition",
3230
+ "privacy": "private"
3268
3231
  },
3269
3232
  {
3270
3233
  "kind": "method",
3271
- "name": "handleClickOutside",
3272
- "privacy": "private",
3234
+ "name": "definitionChanged",
3235
+ "privacy": "protected",
3273
3236
  "parameters": [
3274
3237
  {
3275
- "name": "event",
3238
+ "name": "oldValue",
3276
3239
  "type": {
3277
- "text": "MouseEvent"
3240
+ "text": "any"
3241
+ }
3242
+ },
3243
+ {
3244
+ "name": "newValue",
3245
+ "type": {
3246
+ "text": "any"
3278
3247
  }
3279
3248
  }
3280
3249
  ]
3281
3250
  },
3282
3251
  {
3283
3252
  "kind": "method",
3284
- "name": "toggleDropdown"
3253
+ "name": "openChanged",
3254
+ "privacy": "protected"
3285
3255
  },
3286
3256
  {
3287
3257
  "kind": "method",
3288
- "name": "refreshStatus",
3289
- "return": {
3290
- "type": {
3291
- "text": "Promise<void>"
3292
- }
3293
- }
3258
+ "name": "toggleActionsMenuVisibility"
3294
3259
  },
3295
3260
  {
3296
3261
  "kind": "method",
3297
- "name": "deriveState",
3298
- "privacy": "private",
3299
- "return": {
3300
- "type": {
3301
- "text": "AIIndicatorState"
3302
- }
3303
- },
3262
+ "name": "onActionMenuItemClick",
3304
3263
  "parameters": [
3305
3264
  {
3306
- "name": "s",
3265
+ "name": "callback",
3307
3266
  "type": {
3308
- "text": "AIStatus | null"
3267
+ "text": "(rowData) => void | any"
3309
3268
  }
3310
3269
  }
3311
3270
  ]
3312
3271
  },
3313
3272
  {
3314
- "kind": "method",
3315
- "name": "maybeStartPolling",
3316
- "privacy": "private",
3317
- "return": {
3318
- "type": {
3319
- "text": "void"
3320
- }
3321
- }
3273
+ "kind": "field",
3274
+ "name": "allActions",
3275
+ "type": {
3276
+ "text": "ActionMenuItem[]"
3277
+ },
3278
+ "readonly": true
3322
3279
  },
3323
3280
  {
3324
- "kind": "method",
3325
- "name": "startPolling",
3326
- "privacy": "private",
3327
- "return": {
3328
- "type": {
3329
- "text": "void"
3330
- }
3331
- }
3281
+ "kind": "field",
3282
+ "name": "rowData",
3283
+ "readonly": true
3332
3284
  },
3333
3285
  {
3334
3286
  "kind": "method",
3335
- "name": "stopPolling",
3336
- "privacy": "private",
3337
- "return": {
3338
- "type": {
3339
- "text": "void"
3287
+ "name": "getLabel",
3288
+ "parameters": [
3289
+ {
3290
+ "name": "name",
3291
+ "type": {
3292
+ "text": "string | ((rowData: any) => string)"
3293
+ }
3340
3294
  }
3341
- }
3295
+ ]
3342
3296
  },
3343
3297
  {
3344
3298
  "kind": "method",
3345
- "name": "onInstall",
3346
- "return": {
3347
- "type": {
3348
- "text": "Promise<void>"
3299
+ "name": "getTemplate",
3300
+ "parameters": [
3301
+ {
3302
+ "name": "prefix",
3303
+ "type": {
3304
+ "text": "string"
3305
+ }
3349
3306
  }
3350
- }
3307
+ ]
3351
3308
  },
3352
3309
  {
3353
3310
  "kind": "field",
@@ -3461,88 +3418,131 @@
3461
3418
  }
3462
3419
  }
3463
3420
  ],
3421
+ "attributes": [
3422
+ {
3423
+ "name": "is-vertical",
3424
+ "type": {
3425
+ "text": "boolean"
3426
+ },
3427
+ "default": "false",
3428
+ "fieldName": "isVertical"
3429
+ },
3430
+ {
3431
+ "name": "add-default-actions",
3432
+ "type": {
3433
+ "text": "boolean"
3434
+ },
3435
+ "default": "true",
3436
+ "fieldName": "addDefaultActions"
3437
+ },
3438
+ {
3439
+ "name": "auto-close-on-action",
3440
+ "type": {
3441
+ "text": "boolean"
3442
+ },
3443
+ "default": "true",
3444
+ "fieldName": "autoCloseOnAction"
3445
+ },
3446
+ {
3447
+ "name": "name",
3448
+ "type": {
3449
+ "text": "string"
3450
+ },
3451
+ "default": "'Actions'",
3452
+ "fieldName": "name"
3453
+ },
3454
+ {
3455
+ "name": "open",
3456
+ "type": {
3457
+ "text": "boolean"
3458
+ },
3459
+ "default": "false",
3460
+ "fieldName": "open"
3461
+ },
3462
+ {
3463
+ "name": "buttonAppearance",
3464
+ "type": {
3465
+ "text": "string"
3466
+ },
3467
+ "fieldName": "buttonAppearance"
3468
+ },
3469
+ {
3470
+ "name": "hide-disabled",
3471
+ "type": {
3472
+ "text": "boolean"
3473
+ },
3474
+ "default": "false",
3475
+ "fieldName": "hideDisabled"
3476
+ },
3477
+ {
3478
+ "name": "hide-menu-single-option",
3479
+ "type": {
3480
+ "text": "boolean"
3481
+ },
3482
+ "default": "false",
3483
+ "fieldName": "hideMenuSingleOption"
3484
+ }
3485
+ ],
3464
3486
  "superclass": {
3465
3487
  "name": "FoundationElement",
3466
3488
  "package": "@microsoft/fast-foundation"
3467
3489
  },
3468
- "tagName": "%%prefix%%-ai-indicator",
3490
+ "tagName": "%%prefix%%-actions-menu",
3469
3491
  "customElement": true
3470
3492
  },
3471
3493
  {
3472
3494
  "kind": "variable",
3473
- "name": "foundationAiIndicator"
3495
+ "name": "foundationActionsMenu",
3496
+ "description": "The Foundation Actions Menu",
3497
+ "privacy": "public"
3474
3498
  }
3475
3499
  ],
3476
3500
  "exports": [
3477
3501
  {
3478
3502
  "kind": "js",
3479
- "name": "AiIndicator",
3503
+ "name": "ActionsMenu",
3480
3504
  "declaration": {
3481
- "name": "AiIndicator",
3482
- "module": "src/ai-indicator/ai-indicator.ts"
3505
+ "name": "ActionsMenu",
3506
+ "module": "src/actions-menu/actions-menu.ts"
3483
3507
  }
3484
3508
  },
3485
3509
  {
3486
3510
  "kind": "js",
3487
- "name": "foundationAiIndicator",
3511
+ "name": "foundationActionsMenu",
3488
3512
  "declaration": {
3489
- "name": "foundationAiIndicator",
3490
- "module": "src/ai-indicator/ai-indicator.ts"
3513
+ "name": "foundationActionsMenu",
3514
+ "module": "src/actions-menu/actions-menu.ts"
3491
3515
  }
3492
3516
  }
3493
3517
  ]
3494
3518
  },
3495
3519
  {
3496
3520
  "kind": "javascript-module",
3497
- "path": "src/ai-indicator/index.ts",
3521
+ "path": "src/actions-menu/index.ts",
3498
3522
  "declarations": [],
3499
3523
  "exports": [
3500
3524
  {
3501
3525
  "kind": "js",
3502
- "name": "AiIndicator",
3503
- "declaration": {
3504
- "name": "AiIndicator",
3505
- "module": "./ai-indicator"
3506
- }
3507
- },
3508
- {
3509
- "kind": "js",
3510
- "name": "foundationAiIndicator",
3511
- "declaration": {
3512
- "name": "foundationAiIndicator",
3513
- "module": "./ai-indicator"
3514
- }
3515
- },
3516
- {
3517
- "kind": "js",
3518
- "name": "type",
3519
- "declaration": {
3520
- "name": "type",
3521
- "module": "./ai-indicator"
3522
- }
3523
- },
3524
- {
3525
- "kind": "js",
3526
- "name": "AIIndicatorState",
3526
+ "name": "*",
3527
3527
  "declaration": {
3528
- "name": "AIIndicatorState",
3529
- "module": "./ai-indicator"
3528
+ "name": "*",
3529
+ "package": "./actions-menu.styles"
3530
3530
  }
3531
3531
  },
3532
3532
  {
3533
3533
  "kind": "js",
3534
- "name": "foundationAiIndicatorTemplate",
3534
+ "name": "*",
3535
3535
  "declaration": {
3536
- "name": "foundationAiIndicatorTemplate",
3537
- "module": "./ai-indicator.template"
3536
+ "name": "*",
3537
+ "package": "./actions-menu.template"
3538
3538
  }
3539
3539
  },
3540
3540
  {
3541
3541
  "kind": "js",
3542
- "name": "foundationAiIndicatorStyles",
3542
+ "name": "*",
3543
3543
  "declaration": {
3544
- "name": "foundationAiIndicatorStyles",
3545
- "module": "./ai-indicator.styles"
3544
+ "name": "*",
3545
+ "package": "./actions-menu"
3546
3546
  }
3547
3547
  }
3548
3548
  ]