@ai-table/grid 0.1.11 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-table/grid",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",
@@ -1,8 +1,8 @@
1
1
  import { AITableActionIconConfig, AITableAttachmentConfig } from '../../../types';
2
2
  import { AITableFieldType } from '@ai-table/utils';
3
- import { HoverCellComponent } from './hover-cell';
3
+ import { CoverCellComponent } from './cover-cell';
4
4
  import * as i0 from "@angular/core";
5
- export declare class AITableCellAttachment extends HoverCellComponent {
5
+ export declare class AITableCellAttachment extends CoverCellComponent {
6
6
  static fieldType: AITableFieldType;
7
7
  attachments: import("@angular/core").Signal<AITableAttachmentConfig[]>;
8
8
  iconConfig: import("@angular/core").Signal<AITableActionIconConfig>;
@@ -1,5 +1,5 @@
1
1
  import { Constructor } from 'ngx-tethys/core';
2
2
  import { AITableFieldType } from '@ai-table/utils';
3
- import { HoverCellComponent } from './hover-cell';
4
- export declare const ComponentMap: Partial<Record<AITableFieldType | string, Constructor<HoverCellComponent>>>;
3
+ import { CoverCellComponent } from './cover-cell';
4
+ export declare const ComponentMap: Partial<Record<AITableFieldType | string, Constructor<CoverCellComponent>>>;
5
5
  //# sourceMappingURL=cells.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { Component, InputSignal } from '@angular/core';
2
- import { AITableHoverCellConfig } from '../../../types';
2
+ import { AITableCoverCellConfig } from '../../../types';
3
3
  import { AITableFieldType } from '@ai-table/utils';
4
4
  import * as i0 from "@angular/core";
5
- export declare class HoverCellComponent extends Component {
5
+ export declare class CoverCellComponent extends Component {
6
6
  static fieldType: AITableFieldType | string;
7
- config: InputSignal<AITableHoverCellConfig | undefined>;
7
+ config: InputSignal<AITableCoverCellConfig | undefined>;
8
8
  onlyDisplayBorder: InputSignal<boolean>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<HoverCellComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<HoverCellComponent, "ai-table-hover-cell", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "onlyDisplayBorder": { "alias": "onlyDisplayBorder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoverCellComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoverCellComponent, "ai-table-cover-cell", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "onlyDisplayBorder": { "alias": "onlyDisplayBorder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
11
  }
12
- //# sourceMappingURL=hover-cell.d.ts.map
12
+ //# sourceMappingURL=cover-cell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover-cell.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/renderer/components/cells/hover-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAAS,WAAW,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;;AAEnD,qBAKa,kBAAmB,SAAQ,SAAS;IAC7C,MAAM,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAE5C,MAAM,kDAAmC;IAEzC,iBAAiB,uBAAyB;yCALjC,kBAAkB;2CAAlB,kBAAkB;CAM9B"}
1
+ {"version":3,"file":"cover-cell.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/renderer/components/cells/cover-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAAS,WAAW,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;;AAEnD,qBAKa,kBAAmB,SAAQ,SAAS;IAC7C,MAAM,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAE5C,MAAM,kDAAmC;IAEzC,iBAAiB,uBAAyB;yCALjC,kBAAkB;2CAAlB,kBAAkB;CAM9B"}
@@ -2,9 +2,9 @@ import { AITableRender } from '../../../types';
2
2
  import { KoEventObject } from '../../../angular-konva';
3
3
  import { AITableFieldType } from '@ai-table/utils';
4
4
  import { TextConfig } from 'konva/lib/shapes/Text';
5
- import { HoverCellComponent } from './hover-cell';
5
+ import { CoverCellComponent } from './cover-cell';
6
6
  import * as i0 from "@angular/core";
7
- export declare class AITableCellLink extends HoverCellComponent {
7
+ export declare class AITableCellLink extends CoverCellComponent {
8
8
  static fieldType: AITableFieldType;
9
9
  textOffset: number;
10
10
  render: import("@angular/core").Signal<AITableRender<import("@ai-table/utils").AITableReferences> | undefined>;
@@ -1,8 +1,8 @@
1
1
  import { KoEventObject } from '../../../angular-konva';
2
2
  import { AITableFieldType } from '@ai-table/utils';
3
- import { HoverCellComponent } from '../../../renderer';
3
+ import { CoverCellComponent } from '../../../renderer';
4
4
  import * as i0 from "@angular/core";
5
- export declare class AITableCellProgress extends HoverCellComponent {
5
+ export declare class AITableCellProgress extends CoverCellComponent {
6
6
  static fieldType: AITableFieldType;
7
7
  readonly: import("@angular/core").Signal<boolean | undefined>;
8
8
  private dragPointerX;
@@ -1,8 +1,8 @@
1
1
  import { KoEventObject } from '../../../angular-konva';
2
2
  import { AITableFieldType } from '@ai-table/utils';
3
- import { HoverCellComponent } from '../../../renderer';
3
+ import { CoverCellComponent } from '../../../renderer';
4
4
  import * as i0 from "@angular/core";
5
- export declare class AITableCellRate extends HoverCellComponent {
5
+ export declare class AITableCellRate extends CoverCellComponent {
6
6
  static fieldType: AITableFieldType;
7
7
  private pointerX;
8
8
  private pointerY;
@@ -1,9 +1,9 @@
1
1
  import { AITableActionIconConfig } from '../../../types';
2
2
  import { AITableFieldType } from '@ai-table/utils';
3
3
  import { TextConfig } from 'konva/lib/shapes/Text';
4
- import { HoverCellComponent } from './hover-cell';
4
+ import { CoverCellComponent } from './cover-cell';
5
5
  import * as i0 from "@angular/core";
6
- export declare class AITableCellRichText extends HoverCellComponent {
6
+ export declare class AITableCellRichText extends CoverCellComponent {
7
7
  static fieldType: AITableFieldType;
8
8
  textConfig: import("@angular/core").Signal<TextConfig | undefined>;
9
9
  iconConfig: import("@angular/core").Signal<AITableActionIconConfig>;
@@ -1,26 +1,26 @@
1
- import { AITableCellsConfig, AITableHoverCellConfig } from '../../types';
1
+ import { AITableCellsConfig, AITableCoverCellConfig } from '../../types';
2
2
  import { AITableFieldType } from '@ai-table/utils';
3
3
  import { Constructor } from 'ngx-tethys/core';
4
- import { HoverCellComponent } from './cells/hover-cell';
4
+ import { CoverCellComponent } from './cells/cover-cell';
5
5
  import * as i0 from "@angular/core";
6
- export declare class AITableHoverCells {
6
+ export declare class AITableCoverCells {
7
7
  config: import("@angular/core").InputSignal<AITableCellsConfig>;
8
8
  onlyDisplayBorder: import("@angular/core").InputSignal<boolean>;
9
- componentMap: Partial<Record<AITableFieldType, Constructor<HoverCellComponent>>>;
9
+ componentMap: Partial<Record<AITableFieldType, Constructor<CoverCellComponent>>>;
10
10
  groupConfig: import("@angular/core").Signal<{
11
11
  x: number | undefined;
12
12
  y: number | undefined;
13
13
  listening: boolean;
14
14
  }>;
15
- hoverCellConfig: import("@angular/core").Signal<AITableHoverCellConfig | undefined>;
16
- hoverCell: import("@angular/core").Signal<{
15
+ coverCellConfig: import("@angular/core").Signal<AITableCoverCellConfig | undefined>;
16
+ coverCell: import("@angular/core").Signal<{
17
17
  field: import("@ai-table/utils").AITableField;
18
18
  recordId: string;
19
19
  fieldId: string;
20
20
  isExpand: boolean;
21
- renderComponentDefinition: Constructor<HoverCellComponent>;
21
+ renderComponentDefinition: Constructor<CoverCellComponent>;
22
22
  } | undefined>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<AITableHoverCells, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<AITableHoverCells, "ai-table-hover-cell", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "onlyDisplayBorder": { "alias": "onlyDisplayBorder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AITableCoverCells, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<AITableCoverCells, "ai-table-cover-cell", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "onlyDisplayBorder": { "alias": "onlyDisplayBorder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
25
  }
26
- //# sourceMappingURL=hover-cell.component.d.ts.map
26
+ //# sourceMappingURL=cover-cell.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover-cell.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/renderer/components/hover-cell.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMnD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;;AAExD,qBAkBa,iBAAiB;IAC1B,MAAM,0DAAwC;IAE9C,iBAAiB,+CAAyB;IAE1C,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAM;IAEtF,WAAW;;;;OAMR;IAEH,eAAe,qEA8DZ;IAEH,SAAS;;;;;;mBAAuD;yCA/EvD,iBAAiB;2CAAjB,iBAAiB;CAgF7B"}
1
+ {"version":3,"file":"cover-cell.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/renderer/components/cover-cell.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMnD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;;AAExD,qBAkBa,iBAAiB;IAC1B,MAAM,0DAAwC;IAE9C,iBAAiB,+CAAyB;IAE1C,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAM;IAEtF,WAAW;;;;OAMR;IAEH,eAAe,qEA8DZ;IAEH,SAAS;;;;;;mBAAuD;yCA/EvD,iBAAiB;2CAAjB,iBAAiB;CAgF7B"}
@@ -13,5 +13,5 @@ export * from './placeholder-cells.component';
13
13
  export * from './text.component';
14
14
  export * from './cells';
15
15
  export * from './action-icon.component';
16
- export * from './cells/hover-cell';
16
+ export * from './cells/cover-cell';
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -36,7 +36,7 @@ export declare class AITableRenderer {
36
36
  commonGroupConfig: import("@angular/core").Signal<Partial<StageConfig>>;
37
37
  attachGroupConfig: import("@angular/core").Signal<Partial<StageConfig>>;
38
38
  frozenAttachGroupConfig: import("@angular/core").Signal<Partial<StageConfig>>;
39
- frozenHoverAttachGroupConfig: import("@angular/core").Signal<Partial<StageConfig>>;
39
+ frozenCoverAttachGroupConfig: import("@angular/core").Signal<Partial<StageConfig>>;
40
40
  offsetYConfig: import("@angular/core").Signal<Partial<StageConfig>>;
41
41
  offsetXConfig: import("@angular/core").Signal<Partial<StageConfig>>;
42
42
  offsetConfig: import("@angular/core").Signal<Partial<StageConfig>>;
@@ -9,8 +9,8 @@ export interface AITableIconConfig extends Konva.ShapeConfig {
9
9
  }
10
10
  export interface AITableActionIconConfig extends AITableIconConfig {
11
11
  coordinate: Coordinate;
12
- hoverBackground?: string;
13
- hoverFill?: string;
12
+ coverBackground?: string;
13
+ coverFill?: string;
14
14
  }
15
15
  export interface AITableAttachmentConfig extends Konva.ShapeConfig {
16
16
  coordinate: Coordinate;
@@ -52,7 +52,7 @@ export interface AITableAddFieldConfig {
52
52
  readonly?: boolean;
53
53
  maxFields?: number;
54
54
  }
55
- export interface AITableHoverCellConfig {
55
+ export interface AITableCoverCellConfig {
56
56
  aiTable: AITable;
57
57
  coordinate: Coordinate;
58
58
  field: AITableField;
package/types/grid.d.ts CHANGED
@@ -7,7 +7,7 @@ import { AITableRender } from './cell';
7
7
  import { FieldOperable } from '../utils';
8
8
  import { CellDrawer } from '../renderer/drawers/cell-drawer';
9
9
  import { Constructor } from 'ngx-tethys/core';
10
- import { HoverCellComponent } from '../renderer';
10
+ import { CoverCellComponent } from '../renderer';
11
11
  export interface AITableGridCellRenderSchema<TR extends AITableReferences = AITableReferences> {
12
12
  editor?: any;
13
13
  transform?: (field: AITableField, value: FieldValue) => any;
@@ -31,7 +31,7 @@ export interface AITableCustomFieldConfig<TR extends AITableReferences = AITable
31
31
  fieldOption?: AITableFieldOption;
32
32
  fieldModel?: FieldOperable<unknown, unknown>;
33
33
  render?: (render: AITableRender<TR>, drawer: CellDrawer) => any;
34
- hoverRender?: Constructor<HoverCellComponent>;
34
+ coverRender?: Constructor<CoverCellComponent>;
35
35
  getDefaultFieldValue?: (field: AITableField) => FieldValue;
36
36
  }
37
37
  export interface AIFieldConfig<TR extends AITableReferences = AITableReferences> {
package/utils/cell.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AITableField, AITableSizeMap, FieldValue } from '@ai-table/utils';
1
+ import { AIRecordFieldIdPath, AITableField, AITableSizeMap, FieldValue } from '@ai-table/utils';
2
2
  import { AITable } from '../core';
3
3
  export declare function getColumnIndicesSizeMap(aiTable: AITable, fields: AITableField[]): AITableSizeMap;
4
4
  /**
@@ -16,4 +16,5 @@ export declare function getCellHorizontalPosition(options: {
16
16
  export declare function transformCellValue<T = any>(aiTable: AITable, field: AITableField, cellValue: FieldValue): T | null;
17
17
  export declare function getAvatarShortName(name: string | null | undefined): string;
18
18
  export declare function getAvatarBgColor(name: string): string | undefined;
19
+ export declare function expandCell(aiTable: AITable, path: AIRecordFieldIdPath): void;
19
20
  //# sourceMappingURL=cell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,OAAO,EAAyB,MAAM,SAAS,CAAC;AAIzD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,kBAO/E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE;;;EAGnH;AAKD,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,GAAG,IAAI,CA6BlH;AAUD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAiB1E;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,sBAiB5C"}
1
+ {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAsB,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAAE,OAAO,EAAyB,MAAM,SAAS,CAAC;AAIzD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,kBAO/E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE;;;EAGnH;AAKD,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,GAAG,IAAI,CA6BlH;AAUD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAiB1E;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,sBAiB5C;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,QAMrE"}
@@ -1,9 +1,9 @@
1
1
  import { AITable } from '../core';
2
- export declare function getHoverCell(aiTable: AITable): {
2
+ export declare function getCoverCell(aiTable: AITable): {
3
3
  field: import("@ai-table/utils").AITableField;
4
4
  recordId: string;
5
5
  fieldId: string;
6
6
  isExpand: boolean;
7
- renderComponentDefinition: import("ngx-tethys/core").Constructor<import("@ai-table/grid").HoverCellComponent>;
7
+ renderComponentDefinition: import("ngx-tethys/core").Constructor<import("@ai-table/grid").CoverCellComponent>;
8
8
  } | undefined;
9
- //# sourceMappingURL=hover-cell.d.ts.map
9
+ //# sourceMappingURL=cover-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cover-cell.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/cover-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO;;;;;;cAsC5C"}
package/utils/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export * from './text-measure';
12
12
  export * from './visible-range';
13
13
  export * from './field';
14
14
  export * from './match-keywords';
15
- export * from './hover-cell';
15
+ export * from './cover-cell';
16
16
  export * from './clear-cells';
17
17
  export * from './i18n';
18
18
  export * from './file';
@@ -1 +0,0 @@
1
- {"version":3,"file":"hover-cell.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/hover-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO;;;;;;cAsC5C"}