@genesislcap/foundation-ui 14.474.1 → 14.474.2-alpha-9a473cd.0

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