@progress/kendo-angular-layout 17.0.0-develop.21 → 17.0.0-develop.23

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 (239) hide show
  1. package/avatar/avatar.component.d.ts +1 -1
  2. package/avatar/l10n/messages.d.ts +1 -1
  3. package/avatar/models/fill.d.ts +1 -1
  4. package/avatar/models/rounded.d.ts +1 -1
  5. package/avatar/models/shape.d.ts +2 -2
  6. package/avatar/models/size.d.ts +1 -1
  7. package/avatar/models/theme-color.d.ts +1 -1
  8. package/card/card-actions.component.d.ts +1 -1
  9. package/card/card.component.d.ts +1 -1
  10. package/card/directives/card-separator.directive.d.ts +1 -1
  11. package/card/models/actions-layout.d.ts +1 -1
  12. package/common/direction.d.ts +1 -1
  13. package/common/orientation.d.ts +1 -1
  14. package/drawer/drawer.component.d.ts +1 -1
  15. package/drawer/item.component.d.ts +1 -1
  16. package/drawer/list.component.d.ts +1 -1
  17. package/drawer/models/drawer-item-expand.interface.d.ts +1 -1
  18. package/drawer/models/mode.d.ts +1 -1
  19. package/drawer/models/position.d.ts +1 -1
  20. package/{esm2020 → esm2022}/avatar/avatar.component.mjs +61 -25
  21. package/{esm2020 → esm2022}/avatar/l10n/custom-messages.component.mjs +9 -8
  22. package/{esm2020 → esm2022}/avatar/l10n/localized-messages.directive.mjs +9 -8
  23. package/{esm2020 → esm2022}/avatar/l10n/messages.mjs +7 -3
  24. package/{esm2020 → esm2022}/avatar.module.mjs +4 -4
  25. package/{esm2020 → esm2022}/card/card-actions.component.mjs +37 -31
  26. package/{esm2020 → esm2022}/card/card-body.component.mjs +5 -7
  27. package/{esm2020 → esm2022}/card/card-footer.component.mjs +5 -7
  28. package/{esm2020 → esm2022}/card/card-header.component.mjs +5 -7
  29. package/{esm2020 → esm2022}/card/card.component.mjs +40 -34
  30. package/{esm2020 → esm2022}/card/directives/card-media.directive.mjs +4 -6
  31. package/{esm2020 → esm2022}/card/directives/card-separator.directive.mjs +16 -14
  32. package/{esm2020 → esm2022}/card/directives/card-subtitle.directive.mjs +4 -6
  33. package/{esm2020 → esm2022}/card/directives/card-title.directive.mjs +4 -6
  34. package/{esm2020 → esm2022}/card/models/card-action.mjs +12 -0
  35. package/{esm2020 → esm2022}/card.module.mjs +4 -4
  36. package/{esm2020 → esm2022}/common/preventable-event.mjs +7 -7
  37. package/{esm2020 → esm2022}/drawer/drawer-container.component.mjs +28 -18
  38. package/{esm2020 → esm2022}/drawer/drawer-content.component.mjs +6 -7
  39. package/{esm2020 → esm2022}/drawer/drawer.component.mjs +132 -106
  40. package/{esm2020 → esm2022}/drawer/drawer.service.mjs +10 -10
  41. package/{esm2020 → esm2022}/drawer/events/drawer-list-select.event.mjs +12 -0
  42. package/{esm2020 → esm2022}/drawer/events/select-event.mjs +16 -0
  43. package/{esm2020 → esm2022}/drawer/item.component.mjs +22 -11
  44. package/{esm2020 → esm2022}/drawer/list.component.mjs +14 -6
  45. package/{esm2020 → esm2022}/drawer/template-directives/drawer-template.directive.mjs +4 -3
  46. package/{esm2020 → esm2022}/drawer/template-directives/footer-template.directive.mjs +4 -3
  47. package/{esm2020 → esm2022}/drawer/template-directives/header-template.directive.mjs +4 -3
  48. package/{esm2020 → esm2022}/drawer/template-directives/item-template.directive.mjs +4 -3
  49. package/{esm2020 → esm2022}/drawer.module.mjs +4 -4
  50. package/{esm2020 → esm2022}/expansionpanel/events/action-event.mjs +4 -0
  51. package/{esm2020 → esm2022}/expansionpanel/expansionpanel-title.directive.mjs +4 -3
  52. package/{esm2020 → esm2022}/expansionpanel/expansionpanel.component.mjs +103 -81
  53. package/{esm2020 → esm2022}/expansionpanel.module.mjs +4 -4
  54. package/{esm2020 → esm2022}/gridlayout.module.mjs +4 -4
  55. package/{esm2020 → esm2022}/layout.module.mjs +4 -4
  56. package/{esm2020 → esm2022}/layouts/grid-layout.component.mjs +57 -26
  57. package/{esm2020 → esm2022}/layouts/gridlayout-item.component.mjs +26 -4
  58. package/{esm2020 → esm2022}/layouts/stack-layout.component.mjs +40 -35
  59. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  60. package/{esm2020 → esm2022}/panelbar/events/collapse-event.mjs +4 -0
  61. package/{esm2020 → esm2022}/panelbar/events/expand-event.mjs +4 -0
  62. package/{esm2020 → esm2022}/panelbar/events/item-click-event.mjs +8 -0
  63. package/{esm2020 → esm2022}/panelbar/events/select-event.mjs +4 -0
  64. package/{esm2020 → esm2022}/panelbar/events/state-change-event.mjs +4 -0
  65. package/{esm2020 → esm2022}/panelbar/panelbar-content.directive.mjs +4 -3
  66. package/{esm2020 → esm2022}/panelbar/panelbar-item-template.directive.mjs +4 -3
  67. package/{esm2020 → esm2022}/panelbar/panelbar-item-title.directive.mjs +4 -3
  68. package/{esm2020 → esm2022}/panelbar/panelbar-item.component.mjs +99 -64
  69. package/{esm2020 → esm2022}/panelbar/panelbar.component.mjs +109 -98
  70. package/{esm2020 → esm2022}/panelbar/panelbar.service.mjs +23 -13
  71. package/{esm2020 → esm2022}/panelbar.module.mjs +4 -4
  72. package/{esm2020 → esm2022}/splitter/splitter-bar.component.mjs +26 -19
  73. package/{esm2020 → esm2022}/splitter/splitter-pane.component.mjs +78 -56
  74. package/{esm2020 → esm2022}/splitter/splitter.component.mjs +60 -33
  75. package/{esm2020 → esm2022}/splitter/splitter.service.mjs +11 -6
  76. package/{esm2020 → esm2022}/splitter.module.mjs +4 -4
  77. package/{esm2020 → esm2022}/stacklayout.module.mjs +4 -4
  78. package/{esm2020 → esm2022}/stepper/events/activate-event.mjs +16 -0
  79. package/{esm2020 → esm2022}/stepper/list.component.mjs +23 -5
  80. package/{esm2020 → esm2022}/stepper/localization/custom-messages.component.mjs +9 -8
  81. package/{esm2020 → esm2022}/stepper/localization/localized-messages.directive.mjs +9 -8
  82. package/{esm2020 → esm2022}/stepper/localization/messages.mjs +7 -3
  83. package/{esm2020 → esm2022}/stepper/step.component.mjs +25 -8
  84. package/{esm2020 → esm2022}/stepper/stepper.component.mjs +109 -68
  85. package/{esm2020 → esm2022}/stepper/stepper.service.mjs +30 -9
  86. package/{esm2020 → esm2022}/stepper/template-directives/indicator-template.directive.mjs +4 -3
  87. package/{esm2020 → esm2022}/stepper/template-directives/label-template.directive.mjs +4 -3
  88. package/{esm2020 → esm2022}/stepper/template-directives/step-template.directive.mjs +4 -3
  89. package/{esm2020 → esm2022}/stepper.module.mjs +4 -4
  90. package/{esm2020 → esm2022}/tabstrip/directives/tab-content.directive.mjs +4 -3
  91. package/{esm2020 → esm2022}/tabstrip/directives/tab-title.directive.mjs +4 -3
  92. package/{esm2020 → esm2022}/tabstrip/directives/tab.directive.mjs +4 -3
  93. package/{esm2020 → esm2022}/tabstrip/events/select-event.mjs +2 -0
  94. package/{esm2020 → esm2022}/tabstrip/events/tabclose-event.mjs +2 -0
  95. package/{esm2020 → esm2022}/tabstrip/events/tabscroll-event.mjs +4 -0
  96. package/{esm2020 → esm2022}/tabstrip/localization/custom-messages.component.mjs +9 -8
  97. package/{esm2020 → esm2022}/tabstrip/localization/localized-messages.directive.mjs +9 -8
  98. package/{esm2020 → esm2022}/tabstrip/localization/messages.mjs +15 -3
  99. package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +117 -0
  100. package/{esm2020 → esm2022}/tabstrip/rendering/tab.component.mjs +16 -9
  101. package/{esm2020 → esm2022}/tabstrip/scrollable-button.component.mjs +33 -27
  102. package/{esm2020 → esm2022}/tabstrip/tabstrip-scroll.service.mjs +11 -9
  103. package/{esm2020 → esm2022}/tabstrip/tabstrip.component.mjs +141 -107
  104. package/{esm2020 → esm2022}/tabstrip/tabstrip.service.mjs +6 -3
  105. package/{esm2020 → esm2022}/tabstrip.module.mjs +4 -4
  106. package/{esm2020 → esm2022}/tilelayout/dragging-service.mjs +39 -18
  107. package/{esm2020 → esm2022}/tilelayout/keyboard-navigation.service.mjs +9 -4
  108. package/{esm2020 → esm2022}/tilelayout/reorder-event.mjs +8 -0
  109. package/{esm2020 → esm2022}/tilelayout/resize-event.mjs +6 -0
  110. package/{esm2020 → esm2022}/tilelayout/tilelayout-item-body.component.mjs +6 -8
  111. package/{esm2020 → esm2022}/tilelayout/tilelayout-item-header.component.mjs +11 -9
  112. package/{esm2020 → esm2022}/tilelayout/tilelayout-item.component.mjs +78 -48
  113. package/{esm2020 → esm2022}/tilelayout/tilelayout-resize-handle.directive.mjs +7 -3
  114. package/{esm2020 → esm2022}/tilelayout/tilelayout.component.mjs +101 -88
  115. package/{esm2020 → esm2022}/tilelayout.module.mjs +4 -4
  116. package/{esm2020 → esm2022}/timeline/localization/custom-messages.component.mjs +9 -8
  117. package/{esm2020 → esm2022}/timeline/localization/localized-messages.directive.mjs +9 -8
  118. package/{esm2020 → esm2022}/timeline/localization/messages.mjs +11 -3
  119. package/{esm2020 → esm2022}/timeline/templates/timeline-card-actions.directive.mjs +4 -3
  120. package/{esm2020 → esm2022}/timeline/templates/timeline-card-body.directive.mjs +4 -3
  121. package/{esm2020 → esm2022}/timeline/templates/timeline-card-header.directive.mjs +4 -3
  122. package/{esm2020 → esm2022}/timeline/timeline-card.component.mjs +48 -33
  123. package/{esm2020 → esm2022}/timeline/timeline-horizontal.component.mjs +74 -45
  124. package/{esm2020 → esm2022}/timeline/timeline-vertical.component.mjs +20 -6
  125. package/{esm2020 → esm2022}/timeline/timeline.component.mjs +108 -68
  126. package/{esm2020 → esm2022}/timeline/timeline.service.mjs +4 -3
  127. package/{esm2020 → esm2022}/timeline.module.mjs +4 -4
  128. package/expansionpanel/events/action-event.d.ts +1 -1
  129. package/expansionpanel/expansionpanel.component.d.ts +1 -1
  130. package/{fesm2020 → fesm2022}/progress-kendo-angular-layout.mjs +2336 -1528
  131. package/layouts/grid-layout.component.d.ts +1 -1
  132. package/layouts/gridlayout-item.component.d.ts +1 -1
  133. package/layouts/models/layout-horizontal-align.d.ts +1 -1
  134. package/layouts/models/layout-vertical-align.d.ts +1 -1
  135. package/layouts/stack-layout.component.d.ts +1 -1
  136. package/package.json +16 -22
  137. package/panelbar/panelbar-item.component.d.ts +1 -1
  138. package/panelbar/panelbar.component.d.ts +1 -1
  139. package/splitter/splitter-bar.component.d.ts +1 -1
  140. package/splitter/splitter-pane.component.d.ts +1 -1
  141. package/splitter/splitter.component.d.ts +1 -1
  142. package/splitter/splitter.service.d.ts +2 -2
  143. package/stepper/list.component.d.ts +1 -1
  144. package/stepper/localization/messages.d.ts +1 -1
  145. package/stepper/models/orientation.d.ts +1 -1
  146. package/stepper/models/step-predicate.d.ts +1 -1
  147. package/stepper/models/step-type.d.ts +1 -1
  148. package/stepper/step.component.d.ts +1 -1
  149. package/stepper/stepper.component.d.ts +1 -1
  150. package/tabstrip/localization/messages.d.ts +1 -1
  151. package/tabstrip/models/button-state-change.d.ts +1 -1
  152. package/tabstrip/models/scroll-button-type.d.ts +1 -1
  153. package/tabstrip/models/scroll-buttons-visibility.d.ts +1 -1
  154. package/tabstrip/models/tab-alignment.d.ts +1 -1
  155. package/tabstrip/models/tab-position.d.ts +1 -1
  156. package/tabstrip/models/tabstrip-tab.component.d.ts +1 -1
  157. package/tabstrip/rendering/tab.component.d.ts +1 -1
  158. package/tabstrip/scrollable-button.component.d.ts +1 -1
  159. package/tabstrip/tabstrip.component.d.ts +1 -1
  160. package/tilelayout/models/flowmode.type.d.ts +1 -1
  161. package/tilelayout/tilelayout-item-header.component.d.ts +1 -1
  162. package/tilelayout/tilelayout-item.component.d.ts +1 -1
  163. package/tilelayout/tilelayout-resize-handle.directive.d.ts +1 -1
  164. package/tilelayout/tilelayout.component.d.ts +1 -1
  165. package/timeline/events/navigation-direction.d.ts +1 -1
  166. package/timeline/localization/messages.d.ts +1 -1
  167. package/timeline/models/anchor-target.d.ts +1 -1
  168. package/timeline/timeline-card.component.d.ts +1 -1
  169. package/timeline/timeline-horizontal.component.d.ts +1 -1
  170. package/timeline/timeline-vertical.component.d.ts +1 -1
  171. package/timeline/timeline.component.d.ts +1 -1
  172. package/esm2020/tabstrip/models/tabstrip-tab.component.mjs +0 -78
  173. package/fesm2015/progress-kendo-angular-layout.mjs +0 -12495
  174. /package/{esm2020 → esm2022}/avatar/models/fill.mjs +0 -0
  175. /package/{esm2020 → esm2022}/avatar/models/models.mjs +0 -0
  176. /package/{esm2020 → esm2022}/avatar/models/rounded.mjs +0 -0
  177. /package/{esm2020 → esm2022}/avatar/models/shape.mjs +0 -0
  178. /package/{esm2020 → esm2022}/avatar/models/size.mjs +0 -0
  179. /package/{esm2020 → esm2022}/avatar/models/theme-color.mjs +0 -0
  180. /package/{esm2020 → esm2022}/card/models/actions-layout.mjs +0 -0
  181. /package/{esm2020 → esm2022}/common/direction.mjs +0 -0
  182. /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
  183. /package/{esm2020 → esm2022}/common/orientation.mjs +0 -0
  184. /package/{esm2020 → esm2022}/common/styling-classes.mjs +0 -0
  185. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  186. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  187. /package/{esm2020 → esm2022}/drawer/animations.mjs +0 -0
  188. /package/{esm2020 → esm2022}/drawer/models/constants.mjs +0 -0
  189. /package/{esm2020 → esm2022}/drawer/models/drawer-animation.interface.mjs +0 -0
  190. /package/{esm2020 → esm2022}/drawer/models/drawer-item-expand.interface.mjs +0 -0
  191. /package/{esm2020 → esm2022}/drawer/models/drawer-item.interface.mjs +0 -0
  192. /package/{esm2020 → esm2022}/drawer/models/drawer-view-item.interface.mjs +0 -0
  193. /package/{esm2020 → esm2022}/drawer/models/mode.mjs +0 -0
  194. /package/{esm2020 → esm2022}/drawer/models/position.mjs +0 -0
  195. /package/{esm2020 → esm2022}/drawer/template-directives.mjs +0 -0
  196. /package/{esm2020 → esm2022}/drawer/types.mjs +0 -0
  197. /package/{esm2020 → esm2022}/drawer/util.mjs +0 -0
  198. /package/{esm2020 → esm2022}/expansionpanel/animations.mjs +0 -0
  199. /package/{esm2020 → esm2022}/index.mjs +0 -0
  200. /package/{esm2020 → esm2022}/layouts/models/gridlayout-gap-settings.mjs +0 -0
  201. /package/{esm2020 → esm2022}/layouts/models/gridlayout-row-col-size.mjs +0 -0
  202. /package/{esm2020 → esm2022}/layouts/models/layout-align-settings.mjs +0 -0
  203. /package/{esm2020 → esm2022}/layouts/models/layout-horizontal-align.mjs +0 -0
  204. /package/{esm2020 → esm2022}/layouts/models/layout-vertical-align.mjs +0 -0
  205. /package/{esm2020 → esm2022}/layouts/models.mjs +0 -0
  206. /package/{esm2020 → esm2022}/layouts/util.mjs +0 -0
  207. /package/{esm2020 → esm2022}/panelbar/events.mjs +0 -0
  208. /package/{esm2020 → esm2022}/panelbar/panelbar-expand-mode.mjs +0 -0
  209. /package/{esm2020 → esm2022}/panelbar/panelbar-item-model.mjs +0 -0
  210. /package/{esm2020 → esm2022}/progress-kendo-angular-layout.mjs +0 -0
  211. /package/{esm2020 → esm2022}/splitter/util.mjs +0 -0
  212. /package/{esm2020 → esm2022}/stepper/models/constants.mjs +0 -0
  213. /package/{esm2020 → esm2022}/stepper/models/orientation.mjs +0 -0
  214. /package/{esm2020 → esm2022}/stepper/models/step-predicate.mjs +0 -0
  215. /package/{esm2020 → esm2022}/stepper/models/step-type.mjs +0 -0
  216. /package/{esm2020 → esm2022}/stepper/models/stepper-step.interface.mjs +0 -0
  217. /package/{esm2020 → esm2022}/stepper/template-directives.mjs +0 -0
  218. /package/{esm2020 → esm2022}/stepper/types.mjs +0 -0
  219. /package/{esm2020 → esm2022}/tabstrip/constants.mjs +0 -0
  220. /package/{esm2020 → esm2022}/tabstrip/events.mjs +0 -0
  221. /package/{esm2020 → esm2022}/tabstrip/models/button-state-change.mjs +0 -0
  222. /package/{esm2020 → esm2022}/tabstrip/models/scroll-button-type.mjs +0 -0
  223. /package/{esm2020 → esm2022}/tabstrip/models/scroll-buttons-visibility.mjs +0 -0
  224. /package/{esm2020 → esm2022}/tabstrip/models/scrollable-settings.mjs +0 -0
  225. /package/{esm2020 → esm2022}/tabstrip/models/tab-alignment.mjs +0 -0
  226. /package/{esm2020 → esm2022}/tabstrip/models/tab-position.mjs +0 -0
  227. /package/{esm2020 → esm2022}/tabstrip/util.mjs +0 -0
  228. /package/{esm2020 → esm2022}/tilelayout/constants.mjs +0 -0
  229. /package/{esm2020 → esm2022}/tilelayout/models/dragging-config.interface.mjs +0 -0
  230. /package/{esm2020 → esm2022}/tilelayout/models/flowmode.type.mjs +0 -0
  231. /package/{esm2020 → esm2022}/tilelayout/models/gap.interface.mjs +0 -0
  232. /package/{esm2020 → esm2022}/tilelayout/models/navigation.interface.mjs +0 -0
  233. /package/{esm2020 → esm2022}/tilelayout/util.mjs +0 -0
  234. /package/{esm2020 → esm2022}/timeline/events/navigation-direction.mjs +0 -0
  235. /package/{esm2020 → esm2022}/timeline/models/anchor-target.mjs +0 -0
  236. /package/{esm2020 → esm2022}/timeline/models/default-model-fields.mjs +0 -0
  237. /package/{esm2020 → esm2022}/timeline/models/model-fields.mjs +0 -0
  238. /package/{esm2020 → esm2022}/timeline/models/timeline-event.mjs +0 -0
  239. /package/{esm2020 → esm2022}/timeline/util.mjs +0 -0
@@ -16,21 +16,15 @@ import * as i1 from "@progress/kendo-angular-l10n";
16
16
  * @hidden
17
17
  */
18
18
  export class TileLayoutDraggingService {
19
- constructor(zone, renderer, cdr, localization) {
20
- this.zone = zone;
21
- this.renderer = renderer;
22
- this.cdr = cdr;
23
- this.localization = localization;
24
- this.reorderable = new BehaviorSubject(null);
25
- this.resizable = new BehaviorSubject(null);
26
- this.reorder = new Subject();
27
- this.resize = new Subject();
28
- this.lastDragCursorOffset = {
29
- x: 0,
30
- y: 0
31
- };
32
- this.localizationSubscription = this.localization.changes.subscribe(({ rtl }) => this.rtl = rtl);
33
- }
19
+ zone;
20
+ renderer;
21
+ cdr;
22
+ localization;
23
+ reorderable = new BehaviorSubject(null);
24
+ resizable = new BehaviorSubject(null);
25
+ reorder = new Subject();
26
+ resize = new Subject();
27
+ tileLayoutSettings;
34
28
  get colStart() {
35
29
  return this.currentColStart;
36
30
  }
@@ -43,6 +37,33 @@ export class TileLayoutDraggingService {
43
37
  get order() {
44
38
  return this.targetOrder;
45
39
  }
40
+ draggedItem;
41
+ draggedItemWrapper;
42
+ reordering;
43
+ resizing;
44
+ offset;
45
+ targetSize;
46
+ cellSize;
47
+ targetOrder;
48
+ currentColStart;
49
+ currentRowStart;
50
+ startingPoint;
51
+ currentResizingColSpan;
52
+ currentResizingRowSpan;
53
+ direction;
54
+ lastDragCursorOffset = {
55
+ x: 0,
56
+ y: 0
57
+ };
58
+ localizationSubscription;
59
+ rtl;
60
+ constructor(zone, renderer, cdr, localization) {
61
+ this.zone = zone;
62
+ this.renderer = renderer;
63
+ this.cdr = cdr;
64
+ this.localization = localization;
65
+ this.localizationSubscription = this.localization.changes.subscribe(({ rtl }) => this.rtl = rtl);
66
+ }
46
67
  ngOnDestroy() {
47
68
  this.localizationSubscription.unsubscribe();
48
69
  }
@@ -396,9 +417,9 @@ export class TileLayoutDraggingService {
396
417
  const hintHeight = totalHintCellsHeight + totalHintGapsHeight - HINT_BORDERS_HEIGHT;
397
418
  return hintHeight;
398
419
  }
420
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutDraggingService, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
421
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutDraggingService });
399
422
  }
400
- TileLayoutDraggingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutDraggingService, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
401
- TileLayoutDraggingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutDraggingService });
402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutDraggingService, decorators: [{
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutDraggingService, decorators: [{
403
424
  type: Injectable
404
425
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }]; } });
@@ -15,11 +15,16 @@ import * as i1 from "@progress/kendo-angular-l10n";
15
15
  * @hidden
16
16
  */
17
17
  export class TileLayoutKeyboardNavigationService {
18
+ zone;
19
+ renderer;
20
+ localization;
21
+ navigable = new BehaviorSubject(false);
22
+ localizationSubscription;
23
+ rtl;
18
24
  constructor(zone, renderer, localization) {
19
25
  this.zone = zone;
20
26
  this.renderer = renderer;
21
27
  this.localization = localization;
22
- this.navigable = new BehaviorSubject(false);
23
28
  this.localizationSubscription = this.localization.changes.subscribe(({ rtl }) => this.rtl = rtl);
24
29
  }
25
30
  ngOnDestroy() {
@@ -138,9 +143,9 @@ export class TileLayoutKeyboardNavigationService {
138
143
  targetTile(focusedTile, items, offset) {
139
144
  return items.find(item => item.order === focusedTile.order + offset);
140
145
  }
146
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutKeyboardNavigationService, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
147
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutKeyboardNavigationService });
141
148
  }
142
- TileLayoutKeyboardNavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutKeyboardNavigationService, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
143
- TileLayoutKeyboardNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutKeyboardNavigationService });
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutKeyboardNavigationService, decorators: [{
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutKeyboardNavigationService, decorators: [{
145
150
  type: Injectable
146
151
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; } });
@@ -8,6 +8,14 @@ import { PreventableEvent } from '@progress/kendo-angular-common';
8
8
  * positions of the items is changed via the UI. If you prevent the event, the change is canceled ([see example]({% slug reordering_tilelayout %}#toc-handling-the-reorder-event)).
9
9
  */
10
10
  export class TileLayoutReorderEvent extends PreventableEvent {
11
+ item;
12
+ items;
13
+ newIndex;
14
+ oldIndex;
15
+ newCol;
16
+ oldCol;
17
+ newRow;
18
+ oldRow;
11
19
  /**
12
20
  * Constructs the event arguments for the `reorder` event.
13
21
  * @param item - The TileLayoutItem being reordered.
@@ -8,6 +8,12 @@ import { PreventableEvent } from '@progress/kendo-angular-common';
8
8
  * is changed from the UI. If you cancel the event, the change is prevented ([see example]({% slug resizing_tilelayout %}#toc-handling-the-resize-event)).
9
9
  */
10
10
  export class TileLayoutResizeEvent extends PreventableEvent {
11
+ item;
12
+ items;
13
+ newRowSpan;
14
+ oldRowSpan;
15
+ newColSpan;
16
+ oldColSpan;
11
17
  /**
12
18
  * Constructs the event arguments for the `resize` event.
13
19
  * @param item - The TileLayoutItem being resized
@@ -8,16 +8,14 @@ import * as i0 from "@angular/core";
8
8
  * Holds the main content of the TileLayoutItem component.
9
9
  */
10
10
  export class TileLayoutItemBodyComponent {
11
- constructor() {
12
- this.hostClass = true;
13
- this.minHeight = 0;
14
- }
15
- }
16
- TileLayoutItemBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutItemBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
- TileLayoutItemBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TileLayoutItemBodyComponent, isStandalone: true, selector: "kendo-tilelayout-item-body", host: { properties: { "class.k-tilelayout-item-body": "this.hostClass", "class.k-card-body": "this.hostClass", "style.min-height": "this.minHeight" } }, ngImport: i0, template: `
11
+ hostClass = true;
12
+ minHeight = 0;
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutItemBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TileLayoutItemBodyComponent, isStandalone: true, selector: "kendo-tilelayout-item-body", host: { properties: { "class.k-tilelayout-item-body": "this.hostClass", "class.k-card-body": "this.hostClass", "style.min-height": "this.minHeight" } }, ngImport: i0, template: `
18
15
  <ng-content></ng-content>
19
16
  `, isInline: true });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutItemBodyComponent, decorators: [{
17
+ }
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutItemBodyComponent, decorators: [{
21
19
  type: Component,
22
20
  args: [{
23
21
  selector: 'kendo-tilelayout-item-body',
@@ -9,11 +9,9 @@ import * as i0 from "@angular/core";
9
9
  * This is the area which can be dragged to reorder the items if reordering is enabled for this item.
10
10
  */
11
11
  export class TileLayoutItemHeaderComponent {
12
- constructor(hostEl, renderer) {
13
- this.hostEl = hostEl;
14
- this.renderer = renderer;
15
- this.hostClass = true;
16
- }
12
+ hostEl;
13
+ renderer;
14
+ hostClass = true;
17
15
  /**
18
16
  * @hidden
19
17
  */
@@ -28,12 +26,16 @@ export class TileLayoutItemHeaderComponent {
28
26
  this.renderer.removeClass(hostElement, 'k-touch-action-none');
29
27
  }
30
28
  }
31
- }
32
- TileLayoutItemHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutItemHeaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
33
- TileLayoutItemHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TileLayoutItemHeaderComponent, isStandalone: true, selector: "kendo-tilelayout-item-header", inputs: { reorderable: "reorderable" }, host: { properties: { "class.k-tilelayout-item-header": "this.hostClass", "class.k-card-header": "this.hostClass" } }, ngImport: i0, template: `
29
+ constructor(hostEl, renderer) {
30
+ this.hostEl = hostEl;
31
+ this.renderer = renderer;
32
+ }
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutItemHeaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
34
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TileLayoutItemHeaderComponent, isStandalone: true, selector: "kendo-tilelayout-item-header", inputs: { reorderable: "reorderable" }, host: { properties: { "class.k-tilelayout-item-header": "this.hostClass", "class.k-card-header": "this.hostClass" } }, ngImport: i0, template: `
34
35
  <ng-content></ng-content>
35
36
  `, isInline: true });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutItemHeaderComponent, decorators: [{
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutItemHeaderComponent, decorators: [{
37
39
  type: Component,
38
40
  args: [{
39
41
  selector: 'kendo-tilelayout-item-header',
@@ -21,50 +21,26 @@ import * as i3 from "./keyboard-navigation.service";
21
21
  * Represents a tile item within the TileLayoutComponent.
22
22
  */
23
23
  export class TileLayoutItemComponent {
24
- constructor(elem, zone, renderer, localization, draggingService, keyboardNavigationService) {
25
- this.elem = elem;
26
- this.zone = zone;
27
- this.renderer = renderer;
28
- this.localization = localization;
29
- this.draggingService = draggingService;
30
- this.keyboardNavigationService = keyboardNavigationService;
31
- /**
32
- * Determines how many rows will the tile item span ([see example](slug:tiles_tilelayout#toc-programmatic-resizing)).
33
- * @default 1
34
- */
35
- this.rowSpan = 1;
36
- /**
37
- * Determines how many columns will the tile item span ([see example](slug:tiles_tilelayout#toc-programmatic-resizing)).
38
- * @default 1
39
- */
40
- this.colSpan = 1;
41
- /**
42
- * Determines whether the item can be reordered. By default all items are reorderable when the [reorderable]({% slug api_layout_tilelayoutcomponent %}#toc-reorderable) property of the TileLayoutComponent is set to `true` ([see example]({% slug reordering_tilelayout %}#toc-disabling-reordering)).
43
- *
44
- * @default true
45
- */
46
- this.reorderable = true;
47
- /**
48
- * Determines whether the item can be resized. By default all items are resizable when the [resizable]({% slug api_layout_tilelayoutcomponent %}#resizable) property of the TileLayoutComponent is set to `true` ([see example](slug:resizing_tilelayout#toc-disabling-resizing)).
49
- * @default true
50
- */
51
- this.resizable = true;
52
- this.itemClass = true;
53
- this.hostRole = 'listitem';
54
- /**
55
- * @hidden
56
- */
57
- this.titleId = '';
58
- this.subs = new Subscription();
59
- this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
60
- this.rtl = rtl;
61
- }));
62
- this.subs.add(this.draggingService.resizable.subscribe(resizable => {
63
- this.resizeDirections = resizable && this.resizable ?
64
- this.rtl ? RTL_RESIZE_DIRECTIONS : RESIZE_DIRECTIONS : undefined;
65
- }));
66
- this.titleId = getId('k-tilelayout-title');
67
- }
24
+ elem;
25
+ zone;
26
+ renderer;
27
+ localization;
28
+ draggingService;
29
+ keyboardNavigationService;
30
+ /**
31
+ * The title that will be rendered in the item header ([see example]({% slug tiles_tilelayout %}#toc-tiles-configuration)).
32
+ */
33
+ title;
34
+ /**
35
+ * Determines how many rows will the tile item span ([see example](slug:tiles_tilelayout#toc-programmatic-resizing)).
36
+ * @default 1
37
+ */
38
+ rowSpan = 1;
39
+ /**
40
+ * Determines how many columns will the tile item span ([see example](slug:tiles_tilelayout#toc-programmatic-resizing)).
41
+ * @default 1
42
+ */
43
+ colSpan = 1;
68
44
  /**
69
45
  * Determines the order of the tile items within the TileLayout.
70
46
  * If not set, the items will receive increasing sequential order in accordance with
@@ -77,6 +53,27 @@ export class TileLayoutItemComponent {
77
53
  get order() {
78
54
  return this._order;
79
55
  }
56
+ /**
57
+ * Sets the starting column of the item ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
58
+ */
59
+ col;
60
+ /**
61
+ * Sets the starting row of the item ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
62
+ */
63
+ row;
64
+ /**
65
+ * Determines whether the item can be reordered. By default all items are reorderable when the [reorderable]({% slug api_layout_tilelayoutcomponent %}#toc-reorderable) property of the TileLayoutComponent is set to `true` ([see example]({% slug reordering_tilelayout %}#toc-disabling-reordering)).
66
+ *
67
+ * @default true
68
+ */
69
+ reorderable = true;
70
+ /**
71
+ * Determines whether the item can be resized. By default all items are resizable when the [resizable]({% slug api_layout_tilelayoutcomponent %}#resizable) property of the TileLayoutComponent is set to `true` ([see example](slug:resizing_tilelayout#toc-disabling-resizing)).
72
+ * @default true
73
+ */
74
+ resizable = true;
75
+ itemClass = true;
76
+ hostRole = 'listitem';
80
77
  get hostDropEffect() {
81
78
  return this.isResizable || this.isReorderable ? 'execute' : undefined;
82
79
  }
@@ -122,6 +119,39 @@ export class TileLayoutItemComponent {
122
119
  get isResizable() {
123
120
  return this.resizable && this.draggingService.resizable.getValue();
124
121
  }
122
+ /**
123
+ * @hidden
124
+ */
125
+ resizeDirections;
126
+ /**
127
+ * @hidden
128
+ */
129
+ rtl;
130
+ headers;
131
+ /**
132
+ * @hidden
133
+ */
134
+ titleId = '';
135
+ subs = new Subscription();
136
+ keyboardNavigationSubs;
137
+ focusableItems;
138
+ _order;
139
+ constructor(elem, zone, renderer, localization, draggingService, keyboardNavigationService) {
140
+ this.elem = elem;
141
+ this.zone = zone;
142
+ this.renderer = renderer;
143
+ this.localization = localization;
144
+ this.draggingService = draggingService;
145
+ this.keyboardNavigationService = keyboardNavigationService;
146
+ this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
147
+ this.rtl = rtl;
148
+ }));
149
+ this.subs.add(this.draggingService.resizable.subscribe(resizable => {
150
+ this.resizeDirections = resizable && this.resizable ?
151
+ this.rtl ? RTL_RESIZE_DIRECTIONS : RESIZE_DIRECTIONS : undefined;
152
+ }));
153
+ this.titleId = getId('k-tilelayout-title');
154
+ }
125
155
  ngAfterViewInit() {
126
156
  const elem = this.elem.nativeElement;
127
157
  const keyboardNavigation = this.keyboardNavigationService;
@@ -177,9 +207,8 @@ export class TileLayoutItemComponent {
177
207
  this.renderer.removeClass(headerEl, 'k-cursor-grab');
178
208
  }
179
209
  }
180
- }
181
- TileLayoutItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2.TileLayoutDraggingService }, { token: i3.TileLayoutKeyboardNavigationService }], target: i0.ɵɵFactoryTarget.Component });
182
- TileLayoutItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TileLayoutItemComponent, isStandalone: true, selector: "kendo-tilelayout-item", inputs: { title: "title", rowSpan: "rowSpan", colSpan: "colSpan", order: "order", col: "col", row: "row", reorderable: "reorderable", resizable: "resizable" }, host: { properties: { "class.k-tilelayout-item": "this.itemClass", "class.k-card": "this.itemClass", "attr.role": "this.hostRole", "attr.aria-dropeffect": "this.hostDropEffect", "attr.tabindex": "this.hostTabindex", "attr.aria-keyshortcuts": "this.ariaKeyShortcuts", "attr.aria-grabbed": "this.hostGrabbed", "attr.aria-labelledby": "this.hostLabelledBy", "style.grid-column-end": "this.colEnd", "style.grid-row-end": "this.rowEnd", "style.grid-column-start": "this.colStart", "style.grid-row-start": "this.rowStart" } }, queries: [{ propertyName: "headers", predicate: TileLayoutItemHeaderComponent }], usesOnChanges: true, ngImport: i0, template: `
210
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2.TileLayoutDraggingService }, { token: i3.TileLayoutKeyboardNavigationService }], target: i0.ɵɵFactoryTarget.Component });
211
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TileLayoutItemComponent, isStandalone: true, selector: "kendo-tilelayout-item", inputs: { title: "title", rowSpan: "rowSpan", colSpan: "colSpan", order: "order", col: "col", row: "row", reorderable: "reorderable", resizable: "resizable" }, host: { properties: { "class.k-tilelayout-item": "this.itemClass", "class.k-card": "this.itemClass", "attr.role": "this.hostRole", "attr.aria-dropeffect": "this.hostDropEffect", "attr.tabindex": "this.hostTabindex", "attr.aria-keyshortcuts": "this.ariaKeyShortcuts", "attr.aria-grabbed": "this.hostGrabbed", "attr.aria-labelledby": "this.hostLabelledBy", "style.grid-column-end": "this.colEnd", "style.grid-row-end": "this.rowEnd", "style.grid-column-start": "this.colStart", "style.grid-row-start": "this.rowStart" } }, queries: [{ propertyName: "headers", predicate: TileLayoutItemHeaderComponent }], usesOnChanges: true, ngImport: i0, template: `
183
212
  <kendo-tilelayout-item-header [reorderable]="isReorderable" *ngIf="title">
184
213
  <h5 [id]="titleId" class="k-card-title">{{ title }}</h5>
185
214
  </kendo-tilelayout-item-header>
@@ -194,7 +223,8 @@ TileLayoutItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
194
223
  </div>
195
224
  </ng-container>
196
225
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TileLayoutItemHeaderComponent, selector: "kendo-tilelayout-item-header", inputs: ["reorderable"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: TileLayoutResizeHandleDirective, selector: "[kendoTileLayoutResizeHandle]", inputs: ["resizeDirection", "rtl"] }] });
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutItemComponent, decorators: [{
226
+ }
227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutItemComponent, decorators: [{
198
228
  type: Component,
199
229
  args: [{
200
230
  selector: 'kendo-tilelayout-item',
@@ -9,6 +9,10 @@ import * as i0 from "@angular/core";
9
9
  * @hidden
10
10
  */
11
11
  export class TileLayoutResizeHandleDirective {
12
+ el;
13
+ renderer;
14
+ resizeDirection;
15
+ rtl;
12
16
  constructor(el, renderer) {
13
17
  this.el = el;
14
18
  this.renderer = renderer;
@@ -41,10 +45,10 @@ export class TileLayoutResizeHandleDirective {
41
45
  this.setBottom(element);
42
46
  }
43
47
  }
48
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutResizeHandleDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
49
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TileLayoutResizeHandleDirective, isStandalone: true, selector: "[kendoTileLayoutResizeHandle]", inputs: { resizeDirection: "resizeDirection", rtl: "rtl" }, ngImport: i0 });
44
50
  }
45
- TileLayoutResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutResizeHandleDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
46
- TileLayoutResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TileLayoutResizeHandleDirective, isStandalone: true, selector: "[kendoTileLayoutResizeHandle]", inputs: { resizeDirection: "resizeDirection", rtl: "rtl" }, ngImport: i0 });
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutResizeHandleDirective, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutResizeHandleDirective, decorators: [{
48
52
  type: Directive,
49
53
  args: [{
50
54
  selector: '[kendoTileLayoutResizeHandle]',
@@ -28,82 +28,22 @@ const autoFlowClasses = {
28
28
  * Represents the [Kendo UI TileLayout component for Angular]({% slug overview_tilelayout %})
29
29
  */
30
30
  export class TileLayoutComponent {
31
- constructor(zone, elem, renderer, localization, draggingService, navigationService) {
32
- this.zone = zone;
33
- this.elem = elem;
34
- this.renderer = renderer;
35
- this.localization = localization;
36
- this.draggingService = draggingService;
37
- this.navigationService = navigationService;
38
- /**
39
- * Defines the number of columns ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
40
- * @default 1
41
- */
42
- this.columns = 1;
43
- /**
44
- * Determines the width of the columns. Numeric values are treated as pixels ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
45
- * @default '1fr'
46
- */
47
- this.columnWidth = '1fr';
48
- /**
49
- * Determines whether the reordering functionality will be enabled ([see example]({% slug reordering_tilelayout %})).
50
- * @default false
51
- */
52
- this.reorderable = false;
53
- /**
54
- * Determines whether the resizing functionality will be enabled ([see example]({% slug resizing_tilelayout %})).
55
- * @default false
56
- */
57
- this.resizable = false;
58
- /**
59
- * Determines the height of the rows. Numeric values are treated as pixels ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
60
- * @default '1fr'
61
- */
62
- this.rowHeight = '1fr';
63
- /**
64
- * Controls how the auto-placement algorithm works, specifying exactly how auto-placed items are flowed in the TileLayout ([see example]({% slug tiles_autoflow_tilelayout %})).
65
- * For further reference, check the [grid-auto-flow CSS article](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow).
66
- *
67
- * The possible values are:
68
- * * (Default) `column`
69
- * * `row`
70
- * * `row dense`
71
- * * `column dense`
72
- * * `none`
73
- *
74
- */
75
- this.autoFlow = 'column';
76
- /**
77
- * If set to true, the user can use dedicated shortcuts to interact with the TileLayout.
78
- * By default, navigation is disabled and focusable TileLayout content is a part of the natural tab sequence of the page.
79
- *
80
- * @default false
81
- */
82
- this.navigable = false;
83
- /**
84
- * Fires when the user completes the reordering of the item ([see example]({% slug reordering_tilelayout %})).
85
- * This event is preventable. If you cancel it, the item will not be reordered.
86
- */
87
- this.reorder = new EventEmitter();
88
- /**
89
- * Fires when the user completes the resizing of the item ([see example]({% slug resizing_tilelayout %})).
90
- * This event is preventable. If you cancel it, the item will not be resized.
91
- */
92
- this.resize = new EventEmitter();
93
- this.hostClass = true;
94
- this.hostRole = 'list';
95
- /**
96
- * @hidden
97
- */
98
- this.showLicenseWatermark = false;
99
- this.subs = new Subscription();
100
- this._gap = {
101
- rows: 16,
102
- columns: 16
103
- };
104
- const isValid = validatePackage(packageMetadata);
105
- this.showLicenseWatermark = shouldShowValidationUI(isValid);
106
- }
31
+ zone;
32
+ elem;
33
+ renderer;
34
+ localization;
35
+ draggingService;
36
+ navigationService;
37
+ /**
38
+ * Defines the number of columns ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
39
+ * @default 1
40
+ */
41
+ columns = 1;
42
+ /**
43
+ * Determines the width of the columns. Numeric values are treated as pixels ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
44
+ * @default '1fr'
45
+ */
46
+ columnWidth = '1fr';
107
47
  /**
108
48
  * The numeric values which determine the spacing in pixels between the layout items horizontally and vertically.
109
49
  * Properties:
@@ -118,9 +58,57 @@ export class TileLayoutComponent {
118
58
  get gap() {
119
59
  return this._gap;
120
60
  }
61
+ /**
62
+ * Determines whether the reordering functionality will be enabled ([see example]({% slug reordering_tilelayout %})).
63
+ * @default false
64
+ */
65
+ reorderable = false;
66
+ /**
67
+ * Determines whether the resizing functionality will be enabled ([see example]({% slug resizing_tilelayout %})).
68
+ * @default false
69
+ */
70
+ resizable = false;
71
+ /**
72
+ * Determines the height of the rows. Numeric values are treated as pixels ([see example]({% slug tiles_tilelayout %}#toc-tile-size-and-position)).
73
+ * @default '1fr'
74
+ */
75
+ rowHeight = '1fr';
76
+ /**
77
+ * Controls how the auto-placement algorithm works, specifying exactly how auto-placed items are flowed in the TileLayout ([see example]({% slug tiles_autoflow_tilelayout %})).
78
+ * For further reference, check the [grid-auto-flow CSS article](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow).
79
+ *
80
+ * The possible values are:
81
+ * * (Default) `column`
82
+ * * `row`
83
+ * * `row dense`
84
+ * * `column dense`
85
+ * * `none`
86
+ *
87
+ */
88
+ autoFlow = 'column';
89
+ /**
90
+ * If set to true, the user can use dedicated shortcuts to interact with the TileLayout.
91
+ * By default, navigation is disabled and focusable TileLayout content is a part of the natural tab sequence of the page.
92
+ *
93
+ * @default false
94
+ */
95
+ navigable = false;
96
+ /**
97
+ * Fires when the user completes the reordering of the item ([see example]({% slug reordering_tilelayout %})).
98
+ * This event is preventable. If you cancel it, the item will not be reordered.
99
+ */
100
+ reorder = new EventEmitter();
101
+ /**
102
+ * Fires when the user completes the resizing of the item ([see example]({% slug resizing_tilelayout %})).
103
+ * This event is preventable. If you cancel it, the item will not be resized.
104
+ */
105
+ resize = new EventEmitter();
106
+ hostClass = true;
107
+ hostRole = 'list';
121
108
  get gapStyle() {
122
109
  return `${this.gap.rows}px ${this.gap.columns}px`;
123
110
  }
111
+ direction;
124
112
  get currentColStart() {
125
113
  return this.draggingService.colStart;
126
114
  }
@@ -133,6 +121,31 @@ export class TileLayoutComponent {
133
121
  get targetOrder() {
134
122
  return this.draggingService.order;
135
123
  }
124
+ /**
125
+ * A query list of all declared [TileLayoutItemComponent]({% slug api_layout_tilelayoutitemcomponent %}) items.
126
+ */
127
+ items;
128
+ hint;
129
+ /**
130
+ * @hidden
131
+ */
132
+ showLicenseWatermark = false;
133
+ draggable;
134
+ subs = new Subscription();
135
+ _gap = {
136
+ rows: 16,
137
+ columns: 16
138
+ };
139
+ constructor(zone, elem, renderer, localization, draggingService, navigationService) {
140
+ this.zone = zone;
141
+ this.elem = elem;
142
+ this.renderer = renderer;
143
+ this.localization = localization;
144
+ this.draggingService = draggingService;
145
+ this.navigationService = navigationService;
146
+ const isValid = validatePackage(packageMetadata);
147
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
148
+ }
136
149
  ngOnInit() {
137
150
  this.applyColStyling();
138
151
  this.applyRowStyling();
@@ -252,17 +265,16 @@ export class TileLayoutComponent {
252
265
  }
253
266
  });
254
267
  }
255
- }
256
- TileLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2.TileLayoutDraggingService }, { token: i3.TileLayoutKeyboardNavigationService }], target: i0.ɵɵFactoryTarget.Component });
257
- TileLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TileLayoutComponent, isStandalone: true, selector: "kendo-tilelayout", inputs: { columns: "columns", columnWidth: "columnWidth", gap: "gap", reorderable: "reorderable", resizable: "resizable", rowHeight: "rowHeight", autoFlow: "autoFlow", navigable: "navigable" }, outputs: { reorder: "reorder", resize: "resize" }, host: { properties: { "class.k-tilelayout": "this.hostClass", "class.k-pos-relative": "this.hostClass", "attr.role": "this.hostRole", "style.gap": "this.gapStyle", "style.padding": "this.gapStyle", "attr.dir": "this.direction" } }, providers: [
258
- LocalizationService,
259
- TileLayoutDraggingService,
260
- TileLayoutKeyboardNavigationService,
261
- {
262
- provide: L10N_PREFIX,
263
- useValue: 'kendo.tilelayout.component'
264
- }
265
- ], queries: [{ propertyName: "items", predicate: TileLayoutItemComponent }], viewQueries: [{ propertyName: "hint", first: true, predicate: ["hint"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
268
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2.TileLayoutDraggingService }, { token: i3.TileLayoutKeyboardNavigationService }], target: i0.ɵɵFactoryTarget.Component });
269
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TileLayoutComponent, isStandalone: true, selector: "kendo-tilelayout", inputs: { columns: "columns", columnWidth: "columnWidth", gap: "gap", reorderable: "reorderable", resizable: "resizable", rowHeight: "rowHeight", autoFlow: "autoFlow", navigable: "navigable" }, outputs: { reorder: "reorder", resize: "resize" }, host: { properties: { "class.k-tilelayout": "this.hostClass", "class.k-pos-relative": "this.hostClass", "attr.role": "this.hostRole", "style.gap": "this.gapStyle", "style.padding": "this.gapStyle", "attr.dir": "this.direction" } }, providers: [
270
+ LocalizationService,
271
+ TileLayoutDraggingService,
272
+ TileLayoutKeyboardNavigationService,
273
+ {
274
+ provide: L10N_PREFIX,
275
+ useValue: 'kendo.tilelayout.component'
276
+ }
277
+ ], queries: [{ propertyName: "items", predicate: TileLayoutItemComponent }], viewQueries: [{ propertyName: "hint", first: true, predicate: ["hint"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
266
278
  <ng-content></ng-content>
267
279
  <div #hint class="k-layout-item-hint k-layout-item-hint-reorder"
268
280
  [style.display]="'none'"
@@ -275,7 +287,8 @@ TileLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
275
287
  </div>
276
288
  <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
277
289
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutComponent, decorators: [{
290
+ }
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutComponent, decorators: [{
279
292
  type: Component,
280
293
  args: [{
281
294
  selector: 'kendo-tilelayout',
@@ -21,11 +21,11 @@ import * as i4 from "./tilelayout/tilelayout-item-header.component";
21
21
  * - `TileLayoutItemBodyComponent`&mdash;The `TileLayoutItemBodyComponent` component class.
22
22
  */
23
23
  export class TileLayoutModule {
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutModule, imports: [i1.TileLayoutComponent, i2.TileLayoutItemBodyComponent, i3.TileLayoutItemComponent, i4.TileLayoutItemHeaderComponent], exports: [i1.TileLayoutComponent, i2.TileLayoutItemBodyComponent, i3.TileLayoutItemComponent, i4.TileLayoutItemHeaderComponent] });
26
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutModule, imports: [i1.TileLayoutComponent] });
24
27
  }
25
- TileLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
- TileLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutModule, imports: [i1.TileLayoutComponent, i2.TileLayoutItemBodyComponent, i3.TileLayoutItemComponent, i4.TileLayoutItemHeaderComponent], exports: [i1.TileLayoutComponent, i2.TileLayoutItemBodyComponent, i3.TileLayoutItemComponent, i4.TileLayoutItemHeaderComponent] });
27
- TileLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutModule, imports: [KENDO_TILELAYOUT] });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TileLayoutModule, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TileLayoutModule, decorators: [{
29
29
  type: NgModule,
30
30
  args: [{
31
31
  exports: [...KENDO_TILELAYOUT],