@genesislcap/grid-pro 14.106.0 → 14.107.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.
- package/dist/custom-elements.json +288 -16
- package/dist/dts/cell-editors/date.editor.d.ts +53 -0
- package/dist/dts/cell-editors/date.editor.d.ts.map +1 -0
- package/dist/dts/cell-editors/index.d.ts +1 -0
- package/dist/dts/cell-editors/index.d.ts.map +1 -1
- package/dist/dts/cell-editors/number.editor.d.ts +0 -2
- package/dist/dts/cell-editors/number.editor.d.ts.map +1 -1
- package/dist/dts/grid-components.d.ts +9 -0
- package/dist/dts/grid-components.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +1 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +4 -4
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +1 -0
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/esm/cell-editors/date.editor.js +73 -0
- package/dist/esm/cell-editors/index.js +1 -0
- package/dist/esm/cell-editors/number.editor.js +0 -4
- package/dist/esm/grid-components.js +2 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +5 -0
- package/dist/esm/grid-pro.js +2 -2
- package/dist/esm/grid-pro.types.js +1 -0
- package/dist/grid-pro.api.json +842 -194
- package/dist/grid-pro.d.ts +70 -11
- package/docs/api/grid-pro.agdateeditorstyles.md +13 -0
- package/docs/api/grid-pro.dateeditor.changehandler.md +22 -0
- package/docs/api/grid-pro.dateeditor.dateformat.md +11 -0
- package/docs/api/grid-pro.dateeditor.getgui.md +15 -0
- package/docs/api/{grid-pro.numbereditor.destroy.md → grid-pro.dateeditor.getvalue.md} +4 -4
- package/docs/api/grid-pro.dateeditor.init.md +22 -0
- package/docs/api/grid-pro.dateeditor.inputtype.md +11 -0
- package/docs/api/{grid-pro.numbereditor.focus.md → grid-pro.dateeditor.ispopup.md} +4 -4
- package/docs/api/grid-pro.dateeditor.md +36 -0
- package/docs/api/grid-pro.dateeditor.refresh.md +22 -0
- package/docs/api/grid-pro.dateeditor.value.md +11 -0
- package/docs/api/grid-pro.dateeditorparams.md +21 -0
- package/docs/api/grid-pro.dateeditorparams.withtime.md +11 -0
- package/docs/api/grid-pro.foundationdateeditor.md +24 -0
- package/docs/api/grid-pro.foundationgridcomponents.md +9 -0
- package/docs/api/grid-pro.getdateeditortemplate.md +13 -0
- package/docs/api/grid-pro.gridprorenderertypes.md +1 -0
- package/docs/api/grid-pro.md +5 -0
- package/docs/api/grid-pro.numbereditor.md +0 -2
- package/docs/api-report.md +56 -4
- package/package.json +9 -8
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": {
|
|
13
13
|
"text": "object"
|
|
14
14
|
},
|
|
15
|
-
"default": "{\n foundationGridProActionRenderer,\n foundationGridProActionsMenuRenderer,\n foundationAgBooleanRenderer,\n foundationAgTextRenderer,\n foundationAgTextFieldRenderer,\n foundationAgSelectRenderer,\n foundationGridPro,\n foundationSelectEditor,\n foundationNumberEditor,\n foundationMultiselectEditor,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n}",
|
|
15
|
+
"default": "{\n foundationGridProActionRenderer,\n foundationGridProActionsMenuRenderer,\n foundationAgBooleanRenderer,\n foundationAgTextRenderer,\n foundationAgTextFieldRenderer,\n foundationAgSelectRenderer,\n foundationGridPro,\n foundationSelectEditor,\n foundationNumberEditor,\n foundationDateEditor,\n foundationMultiselectEditor,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n}",
|
|
16
16
|
"description": "The Grid Pro Components.",
|
|
17
17
|
"privacy": "public"
|
|
18
18
|
}
|
|
@@ -1665,11 +1665,298 @@
|
|
|
1665
1665
|
}
|
|
1666
1666
|
]
|
|
1667
1667
|
},
|
|
1668
|
+
{
|
|
1669
|
+
"kind": "javascript-module",
|
|
1670
|
+
"path": "src/cell-editors/date.editor.ts",
|
|
1671
|
+
"declarations": [
|
|
1672
|
+
{
|
|
1673
|
+
"kind": "class",
|
|
1674
|
+
"description": "The AG Date Editor element.",
|
|
1675
|
+
"name": "DateEditor",
|
|
1676
|
+
"members": [
|
|
1677
|
+
{
|
|
1678
|
+
"kind": "field",
|
|
1679
|
+
"name": "value",
|
|
1680
|
+
"type": {
|
|
1681
|
+
"text": "number"
|
|
1682
|
+
},
|
|
1683
|
+
"privacy": "public"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"kind": "field",
|
|
1687
|
+
"name": "dateFormat",
|
|
1688
|
+
"type": {
|
|
1689
|
+
"text": "string"
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"kind": "field",
|
|
1694
|
+
"name": "inputType",
|
|
1695
|
+
"type": {
|
|
1696
|
+
"text": "'datetime-local' | 'date'"
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "method",
|
|
1701
|
+
"name": "init",
|
|
1702
|
+
"privacy": "public",
|
|
1703
|
+
"parameters": [
|
|
1704
|
+
{
|
|
1705
|
+
"name": "params",
|
|
1706
|
+
"type": {
|
|
1707
|
+
"text": "DateEditorParams"
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
]
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"kind": "method",
|
|
1714
|
+
"name": "getGui",
|
|
1715
|
+
"privacy": "public",
|
|
1716
|
+
"return": {
|
|
1717
|
+
"type": {
|
|
1718
|
+
"text": "HTMLElement"
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"kind": "method",
|
|
1724
|
+
"name": "refresh",
|
|
1725
|
+
"privacy": "public",
|
|
1726
|
+
"return": {
|
|
1727
|
+
"type": {
|
|
1728
|
+
"text": "boolean"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
"parameters": [
|
|
1732
|
+
{
|
|
1733
|
+
"name": "params",
|
|
1734
|
+
"type": {
|
|
1735
|
+
"text": "DateEditorParams"
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
]
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"kind": "method",
|
|
1742
|
+
"name": "getValue"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"kind": "method",
|
|
1746
|
+
"name": "isPopup",
|
|
1747
|
+
"return": {
|
|
1748
|
+
"type": {
|
|
1749
|
+
"text": "boolean"
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"kind": "method",
|
|
1755
|
+
"name": "changeHandler",
|
|
1756
|
+
"parameters": [
|
|
1757
|
+
{
|
|
1758
|
+
"name": "event"
|
|
1759
|
+
}
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"kind": "field",
|
|
1764
|
+
"name": "_presentation",
|
|
1765
|
+
"type": {
|
|
1766
|
+
"text": "ComponentPresentation | null | undefined"
|
|
1767
|
+
},
|
|
1768
|
+
"privacy": "private",
|
|
1769
|
+
"default": "void 0",
|
|
1770
|
+
"inheritedFrom": {
|
|
1771
|
+
"name": "FoundationElement",
|
|
1772
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"kind": "field",
|
|
1777
|
+
"name": "$presentation",
|
|
1778
|
+
"type": {
|
|
1779
|
+
"text": "ComponentPresentation | null"
|
|
1780
|
+
},
|
|
1781
|
+
"privacy": "public",
|
|
1782
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
1783
|
+
"inheritedFrom": {
|
|
1784
|
+
"name": "FoundationElement",
|
|
1785
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"kind": "field",
|
|
1790
|
+
"name": "template",
|
|
1791
|
+
"type": {
|
|
1792
|
+
"text": "ElementViewTemplate | void | null"
|
|
1793
|
+
},
|
|
1794
|
+
"privacy": "public",
|
|
1795
|
+
"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.",
|
|
1796
|
+
"inheritedFrom": {
|
|
1797
|
+
"name": "FoundationElement",
|
|
1798
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"kind": "method",
|
|
1803
|
+
"name": "templateChanged",
|
|
1804
|
+
"privacy": "protected",
|
|
1805
|
+
"return": {
|
|
1806
|
+
"type": {
|
|
1807
|
+
"text": "void"
|
|
1808
|
+
}
|
|
1809
|
+
},
|
|
1810
|
+
"inheritedFrom": {
|
|
1811
|
+
"name": "FoundationElement",
|
|
1812
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
"kind": "field",
|
|
1817
|
+
"name": "styles",
|
|
1818
|
+
"type": {
|
|
1819
|
+
"text": "ElementStyles | void | null"
|
|
1820
|
+
},
|
|
1821
|
+
"privacy": "public",
|
|
1822
|
+
"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.",
|
|
1823
|
+
"inheritedFrom": {
|
|
1824
|
+
"name": "FoundationElement",
|
|
1825
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
"kind": "method",
|
|
1830
|
+
"name": "stylesChanged",
|
|
1831
|
+
"privacy": "protected",
|
|
1832
|
+
"return": {
|
|
1833
|
+
"type": {
|
|
1834
|
+
"text": "void"
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
"inheritedFrom": {
|
|
1838
|
+
"name": "FoundationElement",
|
|
1839
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"kind": "method",
|
|
1844
|
+
"name": "compose",
|
|
1845
|
+
"privacy": "public",
|
|
1846
|
+
"static": true,
|
|
1847
|
+
"return": {
|
|
1848
|
+
"type": {
|
|
1849
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
"parameters": [
|
|
1853
|
+
{
|
|
1854
|
+
"name": "this",
|
|
1855
|
+
"type": {
|
|
1856
|
+
"text": "K"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"name": "elementDefinition",
|
|
1861
|
+
"type": {
|
|
1862
|
+
"text": "T"
|
|
1863
|
+
},
|
|
1864
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
1865
|
+
}
|
|
1866
|
+
],
|
|
1867
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
1868
|
+
"inheritedFrom": {
|
|
1869
|
+
"name": "FoundationElement",
|
|
1870
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
],
|
|
1874
|
+
"superclass": {
|
|
1875
|
+
"name": "FoundationElement",
|
|
1876
|
+
"package": "@microsoft/fast-foundation"
|
|
1877
|
+
},
|
|
1878
|
+
"tagName": "%%prefix%%-date-editor",
|
|
1879
|
+
"customElement": true
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
"kind": "variable",
|
|
1883
|
+
"name": "agDateEditorStyles",
|
|
1884
|
+
"default": "css`\n :host {\n display: flex;\n }\n`",
|
|
1885
|
+
"description": "The AG Select Renderer Styles.",
|
|
1886
|
+
"privacy": "public"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"kind": "function",
|
|
1890
|
+
"name": "getDateEditorTemplate",
|
|
1891
|
+
"parameters": [
|
|
1892
|
+
{
|
|
1893
|
+
"name": "prefix",
|
|
1894
|
+
"default": "'foundation'",
|
|
1895
|
+
"description": "The design system prefix to use. Defaults to 'foundation'."
|
|
1896
|
+
}
|
|
1897
|
+
],
|
|
1898
|
+
"description": "Get a Design System prefixed Select template.",
|
|
1899
|
+
"return": {
|
|
1900
|
+
"type": {
|
|
1901
|
+
"text": ""
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
"privacy": "public"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"kind": "variable",
|
|
1908
|
+
"name": "foundationDateEditor",
|
|
1909
|
+
"privacy": "public"
|
|
1910
|
+
}
|
|
1911
|
+
],
|
|
1912
|
+
"exports": [
|
|
1913
|
+
{
|
|
1914
|
+
"kind": "js",
|
|
1915
|
+
"name": "DateEditor",
|
|
1916
|
+
"declaration": {
|
|
1917
|
+
"name": "DateEditor",
|
|
1918
|
+
"module": "src/cell-editors/date.editor.ts"
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
"kind": "js",
|
|
1923
|
+
"name": "agDateEditorStyles",
|
|
1924
|
+
"declaration": {
|
|
1925
|
+
"name": "agDateEditorStyles",
|
|
1926
|
+
"module": "src/cell-editors/date.editor.ts"
|
|
1927
|
+
}
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"kind": "js",
|
|
1931
|
+
"name": "getDateEditorTemplate",
|
|
1932
|
+
"declaration": {
|
|
1933
|
+
"name": "getDateEditorTemplate",
|
|
1934
|
+
"module": "src/cell-editors/date.editor.ts"
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"kind": "js",
|
|
1939
|
+
"name": "foundationDateEditor",
|
|
1940
|
+
"declaration": {
|
|
1941
|
+
"name": "foundationDateEditor",
|
|
1942
|
+
"module": "src/cell-editors/date.editor.ts"
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
]
|
|
1946
|
+
},
|
|
1668
1947
|
{
|
|
1669
1948
|
"kind": "javascript-module",
|
|
1670
1949
|
"path": "src/cell-editors/index.ts",
|
|
1671
1950
|
"declarations": [],
|
|
1672
1951
|
"exports": [
|
|
1952
|
+
{
|
|
1953
|
+
"kind": "js",
|
|
1954
|
+
"name": "*",
|
|
1955
|
+
"declaration": {
|
|
1956
|
+
"name": "*",
|
|
1957
|
+
"package": "./date.editor"
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1673
1960
|
{
|
|
1674
1961
|
"kind": "js",
|
|
1675
1962
|
"name": "*",
|
|
@@ -2035,21 +2322,6 @@
|
|
|
2035
2322
|
}
|
|
2036
2323
|
}
|
|
2037
2324
|
},
|
|
2038
|
-
{
|
|
2039
|
-
"kind": "method",
|
|
2040
|
-
"name": "focus",
|
|
2041
|
-
"privacy": "public"
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
"kind": "method",
|
|
2045
|
-
"name": "destroy",
|
|
2046
|
-
"privacy": "public",
|
|
2047
|
-
"return": {
|
|
2048
|
-
"type": {
|
|
2049
|
-
"text": "void"
|
|
2050
|
-
}
|
|
2051
|
-
}
|
|
2052
|
-
},
|
|
2053
2325
|
{
|
|
2054
2326
|
"kind": "method",
|
|
2055
2327
|
"name": "refresh",
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ICellEditorComp, ICellEditorParams } from '@ag-grid-community/core';
|
|
2
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
+
/**
|
|
4
|
+
* Parameters used to configure {@link SelectEditor}
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface DateEditorParams extends ICellEditorParams {
|
|
8
|
+
withTime: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The AG Date Editor element.
|
|
12
|
+
* @public
|
|
13
|
+
* @tagname %%prefix%%-date-editor
|
|
14
|
+
*/
|
|
15
|
+
export declare class DateEditor extends FoundationElement implements ICellEditorComp {
|
|
16
|
+
value: number;
|
|
17
|
+
dateFormat: string;
|
|
18
|
+
inputType: 'datetime-local' | 'date';
|
|
19
|
+
init(params: DateEditorParams): void;
|
|
20
|
+
getGui(): HTMLElement;
|
|
21
|
+
refresh(params: DateEditorParams): boolean;
|
|
22
|
+
getValue(): number;
|
|
23
|
+
isPopup(): boolean;
|
|
24
|
+
changeHandler(event: any): void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The AG Select Renderer Styles.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export declare const agDateEditorStyles: import("@microsoft/fast-element").ElementStyles;
|
|
31
|
+
/**
|
|
32
|
+
* Get a Design System prefixed Select template.
|
|
33
|
+
* @param prefix - The design system prefix to use. Defaults to 'foundation'.
|
|
34
|
+
* @returns A Select component template prefixed with the correct design system.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare const getDateEditorTemplate: (prefix?: string) => import("@microsoft/fast-element").ViewTemplate<DateEditor, any>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
* @remarks
|
|
42
|
+
* HTML Element: \<foundation-select-editor\>
|
|
43
|
+
*/
|
|
44
|
+
export declare const foundationDateEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
45
|
+
baseName: string;
|
|
46
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
47
|
+
template: import("@microsoft/fast-element").ViewTemplate<DateEditor, any>;
|
|
48
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
49
|
+
baseName: string;
|
|
50
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
51
|
+
template: import("@microsoft/fast-element").ViewTemplate<DateEditor, any>;
|
|
52
|
+
}, typeof DateEditor>;
|
|
53
|
+
//# sourceMappingURL=date.editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/date.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,iBAAkB,YAAW,eAAe;IACvD,KAAK,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,gBAAgB;IAO7B,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO;IAIjD,QAAQ;IAIR,OAAO,IAAI,OAAO;IAIlB,aAAa,CAAC,KAAK,KAAA;CAKpB;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,iDAI9B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,sFAQjC,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;qBAI/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -21,8 +21,6 @@ export declare class NumberEditor extends FoundationElement implements ICellEdit
|
|
|
21
21
|
input: any;
|
|
22
22
|
init(params: NumberEditorParams): void;
|
|
23
23
|
getGui(): HTMLElement;
|
|
24
|
-
focus(): void;
|
|
25
|
-
destroy(): void;
|
|
26
24
|
refresh(params: NumberEditorParams): boolean;
|
|
27
25
|
getValue(): number;
|
|
28
26
|
isPopup(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/number.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,iBAAkB,YAAW,eAAe;IACzD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IAEX,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAM/B,MAAM,IAAI,WAAW;IAIrB,
|
|
1
|
+
{"version":3,"file":"number.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/number.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,iBAAkB,YAAW,eAAe;IACzD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IAEX,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAM/B,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAInD,QAAQ;IAIR,OAAO,IAAI,OAAO;IAIlB,gBAAgB;IAIhB,aAAa,CAAC,KAAK,KAAA;CAIpB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iDAIhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,8FAcnC,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;uBAIjC,CAAC"}
|
|
@@ -86,6 +86,15 @@ export declare const foundationGridComponents: {
|
|
|
86
86
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
87
87
|
template: import("@microsoft/fast-element").ViewTemplate<import("./cell-editors").NumberEditor, any>;
|
|
88
88
|
}, typeof import("./cell-editors").NumberEditor>;
|
|
89
|
+
foundationDateEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
90
|
+
baseName: string;
|
|
91
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
92
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("./cell-editors").DateEditor, any>;
|
|
93
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
94
|
+
baseName: string;
|
|
95
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
96
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("./cell-editors").DateEditor, any>;
|
|
97
|
+
}, typeof import("./cell-editors").DateEditor>;
|
|
89
98
|
foundationMultiselectEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
90
99
|
baseName: string;
|
|
91
100
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAiB5D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAYd,SAAS,WAAW,GAAG,EAAE;CAa/C,CAAC"}
|
|
@@ -33,11 +33,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
33
33
|
draggable: boolean;
|
|
34
34
|
hidden: boolean;
|
|
35
35
|
inert: boolean;
|
|
36
|
-
innerText: string;
|
|
37
|
-
* Initializes the datasource.
|
|
38
|
-
* @public
|
|
39
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
40
|
-
*/
|
|
36
|
+
innerText: string;
|
|
41
37
|
lang: string;
|
|
42
38
|
readonly offsetHeight: number;
|
|
43
39
|
readonly offsetLeft: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAgBtE;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAgBtE;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAGpC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;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B,OAAO,CAAC,wBAAwB;IAUhC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA4DvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -19,15 +19,15 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
19
19
|
cloneNode(deep?: boolean): Node;
|
|
20
20
|
deepClone(): Node;
|
|
21
21
|
readonly shouldRunDisconnect: boolean;
|
|
22
|
-
readonly shouldRunConnect: boolean;
|
|
22
|
+
readonly shouldRunConnect: boolean; /**
|
|
23
|
+
* Whether to use the `applyTransactionAsync` function for *update* transactions
|
|
24
|
+
* @remarks Defaults to true
|
|
25
|
+
*/
|
|
23
26
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
24
27
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
25
28
|
connectedCallback(): void;
|
|
26
29
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
27
30
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
28
|
-
/**
|
|
29
|
-
* The key to use for persisting the column state in local storage.
|
|
30
|
-
*/
|
|
31
31
|
disconnectedCallback(): void;
|
|
32
32
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
33
33
|
accessKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-p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are enum GridProRendererTypes {
|
|
|
126
126
|
boolean = "boolean",
|
|
127
127
|
text = "text",
|
|
128
128
|
select = "select",
|
|
129
|
+
dateEditor = "dateEditor",
|
|
129
130
|
selectEditor = "selectEditor",
|
|
130
131
|
numberEditor = "numberEditor",
|
|
131
132
|
multiselectEditor = "multiselectEditor"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.types.d.ts","sourceRoot":"","sources":["../../src/grid-pro.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGhF;;;GAGG;AACH,oBAAY,aAAa;IACvB,eAAe,0BAA0B;IACzC,SAAS,oBAAoB;IAC7B,wBAAwB,oCAAoC;IAC5D,qBAAqB,iCAAiC;IACtD,uBAAuB,mCAAmC;IAC1D,eAAe,0BAA0B;IACzC,qBAAqB,iCAAiC;IACtD,wBAAwB,oCAAoC;IAC5D,+BAA+B,4CAA4C;IAC3E,2BAA2B,wCAAwC;IACnE,0BAA0B,uCAAuC;IACjE,qBAAqB,kCAAkC;IACvD,aAAa,yBAAyB;IACtC,yBAAyB,sCAAsC;IAC/D,6BAA6B,0CAA0C;IACvE,yBAAyB,sCAAsC;IAC/D,0CAA0C,yDAAyD;IACnG,kCAAkC,gDAAgD;IAClF,8BAA8B,4CAA4C;IAC1E,+BAA+B,6CAA6C;IAC5E,mBAAmB,+BAA+B;IAClD,WAAW,sBAAsB;IACjC,oBAAoB,gCAAgC;IACpD,cAAc,0BAA0B;IACxC,0BAA0B,uCAAuC;IACjE,6BAA6B,2CAA2C;IACxE,gBAAgB,4BAA4B;IAC5C,wBAAwB,qCAAqC;IAC7D,4BAA4B,yCAAyC;IACrE,uBAAuB,mCAAmC;IAC1D,oBAAoB,gCAAgC;IACpD,sBAAsB,kCAAkC;IACxD,0BAA0B,sCAAsC;IAChE,0BAA0B,wCAAwC;IAClE,8BAA8B,4CAA4C;IAC1E,yBAAyB,uCAAuC;IAChE,6BAA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MAAM,kBAAkB,cAAe,MAAM,YAAY,eAAe,GAAG,CAAC,oDAIlF,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAAE,CAAC,aAAa,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAE9D;;;GAGG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import utc from 'dayjs/plugin/utc';
|
|
6
|
+
dayjs.extend(utc);
|
|
7
|
+
/**
|
|
8
|
+
* The AG Date Editor element.
|
|
9
|
+
* @public
|
|
10
|
+
* @tagname %%prefix%%-date-editor
|
|
11
|
+
*/
|
|
12
|
+
export class DateEditor extends FoundationElement {
|
|
13
|
+
init(params) {
|
|
14
|
+
if (!params)
|
|
15
|
+
return;
|
|
16
|
+
this.value = params.value;
|
|
17
|
+
this.dateFormat = params.withTime ? 'YYYY-MM-DDTHH:mm' : 'YYYY-MM-DD';
|
|
18
|
+
this.inputType = params.withTime ? 'datetime-local' : 'date';
|
|
19
|
+
}
|
|
20
|
+
getGui() {
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
refresh(params) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
getValue() {
|
|
27
|
+
return this.value;
|
|
28
|
+
}
|
|
29
|
+
isPopup() {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
changeHandler(event) {
|
|
33
|
+
const dateValue = event.target.control.valueAsNumber;
|
|
34
|
+
this.value = !isNaN(dateValue) ? dateValue : undefined;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
observable
|
|
39
|
+
], DateEditor.prototype, "value", void 0);
|
|
40
|
+
/**
|
|
41
|
+
* The AG Select Renderer Styles.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export const agDateEditorStyles = css `
|
|
45
|
+
:host {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
/**
|
|
50
|
+
* Get a Design System prefixed Select template.
|
|
51
|
+
* @param prefix - The design system prefix to use. Defaults to 'foundation'.
|
|
52
|
+
* @returns A Select component template prefixed with the correct design system.
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export const getDateEditorTemplate = (prefix = 'foundation') => html `
|
|
56
|
+
<${prefix}-text-field
|
|
57
|
+
:value=${(x) => x.value === undefined || x.value === null ? '' : dayjs.utc(x.value).format(x.dateFormat)}
|
|
58
|
+
type=${(x) => x.inputType}
|
|
59
|
+
@input=${(x, c) => x.changeHandler(c.event)}
|
|
60
|
+
style="width: 100%"
|
|
61
|
+
></${prefix}-text-field>
|
|
62
|
+
`;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
* @remarks
|
|
67
|
+
* HTML Element: \<foundation-select-editor\>
|
|
68
|
+
*/
|
|
69
|
+
export const foundationDateEditor = DateEditor.compose({
|
|
70
|
+
baseName: 'date-editor',
|
|
71
|
+
styles: agDateEditorStyles,
|
|
72
|
+
template: getDateEditorTemplate(),
|
|
73
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { foundationSelectEditor, foundationNumberEditor, foundationMultiselectEditor, } from './cell-editors';
|
|
1
|
+
import { foundationSelectEditor, foundationNumberEditor, foundationMultiselectEditor, foundationDateEditor, } from './cell-editors';
|
|
2
2
|
import { foundationGridProActionRenderer, foundationGridProActionsMenuRenderer, foundationAgBooleanRenderer, foundationAgSelectRenderer, foundationAgTextRenderer, foundationAgTextFieldRenderer, } from './cell-renderers';
|
|
3
3
|
import { foundationGridPro } from './grid-pro';
|
|
4
4
|
/**
|
|
@@ -16,6 +16,7 @@ export const foundationGridComponents = {
|
|
|
16
16
|
foundationGridPro,
|
|
17
17
|
foundationSelectEditor,
|
|
18
18
|
foundationNumberEditor,
|
|
19
|
+
foundationDateEditor,
|
|
19
20
|
foundationMultiselectEditor,
|
|
20
21
|
register(container, ...rest) {
|
|
21
22
|
if (!container) {
|
|
@@ -462,9 +462,14 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
462
462
|
break;
|
|
463
463
|
case FieldTypeEnum.DATE:
|
|
464
464
|
colDefBase.valueFormatter = dateValueFormatter;
|
|
465
|
+
colDefBase.cellEditor = GridProRendererTypes.dateEditor;
|
|
465
466
|
break;
|
|
466
467
|
case FieldTypeEnum.DATETIME:
|
|
467
468
|
colDefBase.valueFormatter = dateTimeValueFormatter;
|
|
469
|
+
colDefBase.cellEditor = GridProRendererTypes.dateEditor;
|
|
470
|
+
colDefBase.cellEditorParams = {
|
|
471
|
+
withTime: true,
|
|
472
|
+
};
|
|
468
473
|
break;
|
|
469
474
|
case FieldTypeEnum.ENUM:
|
|
470
475
|
colDefBase.cellEditor = GridProRendererTypes.selectEditor;
|