@syncfusion/ej2-vue-navigations 20.2.50 → 20.3.48
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 +36 -0
- package/README.md +14 -0
- package/appbar.d.ts +4 -0
- package/appbar.js +4 -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 +224 -106
- package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es5.js +233 -106
- 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 -9
- package/src/accordion/accordion.component.d.ts +0 -1
- package/src/accordion/accordion.component.js +3 -4
- package/src/accordion/items.directive.d.ts +0 -1
- package/src/accordion/items.directive.js +5 -6
- package/src/appbar/appbar.component.d.ts +35 -0
- package/src/appbar/appbar.component.js +142 -0
- package/src/appbar/index.d.ts +1 -0
- package/src/appbar/index.js +1 -0
- package/src/breadcrumb/breadcrumb.component.d.ts +0 -1
- package/src/breadcrumb/breadcrumb.component.js +3 -4
- package/src/breadcrumb/items.directive.d.ts +0 -1
- package/src/breadcrumb/items.directive.js +5 -6
- package/src/carousel/carousel.component.d.ts +0 -1
- package/src/carousel/carousel.component.js +4 -5
- package/src/carousel/items.directive.d.ts +0 -1
- package/src/carousel/items.directive.js +5 -6
- package/src/context-menu/contextmenu.component.d.ts +0 -1
- package/src/context-menu/contextmenu.component.js +3 -4
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/menu/items.directive.d.ts +0 -1
- package/src/menu/items.directive.js +5 -6
- package/src/menu/menu.component.d.ts +0 -1
- package/src/menu/menu.component.js +3 -4
- package/src/sidebar/sidebar.component.d.ts +0 -1
- package/src/sidebar/sidebar.component.js +3 -4
- package/src/tab/items.directive.d.ts +0 -1
- package/src/tab/items.directive.js +5 -6
- package/src/tab/tab.component.d.ts +1 -1
- package/src/tab/tab.component.js +6 -4
- package/src/toolbar/items.directive.d.ts +0 -1
- package/src/toolbar/items.directive.js +5 -6
- package/src/toolbar/toolbar.component.d.ts +0 -1
- package/src/toolbar/toolbar.component.js +3 -4
- package/src/treeview/treeview.component.d.ts +0 -1
- package/src/treeview/treeview.component.js +3 -4
- package/styles/accordion/bootstrap-dark.css +1 -0
- package/styles/accordion/bootstrap.css +1 -0
- package/styles/accordion/bootstrap4.css +1 -0
- package/styles/accordion/bootstrap5-dark.css +2 -0
- package/styles/accordion/bootstrap5.css +2 -0
- package/styles/accordion/fabric-dark.css +1 -0
- package/styles/accordion/fabric.css +1 -0
- package/styles/accordion/fluent-dark.css +1 -0
- package/styles/accordion/fluent.css +1 -0
- package/styles/accordion/highcontrast-light.css +1 -0
- package/styles/accordion/highcontrast.css +1 -0
- package/styles/accordion/material-dark.css +1 -0
- package/styles/accordion/material.css +1 -0
- package/styles/accordion/tailwind-dark.css +1 -0
- package/styles/accordion/tailwind.css +1 -0
- package/styles/appbar/bootstrap-dark.css +244 -0
- package/styles/appbar/bootstrap-dark.scss +1 -0
- package/styles/appbar/bootstrap.css +244 -0
- package/styles/appbar/bootstrap.scss +1 -0
- package/styles/appbar/bootstrap4.css +244 -0
- package/styles/appbar/bootstrap4.scss +1 -0
- package/styles/appbar/bootstrap5-dark.css +244 -0
- package/styles/appbar/bootstrap5-dark.scss +1 -0
- package/styles/appbar/bootstrap5.css +244 -0
- package/styles/appbar/bootstrap5.scss +1 -0
- package/styles/appbar/fabric-dark.css +244 -0
- package/styles/appbar/fabric-dark.scss +1 -0
- package/styles/appbar/fabric.css +244 -0
- package/styles/appbar/fabric.scss +1 -0
- package/styles/appbar/fluent-dark.css +244 -0
- package/styles/appbar/fluent-dark.scss +1 -0
- package/styles/appbar/fluent.css +244 -0
- package/styles/appbar/fluent.scss +1 -0
- package/styles/appbar/highcontrast-light.css +244 -0
- package/styles/appbar/highcontrast-light.scss +1 -0
- package/styles/appbar/highcontrast.css +244 -0
- package/styles/appbar/highcontrast.scss +1 -0
- package/styles/appbar/material-dark.css +245 -0
- package/styles/appbar/material-dark.scss +1 -0
- package/styles/appbar/material.css +245 -0
- package/styles/appbar/material.scss +1 -0
- package/styles/appbar/tailwind-dark.css +245 -0
- package/styles/appbar/tailwind-dark.scss +1 -0
- package/styles/appbar/tailwind.css +245 -0
- package/styles/appbar/tailwind.scss +1 -0
- package/styles/bootstrap-dark.css +340 -21
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +345 -26
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +348 -29
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +360 -36
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +360 -36
- package/styles/bootstrap5.scss +1 -0
- package/styles/carousel/bootstrap-dark.css +46 -11
- package/styles/carousel/bootstrap.css +46 -11
- package/styles/carousel/bootstrap4.css +46 -11
- package/styles/carousel/bootstrap5-dark.css +46 -11
- package/styles/carousel/bootstrap5.css +46 -11
- package/styles/carousel/fabric-dark.css +46 -11
- package/styles/carousel/fabric.css +46 -11
- package/styles/carousel/fluent-dark.css +46 -11
- package/styles/carousel/fluent.css +46 -11
- package/styles/carousel/highcontrast-light.css +46 -11
- package/styles/carousel/highcontrast.css +46 -11
- package/styles/carousel/material-dark.css +46 -11
- package/styles/carousel/material.css +46 -11
- package/styles/carousel/tailwind-dark.css +46 -11
- package/styles/carousel/tailwind.css +46 -11
- package/styles/context-menu/bootstrap4.css +2 -2
- package/styles/context-menu/bootstrap5-dark.css +3 -3
- package/styles/context-menu/bootstrap5.css +3 -3
- package/styles/context-menu/fluent-dark.css +1 -1
- package/styles/context-menu/fluent.css +1 -1
- package/styles/context-menu/tailwind-dark.css +1 -1
- package/styles/context-menu/tailwind.css +1 -1
- package/styles/fabric-dark.css +340 -21
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +340 -21
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +352 -33
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +352 -33
- package/styles/fluent.scss +1 -0
- package/styles/h-scroll/bootstrap-dark.css +0 -2
- package/styles/h-scroll/bootstrap.css +0 -2
- package/styles/h-scroll/bootstrap4.css +0 -2
- package/styles/h-scroll/bootstrap5-dark.css +0 -2
- package/styles/h-scroll/bootstrap5.css +0 -2
- package/styles/h-scroll/fabric-dark.css +0 -2
- package/styles/h-scroll/fabric.css +0 -2
- package/styles/h-scroll/fluent-dark.css +0 -2
- package/styles/h-scroll/fluent.css +0 -2
- package/styles/h-scroll/highcontrast-light.css +0 -2
- package/styles/h-scroll/highcontrast.css +0 -2
- package/styles/h-scroll/material-dark.css +0 -2
- package/styles/h-scroll/material.css +0 -2
- package/styles/h-scroll/tailwind-dark.css +0 -2
- package/styles/h-scroll/tailwind.css +0 -2
- package/styles/highcontrast-light.css +339 -20
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +339 -20
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +339 -20
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +339 -20
- package/styles/material.scss +1 -0
- package/styles/menu/bootstrap-dark.css +22 -0
- package/styles/menu/bootstrap.css +22 -0
- package/styles/menu/bootstrap4.css +22 -0
- package/styles/menu/bootstrap5-dark.css +23 -1
- package/styles/menu/bootstrap5.css +23 -1
- package/styles/menu/fabric-dark.css +22 -0
- package/styles/menu/fabric.css +22 -0
- package/styles/menu/fluent-dark.css +23 -1
- package/styles/menu/fluent.css +23 -1
- package/styles/menu/highcontrast-light.css +22 -0
- package/styles/menu/highcontrast.css +22 -0
- package/styles/menu/material-dark.css +22 -0
- package/styles/menu/material.css +22 -0
- package/styles/menu/tailwind-dark.css +23 -1
- package/styles/menu/tailwind.css +23 -1
- package/styles/pager/bootstrap-dark.css +5 -3
- package/styles/pager/bootstrap.css +10 -8
- package/styles/pager/bootstrap4.css +11 -9
- package/styles/pager/bootstrap5-dark.css +14 -12
- package/styles/pager/bootstrap5.css +14 -12
- package/styles/pager/fabric-dark.css +5 -3
- package/styles/pager/fabric.css +5 -3
- package/styles/pager/fluent-dark.css +6 -4
- package/styles/pager/fluent.css +6 -4
- package/styles/pager/highcontrast-light.css +4 -2
- package/styles/pager/highcontrast.css +4 -2
- package/styles/pager/material-dark.css +4 -2
- package/styles/pager/material.css +4 -2
- package/styles/pager/tailwind-dark.css +19 -17
- package/styles/pager/tailwind.css +19 -17
- package/styles/sidebar/bootstrap-dark.css +4 -0
- package/styles/sidebar/bootstrap.css +4 -0
- package/styles/sidebar/bootstrap4.css +4 -0
- package/styles/sidebar/bootstrap5-dark.css +4 -0
- package/styles/sidebar/bootstrap5.css +4 -0
- package/styles/sidebar/fabric-dark.css +4 -0
- package/styles/sidebar/fabric.css +4 -0
- package/styles/sidebar/fluent-dark.css +4 -0
- package/styles/sidebar/fluent.css +4 -0
- package/styles/sidebar/highcontrast-light.css +4 -0
- package/styles/sidebar/highcontrast.css +4 -0
- package/styles/sidebar/material-dark.css +4 -0
- package/styles/sidebar/material.css +4 -0
- package/styles/sidebar/tailwind-dark.css +4 -0
- package/styles/sidebar/tailwind.css +4 -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 +5 -2
- package/styles/tab/bootstrap5.css +5 -2
- package/styles/tab/fabric-dark.css +1 -1
- package/styles/tab/fabric.css +1 -1
- package/styles/tab/fluent-dark.css +5 -5
- package/styles/tab/fluent.css +5 -5
- 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/tab/tailwind-dark.css +1 -1
- package/styles/tab/tailwind.css +1 -1
- package/styles/tailwind-dark.css +359 -38
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +359 -38
- package/styles/tailwind.scss +1 -0
- package/styles/toolbar/bootstrap-dark.css +10 -2
- package/styles/toolbar/bootstrap.css +10 -2
- package/styles/toolbar/bootstrap4.css +10 -2
- package/styles/toolbar/bootstrap5-dark.css +12 -3
- package/styles/toolbar/bootstrap5.css +12 -3
- package/styles/toolbar/fabric-dark.css +10 -2
- package/styles/toolbar/fabric.css +10 -2
- package/styles/toolbar/fluent-dark.css +15 -7
- package/styles/toolbar/fluent.css +15 -7
- package/styles/toolbar/highcontrast-light.css +10 -2
- package/styles/toolbar/highcontrast.css +10 -2
- package/styles/toolbar/material-dark.css +10 -2
- package/styles/toolbar/material.css +10 -2
- package/styles/toolbar/tailwind-dark.css +11 -3
- package/styles/toolbar/tailwind.css +11 -3
- package/styles/treeview/bootstrap-dark.css +6 -0
- package/styles/treeview/bootstrap.css +6 -0
- package/styles/treeview/bootstrap4.css +6 -0
- package/styles/treeview/bootstrap5-dark.css +6 -0
- package/styles/treeview/bootstrap5.css +6 -0
- package/styles/treeview/fabric-dark.css +6 -0
- package/styles/treeview/fabric.css +6 -0
- package/styles/treeview/fluent-dark.css +6 -0
- package/styles/treeview/fluent.css +6 -0
- package/styles/treeview/highcontrast-light.css +6 -0
- package/styles/treeview/highcontrast.css +6 -0
- package/styles/treeview/material-dark.css +6 -0
- package/styles/treeview/material.css +6 -0
- package/styles/treeview/tailwind-dark.css +7 -0
- package/styles/treeview/tailwind.css +7 -0
- package/styles/v-scroll/bootstrap-dark.css +0 -2
- package/styles/v-scroll/bootstrap.css +0 -2
- package/styles/v-scroll/bootstrap4.css +0 -2
- package/styles/v-scroll/bootstrap5-dark.css +0 -2
- package/styles/v-scroll/bootstrap5.css +0 -2
- package/styles/v-scroll/fabric-dark.css +0 -2
- package/styles/v-scroll/fabric.css +0 -2
- package/styles/v-scroll/fluent-dark.css +0 -2
- package/styles/v-scroll/fluent.css +0 -2
- package/styles/v-scroll/highcontrast-light.css +0 -2
- package/styles/v-scroll/highcontrast.css +0 -2
- package/styles/v-scroll/material-dark.css +0 -2
- package/styles/v-scroll/material.css +0 -2
- package/styles/v-scroll/tailwind-dark.css +0 -2
- package/styles/v-scroll/tailwind.css +0 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-navigations@20.
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-navigations@20.3.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-JBYqvoO+7CrcTMJsp83x3sEaC5t9j8lyW3ZobadgWpg8i6xZaOiyJwLLdPFVf2L/Ydx0S7jGRNd3ie8dXyvsTw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-20.
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-20.3.47.tgz",
|
|
23
|
+
"_shasum": "c70f7b46c59070908d9b9f41231430a08d790989",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-navigations@*",
|
|
25
25
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
26
26
|
"author": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~20.
|
|
35
|
-
"@syncfusion/ej2-navigations": "20.
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~20.
|
|
34
|
+
"@syncfusion/ej2-base": "~20.3.48",
|
|
35
|
+
"@syncfusion/ej2-navigations": "20.3.48",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~20.3.48"
|
|
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",
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"tree node template",
|
|
143
143
|
"tree multi selection",
|
|
144
144
|
"carousel",
|
|
145
|
+
"appbar",
|
|
145
146
|
"vue",
|
|
146
147
|
"ej2-vue-navigations",
|
|
147
148
|
" vue-navigations",
|
|
@@ -155,7 +156,8 @@
|
|
|
155
156
|
"vue menu",
|
|
156
157
|
"vue menu component",
|
|
157
158
|
"vue breadcrumb",
|
|
158
|
-
"vue carousel"
|
|
159
|
+
"vue carousel",
|
|
160
|
+
"vue appbar"
|
|
159
161
|
],
|
|
160
162
|
"license": "SEE LICENSE IN license",
|
|
161
163
|
"main": "./dist/ej2-vue-navigations.umd.min.js",
|
|
@@ -168,6 +170,6 @@
|
|
|
168
170
|
"scripts": {
|
|
169
171
|
"postinstall": "node ../ej2-vue-base/postinstall.js"
|
|
170
172
|
},
|
|
171
|
-
"version": "20.
|
|
173
|
+
"version": "20.3.48",
|
|
172
174
|
"sideEffects": false
|
|
173
175
|
}
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
21
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
22
22
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Accordion } from '@syncfusion/ej2-navigations';
|
|
24
24
|
import { AccordionItemsDirective, AccordionItemDirective, AccordionItemsPlugin, AccordionItemPlugin } from './items.directive';
|
|
@@ -34,7 +34,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
34
34
|
var props_1 = modelProps_1[_i];
|
|
35
35
|
emitProbs.push('update:' + props_1);
|
|
36
36
|
}
|
|
37
|
-
export var isExecute = gh ? false : true;
|
|
38
37
|
/**
|
|
39
38
|
* Represents the VueJS Accordion Component.
|
|
40
39
|
* ```html
|
|
@@ -150,10 +149,10 @@ var AccordionComponent = /** @class */ (function (_super) {
|
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
151
|
AccordionComponent.prototype.render = function (createElement) {
|
|
153
|
-
var h = gh
|
|
152
|
+
var h = !isExecute ? gh : createElement;
|
|
154
153
|
var slots = null;
|
|
155
154
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
156
|
-
slots =
|
|
155
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
157
156
|
}
|
|
158
157
|
return h('div', slots);
|
|
159
158
|
};
|
|
@@ -17,12 +17,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
20
|
+
import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
22
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
23
|
import Vue from 'vue';
|
|
24
24
|
import { Options } from 'vue-class-component';
|
|
25
|
-
export var isExecute = gh ? false : true;
|
|
26
25
|
var vueImport;
|
|
27
26
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
28
27
|
vueImport = Vue3.Vue;
|
|
@@ -36,18 +35,18 @@ var AccordionItemsDirective = /** @class */ (function (_super) {
|
|
|
36
35
|
return _super.call(this, arguments) || this;
|
|
37
36
|
}
|
|
38
37
|
AccordionItemsDirective.prototype.render = function (createElement) {
|
|
39
|
-
if (
|
|
40
|
-
var h = gh
|
|
38
|
+
if (!isExecute) {
|
|
39
|
+
var h = !isExecute ? gh : createElement;
|
|
41
40
|
var slots = null;
|
|
42
41
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
-
slots =
|
|
42
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
44
43
|
}
|
|
45
44
|
return h('div', { class: 'e-directive' }, slots);
|
|
46
45
|
}
|
|
47
46
|
return;
|
|
48
47
|
};
|
|
49
48
|
AccordionItemsDirective.prototype.updated = function () {
|
|
50
|
-
if (
|
|
49
|
+
if (!isExecute && this.custom) {
|
|
51
50
|
this.custom();
|
|
52
51
|
}
|
|
53
52
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
export declare const properties: string[];
|
|
3
|
+
export declare const modelProps: string[];
|
|
4
|
+
export declare const testProp: any;
|
|
5
|
+
export declare const props: any;
|
|
6
|
+
export declare const watch: any;
|
|
7
|
+
export declare const emitProbs: any;
|
|
8
|
+
/**
|
|
9
|
+
* Represents the Essential JS 2 VueJS AppBar Component.
|
|
10
|
+
* ```html
|
|
11
|
+
* <ejs-appbar></ejs-appbar>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class AppBarComponent extends ComponentBase {
|
|
15
|
+
ej2Instances: any;
|
|
16
|
+
propKeys: string[];
|
|
17
|
+
models: string[];
|
|
18
|
+
hasChildDirective: boolean;
|
|
19
|
+
protected hasInjectedModules: boolean;
|
|
20
|
+
tagMapper: {
|
|
21
|
+
[key: string]: Object;
|
|
22
|
+
};
|
|
23
|
+
tagNameMapper: Object;
|
|
24
|
+
isVue3: boolean;
|
|
25
|
+
templateCollection: any;
|
|
26
|
+
constructor();
|
|
27
|
+
clearTemplate(templateNames?: string[]): any;
|
|
28
|
+
setProperties(prop: any, muteOnChange: boolean): void;
|
|
29
|
+
render(createElement: any): any;
|
|
30
|
+
custom(): void;
|
|
31
|
+
}
|
|
32
|
+
export declare const AppBarPlugin: {
|
|
33
|
+
name: string;
|
|
34
|
+
install(Vue: any): void;
|
|
35
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
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 { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
|
+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
|
+
import { AppBar } from '@syncfusion/ej2-navigations';
|
|
23
|
+
import { Options } from 'vue-class-component';
|
|
24
|
+
export var properties = ['isLazyUpdate', 'plugins', 'colorMode', 'cssClass', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'isSticky', 'locale', 'mode', 'position', 'created', 'destroyed'];
|
|
25
|
+
export var modelProps = [];
|
|
26
|
+
export var testProp = getProps({ props: properties });
|
|
27
|
+
export var props = testProp[0];
|
|
28
|
+
export var watch = testProp[1];
|
|
29
|
+
export var emitProbs = Object.keys(watch);
|
|
30
|
+
emitProbs.push('modelchanged', 'update:modelValue');
|
|
31
|
+
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
32
|
+
var props_1 = modelProps_1[_i];
|
|
33
|
+
emitProbs.push('update:' + props_1);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Represents the Essential JS 2 VueJS AppBar Component.
|
|
37
|
+
* ```html
|
|
38
|
+
* <ejs-appbar></ejs-appbar>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
var AppBarComponent = /** @class */ (function (_super) {
|
|
42
|
+
__extends(AppBarComponent, _super);
|
|
43
|
+
function AppBarComponent() {
|
|
44
|
+
var _this = _super.call(this, arguments) || this;
|
|
45
|
+
_this.propKeys = properties;
|
|
46
|
+
_this.models = modelProps;
|
|
47
|
+
_this.hasChildDirective = false;
|
|
48
|
+
_this.hasInjectedModules = false;
|
|
49
|
+
_this.tagMapper = {};
|
|
50
|
+
_this.tagNameMapper = {};
|
|
51
|
+
_this.isVue3 = !isExecute;
|
|
52
|
+
_this.ej2Instances = new AppBar({});
|
|
53
|
+
_this.bindProperties();
|
|
54
|
+
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
55
|
+
_this.ej2Instances.setProperties = _this.setProperties;
|
|
56
|
+
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
57
|
+
_this.updated = _this.updated;
|
|
58
|
+
return _this;
|
|
59
|
+
}
|
|
60
|
+
AppBarComponent.prototype.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
|
+
AppBarComponent.prototype.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
|
+
AppBarComponent.prototype.render = function (createElement) {
|
|
109
|
+
var h = !isExecute ? gh : createElement;
|
|
110
|
+
var slots = null;
|
|
111
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
112
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
113
|
+
}
|
|
114
|
+
return h('header', slots);
|
|
115
|
+
};
|
|
116
|
+
AppBarComponent.prototype.custom = function () {
|
|
117
|
+
this.updated();
|
|
118
|
+
};
|
|
119
|
+
AppBarComponent = __decorate([
|
|
120
|
+
EJComponentDecorator({
|
|
121
|
+
props: properties
|
|
122
|
+
}, isExecute)
|
|
123
|
+
,Options({
|
|
124
|
+
props: props,
|
|
125
|
+
watch: watch,
|
|
126
|
+
emits: emitProbs,
|
|
127
|
+
provide: function provide() {
|
|
128
|
+
return {
|
|
129
|
+
custom: this.custom
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
})
|
|
133
|
+
], AppBarComponent);
|
|
134
|
+
return AppBarComponent;
|
|
135
|
+
}(ComponentBase));
|
|
136
|
+
export { AppBarComponent };
|
|
137
|
+
export var AppBarPlugin = {
|
|
138
|
+
name: 'ejs-appbar',
|
|
139
|
+
install: function (Vue) {
|
|
140
|
+
Vue.component(AppBarPlugin.name, AppBarComponent);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppBarComponent, AppBarPlugin } from './appbar.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppBarComponent, AppBarPlugin } from './appbar.component';
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
21
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
22
22
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Breadcrumb } from '@syncfusion/ej2-navigations';
|
|
24
24
|
import { BreadcrumbItemsDirective, BreadcrumbItemDirective, BreadcrumbItemsPlugin, BreadcrumbItemPlugin } from './items.directive';
|
|
@@ -34,7 +34,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
34
34
|
var props_1 = modelProps_1[_i];
|
|
35
35
|
emitProbs.push('update:' + props_1);
|
|
36
36
|
}
|
|
37
|
-
export var isExecute = gh ? false : true;
|
|
38
37
|
/**
|
|
39
38
|
* Represents the VueJS Breadcrumb Component.
|
|
40
39
|
* ```html
|
|
@@ -150,10 +149,10 @@ var BreadcrumbComponent = /** @class */ (function (_super) {
|
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
151
|
BreadcrumbComponent.prototype.render = function (createElement) {
|
|
153
|
-
var h = gh
|
|
152
|
+
var h = !isExecute ? gh : createElement;
|
|
154
153
|
var slots = null;
|
|
155
154
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
156
|
-
slots =
|
|
155
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
157
156
|
}
|
|
158
157
|
return h('nav', slots);
|
|
159
158
|
};
|
|
@@ -17,12 +17,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
20
|
+
import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
22
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
23
|
import Vue from 'vue';
|
|
24
24
|
import { Options } from 'vue-class-component';
|
|
25
|
-
export var isExecute = gh ? false : true;
|
|
26
25
|
var vueImport;
|
|
27
26
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
28
27
|
vueImport = Vue3.Vue;
|
|
@@ -36,18 +35,18 @@ var BreadcrumbItemsDirective = /** @class */ (function (_super) {
|
|
|
36
35
|
return _super.call(this, arguments) || this;
|
|
37
36
|
}
|
|
38
37
|
BreadcrumbItemsDirective.prototype.render = function (createElement) {
|
|
39
|
-
if (
|
|
40
|
-
var h = gh
|
|
38
|
+
if (!isExecute) {
|
|
39
|
+
var h = !isExecute ? gh : createElement;
|
|
41
40
|
var slots = null;
|
|
42
41
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
-
slots =
|
|
42
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
44
43
|
}
|
|
45
44
|
return h('div', { class: 'e-directive' }, slots);
|
|
46
45
|
}
|
|
47
46
|
return;
|
|
48
47
|
};
|
|
49
48
|
BreadcrumbItemsDirective.prototype.updated = function () {
|
|
50
|
-
if (
|
|
49
|
+
if (!isExecute && this.custom) {
|
|
51
50
|
this.custom();
|
|
52
51
|
}
|
|
53
52
|
};
|
|
@@ -18,12 +18,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
21
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
22
22
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Carousel } from '@syncfusion/ej2-navigations';
|
|
24
24
|
import { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './items.directive';
|
|
25
25
|
import { Options } from 'vue-class-component';
|
|
26
|
-
export var properties = ['isLazyUpdate', 'plugins', 'animationEffect', 'autoPlay', 'buttonsVisibility', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enableTouchSwipe', 'height', 'htmlAttributes', 'indicatorsTemplate', 'interval', 'itemTemplate', 'items', 'locale', 'loop', 'nextButtonTemplate', 'pauseOnHover', 'playButtonTemplate', 'previousButtonTemplate', 'selectedIndex', 'showIndicators', 'showPlayButton', 'width', 'slideChanged', 'slideChanging'];
|
|
26
|
+
export var properties = ['isLazyUpdate', 'plugins', 'animationEffect', 'autoPlay', 'buttonsVisibility', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enableTouchSwipe', 'height', 'htmlAttributes', 'indicatorsTemplate', 'interval', 'itemTemplate', 'items', 'locale', 'loop', 'nextButtonTemplate', 'partialVisible', 'pauseOnHover', 'playButtonTemplate', 'previousButtonTemplate', 'selectedIndex', 'showIndicators', 'showPlayButton', 'width', 'slideChanged', 'slideChanging'];
|
|
27
27
|
export var modelProps = ['selectedIndex'];
|
|
28
28
|
export var testProp = getProps({ props: properties });
|
|
29
29
|
export var props = testProp[0];
|
|
@@ -34,7 +34,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
34
34
|
var props_1 = modelProps_1[_i];
|
|
35
35
|
emitProbs.push('update:' + props_1);
|
|
36
36
|
}
|
|
37
|
-
export var isExecute = gh ? false : true;
|
|
38
37
|
/**
|
|
39
38
|
* Represents the VueJS Carousel Component.
|
|
40
39
|
* ```html
|
|
@@ -150,10 +149,10 @@ var CarouselComponent = /** @class */ (function (_super) {
|
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
151
|
CarouselComponent.prototype.render = function (createElement) {
|
|
153
|
-
var h = gh
|
|
152
|
+
var h = !isExecute ? gh : createElement;
|
|
154
153
|
var slots = null;
|
|
155
154
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
156
|
-
slots =
|
|
155
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
157
156
|
}
|
|
158
157
|
return h('div', slots);
|
|
159
158
|
};
|
|
@@ -17,12 +17,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
20
|
+
import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
22
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
23
|
import Vue from 'vue';
|
|
24
24
|
import { Options } from 'vue-class-component';
|
|
25
|
-
export var isExecute = gh ? false : true;
|
|
26
25
|
var vueImport;
|
|
27
26
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
28
27
|
vueImport = Vue3.Vue;
|
|
@@ -36,18 +35,18 @@ var CarouselItemsDirective = /** @class */ (function (_super) {
|
|
|
36
35
|
return _super.call(this, arguments) || this;
|
|
37
36
|
}
|
|
38
37
|
CarouselItemsDirective.prototype.render = function (createElement) {
|
|
39
|
-
if (
|
|
40
|
-
var h = gh
|
|
38
|
+
if (!isExecute) {
|
|
39
|
+
var h = !isExecute ? gh : createElement;
|
|
41
40
|
var slots = null;
|
|
42
41
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
-
slots =
|
|
42
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
44
43
|
}
|
|
45
44
|
return h('div', { class: 'e-directive' }, slots);
|
|
46
45
|
}
|
|
47
46
|
return;
|
|
48
47
|
};
|
|
49
48
|
CarouselItemsDirective.prototype.updated = function () {
|
|
50
|
-
if (
|
|
49
|
+
if (!isExecute && this.custom) {
|
|
51
50
|
this.custom();
|
|
52
51
|
}
|
|
53
52
|
};
|
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
20
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
22
|
import { ContextMenu } from '@syncfusion/ej2-navigations';
|
|
23
23
|
import { Options } from 'vue-class-component';
|
|
@@ -32,7 +32,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
32
32
|
var props_1 = modelProps_1[_i];
|
|
33
33
|
emitProbs.push('update:' + props_1);
|
|
34
34
|
}
|
|
35
|
-
export var isExecute = gh ? false : true;
|
|
36
35
|
/**
|
|
37
36
|
* Represents the Essential JS 2 VueJS ContextMenu Component.
|
|
38
37
|
* ```html
|
|
@@ -108,10 +107,10 @@ var ContextMenuComponent = /** @class */ (function (_super) {
|
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
109
|
ContextMenuComponent.prototype.render = function (createElement) {
|
|
111
|
-
var h = gh
|
|
110
|
+
var h = !isExecute ? gh : createElement;
|
|
112
111
|
var slots = null;
|
|
113
112
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
114
|
-
slots =
|
|
113
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
115
114
|
}
|
|
116
115
|
return h('ul', slots);
|
|
117
116
|
};
|
package/src/index.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export { TreeViewComponent, TreeViewPlugin } from './treeview/treeview.component
|
|
|
14
14
|
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
|
+
export { AppBarComponent, AppBarPlugin } from './appbar/appbar.component';
|
package/src/index.js
CHANGED
|
@@ -14,3 +14,4 @@ export { TreeViewComponent, TreeViewPlugin } from './treeview/treeview.component
|
|
|
14
14
|
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
|
+
export { AppBarComponent, AppBarPlugin } from './appbar/appbar.component';
|
|
@@ -17,12 +17,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
20
|
+
import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
22
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
23
|
import Vue from 'vue';
|
|
24
24
|
import { Options } from 'vue-class-component';
|
|
25
|
-
export var isExecute = gh ? false : true;
|
|
26
25
|
var vueImport;
|
|
27
26
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
28
27
|
vueImport = Vue3.Vue;
|
|
@@ -36,18 +35,18 @@ var MenuItemsDirective = /** @class */ (function (_super) {
|
|
|
36
35
|
return _super.call(this, arguments) || this;
|
|
37
36
|
}
|
|
38
37
|
MenuItemsDirective.prototype.render = function (createElement) {
|
|
39
|
-
if (
|
|
40
|
-
var h = gh
|
|
38
|
+
if (!isExecute) {
|
|
39
|
+
var h = !isExecute ? gh : createElement;
|
|
41
40
|
var slots = null;
|
|
42
41
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
-
slots =
|
|
42
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
44
43
|
}
|
|
45
44
|
return h('div', { class: 'e-directive' }, slots);
|
|
46
45
|
}
|
|
47
46
|
return;
|
|
48
47
|
};
|
|
49
48
|
MenuItemsDirective.prototype.updated = function () {
|
|
50
|
-
if (
|
|
49
|
+
if (!isExecute && this.custom) {
|
|
51
50
|
this.custom();
|
|
52
51
|
}
|
|
53
52
|
};
|
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
20
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
22
|
import { Menu } from '@syncfusion/ej2-navigations';
|
|
23
23
|
import { MenuItemsDirective, MenuItemDirective, MenuItemsPlugin, MenuItemPlugin } from './items.directive';
|
|
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
33
33
|
var props_1 = modelProps_1[_i];
|
|
34
34
|
emitProbs.push('update:' + props_1);
|
|
35
35
|
}
|
|
36
|
-
export var isExecute = gh ? false : true;
|
|
37
36
|
/**
|
|
38
37
|
* Represents the Essential JS 2 VueJS Menu Component.
|
|
39
38
|
* ```html
|
|
@@ -108,10 +107,10 @@ var MenuComponent = /** @class */ (function (_super) {
|
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
109
|
MenuComponent.prototype.render = function (createElement) {
|
|
111
|
-
var h = gh
|
|
110
|
+
var h = !isExecute ? gh : createElement;
|
|
112
111
|
var slots = null;
|
|
113
112
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
114
|
-
slots =
|
|
113
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
115
114
|
}
|
|
116
115
|
return h('ul', slots);
|
|
117
116
|
};
|