ngwr 0.1.1 → 0.1.3
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/button/button.component.d.ts +3 -2
- package/esm2020/button/button.component.mjs +10 -6
- package/esm2020/input/input.component.mjs +2 -1
- package/fesm2015/ngwr.mjs +9 -5
- package/fesm2015/ngwr.mjs.map +1 -1
- package/fesm2020/ngwr.mjs +9 -5
- package/fesm2020/ngwr.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ngwr.mjs
CHANGED
|
@@ -570,12 +570,18 @@ class WrButtonComponent extends BaseComponent {
|
|
|
570
570
|
this.size = 'default';
|
|
571
571
|
this.icon = null;
|
|
572
572
|
this.iconPosition = 'start';
|
|
573
|
-
this.disabled = false;
|
|
574
573
|
this.outlined = false;
|
|
575
574
|
this.rounded = false;
|
|
576
575
|
this.loading = false;
|
|
577
576
|
this.fullwidth = false;
|
|
578
|
-
this._disabled =
|
|
577
|
+
this._disabled = false;
|
|
578
|
+
}
|
|
579
|
+
get disabled() {
|
|
580
|
+
return this._disabled;
|
|
581
|
+
}
|
|
582
|
+
set disabled(disabled) {
|
|
583
|
+
this._disabled = coerceBooleanProperty(disabled);
|
|
584
|
+
this.cdr.markForCheck();
|
|
579
585
|
}
|
|
580
586
|
get elClasses() {
|
|
581
587
|
return {
|
|
@@ -639,9 +645,6 @@ class WrButtonComponent extends BaseComponent {
|
|
|
639
645
|
}
|
|
640
646
|
WrButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: WrButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
641
647
|
WrButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: WrButtonComponent, selector: "wr-btn, button[wr-btn], a[wr-btn]", inputs: { color: "color", size: "size", icon: "icon", iconPosition: "iconPosition", disabled: "disabled", outlined: "outlined", rounded: "rounded", loading: "loading", fullwidth: "fullwidth" }, host: { properties: { "class": "this.elClasses", "disabled": "this._disabled" } }, exportAs: ["wrBtn"], usesInheritance: true, ngImport: i0, template: "<wr-spin class=\"wr-btn__spin\" *ngIf=\"loading\"></wr-spin>\n<wr-icon class=\"wr-btn__icon\" *ngIf=\"icon && iconPosition === 'start'\" [name]=\"icon\"></wr-icon>\n<ng-content></ng-content>\n<wr-icon class=\"wr-btn__icon\" *ngIf=\"icon && iconPosition === 'end'\" [name]=\"icon\"></wr-icon>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WrSpinnerComponent, selector: "wr-spin", exportAs: ["wrSpin"] }, { kind: "component", type: WrIconComponent, selector: "wr-icon[name]", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
642
|
-
__decorate([
|
|
643
|
-
InputBoolean()
|
|
644
|
-
], WrButtonComponent.prototype, "disabled", void 0);
|
|
645
648
|
__decorate([
|
|
646
649
|
InputBoolean()
|
|
647
650
|
], WrButtonComponent.prototype, "outlined", void 0);
|
|
@@ -1050,6 +1053,7 @@ class WrInputComponent extends BaseComponent {
|
|
|
1050
1053
|
}
|
|
1051
1054
|
set disabled(disabled) {
|
|
1052
1055
|
this._disabled = coerceBooleanProperty(disabled);
|
|
1056
|
+
this.cdr.markForCheck();
|
|
1053
1057
|
}
|
|
1054
1058
|
get readonly() {
|
|
1055
1059
|
return this._readonly;
|