@visactor/vtable-gantt 1.8.2 → 1.8.3-alpha.0
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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-gantt.js +17 -17
- package/dist/vtable-gantt.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +4 -4
package/cjs/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { Gantt } from './Gantt';
|
|
|
5
5
|
import * as tools from './tools';
|
|
6
6
|
import * as VRender from './vrender';
|
|
7
7
|
import * as VTable from './vtable';
|
|
8
|
-
export declare const version = "1.8.
|
|
8
|
+
export declare const version = "1.8.3-alpha.0";
|
|
9
9
|
export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAuBlC,sBAAK;AATP,mCAAgC;AAW9B,sFAXO,aAAK,OAWP;AAVP,+CAAiC;AAsB/B,sBAAK;AArBP,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBK,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAuBlC,sBAAK;AATP,mCAAgC;AAW9B,sFAXO,aAAK,OAWP;AAVP,+CAAiC;AAsB/B,sBAAK;AArBP,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBK,QAAA,OAAO,GAAG,eAAe,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nexport const version = \"1.8.3-alpha.0\";\n/**\n * @namespace VTable\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable\n};\n"]}
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -32854,7 +32854,7 @@
|
|
|
32854
32854
|
const range = getUpdateCustomCellRangeInListTable(componentId, table, isHeaderCustomLayout);
|
|
32855
32855
|
for (let col = range.start.col; col <= range.end.col; col++) for (let row = range.start.row; row <= range.end.row; row++) table.scenegraph.updateCellContent(col, row);
|
|
32856
32856
|
}
|
|
32857
|
-
table.scenegraph.renderSceneGraph();
|
|
32857
|
+
"autoWidth" === table.widthMode && table.scenegraph.recalculateColWidths(), "autoHeight" === table.heightMode && table.scenegraph.recalculateRowHeights(), table.scenegraph.renderSceneGraph();
|
|
32858
32858
|
}
|
|
32859
32859
|
getCustomLayoutFunc(col, row) {
|
|
32860
32860
|
var _a;
|
|
@@ -35110,9 +35110,9 @@
|
|
|
35110
35110
|
}
|
|
35111
35111
|
}
|
|
35112
35112
|
function computeCustomRenderHeight(col, row, table) {
|
|
35113
|
-
var _a, _b, _c, _d;
|
|
35114
|
-
const customRender = table.getCustomRender(col, row)
|
|
35115
|
-
|
|
35113
|
+
var _a, _b, _c, _d, _e;
|
|
35114
|
+
const customRender = table.getCustomRender(col, row);
|
|
35115
|
+
let customLayout = table.getCustomLayout(col, row);
|
|
35116
35116
|
if (customRender || customLayout) {
|
|
35117
35117
|
let spanRow = 1,
|
|
35118
35118
|
height = 0,
|
|
@@ -35130,13 +35130,13 @@
|
|
|
35130
35130
|
rect: getCellRect$1(col, row, table),
|
|
35131
35131
|
table: table
|
|
35132
35132
|
};
|
|
35133
|
-
if (isFunction$1(customLayout)) {
|
|
35133
|
+
if ("react-custom-layout" === customLayout && (customLayout = (null === (_b = table.reactCustomLayout) || void 0 === _b ? void 0 : _b.getCustomLayoutFunc(col, row)) || emptyCustomLayout), isFunction$1(customLayout)) {
|
|
35134
35134
|
const customLayoutObj = customLayout(arg);
|
|
35135
|
-
customLayoutObj.rootContainer ? (customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer), dealPercentCalc(customLayoutObj.rootContainer, table.getColWidth(col), 0), customLayoutObj.rootContainer.setStage(table.scenegraph.stage), height = null !== (
|
|
35135
|
+
customLayoutObj.rootContainer ? (customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer), dealPercentCalc(customLayoutObj.rootContainer, table.getColWidth(col), 0), customLayoutObj.rootContainer.setStage(table.scenegraph.stage), height = null !== (_c = customLayoutObj.rootContainer.AABBBounds.height()) && void 0 !== _c ? _c : 0, renderDefault = customLayoutObj.renderDefault, enableCellPadding = customLayoutObj.enableCellPadding) : (height = 0, renderDefault = customLayoutObj.renderDefault, enableCellPadding = customLayoutObj.enableCellPadding);
|
|
35136
35136
|
} else if ("function" == typeof customRender) {
|
|
35137
35137
|
const customRenderObj = customRender(arg);
|
|
35138
|
-
height = null !== (
|
|
35139
|
-
} else height = null !== (
|
|
35138
|
+
height = null !== (_d = null == customRenderObj ? void 0 : customRenderObj.expectedHeight) && void 0 !== _d ? _d : 0, renderDefault = null == customRenderObj ? void 0 : customRenderObj.renderDefault;
|
|
35139
|
+
} else height = null !== (_e = null == customRender ? void 0 : customRender.expectedHeight) && void 0 !== _e ? _e : 0, renderDefault = null == customRender ? void 0 : customRender.renderDefault;
|
|
35140
35140
|
if (enableCellPadding) {
|
|
35141
35141
|
const actStyle = table._getCellStyle(col, row),
|
|
35142
35142
|
padding = getQuadProps(getProp("padding", actStyle, col, row, table));
|
|
@@ -37943,9 +37943,9 @@
|
|
|
37943
37943
|
return maxWidth < colMinWidth ? colMinWidth : maxWidth > colMaxWidth ? colMaxWidth : (maxWidth <= 0 && (maxWidth = table.defaultColWidth), maxWidth);
|
|
37944
37944
|
}
|
|
37945
37945
|
function computeCustomRenderWidth(col, row, table) {
|
|
37946
|
-
var _a, _b, _c, _d;
|
|
37947
|
-
const customRender = table.getCustomRender(col, row)
|
|
37948
|
-
|
|
37946
|
+
var _a, _b, _c, _d, _e;
|
|
37947
|
+
const customRender = table.getCustomRender(col, row);
|
|
37948
|
+
let customLayout = table.getCustomLayout(col, row);
|
|
37949
37949
|
if (customRender || customLayout) {
|
|
37950
37950
|
let spanCol = 1,
|
|
37951
37951
|
width = 0,
|
|
@@ -37963,17 +37963,17 @@
|
|
|
37963
37963
|
rect: getCellRect(col, row, table),
|
|
37964
37964
|
table: table
|
|
37965
37965
|
};
|
|
37966
|
-
if (isFunction$1(customLayout)) {
|
|
37966
|
+
if ("react-custom-layout" === customLayout && (customLayout = (null === (_b = table.reactCustomLayout) || void 0 === _b ? void 0 : _b.getCustomLayoutFunc(col, row)) || emptyCustomLayout), isFunction$1(customLayout)) {
|
|
37967
37967
|
const customLayoutObj = customLayout(arg);
|
|
37968
37968
|
if (customLayoutObj.rootContainer) {
|
|
37969
37969
|
customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer), dealPercentCalc(customLayoutObj.rootContainer, 0, table.getRowHeight(row));
|
|
37970
37970
|
const setedWidth = customLayoutObj.rootContainer.attribute.width;
|
|
37971
|
-
customLayoutObj.rootContainer.setStage(table.scenegraph.stage), width = setedWidth > 0 ? setedWidth : null !== (
|
|
37971
|
+
customLayoutObj.rootContainer.setStage(table.scenegraph.stage), width = setedWidth > 0 ? setedWidth : null !== (_c = customLayoutObj.rootContainer.AABBBounds.width()) && void 0 !== _c ? _c : 0, renderDefault = customLayoutObj.renderDefault, enableCellPadding = customLayoutObj.enableCellPadding;
|
|
37972
37972
|
} else width = 0, renderDefault = customLayoutObj.renderDefault, enableCellPadding = customLayoutObj.enableCellPadding;
|
|
37973
37973
|
} else if ("function" == typeof customRender) {
|
|
37974
37974
|
const customRenderObj = customRender(arg);
|
|
37975
|
-
width = null !== (
|
|
37976
|
-
} else width = null !== (
|
|
37975
|
+
width = null !== (_d = null == customRenderObj ? void 0 : customRenderObj.expectedWidth) && void 0 !== _d ? _d : 0, renderDefault = null == customRenderObj ? void 0 : customRenderObj.renderDefault;
|
|
37976
|
+
} else width = null !== (_e = null == customRender ? void 0 : customRender.expectedWidth) && void 0 !== _e ? _e : 0, renderDefault = null == customRender ? void 0 : customRender.renderDefault;
|
|
37977
37977
|
if (width = Math.ceil(width), enableCellPadding) {
|
|
37978
37978
|
const actStyle = table._getCellStyle(col, row),
|
|
37979
37979
|
padding = getQuadProps(getProp("padding", actStyle, col, row, table));
|
|
@@ -46736,7 +46736,7 @@
|
|
|
46736
46736
|
constructor(container) {
|
|
46737
46737
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46738
46738
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46739
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.8.
|
|
46739
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.8.3-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
46740
46740
|
const {
|
|
46741
46741
|
frozenColCount = 0,
|
|
46742
46742
|
frozenRowCount: frozenRowCount,
|
|
@@ -57055,7 +57055,7 @@
|
|
|
57055
57055
|
themes: themes$1
|
|
57056
57056
|
});
|
|
57057
57057
|
|
|
57058
|
-
const version = "1.8.
|
|
57058
|
+
const version = "1.8.3-alpha.0";
|
|
57059
57059
|
|
|
57060
57060
|
exports.Gantt = Gantt;
|
|
57061
57061
|
exports.TYPES = index$2;
|