gridjs-spreadsheet 25.12.0 → 26.1.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.
- package/example/.classpath +41 -0
- package/example/.project +23 -0
- package/example/pom.xml +8 -8
- package/example/src/main/resources/application.properties +7 -3
- package/example/src/main/resources/templates/fileFromUpload.html +18 -17
- package/example/src/main/resources/templates/index.html +1 -1
- package/example/wb/studenttop.xlsx +0 -0
- package/package.json +1 -1
- package/readme.md +9 -5
- package/xspreadsheet.css +32 -0
- package/xspreadsheet.js +4 -4
- package/example/.mvn/wrapper/maven-wrapper.properties +0 -18
- package/example/src/test/java/com/aspose/gridjs/demo/GridjsdemoApplicationTests.java +0 -1441
- package/preview.gif +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<classpath>
|
|
3
|
+
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
|
4
|
+
<attributes>
|
|
5
|
+
<attribute name="optional" value="true"/>
|
|
6
|
+
<attribute name="maven.pomderived" value="true"/>
|
|
7
|
+
</attributes>
|
|
8
|
+
</classpathentry>
|
|
9
|
+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
|
10
|
+
<attributes>
|
|
11
|
+
<attribute name="maven.pomderived" value="true"/>
|
|
12
|
+
<attribute name="optional" value="true"/>
|
|
13
|
+
</attributes>
|
|
14
|
+
</classpathentry>
|
|
15
|
+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
|
16
|
+
<attributes>
|
|
17
|
+
<attribute name="test" value="true"/>
|
|
18
|
+
<attribute name="optional" value="true"/>
|
|
19
|
+
<attribute name="maven.pomderived" value="true"/>
|
|
20
|
+
</attributes>
|
|
21
|
+
</classpathentry>
|
|
22
|
+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
|
23
|
+
<attributes>
|
|
24
|
+
<attribute name="test" value="true"/>
|
|
25
|
+
<attribute name="maven.pomderived" value="true"/>
|
|
26
|
+
<attribute name="optional" value="true"/>
|
|
27
|
+
</attributes>
|
|
28
|
+
</classpathentry>
|
|
29
|
+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
|
30
|
+
<attributes>
|
|
31
|
+
<attribute name="module" value="true"/>
|
|
32
|
+
<attribute name="maven.pomderived" value="true"/>
|
|
33
|
+
</attributes>
|
|
34
|
+
</classpathentry>
|
|
35
|
+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
|
36
|
+
<attributes>
|
|
37
|
+
<attribute name="maven.pomderived" value="true"/>
|
|
38
|
+
</attributes>
|
|
39
|
+
</classpathentry>
|
|
40
|
+
<classpathentry kind="output" path="target/classes"/>
|
|
41
|
+
</classpath>
|
package/example/.project
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<projectDescription>
|
|
3
|
+
<name>Examples.GridJs</name>
|
|
4
|
+
<comment></comment>
|
|
5
|
+
<projects>
|
|
6
|
+
</projects>
|
|
7
|
+
<buildSpec>
|
|
8
|
+
<buildCommand>
|
|
9
|
+
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
10
|
+
<arguments>
|
|
11
|
+
</arguments>
|
|
12
|
+
</buildCommand>
|
|
13
|
+
<buildCommand>
|
|
14
|
+
<name>org.eclipse.m2e.core.maven2Builder</name>
|
|
15
|
+
<arguments>
|
|
16
|
+
</arguments>
|
|
17
|
+
</buildCommand>
|
|
18
|
+
</buildSpec>
|
|
19
|
+
<natures>
|
|
20
|
+
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
21
|
+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
|
22
|
+
</natures>
|
|
23
|
+
</projectDescription>
|
package/example/pom.xml
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</repositories>
|
|
18
18
|
<groupId>com.aspose.gridjs</groupId>
|
|
19
19
|
<artifactId>gridjsdemo</artifactId>
|
|
20
|
-
<version>
|
|
20
|
+
<version>26.1</version>
|
|
21
21
|
<name>gridjsdemo</name>
|
|
22
22
|
<description>GridJs Demo project for Spring Boot</description>
|
|
23
23
|
<properties>
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
<artifactId>gson</artifactId>
|
|
49
49
|
<version>2.9.0</version> <!-- 使用你需要的Gson版本 -->
|
|
50
50
|
</dependency>
|
|
51
|
-
|
|
51
|
+
<dependency>
|
|
52
52
|
<groupId>com.aspose</groupId>
|
|
53
53
|
<artifactId>aspose-cells</artifactId>
|
|
54
|
-
<version>
|
|
55
|
-
</dependency>
|
|
56
|
-
|
|
54
|
+
<version>26.1</version>
|
|
55
|
+
</dependency>
|
|
56
|
+
<dependency>
|
|
57
57
|
<groupId>com.aspose</groupId>
|
|
58
58
|
<artifactId>aspose-cells</artifactId>
|
|
59
|
-
<version>
|
|
59
|
+
<version>26.1</version>
|
|
60
60
|
<classifier>gridjs</classifier>
|
|
61
|
-
</dependency>
|
|
61
|
+
</dependency>
|
|
62
62
|
<!-- <dependency>
|
|
63
63
|
<groupId>org.springframework.boot</groupId>
|
|
64
64
|
<artifactId>spring-boot-docker-compose</artifactId>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
<groupId>org.springframework.boot</groupId>
|
|
75
75
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
76
76
|
<scope>test</scope>
|
|
77
|
-
|
|
77
|
+
</dependency>
|
|
78
78
|
</dependencies>
|
|
79
79
|
|
|
80
80
|
<build>
|
|
@@ -2,12 +2,16 @@ spring.application.name=gridjsdemo
|
|
|
2
2
|
spring.servlet.multipart.enabled=true
|
|
3
3
|
spring.servlet.multipart.max-file-size=10MB
|
|
4
4
|
spring.servlet.multipart.max-request-size=10MB
|
|
5
|
+
#for local test
|
|
5
6
|
#testconfig.ListDir=D:\\codebase\\customerissue\\wb\\tempfromdownload\\
|
|
6
|
-
#
|
|
7
|
+
#testconfig.FileName=excelColumnWordBreak.xlsm
|
|
8
|
+
#testconfig.CachePath=F:\\storage\\gridjs_temp
|
|
9
|
+
#testconfig.UploadPath=F:\\storage\\upload
|
|
10
|
+
#testconfig.AsposeLicensePath=F:\\aspose.lic
|
|
11
|
+
#for docker linux
|
|
7
12
|
testconfig.ListDir=/app/wb
|
|
8
|
-
testconfig.FileName=
|
|
13
|
+
testconfig.FileName=controls.xlsx
|
|
9
14
|
testconfig.CachePath=/app/grid_cache
|
|
10
15
|
testconfig.UploadPath=/app/upload
|
|
11
16
|
testconfig.AsposeLicensePath=/app/license
|
|
12
|
-
|
|
13
17
|
|
|
@@ -5,23 +5,24 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width" />
|
|
6
6
|
<title>gridjs-web-demo</title>
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
<style>
|
|
9
|
+
::-webkit-scrollbar, ::-webkit-scrollbar-button {
|
|
10
|
+
width: 8px;
|
|
11
|
+
height: 8px;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
::-webkit-scrollbar-track {
|
|
15
|
+
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
16
|
+
border-radius: 10px;
|
|
17
|
+
background-color: #FFF;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
::-webkit-scrollbar-thumb {
|
|
21
|
+
border-radius: 10px;
|
|
22
|
+
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
|
|
23
|
+
background-color: #AAA;
|
|
24
|
+
}
|
|
19
25
|
|
|
20
|
-
::-webkit-scrollbar-thumb {
|
|
21
|
-
border-radius: 10px;
|
|
22
|
-
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
|
23
|
-
background-color: #AAA;
|
|
24
|
-
}
|
|
25
26
|
html, body {
|
|
26
27
|
margin: 0;
|
|
27
28
|
padding: 0;
|
|
@@ -42,8 +43,8 @@ html, body {
|
|
|
42
43
|
height: 100%;
|
|
43
44
|
object-fit: contain; /* 对于图像或视频很有用 */
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
</style>
|
|
47
|
+
<!--<link rel="stylesheet" href="./quantumui.min.22.5.5.2.css?v=20220312" />-->
|
|
47
48
|
<link rel="stylesheet" href="/xspread/bootstrap.min.22.5.5.2.css?v=20220315" />
|
|
48
49
|
<script src="/xspread/jquery-2.1.1.js"></script>
|
|
49
50
|
<link rel="stylesheet" href="/xspread/jquery-ui.min.css" />
|
|
@@ -52,7 +52,7 @@ html, body {
|
|
|
52
52
|
<!-- <script src="vconsole.min.js"></script> -->
|
|
53
53
|
<!--for local reference-->
|
|
54
54
|
<!--
|
|
55
|
-
|
|
55
|
+
<link rel="stylesheet" href="/xspread/xspreadsheet.css?v=20230525" />
|
|
56
56
|
<script src="/xspread/xspreadsheet.js?v=20230525"></script>
|
|
57
57
|
-->
|
|
58
58
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gridjs-spreadsheet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.1.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
|
@@ -127,7 +127,6 @@ const s = new Spreadsheet("#gridjs-demo")
|
|
|
127
127
|
showToolbar: true,
|
|
128
128
|
showGrid: true,
|
|
129
129
|
showContextmenu: true,
|
|
130
|
-
local: 'en',
|
|
131
130
|
view: {
|
|
132
131
|
height: () => document.documentElement.clientHeight,
|
|
133
132
|
width: () => document.documentElement.clientWidth,
|
|
@@ -164,11 +163,11 @@ const s = new Spreadsheet("#gridjs-demo")
|
|
|
164
163
|
|
|
165
164
|
## Bind events
|
|
166
165
|
```javascript
|
|
167
|
-
//
|
|
166
|
+
//single selection
|
|
168
167
|
xs.on('cell-selected', (cell, ri, ci) => {});
|
|
169
|
-
//
|
|
168
|
+
//range selection
|
|
170
169
|
xs.on('cells-selected', (cell, { sri, sci, eri, eci }) => {});
|
|
171
|
-
//
|
|
170
|
+
//shape/image selection
|
|
172
171
|
xs.on('object-selected', (obj) => { console.log('obj id:', obj.id, ', type: ', obj.type); })
|
|
173
172
|
// edited on cell
|
|
174
173
|
xs.on('cell-edited', (text, ri, ci) => {});
|
|
@@ -353,7 +352,7 @@ v25.8:
|
|
|
353
352
|
|
|
354
353
|
v25.9:
|
|
355
354
|
|
|
356
|
-
- Support to render pattern style for cell
|
|
355
|
+
- Support to render pattern style for cell
|
|
357
356
|
|
|
358
357
|
v25.10:
|
|
359
358
|
|
|
@@ -370,6 +369,11 @@ v25.12:
|
|
|
370
369
|
- Support sort by cell color/font color
|
|
371
370
|
- Support add multiple selection validation list
|
|
372
371
|
|
|
372
|
+
v26.1:
|
|
373
|
+
|
|
374
|
+
- Support highlight text with rotation
|
|
375
|
+
- Support more charts rendering in client
|
|
376
|
+
|
|
373
377
|
## License
|
|
374
378
|
|
|
375
379
|
MIT
|
package/xspreadsheet.css
CHANGED
|
@@ -291,6 +291,19 @@ body {
|
|
|
291
291
|
.x-spreadsheet-dropdown .x-spreadsheet-dropdown-header .x-spreadsheet-icon.arrow-right .arrow-down {
|
|
292
292
|
left: -130px;
|
|
293
293
|
}
|
|
294
|
+
.x-spreadsheet-dropdown.x-spreadsheet-dropdown-insert-image .x-spreadsheet-dropdown-content {
|
|
295
|
+
padding: 6px 0;
|
|
296
|
+
}
|
|
297
|
+
.x-spreadsheet-dropdown.x-spreadsheet-dropdown-insert-image .x-spreadsheet-item label {
|
|
298
|
+
display: flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
gap: 8px;
|
|
301
|
+
width: 100%;
|
|
302
|
+
cursor: pointer;
|
|
303
|
+
font-weight: inherit;
|
|
304
|
+
font-size: inherit;
|
|
305
|
+
color: inherit;
|
|
306
|
+
}
|
|
294
307
|
.x-spreadsheet-autofill-option-group {
|
|
295
308
|
background-color: white;
|
|
296
309
|
position: absolute;
|
|
@@ -1440,6 +1453,25 @@ body {
|
|
|
1440
1453
|
margin: 0 -16px -8px;
|
|
1441
1454
|
}
|
|
1442
1455
|
}
|
|
1456
|
+
.x-spreadsheet-modal-insert-url .x-spreadsheet-form-fields {
|
|
1457
|
+
flex-direction: column;
|
|
1458
|
+
align-items: stretch;
|
|
1459
|
+
width: 100%;
|
|
1460
|
+
}
|
|
1461
|
+
.x-spreadsheet-modal-insert-url .x-spreadsheet-form-field {
|
|
1462
|
+
width: 100%;
|
|
1463
|
+
margin-left: 0;
|
|
1464
|
+
}
|
|
1465
|
+
.x-spreadsheet-modal-insert-url .x-spreadsheet-form-input {
|
|
1466
|
+
width: 100%;
|
|
1467
|
+
display: flex;
|
|
1468
|
+
}
|
|
1469
|
+
.x-spreadsheet-modal-insert-url .x-spreadsheet-form-input input {
|
|
1470
|
+
width: 100%;
|
|
1471
|
+
}
|
|
1472
|
+
.x-spreadsheet-modal-insert-url .x-spreadsheet-buttons {
|
|
1473
|
+
margin-top: 8px;
|
|
1474
|
+
}
|
|
1443
1475
|
.x-spreadsheet-dimmer {
|
|
1444
1476
|
display: none;
|
|
1445
1477
|
position: absolute;
|