@genesislcap/grid-pro 15.8.0 → 15.8.1-PTC-0.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.
- package/dist/custom-elements.json +1515 -1500
- package/dist/dts/grid-pro-beta.d.ts +3 -1
- package/dist/dts/grid-pro-beta.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts +20 -0
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/react.d.ts +13 -13
- package/dist/esm/grid-pro-beta.js +29 -2
- package/dist/esm/grid-pro.styles.js +30 -0
- package/dist/grid-pro.api.json +24 -0
- package/dist/grid-pro.d.ts +24 -1
- package/dist/react.cjs +9 -9
- package/dist/react.mjs +7 -7
- package/package.json +14 -14
|
@@ -81,7 +81,9 @@ declare const GridProBeta_base: (new (...args: any[]) => {
|
|
|
81
81
|
slot: string;
|
|
82
82
|
readonly tagName: string;
|
|
83
83
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
84
|
-
checkVisibility(options
|
|
84
|
+
checkVisibility(options? /**
|
|
85
|
+
* The key to use for persisting the filter model in local browser or KV storage.
|
|
86
|
+
*/: CheckVisibilityOptions): boolean;
|
|
85
87
|
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
|
|
86
88
|
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
|
|
87
89
|
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAA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gBtC,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA0JnC;IAED,OAAO,CAAC,mBAAmB;IAQ3B;;;OAGG;IACH,qBAAqB;IAIrB,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,QAAQ;IAkBhB;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+GzF,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAe3B,SAAS,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW;IA4BjD,IAAI,kBAAkB,aAWrB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAkBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;CAgBrC"}
|
|
@@ -1,4 +1,24 @@
|
|
|
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;
|
|
2
22
|
/**
|
|
3
23
|
* The Grid Pro styles.
|
|
4
24
|
* @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;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,
|
|
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;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,eAStC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAmErC,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -80,6 +80,15 @@ export declare const GridPro: React.ForwardRefExoticComponent<
|
|
|
80
80
|
>;
|
|
81
81
|
export type GridProRef = GridProWC;
|
|
82
82
|
|
|
83
|
+
export declare const GridProCell: React.ForwardRefExoticComponent<
|
|
84
|
+
React.PropsWithChildren<
|
|
85
|
+
Omit<PublicOf<GridProCellWC>, 'children' | 'style'> &
|
|
86
|
+
HTMLWCProps & {
|
|
87
|
+
}
|
|
88
|
+
> & React.RefAttributes<GridProCellWC>
|
|
89
|
+
>;
|
|
90
|
+
export type GridProCellRef = GridProCellWC;
|
|
91
|
+
|
|
83
92
|
export declare const DateEditor: React.ForwardRefExoticComponent<
|
|
84
93
|
React.PropsWithChildren<
|
|
85
94
|
Omit<PublicOf<DateEditorWC>, 'children' | 'style'> &
|
|
@@ -125,14 +134,14 @@ export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
|
125
134
|
>;
|
|
126
135
|
export type StringEditorRef = StringEditorWC;
|
|
127
136
|
|
|
128
|
-
export declare const
|
|
137
|
+
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
129
138
|
React.PropsWithChildren<
|
|
130
|
-
Omit<PublicOf<
|
|
139
|
+
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
|
131
140
|
HTMLWCProps & {
|
|
132
141
|
}
|
|
133
|
-
> & React.RefAttributes<
|
|
142
|
+
> & React.RefAttributes<GridProColumnWC>
|
|
134
143
|
>;
|
|
135
|
-
export type
|
|
144
|
+
export type GridProColumnRef = GridProColumnWC;
|
|
136
145
|
|
|
137
146
|
export declare const ActionRenderer: React.ForwardRefExoticComponent<
|
|
138
147
|
React.PropsWithChildren<
|
|
@@ -206,15 +215,6 @@ export declare const AgTextRenderer: React.ForwardRefExoticComponent<
|
|
|
206
215
|
>;
|
|
207
216
|
export type AgTextRendererRef = AgTextRendererWC;
|
|
208
217
|
|
|
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'> &
|
|
@@ -52,6 +52,24 @@ const DEBOUNCE_TIME = 400;
|
|
|
52
52
|
const Events = {
|
|
53
53
|
EVENT_GRID_READY: 'gridReady',
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Finds `key`'s accessor among the component's own prototypes.
|
|
57
|
+
* @remarks Own properties are skipped because the caller installs one: `connectedCallback` can run
|
|
58
|
+
* more than once, and starting from the instance would wrap the accessor it defined last time. The
|
|
59
|
+
* walk stops at `HTMLElement` so that a property merely sharing a name with a native one (such as
|
|
60
|
+
* `tabIndex`) is left alone instead of picking up DOM semantics through the caller.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
function findDeclaredAccessor(target, key) {
|
|
64
|
+
let proto = Object.getPrototypeOf(target);
|
|
65
|
+
while (proto && proto !== HTMLElement.prototype) {
|
|
66
|
+
const descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
|
67
|
+
if (descriptor)
|
|
68
|
+
return descriptor;
|
|
69
|
+
proto = Object.getPrototypeOf(proto);
|
|
70
|
+
}
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
55
73
|
/**
|
|
56
74
|
* The Grid Pro element (AG Grid v35 compatible).
|
|
57
75
|
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
@@ -273,11 +291,20 @@ export class GridProBeta extends LifecycleMixin(FoundationElement) {
|
|
|
273
291
|
this.rootEventsListeners.forEach(([eventName, handler]) => {
|
|
274
292
|
this.addEventListener(eventName, handler);
|
|
275
293
|
});
|
|
276
|
-
// Property reflection for AG Grid properties
|
|
294
|
+
// Property reflection for AG Grid properties, so `grid.rowHeight = 40` reaches AG.
|
|
295
|
+
// A few of these keys are also declared on the component as `@attr` (`headerHeight`,
|
|
296
|
+
// `rowHeight`), and FAST installs their accessors on the prototype. This shadows those, so
|
|
297
|
+
// delegate reads and writes to the accessor being covered up — a getter-less own property here
|
|
298
|
+
// would leave the declared attribute unreadable.
|
|
277
299
|
AG_PROPERTIES.forEach((key) => {
|
|
300
|
+
const declared = findDeclaredAccessor(this, key);
|
|
278
301
|
Object.defineProperty(this, key, {
|
|
302
|
+
get: declared === null || declared === void 0 ? void 0 : declared.get,
|
|
279
303
|
set: (v) => {
|
|
280
|
-
|
|
304
|
+
var _a, _b;
|
|
305
|
+
const previous = (_a = declared === null || declared === void 0 ? void 0 : declared.get) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
306
|
+
(_b = declared === null || declared === void 0 ? void 0 : declared.set) === null || _b === void 0 ? void 0 : _b.call(this, v);
|
|
307
|
+
this.agAttributeChangedCallback(convertToKebabCase(key), previous, v);
|
|
281
308
|
},
|
|
282
309
|
enumerable: true,
|
|
283
310
|
configurable: true,
|
|
@@ -1,6 +1,35 @@
|
|
|
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
|
+
`;
|
|
4
33
|
/**
|
|
5
34
|
* The Grid Pro styles.
|
|
6
35
|
* @public
|
|
@@ -9,6 +38,7 @@ import { agExternalStockStyles } from './external';
|
|
|
9
38
|
export const foundationGridProStyles = css `
|
|
10
39
|
${agExternalStockStyles}
|
|
11
40
|
${errorHandlerDialogStyles}
|
|
41
|
+
${agDragGhostShadowDomStyles}
|
|
12
42
|
:host {
|
|
13
43
|
--datasource-error-background-color: var(--neutral-layer-4);
|
|
14
44
|
--datasource-error-background-opacity: 0.5;
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -902,6 +902,30 @@
|
|
|
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
|
+
},
|
|
905
929
|
{
|
|
906
930
|
"kind": "Variable",
|
|
907
931
|
"canonicalReference": "@genesislcap/grid-pro!agEditableRendererStyles:var",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -277,6 +277,27 @@ 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
|
+
|
|
280
301
|
/**
|
|
281
302
|
* The AG Editable Renderer Styles.
|
|
282
303
|
* @public
|
|
@@ -3576,7 +3597,9 @@ declare const GridProBeta_base: (new (...args: any[]) => {
|
|
|
3576
3597
|
slot: string;
|
|
3577
3598
|
readonly tagName: string;
|
|
3578
3599
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
3579
|
-
checkVisibility(options
|
|
3600
|
+
checkVisibility(options? /**
|
|
3601
|
+
* The key to use for persisting the filter model in local browser or KV storage.
|
|
3602
|
+
*/: CheckVisibilityOptions): boolean;
|
|
3580
3603
|
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
|
|
3581
3604
|
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
|
|
3582
3605
|
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
|
package/dist/react.cjs
CHANGED
|
@@ -91,6 +91,11 @@ const GridPro = React.forwardRef(function GridPro(props, ref) {
|
|
|
91
91
|
return React.createElement(customElements.getName(GridProWC) ?? '%%prefix%%-grid-pro', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
const GridProCell = React.forwardRef(function GridProCell(props, ref) {
|
|
95
|
+
const { children, ...rest } = props;
|
|
96
|
+
return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
|
|
97
|
+
});
|
|
98
|
+
|
|
94
99
|
const DateEditor = React.forwardRef(function DateEditor(props, ref) {
|
|
95
100
|
const { children, ...rest } = props;
|
|
96
101
|
return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
|
|
@@ -116,9 +121,9 @@ const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
|
116
121
|
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
117
122
|
});
|
|
118
123
|
|
|
119
|
-
const
|
|
124
|
+
const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
120
125
|
const { children, ...rest } = props;
|
|
121
|
-
return React.createElement(customElements.getName(
|
|
126
|
+
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
122
127
|
});
|
|
123
128
|
|
|
124
129
|
const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
@@ -161,11 +166,6 @@ const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, ref) {
|
|
|
161
166
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
162
167
|
});
|
|
163
168
|
|
|
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);
|
|
@@ -485,12 +485,13 @@ const MulticolumnDropdown = React.forwardRef(function MulticolumnDropdown(props,
|
|
|
485
485
|
module.exports = {
|
|
486
486
|
GridProBeta,
|
|
487
487
|
GridPro,
|
|
488
|
+
GridProCell,
|
|
488
489
|
DateEditor,
|
|
489
490
|
MultiselectEditor,
|
|
490
491
|
NumberEditor,
|
|
491
492
|
SelectEditor,
|
|
492
493
|
StringEditor,
|
|
493
|
-
|
|
494
|
+
GridProColumn,
|
|
494
495
|
ActionRenderer,
|
|
495
496
|
ActionsMenuRenderer,
|
|
496
497
|
BooleanRenderer,
|
|
@@ -499,7 +500,6 @@ module.exports = {
|
|
|
499
500
|
StatusPillRenderer,
|
|
500
501
|
AgTextFieldRenderer,
|
|
501
502
|
AgTextRenderer,
|
|
502
|
-
GridProColumn,
|
|
503
503
|
GridProClientSideDatasource,
|
|
504
504
|
GridProServerSideDatasource,
|
|
505
505
|
GridProGenesisDatasource,
|
package/dist/react.mjs
CHANGED
|
@@ -89,6 +89,11 @@ export const GridPro = React.forwardRef(function GridPro(props, ref) {
|
|
|
89
89
|
return React.createElement(customElements.getName(GridProWC) ?? '%%prefix%%-grid-pro', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
+
export const GridProCell = React.forwardRef(function GridProCell(props, ref) {
|
|
93
|
+
const { children, ...rest } = props;
|
|
94
|
+
return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
|
|
95
|
+
});
|
|
96
|
+
|
|
92
97
|
export const DateEditor = React.forwardRef(function DateEditor(props, ref) {
|
|
93
98
|
const { children, ...rest } = props;
|
|
94
99
|
return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
|
|
@@ -114,9 +119,9 @@ export const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
|
114
119
|
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
115
120
|
});
|
|
116
121
|
|
|
117
|
-
export const
|
|
122
|
+
export const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
118
123
|
const { children, ...rest } = props;
|
|
119
|
-
return React.createElement(customElements.getName(
|
|
124
|
+
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
120
125
|
});
|
|
121
126
|
|
|
122
127
|
export const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
@@ -159,11 +164,6 @@ export const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, re
|
|
|
159
164
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
160
165
|
});
|
|
161
166
|
|
|
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.0",
|
|
4
|
+
"version": "15.8.1-PTC-0.1",
|
|
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.0",
|
|
44
|
-
"@genesislcap/genx": "15.8.0",
|
|
45
|
-
"@genesislcap/rollup-builder": "15.8.0",
|
|
46
|
-
"@genesislcap/ts-builder": "15.8.0",
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "15.8.0",
|
|
48
|
-
"@genesislcap/vite-builder": "15.8.0",
|
|
49
|
-
"@genesislcap/webpack-builder": "15.8.0"
|
|
43
|
+
"@genesislcap/foundation-testing": "15.8.1-PTC-0.1",
|
|
44
|
+
"@genesislcap/genx": "15.8.1-PTC-0.1",
|
|
45
|
+
"@genesislcap/rollup-builder": "15.8.1-PTC-0.1",
|
|
46
|
+
"@genesislcap/ts-builder": "15.8.1-PTC-0.1",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "15.8.1-PTC-0.1",
|
|
48
|
+
"@genesislcap/vite-builder": "15.8.1-PTC-0.1",
|
|
49
|
+
"@genesislcap/webpack-builder": "15.8.1-PTC-0.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "15.8.0",
|
|
53
|
-
"@genesislcap/foundation-criteria": "15.8.0",
|
|
54
|
-
"@genesislcap/foundation-logger": "15.8.0",
|
|
55
|
-
"@genesislcap/foundation-ui": "15.8.0",
|
|
56
|
-
"@genesislcap/foundation-utils": "15.8.0",
|
|
52
|
+
"@genesislcap/foundation-comms": "15.8.1-PTC-0.1",
|
|
53
|
+
"@genesislcap/foundation-criteria": "15.8.1-PTC-0.1",
|
|
54
|
+
"@genesislcap/foundation-logger": "15.8.1-PTC-0.1",
|
|
55
|
+
"@genesislcap/foundation-ui": "15.8.1-PTC-0.1",
|
|
56
|
+
"@genesislcap/foundation-utils": "15.8.1-PTC-0.1",
|
|
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": "d3b158d9e91f31fc6a248b8b75d7c8f8d5589bc6"
|
|
95
95
|
}
|