@progress/kendo-spreadsheet-common 1.1.0-develop.1 → 1.1.0-develop.3

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 CHANGED
@@ -11746,6 +11746,10 @@ class Controller {
11746
11746
  this.clipboardElement.focus();
11747
11747
  this.navigator.navigateInSelection(ENTRY_ACTIONS[action]);
11748
11748
  }
11749
+
11750
+ if (action === 'tab') {
11751
+ e.preventDefault();
11752
+ }
11749
11753
  }
11750
11754
 
11751
11755
  onEditorAction(event, action) {
@@ -17442,6 +17446,8 @@ function sameWeek(a, b) {
17442
17446
  // formulas from another sheet.
17443
17447
  var MODIFIED_FORMULAS;
17444
17448
 
17449
+ const DEFAULT_SHEET_STATE = 'visible';
17450
+
17445
17451
  class Selection {
17446
17452
  constructor(sheet) {
17447
17453
  this._sheet = sheet;
@@ -17728,6 +17734,20 @@ class Sheet extends Observable {
17728
17734
  return this._name();
17729
17735
  }
17730
17736
 
17737
+ _state(value) {
17738
+ if (!value) {
17739
+ return this._sheetState || DEFAULT_SHEET_STATE;
17740
+ }
17741
+
17742
+ this._sheetState = value;
17743
+
17744
+ return this;
17745
+ }
17746
+
17747
+ state() {
17748
+ return this._state();
17749
+ }
17750
+
17731
17751
  _property(accessor, value, reason) {
17732
17752
  if (value === undefined) {
17733
17753
  return accessor();
@@ -18818,6 +18838,7 @@ class Sheet extends Observable {
18818
18838
 
18819
18839
  var json = {
18820
18840
  name: this._name(),
18841
+ state: this._state(),
18821
18842
  rows: rows,
18822
18843
  columns: columns,
18823
18844
  selection: viewSelection.selection.toString(),
@@ -25552,6 +25573,7 @@ async function readWorkbook(zip, workbook) {
25552
25573
  let relId = attrs["r:id"];
25553
25574
  let file = relationships.byId[relId];
25554
25575
  let name = attrs.name;
25576
+ let state = attrs.state;
25555
25577
 
25556
25578
  items.push({
25557
25579
  workbook: workbook,
@@ -25560,6 +25582,7 @@ async function readWorkbook(zip, workbook) {
25560
25582
  styles: styles,
25561
25583
  file: file,
25562
25584
  options: {
25585
+ state: state,
25563
25586
  name: name
25564
25587
  }
25565
25588
  });
@@ -27072,6 +27095,7 @@ class Workbook extends Observable {
27072
27095
  sheet._workbook = this;
27073
27096
 
27074
27097
  sheet._name(sheetName);
27098
+ sheet._state(options.state);
27075
27099
 
27076
27100
  this._bindSheetEvents(sheet);
27077
27101
 
package/dist/index.js CHANGED
@@ -11747,6 +11747,10 @@
11747
11747
  this.clipboardElement.focus();
11748
11748
  this.navigator.navigateInSelection(ENTRY_ACTIONS[action]);
11749
11749
  }
11750
+
11751
+ if (action === 'tab') {
11752
+ e.preventDefault();
11753
+ }
11750
11754
  }
11751
11755
 
11752
11756
  onEditorAction(event, action) {
@@ -17443,6 +17447,8 @@
17443
17447
  // formulas from another sheet.
17444
17448
  var MODIFIED_FORMULAS;
17445
17449
 
17450
+ const DEFAULT_SHEET_STATE = 'visible';
17451
+
17446
17452
  class Selection {
17447
17453
  constructor(sheet) {
17448
17454
  this._sheet = sheet;
@@ -17729,6 +17735,20 @@
17729
17735
  return this._name();
17730
17736
  }
17731
17737
 
17738
+ _state(value) {
17739
+ if (!value) {
17740
+ return this._sheetState || DEFAULT_SHEET_STATE;
17741
+ }
17742
+
17743
+ this._sheetState = value;
17744
+
17745
+ return this;
17746
+ }
17747
+
17748
+ state() {
17749
+ return this._state();
17750
+ }
17751
+
17732
17752
  _property(accessor, value, reason) {
17733
17753
  if (value === undefined) {
17734
17754
  return accessor();
@@ -18819,6 +18839,7 @@
18819
18839
 
18820
18840
  var json = {
18821
18841
  name: this._name(),
18842
+ state: this._state(),
18822
18843
  rows: rows,
18823
18844
  columns: columns,
18824
18845
  selection: viewSelection.selection.toString(),
@@ -25553,6 +25574,7 @@
25553
25574
  let relId = attrs["r:id"];
25554
25575
  let file = relationships.byId[relId];
25555
25576
  let name = attrs.name;
25577
+ let state = attrs.state;
25556
25578
 
25557
25579
  items.push({
25558
25580
  workbook: workbook,
@@ -25561,6 +25583,7 @@
25561
25583
  styles: styles,
25562
25584
  file: file,
25563
25585
  options: {
25586
+ state: state,
25564
25587
  name: name
25565
25588
  }
25566
25589
  });
@@ -27073,6 +27096,7 @@
27073
27096
  sheet._workbook = this;
27074
27097
 
27075
27098
  sheet._name(sheetName);
27099
+ sheet._state(options.state);
27076
27100
 
27077
27101
  this._bindSheetEvents(sheet);
27078
27102
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-spreadsheet-common",
3
3
  "description": "Kendo UI platform-independent Spreadsheet library",
4
- "version": "1.1.0-develop.1",
4
+ "version": "1.1.0-develop.3",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],
package/src/index.d.ts CHANGED
@@ -277,6 +277,13 @@ export interface SheetDescriptor {
277
277
  * An array which contains the drawings used in this sheet.
278
278
  */
279
279
  drawings?: { topLeftCell: any; offsetX: number; offsetY: number; width: number; height: number; image: string; opacity: any }[];
280
+
281
+ /**
282
+ * The state of the sheet.
283
+ *
284
+ * @default 'visible'
285
+ */
286
+ state?: 'visible' | 'hidden' | 'veryHidden';
280
287
  }
281
288
 
282
289
  /**