@syncfusion/ej2-vue-navigations 20.1.48 → 20.1.56

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 (253) hide show
  1. package/CHANGELOG.md +74 -2
  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 +11 -2
  6. package/dist/es6/ej2-vue-navigations.es2015.js +377 -92
  7. package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-vue-navigations.es5.js +415 -109
  9. package/dist/es6/ej2-vue-navigations.es5.js.map +1 -1
  10. package/dist/global/ej2-vue-navigations.min.js +2 -2
  11. package/package.json +11 -15
  12. package/src/accordion/accordion.component.d.ts +1 -1
  13. package/src/accordion/accordion.component.js +2 -1
  14. package/src/breadcrumb/breadcrumb.component.js +1 -0
  15. package/src/carousel/carousel.component.d.ts +43 -0
  16. package/src/carousel/carousel.component.js +203 -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/src/sidebar/sidebar.component.js +1 -0
  24. package/styles/accordion/bootstrap-dark.css +49 -152
  25. package/styles/accordion/bootstrap.css +49 -152
  26. package/styles/accordion/bootstrap4.css +52 -167
  27. package/styles/accordion/bootstrap5-dark.css +49 -149
  28. package/styles/accordion/bootstrap5.css +49 -149
  29. package/styles/accordion/fabric-dark.css +51 -150
  30. package/styles/accordion/fabric.css +51 -150
  31. package/styles/accordion/fluent-dark.css +314 -0
  32. package/styles/accordion/fluent-dark.scss +1 -0
  33. package/styles/accordion/fluent.css +314 -0
  34. package/styles/accordion/fluent.scss +1 -0
  35. package/styles/accordion/highcontrast-light.css +54 -175
  36. package/styles/accordion/highcontrast.css +54 -175
  37. package/styles/accordion/material-dark.css +50 -152
  38. package/styles/accordion/material.css +50 -152
  39. package/styles/accordion/tailwind-dark.css +52 -154
  40. package/styles/accordion/tailwind.css +52 -154
  41. package/styles/bootstrap-dark.css +527 -2037
  42. package/styles/bootstrap-dark.scss +1 -0
  43. package/styles/bootstrap.css +527 -2037
  44. package/styles/bootstrap.scss +1 -0
  45. package/styles/bootstrap4.css +533 -2100
  46. package/styles/bootstrap4.scss +1 -0
  47. package/styles/bootstrap5-dark.css +629 -2181
  48. package/styles/bootstrap5-dark.scss +1 -0
  49. package/styles/bootstrap5.css +629 -2181
  50. package/styles/bootstrap5.scss +1 -0
  51. package/styles/breadcrumb/bootstrap-dark.css +15 -89
  52. package/styles/breadcrumb/bootstrap.css +15 -89
  53. package/styles/breadcrumb/bootstrap4.css +15 -89
  54. package/styles/breadcrumb/bootstrap5-dark.css +17 -95
  55. package/styles/breadcrumb/bootstrap5.css +17 -95
  56. package/styles/breadcrumb/fabric-dark.css +15 -90
  57. package/styles/breadcrumb/fabric.css +15 -90
  58. package/styles/breadcrumb/fluent-dark.css +370 -0
  59. package/styles/breadcrumb/fluent-dark.scss +1 -0
  60. package/styles/breadcrumb/fluent.css +370 -0
  61. package/styles/breadcrumb/fluent.scss +1 -0
  62. package/styles/breadcrumb/highcontrast-light.css +15 -92
  63. package/styles/breadcrumb/highcontrast.css +15 -92
  64. package/styles/breadcrumb/material-dark.css +15 -84
  65. package/styles/breadcrumb/material.css +15 -84
  66. package/styles/breadcrumb/tailwind-dark.css +30 -97
  67. package/styles/breadcrumb/tailwind.css +29 -96
  68. package/styles/carousel/bootstrap-dark.css +217 -0
  69. package/styles/carousel/bootstrap-dark.scss +1 -0
  70. package/styles/carousel/bootstrap.css +217 -0
  71. package/styles/carousel/bootstrap.scss +1 -0
  72. package/styles/carousel/bootstrap4.css +217 -0
  73. package/styles/carousel/bootstrap4.scss +1 -0
  74. package/styles/carousel/bootstrap5-dark.css +217 -0
  75. package/styles/carousel/bootstrap5-dark.scss +1 -0
  76. package/styles/carousel/bootstrap5.css +217 -0
  77. package/styles/carousel/bootstrap5.scss +1 -0
  78. package/styles/carousel/fabric-dark.css +217 -0
  79. package/styles/carousel/fabric-dark.scss +1 -0
  80. package/styles/carousel/fabric.css +217 -0
  81. package/styles/carousel/fabric.scss +1 -0
  82. package/styles/carousel/fluent-dark.css +217 -0
  83. package/styles/carousel/fluent-dark.scss +1 -0
  84. package/styles/carousel/fluent.css +217 -0
  85. package/styles/carousel/fluent.scss +1 -0
  86. package/styles/carousel/highcontrast-light.css +217 -0
  87. package/styles/carousel/highcontrast-light.scss +1 -0
  88. package/styles/carousel/highcontrast.css +217 -0
  89. package/styles/carousel/highcontrast.scss +1 -0
  90. package/styles/carousel/material-dark.css +218 -0
  91. package/styles/carousel/material-dark.scss +1 -0
  92. package/styles/carousel/material.css +218 -0
  93. package/styles/carousel/material.scss +1 -0
  94. package/styles/carousel/tailwind-dark.css +218 -0
  95. package/styles/carousel/tailwind-dark.scss +1 -0
  96. package/styles/carousel/tailwind.css +218 -0
  97. package/styles/carousel/tailwind.scss +1 -0
  98. package/styles/context-menu/bootstrap-dark.css +10 -59
  99. package/styles/context-menu/bootstrap.css +10 -59
  100. package/styles/context-menu/bootstrap4.css +10 -59
  101. package/styles/context-menu/bootstrap5-dark.css +21 -67
  102. package/styles/context-menu/bootstrap5.css +21 -67
  103. package/styles/context-menu/fabric-dark.css +10 -59
  104. package/styles/context-menu/fabric.css +10 -59
  105. package/styles/context-menu/fluent-dark.css +334 -0
  106. package/styles/context-menu/fluent-dark.scss +1 -0
  107. package/styles/context-menu/fluent.css +334 -0
  108. package/styles/context-menu/fluent.scss +1 -0
  109. package/styles/context-menu/highcontrast-light.css +10 -59
  110. package/styles/context-menu/highcontrast.css +10 -59
  111. package/styles/context-menu/material-dark.css +10 -59
  112. package/styles/context-menu/material.css +10 -59
  113. package/styles/context-menu/tailwind-dark.css +13 -60
  114. package/styles/context-menu/tailwind.css +13 -60
  115. package/styles/fabric-dark.css +520 -2026
  116. package/styles/fabric-dark.scss +1 -0
  117. package/styles/fabric.css +520 -2026
  118. package/styles/fabric.scss +1 -0
  119. package/styles/fluent-dark.css +8507 -0
  120. package/styles/fluent-dark.scss +11 -0
  121. package/styles/fluent.css +8507 -0
  122. package/styles/fluent.scss +11 -0
  123. package/styles/h-scroll/bootstrap-dark.css +11 -68
  124. package/styles/h-scroll/bootstrap.css +11 -68
  125. package/styles/h-scroll/bootstrap4.css +11 -70
  126. package/styles/h-scroll/bootstrap5-dark.css +21 -79
  127. package/styles/h-scroll/bootstrap5.css +21 -79
  128. package/styles/h-scroll/fabric-dark.css +11 -68
  129. package/styles/h-scroll/fabric.css +11 -68
  130. package/styles/h-scroll/fluent-dark.css +269 -0
  131. package/styles/h-scroll/fluent-dark.scss +1 -0
  132. package/styles/h-scroll/fluent.css +269 -0
  133. package/styles/h-scroll/fluent.scss +1 -0
  134. package/styles/h-scroll/highcontrast-light.css +11 -71
  135. package/styles/h-scroll/highcontrast.css +11 -71
  136. package/styles/h-scroll/material-dark.css +14 -72
  137. package/styles/h-scroll/material.css +11 -69
  138. package/styles/h-scroll/tailwind-dark.css +11 -69
  139. package/styles/h-scroll/tailwind.css +11 -69
  140. package/styles/highcontrast-light.css +524 -2097
  141. package/styles/highcontrast-light.scss +1 -0
  142. package/styles/highcontrast.css +525 -2101
  143. package/styles/highcontrast.scss +1 -0
  144. package/styles/material-dark.css +529 -1999
  145. package/styles/material-dark.scss +1 -0
  146. package/styles/material.css +519 -1988
  147. package/styles/material.scss +1 -0
  148. package/styles/menu/bootstrap-dark.css +28 -203
  149. package/styles/menu/bootstrap.css +28 -203
  150. package/styles/menu/bootstrap4.css +29 -213
  151. package/styles/menu/bootstrap5-dark.css +50 -226
  152. package/styles/menu/bootstrap5.css +50 -226
  153. package/styles/menu/fabric-dark.css +28 -203
  154. package/styles/menu/fabric.css +28 -203
  155. package/styles/menu/fluent-dark.css +1084 -0
  156. package/styles/menu/fluent-dark.scss +1 -0
  157. package/styles/menu/fluent.css +1084 -0
  158. package/styles/menu/fluent.scss +1 -0
  159. package/styles/menu/highcontrast-light.css +28 -203
  160. package/styles/menu/highcontrast.css +28 -203
  161. package/styles/menu/material-dark.css +28 -205
  162. package/styles/menu/material.css +28 -205
  163. package/styles/menu/tailwind-dark.css +31 -206
  164. package/styles/menu/tailwind.css +31 -206
  165. package/styles/sidebar/bootstrap-dark.css +14 -25
  166. package/styles/sidebar/bootstrap.css +14 -25
  167. package/styles/sidebar/bootstrap4.css +14 -25
  168. package/styles/sidebar/bootstrap5-dark.css +12 -23
  169. package/styles/sidebar/bootstrap5.css +12 -23
  170. package/styles/sidebar/fabric-dark.css +14 -25
  171. package/styles/sidebar/fabric.css +14 -25
  172. package/styles/sidebar/fluent-dark.css +143 -0
  173. package/styles/sidebar/fluent-dark.scss +1 -0
  174. package/styles/sidebar/fluent.css +143 -0
  175. package/styles/sidebar/fluent.scss +1 -0
  176. package/styles/sidebar/highcontrast-light.css +14 -25
  177. package/styles/sidebar/highcontrast.css +14 -25
  178. package/styles/sidebar/material-dark.css +14 -25
  179. package/styles/sidebar/material.css +14 -25
  180. package/styles/sidebar/tailwind-dark.css +12 -23
  181. package/styles/sidebar/tailwind.css +12 -23
  182. package/styles/tab/bootstrap-dark.css +151 -964
  183. package/styles/tab/bootstrap.css +151 -964
  184. package/styles/tab/bootstrap4.css +151 -971
  185. package/styles/tab/bootstrap5-dark.css +173 -998
  186. package/styles/tab/bootstrap5.css +173 -998
  187. package/styles/tab/fabric-dark.css +142 -955
  188. package/styles/tab/fabric.css +142 -955
  189. package/styles/tab/fluent-dark.css +3588 -0
  190. package/styles/tab/fluent-dark.scss +1 -0
  191. package/styles/tab/fluent.css +3588 -0
  192. package/styles/tab/fluent.scss +1 -0
  193. package/styles/tab/highcontrast-light.css +143 -981
  194. package/styles/tab/highcontrast.css +144 -982
  195. package/styles/tab/material-dark.css +145 -917
  196. package/styles/tab/material.css +138 -910
  197. package/styles/tab/tailwind-dark.css +162 -934
  198. package/styles/tab/tailwind.css +162 -934
  199. package/styles/tailwind-dark.css +573 -2054
  200. package/styles/tailwind-dark.scss +1 -0
  201. package/styles/tailwind.css +572 -2053
  202. package/styles/tailwind.scss +1 -0
  203. package/styles/toolbar/bootstrap-dark.css +10 -245
  204. package/styles/toolbar/bootstrap.css +10 -245
  205. package/styles/toolbar/bootstrap4.css +11 -257
  206. package/styles/toolbar/bootstrap5-dark.css +41 -281
  207. package/styles/toolbar/bootstrap5.css +41 -281
  208. package/styles/toolbar/fabric-dark.css +10 -244
  209. package/styles/toolbar/fabric.css +10 -244
  210. package/styles/toolbar/fluent-dark.css +1128 -0
  211. package/styles/toolbar/fluent-dark.scss +1 -0
  212. package/styles/toolbar/fluent.css +1128 -0
  213. package/styles/toolbar/fluent.scss +1 -0
  214. package/styles/toolbar/highcontrast-light.css +10 -256
  215. package/styles/toolbar/highcontrast.css +10 -256
  216. package/styles/toolbar/material-dark.css +10 -247
  217. package/styles/toolbar/material.css +10 -247
  218. package/styles/toolbar/tailwind-dark.css +14 -248
  219. package/styles/toolbar/tailwind.css +14 -248
  220. package/styles/treeview/bootstrap-dark.css +23 -191
  221. package/styles/treeview/bootstrap.css +23 -191
  222. package/styles/treeview/bootstrap4.css +24 -208
  223. package/styles/treeview/bootstrap5-dark.css +28 -221
  224. package/styles/treeview/bootstrap5.css +28 -221
  225. package/styles/treeview/fabric-dark.css +23 -191
  226. package/styles/treeview/fabric.css +23 -191
  227. package/styles/treeview/fluent-dark.css +846 -0
  228. package/styles/treeview/fluent-dark.scss +1 -0
  229. package/styles/treeview/fluent.css +846 -0
  230. package/styles/treeview/fluent.scss +1 -0
  231. package/styles/treeview/highcontrast-light.css +23 -191
  232. package/styles/treeview/highcontrast.css +23 -194
  233. package/styles/treeview/material-dark.css +23 -192
  234. package/styles/treeview/material.css +23 -191
  235. package/styles/treeview/tailwind-dark.css +31 -222
  236. package/styles/treeview/tailwind.css +31 -222
  237. package/styles/v-scroll/bootstrap-dark.css +7 -50
  238. package/styles/v-scroll/bootstrap.css +7 -50
  239. package/styles/v-scroll/bootstrap4.css +7 -50
  240. package/styles/v-scroll/bootstrap5-dark.css +7 -50
  241. package/styles/v-scroll/bootstrap5.css +7 -50
  242. package/styles/v-scroll/fabric-dark.css +7 -50
  243. package/styles/v-scroll/fabric.css +7 -50
  244. package/styles/v-scroll/fluent-dark.css +204 -0
  245. package/styles/v-scroll/fluent-dark.scss +1 -0
  246. package/styles/v-scroll/fluent.css +204 -0
  247. package/styles/v-scroll/fluent.scss +1 -0
  248. package/styles/v-scroll/highcontrast-light.css +7 -53
  249. package/styles/v-scroll/highcontrast.css +7 -53
  250. package/styles/v-scroll/material-dark.css +7 -51
  251. package/styles/v-scroll/material.css +7 -51
  252. package/styles/v-scroll/tailwind-dark.css +7 -50
  253. package/styles/v-scroll/tailwind.css +7 -50
package/package.json CHANGED
@@ -1,14 +1,8 @@
1
1
  {
2
- "_args": [
3
- [
4
- "@syncfusion/ej2-vue-navigations@19.4.55",
5
- "D:\\Augest 2021\\vue package publish\\vue source from nexus"
6
- ]
7
- ],
8
2
  "_from": "@syncfusion/ej2-vue-navigations@*",
9
- "_id": "@syncfusion/ej2-vue-navigations@19.4.55",
3
+ "_id": "@syncfusion/ej2-vue-navigations@20.1.55",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-QnnQfui0RUc70zsSAj80ZAaiY4mJ8k/dt+LypidPR80P3FpST96qaXDCyBan++DVfGNky2Pnae3UKCG6IRNoMQ==",
5
+ "_integrity": "sha512-deUaCIv2XZIj71JyIPD0xJx5FoGXWV6d88kE3GODAS2wfSUBgxyFfhslWMHzvtNqUkvEPMIKtHJZgEC2OCAA+w==",
12
6
  "_location": "/@syncfusion/ej2-vue-navigations",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
@@ -25,8 +19,8 @@
25
19
  "_requiredBy": [
26
20
  "/"
27
21
  ],
28
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-19.4.55.tgz",
29
- "_shasum": "9045118ff86ede78e7c4f641899236200e443780",
22
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-navigations/-/ej2-vue-navigations-20.1.55.tgz",
23
+ "_shasum": "7d50bcc3a036e573b136c7436e98a22aa0465f22",
30
24
  "_spec": "@syncfusion/ej2-vue-navigations@*",
31
25
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
26
  "author": {
@@ -37,9 +31,9 @@
37
31
  },
38
32
  "bundleDependencies": false,
39
33
  "dependencies": {
40
- "@syncfusion/ej2-base": "~20.1.48",
41
- "@syncfusion/ej2-navigations": "20.1.48",
42
- "@syncfusion/ej2-vue-base": "~20.1.48"
34
+ "@syncfusion/ej2-base": "~20.1.56",
35
+ "@syncfusion/ej2-navigations": "20.1.56",
36
+ "@syncfusion/ej2-vue-base": "~20.1.56"
43
37
  },
44
38
  "deprecated": false,
45
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",
@@ -147,6 +141,7 @@
147
141
  "accordion tree",
148
142
  "tree node template",
149
143
  "tree multi selection",
144
+ "carousel",
150
145
  "vue",
151
146
  "ej2-vue-navigations",
152
147
  " vue-navigations",
@@ -159,7 +154,8 @@
159
154
  "vue tree component",
160
155
  "vue menu",
161
156
  "vue menu component",
162
- "vue breadcrumb"
157
+ "vue breadcrumb",
158
+ "vue carousel"
163
159
  ],
164
160
  "license": "SEE LICENSE IN license",
165
161
  "main": "./dist/ej2-vue-navigations.umd.min.js",
@@ -169,6 +165,6 @@
169
165
  "type": "git",
170
166
  "url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
171
167
  },
172
- "version": "20.1.48",
168
+ "version": "20.1.56",
173
169
  "sideEffects": false
174
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
  * ```
@@ -121,6 +121,7 @@ var AccordionComponent = /** @class */ (function (_super) {
121
121
  if (!isExecute) {
122
122
  this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
123
123
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
124
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
124
125
  }
125
126
  else {
126
127
  if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
@@ -121,6 +121,7 @@ var BreadcrumbComponent = /** @class */ (function (_super) {
121
121
  if (!isExecute) {
122
122
  this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
123
123
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
124
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
124
125
  }
125
126
  else {
126
127
  if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
@@ -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,203 @@
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
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
125
+ }
126
+ else {
127
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
128
+ this.$emit('update:' + propKey, eventProp[propKey]);
129
+ this.$emit('modelchanged', eventProp[propKey]);
130
+ }
131
+ }
132
+ }
133
+ }
134
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
135
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
136
+ var propKey = key[0];
137
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
138
+ if (!isExecute) {
139
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
140
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
141
+ }
142
+ else {
143
+ this.$emit('update:' + propKey, eventProp[propKey]);
144
+ this.$emit('modelchanged', eventProp[propKey]);
145
+ }
146
+ }
147
+ }
148
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
149
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
150
+ }
151
+ };
152
+ CarouselComponent.prototype.render = function (createElement) {
153
+ var h = gh || createElement;
154
+ var slots = null;
155
+ if (!isNullOrUndefined(this.$slots.default)) {
156
+ slots = gh ? this.$slots.default() : this.$slots.default;
157
+ }
158
+ return h('div', slots);
159
+ };
160
+ CarouselComponent.prototype.custom = function () {
161
+ this.updated();
162
+ };
163
+ CarouselComponent.prototype.next = function () {
164
+ return this.ej2Instances.next();
165
+ };
166
+ CarouselComponent.prototype.pause = function () {
167
+ return this.ej2Instances.pause();
168
+ };
169
+ CarouselComponent.prototype.play = function () {
170
+ return this.ej2Instances.play();
171
+ };
172
+ CarouselComponent.prototype.prev = function () {
173
+ return this.ej2Instances.prev();
174
+ };
175
+ CarouselComponent = __decorate([
176
+ EJComponentDecorator({
177
+ props: properties,
178
+ model: {
179
+ event: 'modelchanged'
180
+ }
181
+ }, isExecute)
182
+ ,Options({
183
+ props: props,
184
+ watch: watch,
185
+ emits: emitProbs,
186
+ provide: function provide() {
187
+ return {
188
+ custom: this.custom
189
+ };
190
+ }
191
+ })
192
+ ], CarouselComponent);
193
+ return CarouselComponent;
194
+ }(ComponentBase));
195
+ export { CarouselComponent };
196
+ export var CarouselPlugin = {
197
+ name: 'ejs-carousel',
198
+ install: function (Vue) {
199
+ Vue.component(CarouselPlugin.name, CarouselComponent);
200
+ Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
201
+ Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
202
+ }
203
+ };
@@ -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';
@@ -120,6 +120,7 @@ var SidebarComponent = /** @class */ (function (_super) {
120
120
  if (!isExecute) {
121
121
  this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
122
122
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
123
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
123
124
  }
124
125
  else {
125
126
  if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {