@scvzerng/element-ui-ag-grid-vue2 0.0.9 → 0.0.11

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.
@@ -14812,7 +14812,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
14812
14812
  refresh: () => Promise<void>;
14813
14813
  getRows: <T>() => (ActualRow<T> | EditableRow<T>)[];
14814
14814
  createRow<T>(data: T, transient?: boolean): ActualRow<T> | EditableRow<T>;
14815
- existRow: (row: import("./model/row/GridRow").GridRow<any>) => boolean;
14815
+ existRow: (row: import("./index").GridRow<any>) => boolean;
14816
14816
  insertRows: (rows: (ActualRow<any> | EditableRow<any>)[], index?: number) => Promise<void>;
14817
14817
  startEditing: () => void;
14818
14818
  stopEditing: () => void;
@@ -11,6 +11,7 @@ export { default as Grid } from './Grid.vue';
11
11
  export * from './renders';
12
12
  export * from "./helper/vModel";
13
13
  export * from "./search";
14
+ export * from "./model/row/GridRow";
14
15
  export type Options<TData = any> = RestrictedAgGridOptions<TData>;
15
16
  export type Column<T = any> = ColDef<T> | ColGroupDef<T>;
16
17
  export type ContextMenuItem<TData> = {
@@ -60,6 +60,7 @@ export declare class ActualRow<T> implements GridRow<T> {
60
60
  * @param data
61
61
  */
62
62
  update(id: string, data: T): void;
63
+ isProjection(): this is ProjectionRow<T>;
63
64
  isTransient(): this is EditableRow<T>;
64
65
  getId(): string;
65
66
  isEditing(): this is EditableRow<T>;
@@ -20,6 +20,7 @@ export declare class EditableRow<T = any> implements GridRow<T> {
20
20
  getSignature(): string;
21
21
  getValue(column: Column, nestingIndexes: number[]): string | boolean | number;
22
22
  getData(): T;
23
+ isProjection(): this is ProjectionRow<T>;
23
24
  isTransient(): this is EditableRow<T>;
24
25
  getCell(column: Column, nestingIndexes: number[]): import("./CellValue").CellValue | undefined;
25
26
  __setIndex(index: number): void;
@@ -1,5 +1,6 @@
1
1
  import { Column, IRowNode } from 'ag-grid-community';
2
2
  import { ActualRow } from './ActualRow';
3
+ import { ProjectionRow } from './ProjectionRow';
3
4
  import { EditableRow } from './EditableRow';
4
5
  import { CellValue } from './CellValue';
5
6
  import { RowSpans } from './SpanInfo';
@@ -9,6 +10,7 @@ export interface GridRow<T> {
9
10
  getData(): T;
10
11
  getId(): string;
11
12
  isTransient(): this is EditableRow<T>;
13
+ isProjection(): this is ProjectionRow<T>;
12
14
  getCell(column: Column, nestingIndexes?: number[]): CellValue | undefined;
13
15
  getSignature(): string;
14
16
  getRowSpans(): RowSpans;
@@ -3,6 +3,7 @@ import { ActualRow } from './ActualRow';
3
3
  import { GridRow } from './GridRow';
4
4
  import { EditableRow } from './EditableRow';
5
5
  import { RowSpans } from './SpanInfo';
6
+ import { ICustomCellRendererParams } from '../../render/types/ICellRendererParamsExt';
6
7
  /**
7
8
  * 投影行
8
9
  *
@@ -27,6 +28,7 @@ export declare class ProjectionRow<T> implements GridRow<T> {
27
28
  isEditing(): this is EditableRow<T>;
28
29
  getValue(column: Column): string | boolean | number;
29
30
  getRowSpan(column: Column): number;
31
+ isProjection(): this is ProjectionRow<T>;
30
32
  getData(): T;
31
33
  isColumnValueChanged(value: any, column: Column): boolean;
32
34
  getNestingIndexes(): number[];
@@ -40,4 +42,8 @@ export declare class ProjectionRow<T> implements GridRow<T> {
40
42
  setData(data: T): void;
41
43
  buildSpan(): void;
42
44
  match(rowNode: IRowNode<GridRow<T>>): boolean;
45
+ getHostObject(params: ICustomCellRendererParams<GridRow<any>, any>): {
46
+ hostObject: any;
47
+ hostArray: any[] | undefined;
48
+ };
43
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scvzerng/element-ui-ag-grid-vue2",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "scripts": {