@genesislcap/rapid-grid-pro 14.481.2-alpha-829ad82.0 → 14.482.1-FUI-2575.1
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.
|
@@ -46,26 +46,10 @@
|
|
|
46
46
|
"module": "src/grid-pro-beta.ts"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
{
|
|
50
|
-
"kind": "field",
|
|
51
|
-
"name": "themeByRowHeight",
|
|
52
|
-
"privacy": "private",
|
|
53
|
-
"static": true,
|
|
54
|
-
"readonly": true,
|
|
55
|
-
"default": "new Map<number, any>()"
|
|
56
|
-
},
|
|
57
49
|
{
|
|
58
50
|
"kind": "method",
|
|
59
51
|
"name": "getCachedTheme",
|
|
60
|
-
"privacy": "private"
|
|
61
|
-
"parameters": [
|
|
62
|
-
{
|
|
63
|
-
"name": "rowHeight",
|
|
64
|
-
"type": {
|
|
65
|
-
"text": "number"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
52
|
+
"privacy": "private"
|
|
69
53
|
},
|
|
70
54
|
{
|
|
71
55
|
"kind": "field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,uBAAuB,CAAC;AAE1E,OAAO,EAAe,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,uBAAuB,CAAC;AAE1E,OAAO,EAAe,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAoB7D;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IACnC,QAAQ,EAAG,GAAG,CAAC;IAE3B,OAAO,CAAC,cAAc;IAuBtB;;;OAGG;IACH,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAuBnC;CACF;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;2BAyB3B,CAAC"}
|
|
@@ -6,17 +6,11 @@ import { RapidNumberEditor, RapidSelectEditor, RapidMultiselectEditor, RapidDate
|
|
|
6
6
|
import { RapidEditableRenderer, RapidAgActionRenderer, RapidAgActionsMenuRenderer, RapidBooleanRenderer, RapidStatusPillRenderer, RapidIconRenderer, RapidAgSelectRenderer, } from './cell-renderers';
|
|
7
7
|
import { rapidDefaultGridProConfig, rapidGridProShadowOptions } from './grid-pro';
|
|
8
8
|
import { rapidGridProTemplate as template } from './grid-pro.template';
|
|
9
|
-
import { deriveHeightsFromTokens } from './style';
|
|
10
|
-
const defaultAgHeight = 32;
|
|
11
9
|
/**
|
|
12
10
|
* @tagname rapid-grid-pro
|
|
13
11
|
*/
|
|
14
12
|
export class RapidGridProBeta extends GridProBeta {
|
|
15
|
-
getCachedTheme(
|
|
16
|
-
const cachedTheme = RapidGridProBeta.themeByRowHeight.get(rowHeight);
|
|
17
|
-
if (cachedTheme) {
|
|
18
|
-
return cachedTheme;
|
|
19
|
-
}
|
|
13
|
+
getCachedTheme() {
|
|
20
14
|
const theme = themeBalham.withParams({
|
|
21
15
|
backgroundColor: 'var(--neutral-layer-card-container)',
|
|
22
16
|
cellHorizontalPadding: 'calc(var(--design-unit) * 2px)',
|
|
@@ -34,9 +28,7 @@ export class RapidGridProBeta extends GridProBeta {
|
|
|
34
28
|
dataFontSize: 'var(--type-ramp-minus-2-font-size)',
|
|
35
29
|
iconButtonColor: 'var(--accent-foreground-rest)',
|
|
36
30
|
iconButtonHoverColor: 'color-mix(in srgb, var(--accent-foreground-rest), var(--ag-foreground-color) 30%)',
|
|
37
|
-
rowHeight,
|
|
38
31
|
});
|
|
39
|
-
RapidGridProBeta.themeByRowHeight.set(rowHeight, theme);
|
|
40
32
|
return theme;
|
|
41
33
|
}
|
|
42
34
|
/**
|
|
@@ -44,16 +36,12 @@ export class RapidGridProBeta extends GridProBeta {
|
|
|
44
36
|
* @override
|
|
45
37
|
*/
|
|
46
38
|
set gridOptions(options) {
|
|
47
|
-
var _a, _b, _c, _d;
|
|
48
39
|
const nextOptions = Object.assign({}, options);
|
|
49
40
|
nextOptions.components = Object.assign({ [GridProRendererTypes.action]: RapidAgActionRenderer, [GridProRendererTypes.actionsMenu]: RapidAgActionsMenuRenderer, [GridProRendererTypes.boolean]: RapidBooleanRenderer, [GridProRendererTypes.editable]: RapidEditableRenderer, [GridProRendererTypes.select]: RapidAgSelectRenderer, [GridProRendererTypes.selectEditor]: RapidSelectEditor, [GridProRendererTypes.numberEditor]: RapidNumberEditor, [GridProRendererTypes.multiselectEditor]: RapidMultiselectEditor, [GridProRendererTypes.dateEditor]: RapidDateEditor, [GridProRendererTypes.stringEditor]: RapidStringEditor, [GridProRendererTypes.statusPill]: RapidStatusPillRenderer, [GridProRendererTypes.icon]: RapidIconRenderer }, nextOptions.components);
|
|
50
|
-
|
|
51
|
-
this.rowHeight = (_d = (_c = nextOptions.rowHeight) !== null && _c !== void 0 ? _c : deriveHeightsFromTokens()) !== null && _d !== void 0 ? _d : defaultAgHeight;
|
|
52
|
-
nextOptions.theme = this.getCachedTheme(this.rowHeight);
|
|
41
|
+
nextOptions.theme = this.getCachedTheme();
|
|
53
42
|
super.gridOptions = nextOptions;
|
|
54
43
|
}
|
|
55
44
|
}
|
|
56
|
-
RapidGridProBeta.themeByRowHeight = new Map();
|
|
57
45
|
__decorate([
|
|
58
46
|
observable
|
|
59
47
|
], RapidGridProBeta.prototype, "provider", void 0);
|
|
@@ -62,16 +50,18 @@ export const rapidGridProBeta = RapidGridProBeta.compose(Object.assign({ baseNam
|
|
|
62
50
|
width: 100%;
|
|
63
51
|
height: 100%;
|
|
64
52
|
}
|
|
65
|
-
.ag-header {
|
|
66
|
-
border-top: var(--ag-header-row-border);
|
|
67
|
-
}
|
|
68
53
|
.ag-body-vertical-scroll-viewport,
|
|
69
54
|
.ag-body-horizontal-scroll-viewport,
|
|
70
55
|
.ag-horizontal-right-spacer:not(.ag-scroller-corner),
|
|
71
56
|
.ag-horizontal-left-spacer:not(.ag-scroller-corner) {
|
|
72
|
-
scrollbar-color: var(--
|
|
57
|
+
scrollbar-color: var(--ag-scrollbar-handle, var(--neutral-layer-1))
|
|
58
|
+
var(--ag-scrollbar-background, var(--neutral-layer-4));
|
|
73
59
|
&:hover {
|
|
74
60
|
scrollbar-color: var(--neutral-fill-rest) var(--neutral-layer-4);
|
|
75
61
|
}
|
|
76
62
|
}
|
|
63
|
+
.ag-body-horizontal-scroll-end-spacer {
|
|
64
|
+
overflow: unset;
|
|
65
|
+
background: var(--ag-scrollbar-background, var(--neutral-layer-4));
|
|
66
|
+
}
|
|
77
67
|
`, shadowOptions: rapidGridProShadowOptions }, rapidDefaultGridProConfig));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/rapid-grid-pro",
|
|
3
3
|
"description": "Genesis Rapid Grid Pro",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.482.1-FUI-2575.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@genesislcap/genx": "14.
|
|
41
|
-
"@genesislcap/rollup-builder": "14.
|
|
42
|
-
"@genesislcap/ts-builder": "14.
|
|
43
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
44
|
-
"@genesislcap/vite-builder": "14.
|
|
45
|
-
"@genesislcap/webpack-builder": "14.
|
|
40
|
+
"@genesislcap/genx": "14.482.1-FUI-2575.1",
|
|
41
|
+
"@genesislcap/rollup-builder": "14.482.1-FUI-2575.1",
|
|
42
|
+
"@genesislcap/ts-builder": "14.482.1-FUI-2575.1",
|
|
43
|
+
"@genesislcap/uvu-playwright-builder": "14.482.1-FUI-2575.1",
|
|
44
|
+
"@genesislcap/vite-builder": "14.482.1-FUI-2575.1",
|
|
45
|
+
"@genesislcap/webpack-builder": "14.482.1-FUI-2575.1"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@genesislcap/foundation-ui": "14.
|
|
49
|
-
"@genesislcap/grid-pro": "14.
|
|
50
|
-
"@genesislcap/rapid-design-system": "14.
|
|
48
|
+
"@genesislcap/foundation-ui": "14.482.1-FUI-2575.1",
|
|
49
|
+
"@genesislcap/grid-pro": "14.482.1-FUI-2575.1",
|
|
50
|
+
"@genesislcap/rapid-design-system": "14.482.1-FUI-2575.1",
|
|
51
51
|
"@microsoft/fast-colors": "5.3.1",
|
|
52
52
|
"@microsoft/fast-components": "2.30.6",
|
|
53
53
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"require": "./dist/react.cjs"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "3a470fbe70930fe2434270fb5ec9b4042005bbb9"
|
|
84
84
|
}
|