@visactor/vtable-gantt 1.12.0 → 1.12.1-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 +13 -3
- 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.12.0";
|
|
8
|
+
export declare const version = "1.12.1-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,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.12.1-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
|
@@ -45547,7 +45547,7 @@
|
|
|
45547
45547
|
globalPointerdownCallback = e => {
|
|
45548
45548
|
var _a;
|
|
45549
45549
|
const target = e.target;
|
|
45550
|
-
if (!table.getElement().contains(target)) {
|
|
45550
|
+
if (!table.getElement().contains(target) && !table.internalProps.menuHandler.containElement(target)) {
|
|
45551
45551
|
const isCompleteEdit = null === (_a = table.editorManager) || void 0 === _a ? void 0 : _a.completeEdit(e);
|
|
45552
45552
|
getPromiseValue(isCompleteEdit, isCompleteEdit => {
|
|
45553
45553
|
var _a, _b;
|
|
@@ -49095,7 +49095,7 @@
|
|
|
49095
49095
|
constructor(container) {
|
|
49096
49096
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
49097
49097
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
49098
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.12.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");
|
|
49098
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.12.1-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");
|
|
49099
49099
|
const {
|
|
49100
49100
|
frozenColCount = 0,
|
|
49101
49101
|
frozenRowCount: frozenRowCount,
|
|
@@ -54588,6 +54588,9 @@
|
|
|
54588
54588
|
pointInMenuElement(x, y) {
|
|
54589
54589
|
return this._getMenuElement().pointInMenuElement(x, y);
|
|
54590
54590
|
}
|
|
54591
|
+
getRootElement() {
|
|
54592
|
+
return this._getMenuElement().rootElement;
|
|
54593
|
+
}
|
|
54591
54594
|
}
|
|
54592
54595
|
|
|
54593
54596
|
const CLASSNAME = "vtable__menu-element",
|
|
@@ -54876,6 +54879,13 @@
|
|
|
54876
54879
|
info: info
|
|
54877
54880
|
};
|
|
54878
54881
|
}
|
|
54882
|
+
containElement(el) {
|
|
54883
|
+
var _a;
|
|
54884
|
+
for (const k in this._menuInstances) {
|
|
54885
|
+
if (null === (_a = this._menuInstances[k].getRootElement()) || void 0 === _a ? void 0 : _a.contains(el)) return !0;
|
|
54886
|
+
}
|
|
54887
|
+
return !1;
|
|
54888
|
+
}
|
|
54879
54889
|
}
|
|
54880
54890
|
|
|
54881
54891
|
class Title {
|
|
@@ -59298,7 +59308,7 @@
|
|
|
59298
59308
|
themes: themes$1
|
|
59299
59309
|
});
|
|
59300
59310
|
|
|
59301
|
-
const version = "1.12.0";
|
|
59311
|
+
const version = "1.12.1-alpha.0";
|
|
59302
59312
|
|
|
59303
59313
|
exports.Gantt = Gantt;
|
|
59304
59314
|
exports.TYPES = index$2;
|