@genesislcap/grid-pro 15.8.1-PTC-0.1 → 15.8.2
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 +1145 -1160
- package/dist/dts/grid-pro.styles.d.ts +0 -20
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/react.d.ts +9 -9
- package/dist/esm/grid-pro.styles.js +0 -30
- package/dist/grid-pro.api.json +0 -24
- package/dist/grid-pro.d.ts +0 -21
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +5 -5
- package/package.json +14 -14
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
import type { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
/**
|
|
3
|
-
* Workaround for an AG Grid (v36, still present in v36.1.0) drag-ghost positioning bug in
|
|
4
|
-
* shadow DOM. The row-drag "N rows" ghost is appended to the grid's containing shadow root
|
|
5
|
-
* (AG's \`_getPageBody\` finds no \`<body>\` there) inside \`.ag-styled-root\` wrappers that are
|
|
6
|
-
* \`display: contents\`, so the ghost's positioning formula
|
|
7
|
-
* (\`clientY - offsetParentRect.top - height / 2\`) resolves against whatever ancestor of the
|
|
8
|
-
* shadow host happens to be its containing block. Whenever the element \`offsetParent\`
|
|
9
|
-
* reports differs from the real containing block (inline host fragments, scrolled panes,
|
|
10
|
-
* app-level transforms), the ghost renders at a constant offset from the cursor.
|
|
11
|
-
* \`popupParent\` does not help — the ghost code path never consults it.
|
|
12
|
-
*
|
|
13
|
-
* Giving the ghost's direct wrapper a real, positioned, zero-size box makes it both the
|
|
14
|
-
* reported \`offsetParent\` and the actual containing block, so AG's formula is exact —
|
|
15
|
-
* verified to match AG's healthy document-\`body\` code path pixel-for-pixel. Scoped with
|
|
16
|
-
* \`:has(> .ag-dnd-ghost)\` so the popup subsystem's \`.ag-styled-root\` wrappers keep their
|
|
17
|
-
* stock \`display: contents\`.
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export declare const agDragGhostShadowDomStyles: ElementStyles;
|
|
22
2
|
/**
|
|
23
3
|
* The Grid Pro styles.
|
|
24
4
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.styles.d.ts","sourceRoot":"","sources":["../../src/grid-pro.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK7D
|
|
1
|
+
{"version":3,"file":"grid-pro.styles.d.ts","sourceRoot":"","sources":["../../src/grid-pro.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK7D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAkErC,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -134,15 +134,6 @@ export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
|
134
134
|
>;
|
|
135
135
|
export type StringEditorRef = StringEditorWC;
|
|
136
136
|
|
|
137
|
-
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
138
|
-
React.PropsWithChildren<
|
|
139
|
-
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
|
140
|
-
HTMLWCProps & {
|
|
141
|
-
}
|
|
142
|
-
> & React.RefAttributes<GridProColumnWC>
|
|
143
|
-
>;
|
|
144
|
-
export type GridProColumnRef = GridProColumnWC;
|
|
145
|
-
|
|
146
137
|
export declare const ActionRenderer: React.ForwardRefExoticComponent<
|
|
147
138
|
React.PropsWithChildren<
|
|
148
139
|
Omit<PublicOf<ActionRendererWC>, 'children' | 'style'> &
|
|
@@ -215,6 +206,15 @@ export declare const AgTextRenderer: React.ForwardRefExoticComponent<
|
|
|
215
206
|
>;
|
|
216
207
|
export type AgTextRendererRef = AgTextRendererWC;
|
|
217
208
|
|
|
209
|
+
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
210
|
+
React.PropsWithChildren<
|
|
211
|
+
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
|
212
|
+
HTMLWCProps & {
|
|
213
|
+
}
|
|
214
|
+
> & React.RefAttributes<GridProColumnWC>
|
|
215
|
+
>;
|
|
216
|
+
export type GridProColumnRef = GridProColumnWC;
|
|
217
|
+
|
|
218
218
|
export declare const GridProClientSideDatasource: React.ForwardRefExoticComponent<
|
|
219
219
|
React.PropsWithChildren<
|
|
220
220
|
Omit<PublicOf<GridProClientSideDatasourceWC>, 'children' | 'style'> &
|
|
@@ -1,35 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { errorHandlerDialogStyles } from './datasource/error-handler.dialog';
|
|
3
3
|
import { agExternalStockStyles } from './external';
|
|
4
|
-
/**
|
|
5
|
-
* Workaround for an AG Grid (v36, still present in v36.1.0) drag-ghost positioning bug in
|
|
6
|
-
* shadow DOM. The row-drag "N rows" ghost is appended to the grid's containing shadow root
|
|
7
|
-
* (AG's \`_getPageBody\` finds no \`<body>\` there) inside \`.ag-styled-root\` wrappers that are
|
|
8
|
-
* \`display: contents\`, so the ghost's positioning formula
|
|
9
|
-
* (\`clientY - offsetParentRect.top - height / 2\`) resolves against whatever ancestor of the
|
|
10
|
-
* shadow host happens to be its containing block. Whenever the element \`offsetParent\`
|
|
11
|
-
* reports differs from the real containing block (inline host fragments, scrolled panes,
|
|
12
|
-
* app-level transforms), the ghost renders at a constant offset from the cursor.
|
|
13
|
-
* \`popupParent\` does not help — the ghost code path never consults it.
|
|
14
|
-
*
|
|
15
|
-
* Giving the ghost's direct wrapper a real, positioned, zero-size box makes it both the
|
|
16
|
-
* reported \`offsetParent\` and the actual containing block, so AG's formula is exact —
|
|
17
|
-
* verified to match AG's healthy document-\`body\` code path pixel-for-pixel. Scoped with
|
|
18
|
-
* \`:has(> .ag-dnd-ghost)\` so the popup subsystem's \`.ag-styled-root\` wrappers keep their
|
|
19
|
-
* stock \`display: contents\`.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export const agDragGhostShadowDomStyles = css `
|
|
24
|
-
.ag-styled-root:has(> .ag-dnd-ghost) {
|
|
25
|
-
display: block;
|
|
26
|
-
position: fixed;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
width: 0;
|
|
30
|
-
height: 0;
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
4
|
/**
|
|
34
5
|
* The Grid Pro styles.
|
|
35
6
|
* @public
|
|
@@ -38,7 +9,6 @@ export const agDragGhostShadowDomStyles = css `
|
|
|
38
9
|
export const foundationGridProStyles = css `
|
|
39
10
|
${agExternalStockStyles}
|
|
40
11
|
${errorHandlerDialogStyles}
|
|
41
|
-
${agDragGhostShadowDomStyles}
|
|
42
12
|
:host {
|
|
43
13
|
--datasource-error-background-color: var(--neutral-layer-4);
|
|
44
14
|
--datasource-error-background-opacity: 0.5;
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -902,30 +902,6 @@
|
|
|
902
902
|
"endIndex": 3
|
|
903
903
|
}
|
|
904
904
|
},
|
|
905
|
-
{
|
|
906
|
-
"kind": "Variable",
|
|
907
|
-
"canonicalReference": "@genesislcap/grid-pro!agDragGhostShadowDomStyles:var",
|
|
908
|
-
"docComment": "/**\n * Workaround for an AG Grid (v36, still present in v36.1.0) drag-ghost positioning bug in shadow DOM. The row-drag \"N rows\" ghost is appended to the grid's containing shadow root (AG's \\`_getPageBody\\` finds no \\`<body>\\` there) inside \\`.ag-styled-root\\` wrappers that are \\`display: contents\\`, so the ghost's positioning formula (\\`clientY - offsetParentRect.top - height / 2\\`) resolves against whatever ancestor of the shadow host happens to be its containing block. Whenever the element \\`offsetParent\\` reports differs from the real containing block (inline host fragments, scrolled panes, app-level transforms), the ghost renders at a constant offset from the cursor. \\`popupParent\\` does not help — the ghost code path never consults it.\n *\n * Giving the ghost's direct wrapper a real, positioned, zero-size box makes it both the reported \\`offsetParent\\` and the actual containing block, so AG's formula is exact — verified to match AG's healthy document-\\`body\\` code path pixel-for-pixel. Scoped with \\`:has(> .ag-dnd-ghost)\\` so the popup subsystem's \\`.ag-styled-root\\` wrappers keep their stock \\`display: contents\\`.\n *\n * @public\n */\n",
|
|
909
|
-
"excerptTokens": [
|
|
910
|
-
{
|
|
911
|
-
"kind": "Content",
|
|
912
|
-
"text": "agDragGhostShadowDomStyles: "
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"kind": "Reference",
|
|
916
|
-
"text": "ElementStyles",
|
|
917
|
-
"canonicalReference": "@microsoft/fast-element!ElementStyles:class"
|
|
918
|
-
}
|
|
919
|
-
],
|
|
920
|
-
"fileUrlPath": "src/grid-pro.styles.ts",
|
|
921
|
-
"isReadonly": true,
|
|
922
|
-
"releaseTag": "Public",
|
|
923
|
-
"name": "agDragGhostShadowDomStyles",
|
|
924
|
-
"variableTypeTokenRange": {
|
|
925
|
-
"startIndex": 1,
|
|
926
|
-
"endIndex": 2
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
905
|
{
|
|
930
906
|
"kind": "Variable",
|
|
931
907
|
"canonicalReference": "@genesislcap/grid-pro!agEditableRendererStyles:var",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -277,27 +277,6 @@ export declare const agBooleanRendererStyles: ElementStyles;
|
|
|
277
277
|
*/
|
|
278
278
|
export declare const agDateEditorStyles: ElementStyles;
|
|
279
279
|
|
|
280
|
-
/**
|
|
281
|
-
* Workaround for an AG Grid (v36, still present in v36.1.0) drag-ghost positioning bug in
|
|
282
|
-
* shadow DOM. The row-drag "N rows" ghost is appended to the grid's containing shadow root
|
|
283
|
-
* (AG's \`_getPageBody\` finds no \`<body>\` there) inside \`.ag-styled-root\` wrappers that are
|
|
284
|
-
* \`display: contents\`, so the ghost's positioning formula
|
|
285
|
-
* (\`clientY - offsetParentRect.top - height / 2\`) resolves against whatever ancestor of the
|
|
286
|
-
* shadow host happens to be its containing block. Whenever the element \`offsetParent\`
|
|
287
|
-
* reports differs from the real containing block (inline host fragments, scrolled panes,
|
|
288
|
-
* app-level transforms), the ghost renders at a constant offset from the cursor.
|
|
289
|
-
* \`popupParent\` does not help — the ghost code path never consults it.
|
|
290
|
-
*
|
|
291
|
-
* Giving the ghost's direct wrapper a real, positioned, zero-size box makes it both the
|
|
292
|
-
* reported \`offsetParent\` and the actual containing block, so AG's formula is exact —
|
|
293
|
-
* verified to match AG's healthy document-\`body\` code path pixel-for-pixel. Scoped with
|
|
294
|
-
* \`:has(> .ag-dnd-ghost)\` so the popup subsystem's \`.ag-styled-root\` wrappers keep their
|
|
295
|
-
* stock \`display: contents\`.
|
|
296
|
-
*
|
|
297
|
-
* @public
|
|
298
|
-
*/
|
|
299
|
-
export declare const agDragGhostShadowDomStyles: ElementStyles;
|
|
300
|
-
|
|
301
280
|
/**
|
|
302
281
|
* The AG Editable Renderer Styles.
|
|
303
282
|
* @public
|
package/dist/react.cjs
CHANGED
|
@@ -121,11 +121,6 @@ const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
|
121
121
|
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
125
|
-
const { children, ...rest } = props;
|
|
126
|
-
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
124
|
const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
130
125
|
const { children, ...rest } = props;
|
|
131
126
|
return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
|
|
@@ -166,6 +161,11 @@ const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, ref) {
|
|
|
166
161
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
167
162
|
});
|
|
168
163
|
|
|
164
|
+
const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
165
|
+
const { children, ...rest } = props;
|
|
166
|
+
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
169
|
const GridProClientSideDatasource = React.forwardRef(function GridProClientSideDatasource(props, ref) {
|
|
170
170
|
const { onBaseDatasourceError, onDatasourceError, onBaseDatasourceConnected, onDatasourceLoadingFinished, onDatasourceNoDataAvailable, onDatasourceDataChanged, onDatasourceInitialize, onDatasourceDestroy, onDatasourceDataCleared, onDatasourceSchemaUpdated, onDatasourceFiltersRestored, onDatasourceDataLoaded, onDatasourceLoadingStarted, onDatasourceMoreDataAvailable, onDatasourceReady, onDatasourceInit, onMoreRowsChanged, onDatasourceSizeChanged, children, ...rest } = props;
|
|
171
171
|
const _innerRef = React.useRef(null);
|
|
@@ -491,7 +491,6 @@ module.exports = {
|
|
|
491
491
|
NumberEditor,
|
|
492
492
|
SelectEditor,
|
|
493
493
|
StringEditor,
|
|
494
|
-
GridProColumn,
|
|
495
494
|
ActionRenderer,
|
|
496
495
|
ActionsMenuRenderer,
|
|
497
496
|
BooleanRenderer,
|
|
@@ -500,6 +499,7 @@ module.exports = {
|
|
|
500
499
|
StatusPillRenderer,
|
|
501
500
|
AgTextFieldRenderer,
|
|
502
501
|
AgTextRenderer,
|
|
502
|
+
GridProColumn,
|
|
503
503
|
GridProClientSideDatasource,
|
|
504
504
|
GridProServerSideDatasource,
|
|
505
505
|
GridProGenesisDatasource,
|
package/dist/react.mjs
CHANGED
|
@@ -119,11 +119,6 @@ export const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
|
119
119
|
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
export const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
123
|
-
const { children, ...rest } = props;
|
|
124
|
-
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
125
|
-
});
|
|
126
|
-
|
|
127
122
|
export const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
128
123
|
const { children, ...rest } = props;
|
|
129
124
|
return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
|
|
@@ -164,6 +159,11 @@ export const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, re
|
|
|
164
159
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
165
160
|
});
|
|
166
161
|
|
|
162
|
+
export const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
163
|
+
const { children, ...rest } = props;
|
|
164
|
+
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
165
|
+
});
|
|
166
|
+
|
|
167
167
|
export const GridProClientSideDatasource = React.forwardRef(function GridProClientSideDatasource(props, ref) {
|
|
168
168
|
const { onBaseDatasourceError, onDatasourceError, onBaseDatasourceConnected, onDatasourceLoadingFinished, onDatasourceNoDataAvailable, onDatasourceDataChanged, onDatasourceInitialize, onDatasourceDestroy, onDatasourceDataCleared, onDatasourceSchemaUpdated, onDatasourceFiltersRestored, onDatasourceDataLoaded, onDatasourceLoadingStarted, onDatasourceMoreDataAvailable, onDatasourceReady, onDatasourceInit, onMoreRowsChanged, onDatasourceSizeChanged, children, ...rest } = props;
|
|
169
169
|
const _innerRef = React.useRef(null);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-pro",
|
|
3
3
|
"description": "Genesis Foundation AG Grid",
|
|
4
|
-
"version": "15.8.
|
|
4
|
+
"version": "15.8.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "15.8.
|
|
44
|
-
"@genesislcap/genx": "15.8.
|
|
45
|
-
"@genesislcap/rollup-builder": "15.8.
|
|
46
|
-
"@genesislcap/ts-builder": "15.8.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "15.8.
|
|
48
|
-
"@genesislcap/vite-builder": "15.8.
|
|
49
|
-
"@genesislcap/webpack-builder": "15.8.
|
|
43
|
+
"@genesislcap/foundation-testing": "15.8.2",
|
|
44
|
+
"@genesislcap/genx": "15.8.2",
|
|
45
|
+
"@genesislcap/rollup-builder": "15.8.2",
|
|
46
|
+
"@genesislcap/ts-builder": "15.8.2",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "15.8.2",
|
|
48
|
+
"@genesislcap/vite-builder": "15.8.2",
|
|
49
|
+
"@genesislcap/webpack-builder": "15.8.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "15.8.
|
|
53
|
-
"@genesislcap/foundation-criteria": "15.8.
|
|
54
|
-
"@genesislcap/foundation-logger": "15.8.
|
|
55
|
-
"@genesislcap/foundation-ui": "15.8.
|
|
56
|
-
"@genesislcap/foundation-utils": "15.8.
|
|
52
|
+
"@genesislcap/foundation-comms": "15.8.2",
|
|
53
|
+
"@genesislcap/foundation-criteria": "15.8.2",
|
|
54
|
+
"@genesislcap/foundation-logger": "15.8.2",
|
|
55
|
+
"@genesislcap/foundation-ui": "15.8.2",
|
|
56
|
+
"@genesislcap/foundation-utils": "15.8.2",
|
|
57
57
|
"@microsoft/fast-colors": "5.3.1",
|
|
58
58
|
"@microsoft/fast-components": "2.30.6",
|
|
59
59
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"require": "./dist/react.cjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "c62567e4acee7219798579d18a023be909bdd0a0"
|
|
95
95
|
}
|