@visactor/vtable 1.23.1 → 1.23.2
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/body-helper/body-helper.js +1 -2
- package/cjs/body-helper/style.js +2 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/style-helper.js +1 -1
- package/cjs/core/style-helper.js.map +1 -1
- package/cjs/dataset/DataStatistics.js +1 -1
- package/cjs/dataset/dataset-pivot-table.js +1 -1
- package/cjs/dataset/dataset.js +1 -2
- package/cjs/dataset/flatDataToObject.js +1 -1
- package/cjs/edit/edit-manager.js +1 -0
- package/cjs/event/media-click.js +4 -4
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/header-helper/header-helper.d.ts +2 -2
- package/cjs/header-helper/header-helper.js.map +1 -1
- package/cjs/header-helper/style.js +1 -2
- package/cjs/icons.js +2 -2
- package/cjs/icons.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/row-height-map.js +1 -0
- package/cjs/plugins/custom-cell-style.js +1 -1
- package/cjs/plugins/index.js +1 -1
- package/cjs/plugins/interface.js +1 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +2 -2
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +3 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +12 -6
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +6 -2
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js +1 -2
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +5 -5
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +1 -2
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +3 -3
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +5 -5
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +2 -2
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/ts-types/icon.d.ts +2 -0
- package/cjs/ts-types/icon.js +4 -3
- package/cjs/ts-types/icon.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +3 -3
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/composite-dimension.d.ts +17 -0
- package/cjs/ts-types/pivot-table/dimension/composite-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/composite-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/index.d.ts +3 -2
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +14 -2
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +2 -2
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +40 -47
- package/dist/vtable.min.js +2 -2
- package/es/body-helper/body-helper.js +1 -2
- package/es/body-helper/style.js +2 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/style-helper.js +1 -1
- package/es/core/style-helper.js.map +1 -1
- package/es/dataset/DataStatistics.js +1 -1
- package/es/dataset/dataset-pivot-table.js +1 -1
- package/es/dataset/dataset.js +1 -2
- package/es/dataset/flatDataToObject.js +1 -1
- package/es/edit/edit-manager.js +2 -1
- package/es/event/media-click.js +4 -4
- package/es/event/media-click.js.map +1 -1
- package/es/header-helper/header-helper.d.ts +2 -2
- package/es/header-helper/header-helper.js.map +1 -1
- package/es/header-helper/style.js +1 -2
- package/es/icons.js +1 -3
- package/es/icons.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/row-height-map.js +2 -1
- package/es/plugins/custom-cell-style.js +1 -1
- package/es/plugins/index.js +1 -1
- package/es/plugins/interface.js +1 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +2 -2
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +3 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js +11 -7
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js +7 -3
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.js +1 -2
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +5 -5
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +1 -2
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +3 -3
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +5 -5
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.js +2 -2
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/ts-types/icon.d.ts +2 -0
- package/es/ts-types/icon.js +4 -3
- package/es/ts-types/icon.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +3 -3
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/composite-dimension.d.ts +17 -0
- package/es/ts-types/pivot-table/dimension/composite-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/composite-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/index.d.ts +3 -2
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +14 -2
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/index.d.ts +2 -2
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/es/ts-types/icon.d.ts
CHANGED
|
@@ -71,6 +71,8 @@ export declare enum IconFuncTypeEnum {
|
|
|
71
71
|
dropDownState = "dropDownState",
|
|
72
72
|
play = "play",
|
|
73
73
|
damagePic = "damagePic",
|
|
74
|
+
imageDamagePic = "imageDamagePic",
|
|
75
|
+
videoDamagePic = "videoDamagePic",
|
|
74
76
|
expand = "expand",
|
|
75
77
|
collapse = "collapse",
|
|
76
78
|
drillDown = "drillDown",
|
package/es/ts-types/icon.js
CHANGED
|
@@ -12,9 +12,10 @@ export var IconFuncTypeEnum;
|
|
|
12
12
|
!function(IconFuncTypeEnum) {
|
|
13
13
|
IconFuncTypeEnum.frozen = "frozen", IconFuncTypeEnum.sort = "sort", IconFuncTypeEnum.dropDown = "dropDown",
|
|
14
14
|
IconFuncTypeEnum.dropDownState = "dropDownState", IconFuncTypeEnum.play = "play",
|
|
15
|
-
IconFuncTypeEnum.damagePic = "damagePic", IconFuncTypeEnum.
|
|
16
|
-
IconFuncTypeEnum.
|
|
17
|
-
IconFuncTypeEnum.
|
|
15
|
+
IconFuncTypeEnum.damagePic = "damagePic", IconFuncTypeEnum.imageDamagePic = "imageDamagePic",
|
|
16
|
+
IconFuncTypeEnum.videoDamagePic = "videoDamagePic", IconFuncTypeEnum.expand = "expand",
|
|
17
|
+
IconFuncTypeEnum.collapse = "collapse", IconFuncTypeEnum.drillDown = "drillDown",
|
|
18
|
+
IconFuncTypeEnum.drillUp = "drillUp", IconFuncTypeEnum.dragReorder = "dragReorder";
|
|
18
19
|
}(IconFuncTypeEnum || (IconFuncTypeEnum = {}));
|
|
19
20
|
|
|
20
21
|
export var InternalIconName;
|
package/es/ts-types/icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/icon.ts"],"names":[],"mappings":"AAoHA,MAAM,CAAN,IAAY,YAsBX;AAtBD,WAAY,YAAY;IAEtB,2CAA2B,CAAA;IAE3B,uCAAuB,CAAA;IAEvB,6BAAa,CAAA;IAEb,+BAAe,CAAA;IAEf,+CAA+B,CAAA;IAM/B,2CAA2B,CAAA;IAE3B,6CAA6B,CAAA;IAG7B,qCAAqB,CAAA;AACvB,CAAC,EAtBW,YAAY,KAAZ,YAAY,QAsBvB;AAMD,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/icon.ts"],"names":[],"mappings":"AAoHA,MAAM,CAAN,IAAY,YAsBX;AAtBD,WAAY,YAAY;IAEtB,2CAA2B,CAAA;IAE3B,uCAAuB,CAAA;IAEvB,6BAAa,CAAA;IAEb,+BAAe,CAAA;IAEf,+CAA+B,CAAA;IAM/B,2CAA2B,CAAA;IAE3B,6CAA6B,CAAA;IAG7B,qCAAqB,CAAA;AACvB,CAAC,EAtBW,YAAY,KAAZ,YAAY,QAsBvB;AAMD,MAAM,CAAN,IAAY,gBAcX;AAdD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,yCAAqB,CAAA;IACrB,mDAA+B,CAAA;IAC/B,iCAAa,CAAA;IACb,2CAAuB,CAAA;IACvB,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;IACjC,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;IACnB,+CAA2B,CAAA;AAC7B,CAAC,EAdW,gBAAgB,KAAhB,gBAAgB,QAc3B;AACD,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B,kDAA8B,CAAA;IAC9B,sDAAkC,CAAA;IAClC,kDAA8B,CAAA;IAE9B,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;IACzB,2DAAuC,CAAA;IACvC,qDAAiC,CAAA;IAEjC,6CAAyB,CAAA;IACzB,iDAA6B,CAAA;IAC7B,uDAAmC,CAAA;IAEnC,+CAA2B,CAAA;AAC7B,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,QAe3B","file":"icon.js","sourcesContent":["// ****** Icon配置信息,header ,以及列Icon *******9\n\nimport type { ITextAttribute } from './../vrender';\nimport type { Placement } from './table-engine';\n\nexport interface IIconBase {\n /**\n * icon 是何种内容类型,如svg font。可用来约束不同类型的属性定义\n */\n type: 'text' | 'svg' | 'path' | 'image';\n /** icon的高度 */\n width?: number;\n /** icon的高度 */\n height?: number; // 如果是font图标 不设的话默认是字体高度\n /**\n * IconPosition枚举类型\n */\n positionType: IconPosition;\n /**\n * 和右侧元素间隔距离, 或者与单元格边界的间隔距离\n */\n marginRight?: number;\n /**\n * 和左侧元素间隔距离, 或者与单元格边界的间隔距离\n */\n marginLeft?: number;\n /**\n * icon名称,会作为内部缓存的key\n */\n name: string;\n /**\n * 重置VTable内部icon 指定icon的功能类型\n * 具有切换状态的功能性的图标请务必配置上, 如排序功能funcType配置sort,name配置sort_normal或ort_downward,或sort_upward\n */\n funcType?: IconFuncTypeEnum | string;\n /**\n * 响应hover 热区大小,及hover效果背景色\n */\n hover?: {\n width?: number;\n height?: number;\n bgColor: string;\n image?: string;\n };\n /** 鼠标hover到图标上后出现的具体鼠标样式 */\n cursor?: string;\n /**是否可见 默认'always' 可选:'always' | 'mouseenter_cell' | 'click_cell',常驻|hover到单元格时|选中单元格时。\n * 建议:如需使用 'mouseenter_cell' | 'click_cell',建议将positionTyle设为absoluteRight【即不占位】,否则占位的类型会影响视觉展示\n */\n visibleTime?: 'always' | 'mouseenter_cell' | 'click_cell';\n /**\n * 气泡框,按钮的的解释信息, 目前只支持hover行为触发\n */\n tooltip?: {\n title: string;\n /**气泡框位置,可选 top left right bottom */\n placement?: Placement;\n /** 气泡框的样式 不配的话会使用theme中的样式 */\n style?: {\n // font?: string;\n fontSize?: number;\n fontFamily?: string;\n color?: string;\n padding?: number[];\n bgColor?: string;\n arrowMark?: boolean;\n maxWidth?: number;\n maxHeight?: number;\n };\n disappearDelay?: number;\n };\n /**\n * 是否可交互 默认为true 目前已知不可交互按钮:下拉菜单状态\n */\n interactive?: boolean;\n}\n\n// ****** Column Icon Options *******\nexport interface TextIcon extends IIconBase {\n type: 'text';\n content: string;\n style?: ITextAttribute;\n}\nexport interface ImageIcon extends IIconBase {\n type: 'image';\n src: string;\n /** 图片裁切形状 */\n shape?: 'circle' | 'square';\n\n isGif?: boolean;\n}\n\nexport interface PathIcon extends IIconBase {\n type: 'path';\n path: string;\n color?: string;\n}\n\nexport interface SvgIcon extends IIconBase {\n type: 'svg';\n /**\n * svg内容,支持url或者path\n */\n svg: string;\n}\n\n// export interface NamedIcon extends IIconBase {\n// type: 'name';\n// color?: string;\n// }\n/**\n * icon 的位置\n * inlineFront:文本内容的前面,\n * inlineEnd:文本内容后面\n *\n */\nexport enum IconPosition {\n /**文本行内容前面的图标,跟随文本定位,随文本折行 */\n inlineFront = 'inlineFront',\n /**文本行内容后面的图标,跟随文本定位,随文本折行。如sort图表 放在文本内容的第一行 */\n inlineEnd = 'inlineEnd',\n /**单元格左侧按钮 且受padding影响 */\n left = 'left',\n /**单元格右侧按钮 受padding影响 如pin图表 */\n right = 'right',\n /**固定在右侧的图标,不占位,不受padding影响,可能压盖内容 如 dropDown */\n absoluteRight = 'absoluteRight',\n\n // todo 增加更丰富的配置\n // cellLeft = 'cellLeft', //cell内靠左侧布局的图标(占位但是不受padding影响?)\n // cellRight = 'cellRight', //cell内靠右侧布局的图标\n /**在单元格内容块的左侧的图标,跟随文本定位,不随文本折行 */\n contentLeft = 'contentLeft',\n /**在单元格内容块的右侧的图标,跟随文本定位,不随文本折行 */\n contentRight = 'contentRight',\n\n /**在单元格中自由定位 */\n absolute = 'absolute'\n}\n/**\n * 图标类型\n * frozen 固定列图标\n * sort 排序图标\n */\nexport enum IconFuncTypeEnum {\n frozen = 'frozen',\n sort = 'sort',\n dropDown = 'dropDown',\n dropDownState = 'dropDownState',\n play = 'play',\n damagePic = 'damagePic',\n imageDamagePic = 'imageDamagePic',\n videoDamagePic = 'videoDamagePic',\n expand = 'expand',\n collapse = 'collapse',\n drillDown = 'drillDown',\n drillUp = 'drillUp',\n dragReorder = 'dragReorder'\n}\nexport enum InternalIconName {\n upwardIconName = 'sort_upward',\n downwardIconName = 'sort_downward',\n normalIconName = 'sort_normal',\n //冻结列 图钉按钮的几种状态\n freezeIconName = 'freeze',\n frozenIconName = 'frozen',\n frozenCurrentIconName = 'frozenCurrent',\n dropdownIconName = 'dropdownIcon',\n // dropdownHoverIconName = 'dropdownIcon_hover',\n expandIconName = 'expand',\n collapseIconName = 'collapse',\n dragReorderIconName = 'dragReorder',\n\n loadingIconName = 'loading'\n}\n// 目前暂不支持FontIcon&PathIcon\nexport type ColumnIconOption = ImageIcon | SvgIcon | TextIcon;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellAddress, CellRange, ColumnIconOption, ColumnStyle, ColumnStyleOption, FieldDef, FieldFormat, HeaderStyleOption, LayoutObjectId, MenuListItem, CellInfo, PivotInfo, CustomRenderFunctionArg, SparklineSpec, HierarchyState, Aggregation, IRowSeriesNumber, SortOption, FieldGetter } from '../../';
|
|
1
|
+
import type { CellAddress, CellRange, ColumnIconOption, ColumnStyle, ColumnStyleOption, FieldDef, FieldFormat, HeaderStyleOption, LayoutObjectId, MenuListItem, CellInfo, PivotInfo, CustomRenderFunctionArg, SparklineSpec, HierarchyState, Aggregation, IRowSeriesNumber, SortOption, FieldGetter, ColumnTypeOption, HeaderTypeOption } from '../../';
|
|
2
2
|
import type { Aggregator } from '../../dataset/aggregation';
|
|
3
3
|
import type { BaseTableAPI } from '../../base-table';
|
|
4
4
|
import type { HeaderDefine, ColumnDefine, ColumnBodyDefine } from '../define';
|
|
@@ -11,7 +11,7 @@ export interface HeaderData extends WidthData {
|
|
|
11
11
|
field: FieldDef;
|
|
12
12
|
fieldFormat?: FieldFormat;
|
|
13
13
|
style?: HeaderStyleOption | ColumnStyle | null | undefined;
|
|
14
|
-
headerType:
|
|
14
|
+
headerType: HeaderTypeOption | ((args: CellInfo) => HeaderTypeOption);
|
|
15
15
|
define: ColumnDefine;
|
|
16
16
|
dropDownMenu?: MenuListItem[] | ((args: {
|
|
17
17
|
row: number;
|
|
@@ -44,7 +44,7 @@ export interface ColumnData extends WidthData {
|
|
|
44
44
|
field: FieldDef;
|
|
45
45
|
fieldFormat?: FieldFormat;
|
|
46
46
|
icon?: string | ColumnIconOption | (string | ColumnIconOption)[] | ((args: CellInfo) => undefined | string | ColumnIconOption | (string | ColumnIconOption)[]);
|
|
47
|
-
cellType:
|
|
47
|
+
cellType: ColumnTypeOption | ((arg0: CellInfo) => ColumnTypeOption);
|
|
48
48
|
chartModule?: string;
|
|
49
49
|
chartSpec?: any | ((arg0: CellInfo) => any);
|
|
50
50
|
chartInstance?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/list-table/layout-map/api.ts"],"names":[],"mappings":"","file":"api.js","sourcesContent":["import type {\n CellAddress,\n CellRange,\n ColumnIconOption,\n ColumnStyle,\n ColumnStyleOption,\n // ColumnTypeOption,\n FieldDef,\n FieldFormat,\n HeaderStyleOption,\n LayoutObjectId,\n MenuListItem,\n IPivotTableCellHeaderPaths,\n CellInfo,\n // ICustomRenderFuc,\n // ICustomRenderObj,\n PivotInfo,\n FieldKeyDef,\n CustomRenderFunctionArg,\n SparklineSpec,\n HierarchyState,\n Aggregation,\n IRowSeriesNumber,\n SortOption,\n FieldGetter,\n
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/list-table/layout-map/api.ts"],"names":[],"mappings":"","file":"api.js","sourcesContent":["import type {\n CellAddress,\n CellRange,\n ColumnIconOption,\n ColumnStyle,\n ColumnStyleOption,\n // ColumnTypeOption,\n FieldDef,\n FieldFormat,\n HeaderStyleOption,\n LayoutObjectId,\n MenuListItem,\n IPivotTableCellHeaderPaths,\n CellInfo,\n // ICustomRenderFuc,\n // ICustomRenderObj,\n PivotInfo,\n FieldKeyDef,\n CustomRenderFunctionArg,\n SparklineSpec,\n HierarchyState,\n Aggregation,\n IRowSeriesNumber,\n SortOption,\n FieldGetter,\n ColumnTypeOption,\n HeaderTypeOption\n} from '../../';\nimport type { Aggregator } from '../../dataset/aggregation';\nimport type { BaseTableAPI } from '../../base-table';\n\nimport type { HeaderDefine, ColumnDefine, ColumnBodyDefine } from '../define';\n\n// todo: 修改引用这些类型的路径\nexport type {\n HeaderDefine,\n ColumnDefine,\n ColumnBodyDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine\n} from '../define';\n\n/**\n * layout中组织表头的信息类 和HeaderDefine对应\n */\nexport interface HeaderData extends WidthData {\n id: LayoutObjectId;\n title?: string | (() => string);\n // captionIcon?: ColumnIconOption;\n headerIcon?:\n | string\n | ColumnIconOption\n | (string | ColumnIconOption)[]\n | ((args: CellInfo) => undefined | string | ColumnIconOption | (string | ColumnIconOption)[]);\n icons?: (string | ColumnIconOption)[] | ((args: CellInfo) => (string | ColumnIconOption)[]);\n\n field: FieldDef;\n fieldFormat?: FieldFormat;\n style?: HeaderStyleOption | ColumnStyle | null | undefined;\n headerType: HeaderTypeOption | ((args: CellInfo) => HeaderTypeOption); // headerType.BaseHeader;\n define: ColumnDefine;\n // sortIconPosition?: RectProps;\n // freezeIconPosition?: RectProps;\n /**存储图标的位置 坐标及宽高 是包括了boxWidth boxWidth 共getHitIcon方法使用 计算是否命中图标*/\n // iconPositionList?: { [key in IconFuncTypeEnum]?: RectProps & { icon: ColumnIconOption } };\n dropDownMenu?: MenuListItem[] | ((args: { row: number; col: number; table: BaseTableAPI }) => MenuListItem[]);\n pivotInfo?: PivotInfo;\n /**\n * 维度层级level 从0开始:第0层 第1层\n */\n hierarchyLevel?: number;\n /**\n * 维度总层级数\n */\n dimensionTotalLevel?: number;\n /**\n * 层级展开or折叠状态\n */\n hierarchyState?: HierarchyState;\n columnWidthComputeMode?: 'normal' | 'only-header' | 'only-body';\n\n showSort?: boolean | ((args: { row: number; col: number; table: BaseTableAPI }) => boolean);\n sort?: SortOption;\n\n /**\n * 表头描述 鼠标hover会提示该信息\n */\n description?: string | ((args: CellInfo) => string);\n\n // header内容为空\n isEmpty?: boolean;\n\n /** 记录当前表头节点的上级表头结点的cellId */\n parentCellId?: LayoutObjectId;\n}\n\nexport interface WidthData {\n width?: number | string;\n minWidth?: number | string;\n maxWidth?: number | string;\n columnWidthComputeMode?: 'normal' | 'only-header' | 'only-body';\n}\n/**\n * layout中组织body列的信息类 和ColumnDefine对应\n */\nexport interface ColumnData extends WidthData {\n id: LayoutObjectId;\n field: FieldDef;\n // fieldKey?: FieldKeyDef;\n fieldFormat?: FieldFormat;\n // icon?: ColumnIconOption | ColumnIconOption[];\n icon?:\n | string\n | ColumnIconOption\n | (string | ColumnIconOption)[]\n | ((args: CellInfo) => undefined | string | ColumnIconOption | (string | ColumnIconOption)[]);\n\n cellType: ColumnTypeOption | ((arg0: CellInfo) => ColumnTypeOption);\n /** 如果是绘制图表库组件的图表类型 需要将注入的组件名称 写到chartType */\n chartModule?: string;\n /** 如果是绘制图表库组件的图表类型 统一图表配置chartSpec */\n chartSpec?: any | ((arg0: CellInfo) => any);\n chartInstance?: any;\n sparklineSpec?: SparklineSpec | ((arg0: CellInfo) => SparklineSpec);\n style: ColumnStyleOption | null | undefined;\n define: ColumnDefine;\n templateLink?: string | FieldGetter;\n columnWidthComputeMode?: 'normal' | 'only-header' | 'only-body';\n /**存储图标的位置 坐标及宽高 是包括了boxWidth boxWidth 共getHitIcon方法使用 计算是否命中图标*/\n // iconPositionList?: { [key in IconFuncTypeEnum]?: RectProps & { icon: ColumnIconOption } };\n /**\n * 是否禁用调整列宽,如果是转置表格或者是透视表的指标是行方向指定 那该配置不生效\n */\n disableColumnResize?: boolean;\n aggregation?: Aggregation | Aggregation[];\n aggregator?: Aggregator | Aggregator[];\n /** 是否为子节点 即上层还有父节点 */\n isChildNode?: boolean;\n}\n\nexport interface IndicatorData extends WidthData {\n id: LayoutObjectId;\n field: string | number;\n /**\n * 唯一标识一种指标\n */\n indicatorKey: string;\n // fieldKey: FieldKeyDef;\n fieldFormat?: FieldFormat;\n cellType: 'text' | 'link' | 'image' | 'video' | 'sparkline' | 'progressbar' | 'chart'; //BaseColumn<T, any>;\n chartModule?: string;\n chartSpec?: any | ((arg0: CustomRenderFunctionArg) => any);\n chartInstance?: any;\n noDataRenderNothing?: boolean;\n style?: ColumnStyleOption | null | undefined;\n define: ColumnDefine;\n // headerIcon?:\n // | (string | ColumnIconOption)[]\n // | ((args: CellInfo) => (string | ColumnIconOption)[]);\n icon?:\n | string\n | ColumnIconOption\n | (string | ColumnIconOption)[]\n | ((args: CellInfo) => undefined | string | ColumnIconOption | (string | ColumnIconOption)[]);\n sparklineSpec?: SparklineSpec | ((arg0: CustomRenderFunctionArg) => SparklineSpec);\n /**\n * 是否禁用调整列宽,如果是转置表格或者是透视表的指标是行方向指定 那该配置不生效\n */\n disableColumnResize?: boolean;\n}\n\n/**\n * 序号列定义\n */\nexport interface SeriesNumberColumnData extends WidthData {\n id: LayoutObjectId;\n title?: string | (() => string);\n field?: FieldDef;\n // fieldKey?: FieldKeyDef;\n format?: (col?: number, row?: number, table?: BaseTableAPI, originValue?: string | number) => any;\n // icon?: ColumnIconOption | ColumnIconOption[];\n icon?:\n | string\n | ColumnIconOption\n | (string | ColumnIconOption)[]\n | ((args: CellInfo) => undefined | string | ColumnIconOption | (string | ColumnIconOption)[]);\n headerIcon?: string | ColumnIconOption | (string | ColumnIconOption)[];\n cellType: 'text' | 'link' | 'image' | 'video' | 'checkbox' | 'radio';\n headerType: 'text' | 'link' | 'image' | 'video' | 'checkbox';\n style: ColumnStyleOption | null | undefined;\n define: IRowSeriesNumber;\n isChildNode?: false;\n}\n// Simple header\n\n// export interface GroupHeaderDefine extends HeaderDefine {\n// columns: HeadersDefine;\n// hideColumnsSubHeader?: boolean;\n// dropDownMenu?: MenuListItem[];\n// }\n// type Either<X, Y> =\n// | ({\n// [KX in keyof X]: X[KX];\n// } & {\n// [KY in Exclude<keyof Y, keyof X>]?: never;\n// })\n// | ({\n// [KY in keyof Y]: Y[KY];\n// } & {\n// [KX in Exclude<keyof X, keyof Y>]?: never;\n// });\n// export type HeaderColumnDefine = Either<GroupHeaderDefine, ColumnDefine>;\n// export type HeadersDefine = HeaderColumnDefine[];\n\n// Advanced layout\n\n// export interface HeaderCellDefine extends HeaderDefine {\n// colSpan?: number;\n// rowSpan?: number;\n// }\nexport type HeaderCellDefine = HeaderDefine & {\n colSpan?: number;\n rowSpan?: number;\n};\n\n// export interface CellDefine extends ColumnDefine {\n// colSpan?: number;\n// rowSpan?: number;\n// }\n\nexport type CellDefine = ColumnBodyDefine & {\n colSpan?: number;\n rowSpan?: number;\n};\n\nexport type ArrayLayoutDefine = CellDefine[][];\n/** @internal */\ninterface LayoutMapAPI {\n readonly headerLevelCount: number;\n readonly rowHeaderLevelCount: number;\n readonly columnHeaderLevelCount: number;\n readonly bodyRowSpanCount: number;\n readonly colCount: number | undefined;\n readonly rowCount: number | undefined;\n readonly columnWidths: WidthData[];\n readonly headerObjects: HeaderData[];\n readonly columnObjects: ColumnData[] | IndicatorData[];\n // transpose: boolean;\n // showHeader: boolean;\n isHeader: (col: number, row: number) => boolean;\n // isHeaderNode(col: number, row: number): boolean; //是否为叶子表头\n /**获取单元格header对象 包括field style type 等 */\n getHeader: (col: number, row: number) => HeaderData | SeriesNumberColumnData;\n /**获取对应header的field */\n getHeaderField: (col: number, row: number) => FieldDef;\n // getHeaderFieldKey(col: number, row: number): FieldKeyDef;\n /**获取单元格column对象 包括field style type 等 */\n getBody: (col: number, row: number) => ColumnData | IndicatorData | SeriesNumberColumnData;\n /**获取单元格标识key */\n getCellId: (col: number, row: number) => LayoutObjectId;\n getCellRange: (col: number, row: number) => CellRange;\n // getCellRangeTranspose(col: number, row: number): CellRange;\n // getBodyLayoutRangeById: (id: LayoutObjectId) => CellRange;\n getHeaderCellAdressById: (id: number) => CellAddress | undefined;\n getHeaderCellAddressByField: (field: string) => CellAddress | undefined;\n getRecordShowIndexByCell: (col: number, row: number) => number;\n getRecordStartRowByRecordIndex: (index: number) => number;\n /** 从定义中获取一列配置项width的定义值 */\n getColumnWidthDefined: (col: number) => WidthData;\n release: () => void;\n\n isFrozenColumn: (col: number, row?: number) => boolean;\n isRightFrozenColumn: (col: number, row?: number) => boolean;\n isFrozenRow: (col: number, row?: number) => boolean;\n isBottomFrozenRow: (col: number, row?: number) => boolean;\n}\n\nexport type { LayoutMapAPI };\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HeaderTypeOption, ITextStyleOption } from '../../column';
|
|
2
|
+
import type { CellInfo } from '../../common';
|
|
3
|
+
import type { StylePropertyFunctionArg } from '../../style-define';
|
|
4
|
+
import type { FieldGetter } from '../../table-engine';
|
|
5
|
+
import type { IBasicDimension } from './basic-dimension';
|
|
6
|
+
export interface ICompositeDimension extends IBasicDimension {
|
|
7
|
+
headerType: (arg0: CellInfo) => HeaderTypeOption;
|
|
8
|
+
headerStyle?: ITextStyleOption | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption);
|
|
9
|
+
linkJump?: boolean;
|
|
10
|
+
linkDetect?: boolean;
|
|
11
|
+
templateLink?: string | FieldGetter;
|
|
12
|
+
linkTarget?: string;
|
|
13
|
+
linkWindowFeatures?: string;
|
|
14
|
+
keepAspectRatio?: boolean;
|
|
15
|
+
imageAutoSizing?: boolean;
|
|
16
|
+
clickToPreview?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/pivot-table/dimension/composite-dimension.ts"],"names":[],"mappings":"","file":"composite-dimension.js","sourcesContent":["import type { HeaderTypeOption, ITextStyleOption } from '../../column';\nimport { ColumnTypeOption } from '../../column';\nimport type { CellInfo } from '../../common';\nimport type { StylePropertyFunctionArg } from '../../style-define';\nimport type { FieldGetter } from '../../table-engine';\nimport type { IBasicDimension } from './basic-dimension';\n\nexport interface ICompositeDimension extends IBasicDimension {\n headerType: (arg0: CellInfo) => HeaderTypeOption;\n\n headerStyle?:\n | ITextStyleOption //表头可以配置吸附;\n | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption); // 指标名称在表头部分显示类型\n\n // link 特有\n /** 链接是否可点击跳转 */\n linkJump?: boolean;\n /** 链接是否进行正则检测,如果链接符合url规则才展示成为link。如果配置了模板链接该配置不生效。 */\n linkDetect?: boolean;\n /** 模板链接地址,如:'https://www.google.com.hk/search?q={name}',name是数据源属性字段名。 */\n templateLink?: string | FieldGetter;\n\n linkTarget?: string; // window.open的第二个参数\n linkWindowFeatures?: string; // window.open的第三个参数\n\n // image 特有\n /** 是否保持横纵比 默认false */\n keepAspectRatio?: boolean;\n /** 是否按图片尺寸自动撑开单元格尺寸 默认false */\n imageAutoSizing?: boolean;\n /** 点击开启预览 */\n clickToPreview?: boolean;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { ICompositeDimension } from './composite-dimension';
|
|
1
2
|
import type { IImageDimension } from './image-dimension';
|
|
2
3
|
import type { ILinkDimension } from './link-dimension';
|
|
3
4
|
import type { ITextDimension } from './multilinetext-dimension';
|
|
4
5
|
export type IDimension = IRowDimension | IColumnDimension;
|
|
5
|
-
export type IRowDimension = ILinkDimension | IImageDimension | ITextDimension;
|
|
6
|
-
export type IColumnDimension = Omit<ILinkDimension | IImageDimension | ITextDimension, 'width' | 'minWidth' | 'maxWidth'>;
|
|
6
|
+
export type IRowDimension = ILinkDimension | IImageDimension | ITextDimension | ICompositeDimension;
|
|
7
|
+
export type IColumnDimension = Omit<ILinkDimension | IImageDimension | ITextDimension | ICompositeDimension, 'width' | 'minWidth' | 'maxWidth'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/pivot-table/dimension/index.ts"],"names":[],"mappings":"","file":"index.js","sourcesContent":["import type { IImageDimension } from './image-dimension';\nimport type { ILinkDimension } from './link-dimension';\nimport type { ITextDimension } from './multilinetext-dimension';\n\nexport type IDimension = IRowDimension | IColumnDimension;\nexport type IRowDimension = ILinkDimension | IImageDimension | ITextDimension;\nexport type IColumnDimension = Omit<\n ILinkDimension | IImageDimension | ITextDimension,\n 'width' | 'minWidth' | 'maxWidth'\n>;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/pivot-table/dimension/index.ts"],"names":[],"mappings":"","file":"index.js","sourcesContent":["import type { ICompositeDimension } from './composite-dimension';\nimport type { IImageDimension } from './image-dimension';\nimport type { ILinkDimension } from './link-dimension';\nimport type { ITextDimension } from './multilinetext-dimension';\n\nexport type IDimension = IRowDimension | IColumnDimension;\nexport type IRowDimension = ILinkDimension | IImageDimension | ITextDimension | ICompositeDimension;\nexport type IColumnDimension = Omit<\n ILinkDimension | IImageDimension | ITextDimension | ICompositeDimension,\n 'width' | 'minWidth' | 'maxWidth'\n>;\n"]}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
import type { ColumnTypeOption, ITextStyleOption } from '../../column';
|
|
1
|
+
import type { ColumnTypeOption, HeaderTypeOption, ITextStyleOption } from '../../column';
|
|
2
2
|
import type { CellInfo } from '../../common';
|
|
3
3
|
import type { SparklineSpec } from '../../sparkline';
|
|
4
4
|
import type { StylePropertyFunctionArg } from '../../style-define';
|
|
5
5
|
import type { FieldGetter } from '../../table-engine';
|
|
6
|
-
import type { IBasicColumnIndicator } from './basic-indicator';
|
|
6
|
+
import type { IBasicColumnIndicator, IBasicHeaderIndicator } from './basic-indicator';
|
|
7
|
+
export interface ICompositeHeaderIndicator extends IBasicHeaderIndicator {
|
|
8
|
+
headerType: (arg0: CellInfo) => HeaderTypeOption;
|
|
9
|
+
headerStyle?: ITextStyleOption | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption);
|
|
10
|
+
linkJump?: boolean;
|
|
11
|
+
linkDetect?: boolean;
|
|
12
|
+
templateLink?: string | FieldGetter;
|
|
13
|
+
linkTarget?: string;
|
|
14
|
+
linkWindowFeatures?: string;
|
|
15
|
+
keepAspectRatio?: boolean;
|
|
16
|
+
imageAutoSizing?: boolean;
|
|
17
|
+
clickToPreview?: boolean;
|
|
18
|
+
}
|
|
7
19
|
export interface ICompositeColumnIndicator extends IBasicColumnIndicator {
|
|
8
20
|
cellType: (arg0: CellInfo) => ColumnTypeOption;
|
|
9
21
|
style?: ITextStyleOption | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/pivot-table/indicator/composite-indicator.ts"],"names":[],"mappings":"","file":"composite-indicator.js","sourcesContent":["import type { ColumnTypeOption, IStyleOption, ITextStyleOption } from '../../column';\nimport type { CellInfo } from '../../common';\nimport type { SparklineSpec } from '../../sparkline';\nimport type { StylePropertyFunctionArg } from '../../style-define';\nimport type { FieldGetter } from '../../table-engine';\nimport type { IBasicColumnIndicator } from './basic-indicator';\n\nexport interface ICompositeColumnIndicator extends IBasicColumnIndicator {\n cellType: (arg0: CellInfo) => ColumnTypeOption;\n style?: ITextStyleOption | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption); // body部分指标值显示样式\n\n // link 特有\n /** 链接是否可点击跳转 */\n linkJump?: boolean;\n /** 链接是否进行正则检测,如果链接符合url规则才展示成为link。如果配置了模板链接该配置不生效。 */\n linkDetect?: boolean;\n /** 模板链接地址,如:'https://www.google.com.hk/search?q={name}',name是数据源属性字段名。 */\n templateLink?: string | FieldGetter;\n\n linkTarget?: string; // window.open的第二个参数\n linkWindowFeatures?: string; // window.open的第三个参数\n\n // image 特有\n /** 是否保持横纵比 默认false */\n keepAspectRatio?: boolean;\n /** 是否按图片尺寸自动撑开单元格尺寸 默认false */\n imageAutoSizing?: boolean;\n\n // chart 特有\n /** 注入的图表库组件名称 */\n chartModule?: string;\n /** 对应图表库的spec 其中value对应在records中提供 */\n chartSpec?: any | ((arg0: CellInfo) => any);\n\n // progressbar 特有\n /* 进度条展示的最大最小数据值限制,从min到max为整个进度条的长度;\n * 如果barType为'negative'或'negative_no_axis',负向进度条的总长度为长度为min到0,正向进度条的总长度为长度为0到max,\n * 例如:min为10,max为50,数据为30,进度条展示为单元格宽度的一半\n */\n min?: number;\n max?: number;\n /* 进度条类型 默认default\n * default:由min到max的进度条\n * negative:分别展示min到0,0到max的正负向两个进度条,中间展示0值坐标轴\n * negative_no_axis:展示与negative相同,不限制0值坐标轴\n */\n barType?: 'default' | 'negative' | 'negative_no_axis';\n /** 进度图依赖的数据,如果需要单元格展示的文字和进度图使用的数据字段不同,在dependField里配置进度图使用的数据字段 */\n dependField?: string;\n\n // sparkline 特有\n sparklineSpec?: SparklineSpec | ((arg0: CellInfo) => SparklineSpec);\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/pivot-table/indicator/composite-indicator.ts"],"names":[],"mappings":"","file":"composite-indicator.js","sourcesContent":["import type { ColumnTypeOption, HeaderTypeOption, IStyleOption, ITextStyleOption } from '../../column';\nimport type { CellInfo } from '../../common';\nimport type { SparklineSpec } from '../../sparkline';\nimport type { StylePropertyFunctionArg } from '../../style-define';\nimport type { FieldGetter } from '../../table-engine';\nimport type { IBasicColumnIndicator, IBasicHeaderIndicator } from './basic-indicator';\nexport interface ICompositeHeaderIndicator extends IBasicHeaderIndicator {\n headerType: (arg0: CellInfo) => HeaderTypeOption; // 指标表头类型\n headerStyle?:\n | ITextStyleOption //表头可以配置吸附;\n | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption); // 指标名称在表头部分显示类型\n\n // link 特有\n /** 链接是否可点击跳转 */\n linkJump?: boolean;\n /** 链接是否进行正则检测,如果链接符合url规则才展示成为link。如果配置了模板链接该配置不生效。 */\n linkDetect?: boolean;\n /** 模板链接地址,如:'https://www.google.com.hk/search?q={name}',name是数据源属性字段名。 */\n templateLink?: string | FieldGetter;\n\n linkTarget?: string; // window.open的第二个参数\n linkWindowFeatures?: string; // window.open的第三个参数\n\n // image 特有\n /** 是否保持横纵比 默认false */\n keepAspectRatio?: boolean;\n /** 是否按图片尺寸自动撑开单元格尺寸 默认false */\n imageAutoSizing?: boolean;\n /** 点击开启预览 */\n clickToPreview?: boolean;\n}\nexport interface ICompositeColumnIndicator extends IBasicColumnIndicator {\n cellType: (arg0: CellInfo) => ColumnTypeOption;\n style?: ITextStyleOption | ((styleArg: StylePropertyFunctionArg) => ITextStyleOption); // body部分指标值显示样式\n\n // link 特有\n /** 链接是否可点击跳转 */\n linkJump?: boolean;\n /** 链接是否进行正则检测,如果链接符合url规则才展示成为link。如果配置了模板链接该配置不生效。 */\n linkDetect?: boolean;\n /** 模板链接地址,如:'https://www.google.com.hk/search?q={name}',name是数据源属性字段名。 */\n templateLink?: string | FieldGetter;\n\n linkTarget?: string; // window.open的第二个参数\n linkWindowFeatures?: string; // window.open的第三个参数\n\n // image 特有\n /** 是否保持横纵比 默认false */\n keepAspectRatio?: boolean;\n /** 是否按图片尺寸自动撑开单元格尺寸 默认false */\n imageAutoSizing?: boolean;\n\n // chart 特有\n /** 注入的图表库组件名称 */\n chartModule?: string;\n /** 对应图表库的spec 其中value对应在records中提供 */\n chartSpec?: any | ((arg0: CellInfo) => any);\n\n // progressbar 特有\n /* 进度条展示的最大最小数据值限制,从min到max为整个进度条的长度;\n * 如果barType为'negative'或'negative_no_axis',负向进度条的总长度为长度为min到0,正向进度条的总长度为长度为0到max,\n * 例如:min为10,max为50,数据为30,进度条展示为单元格宽度的一半\n */\n min?: number;\n max?: number;\n /* 进度条类型 默认default\n * default:由min到max的进度条\n * negative:分别展示min到0,0到max的正负向两个进度条,中间展示0值坐标轴\n * negative_no_axis:展示与negative相同,不限制0值坐标轴\n */\n barType?: 'default' | 'negative' | 'negative_no_axis';\n /** 进度图依赖的数据,如果需要单元格展示的文字和进度图使用的数据字段不同,在dependField里配置进度图使用的数据字段 */\n dependField?: string;\n\n // sparkline 特有\n sparklineSpec?: SparklineSpec | ((arg0: CellInfo) => SparklineSpec);\n}\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IChartColumnIndicator } from './chart-indicator';
|
|
2
2
|
import type { ICheckboxColumnIndicator } from './checkbox-indicator';
|
|
3
|
-
import type { ICompositeColumnIndicator } from './composite-indicator';
|
|
3
|
+
import type { ICompositeColumnIndicator, ICompositeHeaderIndicator } from './composite-indicator';
|
|
4
4
|
import type { IImageColumnIndicator, IImageHeaderIndicator } from './image-indicator';
|
|
5
5
|
import type { ILinkColumnIndicator, ILinkHeaderIndicator } from './link-indicator';
|
|
6
6
|
import type { ITextColumnIndicator, ITextHeaderIndicator } from './multilinetext-indicator';
|
|
7
7
|
import type { IProgressbarColumnIndicator } from './progress-indicator';
|
|
8
8
|
import type { ISparklineColumnIndicator } from './sparkline-indicator';
|
|
9
|
-
export type HeaderIndicator = ILinkHeaderIndicator | IImageHeaderIndicator | ITextHeaderIndicator;
|
|
9
|
+
export type HeaderIndicator = ILinkHeaderIndicator | IImageHeaderIndicator | ITextHeaderIndicator | ICompositeHeaderIndicator;
|
|
10
10
|
export type ColumnIndicator = ILinkColumnIndicator | IImageColumnIndicator | ISparklineColumnIndicator | IProgressbarColumnIndicator | ICheckboxColumnIndicator | IChartColumnIndicator | ITextColumnIndicator | ICompositeColumnIndicator;
|
|
11
11
|
export type IIndicator = HeaderIndicator & ColumnIndicator;
|
|
12
12
|
export type IChartIndicator = HeaderIndicator & IChartColumnIndicator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/pivot-table/indicator/index.ts"],"names":[],"mappings":"","file":"index.js","sourcesContent":["import type { IChartColumnIndicator } from './chart-indicator';\nimport type { ICheckboxColumnIndicator } from './checkbox-indicator';\nimport type { ICompositeColumnIndicator } from './composite-indicator';\nimport type { IImageColumnIndicator, IImageHeaderIndicator } from './image-indicator';\nimport type { ILinkColumnIndicator, ILinkHeaderIndicator } from './link-indicator';\nimport type { ITextColumnIndicator, ITextHeaderIndicator } from './multilinetext-indicator';\nimport type { IProgressbarColumnIndicator } from './progress-indicator';\nimport type { ISparklineColumnIndicator } from './sparkline-indicator';\n\nexport type HeaderIndicator
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/pivot-table/indicator/index.ts"],"names":[],"mappings":"","file":"index.js","sourcesContent":["import type { IChartColumnIndicator } from './chart-indicator';\nimport type { ICheckboxColumnIndicator } from './checkbox-indicator';\nimport type { ICompositeColumnIndicator, ICompositeHeaderIndicator } from './composite-indicator';\nimport type { IImageColumnIndicator, IImageHeaderIndicator } from './image-indicator';\nimport type { ILinkColumnIndicator, ILinkHeaderIndicator } from './link-indicator';\nimport type { ITextColumnIndicator, ITextHeaderIndicator } from './multilinetext-indicator';\nimport type { IProgressbarColumnIndicator } from './progress-indicator';\nimport type { ISparklineColumnIndicator } from './sparkline-indicator';\n\nexport type HeaderIndicator =\n | ILinkHeaderIndicator\n | IImageHeaderIndicator\n | ITextHeaderIndicator\n | ICompositeHeaderIndicator;\n\nexport type ColumnIndicator =\n | ILinkColumnIndicator\n | IImageColumnIndicator\n | ISparklineColumnIndicator\n | IProgressbarColumnIndicator\n | ICheckboxColumnIndicator\n | IChartColumnIndicator\n | ITextColumnIndicator\n | ICompositeColumnIndicator;\n\nexport type IIndicator = HeaderIndicator & ColumnIndicator;\n\nexport type IChartIndicator = HeaderIndicator & IChartColumnIndicator;\n"]}
|
package/es/vrender.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EACL,cAAc,EACd,WAAW,EACX,WAAW,EAGX,cAAc,EAEd,aAAa,EACb,aAAa,EACb,YAAY,EAIZ,YAAY,EAEZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,MAAM,UAAU,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,gBAAgB,EAAE,CAAC;IAEnB,IAAI,YAAY,EAAE,EAAE;QAClB,cAAc,CAAC,SAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,SAAS,EAAE,EAAE;QACtB,WAAW,CAAC,SAAS,CAAC,CAAC;KACxB;IACD,WAAW,EAAE,CAAC;IAGd,cAAc,EAAE,CAAC;IAEjB,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IAIf,YAAY,EAAE,CAAC;IAEf,gBAAgB,EAAE,CAAC;IACnB,kBAAkB,EAAE,CAAC;IACrB,cAAc,EAAE,CAAC;IACjB,YAAY,EAAE,CAAC;IACf,wBAAwB,EAAE,CAAC;IAE3B,UAAU,EAAE,CAAC;IAEb,wBAAwB,EAAE,CAAC;AAC7B,CAAC;AAOD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.23.
|
|
1
|
+
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EACL,cAAc,EACd,WAAW,EACX,WAAW,EAGX,cAAc,EAEd,aAAa,EACb,aAAa,EACb,YAAY,EAIZ,YAAY,EAEZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,MAAM,UAAU,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,gBAAgB,EAAE,CAAC;IAEnB,IAAI,YAAY,EAAE,EAAE;QAClB,cAAc,CAAC,SAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,SAAS,EAAE,EAAE;QACtB,WAAW,CAAC,SAAS,CAAC,CAAC;KACxB;IACD,WAAW,EAAE,CAAC;IAGd,cAAc,EAAE,CAAC;IAEjB,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IAIf,YAAY,EAAE,CAAC;IAEf,gBAAgB,EAAE,CAAC;IACnB,kBAAkB,EAAE,CAAC;IACrB,cAAc,EAAE,CAAC;IACjB,YAAY,EAAE,CAAC;IACf,wBAAwB,EAAE,CAAC;IAE3B,UAAU,EAAE,CAAC;IAEb,wBAAwB,EAAE,CAAC;AAC7B,CAAC;AAOD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.23.2\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n // registerArc3d();\n // registerArea();\n registerCircle();\n // registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n // registerPath();\n // registerPolygon();\n // registerPyramid3d();\n registerRect();\n // registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerFlexLayoutPlugin();\n // registerWrapText();\n loadPoptip();\n\n registerFlexLayoutPlugin();\n}\n\nexport type { Direction } from '@visactor/vrender-core';\nexport type { State } from '@visactor/vrender-components';\n// export { GroupFadeIn } from '@visactor/vrender-core';\n// export { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\nexport * from '@visactor/vrender-animate';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vtable",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.2",
|
|
4
4
|
"description": "canvas table width high performance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"grid",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cssfontparser": "^1.2.1",
|
|
49
49
|
"gifuct-js": "2.1.2",
|
|
50
50
|
"lodash": "4.17.21",
|
|
51
|
-
"@visactor/vtable-editors": "1.23.
|
|
51
|
+
"@visactor/vtable-editors": "1.23.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"cross-env": "^7.0.3",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"d3-hierarchy": "^3.1.1",
|
|
102
102
|
"@resvg/resvg-js": "^2.5.0",
|
|
103
103
|
"pikaday": "1.8.2",
|
|
104
|
-
"@internal/
|
|
104
|
+
"@internal/eslint-config": "0.0.1",
|
|
105
105
|
"@internal/ts-config": "0.0.1",
|
|
106
|
-
"@internal/
|
|
106
|
+
"@internal/bundler": "0.0.1"
|
|
107
107
|
},
|
|
108
108
|
"unpkg": "latest",
|
|
109
109
|
"unpkgFiles": [
|