@syncfusion/ej2-vue-navigations 20.4.53 → 21.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +211 -142
- 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 +1195 -1613
- package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es5.js +1337 -1877
- package/dist/es6/ej2-vue-navigations.es5.js.map +1 -1
- package/dist/global/ej2-vue-navigations.min.js +2 -2
- package/package.json +9 -9
- package/src/accordion/accordion.component.d.ts +3 -31
- package/src/accordion/accordion.component.js +137 -168
- package/src/accordion/items.directive.d.ts +2 -12
- package/src/accordion/items.directive.js +22 -71
- package/src/appbar/appbar.component.d.ts +3 -22
- package/src/appbar/appbar.component.js +83 -112
- package/src/breadcrumb/breadcrumb.component.d.ts +3 -25
- package/src/breadcrumb/breadcrumb.component.js +119 -150
- package/src/breadcrumb/items.directive.d.ts +2 -12
- package/src/breadcrumb/items.directive.js +22 -71
- package/src/carousel/carousel.component.d.ts +3 -29
- package/src/carousel/carousel.component.js +131 -162
- package/src/carousel/items.directive.d.ts +2 -12
- package/src/carousel/items.directive.js +22 -71
- package/src/context-menu/contextmenu.component.d.ts +3 -32
- package/src/context-menu/contextmenu.component.js +113 -142
- package/src/menu/items.directive.d.ts +2 -12
- package/src/menu/items.directive.js +22 -71
- package/src/menu/menu.component.d.ts +3 -32
- package/src/menu/menu.component.js +113 -142
- package/src/sidebar/sidebar.component.d.ts +3 -28
- package/src/sidebar/sidebar.component.js +128 -159
- package/src/tab/items.directive.d.ts +2 -12
- package/src/tab/items.directive.js +22 -71
- package/src/tab/tab.component.d.ts +3 -32
- package/src/tab/tab.component.js +113 -142
- package/src/toolbar/items.directive.d.ts +2 -12
- package/src/toolbar/items.directive.js +22 -71
- package/src/toolbar/toolbar.component.d.ts +3 -28
- package/src/toolbar/toolbar.component.js +101 -130
- package/src/treeview/treeview.component.d.ts +3 -39
- package/src/treeview/treeview.component.js +134 -163
- package/styles/accordion/bootstrap-dark.css +0 -1
- package/styles/accordion/bootstrap.css +0 -1
- package/styles/accordion/bootstrap4.css +0 -1
- package/styles/accordion/bootstrap5-dark.css +3 -4
- package/styles/accordion/bootstrap5.css +3 -4
- package/styles/accordion/fabric-dark.css +0 -1
- package/styles/accordion/fabric.css +0 -1
- package/styles/accordion/fluent-dark.css +3 -4
- package/styles/accordion/fluent.css +3 -4
- package/styles/accordion/highcontrast-light.css +0 -1
- package/styles/accordion/highcontrast.css +0 -1
- package/styles/accordion/material-dark.css +0 -1
- package/styles/accordion/material.css +0 -1
- package/styles/accordion/tailwind-dark.css +3 -4
- package/styles/accordion/tailwind.css +3 -4
- package/styles/appbar/bootstrap-dark.css +3 -0
- package/styles/appbar/bootstrap.css +3 -0
- package/styles/appbar/bootstrap4.css +3 -0
- package/styles/appbar/bootstrap5-dark.css +3 -0
- package/styles/appbar/bootstrap5.css +3 -0
- package/styles/appbar/fabric-dark.css +3 -0
- package/styles/appbar/fabric.css +3 -0
- package/styles/appbar/fluent-dark.css +3 -0
- package/styles/appbar/fluent.css +3 -0
- package/styles/appbar/highcontrast-light.css +3 -0
- package/styles/appbar/highcontrast.css +3 -0
- package/styles/appbar/material-dark.css +3 -0
- package/styles/appbar/material.css +3 -0
- package/styles/appbar/tailwind-dark.css +3 -0
- package/styles/appbar/tailwind.css +3 -0
- package/styles/bootstrap-dark.css +669 -938
- package/styles/bootstrap.css +658 -927
- package/styles/bootstrap4.css +724 -993
- package/styles/bootstrap5-dark.css +685 -954
- package/styles/bootstrap5.css +686 -955
- package/styles/carousel/bootstrap-dark.css +4 -0
- package/styles/carousel/bootstrap.css +4 -0
- package/styles/carousel/bootstrap4.css +4 -0
- package/styles/carousel/bootstrap5-dark.css +4 -0
- package/styles/carousel/bootstrap5.css +4 -0
- package/styles/carousel/fabric-dark.css +4 -0
- package/styles/carousel/fabric.css +4 -0
- package/styles/carousel/fluent-dark.css +4 -0
- package/styles/carousel/fluent.css +4 -0
- package/styles/carousel/highcontrast-light.css +4 -0
- package/styles/carousel/highcontrast.css +4 -0
- package/styles/carousel/material-dark.css +4 -0
- package/styles/carousel/material.css +4 -0
- package/styles/carousel/tailwind-dark.css +4 -0
- package/styles/carousel/tailwind.css +4 -0
- package/styles/fabric-dark.css +669 -938
- package/styles/fabric.css +669 -938
- package/styles/fluent-dark.css +677 -946
- package/styles/fluent.css +677 -946
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/highcontrast-light.css +668 -937
- package/styles/highcontrast.css +675 -944
- package/styles/material-dark.css +669 -938
- package/styles/material.css +661 -930
- package/styles/menu/bootstrap-dark.css +7 -7
- package/styles/menu/bootstrap.css +7 -7
- package/styles/menu/bootstrap4.css +10 -10
- package/styles/menu/bootstrap5-dark.css +7 -7
- package/styles/menu/bootstrap5.css +7 -7
- package/styles/menu/fabric-dark.css +7 -7
- package/styles/menu/fabric.css +7 -7
- package/styles/menu/fluent-dark.css +7 -7
- package/styles/menu/fluent.css +7 -7
- package/styles/menu/highcontrast-light.css +7 -7
- package/styles/menu/highcontrast.css +7 -7
- package/styles/menu/material-dark.css +7 -7
- package/styles/menu/material.css +7 -7
- package/styles/menu/tailwind-dark.css +7 -7
- package/styles/menu/tailwind.css +7 -7
- package/styles/tab/bootstrap-dark.css +5 -2
- package/styles/tab/bootstrap.css +5 -2
- package/styles/tab/bootstrap4.css +12 -9
- package/styles/tab/bootstrap5-dark.css +11 -8
- package/styles/tab/bootstrap5.css +11 -8
- package/styles/tab/fabric-dark.css +7 -4
- package/styles/tab/fabric.css +7 -4
- package/styles/tab/fluent-dark.css +8 -5
- package/styles/tab/fluent.css +8 -5
- package/styles/tab/highcontrast-light.css +10 -7
- package/styles/tab/highcontrast.css +10 -7
- package/styles/tab/material-dark.css +4 -1
- package/styles/tab/material.css +4 -1
- package/styles/tab/tailwind-dark.css +8 -5
- package/styles/tab/tailwind.css +8 -5
- package/styles/tailwind-dark.css +668 -937
- package/styles/tailwind.css +668 -937
- package/styles/toolbar/bootstrap-dark.css +647 -925
- package/styles/toolbar/bootstrap.css +638 -916
- package/styles/toolbar/bootstrap4.css +657 -935
- package/styles/toolbar/bootstrap5-dark.css +658 -936
- package/styles/toolbar/bootstrap5.css +658 -936
- package/styles/toolbar/fabric-dark.css +645 -923
- package/styles/toolbar/fabric.css +651 -929
- package/styles/toolbar/fluent-dark.css +650 -928
- package/styles/toolbar/fluent.css +650 -928
- package/styles/toolbar/highcontrast-light.css +642 -920
- package/styles/toolbar/highcontrast.css +647 -925
- package/styles/toolbar/material-dark.css +649 -927
- package/styles/toolbar/material.css +646 -924
- package/styles/toolbar/tailwind-dark.css +647 -925
- package/styles/toolbar/tailwind.css +645 -923
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
declare let
|
|
2
|
-
export declare class TabItemsDirective extends vueImport {
|
|
3
|
-
constructor();
|
|
4
|
-
render(createElement: any): void;
|
|
5
|
-
updated(): void;
|
|
6
|
-
getTag(): string;
|
|
7
|
-
}
|
|
1
|
+
export declare let TabItemsDirective: any;
|
|
8
2
|
export declare const TabItemsPlugin: {
|
|
9
3
|
name: string;
|
|
10
4
|
install(Vue: any): void;
|
|
@@ -21,12 +15,8 @@ export declare const TabItemsPlugin: {
|
|
|
21
15
|
* </ejs-tab>
|
|
22
16
|
* ```
|
|
23
17
|
*/
|
|
24
|
-
export declare
|
|
25
|
-
render(): void;
|
|
26
|
-
getTag(): string;
|
|
27
|
-
}
|
|
18
|
+
export declare let TabItemDirective: any;
|
|
28
19
|
export declare const TabItemPlugin: {
|
|
29
20
|
name: string;
|
|
30
21
|
install(Vue: any): void;
|
|
31
22
|
};
|
|
32
|
-
export {};
|
|
@@ -1,40 +1,8 @@
|
|
|
1
|
-
|
|
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, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
|
-
import * as Vue3 from 'vue-class-component';
|
|
1
|
+
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
27
|
-
vueImport = Vue3.Vue;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
vueImport = Vue;
|
|
31
|
-
}
|
|
32
|
-
var TabItemsDirective = /** @class */ (function (_super) {
|
|
33
|
-
__extends(TabItemsDirective, _super);
|
|
34
|
-
function TabItemsDirective() {
|
|
35
|
-
return _super.call(this, arguments) || this;
|
|
36
|
-
}
|
|
37
|
-
TabItemsDirective.prototype.render = function (createElement) {
|
|
3
|
+
export var TabItemsDirective = vueDefineComponent({
|
|
4
|
+
inject: { custom: { default: null } },
|
|
5
|
+
render: function (createElement) {
|
|
38
6
|
if (!isExecute) {
|
|
39
7
|
var h = !isExecute ? gh : createElement;
|
|
40
8
|
var slots = null;
|
|
@@ -44,28 +12,18 @@ var TabItemsDirective = /** @class */ (function (_super) {
|
|
|
44
12
|
return h('div', { class: 'e-directive' }, slots);
|
|
45
13
|
}
|
|
46
14
|
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
49
17
|
if (!isExecute && this.custom) {
|
|
50
18
|
this.custom();
|
|
51
19
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
inject: {
|
|
60
|
-
custom: {
|
|
61
|
-
default: null
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
})
|
|
65
|
-
], TabItemsDirective);
|
|
66
|
-
return TabItemsDirective;
|
|
67
|
-
}(vueImport));
|
|
68
|
-
export { TabItemsDirective };
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
getTag: function () {
|
|
23
|
+
return 'e-tabitems';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
69
27
|
export var TabItemsPlugin = {
|
|
70
28
|
name: 'e-tabitems',
|
|
71
29
|
install: function (Vue) {
|
|
@@ -84,23 +42,16 @@ export var TabItemsPlugin = {
|
|
|
84
42
|
* </ejs-tab>
|
|
85
43
|
* ```
|
|
86
44
|
*/
|
|
87
|
-
var TabItemDirective =
|
|
88
|
-
|
|
89
|
-
function TabItemDirective() {
|
|
90
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
91
|
-
}
|
|
92
|
-
TabItemDirective.prototype.render = function () {
|
|
45
|
+
export var TabItemDirective = vueDefineComponent({
|
|
46
|
+
render: function () {
|
|
93
47
|
return;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return TabItemDirective;
|
|
102
|
-
}(vueImport));
|
|
103
|
-
export { TabItemDirective };
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
getTag: function () {
|
|
51
|
+
return 'e-tabitem';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
104
55
|
export var TabItemPlugin = {
|
|
105
56
|
name: 'e-tabitem',
|
|
106
57
|
install: function (Vue) {
|
|
@@ -1,44 +1,15 @@
|
|
|
1
|
-
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
1
|
export declare const properties: string[];
|
|
3
2
|
export declare const modelProps: string[];
|
|
4
3
|
export declare const testProp: any;
|
|
5
|
-
export declare const props: any;
|
|
6
|
-
export declare const watch: any;
|
|
7
|
-
export declare const emitProbs: any;
|
|
4
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
8
5
|
/**
|
|
9
6
|
* Represents the VueJS Tab Component.
|
|
10
7
|
* ```html
|
|
11
8
|
* <ejs-tab></ejs-tab>
|
|
12
9
|
* ```
|
|
13
10
|
*/
|
|
14
|
-
export declare
|
|
15
|
-
|
|
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
|
-
addTab(items: Object[], index?: number): void;
|
|
32
|
-
disable(value: boolean): void;
|
|
33
|
-
enableTab(index: number, value: boolean): void;
|
|
34
|
-
getItemIndex(tabItemId: string): number;
|
|
35
|
-
hideTab(index: number, value?: boolean): void;
|
|
36
|
-
refresh(): void;
|
|
37
|
-
refreshActiveTab(): void;
|
|
38
|
-
refreshActiveTabBorder(): void;
|
|
39
|
-
removeTab(index: number): void;
|
|
40
|
-
select(args: number | Object, event?: Object): void;
|
|
41
|
-
}
|
|
11
|
+
export declare let TabComponent: any;
|
|
12
|
+
export declare type TabComponent = InstanceType<typeof TabComponent>;
|
|
42
13
|
export declare const TabPlugin: {
|
|
43
14
|
name: string;
|
|
44
15
|
install(Vue: any): void;
|
package/src/tab/tab.component.js
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
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';
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
21
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
3
|
import { Tab } from '@syncfusion/ej2-navigations';
|
|
23
4
|
import { TabItemsDirective, TabItemDirective, TabItemsPlugin, TabItemPlugin } from './items.directive';
|
|
24
|
-
import { Options } from 'vue-class-component';
|
|
25
5
|
export var properties = ['isLazyUpdate', 'plugins', 'allowDragAndDrop', 'animation', 'cssClass', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'headerPlacement', 'height', 'heightAdjustMode', 'items', 'loadOn', 'locale', 'overflowMode', 'reorderActiveTab', 'scrollStep', 'selectedItem', 'showCloseButton', 'width', 'added', 'adding', 'created', 'destroyed', 'dragged', 'dragging', 'onDragStart', 'removed', 'removing', 'selected', 'selecting'];
|
|
26
6
|
export var modelProps = [];
|
|
27
7
|
export var testProp = getProps({ props: properties });
|
|
28
|
-
export var props = testProp[0];
|
|
29
|
-
export var watch = testProp[1];
|
|
30
|
-
export var emitProbs = Object.keys(watch);
|
|
8
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
31
9
|
emitProbs.push('modelchanged', 'update:modelValue');
|
|
32
10
|
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
33
11
|
var props_1 = modelProps_1[_i];
|
|
@@ -39,132 +17,125 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
39
17
|
* <ejs-tab></ejs-tab>
|
|
40
18
|
* ```
|
|
41
19
|
*/
|
|
42
|
-
var TabComponent =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
20
|
+
export var TabComponent = vueDefineComponent({
|
|
21
|
+
name: 'TabComponent',
|
|
22
|
+
mixins: [ComponentBase],
|
|
23
|
+
props: props,
|
|
24
|
+
watch: watch,
|
|
25
|
+
emits: emitProbs,
|
|
26
|
+
provide: function () { return { custom: this.custom }; },
|
|
27
|
+
data: function () {
|
|
28
|
+
return {
|
|
29
|
+
ej2Instances: new Tab({}),
|
|
30
|
+
propKeys: properties,
|
|
31
|
+
models: modelProps,
|
|
32
|
+
hasChildDirective: true,
|
|
33
|
+
hasInjectedModules: false,
|
|
34
|
+
tagMapper: { "e-tabitems": "e-tabitem" },
|
|
35
|
+
tagNameMapper: { "e-tabitems": "e-items" },
|
|
36
|
+
isVue3: !isExecute,
|
|
37
|
+
templateCollection: {},
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
created: function () {
|
|
41
|
+
this.bindProperties();
|
|
42
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
43
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
44
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
45
|
+
this.updated = this.updated;
|
|
46
|
+
},
|
|
47
|
+
render: function (createElement) {
|
|
48
|
+
var h = !isExecute ? gh : createElement;
|
|
49
|
+
var slots = null;
|
|
50
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
51
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
64
52
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
53
|
+
return h('div', slots);
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
clearTemplate: function (templateNames) {
|
|
57
|
+
if (!templateNames) {
|
|
58
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
59
|
+
}
|
|
60
|
+
if (templateNames.length && this.templateCollection) {
|
|
61
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
62
|
+
var tempName = templateNames_1[_i];
|
|
63
|
+
var elementCollection = this.templateCollection[tempName];
|
|
64
|
+
if (elementCollection && elementCollection.length) {
|
|
65
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
66
|
+
var ele = elementCollection_1[_a];
|
|
67
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
68
|
+
if (destroy) {
|
|
69
|
+
ele.__vue__.$destroy();
|
|
70
|
+
}
|
|
71
|
+
if (ele.innerHTML) {
|
|
72
|
+
ele.innerHTML = '';
|
|
73
|
+
}
|
|
78
74
|
}
|
|
75
|
+
delete this.templateCollection[tempName];
|
|
79
76
|
}
|
|
80
|
-
delete this.templateCollection[tempName];
|
|
81
77
|
}
|
|
82
78
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
},
|
|
80
|
+
setProperties: function (prop, muteOnChange) {
|
|
81
|
+
var _this = this;
|
|
82
|
+
if (this.isVue3) {
|
|
83
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
84
|
+
}
|
|
85
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
86
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
87
|
+
}
|
|
88
|
+
if (prop && this.models && this.models.length) {
|
|
89
|
+
Object.keys(prop).map(function (key) {
|
|
90
|
+
_this.models.map(function (model) {
|
|
91
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
92
|
+
if (_this.isVue3) {
|
|
93
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
_this.$emit('update:' + key, prop[key]);
|
|
97
|
+
_this.$emit('modelchanged', prop[key]);
|
|
98
|
+
}
|
|
103
99
|
}
|
|
104
|
-
}
|
|
100
|
+
});
|
|
105
101
|
});
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
TabComponent.prototype.render = function (createElement) {
|
|
110
|
-
var h = !isExecute ? gh : createElement;
|
|
111
|
-
var slots = null;
|
|
112
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
113
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
114
|
-
}
|
|
115
|
-
return h('div', slots);
|
|
116
|
-
};
|
|
117
|
-
TabComponent.prototype.custom = function () {
|
|
118
|
-
this.updated();
|
|
119
|
-
};
|
|
120
|
-
TabComponent.prototype.addTab = function (items, index) {
|
|
121
|
-
return this.ej2Instances.addTab(items, index);
|
|
122
|
-
};
|
|
123
|
-
TabComponent.prototype.disable = function (value) {
|
|
124
|
-
return this.ej2Instances.disable(value);
|
|
125
|
-
};
|
|
126
|
-
TabComponent.prototype.enableTab = function (index, value) {
|
|
127
|
-
return this.ej2Instances.enableTab(index, value);
|
|
128
|
-
};
|
|
129
|
-
TabComponent.prototype.getItemIndex = function (tabItemId) {
|
|
130
|
-
return this.ej2Instances.getItemIndex(tabItemId);
|
|
131
|
-
};
|
|
132
|
-
TabComponent.prototype.hideTab = function (index, value) {
|
|
133
|
-
return this.ej2Instances.hideTab(index, value);
|
|
134
|
-
};
|
|
135
|
-
TabComponent.prototype.refresh = function () {
|
|
136
|
-
return this.ej2Instances.refresh();
|
|
137
|
-
};
|
|
138
|
-
TabComponent.prototype.refreshActiveTab = function () {
|
|
139
|
-
return this.ej2Instances.refreshActiveTab();
|
|
140
|
-
};
|
|
141
|
-
TabComponent.prototype.refreshActiveTabBorder = function () {
|
|
142
|
-
return this.ej2Instances.refreshActiveTabBorder();
|
|
143
|
-
};
|
|
144
|
-
TabComponent.prototype.removeTab = function (index) {
|
|
145
|
-
return this.ej2Instances.removeTab(index);
|
|
146
|
-
};
|
|
147
|
-
TabComponent.prototype.select = function (args, event) {
|
|
148
|
-
return this.ej2Instances.select(args, event);
|
|
149
|
-
};
|
|
150
|
-
TabComponent = __decorate([
|
|
151
|
-
EJComponentDecorator({
|
|
152
|
-
props: properties
|
|
153
|
-
}, isExecute)
|
|
154
|
-
,Options({
|
|
155
|
-
props: props,
|
|
156
|
-
watch: watch,
|
|
157
|
-
emits: emitProbs,
|
|
158
|
-
provide: function provide() {
|
|
159
|
-
return {
|
|
160
|
-
custom: this.custom
|
|
161
|
-
};
|
|
162
102
|
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
103
|
+
},
|
|
104
|
+
custom: function () {
|
|
105
|
+
this.updated();
|
|
106
|
+
},
|
|
107
|
+
addTab: function (items, index) {
|
|
108
|
+
return this.ej2Instances.addTab(items, index);
|
|
109
|
+
},
|
|
110
|
+
disable: function (value) {
|
|
111
|
+
return this.ej2Instances.disable(value);
|
|
112
|
+
},
|
|
113
|
+
enableTab: function (index, value) {
|
|
114
|
+
return this.ej2Instances.enableTab(index, value);
|
|
115
|
+
},
|
|
116
|
+
getItemIndex: function (tabItemId) {
|
|
117
|
+
return this.ej2Instances.getItemIndex(tabItemId);
|
|
118
|
+
},
|
|
119
|
+
hideTab: function (index, value) {
|
|
120
|
+
return this.ej2Instances.hideTab(index, value);
|
|
121
|
+
},
|
|
122
|
+
refresh: function () {
|
|
123
|
+
return this.ej2Instances.refresh();
|
|
124
|
+
},
|
|
125
|
+
refreshActiveTab: function () {
|
|
126
|
+
return this.ej2Instances.refreshActiveTab();
|
|
127
|
+
},
|
|
128
|
+
refreshActiveTabBorder: function () {
|
|
129
|
+
return this.ej2Instances.refreshActiveTabBorder();
|
|
130
|
+
},
|
|
131
|
+
removeTab: function (index) {
|
|
132
|
+
return this.ej2Instances.removeTab(index);
|
|
133
|
+
},
|
|
134
|
+
select: function (args, event) {
|
|
135
|
+
return this.ej2Instances.select(args, event);
|
|
136
|
+
},
|
|
137
|
+
}
|
|
138
|
+
});
|
|
168
139
|
export var TabPlugin = {
|
|
169
140
|
name: 'ejs-tab',
|
|
170
141
|
install: function (Vue) {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
declare let
|
|
2
|
-
export declare class ItemsDirective extends vueImport {
|
|
3
|
-
constructor();
|
|
4
|
-
render(createElement: any): void;
|
|
5
|
-
updated(): void;
|
|
6
|
-
getTag(): string;
|
|
7
|
-
}
|
|
1
|
+
export declare let ItemsDirective: any;
|
|
8
2
|
export declare const ItemsPlugin: {
|
|
9
3
|
name: string;
|
|
10
4
|
install(Vue: any): void;
|
|
@@ -21,12 +15,8 @@ export declare const ItemsPlugin: {
|
|
|
21
15
|
* </ejs-toolbar>
|
|
22
16
|
* ```
|
|
23
17
|
*/
|
|
24
|
-
export declare
|
|
25
|
-
render(): void;
|
|
26
|
-
getTag(): string;
|
|
27
|
-
}
|
|
18
|
+
export declare let ItemDirective: any;
|
|
28
19
|
export declare const ItemPlugin: {
|
|
29
20
|
name: string;
|
|
30
21
|
install(Vue: any): void;
|
|
31
22
|
};
|
|
32
|
-
export {};
|
|
@@ -1,40 +1,8 @@
|
|
|
1
|
-
|
|
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, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
|
-
import * as Vue3 from 'vue-class-component';
|
|
1
|
+
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
27
|
-
vueImport = Vue3.Vue;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
vueImport = Vue;
|
|
31
|
-
}
|
|
32
|
-
var ItemsDirective = /** @class */ (function (_super) {
|
|
33
|
-
__extends(ItemsDirective, _super);
|
|
34
|
-
function ItemsDirective() {
|
|
35
|
-
return _super.call(this, arguments) || this;
|
|
36
|
-
}
|
|
37
|
-
ItemsDirective.prototype.render = function (createElement) {
|
|
3
|
+
export var ItemsDirective = vueDefineComponent({
|
|
4
|
+
inject: { custom: { default: null } },
|
|
5
|
+
render: function (createElement) {
|
|
38
6
|
if (!isExecute) {
|
|
39
7
|
var h = !isExecute ? gh : createElement;
|
|
40
8
|
var slots = null;
|
|
@@ -44,28 +12,18 @@ var ItemsDirective = /** @class */ (function (_super) {
|
|
|
44
12
|
return h('div', { class: 'e-directive' }, slots);
|
|
45
13
|
}
|
|
46
14
|
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
49
17
|
if (!isExecute && this.custom) {
|
|
50
18
|
this.custom();
|
|
51
19
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
inject: {
|
|
60
|
-
custom: {
|
|
61
|
-
default: null
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
})
|
|
65
|
-
], ItemsDirective);
|
|
66
|
-
return ItemsDirective;
|
|
67
|
-
}(vueImport));
|
|
68
|
-
export { ItemsDirective };
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
getTag: function () {
|
|
23
|
+
return 'e-items';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
69
27
|
export var ItemsPlugin = {
|
|
70
28
|
name: 'e-items',
|
|
71
29
|
install: function (Vue) {
|
|
@@ -84,23 +42,16 @@ export var ItemsPlugin = {
|
|
|
84
42
|
* </ejs-toolbar>
|
|
85
43
|
* ```
|
|
86
44
|
*/
|
|
87
|
-
var ItemDirective =
|
|
88
|
-
|
|
89
|
-
function ItemDirective() {
|
|
90
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
91
|
-
}
|
|
92
|
-
ItemDirective.prototype.render = function () {
|
|
45
|
+
export var ItemDirective = vueDefineComponent({
|
|
46
|
+
render: function () {
|
|
93
47
|
return;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return ItemDirective;
|
|
102
|
-
}(vueImport));
|
|
103
|
-
export { ItemDirective };
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
getTag: function () {
|
|
51
|
+
return 'e-item';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
104
55
|
export var ItemPlugin = {
|
|
105
56
|
name: 'e-item',
|
|
106
57
|
install: function (Vue) {
|
|
@@ -1,40 +1,15 @@
|
|
|
1
|
-
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
1
|
export declare const properties: string[];
|
|
3
2
|
export declare const modelProps: string[];
|
|
4
3
|
export declare const testProp: any;
|
|
5
|
-
export declare const props: any;
|
|
6
|
-
export declare const watch: any;
|
|
7
|
-
export declare const emitProbs: any;
|
|
4
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
8
5
|
/**
|
|
9
6
|
* Represents the VueJS Toolbar Component.
|
|
10
7
|
* ```html
|
|
11
8
|
* <ejs-toolbar></ejs-toolbar>
|
|
12
9
|
* ```
|
|
13
10
|
*/
|
|
14
|
-
export declare
|
|
15
|
-
|
|
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
|
-
addItems(items: Object[], index?: number): void;
|
|
32
|
-
disable(value: boolean): void;
|
|
33
|
-
enableItems(items: number | Object | Object, isEnable?: boolean): void;
|
|
34
|
-
hideItem(index: number | Object | Object, value?: boolean): void;
|
|
35
|
-
refreshOverflow(): void;
|
|
36
|
-
removeItems(args: number | Object | Object | Object | Object[]): void;
|
|
37
|
-
}
|
|
11
|
+
export declare let ToolbarComponent: any;
|
|
12
|
+
export declare type ToolbarComponent = InstanceType<typeof ToolbarComponent>;
|
|
38
13
|
export declare const ToolbarPlugin: {
|
|
39
14
|
name: string;
|
|
40
15
|
install(Vue: any): void;
|