@progress/kendo-angular-layout 19.1.2-develop.4 → 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 +9 -9
  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
@@ -6,37 +6,18 @@ import { Directive, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Represents the title template of the Kendo UI TabStrip.
9
- * To define the template, nest a `<ng-template>` tag with the `kendoTabTitle` directive inside the component tag.
10
- *
11
- * > The `kendoTabTitle` directive overrides the TabStripTab [title]({% slug api_layout_tabstriptabcomponent %}#toc-title) option.
9
+ * To define the template, nest an `<ng-template>` tag with the `kendoTabTitle` directive inside the component tag.
10
+ * The `kendoTabTitle` directive overrides the TabStripTab [`title`]({% slug api_layout_tabstriptabcomponent %}#toc-title) option.
12
11
  *
13
12
  * @example
14
- * ```ts-preview
15
- *
16
- * _@Component({
17
- * selector: 'my-app',
18
- * template: `
19
- * <kendo-tabstrip>
20
- * <kendo-tabstrip-tab [selected]="true">
21
- * <ng-template kendoTabTitle>
22
- * <h4>Custom Title</h4>
23
- * </ng-template>
24
- * <ng-template kendoTabContent>
25
- * <h3>Content 1</h3>
26
- * </ng-template>
27
- * </kendo-tabstrip-tab>
28
- *
29
- * <kendo-tabstrip-tab title="Sofia">
30
- * <ng-template kendoTabContent>
31
- * <h3>Content 2</h3>
32
- * </ng-template>
33
- * </kendo-tabstrip-tab>
34
- * </kendo-tabstrip>
35
- * `
36
- * })
37
- *
38
- * class AppComponent {}
39
- *
13
+ * ```html
14
+ * <kendo-tabstrip>
15
+ * <kendo-tabstrip-tab>
16
+ * <ng-template kendoTabTitle>
17
+ * <span class="custom-title">My Custom Title</span>
18
+ * </ng-template>
19
+ * </kendo-tabstrip-tab>
20
+ * </kendo-tabstrip>
40
21
  * ```
41
22
  */
42
23
  export class TabTitleDirective {
@@ -5,7 +5,7 @@
5
5
  import { PreventableEvent } from "@progress/kendo-angular-common";
6
6
  /**
7
7
  * Arguments for the `select` event of the TabStrip.
8
- * The `select` event fires when a tab is selected (clicked).
8
+ * The `select` event fires when tab is selected (clicked).
9
9
  */
10
10
  export class SelectEvent extends PreventableEvent {
11
11
  index;
@@ -14,6 +14,8 @@ export class SelectEvent extends PreventableEvent {
14
14
  * Constructs the event arguments for the `select` event.
15
15
  * @param index - The index of the selected tab.
16
16
  * @param title - The title of the selected tab.
17
+ *
18
+ * @hidden
17
19
  */
18
20
  constructor(index, title) {
19
21
  super();
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Arguments for the `tabClose` event of the TabStrip.
7
- * The `tabClose` event fires when the close button of the tab is clicked.
7
+ * The `tabClose` event fires when a tab is closed (clicked on the close button).
8
8
  *
9
9
  */
10
10
  export class TabCloseEvent {
@@ -14,6 +14,7 @@ export class TabCloseEvent {
14
14
  * Constructs the event arguments for the `tabClose` event.
15
15
  * @param index - The index of the closed tab.
16
16
  * @param tab - The closed tab instance
17
+ * @hidden
17
18
  */
18
19
  constructor(index, tab) {
19
20
  this.index = index;
@@ -5,12 +5,12 @@
5
5
  import { PreventableEvent } from "@progress/kendo-angular-common";
6
6
  /**
7
7
  * Arguments for the `tabScroll` event of the TabStrip.
8
- * The `tabScroll` event fires when the tabs are being scrolled.
8
+ * The `tabScroll` event fires when you scroll the tabs.
9
9
  *
10
10
  */
11
11
  export class TabScrollEvent extends PreventableEvent {
12
12
  /**
13
- * The DOM event that triggered the tab scroll.
13
+ * The original DOM event that caused the tab scroll.
14
14
  */
15
15
  originalEvent;
16
16
  /**
@@ -8,8 +8,17 @@ import { TabStripMessages } from './messages';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-l10n";
10
10
  /**
11
- * Custom component messages override default component messages
12
- * ([see example]({% slug rtl_layout %})).
11
+ * Represents the custom messages component for the TabStrip.
12
+ * It allows you to override the default messages used in the TabStrip component ([see example]({% slug rtl_layout %})).
13
+ *
14
+ * ```html
15
+ * <kendo-tabstrip>
16
+ * <kendo-tabstrip-messages
17
+ * closeTitle="Close this tab"
18
+ * previousTabButton="Go to previous tab"
19
+ * </kendo-tabstrip-messages>
20
+ * </kendo-tabstrip>
21
+ * ```
13
22
  */
14
23
  export class TabStripCustomMessagesComponent extends TabStripMessages {
15
24
  service;
@@ -10,15 +10,15 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class TabStripMessages extends ComponentMessages {
12
12
  /**
13
- * The title for the **Close** button in the TabStrip tab.
13
+ * Sets the title for the **Close** button in the TabStrip tab.
14
14
  */
15
15
  closeTitle;
16
16
  /**
17
- * The title for the **Previous Tab** button when the Tabstrip is scrollable.
17
+ * Sets the title for the **Previous Tab** button when the TabStrip is scrollable.
18
18
  */
19
19
  previousTabButton;
20
20
  /**
21
- * The title for the **Next Tab** button when the Tabstrip is scrollable.
21
+ * Sets the title for the **Next Tab** button when the TabStrip is scrollable.
22
22
  */
23
23
  nextTabButton;
24
24
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabStripMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
@@ -8,52 +8,65 @@ import { TabTitleDirective } from '../directives/tab-title.directive';
8
8
  import { TabTemplateDirective } from '../directives/tab.directive';
9
9
  import * as i0 from "@angular/core";
10
10
  /**
11
- * Represents the tab component of the TabStrip.
11
+ * Represents the Kendo UI TabStrip tab component.
12
+ * Use this component to define individual tabs within a TabStrip.
13
+ *
14
+ * @example
15
+ * ```html
16
+ * <kendo-tabstrip>
17
+ * <kendo-tabstrip-tab title="Home" [selected]="true">
18
+ * <ng-template kendoTabContent>
19
+ * Home content here
20
+ * </ng-template>
21
+ * </kendo-tabstrip-tab>
22
+ * </kendo-tabstrip>
23
+ * ```
12
24
  */
13
25
  export class TabStripTabComponent {
14
26
  /**
15
- * Sets the tab title ([see example](slug:tabs_tabstrip#toc-tab-titles)).
27
+ * Sets the title text for the tab ([see example](slug:tabs_tabstrip#toc-tab-titles)).
16
28
  */
17
29
  title;
18
30
  /**
19
- * Used to disable a tab ([see example]({% slug tabs_tabstrip %}#toc-disabled-tabs)).
31
+ * Disables the tab and prevents user interaction ([see example]({% slug tabs_tabstrip %}#toc-disabled-tabs)).
20
32
  *
21
- * Defaults to `false`.
33
+ * @default false
22
34
  */
23
35
  disabled = false;
24
36
  /**
25
- * The CSS classes that will be rendered on the `tab` element.
26
- * Supports the type of values that are supported by [ngClass](link:site.data.urls.angular['ngclassapi']).
37
+ * Specifies the CSS classes to apply to the `tab` element.
38
+ * Accepts the same values as [`ngClass`](link:site.data.urls.angular['ngclassapi']).
27
39
  */
28
40
  cssClass;
29
41
  /**
30
- * The CSS styles that will be rendered on the `tab` element.
31
- * Supports the type of values that are supported by [ngStyle](link:site.data.urls.angular['ngstyleapi']).
42
+ * Specifies the CSS styles to apply to the `tab` element.
43
+ * Accepts the same values as [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
32
44
  */
33
45
  cssStyle;
34
46
  /**
35
- * Determines which tab will be selected upon the initial loading of the TabStrip
47
+ * Selects the tab when the TabStrip loads
36
48
  * ([see example](slug:tabs_tabstrip#toc-selected-tab)).
37
49
  */
38
50
  selected;
39
51
  /**
40
- * When set to `true`, a close button will be rendered inside the tab.
41
- * This option overrides the value of the TabStrip `closable` option.
52
+ * Shows a close button inside the tab when set to `true`.
53
+ * This setting overrides the TabStrip `closable` option.
42
54
  */
43
55
  closable;
44
56
  /**
45
- * Defines the name for an existing font icon in the Kendo UI theme for the close icon.
46
- * This option overrides the value of the TabStrip `closeIcon` option.
57
+ * Sets the name of an existing font icon in the Kendo UI theme for the close button.
58
+ * This setting overrides the TabStrip `closeIcon` option.
47
59
  */
48
60
  closeIcon;
49
61
  /**
50
- * Allows the usage of custom icons by defining a custom CSS class, or multiple classes separated by spaces.
51
- * This option overrides the value of the TabStrip `closeIcon` option.
62
+ * Sets custom CSS classes for the close button icon.
63
+ * You can define a single class or multiple classes separated by spaces.
64
+ * This setting overrides the TabStrip `closeIcon` option.
52
65
  */
53
66
  closeIconClass;
54
67
  /**
55
- * Defines an SVGIcon to be rendered for the close icon.
56
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
68
+ * Sets an SVG icon for the close button.
69
+ * You can use an [existing Kendo SVG icon](slug:svgicon_list) or provide a custom one.
57
70
  */
58
71
  closeSVGIcon;
59
72
  get tabContent() {
@@ -28,6 +28,24 @@ import * as i2 from "./tabstrip.service";
28
28
  import * as i3 from "./tabstrip-scroll.service";
29
29
  /**
30
30
  * Represents the [Kendo UI TabStrip component for Angular]({% slug overview_tabstrip %}).
31
+ *
32
+ * @example
33
+ * ```html
34
+ * <kendo-tabstrip>
35
+ * <kendo-tabstrip-tab [title]="'First Tab'">
36
+ * <ng-template kendoTabContent>
37
+ * <p>Content of the first tab.</p>
38
+ * </ng-template>
39
+ * </kendo-tabstrip-tab>
40
+ * <kendo-tabstrip-tab [title]="'Second Tab'">
41
+ * <ng-template kendoTabContent>
42
+ * <p>Content of the second tab.</p>
43
+ * </ng-template>
44
+ * </kendo-tabstrip-tab>
45
+ * </kendo-tabstrip>
46
+ * ```
47
+ * @remarks
48
+ * Supported children components are: {@link TabStripCustomMessagesComponent}, {@link TabStripTabComponent}.
31
49
  */
32
50
  export class TabStripComponent {
33
51
  localization;
@@ -38,6 +56,7 @@ export class TabStripComponent {
38
56
  ngZone;
39
57
  /**
40
58
  * Sets the height of the TabStrip.
59
+ * Accepts a CSS size value, such as `100px`, `50%`, or `auto`.
41
60
  */
42
61
  set height(value) {
43
62
  this._height = value;
@@ -47,7 +66,7 @@ export class TabStripComponent {
47
66
  return this._height;
48
67
  }
49
68
  /**
50
- * Enables the tab animation.
69
+ * Sets whether the TabStrip should animate when switching tabs.
51
70
  *
52
71
  * @default true
53
72
  */
@@ -55,34 +74,30 @@ export class TabStripComponent {
55
74
  /**
56
75
  * Sets the alignment of the tabs.
57
76
  *
58
- * @default: 'start'
77
+ * @default 'start'
59
78
  */
60
79
  tabAlignment = 'start';
61
80
  /**
62
- * Sets the position of the tabs. Defaults to `top`.
81
+ * Sets the position of the tabs.
63
82
  *
64
83
  * @default 'top'
65
84
  */
66
85
  tabPosition = 'top';
67
86
  /**
68
- * When set to `true`, the component renders all tabs and they are persisted in the DOM.
69
- * By default, `keepTabContent` is `false`.
87
+ * When set to `true`, the tabs are persisted in the DOM and their content is not destroyed when they are not selected ([see example](slug:rendering_tabstrip)).
70
88
  *
71
89
  * @default false
72
90
  */
73
91
  keepTabContent = false;
74
92
  /**
75
- * When set to `true`, a close button will be rendered inside each tab.
76
- * By default, `closable` is `false`.
93
+ * When set to `true`, renders a close button inside each tab.
77
94
  *
78
95
  * @default false
79
96
  */
80
97
  closable = false;
81
98
  /**
82
- * Enables the scrolling of the tab list. When set to `true` and the total size of all tabs
83
- * is greater than the size of the TabStrip container, scroll buttons will be rendered on each end of the tab list.
84
- *
85
- * By default, `scrollable` is `false`.
99
+ * Enables scrolling of the tab list.
100
+ * When set to `true` and the total size of all tabs exceeds the size of the TabStrip container, scroll buttons appear on each end of the tab list.
86
101
  *
87
102
  * @default false
88
103
  */
@@ -99,14 +114,9 @@ export class TabStripComponent {
99
114
  return this._scrollableSettings;
100
115
  }
101
116
  /**
102
- * Specifies the size of the TabStrip.
103
- * ([see example](slug:api_layout_tabstripcomponent#toc-size).
104
- *
105
- * The possible values are:
106
- * * `small`
107
- * * `medium` (Default)
108
- * * `large`
109
- * * `none`
117
+ * Sets the size of the TabStrip.
118
+ * [See example](slug:api_layout_tabstripcomponent#toc-size).
119
+ * @default 'medium'
110
120
  */
111
121
  set size(value) {
112
122
  switch (value) {
@@ -137,16 +147,17 @@ export class TabStripComponent {
137
147
  return this._size;
138
148
  }
139
149
  /**
140
- * Defines the name for an existing font icon in the Kendo UI theme for the close icon.
150
+ * Defines the name of an existing font icon in the Kendo UI theme for the close icon.
151
+ * @default 'x'
141
152
  */
142
153
  closeIcon = 'x';
143
154
  /**
144
- * Allows defining a custom CSS class, or multiple classes separated by spaces, which will be applied to the close button.
155
+ * Defines a custom CSS class, or multiple classes separated by spaces, applied to the close button.
145
156
  */
146
157
  closeIconClass;
147
158
  /**
148
- * Defines an SVGIcon to be rendered for the close icon.
149
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
159
+ * Defines an SVGIcon to render for the close icon.
160
+ * The input accepts either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
150
161
  */
151
162
  set closeSVGIcon(icon) {
152
163
  if (isDevMode() && icon && this.closeIcon && this.closeIcon !== 'x') {
@@ -158,23 +169,23 @@ export class TabStripComponent {
158
169
  return this._closeSVGIcon;
159
170
  }
160
171
  /**
161
- * Determines whether the content associated with each tab will be rendered.
172
+ * If set to `false`, the content area is hidden, but the tab headers are still visible.
162
173
  *
163
174
  * @default true
164
175
  */
165
176
  showContentArea = true;
166
177
  /**
167
- * Fires each time the user selects a tab ([see example](slug:events_tabstrip)).
178
+ * Fires each time a tab is selected.
168
179
  * The event data contains the index of the selected tab and its title.
169
180
  */
170
181
  tabSelect = new EventEmitter();
171
182
  /**
172
- * Fires each time the user closes a tab.
183
+ * Fires each time a tab is closed.
173
184
  * The event data contains the index of the closed tab and its instance.
174
185
  */
175
186
  tabClose = new EventEmitter();
176
187
  /**
177
- * Fires each time the user scrolls the TabStrip list.
188
+ * Fires when the tab list is scrolled.
178
189
  * The event is preventable.
179
190
  */
180
191
  tabScroll = new EventEmitter();
@@ -341,8 +352,9 @@ export class TabStripComponent {
341
352
  return isTablistHorizontal(this.tabPosition) ? 'k-hstack' : 'k-vstack';
342
353
  }
343
354
  /**
344
- * Allows the user to select a tab programmatically.
345
- * @param {number} index - The index of the tab that will be selected.
355
+ * Allows you to programmatically select a tab by its index.
356
+ * If the tab is disabled, it will not be selected.
357
+ * @param {number} index The index of the tab that will be selected.
346
358
  */
347
359
  selectTab(index) {
348
360
  const tab = getTabByIndex(this.tabs, index);
@@ -561,10 +573,10 @@ export class TabStripComponent {
561
573
  <ul role="tablist" #tablist
562
574
  class="k-reset k-tabstrip-items"
563
575
  [ngClass]="{
564
- 'k-tabstrip-items-start': tabAlignment === 'start',
565
- 'k-tabstrip-items-center': tabAlignment === 'center',
566
- 'k-tabstrip-items-end': tabAlignment === 'end',
567
- 'k-tabstrip-items-stretched': tabAlignment === 'stretched',
576
+ 'k-tabstrip-items-start': tabAlignment === 'start',
577
+ 'k-tabstrip-items-center': tabAlignment === 'center',
578
+ 'k-tabstrip-items-end': tabAlignment === 'end',
579
+ 'k-tabstrip-items-stretched': tabAlignment === 'stretched',
568
580
  'k-tabstrip-items-justify': tabAlignment === 'justify',
569
581
  'k-tabstrip-items-scroll': mouseScrollEnabled
570
582
  }"
@@ -744,10 +756,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
744
756
  <ul role="tablist" #tablist
745
757
  class="k-reset k-tabstrip-items"
746
758
  [ngClass]="{
747
- 'k-tabstrip-items-start': tabAlignment === 'start',
748
- 'k-tabstrip-items-center': tabAlignment === 'center',
749
- 'k-tabstrip-items-end': tabAlignment === 'end',
750
- 'k-tabstrip-items-stretched': tabAlignment === 'stretched',
759
+ 'k-tabstrip-items-start': tabAlignment === 'start',
760
+ 'k-tabstrip-items-center': tabAlignment === 'center',
761
+ 'k-tabstrip-items-end': tabAlignment === 'end',
762
+ 'k-tabstrip-items-stretched': tabAlignment === 'stretched',
751
763
  'k-tabstrip-items-justify': tabAlignment === 'justify',
752
764
  'k-tabstrip-items-scroll': mouseScrollEnabled
753
765
  }"
@@ -12,14 +12,20 @@ import * as i4 from "./tabstrip/directives/tab-title.directive";
12
12
  import * as i5 from "./tabstrip/localization/custom-messages.component";
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 TabStrip component.
15
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the TabStrip component.
17
16
  *
18
- * The module registers:
19
- * - `TabStripComponent`&mdash;The `TabStrip` component class.
20
- * - `TabStripTabComponent`&mdash;The `TabStripTab` component class.
21
- * - `TabContentDirective`&mdash;The tab content directive used on the `<ng-template>` tag.
22
- * - `TabTitleDirective`&mdash;The tab title directive used on the `<ng-template>` tag.
17
+ * Use this module to add the TabStrip component to your NgModule-based Angular application.
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * import { TabStripModule } from '@progress/kendo-angular-layout';
22
+ * import { NgModule } from '@angular/core';
23
+ *
24
+ * @NgModule({
25
+ * imports: [TabStripModule]
26
+ * })
27
+ * export class AppModule { }
28
+ * ```
23
29
  */
24
30
  export class TabStripModule {
25
31
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabStripModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -4,8 +4,9 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from '@progress/kendo-angular-common';
6
6
  /**
7
- * Arguments for the `reorder` event. The event fires when the order or starting
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)).
7
+ * Arguments for the `reorder` event.
8
+ * The event fires when you change the order or starting positions of items through the UI.
9
+ * You can prevent this event to cancel the reorder operation.
9
10
  */
10
11
  export class TileLayoutReorderEvent extends PreventableEvent {
11
12
  item;
@@ -4,8 +4,9 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from '@progress/kendo-angular-common';
6
6
  /**
7
- * Arguments for the `resize` event. The `resize` event fires when any item size
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)).
7
+ * Arguments for the `resize` event.
8
+ * The `resize` event fires when you change any item size through the UI.
9
+ * You can prevent this event to stop the resize operation.
9
10
  */
10
11
  export class TileLayoutResizeEvent extends PreventableEvent {
11
12
  item;
@@ -5,7 +5,16 @@
5
5
  import { Component, HostBinding } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Holds the main content of the TileLayoutItem component.
8
+ * Contains the main content of the `TileLayoutItem` component.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <kendo-tilelayout-item>
13
+ * <kendo-tilelayout-item-body>
14
+ * <p>Main content goes here</p>
15
+ * </kendo-tilelayout-item-body>
16
+ * </kendo-tilelayout-item>
17
+ * ```
9
18
  */
10
19
  export class TileLayoutItemBodyComponent {
11
20
  hostClass = true;
@@ -5,8 +5,18 @@
5
5
  import { Component, HostBinding } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Holds the content of the header section of the TileLayoutItem component.
9
- * This is the area which can be dragged to reorder the items if reordering is enabled for this item.
8
+ * Contains the header content of the `TileLayoutItem` component.
9
+ * You can drag this area to reorder items when reordering is enabled.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <kendo-tilelayout-item>
14
+ * <kendo-tilelayout-item-header>
15
+ * <h3>Custom Header</h3>
16
+ * </kendo-tilelayout-item-header>
17
+ * <p>Item content</p>
18
+ * </kendo-tilelayout-item>
19
+ * ```
10
20
  */
11
21
  export class TileLayoutItemHeaderComponent {
12
22
  hostClass = true;
@@ -19,6 +19,17 @@ import * as i2 from "./dragging-service";
19
19
  import * as i3 from "./keyboard-navigation.service";
20
20
  /**
21
21
  * Represents a tile item within the TileLayoutComponent.
22
+ *
23
+ * @example
24
+ * ```html
25
+ * <kendo-tilelayout>
26
+ * <kendo-tilelayout-item [title]="'Item 1'" [colSpan]="2">
27
+ * <p>Item content goes here</p>
28
+ * </kendo-tilelayout-item>
29
+ * </kendo-tilelayout>
30
+ * ```
31
+ * @remarks
32
+ * Supported children components are: {@link TileLayoutItemBodyComponent}, {@link TileLayoutItemHeaderComponent}.
22
33
  */
23
34
  export class TileLayoutItemComponent {
24
35
  elem;
@@ -28,23 +39,22 @@ export class TileLayoutItemComponent {
28
39
  draggingService;
29
40
  keyboardNavigationService;
30
41
  /**
31
- * The title that will be rendered in the item header ([see example]({% slug tiles_tilelayout %}#toc-tiles-configuration)).
42
+ * Sets the title text that appears in the item header ([see example]({% slug tiles_tilelayout %}#toc-tiles-configuration)).
32
43
  */
33
44
  title;
34
45
  /**
35
- * Determines how many rows will the tile item span ([see example](slug:resizing_tilelayout#programmatic-resizing)).
46
+ * Sets how many rows the tile item spans ([see example](slug:resizing_tilelayout#programmatic-resizing)).
36
47
  * @default 1
37
48
  */
38
49
  rowSpan = 1;
39
50
  /**
40
- * Determines how many columns will the tile item span ([see example](slug:resizing_tilelayout#programmatic-resizing)).
51
+ * Sets how many columns the tile item spans ([see example](slug:resizing_tilelayout#programmatic-resizing)).
41
52
  * @default 1
42
53
  */
43
54
  colSpan = 1;
44
55
  /**
45
- * Determines the order of the tile items within the TileLayout.
46
- * If not set, the items will receive increasing sequential order in accordance with
47
- * their position in the DOM when initially rendered.
56
+ * Sets the order of the tile item within the TileLayout.
57
+ * When not set, items receive increasing order values based on their DOM position.
48
58
  */
49
59
  set order(value) {
50
60
  this._order = value;
@@ -54,21 +64,21 @@ export class TileLayoutItemComponent {
54
64
  return this._order;
55
65
  }
56
66
  /**
57
- * Sets the starting column of the item ([see example](slug:tiles_tilelayout#size-and-position)).
67
+ * Sets the starting column position of the item ([see example](slug:tiles_tilelayout#size-and-position)).
58
68
  */
59
69
  col;
60
70
  /**
61
- * Sets the starting row of the item ([see example](slug:tiles_tilelayout#size-and-position)).
71
+ * Sets the starting row position of the item ([see example](slug:tiles_tilelayout#size-and-position)).
62
72
  */
63
73
  row;
64
74
  /**
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)).
75
+ * Enables or disables individual item reordering.
66
76
  *
67
77
  * @default true
68
78
  */
69
79
  reorderable = true;
70
80
  /**
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)).
81
+ * Enables or disables individual item resizing.
72
82
  * @default true
73
83
  */
74
84
  resizable = true;