@wizishop/angular-components 0.0.145 → 0.0.148
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 +5379 -5363
- package/bundles/wizishop-angular-components.umd.js +18 -3
- 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/breadcrumbs/breadcrumbs.component.js +13 -5
- package/esm2015/lib/components/card-price/card-price.component.js +10 -2
- package/fesm2015/wizishop-angular-components.js +20 -4
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +4 -1
- package/lib/components/card-price/card-price.component.d.ts +4 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.148.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.145.tgz +0 -0
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
2
|
export class BreadcrumbsComponent {
|
|
3
|
-
constructor() {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.index = 0;
|
|
5
|
+
this.indexChange = new EventEmitter();
|
|
6
|
+
}
|
|
4
7
|
ngOnInit() {
|
|
5
8
|
}
|
|
9
|
+
valueChanged(i) {
|
|
10
|
+
this.index = i;
|
|
11
|
+
this.indexChange.emit(this.index);
|
|
12
|
+
}
|
|
6
13
|
}
|
|
7
14
|
BreadcrumbsComponent.decorators = [
|
|
8
15
|
{ type: Component, args: [{
|
|
9
16
|
selector: 'wac-breadcrumbs',
|
|
10
|
-
template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
|
|
17
|
+
template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\" (click)=\"valueChanged(i)\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
|
|
11
18
|
},] }
|
|
12
19
|
];
|
|
13
20
|
BreadcrumbsComponent.ctorParameters = () => [];
|
|
14
21
|
BreadcrumbsComponent.propDecorators = {
|
|
15
|
-
breadcrumbs: [{ type: Input }]
|
|
22
|
+
breadcrumbs: [{ type: Input }],
|
|
23
|
+
indexChange: [{ type: Output }]
|
|
16
24
|
};
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9icmVhZGNydW1icy9icmVhZGNydW1icy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJt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V4Q2hhbmdlID0gbmV3IEV2ZW50RW1pdHRlcjxhbnk+KCk7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgfVxuXG4gIHZhbHVlQ2hhbmdlZChpKSB7XG4gICAgdGhpcy5pbmRleCA9IGk7XG4gICAgdGhpcy5pbmRleENoYW5nZS5lbWl0KHRoaXMuaW5kZXgpO1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
2
|
export class CardPriceComponent {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.disabled = false;
|
|
5
|
+
this.btnTextcolor = '#ffffff';
|
|
6
|
+
this.extraClasses = 'is-success';
|
|
7
|
+
this.hideButton = false;
|
|
4
8
|
this.click = new EventEmitter();
|
|
5
9
|
}
|
|
6
10
|
ngOnInit() {
|
|
@@ -12,7 +16,7 @@ export class CardPriceComponent {
|
|
|
12
16
|
CardPriceComponent.decorators = [
|
|
13
17
|
{ type: Component, args: [{
|
|
14
18
|
selector: 'wac-card-price',
|
|
15
|
-
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=\"
|
|
19
|
+
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"
|
|
16
20
|
},] }
|
|
17
21
|
];
|
|
18
22
|
CardPriceComponent.ctorParameters = () => [];
|
|
@@ -24,6 +28,10 @@ CardPriceComponent.propDecorators = {
|
|
|
24
28
|
priceWording: [{ type: Input }],
|
|
25
29
|
subtitle: [{ type: Input }],
|
|
26
30
|
btnLabel: [{ type: Input }],
|
|
31
|
+
disabled: [{ type: Input }],
|
|
32
|
+
btnTextcolor: [{ type: Input }],
|
|
33
|
+
extraClasses: [{ type: Input }],
|
|
34
|
+
hideButton: [{ type: Input }],
|
|
27
35
|
click: [{ type: Output }]
|
|
28
36
|
};
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1wcmljZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhcmQtcHJpY2UvY2FyZC1wcmljZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQU03RSxNQUFNLE9BQU8sa0JBQWtCO0lBcUM3QjtRQWJBLGFBQVEsR0FBWSxLQUFLLENBQUM7UUFHMUIsaUJBQVksR0FBRyxTQUFTLENBQUM7UUFHekIsaUJBQVksR0FBRyxZQUFZLENBQUM7UUFHNUIsZUFBVSxHQUFHLEtBQUssQ0FBQztRQUVGLFVBQUssR0FBc0IsSUFBSSxZQUFZLEVBQUUsQ0FBQztJQUUvQyxDQUFDO0lBRWpCLFFBQVE7SUFDUixDQUFDO0lBRUQsWUFBWTtRQUNWL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cbiAgYnRuVGV4dGNvbG9yID0gJyNmZmZmZmYnO1xuXG4gIEBJbnB1dCgpXG4gIGV4dHJhQ2xhc3NlcyA9ICdpcy1zdWNjZXNzJztcblxuICBASW5wdXQoKVxuICBoaWRlQnV0dG9uID0gZmFsc2U7XG5cbiAgQE91dHB1dCgpIHB1YmxpYyBjbGljazogRXZlbnRFbWl0dGVyPGFueT4gPSBuZXcgRXZlbnRFbWl0dGVyKCk7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgfVxuXG4gIHRyaWdnZXJDbGljaygpIHtcbiAgICB0aGlzLmNsaWNrLmVtaXQodHJ1ZSk7XG4gIH1cblxufVxuIl19
|
|
@@ -3690,23 +3690,35 @@ WrapperSidebarComponent.propDecorators = {
|
|
|
3690
3690
|
};
|
|
3691
3691
|
|
|
3692
3692
|
class BreadcrumbsComponent {
|
|
3693
|
-
constructor() {
|
|
3693
|
+
constructor() {
|
|
3694
|
+
this.index = 0;
|
|
3695
|
+
this.indexChange = new EventEmitter();
|
|
3696
|
+
}
|
|
3694
3697
|
ngOnInit() {
|
|
3695
3698
|
}
|
|
3699
|
+
valueChanged(i) {
|
|
3700
|
+
this.index = i;
|
|
3701
|
+
this.indexChange.emit(this.index);
|
|
3702
|
+
}
|
|
3696
3703
|
}
|
|
3697
3704
|
BreadcrumbsComponent.decorators = [
|
|
3698
3705
|
{ type: Component, args: [{
|
|
3699
3706
|
selector: 'wac-breadcrumbs',
|
|
3700
|
-
template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
|
|
3707
|
+
template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\" (click)=\"valueChanged(i)\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
|
|
3701
3708
|
},] }
|
|
3702
3709
|
];
|
|
3703
3710
|
BreadcrumbsComponent.ctorParameters = () => [];
|
|
3704
3711
|
BreadcrumbsComponent.propDecorators = {
|
|
3705
|
-
breadcrumbs: [{ type: Input }]
|
|
3712
|
+
breadcrumbs: [{ type: Input }],
|
|
3713
|
+
indexChange: [{ type: Output }]
|
|
3706
3714
|
};
|
|
3707
3715
|
|
|
3708
3716
|
class CardPriceComponent {
|
|
3709
3717
|
constructor() {
|
|
3718
|
+
this.disabled = false;
|
|
3719
|
+
this.btnTextcolor = '#ffffff';
|
|
3720
|
+
this.extraClasses = 'is-success';
|
|
3721
|
+
this.hideButton = false;
|
|
3710
3722
|
this.click = new EventEmitter();
|
|
3711
3723
|
}
|
|
3712
3724
|
ngOnInit() {
|
|
@@ -3718,7 +3730,7 @@ class CardPriceComponent {
|
|
|
3718
3730
|
CardPriceComponent.decorators = [
|
|
3719
3731
|
{ type: Component, args: [{
|
|
3720
3732
|
selector: 'wac-card-price',
|
|
3721
|
-
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=\"
|
|
3733
|
+
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"
|
|
3722
3734
|
},] }
|
|
3723
3735
|
];
|
|
3724
3736
|
CardPriceComponent.ctorParameters = () => [];
|
|
@@ -3730,6 +3742,10 @@ CardPriceComponent.propDecorators = {
|
|
|
3730
3742
|
priceWording: [{ type: Input }],
|
|
3731
3743
|
subtitle: [{ type: Input }],
|
|
3732
3744
|
btnLabel: [{ type: Input }],
|
|
3745
|
+
disabled: [{ type: Input }],
|
|
3746
|
+
btnTextcolor: [{ type: Input }],
|
|
3747
|
+
extraClasses: [{ type: Input }],
|
|
3748
|
+
hideButton: [{ type: Input }],
|
|
3733
3749
|
click: [{ type: Output }]
|
|
3734
3750
|
};
|
|
3735
3751
|
|