@progress/kendo-angular-layout 21.4.1 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/avatar/l10n/messages.d.ts +1 -1
  2. package/fesm2022/progress-kendo-angular-layout.mjs +290 -290
  3. package/package.json +12 -20
  4. package/stepper/localization/messages.d.ts +1 -1
  5. package/tabstrip/localization/messages.d.ts +1 -1
  6. package/timeline/localization/messages.d.ts +1 -1
  7. package/esm2022/avatar/avatar.component.mjs +0 -406
  8. package/esm2022/avatar/l10n/custom-messages.component.mjs +0 -53
  9. package/esm2022/avatar/l10n/localized-messages.directive.mjs +0 -40
  10. package/esm2022/avatar/l10n/messages.mjs +0 -27
  11. package/esm2022/avatar/models/fill.mjs +0 -5
  12. package/esm2022/avatar/models/models.mjs +0 -9
  13. package/esm2022/avatar/models/rounded.mjs +0 -5
  14. package/esm2022/avatar/models/shape.mjs +0 -5
  15. package/esm2022/avatar/models/size.mjs +0 -5
  16. package/esm2022/avatar/models/theme-color.mjs +0 -5
  17. package/esm2022/avatar.module.mjs +0 -38
  18. package/esm2022/card/card-actions.component.mjs +0 -177
  19. package/esm2022/card/card-body.component.mjs +0 -37
  20. package/esm2022/card/card-footer.component.mjs +0 -37
  21. package/esm2022/card/card-header.component.mjs +0 -38
  22. package/esm2022/card/card.component.mjs +0 -118
  23. package/esm2022/card/directives/card-media.directive.mjs +0 -33
  24. package/esm2022/card/directives/card-separator.directive.mjs +0 -61
  25. package/esm2022/card/directives/card-subtitle.directive.mjs +0 -31
  26. package/esm2022/card/directives/card-title.directive.mjs +0 -31
  27. package/esm2022/card/models/actions-layout.mjs +0 -5
  28. package/esm2022/card/models/card-action.mjs +0 -21
  29. package/esm2022/card.module.mjs +0 -45
  30. package/esm2022/common/direction.mjs +0 -5
  31. package/esm2022/common/dom-queries.mjs +0 -47
  32. package/esm2022/common/orientation.mjs +0 -5
  33. package/esm2022/common/preventable-event.mjs +0 -31
  34. package/esm2022/common/styling-classes.mjs +0 -5
  35. package/esm2022/common/util.mjs +0 -85
  36. package/esm2022/directives.mjs +0 -174
  37. package/esm2022/drawer/animations.mjs +0 -146
  38. package/esm2022/drawer/drawer-container.component.mjs +0 -135
  39. package/esm2022/drawer/drawer-content.component.mjs +0 -39
  40. package/esm2022/drawer/drawer.component.mjs +0 -471
  41. package/esm2022/drawer/drawer.service.mjs +0 -105
  42. package/esm2022/drawer/events/drawer-list-select.event.mjs +0 -29
  43. package/esm2022/drawer/events/select-event.mjs +0 -33
  44. package/esm2022/drawer/item.component.mjs +0 -210
  45. package/esm2022/drawer/list.component.mjs +0 -165
  46. package/esm2022/drawer/models/constants.mjs +0 -8
  47. package/esm2022/drawer/models/drawer-animation.interface.mjs +0 -5
  48. package/esm2022/drawer/models/drawer-item-expand.interface.mjs +0 -5
  49. package/esm2022/drawer/models/drawer-item.interface.mjs +0 -5
  50. package/esm2022/drawer/models/drawer-view-item.interface.mjs +0 -5
  51. package/esm2022/drawer/models/mode.mjs +0 -5
  52. package/esm2022/drawer/models/position.mjs +0 -5
  53. package/esm2022/drawer/template-directives/drawer-template.directive.mjs +0 -43
  54. package/esm2022/drawer/template-directives/footer-template.directive.mjs +0 -36
  55. package/esm2022/drawer/template-directives/header-template.directive.mjs +0 -36
  56. package/esm2022/drawer/template-directives/item-template.directive.mjs +0 -44
  57. package/esm2022/drawer/template-directives.mjs +0 -8
  58. package/esm2022/drawer/types.mjs +0 -5
  59. package/esm2022/drawer/util.mjs +0 -16
  60. package/esm2022/drawer.module.mjs +0 -43
  61. package/esm2022/expansionpanel/animations.mjs +0 -23
  62. package/esm2022/expansionpanel/events/action-event.mjs +0 -21
  63. package/esm2022/expansionpanel/expansionpanel-title.directive.mjs +0 -38
  64. package/esm2022/expansionpanel/expansionpanel.component.mjs +0 -515
  65. package/esm2022/expansionpanel.module.mjs +0 -38
  66. package/esm2022/gridlayout.module.mjs +0 -38
  67. package/esm2022/index.mjs +0 -89
  68. package/esm2022/layout.module.mjs +0 -89
  69. package/esm2022/layouts/grid-layout.component.mjs +0 -179
  70. package/esm2022/layouts/gridlayout-item.component.mjs +0 -82
  71. package/esm2022/layouts/models/gridlayout-gap-settings.mjs +0 -5
  72. package/esm2022/layouts/models/gridlayout-row-col-size.mjs +0 -5
  73. package/esm2022/layouts/models/layout-align-settings.mjs +0 -5
  74. package/esm2022/layouts/models/layout-horizontal-align.mjs +0 -5
  75. package/esm2022/layouts/models/layout-vertical-align.mjs +0 -5
  76. package/esm2022/layouts/models.mjs +0 -10
  77. package/esm2022/layouts/stack-layout.component.mjs +0 -161
  78. package/esm2022/layouts/util.mjs +0 -101
  79. package/esm2022/package-metadata.mjs +0 -16
  80. package/esm2022/panelbar/events/collapse-event.mjs +0 -14
  81. package/esm2022/panelbar/events/expand-event.mjs +0 -14
  82. package/esm2022/panelbar/events/item-click-event.mjs +0 -17
  83. package/esm2022/panelbar/events/select-event.mjs +0 -14
  84. package/esm2022/panelbar/events/state-change-event.mjs +0 -13
  85. package/esm2022/panelbar/events.mjs +0 -9
  86. package/esm2022/panelbar/panelbar-content.directive.mjs +0 -36
  87. package/esm2022/panelbar/panelbar-expand-mode.mjs +0 -29
  88. package/esm2022/panelbar/panelbar-item-model.mjs +0 -5
  89. package/esm2022/panelbar/panelbar-item-template.directive.mjs +0 -37
  90. package/esm2022/panelbar/panelbar-item-title.directive.mjs +0 -42
  91. package/esm2022/panelbar/panelbar-item.component.mjs +0 -722
  92. package/esm2022/panelbar/panelbar.component.mjs +0 -705
  93. package/esm2022/panelbar/panelbar.service.mjs +0 -53
  94. package/esm2022/panelbar.module.mjs +0 -41
  95. package/esm2022/progress-kendo-angular-layout.mjs +0 -8
  96. package/esm2022/splitter/splitter-bar.component.mjs +0 -338
  97. package/esm2022/splitter/splitter-pane.component.mjs +0 -324
  98. package/esm2022/splitter/splitter.component.mjs +0 -301
  99. package/esm2022/splitter/splitter.service.mjs +0 -205
  100. package/esm2022/splitter/util.mjs +0 -34
  101. package/esm2022/splitter.module.mjs +0 -38
  102. package/esm2022/stacklayout.module.mjs +0 -37
  103. package/esm2022/stepper/events/activate-event.mjs +0 -33
  104. package/esm2022/stepper/list.component.mjs +0 -185
  105. package/esm2022/stepper/localization/custom-messages.component.mjs +0 -52
  106. package/esm2022/stepper/localization/localized-messages.directive.mjs +0 -41
  107. package/esm2022/stepper/localization/messages.mjs +0 -27
  108. package/esm2022/stepper/models/constants.mjs +0 -8
  109. package/esm2022/stepper/models/orientation.mjs +0 -5
  110. package/esm2022/stepper/models/step-predicate.mjs +0 -5
  111. package/esm2022/stepper/models/step-type.mjs +0 -5
  112. package/esm2022/stepper/models/stepper-step.interface.mjs +0 -5
  113. package/esm2022/stepper/step.component.mjs +0 -396
  114. package/esm2022/stepper/stepper.component.mjs +0 -423
  115. package/esm2022/stepper/stepper.service.mjs +0 -186
  116. package/esm2022/stepper/template-directives/indicator-template.directive.mjs +0 -37
  117. package/esm2022/stepper/template-directives/label-template.directive.mjs +0 -37
  118. package/esm2022/stepper/template-directives/step-template.directive.mjs +0 -39
  119. package/esm2022/stepper/template-directives.mjs +0 -7
  120. package/esm2022/stepper/types.mjs +0 -5
  121. package/esm2022/stepper.module.mjs +0 -41
  122. package/esm2022/tabstrip/constants.mjs +0 -29
  123. package/esm2022/tabstrip/directives/tab-content.directive.mjs +0 -39
  124. package/esm2022/tabstrip/directives/tab-title.directive.mjs +0 -37
  125. package/esm2022/tabstrip/directives/tab.directive.mjs +0 -24
  126. package/esm2022/tabstrip/events/select-event.mjs +0 -25
  127. package/esm2022/tabstrip/events/tabclose-event.mjs +0 -23
  128. package/esm2022/tabstrip/events/tabscroll-event.mjs +0 -23
  129. package/esm2022/tabstrip/events.mjs +0 -7
  130. package/esm2022/tabstrip/localization/custom-messages.component.mjs +0 -53
  131. package/esm2022/tabstrip/localization/localized-messages.directive.mjs +0 -39
  132. package/esm2022/tabstrip/localization/messages.mjs +0 -39
  133. package/esm2022/tabstrip/models/button-state-change.mjs +0 -5
  134. package/esm2022/tabstrip/models/scroll-button-type.mjs +0 -5
  135. package/esm2022/tabstrip/models/scroll-buttons-visibility.mjs +0 -5
  136. package/esm2022/tabstrip/models/scrollable-settings.mjs +0 -23
  137. package/esm2022/tabstrip/models/size.mjs +0 -5
  138. package/esm2022/tabstrip/models/tab-alignment.mjs +0 -5
  139. package/esm2022/tabstrip/models/tab-position.mjs +0 -5
  140. package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +0 -130
  141. package/esm2022/tabstrip/rendering/tab.component.mjs +0 -182
  142. package/esm2022/tabstrip/scrollable-button.component.mjs +0 -182
  143. package/esm2022/tabstrip/tabstrip-scroll.service.mjs +0 -176
  144. package/esm2022/tabstrip/tabstrip.component.mjs +0 -954
  145. package/esm2022/tabstrip/tabstrip.service.mjs +0 -155
  146. package/esm2022/tabstrip/util.mjs +0 -120
  147. package/esm2022/tabstrip.module.mjs +0 -41
  148. package/esm2022/tilelayout/constants.mjs +0 -70
  149. package/esm2022/tilelayout/dragging-service.mjs +0 -421
  150. package/esm2022/tilelayout/keyboard-navigation.service.mjs +0 -189
  151. package/esm2022/tilelayout/models/dragging-config.interface.mjs +0 -5
  152. package/esm2022/tilelayout/models/flowmode.type.mjs +0 -5
  153. package/esm2022/tilelayout/models/gap.interface.mjs +0 -5
  154. package/esm2022/tilelayout/models/navigation.interface.mjs +0 -5
  155. package/esm2022/tilelayout/reorder-event.mjs +0 -43
  156. package/esm2022/tilelayout/resize-event.mjs +0 -37
  157. package/esm2022/tilelayout/tilelayout-item-body.component.mjs +0 -45
  158. package/esm2022/tilelayout/tilelayout-item-header.component.mjs +0 -43
  159. package/esm2022/tilelayout/tilelayout-item.component.mjs +0 -322
  160. package/esm2022/tilelayout/tilelayout-resize-handle.directive.mjs +0 -61
  161. package/esm2022/tilelayout/tilelayout.component.mjs +0 -388
  162. package/esm2022/tilelayout/util.mjs +0 -138
  163. package/esm2022/tilelayout.module.mjs +0 -40
  164. package/esm2022/timeline/events/navigation-direction.mjs +0 -5
  165. package/esm2022/timeline/localization/custom-messages.component.mjs +0 -43
  166. package/esm2022/timeline/localization/localized-messages.directive.mjs +0 -39
  167. package/esm2022/timeline/localization/messages.mjs +0 -33
  168. package/esm2022/timeline/models/anchor-target.mjs +0 -5
  169. package/esm2022/timeline/models/default-model-fields.mjs +0 -16
  170. package/esm2022/timeline/models/events-order.mjs +0 -5
  171. package/esm2022/timeline/models/model-fields.mjs +0 -5
  172. package/esm2022/timeline/models/timeline-event.mjs +0 -5
  173. package/esm2022/timeline/templates/timeline-card-actions.directive.mjs +0 -40
  174. package/esm2022/timeline/templates/timeline-card-body.directive.mjs +0 -40
  175. package/esm2022/timeline/templates/timeline-card-header.directive.mjs +0 -41
  176. package/esm2022/timeline/timeline-card.component.mjs +0 -451
  177. package/esm2022/timeline/timeline-horizontal.component.mjs +0 -781
  178. package/esm2022/timeline/timeline-vertical.component.mjs +0 -203
  179. package/esm2022/timeline/timeline.component.mjs +0 -491
  180. package/esm2022/timeline/timeline.service.mjs +0 -32
  181. package/esm2022/timeline/util.mjs +0 -26
  182. package/esm2022/timeline.module.mjs +0 -41
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,396 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, Input, HostBinding, TemplateRef, NgZone, ElementRef, ViewChild } from '@angular/core';
6
- import { validatePackage } from '@progress/kendo-licensing';
7
- import { packageMetadata } from '../package-metadata';
8
- import { isPresent } from '../common/util';
9
- import { StepperService } from './stepper.service';
10
- import { LocalizationService } from '@progress/kendo-angular-l10n';
11
- import { checkCircleIcon, exclamationCircleIcon } from '@progress/kendo-svg-icons';
12
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
13
- import { NgTemplateOutlet } from '@angular/common';
14
- import * as i0 from "@angular/core";
15
- import * as i1 from "./stepper.service";
16
- import * as i2 from "@progress/kendo-angular-l10n";
17
- /**
18
- * @hidden
19
- */
20
- export class StepperStepComponent {
21
- service;
22
- localization;
23
- ngZone;
24
- step;
25
- index;
26
- current;
27
- type;
28
- successIcon;
29
- successSVGIcon;
30
- errorIcon;
31
- errorSVGIcon;
32
- svgIcon;
33
- indicatorTemplate;
34
- labelTemplate;
35
- stepTemplate;
36
- stepLink;
37
- isStepValid = undefined;
38
- shouldCheckValidity = undefined;
39
- checkCircleIcon = checkCircleIcon;
40
- exclamationCircleIcon = exclamationCircleIcon;
41
- subs;
42
- constructor(service, localization, ngZone) {
43
- this.service = service;
44
- this.localization = localization;
45
- this.ngZone = ngZone;
46
- validatePackage(packageMetadata);
47
- this.subs = this.service.focusedStepChange.subscribe(() => {
48
- this.onFocusedStepChange();
49
- });
50
- this.subs.add(this.service.triggerValidation.subscribe(() => {
51
- this.handleValidityChecks();
52
- }));
53
- }
54
- get errorStepClass() {
55
- if (isPresent(this.isStepValid)) {
56
- return !this.isStepValid;
57
- }
58
- return false;
59
- }
60
- get successStepClass() {
61
- if (isPresent(this.isStepValid)) {
62
- return this.isStepValid;
63
- }
64
- return false;
65
- }
66
- ngOnInit() {
67
- this.handleValidityChecks();
68
- }
69
- ngOnChanges(changes) {
70
- if (changes['current'] && !changes['current'].firstChange) {
71
- this.handleValidityChecks();
72
- }
73
- }
74
- ngOnDestroy() {
75
- if (this.subs) {
76
- this.subs.unsubscribe();
77
- }
78
- }
79
- onFocusedStepChange() {
80
- this.ngZone.runOutsideAngular(() => {
81
- if (this.index === this.service.focusedStep) {
82
- this.stepLink.nativeElement.focus();
83
- }
84
- });
85
- }
86
- onFocus() {
87
- this.service.focus(this.index);
88
- }
89
- get tabIndexAttr() {
90
- const active = this.service.focusedStep || this.service.currentStep;
91
- return this.index === active ? 0 : -1;
92
- }
93
- get indicatorIconClass() {
94
- if (this.step.icon && !this.step.iconClass) {
95
- return `${this.step.icon}`;
96
- }
97
- if (!this.step.icon && !this.step.iconClass && this.shouldCheckValidity) {
98
- return this.validationIconClasses;
99
- }
100
- }
101
- get customIndicatorIconClass() {
102
- if (this.step.iconClass) {
103
- return `${this.step.iconClass}`;
104
- }
105
- const renderCustomValidationIcon = !this.step.icon && !this.step.iconClass && this.shouldCheckValidity;
106
- if (renderCustomValidationIcon) {
107
- return this.customValidationIconClasses;
108
- }
109
- }
110
- get SVGIndicatorIcon() {
111
- if (this.step.svgIcon) {
112
- return this.step.svgIcon;
113
- }
114
- if (!this.step.svgIcon && this.shouldCheckValidity) {
115
- return this.validationSVGIcon;
116
- }
117
- }
118
- get validationIconClasses() {
119
- if (this.isStepValid) {
120
- return !this.successIcon ? 'check-circle' : '';
121
- }
122
- return !this.errorIcon ? 'exclamation-circle' : '';
123
- }
124
- get customValidationIconClasses() {
125
- if (this.isStepValid) {
126
- return this.successIcon ? this.successIcon : '';
127
- }
128
- return this.errorIcon ? this.errorIcon : '';
129
- }
130
- get validationSVGIcon() {
131
- if (this.isStepValid) {
132
- return this.successSVGIcon ? this.successSVGIcon : this.checkCircleIcon;
133
- }
134
- return this.errorSVGIcon ? this.errorSVGIcon : this.exclamationCircleIcon;
135
- }
136
- get showIndicatorIcon() {
137
- if (this.shouldCheckValidity) {
138
- return true;
139
- }
140
- if (this.step.icon || this.step.iconClass || this.step.svgIcon) {
141
- return true;
142
- }
143
- return false;
144
- }
145
- get showLabelIcon() {
146
- if (this.shouldCheckValidity) {
147
- if (this.type === 'label') {
148
- return true;
149
- }
150
- if (this.step.icon || this.step.iconClass) {
151
- return true;
152
- }
153
- }
154
- return false;
155
- }
156
- get showLabelText() {
157
- return this.type === 'label' || this.type === 'full';
158
- }
159
- get indicatorText() {
160
- const text = this.step.text;
161
- return text ? text : (this.index + 1).toString();
162
- }
163
- updateStepValidity() {
164
- if (typeof this.step.isValid === 'boolean') {
165
- return this.step.isValid;
166
- }
167
- if (typeof this.step.isValid === 'function') {
168
- return this.step.isValid(this.index);
169
- }
170
- return undefined;
171
- }
172
- get showIndicator() {
173
- return this.type === 'indicator' || this.type === 'full';
174
- }
175
- get showLabel() {
176
- if (this.type === 'label' || this.type === 'full') {
177
- return true;
178
- }
179
- return this.step.optional;
180
- }
181
- get optionalText() {
182
- return this.localization.get('optional');
183
- }
184
- get transitionDuration() {
185
- return this.service.owner.animationDuration;
186
- }
187
- _shouldCheckValidity() {
188
- if (isPresent(this.step.validate)) {
189
- if (typeof this.step.validate === 'boolean') {
190
- return this.step.validate;
191
- }
192
- if (typeof this.step.validate === 'function') {
193
- return this.step.validate(this.index);
194
- }
195
- }
196
- return isPresent(this.step.isValid) && this.index < this.current;
197
- }
198
- handleValidityChecks() {
199
- this.isStepValid = undefined;
200
- this.shouldCheckValidity = this._shouldCheckValidity();
201
- if (this.shouldCheckValidity) {
202
- this.isStepValid = this.updateStepValidity();
203
- }
204
- }
205
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepperStepComponent, deps: [{ token: i1.StepperService }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
206
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: StepperStepComponent, isStandalone: true, selector: "[kendoStepperStep]", inputs: { step: "step", index: "index", current: "current", type: "type", successIcon: "successIcon", successSVGIcon: "successSVGIcon", errorIcon: "errorIcon", errorSVGIcon: "errorSVGIcon", svgIcon: "svgIcon", indicatorTemplate: "indicatorTemplate", labelTemplate: "labelTemplate", stepTemplate: "stepTemplate" }, host: { properties: { "class.k-step-error": "this.errorStepClass", "class.k-step-success": "this.successStepClass" } }, viewQueries: [{ propertyName: "stepLink", first: true, predicate: ["stepLink"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
207
- <a href='#' class='k-step-link' #stepLink
208
- [attr.tabindex]='tabIndexAttr'
209
- [attr.title]='step.label'
210
- [attr.aria-disabled]='step.disabled'
211
- [attr.aria-current]='index === current ? "step" : null'
212
- (focus)='onFocus()'
213
- >
214
- @if (stepTemplate) {
215
- <ng-template
216
- [ngTemplateOutlet]='stepTemplate'
217
- [ngTemplateOutletContext]='{ $implicit: step, index: index }'>
218
- </ng-template>
219
- }
220
-
221
- @if (!stepTemplate) {
222
- @if (showIndicator) {
223
- <span
224
- class='k-step-indicator'
225
- aria-hidden='true'
226
- [style.transition-duration.ms]='transitionDuration'
227
- >
228
- @if (indicatorTemplate) {
229
- <ng-template
230
- [ngTemplateOutlet]='indicatorTemplate'
231
- [ngTemplateOutletContext]='{ $implicit: step, index: index }'>
232
- </ng-template>
233
- }
234
- @if (!indicatorTemplate) {
235
- @if (showIndicatorIcon) {
236
- <kendo-icon-wrapper
237
- [name]='indicatorIconClass'
238
- [customFontClass]='customIndicatorIconClass'
239
- [svgIcon]='SVGIndicatorIcon'
240
- innerCssClass='k-step-indicator-icon'
241
- >
242
- </kendo-icon-wrapper>
243
- }
244
- @if (!showIndicatorIcon) {
245
- <span class='k-step-indicator-text'>{{ indicatorText }}</span>
246
- }
247
- }
248
- </span>
249
- }
250
- @if (showLabel) {
251
- <span class='k-step-label'>
252
- @if (labelTemplate) {
253
- <ng-template
254
- [ngTemplateOutlet]='labelTemplate'
255
- [ngTemplateOutletContext]='{ $implicit: step, index: index }'>
256
- </ng-template>
257
- }
258
- @if (!labelTemplate) {
259
- @if (showLabelText) {
260
- <span class='k-step-text'>{{ step.label }}</span>
261
- }
262
- @if (showLabelIcon) {
263
- <kendo-icon-wrapper
264
- aria-hidden='true'
265
- [name]='validationIconClasses'
266
- [customFontClass]='customValidationIconClasses'
267
- [svgIcon]='validationSVGIcon'
268
- >
269
- </kendo-icon-wrapper>
270
- }
271
- @if (step.optional) {
272
- <span class='k-step-label-optional'>({{optionalText}})</span>
273
- }
274
- }
275
- </span>
276
- }
277
- }
278
- </a>
279
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
280
- }
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepperStepComponent, decorators: [{
282
- type: Component,
283
- args: [{
284
- // eslint-disable-next-line @angular-eslint/component-selector
285
- selector: '[kendoStepperStep]',
286
- template: `
287
- <a href='#' class='k-step-link' #stepLink
288
- [attr.tabindex]='tabIndexAttr'
289
- [attr.title]='step.label'
290
- [attr.aria-disabled]='step.disabled'
291
- [attr.aria-current]='index === current ? "step" : null'
292
- (focus)='onFocus()'
293
- >
294
- @if (stepTemplate) {
295
- <ng-template
296
- [ngTemplateOutlet]='stepTemplate'
297
- [ngTemplateOutletContext]='{ $implicit: step, index: index }'>
298
- </ng-template>
299
- }
300
-
301
- @if (!stepTemplate) {
302
- @if (showIndicator) {
303
- <span
304
- class='k-step-indicator'
305
- aria-hidden='true'
306
- [style.transition-duration.ms]='transitionDuration'
307
- >
308
- @if (indicatorTemplate) {
309
- <ng-template
310
- [ngTemplateOutlet]='indicatorTemplate'
311
- [ngTemplateOutletContext]='{ $implicit: step, index: index }'>
312
- </ng-template>
313
- }
314
- @if (!indicatorTemplate) {
315
- @if (showIndicatorIcon) {
316
- <kendo-icon-wrapper
317
- [name]='indicatorIconClass'
318
- [customFontClass]='customIndicatorIconClass'
319
- [svgIcon]='SVGIndicatorIcon'
320
- innerCssClass='k-step-indicator-icon'
321
- >
322
- </kendo-icon-wrapper>
323
- }
324
- @if (!showIndicatorIcon) {
325
- <span class='k-step-indicator-text'>{{ indicatorText }}</span>
326
- }
327
- }
328
- </span>
329
- }
330
- @if (showLabel) {
331
- <span class='k-step-label'>
332
- @if (labelTemplate) {
333
- <ng-template
334
- [ngTemplateOutlet]='labelTemplate'
335
- [ngTemplateOutletContext]='{ $implicit: step, index: index }'>
336
- </ng-template>
337
- }
338
- @if (!labelTemplate) {
339
- @if (showLabelText) {
340
- <span class='k-step-text'>{{ step.label }}</span>
341
- }
342
- @if (showLabelIcon) {
343
- <kendo-icon-wrapper
344
- aria-hidden='true'
345
- [name]='validationIconClasses'
346
- [customFontClass]='customValidationIconClasses'
347
- [svgIcon]='validationSVGIcon'
348
- >
349
- </kendo-icon-wrapper>
350
- }
351
- @if (step.optional) {
352
- <span class='k-step-label-optional'>({{optionalText}})</span>
353
- }
354
- }
355
- </span>
356
- }
357
- }
358
- </a>
359
- `,
360
- standalone: true,
361
- imports: [NgTemplateOutlet, IconWrapperComponent]
362
- }]
363
- }], ctorParameters: () => [{ type: i1.StepperService }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { step: [{
364
- type: Input
365
- }], index: [{
366
- type: Input
367
- }], current: [{
368
- type: Input
369
- }], type: [{
370
- type: Input
371
- }], successIcon: [{
372
- type: Input
373
- }], successSVGIcon: [{
374
- type: Input
375
- }], errorIcon: [{
376
- type: Input
377
- }], errorSVGIcon: [{
378
- type: Input
379
- }], svgIcon: [{
380
- type: Input
381
- }], indicatorTemplate: [{
382
- type: Input
383
- }], labelTemplate: [{
384
- type: Input
385
- }], stepTemplate: [{
386
- type: Input
387
- }], stepLink: [{
388
- type: ViewChild,
389
- args: ['stepLink', { static: true }]
390
- }], errorStepClass: [{
391
- type: HostBinding,
392
- args: ['class.k-step-error']
393
- }], successStepClass: [{
394
- type: HostBinding,
395
- args: ['class.k-step-success']
396
- }] } });