@fileverse-dev/fortune-react 1.0.2-mod-25-patch-1 → 1.0.2-mod-26

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  export declare function useDialog(): {
3
- showDialog: (content: string | React.ReactNode, type?: "ok" | "yesno", title?: string | React.ReactNode, onOk?: () => void, onCancel?: () => void) => void;
3
+ showDialog: (content: string | React.ReactNode, type?: "ok" | "yesno", onOk?: () => void, onCancel?: () => void) => void;
4
4
  hideDialog: () => void;
5
5
  };
package/dist/index.css CHANGED
@@ -1073,10 +1073,10 @@ html::-webkit-scrollbar-button {
1073
1073
  width: 300px;
1074
1074
  }
1075
1075
 
1076
- .luckysheet-formula-help-c .luckysheet-formula-help-content {
1076
+ /* .luckysheet-formula-help-c .luckysheet-formula-help-content {
1077
1077
  max-height: 300px;
1078
1078
  overflow-y: scroll;
1079
- }
1079
+ } */
1080
1080
 
1081
1081
  .luckysheet-formula-help-content-example {
1082
1082
  margin-top: 5px;
@@ -1091,6 +1091,101 @@ html::-webkit-scrollbar-button {
1091
1091
  font-size: 14px;
1092
1092
  }
1093
1093
 
1094
+ .luckysheet-formula-help-title,
1095
+ .luckysheet-formula-search-item-active {
1096
+ padding: 10px !important;
1097
+ font-size: small;
1098
+ /* background: #f8f9fa !important; */
1099
+ font-weight: 600;
1100
+ border-bottom: 0px !important;
1101
+ border-top: 0px !important;
1102
+ }
1103
+
1104
+ .luckysheet-formula-help-c,
1105
+ .luckysheet-formula-search-c {
1106
+ padding: 6px;
1107
+ -webkit-user-select: text;
1108
+ -moz-user-select: text;
1109
+ user-select: text;
1110
+ border-radius: 10px;
1111
+ top: 25px;
1112
+ background: #f8f9fa;
1113
+ min-width: 300px;
1114
+ width: -moz-fit-content;
1115
+ width: fit-content;
1116
+ /* max-width: 450px; */
1117
+ border: 1px solid lavender;
1118
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
1119
+ }
1120
+
1121
+ #luckysheet-formula-help-c {
1122
+ border-radius: 10px;
1123
+ top: 25px;
1124
+ background: #f8f9fa;
1125
+ }
1126
+
1127
+ .luckysheet-formula-help-title-formula {
1128
+ width: -moz-fit-content;
1129
+ width: fit-content;
1130
+ }
1131
+
1132
+ .luckysheet-formula-help-content {
1133
+ background-color: white;
1134
+ /* margin: 0px 8px 8px 8px; */
1135
+ padding: 2px;
1136
+ border-radius: 0px 0px 10px 10px;
1137
+ }
1138
+
1139
+ .luckysheet-formula-help-content-param,
1140
+ .luckysheet-formula-help-content {
1141
+ display: flex;
1142
+ flex-direction: column;
1143
+ /* gap: 8px; */
1144
+ }
1145
+
1146
+ .luckysheet-formula-help-content-param {
1147
+ padding-top: 4px;
1148
+ border-top: 1px solid lightgrey;
1149
+ }
1150
+
1151
+ .luckysheet-formula-help-content-example {
1152
+ display: flex;
1153
+ flex-direction: column;
1154
+ gap: 4px;
1155
+ }
1156
+
1157
+ .luckysheet-arguments-help-section-title {
1158
+ font-size: 14px;
1159
+ font-weight: 600;
1160
+ }
1161
+
1162
+ .example-title {
1163
+ color: var(--color-text-secondary, #77818A);
1164
+
1165
+ /* fv/text/helper/sm-bold */
1166
+ font-family: "Helvetica Neue";
1167
+ font-size: var(--font-size-2xsm, 12px);
1168
+ font-style: normal;
1169
+ font-weight: 500;
1170
+ line-height: 16px; /* 133.333% */
1171
+ }
1172
+
1173
+ .example-value {
1174
+ color: var(--color-text-default, #363B3F);
1175
+
1176
+ /* fv/text/helper/sm */
1177
+ font-family: "Helvetica Neue";
1178
+ font-size: var(--font-size-2xsm, 12px);
1179
+ font-style: normal;
1180
+ font-weight: 400;
1181
+ line-height: 16px; /* 133.333% */
1182
+ }
1183
+
1184
+ .formula-title {
1185
+ display: flex;
1186
+ justify-content: space-between;
1187
+ }
1188
+
1094
1189
  .luckysheet-formula-help-title-formula {
1095
1190
  width: 250px;
1096
1191
  word-break: break-word;
@@ -1419,30 +1514,6 @@ html::-webkit-scrollbar-button {
1419
1514
  min-width: 154px;
1420
1515
  }
1421
1516
 
1422
- /* Add scrollbar styles */
1423
- #fortune-search-replace .table-container {
1424
- scrollbar-width: thin;
1425
- scrollbar-color: #babac0 transparent;
1426
- }
1427
-
1428
- #fortune-search-replace .table-container::-webkit-scrollbar {
1429
- width: 8px;
1430
- height: 8px;
1431
- }
1432
-
1433
- #fortune-search-replace .table-container::-webkit-scrollbar-track {
1434
- background-color: transparent;
1435
- }
1436
-
1437
- #fortune-search-replace .table-container::-webkit-scrollbar-thumb {
1438
- background-color: #babac0;
1439
- border-radius: 16px;
1440
- }
1441
-
1442
- #fortune-search-replace .table-container::-webkit-scrollbar-button {
1443
- display: none;
1444
- }
1445
-
1446
1517
  .fortune-link-modify-modal {
1447
1518
  position: absolute;
1448
1519
  overflow: hidden;
@@ -1758,11 +1829,14 @@ html::-webkit-scrollbar-button {
1758
1829
  }
1759
1830
 
1760
1831
  #range-dialog {
1761
- box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
1832
+ box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
1762
1833
  background: #fff;
1763
- border: 1px solid hsl(var(--color-border-default));
1834
+ background-clip: padding-box;
1835
+ border: 1px solid rgba(0, 0, 0, 0.333);
1764
1836
  outline: 0;
1765
1837
  position: absolute;
1838
+ color: #000;
1839
+ padding: 30px 42px;
1766
1840
  z-index: 100003;
1767
1841
  left: 50%;
1768
1842
  top: 50%;
@@ -1828,41 +1902,34 @@ html::-webkit-scrollbar-button {
1828
1902
 
1829
1903
  .condition-format-sub-menu {
1830
1904
  position: absolute;
1831
- top: -12px;
1832
- box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
1905
+ top: -8px;
1906
+ box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
1833
1907
  background: #fff;
1834
- border: 1px solid hsl(var(--color-border-default));
1835
- border-radius: 8px;
1908
+ border: 1px solid rgba(0, 0, 0, 0.2);
1836
1909
  cursor: default;
1837
- font-size: 14px;
1910
+ font-size: 12px;
1838
1911
  z-index: 1004;
1839
1912
  box-sizing: border-box;
1840
1913
  -webkit-user-select: none;
1841
1914
  -moz-user-select: none;
1842
1915
  user-select: none;
1843
1916
  outline: none;
1844
- padding: 8px;
1845
- min-width: 190px;
1846
1917
  }
1847
1918
 
1848
1919
  .condition-format-item {
1849
1920
  display: flex;
1850
1921
  justify-content: space-between;
1851
- padding: 8px;
1922
+ padding: 6px 18px;
1852
1923
  z-index: 1005;
1853
- border-radius: 4px;
1854
- cursor: pointer;
1855
1924
  }
1856
1925
 
1857
1926
  .condition-format-item:hover {
1858
- background: hsl(var(--color-bg-default-hover));
1859
- transition: all 0.2s ease-in-out;
1927
+ background: #efefef;
1860
1928
  }
1861
1929
 
1862
1930
  .condition-format-item span {
1863
- font-size: 14px;
1864
- color: hsl(var(--color-text-secondary));
1865
- font-weight: 400;
1931
+ font-size: 10px;
1932
+ color: #afafaf;
1866
1933
  }
1867
1934
 
1868
1935
  .horizontal-line {
@@ -1904,11 +1971,8 @@ html::-webkit-scrollbar-button {
1904
1971
  }
1905
1972
 
1906
1973
  .condition-rules {
1907
- /* padding: 0px 42px 34px 42px; */
1908
- font-size: 14px;
1909
- display: flex;
1910
- flex-direction: column;
1911
- gap: 16px;
1974
+ padding: 0px 42px 34px 42px;
1975
+ font-size: 12px;
1912
1976
  }
1913
1977
 
1914
1978
  .condition-rules-title {
@@ -1918,8 +1982,9 @@ html::-webkit-scrollbar-button {
1918
1982
  margin-bottom: 18px;
1919
1983
  }
1920
1984
 
1921
- .condition-rules-value {
1922
- margin-bottom: 4px;
1985
+ .conditin-rules-value {
1986
+ margin: 5px 0;
1987
+ font-weight: 600;
1923
1988
  }
1924
1989
 
1925
1990
  .condition-rules-inpbox {
@@ -1949,45 +2014,40 @@ html::-webkit-scrollbar-button {
1949
2014
  }
1950
2015
 
1951
2016
  .condition-rules-setbox {
1952
- display: flex;
1953
- flex-direction: column;
1954
- gap: 8px;
2017
+ border: 1px solid #d4d4d4;
1955
2018
  }
1956
2019
 
1957
2020
  .condition-rules-set {
1958
- width: 100%;
1959
- display: flex;
1960
- align-items: center;
1961
- gap: 8px;
2021
+ padding: 5px 10px;
1962
2022
  }
1963
2023
 
1964
2024
  .condition-rules-color {
1965
- display: flex;
1966
- align-items: center;
1967
- gap: 8px;
2025
+ height: 30px;
2026
+ line-height: 30px;
2027
+ position: relative;
1968
2028
  }
1969
2029
 
1970
2030
  .condition-rules-check {
1971
- /* float: left; */
1972
- /* margin-top: 10px; */
2031
+ float: left;
2032
+ margin-top: 10px;
1973
2033
  }
1974
2034
 
1975
2035
  .condition-rules-label {
1976
2036
  display: inline-block;
1977
- width: 70px;
2037
+ width: 80px;
1978
2038
  -webkit-user-select: none;
1979
2039
  -moz-user-select: none;
1980
2040
  user-select: none;
1981
2041
  }
1982
2042
 
1983
2043
  .condition-rules-select-color {
1984
- background: hsl(var(--color-bg-default));
1985
- width: 2.5rem;
1986
- height: 1.5rem;
1987
- border-radius: 4px;
1988
- padding: 0;
1989
- margin: 0;
1990
- cursor: pointer;
2044
+ padding: 2px;
2045
+ border: solid 1px #e5e5e5;
2046
+ background: #f5f5f5;
2047
+ position: absolute;
2048
+ top: 50%;
2049
+ left: 50%;
2050
+ transform: translate(20%, -50%);
1991
2051
  }
1992
2052
 
1993
2053
  .condition-rules-between-box {
@@ -2011,37 +2071,23 @@ html::-webkit-scrollbar-button {
2011
2071
  }
2012
2072
 
2013
2073
  .condition-rules-date {
2014
- width: 100%;
2074
+ width: 98%;
2075
+ border: none;
2076
+ line-height: 26px;
2015
2077
  }
2016
2078
 
2017
2079
  .condition-rules-select {
2018
- width: 100%;
2019
- z-index: 999999;
2080
+ width: 150px;
2081
+ height: 30px;
2020
2082
  }
2021
2083
 
2022
2084
  .condition-rules-project-box {
2023
2085
  display: flex;
2024
2086
  align-items: center;
2025
- gap: 8px;
2026
2087
  }
2027
2088
 
2028
2089
  .condition-rules-project-input {
2029
- margin: 0px;
2030
- width: -moz-fit-content;
2031
- width: fit-content;
2032
- max-width: 55px !important;
2033
- }
2034
-
2035
- /* Hide arrows for Chrome, Safari, Edge */
2036
- input[type="number"].condition-rules-project-input::-webkit-outer-spin-button,
2037
- input[type="number"].condition-rules-project-input::-webkit-inner-spin-button {
2038
- -webkit-appearance: none;
2039
- margin: 0;
2040
- }
2041
-
2042
- /* Hide arrows for Firefox */
2043
- input[type="number"].condition-rules-project-input {
2044
- -moz-appearance: textfield;
2090
+ margin: 0px 6px;
2045
2091
  }
2046
2092
 
2047
2093
  .fortune-toolbar {
@@ -2073,7 +2119,7 @@ input[type="number"].condition-rules-project-input {
2073
2119
  .fortune-toolbar-menu-divider {
2074
2120
  width: "100%";
2075
2121
  height: 1px;
2076
- margin: 8px 0px;
2122
+ margin: 2px 6px;
2077
2123
  background-color: #e0e0e0;
2078
2124
  }
2079
2125
 
@@ -2139,14 +2185,14 @@ input[type="number"].condition-rules-project-input {
2139
2185
  .fortune-toolbar-select,
2140
2186
  .fortune-toolbar-color-picker {
2141
2187
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
2142
- padding: 0.5rem;
2143
- border: 1px solid hsl(var(--color-border-default));
2144
- border-radius: 8px;
2188
+ padding: 10px;
2189
+ border-radius: 6px;
2145
2190
  background: white;
2146
- min-width: 240px;
2147
2191
  }
2148
2192
 
2149
2193
  .fortune-toolbar-select {
2194
+ padding-left: 0;
2195
+ padding-right: 0;
2150
2196
  overflow: auto;
2151
2197
  max-height: 75vh;
2152
2198
  }
@@ -2158,7 +2204,7 @@ input[type="number"].condition-rules-project-input {
2158
2204
  .fortune-toolbar-select-option {
2159
2205
  font-size: 12px;
2160
2206
  min-width: 60px;
2161
- padding: 8px;
2207
+ padding: 8px 12px;
2162
2208
  cursor: pointer;
2163
2209
  -webkit-user-select: none;
2164
2210
  -moz-user-select: none;
@@ -2166,9 +2212,7 @@ input[type="number"].condition-rules-project-input {
2166
2212
  }
2167
2213
 
2168
2214
  .fortune-toolbar-select-option:hover {
2169
- background: hsl(var(--color-bg-default-hover));
2170
- border-radius: 4px;
2171
- transition: all 0.2s ease-in-out;
2215
+ background: #efefef;
2172
2216
  }
2173
2217
 
2174
2218
  .fortune-toolbar-select::-webkit-scrollbar {
@@ -2367,6 +2411,71 @@ input[type="number"].condition-rules-project-input {
2367
2411
  background: #efefef;
2368
2412
  cursor: pointer;
2369
2413
  }
2414
+ /*函数公式查找样式*/
2415
+ #luckysheet-search-formula {
2416
+ font-size: 12px;
2417
+ }
2418
+
2419
+ #luckysheet-search-formula .inpbox {
2420
+ margin-bottom: 5px;
2421
+ }
2422
+
2423
+ #luckysheet-search-formula .inpbox div {
2424
+ display: block;
2425
+ margin-bottom: 5px;
2426
+ }
2427
+
2428
+ #luckysheet-search-formula .inpbox input {
2429
+ width: 100%;
2430
+ height: 24px;
2431
+ line-height: 24px;
2432
+ border: 1px solid #d4d4d4;
2433
+ padding: 0 10px;
2434
+ box-sizing: border-box;
2435
+ font-size: 12px;
2436
+ }
2437
+
2438
+ #luckysheet-search-formula .selbox {
2439
+ margin-bottom: 5px;
2440
+ }
2441
+
2442
+ #luckysheet-search-formula .selbox select {
2443
+ width: 50%;
2444
+ height: 24px;
2445
+ line-height: 24px;
2446
+ border: 1px solid #d4d4d4;
2447
+ box-sizing: border-box;
2448
+ font-size: 12px;
2449
+ }
2450
+
2451
+ #luckysheet-search-formula .listbox label {
2452
+ display: block;
2453
+ margin-bottom: 5px;
2454
+ }
2455
+
2456
+ #formulaTypeList {
2457
+ width: 300px;
2458
+ height: 170px;
2459
+ border: 1px solid #d4d4d4;
2460
+ overflow-y: scroll;
2461
+ }
2462
+
2463
+ .formulaList {
2464
+ width: 300px;
2465
+ height: 170px;
2466
+ border: 1px solid #d4d4d4;
2467
+ overflow-y: scroll;
2468
+ }
2469
+
2470
+ .listBox {
2471
+ padding: 5px;
2472
+ border-bottom: 1px solid #d4d4d4;
2473
+ }
2474
+
2475
+ .listBox.on {
2476
+ background-color: #8c89fe;
2477
+ color: #fff;
2478
+ }
2370
2479
 
2371
2480
  #fortune-split-column {
2372
2481
  /* position: absolute;
@@ -2966,30 +3075,30 @@ label {
2966
3075
  }
2967
3076
 
2968
3077
  .fortune-context-menu {
2969
- min-width: 240px;
2970
3078
  max-height: 100%;
2971
3079
  overflow-y: auto;
2972
3080
  border-radius: 4px;
2973
- box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
3081
+ box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
2974
3082
  transition: opacity 0.218s;
2975
3083
  background: #fff;
2976
- border: 1px solid hsl(var(--color-border-default));
3084
+ border: 1px solid #E8EBEC;
3085
+ border: 1px solid #E8EBEC;
2977
3086
  cursor: default;
2978
3087
  font-size: 13px;
2979
3088
  margin: 0;
2980
3089
  outline: none;
2981
- padding: 8px;
3090
+ padding: 6px 0;
2982
3091
  position: absolute;
2983
3092
  z-index: 1004;
2984
3093
  box-sizing: border-box;
2985
3094
  -webkit-user-select: none;
2986
3095
  -moz-user-select: none;
2987
3096
  user-select: none;
2988
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
3097
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
2989
3098
  font-size: 14px;
2990
3099
  max-width: 250px;
2991
3100
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
2992
- color: #363b3f;
3101
+ color: #363B3F;
2993
3102
  line-height: 20px;
2994
3103
  }
2995
3104
 
@@ -2997,14 +3106,8 @@ label {
2997
3106
  display: flex;
2998
3107
  align-items: center;
2999
3108
  height: 20px;
3000
- cursor: pointer;
3001
- border-radius: 4px;
3002
3109
  }
3003
3110
 
3004
- .context-item:hover {
3005
- background: hsl(var(--color-bg-default-hover));
3006
- transition: all 0.2s ease-in-out;
3007
- }
3008
3111
 
3009
3112
  .fortune-context-menu input.luckysheet-mousedown-cancel {
3010
3113
  width: 35px;
@@ -3026,19 +3129,20 @@ label {
3026
3129
  cursor: pointer;
3027
3130
  list-style: none;
3028
3131
  margin: 0;
3132
+ padding: 1px 6em 1px 20px;
3029
3133
  white-space: nowrap;
3134
+ padding-left: 8px;
3030
3135
  vertical-align: middle;
3136
+ padding-right: 24px;
3031
3137
  -webkit-user-select: none;
3032
3138
  -moz-user-select: none;
3033
3139
  user-select: none;
3034
- border-radius: 4px;
3035
3140
  }
3036
3141
 
3037
3142
  /* 右击菜单项目 hover背景色 */
3038
3143
  .luckysheet-cols-menu .luckysheet-cols-menuitem:hover,
3039
3144
  .luckysheet-cols-menu .luckysheet-cols-menuitem-hover {
3040
- background: hsl(var(--color-bg-default-hover));
3041
- transition: all 0.2s ease-in-out;
3145
+ background: #efefef;
3042
3146
  }
3043
3147
 
3044
3148
  .luckysheet-cols-menu
@@ -3049,14 +3153,11 @@ label {
3049
3153
  cursor: pointer;
3050
3154
  list-style: none;
3051
3155
  margin: 0;
3052
- padding: 8px !important;
3156
+ padding: 6px 10px 6px 10px !important;
3053
3157
  white-space: nowrap;
3054
3158
  -webkit-user-select: none;
3055
3159
  -moz-user-select: none;
3056
3160
  user-select: none;
3057
- display: flex;
3058
- align-items: center;
3059
- gap: 8px;
3060
3161
  }
3061
3162
 
3062
3163
  .fortune-filter-menu .luckysheet-cols-menuitem {
@@ -3275,10 +3376,30 @@ label {
3275
3376
  right: -18px;
3276
3377
  }
3277
3378
 
3278
- .tippy-box {
3279
- background-color: transparent !important;
3379
+ .fortune-sort-title {
3380
+ background-color: #fff;
3381
+ color: #000;
3382
+ cursor: default;
3383
+ font-size: 16px;
3384
+ font-weight: 400;
3385
+ line-height: 24px;
3386
+ margin: 0 0 16px;
3387
+ }
3388
+
3389
+ .fortune-sort-modal > div {
3390
+ margin-bottom: 10px;
3280
3391
  }
3281
- .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
3392
+
3393
+ .fortune-sort-tablec td {
3394
+ padding: 5px;
3395
+ white-space: nowrap;
3396
+ }
3397
+
3398
+ .fortune-sort-button {
3399
+ margin-top: 10px;
3400
+ margin-bottom: 25px;
3401
+ }
3402
+
3282
3403
  #fortune-change-color {
3283
3404
  min-width: 164px;
3284
3405
  height: 252px;