@progress/kendo-angular-layout 19.1.2-develop.4 → 19.1.2-develop.6
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 +9 -9
- 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
@@ -5,7 +5,15 @@
|
|
5
5
|
import { Component, HostBinding, ViewEncapsulation } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines the content of the Drawer component.
|
9
|
+
*
|
10
|
+
* @example
|
11
|
+
* ```html
|
12
|
+
* <kendo-drawer-content>
|
13
|
+
* <h1>Main Content Area</h1>
|
14
|
+
* <p>Your application content goes here.</p>
|
15
|
+
* </kendo-drawer-content>
|
16
|
+
* ```
|
9
17
|
*/
|
10
18
|
export class DrawerContentComponent {
|
11
19
|
hostClasses = true;
|
@@ -23,32 +23,31 @@ import * as i3 from "./drawer.service";
|
|
23
23
|
const DEFAULT_ANIMATION = { type: 'slide', duration: 200 };
|
24
24
|
/**
|
25
25
|
* Represents the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}).
|
26
|
+
* Provides a dismissible or permanently visible panel for navigation in responsive web applications.
|
26
27
|
*
|
27
28
|
* @example
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
*
|
40
|
-
*
|
41
|
-
*
|
42
|
-
*
|
29
|
+
* ```typescript
|
30
|
+
* @Component({
|
31
|
+
* selector: 'my-app',
|
32
|
+
* template: `
|
33
|
+
* <kendo-drawer-container>
|
34
|
+
* <kendo-drawer #drawer
|
35
|
+
* [items]="items"
|
36
|
+
* mode="overlay"
|
37
|
+
* [(expanded)]="expanded">
|
38
|
+
* </kendo-drawer>
|
39
|
+
* <kendo-drawer-content>
|
40
|
+
* <button class="k-button" (click)="drawer.toggle()">Open the Drawer</button>
|
41
|
+
* </kendo-drawer-content>
|
42
|
+
* </kendo-drawer-container>
|
43
|
+
* `
|
43
44
|
* })
|
44
45
|
* class AppComponent {
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
50
|
-
* { text: 'Date', icon: 'k-i-calendar' }
|
51
|
-
* ];
|
46
|
+
* public expanded = false;
|
47
|
+
* public items = [
|
48
|
+
* { text: 'Inbox', icon: 'inbox' },
|
49
|
+
* { text: 'Notifications', icon: 'bell' }
|
50
|
+
* ];
|
52
51
|
* }
|
53
52
|
* ```
|
54
53
|
*/
|
@@ -83,52 +82,58 @@ export class DrawerComponent {
|
|
83
82
|
return this.drawerWidth;
|
84
83
|
}
|
85
84
|
/**
|
86
|
-
* Specifies the mode in which the Drawer
|
85
|
+
* Specifies the mode in which the Drawer displays.
|
87
86
|
*
|
88
|
-
*
|
89
|
-
* * (Default) `overlay`
|
90
|
-
* * `push`
|
87
|
+
* @default 'overlay'
|
91
88
|
*/
|
92
89
|
mode = 'overlay';
|
93
90
|
/**
|
94
91
|
* Specifies the position of the Drawer
|
95
92
|
* ([see example]({% slug positioning_drawer %})).
|
96
93
|
*
|
97
|
-
*
|
98
|
-
* * (Default) `start`
|
99
|
-
* * `end`
|
94
|
+
* @default 'start'
|
100
95
|
*/
|
101
96
|
position = 'start';
|
102
97
|
/**
|
103
|
-
* Enables the mini (compact) view of the Drawer which
|
98
|
+
* Enables the mini (compact) view of the Drawer which displays when the component is collapsed
|
104
99
|
* ([see example]({% slug expandmodespositions_drawer %}#toc-mini-view)).
|
100
|
+
*
|
101
|
+
* @default false
|
105
102
|
*/
|
106
103
|
mini = false;
|
107
104
|
/**
|
108
105
|
* Specifies the state of the Drawer.
|
106
|
+
*
|
107
|
+
* @default false
|
109
108
|
*/
|
110
109
|
expanded = false;
|
111
110
|
/**
|
112
111
|
* Defines the width of the Drawer when it is expanded.
|
113
|
-
*
|
112
|
+
*
|
113
|
+
* @default 240
|
114
114
|
*/
|
115
115
|
width = 240;
|
116
116
|
/**
|
117
|
-
* Defines the width of the Drawer when the mini view is enabled
|
118
|
-
*
|
117
|
+
* Defines the width of the Drawer when the mini view is enabled and the component is collapsed.
|
118
|
+
*
|
119
|
+
* @default 50
|
119
120
|
*/
|
120
121
|
miniWidth = 50;
|
121
122
|
/**
|
122
|
-
* Specifies if the Drawer
|
123
|
-
*
|
123
|
+
* Specifies if the Drawer automatically collapses when an item or the overlay is clicked.
|
124
|
+
*
|
125
|
+
* @default true
|
124
126
|
*/
|
125
127
|
autoCollapse = true;
|
126
128
|
/**
|
127
|
-
*
|
129
|
+
* Defines the collection of items that render in the Drawer.
|
130
|
+
*
|
131
|
+
* @default []
|
128
132
|
*/
|
129
133
|
items = [];
|
130
134
|
/**
|
131
135
|
* Defines a callback function which determines if an item should be expanded.
|
136
|
+
* This is useful for hierarchical data structures where the expansion state of an item depends on its parent or other items.
|
132
137
|
*/
|
133
138
|
set isItemExpanded(fn) {
|
134
139
|
if (isDevMode && isPresent(fn) && typeof fn !== 'function') {
|
@@ -144,16 +149,10 @@ export class DrawerComponent {
|
|
144
149
|
*/
|
145
150
|
direction;
|
146
151
|
/**
|
147
|
-
* Specifies the animation settings of the Drawer
|
152
|
+
* Specifies the animation settings of the Drawer
|
148
153
|
* ([see example]({% slug interaction_drawer %}#toc-toggling-between-states)).
|
149
154
|
*
|
150
|
-
*
|
151
|
-
* * Boolean
|
152
|
-
* * (Default) `true`
|
153
|
-
* * `false`
|
154
|
-
* * `DrawerAnimation`
|
155
|
-
* * (Default) `type?: 'slide'`
|
156
|
-
* * `duration`—Accepts a number in milliseconds. Defaults to `300ms`.
|
155
|
+
* @default { type: 'slide', duration: 200 }
|
157
156
|
*/
|
158
157
|
animation = DEFAULT_ANIMATION;
|
159
158
|
/**
|
@@ -165,11 +164,12 @@ export class DrawerComponent {
|
|
165
164
|
*/
|
166
165
|
collapse = new EventEmitter();
|
167
166
|
/**
|
168
|
-
* Fires when
|
167
|
+
* Fires when an item in the Drawer is selected.
|
168
|
+
* This event is preventable.
|
169
169
|
*/
|
170
170
|
select = new EventEmitter();
|
171
171
|
/**
|
172
|
-
* Fires when the `expanded` property of the component
|
172
|
+
* Fires when the `expanded` property of the component is updated.
|
173
173
|
* Used to provide a two-way binding for the `expanded` property.
|
174
174
|
*/
|
175
175
|
expandedChange = new EventEmitter();
|
@@ -236,8 +236,9 @@ export class DrawerComponent {
|
|
236
236
|
}
|
237
237
|
/**
|
238
238
|
* Toggles the visibility of the Drawer.
|
239
|
+
* If the `expanded` parameter is not provided, the Drawer will toggle between expanded and collapsed states.
|
239
240
|
*
|
240
|
-
* @param expanded
|
241
|
+
* @param expanded Specifies if the Drawer will be expanded or collapsed.
|
241
242
|
*/
|
242
243
|
toggle(expanded) {
|
243
244
|
const previous = this.expanded;
|
@@ -4,23 +4,23 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from '@progress/kendo-angular-common';
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Defines the arguments for the `select` event of the Drawer.
|
8
8
|
*/
|
9
9
|
export class DrawerSelectEvent extends PreventableEvent {
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Defines the index of the selected item in the `items` collection.
|
12
12
|
*/
|
13
13
|
index;
|
14
14
|
/**
|
15
|
-
*
|
15
|
+
* Defines the selected Drawer item.
|
16
16
|
*/
|
17
17
|
item;
|
18
18
|
/**
|
19
|
-
*
|
19
|
+
* Defines the DOM event that triggered the selection.
|
20
20
|
*/
|
21
21
|
originalEvent;
|
22
22
|
/**
|
23
|
-
*
|
23
|
+
* Defines the Drawer that triggered the event.
|
24
24
|
*/
|
25
25
|
sender;
|
26
26
|
/**
|
@@ -5,11 +5,24 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
8
|
+
* Defines a template that specifies the content of the Drawer.
|
9
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoDrawerTemplate` directive inside the `<kendo-drawer>` tag.
|
10
|
+
* Using this template directive overrides all other templates, for example, `kendoDrawerHeaderTemplate` and `kendoDrawerItemTemplate`.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-drawer>
|
15
|
+
* <ng-template kendoDrawerTemplate>
|
16
|
+
* <div class="custom-drawer-content">
|
17
|
+
* <h3>Custom Drawer</h3>
|
18
|
+
* <ul>
|
19
|
+
* <li>Custom Item 1</li>
|
20
|
+
* <li>Custom Item 2</li>
|
21
|
+
* </ul>
|
22
|
+
* </div>
|
23
|
+
* </ng-template>
|
24
|
+
* </kendo-drawer>
|
25
|
+
* ```
|
13
26
|
*/
|
14
27
|
export class DrawerTemplateDirective {
|
15
28
|
templateRef;
|
@@ -5,9 +5,17 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
10
|
-
*
|
8
|
+
* Defines a template that specifies the footer content of the Drawer.
|
9
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoDrawerFooterTemplate` directive inside the `<kendo-drawer>` tag.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```html
|
13
|
+
* <kendo-drawer>
|
14
|
+
* <ng-template kendoDrawerFooterTemplate>
|
15
|
+
* <p>© 2023 Company Name</p>
|
16
|
+
* </ng-template>
|
17
|
+
* </kendo-drawer>
|
18
|
+
* ```
|
11
19
|
*/
|
12
20
|
export class DrawerFooterTemplateDirective {
|
13
21
|
templateRef;
|
@@ -5,9 +5,17 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
10
|
-
*
|
8
|
+
* Defines a template that specifies the header content of the Drawer.
|
9
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoDrawerHeaderTemplate` directive inside the `<kendo-drawer>` tag.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```html
|
13
|
+
* <kendo-drawer>
|
14
|
+
* <ng-template kendoDrawerHeaderTemplate>
|
15
|
+
* <h3>Navigation Menu</h3>
|
16
|
+
* </ng-template>
|
17
|
+
* </kendo-drawer>
|
18
|
+
* ```
|
11
19
|
*/
|
12
20
|
export class DrawerHeaderTemplateDirective {
|
13
21
|
templateRef;
|
@@ -5,9 +5,25 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
10
|
-
*
|
8
|
+
* Defines a template that specifies the item content of the Drawer.
|
9
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoDrawerItemTemplate` directive inside the `<kendo-drawer>` tag.
|
10
|
+
*
|
11
|
+
* The `let-item` context variable provides access to the item data.
|
12
|
+
*
|
13
|
+
* For the Hierarchical Drawer, the `kendoDrawerItemTemplate` directive provides additional context fields:
|
14
|
+
*
|
15
|
+
* * `level`—A number that indicates the nesting level of the current item. Use the `let-level="level"` syntax to access the nesting level.
|
16
|
+
* * `hasChildren`—A boolean that indicates whether the current item has nested items. Use the `let-hasChildren="hasChildren"` syntax to access the value.
|
17
|
+
* * `isItemExpanded`—A boolean that holds information about the expanded state of the current item, which indicates whether its children are visible or not. Use the `let-isItemExpanded="isItemExpanded"` syntax to access the value of the expanded state.
|
18
|
+
*
|
19
|
+
* @example
|
20
|
+
* ```html
|
21
|
+
* <kendo-drawer>
|
22
|
+
* <ng-template kendoDrawerItemTemplate let-item>
|
23
|
+
* <span class="custom-item">{{ item.text }}</span>
|
24
|
+
* </ng-template>
|
25
|
+
* </kendo-drawer>
|
26
|
+
* ```
|
11
27
|
*/
|
12
28
|
export class DrawerItemTemplateDirective {
|
13
29
|
templateRef;
|
@@ -14,8 +14,20 @@ import * as i6 from "./drawer/template-directives/header-template.directive";
|
|
14
14
|
import * as i7 from "./drawer/template-directives/item-template.directive";
|
15
15
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
16
16
|
/**
|
17
|
-
*
|
18
|
-
*
|
17
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Drawer component.
|
18
|
+
*
|
19
|
+
* Use this module to add the Drawer component to your NgModule-based Angular application.
|
20
|
+
*
|
21
|
+
* @example
|
22
|
+
* ```typescript
|
23
|
+
* import { DrawerModule } from '@progress/kendo-angular-layout';
|
24
|
+
* import { NgModule } from '@angular/core';
|
25
|
+
*
|
26
|
+
* @NgModule({
|
27
|
+
* imports: [DrawerModule]
|
28
|
+
* })
|
29
|
+
* export class AppModule { }
|
30
|
+
* ```
|
19
31
|
*/
|
20
32
|
export class DrawerModule {
|
21
33
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -4,11 +4,11 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from "@progress/kendo-angular-common";
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Defines the arguments for the `action` event of the ExpansionPanel.
|
8
8
|
*/
|
9
9
|
export class ExpansionPanelActionEvent extends PreventableEvent {
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Defines the action that takes place upon interaction with the ExpansionPanel.
|
12
12
|
*/
|
13
13
|
action;
|
14
14
|
/**
|
@@ -5,10 +5,19 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
10
|
-
* with the `kendoExpansionPanelTitleDirective` directive inside the `<kendo-expansionpanel>` tag.
|
8
|
+
* Defines a template that specifies the content of the ExpansionPanel title.
|
9
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoExpansionPanelTitleDirective` directive inside the `<kendo-expansionpanel>` tag
|
11
10
|
* ([see example]({% slug title_expansionpanel %}#toc-title-template)).
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-expansionpanel>
|
15
|
+
* <ng-template kendoExpansionPanelTitleDirective>
|
16
|
+
* <h3>Custom Title</h3>
|
17
|
+
* </ng-template>
|
18
|
+
* <p>Panel content</p>
|
19
|
+
* </kendo-expansionpanel>
|
20
|
+
* ```
|
12
21
|
*/
|
13
22
|
export class ExpansionPanelTitleDirective {
|
14
23
|
templateRef;
|
@@ -24,19 +24,16 @@ import * as i2 from "@angular/animations";
|
|
24
24
|
const DEFAULT_DURATION = 200;
|
25
25
|
const CONTENT_HIDDEN_CLASS = 'k-hidden';
|
26
26
|
/**
|
27
|
-
* Represents the
|
27
|
+
* Represents the Kendo UI ExpansionPanel component for Angular. Provides an expandable and collapsible content container with customizable header and animation ([see overview]({% slug overview_expansionpanel %})).
|
28
28
|
*
|
29
29
|
* @example
|
30
|
-
* ```
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
* `
|
38
|
-
* })
|
39
|
-
* class AppComponent {}
|
30
|
+
* ```html
|
31
|
+
* <kendo-expansionpanel
|
32
|
+
* title="Chile"
|
33
|
+
* subtitle="South America"
|
34
|
+
* [expanded]="isExpanded">
|
35
|
+
* There are various theories about the origin of the word Chile.
|
36
|
+
* </kendo-expansionpanel>
|
40
37
|
* ```
|
41
38
|
*/
|
42
39
|
export class ExpansionPanelComponent {
|
@@ -51,7 +48,7 @@ export class ExpansionPanelComponent {
|
|
51
48
|
*/
|
52
49
|
title = '';
|
53
50
|
/**
|
54
|
-
* Specifies the secondary text in the header of the ExpansionPanel, which
|
51
|
+
* Specifies the secondary text in the header of the ExpansionPanel, which renders next to the collapse/expand icon
|
55
52
|
* ([see example](slug:title_expansionpanel#toc-titles-and-subtitles)).
|
56
53
|
*/
|
57
54
|
subtitle = '';
|
@@ -63,7 +60,7 @@ export class ExpansionPanelComponent {
|
|
63
60
|
*/
|
64
61
|
disabled = false;
|
65
62
|
/**
|
66
|
-
* Specifies whether the ExpansionPanel is expanded. The property supports two-way binding
|
63
|
+
* Specifies whether the ExpansionPanel is expanded. The property supports two-way binding
|
67
64
|
* ([see example]({% slug interaction_expansionpanel %}#toc-setting-the-initial-state)).
|
68
65
|
*
|
69
66
|
* @default false
|
@@ -84,8 +81,8 @@ export class ExpansionPanelComponent {
|
|
84
81
|
return this._expanded;
|
85
82
|
}
|
86
83
|
/**
|
87
|
-
* Defines an
|
88
|
-
*
|
84
|
+
* Defines an SVG icon for the expanded state of the component.
|
85
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
89
86
|
*/
|
90
87
|
set svgExpandIcon(icon) {
|
91
88
|
if (isDevMode() && icon && this.expandIcon) {
|
@@ -97,8 +94,8 @@ export class ExpansionPanelComponent {
|
|
97
94
|
return this._svgExpandIcon;
|
98
95
|
}
|
99
96
|
/**
|
100
|
-
* Defines an
|
101
|
-
*
|
97
|
+
* Defines an SVG icon for the collapsed state of the component.
|
98
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
102
99
|
*/
|
103
100
|
set svgCollapseIcon(icon) {
|
104
101
|
if (isDevMode() && icon && this.collapseIcon) {
|
@@ -110,12 +107,12 @@ export class ExpansionPanelComponent {
|
|
110
107
|
return this._svgCollapseIcon;
|
111
108
|
}
|
112
109
|
/**
|
113
|
-
* Sets a custom icon via
|
110
|
+
* Sets a custom icon via CSS class(es) for the collapsed state of the component
|
114
111
|
* ([see example]({% slug icons_expansionpanel %}#toc-icons)).
|
115
112
|
*/
|
116
113
|
expandIcon;
|
117
114
|
/**
|
118
|
-
* Sets a custom icon via
|
115
|
+
* Sets a custom icon via CSS class(es) for the expanded state of the component
|
119
116
|
* ([see example]({% slug icons_expansionpanel %}#toc-icons)).
|
120
117
|
*/
|
121
118
|
collapseIcon;
|
@@ -123,11 +120,7 @@ export class ExpansionPanelComponent {
|
|
123
120
|
* Specifies the animation settings of the ExpansionPanel
|
124
121
|
* ([see example]({% slug animations_expansionpanel %})).
|
125
122
|
*
|
126
|
-
*
|
127
|
-
* * Boolean
|
128
|
-
* * (Default) `true` Numeric values represent duration. Default duration is 200ms.
|
129
|
-
* * false
|
130
|
-
* * Number
|
123
|
+
* @default true
|
131
124
|
*/
|
132
125
|
animation = true;
|
133
126
|
/**
|
@@ -142,12 +135,12 @@ export class ExpansionPanelComponent {
|
|
142
135
|
*/
|
143
136
|
action = new EventEmitter();
|
144
137
|
/**
|
145
|
-
* Fires when the ExpansionPanel is expanded. If there is animation it
|
138
|
+
* Fires when the ExpansionPanel is expanded. If there is animation it fires when the animation is complete
|
146
139
|
* ([see example](slug:events_expansionpanel)).
|
147
140
|
*/
|
148
141
|
expand = new EventEmitter();
|
149
142
|
/**
|
150
|
-
* Fires when the ExpansionPanel is collapsed. If there is animation it
|
143
|
+
* Fires when the ExpansionPanel is collapsed. If there is animation it fires when the animation is complete
|
151
144
|
* ([see example](slug:events_expansionpanel)).
|
152
145
|
*/
|
153
146
|
collapse = new EventEmitter();
|
@@ -287,7 +280,7 @@ export class ExpansionPanelComponent {
|
|
287
280
|
* Toggles the visibility of the ExpansionPanel
|
288
281
|
* ([see example](slug:interaction_expansionpanel#toggling-between-states)).
|
289
282
|
*
|
290
|
-
* @param expanded
|
283
|
+
* @param expanded Specifies whether the ExpansionPanel will be expanded or collapsed.
|
291
284
|
*/
|
292
285
|
toggle(expanded) {
|
293
286
|
const previous = this.expanded;
|
@@ -9,8 +9,20 @@ import * as i1 from "./expansionpanel/expansionpanel.component";
|
|
9
9
|
import * as i2 from "./expansionpanel/expansionpanel-title.directive";
|
10
10
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
11
11
|
/**
|
12
|
-
*
|
13
|
-
*
|
12
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the ExpansionPanel component.
|
13
|
+
*
|
14
|
+
* Use this module to add the ExpansionPanel component to your NgModule-based Angular application.
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```typescript
|
18
|
+
* import { ExpansionPanelModule } from '@progress/kendo-angular-layout';
|
19
|
+
* import { NgModule } from '@angular/core';
|
20
|
+
*
|
21
|
+
* @NgModule({
|
22
|
+
* imports: [ExpansionPanelModule]
|
23
|
+
* })
|
24
|
+
* export class AppModule { }
|
25
|
+
* ```
|
14
26
|
*/
|
15
27
|
export class ExpansionPanelModule {
|
16
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -9,8 +9,20 @@ import * as i1 from "./layouts/grid-layout.component";
|
|
9
9
|
import * as i2 from "./layouts/gridlayout-item.component";
|
10
10
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
11
11
|
/**
|
12
|
-
*
|
13
|
-
*
|
12
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the GridLayout component.
|
13
|
+
*
|
14
|
+
* Use this module to add the GridLayout component to your NgModule-based Angular application.
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```typescript
|
18
|
+
* import { GridLayoutModule } from '@progress/kendo-angular-layout';
|
19
|
+
* import { NgModule } from '@angular/core';
|
20
|
+
*
|
21
|
+
* @NgModule({
|
22
|
+
* imports: [GridLayoutModule]
|
23
|
+
* })
|
24
|
+
* export class AppModule { }
|
25
|
+
* ```
|
14
26
|
*/
|
15
27
|
export class GridLayoutModule {
|
16
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -56,34 +56,23 @@ import * as i48 from "./timeline/templates/timeline-card-body.directive";
|
|
56
56
|
import * as i49 from "./timeline/templates/timeline-card-header.directive";
|
57
57
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
58
58
|
/**
|
59
|
-
*
|
60
|
-
* definition for the Layout components.
|
59
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Layout components.
|
61
60
|
*
|
62
|
-
*
|
61
|
+
* Use this module to add all Layout package components to your NgModule-based Angular application.
|
63
62
|
*
|
64
|
-
*
|
65
|
-
*
|
63
|
+
* @example
|
64
|
+
* ```typescript
|
66
65
|
* import { LayoutModule } from '@progress/kendo-angular-layout';
|
67
|
-
*
|
68
|
-
* // The browser platform with a compiler
|
69
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
70
|
-
*
|
71
66
|
* import { NgModule } from '@angular/core';
|
72
|
-
*
|
73
|
-
* // Import the app component
|
67
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
74
68
|
* import { AppComponent } from './app.component';
|
75
69
|
*
|
76
|
-
*
|
77
|
-
*
|
78
|
-
*
|
79
|
-
*
|
80
|
-
* bootstrap: [AppComponent]
|
70
|
+
* @NgModule({
|
71
|
+
* declarations: [AppComponent],
|
72
|
+
* imports: [BrowserModule, LayoutModule],
|
73
|
+
* bootstrap: [AppComponent]
|
81
74
|
* })
|
82
|
-
* export class AppModule {}
|
83
|
-
*
|
84
|
-
* // Compile and launch the module
|
85
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
86
|
-
*
|
75
|
+
* export class AppModule { }
|
87
76
|
* ```
|
88
77
|
*/
|
89
78
|
export class LayoutModule {
|