gridjs-spreadsheet 24.6.2 → 24.8.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.8.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",
package/package.json.bak CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "24.6.1",
3
+ "version": "24.6.2",
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",
package/xspreadsheet.css CHANGED
@@ -424,8 +424,23 @@ body {
424
424
  -webkit-box-sizing: content-box;
425
425
  -moz-box-sizing: content-box;
426
426
  }
427
+ .x-spreadsheet-selector .x-spreadsheet-selector-area.dashed {
428
+ border: 2px dashed #4b89ff;
429
+ }
430
+ .x-spreadsheet-selector .x-spreadsheet-selector-validation-input-message {
431
+ position: relative;
432
+ z-index: 100;
433
+ background: #f5f6f7;
434
+ border: 2px solid #e0e2e4;
435
+ border-radius: 5px;
436
+ padding: 5px;
437
+ font-size: 12px;
438
+ color: #333;
439
+ box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
440
+ }
427
441
  .x-spreadsheet-selector .x-spreadsheet-selector-clipboard,
428
- .x-spreadsheet-selector .x-spreadsheet-selector-autofill {
442
+ .x-spreadsheet-selector .x-spreadsheet-selector-autofill,
443
+ .x-spreadsheet-selector .x-spreadsheet-selector-fixed-cell {
429
444
  position: absolute;
430
445
  background: transparent;
431
446
  z-index: 100;
@@ -433,6 +448,9 @@ body {
433
448
  .x-spreadsheet-selector .x-spreadsheet-selector-clipboard {
434
449
  border: 2px dashed #4b89ff;
435
450
  }
451
+ .x-spreadsheet-selector .x-spreadsheet-selector-fixed-cell {
452
+ border: 2px solid #4b89ff;
453
+ }
436
454
  .x-spreadsheet-selector .x-spreadsheet-selector-autofill {
437
455
  border: 1px dashed rgba(0, 0, 0, 0.45);
438
456
  }
@@ -913,6 +931,12 @@ body {
913
931
  background-color: #d9dc22;
914
932
  font-size: 8px;
915
933
  }
934
+ .x-spreadsheet-modal-component-input-btn {
935
+ border: 1px solid #0078d4;
936
+ color: #0078d4;
937
+ background: white;
938
+ border-radius: 0 5px 5px 0;
939
+ }
916
940
  .x-spreadsheet-form-input {
917
941
  font-size: 1em;
918
942
  position: relative;
@@ -1173,7 +1197,7 @@ form fieldset select {
1173
1197
  display: inline-block;
1174
1198
  }
1175
1199
  .x-spreadsheet-icon .x-spreadsheet-icon-img {
1176
- background-image: url(d740084c6ca54e8e1fe35da0c088c135.svg);
1200
+ background-image: url(92a25d00d3c48133d57c1b98d48a688e.svg);
1177
1201
  position: absolute;
1178
1202
  width: 262px;
1179
1203
  height: 444px;
@@ -1503,6 +1527,10 @@ form fieldset select {
1503
1527
  left: -216px;
1504
1528
  top: -90px;
1505
1529
  }
1530
+ .x-spreadsheet-icon .x-spreadsheet-icon-img.data-validation {
1531
+ left: -234px;
1532
+ top: -90px;
1533
+ }
1506
1534
  .x-spreadsheet-formula-bar {
1507
1535
  height: 25px;
1508
1536
  line-height: 25px;
@@ -1512,6 +1540,202 @@ form fieldset select {
1512
1540
  resize: vertical;
1513
1541
  overflow: hidden;
1514
1542
  }
1543
+ .x-spreadsheet-modal-component-input-div {
1544
+ display: flex;
1545
+ flex-direction: column;
1546
+ width: 100%;
1547
+ }
1548
+ .x-spreadsheet-modal-component-input-div label {
1549
+ margin-bottom: 5px;
1550
+ }
1551
+ .x-spreadsheet-modal-component-input-div input {
1552
+ width: 100%;
1553
+ padding: 8px;
1554
+ border: 1px solid #ccc;
1555
+ border-radius: 5px 0 0 5px;
1556
+ }
1557
+ .x-spreadsheet-modal-component-input-div input[type="date"],
1558
+ .x-spreadsheet-modal-component-input-div input[type="time"] {
1559
+ padding: 0;
1560
+ }
1561
+ .x-spreadsheet-modal-component-mask {
1562
+ position: fixed;
1563
+ top: 0;
1564
+ left: 0;
1565
+ width: 100%;
1566
+ height: 100%;
1567
+ background: rgba(0, 0, 0, 0.5);
1568
+ z-index: 999;
1569
+ }
1570
+ .x-spreadsheet-modal-component {
1571
+ position: fixed;
1572
+ top: 50%;
1573
+ left: 50%;
1574
+ transform: translate(-50%, -50%);
1575
+ background: #fff;
1576
+ border-radius: 5px;
1577
+ box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.5);
1578
+ z-index: 1000;
1579
+ display: flex;
1580
+ flex-direction: column;
1581
+ width: 50%;
1582
+ height: 50%;
1583
+ overflow: hidden;
1584
+ }
1585
+ .x-spreadsheet-modal-component:focus {
1586
+ outline: none;
1587
+ }
1588
+ .x-spreadsheet-modal-component-content {
1589
+ padding: 10px;
1590
+ flex-grow: 1;
1591
+ background: #f5f5f5;
1592
+ overflow-y: auto;
1593
+ }
1594
+ .x-spreadsheet-modal-component-header {
1595
+ padding: 10px 20px;
1596
+ background: #f5f5f5;
1597
+ border-bottom: 1px solid #ddd;
1598
+ display: flex;
1599
+ justify-content: space-between;
1600
+ font-weight: bold;
1601
+ font-size: 18px;
1602
+ }
1603
+ .x-spreadsheet-modal-component-footer {
1604
+ padding: 5px 10px;
1605
+ background: #f5f5f5;
1606
+ border-top: 1px solid #ddd;
1607
+ text-align: right;
1608
+ }
1609
+ .x-spreadsheet-modal-component-footer button {
1610
+ line-height: 1.5rem;
1611
+ padding: 5px 10px;
1612
+ font-size: 16px;
1613
+ border: 1px solid #ccc;
1614
+ border-radius: 4px;
1615
+ background-color: #ffffff;
1616
+ cursor: pointer;
1617
+ outline: none;
1618
+ transition: background-color 0.3s, border-color 0.3s;
1619
+ margin: 5px;
1620
+ }
1621
+ .x-spreadsheet-modal-component-footer button {
1622
+ border-color: #0078d4;
1623
+ /* Blue border */
1624
+ color: #0078d4;
1625
+ }
1626
+ .x-spreadsheet-modal-component-footer button:hover {
1627
+ background-color: #e6f7ff;
1628
+ /* Light blue background on hover */
1629
+ }
1630
+ .x-spreadsheet-modal-component-footer button:focus {
1631
+ box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.5);
1632
+ /* Focus outline */
1633
+ }
1634
+ .x-spreadsheet-modal-component-footer button.cancel {
1635
+ border-color: #ccc;
1636
+ color: #333;
1637
+ }
1638
+ .x-spreadsheet-modal-component-footer button.cancel:hover {
1639
+ background-color: #f0f0f0;
1640
+ }
1641
+ .x-spreadsheet-modal-component-footer button.cancel:focus {
1642
+ box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
1643
+ }
1644
+ .x-spreadsheet-modal-component-section-container {
1645
+ height: 100%;
1646
+ }
1647
+ .x-spreadsheet-modal-component-section-title {
1648
+ display: flex;
1649
+ align-items: center;
1650
+ margin-bottom: 10px;
1651
+ color: gray;
1652
+ }
1653
+ .x-spreadsheet-modal-component-section-title span {
1654
+ flex-shrink: 0;
1655
+ }
1656
+ .x-spreadsheet-modal-component-section-line {
1657
+ flex-grow: 1;
1658
+ height: 1px;
1659
+ background: lightgray;
1660
+ margin-left: 2px;
1661
+ }
1662
+ .modal-animate {
1663
+ transition: top 0.5s ease, height 0.5s ease;
1664
+ }
1665
+ .x-spreadsheet-modal-component-section-content {
1666
+ padding: 0 5px;
1667
+ border-radius: 4px;
1668
+ height: max-content;
1669
+ }
1670
+ /* Outer wrapper for the modal component tabs */
1671
+ .x-spreadsheet-modal-component-tabs {
1672
+ display: flex;
1673
+ flex-direction: column;
1674
+ width: 100%;
1675
+ height: 100%;
1676
+ }
1677
+ .x-spreadsheet-modal-component-label {
1678
+ font-size: 16px;
1679
+ }
1680
+ .x-spreadsheet-modal-component-checkbox {
1681
+ display: flex;
1682
+ align-items: baseline;
1683
+ margin-bottom: 15px;
1684
+ }
1685
+ .x-spreadsheet-modal-component-checkbox label {
1686
+ margin-left: 5px;
1687
+ }
1688
+ .x-spreadsheet-modal-component-dropdown {
1689
+ display: flex;
1690
+ flex-direction: column;
1691
+ }
1692
+ .x-spreadsheet-modal-component-dropdown select {
1693
+ height: 35px;
1694
+ border: 1px solid #ccc;
1695
+ border-radius: 5px;
1696
+ }
1697
+ .x-spreadsheet-modal-component-textarea {
1698
+ display: flex;
1699
+ flex-direction: column;
1700
+ }
1701
+ .x-spreadsheet-modal-component-textarea textarea {
1702
+ resize: none;
1703
+ width: 100%;
1704
+ padding: 8px;
1705
+ border: 1px solid #ccc;
1706
+ border-radius: 5px;
1707
+ height: 100px;
1708
+ }
1709
+ /* Header row containing the tab buttons */
1710
+ .x-spreadsheet-modal-component-tab-headers {
1711
+ display: flex;
1712
+ border-bottom: 1px solid #ccc;
1713
+ }
1714
+ /* Individual tab buttons */
1715
+ .x-spreadsheet-modal-component-tab-button {
1716
+ padding: 0 15px;
1717
+ cursor: pointer;
1718
+ background-color: #f0f0f0;
1719
+ border: none;
1720
+ outline: none;
1721
+ transition: background-color 0.3s;
1722
+ font-size: 16px;
1723
+ }
1724
+ /* Tab button when active */
1725
+ .x-spreadsheet-modal-component-tab-button.active {
1726
+ background-color: #ffffff;
1727
+ border-bottom: 2px solid #0078d4;
1728
+ /* Blue line to indicate active tab */
1729
+ font-weight: bold;
1730
+ }
1731
+ /* Content area for the tabs */
1732
+ .x-spreadsheet-modal-component-tab-content {
1733
+ padding: 20px;
1734
+ background-color: #ffffff;
1735
+ border: 1px solid #ccc;
1736
+ border-top: none;
1737
+ flex: 1;
1738
+ }
1515
1739
  .x-spreadsheet-bar-label {
1516
1740
  flex: 0 0 auto;
1517
1741
  display: inline-block;