@wizishop/angular-components 14.0.7 → 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/angular-components.scss +32 -32
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +5 -6
- package/esm2020/lib/components/inputs/input/input.component.mjs +7 -7
- package/fesm2015/wizishop-angular-components.mjs +10 -11
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +10 -11
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-14.0.9.tgz +0 -0
- package/wizishop-angular-components-14.0.7.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,21 +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
|
-
this._onTouched();
|
|
401
400
|
}
|
|
402
401
|
inputClick($event) {
|
|
403
402
|
$event.stopPropagation();
|
|
404
403
|
}
|
|
405
404
|
}
|
|
406
405
|
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
407
|
-
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] });
|
|
408
407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
409
408
|
type: Component,
|
|
410
|
-
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" }]
|
|
411
410
|
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
412
411
|
type: Input
|
|
413
412
|
}], value: [{
|
|
@@ -2011,9 +2010,9 @@ class InputComponent {
|
|
|
2011
2010
|
this.label = '';
|
|
2012
2011
|
this.value = '';
|
|
2013
2012
|
this.type = 'text';
|
|
2014
|
-
this.placeholder = '';
|
|
2015
|
-
this.textInfo = null;
|
|
2016
|
-
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
|
|
2017
2016
|
this.size = null;
|
|
2018
2017
|
this.isNumber = null;
|
|
2019
2018
|
this.withoutBlock = false;
|
|
@@ -2024,8 +2023,8 @@ class InputComponent {
|
|
|
2024
2023
|
this.min = null;
|
|
2025
2024
|
this.max = null;
|
|
2026
2025
|
this.disableMargin = false;
|
|
2027
|
-
this.textPrepend = null;
|
|
2028
|
-
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
|
|
2029
2028
|
this.progressBar = false;
|
|
2030
2029
|
this.extraClasses = '';
|
|
2031
2030
|
this.keyPreventDefault = [];
|
|
@@ -2036,7 +2035,7 @@ class InputComponent {
|
|
|
2036
2035
|
this.linkTooltip = '';
|
|
2037
2036
|
this.padding = false;
|
|
2038
2037
|
this.disabled = false;
|
|
2039
|
-
this.indication = '';
|
|
2038
|
+
this.indication = ''; // todo should be handle with ng-content
|
|
2040
2039
|
this.success = false;
|
|
2041
2040
|
this.indicationLeft = false;
|
|
2042
2041
|
this.keypressEnter = new EventEmitter();
|