@progress/kendo-vue-layout 2.6.3 → 2.6.4

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 (118) hide show
  1. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  2. package/dist/es/drawer/Drawer.d.ts +47 -0
  3. package/dist/es/drawer/Drawer.js +186 -0
  4. package/dist/es/drawer/DrawerContent.d.ts +36 -0
  5. package/dist/es/drawer/DrawerContent.js +26 -0
  6. package/dist/es/drawer/DrawerItem.d.ts +38 -0
  7. package/dist/es/drawer/DrawerItem.js +108 -0
  8. package/dist/es/drawer/DrawerNavigation.d.ts +45 -0
  9. package/dist/es/drawer/DrawerNavigation.js +182 -0
  10. package/dist/es/drawer/context/DrawerContext.d.ts +17 -0
  11. package/dist/es/drawer/context/DrawerContext.js +13 -0
  12. package/dist/es/drawer/interfaces/DrawerAnimation.d.ts +14 -0
  13. package/dist/es/drawer/interfaces/DrawerAnimation.js +0 -0
  14. package/dist/es/drawer/interfaces/DrawerContentProps.d.ts +5 -0
  15. package/dist/es/drawer/interfaces/DrawerContentProps.js +0 -0
  16. package/dist/es/drawer/interfaces/DrawerItemHandle.d.ts +17 -0
  17. package/dist/es/drawer/interfaces/DrawerItemHandle.js +0 -0
  18. package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +43 -0
  19. package/dist/es/drawer/interfaces/DrawerItemProps.js +0 -0
  20. package/dist/es/drawer/interfaces/DrawerNavigationProps.d.ts +5 -0
  21. package/dist/es/drawer/interfaces/DrawerNavigationProps.js +0 -0
  22. package/dist/es/drawer/interfaces/DrawerProps.d.ts +69 -0
  23. package/dist/es/drawer/interfaces/DrawerProps.js +0 -0
  24. package/dist/es/drawer/interfaces/DrawerSelectEvent.d.ts +13 -0
  25. package/dist/es/drawer/interfaces/DrawerSelectEvent.js +0 -0
  26. package/dist/es/main.d.ts +21 -0
  27. package/dist/es/main.js +21 -0
  28. package/dist/es/menu/MenuProps.d.ts +2 -2
  29. package/dist/es/menu/components/Menu.js +5 -1
  30. package/dist/es/menu/models/BaseMenuItem.d.ts +3 -3
  31. package/dist/es/package-metadata.js +1 -1
  32. package/dist/es/stepper/Step.d.ts +38 -0
  33. package/dist/es/stepper/Step.js +197 -0
  34. package/dist/es/stepper/Stepper.d.ts +39 -0
  35. package/dist/es/stepper/Stepper.js +351 -0
  36. package/dist/es/stepper/contants.d.ts +8 -0
  37. package/dist/es/stepper/contants.js +8 -0
  38. package/dist/es/stepper/context/StepperContext.d.ts +16 -0
  39. package/dist/es/stepper/context/StepperContext.js +8 -0
  40. package/dist/es/stepper/interfaces/StepChangeEvent.d.ts +9 -0
  41. package/dist/es/stepper/interfaces/StepChangeEvent.js +0 -0
  42. package/dist/es/stepper/interfaces/StepFocusEvent.d.ts +5 -0
  43. package/dist/es/stepper/interfaces/StepFocusEvent.js +0 -0
  44. package/dist/es/stepper/interfaces/StepHandle.d.ts +13 -0
  45. package/dist/es/stepper/interfaces/StepHandle.js +3 -0
  46. package/dist/es/stepper/interfaces/StepProps.d.ts +67 -0
  47. package/dist/es/stepper/interfaces/StepProps.js +0 -0
  48. package/dist/es/stepper/interfaces/StepperChangeEvent.d.ts +9 -0
  49. package/dist/es/stepper/interfaces/StepperChangeEvent.js +0 -0
  50. package/dist/es/stepper/interfaces/StepperFocusEvent.d.ts +5 -0
  51. package/dist/es/stepper/interfaces/StepperFocusEvent.js +0 -0
  52. package/dist/es/stepper/interfaces/StepperHandle.d.ts +13 -0
  53. package/dist/es/stepper/interfaces/StepperHandle.js +3 -0
  54. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.d.ts +23 -0
  55. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +15 -0
  56. package/dist/es/stepper/interfaces/StepperProps.d.ts +80 -0
  57. package/dist/es/stepper/interfaces/StepperProps.js +0 -0
  58. package/dist/es/stepper/messages/index.d.ts +10 -0
  59. package/dist/es/stepper/messages/index.js +11 -0
  60. package/dist/npm/drawer/Drawer.d.ts +47 -0
  61. package/dist/npm/drawer/Drawer.js +198 -0
  62. package/dist/npm/drawer/DrawerContent.d.ts +36 -0
  63. package/dist/npm/drawer/DrawerContent.js +36 -0
  64. package/dist/npm/drawer/DrawerItem.d.ts +38 -0
  65. package/dist/npm/drawer/DrawerItem.js +118 -0
  66. package/dist/npm/drawer/DrawerNavigation.d.ts +45 -0
  67. package/dist/npm/drawer/DrawerNavigation.js +193 -0
  68. package/dist/npm/drawer/context/DrawerContext.d.ts +17 -0
  69. package/dist/npm/drawer/context/DrawerContext.js +15 -0
  70. package/dist/npm/drawer/interfaces/DrawerAnimation.d.ts +14 -0
  71. package/dist/npm/drawer/interfaces/DrawerAnimation.js +2 -0
  72. package/dist/npm/drawer/interfaces/DrawerContentProps.d.ts +5 -0
  73. package/dist/npm/drawer/interfaces/DrawerContentProps.js +2 -0
  74. package/dist/npm/drawer/interfaces/DrawerItemHandle.d.ts +17 -0
  75. package/dist/npm/drawer/interfaces/DrawerItemHandle.js +2 -0
  76. package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +43 -0
  77. package/dist/npm/drawer/interfaces/DrawerItemProps.js +2 -0
  78. package/dist/npm/drawer/interfaces/DrawerNavigationProps.d.ts +5 -0
  79. package/dist/npm/drawer/interfaces/DrawerNavigationProps.js +2 -0
  80. package/dist/npm/drawer/interfaces/DrawerProps.d.ts +69 -0
  81. package/dist/npm/drawer/interfaces/DrawerProps.js +2 -0
  82. package/dist/npm/drawer/interfaces/DrawerSelectEvent.d.ts +13 -0
  83. package/dist/npm/drawer/interfaces/DrawerSelectEvent.js +2 -0
  84. package/dist/npm/main.d.ts +21 -0
  85. package/dist/npm/main.js +21 -0
  86. package/dist/npm/menu/MenuProps.d.ts +2 -2
  87. package/dist/npm/menu/components/Menu.js +5 -1
  88. package/dist/npm/menu/models/BaseMenuItem.d.ts +3 -3
  89. package/dist/npm/package-metadata.js +1 -1
  90. package/dist/npm/stepper/Step.d.ts +38 -0
  91. package/dist/npm/stepper/Step.js +210 -0
  92. package/dist/npm/stepper/Stepper.d.ts +39 -0
  93. package/dist/npm/stepper/Stepper.js +366 -0
  94. package/dist/npm/stepper/contants.d.ts +8 -0
  95. package/dist/npm/stepper/contants.js +11 -0
  96. package/dist/npm/stepper/context/StepperContext.d.ts +16 -0
  97. package/dist/npm/stepper/context/StepperContext.js +10 -0
  98. package/dist/npm/stepper/interfaces/StepChangeEvent.d.ts +9 -0
  99. package/dist/npm/stepper/interfaces/StepChangeEvent.js +2 -0
  100. package/dist/npm/stepper/interfaces/StepFocusEvent.d.ts +5 -0
  101. package/dist/npm/stepper/interfaces/StepFocusEvent.js +2 -0
  102. package/dist/npm/stepper/interfaces/StepHandle.d.ts +13 -0
  103. package/dist/npm/stepper/interfaces/StepHandle.js +5 -0
  104. package/dist/npm/stepper/interfaces/StepProps.d.ts +67 -0
  105. package/dist/npm/stepper/interfaces/StepProps.js +2 -0
  106. package/dist/npm/stepper/interfaces/StepperChangeEvent.d.ts +9 -0
  107. package/dist/npm/stepper/interfaces/StepperChangeEvent.js +2 -0
  108. package/dist/npm/stepper/interfaces/StepperFocusEvent.d.ts +5 -0
  109. package/dist/npm/stepper/interfaces/StepperFocusEvent.js +2 -0
  110. package/dist/npm/stepper/interfaces/StepperHandle.d.ts +13 -0
  111. package/dist/npm/stepper/interfaces/StepperHandle.js +5 -0
  112. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.d.ts +23 -0
  113. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +18 -0
  114. package/dist/npm/stepper/interfaces/StepperProps.d.ts +80 -0
  115. package/dist/npm/stepper/interfaces/StepperProps.js +2 -0
  116. package/dist/npm/stepper/messages/index.d.ts +10 -0
  117. package/dist/npm/stepper/messages/index.js +14 -0
  118. package/package.json +11 -9
@@ -0,0 +1,351 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ import { focusFirstFocusableChild, Keys } from '@progress/kendo-vue-common';
6
+ import { Step } from './Step';
7
+ import { ProgressBar } from '@progress/kendo-vue-progressbars';
8
+ import { DEFAULT_ANIMATION_DURATION, NO_ANIMATION } from './contants';
9
+ import { validatePackage, isRtl, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
10
+ import { packageMetadata } from '../package-metadata'; // tslint:enable:max-line-length
11
+
12
+ var Stepper = {
13
+ name: 'KendoStepper',
14
+ props: {
15
+ animationDuration: {
16
+ type: [Boolean, Number],
17
+ default: 400
18
+ },
19
+ dir: String,
20
+ disabled: Boolean,
21
+ item: {
22
+ type: [String, Object, Function, Boolean],
23
+ default: undefined
24
+ },
25
+ items: Array,
26
+ linear: Boolean,
27
+ mode: {
28
+ type: String,
29
+ default: 'steps',
30
+ validator: function validator(value) {
31
+ return ['steps', 'labels'].includes(value);
32
+ }
33
+ },
34
+ orientation: {
35
+ type: String,
36
+ default: 'horizontal',
37
+ validator: function validator(value) {
38
+ return ['horizontal', 'vertical'].includes(value);
39
+ }
40
+ },
41
+ value: {
42
+ type: Number,
43
+ required: true,
44
+ default: 0
45
+ },
46
+ successIcon: String,
47
+ errorIcon: String
48
+ },
49
+ created: function created() {
50
+ validatePackage(packageMetadata);
51
+ this.focusedIdx = this.$props.value;
52
+ },
53
+ mounted: function mounted() {
54
+ this.currentDir = this.$props.dir !== undefined ? this.$props.dir : isRtl(this.$el) ? 'rtl' : 'ltr';
55
+ },
56
+ data: function data() {
57
+ return {
58
+ currentDir: 'ltr',
59
+ focusedIdx: 0,
60
+ stepper: {}
61
+ };
62
+ },
63
+ computed: {
64
+ isVertical: function isVertical() {
65
+ return this.$props.orientation === 'vertical';
66
+ },
67
+ numOfSteps: function numOfSteps() {
68
+ var items = this.$props.items;
69
+ return items ? items.length : 0;
70
+ },
71
+ stepperClasses: function stepperClasses() {
72
+ return {
73
+ 'k-stepper': true,
74
+ 'k-stepper-linear': this.$props.linear
75
+ };
76
+ },
77
+ stepperStyles: function stepperStyles() {
78
+ return {
79
+ display: 'grid',
80
+ gridTemplateColumns: !this.isVertical ? 'repeat(' + this.numOfSteps * 2 + ', 1fr)' : undefined,
81
+ gridTemplateRows: this.isVertical ? 'repeat(' + this.numOfSteps * 4 + ', 1fr)' : undefined
82
+ };
83
+ },
84
+ listClasses: function listClasses() {
85
+ return {
86
+ 'k-step-list': true,
87
+ 'k-step-list-horizontal': !this.isVertical,
88
+ 'k-step-list-vertical': this.isVertical
89
+ };
90
+ },
91
+ listStyles: function listStyles() {
92
+ return {
93
+ gridColumnStart: !this.isVertical ? 1 : undefined,
94
+ gridColumnEnd: !this.isVertical ? -1 : undefined,
95
+ gridRowStart: this.isVertical ? 1 : undefined,
96
+ gridRowEnd: this.isVertical ? -1 : undefined
97
+ };
98
+ },
99
+ progressbarStyles: function progressbarStyles() {
100
+ return {
101
+ gridColumnStart: !this.isVertical ? 2 : undefined,
102
+ gridColumnEnd: !this.isVertical ? this.numOfSteps * 2 : undefined,
103
+ gridRowStart: this.isVertical ? 2 : undefined,
104
+ gridRowEnd: this.isVertical ? this.numOfSteps * 4 - 2 : undefined
105
+ };
106
+ }
107
+ },
108
+ // @ts-ignore
109
+ setup: !gh ? undefined : function () {
110
+ var v3 = !!gh;
111
+ return {
112
+ v3: v3
113
+ };
114
+ },
115
+ // @ts-ignore
116
+ render: function render(createElement) {
117
+ var h = gh || createElement;
118
+ var _a = this.$props,
119
+ animationDuration = _a.animationDuration,
120
+ children = _a.children,
121
+ disabled = _a.disabled,
122
+ items = _a.items,
123
+ orientation = _a.orientation;
124
+ var value = this.$props.value;
125
+ var animation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? DEFAULT_ANIMATION_DURATION : NO_ANIMATION;
126
+ var steps = items && items.map(function (element, index) {
127
+ var step = this.$props.item ? templateRendering.call(this, this.$props.item, getListeners.call(this)) : undefined;
128
+ var stepDefaultRendering = // @ts-ignore
129
+ h(Step, {
130
+ key: index,
131
+ index: index,
132
+ attrs: this.v3 ? undefined : {
133
+ index: index,
134
+ disabled: disabled || element.disabled,
135
+ focused: index === this.focusedIdx,
136
+ current: index === value,
137
+ icon: element.icon,
138
+ label: element.label,
139
+ optional: element.optional,
140
+ text: element.text,
141
+ isValid: element.isValid,
142
+ tabIndex: element.tabIndex,
143
+ animationDuration: this.animationDuration,
144
+ isVertical: this.isVertical,
145
+ item: this.item,
146
+ linear: this.linear,
147
+ mode: this.mode,
148
+ numOfSteps: this.numOfSteps,
149
+ value: this.value,
150
+ successIcon: this.successIcon,
151
+ errorIcon: this.errorIcon
152
+ },
153
+ disabled: disabled || element.disabled,
154
+ focused: index === this.focusedIdx,
155
+ current: index === value,
156
+ onChange: this.handleChange,
157
+ on: this.v3 ? undefined : {
158
+ "change": this.handleChange,
159
+ "focus": this.handleFocus
160
+ },
161
+ onFocus: this.handleFocus,
162
+ "class": element.class,
163
+ style: element.style,
164
+ icon: element.icon,
165
+ label: element.label,
166
+ optional: element.optional,
167
+ text: element.text,
168
+ isValid: element.isValid,
169
+ tabIndex: element.tabIndex,
170
+ animationDuration: this.animationDuration,
171
+ isVertical: this.isVertical,
172
+ item: this.item,
173
+ linear: this.linear,
174
+ mode: this.mode,
175
+ numOfSteps: this.numOfSteps,
176
+ value: this.value,
177
+ successIcon: this.successIcon,
178
+ errorIcon: this.errorIcon
179
+ });
180
+ var stepRendering = getTemplate.call(this, {
181
+ h: h,
182
+ template: step,
183
+ defaultRendering: stepDefaultRendering,
184
+ additionalProps: element,
185
+ additionalListeners: {
186
+ change: this.handleChange,
187
+ focus: this.handleFocus
188
+ }
189
+ });
190
+ return stepRendering;
191
+ }, this);
192
+ return h("nav", {
193
+ "class": this.stepperClasses,
194
+ style: this.stepperStyles,
195
+ dir: this.currentDir,
196
+ attrs: this.v3 ? undefined : {
197
+ dir: this.currentDir
198
+ },
199
+ onKeydown: this.handleKeyDown,
200
+ on: this.v3 ? undefined : {
201
+ "keydown": this.handleKeyDown
202
+ }
203
+ }, [h("ol", {
204
+ "class": this.listClasses,
205
+ style: this.listStyles
206
+ }, [steps ? steps : children]), // @ts-ignore
207
+ h(ProgressBar, {
208
+ style: this.progressbarStyles,
209
+ animation: {
210
+ duration: animation
211
+ },
212
+ attrs: this.v3 ? undefined : {
213
+ animation: {
214
+ duration: animation
215
+ },
216
+ "aria-hidden": true,
217
+ max: this.numOfSteps - 1,
218
+ labelVisible: false,
219
+ orientation: orientation,
220
+ reverse: orientation === 'vertical',
221
+ value: value,
222
+ disabled: disabled,
223
+ tabIndex: -1
224
+ },
225
+ "aria-hidden": true,
226
+ max: this.numOfSteps - 1,
227
+ labelVisible: false,
228
+ orientation: orientation,
229
+ reverse: orientation === 'vertical',
230
+ value: value,
231
+ disabled: disabled,
232
+ tabIndex: -1
233
+ })]);
234
+ },
235
+ methods: {
236
+ focus: function focus() {
237
+ if (this.$el) {
238
+ focusFirstFocusableChild(this.$el);
239
+ }
240
+ },
241
+ dispatchChangeEvent: function dispatchChangeEvent(event, val) {
242
+ var prevIdx = val === this.value - 1;
243
+ var currIdx = val === this.value;
244
+ var nextIdx = val === this.value + 1;
245
+ var allowClick = !this.linear || prevIdx || currIdx || nextIdx;
246
+
247
+ if (this.value !== val && !this.disabled && allowClick) {
248
+ this.focusedIdx = val;
249
+ this.$emit('change', {
250
+ event: event,
251
+ value: val
252
+ });
253
+ }
254
+ },
255
+ handleChange: function handleChange(event) {
256
+ var currentValue = event.value;
257
+ this.dispatchChangeEvent(event, currentValue);
258
+ },
259
+ handleFocus: function handleFocus(event) {
260
+ if (!this.disabled) {
261
+ this.$emit('focus', event, undefined);
262
+ }
263
+ },
264
+ handleEnter: function handleEnter(event) {
265
+ this.dispatchChangeEvent(event, this.focusedIdx);
266
+ },
267
+ handleKeyDown: function handleKeyDown(event) {
268
+ var isCurrentRtl = this.currentDir === 'rtl';
269
+ var currIndex = this.focusedIdx;
270
+ var maxNavIndex = this.items.length - 1;
271
+
272
+ switch (event.keyCode) {
273
+ case Keys.left:
274
+ event.preventDefault();
275
+
276
+ if (!isCurrentRtl && currIndex > 0) {
277
+ this.focusedIdx = currIndex - 1;
278
+ }
279
+
280
+ if (isCurrentRtl && currIndex < maxNavIndex) {
281
+ this.focusedIdx = currIndex + 1;
282
+ }
283
+
284
+ break;
285
+
286
+ case Keys.right:
287
+ event.preventDefault();
288
+
289
+ if (!isCurrentRtl && currIndex < maxNavIndex) {
290
+ this.focusedIdx = currIndex + 1;
291
+ }
292
+
293
+ if (isCurrentRtl && currIndex > 0) {
294
+ this.focusedIdx = currIndex - 1;
295
+ }
296
+
297
+ break;
298
+
299
+ case Keys.up:
300
+ event.preventDefault();
301
+
302
+ if (!isCurrentRtl && currIndex > 0) {
303
+ this.focusedIdx = currIndex - 1;
304
+ }
305
+
306
+ if (isCurrentRtl && currIndex > 0) {
307
+ this.focusedIdx = currIndex - 1;
308
+ }
309
+
310
+ break;
311
+
312
+ case Keys.down:
313
+ event.preventDefault();
314
+
315
+ if (!isCurrentRtl && currIndex < maxNavIndex) {
316
+ this.focusedIdx = currIndex + 1;
317
+ }
318
+
319
+ if (isCurrentRtl && currIndex < maxNavIndex) {
320
+ this.focusedIdx = currIndex + 1;
321
+ }
322
+
323
+ break;
324
+
325
+ case Keys.home:
326
+ event.preventDefault();
327
+ this.focusedIdx = 0;
328
+ break;
329
+
330
+ case Keys.end:
331
+ event.preventDefault();
332
+ this.focusedIdx = maxNavIndex;
333
+ break;
334
+
335
+ case Keys.space:
336
+ case Keys.enter:
337
+ event.preventDefault();
338
+
339
+ if (!this.items[currIndex].disabled) {
340
+ this.handleEnter(event);
341
+ }
342
+
343
+ break;
344
+
345
+ default:
346
+ }
347
+ }
348
+ }
349
+ };
350
+ var StepperVue3 = Stepper;
351
+ export { Stepper, StepperVue3 };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const DEFAULT_ANIMATION_DURATION = 400;
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const NO_ANIMATION = 0;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var DEFAULT_ANIMATION_DURATION = 400;
5
+ /**
6
+ * @hidden
7
+ */
8
+ export var NO_ANIMATION = 0;
@@ -0,0 +1,16 @@
1
+ import { StepChangeEvent } from '../interfaces/StepChangeEvent';
2
+ import { StepFocusEvent } from '../interfaces/StepFocusEvent';
3
+ /** @hidden */
4
+ export declare type StepperContextType = {
5
+ animationDuration?: number | boolean;
6
+ isVertical?: boolean;
7
+ item?: any;
8
+ linear?: boolean;
9
+ mode?: 'steps' | 'labels';
10
+ numOfSteps?: number;
11
+ value: number;
12
+ successIcon?: string;
13
+ errorIcon?: string;
14
+ onChange?: (event: StepChangeEvent) => void;
15
+ onFocus?: (event: StepFocusEvent) => void;
16
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ var defaultContext = {
5
+ linear: false,
6
+ mode: 'steps',
7
+ value: 0
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The arguments for the `onChange` Step event.
3
+ */
4
+ export interface StepChangeEvent {
5
+ /**
6
+ * The index of the selected Step.
7
+ */
8
+ value: number;
9
+ }
File without changes
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The arguments for the `onFocus` Step event.
3
+ */
4
+ export interface StepFocusEvent {
5
+ }
File without changes
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The Step ref.
3
+ */
4
+ export interface StepHandle {
5
+ /**
6
+ * The Step element.
7
+ */
8
+ element: HTMLLIElement | null;
9
+ /**
10
+ * Focus the Step.
11
+ */
12
+ focus: () => void;
13
+ }
@@ -0,0 +1,3 @@
1
+ /**
2
+ * The Step ref.
3
+ */
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Represents the props of the [Kendo UI for Vue Step component]({% slug overview_stepper %}).
3
+ */
4
+ export interface StepProps {
5
+ /**
6
+ * Represents the children that are passed to the Step.
7
+ */
8
+ children?: any;
9
+ /**
10
+ * Specifies a list of CSS classes that will be added to the Step element.
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Represents the content that will be rendered inside each Step.
15
+ *
16
+ * @hidden
17
+ */
18
+ content?: any;
19
+ /**
20
+ * Specifies the current Step.
21
+ */
22
+ current?: boolean;
23
+ /**
24
+ * Sets a custom property.
25
+ */
26
+ [customProp: string]: any;
27
+ /**
28
+ * Specifies if the Step is disabled
29
+ * ([see example]({% slug display_modes_stepper %})).
30
+ */
31
+ disabled?: boolean;
32
+ /**
33
+ * Defines the name for an existing icon in a Kendo UI for Vue theme.
34
+ * The icon is rendered inside the Step indicator by a `span.k-icon` element
35
+ * ([see example]({% slug display_modes_stepper %})).
36
+ */
37
+ icon?: string;
38
+ /**
39
+ * Sets the index of the Step that is used to identify it.
40
+ */
41
+ index?: number;
42
+ /**
43
+ * Specifies the validity of the step
44
+ * ([see example]({% slug display_modes_stepper %})).
45
+ */
46
+ isValid?: boolean;
47
+ /**
48
+ * Specifies the label of the Step
49
+ * ([see example]({% slug display_modes_stepper %})).
50
+ */
51
+ label?: string;
52
+ /**
53
+ * Specifies if the step is optional. The validation is not applied to these steps
54
+ * ([see example]({% slug display_modes_stepper %})).
55
+ */
56
+ optional?: boolean;
57
+ /**
58
+ * Sets the `tabIndex` property of the Step.
59
+ * Defaults to `0`.
60
+ */
61
+ tabIndex?: number;
62
+ /**
63
+ * Specifies the text content of the Step indicator
64
+ * ([see example]({% slug display_modes_stepper %})).
65
+ */
66
+ text?: string;
67
+ }
File without changes
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The arguments for the `onChange` Stepper event.
3
+ */
4
+ export interface StepperChangeEvent {
5
+ /**
6
+ * The index of the selected Step.
7
+ */
8
+ value: number;
9
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The arguments for the `onFocus` Stepper event.
3
+ */
4
+ export interface StepperFocusEvent {
5
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The Stepper ref.
3
+ */
4
+ export interface StepperHandle {
5
+ /**
6
+ * The Stepper element.
7
+ */
8
+ element: HTMLMenuElement | null;
9
+ /**
10
+ * Focus the Stepper's first focusable child.
11
+ */
12
+ focus: () => void;
13
+ }
@@ -0,0 +1,3 @@
1
+ /**
2
+ * The Stepper ref.
3
+ */
@@ -0,0 +1,23 @@
1
+ import { StepperHandle } from './../interfaces/StepperHandle';
2
+ /**
3
+ * The `StepperOnNavigateEvent` event.
4
+ */
5
+ export declare class StepperOnNavigateEvent {
6
+ /**
7
+ * The Stepper component.
8
+ */
9
+ target: StepperHandle;
10
+ event: any;
11
+ /**
12
+ * The previous index of the Step.
13
+ */
14
+ prevIndex: number;
15
+ /**
16
+ * The new index of the Step.
17
+ */
18
+ nextIndex: number;
19
+ /**
20
+ * @hidden
21
+ */
22
+ constructor(target: StepperHandle, prevIndex: number, nextIndex: number);
23
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The `StepperOnNavigateEvent` event.
3
+ */
4
+ var StepperOnNavigateEvent = /** @class */ (function () {
5
+ /**
6
+ * @hidden
7
+ */
8
+ function StepperOnNavigateEvent(target, prevIndex, nextIndex) {
9
+ this.target = target;
10
+ this.prevIndex = prevIndex;
11
+ this.nextIndex = nextIndex;
12
+ }
13
+ return StepperOnNavigateEvent;
14
+ }());
15
+ export { StepperOnNavigateEvent };
@@ -0,0 +1,80 @@
1
+ import { StepProps } from './StepProps';
2
+ import { StepperChangeEvent } from './StepperChangeEvent';
3
+ import { StepperFocusEvent } from './StepperFocusEvent';
4
+ /**
5
+ * Represents the props of the [Kendo UI for Vue Stepper component]({% slug overview_stepper %}).
6
+ */
7
+ export interface StepperProps {
8
+ /**
9
+ * Sets the duration of the Stepper animation. Defaults to `400ms`.
10
+ */
11
+ animationDuration?: boolean | number;
12
+ /**
13
+ * Represents the children that are passed to the Stepper.
14
+ */
15
+ children?: any;
16
+ /**
17
+ * Specifies a list of CSS classes that will be added to the Stepper.
18
+ */
19
+ className?: string;
20
+ /**
21
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
22
+ */
23
+ dir?: string;
24
+ /**
25
+ * Disables the whole Stepper.
26
+ */
27
+ disabled?: boolean;
28
+ /**
29
+ * Specifies a custom icon that will be rendered inside the step for invalid steps.
30
+ */
31
+ errorIcon?: string;
32
+ /**
33
+ * Overrides the default component responsible for visualizing a single item ([see example]({% slug custom_rendering_stepper %})).
34
+ *
35
+ * The default Component is: [Step]({% slug api_layout_step %}).
36
+ */
37
+ item?: any;
38
+ /**
39
+ * The collection of steps that will be rendered in the Stepper ([see example]({% slug overview_stepper %})).
40
+ */
41
+ items: Array<StepProps>;
42
+ /**
43
+ * Specifies the linear flow of the Stepper.
44
+ * ([see example]({% slug linear_mode_stepper %})).
45
+ */
46
+ linear?: boolean;
47
+ /**
48
+ * Specifies the display mode of the Stepper
49
+ * ([see example]({% slug display_modes_stepper %})).
50
+ * * The possible values are:
51
+ * * (Default) `steps`. Render step indicator and optional label.
52
+ * * `labels`. Render labels only.
53
+ */
54
+ mode?: 'steps' | 'labels' | string;
55
+ /**
56
+ * Specifies the orientation of the Stepper
57
+ * ([see example]({% slug orientation_stepper %})).
58
+ *
59
+ * The possible values are:
60
+ * * (Default) `horizontal`
61
+ * * `vertical`
62
+ */
63
+ orientation?: 'horizontal' | 'vertical' | string;
64
+ /**
65
+ * Specifies a custom icon that will be rendered inside the step for valid steps.
66
+ */
67
+ successIcon?: string;
68
+ /**
69
+ * Specifies the index of the selected Step.
70
+ */
71
+ value: number;
72
+ /**
73
+ * The event handler that will be fired when the value is changed.
74
+ */
75
+ onChange?: (event: StepperChangeEvent) => void;
76
+ /**
77
+ * The event handler that will be fired when a Step is focused.
78
+ */
79
+ onFocus?: (event: StepperFocusEvent) => void;
80
+ }
File without changes
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const optionalText = "stepper.optionalText";
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const messages: {
9
+ "stepper.optionalText": string;
10
+ };