@fileverse-dev/fortune-react 1.0.2-mod-26 → 1.0.2-mod-27
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/dist/components/ConditionFormat/index.d.ts +1 -1
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/DataVerification/getDisplayedRangeTxt.d.ts +2 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/hooks/useDialog.d.ts +1 -1
- package/dist/index.css +120 -80
- package/dist/index.esm.css +120 -80
- package/dist/index.esm.js +659 -391
- package/dist/index.js +658 -389
- package/dist/index.umd.css +120 -80
- package/dist/index.umd.js +4477 -391
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +8 -8
- package/package.json +3 -2
package/dist/index.umd.css
CHANGED
|
@@ -1514,6 +1514,30 @@ line-height: 16px; /* 133.333% */
|
|
|
1514
1514
|
min-width: 154px;
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
|
+
/* Add scrollbar styles */
|
|
1518
|
+
#fortune-search-replace .table-container {
|
|
1519
|
+
scrollbar-width: thin;
|
|
1520
|
+
scrollbar-color: #babac0 transparent;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
#fortune-search-replace .table-container::-webkit-scrollbar {
|
|
1524
|
+
width: 8px;
|
|
1525
|
+
height: 8px;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
#fortune-search-replace .table-container::-webkit-scrollbar-track {
|
|
1529
|
+
background-color: transparent;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
#fortune-search-replace .table-container::-webkit-scrollbar-thumb {
|
|
1533
|
+
background-color: #babac0;
|
|
1534
|
+
border-radius: 16px;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
#fortune-search-replace .table-container::-webkit-scrollbar-button {
|
|
1538
|
+
display: none;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1517
1541
|
.fortune-link-modify-modal {
|
|
1518
1542
|
position: absolute;
|
|
1519
1543
|
overflow: hidden;
|
|
@@ -1829,14 +1853,11 @@ line-height: 16px; /* 133.333% */
|
|
|
1829
1853
|
}
|
|
1830
1854
|
|
|
1831
1855
|
#range-dialog {
|
|
1832
|
-
box-shadow:
|
|
1856
|
+
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
|
|
1833
1857
|
background: #fff;
|
|
1834
|
-
|
|
1835
|
-
border: 1px solid rgba(0, 0, 0, 0.333);
|
|
1858
|
+
border: 1px solid hsl(var(--color-border-default));
|
|
1836
1859
|
outline: 0;
|
|
1837
1860
|
position: absolute;
|
|
1838
|
-
color: #000;
|
|
1839
|
-
padding: 30px 42px;
|
|
1840
1861
|
z-index: 100003;
|
|
1841
1862
|
left: 50%;
|
|
1842
1863
|
top: 50%;
|
|
@@ -1902,34 +1923,41 @@ line-height: 16px; /* 133.333% */
|
|
|
1902
1923
|
|
|
1903
1924
|
.condition-format-sub-menu {
|
|
1904
1925
|
position: absolute;
|
|
1905
|
-
top: -
|
|
1906
|
-
box-shadow:
|
|
1926
|
+
top: -12px;
|
|
1927
|
+
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
|
|
1907
1928
|
background: #fff;
|
|
1908
|
-
border: 1px solid
|
|
1929
|
+
border: 1px solid hsl(var(--color-border-default));
|
|
1930
|
+
border-radius: 8px;
|
|
1909
1931
|
cursor: default;
|
|
1910
|
-
font-size:
|
|
1932
|
+
font-size: 14px;
|
|
1911
1933
|
z-index: 1004;
|
|
1912
1934
|
box-sizing: border-box;
|
|
1913
1935
|
-webkit-user-select: none;
|
|
1914
1936
|
-moz-user-select: none;
|
|
1915
1937
|
user-select: none;
|
|
1916
1938
|
outline: none;
|
|
1939
|
+
padding: 8px;
|
|
1940
|
+
min-width: 190px;
|
|
1917
1941
|
}
|
|
1918
1942
|
|
|
1919
1943
|
.condition-format-item {
|
|
1920
1944
|
display: flex;
|
|
1921
1945
|
justify-content: space-between;
|
|
1922
|
-
padding:
|
|
1946
|
+
padding: 8px;
|
|
1923
1947
|
z-index: 1005;
|
|
1948
|
+
border-radius: 4px;
|
|
1949
|
+
cursor: pointer;
|
|
1924
1950
|
}
|
|
1925
1951
|
|
|
1926
1952
|
.condition-format-item:hover {
|
|
1927
|
-
background:
|
|
1953
|
+
background: hsl(var(--color-bg-default-hover));
|
|
1954
|
+
transition: all 0.2s ease-in-out;
|
|
1928
1955
|
}
|
|
1929
1956
|
|
|
1930
1957
|
.condition-format-item span {
|
|
1931
|
-
font-size:
|
|
1932
|
-
color:
|
|
1958
|
+
font-size: 14px;
|
|
1959
|
+
color: hsl(var(--color-text-secondary));
|
|
1960
|
+
font-weight: 400;
|
|
1933
1961
|
}
|
|
1934
1962
|
|
|
1935
1963
|
.horizontal-line {
|
|
@@ -1971,8 +1999,11 @@ line-height: 16px; /* 133.333% */
|
|
|
1971
1999
|
}
|
|
1972
2000
|
|
|
1973
2001
|
.condition-rules {
|
|
1974
|
-
padding: 0px 42px 34px 42px;
|
|
1975
|
-
font-size:
|
|
2002
|
+
/* padding: 0px 42px 34px 42px; */
|
|
2003
|
+
font-size: 14px;
|
|
2004
|
+
display: flex;
|
|
2005
|
+
flex-direction: column;
|
|
2006
|
+
gap: 16px;
|
|
1976
2007
|
}
|
|
1977
2008
|
|
|
1978
2009
|
.condition-rules-title {
|
|
@@ -1982,9 +2013,8 @@ line-height: 16px; /* 133.333% */
|
|
|
1982
2013
|
margin-bottom: 18px;
|
|
1983
2014
|
}
|
|
1984
2015
|
|
|
1985
|
-
.
|
|
1986
|
-
margin:
|
|
1987
|
-
font-weight: 600;
|
|
2016
|
+
.condition-rules-value {
|
|
2017
|
+
margin-bottom: 4px;
|
|
1988
2018
|
}
|
|
1989
2019
|
|
|
1990
2020
|
.condition-rules-inpbox {
|
|
@@ -2014,40 +2044,45 @@ line-height: 16px; /* 133.333% */
|
|
|
2014
2044
|
}
|
|
2015
2045
|
|
|
2016
2046
|
.condition-rules-setbox {
|
|
2017
|
-
|
|
2047
|
+
display: flex;
|
|
2048
|
+
flex-direction: column;
|
|
2049
|
+
gap: 8px;
|
|
2018
2050
|
}
|
|
2019
2051
|
|
|
2020
2052
|
.condition-rules-set {
|
|
2021
|
-
|
|
2053
|
+
width: 100%;
|
|
2054
|
+
display: flex;
|
|
2055
|
+
align-items: center;
|
|
2056
|
+
gap: 8px;
|
|
2022
2057
|
}
|
|
2023
2058
|
|
|
2024
2059
|
.condition-rules-color {
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2060
|
+
display: flex;
|
|
2061
|
+
align-items: center;
|
|
2062
|
+
gap: 8px;
|
|
2028
2063
|
}
|
|
2029
2064
|
|
|
2030
2065
|
.condition-rules-check {
|
|
2031
|
-
float: left;
|
|
2032
|
-
margin-top: 10px;
|
|
2066
|
+
/* float: left; */
|
|
2067
|
+
/* margin-top: 10px; */
|
|
2033
2068
|
}
|
|
2034
2069
|
|
|
2035
2070
|
.condition-rules-label {
|
|
2036
2071
|
display: inline-block;
|
|
2037
|
-
width:
|
|
2072
|
+
width: 70px;
|
|
2038
2073
|
-webkit-user-select: none;
|
|
2039
2074
|
-moz-user-select: none;
|
|
2040
2075
|
user-select: none;
|
|
2041
2076
|
}
|
|
2042
2077
|
|
|
2043
2078
|
.condition-rules-select-color {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2079
|
+
background: hsl(var(--color-bg-default));
|
|
2080
|
+
width: 2.5rem;
|
|
2081
|
+
height: 1.5rem;
|
|
2082
|
+
border-radius: 4px;
|
|
2083
|
+
padding: 0;
|
|
2084
|
+
margin: 0;
|
|
2085
|
+
cursor: pointer;
|
|
2051
2086
|
}
|
|
2052
2087
|
|
|
2053
2088
|
.condition-rules-between-box {
|
|
@@ -2071,23 +2106,37 @@ line-height: 16px; /* 133.333% */
|
|
|
2071
2106
|
}
|
|
2072
2107
|
|
|
2073
2108
|
.condition-rules-date {
|
|
2074
|
-
width:
|
|
2075
|
-
border: none;
|
|
2076
|
-
line-height: 26px;
|
|
2109
|
+
width: 100%;
|
|
2077
2110
|
}
|
|
2078
2111
|
|
|
2079
2112
|
.condition-rules-select {
|
|
2080
|
-
width:
|
|
2081
|
-
|
|
2113
|
+
width: 100%;
|
|
2114
|
+
z-index: 999999;
|
|
2082
2115
|
}
|
|
2083
2116
|
|
|
2084
2117
|
.condition-rules-project-box {
|
|
2085
2118
|
display: flex;
|
|
2086
2119
|
align-items: center;
|
|
2120
|
+
gap: 8px;
|
|
2087
2121
|
}
|
|
2088
2122
|
|
|
2089
2123
|
.condition-rules-project-input {
|
|
2090
|
-
margin: 0px
|
|
2124
|
+
margin: 0px;
|
|
2125
|
+
width: -moz-fit-content;
|
|
2126
|
+
width: fit-content;
|
|
2127
|
+
max-width: 55px !important;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
/* Hide arrows for Chrome, Safari, Edge */
|
|
2131
|
+
input[type="number"].condition-rules-project-input::-webkit-outer-spin-button,
|
|
2132
|
+
input[type="number"].condition-rules-project-input::-webkit-inner-spin-button {
|
|
2133
|
+
-webkit-appearance: none;
|
|
2134
|
+
margin: 0;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/* Hide arrows for Firefox */
|
|
2138
|
+
input[type="number"].condition-rules-project-input {
|
|
2139
|
+
-moz-appearance: textfield;
|
|
2091
2140
|
}
|
|
2092
2141
|
|
|
2093
2142
|
.fortune-toolbar {
|
|
@@ -2119,7 +2168,7 @@ line-height: 16px; /* 133.333% */
|
|
|
2119
2168
|
.fortune-toolbar-menu-divider {
|
|
2120
2169
|
width: "100%";
|
|
2121
2170
|
height: 1px;
|
|
2122
|
-
margin:
|
|
2171
|
+
margin: 8px 0px;
|
|
2123
2172
|
background-color: #e0e0e0;
|
|
2124
2173
|
}
|
|
2125
2174
|
|
|
@@ -2185,14 +2234,14 @@ line-height: 16px; /* 133.333% */
|
|
|
2185
2234
|
.fortune-toolbar-select,
|
|
2186
2235
|
.fortune-toolbar-color-picker {
|
|
2187
2236
|
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
|
|
2188
|
-
padding:
|
|
2189
|
-
border
|
|
2237
|
+
padding: 0.5rem;
|
|
2238
|
+
border: 1px solid hsl(var(--color-border-default));
|
|
2239
|
+
border-radius: 8px;
|
|
2190
2240
|
background: white;
|
|
2241
|
+
min-width: 240px;
|
|
2191
2242
|
}
|
|
2192
2243
|
|
|
2193
2244
|
.fortune-toolbar-select {
|
|
2194
|
-
padding-left: 0;
|
|
2195
|
-
padding-right: 0;
|
|
2196
2245
|
overflow: auto;
|
|
2197
2246
|
max-height: 75vh;
|
|
2198
2247
|
}
|
|
@@ -2204,7 +2253,7 @@ line-height: 16px; /* 133.333% */
|
|
|
2204
2253
|
.fortune-toolbar-select-option {
|
|
2205
2254
|
font-size: 12px;
|
|
2206
2255
|
min-width: 60px;
|
|
2207
|
-
padding: 8px
|
|
2256
|
+
padding: 8px;
|
|
2208
2257
|
cursor: pointer;
|
|
2209
2258
|
-webkit-user-select: none;
|
|
2210
2259
|
-moz-user-select: none;
|
|
@@ -2212,7 +2261,9 @@ line-height: 16px; /* 133.333% */
|
|
|
2212
2261
|
}
|
|
2213
2262
|
|
|
2214
2263
|
.fortune-toolbar-select-option:hover {
|
|
2215
|
-
background:
|
|
2264
|
+
background: hsl(var(--color-bg-default-hover));
|
|
2265
|
+
border-radius: 4px;
|
|
2266
|
+
transition: all 0.2s ease-in-out;
|
|
2216
2267
|
}
|
|
2217
2268
|
|
|
2218
2269
|
.fortune-toolbar-select::-webkit-scrollbar {
|
|
@@ -2411,6 +2462,7 @@ line-height: 16px; /* 133.333% */
|
|
|
2411
2462
|
background: #efefef;
|
|
2412
2463
|
cursor: pointer;
|
|
2413
2464
|
}
|
|
2465
|
+
|
|
2414
2466
|
/*函数公式查找样式*/
|
|
2415
2467
|
#luckysheet-search-formula {
|
|
2416
2468
|
font-size: 12px;
|
|
@@ -3075,30 +3127,30 @@ label {
|
|
|
3075
3127
|
}
|
|
3076
3128
|
|
|
3077
3129
|
.fortune-context-menu {
|
|
3130
|
+
min-width: 240px;
|
|
3078
3131
|
max-height: 100%;
|
|
3079
3132
|
overflow-y: auto;
|
|
3080
3133
|
border-radius: 4px;
|
|
3081
|
-
box-shadow: 2px 2px
|
|
3134
|
+
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
|
|
3082
3135
|
transition: opacity 0.218s;
|
|
3083
3136
|
background: #fff;
|
|
3084
|
-
border: 1px solid
|
|
3085
|
-
border: 1px solid #E8EBEC;
|
|
3137
|
+
border: 1px solid hsl(var(--color-border-default));
|
|
3086
3138
|
cursor: default;
|
|
3087
3139
|
font-size: 13px;
|
|
3088
3140
|
margin: 0;
|
|
3089
3141
|
outline: none;
|
|
3090
|
-
padding:
|
|
3142
|
+
padding: 8px;
|
|
3091
3143
|
position: absolute;
|
|
3092
3144
|
z-index: 1004;
|
|
3093
3145
|
box-sizing: border-box;
|
|
3094
3146
|
-webkit-user-select: none;
|
|
3095
3147
|
-moz-user-select: none;
|
|
3096
3148
|
user-select: none;
|
|
3097
|
-
font-family:
|
|
3149
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
3098
3150
|
font-size: 14px;
|
|
3099
3151
|
max-width: 250px;
|
|
3100
3152
|
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
|
|
3101
|
-
color: #
|
|
3153
|
+
color: #363b3f;
|
|
3102
3154
|
line-height: 20px;
|
|
3103
3155
|
}
|
|
3104
3156
|
|
|
@@ -3106,8 +3158,14 @@ label {
|
|
|
3106
3158
|
display: flex;
|
|
3107
3159
|
align-items: center;
|
|
3108
3160
|
height: 20px;
|
|
3161
|
+
cursor: pointer;
|
|
3162
|
+
border-radius: 4px;
|
|
3109
3163
|
}
|
|
3110
3164
|
|
|
3165
|
+
.context-item:hover {
|
|
3166
|
+
background: hsl(var(--color-bg-default-hover));
|
|
3167
|
+
transition: all 0.2s ease-in-out;
|
|
3168
|
+
}
|
|
3111
3169
|
|
|
3112
3170
|
.fortune-context-menu input.luckysheet-mousedown-cancel {
|
|
3113
3171
|
width: 35px;
|
|
@@ -3129,20 +3187,19 @@ label {
|
|
|
3129
3187
|
cursor: pointer;
|
|
3130
3188
|
list-style: none;
|
|
3131
3189
|
margin: 0;
|
|
3132
|
-
padding: 1px 6em 1px 20px;
|
|
3133
3190
|
white-space: nowrap;
|
|
3134
|
-
padding-left: 8px;
|
|
3135
3191
|
vertical-align: middle;
|
|
3136
|
-
padding-right: 24px;
|
|
3137
3192
|
-webkit-user-select: none;
|
|
3138
3193
|
-moz-user-select: none;
|
|
3139
3194
|
user-select: none;
|
|
3195
|
+
border-radius: 4px;
|
|
3140
3196
|
}
|
|
3141
3197
|
|
|
3142
3198
|
/* 右击菜单项目 hover背景色 */
|
|
3143
3199
|
.luckysheet-cols-menu .luckysheet-cols-menuitem:hover,
|
|
3144
3200
|
.luckysheet-cols-menu .luckysheet-cols-menuitem-hover {
|
|
3145
|
-
background:
|
|
3201
|
+
background: hsl(var(--color-bg-default-hover));
|
|
3202
|
+
transition: all 0.2s ease-in-out;
|
|
3146
3203
|
}
|
|
3147
3204
|
|
|
3148
3205
|
.luckysheet-cols-menu
|
|
@@ -3153,11 +3210,14 @@ label {
|
|
|
3153
3210
|
cursor: pointer;
|
|
3154
3211
|
list-style: none;
|
|
3155
3212
|
margin: 0;
|
|
3156
|
-
padding:
|
|
3213
|
+
padding: 8px !important;
|
|
3157
3214
|
white-space: nowrap;
|
|
3158
3215
|
-webkit-user-select: none;
|
|
3159
3216
|
-moz-user-select: none;
|
|
3160
3217
|
user-select: none;
|
|
3218
|
+
display: flex;
|
|
3219
|
+
align-items: center;
|
|
3220
|
+
gap: 8px;
|
|
3161
3221
|
}
|
|
3162
3222
|
|
|
3163
3223
|
.fortune-filter-menu .luckysheet-cols-menuitem {
|
|
@@ -3376,30 +3436,10 @@ label {
|
|
|
3376
3436
|
right: -18px;
|
|
3377
3437
|
}
|
|
3378
3438
|
|
|
3379
|
-
.
|
|
3380
|
-
background-color:
|
|
3381
|
-
color: #000;
|
|
3382
|
-
cursor: default;
|
|
3383
|
-
font-size: 16px;
|
|
3384
|
-
font-weight: 400;
|
|
3385
|
-
line-height: 24px;
|
|
3386
|
-
margin: 0 0 16px;
|
|
3439
|
+
.tippy-box {
|
|
3440
|
+
background-color: transparent !important;
|
|
3387
3441
|
}
|
|
3388
|
-
|
|
3389
|
-
.fortune-sort-modal > div {
|
|
3390
|
-
margin-bottom: 10px;
|
|
3391
|
-
}
|
|
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
|
-
|
|
3442
|
+
.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}
|
|
3403
3443
|
#fortune-change-color {
|
|
3404
3444
|
min-width: 164px;
|
|
3405
3445
|
height: 252px;
|