gridjs-spreadsheet 24.6.2 → 24.7.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.
@@ -26,13 +26,13 @@
26
26
  inkscape:pageopacity="0.0"
27
27
  inkscape:pagecheckerboard="0"
28
28
  showgrid="false"
29
- inkscape:zoom="5.8070322"
30
- inkscape:cx="197.08863"
31
- inkscape:cy="82.572299"
29
+ inkscape:zoom="6.4747389"
30
+ inkscape:cx="215.99327"
31
+ inkscape:cy="94.907303"
32
32
  inkscape:window-width="1304"
33
33
  inkscape:window-height="760"
34
34
  inkscape:window-x="214"
35
- inkscape:window-y="110"
35
+ inkscape:window-y="82"
36
36
  inkscape:window-maximized="0"
37
37
  inkscape:current-layer="g48"
38
38
  inkscape:showpageshadow="2"
@@ -834,12 +834,51 @@
834
834
  stroke="#000000"
835
835
  stroke-width="2"
836
836
  stroke-linecap="round"
837
- stroke-linejoin="round" /></g><g
838
- style="fill:none"
839
- id="g54"
840
- transform="matrix(1.2505097,0,0,0.87426798,45.430764,5.5305356)"><path
841
- fill-rule="evenodd"
842
- clip-rule="evenodd"
843
- d="M 2.78233,2.21707 C 2.70732,2.14206 2.60557,2.09991 2.49949,2.09991 c -0.10609,0 -0.20783,0.04215 -0.28285,0.11716 l -1.999995,2 c -0.1562099,0.15621 -0.1562099,0.40948 0,0.56569 0.15621,0.15621 0.409476,0.15621 0.565685,0 L 2.09949,3.4656 v 8.0686 L 0.78233,10.2171 c -0.15621,-0.1562 -0.409476,-0.1562 -0.565685,0 -0.1562101,0.1562 -0.1562101,0.4094 0,0.5657 l 1.999995,2 c 0.07502,0.075 0.17676,0.1171 0.28285,0.1171 0.10608,0 0.20782,-0.0421 0.28284,-0.1171 l 2,-2 c 0.15621,-0.1563 0.15621,-0.4095 0,-0.5657 -0.15621,-0.1562 -0.40948,-0.1562 -0.56569,0 L 2.89949,11.5342 V 3.4656 l 1.31715,1.31716 c 0.15621,0.15621 0.40948,0.15621 0.56569,0 0.15621,-0.15621 0.15621,-0.40948 0,-0.56569 z M 10.5,2.74997 c 0.2107,0 0.3988,0.13214 0.4703,0.33039 l 3,8.31954 c 0.0937,0.2598 -0.041,0.5463 -0.3007,0.64 -0.2598,0.0937 -0.5463,-0.041 -0.64,-0.3007 L 12.0477,9.016 H 8.95228 L 7.97033,11.7392 C 7.87666,11.9989 7.59013,12.1336 7.33036,12.0399 7.07059,11.9462 6.93595,11.6597 7.02962,11.3999 L 10.0296,3.08036 C 10.1011,2.88211 10.2892,2.74997 10.5,2.74997 Z m 0,1.97399 1.2412,3.44204 H 9.25879 Z"
844
- fill="#000000"
845
- id="path1-27" /></g></g></svg>
837
+ stroke-linejoin="round" /></g><path
838
+ fill-rule="evenodd"
839
+ clip-rule="evenodd"
840
+ d="m 48.910095,7.4688489 c -0.0938,-0.065579 -0.22104,-0.1024292 -0.353695,-0.1024292 -0.132666,0 -0.259893,0.03685 -0.353706,0.1024292 l -2.501013,1.748536 c -0.195342,0.1365694 -0.195342,0.3579952 0,0.4945646 0.195342,0.1365694 0.512053,0.1365694 0.707394,0 l 1.647122,-1.1515508 v 7.0541183 l -1.647122,-1.151498 c -0.195342,-0.136561 -0.512053,-0.136561 -0.707394,0 -0.195343,0.136561 -0.195343,0.357925 0,0.494573 l 2.501013,1.748536 c 0.09381,0.06557 0.22104,0.102377 0.353706,0.102377 0.132655,0 0.259881,-0.03681 0.353695,-0.102377 l 2.501019,-1.748536 c 0.195342,-0.136648 0.195342,-0.358012 0,-0.494573 -0.195342,-0.136561 -0.512059,-0.136561 -0.707401,0 l -1.647109,1.151498 V 8.5603987 l 1.647109,1.1515508 c 0.195342,0.1365694 0.512059,0.1365694 0.707401,0 0.195342,-0.1365694 0.195342,-0.3579952 0,-0.4945646 z m 9.651021,0.4658974 c 0.263482,0 0.498703,0.1155258 0.588115,0.2888494 l 3.751529,7.2735073 c 0.117172,0.227135 -0.05127,0.477613 -0.376029,0.559532 -0.324882,0.08192 -0.683153,-0.03584 -0.800326,-0.262893 L 60.49653,13.412936 h -3.870853 l -1.227938,2.380806 c -0.117135,0.227048 -0.475444,0.344812 -0.800289,0.262893 -0.324845,-0.08192 -0.493213,-0.332397 -0.376078,-0.559532 l 3.751504,-7.2735073 c 0.08941,-0.1733236 0.324632,-0.2888494 0.58824,-0.2888494 z m 0,1.7257963 1.552132,3.0092654 h -3.104277 z"
841
+ fill="#000000"
842
+ id="path1-27"
843
+ style="stroke-width:1.0456" /><g
844
+ style="fill:#000000"
845
+ id="g4"
846
+ transform="matrix(0.68058091,0,0,0.40861931,66.257614,7.3742294)"><g
847
+ id="SVGRepo_bgCarrier"
848
+ stroke-width="0" /><g
849
+ id="SVGRepo_tracerCarrier"
850
+ stroke-linecap="round"
851
+ stroke-linejoin="round" /><g
852
+ id="SVGRepo_iconCarrier"><g
853
+ fill="none"
854
+ stroke="#000000"
855
+ stroke-linecap="round"
856
+ stroke-width="2"
857
+ id="g6"><path
858
+ d="m 8.5,14.5 h 7.657"
859
+ id="path1-793" /><path
860
+ d="m 8.5,10.5 h 7.657"
861
+ id="path2-8" /><path
862
+ d="m 8.5,6.5 h 7.657"
863
+ id="path3-0" /><path
864
+ d="m 5.5,14.5 v 0"
865
+ id="path4-24" /><path
866
+ d="m 5.5,10.5 v 0"
867
+ id="path5-8" /><path
868
+ d="m 5.5,6.5 v 0"
869
+ id="path6-3" /></g><path
870
+ fill="none"
871
+ stroke="#000000"
872
+ stroke-linecap="round"
873
+ stroke-width="2"
874
+ d="M 9.128,20.197 H 3.444 A 2.22,2.22 0 0 1 1.215,18.044 V 3.152 A 2.153,2.153 0 0 1 3.367,0.997 h 15.48 A 2.153,2.153 0 0 1 21,3.152 v 8.738"
875
+ id="path7-9" /><path
876
+ fill="#000000"
877
+ d="M 16.5,23.499 A 1.464,1.464 0 0 1 15.406,23.015 L 12.443,20.046 A 1.479,1.479 0 0 1 12,18.985 a 1.5,1.5 0 0 1 0.462,-1.078 1.56,1.56 0 0 1 2.113,0.037 l 1.925,1.931 4.943,-4.959 a 1.543,1.543 0 0 1 2.132,0.02 1.461,1.461 0 0 1 0.425,1.04 1.5,1.5 0 0 1 -0.45,1.068 l -5.993,6.012 A 1.44,1.44 0 0 1 16.5,23.499 Z"
878
+ id="path8-0" /></g></g><path
879
+ fill-rule="evenodd"
880
+ clip-rule="evenodd"
881
+ d="m 49.447038,7.4688489 c -0.0938,-0.065579 -0.22104,-0.1024292 -0.353695,-0.1024292 -0.132666,0 -0.259893,0.03685 -0.353706,0.1024292 l -2.501013,1.748536 c -0.195342,0.1365694 -0.195342,0.3579952 0,0.4945646 0.195342,0.1365694 0.512053,0.1365694 0.707394,0 L 48.59314,8.5603987 v 7.0541183 l -1.647122,-1.151498 c -0.195342,-0.136561 -0.512053,-0.136561 -0.707394,0 -0.195343,0.136561 -0.195343,0.357925 0,0.494573 l 2.501013,1.748536 c 0.09381,0.06557 0.22104,0.102377 0.353706,0.102377 0.132655,0 0.259881,-0.03681 0.353695,-0.102377 l 2.501019,-1.748536 c 0.195342,-0.136648 0.195342,-0.358012 0,-0.494573 -0.195342,-0.136561 -0.512059,-0.136561 -0.707401,0 l -1.647109,1.151498 V 8.5603987 l 1.647109,1.1515508 c 0.195342,0.1365694 0.512059,0.1365694 0.707401,0 0.195342,-0.1365694 0.195342,-0.3579952 0,-0.4945646 z m 9.651021,0.4658974 c 0.263482,0 0.498703,0.1155258 0.588115,0.2888494 l 3.751529,7.2735073 c 0.117172,0.227135 -0.05127,0.477613 -0.376029,0.559532 -0.324882,0.08192 -0.683153,-0.03584 -0.800326,-0.262893 L 61.033473,13.412936 H 57.16262 l -1.227938,2.380806 c -0.117135,0.227048 -0.475444,0.344812 -0.800289,0.262893 -0.324845,-0.08192 -0.493213,-0.332397 -0.376078,-0.559532 l 3.751504,-7.2735073 c 0.08941,-0.1733236 0.324632,-0.2888494 0.58824,-0.2888494 z m 0,1.7257963 1.552132,3.0092654 h -3.104277 z"
882
+ fill="#000000"
883
+ id="path43"
884
+ style="stroke-width:1.0456" /></g></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "24.6.2",
3
+ "version": "24.7.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.",
5
5
  "types": "index.d.ts",
6
6
  "main": "xspreadsheet.js",
@@ -31,20 +31,8 @@
31
31
  "JSON",
32
32
  "SQL",
33
33
  "XML",
34
- "Online Spreadsheet Editor",
35
- "Online Office",
36
- "Online Excel",
37
- "Online Excel Editor",
38
- "Excel Editor",
39
- "Excel Viewer",
40
- "Excel Online",
41
- "open excel",
42
- "view excel",
43
- "open spreadsheet",
44
- "view spreadsheet",
45
- "spread-sheet",
46
- "spreadsheet editor",
47
- "spreadsheet online",
34
+ "Online excel",
35
+ "spread-sheets",
48
36
  "javascript spreadsheet",
49
37
  "javascript excel",
50
38
  "excel io",
package/package.json.bak CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "24.6.1",
3
+ "version": "24.5.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.",
5
5
  "types": "index.d.ts",
6
6
  "main": "xspreadsheet.js",
@@ -31,20 +31,8 @@
31
31
  "JSON",
32
32
  "SQL",
33
33
  "XML",
34
- "Online Spreadsheet Editor",
35
- "Online Office",
36
- "Online Excel",
37
- "Online Excel Editor",
38
- "Excel Editor",
39
- "Excel Viewer",
40
- "Excel Online",
41
- "open excel",
42
- "view excel",
43
- "open spreadsheet",
44
- "view spreadsheet",
45
- "spread-sheet",
46
- "spreadsheet editor",
47
- "spreadsheet online",
34
+ "Online excel",
35
+ "spread-sheets",
48
36
  "javascript spreadsheet",
49
37
  "javascript excel",
50
38
  "excel io",
package/readme.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # gridjs-spreadsheet
2
2
 
3
- > 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
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
- It allows you to view and edit spreadsheet files with ease.
8
+ It allows you to view and edit spreadsheet documents with ease.
9
9
 
10
10
  this is developed based on https://github.com/myliang/x-spreadsheet
11
11
 
package/readme.md.bak CHANGED
@@ -1,6 +1,6 @@
1
1
  # gridjs-spreadsheet
2
2
 
3
- > 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
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
 
@@ -22,8 +22,8 @@
22
22
  <script src="https://unpkg.com/jquery-ui@1.13.2/dist/jquery-ui.min.js"></script>
23
23
  <script src="https://unpkg.com/jszip@3.10.1/dist/jszip.min.js"></script>
24
24
  <!-- other dependency end -->
25
- <link rel="stylesheet" href="https://unpkg.com/gridjs-spreadsheet@24.1.0/xspreadsheet.css">
26
- <script src="https://unpkg.com/gridjs-spreadsheet@24.1.0/xspreadsheet.js"></script>
25
+ <link rel="stylesheet" href="https://unpkg.com/gridjs-spreadsheet@23.4.0/xspreadsheet.css">
26
+ <script src="https://unpkg.com/gridjs-spreadsheet@23.4.0/xspreadsheet.js"></script>
27
27
 
28
28
  <script>
29
29
  const option = {
package/xspreadsheet.css CHANGED
@@ -424,6 +424,17 @@ body {
424
424
  -webkit-box-sizing: content-box;
425
425
  -moz-box-sizing: content-box;
426
426
  }
427
+ .x-spreadsheet-selector .x-spreadsheet-selector-validation-input-message {
428
+ position: relative;
429
+ z-index: 100;
430
+ background: #f5f6f7;
431
+ border: 2px solid #e0e2e4;
432
+ border-radius: 5px;
433
+ padding: 5px;
434
+ font-size: 12px;
435
+ color: #333;
436
+ box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
437
+ }
427
438
  .x-spreadsheet-selector .x-spreadsheet-selector-clipboard,
428
439
  .x-spreadsheet-selector .x-spreadsheet-selector-autofill {
429
440
  position: absolute;
@@ -1173,7 +1184,7 @@ form fieldset select {
1173
1184
  display: inline-block;
1174
1185
  }
1175
1186
  .x-spreadsheet-icon .x-spreadsheet-icon-img {
1176
- background-image: url(d740084c6ca54e8e1fe35da0c088c135.svg);
1187
+ background-image: url(92a25d00d3c48133d57c1b98d48a688e.svg);
1177
1188
  position: absolute;
1178
1189
  width: 262px;
1179
1190
  height: 444px;
@@ -1503,6 +1514,10 @@ form fieldset select {
1503
1514
  left: -216px;
1504
1515
  top: -90px;
1505
1516
  }
1517
+ .x-spreadsheet-icon .x-spreadsheet-icon-img.data-validation {
1518
+ left: -234px;
1519
+ top: -90px;
1520
+ }
1506
1521
  .x-spreadsheet-formula-bar {
1507
1522
  height: 25px;
1508
1523
  line-height: 25px;
@@ -1512,6 +1527,199 @@ form fieldset select {
1512
1527
  resize: vertical;
1513
1528
  overflow: hidden;
1514
1529
  }
1530
+ .x-spreadsheet-modal-component-input-div {
1531
+ display: flex;
1532
+ flex-direction: column;
1533
+ width: 100%;
1534
+ }
1535
+ .x-spreadsheet-modal-component-input-div label {
1536
+ margin-bottom: 5px;
1537
+ }
1538
+ .x-spreadsheet-modal-component-input-div input {
1539
+ width: 100%;
1540
+ padding: 8px;
1541
+ border: 1px solid #ccc;
1542
+ border-radius: 5px;
1543
+ }
1544
+ .x-spreadsheet-modal-component-input-div input[type="date"],
1545
+ .x-spreadsheet-modal-component-input-div input[type="time"] {
1546
+ padding: 0;
1547
+ }
1548
+ .x-spreadsheet-modal-component-mask {
1549
+ position: fixed;
1550
+ top: 0;
1551
+ left: 0;
1552
+ width: 100%;
1553
+ height: 100%;
1554
+ background: rgba(0, 0, 0, 0.5);
1555
+ z-index: 999;
1556
+ }
1557
+ .x-spreadsheet-modal-component {
1558
+ position: fixed;
1559
+ top: 50%;
1560
+ left: 50%;
1561
+ transform: translate(-50%, -50%);
1562
+ background: #fff;
1563
+ border-radius: 5px;
1564
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
1565
+ z-index: 1000;
1566
+ display: flex;
1567
+ flex-direction: column;
1568
+ width: 50%;
1569
+ height: 50%;
1570
+ overflow: hidden;
1571
+ }
1572
+ .x-spreadsheet-modal-component:focus {
1573
+ outline: none;
1574
+ }
1575
+ .x-spreadsheet-modal-component-content {
1576
+ padding: 20px;
1577
+ flex-grow: 1;
1578
+ background: #f5f5f5;
1579
+ overflow-y: auto;
1580
+ }
1581
+ .x-spreadsheet-modal-component-header {
1582
+ padding: 10px 20px;
1583
+ background: #f5f5f5;
1584
+ border-bottom: 1px solid #ddd;
1585
+ display: flex;
1586
+ justify-content: space-between;
1587
+ font-weight: bold;
1588
+ font-size: 18px;
1589
+ }
1590
+ .x-spreadsheet-modal-component-footer {
1591
+ padding: 5px 10px;
1592
+ background: #f5f5f5;
1593
+ border-top: 1px solid #ddd;
1594
+ text-align: right;
1595
+ }
1596
+ .x-spreadsheet-modal-component-footer button {
1597
+ line-height: 1.5rem;
1598
+ padding: 5px 10px;
1599
+ font-size: 16px;
1600
+ border: 1px solid #ccc;
1601
+ border-radius: 4px;
1602
+ background-color: #ffffff;
1603
+ cursor: pointer;
1604
+ outline: none;
1605
+ transition: background-color 0.3s, border-color 0.3s;
1606
+ margin: 5px;
1607
+ }
1608
+ .x-spreadsheet-modal-component-footer button {
1609
+ border-color: #0078d4;
1610
+ /* Blue border */
1611
+ color: #0078d4;
1612
+ }
1613
+ .x-spreadsheet-modal-component-footer button:hover {
1614
+ background-color: #e6f7ff;
1615
+ /* Light blue background on hover */
1616
+ }
1617
+ .x-spreadsheet-modal-component-footer button:focus {
1618
+ box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.5);
1619
+ /* Focus outline */
1620
+ }
1621
+ .x-spreadsheet-modal-component-footer button.cancel {
1622
+ border-color: #ccc;
1623
+ color: #333;
1624
+ }
1625
+ .x-spreadsheet-modal-component-footer button.cancel:hover {
1626
+ background-color: #f0f0f0;
1627
+ }
1628
+ .x-spreadsheet-modal-component-footer button.cancel:focus {
1629
+ box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
1630
+ }
1631
+ .x-spreadsheet-modal-component-section-container {
1632
+ height: 100%;
1633
+ }
1634
+ .x-spreadsheet-modal-component-section-title {
1635
+ display: flex;
1636
+ align-items: center;
1637
+ margin-bottom: 10px;
1638
+ color: gray;
1639
+ }
1640
+ .x-spreadsheet-modal-component-section-title span {
1641
+ flex-shrink: 0;
1642
+ }
1643
+ .x-spreadsheet-modal-component-section-line {
1644
+ flex-grow: 1;
1645
+ height: 1px;
1646
+ background: lightgray;
1647
+ margin-left: 2px;
1648
+ }
1649
+ .x-spreadsheet-modal-component-section-content {
1650
+ padding: 0 5px;
1651
+ border-radius: 4px;
1652
+ height: max-content;
1653
+ }
1654
+ /* Outer wrapper for the modal component tabs */
1655
+ .x-spreadsheet-modal-component-tabs {
1656
+ display: flex;
1657
+ flex-direction: column;
1658
+ width: 100%;
1659
+ height: 100%;
1660
+ }
1661
+ .x-spreadsheet-modal-component-label {
1662
+ font-size: 16px;
1663
+ }
1664
+ .x-spreadsheet-modal-component-checkbox {
1665
+ display: flex;
1666
+ align-items: baseline;
1667
+ margin-bottom: 15px;
1668
+ }
1669
+ .x-spreadsheet-modal-component-checkbox label {
1670
+ margin-left: 5px;
1671
+ }
1672
+ .x-spreadsheet-modal-component-dropdown {
1673
+ display: flex;
1674
+ flex-direction: column;
1675
+ }
1676
+ .x-spreadsheet-modal-component-dropdown select {
1677
+ height: 35px;
1678
+ border: 1px solid #ccc;
1679
+ border-radius: 5px;
1680
+ }
1681
+ .x-spreadsheet-modal-component-textarea {
1682
+ display: flex;
1683
+ flex-direction: column;
1684
+ }
1685
+ .x-spreadsheet-modal-component-textarea textarea {
1686
+ resize: none;
1687
+ width: 100%;
1688
+ padding: 8px;
1689
+ border: 1px solid #ccc;
1690
+ border-radius: 5px;
1691
+ height: 100px;
1692
+ }
1693
+ /* Header row containing the tab buttons */
1694
+ .x-spreadsheet-modal-component-tab-headers {
1695
+ display: flex;
1696
+ border-bottom: 1px solid #ccc;
1697
+ }
1698
+ /* Individual tab buttons */
1699
+ .x-spreadsheet-modal-component-tab-button {
1700
+ padding: 0 15px;
1701
+ cursor: pointer;
1702
+ background-color: #f0f0f0;
1703
+ border: none;
1704
+ outline: none;
1705
+ transition: background-color 0.3s;
1706
+ font-size: 16px;
1707
+ }
1708
+ /* Tab button when active */
1709
+ .x-spreadsheet-modal-component-tab-button.active {
1710
+ background-color: #ffffff;
1711
+ border-bottom: 2px solid #0078d4;
1712
+ /* Blue line to indicate active tab */
1713
+ font-weight: bold;
1714
+ }
1715
+ /* Content area for the tabs */
1716
+ .x-spreadsheet-modal-component-tab-content {
1717
+ padding: 20px;
1718
+ background-color: #ffffff;
1719
+ border: 1px solid #ccc;
1720
+ border-top: none;
1721
+ flex: 1;
1722
+ }
1515
1723
  .x-spreadsheet-bar-label {
1516
1724
  flex: 0 0 auto;
1517
1725
  display: inline-block;