@syncfusion/ej2-vue-navigations 23.2.7 → 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 +6 -0
- package/dist/ej2-vue-navigations.umd.min.js +2 -2
- package/dist/ej2-vue-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es2015.js +223 -2
- package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es5.js +227 -2
- package/dist/es6/ej2-vue-navigations.es5.js.map +1 -1
- package/dist/global/ej2-vue-navigations.min.js +2 -2
- package/package.json +11 -10
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/stepper/index.d.ts +2 -0
- package/src/stepper/index.js +2 -0
- package/src/stepper/stepper.component.d.ts +18 -0
- package/src/stepper/stepper.component.js +168 -0
- package/src/stepper/steps.directive.d.ts +24 -0
- package/src/stepper/steps.directive.js +60 -0
- package/stepper.d.ts +4 -0
- package/stepper.js +4 -0
- package/styles/accordion/bootstrap-dark.css +1 -538
- package/styles/accordion/bootstrap.css +1 -539
- package/styles/accordion/bootstrap4.css +1 -538
- package/styles/accordion/bootstrap5-dark.css +1 -540
- package/styles/accordion/bootstrap5.css +1 -540
- package/styles/accordion/fabric-dark.css +1 -538
- package/styles/accordion/fabric.css +1 -539
- package/styles/accordion/fluent-dark.css +1 -539
- package/styles/accordion/fluent.css +1 -539
- package/styles/accordion/highcontrast-light.css +1 -538
- package/styles/accordion/highcontrast.css +1 -539
- package/styles/accordion/material-dark.css +1 -538
- package/styles/accordion/material.css +1 -539
- package/styles/accordion/material3-dark.css +1 -598
- package/styles/accordion/material3.css +1 -654
- package/styles/accordion/tailwind-dark.css +1 -539
- package/styles/accordion/tailwind.css +1 -539
- package/styles/appbar/bootstrap-dark.css +1 -251
- package/styles/appbar/bootstrap.css +1 -251
- package/styles/appbar/bootstrap4.css +1 -251
- package/styles/appbar/bootstrap5-dark.css +1 -251
- package/styles/appbar/bootstrap5.css +1 -251
- package/styles/appbar/fabric-dark.css +1 -251
- package/styles/appbar/fabric.css +1 -251
- package/styles/appbar/fluent-dark.css +1 -251
- package/styles/appbar/fluent.css +1 -251
- package/styles/appbar/highcontrast-light.css +1 -251
- package/styles/appbar/highcontrast.css +1 -251
- package/styles/appbar/material-dark.css +1 -251
- package/styles/appbar/material.css +1 -251
- package/styles/appbar/material3-dark.css +1 -306
- package/styles/appbar/material3.css +1 -362
- package/styles/appbar/tailwind-dark.css +1 -251
- package/styles/appbar/tailwind.css +1 -251
- package/styles/bootstrap-dark.css +1 -10106
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +1 -10122
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +1 -10247
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +1 -10285
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +1 -10285
- package/styles/bootstrap5.scss +1 -0
- package/styles/breadcrumb/bootstrap-dark.css +1 -395
- package/styles/breadcrumb/bootstrap.css +1 -395
- package/styles/breadcrumb/bootstrap4.css +1 -395
- package/styles/breadcrumb/bootstrap5-dark.css +1 -409
- package/styles/breadcrumb/bootstrap5.css +1 -409
- package/styles/breadcrumb/fabric-dark.css +1 -395
- package/styles/breadcrumb/fabric.css +1 -395
- package/styles/breadcrumb/fluent-dark.css +1 -371
- package/styles/breadcrumb/fluent.css +1 -371
- package/styles/breadcrumb/highcontrast-light.css +1 -402
- package/styles/breadcrumb/highcontrast.css +1 -402
- package/styles/breadcrumb/material-dark.css +1 -378
- package/styles/breadcrumb/material.css +1 -378
- package/styles/breadcrumb/material3-dark.css +1 -423
- package/styles/breadcrumb/material3.css +1 -479
- package/styles/breadcrumb/tailwind-dark.css +1 -401
- package/styles/breadcrumb/tailwind.css +1 -401
- package/styles/carousel/bootstrap-dark.css +1 -303
- package/styles/carousel/bootstrap.css +1 -303
- package/styles/carousel/bootstrap4.css +1 -303
- package/styles/carousel/bootstrap5-dark.css +1 -303
- package/styles/carousel/bootstrap5.css +1 -303
- package/styles/carousel/fabric-dark.css +1 -303
- package/styles/carousel/fabric.css +1 -303
- package/styles/carousel/fluent-dark.css +1 -303
- package/styles/carousel/fluent.css +1 -303
- package/styles/carousel/highcontrast-light.css +1 -303
- package/styles/carousel/highcontrast.css +1 -303
- package/styles/carousel/material-dark.css +1 -303
- package/styles/carousel/material.css +1 -303
- package/styles/carousel/material3-dark.css +1 -358
- package/styles/carousel/material3.css +1 -414
- package/styles/carousel/tailwind-dark.css +1 -303
- package/styles/carousel/tailwind.css +1 -303
- package/styles/context-menu/bootstrap-dark.css +1 -366
- package/styles/context-menu/bootstrap.css +1 -367
- package/styles/context-menu/bootstrap4.css +1 -367
- package/styles/context-menu/bootstrap5-dark.css +1 -355
- package/styles/context-menu/bootstrap5.css +1 -355
- package/styles/context-menu/fabric-dark.css +1 -366
- package/styles/context-menu/fabric.css +1 -367
- package/styles/context-menu/fluent-dark.css +1 -363
- package/styles/context-menu/fluent.css +1 -363
- package/styles/context-menu/highcontrast-light.css +1 -366
- package/styles/context-menu/highcontrast.css +1 -367
- package/styles/context-menu/material-dark.css +1 -384
- package/styles/context-menu/material.css +1 -386
- package/styles/context-menu/material3-dark.css +1 -434
- package/styles/context-menu/material3.css +1 -490
- package/styles/context-menu/tailwind-dark.css +1 -379
- package/styles/context-menu/tailwind.css +1 -379
- package/styles/fabric-dark.css +1 -10106
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +1 -10117
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +1 -10250
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1 -10250
- package/styles/fluent.scss +1 -0
- package/styles/h-scroll/bootstrap-dark.css +1 -259
- package/styles/h-scroll/bootstrap.css +1 -260
- package/styles/h-scroll/bootstrap4.css +1 -260
- package/styles/h-scroll/bootstrap5-dark.css +1 -280
- package/styles/h-scroll/bootstrap5.css +1 -280
- package/styles/h-scroll/fabric-dark.css +1 -259
- package/styles/h-scroll/fabric.css +1 -259
- package/styles/h-scroll/fluent-dark.css +1 -280
- package/styles/h-scroll/fluent.css +1 -280
- package/styles/h-scroll/highcontrast-light.css +1 -259
- package/styles/h-scroll/highcontrast.css +1 -259
- package/styles/h-scroll/material-dark.css +1 -279
- package/styles/h-scroll/material.css +1 -280
- package/styles/h-scroll/material3-dark.css +1 -335
- package/styles/h-scroll/material3.css +1 -391
- package/styles/h-scroll/tailwind-dark.css +1 -280
- package/styles/h-scroll/tailwind.css +1 -280
- package/styles/highcontrast-light.css +1 -10107
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +1 -10141
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +1 -10230
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +1 -10250
- package/styles/material.scss +1 -0
- package/styles/material3-dark.css +1 -11012
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.css +1 -11740
- package/styles/material3.scss +1 -0
- package/styles/menu/bootstrap-dark.css +1 -1097
- package/styles/menu/bootstrap.css +1 -1098
- package/styles/menu/bootstrap4.css +1 -1138
- package/styles/menu/bootstrap5-dark.css +1 -1092
- package/styles/menu/bootstrap5.css +1 -1092
- package/styles/menu/fabric-dark.css +1 -1097
- package/styles/menu/fabric.css +1 -1098
- package/styles/menu/fluent-dark.css +1 -1115
- package/styles/menu/fluent.css +1 -1115
- package/styles/menu/highcontrast-light.css +1 -1097
- package/styles/menu/highcontrast.css +1 -1098
- package/styles/menu/material-dark.css +1 -1115
- package/styles/menu/material.css +1 -1117
- package/styles/menu/material3-dark.css +1 -1166
- package/styles/menu/material3.css +1 -1222
- package/styles/menu/tailwind-dark.css +1 -1110
- package/styles/menu/tailwind.css +1 -1110
- package/styles/pager/bootstrap-dark.css +1 -662
- package/styles/pager/bootstrap.css +1 -662
- package/styles/pager/bootstrap4.css +1 -662
- package/styles/pager/bootstrap5-dark.css +1 -697
- package/styles/pager/bootstrap5.css +1 -697
- package/styles/pager/fabric-dark.css +1 -662
- package/styles/pager/fabric.css +1 -662
- package/styles/pager/fluent-dark.css +1 -664
- package/styles/pager/fluent.css +1 -664
- package/styles/pager/highcontrast-light.css +1 -662
- package/styles/pager/highcontrast.css +1 -662
- package/styles/pager/material-dark.css +1 -662
- package/styles/pager/material.css +1 -662
- package/styles/pager/material3-dark.css +1 -766
- package/styles/pager/material3.css +1 -822
- package/styles/pager/tailwind-dark.css +1 -788
- package/styles/pager/tailwind.css +1 -788
- package/styles/sidebar/bootstrap-dark.css +1 -149
- package/styles/sidebar/bootstrap.css +1 -149
- package/styles/sidebar/bootstrap4.css +1 -149
- package/styles/sidebar/bootstrap5-dark.css +1 -147
- package/styles/sidebar/bootstrap5.css +1 -147
- package/styles/sidebar/fabric-dark.css +1 -149
- package/styles/sidebar/fabric.css +1 -149
- package/styles/sidebar/fluent-dark.css +1 -147
- package/styles/sidebar/fluent.css +1 -147
- package/styles/sidebar/highcontrast-light.css +1 -149
- package/styles/sidebar/highcontrast.css +1 -149
- package/styles/sidebar/material-dark.css +1 -149
- package/styles/sidebar/material.css +1 -151
- package/styles/sidebar/material3-dark.css +1 -203
- package/styles/sidebar/material3.css +1 -259
- package/styles/sidebar/tailwind-dark.css +1 -147
- package/styles/sidebar/tailwind.css +1 -147
- package/styles/stepper/bootstrap-dark.css +1 -0
- package/styles/stepper/bootstrap-dark.scss +1 -0
- package/styles/stepper/bootstrap.css +1 -0
- package/styles/stepper/bootstrap.scss +1 -0
- package/styles/stepper/bootstrap4.css +1 -0
- package/styles/stepper/bootstrap4.scss +1 -0
- package/styles/stepper/bootstrap5-dark.css +1 -0
- package/styles/stepper/bootstrap5-dark.scss +1 -0
- package/styles/stepper/bootstrap5.css +1 -0
- package/styles/stepper/bootstrap5.scss +1 -0
- package/styles/stepper/fabric-dark.css +1 -0
- package/styles/stepper/fabric-dark.scss +1 -0
- package/styles/stepper/fabric.css +1 -0
- package/styles/stepper/fabric.scss +1 -0
- package/styles/stepper/fluent-dark.css +1 -0
- package/styles/stepper/fluent-dark.scss +1 -0
- package/styles/stepper/fluent.css +1 -0
- package/styles/stepper/fluent.scss +1 -0
- package/styles/stepper/highcontrast-light.css +1 -0
- package/styles/stepper/highcontrast-light.scss +1 -0
- package/styles/stepper/highcontrast.css +1 -0
- package/styles/stepper/highcontrast.scss +1 -0
- package/styles/stepper/material-dark.css +1 -0
- package/styles/stepper/material-dark.scss +1 -0
- package/styles/stepper/material.css +1 -0
- package/styles/stepper/material.scss +1 -0
- package/styles/stepper/material3-dark.css +1 -0
- package/styles/stepper/material3-dark.scss +2 -0
- package/styles/stepper/material3.css +1 -0
- package/styles/stepper/material3.scss +2 -0
- package/styles/stepper/tailwind-dark.css +1 -0
- package/styles/stepper/tailwind-dark.scss +1 -0
- package/styles/stepper/tailwind.css +1 -0
- package/styles/stepper/tailwind.scss +1 -0
- package/styles/tab/bootstrap-dark.css +1 -4041
- package/styles/tab/bootstrap.css +1 -4046
- package/styles/tab/bootstrap4.css +1 -4044
- package/styles/tab/bootstrap5-dark.css +1 -4042
- package/styles/tab/bootstrap5.css +1 -4042
- package/styles/tab/fabric-dark.css +1 -4041
- package/styles/tab/fabric.css +1 -4046
- package/styles/tab/fluent-dark.css +1 -4044
- package/styles/tab/fluent.css +1 -4044
- package/styles/tab/highcontrast-light.css +1 -4035
- package/styles/tab/highcontrast.css +1 -4046
- package/styles/tab/material-dark.css +1 -4062
- package/styles/tab/material.css +1 -4068
- package/styles/tab/material3-dark.css +1 -4108
- package/styles/tab/material3.css +1 -4164
- package/styles/tab/tailwind-dark.css +1 -4058
- package/styles/tab/tailwind.css +1 -4058
- package/styles/tailwind-dark.css +1 -10416
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +1 -10416
- package/styles/tailwind.scss +1 -0
- package/styles/toolbar/bootstrap-dark.css +1 -1077
- package/styles/toolbar/bootstrap.css +1 -1078
- package/styles/toolbar/bootstrap4.css +1 -1078
- package/styles/toolbar/bootstrap5-dark.css +1 -1089
- package/styles/toolbar/bootstrap5.css +1 -1089
- package/styles/toolbar/fabric-dark.css +1 -1077
- package/styles/toolbar/fabric.css +1 -1078
- package/styles/toolbar/fluent-dark.css +1 -1088
- package/styles/toolbar/fluent.css +1 -1088
- package/styles/toolbar/highcontrast-light.css +1 -1077
- package/styles/toolbar/highcontrast.css +1 -1078
- package/styles/toolbar/material-dark.css +1 -1115
- package/styles/toolbar/material.css +1 -1118
- package/styles/toolbar/material3-dark.css +1 -1144
- package/styles/toolbar/material3.css +1 -1200
- package/styles/toolbar/tailwind-dark.css +1 -1088
- package/styles/toolbar/tailwind.css +1 -1088
- package/styles/treeview/bootstrap-dark.css +1 -755
- package/styles/treeview/bootstrap.css +1 -760
- package/styles/treeview/bootstrap4.css +1 -848
- package/styles/treeview/bootstrap5-dark.css +1 -866
- package/styles/treeview/bootstrap5.css +1 -866
- package/styles/treeview/fabric-dark.css +1 -755
- package/styles/treeview/fabric.css +1 -756
- package/styles/treeview/fluent-dark.css +1 -871
- package/styles/treeview/fluent.css +1 -871
- package/styles/treeview/highcontrast-light.css +1 -755
- package/styles/treeview/highcontrast.css +1 -773
- package/styles/treeview/material-dark.css +1 -761
- package/styles/treeview/material.css +1 -763
- package/styles/treeview/material3-dark.css +1 -902
- package/styles/treeview/material3.css +1 -958
- package/styles/treeview/tailwind-dark.css +1 -858
- package/styles/treeview/tailwind.css +1 -858
- package/styles/v-scroll/bootstrap-dark.css +1 -201
- package/styles/v-scroll/bootstrap.css +1 -202
- package/styles/v-scroll/bootstrap4.css +1 -202
- package/styles/v-scroll/bootstrap5-dark.css +1 -202
- package/styles/v-scroll/bootstrap5.css +1 -202
- package/styles/v-scroll/fabric-dark.css +1 -201
- package/styles/v-scroll/fabric.css +1 -202
- package/styles/v-scroll/fluent-dark.css +1 -202
- package/styles/v-scroll/fluent.css +1 -202
- package/styles/v-scroll/highcontrast-light.css +1 -201
- package/styles/v-scroll/highcontrast.css +1 -202
- package/styles/v-scroll/material-dark.css +1 -221
- package/styles/v-scroll/material.css +1 -222
- package/styles/v-scroll/material3-dark.css +1 -257
- package/styles/v-scroll/material3.css +1 -313
- package/styles/v-scroll/tailwind-dark.css +1 -202
- package/styles/v-scroll/tailwind.css +1 -202
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-navigations@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-navigations@22.41.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rhRthb1suS66caaSimBR1+1PoTJFizzbmowfL7knfWCn3RuaBcRlMFgzo4mo27P3wffAtFGuhx+CTe8omYtsvQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-22.41.2.tgz",
|
|
23
|
+
"_shasum": "45571d978c1c0aa89a234406aaca3bf20d654864",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-navigations@*",
|
|
25
|
-
"_where": "/jenkins/workspace/elease-
|
|
25
|
+
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
26
26
|
"author": {
|
|
27
27
|
"name": "Syncfusion Inc."
|
|
28
28
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~
|
|
35
|
-
"@syncfusion/ej2-navigations": "
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~
|
|
34
|
+
"@syncfusion/ej2-base": "~24.1.41",
|
|
35
|
+
"@syncfusion/ej2-navigations": "24.1.41",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~24.1.41"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"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 for Vue",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"vue menu component",
|
|
56
56
|
"vue breadcrumb",
|
|
57
57
|
"vue carousel",
|
|
58
|
-
"vue appbar"
|
|
58
|
+
"vue appbar",
|
|
59
|
+
"vue stepper"
|
|
59
60
|
],
|
|
60
61
|
"license": "SEE LICENSE IN license",
|
|
61
62
|
"main": "./dist/ej2-vue-navigations.umd.min.js",
|
|
@@ -69,6 +70,6 @@
|
|
|
69
70
|
"ci-publish": "gulp ci-publish",
|
|
70
71
|
"compile": "gulp ci-compile && gulp vue-global-script"
|
|
71
72
|
},
|
|
72
|
-
"version": "
|
|
73
|
+
"version": "24.1.41",
|
|
73
74
|
"sideEffects": false
|
|
74
75
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -15,3 +15,5 @@ export { SidebarComponent, SidebarPlugin } from './sidebar/sidebar.component';
|
|
|
15
15
|
export { MenuItemsDirective, MenuItemDirective, MenuItemsPlugin, MenuItemPlugin } from './menu/items.directive';
|
|
16
16
|
export { MenuComponent, MenuPlugin } from './menu/menu.component';
|
|
17
17
|
export { AppBarComponent, AppBarPlugin } from './appbar/appbar.component';
|
|
18
|
+
export { StepsDirective, StepDirective, StepsPlugin, StepPlugin } from './stepper/steps.directive';
|
|
19
|
+
export { StepperComponent, StepperPlugin } from './stepper/stepper.component';
|
package/src/index.js
CHANGED
|
@@ -15,3 +15,5 @@ export { SidebarComponent, SidebarPlugin } from './sidebar/sidebar.component';
|
|
|
15
15
|
export { MenuItemsDirective, MenuItemDirective, MenuItemsPlugin, MenuItemPlugin } from './menu/items.directive';
|
|
16
16
|
export { MenuComponent, MenuPlugin } from './menu/menu.component';
|
|
17
17
|
export { AppBarComponent, AppBarPlugin } from './appbar/appbar.component';
|
|
18
|
+
export { StepsDirective, StepDirective, StepsPlugin, StepPlugin } from './stepper/steps.directive';
|
|
19
|
+
export { StepperComponent, StepperPlugin } from './stepper/stepper.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineVueComponent } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
import { StepperModel } from '@syncfusion/ej2-navigations';
|
|
3
|
+
export declare const properties: string[];
|
|
4
|
+
export declare const modelProps: string[];
|
|
5
|
+
export declare const testProp: any;
|
|
6
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
7
|
+
/**
|
|
8
|
+
* Represents the Essential JS 2 VueJS Stepper Component.
|
|
9
|
+
* ```html
|
|
10
|
+
* <ejs-stepper :steps='stepItems'></ejs-stepper>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare let StepperComponent: DefineVueComponent<StepperModel>;
|
|
14
|
+
export declare type StepperComponent = InstanceType<typeof StepperComponent>;
|
|
15
|
+
export declare const StepperPlugin: {
|
|
16
|
+
name: string;
|
|
17
|
+
install(Vue: any): void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
3
|
+
import { isUndefined } from '@syncfusion/ej2-base';
|
|
4
|
+
import { Stepper } from '@syncfusion/ej2-navigations';
|
|
5
|
+
import { StepsDirective, StepDirective, StepsPlugin, StepPlugin } from './steps.directive';
|
|
6
|
+
export var properties = ['isLazyUpdate', 'plugins', 'activeStep', 'animation', 'cssClass', 'enablePersistence', 'enableRtl', 'labelPosition', 'linear', 'locale', 'orientation', 'readOnly', 'showTooltip', 'stepType', 'steps', 'template', 'tooltipTemplate', 'beforeStepRender', 'created', 'stepChanged', 'stepChanging', 'stepClick'];
|
|
7
|
+
export var modelProps = ['activeStep'];
|
|
8
|
+
export var testProp = getProps({ props: properties });
|
|
9
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
10
|
+
emitProbs.push('modelchanged', 'update:modelValue');
|
|
11
|
+
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
12
|
+
var props_1 = modelProps_1[_i];
|
|
13
|
+
emitProbs.push('update:' + props_1);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents the Essential JS 2 VueJS Stepper Component.
|
|
17
|
+
* ```html
|
|
18
|
+
* <ejs-stepper :steps='stepItems'></ejs-stepper>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export var StepperComponent = vueDefineComponent({
|
|
22
|
+
name: 'StepperComponent',
|
|
23
|
+
mixins: [ComponentBase],
|
|
24
|
+
props: props,
|
|
25
|
+
watch: watch,
|
|
26
|
+
emits: emitProbs,
|
|
27
|
+
model: { event: 'modelchanged' },
|
|
28
|
+
provide: function () { return { custom: this.custom }; },
|
|
29
|
+
data: function () {
|
|
30
|
+
return {
|
|
31
|
+
ej2Instance: new Stepper({}),
|
|
32
|
+
propKeys: properties,
|
|
33
|
+
models: modelProps,
|
|
34
|
+
hasChildDirective: true,
|
|
35
|
+
hasInjectedModules: false,
|
|
36
|
+
tagMapper: { "e-steps": "e-step" },
|
|
37
|
+
tagNameMapper: {},
|
|
38
|
+
isVue3: !isExecute,
|
|
39
|
+
templateCollection: {},
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
created: function () {
|
|
43
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
44
|
+
this.ej2Instances.trigger = this.trigger;
|
|
45
|
+
this.bindProperties();
|
|
46
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
47
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
48
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
49
|
+
this.updated = this.updated;
|
|
50
|
+
},
|
|
51
|
+
render: function (createElement) {
|
|
52
|
+
var h = !isExecute ? gh : createElement;
|
|
53
|
+
var slots = null;
|
|
54
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
55
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
56
|
+
}
|
|
57
|
+
return h('nav', slots);
|
|
58
|
+
},
|
|
59
|
+
methods: {
|
|
60
|
+
clearTemplate: function (templateNames) {
|
|
61
|
+
if (!templateNames) {
|
|
62
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
63
|
+
}
|
|
64
|
+
if (templateNames.length && this.templateCollection) {
|
|
65
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
66
|
+
var tempName = templateNames_1[_i];
|
|
67
|
+
var elementCollection = this.templateCollection[tempName];
|
|
68
|
+
if (elementCollection && elementCollection.length) {
|
|
69
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
70
|
+
var ele = elementCollection_1[_a];
|
|
71
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
72
|
+
if (destroy) {
|
|
73
|
+
ele.__vue__.$destroy();
|
|
74
|
+
}
|
|
75
|
+
if (ele.innerHTML) {
|
|
76
|
+
ele.innerHTML = '';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
delete this.templateCollection[tempName];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
setProperties: function (prop, muteOnChange) {
|
|
85
|
+
var _this = this;
|
|
86
|
+
if (this.isVue3) {
|
|
87
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
88
|
+
}
|
|
89
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
90
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
91
|
+
}
|
|
92
|
+
if (prop && this.models && this.models.length) {
|
|
93
|
+
Object.keys(prop).map(function (key) {
|
|
94
|
+
_this.models.map(function (model) {
|
|
95
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
96
|
+
if (_this.isVue3) {
|
|
97
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
_this.$emit('update:' + key, prop[key]);
|
|
101
|
+
_this.$emit('modelchanged', prop[key]);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
109
|
+
if (!isExecute) {
|
|
110
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
111
|
+
}
|
|
112
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
113
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
114
|
+
var propKey = key[0];
|
|
115
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
116
|
+
if (!isExecute) {
|
|
117
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
118
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
119
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
123
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
124
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
130
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
131
|
+
var propKey = key[0];
|
|
132
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
133
|
+
if (!isExecute) {
|
|
134
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
135
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
139
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
144
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
custom: function () {
|
|
148
|
+
this.updated();
|
|
149
|
+
},
|
|
150
|
+
nextStep: function () {
|
|
151
|
+
return this.ej2Instances.nextStep();
|
|
152
|
+
},
|
|
153
|
+
previousStep: function () {
|
|
154
|
+
return this.ej2Instances.previousStep();
|
|
155
|
+
},
|
|
156
|
+
reset: function () {
|
|
157
|
+
return this.ej2Instances.reset();
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
export var StepperPlugin = {
|
|
162
|
+
name: 'ejs-stepper',
|
|
163
|
+
install: function (Vue) {
|
|
164
|
+
Vue.component(StepperPlugin.name, StepperComponent);
|
|
165
|
+
Vue.component(StepPlugin.name, StepDirective);
|
|
166
|
+
Vue.component(StepsPlugin.name, StepsDirective);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DefineVueDirective } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
import { StepModel } from '@syncfusion/ej2-navigations';
|
|
3
|
+
export declare let StepsDirective: any;
|
|
4
|
+
export declare const StepsPlugin: {
|
|
5
|
+
name: string;
|
|
6
|
+
install(Vue: any): void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 'e-step' directive represents a step of the Vue Stepper
|
|
10
|
+
* It must be contained in a Stepper component(`ejs-stepper`).
|
|
11
|
+
* ```html
|
|
12
|
+
* <ejs-stepper>
|
|
13
|
+
* <e-steps>
|
|
14
|
+
* <e-step :icon='e-icons e-folder' :text='Step 1' />
|
|
15
|
+
* <e-step :icon='e-icons e-folder' :text='Step 2' />
|
|
16
|
+
* </e-steps>
|
|
17
|
+
* </ejs-stepper>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare let StepDirective: DefineVueDirective<StepModel>;
|
|
21
|
+
export declare const StepPlugin: {
|
|
22
|
+
name: string;
|
|
23
|
+
install(Vue: any): void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
|
+
export var StepsDirective = vueDefineComponent({
|
|
4
|
+
inject: { custom: { default: null } },
|
|
5
|
+
render: function (createElement) {
|
|
6
|
+
if (!isExecute) {
|
|
7
|
+
var h = !isExecute ? gh : createElement;
|
|
8
|
+
var slots = null;
|
|
9
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
10
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
11
|
+
}
|
|
12
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
13
|
+
}
|
|
14
|
+
return;
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
17
|
+
if (!isExecute && this.custom) {
|
|
18
|
+
this.custom();
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
getTag: function () {
|
|
23
|
+
return 'e-steps';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export var StepsPlugin = {
|
|
28
|
+
name: 'e-steps',
|
|
29
|
+
install: function (Vue) {
|
|
30
|
+
Vue.component(StepsPlugin.name, StepsDirective);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 'e-step' directive represents a step of the Vue Stepper
|
|
35
|
+
* It must be contained in a Stepper component(`ejs-stepper`).
|
|
36
|
+
* ```html
|
|
37
|
+
* <ejs-stepper>
|
|
38
|
+
* <e-steps>
|
|
39
|
+
* <e-step :icon='e-icons e-folder' :text='Step 1' />
|
|
40
|
+
* <e-step :icon='e-icons e-folder' :text='Step 2' />
|
|
41
|
+
* </e-steps>
|
|
42
|
+
* </ejs-stepper>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export var StepDirective = vueDefineComponent({
|
|
46
|
+
render: function () {
|
|
47
|
+
return;
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
getTag: function () {
|
|
51
|
+
return 'e-step';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export var StepPlugin = {
|
|
56
|
+
name: 'e-step',
|
|
57
|
+
install: function (Vue) {
|
|
58
|
+
Vue.component(StepPlugin.name, StepDirective);
|
|
59
|
+
}
|
|
60
|
+
};
|
package/stepper.d.ts
ADDED
package/stepper.js
ADDED