@genesislcap/foundation-ui 14.424.0 → 14.424.1-alpha-cfc2887.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.
@@ -1392,11 +1392,11 @@
1392
1392
  },
1393
1393
  {
1394
1394
  "kind": "javascript-module",
1395
- "path": "src/accordion/accordion.styles.ts",
1395
+ "path": "src/accordion-item/accordion-item.styles.ts",
1396
1396
  "declarations": [
1397
1397
  {
1398
1398
  "kind": "function",
1399
- "name": "foundationAccordionStyles",
1399
+ "name": "foundationAccordionItemStyles",
1400
1400
  "return": {
1401
1401
  "type": {
1402
1402
  "text": "ElementStyles"
@@ -1421,24 +1421,24 @@
1421
1421
  "exports": [
1422
1422
  {
1423
1423
  "kind": "js",
1424
- "name": "foundationAccordionStyles",
1424
+ "name": "foundationAccordionItemStyles",
1425
1425
  "declaration": {
1426
- "name": "foundationAccordionStyles",
1427
- "module": "src/accordion/accordion.styles.ts"
1426
+ "name": "foundationAccordionItemStyles",
1427
+ "module": "src/accordion-item/accordion-item.styles.ts"
1428
1428
  }
1429
1429
  }
1430
1430
  ]
1431
1431
  },
1432
1432
  {
1433
1433
  "kind": "javascript-module",
1434
- "path": "src/accordion/accordion.template.ts",
1434
+ "path": "src/accordion-item/accordion-item.template.ts",
1435
1435
  "declarations": [
1436
1436
  {
1437
1437
  "kind": "function",
1438
- "name": "foundationAccordionTemplate",
1438
+ "name": "foundationAccordionItemTemplate",
1439
1439
  "return": {
1440
1440
  "type": {
1441
- "text": "ViewTemplate<Accordion>"
1441
+ "text": "ViewTemplate<AccordionItem>"
1442
1442
  }
1443
1443
  },
1444
1444
  "parameters": [
@@ -1460,237 +1460,116 @@
1460
1460
  "exports": [
1461
1461
  {
1462
1462
  "kind": "js",
1463
- "name": "foundationAccordionTemplate",
1463
+ "name": "foundationAccordionItemTemplate",
1464
1464
  "declaration": {
1465
- "name": "foundationAccordionTemplate",
1466
- "module": "src/accordion/accordion.template.ts"
1465
+ "name": "foundationAccordionItemTemplate",
1466
+ "module": "src/accordion-item/accordion-item.template.ts"
1467
1467
  }
1468
1468
  }
1469
1469
  ]
1470
1470
  },
1471
1471
  {
1472
1472
  "kind": "javascript-module",
1473
- "path": "src/accordion/accordion.ts",
1473
+ "path": "src/accordion-item/accordion-item.ts",
1474
1474
  "declarations": [
1475
1475
  {
1476
1476
  "kind": "class",
1477
1477
  "description": "",
1478
- "name": "Accordion",
1478
+ "name": "AccordionItem",
1479
1479
  "superclass": {
1480
- "name": "FASTAccordion",
1481
- "package": "@microsoft/fast-foundation"
1480
+ "name": "FASTAccordionItem",
1481
+ "package": "@microsoft/fast-components"
1482
1482
  },
1483
- "tagName": "%%prefix%%-accordion",
1483
+ "tagName": "%%prefix%%-accordion-item",
1484
1484
  "customElement": true,
1485
1485
  "attributes": [
1486
1486
  {
1487
- "name": "expand-mode",
1488
- "type": {
1489
- "text": "AccordionExpandMode"
1490
- },
1491
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1492
- "fieldName": "expandmode",
1493
- "inheritedFrom": {
1494
- "name": "Accordion",
1495
- "module": "src/accordion/accordion.ts"
1496
- }
1497
- }
1498
- ],
1499
- "members": [
1500
- {
1501
- "kind": "field",
1502
- "name": "expandmode",
1487
+ "name": "heading-level",
1503
1488
  "type": {
1504
- "text": "AccordionExpandMode"
1489
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1505
1490
  },
1506
- "privacy": "public",
1507
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1491
+ "default": "2",
1492
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1493
+ "fieldName": "headinglevel",
1508
1494
  "inheritedFrom": {
1509
- "name": "Accordion",
1510
- "module": "src/accordion/accordion.ts"
1495
+ "name": "AccordionItem",
1496
+ "module": "src/accordion-item/accordion-item.ts"
1511
1497
  }
1512
1498
  },
1513
1499
  {
1514
- "kind": "field",
1515
- "name": "activeid",
1516
1500
  "type": {
1517
- "text": "string | null"
1501
+ "text": "boolean"
1518
1502
  },
1519
- "privacy": "private",
1503
+ "default": "false",
1504
+ "description": "Expands or collapses the item.",
1505
+ "fieldName": "expanded",
1520
1506
  "inheritedFrom": {
1521
- "name": "Accordion",
1522
- "module": "src/accordion/accordion.ts"
1507
+ "name": "AccordionItem",
1508
+ "module": "src/accordion-item/accordion-item.ts"
1523
1509
  }
1524
1510
  },
1525
1511
  {
1526
- "kind": "field",
1527
- "name": "activeItemIndex",
1512
+ "name": "id",
1528
1513
  "type": {
1529
- "text": "number"
1514
+ "text": "string"
1530
1515
  },
1531
- "privacy": "private",
1532
- "default": "0",
1516
+ "description": "The item ID",
1517
+ "fieldName": "id",
1533
1518
  "inheritedFrom": {
1534
- "name": "Accordion",
1535
- "module": "src/accordion/accordion.ts"
1519
+ "name": "AccordionItem",
1520
+ "module": "src/accordion-item/accordion-item.ts"
1536
1521
  }
1537
- },
1522
+ }
1523
+ ],
1524
+ "members": [
1538
1525
  {
1539
1526
  "kind": "field",
1540
- "name": "accordionIds",
1527
+ "name": "headinglevel",
1541
1528
  "type": {
1542
- "text": "Array<string | null>"
1543
- },
1544
- "privacy": "private",
1545
- "inheritedFrom": {
1546
- "name": "Accordion",
1547
- "module": "src/accordion/accordion.ts"
1548
- }
1549
- },
1550
- {
1551
- "kind": "field",
1552
- "name": "change",
1553
- "privacy": "private",
1554
- "inheritedFrom": {
1555
- "name": "Accordion",
1556
- "module": "src/accordion/accordion.ts"
1557
- }
1558
- },
1559
- {
1560
- "kind": "method",
1561
- "name": "findExpandedItem",
1562
- "privacy": "private",
1563
- "return": {
1564
- "type": {
1565
- "text": "AccordionItem | null"
1566
- }
1529
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1567
1530
  },
1531
+ "privacy": "public",
1532
+ "default": "2",
1533
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1568
1534
  "inheritedFrom": {
1569
- "name": "Accordion",
1570
- "module": "src/accordion/accordion.ts"
1535
+ "name": "AccordionItem",
1536
+ "module": "src/accordion-item/accordion-item.ts"
1571
1537
  }
1572
1538
  },
1573
1539
  {
1574
1540
  "kind": "field",
1575
- "name": "setItems",
1576
- "privacy": "private",
1577
- "inheritedFrom": {
1578
- "name": "Accordion",
1579
- "module": "src/accordion/accordion.ts"
1580
- }
1581
- },
1582
- {
1583
- "kind": "method",
1584
- "name": "resetItems",
1585
- "privacy": "private",
1586
- "return": {
1587
- "type": {
1588
- "text": "void"
1589
- }
1541
+ "name": "expanded",
1542
+ "type": {
1543
+ "text": "boolean"
1590
1544
  },
1545
+ "privacy": "public",
1546
+ "default": "false",
1547
+ "description": "Expands or collapses the item.",
1591
1548
  "inheritedFrom": {
1592
- "name": "Accordion",
1593
- "module": "src/accordion/accordion.ts"
1594
- }
1595
- },
1596
- {
1597
- "kind": "field",
1598
- "name": "removeItemListeners",
1599
- "privacy": "private",
1600
- "inheritedFrom": {
1601
- "name": "Accordion",
1602
- "module": "src/accordion/accordion.ts"
1549
+ "name": "AccordionItem",
1550
+ "module": "src/accordion-item/accordion-item.ts"
1603
1551
  }
1604
1552
  },
1605
1553
  {
1606
1554
  "kind": "field",
1607
- "name": "activeItemChange",
1608
- "privacy": "private",
1609
- "inheritedFrom": {
1610
- "name": "Accordion",
1611
- "module": "src/accordion/accordion.ts"
1612
- }
1613
- },
1614
- {
1615
- "kind": "method",
1616
- "name": "getItemIds",
1617
- "privacy": "private",
1618
- "return": {
1619
- "type": {
1620
- "text": "Array<string | null>"
1621
- }
1622
- },
1623
- "inheritedFrom": {
1624
- "name": "Accordion",
1625
- "module": "src/accordion/accordion.ts"
1626
- }
1627
- },
1628
- {
1629
- "kind": "method",
1630
- "name": "isSingleExpandMode",
1631
- "privacy": "private",
1632
- "return": {
1633
- "type": {
1634
- "text": "boolean"
1635
- }
1555
+ "name": "id",
1556
+ "type": {
1557
+ "text": "string"
1636
1558
  },
1559
+ "privacy": "public",
1560
+ "description": "The item ID",
1637
1561
  "inheritedFrom": {
1638
- "name": "Accordion",
1639
- "module": "src/accordion/accordion.ts"
1640
- }
1641
- },
1642
- {
1643
- "kind": "field",
1644
- "name": "handleItemKeyDown",
1645
- "privacy": "private",
1646
- "inheritedFrom": {
1647
- "name": "Accordion",
1648
- "module": "src/accordion/accordion.ts"
1562
+ "name": "AccordionItem",
1563
+ "module": "src/accordion-item/accordion-item.ts"
1649
1564
  }
1650
1565
  },
1651
1566
  {
1652
1567
  "kind": "field",
1653
- "name": "handleItemFocus",
1654
- "privacy": "private",
1655
- "inheritedFrom": {
1656
- "name": "Accordion",
1657
- "module": "src/accordion/accordion.ts"
1658
- }
1659
- },
1660
- {
1661
- "kind": "method",
1662
- "name": "adjust",
1663
- "privacy": "private",
1664
- "return": {
1665
- "type": {
1666
- "text": "void"
1667
- }
1668
- },
1669
- "parameters": [
1670
- {
1671
- "name": "adjustment",
1672
- "type": {
1673
- "text": "number"
1674
- }
1675
- }
1676
- ],
1677
- "inheritedFrom": {
1678
- "name": "Accordion",
1679
- "module": "src/accordion/accordion.ts"
1680
- }
1681
- },
1682
- {
1683
- "kind": "method",
1684
- "name": "focusItem",
1568
+ "name": "change",
1685
1569
  "privacy": "private",
1686
- "return": {
1687
- "type": {
1688
- "text": "void"
1689
- }
1690
- },
1691
1570
  "inheritedFrom": {
1692
- "name": "Accordion",
1693
- "module": "src/accordion/accordion.ts"
1571
+ "name": "AccordionItem",
1572
+ "module": "src/accordion-item/accordion-item.ts"
1694
1573
  }
1695
1574
  },
1696
1575
  {
@@ -1807,18 +1686,18 @@
1807
1686
  ],
1808
1687
  "events": [
1809
1688
  {
1810
- "description": "Fires a custom 'change' event when the active item changes",
1689
+ "description": "Fires a custom 'change' event when the button is invoked",
1811
1690
  "name": "change",
1812
1691
  "inheritedFrom": {
1813
- "name": "Accordion",
1814
- "module": "src/accordion/accordion.ts"
1692
+ "name": "AccordionItem",
1693
+ "module": "src/accordion-item/accordion-item.ts"
1815
1694
  }
1816
1695
  }
1817
1696
  ]
1818
1697
  },
1819
1698
  {
1820
1699
  "kind": "variable",
1821
- "name": "foundationAccordionShadowOptions",
1700
+ "name": "foundationAccordionItemShadowOptions",
1822
1701
  "type": {
1823
1702
  "text": "ShadowRootInit"
1824
1703
  },
@@ -1826,57 +1705,57 @@
1826
1705
  },
1827
1706
  {
1828
1707
  "kind": "variable",
1829
- "name": "defaultAccordionConfig",
1708
+ "name": "defaultAccordionItemConfig",
1830
1709
  "type": {
1831
1710
  "text": "object"
1832
1711
  },
1833
- "default": "{}"
1712
+ "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}"
1834
1713
  },
1835
1714
  {
1836
1715
  "kind": "variable",
1837
- "name": "foundationAccordion",
1838
- "description": "The Foundation Accordion",
1716
+ "name": "foundationAccordionItem",
1717
+ "description": "The Foundation Accordion Item",
1839
1718
  "privacy": "public"
1840
1719
  }
1841
1720
  ],
1842
1721
  "exports": [
1843
1722
  {
1844
1723
  "kind": "js",
1845
- "name": "Accordion",
1724
+ "name": "AccordionItem",
1846
1725
  "declaration": {
1847
- "name": "Accordion",
1848
- "module": "src/accordion/accordion.ts"
1726
+ "name": "AccordionItem",
1727
+ "module": "src/accordion-item/accordion-item.ts"
1849
1728
  }
1850
1729
  },
1851
1730
  {
1852
1731
  "kind": "js",
1853
- "name": "foundationAccordionShadowOptions",
1732
+ "name": "foundationAccordionItemShadowOptions",
1854
1733
  "declaration": {
1855
- "name": "foundationAccordionShadowOptions",
1856
- "module": "src/accordion/accordion.ts"
1734
+ "name": "foundationAccordionItemShadowOptions",
1735
+ "module": "src/accordion-item/accordion-item.ts"
1857
1736
  }
1858
1737
  },
1859
1738
  {
1860
1739
  "kind": "js",
1861
- "name": "defaultAccordionConfig",
1740
+ "name": "defaultAccordionItemConfig",
1862
1741
  "declaration": {
1863
- "name": "defaultAccordionConfig",
1864
- "module": "src/accordion/accordion.ts"
1742
+ "name": "defaultAccordionItemConfig",
1743
+ "module": "src/accordion-item/accordion-item.ts"
1865
1744
  }
1866
1745
  },
1867
1746
  {
1868
1747
  "kind": "js",
1869
- "name": "foundationAccordion",
1748
+ "name": "foundationAccordionItem",
1870
1749
  "declaration": {
1871
- "name": "foundationAccordion",
1872
- "module": "src/accordion/accordion.ts"
1750
+ "name": "foundationAccordionItem",
1751
+ "module": "src/accordion-item/accordion-item.ts"
1873
1752
  }
1874
1753
  }
1875
1754
  ]
1876
1755
  },
1877
1756
  {
1878
1757
  "kind": "javascript-module",
1879
- "path": "src/accordion/index.ts",
1758
+ "path": "src/accordion-item/index.ts",
1880
1759
  "declarations": [],
1881
1760
  "exports": [
1882
1761
  {
@@ -1884,7 +1763,7 @@
1884
1763
  "name": "*",
1885
1764
  "declaration": {
1886
1765
  "name": "*",
1887
- "package": "./accordion.template"
1766
+ "package": "./accordion-item.template"
1888
1767
  }
1889
1768
  },
1890
1769
  {
@@ -1892,7 +1771,7 @@
1892
1771
  "name": "*",
1893
1772
  "declaration": {
1894
1773
  "name": "*",
1895
- "package": "./accordion.styles"
1774
+ "package": "./accordion-item.styles"
1896
1775
  }
1897
1776
  },
1898
1777
  {
@@ -1900,7 +1779,7 @@
1900
1779
  "name": "*",
1901
1780
  "declaration": {
1902
1781
  "name": "*",
1903
- "package": "./accordion"
1782
+ "package": "./accordion-item"
1904
1783
  }
1905
1784
  }
1906
1785
  ]
@@ -2497,191 +2376,306 @@
2497
2376
  },
2498
2377
  {
2499
2378
  "kind": "javascript-module",
2500
- "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2379
+ "path": "src/accordion/accordion.styles.ts",
2501
2380
  "declarations": [
2502
2381
  {
2503
- "kind": "variable",
2504
- "name": "foundationAiCriteriaSearchStyles",
2505
- "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 .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .mode-control {\n flex-shrink: 0;\n }\n`"
2382
+ "kind": "function",
2383
+ "name": "foundationAccordionStyles",
2384
+ "return": {
2385
+ "type": {
2386
+ "text": "ElementStyles"
2387
+ }
2388
+ },
2389
+ "parameters": [
2390
+ {
2391
+ "name": "context",
2392
+ "type": {
2393
+ "text": "ElementDefinitionContext"
2394
+ }
2395
+ },
2396
+ {
2397
+ "name": "definition",
2398
+ "type": {
2399
+ "text": "FoundationElementDefinition"
2400
+ }
2401
+ }
2402
+ ]
2506
2403
  }
2507
2404
  ],
2508
2405
  "exports": [
2509
2406
  {
2510
2407
  "kind": "js",
2511
- "name": "foundationAiCriteriaSearchStyles",
2408
+ "name": "foundationAccordionStyles",
2512
2409
  "declaration": {
2513
- "name": "foundationAiCriteriaSearchStyles",
2514
- "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2410
+ "name": "foundationAccordionStyles",
2411
+ "module": "src/accordion/accordion.styles.ts"
2515
2412
  }
2516
2413
  }
2517
2414
  ]
2518
2415
  },
2519
2416
  {
2520
2417
  "kind": "javascript-module",
2521
- "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2418
+ "path": "src/accordion/accordion.template.ts",
2522
2419
  "declarations": [
2523
2420
  {
2524
- "kind": "variable",
2525
- "name": "foundationAiCriteriaSearchTemplate",
2526
- "type": {
2527
- "text": "ViewTemplate<AiCriteriaSearch>"
2421
+ "kind": "function",
2422
+ "name": "foundationAccordionTemplate",
2423
+ "return": {
2424
+ "type": {
2425
+ "text": "ViewTemplate<Accordion>"
2426
+ }
2528
2427
  },
2529
- "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2428
+ "parameters": [
2429
+ {
2430
+ "name": "context",
2431
+ "type": {
2432
+ "text": "ElementDefinitionContext"
2433
+ }
2434
+ },
2435
+ {
2436
+ "name": "definition",
2437
+ "type": {
2438
+ "text": "FoundationElementDefinition"
2439
+ }
2440
+ }
2441
+ ]
2530
2442
  }
2531
2443
  ],
2532
2444
  "exports": [
2533
2445
  {
2534
2446
  "kind": "js",
2535
- "name": "foundationAiCriteriaSearchTemplate",
2447
+ "name": "foundationAccordionTemplate",
2536
2448
  "declaration": {
2537
- "name": "foundationAiCriteriaSearchTemplate",
2538
- "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2449
+ "name": "foundationAccordionTemplate",
2450
+ "module": "src/accordion/accordion.template.ts"
2539
2451
  }
2540
2452
  }
2541
2453
  ]
2542
2454
  },
2543
2455
  {
2544
2456
  "kind": "javascript-module",
2545
- "path": "src/ai-criteria-search/ai-criteria-search.ts",
2457
+ "path": "src/accordion/accordion.ts",
2546
2458
  "declarations": [
2547
2459
  {
2548
2460
  "kind": "class",
2549
- "description": "Natural-language criteria search input with AI interpretation.",
2550
- "name": "AiCriteriaSearch",
2551
- "members": [
2461
+ "description": "",
2462
+ "name": "Accordion",
2463
+ "superclass": {
2464
+ "name": "FASTAccordion",
2465
+ "package": "@microsoft/fast-foundation"
2466
+ },
2467
+ "tagName": "%%prefix%%-accordion",
2468
+ "customElement": true,
2469
+ "attributes": [
2552
2470
  {
2553
- "kind": "field",
2554
- "name": "aiProvider",
2471
+ "name": "expand-mode",
2555
2472
  "type": {
2556
- "text": "AIProvider"
2473
+ "text": "AccordionExpandMode"
2474
+ },
2475
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2476
+ "fieldName": "expandmode",
2477
+ "inheritedFrom": {
2478
+ "name": "Accordion",
2479
+ "module": "src/accordion/accordion.ts"
2557
2480
  }
2558
- },
2481
+ }
2482
+ ],
2483
+ "members": [
2559
2484
  {
2560
2485
  "kind": "field",
2561
- "name": "placeholder",
2486
+ "name": "expandmode",
2562
2487
  "type": {
2563
- "text": "string"
2488
+ "text": "AccordionExpandMode"
2564
2489
  },
2565
- "default": "'Describe your search criteria in natural language...'"
2566
- },
2567
- {
2568
- "kind": "field",
2569
- "name": "disabled",
2570
- "type": {
2571
- "text": "boolean"
2490
+ "privacy": "public",
2491
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2492
+ "inheritedFrom": {
2493
+ "name": "Accordion",
2494
+ "module": "src/accordion/accordion.ts"
2572
2495
  }
2573
2496
  },
2574
2497
  {
2575
2498
  "kind": "field",
2576
- "name": "mode",
2499
+ "name": "activeid",
2577
2500
  "type": {
2578
- "text": "'append' | 'replace'"
2501
+ "text": "string | null"
2579
2502
  },
2580
- "default": "'replace'"
2503
+ "privacy": "private",
2504
+ "inheritedFrom": {
2505
+ "name": "Accordion",
2506
+ "module": "src/accordion/accordion.ts"
2507
+ }
2581
2508
  },
2582
2509
  {
2583
2510
  "kind": "field",
2584
- "name": "inputValue",
2511
+ "name": "activeItemIndex",
2585
2512
  "type": {
2586
- "text": "string"
2513
+ "text": "number"
2587
2514
  },
2588
- "default": "''"
2515
+ "privacy": "private",
2516
+ "default": "0",
2517
+ "inheritedFrom": {
2518
+ "name": "Accordion",
2519
+ "module": "src/accordion/accordion.ts"
2520
+ }
2589
2521
  },
2590
2522
  {
2591
2523
  "kind": "field",
2592
- "name": "isInterpreting",
2524
+ "name": "accordionIds",
2593
2525
  "type": {
2594
- "text": "boolean"
2526
+ "text": "Array<string | null>"
2595
2527
  },
2596
- "default": "false"
2528
+ "privacy": "private",
2529
+ "inheritedFrom": {
2530
+ "name": "Accordion",
2531
+ "module": "src/accordion/accordion.ts"
2532
+ }
2597
2533
  },
2598
2534
  {
2599
2535
  "kind": "field",
2600
- "name": "lastValidCriteria",
2601
- "type": {
2602
- "text": "string | null"
2603
- },
2604
- "default": "null"
2536
+ "name": "change",
2537
+ "privacy": "private",
2538
+ "inheritedFrom": {
2539
+ "name": "Accordion",
2540
+ "module": "src/accordion/accordion.ts"
2541
+ }
2605
2542
  },
2606
2543
  {
2607
- "kind": "field",
2608
- "name": "fieldMetadata",
2609
- "type": {
2610
- "text": "MetadataDetail[] | string[]"
2544
+ "kind": "method",
2545
+ "name": "findExpandedItem",
2546
+ "privacy": "private",
2547
+ "return": {
2548
+ "type": {
2549
+ "text": "AccordionItem | null"
2550
+ }
2611
2551
  },
2612
- "default": "[]"
2552
+ "inheritedFrom": {
2553
+ "name": "Accordion",
2554
+ "module": "src/accordion/accordion.ts"
2555
+ }
2613
2556
  },
2614
2557
  {
2615
2558
  "kind": "field",
2616
- "name": "isRecording",
2617
- "type": {
2618
- "text": "boolean"
2619
- },
2620
- "default": "false"
2559
+ "name": "setItems",
2560
+ "privacy": "private",
2561
+ "inheritedFrom": {
2562
+ "name": "Accordion",
2563
+ "module": "src/accordion/accordion.ts"
2564
+ }
2621
2565
  },
2622
2566
  {
2623
- "kind": "field",
2624
- "name": "textAreaRef",
2625
- "type": {
2626
- "text": "HTMLTextAreaElement"
2567
+ "kind": "method",
2568
+ "name": "resetItems",
2569
+ "privacy": "private",
2570
+ "return": {
2571
+ "type": {
2572
+ "text": "void"
2573
+ }
2627
2574
  },
2628
- "privacy": "public"
2575
+ "inheritedFrom": {
2576
+ "name": "Accordion",
2577
+ "module": "src/accordion/accordion.ts"
2578
+ }
2629
2579
  },
2630
2580
  {
2631
2581
  "kind": "field",
2632
- "name": "stopRecording",
2633
- "type": {
2634
- "text": "(() => void) | null"
2635
- },
2582
+ "name": "removeItemListeners",
2636
2583
  "privacy": "private",
2637
- "default": "null"
2584
+ "inheritedFrom": {
2585
+ "name": "Accordion",
2586
+ "module": "src/accordion/accordion.ts"
2587
+ }
2638
2588
  },
2639
2589
  {
2640
2590
  "kind": "field",
2641
- "name": "speechApplyDebounceTimer",
2642
- "type": {
2643
- "text": "ReturnType<typeof setTimeout> | null"
2644
- },
2591
+ "name": "activeItemChange",
2645
2592
  "privacy": "private",
2646
- "default": "null"
2593
+ "inheritedFrom": {
2594
+ "name": "Accordion",
2595
+ "module": "src/accordion/accordion.ts"
2596
+ }
2647
2597
  },
2648
2598
  {
2649
- "kind": "field",
2650
- "name": "baseInputForAppend",
2651
- "type": {
2652
- "text": "string"
2653
- },
2599
+ "kind": "method",
2600
+ "name": "getItemIds",
2654
2601
  "privacy": "private",
2655
- "default": "''"
2656
- },
2657
- {
2658
- "kind": "field",
2659
- "name": "speechAvailable",
2660
- "type": {
2661
- "text": "boolean"
2602
+ "return": {
2603
+ "type": {
2604
+ "text": "Array<string | null>"
2605
+ }
2662
2606
  },
2663
- "readonly": true
2607
+ "inheritedFrom": {
2608
+ "name": "Accordion",
2609
+ "module": "src/accordion/accordion.ts"
2610
+ }
2664
2611
  },
2665
2612
  {
2666
2613
  "kind": "method",
2667
- "name": "handleSubmit"
2614
+ "name": "isSingleExpandMode",
2615
+ "privacy": "private",
2616
+ "return": {
2617
+ "type": {
2618
+ "text": "boolean"
2619
+ }
2620
+ },
2621
+ "inheritedFrom": {
2622
+ "name": "Accordion",
2623
+ "module": "src/accordion/accordion.ts"
2624
+ }
2668
2625
  },
2669
2626
  {
2670
- "kind": "method",
2671
- "name": "handleBlur"
2627
+ "kind": "field",
2628
+ "name": "handleItemKeyDown",
2629
+ "privacy": "private",
2630
+ "inheritedFrom": {
2631
+ "name": "Accordion",
2632
+ "module": "src/accordion/accordion.ts"
2633
+ }
2672
2634
  },
2673
2635
  {
2674
- "kind": "method",
2675
- "name": "clear"
2636
+ "kind": "field",
2637
+ "name": "handleItemFocus",
2638
+ "privacy": "private",
2639
+ "inheritedFrom": {
2640
+ "name": "Accordion",
2641
+ "module": "src/accordion/accordion.ts"
2642
+ }
2676
2643
  },
2677
2644
  {
2678
2645
  "kind": "method",
2679
- "name": "toggleSpeechInput"
2646
+ "name": "adjust",
2647
+ "privacy": "private",
2648
+ "return": {
2649
+ "type": {
2650
+ "text": "void"
2651
+ }
2652
+ },
2653
+ "parameters": [
2654
+ {
2655
+ "name": "adjustment",
2656
+ "type": {
2657
+ "text": "number"
2658
+ }
2659
+ }
2660
+ ],
2661
+ "inheritedFrom": {
2662
+ "name": "Accordion",
2663
+ "module": "src/accordion/accordion.ts"
2664
+ }
2680
2665
  },
2681
2666
  {
2682
2667
  "kind": "method",
2683
- "name": "clearSpeechApplyDebounce",
2684
- "privacy": "private"
2668
+ "name": "focusItem",
2669
+ "privacy": "private",
2670
+ "return": {
2671
+ "type": {
2672
+ "text": "void"
2673
+ }
2674
+ },
2675
+ "inheritedFrom": {
2676
+ "name": "Accordion",
2677
+ "module": "src/accordion/accordion.ts"
2678
+ }
2685
2679
  },
2686
2680
  {
2687
2681
  "kind": "field",
@@ -2797,56 +2791,26 @@
2797
2791
  ],
2798
2792
  "events": [
2799
2793
  {
2800
- "description": "Fired when interpreted criteria is applied or cleared",
2801
- "name": "criteria-changed"
2802
- },
2803
- {
2804
- "description": "Fired when interpreted criteria contains invalid clauses",
2805
- "name": "validation-errors"
2806
- }
2807
- ],
2808
- "attributes": [
2809
- {
2810
- "name": "placeholder",
2811
- "type": {
2812
- "text": "string"
2813
- },
2814
- "default": "'Describe your search criteria in natural language...'",
2815
- "fieldName": "placeholder"
2816
- },
2817
- {
2818
- "type": {
2819
- "text": "boolean"
2820
- },
2821
- "fieldName": "disabled"
2822
- },
2823
- {
2824
- "name": "mode",
2825
- "type": {
2826
- "text": "'append' | 'replace'"
2827
- },
2828
- "default": "'replace'",
2829
- "fieldName": "mode"
2794
+ "description": "Fires a custom 'change' event when the active item changes",
2795
+ "name": "change",
2796
+ "inheritedFrom": {
2797
+ "name": "Accordion",
2798
+ "module": "src/accordion/accordion.ts"
2799
+ }
2830
2800
  }
2831
- ],
2832
- "superclass": {
2833
- "name": "FoundationElement",
2834
- "package": "@microsoft/fast-foundation"
2835
- },
2836
- "tagName": "%%prefix%%-ai-criteria-search",
2837
- "customElement": true
2801
+ ]
2838
2802
  },
2839
2803
  {
2840
2804
  "kind": "variable",
2841
- "name": "foundationAiCriteriaSearchShadowOptions",
2805
+ "name": "foundationAccordionShadowOptions",
2842
2806
  "type": {
2843
2807
  "text": "ShadowRootInit"
2844
2808
  },
2845
- "default": "undefined"
2809
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2846
2810
  },
2847
2811
  {
2848
2812
  "kind": "variable",
2849
- "name": "defaultAiCriteriaSearchConfig",
2813
+ "name": "defaultAccordionConfig",
2850
2814
  "type": {
2851
2815
  "text": "object"
2852
2816
  },
@@ -2854,379 +2818,264 @@
2854
2818
  },
2855
2819
  {
2856
2820
  "kind": "variable",
2857
- "name": "foundationAiCriteriaSearch"
2821
+ "name": "foundationAccordion",
2822
+ "description": "The Foundation Accordion",
2823
+ "privacy": "public"
2858
2824
  }
2859
2825
  ],
2860
2826
  "exports": [
2861
2827
  {
2862
2828
  "kind": "js",
2863
- "name": "AiCriteriaSearch",
2829
+ "name": "Accordion",
2864
2830
  "declaration": {
2865
- "name": "AiCriteriaSearch",
2866
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2831
+ "name": "Accordion",
2832
+ "module": "src/accordion/accordion.ts"
2867
2833
  }
2868
2834
  },
2869
2835
  {
2870
2836
  "kind": "js",
2871
- "name": "foundationAiCriteriaSearchShadowOptions",
2837
+ "name": "foundationAccordionShadowOptions",
2872
2838
  "declaration": {
2873
- "name": "foundationAiCriteriaSearchShadowOptions",
2874
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2839
+ "name": "foundationAccordionShadowOptions",
2840
+ "module": "src/accordion/accordion.ts"
2875
2841
  }
2876
2842
  },
2877
2843
  {
2878
2844
  "kind": "js",
2879
- "name": "defaultAiCriteriaSearchConfig",
2845
+ "name": "defaultAccordionConfig",
2880
2846
  "declaration": {
2881
- "name": "defaultAiCriteriaSearchConfig",
2882
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2847
+ "name": "defaultAccordionConfig",
2848
+ "module": "src/accordion/accordion.ts"
2883
2849
  }
2884
2850
  },
2885
2851
  {
2886
2852
  "kind": "js",
2887
- "name": "foundationAiCriteriaSearch",
2853
+ "name": "foundationAccordion",
2888
2854
  "declaration": {
2889
- "name": "foundationAiCriteriaSearch",
2890
- "module": "src/ai-criteria-search/ai-criteria-search.ts"
2855
+ "name": "foundationAccordion",
2856
+ "module": "src/accordion/accordion.ts"
2891
2857
  }
2892
2858
  }
2893
2859
  ]
2894
2860
  },
2895
2861
  {
2896
2862
  "kind": "javascript-module",
2897
- "path": "src/ai-criteria-search/index.ts",
2863
+ "path": "src/accordion/index.ts",
2898
2864
  "declarations": [],
2899
2865
  "exports": [
2900
2866
  {
2901
2867
  "kind": "js",
2902
- "name": "AiCriteriaSearch",
2868
+ "name": "*",
2903
2869
  "declaration": {
2904
- "name": "AiCriteriaSearch",
2905
- "module": "./ai-criteria-search"
2870
+ "name": "*",
2871
+ "package": "./accordion.template"
2906
2872
  }
2907
2873
  },
2908
2874
  {
2909
2875
  "kind": "js",
2910
- "name": "defaultAiCriteriaSearchConfig",
2876
+ "name": "*",
2911
2877
  "declaration": {
2912
- "name": "defaultAiCriteriaSearchConfig",
2913
- "module": "./ai-criteria-search"
2878
+ "name": "*",
2879
+ "package": "./accordion.styles"
2914
2880
  }
2915
2881
  },
2916
2882
  {
2917
2883
  "kind": "js",
2918
- "name": "foundationAiCriteriaSearch",
2884
+ "name": "*",
2919
2885
  "declaration": {
2920
- "name": "foundationAiCriteriaSearch",
2921
- "module": "./ai-criteria-search"
2886
+ "name": "*",
2887
+ "package": "./accordion"
2922
2888
  }
2923
- },
2889
+ }
2890
+ ]
2891
+ },
2892
+ {
2893
+ "kind": "javascript-module",
2894
+ "path": "src/ai-criteria-search/ai-criteria-search.styles.ts",
2895
+ "declarations": [
2924
2896
  {
2925
- "kind": "js",
2926
- "name": "foundationAiCriteriaSearchShadowOptions",
2927
- "declaration": {
2928
- "name": "foundationAiCriteriaSearchShadowOptions",
2929
- "module": "./ai-criteria-search"
2930
- }
2931
- },
2897
+ "kind": "variable",
2898
+ "name": "foundationAiCriteriaSearchStyles",
2899
+ "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 .mic-icon {\n color: var(--neutral-foreground-rest);\n fill: currentColor;\n }\n\n .mode-control {\n flex-shrink: 0;\n }\n`"
2900
+ }
2901
+ ],
2902
+ "exports": [
2932
2903
  {
2933
2904
  "kind": "js",
2934
2905
  "name": "foundationAiCriteriaSearchStyles",
2935
2906
  "declaration": {
2936
2907
  "name": "foundationAiCriteriaSearchStyles",
2937
- "module": "./ai-criteria-search.styles"
2908
+ "module": "src/ai-criteria-search/ai-criteria-search.styles.ts"
2938
2909
  }
2939
- },
2910
+ }
2911
+ ]
2912
+ },
2913
+ {
2914
+ "kind": "javascript-module",
2915
+ "path": "src/ai-criteria-search/ai-criteria-search.template.ts",
2916
+ "declarations": [
2940
2917
  {
2941
- "kind": "js",
2918
+ "kind": "variable",
2942
2919
  "name": "foundationAiCriteriaSearchTemplate",
2943
- "declaration": {
2944
- "name": "foundationAiCriteriaSearchTemplate",
2945
- "module": "./ai-criteria-search.template"
2946
- }
2947
- },
2948
- {
2949
- "kind": "js",
2950
- "name": "*",
2951
- "declaration": {
2952
- "name": "*",
2953
- "package": "./validation/criteria-ir"
2954
- }
2955
- },
2956
- {
2957
- "kind": "js",
2958
- "name": "*",
2959
- "declaration": {
2960
- "name": "*",
2961
- "package": "./validation/operator-map"
2962
- }
2963
- },
2920
+ "type": {
2921
+ "text": "ViewTemplate<AiCriteriaSearch>"
2922
+ },
2923
+ "default": "html`\n ${(x) => aiCriteriaSearchTemplate(getPrefix(x))}\n`"
2924
+ }
2925
+ ],
2926
+ "exports": [
2964
2927
  {
2965
2928
  "kind": "js",
2966
- "name": "*",
2929
+ "name": "foundationAiCriteriaSearchTemplate",
2967
2930
  "declaration": {
2968
- "name": "*",
2969
- "package": "./validation/schema-validator"
2931
+ "name": "foundationAiCriteriaSearchTemplate",
2932
+ "module": "src/ai-criteria-search/ai-criteria-search.template.ts"
2970
2933
  }
2971
2934
  }
2972
2935
  ]
2973
2936
  },
2974
2937
  {
2975
2938
  "kind": "javascript-module",
2976
- "path": "src/ai-criteria-search/validation-error-notification.ts",
2939
+ "path": "src/ai-criteria-search/ai-criteria-search.ts",
2977
2940
  "declarations": [
2978
2941
  {
2979
- "kind": "function",
2980
- "name": "formatValidationErrors",
2981
- "return": {
2982
- "type": {
2983
- "text": "string"
2984
- }
2985
- },
2986
- "parameters": [
2942
+ "kind": "class",
2943
+ "description": "Natural-language criteria search input with AI interpretation.",
2944
+ "name": "AiCriteriaSearch",
2945
+ "members": [
2987
2946
  {
2988
- "name": "errors",
2947
+ "kind": "field",
2948
+ "name": "aiProvider",
2989
2949
  "type": {
2990
- "text": "ValidationError[]"
2950
+ "text": "AIProvider"
2991
2951
  }
2992
- }
2993
- ],
2994
- "description": "Formats validation errors into a user-friendly message."
2995
- },
2996
- {
2997
- "kind": "function",
2998
- "name": "showCriteriaError",
2999
- "return": {
3000
- "type": {
3001
- "text": "void"
3002
- }
3003
- },
3004
- "parameters": [
2952
+ },
3005
2953
  {
3006
- "name": "title",
2954
+ "kind": "field",
2955
+ "name": "placeholder",
3007
2956
  "type": {
3008
2957
  "text": "string"
3009
2958
  },
3010
- "description": "Notification title (e.g. \"Criteria validation error\")"
2959
+ "default": "'Describe your search criteria in natural language...'"
3011
2960
  },
3012
2961
  {
3013
- "name": "body",
2962
+ "kind": "field",
2963
+ "name": "disabled",
3014
2964
  "type": {
3015
- "text": "string"
3016
- },
3017
- "description": "Error message to display"
2965
+ "text": "boolean"
2966
+ }
3018
2967
  },
3019
2968
  {
3020
- "name": "tagName",
2969
+ "kind": "field",
2970
+ "name": "mode",
3021
2971
  "type": {
3022
- "text": "string"
2972
+ "text": "'append' | 'replace'"
3023
2973
  },
3024
- "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3025
- }
3026
- ],
3027
- "description": "Shows a criteria error as a toast notification."
3028
- }
3029
- ],
3030
- "exports": [
3031
- {
3032
- "kind": "js",
3033
- "name": "formatValidationErrors",
3034
- "declaration": {
3035
- "name": "formatValidationErrors",
3036
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3037
- }
3038
- },
3039
- {
3040
- "kind": "js",
3041
- "name": "showCriteriaError",
3042
- "declaration": {
3043
- "name": "showCriteriaError",
3044
- "module": "src/ai-criteria-search/validation-error-notification.ts"
3045
- }
3046
- }
3047
- ]
3048
- },
3049
- {
3050
- "kind": "javascript-module",
3051
- "path": "src/accordion-item/accordion-item.styles.ts",
3052
- "declarations": [
3053
- {
3054
- "kind": "function",
3055
- "name": "foundationAccordionItemStyles",
3056
- "return": {
3057
- "type": {
3058
- "text": "ElementStyles"
3059
- }
3060
- },
3061
- "parameters": [
3062
- {
3063
- "name": "context",
3064
- "type": {
3065
- "text": "ElementDefinitionContext"
3066
- }
2974
+ "default": "'replace'"
3067
2975
  },
3068
2976
  {
3069
- "name": "definition",
2977
+ "kind": "field",
2978
+ "name": "inputValue",
3070
2979
  "type": {
3071
- "text": "FoundationElementDefinition"
3072
- }
3073
- }
3074
- ]
3075
- }
3076
- ],
3077
- "exports": [
3078
- {
3079
- "kind": "js",
3080
- "name": "foundationAccordionItemStyles",
3081
- "declaration": {
3082
- "name": "foundationAccordionItemStyles",
3083
- "module": "src/accordion-item/accordion-item.styles.ts"
3084
- }
3085
- }
3086
- ]
3087
- },
3088
- {
3089
- "kind": "javascript-module",
3090
- "path": "src/accordion-item/accordion-item.template.ts",
3091
- "declarations": [
3092
- {
3093
- "kind": "function",
3094
- "name": "foundationAccordionItemTemplate",
3095
- "return": {
3096
- "type": {
3097
- "text": "ViewTemplate<AccordionItem>"
3098
- }
3099
- },
3100
- "parameters": [
2980
+ "text": "string"
2981
+ },
2982
+ "default": "''"
2983
+ },
3101
2984
  {
3102
- "name": "context",
2985
+ "kind": "field",
2986
+ "name": "isInterpreting",
3103
2987
  "type": {
3104
- "text": "ElementDefinitionContext"
3105
- }
2988
+ "text": "boolean"
2989
+ },
2990
+ "default": "false"
3106
2991
  },
3107
2992
  {
3108
- "name": "definition",
2993
+ "kind": "field",
2994
+ "name": "lastValidCriteria",
3109
2995
  "type": {
3110
- "text": "FoundationElementDefinition"
3111
- }
3112
- }
3113
- ]
3114
- }
3115
- ],
3116
- "exports": [
3117
- {
3118
- "kind": "js",
3119
- "name": "foundationAccordionItemTemplate",
3120
- "declaration": {
3121
- "name": "foundationAccordionItemTemplate",
3122
- "module": "src/accordion-item/accordion-item.template.ts"
3123
- }
3124
- }
3125
- ]
3126
- },
3127
- {
3128
- "kind": "javascript-module",
3129
- "path": "src/accordion-item/accordion-item.ts",
3130
- "declarations": [
3131
- {
3132
- "kind": "class",
3133
- "description": "",
3134
- "name": "AccordionItem",
3135
- "superclass": {
3136
- "name": "FASTAccordionItem",
3137
- "package": "@microsoft/fast-components"
3138
- },
3139
- "tagName": "%%prefix%%-accordion-item",
3140
- "customElement": true,
3141
- "attributes": [
2996
+ "text": "string | null"
2997
+ },
2998
+ "default": "null"
2999
+ },
3142
3000
  {
3143
- "name": "heading-level",
3001
+ "kind": "field",
3002
+ "name": "fieldMetadata",
3144
3003
  "type": {
3145
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3004
+ "text": "MetadataDetail[] | string[]"
3146
3005
  },
3147
- "default": "2",
3148
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
3149
- "fieldName": "headinglevel",
3150
- "inheritedFrom": {
3151
- "name": "AccordionItem",
3152
- "module": "src/accordion-item/accordion-item.ts"
3153
- }
3006
+ "default": "[]"
3154
3007
  },
3155
3008
  {
3009
+ "kind": "field",
3010
+ "name": "isRecording",
3156
3011
  "type": {
3157
3012
  "text": "boolean"
3158
3013
  },
3159
- "default": "false",
3160
- "description": "Expands or collapses the item.",
3161
- "fieldName": "expanded",
3162
- "inheritedFrom": {
3163
- "name": "AccordionItem",
3164
- "module": "src/accordion-item/accordion-item.ts"
3165
- }
3014
+ "default": "false"
3166
3015
  },
3167
3016
  {
3168
- "name": "id",
3017
+ "kind": "field",
3018
+ "name": "textAreaRef",
3169
3019
  "type": {
3170
- "text": "string"
3020
+ "text": "HTMLTextAreaElement"
3171
3021
  },
3172
- "description": "The item ID",
3173
- "fieldName": "id",
3174
- "inheritedFrom": {
3175
- "name": "AccordionItem",
3176
- "module": "src/accordion-item/accordion-item.ts"
3177
- }
3178
- }
3179
- ],
3180
- "members": [
3022
+ "privacy": "public"
3023
+ },
3181
3024
  {
3182
3025
  "kind": "field",
3183
- "name": "headinglevel",
3026
+ "name": "stopRecording",
3184
3027
  "type": {
3185
- "text": "1 | 2 | 3 | 4 | 5 | 6"
3028
+ "text": "(() => void) | null"
3186
3029
  },
3187
- "privacy": "public",
3188
- "default": "2",
3189
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
3190
- "inheritedFrom": {
3191
- "name": "AccordionItem",
3192
- "module": "src/accordion-item/accordion-item.ts"
3193
- }
3030
+ "privacy": "private",
3031
+ "default": "null"
3194
3032
  },
3195
3033
  {
3196
3034
  "kind": "field",
3197
- "name": "expanded",
3035
+ "name": "speechApplyDebounceTimer",
3198
3036
  "type": {
3199
- "text": "boolean"
3037
+ "text": "ReturnType<typeof setTimeout> | null"
3200
3038
  },
3201
- "privacy": "public",
3202
- "default": "false",
3203
- "description": "Expands or collapses the item.",
3204
- "inheritedFrom": {
3205
- "name": "AccordionItem",
3206
- "module": "src/accordion-item/accordion-item.ts"
3207
- }
3039
+ "privacy": "private",
3040
+ "default": "null"
3208
3041
  },
3209
3042
  {
3210
3043
  "kind": "field",
3211
- "name": "id",
3044
+ "name": "baseInputForAppend",
3212
3045
  "type": {
3213
3046
  "text": "string"
3214
3047
  },
3215
- "privacy": "public",
3216
- "description": "The item ID",
3217
- "inheritedFrom": {
3218
- "name": "AccordionItem",
3219
- "module": "src/accordion-item/accordion-item.ts"
3220
- }
3048
+ "privacy": "private",
3049
+ "default": "''"
3221
3050
  },
3222
3051
  {
3223
3052
  "kind": "field",
3224
- "name": "change",
3225
- "privacy": "private",
3226
- "inheritedFrom": {
3227
- "name": "AccordionItem",
3228
- "module": "src/accordion-item/accordion-item.ts"
3229
- }
3053
+ "name": "speechAvailable",
3054
+ "type": {
3055
+ "text": "boolean"
3056
+ },
3057
+ "readonly": true
3058
+ },
3059
+ {
3060
+ "kind": "method",
3061
+ "name": "handleSubmit"
3062
+ },
3063
+ {
3064
+ "kind": "method",
3065
+ "name": "handleBlur"
3066
+ },
3067
+ {
3068
+ "kind": "method",
3069
+ "name": "clear"
3070
+ },
3071
+ {
3072
+ "kind": "method",
3073
+ "name": "toggleSpeechInput"
3074
+ },
3075
+ {
3076
+ "kind": "method",
3077
+ "name": "clearSpeechApplyDebounce",
3078
+ "privacy": "private"
3230
3079
  },
3231
3080
  {
3232
3081
  "kind": "field",
@@ -3342,84 +3191,160 @@
3342
3191
  ],
3343
3192
  "events": [
3344
3193
  {
3345
- "description": "Fires a custom 'change' event when the button is invoked",
3346
- "name": "change",
3347
- "inheritedFrom": {
3348
- "name": "AccordionItem",
3349
- "module": "src/accordion-item/accordion-item.ts"
3350
- }
3194
+ "description": "Fired when interpreted criteria is applied or cleared",
3195
+ "name": "criteria-changed"
3196
+ },
3197
+ {
3198
+ "description": "Fired when interpreted criteria contains invalid clauses",
3199
+ "name": "validation-errors"
3351
3200
  }
3352
- ]
3201
+ ],
3202
+ "attributes": [
3203
+ {
3204
+ "name": "placeholder",
3205
+ "type": {
3206
+ "text": "string"
3207
+ },
3208
+ "default": "'Describe your search criteria in natural language...'",
3209
+ "fieldName": "placeholder"
3210
+ },
3211
+ {
3212
+ "type": {
3213
+ "text": "boolean"
3214
+ },
3215
+ "fieldName": "disabled"
3216
+ },
3217
+ {
3218
+ "name": "mode",
3219
+ "type": {
3220
+ "text": "'append' | 'replace'"
3221
+ },
3222
+ "default": "'replace'",
3223
+ "fieldName": "mode"
3224
+ }
3225
+ ],
3226
+ "superclass": {
3227
+ "name": "FoundationElement",
3228
+ "package": "@microsoft/fast-foundation"
3229
+ },
3230
+ "tagName": "%%prefix%%-ai-criteria-search",
3231
+ "customElement": true
3353
3232
  },
3354
3233
  {
3355
3234
  "kind": "variable",
3356
- "name": "foundationAccordionItemShadowOptions",
3235
+ "name": "foundationAiCriteriaSearchShadowOptions",
3357
3236
  "type": {
3358
3237
  "text": "ShadowRootInit"
3359
3238
  },
3360
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3239
+ "default": "undefined"
3361
3240
  },
3362
3241
  {
3363
3242
  "kind": "variable",
3364
- "name": "defaultAccordionItemConfig",
3243
+ "name": "defaultAiCriteriaSearchConfig",
3365
3244
  "type": {
3366
3245
  "text": "object"
3367
3246
  },
3368
- "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}"
3247
+ "default": "{}"
3369
3248
  },
3370
3249
  {
3371
3250
  "kind": "variable",
3372
- "name": "foundationAccordionItem",
3373
- "description": "The Foundation Accordion Item",
3374
- "privacy": "public"
3251
+ "name": "foundationAiCriteriaSearch"
3375
3252
  }
3376
3253
  ],
3377
3254
  "exports": [
3378
3255
  {
3379
3256
  "kind": "js",
3380
- "name": "AccordionItem",
3257
+ "name": "AiCriteriaSearch",
3381
3258
  "declaration": {
3382
- "name": "AccordionItem",
3383
- "module": "src/accordion-item/accordion-item.ts"
3259
+ "name": "AiCriteriaSearch",
3260
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3384
3261
  }
3385
3262
  },
3386
3263
  {
3387
3264
  "kind": "js",
3388
- "name": "foundationAccordionItemShadowOptions",
3265
+ "name": "foundationAiCriteriaSearchShadowOptions",
3389
3266
  "declaration": {
3390
- "name": "foundationAccordionItemShadowOptions",
3391
- "module": "src/accordion-item/accordion-item.ts"
3267
+ "name": "foundationAiCriteriaSearchShadowOptions",
3268
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3392
3269
  }
3393
3270
  },
3394
3271
  {
3395
3272
  "kind": "js",
3396
- "name": "defaultAccordionItemConfig",
3273
+ "name": "defaultAiCriteriaSearchConfig",
3397
3274
  "declaration": {
3398
- "name": "defaultAccordionItemConfig",
3399
- "module": "src/accordion-item/accordion-item.ts"
3275
+ "name": "defaultAiCriteriaSearchConfig",
3276
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3400
3277
  }
3401
3278
  },
3402
3279
  {
3403
3280
  "kind": "js",
3404
- "name": "foundationAccordionItem",
3281
+ "name": "foundationAiCriteriaSearch",
3405
3282
  "declaration": {
3406
- "name": "foundationAccordionItem",
3407
- "module": "src/accordion-item/accordion-item.ts"
3283
+ "name": "foundationAiCriteriaSearch",
3284
+ "module": "src/ai-criteria-search/ai-criteria-search.ts"
3408
3285
  }
3409
3286
  }
3410
3287
  ]
3411
3288
  },
3412
3289
  {
3413
3290
  "kind": "javascript-module",
3414
- "path": "src/accordion-item/index.ts",
3291
+ "path": "src/ai-criteria-search/index.ts",
3415
3292
  "declarations": [],
3416
3293
  "exports": [
3294
+ {
3295
+ "kind": "js",
3296
+ "name": "AiCriteriaSearch",
3297
+ "declaration": {
3298
+ "name": "AiCriteriaSearch",
3299
+ "module": "./ai-criteria-search"
3300
+ }
3301
+ },
3302
+ {
3303
+ "kind": "js",
3304
+ "name": "defaultAiCriteriaSearchConfig",
3305
+ "declaration": {
3306
+ "name": "defaultAiCriteriaSearchConfig",
3307
+ "module": "./ai-criteria-search"
3308
+ }
3309
+ },
3310
+ {
3311
+ "kind": "js",
3312
+ "name": "foundationAiCriteriaSearch",
3313
+ "declaration": {
3314
+ "name": "foundationAiCriteriaSearch",
3315
+ "module": "./ai-criteria-search"
3316
+ }
3317
+ },
3318
+ {
3319
+ "kind": "js",
3320
+ "name": "foundationAiCriteriaSearchShadowOptions",
3321
+ "declaration": {
3322
+ "name": "foundationAiCriteriaSearchShadowOptions",
3323
+ "module": "./ai-criteria-search"
3324
+ }
3325
+ },
3326
+ {
3327
+ "kind": "js",
3328
+ "name": "foundationAiCriteriaSearchStyles",
3329
+ "declaration": {
3330
+ "name": "foundationAiCriteriaSearchStyles",
3331
+ "module": "./ai-criteria-search.styles"
3332
+ }
3333
+ },
3334
+ {
3335
+ "kind": "js",
3336
+ "name": "foundationAiCriteriaSearchTemplate",
3337
+ "declaration": {
3338
+ "name": "foundationAiCriteriaSearchTemplate",
3339
+ "module": "./ai-criteria-search.template"
3340
+ }
3341
+ },
3417
3342
  {
3418
3343
  "kind": "js",
3419
3344
  "name": "*",
3420
3345
  "declaration": {
3421
3346
  "name": "*",
3422
- "package": "./accordion-item.template"
3347
+ "package": "./validation/criteria-ir"
3423
3348
  }
3424
3349
  },
3425
3350
  {
@@ -3427,7 +3352,7 @@
3427
3352
  "name": "*",
3428
3353
  "declaration": {
3429
3354
  "name": "*",
3430
- "package": "./accordion-item.styles"
3355
+ "package": "./validation/operator-map"
3431
3356
  }
3432
3357
  },
3433
3358
  {
@@ -3435,7 +3360,82 @@
3435
3360
  "name": "*",
3436
3361
  "declaration": {
3437
3362
  "name": "*",
3438
- "package": "./accordion-item"
3363
+ "package": "./validation/schema-validator"
3364
+ }
3365
+ }
3366
+ ]
3367
+ },
3368
+ {
3369
+ "kind": "javascript-module",
3370
+ "path": "src/ai-criteria-search/validation-error-notification.ts",
3371
+ "declarations": [
3372
+ {
3373
+ "kind": "function",
3374
+ "name": "formatValidationErrors",
3375
+ "return": {
3376
+ "type": {
3377
+ "text": "string"
3378
+ }
3379
+ },
3380
+ "parameters": [
3381
+ {
3382
+ "name": "errors",
3383
+ "type": {
3384
+ "text": "ValidationError[]"
3385
+ }
3386
+ }
3387
+ ],
3388
+ "description": "Formats validation errors into a user-friendly message."
3389
+ },
3390
+ {
3391
+ "kind": "function",
3392
+ "name": "showCriteriaError",
3393
+ "return": {
3394
+ "type": {
3395
+ "text": "void"
3396
+ }
3397
+ },
3398
+ "parameters": [
3399
+ {
3400
+ "name": "title",
3401
+ "type": {
3402
+ "text": "string"
3403
+ },
3404
+ "description": "Notification title (e.g. \"Criteria validation error\")"
3405
+ },
3406
+ {
3407
+ "name": "body",
3408
+ "type": {
3409
+ "text": "string"
3410
+ },
3411
+ "description": "Error message to display"
3412
+ },
3413
+ {
3414
+ "name": "tagName",
3415
+ "type": {
3416
+ "text": "string"
3417
+ },
3418
+ "description": "Design system prefix (e.g. \"rapid\", \"foundation\")"
3419
+ }
3420
+ ],
3421
+ "description": "Shows a criteria error as a toast notification."
3422
+ }
3423
+ ],
3424
+ "exports": [
3425
+ {
3426
+ "kind": "js",
3427
+ "name": "formatValidationErrors",
3428
+ "declaration": {
3429
+ "name": "formatValidationErrors",
3430
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3431
+ }
3432
+ },
3433
+ {
3434
+ "kind": "js",
3435
+ "name": "showCriteriaError",
3436
+ "declaration": {
3437
+ "name": "showCriteriaError",
3438
+ "module": "src/ai-criteria-search/validation-error-notification.ts"
3439
3439
  }
3440
3440
  }
3441
3441
  ]