gridjs-spreadsheet 26.6.0 → 26.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "26.6.0",
3
+ "version": "26.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 based on JSON format.",
5
5
  "types": "index.d.ts",
6
6
  "main": "xspreadsheet.js",
package/readme.md CHANGED
@@ -424,6 +424,14 @@ v26.6:
424
424
 
425
425
  - Improve redaction feature
426
426
 
427
+ v26.6.1:
428
+
429
+ - Fix redaction font issue
430
+
431
+ v26.6.2:
432
+
433
+ - Fix redaction transparent view issue
434
+
427
435
  ## License
428
436
 
429
437
  MIT
package/xspreadsheet.css CHANGED
@@ -872,6 +872,111 @@ body {
872
872
  font-weight: bold;
873
873
  color: #333;
874
874
  }
875
+ .x-spreadsheet-bottombar-right-controls {
876
+ display: flex;
877
+ align-items: center;
878
+ flex-shrink: 0;
879
+ height: 40px;
880
+ }
881
+ .x-spreadsheet-zoom-control {
882
+ display: flex;
883
+ align-items: center;
884
+ flex-shrink: 0;
885
+ gap: 7px;
886
+ height: 40px;
887
+ padding: 0 8px;
888
+ border-left: 1px solid #e0e2e4;
889
+ color: #2f3437;
890
+ font-size: 14px;
891
+ white-space: nowrap;
892
+ }
893
+ button.x-spreadsheet-zoom-button {
894
+ position: relative;
895
+ width: 16px;
896
+ height: 24px;
897
+ padding: 0;
898
+ border: 0;
899
+ background: transparent;
900
+ color: #2f3437;
901
+ cursor: pointer;
902
+ display: flex;
903
+ align-items: center;
904
+ justify-content: center;
905
+ font-size: 0;
906
+ font-weight: 300;
907
+ line-height: 0;
908
+ text-align: center;
909
+ user-select: none;
910
+ }
911
+ button.x-spreadsheet-zoom-button::before,
912
+ button.x-spreadsheet-zoom-button::after {
913
+ content: '';
914
+ position: absolute;
915
+ top: 50%;
916
+ left: 50%;
917
+ background: currentColor;
918
+ transform: translate(-50%, -50%);
919
+ }
920
+ button.x-spreadsheet-zoom-button::before {
921
+ width: 10px;
922
+ height: 2px;
923
+ }
924
+ button.x-spreadsheet-zoom-button[aria-label="Zoom in"]::after {
925
+ width: 2px;
926
+ height: 10px;
927
+ }
928
+ button.x-spreadsheet-zoom-button:hover {
929
+ color: #111827;
930
+ }
931
+ button.x-spreadsheet-zoom-button:focus-visible {
932
+ outline: 1px solid #6b7280;
933
+ outline-offset: 2px;
934
+ }
935
+ input[type="range"].x-spreadsheet-zoom-slider {
936
+ width: 80px;
937
+ height: 24px;
938
+ margin: 0;
939
+ background: transparent;
940
+ cursor: pointer;
941
+ appearance: none;
942
+ -webkit-appearance: none;
943
+ }
944
+ input[type="range"].x-spreadsheet-zoom-slider::-webkit-slider-runnable-track {
945
+ height: 2px;
946
+ background: #5f6368;
947
+ }
948
+ input[type="range"].x-spreadsheet-zoom-slider::-webkit-slider-thumb {
949
+ width: 8px;
950
+ height: 18px;
951
+ margin-top: -8px;
952
+ background: #6b6f72;
953
+ border: 0;
954
+ border-radius: 0;
955
+ appearance: none;
956
+ -webkit-appearance: none;
957
+ }
958
+ input[type="range"].x-spreadsheet-zoom-slider::-moz-range-track {
959
+ height: 2px;
960
+ background: #5f6368;
961
+ }
962
+ input[type="range"].x-spreadsheet-zoom-slider::-moz-range-thumb {
963
+ width: 8px;
964
+ height: 18px;
965
+ background: #6b6f72;
966
+ border: 0;
967
+ border-radius: 0;
968
+ }
969
+ input[type="range"].x-spreadsheet-zoom-slider:focus-visible {
970
+ outline: 1px solid #6b7280;
971
+ outline-offset: 3px;
972
+ }
973
+ .x-spreadsheet-zoom-value {
974
+ min-width: 42px;
975
+ text-align: right;
976
+ font-size: 13px;
977
+ font-weight: 400;
978
+ color: #1f2933;
979
+ }
875
980
  .x-spreadsheet-menu-wrapper {
876
981
  position: relative;
877
982
  flex-grow: 1;
@@ -1864,6 +1969,9 @@ form fieldset select {
1864
1969
  bottom: 0;
1865
1970
  z-index: 99999;
1866
1971
  }
1972
+ input[type="range"].x-spreadsheet-zoom-slider {
1973
+ width: 80px;
1974
+ }
1867
1975
  .x-spreadsheet-bottombar .x-spreadsheet-menu {
1868
1976
  display: flex;
1869
1977
  }
@@ -1884,7 +1992,7 @@ form fieldset select {
1884
1992
  display: inline-block;
1885
1993
  }
1886
1994
  .x-spreadsheet-icon .x-spreadsheet-icon-img {
1887
- background-image: url(a08275ef8caf83cc1c2eae91f17663e8.svg);
1995
+ background-image: url(1f345d060b26fa53bc9d78c36441afd6.svg);
1888
1996
  position: absolute;
1889
1997
  width: 262px;
1890
1998
  height: 444px;
@@ -2298,6 +2406,10 @@ form fieldset select {
2298
2406
  left: -54px;
2299
2407
  top: -126px;
2300
2408
  }
2409
+ .x-spreadsheet-icon .x-spreadsheet-icon-img.text-extract-filter {
2410
+ left: -126px;
2411
+ top: -126px;
2412
+ }
2301
2413
  .x-spreadsheet-formula-bar {
2302
2414
  height: 25px;
2303
2415
  line-height: 25px;
@@ -2846,4 +2958,249 @@ dialog p {
2846
2958
  .x-spreadsheet-orientation-point.active {
2847
2959
  background-color: red;
2848
2960
  }
2961
+ .x-spreadsheet-modal-text-extract-filter {
2962
+ height: calc(100vh - 64px);
2963
+ max-width: 1120px;
2964
+ width: calc(100vw - 64px) !important;
2965
+ max-height: calc(100vh - 64px);
2966
+ }
2967
+ .x-spreadsheet-modal-text-extract-filter .x-spreadsheet-modal-content {
2968
+ box-sizing: border-box;
2969
+ display: flex;
2970
+ flex-direction: column;
2971
+ height: calc(100% - 48px);
2972
+ padding: 12px 16px 60px;
2973
+ overflow: hidden;
2974
+ position: relative;
2975
+ }
2976
+ .x-spreadsheet-modal-text-extract-filter-range-selecting .x-spreadsheet-modal-content {
2977
+ height: auto;
2978
+ padding: 10px 16px;
2979
+ overflow: visible;
2980
+ }
2981
+ .x-spreadsheet-text-extract-filter-subtitle {
2982
+ color: #666;
2983
+ font-size: 13px;
2984
+ line-height: 1.5;
2985
+ margin-bottom: 10px;
2986
+ flex-shrink: 0;
2987
+ }
2988
+ .x-spreadsheet-text-extract-filter-main {
2989
+ display: grid;
2990
+ grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
2991
+ gap: 18px;
2992
+ width: 100%;
2993
+ flex: 1 1 auto;
2994
+ height: 0;
2995
+ min-height: 0;
2996
+ overflow: hidden;
2997
+ }
2998
+ .x-spreadsheet-text-extract-filter-left {
2999
+ display: flex;
3000
+ flex-direction: column;
3001
+ width: 100%;
3002
+ min-width: 0;
3003
+ min-height: 0;
3004
+ }
3005
+ .x-spreadsheet-text-extract-filter-source-label {
3006
+ color: #666;
3007
+ font-size: 12px;
3008
+ margin-bottom: 6px;
3009
+ flex-shrink: 0;
3010
+ }
3011
+ .x-spreadsheet-text-extract-filter-preview {
3012
+ flex: 1 1 auto;
3013
+ width: 100%;
3014
+ min-height: 0;
3015
+ display: flex;
3016
+ align-items: center;
3017
+ justify-content: center;
3018
+ border: 1px solid #dcdcdc;
3019
+ border-radius: 4px;
3020
+ background: #fff;
3021
+ padding: 12px;
3022
+ box-sizing: border-box;
3023
+ overflow: hidden;
3024
+ }
3025
+ .x-spreadsheet-text-extract-filter-preview-grid {
3026
+ display: grid;
3027
+ width: 100%;
3028
+ height: 100%;
3029
+ border-top: 1px solid #dadada;
3030
+ border-left: 1px solid #dadada;
3031
+ min-width: 0;
3032
+ min-height: 0;
3033
+ }
3034
+ .x-spreadsheet-text-extract-filter-preview-row {
3035
+ display: flex;
3036
+ min-height: 28px;
3037
+ }
3038
+ .x-spreadsheet-text-extract-filter-preview-cell {
3039
+ display: flex;
3040
+ align-items: center;
3041
+ min-width: 0;
3042
+ min-height: 0;
3043
+ border-right: 1px solid #dadada;
3044
+ border-bottom: 1px solid #dadada;
3045
+ box-sizing: border-box;
3046
+ padding: 2px 4px;
3047
+ overflow: hidden;
3048
+ text-overflow: ellipsis;
3049
+ white-space: nowrap;
3050
+ font-size: var(--text-extract-filter-preview-font-size, 13px);
3051
+ line-height: 1.15;
3052
+ }
3053
+ .x-spreadsheet-text-extract-filter-right {
3054
+ min-width: 0;
3055
+ min-height: 0;
3056
+ overflow: auto;
3057
+ padding-right: 4px;
3058
+ }
3059
+ .x-spreadsheet-text-extract-filter-section {
3060
+ margin-bottom: 14px;
3061
+ }
3062
+ .x-spreadsheet-text-extract-filter-section-title {
3063
+ color: #666;
3064
+ font-size: 13px;
3065
+ line-height: 20px;
3066
+ margin-bottom: 8px;
3067
+ }
3068
+ .x-spreadsheet-text-extract-filter-options-inline,
3069
+ .x-spreadsheet-text-extract-filter-destination-row {
3070
+ display: flex;
3071
+ align-items: center;
3072
+ gap: 18px;
3073
+ }
3074
+ .x-spreadsheet-text-extract-filter-destination-row {
3075
+ flex-wrap: wrap;
3076
+ gap: 8px 12px;
3077
+ }
3078
+ .x-spreadsheet-text-extract-filter-destination-row .x-spreadsheet-text-extract-filter-range-wrap {
3079
+ flex: 1 1 100%;
3080
+ min-width: 0;
3081
+ }
3082
+ .x-spreadsheet-text-extract-filter-option {
3083
+ display: inline-flex;
3084
+ align-items: center;
3085
+ gap: 8px;
3086
+ min-height: 26px;
3087
+ font-size: 13px;
3088
+ line-height: 20px;
3089
+ cursor: pointer;
3090
+ white-space: nowrap;
3091
+ }
3092
+ .x-spreadsheet-text-extract-filter-option-input {
3093
+ width: 16px;
3094
+ height: 16px;
3095
+ margin: 0;
3096
+ flex: 0 0 auto;
3097
+ }
3098
+ .x-spreadsheet-text-extract-filter-character-box {
3099
+ display: flex;
3100
+ flex-wrap: wrap;
3101
+ gap: 10px 18px;
3102
+ border: 1px solid #dcdcdc;
3103
+ border-radius: 4px;
3104
+ padding: 10px 12px;
3105
+ margin-top: 8px;
3106
+ }
3107
+ .x-spreadsheet-text-extract-filter-range-wrap {
3108
+ display: flex;
3109
+ align-items: center;
3110
+ flex: 1;
3111
+ min-width: 220px;
3112
+ }
3113
+ .x-spreadsheet-text-extract-filter-range-input,
3114
+ .x-spreadsheet-text-extract-filter-range-select-input {
3115
+ height: 30px;
3116
+ border: 1px solid #cfcfcf;
3117
+ border-radius: 4px 0 0 4px;
3118
+ padding: 0 8px;
3119
+ font-size: 13px;
3120
+ box-sizing: border-box;
3121
+ flex: 1;
3122
+ }
3123
+ .x-spreadsheet-text-extract-filter-range-button,
3124
+ .x-spreadsheet-text-extract-filter-range-select-back {
3125
+ height: 30px;
3126
+ width: 36px;
3127
+ border: 1px solid #cfcfcf;
3128
+ border-left: 0;
3129
+ border-radius: 0 4px 4px 0;
3130
+ background: #fff;
3131
+ color: #333;
3132
+ display: inline-flex;
3133
+ align-items: center;
3134
+ justify-content: center;
3135
+ cursor: pointer;
3136
+ }
3137
+ .x-spreadsheet-text-extract-filter-actions {
3138
+ position: absolute;
3139
+ left: 0;
3140
+ right: 0;
3141
+ bottom: 0;
3142
+ display: flex;
3143
+ justify-content: space-between;
3144
+ align-items: center;
3145
+ gap: 12px;
3146
+ margin: 0;
3147
+ padding: 12px 16px 14px;
3148
+ border-top: 1px solid #ededed;
3149
+ flex-shrink: 0;
3150
+ background: #fff;
3151
+ }
3152
+ .x-spreadsheet-text-extract-filter-message {
3153
+ color: #666;
3154
+ font-size: 12px;
3155
+ line-height: 20px;
3156
+ }
3157
+ .x-spreadsheet-text-extract-filter-message.error {
3158
+ color: #c0392b;
3159
+ }
3160
+ .x-spreadsheet-text-extract-filter-action {
3161
+ min-width: 110px;
3162
+ height: 30px;
3163
+ font-size: 13px;
3164
+ }
3165
+ .x-spreadsheet-text-extract-filter-range-select-page {
3166
+ display: flex;
3167
+ align-items: center;
3168
+ width: 100%;
3169
+ min-height: 30px;
3170
+ }
3171
+ @media screen and (max-width: 900px) {
3172
+ .x-spreadsheet-modal-text-extract-filter {
3173
+ width: calc(100vw - 24px) !important;
3174
+ height: calc(100vh - 24px);
3175
+ max-height: calc(100vh - 24px);
3176
+ }
3177
+ .x-spreadsheet-modal-text-extract-filter .x-spreadsheet-modal-content {
3178
+ height: calc(100% - 48px);
3179
+ padding: 10px 10px 56px;
3180
+ }
3181
+ .x-spreadsheet-text-extract-filter-main {
3182
+ grid-template-columns: 1fr;
3183
+ gap: 12px;
3184
+ overflow: auto;
3185
+ }
3186
+ .x-spreadsheet-text-extract-filter-left,
3187
+ .x-spreadsheet-text-extract-filter-right {
3188
+ min-width: 0;
3189
+ }
3190
+ .x-spreadsheet-text-extract-filter-preview {
3191
+ flex: 0 0 auto;
3192
+ height: 32vh;
3193
+ max-height: 240px;
3194
+ min-height: 160px;
3195
+ padding: 10px;
3196
+ }
3197
+ .x-spreadsheet-text-extract-filter-actions {
3198
+ padding: 10px;
3199
+ }
3200
+ .x-spreadsheet-text-extract-filter-options-inline,
3201
+ .x-spreadsheet-text-extract-filter-destination-row {
3202
+ flex-wrap: wrap;
3203
+ gap: 10px 14px;
3204
+ }
3205
+ }
2849
3206