@wizishop/angular-components 0.0.41 → 0.0.45

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;
@@ -723,6 +723,14 @@ $wac-color-success-popup-alert: #6DCC95!default;
723
723
  height: auto;
724
724
  }
725
725
 
726
+ &.stretch {
727
+ display: flex;
728
+ flex-wrap: wrap;
729
+ .wac-block__content {
730
+ display: flex;
731
+ }
732
+ }
733
+
726
734
  /*************************/
727
735
  /* Titre INTERNE au bloc */
728
736
  /*************************/
@@ -3062,6 +3070,10 @@ span.wac-tooltip {
3062
3070
  margin: 0 auto;
3063
3071
  }
3064
3072
 
3073
+ &.white-space-no-wrap {
3074
+ white-space: nowrap;
3075
+ }
3076
+
3065
3077
  &.small {
3066
3078
  padding: rem(4) rem(15);
3067
3079
  }
@@ -3584,7 +3596,7 @@ span.wac-tooltip {
3584
3596
  &__icon {
3585
3597
  font-size: 30px;
3586
3598
  line-height: 18px;
3587
- color: $wac-border-form;
3599
+ color: $wac-second-color;
3588
3600
  transition: color 0.3s ease, transform 0.3s ease;
3589
3601
  }
3590
3602
 
@@ -3637,7 +3649,7 @@ span.wac-tooltip {
3637
3649
 
3638
3650
  &:hover {
3639
3651
  .wac-dropdown__wrapper__icon {
3640
- color: $wac-second-color;
3652
+ color: $wac-wizishop-blue;
3641
3653
  transform: rotate(90deg);
3642
3654
  transition: color 0.3s ease, transform 0.3s ease;
3643
3655
  }
@@ -4988,6 +5000,24 @@ div.wac-field-input-search {
4988
5000
  }
4989
5001
  }
4990
5002
 
5003
+ &.is-medium {
5004
+ .control {
5005
+ .input,
5006
+ .input:not([disabled]):focus,
5007
+ .input:not([disabled]).is-focused,
5008
+ .input:not([disabled]):active,
5009
+ .input:not([disabled]).is-active {
5010
+ min-height: rem(50);
5011
+ padding-left: rem(45);
5012
+ }
5013
+ .icon {
5014
+ top: rem(4);
5015
+ right: rem(19);
5016
+ font-size: rem(20);
5017
+ }
5018
+ }
5019
+ }
5020
+
4991
5021
  &.has-no-block {
4992
5022
  .input,
4993
5023
  .input:not([disabled]):focus,
@@ -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
 
@@ -1726,6 +1728,7 @@
1726
1728
  this.withoutBlock = false;
1727
1729
  this.icon = '';
1728
1730
  this.big = false;
1731
+ this.medium = false;
1729
1732
  this.boldLabel = 'false';
1730
1733
  this.min = null;
1731
1734
  this.max = null;
@@ -1794,7 +1797,7 @@
1794
1797
  InputComponent.decorators = [
1795
1798
  { type: i0.Component, args: [{
1796
1799
  selector: 'wac-input',
1797
- template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'with-padding': padding, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"value && size && !progressBar\" class=\"is-size-7 wac-input__size\">\n <strong>{{ value.toString().length }}</strong> / {{ size }}\n </span>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p\n class=\"control\"\n [ngClass]=\"{ 'has-icons-right': textError || success, 'has-icons-left': icon !== '', 'has-input-group': textAppend || textPrepend }\"\n >\n <!-- Text Prepend -->\n <span *ngIf=\"textPrepend\" class=\"has-input-group\">\n <span class=\"has-input-group-text prepend\">{{ textPrepend }}</span>\n <span *ngIf=\"icon !== ''\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n </span>\n\n <!-- Input -->\n <input\n [class]=\"'input ' + extraClasses\"\n [id]=\"id\"\n [ngClass]=\"{\n 'is-danger': textError,\n 'is-large': big,\n 'is-number': isNumber,\n 'remove-margin': disableMargin,\n 'text-append': textAppend\n }\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n (focusout)=\"onFocusOut()\"\n [min]=\"min\"\n [max]=\"max\"\n (keypress)=\"keyPress($event)\"\n />\n\n <!-- Indication at the end of the input -->\n <span class=\"indication\" *ngIf=\"indication\">\n <span [innerHTML]=\"indication\"></span>\n </span>\n\n <!-- Text Append -->\n <span *ngIf=\"textAppend\" class=\"has-input-group\">\n <span class=\"has-input-group-text append\">{{ textAppend }}</span>\n <!-- error if text append not empty -->\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n </span>\n\n <!-- Icon Left -->\n <span *ngIf=\"icon !== '' && !textPrepend\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n\n <!-- Icon error if textAppend empty -->\n <span *ngIf=\"textError && !textAppend\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n\n <!-- Icon success -->\n <span *ngIf=\"success\" class=\"icon is-small is-right\">\n <i class=\"fas fa-check has-text-success\"></i>\n </span>\n\n <!-- Text Info -->\n <span\n *ngIf=\"textInfo && (textError === null || textError === '') && !progressBar\"\n class=\"is-size-7 wac-input__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n\n <!-- Text Error -->\n <span *ngIf=\"textError && !progressBar\" class=\"is-size-7 wac-input__error has-text-danger\" [innerHtml]=\"textError\"></span>\n </p>\n\n <!-- Progress Bar -->\n <wac-progress-bar *ngIf=\"progressBar\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
1800
+ template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'is-medium': medium, 'with-padding': padding, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"value && size && !progressBar\" class=\"is-size-7 wac-input__size\">\n <strong>{{ value.toString().length }}</strong> / {{ size }}\n </span>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p\n class=\"control\"\n [ngClass]=\"{ 'has-icons-right': textError || success, 'has-icons-left': icon !== '', 'has-input-group': textAppend || textPrepend }\"\n >\n <!-- Text Prepend -->\n <span *ngIf=\"textPrepend\" class=\"has-input-group\">\n <span class=\"has-input-group-text prepend\">{{ textPrepend }}</span>\n <span *ngIf=\"icon !== ''\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n </span>\n\n <!-- Input -->\n <input\n [class]=\"'input ' + extraClasses\"\n [id]=\"id\"\n [ngClass]=\"{\n 'is-danger': textError,\n 'is-large': big,\n 'is-number': isNumber,\n 'remove-margin': disableMargin,\n 'text-append': textAppend\n }\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n (focusout)=\"onFocusOut()\"\n [min]=\"min\"\n [max]=\"max\"\n (keypress)=\"keyPress($event)\"\n />\n\n <!-- Indication at the end of the input -->\n <span class=\"indication\" *ngIf=\"indication\">\n <span [innerHTML]=\"indication\"></span>\n </span>\n\n <!-- Text Append -->\n <span *ngIf=\"textAppend\" class=\"has-input-group\">\n <span class=\"has-input-group-text append\">{{ textAppend }}</span>\n <!-- error if text append not empty -->\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n </span>\n\n <!-- Icon Left -->\n <span *ngIf=\"icon !== '' && !textPrepend\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n\n <!-- Icon error if textAppend empty -->\n <span *ngIf=\"textError && !textAppend\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n\n <!-- Icon success -->\n <span *ngIf=\"success\" class=\"icon is-small is-right\">\n <i class=\"fas fa-check has-text-success\"></i>\n </span>\n\n <!-- Text Info -->\n <span\n *ngIf=\"textInfo && (textError === null || textError === '') && !progressBar\"\n class=\"is-size-7 wac-input__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n\n <!-- Text Error -->\n <span *ngIf=\"textError && !progressBar\" class=\"is-size-7 wac-input__error has-text-danger\" [innerHtml]=\"textError\"></span>\n </p>\n\n <!-- Progress Bar -->\n <wac-progress-bar *ngIf=\"progressBar\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
1798
1801
  providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: InputComponent, multi: true }]
1799
1802
  },] }
1800
1803
  ];
@@ -1810,6 +1813,7 @@
1810
1813
  withoutBlock: [{ type: i0.Input }],
1811
1814
  icon: [{ type: i0.Input }],
1812
1815
  big: [{ type: i0.Input }],
1816
+ medium: [{ type: i0.Input }],
1813
1817
  boldLabel: [{ type: i0.Input }],
1814
1818
  min: [{ type: i0.Input }],
1815
1819
  max: [{ type: i0.Input }],
@@ -3298,13 +3302,14 @@
3298
3302
  this.titleUppercase = true;
3299
3303
  this.borderRadius = false;
3300
3304
  this.removePadding = false;
3305
+ this.stretchHeight = false;
3301
3306
  }
3302
3307
  return BlockComponent;
3303
3308
  }());
3304
3309
  BlockComponent.decorators = [
3305
3310
  { type: i0.Component, args: [{
3306
3311
  selector: 'wac-block',
3307
- template: "<div\n class=\"wac-block\"\n [ngClass]=\"{ 'wac-block__external': titleExternalBlock, sticky: sticky, noFullHeight: noFullHeight, 'border-radius': borderRadius, 'no-padding' : removePadding }\"\n>\n <h2 *ngIf=\"titleBlock.length\" class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple, 'no-uppercase': !titleUppercase }\">\n {{ titleBlock }} <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n </h2>\n <div class=\"wac-block__content\">\n <ng-content></ng-content>\n </div>\n</div>\n"
3312
+ template: "<div\n class=\"wac-block\"\n [ngClass]=\"{ 'wac-block__external': titleExternalBlock, sticky: sticky, noFullHeight: noFullHeight, 'stretch': stretchHeight, 'border-radius': borderRadius, 'no-padding' : removePadding }\"\n>\n <h2 *ngIf=\"titleBlock.length\" class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple, 'no-uppercase': !titleUppercase }\">\n {{ titleBlock }} <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n </h2>\n <div class=\"wac-block__content\">\n <ng-content></ng-content>\n </div>\n</div>\n"
3308
3313
  },] }
3309
3314
  ];
3310
3315
  BlockComponent.ctorParameters = function () { return []; };
@@ -3317,7 +3322,8 @@
3317
3322
  icon: [{ type: i0.Input }],
3318
3323
  titleUppercase: [{ type: i0.Input }],
3319
3324
  borderRadius: [{ type: i0.Input }],
3320
- removePadding: [{ type: i0.Input }]
3325
+ removePadding: [{ type: i0.Input }],
3326
+ stretchHeight: [{ type: i0.Input }]
3321
3327
  };
3322
3328
 
3323
3329
  var WrapperComponent = /** @class */ (function () {