@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 24.1.41
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-navigations@
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@22.41.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-b3KXfky3ZmIlLFaIktMCIBAljYf+fcwzAVfffACt0yKbZjrAstPSX0sacmik/l8rDhZBuKyLA+8AeIpITMKDIg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"/@syncfusion/ej2-spreadsheet",
|
|
40
40
|
"/@syncfusion/ej2-vue-navigations"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-navigations/-/ej2-navigations-22.41.2.tgz",
|
|
43
|
+
"_shasum": "7c8e8a2249c22f6e3c5799e28f824826fa0ebd6c",
|
|
44
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
|
-
"_where": "/jenkins/workspace/elease-
|
|
45
|
+
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
47
47
|
"name": "Syncfusion Inc."
|
|
48
48
|
},
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bundleDependencies": false,
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@syncfusion/ej2-base": "~
|
|
55
|
-
"@syncfusion/ej2-buttons": "~
|
|
56
|
-
"@syncfusion/ej2-data": "~
|
|
57
|
-
"@syncfusion/ej2-inputs": "~
|
|
58
|
-
"@syncfusion/ej2-lists": "~
|
|
59
|
-
"@syncfusion/ej2-popups": "~
|
|
54
|
+
"@syncfusion/ej2-base": "~24.1.41",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~24.1.41",
|
|
56
|
+
"@syncfusion/ej2-data": "~24.1.41",
|
|
57
|
+
"@syncfusion/ej2-inputs": "~24.1.41",
|
|
58
|
+
"@syncfusion/ej2-lists": "~24.1.41",
|
|
59
|
+
"@syncfusion/ej2-popups": "~24.1.41"
|
|
60
60
|
},
|
|
61
61
|
"deprecated": false,
|
|
62
62
|
"description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
162
162
|
},
|
|
163
163
|
"typings": "index.d.ts",
|
|
164
|
-
"version": "
|
|
164
|
+
"version": "24.1.41",
|
|
165
165
|
"sideEffects": false
|
|
166
166
|
}
|
|
@@ -131,7 +131,9 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
131
131
|
};
|
|
132
132
|
Breadcrumb.prototype.initialize = function () {
|
|
133
133
|
this._maxItems = this.maxItems;
|
|
134
|
-
this.element.
|
|
134
|
+
if (isNullOrUndefined(this.element.getAttribute('aria-label'))) {
|
|
135
|
+
this.element.setAttribute('aria-label', 'breadcrumb');
|
|
136
|
+
}
|
|
135
137
|
if (this.cssClass) {
|
|
136
138
|
addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
137
139
|
}
|
|
@@ -460,6 +462,9 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
460
462
|
};
|
|
461
463
|
Breadcrumb.prototype.beforeItemRenderChanges = function (prevItem, currItem, elem, isRightIcon) {
|
|
462
464
|
var wrapElem = elem.querySelector('.e-anchor-wrap');
|
|
465
|
+
if (wrapElem) {
|
|
466
|
+
wrapElem.parentElement.setAttribute('aria-label', 'home');
|
|
467
|
+
}
|
|
463
468
|
if (currItem.text !== prevItem.text) {
|
|
464
469
|
wrapElem.childNodes.forEach(function (child) {
|
|
465
470
|
if (child.nodeType === Node.TEXT_NODE) {
|
package/src/carousel/carousel.js
CHANGED
|
@@ -312,7 +312,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
312
312
|
}
|
|
313
313
|
addClass([this.element], carouselClasses);
|
|
314
314
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
315
|
-
attributes(this.element, { '
|
|
315
|
+
attributes(this.element, { 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
316
316
|
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
317
317
|
this.setHtmlAttributes(this.htmlAttributes, this.element);
|
|
318
318
|
}
|
|
@@ -321,7 +321,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
321
321
|
var _this = this;
|
|
322
322
|
var slideContainer = this.element.querySelector('.' + CLS_SLIDE_CONTAINER);
|
|
323
323
|
if (!slideContainer) {
|
|
324
|
-
slideContainer = this.createElement('div', { className: CLS_SLIDE_CONTAINER });
|
|
324
|
+
slideContainer = this.createElement('div', { className: CLS_SLIDE_CONTAINER, attrs: { 'tabindex': '0', 'role': 'tabpanel' } });
|
|
325
325
|
this.element.appendChild(slideContainer);
|
|
326
326
|
}
|
|
327
327
|
this.itemsContainer = this.createElement('div', { className: CLS_ITEMS, attrs: { 'aria-live': this.autoPlay ? 'off' : 'polite' } });
|
|
@@ -1230,7 +1230,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1230
1230
|
this.unWireEvents();
|
|
1231
1231
|
[].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
|
|
1232
1232
|
removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL, CLS_SWIPE]);
|
|
1233
|
-
['
|
|
1233
|
+
['role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
|
|
1234
1234
|
this.itemsContainer = null;
|
|
1235
1235
|
_super.prototype.destroy.call(this);
|
|
1236
1236
|
};
|
package/src/common/menu-base.js
CHANGED
|
@@ -280,6 +280,10 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
+
else {
|
|
284
|
+
this.element.parentElement.setAttribute('role', 'dialog');
|
|
285
|
+
this.element.parentElement.setAttribute('aria-label', 'context menu');
|
|
286
|
+
}
|
|
283
287
|
};
|
|
284
288
|
MenuBase.prototype.wireEvents = function () {
|
|
285
289
|
var wrapper = this.getWrapper();
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
* @aspType string
|
|
81
|
+
*/
|
|
82
|
+
template?: string | Function;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Defines the template content for the tooltip.
|
|
86
|
+
*
|
|
87
|
+
* @default ''
|
|
88
|
+
* @aspType string
|
|
89
|
+
*/
|
|
90
|
+
tooltipTemplate?: string | Function;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Defines the label position in the Stepper.
|
|
94
|
+
*
|
|
95
|
+
* The possible values are:
|
|
96
|
+
* * Top
|
|
97
|
+
* * Bottom
|
|
98
|
+
* * Start
|
|
99
|
+
* * End
|
|
100
|
+
*
|
|
101
|
+
* {% codeBlock src='stepper/labelPosition/index.md' %}{% endcodeBlock %}
|
|
102
|
+
*
|
|
103
|
+
* @isenumeration true
|
|
104
|
+
* @default StepLabelPosition.Bottom
|
|
105
|
+
* @asptype StepLabelPosition
|
|
106
|
+
*/
|
|
107
|
+
labelPosition?: string | StepLabelPosition;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
111
|
+
*
|
|
112
|
+
* The possible values are:
|
|
113
|
+
* * Default
|
|
114
|
+
* * Label
|
|
115
|
+
* * Indicator
|
|
116
|
+
*
|
|
117
|
+
* {% codeBlock src='stepper/stepType/index.md' %}{% endcodeBlock %}
|
|
118
|
+
*
|
|
119
|
+
* @isenumeration true
|
|
120
|
+
* @default StepType.Default
|
|
121
|
+
* @asptype StepType
|
|
122
|
+
*/
|
|
123
|
+
stepType?: string | StepType;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Event triggers after active step changed.
|
|
127
|
+
*
|
|
128
|
+
* @event stepChanged
|
|
129
|
+
*/
|
|
130
|
+
stepChanged?: EmitType<StepperChangedEventArgs>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Event triggers before active step change.
|
|
134
|
+
*
|
|
135
|
+
* @event stepChanging
|
|
136
|
+
*/
|
|
137
|
+
stepChanging?: EmitType<StepperChangingEventArgs>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Event triggers when clicked on step.
|
|
141
|
+
*
|
|
142
|
+
* @event stepClick
|
|
143
|
+
*/
|
|
144
|
+
stepClick?: EmitType<StepperClickEventArgs>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Event triggers before rendering each step.
|
|
148
|
+
*
|
|
149
|
+
* @event beforeStepRender
|
|
150
|
+
*/
|
|
151
|
+
beforeStepRender?: EmitType<StepperRenderingEventArgs>;
|
|
152
|
+
|
|
153
|
+
}
|
|
@@ -0,0 +1,339 @@
|
|
|
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
|
+
* @aspType string
|
|
187
|
+
*/
|
|
188
|
+
template: string | Function;
|
|
189
|
+
/**
|
|
190
|
+
* Defines the template content for the tooltip.
|
|
191
|
+
*
|
|
192
|
+
* @default ''
|
|
193
|
+
* @aspType string
|
|
194
|
+
*/
|
|
195
|
+
tooltipTemplate: string | Function;
|
|
196
|
+
/**
|
|
197
|
+
* Defines the label position in the Stepper.
|
|
198
|
+
*
|
|
199
|
+
* The possible values are:
|
|
200
|
+
* * Top
|
|
201
|
+
* * Bottom
|
|
202
|
+
* * Start
|
|
203
|
+
* * End
|
|
204
|
+
*
|
|
205
|
+
* {% codeBlock src='stepper/labelPosition/index.md' %}{% endcodeBlock %}
|
|
206
|
+
*
|
|
207
|
+
* @isenumeration true
|
|
208
|
+
* @default StepLabelPosition.Bottom
|
|
209
|
+
* @asptype StepLabelPosition
|
|
210
|
+
*/
|
|
211
|
+
labelPosition: string | StepLabelPosition;
|
|
212
|
+
/**
|
|
213
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
214
|
+
*
|
|
215
|
+
* The possible values are:
|
|
216
|
+
* * Default
|
|
217
|
+
* * Label
|
|
218
|
+
* * Indicator
|
|
219
|
+
*
|
|
220
|
+
* {% codeBlock src='stepper/stepType/index.md' %}{% endcodeBlock %}
|
|
221
|
+
*
|
|
222
|
+
* @isenumeration true
|
|
223
|
+
* @default StepType.Default
|
|
224
|
+
* @asptype StepType
|
|
225
|
+
*/
|
|
226
|
+
stepType: string | StepType;
|
|
227
|
+
/**
|
|
228
|
+
* Event triggers after active step changed.
|
|
229
|
+
*
|
|
230
|
+
* @event stepChanged
|
|
231
|
+
*/
|
|
232
|
+
stepChanged: EmitType<StepperChangedEventArgs>;
|
|
233
|
+
/**
|
|
234
|
+
* Event triggers before active step change.
|
|
235
|
+
*
|
|
236
|
+
* @event stepChanging
|
|
237
|
+
*/
|
|
238
|
+
stepChanging: EmitType<StepperChangingEventArgs>;
|
|
239
|
+
/**
|
|
240
|
+
* Event triggers when clicked on step.
|
|
241
|
+
*
|
|
242
|
+
* @event stepClick
|
|
243
|
+
*/
|
|
244
|
+
stepClick: EmitType<StepperClickEventArgs>;
|
|
245
|
+
/**
|
|
246
|
+
* Event triggers before rendering each step.
|
|
247
|
+
*
|
|
248
|
+
* @event beforeStepRender
|
|
249
|
+
*/
|
|
250
|
+
beforeStepRender: EmitType<StepperRenderingEventArgs>;
|
|
251
|
+
private stepperItemList;
|
|
252
|
+
private stepperItemContainer;
|
|
253
|
+
private labelContainer;
|
|
254
|
+
private textContainer;
|
|
255
|
+
private stepperItemElements;
|
|
256
|
+
private beforeLabelWidth;
|
|
257
|
+
private textEleWidth;
|
|
258
|
+
private tooltipObj;
|
|
259
|
+
private tooltipOpen;
|
|
260
|
+
private isReact?;
|
|
261
|
+
private templateFunction;
|
|
262
|
+
private keyboardModuleStepper;
|
|
263
|
+
private keyConfigs;
|
|
264
|
+
private l10n;
|
|
265
|
+
private isKeyNavFocus;
|
|
266
|
+
private isAngular;
|
|
267
|
+
/**
|
|
268
|
+
* * Constructor for creating the Stepper component.
|
|
269
|
+
*
|
|
270
|
+
* @param {StepperModel} options - Specifies the Stepper model.
|
|
271
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
272
|
+
* @private
|
|
273
|
+
*/
|
|
274
|
+
constructor(options?: StepperModel, element?: string | HTMLElement);
|
|
275
|
+
protected preRender(): void;
|
|
276
|
+
/**
|
|
277
|
+
* To get component name.
|
|
278
|
+
*
|
|
279
|
+
* @returns {string} - Module Name
|
|
280
|
+
* @private
|
|
281
|
+
*/
|
|
282
|
+
getModuleName(): string;
|
|
283
|
+
protected render(): void;
|
|
284
|
+
private initialize;
|
|
285
|
+
private updatePosition;
|
|
286
|
+
private renderDefault;
|
|
287
|
+
private updateAnimation;
|
|
288
|
+
private updateStepType;
|
|
289
|
+
private wireEvents;
|
|
290
|
+
private updateStepFocus;
|
|
291
|
+
private updateStepperStatus;
|
|
292
|
+
private updateStatusClass;
|
|
293
|
+
private renderItems;
|
|
294
|
+
private calculateProgressBarPosition;
|
|
295
|
+
private checkValidState;
|
|
296
|
+
private updateCurrentLabel;
|
|
297
|
+
private updateLabelPosition;
|
|
298
|
+
private clearLabelPosition;
|
|
299
|
+
private checkValidStep;
|
|
300
|
+
private updateTooltip;
|
|
301
|
+
private wireItemsEvents;
|
|
302
|
+
private openStepperTooltip;
|
|
303
|
+
private closeStepperTooltip;
|
|
304
|
+
private updateTooltipContent;
|
|
305
|
+
private stepClickHandler;
|
|
306
|
+
private updateTemplateFunction;
|
|
307
|
+
private renderItemContent;
|
|
308
|
+
private removeItemContent;
|
|
309
|
+
private updateContent;
|
|
310
|
+
/**
|
|
311
|
+
* Gets template content based on the template property value.
|
|
312
|
+
*
|
|
313
|
+
* @param {string | Function} template - Template property value.
|
|
314
|
+
* @returns {Function} - Return template function.
|
|
315
|
+
* @hidden
|
|
316
|
+
*/
|
|
317
|
+
private getTemplateFunction;
|
|
318
|
+
private navigateToStep;
|
|
319
|
+
private navigationHandler;
|
|
320
|
+
private removeItemElements;
|
|
321
|
+
nextStep(): void;
|
|
322
|
+
previousStep(): void;
|
|
323
|
+
reset(): void;
|
|
324
|
+
private updateElementClassArray;
|
|
325
|
+
destroy(): void;
|
|
326
|
+
private wireKeyboardEvent;
|
|
327
|
+
private keyActionHandler;
|
|
328
|
+
private handleNavigation;
|
|
329
|
+
private renderStepperItems;
|
|
330
|
+
/**
|
|
331
|
+
* Called internally if any of the property value changed.
|
|
332
|
+
*
|
|
333
|
+
* @param {StepperModel} newProp - Specifies new properties
|
|
334
|
+
* @param {StepperModel} oldProp - Specifies old properties
|
|
335
|
+
* @returns {void}
|
|
336
|
+
* @private
|
|
337
|
+
*/
|
|
338
|
+
onPropertyChanged(newProp: StepperModel, oldProp?: StepperModel): void;
|
|
339
|
+
}
|