@syncfusion/ej2-navigations 23.2.5 → 24.1.41
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/CHANGELOG.md +14 -0
- 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 +1351 -22
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +1399 -22
- 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/package.json +12 -12
- package/src/breadcrumb/breadcrumb.js +6 -1
- package/src/carousel/carousel.js +3 -3
- package/src/common/menu-base.js +4 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/stepper/index.d.ts +3 -0
- package/src/stepper/index.js +2 -0
- package/src/stepper/stepper-model.d.ts +153 -0
- package/src/stepper/stepper.d.ts +339 -0
- package/src/stepper/stepper.js +1149 -0
- package/src/stepper-base/index.d.ts +5 -0
- package/src/stepper-base/index.js +4 -0
- package/src/stepper-base/stepper-base-model.d.ts +121 -0
- package/src/stepper-base/stepper-base.d.ts +184 -0
- package/src/stepper-base/stepper-base.js +221 -0
- package/src/tab/tab.js +0 -1
- package/src/toolbar/toolbar.js +4 -0
- package/src/treeview/treeview.js +10 -15
- package/stepper-base.d.ts +4 -0
- package/stepper-base.js +4 -0
- package/stepper.d.ts +4 -0
- package/stepper.js +4 -0
- package/styles/bootstrap-dark.css +753 -1
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +753 -1
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +753 -1
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +754 -2
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +754 -2
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.css +752 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +752 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +753 -1
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +753 -1
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +753 -1
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +753 -1
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +753 -1
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +753 -1
- package/styles/material.scss +1 -0
- package/styles/material3-dark.css +752 -0
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.css +752 -0
- package/styles/material3.scss +1 -0
- package/styles/pager/_bootstrap-dark-definition.scss +16 -0
- package/styles/pager/_bootstrap-definition.scss +16 -0
- package/styles/pager/_bootstrap4-definition.scss +16 -0
- package/styles/pager/_bootstrap5-definition.scss +16 -0
- package/styles/pager/_fabric-dark-definition.scss +16 -0
- package/styles/pager/_fabric-definition.scss +16 -0
- package/styles/pager/_fluent-definition.scss +16 -0
- package/styles/pager/_fusionnew-definition.scss +16 -0
- package/styles/pager/_highcontrast-definition.scss +16 -0
- package/styles/pager/_highcontrast-light-definition.scss +16 -0
- package/styles/pager/_layout.scss +114 -0
- package/styles/pager/_material-dark-definition.scss +16 -0
- package/styles/pager/_material-definition.scss +16 -0
- package/styles/pager/_material3-definition.scss +16 -0
- package/styles/pager/_tailwind-definition.scss +16 -0
- package/styles/pager/bootstrap-dark.css +107 -0
- package/styles/pager/bootstrap.css +107 -0
- package/styles/pager/bootstrap4.css +107 -0
- package/styles/pager/bootstrap5-dark.css +107 -0
- package/styles/pager/bootstrap5.css +107 -0
- package/styles/pager/fabric-dark.css +107 -0
- package/styles/pager/fabric.css +107 -0
- package/styles/pager/fluent-dark.css +107 -0
- package/styles/pager/fluent.css +107 -0
- package/styles/pager/highcontrast-light.css +107 -0
- package/styles/pager/highcontrast.css +107 -0
- package/styles/pager/material-dark.css +107 -0
- package/styles/pager/material.css +107 -0
- package/styles/pager/material3-dark.css +107 -0
- package/styles/pager/material3.css +107 -0
- package/styles/pager/tailwind-dark.css +107 -0
- package/styles/pager/tailwind.css +107 -0
- package/styles/stepper/_all.scss +2 -0
- package/styles/stepper/_bootstrap-dark-definition.scss +78 -0
- package/styles/stepper/_bootstrap-definition.scss +78 -0
- package/styles/stepper/_bootstrap4-definition.scss +78 -0
- package/styles/stepper/_bootstrap5-dark-definition.scss +1 -0
- package/styles/stepper/_bootstrap5-definition.scss +79 -0
- package/styles/stepper/_fabric-dark-definition.scss +78 -0
- package/styles/stepper/_fabric-definition.scss +78 -0
- package/styles/stepper/_fluent-dark-definition.scss +1 -0
- package/styles/stepper/_fluent-definition.scss +78 -0
- package/styles/stepper/_fusionnew-definition.scss +78 -0
- package/styles/stepper/_highcontrast-definition.scss +78 -0
- package/styles/stepper/_highcontrast-light-definition.scss +78 -0
- package/styles/stepper/_layout.scss +564 -0
- package/styles/stepper/_material-dark-definition.scss +78 -0
- package/styles/stepper/_material-definition.scss +78 -0
- package/styles/stepper/_material3-dark-definition.scss +1 -0
- package/styles/stepper/_material3-definition.scss +78 -0
- package/styles/stepper/_tailwind-dark-definition.scss +1 -0
- package/styles/stepper/_tailwind-definition.scss +78 -0
- package/styles/stepper/_theme.scss +223 -0
- package/styles/stepper/bootstrap-dark.css +644 -0
- package/styles/stepper/bootstrap-dark.scss +5 -0
- package/styles/stepper/bootstrap.css +644 -0
- package/styles/stepper/bootstrap.scss +5 -0
- package/styles/stepper/bootstrap4.css +644 -0
- package/styles/stepper/bootstrap4.scss +5 -0
- package/styles/stepper/bootstrap5-dark.css +644 -0
- package/styles/stepper/bootstrap5-dark.scss +5 -0
- package/styles/stepper/bootstrap5.css +644 -0
- package/styles/stepper/bootstrap5.scss +5 -0
- package/styles/stepper/fabric-dark.css +644 -0
- package/styles/stepper/fabric-dark.scss +5 -0
- package/styles/stepper/fabric.css +644 -0
- package/styles/stepper/fabric.scss +5 -0
- package/styles/stepper/fluent-dark.css +644 -0
- package/styles/stepper/fluent-dark.scss +5 -0
- package/styles/stepper/fluent.css +644 -0
- package/styles/stepper/fluent.scss +5 -0
- package/styles/stepper/highcontrast-light.css +644 -0
- package/styles/stepper/highcontrast-light.scss +5 -0
- package/styles/stepper/highcontrast.css +644 -0
- package/styles/stepper/highcontrast.scss +5 -0
- package/styles/stepper/icons/_bootstrap-dark.scss +5 -0
- package/styles/stepper/icons/_bootstrap.scss +5 -0
- package/styles/stepper/icons/_bootstrap4.scss +5 -0
- package/styles/stepper/icons/_bootstrap5-dark.scss +1 -0
- package/styles/stepper/icons/_bootstrap5.scss +5 -0
- package/styles/stepper/icons/_fabric-dark.scss +5 -0
- package/styles/stepper/icons/_fabric.scss +5 -0
- package/styles/stepper/icons/_fluent-dark.scss +1 -0
- package/styles/stepper/icons/_fluent.scss +5 -0
- package/styles/stepper/icons/_fusionnew.scss +5 -0
- package/styles/stepper/icons/_highcontrast-light.scss +5 -0
- package/styles/stepper/icons/_highcontrast.scss +5 -0
- package/styles/stepper/icons/_material-dark.scss +5 -0
- package/styles/stepper/icons/_material.scss +5 -0
- package/styles/stepper/icons/_material3-dark.scss +1 -0
- package/styles/stepper/icons/_material3.scss +5 -0
- package/styles/stepper/icons/_tailwind-dark.scss +1 -0
- package/styles/stepper/icons/_tailwind.scss +5 -0
- package/styles/stepper/material-dark.css +644 -0
- package/styles/stepper/material-dark.scss +5 -0
- package/styles/stepper/material.css +644 -0
- package/styles/stepper/material.scss +5 -0
- package/styles/stepper/material3-dark.css +699 -0
- package/styles/stepper/material3-dark.scss +6 -0
- package/styles/stepper/material3.css +755 -0
- package/styles/stepper/material3.scss +6 -0
- package/styles/stepper/tailwind-dark.css +644 -0
- package/styles/stepper/tailwind-dark.scss +5 -0
- package/styles/stepper/tailwind.css +644 -0
- package/styles/stepper/tailwind.scss +5 -0
- package/styles/tab/_bootstrap-dark-definition.scss +1 -1
- package/styles/tab/_bootstrap-definition.scss +1 -1
- package/styles/tab/_bootstrap4-definition.scss +1 -1
- package/styles/tab/_bootstrap5-definition.scss +3 -2
- package/styles/tab/_fluent-definition.scss +1 -1
- package/styles/tab/_fusionnew-definition.scss +1 -1
- package/styles/tab/_highcontrast-definition.scss +1 -1
- package/styles/tab/_highcontrast-light-definition.scss +1 -1
- package/styles/tab/_material-dark-definition.scss +1 -1
- package/styles/tab/_material-definition.scss +1 -1
- package/styles/tab/_theme.scss +6 -0
- package/styles/tab/bootstrap-dark.css +1 -1
- package/styles/tab/bootstrap.css +1 -1
- package/styles/tab/bootstrap4.css +1 -1
- package/styles/tab/bootstrap5-dark.css +2 -2
- package/styles/tab/bootstrap5.css +2 -2
- package/styles/tab/fluent-dark.css +1 -1
- package/styles/tab/fluent.css +1 -1
- package/styles/tab/highcontrast-light.css +1 -1
- package/styles/tab/highcontrast.css +1 -1
- package/styles/tab/material-dark.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/tailwind-dark.css +752 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +752 -0
- package/styles/tailwind.scss +1 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, ChildProperty, Collection, removeClass, Event, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
+
import {StepStatus,StepperOrientation} from "./stepper-base";
|
|
3
|
+
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for a class Step
|
|
7
|
+
*/
|
|
8
|
+
export interface StepModel {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines the CSS class to customize the step appearance.
|
|
12
|
+
*
|
|
13
|
+
* @default ''
|
|
14
|
+
*/
|
|
15
|
+
cssClass?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines whether a step is enabled or disabled.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Defines the icon content of the step.
|
|
26
|
+
*
|
|
27
|
+
* @default ''
|
|
28
|
+
*/
|
|
29
|
+
iconCss?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Defines the state whether it is valid completion or not.
|
|
33
|
+
*
|
|
34
|
+
* @aspType bool?
|
|
35
|
+
* @default null
|
|
36
|
+
*/
|
|
37
|
+
isValid?: boolean;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Defines the label content of the step.
|
|
41
|
+
*
|
|
42
|
+
* @default ''
|
|
43
|
+
*/
|
|
44
|
+
label?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Defines whether the step is optionally to skip completion or not.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
optional?: boolean;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Defines the status of the step.
|
|
55
|
+
* The possible values are
|
|
56
|
+
* * NotStarted
|
|
57
|
+
* * InProgress
|
|
58
|
+
* * Completed
|
|
59
|
+
*
|
|
60
|
+
* @isenumeration true
|
|
61
|
+
* @default StepStatus.NotStarted
|
|
62
|
+
* @asptype StepStatus
|
|
63
|
+
*/
|
|
64
|
+
status?: string | StepStatus;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Defines the text content of the step.
|
|
68
|
+
*
|
|
69
|
+
* @default ''
|
|
70
|
+
*/
|
|
71
|
+
text?: string;
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Interface for a class StepperBase
|
|
77
|
+
*/
|
|
78
|
+
export interface StepperBaseModel extends ComponentModel{
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Defines the list of steps.
|
|
82
|
+
*
|
|
83
|
+
* @default []
|
|
84
|
+
*/
|
|
85
|
+
steps?: StepModel[];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Defines the CSS class to customize the Stepper appearance.
|
|
89
|
+
*
|
|
90
|
+
* @default ''
|
|
91
|
+
*/
|
|
92
|
+
cssClass?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Defines whether the read-only mode is enabled for a Stepper control, which means that the user will not be able to interact with it.
|
|
96
|
+
*
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
readOnly?: boolean;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Defines the orientation type of the Stepper.
|
|
103
|
+
*
|
|
104
|
+
* The possible values are:
|
|
105
|
+
* * Horizontal
|
|
106
|
+
* * vertical
|
|
107
|
+
*
|
|
108
|
+
* @isenumeration true
|
|
109
|
+
* @default StepperOrientation.Horizontal
|
|
110
|
+
* @asptype StepperOrientation
|
|
111
|
+
*/
|
|
112
|
+
orientation?: string | StepperOrientation;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Event callback that is raised after rendering the stepper.
|
|
116
|
+
*
|
|
117
|
+
* @event created
|
|
118
|
+
*/
|
|
119
|
+
created?: EmitType<Event>;
|
|
120
|
+
|
|
121
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { Component, INotifyPropertyChanged, ChildProperty, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
+
import { StepperBaseModel, StepModel } from './stepper-base-model';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the status of the step.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum StepStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Shows the status of the step is not started.
|
|
9
|
+
*/
|
|
10
|
+
NotStarted = "NotStarted",
|
|
11
|
+
/**
|
|
12
|
+
* Shows the step is in progress.
|
|
13
|
+
*/
|
|
14
|
+
InProgress = "InProgress",
|
|
15
|
+
/**
|
|
16
|
+
* Shows the status of the step is completed.
|
|
17
|
+
*/
|
|
18
|
+
Completed = "Completed"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the steps of the Stepper.
|
|
22
|
+
*/
|
|
23
|
+
export declare class Step extends ChildProperty<Step> {
|
|
24
|
+
/**
|
|
25
|
+
* Defines the CSS class to customize the step appearance.
|
|
26
|
+
*
|
|
27
|
+
* @default ''
|
|
28
|
+
*/
|
|
29
|
+
cssClass: string;
|
|
30
|
+
/**
|
|
31
|
+
* Defines whether a step is enabled or disabled.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Defines the icon content of the step.
|
|
38
|
+
*
|
|
39
|
+
* @default ''
|
|
40
|
+
*/
|
|
41
|
+
iconCss: string;
|
|
42
|
+
/**
|
|
43
|
+
* Defines the state whether it is valid completion or not.
|
|
44
|
+
*
|
|
45
|
+
* @aspType bool?
|
|
46
|
+
* @default null
|
|
47
|
+
*/
|
|
48
|
+
isValid: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the label content of the step.
|
|
51
|
+
*
|
|
52
|
+
* @default ''
|
|
53
|
+
*/
|
|
54
|
+
label: string;
|
|
55
|
+
/**
|
|
56
|
+
* Defines whether the step is optionally to skip completion or not.
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
optional: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Defines the status of the step.
|
|
63
|
+
* The possible values are
|
|
64
|
+
* * NotStarted
|
|
65
|
+
* * InProgress
|
|
66
|
+
* * Completed
|
|
67
|
+
*
|
|
68
|
+
* @isenumeration true
|
|
69
|
+
* @default StepStatus.NotStarted
|
|
70
|
+
* @asptype StepStatus
|
|
71
|
+
*/
|
|
72
|
+
status: string | StepStatus;
|
|
73
|
+
/**
|
|
74
|
+
* Defines the text content of the step.
|
|
75
|
+
*
|
|
76
|
+
* @default ''
|
|
77
|
+
*/
|
|
78
|
+
text: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Defines the orientation type of the Stepper.
|
|
82
|
+
*/
|
|
83
|
+
export declare enum StepperOrientation {
|
|
84
|
+
/**
|
|
85
|
+
* Steps are displayed horizontally.
|
|
86
|
+
*/
|
|
87
|
+
Horizontal = "Horizontal",
|
|
88
|
+
/**
|
|
89
|
+
* Steps are displayed vertically.
|
|
90
|
+
*/
|
|
91
|
+
Vertical = "Vertical"
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* StepperBase component act as base class to the stepper component.
|
|
95
|
+
*/
|
|
96
|
+
export declare class StepperBase extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
97
|
+
/**
|
|
98
|
+
* Defines the list of steps.
|
|
99
|
+
*
|
|
100
|
+
* @default []
|
|
101
|
+
*/
|
|
102
|
+
steps: StepModel[];
|
|
103
|
+
/**
|
|
104
|
+
* Defines the CSS class to customize the Stepper appearance.
|
|
105
|
+
*
|
|
106
|
+
* @default ''
|
|
107
|
+
*/
|
|
108
|
+
cssClass: string;
|
|
109
|
+
/**
|
|
110
|
+
* Defines whether the read-only mode is enabled for a Stepper control, which means that the user will not be able to interact with it.
|
|
111
|
+
*
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
readOnly: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Defines the orientation type of the Stepper.
|
|
117
|
+
*
|
|
118
|
+
* The possible values are:
|
|
119
|
+
* * Horizontal
|
|
120
|
+
* * vertical
|
|
121
|
+
*
|
|
122
|
+
* @isenumeration true
|
|
123
|
+
* @default StepperOrientation.Horizontal
|
|
124
|
+
* @asptype StepperOrientation
|
|
125
|
+
*/
|
|
126
|
+
orientation: string | StepperOrientation;
|
|
127
|
+
/**
|
|
128
|
+
* Event callback that is raised after rendering the stepper.
|
|
129
|
+
*
|
|
130
|
+
* @event created
|
|
131
|
+
*/
|
|
132
|
+
created: EmitType<Event>;
|
|
133
|
+
protected progressStep: HTMLElement;
|
|
134
|
+
protected progressbar: HTMLElement;
|
|
135
|
+
protected progressBarPosition: number;
|
|
136
|
+
/**
|
|
137
|
+
* * Constructor for Base class
|
|
138
|
+
*
|
|
139
|
+
* @param {StepperBaseModel} options - Specifies the Base model.
|
|
140
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
141
|
+
* @private
|
|
142
|
+
*/
|
|
143
|
+
constructor(options?: StepperBaseModel, element?: string | HTMLElement);
|
|
144
|
+
/**
|
|
145
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
146
|
+
*
|
|
147
|
+
* @private
|
|
148
|
+
* @returns {void}
|
|
149
|
+
*/
|
|
150
|
+
protected preRender(): void;
|
|
151
|
+
/**
|
|
152
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
153
|
+
*
|
|
154
|
+
* @private
|
|
155
|
+
* @returns {string}
|
|
156
|
+
*/
|
|
157
|
+
getModuleName(): string;
|
|
158
|
+
/**
|
|
159
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
160
|
+
*
|
|
161
|
+
* @private
|
|
162
|
+
* @returns {string}
|
|
163
|
+
*/
|
|
164
|
+
protected getPersistData(): string;
|
|
165
|
+
/**
|
|
166
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
167
|
+
*
|
|
168
|
+
* @private
|
|
169
|
+
* @returns {void}
|
|
170
|
+
*/
|
|
171
|
+
protected render(): void;
|
|
172
|
+
protected updateOrientaion(wrapper: HTMLElement): void;
|
|
173
|
+
protected renderProgressBar(wrapper: HTMLElement): void;
|
|
174
|
+
protected setProgressPosition(wrapper: HTMLElement, isResize?: boolean): void;
|
|
175
|
+
/**
|
|
176
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
177
|
+
*
|
|
178
|
+
* @param newProp
|
|
179
|
+
* @param oldProp
|
|
180
|
+
* @private
|
|
181
|
+
* @returns {void}
|
|
182
|
+
*/
|
|
183
|
+
onPropertyChanged(newProp: StepperBaseModel, oldProp: StepperBaseModel): void;
|
|
184
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { Component, NotifyPropertyChanges, Property, ChildProperty, Collection, Event } from '@syncfusion/ej2-base';
|
|
21
|
+
var PROGRESSVALUE = '--progress-value';
|
|
22
|
+
/**
|
|
23
|
+
* Defines the status of the step.
|
|
24
|
+
*/
|
|
25
|
+
export var StepStatus;
|
|
26
|
+
(function (StepStatus) {
|
|
27
|
+
/**
|
|
28
|
+
* Shows the status of the step is not started.
|
|
29
|
+
*/
|
|
30
|
+
StepStatus["NotStarted"] = "NotStarted";
|
|
31
|
+
/**
|
|
32
|
+
* Shows the step is in progress.
|
|
33
|
+
*/
|
|
34
|
+
StepStatus["InProgress"] = "InProgress";
|
|
35
|
+
/**
|
|
36
|
+
* Shows the status of the step is completed.
|
|
37
|
+
*/
|
|
38
|
+
StepStatus["Completed"] = "Completed";
|
|
39
|
+
})(StepStatus || (StepStatus = {}));
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the steps of the Stepper.
|
|
42
|
+
*/
|
|
43
|
+
var Step = /** @class */ (function (_super) {
|
|
44
|
+
__extends(Step, _super);
|
|
45
|
+
function Step() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
__decorate([
|
|
49
|
+
Property('')
|
|
50
|
+
], Step.prototype, "cssClass", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Property(false)
|
|
53
|
+
], Step.prototype, "disabled", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Property('')
|
|
56
|
+
], Step.prototype, "iconCss", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Property(null)
|
|
59
|
+
], Step.prototype, "isValid", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Property('')
|
|
62
|
+
], Step.prototype, "label", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Property(false)
|
|
65
|
+
], Step.prototype, "optional", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
Property(StepStatus.NotStarted)
|
|
68
|
+
], Step.prototype, "status", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
Property('')
|
|
71
|
+
], Step.prototype, "text", void 0);
|
|
72
|
+
return Step;
|
|
73
|
+
}(ChildProperty));
|
|
74
|
+
export { Step };
|
|
75
|
+
/**
|
|
76
|
+
* Defines the orientation type of the Stepper.
|
|
77
|
+
*/
|
|
78
|
+
export var StepperOrientation;
|
|
79
|
+
(function (StepperOrientation) {
|
|
80
|
+
/**
|
|
81
|
+
* Steps are displayed horizontally.
|
|
82
|
+
*/
|
|
83
|
+
StepperOrientation["Horizontal"] = "Horizontal";
|
|
84
|
+
/**
|
|
85
|
+
* Steps are displayed vertically.
|
|
86
|
+
*/
|
|
87
|
+
StepperOrientation["Vertical"] = "Vertical";
|
|
88
|
+
})(StepperOrientation || (StepperOrientation = {}));
|
|
89
|
+
/**
|
|
90
|
+
* StepperBase component act as base class to the stepper component.
|
|
91
|
+
*/
|
|
92
|
+
var StepperBase = /** @class */ (function (_super) {
|
|
93
|
+
__extends(StepperBase, _super);
|
|
94
|
+
/**
|
|
95
|
+
* * Constructor for Base class
|
|
96
|
+
*
|
|
97
|
+
* @param {StepperBaseModel} options - Specifies the Base model.
|
|
98
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
function StepperBase(options, element) {
|
|
102
|
+
return _super.call(this, options, element) || this;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
106
|
+
*
|
|
107
|
+
* @private
|
|
108
|
+
* @returns {void}
|
|
109
|
+
*/
|
|
110
|
+
StepperBase.prototype.preRender = function () {
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
114
|
+
*
|
|
115
|
+
* @private
|
|
116
|
+
* @returns {string}
|
|
117
|
+
*/
|
|
118
|
+
StepperBase.prototype.getModuleName = function () {
|
|
119
|
+
return 'stepperBase';
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
123
|
+
*
|
|
124
|
+
* @private
|
|
125
|
+
* @returns {string}
|
|
126
|
+
*/
|
|
127
|
+
StepperBase.prototype.getPersistData = function () {
|
|
128
|
+
return this.addOnPersist([]);
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
132
|
+
*
|
|
133
|
+
* @private
|
|
134
|
+
* @returns {void}
|
|
135
|
+
*/
|
|
136
|
+
StepperBase.prototype.render = function () {
|
|
137
|
+
};
|
|
138
|
+
StepperBase.prototype.updateOrientaion = function (wrapper) {
|
|
139
|
+
if (wrapper.classList.contains('e-horizontal') || wrapper.classList.contains('e-vertical')) {
|
|
140
|
+
wrapper.classList.contains('e-horizontal') ? wrapper.classList.remove('e-horizontal') : wrapper.classList.remove('e-vertical');
|
|
141
|
+
}
|
|
142
|
+
wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());
|
|
143
|
+
};
|
|
144
|
+
StepperBase.prototype.renderProgressBar = function (wrapper) {
|
|
145
|
+
this.progressStep = this.createElement('div', { className: 'e-stepper-progressbar' });
|
|
146
|
+
this.progressbar = this.createElement('div', { className: 'e-progressbar-value' });
|
|
147
|
+
this.progressStep.appendChild(this.progressbar);
|
|
148
|
+
wrapper.prepend(this.progressStep);
|
|
149
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, (0) + '%');
|
|
150
|
+
var beforeLabel = (wrapper.querySelector('li').querySelector('.e-step-label-container'));
|
|
151
|
+
if (wrapper.classList.contains('e-vertical')) {
|
|
152
|
+
if (wrapper.classList.contains('e-label-bottom') || wrapper.classList.contains('e-label-top')) {
|
|
153
|
+
var stepsContainer = (wrapper.querySelector('.e-stepper-steps'));
|
|
154
|
+
this.progressStep.style.setProperty('--progress-position', (stepsContainer.offsetWidth / 2) + 'px');
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
this.progressStep.style.setProperty('--progress-position', ((this.progressBarPosition / 2) - 1) + 'px');
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (beforeLabel && (beforeLabel.classList.contains('e-label-before'))) {
|
|
161
|
+
this.progressStep.style.setProperty('--progress-position', (((this.progressBarPosition) - 1)) + 5 + 'px');
|
|
162
|
+
}
|
|
163
|
+
if (wrapper.classList.contains('e-horizontal')) {
|
|
164
|
+
this.setProgressPosition(wrapper);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
StepperBase.prototype.setProgressPosition = function (wrapper, isResize) {
|
|
168
|
+
var stepItemContainer = (wrapper.querySelector('.e-step-container'));
|
|
169
|
+
var stepItemEle = stepItemContainer.firstElementChild;
|
|
170
|
+
if (isResize != true) {
|
|
171
|
+
var topPos = 0;
|
|
172
|
+
if (wrapper.classList.contains('e-label-before')) {
|
|
173
|
+
topPos = (stepItemContainer.offsetParent.offsetHeight - (stepItemEle.offsetHeight / 2) - 1);
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
topPos = (stepItemEle.offsetHeight / 2);
|
|
177
|
+
}
|
|
178
|
+
this.progressStep.style.setProperty('--progress-top-position', topPos + 'px');
|
|
179
|
+
}
|
|
180
|
+
var lastEle = wrapper.querySelector('.e-stepper-steps').lastChild.firstChild;
|
|
181
|
+
if (wrapper.classList.contains('e-rtl')) {
|
|
182
|
+
var leftPost = ((stepItemEle.offsetLeft + stepItemEle.offsetWidth) - wrapper.querySelector('.e-stepper-steps').offsetWidth);
|
|
183
|
+
this.progressStep.style.setProperty('--progress-left-position', Math.abs(leftPost) + 'px');
|
|
184
|
+
this.progressStep.style.setProperty('--progress-bar-width', Math.abs(lastEle.offsetLeft - stepItemEle.offsetLeft) + 'px');
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
this.progressStep.style.setProperty('--progress-left-position', (stepItemEle.offsetLeft + 1) + 'px');
|
|
188
|
+
this.progressStep.style.setProperty('--progress-bar-width', ((lastEle.offsetWidth + lastEle.offsetLeft - 2) - (stepItemEle.offsetLeft + 2)) + 'px');
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
193
|
+
*
|
|
194
|
+
* @param newProp
|
|
195
|
+
* @param oldProp
|
|
196
|
+
* @private
|
|
197
|
+
* @returns {void}
|
|
198
|
+
*/
|
|
199
|
+
StepperBase.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
200
|
+
};
|
|
201
|
+
__decorate([
|
|
202
|
+
Collection([], Step)
|
|
203
|
+
], StepperBase.prototype, "steps", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
Property('')
|
|
206
|
+
], StepperBase.prototype, "cssClass", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
Property(false)
|
|
209
|
+
], StepperBase.prototype, "readOnly", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
Property(StepperOrientation.Horizontal)
|
|
212
|
+
], StepperBase.prototype, "orientation", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
Event()
|
|
215
|
+
], StepperBase.prototype, "created", void 0);
|
|
216
|
+
StepperBase = __decorate([
|
|
217
|
+
NotifyPropertyChanges
|
|
218
|
+
], StepperBase);
|
|
219
|
+
return StepperBase;
|
|
220
|
+
}(Component));
|
|
221
|
+
export { StepperBase };
|
package/src/tab/tab.js
CHANGED
|
@@ -1354,7 +1354,6 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1354
1354
|
var scrCnt = select('.' + this.scrCntClass, this.tbItems);
|
|
1355
1355
|
if (!this.isVertical() && !isNOU(scrCnt)) {
|
|
1356
1356
|
var scrBar = select('.e-hscroll-bar', this.tbItems);
|
|
1357
|
-
scrBar.removeAttribute('tabindex');
|
|
1358
1357
|
var scrStart = scrBar.scrollLeft;
|
|
1359
1358
|
var scrEnd = scrStart + scrBar.offsetWidth;
|
|
1360
1359
|
var eleStart = target.offsetLeft;
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -795,6 +795,10 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
795
795
|
if (this.cssClass) {
|
|
796
796
|
addClass([innerItems[0]], this.cssClass.split(' '));
|
|
797
797
|
}
|
|
798
|
+
var scrollEle = this.scrollModule.element.querySelector('.' + CLS_HSCROLLBAR + ', .' + 'e-vscroll-bar');
|
|
799
|
+
if (scrollEle) {
|
|
800
|
+
scrollEle.removeAttribute('tabindex');
|
|
801
|
+
}
|
|
798
802
|
this.remove(this.scrollModule.element, CLS_TBARPOS);
|
|
799
803
|
setStyle(this.element, { overflow: 'hidden' });
|
|
800
804
|
}
|
package/src/treeview/treeview.js
CHANGED
|
@@ -350,9 +350,11 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
350
350
|
TreeView.prototype.setDisabledMode = function () {
|
|
351
351
|
if (this.disabled) {
|
|
352
352
|
this.element.classList.add(DISABLED);
|
|
353
|
+
this.element.setAttribute('aria-disabled', 'true');
|
|
353
354
|
}
|
|
354
355
|
else {
|
|
355
356
|
this.element.classList.remove(DISABLED);
|
|
357
|
+
this.element.setAttribute('aria-disabled', 'false');
|
|
356
358
|
}
|
|
357
359
|
};
|
|
358
360
|
TreeView.prototype.setEnableRtl = function () {
|
|
@@ -375,12 +377,11 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
375
377
|
(isEnabled ? addClass : removeClass)([this.element], FULLROWWRAP);
|
|
376
378
|
};
|
|
377
379
|
TreeView.prototype.setMultiSelect = function (isEnabled) {
|
|
378
|
-
var firstUl = select('.' + PARENTITEM, this.element);
|
|
379
380
|
if (isEnabled) {
|
|
380
|
-
|
|
381
|
+
this.element.setAttribute('aria-multiselectable', 'true');
|
|
381
382
|
}
|
|
382
383
|
else {
|
|
383
|
-
|
|
384
|
+
this.element.setAttribute('aria-multiselectable', 'false');
|
|
384
385
|
}
|
|
385
386
|
};
|
|
386
387
|
// eslint-disable-next-line
|
|
@@ -749,7 +750,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
749
750
|
if (this.showCheckBox) {
|
|
750
751
|
var checkboxEle = createCheckBox(this.createElement, true, { cssClass: this.touchClass });
|
|
751
752
|
checkboxEle.setAttribute('role', 'checkbox');
|
|
752
|
-
checkboxEle.setAttribute('aria-label',
|
|
753
|
+
checkboxEle.setAttribute('aria-label', e.text);
|
|
753
754
|
var icon = select('div.' + ICON, e.item);
|
|
754
755
|
var id = e.item.getAttribute('data-uid');
|
|
755
756
|
e.item.childNodes[0].insertBefore(checkboxEle, e.item.childNodes[0].childNodes[isNOU(icon) ? 0 : 1]);
|
|
@@ -1006,17 +1007,11 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1006
1007
|
TreeView.prototype.doCheckBoxAction = function (nodes, doCheck) {
|
|
1007
1008
|
var li = selectAll('.' + LISTITEM, this.element);
|
|
1008
1009
|
if (!isNOU(nodes)) {
|
|
1009
|
-
for (var len = nodes.length; len >= 0; len--) {
|
|
1010
|
-
var liEle =
|
|
1011
|
-
if (nodes.length === 1) {
|
|
1012
|
-
liEle = this.getElement(nodes[len - 1]);
|
|
1013
|
-
}
|
|
1014
|
-
else {
|
|
1015
|
-
liEle = this.getElement(nodes[len]);
|
|
1016
|
-
}
|
|
1010
|
+
for (var len = nodes.length - 1; len >= 0; len--) {
|
|
1011
|
+
var liEle = this.getElement(nodes[len]);
|
|
1017
1012
|
if (isNOU(liEle)) {
|
|
1018
1013
|
var node = void 0;
|
|
1019
|
-
node = nodes[len - nodes.length] ? nodes[len - nodes.length].toString() : nodes[len] ? nodes[len].toString() : null;
|
|
1014
|
+
node = nodes[len - (nodes.length - 1)] ? nodes[len - (nodes.length - 1)].toString() : nodes[len] ? nodes[len].toString() : null;
|
|
1020
1015
|
if (node !== '' && doCheck && node) {
|
|
1021
1016
|
this.setValidCheckedNode(node);
|
|
1022
1017
|
this.dynamicCheckState(node, doCheck);
|
|
@@ -1066,7 +1061,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1066
1061
|
}
|
|
1067
1062
|
}
|
|
1068
1063
|
if (nodes) {
|
|
1069
|
-
for (var j = 0; j < nodes.length; j++) {
|
|
1064
|
+
for (var j = 0; j < nodes.length - 1; j++) {
|
|
1070
1065
|
var node = nodes[j] ? nodes[j].toString() : '';
|
|
1071
1066
|
if (!doCheck) {
|
|
1072
1067
|
this.updateField(this.treeData, this.fields, node, 'isChecked', null);
|
|
@@ -4616,7 +4611,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4616
4611
|
this.isAnimate = false;
|
|
4617
4612
|
this.isFieldChange = true;
|
|
4618
4613
|
this.initialRender = true;
|
|
4619
|
-
if (
|
|
4614
|
+
if (!this.isReact || this.isReact && !(this.fields.dataSource instanceof DataManager)) {
|
|
4620
4615
|
this.reRenderNodes();
|
|
4621
4616
|
}
|
|
4622
4617
|
this.initialRender = false;
|
package/stepper-base.js
ADDED
package/stepper.d.ts
ADDED
package/stepper.js
ADDED