@syncfusion/ej2-vue-navigations 19.4.56 → 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.
Files changed (232) hide show
  1. package/CHANGELOG.md +20 -3
  2. package/README.md +17 -2
  3. package/carousel.d.ts +4 -0
  4. package/carousel.js +4 -0
  5. package/dist/ej2-vue-navigations.umd.min.js +20 -2
  6. package/dist/ej2-vue-navigations.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-vue-navigations.es2015.js +373 -92
  8. package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
  9. package/dist/es6/ej2-vue-navigations.es5.js +411 -109
  10. package/dist/es6/ej2-vue-navigations.es5.js.map +1 -1
  11. package/dist/global/ej2-vue-navigations.min.js +2 -2
  12. package/package.json +11 -9
  13. package/src/accordion/accordion.component.d.ts +1 -1
  14. package/src/accordion/accordion.component.js +1 -1
  15. package/src/carousel/carousel.component.d.ts +43 -0
  16. package/src/carousel/carousel.component.js +202 -0
  17. package/src/carousel/index.d.ts +2 -0
  18. package/src/carousel/index.js +2 -0
  19. package/src/carousel/items.directive.d.ts +33 -0
  20. package/src/carousel/items.directive.js +110 -0
  21. package/src/index.d.ts +2 -0
  22. package/src/index.js +2 -0
  23. package/styles/accordion/bootstrap-dark.css +48 -63
  24. package/styles/accordion/bootstrap.css +48 -63
  25. package/styles/accordion/bootstrap4.css +48 -63
  26. package/styles/accordion/bootstrap5-dark.css +51 -66
  27. package/styles/accordion/bootstrap5.css +51 -66
  28. package/styles/accordion/fabric-dark.css +50 -65
  29. package/styles/accordion/fabric.css +50 -65
  30. package/styles/accordion/fluent-dark.css +395 -0
  31. package/styles/accordion/fluent-dark.scss +1 -0
  32. package/styles/accordion/fluent.css +395 -0
  33. package/styles/accordion/fluent.scss +1 -0
  34. package/styles/accordion/highcontrast-light.css +49 -64
  35. package/styles/accordion/highcontrast.css +49 -64
  36. package/styles/accordion/material-dark.css +49 -64
  37. package/styles/accordion/material.css +49 -64
  38. package/styles/accordion/tailwind-dark.css +52 -67
  39. package/styles/accordion/tailwind.css +52 -67
  40. package/styles/bootstrap-dark.css +310 -69
  41. package/styles/bootstrap-dark.scss +1 -0
  42. package/styles/bootstrap.css +310 -69
  43. package/styles/bootstrap.scss +1 -0
  44. package/styles/bootstrap4.css +310 -69
  45. package/styles/bootstrap4.scss +1 -0
  46. package/styles/bootstrap5-dark.css +415 -171
  47. package/styles/bootstrap5-dark.scss +1 -0
  48. package/styles/bootstrap5.css +415 -171
  49. package/styles/bootstrap5.scss +1 -0
  50. package/styles/breadcrumb/bootstrap-dark.css +10 -2
  51. package/styles/breadcrumb/bootstrap.css +10 -2
  52. package/styles/breadcrumb/bootstrap4.css +10 -2
  53. package/styles/breadcrumb/bootstrap5-dark.css +12 -4
  54. package/styles/breadcrumb/bootstrap5.css +12 -4
  55. package/styles/breadcrumb/fabric-dark.css +10 -4
  56. package/styles/breadcrumb/fabric.css +10 -4
  57. package/styles/breadcrumb/fluent-dark.css +444 -0
  58. package/styles/breadcrumb/fluent-dark.scss +1 -0
  59. package/styles/breadcrumb/fluent.css +444 -0
  60. package/styles/breadcrumb/fluent.scss +1 -0
  61. package/styles/breadcrumb/highcontrast-light.css +10 -4
  62. package/styles/breadcrumb/highcontrast.css +10 -4
  63. package/styles/breadcrumb/material-dark.css +10 -2
  64. package/styles/breadcrumb/material.css +10 -2
  65. package/styles/breadcrumb/tailwind-dark.css +21 -4
  66. package/styles/breadcrumb/tailwind.css +27 -10
  67. package/styles/carousel/bootstrap-dark.css +236 -0
  68. package/styles/carousel/bootstrap-dark.scss +1 -0
  69. package/styles/carousel/bootstrap.css +236 -0
  70. package/styles/carousel/bootstrap.scss +1 -0
  71. package/styles/carousel/bootstrap4.css +236 -0
  72. package/styles/carousel/bootstrap4.scss +1 -0
  73. package/styles/carousel/bootstrap5-dark.css +236 -0
  74. package/styles/carousel/bootstrap5-dark.scss +1 -0
  75. package/styles/carousel/bootstrap5.css +236 -0
  76. package/styles/carousel/bootstrap5.scss +1 -0
  77. package/styles/carousel/fabric-dark.css +236 -0
  78. package/styles/carousel/fabric-dark.scss +1 -0
  79. package/styles/carousel/fabric.css +236 -0
  80. package/styles/carousel/fabric.scss +1 -0
  81. package/styles/carousel/fluent-dark.css +236 -0
  82. package/styles/carousel/fluent-dark.scss +1 -0
  83. package/styles/carousel/fluent.css +236 -0
  84. package/styles/carousel/fluent.scss +1 -0
  85. package/styles/carousel/highcontrast-light.css +236 -0
  86. package/styles/carousel/highcontrast-light.scss +1 -0
  87. package/styles/carousel/highcontrast.css +236 -0
  88. package/styles/carousel/highcontrast.scss +1 -0
  89. package/styles/carousel/material-dark.css +237 -0
  90. package/styles/carousel/material-dark.scss +1 -0
  91. package/styles/carousel/material.css +237 -0
  92. package/styles/carousel/material.scss +1 -0
  93. package/styles/carousel/tailwind-dark.css +237 -0
  94. package/styles/carousel/tailwind-dark.scss +1 -0
  95. package/styles/carousel/tailwind.css +237 -0
  96. package/styles/carousel/tailwind.scss +1 -0
  97. package/styles/context-menu/bootstrap-dark.css +5 -0
  98. package/styles/context-menu/bootstrap.css +5 -0
  99. package/styles/context-menu/bootstrap4.css +5 -0
  100. package/styles/context-menu/bootstrap5-dark.css +16 -8
  101. package/styles/context-menu/bootstrap5.css +16 -8
  102. package/styles/context-menu/fabric-dark.css +5 -0
  103. package/styles/context-menu/fabric.css +5 -0
  104. package/styles/context-menu/fluent-dark.css +388 -0
  105. package/styles/context-menu/fluent-dark.scss +1 -0
  106. package/styles/context-menu/fluent.css +388 -0
  107. package/styles/context-menu/fluent.scss +1 -0
  108. package/styles/context-menu/highcontrast-light.css +5 -0
  109. package/styles/context-menu/highcontrast.css +5 -0
  110. package/styles/context-menu/material-dark.css +5 -0
  111. package/styles/context-menu/material.css +5 -0
  112. package/styles/context-menu/tailwind-dark.css +11 -4
  113. package/styles/context-menu/tailwind.css +11 -4
  114. package/styles/fabric-dark.css +312 -73
  115. package/styles/fabric-dark.scss +1 -0
  116. package/styles/fabric.css +312 -73
  117. package/styles/fabric.scss +1 -0
  118. package/styles/fluent-dark.css +10263 -0
  119. package/styles/fluent-dark.scss +11 -0
  120. package/styles/fluent.css +10263 -0
  121. package/styles/fluent.scss +11 -0
  122. package/styles/h-scroll/bootstrap-dark.css +0 -1
  123. package/styles/h-scroll/bootstrap.css +0 -1
  124. package/styles/h-scroll/bootstrap4.css +0 -1
  125. package/styles/h-scroll/bootstrap5-dark.css +10 -11
  126. package/styles/h-scroll/bootstrap5.css +10 -11
  127. package/styles/h-scroll/fabric-dark.css +0 -1
  128. package/styles/h-scroll/fabric.css +0 -1
  129. package/styles/h-scroll/fluent-dark.css +326 -0
  130. package/styles/h-scroll/fluent-dark.scss +1 -0
  131. package/styles/h-scroll/fluent.css +326 -0
  132. package/styles/h-scroll/fluent.scss +1 -0
  133. package/styles/h-scroll/highcontrast-light.css +0 -1
  134. package/styles/h-scroll/highcontrast.css +0 -1
  135. package/styles/h-scroll/material-dark.css +3 -4
  136. package/styles/h-scroll/material.css +0 -1
  137. package/styles/h-scroll/tailwind-dark.css +8 -9
  138. package/styles/h-scroll/tailwind.css +8 -9
  139. package/styles/highcontrast-light.css +311 -72
  140. package/styles/highcontrast-light.scss +1 -0
  141. package/styles/highcontrast.css +312 -73
  142. package/styles/highcontrast.scss +1 -0
  143. package/styles/material-dark.css +314 -73
  144. package/styles/material-dark.scss +1 -0
  145. package/styles/material.css +311 -70
  146. package/styles/material.scss +1 -0
  147. package/styles/menu/bootstrap-dark.css +1 -2
  148. package/styles/menu/bootstrap.css +1 -2
  149. package/styles/menu/bootstrap4.css +1 -2
  150. package/styles/menu/bootstrap5-dark.css +23 -24
  151. package/styles/menu/bootstrap5.css +23 -24
  152. package/styles/menu/fabric-dark.css +1 -2
  153. package/styles/menu/fabric.css +1 -2
  154. package/styles/menu/fluent-dark.css +1261 -0
  155. package/styles/menu/fluent-dark.scss +1 -0
  156. package/styles/menu/fluent.css +1261 -0
  157. package/styles/menu/fluent.scss +1 -0
  158. package/styles/menu/highcontrast-light.css +1 -2
  159. package/styles/menu/highcontrast.css +1 -2
  160. package/styles/menu/material-dark.css +1 -2
  161. package/styles/menu/material.css +1 -2
  162. package/styles/menu/tailwind-dark.css +18 -18
  163. package/styles/menu/tailwind.css +18 -18
  164. package/styles/sidebar/bootstrap-dark.css +4 -0
  165. package/styles/sidebar/bootstrap.css +4 -0
  166. package/styles/sidebar/bootstrap4.css +4 -0
  167. package/styles/sidebar/bootstrap5-dark.css +4 -0
  168. package/styles/sidebar/bootstrap5.css +4 -0
  169. package/styles/sidebar/fabric-dark.css +4 -0
  170. package/styles/sidebar/fabric.css +4 -0
  171. package/styles/sidebar/fluent-dark.css +158 -0
  172. package/styles/sidebar/fluent-dark.scss +1 -0
  173. package/styles/sidebar/fluent.css +158 -0
  174. package/styles/sidebar/fluent.scss +1 -0
  175. package/styles/sidebar/highcontrast-light.css +4 -0
  176. package/styles/sidebar/highcontrast.css +4 -0
  177. package/styles/sidebar/material-dark.css +4 -0
  178. package/styles/sidebar/material.css +4 -0
  179. package/styles/sidebar/tailwind-dark.css +4 -0
  180. package/styles/sidebar/tailwind.css +4 -0
  181. package/styles/tab/bootstrap-dark.css +1 -1
  182. package/styles/tab/bootstrap.css +1 -1
  183. package/styles/tab/bootstrap4.css +1 -1
  184. package/styles/tab/bootstrap5-dark.css +23 -23
  185. package/styles/tab/bootstrap5.css +23 -23
  186. package/styles/tab/fabric-dark.css +1 -1
  187. package/styles/tab/fabric.css +1 -1
  188. package/styles/tab/fluent-dark.css +4394 -0
  189. package/styles/tab/fluent-dark.scss +1 -0
  190. package/styles/tab/fluent.css +4394 -0
  191. package/styles/tab/fluent.scss +1 -0
  192. package/styles/tab/highcontrast-light.css +1 -1
  193. package/styles/tab/highcontrast.css +2 -2
  194. package/styles/tab/material-dark.css +1 -1
  195. package/styles/tab/material.css +1 -1
  196. package/styles/tab/tailwind-dark.css +43 -45
  197. package/styles/tab/tailwind.css +43 -45
  198. package/styles/tailwind-dark.css +422 -171
  199. package/styles/tailwind-dark.scss +1 -0
  200. package/styles/tailwind.css +428 -177
  201. package/styles/tailwind.scss +1 -0
  202. package/styles/toolbar/bootstrap-dark.css +4 -0
  203. package/styles/toolbar/bootstrap.css +4 -0
  204. package/styles/toolbar/bootstrap4.css +4 -0
  205. package/styles/toolbar/bootstrap5-dark.css +35 -31
  206. package/styles/toolbar/bootstrap5.css +35 -31
  207. package/styles/toolbar/fabric-dark.css +4 -0
  208. package/styles/toolbar/fabric.css +4 -0
  209. package/styles/toolbar/fluent-dark.css +1365 -0
  210. package/styles/toolbar/fluent-dark.scss +1 -0
  211. package/styles/toolbar/fluent.css +1365 -0
  212. package/styles/toolbar/fluent.scss +1 -0
  213. package/styles/toolbar/highcontrast-light.css +4 -0
  214. package/styles/toolbar/highcontrast.css +4 -0
  215. package/styles/toolbar/material-dark.css +4 -0
  216. package/styles/toolbar/material.css +4 -0
  217. package/styles/toolbar/tailwind-dark.css +10 -6
  218. package/styles/toolbar/tailwind.css +10 -6
  219. package/styles/treeview/bootstrap5-dark.css +4 -4
  220. package/styles/treeview/bootstrap5.css +4 -4
  221. package/styles/treeview/fluent-dark.css +1039 -0
  222. package/styles/treeview/fluent-dark.scss +1 -0
  223. package/styles/treeview/fluent.css +1039 -0
  224. package/styles/treeview/fluent.scss +1 -0
  225. package/styles/treeview/tailwind-dark.css +13 -14
  226. package/styles/treeview/tailwind.css +13 -14
  227. package/styles/v-scroll/fluent-dark.css +247 -0
  228. package/styles/v-scroll/fluent-dark.scss +1 -0
  229. package/styles/v-scroll/fluent.css +247 -0
  230. package/styles/v-scroll/fluent.scss +1 -0
  231. package/styles/v-scroll/tailwind-dark.css +4 -4
  232. 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@19.4.55",
3
+ "_id": "@syncfusion/ej2-vue-navigations@19.25.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-MQNyOhk+AbfIXjVdNwnyt17DmCCVX29+/m/pwNaGEG4O1iRBFIN+fWE31rdD6jHLOBl0gq8AabX78ZN52CbMNg==",
5
+ "_integrity": "sha512-QKYLEaXKvuRODQdOugdrve2xBhO/6nHC8DgOgpXh6RYaBEVPV+ZXs3OyOf24qIUBg2HLykDWWqckM5t1m9zWLQ==",
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-19.4.55.tgz",
23
- "_shasum": "994b871ae7cd72b12070e68141a4461787b8e78f",
22
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-19.25.1.tgz",
23
+ "_shasum": "c52c458cd24f7f714693ef54e7ff9e5de5a18e95",
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": "~19.4.52",
35
- "@syncfusion/ej2-navigations": "19.4.56",
36
- "@syncfusion/ej2-vue-base": "~19.4.56"
34
+ "@syncfusion/ej2-base": "~20.1.47",
35
+ "@syncfusion/ej2-navigations": "20.1.47",
36
+ "@syncfusion/ej2-vue-base": "~20.1.47"
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": "19.4.56",
168
+ "version": "20.1.47",
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 Accoridon Component.
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 Accoridon Component.
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,2 @@
1
+ export { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './items.directive';
2
+ export { CarouselComponent, CarouselPlugin } from './carousel.component';
@@ -0,0 +1,2 @@
1
+ export { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './items.directive';
2
+ export { CarouselComponent, CarouselPlugin } from './carousel.component';
@@ -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';