@ai-table/grid 0.4.2 → 0.4.4
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/fesm2022/ai-table-grid.mjs +661 -932
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/index.d.ts +3522 -2
- package/index.d.ts.map +1 -1
- package/package.json +3 -3
- 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 -35
- 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 -12
- 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/record-detail/dynamic-cell-editor.component.d.ts +0 -24
- package/components/record-detail/dynamic-cell-editor.component.d.ts.map +0 -1
- package/components/record-detail/index.d.ts +0 -3
- package/components/record-detail/index.d.ts.map +0 -1
- package/components/record-detail/record-detail.component.d.ts +0 -52
- package/components/record-detail/record-detail.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 -28
- 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 -104
- 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 -71
- package/grid-base.component.d.ts.map +0 -1
- package/grid.component.d.ts +0 -103
- 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/expand-record.component.d.ts +0 -10
- package/renderer/components/expand-record.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 -22
- 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 -111
- 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 -4
- package/services/index.d.ts.map +0 -1
- package/services/record-detail.service.d.ts +0 -28
- package/services/record-detail.service.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 -165
- 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 -136
- 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 -17
- 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 -7
- 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 -14
- 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EAEtB,YAAY,EACZ,YAAY,EAEZ,kBAAkB,EAClB,UAAU,EAEV,iBAAiB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,qBAAa,aAAc,SAAQ,iBAAkB,YAAW,aAAa,CAAC,MAAM,EAAE,kBAAkB,CAAC;IAC5F,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY;IAIxE,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,kBAAkB;IAmBrF,OAAO,CAAC,UAAU,EAAE,kBAAkB,EAAE,UAAU,EAAE,kBAAkB,GAAG,MAAM;IAM/E,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAC5D,UAAU,GAAG,IAAI;CASvB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AITableFilterCondition, DateFieldBase, FieldOptions, AITableField, DateFieldValue, FieldValue } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class DateField extends DateFieldBase implements FieldOperable<string, DateFieldValue> {
|
|
4
|
-
constructor();
|
|
5
|
-
transformCellValue(cellValue: FieldValue, options: FieldOptions): any;
|
|
6
|
-
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: DateFieldValue): boolean;
|
|
7
|
-
compare(cellValue1: DateFieldValue, cellValue2: DateFieldValue): number;
|
|
8
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
9
|
-
field: AITableField;
|
|
10
|
-
cellValue: FieldValue;
|
|
11
|
-
}): FieldValue | null;
|
|
12
|
-
getTimeRange(value: string | number | number[]): number[];
|
|
13
|
-
}
|
|
14
|
-
export declare function toDateFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
15
|
-
field: AITableField;
|
|
16
|
-
cellValue: FieldValue;
|
|
17
|
-
}): FieldValue | null;
|
|
18
|
-
//# sourceMappingURL=date.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/date.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,sBAAsB,EAEtB,aAAa,EACb,YAAY,EAEZ,YAAY,EAEZ,cAAc,EACd,UAAU,EAMb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKlD,qBAAa,SAAU,SAAQ,aAAc,YAAW,aAAa,CAAC,MAAM,EAAE,cAAc,CAAC;;IAWhF,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY;IAIxE,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,cAAc;IAuBjF,OAAO,CAAC,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,GAAG,MAAM;IAMvE,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAC5D,UAAU,GAAG,IAAI;IAIpB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE;CA6BjD;AAED,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAC5D,UAAU,GAAG,IAAI,CAqBnB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from '../../../core';
|
|
2
|
-
export * from './attachment';
|
|
3
|
-
export * from './date';
|
|
4
|
-
export * from './link';
|
|
5
|
-
export * from './member';
|
|
6
|
-
export * from './number';
|
|
7
|
-
export * from './progress';
|
|
8
|
-
export * from './rate';
|
|
9
|
-
export * from './rich-text';
|
|
10
|
-
export * from './select';
|
|
11
|
-
export * from './text';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AITableField, FieldValue, LinkFieldValue, LinkFieldBase, AITableFilterCondition } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class LinkField extends LinkFieldBase implements FieldOperable<string, LinkFieldValue> {
|
|
4
|
-
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: LinkFieldValue): boolean;
|
|
5
|
-
compare(cellValue1: LinkFieldValue, cellValue2: LinkFieldValue): number;
|
|
6
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
7
|
-
field: AITableField;
|
|
8
|
-
cellValue: FieldValue;
|
|
9
|
-
} | null): FieldValue | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function toLinkFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
12
|
-
field: AITableField;
|
|
13
|
-
cellValue: FieldValue;
|
|
14
|
-
} | null): FieldValue | null;
|
|
15
|
-
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/link.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAEZ,UAAU,EACV,cAAc,EACd,aAAa,EACb,sBAAsB,EAIzB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,SAAU,SAAQ,aAAc,YAAW,aAAa,CAAC,MAAM,EAAE,cAAc,CAAC;IACzF,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,cAAc;IAqBjF,OAAO,CAAC,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,GAAG,MAAM;IAIvE,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAAG,IAAI,GACnE,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,GACnE,UAAU,GAAG,IAAI,CAiBnB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AITableFilterCondition, MemberFieldBase, AITableField, AITableReferences, FieldValue, MemberFieldValue, FieldOptions } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class MemberField extends MemberFieldBase implements FieldOperable<string, MemberFieldValue> {
|
|
4
|
-
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: MemberFieldValue): boolean;
|
|
5
|
-
compare(cellValue1: MemberFieldValue, cellValue2: MemberFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
6
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
7
|
-
field: AITableField;
|
|
8
|
-
cellValue: FieldValue;
|
|
9
|
-
}, references?: AITableReferences): FieldValue | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function toMemberFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
12
|
-
field: AITableField;
|
|
13
|
-
cellValue: FieldValue;
|
|
14
|
-
}, references?: AITableReferences): FieldValue | null;
|
|
15
|
-
//# sourceMappingURL=member.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/member.ts"],"names":[],"mappings":"AACA,OAAO,EACH,sBAAsB,EACtB,eAAe,EACf,YAAY,EAEZ,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAKhB,YAAY,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,WAAY,SAAQ,eAAgB,YAAW,aAAa,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAC/F,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB;IAenF,OAAO,CACH,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,iBAAiB,EAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,GACtB,MAAM;IAMT,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,EAC3D,UAAU,CAAC,EAAE,iBAAiB,GAC/B,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,EAC3D,UAAU,CAAC,EAAE,iBAAiB,GAC/B,UAAU,GAAG,IAAI,CAwCnB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AITableField, AITableFilterCondition, FieldValue, NumberFieldValue, NumberFieldBase } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class NumberField extends NumberFieldBase implements FieldOperable<number, NumberFieldValue> {
|
|
4
|
-
isMeetFilter(condition: AITableFilterCondition<number>, cellValue: NumberFieldValue): boolean;
|
|
5
|
-
compare(cellValue1: NumberFieldValue, cellValue2: NumberFieldValue): number;
|
|
6
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
7
|
-
field: AITableField;
|
|
8
|
-
cellValue: FieldValue;
|
|
9
|
-
}): FieldValue | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function toNumberFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
12
|
-
field: AITableField;
|
|
13
|
-
cellValue: FieldValue;
|
|
14
|
-
}): NumberFieldValue | null;
|
|
15
|
-
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/number.ts"],"names":[],"mappings":"AACA,OAAO,EACH,YAAY,EAEZ,sBAAsB,EAEtB,UAAU,EACV,gBAAgB,EAEhB,eAAe,EAElB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,WAAY,SAAQ,eAAgB,YAAW,aAAa,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAC/F,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB;IAuBnF,OAAO,CAAC,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,GAAG,MAAM;IAI3E,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAC5D,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAC5D,gBAAgB,GAAG,IAAI,CA2BzB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AITableField, AITableFilterCondition, FieldValue, ProgressFieldValue, ProgressFieldBase } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class ProgressField extends ProgressFieldBase implements FieldOperable<number, ProgressFieldValue> {
|
|
4
|
-
isMeetFilter(condition: AITableFilterCondition<number>, cellValue: ProgressFieldValue): boolean;
|
|
5
|
-
compare(cellValue1: ProgressFieldValue, cellValue2: ProgressFieldValue): number;
|
|
6
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
7
|
-
field: AITableField;
|
|
8
|
-
cellValue: FieldValue;
|
|
9
|
-
}): FieldValue | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function toProgressFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
12
|
-
field: AITableField;
|
|
13
|
-
cellValue: FieldValue;
|
|
14
|
-
}): FieldValue | null;
|
|
15
|
-
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/progress.ts"],"names":[],"mappings":"AACA,OAAO,EACH,YAAY,EAEZ,sBAAsB,EAEtB,UAAU,EACV,kBAAkB,EAElB,iBAAiB,EAGpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,aAAc,SAAQ,iBAAkB,YAAW,aAAa,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACrG,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,kBAAkB;IAuBrF,OAAO,CAAC,UAAU,EAAE,kBAAkB,EAAE,UAAU,EAAE,kBAAkB,GAAG,MAAM;IAI/E,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAC5D,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAC5D,UAAU,GAAG,IAAI,CAqBnB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AITableField, AITableFilterCondition, FieldValue, RateFieldValue, RateFieldBase } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class RateField extends RateFieldBase implements FieldOperable<string[], RateFieldValue> {
|
|
4
|
-
isMeetFilter(condition: AITableFilterCondition<string[]>, cellValue: RateFieldValue): boolean;
|
|
5
|
-
compare(cellValue1: RateFieldValue, cellValue2: RateFieldValue): number;
|
|
6
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
7
|
-
field: AITableField;
|
|
8
|
-
cellValue: FieldValue;
|
|
9
|
-
}): FieldValue | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function toRateFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
12
|
-
field: AITableField;
|
|
13
|
-
cellValue: FieldValue;
|
|
14
|
-
}): FieldValue | null;
|
|
15
|
-
//# sourceMappingURL=rate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/rate.ts"],"names":[],"mappings":"AACA,OAAO,EACH,YAAY,EAEZ,sBAAsB,EAEtB,UAAU,EACV,cAAc,EAEd,aAAa,EAEhB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,qBAAa,SAAU,SAAQ,aAAc,YAAW,aAAa,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC;IAC3F,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,cAAc;IAiBnF,OAAO,CAAC,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,GAAG,MAAM;IAIvE,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAC5D,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAC5D,UAAU,GAAG,IAAI,CAsCnB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AITableField, AITableFilterCondition, AITableReferences, FieldOptions, FieldValue, RichTextFieldValue, RichTextFieldBase } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class RichTextField extends RichTextFieldBase implements FieldOperable<string, RichTextFieldValue> {
|
|
4
|
-
transformCellValue(cellValue: FieldValue, options: FieldOptions): any;
|
|
5
|
-
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: RichTextFieldValue, options: FieldOptions): boolean;
|
|
6
|
-
compare(cellValue1: RichTextFieldValue, cellValue2: RichTextFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
7
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
8
|
-
field: AITableField;
|
|
9
|
-
cellValue: FieldValue;
|
|
10
|
-
}, references?: AITableReferences, toFieldValue?: (text: string, cellValue: FieldValue) => RichTextFieldValue): FieldValue | null;
|
|
11
|
-
}
|
|
12
|
-
export declare function toRichTextFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
13
|
-
field: AITableField;
|
|
14
|
-
cellValue: FieldValue;
|
|
15
|
-
} | null, toFieldValue?: (text: string, cellValue: FieldValue) => FieldValue): RichTextFieldValue | null;
|
|
16
|
-
//# sourceMappingURL=rich-text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/rich-text.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAEZ,sBAAsB,EAEtB,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EAEpB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,aAAc,SAAQ,iBAAkB,YAAW,aAAa,CAAC,MAAM,EAAE,kBAAkB,CAAC;IAC5F,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY;IAIxE,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,YAAY;IAc5G,OAAO,CACH,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,iBAAiB,EAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,GACtB,MAAM;IAMT,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,EAC3D,UAAU,CAAC,EAAE,iBAAiB,EAC9B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,KAAK,kBAAkB,GAC3E,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,EAClE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,KAAK,UAAU,GACnE,kBAAkB,GAAG,IAAI,CAa3B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AITable } from '../../../core';
|
|
2
|
-
import { AITableFilterCondition, AITableReferences, SelectFieldBase, AITableField, AITableSelectOption, AITableSelectOptionStyle, FieldValue, SelectFieldValue, FieldOptions } from '@ai-table/utils';
|
|
3
|
-
import { FieldOperable } from '../field-operable';
|
|
4
|
-
export declare class SelectField extends SelectFieldBase implements FieldOperable<string, SelectFieldValue> {
|
|
5
|
-
isValid(cellValue: FieldValue): boolean;
|
|
6
|
-
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: SelectFieldValue, options: FieldOptions): boolean;
|
|
7
|
-
compare(cellValue1: SelectFieldValue, cellValue2: SelectFieldValue, references: AITableReferences, sortKey: string, options: FieldOptions): number;
|
|
8
|
-
toFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
9
|
-
field: AITableField;
|
|
10
|
-
cellValue: FieldValue;
|
|
11
|
-
} | null): FieldValue | null;
|
|
12
|
-
}
|
|
13
|
-
export declare function toSelectFieldValue(plainText: string, targetField: AITableField, originData?: {
|
|
14
|
-
field: AITableField;
|
|
15
|
-
cellValue: FieldValue;
|
|
16
|
-
} | null): SelectFieldValue | null;
|
|
17
|
-
export declare function getOptionsByFieldAndRecords(aiTable: AITable, field: AITableField, references: AITableReferences): {
|
|
18
|
-
options: AITableSelectOption[];
|
|
19
|
-
optionStyle: AITableSelectOptionStyle;
|
|
20
|
-
};
|
|
21
|
-
export declare function processPastedValueForSelect(plainText: string, targetField: AITableField, originData?: {
|
|
22
|
-
field: AITableField;
|
|
23
|
-
cellValue: FieldValue;
|
|
24
|
-
} | null): {
|
|
25
|
-
existOptionIds: string[];
|
|
26
|
-
newOptions: AITableSelectOption[];
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,eAAe,CAAC;AACvE,OAAO,EACH,sBAAsB,EAEtB,iBAAiB,EACjB,eAAe,EACf,YAAY,EAEZ,mBAAmB,EACnB,wBAAwB,EACxB,UAAU,EACV,gBAAgB,EAMhB,YAAY,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,qBAAa,WAAY,SAAQ,eAAgB,YAAW,aAAa,CAAC,MAAM,EAAE,gBAAgB,CAAC;IACtF,OAAO,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO;IAIhD,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY;IAkB1G,OAAO,CACH,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,iBAAiB,EAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,GACtB,MAAM;IAQT,YAAY,CACR,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAAG,IAAI,GACnE,UAAU,GAAG,IAAI;CAGvB;AAED,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,GACnE,gBAAgB,GAAG,IAAI,CA2BzB;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB;;;EA+B/G;AAED,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,EACzB,UAAU,CAAC,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,GACnE;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,mBAAmB,EAAE,CAAA;CAAE,CA2DjE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AITableFilterCondition, FieldValue, TextFieldBase, TextFieldValue } from '@ai-table/utils';
|
|
2
|
-
import { FieldOperable } from '../field-operable';
|
|
3
|
-
export declare class TextField extends TextFieldBase implements FieldOperable<string, TextFieldValue> {
|
|
4
|
-
isMeetFilter(condition: AITableFilterCondition<string>, cellValue: TextFieldValue): boolean;
|
|
5
|
-
compare(cellValue1: TextFieldValue, cellValue2: TextFieldValue): number;
|
|
6
|
-
toFieldValue(plainText: string): FieldValue | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function toTextFieldValue(plainText: string): FieldValue | null;
|
|
9
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/utils/field/model/text.ts"],"names":[],"mappings":"AACA,OAAO,EACH,sBAAsB,EAEtB,UAAU,EACV,aAAa,EACb,cAAc,EAGjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,SAAU,SAAQ,aAAc,YAAW,aAAa,CAAC,MAAM,EAAE,cAAc,CAAC;IACzF,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,cAAc;IAajF,OAAO,CAAC,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,GAAG,MAAM;IAMvE,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;CAGrD;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAErE"}
|
package/utils/field/operate.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AITableFilterCondition, AITableFilterOperation, FieldValue, AITableSelectOption, Id } from '@ai-table/utils';
|
|
2
|
-
export declare const zhIntlCollator: Intl.Collator | undefined;
|
|
3
|
-
export declare function compareNumber(a: number | null, b: number | null): number;
|
|
4
|
-
export declare function compareString(a: string | null, b: string | null): number;
|
|
5
|
-
export declare function compareOption(a: Id[] | null, b: Id[] | null, options: AITableSelectOption[]): number;
|
|
6
|
-
export declare function stringInclude(str: string, searchStr: string): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* 两数组是否有交集
|
|
9
|
-
*/
|
|
10
|
-
export declare function hasIntersect<T extends number | string>(array1: T[], array2: T[]): boolean;
|
|
11
|
-
export declare function isMeetFilter(condition: AITableFilterCondition, cellValue: FieldValue): boolean;
|
|
12
|
-
export declare function isEmptyOrNot(operation: AITableFilterOperation.empty | AITableFilterOperation.exists, cellValue: FieldValue): boolean;
|
|
13
|
-
//# sourceMappingURL=operate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operate.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/utils/field/operate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,UAAU,EAAW,mBAAmB,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAE/H,eAAO,MAAM,cAAc,2BAAuE,CAAC;AAEnG,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAaxE;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAaxE;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,mBAAmB,EAAE,GAAG,MAAM,CA+BpG;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,WAE3D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,WAY/E;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,sBAAsB,EAAE,SAAS,EAAE,UAAU,WAUpF;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,KAAK,GAAG,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,WAY1H"}
|
package/utils/field-stat.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AITableRecords, FieldOptions } from '@ai-table/utils';
|
|
2
|
-
export declare function getDateFieldValues(records: AITableRecords, options: FieldOptions, filterNull?: boolean): any[];
|
|
3
|
-
export declare function statEarliestTime(records: AITableRecords, options: FieldOptions): any;
|
|
4
|
-
export declare function statLatestTime(records: AITableRecords, options: FieldOptions): any;
|
|
5
|
-
export declare function statDateRangeOfDays(records: AITableRecords, options: FieldOptions): number;
|
|
6
|
-
export declare function statDateRangeOfMonths(records: AITableRecords, options: FieldOptions): number;
|
|
7
|
-
//# sourceMappingURL=field-stat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-stat.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/field-stat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,UAAQ,SAUpG;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,OAM9E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,OAO5E;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,UAcjF;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,UAanF"}
|
package/utils/file.d.ts
DELETED
package/utils/file.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/file.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,UAiHpD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AITableCellsConfig } from '../types';
|
|
2
|
-
export declare function getPlaceHolderCellsConfigs(options: AITableCellsConfig): {
|
|
3
|
-
key: string;
|
|
4
|
-
name: string;
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
fill: string;
|
|
10
|
-
strokeEnabled: boolean;
|
|
11
|
-
hitStrokeWidth: number;
|
|
12
|
-
transformsEnabled: string;
|
|
13
|
-
perfectDrawEnabled: boolean;
|
|
14
|
-
shadowEnabled: boolean;
|
|
15
|
-
}[];
|
|
16
|
-
//# sourceMappingURL=get-placeholder-cells.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-placeholder-cells.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/get-placeholder-cells.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAkB,MAAM,UAAU,CAAC;AAI9D,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,kBAAkB;;;;;;;;;;;;;IAsErE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LRUCache } from 'lru-cache';
|
|
2
|
-
import { AITableWrapTextResult } from '../types';
|
|
3
|
-
export declare const textDataCache: LRUCache<string, AITableWrapTextResult, unknown>;
|
|
4
|
-
/**
|
|
5
|
-
* 计算给定文本在指定字体和 Canvas 环境下的宽度。
|
|
6
|
-
* 它通过缓存机制来优化性能,避免重复计算相同文本的宽度
|
|
7
|
-
*/
|
|
8
|
-
export declare const getTextWidth: (ctx: CanvasRenderingContext2D, text: string, font: string) => number;
|
|
9
|
-
//# sourceMappingURL=get-text-width.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-text-width.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/get-text-width.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGjD,eAAO,MAAM,aAAa,kDAExB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,wBAAwB,EAAE,MAAM,MAAM,EAAE,MAAM,MAAM,WAmBrF,CAAC"}
|
package/utils/group.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AITable } from './field';
|
|
2
|
-
export declare function getGroupLastRecordIndex(aiTable: AITable, startRowIndex: number): number;
|
|
3
|
-
export declare function setCollapseDisabled(aiTable: AITable, groupCollapseDisabled: boolean): void;
|
|
4
|
-
//# sourceMappingURL=group.d.ts.map
|
package/utils/group.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAa9E;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,QAEnF"}
|
package/utils/i18n.d.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { AITable } from '../core';
|
|
2
|
-
export declare enum AITableGridI18nKey {
|
|
3
|
-
dataPickerPlaceholder = "dataPickerPlaceholder",
|
|
4
|
-
linkTooltip = "linkTooltip",
|
|
5
|
-
invalidLinkFormat = "invalidLinkFormat",
|
|
6
|
-
linkRequired = "linkRequired",
|
|
7
|
-
linkText = "linkText",
|
|
8
|
-
linkUrl = "linkUrl",
|
|
9
|
-
inputText = "inputText",
|
|
10
|
-
inputUrl = "inputUrl",
|
|
11
|
-
fieldColumnName = "fieldColumnName",
|
|
12
|
-
fieldColumnNamePlaceholder = "fieldColumnNamePlaceholder",
|
|
13
|
-
fieldType = "fieldType",
|
|
14
|
-
allowMultipleMembers = "allowMultipleMembers",
|
|
15
|
-
cancel = "cancel",
|
|
16
|
-
apply = "apply",
|
|
17
|
-
fieldNameRequired = "fieldNameRequired",
|
|
18
|
-
fieldNameDuplicate = "fieldNameDuplicate",
|
|
19
|
-
confirm = "confirm",
|
|
20
|
-
copiedCells = "copiedCells",
|
|
21
|
-
invalidPasteContent = "invalidPasteContent",// 新增
|
|
22
|
-
pasteOverMaxRecords = "pasteOverMaxRecords",
|
|
23
|
-
pasteOverMaxFields = "pasteOverMaxFields",
|
|
24
|
-
fieldTypeText = "fieldTypeText",
|
|
25
|
-
fieldTypeRichText = "fieldTypeRichText",
|
|
26
|
-
fieldTypeSelect = "fieldTypeSelect",
|
|
27
|
-
fieldTypeMultiSelect = "fieldTypeMultiSelect",
|
|
28
|
-
fieldTypeNumber = "fieldTypeNumber",
|
|
29
|
-
fieldTypeDate = "fieldTypeDate",
|
|
30
|
-
fieldTypeCheckbox = "fieldTypeCheckbox",
|
|
31
|
-
fieldTypeMember = "fieldTypeMember",
|
|
32
|
-
fieldTypeProgress = "fieldTypeProgress",
|
|
33
|
-
fieldTypeRate = "fieldTypeRate",
|
|
34
|
-
fieldTypeLink = "fieldTypeLink",
|
|
35
|
-
fieldTypeAttachment = "fieldTypeAttachment",
|
|
36
|
-
fieldTypeCreatedBy = "fieldTypeCreatedBy",
|
|
37
|
-
fieldTypeCreatedAt = "fieldTypeCreatedAt",
|
|
38
|
-
fieldTypeUpdatedBy = "fieldTypeUpdatedBy",
|
|
39
|
-
fieldTypeUpdatedAt = "fieldTypeUpdatedAt",
|
|
40
|
-
fieldGroupBase = "fieldGroupBase",
|
|
41
|
-
fieldGroupAdvanced = "fieldGroupAdvanced",
|
|
42
|
-
rowAddFilterTooltip = "rowAddFilterTooltip",
|
|
43
|
-
rowWillMoveTooltip = "rowWillMoveTooltip",
|
|
44
|
-
earliestTime = "earliestTime",
|
|
45
|
-
earliestTimeResult = "earliestTimeResult",
|
|
46
|
-
latestTime = "latestTime",
|
|
47
|
-
latestTimeResult = "latestTimeResult",
|
|
48
|
-
dateRangeOfDays = "dateRangeOfDays",
|
|
49
|
-
dateRangeOfDaysResult = "dateRangeOfDaysResult",
|
|
50
|
-
dateRangeOfMonths = "dateRangeOfMonths",
|
|
51
|
-
dateRangeOfMonthsResult = "dateRangeOfMonthsResult",
|
|
52
|
-
selectedRecordsCount = "selectedRecordsCount",
|
|
53
|
-
selectedCellsCount = "selectedCellsCount",
|
|
54
|
-
stat = "stat",
|
|
55
|
-
emptyGroup = "emptyGroup"
|
|
56
|
-
}
|
|
57
|
-
export declare const AITableGridI18nText: {
|
|
58
|
-
dataPickerPlaceholder: string;
|
|
59
|
-
linkTooltip: string;
|
|
60
|
-
invalidLinkFormat: string;
|
|
61
|
-
linkRequired: string;
|
|
62
|
-
linkText: string;
|
|
63
|
-
linkUrl: string;
|
|
64
|
-
inputText: string;
|
|
65
|
-
inputUrl: string;
|
|
66
|
-
fieldColumnName: string;
|
|
67
|
-
fieldColumnNamePlaceholder: string;
|
|
68
|
-
fieldType: string;
|
|
69
|
-
allowMultipleMembers: string;
|
|
70
|
-
cancel: string;
|
|
71
|
-
apply: string;
|
|
72
|
-
fieldNameRequired: string;
|
|
73
|
-
fieldNameDuplicate: string;
|
|
74
|
-
confirm: string;
|
|
75
|
-
copiedCells: string;
|
|
76
|
-
invalidPasteContent: string;
|
|
77
|
-
pasteOverMaxRecords: string;
|
|
78
|
-
pasteOverMaxFields: string;
|
|
79
|
-
fieldTypeText: string;
|
|
80
|
-
fieldTypeRichText: string;
|
|
81
|
-
fieldTypeSelect: string;
|
|
82
|
-
fieldTypeMultiSelect: string;
|
|
83
|
-
fieldTypeNumber: string;
|
|
84
|
-
fieldTypeDate: string;
|
|
85
|
-
fieldTypeCheckbox: string;
|
|
86
|
-
fieldTypeMember: string;
|
|
87
|
-
fieldTypeProgress: string;
|
|
88
|
-
fieldTypeRate: string;
|
|
89
|
-
fieldTypeLink: string;
|
|
90
|
-
fieldTypeAttachment: string;
|
|
91
|
-
fieldTypeCreatedBy: string;
|
|
92
|
-
fieldTypeCreatedAt: string;
|
|
93
|
-
fieldTypeUpdatedBy: string;
|
|
94
|
-
fieldTypeUpdatedAt: string;
|
|
95
|
-
fieldGroupBase: string;
|
|
96
|
-
fieldGroupAdvanced: string;
|
|
97
|
-
rowAddFilterTooltip: string;
|
|
98
|
-
rowWillMoveTooltip: string;
|
|
99
|
-
earliestTime: string;
|
|
100
|
-
earliestTimeResult: string;
|
|
101
|
-
latestTime: string;
|
|
102
|
-
latestTimeResult: string;
|
|
103
|
-
dateRangeOfDays: string;
|
|
104
|
-
dateRangeOfDaysResult: string;
|
|
105
|
-
dateRangeOfMonths: string;
|
|
106
|
-
dateRangeOfMonthsResult: string;
|
|
107
|
-
selectedRecordsCount: string;
|
|
108
|
-
selectedCellsCount: string;
|
|
109
|
-
stat: string;
|
|
110
|
-
emptyGroup: string;
|
|
111
|
-
};
|
|
112
|
-
export declare const getDefaultI18nTextByKey: (key: AITableGridI18nKey) => string;
|
|
113
|
-
export declare const getI18nTextByKey: (aiTable: AITable, key: AITableGridI18nKey | string) => string;
|
|
114
|
-
//# sourceMappingURL=i18n.d.ts.map
|
package/utils/i18n.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,oBAAY,kBAAkB;IAC1B,qBAAqB,0BAA0B;IAC/C,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,0BAA0B,+BAA+B;IACzD,SAAS,cAAc;IACvB,oBAAoB,yBAAyB;IAC7C,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,mBAAmB,wBAAwB,CAAE,KAAK;IAClD,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,iBAAiB,sBAAsB;IACvC,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,kBAAkB,uBAAuB;IACzC,IAAI,SAAS;IACb,UAAU,eAAe;CAC5B;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,KAAK,kBAAkB,KAAG,MAEjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,EAAE,KAAK,kBAAkB,GAAG,MAAM,KAAG,MASrF,CAAC"}
|
package/utils/image-cache.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface AITableImageOption {
|
|
2
|
-
crossOrigin?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare const imageCache: {
|
|
5
|
-
loadImage: (name: string, src: string, option?: AITableImageOption) => void;
|
|
6
|
-
getImage: (name: string) => false | HTMLImageElement | null;
|
|
7
|
-
imageMapOnload: (callback: any) => void;
|
|
8
|
-
imageMap: {
|
|
9
|
-
[name: string]: {
|
|
10
|
-
img: HTMLImageElement;
|
|
11
|
-
success: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=image-cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-cache.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/image-cache.ts"],"names":[],"mappings":"AAAA,UAAU,kBAAkB;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,UAAU;sBASM,MAAM,OAAO,MAAM,WAAW,kBAAkB;qBA2CjD,MAAM;+BAJI,GAAG;;;iBA7CxB,gBAAgB;qBACZ,OAAO;;;CAmExB,CAAC"}
|
package/utils/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from './build';
|
|
2
|
-
export * from './cell';
|
|
3
|
-
export * from './common';
|
|
4
|
-
export * from './get-placeholder-cells';
|
|
5
|
-
export * from './get-text-width';
|
|
6
|
-
export * from './image-cache';
|
|
7
|
-
export * from './os';
|
|
8
|
-
export * from './clipboard';
|
|
9
|
-
export * from './position';
|
|
10
|
-
export * from './style';
|
|
11
|
-
export * from './text-measure';
|
|
12
|
-
export * from './visible-range';
|
|
13
|
-
export * from './field';
|
|
14
|
-
export * from './match-keywords';
|
|
15
|
-
export * from './cover-cell';
|
|
16
|
-
export * from './clear-cells';
|
|
17
|
-
export * from './i18n';
|
|
18
|
-
export * from './file';
|
|
19
|
-
export * from './transform';
|
|
20
|
-
export * from './field-stat';
|
|
21
|
-
export * from './drag-fill';
|
|
22
|
-
export * from './record';
|
|
23
|
-
export * from './group';
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
package/utils/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,MAAM,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AITableField, AITableReferences } from '@ai-table/utils';
|
|
2
|
-
import { AITable } from '../core';
|
|
3
|
-
export declare const isCellMatchKeywords: (aiTable: AITable, field: AITableField, recordId: string, keywords: string, references: AITableReferences) => boolean | "" | 0;
|
|
4
|
-
//# sourceMappingURL=match-keywords.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"match-keywords.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/match-keywords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAkB,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,mBAAmB,GAC5B,SAAS,OAAO,EAChB,OAAO,YAAY,EACnB,UAAU,MAAM,EAChB,UAAU,MAAM,EAChB,YAAY,iBAAiB,qBAWhC,CAAC"}
|
package/utils/os.d.ts
DELETED
package/utils/os.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/os.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,eASvB,CAAC;AAEF,eAAO,MAAM,SAAS,SAAgB,CAAC;AAGvC,eAAO,MAAM,KAAK,eAGjB,CAAC"}
|
package/utils/position.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AITable, Coordinate, RendererContext } from '../core';
|
|
2
|
-
import { AITableAreaType } from '../types';
|
|
3
|
-
import { AITableField } from '@ai-table/utils';
|
|
4
|
-
export declare const getMousePosition: (aiTable: AITable, x: number, y: number, coordinate: Coordinate, fields: AITableField[], context: RendererContext, _targetName?: string) => {
|
|
5
|
-
areaType: AITableAreaType;
|
|
6
|
-
targetName: string;
|
|
7
|
-
realTargetName: string;
|
|
8
|
-
rowIndex: number;
|
|
9
|
-
columnIndex: number;
|
|
10
|
-
offsetTop: number;
|
|
11
|
-
offsetLeft: number;
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
};
|
|
15
|
-
export declare const isWithinFrozenColumnBoundary: (x: number, frozenColumnWidth: number, rowHeadWidth: number) => boolean;
|
|
16
|
-
export declare const getEditorSpace: (widthOrHeight: number) => number;
|
|
17
|
-
export declare const getEditorBoxOffset: () => number;
|
|
18
|
-
export declare const getCellEditorBorderSpace: () => number;
|
|
19
|
-
export declare const getHoverEditorSpace: (widthOrHeight: number) => number;
|
|
20
|
-
export declare const getHoverEditorBoxOffset: () => number;
|
|
21
|
-
//# sourceMappingURL=position.d.ts.map
|
package/utils/position.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/position.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,GACzB,SAAS,OAAO,EAChB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,YAAY,UAAU,EACtB,QAAQ,YAAY,EAAE,EACtB,SAAS,eAAe,EACxB,cAAc,MAAM;;;;;;;;;;CAqBvB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,GAAG,MAAM,EAAE,mBAAmB,MAAM,EAAE,cAAc,MAAM,YAItG,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,eAAe,MAAM,WAEnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAE9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,cAEpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,eAAe,MAAM,WAGxD,CAAC;AAEF,eAAO,MAAM,uBAAuB,cAGnC,CAAC"}
|
package/utils/record.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AITable } from './field';
|
|
2
|
-
export declare function toggleSelectRecord(aiTable: AITable, recordId: string): void;
|
|
3
|
-
export declare function toggleSelectAllRecords(aiTable: AITable, checked: boolean): void;
|
|
4
|
-
export declare function getNextRecordByActiveCell(aiTable: AITable): string | null;
|
|
5
|
-
export declare function getPreviousRecordByActiveCell(aiTable: AITable): string | null;
|
|
6
|
-
export declare function getRecordNavigationInfo(aiTable: AITable, recordId: string): {
|
|
7
|
-
index: number;
|
|
8
|
-
total: number;
|
|
9
|
-
hasPrevious: boolean;
|
|
10
|
-
hasNext: boolean;
|
|
11
|
-
previousId: string | null;
|
|
12
|
-
nextId: string | null;
|
|
13
|
-
} | null;
|
|
14
|
-
//# sourceMappingURL=record.d.ts.map
|
package/utils/record.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/record.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAcpE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,QAQxE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAczE;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAc7E;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM;;;;;;;SAezE"}
|
package/utils/style.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AITableAreaType } from '../types';
|
|
2
|
-
export declare const handleMouseStyle: (realTargetName: string, areaType: AITableAreaType | undefined, container: HTMLDivElement, isReadOnly?: boolean) => void;
|
|
3
|
-
export declare const setMouseStyle: (mouseStyle: string, container: HTMLDivElement) => void;
|
|
4
|
-
//# sourceMappingURL=style.d.ts.map
|
package/utils/style.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/style.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,eAAO,MAAM,gBAAgB,GACzB,gBAAgB,MAAM,EACtB,UAAU,eAAe,YAAuB,EAChD,WAAW,cAAc,EACzB,aAAa,OAAO,SA8BvB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,EAAE,WAAW,cAAc,SAE1E,CAAC"}
|
package/utils/text-measure.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface AITableTextMeasureOptions {
|
|
2
|
-
fontFamily?: string;
|
|
3
|
-
fontSize?: number;
|
|
4
|
-
fontWeight?: string;
|
|
5
|
-
fontStyle?: string;
|
|
6
|
-
lineHeight?: number;
|
|
7
|
-
scale?: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 在 Canvas 上测量文本的宽度和高度,以便在显示文本时能够动态调整布局或限制文本的显示区域
|
|
11
|
-
* @param defaults
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare const TextMeasure: (defaults?: AITableTextMeasureOptions) => {
|
|
15
|
-
context: CanvasRenderingContext2D | null;
|
|
16
|
-
measureText: (text: string, maxWidth?: number, maxLineCount?: number) => {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
lastLineWidth: number;
|
|
20
|
-
text?: undefined;
|
|
21
|
-
isOverflow?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
text: string;
|
|
26
|
-
isOverflow: boolean;
|
|
27
|
-
lastLineWidth: number;
|
|
28
|
-
};
|
|
29
|
-
setFont: (options?: AITableTextMeasureOptions) => void;
|
|
30
|
-
reset: () => void;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=text-measure.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-measure.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/text-measure.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,yBAAyB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,WAAU,yBAA8B;;wBAiHrC,MAAM,aAAa,MAAM,iBAAiB,MAAM;;;;;;;;;;;;;wBA7EjD,yBAAyB;;CA4FtD,CAAC"}
|
package/utils/transform.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextConfig } from 'konva/lib/shapes/Text';
|
|
2
|
-
import { AITableImage, AITableRect, AITableText } from '../types';
|
|
3
|
-
import { ImageConfig } from 'konva/lib/shapes/Image';
|
|
4
|
-
import { RectConfig } from 'konva/lib/shapes/Rect';
|
|
5
|
-
export declare function aiTableTextConfigToKonvaConfig(textConfig: AITableText, rowHeight: number): TextConfig;
|
|
6
|
-
export declare function aiTableImageConfigToKonvaConfig(imageConfig: Partial<AITableImage>, options: {
|
|
7
|
-
listening?: boolean;
|
|
8
|
-
}): ImageConfig;
|
|
9
|
-
export declare function aiTableRectConfigToKonvaConfig(rectConfig: AITableRect, options?: {
|
|
10
|
-
name?: string;
|
|
11
|
-
listening?: boolean;
|
|
12
|
-
}): RectConfig;
|
|
13
|
-
//# sourceMappingURL=transform.d.ts.map
|