@cloudtower/eagle 0.23.1 → 0.23.3
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 +5 -21
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/style.css +193 -193
- package/dist/umd/index.js +5 -21
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/style.css
CHANGED
|
@@ -1597,81 +1597,6 @@ input[type=submit] {
|
|
|
1597
1597
|
cursor: pointer;
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
-
.fde5mpd {
|
|
1601
|
-
width: 100%;
|
|
1602
|
-
height: 100%;
|
|
1603
|
-
min-height: 124px;
|
|
1604
|
-
display: flex;
|
|
1605
|
-
flex-direction: column;
|
|
1606
|
-
justify-content: center;
|
|
1607
|
-
align-items: center;
|
|
1608
|
-
}
|
|
1609
|
-
.fde5mpd .error-text {
|
|
1610
|
-
color: rgba(10, 37, 85, 0.6);
|
|
1611
|
-
margin-bottom: 16px;
|
|
1612
|
-
font-size: 18px;
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
.iap75of {
|
|
1616
|
-
height: 18px;
|
|
1617
|
-
line-height: 18px;
|
|
1618
|
-
padding: 0 4px;
|
|
1619
|
-
border-radius: 4px;
|
|
1620
|
-
background: rgba(235, 239, 245, 0.6);
|
|
1621
|
-
border: 1px solid rgba(223, 228, 235, 0.6);
|
|
1622
|
-
display: flex;
|
|
1623
|
-
align-items: center;
|
|
1624
|
-
white-space: nowrap;
|
|
1625
|
-
margin-right: 4px;
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
.i1mrf09m {
|
|
1629
|
-
display: inline-flex;
|
|
1630
|
-
align-items: center;
|
|
1631
|
-
}
|
|
1632
|
-
.i1mrf09m .icon-inner {
|
|
1633
|
-
display: inline-flex;
|
|
1634
|
-
align-items: center;
|
|
1635
|
-
justify-content: center;
|
|
1636
|
-
}
|
|
1637
|
-
.i1mrf09m .icon-inner + span,
|
|
1638
|
-
.i1mrf09m span + .icon-inner.suffix {
|
|
1639
|
-
margin-left: 4px;
|
|
1640
|
-
}
|
|
1641
|
-
.i1mrf09m.is-rotate img,
|
|
1642
|
-
.i1mrf09m.is-rotate svg {
|
|
1643
|
-
animation: rotate 680ms linear infinite;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
.bpq0js6 {
|
|
1647
|
-
padding: 4px 11px;
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
.b15sn34c {
|
|
1651
|
-
white-space: nowrap;
|
|
1652
|
-
filter: drop-shadow(0px 2px 8px rgba(0, 136, 255, 0.1));
|
|
1653
|
-
}
|
|
1654
|
-
.b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous) {
|
|
1655
|
-
--color: #0080ff;
|
|
1656
|
-
}
|
|
1657
|
-
.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] {
|
|
1658
|
-
--color: #0080ff;
|
|
1659
|
-
}
|
|
1660
|
-
.b15sn34c > .ant-btn:not(:only-child) + .ant-btn {
|
|
1661
|
-
margin-left: 1px;
|
|
1662
|
-
}
|
|
1663
|
-
.b15sn34c > .ant-btn:not(:only-child):first-child {
|
|
1664
|
-
border-top-right-radius: 0;
|
|
1665
|
-
border-bottom-right-radius: 0;
|
|
1666
|
-
}
|
|
1667
|
-
.b15sn34c > .ant-btn:not(:only-child):last-child {
|
|
1668
|
-
border-top-left-radius: 0;
|
|
1669
|
-
border-bottom-left-radius: 0;
|
|
1670
|
-
}
|
|
1671
|
-
.b15sn34c > .ant-btn:not(:only-child):not(:first-child, :last-child) {
|
|
1672
|
-
border-radius: unset;
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
1600
|
.buj61ew.ant-btn {
|
|
1676
1601
|
height: 32px;
|
|
1677
1602
|
border-radius: 6px;
|
|
@@ -1920,6 +1845,81 @@ input[type=submit] {
|
|
|
1920
1845
|
padding: 0;
|
|
1921
1846
|
}
|
|
1922
1847
|
|
|
1848
|
+
.bpq0js6 {
|
|
1849
|
+
padding: 4px 11px;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
.b15sn34c {
|
|
1853
|
+
white-space: nowrap;
|
|
1854
|
+
filter: drop-shadow(0px 2px 8px rgba(0, 136, 255, 0.1));
|
|
1855
|
+
}
|
|
1856
|
+
.b15sn34c > .ant-btn.ant-btn-ordinary-onTint:not(.ant-btn-dangerous) {
|
|
1857
|
+
--color: #0080ff;
|
|
1858
|
+
}
|
|
1859
|
+
.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] {
|
|
1860
|
+
--color: #0080ff;
|
|
1861
|
+
}
|
|
1862
|
+
.b15sn34c > .ant-btn:not(:only-child) + .ant-btn {
|
|
1863
|
+
margin-left: 1px;
|
|
1864
|
+
}
|
|
1865
|
+
.b15sn34c > .ant-btn:not(:only-child):first-child {
|
|
1866
|
+
border-top-right-radius: 0;
|
|
1867
|
+
border-bottom-right-radius: 0;
|
|
1868
|
+
}
|
|
1869
|
+
.b15sn34c > .ant-btn:not(:only-child):last-child {
|
|
1870
|
+
border-top-left-radius: 0;
|
|
1871
|
+
border-bottom-left-radius: 0;
|
|
1872
|
+
}
|
|
1873
|
+
.b15sn34c > .ant-btn:not(:only-child):not(:first-child, :last-child) {
|
|
1874
|
+
border-radius: unset;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
.fde5mpd {
|
|
1878
|
+
width: 100%;
|
|
1879
|
+
height: 100%;
|
|
1880
|
+
min-height: 124px;
|
|
1881
|
+
display: flex;
|
|
1882
|
+
flex-direction: column;
|
|
1883
|
+
justify-content: center;
|
|
1884
|
+
align-items: center;
|
|
1885
|
+
}
|
|
1886
|
+
.fde5mpd .error-text {
|
|
1887
|
+
color: rgba(10, 37, 85, 0.6);
|
|
1888
|
+
margin-bottom: 16px;
|
|
1889
|
+
font-size: 18px;
|
|
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;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
.iap75of {
|
|
1911
|
+
height: 18px;
|
|
1912
|
+
line-height: 18px;
|
|
1913
|
+
padding: 0 4px;
|
|
1914
|
+
border-radius: 4px;
|
|
1915
|
+
background: rgba(235, 239, 245, 0.6);
|
|
1916
|
+
border: 1px solid rgba(223, 228, 235, 0.6);
|
|
1917
|
+
display: flex;
|
|
1918
|
+
align-items: center;
|
|
1919
|
+
white-space: nowrap;
|
|
1920
|
+
margin-right: 4px;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
1923
|
.obf05yr {
|
|
1924
1924
|
display: inline-block;
|
|
1925
1925
|
}
|
|
@@ -1929,59 +1929,61 @@ input[type=submit] {
|
|
|
1929
1929
|
position: absolute;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
.
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
}
|
|
1941
|
-
.s34f1qb.ant-switch-small {
|
|
1942
|
-
min-width: 26px;
|
|
1943
|
-
height: 16px;
|
|
1944
|
-
}
|
|
1945
|
-
.s34f1qb.ant-switch-large {
|
|
1946
|
-
min-width: 52px;
|
|
1947
|
-
height: 32px;
|
|
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;
|
|
1948
1940
|
}
|
|
1949
|
-
.
|
|
1950
|
-
|
|
1951
|
-
width: 20px;
|
|
1941
|
+
.p12gwtiw .pagination-left {
|
|
1942
|
+
padding: 2px 8px;
|
|
1952
1943
|
}
|
|
1953
|
-
.
|
|
1954
|
-
|
|
1955
|
-
|
|
1944
|
+
.p12gwtiw .dropdown-trigger {
|
|
1945
|
+
display: flex;
|
|
1946
|
+
align-items: center;
|
|
1947
|
+
border-radius: 6px;
|
|
1948
|
+
cursor: pointer;
|
|
1949
|
+
transition: all 0.3s ease;
|
|
1956
1950
|
}
|
|
1957
|
-
.
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
top: 1px;
|
|
1961
|
-
left: 1px;
|
|
1951
|
+
.p12gwtiw .dropdown-trigger:hover {
|
|
1952
|
+
background: rgba(211, 218, 235, 0.6);
|
|
1953
|
+
color: #0080ff;
|
|
1962
1954
|
}
|
|
1963
|
-
.
|
|
1964
|
-
|
|
1965
|
-
width: 28px;
|
|
1955
|
+
.p12gwtiw .dropdown-trigger .icon-inner {
|
|
1956
|
+
margin-left: 4px;
|
|
1966
1957
|
}
|
|
1967
|
-
.
|
|
1968
|
-
|
|
1958
|
+
.p12gwtiw .pagination-right {
|
|
1959
|
+
display: flex;
|
|
1960
|
+
align-items: center;
|
|
1961
|
+
color: #0080ff;
|
|
1962
|
+
font-weight: bold;
|
|
1969
1963
|
}
|
|
1970
|
-
.
|
|
1971
|
-
|
|
1964
|
+
.p12gwtiw .pagination-right .icon-inner {
|
|
1965
|
+
margin-left: 4px;
|
|
1972
1966
|
}
|
|
1973
|
-
.
|
|
1974
|
-
|
|
1967
|
+
.p12gwtiw .pagination-right .prev-btn,
|
|
1968
|
+
.p12gwtiw .pagination-right .next-btn {
|
|
1969
|
+
padding: 0 8px;
|
|
1975
1970
|
}
|
|
1976
|
-
.
|
|
1977
|
-
|
|
1971
|
+
.p12gwtiw .pagination-right .prev-btn > span,
|
|
1972
|
+
.p12gwtiw .pagination-right .next-btn > span {
|
|
1973
|
+
color: #0080ff;
|
|
1978
1974
|
}
|
|
1979
|
-
.
|
|
1980
|
-
|
|
1975
|
+
.p12gwtiw .pagination-right .next-btn .icon-inner {
|
|
1976
|
+
transform: rotate(180deg);
|
|
1981
1977
|
}
|
|
1982
1978
|
|
|
1983
|
-
.
|
|
1984
|
-
|
|
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;
|
|
1985
1987
|
}
|
|
1986
1988
|
|
|
1987
1989
|
.cz04yix {
|
|
@@ -2649,63 +2651,6 @@ input.rrg1fkn.ant-input {
|
|
|
2649
2651
|
border-bottom-left-radius: 0;
|
|
2650
2652
|
}
|
|
2651
2653
|
|
|
2652
|
-
.p12gwtiw {
|
|
2653
|
-
display: flex;
|
|
2654
|
-
justify-content: space-between;
|
|
2655
|
-
align-items: center;
|
|
2656
|
-
padding: 10px 0;
|
|
2657
|
-
color: rgba(44, 56, 82, 0.6);
|
|
2658
|
-
font-size: 12px;
|
|
2659
|
-
line-height: 24px;
|
|
2660
|
-
}
|
|
2661
|
-
.p12gwtiw .pagination-left {
|
|
2662
|
-
padding: 2px 8px;
|
|
2663
|
-
}
|
|
2664
|
-
.p12gwtiw .dropdown-trigger {
|
|
2665
|
-
display: flex;
|
|
2666
|
-
align-items: center;
|
|
2667
|
-
border-radius: 6px;
|
|
2668
|
-
cursor: pointer;
|
|
2669
|
-
transition: all 0.3s ease;
|
|
2670
|
-
}
|
|
2671
|
-
.p12gwtiw .dropdown-trigger:hover {
|
|
2672
|
-
background: rgba(211, 218, 235, 0.6);
|
|
2673
|
-
color: #0080ff;
|
|
2674
|
-
}
|
|
2675
|
-
.p12gwtiw .dropdown-trigger .icon-inner {
|
|
2676
|
-
margin-left: 4px;
|
|
2677
|
-
}
|
|
2678
|
-
.p12gwtiw .pagination-right {
|
|
2679
|
-
display: flex;
|
|
2680
|
-
align-items: center;
|
|
2681
|
-
color: #0080ff;
|
|
2682
|
-
font-weight: bold;
|
|
2683
|
-
}
|
|
2684
|
-
.p12gwtiw .pagination-right .icon-inner {
|
|
2685
|
-
margin-left: 4px;
|
|
2686
|
-
}
|
|
2687
|
-
.p12gwtiw .pagination-right .prev-btn,
|
|
2688
|
-
.p12gwtiw .pagination-right .next-btn {
|
|
2689
|
-
padding: 0 8px;
|
|
2690
|
-
}
|
|
2691
|
-
.p12gwtiw .pagination-right .prev-btn > span,
|
|
2692
|
-
.p12gwtiw .pagination-right .next-btn > span {
|
|
2693
|
-
color: #0080ff;
|
|
2694
|
-
}
|
|
2695
|
-
.p12gwtiw .pagination-right .next-btn .icon-inner {
|
|
2696
|
-
transform: rotate(180deg);
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
.d1bnu0in.ant-dropdown .ant-dropdown-menu {
|
|
2700
|
-
max-height: calc(100vh - 128px);
|
|
2701
|
-
overflow-y: auto;
|
|
2702
|
-
}
|
|
2703
|
-
.d1bnu0in.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item {
|
|
2704
|
-
padding: 4px 20px;
|
|
2705
|
-
font-size: 12px;
|
|
2706
|
-
line-height: 18px;
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
2654
|
.rxbeqvl.ant-radio-wrapper {
|
|
2710
2655
|
display: inline-flex;
|
|
2711
2656
|
align-items: baseline;
|
|
@@ -2848,6 +2793,61 @@ input.rrg1fkn.ant-input {
|
|
|
2848
2793
|
width: 36px;
|
|
2849
2794
|
}
|
|
2850
2795
|
|
|
2796
|
+
.s34f1qb.ant-switch {
|
|
2797
|
+
min-width: 40px;
|
|
2798
|
+
height: 24px;
|
|
2799
|
+
background: rgba(172, 186, 211, 0.6);
|
|
2800
|
+
overflow: hidden;
|
|
2801
|
+
}
|
|
2802
|
+
.s34f1qb.ant-switch:focus {
|
|
2803
|
+
box-shadow: 0 0 0 2px rgba(225, 230, 241, 0.6);
|
|
2804
|
+
}
|
|
2805
|
+
.s34f1qb.ant-switch-small {
|
|
2806
|
+
min-width: 26px;
|
|
2807
|
+
height: 16px;
|
|
2808
|
+
}
|
|
2809
|
+
.s34f1qb.ant-switch-large {
|
|
2810
|
+
min-width: 52px;
|
|
2811
|
+
height: 32px;
|
|
2812
|
+
}
|
|
2813
|
+
.s34f1qb.ant-switch .ant-switch-handle {
|
|
2814
|
+
height: 20px;
|
|
2815
|
+
width: 20px;
|
|
2816
|
+
}
|
|
2817
|
+
.s34f1qb.ant-switch .ant-switch-handle::before {
|
|
2818
|
+
border-radius: 10px;
|
|
2819
|
+
transition-delay: 120ms;
|
|
2820
|
+
}
|
|
2821
|
+
.s34f1qb.ant-switch-small .ant-switch-handle {
|
|
2822
|
+
height: 14px;
|
|
2823
|
+
width: 14px;
|
|
2824
|
+
top: 1px;
|
|
2825
|
+
left: 1px;
|
|
2826
|
+
}
|
|
2827
|
+
.s34f1qb.ant-switch-large .ant-switch-handle {
|
|
2828
|
+
height: 28px;
|
|
2829
|
+
width: 28px;
|
|
2830
|
+
}
|
|
2831
|
+
.s34f1qb.ant-switch-large .ant-switch-handle::before {
|
|
2832
|
+
border-radius: 14px;
|
|
2833
|
+
}
|
|
2834
|
+
.s34f1qb.ant-switch-checked {
|
|
2835
|
+
background-color: #00ba5d;
|
|
2836
|
+
}
|
|
2837
|
+
.s34f1qb.ant-switch-checked .ant-switch-handle {
|
|
2838
|
+
left: calc(100% - 20px - 2px);
|
|
2839
|
+
}
|
|
2840
|
+
.s34f1qb.ant-switch-small.ant-switch-checked .ant-switch-handle {
|
|
2841
|
+
left: calc(100% - 14px - 1px);
|
|
2842
|
+
}
|
|
2843
|
+
.s34f1qb.ant-switch-large.ant-switch-checked .ant-switch-handle {
|
|
2844
|
+
left: calc(100% - 28px - 2px);
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
.c1to9vb9 {
|
|
2848
|
+
margin-left: 5px;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
2851
|
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal {
|
|
2852
2852
|
flex-direction: row;
|
|
2853
2853
|
justify-content: stretch;
|
|
@@ -4420,6 +4420,25 @@ input.rrg1fkn.ant-input {
|
|
|
4420
4420
|
margin-right: 8px;
|
|
4421
4421
|
}
|
|
4422
4422
|
|
|
4423
|
+
.feau332.ant-form-item {
|
|
4424
|
+
margin-bottom: 0;
|
|
4425
|
+
}
|
|
4426
|
+
.feau332 .ant-form-item-explain {
|
|
4427
|
+
display: none;
|
|
4428
|
+
min-height: 18px;
|
|
4429
|
+
margin-top: 5px;
|
|
4430
|
+
font-family: "Inter";
|
|
4431
|
+
font-weight: 400;
|
|
4432
|
+
font-size: 12px;
|
|
4433
|
+
line-height: 18px;
|
|
4434
|
+
}
|
|
4435
|
+
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) {
|
|
4436
|
+
white-space: pre-wrap;
|
|
4437
|
+
}
|
|
4438
|
+
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) .ant-form-item-explain {
|
|
4439
|
+
display: block;
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4423
4442
|
.a6dbbkm .ant-input-number-handler-wrap {
|
|
4424
4443
|
display: var(--a6dbbkm-0);
|
|
4425
4444
|
}
|
|
@@ -4449,23 +4468,4 @@ input.rrg1fkn.ant-input {
|
|
|
4449
4468
|
margin: 0;
|
|
4450
4469
|
height: auto;
|
|
4451
4470
|
font-size: inherit;
|
|
4452
|
-
}
|
|
4453
|
-
|
|
4454
|
-
.feau332.ant-form-item {
|
|
4455
|
-
margin-bottom: 0;
|
|
4456
|
-
}
|
|
4457
|
-
.feau332 .ant-form-item-explain {
|
|
4458
|
-
display: none;
|
|
4459
|
-
min-height: 18px;
|
|
4460
|
-
margin-top: 5px;
|
|
4461
|
-
font-family: "Inter";
|
|
4462
|
-
font-weight: 400;
|
|
4463
|
-
font-size: 12px;
|
|
4464
|
-
line-height: 18px;
|
|
4465
|
-
}
|
|
4466
|
-
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) {
|
|
4467
|
-
white-space: pre-wrap;
|
|
4468
|
-
}
|
|
4469
|
-
.feau332.ant-form-item[class*=ant-form-item-has]:not(.ant-form-item-has-error-leave) .ant-form-item-explain {
|
|
4470
|
-
display: block;
|
|
4471
4471
|
}
|
package/dist/umd/index.js
CHANGED
|
@@ -4429,7 +4429,6 @@
|
|
|
4429
4429
|
const OptionSecondLineStyle = core.cx("of4y382", Typo.Label.l4_regular);
|
|
4430
4430
|
const TagStyle = "t19903l9";
|
|
4431
4431
|
const BrowserTimeValue = "browser_time_zone";
|
|
4432
|
-
const DefaultTimeValue = "default_time_zone";
|
|
4433
4432
|
const browserTzName = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4434
4433
|
const browserTz = allTimeZones.find(tz => tz.value === browserTzName) || allTimeZones[0];
|
|
4435
4434
|
const TimeZoneSelect = props => {
|
|
@@ -4439,26 +4438,20 @@
|
|
|
4439
4438
|
disabled,
|
|
4440
4439
|
defaultUseBrowserTime,
|
|
4441
4440
|
className,
|
|
4442
|
-
placeholder
|
|
4443
|
-
defaultOptionValue
|
|
4441
|
+
placeholder
|
|
4444
4442
|
} = props;
|
|
4445
4443
|
const [innerValue, setInnerValue] = React.useState(value);
|
|
4446
4444
|
const {
|
|
4447
4445
|
t
|
|
4448
4446
|
} = reactI18next.useTranslation();
|
|
4449
|
-
const defaultTz = React.useMemo(() => {
|
|
4450
|
-
return allTimeZones.find(tz => tz.value === defaultOptionValue);
|
|
4451
|
-
}, [defaultOptionValue]);
|
|
4452
4447
|
const _onChange = React.useCallback(val => {
|
|
4453
4448
|
setInnerValue(val);
|
|
4454
4449
|
if (val === BrowserTimeValue) {
|
|
4455
4450
|
onChange(browserTzName);
|
|
4456
|
-
} else if (val === DefaultTimeValue && defaultTz) {
|
|
4457
|
-
onChange(defaultTz == null ? void 0 : defaultTz.value);
|
|
4458
4451
|
} else {
|
|
4459
4452
|
onChange(val);
|
|
4460
4453
|
}
|
|
4461
|
-
}, [
|
|
4454
|
+
}, [onChange]);
|
|
4462
4455
|
React.useEffect(() => {
|
|
4463
4456
|
if (defaultUseBrowserTime && !value) {
|
|
4464
4457
|
setInnerValue(BrowserTimeValue);
|
|
@@ -4467,16 +4460,15 @@
|
|
|
4467
4460
|
}, []);
|
|
4468
4461
|
React.useEffect(() => {
|
|
4469
4462
|
if (innerValue === BrowserTimeValue && value === browserTzName) return;
|
|
4470
|
-
if (innerValue === DefaultTimeValue && value === (defaultTz == null ? void 0 : defaultTz.value)) return;
|
|
4471
4463
|
if (innerValue === value) return;
|
|
4472
4464
|
setInnerValue(value);
|
|
4473
|
-
}, [
|
|
4465
|
+
}, [innerValue, value]);
|
|
4474
4466
|
const timeZoneOptionGroups = timeZoneGroups.map(([key, timezones]) => {
|
|
4475
4467
|
return /* @__PURE__ */React.createElement(antd.Select.OptGroup, {
|
|
4476
4468
|
label: key.toUpperCase()
|
|
4477
4469
|
}, timezones.map(zone => {
|
|
4478
4470
|
return /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4479
|
-
label: zone.value
|
|
4471
|
+
label: `${zone.value} (${getUTCOffsetText(zone.offset)})`,
|
|
4480
4472
|
value: zone.value,
|
|
4481
4473
|
className: OptionWrapperStyle
|
|
4482
4474
|
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
@@ -4498,15 +4490,7 @@
|
|
|
4498
4490
|
},
|
|
4499
4491
|
optionLabelProp: "label",
|
|
4500
4492
|
input: {}
|
|
4501
|
-
},
|
|
4502
|
-
value: DefaultTimeValue,
|
|
4503
|
-
label: `${t("components.default_time_zone")} (${getUTCOffsetText(defaultTz.offset)})`,
|
|
4504
|
-
className: OptionWrapperStyle
|
|
4505
|
-
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4506
|
-
key: DefaultTimeValue,
|
|
4507
|
-
customLabel: t("components.default_time_zone"),
|
|
4508
|
-
timeZone: defaultTz
|
|
4509
|
-
})) : void 0, /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4493
|
+
}, /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4510
4494
|
value: BrowserTimeValue,
|
|
4511
4495
|
label: `${t("components.browser_time_zone")} (${getUTCOffsetText(browserTz.offset)})`,
|
|
4512
4496
|
className: OptionWrapperStyle
|