@progress/kendo-angular-layout 19.1.2-develop.4 → 19.1.2-develop.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -10,6 +10,18 @@ import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "./splitter.service";
|
11
11
|
/**
|
12
12
|
* Represents the pane component of the Splitter.
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* ```html
|
16
|
+
* <kendo-splitter>
|
17
|
+
* <kendo-splitter-pane size="30%" [collapsible]="true">
|
18
|
+
* Left pane content
|
19
|
+
* </kendo-splitter-pane>
|
20
|
+
* <kendo-splitter-pane>
|
21
|
+
* Right pane content
|
22
|
+
* </kendo-splitter-pane>
|
23
|
+
* </kendo-splitter>
|
24
|
+
* ```
|
13
25
|
*/
|
14
26
|
export class SplitterPaneComponent {
|
15
27
|
element;
|
@@ -27,9 +39,9 @@ export class SplitterPaneComponent {
|
|
27
39
|
return this._order;
|
28
40
|
}
|
29
41
|
/**
|
30
|
-
*
|
31
|
-
* Accepts
|
32
|
-
*
|
42
|
+
* Defines the initial size of the pane.
|
43
|
+
* Accepts values in pixels and percentages.
|
44
|
+
* The value must be between the `min` and `max` properties.
|
33
45
|
*/
|
34
46
|
set size(newSize) {
|
35
47
|
this._size = newSize;
|
@@ -41,9 +53,9 @@ export class SplitterPaneComponent {
|
|
41
53
|
return this._size;
|
42
54
|
}
|
43
55
|
/**
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
56
|
+
* Defines the HTML attributes of the splitter bar.
|
57
|
+
* Accepts string key-value pairs.
|
58
|
+
* You cannot change attributes that are essential for certain functionalities.
|
47
59
|
*/
|
48
60
|
set splitterBarAttributes(attributes) {
|
49
61
|
this._splitterBarAttributes = attributes;
|
@@ -56,34 +68,42 @@ export class SplitterPaneComponent {
|
|
56
68
|
return this._splitterBarAttributes;
|
57
69
|
}
|
58
70
|
/**
|
59
|
-
*
|
60
|
-
* Supports the
|
71
|
+
* Defines the CSS classes that are rendered on the splitter bar.
|
72
|
+
* Supports the same values as [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
61
73
|
*/
|
62
74
|
splitterBarClass;
|
63
75
|
/**
|
64
|
-
*
|
65
|
-
* Accepts
|
76
|
+
* Defines the minimum possible size of the pane.
|
77
|
+
* Accepts values in pixels and percentages.
|
66
78
|
*/
|
67
79
|
min;
|
68
80
|
/**
|
69
|
-
*
|
70
|
-
* Accepts
|
81
|
+
* Defines the maximum possible size of the pane.
|
82
|
+
* Accepts values in pixels and percentages.
|
71
83
|
*/
|
72
84
|
max;
|
73
85
|
/**
|
74
|
-
*
|
86
|
+
* Determines if you can resize the pane and provide space for other panes.
|
87
|
+
*
|
88
|
+
* @default true
|
75
89
|
*/
|
76
90
|
resizable = true;
|
77
91
|
/**
|
78
|
-
*
|
92
|
+
* Determines if you can hide the pane and provide space for other panes.
|
93
|
+
*
|
94
|
+
* @default false
|
79
95
|
*/
|
80
96
|
collapsible = false;
|
81
97
|
/**
|
82
|
-
*
|
98
|
+
* Determines if overflowing content is scrollable or hidden.
|
99
|
+
*
|
100
|
+
* @default true
|
83
101
|
*/
|
84
102
|
scrollable = true;
|
85
103
|
/**
|
86
|
-
*
|
104
|
+
* Determines if the pane is initially collapsed.
|
105
|
+
*
|
106
|
+
* @default false
|
87
107
|
*/
|
88
108
|
collapsed = false;
|
89
109
|
/**
|
@@ -106,15 +126,15 @@ export class SplitterPaneComponent {
|
|
106
126
|
*/
|
107
127
|
overlayContent = false;
|
108
128
|
/**
|
109
|
-
* Fires
|
129
|
+
* Fires when the Splitter pane size changes.
|
110
130
|
* The event data contains the new pane size.
|
111
|
-
*
|
131
|
+
* Enables two-way binding of the pane `size` property.
|
112
132
|
*/
|
113
133
|
sizeChange = new EventEmitter();
|
114
134
|
/**
|
115
|
-
* Fires
|
135
|
+
* Fires when the Splitter pane collapses or expands.
|
116
136
|
* The event data contains the new property state.
|
117
|
-
*
|
137
|
+
* Enables two-way binding of the `collapsed` pane property.
|
118
138
|
*/
|
119
139
|
collapsedChange = new EventEmitter();
|
120
140
|
get isHidden() {
|
@@ -17,41 +17,23 @@ import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "./splitter.service";
|
18
18
|
import * as i2 from "@progress/kendo-angular-l10n";
|
19
19
|
import * as i3 from "./splitter-pane.component";
|
20
|
-
const SIZING_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#
|
20
|
+
const SIZING_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#specifying-the-dimensions';
|
21
21
|
/**
|
22
22
|
* Represents the [Kendo UI Splitter component for Angular]({% slug overview_splitter %}).
|
23
23
|
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
* </kendo-splitter-pane>
|
35
|
-
*
|
36
|
-
* <kendo-splitter-pane>
|
37
|
-
* <h3>Inner splitter / center pane</h3>
|
38
|
-
* <p>Resizable only.</p>
|
39
|
-
* </kendo-splitter-pane>
|
40
|
-
*
|
41
|
-
* <kendo-splitter-pane [collapsible]="true" size="30%">
|
42
|
-
* <h3>Inner splitter / right pane</h3>
|
43
|
-
* <p>Resizable and collapsible.</p>
|
44
|
-
* </kendo-splitter-pane>
|
45
|
-
*
|
46
|
-
* </kendo-splitter>
|
47
|
-
* `,
|
48
|
-
* styles: [ `
|
49
|
-
* h3 { font-size: 1.2em; }
|
50
|
-
* h3, p { margin: 10px; padding: 0; }
|
51
|
-
* ` ]
|
52
|
-
* })
|
53
|
-
* class AppComponent {}
|
24
|
+
* @example
|
25
|
+
* ```html
|
26
|
+
* <kendo-splitter [style.height.px]="280">
|
27
|
+
* <kendo-splitter-pane [collapsible]="true" size="30%">
|
28
|
+
* <h3>Left pane</h3>
|
29
|
+
* </kendo-splitter-pane>
|
30
|
+
* <kendo-splitter-pane>
|
31
|
+
* <h3>Right pane</h3>
|
32
|
+
* </kendo-splitter-pane>
|
33
|
+
* </kendo-splitter>
|
54
34
|
* ```
|
35
|
+
* @remarks
|
36
|
+
* Supported children components are: {@link SplitterPaneComponent}.
|
55
37
|
*/
|
56
38
|
export class SplitterComponent {
|
57
39
|
element;
|
@@ -61,17 +43,20 @@ export class SplitterComponent {
|
|
61
43
|
ngZone;
|
62
44
|
enclosingPane;
|
63
45
|
/**
|
64
|
-
*
|
65
|
-
*
|
66
|
-
*
|
46
|
+
* Defines the orientation of the panes within the Splitter.
|
47
|
+
* Use `horizontal` to place panes horizontally or `vertical` to place them vertically.
|
48
|
+
*
|
49
|
+
* @default 'horizontal'
|
67
50
|
*/
|
68
51
|
orientation = 'horizontal';
|
69
52
|
/**
|
70
|
-
*
|
53
|
+
* Defines the width or height of the Splitter splitbars in pixels.
|
54
|
+
* The dimension depends on the orientation of the Splitter.
|
71
55
|
*/
|
72
56
|
splitbarWidth;
|
73
57
|
/**
|
74
|
-
*
|
58
|
+
* Defines the distance in pixels that you move the separator during keyboard navigation.
|
59
|
+
*
|
75
60
|
* @default 10
|
76
61
|
*/
|
77
62
|
set resizeStep(value) {
|
@@ -81,14 +66,13 @@ export class SplitterComponent {
|
|
81
66
|
return this.splitterService.resizeStep;
|
82
67
|
}
|
83
68
|
/**
|
84
|
-
*
|
85
|
-
* Supports the
|
69
|
+
* Defines the CSS classes that are rendered on the splitter bars.
|
70
|
+
* Supports the same values as [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
86
71
|
*/
|
87
72
|
splitterBarClass;
|
88
73
|
/**
|
89
|
-
* Fires
|
90
|
-
*
|
91
|
-
* which are positioned inside the panes.
|
74
|
+
* Fires when the layout of the Splitter changes.
|
75
|
+
* Use this event to trigger layout calculations on components that are positioned inside the panes.
|
92
76
|
*/
|
93
77
|
layoutChange;
|
94
78
|
get hostClasses() {
|
@@ -9,12 +9,20 @@ import * as i1 from "./splitter/splitter.component";
|
|
9
9
|
import * as i2 from "./splitter/splitter-pane.component";
|
10
10
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
11
11
|
/**
|
12
|
-
*
|
13
|
-
* definition for the Splitter component.
|
12
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Splitter component.
|
14
13
|
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
14
|
+
* Use this module to add the Splitter component to your NgModule-based Angular application.
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```typescript
|
18
|
+
* import { SplitterModule } from '@progress/kendo-angular-layout';
|
19
|
+
* import { NgModule } from '@angular/core';
|
20
|
+
*
|
21
|
+
* @NgModule({
|
22
|
+
* imports: [SplitterModule]
|
23
|
+
* })
|
24
|
+
* export class AppModule { }
|
25
|
+
* ```
|
18
26
|
*/
|
19
27
|
export class SplitterModule {
|
20
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SplitterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -8,8 +8,20 @@ import * as i0 from "@angular/core";
|
|
8
8
|
import * as i1 from "./layouts/stack-layout.component";
|
9
9
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
10
10
|
/**
|
11
|
-
*
|
12
|
-
*
|
11
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the StackLayout component.
|
12
|
+
*
|
13
|
+
* Use this module to add the StackLayout component to your NgModule-based Angular application.
|
14
|
+
*
|
15
|
+
* @example
|
16
|
+
* ```typescript
|
17
|
+
* import { StackLayoutModule } from '@progress/kendo-angular-layout';
|
18
|
+
* import { NgModule } from '@angular/core';
|
19
|
+
*
|
20
|
+
* @NgModule({
|
21
|
+
* imports: [StackLayoutModule]
|
22
|
+
* })
|
23
|
+
* export class AppModule { }
|
24
|
+
* ```
|
13
25
|
*/
|
14
26
|
export class StackLayoutModule {
|
15
27
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -4,23 +4,23 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from '@progress/kendo-angular-common';
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Represents the arguments for the `activate` event of the Stepper.
|
8
8
|
*/
|
9
9
|
export class StepperActivateEvent extends PreventableEvent {
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Specifies the index of the activated step in the `steps` collection.
|
12
12
|
*/
|
13
13
|
index;
|
14
14
|
/**
|
15
|
-
*
|
15
|
+
* Specifies the activated step.
|
16
16
|
*/
|
17
17
|
step;
|
18
18
|
/**
|
19
|
-
*
|
19
|
+
* Specifies the DOM event that triggered the step activation.
|
20
20
|
*/
|
21
21
|
originalEvent;
|
22
22
|
/**
|
23
|
-
*
|
23
|
+
* Specifies the Stepper that triggered the event.
|
24
24
|
*/
|
25
25
|
sender;
|
26
26
|
/**
|
@@ -8,8 +8,16 @@ import { StepperMessages } from './messages';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Provides custom component messages that override default component messages
|
12
12
|
* ([see example]({% slug rtl_layout %})).
|
13
|
+
*
|
14
|
+
* ```html
|
15
|
+
* <kendo-stepper>
|
16
|
+
* <kendo-stepper-messages
|
17
|
+
* optional="Optional step"
|
18
|
+
* ></kendo-stepper-messages>
|
19
|
+
* </kendo-stepper>
|
20
|
+
* ```
|
13
21
|
*/
|
14
22
|
export class StepperCustomMessagesComponent extends StepperMessages {
|
15
23
|
service;
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
10
10
|
*/
|
11
11
|
export class StepperMessages extends ComponentMessages {
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* Specifies the optional text.
|
14
14
|
*/
|
15
15
|
optional;
|
16
16
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StepperMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
@@ -21,20 +21,22 @@ const DEFAULT_ANIMATION_DURATION = 400;
|
|
21
21
|
* Represents the [Kendo UI Stepper component for Angular]({% slug overview_stepper %}).
|
22
22
|
*
|
23
23
|
* @example
|
24
|
-
* ```ts
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
24
|
+
* ```ts
|
25
|
+
* @Component({
|
26
|
+
* selector: 'my-app',
|
27
|
+
* template: `
|
28
|
+
* <kendo-stepper [steps]="steps">
|
29
|
+
* </kendo-stepper>
|
30
|
+
* `
|
31
31
|
* })
|
32
32
|
* class AppComponent {
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
33
|
+
* public steps: Array<StepperStep> = [
|
34
|
+
* { label: 'Step One' }, { label: 'Step Two' }, { label: 'Step Three' }
|
35
|
+
* ];
|
36
36
|
* }
|
37
37
|
* ```
|
38
|
+
* @remarks
|
39
|
+
* Supported children components are: {@link StepperCustomMessagesComponent}.
|
38
40
|
*/
|
39
41
|
export class StepperComponent {
|
40
42
|
renderer;
|
@@ -51,10 +53,7 @@ export class StepperComponent {
|
|
51
53
|
/**
|
52
54
|
* Specifies the type of the steps in the Stepper.
|
53
55
|
*
|
54
|
-
*
|
55
|
-
* * (Default) `indicator`
|
56
|
-
* * `label`
|
57
|
-
* * `full`
|
56
|
+
* @default 'indicator'
|
58
57
|
*/
|
59
58
|
stepType = 'indicator';
|
60
59
|
/**
|
@@ -67,13 +66,11 @@ export class StepperComponent {
|
|
67
66
|
* Specifies the orientation of the Stepper
|
68
67
|
* ([see example]({% slug orientation_stepper %})).
|
69
68
|
*
|
70
|
-
*
|
71
|
-
* * (Default) `horizontal`
|
72
|
-
* * `vertical`
|
69
|
+
* @default 'horizontal'
|
73
70
|
*/
|
74
71
|
orientation = 'horizontal';
|
75
72
|
/**
|
76
|
-
*
|
73
|
+
* Specifies the index of the current step.
|
77
74
|
*/
|
78
75
|
set currentStep(value) {
|
79
76
|
this.stepperService.currentStep = value;
|
@@ -82,8 +79,8 @@ export class StepperComponent {
|
|
82
79
|
return this.stepperService.currentStep;
|
83
80
|
}
|
84
81
|
/**
|
85
|
-
*
|
86
|
-
* ([see example]({% slug step_appearance_stepper %}))
|
82
|
+
* Specifies the collection of steps that will be rendered in the Stepper
|
83
|
+
* ([see example]({% slug step_appearance_stepper %})).
|
87
84
|
*/
|
88
85
|
set steps(steps) {
|
89
86
|
if (isPresent(steps) && steps.length > 0) {
|
@@ -94,8 +91,8 @@ export class StepperComponent {
|
|
94
91
|
return this._steps;
|
95
92
|
}
|
96
93
|
/**
|
97
|
-
*
|
98
|
-
*
|
94
|
+
* Specifies an SVG icon to be rendered inside the step indicator instead of the default numeric or text content.
|
95
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
99
96
|
*/
|
100
97
|
set svgIcon(icon) {
|
101
98
|
this._svgIcon = icon;
|
@@ -104,42 +101,38 @@ export class StepperComponent {
|
|
104
101
|
return this._svgIcon;
|
105
102
|
}
|
106
103
|
/**
|
107
|
-
*
|
108
|
-
*
|
104
|
+
* Specifies an SVG icon to be rendered for the success icon.
|
105
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
109
106
|
*/
|
110
107
|
successSVGIcon;
|
111
108
|
/**
|
112
|
-
*
|
113
|
-
*
|
109
|
+
* Specifies an SVG icon to be rendered for the error icon.
|
110
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
114
111
|
*/
|
115
112
|
errorSVGIcon;
|
116
113
|
/**
|
117
|
-
* Specifies
|
118
|
-
*
|
114
|
+
* Specifies an SVG icon that will be rendered inside the step for valid previous steps.
|
115
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
119
116
|
*/
|
120
117
|
successIcon;
|
121
118
|
/**
|
122
|
-
|
123
|
-
|
124
|
-
|
119
|
+
* Specifies an SVG icon that will be rendered inside the step for invalid previous steps.
|
120
|
+
* You can use either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
121
|
+
*/
|
125
122
|
errorIcon;
|
126
123
|
/**
|
127
|
-
* Specifies the duration of the progress indicator animation in milliseconds.
|
124
|
+
* Specifies the duration of the progress indicator animation in milliseconds.
|
128
125
|
*
|
129
|
-
*
|
130
|
-
* * Boolean
|
131
|
-
* * (Default) `true`
|
132
|
-
* * false
|
133
|
-
* * Number
|
126
|
+
* @default true
|
134
127
|
*/
|
135
128
|
animation = true;
|
136
129
|
/**
|
137
|
-
* Fires when a step is about to be activated.
|
130
|
+
* Fires when a step is about to be activated. You can prevent this event.
|
138
131
|
*/
|
139
132
|
activate = new EventEmitter();
|
140
133
|
/**
|
141
134
|
* Fires when the `currentStep` property of the component was updated.
|
142
|
-
*
|
135
|
+
* Use this event to provide a two-way binding for the `currentStep` property.
|
143
136
|
*/
|
144
137
|
currentStepChange = new EventEmitter();
|
145
138
|
/**
|
@@ -29,19 +29,19 @@ handlersRTL[Keys.ArrowRight] = 'left';
|
|
29
29
|
*/
|
30
30
|
class StepperActivateEvent extends PreventableEvent {
|
31
31
|
/**
|
32
|
-
*
|
32
|
+
* Specifies the index of the activated step in the `steps` collection.
|
33
33
|
*/
|
34
34
|
index;
|
35
35
|
/**
|
36
|
-
*
|
36
|
+
* Specifies the activated step.
|
37
37
|
*/
|
38
38
|
step;
|
39
39
|
/**
|
40
|
-
*
|
40
|
+
* Specifies the DOM event that triggered the step activation.
|
41
41
|
*/
|
42
42
|
originalEvent;
|
43
43
|
/**
|
44
|
-
*
|
44
|
+
* Specifies the Stepper that triggered the event.
|
45
45
|
*/
|
46
46
|
sender;
|
47
47
|
/**
|
@@ -5,9 +5,18 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use this template to define custom content for the step indicator.
|
9
9
|
* To define the template, nest an `<ng-template>` tag
|
10
10
|
* with the `kendoStepperIndicatorTemplate` directive inside the `<kendo-stepper>` tag.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-stepper>
|
15
|
+
* <ng-template kendoStepperIndicatorTemplate let-step="step" let-index="index">
|
16
|
+
* <span>{{ index + 1 }}</span>
|
17
|
+
* </ng-template>
|
18
|
+
* </kendo-stepper>
|
19
|
+
* ```
|
11
20
|
*/
|
12
21
|
export class StepperIndicatorTemplateDirective {
|
13
22
|
templateRef;
|
@@ -5,9 +5,18 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use this template to define custom content for the step label.
|
9
9
|
* To define the template, nest an `<ng-template>` tag
|
10
10
|
* with the `kendoStepperLabelTemplate` directive inside the `<kendo-stepper>` tag.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-stepper>
|
15
|
+
* <ng-template kendoStepperLabelTemplate let-step="step" let-index="index">
|
16
|
+
* <span class="custom-label">{{ step.label }}</span>
|
17
|
+
* </ng-template>
|
18
|
+
* </kendo-stepper>
|
19
|
+
* ```
|
11
20
|
*/
|
12
21
|
export class StepperLabelTemplateDirective {
|
13
22
|
templateRef;
|
@@ -5,9 +5,20 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use this template to define custom content for the entire step.
|
9
9
|
* To define the template, nest an `<ng-template>` tag
|
10
10
|
* with the `kendoStepperStepTemplate` directive inside the `<kendo-stepper>` tag.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-stepper>
|
15
|
+
* <ng-template kendoStepperStepTemplate let-step="step" let-index="index">
|
16
|
+
* <div class="custom-step">
|
17
|
+
* <span>{{ step.label }}</span>
|
18
|
+
* </div>
|
19
|
+
* </ng-template>
|
20
|
+
* </kendo-stepper>
|
21
|
+
* ```
|
11
22
|
*/
|
12
23
|
export class StepperStepTemplateDirective {
|
13
24
|
templateRef;
|
@@ -12,8 +12,20 @@ import * as i4 from "./stepper/template-directives/label-template.directive";
|
|
12
12
|
import * as i5 from "./stepper/template-directives/step-template.directive";
|
13
13
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
14
14
|
/**
|
15
|
-
*
|
16
|
-
*
|
15
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Stepper component.
|
16
|
+
*
|
17
|
+
* Use this module to add the Stepper component to your NgModule-based Angular application.
|
18
|
+
*
|
19
|
+
* @example
|
20
|
+
* ```typescript
|
21
|
+
* import { StepperModule } from '@progress/kendo-angular-layout';
|
22
|
+
* import { NgModule } from '@angular/core';
|
23
|
+
*
|
24
|
+
* @NgModule({
|
25
|
+
* imports: [StepperModule]
|
26
|
+
* })
|
27
|
+
* export class AppModule { }
|
28
|
+
* ```
|
17
29
|
*/
|
18
30
|
export class StepperModule {
|
19
31
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -6,32 +6,20 @@ import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
8
|
* Represents the content template of the Kendo UI TabStrip.
|
9
|
-
* To define the template, nest
|
9
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoTabContent` directive inside the component tag.
|
10
10
|
*
|
11
11
|
* @example
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
* <
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
*
|
23
|
-
*
|
24
|
-
* <kendo-tabstrip-tab title="Sofia">
|
25
|
-
* <ng-template kendoTabContent>
|
26
|
-
* <h3>Content 2</h3>
|
27
|
-
* </ng-template>
|
28
|
-
* </kendo-tabstrip-tab>
|
29
|
-
* </kendo-tabstrip>
|
30
|
-
* `
|
31
|
-
* })
|
32
|
-
*
|
33
|
-
* class AppComponent {}
|
34
|
-
*
|
12
|
+
* ```html
|
13
|
+
* <kendo-tabstrip>
|
14
|
+
* <kendo-tabstrip-tab title="First Tab">
|
15
|
+
* <ng-template kendoTabContent>
|
16
|
+
* <div class="tab-content">
|
17
|
+
* <h2>Welcome</h2>
|
18
|
+
* <p>This is the content of the first tab.</p>
|
19
|
+
* </div>
|
20
|
+
* </ng-template>
|
21
|
+
* </kendo-tabstrip-tab>
|
22
|
+
* </kendo-tabstrip>
|
35
23
|
* ```
|
36
24
|
*/
|
37
25
|
export class TabContentDirective {
|