@wizishop/angular-components 14.0.8 → 14.0.9
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/esm2020/lib/components/checkbox/checkbox.component.mjs +5 -8
- package/esm2020/lib/components/inputs/input/input.component.mjs +7 -7
- package/fesm2015/wizishop-angular-components.mjs +10 -13
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +10 -13
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/checkbox/checkbox.component.d.ts +0 -1
- package/package.json +1 -1
- package/wizishop-angular-components-14.0.9.tgz +0 -0
- package/wizishop-angular-components-14.0.8.tgz +0 -0
|
@@ -378,11 +378,11 @@ class CheckboxComponent {
|
|
|
378
378
|
set value(value) {
|
|
379
379
|
this._value = value;
|
|
380
380
|
this._onChange(value);
|
|
381
|
+
this._onTouched();
|
|
381
382
|
}
|
|
382
383
|
get value() {
|
|
383
384
|
return this._value;
|
|
384
385
|
}
|
|
385
|
-
;
|
|
386
386
|
registerOnChange(fn) {
|
|
387
387
|
this._onChange = fn;
|
|
388
388
|
}
|
|
@@ -393,23 +393,20 @@ class CheckboxComponent {
|
|
|
393
393
|
this.disabled = isDisabled;
|
|
394
394
|
}
|
|
395
395
|
writeValue(isChecked) {
|
|
396
|
-
this.
|
|
396
|
+
this._value = isChecked;
|
|
397
397
|
}
|
|
398
398
|
onChange(value) {
|
|
399
399
|
this._onChange(value);
|
|
400
400
|
}
|
|
401
|
-
onBlur() {
|
|
402
|
-
this._onTouched();
|
|
403
|
-
}
|
|
404
401
|
inputClick($event) {
|
|
405
402
|
$event.stopPropagation();
|
|
406
403
|
}
|
|
407
404
|
}
|
|
408
405
|
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
409
|
-
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CheckboxComponent, selector: "wac-checkbox", inputs: { label: "label", value: "value", type: "type", alone: "alone", checked: "checked", hasInput: "hasInput", inputPlaceholder: "inputPlaceholder", id: "id", name: "name", whiteSpace: "whiteSpace" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }], ngImport: i0, template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [
|
|
406
|
+
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CheckboxComponent, selector: "wac-checkbox", inputs: { label: "label", value: "value", type: "type", alone: "alone", checked: "checked", hasInput: "hasInput", inputPlaceholder: "inputPlaceholder", id: "id", name: "name", whiteSpace: "whiteSpace" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }], ngImport: i0, template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n />\n <label [attr.for]=\"id\"><span [innerHTML]=\"label\"></span></label>\n </div>\n <input\n *ngIf=\"hasInput && checked\"\n [@inOutYAnimation]\n type=\"text\"\n [placeholder]=\"inputPlaceholder\"\n (click)=\"inputClick($event)\"\n />\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"] }, { kind: "directive", type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], animations: [inOutY] });
|
|
410
407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
411
408
|
type: Component,
|
|
412
|
-
args: [{ selector: 'wac-checkbox', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }], animations: [inOutY], template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [
|
|
409
|
+
args: [{ selector: 'wac-checkbox', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }], animations: [inOutY], template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n />\n <label [attr.for]=\"id\"><span [innerHTML]=\"label\"></span></label>\n </div>\n <input\n *ngIf=\"hasInput && checked\"\n [@inOutYAnimation]\n type=\"text\"\n [placeholder]=\"inputPlaceholder\"\n (click)=\"inputClick($event)\"\n />\n</div>\n" }]
|
|
413
410
|
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
414
411
|
type: Input
|
|
415
412
|
}], value: [{
|
|
@@ -2013,9 +2010,9 @@ class InputComponent {
|
|
|
2013
2010
|
this.label = '';
|
|
2014
2011
|
this.value = '';
|
|
2015
2012
|
this.type = 'text';
|
|
2016
|
-
this.placeholder = '';
|
|
2017
|
-
this.textInfo = null;
|
|
2018
|
-
this.textError = null;
|
|
2013
|
+
this.placeholder = ''; // todo could be handle with ng-content
|
|
2014
|
+
this.textInfo = null; // todo should be handle with ng-content
|
|
2015
|
+
this.textError = null; // todo should be handle with ng-content
|
|
2019
2016
|
this.size = null;
|
|
2020
2017
|
this.isNumber = null;
|
|
2021
2018
|
this.withoutBlock = false;
|
|
@@ -2026,8 +2023,8 @@ class InputComponent {
|
|
|
2026
2023
|
this.min = null;
|
|
2027
2024
|
this.max = null;
|
|
2028
2025
|
this.disableMargin = false;
|
|
2029
|
-
this.textPrepend = null;
|
|
2030
|
-
this.textAppend = null;
|
|
2026
|
+
this.textPrepend = null; // todo should be handle with ng-content
|
|
2027
|
+
this.textAppend = null; // todo should be handle with ng-content
|
|
2031
2028
|
this.progressBar = false;
|
|
2032
2029
|
this.extraClasses = '';
|
|
2033
2030
|
this.keyPreventDefault = [];
|
|
@@ -2038,7 +2035,7 @@ class InputComponent {
|
|
|
2038
2035
|
this.linkTooltip = '';
|
|
2039
2036
|
this.padding = false;
|
|
2040
2037
|
this.disabled = false;
|
|
2041
|
-
this.indication = '';
|
|
2038
|
+
this.indication = ''; // todo should be handle with ng-content
|
|
2042
2039
|
this.success = false;
|
|
2043
2040
|
this.indicationLeft = false;
|
|
2044
2041
|
this.keypressEnter = new EventEmitter();
|