@genesislcap/grid-pro 15.35.1 → 16.0.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/.cursor/rules/ag-embedded-components.mdc +2 -2
- package/dist/custom-elements.json +1149 -1133
- package/dist/dts/datasource/infinite.datasource.d.ts.map +1 -1
- package/dist/dts/grid-components.d.ts +11 -2
- package/dist/dts/grid-components.d.ts.map +1 -1
- package/dist/dts/{grid-pro-beta.d.ts → grid-pro-legacy.d.ts} +154 -245
- package/dist/dts/grid-pro-legacy.d.ts.map +1 -0
- package/dist/dts/grid-pro.d.ts +241 -144
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +14 -0
- package/dist/dts/grid-pro.definitions.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +2 -2
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/multicolumn-dropdown/multicolumn-dropdown.d.ts +2 -1
- package/dist/dts/multicolumn-dropdown/multicolumn-dropdown.d.ts.map +1 -1
- package/dist/dts/react.d.ts +9 -9
- package/dist/esm/datasource/infinite.datasource.js +1 -1
- package/dist/esm/grid-components.js +2 -0
- package/dist/esm/{grid-pro-beta.js → grid-pro-legacy.js} +514 -453
- package/dist/esm/grid-pro.definitions.js +14 -0
- package/dist/esm/grid-pro.js +465 -490
- package/dist/esm/index.js +1 -1
- package/dist/grid-pro.api.json +5115 -4921
- package/dist/grid-pro.d.ts +1232 -1202
- package/dist/react.cjs +4 -4
- package/dist/react.mjs +3 -3
- package/package.json +13 -13
- package/dist/dts/grid-pro-beta.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infinite.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/infinite.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,aAAa,EACb,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AAS,CAA2B;IAE5C;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB;IAWhC,gBAAgB;IAChB,OAAO,CAAC,4BAA4B;IAK3B,SAAS,IAAI,IAAI;IAO1B;;;;OAIG;IACG,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BnC,IAAI;IAqDV,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAI1B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,8BAA8B;IAYtC,gBAAgB;IAChB,OAAO,CAAC,iBAAiB,CAkFvB;IAEF;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAOjC;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAO7B;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,gBAAgB;IAST,OAAO;IAwBP,OAAO;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IASpB;;;;;;;OAOG;IACH,OAAO,CAAC,2BAA2B;IAkBnC,qEAAqE;IACrE,OAAO,CAAC,8BAA8B;IAKtC;;;;OAIG;YACW,cAAc;IAO5B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;YAchB,eAAe;IAsCpB,QAAQ;CAMlB"}
|
|
@@ -143,14 +143,23 @@ export declare const foundationGridComponents: {
|
|
|
143
143
|
foundationGridPro: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
144
144
|
shadowOptions: any;
|
|
145
145
|
baseName: string;
|
|
146
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
147
146
|
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
147
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
148
148
|
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
149
149
|
shadowOptions: any;
|
|
150
150
|
baseName: string;
|
|
151
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
152
151
|
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
152
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
153
153
|
}, typeof import("./grid-pro").GridPro>;
|
|
154
|
+
foundationColumnSelection: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
155
|
+
baseName: string;
|
|
156
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("./column-selection").ColumnSelection, any>;
|
|
157
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
158
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
159
|
+
baseName: string;
|
|
160
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("./column-selection").ColumnSelection, any>;
|
|
161
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
162
|
+
}, typeof import("./column-selection").ColumnSelection>;
|
|
154
163
|
register(container?: Container, ...rest: any[]): void;
|
|
155
164
|
};
|
|
156
165
|
//# sourceMappingURL=grid-components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAQ5D,OAAO,EASL,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAQ5D,OAAO,EASL,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;AAK1B;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAmBd,SAAS,WAAW,GAAG,EAAE;CAa/C,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import type { ColDef, ColumnApi, GridApi, GridOptions, GridParams } from '@ag-grid-community/core';
|
|
2
|
+
import { ColumnState, Grid } from '@ag-grid-community/core';
|
|
1
3
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
4
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
-
import type { ColDef, ColumnState, GridApi, GridOptions, GridParams } from 'ag-grid-community';
|
|
4
|
-
import { type GridProColumnDragBridge } from './column-selection/grid-pro-column-drag-bridge';
|
|
5
5
|
import { GridProBaseDatasource } from './datasource/base.datasource';
|
|
6
|
+
import { AG_PROPERTIES } from './grid-pro.definitions';
|
|
6
7
|
import type { GridComponents, GridProCaseType, GridProErrorEvent, GridProErrorItem, GridProEventsAndCallbacks } from './grid-pro.types';
|
|
7
8
|
import { GridOptionsConfig, GridProStatusBarConfig, GridProStatusBarLabelConfig } from './grid-pro.types';
|
|
8
9
|
import { StatePersistence } from './state-persistence';
|
|
9
|
-
|
|
10
|
+
export { AG_PROPERTIES };
|
|
11
|
+
declare const GridProLegacy_base: (new (...args: any[]) => {
|
|
10
12
|
#_container: import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
11
13
|
#_latestTokenCode: string;
|
|
12
14
|
#_hasFirstLoaded: boolean;
|
|
@@ -374,18 +376,22 @@ declare const GridProBeta_base: (new (...args: any[]) => {
|
|
|
374
376
|
focus(options?: FocusOptions): void;
|
|
375
377
|
}) & typeof FoundationElement;
|
|
376
378
|
/**
|
|
377
|
-
* The Grid Pro element (AG Grid
|
|
378
|
-
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
379
|
-
* @
|
|
379
|
+
* The Grid Pro Legacy element (AG Grid v29 compatible).
|
|
380
|
+
* @remarks Grid Pro Legacy is a Web Component wrapper around the AG Grid Community library.
|
|
381
|
+
* @public
|
|
382
|
+
* @deprecated Legacy AG Grid v29 wrapper. Use `GridPro` (AG Grid v36) instead.
|
|
380
383
|
* @tagname %%prefix%%-grid-pro
|
|
381
384
|
*
|
|
382
|
-
* @fires gridReady - Fired when AG Grid is ready (detail includes the grid-ready event and grid id)
|
|
383
|
-
* @fires onGridReady - Deprecated alias for the grid-ready signal; prefer `gridReady
|
|
385
|
+
* @fires gridReady - Fired when AG Grid is ready (detail includes the grid-ready event and grid id)
|
|
386
|
+
* @fires onGridReady - Deprecated alias for the grid-ready signal; prefer `gridReady`
|
|
384
387
|
* @fires gridready - Native `Event` from `globalEventListener` when AG Grid fires `gridReady` (`agGridDetails` holds the AG Grid event)
|
|
385
|
-
* @remarks Re-emits AG Grid public API events when listeners are registered via `addEventListener` (event names match
|
|
388
|
+
* @remarks Re-emits AG Grid public API events when listeners are registered via `addEventListener` (event names match `ComponentUtil.PUBLIC_EVENTS` from `@ag-grid-community/core`). The same AG Grid events are also dispatched as native `Event`s with lowercased `type` and payload on `agGridDetails` (for example `addEventListener('columnresized', ...)`).
|
|
386
389
|
*/
|
|
387
|
-
export declare class
|
|
390
|
+
export declare class GridProLegacy extends GridProLegacy_base {
|
|
391
|
+
columnApi: ColumnApi;
|
|
388
392
|
gridApi: GridApi;
|
|
393
|
+
private cachedTotalColumnWidth;
|
|
394
|
+
private columnCount;
|
|
389
395
|
gridErrorItems: GridProErrorItem<GridProErrorEvent['detail']>[];
|
|
390
396
|
statePersistence: StatePersistence;
|
|
391
397
|
/**
|
|
@@ -405,19 +411,50 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
405
411
|
* in local storage if you are using `persist-column-state-key`.
|
|
406
412
|
*/
|
|
407
413
|
gridAutosizingEnabled: boolean;
|
|
414
|
+
/**
|
|
415
|
+
* Boolean attribute to control whether the grid automatically sizes columns to fit their content.
|
|
416
|
+
* This will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.
|
|
417
|
+
* @public
|
|
418
|
+
*/
|
|
419
|
+
sizeColumnsToContent: boolean;
|
|
420
|
+
/**
|
|
421
|
+
* Boolean attribute to adjust the size of columns to fit the available horizontal space.
|
|
422
|
+
* This will call AG Grid's sizeColumnsToFit() method.
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
sizeColumnsToFit: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
|
|
428
|
+
*/
|
|
429
|
+
addIndex: number;
|
|
430
|
+
/**
|
|
431
|
+
* Whether to use the `applyTransactionAsync` function for *add* transactions
|
|
432
|
+
* @remarks Defaults to false
|
|
433
|
+
*/
|
|
434
|
+
asyncAdd: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* Whether to use the `applyTransactionAsync` function for *remove* transactions
|
|
437
|
+
* @remarks Defaults to false
|
|
438
|
+
*/
|
|
439
|
+
asyncRemove: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* Whether to use the `applyTransactionAsync` function for *update* transactions
|
|
442
|
+
* @remarks Defaults to true
|
|
443
|
+
*/
|
|
444
|
+
asyncUpdate: boolean;
|
|
408
445
|
/**
|
|
409
446
|
* If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef
|
|
410
447
|
* @remarks Defaults to true
|
|
411
448
|
*/
|
|
412
449
|
enableCellFlashing: boolean;
|
|
450
|
+
/**
|
|
451
|
+
* @deprecated - use `enableRowFlashing` instead.
|
|
452
|
+
*/
|
|
453
|
+
enabledRowFlashing: boolean;
|
|
413
454
|
/**
|
|
414
455
|
* If true, will enable row flashing for all rows for `add` async transactions
|
|
415
456
|
*/
|
|
416
457
|
enableRowFlashing: boolean;
|
|
417
|
-
/** Wired to `gridOptions.context` for columns picker → grid drag (see bridge module). */
|
|
418
|
-
private readonly columnDragBridge;
|
|
419
|
-
/** @internal Shared AG column-drag bridge for custom tool panels. */
|
|
420
|
-
getColumnDragBridge(): GridProColumnDragBridge;
|
|
421
458
|
/**
|
|
422
459
|
* The key to use for persisting the column state in local browser or KV storage.
|
|
423
460
|
*/
|
|
@@ -426,6 +463,10 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
426
463
|
* The key to use for persisting the filter model in local browser or KV storage.
|
|
427
464
|
*/
|
|
428
465
|
persistFilterModelKey: string;
|
|
466
|
+
/**
|
|
467
|
+
* The default column config to reset to when deleteColumnState is called.
|
|
468
|
+
*/
|
|
469
|
+
defaultColumnConfig: ColDef[];
|
|
429
470
|
/**
|
|
430
471
|
* The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
|
|
431
472
|
* @remarks Can be one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.
|
|
@@ -439,12 +480,15 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
439
480
|
*/
|
|
440
481
|
rowData: any[];
|
|
441
482
|
rowDataChanged(_: any, rowData: any): void;
|
|
483
|
+
gridFontFace: string;
|
|
442
484
|
columnComponentName: string;
|
|
443
485
|
eventsAndCallbacks: GridProEventsAndCallbacks;
|
|
444
486
|
headerHeight: number;
|
|
445
487
|
rowHeight: number;
|
|
488
|
+
theme: string;
|
|
489
|
+
themeChanged(oldValue: string, newValue: string): void;
|
|
446
490
|
classNames: string;
|
|
447
|
-
agGrid:
|
|
491
|
+
agGrid: Grid;
|
|
448
492
|
gridSlot: HTMLSlotElement;
|
|
449
493
|
/**
|
|
450
494
|
* The slot ref binds asynchronously, and the queued `initGrid` skips any run that beats it. FAST
|
|
@@ -476,12 +520,6 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
476
520
|
* This requires AG Grid Enterprise module to be available for the status bar to be displayed when enabled.
|
|
477
521
|
*/
|
|
478
522
|
withStatusBar: boolean;
|
|
479
|
-
/**
|
|
480
|
-
* Shows a Column Selection button above the grid.
|
|
481
|
-
* @public
|
|
482
|
-
*/
|
|
483
|
-
enableColumnSelection: boolean;
|
|
484
|
-
enableColumnSelectionChanged(): void;
|
|
485
523
|
/**
|
|
486
524
|
* Custom error handler dialog template function.
|
|
487
525
|
* @remarks
|
|
@@ -491,23 +529,23 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
491
529
|
*/
|
|
492
530
|
customErrorHandlerTemplate?: (prefix: string, gridErrorItems: GridProErrorItem<any>[]) => ViewTemplate;
|
|
493
531
|
private columnState;
|
|
494
|
-
protected agAttributes: Record<string,
|
|
532
|
+
protected agAttributes: Record<string, string>;
|
|
495
533
|
protected agPropertiesMap: Record<string, string>;
|
|
496
534
|
protected agGridOptions: GridOptions;
|
|
497
|
-
/**
|
|
535
|
+
/**
|
|
536
|
+
* Last grid options supplied via the public `gridOptions` setter (not datasource init).
|
|
537
|
+
* Used as the merge base in `handleInitialize` so user options survive datasource restart.
|
|
538
|
+
*/
|
|
498
539
|
private userProvidedGridOptions;
|
|
499
540
|
private applyingDatasourceGridOptions;
|
|
500
541
|
protected initialised: boolean;
|
|
501
542
|
private rehydrationAttempted;
|
|
502
|
-
|
|
503
|
-
private pendingSchemaUpdate?;
|
|
504
|
-
private rootEventsListeners;
|
|
505
|
-
private datasourceEventHandlers;
|
|
543
|
+
private eventHandlers;
|
|
506
544
|
private gridEventsQueue;
|
|
507
545
|
private registeredGridEvents;
|
|
508
546
|
private gridEventListeners;
|
|
509
|
-
private luminanceSubscription?;
|
|
510
547
|
private visibilityObserverCleanup?;
|
|
548
|
+
private pendingSchemaUpdate?;
|
|
511
549
|
private readonly boundGlobalEventListener;
|
|
512
550
|
private _filterConfig;
|
|
513
551
|
getfilterModel(): Promise<{
|
|
@@ -531,8 +569,13 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
531
569
|
* ```
|
|
532
570
|
*/
|
|
533
571
|
gridOptionsConfig: GridOptionsConfig;
|
|
534
|
-
provider: any;
|
|
535
572
|
constructor();
|
|
573
|
+
/**
|
|
574
|
+
* The Infinite Row Model is only wired into `GridPro` (AG Grid v36), so an infinite datasource placed
|
|
575
|
+
* inside this element can never load data. Report it instead of ignoring the event.
|
|
576
|
+
* @internal
|
|
577
|
+
*/
|
|
578
|
+
private refuseInfiniteDatasource;
|
|
536
579
|
/**
|
|
537
580
|
* Adds an event listener to the grid element.
|
|
538
581
|
* @param eventType - The event type to listen for. Recommened to use the `Events` from AG Grid.
|
|
@@ -546,18 +589,14 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
546
589
|
private handleError;
|
|
547
590
|
private handleBaseDatasourceError;
|
|
548
591
|
hideDatasourceError(): void;
|
|
549
|
-
private handleLuminanceChange;
|
|
550
|
-
private readonly luminanceObserver;
|
|
551
592
|
connectedCallback(): void;
|
|
552
593
|
disconnectedCallback(): void;
|
|
553
|
-
private syncColumnSelectionHostLayout;
|
|
554
594
|
private performDisconnectCleanup;
|
|
555
|
-
private destroyGridInstance;
|
|
556
595
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @
|
|
596
|
+
* Tear down the AG Grid instance. Prefer {@link GridApi#destroy}; if `gridApi` is not set yet
|
|
597
|
+
* (e.g. disconnect before `grid-ready`), fall back to {@link Grid#destroy} on the vanilla wrapper.
|
|
559
598
|
*/
|
|
560
|
-
private
|
|
599
|
+
private destroyGridInstance;
|
|
561
600
|
/**
|
|
562
601
|
* Handles datasource initialization
|
|
563
602
|
* @internal
|
|
@@ -573,12 +612,6 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
573
612
|
* @internal
|
|
574
613
|
*/
|
|
575
614
|
private handleDataChanged;
|
|
576
|
-
/**
|
|
577
|
-
* Whether the live grid runs AG Grid's client-side row model (the default when the datasource
|
|
578
|
-
* set no `rowModelType`).
|
|
579
|
-
* @internal
|
|
580
|
-
*/
|
|
581
|
-
private get isClientSideRowModel();
|
|
582
615
|
private flashAddedCells;
|
|
583
616
|
/**
|
|
584
617
|
* Handles schema updates from datasource
|
|
@@ -586,24 +619,10 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
586
619
|
*/
|
|
587
620
|
private handleSchemaUpdated;
|
|
588
621
|
/**
|
|
589
|
-
* Builds and applies column defs from a schema payload.
|
|
622
|
+
* Builds and applies column defs from a schema/metadata payload.
|
|
590
623
|
* @internal
|
|
591
624
|
*/
|
|
592
625
|
private processSchemaUpdate;
|
|
593
|
-
/**
|
|
594
|
-
* Downgrades enterprise filters in metadata-generated colDefs when their modules are not
|
|
595
|
-
* registered — from v35 AG Grid throws on unregistered filters instead of falling back.
|
|
596
|
-
* Enum columns (recognised by their metadata-sourced set-filter values) keep those values by
|
|
597
|
-
* falling back to the community `EnumColumnFilter` instead of a plain text filter.
|
|
598
|
-
*
|
|
599
|
-
* The enum floating filter is only wired as the column's component, not enabled: AG's floating
|
|
600
|
-
* filter is a full-width header row, so enabling it for one column changes the layout of every
|
|
601
|
-
* column. Active-filter state is surfaced instead by AG's native header filter icon plus the
|
|
602
|
-
* header tooltip the enum filter maintains; consumers wanting the floating row opt in with
|
|
603
|
-
* `floatingFilter: true`.
|
|
604
|
-
* @internal
|
|
605
|
-
*/
|
|
606
|
-
private applyCommunityFilterFallbacks;
|
|
607
626
|
/**
|
|
608
627
|
* Handles data clearing from datasource
|
|
609
628
|
* @internal
|
|
@@ -669,18 +688,6 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
669
688
|
* @internal
|
|
670
689
|
*/
|
|
671
690
|
private handleApplyServerSideTransaction;
|
|
672
|
-
/**
|
|
673
|
-
* Handles setting infinite datasource
|
|
674
|
-
* @internal
|
|
675
|
-
*/
|
|
676
|
-
private handleSetInfiniteDatasource;
|
|
677
|
-
/**
|
|
678
|
-
* Handles refreshing the infinite cache.
|
|
679
|
-
* @remarks Mirrors {@link GridProBeta.handleRefreshServerSide}: `purge` drops the block cache
|
|
680
|
-
* and re-reads, otherwise the loaded blocks are re-read in place.
|
|
681
|
-
* @internal
|
|
682
|
-
*/
|
|
683
|
-
private handleRefreshInfiniteCache;
|
|
684
691
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
685
692
|
statePersistanceEnabled(): boolean;
|
|
686
693
|
/**
|
|
@@ -722,7 +729,7 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
722
729
|
*/
|
|
723
730
|
private debouncedColumnAutosize;
|
|
724
731
|
/**
|
|
725
|
-
* If {@link @genesislcap/grid-pro#
|
|
732
|
+
* If {@link @genesislcap/grid-pro#GridProLegacy.gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
726
733
|
* @internal
|
|
727
734
|
*/
|
|
728
735
|
private removeConfigWidthsToAutosize;
|
|
@@ -734,13 +741,20 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
734
741
|
* @public
|
|
735
742
|
*/
|
|
736
743
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
744
|
+
/**
|
|
745
|
+
* Deletes the saved column state for the current grid
|
|
746
|
+
* @param resetToDefault - Whether to reset columns to their default configuration. Defaults to true.
|
|
747
|
+
* @remarks This removes the persisted column state from storage, allowing the grid to use default column configuration
|
|
748
|
+
* @public
|
|
749
|
+
*/
|
|
750
|
+
deleteColumnState(resetToDefault?: boolean): Promise<void>;
|
|
737
751
|
private restoreColumnState;
|
|
738
752
|
cacheFilterConfig(): void;
|
|
739
753
|
restoreCachedFilterConfig(): Promise<void>;
|
|
740
754
|
/**
|
|
741
755
|
* @public
|
|
742
756
|
*/
|
|
743
|
-
get gridOptions():
|
|
757
|
+
get gridOptions(): GridOptionsConfig;
|
|
744
758
|
/**
|
|
745
759
|
* @public
|
|
746
760
|
*/
|
|
@@ -755,25 +769,33 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
755
769
|
* @public
|
|
756
770
|
*/
|
|
757
771
|
get gridProDatasource(): GridProBaseDatasource;
|
|
758
|
-
/**
|
|
759
|
-
* @public
|
|
760
|
-
*/
|
|
761
|
-
get isInfiniteRowModel(): boolean;
|
|
762
772
|
/**
|
|
763
773
|
* Reports the currently visible columns to the datasource. The datasource decides what to do with
|
|
764
774
|
* them (e.g. narrowing the server request); the grid stays agnostic of that behaviour.
|
|
765
775
|
* @internal
|
|
766
776
|
*/
|
|
767
777
|
private notifyDatasourceVisibleColumns;
|
|
768
|
-
set gridOptions(options:
|
|
778
|
+
set gridOptions(options: GridOptionsConfig);
|
|
769
779
|
private setLocalGridOptions;
|
|
770
780
|
/**
|
|
771
781
|
* Clears the local grid options, this is used to clear the grid options when the grid is restarted.
|
|
772
782
|
* @public
|
|
773
783
|
*/
|
|
774
784
|
clearLocalGridOptions(): void;
|
|
785
|
+
/**
|
|
786
|
+
* Clears all grid option state when the grid element is fully torn down.
|
|
787
|
+
* @internal
|
|
788
|
+
*/
|
|
775
789
|
private resetGridOptionsState;
|
|
776
790
|
private initGrid;
|
|
791
|
+
/**
|
|
792
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
793
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
794
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
795
|
+
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
796
|
+
* @returns The merged column definitions.
|
|
797
|
+
*/
|
|
798
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<(ColDef<any> | import("@ag-grid-community/core").ColGroupDef<any>)[]>;
|
|
777
799
|
/**
|
|
778
800
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
779
801
|
* @public
|
|
@@ -783,182 +805,69 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
783
805
|
* on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
|
|
784
806
|
* @returns The merged column definitions.
|
|
785
807
|
*/
|
|
786
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<(
|
|
787
|
-
colId?: string;
|
|
788
|
-
field?: string;
|
|
789
|
-
type?: string | string[];
|
|
790
|
-
valueGetter?: string | import("@ag-grid-community/core").ValueGetterFunc<any> | import("ag-grid-community").ValueGetterFunc<any, any, any>;
|
|
791
|
-
valueFormatter?: string | import("@ag-grid-community/core").ValueFormatterFunc<any> | import("ag-grid-community").ValueFormatterFunc<any, any, any>;
|
|
792
|
-
refData?: import("ag-grid-community").RefData;
|
|
793
|
-
keyCreator?: ((params: import("@ag-grid-community/core").KeyCreatorParams<any, any>) => string) | import("ag-grid-community").KeyCreatorFunc<any, any, any>;
|
|
794
|
-
equals?: (valueA: any, valueB: any) => boolean;
|
|
795
|
-
tooltipField?: string;
|
|
796
|
-
tooltipValueGetter?: ((params: import("@ag-grid-community/core").ITooltipParams<any, any, any>) => string | any) | import("ag-grid-community").TooltipValueGetterFunc<any, any, any>;
|
|
797
|
-
checkboxSelection?: boolean | import("@ag-grid-community/core").CheckboxSelectionCallback<any> | import("ag-grid-community").CheckboxSelectionCallback<any, any, any>;
|
|
798
|
-
showDisabledCheckboxes?: boolean;
|
|
799
|
-
icons?: {
|
|
800
|
-
[key: string]: string | Function;
|
|
801
|
-
};
|
|
802
|
-
suppressNavigable?: boolean | import("@ag-grid-community/core").SuppressNavigableCallback<any> | import("ag-grid-community").SuppressNavigableCallback<any, any, any>;
|
|
803
|
-
suppressKeyboardEvent?: ((params: import("@ag-grid-community/core").SuppressKeyboardEventParams<any>) => boolean) | import("ag-grid-community").SuppressKeyboardEventFunc<any, any, any>;
|
|
804
|
-
suppressPaste?: boolean | import("@ag-grid-community/core").SuppressPasteCallback<any> | import("ag-grid-community").SuppressPasteCallback<any, any, any>;
|
|
805
|
-
suppressFillHandle?: boolean;
|
|
806
|
-
hide?: boolean | null;
|
|
807
|
-
initialHide?: boolean;
|
|
808
|
-
lockVisible?: boolean;
|
|
809
|
-
lockPosition?: boolean | "left" | "right";
|
|
810
|
-
suppressMovable?: boolean;
|
|
811
|
-
editable?: boolean | import("@ag-grid-community/core").EditableCallback<any> | import("ag-grid-community").EditableCallback<any, any, any>;
|
|
812
|
-
valueSetter?: string | import("@ag-grid-community/core").ValueSetterFunc<any> | import("ag-grid-community").ValueSetterFunc<any, any, any>;
|
|
813
|
-
valueParser?: string | import("@ag-grid-community/core").ValueParserFunc<any, any> | import("ag-grid-community").ValueParserFunc<any, any, any>;
|
|
814
|
-
cellEditor?: any;
|
|
815
|
-
cellEditorFramework?: any;
|
|
816
|
-
cellEditorParams?: any;
|
|
817
|
-
cellEditorSelector?: import("@ag-grid-community/core").CellEditorSelectorFunc<any> | import("ag-grid-community").CellEditorSelectorFunc<any, any, any>;
|
|
818
|
-
singleClickEdit?: boolean;
|
|
819
|
-
cellEditorPopup?: boolean;
|
|
820
|
-
cellEditorPopupPosition?: "over" | "under";
|
|
821
|
-
onCellValueChanged?: ((event: import("@ag-grid-community/core").NewValueParams<any>) => void) | ((event: import("ag-grid-community").NewValueParams<any, any, any>) => void);
|
|
822
|
-
onCellClicked?: ((event: import("@ag-grid-community/core").CellClickedEvent<any, any>) => void) | ((event: import("ag-grid-community").CellClickedEvent<any, any, any>) => void);
|
|
823
|
-
onCellDoubleClicked?: ((event: import("@ag-grid-community/core").CellDoubleClickedEvent<any, any>) => void) | ((event: import("ag-grid-community").CellDoubleClickedEvent<any, any, any>) => void);
|
|
824
|
-
onCellContextMenu?: ((event: import("@ag-grid-community/core").CellContextMenuEvent<any, any>) => void) | ((event: import("ag-grid-community").CellContextMenuEvent<any, any, any>) => void);
|
|
825
|
-
getQuickFilterText?: ((params: import("@ag-grid-community/core").GetQuickFilterTextParams<any, any>) => string) | import("ag-grid-community").GetQuickFilterText<any, any, any>;
|
|
826
|
-
filterValueGetter?: string | import("@ag-grid-community/core").ValueGetterFunc<any> | import("ag-grid-community").ValueGetterFunc<any, any, any>;
|
|
827
|
-
floatingFilter?: boolean;
|
|
828
|
-
wrapHeaderText?: boolean;
|
|
829
|
-
autoHeaderHeight?: boolean;
|
|
830
|
-
headerComponent?: any;
|
|
831
|
-
headerComponentFramework?: any;
|
|
832
|
-
headerComponentParams?: any;
|
|
833
|
-
menuTabs?: import("@ag-grid-community/core").ColumnMenuTab[];
|
|
834
|
-
columnsMenuParams?: import("@ag-grid-community/core").ColumnsMenuParams;
|
|
835
|
-
suppressMenu?: boolean;
|
|
836
|
-
headerCheckboxSelection?: boolean | import("@ag-grid-community/core").HeaderCheckboxSelectionCallback<any> | import("ag-grid-community").HeaderCheckboxSelectionCallback<any, any, any>;
|
|
837
|
-
headerCheckboxSelectionFilteredOnly?: boolean;
|
|
838
|
-
headerCheckboxSelectionCurrentPageOnly?: boolean;
|
|
839
|
-
chartDataType?: "category" | "series" | "time" | "excluded";
|
|
840
|
-
pinned?: boolean | "left" | "right" | null;
|
|
841
|
-
initialPinned?: boolean | "left" | "right";
|
|
842
|
-
lockPinned?: boolean;
|
|
843
|
-
pivot?: boolean | null;
|
|
844
|
-
initialPivot?: boolean;
|
|
845
|
-
pivotIndex?: number | null;
|
|
846
|
-
initialPivotIndex?: number;
|
|
847
|
-
pivotComparator?: (valueA: string, valueB: string) => number;
|
|
848
|
-
enablePivot?: boolean;
|
|
849
|
-
cellStyle?: import("@ag-grid-community/core").CellStyle | import("@ag-grid-community/core").CellStyleFunc<any> | import("ag-grid-community").CellStyleFunc<any, any, any>;
|
|
850
|
-
cellClass?: string | string[] | import("@ag-grid-community/core").CellClassFunc<any> | import("ag-grid-community").CellClassFunc<any, any, any>;
|
|
851
|
-
cellClassRules?: import("@ag-grid-community/core").CellClassRules<any> | import("ag-grid-community").CellClassRules<any, any, any>;
|
|
852
|
-
cellRenderer?: any;
|
|
853
|
-
cellRendererFramework?: any;
|
|
854
|
-
cellRendererParams?: any;
|
|
855
|
-
cellRendererSelector?: import("@ag-grid-community/core").CellRendererSelectorFunc<any> | import("ag-grid-community").CellRendererSelectorFunc<any, any, any>;
|
|
856
|
-
autoHeight?: boolean;
|
|
857
|
-
wrapText?: boolean;
|
|
858
|
-
enableCellChangeFlash?: boolean;
|
|
859
|
-
suppressCellFlash?: boolean;
|
|
860
|
-
rowDrag?: boolean | import("@ag-grid-community/core").RowDragCallback<any> | import("ag-grid-community").RowDragCallback<any, any, any>;
|
|
861
|
-
rowDragText?: import("ag-grid-community").RowDragTextFunc | ((params: import("@ag-grid-community/core").IRowDragItem, dragItemCount: number) => string);
|
|
862
|
-
dndSource?: boolean | import("@ag-grid-community/core").DndSourceCallback<any> | import("ag-grid-community").DndSourceCallback<any, any, any>;
|
|
863
|
-
dndSourceOnRowDrag?: ((params: import("@ag-grid-community/core").DndSourceOnRowDragParams<any>) => void) | import("ag-grid-community").DndSourceOnRowDragFunc<any, any>;
|
|
864
|
-
rowGroup?: boolean | null;
|
|
865
|
-
initialRowGroup?: boolean;
|
|
866
|
-
rowGroupIndex?: number | null;
|
|
867
|
-
initialRowGroupIndex?: number;
|
|
868
|
-
enableRowGroup?: boolean;
|
|
869
|
-
enableValue?: boolean;
|
|
870
|
-
aggFunc?: string | import("@ag-grid-community/core").IAggFunc<any, any> | import("ag-grid-community").IAggFunc<any, any, any>;
|
|
871
|
-
initialAggFunc?: string | import("@ag-grid-community/core").IAggFunc<any, any> | import("ag-grid-community").IAggFunc<any, any, any>;
|
|
872
|
-
defaultAggFunc?: string;
|
|
873
|
-
allowedAggFuncs?: string[];
|
|
874
|
-
showRowGroup?: string | boolean;
|
|
875
|
-
sortable?: boolean;
|
|
876
|
-
sort?: "asc" | "desc" | import("ag-grid-community").SortDef;
|
|
877
|
-
initialSort?: "asc" | "desc" | import("ag-grid-community").SortDef;
|
|
878
|
-
sortIndex?: number | null;
|
|
879
|
-
initialSortIndex?: number;
|
|
880
|
-
sortingOrder?: (import("ag-grid-community").SortDirection | import("ag-grid-community").SortDef)[];
|
|
881
|
-
comparator?: ((valueA: any, valueB: any, nodeA: import("@ag-grid-community/core").IRowNode<any>, nodeB: import("@ag-grid-community/core").IRowNode<any>, isDescending: boolean) => number) | import("ag-grid-community").SortComparatorFn<any, any> | Partial<Record<import("ag-grid-community").SortType, import("ag-grid-community").SortComparatorFn<any, any>>>;
|
|
882
|
-
unSortIcon?: boolean;
|
|
883
|
-
colSpan?: ((params: import("@ag-grid-community/core").ColSpanParams<any>) => number) | import("ag-grid-community").ColSpanFunc<any, any, any>;
|
|
884
|
-
rowSpan?: ((params: import("@ag-grid-community/core").RowSpanParams<any>) => number) | import("ag-grid-community").RowSpanFunc<any, any, any>;
|
|
885
|
-
width?: number;
|
|
886
|
-
initialWidth?: number;
|
|
887
|
-
minWidth?: number;
|
|
888
|
-
maxWidth?: number;
|
|
889
|
-
flex?: number | null;
|
|
890
|
-
initialFlex?: number;
|
|
891
|
-
resizable?: boolean;
|
|
892
|
-
suppressSizeToFit?: boolean;
|
|
893
|
-
suppressAutoSize?: boolean;
|
|
894
|
-
pivotValueColumn?: import("@ag-grid-community/core").Column | import("ag-grid-community").Column<any>;
|
|
895
|
-
pivotTotalColumnIds?: string[];
|
|
896
|
-
spanHeaderHeight?: boolean;
|
|
897
|
-
headerName?: string;
|
|
898
|
-
headerValueGetter?: string | import("@ag-grid-community/core").HeaderValueGetterFunc<any> | import("ag-grid-community").HeaderValueGetterFunc<any, any, any>;
|
|
899
|
-
headerTooltip?: string;
|
|
900
|
-
headerClass?: string | string[] | ((params: import("@ag-grid-community/core").HeaderClassParams<any>) => string | string[] | undefined) | ((params: import("ag-grid-community").HeaderClassParams<any, any, any>) => string | string[] | undefined);
|
|
901
|
-
suppressHeaderKeyboardEvent?: ((params: import("@ag-grid-community/core").SuppressHeaderKeyboardEventParams<any>) => boolean) | import("ag-grid-community").SuppressHeaderKeyboardEventFunc<any, any, any>;
|
|
902
|
-
columnGroupShow?: "open" | "closed";
|
|
903
|
-
toolPanelClass?: string | string[] | ((params: import("@ag-grid-community/core").ToolPanelClassParams<any>) => string | string[] | undefined) | ((params: import("ag-grid-community").ToolPanelClassParams<any, any, any>) => string | string[] | undefined);
|
|
904
|
-
suppressColumnsToolPanel?: boolean;
|
|
905
|
-
suppressFiltersToolPanel?: boolean;
|
|
906
|
-
tooltipComponent?: any;
|
|
907
|
-
tooltipComponentFramework?: any;
|
|
908
|
-
tooltipComponentParams?: any;
|
|
909
|
-
pivotKeys?: string[];
|
|
910
|
-
filter?: any;
|
|
911
|
-
filterFramework?: any;
|
|
912
|
-
filterParams?: any;
|
|
913
|
-
floatingFilterComponent?: any;
|
|
914
|
-
floatingFilterComponentFramework?: any;
|
|
915
|
-
floatingFilterComponentParams?: any;
|
|
916
|
-
cellDataType?: boolean | string;
|
|
917
|
-
allowFormula?: boolean;
|
|
918
|
-
calculatedExpression?: string;
|
|
919
|
-
tooltipComponentSelector?: import("ag-grid-community").CellEditorSelectorFunc | import("ag-grid-community").CellRendererSelectorFunc;
|
|
920
|
-
suppressNoteActions?: boolean | import("ag-grid-community").SuppressNoteActionsCallback<any, any, any>;
|
|
921
|
-
useValueFormatterForExport?: boolean;
|
|
922
|
-
groupRowEditable?: boolean | import("ag-grid-community").GroupRowEditableCallback<any, any>;
|
|
923
|
-
groupRowValueSetter?: boolean | import("ag-grid-community").GroupRowValueSetterFunc<any, any> | import("ag-grid-community").GroupRowValueSetterOptions<any, any, any>;
|
|
924
|
-
useValueParserForImport?: boolean;
|
|
925
|
-
suppressFloatingFilterButton?: boolean;
|
|
926
|
-
dateComponent?: any;
|
|
927
|
-
dateComponentParams?: any;
|
|
928
|
-
getFindText?: import("ag-grid-community").GetFindTextFunc<any, any, any>;
|
|
929
|
-
columnChooserParams?: import("ag-grid-community").ColumnChooserParams;
|
|
930
|
-
suppressHeaderMenuButton?: boolean;
|
|
931
|
-
suppressHeaderFilterButton?: boolean;
|
|
932
|
-
mainMenuItems?: (import("ag-grid-community").MenuItemDef<any, any> | import("ag-grid-community").DefaultMenuItem)[] | import("ag-grid-community").GetMainMenuItems<any>;
|
|
933
|
-
contextMenuItems?: (import("ag-grid-community").MenuItemDef<any, any> | import("ag-grid-community").DefaultMenuItem)[] | import("ag-grid-community").GetContextMenuItems<any>;
|
|
934
|
-
loadingCellRenderer?: any;
|
|
935
|
-
loadingCellRendererParams?: any;
|
|
936
|
-
loadingCellRendererSelector?: import("ag-grid-community").ILoadingCellRendererSelectorFunc<any, any, any>;
|
|
937
|
-
valueIndex?: number;
|
|
938
|
-
initialValueIndex?: number;
|
|
939
|
-
showValuesAs?: import("ag-grid-community").ShowValuesAsType | import("ag-grid-community").ShowValuesAs | null;
|
|
940
|
-
initialShowValuesAs?: import("ag-grid-community").ShowValuesAsType | import("ag-grid-community").ShowValuesAs;
|
|
941
|
-
showValuesAsDef?: import("ag-grid-community").ShowValuesAsDef<any, any>;
|
|
942
|
-
enableShowValuesAs?: boolean;
|
|
943
|
-
rowGroupingHierarchy?: (string | ColDef<any, any>)[];
|
|
944
|
-
groupHierarchy?: (string | ColDef<any, any>)[];
|
|
945
|
-
spanRows?: boolean | import("ag-grid-community").SpanRowsFunc<any, any, any>;
|
|
946
|
-
suppressSpanHeaderHeight?: boolean;
|
|
947
|
-
headerTooltipValueGetter?: import("ag-grid-community").HeaderTooltipValueGetterFunc<any, any, any>;
|
|
948
|
-
headerStyle?: import("ag-grid-community").HeaderStyle | import("ag-grid-community").HeaderStyleFunc<any, any, any>;
|
|
949
|
-
cellAriaRole?: string;
|
|
950
|
-
context?: any;
|
|
951
|
-
suppressHeaderContextMenu?: boolean;
|
|
952
|
-
})[]>;
|
|
808
|
+
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<(ColDef<any> | import("@ag-grid-community/core").ColGroupDef<any>)[]>;
|
|
953
809
|
private panelExists;
|
|
954
810
|
private addRowCountPanel;
|
|
955
811
|
private addMaxRowsPanel;
|
|
956
812
|
private addAggregationPanel;
|
|
957
813
|
private addDatasourcePanels;
|
|
958
814
|
protected setupStatusBar(gridOptions: GridOptions): void;
|
|
815
|
+
/**
|
|
816
|
+
* Handles column sizing based on sizeColumnsToContent and sizeColumnsToFit attributes
|
|
817
|
+
* @private
|
|
818
|
+
*/
|
|
819
|
+
private handleColumnSizing;
|
|
820
|
+
/**
|
|
821
|
+
* Handles when both sizeColumnsToContent and sizeColumnsToFit are enabled
|
|
822
|
+
* @private
|
|
823
|
+
*/
|
|
824
|
+
private handleBothSizingModes;
|
|
825
|
+
/**
|
|
826
|
+
* Handles individual sizing modes when only one is enabled
|
|
827
|
+
* @private
|
|
828
|
+
*/
|
|
829
|
+
private handleIndividualSizingModes;
|
|
830
|
+
/**
|
|
831
|
+
* Calculates the total width of all columns
|
|
832
|
+
* @private
|
|
833
|
+
*/
|
|
834
|
+
private calculateTotalColumnWidth;
|
|
835
|
+
/**
|
|
836
|
+
* Invalidates the cached column width calculation
|
|
837
|
+
* @private
|
|
838
|
+
* @remarks This method is called automatically when column changes occur (resize, move, pin, etc.)
|
|
839
|
+
* to ensure the cached width calculation remains accurate.
|
|
840
|
+
*/
|
|
841
|
+
private invalidateColumnWidthCache;
|
|
842
|
+
/**
|
|
843
|
+
* Gets the available grid width with fallbacks
|
|
844
|
+
* @private
|
|
845
|
+
*/
|
|
846
|
+
private getGridWidth;
|
|
959
847
|
get observedAttributes(): string[];
|
|
960
848
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
961
849
|
globalEventListener(eventType: any, event: any): void;
|
|
850
|
+
private fontFaceDestroy;
|
|
851
|
+
private insertFontFace;
|
|
852
|
+
private destroyFontFace;
|
|
962
853
|
}
|
|
963
|
-
|
|
964
|
-
|
|
854
|
+
/**
|
|
855
|
+
* A function that returns a Foundation Grid Pro Legacy registration for configuring the component with a DesignSystem.
|
|
856
|
+
*
|
|
857
|
+
* @public
|
|
858
|
+
* @deprecated Legacy AG Grid v29 wrapper. Use `GridPro` (AG Grid v36) instead.
|
|
859
|
+
* @remarks
|
|
860
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
861
|
+
*/
|
|
862
|
+
export declare const foundationGridProLegacy: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
863
|
+
shadowOptions: any;
|
|
864
|
+
baseName: string;
|
|
865
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
866
|
+
template: ViewTemplate<any, any>;
|
|
867
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
868
|
+
shadowOptions: any;
|
|
869
|
+
baseName: string;
|
|
870
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
871
|
+
template: ViewTemplate<any, any>;
|
|
872
|
+
}, typeof GridProLegacy>;
|
|
873
|
+
//# sourceMappingURL=grid-pro-legacy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-pro-legacy.d.ts","sourceRoot":"","sources":["../../src/grid-pro-legacy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAGT,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AASnG,OAAO,EAAyB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAuB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAiBrE,OAAO,EACL,aAAa,EAOd,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAQL,iBAAiB,EAEjB,sBAAsB,EACtB,2BAA2B,EAE5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AA6BvD,OAAO,EAAE,aAAa,EAAE,CAAC;;;;;;;;kBALP,CAAC;;;;;;;;8BAgChB,CAAA,cACA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA2BS,CAAC;4IAGF,CAAC;wFAGuC,CAAC;+IAIxC,CAAC;2FAGgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCpC,CAAA;;;;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