@progress/kendo-angular-layout 21.1.1-develop.2 → 21.2.0-develop.10
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/codemods/utils.js +805 -394
- package/codemods/v19/tabstrip-mousescrollspeed.js +11 -15
- package/esm2022/avatar/avatar.component.mjs +63 -59
- package/esm2022/card/card-actions.component.mjs +51 -41
- package/esm2022/drawer/drawer-container.component.mjs +10 -8
- package/esm2022/drawer/drawer.component.mjs +69 -55
- package/esm2022/drawer/item.component.mjs +79 -69
- package/esm2022/drawer/list.component.mjs +30 -27
- package/esm2022/expansionpanel/expansionpanel.component.mjs +75 -65
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/panelbar/panelbar-item.component.mjs +169 -135
- package/esm2022/panelbar/panelbar.component.mjs +58 -47
- package/esm2022/splitter/splitter-bar.component.mjs +34 -27
- package/esm2022/splitter/splitter-pane.component.mjs +16 -10
- package/esm2022/splitter/splitter.component.mjs +29 -31
- package/esm2022/stepper/list.component.mjs +33 -33
- package/esm2022/stepper/step.component.mjs +141 -111
- package/esm2022/stepper/stepper.component.mjs +59 -55
- package/esm2022/stepper/stepper.service.mjs +2 -2
- package/esm2022/tabstrip/rendering/tab.component.mjs +49 -39
- package/esm2022/tabstrip/tabstrip.component.mjs +251 -233
- package/esm2022/tabstrip/tabstrip.service.mjs +2 -2
- package/esm2022/tabstrip/util.mjs +1 -1
- package/esm2022/tilelayout/keyboard-navigation.service.mjs +2 -2
- package/esm2022/tilelayout/tilelayout-item.component.mjs +28 -23
- package/esm2022/tilelayout/tilelayout.component.mjs +24 -21
- package/esm2022/timeline/models/events-order.mjs +5 -0
- package/esm2022/timeline/timeline-card.component.mjs +185 -151
- package/esm2022/timeline/timeline-horizontal.component.mjs +200 -192
- package/esm2022/timeline/timeline-vertical.component.mjs +79 -67
- package/esm2022/timeline/timeline.component.mjs +61 -34
- package/fesm2022/progress-kendo-angular-layout.mjs +1781 -1514
- package/index.d.ts +1 -0
- package/package.json +10 -11
- package/timeline/models/events-order.d.ts +10 -0
- package/timeline/timeline.component.d.ts +12 -1
- package/codemods/template-transformer/index.js +0 -93
|
@@ -10,7 +10,7 @@ import { StepperService } from './stepper.service';
|
|
|
10
10
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { checkCircleIcon, exclamationCircleIcon } from '@progress/kendo-svg-icons';
|
|
12
12
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
13
|
-
import {
|
|
13
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "./stepper.service";
|
|
16
16
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -203,65 +203,80 @@ export class StepperStepComponent {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
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: "
|
|
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
207
|
<a href='#' class='k-step-link' #stepLink
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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 }'>
|
|
217
218
|
</ng-template>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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'
|
|
224
227
|
>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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
|
+
}
|
|
263
278
|
</a>
|
|
264
|
-
|
|
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"] }] });
|
|
265
280
|
}
|
|
266
281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepperStepComponent, decorators: [{
|
|
267
282
|
type: Component,
|
|
@@ -270,65 +285,80 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
270
285
|
selector: '[kendoStepperStep]',
|
|
271
286
|
template: `
|
|
272
287
|
<a href='#' class='k-step-link' #stepLink
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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 }'>
|
|
282
298
|
</ng-template>
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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'
|
|
289
307
|
>
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
+
}
|
|
328
358
|
</a>
|
|
329
|
-
|
|
359
|
+
`,
|
|
330
360
|
standalone: true,
|
|
331
|
-
imports: [
|
|
361
|
+
imports: [NgTemplateOutlet, IconWrapperComponent]
|
|
332
362
|
}]
|
|
333
363
|
}], ctorParameters: () => [{ type: i1.StepperService }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { step: [{
|
|
334
364
|
type: Input
|
|
@@ -10,7 +10,7 @@ import { isPresent } from '../common/util';
|
|
|
10
10
|
import { StepperIndicatorTemplateDirective } from './template-directives/indicator-template.directive';
|
|
11
11
|
import { StepperService } from './stepper.service';
|
|
12
12
|
import { ProgressBarComponent } from '@progress/kendo-angular-progressbar';
|
|
13
|
-
import { NgStyle
|
|
13
|
+
import { NgStyle } from '@angular/common';
|
|
14
14
|
import { StepperListComponent } from './list.component';
|
|
15
15
|
import { LocalizedStepperMessagesDirective } from './localization/localized-messages.directive';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
@@ -264,7 +264,7 @@ export class StepperComponent {
|
|
|
264
264
|
return this.orientation === 'horizontal';
|
|
265
265
|
}
|
|
266
266
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepperComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i2.StepperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
267
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
267
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: StepperComponent, isStandalone: true, selector: "kendo-stepper", inputs: { stepType: "stepType", linear: "linear", orientation: "orientation", currentStep: "currentStep", steps: "steps", svgIcon: "svgIcon", successSVGIcon: "successSVGIcon", errorSVGIcon: "errorSVGIcon", successIcon: "successIcon", errorIcon: "errorIcon", animation: "animation" }, outputs: { activate: "activate", currentStepChange: "currentStepChange" }, host: { properties: { "class.k-stepper": "this.hostClasses", "class.k-stepper-linear": "this.linearClass", "attr.role": "this.ariaRole", "attr.dir": "this.direction", "style.display": "this.displayStyle" } }, providers: [
|
|
268
268
|
LocalizationService,
|
|
269
269
|
StepperService,
|
|
270
270
|
{
|
|
@@ -273,33 +273,34 @@ export class StepperComponent {
|
|
|
273
273
|
}
|
|
274
274
|
], queries: [{ propertyName: "stepTemplate", first: true, predicate: StepperStepTemplateDirective, descendants: true }, { propertyName: "labelTemplate", first: true, predicate: StepperLabelTemplateDirective, descendants: true }, { propertyName: "indicatorTemplate", first: true, predicate: StepperIndicatorTemplateDirective, descendants: true }], exportAs: ["kendoStepper"], usesOnChanges: true, ngImport: i0, template: `
|
|
275
275
|
<ng-container kendoStepperLocalizedMessages
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
i18n-optional="kendo.stepper.optional|The text for the optional segment of the step label"
|
|
277
|
+
optional="Optional"
|
|
278
|
+
>
|
|
279
279
|
</ng-container>
|
|
280
280
|
<ol kendoStepperList
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
281
|
+
[stepType]='stepType'
|
|
282
|
+
[linear]='linear'
|
|
283
|
+
[orientation]='orientation'
|
|
284
|
+
[steps]='steps'
|
|
285
|
+
[currentStep]='currentStep'
|
|
286
|
+
[successIcon]='successIcon'
|
|
287
|
+
[successSVGIcon]='successSVGIcon'
|
|
288
|
+
[errorIcon]='errorIcon'
|
|
289
|
+
[errorSVGIcon]='errorSVGIcon'
|
|
290
|
+
[svgIcon]="svgIcon"
|
|
291
|
+
[indicatorTemplate]='indicatorTemplate?.templateRef'
|
|
292
|
+
[labelTemplate]='labelTemplate?.templateRef'
|
|
293
|
+
[stepTemplate]='stepTemplate?.templateRef'
|
|
294
|
+
class='k-step-list'
|
|
295
|
+
[class.k-step-list-horizontal]='isHorizontal'
|
|
296
|
+
[class.k-step-list-vertical]='!isHorizontal'
|
|
297
|
+
[ngStyle]='stepsListStyling'
|
|
298
|
+
(listKeydown)="onListKeydown($event)"
|
|
299
|
+
(listClick)="onListClick($event)">
|
|
300
300
|
</ol>
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
|
|
302
|
+
@if (steps.length > 0) {
|
|
303
|
+
<kendo-progressbar
|
|
303
304
|
[attr.aria-hidden]='true'
|
|
304
305
|
[animation]='progressAnimation'
|
|
305
306
|
[max]='steps.length - 1'
|
|
@@ -308,8 +309,9 @@ export class StepperComponent {
|
|
|
308
309
|
[reverse]='!isHorizontal'
|
|
309
310
|
[value]='currentStep'
|
|
310
311
|
[ngStyle]='progressBarStyling'>
|
|
311
|
-
|
|
312
|
-
|
|
312
|
+
</kendo-progressbar>
|
|
313
|
+
}
|
|
314
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedStepperMessagesDirective, selector: "\n [kendoStepperLocalizedMessages]\n " }, { kind: "component", type: StepperListComponent, selector: "[kendoStepperList]", inputs: ["linear", "stepType", "orientation", "currentStep", "steps", "successIcon", "successSVGIcon", "errorIcon", "errorSVGIcon", "svgIcon", "indicatorTemplate", "labelTemplate", "stepTemplate"], outputs: ["listKeydown", "listClick"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ProgressBarComponent, selector: "kendo-progressbar", inputs: ["label", "progressCssStyle", "progressCssClass", "emptyCssStyle", "emptyCssClass", "animation"], outputs: ["animationEnd"], exportAs: ["kendoProgressBar"] }] });
|
|
313
315
|
}
|
|
314
316
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepperComponent, decorators: [{
|
|
315
317
|
type: Component,
|
|
@@ -326,33 +328,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
326
328
|
selector: 'kendo-stepper',
|
|
327
329
|
template: `
|
|
328
330
|
<ng-container kendoStepperLocalizedMessages
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
331
|
+
i18n-optional="kendo.stepper.optional|The text for the optional segment of the step label"
|
|
332
|
+
optional="Optional"
|
|
333
|
+
>
|
|
332
334
|
</ng-container>
|
|
333
335
|
<ol kendoStepperList
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
336
|
+
[stepType]='stepType'
|
|
337
|
+
[linear]='linear'
|
|
338
|
+
[orientation]='orientation'
|
|
339
|
+
[steps]='steps'
|
|
340
|
+
[currentStep]='currentStep'
|
|
341
|
+
[successIcon]='successIcon'
|
|
342
|
+
[successSVGIcon]='successSVGIcon'
|
|
343
|
+
[errorIcon]='errorIcon'
|
|
344
|
+
[errorSVGIcon]='errorSVGIcon'
|
|
345
|
+
[svgIcon]="svgIcon"
|
|
346
|
+
[indicatorTemplate]='indicatorTemplate?.templateRef'
|
|
347
|
+
[labelTemplate]='labelTemplate?.templateRef'
|
|
348
|
+
[stepTemplate]='stepTemplate?.templateRef'
|
|
349
|
+
class='k-step-list'
|
|
350
|
+
[class.k-step-list-horizontal]='isHorizontal'
|
|
351
|
+
[class.k-step-list-vertical]='!isHorizontal'
|
|
352
|
+
[ngStyle]='stepsListStyling'
|
|
353
|
+
(listKeydown)="onListKeydown($event)"
|
|
354
|
+
(listClick)="onListClick($event)">
|
|
353
355
|
</ol>
|
|
354
|
-
|
|
355
|
-
|
|
356
|
+
|
|
357
|
+
@if (steps.length > 0) {
|
|
358
|
+
<kendo-progressbar
|
|
356
359
|
[attr.aria-hidden]='true'
|
|
357
360
|
[animation]='progressAnimation'
|
|
358
361
|
[max]='steps.length - 1'
|
|
@@ -361,10 +364,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
361
364
|
[reverse]='!isHorizontal'
|
|
362
365
|
[value]='currentStep'
|
|
363
366
|
[ngStyle]='progressBarStyling'>
|
|
364
|
-
|
|
365
|
-
|
|
367
|
+
</kendo-progressbar>
|
|
368
|
+
}
|
|
369
|
+
`,
|
|
366
370
|
standalone: true,
|
|
367
|
-
imports: [LocalizedStepperMessagesDirective, StepperListComponent, NgStyle,
|
|
371
|
+
imports: [LocalizedStepperMessagesDirective, StepperListComponent, NgStyle, ProgressBarComponent]
|
|
368
372
|
}]
|
|
369
373
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i2.StepperService }], propDecorators: { hostClasses: [{
|
|
370
374
|
type: HostBinding,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Injectable, NgZone, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
6
|
-
import { hasObservers, Keys,
|
|
6
|
+
import { hasObservers, Keys, normalizeKeys, PreventableEvent } from '@progress/kendo-angular-common';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { isPresent } from '../common/util';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
@@ -100,7 +100,7 @@ export class StepperService {
|
|
|
100
100
|
keydown(e) {
|
|
101
101
|
const current = this.focusedStep || this.currentStep;
|
|
102
102
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
103
|
-
const code =
|
|
103
|
+
const code = normalizeKeys(e);
|
|
104
104
|
const handler = this.handlers[code];
|
|
105
105
|
if (!isPresent(current)) {
|
|
106
106
|
return;
|
|
@@ -7,7 +7,7 @@ import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/co
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { TabCloseEvent } from '../events/tabclose-event';
|
|
9
9
|
import { xIcon } from '@progress/kendo-svg-icons';
|
|
10
|
-
import {
|
|
10
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
11
11
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -81,28 +81,33 @@ export class TabComponent {
|
|
|
81
81
|
this.tabClose.emit(closeArgs);
|
|
82
82
|
}
|
|
83
83
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TabComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
84
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TabComponent, isStandalone: true, selector: "[kendoTabStripTab]", inputs: { tab: "tab", index: "index", tabStripClosable: "tabStripClosable", tabStripCloseIcon: "tabStripCloseIcon", customTabstripCloseIcon: "customTabstripCloseIcon", closeSVGIcon: "closeSVGIcon" }, outputs: { tabClose: "tabClose" }, host: { properties: { "class.k-tabstrip-item": "this.hostClasses", "attr.aria-selected": "this.activeClass", "class.k-active": "this.activeClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-focus": "this.focusedClass", "attr.tabindex": "this.tabIndex" } }, ngImport: i0, template: `
|
|
85
|
+
@if (!tab.tabTemplate) {
|
|
86
|
+
@if (!tab.tabTitle) {
|
|
87
|
+
<span class="k-link">
|
|
88
|
+
<span class="k-link-text">{{ tab.title }}</span>
|
|
88
89
|
</span>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
}
|
|
91
|
+
@if (tab.tabTitle) {
|
|
92
|
+
<span class="k-link">
|
|
93
|
+
<ng-template [ngTemplateOutlet]="tab.tabTitle.templateRef">
|
|
94
|
+
</ng-template>
|
|
92
95
|
</span>
|
|
93
|
-
|
|
96
|
+
}
|
|
97
|
+
} @else {
|
|
98
|
+
<ng-template #tabTemplate [ngTemplateOutlet]="tab.tabTemplate?.templateRef">
|
|
99
|
+
</ng-template>
|
|
100
|
+
}
|
|
94
101
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</span>
|
|
105
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
102
|
+
@if (tabClosable) {
|
|
103
|
+
<span class="k-remove-tab k-icon-button k-button k-button-md k-rounded-md k-button-flat-base k-button-flat"
|
|
104
|
+
(click)="closeTab(index)" [title]="closeButtonTitle">
|
|
105
|
+
<kendo-icon-wrapper
|
|
106
|
+
[svgIcon]="closeSVGIconClass" [name]="closeIconClasses"
|
|
107
|
+
innerCssClass="k-button-icon" [customFontClass]="customCloseIconClasses"></kendo-icon-wrapper>
|
|
108
|
+
</span>
|
|
109
|
+
}
|
|
110
|
+
`, 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"] }] });
|
|
106
111
|
}
|
|
107
112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TabComponent, decorators: [{
|
|
108
113
|
type: Component,
|
|
@@ -110,29 +115,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
110
115
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
111
116
|
selector: '[kendoTabStripTab]',
|
|
112
117
|
template: `
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
@if (!tab.tabTemplate) {
|
|
119
|
+
@if (!tab.tabTitle) {
|
|
120
|
+
<span class="k-link">
|
|
121
|
+
<span class="k-link-text">{{ tab.title }}</span>
|
|
116
122
|
</span>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
}
|
|
124
|
+
@if (tab.tabTitle) {
|
|
125
|
+
<span class="k-link">
|
|
126
|
+
<ng-template [ngTemplateOutlet]="tab.tabTitle.templateRef">
|
|
127
|
+
</ng-template>
|
|
120
128
|
</span>
|
|
121
|
-
|
|
129
|
+
}
|
|
130
|
+
} @else {
|
|
131
|
+
<ng-template #tabTemplate [ngTemplateOutlet]="tab.tabTemplate?.templateRef">
|
|
132
|
+
</ng-template>
|
|
133
|
+
}
|
|
122
134
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</span>
|
|
133
|
-
`,
|
|
135
|
+
@if (tabClosable) {
|
|
136
|
+
<span class="k-remove-tab k-icon-button k-button k-button-md k-rounded-md k-button-flat-base k-button-flat"
|
|
137
|
+
(click)="closeTab(index)" [title]="closeButtonTitle">
|
|
138
|
+
<kendo-icon-wrapper
|
|
139
|
+
[svgIcon]="closeSVGIconClass" [name]="closeIconClasses"
|
|
140
|
+
innerCssClass="k-button-icon" [customFontClass]="customCloseIconClasses"></kendo-icon-wrapper>
|
|
141
|
+
</span>
|
|
142
|
+
}
|
|
143
|
+
`,
|
|
134
144
|
standalone: true,
|
|
135
|
-
imports: [
|
|
145
|
+
imports: [NgTemplateOutlet, IconWrapperComponent]
|
|
136
146
|
}]
|
|
137
147
|
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { tab: [{
|
|
138
148
|
type: Input
|