@wizishop/angular-components 0.0.73 → 0.0.76

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.
Files changed (30) hide show
  1. package/angular-components.scss +263 -262
  2. package/assets/i18n/en.json +1 -1
  3. package/assets/i18n/fr.json +1 -1
  4. package/bundles/wizishop-angular-components.umd.js +74 -50
  5. package/bundles/wizishop-angular-components.umd.js.map +1 -1
  6. package/bundles/wizishop-angular-components.umd.min.js +1 -1
  7. package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
  8. package/esm2015/lib/components/button/button.component.js +2 -2
  9. package/esm2015/lib/components/selects/select/select.component.js +30 -37
  10. package/esm2015/lib/components/selects/select-items.dto.js +1 -1
  11. package/esm2015/lib/components/shared-components.module.js +3 -1
  12. package/esm2015/lib/components/tree/tree.component.js +8 -5
  13. package/esm2015/lib/components/tree/tree.dto.js +1 -1
  14. package/esm2015/lib/pipes/select/select-filters.pipe.js +15 -0
  15. package/esm2015/lib/pipes/shared-pipes.module.js +7 -3
  16. package/esm2015/lib/pipes/tree/format-object-to-recursif-tree.pipe.js +10 -5
  17. package/esm2015/lib/pipes/tree/format-object-to-simple-tree.pipe.js +9 -5
  18. package/esm2015/public-api.js +2 -1
  19. package/fesm2015/wizishop-angular-components.js +74 -52
  20. package/fesm2015/wizishop-angular-components.js.map +1 -1
  21. package/lib/components/selects/select/select.component.d.ts +10 -10
  22. package/lib/components/selects/select-items.dto.d.ts +1 -1
  23. package/lib/components/tree/tree.component.d.ts +2 -1
  24. package/lib/components/tree/tree.dto.d.ts +2 -0
  25. package/lib/pipes/select/select-filters.pipe.d.ts +5 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +1 -0
  28. package/wizishop-angular-components-0.0.76.tgz +0 -0
  29. package/wizishop-angular-components.metadata.json +1 -1
  30. package/wizishop-angular-components-0.0.73.tgz +0 -0
@@ -1934,86 +1934,145 @@ $wac-color-success-popup-alert: #6DCC95!default;
1934
1934
  }
1935
1935
  }
1936
1936
  }
1937
- .wac-header-page {
1937
+ .wac-free-popin {
1938
+ height: 100%;
1938
1939
  width: 100%;
1939
- background-color: transparent;
1940
- position: relative;
1941
- z-index: 2;
1942
- &__maxWidth {
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
- margin: 0 auto;
1945
- &__top {
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: space-between;
1995
+ justify-content: center;
1949
1996
  align-items: center;
1950
- margin: 0 0 27px;
1951
- @include media('<tablet') {
1952
- flex-wrap: wrap;
1953
- justify-content: flex-start;
1954
- align-items: flex-start;
1955
- margin: 0;
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
- &__left {
1958
- width: auto;
1959
- display: flex;
1960
- align-items: center;
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
- &__right {
1998
- width: 100%;
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
- justify-content: flex-end;
2054
+ flex-direction: column;
2001
2055
  align-items: center;
2002
- align-content: center;
2003
- margin: 0 0 0 10px;
2004
- @include media('<tablet') {
2005
- width: 100%;
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-filters {
4167
+ .wac-header-page {
4109
4168
  width: 100%;
4110
- &__wrapper {
4169
+ background-color: transparent;
4170
+ position: relative;
4171
+ z-index: 2;
4172
+ &__maxWidth {
4111
4173
  width: 100%;
4112
- display: flex;
4113
- flex-wrap: wrap;
4114
- justify-content: flex-start;
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
- font-size: rem(14);
4123
- line-height: rem(16);
4124
- font-weight: 400;
4125
- color: $wac-second-color;
4126
- border: 1px solid $wac-border-light;
4127
- border-radius: 3px;
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
- > span {
4159
- position: relative;
4160
- color: $wac-link-color;
4161
- display: inline-block;
4162
- transition: 0.3s ease;
4163
- font-size: rem(14);
4164
- line-height: rem(16);
4165
- margin: 0 0 0 rem(30);
4166
- cursor: pointer;
4167
- z-index: 1;
4168
- &:before {
4169
- content: '';
4170
- display: block;
4171
- position: absolute;
4172
- width: 100%;
4173
- max-width: 0;
4174
- height: 1px;
4175
- border-radius: 3px;
4176
- background-color: darken($wac-link-color, 15%);
4177
- left: 0;
4178
- bottom: -2px;
4179
- transition: 0.3s ease;
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
- &:hover,
4182
- &:focus {
4183
- color: darken($wac-link-color, 15%);
4184
- &:before {
4185
- max-width: 100%;
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-free-popin {
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
- background-color: white;
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: nowrap;
5719
- flex-direction: column;
5720
- justify-content: center;
5757
+ flex-wrap: wrap;
5758
+ justify-content: flex-start;
5721
5759
  align-items: center;
5722
- width: 100%;
5723
- max-width: 575px;
5724
- overflow: hidden;
5725
-
5726
- &__content {
5760
+ align-content: center;
5761
+ button {
5727
5762
  position: relative;
5728
- overflow: hidden;
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
- background-color: $wac-popin-btn-close;
5755
- transition: .3s ease;
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-second-color;
5758
- font-size: 14px;
5759
- font-weight: 400;
5788
+ color: $wac-main-text;
5789
+ font-size: rem(14);
5790
+ margin: 0 rem(10) 0 0;
5760
5791
  }
5761
- &:hover, &:focus {
5762
- background-color: $wac-main-text;
5763
- i {
5764
- color: $wac-white;
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
- h1 {
5770
- font-size: rem(30);
5771
- line-height: rem(35);
5772
- font-weight: 600;
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
- font-weight: 500;
5794
- color: $wac-main-text;
5795
- }
5796
-
5797
- img {
5798
- width: auto;
5799
- height: auto;
5800
- margin: 0 auto;
5801
- }
5802
-
5803
- &__title {
5804
- font: normal normal bold 20px/25px sans-serif;
5805
- color: $wac-main-text;
5806
- }
5807
-
5808
- &__buttons {
5809
- width: 100%;
5810
- display: flex;
5811
- flex-direction: column;
5812
- align-items: center;
5813
- margin: 30px 0 0;
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;
@@ -1 +1 @@
1
- {"wac.input.progressbar.information.good":"Very good","wac.input.progressbar.information.too.long":"Too long","wac.input.progressbar.information.too.short":"Too short","wac.PaginationComponent.on":"{{low}}-{{high}} of {{total}}","wac.PaginationComponent.page":"Go to page","wac.simpleSearchComponent.error":"The search field is compulsory"}
1
+ {"wac.datatable.noresult":"There are no results for this search","wac.input.progressbar.information.good":"Very good","wac.input.progressbar.information.too.long":"Too long","wac.input.progressbar.information.too.short":"Too short","wac.PaginationComponent.on":"{{low}}-{{high}} of {{total}}","wac.PaginationComponent.page":"Go to page","wac.simpleSearchComponent.error":"The search field is compulsory"}
@@ -1 +1 @@
1
- {"wac.input.progressbar.information.good":"Très bien","wac.input.progressbar.information.too.long":"Trop long","wac.input.progressbar.information.too.short":"Trop court","wac.PaginationComponent.on":"{{low}}-{{high}} sur {{total}}","wac.PaginationComponent.page":"Aller à la page","wac.simpleSearchComponent.error":"Le champ de recherche est obligatoire"}
1
+ {"wac.datatable.noresult":"Il n'y a aucun résultat pour cette recherche","wac.input.progressbar.information.good":"Très bien","wac.input.progressbar.information.too.long":"Trop long","wac.input.progressbar.information.too.short":"Trop court","wac.PaginationComponent.on":"{{low}}-{{high}} sur {{total}}","wac.PaginationComponent.page":"Aller à la page","wac.simpleSearchComponent.error":"Le champ de recherche est obligatoire"}