@wizishop/angular-components 0.0.233 → 0.0.234
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 +20 -234
- package/bundles/wizishop-angular-components.umd.js +5 -1
- 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/content-with-buttons/content-with-buttons.component.js +6 -2
- package/fesm2015/wizishop-angular-components.js +5 -1
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/content-with-buttons/content-with-buttons.component.d.ts +2 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.234.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.233.tgz +0 -0
|
@@ -3,6 +3,8 @@ export class ContentWithButtonsComponent {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.iconCopy = 'fa-duotone fa-copy';
|
|
5
5
|
this.iconTranslate = 'fa-regular fa-globe';
|
|
6
|
+
this.tooltipCopy = '';
|
|
7
|
+
this.tooltipTranslate = '';
|
|
6
8
|
this.count = true;
|
|
7
9
|
this.countCharacterLabel = 'caractères';
|
|
8
10
|
this.countWordsLabel = 'mots';
|
|
@@ -35,12 +37,14 @@ export class ContentWithButtonsComponent {
|
|
|
35
37
|
ContentWithButtonsComponent.decorators = [
|
|
36
38
|
{ type: Component, args: [{
|
|
37
39
|
selector: 'wac-content-with-buttons',
|
|
38
|
-
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)=\"$event.preventDefault();\" (mousedown)=\"$event.preventDefault();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\"
|
|
40
|
+
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)=\"$event.preventDefault();\" (mousedown)=\"$event.preventDefault();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()\" [tooltip]=\"tooltipCopy\" [tooltipPosition]=\"'top-center'\" [tooltipWidth]=\"'150px'\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconTranslate\" [tooltip]=\"tooltipTranslate\" [tooltipPosition]=\"'top-center'\" [tooltipWidth]=\"'150px'\" (click)=\"eventTranslate()\"></wac-button></div>\n </div>\n</div>\n"
|
|
39
41
|
},] }
|
|
40
42
|
];
|
|
41
43
|
ContentWithButtonsComponent.propDecorators = {
|
|
42
44
|
iconCopy: [{ type: Input }],
|
|
43
45
|
iconTranslate: [{ type: Input }],
|
|
46
|
+
tooltipCopy: [{ type: Input }],
|
|
47
|
+
tooltipTranslate: [{ type: Input }],
|
|
44
48
|
count: [{ type: Input }],
|
|
45
49
|
countCharacterLabel: [{ type: Input }],
|
|
46
50
|
countWordsLabel: [{ type: Input }],
|
|
@@ -49,4 +53,4 @@ ContentWithButtonsComponent.propDecorators = {
|
|
|
49
53
|
reportAction: [{ type: Output }],
|
|
50
54
|
translateAction: [{ type: Output }]
|
|
51
55
|
};
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aXRoLWJ1dHRvbnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jb250ZW50LXdpdGgtYnV0dG9ucy9jb250ZW50LXdpdGgtYnV0dG9ucy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFrQyxTQUFTLEVBQWdCLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBTTVILE1BQU0sT0FBTywyQkFBMkI7SUFKeEM7UUFPRSxhQUFRLEdBQUcsb0JBQW9CLENBQUM7UUFHaEMsa0JBQWEsR0FBRyxxQkFBcUIsQ0FBQztRQUd0QyxnQkFBVyxHQUFHLEVBQUUsQ0FBQztRQUdqQixxQkFBZ0IsR0FBRyxFQUFFLENBQUM7UUFHdEIsVUFBSyxHQUFHLElBQUksQ0FBQztRQUdiLHdCQUFtQixHQUFHLFlBQVksQ0FBQztRQUduQyxvQkFBZSxHQUFHLE1BQU0sQ0FBQztRQU16QixlQUFVLEdBQUcsSUFBSSxZQUFZLEVBQVcsQ0FBQztRQUd6QyxpQkFBWSxHQUFHLElBQUksWUFBWSxFQUFXLENBQUM7UUFHM0Msb0JBQWUsR0FBRyxJQUFJLFlBQVksRUFBVyxDQUFDO1FBSTlDLGlCQUFZLEdBQUcsS0FBSyxDQUFDO0lBK0J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ElzUmVhZHkgPSB0cnVlO1xuICAgIH0pO1xuICB9XG5cbiAgZXZlbnRDb3B5KCkge1xuICAgIHRoaXMuY29weUFjdGlvbi5lbWl0KHRydWUpO1xuICB9XG5cbiAgZXZlbnRUcmFuc2xhdGUoKSB7XG4gICAgdGhpcy50cmFuc2xhdGVBY3Rpb24uZW1pdCh0cnVlKTtcbiAgfVxuXG4gIGV2ZW50UmVwb3J0KCkge1xuICAgIHRoaXMucmVwb3J0QWN0aW9uLmVtaXQodHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -3990,6 +3990,8 @@ class ContentWithButtonsComponent {
|
|
|
3990
3990
|
constructor() {
|
|
3991
3991
|
this.iconCopy = 'fa-duotone fa-copy';
|
|
3992
3992
|
this.iconTranslate = 'fa-regular fa-globe';
|
|
3993
|
+
this.tooltipCopy = '';
|
|
3994
|
+
this.tooltipTranslate = '';
|
|
3993
3995
|
this.count = true;
|
|
3994
3996
|
this.countCharacterLabel = 'caractères';
|
|
3995
3997
|
this.countWordsLabel = 'mots';
|
|
@@ -4022,12 +4024,14 @@ class ContentWithButtonsComponent {
|
|
|
4022
4024
|
ContentWithButtonsComponent.decorators = [
|
|
4023
4025
|
{ type: Component, args: [{
|
|
4024
4026
|
selector: 'wac-content-with-buttons',
|
|
4025
|
-
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)=\"$event.preventDefault();\" (mousedown)=\"$event.preventDefault();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\"
|
|
4027
|
+
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)=\"$event.preventDefault();\" (mousedown)=\"$event.preventDefault();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()\" [tooltip]=\"tooltipCopy\" [tooltipPosition]=\"'top-center'\" [tooltipWidth]=\"'150px'\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconTranslate\" [tooltip]=\"tooltipTranslate\" [tooltipPosition]=\"'top-center'\" [tooltipWidth]=\"'150px'\" (click)=\"eventTranslate()\"></wac-button></div>\n </div>\n</div>\n"
|
|
4026
4028
|
},] }
|
|
4027
4029
|
];
|
|
4028
4030
|
ContentWithButtonsComponent.propDecorators = {
|
|
4029
4031
|
iconCopy: [{ type: Input }],
|
|
4030
4032
|
iconTranslate: [{ type: Input }],
|
|
4033
|
+
tooltipCopy: [{ type: Input }],
|
|
4034
|
+
tooltipTranslate: [{ type: Input }],
|
|
4031
4035
|
count: [{ type: Input }],
|
|
4032
4036
|
countCharacterLabel: [{ type: Input }],
|
|
4033
4037
|
countWordsLabel: [{ type: Input }],
|