@tetacom/ng-components 1.0.128 → 1.0.130
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/component/filter/boolean-filter/boolean-filter.component.d.ts +6 -1
- package/esm2020/component/filter/boolean-filter/boolean-filter.component.mjs +15 -10
- package/esm2020/locale/en.mjs +3 -1
- package/esm2020/locale/ru.mjs +3 -1
- package/esm2020/locale/teta-localisation.mjs +1 -1
- package/fesm2015/tetacom-ng-components.mjs +13 -6
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +13 -6
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/locale/teta-localisation.d.ts +2 -0
- package/package.json +1 -1
- package/style/radio.scss +2 -0
|
@@ -978,6 +978,8 @@ const enLocale = {
|
|
|
978
978
|
avg: 'Avg',
|
|
979
979
|
search: 'Search',
|
|
980
980
|
notSelected: 'Not selected',
|
|
981
|
+
yes: 'Yes',
|
|
982
|
+
no: 'No',
|
|
981
983
|
months: [
|
|
982
984
|
'January',
|
|
983
985
|
'February',
|
|
@@ -4693,11 +4695,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
4693
4695
|
}] } });
|
|
4694
4696
|
|
|
4695
4697
|
class BooleanFilterComponent extends FilterComponentBase {
|
|
4696
|
-
constructor(changeDetector) {
|
|
4698
|
+
constructor(changeDetector, _config) {
|
|
4697
4699
|
super();
|
|
4698
4700
|
this.changeDetector = changeDetector;
|
|
4701
|
+
this._config = _config;
|
|
4699
4702
|
this.filterOptions = [];
|
|
4700
4703
|
this.filterChanged = new EventEmitter();
|
|
4704
|
+
this.locale = this._config.locale;
|
|
4701
4705
|
}
|
|
4702
4706
|
set state(val) {
|
|
4703
4707
|
this.state$ = val;
|
|
@@ -4707,7 +4711,8 @@ class BooleanFilterComponent extends FilterComponentBase {
|
|
|
4707
4711
|
get state() {
|
|
4708
4712
|
return this.state$;
|
|
4709
4713
|
}
|
|
4710
|
-
ngOnInit() {
|
|
4714
|
+
ngOnInit() {
|
|
4715
|
+
}
|
|
4711
4716
|
setFilter() {
|
|
4712
4717
|
this.filterChanged.emit(this.filter);
|
|
4713
4718
|
}
|
|
@@ -4723,12 +4728,12 @@ class BooleanFilterComponent extends FilterComponentBase {
|
|
|
4723
4728
|
return filter;
|
|
4724
4729
|
}
|
|
4725
4730
|
}
|
|
4726
|
-
BooleanFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BooleanFilterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4727
|
-
BooleanFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: BooleanFilterComponent, selector: "teta-boolean-filter", inputs: { column: "column", data: "data", filterOptions: "filterOptions", state: "state" }, outputs: { filterChanged: "filterChanged" }, usesInheritance: true, ngImport: i0, template: "<div class=\"padding-3\">\n <teta-radio [ngModel]=\"filter.value\" (ngModelChange)=\"setFilter()\">\n <teta-radio-button [value]=\"null\">
|
|
4731
|
+
BooleanFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BooleanFilterComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TetaConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4732
|
+
BooleanFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: BooleanFilterComponent, selector: "teta-boolean-filter", inputs: { column: "column", data: "data", filterOptions: "filterOptions", state: "state" }, outputs: { filterChanged: "filterChanged" }, usesInheritance: true, ngImport: i0, template: "<div class=\"padding-3\" *ngIf=\"locale | async as loc\">\n <teta-radio [ngModel]=\"filter.value\" (ngModelChange)=\"setFilter()\">\n <teta-radio-button [value]=\"null\">{{loc?.notSelected}}</teta-radio-button>\n <teta-radio-button [value]=\"true\">{{loc?.yes}}</teta-radio-button>\n <teta-radio-button [value]=\"false\">{{loc?.no}}</teta-radio-button>\n </teta-radio>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: RadioComponent, selector: "teta-radio", inputs: ["inline", "checkChangeSelected", "disabled", "value"] }, { kind: "component", type: RadioButtonComponent, selector: "teta-radio-button", inputs: ["checked", "disabled", "value"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4728
4733
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BooleanFilterComponent, decorators: [{
|
|
4729
4734
|
type: Component,
|
|
4730
|
-
args: [{ selector: 'teta-boolean-filter', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"padding-3\">\n <teta-radio [ngModel]=\"filter.value\" (ngModelChange)=\"setFilter()\">\n <teta-radio-button [value]=\"null\">
|
|
4731
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
4735
|
+
args: [{ selector: 'teta-boolean-filter', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"padding-3\" *ngIf=\"locale | async as loc\">\n <teta-radio [ngModel]=\"filter.value\" (ngModelChange)=\"setFilter()\">\n <teta-radio-button [value]=\"null\">{{loc?.notSelected}}</teta-radio-button>\n <teta-radio-button [value]=\"true\">{{loc?.yes}}</teta-radio-button>\n <teta-radio-button [value]=\"false\">{{loc?.no}}</teta-radio-button>\n </teta-radio>\n</div>\n" }]
|
|
4736
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: TetaConfigService }]; }, propDecorators: { column: [{
|
|
4732
4737
|
type: Input
|
|
4733
4738
|
}], data: [{
|
|
4734
4739
|
type: Input
|
|
@@ -12524,6 +12529,8 @@ const ruLocale = {
|
|
|
12524
12529
|
avg: 'Средн',
|
|
12525
12530
|
search: 'Поиск',
|
|
12526
12531
|
notSelected: 'Не выбрано',
|
|
12532
|
+
yes: 'Да',
|
|
12533
|
+
no: 'Нет',
|
|
12527
12534
|
months: [
|
|
12528
12535
|
'Январь',
|
|
12529
12536
|
'Февраль',
|