@visactor/vtable-gantt 1.22.13-alpha.1 → 1.23.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 +27 -17
- package/dist/vtable-gantt.min.js +2 -2
- 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
|
@@ -6,5 +6,5 @@ import * as tools from './tools';
|
|
|
6
6
|
import * as VRender from './vrender';
|
|
7
7
|
import * as VTable from './vtable';
|
|
8
8
|
import * as plugins from './plugins';
|
|
9
|
-
export declare const version = "1.
|
|
9
|
+
export declare const version = "1.23.0";
|
|
10
10
|
export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable, plugins };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,QAAQ,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';\nimport * as plugins from './plugins';\nexport const version = \"1.23.0\";\n/**\n * @namespace VTableGantt\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 plugins\n};\n"]}
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -24612,7 +24612,7 @@
|
|
|
24612
24612
|
let parsedFromProps = null,
|
|
24613
24613
|
props = params.to,
|
|
24614
24614
|
from = params.from;
|
|
24615
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
24615
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
24616
24616
|
let totalDelay = 0;
|
|
24617
24617
|
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
24618
24618
|
const delayAfterValue = isFunction$3(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
|
|
@@ -24675,7 +24675,7 @@
|
|
|
24675
24675
|
let parsedFromProps = null,
|
|
24676
24676
|
props = effect.to,
|
|
24677
24677
|
from = effect.from;
|
|
24678
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
|
|
24678
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
24679
24679
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
24680
24680
|
customType = effect.custom ? effect.customType : getCustomType(custom);
|
|
24681
24681
|
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
@@ -24694,22 +24694,31 @@
|
|
|
24694
24694
|
animate.play(customAnimate);
|
|
24695
24695
|
}
|
|
24696
24696
|
createPropsFromChannel(channel, graphic) {
|
|
24697
|
+
var _a;
|
|
24697
24698
|
const props = {};
|
|
24698
24699
|
let from = null;
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24703
|
-
}
|
|
24700
|
+
if (!channel) return {
|
|
24701
|
+
from: from,
|
|
24702
|
+
props: props,
|
|
24703
|
+
attrOutChannel: null
|
|
24704
|
+
};
|
|
24705
|
+
const attrOutChannel = {};
|
|
24706
|
+
let hasAttrs = !1;
|
|
24707
|
+
const diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
|
|
24708
|
+
if (Array.isArray(channel) && (channel = channel.reduce((res, key) => (void 0 === diffAttrs[key] || (res[key] = {
|
|
24709
|
+
to: diffAttrs[key]
|
|
24710
|
+
}), res), {})), Object.keys(channel).forEach(key => {
|
|
24704
24711
|
var _a, _b, _c, _d;
|
|
24705
24712
|
const config = channel[key];
|
|
24706
24713
|
void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : from[key] = config.from);
|
|
24707
|
-
}), {
|
|
24708
|
-
|
|
24709
|
-
props
|
|
24710
|
-
}
|
|
24714
|
+
}), diffAttrs) for (const key in diffAttrs) {
|
|
24715
|
+
const value = diffAttrs[key];
|
|
24716
|
+
void 0 !== value && (props.hasOwnProperty(key) || (attrOutChannel[key] = value, hasAttrs = !0));
|
|
24717
|
+
}
|
|
24718
|
+
return {
|
|
24711
24719
|
from: from,
|
|
24712
|
-
props: props
|
|
24720
|
+
props: props,
|
|
24721
|
+
attrOutChannel: hasAttrs ? attrOutChannel : null
|
|
24713
24722
|
};
|
|
24714
24723
|
}
|
|
24715
24724
|
resolveValue(value, graphic, defaultValue) {
|
|
@@ -50144,6 +50153,7 @@
|
|
|
50144
50153
|
}
|
|
50145
50154
|
}
|
|
50146
50155
|
function _parseColumnWidthConfigForPivotTable(table, columnWidthConfig) {
|
|
50156
|
+
var _a, _b;
|
|
50147
50157
|
for (let i = 0; i < (null == columnWidthConfig ? void 0 : columnWidthConfig.length); i++) {
|
|
50148
50158
|
const item = columnWidthConfig[i],
|
|
50149
50159
|
dimensions = item.dimensions,
|
|
@@ -50162,7 +50172,7 @@
|
|
|
50162
50172
|
}
|
|
50163
50173
|
match && !table.internalProps._widthResizedColMap.has(cell.col) && (table._setColWidth(cell.col, width), table.internalProps._widthResizedColMap.add(cell.col));
|
|
50164
50174
|
}
|
|
50165
|
-
} else cell && cell.col < table.rowHeaderLevelCount
|
|
50175
|
+
} else cell && cell.col < table.rowHeaderLevelCount ? table.internalProps._widthResizedColMap.has(cell.col) || (table._setColWidth(cell.col, width), table.internalProps._widthResizedColMap.add(cell.col)) : dimensions && 0 !== dimensions.length || 0 !== (null !== (_b = null === (_a = table.internalProps.layoutMap.columnTree) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0) || table.internalProps._widthResizedColMap.has(table.rowHeaderLevelCount) || (table._setColWidth(table.rowHeaderLevelCount, width), table.internalProps._widthResizedColMap.add(table.rowHeaderLevelCount));
|
|
50166
50176
|
}
|
|
50167
50177
|
}
|
|
50168
50178
|
function _parseColumnWidthConfigForPivotRowHeader(table, columnWidthConfig) {
|
|
@@ -56102,7 +56112,7 @@
|
|
|
56102
56112
|
} = columnDefine;
|
|
56103
56113
|
if (!1 === clickToPreview) return;
|
|
56104
56114
|
const overlay = document.createElement("div");
|
|
56105
|
-
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "
|
|
56115
|
+
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "fixed", overlay.style.top = "0", overlay.style.left = "0", overlay.style.backgroundColor = "rgba(30, 30, 30, 0.4)", overlay.style.display = "flex", overlay.style.justifyContent = "center", overlay.style.alignItems = "center", overlay.style.overflow = "hidden", overlay.style.zIndex = "9999", overlay.addEventListener("click", e => {
|
|
56106
56116
|
e.target === overlay && document.body.removeChild(overlay);
|
|
56107
56117
|
});
|
|
56108
56118
|
const image = new Image();
|
|
@@ -56113,7 +56123,7 @@
|
|
|
56113
56123
|
} = columnDefine;
|
|
56114
56124
|
if (!1 === clickToPreview) return;
|
|
56115
56125
|
const overlay = document.createElement("div");
|
|
56116
|
-
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "
|
|
56126
|
+
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "fixed", overlay.style.top = "0", overlay.style.left = "0", overlay.style.backgroundColor = "rgba(30, 30, 30, 0.4)", overlay.style.display = "flex", overlay.style.justifyContent = "center", overlay.style.alignItems = "center", overlay.style.overflow = "hidden", overlay.style.zIndex = "9999", overlay.addEventListener("click", e => {
|
|
56117
56127
|
e.target === overlay && document.body.removeChild(overlay);
|
|
56118
56128
|
});
|
|
56119
56129
|
const video = document.createElement("video");
|
|
@@ -60214,7 +60224,7 @@
|
|
|
60214
60224
|
}
|
|
60215
60225
|
constructor(container, options = {}) {
|
|
60216
60226
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
60217
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.
|
|
60227
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.23.0", 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");
|
|
60218
60228
|
this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
60219
60229
|
options: options,
|
|
60220
60230
|
container: container
|
|
@@ -76532,7 +76542,7 @@
|
|
|
76532
76542
|
PluginManager: PluginManager
|
|
76533
76543
|
});
|
|
76534
76544
|
|
|
76535
|
-
const version = "1.
|
|
76545
|
+
const version = "1.23.0";
|
|
76536
76546
|
|
|
76537
76547
|
exports.Gantt = Gantt;
|
|
76538
76548
|
exports.TYPES = index$4;
|