refactor(views/table): merge storage into table view

This commit is contained in:
Elian Doran 2025-06-27 17:40:56 +03:00
parent 19eff5e6d6
commit e66aef17df
No known key found for this signature in database
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,4 @@
import froca from "../../services/froca.js";
import type { StateInfo } from "./table_view/storage.js";
import ViewMode, { type ViewModeArgs } from "./view_mode.js";
import { createGrid, AllCommunityModule, ModuleRegistry, GridOptions } from "ag-grid-community";
import { setLabel } from "../../services/attributes.js";
@ -7,6 +6,7 @@ import getPromotedAttributeInformation from "./table_view/parser.js";
import { buildData, TableData } from "./table_view/data.js";
import applyHeaderCustomization from "./table_view/header-customization.js";
import server from "../../services/server.js";
import type { GridState } from "ag-grid-community";
const TPL = /*html*/`
<div class="table-view">
@ -36,6 +36,10 @@ const TPL = /*html*/`
</div>
`;
export interface StateInfo {
gridState: GridState;
}
export default class TableView extends ViewMode<StateInfo> {
private $root: JQuery<HTMLElement>;

View File

@ -1,6 +0,0 @@
import { GridState } from "ag-grid-community";
export interface StateInfo {
gridState: GridState;
}