@genesislcap/grid-pro 15.30.1 → 15.30.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 +11071 -11071
- package/dist/dts/column-selection/column-selection.d.ts +4 -3
- package/dist/dts/column-selection/column-selection.d.ts.map +1 -1
- package/dist/dts/column-selection/column-selection.styles.d.ts.map +1 -1
- package/dist/dts/react.d.ts +18 -18
- package/dist/esm/column-selection/column-selection.js +11 -9
- package/dist/esm/column-selection/column-selection.styles.js +0 -2
- package/dist/esm/column-selection/column-selection.template.js +1 -1
- package/dist/grid-pro.api.json +31 -31
- package/dist/grid-pro.d.ts +4 -3
- package/dist/react.cjs +12 -12
- package/dist/react.mjs +10 -10
- package/package.json +13 -13
|
@@ -385,7 +385,8 @@ declare const ColumnSelection_base: (new (...args: any[]) => {
|
|
|
385
385
|
* Layout: select-all + search → column list. Ordering via `sort`
|
|
386
386
|
* (`selected-first` default, or `ag-grid`). Checkboxes toggle visibility via
|
|
387
387
|
* `api.setColumnsVisible`; drag handles on hidden rows use AG native DnD onto the grid
|
|
388
|
-
* (`allowDragFromColumnsToolPanel`)
|
|
388
|
+
* (`allowDragFromColumnsToolPanel`) even while search is active; visible-row reorder inside
|
|
389
|
+
* the picker uses HTML5 drag and is disabled during search.
|
|
389
390
|
*
|
|
390
391
|
* @tagname %%prefix%%-column-selection
|
|
391
392
|
*/
|
|
@@ -439,8 +440,8 @@ export declare class ColumnSelection extends ColumnSelection_base {
|
|
|
439
440
|
private set pickerApi(value);
|
|
440
441
|
/** Query root for picker DOM (shadow panel). */
|
|
441
442
|
private get pickerRoot();
|
|
442
|
-
/**
|
|
443
|
-
get
|
|
443
|
+
/** Panel reorder disabled while search filter is active. */
|
|
444
|
+
get canReorderInPanel(): boolean;
|
|
444
445
|
/** Handle is draggable onto the grid (hidden columns, or all when using ag-grid sort). */
|
|
445
446
|
canDragToGrid(item: ColumnPickerItem): boolean;
|
|
446
447
|
/** Columns in the current (search-filtered) picker lists that can be toggled. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-selection.d.ts","sourceRoot":"","sources":["../../../src/column-selection/column-selection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"column-selection.d.ts","sourceRoot":"","sources":["../../../src/column-selection/column-selection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;;;;;;;;kBAmErD,CAAC;;;;;;;;8BAuCgB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA6BhD,CAAC;4IAKyC,CAAC;wFAOvB,CAAC;+IAc5C,CAAN;2FAOqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkDS,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBA6Ef,CAAC;;;;;;;;;;;;;6BAqBW,CAAC;8BAES,CAAC;kBAClB,CAAC;;oBACkB,CAAC;;sBACiB,CAAC;oBAK1D,CAAD;;;;;;;;gDAYkB,CAAC;;;;;;;;;;;;;;;;;;uBA2BV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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gB,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAMhE;;OAEG;IACH,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IASlE;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,WAAW,GAAG,IAAI;IAarE;;OAEG;IACH,SAAS,IAAI,IAAI;IAQjB;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI;IAepD;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI;IAOrD;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAS7C,OAAO,CAAC,sBAAsB;IAK9B;;;OAGG;IACH,OAAO,CAAC,eAAe;CAyBxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;0BAIpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-selection.styles.d.ts","sourceRoot":"","sources":["../../../src/column-selection/column-selection.styles.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"column-selection.styles.d.ts","sourceRoot":"","sources":["../../../src/column-selection/column-selection.styles.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,iDAuMjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,iDAwB5C,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -136,6 +136,15 @@ export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
|
136
136
|
>;
|
|
137
137
|
export type StringEditorRef = StringEditorWC;
|
|
138
138
|
|
|
139
|
+
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
140
|
+
React.PropsWithChildren<
|
|
141
|
+
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
|
142
|
+
HTMLWCProps & {
|
|
143
|
+
}
|
|
144
|
+
> & React.RefAttributes<GridProColumnWC>
|
|
145
|
+
>;
|
|
146
|
+
export type GridProColumnRef = GridProColumnWC;
|
|
147
|
+
|
|
139
148
|
export declare const ActionRenderer: React.ForwardRefExoticComponent<
|
|
140
149
|
React.PropsWithChildren<
|
|
141
150
|
Omit<PublicOf<ActionRendererWC>, 'children' | 'style'> &
|
|
@@ -208,24 +217,6 @@ export declare const AgTextRenderer: React.ForwardRefExoticComponent<
|
|
|
208
217
|
>;
|
|
209
218
|
export type AgTextRendererRef = AgTextRendererWC;
|
|
210
219
|
|
|
211
|
-
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
212
|
-
React.PropsWithChildren<
|
|
213
|
-
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
|
214
|
-
HTMLWCProps & {
|
|
215
|
-
}
|
|
216
|
-
> & React.RefAttributes<GridProColumnWC>
|
|
217
|
-
>;
|
|
218
|
-
export type GridProColumnRef = GridProColumnWC;
|
|
219
|
-
|
|
220
|
-
export declare const ColumnSelection: React.ForwardRefExoticComponent<
|
|
221
|
-
React.PropsWithChildren<
|
|
222
|
-
Omit<PublicOf<ColumnSelectionWC>, 'children' | 'style'> &
|
|
223
|
-
HTMLWCProps & {
|
|
224
|
-
}
|
|
225
|
-
> & React.RefAttributes<ColumnSelectionWC>
|
|
226
|
-
>;
|
|
227
|
-
export type ColumnSelectionRef = ColumnSelectionWC;
|
|
228
|
-
|
|
229
220
|
export declare const GridProClientSideDatasource: React.ForwardRefExoticComponent<
|
|
230
221
|
React.PropsWithChildren<
|
|
231
222
|
Omit<PublicOf<GridProClientSideDatasourceWC>, 'children' | 'style'> &
|
|
@@ -306,6 +297,15 @@ export declare const GridProServerSideDatasource: React.ForwardRefExoticComponen
|
|
|
306
297
|
>;
|
|
307
298
|
export type GridProServerSideDatasourceRef = GridProServerSideDatasourceWC;
|
|
308
299
|
|
|
300
|
+
export declare const ColumnSelection: React.ForwardRefExoticComponent<
|
|
301
|
+
React.PropsWithChildren<
|
|
302
|
+
Omit<PublicOf<ColumnSelectionWC>, 'children' | 'style'> &
|
|
303
|
+
HTMLWCProps & {
|
|
304
|
+
}
|
|
305
|
+
> & React.RefAttributes<ColumnSelectionWC>
|
|
306
|
+
>;
|
|
307
|
+
export type ColumnSelectionRef = ColumnSelectionWC;
|
|
308
|
+
|
|
309
309
|
export declare const GridProGenesisDatasource: React.ForwardRefExoticComponent<
|
|
310
310
|
React.PropsWithChildren<
|
|
311
311
|
Omit<PublicOf<GridProGenesisDatasourceWC>, 'children' | 'style'> &
|
|
@@ -31,7 +31,8 @@ const pickerApiByElement = new WeakMap();
|
|
|
31
31
|
* Layout: select-all + search → column list. Ordering via `sort`
|
|
32
32
|
* (`selected-first` default, or `ag-grid`). Checkboxes toggle visibility via
|
|
33
33
|
* `api.setColumnsVisible`; drag handles on hidden rows use AG native DnD onto the grid
|
|
34
|
-
* (`allowDragFromColumnsToolPanel`)
|
|
34
|
+
* (`allowDragFromColumnsToolPanel`) even while search is active; visible-row reorder inside
|
|
35
|
+
* the picker uses HTML5 drag and is disabled during search.
|
|
35
36
|
*
|
|
36
37
|
* @tagname %%prefix%%-column-selection
|
|
37
38
|
*/
|
|
@@ -98,13 +99,13 @@ export class ColumnSelection extends LifecycleMixin(FoundationElement) {
|
|
|
98
99
|
var _a;
|
|
99
100
|
return (_a = this.panelEl) !== null && _a !== void 0 ? _a : null;
|
|
100
101
|
}
|
|
101
|
-
/**
|
|
102
|
-
get
|
|
102
|
+
/** Panel reorder disabled while search filter is active. */
|
|
103
|
+
get canReorderInPanel() {
|
|
103
104
|
return !this.search.trim();
|
|
104
105
|
}
|
|
105
106
|
/** Handle is draggable onto the grid (hidden columns, or all when using ag-grid sort). */
|
|
106
107
|
canDragToGrid(item) {
|
|
107
|
-
if (
|
|
108
|
+
if (item.lockVisible) {
|
|
108
109
|
return false;
|
|
109
110
|
}
|
|
110
111
|
if (this.resolvedSort === 'ag-grid') {
|
|
@@ -332,7 +333,7 @@ export class ColumnSelection extends LifecycleMixin(FoundationElement) {
|
|
|
332
333
|
}
|
|
333
334
|
this.agDragBindings = [];
|
|
334
335
|
const root = this.pickerRoot;
|
|
335
|
-
if (!this.
|
|
336
|
+
if (!this.pickerApi || !root) {
|
|
336
337
|
return;
|
|
337
338
|
}
|
|
338
339
|
const bridge = this.resolveDragBridge();
|
|
@@ -358,7 +359,8 @@ export class ColumnSelection extends LifecycleMixin(FoundationElement) {
|
|
|
358
359
|
return;
|
|
359
360
|
}
|
|
360
361
|
const dragToGrid = this.canDragToGrid(item);
|
|
361
|
-
const reorderInPanel = this.
|
|
362
|
+
const reorderInPanel = this.canReorderInPanel &&
|
|
363
|
+
this.resolvedSort === 'selected-first' &&
|
|
362
364
|
item.visible &&
|
|
363
365
|
!row.classList.contains('grid-pro-columns-item--unselected');
|
|
364
366
|
if (dragToGrid) {
|
|
@@ -401,7 +403,7 @@ export class ColumnSelection extends LifecycleMixin(FoundationElement) {
|
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
405
|
scheduleDragBridgeRetry(attempt = 0) {
|
|
404
|
-
if (attempt > DRAG_BRIDGE_RETRY_MAX_ATTEMPTS || !this.pickerApi
|
|
406
|
+
if (attempt > DRAG_BRIDGE_RETRY_MAX_ATTEMPTS || !this.pickerApi) {
|
|
405
407
|
return;
|
|
406
408
|
}
|
|
407
409
|
this.dragBridgeRetryId += 1;
|
|
@@ -472,7 +474,7 @@ export class ColumnSelection extends LifecycleMixin(FoundationElement) {
|
|
|
472
474
|
* @internal
|
|
473
475
|
*/
|
|
474
476
|
onDragStart(event, colId, row) {
|
|
475
|
-
if (!this.
|
|
477
|
+
if (!this.canReorderInPanel) {
|
|
476
478
|
event.preventDefault();
|
|
477
479
|
return;
|
|
478
480
|
}
|
|
@@ -499,7 +501,7 @@ export class ColumnSelection extends LifecycleMixin(FoundationElement) {
|
|
|
499
501
|
*/
|
|
500
502
|
onDragOver(event, row) {
|
|
501
503
|
var _a;
|
|
502
|
-
if (!this.
|
|
504
|
+
if (!this.canReorderInPanel) {
|
|
503
505
|
return;
|
|
504
506
|
}
|
|
505
507
|
event.preventDefault();
|
|
@@ -38,11 +38,9 @@ export const columnSelectionStyles = css `
|
|
|
38
38
|
background: var(--neutral-layer-floating, var(--neutral-layer-2, #fff));
|
|
39
39
|
box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
|
|
40
40
|
padding: 0;
|
|
41
|
-
|
|
42
41
|
position-area: block-end span-inline-start;
|
|
43
42
|
position-try-fallbacks: flip-block, flip-inline;
|
|
44
43
|
margin-block-start: calc(var(--design-unit, 4) * 1px);
|
|
45
|
-
|
|
46
44
|
min-width: 200px;
|
|
47
45
|
color: var(--ag-foreground-color, var(--neutral-foreground-rest));
|
|
48
46
|
font-family: var(--ag-font-family, var(--body-font));
|
|
@@ -25,7 +25,7 @@ export const getColumnSelectionTemplate = (prefix = 'foundation') => {
|
|
|
25
25
|
data-test-id="${(x) => `grid-pro-columns-handle-${x.colId}`}"
|
|
26
26
|
aria-hidden="${(x, c) => {
|
|
27
27
|
const panel = c.parent;
|
|
28
|
-
return String(!(panel.
|
|
28
|
+
return String(!(panel.canDragToGrid(x) || (panel.canReorderInPanel && x.visible)));
|
|
29
29
|
}}"
|
|
30
30
|
>
|
|
31
31
|
⋮⋮
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -4039,7 +4039,7 @@
|
|
|
4039
4039
|
{
|
|
4040
4040
|
"kind": "Class",
|
|
4041
4041
|
"canonicalReference": "@genesislcap/grid-pro!ColumnSelection:class",
|
|
4042
|
-
"docComment": "/**\n * Button + popover column picker for Grid Pro (Community).\n *\n * @remarks\n *\n * HTML Element: \\<%%prefix%%-column-selection\\>\n *\n * Provide either `:gridApi` (AG v36) or `:gridHost` (Grid Pro element with `gridApi` / `columnApi`).\n *\n * The panel uses the Popover API (`popover=\"manual\"`) so it paints in the top layer and is not clipped by layout ancestors with `overflow: hidden`. Placement is pure CSS (anchor positioning via `showPopover({ source })` + `position-area`).\n *\n * Layout: select-all + search → column list. Ordering via `sort` (`selected-first` default, or `ag-grid`). Checkboxes toggle visibility via `api.setColumnsVisible`; drag handles on hidden rows use AG native DnD onto the grid (`allowDragFromColumnsToolPanel`); visible
|
|
4042
|
+
"docComment": "/**\n * Button + popover column picker for Grid Pro (Community).\n *\n * @remarks\n *\n * HTML Element: \\<%%prefix%%-column-selection\\>\n *\n * Provide either `:gridApi` (AG v36) or `:gridHost` (Grid Pro element with `gridApi` / `columnApi`).\n *\n * The panel uses the Popover API (`popover=\"manual\"`) so it paints in the top layer and is not clipped by layout ancestors with `overflow: hidden`. Placement is pure CSS (anchor positioning via `showPopover({ source })` + `position-area`).\n *\n * Layout: select-all + search → column list. Ordering via `sort` (`selected-first` default, or `ag-grid`). Checkboxes toggle visibility via `api.setColumnsVisible`; drag handles on hidden rows use AG native DnD onto the grid (`allowDragFromColumnsToolPanel`) even while search is active; visible-row reorder inside the picker uses HTML5 drag and is disabled during search.\n *\n * @tagname\n *\n * %%prefix%%-column-selection\n *\n * @public\n */\n",
|
|
4043
4043
|
"excerptTokens": [
|
|
4044
4044
|
{
|
|
4045
4045
|
"kind": "Content",
|
|
@@ -4061,36 +4061,6 @@
|
|
|
4061
4061
|
"name": "ColumnSelection",
|
|
4062
4062
|
"preserveMemberOrder": false,
|
|
4063
4063
|
"members": [
|
|
4064
|
-
{
|
|
4065
|
-
"kind": "Property",
|
|
4066
|
-
"canonicalReference": "@genesislcap/grid-pro!ColumnSelection#canDrag:member",
|
|
4067
|
-
"docComment": "/**\n * Drag reorder / grid drop disabled while search filter is active.\n */\n",
|
|
4068
|
-
"excerptTokens": [
|
|
4069
|
-
{
|
|
4070
|
-
"kind": "Content",
|
|
4071
|
-
"text": "get canDrag(): "
|
|
4072
|
-
},
|
|
4073
|
-
{
|
|
4074
|
-
"kind": "Content",
|
|
4075
|
-
"text": "boolean"
|
|
4076
|
-
},
|
|
4077
|
-
{
|
|
4078
|
-
"kind": "Content",
|
|
4079
|
-
"text": ";"
|
|
4080
|
-
}
|
|
4081
|
-
],
|
|
4082
|
-
"isReadonly": true,
|
|
4083
|
-
"isOptional": false,
|
|
4084
|
-
"releaseTag": "Public",
|
|
4085
|
-
"name": "canDrag",
|
|
4086
|
-
"propertyTypeTokenRange": {
|
|
4087
|
-
"startIndex": 1,
|
|
4088
|
-
"endIndex": 2
|
|
4089
|
-
},
|
|
4090
|
-
"isStatic": false,
|
|
4091
|
-
"isProtected": false,
|
|
4092
|
-
"isAbstract": false
|
|
4093
|
-
},
|
|
4094
4064
|
{
|
|
4095
4065
|
"kind": "Method",
|
|
4096
4066
|
"canonicalReference": "@genesislcap/grid-pro!ColumnSelection#canDragToGrid:member(1)",
|
|
@@ -4140,6 +4110,36 @@
|
|
|
4140
4110
|
"isAbstract": false,
|
|
4141
4111
|
"name": "canDragToGrid"
|
|
4142
4112
|
},
|
|
4113
|
+
{
|
|
4114
|
+
"kind": "Property",
|
|
4115
|
+
"canonicalReference": "@genesislcap/grid-pro!ColumnSelection#canReorderInPanel:member",
|
|
4116
|
+
"docComment": "/**\n * Panel reorder disabled while search filter is active.\n */\n",
|
|
4117
|
+
"excerptTokens": [
|
|
4118
|
+
{
|
|
4119
|
+
"kind": "Content",
|
|
4120
|
+
"text": "get canReorderInPanel(): "
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"kind": "Content",
|
|
4124
|
+
"text": "boolean"
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
"kind": "Content",
|
|
4128
|
+
"text": ";"
|
|
4129
|
+
}
|
|
4130
|
+
],
|
|
4131
|
+
"isReadonly": true,
|
|
4132
|
+
"isOptional": false,
|
|
4133
|
+
"releaseTag": "Public",
|
|
4134
|
+
"name": "canReorderInPanel",
|
|
4135
|
+
"propertyTypeTokenRange": {
|
|
4136
|
+
"startIndex": 1,
|
|
4137
|
+
"endIndex": 2
|
|
4138
|
+
},
|
|
4139
|
+
"isStatic": false,
|
|
4140
|
+
"isProtected": false,
|
|
4141
|
+
"isAbstract": false
|
|
4142
|
+
},
|
|
4143
4143
|
{
|
|
4144
4144
|
"kind": "Method",
|
|
4145
4145
|
"canonicalReference": "@genesislcap/grid-pro!ColumnSelection#close:member(1)",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -721,7 +721,8 @@ export declare type ColumnPickerSort = 'selected-first' | 'ag-grid';
|
|
|
721
721
|
* Layout: select-all + search → column list. Ordering via `sort`
|
|
722
722
|
* (`selected-first` default, or `ag-grid`). Checkboxes toggle visibility via
|
|
723
723
|
* `api.setColumnsVisible`; drag handles on hidden rows use AG native DnD onto the grid
|
|
724
|
-
* (`allowDragFromColumnsToolPanel`)
|
|
724
|
+
* (`allowDragFromColumnsToolPanel`) even while search is active; visible-row reorder inside
|
|
725
|
+
* the picker uses HTML5 drag and is disabled during search.
|
|
725
726
|
*
|
|
726
727
|
* @tagname %%prefix%%-column-selection
|
|
727
728
|
*/
|
|
@@ -775,8 +776,8 @@ export declare class ColumnSelection extends ColumnSelection_base {
|
|
|
775
776
|
private set pickerApi(value);
|
|
776
777
|
/** Query root for picker DOM (shadow panel). */
|
|
777
778
|
private get pickerRoot();
|
|
778
|
-
/**
|
|
779
|
-
get
|
|
779
|
+
/** Panel reorder disabled while search filter is active. */
|
|
780
|
+
get canReorderInPanel(): boolean;
|
|
780
781
|
/** Handle is draggable onto the grid (hidden columns, or all when using ag-grid sort). */
|
|
781
782
|
canDragToGrid(item: ColumnPickerItem): boolean;
|
|
782
783
|
/** Columns in the current (search-filtered) picker lists that can be toggled. */
|
package/dist/react.cjs
CHANGED
|
@@ -123,6 +123,11 @@ const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
|
123
123
|
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
+
const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
127
|
+
const { children, ...rest } = props;
|
|
128
|
+
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
129
|
+
});
|
|
130
|
+
|
|
126
131
|
const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
127
132
|
const { children, ...rest } = props;
|
|
128
133
|
return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
|
|
@@ -163,16 +168,6 @@ const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, ref) {
|
|
|
163
168
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
164
169
|
});
|
|
165
170
|
|
|
166
|
-
const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
167
|
-
const { children, ...rest } = props;
|
|
168
|
-
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
const ColumnSelection = React.forwardRef(function ColumnSelection(props, ref) {
|
|
172
|
-
const { children, ...rest } = props;
|
|
173
|
-
return React.createElement(customElements.getName(ColumnSelectionWC) ?? '%%prefix%%-column-selection', { ...rest, ref }, children);
|
|
174
|
-
});
|
|
175
|
-
|
|
176
171
|
const GridProClientSideDatasource = React.forwardRef(function GridProClientSideDatasource(props, ref) {
|
|
177
172
|
const { onBaseDatasourceError, onDatasourceError, onBaseDatasourceConnected, onDatasourceLoadingFinished, onDatasourceNoDataAvailable, onDatasourceDataChanged, onDatasourceInitialize, onDatasourceDestroy, onDatasourceDataCleared, onDatasourceSchemaUpdated, onDatasourceFiltersRestored, onDatasourceDataLoaded, onDatasourceLoadingStarted, onDatasourceMoreDataAvailable, onDatasourceReady, onDatasourceInit, onMoreRowsChanged, onDatasourceSizeChanged, children, ...rest } = props;
|
|
178
173
|
const _innerRef = React.useRef(null);
|
|
@@ -474,6 +469,11 @@ const GridProServerSideDatasource = React.forwardRef(function GridProServerSideD
|
|
|
474
469
|
return React.createElement(customElements.getName(GridProServerSideDatasourceWC) ?? 'grid-pro-server-side-datasource', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
475
470
|
});
|
|
476
471
|
|
|
472
|
+
const ColumnSelection = React.forwardRef(function ColumnSelection(props, ref) {
|
|
473
|
+
const { children, ...rest } = props;
|
|
474
|
+
return React.createElement(customElements.getName(ColumnSelectionWC) ?? '%%prefix%%-column-selection', { ...rest, ref }, children);
|
|
475
|
+
});
|
|
476
|
+
|
|
477
477
|
const GridProGenesisDatasource = React.forwardRef(function GridProGenesisDatasource(props, ref) {
|
|
478
478
|
const { onBaseDatasourceError, onDatasourceError, onBaseDatasourceConnected, onDatasourceLoadingFinished, onDatasourceNoDataAvailable, onDatasourceDataChanged, onDatasourceInitialize, onDatasourceDestroy, onDatasourceDataCleared, onDatasourceSchemaUpdated, onDatasourceFiltersRestored, onDatasourceDataLoaded, onDatasourceLoadingStarted, onDatasourceMoreDataAvailable, onDatasourceReady, onDatasourceInit, onMoreRowsChanged, onDatasourceSizeChanged, children, ...rest } = props;
|
|
479
479
|
const _innerRef = React.useRef(null);
|
|
@@ -590,6 +590,7 @@ module.exports = {
|
|
|
590
590
|
NumberEditor,
|
|
591
591
|
SelectEditor,
|
|
592
592
|
StringEditor,
|
|
593
|
+
GridProColumn,
|
|
593
594
|
ActionRenderer,
|
|
594
595
|
ActionsMenuRenderer,
|
|
595
596
|
BooleanRenderer,
|
|
@@ -598,11 +599,10 @@ module.exports = {
|
|
|
598
599
|
StatusPillRenderer,
|
|
599
600
|
AgTextFieldRenderer,
|
|
600
601
|
AgTextRenderer,
|
|
601
|
-
GridProColumn,
|
|
602
|
-
ColumnSelection,
|
|
603
602
|
GridProClientSideDatasource,
|
|
604
603
|
GridProInfiniteDatasource,
|
|
605
604
|
GridProServerSideDatasource,
|
|
605
|
+
ColumnSelection,
|
|
606
606
|
GridProGenesisDatasource,
|
|
607
607
|
MulticolumnDropdown,
|
|
608
608
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -121,6 +121,11 @@ export 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
|
+
export 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
|
+
|
|
124
129
|
export const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
125
130
|
const { children, ...rest } = props;
|
|
126
131
|
return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
|
|
@@ -161,16 +166,6 @@ export const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, re
|
|
|
161
166
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
162
167
|
});
|
|
163
168
|
|
|
164
|
-
export 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
|
-
export const ColumnSelection = React.forwardRef(function ColumnSelection(props, ref) {
|
|
170
|
-
const { children, ...rest } = props;
|
|
171
|
-
return React.createElement(customElements.getName(ColumnSelectionWC) ?? '%%prefix%%-column-selection', { ...rest, ref }, children);
|
|
172
|
-
});
|
|
173
|
-
|
|
174
169
|
export const GridProClientSideDatasource = React.forwardRef(function GridProClientSideDatasource(props, ref) {
|
|
175
170
|
const { onBaseDatasourceError, onDatasourceError, onBaseDatasourceConnected, onDatasourceLoadingFinished, onDatasourceNoDataAvailable, onDatasourceDataChanged, onDatasourceInitialize, onDatasourceDestroy, onDatasourceDataCleared, onDatasourceSchemaUpdated, onDatasourceFiltersRestored, onDatasourceDataLoaded, onDatasourceLoadingStarted, onDatasourceMoreDataAvailable, onDatasourceReady, onDatasourceInit, onMoreRowsChanged, onDatasourceSizeChanged, children, ...rest } = props;
|
|
176
171
|
const _innerRef = React.useRef(null);
|
|
@@ -472,6 +467,11 @@ export const GridProServerSideDatasource = React.forwardRef(function GridProServ
|
|
|
472
467
|
return React.createElement(customElements.getName(GridProServerSideDatasourceWC) ?? 'grid-pro-server-side-datasource', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
473
468
|
});
|
|
474
469
|
|
|
470
|
+
export const ColumnSelection = React.forwardRef(function ColumnSelection(props, ref) {
|
|
471
|
+
const { children, ...rest } = props;
|
|
472
|
+
return React.createElement(customElements.getName(ColumnSelectionWC) ?? '%%prefix%%-column-selection', { ...rest, ref }, children);
|
|
473
|
+
});
|
|
474
|
+
|
|
475
475
|
export const GridProGenesisDatasource = React.forwardRef(function GridProGenesisDatasource(props, ref) {
|
|
476
476
|
const { onBaseDatasourceError, onDatasourceError, onBaseDatasourceConnected, onDatasourceLoadingFinished, onDatasourceNoDataAvailable, onDatasourceDataChanged, onDatasourceInitialize, onDatasourceDestroy, onDatasourceDataCleared, onDatasourceSchemaUpdated, onDatasourceFiltersRestored, onDatasourceDataLoaded, onDatasourceLoadingStarted, onDatasourceMoreDataAvailable, onDatasourceReady, onDatasourceInit, onMoreRowsChanged, onDatasourceSizeChanged, children, ...rest } = props;
|
|
477
477
|
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.30.
|
|
4
|
+
"version": "15.30.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.30.
|
|
44
|
-
"@genesislcap/genx": "15.30.
|
|
45
|
-
"@genesislcap/rollup-builder": "15.30.
|
|
46
|
-
"@genesislcap/ts-builder": "15.30.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "15.30.
|
|
48
|
-
"@genesislcap/vite-builder": "15.30.
|
|
49
|
-
"@genesislcap/webpack-builder": "15.30.
|
|
43
|
+
"@genesislcap/foundation-testing": "15.30.2",
|
|
44
|
+
"@genesislcap/genx": "15.30.2",
|
|
45
|
+
"@genesislcap/rollup-builder": "15.30.2",
|
|
46
|
+
"@genesislcap/ts-builder": "15.30.2",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "15.30.2",
|
|
48
|
+
"@genesislcap/vite-builder": "15.30.2",
|
|
49
|
+
"@genesislcap/webpack-builder": "15.30.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "15.30.
|
|
53
|
-
"@genesislcap/foundation-criteria": "15.30.
|
|
54
|
-
"@genesislcap/foundation-logger": "15.30.
|
|
55
|
-
"@genesislcap/foundation-ui": "15.30.
|
|
56
|
-
"@genesislcap/foundation-utils": "15.30.
|
|
52
|
+
"@genesislcap/foundation-comms": "15.30.2",
|
|
53
|
+
"@genesislcap/foundation-criteria": "15.30.2",
|
|
54
|
+
"@genesislcap/foundation-logger": "15.30.2",
|
|
55
|
+
"@genesislcap/foundation-ui": "15.30.2",
|
|
56
|
+
"@genesislcap/foundation-utils": "15.30.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",
|