@tetacom/ng-components 1.1.9 → 1.1.11

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 (253) hide show
  1. package/.eslintrc.json +37 -0
  2. package/common/service/dynamic-component.service.d.ts +4 -4
  3. package/common/service/overlay-container.service.d.ts +2 -2
  4. package/common/util/array-util.d.ts +2 -2
  5. package/common/util/dom-util.d.ts +1 -1
  6. package/component/accordion/accordion/accordion.component.d.ts +1 -4
  7. package/component/accordion/accordion-item/accordion-item.component.d.ts +5 -6
  8. package/component/date-picker/base-calendar.d.ts +7 -7
  9. package/component/date-picker/base-picker.d.ts +3 -3
  10. package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +3 -3
  11. package/component/date-picker/date-range/date-range.component.d.ts +5 -5
  12. package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +3 -3
  13. package/component/dropdown/dropdown-base.d.ts +2 -2
  14. package/component/file-upload/file-upload-area/file-upload-area.component.d.ts +8 -10
  15. package/component/filter/contarct/filter-item.d.ts +17 -16
  16. package/component/input/input/input.component.d.ts +5 -8
  17. package/component/property-grid/property-grid/property-grid.component.d.ts +3 -3
  18. package/component/select/select/select.component.d.ts +8 -9
  19. package/component/table/base/cell-component-base.d.ts +23 -13
  20. package/component/table/cell/cell.component.d.ts +5 -11
  21. package/component/table/cell-host/cell-host.component.d.ts +6 -6
  22. package/component/table/contract/i-cell-instance.d.ts +2 -1
  23. package/component/table/contract/public-api.d.ts +1 -0
  24. package/component/table/contract/table-column.d.ts +48 -39
  25. package/component/table/contract/table-row.d.ts +8 -0
  26. package/component/table/default/boolean-cell/boolean-cell.component.d.ts +1 -2
  27. package/component/table/default/date-cell/date-cell.component.d.ts +2 -3
  28. package/component/table/default/date-time-cell/date-time-cell.component.d.ts +2 -3
  29. package/component/table/default/list-cell/list-cell.component.d.ts +5 -7
  30. package/component/table/default/numeric-cell/numeric-cell.component.d.ts +1 -3
  31. package/component/table/default/string-cell/string-cell.component.d.ts +2 -3
  32. package/component/table/service/table.service.d.ts +32 -31
  33. package/component/table/table/table.component.d.ts +11 -10
  34. package/component/table/table-body/table-body.component.d.ts +13 -11
  35. package/component/table/table-head/table-head.component.d.ts +2 -2
  36. package/component/table/table.module.d.ts +1 -1
  37. package/directive/context-menu/context-menu.directive.d.ts +4 -5
  38. package/directive/drag-drop/drag.directive.d.ts +4 -4
  39. package/directive/drag-sort/drag-sort-container.directive.d.ts +2 -3
  40. package/directive/dynamic-content-base.directive.d.ts +8 -9
  41. package/directive/hint/hint.directive.d.ts +5 -5
  42. package/directive/tooltip/tooltip.directive.d.ts +3 -3
  43. package/esm2022/common/service/click.service.mjs +3 -3
  44. package/esm2022/common/service/dynamic-component.service.mjs +6 -6
  45. package/esm2022/common/service/overlay-container.service.mjs +6 -6
  46. package/esm2022/common/util/array-util.mjs +6 -5
  47. package/esm2022/common/util/dom-util.mjs +4 -3
  48. package/esm2022/common/util/position-util.mjs +10 -5
  49. package/esm2022/component/accordion/accordion/accordion.component.mjs +6 -10
  50. package/esm2022/component/accordion/accordion-content.directive.mjs +3 -3
  51. package/esm2022/component/accordion/accordion-head/accordion-head.component.mjs +3 -3
  52. package/esm2022/component/accordion/accordion-item/accordion-item.component.mjs +7 -9
  53. package/esm2022/component/accordion/accordion.module.mjs +4 -4
  54. package/esm2022/component/autocomplete/autocomplete/autocomplete.component.mjs +3 -3
  55. package/esm2022/component/autocomplete/autocomplete.module.mjs +4 -4
  56. package/esm2022/component/avatar/avatar/avatar.component.mjs +3 -3
  57. package/esm2022/component/avatar/avatar.module.mjs +4 -4
  58. package/esm2022/component/button/button/button.component.mjs +3 -3
  59. package/esm2022/component/button/button.module.mjs +4 -4
  60. package/esm2022/component/chart-3d/chart-3d.module.mjs +4 -4
  61. package/esm2022/component/chart-3d/chart3d/chart3d.component.mjs +3 -3
  62. package/esm2022/component/checkbox/checkbox/checkbox.component.mjs +5 -5
  63. package/esm2022/component/checkbox/checkbox.module.mjs +4 -4
  64. package/esm2022/component/date-picker/base-calendar.mjs +55 -21
  65. package/esm2022/component/date-picker/base-picker.mjs +4 -4
  66. package/esm2022/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +11 -9
  67. package/esm2022/component/date-picker/date-picker/date-picker.component.mjs +5 -5
  68. package/esm2022/component/date-picker/date-picker.module.mjs +4 -4
  69. package/esm2022/component/date-picker/date-range/date-range.component.mjs +11 -11
  70. package/esm2022/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +14 -12
  71. package/esm2022/component/date-picker/day-picker/day-item/day-item.component.mjs +3 -3
  72. package/esm2022/component/date-picker/day-picker/day-picker.component.mjs +3 -3
  73. package/esm2022/component/date-picker/month-picker/month-picker.component.mjs +3 -3
  74. package/esm2022/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +3 -3
  75. package/esm2022/component/date-picker/year-picker/year-picker.component.mjs +3 -3
  76. package/esm2022/component/delimiter/delimiter/delimiter.component.mjs +3 -3
  77. package/esm2022/component/delimiter/delimiter.module.mjs +4 -4
  78. package/esm2022/component/divider/divider/divider.component.mjs +3 -3
  79. package/esm2022/component/divider/divider.module.mjs +4 -4
  80. package/esm2022/component/dropdown/dropdown/dropdown.component.mjs +3 -3
  81. package/esm2022/component/dropdown/dropdown-base.mjs +20 -16
  82. package/esm2022/component/dropdown/dropdown-content.directive.mjs +3 -3
  83. package/esm2022/component/dropdown/dropdown-head.directive.mjs +3 -3
  84. package/esm2022/component/dropdown/dropdown.directive.mjs +3 -3
  85. package/esm2022/component/dropdown/dropdown.module.mjs +4 -4
  86. package/esm2022/component/dynamic-component/dynamic-component.module.mjs +4 -4
  87. package/esm2022/component/dynamic-component/popup-content/popup-content.component.mjs +3 -3
  88. package/esm2022/component/expand-card/expand-card/expand-card.component.mjs +3 -3
  89. package/esm2022/component/expand-card/expand-card.module.mjs +4 -4
  90. package/esm2022/component/expand-card/expand-item/expand-item.component.mjs +3 -3
  91. package/esm2022/component/expand-panel/expand-panel/expand-panel.component.mjs +3 -3
  92. package/esm2022/component/expand-panel/expand-panel-content.directive.mjs +3 -3
  93. package/esm2022/component/expand-panel/expand-panel-head.directive.mjs +3 -3
  94. package/esm2022/component/expand-panel/expand-panel.module.mjs +4 -4
  95. package/esm2022/component/file-upload/file-item/file-item.component.mjs +3 -3
  96. package/esm2022/component/file-upload/file-upload-area/file-upload-area.component.mjs +12 -12
  97. package/esm2022/component/file-upload/file-upload.module.mjs +4 -4
  98. package/esm2022/component/filter/boolean-filter/boolean-filter.component.mjs +3 -3
  99. package/esm2022/component/filter/contarct/filter-item.mjs +1 -1
  100. package/esm2022/component/filter/date-filter/date-filter.component.mjs +3 -3
  101. package/esm2022/component/filter/filter-host/filter-host.component.mjs +3 -3
  102. package/esm2022/component/filter/filter.module.mjs +4 -4
  103. package/esm2022/component/filter/list-filter/list-filter.component.mjs +3 -3
  104. package/esm2022/component/filter/numeric-filter/numeric-filter.component.mjs +3 -3
  105. package/esm2022/component/filter/string-filter/string-filter.component.mjs +3 -3
  106. package/esm2022/component/icon/icon/icon.component.mjs +3 -3
  107. package/esm2022/component/icon/icon-file/icon-file.component.mjs +3 -3
  108. package/esm2022/component/icon/icon-file/icon-file.module.mjs +4 -4
  109. package/esm2022/component/icon/icon-sprite.directive.mjs +3 -3
  110. package/esm2022/component/icon/icon.module.mjs +4 -4
  111. package/esm2022/component/icon/icon.service.mjs +3 -3
  112. package/esm2022/component/input/color-input/color-input.component.mjs +7 -9
  113. package/esm2022/component/input/form-group-title/form-group-title.component.mjs +3 -3
  114. package/esm2022/component/input/input/input.component.mjs +7 -9
  115. package/esm2022/component/input/input.module.mjs +4 -4
  116. package/esm2022/component/input/text-field/text-field.component.mjs +3 -3
  117. package/esm2022/component/message/message/message.component.mjs +3 -3
  118. package/esm2022/component/message/message-host/message-host.component.mjs +3 -3
  119. package/esm2022/component/message/message.module.mjs +4 -4
  120. package/esm2022/component/message/message.service.mjs +3 -3
  121. package/esm2022/component/modal/dialog/dialog.component.mjs +3 -3
  122. package/esm2022/component/modal/dialog.service.mjs +3 -3
  123. package/esm2022/component/modal/modal-container/modal-container.component.mjs +3 -3
  124. package/esm2022/component/modal/modal.module.mjs +4 -4
  125. package/esm2022/component/modal/modal.service.mjs +3 -3
  126. package/esm2022/component/pager/pager/pager.component.mjs +3 -3
  127. package/esm2022/component/pager/pager.module.mjs +4 -4
  128. package/esm2022/component/panel/panel/panel.component.mjs +3 -3
  129. package/esm2022/component/panel/panel.module.mjs +4 -4
  130. package/esm2022/component/progress-bar/progress-bar/progress-bar.component.mjs +3 -3
  131. package/esm2022/component/progress-bar/progress-bar.module.mjs +4 -4
  132. package/esm2022/component/property-grid/property-grid/property-grid-group/property-grid-group.component.mjs +3 -3
  133. package/esm2022/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +4 -20
  134. package/esm2022/component/property-grid/property-grid/property-grid-item-description.directive.mjs +3 -3
  135. package/esm2022/component/property-grid/property-grid/property-grid.component.mjs +12 -15
  136. package/esm2022/component/property-grid/property-grid.module.mjs +4 -4
  137. package/esm2022/component/radio/radio/radio.component.mjs +3 -3
  138. package/esm2022/component/radio/radio-button/radio-button.component.mjs +3 -3
  139. package/esm2022/component/radio/radio.module.mjs +4 -4
  140. package/esm2022/component/resize-panel/resize-panel/resize-panel.component.mjs +3 -3
  141. package/esm2022/component/resize-panel/resize-panel.module.mjs +4 -4
  142. package/esm2022/component/select/select/select.component.mjs +18 -20
  143. package/esm2022/component/select/select-option.directive.mjs +3 -3
  144. package/esm2022/component/select/select-value.directive.mjs +3 -3
  145. package/esm2022/component/select/select.module.mjs +4 -4
  146. package/esm2022/component/sidebar/sidebar/sidebar.component.mjs +3 -3
  147. package/esm2022/component/sidebar/sidebar.module.mjs +4 -4
  148. package/esm2022/component/switch/switch/switch.component.mjs +3 -3
  149. package/esm2022/component/switch/switch-button/switch-button.component.mjs +3 -3
  150. package/esm2022/component/switch/switch.module.mjs +4 -4
  151. package/esm2022/component/switch/switch.service.mjs +3 -3
  152. package/esm2022/component/table/base/cell-component-base.mjs +97 -40
  153. package/esm2022/component/table/base/head-cell-component-base.mjs +3 -3
  154. package/esm2022/component/table/cell/cell.component.mjs +6 -16
  155. package/esm2022/component/table/cell-host/cell-host.component.mjs +11 -11
  156. package/esm2022/component/table/contract/i-cell-coordinates.mjs +1 -1
  157. package/esm2022/component/table/contract/i-cell-event.mjs +1 -1
  158. package/esm2022/component/table/contract/i-cell-instance.mjs +1 -1
  159. package/esm2022/component/table/contract/i-cell-value.mjs +1 -1
  160. package/esm2022/component/table/contract/public-api.mjs +2 -1
  161. package/esm2022/component/table/contract/table-column.mjs +8 -5
  162. package/esm2022/component/table/contract/table-row.mjs +9 -0
  163. package/esm2022/component/table/default/boolean-cell/boolean-cell.component.mjs +8 -8
  164. package/esm2022/component/table/default/date-cell/date-cell.component.mjs +10 -10
  165. package/esm2022/component/table/default/date-time-cell/date-time-cell.component.mjs +5 -9
  166. package/esm2022/component/table/default/default-head-cell/default-head-cell.component.mjs +3 -3
  167. package/esm2022/component/table/default/list-cell/list-cell.component.mjs +9 -16
  168. package/esm2022/component/table/default/numeric-cell/numeric-cell.component.mjs +6 -18
  169. package/esm2022/component/table/default/string-cell/string-cell.component.mjs +6 -17
  170. package/esm2022/component/table/head-cell/head-cell.component.mjs +3 -3
  171. package/esm2022/component/table/head-cell-dropdown/head-cell-dropdown.component.mjs +3 -3
  172. package/esm2022/component/table/head-cell-host/head-cell-host.component.mjs +3 -3
  173. package/esm2022/component/table/selection-cell/selection-cell.component.mjs +3 -3
  174. package/esm2022/component/table/selection-head-cell/selection-head-cell.component.mjs +3 -3
  175. package/esm2022/component/table/service/table.service.mjs +106 -77
  176. package/esm2022/component/table/table/table.component.mjs +48 -44
  177. package/esm2022/component/table/table-body/table-body.component.mjs +36 -44
  178. package/esm2022/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.mjs +3 -3
  179. package/esm2022/component/table/table-head/main-dropdown-tab/main-dropdown-tab.component.mjs +3 -3
  180. package/esm2022/component/table/table-head/table-head.component.mjs +13 -14
  181. package/esm2022/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +3 -3
  182. package/esm2022/component/table/table-head-group/table-head-group.component.mjs +3 -3
  183. package/esm2022/component/table/table.module.mjs +11 -8
  184. package/esm2022/component/tabs/tab/tab.component.mjs +3 -3
  185. package/esm2022/component/tabs/tab-content.directive.mjs +3 -3
  186. package/esm2022/component/tabs/tab-title.directive.mjs +3 -3
  187. package/esm2022/component/tabs/tabs/tabs.component.mjs +3 -3
  188. package/esm2022/component/tabs/tabs.module.mjs +4 -4
  189. package/esm2022/component/theme-switch/theme-switch/theme-switch.component.mjs +3 -3
  190. package/esm2022/component/theme-switch/theme-switch.module.mjs +4 -4
  191. package/esm2022/component/theme-switch/theme-switch.service.mjs +3 -3
  192. package/esm2022/component/toggle/toggle/toggle.component.mjs +3 -3
  193. package/esm2022/component/toggle/toggle.module.mjs +4 -4
  194. package/esm2022/component/toolbar/toolbar/toolbar.component.mjs +3 -3
  195. package/esm2022/component/toolbar/toolbar.module.mjs +4 -4
  196. package/esm2022/component/tree/tree/tree.component.mjs +3 -3
  197. package/esm2022/component/tree/tree-item/tree-item.component.mjs +3 -3
  198. package/esm2022/component/tree/tree-item-toggle/tree-item-toggle.component.mjs +3 -3
  199. package/esm2022/component/tree/tree.module.mjs +4 -4
  200. package/esm2022/component/tree/tree.service.mjs +3 -3
  201. package/esm2022/directive/auto-position/auto-position.directive.mjs +3 -3
  202. package/esm2022/directive/auto-position/auto-position.module.mjs +4 -4
  203. package/esm2022/directive/click-outside/click-outside.directive.mjs +3 -3
  204. package/esm2022/directive/click-outside/click-outside.module.mjs +4 -4
  205. package/esm2022/directive/context-menu/context-menu.directive.mjs +10 -10
  206. package/esm2022/directive/context-menu/context-menu.module.mjs +4 -4
  207. package/esm2022/directive/disable-control/disable-control.directive.mjs +3 -3
  208. package/esm2022/directive/disable-control/disable-control.module.mjs +4 -4
  209. package/esm2022/directive/drag-drop/drag-container.directive.mjs +3 -3
  210. package/esm2022/directive/drag-drop/drag-drop.module.mjs +4 -4
  211. package/esm2022/directive/drag-drop/drag-drop.service.mjs +3 -3
  212. package/esm2022/directive/drag-drop/drag-placeholder.directive.mjs +3 -3
  213. package/esm2022/directive/drag-drop/drag-preview.directive.mjs +3 -3
  214. package/esm2022/directive/drag-drop/drag.directive.mjs +20 -16
  215. package/esm2022/directive/drag-sort/drag-sort-container.directive.mjs +6 -10
  216. package/esm2022/directive/drag-sort/drag-sort-item.directive.mjs +4 -4
  217. package/esm2022/directive/drag-sort/drag-sort.module.mjs +4 -4
  218. package/esm2022/directive/dynamic-content-base.directive.mjs +8 -10
  219. package/esm2022/directive/highlight/highlight.directive.mjs +3 -3
  220. package/esm2022/directive/highlight/highlight.module.mjs +4 -4
  221. package/esm2022/directive/hint/hint.directive.mjs +13 -10
  222. package/esm2022/directive/hint/hint.module.mjs +4 -4
  223. package/esm2022/directive/let/let.directive.mjs +3 -3
  224. package/esm2022/directive/let/let.module.mjs +4 -4
  225. package/esm2022/directive/loader/loader.directive.mjs +8 -10
  226. package/esm2022/directive/loader/loader.module.mjs +4 -4
  227. package/esm2022/directive/no-autofill/no-autofill.directive.mjs +3 -3
  228. package/esm2022/directive/no-autofill/no-autofill.module.mjs +4 -4
  229. package/esm2022/directive/only-number/only-number.directive.mjs +4 -8
  230. package/esm2022/directive/only-number/only-number.module.mjs +4 -4
  231. package/esm2022/directive/resize-drag/resize-drag.directive.mjs +3 -3
  232. package/esm2022/directive/resize-drag/resize-drag.module.mjs +4 -4
  233. package/esm2022/directive/scroll-into-view/scroll-into-view.directive.mjs +3 -3
  234. package/esm2022/directive/scroll-into-view/scroll-into-view.module.mjs +4 -4
  235. package/esm2022/directive/scrollable/scrollable/scrollable.component.mjs +3 -3
  236. package/esm2022/directive/scrollable/scrollable.directive.mjs +3 -3
  237. package/esm2022/directive/scrollable/scrollable.module.mjs +4 -4
  238. package/esm2022/directive/teta-template/teta-template.directive.mjs +3 -3
  239. package/esm2022/directive/teta-template/teta-template.module.mjs +4 -4
  240. package/esm2022/directive/tooltip/tooltip.directive.mjs +12 -13
  241. package/esm2022/directive/tooltip/tooltip.module.mjs +4 -4
  242. package/esm2022/locale/teta-config.service.mjs +3 -3
  243. package/esm2022/pipe/date-pipe/teta-date-pipe.module.mjs +4 -4
  244. package/esm2022/pipe/date-pipe/teta-date.pipe.mjs +3 -3
  245. package/esm2022/pipe/number-pipe/number-pipe.module.mjs +4 -4
  246. package/esm2022/pipe/number-pipe/number.pipe.mjs +3 -3
  247. package/esm2022/util/forms-util.mjs +11 -5
  248. package/fesm2022/tetacom-ng-components.mjs +1495 -1430
  249. package/fesm2022/tetacom-ng-components.mjs.map +1 -1
  250. package/package.json +6 -6
  251. package/style/dropdown.scss +3 -3
  252. package/style/table.scss +4 -0
  253. package/util/forms-util.d.ts +1 -1
package/.eslintrc.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "extends": "../../.eslintrc.json",
3
+ "ignorePatterns": [
4
+ "!**/*"
5
+ ],
6
+ "overrides": [
7
+ {
8
+ "files": [
9
+ "*.ts"
10
+ ],
11
+ "rules": {
12
+ "@angular-eslint/directive-selector": [
13
+ "error",
14
+ {
15
+ "type": "attribute",
16
+ "prefix": "teta",
17
+ "style": "camelCase"
18
+ }
19
+ ],
20
+ "@angular-eslint/component-selector": [
21
+ "error",
22
+ {
23
+ "type": "element",
24
+ "prefix": "teta",
25
+ "style": "kebab-case"
26
+ }
27
+ ]
28
+ }
29
+ },
30
+ {
31
+ "files": [
32
+ "*.html"
33
+ ],
34
+ "rules": {}
35
+ }
36
+ ]
37
+ }
@@ -1,6 +1,6 @@
1
1
  import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector, RendererFactory2, TemplateRef, Type } from '@angular/core';
2
- import { TetaContentRef } from '../contract/teta-content-ref';
3
2
  import { DynamicData } from '../contract/dynamic-data';
3
+ import { TetaContentRef } from '../contract/teta-content-ref';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class DynamicComponentService {
6
6
  private _componentFactoryResolver;
@@ -9,9 +9,9 @@ export declare class DynamicComponentService {
9
9
  private _renderer;
10
10
  constructor(_componentFactoryResolver: ComponentFactoryResolver, _rendererFactory: RendererFactory2, _appRef: ApplicationRef);
11
11
  createComponent<T>(component: Type<T>, contentRef: TetaContentRef, injector: Injector, container: any): ComponentRef<T>;
12
- createContent(content: string | TemplateRef<any> | Type<any>, injector: Injector, context?: any): TetaContentRef;
13
- destroy<T>(component: ComponentRef<T>, content: TetaContentRef, container: HTMLElement): void;
14
- getContext(content: string | TemplateRef<any> | Type<any>, context: any): any;
12
+ createContent(content: string | TemplateRef<any> | Type<any> | null | undefined, injector: Injector, context?: any): TetaContentRef;
13
+ destroy<T>(component: ComponentRef<T> | null | undefined, content: TetaContentRef | null, container: HTMLElement): void;
14
+ getContext(content: string | TemplateRef<any> | Type<any> | null | undefined, context: any): any;
15
15
  getInjector(data: DynamicData, parent: Injector): Injector;
16
16
  private fromString;
17
17
  private fromTemplate;
@@ -3,9 +3,9 @@ import * as i0 from "@angular/core";
3
3
  export declare class OverlayContainerService implements OnDestroy {
4
4
  private document$;
5
5
  private _containerClass;
6
- private _container;
6
+ private _container?;
7
7
  constructor(document$: any);
8
- getContainer(): HTMLElement;
8
+ getContainer(): HTMLElement | undefined;
9
9
  private createContainer;
10
10
  private removeContainer;
11
11
  ngOnDestroy(): void;
@@ -4,6 +4,6 @@ export declare class ArrayUtil {
4
4
  static findRecursive(tree: any[], comparer: (iterableNode: any) => boolean, children?: string): any;
5
5
  static filterRecursive(array: any[], filter: (item: any) => boolean, children?: string, keepChildren?: boolean, fullscanChildren?: boolean): any;
6
6
  static distinct<T>(array: T[], comparator: (item: T) => any): T[];
7
- static findParents(tree: any[], item: any): any;
8
- static moveItem(list: any[], sourceIndex: any, targetIndex: any): any[];
7
+ static findParents(tree: any[], item: any): any[] | null;
8
+ static moveItem(list: any[], sourceIndex: number, targetIndex: number): any[];
9
9
  }
@@ -1,5 +1,5 @@
1
1
  export declare class DomUtil {
2
- static clickedInside(target: HTMLElement, event: MouseEvent): boolean;
2
+ static clickedInside(target: HTMLElement | undefined | null, event: MouseEvent): boolean;
3
3
  static findTransformedParent(node: HTMLElement): HTMLElement;
4
4
  static isOverflown(element: HTMLElement): boolean;
5
5
  }
@@ -1,9 +1,6 @@
1
- import { OnInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
- export declare class AccordionComponent implements OnInit {
2
+ export declare class AccordionComponent {
4
3
  private readonly accordionClassName;
5
- constructor();
6
- ngOnInit(): void;
7
4
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
8
5
  static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "teta-accordion", never, {}, {}, never, ["*"], false, never>;
9
6
  }
@@ -1,11 +1,11 @@
1
- import { ChangeDetectorRef, OnInit } from '@angular/core';
2
- import { AccordionContentDirective } from '../accordion-content.directive';
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { viewType } from '../../../common/model/view-type.model';
3
3
  import { AccordionComponent } from '../accordion/accordion.component';
4
- import { viewType } from "../../../common/model/view-type.model";
4
+ import { AccordionContentDirective } from '../accordion-content.directive';
5
5
  import * as i0 from "@angular/core";
6
- export declare class AccordionItemComponent implements OnInit {
6
+ export declare class AccordionItemComponent {
7
7
  private cdr$;
8
- content: AccordionContentDirective;
8
+ content?: AccordionContentDirective;
9
9
  open: boolean;
10
10
  disabled: boolean;
11
11
  viewType: viewType;
@@ -14,7 +14,6 @@ export declare class AccordionItemComponent implements OnInit {
14
14
  private readonly accordion$;
15
15
  constructor(accordion: AccordionComponent, cdr$: ChangeDetectorRef);
16
16
  toggle(): void;
17
- ngOnInit(): void;
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, [{ optional: true; }, null]>;
19
18
  static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "teta-accordion-item", never, { "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; }, {}, ["content"], ["teta-accordion-head"], false, never>;
20
19
  }
@@ -1,9 +1,9 @@
1
- import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
2
- import { BehaviorSubject, ReplaySubject } from "rxjs";
3
- import { Dayjs } from "dayjs";
4
- import { viewType } from "../../common/model/view-type.model";
5
- import { MinMaxDateModel } from "./model/min-max-date.model";
6
- import { DayModel } from "./model/day-model";
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { Dayjs } from 'dayjs';
3
+ import { BehaviorSubject, ReplaySubject } from 'rxjs';
4
+ import { viewType } from '../../common/model/view-type.model';
5
+ import { DayModel } from './model/day-model';
6
+ import { MinMaxDateModel } from './model/min-max-date.model';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare abstract class BaseCalendar implements OnChanges, OnDestroy {
9
9
  protected _cdr: ChangeDetectorRef;
@@ -31,7 +31,7 @@ export declare abstract class BaseCalendar implements OnChanges, OnDestroy {
31
31
  isSuitableMaxDate(d: Date, maxDate: Date | string | number): boolean;
32
32
  isSelected(date: Date, selectedDate: Date): boolean;
33
33
  ngOnDestroy(): void;
34
- selectPicker(entity: "day" | "month" | "year"): void;
34
+ selectPicker(entity: 'day' | 'month' | 'year'): void;
35
35
  selectMonth(month: number): void;
36
36
  selectYear(year: number): void;
37
37
  ngOnChanges(changes: SimpleChanges): void;
@@ -1,10 +1,10 @@
1
+ import { DatePipe } from '@angular/common';
1
2
  import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
3
+ import { MaskitoOptions } from '@maskito/core';
4
+ import { ReplaySubject } from 'rxjs';
2
5
  import { Align } from '../../common/enum/align.enum';
3
6
  import { VerticalAlign } from '../../common/enum/vertical-align.enum';
4
- import { ReplaySubject } from 'rxjs';
5
- import { MaskitoOptions } from '@maskito/core';
6
7
  import { viewType } from '../../common/model/view-type.model';
7
- import { DatePipe } from '@angular/common';
8
8
  import { DateFromToModel } from './model/from-to.model';
9
9
  export declare abstract class BasePicker {
10
10
  protected _elementRef: ElementRef;
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
2
- import { viewType } from "../../../../common/model/view-type.model";
3
- import { BaseCalendar } from "../../base-calendar";
4
- import { DayModel } from "../../model/day-model";
2
+ import { viewType } from '../../../../common/model/view-type.model';
3
+ import { BaseCalendar } from '../../base-calendar';
4
+ import { DayModel } from '../../model/day-model';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class DateCalendarComponent extends BaseCalendar implements OnChanges, OnDestroy {
7
7
  _cdr: ChangeDetectorRef;
@@ -1,12 +1,12 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { BasePicker } from '../base-picker';
3
1
  import { DatePipe } from '@angular/common';
4
- import { Align } from '../../../common/enum/align.enum';
5
- import { VerticalAlign } from '../../../common/enum/vertical-align.enum';
2
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
6
3
  import { ControlValueAccessor } from '@angular/forms';
7
4
  import { ReplaySubject } from 'rxjs';
8
- import { DateFromToModel } from '../model/from-to.model';
5
+ import { Align } from '../../../common/enum/align.enum';
6
+ import { VerticalAlign } from '../../../common/enum/vertical-align.enum';
9
7
  import { viewType } from '../../../common/model/view-type.model';
8
+ import { BasePicker } from '../base-picker';
9
+ import { DateFromToModel } from '../model/from-to.model';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare const DATE_Range_CONTROL_VALUE_ACCESSOR: any;
12
12
  export declare class DateRangeComponent extends BasePicker implements OnInit, ControlValueAccessor {
@@ -1,8 +1,8 @@
1
1
  import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { viewType } from '../../../../common/model/view-type.model';
3
+ import { BaseCalendar } from '../../base-calendar';
2
4
  import { DayModel } from '../../model/day-model';
3
- import { viewType } from "../../../../common/model/view-type.model";
4
- import { DateFromToModel } from "../../model/from-to.model";
5
- import { BaseCalendar } from "../../base-calendar";
5
+ import { DateFromToModel } from '../../model/from-to.model';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class RangeCalendarComponent extends BaseCalendar implements OnChanges, OnDestroy {
8
8
  _cdr: ChangeDetectorRef;
@@ -1,9 +1,9 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, Renderer2 } from '@angular/core';
2
+ import { AutoCloseIgnoreCase } from '../../common/contract/auto-close-ignore-case';
2
3
  import { Align } from '../../common/enum/align.enum';
3
4
  import { VerticalAlign } from '../../common/enum/vertical-align.enum';
4
- import { DropdownContentDirective } from './dropdown-content.directive';
5
- import { AutoCloseIgnoreCase } from '../../common/contract/auto-close-ignore-case';
6
5
  import { viewType } from '../../common/model/view-type.model';
6
+ import { DropdownContentDirective } from './dropdown-content.directive';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class DropdownBase {
9
9
  protected _cdr: ChangeDetectorRef;
@@ -1,22 +1,20 @@
1
- import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
1
+ import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class FileUploadAreaComponent implements OnInit {
3
+ export declare class FileUploadAreaComponent {
4
4
  fileUpload: boolean;
5
5
  get fileUploadActive(): boolean;
6
6
  multiple: boolean;
7
7
  disabled: boolean;
8
8
  accept: string[];
9
9
  upload: EventEmitter<FileList>;
10
- input: ElementRef;
11
- buttonTemplate: TemplateRef<any>;
10
+ input?: ElementRef;
11
+ buttonTemplate?: TemplateRef<any>;
12
12
  files: any;
13
13
  private _asActive;
14
- constructor();
15
- dragEnter(event: any): void;
16
- dragOver(event: any): void;
17
- dragLeave(event: any): void;
18
- drop(event: any): void;
19
- ngOnInit(): void;
14
+ dragEnter(event: DragEvent): void;
15
+ dragOver(event: DragEvent): void;
16
+ dragLeave(event: DragEvent): void;
17
+ drop(event: DragEvent): void;
20
18
  fileChanged(event: any): void;
21
19
  private preventDefaults;
22
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadAreaComponent, never>;
@@ -1,6 +1,22 @@
1
1
  import { FilterType } from '../enum/filter-type.enum';
2
2
  import { StringFilterType } from '../enum/string-filter-type.enum';
3
3
  import { ListFilterType } from '../enum/list-filter-type.enum';
4
+ export interface IFilterItemOptions {
5
+ sortOrder?: number;
6
+ name?: string;
7
+ caption?: string;
8
+ hint?: string;
9
+ sortable?: boolean;
10
+ sortField?: string;
11
+ filterable?: boolean;
12
+ filterField?: string;
13
+ filterType?: FilterType | null;
14
+ stringFilterType?: StringFilterType;
15
+ listFilterType?: ListFilterType;
16
+ strict?: boolean;
17
+ filterComponent?: any;
18
+ columns?: FilterItem[];
19
+ }
4
20
  export declare class FilterItem {
5
21
  /**
6
22
  * Порядковый номер
@@ -58,20 +74,5 @@ export declare class FilterItem {
58
74
  * Дочерние элементы
59
75
  */
60
76
  columns: FilterItem[];
61
- constructor(options?: {
62
- sortOrder?: number;
63
- name?: string;
64
- caption?: string;
65
- hint?: string;
66
- sortable?: boolean;
67
- sortField?: string;
68
- filterable?: boolean;
69
- filterField?: string;
70
- filterType?: FilterType | null;
71
- stringFilterType?: StringFilterType;
72
- listFilterType?: ListFilterType;
73
- strict?: boolean;
74
- filterComponent?: any;
75
- columns?: FilterItem[];
76
- });
77
+ constructor(options?: IFilterItemOptions);
77
78
  }
@@ -1,17 +1,14 @@
1
- import { OnInit } from '@angular/core';
2
- import { Align } from "../../../common/enum/align.enum";
3
- import { viewType } from "../../../common/model/view-type.model";
1
+ import { Align } from '../../../common/enum/align.enum';
2
+ import { viewType } from '../../../common/model/view-type.model';
4
3
  import * as i0 from "@angular/core";
5
- export declare class InputComponent implements OnInit {
6
- label: string;
7
- hint: string;
4
+ export declare class InputComponent {
5
+ label?: string;
6
+ hint?: string;
8
7
  viewType: viewType;
9
8
  horizontal: boolean;
10
9
  required: boolean;
11
10
  get column(): boolean;
12
11
  align: typeof Align;
13
- constructor();
14
- ngOnInit(): void;
15
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
16
13
  static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "teta-input", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "horizontal": { "alias": "horizontal"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, ["*", "message"], false, never>;
17
14
  }
@@ -1,9 +1,9 @@
1
1
  import { AfterViewInit, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { TableColumn } from '../../table/contract/table-column';
2
+ import { ControlContainer, FormGroup } from '@angular/forms';
3
3
  import { IDictionary } from '../../../common/contract/i-dictionary';
4
4
  import { IIdName } from '../../../common/contract/i-id-name';
5
- import { ControlContainer, FormGroup } from '@angular/forms';
6
- import { PropertyGridItemDescriptionDirective } from "./property-grid-item-description.directive";
5
+ import { TableColumn } from '../../table/contract/table-column';
6
+ import { PropertyGridItemDescriptionDirective } from './property-grid-item-description.directive';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class PropertyGridComponent<T> implements OnInit, OnDestroy, AfterViewInit {
9
9
  private _formGroup;
@@ -1,16 +1,16 @@
1
- import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { AutoCloseIgnoreCase } from '../../../common/contract/auto-close-ignore-case';
2
5
  import { Align } from '../../../common/enum/align.enum';
3
6
  import { VerticalAlign } from '../../../common/enum/vertical-align.enum';
4
- import { AutoCloseIgnoreCase } from '../../../common/contract/auto-close-ignore-case';
5
- import { ControlValueAccessor } from '@angular/forms';
7
+ import { viewType } from '../../../common/model/view-type.model';
8
+ import { TetaConfigService } from '../../../locale/teta-config.service';
9
+ import { TetaLocalisation } from '../../../locale/teta-localisation';
6
10
  import { SelectOptionDirective } from '../select-option.directive';
7
11
  import { SelectValueDirective } from '../select-value.directive';
8
- import { TetaConfigService } from "../../../locale/teta-config.service";
9
- import { Observable } from "rxjs";
10
- import { TetaLocalisation } from "../../../locale/teta-localisation";
11
- import { viewType } from "../../../common/model/view-type.model";
12
12
  import * as i0 from "@angular/core";
13
- export declare class SelectComponent implements ControlValueAccessor, OnInit {
13
+ export declare class SelectComponent implements ControlValueAccessor {
14
14
  private _cdr;
15
15
  private _elementRef;
16
16
  private _config;
@@ -57,7 +57,6 @@ export declare class SelectComponent implements ControlValueAccessor, OnInit {
57
57
  getValue(option: any): any;
58
58
  getSearchString(option: any): string;
59
59
  focus(): void;
60
- ngOnInit(): void;
61
60
  writeValue(value: any | any[]): void;
62
61
  onChange: (value: any) => void;
63
62
  registerOnChange(fn: (value: any) => void): void;
@@ -1,32 +1,42 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { TableService } from '../service/table.service';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
+ import { IDictionary } from '../../../common/contract/i-dictionary';
4
+ import { IIdName } from '../../../common/contract/i-id-name';
3
5
  import { ICellCoordinates } from '../contract/i-cell-coordinates';
4
6
  import { TableColumn } from '../contract/table-column';
5
- import { IIdName } from '../../../common/contract/i-id-name';
6
- import { IDictionary } from '../../../common/contract/i-dictionary';
7
+ import { TableRow } from '../contract/table-row';
8
+ import { TableService } from '../service/table.service';
7
9
  import * as i0 from "@angular/core";
8
10
  export declare abstract class CellComponentBase<T> implements OnInit, OnDestroy {
9
11
  protected svc: TableService<T>;
10
12
  protected cdr: ChangeDetectorRef;
11
- private readonly tableCellComponent;
13
+ private readonly cellClass;
14
+ get cellInvalid(): boolean;
15
+ private _formGroup;
16
+ get control(): FormControl;
17
+ protected _column: TableColumn;
18
+ set column(column: TableColumn);
19
+ get column(): TableColumn;
20
+ protected _row: TableRow<T>;
21
+ set row(row: TableRow<T>);
22
+ get row(): TableRow<T>;
23
+ filterOptions: IIdName<any>[];
24
+ dict: IDictionary<IIdName<any>[]>;
25
+ get formGroup(): FormGroup;
26
+ protected _edit: boolean;
12
27
  get edit(): boolean;
13
28
  get editable(): boolean;
14
29
  get index(): number;
15
- _edit: boolean;
16
- column: TableColumn;
17
- filterOptions: IIdName<any>[];
18
- dict: IDictionary<IIdName<any>[]>;
19
- row: T;
20
30
  protected _alive: boolean;
21
31
  protected constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
22
- valueChanged(): void;
23
32
  ngOnDestroy(): void;
24
33
  ngOnInit(): void;
25
34
  private init;
26
- private start;
27
- private stop;
28
35
  abstract startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
29
36
  abstract stopEdit(): void;
37
+ private setupControl;
38
+ private start;
39
+ private stop;
30
40
  static ɵfac: i0.ɵɵFactoryDeclaration<CellComponentBase<any>, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<CellComponentBase<any>, "ng-component", never, { "column": { "alias": "column"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "row": { "alias": "row"; "required": false; }; }, {}, never, never, false, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<CellComponentBase<any>, "ng-component", never, {}, {}, never, never, false, never>;
32
42
  }
@@ -1,20 +1,14 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { TableColumn } from '../contract/table-column';
3
- import { TableService } from '../service/table.service';
4
- import { IIdName } from '../../../common/contract/i-id-name';
5
1
  import { IDictionary } from '../../../common/contract/i-dictionary';
2
+ import { IIdName } from '../../../common/contract/i-id-name';
3
+ import { TableColumn } from '../contract/table-column';
4
+ import { TableRow } from '../contract/table-row';
6
5
  import * as i0 from "@angular/core";
7
- export declare class CellComponent<T> implements OnInit, OnDestroy {
8
- protected _svc: TableService<T>;
6
+ export declare class CellComponent<T> {
9
7
  column: TableColumn;
10
8
  filterOptions: IIdName<any>[];
11
9
  dict: IDictionary<IIdName<any>[]>;
12
- row: T;
10
+ row: TableRow<T>;
13
11
  private readonly tableCellClass;
14
- private alive;
15
- constructor(_svc: TableService<T>);
16
- ngOnInit(): void;
17
- ngOnDestroy(): void;
18
12
  static ɵfac: i0.ɵɵFactoryDeclaration<CellComponent<any>, never>;
19
13
  static ɵcmp: i0.ɵɵComponentDeclaration<CellComponent<any>, "teta-cell", never, { "column": { "alias": "column"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "dict": { "alias": "dict"; "required": false; }; "row": { "alias": "row"; "required": false; }; }, {}, never, never, false, never>;
20
14
  }
@@ -1,19 +1,19 @@
1
- import { OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
- import { TableColumn } from '../contract/table-column';
3
- import { IIdName } from '../../../common/contract/i-id-name';
1
+ import { OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
4
2
  import { IDictionary } from '../../../common/contract/i-dictionary';
3
+ import { IIdName } from '../../../common/contract/i-id-name';
4
+ import { TableColumn } from '../contract/table-column';
5
+ import { TableRow } from '../contract/table-row';
5
6
  import * as i0 from "@angular/core";
6
- export declare class CellHostComponent<T> implements OnInit, OnDestroy, OnChanges {
7
+ export declare class CellHostComponent<T> implements OnInit, OnChanges {
7
8
  private viewContainerRef;
8
9
  column: TableColumn;
9
- row: T;
10
+ row: TableRow<T>;
10
11
  filterOptions: IIdName<any>[];
11
12
  dict: IDictionary<IIdName<any>[]>;
12
13
  private _init;
13
14
  private _componentRef;
14
15
  constructor(viewContainerRef: ViewContainerRef);
15
16
  ngOnInit(): void;
16
- ngOnDestroy(): void;
17
17
  ngOnChanges(changes: SimpleChanges): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CellHostComponent<any>, never>;
19
19
  static ɵcmp: i0.ɵɵComponentDeclaration<CellHostComponent<any>, "teta-cell-host", never, { "column": { "alias": "column"; "required": false; }; "row": { "alias": "row"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "dict": { "alias": "dict"; "required": false; }; }, {}, never, never, false, never>;
@@ -1,6 +1,7 @@
1
1
  import { TableColumn } from './table-column';
2
+ import { TableRow } from './table-row';
2
3
  export interface ICellInstance<T> {
3
- row: T;
4
+ row?: TableRow<T>;
4
5
  column: TableColumn;
5
6
  }
6
7
  export interface ICellInstanceEvent<T> extends ICellInstance<T> {
@@ -9,3 +9,4 @@ export * from './sort-event';
9
9
  export * from './table-column';
10
10
  export * from './table-column-store';
11
11
  export * from './head-dropdown-tab';
12
+ export * from './table-row';
@@ -1,10 +1,50 @@
1
- import { FilterItem } from '../../filter/contarct/filter-item';
1
+ import { Type } from '@angular/core';
2
+ import { ValidatorFn } from '@angular/forms';
3
+ import { FilterItem, IFilterItemOptions } from '../../filter/contarct/filter-item';
2
4
  import { FilterType } from '../../filter/enum/filter-type.enum';
3
- import { StringFilterType } from '../../filter/enum/string-filter-type.enum';
4
5
  import { ListFilterType } from '../../filter/enum/list-filter-type.enum';
6
+ import { StringFilterType } from '../../filter/enum/string-filter-type.enum';
7
+ import { CellComponentBase } from '../base/cell-component-base';
5
8
  import { AggregationType } from '../enum/aggregation-type.enum';
6
- import { ICellInstance } from './i-cell-instance';
7
9
  import { HeadDropdownTabConfig } from './head-dropdown-tab';
10
+ import { ICellInstance } from './i-cell-instance';
11
+ export interface ITableColumnOptions extends IFilterItemOptions {
12
+ width?: number;
13
+ flex?: number;
14
+ sortOrder?: number;
15
+ locked?: boolean;
16
+ name?: string;
17
+ parentName?: string;
18
+ caption?: string;
19
+ hint?: string;
20
+ unit?: string;
21
+ unitMeasureParameterId?: number;
22
+ unitId?: number;
23
+ sortable?: boolean;
24
+ sortField?: string;
25
+ filterable?: boolean;
26
+ filterField?: string;
27
+ filterType?: FilterType | null;
28
+ stringFilterType?: StringFilterType;
29
+ listFilterType?: ListFilterType;
30
+ strict?: boolean;
31
+ headCellClass?: string[];
32
+ cellClass?: string[];
33
+ data?: any;
34
+ editable?: boolean | ((coordinates: ICellInstance<any>) => boolean);
35
+ objectType?: boolean;
36
+ cellComponent?: Type<CellComponentBase<any>>;
37
+ headCellComponent?: any;
38
+ headDropdownConfig?: HeadDropdownTabConfig;
39
+ filterComponent?: any;
40
+ columns?: any[];
41
+ aggregate?: AggregationType;
42
+ defaultValue?: any;
43
+ maxValue?: number;
44
+ minValue?: number;
45
+ required?: boolean;
46
+ validators?: [ValidatorFn];
47
+ }
8
48
  export declare class TableColumn extends FilterItem {
9
49
  /**
10
50
  * Ширина
@@ -86,43 +126,12 @@ export declare class TableColumn extends FilterItem {
86
126
  * Поле обязательно для заполнения
87
127
  */
88
128
  required: boolean;
129
+ /**
130
+ * Функции валидации
131
+ */
132
+ validators: [ValidatorFn];
89
133
  /**
90
134
  * Инициализация из анонимного объекта
91
135
  */
92
- constructor(options?: {
93
- width?: number;
94
- flex?: number;
95
- sortOrder?: number;
96
- locked?: boolean;
97
- name?: string;
98
- parentName?: string;
99
- caption?: string;
100
- hint?: string;
101
- unit?: string;
102
- unitMeasureParameterId?: number;
103
- unitId?: number;
104
- sortable?: boolean;
105
- sortField?: string;
106
- filterable?: boolean;
107
- filterField?: string;
108
- filterType?: FilterType | null;
109
- stringFilterType?: StringFilterType;
110
- listFilterType?: ListFilterType;
111
- strict?: boolean;
112
- headCellClass?: string[];
113
- cellClass?: string[];
114
- data?: any;
115
- editable?: boolean | ((coordinates: ICellInstance<any>) => boolean);
116
- objectType?: boolean;
117
- cellComponent?: any;
118
- headCellComponent?: any;
119
- headDropdownConfig?: HeadDropdownTabConfig;
120
- filterComponent?: any;
121
- columns?: any[];
122
- aggregate?: AggregationType;
123
- defaultValue?: any;
124
- maxValue?: number;
125
- minValue?: number;
126
- required?: boolean;
127
- });
136
+ constructor(options?: ITableColumnOptions);
128
137
  }
@@ -0,0 +1,8 @@
1
+ export declare class TableRow<T> {
2
+ valid: boolean;
3
+ data: T;
4
+ constructor(options?: {
5
+ valid?: boolean;
6
+ data: T;
7
+ });
8
+ }
@@ -1,14 +1,13 @@
1
1
  import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
2
  import { CellComponentBase } from '../../base/cell-component-base';
3
- import { TableService } from '../../service/table.service';
4
3
  import { ICellCoordinates } from '../../contract/i-cell-coordinates';
4
+ import { TableService } from '../../service/table.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BooleanCellComponent<T> extends CellComponentBase<T> implements OnInit {
7
7
  svc: TableService<T>;
8
8
  cdr: ChangeDetectorRef;
9
9
  input: ElementRef;
10
10
  constructor(svc: TableService<T>, cdr: ChangeDetectorRef);
11
- setValue(): void;
12
11
  ngOnInit(): void;
13
12
  startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
14
13
  stopEdit(): void;