@genesislcap/foundation-react-utils 14.481.1 → 14.482.0
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 +171 -0
- package/dist/dts/create-grid-pro-cell-portals.d.ts +81 -0
- package/dist/dts/create-grid-pro-cell-portals.d.ts.map +1 -0
- package/dist/dts/create-grid-pro-cell-renderer.d.ts +140 -0
- package/dist/dts/create-grid-pro-cell-renderer.d.ts.map +1 -0
- package/dist/dts/index.d.ts +7 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/create-grid-pro-cell-portals.js +138 -0
- package/dist/esm/create-grid-pro-cell-renderer.js +141 -0
- package/dist/esm/index.js +5 -0
- package/dist/foundation-react-utils.api.json +763 -0
- package/dist/foundation-react-utils.d.ts +223 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/src/create-grid-pro-cell-portals.tsx +216 -0
- package/src/create-grid-pro-cell-renderer.ts +235 -0
- package/src/index.ts +11 -0
|
@@ -172,6 +172,138 @@
|
|
|
172
172
|
"name": "",
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Function",
|
|
177
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!createGridProCellPortals:function(1)",
|
|
178
|
+
"docComment": "/**\n * Creates a {@link GridProCellPortals} manager: a single React root shared by every cell renderer registered with it, with each cell rendered into its grid cell via a portal.\n *\n * Use this instead of the default one-root-per-cell mode when cell renderers need to inherit React Context from the application tree (Redux, theme, router, query clients...) — portal-rendered cells live in the tree where `Portals` is rendered, so context updates propagate into visible cells like any other React state.\n *\n * @remarks\n *\n * Trade-offs versus the default per-cell roots: all cells registered with one manager share a React tree, so a renderer that throws is contained by a per-cell error boundary (the failing cell renders empty rather than crashing the rest), and unmounting `Portals` while the grid is alive blanks every portal-rendered cell. Cell mounts are committed synchronously (so AG Grid measures real content), which re-renders the manager once per created cell — the per-cell portals are memoised, keeping that cheap at grid-pro's virtualised cell counts.\n *\n * @example\n * ```tsx\n * const cellPortals = createGridProCellPortals();\n *\n * const gridOptions = {\n * components: {\n * priceCell: createGridProCellRenderer(PriceCell, { portals: cellPortals }),\n * },\n * columnDefs: [{ field: 'price', cellRenderer: 'priceCell' }],\n * };\n *\n * function Page() {\n * return (\n * <SomeProvider>\n * <cellPortals.Portals />\n * <RapidGridPro gridOptions={gridOptions} />\n * </SomeProvider>\n * );\n * }\n * ```\n *\n * @public\n */\n",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export declare function createGridProCellPortals(): "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "GridProCellPortals",
|
|
187
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellPortals:interface"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": ";"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"fileUrlPath": "src/create-grid-pro-cell-portals.tsx",
|
|
195
|
+
"returnTypeTokenRange": {
|
|
196
|
+
"startIndex": 1,
|
|
197
|
+
"endIndex": 2
|
|
198
|
+
},
|
|
199
|
+
"releaseTag": "Public",
|
|
200
|
+
"overloadIndex": 1,
|
|
201
|
+
"parameters": [],
|
|
202
|
+
"name": "createGridProCellPortals"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "Function",
|
|
206
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!createGridProCellRenderer:function(1)",
|
|
207
|
+
"docComment": "/**\n * Wraps a React component as an AG Grid cell renderer component class for use with `grid-pro` / `grid-pro-beta` (`<foundation-grid-pro>` / `<rapid-grid-pro>`).\n *\n * Grid Pro is a framework-agnostic Web Component, so AG Grid inside it only understands plain-JS component classes. This helper bridges the gap: it returns a class implementing `ICellRendererComp` that mounts the React component into the cell with its own React root, re-renders it on `refresh` (so value changes and cell flashing keep working without remounting), and unmounts it when the cell is destroyed.\n *\n * The component receives the full AG Grid `ICellRendererParams` object as props — including `value`, `data`, `node`, `api` and anything supplied via the column's `cellRendererParams`. Hooks and local state inside the component work as normal.\n *\n * Note on React Context/Redux: by default each cell is rendered into its own independent React root, so renderers do NOT inherit contexts (Redux providers, theme context, React Router, etc.) from the application tree hosting the grid. Either pass data/callbacks explicitly via `cellRendererParams`, or opt into portal mode with the `portals` option (see {@link GridProCellRendererOptions.portals} and `createGridProCellPortals`) — portal cells share the application tree and inherit its contexts.\n *\n * Note on `key`: props are passed by spreading the AG Grid params object, and React reserves `key` — a `cellRendererParams` entry named `key` is consumed as the element key and never reaches the component, so avoid that name. (`ref` is fine: React 19 forwards it to function components as a regular prop.)\n *\n * Note on styling: cells render inside grid-pro's shadow root, so document-level stylesheets (CSS files imported by your app/page) do NOT reach the rendered component. Style renderers with inline styles or CSS-in-JS. Design-system tokens remain usable either way — CSS custom properties inherit across shadow boundaries (e.g. `color: 'var(--accent-fill-rest)'`).\n *\n * @param Component - The React component to render inside the cell.\n *\n * @param options - Optional {@link GridProCellRendererOptions} to tune the wrapper behaviour.\n *\n * @returns A cell renderer component class registrable via `gridOptions.components`, the grid's `gridComponents` property, or directly as a column's `cellRenderer`.\n *\n * @example\n * ```tsx\n * import { createGridProCellRenderer, type GridProCellRendererProps } from '@genesislcap/foundation-react-utils';\n *\n * function PriceCell({ value }: GridProCellRendererProps) {\n * return <span style={{ color: value >= 0 ? 'green' : 'red' }}>{value}</span>;\n * }\n *\n * const gridOptions = {\n * components: {\n * priceCell: createGridProCellRenderer(PriceCell),\n * },\n * columnDefs: [\n * { field: 'price', cellRenderer: 'priceCell' },\n * ],\n * };\n *\n * // <rapid-grid-pro gridOptions={gridOptions} /> — or register via the grid's\n * // `gridComponents` property to make the renderer available across all columns.\n * ```\n *\n * @public\n */\n",
|
|
208
|
+
"excerptTokens": [
|
|
209
|
+
{
|
|
210
|
+
"kind": "Content",
|
|
211
|
+
"text": "export declare function createGridProCellRenderer<P extends "
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"kind": "Reference",
|
|
215
|
+
"text": "GridProCellRendererProps",
|
|
216
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps:interface"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"kind": "Content",
|
|
220
|
+
"text": " = "
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"kind": "Reference",
|
|
224
|
+
"text": "GridProCellRendererProps",
|
|
225
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps:interface"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"kind": "Content",
|
|
229
|
+
"text": ">(Component: "
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"kind": "Reference",
|
|
233
|
+
"text": "ComponentType",
|
|
234
|
+
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "Content",
|
|
238
|
+
"text": "<P>"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "Content",
|
|
242
|
+
"text": ", options?: "
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"kind": "Reference",
|
|
246
|
+
"text": "GridProCellRendererOptions",
|
|
247
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererOptions:interface"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"kind": "Content",
|
|
251
|
+
"text": "): "
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "Content",
|
|
255
|
+
"text": "new () => "
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "Reference",
|
|
259
|
+
"text": "GridProReactCellRenderer",
|
|
260
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProReactCellRenderer:interface"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"kind": "Content",
|
|
264
|
+
"text": ";"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"fileUrlPath": "src/create-grid-pro-cell-renderer.ts",
|
|
268
|
+
"returnTypeTokenRange": {
|
|
269
|
+
"startIndex": 10,
|
|
270
|
+
"endIndex": 12
|
|
271
|
+
},
|
|
272
|
+
"releaseTag": "Public",
|
|
273
|
+
"overloadIndex": 1,
|
|
274
|
+
"parameters": [
|
|
275
|
+
{
|
|
276
|
+
"parameterName": "Component",
|
|
277
|
+
"parameterTypeTokenRange": {
|
|
278
|
+
"startIndex": 5,
|
|
279
|
+
"endIndex": 7
|
|
280
|
+
},
|
|
281
|
+
"isOptional": false
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"parameterName": "options",
|
|
285
|
+
"parameterTypeTokenRange": {
|
|
286
|
+
"startIndex": 8,
|
|
287
|
+
"endIndex": 9
|
|
288
|
+
},
|
|
289
|
+
"isOptional": true
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"typeParameters": [
|
|
293
|
+
{
|
|
294
|
+
"typeParameterName": "P",
|
|
295
|
+
"constraintTokenRange": {
|
|
296
|
+
"startIndex": 1,
|
|
297
|
+
"endIndex": 2
|
|
298
|
+
},
|
|
299
|
+
"defaultTypeTokenRange": {
|
|
300
|
+
"startIndex": 3,
|
|
301
|
+
"endIndex": 4
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"name": "createGridProCellRenderer"
|
|
306
|
+
},
|
|
175
307
|
{
|
|
176
308
|
"kind": "Function",
|
|
177
309
|
"canonicalReference": "@genesislcap/foundation-react-utils!createReactRenderer:function(1)",
|
|
@@ -284,6 +416,637 @@
|
|
|
284
416
|
],
|
|
285
417
|
"name": "createReactRenderer"
|
|
286
418
|
},
|
|
419
|
+
{
|
|
420
|
+
"kind": "Interface",
|
|
421
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellPortals:interface",
|
|
422
|
+
"docComment": "/**\n * Shared portal manager for Grid Pro React cell renderers.\n *\n * Created with {@link createGridProCellPortals}. Render the {@link GridProCellPortals.Portals} component exactly once inside your React tree — cells rendered through this manager become part of that tree, so they inherit React Context (Redux providers, theme, router, etc.) from wherever `Portals` sits. Pass the manager to {@link createGridProCellRenderer} via the `portals` option to opt a renderer into portal mode.\n *\n * @public\n */\n",
|
|
423
|
+
"excerptTokens": [
|
|
424
|
+
{
|
|
425
|
+
"kind": "Content",
|
|
426
|
+
"text": "export interface GridProCellPortals "
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"fileUrlPath": "src/create-grid-pro-cell-portals.tsx",
|
|
430
|
+
"releaseTag": "Public",
|
|
431
|
+
"name": "GridProCellPortals",
|
|
432
|
+
"preserveMemberOrder": false,
|
|
433
|
+
"members": [
|
|
434
|
+
{
|
|
435
|
+
"kind": "PropertySignature",
|
|
436
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellPortals#Portals:member",
|
|
437
|
+
"docComment": "/**\n * Host component for all cells rendered through this manager. Render it exactly once, inside every provider the cell renderers should inherit, and keep it mounted for as long as the grid is on screen — unmounting it blanks all portal-rendered cells.\n */\n",
|
|
438
|
+
"excerptTokens": [
|
|
439
|
+
{
|
|
440
|
+
"kind": "Content",
|
|
441
|
+
"text": "Portals: "
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"kind": "Reference",
|
|
445
|
+
"text": "ComponentType",
|
|
446
|
+
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"kind": "Content",
|
|
450
|
+
"text": ";"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"isReadonly": false,
|
|
454
|
+
"isOptional": false,
|
|
455
|
+
"releaseTag": "Public",
|
|
456
|
+
"name": "Portals",
|
|
457
|
+
"propertyTypeTokenRange": {
|
|
458
|
+
"startIndex": 1,
|
|
459
|
+
"endIndex": 2
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
"extendsTokenRanges": []
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"kind": "Interface",
|
|
467
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererOptions:interface",
|
|
468
|
+
"docComment": "/**\n * Options for {@link createGridProCellRenderer}.\n *\n * @public\n */\n",
|
|
469
|
+
"excerptTokens": [
|
|
470
|
+
{
|
|
471
|
+
"kind": "Content",
|
|
472
|
+
"text": "export interface GridProCellRendererOptions "
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"fileUrlPath": "src/create-grid-pro-cell-renderer.ts",
|
|
476
|
+
"releaseTag": "Public",
|
|
477
|
+
"name": "GridProCellRendererOptions",
|
|
478
|
+
"preserveMemberOrder": false,
|
|
479
|
+
"members": [
|
|
480
|
+
{
|
|
481
|
+
"kind": "PropertySignature",
|
|
482
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererOptions#fillCell:member",
|
|
483
|
+
"docComment": "/**\n * When true (the default), the cell container is styled as a full-size flex row (`display: flex; align-items: center; height: 100%; width: 100%`) so content is vertically centred like grid-pro's built-in renderers.\n *\n * Set to false to leave the container unstyled and let the cell's own layout apply. Do this when the forced flex/height layout gets in the way, e.g.: - `autoHeight`/`wrapText` columns — `height: 100%` is circular when the row height derives from the content, so the cell can collapse instead of growing; - right-aligned numeric cells relying on `text-align` (a flex item packs to the start); - content using `text-overflow: ellipsis` (a flex item won't truncate without `min-width: 0`).\n */\n",
|
|
484
|
+
"excerptTokens": [
|
|
485
|
+
{
|
|
486
|
+
"kind": "Content",
|
|
487
|
+
"text": "fillCell?: "
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"kind": "Content",
|
|
491
|
+
"text": "boolean"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"kind": "Content",
|
|
495
|
+
"text": ";"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"isReadonly": false,
|
|
499
|
+
"isOptional": true,
|
|
500
|
+
"releaseTag": "Public",
|
|
501
|
+
"name": "fillCell",
|
|
502
|
+
"propertyTypeTokenRange": {
|
|
503
|
+
"startIndex": 1,
|
|
504
|
+
"endIndex": 2
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"kind": "PropertySignature",
|
|
509
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererOptions#portals:member",
|
|
510
|
+
"docComment": "/**\n * Render cells through a shared {@link GridProCellPortals} manager instead of giving each cell its own React root. Portal-rendered cells become part of the React tree where the manager's `Portals` component is rendered, so they inherit React Context (Redux, theme, router, etc.) from the application — the main limitation of the default mode.\n *\n * Create one with `createGridProCellPortals()` and render `<manager.Portals />` once, inside the providers the cells should see. When omitted (the default), each cell gets its own isolated root.\n */\n",
|
|
511
|
+
"excerptTokens": [
|
|
512
|
+
{
|
|
513
|
+
"kind": "Content",
|
|
514
|
+
"text": "portals?: "
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"kind": "Reference",
|
|
518
|
+
"text": "GridProCellPortals",
|
|
519
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellPortals:interface"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"kind": "Content",
|
|
523
|
+
"text": ";"
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"isReadonly": false,
|
|
527
|
+
"isOptional": true,
|
|
528
|
+
"releaseTag": "Public",
|
|
529
|
+
"name": "portals",
|
|
530
|
+
"propertyTypeTokenRange": {
|
|
531
|
+
"startIndex": 1,
|
|
532
|
+
"endIndex": 2
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"extendsTokenRanges": []
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"kind": "Interface",
|
|
540
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps:interface",
|
|
541
|
+
"docComment": "/**\n * Props passed to a React component used as a Grid Pro cell renderer.\n *\n * This is a structural subset of AG Grid's `ICellRendererParams` — the full params object (including any custom `cellRendererParams` from the column definition) is spread onto the component as props on every render, so anything available on `ICellRendererParams` is available here. Declared locally to avoid coupling this package to a specific `ag-grid-community` version.\n *\n * @public\n */\n",
|
|
542
|
+
"excerptTokens": [
|
|
543
|
+
{
|
|
544
|
+
"kind": "Content",
|
|
545
|
+
"text": "export interface GridProCellRendererProps<TData = "
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"kind": "Content",
|
|
549
|
+
"text": "any"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"kind": "Content",
|
|
553
|
+
"text": ", TValue = "
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "Content",
|
|
557
|
+
"text": "any"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"kind": "Content",
|
|
561
|
+
"text": "> "
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"fileUrlPath": "src/create-grid-pro-cell-renderer.ts",
|
|
565
|
+
"releaseTag": "Public",
|
|
566
|
+
"typeParameters": [
|
|
567
|
+
{
|
|
568
|
+
"typeParameterName": "TData",
|
|
569
|
+
"constraintTokenRange": {
|
|
570
|
+
"startIndex": 0,
|
|
571
|
+
"endIndex": 0
|
|
572
|
+
},
|
|
573
|
+
"defaultTypeTokenRange": {
|
|
574
|
+
"startIndex": 1,
|
|
575
|
+
"endIndex": 2
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"typeParameterName": "TValue",
|
|
580
|
+
"constraintTokenRange": {
|
|
581
|
+
"startIndex": 0,
|
|
582
|
+
"endIndex": 0
|
|
583
|
+
},
|
|
584
|
+
"defaultTypeTokenRange": {
|
|
585
|
+
"startIndex": 3,
|
|
586
|
+
"endIndex": 4
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"name": "GridProCellRendererProps",
|
|
591
|
+
"preserveMemberOrder": false,
|
|
592
|
+
"members": [
|
|
593
|
+
{
|
|
594
|
+
"kind": "IndexSignature",
|
|
595
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps:index(1)",
|
|
596
|
+
"docComment": "/**\n * Custom params from `cellRendererParams` and any other AG Grid params.\n */\n",
|
|
597
|
+
"excerptTokens": [
|
|
598
|
+
{
|
|
599
|
+
"kind": "Content",
|
|
600
|
+
"text": "[key: "
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"kind": "Content",
|
|
604
|
+
"text": "string"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"kind": "Content",
|
|
608
|
+
"text": "]: "
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"kind": "Content",
|
|
612
|
+
"text": "any"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"kind": "Content",
|
|
616
|
+
"text": ";"
|
|
617
|
+
}
|
|
618
|
+
],
|
|
619
|
+
"isReadonly": false,
|
|
620
|
+
"returnTypeTokenRange": {
|
|
621
|
+
"startIndex": 3,
|
|
622
|
+
"endIndex": 4
|
|
623
|
+
},
|
|
624
|
+
"releaseTag": "Public",
|
|
625
|
+
"overloadIndex": 1,
|
|
626
|
+
"parameters": [
|
|
627
|
+
{
|
|
628
|
+
"parameterName": "key",
|
|
629
|
+
"parameterTypeTokenRange": {
|
|
630
|
+
"startIndex": 1,
|
|
631
|
+
"endIndex": 2
|
|
632
|
+
},
|
|
633
|
+
"isOptional": false
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"kind": "PropertySignature",
|
|
639
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#api:member",
|
|
640
|
+
"docComment": "/**\n * The AG Grid api.\n */\n",
|
|
641
|
+
"excerptTokens": [
|
|
642
|
+
{
|
|
643
|
+
"kind": "Content",
|
|
644
|
+
"text": "api: "
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"kind": "Content",
|
|
648
|
+
"text": "any"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"kind": "Content",
|
|
652
|
+
"text": ";"
|
|
653
|
+
}
|
|
654
|
+
],
|
|
655
|
+
"isReadonly": false,
|
|
656
|
+
"isOptional": false,
|
|
657
|
+
"releaseTag": "Public",
|
|
658
|
+
"name": "api",
|
|
659
|
+
"propertyTypeTokenRange": {
|
|
660
|
+
"startIndex": 1,
|
|
661
|
+
"endIndex": 2
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"kind": "PropertySignature",
|
|
666
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#colDef:member",
|
|
667
|
+
"docComment": "/**\n * The column definition.\n */\n",
|
|
668
|
+
"excerptTokens": [
|
|
669
|
+
{
|
|
670
|
+
"kind": "Content",
|
|
671
|
+
"text": "colDef?: "
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"kind": "Content",
|
|
675
|
+
"text": "any"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"kind": "Content",
|
|
679
|
+
"text": ";"
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
"isReadonly": false,
|
|
683
|
+
"isOptional": true,
|
|
684
|
+
"releaseTag": "Public",
|
|
685
|
+
"name": "colDef",
|
|
686
|
+
"propertyTypeTokenRange": {
|
|
687
|
+
"startIndex": 1,
|
|
688
|
+
"endIndex": 2
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"kind": "PropertySignature",
|
|
693
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#column:member",
|
|
694
|
+
"docComment": "/**\n * The column this cell belongs to.\n */\n",
|
|
695
|
+
"excerptTokens": [
|
|
696
|
+
{
|
|
697
|
+
"kind": "Content",
|
|
698
|
+
"text": "column?: "
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"kind": "Content",
|
|
702
|
+
"text": "any"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"kind": "Content",
|
|
706
|
+
"text": ";"
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
"isReadonly": false,
|
|
710
|
+
"isOptional": true,
|
|
711
|
+
"releaseTag": "Public",
|
|
712
|
+
"name": "column",
|
|
713
|
+
"propertyTypeTokenRange": {
|
|
714
|
+
"startIndex": 1,
|
|
715
|
+
"endIndex": 2
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"kind": "PropertySignature",
|
|
720
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#context:member",
|
|
721
|
+
"docComment": "/**\n * The grid context object, as supplied via `gridOptions.context`.\n */\n",
|
|
722
|
+
"excerptTokens": [
|
|
723
|
+
{
|
|
724
|
+
"kind": "Content",
|
|
725
|
+
"text": "context?: "
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"kind": "Content",
|
|
729
|
+
"text": "any"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"kind": "Content",
|
|
733
|
+
"text": ";"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"isReadonly": false,
|
|
737
|
+
"isOptional": true,
|
|
738
|
+
"releaseTag": "Public",
|
|
739
|
+
"name": "context",
|
|
740
|
+
"propertyTypeTokenRange": {
|
|
741
|
+
"startIndex": 1,
|
|
742
|
+
"endIndex": 2
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"kind": "PropertySignature",
|
|
747
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#data:member",
|
|
748
|
+
"docComment": "/**\n * The full row data.\n */\n",
|
|
749
|
+
"excerptTokens": [
|
|
750
|
+
{
|
|
751
|
+
"kind": "Content",
|
|
752
|
+
"text": "data: "
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"kind": "Content",
|
|
756
|
+
"text": "TData"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"kind": "Content",
|
|
760
|
+
"text": ";"
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"isReadonly": false,
|
|
764
|
+
"isOptional": false,
|
|
765
|
+
"releaseTag": "Public",
|
|
766
|
+
"name": "data",
|
|
767
|
+
"propertyTypeTokenRange": {
|
|
768
|
+
"startIndex": 1,
|
|
769
|
+
"endIndex": 2
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"kind": "PropertySignature",
|
|
774
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#node:member",
|
|
775
|
+
"docComment": "/**\n * The AG Grid row node.\n */\n",
|
|
776
|
+
"excerptTokens": [
|
|
777
|
+
{
|
|
778
|
+
"kind": "Content",
|
|
779
|
+
"text": "node: "
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"kind": "Content",
|
|
783
|
+
"text": "any"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"kind": "Content",
|
|
787
|
+
"text": ";"
|
|
788
|
+
}
|
|
789
|
+
],
|
|
790
|
+
"isReadonly": false,
|
|
791
|
+
"isOptional": false,
|
|
792
|
+
"releaseTag": "Public",
|
|
793
|
+
"name": "node",
|
|
794
|
+
"propertyTypeTokenRange": {
|
|
795
|
+
"startIndex": 1,
|
|
796
|
+
"endIndex": 2
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"kind": "PropertySignature",
|
|
801
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#rowIndex:member",
|
|
802
|
+
"docComment": "/**\n * The row index of the cell.\n */\n",
|
|
803
|
+
"excerptTokens": [
|
|
804
|
+
{
|
|
805
|
+
"kind": "Content",
|
|
806
|
+
"text": "rowIndex: "
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"kind": "Content",
|
|
810
|
+
"text": "number"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"kind": "Content",
|
|
814
|
+
"text": ";"
|
|
815
|
+
}
|
|
816
|
+
],
|
|
817
|
+
"isReadonly": false,
|
|
818
|
+
"isOptional": false,
|
|
819
|
+
"releaseTag": "Public",
|
|
820
|
+
"name": "rowIndex",
|
|
821
|
+
"propertyTypeTokenRange": {
|
|
822
|
+
"startIndex": 1,
|
|
823
|
+
"endIndex": 2
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"kind": "PropertySignature",
|
|
828
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#value:member",
|
|
829
|
+
"docComment": "/**\n * The cell value.\n */\n",
|
|
830
|
+
"excerptTokens": [
|
|
831
|
+
{
|
|
832
|
+
"kind": "Content",
|
|
833
|
+
"text": "value: "
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"kind": "Content",
|
|
837
|
+
"text": "TValue"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"kind": "Content",
|
|
841
|
+
"text": ";"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"isReadonly": false,
|
|
845
|
+
"isOptional": false,
|
|
846
|
+
"releaseTag": "Public",
|
|
847
|
+
"name": "value",
|
|
848
|
+
"propertyTypeTokenRange": {
|
|
849
|
+
"startIndex": 1,
|
|
850
|
+
"endIndex": 2
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"kind": "PropertySignature",
|
|
855
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps#valueFormatted:member",
|
|
856
|
+
"docComment": "/**\n * Value formatted by the column's value formatter, if any.\n */\n",
|
|
857
|
+
"excerptTokens": [
|
|
858
|
+
{
|
|
859
|
+
"kind": "Content",
|
|
860
|
+
"text": "valueFormatted?: "
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"kind": "Content",
|
|
864
|
+
"text": "string | null"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"kind": "Content",
|
|
868
|
+
"text": ";"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
"isReadonly": false,
|
|
872
|
+
"isOptional": true,
|
|
873
|
+
"releaseTag": "Public",
|
|
874
|
+
"name": "valueFormatted",
|
|
875
|
+
"propertyTypeTokenRange": {
|
|
876
|
+
"startIndex": 1,
|
|
877
|
+
"endIndex": 2
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
],
|
|
881
|
+
"extendsTokenRanges": []
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"kind": "Interface",
|
|
885
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProReactCellRenderer:interface",
|
|
886
|
+
"docComment": "/**\n * The subset of AG Grid's `ICellRendererComp` contract implemented by the wrapper class returned from {@link createGridProCellRenderer}.\n *\n * @public\n */\n",
|
|
887
|
+
"excerptTokens": [
|
|
888
|
+
{
|
|
889
|
+
"kind": "Content",
|
|
890
|
+
"text": "export interface GridProReactCellRenderer "
|
|
891
|
+
}
|
|
892
|
+
],
|
|
893
|
+
"fileUrlPath": "src/create-grid-pro-cell-renderer.ts",
|
|
894
|
+
"releaseTag": "Public",
|
|
895
|
+
"name": "GridProReactCellRenderer",
|
|
896
|
+
"preserveMemberOrder": false,
|
|
897
|
+
"members": [
|
|
898
|
+
{
|
|
899
|
+
"kind": "MethodSignature",
|
|
900
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProReactCellRenderer#destroy:member(1)",
|
|
901
|
+
"docComment": "",
|
|
902
|
+
"excerptTokens": [
|
|
903
|
+
{
|
|
904
|
+
"kind": "Content",
|
|
905
|
+
"text": "destroy(): "
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"kind": "Content",
|
|
909
|
+
"text": "void"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"kind": "Content",
|
|
913
|
+
"text": ";"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"isOptional": false,
|
|
917
|
+
"returnTypeTokenRange": {
|
|
918
|
+
"startIndex": 1,
|
|
919
|
+
"endIndex": 2
|
|
920
|
+
},
|
|
921
|
+
"releaseTag": "Public",
|
|
922
|
+
"overloadIndex": 1,
|
|
923
|
+
"parameters": [],
|
|
924
|
+
"name": "destroy"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"kind": "MethodSignature",
|
|
928
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProReactCellRenderer#getGui:member(1)",
|
|
929
|
+
"docComment": "",
|
|
930
|
+
"excerptTokens": [
|
|
931
|
+
{
|
|
932
|
+
"kind": "Content",
|
|
933
|
+
"text": "getGui(): "
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"kind": "Reference",
|
|
937
|
+
"text": "HTMLElement",
|
|
938
|
+
"canonicalReference": "!HTMLElement:interface"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "Content",
|
|
942
|
+
"text": ";"
|
|
943
|
+
}
|
|
944
|
+
],
|
|
945
|
+
"isOptional": false,
|
|
946
|
+
"returnTypeTokenRange": {
|
|
947
|
+
"startIndex": 1,
|
|
948
|
+
"endIndex": 2
|
|
949
|
+
},
|
|
950
|
+
"releaseTag": "Public",
|
|
951
|
+
"overloadIndex": 1,
|
|
952
|
+
"parameters": [],
|
|
953
|
+
"name": "getGui"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"kind": "MethodSignature",
|
|
957
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProReactCellRenderer#init:member(1)",
|
|
958
|
+
"docComment": "",
|
|
959
|
+
"excerptTokens": [
|
|
960
|
+
{
|
|
961
|
+
"kind": "Content",
|
|
962
|
+
"text": "init(params: "
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"kind": "Reference",
|
|
966
|
+
"text": "GridProCellRendererProps",
|
|
967
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps:interface"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"kind": "Content",
|
|
971
|
+
"text": "): "
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"kind": "Content",
|
|
975
|
+
"text": "void"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "Content",
|
|
979
|
+
"text": ";"
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"isOptional": false,
|
|
983
|
+
"returnTypeTokenRange": {
|
|
984
|
+
"startIndex": 3,
|
|
985
|
+
"endIndex": 4
|
|
986
|
+
},
|
|
987
|
+
"releaseTag": "Public",
|
|
988
|
+
"overloadIndex": 1,
|
|
989
|
+
"parameters": [
|
|
990
|
+
{
|
|
991
|
+
"parameterName": "params",
|
|
992
|
+
"parameterTypeTokenRange": {
|
|
993
|
+
"startIndex": 1,
|
|
994
|
+
"endIndex": 2
|
|
995
|
+
},
|
|
996
|
+
"isOptional": false
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
"name": "init"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"kind": "MethodSignature",
|
|
1003
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProReactCellRenderer#refresh:member(1)",
|
|
1004
|
+
"docComment": "",
|
|
1005
|
+
"excerptTokens": [
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "Content",
|
|
1008
|
+
"text": "refresh(params: "
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"kind": "Reference",
|
|
1012
|
+
"text": "GridProCellRendererProps",
|
|
1013
|
+
"canonicalReference": "@genesislcap/foundation-react-utils!GridProCellRendererProps:interface"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"kind": "Content",
|
|
1017
|
+
"text": "): "
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"kind": "Content",
|
|
1021
|
+
"text": "boolean"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"kind": "Content",
|
|
1025
|
+
"text": ";"
|
|
1026
|
+
}
|
|
1027
|
+
],
|
|
1028
|
+
"isOptional": false,
|
|
1029
|
+
"returnTypeTokenRange": {
|
|
1030
|
+
"startIndex": 3,
|
|
1031
|
+
"endIndex": 4
|
|
1032
|
+
},
|
|
1033
|
+
"releaseTag": "Public",
|
|
1034
|
+
"overloadIndex": 1,
|
|
1035
|
+
"parameters": [
|
|
1036
|
+
{
|
|
1037
|
+
"parameterName": "params",
|
|
1038
|
+
"parameterTypeTokenRange": {
|
|
1039
|
+
"startIndex": 1,
|
|
1040
|
+
"endIndex": 2
|
|
1041
|
+
},
|
|
1042
|
+
"isOptional": false
|
|
1043
|
+
}
|
|
1044
|
+
],
|
|
1045
|
+
"name": "refresh"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"extendsTokenRanges": []
|
|
1049
|
+
},
|
|
287
1050
|
{
|
|
288
1051
|
"kind": "Function",
|
|
289
1052
|
"canonicalReference": "@genesislcap/foundation-react-utils!reactFactory:function(1)",
|