@syncfusion/ej2-vue-navigations 19.4.53 → 20.1.47
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 +35 -2
- package/README.md +17 -2
- package/carousel.d.ts +4 -0
- package/carousel.js +4 -0
- package/dist/ej2-vue-navigations.umd.min.js +1 -1
- package/dist/es6/ej2-vue-navigations.es2015.js +669 -116
- package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es5.js +608 -129
- 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 +2 -1
- package/src/accordion/accordion.component.js +11 -2
- package/src/accordion/items.directive.d.ts +3 -1
- package/src/accordion/items.directive.js +24 -2
- package/src/breadcrumb/breadcrumb.component.d.ts +1 -0
- package/src/breadcrumb/breadcrumb.component.js +10 -1
- package/src/breadcrumb/items.directive.d.ts +3 -1
- package/src/breadcrumb/items.directive.js +24 -2
- package/src/carousel/carousel.component.d.ts +43 -0
- package/src/carousel/carousel.component.js +202 -0
- package/src/carousel/index.d.ts +2 -0
- package/src/carousel/index.js +2 -0
- package/src/carousel/items.directive.d.ts +33 -0
- package/src/carousel/items.directive.js +110 -0
- package/src/context-menu/contextmenu.component.d.ts +1 -0
- package/src/context-menu/contextmenu.component.js +10 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/menu/items.directive.d.ts +3 -1
- package/src/menu/items.directive.js +24 -2
- package/src/menu/menu.component.d.ts +1 -0
- package/src/menu/menu.component.js +10 -1
- package/src/sidebar/sidebar.component.d.ts +1 -0
- package/src/sidebar/sidebar.component.js +10 -1
- package/src/tab/items.directive.d.ts +3 -1
- package/src/tab/items.directive.js +24 -2
- package/src/tab/tab.component.d.ts +1 -0
- package/src/tab/tab.component.js +10 -1
- package/src/toolbar/items.directive.d.ts +3 -1
- package/src/toolbar/items.directive.js +24 -2
- package/src/toolbar/toolbar.component.d.ts +1 -0
- package/src/toolbar/toolbar.component.js +10 -1
- package/src/treeview/treeview.component.d.ts +1 -0
- package/src/treeview/treeview.component.js +10 -1
- package/styles/accordion/bootstrap-dark.css +48 -63
- package/styles/accordion/bootstrap.css +48 -63
- package/styles/accordion/bootstrap4.css +48 -63
- package/styles/accordion/bootstrap5-dark.css +51 -66
- package/styles/accordion/bootstrap5.css +51 -66
- package/styles/accordion/fabric-dark.css +50 -65
- package/styles/accordion/fabric.css +50 -65
- package/styles/accordion/fluent-dark.css +395 -0
- package/styles/accordion/fluent-dark.scss +1 -0
- package/styles/accordion/fluent.css +395 -0
- package/styles/accordion/fluent.scss +1 -0
- package/styles/accordion/highcontrast-light.css +49 -64
- package/styles/accordion/highcontrast.css +49 -64
- package/styles/accordion/material-dark.css +49 -64
- package/styles/accordion/material.css +49 -64
- package/styles/accordion/tailwind-dark.css +52 -67
- package/styles/accordion/tailwind.css +52 -67
- package/styles/bootstrap-dark.css +310 -69
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +310 -69
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +310 -69
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +415 -171
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +415 -171
- package/styles/bootstrap5.scss +1 -0
- package/styles/breadcrumb/bootstrap-dark.css +10 -2
- package/styles/breadcrumb/bootstrap.css +10 -2
- package/styles/breadcrumb/bootstrap4.css +10 -2
- package/styles/breadcrumb/bootstrap5-dark.css +12 -4
- package/styles/breadcrumb/bootstrap5.css +12 -4
- package/styles/breadcrumb/fabric-dark.css +10 -4
- package/styles/breadcrumb/fabric.css +10 -4
- package/styles/breadcrumb/fluent-dark.css +444 -0
- package/styles/breadcrumb/fluent-dark.scss +1 -0
- package/styles/breadcrumb/fluent.css +444 -0
- package/styles/breadcrumb/fluent.scss +1 -0
- package/styles/breadcrumb/highcontrast-light.css +10 -4
- package/styles/breadcrumb/highcontrast.css +10 -4
- package/styles/breadcrumb/material-dark.css +10 -2
- package/styles/breadcrumb/material.css +10 -2
- package/styles/breadcrumb/tailwind-dark.css +21 -4
- package/styles/breadcrumb/tailwind.css +27 -10
- package/styles/carousel/bootstrap-dark.css +236 -0
- package/styles/carousel/bootstrap-dark.scss +1 -0
- package/styles/carousel/bootstrap.css +236 -0
- package/styles/carousel/bootstrap.scss +1 -0
- package/styles/carousel/bootstrap4.css +236 -0
- package/styles/carousel/bootstrap4.scss +1 -0
- package/styles/carousel/bootstrap5-dark.css +236 -0
- package/styles/carousel/bootstrap5-dark.scss +1 -0
- package/styles/carousel/bootstrap5.css +236 -0
- package/styles/carousel/bootstrap5.scss +1 -0
- package/styles/carousel/fabric-dark.css +236 -0
- package/styles/carousel/fabric-dark.scss +1 -0
- package/styles/carousel/fabric.css +236 -0
- package/styles/carousel/fabric.scss +1 -0
- package/styles/carousel/fluent-dark.css +236 -0
- package/styles/carousel/fluent-dark.scss +1 -0
- package/styles/carousel/fluent.css +236 -0
- package/styles/carousel/fluent.scss +1 -0
- package/styles/carousel/highcontrast-light.css +236 -0
- package/styles/carousel/highcontrast-light.scss +1 -0
- package/styles/carousel/highcontrast.css +236 -0
- package/styles/carousel/highcontrast.scss +1 -0
- package/styles/carousel/material-dark.css +237 -0
- package/styles/carousel/material-dark.scss +1 -0
- package/styles/carousel/material.css +237 -0
- package/styles/carousel/material.scss +1 -0
- package/styles/carousel/tailwind-dark.css +237 -0
- package/styles/carousel/tailwind-dark.scss +1 -0
- package/styles/carousel/tailwind.css +237 -0
- package/styles/carousel/tailwind.scss +1 -0
- package/styles/context-menu/bootstrap-dark.css +5 -0
- package/styles/context-menu/bootstrap.css +5 -0
- package/styles/context-menu/bootstrap4.css +5 -0
- package/styles/context-menu/bootstrap5-dark.css +16 -8
- package/styles/context-menu/bootstrap5.css +16 -8
- package/styles/context-menu/fabric-dark.css +5 -0
- package/styles/context-menu/fabric.css +5 -0
- package/styles/context-menu/fluent-dark.css +388 -0
- package/styles/context-menu/fluent-dark.scss +1 -0
- package/styles/context-menu/fluent.css +388 -0
- package/styles/context-menu/fluent.scss +1 -0
- package/styles/context-menu/highcontrast-light.css +5 -0
- package/styles/context-menu/highcontrast.css +5 -0
- package/styles/context-menu/material-dark.css +5 -0
- package/styles/context-menu/material.css +5 -0
- package/styles/context-menu/tailwind-dark.css +11 -4
- package/styles/context-menu/tailwind.css +11 -4
- package/styles/fabric-dark.css +312 -73
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +312 -73
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +10263 -0
- package/styles/fluent-dark.scss +11 -0
- package/styles/fluent.css +10263 -0
- package/styles/fluent.scss +11 -0
- package/styles/h-scroll/bootstrap-dark.css +0 -1
- package/styles/h-scroll/bootstrap.css +0 -1
- package/styles/h-scroll/bootstrap4.css +0 -1
- package/styles/h-scroll/bootstrap5-dark.css +10 -11
- package/styles/h-scroll/bootstrap5.css +10 -11
- package/styles/h-scroll/fabric-dark.css +0 -1
- package/styles/h-scroll/fabric.css +0 -1
- package/styles/h-scroll/fluent-dark.css +326 -0
- package/styles/h-scroll/fluent-dark.scss +1 -0
- package/styles/h-scroll/fluent.css +326 -0
- package/styles/h-scroll/fluent.scss +1 -0
- package/styles/h-scroll/highcontrast-light.css +0 -1
- package/styles/h-scroll/highcontrast.css +0 -1
- package/styles/h-scroll/material-dark.css +3 -4
- package/styles/h-scroll/material.css +0 -1
- package/styles/h-scroll/tailwind-dark.css +8 -9
- package/styles/h-scroll/tailwind.css +8 -9
- package/styles/highcontrast-light.css +311 -72
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +312 -73
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +314 -73
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +311 -70
- package/styles/material.scss +1 -0
- package/styles/menu/bootstrap-dark.css +1 -2
- package/styles/menu/bootstrap.css +1 -2
- package/styles/menu/bootstrap4.css +1 -2
- package/styles/menu/bootstrap5-dark.css +23 -24
- package/styles/menu/bootstrap5.css +23 -24
- package/styles/menu/fabric-dark.css +1 -2
- package/styles/menu/fabric.css +1 -2
- package/styles/menu/fluent-dark.css +1261 -0
- package/styles/menu/fluent-dark.scss +1 -0
- package/styles/menu/fluent.css +1261 -0
- package/styles/menu/fluent.scss +1 -0
- package/styles/menu/highcontrast-light.css +1 -2
- package/styles/menu/highcontrast.css +1 -2
- package/styles/menu/material-dark.css +1 -2
- package/styles/menu/material.css +1 -2
- package/styles/menu/tailwind-dark.css +18 -18
- package/styles/menu/tailwind.css +18 -18
- 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 +158 -0
- package/styles/sidebar/fluent-dark.scss +1 -0
- package/styles/sidebar/fluent.css +158 -0
- package/styles/sidebar/fluent.scss +1 -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 +23 -23
- package/styles/tab/bootstrap5.css +23 -23
- package/styles/tab/fabric-dark.css +1 -1
- package/styles/tab/fabric.css +1 -1
- package/styles/tab/fluent-dark.css +4394 -0
- package/styles/tab/fluent-dark.scss +1 -0
- package/styles/tab/fluent.css +4394 -0
- package/styles/tab/fluent.scss +1 -0
- package/styles/tab/highcontrast-light.css +1 -1
- package/styles/tab/highcontrast.css +2 -2
- package/styles/tab/material-dark.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/tab/tailwind-dark.css +43 -45
- package/styles/tab/tailwind.css +43 -45
- package/styles/tailwind-dark.css +422 -171
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +428 -177
- package/styles/tailwind.scss +1 -0
- package/styles/toolbar/bootstrap-dark.css +4 -0
- package/styles/toolbar/bootstrap.css +4 -0
- package/styles/toolbar/bootstrap4.css +4 -0
- package/styles/toolbar/bootstrap5-dark.css +35 -31
- package/styles/toolbar/bootstrap5.css +35 -31
- package/styles/toolbar/fabric-dark.css +4 -0
- package/styles/toolbar/fabric.css +4 -0
- package/styles/toolbar/fluent-dark.css +1365 -0
- package/styles/toolbar/fluent-dark.scss +1 -0
- package/styles/toolbar/fluent.css +1365 -0
- package/styles/toolbar/fluent.scss +1 -0
- package/styles/toolbar/highcontrast-light.css +4 -0
- package/styles/toolbar/highcontrast.css +4 -0
- package/styles/toolbar/material-dark.css +4 -0
- package/styles/toolbar/material.css +4 -0
- package/styles/toolbar/tailwind-dark.css +10 -6
- package/styles/toolbar/tailwind.css +10 -6
- package/styles/treeview/bootstrap5-dark.css +4 -4
- package/styles/treeview/bootstrap5.css +4 -4
- package/styles/treeview/fluent-dark.css +1039 -0
- package/styles/treeview/fluent-dark.scss +1 -0
- package/styles/treeview/fluent.css +1039 -0
- package/styles/treeview/fluent.scss +1 -0
- package/styles/treeview/tailwind-dark.css +13 -14
- package/styles/treeview/tailwind.css +13 -14
- package/styles/v-scroll/fluent-dark.css +247 -0
- package/styles/v-scroll/fluent-dark.scss +1 -0
- package/styles/v-scroll/fluent.css +247 -0
- package/styles/v-scroll/fluent.scss +1 -0
- package/styles/v-scroll/tailwind-dark.css +4 -4
- package/styles/v-scroll/tailwind.css +4 -4
|
@@ -0,0 +1,110 @@
|
|
|
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 { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
21
|
+
import * as Vue3 from 'vue-class-component';
|
|
22
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
|
+
import Vue from 'vue';
|
|
24
|
+
import { Options } from 'vue-class-component';
|
|
25
|
+
export var isExecute = gh ? false : true;
|
|
26
|
+
var vueImport;
|
|
27
|
+
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
28
|
+
vueImport = Vue3.Vue;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
vueImport = Vue;
|
|
32
|
+
}
|
|
33
|
+
var CarouselItemsDirective = /** @class */ (function (_super) {
|
|
34
|
+
__extends(CarouselItemsDirective, _super);
|
|
35
|
+
function CarouselItemsDirective() {
|
|
36
|
+
return _super.call(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
CarouselItemsDirective.prototype.render = function (createElement) {
|
|
39
|
+
if (gh) {
|
|
40
|
+
var h = gh || createElement;
|
|
41
|
+
var slots = null;
|
|
42
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
+
slots = gh ? this.$slots.default() : this.$slots.default;
|
|
44
|
+
}
|
|
45
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
46
|
+
}
|
|
47
|
+
return;
|
|
48
|
+
};
|
|
49
|
+
CarouselItemsDirective.prototype.updated = function () {
|
|
50
|
+
if (gh && this.custom) {
|
|
51
|
+
this.custom();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
CarouselItemsDirective.prototype.getTag = function () {
|
|
55
|
+
return 'e-carousel-items';
|
|
56
|
+
};
|
|
57
|
+
CarouselItemsDirective = __decorate([
|
|
58
|
+
EJComponentDecorator({}, isExecute)
|
|
59
|
+
,Options({
|
|
60
|
+
inject: {
|
|
61
|
+
custom: {
|
|
62
|
+
default: null
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
], CarouselItemsDirective);
|
|
67
|
+
return CarouselItemsDirective;
|
|
68
|
+
}(vueImport));
|
|
69
|
+
export { CarouselItemsDirective };
|
|
70
|
+
export var CarouselItemsPlugin = {
|
|
71
|
+
name: 'e-carousel-items',
|
|
72
|
+
install: function (Vue) {
|
|
73
|
+
Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* `e-carousel-item` directive represent a item of the Vue Carousel.
|
|
78
|
+
* It must be contained in a Carousel component(`ejs-carousel`).
|
|
79
|
+
* ```html
|
|
80
|
+
* <ejs-carousel>
|
|
81
|
+
* <e-carousel-items>
|
|
82
|
+
* <e-carousel-item template='itemTemplate'></e-carousel-item>
|
|
83
|
+
* <e-carousel-item template='secondItemTemplate'></e-carousel-item>
|
|
84
|
+
* </e-carousel-items>
|
|
85
|
+
* </ejs-carousel>
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
var CarouselItemDirective = /** @class */ (function (_super) {
|
|
89
|
+
__extends(CarouselItemDirective, _super);
|
|
90
|
+
function CarouselItemDirective() {
|
|
91
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
}
|
|
93
|
+
CarouselItemDirective.prototype.render = function () {
|
|
94
|
+
return;
|
|
95
|
+
};
|
|
96
|
+
CarouselItemDirective.prototype.getTag = function () {
|
|
97
|
+
return 'e-carousel-item';
|
|
98
|
+
};
|
|
99
|
+
CarouselItemDirective = __decorate([
|
|
100
|
+
EJComponentDecorator({}, isExecute)
|
|
101
|
+
], CarouselItemDirective);
|
|
102
|
+
return CarouselItemDirective;
|
|
103
|
+
}(vueImport));
|
|
104
|
+
export { CarouselItemDirective };
|
|
105
|
+
export var CarouselItemPlugin = {
|
|
106
|
+
name: 'e-carousel-item',
|
|
107
|
+
install: function (Vue) {
|
|
108
|
+
Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
@@ -29,6 +29,7 @@ export declare class ContextMenuComponent extends ComponentBase {
|
|
|
29
29
|
clearTemplate(templateNames?: string[]): any;
|
|
30
30
|
setProperties(prop: any, muteOnChange: boolean): void;
|
|
31
31
|
render(createElement: any): any;
|
|
32
|
+
custom(): void;
|
|
32
33
|
close(): void;
|
|
33
34
|
enableItems(items: string[], enable: boolean, isUniqueId?: boolean): void;
|
|
34
35
|
getItemIndex(item: Object | string, isUniqueId?: boolean): number[];
|
|
@@ -56,6 +56,7 @@ var ContextMenuComponent = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
57
57
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
58
58
|
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
59
|
+
_this.updated = _this.updated;
|
|
59
60
|
return _this;
|
|
60
61
|
}
|
|
61
62
|
ContextMenuComponent.prototype.clearTemplate = function (templateNames) {
|
|
@@ -114,6 +115,9 @@ var ContextMenuComponent = /** @class */ (function (_super) {
|
|
|
114
115
|
}
|
|
115
116
|
return h('ul', slots);
|
|
116
117
|
};
|
|
118
|
+
ContextMenuComponent.prototype.custom = function () {
|
|
119
|
+
this.updated();
|
|
120
|
+
};
|
|
117
121
|
ContextMenuComponent.prototype.close = function () {
|
|
118
122
|
return this.ej2Instances.close();
|
|
119
123
|
};
|
|
@@ -151,7 +155,12 @@ var ContextMenuComponent = /** @class */ (function (_super) {
|
|
|
151
155
|
,Options({
|
|
152
156
|
props: props,
|
|
153
157
|
watch: watch,
|
|
154
|
-
emits: emitProbs
|
|
158
|
+
emits: emitProbs,
|
|
159
|
+
provide: function provide() {
|
|
160
|
+
return {
|
|
161
|
+
custom: this.custom
|
|
162
|
+
};
|
|
163
|
+
}
|
|
155
164
|
})
|
|
156
165
|
], ContextMenuComponent);
|
|
157
166
|
return ContextMenuComponent;
|
package/src/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { ToolbarComponent, ToolbarPlugin } from './toolbar/toolbar.component';
|
|
|
6
6
|
export { ContextMenuComponent, ContextMenuPlugin } from './context-menu/contextmenu.component';
|
|
7
7
|
export { BreadcrumbItemsDirective, BreadcrumbItemDirective, BreadcrumbItemsPlugin, BreadcrumbItemPlugin } from './breadcrumb/items.directive';
|
|
8
8
|
export { BreadcrumbComponent, BreadcrumbPlugin } from './breadcrumb/breadcrumb.component';
|
|
9
|
+
export { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './carousel/items.directive';
|
|
10
|
+
export { CarouselComponent, CarouselPlugin } from './carousel/carousel.component';
|
|
9
11
|
export { TabItemsDirective, TabItemDirective, TabItemsPlugin, TabItemPlugin } from './tab/items.directive';
|
|
10
12
|
export { TabComponent, TabPlugin } from './tab/tab.component';
|
|
11
13
|
export { TreeViewComponent, TreeViewPlugin } from './treeview/treeview.component';
|
package/src/index.js
CHANGED
|
@@ -6,6 +6,8 @@ export { ToolbarComponent, ToolbarPlugin } from './toolbar/toolbar.component';
|
|
|
6
6
|
export { ContextMenuComponent, ContextMenuPlugin } from './context-menu/contextmenu.component';
|
|
7
7
|
export { BreadcrumbItemsDirective, BreadcrumbItemDirective, BreadcrumbItemsPlugin, BreadcrumbItemPlugin } from './breadcrumb/items.directive';
|
|
8
8
|
export { BreadcrumbComponent, BreadcrumbPlugin } from './breadcrumb/breadcrumb.component';
|
|
9
|
+
export { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './carousel/items.directive';
|
|
10
|
+
export { CarouselComponent, CarouselPlugin } from './carousel/carousel.component';
|
|
9
11
|
export { TabItemsDirective, TabItemDirective, TabItemsPlugin, TabItemPlugin } from './tab/items.directive';
|
|
10
12
|
export { TabComponent, TabPlugin } from './tab/tab.component';
|
|
11
13
|
export { TreeViewComponent, TreeViewPlugin } from './treeview/treeview.component';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const isExecute: any;
|
|
2
2
|
declare let vueImport: any;
|
|
3
3
|
export declare class MenuItemsDirective extends vueImport {
|
|
4
|
-
|
|
4
|
+
constructor();
|
|
5
|
+
render(createElement: any): void;
|
|
6
|
+
updated(): void;
|
|
5
7
|
getTag(): string;
|
|
6
8
|
}
|
|
7
9
|
export declare const MenuItemsPlugin: {
|
|
@@ -19,7 +19,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
22
23
|
import Vue from 'vue';
|
|
24
|
+
import { Options } from 'vue-class-component';
|
|
23
25
|
export var isExecute = gh ? false : true;
|
|
24
26
|
var vueImport;
|
|
25
27
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
@@ -31,16 +33,36 @@ else {
|
|
|
31
33
|
var MenuItemsDirective = /** @class */ (function (_super) {
|
|
32
34
|
__extends(MenuItemsDirective, _super);
|
|
33
35
|
function MenuItemsDirective() {
|
|
34
|
-
return _super
|
|
36
|
+
return _super.call(this, arguments) || this;
|
|
35
37
|
}
|
|
36
|
-
MenuItemsDirective.prototype.render = function () {
|
|
38
|
+
MenuItemsDirective.prototype.render = function (createElement) {
|
|
39
|
+
if (gh) {
|
|
40
|
+
var h = gh || createElement;
|
|
41
|
+
var slots = null;
|
|
42
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
+
slots = gh ? this.$slots.default() : this.$slots.default;
|
|
44
|
+
}
|
|
45
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
46
|
+
}
|
|
37
47
|
return;
|
|
38
48
|
};
|
|
49
|
+
MenuItemsDirective.prototype.updated = function () {
|
|
50
|
+
if (gh && this.custom) {
|
|
51
|
+
this.custom();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
39
54
|
MenuItemsDirective.prototype.getTag = function () {
|
|
40
55
|
return 'e-menu-items';
|
|
41
56
|
};
|
|
42
57
|
MenuItemsDirective = __decorate([
|
|
43
58
|
EJComponentDecorator({}, isExecute)
|
|
59
|
+
,Options({
|
|
60
|
+
inject: {
|
|
61
|
+
custom: {
|
|
62
|
+
default: null
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
44
66
|
], MenuItemsDirective);
|
|
45
67
|
return MenuItemsDirective;
|
|
46
68
|
}(vueImport));
|
|
@@ -28,6 +28,7 @@ export declare class MenuComponent extends ComponentBase {
|
|
|
28
28
|
clearTemplate(templateNames?: string[]): any;
|
|
29
29
|
setProperties(prop: any, muteOnChange: boolean): void;
|
|
30
30
|
render(createElement: any): any;
|
|
31
|
+
custom(): void;
|
|
31
32
|
close(): void;
|
|
32
33
|
enableItems(items: string[], enable: boolean, isUniqueId?: boolean): void;
|
|
33
34
|
getItemIndex(item: Object | string, isUniqueId?: boolean): number[];
|
|
@@ -56,6 +56,7 @@ var MenuComponent = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
57
57
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
58
58
|
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
59
|
+
_this.updated = _this.updated;
|
|
59
60
|
return _this;
|
|
60
61
|
}
|
|
61
62
|
MenuComponent.prototype.clearTemplate = function (templateNames) {
|
|
@@ -114,6 +115,9 @@ var MenuComponent = /** @class */ (function (_super) {
|
|
|
114
115
|
}
|
|
115
116
|
return h('ul', slots);
|
|
116
117
|
};
|
|
118
|
+
MenuComponent.prototype.custom = function () {
|
|
119
|
+
this.updated();
|
|
120
|
+
};
|
|
117
121
|
MenuComponent.prototype.close = function () {
|
|
118
122
|
return this.ej2Instances.close();
|
|
119
123
|
};
|
|
@@ -151,7 +155,12 @@ var MenuComponent = /** @class */ (function (_super) {
|
|
|
151
155
|
,Options({
|
|
152
156
|
props: props,
|
|
153
157
|
watch: watch,
|
|
154
|
-
emits: emitProbs
|
|
158
|
+
emits: emitProbs,
|
|
159
|
+
provide: function provide() {
|
|
160
|
+
return {
|
|
161
|
+
custom: this.custom
|
|
162
|
+
};
|
|
163
|
+
}
|
|
155
164
|
})
|
|
156
165
|
], MenuComponent);
|
|
157
166
|
return MenuComponent;
|
|
@@ -58,6 +58,7 @@ var SidebarComponent = /** @class */ (function (_super) {
|
|
|
58
58
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
59
59
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
60
60
|
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
61
|
+
_this.updated = _this.updated;
|
|
61
62
|
return _this;
|
|
62
63
|
}
|
|
63
64
|
SidebarComponent.prototype.clearTemplate = function (templateNames) {
|
|
@@ -154,6 +155,9 @@ var SidebarComponent = /** @class */ (function (_super) {
|
|
|
154
155
|
}
|
|
155
156
|
return h('div', slots);
|
|
156
157
|
};
|
|
158
|
+
SidebarComponent.prototype.custom = function () {
|
|
159
|
+
this.updated();
|
|
160
|
+
};
|
|
157
161
|
SidebarComponent.prototype.hide = function (e) {
|
|
158
162
|
return this.ej2Instances.hide(e);
|
|
159
163
|
};
|
|
@@ -173,7 +177,12 @@ var SidebarComponent = /** @class */ (function (_super) {
|
|
|
173
177
|
,Options({
|
|
174
178
|
props: props,
|
|
175
179
|
watch: watch,
|
|
176
|
-
emits: emitProbs
|
|
180
|
+
emits: emitProbs,
|
|
181
|
+
provide: function provide() {
|
|
182
|
+
return {
|
|
183
|
+
custom: this.custom
|
|
184
|
+
};
|
|
185
|
+
}
|
|
177
186
|
})
|
|
178
187
|
], SidebarComponent);
|
|
179
188
|
return SidebarComponent;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const isExecute: any;
|
|
2
2
|
declare let vueImport: any;
|
|
3
3
|
export declare class TabItemsDirective extends vueImport {
|
|
4
|
-
|
|
4
|
+
constructor();
|
|
5
|
+
render(createElement: any): void;
|
|
6
|
+
updated(): void;
|
|
5
7
|
getTag(): string;
|
|
6
8
|
}
|
|
7
9
|
export declare const TabItemsPlugin: {
|
|
@@ -19,7 +19,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
22
23
|
import Vue from 'vue';
|
|
24
|
+
import { Options } from 'vue-class-component';
|
|
23
25
|
export var isExecute = gh ? false : true;
|
|
24
26
|
var vueImport;
|
|
25
27
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
@@ -31,16 +33,36 @@ else {
|
|
|
31
33
|
var TabItemsDirective = /** @class */ (function (_super) {
|
|
32
34
|
__extends(TabItemsDirective, _super);
|
|
33
35
|
function TabItemsDirective() {
|
|
34
|
-
return _super
|
|
36
|
+
return _super.call(this, arguments) || this;
|
|
35
37
|
}
|
|
36
|
-
TabItemsDirective.prototype.render = function () {
|
|
38
|
+
TabItemsDirective.prototype.render = function (createElement) {
|
|
39
|
+
if (gh) {
|
|
40
|
+
var h = gh || createElement;
|
|
41
|
+
var slots = null;
|
|
42
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
+
slots = gh ? this.$slots.default() : this.$slots.default;
|
|
44
|
+
}
|
|
45
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
46
|
+
}
|
|
37
47
|
return;
|
|
38
48
|
};
|
|
49
|
+
TabItemsDirective.prototype.updated = function () {
|
|
50
|
+
if (gh && this.custom) {
|
|
51
|
+
this.custom();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
39
54
|
TabItemsDirective.prototype.getTag = function () {
|
|
40
55
|
return 'e-tabitems';
|
|
41
56
|
};
|
|
42
57
|
TabItemsDirective = __decorate([
|
|
43
58
|
EJComponentDecorator({}, isExecute)
|
|
59
|
+
,Options({
|
|
60
|
+
inject: {
|
|
61
|
+
custom: {
|
|
62
|
+
default: null
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
44
66
|
], TabItemsDirective);
|
|
45
67
|
return TabItemsDirective;
|
|
46
68
|
}(vueImport));
|
|
@@ -28,6 +28,7 @@ export declare class TabComponent extends ComponentBase {
|
|
|
28
28
|
clearTemplate(templateNames?: string[]): any;
|
|
29
29
|
setProperties(prop: any, muteOnChange: boolean): void;
|
|
30
30
|
render(createElement: any): any;
|
|
31
|
+
custom(): void;
|
|
31
32
|
addTab(items: Object[], index?: number): void;
|
|
32
33
|
disable(value: boolean): void;
|
|
33
34
|
enableTab(index: number, value: boolean): void;
|
package/src/tab/tab.component.js
CHANGED
|
@@ -56,6 +56,7 @@ var TabComponent = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
57
57
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
58
58
|
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
59
|
+
_this.updated = _this.updated;
|
|
59
60
|
return _this;
|
|
60
61
|
}
|
|
61
62
|
TabComponent.prototype.clearTemplate = function (templateNames) {
|
|
@@ -114,6 +115,9 @@ var TabComponent = /** @class */ (function (_super) {
|
|
|
114
115
|
}
|
|
115
116
|
return h('div', slots);
|
|
116
117
|
};
|
|
118
|
+
TabComponent.prototype.custom = function () {
|
|
119
|
+
this.updated();
|
|
120
|
+
};
|
|
117
121
|
TabComponent.prototype.addTab = function (items, index) {
|
|
118
122
|
return this.ej2Instances.addTab(items, index);
|
|
119
123
|
};
|
|
@@ -148,7 +152,12 @@ var TabComponent = /** @class */ (function (_super) {
|
|
|
148
152
|
,Options({
|
|
149
153
|
props: props,
|
|
150
154
|
watch: watch,
|
|
151
|
-
emits: emitProbs
|
|
155
|
+
emits: emitProbs,
|
|
156
|
+
provide: function provide() {
|
|
157
|
+
return {
|
|
158
|
+
custom: this.custom
|
|
159
|
+
};
|
|
160
|
+
}
|
|
152
161
|
})
|
|
153
162
|
], TabComponent);
|
|
154
163
|
return TabComponent;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const isExecute: any;
|
|
2
2
|
declare let vueImport: any;
|
|
3
3
|
export declare class ItemsDirective extends vueImport {
|
|
4
|
-
|
|
4
|
+
constructor();
|
|
5
|
+
render(createElement: any): void;
|
|
6
|
+
updated(): void;
|
|
5
7
|
getTag(): string;
|
|
6
8
|
}
|
|
7
9
|
export declare const ItemsPlugin: {
|
|
@@ -19,7 +19,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
|
|
21
21
|
import * as Vue3 from 'vue-class-component';
|
|
22
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
22
23
|
import Vue from 'vue';
|
|
24
|
+
import { Options } from 'vue-class-component';
|
|
23
25
|
export var isExecute = gh ? false : true;
|
|
24
26
|
var vueImport;
|
|
25
27
|
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
@@ -31,16 +33,36 @@ else {
|
|
|
31
33
|
var ItemsDirective = /** @class */ (function (_super) {
|
|
32
34
|
__extends(ItemsDirective, _super);
|
|
33
35
|
function ItemsDirective() {
|
|
34
|
-
return _super
|
|
36
|
+
return _super.call(this, arguments) || this;
|
|
35
37
|
}
|
|
36
|
-
ItemsDirective.prototype.render = function () {
|
|
38
|
+
ItemsDirective.prototype.render = function (createElement) {
|
|
39
|
+
if (gh) {
|
|
40
|
+
var h = gh || createElement;
|
|
41
|
+
var slots = null;
|
|
42
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
43
|
+
slots = gh ? this.$slots.default() : this.$slots.default;
|
|
44
|
+
}
|
|
45
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
46
|
+
}
|
|
37
47
|
return;
|
|
38
48
|
};
|
|
49
|
+
ItemsDirective.prototype.updated = function () {
|
|
50
|
+
if (gh && this.custom) {
|
|
51
|
+
this.custom();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
39
54
|
ItemsDirective.prototype.getTag = function () {
|
|
40
55
|
return 'e-items';
|
|
41
56
|
};
|
|
42
57
|
ItemsDirective = __decorate([
|
|
43
58
|
EJComponentDecorator({}, isExecute)
|
|
59
|
+
,Options({
|
|
60
|
+
inject: {
|
|
61
|
+
custom: {
|
|
62
|
+
default: null
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
44
66
|
], ItemsDirective);
|
|
45
67
|
return ItemsDirective;
|
|
46
68
|
}(vueImport));
|
|
@@ -28,6 +28,7 @@ export declare class ToolbarComponent extends ComponentBase {
|
|
|
28
28
|
clearTemplate(templateNames?: string[]): any;
|
|
29
29
|
setProperties(prop: any, muteOnChange: boolean): void;
|
|
30
30
|
render(createElement: any): any;
|
|
31
|
+
custom(): void;
|
|
31
32
|
addItems(items: Object[], index?: number): void;
|
|
32
33
|
disable(value: boolean): void;
|
|
33
34
|
enableItems(items: number | Object | Object, isEnable?: boolean): void;
|
|
@@ -56,6 +56,7 @@ var ToolbarComponent = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
57
57
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
58
58
|
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
59
|
+
_this.updated = _this.updated;
|
|
59
60
|
return _this;
|
|
60
61
|
}
|
|
61
62
|
ToolbarComponent.prototype.clearTemplate = function (templateNames) {
|
|
@@ -114,6 +115,9 @@ var ToolbarComponent = /** @class */ (function (_super) {
|
|
|
114
115
|
}
|
|
115
116
|
return h('div', slots);
|
|
116
117
|
};
|
|
118
|
+
ToolbarComponent.prototype.custom = function () {
|
|
119
|
+
this.updated();
|
|
120
|
+
};
|
|
117
121
|
ToolbarComponent.prototype.addItems = function (items, index) {
|
|
118
122
|
return this.ej2Instances.addItems(items, index);
|
|
119
123
|
};
|
|
@@ -139,7 +143,12 @@ var ToolbarComponent = /** @class */ (function (_super) {
|
|
|
139
143
|
,Options({
|
|
140
144
|
props: props,
|
|
141
145
|
watch: watch,
|
|
142
|
-
emits: emitProbs
|
|
146
|
+
emits: emitProbs,
|
|
147
|
+
provide: function provide() {
|
|
148
|
+
return {
|
|
149
|
+
custom: this.custom
|
|
150
|
+
};
|
|
151
|
+
}
|
|
143
152
|
})
|
|
144
153
|
], ToolbarComponent);
|
|
145
154
|
return ToolbarComponent;
|
|
@@ -28,6 +28,7 @@ export declare class TreeViewComponent extends ComponentBase {
|
|
|
28
28
|
clearTemplate(templateNames?: string[]): any;
|
|
29
29
|
setProperties(prop: any, muteOnChange: boolean): void;
|
|
30
30
|
render(createElement: any): any;
|
|
31
|
+
custom(): void;
|
|
31
32
|
addNodes(nodes: undefined[], target?: string | Object, index?: number, preventTargetExpand?: boolean): void;
|
|
32
33
|
beginEdit(node: string | Object): void;
|
|
33
34
|
checkAll(nodes?: string[] | Object[]): void;
|
|
@@ -55,6 +55,7 @@ var TreeViewComponent = /** @class */ (function (_super) {
|
|
|
55
55
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
56
56
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
57
57
|
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
58
|
+
_this.updated = _this.updated;
|
|
58
59
|
return _this;
|
|
59
60
|
}
|
|
60
61
|
TreeViewComponent.prototype.clearTemplate = function (templateNames) {
|
|
@@ -113,6 +114,9 @@ var TreeViewComponent = /** @class */ (function (_super) {
|
|
|
113
114
|
}
|
|
114
115
|
return h('div', slots);
|
|
115
116
|
};
|
|
117
|
+
TreeViewComponent.prototype.custom = function () {
|
|
118
|
+
this.updated();
|
|
119
|
+
};
|
|
116
120
|
TreeViewComponent.prototype.addNodes = function (nodes, target, index, preventTargetExpand) {
|
|
117
121
|
return this.ej2Instances.addNodes(nodes, target, index, preventTargetExpand);
|
|
118
122
|
};
|
|
@@ -171,7 +175,12 @@ var TreeViewComponent = /** @class */ (function (_super) {
|
|
|
171
175
|
,Options({
|
|
172
176
|
props: props,
|
|
173
177
|
watch: watch,
|
|
174
|
-
emits: emitProbs
|
|
178
|
+
emits: emitProbs,
|
|
179
|
+
provide: function provide() {
|
|
180
|
+
return {
|
|
181
|
+
custom: this.custom
|
|
182
|
+
};
|
|
183
|
+
}
|
|
175
184
|
})
|
|
176
185
|
], TreeViewComponent);
|
|
177
186
|
return TreeViewComponent;
|