@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.
- package/avatar/avatar.component.d.ts +43 -47
- package/avatar/l10n/custom-messages.component.d.ts +9 -1
- package/avatar/l10n/messages.d.ts +1 -1
- package/avatar/models/fill.d.ts +1 -1
- package/avatar/models/rounded.d.ts +1 -1
- package/avatar/models/size.d.ts +1 -1
- package/avatar/models/theme-color.d.ts +1 -1
- package/avatar.module.d.ts +14 -2
- package/card/card-actions.component.d.ts +16 -15
- package/card/card-body.component.d.ts +9 -1
- package/card/card-footer.component.d.ts +9 -1
- package/card/card-header.component.d.ts +10 -1
- package/card/card.component.d.ts +19 -6
- package/card/directives/card-media.directive.d.ts +10 -1
- package/card/directives/card-separator.directive.d.ts +10 -4
- package/card/directives/card-subtitle.directive.d.ts +8 -1
- package/card/directives/card-title.directive.d.ts +8 -1
- package/card/models/actions-layout.d.ts +1 -8
- package/card/models/card-action.d.ts +4 -4
- package/card.module.d.ts +14 -2
- package/codemods/utils.js +0 -3
- package/common/orientation.d.ts +1 -1
- package/common/preventable-event.d.ts +3 -6
- package/directives.d.ts +13 -13
- package/drawer/drawer-container.component.d.ts +13 -1
- package/drawer/drawer-content.component.d.ts +9 -1
- package/drawer/drawer.component.d.ts +48 -47
- package/drawer/events/select-event.d.ts +5 -5
- package/drawer/models/drawer-animation.interface.d.ts +1 -2
- package/drawer/models/drawer-item-expand.interface.d.ts +1 -1
- package/drawer/models/drawer-item.interface.d.ts +15 -17
- package/drawer/models/mode.d.ts +4 -3
- package/drawer/models/position.d.ts +1 -6
- package/drawer/template-directives/drawer-template.directive.d.ts +18 -5
- package/drawer/template-directives/footer-template.directive.d.ts +11 -3
- package/drawer/template-directives/header-template.directive.d.ts +11 -3
- package/drawer/template-directives/item-template.directive.d.ts +19 -3
- package/drawer.module.d.ts +14 -2
- package/esm2022/avatar/avatar.component.mjs +43 -47
- package/esm2022/avatar/l10n/custom-messages.component.mjs +9 -1
- package/esm2022/avatar/l10n/messages.mjs +1 -1
- package/esm2022/avatar.module.mjs +14 -2
- package/esm2022/card/card-actions.component.mjs +16 -15
- package/esm2022/card/card-body.component.mjs +9 -1
- package/esm2022/card/card-footer.component.mjs +9 -1
- package/esm2022/card/card-header.component.mjs +10 -1
- package/esm2022/card/card.component.mjs +19 -6
- package/esm2022/card/directives/card-media.directive.mjs +10 -1
- package/esm2022/card/directives/card-separator.directive.mjs +10 -4
- package/esm2022/card/directives/card-subtitle.directive.mjs +8 -1
- package/esm2022/card/directives/card-title.directive.mjs +8 -1
- package/esm2022/card/models/card-action.mjs +4 -4
- package/esm2022/card.module.mjs +14 -2
- package/esm2022/common/preventable-event.mjs +3 -6
- package/esm2022/directives.mjs +13 -13
- package/esm2022/drawer/drawer-container.component.mjs +13 -1
- package/esm2022/drawer/drawer-content.component.mjs +9 -1
- package/esm2022/drawer/drawer.component.mjs +48 -47
- package/esm2022/drawer/events/select-event.mjs +5 -5
- package/esm2022/drawer/template-directives/drawer-template.directive.mjs +18 -5
- package/esm2022/drawer/template-directives/footer-template.directive.mjs +11 -3
- package/esm2022/drawer/template-directives/header-template.directive.mjs +11 -3
- package/esm2022/drawer/template-directives/item-template.directive.mjs +19 -3
- package/esm2022/drawer.module.mjs +14 -2
- package/esm2022/expansionpanel/events/action-event.mjs +2 -2
- package/esm2022/expansionpanel/expansionpanel-title.directive.mjs +12 -3
- package/esm2022/expansionpanel/expansionpanel.component.mjs +20 -27
- package/esm2022/expansionpanel.module.mjs +14 -2
- package/esm2022/gridlayout.module.mjs +14 -2
- package/esm2022/layout.module.mjs +10 -21
- package/esm2022/layouts/grid-layout.component.mjs +24 -17
- package/esm2022/layouts/gridlayout-item.component.mjs +16 -4
- package/esm2022/layouts/stack-layout.component.mjs +15 -6
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/panelbar/events/collapse-event.mjs +2 -2
- package/esm2022/panelbar/events/expand-event.mjs +2 -2
- package/esm2022/panelbar/events/item-click-event.mjs +3 -3
- package/esm2022/panelbar/events/select-event.mjs +2 -2
- package/esm2022/panelbar/events/state-change-event.mjs +2 -2
- package/esm2022/panelbar/panelbar-content.directive.mjs +12 -1
- package/esm2022/panelbar/panelbar-expand-mode.mjs +3 -4
- package/esm2022/panelbar/panelbar-item-template.directive.mjs +12 -1
- package/esm2022/panelbar/panelbar-item-title.directive.mjs +12 -19
- package/esm2022/panelbar/panelbar-item.component.mjs +26 -11
- package/esm2022/panelbar/panelbar.component.mjs +40 -17
- package/esm2022/panelbar.module.mjs +13 -8
- package/esm2022/splitter/splitter-pane.component.mjs +40 -20
- package/esm2022/splitter/splitter.component.mjs +25 -41
- package/esm2022/splitter.module.mjs +13 -5
- package/esm2022/stacklayout.module.mjs +14 -2
- package/esm2022/stepper/events/activate-event.mjs +5 -5
- package/esm2022/stepper/localization/custom-messages.component.mjs +9 -1
- package/esm2022/stepper/localization/messages.mjs +1 -1
- package/esm2022/stepper/stepper.component.mjs +32 -39
- package/esm2022/stepper/stepper.service.mjs +4 -4
- package/esm2022/stepper/template-directives/indicator-template.directive.mjs +10 -1
- package/esm2022/stepper/template-directives/label-template.directive.mjs +10 -1
- package/esm2022/stepper/template-directives/step-template.directive.mjs +12 -1
- package/esm2022/stepper.module.mjs +14 -2
- package/esm2022/tabstrip/directives/tab-content.directive.mjs +12 -24
- package/esm2022/tabstrip/directives/tab-title.directive.mjs +10 -29
- package/esm2022/tabstrip/events/select-event.mjs +3 -1
- package/esm2022/tabstrip/events/tabclose-event.mjs +2 -1
- package/esm2022/tabstrip/events/tabscroll-event.mjs +2 -2
- package/esm2022/tabstrip/localization/custom-messages.component.mjs +11 -2
- package/esm2022/tabstrip/localization/messages.mjs +3 -3
- package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +30 -17
- package/esm2022/tabstrip/tabstrip.component.mjs +49 -37
- package/esm2022/tabstrip.module.mjs +13 -7
- package/esm2022/tilelayout/reorder-event.mjs +3 -2
- package/esm2022/tilelayout/resize-event.mjs +3 -2
- package/esm2022/tilelayout/tilelayout-item-body.component.mjs +10 -1
- package/esm2022/tilelayout/tilelayout-item-header.component.mjs +12 -2
- package/esm2022/tilelayout/tilelayout-item.component.mjs +20 -10
- package/esm2022/tilelayout/tilelayout.component.mjs +31 -26
- package/esm2022/tilelayout.module.mjs +13 -7
- package/esm2022/timeline/templates/timeline-card-actions.directive.mjs +11 -2
- package/esm2022/timeline/templates/timeline-card-body.directive.mjs +11 -2
- package/esm2022/timeline/templates/timeline-card-header.directive.mjs +12 -2
- package/esm2022/timeline/timeline.component.mjs +3 -0
- package/esm2022/timeline.module.mjs +13 -4
- package/expansionpanel/events/action-event.d.ts +3 -3
- package/expansionpanel/expansionpanel-title.directive.d.ts +12 -3
- package/expansionpanel/expansionpanel.component.d.ts +20 -27
- package/expansionpanel.module.d.ts +14 -2
- package/fesm2022/progress-kendo-angular-layout.mjs +1072 -641
- package/gridlayout.module.d.ts +14 -2
- package/layout.module.d.ts +10 -21
- package/layouts/grid-layout.component.d.ts +24 -17
- package/layouts/gridlayout-item.component.d.ts +16 -4
- package/layouts/models/gridlayout-gap-settings.d.ts +3 -3
- package/layouts/models/gridlayout-row-col-size.d.ts +4 -4
- package/layouts/models/layout-align-settings.d.ts +3 -3
- package/layouts/models/layout-horizontal-align.d.ts +1 -1
- package/layouts/models/layout-vertical-align.d.ts +1 -1
- package/layouts/stack-layout.component.d.ts +15 -6
- package/package.json +11 -10
- package/panelbar/events/collapse-event.d.ts +2 -2
- package/panelbar/events/expand-event.d.ts +2 -2
- package/panelbar/events/item-click-event.d.ts +3 -3
- package/panelbar/events/select-event.d.ts +2 -2
- package/panelbar/events/state-change-event.d.ts +2 -2
- package/panelbar/panelbar-content.directive.d.ts +12 -1
- package/panelbar/panelbar-expand-mode.d.ts +3 -4
- package/panelbar/panelbar-item-model.d.ts +6 -6
- package/panelbar/panelbar-item-template.directive.d.ts +12 -1
- package/panelbar/panelbar-item-title.directive.d.ts +12 -19
- package/panelbar/panelbar-item.component.d.ts +24 -9
- package/panelbar/panelbar.component.d.ts +40 -17
- package/panelbar.module.d.ts +13 -8
- package/splitter/splitter-pane.component.d.ts +40 -20
- package/splitter/splitter.component.d.ts +24 -40
- package/splitter.module.d.ts +13 -5
- package/stacklayout.module.d.ts +14 -2
- package/stepper/events/activate-event.d.ts +5 -5
- package/stepper/localization/custom-messages.component.d.ts +9 -1
- package/stepper/localization/messages.d.ts +1 -1
- package/stepper/models/orientation.d.ts +1 -3
- package/stepper/models/step-predicate.d.ts +5 -6
- package/stepper/models/step-type.d.ts +1 -4
- package/stepper/models/stepper-step.interface.d.ts +12 -12
- package/stepper/stepper.component.d.ts +32 -39
- package/stepper/template-directives/indicator-template.directive.d.ts +10 -1
- package/stepper/template-directives/label-template.directive.d.ts +10 -1
- package/stepper/template-directives/step-template.directive.d.ts +12 -1
- package/stepper.module.d.ts +14 -2
- package/tabstrip/directives/tab-content.directive.d.ts +12 -24
- package/tabstrip/directives/tab-title.directive.d.ts +10 -29
- package/tabstrip/events/select-event.d.ts +3 -1
- package/tabstrip/events/tabclose-event.d.ts +2 -1
- package/tabstrip/events/tabscroll-event.d.ts +2 -2
- package/tabstrip/localization/custom-messages.component.d.ts +11 -2
- package/tabstrip/localization/messages.d.ts +3 -3
- package/tabstrip/models/scroll-buttons-visibility.d.ts +1 -1
- package/tabstrip/models/scrollable-settings.d.ts +17 -22
- package/tabstrip/models/size.d.ts +1 -1
- package/tabstrip/models/tab-alignment.d.ts +1 -1
- package/tabstrip/models/tab-position.d.ts +1 -1
- package/tabstrip/models/tabstrip-tab.component.d.ts +30 -17
- package/tabstrip/tabstrip.component.d.ts +41 -29
- package/tabstrip.module.d.ts +13 -7
- package/tilelayout/models/flowmode.type.d.ts +7 -8
- package/tilelayout/models/gap.interface.d.ts +3 -5
- package/tilelayout/reorder-event.d.ts +3 -2
- package/tilelayout/resize-event.d.ts +3 -2
- package/tilelayout/tilelayout-item-body.component.d.ts +10 -1
- package/tilelayout/tilelayout-item-header.component.d.ts +12 -2
- package/tilelayout/tilelayout-item.component.d.ts +20 -10
- package/tilelayout/tilelayout.component.d.ts +31 -26
- package/tilelayout.module.d.ts +13 -7
- package/timeline/events/navigation-direction.d.ts +6 -0
- package/timeline/models/anchor-target.d.ts +6 -0
- package/timeline/templates/timeline-card-actions.directive.d.ts +11 -2
- package/timeline/templates/timeline-card-body.directive.d.ts +11 -2
- package/timeline/templates/timeline-card-header.directive.d.ts +12 -2
- package/timeline/timeline.component.d.ts +3 -0
- 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
|
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
|
-
* ```
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
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
|
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
|
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
|
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
|
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
|
-
*
|
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
|
-
*
|
13
|
+
* Sets the title for the **Close** button in the TabStrip tab.
|
14
14
|
*/
|
15
15
|
closeTitle;
|
16
16
|
/**
|
17
|
-
*
|
17
|
+
* Sets the title for the **Previous Tab** button when the TabStrip is scrollable.
|
18
18
|
*/
|
19
19
|
previousTabButton;
|
20
20
|
/**
|
21
|
-
*
|
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
|
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
|
27
|
+
* Sets the title text for the tab ([see example](slug:tabs_tabstrip#toc-tab-titles)).
|
16
28
|
*/
|
17
29
|
title;
|
18
30
|
/**
|
19
|
-
*
|
31
|
+
* Disables the tab and prevents user interaction ([see example]({% slug tabs_tabstrip %}#toc-disabled-tabs)).
|
20
32
|
*
|
21
|
-
*
|
33
|
+
* @default false
|
22
34
|
*/
|
23
35
|
disabled = false;
|
24
36
|
/**
|
25
|
-
*
|
26
|
-
*
|
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
|
-
*
|
31
|
-
*
|
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
|
-
*
|
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
|
-
*
|
41
|
-
* This
|
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
|
-
*
|
46
|
-
* This
|
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
|
-
*
|
51
|
-
*
|
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
|
-
*
|
56
|
-
*
|
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
|
-
*
|
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
|
77
|
+
* @default 'start'
|
59
78
|
*/
|
60
79
|
tabAlignment = 'start';
|
61
80
|
/**
|
62
|
-
* Sets the position of the tabs.
|
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
|
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
|
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
|
83
|
-
*
|
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
|
-
*
|
103
|
-
*
|
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
|
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
|
-
*
|
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
|
149
|
-
* The input
|
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
|
-
*
|
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
|
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
|
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
|
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
|
345
|
-
*
|
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
|
-
*
|
16
|
-
* definition for the TabStrip component.
|
15
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the TabStrip component.
|
17
16
|
*
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
*
|
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.
|
8
|
-
*
|
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.
|
8
|
-
*
|
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
|
-
*
|
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
|
-
*
|
9
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
46
|
-
*
|
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
|
-
*
|
75
|
+
* Enables or disables individual item reordering.
|
66
76
|
*
|
67
77
|
* @default true
|
68
78
|
*/
|
69
79
|
reorderable = true;
|
70
80
|
/**
|
71
|
-
*
|
81
|
+
* Enables or disables individual item resizing.
|
72
82
|
* @default true
|
73
83
|
*/
|
74
84
|
resizable = true;
|