@tetacom/ng-components 1.0.142 → 1.0.144
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/autocomplete/autocomplete/autocomplete.component.d.ts +8 -0
- package/component/autocomplete/autocomplete.module.d.ts +8 -0
- package/component/autocomplete/public-api.d.ts +2 -0
- package/component/property-grid/property-grid/property-grid-group/property-grid-group.component.d.ts +5 -4
- package/component/property-grid/property-grid/property-grid-item/property-grid-item.component.d.ts +13 -10
- package/component/property-grid/property-grid/property-grid-item-description.directive.d.ts +9 -0
- package/component/property-grid/property-grid/property-grid.component.d.ts +14 -7
- package/component/property-grid/property-grid.module.d.ts +15 -18
- package/component/property-grid/public-api.d.ts +1 -0
- package/component/public-api.d.ts +1 -0
- package/esm2020/common/util/position-util.mjs +4 -4
- package/esm2020/component/autocomplete/autocomplete/autocomplete.component.mjs +14 -0
- package/esm2020/component/autocomplete/autocomplete.module.mjs +24 -0
- package/esm2020/component/autocomplete/public-api.mjs +3 -0
- package/esm2020/component/input/input/input.component.mjs +3 -3
- package/esm2020/component/property-grid/property-grid/property-grid-group/property-grid-group.component.mjs +8 -7
- package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +55 -29
- package/esm2020/component/property-grid/property-grid/property-grid-item-description.directive.mjs +19 -0
- package/esm2020/component/property-grid/property-grid/property-grid.component.mjs +42 -10
- package/esm2020/component/property-grid/property-grid.module.mjs +7 -16
- package/esm2020/component/property-grid/public-api.mjs +2 -1
- package/esm2020/component/public-api.mjs +3 -1
- package/esm2020/component/table/table/table.component.mjs +5 -2
- package/esm2020/util/forms-util.mjs +24 -9
- package/fesm2015/tetacom-ng-components.mjs +178 -103
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +175 -103
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/util/forms-util.d.ts +5 -1
- package/component/property-grid/default/date-item-default/date-item-default.component.d.ts +0 -8
- package/component/property-grid/default/list-item-default/list-item-default.component.d.ts +0 -8
- package/component/property-grid/default/numeric-item-default/numeric-item-default.component.d.ts +0 -8
- package/component/property-grid/default/string-item-default/string-item-default.component.d.ts +0 -8
- package/esm2020/component/property-grid/default/date-item-default/date-item-default.component.mjs +0 -13
- package/esm2020/component/property-grid/default/list-item-default/list-item-default.component.mjs +0 -13
- package/esm2020/component/property-grid/default/numeric-item-default/numeric-item-default.component.mjs +0 -13
- package/esm2020/component/property-grid/default/string-item-default/string-item-default.component.mjs +0 -13
|
@@ -6,7 +6,7 @@ import * as i1 from '@angular/common/http';
|
|
|
6
6
|
import { HttpClient, HttpClientModule } from '@angular/common/http';
|
|
7
7
|
import { map, takeWhile, throttleTime, withLatestFrom, tap, bufferCount, filter } from 'rxjs/operators';
|
|
8
8
|
import * as i3 from '@angular/forms';
|
|
9
|
-
import { NG_VALUE_ACCESSOR, FormsModule, UntypedFormControl, UntypedFormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import { NG_VALUE_ACCESSOR, FormsModule, UntypedFormControl, UntypedFormGroup, Validators, ControlContainer, NgForm, NgModelGroup, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
10
10
|
import { BehaviorSubject, fromEvent, Subject, ReplaySubject, combineLatest, merge, Observable, pipe } from 'rxjs';
|
|
11
11
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
12
12
|
import * as i1$1 from '@ngneat/transloco';
|
|
@@ -321,6 +321,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
321
321
|
}]
|
|
322
322
|
}] });
|
|
323
323
|
|
|
324
|
+
class AutocompleteComponent {
|
|
325
|
+
constructor() { }
|
|
326
|
+
ngOnInit() {
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
AutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
330
|
+
AutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AutocompleteComponent, selector: "teta-autocomplete", ngImport: i0, template: "<p>autocomplete works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutocompleteComponent, decorators: [{
|
|
332
|
+
type: Component,
|
|
333
|
+
args: [{ selector: 'teta-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>autocomplete works!</p>\n" }]
|
|
334
|
+
}], ctorParameters: function () { return []; } });
|
|
335
|
+
|
|
336
|
+
class AutocompleteModule {
|
|
337
|
+
}
|
|
338
|
+
AutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
339
|
+
AutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: AutocompleteModule, declarations: [AutocompleteComponent], imports: [CommonModule], exports: [AutocompleteComponent] });
|
|
340
|
+
AutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutocompleteModule, imports: [CommonModule] });
|
|
341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutocompleteModule, decorators: [{
|
|
342
|
+
type: NgModule,
|
|
343
|
+
args: [{
|
|
344
|
+
declarations: [
|
|
345
|
+
AutocompleteComponent
|
|
346
|
+
],
|
|
347
|
+
exports: [
|
|
348
|
+
AutocompleteComponent
|
|
349
|
+
],
|
|
350
|
+
imports: [
|
|
351
|
+
CommonModule
|
|
352
|
+
]
|
|
353
|
+
}]
|
|
354
|
+
}] });
|
|
355
|
+
|
|
324
356
|
class ButtonComponent {
|
|
325
357
|
constructor() {
|
|
326
358
|
this.view = 'primary';
|
|
@@ -1158,12 +1190,12 @@ class PositionUtil {
|
|
|
1158
1190
|
(containerPosition.top + containerPosition.bottom) / 2 -
|
|
1159
1191
|
elementHeight / 2;
|
|
1160
1192
|
}
|
|
1161
|
-
if (rect.left < 0) {
|
|
1162
|
-
rect.left = 0;
|
|
1163
|
-
}
|
|
1164
1193
|
if (rect.left + elementWidth > window.innerWidth) {
|
|
1165
1194
|
rect.left = window.innerWidth - elementWidth;
|
|
1166
1195
|
}
|
|
1196
|
+
if (rect.left < 0) {
|
|
1197
|
+
rect.left = 0;
|
|
1198
|
+
}
|
|
1167
1199
|
if (rect.top + elementHeight > window.innerHeight || rect.bottom < 0) {
|
|
1168
1200
|
rect.bottom = 0;
|
|
1169
1201
|
}
|
|
@@ -3967,10 +3999,10 @@ class InputComponent {
|
|
|
3967
3999
|
ngOnInit() { }
|
|
3968
4000
|
}
|
|
3969
4001
|
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3970
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: InputComponent, selector: "teta-input", inputs: { label: "label", hint: "hint", horizontal: "horizontal", required: "required" }, host: { properties: { "class.row": "this.horizontal", "class.column": "this.column" } }, ngImport: i0, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n <span class=\"overflow-hidden text-overflow-ellipsis\"\n [tetaHint]=\"hint ?? label\"\n [align]=\"align.left\"\n [overflownOnly]=\"
|
|
4002
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: InputComponent, selector: "teta-input", inputs: { label: "label", hint: "hint", horizontal: "horizontal", required: "required" }, host: { properties: { "class.row": "this.horizontal", "class.column": "this.column" } }, ngImport: i0, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n <span class=\"overflow-hidden text-overflow-ellipsis\"\n [tetaHint]=\"hint ?? label\"\n [align]=\"align.left\"\n [overflownOnly]=\"!hint || hint === label\">\n {{label}}\n </span>\n</div>\n<div class=\"input-container\" [class.row_6]=\"horizontal\">\n <ng-content></ng-content>\n <div class=\"input-message font-error-message\">\n <ng-content select=\"message\"></ng-content>\n </div>\n</div>\n", styles: [":host{display:flex;grid-gap:4px;flex-grow:1;flex-basis:10px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3971
4003
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputComponent, decorators: [{
|
|
3972
4004
|
type: Component,
|
|
3973
|
-
args: [{ selector: 'teta-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n <span class=\"overflow-hidden text-overflow-ellipsis\"\n [tetaHint]=\"hint ?? label\"\n [align]=\"align.left\"\n [overflownOnly]=\"
|
|
4005
|
+
args: [{ selector: 'teta-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n <span class=\"overflow-hidden text-overflow-ellipsis\"\n [tetaHint]=\"hint ?? label\"\n [align]=\"align.left\"\n [overflownOnly]=\"!hint || hint === label\">\n {{label}}\n </span>\n</div>\n<div class=\"input-container\" [class.row_6]=\"horizontal\">\n <ng-content></ng-content>\n <div class=\"input-message font-error-message\">\n <ng-content select=\"message\"></ng-content>\n </div>\n</div>\n", styles: [":host{display:flex;grid-gap:4px;flex-grow:1;flex-basis:10px}\n"] }]
|
|
3974
4006
|
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
3975
4007
|
type: Input
|
|
3976
4008
|
}], hint: [{
|
|
@@ -6552,6 +6584,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6552
6584
|
}]
|
|
6553
6585
|
}] });
|
|
6554
6586
|
|
|
6587
|
+
class PropertyGridItemDescriptionDirective {
|
|
6588
|
+
constructor(template) {
|
|
6589
|
+
this.template = template;
|
|
6590
|
+
}
|
|
6591
|
+
}
|
|
6592
|
+
PropertyGridItemDescriptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemDescriptionDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6593
|
+
PropertyGridItemDescriptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridItemDescriptionDirective, selector: "[tetaPropertyGridItemDescription]", inputs: { name: ["tetaPropertyGridItemDescription", "name"] }, ngImport: i0 });
|
|
6594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemDescriptionDirective, decorators: [{
|
|
6595
|
+
type: Directive,
|
|
6596
|
+
args: [{
|
|
6597
|
+
selector: '[tetaPropertyGridItemDescription]'
|
|
6598
|
+
}]
|
|
6599
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { name: [{
|
|
6600
|
+
type: Input,
|
|
6601
|
+
args: ['tetaPropertyGridItemDescription']
|
|
6602
|
+
}] } });
|
|
6603
|
+
|
|
6555
6604
|
class FormsUtil {
|
|
6556
6605
|
static validateAllFormFields(formGroup) {
|
|
6557
6606
|
formGroup.updateValueAndValidity();
|
|
@@ -6595,17 +6644,20 @@ class FormsUtil {
|
|
|
6595
6644
|
const form = new UntypedFormGroup({});
|
|
6596
6645
|
const flat = ArrayUtil.flatten(columns, 'columns');
|
|
6597
6646
|
flat.forEach((column) => {
|
|
6598
|
-
const control =
|
|
6599
|
-
value: dataItem ? dataItem[column.name] : undefined,
|
|
6600
|
-
disabled: !column.editable,
|
|
6601
|
-
}, {
|
|
6602
|
-
validators: FormsUtil.getValidators(column),
|
|
6603
|
-
updateOn: column.filterType === FilterType.number || column.filterType === FilterType.string ? 'blur' : 'change'
|
|
6604
|
-
});
|
|
6647
|
+
const control = FormsUtil.initControlFromColumn(column, dataItem);
|
|
6605
6648
|
form.registerControl(column.name, control);
|
|
6606
6649
|
});
|
|
6607
6650
|
return form;
|
|
6608
6651
|
}
|
|
6652
|
+
static initControlFromColumn(column, dataItem) {
|
|
6653
|
+
return new UntypedFormControl({
|
|
6654
|
+
value: dataItem ? dataItem[column.name] : undefined,
|
|
6655
|
+
disabled: !column.editable,
|
|
6656
|
+
}, {
|
|
6657
|
+
validators: FormsUtil.getValidators(column),
|
|
6658
|
+
updateOn: column.filterType === FilterType.number || column.filterType === FilterType.string ? 'blur' : 'change'
|
|
6659
|
+
});
|
|
6660
|
+
}
|
|
6609
6661
|
static getValidators(column) {
|
|
6610
6662
|
const validators = [];
|
|
6611
6663
|
if (column.required) {
|
|
@@ -6626,7 +6678,18 @@ class FormsUtil {
|
|
|
6626
6678
|
}
|
|
6627
6679
|
return null;
|
|
6628
6680
|
}
|
|
6681
|
+
static formFactory(ngForm, ngModelGroup) {
|
|
6682
|
+
return ngModelGroup || ngForm || null;
|
|
6683
|
+
}
|
|
6629
6684
|
}
|
|
6685
|
+
FormsUtil.formProvider = {
|
|
6686
|
+
provide: ControlContainer,
|
|
6687
|
+
useFactory: FormsUtil.formFactory,
|
|
6688
|
+
deps: [
|
|
6689
|
+
[new Optional(), NgForm],
|
|
6690
|
+
[new Optional(), NgModelGroup],
|
|
6691
|
+
],
|
|
6692
|
+
};
|
|
6630
6693
|
|
|
6631
6694
|
const TOGGLE_CONTROL_VALUE_ACCESSOR = {
|
|
6632
6695
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -6704,27 +6767,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6704
6767
|
}] } });
|
|
6705
6768
|
|
|
6706
6769
|
class PropertyGridItemComponent {
|
|
6707
|
-
constructor(_transloco) {
|
|
6770
|
+
constructor(_transloco, _formGroup) {
|
|
6708
6771
|
this._transloco = _transloco;
|
|
6772
|
+
this._formGroup = _formGroup;
|
|
6709
6773
|
this.controlValueChange = new EventEmitter();
|
|
6710
6774
|
this.align = Align;
|
|
6711
6775
|
this.filterTypeEnum = FilterType;
|
|
6712
6776
|
this._alive = true;
|
|
6713
6777
|
}
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6778
|
+
// @Input()
|
|
6779
|
+
// set formGroup(form: UntypedFormGroup) {
|
|
6780
|
+
// this._formGroup = form;
|
|
6781
|
+
// this._formSub?.unsubscribe();
|
|
6782
|
+
// this._formSub = this._formGroup?.controls[this.column.name]?.valueChanges
|
|
6783
|
+
// .pipe(
|
|
6784
|
+
// takeWhile(() => this._alive)
|
|
6785
|
+
// )
|
|
6786
|
+
// .subscribe((_) => {
|
|
6787
|
+
// this.controlValueChange.emit({
|
|
6788
|
+
// id: _,
|
|
6789
|
+
// name: this.column.name,
|
|
6790
|
+
// });
|
|
6791
|
+
// });
|
|
6792
|
+
// }
|
|
6793
|
+
get template() {
|
|
6794
|
+
return this.itemTemplates.find((item) => item.name === this.column.name);
|
|
6725
6795
|
}
|
|
6726
6796
|
get formGroup() {
|
|
6727
|
-
|
|
6797
|
+
if (this._formGroup instanceof FormGroup) {
|
|
6798
|
+
return this._formGroup;
|
|
6799
|
+
}
|
|
6800
|
+
if (this._formGroup instanceof NgForm) {
|
|
6801
|
+
return this._formGroup.form;
|
|
6802
|
+
}
|
|
6803
|
+
return null;
|
|
6728
6804
|
}
|
|
6729
6805
|
get caption() {
|
|
6730
6806
|
if (this.column.filterType === FilterType.boolean) {
|
|
@@ -6759,25 +6835,35 @@ class PropertyGridItemComponent {
|
|
|
6759
6835
|
});
|
|
6760
6836
|
}
|
|
6761
6837
|
}
|
|
6762
|
-
valueChange() {
|
|
6763
|
-
this.controlValueChange.emit({
|
|
6764
|
-
id: this.formGroup?.controls[this.column.name]?.value,
|
|
6765
|
-
name: this.column.name,
|
|
6766
|
-
});
|
|
6767
|
-
}
|
|
6768
6838
|
ngOnInit() {
|
|
6769
6839
|
}
|
|
6770
6840
|
ngOnDestroy() {
|
|
6771
6841
|
this._alive = false;
|
|
6772
6842
|
this._formSub?.unsubscribe();
|
|
6773
6843
|
}
|
|
6844
|
+
ngOnChanges(changes) {
|
|
6845
|
+
if (this.column && this.item) {
|
|
6846
|
+
this.formGroup.registerControl(this.column.name, FormsUtil.initControlFromColumn(this.column, this.item));
|
|
6847
|
+
this._formSub?.unsubscribe();
|
|
6848
|
+
this._formSub = this.formGroup?.controls[this.column.name]?.valueChanges
|
|
6849
|
+
.pipe(takeWhile(() => this._alive))
|
|
6850
|
+
.subscribe((_) => {
|
|
6851
|
+
this.controlValueChange.emit({
|
|
6852
|
+
id: _,
|
|
6853
|
+
name: this.column.name,
|
|
6854
|
+
});
|
|
6855
|
+
});
|
|
6856
|
+
}
|
|
6857
|
+
}
|
|
6774
6858
|
}
|
|
6775
|
-
PropertyGridItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemComponent, deps: [{ token: i1$1.TranslocoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6776
|
-
PropertyGridItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridItemComponent, selector: "teta-property-grid-item", inputs: { column: "column", hideNonEditable: "hideNonEditable", dict: "dict", decimalPart: "decimalPart",
|
|
6859
|
+
PropertyGridItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemComponent, deps: [{ token: i1$1.TranslocoService }, { token: i3.ControlContainer, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
6860
|
+
PropertyGridItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridItemComponent, selector: "teta-property-grid-item", inputs: { column: "column", hideNonEditable: "hideNonEditable", dict: "dict", decimalPart: "decimalPart", item: "item", itemTemplates: "itemTemplates", horizontal: "horizontal" }, outputs: { controlValueChange: "controlValueChange" }, usesOnChanges: true, ngImport: i0, template: "<teta-input [label]=\"caption\"\n [hint]=\"column.hint\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n [required]=\"column.required\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container *ngIf=\"template; else default\">\n <ng-container *ngTemplateOutlet=\"template.template;context: {$implicit: formGroup?.get(column.name)}\"></ng-container>\n </ng-container>\n <ng-template #default>\n <ng-container [ngSwitch]=\"column.filterType\"\n *ngIf=\"formGroup?.get(column.name)\">\n <teta-select class=\"row_auto\"\n *ngSwitchCase=\"filterTypeEnum.list\"\n [searchRef]=\"getDict()?.length > 10 ? 'name' : ''\"\n [allowNull]=\"!column.required\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"\n [options]=\"getDict()\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [multiple]=\"false\"></teta-select>\n <teta-date-picker *ngSwitchCase=\"filterTypeEnum.date\"\n class=\"row_auto\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-date-picker>\n <teta-toggle *ngSwitchCase=\"filterTypeEnum.boolean\"\n [formControlName]=\"column.name\">\n {{column.caption}}\n </teta-toggle>\n <teta-text-field class=\"row_auto\"\n *ngSwitchDefault\n\n [decimalPart]=\"column.filterType === filterTypeEnum.number ? decimalPart : null\"\n [onlyNumber]=\"column.filterType === filterTypeEnum.number\"\n [placeholder]=\"column.caption\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-text-field>\n </ng-container>\n </ng-template>\n <div *ngIf=\"controlIsInvalid(column.name)\"\n ngProjectAs=\"message\"\n class=\"color-red-50\">\n {{getError(column)}}\n </div>\n</teta-input>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: DatePickerComponent, selector: "teta-date-picker", inputs: ["disabled", "invalid", "firstDayOfWeek", "disabledDates", "disabledPeriods", "disabledDays", "minDate", "maxDate", "minYearDate", "maxYearDate", "align", "verticalAlign", "appendToBody", "allowNull", "backdrop", "showTime", "format"] }, { kind: "component", type: SelectComponent, selector: "teta-select", inputs: ["multiple", "options", "invalid", "align", "verticalAlign", "autoClose", "autoCloseIgnore", "disabled", "itemSize", "virtual", "icon", "placeholder", "appendToBody", "allowNull", "valueRef", "textRef", "searchRef"] }, { kind: "component", type: InputComponent, selector: "teta-input", inputs: ["label", "hint", "horizontal", "required"] }, { kind: "component", type: TextFieldComponent, selector: "teta-text-field", inputs: ["placeholder", "leftIconName", "disabled", "onlyNumber", "decimalPart", "invalid"] }, { kind: "component", type: ToggleComponent, selector: "teta-toggle", inputs: ["palette", "noLabel", "disabled"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], viewProviders: [FormsUtil.formProvider] });
|
|
6777
6861
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemComponent, decorators: [{
|
|
6778
6862
|
type: Component,
|
|
6779
|
-
args: [{ selector: 'teta-property-grid-item', template: "<teta-input [label]=\"caption\"\n [hint]=\"column.hint\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n [required]=\"column.required\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container [ngSwitch]=\"column.filterType\"\n
|
|
6780
|
-
}], ctorParameters: function () { return [{ type: i1$1.TranslocoService }
|
|
6863
|
+
args: [{ selector: 'teta-property-grid-item', viewProviders: [FormsUtil.formProvider], template: "<teta-input [label]=\"caption\"\n [hint]=\"column.hint\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n [required]=\"column.required\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container *ngIf=\"template; else default\">\n <ng-container *ngTemplateOutlet=\"template.template;context: {$implicit: formGroup?.get(column.name)}\"></ng-container>\n </ng-container>\n <ng-template #default>\n <ng-container [ngSwitch]=\"column.filterType\"\n *ngIf=\"formGroup?.get(column.name)\">\n <teta-select class=\"row_auto\"\n *ngSwitchCase=\"filterTypeEnum.list\"\n [searchRef]=\"getDict()?.length > 10 ? 'name' : ''\"\n [allowNull]=\"!column.required\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"\n [options]=\"getDict()\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [multiple]=\"false\"></teta-select>\n <teta-date-picker *ngSwitchCase=\"filterTypeEnum.date\"\n class=\"row_auto\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-date-picker>\n <teta-toggle *ngSwitchCase=\"filterTypeEnum.boolean\"\n [formControlName]=\"column.name\">\n {{column.caption}}\n </teta-toggle>\n <teta-text-field class=\"row_auto\"\n *ngSwitchDefault\n\n [decimalPart]=\"column.filterType === filterTypeEnum.number ? decimalPart : null\"\n [onlyNumber]=\"column.filterType === filterTypeEnum.number\"\n [placeholder]=\"column.caption\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-text-field>\n </ng-container>\n </ng-template>\n <div *ngIf=\"controlIsInvalid(column.name)\"\n ngProjectAs=\"message\"\n class=\"color-red-50\">\n {{getError(column)}}\n </div>\n</teta-input>\n" }]
|
|
6864
|
+
}], ctorParameters: function () { return [{ type: i1$1.TranslocoService }, { type: i3.ControlContainer, decorators: [{
|
|
6865
|
+
type: Optional
|
|
6866
|
+
}] }]; }, propDecorators: { column: [{
|
|
6781
6867
|
type: Input
|
|
6782
6868
|
}], hideNonEditable: [{
|
|
6783
6869
|
type: Input
|
|
@@ -6785,7 +6871,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6785
6871
|
type: Input
|
|
6786
6872
|
}], decimalPart: [{
|
|
6787
6873
|
type: Input
|
|
6788
|
-
}],
|
|
6874
|
+
}], item: [{
|
|
6875
|
+
type: Input
|
|
6876
|
+
}], itemTemplates: [{
|
|
6789
6877
|
type: Input
|
|
6790
6878
|
}], horizontal: [{
|
|
6791
6879
|
type: Input
|
|
@@ -6804,17 +6892,17 @@ class PropertyGridGroupComponent {
|
|
|
6804
6892
|
}
|
|
6805
6893
|
}
|
|
6806
6894
|
PropertyGridGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6807
|
-
PropertyGridGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridGroupComponent, selector: "teta-property-grid-group", inputs: { column: "column", hideNonEditable: "hideNonEditable", dict: "dict",
|
|
6895
|
+
PropertyGridGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridGroupComponent, selector: "teta-property-grid-group", inputs: { column: "column", hideNonEditable: "hideNonEditable", dict: "dict", item: "item", horizontal: "horizontal", decimalPart: "decimalPart", itemTemplates: "itemTemplates" }, outputs: { controlValueChange: "controlValueChange" }, ngImport: i0, template: "<teta-expand-item>\n <span ngProjectAs='head'>\n {{column.caption}}\n </span>\n <div class=\"form-container\">\n <ng-container *ngFor=\"let col of column.columns; trackBy: trackColumns\">\n <ng-container *ngIf=\"col.columns?.length < 1\">\n <teta-property-grid-item *ngIf=\"column.editable || !hideNonEditable\"\n [id]=\"col.name\"\n [dict]=\"dict\"\n [column]=\"col\"\n [item]=\"item\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [hideNonEditable]=\"hideNonEditable\"\n (controlValueChange)=\"controlValueChange.emit($event)\"\n [horizontal]=\"horizontal\"></teta-property-grid-item>\n </ng-container>\n <ng-container *ngIf=\"col.columns?.length > 0\">\n <teta-property-grid-group [id]=\"col.name\"\n [dict]=\"dict\"\n [column]=\"col\"\n [item]=\"item\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [hideNonEditable]=\"hideNonEditable\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"controlValueChange.emit($event)\"></teta-property-grid-group>\n </ng-container>\n </ng-container>\n </div>\n</teta-expand-item>\n", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ExpandItemComponent, selector: "teta-expand-item", inputs: ["open"], outputs: ["openChange"], exportAs: ["expand-item"] }, { kind: "component", type: PropertyGridGroupComponent, selector: "teta-property-grid-group", inputs: ["column", "hideNonEditable", "dict", "item", "horizontal", "decimalPart", "itemTemplates"], outputs: ["controlValueChange"] }, { kind: "component", type: PropertyGridItemComponent, selector: "teta-property-grid-item", inputs: ["column", "hideNonEditable", "dict", "decimalPart", "item", "itemTemplates", "horizontal"], outputs: ["controlValueChange"] }] });
|
|
6808
6896
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridGroupComponent, decorators: [{
|
|
6809
6897
|
type: Component,
|
|
6810
|
-
args: [{ selector: 'teta-property-grid-group', template: "<teta-expand-item>\n <span ngProjectAs='head'>\n {{column.caption}}\n </span>\n <div class=\"form-container\">\n <ng-container *ngFor=\"let col of column.columns; trackBy: trackColumns\">\n <ng-container *ngIf=\"col.columns?.length < 1\">\n <teta-property-grid-item *ngIf=\"column.editable || !hideNonEditable\"\n [id]=\"col.name\"\n [dict]=\"dict\"\n [column]=\"col\"\n [decimalPart]=\"decimalPart\"\n [hideNonEditable]=\"hideNonEditable\"\n (controlValueChange)=\"controlValueChange.emit($event)\"\n [horizontal]=\"horizontal\"
|
|
6898
|
+
args: [{ selector: 'teta-property-grid-group', template: "<teta-expand-item>\n <span ngProjectAs='head'>\n {{column.caption}}\n </span>\n <div class=\"form-container\">\n <ng-container *ngFor=\"let col of column.columns; trackBy: trackColumns\">\n <ng-container *ngIf=\"col.columns?.length < 1\">\n <teta-property-grid-item *ngIf=\"column.editable || !hideNonEditable\"\n [id]=\"col.name\"\n [dict]=\"dict\"\n [column]=\"col\"\n [item]=\"item\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [hideNonEditable]=\"hideNonEditable\"\n (controlValueChange)=\"controlValueChange.emit($event)\"\n [horizontal]=\"horizontal\"></teta-property-grid-item>\n </ng-container>\n <ng-container *ngIf=\"col.columns?.length > 0\">\n <teta-property-grid-group [id]=\"col.name\"\n [dict]=\"dict\"\n [column]=\"col\"\n [item]=\"item\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [hideNonEditable]=\"hideNonEditable\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"controlValueChange.emit($event)\"></teta-property-grid-group>\n </ng-container>\n </ng-container>\n </div>\n</teta-expand-item>\n", styles: [":host{display:flex;flex-direction:column}\n"] }]
|
|
6811
6899
|
}], ctorParameters: function () { return []; }, propDecorators: { column: [{
|
|
6812
6900
|
type: Input
|
|
6813
6901
|
}], hideNonEditable: [{
|
|
6814
6902
|
type: Input
|
|
6815
6903
|
}], dict: [{
|
|
6816
6904
|
type: Input
|
|
6817
|
-
}],
|
|
6905
|
+
}], item: [{
|
|
6818
6906
|
type: Input
|
|
6819
6907
|
}], horizontal: [{
|
|
6820
6908
|
type: Input
|
|
@@ -6822,13 +6910,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6822
6910
|
type: Output
|
|
6823
6911
|
}], decimalPart: [{
|
|
6824
6912
|
type: Input
|
|
6913
|
+
}], itemTemplates: [{
|
|
6914
|
+
type: Input
|
|
6825
6915
|
}] } });
|
|
6826
6916
|
|
|
6827
6917
|
class PropertyGridComponent {
|
|
6828
|
-
constructor() {
|
|
6918
|
+
constructor(_formGroup) {
|
|
6919
|
+
this._formGroup = _formGroup;
|
|
6829
6920
|
this.formClass = true;
|
|
6830
6921
|
this.controlValueChange = new EventEmitter();
|
|
6831
6922
|
this._alive = true;
|
|
6923
|
+
// console.log(this.formGroup)
|
|
6924
|
+
}
|
|
6925
|
+
set item(item) {
|
|
6926
|
+
this._item = item;
|
|
6927
|
+
if (this.formGroup) {
|
|
6928
|
+
this.formGroup.patchValue(item, {
|
|
6929
|
+
emitEvent: false
|
|
6930
|
+
});
|
|
6931
|
+
}
|
|
6932
|
+
}
|
|
6933
|
+
get item() {
|
|
6934
|
+
return this._item;
|
|
6935
|
+
}
|
|
6936
|
+
get formGroup() {
|
|
6937
|
+
if (this._formGroup instanceof FormGroup) {
|
|
6938
|
+
return this._formGroup;
|
|
6939
|
+
}
|
|
6940
|
+
if (this._formGroup instanceof NgForm) {
|
|
6941
|
+
return this._formGroup.form;
|
|
6942
|
+
}
|
|
6943
|
+
return null;
|
|
6832
6944
|
}
|
|
6833
6945
|
onControlValueChange(event) {
|
|
6834
6946
|
const affected = this.columns.filter((_) => _.parentName === event.name);
|
|
@@ -6858,22 +6970,29 @@ class PropertyGridComponent {
|
|
|
6858
6970
|
getDictValue(value, name) {
|
|
6859
6971
|
return this.dict[name]?.find((_) => _.id === value);
|
|
6860
6972
|
}
|
|
6973
|
+
ngAfterViewInit() {
|
|
6974
|
+
}
|
|
6861
6975
|
}
|
|
6862
|
-
PropertyGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6863
|
-
PropertyGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridComponent, selector: "teta-property-grid", inputs: { hideNonEditable: "hideNonEditable", columns: "columns", dict: "dict",
|
|
6976
|
+
PropertyGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridComponent, deps: [{ token: i3.ControlContainer, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
6977
|
+
PropertyGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridComponent, selector: "teta-property-grid", inputs: { hideNonEditable: "hideNonEditable", columns: "columns", dict: "dict", item: "item", horizontal: "horizontal", decimalPart: "decimalPart" }, outputs: { controlValueChange: "controlValueChange" }, host: { properties: { "class.form-container": "this.formClass" } }, queries: [{ propertyName: "itemTemplates", predicate: PropertyGridItemDescriptionDirective }], ngImport: i0, template: "<ng-container *ngIf=\"columns?.length\">\n <ng-container *ngFor=\"let column of columns; trackBy: trackColumns\">\n <teta-property-grid-item *ngIf=\"column.columns?.length < 1 && (column.editable || !hideNonEditable)\"\n [dict]=\"dict\"\n [column]=\"column\"\n [item]=\"item\"\n [id]=\"column.name\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"onControlValueChange($event)\"\n [hideNonEditable]=\"hideNonEditable\"></teta-property-grid-item>\n <teta-property-grid-group *ngIf=\"column.columns?.length > 0 && (column.editable || !hideNonEditable)\"\n [id]=\"column.name\"\n [dict]=\"dict\"\n [column]=\"column\"\n [item]=\"item\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"onControlValueChange($event)\"\n [hideNonEditable]=\"hideNonEditable\"></teta-property-grid-group>\n </ng-container>\n</ng-container>\n", styles: [":host{padding:12px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PropertyGridGroupComponent, selector: "teta-property-grid-group", inputs: ["column", "hideNonEditable", "dict", "item", "horizontal", "decimalPart", "itemTemplates"], outputs: ["controlValueChange"] }, { kind: "component", type: PropertyGridItemComponent, selector: "teta-property-grid-item", inputs: ["column", "hideNonEditable", "dict", "decimalPart", "item", "itemTemplates", "horizontal"], outputs: ["controlValueChange"] }], viewProviders: [FormsUtil.formProvider] });
|
|
6864
6978
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridComponent, decorators: [{
|
|
6865
6979
|
type: Component,
|
|
6866
|
-
args: [{ selector: 'teta-property-grid', template: "<ng-container *ngIf=\"columns?.length\">\n <ng-container *ngFor=\"let column of columns; trackBy: trackColumns\">\n <teta-property-grid-item *ngIf=\"column.columns?.length < 1 && (column.editable || !hideNonEditable)\"\n [dict]=\"dict\"\n [column]=\"column\"\n [id]=\"column.name\"\n [decimalPart]=\"decimalPart\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"onControlValueChange($event)\"\n [hideNonEditable]=\"hideNonEditable\"></teta-property-grid-item>\n <teta-property-grid-group *ngIf=\"column.columns?.length > 0 && (column.editable || !hideNonEditable)\"\n [id]=\"column.name\"\n [dict]=\"dict\"\n [column]=\"column\"\n [decimalPart]=\"decimalPart\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"onControlValueChange($event)\"\n [hideNonEditable]=\"hideNonEditable\"></teta-property-grid-group>\n </ng-container>\n</ng-container>\n", styles: [":host{padding:12px 8px}\n"] }]
|
|
6867
|
-
}], ctorParameters: function () { return [
|
|
6980
|
+
args: [{ selector: 'teta-property-grid', viewProviders: [FormsUtil.formProvider], template: "<ng-container *ngIf=\"columns?.length\">\n <ng-container *ngFor=\"let column of columns; trackBy: trackColumns\">\n <teta-property-grid-item *ngIf=\"column.columns?.length < 1 && (column.editable || !hideNonEditable)\"\n [dict]=\"dict\"\n [column]=\"column\"\n [item]=\"item\"\n [id]=\"column.name\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"onControlValueChange($event)\"\n [hideNonEditable]=\"hideNonEditable\"></teta-property-grid-item>\n <teta-property-grid-group *ngIf=\"column.columns?.length > 0 && (column.editable || !hideNonEditable)\"\n [id]=\"column.name\"\n [dict]=\"dict\"\n [column]=\"column\"\n [item]=\"item\"\n [itemTemplates]=\"itemTemplates\"\n [decimalPart]=\"decimalPart\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n (controlValueChange)=\"onControlValueChange($event)\"\n [hideNonEditable]=\"hideNonEditable\"></teta-property-grid-group>\n </ng-container>\n</ng-container>\n", styles: [":host{padding:12px 8px}\n"] }]
|
|
6981
|
+
}], ctorParameters: function () { return [{ type: i3.ControlContainer, decorators: [{
|
|
6982
|
+
type: Optional
|
|
6983
|
+
}] }]; }, propDecorators: { formClass: [{
|
|
6868
6984
|
type: HostBinding,
|
|
6869
6985
|
args: ['class.form-container']
|
|
6986
|
+
}], itemTemplates: [{
|
|
6987
|
+
type: ContentChildren,
|
|
6988
|
+
args: [PropertyGridItemDescriptionDirective]
|
|
6870
6989
|
}], hideNonEditable: [{
|
|
6871
6990
|
type: Input
|
|
6872
6991
|
}], columns: [{
|
|
6873
6992
|
type: Input
|
|
6874
6993
|
}], dict: [{
|
|
6875
6994
|
type: Input
|
|
6876
|
-
}],
|
|
6995
|
+
}], item: [{
|
|
6877
6996
|
type: Input
|
|
6878
6997
|
}], horizontal: [{
|
|
6879
6998
|
type: Input
|
|
@@ -6883,50 +7002,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6883
7002
|
type: Output
|
|
6884
7003
|
}] } });
|
|
6885
7004
|
|
|
6886
|
-
class NumericItemDefaultComponent {
|
|
6887
|
-
constructor() { }
|
|
6888
|
-
ngOnInit() { }
|
|
6889
|
-
}
|
|
6890
|
-
NumericItemDefaultComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: NumericItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6891
|
-
NumericItemDefaultComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: NumericItemDefaultComponent, selector: "teta-numeric-item-default", ngImport: i0, template: "<p>numeric-item-default works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: NumericItemDefaultComponent, decorators: [{
|
|
6893
|
-
type: Component,
|
|
6894
|
-
args: [{ selector: 'teta-numeric-item-default', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>numeric-item-default works!</p>\n" }]
|
|
6895
|
-
}], ctorParameters: function () { return []; } });
|
|
6896
|
-
|
|
6897
|
-
class DateItemDefaultComponent {
|
|
6898
|
-
constructor() { }
|
|
6899
|
-
ngOnInit() { }
|
|
6900
|
-
}
|
|
6901
|
-
DateItemDefaultComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6902
|
-
DateItemDefaultComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: DateItemDefaultComponent, selector: "teta-date-item-default", ngImport: i0, template: "<p>date-item-default works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateItemDefaultComponent, decorators: [{
|
|
6904
|
-
type: Component,
|
|
6905
|
-
args: [{ selector: 'teta-date-item-default', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>date-item-default works!</p>\n" }]
|
|
6906
|
-
}], ctorParameters: function () { return []; } });
|
|
6907
|
-
|
|
6908
|
-
class ListItemDefaultComponent {
|
|
6909
|
-
constructor() { }
|
|
6910
|
-
ngOnInit() { }
|
|
6911
|
-
}
|
|
6912
|
-
ListItemDefaultComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ListItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6913
|
-
ListItemDefaultComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: ListItemDefaultComponent, selector: "teta-list-item-default", ngImport: i0, template: "<p>list-item-default works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ListItemDefaultComponent, decorators: [{
|
|
6915
|
-
type: Component,
|
|
6916
|
-
args: [{ selector: 'teta-list-item-default', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>list-item-default works!</p>\n" }]
|
|
6917
|
-
}], ctorParameters: function () { return []; } });
|
|
6918
|
-
|
|
6919
|
-
class StringItemDefaultComponent {
|
|
6920
|
-
constructor() { }
|
|
6921
|
-
ngOnInit() { }
|
|
6922
|
-
}
|
|
6923
|
-
StringItemDefaultComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: StringItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6924
|
-
StringItemDefaultComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: StringItemDefaultComponent, selector: "teta-string-item-default", ngImport: i0, template: "<p>string-item-default works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: StringItemDefaultComponent, decorators: [{
|
|
6926
|
-
type: Component,
|
|
6927
|
-
args: [{ selector: 'teta-string-item-default', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>string-item-default works!</p>\n" }]
|
|
6928
|
-
}], ctorParameters: function () { return []; } });
|
|
6929
|
-
|
|
6930
7005
|
class ToggleModule {
|
|
6931
7006
|
}
|
|
6932
7007
|
ToggleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -6945,12 +7020,9 @@ class PropertyGridModule {
|
|
|
6945
7020
|
}
|
|
6946
7021
|
PropertyGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6947
7022
|
PropertyGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridModule, declarations: [PropertyGridComponent,
|
|
6948
|
-
NumericItemDefaultComponent,
|
|
6949
|
-
DateItemDefaultComponent,
|
|
6950
|
-
ListItemDefaultComponent,
|
|
6951
|
-
StringItemDefaultComponent,
|
|
6952
7023
|
PropertyGridGroupComponent,
|
|
6953
|
-
PropertyGridItemComponent
|
|
7024
|
+
PropertyGridItemComponent,
|
|
7025
|
+
PropertyGridItemDescriptionDirective], imports: [CommonModule,
|
|
6954
7026
|
FormsModule,
|
|
6955
7027
|
NumberPipeModule,
|
|
6956
7028
|
DatePickerModule,
|
|
@@ -6961,7 +7033,7 @@ PropertyGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
6961
7033
|
ReactiveFormsModule,
|
|
6962
7034
|
TranslocoModule,
|
|
6963
7035
|
HintModule,
|
|
6964
|
-
ExpandCardModule], exports: [PropertyGridComponent] });
|
|
7036
|
+
ExpandCardModule], exports: [PropertyGridComponent, PropertyGridItemDescriptionDirective] });
|
|
6965
7037
|
PropertyGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridModule, providers: [
|
|
6966
7038
|
{
|
|
6967
7039
|
provide: TRANSLOCO_SCOPE,
|
|
@@ -6985,14 +7057,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6985
7057
|
args: [{
|
|
6986
7058
|
declarations: [
|
|
6987
7059
|
PropertyGridComponent,
|
|
6988
|
-
NumericItemDefaultComponent,
|
|
6989
|
-
DateItemDefaultComponent,
|
|
6990
|
-
ListItemDefaultComponent,
|
|
6991
|
-
StringItemDefaultComponent,
|
|
6992
7060
|
PropertyGridGroupComponent,
|
|
6993
7061
|
PropertyGridItemComponent,
|
|
7062
|
+
PropertyGridItemDescriptionDirective,
|
|
6994
7063
|
],
|
|
6995
|
-
exports: [PropertyGridComponent],
|
|
7064
|
+
exports: [PropertyGridComponent, PropertyGridItemDescriptionDirective],
|
|
6996
7065
|
imports: [
|
|
6997
7066
|
CommonModule,
|
|
6998
7067
|
FormsModule,
|
|
@@ -10271,7 +10340,10 @@ class TableComponent {
|
|
|
10271
10340
|
});
|
|
10272
10341
|
this._svc.activeRow
|
|
10273
10342
|
.pipe(takeWhile((_) => this._alive))
|
|
10274
|
-
.subscribe((item) =>
|
|
10343
|
+
.subscribe((item) => {
|
|
10344
|
+
this.activeRow = item;
|
|
10345
|
+
this.activeRowChange.emit(item);
|
|
10346
|
+
});
|
|
10275
10347
|
this._svc.valueChanged
|
|
10276
10348
|
.pipe(takeWhile((_) => this._alive))
|
|
10277
10349
|
.subscribe((coordinates) => {
|
|
@@ -12645,5 +12717,5 @@ function tetaZoneOptimized(ngZone) {
|
|
|
12645
12717
|
* Generated bundle index. Do not edit.
|
|
12646
12718
|
*/
|
|
12647
12719
|
|
|
12648
|
-
export { AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AccordionModule, AggregationType, Align, ArrayUtil, AutoPositionDirective, AutoPositionModule, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, ButtonModule, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dModule, Chart3dOptions, CheckboxComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, ClickService, ColorInputComponent, ColumnReorderEvent, ColumnResizeEvent, ContextMenuDirective, ContextMenuModule, CurrentModal, DATE_PICKER_CONTROL_VALUE_ACCESSOR, DAY_SELECT_CONTROL_VALUE_ACCESSOR, DateCellComponent, DateFilter, DateFilterComponent, DateFilterValue, DatePeriod, DatePickerComponent, DatePickerModule, DateTimeCellComponent, DateUtil, DaySelectComponent, DelimiterComponent, DelimiterModule, DetailComponentBase, DialogComponent, DialogService, DisableControlDirective, DisableControlModule, DomUtil, DragContainerDirective, DragContainerInstance, DragDirective, DragDropModule, DragDropService, DragInstance, DragPlaceholderDirective, DragPreviewDirective, DragSortContainerDirective, DragSortItemDirective, DragSortModule, DropdownComponent, DropdownContentDirective, DropdownDirective, DropdownHeadDirective, DropdownModule, DynamicComponentModule, DynamicComponentService, DynamicContentBaseDirective, DynamicData, EditEvent, EditType, ExpandCardComponent, ExpandCardModule, ExpandItemComponent, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExpandPanelModule, ExportType, FileItemComponent, FileUploadAreaComponent, FileUploadModule, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterModule, FilterState, FilterType, FormGroupTitleComponent, FormsUtil, HeadCellComponentBase, HeadCellHostComponent, HighlightDirective, HighlightModule, HintDirective, HintModule, IconComponent, IconFileComponent, IconModule, IconService, IconSpriteDirective, InputComponent, InputModule, LetContext, LetDirective, LetModule, ListCellComponent, ListFilter, ListFilterComponent, ListFilterType, LoaderDirective, LoaderModule, MONTH_PICKER_CONTROL_VALUE_ACCESSOR, Message, MessageComponent, MessageHostComponent, MessageModule, MessageService, ModalCloseReason, ModalContainerComponent, ModalInstance, ModalModule, ModalService, MonthPickerComponent, NoAutofillDirective, NoAutofillModule, NumberPipe, NumberPipeModule, NumericCellComponent, NumericFilter, NumericFilterComponent, NumericFilterValue, OnlyNumberDirective, OnlyNumberModule, OverlayContainerService, PagerComponent, PagerModule, PagerState, PagerUtil, PanelComponent, PanelModule, PopupContentComponent, PositionUtil, ProgressBarComponent, ProgressBarModule, PropertyGridComponent, PropertyGridModule, RadioButtonComponent, RadioComponent, RadioModule, ResizeDragDirective, ResizeDragModule, ResizePanelComponent, ResizePanelModule, SLIDER_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, ScrollIntoViewDirective, ScrollIntoViewModule, SelectComponent, SelectModule, SelectOptionDirective, SelectType, SelectValueDirective, SidebarComponent, SidebarModule, SidebarPosition, SortEvent, SortParam, StateUtil, StringCellComponent, StringFilter, StringFilterComponent, StringFilterType, StringUtil, SwitchButtonComponent, SwitchComponent, SwitchModule, TOGGLE_CONTROL_VALUE_ACCESSOR, TabComponent, TabContentDirective, TabTitleDirective, TableBodyComponent, TableColumn, TableColumnStore, TableComponent, TableHeadComponent, TableModule, TableService, TableUtil, TabsComponent, TabsModule, TetaConfigService, TetaContentRef, TetaDatePipe, TetaDatePipeModule, TetaSize, TetaTemplateDirective, TetaTemplateModule, TextFieldComponent, ThemeSwitchComponent, ThemeSwitchModule, ThemeSwitchService, ToggleComponent, ToggleModule, ToolbarComponent, ToolbarModule, TooltipDirective, TooltipModule, TreeComponent, TreeItemToggleComponent, TreeModule, TreeService, VerticalAlign, enLocale, exportDomToImage, formatNumber, getCellComponent, getPrecision, prependZero, ruLocale, tetaZoneFree, tetaZoneFull, tetaZoneOptimized };
|
|
12720
|
+
export { AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AccordionModule, AggregationType, Align, ArrayUtil, AutoPositionDirective, AutoPositionModule, AutocompleteComponent, AutocompleteModule, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, ButtonModule, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dModule, Chart3dOptions, CheckboxComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, ClickService, ColorInputComponent, ColumnReorderEvent, ColumnResizeEvent, ContextMenuDirective, ContextMenuModule, CurrentModal, DATE_PICKER_CONTROL_VALUE_ACCESSOR, DAY_SELECT_CONTROL_VALUE_ACCESSOR, DateCellComponent, DateFilter, DateFilterComponent, DateFilterValue, DatePeriod, DatePickerComponent, DatePickerModule, DateTimeCellComponent, DateUtil, DaySelectComponent, DelimiterComponent, DelimiterModule, DetailComponentBase, DialogComponent, DialogService, DisableControlDirective, DisableControlModule, DomUtil, DragContainerDirective, DragContainerInstance, DragDirective, DragDropModule, DragDropService, DragInstance, DragPlaceholderDirective, DragPreviewDirective, DragSortContainerDirective, DragSortItemDirective, DragSortModule, DropdownComponent, DropdownContentDirective, DropdownDirective, DropdownHeadDirective, DropdownModule, DynamicComponentModule, DynamicComponentService, DynamicContentBaseDirective, DynamicData, EditEvent, EditType, ExpandCardComponent, ExpandCardModule, ExpandItemComponent, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExpandPanelModule, ExportType, FileItemComponent, FileUploadAreaComponent, FileUploadModule, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterModule, FilterState, FilterType, FormGroupTitleComponent, FormsUtil, HeadCellComponentBase, HeadCellHostComponent, HighlightDirective, HighlightModule, HintDirective, HintModule, IconComponent, IconFileComponent, IconModule, IconService, IconSpriteDirective, InputComponent, InputModule, LetContext, LetDirective, LetModule, ListCellComponent, ListFilter, ListFilterComponent, ListFilterType, LoaderDirective, LoaderModule, MONTH_PICKER_CONTROL_VALUE_ACCESSOR, Message, MessageComponent, MessageHostComponent, MessageModule, MessageService, ModalCloseReason, ModalContainerComponent, ModalInstance, ModalModule, ModalService, MonthPickerComponent, NoAutofillDirective, NoAutofillModule, NumberPipe, NumberPipeModule, NumericCellComponent, NumericFilter, NumericFilterComponent, NumericFilterValue, OnlyNumberDirective, OnlyNumberModule, OverlayContainerService, PagerComponent, PagerModule, PagerState, PagerUtil, PanelComponent, PanelModule, PopupContentComponent, PositionUtil, ProgressBarComponent, ProgressBarModule, PropertyGridComponent, PropertyGridItemDescriptionDirective, PropertyGridModule, RadioButtonComponent, RadioComponent, RadioModule, ResizeDragDirective, ResizeDragModule, ResizePanelComponent, ResizePanelModule, SLIDER_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, ScrollIntoViewDirective, ScrollIntoViewModule, SelectComponent, SelectModule, SelectOptionDirective, SelectType, SelectValueDirective, SidebarComponent, SidebarModule, SidebarPosition, SortEvent, SortParam, StateUtil, StringCellComponent, StringFilter, StringFilterComponent, StringFilterType, StringUtil, SwitchButtonComponent, SwitchComponent, SwitchModule, TOGGLE_CONTROL_VALUE_ACCESSOR, TabComponent, TabContentDirective, TabTitleDirective, TableBodyComponent, TableColumn, TableColumnStore, TableComponent, TableHeadComponent, TableModule, TableService, TableUtil, TabsComponent, TabsModule, TetaConfigService, TetaContentRef, TetaDatePipe, TetaDatePipeModule, TetaSize, TetaTemplateDirective, TetaTemplateModule, TextFieldComponent, ThemeSwitchComponent, ThemeSwitchModule, ThemeSwitchService, ToggleComponent, ToggleModule, ToolbarComponent, ToolbarModule, TooltipDirective, TooltipModule, TreeComponent, TreeItemToggleComponent, TreeModule, TreeService, VerticalAlign, enLocale, exportDomToImage, formatNumber, getCellComponent, getPrecision, prependZero, ruLocale, tetaZoneFree, tetaZoneFull, tetaZoneOptimized };
|
|
12649
12721
|
//# sourceMappingURL=tetacom-ng-components.mjs.map
|