@revolist/revogrid 4.10.9 → 4.10.10
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/dist/cjs/revo-grid.cjs.entry.js +7 -6
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/collection/components/revoGrid/revo-grid.js +7 -6
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
- package/dist/esm/revo-grid.entry.js +7 -6
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/types/components/revoGrid/revo-grid.d.ts +1 -1
- package/hydrate/index.js +7 -6
- package/hydrate/index.mjs +7 -6
- package/package.json +1 -1
- package/standalone/revo-grid.js +7 -6
- package/standalone/revo-grid.js.map +1 -1
|
@@ -2041,13 +2041,13 @@ const RevoGridComponent = class {
|
|
|
2041
2041
|
* Clear current grid focus. Grid has no longer focus on it.
|
|
2042
2042
|
*/
|
|
2043
2043
|
async clearFocus() {
|
|
2044
|
-
var _a;
|
|
2044
|
+
var _a, _b;
|
|
2045
2045
|
const focused = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused();
|
|
2046
2046
|
const event = this.beforefocuslost.emit(focused);
|
|
2047
2047
|
if (event.defaultPrevented) {
|
|
2048
2048
|
return;
|
|
2049
2049
|
}
|
|
2050
|
-
this.selectionStoreConnector.clearAll();
|
|
2050
|
+
(_b = this.selectionStoreConnector) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
2051
2051
|
}
|
|
2052
2052
|
/**
|
|
2053
2053
|
* Get all active plugins instances
|
|
@@ -2448,7 +2448,7 @@ const RevoGridComponent = class {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
2450
|
getPluginData() {
|
|
2451
|
-
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider) {
|
|
2451
|
+
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector) {
|
|
2452
2452
|
return;
|
|
2453
2453
|
}
|
|
2454
2454
|
// pass data provider to plugins
|
|
@@ -2533,7 +2533,7 @@ const RevoGridComponent = class {
|
|
|
2533
2533
|
this.aftergridrender.emit();
|
|
2534
2534
|
}
|
|
2535
2535
|
render() {
|
|
2536
|
-
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider) {
|
|
2536
|
+
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector) {
|
|
2537
2537
|
return;
|
|
2538
2538
|
}
|
|
2539
2539
|
const contentHeight = this.dimensionProvider.stores['rgRow'].store.get('realSize');
|
|
@@ -2576,10 +2576,11 @@ const RevoGridComponent = class {
|
|
|
2576
2576
|
// Render viewport data (vertical sections)
|
|
2577
2577
|
view.dataPorts.forEach(data => {
|
|
2578
2578
|
const key = `${data.type}_${view.type}`;
|
|
2579
|
-
const dataView = (index$1.h("revogr-overlay-selection", Object.assign({}, data, { isMobileDevice: isMobile, selectionStore: data.segmentSelectionStore, onSelectall: () => this.selectionStoreConnector.selectAll(), editors: this.editors, readonly: this.readonly, range: this.range, useClipboard: this.useClipboard, applyChangesOnClose: this.applyOnClose, additionalData: this.additionalData, slot: data.slot, onBeforenextvpfocus: (e) => this.selectionStoreConnector.beforeNextFocusCell(e.detail), onCanceledit: () => this.selectionStoreConnector.setEdit(false), onSetedit: ({ detail }) => {
|
|
2579
|
+
const dataView = (index$1.h("revogr-overlay-selection", Object.assign({}, data, { isMobileDevice: isMobile, selectionStore: data.segmentSelectionStore, onSelectall: () => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.selectAll(); }, editors: this.editors, readonly: this.readonly, range: this.range, useClipboard: this.useClipboard, applyChangesOnClose: this.applyOnClose, additionalData: this.additionalData, slot: data.slot, onBeforenextvpfocus: (e) => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.beforeNextFocusCell(e.detail); }, onCanceledit: () => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.setEdit(false); }, onSetedit: ({ detail }) => {
|
|
2580
|
+
var _a;
|
|
2580
2581
|
const event = this.beforeeditstart.emit(detail);
|
|
2581
2582
|
if (!event.defaultPrevented) {
|
|
2582
|
-
this.selectionStoreConnector.setEdit(detail.val);
|
|
2583
|
+
(_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.setEdit(detail.val);
|
|
2583
2584
|
}
|
|
2584
2585
|
} }), index$1.h("revogr-data", Object.assign({}, data, { colType: view.type, key: key, readonly: this.readonly, range: this.range, rowClass: this.rowClass, rowSelectionStore: data.rowSelectionStore, additionalData: this.additionalData, jobsBeforeRender: this.jobsBeforeRender, slot: viewport_helpers.DATA_SLOT }), index$1.h("slot", { name: `data-${view.type}-${data.type}` })), index$1.h("revogr-temp-range", { selectionStore: data.segmentSelectionStore, dimensionRow: data.dimensionRow, dimensionCol: data.dimensionCol }), index$1.h("revogr-focus", { colData: data.colData, dataStore: data.dataStore, focusTemplate: this.focusTemplate, rowType: data.type, colType: view.type, selectionStore: data.segmentSelectionStore, dimensionRow: data.dimensionRow, dimensionCol: data.dimensionCol }, index$1.h("slot", { name: `focus-${view.type}-${data.type}` }))));
|
|
2585
2586
|
dataViews.push(dataView);
|