@tetacom/ng-components 1.0.42 → 1.0.43
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/base/filter-component-base.d.ts +1 -2
- package/component/filter/boolean-filter/boolean-filter.component.d.ts +1 -2
- package/component/filter/date-filter/date-filter.component.d.ts +1 -2
- package/component/filter/filter-host/filter-host.component.d.ts +1 -2
- package/component/filter/list-filter/list-filter.component.d.ts +1 -2
- package/component/filter/numeric-filter/numeric-filter.component.d.ts +1 -2
- package/component/filter/string-filter/string-filter.component.d.ts +1 -2
- package/component/table/base/cell-component-base.d.ts +1 -2
- package/component/table/base/detail-component-base.d.ts +1 -2
- package/component/table/base/head-cell-component-base.d.ts +2 -2
- package/component/table/cell/cell.component.d.ts +1 -2
- package/component/table/cell-host/cell-host.component.d.ts +1 -2
- package/component/table/contract/i-cell-instance.d.ts +1 -2
- package/component/table/contract/public-api.d.ts +0 -1
- package/component/table/contract/table-column.d.ts +0 -16
- package/component/table/default/boolean-cell/boolean-cell.component.d.ts +1 -2
- package/component/table/default/date-cell/date-cell.component.d.ts +1 -2
- package/component/table/default/date-time-cell/date-time-cell.component.d.ts +1 -2
- package/component/table/default/default-head-cell/default-head-cell.component.d.ts +6 -4
- package/component/table/default/list-cell/list-cell.component.d.ts +1 -2
- package/component/table/default/numeric-cell/numeric-cell.component.d.ts +1 -2
- package/component/table/default/string-cell/string-cell.component.d.ts +1 -2
- package/component/table/head-cell/head-cell.component.d.ts +1 -2
- package/component/table/head-cell-dropdown/head-cell-dropdown.component.d.ts +1 -2
- package/component/table/head-cell-host/head-cell-host.component.d.ts +6 -4
- package/component/table/public-api.d.ts +0 -1
- package/component/table/selection-cell/selection-cell.component.d.ts +2 -3
- package/component/table/service/table.service.d.ts +13 -17
- package/component/table/table/table.component.d.ts +12 -18
- package/component/table/table-body/table-body.component.d.ts +11 -17
- package/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.d.ts +1 -2
- package/component/table/table-head/main-dropdown-tab/main-dropdown-tab.component.d.ts +1 -2
- package/component/table/table-head/table-head.component.d.ts +1 -2
- package/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.d.ts +1 -2
- package/component/table/table-head-group/table-head-group.component.d.ts +1 -2
- package/component/table/table.module.d.ts +31 -32
- package/esm2020/common/util/array-util.mjs +2 -2
- package/esm2020/component/filter/base/filter-component-base.mjs +1 -1
- package/esm2020/component/filter/boolean-filter/boolean-filter.component.mjs +1 -1
- package/esm2020/component/filter/date-filter/date-filter.component.mjs +1 -1
- package/esm2020/component/filter/filter-host/filter-host.component.mjs +1 -1
- package/esm2020/component/filter/list-filter/list-filter.component.mjs +1 -1
- package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +1 -1
- package/esm2020/component/filter/string-filter/string-filter.component.mjs +1 -1
- package/esm2020/component/select/select/select.component.mjs +2 -2
- package/esm2020/component/table/base/cell-component-base.mjs +2 -2
- package/esm2020/component/table/base/detail-component-base.mjs +1 -1
- package/esm2020/component/table/base/head-cell-component-base.mjs +1 -1
- package/esm2020/component/table/cell/cell.component.mjs +1 -1
- package/esm2020/component/table/cell-host/cell-host.component.mjs +1 -1
- package/esm2020/component/table/contract/i-cell-instance.mjs +1 -1
- package/esm2020/component/table/contract/public-api.mjs +1 -2
- package/esm2020/component/table/contract/table-column.mjs +1 -8
- package/esm2020/component/table/default/boolean-cell/boolean-cell.component.mjs +3 -3
- package/esm2020/component/table/default/date-cell/date-cell.component.mjs +4 -4
- package/esm2020/component/table/default/date-time-cell/date-time-cell.component.mjs +4 -4
- package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +11 -2
- package/esm2020/component/table/default/list-cell/list-cell.component.mjs +6 -6
- package/esm2020/component/table/default/numeric-cell/numeric-cell.component.mjs +3 -3
- package/esm2020/component/table/default/string-cell/string-cell.component.mjs +3 -3
- package/esm2020/component/table/head-cell/head-cell.component.mjs +3 -3
- package/esm2020/component/table/head-cell-dropdown/head-cell-dropdown.component.mjs +1 -1
- package/esm2020/component/table/head-cell-host/head-cell-host.component.mjs +14 -2
- package/esm2020/component/table/public-api.mjs +1 -2
- package/esm2020/component/table/selection-cell/selection-cell.component.mjs +1 -1
- package/esm2020/component/table/service/table.service.mjs +10 -12
- package/esm2020/component/table/table/table.component.mjs +18 -15
- package/esm2020/component/table/table-body/table-body.component.mjs +32 -35
- package/esm2020/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/table/table-head/main-dropdown-tab/main-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/table/table-head/table-head.component.mjs +1 -1
- package/esm2020/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/table/table-head-group/table-head-group.component.mjs +1 -1
- package/esm2020/component/table/table.module.mjs +1 -6
- package/esm2020/directive/scroll-into-view/scroll-into-view.directive.mjs +2 -2
- package/fesm2015/tetacom-ng-components.mjs +112 -159
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +106 -156
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/switch.scss +1 -2
- package/component/table/base/group-row-component-base.d.ts +0 -12
- package/component/table/contract/table-row.d.ts +0 -17
- package/component/table/default/group-row/group-row.component.d.ts +0 -13
- package/esm2020/component/table/base/group-row-component-base.mjs +0 -3
- package/esm2020/component/table/contract/table-row.mjs +0 -40
- package/esm2020/component/table/default/group-row/group-row.component.mjs +0 -20
|
@@ -3,11 +3,10 @@ import { EventEmitter } from '@angular/core';
|
|
|
3
3
|
import { FilterItem } from '../contarct/filter-item';
|
|
4
4
|
import { IFilter } from '../contarct/i-filter';
|
|
5
5
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
6
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
7
6
|
export declare abstract class FilterComponentBase<T> {
|
|
8
7
|
abstract column: FilterItem;
|
|
9
8
|
abstract state: FilterState;
|
|
10
|
-
abstract data:
|
|
9
|
+
abstract data: T[];
|
|
11
10
|
abstract filterOptions: IIdName<any>[];
|
|
12
11
|
abstract filterChanged: EventEmitter<IFilter>;
|
|
13
12
|
}
|
|
@@ -5,12 +5,11 @@ import { IIdName } from '../../../common/contract/i-id-name';
|
|
|
5
5
|
import { FilterBase } from '../base/filter-base';
|
|
6
6
|
import { FilterState } from '../contarct/filter-state';
|
|
7
7
|
import { BooleanFilter } from '../contarct/boolean-filter';
|
|
8
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class BooleanFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
|
|
11
10
|
private changeDetector;
|
|
12
11
|
column: FilterItem;
|
|
13
|
-
data:
|
|
12
|
+
data: T[];
|
|
14
13
|
filterOptions: IIdName<any>[];
|
|
15
14
|
filterChanged: EventEmitter<FilterBase>;
|
|
16
15
|
filter: BooleanFilter;
|
|
@@ -5,7 +5,6 @@ import { FilterBase } from '../base/filter-base';
|
|
|
5
5
|
import { FilterComponentBase } from '../base/filter-component-base';
|
|
6
6
|
import { FilterItem } from '../contarct/filter-item';
|
|
7
7
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
8
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
9
8
|
import { Observable } from 'rxjs';
|
|
10
9
|
import { TetaLocalisation } from '../../../locale/teta-localisation';
|
|
11
10
|
import { TetaConfigService } from '../../../locale/teta-config.service';
|
|
@@ -14,7 +13,7 @@ export declare class DateFilterComponent<T> extends FilterComponentBase<T> imple
|
|
|
14
13
|
private changeDetector;
|
|
15
14
|
private _config;
|
|
16
15
|
column: FilterItem;
|
|
17
|
-
data:
|
|
16
|
+
data: T[];
|
|
18
17
|
filterOptions: IIdName<any>[];
|
|
19
18
|
filterChanged: EventEmitter<FilterBase>;
|
|
20
19
|
filter: DateFilter;
|
|
@@ -3,13 +3,12 @@ import { FilterState } from '../contarct/filter-state';
|
|
|
3
3
|
import { FilterItem } from '../contarct/filter-item';
|
|
4
4
|
import { FilterBase } from '../base/filter-base';
|
|
5
5
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
6
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class FilterHostComponent<T> implements OnInit, OnDestroy {
|
|
9
8
|
private viewContainerRef;
|
|
10
9
|
set column(val: FilterItem);
|
|
11
10
|
set state(val: FilterState);
|
|
12
|
-
set data(data:
|
|
11
|
+
set data(data: T[]);
|
|
13
12
|
set filterOptions(val: IIdName<any>[]);
|
|
14
13
|
filterChanged: EventEmitter<FilterBase>;
|
|
15
14
|
private _alive;
|
|
@@ -5,7 +5,6 @@ import { FilterBase } from '../base/filter-base';
|
|
|
5
5
|
import { FilterState } from '../contarct/filter-state';
|
|
6
6
|
import { FilterItem } from '../contarct/filter-item';
|
|
7
7
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
8
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
9
8
|
import { Observable } from 'rxjs';
|
|
10
9
|
import { TetaLocalisation } from '../../../locale/teta-localisation';
|
|
11
10
|
import { TetaConfigService } from '../../../locale/teta-config.service';
|
|
@@ -14,7 +13,7 @@ export declare class ListFilterComponent<T> extends FilterComponentBase<T> imple
|
|
|
14
13
|
private changeDetector;
|
|
15
14
|
private _config;
|
|
16
15
|
column: FilterItem;
|
|
17
|
-
data:
|
|
16
|
+
data: T[];
|
|
18
17
|
filterOptions: IIdName<any>[];
|
|
19
18
|
filterChanged: EventEmitter<FilterBase>;
|
|
20
19
|
filter: ListFilter;
|
|
@@ -5,7 +5,6 @@ import { FilterBase } from '../base/filter-base';
|
|
|
5
5
|
import { FilterState } from '../contarct/filter-state';
|
|
6
6
|
import { FilterItem } from '../contarct/filter-item';
|
|
7
7
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
8
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
9
8
|
import { TetaConfigService } from '../../../locale/teta-config.service';
|
|
10
9
|
import { Observable } from 'rxjs';
|
|
11
10
|
import { TetaLocalisation } from '../../../locale/teta-localisation';
|
|
@@ -14,7 +13,7 @@ export declare class NumericFilterComponent<T> extends FilterComponentBase<T> im
|
|
|
14
13
|
private changeDetector;
|
|
15
14
|
private _config;
|
|
16
15
|
column: FilterItem;
|
|
17
|
-
data:
|
|
16
|
+
data: T[];
|
|
18
17
|
filterOptions: IIdName<any>[];
|
|
19
18
|
filterChanged: EventEmitter<FilterBase>;
|
|
20
19
|
filter: NumericFilter;
|
|
@@ -5,7 +5,6 @@ import { FilterBase } from '../base/filter-base';
|
|
|
5
5
|
import { FilterComponentBase } from '../base/filter-component-base';
|
|
6
6
|
import { FilterItem } from '../contarct/filter-item';
|
|
7
7
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
8
|
-
import { TableRow } from '../../table/contract/table-row';
|
|
9
8
|
import { TetaConfigService } from '../../../locale/teta-config.service';
|
|
10
9
|
import { Observable } from 'rxjs';
|
|
11
10
|
import { TetaLocalisation } from '../../../locale/teta-localisation';
|
|
@@ -14,7 +13,7 @@ export declare class StringFilterComponent<T> extends FilterComponentBase<T> imp
|
|
|
14
13
|
private changeDetector;
|
|
15
14
|
private _config;
|
|
16
15
|
column: FilterItem;
|
|
17
|
-
data:
|
|
16
|
+
data: T[];
|
|
18
17
|
filterOptions: IIdName<any>[];
|
|
19
18
|
filterChanged: EventEmitter<FilterBase>;
|
|
20
19
|
filter: StringFilter;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TableService } from '../service/table.service';
|
|
3
|
-
import { TableRow } from '../contract/table-row';
|
|
4
3
|
import { ICellCoordinates } from '../contract/i-cell-coordinates';
|
|
5
4
|
import { TableColumn } from '../contract/table-column';
|
|
6
5
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
@@ -17,7 +16,7 @@ export declare abstract class CellComponentBase<T> implements OnInit, OnDestroy
|
|
|
17
16
|
column: TableColumn;
|
|
18
17
|
filterOptions: IIdName<any>[];
|
|
19
18
|
dict: IDictionary<IIdName<any>[]>;
|
|
20
|
-
row:
|
|
19
|
+
row: T;
|
|
21
20
|
protected _alive: boolean;
|
|
22
21
|
protected constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
|
|
23
22
|
valueChanged(): void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { TableRow } from '../contract/table-row';
|
|
2
1
|
import { TableColumn } from '../contract/table-column';
|
|
3
2
|
export declare abstract class DetailComponentBase<T> {
|
|
4
3
|
/**
|
|
5
4
|
* The row details are displayed for
|
|
6
5
|
*/
|
|
7
|
-
abstract row:
|
|
6
|
+
abstract row: T;
|
|
8
7
|
/**
|
|
9
8
|
* displayed columns
|
|
10
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableColumn } from '../contract/table-column';
|
|
2
|
-
import { TableRow } from '../contract/table-row';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare abstract class HeadCellComponentBase<T> {
|
|
5
4
|
abstract column: TableColumn;
|
|
6
|
-
abstract
|
|
5
|
+
abstract columns: TableColumn[];
|
|
6
|
+
abstract data: T[];
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellComponentBase<any>, never>;
|
|
8
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellComponentBase<any>, "ng-component", never, {}, {}, never, never, false>;
|
|
9
9
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TableColumn } from '../contract/table-column';
|
|
3
|
-
import { TableRow } from '../contract/table-row';
|
|
4
3
|
import { TableService } from '../service/table.service';
|
|
5
4
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
6
5
|
import { IDictionary } from '../../../common/contract/i-dictionary';
|
|
@@ -10,7 +9,7 @@ export declare class CellComponent<T> implements OnInit, OnDestroy {
|
|
|
10
9
|
column: TableColumn;
|
|
11
10
|
filterOptions: IIdName<any>[];
|
|
12
11
|
dict: IDictionary<IIdName<any>[]>;
|
|
13
|
-
row:
|
|
12
|
+
row: T;
|
|
14
13
|
private readonly tableCellClass;
|
|
15
14
|
private alive;
|
|
16
15
|
constructor(_svc: TableService<T>);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { TableColumn } from '../contract/table-column';
|
|
3
|
-
import { TableRow } from '../contract/table-row';
|
|
4
3
|
import { IIdName } from '../../../common/contract/i-id-name';
|
|
5
4
|
import { IDictionary } from '../../../common/contract/i-dictionary';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class CellHostComponent<T> implements OnInit, OnDestroy, OnChanges {
|
|
8
7
|
private viewContainerRef;
|
|
9
8
|
column: TableColumn;
|
|
10
|
-
row:
|
|
9
|
+
row: T;
|
|
11
10
|
filterOptions: IIdName<any>[];
|
|
12
11
|
dict: IDictionary<IIdName<any>[]>;
|
|
13
12
|
private _init;
|
|
@@ -2,7 +2,6 @@ import { FilterItem } from '../../filter/contarct/filter-item';
|
|
|
2
2
|
import { FilterType } from '../../filter/enum/filter-type.enum';
|
|
3
3
|
import { StringFilterType } from '../../filter/enum/string-filter-type.enum';
|
|
4
4
|
import { ListFilterType } from '../../filter/enum/list-filter-type.enum';
|
|
5
|
-
import { TableRow } from './table-row';
|
|
6
5
|
import { AggregationType } from '../enum/aggregation-type.enum';
|
|
7
6
|
import { ICellInstance } from './i-cell-instance';
|
|
8
7
|
import { HeadDropdownTabConfig } from './head-dropdown-tab';
|
|
@@ -65,18 +64,6 @@ export declare class TableColumn extends FilterItem {
|
|
|
65
64
|
* Custom head dropdown for column
|
|
66
65
|
*/
|
|
67
66
|
headDropdownConfig: HeadDropdownTabConfig;
|
|
68
|
-
/**
|
|
69
|
-
* Группировать по этому столбцу
|
|
70
|
-
*/
|
|
71
|
-
groupBy: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Порядок группировки
|
|
74
|
-
*/
|
|
75
|
-
groupingOrder: number;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
groupByFn: ((row: TableRow<any>) => string) | undefined;
|
|
80
67
|
/**
|
|
81
68
|
* Дочерние колонки
|
|
82
69
|
*/
|
|
@@ -133,9 +120,6 @@ export declare class TableColumn extends FilterItem {
|
|
|
133
120
|
headCellComponent?: any;
|
|
134
121
|
headDropdownConfig?: HeadDropdownTabConfig;
|
|
135
122
|
filterComponent?: any;
|
|
136
|
-
groupBy?: boolean;
|
|
137
|
-
groupingOrder?: number;
|
|
138
|
-
groupByFn?: (row: TableRow<any>) => string;
|
|
139
123
|
columns?: any[];
|
|
140
124
|
aggregate?: AggregationType;
|
|
141
125
|
defaultValue?: any;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CellComponentBase } from '../../base/cell-component-base';
|
|
3
3
|
import { TableColumn } from '../../contract/table-column';
|
|
4
|
-
import { TableRow } from '../../contract/table-row';
|
|
5
4
|
import { TableService } from '../../service/table.service';
|
|
6
5
|
import { ICellCoordinates } from '../../contract/i-cell-coordinates';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,7 +8,7 @@ export declare class BooleanCellComponent<T> extends CellComponentBase<T> implem
|
|
|
9
8
|
svc: TableService<T>;
|
|
10
9
|
cdr: ChangeDetectorRef;
|
|
11
10
|
column: TableColumn;
|
|
12
|
-
row:
|
|
11
|
+
row: T;
|
|
13
12
|
input: ElementRef;
|
|
14
13
|
constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
|
|
15
14
|
setValue(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CellComponentBase } from '../../base/cell-component-base';
|
|
3
3
|
import { TableColumn } from '../../contract/table-column';
|
|
4
|
-
import { TableRow } from '../../contract/table-row';
|
|
5
4
|
import { TableService } from '../../service/table.service';
|
|
6
5
|
import { ICellCoordinates } from '../../contract/i-cell-coordinates';
|
|
7
6
|
import { DatePickerComponent } from '../../../date-picker/date-picker/date-picker.component';
|
|
@@ -10,7 +9,7 @@ export declare class DateCellComponent<T> extends CellComponentBase<T> implement
|
|
|
10
9
|
protected svc: TableService<T>;
|
|
11
10
|
protected cdr: ChangeDetectorRef;
|
|
12
11
|
column: TableColumn;
|
|
13
|
-
row:
|
|
12
|
+
row: T;
|
|
14
13
|
input: DatePickerComponent;
|
|
15
14
|
constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
|
|
16
15
|
ngOnInit(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CellComponentBase } from '../../base/cell-component-base';
|
|
3
3
|
import { TableColumn } from '../../contract/table-column';
|
|
4
|
-
import { TableRow } from '../../contract/table-row';
|
|
5
4
|
import { TableService } from '../../service/table.service';
|
|
6
5
|
import { ICellCoordinates } from '../../contract/i-cell-coordinates';
|
|
7
6
|
import { DatePickerComponent } from '../../../date-picker/date-picker/date-picker.component';
|
|
@@ -10,7 +9,7 @@ export declare class DateTimeCellComponent<T> extends CellComponentBase<T> imple
|
|
|
10
9
|
protected svc: TableService<T>;
|
|
11
10
|
protected cdr: ChangeDetectorRef;
|
|
12
11
|
column: TableColumn;
|
|
13
|
-
row:
|
|
12
|
+
row: T;
|
|
14
13
|
input: DatePickerComponent;
|
|
15
14
|
constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
|
|
16
15
|
ngOnInit(): void;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { HeadCellComponentBase } from '../../base/head-cell-component-base';
|
|
3
3
|
import { TableColumn } from '../../contract/table-column';
|
|
4
|
-
import { TableRow } from '../../contract/table-row';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class DefaultHeadCellComponent<T> extends HeadCellComponentBase<T> implements OnInit {
|
|
7
6
|
private _cdr;
|
|
8
7
|
private _column;
|
|
8
|
+
private _columns;
|
|
9
9
|
private _data;
|
|
10
10
|
set column(val: TableColumn);
|
|
11
11
|
get column(): TableColumn;
|
|
12
|
-
set
|
|
13
|
-
get
|
|
12
|
+
set columns(val: TableColumn[]);
|
|
13
|
+
get columns(): TableColumn[];
|
|
14
|
+
set data(data: T[]);
|
|
15
|
+
get data(): T[];
|
|
14
16
|
constructor(_cdr: ChangeDetectorRef);
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHeadCellComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultHeadCellComponent<any>, "teta-default-head-cell", never, { "column": "column"; "data": "data"; }, {}, never, never, false>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultHeadCellComponent<any>, "teta-default-head-cell", never, { "column": "column"; "columns": "columns"; "data": "data"; }, {}, never, never, false>;
|
|
18
20
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { TableColumn } from '../../contract/table-column';
|
|
3
|
-
import { TableRow } from '../../contract/table-row';
|
|
4
3
|
import { TableService } from '../../service/table.service';
|
|
5
4
|
import { CellComponentBase } from '../../base/cell-component-base';
|
|
6
5
|
import { SelectComponent } from '../../../select/select/select.component';
|
|
@@ -12,7 +11,7 @@ export declare class ListCellComponent<T> extends CellComponentBase<T> implement
|
|
|
12
11
|
protected svc: TableService<T>;
|
|
13
12
|
protected cdr: ChangeDetectorRef;
|
|
14
13
|
column: TableColumn;
|
|
15
|
-
row:
|
|
14
|
+
row: T;
|
|
16
15
|
filterOptions: IIdName<any>[];
|
|
17
16
|
get value(): string;
|
|
18
17
|
get displayFilterOptions(): IIdName<any>[];
|
|
@@ -2,14 +2,13 @@ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
|
2
2
|
import { CellComponentBase } from '../../base/cell-component-base';
|
|
3
3
|
import { TableService } from '../../service/table.service';
|
|
4
4
|
import { TableColumn } from '../../contract/table-column';
|
|
5
|
-
import { TableRow } from '../../contract/table-row';
|
|
6
5
|
import { ICellCoordinates } from '../../contract/i-cell-coordinates';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class NumericCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
9
8
|
protected svc: TableService<T>;
|
|
10
9
|
protected cdr: ChangeDetectorRef;
|
|
11
10
|
column: TableColumn;
|
|
12
|
-
row:
|
|
11
|
+
row: T;
|
|
13
12
|
input: ElementRef;
|
|
14
13
|
constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
|
|
15
14
|
setValue(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CellComponentBase } from '../../base/cell-component-base';
|
|
3
3
|
import { TableColumn } from '../../contract/table-column';
|
|
4
|
-
import { TableRow } from '../../contract/table-row';
|
|
5
4
|
import { TableService } from '../../service/table.service';
|
|
6
5
|
import { ICellCoordinates } from '../../contract/i-cell-coordinates';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,7 +8,7 @@ export declare class StringCellComponent<T> extends CellComponentBase<T> impleme
|
|
|
9
8
|
svc: TableService<T>;
|
|
10
9
|
cdr: ChangeDetectorRef;
|
|
11
10
|
column: TableColumn;
|
|
12
|
-
row:
|
|
11
|
+
row: T;
|
|
13
12
|
input: ElementRef;
|
|
14
13
|
constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
|
|
15
14
|
setValue(): void;
|
|
@@ -6,7 +6,6 @@ import { SortParam } from '../../filter/contarct/sort-param';
|
|
|
6
6
|
import { VerticalAlign } from '../../../common/enum/vertical-align.enum';
|
|
7
7
|
import { Align } from '../../../common/enum/align.enum';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
|
-
import { TableRow } from '../contract/table-row';
|
|
10
9
|
import { HeadDropdownTab } from '../contract/head-dropdown-tab';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
11
|
export declare class HeadCellComponent<T> implements OnInit, OnDestroy {
|
|
@@ -15,7 +14,7 @@ export declare class HeadCellComponent<T> implements OnInit, OnDestroy {
|
|
|
15
14
|
private _elementRef;
|
|
16
15
|
column: TableColumn;
|
|
17
16
|
showHeadCellMenu: boolean;
|
|
18
|
-
data:
|
|
17
|
+
data: T[];
|
|
19
18
|
verticalAlign: typeof VerticalAlign;
|
|
20
19
|
align: typeof Align;
|
|
21
20
|
state: Observable<FilterState>;
|
|
@@ -3,7 +3,6 @@ import { TableService } from '../service/table.service';
|
|
|
3
3
|
import { TableColumn } from '../contract/table-column';
|
|
4
4
|
import { FilterState } from '../../filter/contarct/filter-state';
|
|
5
5
|
import { ITreeData } from '../../../common/contract/i-tree-data';
|
|
6
|
-
import { TableRow } from '../contract/table-row';
|
|
7
6
|
import { TetaConfigService } from '../../../locale/teta-config.service';
|
|
8
7
|
import { HeadDropdownTab } from '../contract/head-dropdown-tab';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
@@ -14,7 +13,7 @@ export declare class HeadCellDropdownComponent<T> implements OnInit, OnDestroy {
|
|
|
14
13
|
columns: ITreeData[];
|
|
15
14
|
column: TableColumn;
|
|
16
15
|
state: FilterState;
|
|
17
|
-
data:
|
|
16
|
+
data: T[];
|
|
18
17
|
tabTemplates: HeadDropdownTab[];
|
|
19
18
|
dropDownOpen: boolean;
|
|
20
19
|
dropDownOpenChange: EventEmitter<boolean>;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { TableColumn } from '../contract/table-column';
|
|
3
|
-
import { TableRow } from '../contract/table-row';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class HeadCellHostComponent<T> implements OnInit {
|
|
6
5
|
private viewContainerRef;
|
|
7
6
|
private _column;
|
|
7
|
+
private _columns;
|
|
8
8
|
private _data;
|
|
9
9
|
private componentRef;
|
|
10
10
|
private init;
|
|
11
11
|
set column(column: TableColumn);
|
|
12
12
|
get column(): TableColumn;
|
|
13
|
-
set
|
|
14
|
-
get
|
|
13
|
+
set columns(columns: TableColumn[]);
|
|
14
|
+
get columns(): TableColumn[];
|
|
15
|
+
set data(data: T[]);
|
|
16
|
+
get data(): T[];
|
|
15
17
|
constructor(viewContainerRef: ViewContainerRef);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellHostComponent<any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellHostComponent<any>, "teta-head-cell-host", never, { "column": "column"; "data": "data"; }, {}, never, never, false>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellHostComponent<any>, "teta-head-cell-host", never, { "column": "column"; "columns": "columns"; "data": "data"; }, {}, never, never, false>;
|
|
19
21
|
}
|
|
@@ -14,7 +14,6 @@ export * from './cell-host/cell-host.component';
|
|
|
14
14
|
export * from './default/date-cell/date-cell.component';
|
|
15
15
|
export * from './default/boolean-cell/boolean-cell.component';
|
|
16
16
|
export * from './default/date-time-cell/date-time-cell.component';
|
|
17
|
-
export * from './default/group-row/group-row.component';
|
|
18
17
|
export * from './default/list-cell/list-cell.component';
|
|
19
18
|
export * from './default/numeric-cell/numeric-cell.component';
|
|
20
19
|
export * from './default/string-cell/string-cell.component';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TableService } from '../service/table.service';
|
|
3
|
-
import { TableRow } from '../contract/table-row';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class SelectionCellComponent<T> implements OnInit, OnDestroy {
|
|
6
5
|
private _svc;
|
|
7
6
|
private _cdr;
|
|
8
|
-
row:
|
|
7
|
+
row: T;
|
|
9
8
|
private readonly tableCellClass;
|
|
10
|
-
selectedRows:
|
|
9
|
+
selectedRows: T[];
|
|
11
10
|
private _alive;
|
|
12
11
|
constructor(_svc: TableService<T>, _cdr: ChangeDetectorRef);
|
|
13
12
|
selectRow(value: boolean): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TableRow } from '../contract/table-row';
|
|
2
1
|
import { ICellCoordinates } from '../contract/i-cell-coordinates';
|
|
3
2
|
import { TableColumn } from '../contract/table-column';
|
|
4
3
|
import { FilterState } from '../../filter/contarct/filter-state';
|
|
@@ -17,7 +16,7 @@ import { ICellInstance, ICellInstanceValue } from '../contract/i-cell-instance';
|
|
|
17
16
|
import * as i0 from "@angular/core";
|
|
18
17
|
export declare class TableService<T> {
|
|
19
18
|
columns: Observable<TableColumn[]>;
|
|
20
|
-
displayData: Observable<
|
|
19
|
+
displayData: Observable<T[]>;
|
|
21
20
|
dict: Observable<IDictionary<IIdName<any>[]>>;
|
|
22
21
|
filterOptions: Observable<IDictionary<IIdName<any>[]>>;
|
|
23
22
|
state: Observable<FilterState>;
|
|
@@ -30,15 +29,14 @@ export declare class TableService<T> {
|
|
|
30
29
|
valueSet: Observable<ICellValue>;
|
|
31
30
|
stateChanged: Observable<FilterState>;
|
|
32
31
|
filterClear: Observable<TableColumn>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
activeRow: Observable<TableRow<T>>;
|
|
32
|
+
selectedRows: Observable<T[]>;
|
|
33
|
+
activeRow: Observable<T>;
|
|
36
34
|
hiddenColumns: Observable<string[]>;
|
|
37
35
|
scrollIndex: Observable<number>;
|
|
38
36
|
editType: EditType;
|
|
39
37
|
editEvent: EditEvent;
|
|
40
|
-
rowEditable: boolean | ((row:
|
|
41
|
-
trackRow: (index: number, row:
|
|
38
|
+
rowEditable: boolean | ((row: T) => boolean);
|
|
39
|
+
trackRow: (index: number, row: T) => any;
|
|
42
40
|
get dragSource(): TableColumn;
|
|
43
41
|
private initialColumnsHash;
|
|
44
42
|
private initialColumns;
|
|
@@ -61,7 +59,6 @@ export declare class TableService<T> {
|
|
|
61
59
|
private _stateChanged;
|
|
62
60
|
private _filterClear;
|
|
63
61
|
private _dragSource;
|
|
64
|
-
private _groupToggle;
|
|
65
62
|
private _selectedRows;
|
|
66
63
|
private _activeRow;
|
|
67
64
|
private _scrollIndex;
|
|
@@ -99,23 +96,22 @@ export declare class TableService<T> {
|
|
|
99
96
|
reorderColumn(column: TableColumn, insertBefore: boolean): void;
|
|
100
97
|
startEditRow(cellEvent: ICellEvent): void;
|
|
101
98
|
startEditCell(cellEvent: ICellEvent): void;
|
|
102
|
-
setActiveRow(row:
|
|
103
|
-
selectRows(rows:
|
|
104
|
-
selectOrDeselectRow(row:
|
|
105
|
-
selectRange(row:
|
|
106
|
-
selectRow(row:
|
|
107
|
-
deselectRow(row:
|
|
99
|
+
setActiveRow(row: T): void;
|
|
100
|
+
selectRows(rows: T[]): void;
|
|
101
|
+
selectOrDeselectRow(row: T): void;
|
|
102
|
+
selectRange(row: T): void;
|
|
103
|
+
selectRow(row: T): void;
|
|
104
|
+
deselectRow(row: T): void;
|
|
108
105
|
selectAll(): void;
|
|
109
106
|
deselectAll(): void;
|
|
110
107
|
allRowsSelected(): boolean | null;
|
|
111
108
|
setHiddenColumns(value: string[]): void;
|
|
112
109
|
columnIsHidden(column: TableColumn): boolean;
|
|
113
|
-
toggleGroup(row: TableRow<T>): void;
|
|
114
110
|
changeValue(coordinates: ICellCoordinates): void;
|
|
115
111
|
setValue(cellValue: ICellValue): void;
|
|
116
112
|
setValue(cellValue: ICellInstanceValue<T>): void;
|
|
117
|
-
getRowByIndex(rowIndex: number):
|
|
118
|
-
getRowIndex(row:
|
|
113
|
+
getRowByIndex(rowIndex: number): T;
|
|
114
|
+
getRowIndex(row: T): number;
|
|
119
115
|
getNextEditableCell(coords: ICellCoordinates): ICellCoordinates;
|
|
120
116
|
getPreviousEditableCell(coords: ICellCoordinates): ICellCoordinates;
|
|
121
117
|
getNextCell(coords: ICellCoordinates): ICellCoordinates;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, Type } from '@angular/core';
|
|
2
|
-
import { TableRow } from '../contract/table-row';
|
|
3
2
|
import { TableService } from '../service/table.service';
|
|
4
3
|
import { TableColumn } from '../contract/table-column';
|
|
5
4
|
import { FilterState } from '../../filter/contarct/filter-state';
|
|
6
5
|
import { DetailComponentBase } from '../base/detail-component-base';
|
|
7
|
-
import { GroupRowComponentBase } from '../base/group-row-component-base';
|
|
8
6
|
import { EditType } from '../enum/edit-type.enum';
|
|
9
7
|
import { EditEvent } from '../enum/edit-event.enum';
|
|
10
8
|
import { SelectType } from '../enum/select-type.enum';
|
|
@@ -23,42 +21,38 @@ export declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewIn
|
|
|
23
21
|
cookieName: string;
|
|
24
22
|
virtual: boolean;
|
|
25
23
|
detailComponent: Type<DetailComponentBase<T>>;
|
|
26
|
-
activeRow:
|
|
27
|
-
selectedRows:
|
|
24
|
+
activeRow: T;
|
|
25
|
+
selectedRows: T[];
|
|
28
26
|
selectType: SelectType;
|
|
29
27
|
aggregate: boolean;
|
|
30
|
-
|
|
31
|
-
groupRowComponent: Type<GroupRowComponentBase<T>>;
|
|
32
|
-
openLevels: number;
|
|
33
|
-
tree: boolean;
|
|
34
|
-
trackRow: (index: number, row: TableRow<T>) => any;
|
|
28
|
+
trackRow: (index: number, row: T) => any;
|
|
35
29
|
editType: EditType;
|
|
36
30
|
editEvent: EditEvent;
|
|
37
|
-
rowEditable: boolean | ((row:
|
|
38
|
-
rowClass: (row:
|
|
31
|
+
rowEditable: boolean | ((row: T) => boolean);
|
|
32
|
+
rowClass: (row: T, index?: number) => string;
|
|
39
33
|
set scrollToIndex(index: number);
|
|
40
34
|
showHeadCellMenu: boolean;
|
|
41
35
|
contextMenu: TemplateRef<any>;
|
|
42
36
|
contextMenuOpen: boolean;
|
|
43
37
|
contextMenuOpenChange: EventEmitter<boolean>;
|
|
44
38
|
stateChange: EventEmitter<FilterState>;
|
|
45
|
-
bodyLeft: EventEmitter<
|
|
46
|
-
activeRowChange: EventEmitter<
|
|
47
|
-
selectedRowsChange: EventEmitter<
|
|
39
|
+
bodyLeft: EventEmitter<T>;
|
|
40
|
+
activeRowChange: EventEmitter<T>;
|
|
41
|
+
selectedRowsChange: EventEmitter<T[]>;
|
|
48
42
|
cellClick: EventEmitter<ICellInstanceEvent<T>>;
|
|
49
43
|
cellDoubleClick: EventEmitter<ICellInstanceEvent<T>>;
|
|
50
44
|
cellFocus: EventEmitter<ICellInstanceEvent<T>>;
|
|
51
45
|
cellKeyDown: EventEmitter<ICellInstanceEvent<T>>;
|
|
52
|
-
rowLeft: EventEmitter<
|
|
46
|
+
rowLeft: EventEmitter<T>;
|
|
53
47
|
rowEditStart: EventEmitter<ICellInstance<T>>;
|
|
54
|
-
rowEditEnd: EventEmitter<
|
|
48
|
+
rowEditEnd: EventEmitter<T>;
|
|
55
49
|
cellEditStart: EventEmitter<ICellInstance<T>>;
|
|
56
50
|
cellEditEnd: EventEmitter<ICellInstance<T>>;
|
|
57
51
|
valueChange: EventEmitter<ICellInstance<T>>;
|
|
58
52
|
tableService: EventEmitter<TableService<T>>;
|
|
59
53
|
menu: ElementRef;
|
|
60
54
|
private readonly tableClass;
|
|
61
|
-
selectedRowsList:
|
|
55
|
+
selectedRowsList: T[];
|
|
62
56
|
private _alive;
|
|
63
57
|
private _bodyElement;
|
|
64
58
|
private _headElement;
|
|
@@ -83,5 +77,5 @@ export declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewIn
|
|
|
83
77
|
private getRow;
|
|
84
78
|
private onScroll;
|
|
85
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "teta-table", never, { "data": "data"; "columns": "columns"; "dict": "dict"; "filterOptions": "filterOptions"; "state": "state"; "cookieName": "cookieName"; "virtual": "virtual"; "detailComponent": "detailComponent"; "activeRow": "activeRow"; "selectedRows": "selectedRows"; "selectType": "selectType"; "aggregate": "aggregate"; "
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "teta-table", never, { "data": "data"; "columns": "columns"; "dict": "dict"; "filterOptions": "filterOptions"; "state": "state"; "cookieName": "cookieName"; "virtual": "virtual"; "detailComponent": "detailComponent"; "activeRow": "activeRow"; "selectedRows": "selectedRows"; "selectType": "selectType"; "aggregate": "aggregate"; "trackRow": "trackRow"; "editType": "editType"; "editEvent": "editEvent"; "rowEditable": "rowEditable"; "rowClass": "rowClass"; "scrollToIndex": "scrollToIndex"; "showHeadCellMenu": "showHeadCellMenu"; "contextMenu": "contextMenu"; "contextMenuOpen": "contextMenuOpen"; }, { "contextMenuOpenChange": "contextMenuOpenChange"; "stateChange": "stateChange"; "bodyLeft": "bodyLeft"; "activeRowChange": "activeRowChange"; "selectedRowsChange": "selectedRowsChange"; "cellClick": "cellClick"; "cellDoubleClick": "cellDoubleClick"; "cellFocus": "cellFocus"; "cellKeyDown": "cellKeyDown"; "rowLeft": "rowLeft"; "rowEditStart": "rowEditStart"; "rowEditEnd": "rowEditEnd"; "cellEditStart": "cellEditStart"; "cellEditEnd": "cellEditEnd"; "valueChange": "valueChange"; "tableService": "tableService"; }, never, ["*"], false>;
|
|
87
81
|
}
|