@progress/kendo-angular-layout 19.1.2-develop.3 → 19.1.2-develop.5

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 (197) hide show
  1. package/avatar/avatar.component.d.ts +43 -47
  2. package/avatar/l10n/custom-messages.component.d.ts +9 -1
  3. package/avatar/l10n/messages.d.ts +1 -1
  4. package/avatar/models/fill.d.ts +1 -1
  5. package/avatar/models/rounded.d.ts +1 -1
  6. package/avatar/models/size.d.ts +1 -1
  7. package/avatar/models/theme-color.d.ts +1 -1
  8. package/avatar.module.d.ts +14 -2
  9. package/card/card-actions.component.d.ts +16 -15
  10. package/card/card-body.component.d.ts +9 -1
  11. package/card/card-footer.component.d.ts +9 -1
  12. package/card/card-header.component.d.ts +10 -1
  13. package/card/card.component.d.ts +19 -6
  14. package/card/directives/card-media.directive.d.ts +10 -1
  15. package/card/directives/card-separator.directive.d.ts +10 -4
  16. package/card/directives/card-subtitle.directive.d.ts +8 -1
  17. package/card/directives/card-title.directive.d.ts +8 -1
  18. package/card/models/actions-layout.d.ts +1 -8
  19. package/card/models/card-action.d.ts +4 -4
  20. package/card.module.d.ts +14 -2
  21. package/codemods/utils.js +0 -3
  22. package/common/orientation.d.ts +1 -1
  23. package/common/preventable-event.d.ts +3 -6
  24. package/directives.d.ts +13 -13
  25. package/drawer/drawer-container.component.d.ts +13 -1
  26. package/drawer/drawer-content.component.d.ts +9 -1
  27. package/drawer/drawer.component.d.ts +48 -47
  28. package/drawer/events/select-event.d.ts +5 -5
  29. package/drawer/models/drawer-animation.interface.d.ts +1 -2
  30. package/drawer/models/drawer-item-expand.interface.d.ts +1 -1
  31. package/drawer/models/drawer-item.interface.d.ts +15 -17
  32. package/drawer/models/mode.d.ts +4 -3
  33. package/drawer/models/position.d.ts +1 -6
  34. package/drawer/template-directives/drawer-template.directive.d.ts +18 -5
  35. package/drawer/template-directives/footer-template.directive.d.ts +11 -3
  36. package/drawer/template-directives/header-template.directive.d.ts +11 -3
  37. package/drawer/template-directives/item-template.directive.d.ts +19 -3
  38. package/drawer.module.d.ts +14 -2
  39. package/esm2022/avatar/avatar.component.mjs +43 -47
  40. package/esm2022/avatar/l10n/custom-messages.component.mjs +9 -1
  41. package/esm2022/avatar/l10n/messages.mjs +1 -1
  42. package/esm2022/avatar.module.mjs +14 -2
  43. package/esm2022/card/card-actions.component.mjs +16 -15
  44. package/esm2022/card/card-body.component.mjs +9 -1
  45. package/esm2022/card/card-footer.component.mjs +9 -1
  46. package/esm2022/card/card-header.component.mjs +10 -1
  47. package/esm2022/card/card.component.mjs +19 -6
  48. package/esm2022/card/directives/card-media.directive.mjs +10 -1
  49. package/esm2022/card/directives/card-separator.directive.mjs +10 -4
  50. package/esm2022/card/directives/card-subtitle.directive.mjs +8 -1
  51. package/esm2022/card/directives/card-title.directive.mjs +8 -1
  52. package/esm2022/card/models/card-action.mjs +4 -4
  53. package/esm2022/card.module.mjs +14 -2
  54. package/esm2022/common/preventable-event.mjs +3 -6
  55. package/esm2022/directives.mjs +13 -13
  56. package/esm2022/drawer/drawer-container.component.mjs +13 -1
  57. package/esm2022/drawer/drawer-content.component.mjs +9 -1
  58. package/esm2022/drawer/drawer.component.mjs +48 -47
  59. package/esm2022/drawer/events/select-event.mjs +5 -5
  60. package/esm2022/drawer/template-directives/drawer-template.directive.mjs +18 -5
  61. package/esm2022/drawer/template-directives/footer-template.directive.mjs +11 -3
  62. package/esm2022/drawer/template-directives/header-template.directive.mjs +11 -3
  63. package/esm2022/drawer/template-directives/item-template.directive.mjs +19 -3
  64. package/esm2022/drawer.module.mjs +14 -2
  65. package/esm2022/expansionpanel/events/action-event.mjs +2 -2
  66. package/esm2022/expansionpanel/expansionpanel-title.directive.mjs +12 -3
  67. package/esm2022/expansionpanel/expansionpanel.component.mjs +20 -27
  68. package/esm2022/expansionpanel.module.mjs +14 -2
  69. package/esm2022/gridlayout.module.mjs +14 -2
  70. package/esm2022/layout.module.mjs +10 -21
  71. package/esm2022/layouts/grid-layout.component.mjs +24 -17
  72. package/esm2022/layouts/gridlayout-item.component.mjs +16 -4
  73. package/esm2022/layouts/stack-layout.component.mjs +15 -6
  74. package/esm2022/package-metadata.mjs +2 -2
  75. package/esm2022/panelbar/events/collapse-event.mjs +2 -2
  76. package/esm2022/panelbar/events/expand-event.mjs +2 -2
  77. package/esm2022/panelbar/events/item-click-event.mjs +3 -3
  78. package/esm2022/panelbar/events/select-event.mjs +2 -2
  79. package/esm2022/panelbar/events/state-change-event.mjs +2 -2
  80. package/esm2022/panelbar/panelbar-content.directive.mjs +12 -1
  81. package/esm2022/panelbar/panelbar-expand-mode.mjs +3 -4
  82. package/esm2022/panelbar/panelbar-item-template.directive.mjs +12 -1
  83. package/esm2022/panelbar/panelbar-item-title.directive.mjs +12 -19
  84. package/esm2022/panelbar/panelbar-item.component.mjs +26 -11
  85. package/esm2022/panelbar/panelbar.component.mjs +40 -17
  86. package/esm2022/panelbar.module.mjs +13 -8
  87. package/esm2022/splitter/splitter-pane.component.mjs +40 -20
  88. package/esm2022/splitter/splitter.component.mjs +25 -41
  89. package/esm2022/splitter.module.mjs +13 -5
  90. package/esm2022/stacklayout.module.mjs +14 -2
  91. package/esm2022/stepper/events/activate-event.mjs +5 -5
  92. package/esm2022/stepper/localization/custom-messages.component.mjs +9 -1
  93. package/esm2022/stepper/localization/messages.mjs +1 -1
  94. package/esm2022/stepper/stepper.component.mjs +32 -39
  95. package/esm2022/stepper/stepper.service.mjs +4 -4
  96. package/esm2022/stepper/template-directives/indicator-template.directive.mjs +10 -1
  97. package/esm2022/stepper/template-directives/label-template.directive.mjs +10 -1
  98. package/esm2022/stepper/template-directives/step-template.directive.mjs +12 -1
  99. package/esm2022/stepper.module.mjs +14 -2
  100. package/esm2022/tabstrip/directives/tab-content.directive.mjs +12 -24
  101. package/esm2022/tabstrip/directives/tab-title.directive.mjs +10 -29
  102. package/esm2022/tabstrip/events/select-event.mjs +3 -1
  103. package/esm2022/tabstrip/events/tabclose-event.mjs +2 -1
  104. package/esm2022/tabstrip/events/tabscroll-event.mjs +2 -2
  105. package/esm2022/tabstrip/localization/custom-messages.component.mjs +11 -2
  106. package/esm2022/tabstrip/localization/messages.mjs +3 -3
  107. package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +30 -17
  108. package/esm2022/tabstrip/tabstrip.component.mjs +49 -37
  109. package/esm2022/tabstrip.module.mjs +13 -7
  110. package/esm2022/tilelayout/reorder-event.mjs +3 -2
  111. package/esm2022/tilelayout/resize-event.mjs +3 -2
  112. package/esm2022/tilelayout/tilelayout-item-body.component.mjs +10 -1
  113. package/esm2022/tilelayout/tilelayout-item-header.component.mjs +12 -2
  114. package/esm2022/tilelayout/tilelayout-item.component.mjs +20 -10
  115. package/esm2022/tilelayout/tilelayout.component.mjs +31 -26
  116. package/esm2022/tilelayout.module.mjs +13 -7
  117. package/esm2022/timeline/templates/timeline-card-actions.directive.mjs +11 -2
  118. package/esm2022/timeline/templates/timeline-card-body.directive.mjs +11 -2
  119. package/esm2022/timeline/templates/timeline-card-header.directive.mjs +12 -2
  120. package/esm2022/timeline/timeline.component.mjs +3 -0
  121. package/esm2022/timeline.module.mjs +13 -4
  122. package/expansionpanel/events/action-event.d.ts +3 -3
  123. package/expansionpanel/expansionpanel-title.directive.d.ts +12 -3
  124. package/expansionpanel/expansionpanel.component.d.ts +20 -27
  125. package/expansionpanel.module.d.ts +14 -2
  126. package/fesm2022/progress-kendo-angular-layout.mjs +1072 -641
  127. package/gridlayout.module.d.ts +14 -2
  128. package/layout.module.d.ts +10 -21
  129. package/layouts/grid-layout.component.d.ts +24 -17
  130. package/layouts/gridlayout-item.component.d.ts +16 -4
  131. package/layouts/models/gridlayout-gap-settings.d.ts +3 -3
  132. package/layouts/models/gridlayout-row-col-size.d.ts +4 -4
  133. package/layouts/models/layout-align-settings.d.ts +3 -3
  134. package/layouts/models/layout-horizontal-align.d.ts +1 -1
  135. package/layouts/models/layout-vertical-align.d.ts +1 -1
  136. package/layouts/stack-layout.component.d.ts +15 -6
  137. package/package.json +11 -10
  138. package/panelbar/events/collapse-event.d.ts +2 -2
  139. package/panelbar/events/expand-event.d.ts +2 -2
  140. package/panelbar/events/item-click-event.d.ts +3 -3
  141. package/panelbar/events/select-event.d.ts +2 -2
  142. package/panelbar/events/state-change-event.d.ts +2 -2
  143. package/panelbar/panelbar-content.directive.d.ts +12 -1
  144. package/panelbar/panelbar-expand-mode.d.ts +3 -4
  145. package/panelbar/panelbar-item-model.d.ts +6 -6
  146. package/panelbar/panelbar-item-template.directive.d.ts +12 -1
  147. package/panelbar/panelbar-item-title.directive.d.ts +12 -19
  148. package/panelbar/panelbar-item.component.d.ts +24 -9
  149. package/panelbar/panelbar.component.d.ts +40 -17
  150. package/panelbar.module.d.ts +13 -8
  151. package/splitter/splitter-pane.component.d.ts +40 -20
  152. package/splitter/splitter.component.d.ts +24 -40
  153. package/splitter.module.d.ts +13 -5
  154. package/stacklayout.module.d.ts +14 -2
  155. package/stepper/events/activate-event.d.ts +5 -5
  156. package/stepper/localization/custom-messages.component.d.ts +9 -1
  157. package/stepper/localization/messages.d.ts +1 -1
  158. package/stepper/models/orientation.d.ts +1 -3
  159. package/stepper/models/step-predicate.d.ts +5 -6
  160. package/stepper/models/step-type.d.ts +1 -4
  161. package/stepper/models/stepper-step.interface.d.ts +12 -12
  162. package/stepper/stepper.component.d.ts +32 -39
  163. package/stepper/template-directives/indicator-template.directive.d.ts +10 -1
  164. package/stepper/template-directives/label-template.directive.d.ts +10 -1
  165. package/stepper/template-directives/step-template.directive.d.ts +12 -1
  166. package/stepper.module.d.ts +14 -2
  167. package/tabstrip/directives/tab-content.directive.d.ts +12 -24
  168. package/tabstrip/directives/tab-title.directive.d.ts +10 -29
  169. package/tabstrip/events/select-event.d.ts +3 -1
  170. package/tabstrip/events/tabclose-event.d.ts +2 -1
  171. package/tabstrip/events/tabscroll-event.d.ts +2 -2
  172. package/tabstrip/localization/custom-messages.component.d.ts +11 -2
  173. package/tabstrip/localization/messages.d.ts +3 -3
  174. package/tabstrip/models/scroll-buttons-visibility.d.ts +1 -1
  175. package/tabstrip/models/scrollable-settings.d.ts +17 -22
  176. package/tabstrip/models/size.d.ts +1 -1
  177. package/tabstrip/models/tab-alignment.d.ts +1 -1
  178. package/tabstrip/models/tab-position.d.ts +1 -1
  179. package/tabstrip/models/tabstrip-tab.component.d.ts +30 -17
  180. package/tabstrip/tabstrip.component.d.ts +41 -29
  181. package/tabstrip.module.d.ts +13 -7
  182. package/tilelayout/models/flowmode.type.d.ts +7 -8
  183. package/tilelayout/models/gap.interface.d.ts +3 -5
  184. package/tilelayout/reorder-event.d.ts +3 -2
  185. package/tilelayout/resize-event.d.ts +3 -2
  186. package/tilelayout/tilelayout-item-body.component.d.ts +10 -1
  187. package/tilelayout/tilelayout-item-header.component.d.ts +12 -2
  188. package/tilelayout/tilelayout-item.component.d.ts +20 -10
  189. package/tilelayout/tilelayout.component.d.ts +31 -26
  190. package/tilelayout.module.d.ts +13 -7
  191. package/timeline/events/navigation-direction.d.ts +6 -0
  192. package/timeline/models/anchor-target.d.ts +6 -0
  193. package/timeline/templates/timeline-card-actions.directive.d.ts +11 -2
  194. package/timeline/templates/timeline-card-body.directive.d.ts +11 -2
  195. package/timeline/templates/timeline-card-header.directive.d.ts +12 -2
  196. package/timeline/timeline.component.d.ts +3 -0
  197. package/timeline.module.d.ts +13 -4
@@ -12,7 +12,23 @@ import { isChanged } from '@progress/kendo-angular-common';
12
12
  import * as i0 from "@angular/core";
13
13
  import * as i1 from "@progress/kendo-angular-l10n";
14
14
  /**
15
- * Represents the [Kendo UI GridLayout component for Angular]({% slug overview_gridlayout %}).
15
+ * Represents the Kendo UI GridLayout component for Angular.
16
+ * Arranges child components in a two-dimensional grid layout with customizable rows, columns, and gaps ([see overview]({% slug overview_gridlayout %})).
17
+ *
18
+ * @example
19
+ * ```html
20
+ * <kendo-gridlayout [rows]="[100, 200]" [cols]="['1fr', '2fr']" [gap]="10">
21
+ * <kendo-gridlayout-item [row]="1" [col]="1">
22
+ * <p>Item 1</p>
23
+ * </kendo-gridlayout-item>
24
+ * <kendo-gridlayout-item [row]="1" [col]="2">
25
+ * <p>Item 2</p>
26
+ * </kendo-gridlayout-item>
27
+ * </kendo-gridlayout>
28
+ * ```
29
+ *
30
+ * @remarks
31
+ * Supported children components are: {@link GridLayoutItemComponent}.
16
32
  */
17
33
  export class GridLayoutComponent {
18
34
  renderer;
@@ -26,31 +42,22 @@ export class GridLayoutComponent {
26
42
  * Specifies the number of rows and their height
27
43
  * ([More details](slug:layout_gridlayout#toc-rows-and-columns)).
28
44
  *
29
- * Accepts an array, which serves two purposes:
30
- *
31
- * The number of elements in the array defines the number of rows.
32
- * Each array element defines the size of the corresponding row. The possible array values are:
33
- * * `number` - Defines the size in pixels.
34
- * * `string` - Enables the usage of arbitrary units e.g. `20%` or `auto`.
35
- * * [GridLayoutRowSize]({% slug api_layout_gridlayoutrowsize %}) - Configuration object, which accepts a `height` key.
45
+ * You can define rows by passing an array where the number of elements determines the number of rows or each element defines the size of the corresponding row.
46
+ * For example, you can use CSS units like `px`, `%`, `fr`, or `auto` to define the row sizes.
36
47
  */
37
48
  rows;
38
49
  /**
39
50
  * Specifies the number of columns and their widths
40
51
  * ([More details](slug:layout_gridlayout#toc-rows-and-columns)).
41
52
  *
42
- * Accepts an array, which serves two purposes:
43
- *
44
- * The number of elements in the array defines the number of columns.
45
- * Each array element defines the size of the corresponding column. The possible array values are:
46
- * * `number` - Defines the size in pixels.
47
- * * `string` - Enables the usage of arbitrary units e.g. `20%` or `auto`.
48
- * * [GridLayoutColSize]({% slug api_layout_gridlayoutcolsize %}) - Configuration object, which accepts a `width` key.
53
+ * You can define columns by passing an array where the number of elements determines the number of columns or each element defines the size of the corresponding column.
54
+ * For example, you can use CSS units like `px`, `%`, `fr`, or `auto` to define the column sizes.
49
55
  */
50
56
  cols;
51
57
  /**
52
- * Specifies the gaps between the elements. The default value is `0`
53
- * ([see example](slug:layout_gridlayout#toc-gap)).
58
+ * Specifies the gaps between the elements ([see example](slug:layout_gridlayout#toc-gap)).
59
+ *
60
+ * @default 0
54
61
  */
55
62
  gap = 0;
56
63
  /**
@@ -4,6 +4,16 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Input, Renderer2, ElementRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents the GridLayout item component. Defines the positioning and spanning of individual items within a GridLayout.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <kendo-gridlayout-item [row]="1" [col]="2" [rowSpan]="2" [colSpan]="1">
13
+ * <div>Grid item content</div>
14
+ * </kendo-gridlayout-item>
15
+ * ```
16
+ */
7
17
  export class GridLayoutItemComponent {
8
18
  renderer;
9
19
  element;
@@ -18,13 +28,15 @@ export class GridLayoutItemComponent {
18
28
  */
19
29
  col;
20
30
  /**
21
- * Determines how many rows will the item span. The default size is one row
22
- * ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
31
+ * Specifies how many rows the item spans ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
32
+ *
33
+ * @default 1
23
34
  */
24
35
  rowSpan;
25
36
  /**
26
- * Determines how many columns will the item span. The default size is one column
27
- * ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
37
+ * Specifies how many columns the item spans ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
38
+ *
39
+ * @default 1
28
40
  */
29
41
  colSpan;
30
42
  constructor(renderer, element) {
@@ -12,7 +12,17 @@ import { isChanged } from '@progress/kendo-angular-common';
12
12
  import * as i0 from "@angular/core";
13
13
  import * as i1 from "@progress/kendo-angular-l10n";
14
14
  /**
15
- * Represents the [Kendo UI StackLayout component for Angular]({% slug overview_stacklayout %}).
15
+ * Represents the Kendo UI StackLayout component for Angular.
16
+ * Arranges child components in a single row or column with customizable alignment and spacing ([see overview]({% slug overview_stacklayout %})).
17
+ *
18
+ * @example
19
+ * ```html
20
+ * <kendo-stacklayout orientation="horizontal" [gap]="16">
21
+ * <button class="k-button">Button 1</button>
22
+ * <button class="k-button">Button 2</button>
23
+ * <button class="k-button">Button 3</button>
24
+ * </kendo-stacklayout>
25
+ * ```
16
26
  */
17
27
  export class StackLayoutComponent {
18
28
  renderer;
@@ -40,17 +50,16 @@ export class StackLayoutComponent {
40
50
  return this._align;
41
51
  }
42
52
  /**
43
- * Specifies the gap between the inner StackLayout elements. The default value is `0`
44
- * ([see example](slug:layout_stacklayout#toc-gap)).
53
+ * Specifies the gap between the inner StackLayout elements ([see example](slug:layout_stacklayout#toc-gap)).
54
+ *
55
+ * @default 0
45
56
  */
46
57
  gap = 0;
47
58
  /**
48
59
  * Specifies the orientation of the StackLayout
49
60
  * ([see example]({% slug layout_stacklayout %}#toc-orientation)).
50
61
  *
51
- * The possible values are:
52
- * (Default) `horizontal`
53
- * `vertical`
62
+ * @default 'horizontal'
54
63
  */
55
64
  orientation = 'horizontal';
56
65
  _align = {
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1750152493,
14
- version: '19.1.2-develop.3',
13
+ publishDate: 1750430829,
14
+ version: '19.1.2-develop.5',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
16
16
  };
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from '../../common/preventable-event';
6
6
  /**
7
- * Arguments for the `collapse` event of the PanelBar.
7
+ * Defines the arguments for the `collapse` event of the PanelBar.
8
8
  */
9
9
  export class PanelBarCollapseEvent extends PreventableEvent {
10
10
  /**
11
- * The item that will be collapsed.
11
+ * Defines the item that will be collapsed.
12
12
  */
13
13
  item;
14
14
  }
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from '../../common/preventable-event';
6
6
  /**
7
- * Arguments for the `expand` event of the PanelBar.
7
+ * Defines the arguments for the `expand` event of the PanelBar.
8
8
  */
9
9
  export class PanelBarExpandEvent extends PreventableEvent {
10
10
  /**
11
- * The item that will be expanded.
11
+ * Defines the item that will be expanded.
12
12
  */
13
13
  item;
14
14
  }
@@ -3,15 +3,15 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the `itemClick` event of the PanelBar.
6
+ * Defines the arguments for the `itemClick` event of the PanelBar.
7
7
  */
8
8
  export class PanelBarItemClickEvent {
9
9
  /**
10
- * The clicked item.
10
+ * Defines the clicked item.
11
11
  */
12
12
  item;
13
13
  /**
14
- * The DOM event that triggered the `itemClick` event.
14
+ * Defines the DOM event that triggered the `itemClick` event.
15
15
  */
16
16
  originalEvent;
17
17
  }
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from '../../common/preventable-event';
6
6
  /**
7
- * Arguments for the `select` event of the PanelBar.
7
+ * Defines the arguments for the `select` event of the PanelBar.
8
8
  */
9
9
  export class PanelBarSelectEvent extends PreventableEvent {
10
10
  /**
11
- * The item that will be selected.
11
+ * Defines the item that will be selected.
12
12
  */
13
13
  item;
14
14
  }
@@ -3,11 +3,11 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the `stateChange` event of the PanelBar.
6
+ * Defines the arguments for the `stateChange` event of the PanelBar.
7
7
  */
8
8
  export class PanelBarStateChangeEvent {
9
9
  /**
10
- * A collection of all modified items.
10
+ * Defines a collection of all modified items.
11
11
  */
12
12
  items;
13
13
  }
@@ -5,8 +5,19 @@
5
5
  import { Directive, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the content template of the declaratively initialized PanelBar items.
8
+ * Defines the content template of the declaratively initialized PanelBar items.
9
+ * To define the content template, nest an `<ng-template>` tag
10
+ * with the `kendoPanelBarContent` directive inside the `<kendo-panelbar-item>` tag.
9
11
  * The content can be expanded or collapsed through the item.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-panelbar-item title="Item">
16
+ * <div kendoPanelBarContent>
17
+ * <p>Item content goes here</p>
18
+ * </div>
19
+ * </kendo-panelbar-item>
20
+ * ```
10
21
  */
11
22
  export class PanelBarContentDirective {
12
23
  templateRef;
@@ -3,14 +3,13 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the expand modes of the PanelBar.
7
- * By default, the expand mode is set to `multiple`.
6
+ * Defines the expand modes of the PanelBar.
8
7
  */
9
8
  export var PanelBarExpandMode;
10
9
  (function (PanelBarExpandMode) {
11
10
  /**
12
11
  * Allows you to expand only one item at a time.
13
- * When you expand an item, the item that was previously expanded is coll.
12
+ * When you expand an item, the item that was previously expanded is collapsed.
14
13
  */
15
14
  PanelBarExpandMode[PanelBarExpandMode["Single"] = 0] = "Single";
16
15
  /**
@@ -24,7 +23,7 @@ export var PanelBarExpandMode;
24
23
  */
25
24
  PanelBarExpandMode[PanelBarExpandMode["Multiple"] = 2] = "Multiple";
26
25
  /**
27
- * By default, the expand mode is set to `multiple`.
26
+ * The default expand mode set to `multiple`.
28
27
  */
29
28
  PanelBarExpandMode[PanelBarExpandMode["Default"] = 2] = "Default";
30
29
  })(PanelBarExpandMode || (PanelBarExpandMode = {}));
@@ -5,7 +5,18 @@
5
5
  import { Directive, TemplateRef, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the template directive of the PanelBar which helps to customize the item content.
8
+ * Defines the template directive of the PanelBar which helps to customize the item content.
9
+ * To define the template, nest an `<ng-template>` tag
10
+ * with the `kendoPanelBarItemTemplate` directive inside the `<kendo-panelbar>` tag.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <kendo-panelbar>
15
+ * <ng-template kendoPanelBarItemTemplate let-dataItem>
16
+ * <span>{{ dataItem.title }}</span>
17
+ * </ng-template>
18
+ * </kendo-panelbar>
19
+ * ```
9
20
  */
10
21
  export class PanelBarItemTemplateDirective {
11
22
  templateRef;
@@ -5,29 +5,22 @@
5
5
  import { Directive, TemplateRef, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the template directive of the PanelBar which helps to customize the item title
8
+ * Defines the template directive of the PanelBar which helps to customize the item title
9
9
  * ([more information and example]({% slug templates_panelbar %}#toc-customizing-the-appearance-of-the-title)).
10
+ * To define the template, nest an `<ng-template>` tag
11
+ * with the `kendoPanelBarItemTitle` directive inside the `<kendo-panelbar-item>` tag.
10
12
  *
11
- * > The `kendoPanelBarItemTitle` directive overrides the PanelBarItem [title]({% slug api_layout_panelbaritemcomponent %}#toc-title) option.
13
+ * The `kendoPanelBarItemTitle` directive overrides the PanelBarItem [title]({% slug api_layout_panelbaritemcomponent %}#toc-title) option.
12
14
  *
13
15
  * @example
14
- * ```ts-preview
15
- *
16
- * _@Component({
17
- * selector: 'my-app',
18
- * template: `
19
- * <kendo-panelbar>
20
- * <kendo-panelbar-item [expanded]="true">
21
- * <ng-template kendoPanelBarItemTitle>
22
- * Item Title
23
- * </ng-template>
24
- * </kendo-panelbar-item>
25
- * </kendo-panelbar>
26
- * `
27
- * })
28
- *
29
- * class AppComponent {}
30
- *
16
+ * ```html
17
+ * <kendo-panelbar>
18
+ * <kendo-panelbar-item [expanded]="true">
19
+ * <ng-template kendoPanelBarItemTitle>
20
+ * Item Title
21
+ * </ng-template>
22
+ * </kendo-panelbar-item>
23
+ * </kendo-panelbar>
31
24
  * ```
32
25
  */
33
26
  export class PanelBarItemTitleDirective {
@@ -21,7 +21,14 @@ import * as i1 from "./panelbar.service";
21
21
  */
22
22
  let nextId = 0;
23
23
  /**
24
- * Represents the items of the PanelBar.
24
+ * Represents the PanelBar item component for Angular. Defines the items of the PanelBar.
25
+ *
26
+ * @example
27
+ * ```html
28
+ * <kendo-panelbar-item title="Item 1" [expanded]="true">
29
+ * <kendo-panelbar-item title="Sub Item 1"></kendo-panelbar-item>
30
+ * </kendo-panelbar-item>
31
+ * ```
25
32
  */
26
33
  export class PanelBarItemComponent {
27
34
  parent;
@@ -38,17 +45,21 @@ export class PanelBarItemComponent {
38
45
  */
39
46
  id = `default-${nextId++}`;
40
47
  /**
41
- * Defines the icon that will be rendered next to the title ([see example]({% slug items_panelbar %}#toc-title-icons)).
48
+ * Defines the icon that renders next to the title ([see example]({% slug items_panelbar %}#toc-title-icons)).
49
+ *
50
+ * @default ''
42
51
  */
43
52
  icon = '';
44
53
  /**
45
- * Defines the icon that will be rendered next to the title by using a custom CSS class
54
+ * Defines the icon that renders next to the title by using a custom CSS class
46
55
  * ([see example]({% slug items_panelbar %}#toc-title-icons)).
56
+ *
57
+ * @default ''
47
58
  */
48
59
  iconClass = '';
49
60
  /**
50
- * Defines an SVGIcon to be rendered.
51
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
61
+ * Defines an SVG icon to render.
62
+ * You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
52
63
  */
53
64
  set svgIcon(icon) {
54
65
  if (isDevMode() && icon && this.icon && this.iconClass) {
@@ -60,12 +71,16 @@ export class PanelBarItemComponent {
60
71
  return this._svgIcon;
61
72
  }
62
73
  /**
63
- * Defines the location of the image that will be displayed next to the title
74
+ * Defines the location of the image that displays next to the title
64
75
  * ([see example]({% slug items_panelbar %}#toc-title-images)).
76
+ *
77
+ * @default ''
65
78
  */
66
79
  imageUrl = '';
67
80
  /**
68
81
  * When set to `true`, disables a PanelBar item ([see example]({% slug items_panelbar %}#toc-disabled-state)).
82
+ *
83
+ * @default false
69
84
  */
70
85
  disabled = false;
71
86
  /**
@@ -84,13 +99,13 @@ export class PanelBarItemComponent {
84
99
  }
85
100
  /**
86
101
  * Sets the selected state of a PanelBar item ([see example]({% slug items_panelbar %}#toc-selected-state)).
102
+ *
103
+ * @default false
87
104
  */
88
105
  selected = false;
89
106
  /**
90
107
  * Sets the content of the PanelBar item.
91
- * By design, it is used when the
92
- * [items]({% slug api_layout_panelbarcomponent %}#toc-items)
93
- * property of the PanelBar is set.
108
+ * It is used when the [`items`]({% slug api_layout_panelbarcomponent %}#toc-items) property of the PanelBar is set.
94
109
  */
95
110
  content;
96
111
  /**
@@ -356,7 +371,7 @@ export class PanelBarItemComponent {
356
371
  >
357
372
  </kendo-icon-wrapper>
358
373
  </span>
359
- <div
374
+ <div
360
375
  #contentWrapper
361
376
  *ngIf="keepContent || (!disabled && expanded && (hasChildItems || hasContent))"
362
377
  [@toggle]="state"
@@ -510,7 +525,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
510
525
  >
511
526
  </kendo-icon-wrapper>
512
527
  </span>
513
- <div
528
+ <div
514
529
  #contentWrapper
515
530
  *ngIf="keepContent || (!disabled && expanded && (hasChildItems || hasContent))"
516
531
  [@toggle]="state"
@@ -20,7 +20,27 @@ import * as i0 from "@angular/core";
20
20
  import * as i1 from "./panelbar.service";
21
21
  import * as i2 from "@progress/kendo-angular-l10n";
22
22
  /**
23
- * Represents the [Kendo UI PanelBar component for Angular]({% slug overview_panelbar %}).
23
+ * Represents the Kendo UI PanelBar component for Angular.
24
+ * Displays hierarchical data as an expandable and collapsible accordion-style interface ([see overview]({% slug overview_panelbar %})).
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * @Component({
29
+ * selector: 'my-app',
30
+ * template: `
31
+ * <kendo-panelbar [items]="items" expandMode="single">
32
+ * </kendo-panelbar>
33
+ * `
34
+ * })
35
+ * class AppComponent {
36
+ * items = [
37
+ * { title: 'Item 1', expanded: true, content: 'Content 1' },
38
+ * { title: 'Item 2', content: 'Content 2' }
39
+ * ];
40
+ * }
41
+ * ```
42
+ * @remarks
43
+ * Supported children components are: {@link PanelBarItemComponent}.
24
44
  */
25
45
  // TODO: add styles as input prop
26
46
  export class PanelBarComponent {
@@ -28,31 +48,33 @@ export class PanelBarComponent {
28
48
  /**
29
49
  * Sets the expand mode of the PanelBar through the `PanelBarExpandMode` enum ([see example]({% slug expandmodes_panelbar %})).
30
50
  *
31
- * The available modes are:
32
- * - `"single"`&mdash;Expands only one item at a time. Expanding an item collapses the item that was previously expanded.
33
- * - `"multiple"`&mdash;The default mode of the PanelBar.
34
- * Expands more than one item at a time. Items can also be toggled.
35
- * - `"full"`&mdash;Expands only one item at a time.
36
- * The expanded area occupies the entire height of the PanelBar. Requires you to set the `height` property.
51
+ * @default 'multiple
37
52
  */
38
53
  expandMode = PanelBarExpandMode.Default;
39
54
  /**
40
55
  * Allows the PanelBar to modify the selected state of the items.
56
+ *
57
+ * @default true
41
58
  */
42
59
  selectable = true;
43
60
  /**
44
61
  * Sets the animate state of the PanelBar ([see example]({% slug animations_panelbar %})).
62
+ *
63
+ * @default true
45
64
  */
46
65
  animate = true;
47
66
  /**
48
67
  * Sets the height of the component when the `"full"` expand mode is used.
49
- * This option is ignored in the `"multiple"` and `"single"` expand modes.
68
+ * This option is ignored when the `"multiple"` or `"single"` expand modes are used.
69
+ *
70
+ * @default '400px'
50
71
  */
51
72
  height = '400px';
52
73
  /**
53
74
  * When set to `true`, the PanelBar renders the content of all items and they are persisted in the DOM
54
75
  * ([see example]({% slug templates_panelbar %}#toc-collections)).
55
- * By default, this option is set to `false`.
76
+ *
77
+ * @default false
56
78
  */
57
79
  get keepItemContent() {
58
80
  return this._keepItemContent;
@@ -74,31 +96,32 @@ export class PanelBarComponent {
74
96
  return this._items;
75
97
  }
76
98
  /**
77
- * Fires each time the user interacts with a PanelBar item
99
+ * Fires when the state of the PanelBar changes.
100
+ * This event is triggered when an item is selected, expanded, or collapsed.
78
101
  * ([see example](slug:routing_panelbar#using-router-service)).
79
102
  * The event data contains a collection of all items that are modified.
80
103
  */
81
104
  stateChange = new EventEmitter();
82
105
  /**
83
106
  * Fires when an item is about to be selected.
84
- * ([see example]({% slug events_panelbar %}))
85
- * This event is preventable. If you cancel it, the item will not be selected.
107
+ * This event is preventable. If you cancel it, the item will not be selected
108
+ * ([see example]({% slug events_panelbar %})).
86
109
  */
87
110
  select = new EventEmitter();
88
111
  /**
89
112
  * Fires when an item is about to be expanded.
90
- * ([see example]({% slug events_panelbar %}))
91
- * This event is preventable. If you cancel it, the item will remain collapsed.
113
+ * This event is preventable. If you cancel it, the item will remain collapsed
114
+ * ([see example]({% slug events_panelbar %})).
92
115
  */
93
116
  expand = new EventEmitter();
94
117
  /**
95
118
  * Fires when an item is about to be collapsed.
96
- * ([see example]({% slug events_panelbar %}))
97
- * This event is preventable. If you cancel it, the item will remain expanded.
119
+ * This event is preventable. If you cancel it, the item will remain expanded
120
+ * ([see example]({% slug events_panelbar %})).
98
121
  */
99
122
  collapse = new EventEmitter();
100
123
  /**
101
- * Fires when the user clicks an item ([see example]({% slug events_panelbar %})).
124
+ * Fires when an item is clicked ([see example]({% slug events_panelbar %})).
102
125
  */
103
126
  itemClick = new EventEmitter();
104
127
  hostClasses = true;
@@ -12,15 +12,20 @@ import * as i4 from "./panelbar/panelbar-item-template.directive";
12
12
  import * as i5 from "./panelbar/panelbar-item-title.directive";
13
13
  // IMPORTANT: NgModule export kept for backwards compatibility
14
14
  /**
15
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
16
- * definition for the PanelBar component.
15
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the PanelBar component.
17
16
  *
18
- * The module registers:
19
- * - `PanelBarComponent`&mdash;The `PanelBar` component class.
20
- * - `PanelBarItemComponent`&mdash;The `PanelBarItem` component class.
21
- * - `PanelBarContentComponent`&mdash;The `PanelBarContent` component class.
22
- * - `PanelBarItemTemplateDirective&mdash;The `PanelBarItemTemplate` directive.
23
- * - `PanelBarItemTitleDirective&mdash;The `PanelBarItemTitle` directive.
17
+ * Use this module to add the PanelBar component to your NgModule-based Angular application.
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * import { PanelBarModule } from '@progress/kendo-angular-layout';
22
+ * import { NgModule } from '@angular/core';
23
+ *
24
+ * @NgModule({
25
+ * imports: [PanelBarModule]
26
+ * })
27
+ * export class AppModule { }
28
+ * ```
24
29
  */
25
30
  export class PanelBarModule {
26
31
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });