@revolist/revogrid 3.7.6 → 3.7.7
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/custom-element/revogr-overlay-selection2.js +7 -1
- package/dist/cjs/revo-grid_11.cjs.entry.js +7 -1
- package/dist/collection/components/overlay/revogr-overlay-selection.js +21 -1
- package/dist/esm/revo-grid_11.entry.js +7 -1
- package/dist/esm-es5/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +1 -1
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +9 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
|
@@ -474,6 +474,7 @@ const OverlaySelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
474
474
|
this.focusCell = createEvent(this, "focusCell", 3);
|
|
475
475
|
this.internalSelectionChanged = createEvent(this, "internalSelectionChanged", 7);
|
|
476
476
|
this.internalRangeDataApply = createEvent(this, "internalRangeDataApply", 7);
|
|
477
|
+
this.beforeKeyDown = createEvent(this, "beforekeydown", 7);
|
|
477
478
|
this.keyboardService = null;
|
|
478
479
|
this.autoFillService = null;
|
|
479
480
|
this.clipboardService = null;
|
|
@@ -511,7 +512,9 @@ const OverlaySelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
511
512
|
/** Recived keyboard down from element */
|
|
512
513
|
onKeyDown(e) {
|
|
513
514
|
var _a;
|
|
514
|
-
if
|
|
515
|
+
// Emit before key down event and check if default prevention is set.
|
|
516
|
+
const proxy = this.beforeKeyDown.emit(Object.assign(Object.assign({}, e), this.getData()));
|
|
517
|
+
if (e.defaultPrevented || proxy.defaultPrevented) {
|
|
515
518
|
return;
|
|
516
519
|
}
|
|
517
520
|
(_a = this.keyboardService) === null || _a === void 0 ? void 0 : _a.keyDown(e, this.range);
|
|
@@ -713,6 +716,9 @@ const OverlaySelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
713
716
|
rows: this.dimensionRow.state,
|
|
714
717
|
cols: this.dimensionCol.state,
|
|
715
718
|
lastCell: this.lastCell,
|
|
719
|
+
focus: this.selectionStore.get('focus'),
|
|
720
|
+
range: this.selectionStore.get('range'),
|
|
721
|
+
edit: this.selectionStore.get('edit'),
|
|
716
722
|
};
|
|
717
723
|
}
|
|
718
724
|
get element() { return this; }
|
|
@@ -27566,6 +27566,7 @@ const OverlaySelection = class {
|
|
|
27566
27566
|
this.focusCell = index.createEvent(this, "focusCell", 3);
|
|
27567
27567
|
this.internalSelectionChanged = index.createEvent(this, "internalSelectionChanged", 7);
|
|
27568
27568
|
this.internalRangeDataApply = index.createEvent(this, "internalRangeDataApply", 7);
|
|
27569
|
+
this.beforeKeyDown = index.createEvent(this, "beforekeydown", 7);
|
|
27569
27570
|
this.keyboardService = null;
|
|
27570
27571
|
this.autoFillService = null;
|
|
27571
27572
|
this.clipboardService = null;
|
|
@@ -27603,7 +27604,9 @@ const OverlaySelection = class {
|
|
|
27603
27604
|
/** Recived keyboard down from element */
|
|
27604
27605
|
onKeyDown(e) {
|
|
27605
27606
|
var _a;
|
|
27606
|
-
if
|
|
27607
|
+
// Emit before key down event and check if default prevention is set.
|
|
27608
|
+
const proxy = this.beforeKeyDown.emit(Object.assign(Object.assign({}, e), this.getData()));
|
|
27609
|
+
if (e.defaultPrevented || proxy.defaultPrevented) {
|
|
27607
27610
|
return;
|
|
27608
27611
|
}
|
|
27609
27612
|
(_a = this.keyboardService) === null || _a === void 0 ? void 0 : _a.keyDown(e, this.range);
|
|
@@ -27805,6 +27808,9 @@ const OverlaySelection = class {
|
|
|
27805
27808
|
rows: this.dimensionRow.state,
|
|
27806
27809
|
cols: this.dimensionCol.state,
|
|
27807
27810
|
lastCell: this.lastCell,
|
|
27811
|
+
focus: this.selectionStore.get('focus'),
|
|
27812
|
+
range: this.selectionStore.get('range'),
|
|
27813
|
+
edit: this.selectionStore.get('edit'),
|
|
27808
27814
|
};
|
|
27809
27815
|
}
|
|
27810
27816
|
get element() { return index.getElement(this); }
|
|
@@ -51,7 +51,9 @@ export class OverlaySelection {
|
|
|
51
51
|
/** Recived keyboard down from element */
|
|
52
52
|
onKeyDown(e) {
|
|
53
53
|
var _a;
|
|
54
|
-
if
|
|
54
|
+
// Emit before key down event and check if default prevention is set.
|
|
55
|
+
const proxy = this.beforeKeyDown.emit(Object.assign(Object.assign({}, e), this.getData()));
|
|
56
|
+
if (e.defaultPrevented || proxy.defaultPrevented) {
|
|
55
57
|
return;
|
|
56
58
|
}
|
|
57
59
|
(_a = this.keyboardService) === null || _a === void 0 ? void 0 : _a.keyDown(e, this.range);
|
|
@@ -255,6 +257,9 @@ export class OverlaySelection {
|
|
|
255
257
|
rows: this.dimensionRow.state,
|
|
256
258
|
cols: this.dimensionCol.state,
|
|
257
259
|
lastCell: this.lastCell,
|
|
260
|
+
focus: this.selectionStore.get('focus'),
|
|
261
|
+
range: this.selectionStore.get('range'),
|
|
262
|
+
edit: this.selectionStore.get('edit'),
|
|
258
263
|
};
|
|
259
264
|
}
|
|
260
265
|
static get is() { return "revogr-overlay-selection"; }
|
|
@@ -727,6 +732,21 @@ export class OverlaySelection {
|
|
|
727
732
|
}
|
|
728
733
|
}
|
|
729
734
|
}
|
|
735
|
+
}, {
|
|
736
|
+
"method": "beforeKeyDown",
|
|
737
|
+
"name": "beforekeydown",
|
|
738
|
+
"bubbles": true,
|
|
739
|
+
"cancelable": true,
|
|
740
|
+
"composed": true,
|
|
741
|
+
"docs": {
|
|
742
|
+
"tags": [],
|
|
743
|
+
"text": "Before key up event proxy, used to prevent key up trigger.\nIf you have some custom behaviour event, use this event to check if it wasn't processed by internal logic.\nCall preventDefault()."
|
|
744
|
+
},
|
|
745
|
+
"complexType": {
|
|
746
|
+
"original": "any",
|
|
747
|
+
"resolved": "any",
|
|
748
|
+
"references": {}
|
|
749
|
+
}
|
|
730
750
|
}]; }
|
|
731
751
|
static get elementRef() { return "element"; }
|
|
732
752
|
static get watchers() { return [{
|
|
@@ -27562,6 +27562,7 @@ const OverlaySelection = class {
|
|
|
27562
27562
|
this.focusCell = createEvent(this, "focusCell", 3);
|
|
27563
27563
|
this.internalSelectionChanged = createEvent(this, "internalSelectionChanged", 7);
|
|
27564
27564
|
this.internalRangeDataApply = createEvent(this, "internalRangeDataApply", 7);
|
|
27565
|
+
this.beforeKeyDown = createEvent(this, "beforekeydown", 7);
|
|
27565
27566
|
this.keyboardService = null;
|
|
27566
27567
|
this.autoFillService = null;
|
|
27567
27568
|
this.clipboardService = null;
|
|
@@ -27599,7 +27600,9 @@ const OverlaySelection = class {
|
|
|
27599
27600
|
/** Recived keyboard down from element */
|
|
27600
27601
|
onKeyDown(e) {
|
|
27601
27602
|
var _a;
|
|
27602
|
-
if
|
|
27603
|
+
// Emit before key down event and check if default prevention is set.
|
|
27604
|
+
const proxy = this.beforeKeyDown.emit(Object.assign(Object.assign({}, e), this.getData()));
|
|
27605
|
+
if (e.defaultPrevented || proxy.defaultPrevented) {
|
|
27603
27606
|
return;
|
|
27604
27607
|
}
|
|
27605
27608
|
(_a = this.keyboardService) === null || _a === void 0 ? void 0 : _a.keyDown(e, this.range);
|
|
@@ -27801,6 +27804,9 @@ const OverlaySelection = class {
|
|
|
27801
27804
|
rows: this.dimensionRow.state,
|
|
27802
27805
|
cols: this.dimensionCol.state,
|
|
27803
27806
|
lastCell: this.lastCell,
|
|
27807
|
+
focus: this.selectionStore.get('focus'),
|
|
27808
|
+
range: this.selectionStore.get('range'),
|
|
27809
|
+
edit: this.selectionStore.get('edit'),
|
|
27804
27810
|
};
|
|
27805
27811
|
}
|
|
27806
27812
|
get element() { return getElement(this); }
|