@visactor/vtable 0.10.1-alpha.4 → 0.10.1
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/cjs/ListTable.js +1 -1
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +1 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/body-helper.d.ts +1 -1
- package/cjs/body-helper/body-helper.js +2 -2
- package/cjs/body-helper/body-helper.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuContainer.js +1 -1
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElement.js +3 -3
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +2 -2
- package/cjs/core/BaseTable.js +10 -10
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/media-click.js +1 -1
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/event/sparkline-event.js +2 -2
- package/cjs/event/sparkline-event.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +2 -2
- package/cjs/layout/pivot-header-layout.js +8 -8
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/pivot-layout.d.ts +2 -2
- package/cjs/layout/pivot-layout.js +10 -10
- package/cjs/layout/pivot-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.d.ts +2 -2
- package/cjs/layout/simple-header-layout.js +3 -3
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/component/cell-mover.js +3 -3
- package/cjs/scenegraph/component/cell-mover.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +5 -5
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.d.ts +2 -2
- package/cjs/scenegraph/group-creater/column-helper.js +4 -4
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/column.d.ts +2 -2
- package/cjs/scenegraph/group-creater/column.js +2 -2
- package/cjs/scenegraph/group-creater/column.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/move-cell.js +1 -1
- package/cjs/scenegraph/layout/move-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-cell.js +1 -1
- package/cjs/scenegraph/layout/update-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +1 -1
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +4 -4
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.d.ts +2 -2
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/state/cell-move/index.js +3 -3
- package/cjs/state/cell-move/index.js.map +1 -1
- package/cjs/state/drill/index.js +1 -1
- package/cjs/state/drill/index.js.map +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +2 -2
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/common.d.ts +3 -3
- package/cjs/ts-types/common.js.map +1 -1
- package/cjs/ts-types/events.d.ts +2 -2
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/chart-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/image-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/link-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/progressbar-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/sparkline-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +2 -2
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/menu.d.ts +2 -2
- package/cjs/ts-types/menu.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +1 -1
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/dist/vtable.js +83 -76
- package/dist/vtable.min.js +3 -3
- package/es/ListTable.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +1 -1
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/body-helper.d.ts +1 -1
- package/es/body-helper/body-helper.js +2 -2
- package/es/body-helper/body-helper.js.map +1 -1
- package/es/components/menu/dom/logic/MenuContainer.js +1 -1
- package/es/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElement.js +3 -3
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/es/core/BaseTable.d.ts +2 -2
- package/es/core/BaseTable.js +10 -10
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/media-click.js +1 -1
- package/es/event/media-click.js.map +1 -1
- package/es/event/sparkline-event.js +2 -2
- package/es/event/sparkline-event.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/pivot-header-layout.d.ts +2 -2
- package/es/layout/pivot-header-layout.js +8 -8
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/pivot-layout.d.ts +2 -2
- package/es/layout/pivot-layout.js +10 -10
- package/es/layout/pivot-layout.js.map +1 -1
- package/es/layout/simple-header-layout.d.ts +2 -2
- package/es/layout/simple-header-layout.js +3 -3
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/component/cell-mover.js +3 -3
- package/es/scenegraph/component/cell-mover.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +5 -5
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.d.ts +2 -2
- package/es/scenegraph/group-creater/column-helper.js +4 -4
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/group-creater/column.d.ts +2 -2
- package/es/scenegraph/group-creater/column.js +2 -2
- package/es/scenegraph/group-creater/column.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +1 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +1 -1
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/move-cell.js +1 -1
- package/es/scenegraph/layout/move-cell.js.map +1 -1
- package/es/scenegraph/layout/update-cell.js +1 -1
- package/es/scenegraph/layout/update-cell.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +1 -1
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +4 -4
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/create-select-border.d.ts +2 -2
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/delete-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/state/cell-move/index.js +3 -3
- package/es/state/cell-move/index.js.map +1 -1
- package/es/state/drill/index.js +1 -1
- package/es/state/drill/index.js.map +1 -1
- package/es/state/state.js +1 -1
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +2 -2
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/common.d.ts +3 -3
- package/es/ts-types/common.js.map +1 -1
- package/es/ts-types/events.d.ts +2 -2
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/list-table/define/basic-define.js.map +1 -1
- package/es/ts-types/list-table/define/chart-define.d.ts +1 -1
- package/es/ts-types/list-table/define/chart-define.js.map +1 -1
- package/es/ts-types/list-table/define/image-define.d.ts +1 -1
- package/es/ts-types/list-table/define/image-define.js.map +1 -1
- package/es/ts-types/list-table/define/link-define.d.ts +1 -1
- package/es/ts-types/list-table/define/link-define.js.map +1 -1
- package/es/ts-types/list-table/define/multilinetext-define.d.ts +1 -1
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -1
- package/es/ts-types/list-table/define/progressbar-define.d.ts +1 -1
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -1
- package/es/ts-types/list-table/define/sparkline-define.d.ts +1 -1
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +2 -2
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/menu.d.ts +2 -2
- package/es/ts-types/menu.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +1 -1
- package/es/ts-types/table-engine.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ts-types/pivot-table/indicator/sparkline-indicator.ts"],"names":[],"mappings":"","file":"sparkline-indicator.js","sourcesContent":["import type { SparklineSpec } from '../../sparkline';\nimport type { IStyleOption } from '../../column';\nimport type { CellInfo } from '../../common';\nimport type { StylePropertyFunctionArg } from '../../style-define';\nimport type { IBasicColumnIndicator } from './basic-indicator';\n\nexport interface ISparklineColumnIndicator extends IBasicColumnIndicator {\n
|
|
1
|
+
{"version":3,"sources":["ts-types/pivot-table/indicator/sparkline-indicator.ts"],"names":[],"mappings":"","file":"sparkline-indicator.js","sourcesContent":["import type { SparklineSpec } from '../../sparkline';\nimport type { IStyleOption } from '../../column';\nimport type { CellInfo } from '../../common';\nimport type { StylePropertyFunctionArg } from '../../style-define';\nimport type { IBasicColumnIndicator } from './basic-indicator';\n\nexport interface ISparklineColumnIndicator extends IBasicColumnIndicator {\n cellType: 'sparkline'; // body指标值显示类型\n style?: IStyleOption | ((styleArg: StylePropertyFunctionArg) => IStyleOption); // body部分指标值显示样式\n\n sparklineSpec?: SparklineSpec | ((arg0: CellInfo) => SparklineSpec);\n}\n"]}
|
|
@@ -33,7 +33,7 @@ export type FieldData = MaybePromiseOrUndefined;
|
|
|
33
33
|
export type WidthModeDef = 'standard' | 'adaptive' | 'autoWidth';
|
|
34
34
|
export type HeightModeDef = 'standard' | 'adaptive' | 'autoHeight';
|
|
35
35
|
export type ShowColumnRowType = 'column' | 'row' | 'none';
|
|
36
|
-
export type
|
|
36
|
+
export type CellLocation = 'body' | 'rowHeader' | 'columnHeader' | 'cornerHeader' | 'bottomFrozen' | 'rightFrozen';
|
|
37
37
|
export interface TableKeyboardOptions {
|
|
38
38
|
selectAllOnCtrlA?: boolean;
|
|
39
39
|
copySelected?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ts-types/table-engine.ts"],"names":[],"mappings":";;;AAmTA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB","file":"table-engine.js","sourcesContent":["import type { RectProps, MaybePromiseOrUndefined, IDimensionInfo, SortOrder } from './common';\nimport type { SvgIcon } from './icon';\nexport type { HeaderData } from './list-table/layout-map/api';\nexport type LayoutObjectId = number | string;\nimport type { Rect } from '../tools/Rect';\nimport type { BaseTableAPI, BaseTableConstructorOptions } from './base-table';\nimport type { IDataConfig } from './new-data-set';\nimport type { Either } from '../tools/helper';\nimport type { IChartIndicator, ICornerDefine, IDimension, IIndicator, ITitleDefine } from './pivot-table';\nimport type { ColumnsDefine } from './list-table';\nimport type { ICellAxisOption, ITableAxisOption } from './component/axis';\n\nexport interface CellAddress {\n col: number;\n row: number;\n rect?: RectProps;\n x?: number;\n y?: number;\n}\nexport interface CellRange {\n start: CellAddress;\n end: CellAddress;\n}\n\nexport type FieldGetter = (record: any) => any;\nexport type FieldSetter = (record: any, value: any) => void;\nexport interface FieldAssessor {\n get: FieldGetter;\n set: FieldSetter;\n}\n\nexport type FieldDef = string | number | string[];\nexport type FieldKeyDef = string | number;\nexport type FieldFormat = FieldGetter | FieldAssessor;\n\nexport type FieldData = MaybePromiseOrUndefined;\n\nexport type WidthModeDef = 'standard' | 'adaptive' | 'autoWidth';\nexport type HeightModeDef = 'standard' | 'adaptive' | 'autoHeight';\nexport type ShowColumnRowType = 'column' | 'row' | 'none';\nexport type CellType = 'body' | 'rowHeader' | 'columnHeader' | 'cornerHeader' | 'bottomFrozen' | 'rightFrozen';\n\nexport interface TableKeyboardOptions {\n // moveCellOnTab?: boolean;\n // moveCellOnEnter?: boolean;\n // deleteCellValueOnDel?: boolean;\n\n /** 开启快捷键全选 默认:false */\n selectAllOnCtrlA?: boolean;\n /** 快捷键复制 */\n copySelected?: boolean; //这个copy是和浏览器的快捷键一致的\n}\nexport interface DataSourceAPI {\n clearCurrentIndexedData: () => void;\n length: number;\n get: (index: number) => MaybePromiseOrUndefined;\n getField: <F extends FieldDef>(index: number, field: F) => FieldData;\n hasField: (index: number, field: FieldDef) => boolean;\n sort: (field: FieldDef, order: SortOrder, orderFn: (v1: any, v2: any, order: SortOrder) => -1 | 0 | 1) => void;\n clearSortedMap: () => void;\n updatePager: (pagerConf: IPagerConf) => void;\n getIndexKey: (index: number) => number | number[];\n /** 数据是否为树形结构 且可以展开收起 */\n enableHierarchyState: boolean;\n}\n\nexport interface SortState {\n /** 排序依据字段 */\n field: FieldDef;\n\n fieldKey?: FieldKeyDef;\n /** 排序规则 */\n order: SortOrder;\n}\nexport interface PivotSortState {\n col: number;\n row: number;\n order: SortOrder;\n}\n\n/**\n * 分页配置\n */\nexport interface IPagerConf {\n /** 数据总条数 */\n totalCount?: number;\n /** 每页显示数据条数 */\n perPageCount: number;\n /** 每页显示条数 */\n currentPage?: number;\n}\nexport type HeaderValues = Map<any, any>;\nexport interface ListTableConstructorOptions extends BaseTableConstructorOptions {\n /**\n * 数据集合\n */\n records?: any[];\n /**\n * 是否显示表头\n */\n showHeader?: boolean;\n /**\n * Simple header property\n */\n columns?: ColumnsDefine; //请不要再这个上面修改配置,这里相当于是一个原始值备份,有一个内部专用的protectspace.columns\n /**\n *@deprecated 已废弃 请使用columns\n */\n header?: ColumnsDefine;\n\n transpose?: boolean; //是否转置\n /**\n * 展示为tree的列 层级缩进值\n */\n hierarchyIndent?: number;\n /** 展开层数 默认为1只显示根节点*/\n hierarchyExpandLevel?: number;\n\n /** 分页配置 */\n pagerConf?: IPagerConf;\n\n /**\n * 排序状态\n */\n sortState?: SortState | SortState[];\n}\n\nexport interface ListTableAPI extends BaseTableAPI {\n options: ListTableConstructorOptions;\n sortState: SortState[] | SortState | null;\n // internalProps: ListTableProtected;\n isListTable: () => true;\n isPivotTable: () => false;\n}\nexport interface PivotTableConstructorOptions extends BaseTableConstructorOptions {\n /**\n * 数据集合\n */\n records?: any[];\n /**\n * 调整列宽的生效范围:'column' | 'indicator' | 'all' | 'indicatorGroup',单列|按指标|所有列|属于同一维度值的多个指标\n */\n columnResizeType?: 'column' | 'indicator' | 'all' | 'indicatorGroup';\n /** 设置排序状态,只对应按钮展示效果 无数据排序逻辑 */\n pivotSortState?: {\n dimensions: IDimensionInfo[];\n order: SortOrder;\n }[];\n\n //#region layout中挪到外层的属性\n /**层级维度结构显示形式 */\n rowHierarchyType?: 'grid' | 'tree';\n /**展开层数 */\n rowExpandLevel?: number;\n /**子层级维度缩进距离 */\n rowHierarchyIndent?: number;\n /** 列表头维度结构 */\n columnTree?: IHeaderTreeDefine[];\n /** 行表头维度结构 */\n rowTree?: IHeaderTreeDefine[];\n /** 定义各个维度和各个指标的具体配置项和样式定义 rows 和 dimension 代替掉 */\n // dimensions?: IDimension[];\n\n /** 定义行上各个维度具体配置项和样式定义 */\n rows?: (IDimension | string)[]; // (string | IDimension)[]; 后续支持数据分析的透视表 支持string配置\n /** 定义列上各个维度具体配置项和样式定义 */\n columns?: (IDimension | string)[]; // (string | IDimension)[];\n /** 定义指标具体配置项和样式定义 包含表头和body的定义*/\n indicators?: (IIndicator | string)[]; // (string | IIndicator)[];\n\n /** 指标以列展示 ———有数据分析的透视表才需要配置这个 */\n indicatorsAsCol?: boolean;\n /** 指标在具体维度展示的层级顺序,从0开始 ———有数据分析的透视表才需要配置这个 */\n indicatorIndex?: number;\n /** 是否隐藏指标名称 */\n hideIndicatorName?: boolean; //\n /** 指标维度key 注意非具体指标key 数据分析的透视表才需要配置这个 */\n // indicatorDimensionKey?: string;\n /** 角头单元格配置项和样式定义 */\n corner?: ICornerDefine;\n /**\n * boolean 是否显示列维度值表头\n */\n showColumnHeader?: boolean;\n /**\n * boolean 是否显示行维度值表头\n */\n showRowHeader?: boolean;\n /**\n * 列表头增加一行来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n columnHeaderTitle?: ITitleDefine;\n /**\n * 行表头的增加一列来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n rowHeaderTitle?: ITitleDefine;\n //#endregion\n /** 数据分析相关配置 ———有数据分析的透视表才需要配置这个 */\n dataConfig?: IDataConfig;\n /** 是否开始数据分析 ———有数据分析的透视表才需要配置这个 */\n enableDataAnalysis?: boolean;\n /** 指标标题 用于显示到角头的值*/\n indicatorTitle?: string;\n}\nexport interface PivotChartConstructorOptions extends BaseTableConstructorOptions {\n /**\n * 数据集合, 平坦数据集合。另外一种特殊方式是传入分组后的数据,分组依据为指标\n */\n records?: any[] | Record<string, any[]>;\n /**\n * 调整列宽的生效范围:'column' | 'indicator' | 'all' | 'indicatorGroup',单列|按指标|所有列|属于同一维度值的多个指标\n */\n columnResizeType?: 'column' | 'indicator' | 'all' | 'indicatorGroup';\n /** 列表头维度结构 */\n columnTree?: IHeaderTreeDefine[];\n /** 行表头维度结构 */\n rowTree?: IHeaderTreeDefine[];\n /** 定义各个维度和各个指标的具体配置项和样式定义 rows 和 dimension 代替掉 */\n // dimensions?: IDimension[];\n\n /** 定义行上各个维度具体配置项和样式定义 */\n rows?: (IDimension | string)[]; // (string | IDimension)[]; 后续支持数据分析的透视表 支持string配置\n /** 定义列上各个维度具体配置项和样式定义 */\n columns?: (IDimension | string)[]; // (string | IDimension)[];\n /** 定义指标具体配置项和样式定义 包含表头和body的定义*/\n indicators?: (IChartIndicator | string)[]; // (string | IIndicator)[];\n\n /** 指标以列展示 ———有数据分析的透视表才需要配置这个 */\n indicatorsAsCol?: boolean;\n /** 是否隐藏指标名称 */\n hideIndicatorName?: boolean; //\n /** 角头单元格配置项和样式定义 */\n corner?: ICornerDefine;\n /**\n * boolean 是否显示列维度值表头\n */\n showColumnHeader?: boolean;\n /**\n * boolean 是否显示行维度值表头\n */\n showRowHeader?: boolean;\n /**\n * 列表头增加一行来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n columnHeaderTitle?: ITitleDefine;\n /**\n * 行表头的增加一列来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n rowHeaderTitle?: ITitleDefine;\n /** 指标标题 用于显示到角头的值*/\n indicatorTitle?: string;\n\n axes?: ITableAxisOption[];\n}\nexport interface PivotTableAPI extends BaseTableAPI {\n records?: any;\n options: PivotTableConstructorOptions;\n // internalProps: PivotTableProtected;\n pivotSortState: PivotSortState[];\n isListTable: () => false;\n isPivotTable: () => true;\n getPivotSortState: (col: number, row: number) => SortOrder;\n toggleHierarchyState: (col: number, row: number) => void;\n}\nexport interface PivotChartAPI extends BaseTableAPI {\n records?: any | Record<string, any[]>;\n options: PivotChartConstructorOptions;\n // internalProps: PivotTableProtected;\n isListTable: () => false;\n isPivotTable: () => true;\n}\nexport type SetPasteValueTestData = CellAddress & {\n table: BaseTableAPI;\n record: any;\n value: string;\n\n oldValue: any;\n};\n\nexport interface InlineAPI {\n width: (arg: { ctx: CanvasRenderingContext2D }) => number;\n font: () => string | null;\n color: () => string | null;\n canDraw: () => boolean;\n onReady: (callback: Function) => void;\n\n draw: (opt: any) => void;\n canBreak: () => boolean;\n}\n\nexport interface CellContext {\n readonly col: number;\n readonly row: number;\n /**format之后的值 */\n readonly value: FieldData;\n /**原始值 */\n readonly dataValue: FieldData;\n showIcon?: SvgIcon;\n getContext: () => CanvasRenderingContext2D;\n toCurrentContext: () => CellContext;\n getDrawRect: () => RectProps | null;\n getRect: () => RectProps;\n setRectFilter: (rectFilter: (base: RectProps) => RectProps) => void;\n updateRect: (rect: Rect | RectProps) => void;\n updateDrawRect: (rect: Rect | RectProps) => void;\n}\n\nexport enum Placement {\n top = 'top',\n bottom = 'bottom',\n left = 'left',\n right = 'right'\n}\n\nexport enum HierarchyState {\n expand = 'expand',\n collapse = 'collapse',\n none = 'none'\n}\nexport type IHeaderTreeDefine = Either<IDimensionHeaderNode, IIndicatorHeaderNode>;\nexport interface IIndicatorHeaderNode {\n /**\n * 指标的key值 对应数据集的字段名\n */\n indicatorKey: string | number;\n /**\n * 指标名称 如:“销售额”,“例如”, 对应到单元格显示的值。可不填,不填的话 从indicators的对应配置中取值显示\n */\n value?: string;\n}\nexport interface IDimensionHeaderNode {\n /**\n * 维度的唯一标识,对应数据集的字段名称\n */\n dimensionKey: string | number;\n /** 维度成员值 */\n value: string;\n /** 维度成员下的子维度树结构 */\n children?: IHeaderTreeDefine[] | null;\n /** 折叠状态 TODO */\n hierarchyState?: HierarchyState;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["ts-types/table-engine.ts"],"names":[],"mappings":";;;AAmTA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB","file":"table-engine.js","sourcesContent":["import type { RectProps, MaybePromiseOrUndefined, IDimensionInfo, SortOrder } from './common';\nimport type { SvgIcon } from './icon';\nexport type { HeaderData } from './list-table/layout-map/api';\nexport type LayoutObjectId = number | string;\nimport type { Rect } from '../tools/Rect';\nimport type { BaseTableAPI, BaseTableConstructorOptions } from './base-table';\nimport type { IDataConfig } from './new-data-set';\nimport type { Either } from '../tools/helper';\nimport type { IChartIndicator, ICornerDefine, IDimension, IIndicator, ITitleDefine } from './pivot-table';\nimport type { ColumnsDefine } from './list-table';\nimport type { ICellAxisOption, ITableAxisOption } from './component/axis';\n\nexport interface CellAddress {\n col: number;\n row: number;\n rect?: RectProps;\n x?: number;\n y?: number;\n}\nexport interface CellRange {\n start: CellAddress;\n end: CellAddress;\n}\n\nexport type FieldGetter = (record: any) => any;\nexport type FieldSetter = (record: any, value: any) => void;\nexport interface FieldAssessor {\n get: FieldGetter;\n set: FieldSetter;\n}\n\nexport type FieldDef = string | number | string[];\nexport type FieldKeyDef = string | number;\nexport type FieldFormat = FieldGetter | FieldAssessor;\n\nexport type FieldData = MaybePromiseOrUndefined;\n\nexport type WidthModeDef = 'standard' | 'adaptive' | 'autoWidth';\nexport type HeightModeDef = 'standard' | 'adaptive' | 'autoHeight';\nexport type ShowColumnRowType = 'column' | 'row' | 'none';\nexport type CellLocation = 'body' | 'rowHeader' | 'columnHeader' | 'cornerHeader' | 'bottomFrozen' | 'rightFrozen';\n\nexport interface TableKeyboardOptions {\n // moveCellOnTab?: boolean;\n // moveCellOnEnter?: boolean;\n // deleteCellValueOnDel?: boolean;\n\n /** 开启快捷键全选 默认:false */\n selectAllOnCtrlA?: boolean;\n /** 快捷键复制 */\n copySelected?: boolean; //这个copy是和浏览器的快捷键一致的\n}\nexport interface DataSourceAPI {\n clearCurrentIndexedData: () => void;\n length: number;\n get: (index: number) => MaybePromiseOrUndefined;\n getField: <F extends FieldDef>(index: number, field: F) => FieldData;\n hasField: (index: number, field: FieldDef) => boolean;\n sort: (field: FieldDef, order: SortOrder, orderFn: (v1: any, v2: any, order: SortOrder) => -1 | 0 | 1) => void;\n clearSortedMap: () => void;\n updatePager: (pagerConf: IPagerConf) => void;\n getIndexKey: (index: number) => number | number[];\n /** 数据是否为树形结构 且可以展开收起 */\n enableHierarchyState: boolean;\n}\n\nexport interface SortState {\n /** 排序依据字段 */\n field: FieldDef;\n\n fieldKey?: FieldKeyDef;\n /** 排序规则 */\n order: SortOrder;\n}\nexport interface PivotSortState {\n col: number;\n row: number;\n order: SortOrder;\n}\n\n/**\n * 分页配置\n */\nexport interface IPagerConf {\n /** 数据总条数 */\n totalCount?: number;\n /** 每页显示数据条数 */\n perPageCount: number;\n /** 每页显示条数 */\n currentPage?: number;\n}\nexport type HeaderValues = Map<any, any>;\nexport interface ListTableConstructorOptions extends BaseTableConstructorOptions {\n /**\n * 数据集合\n */\n records?: any[];\n /**\n * 是否显示表头\n */\n showHeader?: boolean;\n /**\n * Simple header property\n */\n columns?: ColumnsDefine; //请不要再这个上面修改配置,这里相当于是一个原始值备份,有一个内部专用的protectspace.columns\n /**\n *@deprecated 已废弃 请使用columns\n */\n header?: ColumnsDefine;\n\n transpose?: boolean; //是否转置\n /**\n * 展示为tree的列 层级缩进值\n */\n hierarchyIndent?: number;\n /** 展开层数 默认为1只显示根节点*/\n hierarchyExpandLevel?: number;\n\n /** 分页配置 */\n pagerConf?: IPagerConf;\n\n /**\n * 排序状态\n */\n sortState?: SortState | SortState[];\n}\n\nexport interface ListTableAPI extends BaseTableAPI {\n options: ListTableConstructorOptions;\n sortState: SortState[] | SortState | null;\n // internalProps: ListTableProtected;\n isListTable: () => true;\n isPivotTable: () => false;\n}\nexport interface PivotTableConstructorOptions extends BaseTableConstructorOptions {\n /**\n * 数据集合\n */\n records?: any[];\n /**\n * 调整列宽的生效范围:'column' | 'indicator' | 'all' | 'indicatorGroup',单列|按指标|所有列|属于同一维度值的多个指标\n */\n columnResizeType?: 'column' | 'indicator' | 'all' | 'indicatorGroup';\n /** 设置排序状态,只对应按钮展示效果 无数据排序逻辑 */\n pivotSortState?: {\n dimensions: IDimensionInfo[];\n order: SortOrder;\n }[];\n\n //#region layout中挪到外层的属性\n /**层级维度结构显示形式 */\n rowHierarchyType?: 'grid' | 'tree';\n /**展开层数 */\n rowExpandLevel?: number;\n /**子层级维度缩进距离 */\n rowHierarchyIndent?: number;\n /** 列表头维度结构 */\n columnTree?: IHeaderTreeDefine[];\n /** 行表头维度结构 */\n rowTree?: IHeaderTreeDefine[];\n /** 定义各个维度和各个指标的具体配置项和样式定义 rows 和 dimension 代替掉 */\n // dimensions?: IDimension[];\n\n /** 定义行上各个维度具体配置项和样式定义 */\n rows?: (IDimension | string)[]; // (string | IDimension)[]; 后续支持数据分析的透视表 支持string配置\n /** 定义列上各个维度具体配置项和样式定义 */\n columns?: (IDimension | string)[]; // (string | IDimension)[];\n /** 定义指标具体配置项和样式定义 包含表头和body的定义*/\n indicators?: (IIndicator | string)[]; // (string | IIndicator)[];\n\n /** 指标以列展示 ———有数据分析的透视表才需要配置这个 */\n indicatorsAsCol?: boolean;\n /** 指标在具体维度展示的层级顺序,从0开始 ———有数据分析的透视表才需要配置这个 */\n indicatorIndex?: number;\n /** 是否隐藏指标名称 */\n hideIndicatorName?: boolean; //\n /** 指标维度key 注意非具体指标key 数据分析的透视表才需要配置这个 */\n // indicatorDimensionKey?: string;\n /** 角头单元格配置项和样式定义 */\n corner?: ICornerDefine;\n /**\n * boolean 是否显示列维度值表头\n */\n showColumnHeader?: boolean;\n /**\n * boolean 是否显示行维度值表头\n */\n showRowHeader?: boolean;\n /**\n * 列表头增加一行来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n columnHeaderTitle?: ITitleDefine;\n /**\n * 行表头的增加一列来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n rowHeaderTitle?: ITitleDefine;\n //#endregion\n /** 数据分析相关配置 ———有数据分析的透视表才需要配置这个 */\n dataConfig?: IDataConfig;\n /** 是否开始数据分析 ———有数据分析的透视表才需要配置这个 */\n enableDataAnalysis?: boolean;\n /** 指标标题 用于显示到角头的值*/\n indicatorTitle?: string;\n}\nexport interface PivotChartConstructorOptions extends BaseTableConstructorOptions {\n /**\n * 数据集合, 平坦数据集合。另外一种特殊方式是传入分组后的数据,分组依据为指标\n */\n records?: any[] | Record<string, any[]>;\n /**\n * 调整列宽的生效范围:'column' | 'indicator' | 'all' | 'indicatorGroup',单列|按指标|所有列|属于同一维度值的多个指标\n */\n columnResizeType?: 'column' | 'indicator' | 'all' | 'indicatorGroup';\n /** 列表头维度结构 */\n columnTree?: IHeaderTreeDefine[];\n /** 行表头维度结构 */\n rowTree?: IHeaderTreeDefine[];\n /** 定义各个维度和各个指标的具体配置项和样式定义 rows 和 dimension 代替掉 */\n // dimensions?: IDimension[];\n\n /** 定义行上各个维度具体配置项和样式定义 */\n rows?: (IDimension | string)[]; // (string | IDimension)[]; 后续支持数据分析的透视表 支持string配置\n /** 定义列上各个维度具体配置项和样式定义 */\n columns?: (IDimension | string)[]; // (string | IDimension)[];\n /** 定义指标具体配置项和样式定义 包含表头和body的定义*/\n indicators?: (IChartIndicator | string)[]; // (string | IIndicator)[];\n\n /** 指标以列展示 ———有数据分析的透视表才需要配置这个 */\n indicatorsAsCol?: boolean;\n /** 是否隐藏指标名称 */\n hideIndicatorName?: boolean; //\n /** 角头单元格配置项和样式定义 */\n corner?: ICornerDefine;\n /**\n * boolean 是否显示列维度值表头\n */\n showColumnHeader?: boolean;\n /**\n * boolean 是否显示行维度值表头\n */\n showRowHeader?: boolean;\n /**\n * 列表头增加一行来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n columnHeaderTitle?: ITitleDefine;\n /**\n * 行表头的增加一列来显示维度名称 可以自定义或者显示dimensionTitle组合名\n */\n rowHeaderTitle?: ITitleDefine;\n /** 指标标题 用于显示到角头的值*/\n indicatorTitle?: string;\n\n axes?: ITableAxisOption[];\n}\nexport interface PivotTableAPI extends BaseTableAPI {\n records?: any;\n options: PivotTableConstructorOptions;\n // internalProps: PivotTableProtected;\n pivotSortState: PivotSortState[];\n isListTable: () => false;\n isPivotTable: () => true;\n getPivotSortState: (col: number, row: number) => SortOrder;\n toggleHierarchyState: (col: number, row: number) => void;\n}\nexport interface PivotChartAPI extends BaseTableAPI {\n records?: any | Record<string, any[]>;\n options: PivotChartConstructorOptions;\n // internalProps: PivotTableProtected;\n isListTable: () => false;\n isPivotTable: () => true;\n}\nexport type SetPasteValueTestData = CellAddress & {\n table: BaseTableAPI;\n record: any;\n value: string;\n\n oldValue: any;\n};\n\nexport interface InlineAPI {\n width: (arg: { ctx: CanvasRenderingContext2D }) => number;\n font: () => string | null;\n color: () => string | null;\n canDraw: () => boolean;\n onReady: (callback: Function) => void;\n\n draw: (opt: any) => void;\n canBreak: () => boolean;\n}\n\nexport interface CellContext {\n readonly col: number;\n readonly row: number;\n /**format之后的值 */\n readonly value: FieldData;\n /**原始值 */\n readonly dataValue: FieldData;\n showIcon?: SvgIcon;\n getContext: () => CanvasRenderingContext2D;\n toCurrentContext: () => CellContext;\n getDrawRect: () => RectProps | null;\n getRect: () => RectProps;\n setRectFilter: (rectFilter: (base: RectProps) => RectProps) => void;\n updateRect: (rect: Rect | RectProps) => void;\n updateDrawRect: (rect: Rect | RectProps) => void;\n}\n\nexport enum Placement {\n top = 'top',\n bottom = 'bottom',\n left = 'left',\n right = 'right'\n}\n\nexport enum HierarchyState {\n expand = 'expand',\n collapse = 'collapse',\n none = 'none'\n}\nexport type IHeaderTreeDefine = Either<IDimensionHeaderNode, IIndicatorHeaderNode>;\nexport interface IIndicatorHeaderNode {\n /**\n * 指标的key值 对应数据集的字段名\n */\n indicatorKey: string | number;\n /**\n * 指标名称 如:“销售额”,“例如”, 对应到单元格显示的值。可不填,不填的话 从indicators的对应配置中取值显示\n */\n value?: string;\n}\nexport interface IDimensionHeaderNode {\n /**\n * 维度的唯一标识,对应数据集的字段名称\n */\n dimensionKey: string | number;\n /** 维度成员值 */\n value: string;\n /** 维度成员下的子维度树结构 */\n children?: IHeaderTreeDefine[] | null;\n /** 折叠状态 TODO */\n hierarchyState?: HierarchyState;\n}\n"]}
|
package/dist/vtable.js
CHANGED
|
@@ -15539,7 +15539,7 @@
|
|
|
15539
15539
|
}
|
|
15540
15540
|
loadImage(image) {
|
|
15541
15541
|
let background = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
15542
|
-
if (!image ||
|
|
15542
|
+
if (!image || background && backgroundNotImage(image)) return;
|
|
15543
15543
|
const url = image;
|
|
15544
15544
|
this.resources || (this.resources = new Map());
|
|
15545
15545
|
const cache = {
|
|
@@ -15580,6 +15580,9 @@
|
|
|
15580
15580
|
}
|
|
15581
15581
|
}
|
|
15582
15582
|
}
|
|
15583
|
+
function backgroundNotImage(image) {
|
|
15584
|
+
return !(!image.fill && !image.stroke);
|
|
15585
|
+
}
|
|
15583
15586
|
Graphic.mixin(EventTarget$1);
|
|
15584
15587
|
|
|
15585
15588
|
var validator$2 = {};
|
|
@@ -26425,7 +26428,11 @@
|
|
|
26425
26428
|
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params), this.postInit();
|
|
26426
26429
|
}
|
|
26427
26430
|
postInit() {
|
|
26428
|
-
|
|
26431
|
+
try {
|
|
26432
|
+
this.observerCanvas();
|
|
26433
|
+
} catch (err) {
|
|
26434
|
+
console.error("发生错误,该环境不存在IntersectionObserver");
|
|
26435
|
+
}
|
|
26429
26436
|
}
|
|
26430
26437
|
isElementVisible(el) {
|
|
26431
26438
|
const rect = el.getBoundingClientRect(),
|
|
@@ -43578,8 +43585,8 @@
|
|
|
43578
43585
|
cell.removeChild(customContainer);
|
|
43579
43586
|
let customRender;
|
|
43580
43587
|
let customLayout;
|
|
43581
|
-
const
|
|
43582
|
-
if (
|
|
43588
|
+
const cellLocation = scene.table.getCellLocation(col, row);
|
|
43589
|
+
if (cellLocation !== 'body') {
|
|
43583
43590
|
const define = scene.table.getHeaderDefine(col, row);
|
|
43584
43591
|
customRender = define?.headerCustomRender;
|
|
43585
43592
|
customLayout = define?.headerCustomLayout;
|
|
@@ -44215,7 +44222,7 @@
|
|
|
44215
44222
|
parent.appendChild(this.columnMoverBack);
|
|
44216
44223
|
}
|
|
44217
44224
|
show(col, row, delta) {
|
|
44218
|
-
const
|
|
44225
|
+
const cellLocation = this.table.getCellLocation(col, row);
|
|
44219
44226
|
const mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
44220
44227
|
if (mergeInfo) {
|
|
44221
44228
|
col = mergeInfo.start.col;
|
|
@@ -44231,7 +44238,7 @@
|
|
|
44231
44238
|
let symbolY = 0;
|
|
44232
44239
|
let symbolRotate = Math.PI;
|
|
44233
44240
|
const linePoints = [];
|
|
44234
|
-
if (
|
|
44241
|
+
if (cellLocation === 'columnHeader') {
|
|
44235
44242
|
rectX = this.table.getColsWidth(0, col - 1) - this.table.stateManeger.scroll.horizontalBarPos;
|
|
44236
44243
|
rectY = this.table.getRowsHeight(0, this.table.frozenRowCount - 1);
|
|
44237
44244
|
rectHeight = this.table.tableNoFrameHeight;
|
|
@@ -44247,7 +44254,7 @@
|
|
|
44247
44254
|
linePoints.push({ x: 0, y: 0 });
|
|
44248
44255
|
linePoints.push({ x: 0, y: this.table.tableNoFrameHeight });
|
|
44249
44256
|
}
|
|
44250
|
-
else if (
|
|
44257
|
+
else if (cellLocation === 'rowHeader') {
|
|
44251
44258
|
rectY = this.table.getRowsHeight(0, row - 1) - this.table.stateManeger.scroll.verticalBarPos;
|
|
44252
44259
|
rectX = this.table.getColsWidth(0, this.table.frozenColCount - 1);
|
|
44253
44260
|
rectWidth = this.table.tableNoFrameWidth;
|
|
@@ -46327,7 +46334,7 @@
|
|
|
46327
46334
|
const actStyle = table._getCellStyle(col, row);
|
|
46328
46335
|
let iconWidth = 0;
|
|
46329
46336
|
const define = table.getBodyColumnDefine(col, row);
|
|
46330
|
-
const mayHaveIcon = table.
|
|
46337
|
+
const mayHaveIcon = table.getCellLocation(col, row) !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
46331
46338
|
if (mayHaveIcon) {
|
|
46332
46339
|
const icons = table.getCellIcons(col, row);
|
|
46333
46340
|
icons?.forEach(icon => {
|
|
@@ -46606,7 +46613,7 @@
|
|
|
46606
46613
|
const iconInlineEnd = [];
|
|
46607
46614
|
let iconInlineEndHeight = 0;
|
|
46608
46615
|
const define = table.getBodyColumnDefine(col, row);
|
|
46609
|
-
const mayHaveIcon = table.
|
|
46616
|
+
const mayHaveIcon = table.getCellLocation(col, row) !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
46610
46617
|
if (mayHaveIcon) {
|
|
46611
46618
|
const icons = table.getCellIcons(col, row);
|
|
46612
46619
|
icons?.forEach(icon => {
|
|
@@ -46969,8 +46976,8 @@
|
|
|
46969
46976
|
let renderDefault = true;
|
|
46970
46977
|
let customRender;
|
|
46971
46978
|
let customLayout;
|
|
46972
|
-
const
|
|
46973
|
-
if (
|
|
46979
|
+
const cellLocation = table.getCellLocation(col, row);
|
|
46980
|
+
if (cellLocation !== 'body') {
|
|
46974
46981
|
customRender = define?.headerCustomRender;
|
|
46975
46982
|
customLayout = define?.headerCustomLayout;
|
|
46976
46983
|
}
|
|
@@ -47037,11 +47044,11 @@
|
|
|
47037
47044
|
const type = table.isHeader(col, row)
|
|
47038
47045
|
? table._getHeaderLayoutMap(col, row).headerType
|
|
47039
47046
|
: table.getBodyColumnType(col, row);
|
|
47040
|
-
const
|
|
47041
|
-
const define =
|
|
47047
|
+
const cellLocation = table.getCellLocation(col, row);
|
|
47048
|
+
const define = cellLocation !== 'body' ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row);
|
|
47042
47049
|
let isMerge;
|
|
47043
47050
|
let range;
|
|
47044
|
-
if (
|
|
47051
|
+
if (cellLocation !== 'body' || define?.mergeCell) {
|
|
47045
47052
|
range = table.getCellRange(col, row);
|
|
47046
47053
|
isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
|
|
47047
47054
|
}
|
|
@@ -47067,7 +47074,7 @@
|
|
|
47067
47074
|
}
|
|
47068
47075
|
}
|
|
47069
47076
|
else {
|
|
47070
|
-
const mayHaveIcon =
|
|
47077
|
+
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
47071
47078
|
const headerStyle = table._getCellStyle(col, row);
|
|
47072
47079
|
const cellTheme = getStyleTheme(headerStyle, table, col, row, getProp).theme;
|
|
47073
47080
|
const padding = cellTheme._vtable.padding;
|
|
@@ -47083,7 +47090,7 @@
|
|
|
47083
47090
|
}
|
|
47084
47091
|
});
|
|
47085
47092
|
}
|
|
47086
|
-
if (
|
|
47093
|
+
if (cellLocation !== 'body') {
|
|
47087
47094
|
define?.headerCustomRender;
|
|
47088
47095
|
define?.headerCustomLayout;
|
|
47089
47096
|
}
|
|
@@ -47124,7 +47131,7 @@
|
|
|
47124
47131
|
return newCellGroup;
|
|
47125
47132
|
}
|
|
47126
47133
|
|
|
47127
|
-
function createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, mergeMap, defaultRowHeight, table,
|
|
47134
|
+
function createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, mergeMap, defaultRowHeight, table, cellLocation, rowLimit) {
|
|
47128
47135
|
let maxWidth = 0;
|
|
47129
47136
|
let padding;
|
|
47130
47137
|
let textAlign;
|
|
@@ -47135,8 +47142,8 @@
|
|
|
47135
47142
|
}
|
|
47136
47143
|
for (let j = rowStart; j <= rowEnd; j++) {
|
|
47137
47144
|
const row = j;
|
|
47138
|
-
const define =
|
|
47139
|
-
const mayHaveIcon =
|
|
47145
|
+
const define = cellLocation !== 'body' ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row);
|
|
47146
|
+
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
47140
47147
|
const headerStyle = table._getCellStyle(col, row);
|
|
47141
47148
|
const cellTheme = getStyleTheme(headerStyle, table, col, row, getProp).theme;
|
|
47142
47149
|
cellTheme.group.width = colWidth;
|
|
@@ -47150,7 +47157,7 @@
|
|
|
47150
47157
|
if (cellTheme.text.textBaseline) {
|
|
47151
47158
|
textBaseline = cellTheme.text.textBaseline;
|
|
47152
47159
|
}
|
|
47153
|
-
if (
|
|
47160
|
+
if (cellLocation !== 'body' && !cellTheme.group.fill) {
|
|
47154
47161
|
cellTheme.group.fill = '#fff';
|
|
47155
47162
|
}
|
|
47156
47163
|
let cellWidth = colWidth;
|
|
@@ -47160,7 +47167,7 @@
|
|
|
47160
47167
|
let mergeResult;
|
|
47161
47168
|
let range;
|
|
47162
47169
|
let isMerge;
|
|
47163
|
-
if (
|
|
47170
|
+
if (cellLocation !== 'body' || define?.mergeCell) {
|
|
47164
47171
|
range = table.getCellRange(col, row);
|
|
47165
47172
|
isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
|
|
47166
47173
|
if (isMerge) {
|
|
@@ -47237,7 +47244,7 @@
|
|
|
47237
47244
|
};
|
|
47238
47245
|
}
|
|
47239
47246
|
|
|
47240
|
-
function createColGroup(containerGroup, xOrigin, yOrigin, colStart, colEnd, rowStart, rowEnd,
|
|
47247
|
+
function createColGroup(containerGroup, xOrigin, yOrigin, colStart, colEnd, rowStart, rowEnd, cellLocation, table, rowLimit) {
|
|
47241
47248
|
if (colStart > colEnd || rowStart > rowEnd) {
|
|
47242
47249
|
return;
|
|
47243
47250
|
}
|
|
@@ -47258,7 +47265,7 @@
|
|
|
47258
47265
|
columnGroup.role = 'column';
|
|
47259
47266
|
columnGroup.col = i;
|
|
47260
47267
|
containerGroup.addChild(columnGroup);
|
|
47261
|
-
const { width: default2Width, height: default2Height } = createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, table.scenegraph.mergeMap,
|
|
47268
|
+
const { width: default2Width, height: default2Height } = createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, table.scenegraph.mergeMap, cellLocation === 'columnHeader' ? defaultHeaderRowHeight ?? defaultRowHeight : defaultRowHeight, table, cellLocation, rowLimit);
|
|
47262
47269
|
x += default2Width;
|
|
47263
47270
|
heightMax = Math.max(heightMax, default2Height);
|
|
47264
47271
|
}
|
|
@@ -48235,8 +48242,8 @@
|
|
|
48235
48242
|
new Group$1({});
|
|
48236
48243
|
function moveHeaderPosition(colSource, rowSource, colTarget, rowTarget, table) {
|
|
48237
48244
|
const scene = table.scenegraph;
|
|
48238
|
-
const
|
|
48239
|
-
const direction =
|
|
48245
|
+
const cellLocation = table.getCellLocation(colTarget, rowTarget);
|
|
48246
|
+
const direction = cellLocation === 'columnHeader' ? 'column' : cellLocation === 'rowHeader' ? 'row' : undefined;
|
|
48240
48247
|
let sourceColStart = 0;
|
|
48241
48248
|
let sourceRowStart = 0;
|
|
48242
48249
|
let sourceColEnd = 0;
|
|
@@ -50758,7 +50765,7 @@
|
|
|
50758
50765
|
});
|
|
50759
50766
|
|
|
50760
50767
|
function updateDrill(col, row, drillDown, drillUp, table) {
|
|
50761
|
-
const headerType = table.
|
|
50768
|
+
const headerType = table.getCellLocation(col, row);
|
|
50762
50769
|
let x = 0;
|
|
50763
50770
|
let y = 0;
|
|
50764
50771
|
let visible = false;
|
|
@@ -50941,8 +50948,8 @@
|
|
|
50941
50948
|
state.columnMove.rowSource = row;
|
|
50942
50949
|
state.columnMove.x = x - state.table.tableX;
|
|
50943
50950
|
state.columnMove.y = y - state.table.tableY;
|
|
50944
|
-
const
|
|
50945
|
-
const delta =
|
|
50951
|
+
const cellLocation = state.table.getCellLocation(col, row);
|
|
50952
|
+
const delta = cellLocation === 'columnHeader' ? state.columnMove.x : cellLocation === 'rowHeader' ? state.columnMove.y : 0;
|
|
50946
50953
|
state.table.scenegraph.component.showMoveCol(col, row, delta);
|
|
50947
50954
|
state.table.stateManeger.updateSelectPos(-1, -1);
|
|
50948
50955
|
state.table.scenegraph.updateNextFrame();
|
|
@@ -50967,15 +50974,15 @@
|
|
|
50967
50974
|
let backX;
|
|
50968
50975
|
let lineY;
|
|
50969
50976
|
let backY;
|
|
50970
|
-
const
|
|
50971
|
-
if (
|
|
50977
|
+
const cellLocation = state.table.getCellLocation(col, row);
|
|
50978
|
+
if (cellLocation === 'columnHeader') {
|
|
50972
50979
|
(backX = state.columnMove.x),
|
|
50973
50980
|
(lineX =
|
|
50974
50981
|
state.columnMove.colTarget >= state.columnMove.colSource
|
|
50975
50982
|
? state.table.getColsWidth(0, state.columnMove.colTarget)
|
|
50976
50983
|
: state.table.getColsWidth(0, state.columnMove.colTarget - 1));
|
|
50977
50984
|
}
|
|
50978
|
-
else if (
|
|
50985
|
+
else if (cellLocation === 'rowHeader') {
|
|
50979
50986
|
(backY = state.columnMove.y),
|
|
50980
50987
|
(lineY =
|
|
50981
50988
|
state.columnMove.rowTarget >= state.columnMove.rowSource
|
|
@@ -51729,7 +51736,7 @@
|
|
|
51729
51736
|
row: row,
|
|
51730
51737
|
order: order || 'normal',
|
|
51731
51738
|
dimensionInfo: this.table.internalProps.layoutMap.getPivotDimensionInfo(col, row),
|
|
51732
|
-
|
|
51739
|
+
cellLocation: this.table.getCellLocation(col, row)
|
|
51733
51740
|
});
|
|
51734
51741
|
return;
|
|
51735
51742
|
}
|
|
@@ -51806,7 +51813,7 @@
|
|
|
51806
51813
|
: table.getBodyColumnDefine(col, row);
|
|
51807
51814
|
const cellValue = table.getCellValue(col, row);
|
|
51808
51815
|
const cellOriginValue = table.getCellOriginValue(col, row);
|
|
51809
|
-
if (columnDefine.
|
|
51816
|
+
if (columnDefine.cellType === 'link') {
|
|
51810
51817
|
const linkJump = columnDefine.linkJump !== false;
|
|
51811
51818
|
if (!linkJump) {
|
|
51812
51819
|
return;
|
|
@@ -51936,13 +51943,13 @@
|
|
|
51936
51943
|
if (table.isPivotTable()) {
|
|
51937
51944
|
const layoutMap = table.internalProps.layoutMap;
|
|
51938
51945
|
hasSparkLine = layoutMap.indicatorsDefine.some(indicator => {
|
|
51939
|
-
return typeof indicator !== 'string' && indicator.
|
|
51946
|
+
return typeof indicator !== 'string' && indicator.cellType === 'sparkline';
|
|
51940
51947
|
});
|
|
51941
51948
|
}
|
|
51942
51949
|
else {
|
|
51943
51950
|
const layoutMap = table.internalProps.layoutMap;
|
|
51944
51951
|
hasSparkLine = layoutMap.columnObjects.some(column => {
|
|
51945
|
-
return column.
|
|
51952
|
+
return column.cellType === 'sparkline';
|
|
51946
51953
|
});
|
|
51947
51954
|
}
|
|
51948
51955
|
if (!hasSparkLine) {
|
|
@@ -53258,8 +53265,8 @@
|
|
|
53258
53265
|
});
|
|
53259
53266
|
return iconArr;
|
|
53260
53267
|
}
|
|
53261
|
-
getStyleClass(
|
|
53262
|
-
switch (
|
|
53268
|
+
getStyleClass(cellType) {
|
|
53269
|
+
switch (cellType) {
|
|
53263
53270
|
case 'text':
|
|
53264
53271
|
return TextStyle;
|
|
53265
53272
|
case 'image':
|
|
@@ -53504,7 +53511,7 @@
|
|
|
53504
53511
|
menuKey,
|
|
53505
53512
|
text,
|
|
53506
53513
|
highlight,
|
|
53507
|
-
|
|
53514
|
+
cellLocation: table.getCellLocation(col, row)
|
|
53508
53515
|
});
|
|
53509
53516
|
table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null);
|
|
53510
53517
|
table.fireListeners(TABLE_EVENT_TYPE.HIDE_MENU, null);
|
|
@@ -53532,7 +53539,7 @@
|
|
|
53532
53539
|
menuKey,
|
|
53533
53540
|
text,
|
|
53534
53541
|
highlight,
|
|
53535
|
-
|
|
53542
|
+
cellLocation: table.getCellLocation(col, row)
|
|
53536
53543
|
});
|
|
53537
53544
|
table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null);
|
|
53538
53545
|
table.fireListeners(TABLE_EVENT_TYPE.HIDE_MENU, null);
|
|
@@ -53646,7 +53653,7 @@
|
|
|
53646
53653
|
menuKey,
|
|
53647
53654
|
text,
|
|
53648
53655
|
highlight,
|
|
53649
|
-
|
|
53656
|
+
cellLocation: table.getCellLocation(col, row)
|
|
53650
53657
|
});
|
|
53651
53658
|
table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null);
|
|
53652
53659
|
table.fireListeners(TABLE_EVENT_TYPE.HIDE_MENU, null);
|
|
@@ -54982,7 +54989,7 @@
|
|
|
54982
54989
|
menuKey,
|
|
54983
54990
|
text,
|
|
54984
54991
|
highlight,
|
|
54985
|
-
|
|
54992
|
+
cellLocation: table.getCellLocation(col, row)
|
|
54986
54993
|
});
|
|
54987
54994
|
table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null);
|
|
54988
54995
|
table.fireListeners(TABLE_EVENT_TYPE.HIDE_MENU, null);
|
|
@@ -55770,7 +55777,7 @@
|
|
|
55770
55777
|
return TABLE_EVENT_TYPE;
|
|
55771
55778
|
}
|
|
55772
55779
|
options;
|
|
55773
|
-
version = "0.10.1
|
|
55780
|
+
version = "0.10.1";
|
|
55774
55781
|
pagerConf;
|
|
55775
55782
|
id = `VTable${Date.now()}`;
|
|
55776
55783
|
headerStyleCache;
|
|
@@ -57083,7 +57090,7 @@
|
|
|
57083
57090
|
return body?.define;
|
|
57084
57091
|
}
|
|
57085
57092
|
getBodyColumnType(col, row) {
|
|
57086
|
-
return this.internalProps.layoutMap.getBody(col, row).
|
|
57093
|
+
return this.internalProps.layoutMap.getBody(col, row).cellType;
|
|
57087
57094
|
}
|
|
57088
57095
|
getHeaderField(col, row) {
|
|
57089
57096
|
return this.internalProps.layoutMap.getHeaderField(col, row);
|
|
@@ -57095,8 +57102,8 @@
|
|
|
57095
57102
|
const hd = this.internalProps.layoutMap.getHeader(col, row);
|
|
57096
57103
|
return hd?.define;
|
|
57097
57104
|
}
|
|
57098
|
-
|
|
57099
|
-
const hdType = this.internalProps.layoutMap.
|
|
57105
|
+
getCellLocation(col, row) {
|
|
57106
|
+
const hdType = this.internalProps.layoutMap.getCellLocation(col, row);
|
|
57100
57107
|
return hdType;
|
|
57101
57108
|
}
|
|
57102
57109
|
getCellHeaderPaths(col, row) {
|
|
@@ -57252,16 +57259,12 @@
|
|
|
57252
57259
|
field: this.getHeaderField(col, row),
|
|
57253
57260
|
cellHeaderPaths: this.internalProps.layoutMap.getCellHeaderPaths(col, row),
|
|
57254
57261
|
title: colDef.title,
|
|
57255
|
-
|
|
57256
|
-
? typeof colDef.columnType === 'string'
|
|
57257
|
-
? colDef.columnType
|
|
57258
|
-
: 'progressbar'
|
|
57259
|
-
: 'text',
|
|
57262
|
+
cellType: colDef.cellType ? (typeof colDef.cellType === 'string' ? colDef.cellType : 'progressbar') : 'text',
|
|
57260
57263
|
originData: this.getCellOriginRecord(col, row),
|
|
57261
57264
|
cellRange: this.getCellRangeRelativeRect({ col, row }),
|
|
57262
57265
|
value: this.getCellValue(col, row),
|
|
57263
57266
|
dataValue: this.getCellOriginValue(col, row),
|
|
57264
|
-
|
|
57267
|
+
cellLocation: this.getCellLocation(col, row),
|
|
57265
57268
|
scaleRatio: this.canvas.getBoundingClientRect().width / this.canvas.offsetWidth
|
|
57266
57269
|
};
|
|
57267
57270
|
}
|
|
@@ -57340,7 +57343,7 @@
|
|
|
57340
57343
|
return cacheStyle;
|
|
57341
57344
|
}
|
|
57342
57345
|
const column = layoutMap.getBody(col, row);
|
|
57343
|
-
const styleClass = this.internalProps.bodyHelper.getStyleClass(column.
|
|
57346
|
+
const styleClass = this.internalProps.bodyHelper.getStyleClass(column.cellType);
|
|
57344
57347
|
const style = column?.style;
|
|
57345
57348
|
cacheStyle = of$2(style, this.theme.bodyStyle, {
|
|
57346
57349
|
col,
|
|
@@ -57706,7 +57709,7 @@
|
|
|
57706
57709
|
}
|
|
57707
57710
|
getCustomRender(col, row) {
|
|
57708
57711
|
let customRender;
|
|
57709
|
-
if (this.
|
|
57712
|
+
if (this.getCellLocation(col, row) !== 'body') {
|
|
57710
57713
|
const define = this.getHeaderDefine(col, row);
|
|
57711
57714
|
customRender = define?.headerCustomRender;
|
|
57712
57715
|
}
|
|
@@ -57718,7 +57721,7 @@
|
|
|
57718
57721
|
}
|
|
57719
57722
|
getCustomLayout(col, row) {
|
|
57720
57723
|
let customLayout;
|
|
57721
|
-
if (this.
|
|
57724
|
+
if (this.getCellLocation(col, row) !== 'body') {
|
|
57722
57725
|
const define = this.getHeaderDefine(col, row);
|
|
57723
57726
|
customLayout = define?.headerCustomLayout;
|
|
57724
57727
|
}
|
|
@@ -57730,7 +57733,7 @@
|
|
|
57730
57733
|
}
|
|
57731
57734
|
hasAutoImageColumn() {
|
|
57732
57735
|
return this.internalProps.layoutMap.columnObjects.find((column) => {
|
|
57733
|
-
if (column.
|
|
57736
|
+
if (column.cellType === 'image' && column.define.imageAutoSizing) {
|
|
57734
57737
|
return true;
|
|
57735
57738
|
}
|
|
57736
57739
|
return false;
|
|
@@ -58114,7 +58117,7 @@
|
|
|
58114
58117
|
}
|
|
58115
58118
|
return false;
|
|
58116
58119
|
}
|
|
58117
|
-
|
|
58120
|
+
getCellLocation(col, row) {
|
|
58118
58121
|
if (this.isHeader(col, row)) {
|
|
58119
58122
|
if (this.transpose) {
|
|
58120
58123
|
return 'rowHeader';
|
|
@@ -58536,7 +58539,7 @@
|
|
|
58536
58539
|
minWidth: colDef.minWidth,
|
|
58537
58540
|
maxWidth: colDef.maxWidth,
|
|
58538
58541
|
icon: colDef.icon,
|
|
58539
|
-
|
|
58542
|
+
cellType: colDef.cellType ?? colDef.columnType ?? 'text',
|
|
58540
58543
|
chartModule: 'chartModule' in colDef ? colDef.chartModule : null,
|
|
58541
58544
|
chartSpec: 'chartSpec' in colDef ? colDef.chartSpec : null,
|
|
58542
58545
|
sparklineSpec: 'sparklineSpec' in colDef ? colDef.sparklineSpec : DefaultSparklineSpec,
|
|
@@ -59096,7 +59099,7 @@
|
|
|
59096
59099
|
const result = {
|
|
59097
59100
|
field: this.getHeaderField(col, row),
|
|
59098
59101
|
value: this.getCellValue(col, row),
|
|
59099
|
-
|
|
59102
|
+
cellLocation: this.getCellLocation(col, row)
|
|
59100
59103
|
};
|
|
59101
59104
|
return result;
|
|
59102
59105
|
}
|
|
@@ -59524,7 +59527,7 @@
|
|
|
59524
59527
|
indicatorKey: indicatorInfo.indicatorKey,
|
|
59525
59528
|
field: indicatorInfo.indicatorKey,
|
|
59526
59529
|
fieldFormat: indicatorInfo?.format,
|
|
59527
|
-
|
|
59530
|
+
cellType: indicatorInfo?.cellType ?? indicatorInfo?.columnType ?? 'text',
|
|
59528
59531
|
chartModule: 'chartModule' in indicatorInfo ? indicatorInfo.chartModule : null,
|
|
59529
59532
|
chartSpec: 'chartSpec' in indicatorInfo ? indicatorInfo.chartSpec : null,
|
|
59530
59533
|
sparklineSpec: 'sparklineSpec' in indicatorInfo ? indicatorInfo.sparklineSpec : null,
|
|
@@ -59546,7 +59549,7 @@
|
|
|
59546
59549
|
id: ++seqId,
|
|
59547
59550
|
indicatorKey: hd.indicatorKey,
|
|
59548
59551
|
field: hd.indicatorKey,
|
|
59549
|
-
|
|
59552
|
+
cellType: 'text',
|
|
59550
59553
|
define: Object.assign({}, hd)
|
|
59551
59554
|
});
|
|
59552
59555
|
}
|
|
@@ -59803,7 +59806,7 @@
|
|
|
59803
59806
|
getHeaderFieldKey(col, row) {
|
|
59804
59807
|
return undefined;
|
|
59805
59808
|
}
|
|
59806
|
-
|
|
59809
|
+
getCellLocation(col, row) {
|
|
59807
59810
|
if (this.isCornerHeader(col, row)) {
|
|
59808
59811
|
return 'cornerHeader';
|
|
59809
59812
|
}
|
|
@@ -60056,7 +60059,7 @@
|
|
|
60056
60059
|
id: '',
|
|
60057
60060
|
field: undefined,
|
|
60058
60061
|
indicatorKey: undefined,
|
|
60059
|
-
|
|
60062
|
+
cellType: undefined,
|
|
60060
60063
|
define: undefined
|
|
60061
60064
|
});
|
|
60062
60065
|
}
|
|
@@ -60066,7 +60069,7 @@
|
|
|
60066
60069
|
id: '',
|
|
60067
60070
|
field: undefined,
|
|
60068
60071
|
indicatorKey: undefined,
|
|
60069
|
-
|
|
60072
|
+
cellType: undefined,
|
|
60070
60073
|
define: undefined
|
|
60071
60074
|
});
|
|
60072
60075
|
}
|
|
@@ -60273,7 +60276,7 @@
|
|
|
60273
60276
|
define: {
|
|
60274
60277
|
field: '',
|
|
60275
60278
|
headerType: 'text',
|
|
60276
|
-
|
|
60279
|
+
cellType: 'text'
|
|
60277
60280
|
}
|
|
60278
60281
|
};
|
|
60279
60282
|
this.rowHeaderObjs.push(cell);
|
|
@@ -61049,7 +61052,7 @@
|
|
|
61049
61052
|
define: {
|
|
61050
61053
|
field: dimensionInfo?.dimensionKey ?? this.rows[ids.length - 1],
|
|
61051
61054
|
headerType: dimensionInfo?.headerType ?? 'text',
|
|
61052
|
-
|
|
61055
|
+
cellType: 'text'
|
|
61053
61056
|
},
|
|
61054
61057
|
fieldFormat: dimensionInfo?.headerFormat,
|
|
61055
61058
|
dropDownMenu: dimensionInfo?.dropDownMenu,
|
|
@@ -61074,7 +61077,7 @@
|
|
|
61074
61077
|
define: {
|
|
61075
61078
|
field: dimensionInfo?.dimensionKey ?? this.columns[ids.length - 1],
|
|
61076
61079
|
headerType: dimensionInfo?.headerType ?? 'text',
|
|
61077
|
-
|
|
61080
|
+
cellType: 'text'
|
|
61078
61081
|
},
|
|
61079
61082
|
fieldFormat: dimensionInfo?.headerFormat,
|
|
61080
61083
|
dropDownMenu: dimensionInfo?.dropDownMenu,
|
|
@@ -61097,7 +61100,7 @@
|
|
|
61097
61100
|
define: {
|
|
61098
61101
|
field: this.indicatorDimensionKey,
|
|
61099
61102
|
headerType: indicatorInfo?.headerType ?? 'text',
|
|
61100
|
-
|
|
61103
|
+
cellType: 'text'
|
|
61101
61104
|
},
|
|
61102
61105
|
dropDownMenu: indicatorInfo?.dropDownMenu,
|
|
61103
61106
|
headerType: indicatorInfo?.headerType ?? 'text',
|
|
@@ -61124,7 +61127,7 @@
|
|
|
61124
61127
|
define: {
|
|
61125
61128
|
field: cornerAttrStr,
|
|
61126
61129
|
headerType: this.cornerSetting?.headerType ?? 'text',
|
|
61127
|
-
|
|
61130
|
+
cellType: 'text'
|
|
61128
61131
|
},
|
|
61129
61132
|
dropDownMenu: dimensionInfo?.dropDownMenu,
|
|
61130
61133
|
headerType: this.cornerSetting?.headerType ?? 'text',
|
|
@@ -61146,9 +61149,13 @@
|
|
|
61146
61149
|
id: indicatorKey,
|
|
61147
61150
|
indicatorKey: indicatorKey,
|
|
61148
61151
|
field: indicatorKey,
|
|
61149
|
-
define: Object.assign({
|
|
61152
|
+
define: Object.assign({
|
|
61153
|
+
field: indicatorKey,
|
|
61154
|
+
headerType: 'text',
|
|
61155
|
+
cellType: indicatorInfo?.cellType ?? indicatorInfo?.columnType ?? 'text'
|
|
61156
|
+
}, indicatorInfo),
|
|
61150
61157
|
fieldFormat: indicatorInfo?.format,
|
|
61151
|
-
|
|
61158
|
+
cellType: indicatorInfo?.cellType ?? indicatorInfo?.columnType ?? 'text',
|
|
61152
61159
|
chartModule: indicatorInfo && ('chartModule' in indicatorInfo ? indicatorInfo?.chartModule : null),
|
|
61153
61160
|
chartSpec: indicatorInfo && ('chartSpec' in indicatorInfo ? indicatorInfo?.chartSpec : null),
|
|
61154
61161
|
sparklineSpec: indicatorInfo && ('sparklineSpec' in indicatorInfo ? indicatorInfo?.sparklineSpec : null),
|
|
@@ -61185,7 +61192,7 @@
|
|
|
61185
61192
|
set rowHeaderTitle(_rowHeaderTitle) {
|
|
61186
61193
|
this._rowHeaderTitle = _rowHeaderTitle;
|
|
61187
61194
|
}
|
|
61188
|
-
|
|
61195
|
+
getCellLocation(col, row) {
|
|
61189
61196
|
if (this.isCornerHeader(col, row)) {
|
|
61190
61197
|
return 'cornerHeader';
|
|
61191
61198
|
}
|
|
@@ -61506,7 +61513,7 @@
|
|
|
61506
61513
|
id: '',
|
|
61507
61514
|
field: undefined,
|
|
61508
61515
|
indicatorKey: undefined,
|
|
61509
|
-
|
|
61516
|
+
cellType: undefined,
|
|
61510
61517
|
define: undefined
|
|
61511
61518
|
});
|
|
61512
61519
|
}
|
|
@@ -61516,7 +61523,7 @@
|
|
|
61516
61523
|
id: '',
|
|
61517
61524
|
field: undefined,
|
|
61518
61525
|
indicatorKey: undefined,
|
|
61519
|
-
|
|
61526
|
+
cellType: undefined,
|
|
61520
61527
|
define: undefined
|
|
61521
61528
|
});
|
|
61522
61529
|
}
|
|
@@ -63792,7 +63799,7 @@
|
|
|
63792
63799
|
const result = {
|
|
63793
63800
|
dimensionKey: dimensionInfos[dimensionInfos.length - 1].dimensionKey,
|
|
63794
63801
|
value: this.getCellValue(col, row),
|
|
63795
|
-
|
|
63802
|
+
cellLocation: this.getCellLocation(col, row),
|
|
63796
63803
|
isPivotCorner: this.isCornerHeader(col, row)
|
|
63797
63804
|
};
|
|
63798
63805
|
return result;
|
|
@@ -64186,7 +64193,7 @@
|
|
|
64186
64193
|
const result = {
|
|
64187
64194
|
dimensionKey: dimensionInfos[dimensionInfos.length - 1].dimensionKey,
|
|
64188
64195
|
value: this.getCellValue(col, row),
|
|
64189
|
-
|
|
64196
|
+
cellLocation: this.getCellLocation(col, row),
|
|
64190
64197
|
isPivotCorner: this.isCornerHeader(col, row)
|
|
64191
64198
|
};
|
|
64192
64199
|
return result;
|
|
@@ -65091,7 +65098,7 @@
|
|
|
65091
65098
|
percentCalc: percentCalc
|
|
65092
65099
|
});
|
|
65093
65100
|
|
|
65094
|
-
const version = "0.10.1
|
|
65101
|
+
const version = "0.10.1";
|
|
65095
65102
|
function getIcons() {
|
|
65096
65103
|
return get$1();
|
|
65097
65104
|
}
|