gridjs-spreadsheet 23.4.2 → 23.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "23.4.2",
3
+ "version": "23.4.4",
4
4
  "description": "A smart and simple to use Excel-like JavaScript Spreadsheet library allows you to view and edit spreadsheet file with ease and quick.",
5
5
  "types": "index.d.ts",
6
6
  "main": "xspreadsheet.js",
@@ -42,5 +42,11 @@
42
42
  "excel"
43
43
  ],
44
44
  "author": "Aspose Cells Team",
45
+ "dependencies": {
46
+ "jquery": "~ 3.6.0",
47
+ "jquery-ui": "~ 1.13.2",
48
+ "jszip": "~ 3.10.1",
49
+ "jquery-ui": "~ 1.13.2"
50
+ },
45
51
  "license": "MIT"
46
52
  }
package/readme.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # gridjs-spreadsheet
2
2
 
3
- > A smart and simple to use Excel-like JavaScript Canvas based Spreadsheet library allows you to view and edit spreadsheet file with ease and quick
3
+ > A smart and simple to use WYSIWYG Excel-like JavaScript Canvas based Spreadsheet library allows you to view and edit spreadsheet file with ease and quick
4
4
 
5
5
 
6
6
 
7
7
  ## Document
8
8
  It allows you to view and edit spreadsheet documents with ease.
9
9
  this is developed based on https://github.com/myliang/x-spreadsheet
10
+ Quick online demo: https://products.aspose.app/cells/editor
10
11
 
11
12
 
12
13
  ## CDN
@@ -136,8 +137,12 @@ s.validate()
136
137
 
137
138
  ## Bind events
138
139
  ```javascript
140
+ //single selection
139
141
  xs.on('cell-selected', (cell, ri, ci) => {});
142
+ //range selection
140
143
  xs.on('cells-selected', (cell, { sri, sci, eri, eci }) => {});
144
+ //shape/image selection
145
+ xs.on('object-selected', (obj) => { console.log('obj id:', obj.id, ', type: ', obj.type); })
141
146
  // edited on cell
142
147
  xs.on('cell-edited', (text, ri, ci) => {});
143
148
  ```
package/xspreadsheet.css CHANGED
@@ -192,12 +192,15 @@ body {
192
192
  .x-spreadsheet-dropdown .x-spreadsheet-dropdown-content {
193
193
  position: absolute;
194
194
  z-index: 200;
195
- background: #fff;
195
+ background: #f6f7f8db;
196
196
  box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
197
+ max-height: 600px;
198
+ overflow-y: auto;
197
199
  }
198
200
  .x-spreadsheet-dropdown.bottom-left .x-spreadsheet-dropdown-content {
199
201
  top: calc(100% + 5px);
200
202
  left: 0;
203
+ overflow-y: visible;
201
204
  }
202
205
  .x-spreadsheet-dropdown.bottom-left .x-spreadsheet-menubar-dropdown-content {
203
206
  top: -5px;
@@ -1046,8 +1049,6 @@ form fieldset select {
1046
1049
  }
1047
1050
  .x-spreadsheet-bottombar .x-spreadsheet-menu {
1048
1051
  display: flex;
1049
- overflow-x: scroll;
1050
- overflow-y: hidden;
1051
1052
  }
1052
1053
  .x-spreadsheet-form-checkbox {
1053
1054
  margin-left: -25px;