@tetacom/ng-components 1.0.42 → 1.0.45
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/common/util/array-util.d.ts +1 -1
- 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/resize-panel/resize-panel/resize-panel.component.d.ts +2 -1
- 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 +7 -4
- 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/resize-panel/resize-panel/resize-panel.component.mjs +7 -4
- 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 +5 -12
- 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/drag-drop/drag.directive.mjs +2 -2
- package/esm2020/directive/scroll-into-view/scroll-into-view.directive.mjs +2 -2
- package/fesm2015/tetacom-ng-components.mjs +129 -169
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +122 -166
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/resize-panel.scss +2 -4
- 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';
|
|
@@ -3057,7 +3056,7 @@ class ArrayUtil {
|
|
|
3057
3056
|
}
|
|
3058
3057
|
return null;
|
|
3059
3058
|
}
|
|
3060
|
-
static filterRecursive(array, filter, children = 'children', keepChildren = true) {
|
|
3059
|
+
static filterRecursive(array, filter, children = 'children', keepChildren = true, fullscanChildren = false) {
|
|
3061
3060
|
const result = [];
|
|
3062
3061
|
if (array && array.length) {
|
|
3063
3062
|
for (const item of array) {
|
|
@@ -3066,12 +3065,15 @@ class ArrayUtil {
|
|
|
3066
3065
|
result.push(resultItem);
|
|
3067
3066
|
if (!keepChildren) {
|
|
3068
3067
|
resultItem[children] = [];
|
|
3068
|
+
if (fullscanChildren) {
|
|
3069
|
+
continue;
|
|
3070
|
+
}
|
|
3069
3071
|
break;
|
|
3070
3072
|
}
|
|
3071
3073
|
}
|
|
3072
3074
|
else if (item[children] && item[children].length > 0) {
|
|
3073
3075
|
resultItem[children] = [];
|
|
3074
|
-
const found = ArrayUtil.filterRecursive(item[children], filter, children, keepChildren);
|
|
3076
|
+
const found = ArrayUtil.filterRecursive(item[children], filter, children, keepChildren, fullscanChildren);
|
|
3075
3077
|
if ((found === null || found === void 0 ? void 0 : found.length) > 0) {
|
|
3076
3078
|
resultItem[children] = found;
|
|
3077
3079
|
result.push(resultItem);
|
|
@@ -3094,7 +3096,7 @@ class ArrayUtil {
|
|
|
3094
3096
|
return result;
|
|
3095
3097
|
}
|
|
3096
3098
|
static findParents(tree, item) {
|
|
3097
|
-
if (tree.indexOf(item) >= 0) {
|
|
3099
|
+
if ((tree === null || tree === void 0 ? void 0 : tree.indexOf(item)) >= 0) {
|
|
3098
3100
|
return tree;
|
|
3099
3101
|
}
|
|
3100
3102
|
if (Array.isArray(tree)) {
|
|
@@ -4670,6 +4672,7 @@ class SelectComponent {
|
|
|
4670
4672
|
ngOnInit() {
|
|
4671
4673
|
}
|
|
4672
4674
|
writeValue(value) {
|
|
4675
|
+
var _a;
|
|
4673
4676
|
if (this.multiple) {
|
|
4674
4677
|
this.value =
|
|
4675
4678
|
value && this.options
|
|
@@ -4679,7 +4682,7 @@ class SelectComponent {
|
|
|
4679
4682
|
else {
|
|
4680
4683
|
this.value =
|
|
4681
4684
|
this.options &&
|
|
4682
|
-
this.options.find((option) => this.getValue(option) === value);
|
|
4685
|
+
((_a = this.options) === null || _a === void 0 ? void 0 : _a.find((option) => this.getValue(option) === value));
|
|
4683
4686
|
}
|
|
4684
4687
|
this._cdr.detectChanges();
|
|
4685
4688
|
}
|
|
@@ -6951,66 +6954,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
6951
6954
|
}]
|
|
6952
6955
|
}] });
|
|
6953
6956
|
|
|
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
6957
|
class TableColumn extends FilterItem {
|
|
6994
6958
|
/**
|
|
6995
6959
|
* Инициализация из анонимного объекта
|
|
6996
6960
|
*/
|
|
6997
6961
|
constructor(options) {
|
|
6998
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
6962
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6999
6963
|
super(options);
|
|
7000
6964
|
/**
|
|
7001
6965
|
* Ширина
|
|
7002
6966
|
*/
|
|
7003
|
-
this.width =
|
|
6967
|
+
this.width = 80;
|
|
7004
6968
|
/**
|
|
7005
6969
|
* Коэффициент растяжения ячейки
|
|
7006
6970
|
*/
|
|
7007
|
-
this.flex =
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
*/
|
|
7011
|
-
this.groupingOrder = 0;
|
|
7012
|
-
this.width = (_a = options === null || options === void 0 ? void 0 : options.width) !== null && _a !== void 0 ? _a : 150;
|
|
7013
|
-
this.flex = (_b = options === null || options === void 0 ? void 0 : options.flex) !== null && _b !== void 0 ? _b : 0;
|
|
6971
|
+
this.flex = 1;
|
|
6972
|
+
this.width = (_a = options === null || options === void 0 ? void 0 : options.width) !== null && _a !== void 0 ? _a : 80;
|
|
6973
|
+
this.flex = (_b = options === null || options === void 0 ? void 0 : options.flex) !== null && _b !== void 0 ? _b : 1;
|
|
7014
6974
|
this.headCellClass = (_c = options === null || options === void 0 ? void 0 : options.headCellClass) !== null && _c !== void 0 ? _c : [];
|
|
7015
6975
|
this.cellClass = (_d = options === null || options === void 0 ? void 0 : options.cellClass) !== null && _d !== void 0 ? _d : [];
|
|
7016
6976
|
this.locked = (_e = options === null || options === void 0 ? void 0 : options.locked) !== null && _e !== void 0 ? _e : false;
|
|
@@ -7020,9 +6980,6 @@ class TableColumn extends FilterItem {
|
|
|
7020
6980
|
this.unitId = options === null || options === void 0 ? void 0 : options.unitId;
|
|
7021
6981
|
this.data = options === null || options === void 0 ? void 0 : options.data;
|
|
7022
6982
|
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
6983
|
this.headCellComponent = options === null || options === void 0 ? void 0 : options.headCellComponent;
|
|
7027
6984
|
this.headDropdownConfig = options === null || options === void 0 ? void 0 : options.headDropdownConfig;
|
|
7028
6985
|
this.cellComponent = options === null || options === void 0 ? void 0 : options.cellComponent;
|
|
@@ -7031,7 +6988,7 @@ class TableColumn extends FilterItem {
|
|
|
7031
6988
|
this.maxValue = options === null || options === void 0 ? void 0 : options.maxValue;
|
|
7032
6989
|
this.minValue = options === null || options === void 0 ? void 0 : options.minValue;
|
|
7033
6990
|
this.required = options === null || options === void 0 ? void 0 : options.required;
|
|
7034
|
-
this.columns = (
|
|
6991
|
+
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
6992
|
}
|
|
7036
6993
|
}
|
|
7037
6994
|
|
|
@@ -7236,7 +7193,12 @@ class TableService {
|
|
|
7236
7193
|
this.selectType = SelectType.mouse;
|
|
7237
7194
|
this.editType = EditType.cell;
|
|
7238
7195
|
this.editEvent = EditEvent.doubleClick;
|
|
7239
|
-
this.trackRow = (index, row) =>
|
|
7196
|
+
this.trackRow = (index, row) => {
|
|
7197
|
+
if (row['id']) {
|
|
7198
|
+
return row['id'];
|
|
7199
|
+
}
|
|
7200
|
+
return index;
|
|
7201
|
+
};
|
|
7240
7202
|
this.initialColumns = [];
|
|
7241
7203
|
this.displayColumns = [];
|
|
7242
7204
|
this._columns = new BehaviorSubject([]);
|
|
@@ -7253,7 +7215,6 @@ class TableService {
|
|
|
7253
7215
|
this._valueSet = new Subject();
|
|
7254
7216
|
this._stateChanged = new Subject();
|
|
7255
7217
|
this._filterClear = new Subject();
|
|
7256
|
-
this._groupToggle = new Subject();
|
|
7257
7218
|
this._selectedRows = new BehaviorSubject([]);
|
|
7258
7219
|
this._activeRow = new BehaviorSubject(null);
|
|
7259
7220
|
this._scrollIndex = new Subject();
|
|
@@ -7270,7 +7231,6 @@ class TableService {
|
|
|
7270
7231
|
this.valueSet = this._valueSet.asObservable();
|
|
7271
7232
|
this.stateChanged = this._stateChanged.asObservable();
|
|
7272
7233
|
this.filterClear = this._filterClear.asObservable();
|
|
7273
|
-
this.groupToggle = this._groupToggle.asObservable();
|
|
7274
7234
|
this.selectedRows = this._selectedRows.asObservable();
|
|
7275
7235
|
this.activeRow = this._activeRow.asObservable();
|
|
7276
7236
|
this.hiddenColumns = this._hiddenColumns.asObservable();
|
|
@@ -7283,7 +7243,7 @@ class TableService {
|
|
|
7283
7243
|
return this._currentEditCell;
|
|
7284
7244
|
}
|
|
7285
7245
|
setData(data) {
|
|
7286
|
-
this._displayData.next(data
|
|
7246
|
+
this._displayData.next(data ? [...data] : []);
|
|
7287
7247
|
}
|
|
7288
7248
|
setDict(dict) {
|
|
7289
7249
|
this._dict.next(dict);
|
|
@@ -7297,10 +7257,9 @@ class TableService {
|
|
|
7297
7257
|
'editable',
|
|
7298
7258
|
'cellComponent',
|
|
7299
7259
|
'headCellComponent',
|
|
7300
|
-
'headDropdownConfig'
|
|
7301
|
-
'groupByFn',
|
|
7260
|
+
'headDropdownConfig'
|
|
7302
7261
|
];
|
|
7303
|
-
this.initialColumnsHash =
|
|
7262
|
+
this.initialColumnsHash = objectHash(this.initialColumns, {
|
|
7304
7263
|
algorithm: 'sha1',
|
|
7305
7264
|
ignoreUnknown: true,
|
|
7306
7265
|
excludeKeys: (key) => {
|
|
@@ -7632,9 +7591,6 @@ class TableService {
|
|
|
7632
7591
|
columnIsHidden(column) {
|
|
7633
7592
|
return this._hiddenColumns.value.indexOf(column.name) >= 0;
|
|
7634
7593
|
}
|
|
7635
|
-
toggleGroup(row) {
|
|
7636
|
-
this._groupToggle.next(row);
|
|
7637
|
-
}
|
|
7638
7594
|
changeValue(coordinates) {
|
|
7639
7595
|
this._valueChanged.next(coordinates);
|
|
7640
7596
|
}
|
|
@@ -7653,7 +7609,8 @@ class TableService {
|
|
|
7653
7609
|
this._valueSet.next(value);
|
|
7654
7610
|
}
|
|
7655
7611
|
getRowByIndex(rowIndex) {
|
|
7656
|
-
|
|
7612
|
+
var _a;
|
|
7613
|
+
return (_a = this._displayData) === null || _a === void 0 ? void 0 : _a.value[rowIndex];
|
|
7657
7614
|
}
|
|
7658
7615
|
getRowIndex(row) {
|
|
7659
7616
|
return this._displayData.value.indexOf(row);
|
|
@@ -7829,26 +7786,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
7829
7786
|
}]
|
|
7830
7787
|
}], ctorParameters: function () { return []; } });
|
|
7831
7788
|
|
|
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
7789
|
class ClickService {
|
|
7853
7790
|
constructor(_document) {
|
|
7854
7791
|
this._document = _document;
|
|
@@ -8216,6 +8153,13 @@ class DefaultHeadCellComponent extends HeadCellComponentBase {
|
|
|
8216
8153
|
get column() {
|
|
8217
8154
|
return this._column;
|
|
8218
8155
|
}
|
|
8156
|
+
set columns(val) {
|
|
8157
|
+
this._columns = val;
|
|
8158
|
+
this._cdr.detectChanges();
|
|
8159
|
+
}
|
|
8160
|
+
get columns() {
|
|
8161
|
+
return this._columns;
|
|
8162
|
+
}
|
|
8219
8163
|
set data(data) {
|
|
8220
8164
|
this._data = data;
|
|
8221
8165
|
this._cdr.detectChanges();
|
|
@@ -8227,12 +8171,14 @@ class DefaultHeadCellComponent extends HeadCellComponentBase {
|
|
|
8227
8171
|
}
|
|
8228
8172
|
}
|
|
8229
8173
|
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 });
|
|
8174
|
+
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
8175
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultHeadCellComponent, decorators: [{
|
|
8232
8176
|
type: Component,
|
|
8233
8177
|
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
8178
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
8235
8179
|
type: Input
|
|
8180
|
+
}], columns: [{
|
|
8181
|
+
type: Input
|
|
8236
8182
|
}], data: [{
|
|
8237
8183
|
type: Input
|
|
8238
8184
|
}] } });
|
|
@@ -8250,6 +8196,15 @@ class HeadCellHostComponent {
|
|
|
8250
8196
|
get column() {
|
|
8251
8197
|
return this._column;
|
|
8252
8198
|
}
|
|
8199
|
+
set columns(columns) {
|
|
8200
|
+
this._columns = columns;
|
|
8201
|
+
if (this.init) {
|
|
8202
|
+
this.componentRef.instance.columns = this._columns;
|
|
8203
|
+
}
|
|
8204
|
+
}
|
|
8205
|
+
get columns() {
|
|
8206
|
+
return this._columns;
|
|
8207
|
+
}
|
|
8253
8208
|
set data(data) {
|
|
8254
8209
|
this._data = data;
|
|
8255
8210
|
if (this.init) {
|
|
@@ -8266,17 +8221,20 @@ class HeadCellHostComponent {
|
|
|
8266
8221
|
this.componentRef =
|
|
8267
8222
|
this.viewContainerRef.createComponent(this.column.headCellComponent);
|
|
8268
8223
|
this.componentRef.instance.column = this.column;
|
|
8224
|
+
this.componentRef.instance.columns = this.columns;
|
|
8269
8225
|
this.componentRef.instance.data = this.data;
|
|
8270
8226
|
this.init = true;
|
|
8271
8227
|
}
|
|
8272
8228
|
}
|
|
8273
8229
|
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 });
|
|
8230
|
+
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
8231
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HeadCellHostComponent, decorators: [{
|
|
8276
8232
|
type: Component,
|
|
8277
8233
|
args: [{ selector: 'teta-head-cell-host', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}\n"] }]
|
|
8278
8234
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { column: [{
|
|
8279
8235
|
type: Input
|
|
8236
|
+
}], columns: [{
|
|
8237
|
+
type: Input
|
|
8280
8238
|
}], data: [{
|
|
8281
8239
|
type: Input
|
|
8282
8240
|
}] } });
|
|
@@ -9041,10 +8999,10 @@ class HeadCellComponent {
|
|
|
9041
8999
|
}
|
|
9042
9000
|
}
|
|
9043
9001
|
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 });
|
|
9002
|
+
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
9003
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HeadCellComponent, decorators: [{
|
|
9046
9004
|
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"] }]
|
|
9005
|
+
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
9006
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ApplicationRef }, { type: i0.ElementRef }]; }, propDecorators: { column: [{
|
|
9049
9007
|
type: Input
|
|
9050
9008
|
}], showHeadCellMenu: [{
|
|
@@ -9325,7 +9283,7 @@ class CellComponentBase {
|
|
|
9325
9283
|
.pipe(takeWhile((_) => this._alive))
|
|
9326
9284
|
.subscribe((cellValue) => {
|
|
9327
9285
|
if (this.index === cellValue.row && this.column.name === cellValue.column) {
|
|
9328
|
-
this.row
|
|
9286
|
+
this.row[this.column.name] = cellValue.value;
|
|
9329
9287
|
this.cdr.detectChanges();
|
|
9330
9288
|
}
|
|
9331
9289
|
});
|
|
@@ -9391,10 +9349,10 @@ class NumericCellComponent extends CellComponentBase {
|
|
|
9391
9349
|
}
|
|
9392
9350
|
}
|
|
9393
9351
|
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
|
|
9352
|
+
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
9353
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NumericCellComponent, decorators: [{
|
|
9396
9354
|
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
|
|
9355
|
+
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
9356
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9399
9357
|
type: Input
|
|
9400
9358
|
}], row: [{
|
|
@@ -9414,7 +9372,7 @@ class DateCellComponent extends CellComponentBase {
|
|
|
9414
9372
|
super.ngOnInit();
|
|
9415
9373
|
}
|
|
9416
9374
|
setValue(value) {
|
|
9417
|
-
this.row
|
|
9375
|
+
this.row[this.column.name] = value ? new Date(value) : value;
|
|
9418
9376
|
this.valueChanged();
|
|
9419
9377
|
this.cdr.detectChanges();
|
|
9420
9378
|
}
|
|
@@ -9432,10 +9390,10 @@ class DateCellComponent extends CellComponentBase {
|
|
|
9432
9390
|
}
|
|
9433
9391
|
}
|
|
9434
9392
|
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
|
|
9393
|
+
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
9394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DateCellComponent, decorators: [{
|
|
9437
9395
|
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
|
|
9396
|
+
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
9397
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9440
9398
|
type: Input
|
|
9441
9399
|
}], row: [{
|
|
@@ -9459,7 +9417,7 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9459
9417
|
get displayFilterOptions() {
|
|
9460
9418
|
var _a, _b;
|
|
9461
9419
|
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
|
|
9420
|
+
const parentValue = this.row[this.column.parentName];
|
|
9463
9421
|
if (parentValue) {
|
|
9464
9422
|
return this.filterOptions.filter(_ => _.parentId === parentValue);
|
|
9465
9423
|
}
|
|
@@ -9468,7 +9426,7 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9468
9426
|
}
|
|
9469
9427
|
setValue(value) {
|
|
9470
9428
|
// if(this.c)
|
|
9471
|
-
this.row
|
|
9429
|
+
this.row[this.column.name] = value;
|
|
9472
9430
|
this.valueChanged();
|
|
9473
9431
|
}
|
|
9474
9432
|
startEdit(initiator, type) {
|
|
@@ -9492,7 +9450,7 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9492
9450
|
!(this.filterOptions instanceof Array)) {
|
|
9493
9451
|
return '';
|
|
9494
9452
|
}
|
|
9495
|
-
const item = this.filterOptions.find((option) => option.id === this.row
|
|
9453
|
+
const item = this.filterOptions.find((option) => option.id === this.row[this.column.name]);
|
|
9496
9454
|
if (item === null || item === undefined) {
|
|
9497
9455
|
return '';
|
|
9498
9456
|
}
|
|
@@ -9500,10 +9458,10 @@ class ListCellComponent extends CellComponentBase {
|
|
|
9500
9458
|
}
|
|
9501
9459
|
}
|
|
9502
9460
|
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
|
|
9461
|
+
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
9462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListCellComponent, decorators: [{
|
|
9505
9463
|
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
|
|
9464
|
+
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
9465
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9508
9466
|
type: Input
|
|
9509
9467
|
}], row: [{
|
|
@@ -9548,10 +9506,10 @@ class StringCellComponent extends CellComponentBase {
|
|
|
9548
9506
|
}
|
|
9549
9507
|
}
|
|
9550
9508
|
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
|
|
9509
|
+
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
9510
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StringCellComponent, decorators: [{
|
|
9553
9511
|
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
|
|
9512
|
+
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
9513
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9556
9514
|
type: Input
|
|
9557
9515
|
}], row: [{
|
|
@@ -9587,10 +9545,10 @@ class BooleanCellComponent extends CellComponentBase {
|
|
|
9587
9545
|
}
|
|
9588
9546
|
}
|
|
9589
9547
|
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
|
|
9548
|
+
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
9549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: BooleanCellComponent, decorators: [{
|
|
9592
9550
|
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
|
|
9551
|
+
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
9552
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9595
9553
|
type: Input
|
|
9596
9554
|
}], row: [{
|
|
@@ -9727,8 +9685,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
9727
9685
|
}] } });
|
|
9728
9686
|
|
|
9729
9687
|
class TableBodyComponent {
|
|
9730
|
-
constructor(_svc, _config, _cdr) {
|
|
9688
|
+
constructor(_svc, _elementRef, _config, _cdr) {
|
|
9731
9689
|
this._svc = _svc;
|
|
9690
|
+
this._elementRef = _elementRef;
|
|
9732
9691
|
this._config = _config;
|
|
9733
9692
|
this._cdr = _cdr;
|
|
9734
9693
|
this.selectedRows = [];
|
|
@@ -9739,18 +9698,6 @@ class TableBodyComponent {
|
|
|
9739
9698
|
this._columns = [];
|
|
9740
9699
|
this._alive = true;
|
|
9741
9700
|
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
9701
|
}
|
|
9755
9702
|
set data(data) {
|
|
9756
9703
|
this._data = data;
|
|
@@ -9775,6 +9722,17 @@ class TableBodyComponent {
|
|
|
9775
9722
|
setActiveRow(row) {
|
|
9776
9723
|
this._svc.setActiveRow(row);
|
|
9777
9724
|
}
|
|
9725
|
+
// getData = (index, count, success) => {
|
|
9726
|
+
// const data = [];
|
|
9727
|
+
// if (this.data?.length > 0) {
|
|
9728
|
+
// const start = Math.max(0, index);
|
|
9729
|
+
// const end = Math.min(index + count - 1, this.data.length - 1);
|
|
9730
|
+
// for (let i = start; i <= end; i++) {
|
|
9731
|
+
// data.push(this.data[i]);
|
|
9732
|
+
// }
|
|
9733
|
+
// }
|
|
9734
|
+
// return success(data);
|
|
9735
|
+
// };
|
|
9778
9736
|
ngOnInit() {
|
|
9779
9737
|
this.locale = this._config.locale;
|
|
9780
9738
|
combineLatest([this._svc.columns, this._svc.hiddenColumns])
|
|
@@ -9796,10 +9754,14 @@ class TableBodyComponent {
|
|
|
9796
9754
|
this._cdr.markForCheck();
|
|
9797
9755
|
});
|
|
9798
9756
|
this._svc.scrollIndex
|
|
9799
|
-
.pipe(takeWhile((
|
|
9800
|
-
.subscribe((
|
|
9757
|
+
.pipe(takeWhile(() => this._alive))
|
|
9758
|
+
.subscribe((index) => __awaiter(this, void 0, void 0, function* () {
|
|
9801
9759
|
if (this.viewport) {
|
|
9802
|
-
this.viewport.scrollToIndex(
|
|
9760
|
+
this.viewport.scrollToIndex(index, 'auto');
|
|
9761
|
+
}
|
|
9762
|
+
else {
|
|
9763
|
+
const row = this._elementRef.nativeElement.querySelector(`.table-row[data-row="${index}"]`);
|
|
9764
|
+
row === null || row === void 0 ? void 0 : row.scrollIntoView();
|
|
9803
9765
|
}
|
|
9804
9766
|
this._cdr.markForCheck();
|
|
9805
9767
|
}));
|
|
@@ -9843,8 +9805,8 @@ class TableBodyComponent {
|
|
|
9843
9805
|
return '';
|
|
9844
9806
|
}
|
|
9845
9807
|
trackRow(index, row) {
|
|
9846
|
-
if (row
|
|
9847
|
-
return row
|
|
9808
|
+
if (row['id']) {
|
|
9809
|
+
return row['id'];
|
|
9848
9810
|
}
|
|
9849
9811
|
return index;
|
|
9850
9812
|
}
|
|
@@ -9854,29 +9816,29 @@ class TableBodyComponent {
|
|
|
9854
9816
|
getSum(columnName) {
|
|
9855
9817
|
var _a;
|
|
9856
9818
|
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => {
|
|
9857
|
-
const val = parseFloat(current
|
|
9819
|
+
const val = parseFloat(current[columnName]);
|
|
9858
9820
|
return accum + (isNaN(val) ? 0 : val);
|
|
9859
9821
|
}, 0);
|
|
9860
9822
|
}
|
|
9861
9823
|
getMin(columnName) {
|
|
9862
9824
|
var _a;
|
|
9863
|
-
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum <= current
|
|
9825
|
+
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum <= current[columnName]
|
|
9864
9826
|
? accum
|
|
9865
|
-
: current
|
|
9827
|
+
: current[columnName], null);
|
|
9866
9828
|
}
|
|
9867
9829
|
getMax(columnName) {
|
|
9868
9830
|
var _a;
|
|
9869
|
-
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum >= current
|
|
9831
|
+
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.reduce((accum, current) => accum != null && accum >= current[columnName]
|
|
9870
9832
|
? accum
|
|
9871
|
-
: current
|
|
9833
|
+
: current[columnName], null);
|
|
9872
9834
|
}
|
|
9873
9835
|
}
|
|
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",
|
|
9836
|
+
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 });
|
|
9837
|
+
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
9838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
9877
9839
|
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: [{
|
|
9840
|
+
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" }]
|
|
9841
|
+
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ElementRef }, { type: TetaConfigService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { virtual: [{
|
|
9880
9842
|
type: Input
|
|
9881
9843
|
}], activeRow: [{
|
|
9882
9844
|
type: Input
|
|
@@ -9884,16 +9846,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
9884
9846
|
type: Input
|
|
9885
9847
|
}], additionalComponent: [{
|
|
9886
9848
|
type: Input
|
|
9887
|
-
}], tree: [{
|
|
9888
|
-
type: Input
|
|
9889
9849
|
}], aggregate: [{
|
|
9890
9850
|
type: Input
|
|
9891
|
-
}], grouping: [{
|
|
9892
|
-
type: Input
|
|
9893
|
-
}], groupRowComponent: [{
|
|
9894
|
-
type: Input
|
|
9895
|
-
}], openLevels: [{
|
|
9896
|
-
type: Input
|
|
9897
9851
|
}], selectType: [{
|
|
9898
9852
|
type: Input
|
|
9899
9853
|
}], rowClass: [{
|
|
@@ -9913,8 +9867,12 @@ class TableComponent {
|
|
|
9913
9867
|
this.data = [];
|
|
9914
9868
|
this.columns = [];
|
|
9915
9869
|
this.selectType = SelectType.mouse;
|
|
9916
|
-
this.
|
|
9917
|
-
|
|
9870
|
+
this.trackRow = (index, row) => {
|
|
9871
|
+
if (row['id']) {
|
|
9872
|
+
return row['id'];
|
|
9873
|
+
}
|
|
9874
|
+
return index;
|
|
9875
|
+
};
|
|
9918
9876
|
this.editType = EditType.cell;
|
|
9919
9877
|
this.editEvent = EditEvent.doubleClick;
|
|
9920
9878
|
this.showHeadCellMenu = true;
|
|
@@ -10129,6 +10087,7 @@ class TableComponent {
|
|
|
10129
10087
|
this._bodyElement.removeEventListener('scroll', this.onScroll);
|
|
10130
10088
|
}
|
|
10131
10089
|
ngOnChanges(changes) {
|
|
10090
|
+
var _a;
|
|
10132
10091
|
if (changes.hasOwnProperty('editType')) {
|
|
10133
10092
|
this._svc.editType = this.editType;
|
|
10134
10093
|
}
|
|
@@ -10151,7 +10110,10 @@ class TableComponent {
|
|
|
10151
10110
|
}
|
|
10152
10111
|
if (changes.hasOwnProperty('data')) {
|
|
10153
10112
|
this._svc.setData(this.data);
|
|
10154
|
-
this._svc.selectRows(
|
|
10113
|
+
this._svc.selectRows((_a = this.data) === null || _a === void 0 ? void 0 : _a.filter((row) => {
|
|
10114
|
+
var _a;
|
|
10115
|
+
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));
|
|
10116
|
+
}));
|
|
10155
10117
|
}
|
|
10156
10118
|
if (changes.hasOwnProperty('dict')) {
|
|
10157
10119
|
this._svc.setDict(this.dict);
|
|
@@ -10197,6 +10159,9 @@ class TableComponent {
|
|
|
10197
10159
|
return row && this._elementRef.nativeElement.contains(row);
|
|
10198
10160
|
}
|
|
10199
10161
|
getCoordinates(event) {
|
|
10162
|
+
if (event.composedPath().indexOf(this._elementRef.nativeElement) < 0) {
|
|
10163
|
+
return null;
|
|
10164
|
+
}
|
|
10200
10165
|
const cell = this.getEventCell(event);
|
|
10201
10166
|
if (cell) {
|
|
10202
10167
|
const rowIndex = parseInt(cell.getAttribute('data-row'), 10);
|
|
@@ -10212,6 +10177,9 @@ class TableComponent {
|
|
|
10212
10177
|
return null;
|
|
10213
10178
|
}
|
|
10214
10179
|
getRow(event) {
|
|
10180
|
+
if (event.composedPath().indexOf(this._elementRef.nativeElement) < 0) {
|
|
10181
|
+
return null;
|
|
10182
|
+
}
|
|
10215
10183
|
const rowElement = this.getEventRow(event);
|
|
10216
10184
|
if (rowElement) {
|
|
10217
10185
|
const rowIndex = parseInt(rowElement.getAttribute('data-row'), 10);
|
|
@@ -10223,10 +10191,10 @@ class TableComponent {
|
|
|
10223
10191
|
}
|
|
10224
10192
|
}
|
|
10225
10193
|
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",
|
|
10194
|
+
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
10195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableComponent, decorators: [{
|
|
10228
10196
|
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 [
|
|
10197
|
+
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
10198
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ElementRef }]; }, propDecorators: { data: [{
|
|
10231
10199
|
type: Input
|
|
10232
10200
|
}], columns: [{
|
|
@@ -10251,14 +10219,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
10251
10219
|
type: Input
|
|
10252
10220
|
}], aggregate: [{
|
|
10253
10221
|
type: Input
|
|
10254
|
-
}], grouping: [{
|
|
10255
|
-
type: Input
|
|
10256
|
-
}], groupRowComponent: [{
|
|
10257
|
-
type: Input
|
|
10258
|
-
}], openLevels: [{
|
|
10259
|
-
type: Input
|
|
10260
|
-
}], tree: [{
|
|
10261
|
-
type: Input
|
|
10262
10222
|
}], trackRow: [{
|
|
10263
10223
|
type: Input
|
|
10264
10224
|
}], editType: [{
|
|
@@ -10408,7 +10368,7 @@ class DateTimeCellComponent extends CellComponentBase {
|
|
|
10408
10368
|
super.ngOnInit();
|
|
10409
10369
|
}
|
|
10410
10370
|
setValue(value) {
|
|
10411
|
-
this.row
|
|
10371
|
+
this.row[this.column.name] = value;
|
|
10412
10372
|
this.valueChanged();
|
|
10413
10373
|
}
|
|
10414
10374
|
startEdit(initiator, type) {
|
|
@@ -10425,10 +10385,10 @@ class DateTimeCellComponent extends CellComponentBase {
|
|
|
10425
10385
|
}
|
|
10426
10386
|
}
|
|
10427
10387
|
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
|
|
10388
|
+
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
10389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DateTimeCellComponent, decorators: [{
|
|
10430
10390
|
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
|
|
10391
|
+
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
10392
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
10433
10393
|
type: Input
|
|
10434
10394
|
}], row: [{
|
|
@@ -10484,7 +10444,6 @@ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
10484
10444
|
TableBodyComponent,
|
|
10485
10445
|
CellComponent,
|
|
10486
10446
|
CellHostComponent,
|
|
10487
|
-
GroupRowComponent,
|
|
10488
10447
|
TableHeadGroupComponent,
|
|
10489
10448
|
HeadCellComponent,
|
|
10490
10449
|
DefaultHeadCellComponent,
|
|
@@ -10523,7 +10482,6 @@ TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
10523
10482
|
TableBodyComponent,
|
|
10524
10483
|
CellComponent,
|
|
10525
10484
|
CellHostComponent,
|
|
10526
|
-
GroupRowComponent,
|
|
10527
10485
|
DateTimeCellComponent,
|
|
10528
10486
|
BooleanCellComponent] });
|
|
10529
10487
|
TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TableModule, imports: [CommonModule,
|
|
@@ -10559,7 +10517,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
10559
10517
|
TableBodyComponent,
|
|
10560
10518
|
CellComponent,
|
|
10561
10519
|
CellHostComponent,
|
|
10562
|
-
GroupRowComponent,
|
|
10563
10520
|
TableHeadGroupComponent,
|
|
10564
10521
|
HeadCellComponent,
|
|
10565
10522
|
DefaultHeadCellComponent,
|
|
@@ -10583,7 +10540,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
10583
10540
|
TableBodyComponent,
|
|
10584
10541
|
CellComponent,
|
|
10585
10542
|
CellHostComponent,
|
|
10586
|
-
GroupRowComponent,
|
|
10587
10543
|
DateTimeCellComponent,
|
|
10588
10544
|
BooleanCellComponent,
|
|
10589
10545
|
],
|
|
@@ -10952,6 +10908,7 @@ class ResizePanelComponent {
|
|
|
10952
10908
|
this._elementRef = _elementRef;
|
|
10953
10909
|
this._renderer = _renderer;
|
|
10954
10910
|
this._document = _document;
|
|
10911
|
+
this.size = 8;
|
|
10955
10912
|
this.resizePanelClass = true;
|
|
10956
10913
|
this._direction = 'horizontal';
|
|
10957
10914
|
this._grabPosition = 'left';
|
|
@@ -11086,16 +11043,18 @@ class ResizePanelComponent {
|
|
|
11086
11043
|
}
|
|
11087
11044
|
}
|
|
11088
11045
|
ResizePanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ResizePanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
11089
|
-
ResizePanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ResizePanelComponent, selector: "teta-resize-panel", inputs: { direction: "direction", grabPosition: "grabPosition", name: "name", minSize: "minSize", maxSize: "maxSize" }, host: { properties: { "class.resize-panel": "this.resizePanelClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n
|
|
11046
|
+
ResizePanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ResizePanelComponent, selector: "teta-resize-panel", inputs: { size: "size", direction: "direction", grabPosition: "grabPosition", name: "name", minSize: "minSize", maxSize: "maxSize" }, host: { properties: { "class.resize-panel": "this.resizePanelClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n [style.width.px]=\"direction === 'vertical' ? size : ''\"\n [style.height.px]=\"direction === 'horizontal' ? size : ''\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n <teta-icon [name]=\"icon\"></teta-icon>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "teta-icon", inputs: ["name", "size", "palette", "class"] }, { kind: "directive", type: ResizeDragDirective, selector: "[tetaResizeDrag]", inputs: ["tetaResizeDrag"], outputs: ["resizeStart", "resizeProcess", "resizeEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11090
11047
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ResizePanelComponent, decorators: [{
|
|
11091
11048
|
type: Component,
|
|
11092
|
-
args: [{ selector: 'teta-resize-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n
|
|
11049
|
+
args: [{ selector: 'teta-resize-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n [style.width.px]=\"direction === 'vertical' ? size : ''\"\n [style.height.px]=\"direction === 'horizontal' ? size : ''\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n <teta-icon [name]=\"icon\"></teta-icon>\n</div>\n" }]
|
|
11093
11050
|
}], ctorParameters: function () {
|
|
11094
11051
|
return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
11095
11052
|
type: Inject,
|
|
11096
11053
|
args: [DOCUMENT]
|
|
11097
11054
|
}] }];
|
|
11098
|
-
}, propDecorators: {
|
|
11055
|
+
}, propDecorators: { size: [{
|
|
11056
|
+
type: Input
|
|
11057
|
+
}], direction: [{
|
|
11099
11058
|
type: Input
|
|
11100
11059
|
}], grabPosition: [{
|
|
11101
11060
|
type: Input
|
|
@@ -11467,8 +11426,9 @@ class DragDirective {
|
|
|
11467
11426
|
this._dragService.setDropTarget(null);
|
|
11468
11427
|
}
|
|
11469
11428
|
ngOnInit() {
|
|
11429
|
+
var _a;
|
|
11470
11430
|
this.instance = new DragInstance({
|
|
11471
|
-
container: this._container.instance,
|
|
11431
|
+
container: (_a = this._container) === null || _a === void 0 ? void 0 : _a.instance,
|
|
11472
11432
|
data: this.data
|
|
11473
11433
|
});
|
|
11474
11434
|
this._dragService.dropTarget.pipe(takeWhile(() => this._alive))
|
|
@@ -12062,7 +12022,7 @@ class ScrollIntoViewDirective {
|
|
|
12062
12022
|
if (coerceBooleanProperty(this.tetaScrollIntoView)) {
|
|
12063
12023
|
this.elementRef.nativeElement.scrollIntoView({
|
|
12064
12024
|
behavior: 'smooth',
|
|
12065
|
-
block: '
|
|
12025
|
+
block: 'start'
|
|
12066
12026
|
});
|
|
12067
12027
|
}
|
|
12068
12028
|
}
|
|
@@ -12226,5 +12186,5 @@ function tetaZoneOptimized(ngZone) {
|
|
|
12226
12186
|
* Generated bundle index. Do not edit.
|
|
12227
12187
|
*/
|
|
12228
12188
|
|
|
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,
|
|
12189
|
+
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
12190
|
//# sourceMappingURL=tetacom-ng-components.mjs.map
|