@wizishop/angular-components 0.0.175 → 0.0.176
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 +23 -7
- package/bundles/wizishop-angular-components.umd.js +18 -5
- 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 +3 -2
- package/esm2015/lib/components/card-price/card-price.component.js +15 -3
- package/esm2015/lib/components/mosaic/mosaic.component.js +3 -3
- package/fesm2015/wizishop-angular-components.js +18 -5
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/button/button.component.d.ts +1 -0
- package/lib/components/card-price/card-price.component.d.ts +7 -0
- package/lib/components/mosaic/mosaic.component.d.ts +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.176.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.175.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -3860,7 +3860,7 @@ span.wac-tooltip {
|
|
|
3860
3860
|
}
|
|
3861
3861
|
.wac-card-price {
|
|
3862
3862
|
width: 100%;
|
|
3863
|
-
padding:
|
|
3863
|
+
padding: 30px;
|
|
3864
3864
|
border-radius: 3px;
|
|
3865
3865
|
background-color: $wac-white;
|
|
3866
3866
|
display: flex;
|
|
@@ -3881,7 +3881,7 @@ span.wac-tooltip {
|
|
|
3881
3881
|
}
|
|
3882
3882
|
|
|
3883
3883
|
.cta {
|
|
3884
|
-
height: 40px;
|
|
3884
|
+
min-height: 40px;
|
|
3885
3885
|
}
|
|
3886
3886
|
|
|
3887
3887
|
> strong {
|
|
@@ -3938,13 +3938,24 @@ span.wac-tooltip {
|
|
|
3938
3938
|
}
|
|
3939
3939
|
}
|
|
3940
3940
|
|
|
3941
|
-
.subtitle {
|
|
3941
|
+
.subtitle, .package-subtitle {
|
|
3942
3942
|
font-size: rem(12);
|
|
3943
3943
|
color: $wac-subtitle-color;
|
|
3944
3944
|
margin: 0 0 30px;
|
|
3945
3945
|
text-align: center;
|
|
3946
3946
|
font-style: italic;
|
|
3947
3947
|
}
|
|
3948
|
+
|
|
3949
|
+
.package-subtitle {
|
|
3950
|
+
margin: 10px 0 30px;
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
.link-bottom {
|
|
3954
|
+
margin: 0;
|
|
3955
|
+
display: flex;
|
|
3956
|
+
justify-content: center;
|
|
3957
|
+
width: 100%;
|
|
3958
|
+
}
|
|
3948
3959
|
}
|
|
3949
3960
|
.wac-wrapper-blocs {
|
|
3950
3961
|
&.sidebar {
|
|
@@ -5548,8 +5559,13 @@ h4.wac-h4 {
|
|
|
5548
5559
|
opacity: 0;
|
|
5549
5560
|
transition: opacity .3s ease 0s, visibility 0s linear .35s;
|
|
5550
5561
|
|
|
5551
|
-
@include media('>=
|
|
5552
|
-
|
|
5562
|
+
@include media('>=tablet') {
|
|
5563
|
+
min-width: 600px;
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
@include media('<tablet') {
|
|
5567
|
+
min-width: 100% !important;
|
|
5568
|
+
max-width: 100% !important;
|
|
5553
5569
|
}
|
|
5554
5570
|
|
|
5555
5571
|
&:before {
|
|
@@ -5611,7 +5627,7 @@ h4.wac-h4 {
|
|
|
5611
5627
|
transform: translate(0, -20px);
|
|
5612
5628
|
bottom: 100%;
|
|
5613
5629
|
&:before {
|
|
5614
|
-
|
|
5630
|
+
right: 10px;
|
|
5615
5631
|
top: 100%;
|
|
5616
5632
|
}
|
|
5617
5633
|
}
|
|
@@ -5621,7 +5637,7 @@ h4.wac-h4 {
|
|
|
5621
5637
|
transform: translate(0, -20px);
|
|
5622
5638
|
bottom: 100%;
|
|
5623
5639
|
&:before {
|
|
5624
|
-
|
|
5640
|
+
left: 10px;
|
|
5625
5641
|
top: 100%;
|
|
5626
5642
|
}
|
|
5627
5643
|
}
|
|
@@ -1333,7 +1333,7 @@
|
|
|
1333
1333
|
ButtonComponent.decorators = [
|
|
1334
1334
|
{ type: i0.Component, args: [{
|
|
1335
1335
|
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 }}\" *ngIf=\"tooltip\">\n {{ tooltip }}\n </span>\n</a>\n"
|
|
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
1337
|
},] }
|
|
1338
1338
|
];
|
|
1339
1339
|
ButtonComponent.ctorParameters = function () { return []; };
|
|
@@ -1357,6 +1357,7 @@
|
|
|
1357
1357
|
confirmDeleteText: [{ type: i0.Input }],
|
|
1358
1358
|
coin: [{ type: i0.Input }],
|
|
1359
1359
|
tooltip: [{ type: i0.Input }],
|
|
1360
|
+
tooltipWidth: [{ type: i0.Input }],
|
|
1360
1361
|
tooltipPosition: [{ type: i0.Input }],
|
|
1361
1362
|
confirmDeletePosition: [{ type: i0.Input }],
|
|
1362
1363
|
click: [{ type: i0.Output }],
|
|
@@ -4254,39 +4255,51 @@
|
|
|
4254
4255
|
|
|
4255
4256
|
var CardPriceComponent = /** @class */ (function () {
|
|
4256
4257
|
function CardPriceComponent() {
|
|
4258
|
+
this.selected = false;
|
|
4257
4259
|
this.disabled = false;
|
|
4258
4260
|
this.btnTextcolor = '#ffffff';
|
|
4259
4261
|
this.extraClasses = 'is-success';
|
|
4262
|
+
this.extraClassesSelected = 'is-success is-outlined';
|
|
4260
4263
|
this.hideButton = false;
|
|
4261
4264
|
this.click = new i0.EventEmitter();
|
|
4265
|
+
this.removePackage = new i0.EventEmitter();
|
|
4262
4266
|
}
|
|
4263
4267
|
CardPriceComponent.prototype.ngOnInit = function () {
|
|
4264
4268
|
};
|
|
4265
4269
|
CardPriceComponent.prototype.triggerClick = function () {
|
|
4266
4270
|
this.click.emit(true);
|
|
4267
4271
|
};
|
|
4272
|
+
CardPriceComponent.prototype.removePackageTrigger = function () {
|
|
4273
|
+
this.removePackage.emit(true);
|
|
4274
|
+
};
|
|
4268
4275
|
return CardPriceComponent;
|
|
4269
4276
|
}());
|
|
4270
4277
|
CardPriceComponent.decorators = [
|
|
4271
4278
|
{ type: i0.Component, args: [{
|
|
4272
4279
|
selector: 'wac-card-price',
|
|
4273
|
-
template: "<div class=\"wac-card-price\">\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\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [textcolor]=\"btnTextcolor\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n</div>\n"
|
|
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\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n <div class=\"cta\" *ngIf=\"selected\">\n <wac-button [icon]=\"'fa-solid fa-check'\" [label]=\"btnLabelSelected\" [extraClasses]=\"extraClassesSelected\" [whiteSpaceNowrap]=\"true\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n <div class=\"package-subtitle\" *ngIf=\"packageSubtitle\">{{packageSubtitle}}</div>\n <div class=\"link-bottom\">\n <wac-link (click)=\"removePackageTrigger()\">{{linkPackageLabel}}</wac-link>\n </div>\n</div>\n"
|
|
4274
4281
|
},] }
|
|
4275
4282
|
];
|
|
4276
4283
|
CardPriceComponent.ctorParameters = function () { return []; };
|
|
4277
4284
|
CardPriceComponent.propDecorators = {
|
|
4278
4285
|
amount: [{ type: i0.Input }],
|
|
4279
4286
|
title: [{ type: i0.Input }],
|
|
4287
|
+
selected: [{ type: i0.Input }],
|
|
4288
|
+
btnLabelSelected: [{ type: i0.Input }],
|
|
4280
4289
|
price: [{ type: i0.Input }],
|
|
4281
4290
|
currency: [{ type: i0.Input }],
|
|
4282
4291
|
priceWording: [{ type: i0.Input }],
|
|
4283
4292
|
subtitle: [{ type: i0.Input }],
|
|
4284
4293
|
btnLabel: [{ type: i0.Input }],
|
|
4294
|
+
packageSubtitle: [{ type: i0.Input }],
|
|
4295
|
+
linkPackageLabel: [{ type: i0.Input }],
|
|
4285
4296
|
disabled: [{ type: i0.Input }],
|
|
4286
4297
|
btnTextcolor: [{ type: i0.Input }],
|
|
4287
4298
|
extraClasses: [{ type: i0.Input }],
|
|
4299
|
+
extraClassesSelected: [{ type: i0.Input }],
|
|
4288
4300
|
hideButton: [{ type: i0.Input }],
|
|
4289
|
-
click: [{ type: i0.Output }]
|
|
4301
|
+
click: [{ type: i0.Output }],
|
|
4302
|
+
removePackage: [{ type: i0.Output }]
|
|
4290
4303
|
};
|
|
4291
4304
|
|
|
4292
4305
|
var TokenCheckComponent = /** @class */ (function () {
|
|
@@ -4456,7 +4469,7 @@
|
|
|
4456
4469
|
MosaicComponent.decorators = [
|
|
4457
4470
|
{ type: i0.Component, args: [{
|
|
4458
4471
|
selector: 'wac-mosaic',
|
|
4459
|
-
template: "<div class=\"wac-mosaic\">\n <ng-scrollbar (reachedBottom)=\"onBottomReached()\" reachedOffset=\"200\" class=\"wac-mosaic__wrapper__scrollbar\">\n <div class=\"wac-mosaic__wrapper\">\n <div class=\"wac-mosaic__wrapper__column\" *ngFor=\"let column of columns\">\n <div class=\"wac-mosaic__wrapper__column__image\" *ngFor=\"let image of column; let i = index;\">\n <img [src]=\"image.src\" [alt]=\"image.alt\"/>\n <div class=\"hover\">\n <ng-container\n [ngTemplateOutlet]=\"
|
|
4472
|
+
template: "<div class=\"wac-mosaic\">\n <ng-scrollbar (reachedBottom)=\"onBottomReached()\" reachedOffset=\"200\" class=\"wac-mosaic__wrapper__scrollbar\">\n <div class=\"wac-mosaic__wrapper\">\n <div class=\"wac-mosaic__wrapper__column\" *ngFor=\"let column of columns\">\n <div class=\"wac-mosaic__wrapper__column__image\" *ngFor=\"let image of column; let i = index;\">\n <img [src]=\"image.src\" [alt]=\"image.alt\"/>\n <div class=\"hover\">\n <ng-container\n [ngTemplateOutlet]=\"hoverImageTemplate || defaultImportButton\"\n [ngTemplateOutletContext]=\"{ $implicit: image }\"\n >\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-scrollbar>\n</div>\n\n<div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\n</div>\n\n<ng-template #defaultImportButton let-image>\n <wac-button [icon]=\"'fa-solid fa-image'\" [label]=\"'wac.MosaicComponent.import' | translate\" [extraClasses]=\"'is-success'\" (click)=\"onImportImage(image.src)\"></wac-button>\n</ng-template>\n",
|
|
4460
4473
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4461
4474
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4462
4475
|
},] }
|
|
@@ -4466,7 +4479,7 @@
|
|
|
4466
4479
|
imagesList: [{ type: i0.Input }],
|
|
4467
4480
|
isLoading: [{ type: i0.Input }],
|
|
4468
4481
|
numberOfColumn: [{ type: i0.Input }],
|
|
4469
|
-
|
|
4482
|
+
hoverImageTemplate: [{ type: i0.Input }],
|
|
4470
4483
|
importImageSrc: [{ type: i0.Output }],
|
|
4471
4484
|
loadMoreImages: [{ type: i0.Output }]
|
|
4472
4485
|
};
|