/** * AUTO-GENERATED by scripts/generate-wrappers.mjs - DO NOT EDIT. * Regenerate: pnpm --filter @svgrid/grid-wc generate:wrappers * * Type declarations for the custom elements. */ /** * The custom element's own surface. Complex props (columns, data, configs) * are `unknown` here rather than wrong: their real types are generic over * the feature set and the row type, which cannot be reproduced outside * `@svgrid/grid`. Import them from there when you want them checked. */ export interface SvGridElement extends HTMLElement { /** property only - an attribute cannot hold this */ data: readonly unknown[] /** property only - an attribute cannot hold this */ columns: readonly unknown[] /** property only - an attribute cannot hold this */ board: unknown /** property only - an attribute cannot hold this */ gallery: unknown /** property only - an attribute cannot hold this */ scheduler: unknown /** property only - an attribute cannot hold this */ gantt: unknown /** property only - an attribute cannot hold this */ chart: unknown /** property only - an attribute cannot hold this */ pivot: unknown /** attribute `pivot-mode` */ pivotMode: boolean /** attribute `context-menu` */ contextMenu: boolean /** attribute `selection-bar` */ selectionBar: boolean /** attribute `row-adder` */ rowAdder: boolean /** property only - an attribute cannot hold this */ rowColor: unknown /** attribute `column-adder` */ columnAdder: boolean /** attribute `field-menu` */ fieldMenu: boolean /** attribute `expand-rows` */ expandRows: boolean /** attribute `pin-splitter` */ pinSplitter: boolean /** attribute `max-pinned-column-width` */ maxPinnedColumnWidth: number /** attribute `primary-field` */ primaryField: string /** property only - an attribute cannot hold this */ features: unknown /** attribute `sortable` */ sortable: boolean /** attribute `filterable` */ filterable: boolean /** attribute `editable` */ editable: boolean /** property only - an attribute cannot hold this */ treeData: unknown /** attribute `groupable` */ groupable: boolean /** property only - an attribute cannot hold this */ groupBy: readonly unknown[] /** property only - an attribute cannot hold this */ expanded: unknown /** attribute `group-footers` */ groupFooters: boolean /** attribute `grand-total-row` */ grandTotalRow: boolean /** attribute `group-display-mode` */ groupDisplayMode: string /** attribute `auto-group-column-header` */ autoGroupColumnHeader: string /** attribute `auto-group-column-width` */ autoGroupColumnWidth: number /** attribute `pageable` */ pageable: boolean /** attribute `loading` */ loading: boolean /** attribute `loading-overlay` */ loadingOverlay: boolean /** attribute `loading-skeleton-rows` */ loadingSkeletonRows: number /** attribute `error` */ error: string | null /** attribute `empty-message` */ emptyMessage: string /** attribute `grid-label` */ gridLabel: string /** property only - an attribute cannot hold this */ localization: unknown /** attribute `show-global-filter` */ showGlobalFilter: boolean /** attribute `show-column-filters` */ showColumnFilters: boolean /** attribute `filter-mode` */ filterMode: "row" | "menu" | "global" | "none" /** attribute `show-grouping-controls` */ showGroupingControls: boolean /** attribute `show-row-selection` */ showRowSelection: boolean /** attribute `show-pagination` */ showPagination: boolean /** attribute `page-size` */ pageSize: number /** property only - an attribute cannot hold this */ pageSizeOptions: readonly unknown[] /** attribute `pagination-position` */ paginationPosition: "top" | "bottom" | "both" /** attribute `external-pagination` */ externalPagination: boolean /** attribute `row-count` */ rowCount: number /** attribute `page-index` */ pageIndex: number /** attribute `virtualization` */ virtualization: boolean /** attribute `row-height` */ rowHeight: number /** attribute `auto-row-height` */ autoRowHeight: boolean /** attribute `row-resize` */ rowResize: boolean /** attribute `header-height` */ headerHeight: number /** attribute `overscan` */ overscan: number /** attribute `container-height` */ containerHeight: string /** attribute `column-virtualization` */ columnVirtualization: boolean /** attribute `column-overscan` */ columnOverscan: number /** attribute `column-width` */ columnWidth: number /** property only - an attribute cannot hold this */ initialColumnPinning: unknown /** attribute `fit-columns` */ fitColumns: boolean /** attribute `column-resize` */ columnResize: boolean /** attribute `responsive` */ responsive: boolean /** attribute `show-filter-menu` */ showFilterMenu: boolean /** attribute `show-filter-row` */ showFilterRow: boolean /** attribute `enable-cell-selection` */ enableCellSelection: boolean /** attribute `move-cells` */ moveCells: boolean /** attribute `enable-row-hover` */ enableRowHover: boolean /** attribute `copy-headers-to-clipboard` */ copyHeadersToClipboard: boolean /** property only - an attribute cannot hold this */ processCellForFill: unknown /** property only - an attribute cannot hold this */ processCellForClipboard: unknown /** property only - an attribute cannot hold this */ includeCollapsedRows: unknown /** property only - an attribute cannot hold this */ clipboardHtml: unknown /** attribute `hold-rows-on-write` */ holdRowsOnWrite: boolean /** property only - an attribute cannot hold this */ parseClipboardText: readonly unknown[] /** property only - an attribute cannot hold this */ processCellFromClipboard: unknown /** attribute `enable-inline-editing` */ enableInlineEditing: boolean /** attribute `edit-on-second-click` */ editOnSecondClick: boolean /** attribute `full-row-editing` */ fullRowEditing: boolean /** attribute `enable-row-summaries` */ enableRowSummaries: boolean /** attribute `summary` */ summary: boolean /** attribute `status-bar` */ statusBar: boolean /** attribute `tool-panel` */ toolPanel: boolean /** attribute `charting` */ charting: boolean /** attribute `column-menu-tabs` */ columnMenuTabs: boolean /** attribute `tool-panel-default-open` */ toolPanelDefaultOpen: boolean /** attribute `tool-panel-default-tab` */ toolPanelDefaultTab: "columns" | "filters" /** attribute `selection-mode` */ selectionMode: "row" | "cell" | "both" | "none" /** attribute `show-row-numbers` */ showRowNumbers: boolean /** attribute `zebra-rows` */ zebraRows: boolean /** attribute `row-number-width` */ rowNumberWidth: number /** attribute `external-sort` */ externalSort: boolean /** property only - an attribute cannot hold this */ initialSorting: readonly unknown[] /** property only - an attribute cannot hold this */ initialAdvancedFilter: unknown /** attribute `external-filter` */ externalFilter: boolean /** property only - an attribute cannot hold this */ getRowId: unknown /** property only - an attribute cannot hold this */ rowClass: unknown /** property only - an attribute cannot hold this */ notes: unknown /** attribute `editable-comments` */ editableComments: boolean /** property only - an attribute cannot hold this */ conditionalFormats: readonly unknown[] /** attribute `conditional-stat-scope` */ conditionalStatScope: "filtered" | "visible" | "all" /** property only - an attribute cannot hold this */ rowPlaceholder: unknown /** property only - an attribute cannot hold this */ rowModel: unknown /** property only - an attribute cannot hold this */ pivotResultColumns: readonly unknown[] /** property only - an attribute cannot hold this */ rowSelectionModel: unknown /** property only - an attribute cannot hold this */ isDetailRow: unknown /** attribute `detail-row-height` */ detailRowHeight: number /** attribute `show-detail-toggle` */ showDetailToggle: boolean /** property only - an attribute cannot hold this */ isDetailOpen: unknown /** property only - an attribute cannot hold this */ hasDetail: unknown /** property only - an attribute cannot hold this */ serverGroup: unknown /** property only - an attribute cannot hold this */ serverFilterValues: unknown /** property only - an attribute cannot hold this */ pinnedTopRows: readonly unknown[] /** attribute `frozen-rows` */ frozenRows: number /** attribute `sticky-group-rows` */ stickyGroupRows: boolean /** property only - an attribute cannot hold this */ mergedCells: readonly unknown[] /** attribute `row-layout` */ rowLayout: "flex" | "table" /** property only - an attribute cannot hold this */ pinnedBottomRows: readonly unknown[] /** attribute `enable-column-reorder` */ enableColumnReorder: boolean /** property only - an attribute cannot hold this */ columnOrder: readonly unknown[] /** attribute `infer-column-types` */ inferColumnTypes: boolean /** attribute `row-drag-managed` */ rowDragManaged: boolean /** attribute `row-drag-group` */ rowDragGroup: string /** attribute `aligned-grid-group` */ alignedGridGroup: string /** attribute `filter-locale` */ filterLocale: string /** The grid api. Present once `apiready` has fired. */ readonly api: unknown } declare global { interface HTMLElementTagNameMap { 'sv-grid': SvGridElement 'sv-grid-shadow': SvGridElement } interface HTMLElementEventMap { pivotmodechange: CustomEvent rowadd: CustomEvent columnadd: CustomEvent columnchange: CustomEvent columnremove: CustomEvent rowsdelete: CustomEvent rowcolorchange: CustomEvent expandedchange: CustomEvent paginationchange: CustomEvent columnresize: CustomEvent rowresize: CustomEvent pasteclipboard: CustomEvent pasteoverflow: CustomEvent apiready: CustomEvent rowselectionchange: CustomEvent cellselectionchange: CustomEvent sortingchange: CustomEvent advancedfilterchange: CustomEvent filterschange: CustomEvent notechange: CustomEvent cellvaluechange: CustomEvent activecellchange: CustomEvent cellclick: CustomEvent rowclick: CustomEvent celldoubleclick: CustomEvent rowdoubleclick: CustomEvent scrollbottomreached: CustomEvent visiblerangechange: CustomEvent retryrow: CustomEvent detailtoggle: CustomEvent columnorderchange: CustomEvent columnvisibilitychange: CustomEvent columnpinningchange: CustomEvent rowdragend: CustomEvent rowdrop: CustomEvent selectionchange: CustomEvent } } export {}