@wizishop/angular-components 0.0.181 → 0.0.185
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 +381 -304
- package/bundles/wizishop-angular-components.umd.js +45 -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/card-price/card-price.component.js +2 -2
- package/esm2015/lib/components/content-with-buttons/content-with-buttons.component.js +43 -5
- package/esm2015/lib/components/header-page/header-page.component.js +2 -2
- package/esm2015/lib/components/link/link.component.js +4 -2
- package/fesm2015/wizishop-angular-components.js +46 -6
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/content-with-buttons/content-with-buttons.component.d.ts +19 -3
- package/lib/components/link/link.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.185.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.181.tgz +0 -0
|
@@ -2121,7 +2121,7 @@
|
|
|
2121
2121
|
HeaderPageComponent.decorators = [
|
|
2122
2122
|
{ type: i0.Component, args: [{
|
|
2123
2123
|
selector: 'wac-header-page',
|
|
2124
|
-
template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\" [ngClass]=\"{'center':center}\">\n <div class=\"wac-header-page__maxWidth__top__left\" [ngClass]=\"{'fullsize':center}\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n
|
|
2124
|
+
template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\" [ngClass]=\"{'center':center}\">\n <div class=\"wac-header-page__maxWidth__top__left\" [ngClass]=\"{'fullsize':center}\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <div class=\"wac-header-page__maxWidth__top__left__nowrap\">\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1 [center]=\"center\" [withImg]=\"withImg\">{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <p class=\"subtitle\"><ng-content select=\"[role=subtitle]\"></ng-content></p>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\" *ngIf=\"!center\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
|
|
2125
2125
|
},] }
|
|
2126
2126
|
];
|
|
2127
2127
|
HeaderPageComponent.ctorParameters = function () { return []; };
|
|
@@ -2265,6 +2265,7 @@
|
|
|
2265
2265
|
function LinkComponent(renderer2) {
|
|
2266
2266
|
this.renderer2 = renderer2;
|
|
2267
2267
|
this.target = '_self';
|
|
2268
|
+
this.fontSize = '14px';
|
|
2268
2269
|
}
|
|
2269
2270
|
Object.defineProperty(LinkComponent.prototype, "href", {
|
|
2270
2271
|
get: function () {
|
|
@@ -2299,7 +2300,7 @@
|
|
|
2299
2300
|
LinkComponent.decorators = [
|
|
2300
2301
|
{ type: i0.Component, args: [{
|
|
2301
2302
|
selector: 'wac-link',
|
|
2302
|
-
template: "<a #linkComponent class=\"wac-link\" [ngClass]=\"{ class: class }\" [id]=\"{ id: id }\"><ng-content></ng-content></a>\n"
|
|
2303
|
+
template: "<a #linkComponent class=\"wac-link\" [style.fontSize]=\"fontSize\" [ngClass]=\"{ class: class }\" [id]=\"{ id: id }\"><ng-content></ng-content></a>\n"
|
|
2303
2304
|
},] }
|
|
2304
2305
|
];
|
|
2305
2306
|
LinkComponent.ctorParameters = function () { return [
|
|
@@ -2310,6 +2311,7 @@
|
|
|
2310
2311
|
target: [{ type: i0.Input }],
|
|
2311
2312
|
id: [{ type: i0.Input }],
|
|
2312
2313
|
class: [{ type: i0.Input }],
|
|
2314
|
+
fontSize: [{ type: i0.Input }],
|
|
2313
2315
|
linkComponent: [{ type: i0.ViewChild, args: ['linkComponent',] }]
|
|
2314
2316
|
};
|
|
2315
2317
|
|
|
@@ -4279,7 +4281,7 @@
|
|
|
4279
4281
|
CardPriceComponent.decorators = [
|
|
4280
4282
|
{ type: i0.Component, args: [{
|
|
4281
4283
|
selector: 'wac-card-price',
|
|
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 [noPadding]=\"true\" [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 [noPadding]=\"true\" [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=\"
|
|
4284
|
+
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 [noPadding]=\"true\" [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 [noPadding]=\"true\" [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=\"linkPackageLabel\">\n <wac-link (click)=\"removePackageTrigger()\">{{linkPackageLabel}}</wac-link>\n </div>\n</div>\n"
|
|
4283
4285
|
},] }
|
|
4284
4286
|
];
|
|
4285
4287
|
CardPriceComponent.ctorParameters = function () { return []; };
|
|
@@ -4474,18 +4476,56 @@
|
|
|
4474
4476
|
|
|
4475
4477
|
var ContentWithButtonsComponent = /** @class */ (function () {
|
|
4476
4478
|
function ContentWithButtonsComponent() {
|
|
4479
|
+
this.iconCopy = 'fa-duotone fa-copy';
|
|
4480
|
+
this.iconTranslate = 'fa-thin fa-globe';
|
|
4481
|
+
this.count = true;
|
|
4482
|
+
this.countCharacterLabel = 'caractères';
|
|
4483
|
+
this.countWordsLabel = 'mots';
|
|
4484
|
+
this.copyAction = new i0.EventEmitter();
|
|
4485
|
+
this.reportAction = new i0.EventEmitter();
|
|
4486
|
+
this.translateAction = new i0.EventEmitter();
|
|
4487
|
+
this.countIsReady = false;
|
|
4477
4488
|
}
|
|
4478
4489
|
ContentWithButtonsComponent.prototype.ngOnInit = function () {
|
|
4490
|
+
this.randomLabelName = 'content-' + Math.random() * (900 - 700) + 700;
|
|
4491
|
+
};
|
|
4492
|
+
ContentWithButtonsComponent.prototype.ngAfterViewInit = function () {
|
|
4493
|
+
var _this = this;
|
|
4494
|
+
setTimeout(function () {
|
|
4495
|
+
var content = document.getElementById(_this.randomLabelName).innerHTML.replace(/(<([^>]+)>)/gi, '').replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g, '');
|
|
4496
|
+
_this.countCharacter = content.trim().split(' ').join('').length;
|
|
4497
|
+
_this.countWords = content.trim().split(' ').length;
|
|
4498
|
+
_this.countIsReady = true;
|
|
4499
|
+
});
|
|
4500
|
+
};
|
|
4501
|
+
ContentWithButtonsComponent.prototype.eventCopy = function () {
|
|
4502
|
+
this.copyAction.emit(true);
|
|
4503
|
+
};
|
|
4504
|
+
ContentWithButtonsComponent.prototype.eventTranslate = function () {
|
|
4505
|
+
this.translateAction.emit(true);
|
|
4506
|
+
};
|
|
4507
|
+
ContentWithButtonsComponent.prototype.eventReport = function () {
|
|
4508
|
+
this.reportAction.emit(true);
|
|
4479
4509
|
};
|
|
4480
4510
|
return ContentWithButtonsComponent;
|
|
4481
4511
|
}());
|
|
4482
4512
|
ContentWithButtonsComponent.decorators = [
|
|
4483
4513
|
{ type: i0.Component, args: [{
|
|
4484
4514
|
selector: 'wac-content-with-buttons',
|
|
4485
|
-
template: "<
|
|
4515
|
+
template: "<div class=\"wac-content-with-buttons\">\n <div class=\"wac-content-with-buttons__text\">\n <div id=\"{{randomLabelName}}\">\n <ng-content></ng-content>\n </div>\n <div class=\"wac-content-with-buttons__text__count\" *ngIf=\"count && countIsReady\">\n <span>{{ countWords }} {{ countWordsLabel }} - {{ countCharacter }} {{ countCharacterLabel }}</span>\n <span><wac-link (click)=\"eventReport()\" fontSize=\"12px\">{{ reportLabel }}</wac-link></span>\n </div>\n </div>\n <div class=\"wac-content-with-buttons__cta\">\n <div><wac-button extraClasses=\"is-blue opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconCopy\" (click)=\"eventCopy()\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconTranslate\" (click)=\"eventTranslate()\"></wac-button></div>\n </div>\n</div>\n"
|
|
4486
4516
|
},] }
|
|
4487
4517
|
];
|
|
4488
|
-
ContentWithButtonsComponent.
|
|
4518
|
+
ContentWithButtonsComponent.propDecorators = {
|
|
4519
|
+
iconCopy: [{ type: i0.Input }],
|
|
4520
|
+
iconTranslate: [{ type: i0.Input }],
|
|
4521
|
+
count: [{ type: i0.Input }],
|
|
4522
|
+
countCharacterLabel: [{ type: i0.Input }],
|
|
4523
|
+
countWordsLabel: [{ type: i0.Input }],
|
|
4524
|
+
reportLabel: [{ type: i0.Input }],
|
|
4525
|
+
copyAction: [{ type: i0.Output }],
|
|
4526
|
+
reportAction: [{ type: i0.Output }],
|
|
4527
|
+
translateAction: [{ type: i0.Output }]
|
|
4528
|
+
};
|
|
4489
4529
|
|
|
4490
4530
|
var components = [
|
|
4491
4531
|
TagComponent,
|