@genesislcap/grid-tabulator 15.2.1 → 15.3.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +1151 -1151
  2. package/package.json +13 -13
@@ -1419,67 +1419,87 @@
1419
1419
  },
1420
1420
  {
1421
1421
  "kind": "javascript-module",
1422
- "path": "src/cell-editors/date.editor.ts",
1422
+ "path": "src/cell/cell.ts",
1423
1423
  "declarations": [
1424
1424
  {
1425
1425
  "kind": "class",
1426
- "description": "The date editor class for grid-tabulator",
1427
- "name": "DateEditor",
1426
+ "description": "The GridTabulator Cell element.",
1427
+ "name": "GridTabulatorCell",
1428
1428
  "members": [
1429
1429
  {
1430
1430
  "kind": "field",
1431
- "name": "params",
1431
+ "name": "renderer",
1432
1432
  "type": {
1433
- "text": "DateEditorParams"
1434
- }
1433
+ "text": "CellRendererFunc"
1434
+ },
1435
+ "privacy": "public"
1435
1436
  },
1436
1437
  {
1437
1438
  "kind": "field",
1438
- "name": "dateField",
1439
+ "name": "rendererParams",
1439
1440
  "type": {
1440
- "text": "any"
1441
- }
1441
+ "text": "CellRendererParams"
1442
+ },
1443
+ "privacy": "public"
1444
+ },
1445
+ {
1446
+ "kind": "field",
1447
+ "name": "slottedRenderer",
1448
+ "type": {
1449
+ "text": "HTMLElement[]"
1450
+ },
1451
+ "privacy": "public"
1442
1452
  },
1443
1453
  {
1444
1454
  "kind": "method",
1445
1455
  "name": "init",
1456
+ "privacy": "public",
1446
1457
  "parameters": [
1447
1458
  {
1448
1459
  "name": "params",
1449
1460
  "type": {
1450
- "text": "DateEditorParams"
1461
+ "text": "CellRendererParams"
1451
1462
  }
1452
1463
  }
1453
- ],
1454
- "description": "Initialize the editor with parameters"
1455
- },
1456
- {
1457
- "kind": "method",
1458
- "name": "getValue",
1459
- "description": "Get current value"
1464
+ ]
1460
1465
  },
1461
1466
  {
1462
1467
  "kind": "method",
1463
- "name": "getFormattedValue",
1464
- "description": "Format value for display"
1468
+ "name": "getElement",
1469
+ "privacy": "public",
1470
+ "return": {
1471
+ "type": {
1472
+ "text": "HTMLElement"
1473
+ }
1474
+ }
1465
1475
  },
1466
1476
  {
1467
1477
  "kind": "method",
1468
- "name": "focus",
1469
- "description": "Set focus to the input"
1478
+ "name": "destroy",
1479
+ "privacy": "public"
1470
1480
  },
1471
1481
  {
1472
1482
  "kind": "method",
1473
- "name": "handleKeyDown",
1483
+ "name": "refresh",
1484
+ "privacy": "public",
1485
+ "return": {
1486
+ "type": {
1487
+ "text": "boolean"
1488
+ }
1489
+ },
1474
1490
  "parameters": [
1475
1491
  {
1476
- "name": "event",
1492
+ "name": "params",
1477
1493
  "type": {
1478
- "text": "KeyboardEvent"
1494
+ "text": "CellRendererParams"
1479
1495
  }
1480
1496
  }
1481
- ],
1482
- "description": "Process key down events"
1497
+ ]
1498
+ },
1499
+ {
1500
+ "kind": "method",
1501
+ "name": "slottedRendererChanged",
1502
+ "privacy": "public"
1483
1503
  },
1484
1504
  {
1485
1505
  "kind": "field",
@@ -1596,76 +1616,33 @@
1596
1616
  "superclass": {
1597
1617
  "name": "FoundationElement",
1598
1618
  "package": "@microsoft/fast-foundation"
1599
- }
1600
- },
1601
- {
1602
- "kind": "variable",
1603
- "name": "dateEditorStyles",
1604
- "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
1605
- "description": "Styles for the date editor"
1606
- },
1607
- {
1608
- "kind": "function",
1609
- "name": "getDateEditorTemplate",
1610
- "parameters": [
1611
- {
1612
- "name": "prefix",
1613
- "default": "'foundation'",
1614
- "description": "The design system prefix to use. Defaults to 'foundation'."
1615
- }
1616
- ],
1617
- "description": "Get a Design System prefixed date field template.",
1618
- "return": {
1619
- "type": {
1620
- "text": ""
1621
- }
1622
1619
  },
1623
- "privacy": "public"
1624
- },
1625
- {
1626
- "kind": "variable",
1627
- "name": "foundationDateEditor",
1628
- "description": "Definition for the date editor component"
1620
+ "tagName": "grid-tabulator-cell",
1621
+ "customElement": true
1629
1622
  }
1630
1623
  ],
1631
1624
  "exports": [
1632
1625
  {
1633
1626
  "kind": "js",
1634
- "name": "DateEditor",
1635
- "declaration": {
1636
- "name": "DateEditor",
1637
- "module": "src/cell-editors/date.editor.ts"
1638
- }
1639
- },
1640
- {
1641
- "kind": "js",
1642
- "name": "dateEditorStyles",
1643
- "declaration": {
1644
- "name": "dateEditorStyles",
1645
- "module": "src/cell-editors/date.editor.ts"
1646
- }
1647
- },
1648
- {
1649
- "kind": "js",
1650
- "name": "getDateEditorTemplate",
1627
+ "name": "GridTabulatorCell",
1651
1628
  "declaration": {
1652
- "name": "getDateEditorTemplate",
1653
- "module": "src/cell-editors/date.editor.ts"
1629
+ "name": "GridTabulatorCell",
1630
+ "module": "src/cell/cell.ts"
1654
1631
  }
1655
1632
  },
1656
1633
  {
1657
- "kind": "js",
1658
- "name": "foundationDateEditor",
1634
+ "kind": "custom-element-definition",
1635
+ "name": "grid-tabulator-cell",
1659
1636
  "declaration": {
1660
- "name": "foundationDateEditor",
1661
- "module": "src/cell-editors/date.editor.ts"
1637
+ "name": "GridTabulatorCell",
1638
+ "module": "src/cell/cell.ts"
1662
1639
  }
1663
1640
  }
1664
1641
  ]
1665
1642
  },
1666
1643
  {
1667
1644
  "kind": "javascript-module",
1668
- "path": "src/cell-editors/index.ts",
1645
+ "path": "src/cell/index.ts",
1669
1646
  "declarations": [],
1670
1647
  "exports": [
1671
1648
  {
@@ -1673,816 +1650,428 @@
1673
1650
  "name": "*",
1674
1651
  "declaration": {
1675
1652
  "name": "*",
1676
- "package": "./date.editor"
1653
+ "package": "./cell"
1677
1654
  }
1678
- },
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ "kind": "javascript-module",
1660
+ "path": "src/cell-formatters/action.formatter.ts",
1661
+ "declarations": [
1679
1662
  {
1680
- "kind": "js",
1681
- "name": "*",
1682
- "declaration": {
1683
- "name": "*",
1684
- "package": "./number.editor"
1685
- }
1686
- },
1663
+ "kind": "function",
1664
+ "name": "actionFormatter",
1665
+ "return": {
1666
+ "type": {
1667
+ "text": ""
1668
+ }
1669
+ },
1670
+ "parameters": [
1671
+ {
1672
+ "name": "cell",
1673
+ "type": {
1674
+ "text": "any"
1675
+ },
1676
+ "description": "The cell component provided by Tabulator"
1677
+ },
1678
+ {
1679
+ "name": "formatterParams",
1680
+ "default": "{}",
1681
+ "type": {
1682
+ "text": "ActionFormatterParams<T>"
1683
+ },
1684
+ "description": "Action formatter parameters"
1685
+ }
1686
+ ],
1687
+ "description": "Formatter that displays an action button in the cell.\nStyled to match grid-pro action renderer.",
1688
+ "privacy": "public"
1689
+ }
1690
+ ],
1691
+ "exports": [
1687
1692
  {
1688
1693
  "kind": "js",
1689
- "name": "*",
1694
+ "name": "actionFormatter",
1690
1695
  "declaration": {
1691
- "name": "*",
1692
- "package": "./select.editor"
1696
+ "name": "actionFormatter",
1697
+ "module": "src/cell-formatters/action.formatter.ts"
1693
1698
  }
1694
- },
1699
+ }
1700
+ ]
1701
+ },
1702
+ {
1703
+ "kind": "javascript-module",
1704
+ "path": "src/cell-formatters/actions-menu.formatter.ts",
1705
+ "declarations": [
1695
1706
  {
1696
- "kind": "js",
1697
- "name": "*",
1698
- "declaration": {
1699
- "name": "*",
1700
- "package": "./string.editor"
1701
- }
1702
- },
1707
+ "kind": "function",
1708
+ "name": "actionsMenuFormatter",
1709
+ "return": {
1710
+ "type": {
1711
+ "text": ""
1712
+ }
1713
+ },
1714
+ "parameters": [
1715
+ {
1716
+ "name": "cell",
1717
+ "type": {
1718
+ "text": "any"
1719
+ },
1720
+ "description": "The cell component provided by Tabulator"
1721
+ },
1722
+ {
1723
+ "name": "formatterParams",
1724
+ "default": "{}",
1725
+ "type": {
1726
+ "text": "ActionsMenuFormatterParams<T>"
1727
+ },
1728
+ "description": "Actions menu formatter parameters"
1729
+ }
1730
+ ],
1731
+ "description": "Formatter that displays a dropdown menu of actions in the cell.\nStyled to match grid-pro actions-menu renderer.",
1732
+ "privacy": "public"
1733
+ }
1734
+ ],
1735
+ "exports": [
1703
1736
  {
1704
1737
  "kind": "js",
1705
- "name": "*",
1738
+ "name": "actionsMenuFormatter",
1706
1739
  "declaration": {
1707
- "name": "*",
1708
- "package": "./multiselect.editor"
1740
+ "name": "actionsMenuFormatter",
1741
+ "module": "src/cell-formatters/actions-menu.formatter.ts"
1709
1742
  }
1710
1743
  }
1711
1744
  ]
1712
1745
  },
1713
1746
  {
1714
1747
  "kind": "javascript-module",
1715
- "path": "src/cell-editors/multiselect.editor.ts",
1748
+ "path": "src/cell-formatters/boolean.formatter.ts",
1716
1749
  "declarations": [
1717
1750
  {
1718
- "kind": "class",
1719
- "description": "The multiselect editor class for grid-tabulator",
1720
- "name": "MultiselectEditor",
1721
- "members": [
1751
+ "kind": "function",
1752
+ "name": "booleanFormatter",
1753
+ "return": {
1754
+ "type": {
1755
+ "text": ""
1756
+ }
1757
+ },
1758
+ "parameters": [
1722
1759
  {
1723
- "kind": "field",
1724
- "name": "params",
1725
- "type": {
1726
- "text": "MultiselectEditorParams"
1727
- }
1728
- },
1729
- {
1730
- "kind": "field",
1731
- "name": "select",
1760
+ "name": "cell",
1732
1761
  "type": {
1733
1762
  "text": "any"
1734
- }
1735
- },
1736
- {
1737
- "kind": "method",
1738
- "name": "init",
1739
- "parameters": [
1740
- {
1741
- "name": "params",
1742
- "type": {
1743
- "text": "MultiselectEditorParams"
1744
- }
1745
- }
1746
- ],
1747
- "description": "Initialize the editor with parameters"
1748
- },
1749
- {
1750
- "kind": "method",
1751
- "name": "getValues",
1752
- "return": {
1753
- "type": {
1754
- "text": "(string | number)[]"
1755
- }
1756
- },
1757
- "description": "Get current values"
1758
- },
1759
- {
1760
- "kind": "method",
1761
- "name": "focus",
1762
- "description": "Set focus to the select"
1763
- },
1764
- {
1765
- "kind": "method",
1766
- "name": "isSelected",
1767
- "return": {
1768
- "type": {
1769
- "text": "boolean"
1770
- }
1771
- },
1772
- "parameters": [
1773
- {
1774
- "name": "value",
1775
- "type": {
1776
- "text": "string | number"
1777
- }
1778
- }
1779
- ],
1780
- "description": "Check if a value is selected"
1781
- },
1782
- {
1783
- "kind": "method",
1784
- "name": "handleKeyDown",
1785
- "parameters": [
1786
- {
1787
- "name": "event",
1788
- "type": {
1789
- "text": "KeyboardEvent"
1790
- }
1791
- }
1792
- ],
1793
- "description": "Process key down events"
1794
- },
1795
- {
1796
- "kind": "method",
1797
- "name": "handleChange",
1798
- "description": "Handle change event to save when selection changes"
1799
- },
1800
- {
1801
- "kind": "field",
1802
- "name": "_presentation",
1803
- "type": {
1804
- "text": "ComponentPresentation | null | undefined"
1805
1763
  },
1806
- "privacy": "private",
1807
- "default": "void 0",
1808
- "inheritedFrom": {
1809
- "name": "FoundationElement",
1810
- "module": "src/foundation-element/foundation-element.ts"
1811
- }
1764
+ "description": "The cell component provided by Tabulator"
1812
1765
  },
1813
1766
  {
1814
- "kind": "field",
1815
- "name": "$presentation",
1767
+ "name": "formatterParams",
1768
+ "default": "{}",
1816
1769
  "type": {
1817
- "text": "ComponentPresentation | null"
1770
+ "text": "BooleanFormatterParams<T>"
1818
1771
  },
1819
- "privacy": "public",
1820
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1821
- "inheritedFrom": {
1822
- "name": "FoundationElement",
1823
- "module": "src/foundation-element/foundation-element.ts"
1824
- }
1825
- },
1772
+ "description": "Boolean formatter parameters"
1773
+ }
1774
+ ],
1775
+ "description": "Formatter that displays boolean values using a checkbox component.\nStyled to match grid-pro boolean renderer.",
1776
+ "privacy": "public"
1777
+ }
1778
+ ],
1779
+ "exports": [
1780
+ {
1781
+ "kind": "js",
1782
+ "name": "booleanFormatter",
1783
+ "declaration": {
1784
+ "name": "booleanFormatter",
1785
+ "module": "src/cell-formatters/boolean.formatter.ts"
1786
+ }
1787
+ }
1788
+ ]
1789
+ },
1790
+ {
1791
+ "kind": "javascript-module",
1792
+ "path": "src/cell-formatters/constants.ts",
1793
+ "declarations": [],
1794
+ "exports": []
1795
+ },
1796
+ {
1797
+ "kind": "javascript-module",
1798
+ "path": "src/cell-formatters/editable.formatter.ts",
1799
+ "declarations": [
1800
+ {
1801
+ "kind": "function",
1802
+ "name": "editableFormatter",
1803
+ "return": {
1804
+ "type": {
1805
+ "text": ""
1806
+ }
1807
+ },
1808
+ "parameters": [
1826
1809
  {
1827
- "kind": "field",
1828
- "name": "template",
1810
+ "name": "cell",
1829
1811
  "type": {
1830
- "text": "ElementViewTemplate | void | null"
1831
- },
1832
- "privacy": "public",
1833
- "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.",
1834
- "inheritedFrom": {
1835
- "name": "FoundationElement",
1836
- "module": "src/foundation-element/foundation-element.ts"
1837
- }
1838
- },
1839
- {
1840
- "kind": "method",
1841
- "name": "templateChanged",
1842
- "privacy": "protected",
1843
- "return": {
1844
- "type": {
1845
- "text": "void"
1846
- }
1812
+ "text": "any"
1847
1813
  },
1848
- "inheritedFrom": {
1849
- "name": "FoundationElement",
1850
- "module": "src/foundation-element/foundation-element.ts"
1851
- }
1814
+ "description": "The cell component provided by Tabulator"
1852
1815
  },
1853
1816
  {
1854
- "kind": "field",
1855
- "name": "styles",
1817
+ "name": "formatterParams",
1818
+ "default": "{}",
1856
1819
  "type": {
1857
- "text": "ElementStyles | void | null"
1858
- },
1859
- "privacy": "public",
1860
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1861
- "inheritedFrom": {
1862
- "name": "FoundationElement",
1863
- "module": "src/foundation-element/foundation-element.ts"
1864
- }
1865
- },
1866
- {
1867
- "kind": "method",
1868
- "name": "stylesChanged",
1869
- "privacy": "protected",
1870
- "return": {
1871
- "type": {
1872
- "text": "void"
1873
- }
1874
- },
1875
- "inheritedFrom": {
1876
- "name": "FoundationElement",
1877
- "module": "src/foundation-element/foundation-element.ts"
1878
- }
1879
- },
1880
- {
1881
- "kind": "method",
1882
- "name": "compose",
1883
- "privacy": "public",
1884
- "static": true,
1885
- "return": {
1886
- "type": {
1887
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1888
- }
1820
+ "text": "EditableFormatterParams<T>"
1889
1821
  },
1890
- "parameters": [
1891
- {
1892
- "name": "this",
1893
- "type": {
1894
- "text": "K"
1895
- }
1896
- },
1897
- {
1898
- "name": "elementDefinition",
1899
- "type": {
1900
- "text": "T"
1901
- },
1902
- "description": "The definition of the element to create the registry\nfunction for."
1903
- }
1904
- ],
1905
- "description": "Defines an element registry function with a set of element definition defaults.",
1906
- "inheritedFrom": {
1907
- "name": "FoundationElement",
1908
- "module": "src/foundation-element/foundation-element.ts"
1909
- }
1822
+ "description": "Editable formatter parameters"
1910
1823
  }
1911
1824
  ],
1912
- "superclass": {
1913
- "name": "FoundationElement",
1914
- "package": "@microsoft/fast-foundation"
1915
- }
1916
- },
1917
- {
1918
- "kind": "variable",
1919
- "name": "multiselectEditorStyles",
1920
- "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
1921
- "description": "Styles for the multiselect editor"
1922
- },
1825
+ "description": "Formatter that displays an editable cell with validation state",
1826
+ "privacy": "public"
1827
+ }
1828
+ ],
1829
+ "exports": [
1923
1830
  {
1924
- "kind": "function",
1925
- "name": "getMultiselectEditorTemplate",
1926
- "parameters": [
1927
- {
1928
- "name": "prefix",
1929
- "default": "'foundation'",
1930
- "description": "The design system prefix to use. Defaults to 'foundation'."
1931
- }
1932
- ],
1933
- "description": "Get a Design System prefixed Select template.",
1934
- "return": {
1935
- "type": {
1936
- "text": ""
1937
- }
1831
+ "kind": "js",
1832
+ "name": "editableFormatter",
1833
+ "declaration": {
1834
+ "name": "editableFormatter",
1835
+ "module": "src/cell-formatters/editable.formatter.ts"
1938
1836
  }
1939
- },
1837
+ }
1838
+ ]
1839
+ },
1840
+ {
1841
+ "kind": "javascript-module",
1842
+ "path": "src/cell-formatters/index.ts",
1843
+ "declarations": [
1940
1844
  {
1941
1845
  "kind": "variable",
1942
- "name": "foundationMultiselectEditor",
1943
- "description": "Definition for the multiselect editor component"
1846
+ "name": "formatters",
1847
+ "type": {
1848
+ "text": "object"
1849
+ },
1850
+ "default": "{\n action: actionFormatter,\n actionsMenu: actionsMenuFormatter,\n boolean: booleanFormatter,\n editable: editableFormatter,\n select: selectFormatter,\n text: textFormatter,\n}",
1851
+ "description": "Zero formatters for Tabulator grid"
1944
1852
  }
1945
1853
  ],
1946
1854
  "exports": [
1947
1855
  {
1948
1856
  "kind": "js",
1949
- "name": "MultiselectEditor",
1857
+ "name": "*",
1950
1858
  "declaration": {
1951
- "name": "MultiselectEditor",
1952
- "module": "src/cell-editors/multiselect.editor.ts"
1859
+ "name": "*",
1860
+ "package": "./constants"
1953
1861
  }
1954
1862
  },
1955
1863
  {
1956
1864
  "kind": "js",
1957
- "name": "multiselectEditorStyles",
1865
+ "name": "ActionFormatterParams",
1958
1866
  "declaration": {
1959
- "name": "multiselectEditorStyles",
1960
- "module": "src/cell-editors/multiselect.editor.ts"
1867
+ "name": "ActionFormatterParams",
1868
+ "module": "src/cell-formatters/index.ts"
1961
1869
  }
1962
1870
  },
1963
1871
  {
1964
1872
  "kind": "js",
1965
- "name": "getMultiselectEditorTemplate",
1873
+ "name": "actionFormatter",
1966
1874
  "declaration": {
1967
- "name": "getMultiselectEditorTemplate",
1968
- "module": "src/cell-editors/multiselect.editor.ts"
1875
+ "name": "actionFormatter",
1876
+ "module": "src/cell-formatters/index.ts"
1969
1877
  }
1970
1878
  },
1971
1879
  {
1972
1880
  "kind": "js",
1973
- "name": "foundationMultiselectEditor",
1881
+ "name": "ActionsMenuFormatterParams",
1974
1882
  "declaration": {
1975
- "name": "foundationMultiselectEditor",
1976
- "module": "src/cell-editors/multiselect.editor.ts"
1883
+ "name": "ActionsMenuFormatterParams",
1884
+ "module": "src/cell-formatters/index.ts"
1977
1885
  }
1978
- }
1979
- ]
1980
- },
1981
- {
1982
- "kind": "javascript-module",
1983
- "path": "src/cell-editors/number.editor.ts",
1984
- "declarations": [
1886
+ },
1985
1887
  {
1986
- "kind": "class",
1987
- "description": "The number editor class for grid-tabulator",
1988
- "name": "NumberEditor",
1989
- "members": [
1990
- {
1991
- "kind": "field",
1992
- "name": "params",
1993
- "type": {
1994
- "text": "NumberEditorParams"
1995
- }
1996
- },
1997
- {
1998
- "kind": "field",
1999
- "name": "numberField",
2000
- "type": {
2001
- "text": "any"
2002
- }
2003
- },
2004
- {
2005
- "kind": "method",
2006
- "name": "init",
2007
- "parameters": [
2008
- {
2009
- "name": "params",
2010
- "type": {
2011
- "text": "NumberEditorParams"
2012
- }
2013
- }
2014
- ],
2015
- "description": "Initialize the editor with parameters"
2016
- },
2017
- {
2018
- "kind": "method",
2019
- "name": "getValue",
2020
- "description": "Get current value"
2021
- },
2022
- {
2023
- "kind": "method",
2024
- "name": "focus",
2025
- "description": "Set focus to the input"
2026
- },
2027
- {
2028
- "kind": "method",
2029
- "name": "handleKeyDown",
2030
- "parameters": [
2031
- {
2032
- "name": "event",
2033
- "type": {
2034
- "text": "KeyboardEvent"
2035
- }
2036
- }
2037
- ],
2038
- "description": "Process key down events"
2039
- },
2040
- {
2041
- "kind": "field",
2042
- "name": "_presentation",
2043
- "type": {
2044
- "text": "ComponentPresentation | null | undefined"
2045
- },
2046
- "privacy": "private",
2047
- "default": "void 0",
2048
- "inheritedFrom": {
2049
- "name": "FoundationElement",
2050
- "module": "src/foundation-element/foundation-element.ts"
2051
- }
2052
- },
2053
- {
2054
- "kind": "field",
2055
- "name": "$presentation",
2056
- "type": {
2057
- "text": "ComponentPresentation | null"
2058
- },
2059
- "privacy": "public",
2060
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2061
- "inheritedFrom": {
2062
- "name": "FoundationElement",
2063
- "module": "src/foundation-element/foundation-element.ts"
2064
- }
2065
- },
2066
- {
2067
- "kind": "field",
2068
- "name": "template",
2069
- "type": {
2070
- "text": "ElementViewTemplate | void | null"
2071
- },
2072
- "privacy": "public",
2073
- "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.",
2074
- "inheritedFrom": {
2075
- "name": "FoundationElement",
2076
- "module": "src/foundation-element/foundation-element.ts"
2077
- }
2078
- },
2079
- {
2080
- "kind": "method",
2081
- "name": "templateChanged",
2082
- "privacy": "protected",
2083
- "return": {
2084
- "type": {
2085
- "text": "void"
2086
- }
2087
- },
2088
- "inheritedFrom": {
2089
- "name": "FoundationElement",
2090
- "module": "src/foundation-element/foundation-element.ts"
2091
- }
2092
- },
2093
- {
2094
- "kind": "field",
2095
- "name": "styles",
2096
- "type": {
2097
- "text": "ElementStyles | void | null"
2098
- },
2099
- "privacy": "public",
2100
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2101
- "inheritedFrom": {
2102
- "name": "FoundationElement",
2103
- "module": "src/foundation-element/foundation-element.ts"
2104
- }
2105
- },
2106
- {
2107
- "kind": "method",
2108
- "name": "stylesChanged",
2109
- "privacy": "protected",
2110
- "return": {
2111
- "type": {
2112
- "text": "void"
2113
- }
2114
- },
2115
- "inheritedFrom": {
2116
- "name": "FoundationElement",
2117
- "module": "src/foundation-element/foundation-element.ts"
2118
- }
2119
- },
2120
- {
2121
- "kind": "method",
2122
- "name": "compose",
2123
- "privacy": "public",
2124
- "static": true,
2125
- "return": {
2126
- "type": {
2127
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2128
- }
2129
- },
2130
- "parameters": [
2131
- {
2132
- "name": "this",
2133
- "type": {
2134
- "text": "K"
2135
- }
2136
- },
2137
- {
2138
- "name": "elementDefinition",
2139
- "type": {
2140
- "text": "T"
2141
- },
2142
- "description": "The definition of the element to create the registry\nfunction for."
2143
- }
2144
- ],
2145
- "description": "Defines an element registry function with a set of element definition defaults.",
2146
- "inheritedFrom": {
2147
- "name": "FoundationElement",
2148
- "module": "src/foundation-element/foundation-element.ts"
2149
- }
2150
- }
2151
- ],
2152
- "superclass": {
2153
- "name": "FoundationElement",
2154
- "package": "@microsoft/fast-foundation"
1888
+ "kind": "js",
1889
+ "name": "actionsMenuFormatter",
1890
+ "declaration": {
1891
+ "name": "actionsMenuFormatter",
1892
+ "module": "src/cell-formatters/index.ts"
2155
1893
  }
2156
1894
  },
2157
1895
  {
2158
- "kind": "variable",
2159
- "name": "numberEditorStyles",
2160
- "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
2161
- "description": "Styles for the number editor"
1896
+ "kind": "js",
1897
+ "name": "BooleanFormatterParams",
1898
+ "declaration": {
1899
+ "name": "BooleanFormatterParams",
1900
+ "module": "src/cell-formatters/index.ts"
1901
+ }
2162
1902
  },
2163
1903
  {
2164
- "kind": "function",
2165
- "name": "getNumberEditorTemplate",
2166
- "parameters": [
2167
- {
2168
- "name": "prefix",
2169
- "default": "'foundation'",
2170
- "description": "The design system prefix to use. Defaults to 'foundation'."
2171
- }
2172
- ],
2173
- "description": "Get a Design System prefixed number field template.",
2174
- "return": {
2175
- "type": {
2176
- "text": ""
2177
- }
1904
+ "kind": "js",
1905
+ "name": "booleanFormatter",
1906
+ "declaration": {
1907
+ "name": "booleanFormatter",
1908
+ "module": "src/cell-formatters/index.ts"
1909
+ }
1910
+ },
1911
+ {
1912
+ "kind": "js",
1913
+ "name": "EditableFormatterParams",
1914
+ "declaration": {
1915
+ "name": "EditableFormatterParams",
1916
+ "module": "src/cell-formatters/index.ts"
2178
1917
  }
2179
1918
  },
2180
1919
  {
2181
- "kind": "variable",
2182
- "name": "foundationNumberEditor",
2183
- "description": "Definition for the number editor component"
2184
- }
2185
- ],
2186
- "exports": [
1920
+ "kind": "js",
1921
+ "name": "editableFormatter",
1922
+ "declaration": {
1923
+ "name": "editableFormatter",
1924
+ "module": "src/cell-formatters/index.ts"
1925
+ }
1926
+ },
2187
1927
  {
2188
1928
  "kind": "js",
2189
- "name": "NumberEditor",
1929
+ "name": "SelectFormatterParams",
2190
1930
  "declaration": {
2191
- "name": "NumberEditor",
2192
- "module": "src/cell-editors/number.editor.ts"
1931
+ "name": "SelectFormatterParams",
1932
+ "module": "src/cell-formatters/index.ts"
2193
1933
  }
2194
1934
  },
2195
1935
  {
2196
1936
  "kind": "js",
2197
- "name": "numberEditorStyles",
1937
+ "name": "selectFormatter",
2198
1938
  "declaration": {
2199
- "name": "numberEditorStyles",
2200
- "module": "src/cell-editors/number.editor.ts"
1939
+ "name": "selectFormatter",
1940
+ "module": "src/cell-formatters/index.ts"
2201
1941
  }
2202
1942
  },
2203
1943
  {
2204
1944
  "kind": "js",
2205
- "name": "getNumberEditorTemplate",
1945
+ "name": "TextFormatterParams",
2206
1946
  "declaration": {
2207
- "name": "getNumberEditorTemplate",
2208
- "module": "src/cell-editors/number.editor.ts"
1947
+ "name": "TextFormatterParams",
1948
+ "module": "src/cell-formatters/index.ts"
2209
1949
  }
2210
1950
  },
2211
1951
  {
2212
1952
  "kind": "js",
2213
- "name": "foundationNumberEditor",
1953
+ "name": "textFormatter",
2214
1954
  "declaration": {
2215
- "name": "foundationNumberEditor",
2216
- "module": "src/cell-editors/number.editor.ts"
1955
+ "name": "textFormatter",
1956
+ "module": "src/cell-formatters/index.ts"
1957
+ }
1958
+ },
1959
+ {
1960
+ "kind": "js",
1961
+ "name": "formatters",
1962
+ "declaration": {
1963
+ "name": "formatters",
1964
+ "module": "src/cell-formatters/index.ts"
2217
1965
  }
2218
1966
  }
2219
1967
  ]
2220
1968
  },
2221
1969
  {
2222
1970
  "kind": "javascript-module",
2223
- "path": "src/cell-editors/select.editor.ts",
1971
+ "path": "src/cell-formatters/select.formatter.ts",
2224
1972
  "declarations": [
2225
1973
  {
2226
- "kind": "class",
2227
- "description": "The select editor class for grid-tabulator",
2228
- "name": "SelectEditor",
2229
- "members": [
2230
- {
2231
- "kind": "field",
2232
- "name": "params",
2233
- "type": {
2234
- "text": "SelectEditorParams"
2235
- }
2236
- },
1974
+ "kind": "function",
1975
+ "name": "selectFormatter",
1976
+ "return": {
1977
+ "type": {
1978
+ "text": ""
1979
+ }
1980
+ },
1981
+ "parameters": [
2237
1982
  {
2238
- "kind": "field",
2239
- "name": "select",
1983
+ "name": "cell",
2240
1984
  "type": {
2241
1985
  "text": "any"
2242
- }
2243
- },
2244
- {
2245
- "kind": "method",
2246
- "name": "init",
2247
- "parameters": [
2248
- {
2249
- "name": "params",
2250
- "type": {
2251
- "text": "SelectEditorParams"
2252
- }
2253
- }
2254
- ],
2255
- "description": "Initialize the editor with parameters"
2256
- },
2257
- {
2258
- "kind": "method",
2259
- "name": "getValue",
2260
- "description": "Get current value"
2261
- },
2262
- {
2263
- "kind": "method",
2264
- "name": "focus",
2265
- "description": "Set focus to the select"
2266
- },
2267
- {
2268
- "kind": "method",
2269
- "name": "handleKeyDown",
2270
- "parameters": [
2271
- {
2272
- "name": "event",
2273
- "type": {
2274
- "text": "KeyboardEvent"
2275
- }
2276
- }
2277
- ],
2278
- "description": "Process key down events"
2279
- },
2280
- {
2281
- "kind": "method",
2282
- "name": "handleChange",
2283
- "description": "Handle change event"
2284
- },
2285
- {
2286
- "kind": "field",
2287
- "name": "_presentation",
2288
- "type": {
2289
- "text": "ComponentPresentation | null | undefined"
2290
- },
2291
- "privacy": "private",
2292
- "default": "void 0",
2293
- "inheritedFrom": {
2294
- "name": "FoundationElement",
2295
- "module": "src/foundation-element/foundation-element.ts"
2296
- }
2297
- },
2298
- {
2299
- "kind": "field",
2300
- "name": "$presentation",
2301
- "type": {
2302
- "text": "ComponentPresentation | null"
2303
- },
2304
- "privacy": "public",
2305
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2306
- "inheritedFrom": {
2307
- "name": "FoundationElement",
2308
- "module": "src/foundation-element/foundation-element.ts"
2309
- }
2310
- },
2311
- {
2312
- "kind": "field",
2313
- "name": "template",
2314
- "type": {
2315
- "text": "ElementViewTemplate | void | null"
2316
- },
2317
- "privacy": "public",
2318
- "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.",
2319
- "inheritedFrom": {
2320
- "name": "FoundationElement",
2321
- "module": "src/foundation-element/foundation-element.ts"
2322
- }
2323
- },
2324
- {
2325
- "kind": "method",
2326
- "name": "templateChanged",
2327
- "privacy": "protected",
2328
- "return": {
2329
- "type": {
2330
- "text": "void"
2331
- }
2332
1986
  },
2333
- "inheritedFrom": {
2334
- "name": "FoundationElement",
2335
- "module": "src/foundation-element/foundation-element.ts"
2336
- }
1987
+ "description": "The cell component provided by Tabulator"
2337
1988
  },
2338
1989
  {
2339
- "kind": "field",
2340
- "name": "styles",
1990
+ "name": "formatterParams",
2341
1991
  "type": {
2342
- "text": "ElementStyles | void | null"
2343
- },
2344
- "privacy": "public",
2345
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2346
- "inheritedFrom": {
2347
- "name": "FoundationElement",
2348
- "module": "src/foundation-element/foundation-element.ts"
2349
- }
2350
- },
2351
- {
2352
- "kind": "method",
2353
- "name": "stylesChanged",
2354
- "privacy": "protected",
2355
- "return": {
2356
- "type": {
2357
- "text": "void"
2358
- }
2359
- },
2360
- "inheritedFrom": {
2361
- "name": "FoundationElement",
2362
- "module": "src/foundation-element/foundation-element.ts"
2363
- }
2364
- },
2365
- {
2366
- "kind": "method",
2367
- "name": "compose",
2368
- "privacy": "public",
2369
- "static": true,
2370
- "return": {
2371
- "type": {
2372
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2373
- }
1992
+ "text": "SelectFormatterParams<T>"
2374
1993
  },
2375
- "parameters": [
2376
- {
2377
- "name": "this",
2378
- "type": {
2379
- "text": "K"
2380
- }
2381
- },
2382
- {
2383
- "name": "elementDefinition",
2384
- "type": {
2385
- "text": "T"
2386
- },
2387
- "description": "The definition of the element to create the registry\nfunction for."
2388
- }
2389
- ],
2390
- "description": "Defines an element registry function with a set of element definition defaults.",
2391
- "inheritedFrom": {
2392
- "name": "FoundationElement",
2393
- "module": "src/foundation-element/foundation-element.ts"
2394
- }
1994
+ "description": "Select formatter parameters"
2395
1995
  }
2396
1996
  ],
2397
- "superclass": {
2398
- "name": "FoundationElement",
2399
- "package": "@microsoft/fast-foundation"
2400
- }
2401
- },
2402
- {
2403
- "kind": "variable",
2404
- "name": "selectEditorStyles",
2405
- "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
2406
- "description": "Styles for the select editor"
2407
- },
1997
+ "description": "Formatter that displays a select component with options.\nReturns a wrapped div containing the select, similar to boolean.formatter.",
1998
+ "privacy": "public"
1999
+ }
2000
+ ],
2001
+ "exports": [
2408
2002
  {
2409
- "kind": "function",
2410
- "name": "getSelectEditorTemplate",
2411
- "parameters": [
2412
- {
2413
- "name": "prefix",
2414
- "default": "'foundation'",
2415
- "description": "The design system prefix to use. Defaults to 'foundation'."
2416
- }
2417
- ],
2418
- "description": "Get a Design System prefixed Select template.",
2003
+ "kind": "js",
2004
+ "name": "selectFormatter",
2005
+ "declaration": {
2006
+ "name": "selectFormatter",
2007
+ "module": "src/cell-formatters/select.formatter.ts"
2008
+ }
2009
+ }
2010
+ ]
2011
+ },
2012
+ {
2013
+ "kind": "javascript-module",
2014
+ "path": "src/cell-formatters/text.formatter.ts",
2015
+ "declarations": [
2016
+ {
2017
+ "kind": "function",
2018
+ "name": "textFormatter",
2419
2019
  "return": {
2420
2020
  "type": {
2421
2021
  "text": ""
2422
2022
  }
2423
2023
  },
2024
+ "parameters": [
2025
+ {
2026
+ "name": "cell",
2027
+ "type": {
2028
+ "text": "any"
2029
+ },
2030
+ "description": "The cell component provided by Tabulator"
2031
+ },
2032
+ {
2033
+ "name": "formatterParams",
2034
+ "default": "{}",
2035
+ "type": {
2036
+ "text": "TextFormatterParams<T>"
2037
+ },
2038
+ "description": "Text formatter parameters"
2039
+ }
2040
+ ],
2041
+ "description": "Text formatter for customized display of values.\nStyled to match grid-pro text renderer.",
2424
2042
  "privacy": "public"
2425
- },
2426
- {
2427
- "kind": "variable",
2428
- "name": "foundationSelectEditor",
2429
- "description": "Definition for the select editor component"
2430
2043
  }
2431
2044
  ],
2432
2045
  "exports": [
2433
2046
  {
2434
2047
  "kind": "js",
2435
- "name": "SelectEditor",
2436
- "declaration": {
2437
- "name": "SelectEditor",
2438
- "module": "src/cell-editors/select.editor.ts"
2439
- }
2440
- },
2441
- {
2442
- "kind": "js",
2443
- "name": "selectEditorStyles",
2444
- "declaration": {
2445
- "name": "selectEditorStyles",
2446
- "module": "src/cell-editors/select.editor.ts"
2447
- }
2448
- },
2449
- {
2450
- "kind": "js",
2451
- "name": "getSelectEditorTemplate",
2452
- "declaration": {
2453
- "name": "getSelectEditorTemplate",
2454
- "module": "src/cell-editors/select.editor.ts"
2455
- }
2456
- },
2457
- {
2458
- "kind": "js",
2459
- "name": "foundationSelectEditor",
2048
+ "name": "textFormatter",
2460
2049
  "declaration": {
2461
- "name": "foundationSelectEditor",
2462
- "module": "src/cell-editors/select.editor.ts"
2050
+ "name": "textFormatter",
2051
+ "module": "src/cell-formatters/text.formatter.ts"
2463
2052
  }
2464
2053
  }
2465
2054
  ]
2466
2055
  },
2467
2056
  {
2468
2057
  "kind": "javascript-module",
2469
- "path": "src/cell-editors/string.editor.ts",
2058
+ "path": "src/cell-editors/date.editor.ts",
2470
2059
  "declarations": [
2471
2060
  {
2472
2061
  "kind": "class",
2473
- "description": "The string editor class for grid-tabulator",
2474
- "name": "StringEditor",
2062
+ "description": "The date editor class for grid-tabulator",
2063
+ "name": "DateEditor",
2475
2064
  "members": [
2476
2065
  {
2477
2066
  "kind": "field",
2478
2067
  "name": "params",
2479
2068
  "type": {
2480
- "text": "StringEditorParams"
2069
+ "text": "DateEditorParams"
2481
2070
  }
2482
2071
  },
2483
2072
  {
2484
2073
  "kind": "field",
2485
- "name": "textField",
2074
+ "name": "dateField",
2486
2075
  "type": {
2487
2076
  "text": "any"
2488
2077
  }
@@ -2494,7 +2083,7 @@
2494
2083
  {
2495
2084
  "name": "params",
2496
2085
  "type": {
2497
- "text": "StringEditorParams"
2086
+ "text": "DateEditorParams"
2498
2087
  }
2499
2088
  }
2500
2089
  ],
@@ -2505,6 +2094,11 @@
2505
2094
  "name": "getValue",
2506
2095
  "description": "Get current value"
2507
2096
  },
2097
+ {
2098
+ "kind": "method",
2099
+ "name": "getFormattedValue",
2100
+ "description": "Format value for display"
2101
+ },
2508
2102
  {
2509
2103
  "kind": "method",
2510
2104
  "name": "focus",
@@ -2642,13 +2236,13 @@
2642
2236
  },
2643
2237
  {
2644
2238
  "kind": "variable",
2645
- "name": "stringEditorStyles",
2239
+ "name": "dateEditorStyles",
2646
2240
  "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
2647
- "description": "Styles for the string editor"
2241
+ "description": "Styles for the date editor"
2648
2242
  },
2649
2243
  {
2650
2244
  "kind": "function",
2651
- "name": "getStringEditorTemplate",
2245
+ "name": "getDateEditorTemplate",
2652
2246
  "parameters": [
2653
2247
  {
2654
2248
  "name": "prefix",
@@ -2656,535 +2250,914 @@
2656
2250
  "description": "The design system prefix to use. Defaults to 'foundation'."
2657
2251
  }
2658
2252
  ],
2659
- "description": "Get a Design System prefixed text field template.",
2253
+ "description": "Get a Design System prefixed date field template.",
2660
2254
  "return": {
2661
2255
  "type": {
2662
2256
  "text": ""
2663
2257
  }
2664
- }
2258
+ },
2259
+ "privacy": "public"
2665
2260
  },
2666
2261
  {
2667
2262
  "kind": "variable",
2668
- "name": "foundationStringEditor",
2669
- "description": "Definition for the string editor component"
2263
+ "name": "foundationDateEditor",
2264
+ "description": "Definition for the date editor component"
2670
2265
  }
2671
2266
  ],
2672
2267
  "exports": [
2673
2268
  {
2674
2269
  "kind": "js",
2675
- "name": "StringEditor",
2270
+ "name": "DateEditor",
2676
2271
  "declaration": {
2677
- "name": "StringEditor",
2678
- "module": "src/cell-editors/string.editor.ts"
2272
+ "name": "DateEditor",
2273
+ "module": "src/cell-editors/date.editor.ts"
2679
2274
  }
2680
2275
  },
2681
2276
  {
2682
2277
  "kind": "js",
2683
- "name": "stringEditorStyles",
2278
+ "name": "dateEditorStyles",
2684
2279
  "declaration": {
2685
- "name": "stringEditorStyles",
2686
- "module": "src/cell-editors/string.editor.ts"
2280
+ "name": "dateEditorStyles",
2281
+ "module": "src/cell-editors/date.editor.ts"
2687
2282
  }
2688
2283
  },
2689
2284
  {
2690
2285
  "kind": "js",
2691
- "name": "getStringEditorTemplate",
2286
+ "name": "getDateEditorTemplate",
2692
2287
  "declaration": {
2693
- "name": "getStringEditorTemplate",
2694
- "module": "src/cell-editors/string.editor.ts"
2288
+ "name": "getDateEditorTemplate",
2289
+ "module": "src/cell-editors/date.editor.ts"
2695
2290
  }
2696
2291
  },
2697
2292
  {
2698
2293
  "kind": "js",
2699
- "name": "foundationStringEditor",
2294
+ "name": "foundationDateEditor",
2700
2295
  "declaration": {
2701
- "name": "foundationStringEditor",
2702
- "module": "src/cell-editors/string.editor.ts"
2296
+ "name": "foundationDateEditor",
2297
+ "module": "src/cell-editors/date.editor.ts"
2703
2298
  }
2704
2299
  }
2705
2300
  ]
2706
2301
  },
2707
2302
  {
2708
2303
  "kind": "javascript-module",
2709
- "path": "src/cell-formatters/action.formatter.ts",
2304
+ "path": "src/cell-editors/index.ts",
2305
+ "declarations": [],
2306
+ "exports": [
2307
+ {
2308
+ "kind": "js",
2309
+ "name": "*",
2310
+ "declaration": {
2311
+ "name": "*",
2312
+ "package": "./date.editor"
2313
+ }
2314
+ },
2315
+ {
2316
+ "kind": "js",
2317
+ "name": "*",
2318
+ "declaration": {
2319
+ "name": "*",
2320
+ "package": "./number.editor"
2321
+ }
2322
+ },
2323
+ {
2324
+ "kind": "js",
2325
+ "name": "*",
2326
+ "declaration": {
2327
+ "name": "*",
2328
+ "package": "./select.editor"
2329
+ }
2330
+ },
2331
+ {
2332
+ "kind": "js",
2333
+ "name": "*",
2334
+ "declaration": {
2335
+ "name": "*",
2336
+ "package": "./string.editor"
2337
+ }
2338
+ },
2339
+ {
2340
+ "kind": "js",
2341
+ "name": "*",
2342
+ "declaration": {
2343
+ "name": "*",
2344
+ "package": "./multiselect.editor"
2345
+ }
2346
+ }
2347
+ ]
2348
+ },
2349
+ {
2350
+ "kind": "javascript-module",
2351
+ "path": "src/cell-editors/multiselect.editor.ts",
2710
2352
  "declarations": [
2711
2353
  {
2712
- "kind": "function",
2713
- "name": "actionFormatter",
2714
- "return": {
2715
- "type": {
2716
- "text": ""
2717
- }
2718
- },
2719
- "parameters": [
2354
+ "kind": "class",
2355
+ "description": "The multiselect editor class for grid-tabulator",
2356
+ "name": "MultiselectEditor",
2357
+ "members": [
2720
2358
  {
2721
- "name": "cell",
2359
+ "kind": "field",
2360
+ "name": "params",
2361
+ "type": {
2362
+ "text": "MultiselectEditorParams"
2363
+ }
2364
+ },
2365
+ {
2366
+ "kind": "field",
2367
+ "name": "select",
2722
2368
  "type": {
2723
2369
  "text": "any"
2370
+ }
2371
+ },
2372
+ {
2373
+ "kind": "method",
2374
+ "name": "init",
2375
+ "parameters": [
2376
+ {
2377
+ "name": "params",
2378
+ "type": {
2379
+ "text": "MultiselectEditorParams"
2380
+ }
2381
+ }
2382
+ ],
2383
+ "description": "Initialize the editor with parameters"
2384
+ },
2385
+ {
2386
+ "kind": "method",
2387
+ "name": "getValues",
2388
+ "return": {
2389
+ "type": {
2390
+ "text": "(string | number)[]"
2391
+ }
2724
2392
  },
2725
- "description": "The cell component provided by Tabulator"
2393
+ "description": "Get current values"
2726
2394
  },
2727
2395
  {
2728
- "name": "formatterParams",
2729
- "default": "{}",
2396
+ "kind": "method",
2397
+ "name": "focus",
2398
+ "description": "Set focus to the select"
2399
+ },
2400
+ {
2401
+ "kind": "method",
2402
+ "name": "isSelected",
2403
+ "return": {
2404
+ "type": {
2405
+ "text": "boolean"
2406
+ }
2407
+ },
2408
+ "parameters": [
2409
+ {
2410
+ "name": "value",
2411
+ "type": {
2412
+ "text": "string | number"
2413
+ }
2414
+ }
2415
+ ],
2416
+ "description": "Check if a value is selected"
2417
+ },
2418
+ {
2419
+ "kind": "method",
2420
+ "name": "handleKeyDown",
2421
+ "parameters": [
2422
+ {
2423
+ "name": "event",
2424
+ "type": {
2425
+ "text": "KeyboardEvent"
2426
+ }
2427
+ }
2428
+ ],
2429
+ "description": "Process key down events"
2430
+ },
2431
+ {
2432
+ "kind": "method",
2433
+ "name": "handleChange",
2434
+ "description": "Handle change event to save when selection changes"
2435
+ },
2436
+ {
2437
+ "kind": "field",
2438
+ "name": "_presentation",
2730
2439
  "type": {
2731
- "text": "ActionFormatterParams<T>"
2440
+ "text": "ComponentPresentation | null | undefined"
2732
2441
  },
2733
- "description": "Action formatter parameters"
2734
- }
2735
- ],
2736
- "description": "Formatter that displays an action button in the cell.\nStyled to match grid-pro action renderer.",
2737
- "privacy": "public"
2738
- }
2739
- ],
2740
- "exports": [
2741
- {
2742
- "kind": "js",
2743
- "name": "actionFormatter",
2744
- "declaration": {
2745
- "name": "actionFormatter",
2746
- "module": "src/cell-formatters/action.formatter.ts"
2747
- }
2748
- }
2749
- ]
2750
- },
2751
- {
2752
- "kind": "javascript-module",
2753
- "path": "src/cell-formatters/actions-menu.formatter.ts",
2754
- "declarations": [
2755
- {
2756
- "kind": "function",
2757
- "name": "actionsMenuFormatter",
2758
- "return": {
2759
- "type": {
2760
- "text": ""
2761
- }
2762
- },
2763
- "parameters": [
2442
+ "privacy": "private",
2443
+ "default": "void 0",
2444
+ "inheritedFrom": {
2445
+ "name": "FoundationElement",
2446
+ "module": "src/foundation-element/foundation-element.ts"
2447
+ }
2448
+ },
2764
2449
  {
2765
- "name": "cell",
2450
+ "kind": "field",
2451
+ "name": "$presentation",
2766
2452
  "type": {
2767
- "text": "any"
2453
+ "text": "ComponentPresentation | null"
2768
2454
  },
2769
- "description": "The cell component provided by Tabulator"
2455
+ "privacy": "public",
2456
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2457
+ "inheritedFrom": {
2458
+ "name": "FoundationElement",
2459
+ "module": "src/foundation-element/foundation-element.ts"
2460
+ }
2770
2461
  },
2771
2462
  {
2772
- "name": "formatterParams",
2773
- "default": "{}",
2463
+ "kind": "field",
2464
+ "name": "template",
2774
2465
  "type": {
2775
- "text": "ActionsMenuFormatterParams<T>"
2466
+ "text": "ElementViewTemplate | void | null"
2776
2467
  },
2777
- "description": "Actions menu formatter parameters"
2778
- }
2779
- ],
2780
- "description": "Formatter that displays a dropdown menu of actions in the cell.\nStyled to match grid-pro actions-menu renderer.",
2781
- "privacy": "public"
2782
- }
2783
- ],
2784
- "exports": [
2785
- {
2786
- "kind": "js",
2787
- "name": "actionsMenuFormatter",
2788
- "declaration": {
2789
- "name": "actionsMenuFormatter",
2790
- "module": "src/cell-formatters/actions-menu.formatter.ts"
2791
- }
2792
- }
2793
- ]
2794
- },
2795
- {
2796
- "kind": "javascript-module",
2797
- "path": "src/cell-formatters/boolean.formatter.ts",
2798
- "declarations": [
2799
- {
2800
- "kind": "function",
2801
- "name": "booleanFormatter",
2802
- "return": {
2803
- "type": {
2804
- "text": ""
2805
- }
2806
- },
2807
- "parameters": [
2468
+ "privacy": "public",
2469
+ "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.",
2470
+ "inheritedFrom": {
2471
+ "name": "FoundationElement",
2472
+ "module": "src/foundation-element/foundation-element.ts"
2473
+ }
2474
+ },
2808
2475
  {
2809
- "name": "cell",
2810
- "type": {
2811
- "text": "any"
2476
+ "kind": "method",
2477
+ "name": "templateChanged",
2478
+ "privacy": "protected",
2479
+ "return": {
2480
+ "type": {
2481
+ "text": "void"
2482
+ }
2812
2483
  },
2813
- "description": "The cell component provided by Tabulator"
2484
+ "inheritedFrom": {
2485
+ "name": "FoundationElement",
2486
+ "module": "src/foundation-element/foundation-element.ts"
2487
+ }
2814
2488
  },
2815
2489
  {
2816
- "name": "formatterParams",
2817
- "default": "{}",
2490
+ "kind": "field",
2491
+ "name": "styles",
2818
2492
  "type": {
2819
- "text": "BooleanFormatterParams<T>"
2493
+ "text": "ElementStyles | void | null"
2820
2494
  },
2821
- "description": "Boolean formatter parameters"
2822
- }
2823
- ],
2824
- "description": "Formatter that displays boolean values using a checkbox component.\nStyled to match grid-pro boolean renderer.",
2825
- "privacy": "public"
2826
- }
2827
- ],
2828
- "exports": [
2829
- {
2830
- "kind": "js",
2831
- "name": "booleanFormatter",
2832
- "declaration": {
2833
- "name": "booleanFormatter",
2834
- "module": "src/cell-formatters/boolean.formatter.ts"
2835
- }
2836
- }
2837
- ]
2838
- },
2839
- {
2840
- "kind": "javascript-module",
2841
- "path": "src/cell-formatters/constants.ts",
2842
- "declarations": [],
2843
- "exports": []
2844
- },
2845
- {
2846
- "kind": "javascript-module",
2847
- "path": "src/cell-formatters/editable.formatter.ts",
2848
- "declarations": [
2849
- {
2850
- "kind": "function",
2851
- "name": "editableFormatter",
2852
- "return": {
2853
- "type": {
2854
- "text": ""
2855
- }
2856
- },
2857
- "parameters": [
2495
+ "privacy": "public",
2496
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2497
+ "inheritedFrom": {
2498
+ "name": "FoundationElement",
2499
+ "module": "src/foundation-element/foundation-element.ts"
2500
+ }
2501
+ },
2858
2502
  {
2859
- "name": "cell",
2860
- "type": {
2861
- "text": "any"
2503
+ "kind": "method",
2504
+ "name": "stylesChanged",
2505
+ "privacy": "protected",
2506
+ "return": {
2507
+ "type": {
2508
+ "text": "void"
2509
+ }
2862
2510
  },
2863
- "description": "The cell component provided by Tabulator"
2511
+ "inheritedFrom": {
2512
+ "name": "FoundationElement",
2513
+ "module": "src/foundation-element/foundation-element.ts"
2514
+ }
2864
2515
  },
2865
2516
  {
2866
- "name": "formatterParams",
2867
- "default": "{}",
2868
- "type": {
2869
- "text": "EditableFormatterParams<T>"
2517
+ "kind": "method",
2518
+ "name": "compose",
2519
+ "privacy": "public",
2520
+ "static": true,
2521
+ "return": {
2522
+ "type": {
2523
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2524
+ }
2870
2525
  },
2871
- "description": "Editable formatter parameters"
2526
+ "parameters": [
2527
+ {
2528
+ "name": "this",
2529
+ "type": {
2530
+ "text": "K"
2531
+ }
2532
+ },
2533
+ {
2534
+ "name": "elementDefinition",
2535
+ "type": {
2536
+ "text": "T"
2537
+ },
2538
+ "description": "The definition of the element to create the registry\nfunction for."
2539
+ }
2540
+ ],
2541
+ "description": "Defines an element registry function with a set of element definition defaults.",
2542
+ "inheritedFrom": {
2543
+ "name": "FoundationElement",
2544
+ "module": "src/foundation-element/foundation-element.ts"
2545
+ }
2872
2546
  }
2873
2547
  ],
2874
- "description": "Formatter that displays an editable cell with validation state",
2875
- "privacy": "public"
2876
- }
2877
- ],
2878
- "exports": [
2879
- {
2880
- "kind": "js",
2881
- "name": "editableFormatter",
2882
- "declaration": {
2883
- "name": "editableFormatter",
2884
- "module": "src/cell-formatters/editable.formatter.ts"
2548
+ "superclass": {
2549
+ "name": "FoundationElement",
2550
+ "package": "@microsoft/fast-foundation"
2885
2551
  }
2886
- }
2887
- ]
2888
- },
2889
- {
2890
- "kind": "javascript-module",
2891
- "path": "src/cell-formatters/index.ts",
2892
- "declarations": [
2552
+ },
2893
2553
  {
2894
2554
  "kind": "variable",
2895
- "name": "formatters",
2896
- "type": {
2897
- "text": "object"
2898
- },
2899
- "default": "{\n action: actionFormatter,\n actionsMenu: actionsMenuFormatter,\n boolean: booleanFormatter,\n editable: editableFormatter,\n select: selectFormatter,\n text: textFormatter,\n}",
2900
- "description": "Zero formatters for Tabulator grid"
2901
- }
2902
- ],
2903
- "exports": [
2555
+ "name": "multiselectEditorStyles",
2556
+ "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
2557
+ "description": "Styles for the multiselect editor"
2558
+ },
2904
2559
  {
2905
- "kind": "js",
2906
- "name": "*",
2907
- "declaration": {
2908
- "name": "*",
2909
- "package": "./constants"
2560
+ "kind": "function",
2561
+ "name": "getMultiselectEditorTemplate",
2562
+ "parameters": [
2563
+ {
2564
+ "name": "prefix",
2565
+ "default": "'foundation'",
2566
+ "description": "The design system prefix to use. Defaults to 'foundation'."
2567
+ }
2568
+ ],
2569
+ "description": "Get a Design System prefixed Select template.",
2570
+ "return": {
2571
+ "type": {
2572
+ "text": ""
2573
+ }
2910
2574
  }
2911
2575
  },
2912
2576
  {
2913
- "kind": "js",
2914
- "name": "ActionFormatterParams",
2915
- "declaration": {
2916
- "name": "ActionFormatterParams",
2917
- "module": "src/cell-formatters/index.ts"
2918
- }
2919
- },
2577
+ "kind": "variable",
2578
+ "name": "foundationMultiselectEditor",
2579
+ "description": "Definition for the multiselect editor component"
2580
+ }
2581
+ ],
2582
+ "exports": [
2920
2583
  {
2921
2584
  "kind": "js",
2922
- "name": "actionFormatter",
2585
+ "name": "MultiselectEditor",
2923
2586
  "declaration": {
2924
- "name": "actionFormatter",
2925
- "module": "src/cell-formatters/index.ts"
2587
+ "name": "MultiselectEditor",
2588
+ "module": "src/cell-editors/multiselect.editor.ts"
2926
2589
  }
2927
2590
  },
2928
2591
  {
2929
2592
  "kind": "js",
2930
- "name": "ActionsMenuFormatterParams",
2593
+ "name": "multiselectEditorStyles",
2931
2594
  "declaration": {
2932
- "name": "ActionsMenuFormatterParams",
2933
- "module": "src/cell-formatters/index.ts"
2595
+ "name": "multiselectEditorStyles",
2596
+ "module": "src/cell-editors/multiselect.editor.ts"
2934
2597
  }
2935
2598
  },
2936
2599
  {
2937
2600
  "kind": "js",
2938
- "name": "actionsMenuFormatter",
2601
+ "name": "getMultiselectEditorTemplate",
2939
2602
  "declaration": {
2940
- "name": "actionsMenuFormatter",
2941
- "module": "src/cell-formatters/index.ts"
2603
+ "name": "getMultiselectEditorTemplate",
2604
+ "module": "src/cell-editors/multiselect.editor.ts"
2942
2605
  }
2943
2606
  },
2944
2607
  {
2945
2608
  "kind": "js",
2946
- "name": "BooleanFormatterParams",
2609
+ "name": "foundationMultiselectEditor",
2947
2610
  "declaration": {
2948
- "name": "BooleanFormatterParams",
2949
- "module": "src/cell-formatters/index.ts"
2611
+ "name": "foundationMultiselectEditor",
2612
+ "module": "src/cell-editors/multiselect.editor.ts"
2950
2613
  }
2951
- },
2614
+ }
2615
+ ]
2616
+ },
2617
+ {
2618
+ "kind": "javascript-module",
2619
+ "path": "src/cell-editors/number.editor.ts",
2620
+ "declarations": [
2952
2621
  {
2953
- "kind": "js",
2954
- "name": "booleanFormatter",
2955
- "declaration": {
2956
- "name": "booleanFormatter",
2957
- "module": "src/cell-formatters/index.ts"
2622
+ "kind": "class",
2623
+ "description": "The number editor class for grid-tabulator",
2624
+ "name": "NumberEditor",
2625
+ "members": [
2626
+ {
2627
+ "kind": "field",
2628
+ "name": "params",
2629
+ "type": {
2630
+ "text": "NumberEditorParams"
2631
+ }
2632
+ },
2633
+ {
2634
+ "kind": "field",
2635
+ "name": "numberField",
2636
+ "type": {
2637
+ "text": "any"
2638
+ }
2639
+ },
2640
+ {
2641
+ "kind": "method",
2642
+ "name": "init",
2643
+ "parameters": [
2644
+ {
2645
+ "name": "params",
2646
+ "type": {
2647
+ "text": "NumberEditorParams"
2648
+ }
2649
+ }
2650
+ ],
2651
+ "description": "Initialize the editor with parameters"
2652
+ },
2653
+ {
2654
+ "kind": "method",
2655
+ "name": "getValue",
2656
+ "description": "Get current value"
2657
+ },
2658
+ {
2659
+ "kind": "method",
2660
+ "name": "focus",
2661
+ "description": "Set focus to the input"
2662
+ },
2663
+ {
2664
+ "kind": "method",
2665
+ "name": "handleKeyDown",
2666
+ "parameters": [
2667
+ {
2668
+ "name": "event",
2669
+ "type": {
2670
+ "text": "KeyboardEvent"
2671
+ }
2672
+ }
2673
+ ],
2674
+ "description": "Process key down events"
2675
+ },
2676
+ {
2677
+ "kind": "field",
2678
+ "name": "_presentation",
2679
+ "type": {
2680
+ "text": "ComponentPresentation | null | undefined"
2681
+ },
2682
+ "privacy": "private",
2683
+ "default": "void 0",
2684
+ "inheritedFrom": {
2685
+ "name": "FoundationElement",
2686
+ "module": "src/foundation-element/foundation-element.ts"
2687
+ }
2688
+ },
2689
+ {
2690
+ "kind": "field",
2691
+ "name": "$presentation",
2692
+ "type": {
2693
+ "text": "ComponentPresentation | null"
2694
+ },
2695
+ "privacy": "public",
2696
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2697
+ "inheritedFrom": {
2698
+ "name": "FoundationElement",
2699
+ "module": "src/foundation-element/foundation-element.ts"
2700
+ }
2701
+ },
2702
+ {
2703
+ "kind": "field",
2704
+ "name": "template",
2705
+ "type": {
2706
+ "text": "ElementViewTemplate | void | null"
2707
+ },
2708
+ "privacy": "public",
2709
+ "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.",
2710
+ "inheritedFrom": {
2711
+ "name": "FoundationElement",
2712
+ "module": "src/foundation-element/foundation-element.ts"
2713
+ }
2714
+ },
2715
+ {
2716
+ "kind": "method",
2717
+ "name": "templateChanged",
2718
+ "privacy": "protected",
2719
+ "return": {
2720
+ "type": {
2721
+ "text": "void"
2722
+ }
2723
+ },
2724
+ "inheritedFrom": {
2725
+ "name": "FoundationElement",
2726
+ "module": "src/foundation-element/foundation-element.ts"
2727
+ }
2728
+ },
2729
+ {
2730
+ "kind": "field",
2731
+ "name": "styles",
2732
+ "type": {
2733
+ "text": "ElementStyles | void | null"
2734
+ },
2735
+ "privacy": "public",
2736
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2737
+ "inheritedFrom": {
2738
+ "name": "FoundationElement",
2739
+ "module": "src/foundation-element/foundation-element.ts"
2740
+ }
2741
+ },
2742
+ {
2743
+ "kind": "method",
2744
+ "name": "stylesChanged",
2745
+ "privacy": "protected",
2746
+ "return": {
2747
+ "type": {
2748
+ "text": "void"
2749
+ }
2750
+ },
2751
+ "inheritedFrom": {
2752
+ "name": "FoundationElement",
2753
+ "module": "src/foundation-element/foundation-element.ts"
2754
+ }
2755
+ },
2756
+ {
2757
+ "kind": "method",
2758
+ "name": "compose",
2759
+ "privacy": "public",
2760
+ "static": true,
2761
+ "return": {
2762
+ "type": {
2763
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2764
+ }
2765
+ },
2766
+ "parameters": [
2767
+ {
2768
+ "name": "this",
2769
+ "type": {
2770
+ "text": "K"
2771
+ }
2772
+ },
2773
+ {
2774
+ "name": "elementDefinition",
2775
+ "type": {
2776
+ "text": "T"
2777
+ },
2778
+ "description": "The definition of the element to create the registry\nfunction for."
2779
+ }
2780
+ ],
2781
+ "description": "Defines an element registry function with a set of element definition defaults.",
2782
+ "inheritedFrom": {
2783
+ "name": "FoundationElement",
2784
+ "module": "src/foundation-element/foundation-element.ts"
2785
+ }
2786
+ }
2787
+ ],
2788
+ "superclass": {
2789
+ "name": "FoundationElement",
2790
+ "package": "@microsoft/fast-foundation"
2958
2791
  }
2959
2792
  },
2960
2793
  {
2961
- "kind": "js",
2962
- "name": "EditableFormatterParams",
2963
- "declaration": {
2964
- "name": "EditableFormatterParams",
2965
- "module": "src/cell-formatters/index.ts"
2966
- }
2794
+ "kind": "variable",
2795
+ "name": "numberEditorStyles",
2796
+ "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
2797
+ "description": "Styles for the number editor"
2967
2798
  },
2968
2799
  {
2969
- "kind": "js",
2970
- "name": "editableFormatter",
2971
- "declaration": {
2972
- "name": "editableFormatter",
2973
- "module": "src/cell-formatters/index.ts"
2800
+ "kind": "function",
2801
+ "name": "getNumberEditorTemplate",
2802
+ "parameters": [
2803
+ {
2804
+ "name": "prefix",
2805
+ "default": "'foundation'",
2806
+ "description": "The design system prefix to use. Defaults to 'foundation'."
2807
+ }
2808
+ ],
2809
+ "description": "Get a Design System prefixed number field template.",
2810
+ "return": {
2811
+ "type": {
2812
+ "text": ""
2813
+ }
2974
2814
  }
2975
2815
  },
2976
2816
  {
2977
- "kind": "js",
2978
- "name": "SelectFormatterParams",
2979
- "declaration": {
2980
- "name": "SelectFormatterParams",
2981
- "module": "src/cell-formatters/index.ts"
2982
- }
2983
- },
2817
+ "kind": "variable",
2818
+ "name": "foundationNumberEditor",
2819
+ "description": "Definition for the number editor component"
2820
+ }
2821
+ ],
2822
+ "exports": [
2984
2823
  {
2985
2824
  "kind": "js",
2986
- "name": "selectFormatter",
2825
+ "name": "NumberEditor",
2987
2826
  "declaration": {
2988
- "name": "selectFormatter",
2989
- "module": "src/cell-formatters/index.ts"
2827
+ "name": "NumberEditor",
2828
+ "module": "src/cell-editors/number.editor.ts"
2990
2829
  }
2991
2830
  },
2992
2831
  {
2993
2832
  "kind": "js",
2994
- "name": "TextFormatterParams",
2833
+ "name": "numberEditorStyles",
2995
2834
  "declaration": {
2996
- "name": "TextFormatterParams",
2997
- "module": "src/cell-formatters/index.ts"
2835
+ "name": "numberEditorStyles",
2836
+ "module": "src/cell-editors/number.editor.ts"
2998
2837
  }
2999
2838
  },
3000
2839
  {
3001
2840
  "kind": "js",
3002
- "name": "textFormatter",
2841
+ "name": "getNumberEditorTemplate",
3003
2842
  "declaration": {
3004
- "name": "textFormatter",
3005
- "module": "src/cell-formatters/index.ts"
2843
+ "name": "getNumberEditorTemplate",
2844
+ "module": "src/cell-editors/number.editor.ts"
3006
2845
  }
3007
2846
  },
3008
2847
  {
3009
2848
  "kind": "js",
3010
- "name": "formatters",
2849
+ "name": "foundationNumberEditor",
3011
2850
  "declaration": {
3012
- "name": "formatters",
3013
- "module": "src/cell-formatters/index.ts"
2851
+ "name": "foundationNumberEditor",
2852
+ "module": "src/cell-editors/number.editor.ts"
3014
2853
  }
3015
2854
  }
3016
2855
  ]
3017
2856
  },
3018
2857
  {
3019
2858
  "kind": "javascript-module",
3020
- "path": "src/cell-formatters/select.formatter.ts",
2859
+ "path": "src/cell-editors/select.editor.ts",
3021
2860
  "declarations": [
3022
2861
  {
3023
- "kind": "function",
3024
- "name": "selectFormatter",
3025
- "return": {
3026
- "type": {
3027
- "text": ""
3028
- }
3029
- },
3030
- "parameters": [
2862
+ "kind": "class",
2863
+ "description": "The select editor class for grid-tabulator",
2864
+ "name": "SelectEditor",
2865
+ "members": [
3031
2866
  {
3032
- "name": "cell",
2867
+ "kind": "field",
2868
+ "name": "params",
2869
+ "type": {
2870
+ "text": "SelectEditorParams"
2871
+ }
2872
+ },
2873
+ {
2874
+ "kind": "field",
2875
+ "name": "select",
3033
2876
  "type": {
3034
2877
  "text": "any"
2878
+ }
2879
+ },
2880
+ {
2881
+ "kind": "method",
2882
+ "name": "init",
2883
+ "parameters": [
2884
+ {
2885
+ "name": "params",
2886
+ "type": {
2887
+ "text": "SelectEditorParams"
2888
+ }
2889
+ }
2890
+ ],
2891
+ "description": "Initialize the editor with parameters"
2892
+ },
2893
+ {
2894
+ "kind": "method",
2895
+ "name": "getValue",
2896
+ "description": "Get current value"
2897
+ },
2898
+ {
2899
+ "kind": "method",
2900
+ "name": "focus",
2901
+ "description": "Set focus to the select"
2902
+ },
2903
+ {
2904
+ "kind": "method",
2905
+ "name": "handleKeyDown",
2906
+ "parameters": [
2907
+ {
2908
+ "name": "event",
2909
+ "type": {
2910
+ "text": "KeyboardEvent"
2911
+ }
2912
+ }
2913
+ ],
2914
+ "description": "Process key down events"
2915
+ },
2916
+ {
2917
+ "kind": "method",
2918
+ "name": "handleChange",
2919
+ "description": "Handle change event"
2920
+ },
2921
+ {
2922
+ "kind": "field",
2923
+ "name": "_presentation",
2924
+ "type": {
2925
+ "text": "ComponentPresentation | null | undefined"
3035
2926
  },
3036
- "description": "The cell component provided by Tabulator"
2927
+ "privacy": "private",
2928
+ "default": "void 0",
2929
+ "inheritedFrom": {
2930
+ "name": "FoundationElement",
2931
+ "module": "src/foundation-element/foundation-element.ts"
2932
+ }
3037
2933
  },
3038
2934
  {
3039
- "name": "formatterParams",
2935
+ "kind": "field",
2936
+ "name": "$presentation",
3040
2937
  "type": {
3041
- "text": "SelectFormatterParams<T>"
2938
+ "text": "ComponentPresentation | null"
3042
2939
  },
3043
- "description": "Select formatter parameters"
3044
- }
3045
- ],
3046
- "description": "Formatter that displays a select component with options.\nReturns a wrapped div containing the select, similar to boolean.formatter.",
3047
- "privacy": "public"
3048
- }
3049
- ],
3050
- "exports": [
3051
- {
3052
- "kind": "js",
3053
- "name": "selectFormatter",
3054
- "declaration": {
3055
- "name": "selectFormatter",
3056
- "module": "src/cell-formatters/select.formatter.ts"
3057
- }
3058
- }
3059
- ]
3060
- },
3061
- {
3062
- "kind": "javascript-module",
3063
- "path": "src/cell-formatters/text.formatter.ts",
3064
- "declarations": [
3065
- {
3066
- "kind": "function",
3067
- "name": "textFormatter",
3068
- "return": {
3069
- "type": {
3070
- "text": ""
3071
- }
3072
- },
3073
- "parameters": [
2940
+ "privacy": "public",
2941
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2942
+ "inheritedFrom": {
2943
+ "name": "FoundationElement",
2944
+ "module": "src/foundation-element/foundation-element.ts"
2945
+ }
2946
+ },
3074
2947
  {
3075
- "name": "cell",
2948
+ "kind": "field",
2949
+ "name": "template",
3076
2950
  "type": {
3077
- "text": "any"
2951
+ "text": "ElementViewTemplate | void | null"
3078
2952
  },
3079
- "description": "The cell component provided by Tabulator"
2953
+ "privacy": "public",
2954
+ "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.",
2955
+ "inheritedFrom": {
2956
+ "name": "FoundationElement",
2957
+ "module": "src/foundation-element/foundation-element.ts"
2958
+ }
3080
2959
  },
3081
2960
  {
3082
- "name": "formatterParams",
3083
- "default": "{}",
2961
+ "kind": "method",
2962
+ "name": "templateChanged",
2963
+ "privacy": "protected",
2964
+ "return": {
2965
+ "type": {
2966
+ "text": "void"
2967
+ }
2968
+ },
2969
+ "inheritedFrom": {
2970
+ "name": "FoundationElement",
2971
+ "module": "src/foundation-element/foundation-element.ts"
2972
+ }
2973
+ },
2974
+ {
2975
+ "kind": "field",
2976
+ "name": "styles",
3084
2977
  "type": {
3085
- "text": "TextFormatterParams<T>"
2978
+ "text": "ElementStyles | void | null"
3086
2979
  },
3087
- "description": "Text formatter parameters"
2980
+ "privacy": "public",
2981
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2982
+ "inheritedFrom": {
2983
+ "name": "FoundationElement",
2984
+ "module": "src/foundation-element/foundation-element.ts"
2985
+ }
2986
+ },
2987
+ {
2988
+ "kind": "method",
2989
+ "name": "stylesChanged",
2990
+ "privacy": "protected",
2991
+ "return": {
2992
+ "type": {
2993
+ "text": "void"
2994
+ }
2995
+ },
2996
+ "inheritedFrom": {
2997
+ "name": "FoundationElement",
2998
+ "module": "src/foundation-element/foundation-element.ts"
2999
+ }
3000
+ },
3001
+ {
3002
+ "kind": "method",
3003
+ "name": "compose",
3004
+ "privacy": "public",
3005
+ "static": true,
3006
+ "return": {
3007
+ "type": {
3008
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
3009
+ }
3010
+ },
3011
+ "parameters": [
3012
+ {
3013
+ "name": "this",
3014
+ "type": {
3015
+ "text": "K"
3016
+ }
3017
+ },
3018
+ {
3019
+ "name": "elementDefinition",
3020
+ "type": {
3021
+ "text": "T"
3022
+ },
3023
+ "description": "The definition of the element to create the registry\nfunction for."
3024
+ }
3025
+ ],
3026
+ "description": "Defines an element registry function with a set of element definition defaults.",
3027
+ "inheritedFrom": {
3028
+ "name": "FoundationElement",
3029
+ "module": "src/foundation-element/foundation-element.ts"
3030
+ }
3031
+ }
3032
+ ],
3033
+ "superclass": {
3034
+ "name": "FoundationElement",
3035
+ "package": "@microsoft/fast-foundation"
3036
+ }
3037
+ },
3038
+ {
3039
+ "kind": "variable",
3040
+ "name": "selectEditorStyles",
3041
+ "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
3042
+ "description": "Styles for the select editor"
3043
+ },
3044
+ {
3045
+ "kind": "function",
3046
+ "name": "getSelectEditorTemplate",
3047
+ "parameters": [
3048
+ {
3049
+ "name": "prefix",
3050
+ "default": "'foundation'",
3051
+ "description": "The design system prefix to use. Defaults to 'foundation'."
3088
3052
  }
3089
3053
  ],
3090
- "description": "Text formatter for customized display of values.\nStyled to match grid-pro text renderer.",
3054
+ "description": "Get a Design System prefixed Select template.",
3055
+ "return": {
3056
+ "type": {
3057
+ "text": ""
3058
+ }
3059
+ },
3091
3060
  "privacy": "public"
3061
+ },
3062
+ {
3063
+ "kind": "variable",
3064
+ "name": "foundationSelectEditor",
3065
+ "description": "Definition for the select editor component"
3092
3066
  }
3093
3067
  ],
3094
3068
  "exports": [
3095
3069
  {
3096
3070
  "kind": "js",
3097
- "name": "textFormatter",
3071
+ "name": "SelectEditor",
3098
3072
  "declaration": {
3099
- "name": "textFormatter",
3100
- "module": "src/cell-formatters/text.formatter.ts"
3073
+ "name": "SelectEditor",
3074
+ "module": "src/cell-editors/select.editor.ts"
3075
+ }
3076
+ },
3077
+ {
3078
+ "kind": "js",
3079
+ "name": "selectEditorStyles",
3080
+ "declaration": {
3081
+ "name": "selectEditorStyles",
3082
+ "module": "src/cell-editors/select.editor.ts"
3083
+ }
3084
+ },
3085
+ {
3086
+ "kind": "js",
3087
+ "name": "getSelectEditorTemplate",
3088
+ "declaration": {
3089
+ "name": "getSelectEditorTemplate",
3090
+ "module": "src/cell-editors/select.editor.ts"
3091
+ }
3092
+ },
3093
+ {
3094
+ "kind": "js",
3095
+ "name": "foundationSelectEditor",
3096
+ "declaration": {
3097
+ "name": "foundationSelectEditor",
3098
+ "module": "src/cell-editors/select.editor.ts"
3101
3099
  }
3102
3100
  }
3103
3101
  ]
3104
3102
  },
3105
3103
  {
3106
3104
  "kind": "javascript-module",
3107
- "path": "src/cell/cell.ts",
3105
+ "path": "src/cell-editors/string.editor.ts",
3108
3106
  "declarations": [
3109
3107
  {
3110
3108
  "kind": "class",
3111
- "description": "The GridTabulator Cell element.",
3112
- "name": "GridTabulatorCell",
3109
+ "description": "The string editor class for grid-tabulator",
3110
+ "name": "StringEditor",
3113
3111
  "members": [
3114
3112
  {
3115
3113
  "kind": "field",
3116
- "name": "renderer",
3117
- "type": {
3118
- "text": "CellRendererFunc"
3119
- },
3120
- "privacy": "public"
3121
- },
3122
- {
3123
- "kind": "field",
3124
- "name": "rendererParams",
3114
+ "name": "params",
3125
3115
  "type": {
3126
- "text": "CellRendererParams"
3127
- },
3128
- "privacy": "public"
3116
+ "text": "StringEditorParams"
3117
+ }
3129
3118
  },
3130
3119
  {
3131
3120
  "kind": "field",
3132
- "name": "slottedRenderer",
3121
+ "name": "textField",
3133
3122
  "type": {
3134
- "text": "HTMLElement[]"
3135
- },
3136
- "privacy": "public"
3123
+ "text": "any"
3124
+ }
3137
3125
  },
3138
3126
  {
3139
3127
  "kind": "method",
3140
3128
  "name": "init",
3141
- "privacy": "public",
3142
3129
  "parameters": [
3143
3130
  {
3144
3131
  "name": "params",
3145
3132
  "type": {
3146
- "text": "CellRendererParams"
3133
+ "text": "StringEditorParams"
3147
3134
  }
3148
3135
  }
3149
- ]
3136
+ ],
3137
+ "description": "Initialize the editor with parameters"
3150
3138
  },
3151
3139
  {
3152
3140
  "kind": "method",
3153
- "name": "getElement",
3154
- "privacy": "public",
3155
- "return": {
3156
- "type": {
3157
- "text": "HTMLElement"
3158
- }
3159
- }
3141
+ "name": "getValue",
3142
+ "description": "Get current value"
3160
3143
  },
3161
3144
  {
3162
3145
  "kind": "method",
3163
- "name": "destroy",
3164
- "privacy": "public"
3146
+ "name": "focus",
3147
+ "description": "Set focus to the input"
3165
3148
  },
3166
3149
  {
3167
3150
  "kind": "method",
3168
- "name": "refresh",
3169
- "privacy": "public",
3170
- "return": {
3171
- "type": {
3172
- "text": "boolean"
3173
- }
3174
- },
3151
+ "name": "handleKeyDown",
3175
3152
  "parameters": [
3176
3153
  {
3177
- "name": "params",
3154
+ "name": "event",
3178
3155
  "type": {
3179
- "text": "CellRendererParams"
3156
+ "text": "KeyboardEvent"
3180
3157
  }
3181
3158
  }
3182
- ]
3183
- },
3184
- {
3185
- "kind": "method",
3186
- "name": "slottedRendererChanged",
3187
- "privacy": "public"
3159
+ ],
3160
+ "description": "Process key down events"
3188
3161
  },
3189
3162
  {
3190
3163
  "kind": "field",
@@ -3301,41 +3274,68 @@
3301
3274
  "superclass": {
3302
3275
  "name": "FoundationElement",
3303
3276
  "package": "@microsoft/fast-foundation"
3304
- },
3305
- "tagName": "grid-tabulator-cell",
3306
- "customElement": true
3277
+ }
3278
+ },
3279
+ {
3280
+ "kind": "variable",
3281
+ "name": "stringEditorStyles",
3282
+ "default": "css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`",
3283
+ "description": "Styles for the string editor"
3284
+ },
3285
+ {
3286
+ "kind": "function",
3287
+ "name": "getStringEditorTemplate",
3288
+ "parameters": [
3289
+ {
3290
+ "name": "prefix",
3291
+ "default": "'foundation'",
3292
+ "description": "The design system prefix to use. Defaults to 'foundation'."
3293
+ }
3294
+ ],
3295
+ "description": "Get a Design System prefixed text field template.",
3296
+ "return": {
3297
+ "type": {
3298
+ "text": ""
3299
+ }
3300
+ }
3301
+ },
3302
+ {
3303
+ "kind": "variable",
3304
+ "name": "foundationStringEditor",
3305
+ "description": "Definition for the string editor component"
3307
3306
  }
3308
3307
  ],
3309
3308
  "exports": [
3310
3309
  {
3311
3310
  "kind": "js",
3312
- "name": "GridTabulatorCell",
3311
+ "name": "StringEditor",
3313
3312
  "declaration": {
3314
- "name": "GridTabulatorCell",
3315
- "module": "src/cell/cell.ts"
3313
+ "name": "StringEditor",
3314
+ "module": "src/cell-editors/string.editor.ts"
3316
3315
  }
3317
3316
  },
3318
3317
  {
3319
- "kind": "custom-element-definition",
3320
- "name": "grid-tabulator-cell",
3318
+ "kind": "js",
3319
+ "name": "stringEditorStyles",
3321
3320
  "declaration": {
3322
- "name": "GridTabulatorCell",
3323
- "module": "src/cell/cell.ts"
3321
+ "name": "stringEditorStyles",
3322
+ "module": "src/cell-editors/string.editor.ts"
3324
3323
  }
3325
- }
3326
- ]
3327
- },
3328
- {
3329
- "kind": "javascript-module",
3330
- "path": "src/cell/index.ts",
3331
- "declarations": [],
3332
- "exports": [
3324
+ },
3333
3325
  {
3334
3326
  "kind": "js",
3335
- "name": "*",
3327
+ "name": "getStringEditorTemplate",
3336
3328
  "declaration": {
3337
- "name": "*",
3338
- "package": "./cell"
3329
+ "name": "getStringEditorTemplate",
3330
+ "module": "src/cell-editors/string.editor.ts"
3331
+ }
3332
+ },
3333
+ {
3334
+ "kind": "js",
3335
+ "name": "foundationStringEditor",
3336
+ "declaration": {
3337
+ "name": "foundationStringEditor",
3338
+ "module": "src/cell-editors/string.editor.ts"
3339
3339
  }
3340
3340
  }
3341
3341
  ]
@@ -4665,6 +4665,41 @@
4665
4665
  }
4666
4666
  ]
4667
4667
  },
4668
+ {
4669
+ "kind": "javascript-module",
4670
+ "path": "src/style/colors.ts",
4671
+ "declarations": [],
4672
+ "exports": []
4673
+ },
4674
+ {
4675
+ "kind": "javascript-module",
4676
+ "path": "src/style/index.ts",
4677
+ "declarations": [],
4678
+ "exports": [
4679
+ {
4680
+ "kind": "js",
4681
+ "name": "*",
4682
+ "declaration": {
4683
+ "name": "*",
4684
+ "package": "./colors"
4685
+ }
4686
+ },
4687
+ {
4688
+ "kind": "js",
4689
+ "name": "*",
4690
+ "declaration": {
4691
+ "name": "*",
4692
+ "package": "./tokens"
4693
+ }
4694
+ }
4695
+ ]
4696
+ },
4697
+ {
4698
+ "kind": "javascript-module",
4699
+ "path": "src/style/tokens.ts",
4700
+ "declarations": [],
4701
+ "exports": []
4702
+ },
4668
4703
  {
4669
4704
  "kind": "javascript-module",
4670
4705
  "path": "src/utils/index.ts",
@@ -4828,41 +4863,6 @@
4828
4863
  }
4829
4864
  }
4830
4865
  ]
4831
- },
4832
- {
4833
- "kind": "javascript-module",
4834
- "path": "src/style/colors.ts",
4835
- "declarations": [],
4836
- "exports": []
4837
- },
4838
- {
4839
- "kind": "javascript-module",
4840
- "path": "src/style/index.ts",
4841
- "declarations": [],
4842
- "exports": [
4843
- {
4844
- "kind": "js",
4845
- "name": "*",
4846
- "declaration": {
4847
- "name": "*",
4848
- "package": "./colors"
4849
- }
4850
- },
4851
- {
4852
- "kind": "js",
4853
- "name": "*",
4854
- "declaration": {
4855
- "name": "*",
4856
- "package": "./tokens"
4857
- }
4858
- }
4859
- ]
4860
- },
4861
- {
4862
- "kind": "javascript-module",
4863
- "path": "src/style/tokens.ts",
4864
- "declarations": [],
4865
- "exports": []
4866
4866
  }
4867
4867
  ]
4868
4868
  }