@wizishop/angular-components 0.0.73 → 0.0.74
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/angular-components.scss +263 -262
- package/bundles/wizishop-angular-components.umd.js +19 -8
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +1 -1
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/button/button.component.js +2 -2
- package/esm2015/lib/components/tree/tree.component.js +6 -3
- package/esm2015/lib/components/tree/tree.dto.js +1 -1
- package/esm2015/lib/pipes/tree/format-object-to-recursif-tree.pipe.js +9 -4
- package/esm2015/lib/pipes/tree/format-object-to-simple-tree.pipe.js +8 -4
- package/fesm2015/wizishop-angular-components.js +21 -9
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/tree/tree.component.d.ts +1 -0
- package/lib/components/tree/tree.dto.d.ts +2 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.74.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.73.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -1934,86 +1934,145 @@ $wac-color-success-popup-alert: #6DCC95!default;
|
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
|
-
.wac-
|
|
1937
|
+
.wac-free-popin {
|
|
1938
|
+
height: 100%;
|
|
1938
1939
|
width: 100%;
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1940
|
+
width: 100vw;
|
|
1941
|
+
height: 100vh;
|
|
1942
|
+
position: fixed;
|
|
1943
|
+
top: 0;
|
|
1944
|
+
left: 0;
|
|
1945
|
+
z-index: 9999;
|
|
1946
|
+
|
|
1947
|
+
&__wrapper {
|
|
1948
|
+
background-color: white;
|
|
1949
|
+
border: 1px solid $wac-border-color;
|
|
1950
|
+
border-radius: 3px;
|
|
1951
|
+
margin: auto;
|
|
1952
|
+
box-shadow: 0px 10px 40px $wac-free-popin-boxshadow;
|
|
1953
|
+
position: absolute;
|
|
1954
|
+
left: 50%;
|
|
1955
|
+
top: 50%;
|
|
1956
|
+
transform: translate(-50%, -50%);
|
|
1957
|
+
padding: 50px;
|
|
1958
|
+
z-index: 3;
|
|
1959
|
+
max-height: 90vh;
|
|
1960
|
+
display: flex;
|
|
1961
|
+
flex-wrap: nowrap;
|
|
1962
|
+
flex-direction: column;
|
|
1963
|
+
justify-content: center;
|
|
1964
|
+
align-items: center;
|
|
1943
1965
|
width: 100%;
|
|
1944
|
-
|
|
1945
|
-
|
|
1966
|
+
max-width: 575px;
|
|
1967
|
+
overflow: hidden;
|
|
1968
|
+
|
|
1969
|
+
&__content {
|
|
1970
|
+
position: relative;
|
|
1971
|
+
overflow: hidden;
|
|
1972
|
+
display: flex;
|
|
1973
|
+
> * {
|
|
1974
|
+
height: auto;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
div:not([class]) {
|
|
1979
|
+
width: 100%;
|
|
1980
|
+
margin: 0 0 17px;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
> * {
|
|
1946
1984
|
width: 100%;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
&__button-close {
|
|
1988
|
+
position: absolute;
|
|
1989
|
+
top: 10px;
|
|
1990
|
+
right: 10px;
|
|
1991
|
+
width: 30px;
|
|
1992
|
+
height: 30px;
|
|
1993
|
+
border-radius: 50%;
|
|
1947
1994
|
display: flex;
|
|
1948
|
-
justify-content:
|
|
1995
|
+
justify-content: center;
|
|
1949
1996
|
align-items: center;
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1997
|
+
background-color: $wac-popin-btn-close;
|
|
1998
|
+
transition: .3s ease;
|
|
1999
|
+
i {
|
|
2000
|
+
color: $wac-second-color;
|
|
2001
|
+
font-size: 14px;
|
|
2002
|
+
font-weight: 400;
|
|
1956
2003
|
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
align-content: center;
|
|
1962
|
-
margin: 0 10px 0 0;
|
|
1963
|
-
@include media('<tablet') {
|
|
1964
|
-
width: 100%;
|
|
1965
|
-
margin: 0 0 30px;
|
|
1966
|
-
}
|
|
1967
|
-
a {
|
|
1968
|
-
display: flex;
|
|
1969
|
-
min-width: 40px;
|
|
1970
|
-
height: 40px;
|
|
1971
|
-
border-radius: 3px;
|
|
1972
|
-
border: 1px solid $wac-border-light;
|
|
1973
|
-
margin: 0 20px 0 0;
|
|
1974
|
-
transition: 0.3s ease;
|
|
1975
|
-
justify-content: center;
|
|
1976
|
-
align-items: center;
|
|
1977
|
-
i {
|
|
1978
|
-
font-size: rem(12);
|
|
1979
|
-
font-weight: 400;
|
|
1980
|
-
color: $wac-second-color;
|
|
1981
|
-
}
|
|
1982
|
-
&:hover,
|
|
1983
|
-
&:focus {
|
|
1984
|
-
background-color: $wizishop-blue;
|
|
1985
|
-
border-color: $wizishop-blue;
|
|
1986
|
-
i {
|
|
1987
|
-
color: $white;
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
& + * {
|
|
1991
|
-
@include media('>=tablet') {
|
|
1992
|
-
white-space: nowrap;
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
2004
|
+
&:hover, &:focus {
|
|
2005
|
+
background-color: $wac-main-text;
|
|
2006
|
+
i {
|
|
2007
|
+
color: $wac-white;
|
|
1995
2008
|
}
|
|
1996
2009
|
}
|
|
1997
|
-
|
|
1998
|
-
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
h1 {
|
|
2013
|
+
font-size: rem(30);
|
|
2014
|
+
line-height: rem(35);
|
|
2015
|
+
font-weight: 600;
|
|
2016
|
+
color: $wac-main-text;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
h2 {
|
|
2020
|
+
font-size: rem(18);
|
|
2021
|
+
line-height: rem(21);
|
|
2022
|
+
font-weight: 500;
|
|
2023
|
+
color: $wac-main-text;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
h3 {
|
|
2027
|
+
font-size: rem(16);
|
|
2028
|
+
line-height: rem(19);
|
|
2029
|
+
font-weight: 500;
|
|
2030
|
+
color: $wac-main-text;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
h4 {
|
|
2034
|
+
font-size: rem(14);
|
|
2035
|
+
line-height: rem(16);
|
|
2036
|
+
font-weight: 500;
|
|
2037
|
+
color: $wac-main-text;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
img {
|
|
2041
|
+
width: auto;
|
|
2042
|
+
height: auto;
|
|
2043
|
+
margin: 0 auto;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
&__title {
|
|
2047
|
+
font: normal normal bold 20px/25px sans-serif;
|
|
2048
|
+
color: $wac-main-text;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
&__buttons {
|
|
2052
|
+
width: 100%;
|
|
1999
2053
|
display: flex;
|
|
2000
|
-
|
|
2054
|
+
flex-direction: column;
|
|
2001
2055
|
align-items: center;
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
margin: 0;
|
|
2007
|
-
justify-content: center;
|
|
2008
|
-
}
|
|
2009
|
-
> * {
|
|
2010
|
-
&:not(:last-child) {
|
|
2011
|
-
margin: 0 20px 0 0;
|
|
2012
|
-
}
|
|
2056
|
+
margin: 30px 0 0;
|
|
2057
|
+
&__button {
|
|
2058
|
+
margin: 10px;
|
|
2059
|
+
width: auto;
|
|
2013
2060
|
}
|
|
2014
|
-
}
|
|
2015
2061
|
}
|
|
2016
2062
|
}
|
|
2063
|
+
&__background {
|
|
2064
|
+
z-index: 1;
|
|
2065
|
+
position: absolute;
|
|
2066
|
+
top: 0;
|
|
2067
|
+
left: 0;
|
|
2068
|
+
width: 100%;
|
|
2069
|
+
height: 100%;
|
|
2070
|
+
background-color: transparentize($wac-main-text, .5);
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
.wac-free-popin .ps-content > * {
|
|
2075
|
+
padding-right: 15px;
|
|
2017
2076
|
}
|
|
2018
2077
|
.wac-table {
|
|
2019
2078
|
width: 100%;
|
|
@@ -4105,84 +4164,82 @@ h1.wac-h1 {
|
|
|
4105
4164
|
line-height: rem(30);
|
|
4106
4165
|
}
|
|
4107
4166
|
}
|
|
4108
|
-
.wac-
|
|
4167
|
+
.wac-header-page {
|
|
4109
4168
|
width: 100%;
|
|
4110
|
-
|
|
4169
|
+
background-color: transparent;
|
|
4170
|
+
position: relative;
|
|
4171
|
+
z-index: 2;
|
|
4172
|
+
&__maxWidth {
|
|
4111
4173
|
width: 100%;
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
align-items: center;
|
|
4116
|
-
align-content: center;
|
|
4117
|
-
button {
|
|
4118
|
-
position: relative;
|
|
4119
|
-
width: auto;
|
|
4174
|
+
margin: 0 auto;
|
|
4175
|
+
&__top {
|
|
4176
|
+
width: 100%;
|
|
4120
4177
|
display: flex;
|
|
4178
|
+
justify-content: space-between;
|
|
4121
4179
|
align-items: center;
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
background: transparent;
|
|
4129
|
-
box-shadow: none;
|
|
4130
|
-
margin-bottom: rem(10);
|
|
4131
|
-
transition: 0.3s ease;
|
|
4132
|
-
cursor: pointer;
|
|
4133
|
-
padding: 12px 20px;
|
|
4134
|
-
.event {
|
|
4135
|
-
position: absolute;
|
|
4136
|
-
top: 0;
|
|
4137
|
-
left: 0;
|
|
4138
|
-
width: 100%;
|
|
4139
|
-
height: 100%;
|
|
4140
|
-
z-index: 2;
|
|
4141
|
-
display: inline-block;
|
|
4142
|
-
}
|
|
4143
|
-
i {
|
|
4144
|
-
color: $wac-main-text;
|
|
4145
|
-
font-size: rem(14);
|
|
4146
|
-
margin: 0 rem(10) 0 0;
|
|
4147
|
-
}
|
|
4148
|
-
&:hover,
|
|
4149
|
-
&:focus,
|
|
4150
|
-
&.active {
|
|
4151
|
-
border-color: $wac-wizishop-blue;
|
|
4152
|
-
color: $wac-main-text;
|
|
4153
|
-
}
|
|
4154
|
-
&:not(:last-child) {
|
|
4155
|
-
margin: 0 rem(10) rem(10) 0;
|
|
4180
|
+
margin: 0 0 27px;
|
|
4181
|
+
@include media('<tablet') {
|
|
4182
|
+
flex-wrap: wrap;
|
|
4183
|
+
justify-content: flex-start;
|
|
4184
|
+
align-items: flex-start;
|
|
4185
|
+
margin: 0;
|
|
4156
4186
|
}
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4187
|
+
&__left {
|
|
4188
|
+
width: auto;
|
|
4189
|
+
display: flex;
|
|
4190
|
+
align-items: center;
|
|
4191
|
+
align-content: center;
|
|
4192
|
+
margin: 0 10px 0 0;
|
|
4193
|
+
@include media('<tablet') {
|
|
4194
|
+
width: 100%;
|
|
4195
|
+
margin: 0 0 30px;
|
|
4196
|
+
}
|
|
4197
|
+
a {
|
|
4198
|
+
display: flex;
|
|
4199
|
+
min-width: 40px;
|
|
4200
|
+
height: 40px;
|
|
4201
|
+
border-radius: 3px;
|
|
4202
|
+
border: 1px solid $wac-border-light;
|
|
4203
|
+
margin: 0 20px 0 0;
|
|
4204
|
+
transition: 0.3s ease;
|
|
4205
|
+
justify-content: center;
|
|
4206
|
+
align-items: center;
|
|
4207
|
+
i {
|
|
4208
|
+
font-size: rem(12);
|
|
4209
|
+
font-weight: 400;
|
|
4210
|
+
color: $wac-second-color;
|
|
4211
|
+
}
|
|
4212
|
+
&:hover,
|
|
4213
|
+
&:focus {
|
|
4214
|
+
background-color: $wizishop-blue;
|
|
4215
|
+
border-color: $wizishop-blue;
|
|
4216
|
+
i {
|
|
4217
|
+
color: $white;
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
& + * {
|
|
4221
|
+
@include media('>=tablet') {
|
|
4222
|
+
white-space: nowrap;
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4180
4226
|
}
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4227
|
+
&__right {
|
|
4228
|
+
width: 100%;
|
|
4229
|
+
display: flex;
|
|
4230
|
+
justify-content: flex-end;
|
|
4231
|
+
align-items: center;
|
|
4232
|
+
align-content: center;
|
|
4233
|
+
margin: 0 0 0 10px;
|
|
4234
|
+
@include media('<tablet') {
|
|
4235
|
+
width: 100%;
|
|
4236
|
+
margin: 0;
|
|
4237
|
+
justify-content: center;
|
|
4238
|
+
}
|
|
4239
|
+
> * {
|
|
4240
|
+
&:not(:last-child) {
|
|
4241
|
+
margin: 0 20px 0 0;
|
|
4242
|
+
}
|
|
4186
4243
|
}
|
|
4187
4244
|
}
|
|
4188
4245
|
}
|
|
@@ -5669,6 +5726,7 @@ div.wac-field-input-search {
|
|
|
5669
5726
|
position: absolute;
|
|
5670
5727
|
right: 1px;
|
|
5671
5728
|
top: 1px;
|
|
5729
|
+
height: 38px;
|
|
5672
5730
|
color: $wac-second-color;
|
|
5673
5731
|
font-size: rem(14);
|
|
5674
5732
|
padding: 7.5px 20px;
|
|
@@ -5691,145 +5749,88 @@ div.wac-field-input-search {
|
|
|
5691
5749
|
color: $wac-green-color;
|
|
5692
5750
|
font-size: rem(14);
|
|
5693
5751
|
}
|
|
5694
|
-
.wac-
|
|
5695
|
-
height: 100%;
|
|
5752
|
+
.wac-filters {
|
|
5696
5753
|
width: 100%;
|
|
5697
|
-
width: 100vw;
|
|
5698
|
-
height: 100vh;
|
|
5699
|
-
position: fixed;
|
|
5700
|
-
top: 0;
|
|
5701
|
-
left: 0;
|
|
5702
|
-
z-index: 9999;
|
|
5703
|
-
|
|
5704
5754
|
&__wrapper {
|
|
5705
|
-
|
|
5706
|
-
border: 1px solid $wac-border-color;
|
|
5707
|
-
border-radius: 3px;
|
|
5708
|
-
margin: auto;
|
|
5709
|
-
box-shadow: 0px 10px 40px $wac-free-popin-boxshadow;
|
|
5710
|
-
position: absolute;
|
|
5711
|
-
left: 50%;
|
|
5712
|
-
top: 50%;
|
|
5713
|
-
transform: translate(-50%, -50%);
|
|
5714
|
-
padding: 50px;
|
|
5715
|
-
z-index: 3;
|
|
5716
|
-
max-height: 90vh;
|
|
5755
|
+
width: 100%;
|
|
5717
5756
|
display: flex;
|
|
5718
|
-
flex-wrap:
|
|
5719
|
-
|
|
5720
|
-
justify-content: center;
|
|
5757
|
+
flex-wrap: wrap;
|
|
5758
|
+
justify-content: flex-start;
|
|
5721
5759
|
align-items: center;
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
overflow: hidden;
|
|
5725
|
-
|
|
5726
|
-
&__content {
|
|
5760
|
+
align-content: center;
|
|
5761
|
+
button {
|
|
5727
5762
|
position: relative;
|
|
5728
|
-
|
|
5729
|
-
display: flex;
|
|
5730
|
-
> * {
|
|
5731
|
-
height: auto;
|
|
5732
|
-
}
|
|
5733
|
-
}
|
|
5734
|
-
|
|
5735
|
-
div:not([class]) {
|
|
5736
|
-
width: 100%;
|
|
5737
|
-
margin: 0 0 17px;
|
|
5738
|
-
}
|
|
5739
|
-
|
|
5740
|
-
> * {
|
|
5741
|
-
width: 100%;
|
|
5742
|
-
}
|
|
5743
|
-
|
|
5744
|
-
&__button-close {
|
|
5745
|
-
position: absolute;
|
|
5746
|
-
top: 10px;
|
|
5747
|
-
right: 10px;
|
|
5748
|
-
width: 30px;
|
|
5749
|
-
height: 30px;
|
|
5750
|
-
border-radius: 50%;
|
|
5763
|
+
width: auto;
|
|
5751
5764
|
display: flex;
|
|
5752
|
-
justify-content: center;
|
|
5753
5765
|
align-items: center;
|
|
5754
|
-
|
|
5755
|
-
|
|
5766
|
+
font-size: rem(14);
|
|
5767
|
+
line-height: rem(16);
|
|
5768
|
+
font-weight: 400;
|
|
5769
|
+
color: $wac-second-color;
|
|
5770
|
+
border: 1px solid $wac-border-light;
|
|
5771
|
+
border-radius: 3px;
|
|
5772
|
+
background: transparent;
|
|
5773
|
+
box-shadow: none;
|
|
5774
|
+
margin-bottom: rem(10);
|
|
5775
|
+
transition: 0.3s ease;
|
|
5776
|
+
cursor: pointer;
|
|
5777
|
+
padding: 12px 20px;
|
|
5778
|
+
.event {
|
|
5779
|
+
position: absolute;
|
|
5780
|
+
top: 0;
|
|
5781
|
+
left: 0;
|
|
5782
|
+
width: 100%;
|
|
5783
|
+
height: 100%;
|
|
5784
|
+
z-index: 2;
|
|
5785
|
+
display: inline-block;
|
|
5786
|
+
}
|
|
5756
5787
|
i {
|
|
5757
|
-
color: $wac-
|
|
5758
|
-
font-size:
|
|
5759
|
-
|
|
5788
|
+
color: $wac-main-text;
|
|
5789
|
+
font-size: rem(14);
|
|
5790
|
+
margin: 0 rem(10) 0 0;
|
|
5760
5791
|
}
|
|
5761
|
-
&:hover,
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5792
|
+
&:hover,
|
|
5793
|
+
&:focus,
|
|
5794
|
+
&.active {
|
|
5795
|
+
border-color: $wac-wizishop-blue;
|
|
5796
|
+
color: $wac-main-text;
|
|
5797
|
+
}
|
|
5798
|
+
&:not(:last-child) {
|
|
5799
|
+
margin: 0 rem(10) rem(10) 0;
|
|
5766
5800
|
}
|
|
5767
5801
|
}
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
color: $wac-main-text;
|
|
5774
|
-
}
|
|
5775
|
-
|
|
5776
|
-
h2 {
|
|
5777
|
-
font-size: rem(18);
|
|
5778
|
-
line-height: rem(21);
|
|
5779
|
-
font-weight: 500;
|
|
5780
|
-
color: $wac-main-text;
|
|
5781
|
-
}
|
|
5782
|
-
|
|
5783
|
-
h3 {
|
|
5784
|
-
font-size: rem(16);
|
|
5785
|
-
line-height: rem(19);
|
|
5786
|
-
font-weight: 500;
|
|
5787
|
-
color: $wac-main-text;
|
|
5788
|
-
}
|
|
5789
|
-
|
|
5790
|
-
h4 {
|
|
5802
|
+
> span {
|
|
5803
|
+
position: relative;
|
|
5804
|
+
color: $wac-link-color;
|
|
5805
|
+
display: inline-block;
|
|
5806
|
+
transition: 0.3s ease;
|
|
5791
5807
|
font-size: rem(14);
|
|
5792
5808
|
line-height: rem(16);
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
&__button {
|
|
5815
|
-
margin: 10px;
|
|
5816
|
-
width: auto;
|
|
5809
|
+
margin: 0 0 0 rem(30);
|
|
5810
|
+
cursor: pointer;
|
|
5811
|
+
z-index: 1;
|
|
5812
|
+
&:before {
|
|
5813
|
+
content: '';
|
|
5814
|
+
display: block;
|
|
5815
|
+
position: absolute;
|
|
5816
|
+
width: 100%;
|
|
5817
|
+
max-width: 0;
|
|
5818
|
+
height: 1px;
|
|
5819
|
+
border-radius: 3px;
|
|
5820
|
+
background-color: darken($wac-link-color, 15%);
|
|
5821
|
+
left: 0;
|
|
5822
|
+
bottom: -2px;
|
|
5823
|
+
transition: 0.3s ease;
|
|
5824
|
+
}
|
|
5825
|
+
&:hover,
|
|
5826
|
+
&:focus {
|
|
5827
|
+
color: darken($wac-link-color, 15%);
|
|
5828
|
+
&:before {
|
|
5829
|
+
max-width: 100%;
|
|
5817
5830
|
}
|
|
5831
|
+
}
|
|
5818
5832
|
}
|
|
5819
5833
|
}
|
|
5820
|
-
&__background {
|
|
5821
|
-
z-index: 1;
|
|
5822
|
-
position: absolute;
|
|
5823
|
-
top: 0;
|
|
5824
|
-
left: 0;
|
|
5825
|
-
width: 100%;
|
|
5826
|
-
height: 100%;
|
|
5827
|
-
background-color: transparentize($wac-main-text, .5);
|
|
5828
|
-
}
|
|
5829
|
-
}
|
|
5830
|
-
|
|
5831
|
-
.wac-free-popin .ps-content > * {
|
|
5832
|
-
padding-right: 15px;
|
|
5833
5834
|
}
|
|
5834
5835
|
.wac-back {
|
|
5835
5836
|
width: 40px;
|
|
@@ -911,7 +911,7 @@
|
|
|
911
911
|
this.label = '';
|
|
912
912
|
this.icon = '';
|
|
913
913
|
this.widthAuto = false;
|
|
914
|
-
this.contentHorizontalPosition = '
|
|
914
|
+
this.contentHorizontalPosition = 'center';
|
|
915
915
|
this.iconFontSize = 12;
|
|
916
916
|
this.hasLoader = false;
|
|
917
917
|
this.disabled = false;
|
|
@@ -3769,6 +3769,7 @@
|
|
|
3769
3769
|
|
|
3770
3770
|
var TreeComponent = /** @class */ (function () {
|
|
3771
3771
|
function TreeComponent() {
|
|
3772
|
+
this.treeDepth = 0;
|
|
3772
3773
|
}
|
|
3773
3774
|
TreeComponent.prototype.ngOnInit = function () { };
|
|
3774
3775
|
return TreeComponent;
|
|
@@ -3776,12 +3777,13 @@
|
|
|
3776
3777
|
TreeComponent.decorators = [
|
|
3777
3778
|
{ type: i0.Component, args: [{
|
|
3778
3779
|
selector: 'wac-tree',
|
|
3779
|
-
template: "<div *ngFor=\"let item of items; index as i\">\n <ul>\n <li>\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplateRef || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n >\n </ng-container>\n\n <wac-tree [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\"
|
|
3780
|
+
template: "<div *ngFor=\"let item of items; index as i\" [ngClass]=\"['treeDepth-' + treeDepth]\">\n <ul>\n <li>\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplateRef || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n >\n </ng-container>\n\n <wac-tree [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\">\n <!-- Todo maybe pass child template -->\n </wac-tree>\n </li>\n </ul>\n</div>"
|
|
3780
3781
|
},] }
|
|
3781
3782
|
];
|
|
3782
3783
|
TreeComponent.ctorParameters = function () { return []; };
|
|
3783
3784
|
TreeComponent.propDecorators = {
|
|
3784
3785
|
items: [{ type: i0.Input }],
|
|
3786
|
+
treeDepth: [{ type: i0.Input }],
|
|
3785
3787
|
optionTemplateRef: [{ type: i0.ContentChild, args: ["optionTemplate", { static: false },] }]
|
|
3786
3788
|
};
|
|
3787
3789
|
|
|
@@ -3792,15 +3794,19 @@
|
|
|
3792
3794
|
FormatObjectToRecursifTreePipe.prototype.transform = function (objectList, childrenProperties) {
|
|
3793
3795
|
var _this = this;
|
|
3794
3796
|
this.childrenProperties = childrenProperties;
|
|
3795
|
-
|
|
3797
|
+
var treeDepth = 0;
|
|
3798
|
+
objectList.forEach(function (object) { return _this.recursiveFormatObjectToRecursifTree(object, treeDepth); });
|
|
3796
3799
|
return objectList;
|
|
3797
3800
|
};
|
|
3798
|
-
FormatObjectToRecursifTreePipe.prototype.recursiveFormatObjectToRecursifTree = function (object) {
|
|
3801
|
+
FormatObjectToRecursifTreePipe.prototype.recursiveFormatObjectToRecursifTree = function (object, treeDepth) {
|
|
3799
3802
|
var e_1, _a;
|
|
3800
3803
|
try {
|
|
3801
3804
|
for (var _b = __values(this.childrenProperties), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3802
3805
|
var childrenProperty = _c.value;
|
|
3806
|
+
object.hasTreeChrildren = true;
|
|
3803
3807
|
if (!object.hasOwnProperty(childrenProperty)) {
|
|
3808
|
+
// No more chrildren
|
|
3809
|
+
object.hasTreeChrildren = false;
|
|
3804
3810
|
continue;
|
|
3805
3811
|
}
|
|
3806
3812
|
if (Array.isArray(object[childrenProperty])) {
|
|
@@ -3809,7 +3815,7 @@
|
|
|
3809
3815
|
// Add treeChildren property filled with name children property
|
|
3810
3816
|
object.treeChildren = object[childrenProperty];
|
|
3811
3817
|
// call this function recursively until no children can be generated
|
|
3812
|
-
this.recursiveFormatObjectToRecursifTree(object.treeChildren);
|
|
3818
|
+
this.recursiveFormatObjectToRecursifTree(object.treeChildren, treeDepth++);
|
|
3813
3819
|
break;
|
|
3814
3820
|
}
|
|
3815
3821
|
}
|
|
@@ -3820,6 +3826,7 @@
|
|
|
3820
3826
|
}
|
|
3821
3827
|
finally { if (e_1) throw e_1.error; }
|
|
3822
3828
|
}
|
|
3829
|
+
object.treeDepth = treeDepth;
|
|
3823
3830
|
};
|
|
3824
3831
|
return FormatObjectToRecursifTreePipe;
|
|
3825
3832
|
}());
|
|
@@ -3838,10 +3845,11 @@
|
|
|
3838
3845
|
var _this = this;
|
|
3839
3846
|
this.childrenProperties = childrenProperties;
|
|
3840
3847
|
this.labelProperties = labelProperties;
|
|
3841
|
-
|
|
3848
|
+
var treeDepth = 0;
|
|
3849
|
+
objectList.forEach(function (object) { return _this.recursiveFormatObjectToSimpleTree(object, treeDepth); });
|
|
3842
3850
|
return objectList;
|
|
3843
3851
|
};
|
|
3844
|
-
FormatObjectToSimpleTreePipe.prototype.recursiveFormatObjectToSimpleTree = function (object) {
|
|
3852
|
+
FormatObjectToSimpleTreePipe.prototype.recursiveFormatObjectToSimpleTree = function (object, treeDepth) {
|
|
3845
3853
|
for (var property in object) {
|
|
3846
3854
|
if (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
3847
3855
|
continue;
|
|
@@ -3850,7 +3858,10 @@
|
|
|
3850
3858
|
object.treeLabel = object[property];
|
|
3851
3859
|
continue;
|
|
3852
3860
|
}
|
|
3861
|
+
object.hasTreeChrildren = true;
|
|
3853
3862
|
if (!this.childrenProperties.includes(property)) {
|
|
3863
|
+
// No more chrildren
|
|
3864
|
+
object.hasTreeChrildren = false;
|
|
3854
3865
|
continue;
|
|
3855
3866
|
}
|
|
3856
3867
|
if (Array.isArray(object[property])) {
|
|
@@ -3859,7 +3870,7 @@
|
|
|
3859
3870
|
// Add treeChildren property filled with name children property
|
|
3860
3871
|
object.treeChildren = object[property];
|
|
3861
3872
|
// call this function recursively until no children can be generated
|
|
3862
|
-
this.recursiveFormatObjectToSimpleTree(object.treeChildren);
|
|
3873
|
+
this.recursiveFormatObjectToSimpleTree(object.treeChildren, treeDepth++);
|
|
3863
3874
|
break;
|
|
3864
3875
|
}
|
|
3865
3876
|
};
|