@wizishop/angular-components 0.0.177 → 0.0.180
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 +11 -108
- package/bundles/wizishop-angular-components.umd.js +4 -2
- 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 +4 -2
- package/esm2015/lib/components/card-price/card-price.component.js +2 -2
- package/fesm2015/wizishop-angular-components.js +4 -2
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/button/button.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.180.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.177.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -3857,9 +3857,14 @@ span.wac-tooltip {
|
|
|
3857
3857
|
background-color: $wac-white;
|
|
3858
3858
|
display: flex;
|
|
3859
3859
|
flex-direction: column;
|
|
3860
|
+
border: 1px solid $wac-white;
|
|
3860
3861
|
|
|
3861
3862
|
box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.05);
|
|
3862
3863
|
|
|
3864
|
+
&.selected {
|
|
3865
|
+
border: 1px solid $wac-tag-success;
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3863
3868
|
&:hover {
|
|
3864
3869
|
box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.2);
|
|
3865
3870
|
}
|
|
@@ -4434,6 +4439,11 @@ h4.wac-h4 {
|
|
|
4434
4439
|
white-space: nowrap;
|
|
4435
4440
|
}
|
|
4436
4441
|
|
|
4442
|
+
&.no-padding {
|
|
4443
|
+
padding-left: 0!important;
|
|
4444
|
+
padding-right: 0!important;
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4437
4447
|
&.is-green.opacity {
|
|
4438
4448
|
background-color: $wac-tag-success-light;
|
|
4439
4449
|
border-color: $wac-tag-success-light;
|
|
@@ -4841,23 +4851,6 @@ h4.wac-h4 {
|
|
|
4841
4851
|
transition: background-color 0.3s ease-in-out;
|
|
4842
4852
|
}
|
|
4843
4853
|
}
|
|
4844
|
-
|
|
4845
|
-
&.disabled {
|
|
4846
|
-
background-color: $wac-wizishop-blue-button-disabled;
|
|
4847
|
-
border-color: $wac-wizishop-blue-button-disabled;
|
|
4848
|
-
transition: 0s;
|
|
4849
|
-
cursor: default;
|
|
4850
|
-
.wac-button__wrapper, .wac-button__animation {
|
|
4851
|
-
color: $wac-white;
|
|
4852
|
-
}
|
|
4853
|
-
&:hover,
|
|
4854
|
-
&:focus,
|
|
4855
|
-
&.hover,
|
|
4856
|
-
&.focus {
|
|
4857
|
-
background-color: $wac-wizishop-blue-button-disabled;
|
|
4858
|
-
border-color: $wac-wizishop-blue-button-disabled;
|
|
4859
|
-
}
|
|
4860
|
-
}
|
|
4861
4854
|
}
|
|
4862
4855
|
|
|
4863
4856
|
&.is-orange {
|
|
@@ -4923,23 +4916,6 @@ h4.wac-h4 {
|
|
|
4923
4916
|
transition: background-color 0.3s ease-in-out;
|
|
4924
4917
|
}
|
|
4925
4918
|
}
|
|
4926
|
-
|
|
4927
|
-
&.disabled {
|
|
4928
|
-
background-color: $wac-orange-color-disabled;
|
|
4929
|
-
border-color: $wac-orange-color-disabled;
|
|
4930
|
-
transition: 0s;
|
|
4931
|
-
cursor: default;
|
|
4932
|
-
.wac-button__wrapper, .wac-button__animation {
|
|
4933
|
-
color: $wac-white;
|
|
4934
|
-
}
|
|
4935
|
-
&:hover,
|
|
4936
|
-
&:focus,
|
|
4937
|
-
&.hover,
|
|
4938
|
-
&.focus {
|
|
4939
|
-
background-color: $wac-orange-color-disabled;
|
|
4940
|
-
border-color: $wac-orange-color-disabled;
|
|
4941
|
-
}
|
|
4942
|
-
}
|
|
4943
4919
|
}
|
|
4944
4920
|
|
|
4945
4921
|
&.is-pink {
|
|
@@ -5005,23 +4981,6 @@ h4.wac-h4 {
|
|
|
5005
4981
|
transition: background-color 0.3s ease-in-out;
|
|
5006
4982
|
}
|
|
5007
4983
|
}
|
|
5008
|
-
|
|
5009
|
-
&.disabled {
|
|
5010
|
-
background-color: $wac-pink-color-disabled;
|
|
5011
|
-
border-color: $wac-pink-color-disabled;
|
|
5012
|
-
transition: 0s;
|
|
5013
|
-
cursor: default;
|
|
5014
|
-
.wac-button__wrapper, .wac-button__animation {
|
|
5015
|
-
color: $wac-white;
|
|
5016
|
-
}
|
|
5017
|
-
&:hover,
|
|
5018
|
-
&:focus,
|
|
5019
|
-
&.hover,
|
|
5020
|
-
&.focus {
|
|
5021
|
-
background-color: $wac-pink-color-disabled;
|
|
5022
|
-
border-color: $wac-pink-color-disabled;
|
|
5023
|
-
}
|
|
5024
|
-
}
|
|
5025
4984
|
}
|
|
5026
4985
|
|
|
5027
4986
|
&.is-grey {
|
|
@@ -5139,21 +5098,6 @@ h4.wac-h4 {
|
|
|
5139
5098
|
transition: background-color 0.3s ease-in-out;
|
|
5140
5099
|
}
|
|
5141
5100
|
}
|
|
5142
|
-
|
|
5143
|
-
&.disabled {
|
|
5144
|
-
background-color: $wac-background-color-disabled;
|
|
5145
|
-
border-color: $wac-background-color-disabled;
|
|
5146
|
-
transition: 0s;
|
|
5147
|
-
cursor: default;
|
|
5148
|
-
|
|
5149
|
-
&:hover,
|
|
5150
|
-
&:focus,
|
|
5151
|
-
&.hover,
|
|
5152
|
-
&.focus {
|
|
5153
|
-
background-color: $wac-background-color-disabled;
|
|
5154
|
-
border-color: $wac-background-color-disabled;
|
|
5155
|
-
}
|
|
5156
|
-
}
|
|
5157
5101
|
}
|
|
5158
5102
|
|
|
5159
5103
|
&.is-danger {
|
|
@@ -5270,25 +5214,6 @@ h4.wac-h4 {
|
|
|
5270
5214
|
border-color: $wac-primary-button;
|
|
5271
5215
|
}
|
|
5272
5216
|
}
|
|
5273
|
-
|
|
5274
|
-
&.disabled {
|
|
5275
|
-
background-color: $wac-primary-button-disabled;
|
|
5276
|
-
border-color: $wac-primary-button-disabled;
|
|
5277
|
-
transition: 0s;
|
|
5278
|
-
cursor: default;
|
|
5279
|
-
|
|
5280
|
-
.wac-button__wrapper, .wac-button__animation {
|
|
5281
|
-
color: $wac-white;
|
|
5282
|
-
}
|
|
5283
|
-
|
|
5284
|
-
&:hover,
|
|
5285
|
-
&:focus,
|
|
5286
|
-
&.hover,
|
|
5287
|
-
&.focus {
|
|
5288
|
-
background-color: $wac-primary-button-disabled;
|
|
5289
|
-
border-color: $wac-primary-button-disabled;
|
|
5290
|
-
}
|
|
5291
|
-
}
|
|
5292
5217
|
}
|
|
5293
5218
|
|
|
5294
5219
|
&.is-success {
|
|
@@ -5404,23 +5329,6 @@ h4.wac-h4 {
|
|
|
5404
5329
|
border-color: $wac-green-color;
|
|
5405
5330
|
}
|
|
5406
5331
|
}
|
|
5407
|
-
&.disabled {
|
|
5408
|
-
background-color: $wac-green-color-disabled;
|
|
5409
|
-
border-color: $wac-green-color-disabled;
|
|
5410
|
-
transition: 0s;
|
|
5411
|
-
cursor: default;
|
|
5412
|
-
|
|
5413
|
-
.wac-button__wrapper, .wac-button__animation {
|
|
5414
|
-
color: $wac-white;
|
|
5415
|
-
}
|
|
5416
|
-
|
|
5417
|
-
&:hover,
|
|
5418
|
-
&:focus,
|
|
5419
|
-
&.hover,
|
|
5420
|
-
&.focus {
|
|
5421
|
-
background-color: $wac-green-color-disabled;
|
|
5422
|
-
}
|
|
5423
|
-
}
|
|
5424
5332
|
}
|
|
5425
5333
|
|
|
5426
5334
|
&.is-light {
|
|
@@ -5452,12 +5360,7 @@ h4.wac-h4 {
|
|
|
5452
5360
|
}
|
|
5453
5361
|
|
|
5454
5362
|
&.disabled {
|
|
5455
|
-
|
|
5456
|
-
border-color: $wac-border-form;
|
|
5457
|
-
|
|
5458
|
-
.wac-button__wrapper, .wac-button__animation {
|
|
5459
|
-
color: $wac-disabled-button-text;
|
|
5460
|
-
}
|
|
5363
|
+
opacity: .7!important;
|
|
5461
5364
|
}
|
|
5462
5365
|
|
|
5463
5366
|
&.is-outlined {
|
|
@@ -1243,6 +1243,7 @@
|
|
|
1243
1243
|
this.animationText = '';
|
|
1244
1244
|
this.confirmDelete = false;
|
|
1245
1245
|
this.confirmDeleteText = '';
|
|
1246
|
+
this.noPadding = false;
|
|
1246
1247
|
this.tooltipPosition = 'top-center';
|
|
1247
1248
|
this.confirmDeletePosition = 'right';
|
|
1248
1249
|
this.click = new i0.EventEmitter();
|
|
@@ -1333,7 +1334,7 @@
|
|
|
1333
1334
|
ButtonComponent.decorators = [
|
|
1334
1335
|
{ type: i0.Component, args: [{
|
|
1335
1336
|
selector: 'wac-button',
|
|
1336
|
-
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"confirmDelete && waitForConfirmDelete ? addMaxWidthDelete() : '';onButtonClick($event);\"\n (mouseleave)=\"animation ? resetMaxWidth() : '';\"\n (mouseenter)=\"animation ? addMaxWidth() : '';\"\n wzAutoHide (clickOutside)=\"confirmDelete && !waitForConfirmDelete ? resetMaxWidthDelete() : ''\"\n [ngClass]=\"[\n label === '' ? 'alone' : '',\n coin ? 'has-coin width-auto' : '',\n animationRight ? 'animation-right' : '',\n animation ? 'animationText' : '',\n isLoading ? 'is-loading' : '',\n opacity ? 'opacity' : '',\n disabled ? 'disabled' : '',\n widthAuto ? 'width-auto' : '',\n whiteSpaceNowrap ? 'white-space-no-wrap' : '',\n !waitForConfirmDelete && confirmDelete ? 'step-delete' : '',\n confirmDelete ? 'deletePosition-' + confirmDeletePosition : ''\n ]\"\n [ngStyle]=\"{\n 'text-align': contentHorizontalPosition\n }\"\n>\n <span class=\"wac-button__wrapper\" [style.color]=\"textcolor ? textcolor : ''\">\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 class=\"wac-button__animation\" [style.maxWidth]=\"buttonMaxWidth\" [style.width]=\"buttonWidth + 'px'\">\n <span #calculWidth class=\"wac-button__animation__text\" [innerHTML]=\"animationText\"></span>\n </span>\n <span class=\"wac-button__confirmDelete\" [style.maxWidth]=\"buttonMaxWidthDelete\" [style.width]=\"buttonWidthDelete + 'px'\">\n <span #calculWidthDelete class=\"wac-button__confirmDelete__text\" [innerHTML]=\"confirmDeleteText\"></span>\n </span>\n <span *ngIf=\"coin\" class=\"wac-button__coin\"><i class=\"fa-solid fa-coin-front\"></i><span [innerHTML]=\"coin\"></span></span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading\"\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 <span class=\"wac-button__tooltips {{ tooltipPosition }}\" [style.minWidth]=\"tooltipWidth\" *ngIf=\"tooltip\">\n {{ tooltip }}\n </span>\n</a>\n"
|
|
1337
|
+
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"confirmDelete && waitForConfirmDelete ? addMaxWidthDelete() : '';onButtonClick($event);\"\n (mouseleave)=\"animation ? resetMaxWidth() : '';\"\n (mouseenter)=\"animation ? addMaxWidth() : '';\"\n wzAutoHide (clickOutside)=\"confirmDelete && !waitForConfirmDelete ? resetMaxWidthDelete() : ''\"\n [ngClass]=\"[\n label === '' ? 'alone' : '',\n coin ? 'has-coin width-auto' : '',\n animationRight ? 'animation-right' : '',\n animation ? 'animationText' : '',\n isLoading ? 'is-loading' : '',\n opacity ? 'opacity' : '',\n disabled ? 'disabled' : '',\n widthAuto ? 'width-auto' : '',\n noPadding ? 'no-padding' : '',\n whiteSpaceNowrap ? 'white-space-no-wrap' : '',\n !waitForConfirmDelete && confirmDelete ? 'step-delete' : '',\n confirmDelete ? 'deletePosition-' + confirmDeletePosition : ''\n ]\"\n [ngStyle]=\"{\n 'text-align': contentHorizontalPosition\n }\"\n>\n <span class=\"wac-button__wrapper\" [style.color]=\"textcolor ? textcolor : ''\">\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 class=\"wac-button__animation\" [style.maxWidth]=\"buttonMaxWidth\" [style.width]=\"buttonWidth + 'px'\">\n <span #calculWidth class=\"wac-button__animation__text\" [innerHTML]=\"animationText\"></span>\n </span>\n <span class=\"wac-button__confirmDelete\" [style.maxWidth]=\"buttonMaxWidthDelete\" [style.width]=\"buttonWidthDelete + 'px'\">\n <span #calculWidthDelete class=\"wac-button__confirmDelete__text\" [innerHTML]=\"confirmDeleteText\"></span>\n </span>\n <span *ngIf=\"coin\" class=\"wac-button__coin\"><i class=\"fa-solid fa-coin-front\"></i><span [innerHTML]=\"coin\"></span></span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading\"\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 <span class=\"wac-button__tooltips {{ tooltipPosition }}\" [style.minWidth]=\"tooltipWidth\" *ngIf=\"tooltip\">\n {{ tooltip }}\n </span>\n</a>\n"
|
|
1337
1338
|
},] }
|
|
1338
1339
|
];
|
|
1339
1340
|
ButtonComponent.ctorParameters = function () { return []; };
|
|
@@ -1358,6 +1359,7 @@
|
|
|
1358
1359
|
coin: [{ type: i0.Input }],
|
|
1359
1360
|
tooltip: [{ type: i0.Input }],
|
|
1360
1361
|
tooltipWidth: [{ type: i0.Input }],
|
|
1362
|
+
noPadding: [{ type: i0.Input }],
|
|
1361
1363
|
tooltipPosition: [{ type: i0.Input }],
|
|
1362
1364
|
confirmDeletePosition: [{ type: i0.Input }],
|
|
1363
1365
|
click: [{ type: i0.Output }],
|
|
@@ -4277,7 +4279,7 @@
|
|
|
4277
4279
|
CardPriceComponent.decorators = [
|
|
4278
4280
|
{ type: i0.Component, args: [{
|
|
4279
4281
|
selector: 'wac-card-price',
|
|
4280
|
-
template: "<div class=\"wac-card-price\" [ngClass]=\"{'selected': selected}\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\" *ngIf=\"!selected\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [whiteSpaceNowrap]=\"true\" [textcolor]=\"btnTextcolor\"
|
|
4282
|
+
template: "<div class=\"wac-card-price\" [ngClass]=\"{'selected': selected}\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\" *ngIf=\"!selected && !hideButton\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [whiteSpaceNowrap]=\"true\" [textcolor]=\"btnTextcolor\"></wac-button>\n </div>\n <div class=\"cta\" *ngIf=\"selected && !hideButton\">\n <wac-button [icon]=\"'fa-solid fa-check'\" [label]=\"btnLabelSelected\" [extraClasses]=\"extraClassesSelected\" [whiteSpaceNowrap]=\"true\"></wac-button>\n </div>\n <div class=\"package-subtitle\" *ngIf=\"selected\">{{packageSubtitle}}</div>\n <div class=\"link-bottom\" *ngIf=\"selected\">\n <wac-link (click)=\"removePackageTrigger()\">{{linkPackageLabel}}</wac-link>\n </div>\n</div>\n"
|
|
4281
4283
|
},] }
|
|
4282
4284
|
];
|
|
4283
4285
|
CardPriceComponent.ctorParameters = function () { return []; };
|