@genesislcap/grid-pro 14.104.0 → 14.105.1-alpha-4652481.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 (51) hide show
  1. package/dist/custom-elements.json +301 -1
  2. package/dist/dts/cell-editors/index.d.ts +1 -0
  3. package/dist/dts/cell-editors/index.d.ts.map +1 -1
  4. package/dist/dts/cell-editors/multiselect.editor.d.ts +60 -0
  5. package/dist/dts/cell-editors/multiselect.editor.d.ts.map +1 -0
  6. package/dist/dts/cell-editors/select.editor.d.ts +2 -0
  7. package/dist/dts/cell-editors/select.editor.d.ts.map +1 -1
  8. package/dist/dts/grid-components.d.ts +9 -0
  9. package/dist/dts/grid-components.d.ts.map +1 -1
  10. package/dist/dts/grid-pro.d.ts +3 -3
  11. package/dist/dts/grid-pro.d.ts.map +1 -1
  12. package/dist/dts/grid-pro.types.d.ts +2 -1
  13. package/dist/dts/grid-pro.types.d.ts.map +1 -1
  14. package/dist/esm/cell-editors/index.js +1 -0
  15. package/dist/esm/cell-editors/multiselect.editor.js +94 -0
  16. package/dist/esm/cell-editors/select.editor.js +6 -4
  17. package/dist/esm/grid-components.js +2 -1
  18. package/dist/esm/grid-pro.js +2 -1
  19. package/dist/esm/grid-pro.types.js +1 -0
  20. package/dist/grid-pro.api.json +975 -12
  21. package/dist/grid-pro.d.ts +77 -4
  22. package/docs/api/grid-pro.agmultiselecteditorstyles.md +13 -0
  23. package/docs/api/grid-pro.foundationgridcomponents.md +9 -0
  24. package/docs/api/grid-pro.foundationmultiselecteditor.md +24 -0
  25. package/docs/api/grid-pro.getmultiselecteditortemplate.md +13 -0
  26. package/docs/api/grid-pro.gridprorenderertypes.md +1 -0
  27. package/docs/api/grid-pro.md +5 -0
  28. package/docs/api/grid-pro.multiselecteditor.changehandler.md +22 -0
  29. package/docs/api/grid-pro.multiselecteditor.destroy.md +15 -0
  30. package/docs/api/grid-pro.multiselecteditor.getgui.md +15 -0
  31. package/docs/api/grid-pro.multiselecteditor.getvalue.md +15 -0
  32. package/docs/api/grid-pro.multiselecteditor.init.md +22 -0
  33. package/docs/api/grid-pro.multiselecteditor.ispopup.md +15 -0
  34. package/docs/api/grid-pro.multiselecteditor.md +36 -0
  35. package/docs/api/grid-pro.multiselecteditor.params.md +11 -0
  36. package/docs/api/grid-pro.multiselecteditor.refresh.md +22 -0
  37. package/docs/api/grid-pro.multiselecteditor.selectedoptions.md +11 -0
  38. package/docs/api/grid-pro.multiselecteditorparams.alloptionsresourcename.md +11 -0
  39. package/docs/api/grid-pro.multiselecteditorparams.async.md +11 -0
  40. package/docs/api/grid-pro.multiselecteditorparams.datasourceoptions.md +11 -0
  41. package/docs/api/grid-pro.multiselecteditorparams.labelfield.md +11 -0
  42. package/docs/api/grid-pro.multiselecteditorparams.md +27 -0
  43. package/docs/api/grid-pro.multiselecteditorparams.selectedoptionscallback.md +11 -0
  44. package/docs/api/grid-pro.multiselecteditorparams.valuefield.md +11 -0
  45. package/docs/api/grid-pro.multiselecteditorparams.values.md +11 -0
  46. package/docs/api/grid-pro.selecteditor.changehandler.md +22 -0
  47. package/docs/api/grid-pro.selecteditor.md +1 -0
  48. package/docs/api/grid-pro.selecteditorparams.async.md +11 -0
  49. package/docs/api/grid-pro.selecteditorparams.md +1 -0
  50. package/docs/api-report.md +72 -0
  51. package/package.json +8 -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 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 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
  }
@@ -1670,6 +1670,14 @@
1670
1670
  "path": "src/cell-editors/index.ts",
1671
1671
  "declarations": [],
1672
1672
  "exports": [
1673
+ {
1674
+ "kind": "js",
1675
+ "name": "*",
1676
+ "declaration": {
1677
+ "name": "*",
1678
+ "package": "./multiselect.editor"
1679
+ }
1680
+ },
1673
1681
  {
1674
1682
  "kind": "js",
1675
1683
  "name": "*",
@@ -1688,6 +1696,289 @@
1688
1696
  }
1689
1697
  ]
1690
1698
  },
1699
+ {
1700
+ "kind": "javascript-module",
1701
+ "path": "src/cell-editors/multiselect.editor.ts",
1702
+ "declarations": [
1703
+ {
1704
+ "kind": "class",
1705
+ "description": "The AG Multiselect Editor element.",
1706
+ "name": "MultiselectEditor",
1707
+ "members": [
1708
+ {
1709
+ "kind": "field",
1710
+ "name": "params",
1711
+ "type": {
1712
+ "text": "MultiselectEditorParams"
1713
+ },
1714
+ "privacy": "public"
1715
+ },
1716
+ {
1717
+ "kind": "field",
1718
+ "name": "selectedOptions",
1719
+ "type": {
1720
+ "text": "any[]"
1721
+ },
1722
+ "privacy": "public"
1723
+ },
1724
+ {
1725
+ "kind": "method",
1726
+ "name": "init",
1727
+ "privacy": "public",
1728
+ "parameters": [
1729
+ {
1730
+ "name": "params",
1731
+ "type": {
1732
+ "text": "MultiselectEditorParams"
1733
+ }
1734
+ }
1735
+ ]
1736
+ },
1737
+ {
1738
+ "kind": "method",
1739
+ "name": "getGui",
1740
+ "privacy": "public",
1741
+ "return": {
1742
+ "type": {
1743
+ "text": "HTMLElement"
1744
+ }
1745
+ }
1746
+ },
1747
+ {
1748
+ "kind": "method",
1749
+ "name": "destroy",
1750
+ "privacy": "public",
1751
+ "return": {
1752
+ "type": {
1753
+ "text": "void"
1754
+ }
1755
+ }
1756
+ },
1757
+ {
1758
+ "kind": "method",
1759
+ "name": "refresh",
1760
+ "privacy": "public",
1761
+ "return": {
1762
+ "type": {
1763
+ "text": "boolean"
1764
+ }
1765
+ },
1766
+ "parameters": [
1767
+ {
1768
+ "name": "params",
1769
+ "type": {
1770
+ "text": "MultiselectEditorParams"
1771
+ }
1772
+ }
1773
+ ]
1774
+ },
1775
+ {
1776
+ "kind": "method",
1777
+ "name": "getValue"
1778
+ },
1779
+ {
1780
+ "kind": "method",
1781
+ "name": "isPopup",
1782
+ "return": {
1783
+ "type": {
1784
+ "text": "boolean"
1785
+ }
1786
+ }
1787
+ },
1788
+ {
1789
+ "kind": "method",
1790
+ "name": "changeHandler",
1791
+ "parameters": [
1792
+ {
1793
+ "name": "event"
1794
+ }
1795
+ ]
1796
+ },
1797
+ {
1798
+ "kind": "field",
1799
+ "name": "_presentation",
1800
+ "type": {
1801
+ "text": "ComponentPresentation | null | undefined"
1802
+ },
1803
+ "privacy": "private",
1804
+ "default": "void 0",
1805
+ "inheritedFrom": {
1806
+ "name": "FoundationElement",
1807
+ "module": "src/foundation-element/foundation-element.ts"
1808
+ }
1809
+ },
1810
+ {
1811
+ "kind": "field",
1812
+ "name": "$presentation",
1813
+ "type": {
1814
+ "text": "ComponentPresentation | null"
1815
+ },
1816
+ "privacy": "public",
1817
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1818
+ "inheritedFrom": {
1819
+ "name": "FoundationElement",
1820
+ "module": "src/foundation-element/foundation-element.ts"
1821
+ }
1822
+ },
1823
+ {
1824
+ "kind": "field",
1825
+ "name": "template",
1826
+ "type": {
1827
+ "text": "ElementViewTemplate | void | null"
1828
+ },
1829
+ "privacy": "public",
1830
+ "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.",
1831
+ "inheritedFrom": {
1832
+ "name": "FoundationElement",
1833
+ "module": "src/foundation-element/foundation-element.ts"
1834
+ }
1835
+ },
1836
+ {
1837
+ "kind": "method",
1838
+ "name": "templateChanged",
1839
+ "privacy": "protected",
1840
+ "return": {
1841
+ "type": {
1842
+ "text": "void"
1843
+ }
1844
+ },
1845
+ "inheritedFrom": {
1846
+ "name": "FoundationElement",
1847
+ "module": "src/foundation-element/foundation-element.ts"
1848
+ }
1849
+ },
1850
+ {
1851
+ "kind": "field",
1852
+ "name": "styles",
1853
+ "type": {
1854
+ "text": "ElementStyles | void | null"
1855
+ },
1856
+ "privacy": "public",
1857
+ "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.",
1858
+ "inheritedFrom": {
1859
+ "name": "FoundationElement",
1860
+ "module": "src/foundation-element/foundation-element.ts"
1861
+ }
1862
+ },
1863
+ {
1864
+ "kind": "method",
1865
+ "name": "stylesChanged",
1866
+ "privacy": "protected",
1867
+ "return": {
1868
+ "type": {
1869
+ "text": "void"
1870
+ }
1871
+ },
1872
+ "inheritedFrom": {
1873
+ "name": "FoundationElement",
1874
+ "module": "src/foundation-element/foundation-element.ts"
1875
+ }
1876
+ },
1877
+ {
1878
+ "kind": "method",
1879
+ "name": "compose",
1880
+ "privacy": "public",
1881
+ "static": true,
1882
+ "return": {
1883
+ "type": {
1884
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1885
+ }
1886
+ },
1887
+ "parameters": [
1888
+ {
1889
+ "name": "this",
1890
+ "type": {
1891
+ "text": "K"
1892
+ }
1893
+ },
1894
+ {
1895
+ "name": "elementDefinition",
1896
+ "type": {
1897
+ "text": "T"
1898
+ },
1899
+ "description": "The definition of the element to create the registry\nfunction for."
1900
+ }
1901
+ ],
1902
+ "description": "Defines an element registry function with a set of element definition defaults.",
1903
+ "inheritedFrom": {
1904
+ "name": "FoundationElement",
1905
+ "module": "src/foundation-element/foundation-element.ts"
1906
+ }
1907
+ }
1908
+ ],
1909
+ "superclass": {
1910
+ "name": "FoundationElement",
1911
+ "package": "@microsoft/fast-foundation"
1912
+ },
1913
+ "tagName": "%%prefix%%-multiselect-editor",
1914
+ "customElement": true
1915
+ },
1916
+ {
1917
+ "kind": "variable",
1918
+ "name": "agMultiselectEditorStyles",
1919
+ "default": "css`\n :host,\n .select-renderer,\n zero-option,\n ::part(listbox),\n ::part(control) {\n max-width: var(--select-renderer-max-width);\n min-width: 100%;\n }\n`",
1920
+ "description": "The AG Select Renderer Styles.",
1921
+ "privacy": "public"
1922
+ },
1923
+ {
1924
+ "kind": "function",
1925
+ "name": "getMultiselectEditorTemplate",
1926
+ "parameters": [
1927
+ {
1928
+ "name": "designSystem",
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
+ }
1938
+ },
1939
+ "privacy": "public"
1940
+ },
1941
+ {
1942
+ "kind": "variable",
1943
+ "name": "foundationMultiselectEditor",
1944
+ "privacy": "public"
1945
+ }
1946
+ ],
1947
+ "exports": [
1948
+ {
1949
+ "kind": "js",
1950
+ "name": "MultiselectEditor",
1951
+ "declaration": {
1952
+ "name": "MultiselectEditor",
1953
+ "module": "src/cell-editors/multiselect.editor.ts"
1954
+ }
1955
+ },
1956
+ {
1957
+ "kind": "js",
1958
+ "name": "agMultiselectEditorStyles",
1959
+ "declaration": {
1960
+ "name": "agMultiselectEditorStyles",
1961
+ "module": "src/cell-editors/multiselect.editor.ts"
1962
+ }
1963
+ },
1964
+ {
1965
+ "kind": "js",
1966
+ "name": "getMultiselectEditorTemplate",
1967
+ "declaration": {
1968
+ "name": "getMultiselectEditorTemplate",
1969
+ "module": "src/cell-editors/multiselect.editor.ts"
1970
+ }
1971
+ },
1972
+ {
1973
+ "kind": "js",
1974
+ "name": "foundationMultiselectEditor",
1975
+ "declaration": {
1976
+ "name": "foundationMultiselectEditor",
1977
+ "module": "src/cell-editors/multiselect.editor.ts"
1978
+ }
1979
+ }
1980
+ ]
1981
+ },
1691
1982
  {
1692
1983
  "kind": "javascript-module",
1693
1984
  "path": "src/cell-editors/number.editor.ts",
@@ -2089,6 +2380,15 @@
2089
2380
  "kind": "method",
2090
2381
  "name": "afterGuiAttached"
2091
2382
  },
2383
+ {
2384
+ "kind": "method",
2385
+ "name": "changeHandler",
2386
+ "parameters": [
2387
+ {
2388
+ "name": "event"
2389
+ }
2390
+ ]
2391
+ },
2092
2392
  {
2093
2393
  "kind": "field",
2094
2394
  "name": "_presentation",
@@ -1,3 +1,4 @@
1
+ export * from './multiselect.editor';
1
2
  export * from './number.editor';
2
3
  export * from './select.editor';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/index.ts"],"names":[],"mappings":"AAAA,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,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { ICellEditorComp, ICellEditorParams } from '@ag-grid-community/core';
2
+ import { DatasourceOptions } from '@genesislcap/foundation-comms';
3
+ import { FoundationElement } from '@microsoft/fast-foundation';
4
+ /**
5
+ * Parameters used to configure {@link MultiselectEditor}
6
+ * @public
7
+ */
8
+ export interface MultiselectEditorParams extends ICellEditorParams {
9
+ allOptionsResourceName: string;
10
+ selectedOptionsCallback: (data: any) => Promise<[]>;
11
+ valueField: string;
12
+ labelField: string;
13
+ async: boolean;
14
+ values: any[];
15
+ datasourceOptions: DatasourceOptions[];
16
+ }
17
+ /**
18
+ * The AG Multiselect Editor element.
19
+ * @public
20
+ * @tagname %%prefix%%-multiselect-editor
21
+ */
22
+ export declare class MultiselectEditor extends FoundationElement implements ICellEditorComp {
23
+ params: MultiselectEditorParams;
24
+ selectedOptions: any[];
25
+ init(params: MultiselectEditorParams): void;
26
+ getGui(): HTMLElement;
27
+ destroy(): void;
28
+ refresh(params: MultiselectEditorParams): boolean;
29
+ getValue(): any[];
30
+ isPopup(): boolean;
31
+ changeHandler(event: any): void;
32
+ }
33
+ /**
34
+ * The AG Select Renderer Styles.
35
+ * @public
36
+ */
37
+ export declare const agMultiselectEditorStyles: import("@microsoft/fast-element").ElementStyles;
38
+ /**
39
+ * Get a Design System prefixed Select template.
40
+ * @param designSystem - The design system prefix to use. Defaults to 'foundation'.
41
+ * @returns A Select component template prefixed with the correct design system.
42
+ * @public
43
+ */
44
+ export declare const getMultiselectEditorTemplate: (designSystem?: string) => import("@microsoft/fast-element").ViewTemplate<MultiselectEditor, any>;
45
+ /**
46
+ *
47
+ * @public
48
+ * @remarks
49
+ * HTML Element: \<foundation-multiselect-editor\>
50
+ */
51
+ export declare const foundationMultiselectEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
52
+ baseName: string;
53
+ styles: import("@microsoft/fast-element").ElementStyles;
54
+ template: import("@microsoft/fast-element").ViewTemplate<MultiselectEditor, any>;
55
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
56
+ baseName: string;
57
+ styles: import("@microsoft/fast-element").ElementStyles;
58
+ template: import("@microsoft/fast-element").ViewTemplate<MultiselectEditor, any>;
59
+ }, typeof MultiselectEditor>;
60
+ //# sourceMappingURL=multiselect.editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/multiselect.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,CAAC,IAAI,KAAA,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,iBAAkB,YAAW,eAAe;IAC9D,MAAM,EAAE,uBAAuB,CAAC;IAChC,eAAe,EAAE,GAAG,EAAE,CAAC;IAEnC,IAAI,CAAC,MAAM,EAAE,uBAAuB;IAkBpC,MAAM,IAAI,WAAW;IAIrB,OAAO,IAAI,IAAI;IAEf,OAAO,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO;IAIxD,QAAQ;IAIR,OAAO,IAAI,OAAO;IAIlB,aAAa,CAAC,KAAK,KAAA;CAGpB;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,iDASrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,mGAgBxC,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;4BAItC,CAAC"}
@@ -8,6 +8,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
8
8
  export interface SelectEditorParams extends ICellEditorParams {
9
9
  allOptionsResourceName: string;
10
10
  valueField: string;
11
+ async: boolean;
11
12
  labelField: string;
12
13
  values: any[];
13
14
  datasourceOptions: DatasourceOptions[];
@@ -28,6 +29,7 @@ export declare class SelectEditor extends FoundationElement implements ICellEdit
28
29
  getValue(): string;
29
30
  isPopup(): boolean;
30
31
  afterGuiAttached(): void;
32
+ changeHandler(event: any): void;
31
33
  }
32
34
  /**
33
35
  * The AG Select Renderer Styles.
@@ -1 +1 @@
1
- {"version":3,"file":"select.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/select.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,iBAAkB,YAAW,eAAe;IACzD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,GAAG,CAAC;IAEd,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAM/B,MAAM,IAAI,WAAW;IAIrB,OAAO,IAAI,IAAI;IAEf,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAInD,QAAQ;IAIR,OAAO,IAAI,OAAO;IAIlB,gBAAgB;CAGjB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iDAShC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,8FAiBnC,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;uBAIjC,CAAC"}
1
+ {"version":3,"file":"select.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/select.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,iBAAkB,YAAW,eAAe;IACzD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,GAAG,CAAC;IAEd,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAM/B,MAAM,IAAI,WAAW;IAIrB,OAAO,IAAI,IAAI;IAEf,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAInD,QAAQ;IAIR,OAAO,IAAI,OAAO;IAIlB,gBAAgB;IAIhB,aAAa,CAAC,KAAK,KAAA;CAGpB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iDAShC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,8FAgBnC,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
+ foundationMultiselectEditor: (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").MultiselectEditor, 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").MultiselectEditor, any>;
97
+ }, typeof import("./cell-editors").MultiselectEditor>;
89
98
  register(container?: Container, ...rest: any[]): void;
90
99
  };
91
100
  //# sourceMappingURL=grid-components.d.ts.map
@@ -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;AAY5D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAUd,SAAS,WAAW,GAAG,EAAE;CAa/C,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;AAgB5D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAWd,SAAS,WAAW,GAAG,EAAE;CAa/C,CAAC"}
@@ -129,11 +129,11 @@ declare const GridPro_base: (new (...args: any[]) => {
129
129
  readonly nodeName: string;
130
130
  readonly nodeType: number;
131
131
  nodeValue: string;
132
- readonly parentElement: HTMLElement; /**
132
+ readonly parentElement: HTMLElement;
133
+ readonly parentNode: ParentNode;
134
+ readonly previousSibling: ChildNode; /**
133
135
  * @public
134
136
  */
135
- readonly parentNode: ParentNode;
136
- readonly previousSibling: ChildNode;
137
137
  textContent: string;
138
138
  appendChild<T_1 extends Node>(node: T_1): T_1;
139
139
  compareDocumentPosition(other: Node): number;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAS/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAIzE,OAAO,EAKL,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAW1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCA2Q5D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvQL;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,YAAiC;IAChD,SAAS,EAAG,SAAS,CAAC;IACtB,OAAO,EAAG,OAAO,CAAC;IACrB,OAAO,CAAC,OAAO,CAAU;IAElC;;;OAGG;IACH,OA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IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACH,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IA+CnF,IAAI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
@@ -127,7 +127,8 @@ export declare enum GridProRendererTypes {
127
127
  text = "text",
128
128
  select = "select",
129
129
  selectEditor = "selectEditor",
130
- numberEditor = "numberEditor"
130
+ numberEditor = "numberEditor",
131
+ multiselectEditor = "multiselectEditor"
131
132
  }
132
133
  /**
133
134
  * Event fired when grid is ready
@@ -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,a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AChE,6BAA6B,2CAA2C;IACxE,iCAAiC,+CAA+C;IAChF,6BAA6B,2CAA2C;IACxE,2BAA2B,wCAAwC;IACnE,0BAA0B,uCAAuC;IACjE,2BAA2B,wCAAwC;IACnE,mBAAmB,gCAAgC;IACnD,qBAAqB,kCAAkC;CACxD;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB,MAAM,oBAAoB;IAC1B,UAAU,yBAAyB;IACnC,MAAM,oBAAoB;IAC1B,UAAU,yBAAyB;IACnC,QAAQ,sBAAsB;CAC/B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,cAAe,MAAM,WAA6B,CAAC;AAExF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,cAAe,MAAM,WAAyB,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,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,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,gBAAgB,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './multiselect.editor';
1
2
  export * from './number.editor';
2
3
  export * from './select.editor';
@@ -0,0 +1,94 @@
1
+ import { __decorate } from "tslib";
2
+ import { css, html, observable } from '@microsoft/fast-element';
3
+ import { FoundationElement } from '@microsoft/fast-foundation';
4
+ /**
5
+ * The AG Multiselect Editor element.
6
+ * @public
7
+ * @tagname %%prefix%%-multiselect-editor
8
+ */
9
+ export class MultiselectEditor extends FoundationElement {
10
+ init(params) {
11
+ if (!params)
12
+ return;
13
+ this.params = params;
14
+ this.selectedOptions = params.value;
15
+ // DATASERVER does not support array type so selected options could be fetched from another resource
16
+ if (this.params.selectedOptionsCallback) {
17
+ this.params.selectedOptionsCallback(this.params.data).then((selectedOptions) => {
18
+ this.selectedOptions = selectedOptions;
19
+ });
20
+ }
21
+ // if value was provided as string component will assume it's in csv syntax
22
+ if (typeof params.value === 'string') {
23
+ this.selectedOptions = params.value.split(',');
24
+ }
25
+ }
26
+ getGui() {
27
+ return this;
28
+ }
29
+ destroy() { }
30
+ refresh(params) {
31
+ return true;
32
+ }
33
+ getValue() {
34
+ return this.selectedOptions;
35
+ }
36
+ isPopup() {
37
+ return true;
38
+ }
39
+ changeHandler(event) {
40
+ this.selectedOptions = event.detail;
41
+ }
42
+ }
43
+ __decorate([
44
+ observable
45
+ ], MultiselectEditor.prototype, "params", void 0);
46
+ __decorate([
47
+ observable
48
+ ], MultiselectEditor.prototype, "selectedOptions", void 0);
49
+ /**
50
+ * The AG Select Renderer Styles.
51
+ * @public
52
+ */
53
+ export const agMultiselectEditorStyles = css `
54
+ :host,
55
+ .select-renderer,
56
+ zero-option,
57
+ ::part(listbox),
58
+ ::part(control) {
59
+ max-width: var(--select-renderer-max-width);
60
+ min-width: 100%;
61
+ }
62
+ `;
63
+ /**
64
+ * Get a Design System prefixed Select template.
65
+ * @param designSystem - The design system prefix to use. Defaults to 'foundation'.
66
+ * @returns A Select component template prefixed with the correct design system.
67
+ * @public
68
+ */
69
+ export const getMultiselectEditorTemplate = (designSystem = 'foundation') => html `
70
+ <${designSystem}-multiselect
71
+ style="width: 100%"
72
+ ?async=${(x) => x.params.async}
73
+ :selectedOptions=${(x) => x.selectedOptions || []}
74
+ @selectionChange=${(x, c) => x.changeHandler(c.event)}
75
+ >
76
+ <multiselect-datasource
77
+ resourceName=${(x) => x.params.allOptionsResourceName}
78
+ value-field=${(x) => x.params.valueField}
79
+ label-field=${(x) => x.params.labelField}
80
+ :datasourceConfig=${(x) => x.params.datasourceOptions}
81
+ ></multiselect-datasource>
82
+ </${designSystem}-multiselect>
83
+ `;
84
+ /**
85
+ *
86
+ * @public
87
+ * @remarks
88
+ * HTML Element: \<foundation-multiselect-editor\>
89
+ */
90
+ export const foundationMultiselectEditor = MultiselectEditor.compose({
91
+ baseName: 'multiselect-editor',
92
+ styles: agMultiselectEditorStyles,
93
+ template: getMultiselectEditorTemplate(),
94
+ });
@@ -29,6 +29,10 @@ export class SelectEditor extends FoundationElement {
29
29
  afterGuiAttached() {
30
30
  this.combobox.open = true;
31
31
  }
32
+ changeHandler(event) {
33
+ var _a;
34
+ this.value = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.value;
35
+ }
32
36
  }
33
37
  __decorate([
34
38
  observable
@@ -60,10 +64,8 @@ export const getSelectEditorTemplate = (designSystem = 'foundation') => html `
60
64
  <${designSystem}-combobox
61
65
  style="width: 100%"
62
66
  ${ref('combobox')}
63
- @value-change=${(x, c) => {
64
- var _a;
65
- x.value = (_a = c.event.detail) === null || _a === void 0 ? void 0 : _a.value;
66
- }}
67
+ ?async=${(x) => x.params.async}
68
+ @value-change=${(x, c) => x.changeHandler(c.event)}
67
69
  >
68
70
  <options-datasource
69
71
  resourceName=${(x) => x.params.allOptionsResourceName}
@@ -1,4 +1,4 @@
1
- import { foundationSelectEditor, foundationNumberEditor } from './cell-editors';
1
+ import { foundationSelectEditor, foundationNumberEditor, foundationMultiselectEditor, } 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
+ foundationMultiselectEditor,
19
20
  register(container, ...rest) {
20
21
  if (!container) {
21
22
  // preserve backward compatibility with code that loops through
@@ -8,7 +8,7 @@ import { attr, DOM, observable } from '@microsoft/fast-element';
8
8
  import { FoundationElement } from '@microsoft/fast-foundation';
9
9
  import { classNames } from '@microsoft/fast-web-utilities';
10
10
  import { GridProCell } from './cell';
11
- import { SelectEditor, NumberEditor } from './cell-editors';
11
+ import { SelectEditor, NumberEditor, MultiselectEditor } from './cell-editors';
12
12
  import { ActionRenderer, ActionsMenuRenderer, BooleanRenderer } from './cell-renderers';
13
13
  import { GridProColumn } from './column';
14
14
  import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
@@ -143,6 +143,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
143
143
  [GridProRendererTypes.boolean]: BooleanRenderer,
144
144
  [GridProRendererTypes.selectEditor]: SelectEditor,
145
145
  [GridProRendererTypes.numberEditor]: NumberEditor,
146
+ [GridProRendererTypes.multiselectEditor]: MultiselectEditor,
146
147
  };
147
148
  return Object.assign(Object.assign(Object.assign({}, defaultFoundationAgComponents), gridOptionsComponents), this.gridComponents);
148
149
  }