@cloudtower/eagle 0.22.37 → 0.22.40
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/esm/index.js +86 -30
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +17 -3
- package/dist/spec/type.d.ts +2 -0
- package/dist/style.css +230 -180
- package/dist/umd/index.js +83 -27
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/style.css
CHANGED
|
@@ -1845,13 +1845,66 @@ input[type=submit] {
|
|
|
1845
1845
|
padding: 0;
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
|
-
.
|
|
1849
|
-
|
|
1848
|
+
.fde5mpd {
|
|
1849
|
+
width: 100%;
|
|
1850
|
+
height: 100%;
|
|
1851
|
+
min-height: 124px;
|
|
1852
|
+
display: flex;
|
|
1853
|
+
flex-direction: column;
|
|
1854
|
+
justify-content: center;
|
|
1855
|
+
align-items: center;
|
|
1856
|
+
}
|
|
1857
|
+
.fde5mpd .error-text {
|
|
1858
|
+
color: rgba(10, 37, 85, 0.6);
|
|
1859
|
+
margin-bottom: 16px;
|
|
1860
|
+
font-size: 18px;
|
|
1850
1861
|
}
|
|
1851
1862
|
|
|
1852
|
-
.
|
|
1853
|
-
|
|
1854
|
-
|
|
1863
|
+
.bpq0js6 {
|
|
1864
|
+
padding: 4px 11px;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
.b15sn34c {
|
|
1868
|
+
white-space: nowrap;
|
|
1869
|
+
filter: drop-shadow(0px 2px 8px rgba(0, 136, 255, 0.1));
|
|
1870
|
+
}
|
|
1871
|
+
.b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous) {
|
|
1872
|
+
--color: #0080ff;
|
|
1873
|
+
}
|
|
1874
|
+
.b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous)[disabled], .b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous):hover[disabled] {
|
|
1875
|
+
--color: #0080ff;
|
|
1876
|
+
}
|
|
1877
|
+
.b15sn34c > .ant-btn:not(:only-child) + .ant-btn {
|
|
1878
|
+
margin-left: 1px;
|
|
1879
|
+
}
|
|
1880
|
+
.b15sn34c > .ant-btn:not(:only-child):first-child {
|
|
1881
|
+
border-top-right-radius: 0;
|
|
1882
|
+
border-bottom-right-radius: 0;
|
|
1883
|
+
}
|
|
1884
|
+
.b15sn34c > .ant-btn:not(:only-child):last-child {
|
|
1885
|
+
border-top-left-radius: 0;
|
|
1886
|
+
border-bottom-left-radius: 0;
|
|
1887
|
+
}
|
|
1888
|
+
.b15sn34c > .ant-btn:not(:only-child):not(:first-child, :last-child) {
|
|
1889
|
+
border-radius: unset;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
.i1mrf09m {
|
|
1893
|
+
display: inline-flex;
|
|
1894
|
+
align-items: center;
|
|
1895
|
+
}
|
|
1896
|
+
.i1mrf09m .icon-inner {
|
|
1897
|
+
display: inline-flex;
|
|
1898
|
+
align-items: center;
|
|
1899
|
+
justify-content: center;
|
|
1900
|
+
}
|
|
1901
|
+
.i1mrf09m .icon-inner + span,
|
|
1902
|
+
.i1mrf09m span + .icon-inner.suffix {
|
|
1903
|
+
margin-left: 4px;
|
|
1904
|
+
}
|
|
1905
|
+
.i1mrf09m.is-rotate img,
|
|
1906
|
+
.i1mrf09m.is-rotate svg {
|
|
1907
|
+
animation: rotate 680ms linear infinite;
|
|
1855
1908
|
}
|
|
1856
1909
|
|
|
1857
1910
|
.iap75of {
|
|
@@ -1867,74 +1920,70 @@ input[type=submit] {
|
|
|
1867
1920
|
margin-right: 4px;
|
|
1868
1921
|
}
|
|
1869
1922
|
|
|
1870
|
-
.
|
|
1871
|
-
|
|
1872
|
-
height: 100%;
|
|
1873
|
-
min-height: 124px;
|
|
1874
|
-
display: flex;
|
|
1875
|
-
flex-direction: column;
|
|
1876
|
-
justify-content: center;
|
|
1877
|
-
align-items: center;
|
|
1878
|
-
}
|
|
1879
|
-
.fde5mpd .error-text {
|
|
1880
|
-
color: rgba(10, 37, 85, 0.6);
|
|
1881
|
-
margin-bottom: 16px;
|
|
1882
|
-
font-size: 18px;
|
|
1923
|
+
.obf05yr {
|
|
1924
|
+
display: inline-block;
|
|
1883
1925
|
}
|
|
1884
1926
|
|
|
1885
|
-
.
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
background: rgba(172, 186, 211, 0.6);
|
|
1889
|
-
overflow: hidden;
|
|
1890
|
-
}
|
|
1891
|
-
.s34f1qb.ant-switch:focus {
|
|
1892
|
-
box-shadow: 0 0 0 2px rgba(225, 230, 241, 0.6);
|
|
1893
|
-
}
|
|
1894
|
-
.s34f1qb.ant-switch-small {
|
|
1895
|
-
min-width: 26px;
|
|
1896
|
-
height: 16px;
|
|
1927
|
+
.hsms1n6 {
|
|
1928
|
+
visibility: hidden;
|
|
1929
|
+
position: absolute;
|
|
1897
1930
|
}
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1931
|
+
|
|
1932
|
+
.p12gwtiw {
|
|
1933
|
+
display: flex;
|
|
1934
|
+
justify-content: space-between;
|
|
1935
|
+
align-items: center;
|
|
1936
|
+
padding: 10px 0;
|
|
1937
|
+
color: rgba(44, 56, 82, 0.6);
|
|
1938
|
+
font-size: 12px;
|
|
1939
|
+
line-height: 24px;
|
|
1901
1940
|
}
|
|
1902
|
-
.
|
|
1903
|
-
|
|
1904
|
-
width: 20px;
|
|
1941
|
+
.p12gwtiw .pagination-left {
|
|
1942
|
+
padding: 2px 8px;
|
|
1905
1943
|
}
|
|
1906
|
-
.
|
|
1907
|
-
|
|
1908
|
-
|
|
1944
|
+
.p12gwtiw .dropdown-trigger {
|
|
1945
|
+
display: flex;
|
|
1946
|
+
align-items: center;
|
|
1947
|
+
border-radius: 6px;
|
|
1948
|
+
cursor: pointer;
|
|
1949
|
+
transition: all 0.3s ease;
|
|
1909
1950
|
}
|
|
1910
|
-
.
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
top: 1px;
|
|
1914
|
-
left: 1px;
|
|
1951
|
+
.p12gwtiw .dropdown-trigger:hover {
|
|
1952
|
+
background: rgba(211, 218, 235, 0.6);
|
|
1953
|
+
color: #0080ff;
|
|
1915
1954
|
}
|
|
1916
|
-
.
|
|
1917
|
-
|
|
1918
|
-
width: 28px;
|
|
1955
|
+
.p12gwtiw .dropdown-trigger .icon-inner {
|
|
1956
|
+
margin-left: 4px;
|
|
1919
1957
|
}
|
|
1920
|
-
.
|
|
1921
|
-
|
|
1958
|
+
.p12gwtiw .pagination-right {
|
|
1959
|
+
display: flex;
|
|
1960
|
+
align-items: center;
|
|
1961
|
+
color: #0080ff;
|
|
1962
|
+
font-weight: bold;
|
|
1922
1963
|
}
|
|
1923
|
-
.
|
|
1924
|
-
|
|
1964
|
+
.p12gwtiw .pagination-right .icon-inner {
|
|
1965
|
+
margin-left: 4px;
|
|
1925
1966
|
}
|
|
1926
|
-
.
|
|
1927
|
-
|
|
1967
|
+
.p12gwtiw .pagination-right .prev-btn,
|
|
1968
|
+
.p12gwtiw .pagination-right .next-btn {
|
|
1969
|
+
padding: 0 8px;
|
|
1928
1970
|
}
|
|
1929
|
-
.
|
|
1930
|
-
|
|
1971
|
+
.p12gwtiw .pagination-right .prev-btn > span,
|
|
1972
|
+
.p12gwtiw .pagination-right .next-btn > span {
|
|
1973
|
+
color: #0080ff;
|
|
1931
1974
|
}
|
|
1932
|
-
.
|
|
1933
|
-
|
|
1975
|
+
.p12gwtiw .pagination-right .next-btn .icon-inner {
|
|
1976
|
+
transform: rotate(180deg);
|
|
1934
1977
|
}
|
|
1935
1978
|
|
|
1936
|
-
.
|
|
1937
|
-
|
|
1979
|
+
.d1bnu0in.ant-dropdown .ant-dropdown-menu {
|
|
1980
|
+
max-height: calc(100vh - 128px);
|
|
1981
|
+
overflow-y: auto;
|
|
1982
|
+
}
|
|
1983
|
+
.d1bnu0in.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item {
|
|
1984
|
+
padding: 4px 20px;
|
|
1985
|
+
font-size: 12px;
|
|
1986
|
+
line-height: 18px;
|
|
1938
1987
|
}
|
|
1939
1988
|
|
|
1940
1989
|
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal {
|
|
@@ -2020,92 +2069,6 @@ input[type=submit] {
|
|
|
2020
2069
|
padding: 0;
|
|
2021
2070
|
}
|
|
2022
2071
|
|
|
2023
|
-
.bpq0js6 {
|
|
2024
|
-
padding: 4px 11px;
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
.b15sn34c {
|
|
2028
|
-
white-space: nowrap;
|
|
2029
|
-
filter: drop-shadow(0px 2px 8px rgba(0, 136, 255, 0.1));
|
|
2030
|
-
}
|
|
2031
|
-
.b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous) {
|
|
2032
|
-
--color: #0080ff;
|
|
2033
|
-
}
|
|
2034
|
-
.b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous)[disabled], .b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous):hover[disabled] {
|
|
2035
|
-
--color: #0080ff;
|
|
2036
|
-
}
|
|
2037
|
-
.b15sn34c > .ant-btn:not(:only-child) + .ant-btn {
|
|
2038
|
-
margin-left: 1px;
|
|
2039
|
-
}
|
|
2040
|
-
.b15sn34c > .ant-btn:not(:only-child):first-child {
|
|
2041
|
-
border-top-right-radius: 0;
|
|
2042
|
-
border-bottom-right-radius: 0;
|
|
2043
|
-
}
|
|
2044
|
-
.b15sn34c > .ant-btn:not(:only-child):last-child {
|
|
2045
|
-
border-top-left-radius: 0;
|
|
2046
|
-
border-bottom-left-radius: 0;
|
|
2047
|
-
}
|
|
2048
|
-
.b15sn34c > .ant-btn:not(:only-child):not(:first-child, :last-child) {
|
|
2049
|
-
border-radius: unset;
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
.p12gwtiw {
|
|
2053
|
-
display: flex;
|
|
2054
|
-
justify-content: space-between;
|
|
2055
|
-
align-items: center;
|
|
2056
|
-
padding: 10px 0;
|
|
2057
|
-
color: rgba(44, 56, 82, 0.6);
|
|
2058
|
-
font-size: 12px;
|
|
2059
|
-
line-height: 24px;
|
|
2060
|
-
}
|
|
2061
|
-
.p12gwtiw .pagination-left {
|
|
2062
|
-
padding: 2px 8px;
|
|
2063
|
-
}
|
|
2064
|
-
.p12gwtiw .dropdown-trigger {
|
|
2065
|
-
display: flex;
|
|
2066
|
-
align-items: center;
|
|
2067
|
-
border-radius: 6px;
|
|
2068
|
-
cursor: pointer;
|
|
2069
|
-
transition: all 0.3s ease;
|
|
2070
|
-
}
|
|
2071
|
-
.p12gwtiw .dropdown-trigger:hover {
|
|
2072
|
-
background: rgba(211, 218, 235, 0.6);
|
|
2073
|
-
color: #0080ff;
|
|
2074
|
-
}
|
|
2075
|
-
.p12gwtiw .dropdown-trigger .icon-inner {
|
|
2076
|
-
margin-left: 4px;
|
|
2077
|
-
}
|
|
2078
|
-
.p12gwtiw .pagination-right {
|
|
2079
|
-
display: flex;
|
|
2080
|
-
align-items: center;
|
|
2081
|
-
color: #0080ff;
|
|
2082
|
-
font-weight: bold;
|
|
2083
|
-
}
|
|
2084
|
-
.p12gwtiw .pagination-right .icon-inner {
|
|
2085
|
-
margin-left: 4px;
|
|
2086
|
-
}
|
|
2087
|
-
.p12gwtiw .pagination-right .prev-btn,
|
|
2088
|
-
.p12gwtiw .pagination-right .next-btn {
|
|
2089
|
-
padding: 0 8px;
|
|
2090
|
-
}
|
|
2091
|
-
.p12gwtiw .pagination-right .prev-btn > span,
|
|
2092
|
-
.p12gwtiw .pagination-right .next-btn > span {
|
|
2093
|
-
color: #0080ff;
|
|
2094
|
-
}
|
|
2095
|
-
.p12gwtiw .pagination-right .next-btn .icon-inner {
|
|
2096
|
-
transform: rotate(180deg);
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
.d1bnu0in.ant-dropdown .ant-dropdown-menu {
|
|
2100
|
-
max-height: calc(100vh - 128px);
|
|
2101
|
-
overflow-y: auto;
|
|
2102
|
-
}
|
|
2103
|
-
.d1bnu0in.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item {
|
|
2104
|
-
padding: 4px 20px;
|
|
2105
|
-
font-size: 12px;
|
|
2106
|
-
line-height: 18px;
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
2072
|
.rxbeqvl.ant-radio-wrapper {
|
|
2110
2073
|
display: inline-flex;
|
|
2111
2074
|
align-items: baseline;
|
|
@@ -2248,22 +2211,59 @@ input[type=submit] {
|
|
|
2248
2211
|
width: 36px;
|
|
2249
2212
|
}
|
|
2250
2213
|
|
|
2251
|
-
.
|
|
2252
|
-
|
|
2253
|
-
|
|
2214
|
+
.s34f1qb.ant-switch {
|
|
2215
|
+
min-width: 40px;
|
|
2216
|
+
height: 24px;
|
|
2217
|
+
background: rgba(172, 186, 211, 0.6);
|
|
2218
|
+
overflow: hidden;
|
|
2254
2219
|
}
|
|
2255
|
-
.
|
|
2256
|
-
|
|
2257
|
-
align-items: center;
|
|
2258
|
-
justify-content: center;
|
|
2220
|
+
.s34f1qb.ant-switch:focus {
|
|
2221
|
+
box-shadow: 0 0 0 2px rgba(225, 230, 241, 0.6);
|
|
2259
2222
|
}
|
|
2260
|
-
.
|
|
2261
|
-
|
|
2262
|
-
|
|
2223
|
+
.s34f1qb.ant-switch-small {
|
|
2224
|
+
min-width: 26px;
|
|
2225
|
+
height: 16px;
|
|
2263
2226
|
}
|
|
2264
|
-
.
|
|
2265
|
-
|
|
2266
|
-
|
|
2227
|
+
.s34f1qb.ant-switch-large {
|
|
2228
|
+
min-width: 52px;
|
|
2229
|
+
height: 32px;
|
|
2230
|
+
}
|
|
2231
|
+
.s34f1qb.ant-switch .ant-switch-handle {
|
|
2232
|
+
height: 20px;
|
|
2233
|
+
width: 20px;
|
|
2234
|
+
}
|
|
2235
|
+
.s34f1qb.ant-switch .ant-switch-handle::before {
|
|
2236
|
+
border-radius: 10px;
|
|
2237
|
+
transition-delay: 120ms;
|
|
2238
|
+
}
|
|
2239
|
+
.s34f1qb.ant-switch-small .ant-switch-handle {
|
|
2240
|
+
height: 14px;
|
|
2241
|
+
width: 14px;
|
|
2242
|
+
top: 1px;
|
|
2243
|
+
left: 1px;
|
|
2244
|
+
}
|
|
2245
|
+
.s34f1qb.ant-switch-large .ant-switch-handle {
|
|
2246
|
+
height: 28px;
|
|
2247
|
+
width: 28px;
|
|
2248
|
+
}
|
|
2249
|
+
.s34f1qb.ant-switch-large .ant-switch-handle::before {
|
|
2250
|
+
border-radius: 14px;
|
|
2251
|
+
}
|
|
2252
|
+
.s34f1qb.ant-switch-checked {
|
|
2253
|
+
background-color: #00ba5d;
|
|
2254
|
+
}
|
|
2255
|
+
.s34f1qb.ant-switch-checked .ant-switch-handle {
|
|
2256
|
+
left: calc(100% - 20px - 2px);
|
|
2257
|
+
}
|
|
2258
|
+
.s34f1qb.ant-switch-small.ant-switch-checked .ant-switch-handle {
|
|
2259
|
+
left: calc(100% - 14px - 1px);
|
|
2260
|
+
}
|
|
2261
|
+
.s34f1qb.ant-switch-large.ant-switch-checked .ant-switch-handle {
|
|
2262
|
+
left: calc(100% - 28px - 2px);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
.c1to9vb9 {
|
|
2266
|
+
margin-left: 5px;
|
|
2267
2267
|
}
|
|
2268
2268
|
|
|
2269
2269
|
.cz04yix {
|
|
@@ -3298,19 +3298,69 @@ input.rrg1fkn.ant-input {
|
|
|
3298
3298
|
width: 430px !important;
|
|
3299
3299
|
}
|
|
3300
3300
|
|
|
3301
|
-
.
|
|
3301
|
+
.da3mx0o .ant-select-item-group {
|
|
3302
|
+
padding: 8px 16px;
|
|
3303
|
+
line-height: 18px;
|
|
3304
|
+
border-top: 1px solid rgba(211, 218, 235, 0.6);
|
|
3305
|
+
height: 34px;
|
|
3306
|
+
min-height: 34px;
|
|
3307
|
+
box-sizing: border-box;
|
|
3308
|
+
margin-top: 8px;
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
.onr9gzt {
|
|
3302
3312
|
display: flex;
|
|
3303
3313
|
flex-direction: column;
|
|
3314
|
+
margin: 1px 8px;
|
|
3315
|
+
padding: 8px;
|
|
3316
|
+
border-radius: 4px;
|
|
3317
|
+
}
|
|
3318
|
+
.onr9gzt .selected-icon {
|
|
3319
|
+
display: none;
|
|
3320
|
+
}
|
|
3321
|
+
.onr9gzt.ant-select-item-option-grouped {
|
|
3322
|
+
padding-left: 8px;
|
|
3323
|
+
}
|
|
3324
|
+
.onr9gzt.ant-select-item-option-selected {
|
|
3325
|
+
background-color: white;
|
|
3326
|
+
}
|
|
3327
|
+
.onr9gzt.ant-select-item-option-selected .timezone-title {
|
|
3328
|
+
color: #0080ff;
|
|
3329
|
+
}
|
|
3330
|
+
.onr9gzt.ant-select-item-option-selected .selected-icon {
|
|
3331
|
+
display: block;
|
|
3332
|
+
}
|
|
3333
|
+
.onr9gzt.ant-select-item-option-active {
|
|
3334
|
+
background: rgba(0, 136, 255, 0.16);
|
|
3335
|
+
}
|
|
3336
|
+
.onr9gzt.ant-select-item-option-active .timezone-title {
|
|
3337
|
+
color: #0080ff;
|
|
3338
|
+
}
|
|
3339
|
+
.onr9gzt.ant-select-item-option-active .timezone-tag {
|
|
3340
|
+
background: rgba(0, 136, 255, 0.1);
|
|
3341
|
+
color: #0080ff;
|
|
3304
3342
|
}
|
|
3305
3343
|
|
|
3306
|
-
.
|
|
3344
|
+
.oiy0apc {
|
|
3307
3345
|
display: flex;
|
|
3308
3346
|
justify-content: space-between;
|
|
3347
|
+
height: 20px;
|
|
3348
|
+
line-height: 20px;
|
|
3309
3349
|
}
|
|
3310
3350
|
|
|
3311
|
-
.
|
|
3351
|
+
.of4y382 {
|
|
3312
3352
|
display: flex;
|
|
3353
|
+
justify-content: space-between;
|
|
3313
3354
|
color: rgba(44, 56, 82, 0.6);
|
|
3355
|
+
height: 18px;
|
|
3356
|
+
line-height: 18px;
|
|
3357
|
+
margin-top: 2px;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
.t19903l9 {
|
|
3361
|
+
border: none;
|
|
3362
|
+
margin-right: 0;
|
|
3363
|
+
background: rgba(225, 230, 241, 0.6);
|
|
3314
3364
|
}
|
|
3315
3365
|
|
|
3316
3366
|
.i1e4sgug {
|
|
@@ -4345,6 +4395,25 @@ input.rrg1fkn.ant-input {
|
|
|
4345
4395
|
margin-right: 8px;
|
|
4346
4396
|
}
|
|
4347
4397
|
|
|
4398
|
+
.feau332.ant-form-item {
|
|
4399
|
+
margin-bottom: 0;
|
|
4400
|
+
}
|
|
4401
|
+
.feau332 .ant-form-item-explain {
|
|
4402
|
+
display: none;
|
|
4403
|
+
min-height: 18px;
|
|
4404
|
+
margin-top: 5px;
|
|
4405
|
+
font-family: "Inter";
|
|
4406
|
+
font-weight: 400;
|
|
4407
|
+
font-size: 12px;
|
|
4408
|
+
line-height: 18px;
|
|
4409
|
+
}
|
|
4410
|
+
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) {
|
|
4411
|
+
white-space: pre-wrap;
|
|
4412
|
+
}
|
|
4413
|
+
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) .ant-form-item-explain {
|
|
4414
|
+
display: block;
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4348
4417
|
.a6dbbkm .ant-input-number-handler-wrap {
|
|
4349
4418
|
display: var(--a6dbbkm-0);
|
|
4350
4419
|
}
|
|
@@ -4374,23 +4443,4 @@ input.rrg1fkn.ant-input {
|
|
|
4374
4443
|
margin: 0;
|
|
4375
4444
|
height: auto;
|
|
4376
4445
|
font-size: inherit;
|
|
4377
|
-
}
|
|
4378
|
-
|
|
4379
|
-
.feau332.ant-form-item {
|
|
4380
|
-
margin-bottom: 0;
|
|
4381
|
-
}
|
|
4382
|
-
.feau332 .ant-form-item-explain {
|
|
4383
|
-
display: none;
|
|
4384
|
-
min-height: 18px;
|
|
4385
|
-
margin-top: 5px;
|
|
4386
|
-
font-family: "Inter";
|
|
4387
|
-
font-weight: 400;
|
|
4388
|
-
font-size: 12px;
|
|
4389
|
-
line-height: 18px;
|
|
4390
|
-
}
|
|
4391
|
-
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) {
|
|
4392
|
-
white-space: pre-wrap;
|
|
4393
|
-
}
|
|
4394
|
-
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) .ant-form-item-explain {
|
|
4395
|
-
display: block;
|
|
4396
4446
|
}
|
package/dist/umd/index.js
CHANGED
|
@@ -4313,7 +4313,7 @@
|
|
|
4313
4313
|
}
|
|
4314
4314
|
);
|
|
4315
4315
|
|
|
4316
|
-
const
|
|
4316
|
+
const allTimeZones = _.uniqBy(TimeZones.reduce((sum, zone) => {
|
|
4317
4317
|
const utcZones = zone.utc.map(utc => {
|
|
4318
4318
|
return {
|
|
4319
4319
|
abbr: zone.abbr,
|
|
@@ -4323,31 +4323,51 @@
|
|
|
4323
4323
|
};
|
|
4324
4324
|
});
|
|
4325
4325
|
return sum.concat(utcZones);
|
|
4326
|
-
}, []), "value")
|
|
4326
|
+
}, []), "value");
|
|
4327
|
+
const timeZoneGroups = (() => {
|
|
4328
|
+
const groupedTimeZones = _.groupBy(allTimeZones, tz => tz.value.split("/")[0]);
|
|
4329
|
+
delete groupedTimeZones["CST6CDT"];
|
|
4330
|
+
delete groupedTimeZones["MST7MDT"];
|
|
4331
|
+
delete groupedTimeZones["PST8PDT"];
|
|
4332
|
+
delete groupedTimeZones["Etc"];
|
|
4333
|
+
return _.sortBy(_.toPairs(groupedTimeZones).map(([key, tzs]) => {
|
|
4334
|
+
return [key, _.sortBy(tzs, "value")];
|
|
4335
|
+
}), "0");
|
|
4336
|
+
})();
|
|
4327
4337
|
const SelectStyle = "s1fc623g";
|
|
4328
|
-
const
|
|
4329
|
-
const
|
|
4330
|
-
const
|
|
4338
|
+
const DropdownStyle = "da3mx0o";
|
|
4339
|
+
const OptionWrapperStyle = core.cx("onr9gzt", Typo.Label.l3_regular);
|
|
4340
|
+
const OptionFirstLineStyle = core.cx("oiy0apc", Typo.Label.l3_regular);
|
|
4341
|
+
const OptionSecondLineStyle = core.cx("of4y382", Typo.Label.l4_regular);
|
|
4342
|
+
const TagStyle = "t19903l9";
|
|
4331
4343
|
const BrowserTimeValue = "browser_time_zone";
|
|
4344
|
+
const DefaultTimeValue = "default_time_zone";
|
|
4332
4345
|
const browserTzName = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4333
|
-
const browserTz =
|
|
4346
|
+
const browserTz = allTimeZones.find(tz => tz.value === browserTzName) || allTimeZones[0];
|
|
4334
4347
|
const TimeZoneSelect = props => {
|
|
4335
4348
|
const {
|
|
4336
4349
|
value,
|
|
4337
4350
|
onChange,
|
|
4338
4351
|
disabled,
|
|
4339
4352
|
defaultUseBrowserTime,
|
|
4340
|
-
className
|
|
4353
|
+
className,
|
|
4354
|
+
placeholder,
|
|
4355
|
+
defaultOptionValue
|
|
4341
4356
|
} = props;
|
|
4342
4357
|
const [innerValue, setInnerValue] = React.useState(value);
|
|
4358
|
+
const defaultTz = React.useMemo(() => {
|
|
4359
|
+
return allTimeZones.find(tz => tz.value === defaultOptionValue);
|
|
4360
|
+
}, [defaultOptionValue]);
|
|
4343
4361
|
const _onChange = React.useCallback(val => {
|
|
4344
4362
|
setInnerValue(val);
|
|
4345
4363
|
if (val === BrowserTimeValue) {
|
|
4346
4364
|
onChange(browserTzName);
|
|
4365
|
+
} else if (val === DefaultTimeValue && defaultTz) {
|
|
4366
|
+
onChange(defaultTz == null ? void 0 : defaultTz.value);
|
|
4347
4367
|
} else {
|
|
4348
4368
|
onChange(val);
|
|
4349
4369
|
}
|
|
4350
|
-
}, [onChange]);
|
|
4370
|
+
}, [defaultTz, onChange]);
|
|
4351
4371
|
React.useEffect(() => {
|
|
4352
4372
|
if (defaultUseBrowserTime && !value) {
|
|
4353
4373
|
setInnerValue(BrowserTimeValue);
|
|
@@ -4356,12 +4376,28 @@
|
|
|
4356
4376
|
}, []);
|
|
4357
4377
|
React.useEffect(() => {
|
|
4358
4378
|
if (innerValue === BrowserTimeValue && value === browserTzName) return;
|
|
4379
|
+
if (innerValue === DefaultTimeValue && value === (defaultTz == null ? void 0 : defaultTz.value)) return;
|
|
4359
4380
|
if (innerValue === value) return;
|
|
4360
4381
|
setInnerValue(value);
|
|
4361
|
-
}, [innerValue, value]);
|
|
4382
|
+
}, [defaultTz == null ? void 0 : defaultTz.value, innerValue, value]);
|
|
4383
|
+
const timeZoneOptionGroups = timeZoneGroups.map(([key, timezones]) => {
|
|
4384
|
+
return /* @__PURE__ */React.createElement(antd.Select.OptGroup, {
|
|
4385
|
+
label: key.toUpperCase()
|
|
4386
|
+
}, timezones.map(zone => {
|
|
4387
|
+
return /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4388
|
+
label: zone.value,
|
|
4389
|
+
value: zone.value,
|
|
4390
|
+
className: OptionWrapperStyle
|
|
4391
|
+
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4392
|
+
key: zone.value,
|
|
4393
|
+
timeZone: zone
|
|
4394
|
+
}));
|
|
4395
|
+
}));
|
|
4396
|
+
});
|
|
4362
4397
|
return /* @__PURE__ */React.createElement(Select, {
|
|
4363
4398
|
className: core.cx(SelectStyle, className),
|
|
4364
|
-
|
|
4399
|
+
dropdownClassName: DropdownStyle,
|
|
4400
|
+
placeholder: /* @__PURE__ */React.createElement("span", null, placeholder || parrot.parrotI18n.t("components.time_zone_select_placeholder")),
|
|
4365
4401
|
value: innerValue,
|
|
4366
4402
|
onChange: _onChange,
|
|
4367
4403
|
showSearch: true,
|
|
@@ -4371,39 +4407,39 @@
|
|
|
4371
4407
|
},
|
|
4372
4408
|
optionLabelProp: "label",
|
|
4373
4409
|
input: {}
|
|
4374
|
-
}, /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4410
|
+
}, defaultTz ? /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4411
|
+
value: DefaultTimeValue,
|
|
4412
|
+
label: parrot.parrotI18n.t("components.default_time_zone"),
|
|
4413
|
+
className: OptionWrapperStyle
|
|
4414
|
+
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4415
|
+
key: DefaultTimeValue,
|
|
4416
|
+
customLabel: parrot.parrotI18n.t("components.default_time_zone"),
|
|
4417
|
+
timeZone: defaultTz
|
|
4418
|
+
})) : void 0, /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4375
4419
|
value: BrowserTimeValue,
|
|
4376
4420
|
label: parrot.parrotI18n.t("components.browser_time_zone"),
|
|
4377
4421
|
className: OptionWrapperStyle
|
|
4378
4422
|
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4379
4423
|
key: BrowserTimeValue,
|
|
4380
|
-
|
|
4424
|
+
customLabel: parrot.parrotI18n.t("components.browser_time_zone"),
|
|
4381
4425
|
timeZone: browserTz
|
|
4382
4426
|
})), /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4383
4427
|
value: "UTC",
|
|
4384
4428
|
className: OptionWrapperStyle
|
|
4385
4429
|
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4386
4430
|
key: "utc",
|
|
4431
|
+
customLabel: parrot.parrotI18n.t("components.coorddinated_universal_time"),
|
|
4387
4432
|
timeZone: {
|
|
4388
4433
|
value: "UTC",
|
|
4389
4434
|
text: "UTC",
|
|
4390
4435
|
offset: 0,
|
|
4391
|
-
abbr: "
|
|
4436
|
+
abbr: "GMT"
|
|
4392
4437
|
}
|
|
4393
|
-
})),
|
|
4394
|
-
return /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4395
|
-
label: zone.value,
|
|
4396
|
-
value: zone.value,
|
|
4397
|
-
className: OptionWrapperStyle
|
|
4398
|
-
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4399
|
-
key: zone.value,
|
|
4400
|
-
timeZone: zone
|
|
4401
|
-
}));
|
|
4402
|
-
}));
|
|
4438
|
+
})), timeZoneOptionGroups);
|
|
4403
4439
|
};
|
|
4404
4440
|
const TimeZoneOption = ({
|
|
4405
4441
|
timeZone,
|
|
4406
|
-
|
|
4442
|
+
customLabel
|
|
4407
4443
|
}) => {
|
|
4408
4444
|
let tagText = "";
|
|
4409
4445
|
if (timeZone.offset === 0) {
|
|
@@ -4415,9 +4451,18 @@
|
|
|
4415
4451
|
}
|
|
4416
4452
|
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", {
|
|
4417
4453
|
className: OptionFirstLineStyle
|
|
4418
|
-
}, /* @__PURE__ */React.createElement("span",
|
|
4454
|
+
}, /* @__PURE__ */React.createElement("span", {
|
|
4455
|
+
className: "timezone-title"
|
|
4456
|
+
}, customLabel || timeZone.value), /* @__PURE__ */React.createElement(antd.Tag, {
|
|
4457
|
+
className: core.cx("timezone-tag", TagStyle)
|
|
4458
|
+
}, tagText)), /* @__PURE__ */React.createElement("div", {
|
|
4419
4459
|
className: OptionSecondLineStyle
|
|
4420
|
-
}, /* @__PURE__ */React.createElement("span", null, timeZone.text, ", ", timeZone.abbr)
|
|
4460
|
+
}, /* @__PURE__ */React.createElement("span", null, timeZone.text, ", ", timeZone.abbr), /* @__PURE__ */React.createElement(Icon, {
|
|
4461
|
+
className: "selected-icon",
|
|
4462
|
+
src: iconsReact.CheckmarkDoneSuccessCorrect16BlueIcon,
|
|
4463
|
+
iconHeight: 16,
|
|
4464
|
+
iconWidth: 16
|
|
4465
|
+
})));
|
|
4421
4466
|
};
|
|
4422
4467
|
|
|
4423
4468
|
function getAntdKit() {
|
|
@@ -4487,7 +4532,18 @@
|
|
|
4487
4532
|
cascader: antd.Cascader,
|
|
4488
4533
|
upload: antd.Upload,
|
|
4489
4534
|
datePickerRangePicker: antd.DatePicker.RangePicker,
|
|
4490
|
-
tableForm: TableForm
|
|
4535
|
+
tableForm: TableForm,
|
|
4536
|
+
uploadDragger: antd.Upload.Dragger,
|
|
4537
|
+
calendar: antd.Calendar,
|
|
4538
|
+
timePicker: antd.TimePicker,
|
|
4539
|
+
datePicker: antd.DatePicker,
|
|
4540
|
+
tabs: antd.Tabs,
|
|
4541
|
+
tabsTabPane: antd.Tabs.TabPane,
|
|
4542
|
+
antdBadge: antd.Badge,
|
|
4543
|
+
antdMessage: antd.message,
|
|
4544
|
+
antdButton: antd.Button,
|
|
4545
|
+
antdSelect: antd.Select,
|
|
4546
|
+
antdTooltip: antd.Tooltip
|
|
4491
4547
|
};
|
|
4492
4548
|
kit.option.isSelectOption = true;
|
|
4493
4549
|
kit.button.__ANT_BUTTON = true;
|