@genesislcap/foundation-ui 15.6.1 → 15.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1424,11 +1424,42 @@
1424
1424
  },
1425
1425
  {
1426
1426
  "kind": "javascript-module",
1427
- "path": "src/accordion/accordion.styles.ts",
1427
+ "path": "src/_config/index.ts",
1428
+ "declarations": [],
1429
+ "exports": [
1430
+ {
1431
+ "kind": "js",
1432
+ "name": "*",
1433
+ "declaration": {
1434
+ "name": "*",
1435
+ "package": "./styles"
1436
+ }
1437
+ },
1438
+ {
1439
+ "kind": "js",
1440
+ "name": "*",
1441
+ "declaration": {
1442
+ "name": "*",
1443
+ "package": "./tokens"
1444
+ }
1445
+ },
1446
+ {
1447
+ "kind": "js",
1448
+ "name": "*",
1449
+ "declaration": {
1450
+ "name": "*",
1451
+ "package": "./values"
1452
+ }
1453
+ }
1454
+ ]
1455
+ },
1456
+ {
1457
+ "kind": "javascript-module",
1458
+ "path": "src/accordion-item/accordion-item.styles.ts",
1428
1459
  "declarations": [
1429
1460
  {
1430
1461
  "kind": "function",
1431
- "name": "foundationAccordionStyles",
1462
+ "name": "foundationAccordionItemStyles",
1432
1463
  "return": {
1433
1464
  "type": {
1434
1465
  "text": "ElementStyles"
@@ -1453,24 +1484,24 @@
1453
1484
  "exports": [
1454
1485
  {
1455
1486
  "kind": "js",
1456
- "name": "foundationAccordionStyles",
1487
+ "name": "foundationAccordionItemStyles",
1457
1488
  "declaration": {
1458
- "name": "foundationAccordionStyles",
1459
- "module": "src/accordion/accordion.styles.ts"
1489
+ "name": "foundationAccordionItemStyles",
1490
+ "module": "src/accordion-item/accordion-item.styles.ts"
1460
1491
  }
1461
1492
  }
1462
1493
  ]
1463
1494
  },
1464
1495
  {
1465
1496
  "kind": "javascript-module",
1466
- "path": "src/accordion/accordion.template.ts",
1497
+ "path": "src/accordion-item/accordion-item.template.ts",
1467
1498
  "declarations": [
1468
1499
  {
1469
1500
  "kind": "function",
1470
- "name": "foundationAccordionTemplate",
1501
+ "name": "foundationAccordionItemTemplate",
1471
1502
  "return": {
1472
1503
  "type": {
1473
- "text": "ViewTemplate<Accordion>"
1504
+ "text": "ViewTemplate<AccordionItem>"
1474
1505
  }
1475
1506
  },
1476
1507
  "parameters": [
@@ -1492,365 +1523,244 @@
1492
1523
  "exports": [
1493
1524
  {
1494
1525
  "kind": "js",
1495
- "name": "foundationAccordionTemplate",
1526
+ "name": "foundationAccordionItemTemplate",
1496
1527
  "declaration": {
1497
- "name": "foundationAccordionTemplate",
1498
- "module": "src/accordion/accordion.template.ts"
1528
+ "name": "foundationAccordionItemTemplate",
1529
+ "module": "src/accordion-item/accordion-item.template.ts"
1499
1530
  }
1500
1531
  }
1501
1532
  ]
1502
1533
  },
1503
1534
  {
1504
1535
  "kind": "javascript-module",
1505
- "path": "src/accordion/accordion.ts",
1536
+ "path": "src/accordion-item/accordion-item.ts",
1506
1537
  "declarations": [
1507
1538
  {
1508
1539
  "kind": "class",
1509
1540
  "description": "",
1510
- "name": "Accordion",
1541
+ "name": "AccordionItem",
1511
1542
  "superclass": {
1512
- "name": "FASTAccordion",
1513
- "package": "@microsoft/fast-foundation"
1543
+ "name": "FASTAccordionItem",
1544
+ "package": "@microsoft/fast-components"
1514
1545
  },
1515
- "tagName": "%%prefix%%-accordion",
1546
+ "tagName": "%%prefix%%-accordion-item",
1516
1547
  "customElement": true,
1517
1548
  "attributes": [
1518
1549
  {
1519
- "name": "expand-mode",
1550
+ "name": "heading-level",
1520
1551
  "type": {
1521
- "text": "AccordionExpandMode"
1552
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1522
1553
  },
1523
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1524
- "fieldName": "expandmode",
1554
+ "default": "2",
1555
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1556
+ "fieldName": "headinglevel",
1525
1557
  "inheritedFrom": {
1526
- "name": "Accordion",
1527
- "module": "src/accordion/accordion.ts"
1558
+ "name": "AccordionItem",
1559
+ "module": "src/accordion-item/accordion-item.ts"
1560
+ }
1561
+ },
1562
+ {
1563
+ "type": {
1564
+ "text": "boolean"
1565
+ },
1566
+ "default": "false",
1567
+ "description": "Expands or collapses the item.",
1568
+ "fieldName": "expanded",
1569
+ "inheritedFrom": {
1570
+ "name": "AccordionItem",
1571
+ "module": "src/accordion-item/accordion-item.ts"
1572
+ }
1573
+ },
1574
+ {
1575
+ "name": "id",
1576
+ "type": {
1577
+ "text": "string"
1578
+ },
1579
+ "description": "The item ID",
1580
+ "fieldName": "id",
1581
+ "inheritedFrom": {
1582
+ "name": "AccordionItem",
1583
+ "module": "src/accordion-item/accordion-item.ts"
1528
1584
  }
1529
1585
  }
1530
1586
  ],
1531
1587
  "members": [
1532
1588
  {
1533
1589
  "kind": "field",
1534
- "name": "expandmode",
1590
+ "name": "headinglevel",
1535
1591
  "type": {
1536
- "text": "AccordionExpandMode"
1592
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1537
1593
  },
1538
1594
  "privacy": "public",
1539
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1595
+ "default": "2",
1596
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1540
1597
  "inheritedFrom": {
1541
- "name": "Accordion",
1542
- "module": "src/accordion/accordion.ts"
1598
+ "name": "AccordionItem",
1599
+ "module": "src/accordion-item/accordion-item.ts"
1543
1600
  }
1544
1601
  },
1545
1602
  {
1546
1603
  "kind": "field",
1547
- "name": "activeid",
1604
+ "name": "expanded",
1548
1605
  "type": {
1549
- "text": "string | null"
1606
+ "text": "boolean"
1550
1607
  },
1551
- "privacy": "private",
1608
+ "privacy": "public",
1609
+ "default": "false",
1610
+ "description": "Expands or collapses the item.",
1552
1611
  "inheritedFrom": {
1553
- "name": "Accordion",
1554
- "module": "src/accordion/accordion.ts"
1612
+ "name": "AccordionItem",
1613
+ "module": "src/accordion-item/accordion-item.ts"
1555
1614
  }
1556
1615
  },
1557
1616
  {
1558
1617
  "kind": "field",
1559
- "name": "activeItemIndex",
1618
+ "name": "id",
1560
1619
  "type": {
1561
- "text": "number"
1620
+ "text": "string"
1562
1621
  },
1563
- "privacy": "private",
1564
- "default": "0",
1622
+ "privacy": "public",
1623
+ "description": "The item ID",
1565
1624
  "inheritedFrom": {
1566
- "name": "Accordion",
1567
- "module": "src/accordion/accordion.ts"
1625
+ "name": "AccordionItem",
1626
+ "module": "src/accordion-item/accordion-item.ts"
1568
1627
  }
1569
1628
  },
1570
1629
  {
1571
1630
  "kind": "field",
1572
- "name": "accordionIds",
1573
- "type": {
1574
- "text": "Array<string | null>"
1575
- },
1631
+ "name": "change",
1576
1632
  "privacy": "private",
1577
1633
  "inheritedFrom": {
1578
- "name": "Accordion",
1579
- "module": "src/accordion/accordion.ts"
1634
+ "name": "AccordionItem",
1635
+ "module": "src/accordion-item/accordion-item.ts"
1580
1636
  }
1581
1637
  },
1582
1638
  {
1583
1639
  "kind": "field",
1584
- "name": "change",
1640
+ "name": "_presentation",
1641
+ "type": {
1642
+ "text": "ComponentPresentation | null | undefined"
1643
+ },
1585
1644
  "privacy": "private",
1645
+ "default": "void 0",
1586
1646
  "inheritedFrom": {
1587
- "name": "Accordion",
1588
- "module": "src/accordion/accordion.ts"
1647
+ "name": "FoundationElement",
1648
+ "module": "src/foundation-element/foundation-element.ts"
1589
1649
  }
1590
1650
  },
1591
1651
  {
1592
- "kind": "method",
1593
- "name": "findExpandedItem",
1594
- "privacy": "private",
1595
- "return": {
1596
- "type": {
1597
- "text": "AccordionItem | null"
1598
- }
1652
+ "kind": "field",
1653
+ "name": "$presentation",
1654
+ "type": {
1655
+ "text": "ComponentPresentation | null"
1599
1656
  },
1657
+ "privacy": "public",
1658
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1600
1659
  "inheritedFrom": {
1601
- "name": "Accordion",
1602
- "module": "src/accordion/accordion.ts"
1660
+ "name": "FoundationElement",
1661
+ "module": "src/foundation-element/foundation-element.ts"
1603
1662
  }
1604
1663
  },
1605
1664
  {
1606
1665
  "kind": "field",
1607
- "name": "setItems",
1608
- "privacy": "private",
1666
+ "name": "template",
1667
+ "type": {
1668
+ "text": "ElementViewTemplate | void | null"
1669
+ },
1670
+ "privacy": "public",
1671
+ "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.",
1609
1672
  "inheritedFrom": {
1610
- "name": "Accordion",
1611
- "module": "src/accordion/accordion.ts"
1673
+ "name": "FoundationElement",
1674
+ "module": "src/foundation-element/foundation-element.ts"
1612
1675
  }
1613
1676
  },
1614
1677
  {
1615
1678
  "kind": "method",
1616
- "name": "resetItems",
1617
- "privacy": "private",
1679
+ "name": "templateChanged",
1680
+ "privacy": "protected",
1618
1681
  "return": {
1619
1682
  "type": {
1620
1683
  "text": "void"
1621
1684
  }
1622
1685
  },
1623
1686
  "inheritedFrom": {
1624
- "name": "Accordion",
1625
- "module": "src/accordion/accordion.ts"
1626
- }
1627
- },
1628
- {
1629
- "kind": "field",
1630
- "name": "removeItemListeners",
1631
- "privacy": "private",
1632
- "inheritedFrom": {
1633
- "name": "Accordion",
1634
- "module": "src/accordion/accordion.ts"
1687
+ "name": "FoundationElement",
1688
+ "module": "src/foundation-element/foundation-element.ts"
1635
1689
  }
1636
1690
  },
1637
1691
  {
1638
1692
  "kind": "field",
1639
- "name": "activeItemChange",
1640
- "privacy": "private",
1693
+ "name": "styles",
1694
+ "type": {
1695
+ "text": "ElementStyles | void | null"
1696
+ },
1697
+ "privacy": "public",
1698
+ "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.",
1641
1699
  "inheritedFrom": {
1642
- "name": "Accordion",
1643
- "module": "src/accordion/accordion.ts"
1700
+ "name": "FoundationElement",
1701
+ "module": "src/foundation-element/foundation-element.ts"
1644
1702
  }
1645
1703
  },
1646
1704
  {
1647
1705
  "kind": "method",
1648
- "name": "getItemIds",
1649
- "privacy": "private",
1706
+ "name": "stylesChanged",
1707
+ "privacy": "protected",
1650
1708
  "return": {
1651
1709
  "type": {
1652
- "text": "Array<string | null>"
1710
+ "text": "void"
1653
1711
  }
1654
1712
  },
1655
1713
  "inheritedFrom": {
1656
- "name": "Accordion",
1657
- "module": "src/accordion/accordion.ts"
1714
+ "name": "FoundationElement",
1715
+ "module": "src/foundation-element/foundation-element.ts"
1658
1716
  }
1659
1717
  },
1660
1718
  {
1661
1719
  "kind": "method",
1662
- "name": "isSingleExpandMode",
1663
- "privacy": "private",
1720
+ "name": "compose",
1721
+ "privacy": "public",
1722
+ "static": true,
1664
1723
  "return": {
1665
1724
  "type": {
1666
- "text": "boolean"
1725
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1667
1726
  }
1668
1727
  },
1728
+ "parameters": [
1729
+ {
1730
+ "name": "this",
1731
+ "type": {
1732
+ "text": "K"
1733
+ }
1734
+ },
1735
+ {
1736
+ "name": "elementDefinition",
1737
+ "type": {
1738
+ "text": "T"
1739
+ },
1740
+ "description": "The definition of the element to create the registry\nfunction for."
1741
+ }
1742
+ ],
1743
+ "description": "Defines an element registry function with a set of element definition defaults.",
1669
1744
  "inheritedFrom": {
1670
- "name": "Accordion",
1671
- "module": "src/accordion/accordion.ts"
1745
+ "name": "FoundationElement",
1746
+ "module": "src/foundation-element/foundation-element.ts"
1672
1747
  }
1673
- },
1748
+ }
1749
+ ],
1750
+ "events": [
1674
1751
  {
1675
- "kind": "field",
1676
- "name": "handleItemKeyDown",
1677
- "privacy": "private",
1678
- "inheritedFrom": {
1679
- "name": "Accordion",
1680
- "module": "src/accordion/accordion.ts"
1681
- }
1682
- },
1683
- {
1684
- "kind": "field",
1685
- "name": "handleItemFocus",
1686
- "privacy": "private",
1687
- "inheritedFrom": {
1688
- "name": "Accordion",
1689
- "module": "src/accordion/accordion.ts"
1690
- }
1691
- },
1692
- {
1693
- "kind": "method",
1694
- "name": "adjust",
1695
- "privacy": "private",
1696
- "return": {
1697
- "type": {
1698
- "text": "void"
1699
- }
1700
- },
1701
- "parameters": [
1702
- {
1703
- "name": "adjustment",
1704
- "type": {
1705
- "text": "number"
1706
- }
1707
- }
1708
- ],
1709
- "inheritedFrom": {
1710
- "name": "Accordion",
1711
- "module": "src/accordion/accordion.ts"
1712
- }
1713
- },
1714
- {
1715
- "kind": "method",
1716
- "name": "focusItem",
1717
- "privacy": "private",
1718
- "return": {
1719
- "type": {
1720
- "text": "void"
1721
- }
1722
- },
1723
- "inheritedFrom": {
1724
- "name": "Accordion",
1725
- "module": "src/accordion/accordion.ts"
1726
- }
1727
- },
1728
- {
1729
- "kind": "field",
1730
- "name": "_presentation",
1731
- "type": {
1732
- "text": "ComponentPresentation | null | undefined"
1733
- },
1734
- "privacy": "private",
1735
- "default": "void 0",
1736
- "inheritedFrom": {
1737
- "name": "FoundationElement",
1738
- "module": "src/foundation-element/foundation-element.ts"
1739
- }
1740
- },
1741
- {
1742
- "kind": "field",
1743
- "name": "$presentation",
1744
- "type": {
1745
- "text": "ComponentPresentation | null"
1746
- },
1747
- "privacy": "public",
1748
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1749
- "inheritedFrom": {
1750
- "name": "FoundationElement",
1751
- "module": "src/foundation-element/foundation-element.ts"
1752
- }
1753
- },
1754
- {
1755
- "kind": "field",
1756
- "name": "template",
1757
- "type": {
1758
- "text": "ElementViewTemplate | void | null"
1759
- },
1760
- "privacy": "public",
1761
- "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.",
1762
- "inheritedFrom": {
1763
- "name": "FoundationElement",
1764
- "module": "src/foundation-element/foundation-element.ts"
1765
- }
1766
- },
1767
- {
1768
- "kind": "method",
1769
- "name": "templateChanged",
1770
- "privacy": "protected",
1771
- "return": {
1772
- "type": {
1773
- "text": "void"
1774
- }
1775
- },
1776
- "inheritedFrom": {
1777
- "name": "FoundationElement",
1778
- "module": "src/foundation-element/foundation-element.ts"
1779
- }
1780
- },
1781
- {
1782
- "kind": "field",
1783
- "name": "styles",
1784
- "type": {
1785
- "text": "ElementStyles | void | null"
1786
- },
1787
- "privacy": "public",
1788
- "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.",
1789
- "inheritedFrom": {
1790
- "name": "FoundationElement",
1791
- "module": "src/foundation-element/foundation-element.ts"
1792
- }
1793
- },
1794
- {
1795
- "kind": "method",
1796
- "name": "stylesChanged",
1797
- "privacy": "protected",
1798
- "return": {
1799
- "type": {
1800
- "text": "void"
1801
- }
1802
- },
1803
- "inheritedFrom": {
1804
- "name": "FoundationElement",
1805
- "module": "src/foundation-element/foundation-element.ts"
1806
- }
1807
- },
1808
- {
1809
- "kind": "method",
1810
- "name": "compose",
1811
- "privacy": "public",
1812
- "static": true,
1813
- "return": {
1814
- "type": {
1815
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1816
- }
1817
- },
1818
- "parameters": [
1819
- {
1820
- "name": "this",
1821
- "type": {
1822
- "text": "K"
1823
- }
1824
- },
1825
- {
1826
- "name": "elementDefinition",
1827
- "type": {
1828
- "text": "T"
1829
- },
1830
- "description": "The definition of the element to create the registry\nfunction for."
1831
- }
1832
- ],
1833
- "description": "Defines an element registry function with a set of element definition defaults.",
1834
- "inheritedFrom": {
1835
- "name": "FoundationElement",
1836
- "module": "src/foundation-element/foundation-element.ts"
1837
- }
1838
- }
1839
- ],
1840
- "events": [
1841
- {
1842
- "description": "Fires a custom 'change' event when the active item changes",
1752
+ "description": "Fires a custom 'change' event when the button is invoked",
1843
1753
  "name": "change",
1844
1754
  "inheritedFrom": {
1845
- "name": "Accordion",
1846
- "module": "src/accordion/accordion.ts"
1755
+ "name": "AccordionItem",
1756
+ "module": "src/accordion-item/accordion-item.ts"
1847
1757
  }
1848
1758
  }
1849
1759
  ]
1850
1760
  },
1851
1761
  {
1852
1762
  "kind": "variable",
1853
- "name": "foundationAccordionShadowOptions",
1763
+ "name": "foundationAccordionItemShadowOptions",
1854
1764
  "type": {
1855
1765
  "text": "ShadowRootInit"
1856
1766
  },
@@ -1858,88 +1768,57 @@
1858
1768
  },
1859
1769
  {
1860
1770
  "kind": "variable",
1861
- "name": "defaultAccordionConfig",
1771
+ "name": "defaultAccordionItemConfig",
1862
1772
  "type": {
1863
1773
  "text": "object"
1864
1774
  },
1865
- "default": "{}"
1775
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1866
1776
  },
1867
1777
  {
1868
1778
  "kind": "variable",
1869
- "name": "foundationAccordion",
1870
- "description": "The Foundation Accordion",
1779
+ "name": "foundationAccordionItem",
1780
+ "description": "The Foundation Accordion Item",
1871
1781
  "privacy": "public"
1872
1782
  }
1873
1783
  ],
1874
1784
  "exports": [
1875
1785
  {
1876
1786
  "kind": "js",
1877
- "name": "Accordion",
1878
- "declaration": {
1879
- "name": "Accordion",
1880
- "module": "src/accordion/accordion.ts"
1881
- }
1882
- },
1883
- {
1884
- "kind": "js",
1885
- "name": "foundationAccordionShadowOptions",
1886
- "declaration": {
1887
- "name": "foundationAccordionShadowOptions",
1888
- "module": "src/accordion/accordion.ts"
1889
- }
1890
- },
1891
- {
1892
- "kind": "js",
1893
- "name": "defaultAccordionConfig",
1787
+ "name": "AccordionItem",
1894
1788
  "declaration": {
1895
- "name": "defaultAccordionConfig",
1896
- "module": "src/accordion/accordion.ts"
1789
+ "name": "AccordionItem",
1790
+ "module": "src/accordion-item/accordion-item.ts"
1897
1791
  }
1898
1792
  },
1899
1793
  {
1900
1794
  "kind": "js",
1901
- "name": "foundationAccordion",
1902
- "declaration": {
1903
- "name": "foundationAccordion",
1904
- "module": "src/accordion/accordion.ts"
1905
- }
1906
- }
1907
- ]
1908
- },
1909
- {
1910
- "kind": "javascript-module",
1911
- "path": "src/accordion/index.ts",
1912
- "declarations": [],
1913
- "exports": [
1914
- {
1915
- "kind": "js",
1916
- "name": "*",
1795
+ "name": "foundationAccordionItemShadowOptions",
1917
1796
  "declaration": {
1918
- "name": "*",
1919
- "package": "./accordion.template"
1797
+ "name": "foundationAccordionItemShadowOptions",
1798
+ "module": "src/accordion-item/accordion-item.ts"
1920
1799
  }
1921
1800
  },
1922
1801
  {
1923
1802
  "kind": "js",
1924
- "name": "*",
1803
+ "name": "defaultAccordionItemConfig",
1925
1804
  "declaration": {
1926
- "name": "*",
1927
- "package": "./accordion.styles"
1805
+ "name": "defaultAccordionItemConfig",
1806
+ "module": "src/accordion-item/accordion-item.ts"
1928
1807
  }
1929
1808
  },
1930
1809
  {
1931
1810
  "kind": "js",
1932
- "name": "*",
1811
+ "name": "foundationAccordionItem",
1933
1812
  "declaration": {
1934
- "name": "*",
1935
- "package": "./accordion"
1813
+ "name": "foundationAccordionItem",
1814
+ "module": "src/accordion-item/accordion-item.ts"
1936
1815
  }
1937
1816
  }
1938
1817
  ]
1939
1818
  },
1940
1819
  {
1941
1820
  "kind": "javascript-module",
1942
- "path": "src/_config/index.ts",
1821
+ "path": "src/accordion-item/index.ts",
1943
1822
  "declarations": [],
1944
1823
  "exports": [
1945
1824
  {
@@ -1947,7 +1826,7 @@
1947
1826
  "name": "*",
1948
1827
  "declaration": {
1949
1828
  "name": "*",
1950
- "package": "./styles"
1829
+ "package": "./accordion-item.template"
1951
1830
  }
1952
1831
  },
1953
1832
  {
@@ -1955,7 +1834,7 @@
1955
1834
  "name": "*",
1956
1835
  "declaration": {
1957
1836
  "name": "*",
1958
- "package": "./tokens"
1837
+ "package": "./accordion-item.styles"
1959
1838
  }
1960
1839
  },
1961
1840
  {
@@ -1963,18 +1842,18 @@
1963
1842
  "name": "*",
1964
1843
  "declaration": {
1965
1844
  "name": "*",
1966
- "package": "./values"
1845
+ "package": "./accordion-item"
1967
1846
  }
1968
1847
  }
1969
1848
  ]
1970
1849
  },
1971
1850
  {
1972
1851
  "kind": "javascript-module",
1973
- "path": "src/accordion-item/accordion-item.styles.ts",
1852
+ "path": "src/actions-menu/actions-menu.styles.ts",
1974
1853
  "declarations": [
1975
1854
  {
1976
1855
  "kind": "function",
1977
- "name": "foundationAccordionItemStyles",
1856
+ "name": "actionsMenuBaseStyles",
1978
1857
  "return": {
1979
1858
  "type": {
1980
1859
  "text": "ElementStyles"
@@ -1994,29 +1873,13 @@
1994
1873
  }
1995
1874
  }
1996
1875
  ]
1997
- }
1998
- ],
1999
- "exports": [
2000
- {
2001
- "kind": "js",
2002
- "name": "foundationAccordionItemStyles",
2003
- "declaration": {
2004
- "name": "foundationAccordionItemStyles",
2005
- "module": "src/accordion-item/accordion-item.styles.ts"
2006
- }
2007
- }
2008
- ]
2009
- },
2010
- {
2011
- "kind": "javascript-module",
2012
- "path": "src/accordion-item/accordion-item.template.ts",
2013
- "declarations": [
1876
+ },
2014
1877
  {
2015
1878
  "kind": "function",
2016
- "name": "foundationAccordionItemTemplate",
1879
+ "name": "foundationActionsMenuStyles",
2017
1880
  "return": {
2018
1881
  "type": {
2019
- "text": "ViewTemplate<AccordionItem>"
1882
+ "text": "ElementStyles"
2020
1883
  }
2021
1884
  },
2022
1885
  "parameters": [
@@ -2038,196 +1901,360 @@
2038
1901
  "exports": [
2039
1902
  {
2040
1903
  "kind": "js",
2041
- "name": "foundationAccordionItemTemplate",
1904
+ "name": "actionsMenuBaseStyles",
2042
1905
  "declaration": {
2043
- "name": "foundationAccordionItemTemplate",
2044
- "module": "src/accordion-item/accordion-item.template.ts"
1906
+ "name": "actionsMenuBaseStyles",
1907
+ "module": "src/actions-menu/actions-menu.styles.ts"
1908
+ }
1909
+ },
1910
+ {
1911
+ "kind": "js",
1912
+ "name": "foundationActionsMenuStyles",
1913
+ "declaration": {
1914
+ "name": "foundationActionsMenuStyles",
1915
+ "module": "src/actions-menu/actions-menu.styles.ts"
2045
1916
  }
2046
1917
  }
2047
1918
  ]
2048
1919
  },
2049
1920
  {
2050
1921
  "kind": "javascript-module",
2051
- "path": "src/accordion-item/accordion-item.ts",
1922
+ "path": "src/actions-menu/actions-menu.template.ts",
1923
+ "declarations": [
1924
+ {
1925
+ "kind": "function",
1926
+ "name": "menuTemplate",
1927
+ "parameters": [
1928
+ {
1929
+ "name": "prefix",
1930
+ "type": {
1931
+ "text": "string"
1932
+ }
1933
+ }
1934
+ ]
1935
+ },
1936
+ {
1937
+ "kind": "function",
1938
+ "name": "singleOptionTemplate",
1939
+ "parameters": [
1940
+ {
1941
+ "name": "prefix",
1942
+ "type": {
1943
+ "text": "string"
1944
+ }
1945
+ }
1946
+ ]
1947
+ },
1948
+ {
1949
+ "kind": "variable",
1950
+ "name": "foundationActionsMenuTemplate",
1951
+ "type": {
1952
+ "text": "ViewTemplate<ActionsMenu>"
1953
+ },
1954
+ "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`"
1955
+ }
1956
+ ],
1957
+ "exports": [
1958
+ {
1959
+ "kind": "js",
1960
+ "name": "menuTemplate",
1961
+ "declaration": {
1962
+ "name": "menuTemplate",
1963
+ "module": "src/actions-menu/actions-menu.template.ts"
1964
+ }
1965
+ },
1966
+ {
1967
+ "kind": "js",
1968
+ "name": "singleOptionTemplate",
1969
+ "declaration": {
1970
+ "name": "singleOptionTemplate",
1971
+ "module": "src/actions-menu/actions-menu.template.ts"
1972
+ }
1973
+ },
1974
+ {
1975
+ "kind": "js",
1976
+ "name": "foundationActionsMenuTemplate",
1977
+ "declaration": {
1978
+ "name": "foundationActionsMenuTemplate",
1979
+ "module": "src/actions-menu/actions-menu.template.ts"
1980
+ }
1981
+ }
1982
+ ]
1983
+ },
1984
+ {
1985
+ "kind": "javascript-module",
1986
+ "path": "src/actions-menu/actions-menu.ts",
2052
1987
  "declarations": [
2053
1988
  {
2054
1989
  "kind": "class",
2055
1990
  "description": "",
2056
- "name": "AccordionItem",
2057
- "superclass": {
2058
- "name": "FASTAccordionItem",
2059
- "package": "@microsoft/fast-components"
2060
- },
2061
- "tagName": "%%prefix%%-accordion-item",
2062
- "customElement": true,
2063
- "attributes": [
1991
+ "name": "ActionsMenu",
1992
+ "members": [
2064
1993
  {
2065
- "name": "heading-level",
1994
+ "kind": "field",
1995
+ "name": "actions",
2066
1996
  "type": {
2067
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2068
- },
2069
- "default": "2",
2070
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2071
- "fieldName": "headinglevel",
2072
- "inheritedFrom": {
2073
- "name": "AccordionItem",
2074
- "module": "src/accordion-item/accordion-item.ts"
1997
+ "text": "ActionMenuItem[]"
2075
1998
  }
2076
1999
  },
2077
2000
  {
2001
+ "kind": "field",
2002
+ "name": "isVertical",
2078
2003
  "type": {
2079
2004
  "text": "boolean"
2080
2005
  },
2081
- "default": "false",
2082
- "description": "Expands or collapses the item.",
2083
- "fieldName": "expanded",
2084
- "inheritedFrom": {
2085
- "name": "AccordionItem",
2086
- "module": "src/accordion-item/accordion-item.ts"
2087
- }
2006
+ "default": "false"
2088
2007
  },
2089
- {
2090
- "name": "id",
2091
- "type": {
2092
- "text": "string"
2093
- },
2094
- "description": "The item ID",
2095
- "fieldName": "id",
2096
- "inheritedFrom": {
2097
- "name": "AccordionItem",
2098
- "module": "src/accordion-item/accordion-item.ts"
2099
- }
2100
- }
2101
- ],
2102
- "members": [
2103
2008
  {
2104
2009
  "kind": "field",
2105
- "name": "headinglevel",
2010
+ "name": "addDefaultActions",
2106
2011
  "type": {
2107
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2012
+ "text": "boolean"
2108
2013
  },
2109
- "privacy": "public",
2110
- "default": "2",
2111
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2112
- "inheritedFrom": {
2113
- "name": "AccordionItem",
2114
- "module": "src/accordion-item/accordion-item.ts"
2115
- }
2014
+ "default": "true"
2116
2015
  },
2117
2016
  {
2118
2017
  "kind": "field",
2119
- "name": "expanded",
2018
+ "name": "autoCloseOnAction",
2120
2019
  "type": {
2121
2020
  "text": "boolean"
2122
2021
  },
2123
- "privacy": "public",
2124
- "default": "false",
2125
- "description": "Expands or collapses the item.",
2126
- "inheritedFrom": {
2127
- "name": "AccordionItem",
2128
- "module": "src/accordion-item/accordion-item.ts"
2129
- }
2022
+ "default": "true"
2130
2023
  },
2131
2024
  {
2132
2025
  "kind": "field",
2133
- "name": "id",
2026
+ "name": "classNames",
2134
2027
  "type": {
2135
2028
  "text": "string"
2136
- },
2137
- "privacy": "public",
2138
- "description": "The item ID",
2139
- "inheritedFrom": {
2140
- "name": "AccordionItem",
2141
- "module": "src/accordion-item/accordion-item.ts"
2142
2029
  }
2143
2030
  },
2144
2031
  {
2145
2032
  "kind": "field",
2146
- "name": "change",
2147
- "privacy": "private",
2148
- "inheritedFrom": {
2149
- "name": "AccordionItem",
2150
- "module": "src/accordion-item/accordion-item.ts"
2033
+ "name": "definition",
2034
+ "type": {
2035
+ "text": "any"
2151
2036
  }
2152
2037
  },
2153
2038
  {
2154
2039
  "kind": "field",
2155
- "name": "_presentation",
2040
+ "name": "name",
2156
2041
  "type": {
2157
- "text": "ComponentPresentation | null | undefined"
2042
+ "text": "string"
2158
2043
  },
2159
- "privacy": "private",
2160
- "default": "void 0",
2161
- "inheritedFrom": {
2162
- "name": "FoundationElement",
2163
- "module": "src/foundation-element/foundation-element.ts"
2164
- }
2044
+ "default": "'Actions'"
2165
2045
  },
2166
2046
  {
2167
2047
  "kind": "field",
2168
- "name": "$presentation",
2048
+ "name": "open",
2169
2049
  "type": {
2170
- "text": "ComponentPresentation | null"
2050
+ "text": "boolean"
2171
2051
  },
2172
- "privacy": "public",
2173
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2174
- "inheritedFrom": {
2175
- "name": "FoundationElement",
2176
- "module": "src/foundation-element/foundation-element.ts"
2177
- }
2052
+ "default": "false"
2178
2053
  },
2179
2054
  {
2180
2055
  "kind": "field",
2181
- "name": "template",
2056
+ "name": "buttonAppearance",
2182
2057
  "type": {
2183
- "text": "ElementViewTemplate | void | null"
2184
- },
2185
- "privacy": "public",
2186
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2187
- "inheritedFrom": {
2188
- "name": "FoundationElement",
2189
- "module": "src/foundation-element/foundation-element.ts"
2058
+ "text": "string"
2190
2059
  }
2191
2060
  },
2192
2061
  {
2193
- "kind": "method",
2194
- "name": "templateChanged",
2195
- "privacy": "protected",
2196
- "return": {
2197
- "type": {
2198
- "text": "void"
2199
- }
2062
+ "kind": "field",
2063
+ "name": "hideDisabled",
2064
+ "type": {
2065
+ "text": "boolean"
2200
2066
  },
2201
- "inheritedFrom": {
2202
- "name": "FoundationElement",
2203
- "module": "src/foundation-element/foundation-element.ts"
2204
- }
2067
+ "default": "false"
2205
2068
  },
2206
2069
  {
2207
2070
  "kind": "field",
2208
- "name": "styles",
2071
+ "name": "hideMenuSingleOption",
2209
2072
  "type": {
2210
- "text": "ElementStyles | void | null"
2073
+ "text": "boolean"
2211
2074
  },
2212
- "privacy": "public",
2213
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2214
- "inheritedFrom": {
2215
- "name": "FoundationElement",
2216
- "module": "src/foundation-element/foundation-element.ts"
2075
+ "default": "false"
2076
+ },
2077
+ {
2078
+ "kind": "field",
2079
+ "name": "singleOption",
2080
+ "type": {
2081
+ "text": "ActionMenuItem"
2217
2082
  }
2218
2083
  },
2219
2084
  {
2220
- "kind": "method",
2221
- "name": "stylesChanged",
2222
- "privacy": "protected",
2223
- "return": {
2224
- "type": {
2225
- "text": "void"
2226
- }
2227
- },
2228
- "inheritedFrom": {
2229
- "name": "FoundationElement",
2230
- "module": "src/foundation-element/foundation-element.ts"
2085
+ "kind": "field",
2086
+ "name": "actionsMenu",
2087
+ "type": {
2088
+ "text": "HTMLElement"
2089
+ }
2090
+ },
2091
+ {
2092
+ "kind": "field",
2093
+ "name": "actionsOpener",
2094
+ "type": {
2095
+ "text": "HTMLElement"
2096
+ }
2097
+ },
2098
+ {
2099
+ "kind": "method",
2100
+ "name": "updateMenuPosition",
2101
+ "privacy": "private"
2102
+ },
2103
+ {
2104
+ "kind": "method",
2105
+ "name": "definitionChanged",
2106
+ "privacy": "protected",
2107
+ "parameters": [
2108
+ {
2109
+ "name": "oldValue",
2110
+ "type": {
2111
+ "text": "any"
2112
+ }
2113
+ },
2114
+ {
2115
+ "name": "newValue",
2116
+ "type": {
2117
+ "text": "any"
2118
+ }
2119
+ }
2120
+ ]
2121
+ },
2122
+ {
2123
+ "kind": "method",
2124
+ "name": "openChanged",
2125
+ "privacy": "protected"
2126
+ },
2127
+ {
2128
+ "kind": "method",
2129
+ "name": "toggleActionsMenuVisibility"
2130
+ },
2131
+ {
2132
+ "kind": "method",
2133
+ "name": "onActionMenuItemClick",
2134
+ "parameters": [
2135
+ {
2136
+ "name": "callback",
2137
+ "type": {
2138
+ "text": "(rowData) => void | any"
2139
+ }
2140
+ }
2141
+ ]
2142
+ },
2143
+ {
2144
+ "kind": "field",
2145
+ "name": "allActions",
2146
+ "type": {
2147
+ "text": "ActionMenuItem[]"
2148
+ },
2149
+ "readonly": true
2150
+ },
2151
+ {
2152
+ "kind": "field",
2153
+ "name": "rowData",
2154
+ "readonly": true
2155
+ },
2156
+ {
2157
+ "kind": "method",
2158
+ "name": "getLabel",
2159
+ "parameters": [
2160
+ {
2161
+ "name": "name",
2162
+ "type": {
2163
+ "text": "string | ((rowData: any) => string)"
2164
+ }
2165
+ }
2166
+ ]
2167
+ },
2168
+ {
2169
+ "kind": "method",
2170
+ "name": "getTemplate",
2171
+ "parameters": [
2172
+ {
2173
+ "name": "prefix",
2174
+ "type": {
2175
+ "text": "string"
2176
+ }
2177
+ }
2178
+ ]
2179
+ },
2180
+ {
2181
+ "kind": "field",
2182
+ "name": "_presentation",
2183
+ "type": {
2184
+ "text": "ComponentPresentation | null | undefined"
2185
+ },
2186
+ "privacy": "private",
2187
+ "default": "void 0",
2188
+ "inheritedFrom": {
2189
+ "name": "FoundationElement",
2190
+ "module": "src/foundation-element/foundation-element.ts"
2191
+ }
2192
+ },
2193
+ {
2194
+ "kind": "field",
2195
+ "name": "$presentation",
2196
+ "type": {
2197
+ "text": "ComponentPresentation | null"
2198
+ },
2199
+ "privacy": "public",
2200
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2201
+ "inheritedFrom": {
2202
+ "name": "FoundationElement",
2203
+ "module": "src/foundation-element/foundation-element.ts"
2204
+ }
2205
+ },
2206
+ {
2207
+ "kind": "field",
2208
+ "name": "template",
2209
+ "type": {
2210
+ "text": "ElementViewTemplate | void | null"
2211
+ },
2212
+ "privacy": "public",
2213
+ "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.",
2214
+ "inheritedFrom": {
2215
+ "name": "FoundationElement",
2216
+ "module": "src/foundation-element/foundation-element.ts"
2217
+ }
2218
+ },
2219
+ {
2220
+ "kind": "method",
2221
+ "name": "templateChanged",
2222
+ "privacy": "protected",
2223
+ "return": {
2224
+ "type": {
2225
+ "text": "void"
2226
+ }
2227
+ },
2228
+ "inheritedFrom": {
2229
+ "name": "FoundationElement",
2230
+ "module": "src/foundation-element/foundation-element.ts"
2231
+ }
2232
+ },
2233
+ {
2234
+ "kind": "field",
2235
+ "name": "styles",
2236
+ "type": {
2237
+ "text": "ElementStyles | void | null"
2238
+ },
2239
+ "privacy": "public",
2240
+ "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.",
2241
+ "inheritedFrom": {
2242
+ "name": "FoundationElement",
2243
+ "module": "src/foundation-element/foundation-element.ts"
2244
+ }
2245
+ },
2246
+ {
2247
+ "kind": "method",
2248
+ "name": "stylesChanged",
2249
+ "privacy": "protected",
2250
+ "return": {
2251
+ "type": {
2252
+ "text": "void"
2253
+ }
2254
+ },
2255
+ "inheritedFrom": {
2256
+ "name": "FoundationElement",
2257
+ "module": "src/foundation-element/foundation-element.ts"
2231
2258
  }
2232
2259
  },
2233
2260
  {
@@ -2262,78 +2289,107 @@
2262
2289
  }
2263
2290
  }
2264
2291
  ],
2265
- "events": [
2292
+ "attributes": [
2266
2293
  {
2267
- "description": "Fires a custom 'change' event when the button is invoked",
2268
- "name": "change",
2269
- "inheritedFrom": {
2270
- "name": "AccordionItem",
2271
- "module": "src/accordion-item/accordion-item.ts"
2272
- }
2294
+ "name": "is-vertical",
2295
+ "type": {
2296
+ "text": "boolean"
2297
+ },
2298
+ "default": "false",
2299
+ "fieldName": "isVertical"
2300
+ },
2301
+ {
2302
+ "name": "add-default-actions",
2303
+ "type": {
2304
+ "text": "boolean"
2305
+ },
2306
+ "default": "true",
2307
+ "fieldName": "addDefaultActions"
2308
+ },
2309
+ {
2310
+ "name": "auto-close-on-action",
2311
+ "type": {
2312
+ "text": "boolean"
2313
+ },
2314
+ "default": "true",
2315
+ "fieldName": "autoCloseOnAction"
2316
+ },
2317
+ {
2318
+ "name": "name",
2319
+ "type": {
2320
+ "text": "string"
2321
+ },
2322
+ "default": "'Actions'",
2323
+ "fieldName": "name"
2324
+ },
2325
+ {
2326
+ "name": "open",
2327
+ "type": {
2328
+ "text": "boolean"
2329
+ },
2330
+ "default": "false",
2331
+ "fieldName": "open"
2332
+ },
2333
+ {
2334
+ "name": "buttonAppearance",
2335
+ "type": {
2336
+ "text": "string"
2337
+ },
2338
+ "fieldName": "buttonAppearance"
2339
+ },
2340
+ {
2341
+ "name": "hide-disabled",
2342
+ "type": {
2343
+ "text": "boolean"
2344
+ },
2345
+ "default": "false",
2346
+ "fieldName": "hideDisabled"
2347
+ },
2348
+ {
2349
+ "name": "hide-menu-single-option",
2350
+ "type": {
2351
+ "text": "boolean"
2352
+ },
2353
+ "default": "false",
2354
+ "fieldName": "hideMenuSingleOption"
2273
2355
  }
2274
- ]
2275
- },
2276
- {
2277
- "kind": "variable",
2278
- "name": "foundationAccordionItemShadowOptions",
2279
- "type": {
2280
- "text": "ShadowRootInit"
2281
- },
2282
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2283
- },
2284
- {
2285
- "kind": "variable",
2286
- "name": "defaultAccordionItemConfig",
2287
- "type": {
2288
- "text": "object"
2356
+ ],
2357
+ "superclass": {
2358
+ "name": "FoundationElement",
2359
+ "package": "@microsoft/fast-foundation"
2289
2360
  },
2290
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2361
+ "tagName": "%%prefix%%-actions-menu",
2362
+ "customElement": true
2291
2363
  },
2292
2364
  {
2293
2365
  "kind": "variable",
2294
- "name": "foundationAccordionItem",
2295
- "description": "The Foundation Accordion Item",
2366
+ "name": "foundationActionsMenu",
2367
+ "description": "The Foundation Actions Menu",
2296
2368
  "privacy": "public"
2297
2369
  }
2298
2370
  ],
2299
2371
  "exports": [
2300
2372
  {
2301
2373
  "kind": "js",
2302
- "name": "AccordionItem",
2303
- "declaration": {
2304
- "name": "AccordionItem",
2305
- "module": "src/accordion-item/accordion-item.ts"
2306
- }
2307
- },
2308
- {
2309
- "kind": "js",
2310
- "name": "foundationAccordionItemShadowOptions",
2311
- "declaration": {
2312
- "name": "foundationAccordionItemShadowOptions",
2313
- "module": "src/accordion-item/accordion-item.ts"
2314
- }
2315
- },
2316
- {
2317
- "kind": "js",
2318
- "name": "defaultAccordionItemConfig",
2374
+ "name": "ActionsMenu",
2319
2375
  "declaration": {
2320
- "name": "defaultAccordionItemConfig",
2321
- "module": "src/accordion-item/accordion-item.ts"
2376
+ "name": "ActionsMenu",
2377
+ "module": "src/actions-menu/actions-menu.ts"
2322
2378
  }
2323
2379
  },
2324
2380
  {
2325
2381
  "kind": "js",
2326
- "name": "foundationAccordionItem",
2382
+ "name": "foundationActionsMenu",
2327
2383
  "declaration": {
2328
- "name": "foundationAccordionItem",
2329
- "module": "src/accordion-item/accordion-item.ts"
2384
+ "name": "foundationActionsMenu",
2385
+ "module": "src/actions-menu/actions-menu.ts"
2330
2386
  }
2331
2387
  }
2332
2388
  ]
2333
2389
  },
2334
2390
  {
2335
2391
  "kind": "javascript-module",
2336
- "path": "src/accordion-item/index.ts",
2392
+ "path": "src/actions-menu/index.ts",
2337
2393
  "declarations": [],
2338
2394
  "exports": [
2339
2395
  {
@@ -2341,7 +2397,7 @@
2341
2397
  "name": "*",
2342
2398
  "declaration": {
2343
2399
  "name": "*",
2344
- "package": "./accordion-item.template"
2400
+ "package": "./actions-menu.styles"
2345
2401
  }
2346
2402
  },
2347
2403
  {
@@ -2349,7 +2405,7 @@
2349
2405
  "name": "*",
2350
2406
  "declaration": {
2351
2407
  "name": "*",
2352
- "package": "./accordion-item.styles"
2408
+ "package": "./actions-menu.template"
2353
2409
  }
2354
2410
  },
2355
2411
  {
@@ -2357,215 +2413,282 @@
2357
2413
  "name": "*",
2358
2414
  "declaration": {
2359
2415
  "name": "*",
2360
- "package": "./accordion-item"
2416
+ "package": "./actions-menu"
2361
2417
  }
2362
2418
  }
2363
2419
  ]
2364
2420
  },
2365
2421
  {
2366
2422
  "kind": "javascript-module",
2367
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2423
+ "path": "src/accordion/accordion.styles.ts",
2368
2424
  "declarations": [
2369
2425
  {
2370
- "kind": "variable",
2371
- "name": "foundationAiCriteriaSearchStyles",
2372
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2426
+ "kind": "function",
2427
+ "name": "foundationAccordionStyles",
2428
+ "return": {
2429
+ "type": {
2430
+ "text": "ElementStyles"
2431
+ }
2432
+ },
2433
+ "parameters": [
2434
+ {
2435
+ "name": "context",
2436
+ "type": {
2437
+ "text": "ElementDefinitionContext"
2438
+ }
2439
+ },
2440
+ {
2441
+ "name": "definition",
2442
+ "type": {
2443
+ "text": "FoundationElementDefinition"
2444
+ }
2445
+ }
2446
+ ]
2373
2447
  }
2374
2448
  ],
2375
2449
  "exports": [
2376
2450
  {
2377
2451
  "kind": "js",
2378
- "name": "foundationAiCriteriaSearchStyles",
2452
+ "name": "foundationAccordionStyles",
2379
2453
  "declaration": {
2380
- "name": "foundationAiCriteriaSearchStyles",
2381
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2454
+ "name": "foundationAccordionStyles",
2455
+ "module": "src/accordion/accordion.styles.ts"
2382
2456
  }
2383
2457
  }
2384
2458
  ]
2385
2459
  },
2386
2460
  {
2387
2461
  "kind": "javascript-module",
2388
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2462
+ "path": "src/accordion/accordion.template.ts",
2389
2463
  "declarations": [
2390
2464
  {
2391
- "kind": "variable",
2392
- "name": "foundationAiCriteriaSearchTemplate",
2393
- "type": {
2394
- "text": "ViewTemplate<AiCriteriaSearch>"
2465
+ "kind": "function",
2466
+ "name": "foundationAccordionTemplate",
2467
+ "return": {
2468
+ "type": {
2469
+ "text": "ViewTemplate<Accordion>"
2470
+ }
2395
2471
  },
2396
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2472
+ "parameters": [
2473
+ {
2474
+ "name": "context",
2475
+ "type": {
2476
+ "text": "ElementDefinitionContext"
2477
+ }
2478
+ },
2479
+ {
2480
+ "name": "definition",
2481
+ "type": {
2482
+ "text": "FoundationElementDefinition"
2483
+ }
2484
+ }
2485
+ ]
2397
2486
  }
2398
2487
  ],
2399
2488
  "exports": [
2400
2489
  {
2401
2490
  "kind": "js",
2402
- "name": "foundationAiCriteriaSearchTemplate",
2491
+ "name": "foundationAccordionTemplate",
2403
2492
  "declaration": {
2404
- "name": "foundationAiCriteriaSearchTemplate",
2405
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2493
+ "name": "foundationAccordionTemplate",
2494
+ "module": "src/accordion/accordion.template.ts"
2406
2495
  }
2407
2496
  }
2408
2497
  ]
2409
2498
  },
2410
2499
  {
2411
2500
  "kind": "javascript-module",
2412
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2501
+ "path": "src/accordion/accordion.ts",
2413
2502
  "declarations": [
2414
2503
  {
2415
2504
  "kind": "class",
2416
- "description": "Natural-language criteria search input with AI interpretation.",
2417
- "name": "AiCriteriaSearch",
2418
- "members": [
2419
- {
2420
- "kind": "field",
2421
- "name": "providerRegistry",
2422
- "type": {
2423
- "text": "AIProviderRegistry"
2424
- }
2425
- },
2505
+ "description": "",
2506
+ "name": "Accordion",
2507
+ "superclass": {
2508
+ "name": "FASTAccordion",
2509
+ "package": "@microsoft/fast-foundation"
2510
+ },
2511
+ "tagName": "%%prefix%%-accordion",
2512
+ "customElement": true,
2513
+ "attributes": [
2426
2514
  {
2427
- "kind": "field",
2428
- "name": "placeholder",
2515
+ "name": "expand-mode",
2429
2516
  "type": {
2430
- "text": "string"
2517
+ "text": "AccordionExpandMode"
2431
2518
  },
2432
- "default": "'Describe your search criteria in natural language...'"
2433
- },
2434
- {
2435
- "kind": "field",
2436
- "name": "disabled",
2437
- "type": {
2438
- "text": "boolean"
2519
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2520
+ "fieldName": "expandmode",
2521
+ "inheritedFrom": {
2522
+ "name": "Accordion",
2523
+ "module": "src/accordion/accordion.ts"
2439
2524
  }
2440
- },
2441
- {
2442
- "kind": "field",
2443
- "name": "inputValue",
2444
- "type": {
2445
- "text": "string"
2446
- },
2447
- "default": "''"
2448
- },
2525
+ }
2526
+ ],
2527
+ "members": [
2449
2528
  {
2450
2529
  "kind": "field",
2451
- "name": "isInterpreting",
2530
+ "name": "expandmode",
2452
2531
  "type": {
2453
- "text": "boolean"
2532
+ "text": "AccordionExpandMode"
2454
2533
  },
2455
- "default": "false"
2534
+ "privacy": "public",
2535
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2536
+ "inheritedFrom": {
2537
+ "name": "Accordion",
2538
+ "module": "src/accordion/accordion.ts"
2539
+ }
2456
2540
  },
2457
2541
  {
2458
2542
  "kind": "field",
2459
- "name": "lastValidCriteria",
2543
+ "name": "activeid",
2460
2544
  "type": {
2461
2545
  "text": "string | null"
2462
2546
  },
2463
- "default": "null"
2464
- },
2465
- {
2466
- "kind": "field",
2467
- "name": "activeGroups",
2468
- "type": {
2469
- "text": "CriteriaGroup[]"
2470
- },
2471
- "default": "[]"
2547
+ "privacy": "private",
2548
+ "inheritedFrom": {
2549
+ "name": "Accordion",
2550
+ "module": "src/accordion/accordion.ts"
2551
+ }
2472
2552
  },
2473
2553
  {
2474
2554
  "kind": "field",
2475
- "name": "showingChips",
2555
+ "name": "activeItemIndex",
2476
2556
  "type": {
2477
- "text": "boolean"
2557
+ "text": "number"
2478
2558
  },
2479
- "default": "false"
2559
+ "privacy": "private",
2560
+ "default": "0",
2561
+ "inheritedFrom": {
2562
+ "name": "Accordion",
2563
+ "module": "src/accordion/accordion.ts"
2564
+ }
2480
2565
  },
2481
2566
  {
2482
2567
  "kind": "field",
2483
- "name": "fieldMetadata",
2568
+ "name": "accordionIds",
2484
2569
  "type": {
2485
- "text": "MetadataDetail[] | string[]"
2570
+ "text": "Array<string | null>"
2486
2571
  },
2487
- "default": "[]"
2572
+ "privacy": "private",
2573
+ "inheritedFrom": {
2574
+ "name": "Accordion",
2575
+ "module": "src/accordion/accordion.ts"
2576
+ }
2488
2577
  },
2489
2578
  {
2490
2579
  "kind": "field",
2491
- "name": "isRecording",
2492
- "type": {
2493
- "text": "boolean"
2494
- },
2495
- "default": "false"
2580
+ "name": "change",
2581
+ "privacy": "private",
2582
+ "inheritedFrom": {
2583
+ "name": "Accordion",
2584
+ "module": "src/accordion/accordion.ts"
2585
+ }
2496
2586
  },
2497
2587
  {
2498
- "kind": "field",
2499
- "name": "textAreaRef",
2500
- "type": {
2501
- "text": "HTMLTextAreaElement"
2588
+ "kind": "method",
2589
+ "name": "findExpandedItem",
2590
+ "privacy": "private",
2591
+ "return": {
2592
+ "type": {
2593
+ "text": "AccordionItem | null"
2594
+ }
2502
2595
  },
2503
- "privacy": "public"
2596
+ "inheritedFrom": {
2597
+ "name": "Accordion",
2598
+ "module": "src/accordion/accordion.ts"
2599
+ }
2504
2600
  },
2505
2601
  {
2506
2602
  "kind": "field",
2507
- "name": "stopRecording",
2508
- "type": {
2509
- "text": "(() => void) | null"
2510
- },
2603
+ "name": "setItems",
2511
2604
  "privacy": "private",
2512
- "default": "null"
2605
+ "inheritedFrom": {
2606
+ "name": "Accordion",
2607
+ "module": "src/accordion/accordion.ts"
2608
+ }
2513
2609
  },
2514
2610
  {
2515
- "kind": "field",
2516
- "name": "speechApplyDebounceTimer",
2517
- "type": {
2518
- "text": "ReturnType<typeof setTimeout> | null"
2519
- },
2611
+ "kind": "method",
2612
+ "name": "resetItems",
2520
2613
  "privacy": "private",
2521
- "default": "null"
2614
+ "return": {
2615
+ "type": {
2616
+ "text": "void"
2617
+ }
2618
+ },
2619
+ "inheritedFrom": {
2620
+ "name": "Accordion",
2621
+ "module": "src/accordion/accordion.ts"
2622
+ }
2522
2623
  },
2523
2624
  {
2524
2625
  "kind": "field",
2525
- "name": "speechAvailable",
2526
- "type": {
2527
- "text": "boolean"
2528
- },
2529
- "readonly": true
2626
+ "name": "removeItemListeners",
2627
+ "privacy": "private",
2628
+ "inheritedFrom": {
2629
+ "name": "Accordion",
2630
+ "module": "src/accordion/accordion.ts"
2631
+ }
2530
2632
  },
2531
2633
  {
2532
2634
  "kind": "field",
2533
- "name": "criteriaChips",
2534
- "type": {
2535
- "text": "CriteriaChip[]"
2536
- },
2537
- "readonly": true
2635
+ "name": "activeItemChange",
2636
+ "privacy": "private",
2637
+ "inheritedFrom": {
2638
+ "name": "Accordion",
2639
+ "module": "src/accordion/accordion.ts"
2640
+ }
2538
2641
  },
2539
2642
  {
2540
2643
  "kind": "method",
2541
- "name": "getFieldLabel",
2644
+ "name": "getItemIds",
2542
2645
  "privacy": "private",
2543
2646
  "return": {
2544
2647
  "type": {
2545
- "text": "string"
2648
+ "text": "Array<string | null>"
2546
2649
  }
2547
2650
  },
2548
- "parameters": [
2549
- {
2550
- "name": "fieldName",
2551
- "type": {
2552
- "text": "string"
2553
- }
2554
- }
2555
- ]
2651
+ "inheritedFrom": {
2652
+ "name": "Accordion",
2653
+ "module": "src/accordion/accordion.ts"
2654
+ }
2556
2655
  },
2557
2656
  {
2558
2657
  "kind": "method",
2559
- "name": "toggleCriteriaView",
2658
+ "name": "isSingleExpandMode",
2659
+ "privacy": "private",
2560
2660
  "return": {
2561
2661
  "type": {
2562
- "text": "void"
2662
+ "text": "boolean"
2563
2663
  }
2664
+ },
2665
+ "inheritedFrom": {
2666
+ "name": "Accordion",
2667
+ "module": "src/accordion/accordion.ts"
2668
+ }
2669
+ },
2670
+ {
2671
+ "kind": "field",
2672
+ "name": "handleItemKeyDown",
2673
+ "privacy": "private",
2674
+ "inheritedFrom": {
2675
+ "name": "Accordion",
2676
+ "module": "src/accordion/accordion.ts"
2677
+ }
2678
+ },
2679
+ {
2680
+ "kind": "field",
2681
+ "name": "handleItemFocus",
2682
+ "privacy": "private",
2683
+ "inheritedFrom": {
2684
+ "name": "Accordion",
2685
+ "module": "src/accordion/accordion.ts"
2564
2686
  }
2565
2687
  },
2566
2688
  {
2567
2689
  "kind": "method",
2568
- "name": "removeChip",
2690
+ "name": "adjust",
2691
+ "privacy": "private",
2569
2692
  "return": {
2570
2693
  "type": {
2571
2694
  "text": "void"
@@ -2573,48 +2696,30 @@
2573
2696
  },
2574
2697
  "parameters": [
2575
2698
  {
2576
- "name": "groupIndex",
2577
- "type": {
2578
- "text": "number"
2579
- }
2580
- },
2581
- {
2582
- "name": "clauseIndex",
2699
+ "name": "adjustment",
2583
2700
  "type": {
2584
- "text": "number"
2585
- }
2586
- }
2587
- ]
2588
- },
2589
- {
2590
- "kind": "method",
2591
- "name": "clearChips",
2592
- "return": {
2593
- "type": {
2594
- "text": "void"
2595
- }
2596
- }
2597
- },
2598
- {
2599
- "kind": "method",
2600
- "name": "handleSubmit"
2601
- },
2602
- {
2603
- "kind": "method",
2604
- "name": "handleBlur"
2605
- },
2606
- {
2607
- "kind": "method",
2608
- "name": "clear"
2609
- },
2610
- {
2611
- "kind": "method",
2612
- "name": "toggleSpeechInput"
2701
+ "text": "number"
2702
+ }
2703
+ }
2704
+ ],
2705
+ "inheritedFrom": {
2706
+ "name": "Accordion",
2707
+ "module": "src/accordion/accordion.ts"
2708
+ }
2613
2709
  },
2614
2710
  {
2615
2711
  "kind": "method",
2616
- "name": "clearSpeechApplyDebounce",
2617
- "privacy": "private"
2712
+ "name": "focusItem",
2713
+ "privacy": "private",
2714
+ "return": {
2715
+ "type": {
2716
+ "text": "void"
2717
+ }
2718
+ },
2719
+ "inheritedFrom": {
2720
+ "name": "Accordion",
2721
+ "module": "src/accordion/accordion.ts"
2722
+ }
2618
2723
  },
2619
2724
  {
2620
2725
  "kind": "field",
@@ -2730,48 +2835,26 @@
2730
2835
  ],
2731
2836
  "events": [
2732
2837
  {
2733
- "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
2734
- "name": "criteria-changed"
2735
- },
2736
- {
2737
- "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
2738
- "name": "validation-errors"
2739
- }
2740
- ],
2741
- "attributes": [
2742
- {
2743
- "name": "placeholder",
2744
- "type": {
2745
- "text": "string"
2746
- },
2747
- "default": "'Describe your search criteria in natural language...'",
2748
- "fieldName": "placeholder"
2749
- },
2750
- {
2751
- "type": {
2752
- "text": "boolean"
2753
- },
2754
- "fieldName": "disabled"
2838
+ "description": "Fires a custom 'change' event when the active item changes",
2839
+ "name": "change",
2840
+ "inheritedFrom": {
2841
+ "name": "Accordion",
2842
+ "module": "src/accordion/accordion.ts"
2843
+ }
2755
2844
  }
2756
- ],
2757
- "superclass": {
2758
- "name": "FoundationElement",
2759
- "package": "@microsoft/fast-foundation"
2760
- },
2761
- "tagName": "%%prefix%%-ai-criteria-search",
2762
- "customElement": true
2845
+ ]
2763
2846
  },
2764
2847
  {
2765
2848
  "kind": "variable",
2766
- "name": "foundationAiCriteriaSearchShadowOptions",
2849
+ "name": "foundationAccordionShadowOptions",
2767
2850
  "type": {
2768
2851
  "text": "ShadowRootInit"
2769
2852
  },
2770
- "default": "undefined"
2853
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2771
2854
  },
2772
2855
  {
2773
2856
  "kind": "variable",
2774
- "name": "defaultAiCriteriaSearchConfig",
2857
+ "name": "defaultAccordionConfig",
2775
2858
  "type": {
2776
2859
  "text": "object"
2777
2860
  },
@@ -2779,103 +2862,57 @@
2779
2862
  },
2780
2863
  {
2781
2864
  "kind": "variable",
2782
- "name": "foundationAiCriteriaSearch"
2865
+ "name": "foundationAccordion",
2866
+ "description": "The Foundation Accordion",
2867
+ "privacy": "public"
2783
2868
  }
2784
2869
  ],
2785
2870
  "exports": [
2786
2871
  {
2787
2872
  "kind": "js",
2788
- "name": "AiCriteriaSearch",
2873
+ "name": "Accordion",
2789
2874
  "declaration": {
2790
- "name": "AiCriteriaSearch",
2791
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2875
+ "name": "Accordion",
2876
+ "module": "src/accordion/accordion.ts"
2792
2877
  }
2793
2878
  },
2794
2879
  {
2795
2880
  "kind": "js",
2796
- "name": "foundationAiCriteriaSearchShadowOptions",
2881
+ "name": "foundationAccordionShadowOptions",
2797
2882
  "declaration": {
2798
- "name": "foundationAiCriteriaSearchShadowOptions",
2799
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2883
+ "name": "foundationAccordionShadowOptions",
2884
+ "module": "src/accordion/accordion.ts"
2800
2885
  }
2801
2886
  },
2802
2887
  {
2803
2888
  "kind": "js",
2804
- "name": "defaultAiCriteriaSearchConfig",
2889
+ "name": "defaultAccordionConfig",
2805
2890
  "declaration": {
2806
- "name": "defaultAiCriteriaSearchConfig",
2807
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2891
+ "name": "defaultAccordionConfig",
2892
+ "module": "src/accordion/accordion.ts"
2808
2893
  }
2809
2894
  },
2810
2895
  {
2811
2896
  "kind": "js",
2812
- "name": "foundationAiCriteriaSearch",
2897
+ "name": "foundationAccordion",
2813
2898
  "declaration": {
2814
- "name": "foundationAiCriteriaSearch",
2815
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2899
+ "name": "foundationAccordion",
2900
+ "module": "src/accordion/accordion.ts"
2816
2901
  }
2817
2902
  }
2818
2903
  ]
2819
2904
  },
2820
2905
  {
2821
2906
  "kind": "javascript-module",
2822
- "path": "src/ai-criteria-search/index.ts",
2907
+ "path": "src/accordion/index.ts",
2823
2908
  "declarations": [],
2824
2909
  "exports": [
2825
- {
2826
- "kind": "js",
2827
- "name": "AiCriteriaSearch",
2828
- "declaration": {
2829
- "name": "AiCriteriaSearch",
2830
- "module": "./ai-criteria-search"
2831
- }
2832
- },
2833
- {
2834
- "kind": "js",
2835
- "name": "defaultAiCriteriaSearchConfig",
2836
- "declaration": {
2837
- "name": "defaultAiCriteriaSearchConfig",
2838
- "module": "./ai-criteria-search"
2839
- }
2840
- },
2841
- {
2842
- "kind": "js",
2843
- "name": "foundationAiCriteriaSearch",
2844
- "declaration": {
2845
- "name": "foundationAiCriteriaSearch",
2846
- "module": "./ai-criteria-search"
2847
- }
2848
- },
2849
- {
2850
- "kind": "js",
2851
- "name": "foundationAiCriteriaSearchShadowOptions",
2852
- "declaration": {
2853
- "name": "foundationAiCriteriaSearchShadowOptions",
2854
- "module": "./ai-criteria-search"
2855
- }
2856
- },
2857
- {
2858
- "kind": "js",
2859
- "name": "foundationAiCriteriaSearchStyles",
2860
- "declaration": {
2861
- "name": "foundationAiCriteriaSearchStyles",
2862
- "module": "./ai-criteria-search.styles"
2863
- }
2864
- },
2865
- {
2866
- "kind": "js",
2867
- "name": "foundationAiCriteriaSearchTemplate",
2868
- "declaration": {
2869
- "name": "foundationAiCriteriaSearchTemplate",
2870
- "module": "./ai-criteria-search.template"
2871
- }
2872
- },
2873
2910
  {
2874
2911
  "kind": "js",
2875
2912
  "name": "*",
2876
2913
  "declaration": {
2877
2914
  "name": "*",
2878
- "package": "./validation/criteria-ir"
2915
+ "package": "./accordion.template"
2879
2916
  }
2880
2917
  },
2881
2918
  {
@@ -2883,7 +2920,7 @@
2883
2920
  "name": "*",
2884
2921
  "declaration": {
2885
2922
  "name": "*",
2886
- "package": "./validation/operator-map"
2923
+ "package": "./accordion.styles"
2887
2924
  }
2888
2925
  },
2889
2926
  {
@@ -2891,157 +2928,64 @@
2891
2928
  "name": "*",
2892
2929
  "declaration": {
2893
2930
  "name": "*",
2894
- "package": "./validation/schema-validator"
2895
- }
2896
- }
2897
- ]
2898
- },
2899
- {
2900
- "kind": "javascript-module",
2901
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2902
- "declarations": [
2903
- {
2904
- "kind": "function",
2905
- "name": "formatValidationErrors",
2906
- "return": {
2907
- "type": {
2908
- "text": "string"
2909
- }
2910
- },
2911
- "parameters": [
2912
- {
2913
- "name": "errors",
2914
- "type": {
2915
- "text": "ValidationError[]"
2916
- }
2917
- }
2918
- ],
2919
- "description": "Formats validation errors into a user-friendly message."
2920
- },
2921
- {
2922
- "kind": "function",
2923
- "name": "showCriteriaError",
2924
- "return": {
2925
- "type": {
2926
- "text": "void"
2927
- }
2928
- },
2929
- "parameters": [
2930
- {
2931
- "name": "title",
2932
- "type": {
2933
- "text": "string"
2934
- },
2935
- "description": "Notification title (e.g. \"Criteria validation error\")"
2936
- },
2937
- {
2938
- "name": "body",
2939
- "type": {
2940
- "text": "string"
2941
- },
2942
- "description": "Error message to display"
2943
- },
2944
- {
2945
- "name": "tagName",
2946
- "type": {
2947
- "text": "string"
2948
- },
2949
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2950
- }
2951
- ],
2952
- "description": "Shows a criteria error as a toast notification."
2953
- }
2954
- ],
2955
- "exports": [
2956
- {
2957
- "kind": "js",
2958
- "name": "formatValidationErrors",
2959
- "declaration": {
2960
- "name": "formatValidationErrors",
2961
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2962
- }
2963
- },
2964
- {
2965
- "kind": "js",
2966
- "name": "showCriteriaError",
2967
- "declaration": {
2968
- "name": "showCriteriaError",
2969
- "module": "src/ai-criteria-search/validation-error-notification.ts"
2931
+ "package": "./accordion"
2970
2932
  }
2971
2933
  }
2972
2934
  ]
2973
2935
  },
2974
2936
  {
2975
2937
  "kind": "javascript-module",
2976
- "path": "src/ai-indicator/ai-indicator.styles.ts",
2938
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2977
2939
  "declarations": [
2978
2940
  {
2979
- "kind": "function",
2980
- "name": "foundationAiIndicatorStyles",
2981
- "return": {
2982
- "type": {
2983
- "text": "ElementStyles"
2984
- }
2985
- },
2986
- "parameters": [
2987
- {
2988
- "name": "context",
2989
- "type": {
2990
- "text": "ElementDefinitionContext"
2991
- }
2992
- },
2993
- {
2994
- "name": "definition",
2995
- "type": {
2996
- "text": "FoundationElementDefinition"
2997
- }
2998
- }
2999
- ]
2941
+ "kind": "variable",
2942
+ "name": "foundationAiCriteriaSearchStyles",
2943
+ "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`"
3000
2944
  }
3001
2945
  ],
3002
2946
  "exports": [
3003
2947
  {
3004
2948
  "kind": "js",
3005
- "name": "foundationAiIndicatorStyles",
2949
+ "name": "foundationAiCriteriaSearchStyles",
3006
2950
  "declaration": {
3007
- "name": "foundationAiIndicatorStyles",
3008
- "module": "src/ai-indicator/ai-indicator.styles.ts"
2951
+ "name": "foundationAiCriteriaSearchStyles",
2952
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
3009
2953
  }
3010
2954
  }
3011
2955
  ]
3012
2956
  },
3013
2957
  {
3014
2958
  "kind": "javascript-module",
3015
- "path": "src/ai-indicator/ai-indicator.template.ts",
2959
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
3016
2960
  "declarations": [
3017
2961
  {
3018
2962
  "kind": "variable",
3019
- "name": "foundationAiIndicatorTemplate",
2963
+ "name": "foundationAiCriteriaSearchTemplate",
3020
2964
  "type": {
3021
- "text": "ViewTemplate<AiIndicator>"
2965
+ "text": "ViewTemplate<AiCriteriaSearch>"
3022
2966
  },
3023
- "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
2967
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
3024
2968
  }
3025
2969
  ],
3026
2970
  "exports": [
3027
2971
  {
3028
2972
  "kind": "js",
3029
- "name": "foundationAiIndicatorTemplate",
2973
+ "name": "foundationAiCriteriaSearchTemplate",
3030
2974
  "declaration": {
3031
- "name": "foundationAiIndicatorTemplate",
3032
- "module": "src/ai-indicator/ai-indicator.template.ts"
2975
+ "name": "foundationAiCriteriaSearchTemplate",
2976
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
3033
2977
  }
3034
2978
  }
3035
2979
  ]
3036
2980
  },
3037
2981
  {
3038
2982
  "kind": "javascript-module",
3039
- "path": "src/ai-indicator/ai-indicator.ts",
2983
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
3040
2984
  "declarations": [
3041
2985
  {
3042
2986
  "kind": "class",
3043
- "description": "",
3044
- "name": "AiIndicator",
2987
+ "description": "Natural-language criteria search input with AI interpretation.",
2988
+ "name": "AiCriteriaSearch",
3045
2989
  "members": [
3046
2990
  {
3047
2991
  "kind": "field",
@@ -3052,25 +2996,54 @@
3052
2996
  },
3053
2997
  {
3054
2998
  "kind": "field",
3055
- "name": "aiProvider",
2999
+ "name": "placeholder",
3056
3000
  "type": {
3057
- "text": "AIProvider | undefined"
3001
+ "text": "string"
3058
3002
  },
3059
- "privacy": "private",
3060
- "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.",
3061
- "readonly": true
3003
+ "default": "'Describe your search criteria in natural language...'"
3062
3004
  },
3063
3005
  {
3064
3006
  "kind": "field",
3065
- "name": "status",
3007
+ "name": "disabled",
3066
3008
  "type": {
3067
- "text": "AIStatus | null"
3009
+ "text": "boolean"
3010
+ }
3011
+ },
3012
+ {
3013
+ "kind": "field",
3014
+ "name": "inputValue",
3015
+ "type": {
3016
+ "text": "string"
3017
+ },
3018
+ "default": "''"
3019
+ },
3020
+ {
3021
+ "kind": "field",
3022
+ "name": "isInterpreting",
3023
+ "type": {
3024
+ "text": "boolean"
3025
+ },
3026
+ "default": "false"
3027
+ },
3028
+ {
3029
+ "kind": "field",
3030
+ "name": "lastValidCriteria",
3031
+ "type": {
3032
+ "text": "string | null"
3068
3033
  },
3069
3034
  "default": "null"
3070
3035
  },
3071
3036
  {
3072
3037
  "kind": "field",
3073
- "name": "open",
3038
+ "name": "activeGroups",
3039
+ "type": {
3040
+ "text": "CriteriaGroup[]"
3041
+ },
3042
+ "default": "[]"
3043
+ },
3044
+ {
3045
+ "kind": "field",
3046
+ "name": "showingChips",
3074
3047
  "type": {
3075
3048
  "text": "boolean"
3076
3049
  },
@@ -3078,15 +3051,15 @@
3078
3051
  },
3079
3052
  {
3080
3053
  "kind": "field",
3081
- "name": "state",
3054
+ "name": "fieldMetadata",
3082
3055
  "type": {
3083
- "text": "AIIndicatorState"
3056
+ "text": "MetadataDetail[] | string[]"
3084
3057
  },
3085
- "default": "'none'"
3058
+ "default": "[]"
3086
3059
  },
3087
3060
  {
3088
3061
  "kind": "field",
3089
- "name": "isInstalling",
3062
+ "name": "isRecording",
3090
3063
  "type": {
3091
3064
  "text": "boolean"
3092
3065
  },
@@ -3094,29 +3067,33 @@
3094
3067
  },
3095
3068
  {
3096
3069
  "kind": "field",
3097
- "name": "pollTimer",
3070
+ "name": "textAreaRef",
3098
3071
  "type": {
3099
- "text": "ReturnType<typeof setInterval> | null"
3072
+ "text": "HTMLTextAreaElement"
3100
3073
  },
3101
- "privacy": "private",
3102
- "default": "null"
3074
+ "privacy": "public"
3103
3075
  },
3104
3076
  {
3105
3077
  "kind": "field",
3106
- "name": "clickOutside",
3107
- "privacy": "private"
3078
+ "name": "stopRecording",
3079
+ "type": {
3080
+ "text": "(() => void) | null"
3081
+ },
3082
+ "privacy": "private",
3083
+ "default": "null"
3108
3084
  },
3109
3085
  {
3110
3086
  "kind": "field",
3111
- "name": "chromeStatusLabel",
3087
+ "name": "speechApplyDebounceTimer",
3112
3088
  "type": {
3113
- "text": "string | null"
3089
+ "text": "ReturnType<typeof setTimeout> | null"
3114
3090
  },
3115
- "readonly": true
3091
+ "privacy": "private",
3092
+ "default": "null"
3116
3093
  },
3117
3094
  {
3118
3095
  "kind": "field",
3119
- "name": "canInstall",
3096
+ "name": "speechAvailable",
3120
3097
  "type": {
3121
3098
  "text": "boolean"
3122
3099
  },
@@ -3124,69 +3101,65 @@
3124
3101
  },
3125
3102
  {
3126
3103
  "kind": "field",
3127
- "name": "isDownloading",
3104
+ "name": "criteriaChips",
3128
3105
  "type": {
3129
- "text": "boolean"
3106
+ "text": "CriteriaChip[]"
3130
3107
  },
3131
3108
  "readonly": true
3132
3109
  },
3133
3110
  {
3134
3111
  "kind": "method",
3135
- "name": "openChanged",
3112
+ "name": "getFieldLabel",
3113
+ "privacy": "private",
3136
3114
  "return": {
3137
3115
  "type": {
3138
- "text": "void"
3116
+ "text": "string"
3139
3117
  }
3140
- }
3141
- },
3142
- {
3143
- "kind": "method",
3144
- "name": "handleClickOutside",
3145
- "privacy": "private",
3118
+ },
3146
3119
  "parameters": [
3147
3120
  {
3148
- "name": "event",
3121
+ "name": "fieldName",
3149
3122
  "type": {
3150
- "text": "MouseEvent"
3123
+ "text": "string"
3151
3124
  }
3152
3125
  }
3153
3126
  ]
3154
3127
  },
3155
3128
  {
3156
3129
  "kind": "method",
3157
- "name": "toggleDropdown"
3158
- },
3159
- {
3160
- "kind": "method",
3161
- "name": "refreshStatus",
3130
+ "name": "toggleCriteriaView",
3162
3131
  "return": {
3163
3132
  "type": {
3164
- "text": "Promise<void>"
3133
+ "text": "void"
3165
3134
  }
3166
3135
  }
3167
3136
  },
3168
3137
  {
3169
3138
  "kind": "method",
3170
- "name": "deriveState",
3171
- "privacy": "private",
3139
+ "name": "removeChip",
3172
3140
  "return": {
3173
3141
  "type": {
3174
- "text": "AIIndicatorState"
3142
+ "text": "void"
3175
3143
  }
3176
3144
  },
3177
3145
  "parameters": [
3178
3146
  {
3179
- "name": "s",
3147
+ "name": "groupIndex",
3180
3148
  "type": {
3181
- "text": "AIStatus | null"
3149
+ "text": "number"
3150
+ }
3151
+ },
3152
+ {
3153
+ "name": "clauseIndex",
3154
+ "type": {
3155
+ "text": "number"
3182
3156
  }
3183
3157
  }
3184
3158
  ]
3185
3159
  },
3186
3160
  {
3187
3161
  "kind": "method",
3188
- "name": "maybeStartPolling",
3189
- "privacy": "private",
3162
+ "name": "clearChips",
3190
3163
  "return": {
3191
3164
  "type": {
3192
3165
  "text": "void"
@@ -3195,32 +3168,24 @@
3195
3168
  },
3196
3169
  {
3197
3170
  "kind": "method",
3198
- "name": "startPolling",
3199
- "privacy": "private",
3200
- "return": {
3201
- "type": {
3202
- "text": "void"
3203
- }
3204
- }
3171
+ "name": "handleSubmit"
3205
3172
  },
3206
3173
  {
3207
3174
  "kind": "method",
3208
- "name": "stopPolling",
3209
- "privacy": "private",
3210
- "return": {
3211
- "type": {
3212
- "text": "void"
3213
- }
3214
- }
3175
+ "name": "handleBlur"
3215
3176
  },
3216
3177
  {
3217
3178
  "kind": "method",
3218
- "name": "onInstall",
3219
- "return": {
3220
- "type": {
3221
- "text": "Promise<void>"
3222
- }
3223
- }
3179
+ "name": "clear"
3180
+ },
3181
+ {
3182
+ "kind": "method",
3183
+ "name": "toggleSpeechInput"
3184
+ },
3185
+ {
3186
+ "kind": "method",
3187
+ "name": "clearSpeechApplyDebounce",
3188
+ "privacy": "private"
3224
3189
  },
3225
3190
  {
3226
3191
  "kind": "field",
@@ -3334,287 +3299,345 @@
3334
3299
  }
3335
3300
  }
3336
3301
  ],
3302
+ "events": [
3303
+ {
3304
+ "description": "Fired when interpreted criteria is applied or cleared. detail: `string | null`",
3305
+ "name": "criteria-changed"
3306
+ },
3307
+ {
3308
+ "description": "Fired when interpreted criteria contains invalid clauses. detail: `ValidationError[]`",
3309
+ "name": "validation-errors"
3310
+ }
3311
+ ],
3312
+ "attributes": [
3313
+ {
3314
+ "name": "placeholder",
3315
+ "type": {
3316
+ "text": "string"
3317
+ },
3318
+ "default": "'Describe your search criteria in natural language...'",
3319
+ "fieldName": "placeholder"
3320
+ },
3321
+ {
3322
+ "type": {
3323
+ "text": "boolean"
3324
+ },
3325
+ "fieldName": "disabled"
3326
+ }
3327
+ ],
3337
3328
  "superclass": {
3338
3329
  "name": "FoundationElement",
3339
3330
  "package": "@microsoft/fast-foundation"
3340
3331
  },
3341
- "tagName": "%%prefix%%-ai-indicator",
3332
+ "tagName": "%%prefix%%-ai-criteria-search",
3342
3333
  "customElement": true
3343
3334
  },
3344
3335
  {
3345
3336
  "kind": "variable",
3346
- "name": "foundationAiIndicator"
3337
+ "name": "foundationAiCriteriaSearchShadowOptions",
3338
+ "type": {
3339
+ "text": "ShadowRootInit"
3340
+ },
3341
+ "default": "undefined"
3342
+ },
3343
+ {
3344
+ "kind": "variable",
3345
+ "name": "defaultAiCriteriaSearchConfig",
3346
+ "type": {
3347
+ "text": "object"
3348
+ },
3349
+ "default": "{}"
3350
+ },
3351
+ {
3352
+ "kind": "variable",
3353
+ "name": "foundationAiCriteriaSearch"
3347
3354
  }
3348
3355
  ],
3349
3356
  "exports": [
3350
3357
  {
3351
3358
  "kind": "js",
3352
- "name": "AiIndicator",
3359
+ "name": "AiCriteriaSearch",
3360
+ "declaration": {
3361
+ "name": "AiCriteriaSearch",
3362
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3363
+ }
3364
+ },
3365
+ {
3366
+ "kind": "js",
3367
+ "name": "foundationAiCriteriaSearchShadowOptions",
3368
+ "declaration": {
3369
+ "name": "foundationAiCriteriaSearchShadowOptions",
3370
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3371
+ }
3372
+ },
3373
+ {
3374
+ "kind": "js",
3375
+ "name": "defaultAiCriteriaSearchConfig",
3376
+ "declaration": {
3377
+ "name": "defaultAiCriteriaSearchConfig",
3378
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3379
+ }
3380
+ },
3381
+ {
3382
+ "kind": "js",
3383
+ "name": "foundationAiCriteriaSearch",
3384
+ "declaration": {
3385
+ "name": "foundationAiCriteriaSearch",
3386
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3387
+ }
3388
+ }
3389
+ ]
3390
+ },
3391
+ {
3392
+ "kind": "javascript-module",
3393
+ "path": "src/ai-criteria-search/index.ts",
3394
+ "declarations": [],
3395
+ "exports": [
3396
+ {
3397
+ "kind": "js",
3398
+ "name": "AiCriteriaSearch",
3353
3399
  "declaration": {
3354
- "name": "AiIndicator",
3355
- "module": "src/ai-indicator/ai-indicator.ts"
3400
+ "name": "AiCriteriaSearch",
3401
+ "module": "./ai-criteria-search"
3356
3402
  }
3357
3403
  },
3358
3404
  {
3359
3405
  "kind": "js",
3360
- "name": "foundationAiIndicator",
3406
+ "name": "defaultAiCriteriaSearchConfig",
3361
3407
  "declaration": {
3362
- "name": "foundationAiIndicator",
3363
- "module": "src/ai-indicator/ai-indicator.ts"
3408
+ "name": "defaultAiCriteriaSearchConfig",
3409
+ "module": "./ai-criteria-search"
3364
3410
  }
3365
- }
3366
- ]
3367
- },
3368
- {
3369
- "kind": "javascript-module",
3370
- "path": "src/ai-indicator/index.ts",
3371
- "declarations": [],
3372
- "exports": [
3411
+ },
3373
3412
  {
3374
3413
  "kind": "js",
3375
- "name": "AiIndicator",
3414
+ "name": "foundationAiCriteriaSearch",
3376
3415
  "declaration": {
3377
- "name": "AiIndicator",
3378
- "module": "./ai-indicator"
3416
+ "name": "foundationAiCriteriaSearch",
3417
+ "module": "./ai-criteria-search"
3379
3418
  }
3380
3419
  },
3381
3420
  {
3382
3421
  "kind": "js",
3383
- "name": "foundationAiIndicator",
3422
+ "name": "foundationAiCriteriaSearchShadowOptions",
3384
3423
  "declaration": {
3385
- "name": "foundationAiIndicator",
3386
- "module": "./ai-indicator"
3424
+ "name": "foundationAiCriteriaSearchShadowOptions",
3425
+ "module": "./ai-criteria-search"
3387
3426
  }
3388
3427
  },
3389
3428
  {
3390
3429
  "kind": "js",
3391
- "name": "type",
3430
+ "name": "foundationAiCriteriaSearchStyles",
3392
3431
  "declaration": {
3393
- "name": "type",
3394
- "module": "./ai-indicator"
3432
+ "name": "foundationAiCriteriaSearchStyles",
3433
+ "module": "./ai-criteria-search.styles"
3395
3434
  }
3396
3435
  },
3397
3436
  {
3398
3437
  "kind": "js",
3399
- "name": "AIIndicatorState",
3438
+ "name": "foundationAiCriteriaSearchTemplate",
3400
3439
  "declaration": {
3401
- "name": "AIIndicatorState",
3402
- "module": "./ai-indicator"
3440
+ "name": "foundationAiCriteriaSearchTemplate",
3441
+ "module": "./ai-criteria-search.template"
3403
3442
  }
3404
3443
  },
3405
3444
  {
3406
3445
  "kind": "js",
3407
- "name": "foundationAiIndicatorTemplate",
3446
+ "name": "*",
3408
3447
  "declaration": {
3409
- "name": "foundationAiIndicatorTemplate",
3410
- "module": "./ai-indicator.template"
3448
+ "name": "*",
3449
+ "package": "./validation/criteria-ir"
3411
3450
  }
3412
3451
  },
3413
3452
  {
3414
3453
  "kind": "js",
3415
- "name": "foundationAiIndicatorStyles",
3454
+ "name": "*",
3416
3455
  "declaration": {
3417
- "name": "foundationAiIndicatorStyles",
3418
- "module": "./ai-indicator.styles"
3456
+ "name": "*",
3457
+ "package": "./validation/operator-map"
3458
+ }
3459
+ },
3460
+ {
3461
+ "kind": "js",
3462
+ "name": "*",
3463
+ "declaration": {
3464
+ "name": "*",
3465
+ "package": "./validation/schema-validator"
3419
3466
  }
3420
3467
  }
3421
3468
  ]
3422
3469
  },
3423
3470
  {
3424
3471
  "kind": "javascript-module",
3425
- "path": "src/actions-menu/actions-menu.styles.ts",
3472
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3426
3473
  "declarations": [
3427
3474
  {
3428
3475
  "kind": "function",
3429
- "name": "actionsMenuBaseStyles",
3476
+ "name": "formatValidationErrors",
3430
3477
  "return": {
3431
3478
  "type": {
3432
- "text": "ElementStyles"
3479
+ "text": "string"
3433
3480
  }
3434
3481
  },
3435
3482
  "parameters": [
3436
3483
  {
3437
- "name": "context",
3438
- "type": {
3439
- "text": "ElementDefinitionContext"
3440
- }
3441
- },
3442
- {
3443
- "name": "definition",
3484
+ "name": "errors",
3444
3485
  "type": {
3445
- "text": "FoundationElementDefinition"
3486
+ "text": "ValidationError[]"
3446
3487
  }
3447
3488
  }
3448
- ]
3489
+ ],
3490
+ "description": "Formats validation errors into a user-friendly message."
3449
3491
  },
3450
3492
  {
3451
3493
  "kind": "function",
3452
- "name": "foundationActionsMenuStyles",
3494
+ "name": "showCriteriaError",
3453
3495
  "return": {
3454
3496
  "type": {
3455
- "text": "ElementStyles"
3497
+ "text": "void"
3456
3498
  }
3457
3499
  },
3458
3500
  "parameters": [
3459
3501
  {
3460
- "name": "context",
3502
+ "name": "title",
3461
3503
  "type": {
3462
- "text": "ElementDefinitionContext"
3463
- }
3504
+ "text": "string"
3505
+ },
3506
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3464
3507
  },
3465
3508
  {
3466
- "name": "definition",
3509
+ "name": "body",
3467
3510
  "type": {
3468
- "text": "FoundationElementDefinition"
3469
- }
3511
+ "text": "string"
3512
+ },
3513
+ "description": "Error message to display"
3514
+ },
3515
+ {
3516
+ "name": "tagName",
3517
+ "type": {
3518
+ "text": "string"
3519
+ },
3520
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3470
3521
  }
3471
- ]
3522
+ ],
3523
+ "description": "Shows a criteria error as a toast notification."
3472
3524
  }
3473
3525
  ],
3474
3526
  "exports": [
3475
3527
  {
3476
3528
  "kind": "js",
3477
- "name": "actionsMenuBaseStyles",
3529
+ "name": "formatValidationErrors",
3478
3530
  "declaration": {
3479
- "name": "actionsMenuBaseStyles",
3480
- "module": "src/actions-menu/actions-menu.styles.ts"
3531
+ "name": "formatValidationErrors",
3532
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3481
3533
  }
3482
3534
  },
3483
3535
  {
3484
3536
  "kind": "js",
3485
- "name": "foundationActionsMenuStyles",
3537
+ "name": "showCriteriaError",
3486
3538
  "declaration": {
3487
- "name": "foundationActionsMenuStyles",
3488
- "module": "src/actions-menu/actions-menu.styles.ts"
3539
+ "name": "showCriteriaError",
3540
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3489
3541
  }
3490
3542
  }
3491
3543
  ]
3492
3544
  },
3493
3545
  {
3494
3546
  "kind": "javascript-module",
3495
- "path": "src/actions-menu/actions-menu.template.ts",
3547
+ "path": "src/ai-indicator/ai-indicator.styles.ts",
3496
3548
  "declarations": [
3497
3549
  {
3498
3550
  "kind": "function",
3499
- "name": "menuTemplate",
3551
+ "name": "foundationAiIndicatorStyles",
3552
+ "return": {
3553
+ "type": {
3554
+ "text": "ElementStyles"
3555
+ }
3556
+ },
3500
3557
  "parameters": [
3501
3558
  {
3502
- "name": "prefix",
3559
+ "name": "context",
3503
3560
  "type": {
3504
- "text": "string"
3561
+ "text": "ElementDefinitionContext"
3505
3562
  }
3506
- }
3507
- ]
3508
- },
3509
- {
3510
- "kind": "function",
3511
- "name": "singleOptionTemplate",
3512
- "parameters": [
3563
+ },
3513
3564
  {
3514
- "name": "prefix",
3565
+ "name": "definition",
3515
3566
  "type": {
3516
- "text": "string"
3567
+ "text": "FoundationElementDefinition"
3517
3568
  }
3518
3569
  }
3519
3570
  ]
3520
- },
3521
- {
3522
- "kind": "variable",
3523
- "name": "foundationActionsMenuTemplate",
3524
- "type": {
3525
- "text": "ViewTemplate<ActionsMenu>"
3526
- },
3527
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
3528
3571
  }
3529
3572
  ],
3530
3573
  "exports": [
3531
3574
  {
3532
3575
  "kind": "js",
3533
- "name": "menuTemplate",
3576
+ "name": "foundationAiIndicatorStyles",
3534
3577
  "declaration": {
3535
- "name": "menuTemplate",
3536
- "module": "src/actions-menu/actions-menu.template.ts"
3578
+ "name": "foundationAiIndicatorStyles",
3579
+ "module": "src/ai-indicator/ai-indicator.styles.ts"
3537
3580
  }
3538
- },
3581
+ }
3582
+ ]
3583
+ },
3584
+ {
3585
+ "kind": "javascript-module",
3586
+ "path": "src/ai-indicator/ai-indicator.template.ts",
3587
+ "declarations": [
3539
3588
  {
3540
- "kind": "js",
3541
- "name": "singleOptionTemplate",
3542
- "declaration": {
3543
- "name": "singleOptionTemplate",
3544
- "module": "src/actions-menu/actions-menu.template.ts"
3545
- }
3546
- },
3589
+ "kind": "variable",
3590
+ "name": "foundationAiIndicatorTemplate",
3591
+ "type": {
3592
+ "text": "ViewTemplate<AiIndicator>"
3593
+ },
3594
+ "default": "html`\n ${(x) => aiIndicatorTemplate(getPrefix(x))}\n`"
3595
+ }
3596
+ ],
3597
+ "exports": [
3547
3598
  {
3548
3599
  "kind": "js",
3549
- "name": "foundationActionsMenuTemplate",
3600
+ "name": "foundationAiIndicatorTemplate",
3550
3601
  "declaration": {
3551
- "name": "foundationActionsMenuTemplate",
3552
- "module": "src/actions-menu/actions-menu.template.ts"
3602
+ "name": "foundationAiIndicatorTemplate",
3603
+ "module": "src/ai-indicator/ai-indicator.template.ts"
3553
3604
  }
3554
3605
  }
3555
3606
  ]
3556
3607
  },
3557
3608
  {
3558
3609
  "kind": "javascript-module",
3559
- "path": "src/actions-menu/actions-menu.ts",
3610
+ "path": "src/ai-indicator/ai-indicator.ts",
3560
3611
  "declarations": [
3561
3612
  {
3562
3613
  "kind": "class",
3563
3614
  "description": "",
3564
- "name": "ActionsMenu",
3615
+ "name": "AiIndicator",
3565
3616
  "members": [
3566
3617
  {
3567
3618
  "kind": "field",
3568
- "name": "actions",
3619
+ "name": "providerRegistry",
3569
3620
  "type": {
3570
- "text": "ActionMenuItem[]"
3621
+ "text": "AIProviderRegistry"
3571
3622
  }
3572
3623
  },
3573
3624
  {
3574
3625
  "kind": "field",
3575
- "name": "isVertical",
3576
- "type": {
3577
- "text": "boolean"
3578
- },
3579
- "default": "false"
3580
- },
3581
- {
3582
- "kind": "field",
3583
- "name": "addDefaultActions",
3584
- "type": {
3585
- "text": "boolean"
3586
- },
3587
- "default": "true"
3588
- },
3589
- {
3590
- "kind": "field",
3591
- "name": "autoCloseOnAction",
3626
+ "name": "aiProvider",
3592
3627
  "type": {
3593
- "text": "boolean"
3628
+ "text": "AIProvider | undefined"
3594
3629
  },
3595
- "default": "true"
3596
- },
3597
- {
3598
- "kind": "field",
3599
- "name": "classNames",
3600
- "type": {
3601
- "text": "string"
3602
- }
3603
- },
3604
- {
3605
- "kind": "field",
3606
- "name": "definition",
3607
- "type": {
3608
- "text": "any"
3609
- }
3630
+ "privacy": "private",
3631
+ "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.",
3632
+ "readonly": true
3610
3633
  },
3611
3634
  {
3612
3635
  "kind": "field",
3613
- "name": "name",
3636
+ "name": "status",
3614
3637
  "type": {
3615
- "text": "string"
3638
+ "text": "AIStatus | null"
3616
3639
  },
3617
- "default": "'Actions'"
3640
+ "default": "null"
3618
3641
  },
3619
3642
  {
3620
3643
  "kind": "field",
@@ -3626,14 +3649,15 @@
3626
3649
  },
3627
3650
  {
3628
3651
  "kind": "field",
3629
- "name": "buttonAppearance",
3652
+ "name": "state",
3630
3653
  "type": {
3631
- "text": "string"
3632
- }
3654
+ "text": "AIIndicatorState"
3655
+ },
3656
+ "default": "'none'"
3633
3657
  },
3634
3658
  {
3635
3659
  "kind": "field",
3636
- "name": "hideDisabled",
3660
+ "name": "isInstalling",
3637
3661
  "type": {
3638
3662
  "text": "boolean"
3639
3663
  },
@@ -3641,114 +3665,133 @@
3641
3665
  },
3642
3666
  {
3643
3667
  "kind": "field",
3644
- "name": "hideMenuSingleOption",
3668
+ "name": "pollTimer",
3645
3669
  "type": {
3646
- "text": "boolean"
3670
+ "text": "ReturnType<typeof setInterval> | null"
3647
3671
  },
3648
- "default": "false"
3672
+ "privacy": "private",
3673
+ "default": "null"
3649
3674
  },
3650
3675
  {
3651
3676
  "kind": "field",
3652
- "name": "singleOption",
3677
+ "name": "clickOutside",
3678
+ "privacy": "private"
3679
+ },
3680
+ {
3681
+ "kind": "field",
3682
+ "name": "chromeStatusLabel",
3653
3683
  "type": {
3654
- "text": "ActionMenuItem"
3655
- }
3684
+ "text": "string | null"
3685
+ },
3686
+ "readonly": true
3656
3687
  },
3657
3688
  {
3658
3689
  "kind": "field",
3659
- "name": "actionsMenu",
3690
+ "name": "canInstall",
3660
3691
  "type": {
3661
- "text": "HTMLElement"
3662
- }
3692
+ "text": "boolean"
3693
+ },
3694
+ "readonly": true
3663
3695
  },
3664
3696
  {
3665
3697
  "kind": "field",
3666
- "name": "actionsOpener",
3698
+ "name": "isDownloading",
3667
3699
  "type": {
3668
- "text": "HTMLElement"
3669
- }
3700
+ "text": "boolean"
3701
+ },
3702
+ "readonly": true
3670
3703
  },
3671
3704
  {
3672
3705
  "kind": "method",
3673
- "name": "updateMenuPosition",
3674
- "privacy": "private"
3706
+ "name": "openChanged",
3707
+ "return": {
3708
+ "type": {
3709
+ "text": "void"
3710
+ }
3711
+ }
3675
3712
  },
3676
3713
  {
3677
3714
  "kind": "method",
3678
- "name": "definitionChanged",
3679
- "privacy": "protected",
3715
+ "name": "handleClickOutside",
3716
+ "privacy": "private",
3680
3717
  "parameters": [
3681
3718
  {
3682
- "name": "oldValue",
3683
- "type": {
3684
- "text": "any"
3685
- }
3686
- },
3687
- {
3688
- "name": "newValue",
3719
+ "name": "event",
3689
3720
  "type": {
3690
- "text": "any"
3721
+ "text": "MouseEvent"
3691
3722
  }
3692
3723
  }
3693
3724
  ]
3694
3725
  },
3695
3726
  {
3696
3727
  "kind": "method",
3697
- "name": "openChanged",
3698
- "privacy": "protected"
3728
+ "name": "toggleDropdown"
3699
3729
  },
3700
3730
  {
3701
3731
  "kind": "method",
3702
- "name": "toggleActionsMenuVisibility"
3732
+ "name": "refreshStatus",
3733
+ "return": {
3734
+ "type": {
3735
+ "text": "Promise<void>"
3736
+ }
3737
+ }
3703
3738
  },
3704
3739
  {
3705
3740
  "kind": "method",
3706
- "name": "onActionMenuItemClick",
3741
+ "name": "deriveState",
3742
+ "privacy": "private",
3743
+ "return": {
3744
+ "type": {
3745
+ "text": "AIIndicatorState"
3746
+ }
3747
+ },
3707
3748
  "parameters": [
3708
3749
  {
3709
- "name": "callback",
3750
+ "name": "s",
3710
3751
  "type": {
3711
- "text": "(rowData) => void | any"
3752
+ "text": "AIStatus | null"
3712
3753
  }
3713
3754
  }
3714
3755
  ]
3715
3756
  },
3716
3757
  {
3717
- "kind": "field",
3718
- "name": "allActions",
3719
- "type": {
3720
- "text": "ActionMenuItem[]"
3721
- },
3722
- "readonly": true
3758
+ "kind": "method",
3759
+ "name": "maybeStartPolling",
3760
+ "privacy": "private",
3761
+ "return": {
3762
+ "type": {
3763
+ "text": "void"
3764
+ }
3765
+ }
3723
3766
  },
3724
3767
  {
3725
- "kind": "field",
3726
- "name": "rowData",
3727
- "readonly": true
3768
+ "kind": "method",
3769
+ "name": "startPolling",
3770
+ "privacy": "private",
3771
+ "return": {
3772
+ "type": {
3773
+ "text": "void"
3774
+ }
3775
+ }
3728
3776
  },
3729
3777
  {
3730
3778
  "kind": "method",
3731
- "name": "getLabel",
3732
- "parameters": [
3733
- {
3734
- "name": "name",
3735
- "type": {
3736
- "text": "string | ((rowData: any) => string)"
3737
- }
3779
+ "name": "stopPolling",
3780
+ "privacy": "private",
3781
+ "return": {
3782
+ "type": {
3783
+ "text": "void"
3738
3784
  }
3739
- ]
3785
+ }
3740
3786
  },
3741
3787
  {
3742
3788
  "kind": "method",
3743
- "name": "getTemplate",
3744
- "parameters": [
3745
- {
3746
- "name": "prefix",
3747
- "type": {
3748
- "text": "string"
3749
- }
3789
+ "name": "onInstall",
3790
+ "return": {
3791
+ "type": {
3792
+ "text": "Promise<void>"
3750
3793
  }
3751
- ]
3794
+ }
3752
3795
  },
3753
3796
  {
3754
3797
  "kind": "field",
@@ -3862,131 +3905,88 @@
3862
3905
  }
3863
3906
  }
3864
3907
  ],
3865
- "attributes": [
3866
- {
3867
- "name": "is-vertical",
3868
- "type": {
3869
- "text": "boolean"
3870
- },
3871
- "default": "false",
3872
- "fieldName": "isVertical"
3873
- },
3874
- {
3875
- "name": "add-default-actions",
3876
- "type": {
3877
- "text": "boolean"
3878
- },
3879
- "default": "true",
3880
- "fieldName": "addDefaultActions"
3881
- },
3882
- {
3883
- "name": "auto-close-on-action",
3884
- "type": {
3885
- "text": "boolean"
3886
- },
3887
- "default": "true",
3888
- "fieldName": "autoCloseOnAction"
3889
- },
3890
- {
3891
- "name": "name",
3892
- "type": {
3893
- "text": "string"
3894
- },
3895
- "default": "'Actions'",
3896
- "fieldName": "name"
3897
- },
3898
- {
3899
- "name": "open",
3900
- "type": {
3901
- "text": "boolean"
3902
- },
3903
- "default": "false",
3904
- "fieldName": "open"
3905
- },
3906
- {
3907
- "name": "buttonAppearance",
3908
- "type": {
3909
- "text": "string"
3910
- },
3911
- "fieldName": "buttonAppearance"
3912
- },
3913
- {
3914
- "name": "hide-disabled",
3915
- "type": {
3916
- "text": "boolean"
3917
- },
3918
- "default": "false",
3919
- "fieldName": "hideDisabled"
3920
- },
3921
- {
3922
- "name": "hide-menu-single-option",
3923
- "type": {
3924
- "text": "boolean"
3925
- },
3926
- "default": "false",
3927
- "fieldName": "hideMenuSingleOption"
3928
- }
3929
- ],
3930
3908
  "superclass": {
3931
3909
  "name": "FoundationElement",
3932
3910
  "package": "@microsoft/fast-foundation"
3933
3911
  },
3934
- "tagName": "%%prefix%%-actions-menu",
3912
+ "tagName": "%%prefix%%-ai-indicator",
3935
3913
  "customElement": true
3936
3914
  },
3937
3915
  {
3938
3916
  "kind": "variable",
3939
- "name": "foundationActionsMenu",
3940
- "description": "The Foundation Actions Menu",
3941
- "privacy": "public"
3917
+ "name": "foundationAiIndicator"
3942
3918
  }
3943
3919
  ],
3944
3920
  "exports": [
3945
3921
  {
3946
3922
  "kind": "js",
3947
- "name": "ActionsMenu",
3923
+ "name": "AiIndicator",
3948
3924
  "declaration": {
3949
- "name": "ActionsMenu",
3950
- "module": "src/actions-menu/actions-menu.ts"
3925
+ "name": "AiIndicator",
3926
+ "module": "src/ai-indicator/ai-indicator.ts"
3951
3927
  }
3952
3928
  },
3953
3929
  {
3954
3930
  "kind": "js",
3955
- "name": "foundationActionsMenu",
3931
+ "name": "foundationAiIndicator",
3956
3932
  "declaration": {
3957
- "name": "foundationActionsMenu",
3958
- "module": "src/actions-menu/actions-menu.ts"
3933
+ "name": "foundationAiIndicator",
3934
+ "module": "src/ai-indicator/ai-indicator.ts"
3959
3935
  }
3960
3936
  }
3961
3937
  ]
3962
3938
  },
3963
3939
  {
3964
3940
  "kind": "javascript-module",
3965
- "path": "src/actions-menu/index.ts",
3941
+ "path": "src/ai-indicator/index.ts",
3966
3942
  "declarations": [],
3967
3943
  "exports": [
3968
3944
  {
3969
3945
  "kind": "js",
3970
- "name": "*",
3946
+ "name": "AiIndicator",
3971
3947
  "declaration": {
3972
- "name": "*",
3973
- "package": "./actions-menu.styles"
3948
+ "name": "AiIndicator",
3949
+ "module": "./ai-indicator"
3974
3950
  }
3975
3951
  },
3976
3952
  {
3977
3953
  "kind": "js",
3978
- "name": "*",
3954
+ "name": "foundationAiIndicator",
3979
3955
  "declaration": {
3980
- "name": "*",
3981
- "package": "./actions-menu.template"
3956
+ "name": "foundationAiIndicator",
3957
+ "module": "./ai-indicator"
3982
3958
  }
3983
3959
  },
3984
3960
  {
3985
3961
  "kind": "js",
3986
- "name": "*",
3962
+ "name": "type",
3987
3963
  "declaration": {
3988
- "name": "*",
3989
- "package": "./actions-menu"
3964
+ "name": "type",
3965
+ "module": "./ai-indicator"
3966
+ }
3967
+ },
3968
+ {
3969
+ "kind": "js",
3970
+ "name": "AIIndicatorState",
3971
+ "declaration": {
3972
+ "name": "AIIndicatorState",
3973
+ "module": "./ai-indicator"
3974
+ }
3975
+ },
3976
+ {
3977
+ "kind": "js",
3978
+ "name": "foundationAiIndicatorTemplate",
3979
+ "declaration": {
3980
+ "name": "foundationAiIndicatorTemplate",
3981
+ "module": "./ai-indicator.template"
3982
+ }
3983
+ },
3984
+ {
3985
+ "kind": "js",
3986
+ "name": "foundationAiIndicatorStyles",
3987
+ "declaration": {
3988
+ "name": "foundationAiIndicatorStyles",
3989
+ "module": "./ai-indicator.styles"
3990
3990
  }
3991
3991
  }
3992
3992
  ]