@visactor/vtable-gantt 1.18.2-alpha.2 → 1.18.2-alpha.3
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 +18 -18
- 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.18.2-alpha.
|
|
8
|
+
export declare const version = "1.18.2-alpha.3";
|
|
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,gBAAgB,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.18.2-alpha.
|
|
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,gBAAgB,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.18.2-alpha.3\";\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
|
@@ -50267,7 +50267,7 @@
|
|
|
50267
50267
|
if (eventManager.cellIsHeaderCheck(eventArgsSet)) return;
|
|
50268
50268
|
if ("touch" === e.pointerType) {
|
|
50269
50269
|
if (eventManager.touchEnd = !1, eventManager.touchSetTimeout = setTimeout(() => {
|
|
50270
|
-
eventManager.isTouchdown = !1, eventManager.
|
|
50270
|
+
eventManager.isTouchdown = !1, eventManager.isLongTouch = !0, (eventManager.touchEnd || !eventManager.checkColumnResize(eventArgsSet, !0) && !eventManager.checkRowResize(eventArgsSet, !0)) && (eventManager.touchEnd || !eventManager.checkColumnMover(eventArgsSet)) ? eventManager.dealTableSelect(eventArgsSet) && !eventManager.touchEnd && stateManager.updateInteractionState(InteractionState.grabing) : stateManager.updateInteractionState(InteractionState.grabing);
|
|
50271
50271
|
}, 500), table.hasListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL)) {
|
|
50272
50272
|
const cellGoup = e.path.find(node => "cell" === node.role);
|
|
50273
50273
|
"cell" !== (null == cellGoup ? void 0 : cellGoup.role) || !isValid$3(cellGoup.col) || !isValid$3(cellGoup.row) || cellGoup.col === table.stateManager.hover.cellPos.col && cellGoup.row === table.stateManager.hover.cellPos.row || cellGoup.col === (null === (_e = table.stateManager.hover.cellPosContainHeader) || void 0 === _e ? void 0 : _e.col) && cellGoup.row === (null === (_f = table.stateManager.hover.cellPosContainHeader) || void 0 === _f ? void 0 : _f.row) || table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
|
|
@@ -50371,7 +50371,7 @@
|
|
|
50371
50371
|
var _a, _b, _c, _d, _e;
|
|
50372
50372
|
if (table.stateManager.columnResize.resizing) return;
|
|
50373
50373
|
const eventArgsSet = getCellEventArgsSet(e);
|
|
50374
|
-
if (!eventManager.
|
|
50374
|
+
if (!eventManager.isTouchMove && 0 === e.button && eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.CLICK_CELL)) {
|
|
50375
50375
|
const {
|
|
50376
50376
|
col: col,
|
|
50377
50377
|
row: row
|
|
@@ -51063,21 +51063,21 @@
|
|
|
51063
51063
|
stateManager = table.stateManager,
|
|
51064
51064
|
scenegraph = table.scenegraph;
|
|
51065
51065
|
eventManager.touchMovePoints = [], table.scenegraph.tableGroup.addEventListener("touchstart", e => {
|
|
51066
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
51066
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
51067
51067
|
if (e.target.isChildOf(scenegraph.component.vScrollBar) || e.target.isChildOf(scenegraph.component.vScrollBar)) return;
|
|
51068
51068
|
eventManager.isTouchdown = !0;
|
|
51069
51069
|
const touchEvent = e.nativeEvent;
|
|
51070
51070
|
eventManager.touchMovePoints.push({
|
|
51071
|
-
x:
|
|
51072
|
-
y:
|
|
51071
|
+
x: table.rotateDegree ? null !== (_c = null === (_b = null === (_a = touchEvent.changedTouches) || void 0 === _a ? void 0 : _a[0]) || void 0 === _b ? void 0 : _b._canvasX) && void 0 !== _c ? _c : null === (_d = e.canvas) || void 0 === _d ? void 0 : _d.x : e.page.x,
|
|
51072
|
+
y: table.rotateDegree ? null !== (_g = null === (_f = null === (_e = touchEvent.changedTouches) || void 0 === _e ? void 0 : _e[0]) || void 0 === _f ? void 0 : _f._canvasY) && void 0 !== _g ? _g : null === (_h = e.canvas) || void 0 === _h ? void 0 : _h.y : e.page.y,
|
|
51073
51073
|
timestamp: Date.now()
|
|
51074
51074
|
});
|
|
51075
51075
|
});
|
|
51076
51076
|
const globalTouchMoveCallback = e => {
|
|
51077
|
-
var _a, _b
|
|
51078
|
-
if (eventManager.
|
|
51079
|
-
x:
|
|
51080
|
-
y:
|
|
51077
|
+
var _a, _b;
|
|
51078
|
+
if (eventManager.isLongTouch && e.preventDefault(), eventManager.isTouchdown && isTouchEvent$1(e)) if (eventManager.isTouchMove = !0, (null === (_b = null === (_a = eventManager.downIcon) || void 0 === _a ? void 0 : _a.attribute) || void 0 === _b ? void 0 : _b.funcType) === IconFuncTypeEnum.dragReorder) e.preventDefault();else if (eventManager.touchMovePoints.length > 4 && eventManager.touchMovePoints.shift(), eventManager.touchMovePoints.push({
|
|
51079
|
+
x: table.rotateDegree ? e.changedTouches[0]._canvasX : e.changedTouches[0].pageX,
|
|
51080
|
+
y: table.rotateDegree ? e.changedTouches[0]._canvasY : e.changedTouches[0].pageY,
|
|
51081
51081
|
timestamp: Date.now()
|
|
51082
51082
|
}), eventManager._enableTableScroll) {
|
|
51083
51083
|
const deltaX = -eventManager.touchMovePoints[eventManager.touchMovePoints.length - 1].x + eventManager.touchMovePoints[eventManager.touchMovePoints.length - 2].x,
|
|
@@ -51096,15 +51096,15 @@
|
|
|
51096
51096
|
callback: globalTouchMoveCallback
|
|
51097
51097
|
});
|
|
51098
51098
|
const globalTouchEndCallback = e => {
|
|
51099
|
-
var _a, _b, _c, _d
|
|
51100
|
-
if (eventManager.touchEnd = !0, eventManager.
|
|
51099
|
+
var _a, _b, _c, _d;
|
|
51100
|
+
if (eventManager.touchEnd = !0, eventManager.isLongTouch = !1, eventManager.isTouchdown && isTouchEvent$1(e)) {
|
|
51101
51101
|
if ((null === (_b = null === (_a = eventManager.downIcon) || void 0 === _a ? void 0 : _a.attribute) || void 0 === _b ? void 0 : _b.funcType) === IconFuncTypeEnum.dragReorder) e.preventDefault();else if ((null === (_c = eventManager.touchMovePoints) || void 0 === _c ? void 0 : _c.length) && (eventManager.touchMovePoints.length > 4 && eventManager.touchMovePoints.shift(), eventManager.touchMovePoints.push({
|
|
51102
|
-
x:
|
|
51103
|
-
y:
|
|
51102
|
+
x: table.rotateDegree ? e.changedTouches[0]._canvasX : e.changedTouches[0].pageX,
|
|
51103
|
+
y: table.rotateDegree ? e.changedTouches[0]._canvasY : e.changedTouches[0].pageY,
|
|
51104
51104
|
timestamp: Date.now()
|
|
51105
51105
|
}), eventManager._enableTableScroll)) {
|
|
51106
51106
|
const firstPoint = eventManager.touchMovePoints[0],
|
|
51107
|
-
lastPoint = eventManager.touchMovePoints[(null === (
|
|
51107
|
+
lastPoint = eventManager.touchMovePoints[(null === (_d = eventManager.touchMovePoints) || void 0 === _d ? void 0 : _d.length) - 1],
|
|
51108
51108
|
vX = (lastPoint.x - firstPoint.x) / (lastPoint.timestamp - firstPoint.timestamp),
|
|
51109
51109
|
vY = (lastPoint.y - firstPoint.y) / (lastPoint.timestamp - firstPoint.timestamp);
|
|
51110
51110
|
eventManager.inertiaScroll.startInertia(vX, vY, .95), table.eventManager.inertiaScroll.setScrollHandle((dx, dy) => {
|
|
@@ -51114,7 +51114,7 @@
|
|
|
51114
51114
|
}, table.stateManager);
|
|
51115
51115
|
});
|
|
51116
51116
|
}
|
|
51117
|
-
eventManager.isTouchdown = !1, eventManager.touchMovePoints = [];
|
|
51117
|
+
eventManager.isTouchdown = !1, eventManager.isTouchMove = !1, eventManager.touchMovePoints = [];
|
|
51118
51118
|
}
|
|
51119
51119
|
};
|
|
51120
51120
|
vglobal.addEventListener("touchend", globalTouchEndCallback), eventManager.globalEventListeners.push({
|
|
@@ -51123,7 +51123,7 @@
|
|
|
51123
51123
|
callback: globalTouchEndCallback
|
|
51124
51124
|
});
|
|
51125
51125
|
const globalTouchCancelCallback = e => {
|
|
51126
|
-
eventManager.touchEnd = !0, eventManager.
|
|
51126
|
+
eventManager.touchEnd = !0, eventManager.isLongTouch = !1, eventManager.isTouchdown && (eventManager.isTouchdown = !1, eventManager.isTouchMove = !1, eventManager.touchMovePoints = []);
|
|
51127
51127
|
};
|
|
51128
51128
|
vglobal.addEventListener("touchcancel", globalTouchCancelCallback), eventManager.globalEventListeners.push({
|
|
51129
51129
|
name: "touchcancel",
|
|
@@ -54253,7 +54253,7 @@
|
|
|
54253
54253
|
constructor(container) {
|
|
54254
54254
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
54255
54255
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
54256
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.18.2-alpha.
|
|
54256
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.18.2-alpha.3", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
54257
54257
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
54258
54258
|
options: options,
|
|
54259
54259
|
container: container
|
|
@@ -67411,7 +67411,7 @@
|
|
|
67411
67411
|
themes: themes$1
|
|
67412
67412
|
});
|
|
67413
67413
|
|
|
67414
|
-
const version = "1.18.2-alpha.
|
|
67414
|
+
const version = "1.18.2-alpha.3";
|
|
67415
67415
|
|
|
67416
67416
|
exports.Gantt = Gantt;
|
|
67417
67417
|
exports.TYPES = index$3;
|