@syncfusion/ej2-vue-navigations 19.4.53 → 20.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/CHANGELOG.md +35 -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 +1 -1
  6. package/dist/es6/ej2-vue-navigations.es2015.js +669 -116
  7. package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-vue-navigations.es5.js +608 -129
  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 -9
  12. package/src/accordion/accordion.component.d.ts +2 -1
  13. package/src/accordion/accordion.component.js +11 -2
  14. package/src/accordion/items.directive.d.ts +3 -1
  15. package/src/accordion/items.directive.js +24 -2
  16. package/src/breadcrumb/breadcrumb.component.d.ts +1 -0
  17. package/src/breadcrumb/breadcrumb.component.js +10 -1
  18. package/src/breadcrumb/items.directive.d.ts +3 -1
  19. package/src/breadcrumb/items.directive.js +24 -2
  20. package/src/carousel/carousel.component.d.ts +43 -0
  21. package/src/carousel/carousel.component.js +202 -0
  22. package/src/carousel/index.d.ts +2 -0
  23. package/src/carousel/index.js +2 -0
  24. package/src/carousel/items.directive.d.ts +33 -0
  25. package/src/carousel/items.directive.js +110 -0
  26. package/src/context-menu/contextmenu.component.d.ts +1 -0
  27. package/src/context-menu/contextmenu.component.js +10 -1
  28. package/src/index.d.ts +2 -0
  29. package/src/index.js +2 -0
  30. package/src/menu/items.directive.d.ts +3 -1
  31. package/src/menu/items.directive.js +24 -2
  32. package/src/menu/menu.component.d.ts +1 -0
  33. package/src/menu/menu.component.js +10 -1
  34. package/src/sidebar/sidebar.component.d.ts +1 -0
  35. package/src/sidebar/sidebar.component.js +10 -1
  36. package/src/tab/items.directive.d.ts +3 -1
  37. package/src/tab/items.directive.js +24 -2
  38. package/src/tab/tab.component.d.ts +1 -0
  39. package/src/tab/tab.component.js +10 -1
  40. package/src/toolbar/items.directive.d.ts +3 -1
  41. package/src/toolbar/items.directive.js +24 -2
  42. package/src/toolbar/toolbar.component.d.ts +1 -0
  43. package/src/toolbar/toolbar.component.js +10 -1
  44. package/src/treeview/treeview.component.d.ts +1 -0
  45. package/src/treeview/treeview.component.js +10 -1
  46. package/styles/accordion/bootstrap-dark.css +48 -63
  47. package/styles/accordion/bootstrap.css +48 -63
  48. package/styles/accordion/bootstrap4.css +48 -63
  49. package/styles/accordion/bootstrap5-dark.css +51 -66
  50. package/styles/accordion/bootstrap5.css +51 -66
  51. package/styles/accordion/fabric-dark.css +50 -65
  52. package/styles/accordion/fabric.css +50 -65
  53. package/styles/accordion/fluent-dark.css +395 -0
  54. package/styles/accordion/fluent-dark.scss +1 -0
  55. package/styles/accordion/fluent.css +395 -0
  56. package/styles/accordion/fluent.scss +1 -0
  57. package/styles/accordion/highcontrast-light.css +49 -64
  58. package/styles/accordion/highcontrast.css +49 -64
  59. package/styles/accordion/material-dark.css +49 -64
  60. package/styles/accordion/material.css +49 -64
  61. package/styles/accordion/tailwind-dark.css +52 -67
  62. package/styles/accordion/tailwind.css +52 -67
  63. package/styles/bootstrap-dark.css +310 -69
  64. package/styles/bootstrap-dark.scss +1 -0
  65. package/styles/bootstrap.css +310 -69
  66. package/styles/bootstrap.scss +1 -0
  67. package/styles/bootstrap4.css +310 -69
  68. package/styles/bootstrap4.scss +1 -0
  69. package/styles/bootstrap5-dark.css +415 -171
  70. package/styles/bootstrap5-dark.scss +1 -0
  71. package/styles/bootstrap5.css +415 -171
  72. package/styles/bootstrap5.scss +1 -0
  73. package/styles/breadcrumb/bootstrap-dark.css +10 -2
  74. package/styles/breadcrumb/bootstrap.css +10 -2
  75. package/styles/breadcrumb/bootstrap4.css +10 -2
  76. package/styles/breadcrumb/bootstrap5-dark.css +12 -4
  77. package/styles/breadcrumb/bootstrap5.css +12 -4
  78. package/styles/breadcrumb/fabric-dark.css +10 -4
  79. package/styles/breadcrumb/fabric.css +10 -4
  80. package/styles/breadcrumb/fluent-dark.css +444 -0
  81. package/styles/breadcrumb/fluent-dark.scss +1 -0
  82. package/styles/breadcrumb/fluent.css +444 -0
  83. package/styles/breadcrumb/fluent.scss +1 -0
  84. package/styles/breadcrumb/highcontrast-light.css +10 -4
  85. package/styles/breadcrumb/highcontrast.css +10 -4
  86. package/styles/breadcrumb/material-dark.css +10 -2
  87. package/styles/breadcrumb/material.css +10 -2
  88. package/styles/breadcrumb/tailwind-dark.css +21 -4
  89. package/styles/breadcrumb/tailwind.css +27 -10
  90. package/styles/carousel/bootstrap-dark.css +236 -0
  91. package/styles/carousel/bootstrap-dark.scss +1 -0
  92. package/styles/carousel/bootstrap.css +236 -0
  93. package/styles/carousel/bootstrap.scss +1 -0
  94. package/styles/carousel/bootstrap4.css +236 -0
  95. package/styles/carousel/bootstrap4.scss +1 -0
  96. package/styles/carousel/bootstrap5-dark.css +236 -0
  97. package/styles/carousel/bootstrap5-dark.scss +1 -0
  98. package/styles/carousel/bootstrap5.css +236 -0
  99. package/styles/carousel/bootstrap5.scss +1 -0
  100. package/styles/carousel/fabric-dark.css +236 -0
  101. package/styles/carousel/fabric-dark.scss +1 -0
  102. package/styles/carousel/fabric.css +236 -0
  103. package/styles/carousel/fabric.scss +1 -0
  104. package/styles/carousel/fluent-dark.css +236 -0
  105. package/styles/carousel/fluent-dark.scss +1 -0
  106. package/styles/carousel/fluent.css +236 -0
  107. package/styles/carousel/fluent.scss +1 -0
  108. package/styles/carousel/highcontrast-light.css +236 -0
  109. package/styles/carousel/highcontrast-light.scss +1 -0
  110. package/styles/carousel/highcontrast.css +236 -0
  111. package/styles/carousel/highcontrast.scss +1 -0
  112. package/styles/carousel/material-dark.css +237 -0
  113. package/styles/carousel/material-dark.scss +1 -0
  114. package/styles/carousel/material.css +237 -0
  115. package/styles/carousel/material.scss +1 -0
  116. package/styles/carousel/tailwind-dark.css +237 -0
  117. package/styles/carousel/tailwind-dark.scss +1 -0
  118. package/styles/carousel/tailwind.css +237 -0
  119. package/styles/carousel/tailwind.scss +1 -0
  120. package/styles/context-menu/bootstrap-dark.css +5 -0
  121. package/styles/context-menu/bootstrap.css +5 -0
  122. package/styles/context-menu/bootstrap4.css +5 -0
  123. package/styles/context-menu/bootstrap5-dark.css +16 -8
  124. package/styles/context-menu/bootstrap5.css +16 -8
  125. package/styles/context-menu/fabric-dark.css +5 -0
  126. package/styles/context-menu/fabric.css +5 -0
  127. package/styles/context-menu/fluent-dark.css +388 -0
  128. package/styles/context-menu/fluent-dark.scss +1 -0
  129. package/styles/context-menu/fluent.css +388 -0
  130. package/styles/context-menu/fluent.scss +1 -0
  131. package/styles/context-menu/highcontrast-light.css +5 -0
  132. package/styles/context-menu/highcontrast.css +5 -0
  133. package/styles/context-menu/material-dark.css +5 -0
  134. package/styles/context-menu/material.css +5 -0
  135. package/styles/context-menu/tailwind-dark.css +11 -4
  136. package/styles/context-menu/tailwind.css +11 -4
  137. package/styles/fabric-dark.css +312 -73
  138. package/styles/fabric-dark.scss +1 -0
  139. package/styles/fabric.css +312 -73
  140. package/styles/fabric.scss +1 -0
  141. package/styles/fluent-dark.css +10263 -0
  142. package/styles/fluent-dark.scss +11 -0
  143. package/styles/fluent.css +10263 -0
  144. package/styles/fluent.scss +11 -0
  145. package/styles/h-scroll/bootstrap-dark.css +0 -1
  146. package/styles/h-scroll/bootstrap.css +0 -1
  147. package/styles/h-scroll/bootstrap4.css +0 -1
  148. package/styles/h-scroll/bootstrap5-dark.css +10 -11
  149. package/styles/h-scroll/bootstrap5.css +10 -11
  150. package/styles/h-scroll/fabric-dark.css +0 -1
  151. package/styles/h-scroll/fabric.css +0 -1
  152. package/styles/h-scroll/fluent-dark.css +326 -0
  153. package/styles/h-scroll/fluent-dark.scss +1 -0
  154. package/styles/h-scroll/fluent.css +326 -0
  155. package/styles/h-scroll/fluent.scss +1 -0
  156. package/styles/h-scroll/highcontrast-light.css +0 -1
  157. package/styles/h-scroll/highcontrast.css +0 -1
  158. package/styles/h-scroll/material-dark.css +3 -4
  159. package/styles/h-scroll/material.css +0 -1
  160. package/styles/h-scroll/tailwind-dark.css +8 -9
  161. package/styles/h-scroll/tailwind.css +8 -9
  162. package/styles/highcontrast-light.css +311 -72
  163. package/styles/highcontrast-light.scss +1 -0
  164. package/styles/highcontrast.css +312 -73
  165. package/styles/highcontrast.scss +1 -0
  166. package/styles/material-dark.css +314 -73
  167. package/styles/material-dark.scss +1 -0
  168. package/styles/material.css +311 -70
  169. package/styles/material.scss +1 -0
  170. package/styles/menu/bootstrap-dark.css +1 -2
  171. package/styles/menu/bootstrap.css +1 -2
  172. package/styles/menu/bootstrap4.css +1 -2
  173. package/styles/menu/bootstrap5-dark.css +23 -24
  174. package/styles/menu/bootstrap5.css +23 -24
  175. package/styles/menu/fabric-dark.css +1 -2
  176. package/styles/menu/fabric.css +1 -2
  177. package/styles/menu/fluent-dark.css +1261 -0
  178. package/styles/menu/fluent-dark.scss +1 -0
  179. package/styles/menu/fluent.css +1261 -0
  180. package/styles/menu/fluent.scss +1 -0
  181. package/styles/menu/highcontrast-light.css +1 -2
  182. package/styles/menu/highcontrast.css +1 -2
  183. package/styles/menu/material-dark.css +1 -2
  184. package/styles/menu/material.css +1 -2
  185. package/styles/menu/tailwind-dark.css +18 -18
  186. package/styles/menu/tailwind.css +18 -18
  187. package/styles/sidebar/bootstrap-dark.css +4 -0
  188. package/styles/sidebar/bootstrap.css +4 -0
  189. package/styles/sidebar/bootstrap4.css +4 -0
  190. package/styles/sidebar/bootstrap5-dark.css +4 -0
  191. package/styles/sidebar/bootstrap5.css +4 -0
  192. package/styles/sidebar/fabric-dark.css +4 -0
  193. package/styles/sidebar/fabric.css +4 -0
  194. package/styles/sidebar/fluent-dark.css +158 -0
  195. package/styles/sidebar/fluent-dark.scss +1 -0
  196. package/styles/sidebar/fluent.css +158 -0
  197. package/styles/sidebar/fluent.scss +1 -0
  198. package/styles/sidebar/highcontrast-light.css +4 -0
  199. package/styles/sidebar/highcontrast.css +4 -0
  200. package/styles/sidebar/material-dark.css +4 -0
  201. package/styles/sidebar/material.css +4 -0
  202. package/styles/sidebar/tailwind-dark.css +4 -0
  203. package/styles/sidebar/tailwind.css +4 -0
  204. package/styles/tab/bootstrap-dark.css +1 -1
  205. package/styles/tab/bootstrap.css +1 -1
  206. package/styles/tab/bootstrap4.css +1 -1
  207. package/styles/tab/bootstrap5-dark.css +23 -23
  208. package/styles/tab/bootstrap5.css +23 -23
  209. package/styles/tab/fabric-dark.css +1 -1
  210. package/styles/tab/fabric.css +1 -1
  211. package/styles/tab/fluent-dark.css +4394 -0
  212. package/styles/tab/fluent-dark.scss +1 -0
  213. package/styles/tab/fluent.css +4394 -0
  214. package/styles/tab/fluent.scss +1 -0
  215. package/styles/tab/highcontrast-light.css +1 -1
  216. package/styles/tab/highcontrast.css +2 -2
  217. package/styles/tab/material-dark.css +1 -1
  218. package/styles/tab/material.css +1 -1
  219. package/styles/tab/tailwind-dark.css +43 -45
  220. package/styles/tab/tailwind.css +43 -45
  221. package/styles/tailwind-dark.css +422 -171
  222. package/styles/tailwind-dark.scss +1 -0
  223. package/styles/tailwind.css +428 -177
  224. package/styles/tailwind.scss +1 -0
  225. package/styles/toolbar/bootstrap-dark.css +4 -0
  226. package/styles/toolbar/bootstrap.css +4 -0
  227. package/styles/toolbar/bootstrap4.css +4 -0
  228. package/styles/toolbar/bootstrap5-dark.css +35 -31
  229. package/styles/toolbar/bootstrap5.css +35 -31
  230. package/styles/toolbar/fabric-dark.css +4 -0
  231. package/styles/toolbar/fabric.css +4 -0
  232. package/styles/toolbar/fluent-dark.css +1365 -0
  233. package/styles/toolbar/fluent-dark.scss +1 -0
  234. package/styles/toolbar/fluent.css +1365 -0
  235. package/styles/toolbar/fluent.scss +1 -0
  236. package/styles/toolbar/highcontrast-light.css +4 -0
  237. package/styles/toolbar/highcontrast.css +4 -0
  238. package/styles/toolbar/material-dark.css +4 -0
  239. package/styles/toolbar/material.css +4 -0
  240. package/styles/toolbar/tailwind-dark.css +10 -6
  241. package/styles/toolbar/tailwind.css +10 -6
  242. package/styles/treeview/bootstrap5-dark.css +4 -4
  243. package/styles/treeview/bootstrap5.css +4 -4
  244. package/styles/treeview/fluent-dark.css +1039 -0
  245. package/styles/treeview/fluent-dark.scss +1 -0
  246. package/styles/treeview/fluent.css +1039 -0
  247. package/styles/treeview/fluent.scss +1 -0
  248. package/styles/treeview/tailwind-dark.css +13 -14
  249. package/styles/treeview/tailwind.css +13 -14
  250. package/styles/v-scroll/fluent-dark.css +247 -0
  251. package/styles/v-scroll/fluent-dark.scss +1 -0
  252. package/styles/v-scroll/fluent.css +247 -0
  253. package/styles/v-scroll/fluent.scss +1 -0
  254. package/styles/v-scroll/tailwind-dark.css +4 -4
  255. package/styles/v-scroll/tailwind.css +4 -4
@@ -0,0 +1,110 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
21
+ import * as Vue3 from 'vue-class-component';
22
+ import { isNullOrUndefined } from '@syncfusion/ej2-base';
23
+ import Vue from 'vue';
24
+ import { Options } from 'vue-class-component';
25
+ export var isExecute = gh ? false : true;
26
+ var vueImport;
27
+ if (!isExecute || parseInt(allVue.version) < 3) {
28
+ vueImport = Vue3.Vue;
29
+ }
30
+ else {
31
+ vueImport = Vue;
32
+ }
33
+ var CarouselItemsDirective = /** @class */ (function (_super) {
34
+ __extends(CarouselItemsDirective, _super);
35
+ function CarouselItemsDirective() {
36
+ return _super.call(this, arguments) || this;
37
+ }
38
+ CarouselItemsDirective.prototype.render = function (createElement) {
39
+ if (gh) {
40
+ var h = gh || createElement;
41
+ var slots = null;
42
+ if (!isNullOrUndefined(this.$slots.default)) {
43
+ slots = gh ? this.$slots.default() : this.$slots.default;
44
+ }
45
+ return h('div', { class: 'e-directive' }, slots);
46
+ }
47
+ return;
48
+ };
49
+ CarouselItemsDirective.prototype.updated = function () {
50
+ if (gh && this.custom) {
51
+ this.custom();
52
+ }
53
+ };
54
+ CarouselItemsDirective.prototype.getTag = function () {
55
+ return 'e-carousel-items';
56
+ };
57
+ CarouselItemsDirective = __decorate([
58
+ EJComponentDecorator({}, isExecute)
59
+ ,Options({
60
+ inject: {
61
+ custom: {
62
+ default: null
63
+ }
64
+ }
65
+ })
66
+ ], CarouselItemsDirective);
67
+ return CarouselItemsDirective;
68
+ }(vueImport));
69
+ export { CarouselItemsDirective };
70
+ export var CarouselItemsPlugin = {
71
+ name: 'e-carousel-items',
72
+ install: function (Vue) {
73
+ Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
74
+ }
75
+ };
76
+ /**
77
+ * `e-carousel-item` directive represent a item of the Vue Carousel.
78
+ * It must be contained in a Carousel component(`ejs-carousel`).
79
+ * ```html
80
+ * <ejs-carousel>
81
+ * <e-carousel-items>
82
+ * <e-carousel-item template='itemTemplate'></e-carousel-item>
83
+ * <e-carousel-item template='secondItemTemplate'></e-carousel-item>
84
+ * </e-carousel-items>
85
+ * </ejs-carousel>
86
+ * ```
87
+ */
88
+ var CarouselItemDirective = /** @class */ (function (_super) {
89
+ __extends(CarouselItemDirective, _super);
90
+ function CarouselItemDirective() {
91
+ return _super !== null && _super.apply(this, arguments) || this;
92
+ }
93
+ CarouselItemDirective.prototype.render = function () {
94
+ return;
95
+ };
96
+ CarouselItemDirective.prototype.getTag = function () {
97
+ return 'e-carousel-item';
98
+ };
99
+ CarouselItemDirective = __decorate([
100
+ EJComponentDecorator({}, isExecute)
101
+ ], CarouselItemDirective);
102
+ return CarouselItemDirective;
103
+ }(vueImport));
104
+ export { CarouselItemDirective };
105
+ export var CarouselItemPlugin = {
106
+ name: 'e-carousel-item',
107
+ install: function (Vue) {
108
+ Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
109
+ }
110
+ };
@@ -29,6 +29,7 @@ export declare class ContextMenuComponent extends ComponentBase {
29
29
  clearTemplate(templateNames?: string[]): any;
30
30
  setProperties(prop: any, muteOnChange: boolean): void;
31
31
  render(createElement: any): any;
32
+ custom(): void;
32
33
  close(): void;
33
34
  enableItems(items: string[], enable: boolean, isUniqueId?: boolean): void;
34
35
  getItemIndex(item: Object | string, isUniqueId?: boolean): number[];
@@ -56,6 +56,7 @@ var ContextMenuComponent = /** @class */ (function (_super) {
56
56
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
57
57
  _this.ej2Instances.setProperties = _this.setProperties;
58
58
  _this.ej2Instances.clearTemplate = _this.clearTemplate;
59
+ _this.updated = _this.updated;
59
60
  return _this;
60
61
  }
61
62
  ContextMenuComponent.prototype.clearTemplate = function (templateNames) {
@@ -114,6 +115,9 @@ var ContextMenuComponent = /** @class */ (function (_super) {
114
115
  }
115
116
  return h('ul', slots);
116
117
  };
118
+ ContextMenuComponent.prototype.custom = function () {
119
+ this.updated();
120
+ };
117
121
  ContextMenuComponent.prototype.close = function () {
118
122
  return this.ej2Instances.close();
119
123
  };
@@ -151,7 +155,12 @@ var ContextMenuComponent = /** @class */ (function (_super) {
151
155
  ,Options({
152
156
  props: props,
153
157
  watch: watch,
154
- emits: emitProbs
158
+ emits: emitProbs,
159
+ provide: function provide() {
160
+ return {
161
+ custom: this.custom
162
+ };
163
+ }
155
164
  })
156
165
  ], ContextMenuComponent);
157
166
  return ContextMenuComponent;
package/src/index.d.ts CHANGED
@@ -6,6 +6,8 @@ export { ToolbarComponent, ToolbarPlugin } from './toolbar/toolbar.component';
6
6
  export { ContextMenuComponent, ContextMenuPlugin } from './context-menu/contextmenu.component';
7
7
  export { BreadcrumbItemsDirective, BreadcrumbItemDirective, BreadcrumbItemsPlugin, BreadcrumbItemPlugin } from './breadcrumb/items.directive';
8
8
  export { BreadcrumbComponent, BreadcrumbPlugin } from './breadcrumb/breadcrumb.component';
9
+ export { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './carousel/items.directive';
10
+ export { CarouselComponent, CarouselPlugin } from './carousel/carousel.component';
9
11
  export { TabItemsDirective, TabItemDirective, TabItemsPlugin, TabItemPlugin } from './tab/items.directive';
10
12
  export { TabComponent, TabPlugin } from './tab/tab.component';
11
13
  export { TreeViewComponent, TreeViewPlugin } from './treeview/treeview.component';
package/src/index.js CHANGED
@@ -6,6 +6,8 @@ export { ToolbarComponent, ToolbarPlugin } from './toolbar/toolbar.component';
6
6
  export { ContextMenuComponent, ContextMenuPlugin } from './context-menu/contextmenu.component';
7
7
  export { BreadcrumbItemsDirective, BreadcrumbItemDirective, BreadcrumbItemsPlugin, BreadcrumbItemPlugin } from './breadcrumb/items.directive';
8
8
  export { BreadcrumbComponent, BreadcrumbPlugin } from './breadcrumb/breadcrumb.component';
9
+ export { CarouselItemsDirective, CarouselItemDirective, CarouselItemsPlugin, CarouselItemPlugin } from './carousel/items.directive';
10
+ export { CarouselComponent, CarouselPlugin } from './carousel/carousel.component';
9
11
  export { TabItemsDirective, TabItemDirective, TabItemsPlugin, TabItemPlugin } from './tab/items.directive';
10
12
  export { TabComponent, TabPlugin } from './tab/tab.component';
11
13
  export { TreeViewComponent, TreeViewPlugin } from './treeview/treeview.component';
@@ -1,7 +1,9 @@
1
1
  export declare const isExecute: any;
2
2
  declare let vueImport: any;
3
3
  export declare class MenuItemsDirective extends vueImport {
4
- render(): void;
4
+ constructor();
5
+ render(createElement: any): void;
6
+ updated(): void;
5
7
  getTag(): string;
6
8
  }
7
9
  export declare const MenuItemsPlugin: {
@@ -19,7 +19,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  };
20
20
  import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
21
21
  import * as Vue3 from 'vue-class-component';
22
+ import { isNullOrUndefined } from '@syncfusion/ej2-base';
22
23
  import Vue from 'vue';
24
+ import { Options } from 'vue-class-component';
23
25
  export var isExecute = gh ? false : true;
24
26
  var vueImport;
25
27
  if (!isExecute || parseInt(allVue.version) < 3) {
@@ -31,16 +33,36 @@ else {
31
33
  var MenuItemsDirective = /** @class */ (function (_super) {
32
34
  __extends(MenuItemsDirective, _super);
33
35
  function MenuItemsDirective() {
34
- return _super !== null && _super.apply(this, arguments) || this;
36
+ return _super.call(this, arguments) || this;
35
37
  }
36
- MenuItemsDirective.prototype.render = function () {
38
+ MenuItemsDirective.prototype.render = function (createElement) {
39
+ if (gh) {
40
+ var h = gh || createElement;
41
+ var slots = null;
42
+ if (!isNullOrUndefined(this.$slots.default)) {
43
+ slots = gh ? this.$slots.default() : this.$slots.default;
44
+ }
45
+ return h('div', { class: 'e-directive' }, slots);
46
+ }
37
47
  return;
38
48
  };
49
+ MenuItemsDirective.prototype.updated = function () {
50
+ if (gh && this.custom) {
51
+ this.custom();
52
+ }
53
+ };
39
54
  MenuItemsDirective.prototype.getTag = function () {
40
55
  return 'e-menu-items';
41
56
  };
42
57
  MenuItemsDirective = __decorate([
43
58
  EJComponentDecorator({}, isExecute)
59
+ ,Options({
60
+ inject: {
61
+ custom: {
62
+ default: null
63
+ }
64
+ }
65
+ })
44
66
  ], MenuItemsDirective);
45
67
  return MenuItemsDirective;
46
68
  }(vueImport));
@@ -28,6 +28,7 @@ export declare class MenuComponent extends ComponentBase {
28
28
  clearTemplate(templateNames?: string[]): any;
29
29
  setProperties(prop: any, muteOnChange: boolean): void;
30
30
  render(createElement: any): any;
31
+ custom(): void;
31
32
  close(): void;
32
33
  enableItems(items: string[], enable: boolean, isUniqueId?: boolean): void;
33
34
  getItemIndex(item: Object | string, isUniqueId?: boolean): number[];
@@ -56,6 +56,7 @@ var MenuComponent = /** @class */ (function (_super) {
56
56
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
57
57
  _this.ej2Instances.setProperties = _this.setProperties;
58
58
  _this.ej2Instances.clearTemplate = _this.clearTemplate;
59
+ _this.updated = _this.updated;
59
60
  return _this;
60
61
  }
61
62
  MenuComponent.prototype.clearTemplate = function (templateNames) {
@@ -114,6 +115,9 @@ var MenuComponent = /** @class */ (function (_super) {
114
115
  }
115
116
  return h('ul', slots);
116
117
  };
118
+ MenuComponent.prototype.custom = function () {
119
+ this.updated();
120
+ };
117
121
  MenuComponent.prototype.close = function () {
118
122
  return this.ej2Instances.close();
119
123
  };
@@ -151,7 +155,12 @@ var MenuComponent = /** @class */ (function (_super) {
151
155
  ,Options({
152
156
  props: props,
153
157
  watch: watch,
154
- emits: emitProbs
158
+ emits: emitProbs,
159
+ provide: function provide() {
160
+ return {
161
+ custom: this.custom
162
+ };
163
+ }
155
164
  })
156
165
  ], MenuComponent);
157
166
  return MenuComponent;
@@ -31,6 +31,7 @@ export declare class SidebarComponent extends ComponentBase {
31
31
  [key: string]: Object;
32
32
  }, successHandler?: Function): void;
33
33
  render(createElement: any): any;
34
+ custom(): void;
34
35
  hide(e?: Object): void;
35
36
  show(e?: Object): void;
36
37
  toggle(): void;
@@ -58,6 +58,7 @@ var SidebarComponent = /** @class */ (function (_super) {
58
58
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
59
59
  _this.ej2Instances.setProperties = _this.setProperties;
60
60
  _this.ej2Instances.clearTemplate = _this.clearTemplate;
61
+ _this.updated = _this.updated;
61
62
  return _this;
62
63
  }
63
64
  SidebarComponent.prototype.clearTemplate = function (templateNames) {
@@ -154,6 +155,9 @@ var SidebarComponent = /** @class */ (function (_super) {
154
155
  }
155
156
  return h('div', slots);
156
157
  };
158
+ SidebarComponent.prototype.custom = function () {
159
+ this.updated();
160
+ };
157
161
  SidebarComponent.prototype.hide = function (e) {
158
162
  return this.ej2Instances.hide(e);
159
163
  };
@@ -173,7 +177,12 @@ var SidebarComponent = /** @class */ (function (_super) {
173
177
  ,Options({
174
178
  props: props,
175
179
  watch: watch,
176
- emits: emitProbs
180
+ emits: emitProbs,
181
+ provide: function provide() {
182
+ return {
183
+ custom: this.custom
184
+ };
185
+ }
177
186
  })
178
187
  ], SidebarComponent);
179
188
  return SidebarComponent;
@@ -1,7 +1,9 @@
1
1
  export declare const isExecute: any;
2
2
  declare let vueImport: any;
3
3
  export declare class TabItemsDirective extends vueImport {
4
- render(): void;
4
+ constructor();
5
+ render(createElement: any): void;
6
+ updated(): void;
5
7
  getTag(): string;
6
8
  }
7
9
  export declare const TabItemsPlugin: {
@@ -19,7 +19,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  };
20
20
  import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
21
21
  import * as Vue3 from 'vue-class-component';
22
+ import { isNullOrUndefined } from '@syncfusion/ej2-base';
22
23
  import Vue from 'vue';
24
+ import { Options } from 'vue-class-component';
23
25
  export var isExecute = gh ? false : true;
24
26
  var vueImport;
25
27
  if (!isExecute || parseInt(allVue.version) < 3) {
@@ -31,16 +33,36 @@ else {
31
33
  var TabItemsDirective = /** @class */ (function (_super) {
32
34
  __extends(TabItemsDirective, _super);
33
35
  function TabItemsDirective() {
34
- return _super !== null && _super.apply(this, arguments) || this;
36
+ return _super.call(this, arguments) || this;
35
37
  }
36
- TabItemsDirective.prototype.render = function () {
38
+ TabItemsDirective.prototype.render = function (createElement) {
39
+ if (gh) {
40
+ var h = gh || createElement;
41
+ var slots = null;
42
+ if (!isNullOrUndefined(this.$slots.default)) {
43
+ slots = gh ? this.$slots.default() : this.$slots.default;
44
+ }
45
+ return h('div', { class: 'e-directive' }, slots);
46
+ }
37
47
  return;
38
48
  };
49
+ TabItemsDirective.prototype.updated = function () {
50
+ if (gh && this.custom) {
51
+ this.custom();
52
+ }
53
+ };
39
54
  TabItemsDirective.prototype.getTag = function () {
40
55
  return 'e-tabitems';
41
56
  };
42
57
  TabItemsDirective = __decorate([
43
58
  EJComponentDecorator({}, isExecute)
59
+ ,Options({
60
+ inject: {
61
+ custom: {
62
+ default: null
63
+ }
64
+ }
65
+ })
44
66
  ], TabItemsDirective);
45
67
  return TabItemsDirective;
46
68
  }(vueImport));
@@ -28,6 +28,7 @@ export declare class TabComponent extends ComponentBase {
28
28
  clearTemplate(templateNames?: string[]): any;
29
29
  setProperties(prop: any, muteOnChange: boolean): void;
30
30
  render(createElement: any): any;
31
+ custom(): void;
31
32
  addTab(items: Object[], index?: number): void;
32
33
  disable(value: boolean): void;
33
34
  enableTab(index: number, value: boolean): void;
@@ -56,6 +56,7 @@ var TabComponent = /** @class */ (function (_super) {
56
56
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
57
57
  _this.ej2Instances.setProperties = _this.setProperties;
58
58
  _this.ej2Instances.clearTemplate = _this.clearTemplate;
59
+ _this.updated = _this.updated;
59
60
  return _this;
60
61
  }
61
62
  TabComponent.prototype.clearTemplate = function (templateNames) {
@@ -114,6 +115,9 @@ var TabComponent = /** @class */ (function (_super) {
114
115
  }
115
116
  return h('div', slots);
116
117
  };
118
+ TabComponent.prototype.custom = function () {
119
+ this.updated();
120
+ };
117
121
  TabComponent.prototype.addTab = function (items, index) {
118
122
  return this.ej2Instances.addTab(items, index);
119
123
  };
@@ -148,7 +152,12 @@ var TabComponent = /** @class */ (function (_super) {
148
152
  ,Options({
149
153
  props: props,
150
154
  watch: watch,
151
- emits: emitProbs
155
+ emits: emitProbs,
156
+ provide: function provide() {
157
+ return {
158
+ custom: this.custom
159
+ };
160
+ }
152
161
  })
153
162
  ], TabComponent);
154
163
  return TabComponent;
@@ -1,7 +1,9 @@
1
1
  export declare const isExecute: any;
2
2
  declare let vueImport: any;
3
3
  export declare class ItemsDirective extends vueImport {
4
- render(): void;
4
+ constructor();
5
+ render(createElement: any): void;
6
+ updated(): void;
5
7
  getTag(): string;
6
8
  }
7
9
  export declare const ItemsPlugin: {
@@ -19,7 +19,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  };
20
20
  import { EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
21
21
  import * as Vue3 from 'vue-class-component';
22
+ import { isNullOrUndefined } from '@syncfusion/ej2-base';
22
23
  import Vue from 'vue';
24
+ import { Options } from 'vue-class-component';
23
25
  export var isExecute = gh ? false : true;
24
26
  var vueImport;
25
27
  if (!isExecute || parseInt(allVue.version) < 3) {
@@ -31,16 +33,36 @@ else {
31
33
  var ItemsDirective = /** @class */ (function (_super) {
32
34
  __extends(ItemsDirective, _super);
33
35
  function ItemsDirective() {
34
- return _super !== null && _super.apply(this, arguments) || this;
36
+ return _super.call(this, arguments) || this;
35
37
  }
36
- ItemsDirective.prototype.render = function () {
38
+ ItemsDirective.prototype.render = function (createElement) {
39
+ if (gh) {
40
+ var h = gh || createElement;
41
+ var slots = null;
42
+ if (!isNullOrUndefined(this.$slots.default)) {
43
+ slots = gh ? this.$slots.default() : this.$slots.default;
44
+ }
45
+ return h('div', { class: 'e-directive' }, slots);
46
+ }
37
47
  return;
38
48
  };
49
+ ItemsDirective.prototype.updated = function () {
50
+ if (gh && this.custom) {
51
+ this.custom();
52
+ }
53
+ };
39
54
  ItemsDirective.prototype.getTag = function () {
40
55
  return 'e-items';
41
56
  };
42
57
  ItemsDirective = __decorate([
43
58
  EJComponentDecorator({}, isExecute)
59
+ ,Options({
60
+ inject: {
61
+ custom: {
62
+ default: null
63
+ }
64
+ }
65
+ })
44
66
  ], ItemsDirective);
45
67
  return ItemsDirective;
46
68
  }(vueImport));
@@ -28,6 +28,7 @@ export declare class ToolbarComponent extends ComponentBase {
28
28
  clearTemplate(templateNames?: string[]): any;
29
29
  setProperties(prop: any, muteOnChange: boolean): void;
30
30
  render(createElement: any): any;
31
+ custom(): void;
31
32
  addItems(items: Object[], index?: number): void;
32
33
  disable(value: boolean): void;
33
34
  enableItems(items: number | Object | Object, isEnable?: boolean): void;
@@ -56,6 +56,7 @@ var ToolbarComponent = /** @class */ (function (_super) {
56
56
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
57
57
  _this.ej2Instances.setProperties = _this.setProperties;
58
58
  _this.ej2Instances.clearTemplate = _this.clearTemplate;
59
+ _this.updated = _this.updated;
59
60
  return _this;
60
61
  }
61
62
  ToolbarComponent.prototype.clearTemplate = function (templateNames) {
@@ -114,6 +115,9 @@ var ToolbarComponent = /** @class */ (function (_super) {
114
115
  }
115
116
  return h('div', slots);
116
117
  };
118
+ ToolbarComponent.prototype.custom = function () {
119
+ this.updated();
120
+ };
117
121
  ToolbarComponent.prototype.addItems = function (items, index) {
118
122
  return this.ej2Instances.addItems(items, index);
119
123
  };
@@ -139,7 +143,12 @@ var ToolbarComponent = /** @class */ (function (_super) {
139
143
  ,Options({
140
144
  props: props,
141
145
  watch: watch,
142
- emits: emitProbs
146
+ emits: emitProbs,
147
+ provide: function provide() {
148
+ return {
149
+ custom: this.custom
150
+ };
151
+ }
143
152
  })
144
153
  ], ToolbarComponent);
145
154
  return ToolbarComponent;
@@ -28,6 +28,7 @@ export declare class TreeViewComponent extends ComponentBase {
28
28
  clearTemplate(templateNames?: string[]): any;
29
29
  setProperties(prop: any, muteOnChange: boolean): void;
30
30
  render(createElement: any): any;
31
+ custom(): void;
31
32
  addNodes(nodes: undefined[], target?: string | Object, index?: number, preventTargetExpand?: boolean): void;
32
33
  beginEdit(node: string | Object): void;
33
34
  checkAll(nodes?: string[] | Object[]): void;
@@ -55,6 +55,7 @@ var TreeViewComponent = /** @class */ (function (_super) {
55
55
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
56
56
  _this.ej2Instances.setProperties = _this.setProperties;
57
57
  _this.ej2Instances.clearTemplate = _this.clearTemplate;
58
+ _this.updated = _this.updated;
58
59
  return _this;
59
60
  }
60
61
  TreeViewComponent.prototype.clearTemplate = function (templateNames) {
@@ -113,6 +114,9 @@ var TreeViewComponent = /** @class */ (function (_super) {
113
114
  }
114
115
  return h('div', slots);
115
116
  };
117
+ TreeViewComponent.prototype.custom = function () {
118
+ this.updated();
119
+ };
116
120
  TreeViewComponent.prototype.addNodes = function (nodes, target, index, preventTargetExpand) {
117
121
  return this.ej2Instances.addNodes(nodes, target, index, preventTargetExpand);
118
122
  };
@@ -171,7 +175,12 @@ var TreeViewComponent = /** @class */ (function (_super) {
171
175
  ,Options({
172
176
  props: props,
173
177
  watch: watch,
174
- emits: emitProbs
178
+ emits: emitProbs,
179
+ provide: function provide() {
180
+ return {
181
+ custom: this.custom
182
+ };
183
+ }
175
184
  })
176
185
  ], TreeViewComponent);
177
186
  return TreeViewComponent;