@genesislcap/foundation-ui 14.451.1-alpha-3c3e1d3.0 → 14.451.2-FUI-2550.1

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