@genesislcap/foundation-workspace 15.39.0 → 15.40.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.
@@ -1668,13 +1668,28 @@
1668
1668
  },
1669
1669
  {
1670
1670
  "kind": "javascript-module",
1671
- "path": "src/workspace/grid-register/grid-register.template.ts",
1671
+ "path": "src/workspace/layout-wrapper/index.ts",
1672
+ "declarations": [],
1673
+ "exports": [
1674
+ {
1675
+ "kind": "js",
1676
+ "name": "*",
1677
+ "declaration": {
1678
+ "name": "*",
1679
+ "package": "./layout-wrapper"
1680
+ }
1681
+ }
1682
+ ]
1683
+ },
1684
+ {
1685
+ "kind": "javascript-module",
1686
+ "path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
1672
1687
  "declarations": [
1673
1688
  {
1674
1689
  "kind": "variable",
1675
- "name": "GridRegisterTemplate",
1690
+ "name": "LayoutWrapperTemplate",
1676
1691
  "type": {
1677
- "text": "ViewTemplate<GridRegister>"
1692
+ "text": "ViewTemplate<LayoutWrapper>"
1678
1693
  },
1679
1694
  "default": "html`\n <slot></slot>\n`"
1680
1695
  }
@@ -1682,26 +1697,26 @@
1682
1697
  "exports": [
1683
1698
  {
1684
1699
  "kind": "js",
1685
- "name": "GridRegisterTemplate",
1700
+ "name": "LayoutWrapperTemplate",
1686
1701
  "declaration": {
1687
- "name": "GridRegisterTemplate",
1688
- "module": "src/workspace/grid-register/grid-register.template.ts"
1702
+ "name": "LayoutWrapperTemplate",
1703
+ "module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
1689
1704
  }
1690
1705
  }
1691
1706
  ]
1692
1707
  },
1693
1708
  {
1694
1709
  "kind": "javascript-module",
1695
- "path": "src/workspace/grid-register/grid-register.ts",
1710
+ "path": "src/workspace/layout-wrapper/layout-wrapper.ts",
1696
1711
  "declarations": [
1697
1712
  {
1698
1713
  "kind": "class",
1699
- "description": "Registers an AG Grid instance so workspace state can apply/load it.",
1700
- "name": "GridRegister",
1714
+ "description": "Registers a layout instance so workspace state can apply/load it.",
1715
+ "name": "LayoutWrapper",
1701
1716
  "members": [
1702
1717
  {
1703
1718
  "kind": "field",
1704
- "name": "gridKey",
1719
+ "name": "layoutKey",
1705
1720
  "type": {
1706
1721
  "text": "string"
1707
1722
  }
@@ -1716,76 +1731,23 @@
1716
1731
  },
1717
1732
  {
1718
1733
  "kind": "field",
1719
- "name": "gridRegistry",
1720
- "type": {
1721
- "text": "GridRegistry"
1722
- }
1723
- },
1724
- {
1725
- "kind": "field",
1726
- "name": "workspaceState",
1734
+ "name": "layoutRegistry",
1727
1735
  "type": {
1728
- "text": "WorkspaceState"
1736
+ "text": "LayoutRegistry"
1729
1737
  }
1730
1738
  },
1731
1739
  {
1732
1740
  "kind": "field",
1733
- "name": "gridElement",
1734
- "type": {
1735
- "text": "GridPro | GridProLegacy | null"
1736
- },
1737
- "privacy": "private",
1738
- "default": "null",
1739
- "description": "`<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid."
1740
- },
1741
- {
1742
- "kind": "field",
1743
- "name": "gridApi",
1741
+ "name": "layoutElement",
1744
1742
  "type": {
1745
- "text": "GridPro['gridApi'] | GridProLegacy['gridApi'] | null"
1743
+ "text": "FoundationLayout | null"
1746
1744
  },
1747
1745
  "privacy": "private",
1748
1746
  "default": "null"
1749
1747
  },
1750
- {
1751
- "kind": "field",
1752
- "name": "columnApi",
1753
- "type": {
1754
- "text": "ColumnApi | null"
1755
- },
1756
- "privacy": "private",
1757
- "default": "null",
1758
- "description": "Only the v29 grid has a column API; on v36 the column state lives on `gridApi`."
1759
- },
1760
- {
1761
- "kind": "method",
1762
- "name": "findAndRegisterGrid",
1763
- "privacy": "private",
1764
- "return": {
1765
- "type": {
1766
- "text": "void"
1767
- }
1768
- }
1769
- },
1770
- {
1771
- "kind": "field",
1772
- "name": "handleGridReady",
1773
- "privacy": "private",
1774
- "readonly": true
1775
- },
1776
1748
  {
1777
1749
  "kind": "method",
1778
- "name": "attachToGridApis",
1779
- "privacy": "private",
1780
- "return": {
1781
- "type": {
1782
- "text": "void"
1783
- }
1784
- }
1785
- },
1786
- {
1787
- "kind": "method",
1788
- "name": "detachFromGridApis",
1750
+ "name": "findAndRegisterLayout",
1789
1751
  "privacy": "private",
1790
1752
  "return": {
1791
1753
  "type": {
@@ -1793,46 +1755,6 @@
1793
1755
  }
1794
1756
  }
1795
1757
  },
1796
- {
1797
- "kind": "method",
1798
- "name": "loadWorkspaceSettings",
1799
- "privacy": "private",
1800
- "return": {
1801
- "type": {
1802
- "text": "Promise<void>"
1803
- }
1804
- },
1805
- "parameters": [
1806
- {
1807
- "name": "options",
1808
- "optional": true,
1809
- "type": {
1810
- "text": "{ applyColumns?: boolean }"
1811
- }
1812
- }
1813
- ]
1814
- },
1815
- {
1816
- "kind": "method",
1817
- "name": "readColumnState",
1818
- "privacy": "private",
1819
- "return": {
1820
- "type": {
1821
- "text": "ColumnState[]"
1822
- }
1823
- },
1824
- "description": "Column state comes from `gridApi` on AG Grid v36 and from `columnApi` on v29; mirrors the\nfallback `GridRegistry` uses when saving."
1825
- },
1826
- {
1827
- "kind": "method",
1828
- "name": "loadWorkspaceColumnState",
1829
- "privacy": "private",
1830
- "return": {
1831
- "type": {
1832
- "text": "Promise<void>"
1833
- }
1834
- }
1835
- },
1836
1758
  {
1837
1759
  "kind": "field",
1838
1760
  "name": "_presentation",
@@ -1947,11 +1869,11 @@
1947
1869
  ],
1948
1870
  "attributes": [
1949
1871
  {
1950
- "name": "grid-key",
1872
+ "name": "layout-key",
1951
1873
  "type": {
1952
1874
  "text": "string"
1953
1875
  },
1954
- "fieldName": "gridKey"
1876
+ "fieldName": "layoutKey"
1955
1877
  },
1956
1878
  {
1957
1879
  "name": "design-system-prefix",
@@ -1966,68 +1888,38 @@
1966
1888
  "name": "FoundationElement",
1967
1889
  "package": "@genesislcap/web-core"
1968
1890
  },
1969
- "tagName": "grid-register",
1891
+ "tagName": "layout-register",
1970
1892
  "customElement": true
1971
1893
  }
1972
1894
  ],
1973
1895
  "exports": [
1974
1896
  {
1975
1897
  "kind": "js",
1976
- "name": "GridRegister",
1898
+ "name": "LayoutWrapper",
1977
1899
  "declaration": {
1978
- "name": "GridRegister",
1979
- "module": "src/workspace/grid-register/grid-register.ts"
1900
+ "name": "LayoutWrapper",
1901
+ "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
1980
1902
  }
1981
1903
  },
1982
1904
  {
1983
1905
  "kind": "custom-element-definition",
1984
- "name": "grid-register",
1985
- "declaration": {
1986
- "name": "GridRegister",
1987
- "module": "src/workspace/grid-register/grid-register.ts"
1988
- }
1989
- }
1990
- ]
1991
- },
1992
- {
1993
- "kind": "javascript-module",
1994
- "path": "src/workspace/grid-register/index.ts",
1995
- "declarations": [],
1996
- "exports": [
1997
- {
1998
- "kind": "js",
1999
- "name": "*",
2000
- "declaration": {
2001
- "name": "*",
2002
- "package": "./grid-register"
2003
- }
2004
- }
2005
- ]
2006
- },
2007
- {
2008
- "kind": "javascript-module",
2009
- "path": "src/workspace/layout-wrapper/index.ts",
2010
- "declarations": [],
2011
- "exports": [
2012
- {
2013
- "kind": "js",
2014
- "name": "*",
1906
+ "name": "layout-register",
2015
1907
  "declaration": {
2016
- "name": "*",
2017
- "package": "./layout-wrapper"
1908
+ "name": "LayoutWrapper",
1909
+ "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2018
1910
  }
2019
1911
  }
2020
1912
  ]
2021
1913
  },
2022
1914
  {
2023
1915
  "kind": "javascript-module",
2024
- "path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
1916
+ "path": "src/workspace/grid-register/grid-register.template.ts",
2025
1917
  "declarations": [
2026
1918
  {
2027
1919
  "kind": "variable",
2028
- "name": "LayoutWrapperTemplate",
1920
+ "name": "GridRegisterTemplate",
2029
1921
  "type": {
2030
- "text": "ViewTemplate<LayoutWrapper>"
1922
+ "text": "ViewTemplate<GridRegister>"
2031
1923
  },
2032
1924
  "default": "html`\n <slot></slot>\n`"
2033
1925
  }
@@ -2035,26 +1927,26 @@
2035
1927
  "exports": [
2036
1928
  {
2037
1929
  "kind": "js",
2038
- "name": "LayoutWrapperTemplate",
1930
+ "name": "GridRegisterTemplate",
2039
1931
  "declaration": {
2040
- "name": "LayoutWrapperTemplate",
2041
- "module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
1932
+ "name": "GridRegisterTemplate",
1933
+ "module": "src/workspace/grid-register/grid-register.template.ts"
2042
1934
  }
2043
1935
  }
2044
1936
  ]
2045
1937
  },
2046
1938
  {
2047
1939
  "kind": "javascript-module",
2048
- "path": "src/workspace/layout-wrapper/layout-wrapper.ts",
1940
+ "path": "src/workspace/grid-register/grid-register.ts",
2049
1941
  "declarations": [
2050
1942
  {
2051
1943
  "kind": "class",
2052
- "description": "Registers a layout instance so workspace state can apply/load it.",
2053
- "name": "LayoutWrapper",
1944
+ "description": "Registers an AG Grid instance so workspace state can apply/load it.",
1945
+ "name": "GridRegister",
2054
1946
  "members": [
2055
1947
  {
2056
1948
  "kind": "field",
2057
- "name": "layoutKey",
1949
+ "name": "gridKey",
2058
1950
  "type": {
2059
1951
  "text": "string"
2060
1952
  }
@@ -2069,23 +1961,50 @@
2069
1961
  },
2070
1962
  {
2071
1963
  "kind": "field",
2072
- "name": "layoutRegistry",
1964
+ "name": "gridRegistry",
2073
1965
  "type": {
2074
- "text": "LayoutRegistry"
1966
+ "text": "GridRegistry"
2075
1967
  }
2076
1968
  },
2077
1969
  {
2078
1970
  "kind": "field",
2079
- "name": "layoutElement",
1971
+ "name": "workspaceState",
2080
1972
  "type": {
2081
- "text": "FoundationLayout | null"
1973
+ "text": "WorkspaceState"
1974
+ }
1975
+ },
1976
+ {
1977
+ "kind": "field",
1978
+ "name": "gridElement",
1979
+ "type": {
1980
+ "text": "GridPro | GridProLegacy | null"
1981
+ },
1982
+ "privacy": "private",
1983
+ "default": "null",
1984
+ "description": "`<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid."
1985
+ },
1986
+ {
1987
+ "kind": "field",
1988
+ "name": "gridApi",
1989
+ "type": {
1990
+ "text": "GridPro['gridApi'] | GridProLegacy['gridApi'] | null"
2082
1991
  },
2083
1992
  "privacy": "private",
2084
1993
  "default": "null"
2085
1994
  },
1995
+ {
1996
+ "kind": "field",
1997
+ "name": "columnApi",
1998
+ "type": {
1999
+ "text": "ColumnApi | null"
2000
+ },
2001
+ "privacy": "private",
2002
+ "default": "null",
2003
+ "description": "Only the v29 grid has a column API; on v36 the column state lives on `gridApi`."
2004
+ },
2086
2005
  {
2087
2006
  "kind": "method",
2088
- "name": "findAndRegisterLayout",
2007
+ "name": "findAndRegisterGrid",
2089
2008
  "privacy": "private",
2090
2009
  "return": {
2091
2010
  "type": {
@@ -2093,6 +2012,72 @@
2093
2012
  }
2094
2013
  }
2095
2014
  },
2015
+ {
2016
+ "kind": "field",
2017
+ "name": "handleGridReady",
2018
+ "privacy": "private",
2019
+ "readonly": true
2020
+ },
2021
+ {
2022
+ "kind": "method",
2023
+ "name": "attachToGridApis",
2024
+ "privacy": "private",
2025
+ "return": {
2026
+ "type": {
2027
+ "text": "void"
2028
+ }
2029
+ }
2030
+ },
2031
+ {
2032
+ "kind": "method",
2033
+ "name": "detachFromGridApis",
2034
+ "privacy": "private",
2035
+ "return": {
2036
+ "type": {
2037
+ "text": "void"
2038
+ }
2039
+ }
2040
+ },
2041
+ {
2042
+ "kind": "method",
2043
+ "name": "loadWorkspaceSettings",
2044
+ "privacy": "private",
2045
+ "return": {
2046
+ "type": {
2047
+ "text": "Promise<void>"
2048
+ }
2049
+ },
2050
+ "parameters": [
2051
+ {
2052
+ "name": "options",
2053
+ "optional": true,
2054
+ "type": {
2055
+ "text": "{ applyColumns?: boolean }"
2056
+ }
2057
+ }
2058
+ ]
2059
+ },
2060
+ {
2061
+ "kind": "method",
2062
+ "name": "readColumnState",
2063
+ "privacy": "private",
2064
+ "return": {
2065
+ "type": {
2066
+ "text": "ColumnState[]"
2067
+ }
2068
+ },
2069
+ "description": "Column state comes from `gridApi` on AG Grid v36 and from `columnApi` on v29; mirrors the\nfallback `GridRegistry` uses when saving."
2070
+ },
2071
+ {
2072
+ "kind": "method",
2073
+ "name": "loadWorkspaceColumnState",
2074
+ "privacy": "private",
2075
+ "return": {
2076
+ "type": {
2077
+ "text": "Promise<void>"
2078
+ }
2079
+ }
2080
+ },
2096
2081
  {
2097
2082
  "kind": "field",
2098
2083
  "name": "_presentation",
@@ -2207,11 +2192,11 @@
2207
2192
  ],
2208
2193
  "attributes": [
2209
2194
  {
2210
- "name": "layout-key",
2195
+ "name": "grid-key",
2211
2196
  "type": {
2212
2197
  "text": "string"
2213
2198
  },
2214
- "fieldName": "layoutKey"
2199
+ "fieldName": "gridKey"
2215
2200
  },
2216
2201
  {
2217
2202
  "name": "design-system-prefix",
@@ -2226,25 +2211,40 @@
2226
2211
  "name": "FoundationElement",
2227
2212
  "package": "@genesislcap/web-core"
2228
2213
  },
2229
- "tagName": "layout-register",
2214
+ "tagName": "grid-register",
2230
2215
  "customElement": true
2231
2216
  }
2232
2217
  ],
2233
2218
  "exports": [
2234
2219
  {
2235
2220
  "kind": "js",
2236
- "name": "LayoutWrapper",
2221
+ "name": "GridRegister",
2237
2222
  "declaration": {
2238
- "name": "LayoutWrapper",
2239
- "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2223
+ "name": "GridRegister",
2224
+ "module": "src/workspace/grid-register/grid-register.ts"
2240
2225
  }
2241
2226
  },
2242
2227
  {
2243
2228
  "kind": "custom-element-definition",
2244
- "name": "layout-register",
2229
+ "name": "grid-register",
2245
2230
  "declaration": {
2246
- "name": "LayoutWrapper",
2247
- "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2231
+ "name": "GridRegister",
2232
+ "module": "src/workspace/grid-register/grid-register.ts"
2233
+ }
2234
+ }
2235
+ ]
2236
+ },
2237
+ {
2238
+ "kind": "javascript-module",
2239
+ "path": "src/workspace/grid-register/index.ts",
2240
+ "declarations": [],
2241
+ "exports": [
2242
+ {
2243
+ "kind": "js",
2244
+ "name": "*",
2245
+ "declaration": {
2246
+ "name": "*",
2247
+ "package": "./grid-register"
2248
2248
  }
2249
2249
  }
2250
2250
  ]
@@ -46,22 +46,22 @@ export declare const WorkspaceManager: React.ForwardRefExoticComponent<
46
46
  >;
47
47
  export type WorkspaceManagerRef = WorkspaceManagerWC;
48
48
 
49
- export declare const GridRegister: React.ForwardRefExoticComponent<
49
+ export declare const LayoutWrapper: React.ForwardRefExoticComponent<
50
50
  React.PropsWithChildren<
51
- Omit<PublicOf<GridRegisterWC>, 'children' | 'style'> &
51
+ Omit<PublicOf<LayoutWrapperWC>, 'children' | 'style'> &
52
52
  HTMLWCProps & {
53
53
  }
54
- > & React.RefAttributes<GridRegisterWC>
54
+ > & React.RefAttributes<LayoutWrapperWC>
55
55
  >;
56
- export type GridRegisterRef = GridRegisterWC;
56
+ export type LayoutWrapperRef = LayoutWrapperWC;
57
57
 
58
- export declare const LayoutWrapper: React.ForwardRefExoticComponent<
58
+ export declare const GridRegister: React.ForwardRefExoticComponent<
59
59
  React.PropsWithChildren<
60
- Omit<PublicOf<LayoutWrapperWC>, 'children' | 'style'> &
60
+ Omit<PublicOf<GridRegisterWC>, 'children' | 'style'> &
61
61
  HTMLWCProps & {
62
62
  }
63
- > & React.RefAttributes<LayoutWrapperWC>
63
+ > & React.RefAttributes<GridRegisterWC>
64
64
  >;
65
- export type LayoutWrapperRef = LayoutWrapperWC;
65
+ export type GridRegisterRef = GridRegisterWC;
66
66
 
67
67
  export {};
package/dist/react.cjs CHANGED
@@ -15,18 +15,18 @@ const WorkspaceManager = React.forwardRef(function WorkspaceManager(props, ref)
15
15
  return React.createElement(customElements.getName(WorkspaceManagerWC) ?? 'workspace-manager', { ...rest, ref }, children);
16
16
  });
17
17
 
18
- const GridRegister = React.forwardRef(function GridRegister(props, ref) {
18
+ const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
19
19
  const { children, ...rest } = props;
20
- return React.createElement(customElements.getName(GridRegisterWC) ?? 'grid-register', { ...rest, ref }, children);
20
+ return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-register', { ...rest, ref }, children);
21
21
  });
22
22
 
23
- const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
23
+ const GridRegister = React.forwardRef(function GridRegister(props, ref) {
24
24
  const { children, ...rest } = props;
25
- return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-register', { ...rest, ref }, children);
25
+ return React.createElement(customElements.getName(GridRegisterWC) ?? 'grid-register', { ...rest, ref }, children);
26
26
  });
27
27
 
28
28
  module.exports = {
29
29
  WorkspaceManager,
30
- GridRegister,
31
30
  LayoutWrapper,
31
+ GridRegister,
32
32
  };
package/dist/react.mjs CHANGED
@@ -13,12 +13,12 @@ export const WorkspaceManager = React.forwardRef(function WorkspaceManager(props
13
13
  return React.createElement(customElements.getName(WorkspaceManagerWC) ?? 'workspace-manager', { ...rest, ref }, children);
14
14
  });
15
15
 
16
- export const GridRegister = React.forwardRef(function GridRegister(props, ref) {
16
+ export const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
17
17
  const { children, ...rest } = props;
18
- return React.createElement(customElements.getName(GridRegisterWC) ?? 'grid-register', { ...rest, ref }, children);
18
+ return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-register', { ...rest, ref }, children);
19
19
  });
20
20
 
21
- export const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
21
+ export const GridRegister = React.forwardRef(function GridRegister(props, ref) {
22
22
  const { children, ...rest } = props;
23
- return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-register', { ...rest, ref }, children);
23
+ return React.createElement(customElements.getName(GridRegisterWC) ?? 'grid-register', { ...rest, ref }, children);
24
24
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-workspace",
3
3
  "description": "Genesis Foundation Workspace Components and State",
4
- "version": "15.39.0",
4
+ "version": "15.40.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,23 +48,23 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "15.39.0",
52
- "@genesislcap/genx": "15.39.0",
53
- "@genesislcap/rollup-builder": "15.39.0",
54
- "@genesislcap/ts-builder": "15.39.0",
55
- "@genesislcap/uvu-playwright-builder": "15.39.0",
56
- "@genesislcap/vite-builder": "15.39.0",
57
- "@genesislcap/webpack-builder": "15.39.0"
51
+ "@genesislcap/foundation-testing": "15.40.0",
52
+ "@genesislcap/genx": "15.40.0",
53
+ "@genesislcap/rollup-builder": "15.40.0",
54
+ "@genesislcap/ts-builder": "15.40.0",
55
+ "@genesislcap/uvu-playwright-builder": "15.40.0",
56
+ "@genesislcap/vite-builder": "15.40.0",
57
+ "@genesislcap/webpack-builder": "15.40.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "@ag-grid-community/core": "29.2.0",
61
- "@genesislcap/foundation-comms": "15.39.0",
62
- "@genesislcap/foundation-layout": "15.39.0",
63
- "@genesislcap/foundation-notifications": "15.39.0",
64
- "@genesislcap/foundation-ui": "15.39.0",
65
- "@genesislcap/foundation-utils": "15.39.0",
66
- "@genesislcap/grid-pro": "15.39.0",
67
- "@genesislcap/web-core": "15.39.0"
61
+ "@genesislcap/foundation-comms": "15.40.0",
62
+ "@genesislcap/foundation-layout": "15.40.0",
63
+ "@genesislcap/foundation-notifications": "15.40.0",
64
+ "@genesislcap/foundation-ui": "15.40.0",
65
+ "@genesislcap/foundation-utils": "15.40.0",
66
+ "@genesislcap/grid-pro": "15.40.0",
67
+ "@genesislcap/web-core": "15.40.0"
68
68
  },
69
69
  "repository": {
70
70
  "type": "git",