forstok-ui-lib 6.2.11 → 6.2.12
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/index.js +813 -269
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1014 -470
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/javascripts/function.ts +33 -0
- package/src/assets/stylesheets/shares.styles.ts +766 -253
|
@@ -77,46 +77,6 @@ const getInputGroupModFunc = ({ $mode, $required }:{ $mode?: string, $required?:
|
|
|
77
77
|
}
|
|
78
78
|
return style
|
|
79
79
|
}
|
|
80
|
-
const getBulkActionWrapperModifiedStyled = ({ $isOpen }:{ $isOpen?: boolean }) => {
|
|
81
|
-
let style = ``
|
|
82
|
-
if ($isOpen) {
|
|
83
|
-
style += `
|
|
84
|
-
transition: bottom .2s;
|
|
85
|
-
bottom: 0;
|
|
86
|
-
@media (max-width: 767.9px) {
|
|
87
|
-
@keyframes droptoup {
|
|
88
|
-
50% {
|
|
89
|
-
bottom: -100px;
|
|
90
|
-
}
|
|
91
|
-
50% {
|
|
92
|
-
bottom: -50px;
|
|
93
|
-
}
|
|
94
|
-
100% {
|
|
95
|
-
bottom: 0px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
&._refMasterTableBulkWrapper {
|
|
99
|
-
display: grid;
|
|
100
|
-
left: 0;
|
|
101
|
-
animation: droptoup .075s linear;
|
|
102
|
-
bottom: 0;
|
|
103
|
-
overflow-x: hidden;
|
|
104
|
-
& + ._refDropdownOverlay {
|
|
105
|
-
display: block;
|
|
106
|
-
width: 100%;
|
|
107
|
-
height: 100%;
|
|
108
|
-
position: fixed;
|
|
109
|
-
top: 0;
|
|
110
|
-
left: 0;
|
|
111
|
-
z-index: 100;
|
|
112
|
-
background-color: rgba(0, 0, 0, .5);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
`
|
|
117
|
-
}
|
|
118
|
-
return style
|
|
119
|
-
}
|
|
120
80
|
const getTableHeaderModFunc = ({ $mode, $isPlayground }:{ $mode?: string, $isPlayground?: boolean }) => {
|
|
121
81
|
let style = `
|
|
122
82
|
& ${TableHeadLabel} {
|
|
@@ -1164,6 +1124,7 @@ const getTableItemModFunc = ({ $mode }:{ $mode?: string }) => {
|
|
|
1164
1124
|
style +=`
|
|
1165
1125
|
grid-auto-flow: column;
|
|
1166
1126
|
grid-template-columns: 1fr;
|
|
1127
|
+
margin-top: 16px;
|
|
1167
1128
|
> aside {
|
|
1168
1129
|
padding: 20px 10px;
|
|
1169
1130
|
}
|
|
@@ -1793,18 +1754,18 @@ export const HeaderContainer = styled.aside`
|
|
|
1793
1754
|
grid-gap: 8px;
|
|
1794
1755
|
grid-template-columns: max-content max-content;
|
|
1795
1756
|
align-items: center;
|
|
1796
|
-
position: relative;
|
|
1797
|
-
margin-top: 10px;
|
|
1798
1757
|
@media only screen and (min-width: 768px) {
|
|
1799
|
-
margin-top: 0px;
|
|
1800
|
-
top: 10px;
|
|
1801
1758
|
position: absolute;
|
|
1802
|
-
right:
|
|
1759
|
+
right: 20px;
|
|
1760
|
+
top: 10px;
|
|
1803
1761
|
}
|
|
1804
1762
|
@media only screen and (min-width: 1366px) {
|
|
1805
1763
|
right: 20px;
|
|
1806
1764
|
}
|
|
1807
|
-
|
|
1765
|
+
@media only screen and (min-width: 1800px) {
|
|
1766
|
+
right: 28px;
|
|
1767
|
+
}
|
|
1768
|
+
`
|
|
1808
1769
|
export const Title = styled.h1`
|
|
1809
1770
|
font-size: 22px;
|
|
1810
1771
|
color: var(--ter-clr);
|
|
@@ -1814,7 +1775,6 @@ export const Title = styled.h1`
|
|
|
1814
1775
|
font-weight: 400;
|
|
1815
1776
|
margin-top: 5px;
|
|
1816
1777
|
letter-spacing: normal;
|
|
1817
|
-
line-height: normal;
|
|
1818
1778
|
}
|
|
1819
1779
|
@media only screen and (min-width: 768px) {
|
|
1820
1780
|
font-size: 1.5rem;
|
|
@@ -1823,23 +1783,19 @@ export const Title = styled.h1`
|
|
|
1823
1783
|
}
|
|
1824
1784
|
}
|
|
1825
1785
|
`
|
|
1826
|
-
export const PanelWrapper = styled.section<{ $mode?:
|
|
1786
|
+
export const PanelWrapper = styled.section<{ $mode?: 'full' }>`
|
|
1827
1787
|
${responseWidth}
|
|
1828
1788
|
position: relative;
|
|
1829
1789
|
min-height: 1px;
|
|
1830
1790
|
margin: 0 auto;
|
|
1831
|
-
padding-top:
|
|
1791
|
+
padding-top: 4px;
|
|
1832
1792
|
padding-bottom: 10px;
|
|
1833
1793
|
@media only screen and (min-width: 768px) {
|
|
1834
|
-
padding:
|
|
1794
|
+
padding: 4px 30px 16px;
|
|
1835
1795
|
}
|
|
1836
|
-
${({ $mode }
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
width: 100%;
|
|
1840
|
-
`
|
|
1841
|
-
}
|
|
1842
|
-
}}
|
|
1796
|
+
${({ $mode }) => $mode === 'full' && css`
|
|
1797
|
+
width: 100%;
|
|
1798
|
+
`}
|
|
1843
1799
|
`
|
|
1844
1800
|
export const PanelContainer = styled.section<{ $mode?: string }>`
|
|
1845
1801
|
position: relative;
|
|
@@ -1912,6 +1868,16 @@ export const ListContainer = styled.section`
|
|
|
1912
1868
|
&:first-child {
|
|
1913
1869
|
margin-top: -4px;
|
|
1914
1870
|
}
|
|
1871
|
+
> aside:first-child {
|
|
1872
|
+
@media only screen and (min-width: 768px) {
|
|
1873
|
+
padding-left: 16px;
|
|
1874
|
+
padding-right: 16px;
|
|
1875
|
+
}
|
|
1876
|
+
@media only screen and (min-width: 1024px) {
|
|
1877
|
+
padding-left: 0;
|
|
1878
|
+
padding-right: 0;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1915
1881
|
`
|
|
1916
1882
|
export const TabsContainer = styled.section<{ $mode?: string }>`
|
|
1917
1883
|
width: 100%;
|
|
@@ -1927,9 +1893,6 @@ export const TabsContainer = styled.section<{ $mode?: string }>`
|
|
|
1927
1893
|
} else if ($mode === 'no-header') {
|
|
1928
1894
|
return css`
|
|
1929
1895
|
padding-top: 0;
|
|
1930
|
-
@media only screen and (min-width: 1366px) {
|
|
1931
|
-
padding-top: 12px;
|
|
1932
|
-
}
|
|
1933
1896
|
`
|
|
1934
1897
|
}
|
|
1935
1898
|
}}
|
|
@@ -1937,17 +1900,16 @@ export const TabsContainer = styled.section<{ $mode?: string }>`
|
|
|
1937
1900
|
export const TabsContent = styled.div<{ $mode?: string }>`
|
|
1938
1901
|
padding-top: 16px;
|
|
1939
1902
|
&._refNoTab {
|
|
1940
|
-
padding-top:
|
|
1941
|
-
@media only screen and (min-width: 768px) {
|
|
1942
|
-
padding-top: 11px;
|
|
1943
|
-
}
|
|
1903
|
+
padding-top: 0;
|
|
1944
1904
|
}
|
|
1945
1905
|
@media only screen and (min-width: 768px) {
|
|
1946
|
-
|
|
1906
|
+
&._refNoTab {
|
|
1907
|
+
padding-top: 16px;
|
|
1908
|
+
}
|
|
1947
1909
|
}
|
|
1948
1910
|
${getTabsContentModFunc}
|
|
1949
1911
|
`
|
|
1950
|
-
export const FoContainer = styled.section<{ $mode?:
|
|
1912
|
+
export const FoContainer = styled.section<{ $mode?: 'detail' }>`
|
|
1951
1913
|
position: relative;
|
|
1952
1914
|
> section,
|
|
1953
1915
|
> article {
|
|
@@ -1959,38 +1921,35 @@ export const FoContainer = styled.section<{ $mode?: string }>`
|
|
|
1959
1921
|
}
|
|
1960
1922
|
}
|
|
1961
1923
|
> article {
|
|
1962
|
-
height: calc(100vh -
|
|
1924
|
+
height: calc(100vh - 48px);
|
|
1963
1925
|
}
|
|
1964
|
-
${({ $mode }
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
padding-left: 16px;
|
|
1973
|
-
padding-right: 16px;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1926
|
+
${({ $mode }) => $mode === 'detail' && css`
|
|
1927
|
+
margin-top: -4px;
|
|
1928
|
+
@media only screen and (min-width: 768px) {
|
|
1929
|
+
> section,
|
|
1930
|
+
> article {
|
|
1931
|
+
> aside {
|
|
1932
|
+
padding-left: 0;
|
|
1933
|
+
padding-right: 0;
|
|
1976
1934
|
}
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
@media only screen and (min-width: 1024px) {
|
|
1938
|
+
> section,
|
|
1939
|
+
> article {
|
|
1940
|
+
> aside {
|
|
1941
|
+
padding-left: 0;
|
|
1942
|
+
padding-right: 0;
|
|
1985
1943
|
}
|
|
1986
|
-
|
|
1944
|
+
}
|
|
1987
1945
|
}
|
|
1988
|
-
}
|
|
1946
|
+
`}
|
|
1989
1947
|
`
|
|
1990
1948
|
export const BreadcrumbContainer = styled.aside`
|
|
1991
1949
|
position: relative;
|
|
1992
|
-
padding:
|
|
1950
|
+
padding: 0;
|
|
1993
1951
|
text-align: center;
|
|
1952
|
+
margin-left: 9px !important;
|
|
1994
1953
|
> a {
|
|
1995
1954
|
&:first-child {
|
|
1996
1955
|
display: none;
|
|
@@ -1998,8 +1957,8 @@ export const BreadcrumbContainer = styled.aside`
|
|
|
1998
1957
|
&:nth-child(2) {
|
|
1999
1958
|
display: inline;
|
|
2000
1959
|
position: absolute;
|
|
2001
|
-
top:
|
|
2002
|
-
left:
|
|
1960
|
+
top: 0;
|
|
1961
|
+
left: 0;
|
|
2003
1962
|
}
|
|
2004
1963
|
> i {
|
|
2005
1964
|
float: left;
|
|
@@ -2010,14 +1969,15 @@ export const BreadcrumbContainer = styled.aside`
|
|
|
2010
1969
|
display: none;
|
|
2011
1970
|
}
|
|
2012
1971
|
@media only screen and (min-width: 375px) {
|
|
1972
|
+
margin-left: 16px !important;
|
|
2013
1973
|
> a {
|
|
2014
1974
|
&:nth-child(2) {
|
|
2015
|
-
left:
|
|
1975
|
+
left: 4px;
|
|
2016
1976
|
}
|
|
2017
1977
|
}
|
|
2018
1978
|
}
|
|
2019
1979
|
@media only screen and (min-width: 768px) {
|
|
2020
|
-
padding: 8px 30px
|
|
1980
|
+
padding: 8px 30px 0;
|
|
2021
1981
|
text-align: left;
|
|
2022
1982
|
b {
|
|
2023
1983
|
font-size: .875rem;
|
|
@@ -2035,16 +1995,19 @@ export const BreadcrumbContainer = styled.aside`
|
|
|
2035
1995
|
}
|
|
2036
1996
|
}
|
|
2037
1997
|
}
|
|
1998
|
+
@media (min-width: 1366px) {
|
|
1999
|
+
margin-left: 28px !important;
|
|
2000
|
+
}
|
|
2038
2001
|
`
|
|
2039
2002
|
export const InfoGroup = styled.div`
|
|
2040
2003
|
display: inline-grid;
|
|
2041
2004
|
grid-auto-flow: column;
|
|
2042
|
-
grid-template-columns: minmax(140px,
|
|
2005
|
+
grid-template-columns: minmax(140px, 165px) minmax(140px, 1fr);
|
|
2043
2006
|
grid-gap: 5px;
|
|
2044
2007
|
width: 100%;
|
|
2045
2008
|
justify-content: left;
|
|
2046
2009
|
margin-bottom: 14px;
|
|
2047
|
-
|
|
2010
|
+
span {
|
|
2048
2011
|
position: relative;
|
|
2049
2012
|
&:after {
|
|
2050
2013
|
position: absolute;
|
|
@@ -2057,7 +2020,7 @@ export const InfoGroup = styled.div`
|
|
|
2057
2020
|
word-break: break-word;
|
|
2058
2021
|
}
|
|
2059
2022
|
`
|
|
2060
|
-
export const MuteLabel = styled.span<{ $size?:
|
|
2023
|
+
export const MuteLabel = styled.span<{ $size?: 'medium' }>`
|
|
2061
2024
|
color: var(--mt-clr);
|
|
2062
2025
|
font-size: 12px;
|
|
2063
2026
|
word-break: break-all;
|
|
@@ -2070,16 +2033,13 @@ export const MuteLabel = styled.span<{ $size?: string }>`
|
|
|
2070
2033
|
margin-right: 0;
|
|
2071
2034
|
}
|
|
2072
2035
|
}
|
|
2073
|
-
${({ $size }
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
}
|
|
2081
|
-
`
|
|
2082
|
-
}}
|
|
2036
|
+
${({ $size }) => $size === 'medium' && css`
|
|
2037
|
+
font-size: 13px;
|
|
2038
|
+
line-height: 12px;
|
|
2039
|
+
* {
|
|
2040
|
+
margin-right: 4px;
|
|
2041
|
+
}
|
|
2042
|
+
`}
|
|
2083
2043
|
`
|
|
2084
2044
|
export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }>`
|
|
2085
2045
|
> label,
|
|
@@ -2088,11 +2048,13 @@ export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }
|
|
|
2088
2048
|
margin-bottom: 6px;
|
|
2089
2049
|
padding: 0 6px;
|
|
2090
2050
|
display: block;
|
|
2091
|
-
font-size: 14px;
|
|
2092
2051
|
}
|
|
2093
2052
|
> div {
|
|
2094
2053
|
display: grid;
|
|
2095
2054
|
}
|
|
2055
|
+
._refRangeContainer {
|
|
2056
|
+
width: 100%;
|
|
2057
|
+
}
|
|
2096
2058
|
${getInputGroupModFunc}
|
|
2097
2059
|
`
|
|
2098
2060
|
export const BoxContainer = styled.aside`
|
|
@@ -2117,6 +2079,10 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
|
|
|
2117
2079
|
transition: bottom .2s ease-in-out;
|
|
2118
2080
|
overflow: auto;
|
|
2119
2081
|
white-space: nowrap;
|
|
2082
|
+
&.is-active {
|
|
2083
|
+
transition: bottom .2s;
|
|
2084
|
+
bottom: 0;
|
|
2085
|
+
}
|
|
2120
2086
|
i {
|
|
2121
2087
|
position: relative;
|
|
2122
2088
|
top: 5px;
|
|
@@ -2125,7 +2091,8 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
|
|
|
2125
2091
|
position: relative;
|
|
2126
2092
|
top: 7px;
|
|
2127
2093
|
}
|
|
2128
|
-
button,
|
|
2094
|
+
button,
|
|
2095
|
+
a {
|
|
2129
2096
|
padding: 6px 16px;
|
|
2130
2097
|
font-size: 13px;
|
|
2131
2098
|
min-height: unset;
|
|
@@ -2142,10 +2109,14 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
|
|
|
2142
2109
|
box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
|
|
2143
2110
|
border-radius: 10px 10px 0px 0px;
|
|
2144
2111
|
display: none;
|
|
2145
|
-
>i,
|
|
2146
|
-
>
|
|
2112
|
+
> i,
|
|
2113
|
+
> span,
|
|
2114
|
+
> button {
|
|
2115
|
+
display: none;
|
|
2116
|
+
}
|
|
2117
|
+
> section {
|
|
2147
2118
|
padding: 1em;
|
|
2148
|
-
>section >article {
|
|
2119
|
+
> section > article {
|
|
2149
2120
|
display: inline-grid;
|
|
2150
2121
|
grid-auto-flow: row;
|
|
2151
2122
|
grid-gap: 12px;
|
|
@@ -2156,18 +2127,83 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
|
|
|
2156
2127
|
display:none;
|
|
2157
2128
|
}
|
|
2158
2129
|
}
|
|
2130
|
+
&.is-active {
|
|
2131
|
+
@keyframes droptoup {
|
|
2132
|
+
50% {
|
|
2133
|
+
bottom: -100px;
|
|
2134
|
+
}
|
|
2135
|
+
50% {
|
|
2136
|
+
bottom: -50px;
|
|
2137
|
+
}
|
|
2138
|
+
100% {
|
|
2139
|
+
bottom: 0px;
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
&._refMasterTableBulkWrapper {
|
|
2143
|
+
display: grid;
|
|
2144
|
+
left: 0;
|
|
2145
|
+
animation: droptoup .075s linear;
|
|
2146
|
+
bottom: 0;
|
|
2147
|
+
overflow-x: hidden;
|
|
2148
|
+
& + ._refDropdownOverlay {
|
|
2149
|
+
display: block;
|
|
2150
|
+
width: 100%;
|
|
2151
|
+
height: 100%;
|
|
2152
|
+
position: fixed;
|
|
2153
|
+
top: 0;
|
|
2154
|
+
left: 0;
|
|
2155
|
+
z-index: 100;
|
|
2156
|
+
background-color: rgba(0, 0, 0, .1);
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2159
2160
|
}
|
|
2160
|
-
${
|
|
2161
|
+
${({ $isOpen }) => $isOpen && css`
|
|
2162
|
+
transition: bottom .2s;
|
|
2163
|
+
bottom: 0;
|
|
2164
|
+
@media (max-width: 767.9px) {
|
|
2165
|
+
@keyframes droptoup {
|
|
2166
|
+
50% {
|
|
2167
|
+
bottom: -100px;
|
|
2168
|
+
}
|
|
2169
|
+
50% {
|
|
2170
|
+
bottom: -50px;
|
|
2171
|
+
}
|
|
2172
|
+
100% {
|
|
2173
|
+
bottom: 0px;
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
&._refMasterTableBulkWrapper {
|
|
2177
|
+
display: grid;
|
|
2178
|
+
left: 0;
|
|
2179
|
+
animation: droptoup .075s linear;
|
|
2180
|
+
bottom: 0;
|
|
2181
|
+
overflow-x: hidden;
|
|
2182
|
+
& + ._refDropdownOverlay {
|
|
2183
|
+
display: block;
|
|
2184
|
+
width: 100%;
|
|
2185
|
+
height: 100%;
|
|
2186
|
+
position: fixed;
|
|
2187
|
+
top: 0;
|
|
2188
|
+
left: 0;
|
|
2189
|
+
z-index: 100;
|
|
2190
|
+
background-color: rgba(0, 0, 0, .1);
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
`}
|
|
2161
2195
|
`
|
|
2162
2196
|
export const InitialContainer = styled.span`
|
|
2163
|
-
|
|
2197
|
+
height: 32px;
|
|
2198
|
+
background-color: #000;
|
|
2164
2199
|
align-items: center;
|
|
2165
2200
|
display: grid;
|
|
2166
2201
|
color: #fff;
|
|
2167
|
-
text-align: center;
|
|
2202
|
+
text-align: center !important;
|
|
2168
2203
|
border-radius: var(--ter-rd);
|
|
2204
|
+
width: 100%;
|
|
2169
2205
|
`
|
|
2170
|
-
export const MasterTableActionWrapper = styled.section<{ $mode?:
|
|
2206
|
+
export const MasterTableActionWrapper = styled.section<{ $mode?: 'picklist' }>`
|
|
2171
2207
|
height: 35px;
|
|
2172
2208
|
border-bottom: 1px solid var(--tab-clr-ln);
|
|
2173
2209
|
background-color: var(--pri-clr-bg);
|
|
@@ -2181,20 +2217,16 @@ export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
|
|
|
2181
2217
|
grid-gap: 5px;
|
|
2182
2218
|
}
|
|
2183
2219
|
}
|
|
2184
|
-
${({ $mode }
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
> div {
|
|
2191
|
-
height: 50px !important;
|
|
2192
|
-
}
|
|
2193
|
-
`
|
|
2220
|
+
${({ $mode }) => $mode === 'picklist' && css`
|
|
2221
|
+
background-color: var(--ter-clr-bg);
|
|
2222
|
+
border-top: 1px solid var(--tab-clr-ln);
|
|
2223
|
+
height: 50px;
|
|
2224
|
+
> div {
|
|
2225
|
+
height: 50px !important;
|
|
2194
2226
|
}
|
|
2195
|
-
}
|
|
2227
|
+
`}
|
|
2196
2228
|
`
|
|
2197
|
-
export const FigureWraper = styled.figure<{ $size?: string
|
|
2229
|
+
export const FigureWraper = styled.figure<{ $size?: string }>`
|
|
2198
2230
|
margin: 0;
|
|
2199
2231
|
position: relative;
|
|
2200
2232
|
overflow: hidden;
|
|
@@ -2210,16 +2242,11 @@ export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
|
|
|
2210
2242
|
height: 100%;
|
|
2211
2243
|
background-color: var(--pri-clr-bg);
|
|
2212
2244
|
}
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
height: ${$size};
|
|
2219
|
-
`
|
|
2220
|
-
}
|
|
2221
|
-
return style;
|
|
2222
|
-
}}
|
|
2245
|
+
|
|
2246
|
+
${({ $size }) => $size && css`
|
|
2247
|
+
width:${$size};
|
|
2248
|
+
height:${$size};
|
|
2249
|
+
`}
|
|
2223
2250
|
`
|
|
2224
2251
|
export const PanelBody = styled.section`
|
|
2225
2252
|
height: 100%;
|
|
@@ -2260,10 +2287,13 @@ export const RightPanelContainer = styled.section`
|
|
|
2260
2287
|
`
|
|
2261
2288
|
export const SearchFormWrapper = styled.div<{ $mode?: string }>`
|
|
2262
2289
|
position: relative;
|
|
2290
|
+
input[name='search'] {
|
|
2291
|
+
font-size: 13px;
|
|
2292
|
+
}
|
|
2263
2293
|
i {
|
|
2264
2294
|
position: absolute;
|
|
2265
|
-
left: 12px;
|
|
2266
2295
|
top: 6px;
|
|
2296
|
+
left: 12px;
|
|
2267
2297
|
pointer-events: none;
|
|
2268
2298
|
z-index: 1;
|
|
2269
2299
|
&:last-child {
|
|
@@ -2298,8 +2328,6 @@ export const SearchFormWrapper = styled.div<{ $mode?: string }>`
|
|
|
2298
2328
|
`
|
|
2299
2329
|
}
|
|
2300
2330
|
}}
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
2331
|
`
|
|
2304
2332
|
export const TableHeadLabel = styled.span`
|
|
2305
2333
|
color: var(--mt-clr);
|
|
@@ -2310,6 +2338,7 @@ export const TableHeadLabel = styled.span`
|
|
|
2310
2338
|
display: inline-block;
|
|
2311
2339
|
vertical-align: text-top;
|
|
2312
2340
|
margin-left: 2px;
|
|
2341
|
+
margin-top: 3px;
|
|
2313
2342
|
}
|
|
2314
2343
|
dt {
|
|
2315
2344
|
display: inline;
|
|
@@ -2444,7 +2473,6 @@ export const TabsHeader = styled.article`
|
|
|
2444
2473
|
`
|
|
2445
2474
|
export const TabsItem = styled.div<{ $activated?: boolean }>`
|
|
2446
2475
|
cursor: pointer;
|
|
2447
|
-
letter-spacing: 0.6px;
|
|
2448
2476
|
position: relative;
|
|
2449
2477
|
padding: 9px;
|
|
2450
2478
|
color: ${({ $activated }:{ $activated?: boolean }) => $activated ? 'var(--sec-clr-lnk__hvr)' : 'var(--pri-clr-lnk)'};
|
|
@@ -2479,9 +2507,9 @@ export const TabsWrapper = styled.section<{ $mode?: string }>`
|
|
|
2479
2507
|
overflow: auto;
|
|
2480
2508
|
&.is-sticky {
|
|
2481
2509
|
position: fixed;
|
|
2482
|
-
top:
|
|
2483
|
-
z-index: 9;
|
|
2484
|
-
background-color
|
|
2510
|
+
top: 48px;
|
|
2511
|
+
z-index: 9;
|
|
2512
|
+
background-color: var(--sec-clr-bg);
|
|
2485
2513
|
& + div {
|
|
2486
2514
|
margin-top: 40px;
|
|
2487
2515
|
}
|
|
@@ -2489,14 +2517,26 @@ export const TabsWrapper = styled.section<{ $mode?: string }>`
|
|
|
2489
2517
|
position: relative;
|
|
2490
2518
|
z-index: 10;
|
|
2491
2519
|
}
|
|
2492
|
-
@media only screen and (min-width:
|
|
2493
|
-
|
|
2520
|
+
@media only screen and (min-width: 1280px) {
|
|
2521
|
+
width: calc(100vw - 187px);
|
|
2522
|
+
left: 202px;
|
|
2523
|
+
}
|
|
2524
|
+
@media only screen and (min-width: 1366px) {
|
|
2525
|
+
width: calc(100vw - 220px);
|
|
2526
|
+
left: 220px;
|
|
2527
|
+
}
|
|
2528
|
+
@media only screen and (min-width: 1800px) {
|
|
2529
|
+
padding: 0 20px 0 28px;
|
|
2494
2530
|
}
|
|
2495
2531
|
}
|
|
2496
2532
|
${getTabsWrapperModFunc}
|
|
2497
2533
|
`
|
|
2498
2534
|
export const TableItemColumn = styled.div<{ $mode?: string }>`
|
|
2499
2535
|
display: grid;
|
|
2536
|
+
&._refFooterContainer {
|
|
2537
|
+
font-weight: 600;
|
|
2538
|
+
border-top: 1px solid var(--pri-clr-ln);
|
|
2539
|
+
}
|
|
2500
2540
|
> div {
|
|
2501
2541
|
padding: 10px 0;
|
|
2502
2542
|
&:last-child {
|
|
@@ -2514,16 +2554,9 @@ export const TableItemColumn = styled.div<{ $mode?: string }>`
|
|
|
2514
2554
|
}
|
|
2515
2555
|
&.cell-action {
|
|
2516
2556
|
display: grid;
|
|
2557
|
+
grid-gap: 4px;
|
|
2517
2558
|
align-items: start;
|
|
2518
|
-
|
|
2519
|
-
}
|
|
2520
|
-
&._refFooterContainer {
|
|
2521
|
-
font-weight: 600;
|
|
2522
|
-
border-top: 1px solid var(--pri-clr-ln);
|
|
2523
|
-
}
|
|
2524
|
-
&._refItemContainer {
|
|
2525
|
-
${TableColumnGroup} {
|
|
2526
|
-
grid-gap: 10px;
|
|
2559
|
+
align-content: start;
|
|
2527
2560
|
}
|
|
2528
2561
|
}
|
|
2529
2562
|
${getTableItemModFunc}
|
|
@@ -2634,15 +2667,17 @@ export const CollapseContainer = styled.div<{ $mode?: 'nav' }>`
|
|
|
2634
2667
|
`}
|
|
2635
2668
|
`
|
|
2636
2669
|
export const PaginationContainer = styled.div`
|
|
2637
|
-
margin:
|
|
2670
|
+
margin: 9px auto 10px;
|
|
2638
2671
|
display: inline-grid;
|
|
2639
2672
|
width: 100%;
|
|
2640
2673
|
grid-gap: 12px;
|
|
2674
|
+
padding: 8px 0 8px;
|
|
2641
2675
|
@media only screen and (min-width: 768px) {
|
|
2642
|
-
margin:
|
|
2676
|
+
margin: 9px auto 30px;
|
|
2677
|
+
padding: 16px 0 16px;
|
|
2643
2678
|
}
|
|
2644
2679
|
`
|
|
2645
|
-
export const PageWrapper = styled.div<{ $mode?:
|
|
2680
|
+
export const PageWrapper = styled.div<{ $mode?: 'noPageOption' }>`
|
|
2646
2681
|
display: grid;
|
|
2647
2682
|
grid-auto-flow: row;
|
|
2648
2683
|
grid-gap: 10px;
|
|
@@ -2677,9 +2712,15 @@ export const PageWrapper = styled.div<{ $mode?: string }>`
|
|
|
2677
2712
|
justify-content: start;
|
|
2678
2713
|
}
|
|
2679
2714
|
}
|
|
2680
|
-
${
|
|
2715
|
+
${({ $mode }) => $mode === 'noPageOption' && css`
|
|
2716
|
+
@media only screen and (min-width: 768px) {
|
|
2717
|
+
> div:first-child {
|
|
2718
|
+
justify-content: center;
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
`}
|
|
2681
2722
|
`
|
|
2682
|
-
export const PageButton = styled.div<{ $activated?: boolean,
|
|
2723
|
+
export const PageButton = styled.div<{ $activated?: boolean, disabled?: boolean }>`
|
|
2683
2724
|
display: grid;
|
|
2684
2725
|
justify-content: center;
|
|
2685
2726
|
align-content: center;
|
|
@@ -2687,10 +2728,6 @@ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean
|
|
|
2687
2728
|
height: 28px;
|
|
2688
2729
|
width: auto;
|
|
2689
2730
|
min-width: 28px;
|
|
2690
|
-
border: 1px solid var(--ck-clr-ln);
|
|
2691
|
-
cursor: pointer;
|
|
2692
|
-
border-radius: var(--ter-rd);
|
|
2693
|
-
box-shadow: none;
|
|
2694
2731
|
${buttonStyle}
|
|
2695
2732
|
&:hover {
|
|
2696
2733
|
${buttonHoverStyle}
|
|
@@ -2701,7 +2738,19 @@ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean
|
|
|
2701
2738
|
i {
|
|
2702
2739
|
margin-top: -3px;
|
|
2703
2740
|
}
|
|
2704
|
-
|
|
2741
|
+
|
|
2742
|
+
${({ $activated }) => $activated && css`
|
|
2743
|
+
${buttonActiveStyle}
|
|
2744
|
+
`}
|
|
2745
|
+
|
|
2746
|
+
${({ disabled }) => disabled && css`
|
|
2747
|
+
&, &:hover {
|
|
2748
|
+
background: var(--mt-clr-bg);
|
|
2749
|
+
border-color: var(--ck-clr-ln);
|
|
2750
|
+
opacity: .5;
|
|
2751
|
+
cursor: default;
|
|
2752
|
+
}
|
|
2753
|
+
`}
|
|
2705
2754
|
`
|
|
2706
2755
|
export const PageLabel = styled.span`
|
|
2707
2756
|
font-size: 12px;
|
|
@@ -2739,7 +2788,7 @@ export const FilterContainer = styled.article`
|
|
|
2739
2788
|
justify-content: left;
|
|
2740
2789
|
}
|
|
2741
2790
|
`
|
|
2742
|
-
export const SearchFilterContainer = styled.div<{ $mode?:
|
|
2791
|
+
export const SearchFilterContainer = styled.div<{ $mode?: 'detail' }>`
|
|
2743
2792
|
width: 100%;
|
|
2744
2793
|
margin-bottom: 16px !important;
|
|
2745
2794
|
> article {
|
|
@@ -2759,9 +2808,11 @@ export const SearchFilterContainer = styled.div<{ $mode?: string }>`
|
|
|
2759
2808
|
justify-items: unset;
|
|
2760
2809
|
}
|
|
2761
2810
|
}
|
|
2762
|
-
${
|
|
2811
|
+
${({ $mode }) => $mode === 'detail' && css`
|
|
2812
|
+
padding-bottom: 10px;
|
|
2813
|
+
`}
|
|
2763
2814
|
`
|
|
2764
|
-
export const SearchWrapper = styled.div<{ width?: string }>`
|
|
2815
|
+
export const SearchWrapper = styled.div<{ $width?: string }>`
|
|
2765
2816
|
display: grid;
|
|
2766
2817
|
grid-template-columns: 148px 1fr;
|
|
2767
2818
|
position: relative;
|
|
@@ -2792,7 +2843,17 @@ export const SearchWrapper = styled.div<{ width?: string }>`
|
|
|
2792
2843
|
@media only screen and (min-width: 1366px) {
|
|
2793
2844
|
width: 400px;
|
|
2794
2845
|
}
|
|
2795
|
-
${
|
|
2846
|
+
${({ $width }) => {
|
|
2847
|
+
if ($width) {
|
|
2848
|
+
const _width = $width ? parseInt($width) : 0;
|
|
2849
|
+
return css`
|
|
2850
|
+
grid-template-columns: ${(_width)+'px'} 1fr;
|
|
2851
|
+
button {
|
|
2852
|
+
width: ${$width};
|
|
2853
|
+
}
|
|
2854
|
+
`
|
|
2855
|
+
}
|
|
2856
|
+
}}
|
|
2796
2857
|
`
|
|
2797
2858
|
export const ButtonGroup = styled.div`
|
|
2798
2859
|
position: relative;
|
|
@@ -2807,16 +2868,28 @@ export const ButtonGroup = styled.div`
|
|
|
2807
2868
|
color: var(--mt-clr);
|
|
2808
2869
|
padding: 0 12px;
|
|
2809
2870
|
}
|
|
2810
|
-
> button
|
|
2871
|
+
> button,
|
|
2811
2872
|
._refContainer {
|
|
2812
2873
|
border-right: 1px solid var(--sec-clr-ln);
|
|
2813
|
-
&:last-child
|
|
2874
|
+
&:last-child{
|
|
2814
2875
|
border-right: 0;
|
|
2815
2876
|
}
|
|
2816
2877
|
}
|
|
2817
2878
|
._refContainer {
|
|
2818
2879
|
max-width: 200px;
|
|
2819
2880
|
}
|
|
2881
|
+
@media only screen and (min-width: 768px) {
|
|
2882
|
+
> button {
|
|
2883
|
+
padding: 0 10px;
|
|
2884
|
+
font-size: 13px;
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
@media only screen and (min-width: 1280px) {
|
|
2888
|
+
> button {
|
|
2889
|
+
padding: 0 12px;
|
|
2890
|
+
font-size: var(--pri-ft-sz);
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2820
2893
|
`
|
|
2821
2894
|
export const FilterWrapper = styled.section`
|
|
2822
2895
|
display: inline-block;
|
|
@@ -2856,6 +2929,10 @@ export const FilterWrapper = styled.section`
|
|
|
2856
2929
|
max-width: 100%;
|
|
2857
2930
|
}
|
|
2858
2931
|
}
|
|
2932
|
+
> div:nth-child(n+2) {
|
|
2933
|
+
display: inline-block;
|
|
2934
|
+
width: 48.35% !important;
|
|
2935
|
+
}
|
|
2859
2936
|
> article {
|
|
2860
2937
|
float: left
|
|
2861
2938
|
}
|
|
@@ -2869,7 +2946,7 @@ export const FilterWrapper = styled.section`
|
|
|
2869
2946
|
margin-top: 0;
|
|
2870
2947
|
padding-left: 8px;
|
|
2871
2948
|
grid-auto-flow: column;
|
|
2872
|
-
grid-gap:
|
|
2949
|
+
grid-gap: 8px;
|
|
2873
2950
|
display: grid;
|
|
2874
2951
|
> section {
|
|
2875
2952
|
width: auto !important;
|
|
@@ -2879,6 +2956,9 @@ export const FilterWrapper = styled.section`
|
|
|
2879
2956
|
align-items: center;
|
|
2880
2957
|
margin-top: 0px;
|
|
2881
2958
|
}
|
|
2959
|
+
&:first-child {
|
|
2960
|
+
padding-left: 0;
|
|
2961
|
+
}
|
|
2882
2962
|
${ButtonGroup} {
|
|
2883
2963
|
margin-bottom: 0;
|
|
2884
2964
|
}
|
|
@@ -2886,27 +2966,380 @@ export const FilterWrapper = styled.section`
|
|
|
2886
2966
|
`
|
|
2887
2967
|
export const ListTableContainer = styled.div`
|
|
2888
2968
|
display: grid;
|
|
2889
|
-
grid-gap: 16px;
|
|
2890
2969
|
padding: 0 .625em 10px;
|
|
2891
|
-
overflow: hidden;
|
|
2892
2970
|
@media only screen and (min-width: 375px) {
|
|
2893
|
-
padding: 0
|
|
2971
|
+
padding: 0 20px;
|
|
2894
2972
|
}
|
|
2895
2973
|
@media only screen and (min-width: 1024px) {
|
|
2896
2974
|
padding: 0;
|
|
2897
2975
|
}
|
|
2976
|
+
@media only screen and (min-width: 1800px) {
|
|
2977
|
+
padding: 0 16px 0 9px;
|
|
2978
|
+
}
|
|
2898
2979
|
`
|
|
2899
2980
|
export const ItemTable = styled.section``
|
|
2900
|
-
|
|
2981
|
+
const listTableStyles = {
|
|
2982
|
+
item: css`
|
|
2983
|
+
${ItemTable} {
|
|
2984
|
+
grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) var(--time) minmax(88px, auto);
|
|
2985
|
+
&[role=rowheader] > div[role=group],
|
|
2986
|
+
&[role=row] > div[role=cellgroup] > div[role=rowgroup],
|
|
2987
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
2988
|
+
._refCollapseContainer > div {
|
|
2989
|
+
grid-template-columns: var(--variant) var(--sku) var(--qty-big) var(--price) var(--status-big);
|
|
2990
|
+
}
|
|
2991
|
+
input[name=checkbox-list] {
|
|
2992
|
+
& + span {
|
|
2993
|
+
top: 8px;
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
`,
|
|
2998
|
+
listing: css`
|
|
2999
|
+
${ItemTable} {
|
|
3000
|
+
grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) minmax(88px, auto);
|
|
3001
|
+
&[role=rowheader] > div[role=group],
|
|
3002
|
+
&[role=row] > div[role=cellgroup] > div[role=rowgroup],
|
|
3003
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3004
|
+
._refCollapseContainer > div {
|
|
3005
|
+
grid-template-columns: var(--variant) var(--sku) var(--sku) minmax(95px, 115px) var(--price) var(--status-small);
|
|
3006
|
+
}
|
|
3007
|
+
input[name=checkbox-list] {
|
|
3008
|
+
& + span {
|
|
3009
|
+
top: 8px;
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
`,
|
|
3014
|
+
quantity: css`
|
|
3015
|
+
${overflowStyle}
|
|
3016
|
+
${ItemTable} {
|
|
3017
|
+
${overflowItemTableStyle}
|
|
3018
|
+
.column-product {
|
|
3019
|
+
min-width: calc(var(--item-min) + 25px);
|
|
3020
|
+
max-width: calc(var(--item-max) + 25px);
|
|
3021
|
+
flex: 1;
|
|
3022
|
+
}
|
|
3023
|
+
.column-master-sku {
|
|
3024
|
+
min-width: calc(var(--sku-min) + 12px);
|
|
3025
|
+
max-width: calc(var(--sku-max) + 12px);
|
|
3026
|
+
flex: 1;
|
|
3027
|
+
}
|
|
3028
|
+
.column-warehouse {
|
|
3029
|
+
min-width: calc(var(--warehouse-min) + 12px);
|
|
3030
|
+
max-width: calc(var(--warehouse-max) + 12px);
|
|
3031
|
+
flex: 3;
|
|
3032
|
+
}
|
|
3033
|
+
.column-on-hand-total {
|
|
3034
|
+
min-width: 87px;
|
|
3035
|
+
max-width: 97px;
|
|
3036
|
+
flex: 2;
|
|
3037
|
+
}
|
|
3038
|
+
.column-on-hand-damage {
|
|
3039
|
+
min-width: 97px;
|
|
3040
|
+
max-width: 102px;
|
|
3041
|
+
flex: 2;
|
|
3042
|
+
}
|
|
3043
|
+
.column-on-hand-normal {
|
|
3044
|
+
min-width: 97px;
|
|
3045
|
+
max-width: 102px;
|
|
3046
|
+
flex: 2;
|
|
3047
|
+
}
|
|
3048
|
+
.column-reserved-orders {
|
|
3049
|
+
min-width: 87px;
|
|
3050
|
+
max-width: 97px;
|
|
3051
|
+
flex: 2;
|
|
3052
|
+
}
|
|
3053
|
+
.column-picked {
|
|
3054
|
+
min-width: 87px;
|
|
3055
|
+
max-width: 97px;
|
|
3056
|
+
flex: 2;
|
|
3057
|
+
}
|
|
3058
|
+
.column-packed {
|
|
3059
|
+
min-width: 87px;
|
|
3060
|
+
max-width: 97px;
|
|
3061
|
+
flex: 2;
|
|
3062
|
+
}
|
|
3063
|
+
.column-handover {
|
|
3064
|
+
min-width: calc(var(--qty-big-min) + 12px);
|
|
3065
|
+
max-width: calc(var(--qty-big-max) + 12px);
|
|
3066
|
+
flex: 2;
|
|
3067
|
+
}
|
|
3068
|
+
.column-promotion-allocation {
|
|
3069
|
+
min-width: calc(var(--qty-big-min) + 12px);
|
|
3070
|
+
max-width: calc(var(--qty-big-max) + 12px);
|
|
3071
|
+
flex: 2;
|
|
3072
|
+
}
|
|
3073
|
+
.column-available-to-sell {
|
|
3074
|
+
min-width: 95px;
|
|
3075
|
+
max-width: 97px;
|
|
3076
|
+
flex: 2;
|
|
3077
|
+
}
|
|
3078
|
+
.column-in-transit {
|
|
3079
|
+
min-width: 95px;
|
|
3080
|
+
max-width: 105px;
|
|
3081
|
+
flex: 2;
|
|
3082
|
+
}
|
|
3083
|
+
.column-waiting-inbound {
|
|
3084
|
+
min-width: 95px;
|
|
3085
|
+
max-width: 98px;
|
|
3086
|
+
flex: 2;
|
|
3087
|
+
}
|
|
3088
|
+
.column-inbounded {
|
|
3089
|
+
min-width: 110px;
|
|
3090
|
+
max-width: 115px;
|
|
3091
|
+
flex: 2;
|
|
3092
|
+
}
|
|
3093
|
+
.column-waiting-outbound {
|
|
3094
|
+
min-width: 110px;
|
|
3095
|
+
max-width: 112px;
|
|
3096
|
+
flex: 2;
|
|
3097
|
+
}
|
|
3098
|
+
.column-last-updated {
|
|
3099
|
+
min-width: calc(var(--time-min) + 12px);
|
|
3100
|
+
max-width: calc(var(--time-max) + 12px);
|
|
3101
|
+
flex: 2;
|
|
3102
|
+
}
|
|
3103
|
+
.column-actions {
|
|
3104
|
+
min-width: 96px;
|
|
3105
|
+
flex: 1;
|
|
3106
|
+
padding-right: 12px !important;
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
`,
|
|
3110
|
+
picklist: css`
|
|
3111
|
+
${ItemTable} {
|
|
3112
|
+
grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--ref) var(--time) minmax(185px, auto);
|
|
3113
|
+
}
|
|
3114
|
+
`,
|
|
3115
|
+
package: css`
|
|
3116
|
+
${ItemTable} {
|
|
3117
|
+
grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--person) var(--ref) var(--time) minmax(110px, auto);
|
|
3118
|
+
}
|
|
3119
|
+
`,
|
|
3120
|
+
shipment: css`
|
|
3121
|
+
${ItemTable} {
|
|
3122
|
+
grid-template-columns: var(--checkbox) var(--time) var(--id-big) var(--status) minmax(80px, 160px) minmax(80px, 160px) minmax(95px, 160px) var(--ref) minmax(140px, auto);
|
|
3123
|
+
}
|
|
3124
|
+
`,
|
|
3125
|
+
invoice: css`
|
|
3126
|
+
${ItemTable} {
|
|
3127
|
+
grid-template-columns: var(--checkbox) var(--id-big) var(--status-small) var(--store) var(--price) var(--price) var(--ref) var(--person) var(--time) minmax(180px, auto);
|
|
3128
|
+
@media only screen and (max-width: 1279px) {
|
|
3129
|
+
width: unset;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
`,
|
|
3133
|
+
'payment-receive': css`
|
|
3134
|
+
${ItemTable} {
|
|
3135
|
+
grid-template-columns: var(--time) 155px var(--person) var(--qty) var(--price) minmax(110px, auto);
|
|
3136
|
+
}
|
|
3137
|
+
`,
|
|
3138
|
+
'sales-return': css`
|
|
3139
|
+
${ItemTable} {
|
|
3140
|
+
grid-template-columns: var(--id-big) var(--status) var(--warehouse) var(--person) var(--person) var(--ref-big) var(--time) minmax(120px, auto);
|
|
3141
|
+
}
|
|
3142
|
+
`,
|
|
3143
|
+
activity: css`
|
|
3144
|
+
${ItemTable} {
|
|
3145
|
+
grid-template-columns: var(--time) var(--id-big) var(--item) var(--status) var(--email) var(--status) var(--status) minmax(110px, auto);
|
|
3146
|
+
}
|
|
3147
|
+
`,
|
|
3148
|
+
putaway: css`
|
|
3149
|
+
${ItemTable} {
|
|
3150
|
+
grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) var(--person) var(--time) minmax(60px, auto);
|
|
3151
|
+
}
|
|
3152
|
+
`,
|
|
3153
|
+
inbound: css`
|
|
3154
|
+
${ItemTable} {
|
|
3155
|
+
grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 160px) var(--person) var(--time) minmax(170px, auto);
|
|
3156
|
+
}
|
|
3157
|
+
`,
|
|
3158
|
+
lowstock: css`
|
|
3159
|
+
${ItemTable} {
|
|
3160
|
+
grid-template-columns: var(--checkbox) var(--item) var(--variant) var(--sku) var(--warehouse) var(--qty-big) var(--statusnow) var(--time) minmax(60px, auto);
|
|
3161
|
+
}
|
|
3162
|
+
`,
|
|
3163
|
+
price: css`
|
|
3164
|
+
${ItemTable} {
|
|
3165
|
+
grid-template-columns: var(--time) var(--id-big) var(--status) var(--qty) var(--email) var(--status) minmax(60px, auto);
|
|
3166
|
+
}
|
|
3167
|
+
`,
|
|
3168
|
+
'stock-adjustment': css`
|
|
3169
|
+
${ItemTable} {
|
|
3170
|
+
grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 150px) var(--person) var(--time) minmax(160px, auto);
|
|
3171
|
+
}
|
|
3172
|
+
`,
|
|
3173
|
+
'stock-outbound': css`
|
|
3174
|
+
${ItemTable} {
|
|
3175
|
+
grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(150px,160px) var(--person) var(--time) minmax(160px, auto);
|
|
3176
|
+
}
|
|
3177
|
+
`,
|
|
3178
|
+
'stock-transfer': css`
|
|
3179
|
+
${ItemTable} {
|
|
3180
|
+
grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--warehouse) minmax(90px, 100px) var(--person) var(--time) minmax(160px, auto);
|
|
3181
|
+
}
|
|
3182
|
+
`,
|
|
3183
|
+
promotion: css`
|
|
3184
|
+
${ItemTable} {
|
|
3185
|
+
grid-template-columns: var(--store) var(--id-big) var(--ref-big) minmax(100px,160px) var(--status-small) var(--time) var(--time) minmax(42px, 88px) var(--time) minmax(62px, auto);
|
|
3186
|
+
}
|
|
3187
|
+
`,
|
|
3188
|
+
'stock-history': css`
|
|
3189
|
+
${ItemTable} {
|
|
3190
|
+
grid-template-columns: minmax(120px, 360px) var(--sku) var(--warehouse) minmax(85px,120px) minmax(105px,190px) var(--qty-small) var(--qty-small) minmax(68px, 100px) var(--time) minmax(75px, 88px);
|
|
3191
|
+
> *:last-child {
|
|
3192
|
+
display: unset;
|
|
3193
|
+
justify-content: unset;
|
|
3194
|
+
}
|
|
3195
|
+
@media only screen and (max-width: 1279px) {
|
|
3196
|
+
width: unset;
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
`,
|
|
3200
|
+
'price-history': css`
|
|
3201
|
+
${ItemTable} {
|
|
3202
|
+
@media only screen and (max-width: 1279px) {
|
|
3203
|
+
width: unset;
|
|
3204
|
+
}
|
|
3205
|
+
> *:last-child {
|
|
3206
|
+
display: unset;
|
|
3207
|
+
justify-content: unset;
|
|
3208
|
+
}
|
|
3209
|
+
grid-template-columns: minmax(110px,146px) minmax(120px,360px) var(--sku) var(--store) minmax(75px,120px) minmax(85px,120px) minmax(75px,120px) minmax(80px,120px) var(--time) var(--status) minmax(75px,88px);
|
|
3210
|
+
}
|
|
3211
|
+
`,
|
|
3212
|
+
turnover: css`
|
|
3213
|
+
${ItemTable} {
|
|
3214
|
+
@media only screen and (max-width: 1279px) {
|
|
3215
|
+
width: unset;
|
|
3216
|
+
}
|
|
3217
|
+
> *:last-child {
|
|
3218
|
+
display: unset;
|
|
3219
|
+
justify-content: unset;
|
|
3220
|
+
}
|
|
3221
|
+
grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) repeat(4, var(--qty)) minmax(75px,88px);
|
|
3222
|
+
}
|
|
3223
|
+
`,
|
|
3224
|
+
'days-outofstock': css`
|
|
3225
|
+
${ItemTable} {
|
|
3226
|
+
@media only screen and (max-width: 1279px) {
|
|
3227
|
+
width: unset;
|
|
3228
|
+
}
|
|
3229
|
+
> *:last-child {
|
|
3230
|
+
display: unset;
|
|
3231
|
+
justify-content: unset;
|
|
3232
|
+
}
|
|
3233
|
+
grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) var(--qty-big) var(--qty) var(--qty-big) var(--time) minmax(75px,88px);
|
|
3234
|
+
}
|
|
3235
|
+
`,
|
|
3236
|
+
warehouses: css`
|
|
3237
|
+
${ItemTable} {
|
|
3238
|
+
grid-template-columns: var(--warehouse) var(--status) var(--id-big) var(--qty-big) var(--time) minmax(110px, auto);
|
|
3239
|
+
}
|
|
3240
|
+
`,
|
|
3241
|
+
archived: css`
|
|
3242
|
+
${ItemTable} {
|
|
3243
|
+
grid-template-columns: var(--time-pd20) minmax(auto, max-content) minmax(88px, auto);
|
|
3244
|
+
&[role=rowheader] > div[role=group],
|
|
3245
|
+
&[role=row] > div[role=cellgroup] > div[role=rowgroup],
|
|
3246
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3247
|
+
._refCollapseContainer > div {
|
|
3248
|
+
grid-template-columns: var(--sku) var(--item);
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
`,
|
|
3252
|
+
order: css`
|
|
3253
|
+
${ItemTable} {
|
|
3254
|
+
grid-template-columns: var(--checkbox) 118px 90px minmax(auto, max-content);
|
|
3255
|
+
input[name=checkbox-list]{
|
|
3256
|
+
& + span {
|
|
3257
|
+
top: 8px;
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
&[role=rowheader] > div[role=group] {
|
|
3261
|
+
grid-template-columns: var(--order) 40px 80px 80px 88px minmax(145px, auto);
|
|
3262
|
+
}
|
|
3263
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3264
|
+
._refCollapseContainer > div {
|
|
3265
|
+
grid-template-columns: var(--order) 40px 80px 80px;
|
|
3266
|
+
}
|
|
3267
|
+
&[role=row] > div[role=cellgroup] > div[role=rowgroup],
|
|
3268
|
+
._refCollapse > div,
|
|
3269
|
+
._refCollapseContainer > div {
|
|
3270
|
+
&:nth-child(n+2) {
|
|
3271
|
+
border-top: none;
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
@media only screen and (min-width: 1280px) {
|
|
3276
|
+
${ItemTable} {
|
|
3277
|
+
grid-template-columns: var(--checkbox) 118px 118px minmax(auto, max-content);
|
|
3278
|
+
&[role=rowheader] > div[role=group] {
|
|
3279
|
+
grid-template-columns: var(--order) 40px 80px 80px 107px minmax(145px, auto);
|
|
3280
|
+
}
|
|
3281
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3282
|
+
._refCollapseContainer > div {
|
|
3283
|
+
grid-template-columns: var(--order) 40px 80px 80px;
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
@media only screen and (min-width: 1366px) {
|
|
3288
|
+
${ItemTable} {
|
|
3289
|
+
grid-template-columns: var(--checkbox) 120px 118px minmax(auto, max-content);
|
|
3290
|
+
&[role=rowheader] > div[role=group] {
|
|
3291
|
+
grid-template-columns: var(--order) 40px 90px 80px 130px minmax(150px, auto);
|
|
3292
|
+
}
|
|
3293
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3294
|
+
._refCollapseContainer > div {
|
|
3295
|
+
grid-template-columns: var(--order) 40px 90px 80px;
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
@media only screen and (min-width: 1800px) {
|
|
3300
|
+
${ItemTable} {
|
|
3301
|
+
grid-template-columns: var(--checkbox) minmax(125px, 170px) minmax(85px, 145px) minmax(auto, max-content);
|
|
3302
|
+
&[role=rowheader] > div[role=group] {
|
|
3303
|
+
grid-template-columns: var(--order) 50px 110px 130px 130px minmax(50px, 2000px);
|
|
3304
|
+
}
|
|
3305
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3306
|
+
._refCollapseContainer > div {
|
|
3307
|
+
grid-template-columns: var(--order) 50px 110px 130px;
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
@media only screen and (min-width: 1920px) {
|
|
3312
|
+
${ItemTable} {
|
|
3313
|
+
&[role=rowheader] > div[role=group] {
|
|
3314
|
+
grid-template-columns: var(--order) 50px 110px 145px 130px minmax(50px, 2000px);
|
|
3315
|
+
}
|
|
3316
|
+
._refCollapse > div:not(._refCollapseContainer),
|
|
3317
|
+
._refCollapseContainer > div {
|
|
3318
|
+
grid-template-columns: var(--order) 50px 110px 145px;
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
`,
|
|
3323
|
+
'table-customheader': css`
|
|
3324
|
+
${overflowStyle}
|
|
3325
|
+
${ItemTable} {
|
|
3326
|
+
${overflowItemTableStyle}
|
|
3327
|
+
> *:last-child {
|
|
3328
|
+
display: block;
|
|
3329
|
+
justify-content: inherit;
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
`,
|
|
3333
|
+
} as const
|
|
3334
|
+
export const ListTable = styled.main<{ $mode?: ModeListTableColumn }>`
|
|
2901
3335
|
position: relative;
|
|
2902
3336
|
width: 100%;
|
|
2903
3337
|
overflow-x: auto;
|
|
2904
3338
|
${ItemTable} {
|
|
2905
|
-
|
|
3339
|
+
padding: 8px 0 8px 0;
|
|
3340
|
+
width: calc(100% - 20px);
|
|
2906
3341
|
min-width: 975px;
|
|
2907
3342
|
border-bottom: 1px solid var(--ter-clr-ln);
|
|
2908
|
-
margin: 9px 9px 9px 10px;
|
|
2909
|
-
padding: 16px 12px 16px 19px;
|
|
2910
3343
|
display: inline-grid;
|
|
2911
3344
|
grid-gap: 12px;
|
|
2912
3345
|
align-items: start;
|
|
@@ -2918,12 +3351,11 @@ export const ListTable = styled.main<{ $mode?: string }>`
|
|
|
2918
3351
|
align-items: start;
|
|
2919
3352
|
grid-gap: 12px;
|
|
2920
3353
|
}
|
|
2921
|
-
&[role=rowheader],
|
|
2922
|
-
&:nth-child(2) {
|
|
3354
|
+
&[role=rowheader], &:nth-child(2) {
|
|
2923
3355
|
border-top: 0;
|
|
2924
3356
|
}
|
|
2925
3357
|
&[role=rowheader] {
|
|
2926
|
-
padding:
|
|
3358
|
+
padding: 1em 0 1em 0;
|
|
2927
3359
|
border-bottom: 1px solid #e8e8ec;
|
|
2928
3360
|
color: var(--mt-clr);
|
|
2929
3361
|
position: relative;
|
|
@@ -2933,40 +3365,45 @@ export const ListTable = styled.main<{ $mode?: string }>`
|
|
|
2933
3365
|
font-size: .875rem;
|
|
2934
3366
|
}
|
|
2935
3367
|
&[role=row] {
|
|
2936
|
-
|
|
2937
|
-
margin-bottom: 0;
|
|
3368
|
+
padding: 1.25em 0 1.25em 0;
|
|
2938
3369
|
}
|
|
2939
3370
|
&[role=row] > div[role=cellgroup] > div[role=rowgroup],
|
|
2940
3371
|
._refCollapse > div,
|
|
2941
3372
|
._refCollapseContainer > div {
|
|
2942
|
-
padding-bottom: 1em;
|
|
2943
3373
|
&:nth-child(n+2) {
|
|
2944
3374
|
border-top: 1px solid rgba(227, 227, 227, .7);
|
|
2945
3375
|
padding-top: 16px;
|
|
2946
3376
|
}
|
|
2947
|
-
&:last-child {
|
|
2948
|
-
padding-bottom: 0;
|
|
2949
|
-
}
|
|
2950
3377
|
}
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
justify-content: end;
|
|
3378
|
+
._refCollapseContainer {
|
|
3379
|
+
padding-bottom: 0;
|
|
2954
3380
|
}
|
|
2955
3381
|
input[name=checkbox-selectAll] {
|
|
2956
3382
|
& + span {
|
|
2957
3383
|
top: 50%;
|
|
2958
3384
|
}
|
|
2959
3385
|
}
|
|
2960
|
-
input[name=checkbox-list]
|
|
3386
|
+
input[name=checkbox-list]{
|
|
2961
3387
|
& + span {
|
|
2962
3388
|
top: 0;
|
|
2963
3389
|
}
|
|
2964
3390
|
}
|
|
2965
|
-
|
|
2966
|
-
|
|
3391
|
+
> *:last-child {
|
|
3392
|
+
display: grid;
|
|
3393
|
+
justify-content: end;
|
|
2967
3394
|
}
|
|
2968
3395
|
}
|
|
2969
|
-
|
|
3396
|
+
@media only screen and (min-width: 1024px) {
|
|
3397
|
+
${ItemTable} {
|
|
3398
|
+
&[role=rowheader],
|
|
3399
|
+
&[role=row] {
|
|
3400
|
+
margin: 0 10px;
|
|
3401
|
+
padding-left: 9px;
|
|
3402
|
+
padding-right: 9px;
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
${({ $mode }) => $mode && $mode in listTableStyles ? listTableStyles[$mode] : ''}
|
|
2970
3407
|
`
|
|
2971
3408
|
export const DateWrapper = styled.div`
|
|
2972
3409
|
display: grid;
|
|
@@ -2998,13 +3435,13 @@ export const DropdownTitle = styled.div`
|
|
|
2998
3435
|
font-style: normal;
|
|
2999
3436
|
}
|
|
3000
3437
|
`
|
|
3001
|
-
export const DropdownList = styled.ul<{ $mode?:
|
|
3438
|
+
export const DropdownList = styled.ul<{ $mode?: 'no-border' }>`
|
|
3002
3439
|
${clearList}
|
|
3003
3440
|
max-height: 44vh;
|
|
3004
3441
|
overflow: auto;
|
|
3005
3442
|
> li {
|
|
3006
3443
|
padding: 8px 1em;
|
|
3007
|
-
border-bottom: ${({ $mode }:{ $mode?:
|
|
3444
|
+
border-bottom: ${({ $mode }:{ $mode?: 'no-border' }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
|
|
3008
3445
|
&:last-child {
|
|
3009
3446
|
border-bottom: 0;
|
|
3010
3447
|
}
|
|
@@ -3013,7 +3450,7 @@ export const DropdownList = styled.ul<{ $mode?: string }>`
|
|
|
3013
3450
|
max-height: 50vh;
|
|
3014
3451
|
}
|
|
3015
3452
|
`
|
|
3016
|
-
export const DropdownItem = styled.li<{ $mode?:
|
|
3453
|
+
export const DropdownItem = styled.li<{ $mode?: 'categories' }>`
|
|
3017
3454
|
display: inline-grid;
|
|
3018
3455
|
width: 100%;
|
|
3019
3456
|
grid-gap: 10px;
|
|
@@ -3023,60 +3460,84 @@ export const DropdownItem = styled.li<{ $mode?: string }>`
|
|
|
3023
3460
|
grid-auto-flow: column;
|
|
3024
3461
|
grid-template-columns: 100px auto;
|
|
3025
3462
|
}
|
|
3026
|
-
${({ $mode }
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
cursor: pointer;
|
|
3036
|
-
text-transform: capitalize;
|
|
3037
|
-
}
|
|
3038
|
-
@media only screen and (min-width: 768px) {
|
|
3039
|
-
grid-template-columns: 22px auto;
|
|
3040
|
-
}
|
|
3041
|
-
`
|
|
3463
|
+
${({ $mode }) => $mode === 'categories' && css`
|
|
3464
|
+
grid-auto-flow: column;
|
|
3465
|
+
grid-template-columns: 22px auto;
|
|
3466
|
+
min-height: 33px;
|
|
3467
|
+
align-items: center;
|
|
3468
|
+
grid-gap: 0;
|
|
3469
|
+
> label {
|
|
3470
|
+
cursor: pointer;
|
|
3471
|
+
text-transform: capitalize;
|
|
3042
3472
|
}
|
|
3043
|
-
|
|
3473
|
+
@media only screen and (min-width: 768px) {
|
|
3474
|
+
grid-template-columns: 22px auto;
|
|
3475
|
+
}
|
|
3476
|
+
`}
|
|
3044
3477
|
`
|
|
3045
3478
|
export const DropdownAction = styled.div`
|
|
3046
3479
|
padding: .8em 1em 1em;
|
|
3047
3480
|
display: grid;
|
|
3048
3481
|
grid-auto-flow: column;
|
|
3049
3482
|
justify-content: end;
|
|
3050
|
-
grid-gap:
|
|
3483
|
+
grid-gap: 4px;
|
|
3051
3484
|
border-top: 1px solid var(--sec-clr-ln);
|
|
3052
3485
|
`
|
|
3053
3486
|
export const FilterList = styled.ul`
|
|
3054
3487
|
${clearList}
|
|
3055
3488
|
`
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
display: none;
|
|
3059
|
-
}
|
|
3060
|
-
> label {
|
|
3489
|
+
rt const FilterItem = styled.li`
|
|
3490
|
+
&._refCheckbox {
|
|
3061
3491
|
display: block;
|
|
3062
3492
|
float: left;
|
|
3063
|
-
padding: 8px 10px;
|
|
3064
3493
|
margin-right: 4px;
|
|
3065
3494
|
margin-bottom: 8px;
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3495
|
+
> label {
|
|
3496
|
+
padding-left: 0 !important;
|
|
3497
|
+
input, span {
|
|
3498
|
+
display: none !important;
|
|
3499
|
+
}
|
|
3500
|
+
aside {
|
|
3501
|
+
padding: 8px 10px;
|
|
3502
|
+
border: 1px solid transparent;
|
|
3503
|
+
outline: 1px solid transparent;
|
|
3504
|
+
cursor: pointer;
|
|
3505
|
+
font-size: 13px;
|
|
3506
|
+
}
|
|
3507
|
+
input:checked~aside {
|
|
3508
|
+
border: 1px solid var(--sel-clr-ln);
|
|
3509
|
+
outline: 1px solid var(--sel-clr-ln);
|
|
3510
|
+
color: var(--ter-clr);
|
|
3511
|
+
border-radius: var(--sec-rd);
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3070
3514
|
}
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3515
|
+
&:not(._refCheckbox) {
|
|
3516
|
+
> input {
|
|
3517
|
+
display: none;
|
|
3518
|
+
}
|
|
3519
|
+
> label {
|
|
3520
|
+
display: block;
|
|
3521
|
+
float: left;
|
|
3522
|
+
padding: 8px 10px;
|
|
3523
|
+
margin-right: 4px;
|
|
3524
|
+
margin-bottom: 8px;
|
|
3525
|
+
border: 1px solid transparent;
|
|
3526
|
+
outline: 1px solid transparent;
|
|
3527
|
+
cursor: pointer;
|
|
3528
|
+
font-size: 13px;
|
|
3529
|
+
}
|
|
3530
|
+
> input:checked + label {
|
|
3531
|
+
border: 1px solid var(--sel-clr-ln);
|
|
3532
|
+
outline: 1px solid var(--sel-clr-ln);
|
|
3533
|
+
color: var(--ter-clr);
|
|
3534
|
+
border-radius: var(--sec-rd);
|
|
3535
|
+
}
|
|
3076
3536
|
}
|
|
3077
3537
|
`
|
|
3078
3538
|
export const FilterListTitle = styled.strong`
|
|
3079
3539
|
padding-top: 8px;
|
|
3540
|
+
font-size: 13px;
|
|
3080
3541
|
`
|
|
3081
3542
|
export const FilterButton = styled.div`
|
|
3082
3543
|
display: grid;
|
|
@@ -3084,7 +3545,7 @@ export const FilterButton = styled.div`
|
|
|
3084
3545
|
grid-template-columns: 1fr auto;
|
|
3085
3546
|
gap: 4px;
|
|
3086
3547
|
`
|
|
3087
|
-
export const IconDot = styled.span<{ $mode?:
|
|
3548
|
+
export const IconDot = styled.span<{ $mode?: 'list' | 'header' }>`
|
|
3088
3549
|
display: grid;
|
|
3089
3550
|
min-width: 18px;
|
|
3090
3551
|
height: 18px;
|
|
@@ -3096,13 +3557,27 @@ export const IconDot = styled.span<{ $mode?: string }>`
|
|
|
3096
3557
|
text-align: center;
|
|
3097
3558
|
padding: 0px 4px;
|
|
3098
3559
|
border-radius: var(--ter-rd);
|
|
3099
|
-
${
|
|
3560
|
+
${({ $mode }) => ($mode === 'list' || $mode === 'header') && css`
|
|
3561
|
+
position: absolute;
|
|
3562
|
+
top: 0;
|
|
3563
|
+
left: 0;
|
|
3564
|
+
transform: scale(1) translate(-50%, -50%);
|
|
3565
|
+
transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
3566
|
+
transform-origin: 100% 0%;
|
|
3567
|
+
${($mode === 'header') && css`
|
|
3568
|
+
left: unset;
|
|
3569
|
+
right: 0;
|
|
3570
|
+
z-index: 99;
|
|
3571
|
+
transform: scale(1) translate(50%, -50%);
|
|
3572
|
+
`}
|
|
3573
|
+
`}
|
|
3100
3574
|
`
|
|
3101
3575
|
export const SortByWrapper = styled.section`
|
|
3102
3576
|
justify-self: end;
|
|
3103
3577
|
margin-top: 10px;
|
|
3104
3578
|
display: grid;
|
|
3105
3579
|
justify-content: end;
|
|
3580
|
+
max-width: 280px;
|
|
3106
3581
|
@media only screen and (min-width: 768px) {
|
|
3107
3582
|
margin-top: 0;
|
|
3108
3583
|
padding-left: 10px;
|
|
@@ -3110,7 +3585,6 @@ export const SortByWrapper = styled.section`
|
|
|
3110
3585
|
`
|
|
3111
3586
|
export const DetailWrapper = styled.section`
|
|
3112
3587
|
width: 100%;
|
|
3113
|
-
border-top: 1px solid var(--lay-clr-ln);
|
|
3114
3588
|
padding-bottom: 16px;
|
|
3115
3589
|
@media only screen and (min-width: 768px) {
|
|
3116
3590
|
padding-bottom: 16px;
|
|
@@ -3120,11 +3594,10 @@ export const DetailWrapper = styled.section`
|
|
|
3120
3594
|
}
|
|
3121
3595
|
`
|
|
3122
3596
|
export const CardContainer = styled.section`
|
|
3123
|
-
|
|
3124
|
-
background: #FFFFFF;
|
|
3597
|
+
background: var(--ter-clr-bg);
|
|
3125
3598
|
border: 1px solid rgb(232, 232, 232);
|
|
3126
3599
|
border-radius: var(--sec-rd);
|
|
3127
|
-
margin-bottom:
|
|
3600
|
+
margin-bottom: 16px;
|
|
3128
3601
|
min-height: 72px;
|
|
3129
3602
|
display: grid;
|
|
3130
3603
|
align-items: center;
|
|
@@ -3133,8 +3606,30 @@ export const CardContainer = styled.section`
|
|
|
3133
3606
|
min-height: 92px;
|
|
3134
3607
|
}
|
|
3135
3608
|
`
|
|
3136
|
-
|
|
3137
|
-
|
|
3609
|
+
const globalEmptyCss = css`
|
|
3610
|
+
text-align: center;
|
|
3611
|
+
color: var(--mt-clr);
|
|
3612
|
+
`
|
|
3613
|
+
export const CardWrapper = styled.div<{ $mode?: 'empty' | 'empty-invoice' }>`
|
|
3614
|
+
${({ $mode }) => ($mode === 'empty' || $mode === 'empty-invoice') && css`
|
|
3615
|
+
${globalEmptyCss}
|
|
3616
|
+
`}
|
|
3617
|
+
|
|
3618
|
+
${({ $mode }) => $mode === 'empty-invoice' && css`
|
|
3619
|
+
> div {
|
|
3620
|
+
display: grid;
|
|
3621
|
+
align-content: center;
|
|
3622
|
+
grid-gap: 4px;
|
|
3623
|
+
margin: 0 16px;
|
|
3624
|
+
}
|
|
3625
|
+
`}
|
|
3626
|
+
|
|
3627
|
+
${({ $mode }) => !$mode && css`
|
|
3628
|
+
width: 958px;
|
|
3629
|
+
@media only screen and (min-width: 1024px) {
|
|
3630
|
+
width: unset;
|
|
3631
|
+
}
|
|
3632
|
+
`}
|
|
3138
3633
|
`
|
|
3139
3634
|
export const DetailList = styled.ul<{ $mode?: string }>`
|
|
3140
3635
|
${clearList}
|
|
@@ -3191,6 +3686,7 @@ export const DetailItemInfo = styled.article`
|
|
|
3191
3686
|
span {
|
|
3192
3687
|
text-transform: capitalize;
|
|
3193
3688
|
overflow-wrap: anywhere;
|
|
3689
|
+
line-height: 16px;
|
|
3194
3690
|
}
|
|
3195
3691
|
`
|
|
3196
3692
|
export const DetailItem = styled.li`
|
|
@@ -3225,6 +3721,13 @@ export const DetailItemWrapper = styled.article`
|
|
|
3225
3721
|
`
|
|
3226
3722
|
export const DetailPanelWrapper = styled.section`
|
|
3227
3723
|
min-height: 66px;
|
|
3724
|
+
padding-left: 10px !important;
|
|
3725
|
+
padding-right: 9px !important;
|
|
3726
|
+
@media only screen and (min-width: 1024px) {
|
|
3727
|
+
> section {
|
|
3728
|
+
margin: 0 10px;
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3228
3731
|
`
|
|
3229
3732
|
export const PopupBoxWrapper = styled.article`
|
|
3230
3733
|
display: grid;
|
|
@@ -3255,8 +3758,9 @@ export const CreateContainer = styled.section<{ $mode?: string }>`
|
|
|
3255
3758
|
background-color: var(--pri-clr-bg);
|
|
3256
3759
|
${getCreateContainerModFunc}
|
|
3257
3760
|
`
|
|
3258
|
-
export const CreateHeaderWrapper = styled.article<{ $mode?:
|
|
3259
|
-
|
|
3761
|
+
export const CreateHeaderWrapper = styled.article<{ $mode?: 'edit-master' }>`
|
|
3762
|
+
display: inline-grid;
|
|
3763
|
+
width: 100%;
|
|
3260
3764
|
padding: 26px 15px 14px;
|
|
3261
3765
|
background-color: var(--hd-clr-bg);
|
|
3262
3766
|
grid-auto-flow: row;
|
|
@@ -3265,8 +3769,8 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
|
|
|
3265
3769
|
article {
|
|
3266
3770
|
display: grid;
|
|
3267
3771
|
grid-auto-flow: column;
|
|
3268
|
-
grid-template-columns:
|
|
3269
|
-
grid-gap:
|
|
3772
|
+
grid-template-columns: max-content 1fr;
|
|
3773
|
+
grid-gap: 10px;
|
|
3270
3774
|
align-items: center;
|
|
3271
3775
|
label {
|
|
3272
3776
|
font-weight: 600;
|
|
@@ -3291,10 +3795,14 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
|
|
|
3291
3795
|
grid-auto-flow: column;
|
|
3292
3796
|
}
|
|
3293
3797
|
.title {
|
|
3294
|
-
font-size:
|
|
3798
|
+
font-size: 30px;
|
|
3295
3799
|
}
|
|
3296
3800
|
}
|
|
3297
|
-
${
|
|
3801
|
+
${({ $mode }) => $mode === 'edit-master' && css`
|
|
3802
|
+
aside {
|
|
3803
|
+
grid-template-rows: none;
|
|
3804
|
+
}
|
|
3805
|
+
`}
|
|
3298
3806
|
`
|
|
3299
3807
|
export const CreateToolWrapper = styled.article<{ $mode?: string, $type?: string }>`
|
|
3300
3808
|
padding: 20px 15px;
|
|
@@ -3439,7 +3947,7 @@ export const SearchResultList = styled.section`
|
|
|
3439
3947
|
overflow-y: auto;
|
|
3440
3948
|
overflow-x: hidden;
|
|
3441
3949
|
height: auto;
|
|
3442
|
-
max-height:
|
|
3950
|
+
max-height: 360px;
|
|
3443
3951
|
`
|
|
3444
3952
|
export const SearchResultItem = styled.div`
|
|
3445
3953
|
border-bottom: 1px solid var(--ter-clr-ln);
|
|
@@ -3456,6 +3964,7 @@ export const SearchResultItem = styled.div`
|
|
|
3456
3964
|
export const ListAddItemContainer = styled.div`
|
|
3457
3965
|
overflow: auto;
|
|
3458
3966
|
height: 400px;
|
|
3967
|
+
font-size: 13px;
|
|
3459
3968
|
`
|
|
3460
3969
|
export const SearchWrapperPopup = styled.div`
|
|
3461
3970
|
position: relative;
|
|
@@ -3476,14 +3985,19 @@ export const SearchWrapperPopup = styled.div`
|
|
|
3476
3985
|
export const PopupAddProductContainer = styled.section`
|
|
3477
3986
|
margin-top: 1em;
|
|
3478
3987
|
`
|
|
3479
|
-
export const PopupCard = styled.section<{ $mode?:
|
|
3988
|
+
export const PopupCard = styled.section<{ $mode?: 'mass-payment' }>`
|
|
3480
3989
|
padding: 1em;
|
|
3481
3990
|
background-color: var(--sec-clr-bg);
|
|
3482
3991
|
margin-bottom: 1em;
|
|
3483
3992
|
@media only screen and (min-width: 768px) {
|
|
3484
3993
|
padding: 1em 120px;
|
|
3485
3994
|
}
|
|
3486
|
-
${
|
|
3995
|
+
${({ $mode }) => $mode === 'mass-payment' && css`
|
|
3996
|
+
margin: 0;
|
|
3997
|
+
@media only screen and (min-width: 768px) {
|
|
3998
|
+
padding: 1em 24px;
|
|
3999
|
+
}
|
|
4000
|
+
`}
|
|
3487
4001
|
`
|
|
3488
4002
|
export const PopupExportCardWrapper = styled.article`
|
|
3489
4003
|
display: grid;
|
|
@@ -3563,7 +4077,6 @@ export const NavContainerStyles = css`
|
|
|
3563
4077
|
}
|
|
3564
4078
|
}
|
|
3565
4079
|
`
|
|
3566
|
-
|
|
3567
4080
|
export const NavContainer = styled.nav`
|
|
3568
4081
|
${NavContainerStyles}
|
|
3569
4082
|
`
|
|
@@ -3683,9 +4196,9 @@ export const NavMainItemWrapper = styled.div`
|
|
|
3683
4196
|
}
|
|
3684
4197
|
`
|
|
3685
4198
|
export const TotalLabel = styled.span`
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
`
|
|
4199
|
+
font-weight: 600;
|
|
4200
|
+
padding-top: 6px;
|
|
4201
|
+
`
|
|
3689
4202
|
export const FilterColumnContainer = styled.section`
|
|
3690
4203
|
display: grid;
|
|
3691
4204
|
justify-content: end;
|