@visactor/vtable 1.11.3 → 1.11.5
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-all.js +6 -5
- package/cjs/ListTable-all.js.map +1 -1
- package/cjs/PivotTable.js +14 -3
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +2 -2
- package/cjs/core/BaseTable.js +13 -8
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/style-helper.js +6 -6
- package/cjs/core/style-helper.js.map +1 -1
- package/cjs/index.d.ts +1 -4
- package/cjs/index.js +2 -3
- package/cjs/index.js.map +1 -1
- package/cjs/plugins/custom-cell-style.d.ts +6 -2
- package/cjs/plugins/custom-cell-style.js +8 -2
- package/cjs/plugins/custom-cell-style.js.map +1 -1
- package/cjs/plugins/invert-highlight.d.ts +0 -18
- package/cjs/plugins/invert-highlight.js +3 -52
- package/cjs/plugins/invert-highlight.js.map +1 -1
- package/cjs/plugins/list-tree-stick-cell.d.ts +3 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +4 -4
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +188 -517
- package/dist/vtable.min.js +2 -2
- package/es/ListTable-all.js +5 -3
- package/es/ListTable-all.js.map +1 -1
- package/es/PivotTable.js +14 -3
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.d.ts +2 -2
- package/es/core/BaseTable.js +12 -9
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/style-helper.js +7 -7
- package/es/core/style-helper.js.map +1 -1
- package/es/index.d.ts +1 -4
- package/es/index.js +1 -7
- package/es/index.js.map +1 -1
- package/es/plugins/custom-cell-style.d.ts +6 -2
- package/es/plugins/custom-cell-style.js +6 -0
- package/es/plugins/custom-cell-style.js.map +1 -1
- package/es/plugins/invert-highlight.d.ts +0 -18
- package/es/plugins/invert-highlight.js +0 -55
- package/es/plugins/invert-highlight.js.map +1 -1
- package/es/plugins/list-tree-stick-cell.d.ts +3 -1
- package/es/plugins/list-tree-stick-cell.js +4 -4
- package/es/plugins/list-tree-stick-cell.js.map +1 -1
- package/es/ts-types/base-table.d.ts +4 -4
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
- package/cjs/plugins/carousel-animation.d.ts +0 -48
- package/cjs/plugins/carousel-animation.js +0 -71
- package/cjs/plugins/carousel-animation.js.map +0 -1
- package/cjs/plugins/header-highlight.d.ts +0 -21
- package/cjs/plugins/header-highlight.js +0 -108
- package/cjs/plugins/header-highlight.js.map +0 -1
- package/es/plugins/carousel-animation.d.ts +0 -48
- package/es/plugins/carousel-animation.js +0 -63
- package/es/plugins/carousel-animation.js.map +0 -1
- package/es/plugins/header-highlight.d.ts +0 -21
- package/es/plugins/header-highlight.js +0 -100
- package/es/plugins/header-highlight.js.map +0 -1
package/es/ListTable-all.js
CHANGED
|
@@ -2,13 +2,15 @@ import { ListTable } from "./ListTable";
|
|
|
2
2
|
|
|
3
3
|
import { registerAxis, registerEmptyTip, registerLegend, registerMenu, registerTitle, registerTooltip } from "./components";
|
|
4
4
|
|
|
5
|
+
import { registerCustomCellStylePlugin } from "./plugins/custom-cell-style";
|
|
6
|
+
|
|
5
7
|
import { registerListTreeStickCellPlugin } from "./plugins/list-tree-stick-cell";
|
|
6
8
|
|
|
7
9
|
import { registerChartCell, registerCheckboxCell, registerImageCell, registerProgressBarCell, registerRadioCell, registerSparkLineCell, registerTextCell, registerVideoCell } from "./scenegraph/group-creater/cell-type";
|
|
8
10
|
|
|
9
11
|
registerAxis(), registerEmptyTip(), registerLegend(), registerMenu(), registerTitle(),
|
|
10
|
-
registerTooltip(), registerListTreeStickCellPlugin(),
|
|
11
|
-
|
|
12
|
-
registerTextCell(), registerVideoCell();
|
|
12
|
+
registerTooltip(), registerListTreeStickCellPlugin(), registerCustomCellStylePlugin(),
|
|
13
|
+
registerChartCell(), registerCheckboxCell(), registerImageCell(), registerProgressBarCell(),
|
|
14
|
+
registerRadioCell(), registerSparkLineCell(), registerTextCell(), registerVideoCell();
|
|
13
15
|
|
|
14
16
|
export class ListTableAll extends ListTable {}
|
package/es/ListTable-all.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ListTable-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;AAE9C,YAAY,EAAE,CAAC;AACf,gBAAgB,EAAE,CAAC;AACnB,cAAc,EAAE,CAAC;AACjB,YAAY,EAAE,CAAC;AACf,aAAa,EAAE,CAAC;AAChB,eAAe,EAAE,CAAC;AAClB,+BAA+B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"sources":["../src/ListTable-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;AAE9C,YAAY,EAAE,CAAC;AACf,gBAAgB,EAAE,CAAC;AACnB,cAAc,EAAE,CAAC;AACjB,YAAY,EAAE,CAAC;AACf,aAAa,EAAE,CAAC;AAChB,eAAe,EAAE,CAAC;AAClB,+BAA+B,EAAE,CAAC;AAClC,6BAA6B,EAAE,CAAC;AAEhC,iBAAiB,EAAE,CAAC;AACpB,oBAAoB,EAAE,CAAC;AACvB,iBAAiB,EAAE,CAAC;AACpB,uBAAuB,EAAE,CAAC;AAC1B,iBAAiB,EAAE,CAAC;AACpB,qBAAqB,EAAE,CAAC;AACxB,gBAAgB,EAAE,CAAC;AACnB,iBAAiB,EAAE,CAAC;AACpB,MAAM,OAAO,YAAa,SAAQ,SAAS;CAAG","file":"ListTable-all.js","sourcesContent":["import { ListTable } from './ListTable';\nimport {\n registerAxis,\n registerEmptyTip,\n registerLegend,\n registerMenu,\n registerTitle,\n registerTooltip\n} from './components';\nimport { registerCustomCellStylePlugin } from './plugins/custom-cell-style';\nimport { registerListTreeStickCellPlugin } from './plugins/list-tree-stick-cell';\nimport {\n registerChartCell,\n registerCheckboxCell,\n registerImageCell,\n registerProgressBarCell,\n registerRadioCell,\n registerSparkLineCell,\n registerTextCell,\n registerVideoCell\n} from './scenegraph/group-creater/cell-type';\n\nregisterAxis();\nregisterEmptyTip();\nregisterLegend();\nregisterMenu();\nregisterTitle();\nregisterTooltip();\nregisterListTreeStickCellPlugin();\nregisterCustomCellStylePlugin();\n\nregisterChartCell();\nregisterCheckboxCell();\nregisterImageCell();\nregisterProgressBarCell();\nregisterRadioCell();\nregisterSparkLineCell();\nregisterTextCell();\nregisterVideoCell();\nexport class ListTableAll extends ListTable {}\n"]}
|
package/es/PivotTable.js
CHANGED
|
@@ -518,9 +518,20 @@ export class PivotTable extends BaseTable {
|
|
|
518
518
|
_parseColumnWidthConfig(columnWidthConfig) {
|
|
519
519
|
for (let i = 0; i < (null == columnWidthConfig ? void 0 : columnWidthConfig.length); i++) {
|
|
520
520
|
const item = columnWidthConfig[i], dimensions = item.dimensions, width = item.width, cell = this.getCellAddressByHeaderPaths(dimensions);
|
|
521
|
-
if (cell.col >= this.rowHeaderLevelCount) {
|
|
522
|
-
this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount
|
|
523
|
-
|
|
521
|
+
if (cell && cell.col >= this.rowHeaderLevelCount) {
|
|
522
|
+
const cellPath = this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount);
|
|
523
|
+
if (cellPath.colHeaderPaths.length === dimensions.length) {
|
|
524
|
+
let match = !0;
|
|
525
|
+
for (let i = 0; i < dimensions.length; i++) {
|
|
526
|
+
const dimension = dimensions[i];
|
|
527
|
+
if (cellPath.colHeaderPaths.findIndex(((colPath, index) => colPath.indicatorKey === dimension.indicatorKey || colPath.dimensionKey === dimension.dimensionKey && colPath.value === dimension.value)) < 0) {
|
|
528
|
+
match = !1;
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
match && !this.internalProps._widthResizedColMap.has(cell.col) && (this._setColWidth(cell.col, width),
|
|
533
|
+
this.internalProps._widthResizedColMap.add(cell.col));
|
|
534
|
+
}
|
|
524
535
|
}
|
|
525
536
|
}
|
|
526
537
|
}
|