@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
@@ -0,0 +1,3 @@
1
+ export interface IId {
2
+ id: any;
3
+ }
@@ -1,5 +1,6 @@
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';
@@ -14,6 +14,7 @@ export declare class Chart3dComponent implements OnInit, AfterViewInit, OnDestro
14
14
  private _config;
15
15
  private SIDE_SIZE;
16
16
  private gridColor;
17
+ private axesColor;
17
18
  private _alive;
18
19
  constructor(_elementRef: ElementRef, _themeService: ThemeSwitchService);
19
20
  set config(config: Chart3dOptions);
@@ -2,6 +2,7 @@ import { Base3dPoint } from './base-3d-point';
2
2
  import { Series3d } from './series-3d';
3
3
  export declare class Chart3dOptions {
4
4
  axes?: {
5
+ min?: number;
5
6
  max?: number;
6
7
  };
7
8
  series: Series3d<Base3dPoint>[];
@@ -1,15 +1,15 @@
1
1
  import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { PickerLocaleService } from '../service/picker-locale.service';
4
3
  import { DatePeriod } from '../model/date-period';
5
- import { PickerLocaleModel } from '../model/picker-locale-model';
6
4
  import { DatePickerMode } from '../model/date-picker-mode.enum';
7
5
  import { Align } from '../../../common/enum/align.enum';
8
6
  import { VerticalAlign } from '../../../common/enum/vertical-align.enum';
7
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
8
+ import { TetaConfigService } from '../../../locale/teta-config.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare const DATE_PICKER_CONTROL_VALUE_ACCESSOR: any;
11
11
  export declare class DatePickerComponent implements ControlValueAccessor, OnInit, OnDestroy {
12
- localeService: PickerLocaleService;
12
+ localeService: TetaConfigService;
13
13
  private _cdr;
14
14
  private _elementRef;
15
15
  disabled: boolean;
@@ -25,13 +25,15 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
25
25
  align: Align;
26
26
  verticalAlign: VerticalAlign;
27
27
  appendToBody: boolean;
28
+ allowNull: boolean;
29
+ backdrop: boolean;
28
30
  showTime: boolean;
29
31
  set format(val: string);
30
32
  get format(): string;
31
33
  open: boolean;
32
34
  private readonly classDatepicker;
33
35
  private readonly tabindex;
34
- locale: PickerLocaleModel;
36
+ locale: TetaLocalisation;
35
37
  today: Date;
36
38
  datePickerModeEnum: typeof DatePickerMode;
37
39
  displayMode: DatePickerMode;
@@ -44,13 +46,14 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
44
46
  get currentValue(): Date;
45
47
  set currentValue(date: Date);
46
48
  get internalValue(): Date;
47
- constructor(localeService: PickerLocaleService, _cdr: ChangeDetectorRef, _elementRef: ElementRef);
49
+ constructor(localeService: TetaConfigService, _cdr: ChangeDetectorRef, _elementRef: ElementRef);
48
50
  keyUp(event: KeyboardEvent): void;
49
51
  writeValue(value: any): void;
50
52
  onChange: (_: any) => void;
51
53
  onTouched: () => void;
52
54
  registerOnChange(fn: (_: any) => void): void;
53
55
  registerOnTouched(fn: () => void): void;
56
+ setDisabledState(isDisabled: boolean): void;
54
57
  ngOnInit(): void;
55
58
  ngOnDestroy(): void;
56
59
  applyValue(date: Date): void;
@@ -73,5 +76,5 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
73
76
  setMode(mode: DatePickerMode): void;
74
77
  private emptyDate;
75
78
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "teta-date-picker", never, { "disabled": "disabled"; "invalid": "invalid"; "firstDayOfWeek": "firstDayOfWeek"; "disabledDates": "disabledDates"; "disabledPeriods": "disabledPeriods"; "disabledDays": "disabledDays"; "minDate": "minDate"; "maxDate": "maxDate"; "minYearDate": "minYearDate"; "maxYearDate": "maxYearDate"; "align": "align"; "verticalAlign": "verticalAlign"; "appendToBody": "appendToBody"; "showTime": "showTime"; "format": "format"; }, {}, never, never>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "teta-date-picker", never, { "disabled": "disabled"; "invalid": "invalid"; "firstDayOfWeek": "firstDayOfWeek"; "disabledDates": "disabledDates"; "disabledPeriods": "disabledPeriods"; "disabledDays": "disabledDays"; "minDate": "minDate"; "maxDate": "maxDate"; "minYearDate": "minYearDate"; "maxYearDate": "maxYearDate"; "align": "align"; "verticalAlign": "verticalAlign"; "appendToBody": "appendToBody"; "allowNull": "allowNull"; "backdrop": "backdrop"; "showTime": "showTime"; "format": "format"; }, {}, never, never>;
77
80
  }
@@ -1,13 +1,13 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { DayModel } from '../model/day-model';
3
3
  import { DatePeriod } from '../model/date-period';
4
- import { PickerLocaleService } from '../service/picker-locale.service';
5
- import { PickerLocaleModel } from '../model/picker-locale-model';
6
4
  import { ControlValueAccessor } from '@angular/forms';
5
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
6
+ import { TetaConfigService } from '../../../locale/teta-config.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare const DAY_SELECT_CONTROL_VALUE_ACCESSOR: any;
9
9
  export declare class DaySelectComponent implements OnInit, OnDestroy, ControlValueAccessor {
10
- localeService: PickerLocaleService;
10
+ localeService: TetaConfigService;
11
11
  private _cdr;
12
12
  private _elementRef;
13
13
  firstDayOfWeek: number;
@@ -20,7 +20,7 @@ export declare class DaySelectComponent implements OnInit, OnDestroy, ControlVal
20
20
  dateSelected: EventEmitter<Date>;
21
21
  monthSelected: EventEmitter<number>;
22
22
  yearSelected: EventEmitter<number>;
23
- locale: PickerLocaleModel;
23
+ locale: TetaLocalisation;
24
24
  value: Date;
25
25
  _currentValue: Date;
26
26
  set currentValue(val: Date);
@@ -28,7 +28,7 @@ export declare class DaySelectComponent implements OnInit, OnDestroy, ControlVal
28
28
  days: Array<DayModel>;
29
29
  weekDays: number[];
30
30
  private _alive;
31
- constructor(localeService: PickerLocaleService, _cdr: ChangeDetectorRef, _elementRef: ElementRef);
31
+ constructor(localeService: TetaConfigService, _cdr: ChangeDetectorRef, _elementRef: ElementRef);
32
32
  ngOnInit(): void;
33
33
  ngOnDestroy(): void;
34
34
  writeValue(model: Date): void;
@@ -1,12 +1,12 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { PickerLocaleModel } from '../model/picker-locale-model';
4
- import { PickerLocaleService } from '../service/picker-locale.service';
5
3
  import { DatePickerMode } from '../model/date-picker-mode.enum';
4
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
5
+ import { TetaConfigService } from '../../../locale/teta-config.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare const MONTH_PICKER_CONTROL_VALUE_ACCESSOR: any;
8
8
  export declare class MonthPickerComponent implements ControlValueAccessor, OnInit, OnDestroy {
9
- localeService: PickerLocaleService;
9
+ localeService: TetaConfigService;
10
10
  private _cdr;
11
11
  disabled: boolean;
12
12
  minDate: Date;
@@ -17,7 +17,7 @@ export declare class MonthPickerComponent implements ControlValueAccessor, OnIni
17
17
  private readonly classDatepicker;
18
18
  private readonly tabindex;
19
19
  datePickerModeEnum: typeof DatePickerMode;
20
- locale: PickerLocaleModel;
20
+ locale: TetaLocalisation;
21
21
  today: Date;
22
22
  displayMode: DatePickerMode;
23
23
  _value: Date | null;
@@ -30,7 +30,7 @@ export declare class MonthPickerComponent implements ControlValueAccessor, OnIni
30
30
  get currentYear(): number | null;
31
31
  set currentYear(v: number | null);
32
32
  private _alive;
33
- constructor(localeService: PickerLocaleService, _cdr: ChangeDetectorRef);
33
+ constructor(localeService: TetaConfigService, _cdr: ChangeDetectorRef);
34
34
  writeValue(value: any): void;
35
35
  initPicker(date: Date): void;
36
36
  setDefaults(): void;
@@ -1,12 +1,12 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { PickerLocaleModel } from '../model/picker-locale-model';
3
2
  import { PickerTouchService } from '../service/picker-touch.service';
3
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MonthSelectComponent implements OnInit, AfterViewInit, OnDestroy {
6
6
  private _elementRef;
7
7
  private _cdr;
8
8
  private _pickerTouchService;
9
- locale: PickerLocaleModel;
9
+ locale: TetaLocalisation;
10
10
  minDate: Date;
11
11
  maxDate: Date;
12
12
  size: number;
@@ -14,7 +14,7 @@ export declare class DropdownBase {
14
14
  verticalAlign: VerticalAlign;
15
15
  appendToBody: boolean;
16
16
  disabled: boolean;
17
- shadow: boolean;
17
+ backdrop: boolean;
18
18
  className: string | string[];
19
19
  set open(val: boolean);
20
20
  get open(): boolean;
@@ -25,6 +25,7 @@ export declare class DropdownBase {
25
25
  protected _head: ElementRef;
26
26
  protected _content: DropdownContentDirective;
27
27
  protected _body: HTMLElement | null;
28
+ protected _backdrop: HTMLElement | null;
28
29
  protected _open: boolean;
29
30
  protected _alive: boolean;
30
31
  constructor(_cdr: ChangeDetectorRef, _document: any, _elementRef: ElementRef<HTMLElement>, _zone: NgZone, _renderer: Renderer2);
@@ -35,5 +36,5 @@ export declare class DropdownBase {
35
36
  private openDropdown;
36
37
  private setPosition;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownBase, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownBase, never, never, { "align": "align"; "verticalAlign": "verticalAlign"; "appendToBody": "appendToBody"; "disabled": "disabled"; "shadow": "shadow"; "className": "className"; "open": "open"; "autoClose": "autoClose"; "autoCloseIgnore": "autoCloseIgnore"; }, { "openChange": "openChange"; }, ["_head", "_content"]>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownBase, never, never, { "align": "align"; "verticalAlign": "verticalAlign"; "appendToBody": "appendToBody"; "disabled": "disabled"; "backdrop": "backdrop"; "className": "className"; "open": "open"; "autoClose": "autoClose"; "autoCloseIgnore": "autoCloseIgnore"; }, { "openChange": "openChange"; }, ["_head", "_content"]>;
39
40
  }
@@ -3,9 +3,11 @@ import { EventEmitter } from '@angular/core';
3
3
  import { FilterItem } from '../contarct/filter-item';
4
4
  import { IFilter } from '../contarct/i-filter';
5
5
  import { IIdName } from '../../../common/contract/i-id-name';
6
- export declare abstract class FilterComponentBase {
6
+ import { TableRow } from '../../table/contract/table-row';
7
+ export declare abstract class FilterComponentBase<T> {
7
8
  abstract column: FilterItem;
8
9
  abstract state: FilterState;
10
+ abstract data: TableRow<T>[];
9
11
  abstract filterOptions: IIdName<any>[];
10
12
  abstract filterChanged: EventEmitter<IFilter>;
11
13
  }
@@ -5,10 +5,12 @@ import { IIdName } from '../../../common/contract/i-id-name';
5
5
  import { FilterBase } from '../base/filter-base';
6
6
  import { FilterState } from '../contarct/filter-state';
7
7
  import { BooleanFilter } from '../contarct/boolean-filter';
8
+ import { TableRow } from '../../table/contract/table-row';
8
9
  import * as i0 from "@angular/core";
9
- export declare class BooleanFilterComponent extends FilterComponentBase implements OnInit {
10
+ export declare class BooleanFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
10
11
  private changeDetector;
11
12
  column: FilterItem;
13
+ data: TableRow<T>[];
12
14
  filterOptions: IIdName<any>[];
13
15
  filterChanged: EventEmitter<FilterBase>;
14
16
  filter: BooleanFilter;
@@ -19,6 +21,6 @@ export declare class BooleanFilterComponent extends FilterComponentBase implemen
19
21
  ngOnInit(): void;
20
22
  setFilter(): void;
21
23
  private getFilter;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFilterComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanFilterComponent, "teta-boolean-filter", never, { "column": "column"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFilterComponent<any>, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanFilterComponent<any>, "teta-boolean-filter", never, { "column": "column"; "data": "data"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
24
26
  }
@@ -5,19 +5,26 @@ import { FilterBase } from '../base/filter-base';
5
5
  import { FilterComponentBase } from '../base/filter-component-base';
6
6
  import { FilterItem } from '../contarct/filter-item';
7
7
  import { IIdName } from '../../../common/contract/i-id-name';
8
+ import { TableRow } from '../../table/contract/table-row';
9
+ import { Observable } from 'rxjs';
10
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
11
+ import { TetaConfigService } from '../../../locale/teta-config.service';
8
12
  import * as i0 from "@angular/core";
9
- export declare class DateFilterComponent extends FilterComponentBase implements OnInit {
13
+ export declare class DateFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
10
14
  private changeDetector;
15
+ private _config;
11
16
  column: FilterItem;
17
+ data: TableRow<T>[];
12
18
  filterOptions: IIdName<any>[];
13
19
  filterChanged: EventEmitter<FilterBase>;
14
20
  filter: DateFilter;
15
21
  state$: FilterState;
16
22
  set state(val: FilterState);
17
23
  get state(): FilterState;
18
- constructor(changeDetector: ChangeDetectorRef);
24
+ locale: Observable<TetaLocalisation>;
25
+ constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
19
26
  ngOnInit(): void;
20
27
  private getFilter;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent, "teta-date-filter", never, { "column": "column"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent<any>, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent<any>, "teta-date-filter", never, { "column": "column"; "data": "data"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
23
30
  }
@@ -3,22 +3,25 @@ import { FilterState } from '../contarct/filter-state';
3
3
  import { FilterItem } from '../contarct/filter-item';
4
4
  import { FilterBase } from '../base/filter-base';
5
5
  import { IIdName } from '../../../common/contract/i-id-name';
6
+ import { TableRow } from '../../table/contract/table-row';
6
7
  import * as i0 from "@angular/core";
7
- export declare class FilterHostComponent implements OnInit, OnDestroy {
8
+ export declare class FilterHostComponent<T> implements OnInit, OnDestroy {
8
9
  private viewContainerRef;
9
10
  set column(val: FilterItem);
10
11
  set state(val: FilterState);
12
+ set data(data: TableRow<T>[]);
11
13
  set filterOptions(val: IIdName<any>[]);
12
14
  filterChanged: EventEmitter<FilterBase>;
13
15
  private _alive;
14
16
  private _column;
15
17
  private _state;
18
+ private _data;
16
19
  private _filterOptions;
17
20
  private _componentRef;
18
21
  private _init;
19
22
  constructor(viewContainerRef: ViewContainerRef);
20
23
  ngOnInit(): void;
21
24
  ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterHostComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterHostComponent, "teta-filter-host", never, { "column": "column"; "state": "state"; "filterOptions": "filterOptions"; }, { "filterChanged": "filterChanged"; }, never, never>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterHostComponent<any>, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterHostComponent<any>, "teta-filter-host", never, { "column": "column"; "state": "state"; "data": "data"; "filterOptions": "filterOptions"; }, { "filterChanged": "filterChanged"; }, never, never>;
24
27
  }
@@ -1,21 +1,20 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./filter-panel/filter-panel.component";
3
- import * as i2 from "./numeric-filter/numeric-filter.component";
4
- import * as i3 from "./string-filter/string-filter.component";
5
- import * as i4 from "./list-filter/list-filter.component";
6
- import * as i5 from "./date-filter/date-filter.component";
7
- import * as i6 from "./filter-host/filter-host.component";
8
- import * as i7 from "./boolean-filter/boolean-filter.component";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "../select/select.module";
11
- import * as i10 from "@angular/forms";
12
- import * as i11 from "../date-picker/date-picker.module";
13
- import * as i12 from "../radio/radio.module";
14
- import * as i13 from "../input/input.module";
15
- import * as i14 from "../checkbox/checkbox.module";
16
- import * as i15 from "../../directive/only-number/only-number.module";
2
+ import * as i1 from "./numeric-filter/numeric-filter.component";
3
+ import * as i2 from "./string-filter/string-filter.component";
4
+ import * as i3 from "./list-filter/list-filter.component";
5
+ import * as i4 from "./date-filter/date-filter.component";
6
+ import * as i5 from "./filter-host/filter-host.component";
7
+ import * as i6 from "./boolean-filter/boolean-filter.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "../select/select.module";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "../date-picker/date-picker.module";
12
+ import * as i11 from "../radio/radio.module";
13
+ import * as i12 from "../input/input.module";
14
+ import * as i13 from "../checkbox/checkbox.module";
15
+ import * as i14 from "../../directive/only-number/only-number.module";
17
16
  export declare class FilterModule {
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<FilterModule, [typeof i1.FilterPanelComponent, typeof i2.NumericFilterComponent, typeof i3.StringFilterComponent, typeof i4.ListFilterComponent, typeof i5.DateFilterComponent, typeof i6.FilterHostComponent, typeof i7.BooleanFilterComponent], [typeof i8.CommonModule, typeof i9.SelectModule, typeof i10.FormsModule, typeof i11.DatePickerModule, typeof i12.RadioModule, typeof i13.InputModule, typeof i14.CheckboxModule, typeof i15.OnlyNumberModule], [typeof i1.FilterPanelComponent, typeof i2.NumericFilterComponent, typeof i3.StringFilterComponent, typeof i4.ListFilterComponent, typeof i5.DateFilterComponent, typeof i6.FilterHostComponent, typeof i7.BooleanFilterComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FilterModule, [typeof i1.NumericFilterComponent, typeof i2.StringFilterComponent, typeof i3.ListFilterComponent, typeof i4.DateFilterComponent, typeof i5.FilterHostComponent, typeof i6.BooleanFilterComponent], [typeof i7.CommonModule, typeof i8.SelectModule, typeof i9.FormsModule, typeof i10.DatePickerModule, typeof i11.RadioModule, typeof i12.InputModule, typeof i13.CheckboxModule, typeof i14.OnlyNumberModule], [typeof i1.NumericFilterComponent, typeof i2.StringFilterComponent, typeof i3.ListFilterComponent, typeof i4.DateFilterComponent, typeof i5.FilterHostComponent, typeof i6.BooleanFilterComponent]>;
20
19
  static ɵinj: i0.ɵɵInjectorDeclaration<FilterModule>;
21
20
  }
@@ -5,26 +5,33 @@ import { FilterBase } from '../base/filter-base';
5
5
  import { FilterState } from '../contarct/filter-state';
6
6
  import { FilterItem } from '../contarct/filter-item';
7
7
  import { IIdName } from '../../../common/contract/i-id-name';
8
+ import { TableRow } from '../../table/contract/table-row';
9
+ import { Observable } from 'rxjs';
10
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
11
+ import { TetaConfigService } from '../../../locale/teta-config.service';
8
12
  import * as i0 from "@angular/core";
9
- export declare class ListFilterComponent extends FilterComponentBase implements OnInit {
13
+ export declare class ListFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
10
14
  private changeDetector;
15
+ private _config;
11
16
  column: FilterItem;
17
+ data: TableRow<T>[];
12
18
  filterOptions: IIdName<any>[];
13
19
  filterChanged: EventEmitter<FilterBase>;
14
20
  filter: ListFilter;
15
21
  state$: FilterState;
16
22
  search: string;
23
+ locale: Observable<TetaLocalisation>;
17
24
  get visibleOptions(): IIdName<any>[];
18
25
  set state(val: FilterState);
19
26
  get state(): FilterState;
20
27
  excluded: boolean;
21
- constructor(changeDetector: ChangeDetectorRef);
28
+ constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
22
29
  ngOnInit(): void;
23
30
  all(): boolean;
24
31
  setAll(value: boolean): void;
25
32
  setType(): void;
26
33
  setFilter(value: any[]): void;
27
34
  private getFilter;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ListFilterComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ListFilterComponent, "teta-list-filter", never, { "column": "column"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListFilterComponent<any>, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListFilterComponent<any>, "teta-list-filter", never, { "column": "column"; "data": "data"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
30
37
  }
@@ -5,19 +5,26 @@ import { FilterBase } from '../base/filter-base';
5
5
  import { FilterState } from '../contarct/filter-state';
6
6
  import { FilterItem } from '../contarct/filter-item';
7
7
  import { IIdName } from '../../../common/contract/i-id-name';
8
+ import { TableRow } from '../../table/contract/table-row';
9
+ import { TetaConfigService } from '../../../locale/teta-config.service';
10
+ import { Observable } from 'rxjs';
11
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
8
12
  import * as i0 from "@angular/core";
9
- export declare class NumericFilterComponent extends FilterComponentBase implements OnInit {
13
+ export declare class NumericFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
10
14
  private changeDetector;
15
+ private _config;
11
16
  column: FilterItem;
17
+ data: TableRow<T>[];
12
18
  filterOptions: IIdName<any>[];
13
19
  filterChanged: EventEmitter<FilterBase>;
14
20
  filter: NumericFilter;
15
21
  private state$;
16
22
  set state(val: FilterState);
17
23
  get state(): FilterState;
18
- constructor(changeDetector: ChangeDetectorRef);
24
+ locale: Observable<TetaLocalisation>;
25
+ constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
19
26
  ngOnInit(): void;
20
27
  private getFilter;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<NumericFilterComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterComponent, "teta-numeric-filter", never, { "column": "column"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericFilterComponent<any>, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterComponent<any>, "teta-numeric-filter", never, { "column": "column"; "data": "data"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
23
30
  }
@@ -1,5 +1,4 @@
1
1
  export * from './filter.module';
2
- export * from './filter-panel/filter-panel.component';
3
2
  export * from './date-filter/date-filter.component';
4
3
  export * from './list-filter/list-filter.component';
5
4
  export * from './numeric-filter/numeric-filter.component';
@@ -5,20 +5,27 @@ import { FilterBase } from '../base/filter-base';
5
5
  import { FilterComponentBase } from '../base/filter-component-base';
6
6
  import { FilterItem } from '../contarct/filter-item';
7
7
  import { IIdName } from '../../../common/contract/i-id-name';
8
+ import { TableRow } from '../../table/contract/table-row';
9
+ import { TetaConfigService } from '../../../locale/teta-config.service';
10
+ import { Observable } from 'rxjs';
11
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
8
12
  import * as i0 from "@angular/core";
9
- export declare class StringFilterComponent extends FilterComponentBase implements OnInit {
13
+ export declare class StringFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
10
14
  private changeDetector;
15
+ private _config;
11
16
  column: FilterItem;
17
+ data: TableRow<T>[];
12
18
  filterOptions: IIdName<any>[];
13
19
  filterChanged: EventEmitter<FilterBase>;
14
20
  filter: StringFilter;
15
21
  state$: FilterState;
16
22
  set state(val: FilterState);
17
23
  get state(): FilterState;
18
- constructor(changeDetector: ChangeDetectorRef);
24
+ locale: Observable<TetaLocalisation>;
25
+ constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
19
26
  ngOnInit(): void;
20
27
  setFilter(): void;
21
28
  private getFilter;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<StringFilterComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<StringFilterComponent, "teta-string-filter", never, { "column": "column"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<StringFilterComponent<any>, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<StringFilterComponent<any>, "teta-string-filter", never, { "column": "column"; "data": "data"; "filterOptions": "filterOptions"; "state": "state"; }, { "filterChanged": "filterChanged"; }, never, never>;
24
31
  }
@@ -9,7 +9,7 @@ export declare class TextFieldComponent implements ControlValueAccessor {
9
9
  onlyNumber: boolean;
10
10
  invalid: boolean;
11
11
  input: ElementRef;
12
- private readonly tabindex;
12
+ private get tabindex();
13
13
  private readonly textField;
14
14
  value: string;
15
15
  constructor(_cdr: ChangeDetectorRef);
@@ -18,7 +18,7 @@ export declare class TextFieldComponent implements ControlValueAccessor {
18
18
  emitBlur(): void;
19
19
  registerOnChange(fn: any): void;
20
20
  registerOnTouched(fn: any): void;
21
- setDisabledState(isDisabled: boolean): void;
21
+ setDisabledState?(isDisabled: boolean): void;
22
22
  writeValue(input: string): void;
23
23
  onChange(input: string): void;
24
24
  onTouched(): void;
@@ -30,7 +30,7 @@ export declare class SelectComponent implements ControlValueAccessor, OnInit {
30
30
  valueDirective: SelectValueDirective;
31
31
  open: boolean;
32
32
  private readonly selectClass;
33
- private readonly tabindex;
33
+ private get tabindex();
34
34
  get isDisabled(): boolean;
35
35
  value: any | any[];
36
36
  searchText: string;
@@ -11,6 +11,8 @@ export declare abstract class CellComponentBase<T> implements OnInit, OnDestroy
11
11
  protected cdr: ChangeDetectorRef;
12
12
  private readonly tableCellComponent;
13
13
  get edit(): boolean;
14
+ get editable(): boolean;
15
+ get index(): number;
14
16
  _edit: boolean;
15
17
  column: TableColumn;
16
18
  filterOptions: IIdName<any>[];
@@ -24,7 +26,7 @@ export declare abstract class CellComponentBase<T> implements OnInit, OnDestroy
24
26
  private init;
25
27
  private start;
26
28
  private stop;
27
- abstract startEdit(initiator: ICellCoordinates<T>, type: 'cell' | 'row'): void;
29
+ abstract startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
28
30
  abstract stopEdit(): void;
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<CellComponentBase<any>, never>;
30
32
  static ɵcmp: i0.ɵɵComponentDeclaration<CellComponentBase<any>, "ng-component", never, {}, {}, never, never>;
@@ -1,7 +1,9 @@
1
1
  import { TableColumn } from '../contract/table-column';
2
+ import { TableRow } from '../contract/table-row';
2
3
  import * as i0 from "@angular/core";
3
- export declare abstract class HeadCellComponentBase {
4
+ export declare abstract class HeadCellComponentBase<T> {
4
5
  abstract column: TableColumn;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellComponentBase, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellComponentBase, "ng-component", never, {}, {}, never, never>;
6
+ abstract data: TableRow<T>[];
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellComponentBase<any>, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellComponentBase<any>, "ng-component", never, {}, {}, never, never>;
7
9
  }
@@ -1,6 +1,4 @@
1
- import { TableRow } from './table-row';
2
- import { TableColumn } from './table-column';
3
- export interface ICellCoordinates<T> {
4
- row: TableRow<T>;
5
- column: TableColumn;
1
+ export interface ICellCoordinates {
2
+ row: number;
3
+ column: string;
6
4
  }
@@ -1,4 +1,4 @@
1
1
  import { ICellCoordinates } from './i-cell-coordinates';
2
- export interface ICellEvent<T> extends ICellCoordinates<T> {
2
+ export interface ICellEvent extends ICellCoordinates {
3
3
  event: Event;
4
4
  }
@@ -0,0 +1,12 @@
1
+ import { TableRow } from './table-row';
2
+ import { TableColumn } from './table-column';
3
+ export interface ICellInstance<T> {
4
+ row: TableRow<T>;
5
+ column: TableColumn;
6
+ }
7
+ export interface ICellInstanceEvent<T> extends ICellInstance<T> {
8
+ event: Event;
9
+ }
10
+ export interface ICellInstanceValue<T> extends ICellInstance<T> {
11
+ value: any;
12
+ }
@@ -1,5 +1,4 @@
1
1
  import { ICellCoordinates } from './i-cell-coordinates';
2
- export interface ICellValue<T> {
3
- cell: ICellCoordinates<T>;
2
+ export interface ICellValue extends ICellCoordinates {
4
3
  value: any;
5
4
  }
@@ -3,9 +3,9 @@ export * from './column-reorder-event';
3
3
  export * from './column-resize-event';
4
4
  export * from './i-cell-coordinates';
5
5
  export * from './i-cell-event';
6
+ export * from './i-cell-instance';
6
7
  export * from './i-cell-value';
7
8
  export * from './sort-event';
8
9
  export * from './table-column';
9
10
  export * from './table-column-store';
10
- export * from './table-context-menu-config';
11
11
  export * from './table-row';
@@ -5,7 +5,7 @@ import { ListFilterType } from '../../filter/enum/list-filter-type.enum';
5
5
  import { TableRow } from './table-row';
6
6
  import { AggregationType } from '../enum/aggregation-type.enum';
7
7
  import { TemplateRef } from '@angular/core';
8
- import { ICellCoordinates } from './i-cell-coordinates';
8
+ import { ICellInstance } from './i-cell-instance';
9
9
  export declare class TableColumn extends FilterItem {
10
10
  /**
11
11
  * Ширина
@@ -50,7 +50,7 @@ export declare class TableColumn extends FilterItem {
50
50
  /**
51
51
  * Колонка доступна для редактирования
52
52
  */
53
- editable: boolean | ((coordinates: ICellCoordinates<any>) => boolean);
53
+ editable: boolean | ((coordinates: ICellInstance<any>) => boolean);
54
54
  /**
55
55
  * Компонент для рендера ячейки
56
56
  */
@@ -123,7 +123,7 @@ export declare class TableColumn extends FilterItem {
123
123
  headCellClass?: string[];
124
124
  cellClass?: string[];
125
125
  data?: any;
126
- editable?: boolean | ((coordinates: ICellCoordinates<any>) => boolean);
126
+ editable?: boolean | ((coordinates: ICellInstance<any>) => boolean);
127
127
  objectType?: boolean;
128
128
  cellComponent?: any;
129
129
  headCellComponent?: any;
@@ -14,7 +14,7 @@ export declare class BooleanCellComponent<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<BooleanCellComponent<any>, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCellComponent<any>, "teta-boolean-cell", never, { "column": "column"; "row": "row"; }, {}, never, never>;
@@ -15,7 +15,7 @@ export declare class DateCellComponent<T> extends CellComponentBase<T> implement
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<DateCellComponent<any>, never>;
21
21
  static ɵcmp: i0.ɵɵComponentDeclaration<DateCellComponent<any>, "teta-date-cell", never, { "column": "column"; "row": "row"; }, {}, never, never>;