@wizishop/angular-components 15.1.22 → 15.1.23
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 +72 -72
- package/esm2020/lib/components/alert/alert.component.mjs +10 -4
- package/fesm2015/wizishop-angular-components.mjs +8 -2
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +8 -2
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/alert/alert.component.d.ts +4 -2
- package/package.json +1 -1
- package/wizishop-angular-components-15.1.23.tgz +0 -0
- package/wizishop-angular-components-15.1.22.tgz +0 -0
|
@@ -3157,17 +3157,21 @@ class AlertComponent {
|
|
|
3157
3157
|
this.alert = false;
|
|
3158
3158
|
this.iconClass = 'fas fa-info';
|
|
3159
3159
|
this.closeButton = false;
|
|
3160
|
+
this.isClose = false;
|
|
3161
|
+
this.isCloseChange = new EventEmitter();
|
|
3160
3162
|
}
|
|
3161
3163
|
ngOnInit() { }
|
|
3162
3164
|
closeAlert(el) {
|
|
3163
3165
|
el.remove();
|
|
3166
|
+
this.isClose = true;
|
|
3167
|
+
this.isCloseChange.next(this.isClose);
|
|
3164
3168
|
}
|
|
3165
3169
|
}
|
|
3166
3170
|
AlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3167
|
-
AlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: AlertComponent, selector: "wac-alert", inputs: { icon: "icon", warning: "warning", success: "success", alert: "alert", iconClass: "iconClass", closeButton: "closeButton" }, ngImport: i0, template: "<div #alertBlock class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\n <p><ng-content></ng-content></p> <!-- ! Refacto : Remove p tag, attention \u00E0 wizi-admin -->\n <a *ngIf=\"closeButton\" (click)=\"closeAlert(this.alertBlock)\"><i [ngClass]=\"'closeAlert fal fa-circle-xmark'\"></i></a>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3171
|
+
AlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: AlertComponent, selector: "wac-alert", inputs: { icon: "icon", warning: "warning", success: "success", alert: "alert", iconClass: "iconClass", closeButton: "closeButton" }, outputs: { isCloseChange: "isCloseChange" }, ngImport: i0, template: "<div #alertBlock class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\r\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\r\n <p><ng-content></ng-content></p> <!-- ! Refacto : Remove p tag, attention \u00E0 wizi-admin -->\r\n <a *ngIf=\"closeButton\" (click)=\"closeAlert(this.alertBlock)\"><i [ngClass]=\"'closeAlert fal fa-circle-xmark'\"></i></a>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3168
3172
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AlertComponent, decorators: [{
|
|
3169
3173
|
type: Component,
|
|
3170
|
-
args: [{ selector: 'wac-alert', template: "<div #alertBlock class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\n <p><ng-content></ng-content></p> <!-- ! Refacto : Remove p tag, attention \u00E0 wizi-admin -->\n <a *ngIf=\"closeButton\" (click)=\"closeAlert(this.alertBlock)\"><i [ngClass]=\"'closeAlert fal fa-circle-xmark'\"></i></a>\n</div>\n" }]
|
|
3174
|
+
args: [{ selector: 'wac-alert', template: "<div #alertBlock class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\r\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\r\n <p><ng-content></ng-content></p> <!-- ! Refacto : Remove p tag, attention \u00E0 wizi-admin -->\r\n <a *ngIf=\"closeButton\" (click)=\"closeAlert(this.alertBlock)\"><i [ngClass]=\"'closeAlert fal fa-circle-xmark'\"></i></a>\r\n</div>\r\n" }]
|
|
3171
3175
|
}], ctorParameters: function () { return []; }, propDecorators: { icon: [{
|
|
3172
3176
|
type: Input
|
|
3173
3177
|
}], warning: [{
|
|
@@ -3180,6 +3184,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
3180
3184
|
type: Input
|
|
3181
3185
|
}], closeButton: [{
|
|
3182
3186
|
type: Input
|
|
3187
|
+
}], isCloseChange: [{
|
|
3188
|
+
type: Output
|
|
3183
3189
|
}] } });
|
|
3184
3190
|
|
|
3185
3191
|
class TextComponent {
|