@syncfusion/ej2-vue-navigations 19.4.56 → 20.1.51
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 +49 -3
- package/README.md +17 -2
- package/carousel.d.ts +4 -0
- package/carousel.js +4 -0
- package/dist/ej2-vue-navigations.umd.min.js +29 -2
- package/dist/ej2-vue-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es2015.js +373 -92
- package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es5.js +411 -109
- 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 +1 -1
- package/src/accordion/accordion.component.js +1 -1
- 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/index.d.ts +2 -0
- package/src/index.js +2 -0
- 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 +309 -68
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +309 -68
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +309 -68
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +414 -170
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +414 -170
- package/styles/bootstrap5.scss +1 -0
- package/styles/breadcrumb/bootstrap-dark.css +9 -1
- package/styles/breadcrumb/bootstrap.css +9 -1
- package/styles/breadcrumb/bootstrap4.css +9 -1
- package/styles/breadcrumb/bootstrap5-dark.css +11 -3
- package/styles/breadcrumb/bootstrap5.css +11 -3
- package/styles/breadcrumb/fabric-dark.css +9 -3
- package/styles/breadcrumb/fabric.css +9 -3
- 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 +9 -3
- package/styles/breadcrumb/highcontrast.css +9 -3
- package/styles/breadcrumb/material-dark.css +9 -1
- package/styles/breadcrumb/material.css +9 -1
- package/styles/breadcrumb/tailwind-dark.css +27 -10
- package/styles/breadcrumb/tailwind.css +26 -9
- 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 +311 -72
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +311 -72
- 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 +310 -71
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +311 -72
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +313 -72
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +310 -69
- 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 +428 -177
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +427 -176
- 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
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-navigations@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-navigations@20.1.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-xISDOLZicL62TPPuxZtHD7g/doUfgKnCnQsWf4vUf+P84/DU7tz+BQoM38cDib6eASFjx3tDHY5BxwkgF4n5zw==",
|
|
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-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-20.1.48.tgz",
|
|
23
|
+
"_shasum": "c100723817e8202f2289307b8e118d55761b30dd",
|
|
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": "~
|
|
35
|
-
"@syncfusion/ej2-navigations": "
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~
|
|
34
|
+
"@syncfusion/ej2-base": "~20.1.50",
|
|
35
|
+
"@syncfusion/ej2-navigations": "20.1.51",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~20.1.51"
|
|
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",
|
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
"accordion tree",
|
|
142
142
|
"tree node template",
|
|
143
143
|
"tree multi selection",
|
|
144
|
+
"carousel",
|
|
144
145
|
"vue",
|
|
145
146
|
"ej2-vue-navigations",
|
|
146
147
|
" vue-navigations",
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
"vue tree component",
|
|
154
155
|
"vue menu",
|
|
155
156
|
"vue menu component",
|
|
156
|
-
"vue breadcrumb"
|
|
157
|
+
"vue breadcrumb",
|
|
158
|
+
"vue carousel"
|
|
157
159
|
],
|
|
158
160
|
"license": "SEE LICENSE IN license",
|
|
159
161
|
"main": "./dist/ej2-vue-navigations.umd.min.js",
|
|
@@ -163,6 +165,6 @@
|
|
|
163
165
|
"type": "git",
|
|
164
166
|
"url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
|
|
165
167
|
},
|
|
166
|
-
"version": "
|
|
168
|
+
"version": "20.1.51",
|
|
167
169
|
"sideEffects": false
|
|
168
170
|
}
|
|
@@ -7,7 +7,7 @@ export declare const watch: any;
|
|
|
7
7
|
export declare const emitProbs: any;
|
|
8
8
|
export declare const isExecute: any;
|
|
9
9
|
/**
|
|
10
|
-
* Represents the VueJS
|
|
10
|
+
* Represents the VueJS Accordion Component.
|
|
11
11
|
* ```html
|
|
12
12
|
* <ejs-accordion></ejs-accordion>
|
|
13
13
|
* ```
|
|
@@ -36,7 +36,7 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
36
36
|
}
|
|
37
37
|
export var isExecute = gh ? false : true;
|
|
38
38
|
/**
|
|
39
|
-
* Represents the VueJS
|
|
39
|
+
* Represents the VueJS Accordion Component.
|
|
40
40
|
* ```html
|
|
41
41
|
* <ejs-accordion></ejs-accordion>
|
|
42
42
|
* ```
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
export declare const isExecute: any;
|
|
9
|
+
/**
|
|
10
|
+
* Represents the VueJS Carousel Component.
|
|
11
|
+
* ```html
|
|
12
|
+
* <ejs-carousel :items='carouselItems'></ejs-carousel>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class CarouselComponent extends ComponentBase {
|
|
16
|
+
ej2Instances: any;
|
|
17
|
+
propKeys: string[];
|
|
18
|
+
models: string[];
|
|
19
|
+
hasChildDirective: boolean;
|
|
20
|
+
protected hasInjectedModules: boolean;
|
|
21
|
+
tagMapper: {
|
|
22
|
+
[key: string]: Object;
|
|
23
|
+
};
|
|
24
|
+
tagNameMapper: Object;
|
|
25
|
+
isVue3: boolean;
|
|
26
|
+
templateCollection: any;
|
|
27
|
+
constructor();
|
|
28
|
+
clearTemplate(templateNames?: string[]): any;
|
|
29
|
+
setProperties(prop: any, muteOnChange: boolean): void;
|
|
30
|
+
trigger(eventName: string, eventProp: {
|
|
31
|
+
[key: string]: Object;
|
|
32
|
+
}, successHandler?: Function): void;
|
|
33
|
+
render(createElement: any): any;
|
|
34
|
+
custom(): void;
|
|
35
|
+
next(): void;
|
|
36
|
+
pause(): void;
|
|
37
|
+
play(): void;
|
|
38
|
+
prev(): void;
|
|
39
|
+
}
|
|
40
|
+
export declare const CarouselPlugin: {
|
|
41
|
+
name: string;
|
|
42
|
+
install(Vue: any): void;
|
|
43
|
+
};
|
|
@@ -0,0 +1,202 @@
|
|
|
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 { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
22
|
+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
23
|
+
import { Carousel } from '@syncfusion/ej2-navigations';
|
|
24
|
+
import { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './items.directive';
|
|
25
|
+
import { Options } from 'vue-class-component';
|
|
26
|
+
export var properties = ['isLazyUpdate', 'animation', 'autoPlay', 'buttonsVisibility', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enableTouchSwipe', 'height', 'htmlAttributes', 'indicatorsTemplate', 'interval', 'itemTemplate', 'items', 'locale', 'loop', 'nextButtonTemplate', 'playButtonTemplate', 'previousButtonTemplate', 'selectedIndex', 'showIndicators', 'showPlayButton', 'width', 'slideChanged', 'slideChanging'];
|
|
27
|
+
export var modelProps = ['selectedIndex'];
|
|
28
|
+
export var testProp = getProps({ props: properties });
|
|
29
|
+
export var props = testProp[0];
|
|
30
|
+
export var watch = testProp[1];
|
|
31
|
+
export var emitProbs = Object.keys(watch);
|
|
32
|
+
emitProbs.push('modelchanged');
|
|
33
|
+
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
34
|
+
var props_1 = modelProps_1[_i];
|
|
35
|
+
emitProbs.push('update:' + props_1);
|
|
36
|
+
}
|
|
37
|
+
export var isExecute = gh ? false : true;
|
|
38
|
+
/**
|
|
39
|
+
* Represents the VueJS Carousel Component.
|
|
40
|
+
* ```html
|
|
41
|
+
* <ejs-carousel :items='carouselItems'></ejs-carousel>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
var CarouselComponent = /** @class */ (function (_super) {
|
|
45
|
+
__extends(CarouselComponent, _super);
|
|
46
|
+
function CarouselComponent() {
|
|
47
|
+
var _this = _super.call(this, arguments) || this;
|
|
48
|
+
_this.propKeys = properties;
|
|
49
|
+
_this.models = modelProps;
|
|
50
|
+
_this.hasChildDirective = true;
|
|
51
|
+
_this.hasInjectedModules = false;
|
|
52
|
+
_this.tagMapper = { "e-carousel-items": "e-carousel-item" };
|
|
53
|
+
_this.tagNameMapper = { "e-carousel-items": "e-items" };
|
|
54
|
+
_this.isVue3 = !isExecute;
|
|
55
|
+
_this.ej2Instances = new Carousel({});
|
|
56
|
+
_this.ej2Instances._trigger = _this.ej2Instances.trigger;
|
|
57
|
+
_this.ej2Instances.trigger = _this.trigger;
|
|
58
|
+
_this.bindProperties();
|
|
59
|
+
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
60
|
+
_this.ej2Instances.setProperties = _this.setProperties;
|
|
61
|
+
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
62
|
+
_this.updated = _this.updated;
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
CarouselComponent.prototype.clearTemplate = function (templateNames) {
|
|
66
|
+
if (!templateNames) {
|
|
67
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
68
|
+
}
|
|
69
|
+
if (templateNames.length && this.templateCollection) {
|
|
70
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
71
|
+
var tempName = templateNames_1[_i];
|
|
72
|
+
var elementCollection = this.templateCollection[tempName];
|
|
73
|
+
if (elementCollection && elementCollection.length) {
|
|
74
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
75
|
+
var ele = elementCollection_1[_a];
|
|
76
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
77
|
+
if (destroy) {
|
|
78
|
+
ele.__vue__.$destroy();
|
|
79
|
+
}
|
|
80
|
+
if (ele.innerHTML) {
|
|
81
|
+
ele.innerHTML = '';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
delete this.templateCollection[tempName];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
CarouselComponent.prototype.setProperties = function (prop, muteOnChange) {
|
|
90
|
+
var _this = this;
|
|
91
|
+
if (this.isVue3) {
|
|
92
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
93
|
+
}
|
|
94
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
95
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
96
|
+
}
|
|
97
|
+
if (prop && this.models && this.models.length) {
|
|
98
|
+
Object.keys(prop).map(function (key) {
|
|
99
|
+
_this.models.map(function (model) {
|
|
100
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
101
|
+
if (_this.isVue3) {
|
|
102
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
_this.$emit('update:' + key, prop[key]);
|
|
106
|
+
_this.$emit('modelchanged', prop[key]);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
CarouselComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
114
|
+
if (!isExecute) {
|
|
115
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
116
|
+
}
|
|
117
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
118
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
119
|
+
var propKey = key[0];
|
|
120
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
121
|
+
if (!isExecute) {
|
|
122
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
123
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
127
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
128
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
134
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
135
|
+
var propKey = key[0];
|
|
136
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
137
|
+
if (!isExecute) {
|
|
138
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
139
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
143
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
148
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
CarouselComponent.prototype.render = function (createElement) {
|
|
152
|
+
var h = gh || createElement;
|
|
153
|
+
var slots = null;
|
|
154
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
+
slots = gh ? this.$slots.default() : this.$slots.default;
|
|
156
|
+
}
|
|
157
|
+
return h('div', slots);
|
|
158
|
+
};
|
|
159
|
+
CarouselComponent.prototype.custom = function () {
|
|
160
|
+
this.updated();
|
|
161
|
+
};
|
|
162
|
+
CarouselComponent.prototype.next = function () {
|
|
163
|
+
return this.ej2Instances.next();
|
|
164
|
+
};
|
|
165
|
+
CarouselComponent.prototype.pause = function () {
|
|
166
|
+
return this.ej2Instances.pause();
|
|
167
|
+
};
|
|
168
|
+
CarouselComponent.prototype.play = function () {
|
|
169
|
+
return this.ej2Instances.play();
|
|
170
|
+
};
|
|
171
|
+
CarouselComponent.prototype.prev = function () {
|
|
172
|
+
return this.ej2Instances.prev();
|
|
173
|
+
};
|
|
174
|
+
CarouselComponent = __decorate([
|
|
175
|
+
EJComponentDecorator({
|
|
176
|
+
props: properties,
|
|
177
|
+
model: {
|
|
178
|
+
event: 'modelchanged'
|
|
179
|
+
}
|
|
180
|
+
}, isExecute)
|
|
181
|
+
,Options({
|
|
182
|
+
props: props,
|
|
183
|
+
watch: watch,
|
|
184
|
+
emits: emitProbs,
|
|
185
|
+
provide: function provide() {
|
|
186
|
+
return {
|
|
187
|
+
custom: this.custom
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
], CarouselComponent);
|
|
192
|
+
return CarouselComponent;
|
|
193
|
+
}(ComponentBase));
|
|
194
|
+
export { CarouselComponent };
|
|
195
|
+
export var CarouselPlugin = {
|
|
196
|
+
name: 'ejs-carousel',
|
|
197
|
+
install: function (Vue) {
|
|
198
|
+
Vue.component(CarouselPlugin.name, CarouselComponent);
|
|
199
|
+
Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
|
|
200
|
+
Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const isExecute: any;
|
|
2
|
+
declare let vueImport: any;
|
|
3
|
+
export declare class CarouselItemsDirective extends vueImport {
|
|
4
|
+
constructor();
|
|
5
|
+
render(createElement: any): void;
|
|
6
|
+
updated(): void;
|
|
7
|
+
getTag(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare const CarouselItemsPlugin: {
|
|
10
|
+
name: string;
|
|
11
|
+
install(Vue: any): void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* `e-carousel-item` directive represent a item of the Vue Carousel.
|
|
15
|
+
* It must be contained in a Carousel component(`ejs-carousel`).
|
|
16
|
+
* ```html
|
|
17
|
+
* <ejs-carousel>
|
|
18
|
+
* <e-carousel-items>
|
|
19
|
+
* <e-carousel-item template='itemTemplate'></e-carousel-item>
|
|
20
|
+
* <e-carousel-item template='secondItemTemplate'></e-carousel-item>
|
|
21
|
+
* </e-carousel-items>
|
|
22
|
+
* </ejs-carousel>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class CarouselItemDirective extends vueImport {
|
|
26
|
+
render(): void;
|
|
27
|
+
getTag(): string;
|
|
28
|
+
}
|
|
29
|
+
export declare const CarouselItemPlugin: {
|
|
30
|
+
name: string;
|
|
31
|
+
install(Vue: any): void;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -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
|
+
};
|
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';
|