@progress/kendo-spreadsheet-common 1.2.4 → 1.2.5-develop.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/dist/index-esm.js +17 -17
- package/dist/index.js +17 -17
- package/package.json +1 -1
- package/src/index.d.ts +8 -0
package/dist/index-esm.js
CHANGED
|
@@ -6309,7 +6309,7 @@ class Controller {
|
|
|
6309
6309
|
|
|
6310
6310
|
this._workbook.renameSheet(sheet, e.name);
|
|
6311
6311
|
|
|
6312
|
-
this.clipboardElement.focus();
|
|
6312
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
6313
6313
|
}
|
|
6314
6314
|
|
|
6315
6315
|
sheet(sheet) {
|
|
@@ -7082,7 +7082,7 @@ class Controller {
|
|
|
7082
7082
|
this.resetEditorValue();
|
|
7083
7083
|
this.editor.deactivate();
|
|
7084
7084
|
|
|
7085
|
-
this.clipboardElement.focus();
|
|
7085
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7086
7086
|
}
|
|
7087
7087
|
|
|
7088
7088
|
insertNewline(e) {
|
|
@@ -7094,12 +7094,12 @@ class Controller {
|
|
|
7094
7094
|
if (e.defaultPrevented || this.editor.isFiltered()) {
|
|
7095
7095
|
return;
|
|
7096
7096
|
}
|
|
7097
|
-
|
|
7097
|
+
e.preventDefault();
|
|
7098
7098
|
this._preventNavigation = false;
|
|
7099
7099
|
this.editor.deactivate();
|
|
7100
7100
|
|
|
7101
7101
|
if (!this._preventNavigation) {
|
|
7102
|
-
this.clipboardElement.focus();
|
|
7102
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7103
7103
|
this.navigator.navigateInSelection(ENTRY_ACTIONS[action]);
|
|
7104
7104
|
}
|
|
7105
7105
|
|
|
@@ -7231,10 +7231,10 @@ class Controller {
|
|
|
7231
7231
|
options: { name: name, value: ref }
|
|
7232
7232
|
});
|
|
7233
7233
|
|
|
7234
|
-
this.clipboardElement.focus();
|
|
7234
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7235
7235
|
}
|
|
7236
7236
|
onNameEditorCancel() {
|
|
7237
|
-
this.clipboardElement.focus();
|
|
7237
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7238
7238
|
}
|
|
7239
7239
|
onNameEditorSelect(ev) {
|
|
7240
7240
|
let name = ev.name;
|
|
@@ -7253,14 +7253,14 @@ class Controller {
|
|
|
7253
7253
|
sheet.range(ref).select();
|
|
7254
7254
|
return;
|
|
7255
7255
|
}
|
|
7256
|
-
this.clipboardElement.focus();
|
|
7256
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7257
7257
|
}
|
|
7258
7258
|
onNameEditorDelete(ev) {
|
|
7259
7259
|
this._execute({
|
|
7260
7260
|
command: "DeleteNameCommand",
|
|
7261
7261
|
options: { name: ev.name }
|
|
7262
7262
|
});
|
|
7263
|
-
this.clipboardElement.focus();
|
|
7263
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7264
7264
|
}
|
|
7265
7265
|
}
|
|
7266
7266
|
|
|
@@ -18694,8 +18694,8 @@ class View extends Observable {
|
|
|
18694
18694
|
|
|
18695
18695
|
let resizeDirection =
|
|
18696
18696
|
!sheet.resizingInProgress() ? "none" :
|
|
18697
|
-
|
|
18698
|
-
|
|
18697
|
+
sheet.resizeHandlePosition().col === -Infinity ? "column" :
|
|
18698
|
+
"row";
|
|
18699
18699
|
|
|
18700
18700
|
this.wrapper.classList.toggle(viewClassNames.editContainer, this.editor.isActive());
|
|
18701
18701
|
this.wrapper.classList.toggle(viewClassNames.horizontalResize, resizeDirection === "row");
|
|
@@ -18736,11 +18736,11 @@ class View extends Observable {
|
|
|
18736
18736
|
if (this.editor.isActive()) {
|
|
18737
18737
|
this.editor.toggleTooltip(this.activeCellRectangle());
|
|
18738
18738
|
} else if (!(reason.resize ||
|
|
18739
|
-
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18739
|
+
reason.comment ||
|
|
18740
|
+
sheet.selectionInProgress() ||
|
|
18741
|
+
sheet.resizingInProgress() ||
|
|
18742
|
+
sheet.draggingInProgress() ||
|
|
18743
|
+
sheet.isInEditMode())) {
|
|
18744
18744
|
this.renderClipboardContents();
|
|
18745
18745
|
}
|
|
18746
18746
|
}
|
|
@@ -19752,7 +19752,7 @@ class BorderChangeCommand extends Command {
|
|
|
19752
19752
|
if (!self._type) {
|
|
19753
19753
|
return;
|
|
19754
19754
|
}
|
|
19755
|
-
|
|
19755
|
+
|
|
19756
19756
|
self.getState();
|
|
19757
19757
|
self._batch(function(){
|
|
19758
19758
|
self[self._type](self._style);
|
|
@@ -20086,7 +20086,7 @@ class AdjustRowHeightCommand extends Command {
|
|
|
20086
20086
|
class ToolbarPasteCommand extends Command {
|
|
20087
20087
|
exec() {
|
|
20088
20088
|
if (detectClipboardAccess().paste) {
|
|
20089
|
-
this._workbook._view.clipboard.focus();
|
|
20089
|
+
this._workbook._view.clipboard.focus({ preventScroll: true });
|
|
20090
20090
|
// explore programmatic pasting further
|
|
20091
20091
|
document.execCommand('paste');
|
|
20092
20092
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -6310,7 +6310,7 @@
|
|
|
6310
6310
|
|
|
6311
6311
|
this._workbook.renameSheet(sheet, e.name);
|
|
6312
6312
|
|
|
6313
|
-
this.clipboardElement.focus();
|
|
6313
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
6314
6314
|
}
|
|
6315
6315
|
|
|
6316
6316
|
sheet(sheet) {
|
|
@@ -7083,7 +7083,7 @@
|
|
|
7083
7083
|
this.resetEditorValue();
|
|
7084
7084
|
this.editor.deactivate();
|
|
7085
7085
|
|
|
7086
|
-
this.clipboardElement.focus();
|
|
7086
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7087
7087
|
}
|
|
7088
7088
|
|
|
7089
7089
|
insertNewline(e) {
|
|
@@ -7095,12 +7095,12 @@
|
|
|
7095
7095
|
if (e.defaultPrevented || this.editor.isFiltered()) {
|
|
7096
7096
|
return;
|
|
7097
7097
|
}
|
|
7098
|
-
|
|
7098
|
+
e.preventDefault();
|
|
7099
7099
|
this._preventNavigation = false;
|
|
7100
7100
|
this.editor.deactivate();
|
|
7101
7101
|
|
|
7102
7102
|
if (!this._preventNavigation) {
|
|
7103
|
-
this.clipboardElement.focus();
|
|
7103
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7104
7104
|
this.navigator.navigateInSelection(ENTRY_ACTIONS[action]);
|
|
7105
7105
|
}
|
|
7106
7106
|
|
|
@@ -7232,10 +7232,10 @@
|
|
|
7232
7232
|
options: { name: name, value: ref }
|
|
7233
7233
|
});
|
|
7234
7234
|
|
|
7235
|
-
this.clipboardElement.focus();
|
|
7235
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7236
7236
|
}
|
|
7237
7237
|
onNameEditorCancel() {
|
|
7238
|
-
this.clipboardElement.focus();
|
|
7238
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7239
7239
|
}
|
|
7240
7240
|
onNameEditorSelect(ev) {
|
|
7241
7241
|
let name = ev.name;
|
|
@@ -7254,14 +7254,14 @@
|
|
|
7254
7254
|
sheet.range(ref).select();
|
|
7255
7255
|
return;
|
|
7256
7256
|
}
|
|
7257
|
-
this.clipboardElement.focus();
|
|
7257
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7258
7258
|
}
|
|
7259
7259
|
onNameEditorDelete(ev) {
|
|
7260
7260
|
this._execute({
|
|
7261
7261
|
command: "DeleteNameCommand",
|
|
7262
7262
|
options: { name: ev.name }
|
|
7263
7263
|
});
|
|
7264
|
-
this.clipboardElement.focus();
|
|
7264
|
+
this.clipboardElement.focus({ preventScroll: true });
|
|
7265
7265
|
}
|
|
7266
7266
|
}
|
|
7267
7267
|
|
|
@@ -18695,8 +18695,8 @@
|
|
|
18695
18695
|
|
|
18696
18696
|
let resizeDirection =
|
|
18697
18697
|
!sheet.resizingInProgress() ? "none" :
|
|
18698
|
-
|
|
18699
|
-
|
|
18698
|
+
sheet.resizeHandlePosition().col === -Infinity ? "column" :
|
|
18699
|
+
"row";
|
|
18700
18700
|
|
|
18701
18701
|
this.wrapper.classList.toggle(viewClassNames.editContainer, this.editor.isActive());
|
|
18702
18702
|
this.wrapper.classList.toggle(viewClassNames.horizontalResize, resizeDirection === "row");
|
|
@@ -18737,11 +18737,11 @@
|
|
|
18737
18737
|
if (this.editor.isActive()) {
|
|
18738
18738
|
this.editor.toggleTooltip(this.activeCellRectangle());
|
|
18739
18739
|
} else if (!(reason.resize ||
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18740
|
+
reason.comment ||
|
|
18741
|
+
sheet.selectionInProgress() ||
|
|
18742
|
+
sheet.resizingInProgress() ||
|
|
18743
|
+
sheet.draggingInProgress() ||
|
|
18744
|
+
sheet.isInEditMode())) {
|
|
18745
18745
|
this.renderClipboardContents();
|
|
18746
18746
|
}
|
|
18747
18747
|
}
|
|
@@ -19753,7 +19753,7 @@
|
|
|
19753
19753
|
if (!self._type) {
|
|
19754
19754
|
return;
|
|
19755
19755
|
}
|
|
19756
|
-
|
|
19756
|
+
|
|
19757
19757
|
self.getState();
|
|
19758
19758
|
self._batch(function(){
|
|
19759
19759
|
self[self._type](self._style);
|
|
@@ -20087,7 +20087,7 @@
|
|
|
20087
20087
|
class ToolbarPasteCommand extends Command {
|
|
20088
20088
|
exec() {
|
|
20089
20089
|
if (detectClipboardAccess().paste) {
|
|
20090
|
-
this._workbook._view.clipboard.focus();
|
|
20090
|
+
this._workbook._view.clipboard.focus({ preventScroll: true });
|
|
20091
20091
|
// explore programmatic pasting further
|
|
20092
20092
|
document.execCommand('paste');
|
|
20093
20093
|
} else {
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -901,6 +901,9 @@ export class CalcError {
|
|
|
901
901
|
code: string;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
export const calc;
|
|
905
|
+
export const validation;
|
|
906
|
+
|
|
904
907
|
/**
|
|
905
908
|
* A base class only. All references inherit from it, but no direct instance of this object should ever be created.
|
|
906
909
|
* The class is exported just to make it easier to check whether something is a reference: `x instanceof Ref`.
|
|
@@ -1012,6 +1015,11 @@ export function defineFunction(name: string, func: Function): {
|
|
|
1012
1015
|
argsAsync(args: any, log: any): any;
|
|
1013
1016
|
};
|
|
1014
1017
|
|
|
1018
|
+
/**
|
|
1019
|
+
* Registers custom editor.
|
|
1020
|
+
*/
|
|
1021
|
+
export function registerEditor(name, editor): void;
|
|
1022
|
+
|
|
1015
1023
|
/**
|
|
1016
1024
|
* Defines alias of a formula.
|
|
1017
1025
|
*/
|