@tetacom/ng-components 1.0.33 → 1.0.36

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.
Files changed (149) hide show
  1. package/common/contract/i-id.d.ts +3 -0
  2. package/common/contract/public-api.d.ts +1 -0
  3. package/component/chart-3d/chart3d/chart3d.component.d.ts +1 -0
  4. package/component/chart-3d/model/chart-3d-options.d.ts +1 -0
  5. package/component/date-picker/date-picker/date-picker.component.d.ts +9 -6
  6. package/component/date-picker/day-select/day-select.component.d.ts +5 -5
  7. package/component/date-picker/month-picker/month-picker.component.d.ts +5 -5
  8. package/component/date-picker/month-select/month-select.component.d.ts +2 -2
  9. package/component/dropdown/dropdown-base.d.ts +3 -2
  10. package/component/filter/base/filter-component-base.d.ts +3 -1
  11. package/component/filter/boolean-filter/boolean-filter.component.d.ts +5 -3
  12. package/component/filter/date-filter/date-filter.component.d.ts +11 -4
  13. package/component/filter/filter-host/filter-host.component.d.ts +6 -3
  14. package/component/filter/filter.module.d.ts +15 -16
  15. package/component/filter/list-filter/list-filter.component.d.ts +11 -4
  16. package/component/filter/numeric-filter/numeric-filter.component.d.ts +11 -4
  17. package/component/filter/public-api.d.ts +0 -1
  18. package/component/filter/string-filter/string-filter.component.d.ts +11 -4
  19. package/component/input/text-field/text-field.component.d.ts +2 -2
  20. package/component/select/select/select.component.d.ts +1 -1
  21. package/component/table/base/cell-component-base.d.ts +3 -1
  22. package/component/table/base/head-cell-component-base.d.ts +5 -3
  23. package/component/table/contract/i-cell-coordinates.d.ts +3 -5
  24. package/component/table/contract/i-cell-event.d.ts +1 -1
  25. package/component/table/contract/i-cell-instance.d.ts +12 -0
  26. package/component/table/contract/i-cell-value.d.ts +1 -2
  27. package/component/table/contract/public-api.d.ts +1 -1
  28. package/component/table/contract/table-column.d.ts +3 -3
  29. package/component/table/default/boolean-cell/boolean-cell.component.d.ts +1 -1
  30. package/component/table/default/date-cell/date-cell.component.d.ts +1 -1
  31. package/component/table/default/date-time-cell/date-time-cell.component.d.ts +1 -1
  32. package/component/table/default/default-head-cell/default-head-cell.component.d.ts +7 -3
  33. package/component/table/default/list-cell/list-cell.component.d.ts +1 -1
  34. package/component/table/default/numeric-cell/numeric-cell.component.d.ts +1 -1
  35. package/component/table/default/string-cell/string-cell.component.d.ts +1 -1
  36. package/component/table/enum/edit-type.enum.d.ts +3 -2
  37. package/component/table/head-cell/head-cell.component.d.ts +3 -2
  38. package/component/table/head-cell-dropdown/head-cell-dropdown.component.d.ts +11 -5
  39. package/component/table/head-cell-host/head-cell-host.component.d.ts +7 -3
  40. package/component/table/service/table.service.d.ts +38 -15
  41. package/component/table/table/table.component.d.ts +21 -32
  42. package/component/table/table-body/table-body.component.d.ts +12 -9
  43. package/component/table/table-head/table-head.component.d.ts +4 -4
  44. package/component/table/table-head-group/table-head-group.component.d.ts +5 -3
  45. package/component/table/table.module.d.ts +2 -1
  46. package/component/table/util/state-util.d.ts +3 -0
  47. package/component/table/util/table-util.d.ts +0 -1
  48. package/esm2020/common/contract/i-id.mjs +2 -0
  49. package/esm2020/common/contract/public-api.mjs +2 -1
  50. package/esm2020/component/chart-3d/chart3d/chart3d.component.mjs +64 -57
  51. package/esm2020/component/chart-3d/model/chart-3d-options.mjs +1 -1
  52. package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +3 -3
  53. package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +17 -8
  54. package/esm2020/component/date-picker/day-select/day-select.component.mjs +10 -8
  55. package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +10 -8
  56. package/esm2020/component/date-picker/month-select/month-select.component.mjs +5 -4
  57. package/esm2020/component/dropdown/dropdown-base.mjs +14 -6
  58. package/esm2020/component/filter/base/filter-base.mjs +4 -3
  59. package/esm2020/component/filter/base/filter-component-base.mjs +1 -1
  60. package/esm2020/component/filter/boolean-filter/boolean-filter.component.mjs +4 -2
  61. package/esm2020/component/filter/contarct/filter-item.mjs +4 -3
  62. package/esm2020/component/filter/contarct/sort-param.mjs +3 -2
  63. package/esm2020/component/filter/date-filter/date-filter.component.mjs +15 -9
  64. package/esm2020/component/filter/filter-host/filter-host.component.mjs +12 -2
  65. package/esm2020/component/filter/filter.module.mjs +3 -8
  66. package/esm2020/component/filter/list-filter/list-filter.component.mjs +20 -12
  67. package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +15 -9
  68. package/esm2020/component/filter/public-api.mjs +1 -2
  69. package/esm2020/component/filter/string-filter/string-filter.component.mjs +14 -8
  70. package/esm2020/component/input/input/input.component.mjs +2 -2
  71. package/esm2020/component/input/text-field/text-field.component.mjs +8 -3
  72. package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +1 -1
  73. package/esm2020/component/select/select/select.component.mjs +12 -6
  74. package/esm2020/component/table/base/cell-component-base.mjs +20 -26
  75. package/esm2020/component/table/base/head-cell-component-base.mjs +1 -1
  76. package/esm2020/component/table/contract/i-cell-coordinates.mjs +1 -1
  77. package/esm2020/component/table/contract/i-cell-event.mjs +1 -1
  78. package/esm2020/component/table/contract/i-cell-instance.mjs +2 -0
  79. package/esm2020/component/table/contract/i-cell-value.mjs +1 -1
  80. package/esm2020/component/table/contract/public-api.mjs +2 -2
  81. package/esm2020/component/table/contract/table-column.mjs +1 -1
  82. package/esm2020/component/table/default/boolean-cell/boolean-cell.component.mjs +4 -4
  83. package/esm2020/component/table/default/date-cell/date-cell.component.mjs +4 -4
  84. package/esm2020/component/table/default/date-time-cell/date-time-cell.component.mjs +6 -6
  85. package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +14 -4
  86. package/esm2020/component/table/default/list-cell/list-cell.component.mjs +4 -4
  87. package/esm2020/component/table/default/numeric-cell/numeric-cell.component.mjs +13 -9
  88. package/esm2020/component/table/default/string-cell/string-cell.component.mjs +16 -10
  89. package/esm2020/component/table/enum/edit-type.enum.mjs +4 -3
  90. package/esm2020/component/table/head-cell/head-cell.component.mjs +19 -19
  91. package/esm2020/component/table/head-cell-dropdown/head-cell-dropdown.component.mjs +39 -30
  92. package/esm2020/component/table/head-cell-host/head-cell-host.component.mjs +14 -2
  93. package/esm2020/component/table/selection-head-cell/selection-head-cell.component.mjs +1 -1
  94. package/esm2020/component/table/service/table.service.mjs +213 -27
  95. package/esm2020/component/table/table/table.component.mjs +174 -156
  96. package/esm2020/component/table/table-body/table-body.component.mjs +26 -50
  97. package/esm2020/component/table/table-head/table-head.component.mjs +14 -35
  98. package/esm2020/component/table/table-head-group/table-head-group.component.mjs +29 -14
  99. package/esm2020/component/table/table.module.mjs +6 -2
  100. package/esm2020/component/table/util/state-util.mjs +20 -1
  101. package/esm2020/component/table/util/table-util.mjs +10 -14
  102. package/esm2020/component/toolbar/toolbar/toolbar.component.mjs +2 -2
  103. package/esm2020/directive/context-menu/context-menu.directive.mjs +7 -5
  104. package/esm2020/directive/dynamic-content-base.directive.mjs +6 -7
  105. package/esm2020/locale/en.mjs +57 -0
  106. package/esm2020/locale/public-api.mjs +5 -0
  107. package/esm2020/locale/ru.mjs +57 -0
  108. package/esm2020/locale/teta-config.service.mjs +28 -0
  109. package/esm2020/locale/teta-localisation.mjs +2 -0
  110. package/esm2020/public-api.mjs +3 -1
  111. package/esm2020/util/date-util.mjs +41 -1
  112. package/esm2020/util/string-util.mjs +5 -1
  113. package/fesm2015/tetacom-ng-components.mjs +1180 -774
  114. package/fesm2015/tetacom-ng-components.mjs.map +1 -1
  115. package/fesm2020/tetacom-ng-components.mjs +1177 -758
  116. package/fesm2020/tetacom-ng-components.mjs.map +1 -1
  117. package/locale/en.d.ts +2 -0
  118. package/locale/public-api.d.ts +4 -0
  119. package/locale/ru.d.ts +2 -0
  120. package/locale/teta-config.service.d.ts +11 -0
  121. package/locale/teta-localisation.d.ts +56 -0
  122. package/package.json +1 -1
  123. package/public-api.d.ts +1 -0
  124. package/style/border.scss +1 -1
  125. package/style/button.scss +9 -5
  126. package/style/checkbox.scss +10 -2
  127. package/style/datepicker.scss +9 -7
  128. package/style/dropdown.scss +12 -2
  129. package/style/input.scss +6 -5
  130. package/style/list.scss +1 -1
  131. package/style/presets/color-presets.scss +62 -62
  132. package/style/presets/font-presets.scss +62 -45
  133. package/style/presets/shadow-presets.scss +3 -3
  134. package/style/select.scss +6 -6
  135. package/style/switch.scss +1 -1
  136. package/style/table.scss +43 -45
  137. package/style/tabs.scss +2 -2
  138. package/style/toolbar.scss +3 -6
  139. package/style/tree.scss +2 -2
  140. package/util/date-util.d.ts +1 -0
  141. package/util/string-util.d.ts +1 -0
  142. package/component/date-picker/model/picker-locale-model.d.ts +0 -16
  143. package/component/date-picker/service/picker-locale.service.d.ts +0 -11
  144. package/component/filter/filter-panel/filter-panel.component.d.ts +0 -8
  145. package/component/table/contract/table-context-menu-config.d.ts +0 -14
  146. package/esm2020/component/date-picker/model/picker-locale-model.mjs +0 -13
  147. package/esm2020/component/date-picker/service/picker-locale.service.mjs +0 -30
  148. package/esm2020/component/filter/filter-panel/filter-panel.component.mjs +0 -13
  149. package/esm2020/component/table/contract/table-context-menu-config.mjs +0 -17
@@ -15,7 +15,7 @@ export declare class DateTimeCellComponent<T> extends CellComponentBase<T> imple
15
15
  constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
16
16
  ngOnInit(): void;
17
17
  setValue(value: Date): void;
18
- startEdit(initiator: ICellCoordinates<T>, type: 'cell' | 'row'): void;
18
+ startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
19
19
  stopEdit(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeCellComponent<any>, never>;
21
21
  static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeCellComponent<any>, "teta-date-time-cell", never, { "column": "column"; "row": "row"; }, {}, never, never>;
@@ -1,14 +1,18 @@
1
1
  import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { HeadCellComponentBase } from '../../base/head-cell-component-base';
3
3
  import { TableColumn } from '../../contract/table-column';
4
+ import { TableRow } from '../../contract/table-row';
4
5
  import * as i0 from "@angular/core";
5
- export declare class DefaultHeadCellComponent extends HeadCellComponentBase implements OnInit {
6
+ export declare class DefaultHeadCellComponent<T> extends HeadCellComponentBase<T> implements OnInit {
6
7
  private _cdr;
7
8
  private _column;
9
+ private _data;
8
10
  set column(val: TableColumn);
9
11
  get column(): TableColumn;
12
+ set data(data: TableRow<T>[]);
13
+ get data(): TableRow<T>[];
10
14
  constructor(_cdr: ChangeDetectorRef);
11
15
  ngOnInit(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHeadCellComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<DefaultHeadCellComponent, "teta-default-head-cell", never, { "column": "column"; }, {}, never, never>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHeadCellComponent<any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultHeadCellComponent<any>, "teta-default-head-cell", never, { "column": "column"; "data": "data"; }, {}, never, never>;
14
18
  }
@@ -20,7 +20,7 @@ export declare class ListCellComponent<T> extends CellComponentBase<T> implement
20
20
  verticalAlign: typeof VerticalAlign;
21
21
  constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
22
22
  setValue(value: any): void;
23
- startEdit(initiator: ICellCoordinates<T>, type: 'cell' | 'row'): void;
23
+ startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
24
24
  stopEdit(): void;
25
25
  ngOnInit(): void;
26
26
  private getValue;
@@ -14,7 +14,7 @@ export declare class NumericCellComponent<T> extends CellComponentBase<T> implem
14
14
  constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
15
15
  setValue(): void;
16
16
  ngOnInit(): void;
17
- startEdit(initiator: ICellCoordinates<T>, type: 'cell' | 'row'): void;
17
+ startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
18
18
  stopEdit(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<NumericCellComponent<any>, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<NumericCellComponent<any>, "teta-numeric-cell", never, { "column": "column"; "row": "row"; }, {}, never, never>;
@@ -14,7 +14,7 @@ export declare class StringCellComponent<T> extends CellComponentBase<T> impleme
14
14
  constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
15
15
  setValue(): void;
16
16
  ngOnInit(): void;
17
- startEdit(initiator: ICellCoordinates<T>, type: 'cell' | 'row'): void;
17
+ startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
18
18
  stopEdit(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<StringCellComponent<any>, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<StringCellComponent<any>, "teta-string-cell", never, { "column": "column"; "row": "row"; }, {}, never, never>;
@@ -1,4 +1,5 @@
1
1
  export declare enum EditType {
2
- cell = 0,
3
- row = 1
2
+ none = 0,
3
+ cell = 1,
4
+ row = 2
4
5
  }
@@ -6,6 +6,7 @@ import { SortParam } from '../../filter/contarct/sort-param';
6
6
  import { VerticalAlign } from '../../../common/enum/vertical-align.enum';
7
7
  import { Align } from '../../../common/enum/align.enum';
8
8
  import { Observable } from 'rxjs';
9
+ import { TableRow } from '../contract/table-row';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class HeadCellComponent<T> implements OnInit, OnDestroy {
11
12
  private _svc;
@@ -13,6 +14,7 @@ export declare class HeadCellComponent<T> implements OnInit, OnDestroy {
13
14
  private _elementRef;
14
15
  column: TableColumn;
15
16
  showHeadCellMenu: boolean;
17
+ data: TableRow<T>[];
16
18
  verticalAlign: typeof VerticalAlign;
17
19
  align: typeof Align;
18
20
  state: Observable<FilterState>;
@@ -36,10 +38,9 @@ export declare class HeadCellComponent<T> implements OnInit, OnDestroy {
36
38
  ngOnDestroy(): void;
37
39
  autosizeColumn(): void;
38
40
  autosizeAllColumns(): void;
39
- sortColumn(column: TableColumn, event: MouseEvent): void;
40
41
  resizeStart(event: MouseEvent): void;
41
42
  resizeProcess(event: MouseEvent): void;
42
43
  resizeEnd(): void;
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellComponent<any>, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellComponent<any>, "teta-head-cell", never, { "column": "column"; "showHeadCellMenu": "showHeadCellMenu"; }, {}, never, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellComponent<any>, "teta-head-cell", never, { "column": "column"; "showHeadCellMenu": "showHeadCellMenu"; "data": "data"; }, {}, never, never>;
45
46
  }
@@ -7,21 +7,25 @@ import { IDictionary } from '../../../common/contract/i-dictionary';
7
7
  import { IIdName } from '../../../common/contract/i-id-name';
8
8
  import { Observable } from 'rxjs';
9
9
  import { SortParam } from '../../filter/contarct/sort-param';
10
+ import { TableRow } from '../contract/table-row';
11
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
12
+ import { TetaConfigService } from '../../../locale/teta-config.service';
10
13
  import * as i0 from "@angular/core";
11
14
  export declare class HeadCellDropdownComponent<T> implements OnInit, OnDestroy {
12
15
  private _svc;
16
+ private _config;
13
17
  private _cdr;
14
18
  columns: ITreeData[];
15
19
  column: TableColumn;
16
20
  state: FilterState;
21
+ data: TableRow<T>[];
17
22
  dropDownOpen: boolean;
18
23
  dropDownOpenChange: EventEmitter<boolean>;
19
24
  autosize: EventEmitter<void>;
20
25
  autosizeAll: EventEmitter<void>;
21
- private readonly shadow;
22
- private readonly bg;
23
- dict: Observable<IDictionary<IIdName<any>[]>>;
26
+ filterOptions: Observable<IDictionary<IIdName<any>[]>>;
24
27
  hiddenColumns: string[];
28
+ locale: Observable<TetaLocalisation>;
25
29
  enter(): void;
26
30
  get sortParam(): SortParam;
27
31
  get filtered(): boolean;
@@ -30,10 +34,12 @@ export declare class HeadCellDropdownComponent<T> implements OnInit, OnDestroy {
30
34
  get childMode(): ITreeData;
31
35
  private _openItems;
32
36
  private _alive;
33
- constructor(_svc: TableService<T>, _cdr: ChangeDetectorRef);
37
+ constructor(_svc: TableService<T>, _config: TetaConfigService, _cdr: ChangeDetectorRef);
34
38
  clearFilter(): void;
35
39
  applyFilter(): void;
36
40
  pinColumn(): void;
41
+ sortAsc(event: MouseEvent): void;
42
+ sortDesc(event: MouseEvent): void;
37
43
  clearSort(): void;
38
44
  clearAllSort(): void;
39
45
  hasFilteredColumns(): boolean;
@@ -56,5 +62,5 @@ export declare class HeadCellDropdownComponent<T> implements OnInit, OnDestroy {
56
62
  showColumn(column: TableColumn, hiddenColumns: string[]): void;
57
63
  private findParentColumn;
58
64
  static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellDropdownComponent<any>, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellDropdownComponent<any>, "teta-head-cell-dropdown", never, { "columns": "columns"; "column": "column"; "state": "state"; "dropDownOpen": "dropDownOpen"; }, { "dropDownOpenChange": "dropDownOpenChange"; "autosize": "autosize"; "autosizeAll": "autosizeAll"; }, never, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellDropdownComponent<any>, "teta-head-cell-dropdown", never, { "columns": "columns"; "column": "column"; "state": "state"; "data": "data"; "dropDownOpen": "dropDownOpen"; }, { "dropDownOpenChange": "dropDownOpenChange"; "autosize": "autosize"; "autosizeAll": "autosizeAll"; }, never, never>;
60
66
  }
@@ -1,15 +1,19 @@
1
1
  import { OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { TableColumn } from '../contract/table-column';
3
+ import { TableRow } from '../contract/table-row';
3
4
  import * as i0 from "@angular/core";
4
- export declare class HeadCellHostComponent implements OnInit {
5
+ export declare class HeadCellHostComponent<T> implements OnInit {
5
6
  private viewContainerRef;
6
7
  private _column;
8
+ private _data;
7
9
  private componentRef;
8
10
  private init;
9
11
  set column(column: TableColumn);
10
12
  get column(): TableColumn;
13
+ set data(data: TableRow<T>[]);
14
+ get data(): TableRow<T>[];
11
15
  constructor(viewContainerRef: ViewContainerRef);
12
16
  ngOnInit(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellHostComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellHostComponent, "teta-head-cell-host", never, { "column": "column"; }, {}, never, never>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellHostComponent<any>, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellHostComponent<any>, "teta-head-cell-host", never, { "column": "column"; "data": "data"; }, {}, never, never>;
15
19
  }
@@ -12,19 +12,22 @@ import { IDictionary } from '../../../common/contract/i-dictionary';
12
12
  import { IIdName } from '../../../common/contract/i-id-name';
13
13
  import { TableColumnStore } from '../contract/table-column-store';
14
14
  import { ICellValue } from '../contract/i-cell-value';
15
+ import { ICellEvent } from '../contract/i-cell-event';
16
+ import { ICellInstance, ICellInstanceValue } from '../contract/i-cell-instance';
15
17
  import * as i0 from "@angular/core";
16
18
  export declare class TableService<T> {
17
19
  columns: Observable<TableColumn[]>;
18
20
  displayData: Observable<TableRow<T>[]>;
19
21
  dict: Observable<IDictionary<IIdName<any>[]>>;
22
+ filterOptions: Observable<IDictionary<IIdName<any>[]>>;
20
23
  state: Observable<FilterState>;
21
24
  selectType: SelectType;
22
- editRowStart: Observable<ICellCoordinates<T>>;
23
- editRowStop: Observable<ICellCoordinates<T>>;
24
- editCellStart: Observable<ICellCoordinates<T>>;
25
- editCellStop: Observable<ICellCoordinates<T>>;
26
- valueChanged: Observable<ICellCoordinates<T>>;
27
- valueSet: Observable<ICellValue<T>>;
25
+ editRowStart: Observable<ICellEvent>;
26
+ editRowStop: Observable<ICellCoordinates>;
27
+ editCellStart: Observable<ICellEvent>;
28
+ editCellStop: Observable<ICellCoordinates>;
29
+ valueChanged: Observable<ICellCoordinates>;
30
+ valueSet: Observable<ICellValue>;
28
31
  stateChanged: Observable<FilterState>;
29
32
  filterClear: Observable<TableColumn>;
30
33
  groupToggle: Observable<TableRow<T>>;
@@ -35,14 +38,16 @@ export declare class TableService<T> {
35
38
  editType: EditType;
36
39
  editEvent: EditEvent;
37
40
  rowEditable: boolean | ((row: TableRow<T>) => boolean);
41
+ trackRow: (index: number, row: TableRow<T>) => any;
38
42
  get dragSource(): TableColumn;
39
43
  private initialColumnsHash;
40
44
  private initialColumns;
41
45
  private displayColumns;
42
46
  private _columns;
43
- private initialData;
47
+ private _hiddenColumns;
44
48
  private _displayData;
45
49
  private _dict;
50
+ private _filterOptions;
46
51
  private _state;
47
52
  private _cookieName;
48
53
  private _hiddenCookieName;
@@ -59,13 +64,13 @@ export declare class TableService<T> {
59
64
  private _groupToggle;
60
65
  private _selectedRows;
61
66
  private _activeRow;
62
- private _hiddenColumns;
63
67
  private _scrollIndex;
64
- private _currentEditRow;
65
68
  private _currentEditCell;
69
+ get currentEditCell(): ICellCoordinates;
66
70
  constructor();
67
71
  setData(data: T[]): void;
68
72
  setDict(dict: IDictionary<IIdName<any>[]>): void;
73
+ setFilterOptions(filterOptions: IDictionary<IIdName<any>[]>): void;
69
74
  setColumns(columns: TableColumn[]): void;
70
75
  restoreDefaultColumns(): void;
71
76
  updateColumns(columns: TableColumn[]): void;
@@ -79,7 +84,8 @@ export declare class TableService<T> {
79
84
  restoreState(): void;
80
85
  saveHiddenColumns(hiddenColumns: string[]): void;
81
86
  restoreHiddenColumns(): void;
82
- sort(sortEvent: SortEvent): void;
87
+ sortAsc(sortEvent: SortEvent): void;
88
+ sortDesc(sortEvent: SortEvent): void;
83
89
  clearSort(column: TableColumn): void;
84
90
  clearAllSort(): void;
85
91
  clearFilter(column: TableColumn): void;
@@ -91,10 +97,12 @@ export declare class TableService<T> {
91
97
  autosizeColumn(column: TableColumn, target: HTMLElement): void;
92
98
  autosizeAllColumns(target: HTMLElement): void;
93
99
  reorderColumn(column: TableColumn, insertBefore: boolean): void;
94
- startEditRow(cellCoordinates: ICellCoordinates<T>): void;
95
- startEditCell(cellCoordinates: ICellCoordinates<T>): void;
100
+ startEditRow(cellEvent: ICellEvent): void;
101
+ startEditCell(cellEvent: ICellEvent): void;
96
102
  setActiveRow(row: TableRow<T>): void;
97
103
  selectRows(rows: TableRow<T>[]): void;
104
+ selectOrDeselectRow(row: TableRow<T>): void;
105
+ selectRange(row: TableRow<T>): void;
98
106
  selectRow(row: TableRow<T>): void;
99
107
  deselectRow(row: TableRow<T>): void;
100
108
  selectAll(): void;
@@ -103,16 +111,31 @@ export declare class TableService<T> {
103
111
  setHiddenColumns(value: string[]): void;
104
112
  columnIsHidden(column: TableColumn): boolean;
105
113
  toggleGroup(row: TableRow<T>): void;
106
- changeValue(coordinates: ICellCoordinates<T>): void;
107
- setValue(cellValue: ICellValue<T>): void;
108
- getRowByIndex(rowIndex: string): TableRow<T>;
114
+ changeValue(coordinates: ICellCoordinates): void;
115
+ setValue(cellValue: ICellValue): void;
116
+ setValue(cellValue: ICellInstanceValue<T>): void;
117
+ getRowByIndex(rowIndex: number): TableRow<T>;
118
+ getRowIndex(row: TableRow<T>): number;
119
+ getNextEditableCell(coords: ICellCoordinates): ICellCoordinates;
120
+ getPreviousEditableCell(coords: ICellCoordinates): ICellCoordinates;
121
+ getNextCell(coords: ICellCoordinates): ICellCoordinates;
122
+ getPreviousCell(coords: ICellCoordinates): ICellCoordinates;
123
+ getNextRowCell(coords: ICellCoordinates): ICellCoordinates;
124
+ getPreviousRowCell(coords: ICellCoordinates): {
125
+ column: any;
126
+ row: number;
127
+ };
109
128
  getColumnByName(columnName: string): any;
110
129
  scrollToIndex(index: number): void;
111
130
  boolOrFuncCallback<M>(variable: boolean | ((row: M) => boolean)): (args: M) => boolean;
131
+ getVisibleColumns(): any[];
132
+ getCellInstance(coords: ICellCoordinates): ICellInstance<T>;
133
+ private getFlatColumns;
112
134
  private findParent;
113
135
  private getTableElement;
114
136
  private isFunction;
115
137
  private setColumnAutoWidth;
138
+ private clearValue;
116
139
  static ɵfac: i0.ɵɵFactoryDeclaration<TableService<any>, never>;
117
140
  static ɵprov: i0.ɵɵInjectableDeclaration<TableService<any>>;
118
141
  }
@@ -1,18 +1,16 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, Type } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, Type } from '@angular/core';
2
2
  import { TableRow } from '../contract/table-row';
3
3
  import { TableService } from '../service/table.service';
4
4
  import { TableColumn } from '../contract/table-column';
5
5
  import { FilterState } from '../../filter/contarct/filter-state';
6
6
  import { DetailComponentBase } from '../base/detail-component-base';
7
- import { ICellEvent } from '../contract/i-cell-event';
8
- import { ICellCoordinates } from '../contract/i-cell-coordinates';
9
7
  import { GroupRowComponentBase } from '../base/group-row-component-base';
10
8
  import { EditType } from '../enum/edit-type.enum';
11
9
  import { EditEvent } from '../enum/edit-event.enum';
12
10
  import { SelectType } from '../enum/select-type.enum';
13
11
  import { IIdName } from '../../../common/contract/i-id-name';
14
12
  import { IDictionary } from '../../../common/contract/i-dictionary';
15
- import { TableContextMenuConfig } from '../contract/table-context-menu-config';
13
+ import { ICellInstance, ICellInstanceEvent } from '../contract/i-cell-instance';
16
14
  import * as i0 from "@angular/core";
17
15
  export declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewInit, OnChanges {
18
16
  private _svc;
@@ -20,8 +18,8 @@ export declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewIn
20
18
  data: T[];
21
19
  columns: TableColumn[];
22
20
  dict: IDictionary<IIdName<any>[]>;
21
+ filterOptions: IDictionary<IIdName<any>[]>;
23
22
  set state(state: FilterState);
24
- rowHeight: number;
25
23
  cookieName: string;
26
24
  virtual: boolean;
27
25
  detailComponent: Type<DetailComponentBase<T>>;
@@ -33,37 +31,34 @@ export declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewIn
33
31
  groupRowComponent: Type<GroupRowComponentBase<T>>;
34
32
  openLevels: number;
35
33
  tree: boolean;
36
- trackBy: (row: TableRow<T>) => any;
34
+ trackRow: (index: number, row: TableRow<T>) => any;
37
35
  editType: EditType;
38
36
  editEvent: EditEvent;
39
37
  rowEditable: boolean | ((row: TableRow<T>) => boolean);
40
38
  rowClass: (row: TableRow<T>, index?: number) => string;
41
39
  set scrollToIndex(index: number);
42
- contextMenuConfig: TableContextMenuConfig;
43
40
  showHeadCellMenu: boolean;
41
+ contextMenu: TemplateRef<any>;
42
+ contextMenuOpen: boolean;
43
+ contextMenuOpenChange: EventEmitter<boolean>;
44
44
  stateChange: EventEmitter<FilterState>;
45
45
  bodyLeft: EventEmitter<TableRow<T>>;
46
46
  activeRowChange: EventEmitter<TableRow<T>>;
47
47
  selectedRowsChange: EventEmitter<TableRow<T>[]>;
48
+ cellClick: EventEmitter<ICellInstanceEvent<T>>;
49
+ cellDoubleClick: EventEmitter<ICellInstanceEvent<T>>;
50
+ cellFocus: EventEmitter<ICellInstanceEvent<T>>;
51
+ cellKeyDown: EventEmitter<ICellInstanceEvent<T>>;
48
52
  rowLeft: EventEmitter<TableRow<T>>;
49
- rowEditStart: EventEmitter<TableRow<T>>;
53
+ rowEditStart: EventEmitter<ICellInstance<T>>;
50
54
  rowEditEnd: EventEmitter<TableRow<T>>;
51
- cellClick: EventEmitter<ICellEvent<T>>;
52
- cellDoubleClick: EventEmitter<ICellEvent<T>>;
53
- cellFocus: EventEmitter<ICellEvent<T>>;
54
- cellEditStart: EventEmitter<ICellCoordinates<T>>;
55
- cellEditEnd: EventEmitter<ICellCoordinates<T>>;
56
- valueChange: EventEmitter<ICellCoordinates<T>>;
57
- cellKeyUp: EventEmitter<ICellEvent<T>>;
58
- pasteRows: EventEmitter<any[]>;
59
- addRow: EventEmitter<void>;
60
- deleteRows: EventEmitter<TableRow<T>[]>;
55
+ cellEditStart: EventEmitter<ICellInstance<T>>;
56
+ cellEditEnd: EventEmitter<ICellInstance<T>>;
57
+ valueChange: EventEmitter<ICellInstance<T>>;
61
58
  tableService: EventEmitter<TableService<T>>;
62
59
  menu: ElementRef;
63
60
  private readonly tableClass;
64
- showContextMenu: boolean;
65
61
  selectedRowsList: TableRow<T>[];
66
- contextMenuTarget: ICellCoordinates<T>;
67
62
  private _alive;
68
63
  private _bodyElement;
69
64
  private _headElement;
@@ -72,27 +67,21 @@ export declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewIn
72
67
  handleClickOutsideAnyRow(event: MouseEvent): void;
73
68
  focusIn(event: any): void;
74
69
  dblclick(event: MouseEvent): void;
75
- keyup(event: KeyboardEvent): void;
70
+ keydown(event: KeyboardEvent): void;
76
71
  mousedown(event: MouseEvent): void;
77
- contextMenu(event: MouseEvent): void;
78
- rowAdd(): void;
79
- copy(rows: TableRow<T>[]): void;
80
- delete(rows: TableRow<T>[]): void;
81
- pasteData(): Promise<void>;
82
72
  ngOnInit(): void;
83
73
  ngAfterViewInit(): void;
84
74
  ngOnDestroy(): void;
85
75
  ngOnChanges(changes: SimpleChanges): void;
76
+ setContextMenuOpen(value: boolean): void;
86
77
  private startEditRowOrCell;
87
78
  private getEventCell;
79
+ private getEventRow;
80
+ private getCellElement;
88
81
  private eventIsOnRow;
89
82
  private getCoordinates;
83
+ private getRow;
90
84
  private onScroll;
91
- private getSelectedText;
92
- private setPosition;
93
- private toClipboardString;
94
- private fromClipboard;
95
- private getVisibleColumns;
96
85
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "teta-table", never, { "data": "data"; "columns": "columns"; "dict": "dict"; "state": "state"; "rowHeight": "rowHeight"; "cookieName": "cookieName"; "virtual": "virtual"; "detailComponent": "detailComponent"; "activeRow": "activeRow"; "selectedRows": "selectedRows"; "selectType": "selectType"; "aggregate": "aggregate"; "grouping": "grouping"; "groupRowComponent": "groupRowComponent"; "openLevels": "openLevels"; "tree": "tree"; "trackBy": "trackBy"; "editType": "editType"; "editEvent": "editEvent"; "rowEditable": "rowEditable"; "rowClass": "rowClass"; "scrollToIndex": "scrollToIndex"; "contextMenuConfig": "contextMenuConfig"; "showHeadCellMenu": "showHeadCellMenu"; }, { "stateChange": "stateChange"; "bodyLeft": "bodyLeft"; "activeRowChange": "activeRowChange"; "selectedRowsChange": "selectedRowsChange"; "rowLeft": "rowLeft"; "rowEditStart": "rowEditStart"; "rowEditEnd": "rowEditEnd"; "cellClick": "cellClick"; "cellDoubleClick": "cellDoubleClick"; "cellFocus": "cellFocus"; "cellEditStart": "cellEditStart"; "cellEditEnd": "cellEditEnd"; "valueChange": "valueChange"; "cellKeyUp": "cellKeyUp"; "pasteRows": "pasteRows"; "addRow": "addRow"; "deleteRows": "deleteRows"; "tableService": "tableService"; }, never, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "teta-table", never, { "data": "data"; "columns": "columns"; "dict": "dict"; "filterOptions": "filterOptions"; "state": "state"; "cookieName": "cookieName"; "virtual": "virtual"; "detailComponent": "detailComponent"; "activeRow": "activeRow"; "selectedRows": "selectedRows"; "selectType": "selectType"; "aggregate": "aggregate"; "grouping": "grouping"; "groupRowComponent": "groupRowComponent"; "openLevels": "openLevels"; "tree": "tree"; "trackRow": "trackRow"; "editType": "editType"; "editEvent": "editEvent"; "rowEditable": "rowEditable"; "rowClass": "rowClass"; "scrollToIndex": "scrollToIndex"; "showHeadCellMenu": "showHeadCellMenu"; "contextMenu": "contextMenu"; "contextMenuOpen": "contextMenuOpen"; }, { "contextMenuOpenChange": "contextMenuOpenChange"; "stateChange": "stateChange"; "bodyLeft": "bodyLeft"; "activeRowChange": "activeRowChange"; "selectedRowsChange": "selectedRowsChange"; "cellClick": "cellClick"; "cellDoubleClick": "cellDoubleClick"; "cellFocus": "cellFocus"; "cellKeyDown": "cellKeyDown"; "rowLeft": "rowLeft"; "rowEditStart": "rowEditStart"; "rowEditEnd": "rowEditEnd"; "cellEditStart": "cellEditStart"; "cellEditEnd": "cellEditEnd"; "valueChange": "valueChange"; "tableService": "tableService"; }, never, never>;
98
87
  }
@@ -5,16 +5,20 @@ import { GroupRowComponentBase } from '../base/group-row-component-base';
5
5
  import { TableService } from '../service/table.service';
6
6
  import { DetailComponentBase } from '../base/detail-component-base';
7
7
  import { SelectType } from '../enum/select-type.enum';
8
+ import { Observable } from 'rxjs';
8
9
  import { IDictionary } from '../../../common/contract/i-dictionary';
9
10
  import { IIdName } from '../../../common/contract/i-id-name';
10
11
  import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
12
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
13
+ import { TetaConfigService } from '../../../locale/teta-config.service';
11
14
  import * as i0 from "@angular/core";
12
15
  export declare class TableBodyComponent<T> implements OnInit, OnDestroy {
13
16
  private _svc;
17
+ private _config;
14
18
  private _cdr;
15
19
  virtual: boolean;
16
20
  activeRow: TableRow<T>;
17
- rowHeight: number;
21
+ selectedRows: TableRow<T>[];
18
22
  additionalComponent: Type<DetailComponentBase<T>>;
19
23
  tree: boolean;
20
24
  aggregate: boolean;
@@ -28,33 +32,32 @@ export declare class TableBodyComponent<T> implements OnInit, OnDestroy {
28
32
  set data(data: TableRow<T>[]);
29
33
  get data(): TableRow<T>[];
30
34
  dict: IDictionary<IIdName<any>[]>;
31
- gridTemplateColumns: string;
32
- selectedRows: TableRow<T>[];
33
35
  locked: TableColumn[];
34
36
  unlocked: TableColumn[];
35
37
  selectTypeEnum: typeof SelectType;
38
+ lockedFlex: number;
39
+ lockedWidth: number;
40
+ totalFlex: number;
41
+ totalWidth: number;
36
42
  private _columns;
37
43
  private _alive;
38
44
  private _data;
39
45
  private _hiddenColumns;
40
- private _index;
41
46
  set columns(columns: TableColumn[]);
42
47
  get columns(): TableColumn[];
43
- constructor(_svc: TableService<T>, _cdr: ChangeDetectorRef);
48
+ locale: Observable<TetaLocalisation>;
49
+ constructor(_svc: TableService<T>, _config: TetaConfigService, _cdr: ChangeDetectorRef);
44
50
  setActiveRow(row: TableRow<T>): void;
45
51
  getData: (index: any, count: any, success: any) => any;
46
52
  ngOnInit(): void;
47
53
  ngOnDestroy(): void;
48
54
  getAggregateValue(column: TableColumn): number;
49
55
  getAggregateText(column: TableColumn): string;
50
- getSpan(): string;
51
- getTemplateColumns(): string;
52
- getLockedGridTemplateColumns(columns: TableColumn[]): string;
53
56
  trackRow(index: number, row: TableRow<T>): any;
54
57
  trackColumns(index: number, column: TableColumn): any;
55
58
  private getSum;
56
59
  private getMin;
57
60
  private getMax;
58
61
  static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "teta-table-body", never, { "virtual": "virtual"; "activeRow": "activeRow"; "rowHeight": "rowHeight"; "additionalComponent": "additionalComponent"; "tree": "tree"; "aggregate": "aggregate"; "grouping": "grouping"; "groupRowComponent": "groupRowComponent"; "openLevels": "openLevels"; "selectType": "selectType"; "rowClass": "rowClass"; }, {}, never, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "teta-table-body", never, { "virtual": "virtual"; "activeRow": "activeRow"; "selectedRows": "selectedRows"; "additionalComponent": "additionalComponent"; "tree": "tree"; "aggregate": "aggregate"; "grouping": "grouping"; "groupRowComponent": "groupRowComponent"; "openLevels": "openLevels"; "selectType": "selectType"; "rowClass": "rowClass"; }, {}, never, never>;
60
63
  }
@@ -3,6 +3,7 @@ import { TableColumn } from '../contract/table-column';
3
3
  import { FilterState } from '../../filter/contarct/filter-state';
4
4
  import { TableService } from '../service/table.service';
5
5
  import { SelectType } from '../enum/select-type.enum';
6
+ import { TableRow } from '../contract/table-row';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class TableHeadComponent<T> implements OnInit, OnDestroy {
8
9
  private _svc;
@@ -10,10 +11,10 @@ export declare class TableHeadComponent<T> implements OnInit, OnDestroy {
10
11
  selectType: SelectType;
11
12
  showHeadCellMenu: boolean;
12
13
  private readonly tableHeadClass;
13
- gridTemplateColumns: string;
14
- get getTemplateColumns(): string;
15
14
  state: FilterState;
16
15
  selectTypeEnum: typeof SelectType;
16
+ lockedFlex: number;
17
+ lockedWidth: number;
17
18
  private _alive;
18
19
  private _columns;
19
20
  private _hiddenColumns;
@@ -21,9 +22,8 @@ export declare class TableHeadComponent<T> implements OnInit, OnDestroy {
21
22
  get columns(): TableColumn[];
22
23
  get locked(): TableColumn[];
23
24
  get unlocked(): TableColumn[];
25
+ data: TableRow<T>[];
24
26
  constructor(_svc: TableService<T>, _cdr: ChangeDetectorRef);
25
- getSpan(): string;
26
- getLockedGridTemplateColumns(columns: TableColumn[]): string;
27
27
  track(index: number, item: TableColumn): any;
28
28
  ngOnInit(): void;
29
29
  ngOnDestroy(): void;
@@ -1,23 +1,25 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { TableColumn } from '../contract/table-column';
3
3
  import { TableService } from '../service/table.service';
4
+ import { TableRow } from '../contract/table-row';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TableHeadGroupComponent<T> implements OnInit, OnDestroy {
6
7
  private _svc;
7
8
  private _cdr;
8
9
  showHeadCellMenu: boolean;
10
+ data: TableRow<T>[];
9
11
  set column(column: TableColumn);
10
12
  get column(): TableColumn;
13
+ get flexGrow(): any;
14
+ get flexBasis(): any;
11
15
  private _alive;
12
16
  private _column;
13
17
  private _hiddenColumns;
14
18
  private get _leaves();
15
- get gridColumnEnd(): string;
16
- get gridTemplateColumns(): string;
17
19
  constructor(_svc: TableService<T>, _cdr: ChangeDetectorRef);
18
20
  columnIsHidden(column: TableColumn): boolean;
19
21
  ngOnInit(): void;
20
22
  ngOnDestroy(): void;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadGroupComponent<any>, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadGroupComponent<any>, "teta-table-head-group", never, { "showHeadCellMenu": "showHeadCellMenu"; "column": "column"; }, {}, never, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadGroupComponent<any>, "teta-table-head-group", never, { "showHeadCellMenu": "showHeadCellMenu"; "data": "data"; "column": "column"; }, {}, never, never>;
23
25
  }
@@ -36,8 +36,9 @@ import * as i34 from "../toolbar/toolbar.module";
36
36
  import * as i35 from "../../directive/click-outside/click-outside.module";
37
37
  import * as i36 from "../../directive/resize-drag/resize-drag.module";
38
38
  import * as i37 from "@angular/cdk/scrolling";
39
+ import * as i38 from "../../directive/context-menu/context-menu.module";
39
40
  export declare class TableModule {
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.NumericCellComponent, typeof i3.ListCellComponent, typeof i4.DateCellComponent, typeof i5.StringCellComponent, typeof i6.HeadCellHostComponent, typeof i7.TableHeadComponent, typeof i8.TableBodyComponent, typeof i9.CellComponent, typeof i10.CellHostComponent, typeof i11.GroupRowComponent, typeof i12.TableHeadGroupComponent, typeof i13.HeadCellComponent, typeof i14.DefaultHeadCellComponent, typeof i15.SelectionCellComponent, typeof i16.SelectionHeadCellComponent, typeof i17.HeadCellDropdownComponent, typeof i18.DateTimeCellComponent, typeof i19.BooleanCellComponent], [typeof i20.CommonModule, typeof i21.FilterModule, typeof i22.FormsModule, typeof i23.CheckboxModule, typeof i24.IconModule, typeof i25.DropdownModule, typeof i26.TabsModule, typeof i27.SelectModule, typeof i28.NumberPipeModule, typeof i29.DatePickerModule, typeof i30.ButtonModule, typeof i31.HintModule, typeof i32.TreeModule, typeof i33.OnlyNumberModule, typeof i34.ToolbarModule, typeof i35.ClickOutsideModule, typeof i36.ResizeDragModule, typeof i37.ScrollingModule], [typeof i1.TableComponent, typeof i2.NumericCellComponent, typeof i3.ListCellComponent, typeof i4.DateCellComponent, typeof i5.StringCellComponent, typeof i6.HeadCellHostComponent, typeof i7.TableHeadComponent, typeof i8.TableBodyComponent, typeof i9.CellComponent, typeof i10.CellHostComponent, typeof i11.GroupRowComponent, typeof i18.DateTimeCellComponent, typeof i19.BooleanCellComponent]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.NumericCellComponent, typeof i3.ListCellComponent, typeof i4.DateCellComponent, typeof i5.StringCellComponent, typeof i6.HeadCellHostComponent, typeof i7.TableHeadComponent, typeof i8.TableBodyComponent, typeof i9.CellComponent, typeof i10.CellHostComponent, typeof i11.GroupRowComponent, typeof i12.TableHeadGroupComponent, typeof i13.HeadCellComponent, typeof i14.DefaultHeadCellComponent, typeof i15.SelectionCellComponent, typeof i16.SelectionHeadCellComponent, typeof i17.HeadCellDropdownComponent, typeof i18.DateTimeCellComponent, typeof i19.BooleanCellComponent], [typeof i20.CommonModule, typeof i21.FilterModule, typeof i22.FormsModule, typeof i23.CheckboxModule, typeof i24.IconModule, typeof i25.DropdownModule, typeof i26.TabsModule, typeof i27.SelectModule, typeof i28.NumberPipeModule, typeof i29.DatePickerModule, typeof i30.ButtonModule, typeof i31.HintModule, typeof i32.TreeModule, typeof i33.OnlyNumberModule, typeof i34.ToolbarModule, typeof i35.ClickOutsideModule, typeof i36.ResizeDragModule, typeof i37.ScrollingModule, typeof i38.ContextMenuModule], [typeof i1.TableComponent, typeof i2.NumericCellComponent, typeof i3.ListCellComponent, typeof i4.DateCellComponent, typeof i5.StringCellComponent, typeof i6.HeadCellHostComponent, typeof i7.TableHeadComponent, typeof i8.TableBodyComponent, typeof i9.CellComponent, typeof i10.CellHostComponent, typeof i11.GroupRowComponent, typeof i18.DateTimeCellComponent, typeof i19.BooleanCellComponent]>;
42
43
  static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
43
44
  }
@@ -8,6 +8,9 @@ export declare class StateUtil {
8
8
  static getSortState(state: FilterState, column: TableColumn): SortParam | null;
9
9
  static isColumnFiltered(state: FilterState, column: TableColumn): boolean;
10
10
  static sortColumn(sortEvent: SortEvent, state: FilterState): FilterState;
11
+ static sortAsc(sortEvent: SortEvent, state: FilterState): FilterState;
12
+ static sortDesc(sortEvent: SortEvent, state: FilterState): FilterState;
13
+ static sort(sortEvent: SortEvent, state: FilterState, asc: boolean): FilterState;
11
14
  static clearSortParam(sort: SortParam, sortParams: SortParam[]): SortParam[];
12
15
  static clearSort(column: TableColumn, state: FilterState): FilterState;
13
16
  static clearAllSort(state: FilterState): FilterState;
@@ -7,7 +7,6 @@ import { StringFilter } from '../../filter/contarct/string-filter';
7
7
  import { FilterState } from '../../filter/contarct/filter-state';
8
8
  export declare class TableUtil {
9
9
  static getColumnLeaves(column: TableColumn): TableColumn[] | null;
10
- static getGridTemplateColumns(columns: TableColumn[]): string;
11
10
  static getData<T>(data: T[], state: FilterState): T[];
12
11
  static sortData<T>(data: T[], state: FilterState): T[];
13
12
  static filterData<T>(data: T[], state: FilterState): T[];
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1pZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21tb24vY29udHJhY3QvaS1pZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJSWQge1xuICBpZDogYW55O1xufVxuIl19
@@ -1,9 +1,10 @@
1
1
  export * from './constructor-type';
2
2
  export * from './dynamic-data';
3
+ export * from './i-id';
3
4
  export * from './i-id-name';
4
5
  export * from './i-dictionary';
5
6
  export * from './i-tree-data';
6
7
  export * from './i-rect';
7
8
  export * from './teta-content-ref';
8
9
  export * from './auto-close-ignore-case';
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21tb24vY29udHJhY3QvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnN0cnVjdG9yLXR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9keW5hbWljLWRhdGEnO1xuZXhwb3J0ICogZnJvbSAnLi9pLWlkLW5hbWUnO1xuZXhwb3J0ICogZnJvbSAnLi9pLWRpY3Rpb25hcnknO1xuZXhwb3J0ICogZnJvbSAnLi9pLXRyZWUtZGF0YSc7XG5leHBvcnQgKiBmcm9tICcuL2ktcmVjdCc7XG5leHBvcnQgKiBmcm9tICcuL3RldGEtY29udGVudC1yZWYnO1xuZXhwb3J0ICogZnJvbSAnLi9hdXRvLWNsb3NlLWlnbm9yZS1jYXNlJztcbiJdfQ==
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21tb24vY29udHJhY3QvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnN0cnVjdG9yLXR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9keW5hbWljLWRhdGEnO1xuZXhwb3J0ICogZnJvbSAnLi9pLWlkJztcbmV4cG9ydCAqIGZyb20gJy4vaS1pZC1uYW1lJztcbmV4cG9ydCAqIGZyb20gJy4vaS1kaWN0aW9uYXJ5JztcbmV4cG9ydCAqIGZyb20gJy4vaS10cmVlLWRhdGEnO1xuZXhwb3J0ICogZnJvbSAnLi9pLXJlY3QnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXRhLWNvbnRlbnQtcmVmJztcbmV4cG9ydCAqIGZyb20gJy4vYXV0by1jbG9zZS1pZ25vcmUtY2FzZSc7XG4iXX0=