@ai-table/grid 0.4.1 → 0.4.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/components/record-detail/record-detail.component.scss +70 -0
- package/fesm2022/ai-table-grid.mjs +1160 -969
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/index.d.ts +3510 -2
- package/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/styles/styles.scss +1 -0
- package/ai-table-grid.d.ts.map +0 -1
- package/angular-konva/components/container.component.d.ts +0 -7
- package/angular-konva/components/container.component.d.ts.map +0 -1
- package/angular-konva/components/container.token.d.ts +0 -3
- package/angular-konva/components/container.token.d.ts.map +0 -1
- package/angular-konva/components/index.d.ts +0 -4
- package/angular-konva/components/index.d.ts.map +0 -1
- package/angular-konva/components/shape.component.d.ts +0 -61
- package/angular-konva/components/shape.component.d.ts.map +0 -1
- package/angular-konva/components/stage.component.d.ts +0 -40
- package/angular-konva/components/stage.component.d.ts.map +0 -1
- package/angular-konva/index.d.ts +0 -5
- package/angular-konva/index.d.ts.map +0 -1
- package/angular-konva/interfaces/component.d.ts +0 -49
- package/angular-konva/interfaces/component.d.ts.map +0 -1
- package/angular-konva/interfaces/config.d.ts +0 -26
- package/angular-konva/interfaces/config.d.ts.map +0 -1
- package/angular-konva/interfaces/event-object.d.ts +0 -11
- package/angular-konva/interfaces/event-object.d.ts.map +0 -1
- package/angular-konva/interfaces/index.d.ts +0 -5
- package/angular-konva/interfaces/index.d.ts.map +0 -1
- package/angular-konva/interfaces/shape.d.ts +0 -42
- package/angular-konva/interfaces/shape.d.ts.map +0 -1
- package/angular-konva/utils/apply-node-props.d.ts +0 -4
- package/angular-konva/utils/apply-node-props.d.ts.map +0 -1
- package/angular-konva/utils/common.d.ts +0 -8
- package/angular-konva/utils/common.d.ts.map +0 -1
- package/angular-konva/utils/index.d.ts +0 -5
- package/angular-konva/utils/index.d.ts.map +0 -1
- package/angular-konva/utils/types.d.ts +0 -4
- package/angular-konva/utils/types.d.ts.map +0 -1
- package/angular-konva/utils/update-picture.d.ts +0 -4
- package/angular-konva/utils/update-picture.d.ts.map +0 -1
- package/components/cell-editors/abstract-cell-editor.component.d.ts +0 -34
- package/components/cell-editors/abstract-cell-editor.component.d.ts.map +0 -1
- package/components/cell-editors/date/date-editor.component.d.ts +0 -12
- package/components/cell-editors/date/date-editor.component.d.ts.map +0 -1
- package/components/cell-editors/index.d.ts +0 -3
- package/components/cell-editors/index.d.ts.map +0 -1
- package/components/cell-editors/link/edit-link/edit-link.component.d.ts +0 -41
- package/components/cell-editors/link/edit-link/edit-link.component.d.ts.map +0 -1
- package/components/cell-editors/link/link-editor.component.d.ts +0 -37
- package/components/cell-editors/link/link-editor.component.d.ts.map +0 -1
- package/components/cell-editors/number/number-editor.component.d.ts +0 -9
- package/components/cell-editors/number/number-editor.component.d.ts.map +0 -1
- package/components/cell-editors/select/select-editor.component.d.ts +0 -19
- package/components/cell-editors/select/select-editor.component.d.ts.map +0 -1
- package/components/cell-editors/text/text-editor.component.d.ts +0 -16
- package/components/cell-editors/text/text-editor.component.d.ts.map +0 -1
- package/components/cell-views/select/option.component.d.ts +0 -11
- package/components/cell-views/select/option.component.d.ts.map +0 -1
- package/components/context-menu/context-menu.component.d.ts +0 -24
- package/components/context-menu/context-menu.component.d.ts.map +0 -1
- package/components/drag/drag.component.d.ts +0 -53
- package/components/drag/drag.component.d.ts.map +0 -1
- package/components/field-menu/field-menu.component.d.ts +0 -23
- package/components/field-menu/field-menu.component.d.ts.map +0 -1
- package/components/field-setting/field-setting.component.d.ts +0 -57
- package/components/field-setting/field-setting.component.d.ts.map +0 -1
- package/components/index.d.ts +0 -11
- package/components/index.d.ts.map +0 -1
- package/components/menu-checkbox-sort/checkbox-menu-sort.component.d.ts +0 -15
- package/components/menu-checkbox-sort/checkbox-menu-sort.component.d.ts.map +0 -1
- package/components/stat-type-menu/stat-type-menucomponent.d.ts +0 -18
- package/components/stat-type-menu/stat-type-menucomponent.d.ts.map +0 -1
- package/constants/colors.d.ts +0 -23
- package/constants/colors.d.ts.map +0 -1
- package/constants/field-stat.d.ts +0 -3
- package/constants/field-stat.d.ts.map +0 -1
- package/constants/file-icon.d.ts +0 -32
- package/constants/file-icon.d.ts.map +0 -1
- package/constants/grid.d.ts +0 -27
- package/constants/grid.d.ts.map +0 -1
- package/constants/icon.d.ts +0 -27
- package/constants/icon.d.ts.map +0 -1
- package/constants/index.d.ts +0 -6
- package/constants/index.d.ts.map +0 -1
- package/constants/table.d.ts +0 -103
- package/constants/table.d.ts.map +0 -1
- package/constants/text.d.ts +0 -23
- package/constants/text.d.ts.map +0 -1
- package/core/constants/field.d.ts +0 -10
- package/core/constants/field.d.ts.map +0 -1
- package/core/context.d.ts +0 -31
- package/core/context.d.ts.map +0 -1
- package/core/coordinate.d.ts +0 -121
- package/core/coordinate.d.ts.map +0 -1
- package/core/index.d.ts +0 -6
- package/core/index.d.ts.map +0 -1
- package/core/types/ai-table.d.ts +0 -66
- package/core/types/ai-table.d.ts.map +0 -1
- package/core/types/core.d.ts +0 -8
- package/core/types/core.d.ts.map +0 -1
- package/core/types/index.d.ts +0 -3
- package/core/types/index.d.ts.map +0 -1
- package/core/utils/common.d.ts +0 -5
- package/core/utils/common.d.ts.map +0 -1
- package/core/utils/field.d.ts +0 -12
- package/core/utils/field.d.ts.map +0 -1
- package/core/utils/id-creator.d.ts +0 -5
- package/core/utils/id-creator.d.ts.map +0 -1
- package/core/utils/index.d.ts +0 -6
- package/core/utils/index.d.ts.map +0 -1
- package/core/utils/name-creator.d.ts +0 -5
- package/core/utils/name-creator.d.ts.map +0 -1
- package/core/utils/queries.d.ts +0 -13
- package/core/utils/queries.d.ts.map +0 -1
- package/core/utils/short-id.d.ts +0 -28
- package/core/utils/short-id.d.ts.map +0 -1
- package/dom-grid.component.d.ts +0 -11
- package/dom-grid.component.d.ts.map +0 -1
- package/grid-base.component.d.ts +0 -68
- package/grid-base.component.d.ts.map +0 -1
- package/grid.component.d.ts +0 -102
- package/grid.component.d.ts.map +0 -1
- package/pipes/grid.pipe.d.ts +0 -40
- package/pipes/grid.pipe.d.ts.map +0 -1
- package/pipes/index.d.ts +0 -2
- package/pipes/index.d.ts.map +0 -1
- package/public-api.d.ts +0 -12
- package/public-api.d.ts.map +0 -1
- package/renderer/cell-layout/base.d.ts +0 -48
- package/renderer/cell-layout/base.d.ts.map +0 -1
- package/renderer/cell-layout/fields/attachment.d.ts +0 -25
- package/renderer/cell-layout/fields/attachment.d.ts.map +0 -1
- package/renderer/cell-layout/fields/index.d.ts +0 -3
- package/renderer/cell-layout/fields/index.d.ts.map +0 -1
- package/renderer/cell-layout/fields/member.d.ts +0 -12
- package/renderer/cell-layout/fields/member.d.ts.map +0 -1
- package/renderer/cell-layout/fields/multi-select.d.ts +0 -13
- package/renderer/cell-layout/fields/multi-select.d.ts.map +0 -1
- package/renderer/components/action-icon.component.d.ts +0 -54
- package/renderer/components/action-icon.component.d.ts.map +0 -1
- package/renderer/components/add-field-column.component.d.ts +0 -13
- package/renderer/components/add-field-column.component.d.ts.map +0 -1
- package/renderer/components/background.component.d.ts +0 -37
- package/renderer/components/background.component.d.ts.map +0 -1
- package/renderer/components/cells/attachment.component.d.ts +0 -12
- package/renderer/components/cells/attachment.component.d.ts.map +0 -1
- package/renderer/components/cells/cells.d.ts +0 -5
- package/renderer/components/cells/cells.d.ts.map +0 -1
- package/renderer/components/cells/checkbox.component.d.ts +0 -12
- package/renderer/components/cells/checkbox.component.d.ts.map +0 -1
- package/renderer/components/cells/cover-cell-base.d.ts +0 -12
- package/renderer/components/cells/cover-cell-base.d.ts.map +0 -1
- package/renderer/components/cells/index.d.ts +0 -8
- package/renderer/components/cells/index.d.ts.map +0 -1
- package/renderer/components/cells/link.component.d.ts +0 -22
- package/renderer/components/cells/link.component.d.ts.map +0 -1
- package/renderer/components/cells/progress.component.d.ts +0 -80
- package/renderer/components/cells/progress.component.d.ts.map +0 -1
- package/renderer/components/cells/rate.component.d.ts +0 -36
- package/renderer/components/cells/rate.component.d.ts.map +0 -1
- package/renderer/components/cells/rich-text.component.d.ts +0 -13
- package/renderer/components/cells/rich-text.component.d.ts.map +0 -1
- package/renderer/components/cells/single-text.component.d.ts +0 -34
- package/renderer/components/cells/single-text.component.d.ts.map +0 -1
- package/renderer/components/cells.component.d.ts +0 -14
- package/renderer/components/cells.component.d.ts.map +0 -1
- package/renderer/components/cover-cell.component.d.ts +0 -26
- package/renderer/components/cover-cell.component.d.ts.map +0 -1
- package/renderer/components/field-head.component.d.ts +0 -82
- package/renderer/components/field-head.component.d.ts.map +0 -1
- package/renderer/components/field-icon.component.d.ts +0 -17
- package/renderer/components/field-icon.component.d.ts.map +0 -1
- package/renderer/components/field-stat/stat.component.d.ts +0 -77
- package/renderer/components/field-stat/stat.component.d.ts.map +0 -1
- package/renderer/components/field-stat/stats.component.d.ts +0 -15
- package/renderer/components/field-stat/stats.component.d.ts.map +0 -1
- package/renderer/components/fill-handle.component.d.ts +0 -20
- package/renderer/components/fill-handle.component.d.ts.map +0 -1
- package/renderer/components/frozen-cells.component.d.ts +0 -14
- package/renderer/components/frozen-cells.component.d.ts.map +0 -1
- package/renderer/components/frozen-heads.component.d.ts +0 -111
- package/renderer/components/frozen-heads.component.d.ts.map +0 -1
- package/renderer/components/frozen-placeholder-cells.component.d.ts +0 -22
- package/renderer/components/frozen-placeholder-cells.component.d.ts.map +0 -1
- package/renderer/components/group/frozen-groups.component.d.ts +0 -18
- package/renderer/components/group/frozen-groups.component.d.ts.map +0 -1
- package/renderer/components/group/groups.component.d.ts +0 -15
- package/renderer/components/group/groups.component.d.ts.map +0 -1
- package/renderer/components/group/index.d.ts +0 -3
- package/renderer/components/group/index.d.ts.map +0 -1
- package/renderer/components/heads.component.d.ts +0 -9
- package/renderer/components/heads.component.d.ts.map +0 -1
- package/renderer/components/hover-row-heads.component.d.ts +0 -13
- package/renderer/components/hover-row-heads.component.d.ts.map +0 -1
- package/renderer/components/icon.component.d.ts +0 -39
- package/renderer/components/icon.component.d.ts.map +0 -1
- package/renderer/components/index.d.ts +0 -21
- package/renderer/components/index.d.ts.map +0 -1
- package/renderer/components/other-rows.component.d.ts +0 -31
- package/renderer/components/other-rows.component.d.ts.map +0 -1
- package/renderer/components/placeholder-cells.component.d.ts +0 -22
- package/renderer/components/placeholder-cells.component.d.ts.map +0 -1
- package/renderer/components/scrollable-group/index.d.ts +0 -2
- package/renderer/components/scrollable-group/index.d.ts.map +0 -1
- package/renderer/components/scrollable-group/scrollable-group.component.d.ts +0 -118
- package/renderer/components/scrollable-group/scrollable-group.component.d.ts.map +0 -1
- package/renderer/components/shadow.component.d.ts +0 -10
- package/renderer/components/shadow.component.d.ts.map +0 -1
- package/renderer/components/text.component.d.ts +0 -14
- package/renderer/components/text.component.d.ts.map +0 -1
- package/renderer/creations/create-active-cell-border.d.ts +0 -7
- package/renderer/creations/create-active-cell-border.d.ts.map +0 -1
- package/renderer/creations/create-cells.d.ts +0 -12
- package/renderer/creations/create-cells.d.ts.map +0 -1
- package/renderer/creations/create-groups.d.ts +0 -3
- package/renderer/creations/create-groups.d.ts.map +0 -1
- package/renderer/creations/create-heads.d.ts +0 -3
- package/renderer/creations/create-heads.d.ts.map +0 -1
- package/renderer/creations/create-stats.d.ts +0 -4
- package/renderer/creations/create-stats.d.ts.map +0 -1
- package/renderer/drawers/add-row-layout-drawer.d.ts +0 -12
- package/renderer/drawers/add-row-layout-drawer.d.ts.map +0 -1
- package/renderer/drawers/cell-drawer.d.ts +0 -32
- package/renderer/drawers/cell-drawer.d.ts.map +0 -1
- package/renderer/drawers/drawer.d.ts +0 -147
- package/renderer/drawers/drawer.d.ts.map +0 -1
- package/renderer/drawers/group-layout.d.ts +0 -11
- package/renderer/drawers/group-layout.d.ts.map +0 -1
- package/renderer/drawers/layout-drawer.d.ts +0 -30
- package/renderer/drawers/layout-drawer.d.ts.map +0 -1
- package/renderer/drawers/record-row-layout-drawer.d.ts +0 -15
- package/renderer/drawers/record-row-layout-drawer.d.ts.map +0 -1
- package/renderer/index.d.ts +0 -8
- package/renderer/index.d.ts.map +0 -1
- package/renderer/renderer.component.d.ts +0 -105
- package/renderer/renderer.component.d.ts.map +0 -1
- package/services/event.service.d.ts +0 -40
- package/services/event.service.d.ts.map +0 -1
- package/services/field.service.d.ts +0 -17
- package/services/field.service.d.ts.map +0 -1
- package/services/index.d.ts +0 -3
- package/services/index.d.ts.map +0 -1
- package/services/scroll-controller.service.d.ts +0 -77
- package/services/scroll-controller.service.d.ts.map +0 -1
- package/types/atom.d.ts +0 -26
- package/types/atom.d.ts.map +0 -1
- package/types/avatar.d.ts +0 -24
- package/types/avatar.d.ts.map +0 -1
- package/types/canvas.d.ts +0 -86
- package/types/canvas.d.ts.map +0 -1
- package/types/cell.d.ts +0 -80
- package/types/cell.d.ts.map +0 -1
- package/types/clipboard.d.ts +0 -5
- package/types/clipboard.d.ts.map +0 -1
- package/types/component-config.d.ts +0 -159
- package/types/component-config.d.ts.map +0 -1
- package/types/field.d.ts +0 -44
- package/types/field.d.ts.map +0 -1
- package/types/grid.d.ts +0 -132
- package/types/grid.d.ts.map +0 -1
- package/types/index.d.ts +0 -11
- package/types/index.d.ts.map +0 -1
- package/types/layout.d.ts +0 -31
- package/types/layout.d.ts.map +0 -1
- package/types/row.d.ts +0 -81
- package/types/row.d.ts.map +0 -1
- package/utils/build.d.ts +0 -6
- package/utils/build.d.ts.map +0 -1
- package/utils/cell.d.ts +0 -40
- package/utils/cell.d.ts.map +0 -1
- package/utils/clear-cells.d.ts +0 -4
- package/utils/clear-cells.d.ts.map +0 -1
- package/utils/clipboard/clipboard.d.ts +0 -8
- package/utils/clipboard/clipboard.d.ts.map +0 -1
- package/utils/clipboard/copy.d.ts +0 -5
- package/utils/clipboard/copy.d.ts.map +0 -1
- package/utils/clipboard/extract.d.ts +0 -3
- package/utils/clipboard/extract.d.ts.map +0 -1
- package/utils/clipboard/index.d.ts +0 -5
- package/utils/clipboard/index.d.ts.map +0 -1
- package/utils/clipboard/paste.d.ts +0 -15
- package/utils/clipboard/paste.d.ts.map +0 -1
- package/utils/common.d.ts +0 -21
- package/utils/common.d.ts.map +0 -1
- package/utils/cover-cell.d.ts +0 -9
- package/utils/cover-cell.d.ts.map +0 -1
- package/utils/drag-fill/drag-fill.d.ts +0 -19
- package/utils/drag-fill/drag-fill.d.ts.map +0 -1
- package/utils/drag-fill/index.d.ts +0 -2
- package/utils/drag-fill/index.d.ts.map +0 -1
- package/utils/field/field-operable.d.ts +0 -10
- package/utils/field/field-operable.d.ts.map +0 -1
- package/utils/field/field.d.ts +0 -6
- package/utils/field/field.d.ts.map +0 -1
- package/utils/field/index.d.ts +0 -5
- package/utils/field/index.d.ts.map +0 -1
- package/utils/field/model/attachment.d.ts +0 -15
- package/utils/field/model/attachment.d.ts.map +0 -1
- package/utils/field/model/checkbox.d.ts +0 -12
- package/utils/field/model/checkbox.d.ts.map +0 -1
- package/utils/field/model/date.d.ts +0 -18
- package/utils/field/model/date.d.ts.map +0 -1
- package/utils/field/model/index.d.ts +0 -12
- package/utils/field/model/index.d.ts.map +0 -1
- package/utils/field/model/link.d.ts +0 -15
- package/utils/field/model/link.d.ts.map +0 -1
- package/utils/field/model/member.d.ts +0 -15
- package/utils/field/model/member.d.ts.map +0 -1
- package/utils/field/model/number.d.ts +0 -15
- package/utils/field/model/number.d.ts.map +0 -1
- package/utils/field/model/progress.d.ts +0 -15
- package/utils/field/model/progress.d.ts.map +0 -1
- package/utils/field/model/rate.d.ts +0 -15
- package/utils/field/model/rate.d.ts.map +0 -1
- package/utils/field/model/rich-text.d.ts +0 -16
- package/utils/field/model/rich-text.d.ts.map +0 -1
- package/utils/field/model/select.d.ts +0 -28
- package/utils/field/model/select.d.ts.map +0 -1
- package/utils/field/model/text.d.ts +0 -9
- package/utils/field/model/text.d.ts.map +0 -1
- package/utils/field/operate.d.ts +0 -13
- package/utils/field/operate.d.ts.map +0 -1
- package/utils/field-stat.d.ts +0 -7
- package/utils/field-stat.d.ts.map +0 -1
- package/utils/file.d.ts +0 -2
- package/utils/file.d.ts.map +0 -1
- package/utils/get-placeholder-cells.d.ts +0 -16
- package/utils/get-placeholder-cells.d.ts.map +0 -1
- package/utils/get-text-width.d.ts +0 -9
- package/utils/get-text-width.d.ts.map +0 -1
- package/utils/group.d.ts +0 -4
- package/utils/group.d.ts.map +0 -1
- package/utils/i18n.d.ts +0 -114
- package/utils/i18n.d.ts.map +0 -1
- package/utils/image-cache.d.ts +0 -16
- package/utils/image-cache.d.ts.map +0 -1
- package/utils/index.d.ts +0 -24
- package/utils/index.d.ts.map +0 -1
- package/utils/match-keywords.d.ts +0 -4
- package/utils/match-keywords.d.ts.map +0 -1
- package/utils/os.d.ts +0 -4
- package/utils/os.d.ts.map +0 -1
- package/utils/position.d.ts +0 -21
- package/utils/position.d.ts.map +0 -1
- package/utils/record.d.ts +0 -4
- package/utils/record.d.ts.map +0 -1
- package/utils/style.d.ts +0 -4
- package/utils/style.d.ts.map +0 -1
- package/utils/text-measure.d.ts +0 -32
- package/utils/text-measure.d.ts.map +0 -1
- package/utils/transform.d.ts +0 -13
- package/utils/transform.d.ts.map +0 -1
- package/utils/visible-range.d.ts +0 -14
- package/utils/visible-range.d.ts.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,2 +1,3510 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal, WritableSignal, ElementRef, ViewContainerRef, AfterViewInit, OnInit, Renderer2, ChangeDetectorRef, TemplateRef, OnDestroy, Type, Injector, Component, EventEmitter, InjectionToken, NgZone, DestroyRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { FastLayer } from 'konva/lib/FastLayer';
|
|
4
|
+
import * as konva_lib_Group from 'konva/lib/Group';
|
|
5
|
+
import { GroupConfig, Group } from 'konva/lib/Group';
|
|
6
|
+
import * as konva_lib_Layer from 'konva/lib/Layer';
|
|
7
|
+
import { LayerConfig, Layer } from 'konva/lib/Layer';
|
|
8
|
+
import * as konva_lib_Shape from 'konva/lib/Shape';
|
|
9
|
+
import { ShapeConfig, Shape } from 'konva/lib/Shape';
|
|
10
|
+
import { ArcConfig, Arc } from 'konva/lib/shapes/Arc';
|
|
11
|
+
import { ArrowConfig, Arrow } from 'konva/lib/shapes/Arrow';
|
|
12
|
+
import * as konva_lib_shapes_Circle from 'konva/lib/shapes/Circle';
|
|
13
|
+
import { CircleConfig, Circle } from 'konva/lib/shapes/Circle';
|
|
14
|
+
import { EllipseConfig, Ellipse } from 'konva/lib/shapes/Ellipse';
|
|
15
|
+
import { ImageConfig, Image } from 'konva/lib/shapes/Image';
|
|
16
|
+
import * as konva_lib_shapes_Label from 'konva/lib/shapes/Label';
|
|
17
|
+
import { LabelConfig, TagConfig, Label, Tag } from 'konva/lib/shapes/Label';
|
|
18
|
+
import * as konva_lib_shapes_Line from 'konva/lib/shapes/Line';
|
|
19
|
+
import { LineConfig, Line } from 'konva/lib/shapes/Line';
|
|
20
|
+
import * as konva_lib_shapes_Path from 'konva/lib/shapes/Path';
|
|
21
|
+
import { PathConfig, Path } from 'konva/lib/shapes/Path';
|
|
22
|
+
import * as konva_lib_shapes_Rect from 'konva/lib/shapes/Rect';
|
|
23
|
+
import { RectConfig, Rect } from 'konva/lib/shapes/Rect';
|
|
24
|
+
import { RegularPolygonConfig, RegularPolygon } from 'konva/lib/shapes/RegularPolygon';
|
|
25
|
+
import { RingConfig, Ring } from 'konva/lib/shapes/Ring';
|
|
26
|
+
import { SpriteConfig, Sprite } from 'konva/lib/shapes/Sprite';
|
|
27
|
+
import { StarConfig, Star } from 'konva/lib/shapes/Star';
|
|
28
|
+
import * as konva_lib_shapes_Text from 'konva/lib/shapes/Text';
|
|
29
|
+
import { TextConfig, Text } from 'konva/lib/shapes/Text';
|
|
30
|
+
import * as konva_lib_shapes_TextPath from 'konva/lib/shapes/TextPath';
|
|
31
|
+
import { TextPathConfig, TextPath } from 'konva/lib/shapes/TextPath';
|
|
32
|
+
import * as konva_lib_shapes_Transformer from 'konva/lib/shapes/Transformer';
|
|
33
|
+
import { TransformerConfig, Transformer } from 'konva/lib/shapes/Transformer';
|
|
34
|
+
import { WedgeConfig, Wedge } from 'konva/lib/shapes/Wedge';
|
|
35
|
+
import * as konva_lib_Stage from 'konva/lib/Stage';
|
|
36
|
+
import { StageConfig, Stage } from 'konva/lib/Stage';
|
|
37
|
+
import * as konva_lib_Container from 'konva/lib/Container';
|
|
38
|
+
import { ContainerConfig } from 'konva/lib/Container';
|
|
39
|
+
import * as konva_lib_Node from 'konva/lib/Node';
|
|
40
|
+
import { NodeConfig, KonvaEventObject } from 'konva/lib/Node';
|
|
41
|
+
import { TweenConfig } from 'konva/lib/Tween';
|
|
42
|
+
import Konva from 'konva';
|
|
43
|
+
import * as _ai_table_utils from '@ai-table/utils';
|
|
44
|
+
import { AITableFieldType, AITableReferences, AITableFieldOption, AITableSizeMap, AITableCoordinate, AITableRowColumnType, AIRecordFieldIdPath, DragType, AITableRecords, AITableFields, AITableValue, AITableRecord, AITableField, SystemFieldTypes, DateFieldValue, MemberFieldValue, NumberPath, IdPath, FieldValue, FieldOptions, UpdateFieldValueOptions, SetFieldStatTypeOptions, AddRecordOptions, CopyRecordOptions, AddFieldOptions, FieldBase, AITableFilterCondition, AttachmentFieldBase, AttachmentFieldValue, DateFieldBase, LinkFieldBase, LinkFieldValue, MemberFieldBase, NumberFieldBase, NumberFieldValue, ProgressFieldBase, ProgressFieldValue, RateFieldBase, RateFieldValue, RichTextFieldBase, RichTextFieldValue, SelectFieldBase, SelectFieldValue, AITableSelectOption, AITableSelectOptionStyle, TextFieldBase, TextFieldValue, Id, AITableFilterOperation, SelectSettings, SetFieldOptions, AITableAttachmentInfo, AITableRecordHeightType, MoveFieldOptions, SetFieldWidthOptions, MoveRecordOptions, DragEndData, AITableFieldSettings, MemberSettings } from '@ai-table/utils';
|
|
45
|
+
import { ThyNotifyService } from 'ngx-tethys/notify';
|
|
46
|
+
import * as ngx_tethys_core from 'ngx-tethys/core';
|
|
47
|
+
import { Constructor } from 'ngx-tethys/core';
|
|
48
|
+
import * as _ai_table_grid from '@ai-table/grid';
|
|
49
|
+
import GraphemeSplitter from 'grapheme-splitter';
|
|
50
|
+
import * as ngx_tethys_popover from 'ngx-tethys/popover';
|
|
51
|
+
import { ThyPopoverRef, ThyPopover } from 'ngx-tethys/popover';
|
|
52
|
+
import * as rxjs from 'rxjs';
|
|
53
|
+
import { Subject } from 'rxjs';
|
|
54
|
+
import { ThyDropdownAbstractMenu } from 'ngx-tethys/dropdown';
|
|
55
|
+
import { ThySlideRef } from 'ngx-tethys/slide';
|
|
56
|
+
import { LRUCache } from 'lru-cache';
|
|
57
|
+
|
|
58
|
+
type KoShapeConfigTypes = NodeConfig | ContainerConfig | StageConfig | LayerConfig | GroupConfig | ShapeConfig | TweenConfig | ArcConfig | ArrowConfig | CircleConfig | EllipseConfig | ImageConfig | LabelConfig | TagConfig | LineConfig | PathConfig | RectConfig | RegularPolygonConfig | RingConfig | SpriteConfig | StarConfig | TextConfig | TextPathConfig | TransformerConfig | WedgeConfig;
|
|
59
|
+
|
|
60
|
+
declare enum AITableAvatarSize {
|
|
61
|
+
size16 = 16,
|
|
62
|
+
size20 = 22,
|
|
63
|
+
size24 = 24,
|
|
64
|
+
size28 = 28,
|
|
65
|
+
size32 = 32,
|
|
66
|
+
size36 = 36,
|
|
67
|
+
size44 = 44,
|
|
68
|
+
size48 = 48,
|
|
69
|
+
size68 = 68,
|
|
70
|
+
size110 = 110,
|
|
71
|
+
size160 = 160
|
|
72
|
+
}
|
|
73
|
+
declare enum AITableAvatarType {
|
|
74
|
+
member = 0,
|
|
75
|
+
space = 1,
|
|
76
|
+
team = 2
|
|
77
|
+
}
|
|
78
|
+
declare enum AITableMemberType {
|
|
79
|
+
team = 1,
|
|
80
|
+
role = 2,
|
|
81
|
+
member = 3
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type AITableFontWeight = 'normal' | 'bold' | 'bolder' | 'lighter';
|
|
85
|
+
interface AITableCtxStyle {
|
|
86
|
+
fontSize?: number;
|
|
87
|
+
fontWeight?: AITableFontWeight;
|
|
88
|
+
fillStyle?: string;
|
|
89
|
+
strokeStyle?: string;
|
|
90
|
+
}
|
|
91
|
+
interface AITableTextEllipsis {
|
|
92
|
+
text: string;
|
|
93
|
+
maxWidth?: number;
|
|
94
|
+
fontSize?: number;
|
|
95
|
+
fontWeight?: AITableFontWeight;
|
|
96
|
+
}
|
|
97
|
+
type AITableWrapTextData = {
|
|
98
|
+
offsetX: number;
|
|
99
|
+
offsetY: number;
|
|
100
|
+
text: string;
|
|
101
|
+
width: number;
|
|
102
|
+
}[];
|
|
103
|
+
interface AITableWrapTextResult {
|
|
104
|
+
height: number;
|
|
105
|
+
data: AITableWrapTextData;
|
|
106
|
+
}
|
|
107
|
+
interface AITableGraph {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
}
|
|
111
|
+
interface AITableLine extends AITableGraph {
|
|
112
|
+
points: number[];
|
|
113
|
+
stroke?: string;
|
|
114
|
+
closed?: boolean;
|
|
115
|
+
}
|
|
116
|
+
interface AITableRect extends AITableGraph {
|
|
117
|
+
width: number;
|
|
118
|
+
height: number;
|
|
119
|
+
fill?: string;
|
|
120
|
+
stroke?: string;
|
|
121
|
+
radius?: number[] | number;
|
|
122
|
+
strokes?: {
|
|
123
|
+
top?: string;
|
|
124
|
+
right?: string;
|
|
125
|
+
bottom?: string;
|
|
126
|
+
left?: string;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
interface AITableArc extends AITableGraph {
|
|
130
|
+
fill?: string;
|
|
131
|
+
stroke?: string;
|
|
132
|
+
radius: number;
|
|
133
|
+
}
|
|
134
|
+
interface AITableText extends AITableGraph {
|
|
135
|
+
text: string;
|
|
136
|
+
fillStyle?: string;
|
|
137
|
+
fontSize?: number;
|
|
138
|
+
textAlign?: 'left' | 'right' | 'center' | 'start' | 'end';
|
|
139
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
140
|
+
fontWeight?: AITableFontWeight;
|
|
141
|
+
textDecoration?: 'underline' | 'line-through' | 'none';
|
|
142
|
+
wrap?: 'char' | 'word' | 'none';
|
|
143
|
+
ellipsis?: boolean;
|
|
144
|
+
}
|
|
145
|
+
interface AITableWrapText extends AITableText {
|
|
146
|
+
maxWidth: number;
|
|
147
|
+
maxHeight?: number;
|
|
148
|
+
lineHeight: number;
|
|
149
|
+
fieldType: AITableFieldType | string;
|
|
150
|
+
maxRow?: number;
|
|
151
|
+
originValue?: any[] | null;
|
|
152
|
+
isLinkSplit?: boolean;
|
|
153
|
+
needDraw?: boolean;
|
|
154
|
+
}
|
|
155
|
+
type AITableLabel = Omit<AITableRect & AITableText, 'fillStyle'> & {
|
|
156
|
+
background: string;
|
|
157
|
+
color?: string;
|
|
158
|
+
padding?: number;
|
|
159
|
+
};
|
|
160
|
+
interface AITableImage extends AITableGraph {
|
|
161
|
+
name: string;
|
|
162
|
+
url: string;
|
|
163
|
+
width: number;
|
|
164
|
+
height: number;
|
|
165
|
+
opacity?: number;
|
|
166
|
+
clipFunc?: (ctx: any) => void;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class RendererContext {
|
|
170
|
+
containerRect: Signal<{
|
|
171
|
+
width: number;
|
|
172
|
+
height: number;
|
|
173
|
+
}>;
|
|
174
|
+
rowHeadWidth: Signal<number>;
|
|
175
|
+
linearRows: Signal<AITableLinearRow[]>;
|
|
176
|
+
pointPosition: WritableSignal<AITablePointPosition>;
|
|
177
|
+
scrollState: WritableSignal<AITableScrollState>;
|
|
178
|
+
visibleColumnsIndexMap: Signal<Map<string, number>>;
|
|
179
|
+
visibleRowsIndexMap: Signal<Map<string, number>>;
|
|
180
|
+
groupStatContainerWidthMap: WritableSignal<Map<string, number>>;
|
|
181
|
+
frozenColumnCount: Signal<number>;
|
|
182
|
+
references: Signal<AITableReferences>;
|
|
183
|
+
aiFieldConfig: Signal<AIFieldConfig | undefined>;
|
|
184
|
+
scrollAction: (options: ScrollActionOptions) => void;
|
|
185
|
+
maxFields: Signal<number | undefined>;
|
|
186
|
+
maxRecords: Signal<number | undefined>;
|
|
187
|
+
maxSelectOptions: Signal<number | undefined>;
|
|
188
|
+
fieldOptions: Signal<AITableFieldOption[]>;
|
|
189
|
+
fieldOptionMap: Signal<Map<string, AITableFieldOption>>;
|
|
190
|
+
groupCollapseDisabled: WritableSignal<boolean>;
|
|
191
|
+
readonly?: Signal<boolean>;
|
|
192
|
+
constructor(options: AITableContext);
|
|
193
|
+
setPointPosition(position: Partial<AITablePointPosition>): void;
|
|
194
|
+
setScrollState(scrollState: Partial<AITableScrollState>): void;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare enum AITableGridI18nKey {
|
|
198
|
+
dataPickerPlaceholder = "dataPickerPlaceholder",
|
|
199
|
+
linkTooltip = "linkTooltip",
|
|
200
|
+
invalidLinkFormat = "invalidLinkFormat",
|
|
201
|
+
linkRequired = "linkRequired",
|
|
202
|
+
linkText = "linkText",
|
|
203
|
+
linkUrl = "linkUrl",
|
|
204
|
+
inputText = "inputText",
|
|
205
|
+
inputUrl = "inputUrl",
|
|
206
|
+
fieldColumnName = "fieldColumnName",
|
|
207
|
+
fieldColumnNamePlaceholder = "fieldColumnNamePlaceholder",
|
|
208
|
+
fieldType = "fieldType",
|
|
209
|
+
allowMultipleMembers = "allowMultipleMembers",
|
|
210
|
+
cancel = "cancel",
|
|
211
|
+
apply = "apply",
|
|
212
|
+
fieldNameRequired = "fieldNameRequired",
|
|
213
|
+
fieldNameDuplicate = "fieldNameDuplicate",
|
|
214
|
+
confirm = "confirm",
|
|
215
|
+
copiedCells = "copiedCells",
|
|
216
|
+
invalidPasteContent = "invalidPasteContent",// 新增
|
|
217
|
+
pasteOverMaxRecords = "pasteOverMaxRecords",
|
|
218
|
+
pasteOverMaxFields = "pasteOverMaxFields",
|
|
219
|
+
fieldTypeText = "fieldTypeText",
|
|
220
|
+
fieldTypeRichText = "fieldTypeRichText",
|
|
221
|
+
fieldTypeSelect = "fieldTypeSelect",
|
|
222
|
+
fieldTypeMultiSelect = "fieldTypeMultiSelect",
|
|
223
|
+
fieldTypeNumber = "fieldTypeNumber",
|
|
224
|
+
fieldTypeDate = "fieldTypeDate",
|
|
225
|
+
fieldTypeCheckbox = "fieldTypeCheckbox",
|
|
226
|
+
fieldTypeMember = "fieldTypeMember",
|
|
227
|
+
fieldTypeProgress = "fieldTypeProgress",
|
|
228
|
+
fieldTypeRate = "fieldTypeRate",
|
|
229
|
+
fieldTypeLink = "fieldTypeLink",
|
|
230
|
+
fieldTypeAttachment = "fieldTypeAttachment",
|
|
231
|
+
fieldTypeCreatedBy = "fieldTypeCreatedBy",
|
|
232
|
+
fieldTypeCreatedAt = "fieldTypeCreatedAt",
|
|
233
|
+
fieldTypeUpdatedBy = "fieldTypeUpdatedBy",
|
|
234
|
+
fieldTypeUpdatedAt = "fieldTypeUpdatedAt",
|
|
235
|
+
fieldGroupBase = "fieldGroupBase",
|
|
236
|
+
fieldGroupAdvanced = "fieldGroupAdvanced",
|
|
237
|
+
rowAddFilterTooltip = "rowAddFilterTooltip",
|
|
238
|
+
rowWillMoveTooltip = "rowWillMoveTooltip",
|
|
239
|
+
earliestTime = "earliestTime",
|
|
240
|
+
earliestTimeResult = "earliestTimeResult",
|
|
241
|
+
latestTime = "latestTime",
|
|
242
|
+
latestTimeResult = "latestTimeResult",
|
|
243
|
+
dateRangeOfDays = "dateRangeOfDays",
|
|
244
|
+
dateRangeOfDaysResult = "dateRangeOfDaysResult",
|
|
245
|
+
dateRangeOfMonths = "dateRangeOfMonths",
|
|
246
|
+
dateRangeOfMonthsResult = "dateRangeOfMonthsResult",
|
|
247
|
+
selectedRecordsCount = "selectedRecordsCount",
|
|
248
|
+
selectedCellsCount = "selectedCellsCount",
|
|
249
|
+
stat = "stat",
|
|
250
|
+
emptyGroup = "emptyGroup"
|
|
251
|
+
}
|
|
252
|
+
declare const AITableGridI18nText: {
|
|
253
|
+
dataPickerPlaceholder: string;
|
|
254
|
+
linkTooltip: string;
|
|
255
|
+
invalidLinkFormat: string;
|
|
256
|
+
linkRequired: string;
|
|
257
|
+
linkText: string;
|
|
258
|
+
linkUrl: string;
|
|
259
|
+
inputText: string;
|
|
260
|
+
inputUrl: string;
|
|
261
|
+
fieldColumnName: string;
|
|
262
|
+
fieldColumnNamePlaceholder: string;
|
|
263
|
+
fieldType: string;
|
|
264
|
+
allowMultipleMembers: string;
|
|
265
|
+
cancel: string;
|
|
266
|
+
apply: string;
|
|
267
|
+
fieldNameRequired: string;
|
|
268
|
+
fieldNameDuplicate: string;
|
|
269
|
+
confirm: string;
|
|
270
|
+
copiedCells: string;
|
|
271
|
+
invalidPasteContent: string;
|
|
272
|
+
pasteOverMaxRecords: string;
|
|
273
|
+
pasteOverMaxFields: string;
|
|
274
|
+
fieldTypeText: string;
|
|
275
|
+
fieldTypeRichText: string;
|
|
276
|
+
fieldTypeSelect: string;
|
|
277
|
+
fieldTypeMultiSelect: string;
|
|
278
|
+
fieldTypeNumber: string;
|
|
279
|
+
fieldTypeDate: string;
|
|
280
|
+
fieldTypeCheckbox: string;
|
|
281
|
+
fieldTypeMember: string;
|
|
282
|
+
fieldTypeProgress: string;
|
|
283
|
+
fieldTypeRate: string;
|
|
284
|
+
fieldTypeLink: string;
|
|
285
|
+
fieldTypeAttachment: string;
|
|
286
|
+
fieldTypeCreatedBy: string;
|
|
287
|
+
fieldTypeCreatedAt: string;
|
|
288
|
+
fieldTypeUpdatedBy: string;
|
|
289
|
+
fieldTypeUpdatedAt: string;
|
|
290
|
+
fieldGroupBase: string;
|
|
291
|
+
fieldGroupAdvanced: string;
|
|
292
|
+
rowAddFilterTooltip: string;
|
|
293
|
+
rowWillMoveTooltip: string;
|
|
294
|
+
earliestTime: string;
|
|
295
|
+
earliestTimeResult: string;
|
|
296
|
+
latestTime: string;
|
|
297
|
+
latestTimeResult: string;
|
|
298
|
+
dateRangeOfDays: string;
|
|
299
|
+
dateRangeOfDaysResult: string;
|
|
300
|
+
dateRangeOfMonths: string;
|
|
301
|
+
dateRangeOfMonthsResult: string;
|
|
302
|
+
selectedRecordsCount: string;
|
|
303
|
+
selectedCellsCount: string;
|
|
304
|
+
stat: string;
|
|
305
|
+
emptyGroup: string;
|
|
306
|
+
};
|
|
307
|
+
declare const getDefaultI18nTextByKey: (key: AITableGridI18nKey) => string;
|
|
308
|
+
declare const getI18nTextByKey: (aiTable: AITable, key: AITableGridI18nKey | string) => string;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* 用于构建 Canvas 基础坐标系,后续的绘制工作以此为基础
|
|
312
|
+
*/
|
|
313
|
+
declare class Coordinate {
|
|
314
|
+
protected _rowHeight: number;
|
|
315
|
+
rowCount: number;
|
|
316
|
+
columnCount: number;
|
|
317
|
+
container: HTMLDivElement;
|
|
318
|
+
containerWidth: number;
|
|
319
|
+
containerHeight: number;
|
|
320
|
+
rowIndicesSizeMap: AITableSizeMap;
|
|
321
|
+
columnIndicesSizeMap: AITableSizeMap;
|
|
322
|
+
rowInitSize: number;
|
|
323
|
+
columnInitSize: number;
|
|
324
|
+
lastRowIndex: number;
|
|
325
|
+
lastColumnIndex: number;
|
|
326
|
+
rowMetaDataMap: Record<number, AITableCellMetaData>;
|
|
327
|
+
columnMetaDataMap: Record<number, AITableCellMetaData>;
|
|
328
|
+
frozenColumnCount: number;
|
|
329
|
+
constructor({ rowHeight, rowCount, columnCount, container, rowIndicesSizeMap, columnIndicesSizeMap, rowInitSize, columnInitSize, frozenColumnCount }: AITableCoordinate);
|
|
330
|
+
get rowHeight(): number;
|
|
331
|
+
set rowHeight(height: number);
|
|
332
|
+
/**
|
|
333
|
+
* 总宽度
|
|
334
|
+
*/
|
|
335
|
+
get totalWidth(): number;
|
|
336
|
+
/**
|
|
337
|
+
* 总高度
|
|
338
|
+
*/
|
|
339
|
+
get totalHeight(): number;
|
|
340
|
+
/**
|
|
341
|
+
* 根据 rowIndex 获取对应行高
|
|
342
|
+
*/
|
|
343
|
+
getRowHeight(index: number): number;
|
|
344
|
+
/**
|
|
345
|
+
* 根据 columnIndex 获取对应列宽
|
|
346
|
+
*/
|
|
347
|
+
getColumnWidth(index: number): number;
|
|
348
|
+
/**
|
|
349
|
+
* 获取每个 cell 垂直/水平方向的坐标信息
|
|
350
|
+
*/
|
|
351
|
+
protected getCellMetaData(index: number, itemType: AITableRowColumnType): AITableCellMetaData;
|
|
352
|
+
/**
|
|
353
|
+
* 查找最近的单元格索引
|
|
354
|
+
* 性能较差,但无论如何都可以找到
|
|
355
|
+
*/
|
|
356
|
+
private _findNearestCellIndex;
|
|
357
|
+
/**
|
|
358
|
+
* 二分法查找最近的单元格索引
|
|
359
|
+
* 性能更佳,但需要加载数据
|
|
360
|
+
*/
|
|
361
|
+
private _findNearestCellIndexByBinary;
|
|
362
|
+
/**
|
|
363
|
+
* 根据偏移量查找最近的单元格索引
|
|
364
|
+
*/
|
|
365
|
+
findNearestCellIndex(offset: number, itemType: AITableRowColumnType): number;
|
|
366
|
+
/**
|
|
367
|
+
* 根据垂直偏移量找到起始单元格的索引
|
|
368
|
+
*/
|
|
369
|
+
getRowStartIndex(offset: number): number;
|
|
370
|
+
/**
|
|
371
|
+
* 根据垂直起始单元格的索引查找结束单元格的索引
|
|
372
|
+
*/
|
|
373
|
+
getRowStopIndex(startIndex: number, scrollTop: number): number;
|
|
374
|
+
/**
|
|
375
|
+
* 根据水平偏移量找到起始单元格的索引
|
|
376
|
+
*/
|
|
377
|
+
getColumnStartIndex(offset: number): number;
|
|
378
|
+
/**
|
|
379
|
+
* 根据水平起始单元格的索引查找结束单元格的索引
|
|
380
|
+
*/
|
|
381
|
+
getColumnStopIndex(startIndex: number, scrollLeft: number): number;
|
|
382
|
+
/**
|
|
383
|
+
* 根据 rowIndex 获取垂直偏移量
|
|
384
|
+
*/
|
|
385
|
+
getRowOffset(rowIndex: number): number;
|
|
386
|
+
/**
|
|
387
|
+
* 根据 columnIndex 获取水平偏移量
|
|
388
|
+
*/
|
|
389
|
+
getColumnOffset(columnIndex: number): number;
|
|
390
|
+
/**
|
|
391
|
+
* 冻结区域宽度
|
|
392
|
+
*/
|
|
393
|
+
get frozenColumnWidth(): number;
|
|
394
|
+
/**
|
|
395
|
+
* 根据 rowIndex, columnIndex 获取单元格坐标信息
|
|
396
|
+
*/
|
|
397
|
+
getCellRect(rowIndex: number, columnIndex: number): {
|
|
398
|
+
x: number;
|
|
399
|
+
y: number;
|
|
400
|
+
width: number;
|
|
401
|
+
height: number;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* 判断单元格是否在冻结区域
|
|
405
|
+
*/
|
|
406
|
+
isCellInFrozen(aiTable: AITable, cell: AIRecordFieldIdPath): boolean;
|
|
407
|
+
/**
|
|
408
|
+
* 获取单元格是否可以完整渲染
|
|
409
|
+
* 如果可以完整渲染,则返回 { isCellCanFullRender: true, offsetX: 0, offsetY: 0 }
|
|
410
|
+
* 如果不能完整渲染,则返回 { isCellCanFullRender: false, offsetX: 需要偏移的 x 值, offsetY: 需要偏移的 y 值 }
|
|
411
|
+
*/
|
|
412
|
+
getCellIsFullRenderInfo(aiTable: AITable, cell: AIRecordFieldIdPath): {
|
|
413
|
+
isCellCanFullRender: boolean;
|
|
414
|
+
offsetX: number;
|
|
415
|
+
offsetY: number;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* 获取添加行按钮是否可以完整渲染
|
|
419
|
+
* 如果可以完整渲染,则返回 { isCanFullRender: true, offsetY: 0 }
|
|
420
|
+
* 如果不能完整渲染,则返回 { isCanFullRender: false, offsetY: 需要偏移的 y 值 }
|
|
421
|
+
*/
|
|
422
|
+
getAddRowButtonIsFullRenderInfo(aiTable: AITable, addRowIndex: number): {
|
|
423
|
+
isCanFullRender: boolean;
|
|
424
|
+
offsetY: number;
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
interface AITableDragState {
|
|
429
|
+
type: DragType;
|
|
430
|
+
sourceIds: Set<string>;
|
|
431
|
+
coordinate?: Coordinate;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
type AIPlugin = (aiTable: AITable) => AITable;
|
|
435
|
+
interface AITable {
|
|
436
|
+
records: WritableSignal<AITableRecords>;
|
|
437
|
+
fields: WritableSignal<AITableFields>;
|
|
438
|
+
gridData: Signal<AITableValue>;
|
|
439
|
+
context?: RendererContext;
|
|
440
|
+
selection: WritableSignal<AITableSelection>;
|
|
441
|
+
expendCell: WritableSignal<AITableCellInfo>;
|
|
442
|
+
editingCell: WritableSignal<AITableCellInfo>;
|
|
443
|
+
keywordsMatchedCells: WritableSignal<Set<string>>;
|
|
444
|
+
keywordsMatchedCellIndex: WritableSignal<number>;
|
|
445
|
+
keywords: WritableSignal<string | null>;
|
|
446
|
+
recordsMap: Signal<{
|
|
447
|
+
[key: string]: AITableRecord;
|
|
448
|
+
}>;
|
|
449
|
+
fieldsMap: Signal<{
|
|
450
|
+
[key: string]: AITableField;
|
|
451
|
+
}>;
|
|
452
|
+
recordsWillHidden: WritableSignal<string[]>;
|
|
453
|
+
recordsWillMove: WritableSignal<Map<string, AITableRecord>>;
|
|
454
|
+
dragState?: WritableSignal<AITableDragState>;
|
|
455
|
+
getI18nTextByKey?: (key: AITableGridI18nKey | string) => string;
|
|
456
|
+
sortKeysMap?: Partial<Record<AITableFieldType, string>>;
|
|
457
|
+
}
|
|
458
|
+
declare const AITable: {
|
|
459
|
+
getColors(): {
|
|
460
|
+
primary: string;
|
|
461
|
+
gray100: string;
|
|
462
|
+
gray200: string;
|
|
463
|
+
gray300: string;
|
|
464
|
+
gray400: string;
|
|
465
|
+
gray500: string;
|
|
466
|
+
gray600: string;
|
|
467
|
+
gray700: string;
|
|
468
|
+
gray800: string;
|
|
469
|
+
gray900: string;
|
|
470
|
+
white: string;
|
|
471
|
+
black: string;
|
|
472
|
+
transparent: string;
|
|
473
|
+
gray80: string;
|
|
474
|
+
headSelectedBgColor: string;
|
|
475
|
+
itemActiveBgColor: string;
|
|
476
|
+
itemMatchBgColor: string;
|
|
477
|
+
waring: string;
|
|
478
|
+
success: string;
|
|
479
|
+
danger: string;
|
|
480
|
+
};
|
|
481
|
+
getVisibleFields(aiTable: AITable): AITableFields;
|
|
482
|
+
getVisibleRows(aiTable: AITable): AITableRecords;
|
|
483
|
+
getActiveCell(aiTable: AITable): AIRecordFieldIdPath | null;
|
|
484
|
+
getActiveRecordIds(aiTable: AITable): string[];
|
|
485
|
+
isCellVisible(aiTable: AITable, cell: AIRecordFieldIdPath): boolean;
|
|
486
|
+
getCellIndex(aiTable: AITable, cell: AIRecordFieldIdPath): {
|
|
487
|
+
rowIndex: number;
|
|
488
|
+
columnIndex: number;
|
|
489
|
+
} | null;
|
|
490
|
+
isFrozenColumn(aiTable: AITable, columnIndex: number): boolean;
|
|
491
|
+
getDragState(aiTable: AITable): DragType;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
declare const AI_TABLE_FIELD_MINI_WIDTH = 140;
|
|
495
|
+
declare const AI_TABLE_FIELD_MIN_WIDTH = 160;
|
|
496
|
+
declare const AI_TABLE_FIELD_MIDDLE_WIDTH = 200;
|
|
497
|
+
declare const AI_TABLE_FIELD_MAX_WIDTH = 300;
|
|
498
|
+
declare const getDefaultFieldOptions: () => AITableFieldOption[];
|
|
499
|
+
declare function getFieldOptions(aiTable: AITable): AITableFieldOption[];
|
|
500
|
+
declare function getFieldOptionMap(aiTable: AITable): Map<string, AITableFieldOption>;
|
|
501
|
+
|
|
502
|
+
declare function idCreator(): string;
|
|
503
|
+
declare function idsCreator(count: number): string[];
|
|
504
|
+
declare function shortIdCreator(): string;
|
|
505
|
+
declare function shortIdsCreator(count: number): string[];
|
|
506
|
+
|
|
507
|
+
declare function generateNewName(existNames: string[], count: number, name: string): string;
|
|
508
|
+
declare function generateNewFieldName(aiTable: AITable, field: Pick<AITableFieldOption, 'type' | 'settings'>, name: string, existNames?: string[]): string;
|
|
509
|
+
|
|
510
|
+
declare const isSystemField: (field: AITableField) => boolean;
|
|
511
|
+
declare function createDefaultFieldName(aiTable: AITable, field: AITableFieldOption): string;
|
|
512
|
+
declare function getFieldOptionByField(aiTable: AITable, field: Partial<AITableField>): AITableFieldOption | undefined;
|
|
513
|
+
declare function isSameFieldOption(fieldOption: Pick<AITableFieldOption, 'type' | 'settings'>, field: Partial<AITableField>): boolean;
|
|
514
|
+
declare function createDefaultField(aiTable: AITable, type?: AITableFieldType): {
|
|
515
|
+
_id: string;
|
|
516
|
+
type: AITableFieldType;
|
|
517
|
+
name: string;
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
declare function createAITable(records: WritableSignal<AITableRecords>, fields: WritableSignal<AITableFields>, gridData: Signal<AITableValue>): AITable;
|
|
521
|
+
|
|
522
|
+
declare function getFieldValue(record: Partial<AITableRecord>, field: AITableField): any;
|
|
523
|
+
declare function getSystemFieldValue(record: Partial<AITableRecord>, type: SystemFieldTypes): DateFieldValue | MemberFieldValue;
|
|
524
|
+
declare const AITableQueries: {
|
|
525
|
+
findRecordPath(aiTable: AITable, record: AITableRecord): NumberPath;
|
|
526
|
+
findFieldPath(aiTable: AITable, field: AITableField): NumberPath;
|
|
527
|
+
getFieldValue(aiTable: AITable, path: AIRecordFieldIdPath, record?: AITableRecord): any;
|
|
528
|
+
getSystemFieldValue(record: Partial<AITableRecord>, type: SystemFieldTypes): DateFieldValue | MemberFieldValue;
|
|
529
|
+
getField(aiTable: AITable, path: IdPath): AITableField | undefined;
|
|
530
|
+
getRecord(aiTable: AITable, path: NumberPath): AITableRecord;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
declare enum AITableRowType {
|
|
534
|
+
add = "add",
|
|
535
|
+
record = "record",
|
|
536
|
+
group = "group",
|
|
537
|
+
blank = "blank"
|
|
538
|
+
}
|
|
539
|
+
type AITableCellMetaData = {
|
|
540
|
+
size: number;
|
|
541
|
+
offset: number;
|
|
542
|
+
};
|
|
543
|
+
type AITableCellMetaDataMap = Record<number, AITableCellMetaData>;
|
|
544
|
+
interface AITableLinearRowBase {
|
|
545
|
+
_id: string;
|
|
546
|
+
depth: number;
|
|
547
|
+
range?: [number, number];
|
|
548
|
+
}
|
|
549
|
+
interface AITableLinearRowAdd extends AITableLinearRowBase {
|
|
550
|
+
type: AITableRowType.add;
|
|
551
|
+
}
|
|
552
|
+
interface AITableLinearRowRecord extends AITableLinearRowBase {
|
|
553
|
+
type: AITableRowType.record;
|
|
554
|
+
displayIndex: number;
|
|
555
|
+
}
|
|
556
|
+
interface AITableLinearRowGroup extends AITableLinearRowBase {
|
|
557
|
+
type: AITableRowType.group;
|
|
558
|
+
fieldId: string;
|
|
559
|
+
groupValue: any;
|
|
560
|
+
isCollapsed: boolean;
|
|
561
|
+
groupId: string;
|
|
562
|
+
}
|
|
563
|
+
interface AITableGroupStatRow extends AITableLinearRowGroup {
|
|
564
|
+
rowIndex: number;
|
|
565
|
+
}
|
|
566
|
+
interface AITableLinearRowBlank extends AITableLinearRowBase {
|
|
567
|
+
type: AITableRowType.blank;
|
|
568
|
+
}
|
|
569
|
+
type AITableLinearRow = AITableLinearRowAdd | AITableLinearRowRecord | AITableLinearRowGroup | AITableLinearRowBlank;
|
|
570
|
+
interface AITableRowHeadsConfig {
|
|
571
|
+
coordinate: Coordinate;
|
|
572
|
+
rowStartIndex: number;
|
|
573
|
+
rowStopIndex: number;
|
|
574
|
+
aiTable: AITable;
|
|
575
|
+
readonly: boolean;
|
|
576
|
+
maxRecords?: number;
|
|
577
|
+
}
|
|
578
|
+
interface AITableContextMenuItem {
|
|
579
|
+
type: string;
|
|
580
|
+
name?: string;
|
|
581
|
+
icon?: string;
|
|
582
|
+
shortcutKey?: string;
|
|
583
|
+
isInputNumber?: boolean;
|
|
584
|
+
nameSuffix?: string;
|
|
585
|
+
count?: number;
|
|
586
|
+
exec?: (aiTable: AITable, targetName: string, position: {
|
|
587
|
+
x: number;
|
|
588
|
+
y: number;
|
|
589
|
+
}, notifyService: ThyNotifyService, moduleValue?: any) => void;
|
|
590
|
+
hidden?: (aiTable: AITable, targetName: string, position: {
|
|
591
|
+
x: number;
|
|
592
|
+
y: number;
|
|
593
|
+
}) => boolean;
|
|
594
|
+
disabled?: (aiTable: AITable, targetName: string, position: {
|
|
595
|
+
x: number;
|
|
596
|
+
y: number;
|
|
597
|
+
}) => boolean;
|
|
598
|
+
}
|
|
599
|
+
interface AITableContextMenuOptions {
|
|
600
|
+
origin: ElementRef<any> | HTMLElement;
|
|
601
|
+
position: {
|
|
602
|
+
x: number;
|
|
603
|
+
y: number;
|
|
604
|
+
};
|
|
605
|
+
menuItems: AITableContextMenuItem[];
|
|
606
|
+
targetName: string;
|
|
607
|
+
viewContainerRef: ViewContainerRef;
|
|
608
|
+
}
|
|
609
|
+
type IndicesMap = Record<number, number>;
|
|
610
|
+
|
|
611
|
+
declare const Colors: {
|
|
612
|
+
primary: string;
|
|
613
|
+
gray100: string;
|
|
614
|
+
gray200: string;
|
|
615
|
+
gray300: string;
|
|
616
|
+
gray400: string;
|
|
617
|
+
gray500: string;
|
|
618
|
+
gray600: string;
|
|
619
|
+
gray700: string;
|
|
620
|
+
gray800: string;
|
|
621
|
+
gray900: string;
|
|
622
|
+
white: string;
|
|
623
|
+
black: string;
|
|
624
|
+
transparent: string;
|
|
625
|
+
gray80: string;
|
|
626
|
+
headSelectedBgColor: string;
|
|
627
|
+
itemActiveBgColor: string;
|
|
628
|
+
itemMatchBgColor: string;
|
|
629
|
+
waring: string;
|
|
630
|
+
success: string;
|
|
631
|
+
danger: string;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
declare const MIN_COLUMN_WIDTH = 80;
|
|
635
|
+
declare const DBL_CLICK_EDIT_TYPE: AITableFieldType[];
|
|
636
|
+
declare const RowHeight: {
|
|
637
|
+
Short: number;
|
|
638
|
+
Medium: number;
|
|
639
|
+
Tall: number;
|
|
640
|
+
ExtraTall: number;
|
|
641
|
+
};
|
|
642
|
+
declare const DEFAULT_POINT_POSITION: {
|
|
643
|
+
areaType: AITableAreaType;
|
|
644
|
+
targetName: string;
|
|
645
|
+
realTargetName: string;
|
|
646
|
+
rowIndex: number;
|
|
647
|
+
columnIndex: number;
|
|
648
|
+
x: number;
|
|
649
|
+
y: number;
|
|
650
|
+
offsetTop: number;
|
|
651
|
+
offsetLeft: number;
|
|
652
|
+
};
|
|
653
|
+
declare const DEFAULT_SCROLL_STATE: {
|
|
654
|
+
scrollTop: number;
|
|
655
|
+
scrollLeft: number;
|
|
656
|
+
isScrolling: boolean;
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
declare const DEFAULT_ICON_SHAPE = "square";
|
|
660
|
+
declare const DEFAULT_ICON_SIZE = 16;
|
|
661
|
+
declare const Check = "\n M15,1H3C1.9,1,1,1.9,1,3v12c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V3C17,1.9,16.1,1,15,1z M14,6.6l-5.7,5.7\n c-0.2,0.2-0.4,0.3-0.6,0.3s-0.4-0.1-0.6-0.3L4.6,9.8c-0.3-0.3-0.3-0.9,0-1.2s0.9-0.3,1.2,0l1.9,1.9l5.1-5.1\n c0.3-0.3,0.9-0.3,1.2,0C14.3,5.7,14.3,6.3,14,6.6z\n ";
|
|
662
|
+
declare const Unchecked = "\n M15,1H3C1.9,1,1,1.9,1,3v12c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V3C17,1.9,16.1,1,15,1z\n M15.7,3.3v11.4c0,0.5-0.5,1-1,1H3.3c-0.5,0-1-0.5-1-1V3.3c0-0.5,0.5-1,1-1h11.4C15.2,2.3,15.7,2.8,15.7,3.3z\n ";
|
|
663
|
+
declare const ColumnTextFilledPath = "M7.268 8.674l-2.076-4.86-2.076 4.86h4.152zm0.513 1.2H2.603l-1.294 3.03L0 12.902L4.49 2.4H5.894l4.484 10.486-1.31 0.002-1.287-3.014zm2.86 1.111c0-1.423 1.246-2.193 4.21-2.49 0-0.89-0.235-1.72-1.362-1.72-0.772 0-1.484 0.356-2.017 0.711l-0.475-0.771c0.653-0.415 1.602-0.889 2.669-0.889 1.602 0 2.313 1.127 2.313 2.787v4.151h-0.948l-0.12-0.83h-0.06c-0.651 0.534-1.422 0.949-2.252 0.949-1.127 0-1.957-0.652-1.957-1.898zm4.113-1.778c-2.253 0.296-3.024 0.83-3.024 1.72 0 0.77 0.534 1.067 1.186 1.067 0.652 0 1.186-0.297 1.838-0.89V9.207z";
|
|
664
|
+
declare const ColumnRichTextFilledPath = "M14.5526,11.7084 C14.8845231,11.7084 15.1536,11.9774769 15.1536,12.3094 C15.1536,12.6413231 14.8845231,12.9104 14.5526,12.9104 L14.5526,12.9104 L11.7546,12.9104 C11.4226769,12.9104 11.1536,12.6413231 11.1536,12.3094 C11.1536,11.9774769 11.4226769,11.7084 11.7546,11.7084 L11.7546,11.7084 Z M5.894,2.4 L10.378,12.886 L9.068,12.888 L7.779,9.873 L2.603,9.873 L1.309,12.904 L2.84217094e-14,12.902 L4.49,2.4 L5.894,2.4 Z M5.191,3.814 L3.116,8.673 L7.267,8.673 L5.191,3.814 Z M14.5526,7.17723172 C14.8845231,7.17723172 15.1536,7.44630859 15.1536,7.77823172 C15.1536,8.11015486 14.8845231,8.37923172 14.5526,8.37923172 L14.5526,8.37923172 L10.7546,8.37923172 C10.4226769,8.37923172 10.1536,8.11015486 10.1536,7.77823172 C10.1536,7.44630859 10.4226769,7.17723172 10.7546,7.17723172 L10.7546,7.17723172 Z M14.5526,2.3094 C14.8845231,2.3094 15.1536,2.57847687 15.1536,2.9104 C15.1536,3.24232313 14.8845231,3.5114 14.5526,3.5114 L14.5526,3.5114 L9.7546,3.5114 C9.42267687,3.5114 9.1536,3.24232313 9.1536,2.9104 C9.1536,2.57847687 9.42267687,2.3094 9.7546,2.3094 L9.7546,2.3094 Z";
|
|
665
|
+
declare const ColumnSelectFilledPath = "M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-1.2A6.8 6.8 0 1 0 8 1.2a6.8 6.8 0 0 0 0 13.6zM5.666 7.207l1.8 1.845 3.482-3.554.857.84-4.34 4.43-2.658-2.723.86-.838z";
|
|
666
|
+
declare const ColumnMultipleFillPath = "M2 2.551L3.576.976l.848.848L2 4.25.576 2.824l.848-.848L2 2.55zm0 5.425L3.576 6.4l.848.849L2 9.673.576 8.249l.848-.849.576.576zm0 5.4L3.576 11.8l.848.849L2 15.073.576 13.649l.848-.849.576.576zM5.663 2.6a.6.6 0 1 1 0-1.2H15.4a.6.6 0 0 1 0 1.2H5.663zm0 11.8a.6.6 0 0 1 0-1.2H15.4a.6.6 0 0 1 0 1.2H5.663zm0-6.2a.6.6 0 1 1 0-1.2H15.4a.6.6 0 0 1 0 1.2H5.663z";
|
|
667
|
+
declare const ColumnCalendarFilledPath = "M10.9 3.2H5.1v1.6H3.9V3.2H1.2v3.2h13.6V3.2h-2.7v1.6h-1.2V3.2zM12.1 2H15a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h2.9V.4h1.2V2h5.8V.4h1.2V2zm2.7 5.6H1.2v7.2h13.6V7.6z";
|
|
668
|
+
declare const ColumnNumberFilledPath = "M4.236 9.9l.422-3.8H2.6a.6.6 0 1 1 0-1.2h2.19l.372-3.347a.6.6 0 1 1 1.192.133L5.998 4.9h4.793l.37-3.347a.6.6 0 0 1 1.193.133L11.998 4.9h2.459a.6.6 0 0 1 0 1.2h-2.592l-.421 3.8h2.013a.6.6 0 0 1 0 1.2H11.31l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H5.311l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H1.6a.6.6 0 0 1 0-1.2h2.636zm1.208 0h4.792l.422-3.8H5.865l-.421 3.8z";
|
|
669
|
+
declare const ColumnLinkOutlinedPath = "M10.4238543,5.91643446 C11.7563563,7.48802206 11.6811634,9.84553933 10.1982756,11.3284271 L7.22842712,14.2982756 C5.66632996,15.8603728 3.13367004,15.8603728 1.57157288,14.2982756 C0.00947570825,12.7361784 0.00947570825,10.2035185 1.57157288,8.64142136 L2.387,7.82495116 L3.236,8.67395116 L2.42010101,9.48994949 C1.37219416,10.5378563 1.32853138,12.2097205 2.28911266,13.3096237 L2.42010101,13.4497475 C3.51356903,14.5432155 5.28643097,14.5432155 6.37989899,13.4497475 L9.34974747,10.479899 C10.3636395,9.46600698 10.4374244,7.86800734 9.57110232,6.76909967 L10.4238543,5.91643446 Z M14.4436815,1.67157288 C16.0057786,3.23367004 16.0057786,5.76632996 14.4436815,7.32842712 L13.5744058,8.198 L12.7254058,7.349 L13.5951533,6.47989899 C14.6430602,5.43199214 14.6867229,3.76012802 13.7261417,2.66022473 L13.5951533,2.52010101 C12.5016853,1.426633 10.7288234,1.426633 9.63535534,2.52010101 L6.66550686,5.48994949 C5.62228095,6.5331754 5.57434734,8.19479666 6.52170603,9.29485 L5.67236452,10.1460046 C4.25646867,8.57570748 4.3046734,6.15372668 5.81697872,4.64142136 L8.7868272,1.67157288 C10.3489244,0.109475708 12.8815843,0.109475708 14.4436815,1.67157288 Z";
|
|
670
|
+
declare const ColumnRatingFilledPath = "M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.2a6.8 6.8 0 1 0 0 13.6A6.8 6.8 0 0 0 8 1.2zm.945 2.906l.077.106.064.112.03.069.564 1.46 1.646.1c.952.092 1.365 1.264.752 1.893l-.086.078-1.315 1.056.431 1.533c.295 1.031-.848 1.858-1.643 1.34l-.087-.063-1.315-.85-.006.001-1.309.842c-.85.567-1.903-.163-1.79-1.054l.019-.108.45-1.601-1.321-1.035c-.632-.633-.372-1.673.462-1.973l.123-.038.124-.026 1.571-.094.602-1.55c.364-.793 1.44-.836 1.957-.198zm-.91.815l-.809 2.085-2.253.134L6.8 8.571l-.602 2.139 1.44-.927.71-.087 1.569 1.016-.61-2.172 1.75-1.402-2.219-.134-.803-2.083z";
|
|
671
|
+
declare const ColumnMemberFilledPath = "M10.212 8.416A6.603 6.603 0 0 1 14.5 14.6a.6.6 0 0 1-1.2 0 5.4 5.4 0 0 0-10.8 0 .6.6 0 0 1-1.2 0 6.602 6.602 0 0 1 4.159-6.134 4.1 4.1 0 1 1 4.753-.05zM7.8 8a2.9 2.9 0 1 0 0-5.8 2.9 2.9 0 0 0 0 5.8z";
|
|
672
|
+
declare const ColumnProgressFilledPath = "M11.5 3.5a4.5 4.5 0 1 1 0 9h-7a4.5 4.5 0 1 1 0-9h7zm0 1.2h-7a3.3 3.3 0 0 0 0 6.6h7a3.3 3.3 0 1 0 0-6.6zM8 7.2v1.5H3.75a.75.75 0 0 1 0-1.5H8z";
|
|
673
|
+
declare const ColumnCheckboxFilledPath = "M2.2,13.8 L13.8,13.8 L13.8,2.2 L2.2,2.2 L2.2,13.8 Z M13.904,1 C14.509,1 15,1.491 15,2.097 L15,13.903 C15,14.509 14.509,15 13.904,15 L2.096,15 C1.491,15 1,14.509 1,13.903 L1,2.097 C1,1.491 1.491,1 2.096,1 L13.904,1 Z M11.1374,5.4697 C11.3104,5.4697 11.4834,5.5387 11.6094,5.6767 C11.8484,5.9377 11.8304,6.3427 11.5704,6.5807 L7.3134,10.4847 C7.1904,10.5977 7.0354,10.6537 6.8814,10.6537 C6.7084,10.6537 6.5354,10.5827 6.4094,10.4457 C6.4034,10.4397 6.4024,10.4307 6.3964,10.4247 L4.3634,8.2067 C4.1244,7.9477 4.1424,7.5417 4.4024,7.3027 C4.5254,7.1907 4.6804,7.1347 4.8354,7.1347 C5.0084,7.1347 5.1804,7.2047 5.3064,7.3427 L6.9234,9.1057 L10.7054,5.6377 C10.8274,5.5257 10.9834,5.4697 11.1374,5.4697 Z";
|
|
674
|
+
declare const AddOutlinedPath = "M8.578 7.383V1.602a.601.601 0 1 0-1.2 0v5.781H1.6a.601.601 0 0 0 0 1.203h5.777v5.812a.601.601 0 1 0 1.2 0V8.586H14.4a.601.601 0 0 0 0-1.203H8.578z";
|
|
675
|
+
declare const MoreStandOutlinedPath = "M8 4.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z";
|
|
676
|
+
declare const StarFill = "M9.186 2.12l1.02 2.769c.073.292.365.437.656.437l2.915.146c1.166.073 1.676 1.53.73 2.26l-2.26 1.821c-.219.146-.291.51-.219.729l.73 2.842c.29 1.093-.948 2.04-1.896 1.384l-2.477-1.603a.79.79 0 0 0-.802 0l-2.478 1.676c-.947.583-2.186-.291-1.894-1.457l.728-2.842c.073-.292 0-.583-.218-.729L1.46 7.731c-.874-.729-.437-2.186.73-2.259l2.914-.146c.292 0 .51-.218.656-.437l1.093-2.77c.365-1.092 1.895-1.092 2.332 0z";
|
|
677
|
+
declare const WebOutlinedPath = "M1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8ZM6.04798 2.85646C4.19852 3.55874 2.82616 5.22986 2.55071 7.25H5.26373C5.31861 5.76009 5.53564 4.40148 5.87147 3.352C5.92605 3.18143 5.98481 3.0157 6.04798 2.85646ZM5.87147 12.648C5.53564 11.5985 5.31861 10.2399 5.26373 8.75H2.55071C2.82616 10.7701 4.19852 12.4413 6.04798 13.1435C5.98481 12.9843 5.92605 12.8186 5.87147 12.648ZM10.1285 12.648C10.0739 12.8186 10.0152 12.9843 9.95202 13.1435C11.8015 12.4413 13.1738 10.7701 13.4493 8.75H10.7363C10.6814 10.2399 10.4644 11.5985 10.1285 12.648ZM8.6999 12.1908C8.98163 11.3104 9.18095 10.1118 9.23518 8.75H6.76482C6.81905 10.1118 7.01837 11.3104 7.3001 12.1908C7.46768 12.7145 7.65131 13.0839 7.81962 13.3063C7.90746 13.4224 7.9686 13.4711 8 13.4906C8.0314 13.4711 8.09254 13.4224 8.18038 13.3063C8.34869 13.0839 8.53232 12.7145 8.6999 12.1908ZM7.3001 3.80916C7.01837 4.68959 6.81905 5.88818 6.76482 7.25H9.23518C9.18095 5.88818 8.98163 4.68959 8.6999 3.80916C8.53232 3.28548 8.34869 2.91612 8.18038 2.69367C8.09254 2.57756 8.0314 2.52893 8 2.50944C7.9686 2.52893 7.90746 2.57756 7.81962 2.69367C7.65131 2.91612 7.46768 3.28548 7.3001 3.80916ZM10.1285 3.352C10.4644 4.40148 10.6814 5.76009 10.7363 7.25H13.4493C13.1738 5.22986 11.8015 3.55874 9.95203 2.85646C10.0152 3.0157 10.0739 3.18143 10.1285 3.352Z";
|
|
678
|
+
declare const DepartmentOutlinedPath = "M3 5.5C3 3.567 4.567 2 6.5 2C8.433 2 10 3.567 10 5.5C10 6.49548 9.5844 7.3939 8.91724 8.0312C10.7204 8.86779 12.017 10.6115 12.2217 12.6767C12.2976 13.4424 11.6682 14 11 14H2C1.33185 14 0.702358 13.4424 0.778277 12.6767C0.983033 10.6115 2.27961 8.86779 4.08276 8.0312C3.4156 7.3939 3 6.49548 3 5.5ZM8.5 5.5C8.5 4.39543 7.60457 3.5 6.5 3.5C5.39543 3.5 4.5 4.39543 4.5 5.5C4.5 6.60457 5.39543 7.5 6.5 7.5C7.60457 7.5 8.5 6.60457 8.5 5.5ZM2.31585 12.5H10.6841C10.3303 10.5108 8.59114 9 6.5 9C4.40886 9 2.66975 10.5108 2.31585 12.5Z', 'M11 3C10.5858 3 10.25 3.33579 10.25 3.75C10.25 4.16421 10.5858 4.5 11 4.5C11.6904 4.5 12.25 5.05964 12.25 5.75C12.25 6.44036 11.6904 7 11 7C10.5858 7 10.25 7.33579 10.25 7.75C10.25 8.16421 10.5858 8.5 11 8.5C12.6569 8.5 14 9.84315 14 11.5C14 11.9142 14.3358 12.25 14.75 12.25C15.1642 12.25 15.5 11.9142 15.5 11.5C15.5 9.77473 14.5291 8.27622 13.1038 7.52106C13.507 7.0426 13.75 6.42467 13.75 5.75C13.75 4.23122 12.5188 3 11 3Z";
|
|
679
|
+
declare const AttachmentPath = "M9.1773124,11.8057395 C7.96668709,13.0163648 6.00387566,13.0163648 4.79325035,11.8057395 C3.58262505,10.5951142 3.58262505,8.63230278 4.78926443,7.4257012 L8.27628904,3.87217601 C8.50840068,3.63567937 8.88828274,3.63209333 9.12479868,3.86418566 C9.36131462,4.096278 9.36490066,4.47616006 9.13280833,4.712676 L5.64177849,8.27020561 C4.89978234,9.01220177 4.89978234,10.2152152 5.64177849,10.9572114 C6.38377464,11.6992075 7.5867881,11.6992075 8.32878426,10.9572114 L12.2321177,7.05387799 C13.3493901,5.93660552 13.2780395,4.02707269 12.0410949,2.79012806 C10.8041502,1.55318343 8.8946174,1.4818328 7.77734493,2.59910526 L3.72686067,6.64958953 C2.02034367,8.35610653 2.02835883,11.1329242 3.74721224,12.8517776 C5.46606565,14.570631 8.24288334,14.5786462 9.94940034,12.8721292 L13.5980637,9.22346588 C13.8323782,8.98915131 14.2122772,8.98915131 14.4465918,9.22346588 C14.6809064,9.45778046 14.6809064,9.83767945 14.4465918,10.071994 L10.7979285,13.7206573 C8.62168228,15.8969035 5.08507361,15.8866953 2.8986841,13.7003058 C0.712294592,11.5139163 0.702086332,7.97730759 2.87833253,5.8010614 L6.9288168,1.75057713 C8.52947856,0.149915361 11.1976354,0.249612361 12.889623,1.94159992 C14.5816106,3.63358749 14.6813076,6.30174436 13.0806458,7.90240612 L9.1773124,11.8057395 Z";
|
|
680
|
+
declare const EditPath = "M2,8.33918294 L10.7095952,0 L15,4.17020474 L6.53816398,13 L2,13 L2,8.33918294 Z M3.2,8.85157902 L3.2,11.8 L6.02608482,11.8 L13.3091776,4.20020516 L10.7033283,1.66736141 L3.2,8.85157902 Z M0,16 L0,14.8 L16,14.8 L16,16 L0,16 Z";
|
|
681
|
+
declare const RowDragPath = "M6,3 C6.55228475,3 7,2.55228475 7,2 C7,1.44771525 6.55228475,1 6,1 C5.44771525,1 5,1.44771525 5,2 C5,2.55228475 5.44771525,3 6,3 Z M10,3 C10.5522847,3 11,2.55228475 11,2 C11,1.44771525 10.5522847,1 10,1 C9.44771525,1 9,1.44771525 9,2 C9,2.55228475 9.44771525,3 10,3 Z M6,7 C6.55228475,7 7,6.55228475 7,6 C7,5.44771525 6.55228475,5 6,5 C5.44771525,5 5,5.44771525 5,6 C5,6.55228475 5.44771525,7 6,7 Z M10,7 C10.5522847,7 11,6.55228475 11,6 C11,5.44771525 10.5522847,5 10,5 C9.44771525,5 9,5.44771525 9,6 C9,6.55228475 9.44771525,7 10,7 Z M6,11 C6.55228475,11 7,10.5522847 7,10 C7,9.44771525 6.55228475,9 6,9 C5.44771525,9 5,9.44771525 5,10 C5,10.5522847 5.44771525,11 6,11 Z M10,11 C10.5522847,11 11,10.5522847 11,10 C11,9.44771525 10.5522847,9 10,9 C9.44771525,9 9,9.44771525 9,10 C9,10.5522847 9.44771525,11 10,11 Z M6,15 C6.55228475,15 7,14.5522847 7,14 C7,13.4477153 6.55228475,13 6,13 C5.44771525,13 5,13.4477153 5,14 C5,14.5522847 5.44771525,15 6,15 Z M10,15 C10.5522847,15 11,14.5522847 11,14 C11,13.4477153 10.5522847,13 10,13 C9.44771525,13 9,13.4477153 9,14 C9,14.5522847 9.44771525,15 10,15 Z";
|
|
682
|
+
declare const AngleDownPath = "M7.97815,11.99732 L7.9728,12.00267 L2.2998,6.33067 L3.1298,5.49967 L7.97807731,10.3479473 L12.8255,5.49967 L13.6565,6.33067 L7.9835,12.00267 L7.97815,11.99732 Z";
|
|
683
|
+
declare const AngleRightPath = "M4.72665,3.40415 L5.55765,2.57315 L11.22965,8.24615 L5.55765,13.92985 L4.72665,13.09985 L9.57465,8.25285";
|
|
684
|
+
declare const IconPathMap: Record<string, string>;
|
|
685
|
+
declare const ExpandRecordPath = "M14.0865,2.5978 L14.0865,7.1238 C14.0865,7.4548 14.3545,7.7238 14.6855,7.7238 C15.0175,7.7238 15.2865,7.4548 15.2865,7.1238 L15.2865,1.2008 C15.2865,0.8698 15.0175,0.6018 14.6855,0.6018 L8.7615,0.6028 C8.4305,0.6028 8.1625,0.8718 8.1625,1.2028 C8.1625,1.5338 8.4305,1.8028 8.7615,1.8028 L13.1805,1.8028 L9.8265,5.0068 C9.5865,5.2358 9.5775,5.6158 9.8065,5.8548 C10.0355,6.0948 10.4155,6.1038 10.6555,5.8748 L14.0865,2.5978 Z M1.8031,13.2924 L1.8031,8.7664 C1.8031,8.4354 1.5341,8.1664 1.2031,8.1664 C0.8721,8.1664 0.6031,8.4354 0.6031,8.7664 L0.6031,14.6894 C0.6031,15.0204 0.8721,15.2884 1.2031,15.2884 C1.2061,15.2884 1.2081,15.2874 1.2101,15.2874 L7.1271,15.2874 C7.4581,15.2874 7.7271,15.0194 7.7271,14.6874 C7.7271,14.3564 7.4581,14.0874 7.1271,14.0874 L2.7081,14.0874 L6.0631,10.8834 C6.3021,10.6554 6.3111,10.2754 6.0821,10.0354 C5.8541,9.7954 5.4741,9.7864 5.2341,10.0154 L1.8031,13.2924 Z";
|
|
686
|
+
|
|
687
|
+
declare const AI_TABLE_ACTION_COMMON_SIZE = 32;
|
|
688
|
+
declare const AI_TABLE_ACTION_COMMON_RADIUS = 4;
|
|
689
|
+
declare const AI_TABLE_ACTION_COMMON_RIGHT_PADDING = 6;
|
|
690
|
+
declare const AI_TABLE_DEFAULT_COLUMN_WIDTH = 200;
|
|
691
|
+
declare const AI_TABLE_SCROLL_BAR_PADDING = 3;
|
|
692
|
+
declare const AI_TABLE_OFFSET = 0.5;
|
|
693
|
+
declare const AI_TABLE_TEXT_GAP = 8;
|
|
694
|
+
declare const AI_TABLE_ROW_HEAD = "AI_TABLE_ROW_HEAD";
|
|
695
|
+
declare const AI_TABLE_ROW_DRAG_ICON_WIDTH = 18;
|
|
696
|
+
declare const AI_TABLE_ROW_HEAD_WIDTH = 44;
|
|
697
|
+
declare const AI_TABLE_ROW_HEAD_WIDTH_AND_DRAG_ICON_WIDTH: number;
|
|
698
|
+
declare const AI_TABLE_ROW_HEAD_SIZE = 16;
|
|
699
|
+
declare const AI_TABLE_ROW_ADD_BUTTON = "AI_TABLE_ROW_ADD_BUTTON";
|
|
700
|
+
declare const AI_TABLE_BLANK = "AI_TABLE_BLANK";
|
|
701
|
+
declare const AI_TABLE_INDEX_FIELD_TEXT = "";
|
|
702
|
+
declare const AI_TABLE_FIELD_HEAD = "AI_TABLE_FIELD_HEAD";
|
|
703
|
+
declare const AI_TABLE_FIELD_HEAD_HEIGHT = 44;
|
|
704
|
+
declare const AI_TABLE_ROW_BLANK_HEIGHT = 43;
|
|
705
|
+
declare const AI_TABLE_ROW_HEIGHT = 44;
|
|
706
|
+
declare const AI_TABLE_RECORD_HEIGHT_LEVELS: {
|
|
707
|
+
readonly low: 44;
|
|
708
|
+
readonly medium: 88;
|
|
709
|
+
readonly high: 148;
|
|
710
|
+
};
|
|
711
|
+
declare const AI_TABLE_CELL_ACTIVE_BORDER_WIDTH = 2;
|
|
712
|
+
declare const AI_TABLE_CELL_ATTACHMENT_ADD = "AI_TABLE_CELL_ATTACHMENT_ADD";
|
|
713
|
+
declare const AI_TABLE_CELL_ATTACHMENT_FILE = "AI_TABLE_CELL_ATTACHMENT_FILE";
|
|
714
|
+
declare const AI_TABLE_CELL_EDIT = "AI_TABLE_CELL_EDIT";
|
|
715
|
+
declare const AI_TABLE_FIELD_HEAD_TEXT_MIN_WIDTH = 30;
|
|
716
|
+
declare const AI_TABLE_ROW_SELECT_CHECKBOX = "AI_TABLE_ROW_SELECT_CHECKBOX";
|
|
717
|
+
declare const AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX = "AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX";
|
|
718
|
+
declare const AI_TABLE_FIELD_ADD_BUTTON = "AI_TABLE_FIELD_ADD_BUTTON";
|
|
719
|
+
declare const AI_TABLE_FIELD_ADD_BUTTON_WIDTH = 100;
|
|
720
|
+
declare const AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE = 8;
|
|
721
|
+
declare const AI_TABLE_FIELD_HEAD_MORE = "AI_TABLE_FIELD_HEAD_MORE";
|
|
722
|
+
declare const AI_TABLE_FIELD_HEAD_OPACITY_LINE = "AI_TABLE_FIELD_HEAD_OPACITY_LINE";
|
|
723
|
+
declare const AI_TABLE_FIELD_STAT_BG = "AI_TABLE_FIELD_STAT_BG";
|
|
724
|
+
declare const AI_TABLE_ROW_DRAG = "AI_TABLE_ROW_DRAG";
|
|
725
|
+
declare const AI_TABLE_FILL_HANDLE = "AI_TABLE_FILL_HANDLE";
|
|
726
|
+
declare const AI_TABLE_PREVENT_CLEAR_SELECTION_CLASS = ".ai-table-prevent-clear-selection";
|
|
727
|
+
declare const AI_TABLE_ICON_COMMON_SIZE = 16;
|
|
728
|
+
declare const AI_TABLE_CELL = "AI_TABLE_CELL";
|
|
729
|
+
declare const AI_TABLE_CELL_PADDING = 14;
|
|
730
|
+
declare const AI_TABLE_CELL_BORDER = 2;
|
|
731
|
+
declare const AI_TABLE_CELL_LINE_BORDER = 1;
|
|
732
|
+
declare const AI_TABLE_CELL_MULTI_PADDING_TOP = 10;
|
|
733
|
+
declare const AI_TABLE_CELL_MULTI_ITEM_MARGIN_TOP = 4;
|
|
734
|
+
declare const AI_TABLE_CELL_MULTI_PADDING_LEFT = 4;
|
|
735
|
+
declare const AI_TABLE_MIN_TEXT_WIDTH = 24;
|
|
736
|
+
declare const AI_TABLE_CELL_MULTI_DOT_RADIUS = 4;
|
|
737
|
+
declare const AI_TABLE_CELL_MULTI_ITEM_MARGIN_LEFT = 8;
|
|
738
|
+
declare const AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE = 8;
|
|
739
|
+
declare const AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE_OFFSET = 12;
|
|
740
|
+
declare const AI_TABLE_CELL_MULTI_ITEM_MIN_WIDTH = 36;
|
|
741
|
+
declare const AI_TABLE_CELL_MAX_ROW_COUNT = 1;
|
|
742
|
+
declare const AI_TABLE_CELL_EMOJI_SIZE = 18;
|
|
743
|
+
declare const AI_TABLE_CELL_EMOJI_PADDING = 8;
|
|
744
|
+
declare const AI_TABLE_CELL_MEMBER_MAX_HEIGHT = 130;
|
|
745
|
+
declare const AI_TABLE_CELL_MEMBER_ITEM_HEIGHT = 24;
|
|
746
|
+
declare const AI_TABLE_CELL_MEMBER_ITEM_PADDING = 4;
|
|
747
|
+
declare const AI_TABLE_CELL_ADD_ITEM_BUTTON_SIZE = 22;
|
|
748
|
+
declare const AI_TABLE_MEMBER_AVATAR_SIZE = 24;
|
|
749
|
+
declare const AI_TABLE_MEMBER_ITEM_PADDING_RIGHT = 8;
|
|
750
|
+
declare const AI_TABLE_MEMBER_ITEM_AVATAR_MARGIN_RIGHT = 8;
|
|
751
|
+
declare const AI_TABLE_FILE_ICON_ITEM_HEIGHT = 20;
|
|
752
|
+
declare const AI_TABLE_FILE_ICON_SIZE = 20;
|
|
753
|
+
declare const AI_TABLE_FILE_ITEM_MARGIN_RIGHT = 8;
|
|
754
|
+
declare const AI_TABLE_OPTION_ITEM_PADDING = 10;
|
|
755
|
+
declare const AI_TABLE_OPTION_ITEM_HEIGHT = 24;
|
|
756
|
+
declare const AI_TABLE_OPTION_ITEM_FONT_SIZE = 14;
|
|
757
|
+
declare const AI_TABLE_OPTION_MULTI_ITEM_FONT_SIZE = 12;
|
|
758
|
+
declare const AI_TABLE_OPTION_ITEM_RADIUS = 18;
|
|
759
|
+
declare const AI_TABLE_TAG_PADDING = 12;
|
|
760
|
+
declare const AI_TABLE_TAG_FONT_SIZE = 12;
|
|
761
|
+
declare const AI_TABLE_PIECE_WIDTH = 10;
|
|
762
|
+
declare const AI_TABLE_PIECE_RADIUS = 2;
|
|
763
|
+
declare const AI_TABLE_COMMON_FONT_SIZE = 14;
|
|
764
|
+
declare const AI_TABLE_DOT_RADIUS = 5;
|
|
765
|
+
declare const AI_TABLE_PROGRESS_BAR_HEIGHT = 10;
|
|
766
|
+
declare const AI_TABLE_PROGRESS_BAR_RADIUS = 5;
|
|
767
|
+
declare const AI_TABLE_PROGRESS_BAR_POINTER_HEIGHT = 18;
|
|
768
|
+
declare const AI_TABLE_PROGRESS_BAR_POINTER_WIDTH = 8;
|
|
769
|
+
declare const AI_TABLE_PROGRESS_TEXT_WIDTH = 46;
|
|
770
|
+
declare const AI_TABLE_POPOVER_LEFT_OFFSET = 4;
|
|
771
|
+
declare const AI_TABLE_RATE_MAX = 5;
|
|
772
|
+
declare const AI_TABLE_SCROLL_BAR_SIZE = 18;
|
|
773
|
+
declare const AI_TABLE_AUTO_SCROLL_LEFT_THRESHOLD = 40;
|
|
774
|
+
declare const AI_TABLE_AUTO_SCROLL_RIGHT_THRESHOLD = 40;
|
|
775
|
+
declare const AI_TABLE_AUTO_SCROLL_TOP_THRESHOLD: number;
|
|
776
|
+
declare const AI_TABLE_AUTO_SCROLL_BOTTOM_THRESHOLD: number;
|
|
777
|
+
declare const AI_TABLE_FIELD_STAT_INNER_HEIGHT = 47;
|
|
778
|
+
declare const AI_TABLE_TEXT_LINE_HEIGHT = 1.84;
|
|
779
|
+
declare const AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT: number;
|
|
780
|
+
declare const AI_TABLE_GROUP_MAX_LEVEL = 3;
|
|
781
|
+
declare const AI_TABLE_ROW_GROUP_COLLAPSE_BUTTON = "AI_TABLE_ROW_GROUP_COLLAPSE_BUTTON";
|
|
782
|
+
declare const AI_TABLE_ROW_GROUP_OFFSET = 16;
|
|
783
|
+
declare const AI_TABLE_EXPAND_RECORD_ICON = "AI_TABLE_EXPAND_RECORD_ICON";
|
|
784
|
+
declare const AI_TABLE_SHADOW_DEFAULT_WIDTH = 8;
|
|
785
|
+
declare const AI_TABLE_CELL_MULTI_ITEM_DEFAULT_MIN_WIDTH = 60;
|
|
786
|
+
declare const AI_TABLE_CELL_MULTI_SELECT_ITEM_TAG_MIN_WIDTH = 40;
|
|
787
|
+
declare const AI_TABLE_CELL_MULTI_SELECT_ITEM_PIECE_MIN_WIDTH = 55;
|
|
788
|
+
declare const AI_TABLE_CELL_MULTI_SELECT_ITEM_DOT_MIN_WIDTH = 55;
|
|
789
|
+
declare const AI_TABLE_CELL_MULTI_ITEM_DEFAULT_LINE_SPACING = 4;
|
|
790
|
+
|
|
791
|
+
declare const DEFAULT_FONT_SIZE = 14;
|
|
792
|
+
declare const GROUP_STAT_DEFAULT_FONT_SIZE = 12;
|
|
793
|
+
declare const DEFAULT_FONT_FAMILY = "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Helvetica Neue,Noto Sans,Noto Sans CJK SC,Microsoft Yahei,Arial,Hiragino Sans GB,sans-serif";
|
|
794
|
+
declare const DEFAULT_FONT_STYLE = "normal";
|
|
795
|
+
declare const DEFAULT_TEXT_LINE_HEIGHT: number;
|
|
796
|
+
declare const DEFAULT_TEXT_FILL: string;
|
|
797
|
+
declare const DEFAULT_FONT_WEIGHT = "normal";
|
|
798
|
+
declare const DEFAULT_TEXT_WRAP = "none";
|
|
799
|
+
declare const DEFAULT_TEXT_TRANSFORMS_ENABLED = "position";
|
|
800
|
+
declare const DEFAULT_TEXT_ELLIPSIS = true;
|
|
801
|
+
declare const DEFAULT_TEXT_LISTENING = false;
|
|
802
|
+
declare const DEFAULT_TEXT_ALIGN_LEFT = "left";
|
|
803
|
+
declare const DEFAULT_TEXT_ALIGN_CENTER = "center";
|
|
804
|
+
declare const DEFAULT_TEXT_ALIGN_RIGHT = "right";
|
|
805
|
+
declare const DEFAULT_TEXT_VERTICAL_ALIGN_MIDDLE = "middle";
|
|
806
|
+
declare const DEFAULT_TEXT_MAX_HEIGHT = 130;
|
|
807
|
+
declare const DEFAULT_WRAP_TEXT_MAX_ROW = 1;
|
|
808
|
+
declare const DEFAULT_TEXT_VERTICAL_ALIGN_TOP = "top";
|
|
809
|
+
declare const DEFAULT_TEXT_DECORATION = "none";
|
|
810
|
+
declare const DEFAULT_TEXT_SCALE = 1;
|
|
811
|
+
declare const DEFAULT_TEXT_MAX_CACHE = 500;
|
|
812
|
+
declare const FONT_SIZE_SM = 12;
|
|
813
|
+
|
|
814
|
+
declare const buildGridLinearRows: (visibleRecords: AITableRecords, isAddingVisible?: boolean, aiTable?: AITable, aiBuildGroupLinearRowsFn?: (aiTable: AITable) => AITableLinearRow[] | null) => AITableLinearRow[];
|
|
815
|
+
declare const buildNormalLinearRows: (visibleRecords: AITableRecords, isAddingVisible?: boolean) => AITableLinearRow[];
|
|
816
|
+
|
|
817
|
+
declare function getColumnIndicesSizeMap(aiTable: AITable, fields: AITableField[]): AITableSizeMap;
|
|
818
|
+
/**
|
|
819
|
+
* 获取单元格位置
|
|
820
|
+
* 根据单元格是否是第一列/最后一列确定单元格所在的位置
|
|
821
|
+
*/
|
|
822
|
+
declare function getCellHorizontalPosition(options: {
|
|
823
|
+
columnWidth: number;
|
|
824
|
+
columnIndex: number;
|
|
825
|
+
columnCount: number;
|
|
826
|
+
depth?: number;
|
|
827
|
+
}): {
|
|
828
|
+
width: number;
|
|
829
|
+
offset: number;
|
|
830
|
+
isGroupAndFirstColumn?: undefined;
|
|
831
|
+
} | {
|
|
832
|
+
width: number;
|
|
833
|
+
offset: number;
|
|
834
|
+
isGroupAndFirstColumn: boolean;
|
|
835
|
+
};
|
|
836
|
+
declare function transformToCellText<T = any>(cellValue: FieldValue, options: FieldOptions): T | null;
|
|
837
|
+
declare function getAvatarShortName(name: string | null | undefined): string;
|
|
838
|
+
declare function getAvatarBgColor(name: string): string | undefined;
|
|
839
|
+
declare function clearCoverCell(aiTable: AITable): void;
|
|
840
|
+
declare function clearSelection(aiTable: AITable): void;
|
|
841
|
+
declare function clearSelectionRecords(aiTable: AITable): void;
|
|
842
|
+
declare function clearSelectionFields(aiTable: AITable): void;
|
|
843
|
+
declare function clearSelectedCells(aiTable: AITable): void;
|
|
844
|
+
declare function setExpandCellInfo(aiTable: AITable, expandCellInfo: Partial<AITableCellInfo>): void;
|
|
845
|
+
declare function expandCell(aiTable: AITable, cellPath: AIRecordFieldIdPath): void;
|
|
846
|
+
declare function closeExpendCell(aiTable: AITable): void;
|
|
847
|
+
declare function setSelection(aiTable: AITable, selection: Partial<AITableSelection>): void;
|
|
848
|
+
declare function setActiveCell(aiTable: AITable, activeCellPath: AIRecordFieldIdPath | null): void;
|
|
849
|
+
declare function setEditingCell(aiTable: AITable, editingCell: Partial<AITableCellInfo>): void;
|
|
850
|
+
declare function closeEditingCell(aiTable: AITable): void;
|
|
851
|
+
declare function selectCells(aiTable: AITable, startCell: AIRecordFieldIdPath, endCell?: AIRecordFieldIdPath, activeCell?: AIRecordFieldIdPath | null): void;
|
|
852
|
+
declare function scrollToMatchedCell(aiTable: AITable, index?: number): void;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* 生成目标名称
|
|
856
|
+
*/
|
|
857
|
+
declare const generateTargetName: ({ targetName, fieldId, recordId, mouseStyle, source }: AITableTargetNameOptions) => string;
|
|
858
|
+
/**
|
|
859
|
+
* 取目标名称
|
|
860
|
+
*/
|
|
861
|
+
declare const getTargetName: (targetName?: string | null) => string;
|
|
862
|
+
/**
|
|
863
|
+
* Parse targetName for built-in information
|
|
864
|
+
*/
|
|
865
|
+
declare const getDetailByTargetName: (_targetName: string | null) => AITableTargetNameDetail;
|
|
866
|
+
/**
|
|
867
|
+
* 转换为字符串
|
|
868
|
+
* @param value
|
|
869
|
+
* @returns
|
|
870
|
+
*/
|
|
871
|
+
declare const castToString: (value: string) => string | null;
|
|
872
|
+
declare function isVirtualKey(e: KeyboardEvent): boolean;
|
|
873
|
+
|
|
874
|
+
declare function getPlaceHolderCellsConfigs(options: AITableCellsConfig): {
|
|
875
|
+
key: string;
|
|
876
|
+
name: string;
|
|
877
|
+
x: number;
|
|
878
|
+
y: number;
|
|
879
|
+
width: number;
|
|
880
|
+
height: number;
|
|
881
|
+
fill: string;
|
|
882
|
+
strokeEnabled: boolean;
|
|
883
|
+
hitStrokeWidth: number;
|
|
884
|
+
transformsEnabled: string;
|
|
885
|
+
perfectDrawEnabled: boolean;
|
|
886
|
+
shadowEnabled: boolean;
|
|
887
|
+
}[];
|
|
888
|
+
|
|
889
|
+
declare const textDataCache: LRUCache<string, AITableWrapTextResult, unknown>;
|
|
890
|
+
/**
|
|
891
|
+
* 计算给定文本在指定字体和 Canvas 环境下的宽度。
|
|
892
|
+
* 它通过缓存机制来优化性能,避免重复计算相同文本的宽度
|
|
893
|
+
*/
|
|
894
|
+
declare const getTextWidth: (ctx: CanvasRenderingContext2D, text: string, font: string) => number;
|
|
895
|
+
|
|
896
|
+
interface AITableImageOption {
|
|
897
|
+
crossOrigin?: boolean;
|
|
898
|
+
}
|
|
899
|
+
declare const imageCache: {
|
|
900
|
+
loadImage: (name: string, src: string, option?: AITableImageOption) => void;
|
|
901
|
+
getImage: (name: string) => false | HTMLImageElement | null;
|
|
902
|
+
imageMapOnload: (callback: any) => void;
|
|
903
|
+
imageMap: {
|
|
904
|
+
[name: string]: {
|
|
905
|
+
img: HTMLImageElement;
|
|
906
|
+
success: boolean;
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
declare const isWindowsOS: () => boolean;
|
|
912
|
+
declare const isWindows: boolean;
|
|
913
|
+
declare const isMac: () => boolean;
|
|
914
|
+
|
|
915
|
+
declare const isClipboardWriteSupported: () => boolean;
|
|
916
|
+
declare const isClipboardWriteTextSupported: () => boolean;
|
|
917
|
+
declare const isClipboardReadSupported: () => boolean;
|
|
918
|
+
declare const isClipboardReadTextSupported: () => boolean;
|
|
919
|
+
declare const writeToClipboard: (data: ClipboardContent, dataTransfer?: DataTransfer | null) => Promise<void>;
|
|
920
|
+
declare const readFromClipboard: (dataTransfer?: DataTransfer | null) => Promise<ClipboardContent | null>;
|
|
921
|
+
|
|
922
|
+
declare function extractText(text: string): string;
|
|
923
|
+
declare function extractLinkUrl(text: string): string | null;
|
|
924
|
+
|
|
925
|
+
declare const aiTableFragmentAttribute = "ai-table-fragment";
|
|
926
|
+
declare const buildClipboardData: (aiTable: AITable) => ClipboardContent | null;
|
|
927
|
+
|
|
928
|
+
interface AITableActions {
|
|
929
|
+
updateFieldValues: (data: UpdateFieldValueOptions[]) => void;
|
|
930
|
+
setField: (field: AITableField) => void;
|
|
931
|
+
setFieldStatType: (data: SetFieldStatTypeOptions) => void;
|
|
932
|
+
addRecord: (data: AddRecordOptions) => void;
|
|
933
|
+
copyRecords: (data: CopyRecordOptions) => void;
|
|
934
|
+
addField: (data: AddFieldOptions) => void;
|
|
935
|
+
removeRecord?: (data: IdPath) => void;
|
|
936
|
+
}
|
|
937
|
+
declare const writeToAITable: (aiTable: AITable, actions: AITableActions, dataTransfer?: DataTransfer | null) => Promise<{
|
|
938
|
+
isPasteSuccess: boolean;
|
|
939
|
+
isPasteOverMaxRecords: boolean;
|
|
940
|
+
isPasteOverMaxFields: boolean;
|
|
941
|
+
}>;
|
|
942
|
+
|
|
943
|
+
declare const getMousePosition: (aiTable: AITable, x: number, y: number, coordinate: Coordinate, fields: AITableField[], context: RendererContext, _targetName?: string) => {
|
|
944
|
+
areaType: AITableAreaType;
|
|
945
|
+
targetName: string;
|
|
946
|
+
realTargetName: string;
|
|
947
|
+
rowIndex: number;
|
|
948
|
+
columnIndex: number;
|
|
949
|
+
offsetTop: number;
|
|
950
|
+
offsetLeft: number;
|
|
951
|
+
x: number;
|
|
952
|
+
y: number;
|
|
953
|
+
};
|
|
954
|
+
declare const isWithinFrozenColumnBoundary: (x: number, frozenColumnWidth: number, rowHeadWidth: number) => boolean;
|
|
955
|
+
declare const getEditorSpace: (widthOrHeight: number) => number;
|
|
956
|
+
declare const getEditorBoxOffset: () => number;
|
|
957
|
+
declare const getCellEditorBorderSpace: () => number;
|
|
958
|
+
declare const getHoverEditorSpace: (widthOrHeight: number) => number;
|
|
959
|
+
declare const getHoverEditorBoxOffset: () => number;
|
|
960
|
+
|
|
961
|
+
declare const handleMouseStyle: (realTargetName: string, areaType: AITableAreaType | undefined, container: HTMLDivElement, isReadOnly?: boolean) => void;
|
|
962
|
+
declare const setMouseStyle: (mouseStyle: string, container: HTMLDivElement) => void;
|
|
963
|
+
|
|
964
|
+
interface AITableTextMeasureOptions {
|
|
965
|
+
fontFamily?: string;
|
|
966
|
+
fontSize?: number;
|
|
967
|
+
fontWeight?: string;
|
|
968
|
+
fontStyle?: string;
|
|
969
|
+
lineHeight?: number;
|
|
970
|
+
scale?: number;
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* 在 Canvas 上测量文本的宽度和高度,以便在显示文本时能够动态调整布局或限制文本的显示区域
|
|
974
|
+
* @param defaults
|
|
975
|
+
* @returns
|
|
976
|
+
*/
|
|
977
|
+
declare const TextMeasure: (defaults?: AITableTextMeasureOptions) => {
|
|
978
|
+
context: CanvasRenderingContext2D | null;
|
|
979
|
+
measureText: (text: string, maxWidth?: number, maxLineCount?: number) => {
|
|
980
|
+
width: number;
|
|
981
|
+
height: number;
|
|
982
|
+
lastLineWidth: number;
|
|
983
|
+
text?: undefined;
|
|
984
|
+
isOverflow?: undefined;
|
|
985
|
+
} | {
|
|
986
|
+
width: number;
|
|
987
|
+
height: number;
|
|
988
|
+
text: string;
|
|
989
|
+
isOverflow: boolean;
|
|
990
|
+
lastLineWidth: number;
|
|
991
|
+
};
|
|
992
|
+
setFont: (options?: AITableTextMeasureOptions) => void;
|
|
993
|
+
reset: () => void;
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
declare const getVisibleRangeInfo: (coordinate: Coordinate, scrollState: AITableScrollState) => {
|
|
997
|
+
rowStartIndex: number;
|
|
998
|
+
rowStopIndex: number;
|
|
999
|
+
columnStartIndex: number;
|
|
1000
|
+
columnStopIndex: number;
|
|
1001
|
+
};
|
|
1002
|
+
declare const scrollMax: (aiTable: AITable, coordinate: Coordinate, visibleColumns: AITableField[]) => {
|
|
1003
|
+
scrollMaxWidth: number;
|
|
1004
|
+
scrollMaxHeight: number;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
interface FieldOperable<TFC = string, TCV extends FieldValue = FieldValue> extends FieldBase {
|
|
1008
|
+
isMeetFilter(condition: AITableFilterCondition<TFC>, cellValue: TCV, options?: FieldOptions): boolean;
|
|
1009
|
+
compare(cellValue1: TCV, cellValue2: TCV, references: AITableReferences, sortKey: string | undefined, options: FieldOptions): number;
|
|
1010
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1011
|
+
field: AITableField;
|
|
1012
|
+
cellValue: TCV;
|
|
1013
|
+
} | null, references?: AITableReferences, toFieldValue?: (text: string, cellValue: TCV) => TCV): TCV | null;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
declare class AttachmentField extends AttachmentFieldBase implements FieldOperable<string, AttachmentFieldValue> {
|
|
1017
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: AttachmentFieldValue): boolean;
|
|
1018
|
+
compare(cellValue1: AttachmentFieldValue, cellValue2: AttachmentFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
1019
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1020
|
+
field: AITableField;
|
|
1021
|
+
cellValue: AttachmentFieldValue;
|
|
1022
|
+
}, references?: AITableReferences): AttachmentFieldValue | null;
|
|
1023
|
+
}
|
|
1024
|
+
declare function toAttachmentFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1025
|
+
field: AITableField;
|
|
1026
|
+
cellValue: AttachmentFieldValue;
|
|
1027
|
+
}, references?: AITableReferences): FieldValue | null;
|
|
1028
|
+
|
|
1029
|
+
declare class DateField extends DateFieldBase implements FieldOperable<string, DateFieldValue> {
|
|
1030
|
+
constructor();
|
|
1031
|
+
transformCellValue(cellValue: FieldValue, options: FieldOptions): any;
|
|
1032
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: DateFieldValue): boolean;
|
|
1033
|
+
compare(cellValue1: DateFieldValue, cellValue2: DateFieldValue): number;
|
|
1034
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1035
|
+
field: AITableField;
|
|
1036
|
+
cellValue: FieldValue;
|
|
1037
|
+
}): FieldValue | null;
|
|
1038
|
+
getTimeRange(value: string | number | number[]): number[];
|
|
1039
|
+
}
|
|
1040
|
+
declare function toDateFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1041
|
+
field: AITableField;
|
|
1042
|
+
cellValue: FieldValue;
|
|
1043
|
+
}): FieldValue | null;
|
|
1044
|
+
|
|
1045
|
+
declare class LinkField extends LinkFieldBase implements FieldOperable<string, LinkFieldValue> {
|
|
1046
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: LinkFieldValue): boolean;
|
|
1047
|
+
compare(cellValue1: LinkFieldValue, cellValue2: LinkFieldValue): number;
|
|
1048
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1049
|
+
field: AITableField;
|
|
1050
|
+
cellValue: FieldValue;
|
|
1051
|
+
} | null): FieldValue | null;
|
|
1052
|
+
}
|
|
1053
|
+
declare function toLinkFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1054
|
+
field: AITableField;
|
|
1055
|
+
cellValue: FieldValue;
|
|
1056
|
+
} | null): FieldValue | null;
|
|
1057
|
+
|
|
1058
|
+
declare class MemberField extends MemberFieldBase implements FieldOperable<string, MemberFieldValue> {
|
|
1059
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: MemberFieldValue): boolean;
|
|
1060
|
+
compare(cellValue1: MemberFieldValue, cellValue2: MemberFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
1061
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1062
|
+
field: AITableField;
|
|
1063
|
+
cellValue: FieldValue;
|
|
1064
|
+
}, references?: AITableReferences): FieldValue | null;
|
|
1065
|
+
}
|
|
1066
|
+
declare function toMemberFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1067
|
+
field: AITableField;
|
|
1068
|
+
cellValue: FieldValue;
|
|
1069
|
+
}, references?: AITableReferences): FieldValue | null;
|
|
1070
|
+
|
|
1071
|
+
declare class NumberField extends NumberFieldBase implements FieldOperable<number, NumberFieldValue> {
|
|
1072
|
+
isMeetFilter(condition: AITableFilterCondition<number>, cellValue: NumberFieldValue): boolean;
|
|
1073
|
+
compare(cellValue1: NumberFieldValue, cellValue2: NumberFieldValue): number;
|
|
1074
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1075
|
+
field: AITableField;
|
|
1076
|
+
cellValue: FieldValue;
|
|
1077
|
+
}): FieldValue | null;
|
|
1078
|
+
}
|
|
1079
|
+
declare function toNumberFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1080
|
+
field: AITableField;
|
|
1081
|
+
cellValue: FieldValue;
|
|
1082
|
+
}): NumberFieldValue | null;
|
|
1083
|
+
|
|
1084
|
+
declare class ProgressField extends ProgressFieldBase implements FieldOperable<number, ProgressFieldValue> {
|
|
1085
|
+
isMeetFilter(condition: AITableFilterCondition<number>, cellValue: ProgressFieldValue): boolean;
|
|
1086
|
+
compare(cellValue1: ProgressFieldValue, cellValue2: ProgressFieldValue): number;
|
|
1087
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1088
|
+
field: AITableField;
|
|
1089
|
+
cellValue: FieldValue;
|
|
1090
|
+
}): FieldValue | null;
|
|
1091
|
+
}
|
|
1092
|
+
declare function toProgressFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1093
|
+
field: AITableField;
|
|
1094
|
+
cellValue: FieldValue;
|
|
1095
|
+
}): FieldValue | null;
|
|
1096
|
+
|
|
1097
|
+
declare class RateField extends RateFieldBase implements FieldOperable<string[], RateFieldValue> {
|
|
1098
|
+
isMeetFilter(condition: AITableFilterCondition<string[]>, cellValue: RateFieldValue): boolean;
|
|
1099
|
+
compare(cellValue1: RateFieldValue, cellValue2: RateFieldValue): number;
|
|
1100
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1101
|
+
field: AITableField;
|
|
1102
|
+
cellValue: FieldValue;
|
|
1103
|
+
}): FieldValue | null;
|
|
1104
|
+
}
|
|
1105
|
+
declare function toRateFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1106
|
+
field: AITableField;
|
|
1107
|
+
cellValue: FieldValue;
|
|
1108
|
+
}): FieldValue | null;
|
|
1109
|
+
|
|
1110
|
+
declare class RichTextField extends RichTextFieldBase implements FieldOperable<string, RichTextFieldValue> {
|
|
1111
|
+
transformCellValue(cellValue: FieldValue, options: FieldOptions): any;
|
|
1112
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: RichTextFieldValue, options: FieldOptions): boolean;
|
|
1113
|
+
compare(cellValue1: RichTextFieldValue, cellValue2: RichTextFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
1114
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1115
|
+
field: AITableField;
|
|
1116
|
+
cellValue: FieldValue;
|
|
1117
|
+
}, references?: AITableReferences, toFieldValue?: (text: string, cellValue: FieldValue) => RichTextFieldValue): FieldValue | null;
|
|
1118
|
+
}
|
|
1119
|
+
declare function toRichTextFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1120
|
+
field: AITableField;
|
|
1121
|
+
cellValue: FieldValue;
|
|
1122
|
+
} | null, toFieldValue?: (text: string, cellValue: FieldValue) => FieldValue): RichTextFieldValue | null;
|
|
1123
|
+
|
|
1124
|
+
declare class SelectField extends SelectFieldBase implements FieldOperable<string, SelectFieldValue> {
|
|
1125
|
+
isValid(cellValue: FieldValue): boolean;
|
|
1126
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: SelectFieldValue, options: FieldOptions): boolean;
|
|
1127
|
+
compare(cellValue1: SelectFieldValue, cellValue2: SelectFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
1128
|
+
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1129
|
+
field: AITableField;
|
|
1130
|
+
cellValue: FieldValue;
|
|
1131
|
+
} | null): FieldValue | null;
|
|
1132
|
+
}
|
|
1133
|
+
declare function toSelectFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
1134
|
+
field: AITableField;
|
|
1135
|
+
cellValue: FieldValue;
|
|
1136
|
+
} | null): SelectFieldValue | null;
|
|
1137
|
+
declare function getOptionsByFieldAndRecords(aiTable: AITable, field: AITableField, references: AITableReferences): {
|
|
1138
|
+
options: AITableSelectOption[];
|
|
1139
|
+
optionStyle: AITableSelectOptionStyle;
|
|
1140
|
+
};
|
|
1141
|
+
declare function processPastedValueForSelect(plainText: string, targetField: AITableField, originData?: {
|
|
1142
|
+
field: AITableField;
|
|
1143
|
+
cellValue: FieldValue;
|
|
1144
|
+
} | null): {
|
|
1145
|
+
existOptionIds: string[];
|
|
1146
|
+
newOptions: AITableSelectOption[];
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1149
|
+
declare class TextField extends TextFieldBase implements FieldOperable<string, TextFieldValue> {
|
|
1150
|
+
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: TextFieldValue): boolean;
|
|
1151
|
+
compare(cellValue1: TextFieldValue, cellValue2: TextFieldValue): number;
|
|
1152
|
+
toFieldValue(plainText: string): FieldValue | null;
|
|
1153
|
+
}
|
|
1154
|
+
declare function toTextFieldValue(plainText: string): FieldValue | null;
|
|
1155
|
+
|
|
1156
|
+
declare const FieldModelMap: Record<AITableFieldType | string, FieldOperable<unknown, unknown>>;
|
|
1157
|
+
declare function selectField(aiTable: AITable, fieldId: string): void;
|
|
1158
|
+
declare function getFieldIconPath(field: AITableField): string | null;
|
|
1159
|
+
|
|
1160
|
+
declare const zhIntlCollator: Intl.Collator | undefined;
|
|
1161
|
+
declare function compareNumber(a: number | null, b: number | null): number;
|
|
1162
|
+
declare function compareString(a: string | null, b: string | null): number;
|
|
1163
|
+
declare function compareOption(a: Id[] | null, b: Id[] | null, options: AITableSelectOption[]): number;
|
|
1164
|
+
declare function stringInclude(str: string, searchStr: string): boolean;
|
|
1165
|
+
/**
|
|
1166
|
+
* 两数组是否有交集
|
|
1167
|
+
*/
|
|
1168
|
+
declare function hasIntersect<T extends number | string>(array1: T[], array2: T[]): boolean;
|
|
1169
|
+
declare function isMeetFilter(condition: AITableFilterCondition, cellValue: FieldValue): boolean;
|
|
1170
|
+
declare function isEmptyOrNot(operation: AITableFilterOperation.empty | AITableFilterOperation.exists, cellValue: FieldValue): boolean;
|
|
1171
|
+
|
|
1172
|
+
declare const isCellMatchKeywords: (aiTable: AITable, field: AITableField, recordId: string, keywords: string, references: AITableReferences) => boolean | "" | 0;
|
|
1173
|
+
|
|
1174
|
+
declare function getCoverCell(aiTable: AITable): {
|
|
1175
|
+
field: _ai_table_utils.AITableField;
|
|
1176
|
+
recordId: string;
|
|
1177
|
+
fieldId: string;
|
|
1178
|
+
isExpand: boolean;
|
|
1179
|
+
renderComponentDefinition: ngx_tethys_core.Constructor<_ai_table_grid.CoverCellBase>;
|
|
1180
|
+
} | undefined;
|
|
1181
|
+
|
|
1182
|
+
declare function clearCells(aiTable: AITable, actions: AITableActions): void;
|
|
1183
|
+
|
|
1184
|
+
declare function getFileThumbnailSvgString(ext: string): string;
|
|
1185
|
+
|
|
1186
|
+
declare function aiTableTextConfigToKonvaConfig(textConfig: AITableText, rowHeight: number): TextConfig;
|
|
1187
|
+
declare function aiTableImageConfigToKonvaConfig(imageConfig: Partial<AITableImage>, options: {
|
|
1188
|
+
listening?: boolean;
|
|
1189
|
+
}): ImageConfig;
|
|
1190
|
+
declare function aiTableRectConfigToKonvaConfig(rectConfig: AITableRect, options?: {
|
|
1191
|
+
name?: string;
|
|
1192
|
+
listening?: boolean;
|
|
1193
|
+
}): RectConfig;
|
|
1194
|
+
|
|
1195
|
+
declare function getDateFieldValues(records: AITableRecords, options: FieldOptions, filterNull?: boolean): any[];
|
|
1196
|
+
declare function statEarliestTime(records: AITableRecords, options: FieldOptions): any;
|
|
1197
|
+
declare function statLatestTime(records: AITableRecords, options: FieldOptions): any;
|
|
1198
|
+
declare function statDateRangeOfDays(records: AITableRecords, options: FieldOptions): number;
|
|
1199
|
+
declare function statDateRangeOfMonths(records: AITableRecords, options: FieldOptions): number;
|
|
1200
|
+
|
|
1201
|
+
interface AITableDragFillState {
|
|
1202
|
+
isDragging: boolean;
|
|
1203
|
+
activeCell: AIRecordFieldIdPath | null;
|
|
1204
|
+
sourceCells: Set<string>;
|
|
1205
|
+
}
|
|
1206
|
+
declare function getFillDirection(aiTable: AITable, sourceCells: Set<string>, mouseUpRecordId: string): "upward" | "downward" | undefined;
|
|
1207
|
+
declare function dragFillHighlightArea(aiTable: AITable, sourceCells: Set<string>, currentRecordId: string): {
|
|
1208
|
+
highlightStartCell: AIRecordFieldIdPath;
|
|
1209
|
+
highlightEndCell: AIRecordFieldIdPath;
|
|
1210
|
+
};
|
|
1211
|
+
declare function performFill(aiTable: AITable, sourceCells: Set<string>, mouseUpRecordId: string, actions: AITableActions): void;
|
|
1212
|
+
declare function getStartAndEndCell(selectedCells: Set<string>): {
|
|
1213
|
+
startCell: AIRecordFieldIdPath;
|
|
1214
|
+
endCell: AIRecordFieldIdPath;
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
declare function toggleSelectRecord(aiTable: AITable, recordId: string): void;
|
|
1218
|
+
declare function toggleSelectAllRecords(aiTable: AITable, checked: boolean): void;
|
|
1219
|
+
declare function getNextRecordByActiveCell(aiTable: AITable): string | null;
|
|
1220
|
+
declare function getPreviousRecordByActiveCell(aiTable: AITable): string | null;
|
|
1221
|
+
declare function getRecordNavigationInfo(aiTable: AITable, recordId: string): {
|
|
1222
|
+
index: number;
|
|
1223
|
+
total: number;
|
|
1224
|
+
hasPrevious: boolean;
|
|
1225
|
+
hasNext: boolean;
|
|
1226
|
+
previousId: string | null;
|
|
1227
|
+
nextId: string | null;
|
|
1228
|
+
} | null;
|
|
1229
|
+
|
|
1230
|
+
declare function getGroupLastRecordIndex(aiTable: AITable, startRowIndex: number): number;
|
|
1231
|
+
declare function setCollapseDisabled(aiTable: AITable, groupCollapseDisabled: boolean): void;
|
|
1232
|
+
|
|
1233
|
+
declare enum AITableRenderAtomType {
|
|
1234
|
+
text = "text",
|
|
1235
|
+
image = "image",
|
|
1236
|
+
patch = "patch",
|
|
1237
|
+
rect = "rect",
|
|
1238
|
+
circle = "circle",
|
|
1239
|
+
avatar = "avatar"
|
|
1240
|
+
}
|
|
1241
|
+
interface AITableRenderAtom {
|
|
1242
|
+
type: AITableRenderAtomType;
|
|
1243
|
+
x: number;
|
|
1244
|
+
y: number;
|
|
1245
|
+
width?: number;
|
|
1246
|
+
height?: number;
|
|
1247
|
+
radius?: number;
|
|
1248
|
+
text?: string;
|
|
1249
|
+
fontSize?: number;
|
|
1250
|
+
fillStyle?: string;
|
|
1251
|
+
alpha?: number;
|
|
1252
|
+
uid?: string;
|
|
1253
|
+
url?: string;
|
|
1254
|
+
title?: string;
|
|
1255
|
+
bgColor?: string;
|
|
1256
|
+
image?: string;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
interface AITableCellsConfig {
|
|
1260
|
+
aiTable: AITable;
|
|
1261
|
+
coordinate: Coordinate;
|
|
1262
|
+
rowStartIndex: number;
|
|
1263
|
+
rowStopIndex: number;
|
|
1264
|
+
columnStartIndex: number;
|
|
1265
|
+
columnStopIndex: number;
|
|
1266
|
+
readonly: boolean;
|
|
1267
|
+
actions: AITableActions;
|
|
1268
|
+
references?: AITableReferences;
|
|
1269
|
+
maxRecords?: number;
|
|
1270
|
+
keywordsMatchedCells: Set<string>;
|
|
1271
|
+
}
|
|
1272
|
+
interface AITableCellsDrawerConfig extends AITableCellsConfig {
|
|
1273
|
+
ctx: Konva.Context | CanvasRenderingContext2D;
|
|
1274
|
+
}
|
|
1275
|
+
interface AITableGroupOptionsConfig extends AITableCellsConfig {
|
|
1276
|
+
x: number;
|
|
1277
|
+
y: number;
|
|
1278
|
+
width: number;
|
|
1279
|
+
height: number;
|
|
1280
|
+
}
|
|
1281
|
+
interface AITableRender<TR extends AITableReferences = AITableReferences> {
|
|
1282
|
+
aiTable: AITable;
|
|
1283
|
+
x: number;
|
|
1284
|
+
y: number;
|
|
1285
|
+
columnWidth: number;
|
|
1286
|
+
rowHeight: number;
|
|
1287
|
+
recordId: string;
|
|
1288
|
+
field: AITableField;
|
|
1289
|
+
cellValue: FieldValue;
|
|
1290
|
+
transformValue: any;
|
|
1291
|
+
isActive: boolean;
|
|
1292
|
+
style: AITableRenderStyle;
|
|
1293
|
+
references?: TR;
|
|
1294
|
+
isCoverCell?: boolean;
|
|
1295
|
+
colors?: typeof Colors;
|
|
1296
|
+
zIndex?: number;
|
|
1297
|
+
isGroupFirstRender?: boolean;
|
|
1298
|
+
groupOffset?: number;
|
|
1299
|
+
}
|
|
1300
|
+
interface AITableRenderStyle {
|
|
1301
|
+
color?: string;
|
|
1302
|
+
textAlign?: 'left' | 'right' | 'center' | 'start' | 'end';
|
|
1303
|
+
fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter';
|
|
1304
|
+
}
|
|
1305
|
+
interface AITableCell<T extends AITableLinearRow = AITableLinearRow> {
|
|
1306
|
+
row: T;
|
|
1307
|
+
style?: AITableCellStyle;
|
|
1308
|
+
indexStyle?: AITableCellStyle;
|
|
1309
|
+
isHoverRow: boolean;
|
|
1310
|
+
isCheckedRow: boolean;
|
|
1311
|
+
width?: number;
|
|
1312
|
+
isDisabled?: boolean;
|
|
1313
|
+
}
|
|
1314
|
+
interface AITableCellInfo {
|
|
1315
|
+
path: AIRecordFieldIdPath | null;
|
|
1316
|
+
width?: number;
|
|
1317
|
+
height?: number;
|
|
1318
|
+
}
|
|
1319
|
+
interface AITableCellStyle {
|
|
1320
|
+
fill?: string;
|
|
1321
|
+
stroke?: string;
|
|
1322
|
+
}
|
|
1323
|
+
interface AITableCellItemRenderInfo<TSource = any> {
|
|
1324
|
+
x?: number;
|
|
1325
|
+
y?: number;
|
|
1326
|
+
source?: TSource;
|
|
1327
|
+
width: number;
|
|
1328
|
+
height: number;
|
|
1329
|
+
renderAtoms: AITableRenderAtom[];
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
interface AITableFieldMenuItem {
|
|
1333
|
+
type: string;
|
|
1334
|
+
name?: string | ((field: AITableField) => string);
|
|
1335
|
+
icon?: string;
|
|
1336
|
+
customComponent?: (aiTable: AITable, field: AITableField) => Constructor<any>;
|
|
1337
|
+
exec?: (aiTable: AITable, field: Signal<AITableField>, origin?: HTMLElement | ElementRef<any>, position?: {
|
|
1338
|
+
x: number;
|
|
1339
|
+
y: number;
|
|
1340
|
+
}) => any;
|
|
1341
|
+
hidden?: (aiTable: AITable, field: Signal<AITableField>) => boolean;
|
|
1342
|
+
disabled?: (aiTable: AITable, field: Signal<AITableField>) => boolean;
|
|
1343
|
+
}
|
|
1344
|
+
interface AITableSelectField extends AITableField {
|
|
1345
|
+
settings: SelectSettings;
|
|
1346
|
+
}
|
|
1347
|
+
interface AITableEditFieldOptions {
|
|
1348
|
+
field: AITableField;
|
|
1349
|
+
references: AITableReferences;
|
|
1350
|
+
isUpdate: boolean;
|
|
1351
|
+
origin: HTMLElement | ElementRef<any>;
|
|
1352
|
+
position?: {
|
|
1353
|
+
x: number;
|
|
1354
|
+
y: number;
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
interface AITableFieldMenuOptions {
|
|
1358
|
+
fieldId: string;
|
|
1359
|
+
fieldMenus: AITableFieldMenuItem[];
|
|
1360
|
+
editOrigin?: any;
|
|
1361
|
+
origin?: any;
|
|
1362
|
+
position?: {
|
|
1363
|
+
x: number;
|
|
1364
|
+
y: number;
|
|
1365
|
+
};
|
|
1366
|
+
editFieldPosition?: {
|
|
1367
|
+
x: number;
|
|
1368
|
+
y: number;
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
declare const graphemeSplitter: GraphemeSplitter;
|
|
1373
|
+
/**
|
|
1374
|
+
* 用于在 Canvas 上进行的各种绘图操作,包含了文本绘制、矩形绘制、路径绘制以及一些几何计算等功能
|
|
1375
|
+
*/
|
|
1376
|
+
declare class Drawer {
|
|
1377
|
+
ctx: CanvasRenderingContext2D;
|
|
1378
|
+
needDraw: boolean;
|
|
1379
|
+
colors: {
|
|
1380
|
+
primary: string;
|
|
1381
|
+
gray100: string;
|
|
1382
|
+
gray200: string;
|
|
1383
|
+
gray300: string;
|
|
1384
|
+
gray400: string;
|
|
1385
|
+
gray500: string;
|
|
1386
|
+
gray600: string;
|
|
1387
|
+
gray700: string;
|
|
1388
|
+
gray800: string;
|
|
1389
|
+
gray900: string;
|
|
1390
|
+
white: string;
|
|
1391
|
+
black: string;
|
|
1392
|
+
transparent: string;
|
|
1393
|
+
gray80: string;
|
|
1394
|
+
headSelectedBgColor: string;
|
|
1395
|
+
itemActiveBgColor: string;
|
|
1396
|
+
itemMatchBgColor: string;
|
|
1397
|
+
waring: string;
|
|
1398
|
+
success: string;
|
|
1399
|
+
danger: string;
|
|
1400
|
+
};
|
|
1401
|
+
initCtx(ctx: CanvasRenderingContext2D): void;
|
|
1402
|
+
setStyle(options: AITableCtxStyle): void;
|
|
1403
|
+
textEllipsis(options: AITableTextEllipsis): {
|
|
1404
|
+
text: string;
|
|
1405
|
+
textWidth: number;
|
|
1406
|
+
isEllipsis: boolean;
|
|
1407
|
+
};
|
|
1408
|
+
line(options: AITableLine): void;
|
|
1409
|
+
arc(options: AITableArc): void;
|
|
1410
|
+
rect(options: AITableRect): void;
|
|
1411
|
+
customRect(options: AITableRect): void;
|
|
1412
|
+
wrapText(options: AITableWrapText): _ai_table_grid.AITableWrapTextResult;
|
|
1413
|
+
wrapTextWithKonva(options: AITableWrapText): _ai_table_grid.AITableWrapTextResult;
|
|
1414
|
+
text(options: AITableText): void;
|
|
1415
|
+
tag(options: AITableLabel): {
|
|
1416
|
+
width: number;
|
|
1417
|
+
height: number;
|
|
1418
|
+
};
|
|
1419
|
+
image(options: AITableImage, crossOrigin?: boolean, allowDefault?: boolean): void;
|
|
1420
|
+
avatar(options: {
|
|
1421
|
+
x: number;
|
|
1422
|
+
y: number;
|
|
1423
|
+
url: string;
|
|
1424
|
+
id: string;
|
|
1425
|
+
title: string;
|
|
1426
|
+
type?: AITableAvatarType;
|
|
1427
|
+
size?: AITableAvatarSize;
|
|
1428
|
+
opacity?: number;
|
|
1429
|
+
bgColor?: string;
|
|
1430
|
+
}): void | null;
|
|
1431
|
+
/**
|
|
1432
|
+
* 方法将椭圆弧的端点参数化形式转换为中心参数化形式
|
|
1433
|
+
* 接受弧线的端点参数,并计算出弧线的中心点坐标、起始角度、终止角度等参数
|
|
1434
|
+
* 返回值:一个包含中心点坐标、半径、旋转角度、起始角度以及角度差的对象,这些参数可以直接用于绘制椭圆弧
|
|
1435
|
+
* @returns [cx, cy, rx, ry, theta, dTheta, psi, fs]
|
|
1436
|
+
*/
|
|
1437
|
+
private convertEndpointToCenterParameterization;
|
|
1438
|
+
/**
|
|
1439
|
+
* 计算两个点 (x1, y1) 和 (x2, y2) 之间的直线距离
|
|
1440
|
+
* @returns 两个点 (x1, y1) 和 (x2, y2) 之间的直线距离,单位与输入的坐标值相同
|
|
1441
|
+
*/
|
|
1442
|
+
private getLineLength;
|
|
1443
|
+
/**
|
|
1444
|
+
* 计算三次贝塞尔曲线上给定参数 t 对应的点的坐标.
|
|
1445
|
+
* 可以在指定的 t 参数下计算出曲线上精确的一个点,这个点可以用于绘制平滑曲线的一部分
|
|
1446
|
+
* @param pct - 0 到 1 之间的参数,用于指定曲线上的点的位置
|
|
1447
|
+
* @param P1x - 曲线的起点 x 坐标
|
|
1448
|
+
* @param P1y - 曲线的起点 y 坐标
|
|
1449
|
+
* @param P2x - 曲线的第一个控制点 x 坐标
|
|
1450
|
+
* @param P2y - 曲线的第一个控制点 y 坐标
|
|
1451
|
+
* @param P3x - 曲线的第二个控制点 x 坐标
|
|
1452
|
+
* @param P3y - 曲线的第二个控制点 y 坐标
|
|
1453
|
+
* @param P4x - 曲线的终点 x 坐标
|
|
1454
|
+
* @param P4y - 曲线的终点 y 坐标
|
|
1455
|
+
* @returns
|
|
1456
|
+
*/
|
|
1457
|
+
private getPointOnCubicBezier;
|
|
1458
|
+
/**
|
|
1459
|
+
* 计算二次贝塞尔曲线上给定参数 t 对应的点的坐标
|
|
1460
|
+
* @param pct - 0 到 1 之间的参数,用于指定曲线上的点的位置
|
|
1461
|
+
* @param P1x - 曲线的起点 x 坐标
|
|
1462
|
+
* @param P1y - 曲线的起点 y 坐标
|
|
1463
|
+
* @param P2x - 曲线的控制点 x 坐标
|
|
1464
|
+
* @param P2y - 曲线的控制点 y 坐标
|
|
1465
|
+
* @param P3x - 曲线的终点 x 坐标
|
|
1466
|
+
* @param P3y - 曲线的终点 y 坐标
|
|
1467
|
+
* @returns
|
|
1468
|
+
*/
|
|
1469
|
+
private getPointOnQuadraticBezier;
|
|
1470
|
+
/**
|
|
1471
|
+
* 计算椭圆弧上给定角度 θ 对应的点的坐标
|
|
1472
|
+
* @param cx - 椭圆的中心点 x 坐标
|
|
1473
|
+
* @param cy - 椭圆的中心点 y 坐标
|
|
1474
|
+
* @param rx - 椭圆的 x 轴半径
|
|
1475
|
+
* @param ry - 椭圆的 y 轴半径
|
|
1476
|
+
* @param theta - 椭圆弧的起始角度
|
|
1477
|
+
* @param psi - 椭圆弧的旋转角度
|
|
1478
|
+
* @returns
|
|
1479
|
+
*/
|
|
1480
|
+
private getPointOnEllipticalArc;
|
|
1481
|
+
/**
|
|
1482
|
+
* 计算基于不同路径命令的长度
|
|
1483
|
+
* @param x - 起点 x 坐标
|
|
1484
|
+
* @param y - 起点 y 坐标
|
|
1485
|
+
* @param cmd - 路径命令
|
|
1486
|
+
* @param points - 与路径命令相关的点的坐标或控制参数
|
|
1487
|
+
* @returns
|
|
1488
|
+
*/
|
|
1489
|
+
private calcLength;
|
|
1490
|
+
/**
|
|
1491
|
+
* 解析 SVG 路径数据字符串,将其转换为一个包含路径命令和坐标点的数组对象
|
|
1492
|
+
* @param data - SVG 路径数据字符串
|
|
1493
|
+
* @returns
|
|
1494
|
+
*/
|
|
1495
|
+
private parsePathData;
|
|
1496
|
+
/**
|
|
1497
|
+
* 根据传入的路径数据 data 在画布上绘制路径
|
|
1498
|
+
* @param options
|
|
1499
|
+
*/
|
|
1500
|
+
path(options: {
|
|
1501
|
+
x: number;
|
|
1502
|
+
y: number;
|
|
1503
|
+
data: string;
|
|
1504
|
+
size?: number;
|
|
1505
|
+
scaleX?: number;
|
|
1506
|
+
scaleY?: number;
|
|
1507
|
+
fill: string;
|
|
1508
|
+
}): void;
|
|
1509
|
+
transformCellXYToRenderXY(renderCoordinate: {
|
|
1510
|
+
x: number;
|
|
1511
|
+
y: number;
|
|
1512
|
+
}, cellAtom: AITableRenderAtom): AITableRenderAtom;
|
|
1513
|
+
}
|
|
1514
|
+
declare const drawer: Drawer;
|
|
1515
|
+
|
|
1516
|
+
declare abstract class CellBaseLayout<T extends AITableCellItemRenderInfo = AITableCellItemRenderInfo> {
|
|
1517
|
+
protected cellLayoutOption: AITableCellLayout;
|
|
1518
|
+
protected renderInfo: AITableRender;
|
|
1519
|
+
get minItemWidth(): number;
|
|
1520
|
+
abstract getItemRenderInfo(item: any, containerMaxWidth: number): T | null;
|
|
1521
|
+
getAbsoluteItemRenderInfos?(): AITableCellItemRenderInfo[];
|
|
1522
|
+
abstract get startY(): number;
|
|
1523
|
+
abstract get lineSpacing(): number;
|
|
1524
|
+
abstract get itemHeight(): number;
|
|
1525
|
+
renderItems: AITableCellItemRenderInfo[];
|
|
1526
|
+
get items(): any[];
|
|
1527
|
+
get renderAtoms(): AITableRenderAtom[];
|
|
1528
|
+
get field(): AITableField;
|
|
1529
|
+
get references(): _ai_table_utils.AITableReferences | undefined;
|
|
1530
|
+
get itemOffsetX(): number;
|
|
1531
|
+
get maxRow(): number;
|
|
1532
|
+
get renderWidth(): number;
|
|
1533
|
+
get moreBgRadius(): number;
|
|
1534
|
+
get noMoreItem(): boolean;
|
|
1535
|
+
protected getValidSelectedValue(field: AITableField, transformValue: string[]): string[];
|
|
1536
|
+
constructor(render: AITableRender, cellLayoutOption?: AITableCellLayout);
|
|
1537
|
+
layout(): AITableCellItemRenderInfo[];
|
|
1538
|
+
getMoreItemRenderInfo(count: number): {
|
|
1539
|
+
width: number;
|
|
1540
|
+
height: number;
|
|
1541
|
+
renderAtoms: AITableRenderAtom[];
|
|
1542
|
+
};
|
|
1543
|
+
transformAtomXYToCellXY(cellCoordinate: {
|
|
1544
|
+
cellX: number;
|
|
1545
|
+
cellY: number;
|
|
1546
|
+
}, atomXY: AITableRenderAtom): AITableRenderAtom;
|
|
1547
|
+
getTextAtom(str: string, textMaxTextWidth: number | undefined, fontSize: number): {
|
|
1548
|
+
type: AITableRenderAtomType;
|
|
1549
|
+
x: number;
|
|
1550
|
+
y: number;
|
|
1551
|
+
width: number;
|
|
1552
|
+
height: number;
|
|
1553
|
+
text: string;
|
|
1554
|
+
textWidth: number;
|
|
1555
|
+
textMaxTextWidth: number | undefined;
|
|
1556
|
+
fontSize: number;
|
|
1557
|
+
fillStyle: string;
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* 处理和渲染表格单元格的内容
|
|
1563
|
+
*/
|
|
1564
|
+
declare class CellDrawer extends Drawer {
|
|
1565
|
+
initStyle(field: AITableField, styleProps: {
|
|
1566
|
+
fontWeight?: any;
|
|
1567
|
+
}): void | null;
|
|
1568
|
+
renderCell(render: AITableRender, ctx: CanvasRenderingContext2D | undefined): any;
|
|
1569
|
+
private renderCellCheckbox;
|
|
1570
|
+
private renderCellText;
|
|
1571
|
+
private renderCellSelect;
|
|
1572
|
+
private getValidSelectedValue;
|
|
1573
|
+
private renderCellMultiSelect;
|
|
1574
|
+
renderAtoms(ctx: any, position: {
|
|
1575
|
+
x: number;
|
|
1576
|
+
y: number;
|
|
1577
|
+
}, cellLayout: CellBaseLayout): void;
|
|
1578
|
+
private renderSingleSelectCell;
|
|
1579
|
+
private renderCellDate;
|
|
1580
|
+
private renderCellRate;
|
|
1581
|
+
private renderCellProgress;
|
|
1582
|
+
private renderCellMember;
|
|
1583
|
+
private renderCellAttachment;
|
|
1584
|
+
}
|
|
1585
|
+
declare const cellDrawer: CellDrawer;
|
|
1586
|
+
|
|
1587
|
+
declare const createActiveCellBorder: (config: AITableCellsConfig) => {
|
|
1588
|
+
activeCellBorder: RectConfig | null;
|
|
1589
|
+
frozenActiveCellBorder: RectConfig | null;
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* 绘制单元格内容的函数
|
|
1594
|
+
* 利用 Canvas API 绘制每个单元格的背景颜色、文本以及其他可能的样式。这个函数通常用于自定义表格渲染,尤其是在处理大量数据时,通过直接操作 Canvas 来提高渲染性能
|
|
1595
|
+
* @param config
|
|
1596
|
+
*/
|
|
1597
|
+
declare const createCells: (config: AITableCellsDrawerConfig) => void;
|
|
1598
|
+
declare const isActiveCell: (cell: AIRecordFieldIdPath, aiTable: AITable) => boolean;
|
|
1599
|
+
declare const isSelectedField: (fieldId: string, aiTable: AITable) => boolean;
|
|
1600
|
+
|
|
1601
|
+
declare class AITableRenderer {
|
|
1602
|
+
config: _angular_core.InputSignal<AITableRendererConfig>;
|
|
1603
|
+
koMousemove: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1604
|
+
koMousedown: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1605
|
+
koMouseup: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1606
|
+
koContextmenu: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1607
|
+
koWheel: _angular_core.OutputEmitterRef<KoEventObject<WheelEvent>>;
|
|
1608
|
+
koClick: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1609
|
+
koDblclick: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1610
|
+
koMouseleave: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1611
|
+
onScrollPosition: _angular_core.OutputEmitterRef<{
|
|
1612
|
+
scrollX: number;
|
|
1613
|
+
scrollY: number;
|
|
1614
|
+
}>;
|
|
1615
|
+
isHoverStatContainer: _angular_core.WritableSignal<boolean>;
|
|
1616
|
+
fields: _angular_core.Signal<_ai_table_utils.AITableFields>;
|
|
1617
|
+
readonly: _angular_core.Signal<boolean>;
|
|
1618
|
+
hiddenIndexColumn: _angular_core.Signal<boolean | undefined>;
|
|
1619
|
+
coordinate: _angular_core.Signal<_ai_table_grid.Coordinate>;
|
|
1620
|
+
containerWidth: _angular_core.Signal<number>;
|
|
1621
|
+
containerHeight: _angular_core.Signal<number>;
|
|
1622
|
+
gridContainerHeight: _angular_core.Signal<number>;
|
|
1623
|
+
scrollState: _angular_core.Signal<_ai_table_grid.AITableScrollState>;
|
|
1624
|
+
visibleRangeInfo: _angular_core.Signal<{
|
|
1625
|
+
rowStartIndex: number;
|
|
1626
|
+
rowStopIndex: number;
|
|
1627
|
+
columnStartIndex: number;
|
|
1628
|
+
columnStopIndex: number;
|
|
1629
|
+
}>;
|
|
1630
|
+
frozenAreaWidth: _angular_core.Signal<number>;
|
|
1631
|
+
lastColumnWidth: _angular_core.Signal<number>;
|
|
1632
|
+
lastColumnOffset: _angular_core.Signal<number>;
|
|
1633
|
+
cellGroupClipWidth: _angular_core.Signal<number>;
|
|
1634
|
+
stageConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1635
|
+
gridGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1636
|
+
statGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1637
|
+
scrollTotalHeight: _angular_core.Signal<number>;
|
|
1638
|
+
scrollTotalWidth: _angular_core.Signal<number>;
|
|
1639
|
+
frozenCommonGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1640
|
+
commonGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1641
|
+
statCommonGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1642
|
+
attachGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1643
|
+
frozenAttachGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1644
|
+
frozenCoverAttachGroupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1645
|
+
offsetYConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1646
|
+
offsetXConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1647
|
+
offsetConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1648
|
+
columnFrozenHeadFieldConfig: _angular_core.Signal<{
|
|
1649
|
+
aiTable: AITable;
|
|
1650
|
+
actions: _ai_table_grid.AITableActions;
|
|
1651
|
+
coordinate: _ai_table_grid.Coordinate;
|
|
1652
|
+
fields: _ai_table_utils.AITableFields;
|
|
1653
|
+
columnStartIndex: number;
|
|
1654
|
+
columnStopIndex: number;
|
|
1655
|
+
pointPosition: _ai_table_grid.AITablePointPosition;
|
|
1656
|
+
readonly: boolean;
|
|
1657
|
+
maxFields: number | undefined;
|
|
1658
|
+
}>;
|
|
1659
|
+
columnHeadFieldConfig: _angular_core.Signal<{
|
|
1660
|
+
aiTable: AITable;
|
|
1661
|
+
actions: _ai_table_grid.AITableActions;
|
|
1662
|
+
coordinate: _ai_table_grid.Coordinate;
|
|
1663
|
+
fields: _ai_table_utils.AITableFields;
|
|
1664
|
+
columnStartIndex: number;
|
|
1665
|
+
columnStopIndex: number;
|
|
1666
|
+
pointPosition: _ai_table_grid.AITablePointPosition;
|
|
1667
|
+
readonly: boolean;
|
|
1668
|
+
maxFields: number | undefined;
|
|
1669
|
+
}>;
|
|
1670
|
+
columnFieldStatsConfig: _angular_core.Signal<AITableFieldStatsConfig>;
|
|
1671
|
+
xIsScroll: _angular_core.Signal<boolean>;
|
|
1672
|
+
statShadowConfig: _angular_core.Signal<NodeConfig>;
|
|
1673
|
+
fieldHeadShadowConfig: _angular_core.Signal<NodeConfig>;
|
|
1674
|
+
columnFieldStatsBgConfig: _angular_core.Signal<AITableBackgroundConfig>;
|
|
1675
|
+
columnFrozenFieldStatsConfig: _angular_core.Signal<AITableFieldStatsConfig>;
|
|
1676
|
+
cellsConfig: _angular_core.Signal<AITableCellsConfig>;
|
|
1677
|
+
expandRecordConfig: _angular_core.Signal<{
|
|
1678
|
+
aiTable: AITable;
|
|
1679
|
+
coordinate: _ai_table_grid.Coordinate;
|
|
1680
|
+
rowStartIndex: number;
|
|
1681
|
+
rowStopIndex: number;
|
|
1682
|
+
}>;
|
|
1683
|
+
readonly fillHandleConfig: _angular_core.Signal<AITableFillHandleConfig>;
|
|
1684
|
+
readonly isLastSelectedCellInFrozenColumn: _angular_core.Signal<boolean>;
|
|
1685
|
+
activeCellBorderConfig: _angular_core.Signal<{
|
|
1686
|
+
activeCellBorder: konva_lib_shapes_Rect.RectConfig | null;
|
|
1687
|
+
frozenActiveCellBorder: konva_lib_shapes_Rect.RectConfig | null;
|
|
1688
|
+
}>;
|
|
1689
|
+
showExpandCellBorder: _angular_core.Signal<{
|
|
1690
|
+
expandCellBorder: boolean;
|
|
1691
|
+
frozenExpandCellBorder: boolean;
|
|
1692
|
+
}>;
|
|
1693
|
+
stageMousemove(e: KoEventObject<MouseEvent>): void;
|
|
1694
|
+
stageMousedown(e: KoEventObject<MouseEvent>): void;
|
|
1695
|
+
stageMouseup(e: KoEventObject<MouseEvent>): void;
|
|
1696
|
+
stageContextmenu(e: KoEventObject<MouseEvent>): void;
|
|
1697
|
+
stageClick(e: KoEventObject<MouseEvent>): void;
|
|
1698
|
+
stageDblclick(e: KoEventObject<MouseEvent>): void;
|
|
1699
|
+
stageMouseleave(e: KoEventObject<MouseEvent>): void;
|
|
1700
|
+
stageWheel(e: KoEventObject<WheelEvent>): void;
|
|
1701
|
+
onStatContainerHover(isHover: boolean): void;
|
|
1702
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableRenderer, never>;
|
|
1703
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableRenderer, "ai-table-renderer", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "koMousemove": "koMousemove"; "koMousedown": "koMousedown"; "koMouseup": "koMouseup"; "koContextmenu": "koContextmenu"; "koWheel": "koWheel"; "koClick": "koClick"; "koDblclick": "koDblclick"; "koMouseleave": "koMouseleave"; "onScrollPosition": "onScrollPosition"; }, never, ["*"], true, never>;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
declare class AITableAddField {
|
|
1707
|
+
config: _angular_core.InputSignal<AITableAddFieldConfig>;
|
|
1708
|
+
btnWidth: number;
|
|
1709
|
+
x: _angular_core.Signal<number>;
|
|
1710
|
+
rectConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1711
|
+
addIconConfig: _angular_core.Signal<AITableIconConfig>;
|
|
1712
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableAddField, never>;
|
|
1713
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableAddField, "ai-table-add-field", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
declare class AITableCells {
|
|
1717
|
+
config: _angular_core.InputSignal<AITableCellsConfig>;
|
|
1718
|
+
cellsShapeConfig: _angular_core.Signal<{
|
|
1719
|
+
listening: boolean;
|
|
1720
|
+
perfectDrawEnabled: boolean;
|
|
1721
|
+
sceneFunc: (ctx: Konva.Context) => void;
|
|
1722
|
+
}>;
|
|
1723
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCells, never>;
|
|
1724
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCells, "ai-table-cells", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
declare class AITableFieldHead {
|
|
1728
|
+
config: _angular_core.InputSignal<AITableFieldHeadConfig>;
|
|
1729
|
+
textOffset: number;
|
|
1730
|
+
textMeasure: {
|
|
1731
|
+
context: CanvasRenderingContext2D | null;
|
|
1732
|
+
measureText: (text: string, maxWidth?: number, maxLineCount?: number) => {
|
|
1733
|
+
width: number;
|
|
1734
|
+
height: number;
|
|
1735
|
+
lastLineWidth: number;
|
|
1736
|
+
text?: undefined;
|
|
1737
|
+
isOverflow?: undefined;
|
|
1738
|
+
} | {
|
|
1739
|
+
width: number;
|
|
1740
|
+
height: number;
|
|
1741
|
+
text: string;
|
|
1742
|
+
isOverflow: boolean;
|
|
1743
|
+
lastLineWidth: number;
|
|
1744
|
+
};
|
|
1745
|
+
setFont: (options?: _ai_table_grid.AITableTextMeasureOptions) => void;
|
|
1746
|
+
reset: () => void;
|
|
1747
|
+
};
|
|
1748
|
+
availableTextWidth: _angular_core.Signal<number>;
|
|
1749
|
+
textData: _angular_core.Signal<{
|
|
1750
|
+
width: number;
|
|
1751
|
+
height: number;
|
|
1752
|
+
isOverflow: boolean | undefined;
|
|
1753
|
+
}>;
|
|
1754
|
+
groupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1755
|
+
bgConfig: _angular_core.Signal<{
|
|
1756
|
+
x: number;
|
|
1757
|
+
y: number;
|
|
1758
|
+
name: string;
|
|
1759
|
+
width: number;
|
|
1760
|
+
height: number;
|
|
1761
|
+
fill: string;
|
|
1762
|
+
stroke: string;
|
|
1763
|
+
strokeWidth: number;
|
|
1764
|
+
opacity: number;
|
|
1765
|
+
}>;
|
|
1766
|
+
fieldIconConfig: _angular_core.Signal<{
|
|
1767
|
+
field: _ai_table_utils.AITableField;
|
|
1768
|
+
x: number;
|
|
1769
|
+
y: number;
|
|
1770
|
+
width: number;
|
|
1771
|
+
height: number;
|
|
1772
|
+
fill: string;
|
|
1773
|
+
path: string;
|
|
1774
|
+
}>;
|
|
1775
|
+
textConfig: _angular_core.Signal<{
|
|
1776
|
+
x: number;
|
|
1777
|
+
y: undefined;
|
|
1778
|
+
width: number;
|
|
1779
|
+
height: number;
|
|
1780
|
+
text: string;
|
|
1781
|
+
lineHeight: number;
|
|
1782
|
+
}>;
|
|
1783
|
+
moreIconConfig: _angular_core.Signal<{
|
|
1784
|
+
name: string;
|
|
1785
|
+
x: number;
|
|
1786
|
+
y: number;
|
|
1787
|
+
data: string;
|
|
1788
|
+
fill: string;
|
|
1789
|
+
background: string;
|
|
1790
|
+
backgroundWidth: number;
|
|
1791
|
+
backgroundHeight: number;
|
|
1792
|
+
cornerRadius: number;
|
|
1793
|
+
}>;
|
|
1794
|
+
fieldOpacityLineConfig: _angular_core.Signal<{
|
|
1795
|
+
x: number;
|
|
1796
|
+
y: number;
|
|
1797
|
+
name: string;
|
|
1798
|
+
points: number[];
|
|
1799
|
+
stroke: string;
|
|
1800
|
+
strokeWidth: number;
|
|
1801
|
+
}>;
|
|
1802
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFieldHead, never>;
|
|
1803
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFieldHead, "ai-table-field-head", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
declare class AITableFieldIcon {
|
|
1807
|
+
config: _angular_core.InputSignal<AITableFieldTypeIconConfig>;
|
|
1808
|
+
iconConfig: _angular_core.Signal<{
|
|
1809
|
+
x: number | undefined;
|
|
1810
|
+
y: number | undefined;
|
|
1811
|
+
size: number | undefined;
|
|
1812
|
+
backgroundHeight: number | undefined;
|
|
1813
|
+
listening: boolean;
|
|
1814
|
+
data: string | undefined;
|
|
1815
|
+
fill: string | undefined;
|
|
1816
|
+
}>;
|
|
1817
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFieldIcon, never>;
|
|
1818
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFieldIcon, "ai-table-field-icon", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
declare class AITableFrozenCells {
|
|
1822
|
+
config: _angular_core.InputSignal<AITableCellsConfig>;
|
|
1823
|
+
frozenCellsConfig: _angular_core.Signal<{
|
|
1824
|
+
listening: boolean;
|
|
1825
|
+
perfectDrawEnabled: boolean;
|
|
1826
|
+
sceneFunc: (ctx: Konva.Context) => void;
|
|
1827
|
+
}>;
|
|
1828
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFrozenCells, never>;
|
|
1829
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFrozenCells, "ai-table-frozen-cells", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
declare class AITableFrozenColumnHeads {
|
|
1833
|
+
config: _angular_core.InputSignal<AITableColumnHeadsConfig>;
|
|
1834
|
+
textMeasure: {
|
|
1835
|
+
context: CanvasRenderingContext2D | null;
|
|
1836
|
+
measureText: (text: string, maxWidth?: number, maxLineCount?: number) => {
|
|
1837
|
+
width: number;
|
|
1838
|
+
height: number;
|
|
1839
|
+
lastLineWidth: number;
|
|
1840
|
+
text?: undefined;
|
|
1841
|
+
isOverflow?: undefined;
|
|
1842
|
+
} | {
|
|
1843
|
+
width: number;
|
|
1844
|
+
height: number;
|
|
1845
|
+
text: string;
|
|
1846
|
+
isOverflow: boolean;
|
|
1847
|
+
lastLineWidth: number;
|
|
1848
|
+
};
|
|
1849
|
+
setFont: (options?: _ai_table_grid.AITableTextMeasureOptions) => void;
|
|
1850
|
+
reset: () => void;
|
|
1851
|
+
};
|
|
1852
|
+
coordinate: _angular_core.Signal<_ai_table_grid.Coordinate | null>;
|
|
1853
|
+
hiddenIndexColumn: _angular_core.Signal<boolean | undefined>;
|
|
1854
|
+
context: _angular_core.Signal<_ai_table_grid.RendererContext | null | undefined>;
|
|
1855
|
+
readonly: _angular_core.Signal<boolean>;
|
|
1856
|
+
isChecked: _angular_core.Signal<boolean>;
|
|
1857
|
+
fieldHeadHeight: _angular_core.Signal<44 | 0>;
|
|
1858
|
+
headConfigs: _angular_core.Signal<_ai_table_grid.AITableFieldHeadConfig[]>;
|
|
1859
|
+
dragHeadBgConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1860
|
+
numberHeadBgConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1861
|
+
topLineConfig: _angular_core.Signal<{
|
|
1862
|
+
points: number[];
|
|
1863
|
+
x?: undefined;
|
|
1864
|
+
y?: undefined;
|
|
1865
|
+
stroke?: undefined;
|
|
1866
|
+
strokeWidth?: undefined;
|
|
1867
|
+
listening?: undefined;
|
|
1868
|
+
} | {
|
|
1869
|
+
x: number;
|
|
1870
|
+
y: number;
|
|
1871
|
+
points: number[];
|
|
1872
|
+
stroke: string;
|
|
1873
|
+
strokeWidth: number;
|
|
1874
|
+
listening: boolean;
|
|
1875
|
+
}>;
|
|
1876
|
+
bottomLineConfig: _angular_core.Signal<{
|
|
1877
|
+
points: number[];
|
|
1878
|
+
x?: undefined;
|
|
1879
|
+
y?: undefined;
|
|
1880
|
+
stroke?: undefined;
|
|
1881
|
+
strokeWidth?: undefined;
|
|
1882
|
+
listening?: undefined;
|
|
1883
|
+
} | {
|
|
1884
|
+
x: number;
|
|
1885
|
+
y: number;
|
|
1886
|
+
points: number[];
|
|
1887
|
+
stroke: string;
|
|
1888
|
+
strokeWidth: number;
|
|
1889
|
+
listening: boolean;
|
|
1890
|
+
}>;
|
|
1891
|
+
iconConfig: _angular_core.Signal<{
|
|
1892
|
+
name: string;
|
|
1893
|
+
x: number;
|
|
1894
|
+
y: number;
|
|
1895
|
+
type: AITableCheckType;
|
|
1896
|
+
fill: string;
|
|
1897
|
+
}>;
|
|
1898
|
+
textConfig: _angular_core.Signal<{
|
|
1899
|
+
x: number;
|
|
1900
|
+
y: number;
|
|
1901
|
+
width: number;
|
|
1902
|
+
height: number;
|
|
1903
|
+
text: string;
|
|
1904
|
+
lineHeight: number;
|
|
1905
|
+
}>;
|
|
1906
|
+
headBgConfig: _angular_core.Signal<{
|
|
1907
|
+
width: number;
|
|
1908
|
+
height: number;
|
|
1909
|
+
x?: undefined;
|
|
1910
|
+
y?: undefined;
|
|
1911
|
+
stroke?: undefined;
|
|
1912
|
+
strokeWidth?: undefined;
|
|
1913
|
+
fill?: undefined;
|
|
1914
|
+
listening?: undefined;
|
|
1915
|
+
zIndex?: undefined;
|
|
1916
|
+
} | {
|
|
1917
|
+
x: number;
|
|
1918
|
+
y: number;
|
|
1919
|
+
width: number;
|
|
1920
|
+
height: number;
|
|
1921
|
+
stroke: string;
|
|
1922
|
+
strokeWidth: number;
|
|
1923
|
+
fill: string;
|
|
1924
|
+
listening: boolean;
|
|
1925
|
+
zIndex: number;
|
|
1926
|
+
}>;
|
|
1927
|
+
cellLinesConfig: _angular_core.Signal<{
|
|
1928
|
+
x: number;
|
|
1929
|
+
y: number;
|
|
1930
|
+
points: number[];
|
|
1931
|
+
stroke: string;
|
|
1932
|
+
strokeWidth: number;
|
|
1933
|
+
listening: boolean;
|
|
1934
|
+
zIndex: number;
|
|
1935
|
+
}[]>;
|
|
1936
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFrozenColumnHeads, never>;
|
|
1937
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFrozenColumnHeads, "ai-table-frozen-column-heads", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
declare class AITableFrozenPlaceholderCells {
|
|
1941
|
+
config: _angular_core.InputSignal<AITableCellsConfig>;
|
|
1942
|
+
frozenPlaceHolderCellsConfig: _angular_core.Signal<{
|
|
1943
|
+
key: string;
|
|
1944
|
+
name: string;
|
|
1945
|
+
x: number;
|
|
1946
|
+
y: number;
|
|
1947
|
+
width: number;
|
|
1948
|
+
height: number;
|
|
1949
|
+
fill: string;
|
|
1950
|
+
strokeEnabled: boolean;
|
|
1951
|
+
hitStrokeWidth: number;
|
|
1952
|
+
transformsEnabled: string;
|
|
1953
|
+
perfectDrawEnabled: boolean;
|
|
1954
|
+
shadowEnabled: boolean;
|
|
1955
|
+
}[]>;
|
|
1956
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFrozenPlaceholderCells, never>;
|
|
1957
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFrozenPlaceholderCells, "ai-table-frozen-placeholder-cells", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
declare class AITableColumnHeads {
|
|
1961
|
+
config: _angular_core.InputSignal<AITableColumnHeadsConfig>;
|
|
1962
|
+
headConfigs: _angular_core.Signal<_ai_table_grid.AITableFieldHeadConfig[]>;
|
|
1963
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableColumnHeads, never>;
|
|
1964
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableColumnHeads, "ai-table-column-heads", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
declare class AITableHoverRowHeads {
|
|
1968
|
+
config: _angular_core.InputSignal<AITableRowHeadsConfig>;
|
|
1969
|
+
pointPosition: _angular_core.Signal<AITablePointPosition>;
|
|
1970
|
+
headConfigs: _angular_core.Signal<any[]>;
|
|
1971
|
+
readonly: _angular_core.Signal<boolean>;
|
|
1972
|
+
hiddenRowDrag: _angular_core.Signal<boolean | undefined>;
|
|
1973
|
+
createHoverRowHeads: (pointPosition: AITablePointPosition) => any[];
|
|
1974
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableHoverRowHeads, never>;
|
|
1975
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableHoverRowHeads, "ai-table-hover-row-heads", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
declare class AITableIcon {
|
|
1979
|
+
config: _angular_core.InputSignal<AITableIconConfig>;
|
|
1980
|
+
koClick: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
1981
|
+
groupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
1982
|
+
squareShapeConfig: _angular_core.Signal<{
|
|
1983
|
+
name: string | undefined;
|
|
1984
|
+
width: any;
|
|
1985
|
+
height: any;
|
|
1986
|
+
strokeWidth: number;
|
|
1987
|
+
fill: any;
|
|
1988
|
+
cornerRadius: any;
|
|
1989
|
+
opacity: number | undefined;
|
|
1990
|
+
}>;
|
|
1991
|
+
iconConfig: _angular_core.Signal<{
|
|
1992
|
+
x: any;
|
|
1993
|
+
y: any;
|
|
1994
|
+
data: any;
|
|
1995
|
+
width: number;
|
|
1996
|
+
height: number;
|
|
1997
|
+
fill: string | CanvasGradient;
|
|
1998
|
+
offsetX: number | undefined;
|
|
1999
|
+
offsetY: number | undefined;
|
|
2000
|
+
scaleX: number | undefined;
|
|
2001
|
+
scaleY: number | undefined;
|
|
2002
|
+
rotation: number | undefined;
|
|
2003
|
+
stroke: string | CanvasGradient | undefined;
|
|
2004
|
+
strokeWidth: number;
|
|
2005
|
+
transformsEnabled: any;
|
|
2006
|
+
perfectDrawEnabled: boolean;
|
|
2007
|
+
listening: boolean;
|
|
2008
|
+
}>;
|
|
2009
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableIcon, never>;
|
|
2010
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableIcon, "ai-table-icon", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "koClick": "koClick"; }, never, never, true, never>;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
declare class AITableOtherRows {
|
|
2014
|
+
config: _angular_core.InputSignal<AITableRowHeadsConfig>;
|
|
2015
|
+
AITableRowType: typeof AITableRowType;
|
|
2016
|
+
otherConfigs: _angular_core.Signal<{
|
|
2017
|
+
type: AITableRowType.add;
|
|
2018
|
+
addBtnConfig: {
|
|
2019
|
+
key: string;
|
|
2020
|
+
y: number;
|
|
2021
|
+
name: string;
|
|
2022
|
+
width: number;
|
|
2023
|
+
height: number;
|
|
2024
|
+
fill: string;
|
|
2025
|
+
};
|
|
2026
|
+
}[]>;
|
|
2027
|
+
createOtherRows: (config: AITableRowHeadsConfig) => {
|
|
2028
|
+
type: AITableRowType.add;
|
|
2029
|
+
addBtnConfig: {
|
|
2030
|
+
key: string;
|
|
2031
|
+
y: number;
|
|
2032
|
+
name: string;
|
|
2033
|
+
width: number;
|
|
2034
|
+
height: number;
|
|
2035
|
+
fill: string;
|
|
2036
|
+
};
|
|
2037
|
+
}[];
|
|
2038
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableOtherRows, never>;
|
|
2039
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableOtherRows, "ai-table-other-rows", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
declare class AITablePlaceholderCells {
|
|
2043
|
+
config: _angular_core.InputSignal<AITableCellsConfig>;
|
|
2044
|
+
frozenPlaceHolderCellsConfig: _angular_core.Signal<{
|
|
2045
|
+
key: string;
|
|
2046
|
+
name: string;
|
|
2047
|
+
x: number;
|
|
2048
|
+
y: number;
|
|
2049
|
+
width: number;
|
|
2050
|
+
height: number;
|
|
2051
|
+
fill: string;
|
|
2052
|
+
strokeEnabled: boolean;
|
|
2053
|
+
hitStrokeWidth: number;
|
|
2054
|
+
transformsEnabled: string;
|
|
2055
|
+
perfectDrawEnabled: boolean;
|
|
2056
|
+
shadowEnabled: boolean;
|
|
2057
|
+
}[]>;
|
|
2058
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITablePlaceholderCells, never>;
|
|
2059
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITablePlaceholderCells, "ai-table-placeholder-cells", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
declare class AITableTextComponent {
|
|
2063
|
+
config: _angular_core.InputSignal<konva_lib_Shape.ShapeConfig>;
|
|
2064
|
+
koClick: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2065
|
+
koMouseMove: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2066
|
+
textConfig: _angular_core.Signal<TextConfig>;
|
|
2067
|
+
onClick(e: KoEventObject<MouseEvent>): void;
|
|
2068
|
+
onMousemove(e: KoEventObject<MouseEvent>): void;
|
|
2069
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableTextComponent, never>;
|
|
2070
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableTextComponent, "ai-table-text", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "koClick": "koClick"; "koMouseMove": "koMouseMove"; }, never, never, true, never>;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
declare class CoverCellBase {
|
|
2074
|
+
static fieldType: AITableFieldType | string;
|
|
2075
|
+
config: _angular_core.InputSignal<AITableCoverCellConfig | undefined>;
|
|
2076
|
+
onlyDisplayBorder: _angular_core.InputSignal<boolean>;
|
|
2077
|
+
isExpand: _angular_core.Signal<boolean>;
|
|
2078
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoverCellBase, never>;
|
|
2079
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CoverCellBase, "ai-table-cover-cell-base", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "onlyDisplayBorder": { "alias": "onlyDisplayBorder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
declare class AITableCellLink extends CoverCellBase {
|
|
2083
|
+
static fieldType: AITableFieldType;
|
|
2084
|
+
textOffset: number;
|
|
2085
|
+
render: _angular_core.Signal<AITableRender<_ai_table_utils.AITableReferences> | undefined>;
|
|
2086
|
+
transformValue: _angular_core.Signal<{
|
|
2087
|
+
text: string;
|
|
2088
|
+
url: string;
|
|
2089
|
+
}>;
|
|
2090
|
+
showLink: _angular_core.Signal<boolean>;
|
|
2091
|
+
textConfig: _angular_core.Signal<TextConfig | undefined>;
|
|
2092
|
+
linkClick(e: KoEventObject<MouseEvent>): void;
|
|
2093
|
+
linkMouseMove(e: KoEventObject<MouseEvent>): void;
|
|
2094
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellLink, never>;
|
|
2095
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellLink, "ai-table-link", never, {}, {}, never, never, true, never>;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
declare class AITableCellAttachment extends CoverCellBase {
|
|
2099
|
+
static fieldType: AITableFieldType;
|
|
2100
|
+
attachments: _angular_core.Signal<AITableAttachmentConfig[]>;
|
|
2101
|
+
iconConfig: _angular_core.Signal<AITableActionIconConfig>;
|
|
2102
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellAttachment, never>;
|
|
2103
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellAttachment, "ai-table-attachments", never, {}, {}, never, never, true, never>;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
declare class AITableCellRichText extends CoverCellBase {
|
|
2107
|
+
static fieldType: AITableFieldType;
|
|
2108
|
+
textConfig: _angular_core.Signal<TextConfig | undefined>;
|
|
2109
|
+
iconConfig: _angular_core.Signal<AITableActionIconConfig>;
|
|
2110
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellRichText, never>;
|
|
2111
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellRichText, "ai-table-rich-text", never, {}, {}, never, never, true, never>;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
declare class AITableCellRate extends CoverCellBase {
|
|
2115
|
+
static fieldType: AITableFieldType;
|
|
2116
|
+
private pointerX;
|
|
2117
|
+
private pointerY;
|
|
2118
|
+
private resetStatus;
|
|
2119
|
+
readonly readonly: _angular_core.Signal<boolean | undefined>;
|
|
2120
|
+
readonly whiteBgConfig: _angular_core.Signal<{
|
|
2121
|
+
x: number;
|
|
2122
|
+
y: number;
|
|
2123
|
+
width: number;
|
|
2124
|
+
height: number;
|
|
2125
|
+
fill: string | null;
|
|
2126
|
+
stroke: string | null;
|
|
2127
|
+
zIndex: number;
|
|
2128
|
+
name: string;
|
|
2129
|
+
}>;
|
|
2130
|
+
readonly starConfigs: _angular_core.Signal<{
|
|
2131
|
+
x: number;
|
|
2132
|
+
y: number;
|
|
2133
|
+
size: number;
|
|
2134
|
+
data: string;
|
|
2135
|
+
fill: string;
|
|
2136
|
+
scaleX: number;
|
|
2137
|
+
scaleY: number;
|
|
2138
|
+
name: string;
|
|
2139
|
+
}[]>;
|
|
2140
|
+
koMousemove(e: KoEventObject<MouseEvent>): void;
|
|
2141
|
+
koClick(e: KoEventObject<MouseEvent>, index: number): void;
|
|
2142
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellRate, never>;
|
|
2143
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellRate, "ai-table-rate", never, {}, {}, never, never, true, never>;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
declare class AITableCellProgress extends CoverCellBase {
|
|
2147
|
+
static fieldType: AITableFieldType;
|
|
2148
|
+
readonly readonly: _angular_core.Signal<boolean | undefined>;
|
|
2149
|
+
private dragPointerX;
|
|
2150
|
+
private railWidth;
|
|
2151
|
+
private trackWidth;
|
|
2152
|
+
private pointerWidth;
|
|
2153
|
+
private progressOffsetY;
|
|
2154
|
+
private dragProgressValue;
|
|
2155
|
+
private progressValue;
|
|
2156
|
+
readonly whiteBgConfig: _angular_core.Signal<{
|
|
2157
|
+
x: number;
|
|
2158
|
+
y: number;
|
|
2159
|
+
width: number;
|
|
2160
|
+
height: number;
|
|
2161
|
+
fill: string | null;
|
|
2162
|
+
stroke: string | null;
|
|
2163
|
+
name: string;
|
|
2164
|
+
}>;
|
|
2165
|
+
readonly railConfig: _angular_core.Signal<{
|
|
2166
|
+
x: number;
|
|
2167
|
+
y: number;
|
|
2168
|
+
width: number;
|
|
2169
|
+
height: number;
|
|
2170
|
+
cornerRadius: number;
|
|
2171
|
+
fill: string;
|
|
2172
|
+
name: string;
|
|
2173
|
+
}>;
|
|
2174
|
+
readonly trackConfig: _angular_core.Signal<{
|
|
2175
|
+
x: number;
|
|
2176
|
+
y: number;
|
|
2177
|
+
width: number;
|
|
2178
|
+
height: number;
|
|
2179
|
+
cornerRadius: number;
|
|
2180
|
+
fill: string;
|
|
2181
|
+
name: string;
|
|
2182
|
+
}>;
|
|
2183
|
+
readonly pointerConfig: _angular_core.Signal<{
|
|
2184
|
+
x: number;
|
|
2185
|
+
y: number;
|
|
2186
|
+
width: number;
|
|
2187
|
+
height: number;
|
|
2188
|
+
fill: string;
|
|
2189
|
+
stroke: string;
|
|
2190
|
+
strokeWidth: number;
|
|
2191
|
+
cornerRadius: number;
|
|
2192
|
+
opacity: number;
|
|
2193
|
+
draggable: boolean;
|
|
2194
|
+
dragBoundFunc: (pos: {
|
|
2195
|
+
x: number;
|
|
2196
|
+
y: number;
|
|
2197
|
+
}) => {
|
|
2198
|
+
x: number;
|
|
2199
|
+
y: number;
|
|
2200
|
+
};
|
|
2201
|
+
name: string;
|
|
2202
|
+
}>;
|
|
2203
|
+
readonly textConfig: _angular_core.Signal<{
|
|
2204
|
+
x: number;
|
|
2205
|
+
y: number;
|
|
2206
|
+
text: string;
|
|
2207
|
+
fill: string;
|
|
2208
|
+
fontFamily: string;
|
|
2209
|
+
fontSize: number;
|
|
2210
|
+
name: string;
|
|
2211
|
+
}>;
|
|
2212
|
+
private calculatePercentage;
|
|
2213
|
+
koClick(e: KoEventObject<MouseEvent>): void;
|
|
2214
|
+
pointerDragstart(e: KoEventObject<MouseEvent>): void;
|
|
2215
|
+
pointerDragmove(e: KoEventObject<MouseEvent>): void;
|
|
2216
|
+
pointerDragend(e: KoEventObject<MouseEvent>): void;
|
|
2217
|
+
private updateProgressValue;
|
|
2218
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellProgress, never>;
|
|
2219
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellProgress, "ai-table-progress", never, {}, {}, never, never, true, never>;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
declare class AITableCellCheckbox extends CoverCellBase {
|
|
2223
|
+
static fieldType: AITableFieldType;
|
|
2224
|
+
isChecked: _angular_core.Signal<boolean>;
|
|
2225
|
+
checkbox: _angular_core.Signal<any>;
|
|
2226
|
+
switchChecked(): void;
|
|
2227
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellCheckbox, never>;
|
|
2228
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellCheckbox, "ai-table-checkbox", never, {}, {}, never, never, true, never>;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
interface ScrollableGroupConfig {
|
|
2232
|
+
width: number;
|
|
2233
|
+
height: number;
|
|
2234
|
+
contentWidth: number;
|
|
2235
|
+
contentHeight: number;
|
|
2236
|
+
x?: number;
|
|
2237
|
+
y?: number;
|
|
2238
|
+
scrollbarSize?: number;
|
|
2239
|
+
scrollbarColor?: string;
|
|
2240
|
+
scrollbarOpacity?: number;
|
|
2241
|
+
scrollbarTrackColor?: string;
|
|
2242
|
+
verticalScrollbar?: boolean;
|
|
2243
|
+
horizontalScrollbar?: boolean;
|
|
2244
|
+
contentNotScrollbar?: boolean;
|
|
2245
|
+
bgName?: string;
|
|
2246
|
+
}
|
|
2247
|
+
declare class AITableScrollableGroup implements AfterViewInit {
|
|
2248
|
+
config: _angular_core.InputSignal<ScrollableGroupConfig>;
|
|
2249
|
+
contentTemplate: _angular_core.InputSignal<KoContainer>;
|
|
2250
|
+
parentContainer: _angular_core.InputSignal<KoContainer | undefined>;
|
|
2251
|
+
scrollPosition: _angular_core.OutputEmitterRef<{
|
|
2252
|
+
scrollX: number;
|
|
2253
|
+
scrollY: number;
|
|
2254
|
+
}>;
|
|
2255
|
+
verticalTrack: KoShape;
|
|
2256
|
+
verticalThumb: KoShape;
|
|
2257
|
+
horizontalTrack: KoShape;
|
|
2258
|
+
contentGroup: KoContainer;
|
|
2259
|
+
rootGroup: KoContainer;
|
|
2260
|
+
private hiddenScrollbarTimer;
|
|
2261
|
+
displayScrollbarTime: _angular_core.WritableSignal<Date | null>;
|
|
2262
|
+
hiddenScrollbar: _angular_core.WritableSignal<boolean>;
|
|
2263
|
+
isHoverScrollbar: _angular_core.WritableSignal<boolean>;
|
|
2264
|
+
scrollX: _angular_core.WritableSignal<number>;
|
|
2265
|
+
scrollY: _angular_core.WritableSignal<number>;
|
|
2266
|
+
constructor();
|
|
2267
|
+
ngAfterViewInit(): void;
|
|
2268
|
+
containerConfig: _angular_core.Signal<{
|
|
2269
|
+
x: number;
|
|
2270
|
+
y: number;
|
|
2271
|
+
width: number;
|
|
2272
|
+
height: number;
|
|
2273
|
+
fill: string;
|
|
2274
|
+
listening: boolean;
|
|
2275
|
+
clipX: number;
|
|
2276
|
+
clipY: number;
|
|
2277
|
+
clipWidth: number;
|
|
2278
|
+
clipHeight: number;
|
|
2279
|
+
name: string;
|
|
2280
|
+
}>;
|
|
2281
|
+
bgConfig: _angular_core.Signal<konva_lib_Node.NodeConfig | konva_lib_Container.ContainerConfig | konva_lib_Stage.StageConfig | konva_lib_Layer.LayerConfig | konva_lib_Group.GroupConfig | konva_lib_Shape.ShapeConfig | konva_lib_shapes_Line.LineConfig | konva_lib_shapes_Circle.CircleConfig | konva_lib_shapes_Label.LabelConfig | konva_lib_shapes_Label.TagConfig | konva_lib_shapes_Path.PathConfig | RectConfig | konva_lib_shapes_Text.TextConfig | konva_lib_shapes_TextPath.TextPathConfig | konva_lib_shapes_Transformer.TransformerConfig>;
|
|
2282
|
+
contentConfig: _angular_core.Signal<{
|
|
2283
|
+
offsetX: number;
|
|
2284
|
+
offsetY: number;
|
|
2285
|
+
}>;
|
|
2286
|
+
showVerticalScrollbar: _angular_core.Signal<boolean | undefined>;
|
|
2287
|
+
showHorizontalScrollbar: _angular_core.Signal<boolean | undefined>;
|
|
2288
|
+
verticalScrollbarConfig: _angular_core.Signal<{
|
|
2289
|
+
x: number;
|
|
2290
|
+
y: number;
|
|
2291
|
+
width: number;
|
|
2292
|
+
height: number;
|
|
2293
|
+
}>;
|
|
2294
|
+
horizontalScrollbarConfig: _angular_core.Signal<{
|
|
2295
|
+
x: number;
|
|
2296
|
+
y: number;
|
|
2297
|
+
width: number;
|
|
2298
|
+
height: number;
|
|
2299
|
+
}>;
|
|
2300
|
+
verticalTrackConfig: _angular_core.Signal<{
|
|
2301
|
+
x: number;
|
|
2302
|
+
y: number;
|
|
2303
|
+
width: number;
|
|
2304
|
+
height: number;
|
|
2305
|
+
fill: string | undefined;
|
|
2306
|
+
cornerRadius: number;
|
|
2307
|
+
}>;
|
|
2308
|
+
horizontalTrackConfig: _angular_core.Signal<{
|
|
2309
|
+
x: number;
|
|
2310
|
+
y: number;
|
|
2311
|
+
width: number;
|
|
2312
|
+
height: number;
|
|
2313
|
+
fill: string | undefined;
|
|
2314
|
+
cornerRadius: number;
|
|
2315
|
+
}>;
|
|
2316
|
+
verticalThumbMinY: _angular_core.Signal<number>;
|
|
2317
|
+
verticalThumbMaxY: _angular_core.Signal<number>;
|
|
2318
|
+
horizontalThumbMinX: _angular_core.Signal<number>;
|
|
2319
|
+
horizontalThumbMaxX: _angular_core.Signal<number>;
|
|
2320
|
+
verticalThumbHeight: _angular_core.Signal<number>;
|
|
2321
|
+
horizontalThumbWidth: _angular_core.Signal<number>;
|
|
2322
|
+
verticalConfig: _angular_core.Signal<any>;
|
|
2323
|
+
horizontalThumbConfig: _angular_core.Signal<any>;
|
|
2324
|
+
verticalScrollbarHeight: _angular_core.Signal<number>;
|
|
2325
|
+
horizontalScrollbarHeight: _angular_core.Signal<number>;
|
|
2326
|
+
stopBubble(e: KoEventObject<MouseEvent>): void;
|
|
2327
|
+
verticalScrollbarClick(e: KoEventObject<MouseEvent>): void;
|
|
2328
|
+
horizontalScrollbarClick(e: KoEventObject<MouseEvent>): void;
|
|
2329
|
+
setHoverScrollbarStatus(isHover: boolean): void;
|
|
2330
|
+
stageWheel(e: KoEventObject<WheelEvent>): void;
|
|
2331
|
+
scrollByDelta(delta: {
|
|
2332
|
+
deltaX?: number;
|
|
2333
|
+
deltaY?: number;
|
|
2334
|
+
}): void;
|
|
2335
|
+
scrollTo(x: number, y: number): void;
|
|
2336
|
+
scrollToTop(): void;
|
|
2337
|
+
scrollToBottom(): void;
|
|
2338
|
+
scrollToLeft(): void;
|
|
2339
|
+
scrollToRight(): void;
|
|
2340
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableScrollableGroup, never>;
|
|
2341
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableScrollableGroup, "ai-table-scrollable-group", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "contentTemplate": { "alias": "contentTemplate"; "required": true; "isSignal": true; }; "parentContainer": { "alias": "parentContainer"; "required": false; "isSignal": true; }; }, { "scrollPosition": "scrollPosition"; }, never, ["*"], true, never>;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
declare class AITableCellText extends CoverCellBase {
|
|
2345
|
+
static fieldType: AITableFieldType;
|
|
2346
|
+
cellName: _angular_core.Signal<string>;
|
|
2347
|
+
constructor();
|
|
2348
|
+
expandBorderConfig: _angular_core.Signal<{
|
|
2349
|
+
name: string;
|
|
2350
|
+
width: number;
|
|
2351
|
+
height: number;
|
|
2352
|
+
stroke: string;
|
|
2353
|
+
strokeWidth: number;
|
|
2354
|
+
listening: boolean;
|
|
2355
|
+
} | null>;
|
|
2356
|
+
scrollConfig: _angular_core.Signal<ScrollableGroupConfig>;
|
|
2357
|
+
expandTextBounds: _angular_core.Signal<{
|
|
2358
|
+
height: number;
|
|
2359
|
+
width: number;
|
|
2360
|
+
x: number;
|
|
2361
|
+
y: number;
|
|
2362
|
+
}>;
|
|
2363
|
+
textMaxWidth: _angular_core.Signal<number>;
|
|
2364
|
+
textString: _angular_core.Signal<string | undefined>;
|
|
2365
|
+
height: _angular_core.Signal<number>;
|
|
2366
|
+
startY: _angular_core.Signal<number>;
|
|
2367
|
+
expandTextConfig: _angular_core.Signal<TextConfig | undefined>;
|
|
2368
|
+
textConfig: _angular_core.Signal<TextConfig | undefined>;
|
|
2369
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableCellText, never>;
|
|
2370
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableCellText, "ai-table-single-text", never, {}, {}, never, never, true, never>;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
declare class AITableActionIcon {
|
|
2374
|
+
onClick: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2375
|
+
onMousemove: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2376
|
+
onMouseenter: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2377
|
+
onMouseleave: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2378
|
+
config: _angular_core.InputSignal<AITableActionIconConfig>;
|
|
2379
|
+
isHover: _angular_core.WritableSignal<boolean>;
|
|
2380
|
+
groupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
2381
|
+
squareShapeConfig: _angular_core.Signal<{
|
|
2382
|
+
name: string | undefined;
|
|
2383
|
+
width: any;
|
|
2384
|
+
height: any;
|
|
2385
|
+
strokeWidth: number;
|
|
2386
|
+
fill: string;
|
|
2387
|
+
opacity: number;
|
|
2388
|
+
cornerRadius: any;
|
|
2389
|
+
source: any;
|
|
2390
|
+
}>;
|
|
2391
|
+
iconGroupConfig: _angular_core.Signal<{
|
|
2392
|
+
x: any;
|
|
2393
|
+
y: any;
|
|
2394
|
+
offsetX: number | undefined;
|
|
2395
|
+
offsetY: number | undefined;
|
|
2396
|
+
scaleX: number;
|
|
2397
|
+
scaleY: number;
|
|
2398
|
+
}>;
|
|
2399
|
+
iconConfig: _angular_core.Signal<{
|
|
2400
|
+
data: any;
|
|
2401
|
+
width: number;
|
|
2402
|
+
height: number;
|
|
2403
|
+
fill: string | CanvasGradient;
|
|
2404
|
+
offsetX: number | undefined;
|
|
2405
|
+
offsetY: number | undefined;
|
|
2406
|
+
scaleX: number | undefined;
|
|
2407
|
+
scaleY: number | undefined;
|
|
2408
|
+
rotation: number | undefined;
|
|
2409
|
+
stroke: string | CanvasGradient | undefined;
|
|
2410
|
+
strokeWidth: number;
|
|
2411
|
+
transformsEnabled: any;
|
|
2412
|
+
perfectDrawEnabled: boolean;
|
|
2413
|
+
listening: boolean;
|
|
2414
|
+
}>;
|
|
2415
|
+
koClick(e: KoEventObject<MouseEvent>): void;
|
|
2416
|
+
koMousemove(e: KoEventObject<MouseEvent>): void;
|
|
2417
|
+
koMouseenter(e: KoEventObject<MouseEvent>): void;
|
|
2418
|
+
koMouseleave(e: KoEventObject<MouseEvent>): void;
|
|
2419
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableActionIcon, never>;
|
|
2420
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableActionIcon, "ai-table-action-icon", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "onClick": "onClick"; "onMousemove": "onMousemove"; "onMouseenter": "onMouseenter"; "onMouseleave": "onMouseleave"; }, never, never, true, never>;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
declare class AITableExpandRecord {
|
|
2424
|
+
config: _angular_core.InputSignal<AITableExpandRecordConfig>;
|
|
2425
|
+
shouldShowIcon: _angular_core.Signal<boolean>;
|
|
2426
|
+
expandIconConfig: _angular_core.Signal<AITableIconConfig>;
|
|
2427
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableExpandRecord, never>;
|
|
2428
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableExpandRecord, "ai-table-expand-record", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
declare class AITableBackground {
|
|
2432
|
+
config: _angular_core.InputSignal<AITableBackgroundConfig>;
|
|
2433
|
+
isActive: _angular_core.InputSignal<boolean>;
|
|
2434
|
+
koClick: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2435
|
+
hover: _angular_core.OutputEmitterRef<boolean>;
|
|
2436
|
+
koMouseenter: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2437
|
+
koMouseleave: _angular_core.OutputEmitterRef<KoEventObject<MouseEvent>>;
|
|
2438
|
+
groupConfig: _angular_core.Signal<Partial<StageConfig>>;
|
|
2439
|
+
isHover: _angular_core.ModelSignal<boolean>;
|
|
2440
|
+
isShowSpecialBorderConfig: _angular_core.Signal<boolean | "" | 0 | undefined>;
|
|
2441
|
+
borderLinesConfig: _angular_core.Signal<{
|
|
2442
|
+
x: number;
|
|
2443
|
+
y: number;
|
|
2444
|
+
points: number[];
|
|
2445
|
+
stroke: string | undefined;
|
|
2446
|
+
strokeWidth: number | undefined;
|
|
2447
|
+
listening: boolean;
|
|
2448
|
+
}[]>;
|
|
2449
|
+
stroke: _angular_core.Signal<string | undefined>;
|
|
2450
|
+
strokeWidth: _angular_core.Signal<number | undefined>;
|
|
2451
|
+
containerConfig: _angular_core.Signal<{
|
|
2452
|
+
x: number;
|
|
2453
|
+
y: number;
|
|
2454
|
+
}>;
|
|
2455
|
+
bgConfig: _angular_core.Signal<konva_lib_Node.NodeConfig | konva_lib_Container.ContainerConfig | StageConfig | konva_lib_Layer.LayerConfig | konva_lib_Group.GroupConfig | konva_lib_Shape.ShapeConfig | konva_lib_shapes_Line.LineConfig | konva_lib_shapes_Circle.CircleConfig | konva_lib_shapes_Label.LabelConfig | konva_lib_shapes_Label.TagConfig | konva_lib_shapes_Path.PathConfig | konva_lib_shapes_Rect.RectConfig | konva_lib_shapes_Text.TextConfig | konva_lib_shapes_TextPath.TextPathConfig | konva_lib_shapes_Transformer.TransformerConfig>;
|
|
2456
|
+
onClick(e: KoEventObject<MouseEvent>): void;
|
|
2457
|
+
koMousemove(e: KoEventObject<MouseEvent>): void;
|
|
2458
|
+
onMouseenter(e: KoEventObject<MouseEvent>): void;
|
|
2459
|
+
onMouseleave(e: KoEventObject<MouseEvent>): void;
|
|
2460
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableBackground, never>;
|
|
2461
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableBackground, "ai-table-background", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isHover": { "alias": "isHover"; "required": false; "isSignal": true; }; }, { "koClick": "koClick"; "hover": "hover"; "koMouseenter": "koMouseenter"; "koMouseleave": "koMouseleave"; "isHover": "isHoverChange"; }, never, never, true, never>;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
declare class AITableShadow {
|
|
2465
|
+
config: _angular_core.InputSignal<NodeConfig>;
|
|
2466
|
+
shadowConfig: _angular_core.Signal<Partial<ShapeConfig>>;
|
|
2467
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableShadow, never>;
|
|
2468
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableShadow, "ai-table-shadow", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
declare class AITableGroups {
|
|
2472
|
+
config: _angular_core.InputSignal<AITableCellsConfig>;
|
|
2473
|
+
trackBy: (groupStat: AITableGroupStatConfig) => string;
|
|
2474
|
+
frozenColumnCount: _angular_core.Signal<number>;
|
|
2475
|
+
columnStartIndex: _angular_core.Signal<number>;
|
|
2476
|
+
groups: _angular_core.Signal<_ai_table_grid.AITableGroupConfig[]>;
|
|
2477
|
+
groupCells: _angular_core.Signal<{
|
|
2478
|
+
groupStat?: AITableGroupStatConfig;
|
|
2479
|
+
}[]>;
|
|
2480
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableGroups, never>;
|
|
2481
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableGroups, "ai-table-groups", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
declare class AITableFrozenGroups {
|
|
2485
|
+
config: _angular_core.InputSignal<AITableCellsConfig>;
|
|
2486
|
+
frozenColumnCount: _angular_core.Signal<number>;
|
|
2487
|
+
columnStopIndex: _angular_core.Signal<number>;
|
|
2488
|
+
groups: _angular_core.Signal<_ai_table_grid.AITableGroupConfig[]>;
|
|
2489
|
+
groupCollapseDisabled: _angular_core.Signal<boolean>;
|
|
2490
|
+
collapseClick(e: KoEventObject<MouseEvent>): void;
|
|
2491
|
+
groupCells: _angular_core.Signal<{
|
|
2492
|
+
collapsedIcon?: AITableIconConfig;
|
|
2493
|
+
groupStat?: AITableGroupStatConfig;
|
|
2494
|
+
}[]>;
|
|
2495
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFrozenGroups, never>;
|
|
2496
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFrozenGroups, "ai-table-frozen-groups", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
declare abstract class AbstractEditCellEditor<TValue, TFieldType extends AITableField = AITableField> implements OnInit {
|
|
2500
|
+
aiTable: AITable;
|
|
2501
|
+
fieldId: string;
|
|
2502
|
+
recordId: string;
|
|
2503
|
+
references: AITableReferences;
|
|
2504
|
+
recordHeight: _angular_core.InputSignal<number>;
|
|
2505
|
+
autoFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2506
|
+
updateFieldValues: _angular_core.OutputEmitterRef<UpdateFieldValueOptions<TValue>[]>;
|
|
2507
|
+
modelValue: TValue;
|
|
2508
|
+
field: _angular_core.Signal<TFieldType>;
|
|
2509
|
+
record: _angular_core.Signal<_ai_table_utils.AITableRecord>;
|
|
2510
|
+
elementRef: ElementRef<HTMLElement>;
|
|
2511
|
+
protected thyPopoverRef: ThyPopoverRef<any, any, any> | null;
|
|
2512
|
+
protected render2: Renderer2;
|
|
2513
|
+
protected minHeight: number;
|
|
2514
|
+
ngOnInit(): void;
|
|
2515
|
+
applyContainerClass(className: string): void;
|
|
2516
|
+
update(): void;
|
|
2517
|
+
closePopover(): void;
|
|
2518
|
+
/**
|
|
2519
|
+
* 调整高度
|
|
2520
|
+
* @param selector 选择器
|
|
2521
|
+
* @param isSetHeight 是否判断滚动高度小于行高才设置高度,否则使用自动高度(多选内容需要自动撑开,当内容高度不够行高以行高为准)
|
|
2522
|
+
* @param onHeightAdjusted
|
|
2523
|
+
*/
|
|
2524
|
+
protected adjustElementHeight(selector: string, isSetHeight: boolean, onHeightAdjusted?: () => void): void;
|
|
2525
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractEditCellEditor<any, any>, never>;
|
|
2526
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AbstractEditCellEditor<any, any>, "abstract-edit-cell", never, { "aiTable": { "alias": "aiTable"; "required": true; }; "fieldId": { "alias": "fieldId"; "required": true; }; "recordId": { "alias": "recordId"; "required": true; }; "references": { "alias": "references"; "required": true; }; "recordHeight": { "alias": "recordHeight"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; }, { "updateFieldValues": "updateFieldValues"; }, never, never, true, never>;
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
declare class DateCellEditorComponent extends AbstractEditCellEditor<DateFieldValue> {
|
|
2530
|
+
placeholder: string;
|
|
2531
|
+
ngOnInit(): void;
|
|
2532
|
+
updateValue(timestamp: number): void;
|
|
2533
|
+
thyOpenChange(isOpen: Boolean): void;
|
|
2534
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateCellEditorComponent, never>;
|
|
2535
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateCellEditorComponent, "date-cell-editor", never, {}, {}, never, never, true, never>;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
declare class LinkCellEditorComponent extends AbstractEditCellEditor<{
|
|
2539
|
+
text: string;
|
|
2540
|
+
url: string;
|
|
2541
|
+
}> implements OnInit {
|
|
2542
|
+
inputElement: ElementRef;
|
|
2543
|
+
text: string;
|
|
2544
|
+
url: string;
|
|
2545
|
+
originValue: {};
|
|
2546
|
+
thyPopover: ThyPopover;
|
|
2547
|
+
cdr: ChangeDetectorRef;
|
|
2548
|
+
notifyService: ThyNotifyService;
|
|
2549
|
+
isOpened: boolean;
|
|
2550
|
+
isValidLink(link: {
|
|
2551
|
+
text: string;
|
|
2552
|
+
url: string;
|
|
2553
|
+
}): boolean;
|
|
2554
|
+
createLinkValue(link: {
|
|
2555
|
+
text: string;
|
|
2556
|
+
url: string;
|
|
2557
|
+
}): {
|
|
2558
|
+
url: string;
|
|
2559
|
+
text: string;
|
|
2560
|
+
};
|
|
2561
|
+
blur(event: FocusEvent): void;
|
|
2562
|
+
linkTooltip: _angular_core.Signal<string>;
|
|
2563
|
+
ngOnInit(): void;
|
|
2564
|
+
updateValue(): void;
|
|
2565
|
+
openEdit(): void;
|
|
2566
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LinkCellEditorComponent, never>;
|
|
2567
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LinkCellEditorComponent, "link-cell-editor", never, {}, {}, never, never, true, never>;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
declare class NumberCellEditorComponent extends AbstractEditCellEditor<NumberFieldValue> {
|
|
2571
|
+
updateValue(): void;
|
|
2572
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberCellEditorComponent, never>;
|
|
2573
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NumberCellEditorComponent, "number-cell-editor", never, {}, {}, never, never, true, never>;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
declare class SelectCellEditorComponent extends AbstractEditCellEditor<string[] | string, AITableSelectField> implements AfterViewInit {
|
|
2577
|
+
selectOptions: _angular_core.Signal<_ai_table_utils.AITableSelectOption[]>;
|
|
2578
|
+
preset: _angular_core.Signal<"" | "tag">;
|
|
2579
|
+
get isMultiple(): boolean;
|
|
2580
|
+
constructor();
|
|
2581
|
+
ngOnInit(): void;
|
|
2582
|
+
ngAfterViewInit(): void;
|
|
2583
|
+
onOpenChange(value: boolean): void;
|
|
2584
|
+
onModelChange(event: any): void;
|
|
2585
|
+
updateValueFn(): void;
|
|
2586
|
+
updateStyle(): void;
|
|
2587
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectCellEditorComponent, never>;
|
|
2588
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectCellEditorComponent, "select-cell-editor", never, {}, {}, never, never, true, never>;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
declare class TextCellEditorComponent extends AbstractEditCellEditor<string> implements AfterViewInit {
|
|
2592
|
+
isSelectAll: _angular_core.InputSignal<boolean>;
|
|
2593
|
+
constructor();
|
|
2594
|
+
ngOnInit(): void;
|
|
2595
|
+
ngAfterViewInit(): void;
|
|
2596
|
+
updateStyle(): void;
|
|
2597
|
+
handleSelectAll(): void;
|
|
2598
|
+
valueChange(): void;
|
|
2599
|
+
updateValue(): void;
|
|
2600
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextCellEditorComponent, never>;
|
|
2601
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextCellEditorComponent, "text-cell-editor", never, { "isSelectAll": { "alias": "isSelectAll"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
declare class SelectOptionComponent {
|
|
2605
|
+
field: _angular_core.InputSignal<AITableField>;
|
|
2606
|
+
displayOption: _angular_core.InputSignal<AITableSelectOption>;
|
|
2607
|
+
optionStyle: _angular_core.Signal<AITableSelectOptionStyle>;
|
|
2608
|
+
AITableSelectOptionStyle: typeof AITableSelectOptionStyle;
|
|
2609
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectOptionComponent, never>;
|
|
2610
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectOptionComponent, "select-option", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "displayOption": { "alias": "displayOption"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
declare class AITableFieldSetting implements OnInit {
|
|
2614
|
+
aiEditField: _angular_core.ModelSignal<AITableField>;
|
|
2615
|
+
readonly aiTable: _angular_core.InputSignal<AITable>;
|
|
2616
|
+
readonly aiExternalTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
|
|
2617
|
+
readonly aiReferences: _angular_core.InputSignal<AITableReferences | undefined>;
|
|
2618
|
+
readonly isUpdate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2619
|
+
readonly addField: _angular_core.OutputEmitterRef<AITableField>;
|
|
2620
|
+
readonly setField: _angular_core.OutputEmitterRef<{
|
|
2621
|
+
fieldOptions: SetFieldOptions;
|
|
2622
|
+
isSwitchType: boolean;
|
|
2623
|
+
}>;
|
|
2624
|
+
readonly selectedFieldOption: _angular_core.Signal<AITableFieldOption>;
|
|
2625
|
+
fieldMaxLength: number;
|
|
2626
|
+
readonly validatorConfig: _angular_core.Signal<{
|
|
2627
|
+
validationMessages: {
|
|
2628
|
+
fieldName: {
|
|
2629
|
+
required: string;
|
|
2630
|
+
thyUniqueCheck: string;
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2633
|
+
}>;
|
|
2634
|
+
readonly fieldOptions: _angular_core.Signal<{
|
|
2635
|
+
base: AITableFieldOption[];
|
|
2636
|
+
advanced: AITableFieldOption[];
|
|
2637
|
+
}>;
|
|
2638
|
+
aITableFieldType: typeof AITableFieldType;
|
|
2639
|
+
isMultipleMember: boolean;
|
|
2640
|
+
private isManualInputName;
|
|
2641
|
+
private originField?;
|
|
2642
|
+
protected thyPopoverRef: ThyPopoverRef<any, any, any>;
|
|
2643
|
+
ngOnInit(): void;
|
|
2644
|
+
checkUniqueName: (fieldName: string) => rxjs.Observable<boolean>;
|
|
2645
|
+
selectFieldType(field: AITableFieldOption): void;
|
|
2646
|
+
editFieldProperty(): void;
|
|
2647
|
+
multipleMemberChange(): void;
|
|
2648
|
+
fieldTypeClick(e: Event): void;
|
|
2649
|
+
nameChange(event: Event): void;
|
|
2650
|
+
cancel(): void;
|
|
2651
|
+
i18nTexts: _angular_core.Signal<{
|
|
2652
|
+
columnName: string;
|
|
2653
|
+
columnNamePlaceholder: string;
|
|
2654
|
+
fieldType: string;
|
|
2655
|
+
allowMultipleMembers: string;
|
|
2656
|
+
cancel: string;
|
|
2657
|
+
confirm: string;
|
|
2658
|
+
base: string;
|
|
2659
|
+
advanced: string;
|
|
2660
|
+
}>;
|
|
2661
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFieldSetting, never>;
|
|
2662
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFieldSetting, "ai-table-field-setting", never, { "aiEditField": { "alias": "aiEditField"; "required": true; "isSignal": true; }; "aiTable": { "alias": "aiTable"; "required": true; "isSignal": true; }; "aiExternalTemplate": { "alias": "aiExternalTemplate"; "required": false; "isSignal": true; }; "aiReferences": { "alias": "aiReferences"; "required": false; "isSignal": true; }; "isUpdate": { "alias": "isUpdate"; "required": false; "isSignal": true; }; }, { "aiEditField": "aiEditFieldChange"; "addField": "addField"; "setField": "setField"; }, never, never, true, never>;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
declare class AITableContextMenu extends ThyDropdownAbstractMenu {
|
|
2666
|
+
notifyService: ThyNotifyService;
|
|
2667
|
+
thyPopoverRef: ThyPopoverRef<any, any, any>;
|
|
2668
|
+
aiTable: _angular_core.InputSignal<AITable>;
|
|
2669
|
+
menuItems: _angular_core.InputSignal<AITableContextMenuItem[]>;
|
|
2670
|
+
targetName: _angular_core.InputSignal<string>;
|
|
2671
|
+
position: _angular_core.InputSignal<{
|
|
2672
|
+
x: number;
|
|
2673
|
+
y: number;
|
|
2674
|
+
}>;
|
|
2675
|
+
maxCount: _angular_core.Signal<number>;
|
|
2676
|
+
execute(menu: AITableContextMenuItem): void;
|
|
2677
|
+
inputNumberFocus(e: Event): void;
|
|
2678
|
+
itemEnterHandle(e: Event, menu: AITableContextMenuItem): void;
|
|
2679
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableContextMenu, never>;
|
|
2680
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableContextMenu, "ai-table-context-menu", never, { "aiTable": { "alias": "aiTable"; "required": true; "isSignal": true; }; "menuItems": { "alias": "menuItems"; "required": true; "isSignal": true; }; "targetName": { "alias": "targetName"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
declare class CheckboxMenuSort {
|
|
2684
|
+
field: _angular_core.InputSignal<AITableField>;
|
|
2685
|
+
menu: _angular_core.InputSignal<AITableFieldMenuItem>;
|
|
2686
|
+
Direction: {
|
|
2687
|
+
ascending: string;
|
|
2688
|
+
descending: string;
|
|
2689
|
+
};
|
|
2690
|
+
getSortText(): string;
|
|
2691
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckboxMenuSort, never>;
|
|
2692
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxMenuSort, "checkbox-menu-sort", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "menu": { "alias": "menu"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
declare class RecordDetailComponent implements OnInit {
|
|
2696
|
+
readonly aiTable: _angular_core.InputSignal<AITable>;
|
|
2697
|
+
readonly recordId: _angular_core.InputSignal<string>;
|
|
2698
|
+
readonly references: _angular_core.InputSignal<AITableReferences>;
|
|
2699
|
+
readonly actions: _angular_core.InputSignal<AITableActions | undefined>;
|
|
2700
|
+
readonly recordIdChange: _angular_core.OutputEmitterRef<string>;
|
|
2701
|
+
private internalRecordId;
|
|
2702
|
+
readonly: _angular_core.Signal<boolean | undefined>;
|
|
2703
|
+
currentRecordId: _angular_core.Signal<string>;
|
|
2704
|
+
readonly fieldOperationsMenuTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
2705
|
+
private slideRef;
|
|
2706
|
+
private thyPopover;
|
|
2707
|
+
record: _angular_core.Signal<_ai_table_utils.AITableRecord>;
|
|
2708
|
+
fields: _angular_core.Signal<_ai_table_utils.AITableFields>;
|
|
2709
|
+
firstField: _angular_core.Signal<AITableField>;
|
|
2710
|
+
lastField: _angular_core.Signal<AITableField>;
|
|
2711
|
+
recordTitle: _angular_core.Signal<string>;
|
|
2712
|
+
recordNavigation: _angular_core.Signal<{
|
|
2713
|
+
index: number;
|
|
2714
|
+
total: number;
|
|
2715
|
+
hasPrevious: boolean;
|
|
2716
|
+
hasNext: boolean;
|
|
2717
|
+
previousId: string | null;
|
|
2718
|
+
nextId: string | null;
|
|
2719
|
+
} | null>;
|
|
2720
|
+
fieldMenus: _angular_core.Signal<_ai_table_grid.AITableFieldMenuItem[]>;
|
|
2721
|
+
fieldIconPath(field: AITableField): string | null;
|
|
2722
|
+
activeFieldId: string | null;
|
|
2723
|
+
fieldMenuVisible: Record<string, boolean>;
|
|
2724
|
+
constructor();
|
|
2725
|
+
ngOnInit(): void;
|
|
2726
|
+
close(): void;
|
|
2727
|
+
previousRecord(): void;
|
|
2728
|
+
nextRecord(): void;
|
|
2729
|
+
deleteRecord(): void;
|
|
2730
|
+
fieldClick(fieldId: string): void;
|
|
2731
|
+
showFieldMenu(fieldId: string): void;
|
|
2732
|
+
hideFieldMenu(fieldId: string): void;
|
|
2733
|
+
fieldMenuMoreClick(e: MouseEvent, fieldId: string): void;
|
|
2734
|
+
addNewField(e: MouseEvent): void;
|
|
2735
|
+
fieldValueChange(options: UpdateFieldValueOptions[]): void;
|
|
2736
|
+
setSelection(recordId: string): void;
|
|
2737
|
+
private activateField;
|
|
2738
|
+
private formatCellValue;
|
|
2739
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RecordDetailComponent, never>;
|
|
2740
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RecordDetailComponent, "ai-record-detail", never, { "aiTable": { "alias": "aiTable"; "required": true; "isSignal": true; }; "recordId": { "alias": "recordId"; "required": true; "isSignal": true; }; "references": { "alias": "references"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; }, { "recordIdChange": "recordIdChange"; }, never, never, true, never>;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
declare class DynamicCellEditorComponent implements OnInit, OnDestroy {
|
|
2744
|
+
aiTable: _angular_core.InputSignal<AITable>;
|
|
2745
|
+
fieldId: _angular_core.InputSignal<string>;
|
|
2746
|
+
recordId: _angular_core.InputSignal<string>;
|
|
2747
|
+
references: _angular_core.InputSignal<AITableReferences>;
|
|
2748
|
+
updateFieldValues: _angular_core.OutputEmitterRef<UpdateFieldValueOptions<unknown>[]>;
|
|
2749
|
+
readonly editorHost: _angular_core.Signal<ViewContainerRef | undefined>;
|
|
2750
|
+
private editorComponentRef?;
|
|
2751
|
+
field: _angular_core.Signal<_ai_table_utils.AITableField>;
|
|
2752
|
+
cellValue: _angular_core.Signal<any>;
|
|
2753
|
+
constructor();
|
|
2754
|
+
ngOnInit(): void;
|
|
2755
|
+
ngOnDestroy(): void;
|
|
2756
|
+
private createEditorComponent;
|
|
2757
|
+
private destroyEditorComponent;
|
|
2758
|
+
private getEditorComponent;
|
|
2759
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicCellEditorComponent, never>;
|
|
2760
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicCellEditorComponent, "ai-dynamic-cell-editor", never, { "aiTable": { "alias": "aiTable"; "required": true; "isSignal": true; }; "fieldId": { "alias": "fieldId"; "required": true; "isSignal": true; }; "recordId": { "alias": "recordId"; "required": true; "isSignal": true; }; "references": { "alias": "references"; "required": true; "isSignal": true; }; }, { "updateFieldValues": "updateFieldValues"; }, never, never, true, never>;
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
interface AITableGridCellRenderSchema<TR extends AITableReferences = AITableReferences, TEditorValue = unknown, TEditorField extends AITableField = AITableField> {
|
|
2764
|
+
editor?: Type<AbstractEditCellEditor<TEditorValue, TEditorField>>;
|
|
2765
|
+
recordCellEditor?: Type<AbstractEditCellEditor<TEditorValue, TEditorField>>;
|
|
2766
|
+
recordCellEditorInjector?: Injector;
|
|
2767
|
+
toText?: (field: AITableField, value: FieldValue) => any;
|
|
2768
|
+
toFieldValue?: (text: string, value: FieldValue) => any;
|
|
2769
|
+
}
|
|
2770
|
+
interface AITableContent {
|
|
2771
|
+
records: Partial<AITableRecord>[];
|
|
2772
|
+
fields: AITableFields;
|
|
2773
|
+
}
|
|
2774
|
+
interface AITableGridData extends AITableContent {
|
|
2775
|
+
type: 'grid';
|
|
2776
|
+
}
|
|
2777
|
+
interface AITableSelection {
|
|
2778
|
+
selectedRecords: Set<string>;
|
|
2779
|
+
selectedFields: Set<string>;
|
|
2780
|
+
selectedCells: Set<string>;
|
|
2781
|
+
activeCell: AIRecordFieldIdPath | null;
|
|
2782
|
+
selectedEndCell: AIRecordFieldIdPath | null;
|
|
2783
|
+
}
|
|
2784
|
+
interface AITableCustomFieldConfig<TR extends AITableReferences = AITableReferences> {
|
|
2785
|
+
fieldOption?: AITableFieldOption;
|
|
2786
|
+
fieldModel?: FieldOperable<unknown, unknown>;
|
|
2787
|
+
render?: (render: AITableRender<TR>, ctx: CanvasRenderingContext2D | undefined, drawer: CellDrawer) => any;
|
|
2788
|
+
coverRender?: Constructor<CoverCellBase>;
|
|
2789
|
+
}
|
|
2790
|
+
interface AIFieldConfig<TR extends AITableReferences = AITableReferences> {
|
|
2791
|
+
hiddenIndexColumn?: boolean;
|
|
2792
|
+
hiddenRowDrag?: boolean;
|
|
2793
|
+
fieldRenderers?: Partial<Record<AITableFieldType | string, AITableGridCellRenderSchema<TR>>>;
|
|
2794
|
+
fieldSettingComponent?: any;
|
|
2795
|
+
fieldMenus?: (aiTable: AITable) => AITableFieldMenuItem[];
|
|
2796
|
+
recordDetailFieldMenus?: (aiTable: AITable) => AITableFieldMenuItem[];
|
|
2797
|
+
customFields?: Partial<Record<string, AITableCustomFieldConfig<TR>>>;
|
|
2798
|
+
filterFieldOptions?: (fieldOptions: AITableFieldOption[]) => AITableFieldOption[];
|
|
2799
|
+
}
|
|
2800
|
+
interface AITableRendererConfig {
|
|
2801
|
+
aiTable: AITable;
|
|
2802
|
+
container: HTMLDivElement;
|
|
2803
|
+
coordinate: Coordinate;
|
|
2804
|
+
containerWidth: number;
|
|
2805
|
+
containerHeight: number;
|
|
2806
|
+
references: AITableReferences;
|
|
2807
|
+
readonly: boolean;
|
|
2808
|
+
maxFields?: number;
|
|
2809
|
+
maxRecords?: number;
|
|
2810
|
+
actions: AITableActions;
|
|
2811
|
+
}
|
|
2812
|
+
declare enum AITableCheckType {
|
|
2813
|
+
checked = "checked",
|
|
2814
|
+
unchecked = "unchecked"
|
|
2815
|
+
}
|
|
2816
|
+
interface AITableScrollState {
|
|
2817
|
+
scrollTop: number;
|
|
2818
|
+
scrollLeft: number;
|
|
2819
|
+
isScrolling: boolean;
|
|
2820
|
+
}
|
|
2821
|
+
interface ScrollActionOptions {
|
|
2822
|
+
deltaX: number;
|
|
2823
|
+
deltaY: number;
|
|
2824
|
+
shiftKey: boolean;
|
|
2825
|
+
callback?: () => void;
|
|
2826
|
+
}
|
|
2827
|
+
declare enum AITableAreaType {
|
|
2828
|
+
grid = "grid",
|
|
2829
|
+
none = "none"
|
|
2830
|
+
}
|
|
2831
|
+
type AITablePointPosition = {
|
|
2832
|
+
x: number;
|
|
2833
|
+
y: number;
|
|
2834
|
+
areaType: AITableAreaType;
|
|
2835
|
+
targetName: string;
|
|
2836
|
+
realTargetName: string;
|
|
2837
|
+
rowIndex: number;
|
|
2838
|
+
columnIndex: number;
|
|
2839
|
+
offsetTop: number;
|
|
2840
|
+
offsetLeft: number;
|
|
2841
|
+
};
|
|
2842
|
+
interface AITableEditPosition {
|
|
2843
|
+
x: number;
|
|
2844
|
+
y: number;
|
|
2845
|
+
width: number;
|
|
2846
|
+
height: number;
|
|
2847
|
+
}
|
|
2848
|
+
interface AITableOpenEditOptions {
|
|
2849
|
+
recordId: string;
|
|
2850
|
+
fieldId: string;
|
|
2851
|
+
coordinate: Coordinate;
|
|
2852
|
+
references: AITableReferences;
|
|
2853
|
+
container?: HTMLDivElement;
|
|
2854
|
+
viewContainerRef?: ViewContainerRef;
|
|
2855
|
+
isSelectAll?: boolean;
|
|
2856
|
+
updateFieldValues: (options: UpdateFieldValueOptions[]) => void;
|
|
2857
|
+
}
|
|
2858
|
+
interface AITableContext {
|
|
2859
|
+
containerRect: Signal<{
|
|
2860
|
+
width: number;
|
|
2861
|
+
height: number;
|
|
2862
|
+
}>;
|
|
2863
|
+
rowHeadWidth: Signal<number>;
|
|
2864
|
+
linearRows: Signal<AITableLinearRow[]>;
|
|
2865
|
+
pointPosition: WritableSignal<AITablePointPosition>;
|
|
2866
|
+
scrollState: WritableSignal<AITableScrollState>;
|
|
2867
|
+
scrollAction: (options: ScrollActionOptions) => void;
|
|
2868
|
+
visibleColumnsIndexMap: Signal<Map<string, number>>;
|
|
2869
|
+
visibleRowsIndexMap: Signal<Map<string, number>>;
|
|
2870
|
+
groupStatContainerWidthMap: WritableSignal<Map<string, number>>;
|
|
2871
|
+
frozenColumnCount: Signal<number>;
|
|
2872
|
+
references: Signal<AITableReferences>;
|
|
2873
|
+
aiFieldConfig: Signal<AIFieldConfig | undefined>;
|
|
2874
|
+
maxFields: Signal<number | undefined>;
|
|
2875
|
+
maxRecords: Signal<number | undefined>;
|
|
2876
|
+
maxSelectOptions: Signal<number | undefined>;
|
|
2877
|
+
fieldOptions: Signal<AITableFieldOption[]>;
|
|
2878
|
+
fieldOptionMap: Signal<Map<string, AITableFieldOption>>;
|
|
2879
|
+
groupCollapseDisabled: WritableSignal<boolean>;
|
|
2880
|
+
readonly?: Signal<boolean>;
|
|
2881
|
+
}
|
|
2882
|
+
declare enum AITableSelectAllState {
|
|
2883
|
+
all = "all",
|
|
2884
|
+
partial = "partial",
|
|
2885
|
+
none = "none"
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
interface AITableIconConfig extends Konva.ShapeConfig {
|
|
2889
|
+
size?: number;
|
|
2890
|
+
disabled?: boolean;
|
|
2891
|
+
}
|
|
2892
|
+
interface AITableBackgroundConfig extends Konva.ShapeConfig {
|
|
2893
|
+
x: number;
|
|
2894
|
+
y: number;
|
|
2895
|
+
width: number;
|
|
2896
|
+
height: number;
|
|
2897
|
+
readonly?: boolean;
|
|
2898
|
+
fill?: string;
|
|
2899
|
+
stroke?: string;
|
|
2900
|
+
strokeWidth?: number;
|
|
2901
|
+
opacity?: number;
|
|
2902
|
+
name?: string;
|
|
2903
|
+
hoverFill?: string;
|
|
2904
|
+
hoverStroke?: string;
|
|
2905
|
+
hoverStrokeWidth?: number;
|
|
2906
|
+
hoverOpacity?: number;
|
|
2907
|
+
hoverName?: string;
|
|
2908
|
+
hoverWidth?: number;
|
|
2909
|
+
hoverHeight?: number;
|
|
2910
|
+
borders?: [boolean, boolean, boolean, boolean];
|
|
2911
|
+
listening?: boolean;
|
|
2912
|
+
coordinate?: Coordinate;
|
|
2913
|
+
}
|
|
2914
|
+
interface AITableActionIconConfig extends AITableIconConfig {
|
|
2915
|
+
coordinate: Coordinate;
|
|
2916
|
+
coverBackground?: string;
|
|
2917
|
+
hoverFill?: string;
|
|
2918
|
+
source?: any;
|
|
2919
|
+
}
|
|
2920
|
+
interface AITableAttachmentConfig extends Konva.ShapeConfig {
|
|
2921
|
+
coordinate: Coordinate;
|
|
2922
|
+
attachmentInfo: AITableAttachmentInfo;
|
|
2923
|
+
}
|
|
2924
|
+
interface AITableFieldTypeIconConfig {
|
|
2925
|
+
field: AITableField;
|
|
2926
|
+
x?: number;
|
|
2927
|
+
y?: number;
|
|
2928
|
+
width?: number;
|
|
2929
|
+
height?: number;
|
|
2930
|
+
fill?: string;
|
|
2931
|
+
path?: string;
|
|
2932
|
+
}
|
|
2933
|
+
interface AITableFieldHeadConfig {
|
|
2934
|
+
x?: number;
|
|
2935
|
+
y?: number;
|
|
2936
|
+
width: number;
|
|
2937
|
+
height: number;
|
|
2938
|
+
field: AITableField;
|
|
2939
|
+
stroke?: string;
|
|
2940
|
+
iconVisible?: boolean;
|
|
2941
|
+
isSelected?: boolean;
|
|
2942
|
+
isHoverIcon?: boolean;
|
|
2943
|
+
}
|
|
2944
|
+
interface AITableFieldStatConfig {
|
|
2945
|
+
aiTable: AITable;
|
|
2946
|
+
coordinate: Coordinate;
|
|
2947
|
+
actions: AITableActions;
|
|
2948
|
+
columnIndex: number;
|
|
2949
|
+
isHoverStatContainer?: boolean;
|
|
2950
|
+
x?: number;
|
|
2951
|
+
y?: number;
|
|
2952
|
+
readonly?: boolean;
|
|
2953
|
+
width: number;
|
|
2954
|
+
height: number;
|
|
2955
|
+
field: AITableField;
|
|
2956
|
+
}
|
|
2957
|
+
interface AITableGroupStatConfig extends AITableFieldStatConfig {
|
|
2958
|
+
isGroupStat: boolean;
|
|
2959
|
+
groupRow: AITableGroupStatRow;
|
|
2960
|
+
}
|
|
2961
|
+
interface AITableGroupConfig {
|
|
2962
|
+
aiTable: AITable;
|
|
2963
|
+
coordinate: Coordinate;
|
|
2964
|
+
rowIndex: number;
|
|
2965
|
+
x?: number;
|
|
2966
|
+
y?: number;
|
|
2967
|
+
readonly?: boolean;
|
|
2968
|
+
height: number;
|
|
2969
|
+
row: AITableGroupStatRow;
|
|
2970
|
+
}
|
|
2971
|
+
interface AITableColumnHeadsConfig {
|
|
2972
|
+
aiTable: AITable;
|
|
2973
|
+
coordinate: Coordinate;
|
|
2974
|
+
columnStartIndex: number;
|
|
2975
|
+
columnStopIndex: number;
|
|
2976
|
+
pointPosition: AITablePointPosition;
|
|
2977
|
+
}
|
|
2978
|
+
interface AITableFieldStatsConfig {
|
|
2979
|
+
aiTable: AITable;
|
|
2980
|
+
actions: AITableActions;
|
|
2981
|
+
x: number;
|
|
2982
|
+
y: number;
|
|
2983
|
+
width?: number;
|
|
2984
|
+
height?: number;
|
|
2985
|
+
coordinate: Coordinate;
|
|
2986
|
+
columnStartIndex: number;
|
|
2987
|
+
columnStopIndex: number;
|
|
2988
|
+
isHoverStatContainer?: boolean;
|
|
2989
|
+
readonly?: boolean;
|
|
2990
|
+
groupRow?: AITableGroupStatRow;
|
|
2991
|
+
}
|
|
2992
|
+
interface AITableAddFieldConfig {
|
|
2993
|
+
aiTable: AITable;
|
|
2994
|
+
coordinate: Coordinate;
|
|
2995
|
+
fields: AITableField[];
|
|
2996
|
+
columnStopIndex: number;
|
|
2997
|
+
pointPosition: AITablePointPosition;
|
|
2998
|
+
readonly?: boolean;
|
|
2999
|
+
maxFields?: number;
|
|
3000
|
+
}
|
|
3001
|
+
interface AITableCoverCellConfig {
|
|
3002
|
+
aiTable: AITable;
|
|
3003
|
+
coordinate: Coordinate;
|
|
3004
|
+
field: AITableField;
|
|
3005
|
+
recordId?: string;
|
|
3006
|
+
x: number;
|
|
3007
|
+
y: number;
|
|
3008
|
+
render: AITableRender;
|
|
3009
|
+
readonly: boolean;
|
|
3010
|
+
isExpand: boolean;
|
|
3011
|
+
actions: {
|
|
3012
|
+
updateFieldValues: (options: UpdateFieldValueOptions[]) => void;
|
|
3013
|
+
};
|
|
3014
|
+
}
|
|
3015
|
+
interface AITableFillHandleConfig {
|
|
3016
|
+
aiTable: AITable;
|
|
3017
|
+
coordinate: Coordinate;
|
|
3018
|
+
readonly: boolean;
|
|
3019
|
+
}
|
|
3020
|
+
interface AITableTargetNameOptions {
|
|
3021
|
+
targetName: string;
|
|
3022
|
+
fieldId?: string;
|
|
3023
|
+
recordId?: string;
|
|
3024
|
+
mouseStyle?: string;
|
|
3025
|
+
source?: string;
|
|
3026
|
+
}
|
|
3027
|
+
interface AITableTargetNameDetail {
|
|
3028
|
+
targetName: string | null;
|
|
3029
|
+
fieldId?: string | null;
|
|
3030
|
+
recordId?: string | null;
|
|
3031
|
+
mouseStyle?: string | null;
|
|
3032
|
+
source?: string | null;
|
|
3033
|
+
}
|
|
3034
|
+
declare enum AITableMouseDownType {
|
|
3035
|
+
Left = 0,
|
|
3036
|
+
Center = 1,
|
|
3037
|
+
Right = 2
|
|
3038
|
+
}
|
|
3039
|
+
interface AITableExpandRecordConfig {
|
|
3040
|
+
aiTable: AITable;
|
|
3041
|
+
coordinate: Coordinate;
|
|
3042
|
+
rowStartIndex: number;
|
|
3043
|
+
rowStopIndex: number;
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
interface AITableLayout {
|
|
3047
|
+
x: number;
|
|
3048
|
+
y: number;
|
|
3049
|
+
rowIndex: number;
|
|
3050
|
+
columnIndex: number;
|
|
3051
|
+
rowHeight: number;
|
|
3052
|
+
columnWidth: number;
|
|
3053
|
+
columnCount: number;
|
|
3054
|
+
containerWidth: number;
|
|
3055
|
+
rowHeadWidth: number;
|
|
3056
|
+
hiddenIndexColumn: boolean;
|
|
3057
|
+
frozenColumnCount: number;
|
|
3058
|
+
hiddenRowDrag?: boolean;
|
|
3059
|
+
readonly?: boolean;
|
|
3060
|
+
xIsScroll?: boolean;
|
|
3061
|
+
}
|
|
3062
|
+
interface AITableCellLayout {
|
|
3063
|
+
x?: number;
|
|
3064
|
+
y?: number;
|
|
3065
|
+
itemOffsetX?: number;
|
|
3066
|
+
minItemWidth?: number;
|
|
3067
|
+
noMoreItem?: boolean;
|
|
3068
|
+
renderWidth?: number;
|
|
3069
|
+
}
|
|
3070
|
+
interface AITableCellItem {
|
|
3071
|
+
x?: number;
|
|
3072
|
+
y?: number;
|
|
3073
|
+
width: number;
|
|
3074
|
+
height: number;
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
interface ClipboardContent {
|
|
3078
|
+
text?: string;
|
|
3079
|
+
html?: string;
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
interface KoEventObject<T> {
|
|
3083
|
+
angularComponent: KoComponent;
|
|
3084
|
+
event: KonvaEventObject<T>;
|
|
3085
|
+
}
|
|
3086
|
+
interface KoEventObjectOutput<T> extends KoEventObject<T> {
|
|
3087
|
+
targetNameDetail: AITableTargetNameDetail;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
declare abstract class KoComponent extends Component {
|
|
3091
|
+
config: KoShapeConfigTypes;
|
|
3092
|
+
koMouseover?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3093
|
+
koMousemove?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3094
|
+
koMouseout?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3095
|
+
koMouseenter?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3096
|
+
koMouseleave?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3097
|
+
koMousedown?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3098
|
+
koMouseup?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3099
|
+
koWheel?: EventEmitter<KoEventObject<WheelEvent>>;
|
|
3100
|
+
koContextmenu?: EventEmitter<KoEventObject<PointerEvent>>;
|
|
3101
|
+
koClick?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3102
|
+
koDblclick?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3103
|
+
koTouchstart?: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3104
|
+
koTouchmove?: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3105
|
+
koTouchend?: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3106
|
+
koTap?: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3107
|
+
koDbltap?: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3108
|
+
koDragstart?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3109
|
+
koDragmove?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3110
|
+
koDragend?: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3111
|
+
getNode: () => Stage | Shape | Arc | Arrow | Circle | Ellipse | Image | Label | Tag | Line | Path | Rect | RegularPolygon | Ring | Sprite | Star | Text | TextPath | Transformer | Wedge | Group | Layer | FastLayer;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
declare const KoShapeTypes: {
|
|
3115
|
+
Arc: typeof Arc;
|
|
3116
|
+
Arrow: typeof Arrow;
|
|
3117
|
+
Circle: typeof Circle;
|
|
3118
|
+
Ellipse: typeof Ellipse;
|
|
3119
|
+
Image: typeof Image;
|
|
3120
|
+
Label: typeof Label;
|
|
3121
|
+
Tag: typeof Tag;
|
|
3122
|
+
Line: typeof Line;
|
|
3123
|
+
Path: typeof Path;
|
|
3124
|
+
Rect: typeof Rect;
|
|
3125
|
+
RegularPolygon: typeof RegularPolygon;
|
|
3126
|
+
Ring: typeof Ring;
|
|
3127
|
+
Star: typeof Star;
|
|
3128
|
+
Text: typeof Text;
|
|
3129
|
+
TextPath: typeof TextPath;
|
|
3130
|
+
Transformer: typeof Transformer;
|
|
3131
|
+
Wedge: typeof Wedge;
|
|
3132
|
+
Group: typeof Group;
|
|
3133
|
+
Layer: typeof Layer;
|
|
3134
|
+
FastLayer: typeof FastLayer;
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3137
|
+
declare class KoShape implements OnInit, AfterViewInit, OnDestroy, KoComponent {
|
|
3138
|
+
config: _angular_core.InputSignal<KoShapeConfigTypes | undefined>;
|
|
3139
|
+
koMouseover: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3140
|
+
koMousemove: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3141
|
+
koMouseout: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3142
|
+
koMouseenter: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3143
|
+
koMouseleave: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3144
|
+
koMousedown: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3145
|
+
koMouseup: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3146
|
+
koWheel: EventEmitter<KoEventObject<WheelEvent>>;
|
|
3147
|
+
koContextmenu: EventEmitter<KoEventObject<PointerEvent>>;
|
|
3148
|
+
koClick: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3149
|
+
koDblclick: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3150
|
+
koTouchstart: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3151
|
+
koTouchmove: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3152
|
+
koTouchend: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3153
|
+
koTap: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3154
|
+
koDbltap: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3155
|
+
koDragstart: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3156
|
+
koDragmove: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3157
|
+
koDragend: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3158
|
+
private elementRef;
|
|
3159
|
+
private container;
|
|
3160
|
+
private cacheProps;
|
|
3161
|
+
private nameNode;
|
|
3162
|
+
private _node;
|
|
3163
|
+
constructor();
|
|
3164
|
+
getNode(): Shape | Arc | Arrow | Circle | Ellipse | Image | Label | Tag | Line | Path | Rect | RegularPolygon | Ring | Sprite | Star | Text | TextPath | Transformer | Wedge | Group | Layer | FastLayer;
|
|
3165
|
+
ngOnInit(): void;
|
|
3166
|
+
private initKonva;
|
|
3167
|
+
private updateNode;
|
|
3168
|
+
ngAfterViewInit(): void;
|
|
3169
|
+
ngOnDestroy(): void;
|
|
3170
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KoShape, never>;
|
|
3171
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KoShape, "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "koMouseover": "koMouseover"; "koMousemove": "koMousemove"; "koMouseout": "koMouseout"; "koMouseenter": "koMouseenter"; "koMouseleave": "koMouseleave"; "koMousedown": "koMousedown"; "koMouseup": "koMouseup"; "koWheel": "koWheel"; "koContextmenu": "koContextmenu"; "koClick": "koClick"; "koDblclick": "koDblclick"; "koTouchstart": "koTouchstart"; "koTouchmove": "koTouchmove"; "koTouchend": "koTouchend"; "koTap": "koTap"; "koDbltap": "koDbltap"; "koDragstart": "koDragstart"; "koDragmove": "koDragmove"; "koDragend": "koDragend"; }, never, ["*"], true, never>;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
declare class KoContainer extends KoShape {
|
|
3175
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KoContainer, never>;
|
|
3176
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KoContainer, "ko-layer, ko-fastlayer, ko-group", never, {}, {}, never, ["*"], true, never>;
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
declare class KoStage implements KoComponent, OnInit, OnDestroy {
|
|
3180
|
+
config: _angular_core.InputSignal<ContainerConfig | undefined>;
|
|
3181
|
+
koMouseover: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3182
|
+
koMousemove: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3183
|
+
koMouseout: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3184
|
+
koMouseenter: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3185
|
+
koMouseleave: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3186
|
+
koMousedown: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3187
|
+
koMouseup: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3188
|
+
koWheel: EventEmitter<KoEventObject<WheelEvent>>;
|
|
3189
|
+
koContextmenu: EventEmitter<KoEventObject<PointerEvent>>;
|
|
3190
|
+
koClick: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3191
|
+
koDblclick: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3192
|
+
koTouchstart: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3193
|
+
koTouchmove: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3194
|
+
koTouchend: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3195
|
+
koTap: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3196
|
+
koDbltap: EventEmitter<KoEventObject<TouchEvent>>;
|
|
3197
|
+
koDragstart: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3198
|
+
koDragmove: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3199
|
+
koDragend: EventEmitter<KoEventObject<MouseEvent>>;
|
|
3200
|
+
private _stage;
|
|
3201
|
+
private cacheProps;
|
|
3202
|
+
private nodeContainer;
|
|
3203
|
+
constructor();
|
|
3204
|
+
ngOnInit(): void;
|
|
3205
|
+
getNode(): Stage;
|
|
3206
|
+
private initStage;
|
|
3207
|
+
private updateNode;
|
|
3208
|
+
ngOnDestroy(): void;
|
|
3209
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KoStage, never>;
|
|
3210
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KoStage, "ko-stage", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "koMouseover": "koMouseover"; "koMousemove": "koMousemove"; "koMouseout": "koMouseout"; "koMouseenter": "koMouseenter"; "koMouseleave": "koMouseleave"; "koMousedown": "koMousedown"; "koMouseup": "koMouseup"; "koWheel": "koWheel"; "koContextmenu": "koContextmenu"; "koClick": "koClick"; "koDblclick": "koDblclick"; "koTouchstart": "koTouchstart"; "koTouchmove": "koTouchmove"; "koTouchend": "koTouchend"; "koTap": "koTap"; "koDbltap": "koDbltap"; "koDragstart": "koDragstart"; "koDragmove": "koDragmove"; "koDragend": "koDragend"; }, never, ["*"], true, never>;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
declare const KO_CONTAINER_TOKEN: InjectionToken<any>;
|
|
3214
|
+
|
|
3215
|
+
type KoListenerRecord = Record<string, (value?: unknown) => void>;
|
|
3216
|
+
type KoPropsType = KoShapeConfigTypes & KoListenerRecord;
|
|
3217
|
+
|
|
3218
|
+
declare function applyNodeProps(component: KoComponent, props?: KoPropsType, oldProps?: KoPropsType): void;
|
|
3219
|
+
|
|
3220
|
+
import Node = Konva.Node;
|
|
3221
|
+
declare function updatePicture(node: Node): void;
|
|
3222
|
+
|
|
3223
|
+
declare function getName(componentTag: string): string;
|
|
3224
|
+
declare function createListener(instance: KoComponent): KoListenerRecord;
|
|
3225
|
+
|
|
3226
|
+
declare class AITableGridEventService {
|
|
3227
|
+
aiTable: AITable;
|
|
3228
|
+
aiFieldRenderers?: Partial<Record<AITableFieldType | string, AITableGridCellRenderSchema>>;
|
|
3229
|
+
dblClickEvent$: Subject<MouseEvent>;
|
|
3230
|
+
mousedownEvent$: Subject<MouseEvent>;
|
|
3231
|
+
mouseoverEvent$: Subject<MouseEvent>;
|
|
3232
|
+
globalMouseoverEvent$: Subject<MouseEvent>;
|
|
3233
|
+
globalMousedownEvent$: Subject<MouseEvent>;
|
|
3234
|
+
private cellEditorPopoverRef;
|
|
3235
|
+
private destroyRef;
|
|
3236
|
+
private thyPopover;
|
|
3237
|
+
initialize(aiTable: AITable, aiFieldRenderers?: Partial<Record<AITableFieldType, AITableGridCellRenderSchema>>): void;
|
|
3238
|
+
registerEvents(element: HTMLElement): void;
|
|
3239
|
+
private getEditorComponent;
|
|
3240
|
+
openEdit(cellDom: HTMLElement): ThyPopoverRef<unknown, unknown, unknown>;
|
|
3241
|
+
getOriginPosition(aiTable: AITable, options: AITableOpenEditOptions): {
|
|
3242
|
+
x: number;
|
|
3243
|
+
y: number;
|
|
3244
|
+
width: number;
|
|
3245
|
+
height: number;
|
|
3246
|
+
};
|
|
3247
|
+
openCellEditor(aiTable: AITable, options: AITableOpenEditOptions): ThyPopoverRef<AbstractEditCellEditor<any, _ai_table_utils.AITableField>, unknown, unknown>;
|
|
3248
|
+
closeCellEditor(): void;
|
|
3249
|
+
getCurrentEditCell(): {
|
|
3250
|
+
recordId: string;
|
|
3251
|
+
fieldId: string;
|
|
3252
|
+
} | null;
|
|
3253
|
+
openContextMenu(aiTable: AITable, options: AITableContextMenuOptions): ThyPopoverRef<AITableContextMenu, unknown, unknown>;
|
|
3254
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableGridEventService, never>;
|
|
3255
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AITableGridEventService>;
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
declare class AITableFieldMenu extends ThyDropdownAbstractMenu {
|
|
3259
|
+
fieldId: string;
|
|
3260
|
+
aiTable: AITable;
|
|
3261
|
+
fieldMenus: AITableFieldMenuItem[];
|
|
3262
|
+
origin: HTMLElement | ElementRef<any>;
|
|
3263
|
+
position: {
|
|
3264
|
+
x: number;
|
|
3265
|
+
y: number;
|
|
3266
|
+
};
|
|
3267
|
+
field: _angular_core.Signal<AITableField>;
|
|
3268
|
+
getCustomComponent(menu: AITableFieldMenuItem): ngx_tethys_core.Constructor<any> | undefined;
|
|
3269
|
+
execute(menu: AITableFieldMenuItem): void;
|
|
3270
|
+
getMenuName(menu: AITableFieldMenuItem, field: AITableField): string;
|
|
3271
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFieldMenu, never>;
|
|
3272
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableFieldMenu, "ai-table-field-menu", never, { "fieldId": { "alias": "fieldId"; "required": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "fieldMenus": { "alias": "fieldMenus"; "required": true; }; "origin": { "alias": "origin"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
declare const AI_TABLE_GRID_FIELD_SERVICE_MAP: WeakMap<AITable, AITableGridFieldService>;
|
|
3276
|
+
declare class AITableGridFieldService {
|
|
3277
|
+
private thyPopover;
|
|
3278
|
+
aiFieldConfig: AIFieldConfig | undefined;
|
|
3279
|
+
constructor(thyPopover: ThyPopover);
|
|
3280
|
+
initAIFieldConfig(aiFieldConfig: AIFieldConfig | undefined): void;
|
|
3281
|
+
editFieldProperty(aiTable: AITable, options: AITableEditFieldOptions): ngx_tethys_popover.ThyPopoverRef<unknown, unknown, unknown>;
|
|
3282
|
+
openFieldMenu(aiTable: AITable, options: AITableFieldMenuOptions): ngx_tethys_popover.ThyPopoverRef<AITableFieldMenu, unknown, unknown>;
|
|
3283
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableGridFieldService, never>;
|
|
3284
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AITableGridFieldService>;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
declare class AITableGridBase implements OnInit {
|
|
3288
|
+
aiRecords: _angular_core.ModelSignal<AITableRecords>;
|
|
3289
|
+
aiFields: _angular_core.ModelSignal<AITableFields>;
|
|
3290
|
+
aiContextMenuItems: _angular_core.InputSignal<((aiTable: AITable) => AITableContextMenuItem[]) | undefined>;
|
|
3291
|
+
aiFieldConfig: _angular_core.InputSignal<AIFieldConfig<AITableReferences> | undefined>;
|
|
3292
|
+
aiReadonly: _angular_core.InputSignal<boolean>;
|
|
3293
|
+
aiPlugins: _angular_core.InputSignal<AIPlugin[] | undefined>;
|
|
3294
|
+
aiMaxFields: _angular_core.InputSignal<number | undefined>;
|
|
3295
|
+
aiMaxRecords: _angular_core.InputSignal<number | undefined>;
|
|
3296
|
+
aiMaxSelectOptions: _angular_core.InputSignal<number | undefined>;
|
|
3297
|
+
aiReferences: _angular_core.InputSignal<AITableReferences>;
|
|
3298
|
+
aiBuildRenderDataFn: _angular_core.InputSignal<((aiTable: AITable) => AITableValue) | undefined>;
|
|
3299
|
+
aiBuildGroupLinearRowsFn: _angular_core.InputSignal<((aiTable: AITable) => AITableLinearRow[] | null) | undefined>;
|
|
3300
|
+
aiSortKeysMap: _angular_core.InputSignal<Partial<Record<AITableFieldType, string>> | undefined>;
|
|
3301
|
+
aiGetI18nTextByKey: _angular_core.InputSignal<((key: AITableGridI18nKey | string) => string | undefined) | undefined>;
|
|
3302
|
+
aiKeywords: _angular_core.InputSignal<string | undefined>;
|
|
3303
|
+
aiFrozenColumnCountFn: _angular_core.InputSignal<((containerWidth: number) => number) | undefined>;
|
|
3304
|
+
aiRecordHeight: _angular_core.InputSignal<AITableRecordHeightType>;
|
|
3305
|
+
AITableFieldType: typeof AITableFieldType;
|
|
3306
|
+
AITableSelectOptionStyle: typeof AITableSelectOptionStyle;
|
|
3307
|
+
aiTable: AITable;
|
|
3308
|
+
isSelectedAll: Signal<boolean>;
|
|
3309
|
+
aiTableInitialized: _angular_core.OutputEmitterRef<AITable>;
|
|
3310
|
+
aiAddRecord: _angular_core.OutputEmitterRef<AddRecordOptions>;
|
|
3311
|
+
aiRemoveRecord: _angular_core.OutputEmitterRef<IdPath[]>;
|
|
3312
|
+
aiAddField: _angular_core.OutputEmitterRef<AddFieldOptions>;
|
|
3313
|
+
aiCopyRecords: _angular_core.OutputEmitterRef<CopyRecordOptions>;
|
|
3314
|
+
aiMoveField: _angular_core.OutputEmitterRef<MoveFieldOptions>;
|
|
3315
|
+
aiUpdateFieldValues: _angular_core.OutputEmitterRef<UpdateFieldValueOptions<unknown>[]>;
|
|
3316
|
+
aiSetField: _angular_core.OutputEmitterRef<AITableField>;
|
|
3317
|
+
aiSetFieldWidth: _angular_core.OutputEmitterRef<SetFieldWidthOptions>;
|
|
3318
|
+
aiSetFieldStatType: _angular_core.OutputEmitterRef<SetFieldStatTypeOptions>;
|
|
3319
|
+
aiMoveRecords: _angular_core.OutputEmitterRef<MoveRecordOptions>;
|
|
3320
|
+
aiClick: _angular_core.OutputEmitterRef<KoEventObjectOutput<MouseEvent>>;
|
|
3321
|
+
aiDbClick: _angular_core.OutputEmitterRef<KoEventObjectOutput<MouseEvent>>;
|
|
3322
|
+
aiRowGroupCollapseClick: _angular_core.OutputEmitterRef<string>;
|
|
3323
|
+
fieldMenus: Signal<AITableFieldMenuItem[]>;
|
|
3324
|
+
mouseoverRef: ThyPopoverRef<any>;
|
|
3325
|
+
gridData: Signal<AITableValue>;
|
|
3326
|
+
protected ngZone: NgZone;
|
|
3327
|
+
protected elementRef: ElementRef<any>;
|
|
3328
|
+
protected destroyRef: DestroyRef;
|
|
3329
|
+
protected aiTableGridFieldService: AITableGridFieldService;
|
|
3330
|
+
protected aiTableGridEventService: AITableGridEventService;
|
|
3331
|
+
ngOnInit(): void;
|
|
3332
|
+
initAITable(): void;
|
|
3333
|
+
initService(): void;
|
|
3334
|
+
addRecord(options?: AddRecordOptions): void;
|
|
3335
|
+
copyRecords(options: CopyRecordOptions): void;
|
|
3336
|
+
toggleSelectRecord(recordId: string): void;
|
|
3337
|
+
toggleSelectAll(checked: boolean): void;
|
|
3338
|
+
addField(gridColumnBlank?: HTMLElement, position?: {
|
|
3339
|
+
x: number;
|
|
3340
|
+
y: number;
|
|
3341
|
+
}): void;
|
|
3342
|
+
subscribeEvents(): void;
|
|
3343
|
+
private dblClick;
|
|
3344
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableGridBase, never>;
|
|
3345
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableGridBase, "ai-table-grid-base", never, { "aiRecords": { "alias": "aiRecords"; "required": true; "isSignal": true; }; "aiFields": { "alias": "aiFields"; "required": true; "isSignal": true; }; "aiContextMenuItems": { "alias": "aiContextMenuItems"; "required": false; "isSignal": true; }; "aiFieldConfig": { "alias": "aiFieldConfig"; "required": false; "isSignal": true; }; "aiReadonly": { "alias": "aiReadonly"; "required": false; "isSignal": true; }; "aiPlugins": { "alias": "aiPlugins"; "required": false; "isSignal": true; }; "aiMaxFields": { "alias": "aiMaxFields"; "required": false; "isSignal": true; }; "aiMaxRecords": { "alias": "aiMaxRecords"; "required": false; "isSignal": true; }; "aiMaxSelectOptions": { "alias": "aiMaxSelectOptions"; "required": false; "isSignal": true; }; "aiReferences": { "alias": "aiReferences"; "required": true; "isSignal": true; }; "aiBuildRenderDataFn": { "alias": "aiBuildRenderDataFn"; "required": false; "isSignal": true; }; "aiBuildGroupLinearRowsFn": { "alias": "aiBuildGroupLinearRowsFn"; "required": false; "isSignal": true; }; "aiSortKeysMap": { "alias": "aiSortKeysMap"; "required": false; "isSignal": true; }; "aiGetI18nTextByKey": { "alias": "aiGetI18nTextByKey"; "required": false; "isSignal": true; }; "aiKeywords": { "alias": "aiKeywords"; "required": false; "isSignal": true; }; "aiFrozenColumnCountFn": { "alias": "aiFrozenColumnCountFn"; "required": false; "isSignal": true; }; "aiRecordHeight": { "alias": "aiRecordHeight"; "required": false; "isSignal": true; }; }, { "aiRecords": "aiRecordsChange"; "aiFields": "aiFieldsChange"; "aiTableInitialized": "aiTableInitialized"; "aiAddRecord": "aiAddRecord"; "aiRemoveRecord": "aiRemoveRecord"; "aiAddField": "aiAddField"; "aiCopyRecords": "aiCopyRecords"; "aiMoveField": "aiMoveField"; "aiUpdateFieldValues": "aiUpdateFieldValues"; "aiSetField": "aiSetField"; "aiSetFieldWidth": "aiSetFieldWidth"; "aiSetFieldStatType": "aiSetFieldStatType"; "aiMoveRecords": "aiMoveRecords"; "aiClick": "aiClick"; "aiDbClick": "aiDbClick"; "aiRowGroupCollapseClick": "aiRowGroupCollapseClick"; }, never, never, true, never>;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
declare class AITableDomGrid extends AITableGridBase implements OnInit {
|
|
3349
|
+
ngOnInit(): void;
|
|
3350
|
+
openFieldMenu(e: Event, field: AITableField, fieldAction: HTMLElement): void;
|
|
3351
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableDomGrid, never>;
|
|
3352
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableDomGrid, "ai-table-dom-grid", never, {}, {}, never, never, true, never>;
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
declare class AITableGrid extends AITableGridBase implements OnInit, OnDestroy {
|
|
3356
|
+
private viewContainerRef;
|
|
3357
|
+
private isDragSelectionAutoScrolling;
|
|
3358
|
+
private dragSelectState;
|
|
3359
|
+
private dragFillState;
|
|
3360
|
+
private notifyService;
|
|
3361
|
+
private scrollControllerService;
|
|
3362
|
+
private recordDetailService;
|
|
3363
|
+
private isPopoverOpen;
|
|
3364
|
+
timer: number | null;
|
|
3365
|
+
resizeObserver: ResizeObserver;
|
|
3366
|
+
fieldHeadHeight: number;
|
|
3367
|
+
containerRect: _angular_core.WritableSignal<{
|
|
3368
|
+
width: number;
|
|
3369
|
+
height: number;
|
|
3370
|
+
}>;
|
|
3371
|
+
frozenColumnCount: Signal<number>;
|
|
3372
|
+
hasContainerRect: Signal<boolean>;
|
|
3373
|
+
container: Signal<ElementRef<any> | undefined>;
|
|
3374
|
+
verticalBarRef: Signal<ElementRef<any> | undefined>;
|
|
3375
|
+
horizontalBarRef: Signal<ElementRef<any> | undefined>;
|
|
3376
|
+
linearRows: Signal<_ai_table_grid.AITableLinearRow[]>;
|
|
3377
|
+
domToolTips: Signal<{
|
|
3378
|
+
top: number;
|
|
3379
|
+
height: 44 | 88 | 148;
|
|
3380
|
+
left: number;
|
|
3381
|
+
tooltip: string;
|
|
3382
|
+
}[]>;
|
|
3383
|
+
toolTipRowIndices: Signal<{
|
|
3384
|
+
tooltip: string;
|
|
3385
|
+
rowIndex: number;
|
|
3386
|
+
}[]>;
|
|
3387
|
+
visibleColumnsIndexMap: Signal<Map<string, number>>;
|
|
3388
|
+
fieldOptions: Signal<AITableFieldOption[]>;
|
|
3389
|
+
fieldOptionMap: Signal<Map<string, AITableFieldOption>>;
|
|
3390
|
+
visibleRowsIndexMap: Signal<Map<string, number>>;
|
|
3391
|
+
containerElement: Signal<any>;
|
|
3392
|
+
trackBy: (index: number, item: any) => any;
|
|
3393
|
+
rendererConfig: Signal<AITableRendererConfig>;
|
|
3394
|
+
coordinate: Signal<Coordinate>;
|
|
3395
|
+
scrollState: Signal<_ai_table_grid.AITableScrollState>;
|
|
3396
|
+
scrollTotalHeight: Signal<number>;
|
|
3397
|
+
scrollbarWidth: Signal<number>;
|
|
3398
|
+
i18nTexts: Signal<{
|
|
3399
|
+
rowAddFilterTooltip: string;
|
|
3400
|
+
}>;
|
|
3401
|
+
rowIndicesMap: Signal<IndicesMap>;
|
|
3402
|
+
private actions;
|
|
3403
|
+
constructor();
|
|
3404
|
+
ngOnInit(): void;
|
|
3405
|
+
ngOnDestroy(): void;
|
|
3406
|
+
private initContext;
|
|
3407
|
+
private initCustomField;
|
|
3408
|
+
private setKeywordsMatchedCells;
|
|
3409
|
+
private scrollToMatchedCell;
|
|
3410
|
+
stageMousemove(e: KoEventObject<MouseEvent>): void;
|
|
3411
|
+
stageMousedown(e: KoEventObject<MouseEvent>): void;
|
|
3412
|
+
stageMouseup(e: KoEventObject<MouseEvent>): void;
|
|
3413
|
+
private performFill;
|
|
3414
|
+
stageMouseleave(e: KoEventObject<MouseEvent>): void;
|
|
3415
|
+
stageWheel(e: KoEventObject<WheelEvent>): void;
|
|
3416
|
+
stageContextmenu(e: KoEventObject<MouseEvent>): void;
|
|
3417
|
+
stageClick(e: KoEventObject<MouseEvent>): void;
|
|
3418
|
+
stageDblclick(e: KoEventObject<MouseEvent>): void;
|
|
3419
|
+
scrollAction: (options: ScrollActionOptions) => void;
|
|
3420
|
+
private setDefaultPointPosition;
|
|
3421
|
+
private bindScrollBarScroll;
|
|
3422
|
+
private bindGlobalMousedown;
|
|
3423
|
+
private subscribeCopyEvent;
|
|
3424
|
+
private subscribePasteEvent;
|
|
3425
|
+
private stopEvent;
|
|
3426
|
+
private updateDragSelectState;
|
|
3427
|
+
private updateDragFillState;
|
|
3428
|
+
private resetScrolling;
|
|
3429
|
+
private horizontalScroll;
|
|
3430
|
+
private verticalScroll;
|
|
3431
|
+
private setContainerRect;
|
|
3432
|
+
private containerResizeListener;
|
|
3433
|
+
private getNextRecordRowId;
|
|
3434
|
+
private getNextCell;
|
|
3435
|
+
private bindShortcuts;
|
|
3436
|
+
private copyCells;
|
|
3437
|
+
private pasteCells;
|
|
3438
|
+
private handleFieldDragStart;
|
|
3439
|
+
private handleFieldWidthDragStart;
|
|
3440
|
+
private handleRowDragStart;
|
|
3441
|
+
dragEnd(data: DragEndData): void;
|
|
3442
|
+
setDragState(config: AITableDragState): void;
|
|
3443
|
+
scrollViewToCell(position: {
|
|
3444
|
+
x: number;
|
|
3445
|
+
y: number;
|
|
3446
|
+
}, startCell: AIRecordFieldIdPath, endCell: AIRecordFieldIdPath, coordinate: Coordinate, horizontalBarRef?: ElementRef<HTMLElement>, verticalBarRef?: ElementRef<HTMLElement>): void;
|
|
3447
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableGrid, never>;
|
|
3448
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AITableGrid, "ai-table-grid", never, {}, {}, never, never, true, never>;
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
declare class SelectOptionPipe implements PipeTransform {
|
|
3452
|
+
transform(_id: string, options: AITableSelectOption[]): 0 | AITableSelectOption | undefined;
|
|
3453
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectOptionPipe, never>;
|
|
3454
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SelectOptionPipe, "selectOption", true>;
|
|
3455
|
+
}
|
|
3456
|
+
declare class SelectOptionsPipe implements PipeTransform {
|
|
3457
|
+
transform(ids: string[], options?: AITableSelectOption[]): (AITableSelectOption | undefined)[];
|
|
3458
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectOptionsPipe, never>;
|
|
3459
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SelectOptionsPipe, "selectOptions", true>;
|
|
3460
|
+
}
|
|
3461
|
+
declare class IsSelectRecordPipe implements PipeTransform {
|
|
3462
|
+
transform(recordId: string, selection: AITableSelection): boolean;
|
|
3463
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IsSelectRecordPipe, never>;
|
|
3464
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<IsSelectRecordPipe, "isSelectRecord", true>;
|
|
3465
|
+
}
|
|
3466
|
+
declare class UserPipe implements PipeTransform {
|
|
3467
|
+
transform(values: string[], references: AITableReferences): _ai_table_utils.AITableUserInfo[];
|
|
3468
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserPipe, never>;
|
|
3469
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<UserPipe, "user", true>;
|
|
3470
|
+
}
|
|
3471
|
+
declare class SelectSettingPipe implements PipeTransform {
|
|
3472
|
+
transform(settings: AITableFieldSettings): SelectSettings;
|
|
3473
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectSettingPipe, never>;
|
|
3474
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SelectSettingPipe, "selectSetting", true>;
|
|
3475
|
+
}
|
|
3476
|
+
declare class MemberSettingPipe implements PipeTransform {
|
|
3477
|
+
transform(settings: AITableFieldSettings): MemberSettings;
|
|
3478
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MemberSettingPipe, never>;
|
|
3479
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<MemberSettingPipe, "memberSetting", true>;
|
|
3480
|
+
}
|
|
3481
|
+
declare class AITableFieldIsSameOptionPipe implements PipeTransform {
|
|
3482
|
+
transform(fieldOption: AITableFieldOption, field: Partial<AITableField>): boolean;
|
|
3483
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AITableFieldIsSameOptionPipe, never>;
|
|
3484
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AITableFieldIsSameOptionPipe, "fieldIsSameOption", true>;
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
interface RecordDetailConfig {
|
|
3488
|
+
readonly viewContainerRef: ViewContainerRef;
|
|
3489
|
+
readonly aiTable: AITable;
|
|
3490
|
+
readonly recordId: string;
|
|
3491
|
+
readonly references: AITableReferences;
|
|
3492
|
+
readonly actions: AITableActions;
|
|
3493
|
+
}
|
|
3494
|
+
declare class RecordDetailService {
|
|
3495
|
+
private thySlide;
|
|
3496
|
+
private currentSlideRef;
|
|
3497
|
+
private clickSubscription;
|
|
3498
|
+
private config;
|
|
3499
|
+
open(config: RecordDetailConfig): ThySlideRef<RecordDetailComponent>;
|
|
3500
|
+
close(): void;
|
|
3501
|
+
isOpen(): boolean;
|
|
3502
|
+
private isClickInsideTableOrPanel;
|
|
3503
|
+
private setupDocumentClickListener;
|
|
3504
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RecordDetailService, never>;
|
|
3505
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RecordDetailService>;
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
export { AITable, AITableActionIcon, AITableAddField, AITableAreaType, AITableAvatarSize, AITableAvatarType, AITableBackground, AITableCellAttachment, AITableCellCheckbox, AITableCellLink, AITableCellProgress, AITableCellRate, AITableCellRichText, AITableCellText, AITableCells, AITableCheckType, AITableColumnHeads, AITableContextMenu, AITableDomGrid, AITableExpandRecord, AITableFieldHead, AITableFieldIcon, AITableFieldIsSameOptionPipe, AITableFieldSetting, AITableFrozenCells, AITableFrozenColumnHeads, AITableFrozenGroups, AITableFrozenPlaceholderCells, AITableGrid, AITableGridEventService, AITableGridFieldService, AITableGridI18nKey, AITableGridI18nText, AITableGroups, AITableHoverRowHeads, AITableIcon, AITableMemberType, AITableMouseDownType, AITableOtherRows, AITablePlaceholderCells, AITableQueries, AITableRenderAtomType, AITableRenderer, AITableRowType, AITableScrollableGroup, AITableSelectAllState, AITableShadow, AITableTextComponent, AI_TABLE_ACTION_COMMON_RADIUS, AI_TABLE_ACTION_COMMON_RIGHT_PADDING, AI_TABLE_ACTION_COMMON_SIZE, AI_TABLE_AUTO_SCROLL_BOTTOM_THRESHOLD, AI_TABLE_AUTO_SCROLL_LEFT_THRESHOLD, AI_TABLE_AUTO_SCROLL_RIGHT_THRESHOLD, AI_TABLE_AUTO_SCROLL_TOP_THRESHOLD, AI_TABLE_BLANK, AI_TABLE_CELL, AI_TABLE_CELL_ACTIVE_BORDER_WIDTH, AI_TABLE_CELL_ADD_ITEM_BUTTON_SIZE, AI_TABLE_CELL_ATTACHMENT_ADD, AI_TABLE_CELL_ATTACHMENT_FILE, AI_TABLE_CELL_BORDER, AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE, AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE_OFFSET, AI_TABLE_CELL_EDIT, AI_TABLE_CELL_EMOJI_PADDING, AI_TABLE_CELL_EMOJI_SIZE, AI_TABLE_CELL_LINE_BORDER, AI_TABLE_CELL_MAX_ROW_COUNT, AI_TABLE_CELL_MEMBER_ITEM_HEIGHT, AI_TABLE_CELL_MEMBER_ITEM_PADDING, AI_TABLE_CELL_MEMBER_MAX_HEIGHT, AI_TABLE_CELL_MULTI_DOT_RADIUS, AI_TABLE_CELL_MULTI_ITEM_DEFAULT_LINE_SPACING, AI_TABLE_CELL_MULTI_ITEM_DEFAULT_MIN_WIDTH, AI_TABLE_CELL_MULTI_ITEM_MARGIN_LEFT, AI_TABLE_CELL_MULTI_ITEM_MARGIN_TOP, AI_TABLE_CELL_MULTI_ITEM_MIN_WIDTH, AI_TABLE_CELL_MULTI_PADDING_LEFT, AI_TABLE_CELL_MULTI_PADDING_TOP, AI_TABLE_CELL_MULTI_SELECT_ITEM_DOT_MIN_WIDTH, AI_TABLE_CELL_MULTI_SELECT_ITEM_PIECE_MIN_WIDTH, AI_TABLE_CELL_MULTI_SELECT_ITEM_TAG_MIN_WIDTH, AI_TABLE_CELL_PADDING, AI_TABLE_COMMON_FONT_SIZE, AI_TABLE_DEFAULT_COLUMN_WIDTH, AI_TABLE_DOT_RADIUS, AI_TABLE_EXPAND_RECORD_ICON, AI_TABLE_FIELD_ADD_BUTTON, AI_TABLE_FIELD_ADD_BUTTON_WIDTH, AI_TABLE_FIELD_HEAD, AI_TABLE_FIELD_HEAD_HEIGHT, AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE, AI_TABLE_FIELD_HEAD_MORE, AI_TABLE_FIELD_HEAD_OPACITY_LINE, AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX, AI_TABLE_FIELD_HEAD_TEXT_MIN_WIDTH, AI_TABLE_FIELD_MAX_WIDTH, AI_TABLE_FIELD_MIDDLE_WIDTH, AI_TABLE_FIELD_MINI_WIDTH, AI_TABLE_FIELD_MIN_WIDTH, AI_TABLE_FIELD_STAT_BG, AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT, AI_TABLE_FIELD_STAT_INNER_HEIGHT, AI_TABLE_FILE_ICON_ITEM_HEIGHT, AI_TABLE_FILE_ICON_SIZE, AI_TABLE_FILE_ITEM_MARGIN_RIGHT, AI_TABLE_FILL_HANDLE, AI_TABLE_GRID_FIELD_SERVICE_MAP, AI_TABLE_GROUP_MAX_LEVEL, AI_TABLE_ICON_COMMON_SIZE, AI_TABLE_INDEX_FIELD_TEXT, AI_TABLE_MEMBER_AVATAR_SIZE, AI_TABLE_MEMBER_ITEM_AVATAR_MARGIN_RIGHT, AI_TABLE_MEMBER_ITEM_PADDING_RIGHT, AI_TABLE_MIN_TEXT_WIDTH, AI_TABLE_OFFSET, AI_TABLE_OPTION_ITEM_FONT_SIZE, AI_TABLE_OPTION_ITEM_HEIGHT, AI_TABLE_OPTION_ITEM_PADDING, AI_TABLE_OPTION_ITEM_RADIUS, AI_TABLE_OPTION_MULTI_ITEM_FONT_SIZE, AI_TABLE_PIECE_RADIUS, AI_TABLE_PIECE_WIDTH, AI_TABLE_POPOVER_LEFT_OFFSET, AI_TABLE_PREVENT_CLEAR_SELECTION_CLASS, AI_TABLE_PROGRESS_BAR_HEIGHT, AI_TABLE_PROGRESS_BAR_POINTER_HEIGHT, AI_TABLE_PROGRESS_BAR_POINTER_WIDTH, AI_TABLE_PROGRESS_BAR_RADIUS, AI_TABLE_PROGRESS_TEXT_WIDTH, AI_TABLE_RATE_MAX, AI_TABLE_RECORD_HEIGHT_LEVELS, AI_TABLE_ROW_ADD_BUTTON, AI_TABLE_ROW_BLANK_HEIGHT, AI_TABLE_ROW_DRAG, AI_TABLE_ROW_DRAG_ICON_WIDTH, AI_TABLE_ROW_GROUP_COLLAPSE_BUTTON, AI_TABLE_ROW_GROUP_OFFSET, AI_TABLE_ROW_HEAD, AI_TABLE_ROW_HEAD_SIZE, AI_TABLE_ROW_HEAD_WIDTH, AI_TABLE_ROW_HEAD_WIDTH_AND_DRAG_ICON_WIDTH, AI_TABLE_ROW_HEIGHT, AI_TABLE_ROW_SELECT_CHECKBOX, AI_TABLE_SCROLL_BAR_PADDING, AI_TABLE_SCROLL_BAR_SIZE, AI_TABLE_SHADOW_DEFAULT_WIDTH, AI_TABLE_TAG_FONT_SIZE, AI_TABLE_TAG_PADDING, AI_TABLE_TEXT_GAP, AI_TABLE_TEXT_LINE_HEIGHT, AbstractEditCellEditor, AddOutlinedPath, AngleDownPath, AngleRightPath, AttachmentField, AttachmentPath, CellBaseLayout, CellDrawer, Check, CheckboxMenuSort, Colors, ColumnCalendarFilledPath, ColumnCheckboxFilledPath, ColumnLinkOutlinedPath, ColumnMemberFilledPath, ColumnMultipleFillPath, ColumnNumberFilledPath, ColumnProgressFilledPath, ColumnRatingFilledPath, ColumnRichTextFilledPath, ColumnSelectFilledPath, ColumnTextFilledPath, Coordinate, CoverCellBase, DBL_CLICK_EDIT_TYPE, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, DEFAULT_FONT_WEIGHT, DEFAULT_ICON_SHAPE, DEFAULT_ICON_SIZE, DEFAULT_POINT_POSITION, DEFAULT_SCROLL_STATE, DEFAULT_TEXT_ALIGN_CENTER, DEFAULT_TEXT_ALIGN_LEFT, DEFAULT_TEXT_ALIGN_RIGHT, DEFAULT_TEXT_DECORATION, DEFAULT_TEXT_ELLIPSIS, DEFAULT_TEXT_FILL, DEFAULT_TEXT_LINE_HEIGHT, DEFAULT_TEXT_LISTENING, DEFAULT_TEXT_MAX_CACHE, DEFAULT_TEXT_MAX_HEIGHT, DEFAULT_TEXT_SCALE, DEFAULT_TEXT_TRANSFORMS_ENABLED, DEFAULT_TEXT_VERTICAL_ALIGN_MIDDLE, DEFAULT_TEXT_VERTICAL_ALIGN_TOP, DEFAULT_TEXT_WRAP, DEFAULT_WRAP_TEXT_MAX_ROW, DateCellEditorComponent, DateField, DepartmentOutlinedPath, Drawer, DynamicCellEditorComponent, EditPath, ExpandRecordPath, FONT_SIZE_SM, FieldModelMap, GROUP_STAT_DEFAULT_FONT_SIZE, IconPathMap, IsSelectRecordPipe, KO_CONTAINER_TOKEN, KoComponent, KoContainer, KoShape, KoShapeTypes, KoStage, LinkCellEditorComponent, LinkField, MIN_COLUMN_WIDTH, MemberField, MemberSettingPipe, MoreStandOutlinedPath, NumberCellEditorComponent, NumberField, ProgressField, RateField, RecordDetailComponent, RecordDetailService, RendererContext, RichTextField, RowDragPath, RowHeight, SelectCellEditorComponent, SelectField, SelectOptionComponent, SelectOptionPipe, SelectOptionsPipe, SelectSettingPipe, StarFill, TextCellEditorComponent, TextField, TextMeasure, Unchecked, UserPipe, WebOutlinedPath, aiTableFragmentAttribute, aiTableImageConfigToKonvaConfig, aiTableRectConfigToKonvaConfig, aiTableTextConfigToKonvaConfig, applyNodeProps, buildClipboardData, buildGridLinearRows, buildNormalLinearRows, castToString, cellDrawer, clearCells, clearCoverCell, clearSelectedCells, clearSelection, clearSelectionFields, clearSelectionRecords, closeEditingCell, closeExpendCell, compareNumber, compareOption, compareString, createAITable, createActiveCellBorder, createCells, createDefaultField, createDefaultFieldName, createListener, dragFillHighlightArea, drawer, expandCell, extractLinkUrl, extractText, generateNewFieldName, generateNewName, generateTargetName, getAvatarBgColor, getAvatarShortName, getCellEditorBorderSpace, getCellHorizontalPosition, getColumnIndicesSizeMap, getCoverCell, getDateFieldValues, getDefaultFieldOptions, getDefaultI18nTextByKey, getDetailByTargetName, getEditorBoxOffset, getEditorSpace, getFieldIconPath, getFieldOptionByField, getFieldOptionMap, getFieldOptions, getFieldValue, getFileThumbnailSvgString, getFillDirection, getGroupLastRecordIndex, getHoverEditorBoxOffset, getHoverEditorSpace, getI18nTextByKey, getMousePosition, getName, getNextRecordByActiveCell, getOptionsByFieldAndRecords, getPlaceHolderCellsConfigs, getPreviousRecordByActiveCell, getRecordNavigationInfo, getStartAndEndCell, getSystemFieldValue, getTargetName, getTextWidth, getVisibleRangeInfo, graphemeSplitter, handleMouseStyle, hasIntersect, idCreator, idsCreator, imageCache, isActiveCell, isCellMatchKeywords, isClipboardReadSupported, isClipboardReadTextSupported, isClipboardWriteSupported, isClipboardWriteTextSupported, isEmptyOrNot, isMac, isMeetFilter, isSameFieldOption, isSelectedField, isSystemField, isVirtualKey, isWindows, isWindowsOS, isWithinFrozenColumnBoundary, performFill, processPastedValueForSelect, readFromClipboard, scrollMax, scrollToMatchedCell, selectCells, selectField, setActiveCell, setCollapseDisabled, setEditingCell, setExpandCellInfo, setMouseStyle, setSelection, shortIdCreator, shortIdsCreator, statDateRangeOfDays, statDateRangeOfMonths, statEarliestTime, statLatestTime, stringInclude, textDataCache, toAttachmentFieldValue, toDateFieldValue, toLinkFieldValue, toMemberFieldValue, toNumberFieldValue, toProgressFieldValue, toRateFieldValue, toRichTextFieldValue, toSelectFieldValue, toTextFieldValue, toggleSelectAllRecords, toggleSelectRecord, transformToCellText, updatePicture, writeToAITable, writeToClipboard, zhIntlCollator };
|
|
3509
|
+
export type { AIFieldConfig, AIPlugin, AITableActionIconConfig, AITableActions, AITableAddFieldConfig, AITableArc, AITableAttachmentConfig, AITableBackgroundConfig, AITableCell, AITableCellInfo, AITableCellItem, AITableCellItemRenderInfo, AITableCellLayout, AITableCellMetaData, AITableCellMetaDataMap, AITableCellStyle, AITableCellsConfig, AITableCellsDrawerConfig, AITableColumnHeadsConfig, AITableContent, AITableContext, AITableContextMenuItem, AITableContextMenuOptions, AITableCoverCellConfig, AITableCtxStyle, AITableCustomFieldConfig, AITableDragFillState, AITableDragState, AITableEditFieldOptions, AITableEditPosition, AITableExpandRecordConfig, AITableFieldHeadConfig, AITableFieldMenuItem, AITableFieldMenuOptions, AITableFieldStatConfig, AITableFieldStatsConfig, AITableFieldTypeIconConfig, AITableFillHandleConfig, AITableFontWeight, AITableGraph, AITableGridCellRenderSchema, AITableGridData, AITableGroupConfig, AITableGroupOptionsConfig, AITableGroupStatConfig, AITableGroupStatRow, AITableIconConfig, AITableImage, AITableLabel, AITableLayout, AITableLine, AITableLinearRow, AITableLinearRowAdd, AITableLinearRowBase, AITableLinearRowBlank, AITableLinearRowGroup, AITableLinearRowRecord, AITableOpenEditOptions, AITablePointPosition, AITableRect, AITableRender, AITableRenderAtom, AITableRenderStyle, AITableRendererConfig, AITableRowHeadsConfig, AITableScrollState, AITableSelectField, AITableSelection, AITableTargetNameDetail, AITableTargetNameOptions, AITableText, AITableTextEllipsis, AITableTextMeasureOptions, AITableWrapText, AITableWrapTextData, AITableWrapTextResult, ClipboardContent, FieldOperable, IndicesMap, KoEventObject, KoEventObjectOutput, KoListenerRecord, KoPropsType, KoShapeConfigTypes, RecordDetailConfig, ScrollActionOptions, ScrollableGroupConfig };
|
|
3510
|
+
//# sourceMappingURL=index.d.ts.map
|