@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
|
@@ -13,8 +13,7 @@ import * as i1$1 from '@ngneat/transloco';
|
|
|
13
13
|
import { TranslocoModule, TRANSLOCO_SCOPE } from '@ngneat/transloco';
|
|
14
14
|
import * as i5 from '@angular/cdk/scrolling';
|
|
15
15
|
import { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
16
|
-
import
|
|
17
|
-
import hash__default from 'object-hash';
|
|
16
|
+
import objectHash from 'object-hash';
|
|
18
17
|
import { __awaiter } from 'tslib';
|
|
19
18
|
import * as THREE from 'three';
|
|
20
19
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
@@ -3094,7 +3093,7 @@ class ArrayUtil {
|
|
|
3094
3093
|
return result;
|
|
3095
3094
|
}
|
|
3096
3095
|
static findParents(tree, item) {
|
|
3097
|
-
if (tree.indexOf(item) >= 0) {
|
|
3096
|
+
if ((tree === null || tree === void 0 ? void 0 : tree.indexOf(item)) >= 0) {
|
|
3098
3097
|
return tree;
|
|
3099
3098
|
}
|
|
3100
3099
|
if (Array.isArray(tree)) {
|
|
@@ -4670,6 +4669,7 @@ class SelectComponent {
|
|
|
4670
4669
|
ngOnInit() {
|
|
4671
4670
|
}
|
|
4672
4671
|
writeValue(value) {
|
|
4672
|
+
var _a;
|
|
4673
4673
|
if (this.multiple) {
|
|
4674
4674
|
this.value =
|
|
4675
4675
|
value && this.options
|
|
@@ -4679,7 +4679,7 @@ class SelectComponent {
|
|
|
4679
4679
|
else {
|
|
4680
4680
|
this.value =
|
|
4681
4681
|
this.options &&
|
|
4682
|
-
this.options.find((option) => this.getValue(option) === value);
|
|
4682
|
+
((_a = this.options) === null || _a === void 0 ? void 0 : _a.find((option) => this.getValue(option) === value));
|
|
4683
4683
|
}
|
|
4684
4684
|
this._cdr.detectChanges();
|
|
4685
4685
|
}
|
|
@@ -6951,51 +6951,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
6951
6951
|
}]
|
|
6952
6952
|
}] });
|
|
6953
6953
|
|
|
6954
|
-
class TableRow {
|
|
6955
|
-
constructor(data) {
|
|
6956
|
-
this.expanded = false;
|
|
6957
|
-
this.showDetails = false;
|
|
6958
|
-
this.path = [];
|
|
6959
|
-
this.groupValue = [];
|
|
6960
|
-
// children: GridRow<T>[] = [];
|
|
6961
|
-
// parents: GridRow<T>[];
|
|
6962
|
-
// private backup: any = {};
|
|
6963
|
-
this._edit = false;
|
|
6964
|
-
if (data) {
|
|
6965
|
-
this.data = data;
|
|
6966
|
-
}
|
|
6967
|
-
}
|
|
6968
|
-
set edit(value) {
|
|
6969
|
-
if (value !== this._edit) {
|
|
6970
|
-
this._edit = value;
|
|
6971
|
-
this._hash = null;
|
|
6972
|
-
}
|
|
6973
|
-
}
|
|
6974
|
-
get edit() {
|
|
6975
|
-
return this._edit;
|
|
6976
|
-
}
|
|
6977
|
-
get hash() {
|
|
6978
|
-
if (!this._hash) {
|
|
6979
|
-
const hashObj = Object.assign({}, this.data);
|
|
6980
|
-
if (hashObj.children) {
|
|
6981
|
-
delete hashObj.children;
|
|
6982
|
-
}
|
|
6983
|
-
this._hash = hash.sha1(hashObj);
|
|
6984
|
-
}
|
|
6985
|
-
return this._hash;
|
|
6986
|
-
}
|
|
6987
|
-
editData(items) {
|
|
6988
|
-
this.data = items;
|
|
6989
|
-
this._hash = null;
|
|
6990
|
-
}
|
|
6991
|
-
}
|
|
6992
|
-
|
|
6993
6954
|
class TableColumn extends FilterItem {
|
|
6994
6955
|
/**
|
|
6995
6956
|
* Инициализация из анонимного объекта
|
|
6996
6957
|
*/
|
|
6997
6958
|
constructor(options) {
|
|
6998
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
6959
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6999
6960
|
super(options);
|
|
7000
6961
|
/**
|
|
7001
6962
|
* Ширина
|
|
@@ -7005,10 +6966,6 @@ class TableColumn extends FilterItem {
|
|
|
7005
6966
|
* Коэффициент растяжения ячейки
|
|
7006
6967
|
*/
|
|
7007
6968
|
this.flex = 0;
|
|
7008
|
-
/**
|
|
7009
|
-
* Порядок группировки
|
|
7010
|
-
*/
|
|
7011
|
-
this.groupingOrder = 0;
|
|
7012
6969
|
this.width = (_a = options === null || options === void 0 ? void 0 : options.width) !== null && _a !== void 0 ? _a : 150;
|
|
7013
6970
|
this.flex = (_b = options === null || options === void 0 ? void 0 : options.flex) !== null && _b !== void 0 ? _b : 0;
|
|
7014
6971
|
this.headCellClass = (_c = options === null || options === void 0 ? void 0 : options.headCellClass) !== null && _c !== void 0 ? _c : [];
|
|
@@ -7020,9 +6977,6 @@ class TableColumn extends FilterItem {
|
|
|
7020
6977
|
this.unitId = options === null || options === void 0 ? void 0 : options.unitId;
|
|
7021
6978
|
this.data = options === null || options === void 0 ? void 0 : options.data;
|
|
7022
6979
|
this.editable = (_g = options === null || options === void 0 ? void 0 : options.editable) !== null && _g !== void 0 ? _g : true;
|
|
7023
|
-
this.groupBy = (_h = options === null || options === void 0 ? void 0 : options.groupBy) !== null && _h !== void 0 ? _h : false;
|
|
7024
|
-
this.groupingOrder = (_j = options === null || options === void 0 ? void 0 : options.groupingOrder) !== null && _j !== void 0 ? _j : 0;
|
|
7025
|
-
this.groupByFn = options === null || options === void 0 ? void 0 : options.groupByFn;
|
|
7026
6980
|
this.headCellComponent = options === null || options === void 0 ? void 0 : options.headCellComponent;
|
|
7027
6981
|
this.headDropdownConfig = options === null || options === void 0 ? void 0 : options.headDropdownConfig;
|
|
7028
6982
|
this.cellComponent = options === null || options === void 0 ? void 0 : options.cellComponent;
|
|
@@ -7031,7 +6985,7 @@ class TableColumn extends FilterItem {
|
|
|
7031
6985
|
this.maxValue = options === null || options === void 0 ? void 0 : options.maxValue;
|
|
7032
6986
|
this.minValue = options === null || options === void 0 ? void 0 : options.minValue;
|
|
7033
6987
|
this.required = options === null || options === void 0 ? void 0 : options.required;
|
|
7034
|
-
this.columns = (
|
|
6988
|
+
this.columns = (_j = (_h = options === null || options === void 0 ? void 0 : options.columns) === null || _h === void 0 ? void 0 : _h.map((x) => new TableColumn(x))) !== null && _j !== void 0 ? _j : [];
|
|
7035
6989
|
}
|
|
7036
6990
|
}
|
|
7037
6991
|
|
|
@@ -7236,7 +7190,12 @@ class TableService {
|
|
|
7236
7190
|
this.selectType = SelectType.mouse;
|
|
7237
7191
|
this.editType = EditType.cell;
|
|
7238
7192
|
this.editEvent = EditEvent.doubleClick;
|
|
7239
|
-
this.trackRow = (index, row) =>
|
|
7193
|
+
this.trackRow = (index, row) => {
|
|
7194
|
+
if (row['id']) {
|
|
7195
|
+
return row['id'];
|
|
7196
|
+
}
|
|
7197
|
+
return index;
|
|
7198
|
+
};
|
|
7240
7199
|
this.initialColumns = [];
|
|
7241
7200
|
this.displayColumns = [];
|
|
7242
7201
|
this._columns = new BehaviorSubject([]);
|
|
@@ -7253,7 +7212,6 @@ class TableService {
|
|
|
7253
7212
|
this._valueSet = new Subject();
|
|
7254
7213
|
this._stateChanged = new Subject();
|
|
7255
7214
|
this._filterClear = new Subject();
|
|
7256
|
-
this._groupToggle = new Subject();
|
|
7257
7215
|
this._selectedRows = new BehaviorSubject([]);
|
|
7258
7216
|
this._activeRow = new BehaviorSubject(null);
|
|
7259
7217
|
this._scrollIndex = new Subject();
|
|
@@ -7270,7 +7228,6 @@ class TableService {
|
|
|
7270
7228
|
this.valueSet = this._valueSet.asObservable();
|
|
7271
7229
|
this.stateChanged = this._stateChanged.asObservable();
|
|
7272
7230
|
this.filterClear = this._filterClear.asObservable();
|
|
7273
|
-
this.groupToggle = this._groupToggle.asObservable();
|
|
7274
7231
|
this.selectedRows = this._selectedRows.asObservable();
|
|
7275
7232
|
this.activeRow = this._activeRow.asObservable();
|
|
7276
7233
|
this.hiddenColumns = this._hiddenColumns.asObservable();
|
|
@@ -7283,7 +7240,7 @@ class TableService {
|
|
|
7283
7240
|
return this._currentEditCell;
|
|
7284
7241
|
}
|
|
7285
7242
|
setData(data) {
|
|
7286
|
-
this._displayData.next(data
|
|
7243
|
+
this._displayData.next(data ? [...data] : []);
|
|
7287
7244
|
}
|
|
7288
7245
|
setDict(dict) {
|
|
7289
7246
|
this._dict.next(dict);
|
|
@@ -7297,10 +7254,9 @@ class TableService {
|
|
|
7297
7254
|
'editable',
|
|
7298
7255
|
'cellComponent',
|
|
7299
7256
|
'headCellComponent',
|
|
7300
|
-
'headDropdownConfig'
|
|
7301
|
-
'groupByFn',
|
|
7257
|
+
'headDropdownConfig'
|
|
7302
7258
|
];
|
|
7303
|
-
this.initialColumnsHash =
|
|
7259
|
+
this.initialColumnsHash = objectHash(this.initialColumns, {
|
|
7304
7260
|
algorithm: 'sha1',
|
|
7305
7261
|
ignoreUnknown: true,
|
|
7306
7262
|
excludeKeys: (key) => {
|
|
@@ -7632,9 +7588,6 @@ class TableService {
|
|
|
7632
7588
|
columnIsHidden(column) {
|
|
7633
7589
|
return this._hiddenColumns.value.indexOf(column.name) >= 0;
|
|
7634
7590
|
}
|
|
7635
|
-
toggleGroup(row) {
|
|
7636
|
-
this._groupToggle.next(row);
|
|
7637
|
-
}
|
|
7638
7591
|
changeValue(coordinates) {
|
|
7639
7592
|
this._valueChanged.next(coordinates);
|
|
7640
7593
|
}
|
|
@@ -7653,7 +7606,8 @@ class TableService {
|
|
|
7653
7606
|
this._valueSet.next(value);
|
|
7654
7607
|
}
|
|
7655
7608
|
getRowByIndex(rowIndex) {
|
|
7656
|
-
|
|
7609
|
+
var _a;
|
|
7610
|
+
return (_a = this._displayData) === null || _a === void 0 ? void 0 : _a.value[rowIndex];
|
|
7657
7611
|
}
|
|
7658
7612
|
getRowIndex(row) {
|
|
7659
7613
|
return this._displayData.value.indexOf(row);
|
|
@@ -7829,26 +7783,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
7829
7783
|
}]
|
|
7830
7784
|
}], ctorParameters: function () { return []; } });
|
|
7831
7785
|
|
|
7832
|
-
class GroupRowComponentBase {
|
|
7833
|
-
}
|
|
7834
|
-
|
|
7835
|
-
class GroupRowComponent extends GroupRowComponentBase {
|
|
7836
|
-
constructor() {
|
|
7837
|
-
super();
|
|
7838
|
-
}
|
|
7839
|
-
ngOnInit() { }
|
|
7840
|
-
}
|
|
7841
|
-
GroupRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: GroupRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7842
|
-
GroupRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: GroupRowComponent, selector: "teta-group-row", inputs: { row: "row", columns: "columns" }, usesInheritance: true, ngImport: i0, template: "<span>{{row.groupValue[row.level]}} ()</span>\n<!--<span>{{row.groupValue[row.level]}} ({{row.children.length}})</span>-->\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: GroupRowComponent, decorators: [{
|
|
7844
|
-
type: Component,
|
|
7845
|
-
args: [{ selector: 'teta-group-row', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span>{{row.groupValue[row.level]}} ()</span>\n<!--<span>{{row.groupValue[row.level]}} ({{row.children.length}})</span>-->\n" }]
|
|
7846
|
-
}], ctorParameters: function () { return []; }, propDecorators: { row: [{
|
|
7847
|
-
type: Input
|
|
7848
|
-
}], columns: [{
|
|
7849
|
-
type: Input
|
|
7850
|
-
}] } });
|
|
7851
|
-
|
|
7852
7786
|
class ClickService {
|
|
7853
7787
|
constructor(_document) {
|
|
7854
7788
|
this._document = _document;
|
|
@@ -8216,6 +8150,13 @@ class DefaultHeadCellComponent extends HeadCellComponentBase {
|
|
|
8216
8150
|
get column() {
|
|
8217
8151
|
return this._column;
|
|
8218
8152
|
}
|
|
8153
|
+
set columns(val) {
|
|
8154
|
+
this._columns = val;
|
|
8155
|
+
this._cdr.detectChanges();
|
|
8156
|
+
}
|
|
8157
|
+
get columns() {
|
|
8158
|
+
return this._columns;
|
|
8159
|
+
}
|
|
8219
8160
|
set data(data) {
|
|
8220
8161
|
this._data = data;
|
|
8221
8162
|
this._cdr.detectChanges();
|
|
@@ -8227,12 +8168,14 @@ class DefaultHeadCellComponent extends HeadCellComponentBase {
|
|
|
8227
8168
|
}
|
|
8228
8169
|
}
|
|
8229
8170
|
DefaultHeadCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultHeadCellComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8230
|
-
DefaultHeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DefaultHeadCellComponent, selector: "teta-default-head-cell", inputs: { column: "column", data: "data" }, usesInheritance: true, ngImport: i0, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8171
|
+
DefaultHeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DefaultHeadCellComponent, selector: "teta-default-head-cell", inputs: { column: "column", columns: "columns", data: "data" }, usesInheritance: true, ngImport: i0, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8231
8172
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultHeadCellComponent, decorators: [{
|
|
8232
8173
|
type: Component,
|
|
8233
8174
|
args: [{ selector: 'teta-default-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"] }]
|
|
8234
8175
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
8235
8176
|
type: Input
|
|
8177
|
+
}], columns: [{
|
|
8178
|
+
type: Input
|
|
8236
8179
|
}], data: [{
|
|
8237
8180
|
type: Input
|
|
8238
8181
|
}] } });
|
|
@@ -8250,6 +8193,15 @@ class HeadCellHostComponent {
|
|
|
8250
8193
|
get column() {
|
|
8251
8194
|
return this._column;
|
|
8252
8195
|
}
|
|
8196
|
+
set columns(columns) {
|
|
8197
|
+
this._columns = columns;
|
|
8198
|
+
if (this.init) {
|
|
8199
|
+
this.componentRef.instance.columns = this._columns;
|
|
8200
|
+
}
|
|
8201
|
+
}
|
|
8202
|
+
get columns() {
|
|
8203
|
+
return this._columns;
|
|
8204
|
+
}
|
|
8253
8205
|
set data(data) {
|
|
8254
8206
|
this._data = data;
|
|
8255
8207
|
if (this.init) {
|
|
@@ -8266,17 +8218,20 @@ class HeadCellHostComponent {
|
|
|
8266
8218
|
this.componentRef =
|
|
8267
8219
|
this.viewContainerRef.createComponent(this.column.headCellComponent);
|
|
8268
8220
|
this.componentRef.instance.column = this.column;
|
|
8221
|
+
this.componentRef.instance.columns = this.columns;
|
|
8269
8222
|
this.componentRef.instance.data = this.data;
|
|
8270
8223
|
this.init = true;
|
|
8271
8224
|
}
|
|
8272
8225
|
}
|
|
8273
8226
|
HeadCellHostComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HeadCellHostComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8274
|
-
HeadCellHostComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: HeadCellHostComponent, selector: "teta-head-cell-host", inputs: { column: "column", data: "data" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8227
|
+
HeadCellHostComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: HeadCellHostComponent, selector: "teta-head-cell-host", inputs: { column: "column", columns: "columns", data: "data" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8275
8228
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HeadCellHostComponent, decorators: [{
|
|
8276
8229
|
type: Component,
|
|
8277
8230
|
args: [{ selector: 'teta-head-cell-host', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}\n"] }]
|
|
8278
8231
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { column: [{
|
|
8279
8232
|
type: Input
|
|
8233
|
+
}], columns: [{
|
|
8234
|
+
type: Input
|
|
8280
8235
|
}], data: [{
|
|
8281
8236
|
type: Input
|
|
8282
8237
|
}] } });
|
|
@@ -9041,10 +8996,10 @@ class HeadCellComponent {
|
|
|
9041
8996
|
}
|
|
9042
8997
|
}
|
|
9043
8998
|
HeadCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HeadCellComponent, deps: [{ token: TableService }, { token: i0.ApplicationRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9044
|
-
HeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: HeadCellComponent, selector: "teta-head-cell", inputs: { column: "column", showHeadCellMenu: "showHeadCellMenu", data: "data" }, host: { listeners: { "dragstart": "dragstart($event)", "dragenter": "dragenter($event)", "dragover": "allowDrop($event)", "dragleave": "dragleave($event)", "dragend": "dragend($event)", "drop": "drop($event)" }, properties: { "class.table-head__cell_active": "this.dropDownOpen" } }, viewQueries: [{ propertyName: "mainTemplate", first: true, predicate: ["mainTemplate"], descendants: true, static: true }, { propertyName: "filterTemplate", first: true, predicate: ["filterTemplate"], descendants: true, static: true }, { propertyName: "columnsTemplate", first: true, predicate: ["columnsTemplate"], descendants: true, static: true }], ngImport: i0, template: "<div draggable=\"true\" class=\"row row_auto\">\n <teta-dropdown [autoCloseIgnore]=\"['enter', 'inside']\"\n [verticalAlign]=\"verticalAlign.bottom\"\n [appendToBody]=\"false\"\n [(open)]=\"dropDownOpen\"\n [align]=\"align.left\"\n (click)=\"$event.preventDefault()\"\n [class.table-head__cell__menu_open]=\"dropDownOpen\"\n class=\"column column_auto justify-content-center\">\n <div tetaDropdownHead class=\"table-head__cell__wrapper\"\n [ngClass]=\"column.headCellClass\">\n <teta-head-cell-host [column]=\"column\" [data]=\"data\"></teta-head-cell-host>\n <teta-icon *ngIf=\"iconName | async as icon\"\n [palette]=\"'text'\"\n [name]=\"icon\"></teta-icon>\n </div>\n <teta-head-cell-dropdown tetaDropdownContent\n *ngIf=\"showHeadCellMenu\"\n [tabTemplates]=\"tabTemplates\"\n [data]=\"data\"\n [column]=\"column\"\n [columns]=\"columns | async\"\n [state]=\"state | async\"\n [(dropDownOpen)]=\"dropDownOpen\"></teta-head-cell-dropdown>\n </teta-dropdown>\n <div class=\"drop-area\"\n draggable=\"false\"\n [class.drop-area_left]=\"showDrag === 'left'\"\n [class.drop-area_right]=\"showDrag === 'right'\"\n *ngIf=\"showDrag\"></div>\n</div>\n<div class=\"table-head__cell__resize\"\n draggable=\"false\"\n (dragstart)=\"$event.preventDefault();$event.stopPropagation()\"\n (drag)=\"$event.preventDefault();$event.stopPropagation()\"\n [tetaResizeDrag]=\"'vertical'\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd()\">\n <div class=\"table-head__cell__resize_drag\"></div>\n</div>\n<ng-template #mainTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-main-dropdown-tab [column]=\"column\" [state]=\"state\" [close]=\"close\"></teta-main-dropdown-tab>\n</ng-template>\n<ng-template #filterTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-filter-dropdown-tab [column]=\"column\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-filter-dropdown-tab>\n</ng-template>\n<ng-template #columnsTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-visibility-dropdown-tab [column]=\"column\"\n [columns]=\"columns\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-visibility-dropdown-tab>\n</ng-template>\n", styles: [".drop-area{position:absolute;width:1px;background:var(--color-text-50);top:0;bottom:0;z-index:10}.drop-area_left{left:-1px}.drop-area_right{right:-1px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "teta-icon", inputs: ["name", "size", "palette", "class"] }, { kind: "component", type: DropdownComponent, selector: "teta-dropdown", exportAs: ["dropdown"] }, { kind: "directive", type: DropdownHeadDirective, selector: "[tetaDropdownHead]" }, { kind: "directive", type: DropdownContentDirective, selector: "[tetaDropdownContent]" }, { kind: "directive", type: ResizeDragDirective, selector: "[tetaResizeDrag]", inputs: ["tetaResizeDrag"], outputs: ["resizeStart", "resizeProcess", "resizeEnd"] }, { kind: "component", type: HeadCellHostComponent, selector: "teta-head-cell-host", inputs: ["column", "data"] }, { kind: "component", type: HeadCellDropdownComponent, selector: "teta-head-cell-dropdown", inputs: ["columns", "column", "state", "data", "tabTemplates", "dropDownOpen"], outputs: ["dropDownOpenChange"] }, { kind: "component", type: MainDropdownTabComponent, selector: "teta-main-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "component", type: FilterDropdownTabComponent, selector: "teta-filter-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "component", type: VisibilityDropdownTabComponent, selector: "teta-visibility-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8999
|
+
HeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: HeadCellComponent, selector: "teta-head-cell", inputs: { column: "column", showHeadCellMenu: "showHeadCellMenu", data: "data" }, host: { listeners: { "dragstart": "dragstart($event)", "dragenter": "dragenter($event)", "dragover": "allowDrop($event)", "dragleave": "dragleave($event)", "dragend": "dragend($event)", "drop": "drop($event)" }, properties: { "class.table-head__cell_active": "this.dropDownOpen" } }, viewQueries: [{ propertyName: "mainTemplate", first: true, predicate: ["mainTemplate"], descendants: true, static: true }, { propertyName: "filterTemplate", first: true, predicate: ["filterTemplate"], descendants: true, static: true }, { propertyName: "columnsTemplate", first: true, predicate: ["columnsTemplate"], descendants: true, static: true }], ngImport: i0, template: "<div draggable=\"true\" class=\"row row_auto\">\n <teta-dropdown [autoCloseIgnore]=\"['enter', 'inside']\"\n [verticalAlign]=\"verticalAlign.bottom\"\n [appendToBody]=\"false\"\n [(open)]=\"dropDownOpen\"\n [align]=\"align.left\"\n (click)=\"$event.preventDefault()\"\n [class.table-head__cell__menu_open]=\"dropDownOpen\"\n class=\"column column_auto justify-content-center\">\n <div tetaDropdownHead class=\"table-head__cell__wrapper\"\n [ngClass]=\"column.headCellClass\">\n <teta-head-cell-host [column]=\"column\" [columns]=\"columns | async\" [data]=\"data\"></teta-head-cell-host>\n <teta-icon *ngIf=\"iconName | async as icon\"\n [palette]=\"'text'\"\n [name]=\"icon\"></teta-icon>\n </div>\n <teta-head-cell-dropdown tetaDropdownContent\n *ngIf=\"showHeadCellMenu\"\n [tabTemplates]=\"tabTemplates\"\n [data]=\"data\"\n [column]=\"column\"\n [columns]=\"columns | async\"\n [state]=\"state | async\"\n [(dropDownOpen)]=\"dropDownOpen\"></teta-head-cell-dropdown>\n </teta-dropdown>\n <div class=\"drop-area\"\n draggable=\"false\"\n [class.drop-area_left]=\"showDrag === 'left'\"\n [class.drop-area_right]=\"showDrag === 'right'\"\n *ngIf=\"showDrag\"></div>\n</div>\n<div class=\"table-head__cell__resize\"\n draggable=\"false\"\n (dragstart)=\"$event.preventDefault();$event.stopPropagation()\"\n (drag)=\"$event.preventDefault();$event.stopPropagation()\"\n [tetaResizeDrag]=\"'vertical'\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd()\">\n <div class=\"table-head__cell__resize_drag\"></div>\n</div>\n<ng-template #mainTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-main-dropdown-tab [column]=\"column\" [state]=\"state\" [close]=\"close\"></teta-main-dropdown-tab>\n</ng-template>\n<ng-template #filterTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-filter-dropdown-tab [column]=\"column\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-filter-dropdown-tab>\n</ng-template>\n<ng-template #columnsTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-visibility-dropdown-tab [column]=\"column\"\n [columns]=\"columns\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-visibility-dropdown-tab>\n</ng-template>\n", styles: [".drop-area{position:absolute;width:1px;background:var(--color-text-50);top:0;bottom:0;z-index:10}.drop-area_left{left:-1px}.drop-area_right{right:-1px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "teta-icon", inputs: ["name", "size", "palette", "class"] }, { kind: "component", type: DropdownComponent, selector: "teta-dropdown", exportAs: ["dropdown"] }, { kind: "directive", type: DropdownHeadDirective, selector: "[tetaDropdownHead]" }, { kind: "directive", type: DropdownContentDirective, selector: "[tetaDropdownContent]" }, { kind: "directive", type: ResizeDragDirective, selector: "[tetaResizeDrag]", inputs: ["tetaResizeDrag"], outputs: ["resizeStart", "resizeProcess", "resizeEnd"] }, { kind: "component", type: HeadCellHostComponent, selector: "teta-head-cell-host", inputs: ["column", "columns", "data"] }, { kind: "component", type: HeadCellDropdownComponent, selector: "teta-head-cell-dropdown", inputs: ["columns", "column", "state", "data", "tabTemplates", "dropDownOpen"], outputs: ["dropDownOpenChange"] }, { kind: "component", type: MainDropdownTabComponent, selector: "teta-main-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "component", type: FilterDropdownTabComponent, selector: "teta-filter-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "component", type: VisibilityDropdownTabComponent, selector: "teta-visibility-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9045
9000
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HeadCellComponent, decorators: [{
|
|
9046
9001
|
type: Component,
|
|
9047
|
-
args: [{ selector: 'teta-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div draggable=\"true\" class=\"row row_auto\">\n <teta-dropdown [autoCloseIgnore]=\"['enter', 'inside']\"\n [verticalAlign]=\"verticalAlign.bottom\"\n [appendToBody]=\"false\"\n [(open)]=\"dropDownOpen\"\n [align]=\"align.left\"\n (click)=\"$event.preventDefault()\"\n [class.table-head__cell__menu_open]=\"dropDownOpen\"\n class=\"column column_auto justify-content-center\">\n <div tetaDropdownHead class=\"table-head__cell__wrapper\"\n [ngClass]=\"column.headCellClass\">\n <teta-head-cell-host [column]=\"column\" [data]=\"data\"></teta-head-cell-host>\n <teta-icon *ngIf=\"iconName | async as icon\"\n [palette]=\"'text'\"\n [name]=\"icon\"></teta-icon>\n </div>\n <teta-head-cell-dropdown tetaDropdownContent\n *ngIf=\"showHeadCellMenu\"\n [tabTemplates]=\"tabTemplates\"\n [data]=\"data\"\n [column]=\"column\"\n [columns]=\"columns | async\"\n [state]=\"state | async\"\n [(dropDownOpen)]=\"dropDownOpen\"></teta-head-cell-dropdown>\n </teta-dropdown>\n <div class=\"drop-area\"\n draggable=\"false\"\n [class.drop-area_left]=\"showDrag === 'left'\"\n [class.drop-area_right]=\"showDrag === 'right'\"\n *ngIf=\"showDrag\"></div>\n</div>\n<div class=\"table-head__cell__resize\"\n draggable=\"false\"\n (dragstart)=\"$event.preventDefault();$event.stopPropagation()\"\n (drag)=\"$event.preventDefault();$event.stopPropagation()\"\n [tetaResizeDrag]=\"'vertical'\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd()\">\n <div class=\"table-head__cell__resize_drag\"></div>\n</div>\n<ng-template #mainTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-main-dropdown-tab [column]=\"column\" [state]=\"state\" [close]=\"close\"></teta-main-dropdown-tab>\n</ng-template>\n<ng-template #filterTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-filter-dropdown-tab [column]=\"column\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-filter-dropdown-tab>\n</ng-template>\n<ng-template #columnsTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-visibility-dropdown-tab [column]=\"column\"\n [columns]=\"columns\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-visibility-dropdown-tab>\n</ng-template>\n", styles: [".drop-area{position:absolute;width:1px;background:var(--color-text-50);top:0;bottom:0;z-index:10}.drop-area_left{left:-1px}.drop-area_right{right:-1px}\n"] }]
|
|
9002
|
+
args: [{ selector: 'teta-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div draggable=\"true\" class=\"row row_auto\">\n <teta-dropdown [autoCloseIgnore]=\"['enter', 'inside']\"\n [verticalAlign]=\"verticalAlign.bottom\"\n [appendToBody]=\"false\"\n [(open)]=\"dropDownOpen\"\n [align]=\"align.left\"\n (click)=\"$event.preventDefault()\"\n [class.table-head__cell__menu_open]=\"dropDownOpen\"\n class=\"column column_auto justify-content-center\">\n <div tetaDropdownHead class=\"table-head__cell__wrapper\"\n [ngClass]=\"column.headCellClass\">\n <teta-head-cell-host [column]=\"column\" [columns]=\"columns | async\" [data]=\"data\"></teta-head-cell-host>\n <teta-icon *ngIf=\"iconName | async as icon\"\n [palette]=\"'text'\"\n [name]=\"icon\"></teta-icon>\n </div>\n <teta-head-cell-dropdown tetaDropdownContent\n *ngIf=\"showHeadCellMenu\"\n [tabTemplates]=\"tabTemplates\"\n [data]=\"data\"\n [column]=\"column\"\n [columns]=\"columns | async\"\n [state]=\"state | async\"\n [(dropDownOpen)]=\"dropDownOpen\"></teta-head-cell-dropdown>\n </teta-dropdown>\n <div class=\"drop-area\"\n draggable=\"false\"\n [class.drop-area_left]=\"showDrag === 'left'\"\n [class.drop-area_right]=\"showDrag === 'right'\"\n *ngIf=\"showDrag\"></div>\n</div>\n<div class=\"table-head__cell__resize\"\n draggable=\"false\"\n (dragstart)=\"$event.preventDefault();$event.stopPropagation()\"\n (drag)=\"$event.preventDefault();$event.stopPropagation()\"\n [tetaResizeDrag]=\"'vertical'\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd()\">\n <div class=\"table-head__cell__resize_drag\"></div>\n</div>\n<ng-template #mainTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-main-dropdown-tab [column]=\"column\" [state]=\"state\" [close]=\"close\"></teta-main-dropdown-tab>\n</ng-template>\n<ng-template #filterTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-filter-dropdown-tab [column]=\"column\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-filter-dropdown-tab>\n</ng-template>\n<ng-template #columnsTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-visibility-dropdown-tab [column]=\"column\"\n [columns]=\"columns\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-visibility-dropdown-tab>\n</ng-template>\n", styles: [".drop-area{position:absolute;width:1px;background:var(--color-text-50);top:0;bottom:0;z-index:10}.drop-area_left{left:-1px}.drop-area_right{right:-1px}\n"] }]
|
|
9048
9003
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ApplicationRef }, { type: i0.ElementRef }]; }, propDecorators: { column: [{
|
|
9049
9004
|
type: Input
|
|
9050
9005
|
}], showHeadCellMenu: [{
|
|
@@ -9325,7 +9280,7 @@ class CellComponentBase {
|
|
|
9325
9280
|
.pipe(takeWhile((_) => this._alive))
|
|
9326
9281
|
.subscribe((cellValue) => {
|
|
9327
9282
|
if (this.index === cellValue.row && this.column.name === cellValue.column) {
|
|
9328
|
-
this.row
|
|
9283
|
+
this.row[this.column.name] = cellValue.value;
|
|
9329
9284
|
this.cdr.detectChanges();
|
|
9330
9285
|
}
|
|
9331
9286
|
});
|
|
@@ -9391,10 +9346,10 @@ class NumericCellComponent extends CellComponentBase {
|
|
|
9391
9346
|
}
|
|
9392
9347
|
}
|
|
9393
9348
|
NumericCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NumericCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9394
|
-
NumericCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: NumericCellComponent, selector: "teta-numeric-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 [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
9349
|
+
NumericCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: NumericCellComponent, selector: "teta-numeric-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 [class.cell-text_disabled]=\"!editable\">\n {{row[column.name] | tetaNumber : 2}}\n</span>\n<input #input\n *ngIf=\"edit\"\n tetaOnlyNumber\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", 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: OnlyNumberDirective, selector: "[tetaOnlyNumber]", inputs: ["tetaOnlyNumber", "allowDecimals", "allowSign", "decimalSeparator", "commaSeparator"] }, { kind: "pipe", type: NumberPipe, name: "tetaNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9395
9350
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NumericCellComponent, decorators: [{
|
|
9396
9351
|
type: Component,
|
|
9397
|
-
args: [{ selector: 'teta-numeric-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
9352
|
+
args: [{ selector: 'teta-numeric-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name] | tetaNumber : 2}}\n</span>\n<input #input\n *ngIf=\"edit\"\n tetaOnlyNumber\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" }]
|
|
9398
9353
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9399
9354
|
type: Input
|
|
9400
9355
|
}], row: [{
|
|
@@ -9414,7 +9369,7 @@ class DateCellComponent extends CellComponentBase {
|
|
|
9414
9369
|
super.ngOnInit();
|
|
9415
9370
|
}
|
|
9416
9371
|
setValue(value) {
|
|
9417
|
-
this.row
|
|
9372
|
+
this.row[this.column.name] = value ? new Date(value) : value;
|
|
9418
9373
|
this.valueChanged();
|
|
9419
9374
|
this.cdr.detectChanges();
|
|
9420
9375
|
}
|
|
@@ -9432,10 +9387,10 @@ class DateCellComponent extends CellComponentBase {
|
|
|
9432
9387
|
}
|
|
9433
9388
|
}
|
|
9434
9389
|
DateCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DateCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9435
|
-
DateCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DateCellComponent, selector: "teta-date-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 [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
9390
|
+
DateCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DateCellComponent, selector: "teta-date-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 [class.cell-text_disabled]=\"!editable\">\n {{row[column.name] | date : 'dd.MM.yyyy'}}\n</span>\n<teta-date-picker class=\"datepicker-table\"\n #input\n *ngIf=\"edit\"\n [appendToBody]=\"true\"\n [showTime]=\"false\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"setValue($event)\"\n></teta-date-picker>\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: DatePickerComponent, selector: "teta-date-picker", inputs: ["disabled", "invalid", "firstDayOfWeek", "disabledDates", "disabledPeriods", "disabledDays", "minDate", "maxDate", "minYearDate", "maxYearDate", "align", "verticalAlign", "appendToBody", "allowNull", "backdrop", "showTime", "format"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9436
9391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DateCellComponent, decorators: [{
|
|
9437
9392
|
type: Component,
|
|
9438
|
-
args: [{ selector: 'teta-date-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
9393
|
+
args: [{ selector: 'teta-date-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name] | date : 'dd.MM.yyyy'}}\n</span>\n<teta-date-picker class=\"datepicker-table\"\n #input\n *ngIf=\"edit\"\n [appendToBody]=\"true\"\n [showTime]=\"false\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"setValue($event)\"\n></teta-date-picker>\n" }]
|
|
9439
9394
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9440
9395
|
type: Input
|
|
9441
9396
|
}], row: [{
|
|
@@ -9459,7 +9414,7 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9459
9414
|
get displayFilterOptions() {
|
|
9460
9415
|
var _a, _b;
|
|
9461
9416
|
if (((_b = (_a = this.column) === null || _a === void 0 ? void 0 : _a.parentName) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
9462
|
-
const parentValue = this.row
|
|
9417
|
+
const parentValue = this.row[this.column.parentName];
|
|
9463
9418
|
if (parentValue) {
|
|
9464
9419
|
return this.filterOptions.filter(_ => _.parentId === parentValue);
|
|
9465
9420
|
}
|
|
@@ -9468,7 +9423,7 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9468
9423
|
}
|
|
9469
9424
|
setValue(value) {
|
|
9470
9425
|
// if(this.c)
|
|
9471
|
-
this.row
|
|
9426
|
+
this.row[this.column.name] = value;
|
|
9472
9427
|
this.valueChanged();
|
|
9473
9428
|
}
|
|
9474
9429
|
startEdit(initiator, type) {
|
|
@@ -9492,7 +9447,7 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9492
9447
|
!(this.filterOptions instanceof Array)) {
|
|
9493
9448
|
return '';
|
|
9494
9449
|
}
|
|
9495
|
-
const item = this.filterOptions.find((option) => option.id === this.row
|
|
9450
|
+
const item = this.filterOptions.find((option) => option.id === this.row[this.column.name]);
|
|
9496
9451
|
if (item === null || item === undefined) {
|
|
9497
9452
|
return '';
|
|
9498
9453
|
}
|
|
@@ -9500,10 +9455,10 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9500
9455
|
}
|
|
9501
9456
|
}
|
|
9502
9457
|
ListCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9503
|
-
ListCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListCellComponent, selector: "teta-list-cell", inputs: { column: "column", row: "row", filterOptions: "filterOptions" }, 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 [class.cell-text_disabled]=\"!editable\">\n {{value}}\n</span>\n<teta-select #input\n class=\"row_auto select-table\"\n *ngIf=\"edit\"\n [allowNull]=\"!column.required\"\n [verticalAlign]=\"verticalAlign.auto\"\n [appendToBody]=\"true\"\n [options]=\"displayFilterOptions\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [ngModel]=\"row
|
|
9458
|
+
ListCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListCellComponent, selector: "teta-list-cell", inputs: { column: "column", row: "row", filterOptions: "filterOptions" }, 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 [class.cell-text_disabled]=\"!editable\">\n {{value}}\n</span>\n<teta-select #input\n class=\"row_auto select-table\"\n *ngIf=\"edit\"\n [allowNull]=\"!column.required\"\n [verticalAlign]=\"verticalAlign.auto\"\n [appendToBody]=\"true\"\n [options]=\"displayFilterOptions\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"setValue($event)\">\n</teta-select>\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: SelectComponent, selector: "teta-select", inputs: ["multiple", "options", "invalid", "align", "verticalAlign", "autoClose", "autoCloseIgnore", "disabled", "itemSize", "virtual", "icon", "placeholder", "appendToBody", "allowNull", "valueRef", "textRef", "searchRef"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9504
9459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListCellComponent, decorators: [{
|
|
9505
9460
|
type: Component,
|
|
9506
|
-
args: [{ selector: 'teta-list-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{value}}\n</span>\n<teta-select #input\n class=\"row_auto select-table\"\n *ngIf=\"edit\"\n [allowNull]=\"!column.required\"\n [verticalAlign]=\"verticalAlign.auto\"\n [appendToBody]=\"true\"\n [options]=\"displayFilterOptions\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [ngModel]=\"row
|
|
9461
|
+
args: [{ selector: 'teta-list-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{value}}\n</span>\n<teta-select #input\n class=\"row_auto select-table\"\n *ngIf=\"edit\"\n [allowNull]=\"!column.required\"\n [verticalAlign]=\"verticalAlign.auto\"\n [appendToBody]=\"true\"\n [options]=\"displayFilterOptions\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"setValue($event)\">\n</teta-select>\n" }]
|
|
9507
9462
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9508
9463
|
type: Input
|
|
9509
9464
|
}], row: [{
|
|
@@ -9548,10 +9503,10 @@ class StringCellComponent extends CellComponentBase {
|
|
|
9548
9503
|
}
|
|
9549
9504
|
}
|
|
9550
9505
|
StringCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StringCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9551
|
-
StringCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", 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 [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
9506
|
+
StringCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", 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 [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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9552
9507
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StringCellComponent, decorators: [{
|
|
9553
9508
|
type: Component,
|
|
9554
|
-
args: [{ selector: 'teta-string-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
9509
|
+
args: [{ selector: 'teta-string-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\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" }]
|
|
9555
9510
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9556
9511
|
type: Input
|
|
9557
9512
|
}], row: [{
|
|
@@ -9587,10 +9542,10 @@ class BooleanCellComponent extends CellComponentBase {
|
|
|
9587
9542
|
}
|
|
9588
9543
|
}
|
|
9589
9544
|
BooleanCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: BooleanCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9590
|
-
BooleanCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: BooleanCellComponent, selector: "teta-boolean-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 [class.cell-text_disabled]=\"!editable\">\n {{ row
|
|
9545
|
+
BooleanCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: BooleanCellComponent, selector: "teta-boolean-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 [class.cell-text_disabled]=\"!editable\">\n {{ row[column.name] }}\n</span>\n<teta-checkbox\n #input\n *ngIf=\"edit\"\n [binary]=\"true\"\n [(ngModel)]=\"row[column.name]\"\n (blur)=\"setValue()\"\n></teta-checkbox>\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9591
9546
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: BooleanCellComponent, decorators: [{
|
|
9592
9547
|
type: Component,
|
|
9593
|
-
args: [{ selector: 'teta-boolean-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{ row
|
|
9548
|
+
args: [{ selector: 'teta-boolean-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{ row[column.name] }}\n</span>\n<teta-checkbox\n #input\n *ngIf=\"edit\"\n [binary]=\"true\"\n [(ngModel)]=\"row[column.name]\"\n (blur)=\"setValue()\"\n></teta-checkbox>\n" }]
|
|
9594
9549
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9595
9550
|
type: Input
|
|
9596
9551
|
}], row: [{
|
|
@@ -9727,8 +9682,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
9727
9682
|
}] } });
|
|
9728
9683
|
|
|
9729
9684
|
class TableBodyComponent {
|
|
9730
|
-
constructor(_svc, _config, _cdr) {
|
|
9685
|
+
constructor(_svc, _elementRef, _config, _cdr) {
|
|
9731
9686
|
this._svc = _svc;
|
|
9687
|
+
this._elementRef = _elementRef;
|
|
9732
9688
|
this._config = _config;
|
|
9733
9689
|
this._cdr = _cdr;
|
|
9734
9690
|
this.selectedRows = [];
|
|
@@ -9739,18 +9695,6 @@ class TableBodyComponent {
|
|
|
9739
9695
|
this._columns = [];
|
|
9740
9696
|
this._alive = true;
|
|
9741
9697
|
this._hiddenColumns = [];
|
|
9742
|
-
this.getData = (index, count, success) => {
|
|
9743
|
-
var _a;
|
|
9744
|
-
const data = [];
|
|
9745
|
-
if (((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
9746
|
-
const start = Math.max(0, index);
|
|
9747
|
-
const end = Math.min(index + count - 1, this.data.length - 1);
|
|
9748
|
-
for (let i = start; i <= end; i++) {
|
|
9749
|
-
data.push(this.data[i]);
|
|
9750
|
-
}
|
|
9751
|
-
}
|
|
9752
|
-
return success(data);
|
|
9753
|
-
};
|
|
9754
9698
|
}
|
|
9755
9699
|
set data(data) {
|
|
9756
9700
|
this._data = data;
|
|
@@ -9775,6 +9719,17 @@ class TableBodyComponent {
|
|
|
9775
9719
|
setActiveRow(row) {
|
|
9776
9720
|
this._svc.setActiveRow(row);
|
|
9777
9721
|
}
|
|
9722
|
+
// getData = (index, count, success) => {
|
|
9723
|
+
// const data = [];
|
|
9724
|
+
// if (this.data?.length > 0) {
|
|
9725
|
+
// const start = Math.max(0, index);
|
|
9726
|
+
// const end = Math.min(index + count - 1, this.data.length - 1);
|
|
9727
|
+
// for (let i = start; i <= end; i++) {
|
|
9728
|
+
// data.push(this.data[i]);
|
|
9729
|
+
// }
|
|
9730
|
+
// }
|
|
9731
|
+
// return success(data);
|
|
9732
|
+
// };
|
|
9778
9733
|
ngOnInit() {
|
|
9779
9734
|
this.locale = this._config.locale;
|
|
9780
9735
|
combineLatest([this._svc.columns, this._svc.hiddenColumns])
|
|
@@ -9796,10 +9751,14 @@ class TableBodyComponent {
|
|
|
9796
9751
|
this._cdr.markForCheck();
|
|
9797
9752
|
});
|
|
9798
9753
|
this._svc.scrollIndex
|
|
9799
|
-
.pipe(takeWhile((
|
|
9800
|
-
.subscribe((
|
|
9754
|
+
.pipe(takeWhile(() => this._alive))
|
|
9755
|
+
.subscribe((index) => __awaiter(this, void 0, void 0, function* () {
|
|
9801
9756
|
if (this.viewport) {
|
|
9802
|
-
this.viewport.scrollToIndex(
|
|
9757
|
+
this.viewport.scrollToIndex(index, 'auto');
|
|
9758
|
+
}
|
|
9759
|
+
else {
|
|
9760
|
+
const row = this._elementRef.nativeElement.querySelector(`.table-row[data-row="${index}"]`);
|
|
9761
|
+
row === null || row === void 0 ? void 0 : row.scrollIntoView();
|
|
9803
9762
|
}
|
|
9804
9763
|
this._cdr.markForCheck();
|
|
9805
9764
|
}));
|
|
@@ -9843,8 +9802,8 @@ class TableBodyComponent {
|
|
|
9843
9802
|
return '';
|
|
9844
9803
|
}
|
|
9845
9804
|
trackRow(index, row) {
|
|
9846
|
-
if (row
|
|
9847
|
-
return row
|
|
9805
|
+
if (row['id']) {
|
|
9806
|
+
return row['id'];
|
|
9848
9807
|
}
|
|
9849
9808
|
return index;
|
|
9850
9809
|
}
|
|
@@ -9854,29 +9813,29 @@ class TableBodyComponent {
|
|
|
9854
9813
|
getSum(columnName) {
|
|
9855
9814
|
var _a;
|
|
9856
9815
|
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => {
|
|
9857
|
-
const val = parseFloat(current
|
|
9816
|
+
const val = parseFloat(current[columnName]);
|
|
9858
9817
|
return accum + (isNaN(val) ? 0 : val);
|
|
9859
9818
|
}, 0);
|
|
9860
9819
|
}
|
|
9861
9820
|
getMin(columnName) {
|
|
9862
9821
|
var _a;
|
|
9863
|
-
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum <= current
|
|
9822
|
+
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum <= current[columnName]
|
|
9864
9823
|
? accum
|
|
9865
|
-
: current
|
|
9824
|
+
: current[columnName], null);
|
|
9866
9825
|
}
|
|
9867
9826
|
getMax(columnName) {
|
|
9868
9827
|
var _a;
|
|
9869
|
-
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum >= current
|
|
9828
|
+
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum >= current[columnName]
|
|
9870
9829
|
? accum
|
|
9871
|
-
: current
|
|
9830
|
+
: current[columnName], null);
|
|
9872
9831
|
}
|
|
9873
9832
|
}
|
|
9874
|
-
TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableBodyComponent, deps: [{ token: TableService }, { token: TetaConfigService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9875
|
-
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: TableBodyComponent, selector: "teta-table-body", inputs: { virtual: "virtual", activeRow: "activeRow", selectedRows: "selectedRows", additionalComponent: "additionalComponent",
|
|
9833
|
+
TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableBodyComponent, deps: [{ token: TableService }, { token: i0.ElementRef }, { token: TetaConfigService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9834
|
+
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: TableBodyComponent, selector: "teta-table-body", inputs: { virtual: "virtual", activeRow: "activeRow", selectedRows: "selectedRows", additionalComponent: "additionalComponent", aggregate: "aggregate", selectType: "selectType", rowClass: "rowClass" }, host: { properties: { "class.table-body": "this.tableBodyClass" } }, viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], ngImport: i0, template: "<cdk-virtual-scroll-viewport *ngIf=\"virtual\"\n class=\"table-body-container\"\n [itemSize]=\"28\">\n <ng-container *cdkVirtualFor=\"let row of data;templateCacheSize: 0; let rowIndex = index; trackBy: trackRow;\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: {row: row, rowIndex: rowIndex}\"></ng-container>\n </ng-container>\n</cdk-virtual-scroll-viewport>\n<div *ngIf=\"!virtual\"\n class=\"table-body-container\">\n <ng-container *ngFor=\"let row of data; let rowIndex = index; trackBy: trackRow;\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: {row: row, rowIndex: rowIndex}\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"aggregate\">\n <ng-container *ngTemplateOutlet=\"aggTemplate;\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #bodyTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <div class=\"table-row\"\n (click)=\"setActiveRow(row)\"\n (contextmenu)=\"setActiveRow(row)\"\n [attr.data-row]=\"rowIndex\"\n [class.table-row_odd]=\"rowIndex % 2 === 1\"\n [ngClass]=\"rowClass ? rowClass(row, rowIndex) : ''\"\n [class.table-row_selected]=\"selectedRows && selectedRows.indexOf(row) >= 0\"\n [style.flex-grow]=\"totalFlex\"\n [style.flex-basis.px]=\"totalWidth\"\n [style.min-width.px]=\"totalWidth\">\n <div class=\"table-row_locked\"\n *ngIf=\"locked.length > 0\"\n [style.flex-grow]=\"lockedFlex\"\n [style.flex-basis.px]=\"lockedWidth\"\n [style.min-width.px]=\"lockedWidth\"\n [style.zIndex]=\"row === activeRow ? 1 : 'unset'\">\n <teta-selection-cell *ngIf=\"selectType === selectTypeEnum.checkBox && locked.length\"\n [row]=\"row\"\n style=\"width: 28px;\"></teta-selection-cell>\n <teta-cell\n *ngFor=\"let column of locked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-row]=\"rowIndex\"\n [attr.data-column]=\"column.name\"\n [column]=\"column\"\n [filterOptions]=\"dict?dict[column.name]:[]\"\n [dict]=\"dict\"\n [row]=\"row\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\"\n ></teta-cell>\n </div>\n <teta-selection-cell *ngIf=\"selectType === selectTypeEnum.checkBox && locked.length < 1\"\n [row]=\"row\"\n style=\"width: 28px;\"></teta-selection-cell>\n <teta-cell\n *ngFor=\"let column of unlocked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-row]=\"rowIndex\"\n [attr.data-column]=\"column.name\"\n [column]=\"column\"\n [filterOptions]=\"dict?dict[column.name]:[]\"\n [dict]=\"dict\"\n [row]=\"row\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\"\n ></teta-cell>\n </div>\n</ng-template>\n\n<ng-template #aggTemplate>\n <ng-container *ngIf=\"locale | async as loc\">\n <div class=\"table-row\"\n *ngIf=\"aggregate\"\n [class.table-row_virtual]=\"virtual\"\n [style.flex-grow]=\"virtual ? totalFlex : ''\"\n [style.flex-basis.px]=\"virtual ? totalWidth : ''\"\n [style.min-width.px]=\"virtual ? totalWidth : ''\">\n <div class=\"table-row_locked\"\n *ngIf=\"locked.length > 0\"\n [style.flex-grow]=\"lockedFlex\"\n [style.flex-basis.px]=\"lockedWidth\"\n [style.min-width.px]=\"lockedWidth\">\n <div class=\"cell align-center justify-content-center\"\n style=\"width: 28px;\">\n <teta-icon [name]=\"'sumColor'\"></teta-icon>\n </div>\n <div class=\"cell cell-component justify-content-end\"\n *ngFor=\"let column of locked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-column]=\"column.name\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\">\n <span class=\"cell-text cell-text_numeric font-title-3\">\n {{loc[getAggregateText(column)]}}:\n {{getAggregateValue(column) | tetaNumber : 2}}\n </span>\n </div>\n </div>\n <div class=\"cell align-center justify-content-center\"\n style=\"width: 28px;\"\n *ngIf=\"selectType === selectTypeEnum.checkBox && locked.length < 1\">\n <teta-icon [name]=\"'sumColor'\"></teta-icon>\n </div>\n <div class=\"cell cell-component justify-content-end\"\n *ngFor=\"let column of unlocked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-column]=\"column.name\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\">\n <span class=\"cell-text cell-text_numeric font-title-3\">\n {{loc[getAggregateText(column)]}}:\n {{getAggregateValue(column) | tetaNumber : 2}}\n </span>\n </div>\n </div>\n </ng-container>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "teta-icon", inputs: ["name", "size", "palette", "class"] }, { 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: CellComponent, selector: "teta-cell", inputs: ["column", "filterOptions", "dict", "row"] }, { kind: "component", type: SelectionCellComponent, selector: "teta-selection-cell", inputs: ["row"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: NumberPipe, name: "tetaNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9876
9835
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
9877
9836
|
type: Component,
|
|
9878
|
-
args: [{ selector: 'teta-table-body', changeDetection: ChangeDetectionStrategy.OnPush, template: "<cdk-virtual-scroll-viewport *ngIf=\"virtual\"\n class=\"table-body-container\"\n [itemSize]=\"28\">\n <ng-container *cdkVirtualFor=\"let row of data;templateCacheSize: 0; let rowIndex = index; trackBy: trackRow;\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: {row: row, rowIndex: rowIndex}\"></ng-container>\n </ng-container>\n</cdk-virtual-scroll-viewport>\n<div *ngIf=\"!virtual\"\n class=\"table-body-container\">\n <ng-container *ngFor=\"let row of data; let rowIndex = index; trackBy: trackRow;\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: {row: row, rowIndex: rowIndex}\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"aggregate\">\n <ng-container *ngTemplateOutlet=\"aggTemplate;\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #bodyTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <div class=\"table-row\"\n (click)=\"setActiveRow(row)\"\n (contextmenu)=\"setActiveRow(row)\"\n [attr.data-row]=\"rowIndex\"\n [class.table-row_odd]=\"rowIndex % 2 === 1\"\n [ngClass]=\"rowClass ? rowClass(row, rowIndex) : ''\"\n [class.table-row_selected]=\"selectedRows && selectedRows.indexOf(row) >= 0\"\n [style.flex-grow]=\"totalFlex\"\n [style.flex-basis.px]=\"totalWidth\"\n [style.min-width.px]=\"totalWidth\">\n <
|
|
9879
|
-
}], ctorParameters: function () { return [{ type: TableService }, { type: TetaConfigService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { virtual: [{
|
|
9837
|
+
args: [{ selector: 'teta-table-body', changeDetection: ChangeDetectionStrategy.OnPush, template: "<cdk-virtual-scroll-viewport *ngIf=\"virtual\"\n class=\"table-body-container\"\n [itemSize]=\"28\">\n <ng-container *cdkVirtualFor=\"let row of data;templateCacheSize: 0; let rowIndex = index; trackBy: trackRow;\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: {row: row, rowIndex: rowIndex}\"></ng-container>\n </ng-container>\n</cdk-virtual-scroll-viewport>\n<div *ngIf=\"!virtual\"\n class=\"table-body-container\">\n <ng-container *ngFor=\"let row of data; let rowIndex = index; trackBy: trackRow;\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: {row: row, rowIndex: rowIndex}\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"aggregate\">\n <ng-container *ngTemplateOutlet=\"aggTemplate;\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #bodyTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <div class=\"table-row\"\n (click)=\"setActiveRow(row)\"\n (contextmenu)=\"setActiveRow(row)\"\n [attr.data-row]=\"rowIndex\"\n [class.table-row_odd]=\"rowIndex % 2 === 1\"\n [ngClass]=\"rowClass ? rowClass(row, rowIndex) : ''\"\n [class.table-row_selected]=\"selectedRows && selectedRows.indexOf(row) >= 0\"\n [style.flex-grow]=\"totalFlex\"\n [style.flex-basis.px]=\"totalWidth\"\n [style.min-width.px]=\"totalWidth\">\n <div class=\"table-row_locked\"\n *ngIf=\"locked.length > 0\"\n [style.flex-grow]=\"lockedFlex\"\n [style.flex-basis.px]=\"lockedWidth\"\n [style.min-width.px]=\"lockedWidth\"\n [style.zIndex]=\"row === activeRow ? 1 : 'unset'\">\n <teta-selection-cell *ngIf=\"selectType === selectTypeEnum.checkBox && locked.length\"\n [row]=\"row\"\n style=\"width: 28px;\"></teta-selection-cell>\n <teta-cell\n *ngFor=\"let column of locked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-row]=\"rowIndex\"\n [attr.data-column]=\"column.name\"\n [column]=\"column\"\n [filterOptions]=\"dict?dict[column.name]:[]\"\n [dict]=\"dict\"\n [row]=\"row\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\"\n ></teta-cell>\n </div>\n <teta-selection-cell *ngIf=\"selectType === selectTypeEnum.checkBox && locked.length < 1\"\n [row]=\"row\"\n style=\"width: 28px;\"></teta-selection-cell>\n <teta-cell\n *ngFor=\"let column of unlocked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-row]=\"rowIndex\"\n [attr.data-column]=\"column.name\"\n [column]=\"column\"\n [filterOptions]=\"dict?dict[column.name]:[]\"\n [dict]=\"dict\"\n [row]=\"row\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\"\n ></teta-cell>\n </div>\n</ng-template>\n\n<ng-template #aggTemplate>\n <ng-container *ngIf=\"locale | async as loc\">\n <div class=\"table-row\"\n *ngIf=\"aggregate\"\n [class.table-row_virtual]=\"virtual\"\n [style.flex-grow]=\"virtual ? totalFlex : ''\"\n [style.flex-basis.px]=\"virtual ? totalWidth : ''\"\n [style.min-width.px]=\"virtual ? totalWidth : ''\">\n <div class=\"table-row_locked\"\n *ngIf=\"locked.length > 0\"\n [style.flex-grow]=\"lockedFlex\"\n [style.flex-basis.px]=\"lockedWidth\"\n [style.min-width.px]=\"lockedWidth\">\n <div class=\"cell align-center justify-content-center\"\n style=\"width: 28px;\">\n <teta-icon [name]=\"'sumColor'\"></teta-icon>\n </div>\n <div class=\"cell cell-component justify-content-end\"\n *ngFor=\"let column of locked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-column]=\"column.name\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\">\n <span class=\"cell-text cell-text_numeric font-title-3\">\n {{loc[getAggregateText(column)]}}:\n {{getAggregateValue(column) | tetaNumber : 2}}\n </span>\n </div>\n </div>\n <div class=\"cell align-center justify-content-center\"\n style=\"width: 28px;\"\n *ngIf=\"selectType === selectTypeEnum.checkBox && locked.length < 1\">\n <teta-icon [name]=\"'sumColor'\"></teta-icon>\n </div>\n <div class=\"cell cell-component justify-content-end\"\n *ngFor=\"let column of unlocked; let colIndex = index; trackBy: trackColumns;\"\n [attr.data-column]=\"column.name\"\n [ngClass]=\"column.cellClass\"\n [attr.tabindex]=\"0\"\n [style.flex-grow]=\"column.flex\"\n [style.flex-basis.px]=\"column.width\">\n <span class=\"cell-text cell-text_numeric font-title-3\">\n {{loc[getAggregateText(column)]}}:\n {{getAggregateValue(column) | tetaNumber : 2}}\n </span>\n </div>\n </div>\n </ng-container>\n</ng-template>\n" }]
|
|
9838
|
+
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ElementRef }, { type: TetaConfigService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { virtual: [{
|
|
9880
9839
|
type: Input
|
|
9881
9840
|
}], activeRow: [{
|
|
9882
9841
|
type: Input
|
|
@@ -9884,16 +9843,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
9884
9843
|
type: Input
|
|
9885
9844
|
}], additionalComponent: [{
|
|
9886
9845
|
type: Input
|
|
9887
|
-
}], tree: [{
|
|
9888
|
-
type: Input
|
|
9889
9846
|
}], aggregate: [{
|
|
9890
9847
|
type: Input
|
|
9891
|
-
}], grouping: [{
|
|
9892
|
-
type: Input
|
|
9893
|
-
}], groupRowComponent: [{
|
|
9894
|
-
type: Input
|
|
9895
|
-
}], openLevels: [{
|
|
9896
|
-
type: Input
|
|
9897
9848
|
}], selectType: [{
|
|
9898
9849
|
type: Input
|
|
9899
9850
|
}], rowClass: [{
|
|
@@ -9913,8 +9864,12 @@ class TableComponent {
|
|
|
9913
9864
|
this.data = [];
|
|
9914
9865
|
this.columns = [];
|
|
9915
9866
|
this.selectType = SelectType.mouse;
|
|
9916
|
-
this.
|
|
9917
|
-
|
|
9867
|
+
this.trackRow = (index, row) => {
|
|
9868
|
+
if (row['id']) {
|
|
9869
|
+
return row['id'];
|
|
9870
|
+
}
|
|
9871
|
+
return index;
|
|
9872
|
+
};
|
|
9918
9873
|
this.editType = EditType.cell;
|
|
9919
9874
|
this.editEvent = EditEvent.doubleClick;
|
|
9920
9875
|
this.showHeadCellMenu = true;
|
|
@@ -10129,6 +10084,7 @@ class TableComponent {
|
|
|
10129
10084
|
this._bodyElement.removeEventListener('scroll', this.onScroll);
|
|
10130
10085
|
}
|
|
10131
10086
|
ngOnChanges(changes) {
|
|
10087
|
+
var _a;
|
|
10132
10088
|
if (changes.hasOwnProperty('editType')) {
|
|
10133
10089
|
this._svc.editType = this.editType;
|
|
10134
10090
|
}
|
|
@@ -10151,7 +10107,10 @@ class TableComponent {
|
|
|
10151
10107
|
}
|
|
10152
10108
|
if (changes.hasOwnProperty('data')) {
|
|
10153
10109
|
this._svc.setData(this.data);
|
|
10154
|
-
this._svc.selectRows(
|
|
10110
|
+
this._svc.selectRows((_a = this.data) === null || _a === void 0 ? void 0 : _a.filter((row) => {
|
|
10111
|
+
var _a;
|
|
10112
|
+
return (_a = this.selectedRows) === null || _a === void 0 ? void 0 : _a.some((selectedRow) => this.trackRow(this._svc.getRowIndex(selectedRow), selectedRow) === this.trackRow(this._svc.getRowIndex(row), row));
|
|
10113
|
+
}));
|
|
10155
10114
|
}
|
|
10156
10115
|
if (changes.hasOwnProperty('dict')) {
|
|
10157
10116
|
this._svc.setDict(this.dict);
|
|
@@ -10197,6 +10156,9 @@ class TableComponent {
|
|
|
10197
10156
|
return row && this._elementRef.nativeElement.contains(row);
|
|
10198
10157
|
}
|
|
10199
10158
|
getCoordinates(event) {
|
|
10159
|
+
if (event.composedPath().indexOf(this._elementRef.nativeElement) < 0) {
|
|
10160
|
+
return null;
|
|
10161
|
+
}
|
|
10200
10162
|
const cell = this.getEventCell(event);
|
|
10201
10163
|
if (cell) {
|
|
10202
10164
|
const rowIndex = parseInt(cell.getAttribute('data-row'), 10);
|
|
@@ -10212,6 +10174,9 @@ class TableComponent {
|
|
|
10212
10174
|
return null;
|
|
10213
10175
|
}
|
|
10214
10176
|
getRow(event) {
|
|
10177
|
+
if (event.composedPath().indexOf(this._elementRef.nativeElement) < 0) {
|
|
10178
|
+
return null;
|
|
10179
|
+
}
|
|
10215
10180
|
const rowElement = this.getEventRow(event);
|
|
10216
10181
|
if (rowElement) {
|
|
10217
10182
|
const rowIndex = parseInt(rowElement.getAttribute('data-row'), 10);
|
|
@@ -10223,10 +10188,10 @@ class TableComponent {
|
|
|
10223
10188
|
}
|
|
10224
10189
|
}
|
|
10225
10190
|
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableComponent, deps: [{ token: TableService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10226
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: TableComponent, selector: "teta-table", inputs: { data: "data", columns: "columns", dict: "dict", filterOptions: "filterOptions", state: "state", cookieName: "cookieName", virtual: "virtual", detailComponent: "detailComponent", activeRow: "activeRow", selectedRows: "selectedRows", selectType: "selectType", aggregate: "aggregate",
|
|
10191
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: TableComponent, selector: "teta-table", inputs: { 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" }, outputs: { 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" }, host: { listeners: { "document:click": "handleClickOutsideAnyRow($event)", "focusin": "focusIn($event)", "dblclick": "dblclick($event)", "keydown": "keydown($event)", "mousedown": "mousedown($event)" }, properties: { "class.table": "this.tableClass" } }, providers: [TableService], viewQueries: [{ propertyName: "menu", first: true, predicate: ["contextMenu"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"column column_auto\">\n <teta-table-head\n [selectType]=\"selectType\"\n [showHeadCellMenu]=\"showHeadCellMenu\"></teta-table-head>\n <div class=\"column column_auto position-relative\">\n <teta-table-body\n [tetaContextMenu]=\"contextMenu\"\n [open]=\"contextMenuOpen\"\n (openChange)=\"setContextMenuOpen($event)\"\n [aggregate]=\"aggregate\"\n [virtual]=\"virtual\"\n [activeRow]=\"activeRow\"\n [selectedRows]=\"selectedRowsList\"\n [additionalComponent]=\"detailComponent\"\n [selectType]=\"selectType\"\n [rowClass]=\"rowClass\"></teta-table-body>\n <div class=\"column column_auto\"\n style=\"position: absolute; top:0; bottom:0;left:0;right:0;\"\n *ngIf=\"!data?.length\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ContextMenuDirective, selector: "[tetaContextMenu]", inputs: ["tetaContextMenu", "autoCloseIgnore"] }, { kind: "component", type: TableHeadComponent, selector: "teta-table-head", inputs: ["selectType", "showHeadCellMenu"] }, { kind: "component", type: TableBodyComponent, selector: "teta-table-body", inputs: ["virtual", "activeRow", "selectedRows", "additionalComponent", "aggregate", "selectType", "rowClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10227
10192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableComponent, decorators: [{
|
|
10228
10193
|
type: Component,
|
|
10229
|
-
args: [{ selector: 'teta-table', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TableService], template: "<div class=\"column column_auto\">\n <teta-table-head\n [selectType]=\"selectType\"\n [showHeadCellMenu]=\"showHeadCellMenu\"></teta-table-head>\n <div class=\"column column_auto position-relative\">\n <teta-table-body\n [tetaContextMenu]=\"contextMenu\"\n [open]=\"contextMenuOpen\"\n (openChange)=\"setContextMenuOpen($event)\"\n [aggregate]=\"aggregate\"\n [virtual]=\"virtual\"\n [activeRow]=\"activeRow\"\n [selectedRows]=\"selectedRowsList\"\n [additionalComponent]=\"detailComponent\"\n [
|
|
10194
|
+
args: [{ selector: 'teta-table', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TableService], template: "<div class=\"column column_auto\">\n <teta-table-head\n [selectType]=\"selectType\"\n [showHeadCellMenu]=\"showHeadCellMenu\"></teta-table-head>\n <div class=\"column column_auto position-relative\">\n <teta-table-body\n [tetaContextMenu]=\"contextMenu\"\n [open]=\"contextMenuOpen\"\n (openChange)=\"setContextMenuOpen($event)\"\n [aggregate]=\"aggregate\"\n [virtual]=\"virtual\"\n [activeRow]=\"activeRow\"\n [selectedRows]=\"selectedRowsList\"\n [additionalComponent]=\"detailComponent\"\n [selectType]=\"selectType\"\n [rowClass]=\"rowClass\"></teta-table-body>\n <div class=\"column column_auto\"\n style=\"position: absolute; top:0; bottom:0;left:0;right:0;\"\n *ngIf=\"!data?.length\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n" }]
|
|
10230
10195
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ElementRef }]; }, propDecorators: { data: [{
|
|
10231
10196
|
type: Input
|
|
10232
10197
|
}], columns: [{
|
|
@@ -10251,14 +10216,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
10251
10216
|
type: Input
|
|
10252
10217
|
}], aggregate: [{
|
|
10253
10218
|
type: Input
|
|
10254
|
-
}], grouping: [{
|
|
10255
|
-
type: Input
|
|
10256
|
-
}], groupRowComponent: [{
|
|
10257
|
-
type: Input
|
|
10258
|
-
}], openLevels: [{
|
|
10259
|
-
type: Input
|
|
10260
|
-
}], tree: [{
|
|
10261
|
-
type: Input
|
|
10262
10219
|
}], trackRow: [{
|
|
10263
10220
|
type: Input
|
|
10264
10221
|
}], editType: [{
|
|
@@ -10408,7 +10365,7 @@ class DateTimeCellComponent extends CellComponentBase {
|
|
|
10408
10365
|
super.ngOnInit();
|
|
10409
10366
|
}
|
|
10410
10367
|
setValue(value) {
|
|
10411
|
-
this.row
|
|
10368
|
+
this.row[this.column.name] = value;
|
|
10412
10369
|
this.valueChanged();
|
|
10413
10370
|
}
|
|
10414
10371
|
startEdit(initiator, type) {
|
|
@@ -10425,10 +10382,10 @@ class DateTimeCellComponent extends CellComponentBase {
|
|
|
10425
10382
|
}
|
|
10426
10383
|
}
|
|
10427
10384
|
DateTimeCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DateTimeCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10428
|
-
DateTimeCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DateTimeCellComponent, selector: "teta-date-time-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 [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
10385
|
+
DateTimeCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DateTimeCellComponent, selector: "teta-date-time-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 [class.cell-text_disabled]=\"!editable\">\n {{row[column.name] | date : 'dd.MM.yyyy HH:mm:ss'}}\n</span>\n<teta-date-picker class=\"datepicker-table\" #input\n *ngIf=\"edit\"\n [appendToBody]=\"true\"\n [showTime]=\"true\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"setValue($event)\"\n></teta-date-picker>\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: DatePickerComponent, selector: "teta-date-picker", inputs: ["disabled", "invalid", "firstDayOfWeek", "disabledDates", "disabledPeriods", "disabledDays", "minDate", "maxDate", "minYearDate", "maxYearDate", "align", "verticalAlign", "appendToBody", "allowNull", "backdrop", "showTime", "format"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10429
10386
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DateTimeCellComponent, decorators: [{
|
|
10430
10387
|
type: Component,
|
|
10431
|
-
args: [{ selector: 'teta-date-time-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row
|
|
10388
|
+
args: [{ selector: 'teta-date-time-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name] | date : 'dd.MM.yyyy HH:mm:ss'}}\n</span>\n<teta-date-picker class=\"datepicker-table\" #input\n *ngIf=\"edit\"\n [appendToBody]=\"true\"\n [showTime]=\"true\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"setValue($event)\"\n></teta-date-picker>\n" }]
|
|
10432
10389
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
10433
10390
|
type: Input
|
|
10434
10391
|
}], row: [{
|
|
@@ -10484,7 +10441,6 @@ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
10484
10441
|
TableBodyComponent,
|
|
10485
10442
|
CellComponent,
|
|
10486
10443
|
CellHostComponent,
|
|
10487
|
-
GroupRowComponent,
|
|
10488
10444
|
TableHeadGroupComponent,
|
|
10489
10445
|
HeadCellComponent,
|
|
10490
10446
|
DefaultHeadCellComponent,
|
|
@@ -10523,7 +10479,6 @@ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
10523
10479
|
TableBodyComponent,
|
|
10524
10480
|
CellComponent,
|
|
10525
10481
|
CellHostComponent,
|
|
10526
|
-
GroupRowComponent,
|
|
10527
10482
|
DateTimeCellComponent,
|
|
10528
10483
|
BooleanCellComponent] });
|
|
10529
10484
|
TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableModule, imports: [CommonModule,
|
|
@@ -10559,7 +10514,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
10559
10514
|
TableBodyComponent,
|
|
10560
10515
|
CellComponent,
|
|
10561
10516
|
CellHostComponent,
|
|
10562
|
-
GroupRowComponent,
|
|
10563
10517
|
TableHeadGroupComponent,
|
|
10564
10518
|
HeadCellComponent,
|
|
10565
10519
|
DefaultHeadCellComponent,
|
|
@@ -10583,7 +10537,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
10583
10537
|
TableBodyComponent,
|
|
10584
10538
|
CellComponent,
|
|
10585
10539
|
CellHostComponent,
|
|
10586
|
-
GroupRowComponent,
|
|
10587
10540
|
DateTimeCellComponent,
|
|
10588
10541
|
BooleanCellComponent,
|
|
10589
10542
|
],
|
|
@@ -12062,7 +12015,7 @@ class ScrollIntoViewDirective {
|
|
|
12062
12015
|
if (coerceBooleanProperty(this.tetaScrollIntoView)) {
|
|
12063
12016
|
this.elementRef.nativeElement.scrollIntoView({
|
|
12064
12017
|
behavior: 'smooth',
|
|
12065
|
-
block: '
|
|
12018
|
+
block: 'start'
|
|
12066
12019
|
});
|
|
12067
12020
|
}
|
|
12068
12021
|
}
|
|
@@ -12226,5 +12179,5 @@ function tetaZoneOptimized(ngZone) {
|
|
|
12226
12179
|
* Generated bundle index. Do not edit.
|
|
12227
12180
|
*/
|
|
12228
12181
|
|
|
12229
|
-
export { AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AccordionModule, AggregationType, Align, ArrayUtil, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, ButtonModule, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dModule, Chart3dOptions, CheckboxComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, ClickService, 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, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExpandPanelModule, FileItemComponent, FileUploadAreaComponent, FileUploadModule, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterModule, FilterState, FilterType, FormGroupTitleComponent, FormsUtil,
|
|
12182
|
+
export { AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AccordionModule, AggregationType, Align, ArrayUtil, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, ButtonModule, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dModule, Chart3dOptions, CheckboxComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, ClickService, 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, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExpandPanelModule, FileItemComponent, FileUploadAreaComponent, FileUploadModule, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterModule, FilterState, FilterType, FormGroupTitleComponent, FormsUtil, HeadCellComponentBase, HeadCellHostComponent, HighlightDirective, HighlightModule, HintDirective, HintModule, IconComponent, 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, TetaSize, TetaTemplateDirective, TetaTemplateModule, TextFieldComponent, ThemeSwitchComponent, ThemeSwitchModule, ThemeSwitchService, ToggleComponent, ToggleModule, ToolbarComponent, ToolbarModule, TooltipDirective, TooltipModule, TreeComponent, TreeItemToggleComponent, TreeModule, TreeService, VerticalAlign, enLocale, formatNumber, getCellComponent, getPrecision, prependZero, ruLocale, tetaZoneFree, tetaZoneFull, tetaZoneOptimized };
|
|
12230
12183
|
//# sourceMappingURL=tetacom-ng-components.mjs.map
|