gridjs-spreadsheet 24.5.0 → 24.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.
@@ -26,18 +26,38 @@
26
26
  inkscape:pageopacity="0.0"
27
27
  inkscape:pagecheckerboard="0"
28
28
  showgrid="false"
29
- inkscape:zoom="3.6911179"
30
- inkscape:cx="126.38448"
31
- inkscape:cy="67.594698"
29
+ inkscape:zoom="5.8070322"
30
+ inkscape:cx="197.08863"
31
+ inkscape:cy="82.572299"
32
32
  inkscape:window-width="1304"
33
33
  inkscape:window-height="760"
34
- inkscape:window-x="100"
35
- inkscape:window-y="194"
34
+ inkscape:window-x="214"
35
+ inkscape:window-y="110"
36
36
  inkscape:window-maximized="0"
37
- inkscape:current-layer="图层_1"
37
+ inkscape:current-layer="g48"
38
38
  inkscape:showpageshadow="2"
39
39
  inkscape:deskcolor="#d1d1d1" /><defs
40
40
  id="defs365"><inkscape:path-effect
41
+ effect="spiro"
42
+ id="path-effect43"
43
+ is_visible="true"
44
+ lpeversion="1" /><inkscape:path-effect
45
+ effect="fillet_chamfer"
46
+ id="path-effect46"
47
+ is_visible="true"
48
+ lpeversion="1"
49
+ nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
50
+ radius="0"
51
+ unit="px"
52
+ method="auto"
53
+ mode="F"
54
+ chamfer_steps="1"
55
+ flexible="false"
56
+ use_knot_distance="true"
57
+ apply_no_radius="true"
58
+ apply_with_radius="true"
59
+ only_selected="false"
60
+ hide_knots="false" /><inkscape:path-effect
41
61
  effect="fillet_chamfer"
42
62
  id="path-effect51"
43
63
  is_visible="true"
@@ -788,4 +808,38 @@
788
808
  id="g2"
789
809
  transform="matrix(0.9375,0,0,1.0833333,162.60835,89.833333)"><path
790
810
  d="M 0,4 A 2,2 0 0 1 2,2 h 12 a 2,2 0 0 1 2,2 v 8 a 2,2 0 0 1 -2,2 H 2 A 2,2 0 0 1 0,12 Z M 2,3 A 1,1 0 0 0 1,4 v 0.217 l 7,4.2 7,-4.2 V 4 A 1,1 0 0 0 14,3 Z M 15,5.383 10.292,8.208 15,11.105 Z M 14.966,12.259 9.326,8.788 8,9.583 6.674,8.788 1.034,12.258 A 1,1 0 0 0 2,13 h 12 a 1,1 0 0 0 0.966,-0.741 M 1,11.105 5.708,8.208 1,5.383 Z"
791
- id="path1-79" /></g></svg>
811
+ id="path1-79" /></g><g
812
+ style="fill:#000000;fill-opacity:1"
813
+ id="g48"
814
+ transform="matrix(0.86291998,0,0,1.4609659,176.68953,81.237912)"
815
+ inkscape:groupmode="layer"><g
816
+ id="g52"><path
817
+ d="M 7.09808,14.689252 V 7.5383832 H 5.74066 L 3.83636,9.0859549 V 10.674997 L 5.65277,9.2104737 H 5.74066 V 14.689252 H 3.84125 v 1.405239 h 5.05859 v -1.405239 z"
818
+ fill="#101112"
819
+ id="path2-4"
820
+ style="fill:#000000;fill-opacity:1;stroke-width:1.10197" /><path
821
+ d="m 9.81781,10.117673 v 0.03558 h 1.28909 v -0.04151 c 0,-0.8182607 0.4687,-1.3756323 1.167,-1.3756323 0.6836,0 1.1279,0.486211 1.1279,1.2273978 0,0.5751495 -0.249,1.0257565 -1.2109,2.1938335 l -2.29496,2.757167 v 1.179978 h 4.96586 v -1.417139 h -3.0811 v -0.106741 l 1.377,-1.594919 c 1.1914,-1.387509 1.5966,-2.188004 1.5966,-3.1248463 0,-1.4823493 -0.9814,-2.4844257 -2.4365,-2.4844257 -1.4795,0 -2.49999,1.1147311 -2.49999,2.751253 z"
822
+ fill="#101112"
823
+ id="path3-9"
824
+ style="fill:#000000;fill-opacity:1;stroke-width:1.10197" /><path
825
+ d="m 17.6694,12.341197 h 0.8398 c 0.8106,0 1.333,0.492174 1.333,1.257089 0,0.753015 -0.5127,1.233287 -1.3183,1.233287 -0.7569,0 -1.2647,-0.462543 -1.3135,-1.191878 h -1.2842 c 0.0635,1.600991 1.0986,2.626747 2.6367,2.626747 1.5772,0 2.6563,-1.037657 2.6563,-2.555586 0,-1.132497 -0.5664,-1.891462 -1.5186,-2.027833 v -0.106741 c 0.7715,-0.18968 1.2451,-0.930915 1.2451,-1.9388936 0,-1.3519045 -0.9716,-2.2709684 -2.4023,-2.2709684 -1.4893,0 -2.4316,0.9842863 -2.4805,2.5911544 h 1.2354 c 0.0439,-0.7530267 0.5078,-1.2333117 1.2012,-1.2333117 0.708,0 1.1572,0.4506308 1.1572,1.1621633 0,0.71741 -0.459,1.185904 -1.1621,1.185904 h -0.8252 z"
826
+ fill="#101112"
827
+ id="path4-1"
828
+ style="fill:#000000;fill-opacity:1;stroke-width:1.10197" /></g><g
829
+ style="fill:none"
830
+ id="g53"
831
+ transform="matrix(0.87836067,0,0,0.64876843,22.855711,4.1678454)"><path
832
+ id="Vector"
833
+ d="M 13,18 8,6 3,18 m 8,-4 H 5 m 16,4 v -3 m 0,0 v -3 m 0,3 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 1.6569,0 3,1.3431 3,3 z"
834
+ stroke="#000000"
835
+ stroke-width="2"
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>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "24.5.0",
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.",
3
+ "version": "24.6.0",
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",
7
7
  "scripts": {
package/package.json.bak CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "24.4.0",
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.",
3
+ "version": "24.2.0",
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",
7
7
  "scripts": {
package/xspreadsheet.css CHANGED
@@ -192,9 +192,13 @@ body {
192
192
  .x-spreadsheet-dropdown .x-spreadsheet-dropdown-content {
193
193
  position: absolute;
194
194
  z-index: 200;
195
- background: #f6f7f8db;
195
+ background: white;
196
+ border: 1px solid #ccc;
197
+ border-radius: 2px;
196
198
  box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
197
199
  max-height: 600px;
200
+ font-size: medium;
201
+ font-weight: 500;
198
202
  overflow-y: auto;
199
203
  }
200
204
  .x-spreadsheet-dropdown.bottom-left .x-spreadsheet-dropdown-content {
@@ -644,6 +648,42 @@ body {
644
648
  padding: 0;
645
649
  justify-content: flex-start;
646
650
  }
651
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-menubar-btn::after {
652
+ content: "";
653
+ position: absolute;
654
+ top: 50%;
655
+ right: 5px;
656
+ /* 适当调整右侧间距 */
657
+ transform: translateY(-50%);
658
+ width: 0;
659
+ height: 0;
660
+ border-top: 5px solid transparent;
661
+ border-bottom: 5px solid transparent;
662
+ border-left: 5px solid black;
663
+ }
664
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-menubar-btn,
665
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-item {
666
+ line-height: 25px;
667
+ height: unset;
668
+ padding: 2px 10px;
669
+ position: relative;
670
+ }
671
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-menubar-btn .x-spreadsheet-menu-icon-text,
672
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-item .x-spreadsheet-menu-icon-text {
673
+ align-items: center;
674
+ gap: 5px;
675
+ padding-right: 20px;
676
+ }
677
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-menubar-btn .x-spreadsheet-menu-icon-text .x-spreadsheet-icon,
678
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-item .x-spreadsheet-menu-icon-text .x-spreadsheet-icon {
679
+ transform: scale(1.2);
680
+ }
681
+ .x-spreadsheet-toolbar.x-spreadsheet-menubar .x-spreadsheet-divider {
682
+ width: 90%;
683
+ height: 1px;
684
+ margin: 2px auto;
685
+ background: #e0e2e4;
686
+ }
647
687
  .x-spreadsheet-toolbar {
648
688
  border-bottom: 1px solid #e0e2e4;
649
689
  justify-content: space-between;
@@ -1133,11 +1173,11 @@ form fieldset select {
1133
1173
  display: inline-block;
1134
1174
  }
1135
1175
  .x-spreadsheet-icon .x-spreadsheet-icon-img {
1136
- background-image: url(df0ac85291e8a4f9daef54c3c456ffa1.svg);
1176
+ background-image: url(d740084c6ca54e8e1fe35da0c088c135.svg);
1137
1177
  position: absolute;
1138
1178
  width: 262px;
1139
1179
  height: 444px;
1140
- opacity: 0.56;
1180
+ opacity: 0.86;
1141
1181
  }
1142
1182
  .x-spreadsheet-icon .x-spreadsheet-icon-img.undo {
1143
1183
  left: 0;
@@ -1451,6 +1491,18 @@ form fieldset select {
1451
1491
  left: -162px;
1452
1492
  top: -90px;
1453
1493
  }
1494
+ .x-spreadsheet-icon .x-spreadsheet-icon-img.number {
1495
+ left: -180px;
1496
+ top: -90px;
1497
+ }
1498
+ .x-spreadsheet-icon .x-spreadsheet-icon-img.font-name {
1499
+ left: -198px;
1500
+ top: -90px;
1501
+ }
1502
+ .x-spreadsheet-icon .x-spreadsheet-icon-img.font-size {
1503
+ left: -216px;
1504
+ top: -90px;
1505
+ }
1454
1506
  .x-spreadsheet-formula-bar {
1455
1507
  height: 25px;
1456
1508
  line-height: 25px;