@wizishop/angular-components 0.0.41 → 0.0.42

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.
@@ -116,6 +116,80 @@ $wac-color-success-popup-alert: #6DCC95!default;
116
116
  width: rem(36);
117
117
  height: rem(36);
118
118
  }
119
+ .wac-progressBarContent {
120
+ position: relative;
121
+ width: 100%;
122
+ display: block;
123
+ .progressBar {
124
+ position: relative;
125
+ width: 88%;
126
+ margin-bottom: 1rem;
127
+ progress {
128
+ &.progress {
129
+ margin-bottom: 0;
130
+ height: rem(2);
131
+ &::-webkit-progress-value {
132
+ transition: width 0.5s ease;
133
+ }
134
+ }
135
+ }
136
+ span {
137
+ position: absolute;
138
+ top: -4px;
139
+ height: 11px;
140
+ width: 11px;
141
+ background-color: $wac-border-color;
142
+ border-radius: 50%;
143
+ }
144
+ .is-danger {
145
+ background-color: $wac-primary-button;
146
+ &::-webkit-progress-value {
147
+ background-color: $wac-primary-button;
148
+ }
149
+ }
150
+ .is-warning {
151
+ background-color: $wac-orange-color;
152
+ &::-webkit-progress-value {
153
+ background-color: $wac-orange-color;
154
+ }
155
+ }
156
+ .is-success {
157
+ background-color: $wac-green-color;
158
+ &::-webkit-progress-value {
159
+ background-color: $wac-green-color;
160
+ }
161
+ }
162
+ }
163
+ .size {
164
+ display: inline;
165
+ color: $wac-color-text-grey;
166
+ position: absolute;
167
+ right: 0;
168
+ top: -9px;
169
+ background: $wac-white;
170
+ padding-left: 0.875rem;
171
+ .is-success {
172
+ color: $wac-green-color;
173
+ }
174
+ .is-warning {
175
+ color: $wac-orange-color;
176
+ }
177
+ .is-danger {
178
+ color: $wac-primary-button;
179
+ }
180
+ > span {
181
+ font-size: rem(14) !important;
182
+ line-height: 1;
183
+ transform: translateY(-3px);
184
+ display: inline-block;
185
+ letter-spacing: 0;
186
+ strong {
187
+ letter-spacing: 0;
188
+ font-weight: 600;
189
+ }
190
+ }
191
+ }
192
+ }
119
193
  .wac-radio {
120
194
  .is-checkradio[type='radio'] {
121
195
  outline: 0 !important;
@@ -244,80 +318,6 @@ $wac-color-success-popup-alert: #6DCC95!default;
244
318
  }
245
319
  }
246
320
  }
247
- .wac-progressBarContent {
248
- position: relative;
249
- width: 100%;
250
- display: block;
251
- .progressBar {
252
- position: relative;
253
- width: 88%;
254
- margin-bottom: 1rem;
255
- progress {
256
- &.progress {
257
- margin-bottom: 0;
258
- height: rem(2);
259
- &::-webkit-progress-value {
260
- transition: width 0.5s ease;
261
- }
262
- }
263
- }
264
- span {
265
- position: absolute;
266
- top: -4px;
267
- height: 11px;
268
- width: 11px;
269
- background-color: $wac-border-color;
270
- border-radius: 50%;
271
- }
272
- .is-danger {
273
- background-color: $wac-primary-button;
274
- &::-webkit-progress-value {
275
- background-color: $wac-primary-button;
276
- }
277
- }
278
- .is-warning {
279
- background-color: $wac-orange-color;
280
- &::-webkit-progress-value {
281
- background-color: $wac-orange-color;
282
- }
283
- }
284
- .is-success {
285
- background-color: $wac-green-color;
286
- &::-webkit-progress-value {
287
- background-color: $wac-green-color;
288
- }
289
- }
290
- }
291
- .size {
292
- display: inline;
293
- color: $wac-color-text-grey;
294
- position: absolute;
295
- right: 0;
296
- top: -9px;
297
- background: $wac-white;
298
- padding-left: 0.875rem;
299
- .is-success {
300
- color: $wac-green-color;
301
- }
302
- .is-warning {
303
- color: $wac-orange-color;
304
- }
305
- .is-danger {
306
- color: $wac-primary-button;
307
- }
308
- > span {
309
- font-size: rem(14) !important;
310
- line-height: 1;
311
- transform: translateY(-3px);
312
- display: inline-block;
313
- letter-spacing: 0;
314
- strong {
315
- letter-spacing: 0;
316
- font-weight: 600;
317
- }
318
- }
319
- }
320
- }
321
321
  .wac {
322
322
  &-select-in-text {
323
323
  width: auto;
@@ -3062,6 +3062,10 @@ span.wac-tooltip {
3062
3062
  margin: 0 auto;
3063
3063
  }
3064
3064
 
3065
+ &.white-space-no-wrap {
3066
+ white-space: nowrap;
3067
+ }
3068
+
3065
3069
  &.small {
3066
3070
  padding: rem(4) rem(15);
3067
3071
  }
@@ -913,6 +913,7 @@
913
913
  this.iconFontSize = 12;
914
914
  this.hasLoader = false;
915
915
  this.disabled = false;
916
+ this.whiteSpaceNowrap = false;
916
917
  this.click = new i0.EventEmitter();
917
918
  this.isLoading = false;
918
919
  this.interval = null;
@@ -952,7 +953,7 @@
952
953
  ButtonComponent.decorators = [
953
954
  { type: i0.Component, args: [{
954
955
  selector: 'wac-button',
955
- template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"onButtonClick($event)\"\n [ngClass]=\"[label === '' ? 'alone' : '', isLoading ? 'is-loading' : '', disabled ? 'disabled' : '', widthAuto ? 'width-auto' : '']\"\n>\n <span class=\"wac-button__wrapper\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading || interval !== null\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n </span>\n</a>\n"
956
+ template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"onButtonClick($event)\"\n [ngClass]=\"[label === '' ? 'alone' : '', isLoading ? 'is-loading' : '', disabled ? 'disabled' : '', widthAuto ? 'width-auto' : '', whiteSpaceNowrap ? 'white-space-no-wrap' : '']\"\n>\n <span class=\"wac-button__wrapper\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading || interval !== null\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n </span>\n</a>\n"
956
957
  },] }
957
958
  ];
958
959
  ButtonComponent.ctorParameters = function () { return []; };
@@ -965,6 +966,7 @@
965
966
  iconFontSize: [{ type: i0.Input }],
966
967
  hasLoader: [{ type: i0.Input }],
967
968
  disabled: [{ type: i0.Input }],
969
+ whiteSpaceNowrap: [{ type: i0.Input }],
968
970
  click: [{ type: i0.Output }]
969
971
  };
970
972