@syncfusion/ej2-vue-navigations 23.2.7 → 24.1.46
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 +26 -0
- package/README.md +1 -1
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion, AppBar, Breadcrumb, Carousel, ContextMenu, Menu, Sidebar, Tab, Toolbar, TreeView } from '@syncfusion/ej2-navigations';
|
|
1
|
+
import { Accordion, AppBar, Breadcrumb, Carousel, ContextMenu, Menu, Sidebar, Stepper, Tab, Toolbar, TreeView } from '@syncfusion/ej2-navigations';
|
|
2
2
|
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
3
3
|
import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -1813,6 +1813,227 @@ const AppBarPlugin = {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
};
|
|
1815
1815
|
|
|
1816
|
-
|
|
1816
|
+
let StepsDirective = vueDefineComponent({
|
|
1817
|
+
inject: { custom: { default: null } },
|
|
1818
|
+
render(createElement) {
|
|
1819
|
+
if (!isExecute) {
|
|
1820
|
+
let h = !isExecute ? gh : createElement;
|
|
1821
|
+
let slots = null;
|
|
1822
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1823
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1824
|
+
}
|
|
1825
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
1826
|
+
}
|
|
1827
|
+
return;
|
|
1828
|
+
},
|
|
1829
|
+
updated() {
|
|
1830
|
+
if (!isExecute && this.custom) {
|
|
1831
|
+
this.custom();
|
|
1832
|
+
}
|
|
1833
|
+
},
|
|
1834
|
+
methods: {
|
|
1835
|
+
getTag() {
|
|
1836
|
+
return 'e-steps';
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
const StepsPlugin = {
|
|
1841
|
+
name: 'e-steps',
|
|
1842
|
+
install(Vue) {
|
|
1843
|
+
Vue.component(StepsPlugin.name, StepsDirective);
|
|
1844
|
+
}
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* 'e-step' directive represents a step of the Vue Stepper
|
|
1848
|
+
* It must be contained in a Stepper component(`ejs-stepper`).
|
|
1849
|
+
* ```html
|
|
1850
|
+
* <ejs-stepper>
|
|
1851
|
+
* <e-steps>
|
|
1852
|
+
* <e-step :iconCss='e-icons e-folder' :text='Step 1' />
|
|
1853
|
+
* <e-step :iconCss='e-icons e-folder' :text='Step 2' />
|
|
1854
|
+
* </e-steps>
|
|
1855
|
+
* </ejs-stepper>
|
|
1856
|
+
* ```
|
|
1857
|
+
*/
|
|
1858
|
+
let StepDirective = vueDefineComponent({
|
|
1859
|
+
render() {
|
|
1860
|
+
return;
|
|
1861
|
+
},
|
|
1862
|
+
methods: {
|
|
1863
|
+
getTag() {
|
|
1864
|
+
return 'e-step';
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
const StepPlugin = {
|
|
1869
|
+
name: 'e-step',
|
|
1870
|
+
install(Vue) {
|
|
1871
|
+
Vue.component(StepPlugin.name, StepDirective);
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
const properties$10 = ['isLazyUpdate', 'plugins', 'activeStep', 'animation', 'cssClass', 'enablePersistence', 'enableRtl', 'labelPosition', 'linear', 'locale', 'orientation', 'readOnly', 'showTooltip', 'stepType', 'steps', 'template', 'tooltipTemplate', 'beforeStepRender', 'created', 'stepChanged', 'stepChanging', 'stepClick'];
|
|
1876
|
+
const modelProps$10 = ['activeStep'];
|
|
1877
|
+
const testProp$10 = getProps({ props: properties$10 });
|
|
1878
|
+
const props$10 = testProp$10[0];
|
|
1879
|
+
const watch$10 = testProp$10[1];
|
|
1880
|
+
const emitProbs$10 = Object.keys(watch$10);
|
|
1881
|
+
emitProbs$10.push('modelchanged', 'update:modelValue');
|
|
1882
|
+
for (let props of modelProps$10) {
|
|
1883
|
+
emitProbs$10.push('update:' + props);
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Represents the Essential JS 2 VueJS Stepper Component.
|
|
1887
|
+
* ```html
|
|
1888
|
+
* <ejs-stepper :steps='stepItems'></ejs-stepper>
|
|
1889
|
+
* ```
|
|
1890
|
+
*/
|
|
1891
|
+
let StepperComponent = vueDefineComponent({
|
|
1892
|
+
name: 'StepperComponent',
|
|
1893
|
+
mixins: [ComponentBase],
|
|
1894
|
+
props: props$10,
|
|
1895
|
+
watch: watch$10,
|
|
1896
|
+
emits: emitProbs$10,
|
|
1897
|
+
model: { event: 'modelchanged' },
|
|
1898
|
+
provide() { return { custom: this.custom }; },
|
|
1899
|
+
data() {
|
|
1900
|
+
return {
|
|
1901
|
+
ej2Instance: new Stepper({}),
|
|
1902
|
+
propKeys: properties$10,
|
|
1903
|
+
models: modelProps$10,
|
|
1904
|
+
hasChildDirective: true,
|
|
1905
|
+
hasInjectedModules: false,
|
|
1906
|
+
tagMapper: { "e-steps": "e-step" },
|
|
1907
|
+
tagNameMapper: {},
|
|
1908
|
+
isVue3: !isExecute,
|
|
1909
|
+
templateCollection: {},
|
|
1910
|
+
};
|
|
1911
|
+
},
|
|
1912
|
+
created() {
|
|
1913
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
1914
|
+
this.ej2Instances.trigger = this.trigger;
|
|
1915
|
+
this.bindProperties();
|
|
1916
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1917
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1918
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1919
|
+
this.updated = this.updated;
|
|
1920
|
+
},
|
|
1921
|
+
render(createElement) {
|
|
1922
|
+
let h = !isExecute ? gh : createElement;
|
|
1923
|
+
let slots = null;
|
|
1924
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1925
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1926
|
+
}
|
|
1927
|
+
return h('nav', slots);
|
|
1928
|
+
},
|
|
1929
|
+
methods: {
|
|
1930
|
+
clearTemplate(templateNames) {
|
|
1931
|
+
if (!templateNames) {
|
|
1932
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1933
|
+
}
|
|
1934
|
+
if (templateNames.length && this.templateCollection) {
|
|
1935
|
+
for (let tempName of templateNames) {
|
|
1936
|
+
let elementCollection = this.templateCollection[tempName];
|
|
1937
|
+
if (elementCollection && elementCollection.length) {
|
|
1938
|
+
for (let ele of elementCollection) {
|
|
1939
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
1940
|
+
if (destroy) {
|
|
1941
|
+
ele.__vue__.$destroy();
|
|
1942
|
+
}
|
|
1943
|
+
if (ele.innerHTML) {
|
|
1944
|
+
ele.innerHTML = '';
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
delete this.templateCollection[tempName];
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
setProperties(prop, muteOnChange) {
|
|
1953
|
+
if (this.isVue3) {
|
|
1954
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1955
|
+
}
|
|
1956
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1957
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1958
|
+
}
|
|
1959
|
+
if (prop && this.models && this.models.length) {
|
|
1960
|
+
Object.keys(prop).map((key) => {
|
|
1961
|
+
this.models.map((model) => {
|
|
1962
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1963
|
+
if (this.isVue3) {
|
|
1964
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
this.$emit('update:' + key, prop[key]);
|
|
1968
|
+
this.$emit('modelchanged', prop[key]);
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1975
|
+
trigger(eventName, eventProp, successHandler) {
|
|
1976
|
+
if (!isExecute) {
|
|
1977
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1978
|
+
}
|
|
1979
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1980
|
+
let key = this.models.toString().match(/checked|value/) || [];
|
|
1981
|
+
let propKey = key[0];
|
|
1982
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1983
|
+
if (!isExecute) {
|
|
1984
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1985
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1986
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
1990
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1991
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
1997
|
+
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1998
|
+
let propKey = key[0];
|
|
1999
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
2000
|
+
if (!isExecute) {
|
|
2001
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
2002
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
2003
|
+
}
|
|
2004
|
+
else {
|
|
2005
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
2006
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
2011
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
2012
|
+
}
|
|
2013
|
+
},
|
|
2014
|
+
custom() {
|
|
2015
|
+
this.updated();
|
|
2016
|
+
},
|
|
2017
|
+
nextStep() {
|
|
2018
|
+
return this.ej2Instances.nextStep();
|
|
2019
|
+
},
|
|
2020
|
+
previousStep() {
|
|
2021
|
+
return this.ej2Instances.previousStep();
|
|
2022
|
+
},
|
|
2023
|
+
reset() {
|
|
2024
|
+
return this.ej2Instances.reset();
|
|
2025
|
+
},
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
const StepperPlugin = {
|
|
2029
|
+
name: 'ejs-stepper',
|
|
2030
|
+
install(Vue) {
|
|
2031
|
+
Vue.component(StepperPlugin.name, StepperComponent);
|
|
2032
|
+
Vue.component(StepPlugin.name, StepDirective);
|
|
2033
|
+
Vue.component(StepsPlugin.name, StepsDirective);
|
|
2034
|
+
}
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2037
|
+
export { AccordionItemsDirective, AccordionItemDirective, AccordionItemsPlugin, AccordionItemPlugin, AccordionComponent, AccordionPlugin, ItemsDirective, ItemDirective, ItemsPlugin, ItemPlugin, ToolbarComponent, ToolbarPlugin, ContextMenuComponent, ContextMenuPlugin, BreadcrumbItemsDirective, BreadcrumbItemDirective, BreadcrumbItemsPlugin, BreadcrumbItemPlugin, BreadcrumbComponent, BreadcrumbPlugin, CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin, CarouselComponent, CarouselPlugin, TabItemsDirective, TabItemDirective, TabItemsPlugin, TabItemPlugin, TabComponent, TabPlugin, TreeViewComponent, TreeViewPlugin, SidebarComponent, SidebarPlugin, MenuItemsDirective, MenuItemDirective, MenuItemsPlugin, MenuItemPlugin, MenuComponent, MenuPlugin, AppBarComponent, AppBarPlugin, StepsDirective, StepDirective, StepsPlugin, StepPlugin, StepperComponent, StepperPlugin };
|
|
1817
2038
|
export * from '@syncfusion/ej2-navigations';
|
|
1818
2039
|
//# sourceMappingURL=ej2-vue-navigations.es2015.js.map
|