@genesislcap/foundation-ui 14.439.2 → 14.441.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1400,11 +1400,11 @@
1400
1400
  },
1401
1401
  {
1402
1402
  "kind": "javascript-module",
1403
- "path": "src/accordion/accordion.styles.ts",
1403
+ "path": "src/accordion-item/accordion-item.styles.ts",
1404
1404
  "declarations": [
1405
1405
  {
1406
1406
  "kind": "function",
1407
- "name": "foundationAccordionStyles",
1407
+ "name": "foundationAccordionItemStyles",
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": "foundationAccordionStyles",
1432
+ "name": "foundationAccordionItemStyles",
1433
1433
  "declaration": {
1434
- "name": "foundationAccordionStyles",
1435
- "module": "src/accordion/accordion.styles.ts"
1434
+ "name": "foundationAccordionItemStyles",
1435
+ "module": "src/accordion-item/accordion-item.styles.ts"
1436
1436
  }
1437
1437
  }
1438
1438
  ]
1439
1439
  },
1440
1440
  {
1441
1441
  "kind": "javascript-module",
1442
- "path": "src/accordion/accordion.template.ts",
1442
+ "path": "src/accordion-item/accordion-item.template.ts",
1443
1443
  "declarations": [
1444
1444
  {
1445
1445
  "kind": "function",
1446
- "name": "foundationAccordionTemplate",
1446
+ "name": "foundationAccordionItemTemplate",
1447
1447
  "return": {
1448
1448
  "type": {
1449
- "text": "ViewTemplate<Accordion>"
1449
+ "text": "ViewTemplate<AccordionItem>"
1450
1450
  }
1451
1451
  },
1452
1452
  "parameters": [
@@ -1468,237 +1468,116 @@
1468
1468
  "exports": [
1469
1469
  {
1470
1470
  "kind": "js",
1471
- "name": "foundationAccordionTemplate",
1471
+ "name": "foundationAccordionItemTemplate",
1472
1472
  "declaration": {
1473
- "name": "foundationAccordionTemplate",
1474
- "module": "src/accordion/accordion.template.ts"
1473
+ "name": "foundationAccordionItemTemplate",
1474
+ "module": "src/accordion-item/accordion-item.template.ts"
1475
1475
  }
1476
1476
  }
1477
1477
  ]
1478
1478
  },
1479
1479
  {
1480
1480
  "kind": "javascript-module",
1481
- "path": "src/accordion/accordion.ts",
1481
+ "path": "src/accordion-item/accordion-item.ts",
1482
1482
  "declarations": [
1483
1483
  {
1484
1484
  "kind": "class",
1485
1485
  "description": "",
1486
- "name": "Accordion",
1486
+ "name": "AccordionItem",
1487
1487
  "superclass": {
1488
- "name": "FASTAccordion",
1489
- "package": "@microsoft/fast-foundation"
1488
+ "name": "FASTAccordionItem",
1489
+ "package": "@microsoft/fast-components"
1490
1490
  },
1491
- "tagName": "%%prefix%%-accordion",
1491
+ "tagName": "%%prefix%%-accordion-item",
1492
1492
  "customElement": true,
1493
1493
  "attributes": [
1494
1494
  {
1495
- "name": "expand-mode",
1496
- "type": {
1497
- "text": "AccordionExpandMode"
1498
- },
1499
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1500
- "fieldName": "expandmode",
1501
- "inheritedFrom": {
1502
- "name": "Accordion",
1503
- "module": "src/accordion/accordion.ts"
1504
- }
1505
- }
1506
- ],
1507
- "members": [
1508
- {
1509
- "kind": "field",
1510
- "name": "expandmode",
1495
+ "name": "heading-level",
1511
1496
  "type": {
1512
- "text": "AccordionExpandMode"
1497
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1513
1498
  },
1514
- "privacy": "public",
1515
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
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",
1516
1502
  "inheritedFrom": {
1517
- "name": "Accordion",
1518
- "module": "src/accordion/accordion.ts"
1503
+ "name": "AccordionItem",
1504
+ "module": "src/accordion-item/accordion-item.ts"
1519
1505
  }
1520
1506
  },
1521
1507
  {
1522
- "kind": "field",
1523
- "name": "activeid",
1524
1508
  "type": {
1525
- "text": "string | null"
1509
+ "text": "boolean"
1526
1510
  },
1527
- "privacy": "private",
1511
+ "default": "false",
1512
+ "description": "Expands or collapses the item.",
1513
+ "fieldName": "expanded",
1528
1514
  "inheritedFrom": {
1529
- "name": "Accordion",
1530
- "module": "src/accordion/accordion.ts"
1515
+ "name": "AccordionItem",
1516
+ "module": "src/accordion-item/accordion-item.ts"
1531
1517
  }
1532
1518
  },
1533
1519
  {
1534
- "kind": "field",
1535
- "name": "activeItemIndex",
1520
+ "name": "id",
1536
1521
  "type": {
1537
- "text": "number"
1522
+ "text": "string"
1538
1523
  },
1539
- "privacy": "private",
1540
- "default": "0",
1524
+ "description": "The item ID",
1525
+ "fieldName": "id",
1541
1526
  "inheritedFrom": {
1542
- "name": "Accordion",
1543
- "module": "src/accordion/accordion.ts"
1527
+ "name": "AccordionItem",
1528
+ "module": "src/accordion-item/accordion-item.ts"
1544
1529
  }
1545
- },
1530
+ }
1531
+ ],
1532
+ "members": [
1546
1533
  {
1547
1534
  "kind": "field",
1548
- "name": "accordionIds",
1535
+ "name": "headinglevel",
1549
1536
  "type": {
1550
- "text": "Array<string | null>"
1551
- },
1552
- "privacy": "private",
1553
- "inheritedFrom": {
1554
- "name": "Accordion",
1555
- "module": "src/accordion/accordion.ts"
1556
- }
1557
- },
1558
- {
1559
- "kind": "field",
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
- }
1537
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1575
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.",
1576
1542
  "inheritedFrom": {
1577
- "name": "Accordion",
1578
- "module": "src/accordion/accordion.ts"
1543
+ "name": "AccordionItem",
1544
+ "module": "src/accordion-item/accordion-item.ts"
1579
1545
  }
1580
1546
  },
1581
1547
  {
1582
1548
  "kind": "field",
1583
- "name": "setItems",
1584
- "privacy": "private",
1585
- "inheritedFrom": {
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
- }
1549
+ "name": "expanded",
1550
+ "type": {
1551
+ "text": "boolean"
1598
1552
  },
1553
+ "privacy": "public",
1554
+ "default": "false",
1555
+ "description": "Expands or collapses the item.",
1599
1556
  "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"
1557
+ "name": "AccordionItem",
1558
+ "module": "src/accordion-item/accordion-item.ts"
1611
1559
  }
1612
1560
  },
1613
1561
  {
1614
1562
  "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
- }
1563
+ "name": "id",
1564
+ "type": {
1565
+ "text": "string"
1644
1566
  },
1567
+ "privacy": "public",
1568
+ "description": "The item ID",
1645
1569
  "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"
1570
+ "name": "AccordionItem",
1571
+ "module": "src/accordion-item/accordion-item.ts"
1657
1572
  }
1658
1573
  },
1659
1574
  {
1660
1575
  "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",
1576
+ "name": "change",
1693
1577
  "privacy": "private",
1694
- "return": {
1695
- "type": {
1696
- "text": "void"
1697
- }
1698
- },
1699
1578
  "inheritedFrom": {
1700
- "name": "Accordion",
1701
- "module": "src/accordion/accordion.ts"
1579
+ "name": "AccordionItem",
1580
+ "module": "src/accordion-item/accordion-item.ts"
1702
1581
  }
1703
1582
  },
1704
1583
  {
@@ -1815,18 +1694,18 @@
1815
1694
  ],
1816
1695
  "events": [
1817
1696
  {
1818
- "description": "Fires a custom 'change' event when the active item changes",
1697
+ "description": "Fires a custom 'change' event when the button is invoked",
1819
1698
  "name": "change",
1820
1699
  "inheritedFrom": {
1821
- "name": "Accordion",
1822
- "module": "src/accordion/accordion.ts"
1700
+ "name": "AccordionItem",
1701
+ "module": "src/accordion-item/accordion-item.ts"
1823
1702
  }
1824
1703
  }
1825
1704
  ]
1826
1705
  },
1827
1706
  {
1828
1707
  "kind": "variable",
1829
- "name": "foundationAccordionShadowOptions",
1708
+ "name": "foundationAccordionItemShadowOptions",
1830
1709
  "type": {
1831
1710
  "text": "ShadowRootInit"
1832
1711
  },
@@ -1834,57 +1713,57 @@
1834
1713
  },
1835
1714
  {
1836
1715
  "kind": "variable",
1837
- "name": "defaultAccordionConfig",
1716
+ "name": "defaultAccordionItemConfig",
1838
1717
  "type": {
1839
1718
  "text": "object"
1840
1719
  },
1841
- "default": "{}"
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}"
1842
1721
  },
1843
1722
  {
1844
1723
  "kind": "variable",
1845
- "name": "foundationAccordion",
1846
- "description": "The Foundation Accordion",
1724
+ "name": "foundationAccordionItem",
1725
+ "description": "The Foundation Accordion Item",
1847
1726
  "privacy": "public"
1848
1727
  }
1849
1728
  ],
1850
1729
  "exports": [
1851
1730
  {
1852
1731
  "kind": "js",
1853
- "name": "Accordion",
1732
+ "name": "AccordionItem",
1854
1733
  "declaration": {
1855
- "name": "Accordion",
1856
- "module": "src/accordion/accordion.ts"
1734
+ "name": "AccordionItem",
1735
+ "module": "src/accordion-item/accordion-item.ts"
1857
1736
  }
1858
1737
  },
1859
1738
  {
1860
1739
  "kind": "js",
1861
- "name": "foundationAccordionShadowOptions",
1740
+ "name": "foundationAccordionItemShadowOptions",
1862
1741
  "declaration": {
1863
- "name": "foundationAccordionShadowOptions",
1864
- "module": "src/accordion/accordion.ts"
1742
+ "name": "foundationAccordionItemShadowOptions",
1743
+ "module": "src/accordion-item/accordion-item.ts"
1865
1744
  }
1866
1745
  },
1867
1746
  {
1868
1747
  "kind": "js",
1869
- "name": "defaultAccordionConfig",
1748
+ "name": "defaultAccordionItemConfig",
1870
1749
  "declaration": {
1871
- "name": "defaultAccordionConfig",
1872
- "module": "src/accordion/accordion.ts"
1750
+ "name": "defaultAccordionItemConfig",
1751
+ "module": "src/accordion-item/accordion-item.ts"
1873
1752
  }
1874
1753
  },
1875
1754
  {
1876
1755
  "kind": "js",
1877
- "name": "foundationAccordion",
1756
+ "name": "foundationAccordionItem",
1878
1757
  "declaration": {
1879
- "name": "foundationAccordion",
1880
- "module": "src/accordion/accordion.ts"
1758
+ "name": "foundationAccordionItem",
1759
+ "module": "src/accordion-item/accordion-item.ts"
1881
1760
  }
1882
1761
  }
1883
1762
  ]
1884
1763
  },
1885
1764
  {
1886
1765
  "kind": "javascript-module",
1887
- "path": "src/accordion/index.ts",
1766
+ "path": "src/accordion-item/index.ts",
1888
1767
  "declarations": [],
1889
1768
  "exports": [
1890
1769
  {
@@ -1892,7 +1771,7 @@
1892
1771
  "name": "*",
1893
1772
  "declaration": {
1894
1773
  "name": "*",
1895
- "package": "./accordion.template"
1774
+ "package": "./accordion-item.template"
1896
1775
  }
1897
1776
  },
1898
1777
  {
@@ -1900,7 +1779,7 @@
1900
1779
  "name": "*",
1901
1780
  "declaration": {
1902
1781
  "name": "*",
1903
- "package": "./accordion.styles"
1782
+ "package": "./accordion-item.styles"
1904
1783
  }
1905
1784
  },
1906
1785
  {
@@ -1908,7 +1787,7 @@
1908
1787
  "name": "*",
1909
1788
  "declaration": {
1910
1789
  "name": "*",
1911
- "package": "./accordion"
1790
+ "package": "./accordion-item"
1912
1791
  }
1913
1792
  }
1914
1793
  ]
@@ -1946,11 +1825,34 @@
1946
1825
  },
1947
1826
  {
1948
1827
  "kind": "javascript-module",
1949
- "path": "src/accordion-item/accordion-item.styles.ts",
1828
+ "path": "src/actions-menu/actions-menu.styles.ts",
1950
1829
  "declarations": [
1951
1830
  {
1952
1831
  "kind": "function",
1953
- "name": "foundationAccordionItemStyles",
1832
+ "name": "actionsMenuBaseStyles",
1833
+ "return": {
1834
+ "type": {
1835
+ "text": "ElementStyles"
1836
+ }
1837
+ },
1838
+ "parameters": [
1839
+ {
1840
+ "name": "context",
1841
+ "type": {
1842
+ "text": "ElementDefinitionContext"
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "definition",
1847
+ "type": {
1848
+ "text": "FoundationElementDefinition"
1849
+ }
1850
+ }
1851
+ ]
1852
+ },
1853
+ {
1854
+ "kind": "function",
1855
+ "name": "foundationActionsMenuStyles",
1954
1856
  "return": {
1955
1857
  "type": {
1956
1858
  "text": "ElementStyles"
@@ -1975,200 +1877,313 @@
1975
1877
  "exports": [
1976
1878
  {
1977
1879
  "kind": "js",
1978
- "name": "foundationAccordionItemStyles",
1880
+ "name": "actionsMenuBaseStyles",
1979
1881
  "declaration": {
1980
- "name": "foundationAccordionItemStyles",
1981
- "module": "src/accordion-item/accordion-item.styles.ts"
1882
+ "name": "actionsMenuBaseStyles",
1883
+ "module": "src/actions-menu/actions-menu.styles.ts"
1884
+ }
1885
+ },
1886
+ {
1887
+ "kind": "js",
1888
+ "name": "foundationActionsMenuStyles",
1889
+ "declaration": {
1890
+ "name": "foundationActionsMenuStyles",
1891
+ "module": "src/actions-menu/actions-menu.styles.ts"
1982
1892
  }
1983
1893
  }
1984
1894
  ]
1985
1895
  },
1986
1896
  {
1987
1897
  "kind": "javascript-module",
1988
- "path": "src/accordion-item/accordion-item.template.ts",
1898
+ "path": "src/actions-menu/actions-menu.template.ts",
1989
1899
  "declarations": [
1990
1900
  {
1991
1901
  "kind": "function",
1992
- "name": "foundationAccordionItemTemplate",
1993
- "return": {
1994
- "type": {
1995
- "text": "ViewTemplate<AccordionItem>"
1996
- }
1997
- },
1902
+ "name": "menuTemplate",
1998
1903
  "parameters": [
1999
1904
  {
2000
- "name": "context",
1905
+ "name": "prefix",
2001
1906
  "type": {
2002
- "text": "ElementDefinitionContext"
1907
+ "text": "string"
2003
1908
  }
2004
- },
1909
+ }
1910
+ ]
1911
+ },
1912
+ {
1913
+ "kind": "function",
1914
+ "name": "singleOptionTemplate",
1915
+ "parameters": [
2005
1916
  {
2006
- "name": "definition",
1917
+ "name": "prefix",
2007
1918
  "type": {
2008
- "text": "FoundationElementDefinition"
1919
+ "text": "string"
2009
1920
  }
2010
1921
  }
2011
1922
  ]
1923
+ },
1924
+ {
1925
+ "kind": "variable",
1926
+ "name": "foundationActionsMenuTemplate",
1927
+ "type": {
1928
+ "text": "ViewTemplate<ActionsMenu>"
1929
+ },
1930
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2012
1931
  }
2013
1932
  ],
2014
1933
  "exports": [
2015
1934
  {
2016
1935
  "kind": "js",
2017
- "name": "foundationAccordionItemTemplate",
1936
+ "name": "menuTemplate",
2018
1937
  "declaration": {
2019
- "name": "foundationAccordionItemTemplate",
2020
- "module": "src/accordion-item/accordion-item.template.ts"
1938
+ "name": "menuTemplate",
1939
+ "module": "src/actions-menu/actions-menu.template.ts"
1940
+ }
1941
+ },
1942
+ {
1943
+ "kind": "js",
1944
+ "name": "singleOptionTemplate",
1945
+ "declaration": {
1946
+ "name": "singleOptionTemplate",
1947
+ "module": "src/actions-menu/actions-menu.template.ts"
1948
+ }
1949
+ },
1950
+ {
1951
+ "kind": "js",
1952
+ "name": "foundationActionsMenuTemplate",
1953
+ "declaration": {
1954
+ "name": "foundationActionsMenuTemplate",
1955
+ "module": "src/actions-menu/actions-menu.template.ts"
2021
1956
  }
2022
1957
  }
2023
1958
  ]
2024
1959
  },
2025
1960
  {
2026
1961
  "kind": "javascript-module",
2027
- "path": "src/accordion-item/accordion-item.ts",
1962
+ "path": "src/actions-menu/actions-menu.ts",
2028
1963
  "declarations": [
2029
1964
  {
2030
1965
  "kind": "class",
2031
1966
  "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": [
1967
+ "name": "ActionsMenu",
1968
+ "members": [
2040
1969
  {
2041
- "name": "heading-level",
1970
+ "kind": "field",
1971
+ "name": "actions",
2042
1972
  "type": {
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"
1973
+ "text": "ActionMenuItem[]"
2051
1974
  }
2052
1975
  },
2053
1976
  {
1977
+ "kind": "field",
1978
+ "name": "isVertical",
2054
1979
  "type": {
2055
1980
  "text": "boolean"
2056
1981
  },
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
- }
1982
+ "default": "false"
2064
1983
  },
2065
- {
2066
- "name": "id",
2067
- "type": {
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"
2075
- }
2076
- }
2077
- ],
2078
- "members": [
2079
1984
  {
2080
1985
  "kind": "field",
2081
- "name": "headinglevel",
1986
+ "name": "addDefaultActions",
2082
1987
  "type": {
2083
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1988
+ "text": "boolean"
2084
1989
  },
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
- }
1990
+ "default": "true"
2092
1991
  },
2093
1992
  {
2094
1993
  "kind": "field",
2095
- "name": "expanded",
1994
+ "name": "autoCloseOnAction",
2096
1995
  "type": {
2097
1996
  "text": "boolean"
2098
1997
  },
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
- }
1998
+ "default": "true"
2106
1999
  },
2107
2000
  {
2108
2001
  "kind": "field",
2109
- "name": "id",
2002
+ "name": "classNames",
2110
2003
  "type": {
2111
2004
  "text": "string"
2112
- },
2113
- "privacy": "public",
2114
- "description": "The item ID",
2115
- "inheritedFrom": {
2116
- "name": "AccordionItem",
2117
- "module": "src/accordion-item/accordion-item.ts"
2118
2005
  }
2119
2006
  },
2120
2007
  {
2121
2008
  "kind": "field",
2122
- "name": "change",
2123
- "privacy": "private",
2124
- "inheritedFrom": {
2125
- "name": "AccordionItem",
2126
- "module": "src/accordion-item/accordion-item.ts"
2009
+ "name": "definition",
2010
+ "type": {
2011
+ "text": "any"
2127
2012
  }
2128
2013
  },
2129
2014
  {
2130
2015
  "kind": "field",
2131
- "name": "_presentation",
2016
+ "name": "name",
2132
2017
  "type": {
2133
- "text": "ComponentPresentation | null | undefined"
2018
+ "text": "string"
2134
2019
  },
2135
- "privacy": "private",
2136
- "default": "void 0",
2137
- "inheritedFrom": {
2138
- "name": "FoundationElement",
2139
- "module": "src/foundation-element/foundation-element.ts"
2140
- }
2020
+ "default": "'Actions'"
2141
2021
  },
2142
2022
  {
2143
2023
  "kind": "field",
2144
- "name": "$presentation",
2024
+ "name": "open",
2145
2025
  "type": {
2146
- "text": "ComponentPresentation | null"
2026
+ "text": "boolean"
2147
2027
  },
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
- }
2028
+ "default": "false"
2154
2029
  },
2155
2030
  {
2156
2031
  "kind": "field",
2157
- "name": "template",
2032
+ "name": "buttonAppearance",
2158
2033
  "type": {
2159
- "text": "ElementViewTemplate | void | null"
2160
- },
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"
2034
+ "text": "string"
2166
2035
  }
2167
2036
  },
2168
2037
  {
2169
- "kind": "method",
2170
- "name": "templateChanged",
2171
- "privacy": "protected",
2038
+ "kind": "field",
2039
+ "name": "hideDisabled",
2040
+ "type": {
2041
+ "text": "boolean"
2042
+ },
2043
+ "default": "false"
2044
+ },
2045
+ {
2046
+ "kind": "field",
2047
+ "name": "hideMenuSingleOption",
2048
+ "type": {
2049
+ "text": "boolean"
2050
+ },
2051
+ "default": "false"
2052
+ },
2053
+ {
2054
+ "kind": "field",
2055
+ "name": "singleOption",
2056
+ "type": {
2057
+ "text": "ActionMenuItem"
2058
+ }
2059
+ },
2060
+ {
2061
+ "kind": "field",
2062
+ "name": "actionsMenu",
2063
+ "type": {
2064
+ "text": "HTMLElement"
2065
+ }
2066
+ },
2067
+ {
2068
+ "kind": "method",
2069
+ "name": "definitionChanged",
2070
+ "privacy": "protected",
2071
+ "parameters": [
2072
+ {
2073
+ "name": "oldValue",
2074
+ "type": {
2075
+ "text": "any"
2076
+ }
2077
+ },
2078
+ {
2079
+ "name": "newValue",
2080
+ "type": {
2081
+ "text": "any"
2082
+ }
2083
+ }
2084
+ ]
2085
+ },
2086
+ {
2087
+ "kind": "method",
2088
+ "name": "openChanged",
2089
+ "privacy": "protected"
2090
+ },
2091
+ {
2092
+ "kind": "method",
2093
+ "name": "toggleActionsMenuVisibility"
2094
+ },
2095
+ {
2096
+ "kind": "method",
2097
+ "name": "onActionMenuItemClick",
2098
+ "parameters": [
2099
+ {
2100
+ "name": "callback",
2101
+ "type": {
2102
+ "text": "(rowData) => void | any"
2103
+ }
2104
+ }
2105
+ ]
2106
+ },
2107
+ {
2108
+ "kind": "field",
2109
+ "name": "allActions",
2110
+ "type": {
2111
+ "text": "ActionMenuItem[]"
2112
+ },
2113
+ "readonly": true
2114
+ },
2115
+ {
2116
+ "kind": "field",
2117
+ "name": "rowData",
2118
+ "readonly": true
2119
+ },
2120
+ {
2121
+ "kind": "method",
2122
+ "name": "getLabel",
2123
+ "parameters": [
2124
+ {
2125
+ "name": "name",
2126
+ "type": {
2127
+ "text": "string | ((rowData: any) => string)"
2128
+ }
2129
+ }
2130
+ ]
2131
+ },
2132
+ {
2133
+ "kind": "method",
2134
+ "name": "getTemplate",
2135
+ "parameters": [
2136
+ {
2137
+ "name": "prefix",
2138
+ "type": {
2139
+ "text": "string"
2140
+ }
2141
+ }
2142
+ ]
2143
+ },
2144
+ {
2145
+ "kind": "field",
2146
+ "name": "_presentation",
2147
+ "type": {
2148
+ "text": "ComponentPresentation | null | undefined"
2149
+ },
2150
+ "privacy": "private",
2151
+ "default": "void 0",
2152
+ "inheritedFrom": {
2153
+ "name": "FoundationElement",
2154
+ "module": "src/foundation-element/foundation-element.ts"
2155
+ }
2156
+ },
2157
+ {
2158
+ "kind": "field",
2159
+ "name": "$presentation",
2160
+ "type": {
2161
+ "text": "ComponentPresentation | null"
2162
+ },
2163
+ "privacy": "public",
2164
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2165
+ "inheritedFrom": {
2166
+ "name": "FoundationElement",
2167
+ "module": "src/foundation-element/foundation-element.ts"
2168
+ }
2169
+ },
2170
+ {
2171
+ "kind": "field",
2172
+ "name": "template",
2173
+ "type": {
2174
+ "text": "ElementViewTemplate | void | null"
2175
+ },
2176
+ "privacy": "public",
2177
+ "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.",
2178
+ "inheritedFrom": {
2179
+ "name": "FoundationElement",
2180
+ "module": "src/foundation-element/foundation-element.ts"
2181
+ }
2182
+ },
2183
+ {
2184
+ "kind": "method",
2185
+ "name": "templateChanged",
2186
+ "privacy": "protected",
2172
2187
  "return": {
2173
2188
  "type": {
2174
2189
  "text": "void"
@@ -2238,78 +2253,107 @@
2238
2253
  }
2239
2254
  }
2240
2255
  ],
2241
- "events": [
2256
+ "attributes": [
2242
2257
  {
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
- }
2258
+ "name": "is-vertical",
2259
+ "type": {
2260
+ "text": "boolean"
2261
+ },
2262
+ "default": "false",
2263
+ "fieldName": "isVertical"
2264
+ },
2265
+ {
2266
+ "name": "add-default-actions",
2267
+ "type": {
2268
+ "text": "boolean"
2269
+ },
2270
+ "default": "true",
2271
+ "fieldName": "addDefaultActions"
2272
+ },
2273
+ {
2274
+ "name": "auto-close-on-action",
2275
+ "type": {
2276
+ "text": "boolean"
2277
+ },
2278
+ "default": "true",
2279
+ "fieldName": "autoCloseOnAction"
2280
+ },
2281
+ {
2282
+ "name": "name",
2283
+ "type": {
2284
+ "text": "string"
2285
+ },
2286
+ "default": "'Actions'",
2287
+ "fieldName": "name"
2288
+ },
2289
+ {
2290
+ "name": "open",
2291
+ "type": {
2292
+ "text": "boolean"
2293
+ },
2294
+ "default": "false",
2295
+ "fieldName": "open"
2296
+ },
2297
+ {
2298
+ "name": "buttonAppearance",
2299
+ "type": {
2300
+ "text": "string"
2301
+ },
2302
+ "fieldName": "buttonAppearance"
2303
+ },
2304
+ {
2305
+ "name": "hide-disabled",
2306
+ "type": {
2307
+ "text": "boolean"
2308
+ },
2309
+ "default": "false",
2310
+ "fieldName": "hideDisabled"
2311
+ },
2312
+ {
2313
+ "name": "hide-menu-single-option",
2314
+ "type": {
2315
+ "text": "boolean"
2316
+ },
2317
+ "default": "false",
2318
+ "fieldName": "hideMenuSingleOption"
2249
2319
  }
2250
- ]
2251
- },
2252
- {
2253
- "kind": "variable",
2254
- "name": "foundationAccordionItemShadowOptions",
2255
- "type": {
2256
- "text": "ShadowRootInit"
2257
- },
2258
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2259
- },
2260
- {
2261
- "kind": "variable",
2262
- "name": "defaultAccordionItemConfig",
2263
- "type": {
2264
- "text": "object"
2320
+ ],
2321
+ "superclass": {
2322
+ "name": "FoundationElement",
2323
+ "package": "@microsoft/fast-foundation"
2265
2324
  },
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}"
2325
+ "tagName": "%%prefix%%-actions-menu",
2326
+ "customElement": true
2267
2327
  },
2268
2328
  {
2269
2329
  "kind": "variable",
2270
- "name": "foundationAccordionItem",
2271
- "description": "The Foundation Accordion Item",
2330
+ "name": "foundationActionsMenu",
2331
+ "description": "The Foundation Actions Menu",
2272
2332
  "privacy": "public"
2273
2333
  }
2274
2334
  ],
2275
2335
  "exports": [
2276
2336
  {
2277
2337
  "kind": "js",
2278
- "name": "AccordionItem",
2338
+ "name": "ActionsMenu",
2279
2339
  "declaration": {
2280
- "name": "AccordionItem",
2281
- "module": "src/accordion-item/accordion-item.ts"
2340
+ "name": "ActionsMenu",
2341
+ "module": "src/actions-menu/actions-menu.ts"
2282
2342
  }
2283
2343
  },
2284
2344
  {
2285
2345
  "kind": "js",
2286
- "name": "foundationAccordionItemShadowOptions",
2346
+ "name": "foundationActionsMenu",
2287
2347
  "declaration": {
2288
- "name": "foundationAccordionItemShadowOptions",
2289
- "module": "src/accordion-item/accordion-item.ts"
2290
- }
2291
- },
2292
- {
2293
- "kind": "js",
2294
- "name": "defaultAccordionItemConfig",
2295
- "declaration": {
2296
- "name": "defaultAccordionItemConfig",
2297
- "module": "src/accordion-item/accordion-item.ts"
2298
- }
2299
- },
2300
- {
2301
- "kind": "js",
2302
- "name": "foundationAccordionItem",
2303
- "declaration": {
2304
- "name": "foundationAccordionItem",
2305
- "module": "src/accordion-item/accordion-item.ts"
2348
+ "name": "foundationActionsMenu",
2349
+ "module": "src/actions-menu/actions-menu.ts"
2306
2350
  }
2307
2351
  }
2308
2352
  ]
2309
2353
  },
2310
2354
  {
2311
2355
  "kind": "javascript-module",
2312
- "path": "src/accordion-item/index.ts",
2356
+ "path": "src/actions-menu/index.ts",
2313
2357
  "declarations": [],
2314
2358
  "exports": [
2315
2359
  {
@@ -2317,7 +2361,7 @@
2317
2361
  "name": "*",
2318
2362
  "declaration": {
2319
2363
  "name": "*",
2320
- "package": "./accordion-item.template"
2364
+ "package": "./actions-menu.styles"
2321
2365
  }
2322
2366
  },
2323
2367
  {
@@ -2325,7 +2369,7 @@
2325
2369
  "name": "*",
2326
2370
  "declaration": {
2327
2371
  "name": "*",
2328
- "package": "./accordion-item.styles"
2372
+ "package": "./actions-menu.template"
2329
2373
  }
2330
2374
  },
2331
2375
  {
@@ -2333,210 +2377,122 @@
2333
2377
  "name": "*",
2334
2378
  "declaration": {
2335
2379
  "name": "*",
2336
- "package": "./accordion-item"
2380
+ "package": "./actions-menu"
2337
2381
  }
2338
2382
  }
2339
2383
  ]
2340
2384
  },
2341
2385
  {
2342
2386
  "kind": "javascript-module",
2343
- "path": "src/actions-menu/actions-menu.styles.ts",
2387
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2344
2388
  "declarations": [
2345
2389
  {
2346
- "kind": "function",
2347
- "name": "actionsMenuBaseStyles",
2348
- "return": {
2349
- "type": {
2350
- "text": "ElementStyles"
2351
- }
2352
- },
2353
- "parameters": [
2354
- {
2355
- "name": "context",
2356
- "type": {
2357
- "text": "ElementDefinitionContext"
2358
- }
2359
- },
2360
- {
2361
- "name": "definition",
2362
- "type": {
2363
- "text": "FoundationElementDefinition"
2364
- }
2365
- }
2366
- ]
2367
- },
2368
- {
2369
- "kind": "function",
2370
- "name": "foundationActionsMenuStyles",
2371
- "return": {
2372
- "type": {
2373
- "text": "ElementStyles"
2374
- }
2375
- },
2376
- "parameters": [
2377
- {
2378
- "name": "context",
2379
- "type": {
2380
- "text": "ElementDefinitionContext"
2381
- }
2382
- },
2383
- {
2384
- "name": "definition",
2385
- "type": {
2386
- "text": "FoundationElementDefinition"
2387
- }
2388
- }
2389
- ]
2390
+ "kind": "variable",
2391
+ "name": "foundationAiCriteriaSearchStyles",
2392
+ "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`"
2390
2393
  }
2391
2394
  ],
2392
2395
  "exports": [
2393
2396
  {
2394
2397
  "kind": "js",
2395
- "name": "actionsMenuBaseStyles",
2396
- "declaration": {
2397
- "name": "actionsMenuBaseStyles",
2398
- "module": "src/actions-menu/actions-menu.styles.ts"
2399
- }
2400
- },
2401
- {
2402
- "kind": "js",
2403
- "name": "foundationActionsMenuStyles",
2398
+ "name": "foundationAiCriteriaSearchStyles",
2404
2399
  "declaration": {
2405
- "name": "foundationActionsMenuStyles",
2406
- "module": "src/actions-menu/actions-menu.styles.ts"
2400
+ "name": "foundationAiCriteriaSearchStyles",
2401
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2407
2402
  }
2408
2403
  }
2409
2404
  ]
2410
2405
  },
2411
2406
  {
2412
2407
  "kind": "javascript-module",
2413
- "path": "src/actions-menu/actions-menu.template.ts",
2408
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2414
2409
  "declarations": [
2415
- {
2416
- "kind": "function",
2417
- "name": "menuTemplate",
2418
- "parameters": [
2419
- {
2420
- "name": "prefix",
2421
- "type": {
2422
- "text": "string"
2423
- }
2424
- }
2425
- ]
2426
- },
2427
- {
2428
- "kind": "function",
2429
- "name": "singleOptionTemplate",
2430
- "parameters": [
2431
- {
2432
- "name": "prefix",
2433
- "type": {
2434
- "text": "string"
2435
- }
2436
- }
2437
- ]
2438
- },
2439
2410
  {
2440
2411
  "kind": "variable",
2441
- "name": "foundationActionsMenuTemplate",
2412
+ "name": "foundationAiCriteriaSearchTemplate",
2442
2413
  "type": {
2443
- "text": "ViewTemplate<ActionsMenu>"
2414
+ "text": "ViewTemplate<AiCriteriaSearch>"
2444
2415
  },
2445
- "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`"
2416
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2446
2417
  }
2447
2418
  ],
2448
2419
  "exports": [
2449
2420
  {
2450
2421
  "kind": "js",
2451
- "name": "menuTemplate",
2452
- "declaration": {
2453
- "name": "menuTemplate",
2454
- "module": "src/actions-menu/actions-menu.template.ts"
2455
- }
2456
- },
2457
- {
2458
- "kind": "js",
2459
- "name": "singleOptionTemplate",
2460
- "declaration": {
2461
- "name": "singleOptionTemplate",
2462
- "module": "src/actions-menu/actions-menu.template.ts"
2463
- }
2464
- },
2465
- {
2466
- "kind": "js",
2467
- "name": "foundationActionsMenuTemplate",
2422
+ "name": "foundationAiCriteriaSearchTemplate",
2468
2423
  "declaration": {
2469
- "name": "foundationActionsMenuTemplate",
2470
- "module": "src/actions-menu/actions-menu.template.ts"
2424
+ "name": "foundationAiCriteriaSearchTemplate",
2425
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2471
2426
  }
2472
2427
  }
2473
2428
  ]
2474
2429
  },
2475
2430
  {
2476
2431
  "kind": "javascript-module",
2477
- "path": "src/actions-menu/actions-menu.ts",
2432
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2478
2433
  "declarations": [
2479
2434
  {
2480
2435
  "kind": "class",
2481
- "description": "",
2482
- "name": "ActionsMenu",
2436
+ "description": "Natural-language criteria search input with AI interpretation.",
2437
+ "name": "AiCriteriaSearch",
2483
2438
  "members": [
2484
2439
  {
2485
2440
  "kind": "field",
2486
- "name": "actions",
2441
+ "name": "aiProvider",
2487
2442
  "type": {
2488
- "text": "ActionMenuItem[]"
2443
+ "text": "AIProvider"
2489
2444
  }
2490
2445
  },
2491
2446
  {
2492
2447
  "kind": "field",
2493
- "name": "isVertical",
2448
+ "name": "placeholder",
2494
2449
  "type": {
2495
- "text": "boolean"
2450
+ "text": "string"
2496
2451
  },
2497
- "default": "false"
2452
+ "default": "'Describe your search criteria in natural language...'"
2498
2453
  },
2499
2454
  {
2500
2455
  "kind": "field",
2501
- "name": "addDefaultActions",
2456
+ "name": "disabled",
2502
2457
  "type": {
2503
2458
  "text": "boolean"
2504
- },
2505
- "default": "true"
2459
+ }
2506
2460
  },
2507
2461
  {
2508
2462
  "kind": "field",
2509
- "name": "autoCloseOnAction",
2463
+ "name": "inputValue",
2510
2464
  "type": {
2511
- "text": "boolean"
2465
+ "text": "string"
2512
2466
  },
2513
- "default": "true"
2467
+ "default": "''"
2514
2468
  },
2515
2469
  {
2516
2470
  "kind": "field",
2517
- "name": "classNames",
2471
+ "name": "isInterpreting",
2518
2472
  "type": {
2519
- "text": "string"
2520
- }
2473
+ "text": "boolean"
2474
+ },
2475
+ "default": "false"
2521
2476
  },
2522
2477
  {
2523
2478
  "kind": "field",
2524
- "name": "definition",
2479
+ "name": "lastValidCriteria",
2525
2480
  "type": {
2526
- "text": "any"
2527
- }
2481
+ "text": "string | null"
2482
+ },
2483
+ "default": "null"
2528
2484
  },
2529
2485
  {
2530
2486
  "kind": "field",
2531
- "name": "name",
2487
+ "name": "activeGroups",
2532
2488
  "type": {
2533
- "text": "string"
2489
+ "text": "CriteriaGroup[]"
2534
2490
  },
2535
- "default": "'Actions'"
2491
+ "default": "[]"
2536
2492
  },
2537
2493
  {
2538
2494
  "kind": "field",
2539
- "name": "open",
2495
+ "name": "showingChips",
2540
2496
  "type": {
2541
2497
  "text": "boolean"
2542
2498
  },
@@ -2544,14 +2500,15 @@
2544
2500
  },
2545
2501
  {
2546
2502
  "kind": "field",
2547
- "name": "buttonAppearance",
2503
+ "name": "fieldMetadata",
2548
2504
  "type": {
2549
- "text": "string"
2550
- }
2505
+ "text": "MetadataDetail[] | string[]"
2506
+ },
2507
+ "default": "[]"
2551
2508
  },
2552
2509
  {
2553
2510
  "kind": "field",
2554
- "name": "hideDisabled",
2511
+ "name": "isRecording",
2555
2512
  "type": {
2556
2513
  "text": "boolean"
2557
2514
  },
@@ -2559,102 +2516,125 @@
2559
2516
  },
2560
2517
  {
2561
2518
  "kind": "field",
2562
- "name": "hideMenuSingleOption",
2519
+ "name": "textAreaRef",
2563
2520
  "type": {
2564
- "text": "boolean"
2521
+ "text": "HTMLTextAreaElement"
2565
2522
  },
2566
- "default": "false"
2523
+ "privacy": "public"
2567
2524
  },
2568
2525
  {
2569
2526
  "kind": "field",
2570
- "name": "singleOption",
2527
+ "name": "stopRecording",
2571
2528
  "type": {
2572
- "text": "ActionMenuItem"
2573
- }
2529
+ "text": "(() => void) | null"
2530
+ },
2531
+ "privacy": "private",
2532
+ "default": "null"
2574
2533
  },
2575
2534
  {
2576
2535
  "kind": "field",
2577
- "name": "actionsMenu",
2536
+ "name": "speechApplyDebounceTimer",
2578
2537
  "type": {
2579
- "text": "HTMLElement"
2580
- }
2538
+ "text": "ReturnType<typeof setTimeout> | null"
2539
+ },
2540
+ "privacy": "private",
2541
+ "default": "null"
2542
+ },
2543
+ {
2544
+ "kind": "field",
2545
+ "name": "speechAvailable",
2546
+ "type": {
2547
+ "text": "boolean"
2548
+ },
2549
+ "readonly": true
2550
+ },
2551
+ {
2552
+ "kind": "field",
2553
+ "name": "criteriaChips",
2554
+ "type": {
2555
+ "text": "CriteriaChip[]"
2556
+ },
2557
+ "readonly": true
2581
2558
  },
2582
2559
  {
2583
2560
  "kind": "method",
2584
- "name": "definitionChanged",
2585
- "privacy": "protected",
2561
+ "name": "getFieldLabel",
2562
+ "privacy": "private",
2563
+ "return": {
2564
+ "type": {
2565
+ "text": "string"
2566
+ }
2567
+ },
2586
2568
  "parameters": [
2587
2569
  {
2588
- "name": "oldValue",
2589
- "type": {
2590
- "text": "any"
2591
- }
2592
- },
2593
- {
2594
- "name": "newValue",
2570
+ "name": "fieldName",
2595
2571
  "type": {
2596
- "text": "any"
2572
+ "text": "string"
2597
2573
  }
2598
2574
  }
2599
2575
  ]
2600
2576
  },
2601
2577
  {
2602
2578
  "kind": "method",
2603
- "name": "openChanged",
2604
- "privacy": "protected"
2605
- },
2606
- {
2607
- "kind": "method",
2608
- "name": "toggleActionsMenuVisibility"
2579
+ "name": "toggleCriteriaView",
2580
+ "return": {
2581
+ "type": {
2582
+ "text": "void"
2583
+ }
2584
+ }
2609
2585
  },
2610
2586
  {
2611
2587
  "kind": "method",
2612
- "name": "onActionMenuItemClick",
2588
+ "name": "removeChip",
2589
+ "return": {
2590
+ "type": {
2591
+ "text": "void"
2592
+ }
2593
+ },
2613
2594
  "parameters": [
2614
2595
  {
2615
- "name": "callback",
2596
+ "name": "groupIndex",
2616
2597
  "type": {
2617
- "text": "(rowData) => void | any"
2598
+ "text": "number"
2599
+ }
2600
+ },
2601
+ {
2602
+ "name": "clauseIndex",
2603
+ "type": {
2604
+ "text": "number"
2618
2605
  }
2619
2606
  }
2620
2607
  ]
2621
2608
  },
2622
2609
  {
2623
- "kind": "field",
2624
- "name": "allActions",
2625
- "type": {
2626
- "text": "ActionMenuItem[]"
2627
- },
2628
- "readonly": true
2610
+ "kind": "method",
2611
+ "name": "clearChips",
2612
+ "return": {
2613
+ "type": {
2614
+ "text": "void"
2615
+ }
2616
+ }
2629
2617
  },
2630
2618
  {
2631
- "kind": "field",
2632
- "name": "rowData",
2633
- "readonly": true
2619
+ "kind": "method",
2620
+ "name": "handleSubmit"
2634
2621
  },
2635
2622
  {
2636
2623
  "kind": "method",
2637
- "name": "getLabel",
2638
- "parameters": [
2639
- {
2640
- "name": "name",
2641
- "type": {
2642
- "text": "string | ((rowData: any) => string)"
2643
- }
2644
- }
2645
- ]
2624
+ "name": "handleBlur"
2646
2625
  },
2647
2626
  {
2648
2627
  "kind": "method",
2649
- "name": "getTemplate",
2650
- "parameters": [
2651
- {
2652
- "name": "prefix",
2653
- "type": {
2654
- "text": "string"
2655
- }
2656
- }
2657
- ]
2628
+ "name": "clear"
2629
+ },
2630
+ {
2631
+ "kind": "method",
2632
+ "name": "toggleSpeechInput"
2633
+ },
2634
+ {
2635
+ "kind": "method",
2636
+ "name": "clearSpeechApplyDebounce",
2637
+ "privacy": "private"
2658
2638
  },
2659
2639
  {
2660
2640
  "kind": "field",
@@ -2768,339 +2748,520 @@
2768
2748
  }
2769
2749
  }
2770
2750
  ],
2771
- "attributes": [
2772
- {
2773
- "name": "is-vertical",
2774
- "type": {
2775
- "text": "boolean"
2776
- },
2777
- "default": "false",
2778
- "fieldName": "isVertical"
2779
- },
2780
- {
2781
- "name": "add-default-actions",
2782
- "type": {
2783
- "text": "boolean"
2784
- },
2785
- "default": "true",
2786
- "fieldName": "addDefaultActions"
2787
- },
2788
- {
2789
- "name": "auto-close-on-action",
2790
- "type": {
2791
- "text": "boolean"
2792
- },
2793
- "default": "true",
2794
- "fieldName": "autoCloseOnAction"
2795
- },
2751
+ "events": [
2796
2752
  {
2797
- "name": "name",
2798
- "type": {
2799
- "text": "string"
2800
- },
2801
- "default": "'Actions'",
2802
- "fieldName": "name"
2753
+ "description": "Fired when interpreted criteria is applied or cleared",
2754
+ "name": "criteria-changed"
2803
2755
  },
2804
2756
  {
2805
- "name": "open",
2806
- "type": {
2807
- "text": "boolean"
2808
- },
2809
- "default": "false",
2810
- "fieldName": "open"
2811
- },
2757
+ "description": "Fired when interpreted criteria contains invalid clauses",
2758
+ "name": "validation-errors"
2759
+ }
2760
+ ],
2761
+ "attributes": [
2812
2762
  {
2813
- "name": "buttonAppearance",
2763
+ "name": "placeholder",
2814
2764
  "type": {
2815
2765
  "text": "string"
2816
2766
  },
2817
- "fieldName": "buttonAppearance"
2818
- },
2819
- {
2820
- "name": "hide-disabled",
2821
- "type": {
2822
- "text": "boolean"
2823
- },
2824
- "default": "false",
2825
- "fieldName": "hideDisabled"
2767
+ "default": "'Describe your search criteria in natural language...'",
2768
+ "fieldName": "placeholder"
2826
2769
  },
2827
2770
  {
2828
- "name": "hide-menu-single-option",
2829
2771
  "type": {
2830
2772
  "text": "boolean"
2831
2773
  },
2832
- "default": "false",
2833
- "fieldName": "hideMenuSingleOption"
2774
+ "fieldName": "disabled"
2834
2775
  }
2835
2776
  ],
2836
2777
  "superclass": {
2837
2778
  "name": "FoundationElement",
2838
2779
  "package": "@microsoft/fast-foundation"
2839
2780
  },
2840
- "tagName": "%%prefix%%-actions-menu",
2781
+ "tagName": "%%prefix%%-ai-criteria-search",
2841
2782
  "customElement": true
2842
2783
  },
2843
2784
  {
2844
2785
  "kind": "variable",
2845
- "name": "foundationActionsMenu",
2846
- "description": "The Foundation Actions Menu",
2847
- "privacy": "public"
2786
+ "name": "foundationAiCriteriaSearchShadowOptions",
2787
+ "type": {
2788
+ "text": "ShadowRootInit"
2789
+ },
2790
+ "default": "undefined"
2791
+ },
2792
+ {
2793
+ "kind": "variable",
2794
+ "name": "defaultAiCriteriaSearchConfig",
2795
+ "type": {
2796
+ "text": "object"
2797
+ },
2798
+ "default": "{}"
2799
+ },
2800
+ {
2801
+ "kind": "variable",
2802
+ "name": "foundationAiCriteriaSearch"
2848
2803
  }
2849
2804
  ],
2850
2805
  "exports": [
2851
2806
  {
2852
2807
  "kind": "js",
2853
- "name": "ActionsMenu",
2808
+ "name": "AiCriteriaSearch",
2854
2809
  "declaration": {
2855
- "name": "ActionsMenu",
2856
- "module": "src/actions-menu/actions-menu.ts"
2810
+ "name": "AiCriteriaSearch",
2811
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2857
2812
  }
2858
2813
  },
2859
2814
  {
2860
2815
  "kind": "js",
2861
- "name": "foundationActionsMenu",
2816
+ "name": "foundationAiCriteriaSearchShadowOptions",
2862
2817
  "declaration": {
2863
- "name": "foundationActionsMenu",
2864
- "module": "src/actions-menu/actions-menu.ts"
2818
+ "name": "foundationAiCriteriaSearchShadowOptions",
2819
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2820
+ }
2821
+ },
2822
+ {
2823
+ "kind": "js",
2824
+ "name": "defaultAiCriteriaSearchConfig",
2825
+ "declaration": {
2826
+ "name": "defaultAiCriteriaSearchConfig",
2827
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2828
+ }
2829
+ },
2830
+ {
2831
+ "kind": "js",
2832
+ "name": "foundationAiCriteriaSearch",
2833
+ "declaration": {
2834
+ "name": "foundationAiCriteriaSearch",
2835
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
2865
2836
  }
2866
2837
  }
2867
2838
  ]
2868
2839
  },
2869
2840
  {
2870
2841
  "kind": "javascript-module",
2871
- "path": "src/actions-menu/index.ts",
2842
+ "path": "src/ai-criteria-search/index.ts",
2872
2843
  "declarations": [],
2873
2844
  "exports": [
2874
2845
  {
2875
2846
  "kind": "js",
2876
- "name": "*",
2847
+ "name": "AiCriteriaSearch",
2877
2848
  "declaration": {
2878
- "name": "*",
2879
- "package": "./actions-menu.styles"
2849
+ "name": "AiCriteriaSearch",
2850
+ "module": "./ai-criteria-search"
2880
2851
  }
2881
2852
  },
2882
2853
  {
2883
2854
  "kind": "js",
2884
- "name": "*",
2855
+ "name": "defaultAiCriteriaSearchConfig",
2885
2856
  "declaration": {
2886
- "name": "*",
2887
- "package": "./actions-menu.template"
2857
+ "name": "defaultAiCriteriaSearchConfig",
2858
+ "module": "./ai-criteria-search"
2888
2859
  }
2889
2860
  },
2890
2861
  {
2891
2862
  "kind": "js",
2892
- "name": "*",
2863
+ "name": "foundationAiCriteriaSearch",
2893
2864
  "declaration": {
2894
- "name": "*",
2895
- "package": "./actions-menu"
2865
+ "name": "foundationAiCriteriaSearch",
2866
+ "module": "./ai-criteria-search"
2896
2867
  }
2897
- }
2898
- ]
2899
- },
2900
- {
2901
- "kind": "javascript-module",
2902
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2903
- "declarations": [
2868
+ },
2904
2869
  {
2905
- "kind": "variable",
2906
- "name": "foundationAiCriteriaSearchStyles",
2907
- "default": "css`\n :host {\n display: block;\n width: 800px;\n }\n\n .ai-criteria-search {\n display: flex;\n flex-direction: column;\n gap: calc(${designUnit} * 2px);\n }\n\n .ai-criteria-search-row {\n display: flex;\n flex-direction: row;\n gap: calc(${designUnit} * 2px);\n align-items: center;\n }\n\n .criteria-input {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n }\n\n .criteria-chips-inline {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: calc(${designUnit} * 1px);\n overflow-x: auto;\n padding: 0 calc(${designUnit} * 2px);\n background: var(--neutral-fill-input-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n scrollbar-width: none;\n }\n\n .criteria-chips-inline::-webkit-scrollbar {\n display: none;\n }\n\n .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .criteria-toggle-button,\n .criteria-clear-button {\n flex-shrink: 0;\n }\n\n .criteria-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: calc(${designUnit} * 1px);\n padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 2px);\n background: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n border-radius: calc(${designUnit} * 4px);\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .criteria-chip-field {\n font-weight: 600;\n }\n\n .criteria-chip-operator {\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-style: italic;\n }\n\n .criteria-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n padding: 0;\n margin-left: calc(${designUnit} * 0.5px);\n background: none;\n border: none;\n cursor: pointer;\n color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));\n font-size: 10px;\n border-radius: 50%;\n line-height: 1;\n }\n\n .criteria-chip-remove:hover {\n background: var(--neutral-fill-hover);\n color: var(--neutral-foreground-rest);\n }\n`"
2908
- }
2909
- ],
2910
- "exports": [
2870
+ "kind": "js",
2871
+ "name": "foundationAiCriteriaSearchShadowOptions",
2872
+ "declaration": {
2873
+ "name": "foundationAiCriteriaSearchShadowOptions",
2874
+ "module": "./ai-criteria-search"
2875
+ }
2876
+ },
2911
2877
  {
2912
2878
  "kind": "js",
2913
2879
  "name": "foundationAiCriteriaSearchStyles",
2914
2880
  "declaration": {
2915
2881
  "name": "foundationAiCriteriaSearchStyles",
2916
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2882
+ "module": "./ai-criteria-search.styles"
2917
2883
  }
2918
- }
2919
- ]
2920
- },
2921
- {
2922
- "kind": "javascript-module",
2923
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2924
- "declarations": [
2925
- {
2926
- "kind": "variable",
2927
- "name": "foundationAiCriteriaSearchTemplate",
2928
- "type": {
2929
- "text": "ViewTemplate<AiCriteriaSearch>"
2930
- },
2931
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2932
- }
2933
- ],
2934
- "exports": [
2884
+ },
2935
2885
  {
2936
2886
  "kind": "js",
2937
2887
  "name": "foundationAiCriteriaSearchTemplate",
2938
2888
  "declaration": {
2939
2889
  "name": "foundationAiCriteriaSearchTemplate",
2940
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2890
+ "module": "./ai-criteria-search.template"
2941
2891
  }
2942
- }
2943
- ]
2944
- },
2945
- {
2892
+ },
2893
+ {
2894
+ "kind": "js",
2895
+ "name": "*",
2896
+ "declaration": {
2897
+ "name": "*",
2898
+ "package": "./validation/criteria-ir"
2899
+ }
2900
+ },
2901
+ {
2902
+ "kind": "js",
2903
+ "name": "*",
2904
+ "declaration": {
2905
+ "name": "*",
2906
+ "package": "./validation/operator-map"
2907
+ }
2908
+ },
2909
+ {
2910
+ "kind": "js",
2911
+ "name": "*",
2912
+ "declaration": {
2913
+ "name": "*",
2914
+ "package": "./validation/schema-validator"
2915
+ }
2916
+ }
2917
+ ]
2918
+ },
2919
+ {
2946
2920
  "kind": "javascript-module",
2947
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2921
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
2948
2922
  "declarations": [
2949
2923
  {
2950
- "kind": "class",
2951
- "description": "Natural-language criteria search input with AI interpretation.",
2952
- "name": "AiCriteriaSearch",
2953
- "members": [
2924
+ "kind": "function",
2925
+ "name": "formatValidationErrors",
2926
+ "return": {
2927
+ "type": {
2928
+ "text": "string"
2929
+ }
2930
+ },
2931
+ "parameters": [
2954
2932
  {
2955
- "kind": "field",
2956
- "name": "aiProvider",
2933
+ "name": "errors",
2957
2934
  "type": {
2958
- "text": "AIProvider"
2935
+ "text": "ValidationError[]"
2959
2936
  }
2960
- },
2937
+ }
2938
+ ],
2939
+ "description": "Formats validation errors into a user-friendly message."
2940
+ },
2941
+ {
2942
+ "kind": "function",
2943
+ "name": "showCriteriaError",
2944
+ "return": {
2945
+ "type": {
2946
+ "text": "void"
2947
+ }
2948
+ },
2949
+ "parameters": [
2961
2950
  {
2962
- "kind": "field",
2963
- "name": "placeholder",
2951
+ "name": "title",
2964
2952
  "type": {
2965
2953
  "text": "string"
2966
2954
  },
2967
- "default": "'Describe your search criteria in natural language...'"
2955
+ "description": "Notification title (e.g. \"Criteria validation error\")"
2968
2956
  },
2969
2957
  {
2970
- "kind": "field",
2971
- "name": "disabled",
2958
+ "name": "body",
2972
2959
  "type": {
2973
- "text": "boolean"
2974
- }
2960
+ "text": "string"
2961
+ },
2962
+ "description": "Error message to display"
2975
2963
  },
2976
2964
  {
2977
- "kind": "field",
2978
- "name": "inputValue",
2965
+ "name": "tagName",
2979
2966
  "type": {
2980
2967
  "text": "string"
2981
2968
  },
2982
- "default": "''"
2969
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
2970
+ }
2971
+ ],
2972
+ "description": "Shows a criteria error as a toast notification."
2973
+ }
2974
+ ],
2975
+ "exports": [
2976
+ {
2977
+ "kind": "js",
2978
+ "name": "formatValidationErrors",
2979
+ "declaration": {
2980
+ "name": "formatValidationErrors",
2981
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2982
+ }
2983
+ },
2984
+ {
2985
+ "kind": "js",
2986
+ "name": "showCriteriaError",
2987
+ "declaration": {
2988
+ "name": "showCriteriaError",
2989
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
2990
+ }
2991
+ }
2992
+ ]
2993
+ },
2994
+ {
2995
+ "kind": "javascript-module",
2996
+ "path": "src/accordion/accordion.styles.ts",
2997
+ "declarations": [
2998
+ {
2999
+ "kind": "function",
3000
+ "name": "foundationAccordionStyles",
3001
+ "return": {
3002
+ "type": {
3003
+ "text": "ElementStyles"
3004
+ }
3005
+ },
3006
+ "parameters": [
3007
+ {
3008
+ "name": "context",
3009
+ "type": {
3010
+ "text": "ElementDefinitionContext"
3011
+ }
2983
3012
  },
2984
3013
  {
2985
- "kind": "field",
2986
- "name": "isInterpreting",
3014
+ "name": "definition",
2987
3015
  "type": {
2988
- "text": "boolean"
2989
- },
2990
- "default": "false"
3016
+ "text": "FoundationElementDefinition"
3017
+ }
3018
+ }
3019
+ ]
3020
+ }
3021
+ ],
3022
+ "exports": [
3023
+ {
3024
+ "kind": "js",
3025
+ "name": "foundationAccordionStyles",
3026
+ "declaration": {
3027
+ "name": "foundationAccordionStyles",
3028
+ "module": "src/accordion/accordion.styles.ts"
3029
+ }
3030
+ }
3031
+ ]
3032
+ },
3033
+ {
3034
+ "kind": "javascript-module",
3035
+ "path": "src/accordion/accordion.template.ts",
3036
+ "declarations": [
3037
+ {
3038
+ "kind": "function",
3039
+ "name": "foundationAccordionTemplate",
3040
+ "return": {
3041
+ "type": {
3042
+ "text": "ViewTemplate<Accordion>"
3043
+ }
3044
+ },
3045
+ "parameters": [
3046
+ {
3047
+ "name": "context",
3048
+ "type": {
3049
+ "text": "ElementDefinitionContext"
3050
+ }
2991
3051
  },
2992
3052
  {
2993
- "kind": "field",
2994
- "name": "lastValidCriteria",
3053
+ "name": "definition",
2995
3054
  "type": {
2996
- "text": "string | null"
3055
+ "text": "FoundationElementDefinition"
3056
+ }
3057
+ }
3058
+ ]
3059
+ }
3060
+ ],
3061
+ "exports": [
3062
+ {
3063
+ "kind": "js",
3064
+ "name": "foundationAccordionTemplate",
3065
+ "declaration": {
3066
+ "name": "foundationAccordionTemplate",
3067
+ "module": "src/accordion/accordion.template.ts"
3068
+ }
3069
+ }
3070
+ ]
3071
+ },
3072
+ {
3073
+ "kind": "javascript-module",
3074
+ "path": "src/accordion/accordion.ts",
3075
+ "declarations": [
3076
+ {
3077
+ "kind": "class",
3078
+ "description": "",
3079
+ "name": "Accordion",
3080
+ "superclass": {
3081
+ "name": "FASTAccordion",
3082
+ "package": "@microsoft/fast-foundation"
3083
+ },
3084
+ "tagName": "%%prefix%%-accordion",
3085
+ "customElement": true,
3086
+ "attributes": [
3087
+ {
3088
+ "name": "expand-mode",
3089
+ "type": {
3090
+ "text": "AccordionExpandMode"
2997
3091
  },
2998
- "default": "null"
2999
- },
3092
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3093
+ "fieldName": "expandmode",
3094
+ "inheritedFrom": {
3095
+ "name": "Accordion",
3096
+ "module": "src/accordion/accordion.ts"
3097
+ }
3098
+ }
3099
+ ],
3100
+ "members": [
3000
3101
  {
3001
3102
  "kind": "field",
3002
- "name": "activeGroups",
3103
+ "name": "expandmode",
3003
3104
  "type": {
3004
- "text": "CriteriaGroup[]"
3105
+ "text": "AccordionExpandMode"
3005
3106
  },
3006
- "default": "[]"
3107
+ "privacy": "public",
3108
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
3109
+ "inheritedFrom": {
3110
+ "name": "Accordion",
3111
+ "module": "src/accordion/accordion.ts"
3112
+ }
3007
3113
  },
3008
3114
  {
3009
3115
  "kind": "field",
3010
- "name": "showingChips",
3116
+ "name": "activeid",
3011
3117
  "type": {
3012
- "text": "boolean"
3118
+ "text": "string | null"
3013
3119
  },
3014
- "default": "false"
3120
+ "privacy": "private",
3121
+ "inheritedFrom": {
3122
+ "name": "Accordion",
3123
+ "module": "src/accordion/accordion.ts"
3124
+ }
3015
3125
  },
3016
3126
  {
3017
3127
  "kind": "field",
3018
- "name": "fieldMetadata",
3128
+ "name": "activeItemIndex",
3019
3129
  "type": {
3020
- "text": "MetadataDetail[] | string[]"
3130
+ "text": "number"
3021
3131
  },
3022
- "default": "[]"
3132
+ "privacy": "private",
3133
+ "default": "0",
3134
+ "inheritedFrom": {
3135
+ "name": "Accordion",
3136
+ "module": "src/accordion/accordion.ts"
3137
+ }
3023
3138
  },
3024
3139
  {
3025
3140
  "kind": "field",
3026
- "name": "isRecording",
3141
+ "name": "accordionIds",
3027
3142
  "type": {
3028
- "text": "boolean"
3143
+ "text": "Array<string | null>"
3029
3144
  },
3030
- "default": "false"
3145
+ "privacy": "private",
3146
+ "inheritedFrom": {
3147
+ "name": "Accordion",
3148
+ "module": "src/accordion/accordion.ts"
3149
+ }
3031
3150
  },
3032
3151
  {
3033
3152
  "kind": "field",
3034
- "name": "textAreaRef",
3035
- "type": {
3036
- "text": "HTMLTextAreaElement"
3153
+ "name": "change",
3154
+ "privacy": "private",
3155
+ "inheritedFrom": {
3156
+ "name": "Accordion",
3157
+ "module": "src/accordion/accordion.ts"
3158
+ }
3159
+ },
3160
+ {
3161
+ "kind": "method",
3162
+ "name": "findExpandedItem",
3163
+ "privacy": "private",
3164
+ "return": {
3165
+ "type": {
3166
+ "text": "AccordionItem | null"
3167
+ }
3037
3168
  },
3038
- "privacy": "public"
3169
+ "inheritedFrom": {
3170
+ "name": "Accordion",
3171
+ "module": "src/accordion/accordion.ts"
3172
+ }
3039
3173
  },
3040
3174
  {
3041
3175
  "kind": "field",
3042
- "name": "stopRecording",
3043
- "type": {
3044
- "text": "(() => void) | null"
3045
- },
3176
+ "name": "setItems",
3046
3177
  "privacy": "private",
3047
- "default": "null"
3178
+ "inheritedFrom": {
3179
+ "name": "Accordion",
3180
+ "module": "src/accordion/accordion.ts"
3181
+ }
3048
3182
  },
3049
3183
  {
3050
- "kind": "field",
3051
- "name": "speechApplyDebounceTimer",
3052
- "type": {
3053
- "text": "ReturnType<typeof setTimeout> | null"
3054
- },
3184
+ "kind": "method",
3185
+ "name": "resetItems",
3055
3186
  "privacy": "private",
3056
- "default": "null"
3187
+ "return": {
3188
+ "type": {
3189
+ "text": "void"
3190
+ }
3191
+ },
3192
+ "inheritedFrom": {
3193
+ "name": "Accordion",
3194
+ "module": "src/accordion/accordion.ts"
3195
+ }
3057
3196
  },
3058
3197
  {
3059
3198
  "kind": "field",
3060
- "name": "speechAvailable",
3061
- "type": {
3062
- "text": "boolean"
3063
- },
3064
- "readonly": true
3199
+ "name": "removeItemListeners",
3200
+ "privacy": "private",
3201
+ "inheritedFrom": {
3202
+ "name": "Accordion",
3203
+ "module": "src/accordion/accordion.ts"
3204
+ }
3065
3205
  },
3066
3206
  {
3067
3207
  "kind": "field",
3068
- "name": "criteriaChips",
3069
- "type": {
3070
- "text": "CriteriaChip[]"
3071
- },
3072
- "readonly": true
3208
+ "name": "activeItemChange",
3209
+ "privacy": "private",
3210
+ "inheritedFrom": {
3211
+ "name": "Accordion",
3212
+ "module": "src/accordion/accordion.ts"
3213
+ }
3073
3214
  },
3074
3215
  {
3075
3216
  "kind": "method",
3076
- "name": "getFieldLabel",
3217
+ "name": "getItemIds",
3077
3218
  "privacy": "private",
3078
3219
  "return": {
3079
3220
  "type": {
3080
- "text": "string"
3221
+ "text": "Array<string | null>"
3081
3222
  }
3082
3223
  },
3083
- "parameters": [
3084
- {
3085
- "name": "fieldName",
3086
- "type": {
3087
- "text": "string"
3088
- }
3089
- }
3090
- ]
3224
+ "inheritedFrom": {
3225
+ "name": "Accordion",
3226
+ "module": "src/accordion/accordion.ts"
3227
+ }
3091
3228
  },
3092
3229
  {
3093
3230
  "kind": "method",
3094
- "name": "toggleCriteriaView",
3231
+ "name": "isSingleExpandMode",
3232
+ "privacy": "private",
3095
3233
  "return": {
3096
3234
  "type": {
3097
- "text": "void"
3235
+ "text": "boolean"
3098
3236
  }
3237
+ },
3238
+ "inheritedFrom": {
3239
+ "name": "Accordion",
3240
+ "module": "src/accordion/accordion.ts"
3241
+ }
3242
+ },
3243
+ {
3244
+ "kind": "field",
3245
+ "name": "handleItemKeyDown",
3246
+ "privacy": "private",
3247
+ "inheritedFrom": {
3248
+ "name": "Accordion",
3249
+ "module": "src/accordion/accordion.ts"
3250
+ }
3251
+ },
3252
+ {
3253
+ "kind": "field",
3254
+ "name": "handleItemFocus",
3255
+ "privacy": "private",
3256
+ "inheritedFrom": {
3257
+ "name": "Accordion",
3258
+ "module": "src/accordion/accordion.ts"
3099
3259
  }
3100
3260
  },
3101
3261
  {
3102
3262
  "kind": "method",
3103
- "name": "removeChip",
3263
+ "name": "adjust",
3264
+ "privacy": "private",
3104
3265
  "return": {
3105
3266
  "type": {
3106
3267
  "text": "void"
@@ -3108,49 +3269,31 @@
3108
3269
  },
3109
3270
  "parameters": [
3110
3271
  {
3111
- "name": "groupIndex",
3112
- "type": {
3113
- "text": "number"
3114
- }
3115
- },
3116
- {
3117
- "name": "clauseIndex",
3272
+ "name": "adjustment",
3118
3273
  "type": {
3119
3274
  "text": "number"
3120
3275
  }
3121
3276
  }
3122
- ]
3277
+ ],
3278
+ "inheritedFrom": {
3279
+ "name": "Accordion",
3280
+ "module": "src/accordion/accordion.ts"
3281
+ }
3123
3282
  },
3124
3283
  {
3125
3284
  "kind": "method",
3126
- "name": "clearChips",
3285
+ "name": "focusItem",
3286
+ "privacy": "private",
3127
3287
  "return": {
3128
3288
  "type": {
3129
3289
  "text": "void"
3130
3290
  }
3291
+ },
3292
+ "inheritedFrom": {
3293
+ "name": "Accordion",
3294
+ "module": "src/accordion/accordion.ts"
3131
3295
  }
3132
3296
  },
3133
- {
3134
- "kind": "method",
3135
- "name": "handleSubmit"
3136
- },
3137
- {
3138
- "kind": "method",
3139
- "name": "handleBlur"
3140
- },
3141
- {
3142
- "kind": "method",
3143
- "name": "clear"
3144
- },
3145
- {
3146
- "kind": "method",
3147
- "name": "toggleSpeechInput"
3148
- },
3149
- {
3150
- "kind": "method",
3151
- "name": "clearSpeechApplyDebounce",
3152
- "privacy": "private"
3153
- },
3154
3297
  {
3155
3298
  "kind": "field",
3156
3299
  "name": "_presentation",
@@ -3265,48 +3408,26 @@
3265
3408
  ],
3266
3409
  "events": [
3267
3410
  {
3268
- "description": "Fired when interpreted criteria is applied or cleared",
3269
- "name": "criteria-changed"
3270
- },
3271
- {
3272
- "description": "Fired when interpreted criteria contains invalid clauses",
3273
- "name": "validation-errors"
3274
- }
3275
- ],
3276
- "attributes": [
3277
- {
3278
- "name": "placeholder",
3279
- "type": {
3280
- "text": "string"
3281
- },
3282
- "default": "'Describe your search criteria in natural language...'",
3283
- "fieldName": "placeholder"
3284
- },
3285
- {
3286
- "type": {
3287
- "text": "boolean"
3288
- },
3289
- "fieldName": "disabled"
3411
+ "description": "Fires a custom 'change' event when the active item changes",
3412
+ "name": "change",
3413
+ "inheritedFrom": {
3414
+ "name": "Accordion",
3415
+ "module": "src/accordion/accordion.ts"
3416
+ }
3290
3417
  }
3291
- ],
3292
- "superclass": {
3293
- "name": "FoundationElement",
3294
- "package": "@microsoft/fast-foundation"
3295
- },
3296
- "tagName": "%%prefix%%-ai-criteria-search",
3297
- "customElement": true
3418
+ ]
3298
3419
  },
3299
3420
  {
3300
3421
  "kind": "variable",
3301
- "name": "foundationAiCriteriaSearchShadowOptions",
3422
+ "name": "foundationAccordionShadowOptions",
3302
3423
  "type": {
3303
3424
  "text": "ShadowRootInit"
3304
3425
  },
3305
- "default": "undefined"
3426
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3306
3427
  },
3307
3428
  {
3308
3429
  "kind": "variable",
3309
- "name": "defaultAiCriteriaSearchConfig",
3430
+ "name": "defaultAccordionConfig",
3310
3431
  "type": {
3311
3432
  "text": "object"
3312
3433
  },
@@ -3314,194 +3435,73 @@
3314
3435
  },
3315
3436
  {
3316
3437
  "kind": "variable",
3317
- "name": "foundationAiCriteriaSearch"
3438
+ "name": "foundationAccordion",
3439
+ "description": "The Foundation Accordion",
3440
+ "privacy": "public"
3318
3441
  }
3319
3442
  ],
3320
3443
  "exports": [
3321
3444
  {
3322
- "kind": "js",
3323
- "name": "AiCriteriaSearch",
3324
- "declaration": {
3325
- "name": "AiCriteriaSearch",
3326
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3327
- }
3328
- },
3329
- {
3330
- "kind": "js",
3331
- "name": "foundationAiCriteriaSearchShadowOptions",
3332
- "declaration": {
3333
- "name": "foundationAiCriteriaSearchShadowOptions",
3334
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3335
- }
3336
- },
3337
- {
3338
- "kind": "js",
3339
- "name": "defaultAiCriteriaSearchConfig",
3340
- "declaration": {
3341
- "name": "defaultAiCriteriaSearchConfig",
3342
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3343
- }
3344
- },
3345
- {
3346
- "kind": "js",
3347
- "name": "foundationAiCriteriaSearch",
3348
- "declaration": {
3349
- "name": "foundationAiCriteriaSearch",
3350
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
3351
- }
3352
- }
3353
- ]
3354
- },
3355
- {
3356
- "kind": "javascript-module",
3357
- "path": "src/ai-criteria-search/index.ts",
3358
- "declarations": [],
3359
- "exports": [
3360
- {
3361
- "kind": "js",
3362
- "name": "AiCriteriaSearch",
3363
- "declaration": {
3364
- "name": "AiCriteriaSearch",
3365
- "module": "./ai-criteria-search"
3366
- }
3367
- },
3368
- {
3369
- "kind": "js",
3370
- "name": "defaultAiCriteriaSearchConfig",
3371
- "declaration": {
3372
- "name": "defaultAiCriteriaSearchConfig",
3373
- "module": "./ai-criteria-search"
3374
- }
3375
- },
3376
- {
3377
- "kind": "js",
3378
- "name": "foundationAiCriteriaSearch",
3379
- "declaration": {
3380
- "name": "foundationAiCriteriaSearch",
3381
- "module": "./ai-criteria-search"
3382
- }
3383
- },
3384
- {
3385
- "kind": "js",
3386
- "name": "foundationAiCriteriaSearchShadowOptions",
3387
- "declaration": {
3388
- "name": "foundationAiCriteriaSearchShadowOptions",
3389
- "module": "./ai-criteria-search"
3390
- }
3391
- },
3392
- {
3393
- "kind": "js",
3394
- "name": "foundationAiCriteriaSearchStyles",
3395
- "declaration": {
3396
- "name": "foundationAiCriteriaSearchStyles",
3397
- "module": "./ai-criteria-search.styles"
3398
- }
3399
- },
3400
- {
3401
- "kind": "js",
3402
- "name": "foundationAiCriteriaSearchTemplate",
3403
- "declaration": {
3404
- "name": "foundationAiCriteriaSearchTemplate",
3405
- "module": "./ai-criteria-search.template"
3406
- }
3407
- },
3408
- {
3409
- "kind": "js",
3410
- "name": "*",
3411
- "declaration": {
3412
- "name": "*",
3413
- "package": "./validation/criteria-ir"
3414
- }
3415
- },
3416
- {
3417
- "kind": "js",
3418
- "name": "*",
3419
- "declaration": {
3420
- "name": "*",
3421
- "package": "./validation/operator-map"
3422
- }
3423
- },
3424
- {
3425
- "kind": "js",
3426
- "name": "*",
3427
- "declaration": {
3428
- "name": "*",
3429
- "package": "./validation/schema-validator"
3430
- }
3431
- }
3432
- ]
3433
- },
3434
- {
3435
- "kind": "javascript-module",
3436
- "path": "src/ai-criteria-search/validation-error-notification.ts",
3437
- "declarations": [
3438
- {
3439
- "kind": "function",
3440
- "name": "formatValidationErrors",
3441
- "return": {
3442
- "type": {
3443
- "text": "string"
3444
- }
3445
- },
3446
- "parameters": [
3447
- {
3448
- "name": "errors",
3449
- "type": {
3450
- "text": "ValidationError[]"
3451
- }
3452
- }
3453
- ],
3454
- "description": "Formats validation errors into a user-friendly message."
3455
- },
3456
- {
3457
- "kind": "function",
3458
- "name": "showCriteriaError",
3459
- "return": {
3460
- "type": {
3461
- "text": "void"
3462
- }
3463
- },
3464
- "parameters": [
3465
- {
3466
- "name": "title",
3467
- "type": {
3468
- "text": "string"
3469
- },
3470
- "description": "Notification title (e.g. \"Criteria validation error\")"
3471
- },
3472
- {
3473
- "name": "body",
3474
- "type": {
3475
- "text": "string"
3476
- },
3477
- "description": "Error message to display"
3478
- },
3479
- {
3480
- "name": "tagName",
3481
- "type": {
3482
- "text": "string"
3483
- },
3484
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3485
- }
3486
- ],
3487
- "description": "Shows a criteria error as a toast notification."
3445
+ "kind": "js",
3446
+ "name": "Accordion",
3447
+ "declaration": {
3448
+ "name": "Accordion",
3449
+ "module": "src/accordion/accordion.ts"
3450
+ }
3451
+ },
3452
+ {
3453
+ "kind": "js",
3454
+ "name": "foundationAccordionShadowOptions",
3455
+ "declaration": {
3456
+ "name": "foundationAccordionShadowOptions",
3457
+ "module": "src/accordion/accordion.ts"
3458
+ }
3459
+ },
3460
+ {
3461
+ "kind": "js",
3462
+ "name": "defaultAccordionConfig",
3463
+ "declaration": {
3464
+ "name": "defaultAccordionConfig",
3465
+ "module": "src/accordion/accordion.ts"
3466
+ }
3467
+ },
3468
+ {
3469
+ "kind": "js",
3470
+ "name": "foundationAccordion",
3471
+ "declaration": {
3472
+ "name": "foundationAccordion",
3473
+ "module": "src/accordion/accordion.ts"
3474
+ }
3488
3475
  }
3489
- ],
3476
+ ]
3477
+ },
3478
+ {
3479
+ "kind": "javascript-module",
3480
+ "path": "src/accordion/index.ts",
3481
+ "declarations": [],
3490
3482
  "exports": [
3491
3483
  {
3492
3484
  "kind": "js",
3493
- "name": "formatValidationErrors",
3485
+ "name": "*",
3494
3486
  "declaration": {
3495
- "name": "formatValidationErrors",
3496
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3487
+ "name": "*",
3488
+ "package": "./accordion.template"
3497
3489
  }
3498
3490
  },
3499
3491
  {
3500
3492
  "kind": "js",
3501
- "name": "showCriteriaError",
3493
+ "name": "*",
3502
3494
  "declaration": {
3503
- "name": "showCriteriaError",
3504
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3495
+ "name": "*",
3496
+ "package": "./accordion.styles"
3497
+ }
3498
+ },
3499
+ {
3500
+ "kind": "js",
3501
+ "name": "*",
3502
+ "declaration": {
3503
+ "name": "*",
3504
+ "package": "./accordion"
3505
3505
  }
3506
3506
  }
3507
3507
  ]
@@ -16267,7 +16267,7 @@
16267
16267
  "type": {
16268
16268
  "text": "ElementStyles"
16269
16269
  },
16270
- "default": "css`\n :host {\n --dialog-close-icon-display: flex;\n --dialog-min-width: 358px;\n --notification-details-min-height: 40px;\n }\n\n dialog[type='error'],\n dialog[type='alert'],\n dialog[type='success'] {\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px);\n }\n\n dialog[type='error']::before,\n dialog[type='alert']::before,\n dialog[type='success']::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--design-unit) * 3px - 2px);\n height: calc(100% - (var(--design-unit) * 4px));\n width: 4px;\n border-radius: 2px;\n }\n\n dialog[type='error']::before {\n background-color: var(--error-color);\n }\n\n dialog[type='alert']::before {\n background-color: var(--warning-color);\n }\n\n dialog[type='success']::before {\n background-color: var(--success-color);\n }\n\n .header-controls {\n display: flex;\n gap: calc(var(--design-unit) * 1px);\n align-items: center;\n }\n\n .close-icon {\n display: var(--dialog-close-icon-display);\n }\n\n .reset-size-icon {\n display: flex;\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 3px);\n outline: none;\n overflow: inherit;\n z-index: var(--dialog-z-index, auto);\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n\n .top {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--notification-details-min-height);\n white-space: pre-line;\n }\n\n .content-container {\n box-sizing: border-box;\n }\n\n :host([resizable]) dialog {\n position: relative;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n }\n\n :host([resizable]) dialog[open] {\n display: flex;\n flex-direction: column;\n }\n\n /* Override design system max-width constraints for resizable dialogs */\n :host([resizable]) dialog .content-wrapper {\n position: relative;\n height: 100%;\n width: 100%;\n max-height: 100%;\n min-width: 100%;\n max-width: 100%;\n resize: none;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n :host([resizable]) .content-container {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n box-sizing: border-box;\n }\n\n :host([resizable]) .top,\n :host([resizable]) .bottom {\n flex: 0 0 auto;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n /* Resize handles */\n .resize-handle {\n position: absolute;\n z-index: 10;\n }\n\n /* Edge handles */\n .resize-handle-n,\n .resize-handle-s {\n left: 0;\n right: 0;\n height: 8px;\n cursor: ns-resize;\n }\n\n .resize-handle-n {\n top: 0;\n }\n\n .resize-handle-s {\n bottom: 0;\n }\n\n .resize-handle-e,\n .resize-handle-w {\n top: 0;\n bottom: 0;\n width: 8px;\n cursor: ew-resize;\n }\n\n .resize-handle-e {\n right: 0;\n }\n\n .resize-handle-w {\n left: 0;\n }\n\n /* Corner handles */\n .resize-handle-ne,\n .resize-handle-nw,\n .resize-handle-se,\n .resize-handle-sw {\n width: 16px;\n height: 16px;\n }\n\n .resize-handle-ne {\n top: 0;\n right: 0;\n cursor: nesw-resize;\n }\n\n .resize-handle-nw {\n top: 0;\n left: 0;\n cursor: nwse-resize;\n }\n\n .resize-handle-se {\n bottom: 0;\n right: 0;\n cursor: nwse-resize;\n }\n\n .resize-handle-sw {\n bottom: 0;\n left: 0;\n cursor: nesw-resize;\n }\n\n /* Visual indicator for corner handles */\n .resize-handle-se::after,\n .resize-handle-sw::after,\n .resize-handle-ne::after,\n .resize-handle-nw::after {\n content: '';\n position: absolute;\n width: 8px;\n height: 8px;\n border-style: solid;\n border-color: var(--neutral-stroke-divider-rest);\n opacity: 50%;\n transition: opacity 0.2s;\n margin: 2px;\n }\n\n .resize-handle-se::after {\n bottom: 2px;\n right: 2px;\n border-width: 0 3px 3px 0;\n }\n\n .resize-handle-sw::after {\n bottom: 2px;\n left: 2px;\n border-width: 0 0 3px 3px;\n }\n\n .resize-handle-ne::after {\n top: 2px;\n right: 2px;\n border-width: 3px 3px 0 0;\n }\n\n .resize-handle-nw::after {\n top: 2px;\n left: 2px;\n border-width: 3px 0 0 3px;\n }\n\n /* Hover effect */\n .resize-handle:hover::after {\n opacity: 100%;\n }\n\n /* Resizing state */\n dialog.resizing {\n user-select: none;\n pointer-events: auto;\n }\n\n /* Fixed positioning support for resizable dialogs */\n dialog[style*='position: fixed'] {\n margin: 0;\n }\n`"
16270
+ "default": "css`\n :host {\n --dialog-close-icon-display: flex;\n --dialog-min-width: 358px;\n --notification-details-min-height: 40px;\n }\n\n dialog[type='error'],\n dialog[type='alert'],\n dialog[type='success'] {\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px);\n }\n\n dialog[type='error']::before,\n dialog[type='alert']::before,\n dialog[type='success']::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--design-unit) * 3px - 2px);\n height: calc(100% - (var(--design-unit) * 4px));\n width: 4px;\n border-radius: 2px;\n }\n\n dialog[type='error']::before {\n background-color: var(--error-color);\n }\n\n dialog[type='alert']::before {\n background-color: var(--warning-color);\n }\n\n dialog[type='success']::before {\n background-color: var(--success-color);\n }\n\n .header-controls {\n display: flex;\n gap: calc(var(--design-unit) * 1px);\n align-items: center;\n }\n\n :host([draggable])::part(top) {\n cursor: move;\n }\n\n .close-icon {\n display: var(--dialog-close-icon-display);\n }\n\n .reset-size-icon {\n display: flex;\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 3px);\n outline: none;\n overflow: inherit;\n z-index: var(--dialog-z-index, auto);\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n\n .top {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--notification-details-min-height);\n white-space: pre-line;\n }\n\n .content-container {\n box-sizing: border-box;\n }\n\n :host([resizable]) dialog {\n position: relative;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n }\n\n :host([resizable]) dialog[open] {\n display: flex;\n flex-direction: column;\n }\n\n /* Override design system max-width constraints for resizable dialogs */\n :host([resizable]) dialog .content-wrapper {\n position: relative;\n height: 100%;\n width: 100%;\n max-height: 100%;\n min-width: 100%;\n max-width: 100%;\n resize: none;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n :host([resizable]) .content-container {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n box-sizing: border-box;\n }\n\n :host([resizable]) .top,\n :host([resizable]) .bottom {\n flex: 0 0 auto;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n /* Resize handles */\n .resize-handle {\n position: absolute;\n z-index: 10;\n }\n\n /* Edge handles */\n .resize-handle-n,\n .resize-handle-s {\n left: 0;\n right: 0;\n height: 8px;\n cursor: ns-resize;\n }\n\n .resize-handle-n {\n top: 0;\n }\n\n .resize-handle-s {\n bottom: 0;\n }\n\n .resize-handle-e,\n .resize-handle-w {\n top: 0;\n bottom: 0;\n width: 8px;\n cursor: ew-resize;\n }\n\n .resize-handle-e {\n right: 0;\n }\n\n .resize-handle-w {\n left: 0;\n }\n\n /* Corner handles */\n .resize-handle-ne,\n .resize-handle-nw,\n .resize-handle-se,\n .resize-handle-sw {\n width: 16px;\n height: 16px;\n }\n\n .resize-handle-ne {\n top: 0;\n right: 0;\n cursor: nesw-resize;\n }\n\n .resize-handle-nw {\n top: 0;\n left: 0;\n cursor: nwse-resize;\n }\n\n .resize-handle-se {\n bottom: 0;\n right: 0;\n cursor: nwse-resize;\n }\n\n .resize-handle-sw {\n bottom: 0;\n left: 0;\n cursor: nesw-resize;\n }\n\n /* Visual indicator for corner handles */\n .resize-handle-se::after,\n .resize-handle-sw::after,\n .resize-handle-ne::after,\n .resize-handle-nw::after {\n content: '';\n position: absolute;\n width: 8px;\n height: 8px;\n border-style: solid;\n border-color: var(--neutral-stroke-divider-rest);\n opacity: 50%;\n transition: opacity 0.2s;\n margin: 2px;\n }\n\n .resize-handle-se::after {\n bottom: 2px;\n right: 2px;\n border-width: 0 3px 3px 0;\n }\n\n .resize-handle-sw::after {\n bottom: 2px;\n left: 2px;\n border-width: 0 0 3px 3px;\n }\n\n .resize-handle-ne::after {\n top: 2px;\n right: 2px;\n border-width: 3px 3px 0 0;\n }\n\n .resize-handle-nw::after {\n top: 2px;\n left: 2px;\n border-width: 3px 0 0 3px;\n }\n\n /* Hover effect */\n .resize-handle:hover::after {\n opacity: 100%;\n }\n\n /* Resizing state */\n dialog.resizing {\n user-select: none;\n pointer-events: auto;\n }\n\n /* Fixed positioning support for resizable dialogs */\n dialog[style*='position: fixed'] {\n margin: 0;\n }\n`"
16271
16271
  }
16272
16272
  ],
16273
16273
  "exports": [
@@ -16414,6 +16414,33 @@
16414
16414
  "default": "false",
16415
16415
  "description": "Whether or not the dialog is resizable"
16416
16416
  },
16417
+ {
16418
+ "kind": "field",
16419
+ "name": "draggable",
16420
+ "type": {
16421
+ "text": "boolean"
16422
+ },
16423
+ "default": "false",
16424
+ "description": "Whether or not the dialog is draggable by its top region"
16425
+ },
16426
+ {
16427
+ "kind": "method",
16428
+ "name": "draggableChanged",
16429
+ "parameters": [
16430
+ {
16431
+ "name": "_oldValue",
16432
+ "type": {
16433
+ "text": "boolean"
16434
+ }
16435
+ },
16436
+ {
16437
+ "name": "newValue",
16438
+ "type": {
16439
+ "text": "boolean"
16440
+ }
16441
+ }
16442
+ ]
16443
+ },
16417
16444
  {
16418
16445
  "kind": "field",
16419
16446
  "name": "minWidth",
@@ -16626,6 +16653,78 @@
16626
16653
  "privacy": "private",
16627
16654
  "default": "false"
16628
16655
  },
16656
+ {
16657
+ "kind": "field",
16658
+ "name": "isDragging",
16659
+ "type": {
16660
+ "text": "boolean"
16661
+ },
16662
+ "privacy": "private",
16663
+ "default": "false"
16664
+ },
16665
+ {
16666
+ "kind": "field",
16667
+ "name": "dragOffsetX",
16668
+ "type": {
16669
+ "text": "number"
16670
+ },
16671
+ "privacy": "private",
16672
+ "default": "0"
16673
+ },
16674
+ {
16675
+ "kind": "field",
16676
+ "name": "dragOffsetY",
16677
+ "type": {
16678
+ "text": "number"
16679
+ },
16680
+ "privacy": "private",
16681
+ "default": "0"
16682
+ },
16683
+ {
16684
+ "kind": "field",
16685
+ "name": "dragDialogWidth",
16686
+ "type": {
16687
+ "text": "number"
16688
+ },
16689
+ "privacy": "private",
16690
+ "default": "0"
16691
+ },
16692
+ {
16693
+ "kind": "field",
16694
+ "name": "dragDialogHeight",
16695
+ "type": {
16696
+ "text": "number"
16697
+ },
16698
+ "privacy": "private",
16699
+ "default": "0"
16700
+ },
16701
+ {
16702
+ "kind": "field",
16703
+ "name": "onMouseDownBound",
16704
+ "type": {
16705
+ "text": "((event: MouseEvent) => void) | null"
16706
+ },
16707
+ "privacy": "private",
16708
+ "default": "null"
16709
+ },
16710
+ {
16711
+ "kind": "field",
16712
+ "name": "onMouseMoveBound",
16713
+ "type": {
16714
+ "text": "((event: MouseEvent) => void) | null"
16715
+ },
16716
+ "privacy": "private",
16717
+ "default": "null"
16718
+ },
16719
+ {
16720
+ "kind": "field",
16721
+ "name": "onMouseUpBound",
16722
+ "type": {
16723
+ "text": "(() => void) | null"
16724
+ },
16725
+ "privacy": "private",
16726
+ "default": "null"
16727
+ },
16629
16728
  {
16630
16729
  "kind": "method",
16631
16730
  "name": "setupResizeHandlers",
@@ -16765,6 +16864,93 @@
16765
16864
  },
16766
16865
  "description": "Reset the dialog to its original size and position, or maximize if not resized."
16767
16866
  },
16867
+ {
16868
+ "kind": "method",
16869
+ "name": "attachDragMouseDown",
16870
+ "privacy": "private"
16871
+ },
16872
+ {
16873
+ "kind": "method",
16874
+ "name": "detachDragMouseDown",
16875
+ "privacy": "private"
16876
+ },
16877
+ {
16878
+ "kind": "method",
16879
+ "name": "isEventTargetInDraggableTarget",
16880
+ "privacy": "private",
16881
+ "return": {
16882
+ "type": {
16883
+ "text": "boolean"
16884
+ }
16885
+ },
16886
+ "parameters": [
16887
+ {
16888
+ "name": "event",
16889
+ "type": {
16890
+ "text": "MouseEvent"
16891
+ }
16892
+ }
16893
+ ]
16894
+ },
16895
+ {
16896
+ "kind": "method",
16897
+ "name": "isInsideTopSlot",
16898
+ "privacy": "private",
16899
+ "return": {
16900
+ "type": {
16901
+ "text": "boolean"
16902
+ }
16903
+ },
16904
+ "parameters": [
16905
+ {
16906
+ "name": "target",
16907
+ "type": {
16908
+ "text": "Node"
16909
+ }
16910
+ }
16911
+ ]
16912
+ },
16913
+ {
16914
+ "kind": "method",
16915
+ "name": "onMouseDown",
16916
+ "privacy": "private",
16917
+ "parameters": [
16918
+ {
16919
+ "name": "event",
16920
+ "type": {
16921
+ "text": "MouseEvent"
16922
+ }
16923
+ }
16924
+ ]
16925
+ },
16926
+ {
16927
+ "kind": "method",
16928
+ "name": "onMouseMove",
16929
+ "privacy": "private",
16930
+ "parameters": [
16931
+ {
16932
+ "name": "event",
16933
+ "type": {
16934
+ "text": "MouseEvent"
16935
+ }
16936
+ }
16937
+ ]
16938
+ },
16939
+ {
16940
+ "kind": "method",
16941
+ "name": "onMouseUp",
16942
+ "privacy": "private"
16943
+ },
16944
+ {
16945
+ "kind": "method",
16946
+ "name": "removeDraggableEventListeners",
16947
+ "privacy": "private"
16948
+ },
16949
+ {
16950
+ "kind": "method",
16951
+ "name": "resetDraggableStyle",
16952
+ "privacy": "private"
16953
+ },
16768
16954
  {
16769
16955
  "kind": "field",
16770
16956
  "name": "_presentation",
@@ -16912,6 +17098,14 @@
16912
17098
  "description": "Whether or not the dialog is resizable",
16913
17099
  "fieldName": "resizable"
16914
17100
  },
17101
+ {
17102
+ "type": {
17103
+ "text": "boolean"
17104
+ },
17105
+ "default": "false",
17106
+ "description": "Whether or not the dialog is draggable by its top region",
17107
+ "fieldName": "draggable"
17108
+ },
16915
17109
  {
16916
17110
  "name": "min-width",
16917
17111
  "type": {
@@ -17080,6 +17274,41 @@
17080
17274
  "module": "src/dialog/dialog.ts"
17081
17275
  }
17082
17276
  },
17277
+ {
17278
+ "kind": "field",
17279
+ "name": "draggable",
17280
+ "type": {
17281
+ "text": "boolean"
17282
+ },
17283
+ "default": "false",
17284
+ "description": "Whether or not the dialog is draggable by its top region",
17285
+ "inheritedFrom": {
17286
+ "name": "<local>_DialogElement",
17287
+ "module": "src/dialog/dialog.ts"
17288
+ }
17289
+ },
17290
+ {
17291
+ "kind": "method",
17292
+ "name": "draggableChanged",
17293
+ "parameters": [
17294
+ {
17295
+ "name": "_oldValue",
17296
+ "type": {
17297
+ "text": "boolean"
17298
+ }
17299
+ },
17300
+ {
17301
+ "name": "newValue",
17302
+ "type": {
17303
+ "text": "boolean"
17304
+ }
17305
+ }
17306
+ ],
17307
+ "inheritedFrom": {
17308
+ "name": "<local>_DialogElement",
17309
+ "module": "src/dialog/dialog.ts"
17310
+ }
17311
+ },
17083
17312
  {
17084
17313
  "kind": "field",
17085
17314
  "name": "minWidth",
@@ -17388,6 +17617,110 @@
17388
17617
  "module": "src/dialog/dialog.ts"
17389
17618
  }
17390
17619
  },
17620
+ {
17621
+ "kind": "field",
17622
+ "name": "isDragging",
17623
+ "type": {
17624
+ "text": "boolean"
17625
+ },
17626
+ "privacy": "private",
17627
+ "default": "false",
17628
+ "inheritedFrom": {
17629
+ "name": "<local>_DialogElement",
17630
+ "module": "src/dialog/dialog.ts"
17631
+ }
17632
+ },
17633
+ {
17634
+ "kind": "field",
17635
+ "name": "dragOffsetX",
17636
+ "type": {
17637
+ "text": "number"
17638
+ },
17639
+ "privacy": "private",
17640
+ "default": "0",
17641
+ "inheritedFrom": {
17642
+ "name": "<local>_DialogElement",
17643
+ "module": "src/dialog/dialog.ts"
17644
+ }
17645
+ },
17646
+ {
17647
+ "kind": "field",
17648
+ "name": "dragOffsetY",
17649
+ "type": {
17650
+ "text": "number"
17651
+ },
17652
+ "privacy": "private",
17653
+ "default": "0",
17654
+ "inheritedFrom": {
17655
+ "name": "<local>_DialogElement",
17656
+ "module": "src/dialog/dialog.ts"
17657
+ }
17658
+ },
17659
+ {
17660
+ "kind": "field",
17661
+ "name": "dragDialogWidth",
17662
+ "type": {
17663
+ "text": "number"
17664
+ },
17665
+ "privacy": "private",
17666
+ "default": "0",
17667
+ "inheritedFrom": {
17668
+ "name": "<local>_DialogElement",
17669
+ "module": "src/dialog/dialog.ts"
17670
+ }
17671
+ },
17672
+ {
17673
+ "kind": "field",
17674
+ "name": "dragDialogHeight",
17675
+ "type": {
17676
+ "text": "number"
17677
+ },
17678
+ "privacy": "private",
17679
+ "default": "0",
17680
+ "inheritedFrom": {
17681
+ "name": "<local>_DialogElement",
17682
+ "module": "src/dialog/dialog.ts"
17683
+ }
17684
+ },
17685
+ {
17686
+ "kind": "field",
17687
+ "name": "onMouseDownBound",
17688
+ "type": {
17689
+ "text": "((event: MouseEvent) => void) | null"
17690
+ },
17691
+ "privacy": "private",
17692
+ "default": "null",
17693
+ "inheritedFrom": {
17694
+ "name": "<local>_DialogElement",
17695
+ "module": "src/dialog/dialog.ts"
17696
+ }
17697
+ },
17698
+ {
17699
+ "kind": "field",
17700
+ "name": "onMouseMoveBound",
17701
+ "type": {
17702
+ "text": "((event: MouseEvent) => void) | null"
17703
+ },
17704
+ "privacy": "private",
17705
+ "default": "null",
17706
+ "inheritedFrom": {
17707
+ "name": "<local>_DialogElement",
17708
+ "module": "src/dialog/dialog.ts"
17709
+ }
17710
+ },
17711
+ {
17712
+ "kind": "field",
17713
+ "name": "onMouseUpBound",
17714
+ "type": {
17715
+ "text": "(() => void) | null"
17716
+ },
17717
+ "privacy": "private",
17718
+ "default": "null",
17719
+ "inheritedFrom": {
17720
+ "name": "<local>_DialogElement",
17721
+ "module": "src/dialog/dialog.ts"
17722
+ }
17723
+ },
17391
17724
  {
17392
17725
  "kind": "method",
17393
17726
  "name": "setupResizeHandlers",
@@ -17526,14 +17859,149 @@
17526
17859
  },
17527
17860
  {
17528
17861
  "kind": "method",
17529
- "name": "closeDialog",
17530
- "privacy": "public",
17531
- "return": {
17532
- "type": {
17533
- "text": "void"
17534
- }
17535
- },
17536
- "description": "Dismiss the Dialog from display.",
17862
+ "name": "closeDialog",
17863
+ "privacy": "public",
17864
+ "return": {
17865
+ "type": {
17866
+ "text": "void"
17867
+ }
17868
+ },
17869
+ "description": "Dismiss the Dialog from display.",
17870
+ "inheritedFrom": {
17871
+ "name": "<local>_DialogElement",
17872
+ "module": "src/dialog/dialog.ts"
17873
+ }
17874
+ },
17875
+ {
17876
+ "kind": "method",
17877
+ "name": "maximize",
17878
+ "privacy": "private",
17879
+ "return": {
17880
+ "type": {
17881
+ "text": "void"
17882
+ }
17883
+ },
17884
+ "description": "Maximize the dialog to fill the viewport.",
17885
+ "inheritedFrom": {
17886
+ "name": "<local>_DialogElement",
17887
+ "module": "src/dialog/dialog.ts"
17888
+ }
17889
+ },
17890
+ {
17891
+ "kind": "method",
17892
+ "name": "resetSize",
17893
+ "privacy": "public",
17894
+ "return": {
17895
+ "type": {
17896
+ "text": "void"
17897
+ }
17898
+ },
17899
+ "description": "Reset the dialog to its original size and position, or maximize if not resized.",
17900
+ "inheritedFrom": {
17901
+ "name": "<local>_DialogElement",
17902
+ "module": "src/dialog/dialog.ts"
17903
+ }
17904
+ },
17905
+ {
17906
+ "kind": "method",
17907
+ "name": "attachDragMouseDown",
17908
+ "privacy": "private",
17909
+ "inheritedFrom": {
17910
+ "name": "<local>_DialogElement",
17911
+ "module": "src/dialog/dialog.ts"
17912
+ }
17913
+ },
17914
+ {
17915
+ "kind": "method",
17916
+ "name": "detachDragMouseDown",
17917
+ "privacy": "private",
17918
+ "inheritedFrom": {
17919
+ "name": "<local>_DialogElement",
17920
+ "module": "src/dialog/dialog.ts"
17921
+ }
17922
+ },
17923
+ {
17924
+ "kind": "method",
17925
+ "name": "isEventTargetInDraggableTarget",
17926
+ "privacy": "private",
17927
+ "return": {
17928
+ "type": {
17929
+ "text": "boolean"
17930
+ }
17931
+ },
17932
+ "parameters": [
17933
+ {
17934
+ "name": "event",
17935
+ "type": {
17936
+ "text": "MouseEvent"
17937
+ }
17938
+ }
17939
+ ],
17940
+ "inheritedFrom": {
17941
+ "name": "<local>_DialogElement",
17942
+ "module": "src/dialog/dialog.ts"
17943
+ }
17944
+ },
17945
+ {
17946
+ "kind": "method",
17947
+ "name": "isInsideTopSlot",
17948
+ "privacy": "private",
17949
+ "return": {
17950
+ "type": {
17951
+ "text": "boolean"
17952
+ }
17953
+ },
17954
+ "parameters": [
17955
+ {
17956
+ "name": "target",
17957
+ "type": {
17958
+ "text": "Node"
17959
+ }
17960
+ }
17961
+ ],
17962
+ "inheritedFrom": {
17963
+ "name": "<local>_DialogElement",
17964
+ "module": "src/dialog/dialog.ts"
17965
+ }
17966
+ },
17967
+ {
17968
+ "kind": "method",
17969
+ "name": "onMouseDown",
17970
+ "privacy": "private",
17971
+ "parameters": [
17972
+ {
17973
+ "name": "event",
17974
+ "type": {
17975
+ "text": "MouseEvent"
17976
+ }
17977
+ }
17978
+ ],
17979
+ "inheritedFrom": {
17980
+ "name": "<local>_DialogElement",
17981
+ "module": "src/dialog/dialog.ts"
17982
+ }
17983
+ },
17984
+ {
17985
+ "kind": "method",
17986
+ "name": "onMouseMove",
17987
+ "privacy": "private",
17988
+ "parameters": [
17989
+ {
17990
+ "name": "event",
17991
+ "type": {
17992
+ "text": "MouseEvent"
17993
+ }
17994
+ }
17995
+ ],
17996
+ "inheritedFrom": {
17997
+ "name": "<local>_DialogElement",
17998
+ "module": "src/dialog/dialog.ts"
17999
+ }
18000
+ },
18001
+ {
18002
+ "kind": "method",
18003
+ "name": "onMouseUp",
18004
+ "privacy": "private",
17537
18005
  "inheritedFrom": {
17538
18006
  "name": "<local>_DialogElement",
17539
18007
  "module": "src/dialog/dialog.ts"
@@ -17541,14 +18009,8 @@
17541
18009
  },
17542
18010
  {
17543
18011
  "kind": "method",
17544
- "name": "maximize",
18012
+ "name": "removeDraggableEventListeners",
17545
18013
  "privacy": "private",
17546
- "return": {
17547
- "type": {
17548
- "text": "void"
17549
- }
17550
- },
17551
- "description": "Maximize the dialog to fill the viewport.",
17552
18014
  "inheritedFrom": {
17553
18015
  "name": "<local>_DialogElement",
17554
18016
  "module": "src/dialog/dialog.ts"
@@ -17556,14 +18018,8 @@
17556
18018
  },
17557
18019
  {
17558
18020
  "kind": "method",
17559
- "name": "resetSize",
17560
- "privacy": "public",
17561
- "return": {
17562
- "type": {
17563
- "text": "void"
17564
- }
17565
- },
17566
- "description": "Reset the dialog to its original size and position, or maximize if not resized.",
18021
+ "name": "resetDraggableStyle",
18022
+ "privacy": "private",
17567
18023
  "inheritedFrom": {
17568
18024
  "name": "<local>_DialogElement",
17569
18025
  "module": "src/dialog/dialog.ts"
@@ -17748,6 +18204,18 @@
17748
18204
  "module": "src/dialog/dialog.ts"
17749
18205
  }
17750
18206
  },
18207
+ {
18208
+ "type": {
18209
+ "text": "boolean"
18210
+ },
18211
+ "default": "false",
18212
+ "description": "Whether or not the dialog is draggable by its top region",
18213
+ "fieldName": "draggable",
18214
+ "inheritedFrom": {
18215
+ "name": "<local>_DialogElement",
18216
+ "module": "src/dialog/dialog.ts"
18217
+ }
18218
+ },
17751
18219
  {
17752
18220
  "name": "min-width",
17753
18221
  "type": {
@@ -30057,7 +30525,7 @@
30057
30525
  "type": {
30058
30526
  "text": "ElementStyles"
30059
30527
  },
30060
- "default": "css`\n ${foundationDialogStyles}\n\n :host([draggable])::part(top) {\n cursor: move;\n }\n`"
30528
+ "default": "css`\n ${foundationDialogStyles}\n`"
30061
30529
  }
30062
30530
  ],
30063
30531
  "exports": [
@@ -30120,101 +30588,6 @@
30120
30588
  "description": "",
30121
30589
  "name": "Modal",
30122
30590
  "members": [
30123
- {
30124
- "kind": "field",
30125
- "name": "isDragging",
30126
- "type": {
30127
- "text": "boolean"
30128
- },
30129
- "privacy": "private",
30130
- "default": "false"
30131
- },
30132
- {
30133
- "kind": "field",
30134
- "name": "offsetX",
30135
- "type": {
30136
- "text": "number"
30137
- },
30138
- "privacy": "private",
30139
- "default": "0"
30140
- },
30141
- {
30142
- "kind": "field",
30143
- "name": "offsetY",
30144
- "type": {
30145
- "text": "number"
30146
- },
30147
- "privacy": "private",
30148
- "default": "0"
30149
- },
30150
- {
30151
- "kind": "field",
30152
- "name": "modalWidth",
30153
- "type": {
30154
- "text": "number"
30155
- },
30156
- "privacy": "private",
30157
- "default": "0"
30158
- },
30159
- {
30160
- "kind": "field",
30161
- "name": "modalHeight",
30162
- "type": {
30163
- "text": "number"
30164
- },
30165
- "privacy": "private",
30166
- "default": "0"
30167
- },
30168
- {
30169
- "kind": "field",
30170
- "name": "onMouseDownBound",
30171
- "type": {
30172
- "text": "((event: MouseEvent) => void) | null"
30173
- },
30174
- "privacy": "private",
30175
- "default": "null"
30176
- },
30177
- {
30178
- "kind": "field",
30179
- "name": "onMouseMoveBound",
30180
- "type": {
30181
- "text": "((event: MouseEvent) => void) | null"
30182
- },
30183
- "privacy": "private",
30184
- "default": "null"
30185
- },
30186
- {
30187
- "kind": "field",
30188
- "name": "onMouseUpBound",
30189
- "type": {
30190
- "text": "(() => void) | null"
30191
- },
30192
- "privacy": "private",
30193
- "default": "null"
30194
- },
30195
- {
30196
- "kind": "field",
30197
- "name": "draggable",
30198
- "type": {
30199
- "text": "boolean"
30200
- },
30201
- "default": "false"
30202
- },
30203
- {
30204
- "kind": "method",
30205
- "name": "draggableChanged",
30206
- "parameters": [
30207
- {
30208
- "name": "ignore"
30209
- },
30210
- {
30211
- "name": "newValue",
30212
- "type": {
30213
- "text": "boolean"
30214
- }
30215
- }
30216
- ]
30217
- },
30218
30591
  {
30219
30592
  "kind": "method",
30220
30593
  "name": "show",
@@ -30229,90 +30602,6 @@
30229
30602
  "module": "src/dialog/dialog.ts"
30230
30603
  }
30231
30604
  },
30232
- {
30233
- "kind": "field",
30234
- "name": "onCloseCallback",
30235
- "type": {
30236
- "text": "() => void"
30237
- },
30238
- "description": "Callback to run *after* HTMLDialogElement is closed",
30239
- "inheritedFrom": {
30240
- "name": "<local>_DialogElement",
30241
- "module": "src/dialog/dialog.ts"
30242
- }
30243
- },
30244
- {
30245
- "kind": "method",
30246
- "name": "isEventTargetInDraggableTarget",
30247
- "privacy": "private",
30248
- "return": {
30249
- "type": {
30250
- "text": "boolean"
30251
- }
30252
- },
30253
- "parameters": [
30254
- {
30255
- "name": "event",
30256
- "type": {
30257
- "text": "MouseEvent"
30258
- }
30259
- }
30260
- ]
30261
- },
30262
- {
30263
- "kind": "method",
30264
- "name": "isInsideTopSlot",
30265
- "privacy": "private",
30266
- "return": {
30267
- "type": {
30268
- "text": "boolean"
30269
- }
30270
- },
30271
- "parameters": [
30272
- {
30273
- "name": "target",
30274
- "type": {
30275
- "text": "Node"
30276
- }
30277
- }
30278
- ]
30279
- },
30280
- {
30281
- "kind": "method",
30282
- "name": "onMouseDown",
30283
- "privacy": "private",
30284
- "parameters": [
30285
- {
30286
- "name": "event",
30287
- "type": {
30288
- "text": "MouseEvent"
30289
- }
30290
- }
30291
- ]
30292
- },
30293
- {
30294
- "kind": "method",
30295
- "name": "onMouseMove",
30296
- "privacy": "private",
30297
- "parameters": [
30298
- {
30299
- "name": "event",
30300
- "type": {
30301
- "text": "MouseEvent"
30302
- }
30303
- }
30304
- ]
30305
- },
30306
- {
30307
- "kind": "method",
30308
- "name": "onMouseUp",
30309
- "privacy": "private"
30310
- },
30311
- {
30312
- "kind": "method",
30313
- "name": "removeDraggableEventListeners",
30314
- "privacy": "private"
30315
- },
30316
30605
  {
30317
30606
  "kind": "field",
30318
30607
  "name": "mainElement",
@@ -30416,6 +30705,41 @@
30416
30705
  "module": "src/dialog/dialog.ts"
30417
30706
  }
30418
30707
  },
30708
+ {
30709
+ "kind": "field",
30710
+ "name": "draggable",
30711
+ "type": {
30712
+ "text": "boolean"
30713
+ },
30714
+ "default": "false",
30715
+ "description": "Whether or not the dialog is draggable by its top region",
30716
+ "inheritedFrom": {
30717
+ "name": "<local>_DialogElement",
30718
+ "module": "src/dialog/dialog.ts"
30719
+ }
30720
+ },
30721
+ {
30722
+ "kind": "method",
30723
+ "name": "draggableChanged",
30724
+ "parameters": [
30725
+ {
30726
+ "name": "_oldValue",
30727
+ "type": {
30728
+ "text": "boolean"
30729
+ }
30730
+ },
30731
+ {
30732
+ "name": "newValue",
30733
+ "type": {
30734
+ "text": "boolean"
30735
+ }
30736
+ }
30737
+ ],
30738
+ "inheritedFrom": {
30739
+ "name": "<local>_DialogElement",
30740
+ "module": "src/dialog/dialog.ts"
30741
+ }
30742
+ },
30419
30743
  {
30420
30744
  "kind": "field",
30421
30745
  "name": "minWidth",
@@ -30468,11 +30792,23 @@
30468
30792
  },
30469
30793
  {
30470
30794
  "kind": "field",
30471
- "name": "onShowCallback",
30795
+ "name": "onShowCallback",
30796
+ "type": {
30797
+ "text": "() => void"
30798
+ },
30799
+ "description": "Callback to run *before* HTMLDialogElement is shown",
30800
+ "inheritedFrom": {
30801
+ "name": "<local>_DialogElement",
30802
+ "module": "src/dialog/dialog.ts"
30803
+ }
30804
+ },
30805
+ {
30806
+ "kind": "field",
30807
+ "name": "onCloseCallback",
30472
30808
  "type": {
30473
30809
  "text": "() => void"
30474
30810
  },
30475
- "description": "Callback to run *before* HTMLDialogElement is shown",
30811
+ "description": "Callback to run *after* HTMLDialogElement is closed",
30476
30812
  "inheritedFrom": {
30477
30813
  "name": "<local>_DialogElement",
30478
30814
  "module": "src/dialog/dialog.ts"
@@ -30712,6 +31048,110 @@
30712
31048
  "module": "src/dialog/dialog.ts"
30713
31049
  }
30714
31050
  },
31051
+ {
31052
+ "kind": "field",
31053
+ "name": "isDragging",
31054
+ "type": {
31055
+ "text": "boolean"
31056
+ },
31057
+ "privacy": "private",
31058
+ "default": "false",
31059
+ "inheritedFrom": {
31060
+ "name": "<local>_DialogElement",
31061
+ "module": "src/dialog/dialog.ts"
31062
+ }
31063
+ },
31064
+ {
31065
+ "kind": "field",
31066
+ "name": "dragOffsetX",
31067
+ "type": {
31068
+ "text": "number"
31069
+ },
31070
+ "privacy": "private",
31071
+ "default": "0",
31072
+ "inheritedFrom": {
31073
+ "name": "<local>_DialogElement",
31074
+ "module": "src/dialog/dialog.ts"
31075
+ }
31076
+ },
31077
+ {
31078
+ "kind": "field",
31079
+ "name": "dragOffsetY",
31080
+ "type": {
31081
+ "text": "number"
31082
+ },
31083
+ "privacy": "private",
31084
+ "default": "0",
31085
+ "inheritedFrom": {
31086
+ "name": "<local>_DialogElement",
31087
+ "module": "src/dialog/dialog.ts"
31088
+ }
31089
+ },
31090
+ {
31091
+ "kind": "field",
31092
+ "name": "dragDialogWidth",
31093
+ "type": {
31094
+ "text": "number"
31095
+ },
31096
+ "privacy": "private",
31097
+ "default": "0",
31098
+ "inheritedFrom": {
31099
+ "name": "<local>_DialogElement",
31100
+ "module": "src/dialog/dialog.ts"
31101
+ }
31102
+ },
31103
+ {
31104
+ "kind": "field",
31105
+ "name": "dragDialogHeight",
31106
+ "type": {
31107
+ "text": "number"
31108
+ },
31109
+ "privacy": "private",
31110
+ "default": "0",
31111
+ "inheritedFrom": {
31112
+ "name": "<local>_DialogElement",
31113
+ "module": "src/dialog/dialog.ts"
31114
+ }
31115
+ },
31116
+ {
31117
+ "kind": "field",
31118
+ "name": "onMouseDownBound",
31119
+ "type": {
31120
+ "text": "((event: MouseEvent) => void) | null"
31121
+ },
31122
+ "privacy": "private",
31123
+ "default": "null",
31124
+ "inheritedFrom": {
31125
+ "name": "<local>_DialogElement",
31126
+ "module": "src/dialog/dialog.ts"
31127
+ }
31128
+ },
31129
+ {
31130
+ "kind": "field",
31131
+ "name": "onMouseMoveBound",
31132
+ "type": {
31133
+ "text": "((event: MouseEvent) => void) | null"
31134
+ },
31135
+ "privacy": "private",
31136
+ "default": "null",
31137
+ "inheritedFrom": {
31138
+ "name": "<local>_DialogElement",
31139
+ "module": "src/dialog/dialog.ts"
31140
+ }
31141
+ },
31142
+ {
31143
+ "kind": "field",
31144
+ "name": "onMouseUpBound",
31145
+ "type": {
31146
+ "text": "(() => void) | null"
31147
+ },
31148
+ "privacy": "private",
31149
+ "default": "null",
31150
+ "inheritedFrom": {
31151
+ "name": "<local>_DialogElement",
31152
+ "module": "src/dialog/dialog.ts"
31153
+ }
31154
+ },
30715
31155
  {
30716
31156
  "kind": "method",
30717
31157
  "name": "setupResizeHandlers",
@@ -30893,6 +31333,129 @@
30893
31333
  "module": "src/dialog/dialog.ts"
30894
31334
  }
30895
31335
  },
31336
+ {
31337
+ "kind": "method",
31338
+ "name": "attachDragMouseDown",
31339
+ "privacy": "private",
31340
+ "inheritedFrom": {
31341
+ "name": "<local>_DialogElement",
31342
+ "module": "src/dialog/dialog.ts"
31343
+ }
31344
+ },
31345
+ {
31346
+ "kind": "method",
31347
+ "name": "detachDragMouseDown",
31348
+ "privacy": "private",
31349
+ "inheritedFrom": {
31350
+ "name": "<local>_DialogElement",
31351
+ "module": "src/dialog/dialog.ts"
31352
+ }
31353
+ },
31354
+ {
31355
+ "kind": "method",
31356
+ "name": "isEventTargetInDraggableTarget",
31357
+ "privacy": "private",
31358
+ "return": {
31359
+ "type": {
31360
+ "text": "boolean"
31361
+ }
31362
+ },
31363
+ "parameters": [
31364
+ {
31365
+ "name": "event",
31366
+ "type": {
31367
+ "text": "MouseEvent"
31368
+ }
31369
+ }
31370
+ ],
31371
+ "inheritedFrom": {
31372
+ "name": "<local>_DialogElement",
31373
+ "module": "src/dialog/dialog.ts"
31374
+ }
31375
+ },
31376
+ {
31377
+ "kind": "method",
31378
+ "name": "isInsideTopSlot",
31379
+ "privacy": "private",
31380
+ "return": {
31381
+ "type": {
31382
+ "text": "boolean"
31383
+ }
31384
+ },
31385
+ "parameters": [
31386
+ {
31387
+ "name": "target",
31388
+ "type": {
31389
+ "text": "Node"
31390
+ }
31391
+ }
31392
+ ],
31393
+ "inheritedFrom": {
31394
+ "name": "<local>_DialogElement",
31395
+ "module": "src/dialog/dialog.ts"
31396
+ }
31397
+ },
31398
+ {
31399
+ "kind": "method",
31400
+ "name": "onMouseDown",
31401
+ "privacy": "private",
31402
+ "parameters": [
31403
+ {
31404
+ "name": "event",
31405
+ "type": {
31406
+ "text": "MouseEvent"
31407
+ }
31408
+ }
31409
+ ],
31410
+ "inheritedFrom": {
31411
+ "name": "<local>_DialogElement",
31412
+ "module": "src/dialog/dialog.ts"
31413
+ }
31414
+ },
31415
+ {
31416
+ "kind": "method",
31417
+ "name": "onMouseMove",
31418
+ "privacy": "private",
31419
+ "parameters": [
31420
+ {
31421
+ "name": "event",
31422
+ "type": {
31423
+ "text": "MouseEvent"
31424
+ }
31425
+ }
31426
+ ],
31427
+ "inheritedFrom": {
31428
+ "name": "<local>_DialogElement",
31429
+ "module": "src/dialog/dialog.ts"
31430
+ }
31431
+ },
31432
+ {
31433
+ "kind": "method",
31434
+ "name": "onMouseUp",
31435
+ "privacy": "private",
31436
+ "inheritedFrom": {
31437
+ "name": "<local>_DialogElement",
31438
+ "module": "src/dialog/dialog.ts"
31439
+ }
31440
+ },
31441
+ {
31442
+ "kind": "method",
31443
+ "name": "removeDraggableEventListeners",
31444
+ "privacy": "private",
31445
+ "inheritedFrom": {
31446
+ "name": "<local>_DialogElement",
31447
+ "module": "src/dialog/dialog.ts"
31448
+ }
31449
+ },
31450
+ {
31451
+ "kind": "method",
31452
+ "name": "resetDraggableStyle",
31453
+ "privacy": "private",
31454
+ "inheritedFrom": {
31455
+ "name": "<local>_DialogElement",
31456
+ "module": "src/dialog/dialog.ts"
31457
+ }
31458
+ },
30896
31459
  {
30897
31460
  "kind": "field",
30898
31461
  "name": "_presentation",
@@ -31005,14 +31568,13 @@
31005
31568
  }
31006
31569
  }
31007
31570
  ],
31571
+ "superclass": {
31572
+ "name": "DialogElement",
31573
+ "module": "/src/dialog"
31574
+ },
31575
+ "tagName": "%%prefix%%-modal",
31576
+ "customElement": true,
31008
31577
  "attributes": [
31009
- {
31010
- "type": {
31011
- "text": "boolean"
31012
- },
31013
- "default": "false",
31014
- "fieldName": "draggable"
31015
- },
31016
31578
  {
31017
31579
  "name": "type",
31018
31580
  "type": {
@@ -31063,6 +31625,18 @@
31063
31625
  "module": "src/dialog/dialog.ts"
31064
31626
  }
31065
31627
  },
31628
+ {
31629
+ "type": {
31630
+ "text": "boolean"
31631
+ },
31632
+ "default": "false",
31633
+ "description": "Whether or not the dialog is draggable by its top region",
31634
+ "fieldName": "draggable",
31635
+ "inheritedFrom": {
31636
+ "name": "<local>_DialogElement",
31637
+ "module": "src/dialog/dialog.ts"
31638
+ }
31639
+ },
31066
31640
  {
31067
31641
  "name": "min-width",
31068
31642
  "type": {
@@ -31119,13 +31693,7 @@
31119
31693
  "module": "src/dialog/dialog.ts"
31120
31694
  }
31121
31695
  }
31122
- ],
31123
- "superclass": {
31124
- "name": "DialogElement",
31125
- "module": "/src/dialog"
31126
- },
31127
- "tagName": "%%prefix%%-modal",
31128
- "customElement": true
31696
+ ]
31129
31697
  },
31130
31698
  {
31131
31699
  "kind": "variable",