@syncfusion/ej2-navigations 30.2.5 → 31.1.17
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/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +1 -0
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +1 -0
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/accordion/accordion-model.d.ts +285 -0
- package/dist/ts/accordion/accordion.d.ts +458 -0
- package/dist/ts/accordion/accordion.ts +1580 -0
- package/dist/ts/accordion/index.d.ts +5 -0
- package/dist/ts/accordion/index.ts +5 -0
- package/dist/ts/appbar/appbar-model.d.ts +76 -0
- package/dist/ts/appbar/appbar.d.ts +115 -0
- package/dist/ts/appbar/appbar.ts +281 -0
- package/dist/ts/appbar/index.d.ts +3 -0
- package/dist/ts/appbar/index.ts +3 -0
- package/dist/ts/breadcrumb/breadcrumb-model.d.ts +170 -0
- package/dist/ts/breadcrumb/breadcrumb.d.ts +297 -0
- package/dist/ts/breadcrumb/breadcrumb.ts +959 -0
- package/dist/ts/breadcrumb/index.d.ts +5 -0
- package/dist/ts/breadcrumb/index.ts +5 -0
- package/dist/ts/carousel/carousel-model.d.ts +282 -0
- package/dist/ts/carousel/carousel.d.ts +439 -0
- package/dist/ts/carousel/carousel.ts +1633 -0
- package/dist/ts/carousel/index.d.ts +3 -0
- package/dist/ts/carousel/index.ts +3 -0
- package/dist/ts/common/h-scroll-model.d.ts +16 -0
- package/dist/ts/common/h-scroll.d.ts +105 -0
- package/dist/ts/common/h-scroll.ts +481 -0
- package/dist/ts/common/index.d.ts +9 -0
- package/dist/ts/common/index.ts +10 -0
- package/dist/ts/common/menu-base-model.d.ts +308 -0
- package/dist/ts/common/menu-base.d.ts +558 -0
- package/dist/ts/common/menu-base.ts +2736 -0
- package/dist/ts/common/menu-scroll.d.ts +29 -0
- package/dist/ts/common/menu-scroll.ts +105 -0
- package/dist/ts/common/v-scroll-model.d.ts +16 -0
- package/dist/ts/common/v-scroll.d.ts +106 -0
- package/dist/ts/common/v-scroll.ts +454 -0
- package/dist/ts/context-menu/context-menu-model.d.ts +47 -0
- package/dist/ts/context-menu/context-menu.d.ts +102 -0
- package/dist/ts/context-menu/context-menu.ts +165 -0
- package/dist/ts/context-menu/index.d.ts +5 -0
- package/dist/ts/context-menu/index.ts +5 -0
- package/dist/ts/index.d.ts +16 -0
- package/dist/ts/index.ts +16 -0
- package/dist/ts/menu/index.d.ts +5 -0
- package/dist/ts/menu/index.ts +5 -0
- package/dist/ts/menu/menu-model.d.ts +70 -0
- package/dist/ts/menu/menu.d.ts +127 -0
- package/dist/ts/menu/menu.ts +313 -0
- package/dist/ts/sidebar/index.d.ts +5 -0
- package/dist/ts/sidebar/index.ts +5 -0
- package/dist/ts/sidebar/sidebar-model.d.ts +200 -0
- package/dist/ts/sidebar/sidebar.d.ts +336 -0
- package/dist/ts/sidebar/sidebar.ts +907 -0
- package/dist/ts/stepper/index.d.ts +3 -0
- package/dist/ts/stepper/index.ts +3 -0
- package/dist/ts/stepper/stepper-model.d.ts +159 -0
- package/dist/ts/stepper/stepper.d.ts +381 -0
- package/dist/ts/stepper/stepper.ts +1350 -0
- package/dist/ts/stepper-base/index.d.ts +5 -0
- package/dist/ts/stepper-base/index.ts +6 -0
- package/dist/ts/stepper-base/stepper-base-model.d.ts +124 -0
- package/dist/ts/stepper-base/stepper-base.d.ts +187 -0
- package/dist/ts/stepper-base/stepper-base.ts +290 -0
- package/dist/ts/tab/index.d.ts +5 -0
- package/dist/ts/tab/index.ts +5 -0
- package/dist/ts/tab/tab-model.d.ts +408 -0
- package/dist/ts/tab/tab.d.ts +715 -0
- package/dist/ts/tab/tab.ts +2842 -0
- package/dist/ts/toolbar/index.d.ts +5 -0
- package/dist/ts/toolbar/index.ts +5 -0
- package/dist/ts/toolbar/toolbar-model.d.ts +294 -0
- package/dist/ts/toolbar/toolbar.d.ts +541 -0
- package/dist/ts/toolbar/toolbar.ts +2646 -0
- package/dist/ts/treeview/index.d.ts +5 -0
- package/dist/ts/treeview/index.ts +5 -0
- package/dist/ts/treeview/treeview-model.d.ts +637 -0
- package/dist/ts/treeview/treeview.d.ts +1518 -0
- package/dist/ts/treeview/treeview.ts +6780 -0
- package/package.json +70 -17
- package/src/context-menu/context-menu-model.d.ts +1 -1
- package/src/context-menu/context-menu.js +1 -1
- package/src/tab/tab.js +1 -0
- package/styles/accordion/_bootstrap-dark-definition.scss +1 -1
- package/styles/accordion/_bootstrap-definition.scss +1 -1
- package/styles/accordion/bootstrap-dark.css +1 -1
- package/styles/accordion/bootstrap.css +1 -1
- package/styles/bds-lite.css +1 -1
- package/styles/bds.css +1 -1
- package/styles/bootstrap-dark-lite.css +2 -2
- package/styles/bootstrap-dark.css +2 -2
- package/styles/bootstrap-lite.css +2 -2
- package/styles/bootstrap.css +2 -2
- package/styles/bootstrap4-lite.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark-lite.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5-lite.css +1 -1
- package/styles/bootstrap5.3-lite.css +1 -1
- package/styles/bootstrap5.3.css +9 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark-lite.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric-lite.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark-lite.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent-lite.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/fluent2-lite.css +4 -1
- package/styles/fluent2.css +4 -1
- package/styles/h-scroll/_layout.scss +1 -1
- package/styles/h-scroll/bds.css +1 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.3.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/fluent2.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/material3-dark.css +1 -1
- package/styles/h-scroll/material3.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/h-scroll/tailwind3.css +1 -1
- package/styles/highcontrast-light-lite.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast-lite.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark-lite.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material-lite.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark-lite.css +1 -1
- package/styles/material3-dark.css +1 -7
- package/styles/material3-lite.css +1 -1
- package/styles/material3.css +1 -7
- package/styles/tailwind-dark-lite.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind-lite.css +1 -1
- package/styles/tailwind.css +1 -1
- package/styles/tailwind3-lite.css +1 -1
- package/styles/tailwind3.css +1 -1
- package/styles/toolbar/_layout.scss +1 -1
- package/styles/treeview/_bigger.scss +2 -2
- package/styles/treeview/_bootstrap5.3-definition.scss +1 -0
- package/styles/treeview/_layout.scss +3 -0
- package/styles/treeview/bootstrap5.3.css +8 -0
- package/styles/treeview/fluent2.css +3 -0
- package/styles/treeview/material3-dark.css +0 -6
- package/styles/treeview/material3.css +0 -6
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { INotifyPropertyChanged, attributes, NotifyPropertyChanges, L10n, append, isNullOrUndefined, getUniqueID, Complex, KeyboardEvents, KeyboardEventArgs, ChildProperty, Property, EventHandler, Event, EmitType, BaseEventArgs, addClass, remove, removeClass, initializeCSPTemplate, select, compile } from '@syncfusion/ej2-base';
|
|
2
|
+
import {StepLabelPosition,StepType,StepperChangedEventArgs,StepperChangingEventArgs,StepperClickEventArgs,StepperRenderingEventArgs} from "./stepper";
|
|
3
|
+
import {StepperBaseModel} from "../stepper-base/stepper-base-model";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for a class StepperAnimationSettings
|
|
7
|
+
*/
|
|
8
|
+
export interface StepperAnimationSettingsModel {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines whether a animation is enabled or disabled.
|
|
12
|
+
*
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
enable?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* duration in milliseconds
|
|
19
|
+
*
|
|
20
|
+
* @default 2000
|
|
21
|
+
* @aspType int
|
|
22
|
+
*/
|
|
23
|
+
duration?: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* delay in milliseconds
|
|
27
|
+
*
|
|
28
|
+
* @default 0
|
|
29
|
+
* @aspType int
|
|
30
|
+
*/
|
|
31
|
+
delay?: number;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Interface for a class Stepper
|
|
37
|
+
*/
|
|
38
|
+
export interface StepperModel extends StepperBaseModel{
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Defines the current step index of the Stepper.
|
|
42
|
+
*
|
|
43
|
+
* {% codeBlock src='stepper/activeStep/index.md' %}{% endcodeBlock %}
|
|
44
|
+
*
|
|
45
|
+
* @default 0
|
|
46
|
+
* @aspType int
|
|
47
|
+
*/
|
|
48
|
+
activeStep?: number;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Defines the step progress animation of the Stepper.
|
|
52
|
+
*
|
|
53
|
+
* {% codeBlock src='stepper/animation/index.md' %}{% endcodeBlock %}
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
animation?: StepperAnimationSettingsModel;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Defines whether allows to complete one step in order to move to the next or not.
|
|
60
|
+
*
|
|
61
|
+
* {% codeBlock src='stepper/linear/index.md' %}{% endcodeBlock %}
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
linear?: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Defines a value that defines whether to show tooltip or not on each step.
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
showTooltip?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Defines the template content for each step.
|
|
76
|
+
*
|
|
77
|
+
* {% codeBlock src='stepper/template/index.md' %}{% endcodeBlock %}
|
|
78
|
+
*
|
|
79
|
+
* @default ''
|
|
80
|
+
* @angularType string | object
|
|
81
|
+
* @reactType string | function | JSX.Element
|
|
82
|
+
* @vueType string | function
|
|
83
|
+
* @aspType string
|
|
84
|
+
*/
|
|
85
|
+
template?: string | Function;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Defines the template content for the tooltip.
|
|
89
|
+
*
|
|
90
|
+
* @default ''
|
|
91
|
+
* @angularType string | object
|
|
92
|
+
* @reactType string | function | JSX.Element
|
|
93
|
+
* @vueType string | function
|
|
94
|
+
* @aspType string
|
|
95
|
+
*/
|
|
96
|
+
tooltipTemplate?: string | Function;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Defines the label position in the Stepper.
|
|
100
|
+
*
|
|
101
|
+
* The possible values are:
|
|
102
|
+
* * Top
|
|
103
|
+
* * Bottom
|
|
104
|
+
* * Start
|
|
105
|
+
* * End
|
|
106
|
+
*
|
|
107
|
+
* {% codeBlock src='stepper/labelPosition/index.md' %}{% endcodeBlock %}
|
|
108
|
+
*
|
|
109
|
+
* @isenumeration true
|
|
110
|
+
* @default StepLabelPosition.Bottom
|
|
111
|
+
* @asptype StepLabelPosition
|
|
112
|
+
*/
|
|
113
|
+
labelPosition?: string | StepLabelPosition;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
117
|
+
*
|
|
118
|
+
* The possible values are:
|
|
119
|
+
* * Default
|
|
120
|
+
* * Label
|
|
121
|
+
* * Indicator
|
|
122
|
+
*
|
|
123
|
+
* {% codeBlock src='stepper/stepType/index.md' %}{% endcodeBlock %}
|
|
124
|
+
*
|
|
125
|
+
* @isenumeration true
|
|
126
|
+
* @default StepType.Default
|
|
127
|
+
* @asptype StepType
|
|
128
|
+
*/
|
|
129
|
+
stepType?: string | StepType;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Event triggers after active step changed.
|
|
133
|
+
*
|
|
134
|
+
* @event stepChanged
|
|
135
|
+
*/
|
|
136
|
+
stepChanged?: EmitType<StepperChangedEventArgs>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Event triggers before active step change.
|
|
140
|
+
*
|
|
141
|
+
* @event stepChanging
|
|
142
|
+
*/
|
|
143
|
+
stepChanging?: EmitType<StepperChangingEventArgs>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Event triggers when clicked on step.
|
|
147
|
+
*
|
|
148
|
+
* @event stepClick
|
|
149
|
+
*/
|
|
150
|
+
stepClick?: EmitType<StepperClickEventArgs>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Event triggers before rendering each step.
|
|
154
|
+
*
|
|
155
|
+
* @event beforeStepRender
|
|
156
|
+
*/
|
|
157
|
+
beforeStepRender?: EmitType<StepperRenderingEventArgs>;
|
|
158
|
+
|
|
159
|
+
}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
/// <reference path="../stepper-base/stepper-base-model.d.ts" />
|
|
2
|
+
import { INotifyPropertyChanged, ChildProperty, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
3
|
+
import { StepperBase } from '../stepper-base/stepper-base';
|
|
4
|
+
import { StepperModel, StepperAnimationSettingsModel } from '../stepper';
|
|
5
|
+
/**
|
|
6
|
+
* Defines the step progress animation of the Stepper.
|
|
7
|
+
*/
|
|
8
|
+
export declare class StepperAnimationSettings extends ChildProperty<StepperAnimationSettings> {
|
|
9
|
+
/**
|
|
10
|
+
* Defines whether a animation is enabled or disabled.
|
|
11
|
+
*
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
enable: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* duration in milliseconds
|
|
17
|
+
*
|
|
18
|
+
* @default 2000
|
|
19
|
+
* @aspType int
|
|
20
|
+
*/
|
|
21
|
+
duration: number;
|
|
22
|
+
/**
|
|
23
|
+
* delay in milliseconds
|
|
24
|
+
*
|
|
25
|
+
* @default 0
|
|
26
|
+
* @aspType int
|
|
27
|
+
*/
|
|
28
|
+
delay: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Defines the label position in the Stepper.
|
|
32
|
+
*/
|
|
33
|
+
export declare enum StepLabelPosition {
|
|
34
|
+
/**
|
|
35
|
+
* Displays the label on top position regardless of the Stepper's orientation.
|
|
36
|
+
*/
|
|
37
|
+
Top = "Top",
|
|
38
|
+
/**
|
|
39
|
+
* Displays the label on bottom position regardless of the Stepper's orientation.
|
|
40
|
+
*/
|
|
41
|
+
Bottom = "Bottom",
|
|
42
|
+
/**
|
|
43
|
+
* Displays the label on left side regardless of the Stepper's orientation.
|
|
44
|
+
*/
|
|
45
|
+
Start = "Start",
|
|
46
|
+
/**
|
|
47
|
+
* Displays the label on right side regardless of the Stepper's orientation.
|
|
48
|
+
*/
|
|
49
|
+
End = "End"
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
53
|
+
*/
|
|
54
|
+
export declare enum StepType {
|
|
55
|
+
/**
|
|
56
|
+
* Steps are shown indicator with label defined.
|
|
57
|
+
*/
|
|
58
|
+
Default = "Default",
|
|
59
|
+
/**
|
|
60
|
+
* Steps are shown with only label.
|
|
61
|
+
*/
|
|
62
|
+
Label = "Label",
|
|
63
|
+
/**
|
|
64
|
+
* Steps are shown with only indicator.
|
|
65
|
+
*/
|
|
66
|
+
Indicator = "Indicator"
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Provides information about stepChanged event callback.
|
|
70
|
+
*/
|
|
71
|
+
export interface StepperChangedEventArgs extends BaseEventArgs {
|
|
72
|
+
/**
|
|
73
|
+
* Provides the original event.
|
|
74
|
+
*/
|
|
75
|
+
event: Event;
|
|
76
|
+
/**
|
|
77
|
+
* Provides whether the change is triggered by user interaction.
|
|
78
|
+
*/
|
|
79
|
+
isInteracted: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Provides the index of the previous step.
|
|
82
|
+
*/
|
|
83
|
+
previousStep: number;
|
|
84
|
+
/**
|
|
85
|
+
* Provides the index of the current step.
|
|
86
|
+
*/
|
|
87
|
+
activeStep: number;
|
|
88
|
+
/**
|
|
89
|
+
* Provides the stepper element.
|
|
90
|
+
*/
|
|
91
|
+
element: HTMLElement;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Provides information about stepChanging event callback.
|
|
95
|
+
*/
|
|
96
|
+
export interface StepperChangingEventArgs extends StepperChangedEventArgs {
|
|
97
|
+
/**
|
|
98
|
+
* Provides whether the change has been prevented or not. Default value is false.
|
|
99
|
+
*/
|
|
100
|
+
cancel: boolean;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Provides information about stepClick event callback.
|
|
104
|
+
*/
|
|
105
|
+
export interface StepperClickEventArgs extends BaseEventArgs {
|
|
106
|
+
/**
|
|
107
|
+
* Provides the original event.
|
|
108
|
+
*/
|
|
109
|
+
event: Event;
|
|
110
|
+
/**
|
|
111
|
+
* Provides the index of the previous step.
|
|
112
|
+
*/
|
|
113
|
+
previousStep: number;
|
|
114
|
+
/**
|
|
115
|
+
* Provides the index of the current step.
|
|
116
|
+
*/
|
|
117
|
+
activeStep: number;
|
|
118
|
+
/**
|
|
119
|
+
* Provides the stepper element.
|
|
120
|
+
*/
|
|
121
|
+
element: HTMLElement;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Provides information about beforeStepRender event callback.
|
|
125
|
+
*/
|
|
126
|
+
export interface StepperRenderingEventArgs extends BaseEventArgs {
|
|
127
|
+
/**
|
|
128
|
+
* Provides the stepper element.
|
|
129
|
+
*/
|
|
130
|
+
element: HTMLElement;
|
|
131
|
+
/**
|
|
132
|
+
* Provides the index of the current step.
|
|
133
|
+
*/
|
|
134
|
+
index: number;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The Stepper component visualizes several steps and indicates the current progress by highlighting already completed steps.
|
|
138
|
+
*
|
|
139
|
+
* ```html
|
|
140
|
+
* <nav id="stepper"></nav>
|
|
141
|
+
* ```
|
|
142
|
+
* ```typescript
|
|
143
|
+
* <script>
|
|
144
|
+
* let stepperObj: Stepper = new Stepper({steps : [{}, {}, {}, {}, {}]});
|
|
145
|
+
* stepperObj.appendTo('#stepper');
|
|
146
|
+
* </script>
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
export declare class Stepper extends StepperBase implements INotifyPropertyChanged {
|
|
150
|
+
/**
|
|
151
|
+
* Defines the current step index of the Stepper.
|
|
152
|
+
*
|
|
153
|
+
* {% codeBlock src='stepper/activeStep/index.md' %}{% endcodeBlock %}
|
|
154
|
+
*
|
|
155
|
+
* @default 0
|
|
156
|
+
* @aspType int
|
|
157
|
+
*/
|
|
158
|
+
activeStep: number;
|
|
159
|
+
/**
|
|
160
|
+
* Defines the step progress animation of the Stepper.
|
|
161
|
+
*
|
|
162
|
+
* {% codeBlock src='stepper/animation/index.md' %}{% endcodeBlock %}
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
animation: StepperAnimationSettingsModel;
|
|
166
|
+
/**
|
|
167
|
+
* Defines whether allows to complete one step in order to move to the next or not.
|
|
168
|
+
*
|
|
169
|
+
* {% codeBlock src='stepper/linear/index.md' %}{% endcodeBlock %}
|
|
170
|
+
*
|
|
171
|
+
* @default false
|
|
172
|
+
*/
|
|
173
|
+
linear: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Defines a value that defines whether to show tooltip or not on each step.
|
|
176
|
+
*
|
|
177
|
+
* @default false
|
|
178
|
+
*/
|
|
179
|
+
showTooltip: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Defines the template content for each step.
|
|
182
|
+
*
|
|
183
|
+
* {% codeBlock src='stepper/template/index.md' %}{% endcodeBlock %}
|
|
184
|
+
*
|
|
185
|
+
* @default ''
|
|
186
|
+
* @angularType string | object
|
|
187
|
+
* @reactType string | function | JSX.Element
|
|
188
|
+
* @vueType string | function
|
|
189
|
+
* @aspType string
|
|
190
|
+
*/
|
|
191
|
+
template: string | Function;
|
|
192
|
+
/**
|
|
193
|
+
* Defines the template content for the tooltip.
|
|
194
|
+
*
|
|
195
|
+
* @default ''
|
|
196
|
+
* @angularType string | object
|
|
197
|
+
* @reactType string | function | JSX.Element
|
|
198
|
+
* @vueType string | function
|
|
199
|
+
* @aspType string
|
|
200
|
+
*/
|
|
201
|
+
tooltipTemplate: string | Function;
|
|
202
|
+
/**
|
|
203
|
+
* Defines the label position in the Stepper.
|
|
204
|
+
*
|
|
205
|
+
* The possible values are:
|
|
206
|
+
* * Top
|
|
207
|
+
* * Bottom
|
|
208
|
+
* * Start
|
|
209
|
+
* * End
|
|
210
|
+
*
|
|
211
|
+
* {% codeBlock src='stepper/labelPosition/index.md' %}{% endcodeBlock %}
|
|
212
|
+
*
|
|
213
|
+
* @isenumeration true
|
|
214
|
+
* @default StepLabelPosition.Bottom
|
|
215
|
+
* @asptype StepLabelPosition
|
|
216
|
+
*/
|
|
217
|
+
labelPosition: string | StepLabelPosition;
|
|
218
|
+
/**
|
|
219
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
220
|
+
*
|
|
221
|
+
* The possible values are:
|
|
222
|
+
* * Default
|
|
223
|
+
* * Label
|
|
224
|
+
* * Indicator
|
|
225
|
+
*
|
|
226
|
+
* {% codeBlock src='stepper/stepType/index.md' %}{% endcodeBlock %}
|
|
227
|
+
*
|
|
228
|
+
* @isenumeration true
|
|
229
|
+
* @default StepType.Default
|
|
230
|
+
* @asptype StepType
|
|
231
|
+
*/
|
|
232
|
+
stepType: string | StepType;
|
|
233
|
+
/**
|
|
234
|
+
* Event triggers after active step changed.
|
|
235
|
+
*
|
|
236
|
+
* @event stepChanged
|
|
237
|
+
*/
|
|
238
|
+
stepChanged: EmitType<StepperChangedEventArgs>;
|
|
239
|
+
/**
|
|
240
|
+
* Event triggers before active step change.
|
|
241
|
+
*
|
|
242
|
+
* @event stepChanging
|
|
243
|
+
*/
|
|
244
|
+
stepChanging: EmitType<StepperChangingEventArgs>;
|
|
245
|
+
/**
|
|
246
|
+
* Event triggers when clicked on step.
|
|
247
|
+
*
|
|
248
|
+
* @event stepClick
|
|
249
|
+
*/
|
|
250
|
+
stepClick: EmitType<StepperClickEventArgs>;
|
|
251
|
+
/**
|
|
252
|
+
* Event triggers before rendering each step.
|
|
253
|
+
*
|
|
254
|
+
* @event beforeStepRender
|
|
255
|
+
*/
|
|
256
|
+
beforeStepRender: EmitType<StepperRenderingEventArgs>;
|
|
257
|
+
private stepperItemList;
|
|
258
|
+
private stepperItemContainer;
|
|
259
|
+
private labelContainer;
|
|
260
|
+
private textContainer;
|
|
261
|
+
private stepperItemElements;
|
|
262
|
+
private beforeLabelWidth;
|
|
263
|
+
private textEleWidth;
|
|
264
|
+
private tooltipObj;
|
|
265
|
+
private tooltipOpen;
|
|
266
|
+
private templateFunction;
|
|
267
|
+
private keyboardModuleStepper;
|
|
268
|
+
private keyConfigs;
|
|
269
|
+
private l10n;
|
|
270
|
+
private isKeyNavFocus;
|
|
271
|
+
/**
|
|
272
|
+
* * Constructor for creating the Stepper component.
|
|
273
|
+
*
|
|
274
|
+
* @param {StepperModel} options - Specifies the Stepper model.
|
|
275
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
276
|
+
* @private
|
|
277
|
+
*/
|
|
278
|
+
constructor(options?: StepperModel, element?: string | HTMLElement);
|
|
279
|
+
protected preRender(): void;
|
|
280
|
+
/**
|
|
281
|
+
* To get component name.
|
|
282
|
+
*
|
|
283
|
+
* @returns {string} - It returns the current module name.
|
|
284
|
+
* @private
|
|
285
|
+
*/
|
|
286
|
+
getModuleName(): string;
|
|
287
|
+
protected render(): void;
|
|
288
|
+
private initialize;
|
|
289
|
+
private initiateProgressBar;
|
|
290
|
+
private updatePosition;
|
|
291
|
+
private renderDefault;
|
|
292
|
+
private updateAnimation;
|
|
293
|
+
private updateStepType;
|
|
294
|
+
private wireEvents;
|
|
295
|
+
private unWireEvents;
|
|
296
|
+
private updateResize;
|
|
297
|
+
private updateStepFocus;
|
|
298
|
+
private updateStepperStatus;
|
|
299
|
+
private updateStatusClass;
|
|
300
|
+
private renderItems;
|
|
301
|
+
private createTextLabelElement;
|
|
302
|
+
private calculateProgressBarPosition;
|
|
303
|
+
private checkValidState;
|
|
304
|
+
private updateCurrentLabel;
|
|
305
|
+
private updateLabelPosition;
|
|
306
|
+
private clearLabelPosition;
|
|
307
|
+
private checkValidStep;
|
|
308
|
+
private updateTooltip;
|
|
309
|
+
private wireItemsEvents;
|
|
310
|
+
private unWireItemsEvents;
|
|
311
|
+
private linearModeHandler;
|
|
312
|
+
private openStepperTooltip;
|
|
313
|
+
private closeStepperTooltip;
|
|
314
|
+
private updateTooltipContent;
|
|
315
|
+
private stepClickHandler;
|
|
316
|
+
private updateTemplateFunction;
|
|
317
|
+
private renderItemContent;
|
|
318
|
+
private removeItemContent;
|
|
319
|
+
private updateContent;
|
|
320
|
+
/**
|
|
321
|
+
* Gets template content based on the template property value.
|
|
322
|
+
*
|
|
323
|
+
* @param {string | Function} template - Template property value.
|
|
324
|
+
* @returns {Function} - Return template function.
|
|
325
|
+
* @hidden
|
|
326
|
+
*/
|
|
327
|
+
private getTemplateFunction;
|
|
328
|
+
private navigateToStep;
|
|
329
|
+
private navigationHandler;
|
|
330
|
+
private calculateProgressbarPos;
|
|
331
|
+
private updateIndicatorStatus;
|
|
332
|
+
private updateStepInteractions;
|
|
333
|
+
private removeItemElements;
|
|
334
|
+
/**
|
|
335
|
+
* Move to next step from current step in Stepper.
|
|
336
|
+
*
|
|
337
|
+
* @returns {void}
|
|
338
|
+
*/
|
|
339
|
+
nextStep(): void;
|
|
340
|
+
/**
|
|
341
|
+
* Move to previous step from current step in Stepper.
|
|
342
|
+
*
|
|
343
|
+
* @returns {void}
|
|
344
|
+
*/
|
|
345
|
+
previousStep(): void;
|
|
346
|
+
/**
|
|
347
|
+
* Reset the state of the Stepper and move to the first step.
|
|
348
|
+
*
|
|
349
|
+
* @returns {void}
|
|
350
|
+
*/
|
|
351
|
+
reset(): void;
|
|
352
|
+
/**
|
|
353
|
+
* Refreshes the position of the progress bar programmatically when the dimensions of the parent container are changed.
|
|
354
|
+
*
|
|
355
|
+
* @returns {void}
|
|
356
|
+
*/
|
|
357
|
+
refreshProgressbar(): void;
|
|
358
|
+
private updateElementClassArray;
|
|
359
|
+
/**
|
|
360
|
+
* Destroy the stepper control.
|
|
361
|
+
*
|
|
362
|
+
* @returns {void}
|
|
363
|
+
*/
|
|
364
|
+
destroy(): void;
|
|
365
|
+
private wireKeyboardEvent;
|
|
366
|
+
private keyActionHandler;
|
|
367
|
+
private handleNavigation;
|
|
368
|
+
private renderStepperItems;
|
|
369
|
+
private updateDynamicSteps;
|
|
370
|
+
private updateDynamicActiveStep;
|
|
371
|
+
private updateDynamicCssClass;
|
|
372
|
+
/**
|
|
373
|
+
* Called internally if any of the property value changed.
|
|
374
|
+
*
|
|
375
|
+
* @param {StepperModel} newProp - Specifies new properties
|
|
376
|
+
* @param {StepperModel} oldProp - Specifies old properties
|
|
377
|
+
* @returns {void}
|
|
378
|
+
* @private
|
|
379
|
+
*/
|
|
380
|
+
onPropertyChanged(newProp: StepperModel, oldProp?: StepperModel): void;
|
|
381
|
+
}
|