@visactor/vtable-sheet 1.22.8-alpha.13 → 1.22.8-alpha.2
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-sheet.js +7 -3
- package/dist/vtable-sheet.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
|
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
|
|
|
2
2
|
import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
|
|
3
3
|
import * as TYPES from './ts-types';
|
|
4
4
|
import * as VTable from './vtable';
|
|
5
|
-
export declare const version = "1.22.8-alpha.
|
|
5
|
+
export declare const version = "1.22.8-alpha.2";
|
|
6
6
|
export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.8-alpha.2\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/dist/vtable-sheet.js
CHANGED
|
@@ -59993,7 +59993,7 @@
|
|
|
59993
59993
|
}
|
|
59994
59994
|
constructor(container, options = {}) {
|
|
59995
59995
|
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;
|
|
59996
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.8-alpha.
|
|
59996
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.8-alpha.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
|
|
59997
59997
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
59998
59998
|
options: options,
|
|
59999
59999
|
container: container
|
|
@@ -73715,6 +73715,8 @@
|
|
|
73715
73715
|
applyStyles(this.filterMenu, Object.assign(Object.assign({}, styles.filterMenu), {
|
|
73716
73716
|
display: realDisplay
|
|
73717
73717
|
})), applyStyles(this.filterTabsContainer, styles.tabsContainer), applyStyles(this.filterTabByValue, styles.tabStyle(!0)), applyStyles(this.footerContainer, styles.footerContainer), applyStyles(this.clearFilterOptionLink, styles.clearLink), applyStyles(this.cancelFilterButton, styles.footerButton(!1)), applyStyles(this.applyFilterButton, styles.footerButton(!0)), this.valueFilter.updateStyles(styles), this.conditionFilter.updateStyles(styles);
|
|
73718
|
+
const currentFilter = this.filterStateManager.getFilterState(this.selectedField);
|
|
73719
|
+
currentFilter && "byCondition" === currentFilter.type ? this.onTabSwitch("byCondition") : this.onTabSwitch("byValue");
|
|
73718
73720
|
}
|
|
73719
73721
|
attachEventListeners() {
|
|
73720
73722
|
this.filterTabByValue.addEventListener("click", () => {
|
|
@@ -83274,7 +83276,9 @@
|
|
|
83274
83276
|
} else (runtime === TABLE_EVENT_TYPE.UPDATE_RECORD || runtime === TABLE_EVENT_TYPE.ADD_RECORD || runtime === TABLE_EVENT_TYPE.DELETE_RECORD) && this.syncFilterWithTableData();
|
|
83275
83277
|
}
|
|
83276
83278
|
updatePluginOptions(pluginOptions) {
|
|
83277
|
-
this.pluginOptions = lodashExports.merge(this.pluginOptions, pluginOptions), this.filterToolbar.updateStyles(this.pluginOptions.styles)
|
|
83279
|
+
this.pluginOptions = lodashExports.merge(this.pluginOptions, pluginOptions), this.filterToolbar.updateStyles(this.pluginOptions.styles), this.table.updateColumns(this.columns, {
|
|
83280
|
+
clearRowHeightCache: !1
|
|
83281
|
+
});
|
|
83278
83282
|
}
|
|
83279
83283
|
update() {
|
|
83280
83284
|
this.filterStateManager && this.reapplyActiveFilters();
|
|
@@ -92543,7 +92547,7 @@
|
|
|
92543
92547
|
importStyle();
|
|
92544
92548
|
}
|
|
92545
92549
|
|
|
92546
|
-
const version = "1.22.8-alpha.
|
|
92550
|
+
const version = "1.22.8-alpha.2";
|
|
92547
92551
|
importStyles();
|
|
92548
92552
|
|
|
92549
92553
|
exports.TYPES = index;
|