@wizishop/angular-components 0.0.184 → 0.0.187
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 +628 -546
- package/bundles/wizishop-angular-components.umd.js +62 -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/block-with-checkbox/block-with-checkbox.component.js +2 -2
- package/esm2015/lib/components/content-with-buttons/content-with-buttons.component.js +43 -5
- package/esm2015/lib/components/link/link.component.js +4 -2
- package/esm2015/lib/components/shared-components.module.js +4 -2
- package/esm2015/lib/components/wrapper-multiple-block/wrapper-multiple-block.component.js +14 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/wizishop-angular-components.js +61 -7
- 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/lib/components/wrapper-multiple-block/wrapper-multiple-block.component.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-0.0.187.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.184.tgz +0 -0
|
@@ -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
|
|
|
@@ -4354,7 +4356,7 @@
|
|
|
4354
4356
|
BlockWithCheckboxComponent.decorators = [
|
|
4355
4357
|
{ type: i0.Component, args: [{
|
|
4356
4358
|
selector: 'wac-block-with-checkbox',
|
|
4357
|
-
template: "<div class=\"block-with-checkbox\" [ngClass]=\"{'selected': inputRadioA.checked || selected, 'firstWacRadioBLock': isFirst, 'disabled': disabled}\" [style.opacity]=\"opacity\" (mouseover)=\"removeFirstClass()\">\n <div class=\"block-with-checkbox__left\" (click)=\"inputRadioA.click()\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input #inputRadioA [name]=\"nameRadio\" type=\"radio\" [checked]=\"selected\" [value]=\"selected\" (change)=\"eventSelected($event)\" [id]=\"randomLabelName\">\n <label [for]=\"randomLabelName\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\" (click)=\"inputRadioA.click()\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
4359
|
+
template: "<div class=\"block-with-checkbox\" (click)=\"disabled ? $event.preventDefault() : ''\" [ngClass]=\"{'selected': inputRadioA.checked || selected, 'firstWacRadioBLock': isFirst, 'disabled': disabled}\" [style.opacity]=\"opacity\" (mouseover)=\"removeFirstClass()\">\n <div class=\"block-with-checkbox__left\" (click)=\"inputRadioA.click()\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input #inputRadioA [name]=\"nameRadio\" type=\"radio\" [checked]=\"selected\" [value]=\"selected\" (change)=\"eventSelected($event)\" [id]=\"randomLabelName\">\n <label [for]=\"randomLabelName\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\" (click)=\"inputRadioA.click()\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
4358
4360
|
},] }
|
|
4359
4361
|
];
|
|
4360
4362
|
BlockWithCheckboxComponent.ctorParameters = function () { return []; };
|
|
@@ -4474,18 +4476,71 @@
|
|
|
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"
|
|
4516
|
+
},] }
|
|
4517
|
+
];
|
|
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
|
+
};
|
|
4529
|
+
|
|
4530
|
+
var WrapperMultipleBlockComponent = /** @class */ (function () {
|
|
4531
|
+
function WrapperMultipleBlockComponent() {
|
|
4532
|
+
}
|
|
4533
|
+
WrapperMultipleBlockComponent.prototype.ngOnInit = function () {
|
|
4534
|
+
};
|
|
4535
|
+
return WrapperMultipleBlockComponent;
|
|
4536
|
+
}());
|
|
4537
|
+
WrapperMultipleBlockComponent.decorators = [
|
|
4538
|
+
{ type: i0.Component, args: [{
|
|
4539
|
+
selector: 'wac-wrapper-multiple-block',
|
|
4540
|
+
template: "<div class=\"wac-wrapper-multiple-block\">\n <div class=\"wac-wrapper-multiple-block__sidebar\">\n <ng-content select=\"[sidebar]\"></ng-content>\n </div>\n <div class=\"wac-wrapper-multiple-block__content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n</div>\n"
|
|
4486
4541
|
},] }
|
|
4487
4542
|
];
|
|
4488
|
-
|
|
4543
|
+
WrapperMultipleBlockComponent.ctorParameters = function () { return []; };
|
|
4489
4544
|
|
|
4490
4545
|
var components = [
|
|
4491
4546
|
TagComponent,
|
|
@@ -4536,7 +4591,8 @@
|
|
|
4536
4591
|
BlockWithCheckboxComponent,
|
|
4537
4592
|
ConfirmDeleteComponent,
|
|
4538
4593
|
MosaicComponent,
|
|
4539
|
-
ContentWithButtonsComponent
|
|
4594
|
+
ContentWithButtonsComponent,
|
|
4595
|
+
WrapperMultipleBlockComponent
|
|
4540
4596
|
];
|
|
4541
4597
|
var exportsFromModule = [
|
|
4542
4598
|
PaginationComponent,
|
|
@@ -4711,6 +4767,7 @@
|
|
|
4711
4767
|
exports.WiziComponentsModule = WiziComponentsModule;
|
|
4712
4768
|
exports.WrapperBlocsComponent = WrapperBlocsComponent;
|
|
4713
4769
|
exports.WrapperComponent = WrapperComponent;
|
|
4770
|
+
exports.WrapperMultipleBlockComponent = WrapperMultipleBlockComponent;
|
|
4714
4771
|
exports.WrapperSidebarComponent = WrapperSidebarComponent;
|
|
4715
4772
|
exports.WzEditInPlaceComponent = WzEditInPlaceComponent;
|
|
4716
4773
|
exports.ZindexToggleDirective = ZindexToggleDirective;
|