gridjs-spreadsheet 25.5.0 → 25.6.0

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.
@@ -2,10 +2,12 @@ package com.aspose.gridjs.demo;
2
2
 
3
3
  import org.springframework.beans.factory.annotation.Value;
4
4
  import org.springframework.context.annotation.Bean;
5
+ import org.springframework.context.annotation.ComponentScan;
5
6
  import org.springframework.context.annotation.Configuration;
6
7
 
7
8
  import com.aspose.gridjs.GridJsOptions;
8
9
  import com.aspose.gridjs.GridJsService;
10
+ import com.aspose.gridjs.GridJsWorkbook;
9
11
  import com.aspose.gridjs.IGridJsService;
10
12
 
11
13
  @Configuration
@@ -17,6 +19,13 @@ public class MyConfig {
17
19
  @Value("${testconfig.AsposeLicensePath}")
18
20
  public String asposeLicensePath;
19
21
 
22
+
23
+ @Bean
24
+ public GridJsWorkbook gridJsWorkbook() {
25
+ return new GridJsWorkbook();
26
+ }
27
+
28
+
20
29
  @Bean
21
30
  public GridJsOptions gridJsOptions() {
22
31
  GridJsOptions options=new GridJsOptions();
@@ -0,0 +1,31 @@
1
+ package com.aspose.gridjs.demo;
2
+
3
+ import org.springframework.beans.factory.annotation.Value;
4
+ import org.springframework.context.annotation.Bean;
5
+ import org.springframework.context.annotation.Configuration;
6
+
7
+ import com.aspose.gridjs.GridJsOptions;
8
+ import com.aspose.gridjs.GridJsService;
9
+ import com.aspose.gridjs.IGridJsService;
10
+
11
+ @Configuration
12
+ public class MyConfig {
13
+ @Value("${testconfig.CachePath}")
14
+ public String cachePath;
15
+
16
+
17
+ @Value("${testconfig.AsposeLicensePath}")
18
+ public String asposeLicensePath;
19
+
20
+ @Bean
21
+ public GridJsOptions gridJsOptions() {
22
+ GridJsOptions options=new GridJsOptions();
23
+ options.setFileCacheDirectory(cachePath);
24
+ return options;
25
+ }
26
+
27
+ @Bean
28
+ public IGridJsService gridJsService(GridJsOptions gridJsOptions) throws Exception {
29
+ return new GridJsService(gridJsOptions);
30
+ }
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "25.5.0",
3
+ "version": "25.6.0",
4
4
  "description": "this is the client side script for GridJs which is a lightweight, scalable, and customizable toolkit that provides cross-platform web applications, enables convenient development for editing or viewing Excel/Spreadsheet files, offers simple deployment, and provides easy-to-use APIs based on JSON format.",
5
5
  "types": "index.d.ts",
6
6
  "main": "xspreadsheet.js",
package/readme.md CHANGED
@@ -332,6 +332,11 @@ v25.5:
332
332
  - add support for Polish menus.
333
333
  - support APIs for insert/delete rows/columns
334
334
 
335
+ v25.6:
336
+
337
+ - support APIs for resize rows/columns
338
+ - support APIs for hide/unhide rows/columns
339
+
335
340
  ## License
336
341
 
337
342
  MIT
package/xspreadsheet.css CHANGED
@@ -484,6 +484,14 @@ body {
484
484
  .x-spreadsheet-selector .x-spreadsheet-selector-autofill {
485
485
  border: 1px dashed rgba(0, 0, 0, 0.45);
486
486
  }
487
+ .x-spreadsheet-selector .x-spreadsheet-selector-userlabel {
488
+ position: absolute;
489
+ top: -20px;
490
+ /* 比父级 div 向上偏移 20px */
491
+ left: 0;
492
+ /* 固定在父级 div 的左边 */
493
+ padding: 4px 8px;
494
+ }
487
495
  .x-spreadsheet-selector .x-spreadsheet-selector-corner {
488
496
  pointer-events: auto;
489
497
  position: absolute;
@@ -1687,10 +1695,31 @@ form fieldset select {
1687
1695
  z-index: 1000;
1688
1696
  display: flex;
1689
1697
  flex-direction: column;
1690
- width: 50%;
1691
- height: 50%;
1698
+ min-width: 20%;
1692
1699
  overflow: hidden;
1693
1700
  }
1701
+ .x-spreadsheet-modal-radio-container {
1702
+ display: flex;
1703
+ flex-direction: column;
1704
+ gap: 10px;
1705
+ padding: 10px 0;
1706
+ align-items: flex-start;
1707
+ }
1708
+ .x-spreadsheet-modal-radio-option {
1709
+ display: flex;
1710
+ align-items: center;
1711
+ cursor: pointer;
1712
+ }
1713
+ .x-spreadsheet-modal-radio-option input[type="radio"] {
1714
+ margin-right: 8px;
1715
+ width: 16px;
1716
+ height: 16px;
1717
+ padding: 0;
1718
+ }
1719
+ .x-spreadsheet-modal-radio-option label {
1720
+ font-size: 14px;
1721
+ margin: 0;
1722
+ }
1694
1723
  @media screen and (max-width: 480px) {
1695
1724
  .x-spreadsheet-modal-component {
1696
1725
  width: 90% !important;