@progress/kendo-spreadsheet-common 1.0.1 → 1.1.0-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 CHANGED
@@ -11203,50 +11203,39 @@ class Controller {
11203
11203
  return;
11204
11204
  }
11205
11205
 
11206
- // this.cellContextMenu.close();
11207
- // this.colHeaderContextMenu.close();
11208
- // this.rowHeaderContextMenu.close();
11209
- // this.drawingContextMenu.close();
11206
+ // emit close here if necessary
11210
11207
 
11211
- // let menu;
11212
-
11213
- // let object = this.objectAt(event);
11208
+ let object = this.objectAt(event);
11214
11209
 
11215
- // if (object.type === "columnresizehandle" || object.type === "rowresizehandle") {
11216
- // return;
11217
- // }
11210
+ if (object.type === "columnresizehandle" || object.type === "rowresizehandle") {
11211
+ return;
11212
+ }
11218
11213
 
11219
- // if (object.ref) {
11220
- // this.navigator.selectForContextMenu(object.ref, SELECTION_MODES[object.type]);
11221
- // } else if (object.type == "drawing") {
11222
- // this.navigator.selectDrawingForContextMenu(object.drawing);
11223
- // }
11214
+ if (object.ref) {
11215
+ this.navigator.selectForContextMenu(object.ref, SELECTION_MODES[object.type]);
11216
+ } else if (object.type == "drawing") {
11217
+ this.navigator.selectDrawingForContextMenu(object.drawing);
11218
+ }
11224
11219
 
11225
- // let isComposite = this.navigator._sheet.select() instanceof UnionRef;
11226
- // let showUnhide = false;
11227
- // let showUnmerge = false;
11228
-
11229
- // if (object.type == "columnheader") {
11230
- // menu = this.colHeaderContextMenu;
11231
- // showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenColumns();
11232
- // } else if (object.type == "rowheader") {
11233
- // menu = this.rowHeaderContextMenu;
11234
- // showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenRows();
11235
- // } else if (object.type == "drawing") {
11236
- // menu = this.drawingContextMenu;
11237
- // } else {
11238
- // menu = this.cellContextMenu;
11239
- // showUnmerge = this.navigator.selectionIncludesMergedCells();
11240
- // }
11220
+ let isComposite = this.navigator._sheet.select() instanceof UnionRef;
11221
+ let showUnhide = false;
11222
+ let showUnmerge = false;
11241
11223
 
11242
- // menu.element.find(COMPOSITE_UNAVAILABLE_ACTION_SELECTORS).toggle(!isComposite);
11243
- // menu.element.find(UNHIDE_ACTION_SELECTORS).toggle(showUnhide);
11244
- // menu.element.find('[data-action=unmerge]').toggle(showUnmerge);
11224
+ if (object.type == "columnheader") {
11225
+ showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenColumns();
11226
+ } else if (object.type == "rowheader") {
11227
+ showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenRows();
11228
+ } else if (object.type == "drawing") ; else {
11229
+ showUnmerge = this.navigator.selectionIncludesMergedCells();
11230
+ }
11245
11231
 
11246
- // // avoid the immediate close
11247
- // setTimeout(function() {
11248
- // menu.open(event.pageX, event.pageY);
11249
- // });
11232
+ this._workbook.trigger("contextmenu", {
11233
+ objectRef: object.ref,
11234
+ targetType: object.type,
11235
+ showUnhide,
11236
+ showUnmerge,
11237
+ originalEvent: event
11238
+ });
11250
11239
  }
11251
11240
 
11252
11241
  prevent(event) {
@@ -17453,6 +17442,8 @@ function sameWeek(a, b) {
17453
17442
  // formulas from another sheet.
17454
17443
  var MODIFIED_FORMULAS;
17455
17444
 
17445
+ const DEFAULT_SHEET_STATE = 'visible';
17446
+
17456
17447
  class Selection {
17457
17448
  constructor(sheet) {
17458
17449
  this._sheet = sheet;
@@ -17739,6 +17730,20 @@ class Sheet extends Observable {
17739
17730
  return this._name();
17740
17731
  }
17741
17732
 
17733
+ _state(value) {
17734
+ if (!value) {
17735
+ return this._sheetState || DEFAULT_SHEET_STATE;
17736
+ }
17737
+
17738
+ this._sheetState = value;
17739
+
17740
+ return this;
17741
+ }
17742
+
17743
+ state() {
17744
+ return this._state();
17745
+ }
17746
+
17742
17747
  _property(accessor, value, reason) {
17743
17748
  if (value === undefined) {
17744
17749
  return accessor();
@@ -18829,6 +18834,7 @@ class Sheet extends Observable {
18829
18834
 
18830
18835
  var json = {
18831
18836
  name: this._name(),
18837
+ state: this._state(),
18832
18838
  rows: rows,
18833
18839
  columns: columns,
18834
18840
  selection: viewSelection.selection.toString(),
@@ -24516,14 +24522,13 @@ class AdjustRowHeightCommand extends Command {
24516
24522
 
24517
24523
  class ToolbarPasteCommand extends Command {
24518
24524
  exec() {
24519
- // PoC only, no clipboard so far
24520
- // if (kendo.support.clipboard.paste) {
24521
- // this._workbook._view.clipboard.focus().select();
24522
- // //reason : focusclipbord
24523
- // document.execCommand('paste');
24524
- // } else {
24525
- // return { reason: "error", type: "useKeyboard" };
24526
- // }
24525
+ if (detectClipboardAccess().paste) {
24526
+ this._workbook._view.clipboard.focus();
24527
+ // explore programmatic pasting further
24528
+ document.execCommand('paste');
24529
+ } else {
24530
+ return { reason: "error", type: "useKeyboard" };
24531
+ }
24527
24532
  }
24528
24533
  }
24529
24534
 
@@ -24602,19 +24607,28 @@ class CopyCommand extends CutCommand {
24602
24607
  // $(textarea).remove();
24603
24608
  // }
24604
24609
 
24610
+ function detectClipboardAccess() {
24611
+ const commands = {
24612
+ copy: document.queryCommandSupported ? document.queryCommandSupported("copy") : false,
24613
+ cut: document.queryCommandSupported ? document.queryCommandSupported("cut") : false,
24614
+ paste: document.queryCommandSupported ? document.queryCommandSupported("paste") : false
24615
+ };
24616
+
24617
+ return commands;
24618
+ }
24619
+
24605
24620
  class ToolbarCopyCommand extends Command {
24606
24621
  constructor(options) {
24607
24622
  super(options);
24608
24623
  this._clipboard = options.workbook.clipboard();
24609
- this.undo = noop;
24624
+ this.cannotUndo = true;
24610
24625
  }
24611
24626
  exec() {
24612
- // PoC only
24613
- // if (kendo.support.clipboard.copy) {
24614
- // document.execCommand('copy');
24615
- // } else {
24616
- return { reason: "error", type: "useKeyboard" };
24617
- // }
24627
+ if (detectClipboardAccess().copy) {
24628
+ document.execCommand('copy');
24629
+ } else {
24630
+ return { reason: "error", type: "useKeyboard" };
24631
+ }
24618
24632
  }
24619
24633
  }
24620
24634
 
@@ -24664,12 +24678,11 @@ class ToolbarCutCommand extends Command {
24664
24678
  this.cannotUndo = true;
24665
24679
  }
24666
24680
  exec() {
24667
- // PoC only
24668
- // if (kendo.support.clipboard.copy) {
24669
- // document.execCommand('cut');
24670
- // } else {
24671
- return { reason: "error", type: "useKeyboard" };
24672
- // }
24681
+ if (detectClipboardAccess().copy) {
24682
+ document.execCommand('cut');
24683
+ } else {
24684
+ return { reason: "error", type: "useKeyboard" };
24685
+ }
24673
24686
  }
24674
24687
  }
24675
24688
 
@@ -25556,6 +25569,7 @@ async function readWorkbook(zip, workbook) {
25556
25569
  let relId = attrs["r:id"];
25557
25570
  let file = relationships.byId[relId];
25558
25571
  let name = attrs.name;
25572
+ let state = attrs.state;
25559
25573
 
25560
25574
  items.push({
25561
25575
  workbook: workbook,
@@ -25564,6 +25578,7 @@ async function readWorkbook(zip, workbook) {
25564
25578
  styles: styles,
25565
25579
  file: file,
25566
25580
  options: {
25581
+ state: state,
25567
25582
  name: name
25568
25583
  }
25569
25584
  });
@@ -26740,6 +26755,7 @@ const events$1 = [
26740
26755
  "paste",
26741
26756
  "changing",
26742
26757
  "change",
26758
+ "contextmenu",
26743
26759
  "excelImport",
26744
26760
  "excelExport",
26745
26761
  "insertSheet",
@@ -27075,6 +27091,7 @@ class Workbook extends Observable {
27075
27091
  sheet._workbook = this;
27076
27092
 
27077
27093
  sheet._name(sheetName);
27094
+ sheet._state(options.state);
27078
27095
 
27079
27096
  this._bindSheetEvents(sheet);
27080
27097
 
@@ -27765,6 +27782,7 @@ class SpreadsheetWidget extends Widget {
27765
27782
 
27766
27783
  _keyDown(e) {
27767
27784
  let key = e.keyCode;
27785
+ let controlKey = e.ctrlKey || e.metaKey;
27768
27786
 
27769
27787
  if (key === keys.F11 && e.shiftKey) {
27770
27788
  this._view.sheetsbar._onAddSelect();
@@ -27798,21 +27816,12 @@ class SpreadsheetWidget extends Widget {
27798
27816
  this._view.sheetsbar._createEditor();
27799
27817
  e.preventDefault();
27800
27818
  return;
27801
- } else if (e.ctrlKey && key === keys.B) {
27802
- const bold = this.element.querySelector("[data-tool=bold]");
27803
- if (bold) {
27804
- bold.click();
27805
- }
27806
- } else if (e.ctrlKey && key === keys.I) {
27807
- const italic = this.element.querySelector("[data-tool=italic]");
27808
- if (italic) {
27809
- italic.click();
27810
- }
27811
- } else if (e.ctrlKey && key === keys.U) {
27812
- const underline = this.element.querySelector("[data-tool=underline]");
27813
- if (underline) {
27814
- underline.click();
27815
- }
27819
+ } else if (controlKey && key === keys.B) {
27820
+ this._handleTypographicalEmphasis('bold');
27821
+ } else if (controlKey && key === keys.I) {
27822
+ this._handleTypographicalEmphasis('italic');
27823
+ } else if (controlKey && key === keys.U) {
27824
+ this._handleTypographicalEmphasis('underline');
27816
27825
  } else if (e.altKey && key === keys.H) {
27817
27826
  this._view.tabstrip.select(0);
27818
27827
  e.preventDefault();
@@ -27828,6 +27837,20 @@ class SpreadsheetWidget extends Widget {
27828
27837
  }
27829
27838
  }
27830
27839
 
27840
+ _handleTypographicalEmphasis(command) {
27841
+ const sheet = this.activeSheet();
27842
+
27843
+ if (sheet) {
27844
+ this.executeCommand({
27845
+ command: 'PropertyChangeCommand',
27846
+ options: {
27847
+ property: command,
27848
+ value: !sheet.range(sheet.activeCell())[command]()
27849
+ }
27850
+ });
27851
+ }
27852
+ }
27853
+
27831
27854
  _resize() {
27832
27855
  this.refresh({ layout: true });
27833
27856
  }
@@ -28121,6 +28144,10 @@ class SpreadsheetWidget extends Widget {
28121
28144
  // kendo.ui.progress(this.element, e.toggle);
28122
28145
  }
28123
28146
 
28147
+ _onContextMenu(e) {
28148
+ this.trigger("contextmenu", e);
28149
+ }
28150
+
28124
28151
  _bindWorkbookEvents() {
28125
28152
  this._workbook.bind("cut", this._workbookCut.bind(this));
28126
28153
  this._workbook.bind("copy", this._workbookCopy.bind(this));
@@ -28147,6 +28174,7 @@ class SpreadsheetWidget extends Widget {
28147
28174
  this._workbook.bind("dataBinding", this._workbookDataBinding.bind(this));
28148
28175
  this._workbook.bind("dataBound", this._workbookDataBound.bind(this));
28149
28176
  this._workbook.bind("progress", this._workbookProgress.bind(this));
28177
+ this._workbook.bind("contextmenu", this._onContextMenu.bind(this));
28150
28178
  }
28151
28179
 
28152
28180
  destroy() {
package/dist/index.js CHANGED
@@ -11204,50 +11204,39 @@
11204
11204
  return;
11205
11205
  }
11206
11206
 
11207
- // this.cellContextMenu.close();
11208
- // this.colHeaderContextMenu.close();
11209
- // this.rowHeaderContextMenu.close();
11210
- // this.drawingContextMenu.close();
11207
+ // emit close here if necessary
11211
11208
 
11212
- // let menu;
11213
-
11214
- // let object = this.objectAt(event);
11209
+ let object = this.objectAt(event);
11215
11210
 
11216
- // if (object.type === "columnresizehandle" || object.type === "rowresizehandle") {
11217
- // return;
11218
- // }
11211
+ if (object.type === "columnresizehandle" || object.type === "rowresizehandle") {
11212
+ return;
11213
+ }
11219
11214
 
11220
- // if (object.ref) {
11221
- // this.navigator.selectForContextMenu(object.ref, SELECTION_MODES[object.type]);
11222
- // } else if (object.type == "drawing") {
11223
- // this.navigator.selectDrawingForContextMenu(object.drawing);
11224
- // }
11215
+ if (object.ref) {
11216
+ this.navigator.selectForContextMenu(object.ref, SELECTION_MODES[object.type]);
11217
+ } else if (object.type == "drawing") {
11218
+ this.navigator.selectDrawingForContextMenu(object.drawing);
11219
+ }
11225
11220
 
11226
- // let isComposite = this.navigator._sheet.select() instanceof UnionRef;
11227
- // let showUnhide = false;
11228
- // let showUnmerge = false;
11229
-
11230
- // if (object.type == "columnheader") {
11231
- // menu = this.colHeaderContextMenu;
11232
- // showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenColumns();
11233
- // } else if (object.type == "rowheader") {
11234
- // menu = this.rowHeaderContextMenu;
11235
- // showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenRows();
11236
- // } else if (object.type == "drawing") {
11237
- // menu = this.drawingContextMenu;
11238
- // } else {
11239
- // menu = this.cellContextMenu;
11240
- // showUnmerge = this.navigator.selectionIncludesMergedCells();
11241
- // }
11221
+ let isComposite = this.navigator._sheet.select() instanceof UnionRef;
11222
+ let showUnhide = false;
11223
+ let showUnmerge = false;
11242
11224
 
11243
- // menu.element.find(COMPOSITE_UNAVAILABLE_ACTION_SELECTORS).toggle(!isComposite);
11244
- // menu.element.find(UNHIDE_ACTION_SELECTORS).toggle(showUnhide);
11245
- // menu.element.find('[data-action=unmerge]').toggle(showUnmerge);
11225
+ if (object.type == "columnheader") {
11226
+ showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenColumns();
11227
+ } else if (object.type == "rowheader") {
11228
+ showUnhide = !isComposite && this.axisManager.selectionIncludesHiddenRows();
11229
+ } else if (object.type == "drawing") ; else {
11230
+ showUnmerge = this.navigator.selectionIncludesMergedCells();
11231
+ }
11246
11232
 
11247
- // // avoid the immediate close
11248
- // setTimeout(function() {
11249
- // menu.open(event.pageX, event.pageY);
11250
- // });
11233
+ this._workbook.trigger("contextmenu", {
11234
+ objectRef: object.ref,
11235
+ targetType: object.type,
11236
+ showUnhide,
11237
+ showUnmerge,
11238
+ originalEvent: event
11239
+ });
11251
11240
  }
11252
11241
 
11253
11242
  prevent(event) {
@@ -17454,6 +17443,8 @@
17454
17443
  // formulas from another sheet.
17455
17444
  var MODIFIED_FORMULAS;
17456
17445
 
17446
+ const DEFAULT_SHEET_STATE = 'visible';
17447
+
17457
17448
  class Selection {
17458
17449
  constructor(sheet) {
17459
17450
  this._sheet = sheet;
@@ -17740,6 +17731,20 @@
17740
17731
  return this._name();
17741
17732
  }
17742
17733
 
17734
+ _state(value) {
17735
+ if (!value) {
17736
+ return this._sheetState || DEFAULT_SHEET_STATE;
17737
+ }
17738
+
17739
+ this._sheetState = value;
17740
+
17741
+ return this;
17742
+ }
17743
+
17744
+ state() {
17745
+ return this._state();
17746
+ }
17747
+
17743
17748
  _property(accessor, value, reason) {
17744
17749
  if (value === undefined) {
17745
17750
  return accessor();
@@ -18830,6 +18835,7 @@
18830
18835
 
18831
18836
  var json = {
18832
18837
  name: this._name(),
18838
+ state: this._state(),
18833
18839
  rows: rows,
18834
18840
  columns: columns,
18835
18841
  selection: viewSelection.selection.toString(),
@@ -24517,14 +24523,13 @@
24517
24523
 
24518
24524
  class ToolbarPasteCommand extends Command {
24519
24525
  exec() {
24520
- // PoC only, no clipboard so far
24521
- // if (kendo.support.clipboard.paste) {
24522
- // this._workbook._view.clipboard.focus().select();
24523
- // //reason : focusclipbord
24524
- // document.execCommand('paste');
24525
- // } else {
24526
- // return { reason: "error", type: "useKeyboard" };
24527
- // }
24526
+ if (detectClipboardAccess().paste) {
24527
+ this._workbook._view.clipboard.focus();
24528
+ // explore programmatic pasting further
24529
+ document.execCommand('paste');
24530
+ } else {
24531
+ return { reason: "error", type: "useKeyboard" };
24532
+ }
24528
24533
  }
24529
24534
  }
24530
24535
 
@@ -24603,19 +24608,28 @@
24603
24608
  // $(textarea).remove();
24604
24609
  // }
24605
24610
 
24611
+ function detectClipboardAccess() {
24612
+ const commands = {
24613
+ copy: document.queryCommandSupported ? document.queryCommandSupported("copy") : false,
24614
+ cut: document.queryCommandSupported ? document.queryCommandSupported("cut") : false,
24615
+ paste: document.queryCommandSupported ? document.queryCommandSupported("paste") : false
24616
+ };
24617
+
24618
+ return commands;
24619
+ }
24620
+
24606
24621
  class ToolbarCopyCommand extends Command {
24607
24622
  constructor(options) {
24608
24623
  super(options);
24609
24624
  this._clipboard = options.workbook.clipboard();
24610
- this.undo = noop;
24625
+ this.cannotUndo = true;
24611
24626
  }
24612
24627
  exec() {
24613
- // PoC only
24614
- // if (kendo.support.clipboard.copy) {
24615
- // document.execCommand('copy');
24616
- // } else {
24617
- return { reason: "error", type: "useKeyboard" };
24618
- // }
24628
+ if (detectClipboardAccess().copy) {
24629
+ document.execCommand('copy');
24630
+ } else {
24631
+ return { reason: "error", type: "useKeyboard" };
24632
+ }
24619
24633
  }
24620
24634
  }
24621
24635
 
@@ -24665,12 +24679,11 @@
24665
24679
  this.cannotUndo = true;
24666
24680
  }
24667
24681
  exec() {
24668
- // PoC only
24669
- // if (kendo.support.clipboard.copy) {
24670
- // document.execCommand('cut');
24671
- // } else {
24672
- return { reason: "error", type: "useKeyboard" };
24673
- // }
24682
+ if (detectClipboardAccess().copy) {
24683
+ document.execCommand('cut');
24684
+ } else {
24685
+ return { reason: "error", type: "useKeyboard" };
24686
+ }
24674
24687
  }
24675
24688
  }
24676
24689
 
@@ -25557,6 +25570,7 @@
25557
25570
  let relId = attrs["r:id"];
25558
25571
  let file = relationships.byId[relId];
25559
25572
  let name = attrs.name;
25573
+ let state = attrs.state;
25560
25574
 
25561
25575
  items.push({
25562
25576
  workbook: workbook,
@@ -25565,6 +25579,7 @@
25565
25579
  styles: styles,
25566
25580
  file: file,
25567
25581
  options: {
25582
+ state: state,
25568
25583
  name: name
25569
25584
  }
25570
25585
  });
@@ -26741,6 +26756,7 @@
26741
26756
  "paste",
26742
26757
  "changing",
26743
26758
  "change",
26759
+ "contextmenu",
26744
26760
  "excelImport",
26745
26761
  "excelExport",
26746
26762
  "insertSheet",
@@ -27076,6 +27092,7 @@
27076
27092
  sheet._workbook = this;
27077
27093
 
27078
27094
  sheet._name(sheetName);
27095
+ sheet._state(options.state);
27079
27096
 
27080
27097
  this._bindSheetEvents(sheet);
27081
27098
 
@@ -27766,6 +27783,7 @@
27766
27783
 
27767
27784
  _keyDown(e) {
27768
27785
  let key = e.keyCode;
27786
+ let controlKey = e.ctrlKey || e.metaKey;
27769
27787
 
27770
27788
  if (key === keys.F11 && e.shiftKey) {
27771
27789
  this._view.sheetsbar._onAddSelect();
@@ -27799,21 +27817,12 @@
27799
27817
  this._view.sheetsbar._createEditor();
27800
27818
  e.preventDefault();
27801
27819
  return;
27802
- } else if (e.ctrlKey && key === keys.B) {
27803
- const bold = this.element.querySelector("[data-tool=bold]");
27804
- if (bold) {
27805
- bold.click();
27806
- }
27807
- } else if (e.ctrlKey && key === keys.I) {
27808
- const italic = this.element.querySelector("[data-tool=italic]");
27809
- if (italic) {
27810
- italic.click();
27811
- }
27812
- } else if (e.ctrlKey && key === keys.U) {
27813
- const underline = this.element.querySelector("[data-tool=underline]");
27814
- if (underline) {
27815
- underline.click();
27816
- }
27820
+ } else if (controlKey && key === keys.B) {
27821
+ this._handleTypographicalEmphasis('bold');
27822
+ } else if (controlKey && key === keys.I) {
27823
+ this._handleTypographicalEmphasis('italic');
27824
+ } else if (controlKey && key === keys.U) {
27825
+ this._handleTypographicalEmphasis('underline');
27817
27826
  } else if (e.altKey && key === keys.H) {
27818
27827
  this._view.tabstrip.select(0);
27819
27828
  e.preventDefault();
@@ -27829,6 +27838,20 @@
27829
27838
  }
27830
27839
  }
27831
27840
 
27841
+ _handleTypographicalEmphasis(command) {
27842
+ const sheet = this.activeSheet();
27843
+
27844
+ if (sheet) {
27845
+ this.executeCommand({
27846
+ command: 'PropertyChangeCommand',
27847
+ options: {
27848
+ property: command,
27849
+ value: !sheet.range(sheet.activeCell())[command]()
27850
+ }
27851
+ });
27852
+ }
27853
+ }
27854
+
27832
27855
  _resize() {
27833
27856
  this.refresh({ layout: true });
27834
27857
  }
@@ -28122,6 +28145,10 @@
28122
28145
  // kendo.ui.progress(this.element, e.toggle);
28123
28146
  }
28124
28147
 
28148
+ _onContextMenu(e) {
28149
+ this.trigger("contextmenu", e);
28150
+ }
28151
+
28125
28152
  _bindWorkbookEvents() {
28126
28153
  this._workbook.bind("cut", this._workbookCut.bind(this));
28127
28154
  this._workbook.bind("copy", this._workbookCopy.bind(this));
@@ -28148,6 +28175,7 @@
28148
28175
  this._workbook.bind("dataBinding", this._workbookDataBinding.bind(this));
28149
28176
  this._workbook.bind("dataBound", this._workbookDataBound.bind(this));
28150
28177
  this._workbook.bind("progress", this._workbookProgress.bind(this));
28178
+ this._workbook.bind("contextmenu", this._onContextMenu.bind(this));
28151
28179
  }
28152
28180
 
28153
28181
  destroy() {
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.0.1",
4
+ "version": "1.1.0-develop.2",
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
  /**