@genesislcap/grid-pro 15.17.1 → 15.18.0-FUI-2601.3
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 +8032 -6159
- package/dist/dts/columns-tool-panel/columns-tool-panel-ag-drag.d.ts +12 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel-ag-drag.d.ts.map +1 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.d.ts +150 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.d.ts.map +1 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.styles.d.ts +9 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.styles.d.ts.map +1 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.template.d.ts +12 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.template.d.ts.map +1 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.utils.d.ts +48 -0
- package/dist/dts/columns-tool-panel/columns-tool-panel.utils.d.ts.map +1 -0
- package/dist/dts/columns-tool-panel/grid-pro-column-drag-bridge.d.ts +39 -0
- package/dist/dts/columns-tool-panel/grid-pro-column-drag-bridge.d.ts.map +1 -0
- package/dist/dts/columns-tool-panel/index.d.ts +5 -0
- package/dist/dts/columns-tool-panel/index.d.ts.map +1 -0
- package/dist/dts/grid-pro-beta.d.ts +28 -3
- package/dist/dts/grid-pro-beta.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +10 -0
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/react.d.ts +20 -0
- package/dist/dts/side-bar/index.d.ts +6 -0
- package/dist/dts/side-bar/index.d.ts.map +1 -0
- package/dist/dts/side-bar/side-bar.d.ts +417 -0
- package/dist/dts/side-bar/side-bar.d.ts.map +1 -0
- package/dist/dts/side-bar/side-bar.styles.d.ts +19 -0
- package/dist/dts/side-bar/side-bar.styles.d.ts.map +1 -0
- package/dist/dts/side-bar/side-bar.template.d.ts +11 -0
- package/dist/dts/side-bar/side-bar.template.d.ts.map +1 -0
- package/dist/dts/side-bar/side-bar.tools.d.ts +12 -0
- package/dist/dts/side-bar/side-bar.tools.d.ts.map +1 -0
- package/dist/dts/side-bar/side-bar.types.d.ts +77 -0
- package/dist/dts/side-bar/side-bar.types.d.ts.map +1 -0
- package/dist/esm/columns-tool-panel/columns-tool-panel-ag-drag.js +50 -0
- package/dist/esm/columns-tool-panel/columns-tool-panel.js +500 -0
- package/dist/esm/columns-tool-panel/columns-tool-panel.styles.js +180 -0
- package/dist/esm/columns-tool-panel/columns-tool-panel.template.js +70 -0
- package/dist/esm/columns-tool-panel/columns-tool-panel.utils.js +185 -0
- package/dist/esm/columns-tool-panel/grid-pro-column-drag-bridge.js +57 -0
- package/dist/esm/columns-tool-panel/index.js +4 -0
- package/dist/esm/grid-pro-beta.js +93 -3
- package/dist/esm/grid-pro.styles.js +4 -0
- package/dist/esm/grid-pro.template.js +19 -2
- package/dist/esm/grid-pro.types.js +11 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/side-bar/index.js +5 -0
- package/dist/esm/side-bar/side-bar.js +188 -0
- package/dist/esm/side-bar/side-bar.styles.js +155 -0
- package/dist/esm/side-bar/side-bar.template.js +48 -0
- package/dist/esm/side-bar/side-bar.tools.js +19 -0
- package/dist/esm/side-bar/side-bar.types.js +45 -0
- package/dist/grid-pro.api.json +10626 -7663
- package/dist/grid-pro.d.ts +968 -153
- package/dist/react.cjs +14 -0
- package/dist/react.mjs +12 -0
- package/package.json +14 -14
package/dist/grid-pro.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ import { ColDef as ColDef_2 } from 'ag-grid-community';
|
|
|
26
26
|
import { ColGroupDef } from '@ag-grid-community/core';
|
|
27
27
|
import { ColSpanFunc } from 'ag-grid-community';
|
|
28
28
|
import { ColSpanParams } from '@ag-grid-community/core';
|
|
29
|
-
import { Column } from '
|
|
30
|
-
import { Column as Column_2 } from 'ag-grid-community';
|
|
29
|
+
import { Column } from 'ag-grid-community';
|
|
30
|
+
import { Column as Column_2 } from '@ag-grid-community/core';
|
|
31
31
|
import type { ColumnApi } from '@ag-grid-community/core';
|
|
32
32
|
import { ColumnChooserParams } from 'ag-grid-community';
|
|
33
33
|
import { ColumnMenuTab } from '@ag-grid-community/core';
|
|
@@ -69,8 +69,10 @@ import { GetQuickFilterTextParams } from '@ag-grid-community/core';
|
|
|
69
69
|
import { Grid } from '@ag-grid-community/core';
|
|
70
70
|
import type { GridApi } from '@ag-grid-community/core';
|
|
71
71
|
import type { GridApi as GridApi_2 } from 'ag-grid-community';
|
|
72
|
-
import {
|
|
73
|
-
import { GridOptions
|
|
72
|
+
import { GridDragSource } from 'ag-grid-community';
|
|
73
|
+
import { GridOptions } from 'ag-grid-community';
|
|
74
|
+
import { GridOptions as GridOptions_2 } from '@ag-grid-community/core';
|
|
75
|
+
import { GridOptionsService } from 'ag-grid-community';
|
|
74
76
|
import type { GridParams } from '@ag-grid-community/core';
|
|
75
77
|
import type { GridParams as GridParams_2 } from 'ag-grid-community';
|
|
76
78
|
import { GridReadyEvent } from 'ag-grid-community';
|
|
@@ -99,6 +101,8 @@ import { IRowDragItem } from '@ag-grid-community/core';
|
|
|
99
101
|
import { IRowNode } from '@ag-grid-community/core';
|
|
100
102
|
import { IStatusPanelComp } from 'ag-grid-community';
|
|
101
103
|
import { IStatusPanelParams } from 'ag-grid-community';
|
|
104
|
+
import type { IToolPanelComp } from 'ag-grid-community';
|
|
105
|
+
import type { IToolPanelParams } from 'ag-grid-community';
|
|
102
106
|
import { ITooltipComp } from '@ag-grid-community/core';
|
|
103
107
|
import { ITooltipParams } from '@ag-grid-community/core';
|
|
104
108
|
import { JSONSerializer } from '@genesislcap/foundation-utils';
|
|
@@ -145,6 +149,7 @@ import { SwatchRGB } from '@microsoft/fast-components';
|
|
|
145
149
|
import { TextField } from '@genesislcap/foundation-ui';
|
|
146
150
|
import { ToolPanelClassParams } from '@ag-grid-community/core';
|
|
147
151
|
import { ToolPanelClassParams as ToolPanelClassParams_2 } from 'ag-grid-community';
|
|
152
|
+
import type { ToolPanelDef } from 'ag-grid-community';
|
|
148
153
|
import { TooltipValueGetterFunc } from 'ag-grid-community';
|
|
149
154
|
import { ValueFormatterFunc } from '@ag-grid-community/core';
|
|
150
155
|
import { ValueFormatterFunc as ValueFormatterFunc_2 } from 'ag-grid-community';
|
|
@@ -569,6 +574,11 @@ export declare const agThemeTokenMapClassname: (themeName: string) => string;
|
|
|
569
574
|
*/
|
|
570
575
|
export declare const agThemeTokenMapCSS: (themeName: string, tokenMap: CSSVarTokenMap<any>) => ElementStyles;
|
|
571
576
|
|
|
577
|
+
export declare function applyVisibleOrder<T extends {
|
|
578
|
+
colId?: string;
|
|
579
|
+
hide?: boolean | null;
|
|
580
|
+
}>(columnState: T[], visibleOrder: string[]): T[];
|
|
581
|
+
|
|
572
582
|
/**
|
|
573
583
|
* The background color swatch.
|
|
574
584
|
* @internal
|
|
@@ -642,6 +652,159 @@ export declare type BooleanRendererParams = {
|
|
|
642
652
|
*/
|
|
643
653
|
export declare const CellTemplate: ViewTemplate<GridProCell, any>;
|
|
644
654
|
|
|
655
|
+
export declare interface ColumnPickerItem {
|
|
656
|
+
colId: string;
|
|
657
|
+
headerName: string;
|
|
658
|
+
visible: boolean;
|
|
659
|
+
lockVisible: boolean;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Custom columns tool panel. Replaces AG Grid Enterprise `agColumnsToolPanel`.
|
|
664
|
+
*
|
|
665
|
+
* @public
|
|
666
|
+
* @remarks
|
|
667
|
+
* Registered as `gridProColumnsToolPanel` (`GridProToolPanelTypes.columns`).
|
|
668
|
+
* `resolveGridProSideBar` rewrites `sideBar: ['columns']` / `agColumnsToolPanel` to this
|
|
669
|
+
* component when using AG's Enterprise `SideBarModule`.
|
|
670
|
+
*
|
|
671
|
+
* Prefer mounting via `with-side-bar` on {@link GridProBeta} for a Community-only UI
|
|
672
|
+
* that does not register any AG Enterprise modules.
|
|
673
|
+
*
|
|
674
|
+
* Layout: select-all + search → column list. Ordering via `toolPanelParams.sort`
|
|
675
|
+
* (`selected-first` default, or `ag-grid`). Checkboxes toggle visibility via
|
|
676
|
+
* `api.setColumnsVisible`; drag handles on hidden rows use AG native DnD onto the grid
|
|
677
|
+
* (`allowDragFromColumnsToolPanel`); visible rows reorder inside the picker via HTML5 drag.
|
|
678
|
+
*
|
|
679
|
+
* HTML Element: \<grid-pro-columns-tool-panel\>
|
|
680
|
+
*/
|
|
681
|
+
export declare class ColumnsToolPanel extends FoundationElement implements IToolPanelComp {
|
|
682
|
+
prefix: string;
|
|
683
|
+
private params;
|
|
684
|
+
private api;
|
|
685
|
+
/** From `toolPanelParams.sort`; default `selected-first`. */
|
|
686
|
+
private sort;
|
|
687
|
+
/** Source colId while a visible-row drag is in progress. */
|
|
688
|
+
private dragColId;
|
|
689
|
+
/** Row currently showing drag-over highlight (avoid observable updates mid-drag). */
|
|
690
|
+
private dragOverElement;
|
|
691
|
+
/** Cancels row drag listeners when the selected list re-renders. */
|
|
692
|
+
private dragBindingAbort;
|
|
693
|
+
/** AG ToolPanel drag sources registered on hidden-row handles (grid drop). */
|
|
694
|
+
private agDragBindings;
|
|
695
|
+
/** Shared DnD bridge from Grid Pro (`toolPanelParams` / context). */
|
|
696
|
+
private columnDragBridge;
|
|
697
|
+
/** Retries `bindRowDrag` until the DnD bridge is populated. */
|
|
698
|
+
private dragBridgeRetryId;
|
|
699
|
+
/** Optimistic visibility while the grid applies setColumnsVisible. */
|
|
700
|
+
private pendingVisibility;
|
|
701
|
+
search: string;
|
|
702
|
+
selectedItems: ColumnPickerItem[];
|
|
703
|
+
unselectedItems: ColumnPickerItem[];
|
|
704
|
+
/** Master checkbox checked when every toggleable column is visible. */
|
|
705
|
+
selectAllChecked: boolean;
|
|
706
|
+
/** Master checkbox mixed when some (but not all) toggleable columns are visible. */
|
|
707
|
+
selectAllIndeterminate: boolean;
|
|
708
|
+
/** Stable listener refs so `destroy` can remove the same functions `init` added. */
|
|
709
|
+
private readonly boundRefresh;
|
|
710
|
+
/** Drag reorder / grid drop disabled while search filter is active. */
|
|
711
|
+
get canDrag(): boolean;
|
|
712
|
+
/** Handle is draggable onto the grid (hidden columns, or all when using ag-grid sort). */
|
|
713
|
+
canDragToGrid(item: ColumnPickerItem): boolean;
|
|
714
|
+
/** Columns in the current (search-filtered) picker lists that can be toggled. */
|
|
715
|
+
private get toggleableItems();
|
|
716
|
+
connectedCallback(): void;
|
|
717
|
+
/**
|
|
718
|
+
* AG Grid `IToolPanelComp` entry. Subscribes to column events so the picker
|
|
719
|
+
* stays in sync with header menu / API visibility changes.
|
|
720
|
+
*/
|
|
721
|
+
init(params: IToolPanelParams & GridProColumnsToolPanelParams): void;
|
|
722
|
+
/**
|
|
723
|
+
* Rebuilds picker lists from current grid column state.
|
|
724
|
+
* Ordering follows `toolPanelParams.sort` (`selected-first` | `ag-grid`).
|
|
725
|
+
*/
|
|
726
|
+
refresh(params?: IToolPanelParams & GridProColumnsToolPanelParams): void;
|
|
727
|
+
/**
|
|
728
|
+
* AG Columns uses `height: var(--ag-header-height)` on `.ag-column-select-header` /
|
|
729
|
+
* `.ag-pivot-mode-panel`. That var lives on the grid root (sibling of our side bar),
|
|
730
|
+
* so copy it onto this panel for the same alignment without measuring DOM height.
|
|
731
|
+
*/
|
|
732
|
+
private syncAgHeaderHeightVar;
|
|
733
|
+
private syncSelectAllState;
|
|
734
|
+
/**
|
|
735
|
+
* FAST checkbox `indeterminate` is an observable property (not a boolean attr), and its
|
|
736
|
+
* click handler clears it — re-apply after render so mixed state stays visible.
|
|
737
|
+
*/
|
|
738
|
+
private applySelectAllCheckboxState;
|
|
739
|
+
private applyPendingVisibility;
|
|
740
|
+
private resolveDragBridge;
|
|
741
|
+
/**
|
|
742
|
+
* Visible rows: HTML5 reorder inside the picker.
|
|
743
|
+
* Hidden rows (or all rows when `sort=ag-grid`): AG ToolPanel drag onto the grid header.
|
|
744
|
+
*/
|
|
745
|
+
private bindRowDrag;
|
|
746
|
+
private scheduleDragBridgeRetry;
|
|
747
|
+
/** Root element AG Grid mounts into the sidebar. */
|
|
748
|
+
getGui(): HTMLElement;
|
|
749
|
+
destroy(): void;
|
|
750
|
+
/**
|
|
751
|
+
* @internal
|
|
752
|
+
*/
|
|
753
|
+
onSearchInput(value: string): void;
|
|
754
|
+
/**
|
|
755
|
+
* @internal
|
|
756
|
+
*/
|
|
757
|
+
onSelectAllClick(event: MouseEvent): void;
|
|
758
|
+
/**
|
|
759
|
+
* @internal
|
|
760
|
+
*/
|
|
761
|
+
onCheckboxClick(item: ColumnPickerItem, event: MouseEvent): void;
|
|
762
|
+
/**
|
|
763
|
+
* @internal
|
|
764
|
+
*/
|
|
765
|
+
onVisibilityChange(item: ColumnPickerItem, visible: boolean): void;
|
|
766
|
+
/**
|
|
767
|
+
* @internal
|
|
768
|
+
*/
|
|
769
|
+
onDragStart(event: DragEvent, colId: string, row?: HTMLElement): void;
|
|
770
|
+
/**
|
|
771
|
+
* @internal
|
|
772
|
+
*/
|
|
773
|
+
onDragEnd(): void;
|
|
774
|
+
/**
|
|
775
|
+
* @internal
|
|
776
|
+
*/
|
|
777
|
+
onDragOver(event: DragEvent, row: HTMLElement): void;
|
|
778
|
+
/**
|
|
779
|
+
* @internal
|
|
780
|
+
*/
|
|
781
|
+
onDragLeave(event: DragEvent, row: HTMLElement): void;
|
|
782
|
+
/**
|
|
783
|
+
* @internal
|
|
784
|
+
*/
|
|
785
|
+
onDrop(event: DragEvent, colId: string): void;
|
|
786
|
+
private clearDragOverHighlight;
|
|
787
|
+
/**
|
|
788
|
+
* Applies a new visible-column order via `applyColumnState({ applyOrder: true })`.
|
|
789
|
+
* Hidden columns keep their relative positions; only the visible slice is permuted.
|
|
790
|
+
*/
|
|
791
|
+
private reorderSelected;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Styles for {@link ColumnsToolPanel}.
|
|
796
|
+
* Class selectors only — the element has no shadow root so styles land on the
|
|
797
|
+
* parent root (Grid Pro shadow / document); `:host` would target the wrong node.
|
|
798
|
+
* @public
|
|
799
|
+
*/
|
|
800
|
+
export declare const columnsToolPanelStyles: ElementStyles;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Default columns tool panel template (`foundation-*` components).
|
|
804
|
+
* @public
|
|
805
|
+
*/
|
|
806
|
+
export declare const columnsToolPanelTemplate: ViewTemplate<ColumnsToolPanel, any>;
|
|
807
|
+
|
|
645
808
|
/**
|
|
646
809
|
* The Grid Pro Column Template.
|
|
647
810
|
* @public
|
|
@@ -679,6 +842,12 @@ export declare const convertToKebabCase: (value: string) => string;
|
|
|
679
842
|
*/
|
|
680
843
|
export declare function copyAttributesToGridOptions(gridOptions: any, component: Record<string, any>): any;
|
|
681
844
|
|
|
845
|
+
/**
|
|
846
|
+
* Builds a custom tool panel def (AG-style registration into our shell).
|
|
847
|
+
* @public
|
|
848
|
+
*/
|
|
849
|
+
export declare function createGridProSideBarTool(def: GridProSideBarToolDef): GridProSideBarToolDef;
|
|
850
|
+
|
|
682
851
|
/**
|
|
683
852
|
* Builds the class rules that flash rows matching `criteria`, together with the context menu
|
|
684
853
|
* that lets a user recolor, retime, or narrow that flash to a single cell.
|
|
@@ -1549,7 +1718,7 @@ export declare interface FuiCellRendererParams extends ICellRendererParams {
|
|
|
1549
1718
|
export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_base {
|
|
1550
1719
|
connect: Connect;
|
|
1551
1720
|
datasource: Datasource;
|
|
1552
|
-
deferredGridOptions:
|
|
1721
|
+
deferredGridOptions: GridOptions_2;
|
|
1553
1722
|
deferredColumnStates: ColumnState[];
|
|
1554
1723
|
/**
|
|
1555
1724
|
* Allows grid data updates to be processed via and external function before applying in grid
|
|
@@ -2117,6 +2286,12 @@ export declare function getAvailableIndexes(data: Map<string, [string]>): string
|
|
|
2117
2286
|
*/
|
|
2118
2287
|
export declare function getAvailableIndexFields(data: Map<string, [string]>): string[];
|
|
2119
2288
|
|
|
2289
|
+
/**
|
|
2290
|
+
* Columns tool panel template with Design System prefix (`rapid-text-field`, etc.).
|
|
2291
|
+
* @public
|
|
2292
|
+
*/
|
|
2293
|
+
export declare const getColumnsToolPanelTemplate: (prefix?: string) => ViewTemplate<ColumnsToolPanel, any>;
|
|
2294
|
+
|
|
2120
2295
|
/**
|
|
2121
2296
|
* Return a column type base on each field's metadata from the selected resource.
|
|
2122
2297
|
* @param metadataType - The type of the field/column
|
|
@@ -2143,6 +2318,12 @@ export declare function getEnumFilterParams(field: FieldMetadata, filterType: st
|
|
|
2143
2318
|
|
|
2144
2319
|
export declare function getErrorHandlerDialogTemplate(prefix: string, gridErrorItems: GridProErrorItem<any>[]): ViewTemplate<any, any>;
|
|
2145
2320
|
|
|
2321
|
+
/**
|
|
2322
|
+
* Community side bar chrome. Prefix selects DS buttons (`rapid-button`, `zero-button`).
|
|
2323
|
+
* @public
|
|
2324
|
+
*/
|
|
2325
|
+
export declare const getGridProSideBarTemplate: (prefix?: string) => ViewTemplate<GridProSideBar, any>;
|
|
2326
|
+
|
|
2146
2327
|
/**
|
|
2147
2328
|
* Get a Design System prefixed The Grid Pro template.
|
|
2148
2329
|
* @param prefix - The design system prefix to use. Defaults to 'foundation'.
|
|
@@ -2183,6 +2364,8 @@ export declare const getMultiselectEditorTemplate: (designSystem?: string) => Vi
|
|
|
2183
2364
|
*/
|
|
2184
2365
|
export declare const getNumberEditorTemplate: (designSystem?: string) => ViewTemplate<NumberEditor, any>;
|
|
2185
2366
|
|
|
2367
|
+
export declare function getPickerItems(columns: Column[]): ColumnPickerItem[];
|
|
2368
|
+
|
|
2186
2369
|
/**
|
|
2187
2370
|
* Get a Design System prefixed Select template.
|
|
2188
2371
|
* @param designSystem - The design system prefix to use. Defaults to 'foundation'.
|
|
@@ -2229,6 +2412,14 @@ export declare const getTextFieldRendererTemplate: (designSystem?: string) => Vi
|
|
|
2229
2412
|
*/
|
|
2230
2413
|
export declare const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
|
|
2231
2414
|
|
|
2415
|
+
export declare const GRID_PRO_COLUMNS_TOOL_PANEL_SORT_DEFAULT: GridProColumnsToolPanelSort;
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* Default tools when `with-side-bar` is set and `sideBarTools` is not provided.
|
|
2419
|
+
* @public
|
|
2420
|
+
*/
|
|
2421
|
+
export declare const GRID_PRO_DEFAULT_SIDE_BAR_TOOLS: ReadonlyArray<GridProSideBarToolDef>;
|
|
2422
|
+
|
|
2232
2423
|
/**
|
|
2233
2424
|
* Event fired when grid is ready
|
|
2234
2425
|
* @public
|
|
@@ -2257,7 +2448,7 @@ export declare interface GridCssClassEventDetail {
|
|
|
2257
2448
|
* Grid options config used to configure grids across the application
|
|
2258
2449
|
* @public
|
|
2259
2450
|
*/
|
|
2260
|
-
export declare type GridOptionsConfig =
|
|
2451
|
+
export declare type GridOptionsConfig = GridOptions | GridOptions_2;
|
|
2261
2452
|
|
|
2262
2453
|
/**
|
|
2263
2454
|
* Grid options config used to inject into grids in application
|
|
@@ -2420,7 +2611,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
2420
2611
|
private columnState;
|
|
2421
2612
|
protected agAttributes: Record<string, string>;
|
|
2422
2613
|
protected agPropertiesMap: Record<string, string>;
|
|
2423
|
-
protected agGridOptions:
|
|
2614
|
+
protected agGridOptions: GridOptions_2;
|
|
2424
2615
|
/**
|
|
2425
2616
|
* Last grid options supplied via the public `gridOptions` setter (not datasource init).
|
|
2426
2617
|
* Used as the merge base in `handleInitialize` so user options survive datasource restart.
|
|
@@ -2694,7 +2885,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
2694
2885
|
private addMaxRowsPanel;
|
|
2695
2886
|
private addAggregationPanel;
|
|
2696
2887
|
private addDatasourcePanels;
|
|
2697
|
-
protected setupStatusBar(gridOptions:
|
|
2888
|
+
protected setupStatusBar(gridOptions: GridOptions_2): void;
|
|
2698
2889
|
/**
|
|
2699
2890
|
* Handles column sizing based on sizeColumnsToContent and sizeColumnsToFit attributes
|
|
2700
2891
|
* @private
|
|
@@ -3187,6 +3378,10 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3187
3378
|
private readonly debouncedSaveColumnState;
|
|
3188
3379
|
private readonly debouncedSaveFilterModel;
|
|
3189
3380
|
private readonly debouncedNotifyDatasourceVisibleColumns;
|
|
3381
|
+
/** Wired to `gridOptions.context` for columns picker → grid drag (see bridge module). */
|
|
3382
|
+
private readonly columnDragBridge;
|
|
3383
|
+
/** @internal Shared AG column-drag bridge for custom tool panels. */
|
|
3384
|
+
getColumnDragBridge(): GridProColumnDragBridge;
|
|
3190
3385
|
autoCellRendererByType: boolean;
|
|
3191
3386
|
onlyTemplateColDefs: boolean;
|
|
3192
3387
|
/**
|
|
@@ -3262,6 +3457,20 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3262
3457
|
* This requires AG Grid Enterprise module to be available for the status bar to be displayed when enabled.
|
|
3263
3458
|
*/
|
|
3264
3459
|
withStatusBar: boolean;
|
|
3460
|
+
/**
|
|
3461
|
+
* Community side bar shell (no AG side-bar chrome). Tools come from `sideBarTools`.
|
|
3462
|
+
*/
|
|
3463
|
+
withSideBar: boolean;
|
|
3464
|
+
/**
|
|
3465
|
+
* Dynamic side-bar tools (Columns, AG Filters, custom `IToolPanelComp`, etc.).
|
|
3466
|
+
* Defaults to {@link GRID_PRO_DEFAULT_SIDE_BAR_TOOLS} (Columns only).
|
|
3467
|
+
*/
|
|
3468
|
+
sideBarTools: GridProSideBarToolDef[] | null;
|
|
3469
|
+
sideBarToolsChanged(): void;
|
|
3470
|
+
/** Resolved tools list used by the template. */
|
|
3471
|
+
get resolvedSideBarTools(): ReadonlyArray<GridProSideBarToolDef>;
|
|
3472
|
+
/** Community side bar element. */
|
|
3473
|
+
sideBar: GridProSideBar;
|
|
3265
3474
|
/**
|
|
3266
3475
|
* Custom error handler dialog template function.
|
|
3267
3476
|
* @remarks
|
|
@@ -3273,7 +3482,7 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3273
3482
|
private columnState;
|
|
3274
3483
|
protected agAttributes: Record<string, any>;
|
|
3275
3484
|
protected agPropertiesMap: Record<string, string>;
|
|
3276
|
-
protected agGridOptions:
|
|
3485
|
+
protected agGridOptions: GridOptions;
|
|
3277
3486
|
/** User-supplied grid options cached as merge base for datasource re-init. */
|
|
3278
3487
|
private userProvidedGridOptions;
|
|
3279
3488
|
private applyingDatasourceGridOptions;
|
|
@@ -3487,7 +3696,7 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3487
3696
|
/**
|
|
3488
3697
|
* @public
|
|
3489
3698
|
*/
|
|
3490
|
-
get gridOptions():
|
|
3699
|
+
get gridOptions(): GridOptions;
|
|
3491
3700
|
/**
|
|
3492
3701
|
* @public
|
|
3493
3702
|
*/
|
|
@@ -3508,8 +3717,15 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3508
3717
|
* @internal
|
|
3509
3718
|
*/
|
|
3510
3719
|
private notifyDatasourceVisibleColumns;
|
|
3511
|
-
set gridOptions(options:
|
|
3720
|
+
set gridOptions(options: GridOptions);
|
|
3512
3721
|
private setLocalGridOptions;
|
|
3722
|
+
private applyCommunitySideBarOptions;
|
|
3723
|
+
/**
|
|
3724
|
+
* Selects a Community side-bar tool. Clicking the active open tool collapses the panel.
|
|
3725
|
+
* @public
|
|
3726
|
+
*/
|
|
3727
|
+
selectSideBarTool(tool: GridProSideBarToolId): void;
|
|
3728
|
+
private destroySideBarTools;
|
|
3513
3729
|
/**
|
|
3514
3730
|
* Clears the local grid options, this is used to clear the grid options when the grid is restarted.
|
|
3515
3731
|
* @public
|
|
@@ -3634,7 +3850,7 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3634
3850
|
resizable?: boolean;
|
|
3635
3851
|
suppressSizeToFit?: boolean;
|
|
3636
3852
|
suppressAutoSize?: boolean;
|
|
3637
|
-
pivotValueColumn?:
|
|
3853
|
+
pivotValueColumn?: Column_2 | Column<any>;
|
|
3638
3854
|
pivotTotalColumnIds?: string[];
|
|
3639
3855
|
spanHeaderHeight?: boolean;
|
|
3640
3856
|
headerName?: string;
|
|
@@ -3698,7 +3914,7 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3698
3914
|
private addMaxRowsPanel;
|
|
3699
3915
|
private addAggregationPanel;
|
|
3700
3916
|
private addDatasourcePanels;
|
|
3701
|
-
protected setupStatusBar(gridOptions:
|
|
3917
|
+
protected setupStatusBar(gridOptions: GridOptions): void;
|
|
3702
3918
|
get observedAttributes(): string[];
|
|
3703
3919
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
3704
3920
|
globalEventListener(eventType: any, event: any): void;
|
|
@@ -3780,9 +3996,7 @@ declare const GridProBeta_base: (new (...args: any[]) => {
|
|
|
3780
3996
|
slot: string;
|
|
3781
3997
|
readonly tagName: string;
|
|
3782
3998
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
3783
|
-
checkVisibility(options
|
|
3784
|
-
* The key to use for persisting the filter model in local browser or KV storage.
|
|
3785
|
-
*/: CheckVisibilityOptions): boolean;
|
|
3999
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
3786
4000
|
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
|
|
3787
4001
|
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
|
|
3788
4002
|
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
|
|
@@ -4515,6 +4729,18 @@ declare const GridProColumn_base: (new (...args: any[]) => {
|
|
|
4515
4729
|
focus(options?: FocusOptions): void;
|
|
4516
4730
|
}) & typeof FoundationElement;
|
|
4517
4731
|
|
|
4732
|
+
/**
|
|
4733
|
+
* Filled by {@link gridProColumnDragBridgeModule} after grid beans init.
|
|
4734
|
+
* Read from `IToolPanelParams.context` / `api.getGridOption('context')`.
|
|
4735
|
+
*/
|
|
4736
|
+
declare interface GridProColumnDragBridge {
|
|
4737
|
+
dragAndDrop?: {
|
|
4738
|
+
addDragSource: (source: GridDragSource, touchEnabled?: boolean) => void;
|
|
4739
|
+
removeDragSource: (source: GridDragSource) => void;
|
|
4740
|
+
};
|
|
4741
|
+
gos?: GridOptionsService;
|
|
4742
|
+
}
|
|
4743
|
+
|
|
4518
4744
|
/**
|
|
4519
4745
|
* A directive that renders a set of grid-pro-column elements from a given input binding
|
|
4520
4746
|
*
|
|
@@ -4524,6 +4750,26 @@ declare const GridProColumn_base: (new (...args: any[]) => {
|
|
|
4524
4750
|
*/
|
|
4525
4751
|
export declare function gridProColumns<TSource = any>(itemsBinding: Binding<TSource, readonly ColDef[]> | readonly ColDef[], includeRenderers?: boolean): CaptureType<TSource>;
|
|
4526
4752
|
|
|
4753
|
+
export declare const gridProColumnsToolPanelDef: ToolPanelDef;
|
|
4754
|
+
|
|
4755
|
+
/**
|
|
4756
|
+
* Params accepted by {@link ColumnsToolPanel} via AG / side-bar `toolPanelParams`.
|
|
4757
|
+
* @public
|
|
4758
|
+
*/
|
|
4759
|
+
export declare interface GridProColumnsToolPanelParams {
|
|
4760
|
+
/**
|
|
4761
|
+
* Column list ordering.
|
|
4762
|
+
* - `selected-first` (default): visible first (grid display order), then hidden A–Z.
|
|
4763
|
+
* - `ag-grid`: `api.getColumnState()` order (visible/hidden interleaved).
|
|
4764
|
+
*/
|
|
4765
|
+
sort?: GridProColumnsToolPanelSort;
|
|
4766
|
+
/** Injected by Grid Pro; same object as `context.gridProColumnDragBridge`. */
|
|
4767
|
+
columnDragBridge?: GridProColumnDragBridge;
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
/** Column list ordering for the columns tool panel (`toolPanelParams.sort`). */
|
|
4771
|
+
export declare type GridProColumnsToolPanelSort = 'selected-first' | 'ag-grid';
|
|
4772
|
+
|
|
4527
4773
|
/**
|
|
4528
4774
|
* Grid Pro possible error events
|
|
4529
4775
|
* @public
|
|
@@ -4567,7 +4813,7 @@ export declare const gridProEventNames: {
|
|
|
4567
4813
|
* @remarks - This type is used to define the events and callbacks that can be passed to the grid
|
|
4568
4814
|
* @public
|
|
4569
4815
|
*/
|
|
4570
|
-
export declare type GridProEventsAndCallbacks = OnlyFunctions<UntypeNonFunctions<
|
|
4816
|
+
export declare type GridProEventsAndCallbacks = OnlyFunctions<UntypeNonFunctions<GridOptions>>;
|
|
4571
4817
|
|
|
4572
4818
|
/**
|
|
4573
4819
|
* Grid Pro Event Listeners
|
|
@@ -5715,154 +5961,660 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
5715
5961
|
}) & typeof GridProBaseDatasource;
|
|
5716
5962
|
|
|
5717
5963
|
/**
|
|
5718
|
-
*
|
|
5964
|
+
* The Grid Pro Side Bar element.
|
|
5965
|
+
* @remarks No shadow root — chrome stays in Grid Pro's tree so host CSS still applies.
|
|
5719
5966
|
* @public
|
|
5720
5967
|
* @remarks
|
|
5721
|
-
*
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
/**
|
|
5742
|
-
* Configure reload button status bar component.
|
|
5743
|
-
* @remarks Can be boolean for simple enable/disable or object for detailed configuration.
|
|
5744
|
-
*/
|
|
5745
|
-
reload?: boolean | GridProStatusBarReloadConfig;
|
|
5746
|
-
/**
|
|
5747
|
-
* Enable aggregation status bar component.
|
|
5748
|
-
* @remarks Default is true. Shows aggregation values for selected columns.
|
|
5749
|
-
*/
|
|
5750
|
-
aggregation?: boolean;
|
|
5751
|
-
}
|
|
5752
|
-
|
|
5753
|
-
/**
|
|
5754
|
-
* Configuration for the label-value status bar component
|
|
5755
|
-
* @public
|
|
5756
|
-
*/
|
|
5757
|
-
export declare interface GridProStatusBarLabelConfig {
|
|
5758
|
-
/**
|
|
5759
|
-
* The label text to display
|
|
5760
|
-
*/
|
|
5761
|
-
label: string;
|
|
5762
|
-
/**
|
|
5763
|
-
* The value to display
|
|
5764
|
-
*/
|
|
5765
|
-
value: any;
|
|
5766
|
-
/**
|
|
5767
|
-
* Whether to hide the status bar component
|
|
5768
|
-
* @remarks Default is false.
|
|
5769
|
-
*/
|
|
5770
|
-
hide?: boolean;
|
|
5771
|
-
}
|
|
5772
|
-
|
|
5773
|
-
/**
|
|
5774
|
-
* Configuration options for load more status bar component
|
|
5775
|
-
* @public
|
|
5776
|
-
*/
|
|
5777
|
-
export declare interface GridProStatusBarLoadMoreConfig {
|
|
5778
|
-
/**
|
|
5779
|
-
* Custom callback function to execute when the action is triggered.
|
|
5780
|
-
* If not provided, the component will use the default datasource behavior.
|
|
5781
|
-
*/
|
|
5782
|
-
onLoadMore?: () => void;
|
|
5783
|
-
/**
|
|
5784
|
-
* Custom appearance for the button.
|
|
5785
|
-
* @remarks Options: 'accent', 'lightweight', 'neutral', 'outline', 'stealth'
|
|
5786
|
-
*/
|
|
5787
|
-
appearance?: string;
|
|
5968
|
+
* HTML Element: \<grid-pro-side-bar\>
|
|
5969
|
+
*/
|
|
5970
|
+
export declare class GridProSideBar extends GridProSideBar_base {
|
|
5971
|
+
prefix: string;
|
|
5972
|
+
prefixChanged(): void;
|
|
5973
|
+
tools: ReadonlyArray<GridProSideBarToolDef>;
|
|
5974
|
+
toolsChanged(): void;
|
|
5975
|
+
gridApi: GridApi_2 | undefined;
|
|
5976
|
+
gridApiChanged(): void;
|
|
5977
|
+
columnDragBridge: GridProColumnDragBridge | undefined;
|
|
5978
|
+
columnDragBridgeChanged(): void;
|
|
5979
|
+
open: boolean;
|
|
5980
|
+
activeTool: GridProSideBarToolId;
|
|
5981
|
+
panelHost: HTMLElement;
|
|
5982
|
+
panelHostChanged(): void;
|
|
5983
|
+
private mountedPanels;
|
|
5984
|
+
private getToolPanelParams;
|
|
5985
|
+
private refreshMountedLocalPanels;
|
|
5986
|
+
connectedCallback(): void;
|
|
5987
|
+
disconnectedCallback(): void;
|
|
5788
5988
|
/**
|
|
5789
|
-
*
|
|
5790
|
-
* @
|
|
5989
|
+
* Selects a tool. Clicking the active open tool collapses the panel.
|
|
5990
|
+
* @public
|
|
5791
5991
|
*/
|
|
5792
|
-
|
|
5793
|
-
}
|
|
5794
|
-
|
|
5795
|
-
/**
|
|
5796
|
-
* Configuration options for reload status bar component
|
|
5797
|
-
* @public
|
|
5798
|
-
*/
|
|
5799
|
-
export declare interface GridProStatusBarReloadConfig {
|
|
5992
|
+
selectTool(tool: GridProSideBarToolId): void;
|
|
5800
5993
|
/**
|
|
5801
|
-
*
|
|
5802
|
-
* If not provided, the component will use the default datasource behavior.
|
|
5994
|
+
* @internal
|
|
5803
5995
|
*/
|
|
5804
|
-
|
|
5996
|
+
handleToolClick(id: GridProSideBarToolId): void;
|
|
5805
5997
|
/**
|
|
5806
|
-
*
|
|
5807
|
-
* @remarks Default is 'refresh'.
|
|
5998
|
+
* @public
|
|
5808
5999
|
*/
|
|
5809
|
-
|
|
6000
|
+
mountActiveTool(): void;
|
|
5810
6001
|
/**
|
|
5811
|
-
*
|
|
5812
|
-
* @remarks Default is 'Reload'.
|
|
6002
|
+
* @public
|
|
5813
6003
|
*/
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
/**
|
|
5818
|
-
* The available Grid Pro Status Bar Types
|
|
5819
|
-
* @public
|
|
5820
|
-
* @remarks
|
|
5821
|
-
* These status bar components require AG Grid Enterprise module to be enabled.
|
|
5822
|
-
* Status bar components will only be displayed if the Enterprise module is available.
|
|
5823
|
-
* @see https://www.ag-grid.com/javascript-data-grid/component-status-bar/
|
|
5824
|
-
*/
|
|
5825
|
-
export declare enum GridProStatusBarTypes {
|
|
5826
|
-
labelValue = "labelValue",
|
|
5827
|
-
loadMore = "loadMore",
|
|
5828
|
-
reload = "reload",
|
|
5829
|
-
rowCount = "rowCount"
|
|
5830
|
-
}
|
|
5831
|
-
|
|
5832
|
-
/**
|
|
5833
|
-
*
|
|
5834
|
-
* @public
|
|
5835
|
-
* @remarks
|
|
5836
|
-
* HTML Element: <foundation-grid-pro>
|
|
5837
|
-
*/
|
|
5838
|
-
export declare const gridProTemplate: ViewTemplate;
|
|
5839
|
-
|
|
5840
|
-
/**
|
|
5841
|
-
* Event detail for the `gridReady`/`onGridReady` signals.
|
|
5842
|
-
* @public
|
|
5843
|
-
* @remarks Only accurate for {@link @genesislcap/grid-pro#GridProBeta}, which is built on
|
|
5844
|
-
* `ag-grid-community` (v36). {@link @genesislcap/grid-pro#GridPro} fires the same event names
|
|
5845
|
-
* but its `event` field is a `@ag-grid-community/core` (v29) `GridReadyEvent`.
|
|
5846
|
-
*/
|
|
5847
|
-
export declare interface GridReadyEventDetail {
|
|
5848
|
-
event: GridReadyEvent;
|
|
5849
|
-
gridId: string;
|
|
6004
|
+
destroyTools(): void;
|
|
6005
|
+
private closeAgToolPanel;
|
|
5850
6006
|
}
|
|
5851
6007
|
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
6008
|
+
declare const GridProSideBar_base: (new (...args: any[]) => {
|
|
6009
|
+
#_container: FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
6010
|
+
#_latestTokenCode: string;
|
|
6011
|
+
#_hasFirstLoaded: boolean;
|
|
6012
|
+
#_cleanupTimeout: NodeJS.Timeout;
|
|
6013
|
+
#_shouldForceLifecycle: boolean;
|
|
6014
|
+
#_blockedDisconnectSurvivedGracePeriod: boolean;
|
|
6015
|
+
cloneNode(deep?: boolean): Node;
|
|
6016
|
+
deepClone(): Node;
|
|
6017
|
+
get shouldRunDisconnect(): boolean;
|
|
6018
|
+
get shouldRunConnect(): boolean;
|
|
6019
|
+
#_blockLifecycleDueToTokenChange(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
6020
|
+
#_tryFindContainingLayout(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
6021
|
+
connectedCallback(): void;
|
|
6022
|
+
readonly $fastController: Controller;
|
|
6023
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
6024
|
+
disconnectedCallback(): void;
|
|
6025
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
6026
|
+
accessKey: string;
|
|
6027
|
+
readonly accessKeyLabel: string;
|
|
6028
|
+
autocapitalize: string;
|
|
6029
|
+
autocorrect: boolean;
|
|
6030
|
+
dir: string;
|
|
6031
|
+
draggable: boolean;
|
|
6032
|
+
hidden: boolean;
|
|
6033
|
+
inert: boolean;
|
|
6034
|
+
innerText: string;
|
|
6035
|
+
lang: string;
|
|
6036
|
+
readonly offsetHeight: number;
|
|
6037
|
+
readonly offsetLeft: number;
|
|
6038
|
+
readonly offsetParent: Element | null;
|
|
6039
|
+
readonly offsetTop: number;
|
|
6040
|
+
readonly offsetWidth: number;
|
|
6041
|
+
outerText: string;
|
|
6042
|
+
popover: string | null;
|
|
6043
|
+
spellcheck: boolean;
|
|
6044
|
+
title: string;
|
|
6045
|
+
translate: boolean;
|
|
6046
|
+
writingSuggestions: string;
|
|
6047
|
+
attachInternals(): ElementInternals;
|
|
6048
|
+
click(): void;
|
|
6049
|
+
hidePopover(): void;
|
|
6050
|
+
showPopover(): void;
|
|
6051
|
+
togglePopover(options?: boolean): boolean;
|
|
6052
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6053
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
6054
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
6055
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
6056
|
+
readonly attributes: NamedNodeMap;
|
|
6057
|
+
get classList(): DOMTokenList;
|
|
6058
|
+
set classList(value: string): any;
|
|
6059
|
+
className: string;
|
|
6060
|
+
readonly clientHeight: number;
|
|
6061
|
+
readonly clientLeft: number;
|
|
6062
|
+
readonly clientTop: number;
|
|
6063
|
+
readonly clientWidth: number;
|
|
6064
|
+
readonly currentCSSZoom: number;
|
|
6065
|
+
id: string;
|
|
6066
|
+
innerHTML: string;
|
|
6067
|
+
readonly localName: string;
|
|
6068
|
+
readonly namespaceURI: string | null;
|
|
6069
|
+
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
6070
|
+
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
6071
|
+
outerHTML: string;
|
|
6072
|
+
readonly ownerDocument: Document;
|
|
6073
|
+
get part(): DOMTokenList;
|
|
6074
|
+
set part(value: string): any;
|
|
6075
|
+
readonly prefix: string | null;
|
|
6076
|
+
readonly scrollHeight: number;
|
|
6077
|
+
scrollLeft: number;
|
|
6078
|
+
scrollTop: number;
|
|
6079
|
+
readonly scrollWidth: number;
|
|
6080
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
6081
|
+
slot: string;
|
|
6082
|
+
readonly tagName: string;
|
|
6083
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
6084
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
6085
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
|
|
6086
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
|
|
6087
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
|
|
6088
|
+
closest<E extends Element = Element>(selectors: string): E;
|
|
6089
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
6090
|
+
getAttribute(qualifiedName: string): string | null;
|
|
6091
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
6092
|
+
getAttributeNames(): string[];
|
|
6093
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
6094
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
6095
|
+
getBoundingClientRect(): DOMRect;
|
|
6096
|
+
getClientRects(): DOMRectList;
|
|
6097
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
6098
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
6099
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
6100
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
6101
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
6102
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
6103
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
6104
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
6105
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
6106
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
6107
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
6108
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
6109
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
6110
|
+
hasAttributes(): boolean;
|
|
6111
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
6112
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
6113
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
6114
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
6115
|
+
matches(selectors: string): boolean;
|
|
6116
|
+
releasePointerCapture(pointerId: number): void;
|
|
6117
|
+
removeAttribute(qualifiedName: string): void;
|
|
6118
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
6119
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
6120
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
6121
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
6122
|
+
scroll(options?: ScrollToOptions): void;
|
|
6123
|
+
scroll(x: number, y: number): void;
|
|
6124
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
6125
|
+
scrollBy(x: number, y: number): void;
|
|
6126
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
6127
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
6128
|
+
scrollTo(x: number, y: number): void;
|
|
6129
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
6130
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
6131
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
6132
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
6133
|
+
setHTMLUnsafe(html: string): void;
|
|
6134
|
+
setPointerCapture(pointerId: number): void;
|
|
6135
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
6136
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
6137
|
+
textContent: string;
|
|
6138
|
+
readonly baseURI: string;
|
|
6139
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
6140
|
+
readonly firstChild: ChildNode | null;
|
|
6141
|
+
readonly isConnected: boolean;
|
|
6142
|
+
readonly lastChild: ChildNode | null;
|
|
6143
|
+
readonly nextSibling: ChildNode | null;
|
|
6144
|
+
readonly nodeName: string;
|
|
6145
|
+
readonly nodeType: number;
|
|
6146
|
+
nodeValue: string | null;
|
|
6147
|
+
readonly parentElement: HTMLElement | null;
|
|
6148
|
+
readonly parentNode: ParentNode | null;
|
|
6149
|
+
readonly previousSibling: ChildNode | null;
|
|
6150
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
6151
|
+
compareDocumentPosition(other: Node): number;
|
|
6152
|
+
contains(other: Node | null): boolean;
|
|
6153
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
6154
|
+
hasChildNodes(): boolean;
|
|
6155
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
6156
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
6157
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
6158
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
6159
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
6160
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
6161
|
+
normalize(): void;
|
|
6162
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
|
6163
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
|
6164
|
+
readonly ELEMENT_NODE: 1;
|
|
6165
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
6166
|
+
readonly TEXT_NODE: 3;
|
|
6167
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
6168
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
6169
|
+
readonly ENTITY_NODE: 6;
|
|
6170
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
6171
|
+
readonly COMMENT_NODE: 8;
|
|
6172
|
+
readonly DOCUMENT_NODE: 9;
|
|
6173
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
6174
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
6175
|
+
readonly NOTATION_NODE: 12;
|
|
6176
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
6177
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
6178
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
6179
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
6180
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
6181
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
6182
|
+
dispatchEvent(event: Event): boolean;
|
|
6183
|
+
ariaActiveDescendantElement: Element | null;
|
|
6184
|
+
ariaAtomic: string | null;
|
|
6185
|
+
ariaAutoComplete: string | null;
|
|
6186
|
+
ariaBrailleLabel: string | null;
|
|
6187
|
+
ariaBrailleRoleDescription: string | null;
|
|
6188
|
+
ariaBusy: string | null;
|
|
6189
|
+
ariaChecked: string | null;
|
|
6190
|
+
ariaColCount: string | null;
|
|
6191
|
+
ariaColIndex: string | null;
|
|
6192
|
+
ariaColIndexText: string | null;
|
|
6193
|
+
ariaColSpan: string | null;
|
|
6194
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
6195
|
+
ariaCurrent: string | null;
|
|
6196
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
6197
|
+
ariaDescription: string | null;
|
|
6198
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
6199
|
+
ariaDisabled: string | null;
|
|
6200
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
6201
|
+
ariaExpanded: string | null;
|
|
6202
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
6203
|
+
ariaHasPopup: string | null;
|
|
6204
|
+
ariaHidden: string | null;
|
|
6205
|
+
ariaInvalid: string | null;
|
|
6206
|
+
ariaKeyShortcuts: string | null;
|
|
6207
|
+
ariaLabel: string | null;
|
|
6208
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
6209
|
+
ariaLevel: string | null;
|
|
6210
|
+
ariaLive: string | null;
|
|
6211
|
+
ariaModal: string | null;
|
|
6212
|
+
ariaMultiLine: string | null;
|
|
6213
|
+
ariaMultiSelectable: string | null;
|
|
6214
|
+
ariaOrientation: string | null;
|
|
6215
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
6216
|
+
ariaPlaceholder: string | null;
|
|
6217
|
+
ariaPosInSet: string | null;
|
|
6218
|
+
ariaPressed: string | null;
|
|
6219
|
+
ariaReadOnly: string | null;
|
|
6220
|
+
ariaRelevant: string | null;
|
|
6221
|
+
ariaRequired: string | null;
|
|
6222
|
+
ariaRoleDescription: string | null;
|
|
6223
|
+
ariaRowCount: string | null;
|
|
6224
|
+
ariaRowIndex: string | null;
|
|
6225
|
+
ariaRowIndexText: string | null;
|
|
6226
|
+
ariaRowSpan: string | null;
|
|
6227
|
+
ariaSelected: string | null;
|
|
6228
|
+
ariaSetSize: string | null;
|
|
6229
|
+
ariaSort: string | null;
|
|
6230
|
+
ariaValueMax: string | null;
|
|
6231
|
+
ariaValueMin: string | null;
|
|
6232
|
+
ariaValueNow: string | null;
|
|
6233
|
+
ariaValueText: string | null;
|
|
6234
|
+
role: string | null;
|
|
6235
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
6236
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
6237
|
+
after(...nodes: (Node | string)[]): void;
|
|
6238
|
+
before(...nodes: (Node | string)[]): void;
|
|
6239
|
+
remove(): void;
|
|
6240
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
6241
|
+
readonly nextElementSibling: Element | null;
|
|
6242
|
+
readonly previousElementSibling: Element | null;
|
|
6243
|
+
readonly childElementCount: number;
|
|
6244
|
+
readonly children: HTMLCollection;
|
|
6245
|
+
readonly firstElementChild: Element | null;
|
|
6246
|
+
readonly lastElementChild: Element | null;
|
|
6247
|
+
append(...nodes: (Node | string)[]): void;
|
|
6248
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
6249
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
6250
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
6251
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
6252
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
6253
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
6254
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
6255
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
6256
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
6257
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
6258
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
6259
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
6260
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
6261
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
6262
|
+
get style(): CSSStyleDeclaration;
|
|
6263
|
+
set style(cssText: string): any;
|
|
6264
|
+
contentEditable: string;
|
|
6265
|
+
enterKeyHint: string;
|
|
6266
|
+
inputMode: string;
|
|
6267
|
+
readonly isContentEditable: boolean;
|
|
6268
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
6269
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
6270
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
6271
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
6272
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
6273
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6274
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
6275
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6276
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
6277
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
6278
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6279
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6280
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6281
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6282
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6283
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6284
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6285
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6286
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6287
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
6288
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6289
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
6290
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6291
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6292
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6293
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6294
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6295
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6296
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6297
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
6298
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6299
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6300
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6301
|
+
onerror: OnErrorEventHandler;
|
|
6302
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
6303
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
6304
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6305
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6306
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6307
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
6308
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
6309
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
6310
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6311
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6312
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6313
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6314
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6315
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6316
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6317
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6318
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6319
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6320
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6321
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6322
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
6323
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6324
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6325
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6326
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6327
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6328
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6329
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6330
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6331
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6332
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6333
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6334
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
6335
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
6336
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6337
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6338
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
6339
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6340
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6341
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
6342
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6343
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6344
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6345
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6346
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6347
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6348
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6349
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
6350
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6351
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6352
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
6353
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
6354
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
6355
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
6356
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
6357
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
6358
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
6359
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
6360
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
6361
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6362
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6363
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6364
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6365
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6366
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6367
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
6368
|
+
autofocus: boolean;
|
|
6369
|
+
readonly dataset: DOMStringMap;
|
|
6370
|
+
nonce?: string;
|
|
6371
|
+
tabIndex: number;
|
|
6372
|
+
blur(): void;
|
|
6373
|
+
focus(options?: FocusOptions): void;
|
|
6374
|
+
}) & typeof FoundationElement;
|
|
6375
|
+
|
|
6376
|
+
/**
|
|
6377
|
+
* Chrome for {@link GridProSideBar}. Uses class selectors (no `:host`) because the
|
|
6378
|
+
* element has no shadow — styles land on Grid Pro's shadow root.
|
|
6379
|
+
* @public
|
|
6380
|
+
*/
|
|
6381
|
+
export declare const gridProSideBarChromeStyles: ElementStyles;
|
|
6382
|
+
|
|
6383
|
+
/**
|
|
6384
|
+
* Built-in Columns picker (Community, no AG SideBarModule).
|
|
6385
|
+
* @public
|
|
6386
|
+
*/
|
|
6387
|
+
export declare const gridProSideBarColumnsTool: GridProSideBarToolDef;
|
|
6388
|
+
|
|
6389
|
+
/**
|
|
6390
|
+
* Built-in AG Filters tool (Enterprise `FiltersToolPanelModule` required at app register).
|
|
6391
|
+
* @public
|
|
6392
|
+
*/
|
|
6393
|
+
export declare const gridProSideBarFiltersTool: GridProSideBarToolDef;
|
|
6394
|
+
|
|
6395
|
+
/**
|
|
6396
|
+
* Layout on the Grid Pro host when `with-side-bar` is set.
|
|
6397
|
+
* @public
|
|
6398
|
+
*/
|
|
6399
|
+
export declare const gridProSideBarHostStyles: ElementStyles;
|
|
6400
|
+
|
|
6401
|
+
/**
|
|
6402
|
+
* Host + chrome. Prefer {@link gridProSideBarHostStyles} on Grid Pro and
|
|
6403
|
+
* {@link gridProSideBarChromeStyles} on the side-bar element.
|
|
6404
|
+
* @public
|
|
6405
|
+
*/
|
|
6406
|
+
export declare const gridProSideBarStyles: ElementStyles;
|
|
6407
|
+
|
|
6408
|
+
/**
|
|
6409
|
+
* @public
|
|
6410
|
+
*/
|
|
6411
|
+
export declare const gridProSideBarTemplate: ViewTemplate<GridProSideBar, any>;
|
|
6412
|
+
|
|
6413
|
+
/**
|
|
6414
|
+
* Well-known Community side-bar tool ids.
|
|
6415
|
+
* @public
|
|
6416
|
+
*/
|
|
6417
|
+
export declare const GridProSideBarTool: {
|
|
6418
|
+
readonly columns: "columns";
|
|
6419
|
+
readonly filters: "filters";
|
|
6420
|
+
};
|
|
6421
|
+
|
|
6422
|
+
/**
|
|
6423
|
+
* Tool definition for the Community Grid Pro side bar shell.
|
|
6424
|
+
*
|
|
6425
|
+
* - `createPanel`: local `IToolPanelComp` (no AG SideBar chrome); preferred for custom / Genesis panels.
|
|
6426
|
+
* - `toolPanel`: AG registered name or component class (e.g. `'agFiltersToolPanel'` or a custom
|
|
6427
|
+
* class from https://www.ag-grid.com/javascript-data-grid/component-tool-panel/); mounted via
|
|
6428
|
+
* `api.openToolPanel(id, host)` with AG sideBar `hideButtons`.
|
|
6429
|
+
*
|
|
6430
|
+
* @public
|
|
6431
|
+
*/
|
|
6432
|
+
export declare interface GridProSideBarToolDef {
|
|
6433
|
+
id: GridProSideBarToolId;
|
|
6434
|
+
label: string;
|
|
6435
|
+
/** Localisation key for AG toolPanels; defaults to `id`. */
|
|
6436
|
+
labelKey?: string;
|
|
6437
|
+
/** AG icon key (`columns`, `filter`, …). Shown on the tab; also passed to AG `toolPanels`. */
|
|
6438
|
+
iconKey?: string;
|
|
6439
|
+
/**
|
|
6440
|
+
* AG tool panel component (`agFiltersToolPanel`, custom class, etc.).
|
|
6441
|
+
* Requires `SideBarModule` (pulled in by Filters / Enterprise modules).
|
|
6442
|
+
*/
|
|
6443
|
+
toolPanel?: any;
|
|
6444
|
+
/** Params passed to the AG / custom tool panel (e.g. `{ sort: 'ag-grid' }` for columns). */
|
|
6445
|
+
toolPanelParams?: any;
|
|
6446
|
+
/**
|
|
6447
|
+
* Factory for a locally mounted IToolPanelComp.
|
|
6448
|
+
* When set, the panel is created/mounted in our host (does not use `openToolPanel`).
|
|
6449
|
+
*/
|
|
6450
|
+
createPanel?: () => IToolPanelComp;
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6453
|
+
/**
|
|
6454
|
+
* @public
|
|
6455
|
+
*/
|
|
6456
|
+
export declare type GridProSideBarToolId = (typeof GridProSideBarTool)[keyof typeof GridProSideBarTool] | (string & {});
|
|
6457
|
+
|
|
6458
|
+
/**
|
|
6459
|
+
* Configuration options for the grid status bar components
|
|
6460
|
+
* @public
|
|
6461
|
+
* @remarks
|
|
6462
|
+
* This requires AG Grid Enterprise module to be enabled.
|
|
6463
|
+
* Status bar components will only be displayed if the Enterprise module is available.
|
|
6464
|
+
* @see https://www.ag-grid.com/javascript-data-grid/component-status-bar/
|
|
6465
|
+
*/
|
|
6466
|
+
export declare interface GridProStatusBarConfig {
|
|
6467
|
+
/**
|
|
6468
|
+
* Enable row count status bar component.
|
|
6469
|
+
* @remarks Default is false.
|
|
6470
|
+
*/
|
|
6471
|
+
rows?: boolean;
|
|
6472
|
+
/**
|
|
6473
|
+
* Enable max rows status bar component.
|
|
6474
|
+
* @remarks Default is false.
|
|
6475
|
+
*/
|
|
6476
|
+
maxRows?: boolean;
|
|
6477
|
+
/**
|
|
6478
|
+
* Configure load more button status bar component.
|
|
6479
|
+
* @remarks Can be boolean for simple enable/disable or object for detailed configuration.
|
|
6480
|
+
*/
|
|
6481
|
+
loadMore?: boolean | GridProStatusBarLoadMoreConfig;
|
|
6482
|
+
/**
|
|
6483
|
+
* Configure reload button status bar component.
|
|
6484
|
+
* @remarks Can be boolean for simple enable/disable or object for detailed configuration.
|
|
6485
|
+
*/
|
|
6486
|
+
reload?: boolean | GridProStatusBarReloadConfig;
|
|
6487
|
+
/**
|
|
6488
|
+
* Enable aggregation status bar component.
|
|
6489
|
+
* @remarks Default is true. Shows aggregation values for selected columns.
|
|
6490
|
+
*/
|
|
6491
|
+
aggregation?: boolean;
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6494
|
+
/**
|
|
6495
|
+
* Configuration for the label-value status bar component
|
|
6496
|
+
* @public
|
|
6497
|
+
*/
|
|
6498
|
+
export declare interface GridProStatusBarLabelConfig {
|
|
6499
|
+
/**
|
|
6500
|
+
* The label text to display
|
|
6501
|
+
*/
|
|
6502
|
+
label: string;
|
|
6503
|
+
/**
|
|
6504
|
+
* The value to display
|
|
6505
|
+
*/
|
|
6506
|
+
value: any;
|
|
6507
|
+
/**
|
|
6508
|
+
* Whether to hide the status bar component
|
|
6509
|
+
* @remarks Default is false.
|
|
6510
|
+
*/
|
|
6511
|
+
hide?: boolean;
|
|
6512
|
+
}
|
|
6513
|
+
|
|
6514
|
+
/**
|
|
6515
|
+
* Configuration options for load more status bar component
|
|
6516
|
+
* @public
|
|
6517
|
+
*/
|
|
6518
|
+
export declare interface GridProStatusBarLoadMoreConfig {
|
|
6519
|
+
/**
|
|
6520
|
+
* Custom callback function to execute when the action is triggered.
|
|
6521
|
+
* If not provided, the component will use the default datasource behavior.
|
|
6522
|
+
*/
|
|
6523
|
+
onLoadMore?: () => void;
|
|
6524
|
+
/**
|
|
6525
|
+
* Custom appearance for the button.
|
|
6526
|
+
* @remarks Options: 'accent', 'lightweight', 'neutral', 'outline', 'stealth'
|
|
6527
|
+
*/
|
|
6528
|
+
appearance?: string;
|
|
6529
|
+
/**
|
|
6530
|
+
* Custom tooltip text that appears on hover.
|
|
6531
|
+
* @remarks Default is 'Load More'.
|
|
6532
|
+
*/
|
|
6533
|
+
tooltip?: string;
|
|
6534
|
+
}
|
|
6535
|
+
|
|
6536
|
+
/**
|
|
6537
|
+
* Configuration options for reload status bar component
|
|
6538
|
+
* @public
|
|
6539
|
+
*/
|
|
6540
|
+
export declare interface GridProStatusBarReloadConfig {
|
|
6541
|
+
/**
|
|
6542
|
+
* Custom callback function to execute when the action is triggered.
|
|
6543
|
+
* If not provided, the component will use the default datasource behavior.
|
|
6544
|
+
*/
|
|
6545
|
+
onReload?: () => void;
|
|
6546
|
+
/**
|
|
6547
|
+
* Custom FontAwesome icon name (without 'fa-' prefix).
|
|
6548
|
+
* @remarks Default is 'refresh'.
|
|
6549
|
+
*/
|
|
6550
|
+
icon?: string;
|
|
6551
|
+
/**
|
|
6552
|
+
* Custom tooltip text that appears on hover.
|
|
6553
|
+
* @remarks Default is 'Reload'.
|
|
6554
|
+
*/
|
|
6555
|
+
tooltip?: string;
|
|
6556
|
+
}
|
|
6557
|
+
|
|
6558
|
+
/**
|
|
6559
|
+
* The available Grid Pro Status Bar Types
|
|
6560
|
+
* @public
|
|
6561
|
+
* @remarks
|
|
6562
|
+
* These status bar components require AG Grid Enterprise module to be enabled.
|
|
6563
|
+
* Status bar components will only be displayed if the Enterprise module is available.
|
|
6564
|
+
* @see https://www.ag-grid.com/javascript-data-grid/component-status-bar/
|
|
6565
|
+
*/
|
|
6566
|
+
export declare enum GridProStatusBarTypes {
|
|
6567
|
+
labelValue = "labelValue",
|
|
6568
|
+
loadMore = "loadMore",
|
|
6569
|
+
reload = "reload",
|
|
6570
|
+
rowCount = "rowCount"
|
|
6571
|
+
}
|
|
6572
|
+
|
|
6573
|
+
/**
|
|
6574
|
+
*
|
|
6575
|
+
* @public
|
|
6576
|
+
* @remarks
|
|
6577
|
+
* HTML Element: <foundation-grid-pro>
|
|
6578
|
+
*/
|
|
6579
|
+
export declare const gridProTemplate: ViewTemplate;
|
|
6580
|
+
|
|
6581
|
+
/**
|
|
6582
|
+
* Custom Grid Pro tool panel component names.
|
|
6583
|
+
* @public
|
|
6584
|
+
* @remarks
|
|
6585
|
+
* Registered for AG `sideBar` hosts (`SideBarModule` still required for that path).
|
|
6586
|
+
* Prefer `with-side-bar` on {@link GridProBeta} for a Community-only columns UI.
|
|
6587
|
+
*/
|
|
6588
|
+
export declare enum GridProToolPanelTypes {
|
|
6589
|
+
columns = "gridProColumnsToolPanel"
|
|
6590
|
+
}
|
|
6591
|
+
|
|
6592
|
+
/**
|
|
6593
|
+
* Event detail for the `gridReady`/`onGridReady` signals.
|
|
6594
|
+
* @public
|
|
6595
|
+
* @remarks Only accurate for {@link @genesislcap/grid-pro#GridProBeta}, which is built on
|
|
6596
|
+
* `ag-grid-community` (v36). {@link @genesislcap/grid-pro#GridPro} fires the same event names
|
|
6597
|
+
* but its `event` field is a `@ag-grid-community/core` (v29) `GridReadyEvent`.
|
|
6598
|
+
*/
|
|
6599
|
+
export declare interface GridReadyEventDetail {
|
|
6600
|
+
event: GridReadyEvent;
|
|
6601
|
+
gridId: string;
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6604
|
+
/**
|
|
6605
|
+
* The change size event grid pro genesis datasource.
|
|
6606
|
+
* @public
|
|
6607
|
+
*/
|
|
6608
|
+
export declare type GrigProGenesisDatasourceSizeChangedEvent = CustomEvent<GrigProGenesisDatasourceSizeChangedEventDetail>;
|
|
6609
|
+
|
|
6610
|
+
/**
|
|
6611
|
+
* The event detail for the grid pro genesis datasource `sizeChanged` event.
|
|
6612
|
+
* @public
|
|
6613
|
+
*/
|
|
6614
|
+
export declare type GrigProGenesisDatasourceSizeChangedEventDetail = {
|
|
6615
|
+
value: number;
|
|
6616
|
+
oldValue: number;
|
|
6617
|
+
};
|
|
5866
6618
|
|
|
5867
6619
|
declare type IconByNameParams = {
|
|
5868
6620
|
/**
|
|
@@ -5960,6 +6712,11 @@ export declare interface InitializeEventDetail {
|
|
|
5960
6712
|
};
|
|
5961
6713
|
}
|
|
5962
6714
|
|
|
6715
|
+
/**
|
|
6716
|
+
* @internal
|
|
6717
|
+
*/
|
|
6718
|
+
export declare function initLocalSideBarPanel(panel: IToolPanelComp, params: IToolPanelParams): IToolPanelComp;
|
|
6719
|
+
|
|
5963
6720
|
/**
|
|
5964
6721
|
* Implementation for the KV Storage State Persistence interface.
|
|
5965
6722
|
* @public
|
|
@@ -6105,6 +6862,15 @@ export declare type MoreRowsDetail = {
|
|
|
6105
6862
|
sourceRef: string;
|
|
6106
6863
|
};
|
|
6107
6864
|
|
|
6865
|
+
/**
|
|
6866
|
+
* @internal
|
|
6867
|
+
*/
|
|
6868
|
+
export declare type MountedSideBarPanel = {
|
|
6869
|
+
defId: string;
|
|
6870
|
+
panel: IToolPanelComp;
|
|
6871
|
+
destroy?: () => void;
|
|
6872
|
+
};
|
|
6873
|
+
|
|
6108
6874
|
/**
|
|
6109
6875
|
* @beta
|
|
6110
6876
|
* A dropdown component that displays its options in a multi-column AG Grid.
|
|
@@ -6676,6 +7442,32 @@ export declare enum OperationType {
|
|
|
6676
7442
|
/** The CSS class to use for the options element's class in the dropdown */
|
|
6677
7443
|
export declare const optionsClass = "options";
|
|
6678
7444
|
|
|
7445
|
+
/**
|
|
7446
|
+
* Column order for the picker list.
|
|
7447
|
+
*
|
|
7448
|
+
* - `selected-first` (default): displayed columns first (current grid visual order), then
|
|
7449
|
+
* any non-displayed columns in `getColumns()` order (caller alphabetizes hidden via
|
|
7450
|
+
* {@link partitionPickerItems}).
|
|
7451
|
+
* - `ag-grid`: current column-state order (`getColumnState`), visible and hidden interleaved —
|
|
7452
|
+
* same live order AG's columns tool panel reflects after moves. Falls back to `getColumns()`
|
|
7453
|
+
* when state is empty.
|
|
7454
|
+
*/
|
|
7455
|
+
export declare function orderColumnsForPicker(displayed: Column[], all: Column[], sort?: GridProColumnsToolPanelSort, columnState?: ReadonlyArray<{
|
|
7456
|
+
colId?: string | null;
|
|
7457
|
+
}>): Column[];
|
|
7458
|
+
|
|
7459
|
+
/**
|
|
7460
|
+
* Splits / filters picker items for the template sections.
|
|
7461
|
+
*
|
|
7462
|
+
* - `selected-first`: visible rows in input order; hidden rows A–Z by header.
|
|
7463
|
+
* - `ag-grid`: one flat list in input order (AG column-model order) in `selected`;
|
|
7464
|
+
* `unselected` is empty so the template does not re-group.
|
|
7465
|
+
*/
|
|
7466
|
+
export declare function partitionPickerItems(items: ColumnPickerItem[], search: string, sort?: GridProColumnsToolPanelSort): {
|
|
7467
|
+
selected: ColumnPickerItem[];
|
|
7468
|
+
unselected: ColumnPickerItem[];
|
|
7469
|
+
};
|
|
7470
|
+
|
|
6679
7471
|
/**
|
|
6680
7472
|
* Event detail for requesting a server-side row model refresh.
|
|
6681
7473
|
*/
|
|
@@ -6719,6 +7511,27 @@ export declare type ReloadStatusBarParams = {
|
|
|
6719
7511
|
tooltip?: string;
|
|
6720
7512
|
};
|
|
6721
7513
|
|
|
7514
|
+
export declare function reorderVisibleIds(allVisibleIds: string[], shownIds: string[], fromId: string, toId: string): string[] | null;
|
|
7515
|
+
|
|
7516
|
+
/**
|
|
7517
|
+
* @internal
|
|
7518
|
+
*/
|
|
7519
|
+
export declare function resolveAgSideBarToolPanels(tools: ReadonlyArray<GridProSideBarToolDef>): {
|
|
7520
|
+
toolPanelParams?: any;
|
|
7521
|
+
id: GridProSideBarToolId;
|
|
7522
|
+
labelKey: string;
|
|
7523
|
+
labelDefault: string;
|
|
7524
|
+
iconKey: string;
|
|
7525
|
+
toolPanel: any;
|
|
7526
|
+
}[];
|
|
7527
|
+
|
|
7528
|
+
export declare function resolveColumnsToolPanelSort(sort?: GridProColumnsToolPanelSort | null): GridProColumnsToolPanelSort;
|
|
7529
|
+
|
|
7530
|
+
/**
|
|
7531
|
+
* Rewrites `sideBar: ['columns']` / `agColumnsToolPanel` to the custom Grid Pro picker.
|
|
7532
|
+
*/
|
|
7533
|
+
export declare function resolveGridProSideBar(sideBar: GridOptions['sideBar']): GridOptions['sideBar'];
|
|
7534
|
+
|
|
6722
7535
|
/**
|
|
6723
7536
|
* Resolves the field names of the currently visible columns.
|
|
6724
7537
|
* @remarks Prefers the grid's displayed columns (`getAllDisplayedColumns()` — already excludes
|
|
@@ -7283,6 +8096,8 @@ export declare const textFieldRendererStyles: ElementStyles;
|
|
|
7283
8096
|
*/
|
|
7284
8097
|
export declare const textRendererStyles: ElementStyles;
|
|
7285
8098
|
|
|
8099
|
+
export declare function toPickerItem(col: Column): ColumnPickerItem | null;
|
|
8100
|
+
|
|
7286
8101
|
/**
|
|
7287
8102
|
* @public
|
|
7288
8103
|
*/
|