@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.
Files changed (195) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/ej2-navigations.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js +2 -2
  4. package/dist/ej2-navigations.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-navigations.es2015.js +1351 -22
  6. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es5.js +1399 -22
  8. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  9. package/dist/global/ej2-navigations.min.js +2 -2
  10. package/dist/global/ej2-navigations.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +12 -12
  13. package/src/breadcrumb/breadcrumb.js +6 -1
  14. package/src/carousel/carousel.js +3 -3
  15. package/src/common/menu-base.js +4 -0
  16. package/src/index.d.ts +2 -0
  17. package/src/index.js +2 -0
  18. package/src/stepper/index.d.ts +3 -0
  19. package/src/stepper/index.js +2 -0
  20. package/src/stepper/stepper-model.d.ts +153 -0
  21. package/src/stepper/stepper.d.ts +339 -0
  22. package/src/stepper/stepper.js +1149 -0
  23. package/src/stepper-base/index.d.ts +5 -0
  24. package/src/stepper-base/index.js +4 -0
  25. package/src/stepper-base/stepper-base-model.d.ts +121 -0
  26. package/src/stepper-base/stepper-base.d.ts +184 -0
  27. package/src/stepper-base/stepper-base.js +221 -0
  28. package/src/tab/tab.js +0 -1
  29. package/src/toolbar/toolbar.js +4 -0
  30. package/src/treeview/treeview.js +10 -15
  31. package/stepper-base.d.ts +4 -0
  32. package/stepper-base.js +4 -0
  33. package/stepper.d.ts +4 -0
  34. package/stepper.js +4 -0
  35. package/styles/bootstrap-dark.css +753 -1
  36. package/styles/bootstrap-dark.scss +1 -0
  37. package/styles/bootstrap.css +753 -1
  38. package/styles/bootstrap.scss +1 -0
  39. package/styles/bootstrap4.css +753 -1
  40. package/styles/bootstrap4.scss +1 -0
  41. package/styles/bootstrap5-dark.css +754 -2
  42. package/styles/bootstrap5-dark.scss +1 -0
  43. package/styles/bootstrap5.css +754 -2
  44. package/styles/bootstrap5.scss +1 -0
  45. package/styles/fabric-dark.css +752 -0
  46. package/styles/fabric-dark.scss +1 -0
  47. package/styles/fabric.css +752 -0
  48. package/styles/fabric.scss +1 -0
  49. package/styles/fluent-dark.css +753 -1
  50. package/styles/fluent-dark.scss +1 -0
  51. package/styles/fluent.css +753 -1
  52. package/styles/fluent.scss +1 -0
  53. package/styles/highcontrast-light.css +753 -1
  54. package/styles/highcontrast-light.scss +1 -0
  55. package/styles/highcontrast.css +753 -1
  56. package/styles/highcontrast.scss +1 -0
  57. package/styles/material-dark.css +753 -1
  58. package/styles/material-dark.scss +1 -0
  59. package/styles/material.css +753 -1
  60. package/styles/material.scss +1 -0
  61. package/styles/material3-dark.css +752 -0
  62. package/styles/material3-dark.scss +1 -0
  63. package/styles/material3.css +752 -0
  64. package/styles/material3.scss +1 -0
  65. package/styles/pager/_bootstrap-dark-definition.scss +16 -0
  66. package/styles/pager/_bootstrap-definition.scss +16 -0
  67. package/styles/pager/_bootstrap4-definition.scss +16 -0
  68. package/styles/pager/_bootstrap5-definition.scss +16 -0
  69. package/styles/pager/_fabric-dark-definition.scss +16 -0
  70. package/styles/pager/_fabric-definition.scss +16 -0
  71. package/styles/pager/_fluent-definition.scss +16 -0
  72. package/styles/pager/_fusionnew-definition.scss +16 -0
  73. package/styles/pager/_highcontrast-definition.scss +16 -0
  74. package/styles/pager/_highcontrast-light-definition.scss +16 -0
  75. package/styles/pager/_layout.scss +114 -0
  76. package/styles/pager/_material-dark-definition.scss +16 -0
  77. package/styles/pager/_material-definition.scss +16 -0
  78. package/styles/pager/_material3-definition.scss +16 -0
  79. package/styles/pager/_tailwind-definition.scss +16 -0
  80. package/styles/pager/bootstrap-dark.css +107 -0
  81. package/styles/pager/bootstrap.css +107 -0
  82. package/styles/pager/bootstrap4.css +107 -0
  83. package/styles/pager/bootstrap5-dark.css +107 -0
  84. package/styles/pager/bootstrap5.css +107 -0
  85. package/styles/pager/fabric-dark.css +107 -0
  86. package/styles/pager/fabric.css +107 -0
  87. package/styles/pager/fluent-dark.css +107 -0
  88. package/styles/pager/fluent.css +107 -0
  89. package/styles/pager/highcontrast-light.css +107 -0
  90. package/styles/pager/highcontrast.css +107 -0
  91. package/styles/pager/material-dark.css +107 -0
  92. package/styles/pager/material.css +107 -0
  93. package/styles/pager/material3-dark.css +107 -0
  94. package/styles/pager/material3.css +107 -0
  95. package/styles/pager/tailwind-dark.css +107 -0
  96. package/styles/pager/tailwind.css +107 -0
  97. package/styles/stepper/_all.scss +2 -0
  98. package/styles/stepper/_bootstrap-dark-definition.scss +78 -0
  99. package/styles/stepper/_bootstrap-definition.scss +78 -0
  100. package/styles/stepper/_bootstrap4-definition.scss +78 -0
  101. package/styles/stepper/_bootstrap5-dark-definition.scss +1 -0
  102. package/styles/stepper/_bootstrap5-definition.scss +79 -0
  103. package/styles/stepper/_fabric-dark-definition.scss +78 -0
  104. package/styles/stepper/_fabric-definition.scss +78 -0
  105. package/styles/stepper/_fluent-dark-definition.scss +1 -0
  106. package/styles/stepper/_fluent-definition.scss +78 -0
  107. package/styles/stepper/_fusionnew-definition.scss +78 -0
  108. package/styles/stepper/_highcontrast-definition.scss +78 -0
  109. package/styles/stepper/_highcontrast-light-definition.scss +78 -0
  110. package/styles/stepper/_layout.scss +564 -0
  111. package/styles/stepper/_material-dark-definition.scss +78 -0
  112. package/styles/stepper/_material-definition.scss +78 -0
  113. package/styles/stepper/_material3-dark-definition.scss +1 -0
  114. package/styles/stepper/_material3-definition.scss +78 -0
  115. package/styles/stepper/_tailwind-dark-definition.scss +1 -0
  116. package/styles/stepper/_tailwind-definition.scss +78 -0
  117. package/styles/stepper/_theme.scss +223 -0
  118. package/styles/stepper/bootstrap-dark.css +644 -0
  119. package/styles/stepper/bootstrap-dark.scss +5 -0
  120. package/styles/stepper/bootstrap.css +644 -0
  121. package/styles/stepper/bootstrap.scss +5 -0
  122. package/styles/stepper/bootstrap4.css +644 -0
  123. package/styles/stepper/bootstrap4.scss +5 -0
  124. package/styles/stepper/bootstrap5-dark.css +644 -0
  125. package/styles/stepper/bootstrap5-dark.scss +5 -0
  126. package/styles/stepper/bootstrap5.css +644 -0
  127. package/styles/stepper/bootstrap5.scss +5 -0
  128. package/styles/stepper/fabric-dark.css +644 -0
  129. package/styles/stepper/fabric-dark.scss +5 -0
  130. package/styles/stepper/fabric.css +644 -0
  131. package/styles/stepper/fabric.scss +5 -0
  132. package/styles/stepper/fluent-dark.css +644 -0
  133. package/styles/stepper/fluent-dark.scss +5 -0
  134. package/styles/stepper/fluent.css +644 -0
  135. package/styles/stepper/fluent.scss +5 -0
  136. package/styles/stepper/highcontrast-light.css +644 -0
  137. package/styles/stepper/highcontrast-light.scss +5 -0
  138. package/styles/stepper/highcontrast.css +644 -0
  139. package/styles/stepper/highcontrast.scss +5 -0
  140. package/styles/stepper/icons/_bootstrap-dark.scss +5 -0
  141. package/styles/stepper/icons/_bootstrap.scss +5 -0
  142. package/styles/stepper/icons/_bootstrap4.scss +5 -0
  143. package/styles/stepper/icons/_bootstrap5-dark.scss +1 -0
  144. package/styles/stepper/icons/_bootstrap5.scss +5 -0
  145. package/styles/stepper/icons/_fabric-dark.scss +5 -0
  146. package/styles/stepper/icons/_fabric.scss +5 -0
  147. package/styles/stepper/icons/_fluent-dark.scss +1 -0
  148. package/styles/stepper/icons/_fluent.scss +5 -0
  149. package/styles/stepper/icons/_fusionnew.scss +5 -0
  150. package/styles/stepper/icons/_highcontrast-light.scss +5 -0
  151. package/styles/stepper/icons/_highcontrast.scss +5 -0
  152. package/styles/stepper/icons/_material-dark.scss +5 -0
  153. package/styles/stepper/icons/_material.scss +5 -0
  154. package/styles/stepper/icons/_material3-dark.scss +1 -0
  155. package/styles/stepper/icons/_material3.scss +5 -0
  156. package/styles/stepper/icons/_tailwind-dark.scss +1 -0
  157. package/styles/stepper/icons/_tailwind.scss +5 -0
  158. package/styles/stepper/material-dark.css +644 -0
  159. package/styles/stepper/material-dark.scss +5 -0
  160. package/styles/stepper/material.css +644 -0
  161. package/styles/stepper/material.scss +5 -0
  162. package/styles/stepper/material3-dark.css +699 -0
  163. package/styles/stepper/material3-dark.scss +6 -0
  164. package/styles/stepper/material3.css +755 -0
  165. package/styles/stepper/material3.scss +6 -0
  166. package/styles/stepper/tailwind-dark.css +644 -0
  167. package/styles/stepper/tailwind-dark.scss +5 -0
  168. package/styles/stepper/tailwind.css +644 -0
  169. package/styles/stepper/tailwind.scss +5 -0
  170. package/styles/tab/_bootstrap-dark-definition.scss +1 -1
  171. package/styles/tab/_bootstrap-definition.scss +1 -1
  172. package/styles/tab/_bootstrap4-definition.scss +1 -1
  173. package/styles/tab/_bootstrap5-definition.scss +3 -2
  174. package/styles/tab/_fluent-definition.scss +1 -1
  175. package/styles/tab/_fusionnew-definition.scss +1 -1
  176. package/styles/tab/_highcontrast-definition.scss +1 -1
  177. package/styles/tab/_highcontrast-light-definition.scss +1 -1
  178. package/styles/tab/_material-dark-definition.scss +1 -1
  179. package/styles/tab/_material-definition.scss +1 -1
  180. package/styles/tab/_theme.scss +6 -0
  181. package/styles/tab/bootstrap-dark.css +1 -1
  182. package/styles/tab/bootstrap.css +1 -1
  183. package/styles/tab/bootstrap4.css +1 -1
  184. package/styles/tab/bootstrap5-dark.css +2 -2
  185. package/styles/tab/bootstrap5.css +2 -2
  186. package/styles/tab/fluent-dark.css +1 -1
  187. package/styles/tab/fluent.css +1 -1
  188. package/styles/tab/highcontrast-light.css +1 -1
  189. package/styles/tab/highcontrast.css +1 -1
  190. package/styles/tab/material-dark.css +1 -1
  191. package/styles/tab/material.css +1 -1
  192. package/styles/tailwind-dark.css +752 -0
  193. package/styles/tailwind-dark.scss +1 -0
  194. package/styles/tailwind.css +752 -0
  195. package/styles/tailwind.scss +1 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * export all modules from current location
3
+ */
4
+ export * from './stepper-base';
5
+ export * from './stepper-base-model';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * export all modules from current location
3
+ */
4
+ export * from './stepper-base';
@@ -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;
@@ -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
  }
@@ -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
- firstUl.setAttribute('aria-multiselectable', 'true');
381
+ this.element.setAttribute('aria-multiselectable', 'true');
381
382
  }
382
383
  else {
383
- firstUl.removeAttribute('aria-multiselectable');
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', 'checkbox');
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 = void 0;
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 (isNOU(this.isReact) && !(this.fields.dataSource instanceof DataManager)) {
4614
+ if (!this.isReact || this.isReact && !(this.fields.dataSource instanceof DataManager)) {
4620
4615
  this.reRenderNodes();
4621
4616
  }
4622
4617
  this.initialRender = false;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * stepper-base
3
+ */
4
+ export * from './src/stepper-base/index';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * stepper-base
3
+ */
4
+ export * from './src/stepper-base/index';
package/stepper.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * stepper
3
+ */
4
+ export * from './src/stepper/index';
package/stepper.js ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * stepper
3
+ */
4
+ export * from './src/stepper/index';