@genesislcap/grid-pro 15.79.0 → 15.79.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 +1091 -1091
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/react.d.ts +45 -45
- package/dist/esm/grid-pro.js +80 -17
- package/dist/react.cjs +30 -30
- package/dist/react.mjs +25 -25
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,oBAAoB,EACpB,MAAM,EACN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAAU,EAEV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,oBAAoB,EACpB,MAAM,EACN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAAU,EAEV,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAwD3B,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAuB,KAAK,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAMhG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAkCrE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL,iBAAiB,EAE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AAS,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW;IAQjD,IAAI,kBAAkB,aAWrB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B;IAMlC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAgCvB,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;CAgBrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAwC5B,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -92,6 +92,51 @@ export declare const GridProCell: React.ForwardRefExoticComponent<
|
|
|
92
92
|
>;
|
|
93
93
|
export type GridProCellRef = GridProCellWC;
|
|
94
94
|
|
|
95
|
+
export declare const DateEditor: React.ForwardRefExoticComponent<
|
|
96
|
+
React.PropsWithChildren<
|
|
97
|
+
Omit<PublicOf<DateEditorWC>, 'children' | 'style'> &
|
|
98
|
+
HTMLWCProps & {
|
|
99
|
+
}
|
|
100
|
+
> & React.RefAttributes<DateEditorWC>
|
|
101
|
+
>;
|
|
102
|
+
export type DateEditorRef = DateEditorWC;
|
|
103
|
+
|
|
104
|
+
export declare const MultiselectEditor: React.ForwardRefExoticComponent<
|
|
105
|
+
React.PropsWithChildren<
|
|
106
|
+
Omit<PublicOf<MultiselectEditorWC>, 'children' | 'style'> &
|
|
107
|
+
HTMLWCProps & {
|
|
108
|
+
}
|
|
109
|
+
> & React.RefAttributes<MultiselectEditorWC>
|
|
110
|
+
>;
|
|
111
|
+
export type MultiselectEditorRef = MultiselectEditorWC;
|
|
112
|
+
|
|
113
|
+
export declare const NumberEditor: React.ForwardRefExoticComponent<
|
|
114
|
+
React.PropsWithChildren<
|
|
115
|
+
Omit<PublicOf<NumberEditorWC>, 'children' | 'style'> &
|
|
116
|
+
HTMLWCProps & {
|
|
117
|
+
}
|
|
118
|
+
> & React.RefAttributes<NumberEditorWC>
|
|
119
|
+
>;
|
|
120
|
+
export type NumberEditorRef = NumberEditorWC;
|
|
121
|
+
|
|
122
|
+
export declare const SelectEditor: React.ForwardRefExoticComponent<
|
|
123
|
+
React.PropsWithChildren<
|
|
124
|
+
Omit<PublicOf<SelectEditorWC>, 'children' | 'style'> &
|
|
125
|
+
HTMLWCProps & {
|
|
126
|
+
}
|
|
127
|
+
> & React.RefAttributes<SelectEditorWC>
|
|
128
|
+
>;
|
|
129
|
+
export type SelectEditorRef = SelectEditorWC;
|
|
130
|
+
|
|
131
|
+
export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
132
|
+
React.PropsWithChildren<
|
|
133
|
+
Omit<PublicOf<StringEditorWC>, 'children' | 'style'> &
|
|
134
|
+
HTMLWCProps & {
|
|
135
|
+
}
|
|
136
|
+
> & React.RefAttributes<StringEditorWC>
|
|
137
|
+
>;
|
|
138
|
+
export type StringEditorRef = StringEditorWC;
|
|
139
|
+
|
|
95
140
|
export declare const ActionRenderer: React.ForwardRefExoticComponent<
|
|
96
141
|
React.PropsWithChildren<
|
|
97
142
|
Omit<PublicOf<ActionRendererWC>, 'children' | 'style'> &
|
|
@@ -164,51 +209,6 @@ export declare const AgTextRenderer: React.ForwardRefExoticComponent<
|
|
|
164
209
|
>;
|
|
165
210
|
export type AgTextRendererRef = AgTextRendererWC;
|
|
166
211
|
|
|
167
|
-
export declare const DateEditor: React.ForwardRefExoticComponent<
|
|
168
|
-
React.PropsWithChildren<
|
|
169
|
-
Omit<PublicOf<DateEditorWC>, 'children' | 'style'> &
|
|
170
|
-
HTMLWCProps & {
|
|
171
|
-
}
|
|
172
|
-
> & React.RefAttributes<DateEditorWC>
|
|
173
|
-
>;
|
|
174
|
-
export type DateEditorRef = DateEditorWC;
|
|
175
|
-
|
|
176
|
-
export declare const MultiselectEditor: React.ForwardRefExoticComponent<
|
|
177
|
-
React.PropsWithChildren<
|
|
178
|
-
Omit<PublicOf<MultiselectEditorWC>, 'children' | 'style'> &
|
|
179
|
-
HTMLWCProps & {
|
|
180
|
-
}
|
|
181
|
-
> & React.RefAttributes<MultiselectEditorWC>
|
|
182
|
-
>;
|
|
183
|
-
export type MultiselectEditorRef = MultiselectEditorWC;
|
|
184
|
-
|
|
185
|
-
export declare const NumberEditor: React.ForwardRefExoticComponent<
|
|
186
|
-
React.PropsWithChildren<
|
|
187
|
-
Omit<PublicOf<NumberEditorWC>, 'children' | 'style'> &
|
|
188
|
-
HTMLWCProps & {
|
|
189
|
-
}
|
|
190
|
-
> & React.RefAttributes<NumberEditorWC>
|
|
191
|
-
>;
|
|
192
|
-
export type NumberEditorRef = NumberEditorWC;
|
|
193
|
-
|
|
194
|
-
export declare const SelectEditor: React.ForwardRefExoticComponent<
|
|
195
|
-
React.PropsWithChildren<
|
|
196
|
-
Omit<PublicOf<SelectEditorWC>, 'children' | 'style'> &
|
|
197
|
-
HTMLWCProps & {
|
|
198
|
-
}
|
|
199
|
-
> & React.RefAttributes<SelectEditorWC>
|
|
200
|
-
>;
|
|
201
|
-
export type SelectEditorRef = SelectEditorWC;
|
|
202
|
-
|
|
203
|
-
export declare const StringEditor: React.ForwardRefExoticComponent<
|
|
204
|
-
React.PropsWithChildren<
|
|
205
|
-
Omit<PublicOf<StringEditorWC>, 'children' | 'style'> &
|
|
206
|
-
HTMLWCProps & {
|
|
207
|
-
}
|
|
208
|
-
> & React.RefAttributes<StringEditorWC>
|
|
209
|
-
>;
|
|
210
|
-
export type StringEditorRef = StringEditorWC;
|
|
211
|
-
|
|
212
212
|
export declare const GridProColumn: React.ForwardRefExoticComponent<
|
|
213
213
|
React.PropsWithChildren<
|
|
214
214
|
Omit<PublicOf<GridProColumnWC>, 'children' | 'style'> &
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -87,6 +87,76 @@ function findDeclaredAccessor(target, key) {
|
|
|
87
87
|
}
|
|
88
88
|
return undefined;
|
|
89
89
|
}
|
|
90
|
+
/** `tooltip` callbacks grid-pro injected, so re-merging the same column does not wrap them again. */
|
|
91
|
+
const errorTooltipCallbacks = new WeakSet();
|
|
92
|
+
/** What AG Grid shows for `tooltip: true`: the formatted cell value, else the raw one. */
|
|
93
|
+
const showDisplayedValue = (params) => { var _a; return (_a = params.valueFormatted) !== null && _a !== void 0 ? _a : params.value; };
|
|
94
|
+
/** Reads a dot-separated path (e.g. `trade.counterparty`) from an object, `undefined` if missing. */
|
|
95
|
+
const getValueAtPath = (data, path) => path.split('.').reduce((value, key) => value === null || value === void 0 ? void 0 : value[key], data);
|
|
96
|
+
/**
|
|
97
|
+
* The column's own cell tooltip content as one callback, following AG Grid's precedence:
|
|
98
|
+
* `tooltip`, then `tooltipField`, then `tooltipValueGetter`.
|
|
99
|
+
* @remarks `tooltipField` is read straight from row data (dot paths included), falling back to
|
|
100
|
+
* `tooltipValueGetter` when the row has no data, like AG Grid; AG Grid's group aggregate and pending
|
|
101
|
+
* batch-edit lookups for it are not reproduced.
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
function getOwnCellTooltip(colDef) {
|
|
105
|
+
const { tooltip, tooltipField, tooltipValueGetter } = colDef;
|
|
106
|
+
if (typeof tooltip === 'function')
|
|
107
|
+
return tooltip;
|
|
108
|
+
if (tooltip === true)
|
|
109
|
+
return showDisplayedValue;
|
|
110
|
+
if (typeof tooltip === 'string')
|
|
111
|
+
return () => tooltip;
|
|
112
|
+
if (tooltipField) {
|
|
113
|
+
const readTooltipField = (params) => params.data == null
|
|
114
|
+
? tooltipValueGetter === null || tooltipValueGetter === void 0 ? void 0 : tooltipValueGetter(params)
|
|
115
|
+
: getValueAtPath(params.data, tooltipField);
|
|
116
|
+
return readTooltipField;
|
|
117
|
+
}
|
|
118
|
+
return tooltipValueGetter;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Shows the inline-edit error of an editable column in `ErrorTooltip`, while every other cell keeps
|
|
122
|
+
* the column's own tooltip content and component.
|
|
123
|
+
* @remarks `tooltip: false` turns the column's tooltip off on purpose, so it is left untouched.
|
|
124
|
+
* The content goes into `tooltip`, which replaces `tooltipValueGetter` (deprecated in AG Grid 36.2)
|
|
125
|
+
* and takes precedence over `tooltipField`, so the column's own content is resolved inside it.
|
|
126
|
+
* `ErrorTooltip` is picked via `tooltipComponentSelector`, whose result wins over
|
|
127
|
+
* `tooltipComponent`; returning nothing falls back to it.
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
function composeErrorTooltip(colDef, field) {
|
|
131
|
+
if (colDef.tooltip === false ||
|
|
132
|
+
errorTooltipCallbacks.has(colDef.tooltip)) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const ownTooltip = getOwnCellTooltip(colDef);
|
|
136
|
+
const ownComponentSelector = colDef.tooltipComponentSelector;
|
|
137
|
+
const getError = (data) => {
|
|
138
|
+
const error = data === null || data === void 0 ? void 0 : data[ERROR_COLUMN_FIELD];
|
|
139
|
+
return (error === null || error === void 0 ? void 0 : error.column) === field ? error : undefined;
|
|
140
|
+
};
|
|
141
|
+
const tooltip = (params) => {
|
|
142
|
+
const error = getError(params.data);
|
|
143
|
+
return error ? error.message : ownTooltip === null || ownTooltip === void 0 ? void 0 : ownTooltip(params);
|
|
144
|
+
};
|
|
145
|
+
errorTooltipCallbacks.add(tooltip);
|
|
146
|
+
colDef.tooltip = tooltip;
|
|
147
|
+
colDef.tooltipComponentSelector = (params) => getError(params.data) ? { component: ErrorTooltip } : ownComponentSelector === null || ownComponentSelector === void 0 ? void 0 : ownComponentSelector(params);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Whether row selection is on, in either the deprecated string form or the `RowSelectionOptions`
|
|
151
|
+
* object form.
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
function isRowSelectionEnabled(rowSelection) {
|
|
155
|
+
if (rowSelection === 'single' || rowSelection === 'multiple')
|
|
156
|
+
return true;
|
|
157
|
+
return (typeof rowSelection === 'object' &&
|
|
158
|
+
((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.mode) === 'singleRow' || (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.mode) === 'multiRow'));
|
|
159
|
+
}
|
|
90
160
|
/**
|
|
91
161
|
* The Grid Pro element (AG Grid v36 compatible).
|
|
92
162
|
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
@@ -970,14 +1040,13 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
970
1040
|
* @returns Array of selected row data
|
|
971
1041
|
*/
|
|
972
1042
|
getSelectedRows() {
|
|
973
|
-
var _a, _b, _c, _d;
|
|
1043
|
+
var _a, _b, _c, _d, _e;
|
|
974
1044
|
try {
|
|
975
1045
|
if (!this.initialised || !this.gridApi) {
|
|
976
1046
|
return [];
|
|
977
1047
|
}
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
if (rowSelectionMode === 'single' || rowSelectionMode === 'multiple') {
|
|
1048
|
+
// If row selection is enabled (string or object form), use row selection only
|
|
1049
|
+
if (isRowSelectionEnabled((_a = this.gridOptions) === null || _a === void 0 ? void 0 : _a.rowSelection)) {
|
|
981
1050
|
if (this.gridApi.getSelectedRows && this.gridApi.getSelectedRows().length > 0) {
|
|
982
1051
|
return this.gridApi.getSelectedRows();
|
|
983
1052
|
}
|
|
@@ -989,8 +1058,8 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
989
1058
|
}
|
|
990
1059
|
// Fallback: if no cell ranges but range selection is disabled,
|
|
991
1060
|
// check for focused cell (single cell selection)
|
|
992
|
-
if (!((_c = this.gridOptions) === null || _c === void 0 ? void 0 : _c.enableRangeSelection)) {
|
|
993
|
-
const focusedCell = (
|
|
1061
|
+
if (!((_c = this.gridOptions) === null || _c === void 0 ? void 0 : _c.cellSelection) && !((_d = this.gridOptions) === null || _d === void 0 ? void 0 : _d.enableRangeSelection)) {
|
|
1062
|
+
const focusedCell = (_e = this.gridApi) === null || _e === void 0 ? void 0 : _e.getFocusedCell();
|
|
994
1063
|
if (focusedCell) {
|
|
995
1064
|
const rowNode = this.gridApi.getDisplayedRowAtIndex(focusedCell.rowIndex);
|
|
996
1065
|
if (rowNode === null || rowNode === void 0 ? void 0 : rowNode.data) {
|
|
@@ -1454,25 +1523,19 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
1454
1523
|
if (columnDef.editable) {
|
|
1455
1524
|
if (!columnDef.cellRenderer && !columnDef.cellRendererSelector) {
|
|
1456
1525
|
columnDef.cellRendererSelector = (params) => {
|
|
1457
|
-
|
|
1526
|
+
var _a;
|
|
1527
|
+
if (((_a = params.data) === null || _a === void 0 ? void 0 : _a[EDITED_COLUMN_FIELD]) === columnDef.field) {
|
|
1458
1528
|
return {
|
|
1459
1529
|
component: GridProRendererTypes.editable,
|
|
1460
1530
|
};
|
|
1461
1531
|
}
|
|
1462
1532
|
};
|
|
1463
1533
|
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
columnDef.tooltipValueGetter = (params) => {
|
|
1467
|
-
const error = params.data[ERROR_COLUMN_FIELD];
|
|
1468
|
-
if (error && error.column === columnDef.field) {
|
|
1469
|
-
return error.message;
|
|
1470
|
-
}
|
|
1471
|
-
};
|
|
1472
|
-
}
|
|
1534
|
+
// The template column is typed with the shared v29 `ColDef`, which predates `tooltip`.
|
|
1535
|
+
composeErrorTooltip(columnDef, columnDef.field);
|
|
1473
1536
|
if (!columnDef.cellClassRules) {
|
|
1474
1537
|
columnDef.cellClassRules = {
|
|
1475
|
-
error: (params) => { var _a; return ((_a = params.data[ERROR_COLUMN_FIELD]) === null ||
|
|
1538
|
+
error: (params) => { var _a, _b; return ((_b = (_a = params.data) === null || _a === void 0 ? void 0 : _a[ERROR_COLUMN_FIELD]) === null || _b === void 0 ? void 0 : _b.column) === params.colDef.field; },
|
|
1476
1539
|
};
|
|
1477
1540
|
}
|
|
1478
1541
|
}
|
package/dist/react.cjs
CHANGED
|
@@ -99,6 +99,31 @@ const GridProCell = React.forwardRef(function GridProCell(props, ref) {
|
|
|
99
99
|
return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
+
const DateEditor = React.forwardRef(function DateEditor(props, ref) {
|
|
103
|
+
const { children, ...rest } = props;
|
|
104
|
+
return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
const MultiselectEditor = React.forwardRef(function MultiselectEditor(props, ref) {
|
|
108
|
+
const { children, ...rest } = props;
|
|
109
|
+
return React.createElement(customElements.getName(MultiselectEditorWC) ?? '%%prefix%%-multiselect-editor', { ...rest, ref }, children);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const NumberEditor = React.forwardRef(function NumberEditor(props, ref) {
|
|
113
|
+
const { children, ...rest } = props;
|
|
114
|
+
return React.createElement(customElements.getName(NumberEditorWC) ?? '%%prefix%%-number-editor', { ...rest, ref }, children);
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
const SelectEditor = React.forwardRef(function SelectEditor(props, ref) {
|
|
118
|
+
const { children, ...rest } = props;
|
|
119
|
+
return React.createElement(customElements.getName(SelectEditorWC) ?? '%%prefix%%-select-editor', { ...rest, ref }, children);
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
123
|
+
const { children, ...rest } = props;
|
|
124
|
+
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
125
|
+
});
|
|
126
|
+
|
|
102
127
|
const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
103
128
|
const { children, ...rest } = props;
|
|
104
129
|
return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
|
|
@@ -139,31 +164,6 @@ const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, ref) {
|
|
|
139
164
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
140
165
|
});
|
|
141
166
|
|
|
142
|
-
const DateEditor = React.forwardRef(function DateEditor(props, ref) {
|
|
143
|
-
const { children, ...rest } = props;
|
|
144
|
-
return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
const MultiselectEditor = React.forwardRef(function MultiselectEditor(props, ref) {
|
|
148
|
-
const { children, ...rest } = props;
|
|
149
|
-
return React.createElement(customElements.getName(MultiselectEditorWC) ?? '%%prefix%%-multiselect-editor', { ...rest, ref }, children);
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
const NumberEditor = React.forwardRef(function NumberEditor(props, ref) {
|
|
153
|
-
const { children, ...rest } = props;
|
|
154
|
-
return React.createElement(customElements.getName(NumberEditorWC) ?? '%%prefix%%-number-editor', { ...rest, ref }, children);
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
const SelectEditor = React.forwardRef(function SelectEditor(props, ref) {
|
|
158
|
-
const { children, ...rest } = props;
|
|
159
|
-
return React.createElement(customElements.getName(SelectEditorWC) ?? '%%prefix%%-select-editor', { ...rest, ref }, children);
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
163
|
-
const { children, ...rest } = props;
|
|
164
|
-
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
165
|
-
});
|
|
166
|
-
|
|
167
167
|
const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
168
168
|
const { children, ...rest } = props;
|
|
169
169
|
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
|
@@ -591,6 +591,11 @@ module.exports = {
|
|
|
591
591
|
GridProLegacy,
|
|
592
592
|
GridPro,
|
|
593
593
|
GridProCell,
|
|
594
|
+
DateEditor,
|
|
595
|
+
MultiselectEditor,
|
|
596
|
+
NumberEditor,
|
|
597
|
+
SelectEditor,
|
|
598
|
+
StringEditor,
|
|
594
599
|
ActionRenderer,
|
|
595
600
|
ActionsMenuRenderer,
|
|
596
601
|
BooleanRenderer,
|
|
@@ -599,11 +604,6 @@ module.exports = {
|
|
|
599
604
|
StatusPillRenderer,
|
|
600
605
|
AgTextFieldRenderer,
|
|
601
606
|
AgTextRenderer,
|
|
602
|
-
DateEditor,
|
|
603
|
-
MultiselectEditor,
|
|
604
|
-
NumberEditor,
|
|
605
|
-
SelectEditor,
|
|
606
|
-
StringEditor,
|
|
607
607
|
GridProColumn,
|
|
608
608
|
ColumnSelection,
|
|
609
609
|
GridProClientSideDatasource,
|
package/dist/react.mjs
CHANGED
|
@@ -97,6 +97,31 @@ export const GridProCell = React.forwardRef(function GridProCell(props, ref) {
|
|
|
97
97
|
return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
+
export const DateEditor = React.forwardRef(function DateEditor(props, ref) {
|
|
101
|
+
const { children, ...rest } = props;
|
|
102
|
+
return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export const MultiselectEditor = React.forwardRef(function MultiselectEditor(props, ref) {
|
|
106
|
+
const { children, ...rest } = props;
|
|
107
|
+
return React.createElement(customElements.getName(MultiselectEditorWC) ?? '%%prefix%%-multiselect-editor', { ...rest, ref }, children);
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export const NumberEditor = React.forwardRef(function NumberEditor(props, ref) {
|
|
111
|
+
const { children, ...rest } = props;
|
|
112
|
+
return React.createElement(customElements.getName(NumberEditorWC) ?? '%%prefix%%-number-editor', { ...rest, ref }, children);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export const SelectEditor = React.forwardRef(function SelectEditor(props, ref) {
|
|
116
|
+
const { children, ...rest } = props;
|
|
117
|
+
return React.createElement(customElements.getName(SelectEditorWC) ?? '%%prefix%%-select-editor', { ...rest, ref }, children);
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
121
|
+
const { children, ...rest } = props;
|
|
122
|
+
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
123
|
+
});
|
|
124
|
+
|
|
100
125
|
export const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
|
|
101
126
|
const { children, ...rest } = props;
|
|
102
127
|
return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
|
|
@@ -137,31 +162,6 @@ export const AgTextRenderer = React.forwardRef(function AgTextRenderer(props, re
|
|
|
137
162
|
return React.createElement(customElements.getName(AgTextRendererWC) ?? '%%prefix%%-grid-text-renderer', { ...rest, ref }, children);
|
|
138
163
|
});
|
|
139
164
|
|
|
140
|
-
export const DateEditor = React.forwardRef(function DateEditor(props, ref) {
|
|
141
|
-
const { children, ...rest } = props;
|
|
142
|
-
return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
export const MultiselectEditor = React.forwardRef(function MultiselectEditor(props, ref) {
|
|
146
|
-
const { children, ...rest } = props;
|
|
147
|
-
return React.createElement(customElements.getName(MultiselectEditorWC) ?? '%%prefix%%-multiselect-editor', { ...rest, ref }, children);
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
export const NumberEditor = React.forwardRef(function NumberEditor(props, ref) {
|
|
151
|
-
const { children, ...rest } = props;
|
|
152
|
-
return React.createElement(customElements.getName(NumberEditorWC) ?? '%%prefix%%-number-editor', { ...rest, ref }, children);
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
export const SelectEditor = React.forwardRef(function SelectEditor(props, ref) {
|
|
156
|
-
const { children, ...rest } = props;
|
|
157
|
-
return React.createElement(customElements.getName(SelectEditorWC) ?? '%%prefix%%-select-editor', { ...rest, ref }, children);
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
export const StringEditor = React.forwardRef(function StringEditor(props, ref) {
|
|
161
|
-
const { children, ...rest } = props;
|
|
162
|
-
return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
|
|
163
|
-
});
|
|
164
|
-
|
|
165
165
|
export const GridProColumn = React.forwardRef(function GridProColumn(props, ref) {
|
|
166
166
|
const { children, ...rest } = props;
|
|
167
167
|
return React.createElement(customElements.getName(GridProColumnWC) ?? 'grid-pro-column', { ...rest, ref }, children);
|
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.79.
|
|
4
|
+
"version": "15.79.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "15.79.
|
|
42
|
-
"@genesislcap/genx": "15.79.
|
|
43
|
-
"@genesislcap/ts-builder": "15.79.
|
|
44
|
-
"@genesislcap/uvu-playwright-builder": "15.79.
|
|
45
|
-
"@genesislcap/vite-builder": "15.79.
|
|
46
|
-
"@genesislcap/webpack-builder": "15.79.
|
|
41
|
+
"@genesislcap/foundation-testing": "15.79.1",
|
|
42
|
+
"@genesislcap/genx": "15.79.1",
|
|
43
|
+
"@genesislcap/ts-builder": "15.79.1",
|
|
44
|
+
"@genesislcap/uvu-playwright-builder": "15.79.1",
|
|
45
|
+
"@genesislcap/vite-builder": "15.79.1",
|
|
46
|
+
"@genesislcap/webpack-builder": "15.79.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@genesislcap/foundation-comms": "15.79.
|
|
50
|
-
"@genesislcap/foundation-criteria": "15.79.
|
|
51
|
-
"@genesislcap/foundation-logger": "15.79.
|
|
52
|
-
"@genesislcap/foundation-ui": "15.79.
|
|
53
|
-
"@genesislcap/foundation-utils": "15.79.
|
|
49
|
+
"@genesislcap/foundation-comms": "15.79.1",
|
|
50
|
+
"@genesislcap/foundation-criteria": "15.79.1",
|
|
51
|
+
"@genesislcap/foundation-logger": "15.79.1",
|
|
52
|
+
"@genesislcap/foundation-ui": "15.79.1",
|
|
53
|
+
"@genesislcap/foundation-utils": "15.79.1",
|
|
54
54
|
"@microsoft/fast-colors": "5.3.1",
|
|
55
55
|
"@microsoft/fast-components": "2.30.6",
|
|
56
56
|
"@microsoft/fast-element": "1.14.0",
|