@tetacom/ng-components 1.0.68 → 1.0.71
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/table/default/string-cell/string-cell.component.d.ts +2 -0
- package/component/tree/tree/tree.component.d.ts +16 -9
- package/component/tree/tree-item/tree-item.component.d.ts +3 -2
- package/component/tree/tree.module.d.ts +2 -1
- package/esm2020/component/table/default/string-cell/string-cell.component.mjs +5 -3
- package/esm2020/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/tree/tree/tree.component.mjs +51 -20
- package/esm2020/component/tree/tree-item/tree-item.component.mjs +15 -10
- package/esm2020/component/tree/tree.module.mjs +5 -4
- package/fesm2015/tetacom-ng-components.mjs +70 -33
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +69 -33
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/tree.scss +4 -1
|
@@ -8584,10 +8584,11 @@ class TreeItemComponent {
|
|
|
8584
8584
|
this.treeItemClass = true;
|
|
8585
8585
|
this.itemIsOpen = false;
|
|
8586
8586
|
this._alive = true;
|
|
8587
|
+
this.treeItemInstance = true;
|
|
8587
8588
|
}
|
|
8588
8589
|
get computedDepth() {
|
|
8589
8590
|
return (this.depth +
|
|
8590
|
-
(this.item[this.childNodeName]?.length > 0 ? 0 : this.
|
|
8591
|
+
(this.item[this.childNodeName]?.length > 0 ? 0 : this.childPadding ? 2 : 1));
|
|
8591
8592
|
}
|
|
8592
8593
|
openItem() {
|
|
8593
8594
|
this.service.openItem(this.item);
|
|
@@ -8602,32 +8603,33 @@ class TreeItemComponent {
|
|
|
8602
8603
|
this._cdr.markForCheck();
|
|
8603
8604
|
});
|
|
8604
8605
|
}
|
|
8605
|
-
ngOnChanges(changes) {
|
|
8606
|
+
ngOnChanges(changes) {
|
|
8607
|
+
}
|
|
8606
8608
|
ngOnDestroy() {
|
|
8607
8609
|
this._alive = false;
|
|
8608
8610
|
}
|
|
8609
8611
|
}
|
|
8610
8612
|
TreeItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeItemComponent, deps: [{ token: TreeService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8611
|
-
TreeItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TreeItemComponent, selector: "teta-tree-item", inputs: { item: "item", depth: "depth", padding: "padding", childNodeName: "childNodeName", template: "template",
|
|
8612
|
-
trigger('
|
|
8613
|
+
TreeItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TreeItemComponent, selector: "teta-tree-item", inputs: { item: "item", depth: "depth", padding: "padding", childNodeName: "childNodeName", template: "template", childPadding: "childPadding" }, host: { properties: { "class.tree__item-container": "this.treeItemClass", "@treeItemInstance": "this.treeItemInstance" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"tree__item_content\" [ngClass]=\"'tree__item_content-' + computedDepth\" (click)=\"openItem()\">\n <ng-container\n *ngTemplateOutlet=\"template; context: {$implicit: item, item: item, open: itemIsOpen, service: service, depth: depth}\"></ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
|
|
8614
|
+
trigger('treeItemInstance', [
|
|
8613
8615
|
transition('void => *', [
|
|
8614
8616
|
style({ opacity: '0' }),
|
|
8615
8617
|
animate(200, style({ opacity: '1' })),
|
|
8616
8618
|
]),
|
|
8617
|
-
transition('* => void', [animate(200, style({
|
|
8619
|
+
// transition('* => void', [animate(200, style({opacity: '0'}))]),
|
|
8618
8620
|
]),
|
|
8619
8621
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8620
8622
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeItemComponent, decorators: [{
|
|
8621
8623
|
type: Component,
|
|
8622
8624
|
args: [{ selector: 'teta-tree-item', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
8623
|
-
trigger('
|
|
8625
|
+
trigger('treeItemInstance', [
|
|
8624
8626
|
transition('void => *', [
|
|
8625
8627
|
style({ opacity: '0' }),
|
|
8626
8628
|
animate(200, style({ opacity: '1' })),
|
|
8627
8629
|
]),
|
|
8628
|
-
transition('* => void', [animate(200, style({
|
|
8630
|
+
// transition('* => void', [animate(200, style({opacity: '0'}))]),
|
|
8629
8631
|
]),
|
|
8630
|
-
], template: "<div class=\"tree__item_content\" [ngClass]=\"'tree__item_content-' + computedDepth\" (click)=\"openItem()\">\n <ng-container\n *ngTemplateOutlet=\"template; context: {$implicit: item, item: item, open: itemIsOpen, service: service, depth: depth}\"></ng-container>\n</div>\n
|
|
8632
|
+
], template: "<div class=\"tree__item_content\" [ngClass]=\"'tree__item_content-' + computedDepth\" (click)=\"openItem()\">\n <ng-container\n *ngTemplateOutlet=\"template; context: {$implicit: item, item: item, open: itemIsOpen, service: service, depth: depth}\"></ng-container>\n</div>\n" }]
|
|
8631
8633
|
}], ctorParameters: function () { return [{ type: TreeService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { item: [{
|
|
8632
8634
|
type: Input
|
|
8633
8635
|
}], depth: [{
|
|
@@ -8638,69 +8640,102 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
8638
8640
|
type: Input
|
|
8639
8641
|
}], template: [{
|
|
8640
8642
|
type: Input
|
|
8641
|
-
}],
|
|
8643
|
+
}], childPadding: [{
|
|
8642
8644
|
type: Input
|
|
8643
8645
|
}], treeItemClass: [{
|
|
8644
8646
|
type: HostBinding,
|
|
8645
8647
|
args: ['class.tree__item-container']
|
|
8648
|
+
}], treeItemInstance: [{
|
|
8649
|
+
type: HostBinding,
|
|
8650
|
+
args: ['@treeItemInstance']
|
|
8646
8651
|
}] } });
|
|
8647
8652
|
|
|
8648
8653
|
class TreeComponent {
|
|
8649
8654
|
constructor(_service, _cdr) {
|
|
8650
8655
|
this._service = _service;
|
|
8651
8656
|
this._cdr = _cdr;
|
|
8652
|
-
this.service = new EventEmitter();
|
|
8653
8657
|
this.padding = 8;
|
|
8654
8658
|
this.childNodeName = 'children';
|
|
8659
|
+
this.height = 28;
|
|
8660
|
+
this.service = new EventEmitter();
|
|
8655
8661
|
this.openItemsChange = new EventEmitter();
|
|
8656
8662
|
this._alive = true;
|
|
8663
|
+
this.treeClass = true;
|
|
8664
|
+
this.trackRow = (index, item) => {
|
|
8665
|
+
if (this.compareItems) {
|
|
8666
|
+
return this.compareItems(item);
|
|
8667
|
+
}
|
|
8668
|
+
return index;
|
|
8669
|
+
};
|
|
8657
8670
|
this._service.openItems
|
|
8658
8671
|
.pipe(takeWhile((_) => this._alive), filter((_) => this._openItems !== _))
|
|
8659
|
-
.subscribe((_) =>
|
|
8672
|
+
.subscribe((_) => {
|
|
8673
|
+
this._openItems = _;
|
|
8674
|
+
this.openItemsChange.emit(_);
|
|
8675
|
+
});
|
|
8676
|
+
}
|
|
8677
|
+
set data(data) {
|
|
8678
|
+
this._data = data;
|
|
8679
|
+
}
|
|
8680
|
+
get data() {
|
|
8681
|
+
return this._data;
|
|
8660
8682
|
}
|
|
8661
8683
|
set openItems(items) {
|
|
8662
8684
|
this._openItems = items;
|
|
8663
8685
|
this._service.setOpenItems(items);
|
|
8664
8686
|
}
|
|
8665
|
-
get noChildMode() {
|
|
8666
|
-
const hasChildren = this.data.find((_) => _[this.childNodeName]?.length > 0);
|
|
8667
|
-
return !hasChildren;
|
|
8668
|
-
}
|
|
8669
8687
|
set compareItems(func) {
|
|
8670
8688
|
this._service.compareItems = func;
|
|
8671
8689
|
}
|
|
8672
|
-
get
|
|
8673
|
-
|
|
8674
|
-
return result.join(' ');
|
|
8690
|
+
get compareItems() {
|
|
8691
|
+
return this._service.compareItems;
|
|
8675
8692
|
}
|
|
8676
8693
|
ngOnInit() {
|
|
8677
8694
|
this.service.emit(this._service);
|
|
8678
8695
|
}
|
|
8679
|
-
ngAfterContentInit() { }
|
|
8680
8696
|
ngOnChanges(changes) {
|
|
8697
|
+
this.displayData = this.getDisplayData(this._data, 0);
|
|
8698
|
+
this.childPadding = this.hasChildren(this._data);
|
|
8681
8699
|
this._cdr.detectChanges();
|
|
8682
8700
|
}
|
|
8683
8701
|
ngOnDestroy() {
|
|
8684
8702
|
this._alive = false;
|
|
8685
8703
|
}
|
|
8704
|
+
hasChildren(data) {
|
|
8705
|
+
return data.some((_) => _[this.childNodeName]?.length > 0);
|
|
8706
|
+
}
|
|
8707
|
+
getDisplayData(data, level) {
|
|
8708
|
+
const result = [];
|
|
8709
|
+
data?.forEach((item) => {
|
|
8710
|
+
item['level'] = level;
|
|
8711
|
+
result.push(item);
|
|
8712
|
+
if (item[this.childNodeName]?.length > 0
|
|
8713
|
+
&& this._openItems?.find((openItem) => this.compareItems(openItem) === this.compareItems(item))) {
|
|
8714
|
+
result.push(...this.getDisplayData(item[this.childNodeName], level + 1));
|
|
8715
|
+
}
|
|
8716
|
+
});
|
|
8717
|
+
return result;
|
|
8718
|
+
}
|
|
8686
8719
|
}
|
|
8687
8720
|
TreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeComponent, deps: [{ token: TreeService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8688
|
-
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TreeComponent, selector: "teta-tree", inputs: { data: "data",
|
|
8721
|
+
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TreeComponent, selector: "teta-tree", inputs: { data: "data", padding: "padding", childNodeName: "childNodeName", virtual: "virtual", height: "height", openItems: "openItems", compareItems: "compareItems" }, outputs: { service: "service", openItemsChange: "openItemsChange" }, host: { properties: { "class.tree": "this.treeClass" } }, providers: [TreeService], queries: [{ propertyName: "template", first: true, predicate: TetaTemplateDirective, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<cdk-virtual-scroll-viewport *ngIf=\"virtual; else default\"\n class=\"table-body-container\"\n [itemSize]=\"height\">\n <teta-tree-item *cdkVirtualFor=\"let item of displayData;templateCacheSize: 0; trackBy: trackRow;\"\n [item]=\"item\"\n [style.height.px]=\"height\"\n [depth]=\"item['level']\"\n [padding]=\"padding\"\n [childNodeName]=\"childNodeName\"\n [childPadding]=\"childPadding\"\n [template]=\"template?.template\"></teta-tree-item>\n</cdk-virtual-scroll-viewport>\n<ng-template #default>\n <teta-tree-item *ngFor=\"let item of displayData\"\n [item]=\"item\"\n [style.height.px]=\"height\"\n [depth]=\"item['level']\"\n [padding]=\"padding\"\n [childNodeName]=\"childNodeName\"\n [childPadding]=\"childPadding\"\n [template]=\"template?.template\"></teta-tree-item>\n</ng-template>\n", styles: [""], 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: i5.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i5.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i5.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: TreeItemComponent, selector: "teta-tree-item", inputs: ["item", "depth", "padding", "childNodeName", "template", "childPadding"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8689
8722
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeComponent, decorators: [{
|
|
8690
8723
|
type: Component,
|
|
8691
|
-
args: [{ selector: 'teta-tree', providers: [TreeService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<
|
|
8724
|
+
args: [{ selector: 'teta-tree', providers: [TreeService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cdk-virtual-scroll-viewport *ngIf=\"virtual; else default\"\n class=\"table-body-container\"\n [itemSize]=\"height\">\n <teta-tree-item *cdkVirtualFor=\"let item of displayData;templateCacheSize: 0; trackBy: trackRow;\"\n [item]=\"item\"\n [style.height.px]=\"height\"\n [depth]=\"item['level']\"\n [padding]=\"padding\"\n [childNodeName]=\"childNodeName\"\n [childPadding]=\"childPadding\"\n [template]=\"template?.template\"></teta-tree-item>\n</cdk-virtual-scroll-viewport>\n<ng-template #default>\n <teta-tree-item *ngFor=\"let item of displayData\"\n [item]=\"item\"\n [style.height.px]=\"height\"\n [depth]=\"item['level']\"\n [padding]=\"padding\"\n [childNodeName]=\"childNodeName\"\n [childPadding]=\"childPadding\"\n [template]=\"template?.template\"></teta-tree-item>\n</ng-template>\n" }]
|
|
8692
8725
|
}], ctorParameters: function () { return [{ type: TreeService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
8693
8726
|
type: Input
|
|
8694
|
-
}], service: [{
|
|
8695
|
-
type: Output
|
|
8696
|
-
}], class: [{
|
|
8697
|
-
type: Input
|
|
8698
8727
|
}], padding: [{
|
|
8699
8728
|
type: Input
|
|
8700
8729
|
}], childNodeName: [{
|
|
8701
8730
|
type: Input
|
|
8731
|
+
}], virtual: [{
|
|
8732
|
+
type: Input
|
|
8733
|
+
}], height: [{
|
|
8734
|
+
type: Input
|
|
8702
8735
|
}], openItems: [{
|
|
8703
8736
|
type: Input
|
|
8737
|
+
}], service: [{
|
|
8738
|
+
type: Output
|
|
8704
8739
|
}], openItemsChange: [{
|
|
8705
8740
|
type: Output
|
|
8706
8741
|
}], template: [{
|
|
@@ -8708,9 +8743,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
8708
8743
|
args: [TetaTemplateDirective, { static: true }]
|
|
8709
8744
|
}], compareItems: [{
|
|
8710
8745
|
type: Input
|
|
8711
|
-
}],
|
|
8746
|
+
}], treeClass: [{
|
|
8712
8747
|
type: HostBinding,
|
|
8713
|
-
args: ['class']
|
|
8748
|
+
args: ['class.tree']
|
|
8714
8749
|
}] } });
|
|
8715
8750
|
|
|
8716
8751
|
class TreeItemToggleComponent {
|
|
@@ -8845,7 +8880,7 @@ class VisibilityDropdownTabComponent {
|
|
|
8845
8880
|
}
|
|
8846
8881
|
}
|
|
8847
8882
|
VisibilityDropdownTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VisibilityDropdownTabComponent, deps: [{ token: TableService }, { token: TetaConfigService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8848
|
-
VisibilityDropdownTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: VisibilityDropdownTabComponent, selector: "teta-visibility-dropdown-tab", inputs: { columns: "columns", column: "column", state: "state", data: "data", close: "close" }, ngImport: i0, template: "<ng-container *ngIf=\"locale | async as loc\">\n <div class=\"list-item padding-left-6 padding-top-2\" [class.padding-left-9]=\"childMode\">\n <teta-checkbox [binary]=\"true\"\n [allowNull]=\"true\"\n [ngModel]=\"allColumnsVisible()\"\n (ngModelChange)=\"setAllColumns($event)\">\n {{loc.all}}\n </teta-checkbox>\n </div>\n <div class=\"list-divider\"></div>\n <div class=\"padding-v-2 column column_auto scrollable\">\n <teta-tree [data]=\"columns\"\n [openItems]=\"openItems\"\n (openItemsChange)=\"openItems = $event\"\n [childNodeName]=\"'columns'\"\n [compareItems]=\"compareItems\">\n <ng-template tetaTemplate let-item>\n <div class=\"tree__item\">\n <teta-tree-item-toggle [item]=\"item\" *ngIf=\"item.columns?.length > 0\"></teta-tree-item-toggle>\n <teta-checkbox\n [ngModel]=\"!columnIsHidden(item)\"\n (ngModelChange)=\"setColumnVisibility(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n [binary]=\"true\"\n >\n {{item.caption}}\n </teta-checkbox>\n </div>\n </ng-template>\n </teta-tree>\n </div>\n <teta-toolbar class=\"justify-content-end\">\n <button teta-button\n [disabled]=\"allColumnsVisible() === false\"\n [palette]=\"'primary'\"\n (click)=\"setColumnsVisibility()\">\n {{loc.apply}}\n </button>\n </teta-toolbar>\n</ng-container>\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: CheckboxComponent, selector: "teta-checkbox", inputs: ["class", "palette", "noLabel", "disabled", "value", "binary", "allowNull"] }, { kind: "component", type: ButtonComponent, selector: "button[teta-button], teta-button", inputs: ["palette", "class", "view", "square"] }, { kind: "component", type: TreeComponent, selector: "teta-tree", inputs: ["data", "
|
|
8883
|
+
VisibilityDropdownTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: VisibilityDropdownTabComponent, selector: "teta-visibility-dropdown-tab", inputs: { columns: "columns", column: "column", state: "state", data: "data", close: "close" }, ngImport: i0, template: "<ng-container *ngIf=\"locale | async as loc\">\n <div class=\"list-item padding-left-6 padding-top-2\" [class.padding-left-9]=\"childMode\">\n <teta-checkbox [binary]=\"true\"\n [allowNull]=\"true\"\n [ngModel]=\"allColumnsVisible()\"\n (ngModelChange)=\"setAllColumns($event)\">\n {{loc.all}}\n </teta-checkbox>\n </div>\n <div class=\"list-divider\"></div>\n <div class=\"padding-v-2 column column_auto scrollable\">\n <teta-tree [data]=\"columns\"\n [openItems]=\"openItems\"\n (openItemsChange)=\"openItems = $event\"\n [childNodeName]=\"'columns'\"\n [compareItems]=\"compareItems\">\n <ng-template tetaTemplate let-item>\n <div class=\"tree__item\">\n <teta-tree-item-toggle [item]=\"item\" *ngIf=\"item.columns?.length > 0\"></teta-tree-item-toggle>\n <teta-checkbox\n [ngModel]=\"!columnIsHidden(item)\"\n (ngModelChange)=\"setColumnVisibility(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n [binary]=\"true\"\n >\n {{item.caption}}\n </teta-checkbox>\n </div>\n </ng-template>\n </teta-tree>\n </div>\n <teta-toolbar class=\"justify-content-end\">\n <button teta-button\n [disabled]=\"allColumnsVisible() === false\"\n [palette]=\"'primary'\"\n (click)=\"setColumnsVisibility()\">\n {{loc.apply}}\n </button>\n </teta-toolbar>\n</ng-container>\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: CheckboxComponent, selector: "teta-checkbox", inputs: ["class", "palette", "noLabel", "disabled", "value", "binary", "allowNull"] }, { kind: "component", type: ButtonComponent, selector: "button[teta-button], teta-button", inputs: ["palette", "class", "view", "square"] }, { kind: "component", type: TreeComponent, selector: "teta-tree", inputs: ["data", "padding", "childNodeName", "virtual", "height", "openItems", "compareItems"], outputs: ["service", "openItemsChange"] }, { kind: "directive", type: TetaTemplateDirective, selector: "[tetaTemplate]", inputs: ["tetaTemplate"] }, { kind: "component", type: TreeItemToggleComponent, selector: "teta-tree-item-toggle", inputs: ["item"] }, { kind: "component", type: ToolbarComponent, selector: "teta-toolbar", inputs: ["palette", "class"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8849
8884
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VisibilityDropdownTabComponent, decorators: [{
|
|
8850
8885
|
type: Component,
|
|
8851
8886
|
args: [{ selector: 'teta-visibility-dropdown-tab', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"locale | async as loc\">\n <div class=\"list-item padding-left-6 padding-top-2\" [class.padding-left-9]=\"childMode\">\n <teta-checkbox [binary]=\"true\"\n [allowNull]=\"true\"\n [ngModel]=\"allColumnsVisible()\"\n (ngModelChange)=\"setAllColumns($event)\">\n {{loc.all}}\n </teta-checkbox>\n </div>\n <div class=\"list-divider\"></div>\n <div class=\"padding-v-2 column column_auto scrollable\">\n <teta-tree [data]=\"columns\"\n [openItems]=\"openItems\"\n (openItemsChange)=\"openItems = $event\"\n [childNodeName]=\"'columns'\"\n [compareItems]=\"compareItems\">\n <ng-template tetaTemplate let-item>\n <div class=\"tree__item\">\n <teta-tree-item-toggle [item]=\"item\" *ngIf=\"item.columns?.length > 0\"></teta-tree-item-toggle>\n <teta-checkbox\n [ngModel]=\"!columnIsHidden(item)\"\n (ngModelChange)=\"setColumnVisibility(item, $event)\"\n (click)=\"$event.stopPropagation()\"\n [binary]=\"true\"\n >\n {{item.caption}}\n </teta-checkbox>\n </div>\n </ng-template>\n </teta-tree>\n </div>\n <teta-toolbar class=\"justify-content-end\">\n <button teta-button\n [disabled]=\"allColumnsVisible() === false\"\n [palette]=\"'primary'\"\n (click)=\"setColumnsVisibility()\">\n {{loc.apply}}\n </button>\n </teta-toolbar>\n</ng-container>\n" }]
|
|
@@ -9444,6 +9479,7 @@ class StringCellComponent extends CellComponentBase {
|
|
|
9444
9479
|
super(svc, cdr);
|
|
9445
9480
|
this.svc = svc;
|
|
9446
9481
|
this.cdr = cdr;
|
|
9482
|
+
this.align = Align;
|
|
9447
9483
|
}
|
|
9448
9484
|
setValue() {
|
|
9449
9485
|
this.valueChanged();
|
|
@@ -9471,10 +9507,10 @@ class StringCellComponent extends CellComponentBase {
|
|
|
9471
9507
|
}
|
|
9472
9508
|
}
|
|
9473
9509
|
StringCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: StringCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9474
|
-
StringCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: StringCellComponent, selector: "teta-string-cell", inputs: { column: "column", row: "row" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [tetaHint]=\"row[column.name]\"\n [appendToBody]=\"true\"\n [overflownOnly]=\"true\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9510
|
+
StringCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: StringCellComponent, selector: "teta-string-cell", inputs: { column: "column", row: "row" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [tetaHint]=\"row[column.name]\"\n [align]=\"align.auto\"\n [appendToBody]=\"true\"\n [overflownOnly]=\"true\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9475
9511
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: StringCellComponent, decorators: [{
|
|
9476
9512
|
type: Component,
|
|
9477
|
-
args: [{ selector: 'teta-string-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [tetaHint]=\"row[column.name]\"\n [appendToBody]=\"true\"\n [overflownOnly]=\"true\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n" }]
|
|
9513
|
+
args: [{ selector: 'teta-string-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [tetaHint]=\"row[column.name]\"\n [align]=\"align.auto\"\n [appendToBody]=\"true\"\n [overflownOnly]=\"true\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n" }]
|
|
9478
9514
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9479
9515
|
type: Input
|
|
9480
9516
|
}], row: [{
|
|
@@ -10317,14 +10353,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
10317
10353
|
class TreeModule {
|
|
10318
10354
|
}
|
|
10319
10355
|
TreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10320
|
-
TreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: TreeModule, declarations: [TreeComponent, TreeItemComponent, TreeItemToggleComponent], imports: [CommonModule, IconModule, TetaTemplateModule], exports: [TreeComponent, TetaTemplateModule, TreeItemToggleComponent] });
|
|
10321
|
-
TreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeModule, imports: [CommonModule, IconModule, TetaTemplateModule, TetaTemplateModule] });
|
|
10356
|
+
TreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: TreeModule, declarations: [TreeComponent, TreeItemComponent, TreeItemToggleComponent], imports: [CommonModule, IconModule, TetaTemplateModule, ScrollingModule], exports: [TreeComponent, TetaTemplateModule, TreeItemToggleComponent] });
|
|
10357
|
+
TreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeModule, imports: [CommonModule, IconModule, TetaTemplateModule, ScrollingModule, TetaTemplateModule] });
|
|
10322
10358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TreeModule, decorators: [{
|
|
10323
10359
|
type: NgModule,
|
|
10324
10360
|
args: [{
|
|
10325
10361
|
declarations: [TreeComponent, TreeItemComponent, TreeItemToggleComponent],
|
|
10326
10362
|
exports: [TreeComponent, TetaTemplateModule, TreeItemToggleComponent],
|
|
10327
|
-
imports: [CommonModule, IconModule, TetaTemplateModule],
|
|
10363
|
+
imports: [CommonModule, IconModule, TetaTemplateModule, ScrollingModule],
|
|
10328
10364
|
}]
|
|
10329
10365
|
}] });
|
|
10330
10366
|
|