@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
@@ -17,7 +17,26 @@ const DEFAULT_SIZE = 'medium';
|
|
17
17
|
const DEFAULT_THEME_COLOR = 'primary';
|
18
18
|
const DEFAULT_FILL_MODE = 'solid';
|
19
19
|
/**
|
20
|
-
* Displays images, icons or initials representing people or other entities.
|
20
|
+
* Represents the Kendo UI Avatar component for Angular. Displays images, icons, or initials representing people or other entities.
|
21
|
+
*
|
22
|
+
* @example
|
23
|
+
* ```typescript
|
24
|
+
* @Component({
|
25
|
+
* selector: 'my-app',
|
26
|
+
* template: `
|
27
|
+
* <kendo-avatar [imageSrc]="userImage" size="large"></kendo-avatar>
|
28
|
+
* <kendo-avatar [initials]="userInitials" themeColor="primary"></kendo-avatar>
|
29
|
+
* <kendo-avatar [icon]="userIcon" fillMode="outline"></kendo-avatar>
|
30
|
+
* `
|
31
|
+
* })
|
32
|
+
* class AppComponent {
|
33
|
+
* userImage = 'path/to/image.jpg';
|
34
|
+
* userInitials = 'JD';
|
35
|
+
* userIcon = 'user';
|
36
|
+
* }
|
37
|
+
* ```
|
38
|
+
* @remarks
|
39
|
+
* Supported children components are: {@link AvatarCustomMessagesComponent}.
|
21
40
|
*/
|
22
41
|
export class AvatarComponent {
|
23
42
|
localization;
|
@@ -44,14 +63,10 @@ export class AvatarComponent {
|
|
44
63
|
this.rounded = mapShapeToRounded(shape);
|
45
64
|
}
|
46
65
|
/**
|
47
|
-
* Specifies the size of the
|
66
|
+
* Specifies the size of the Avatar
|
48
67
|
* ([see example]({% slug appearance_avatar %}#toc-size)).
|
49
68
|
*
|
50
|
-
*
|
51
|
-
* * `small`
|
52
|
-
* * `medium` (Default)
|
53
|
-
* * `large`
|
54
|
-
* * `none`
|
69
|
+
* @default 'medium'
|
55
70
|
*/
|
56
71
|
set size(size) {
|
57
72
|
if (size !== this._size) {
|
@@ -64,15 +79,10 @@ export class AvatarComponent {
|
|
64
79
|
return this._size;
|
65
80
|
}
|
66
81
|
/**
|
67
|
-
* Specifies the rounded styling of the
|
82
|
+
* Specifies the rounded styling of the Avatar
|
68
83
|
* ([see example](slug:appearance_avatar#toc-roundness)).
|
69
84
|
*
|
70
|
-
*
|
71
|
-
* * `small`
|
72
|
-
* * `medium`
|
73
|
-
* * `large`
|
74
|
-
* * `full` (Default)
|
75
|
-
* * `none`
|
85
|
+
* @default 'full'
|
76
86
|
*/
|
77
87
|
set rounded(rounded) {
|
78
88
|
if (rounded !== this._rounded) {
|
@@ -85,22 +95,10 @@ export class AvatarComponent {
|
|
85
95
|
return this._rounded;
|
86
96
|
}
|
87
97
|
/**
|
88
|
-
* Specifies the theme color of the
|
89
|
-
* The theme color
|
98
|
+
* Specifies the theme color of the Avatar.
|
99
|
+
* The theme color applies as background and border color while adjusting the text color accordingly.
|
90
100
|
*
|
91
|
-
*
|
92
|
-
* * `base`— Applies the base coloring value.
|
93
|
-
* * `primary` (Default)—Applies coloring based on primary theme color.
|
94
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
95
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
96
|
-
* * `info`—Applies coloring based on info theme color.
|
97
|
-
* * `success`— Applies coloring based on success theme color.
|
98
|
-
* * `warning`— Applies coloring based on warning theme color.
|
99
|
-
* * `error`— Applies coloring based on error theme color.
|
100
|
-
* * `dark`— Applies coloring based on dark theme color.
|
101
|
-
* * `light`— Applies coloring based on light theme color.
|
102
|
-
* * `inverse`— Applies coloring based on inverted theme color.
|
103
|
-
* * `none`— Removes the styling associated with the theme color.
|
101
|
+
* @default 'primary'
|
104
102
|
*/
|
105
103
|
set themeColor(themeColor) {
|
106
104
|
if (themeColor !== this._themeColor) {
|
@@ -113,12 +111,9 @@ export class AvatarComponent {
|
|
113
111
|
return this._themeColor;
|
114
112
|
}
|
115
113
|
/**
|
116
|
-
* Specifies the
|
114
|
+
* Specifies the fill style of the Avatar.
|
117
115
|
*
|
118
|
-
*
|
119
|
-
* * `solid` (Default)
|
120
|
-
* * `outline`
|
121
|
-
* * `none`
|
116
|
+
* @default 'solid'
|
122
117
|
*/
|
123
118
|
set fillMode(fillMode) {
|
124
119
|
if (fillMode !== this.fillMode) {
|
@@ -140,17 +135,18 @@ export class AvatarComponent {
|
|
140
135
|
this.fillMode = fillMode;
|
141
136
|
}
|
142
137
|
/**
|
143
|
-
*
|
138
|
+
* Adds a border to the Avatar.
|
139
|
+
*
|
140
|
+
* @default false
|
144
141
|
*/
|
145
142
|
border = false;
|
146
143
|
/**
|
147
|
-
* Defines a CSS class
|
148
|
-
*
|
149
|
-
* Allows the usage of custom icons.
|
144
|
+
* Defines a CSS class or multiple classes separated by spaces.
|
145
|
+
* You can apply these classes to a `span` element inside the Avatar and also use custom icons.
|
150
146
|
*/
|
151
147
|
iconClass;
|
152
148
|
/**
|
153
|
-
* Sets the width of the
|
149
|
+
* Sets the width of the Avatar.
|
154
150
|
*/
|
155
151
|
width;
|
156
152
|
/**
|
@@ -160,7 +156,7 @@ export class AvatarComponent {
|
|
160
156
|
return this.width;
|
161
157
|
}
|
162
158
|
/**
|
163
|
-
* Sets the height of the
|
159
|
+
* Sets the height of the Avatar.
|
164
160
|
*/
|
165
161
|
height;
|
166
162
|
/**
|
@@ -170,26 +166,26 @@ export class AvatarComponent {
|
|
170
166
|
return this.height;
|
171
167
|
}
|
172
168
|
/**
|
173
|
-
*
|
174
|
-
* Supports the type of values that
|
169
|
+
* Defines the CSS styles that render on the content element of the Avatar.
|
170
|
+
* Supports the type of values that [`ngStyle`](link:site.data.urls.angular['ngstyleapi']) supports.
|
175
171
|
*/
|
176
172
|
cssStyle;
|
177
173
|
/**
|
178
|
-
* Sets
|
174
|
+
* Sets the initials for the Avatar.
|
179
175
|
*/
|
180
176
|
initials;
|
181
177
|
/**
|
182
|
-
* Sets the
|
178
|
+
* Sets the icon for the Avatar.
|
183
179
|
* All [Kendo UI Icons](slug:icons#icons-list) are supported.
|
184
180
|
*/
|
185
181
|
icon;
|
186
182
|
/**
|
187
|
-
* Sets the
|
183
|
+
* Sets the image source of the Avatar.
|
188
184
|
*/
|
189
185
|
imageSrc;
|
190
186
|
/**
|
191
|
-
* Defines an
|
192
|
-
*
|
187
|
+
* Defines an SVG icon to render.
|
188
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
193
189
|
*/
|
194
190
|
set svgIcon(icon) {
|
195
191
|
if (isDevMode() && icon && this.icon && this.iconClass) {
|
@@ -9,8 +9,16 @@ import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
// eslint-disable no-forward-ref
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* Provides custom component messages that override default component messages
|
13
13
|
* ([see example]({% slug rtl_layout %})).
|
14
|
+
*
|
15
|
+
* ```html
|
16
|
+
* <kendo-avatar>
|
17
|
+
* <kendo-avatar-messages
|
18
|
+
* avatarAlt="User's profile picture"
|
19
|
+
* ></kendo-avatar-messages>
|
20
|
+
* </kendo-avatar>
|
21
|
+
* ```
|
14
22
|
*/
|
15
23
|
export class AvatarCustomMessagesComponent extends Messages {
|
16
24
|
service;
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
10
10
|
*/
|
11
11
|
export class Messages extends ComponentMessages {
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* Defines the alt attribute text of the image in the Avatar.
|
14
14
|
*/
|
15
15
|
avatarAlt;
|
16
16
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
@@ -9,8 +9,20 @@ import * as i1 from "./avatar/avatar.component";
|
|
9
9
|
import * as i2 from "./avatar/l10n/custom-messages.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 Avatar component.
|
13
|
+
*
|
14
|
+
* Use this module to add the Avatar component to your NgModule-based Angular application.
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```typescript
|
18
|
+
* import { AvatarModule } from '@progress/kendo-angular-layout';
|
19
|
+
* import { NgModule } from '@angular/core';
|
20
|
+
*
|
21
|
+
* @NgModule({
|
22
|
+
* imports: [AvatarModule]
|
23
|
+
* })
|
24
|
+
* export class AppModule { }
|
25
|
+
* ```
|
14
26
|
*/
|
15
27
|
export class AvatarModule {
|
16
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -6,8 +6,16 @@ import { Component, EventEmitter, HostBinding, Input, Output, TemplateRef } from
|
|
6
6
|
import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/**
|
9
|
-
*
|
10
|
-
*
|
9
|
+
* Defines the action buttons of the Card ([see example]({% slug actions_card %})).
|
10
|
+
* The Card actions can be used to perform operations related to the Card's content, such as saving, editing, or deleting.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-card-actions
|
15
|
+
* layout="end"
|
16
|
+
* orientation="horizontal">
|
17
|
+
* </kendo-card-actions>
|
18
|
+
* ```
|
11
19
|
*/
|
12
20
|
export class CardActionsComponent {
|
13
21
|
hostClass = true;
|
@@ -30,27 +38,20 @@ export class CardActionsComponent {
|
|
30
38
|
return this.orientation === 'horizontal';
|
31
39
|
}
|
32
40
|
/**
|
33
|
-
* Specifies the
|
34
|
-
*
|
35
|
-
* * The possible values are:
|
36
|
-
* * (Default) `horizontal`
|
37
|
-
* * `vertical`
|
41
|
+
* Specifies the orientation of the Card action buttons.
|
38
42
|
*
|
43
|
+
* @default 'horizontal'
|
39
44
|
*/
|
40
45
|
orientation = 'horizontal';
|
41
46
|
/**
|
42
47
|
* Specifies the layout of the Card action buttons.
|
43
48
|
*
|
44
|
-
*
|
45
|
-
* * (Default) `start`
|
46
|
-
* * `center`
|
47
|
-
* * `end`
|
48
|
-
* * `stretched`
|
49
|
-
*
|
49
|
+
* @default 'start'
|
50
50
|
*/
|
51
51
|
layout = 'start';
|
52
52
|
/**
|
53
|
-
*
|
53
|
+
* Defines the Card actions declaratively.
|
54
|
+
* You can pass an array of `CardAction` objects or a `TemplateRef`.
|
54
55
|
*/
|
55
56
|
set actions(value) {
|
56
57
|
if (Array.isArray(value)) {
|
@@ -61,7 +62,7 @@ export class CardActionsComponent {
|
|
61
62
|
}
|
62
63
|
}
|
63
64
|
/**
|
64
|
-
* Fires when
|
65
|
+
* Fires when you click an action button.
|
65
66
|
*/
|
66
67
|
action = new EventEmitter();
|
67
68
|
/**
|
@@ -5,7 +5,15 @@
|
|
5
5
|
import { Component, HostBinding } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines the content in the Card body.
|
9
|
+
* The body is the main area of the Card where the primary content is displayed.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```html
|
13
|
+
* <kendo-card-body>
|
14
|
+
* <p>Main content of the card.</p>
|
15
|
+
* </kendo-card-body>
|
16
|
+
* ```
|
9
17
|
*/
|
10
18
|
export class CardBodyComponent {
|
11
19
|
hostClass = true;
|
@@ -5,7 +5,15 @@
|
|
5
5
|
import { Component, HostBinding } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines the content in the Card footer.
|
9
|
+
* The footer can include additional information, actions, or links related to the Card's content.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```html
|
13
|
+
* <kendo-card-footer>
|
14
|
+
* <p>Footer content</p>
|
15
|
+
* </kendo-card-footer>
|
16
|
+
* ```
|
9
17
|
*/
|
10
18
|
export class CardFooterComponent {
|
11
19
|
hostClass = true;
|
@@ -5,7 +5,16 @@
|
|
5
5
|
import { Component, HostBinding } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines the content in the Card header.
|
9
|
+
* The header can include a title, subtitle, and other elements that provide context for the Card's content.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```html
|
13
|
+
* <kendo-card-header>
|
14
|
+
* <h5 kendoCardTitle>Card Title</h5>
|
15
|
+
* <p kendoCardSubtitle>Card Subtitle</p>
|
16
|
+
* </kendo-card-header>
|
17
|
+
* ```
|
9
18
|
*/
|
10
19
|
export class CardHeaderComponent {
|
11
20
|
hostClass = true;
|
@@ -9,7 +9,22 @@ import { packageMetadata } from '../package-metadata';
|
|
9
9
|
import * as i0 from "@angular/core";
|
10
10
|
import * as i1 from "@progress/kendo-angular-l10n";
|
11
11
|
/**
|
12
|
-
* Represents the
|
12
|
+
* Represents the Kendo UI Card component for Angular.
|
13
|
+
* Displays content in a structured container with customizable layout and styling ([Card overview]({% slug overview_card %})).
|
14
|
+
*
|
15
|
+
* @example
|
16
|
+
* ```html
|
17
|
+
* <kendo-card orientation="vertical">
|
18
|
+
* <kendo-card-header>
|
19
|
+
* <h5 kendoCardTitle>Card Title</h5>
|
20
|
+
* </kendo-card-header>
|
21
|
+
* <kendo-card-body>
|
22
|
+
* <p>Card content goes here.</p>
|
23
|
+
* </kendo-card-body>
|
24
|
+
* </kendo-card>
|
25
|
+
* ```
|
26
|
+
* @remarks
|
27
|
+
* Supported children components are: {@link CardFooterComponent}, {@link CardHeaderComponent}, {@link CardActionsComponent}, {@link CardBodyComponent}.
|
13
28
|
*/
|
14
29
|
export class CardComponent {
|
15
30
|
localizationService;
|
@@ -30,15 +45,13 @@ export class CardComponent {
|
|
30
45
|
/**
|
31
46
|
* Specifies the layout of the Card content.
|
32
47
|
*
|
33
|
-
*
|
34
|
-
* * (Default) `vertical`
|
35
|
-
* * `horizontal`
|
36
|
-
*
|
48
|
+
* @default 'vertical'
|
37
49
|
*/
|
38
50
|
orientation = 'vertical';
|
39
51
|
/**
|
40
52
|
* Defines the width of the Card.
|
41
|
-
*
|
53
|
+
*
|
54
|
+
* @default '285px'
|
42
55
|
*/
|
43
56
|
width = '285px';
|
44
57
|
dynamicRTLSubscription;
|
@@ -5,7 +5,16 @@
|
|
5
5
|
import { Directive, HostBinding } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines any media that displays and aligns in the Card.
|
9
|
+
* The media can be an image, video, or any other media type.
|
10
|
+
*
|
11
|
+
* ```html
|
12
|
+
* <kendo-card>
|
13
|
+
* <div kendoCardMedia>
|
14
|
+
* <img src="path/to/image.jpg" alt="Card Media">
|
15
|
+
* </div>
|
16
|
+
* </kendo-card>
|
17
|
+
* ```
|
9
18
|
*/
|
10
19
|
export class CardMediaDirective {
|
11
20
|
hostClass = true;
|
@@ -5,7 +5,15 @@
|
|
5
5
|
import { Directive, HostBinding, Input } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines a separator in the content of the Card.
|
9
|
+
* The separator can be used to visually divide sections within the Card.
|
10
|
+
*
|
11
|
+
* ```html
|
12
|
+
* <kendo-card>
|
13
|
+
* <div kendoCardSeparator></div>
|
14
|
+
* <p>Content below the separator</p>
|
15
|
+
* </kendo-card>
|
16
|
+
* ```
|
9
17
|
*/
|
10
18
|
export class CardSeparatorDirective {
|
11
19
|
hostClass = true;
|
@@ -22,9 +30,7 @@ export class CardSeparatorDirective {
|
|
22
30
|
/**
|
23
31
|
* Specifies the orientation of the Card separator.
|
24
32
|
*
|
25
|
-
*
|
26
|
-
* (Default) `horizontal`
|
27
|
-
* `vertical`
|
33
|
+
* @default 'horizontal'
|
28
34
|
*/
|
29
35
|
orientation = 'horizontal';
|
30
36
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
@@ -5,7 +5,14 @@
|
|
5
5
|
import { Directive, HostBinding } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines the text and styles for the subtitle of the Card.
|
9
|
+
* The subtitle is displayed below the title and above the content of the Card.
|
10
|
+
*
|
11
|
+
* ```html
|
12
|
+
* <kendo-card>
|
13
|
+
* <h4 kendoCardSubtitle>Card Subtitle</h4>
|
14
|
+
* </kendo-card>
|
15
|
+
* ```
|
9
16
|
*/
|
10
17
|
export class CardSubtitleDirective {
|
11
18
|
hostClass = true;
|
@@ -5,7 +5,14 @@
|
|
5
5
|
import { Directive, HostBinding } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Defines the text and styles for the title of the Card.
|
9
|
+
* The title is displayed at the top of the Card, above the subtitle and content.
|
10
|
+
*
|
11
|
+
* ```html
|
12
|
+
* <kendo-card>
|
13
|
+
* <h3 kendoCardTitle>Card Title</h3>
|
14
|
+
* </kendo-card>
|
15
|
+
* ```
|
9
16
|
*/
|
10
17
|
export class CardTitleDirective {
|
11
18
|
hostClass = true;
|
@@ -3,19 +3,19 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
/**
|
6
|
-
*
|
6
|
+
* Defines the settings of the Card action buttons.
|
7
7
|
*/
|
8
8
|
export class CardAction {
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* Specifies whether the action button uses primary styling.
|
11
11
|
*/
|
12
12
|
primary;
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* Specifies whether the action button uses flat styling.
|
15
15
|
*/
|
16
16
|
flat;
|
17
17
|
/**
|
18
|
-
*
|
18
|
+
* Defines the text of the action button.
|
19
19
|
*/
|
20
20
|
text;
|
21
21
|
}
|
package/esm2022/card.module.mjs
CHANGED
@@ -16,8 +16,20 @@ import * as i8 from "./card/directives/card-subtitle.directive";
|
|
16
16
|
import * as i9 from "./card/directives/card-title.directive";
|
17
17
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
18
18
|
/**
|
19
|
-
*
|
20
|
-
*
|
19
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Card component.
|
20
|
+
*
|
21
|
+
* Use this module to add the Card component to your NgModule-based Angular application.
|
22
|
+
*
|
23
|
+
* @example
|
24
|
+
* ```typescript
|
25
|
+
* import { CardModule } from '@progress/kendo-angular-layout';
|
26
|
+
* import { NgModule } from '@angular/core';
|
27
|
+
*
|
28
|
+
* @NgModule({
|
29
|
+
* imports: [CardModule]
|
30
|
+
* })
|
31
|
+
* export class AppModule { }
|
32
|
+
* ```
|
21
33
|
*/
|
22
34
|
export class CardModule {
|
23
35
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -9,18 +9,15 @@ export class PreventableEvent {
|
|
9
9
|
prevented = false;
|
10
10
|
/**
|
11
11
|
* Prevents the default action for a specified event.
|
12
|
-
*
|
13
|
-
* the built-in behavior that follows the event.
|
12
|
+
* The source component suppresses the built-in behavior that follows the event.
|
14
13
|
*/
|
15
14
|
preventDefault() {
|
16
15
|
this.prevented = true;
|
17
16
|
}
|
18
17
|
/**
|
19
|
-
* Returns `true` if the event was prevented
|
20
|
-
* by any of its subscribers.
|
18
|
+
* Returns `true` if the event was prevented by any of its subscribers.
|
21
19
|
*
|
22
|
-
* @returns `true` if the default action was prevented.
|
23
|
-
* Otherwise, returns `false`.
|
20
|
+
* @returns `true` if the default action was prevented. Otherwise, returns `false`.
|
24
21
|
*/
|
25
22
|
isDefaultPrevented() {
|
26
23
|
return this.prevented;
|
package/esm2022/directives.mjs
CHANGED
@@ -47,14 +47,14 @@ import { TimelineCardBodyTemplateDirective } from "./timeline/templates/timeline
|
|
47
47
|
import { TimelineCardHeaderTemplateDirective } from "./timeline/templates/timeline-card-header.directive";
|
48
48
|
import { TimelineComponent } from "./timeline/timeline.component";
|
49
49
|
/**
|
50
|
-
*
|
50
|
+
* Use the `KENDO_AVATAR` utility array to add all Avatar-related components and directives to a standalone Angular component.
|
51
51
|
*/
|
52
52
|
export const KENDO_AVATAR = [
|
53
53
|
AvatarComponent,
|
54
54
|
AvatarCustomMessagesComponent
|
55
55
|
];
|
56
56
|
/**
|
57
|
-
*
|
57
|
+
* Use the `KENDO_CARD` utility array to add all Card-related components and directives to a standalone Angular component.
|
58
58
|
*/
|
59
59
|
export const KENDO_CARD = [
|
60
60
|
CardComponent,
|
@@ -68,7 +68,7 @@ export const KENDO_CARD = [
|
|
68
68
|
CardTitleDirective
|
69
69
|
];
|
70
70
|
/**
|
71
|
-
*
|
71
|
+
* Use the `KENDO_DRAWER` utility array to add all Drawer-related components and directives to a standalone Angular component.
|
72
72
|
*/
|
73
73
|
export const KENDO_DRAWER = [
|
74
74
|
DrawerComponent,
|
@@ -80,21 +80,21 @@ export const KENDO_DRAWER = [
|
|
80
80
|
DrawerItemTemplateDirective
|
81
81
|
];
|
82
82
|
/**
|
83
|
-
*
|
83
|
+
* Use the `KENDO_EXPANSIONPANEL` utility array to add all ExpansionPanel-related components and directives to a standalone Angular component.
|
84
84
|
*/
|
85
85
|
export const KENDO_EXPANSIONPANEL = [
|
86
86
|
ExpansionPanelComponent,
|
87
87
|
ExpansionPanelTitleDirective
|
88
88
|
];
|
89
89
|
/**
|
90
|
-
*
|
90
|
+
* Use the `KENDO_GRIDLAYOUT` utility array to add all GridLayout-related components and directives to a standalone Angular component.
|
91
91
|
*/
|
92
92
|
export const KENDO_GRIDLAYOUT = [
|
93
93
|
GridLayoutComponent,
|
94
94
|
GridLayoutItemComponent
|
95
95
|
];
|
96
96
|
/**
|
97
|
-
*
|
97
|
+
* Use the `KENDO_PANELBAR` utility array to add all PanelBar-related components and directives to a standalone Angular component.
|
98
98
|
*/
|
99
99
|
export const KENDO_PANELBAR = [
|
100
100
|
PanelBarComponent,
|
@@ -104,20 +104,20 @@ export const KENDO_PANELBAR = [
|
|
104
104
|
PanelBarItemTitleDirective
|
105
105
|
];
|
106
106
|
/**
|
107
|
-
*
|
107
|
+
* Use the `KENDO_SPLITTER` utility array to add all Splitter-related components and directives to a standalone Angular component.
|
108
108
|
*/
|
109
109
|
export const KENDO_SPLITTER = [
|
110
110
|
SplitterComponent,
|
111
111
|
SplitterPaneComponent
|
112
112
|
];
|
113
113
|
/**
|
114
|
-
*
|
114
|
+
* Use the `KENDO_STACKLAYOUT` utility array to add all StackLayout-related components and directives to a standalone Angular component.
|
115
115
|
*/
|
116
116
|
export const KENDO_STACKLAYOUT = [
|
117
117
|
StackLayoutComponent
|
118
118
|
];
|
119
119
|
/**
|
120
|
-
*
|
120
|
+
* Use the `KENDO_STEPPER` utility array to add all Stepper-related components and directives to a standalone Angular component.
|
121
121
|
*/
|
122
122
|
export const KENDO_STEPPER = [
|
123
123
|
StepperComponent,
|
@@ -127,7 +127,7 @@ export const KENDO_STEPPER = [
|
|
127
127
|
StepperStepTemplateDirective
|
128
128
|
];
|
129
129
|
/**
|
130
|
-
*
|
130
|
+
* Use the `KENDO_TABSTRIP` utility array to add all TabStrip-related components and directives to a standalone Angular component.
|
131
131
|
*/
|
132
132
|
export const KENDO_TABSTRIP = [
|
133
133
|
TabStripComponent,
|
@@ -137,7 +137,7 @@ export const KENDO_TABSTRIP = [
|
|
137
137
|
TabStripCustomMessagesComponent
|
138
138
|
];
|
139
139
|
/**
|
140
|
-
*
|
140
|
+
* Use the `KENDO_TILELAYOUT` utility array to add all TileLayout-related components and directives to a standalone Angular component.
|
141
141
|
*/
|
142
142
|
export const KENDO_TILELAYOUT = [
|
143
143
|
TileLayoutComponent,
|
@@ -146,7 +146,7 @@ export const KENDO_TILELAYOUT = [
|
|
146
146
|
TileLayoutItemHeaderComponent
|
147
147
|
];
|
148
148
|
/**
|
149
|
-
*
|
149
|
+
* Use the `KENDO_TIMELINE` utility array to add all Timeline-related components and directives to a standalone Angular component.
|
150
150
|
*/
|
151
151
|
export const KENDO_TIMELINE = [
|
152
152
|
TimelineComponent,
|
@@ -156,7 +156,7 @@ export const KENDO_TIMELINE = [
|
|
156
156
|
TimelineCardHeaderTemplateDirective
|
157
157
|
];
|
158
158
|
/**
|
159
|
-
*
|
159
|
+
* Use the `KENDO_LAYOUT` utility array to add all `@progress/kendo-angular-layout`-related components and directives to a standalone Angular component.
|
160
160
|
*/
|
161
161
|
export const KENDO_LAYOUT = [
|
162
162
|
...KENDO_AVATAR,
|
@@ -10,7 +10,19 @@ import { NgIf } from '@angular/common';
|
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
12
12
|
/**
|
13
|
-
* Serves as a container for the [
|
13
|
+
* Serves as a container for the [Drawer component]({% slug overview_drawer %}) and its content.
|
14
|
+
*
|
15
|
+
* @example
|
16
|
+
* ```html
|
17
|
+
* <kendo-drawer-container>
|
18
|
+
* <kendo-drawer [items]="items"></kendo-drawer>
|
19
|
+
* <kendo-drawer-content>
|
20
|
+
* <h1>Main Content</h1>
|
21
|
+
* </kendo-drawer-content>
|
22
|
+
* </kendo-drawer-container>
|
23
|
+
* ```
|
24
|
+
* @remarks
|
25
|
+
* Supported children components are: {@link DrawerComponent}, {@link DrawerContentComponent}.
|
14
26
|
*/
|
15
27
|
export class DrawerContainerComponent {
|
16
28
|
localizationService;
|