@syncfusion/ej2-vue-dropdowns 20.2.50 → 20.3.48

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 (194) hide show
  1. package/CHANGELOG.md +13 -48
  2. package/dist/ej2-vue-dropdowns.umd.min.js +2 -2
  3. package/dist/ej2-vue-dropdowns.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-dropdowns.es2015.js +191 -46
  5. package/dist/es6/ej2-vue-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-dropdowns.es5.js +200 -46
  7. package/dist/es6/ej2-vue-dropdowns.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-dropdowns.min.js +2 -2
  9. package/mention.d.ts +4 -0
  10. package/mention.js +4 -0
  11. package/package.json +8 -8
  12. package/src/auto-complete/autocomplete.component.d.ts +0 -1
  13. package/src/auto-complete/autocomplete.component.js +3 -4
  14. package/src/combo-box/combobox.component.d.ts +0 -1
  15. package/src/combo-box/combobox.component.js +3 -4
  16. package/src/drop-down-list/dropdownlist.component.d.ts +0 -1
  17. package/src/drop-down-list/dropdownlist.component.js +3 -4
  18. package/src/drop-down-tree/dropdowntree.component.d.ts +0 -1
  19. package/src/drop-down-tree/dropdowntree.component.js +3 -4
  20. package/src/index.d.ts +1 -0
  21. package/src/index.js +1 -0
  22. package/src/list-box/listbox.component.d.ts +0 -1
  23. package/src/list-box/listbox.component.js +3 -4
  24. package/src/mention/index.d.ts +1 -0
  25. package/src/mention/index.js +1 -0
  26. package/src/mention/mention.component.d.ts +42 -0
  27. package/src/mention/mention.component.js +163 -0
  28. package/src/multi-select/multiselect.component.d.ts +0 -1
  29. package/src/multi-select/multiselect.component.js +3 -4
  30. package/styles/auto-complete/bootstrap-dark.css +3 -1
  31. package/styles/auto-complete/bootstrap.css +3 -1
  32. package/styles/auto-complete/bootstrap4.css +3 -1
  33. package/styles/auto-complete/bootstrap5-dark.css +3 -1
  34. package/styles/auto-complete/bootstrap5.css +3 -1
  35. package/styles/auto-complete/fabric-dark.css +3 -1
  36. package/styles/auto-complete/fabric.css +3 -1
  37. package/styles/auto-complete/fluent-dark.css +3 -1
  38. package/styles/auto-complete/fluent.css +3 -1
  39. package/styles/auto-complete/highcontrast-light.css +3 -1
  40. package/styles/auto-complete/highcontrast.css +3 -1
  41. package/styles/auto-complete/material-dark.css +3 -1
  42. package/styles/auto-complete/material.css +3 -1
  43. package/styles/auto-complete/tailwind-dark.css +3 -1
  44. package/styles/auto-complete/tailwind.css +3 -1
  45. package/styles/bootstrap-dark.css +94 -42
  46. package/styles/bootstrap-dark.scss +1 -0
  47. package/styles/bootstrap.css +94 -42
  48. package/styles/bootstrap.scss +1 -0
  49. package/styles/bootstrap4.css +95 -42
  50. package/styles/bootstrap4.scss +1 -0
  51. package/styles/bootstrap5-dark.css +101 -44
  52. package/styles/bootstrap5-dark.scss +1 -0
  53. package/styles/bootstrap5.css +101 -44
  54. package/styles/bootstrap5.scss +1 -0
  55. package/styles/combo-box/bootstrap-dark.css +3 -1
  56. package/styles/combo-box/bootstrap.css +3 -1
  57. package/styles/combo-box/bootstrap4.css +3 -1
  58. package/styles/combo-box/bootstrap5-dark.css +3 -1
  59. package/styles/combo-box/bootstrap5.css +3 -1
  60. package/styles/combo-box/fabric-dark.css +3 -1
  61. package/styles/combo-box/fabric.css +3 -1
  62. package/styles/combo-box/fluent-dark.css +3 -1
  63. package/styles/combo-box/fluent.css +3 -1
  64. package/styles/combo-box/highcontrast-light.css +3 -1
  65. package/styles/combo-box/highcontrast.css +3 -1
  66. package/styles/combo-box/material-dark.css +3 -1
  67. package/styles/combo-box/material.css +3 -1
  68. package/styles/combo-box/tailwind-dark.css +3 -1
  69. package/styles/combo-box/tailwind.css +3 -1
  70. package/styles/drop-down-base/bootstrap-dark.css +42 -1
  71. package/styles/drop-down-base/bootstrap.css +42 -1
  72. package/styles/drop-down-base/bootstrap4.css +42 -1
  73. package/styles/drop-down-base/bootstrap5-dark.css +42 -1
  74. package/styles/drop-down-base/bootstrap5.css +42 -1
  75. package/styles/drop-down-base/fabric-dark.css +42 -1
  76. package/styles/drop-down-base/fabric.css +42 -1
  77. package/styles/drop-down-base/fluent-dark.css +42 -1
  78. package/styles/drop-down-base/fluent.css +42 -1
  79. package/styles/drop-down-base/highcontrast-light.css +42 -1
  80. package/styles/drop-down-base/highcontrast.css +42 -1
  81. package/styles/drop-down-base/material-dark.css +42 -1
  82. package/styles/drop-down-base/material.css +42 -1
  83. package/styles/drop-down-base/tailwind-dark.css +42 -1
  84. package/styles/drop-down-base/tailwind.css +42 -1
  85. package/styles/drop-down-list/bootstrap-dark.css +5 -0
  86. package/styles/drop-down-list/bootstrap.css +5 -0
  87. package/styles/drop-down-list/bootstrap4.css +5 -0
  88. package/styles/drop-down-list/bootstrap5-dark.css +6 -0
  89. package/styles/drop-down-list/bootstrap5.css +6 -0
  90. package/styles/drop-down-list/fabric-dark.css +5 -0
  91. package/styles/drop-down-list/fabric.css +5 -0
  92. package/styles/drop-down-list/fluent-dark.css +6 -0
  93. package/styles/drop-down-list/fluent.css +6 -0
  94. package/styles/drop-down-list/highcontrast-light.css +5 -0
  95. package/styles/drop-down-list/highcontrast.css +5 -0
  96. package/styles/drop-down-list/material-dark.css +5 -0
  97. package/styles/drop-down-list/material.css +5 -0
  98. package/styles/drop-down-list/tailwind-dark.css +6 -0
  99. package/styles/drop-down-list/tailwind.css +6 -0
  100. package/styles/drop-down-tree/bootstrap-dark.css +4 -0
  101. package/styles/drop-down-tree/bootstrap.css +4 -0
  102. package/styles/drop-down-tree/bootstrap4.css +4 -0
  103. package/styles/drop-down-tree/bootstrap5-dark.css +5 -0
  104. package/styles/drop-down-tree/bootstrap5.css +5 -0
  105. package/styles/drop-down-tree/fabric-dark.css +4 -0
  106. package/styles/drop-down-tree/fabric.css +4 -0
  107. package/styles/drop-down-tree/fluent-dark.css +5 -0
  108. package/styles/drop-down-tree/fluent.css +5 -0
  109. package/styles/drop-down-tree/highcontrast-light.css +4 -0
  110. package/styles/drop-down-tree/highcontrast.css +4 -0
  111. package/styles/drop-down-tree/material-dark.css +4 -0
  112. package/styles/drop-down-tree/material.css +4 -0
  113. package/styles/drop-down-tree/tailwind-dark.css +5 -0
  114. package/styles/drop-down-tree/tailwind.css +5 -0
  115. package/styles/fabric-dark.css +94 -42
  116. package/styles/fabric-dark.scss +1 -0
  117. package/styles/fabric.css +94 -42
  118. package/styles/fabric.scss +1 -0
  119. package/styles/fluent-dark.css +101 -44
  120. package/styles/fluent-dark.scss +1 -0
  121. package/styles/fluent.css +101 -44
  122. package/styles/fluent.scss +1 -0
  123. package/styles/highcontrast-light.css +97 -42
  124. package/styles/highcontrast-light.scss +1 -0
  125. package/styles/highcontrast.css +97 -42
  126. package/styles/highcontrast.scss +1 -0
  127. package/styles/list-box/bootstrap-dark.css +12 -33
  128. package/styles/list-box/bootstrap.css +14 -35
  129. package/styles/list-box/bootstrap4.css +14 -35
  130. package/styles/list-box/bootstrap5-dark.css +15 -36
  131. package/styles/list-box/bootstrap5.css +15 -36
  132. package/styles/list-box/fabric-dark.css +12 -33
  133. package/styles/list-box/fabric.css +14 -35
  134. package/styles/list-box/fluent-dark.css +15 -36
  135. package/styles/list-box/fluent.css +15 -36
  136. package/styles/list-box/highcontrast-light.css +12 -33
  137. package/styles/list-box/highcontrast.css +14 -35
  138. package/styles/list-box/material-dark.css +12 -33
  139. package/styles/list-box/material.css +14 -35
  140. package/styles/list-box/tailwind-dark.css +15 -36
  141. package/styles/list-box/tailwind.css +15 -36
  142. package/styles/material-dark.css +94 -42
  143. package/styles/material-dark.scss +1 -0
  144. package/styles/material.css +94 -42
  145. package/styles/material.scss +1 -0
  146. package/styles/mention/bootstrap-dark.css +29 -0
  147. package/styles/mention/bootstrap-dark.scss +1 -0
  148. package/styles/mention/bootstrap.css +29 -0
  149. package/styles/mention/bootstrap.scss +1 -0
  150. package/styles/mention/bootstrap4.css +47 -0
  151. package/styles/mention/bootstrap4.scss +1 -0
  152. package/styles/mention/bootstrap5-dark.css +58 -0
  153. package/styles/mention/bootstrap5-dark.scss +1 -0
  154. package/styles/mention/bootstrap5.css +58 -0
  155. package/styles/mention/bootstrap5.scss +1 -0
  156. package/styles/mention/fabric-dark.css +29 -0
  157. package/styles/mention/fabric-dark.scss +1 -0
  158. package/styles/mention/fabric.css +29 -0
  159. package/styles/mention/fabric.scss +1 -0
  160. package/styles/mention/fluent-dark.css +58 -0
  161. package/styles/mention/fluent-dark.scss +1 -0
  162. package/styles/mention/fluent.css +58 -0
  163. package/styles/mention/fluent.scss +1 -0
  164. package/styles/mention/highcontrast-light.css +43 -0
  165. package/styles/mention/highcontrast-light.scss +1 -0
  166. package/styles/mention/highcontrast.css +43 -0
  167. package/styles/mention/highcontrast.scss +1 -0
  168. package/styles/mention/material-dark.css +29 -0
  169. package/styles/mention/material-dark.scss +1 -0
  170. package/styles/mention/material.css +29 -0
  171. package/styles/mention/material.scss +1 -0
  172. package/styles/mention/tailwind-dark.css +68 -0
  173. package/styles/mention/tailwind-dark.scss +1 -0
  174. package/styles/mention/tailwind.css +68 -0
  175. package/styles/mention/tailwind.scss +1 -0
  176. package/styles/multi-select/bootstrap-dark.css +10 -6
  177. package/styles/multi-select/bootstrap.css +10 -6
  178. package/styles/multi-select/bootstrap4.css +10 -6
  179. package/styles/multi-select/bootstrap5-dark.css +11 -6
  180. package/styles/multi-select/bootstrap5.css +11 -6
  181. package/styles/multi-select/fabric-dark.css +10 -6
  182. package/styles/multi-select/fabric.css +10 -6
  183. package/styles/multi-select/fluent-dark.css +11 -6
  184. package/styles/multi-select/fluent.css +11 -6
  185. package/styles/multi-select/highcontrast-light.css +13 -6
  186. package/styles/multi-select/highcontrast.css +13 -6
  187. package/styles/multi-select/material-dark.css +10 -6
  188. package/styles/multi-select/material.css +10 -6
  189. package/styles/multi-select/tailwind-dark.css +11 -6
  190. package/styles/multi-select/tailwind.css +11 -6
  191. package/styles/tailwind-dark.css +102 -44
  192. package/styles/tailwind-dark.scss +1 -0
  193. package/styles/tailwind.css +102 -44
  194. package/styles/tailwind.scss +1 -0
package/mention.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * mention
3
+ */
4
+ export * from './src/mention/index';
package/mention.js ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * mention
3
+ */
4
+ export * from './src/mention/index';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-vue-dropdowns@*",
3
- "_id": "@syncfusion/ej2-vue-dropdowns@20.2.48",
3
+ "_id": "@syncfusion/ej2-vue-dropdowns@20.3.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-1YlB/pakMJb4j2mBfjvXnF6P7Yb/wVlocyVr7gl+E7Ea+RqGcAUm2XW9EysyWNr2RWTvW2XAKYjkcQZ49YDcBA==",
5
+ "_integrity": "sha512-Xkb7Z/apXk7tBQS3e19EX8pvvtHelCtUUxDCybuCxZiRbE7AcfYlnlm50H+a1+DPohleF1WDUmjkDriii4u7Ng==",
6
6
  "_location": "/@syncfusion/ej2-vue-dropdowns",
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-dropdowns/-/ej2-vue-dropdowns-20.2.48.tgz",
23
- "_shasum": "b6ae217661af39d407cf2d3f65b79ef1e91b2bf4",
22
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-dropdowns/-/ej2-vue-dropdowns-20.3.47.tgz",
23
+ "_shasum": "3d1713b05c880ddc3825c865e998d87ac15a9d6d",
24
24
  "_spec": "@syncfusion/ej2-vue-dropdowns@*",
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": "~20.2.48",
35
- "@syncfusion/ej2-dropdowns": "20.2.50",
36
- "@syncfusion/ej2-vue-base": "~20.2.45"
34
+ "@syncfusion/ej2-base": "~20.3.48",
35
+ "@syncfusion/ej2-dropdowns": "20.3.48",
36
+ "@syncfusion/ej2-vue-base": "~20.3.48"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Essential JS 2 DropDown Components for Vue",
@@ -70,6 +70,6 @@
70
70
  "scripts": {
71
71
  "postinstall": "node ../ej2-vue-base/postinstall.js"
72
72
  },
73
- "version": "20.2.50",
73
+ "version": "20.3.48",
74
74
  "sideEffects": false
75
75
  }
@@ -5,7 +5,6 @@ export declare const testProp: any;
5
5
  export declare const props: any;
6
6
  export declare const watch: any;
7
7
  export declare const emitProbs: any;
8
- export declare const isExecute: any;
9
8
  /**
10
9
  * The AutoComplete component provides all the matched suggestion list on typing the input from which the user can select one.
11
10
  * ```html
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
+ import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
22
22
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
23
23
  import { AutoComplete } from '@syncfusion/ej2-dropdowns';
24
24
  import { Options } from 'vue-class-component';
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
33
  var props_1 = modelProps_1[_i];
34
34
  emitProbs.push('update:' + props_1);
35
35
  }
36
- export var isExecute = gh ? false : true;
37
36
  /**
38
37
  * The AutoComplete component provides all the matched suggestion list on typing the input from which the user can select one.
39
38
  * ```html
@@ -149,10 +148,10 @@ var AutoCompleteComponent = /** @class */ (function (_super) {
149
148
  }
150
149
  };
151
150
  AutoCompleteComponent.prototype.render = function (createElement) {
152
- var h = gh || createElement;
151
+ var h = !isExecute ? gh : createElement;
153
152
  var slots = null;
154
153
  if (!isNullOrUndefined(this.$slots.default)) {
155
- slots = gh ? this.$slots.default() : this.$slots.default;
154
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
156
155
  }
157
156
  return h('input', slots);
158
157
  };
@@ -5,7 +5,6 @@ export declare const testProp: any;
5
5
  export declare const props: any;
6
6
  export declare const watch: any;
7
7
  export declare const emitProbs: any;
8
- export declare const isExecute: any;
9
8
  /**
10
9
  * ComboBox component allows the user to type a value or choose an option from the list of predefined options available
11
10
  * ```html
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
+ import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
22
22
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
23
23
  import { ComboBox } from '@syncfusion/ej2-dropdowns';
24
24
  import { Options } from 'vue-class-component';
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
33
  var props_1 = modelProps_1[_i];
34
34
  emitProbs.push('update:' + props_1);
35
35
  }
36
- export var isExecute = gh ? false : true;
37
36
  /**
38
37
  * ComboBox component allows the user to type a value or choose an option from the list of predefined options available
39
38
  * ```html
@@ -149,10 +148,10 @@ var ComboBoxComponent = /** @class */ (function (_super) {
149
148
  }
150
149
  };
151
150
  ComboBoxComponent.prototype.render = function (createElement) {
152
- var h = gh || createElement;
151
+ var h = !isExecute ? gh : createElement;
153
152
  var slots = null;
154
153
  if (!isNullOrUndefined(this.$slots.default)) {
155
- slots = gh ? this.$slots.default() : this.$slots.default;
154
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
156
155
  }
157
156
  return h('input', slots);
158
157
  };
@@ -5,7 +5,6 @@ export declare const testProp: any;
5
5
  export declare const props: any;
6
6
  export declare const watch: any;
7
7
  export declare const emitProbs: any;
8
- export declare const isExecute: any;
9
8
  /**
10
9
  * DropDownList contains a list of predefined values from which the user can choose
11
10
  * ```html
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
+ import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
22
22
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
23
23
  import { DropDownList } from '@syncfusion/ej2-dropdowns';
24
24
  import { Options } from 'vue-class-component';
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
33
  var props_1 = modelProps_1[_i];
34
34
  emitProbs.push('update:' + props_1);
35
35
  }
36
- export var isExecute = gh ? false : true;
37
36
  /**
38
37
  * DropDownList contains a list of predefined values from which the user can choose
39
38
  * ```html
@@ -149,10 +148,10 @@ var DropDownListComponent = /** @class */ (function (_super) {
149
148
  }
150
149
  };
151
150
  DropDownListComponent.prototype.render = function (createElement) {
152
- var h = gh || createElement;
151
+ var h = !isExecute ? gh : createElement;
153
152
  var slots = null;
154
153
  if (!isNullOrUndefined(this.$slots.default)) {
155
- slots = gh ? this.$slots.default() : this.$slots.default;
154
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
156
155
  }
157
156
  return h('input', slots);
158
157
  };
@@ -5,7 +5,6 @@ export declare const testProp: any;
5
5
  export declare const props: any;
6
6
  export declare const watch: any;
7
7
  export declare const emitProbs: any;
8
- export declare const isExecute: any;
9
8
  /**
10
9
  * The DropDownTree component contains a list of predefined values from which you can choose a single or multiple values.
11
10
  * ```html
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
+ import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
22
22
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
23
23
  import { DropDownTree } from '@syncfusion/ej2-dropdowns';
24
24
  import { Options } from 'vue-class-component';
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
33
  var props_1 = modelProps_1[_i];
34
34
  emitProbs.push('update:' + props_1);
35
35
  }
36
- export var isExecute = gh ? false : true;
37
36
  /**
38
37
  * The DropDownTree component contains a list of predefined values from which you can choose a single or multiple values.
39
38
  * ```html
@@ -149,10 +148,10 @@ var DropDownTreeComponent = /** @class */ (function (_super) {
149
148
  }
150
149
  };
151
150
  DropDownTreeComponent.prototype.render = function (createElement) {
152
- var h = gh || createElement;
151
+ var h = !isExecute ? gh : createElement;
153
152
  var slots = null;
154
153
  if (!isNullOrUndefined(this.$slots.default)) {
155
- slots = gh ? this.$slots.default() : this.$slots.default;
154
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
156
155
  }
157
156
  return h('input', slots);
158
157
  };
package/src/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export { AutoCompleteComponent, AutoCompletePlugin } from './auto-complete/autoc
5
5
  export { MultiSelectComponent, MultiSelectPlugin } from './multi-select/multiselect.component';
6
6
  export { ListBoxComponent, ListBoxPlugin } from './list-box/listbox.component';
7
7
  export { DropDownTreeComponent, DropDownTreePlugin } from './drop-down-tree/dropdowntree.component';
8
+ export { MentionComponent, MentionPlugin } from './mention/mention.component';
package/src/index.js CHANGED
@@ -5,3 +5,4 @@ export { AutoCompleteComponent, AutoCompletePlugin } from './auto-complete/autoc
5
5
  export { MultiSelectComponent, MultiSelectPlugin } from './multi-select/multiselect.component';
6
6
  export { ListBoxComponent, ListBoxPlugin } from './list-box/listbox.component';
7
7
  export { DropDownTreeComponent, DropDownTreePlugin } from './drop-down-tree/dropdowntree.component';
8
+ export { MentionComponent, MentionPlugin } from './mention/mention.component';
@@ -5,7 +5,6 @@ export declare const testProp: any;
5
5
  export declare const props: any;
6
6
  export declare const watch: any;
7
7
  export declare const emitProbs: any;
8
- export declare const isExecute: any;
9
8
  /**
10
9
  * ListBox component allows the user to select values from the predefined list of values.
11
10
  * ```html
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
+ import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
22
22
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
23
23
  import { ListBox } from '@syncfusion/ej2-dropdowns';
24
24
  import { Options } from 'vue-class-component';
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
33
  var props_1 = modelProps_1[_i];
34
34
  emitProbs.push('update:' + props_1);
35
35
  }
36
- export var isExecute = gh ? false : true;
37
36
  /**
38
37
  * ListBox component allows the user to select values from the predefined list of values.
39
38
  * ```html
@@ -149,10 +148,10 @@ var ListBoxComponent = /** @class */ (function (_super) {
149
148
  }
150
149
  };
151
150
  ListBoxComponent.prototype.render = function (createElement) {
152
- var h = gh || createElement;
151
+ var h = !isExecute ? gh : createElement;
153
152
  var slots = null;
154
153
  if (!isNullOrUndefined(this.$slots.default)) {
155
- slots = gh ? this.$slots.default() : this.$slots.default;
154
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
156
155
  }
157
156
  return h('input', slots);
158
157
  };
@@ -0,0 +1 @@
1
+ export { MentionComponent, MentionPlugin } from './mention.component';
@@ -0,0 +1 @@
1
+ export { MentionComponent, MentionPlugin } from './mention.component';
@@ -0,0 +1,42 @@
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
+ /**
9
+ * The Mention contains a list of predefined values from which the user can choose
10
+ * ```html
11
+ * <ejs-mention :dataSource='data'></ejs-dropdownlist>
12
+ * ```
13
+ */
14
+ export declare class MentionComponent extends ComponentBase {
15
+ ej2Instances: any;
16
+ propKeys: string[];
17
+ models: string[];
18
+ hasChildDirective: boolean;
19
+ protected hasInjectedModules: boolean;
20
+ tagMapper: {
21
+ [key: string]: Object;
22
+ };
23
+ tagNameMapper: Object;
24
+ isVue3: boolean;
25
+ templateCollection: any;
26
+ constructor();
27
+ clearTemplate(templateNames?: string[]): any;
28
+ setProperties(prop: any, muteOnChange: boolean): void;
29
+ render(createElement: any): any;
30
+ custom(): void;
31
+ addItem(items: undefined[] | undefined | string | boolean | number | string[] | boolean[] | number[], itemIndex?: number): void;
32
+ getDataByValue(value: string | number | boolean): Object | string | number | boolean;
33
+ getItems(): Object[];
34
+ hidePopup(e?: Object | Object): void;
35
+ hideSpinner(): void;
36
+ search(text: string, positionX: number, positionY: number): void;
37
+ showPopup(): void;
38
+ }
39
+ export declare const MentionPlugin: {
40
+ name: string;
41
+ install(Vue: any): void;
42
+ };
@@ -0,0 +1,163 @@
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 { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
21
+ import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
+ import { Mention } from '@syncfusion/ej2-dropdowns';
23
+ import { Options } from 'vue-class-component';
24
+ export var properties = ['isLazyUpdate', 'plugins', 'allowSpaces', 'cssClass', 'dataSource', 'displayTemplate', 'fields', 'filterType', 'highlight', 'ignoreCase', 'itemTemplate', 'locale', 'mentionChar', 'minLength', 'noRecordsTemplate', 'popupHeight', 'popupWidth', 'query', 'showMentionChar', 'sortOrder', 'spinnerTemplate', 'suffixText', 'suggestionCount', 'target', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'change', 'closed', 'created', 'destroyed', 'filtering', 'opened', 'select'];
25
+ export var modelProps = [];
26
+ export var testProp = getProps({ props: properties });
27
+ export var props = testProp[0];
28
+ export var watch = testProp[1];
29
+ export var emitProbs = Object.keys(watch);
30
+ emitProbs.push('modelchanged', 'update:modelValue');
31
+ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
32
+ var props_1 = modelProps_1[_i];
33
+ emitProbs.push('update:' + props_1);
34
+ }
35
+ /**
36
+ * The Mention contains a list of predefined values from which the user can choose
37
+ * ```html
38
+ * <ejs-mention :dataSource='data'></ejs-dropdownlist>
39
+ * ```
40
+ */
41
+ var MentionComponent = /** @class */ (function (_super) {
42
+ __extends(MentionComponent, _super);
43
+ function MentionComponent() {
44
+ var _this = _super.call(this, arguments) || this;
45
+ _this.propKeys = properties;
46
+ _this.models = modelProps;
47
+ _this.hasChildDirective = false;
48
+ _this.hasInjectedModules = false;
49
+ _this.tagMapper = {};
50
+ _this.tagNameMapper = {};
51
+ _this.isVue3 = !isExecute;
52
+ _this.ej2Instances = new Mention({});
53
+ _this.bindProperties();
54
+ _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
55
+ _this.ej2Instances.setProperties = _this.setProperties;
56
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
57
+ _this.updated = _this.updated;
58
+ return _this;
59
+ }
60
+ MentionComponent.prototype.clearTemplate = function (templateNames) {
61
+ if (!templateNames) {
62
+ templateNames = Object.keys(this.templateCollection || {});
63
+ }
64
+ if (templateNames.length && this.templateCollection) {
65
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
66
+ var tempName = templateNames_1[_i];
67
+ var elementCollection = this.templateCollection[tempName];
68
+ if (elementCollection && elementCollection.length) {
69
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
70
+ var ele = elementCollection_1[_a];
71
+ var destroy = getValue('__vue__.$destroy', ele);
72
+ if (destroy) {
73
+ ele.__vue__.$destroy();
74
+ }
75
+ if (ele.innerHTML) {
76
+ ele.innerHTML = '';
77
+ }
78
+ }
79
+ delete this.templateCollection[tempName];
80
+ }
81
+ }
82
+ }
83
+ };
84
+ MentionComponent.prototype.setProperties = function (prop, muteOnChange) {
85
+ var _this = this;
86
+ if (this.isVue3) {
87
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
88
+ }
89
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
90
+ this.ej2Instances._setProperties(prop, muteOnChange);
91
+ }
92
+ if (prop && this.models && this.models.length) {
93
+ Object.keys(prop).map(function (key) {
94
+ _this.models.map(function (model) {
95
+ if ((key === model) && !(/datasource/i.test(key))) {
96
+ if (_this.isVue3) {
97
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
98
+ }
99
+ else {
100
+ _this.$emit('update:' + key, prop[key]);
101
+ _this.$emit('modelchanged', prop[key]);
102
+ }
103
+ }
104
+ });
105
+ });
106
+ }
107
+ };
108
+ MentionComponent.prototype.render = function (createElement) {
109
+ var h = !isExecute ? gh : createElement;
110
+ var slots = null;
111
+ if (!isNullOrUndefined(this.$slots.default)) {
112
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
113
+ }
114
+ return h('div', slots);
115
+ };
116
+ MentionComponent.prototype.custom = function () {
117
+ this.updated();
118
+ };
119
+ MentionComponent.prototype.addItem = function (items, itemIndex) {
120
+ return this.ej2Instances.addItem(items, itemIndex);
121
+ };
122
+ MentionComponent.prototype.getDataByValue = function (value) {
123
+ return this.ej2Instances.getDataByValue(value);
124
+ };
125
+ MentionComponent.prototype.getItems = function () {
126
+ return this.ej2Instances.getItems();
127
+ };
128
+ MentionComponent.prototype.hidePopup = function (e) {
129
+ return this.ej2Instances.hidePopup(e);
130
+ };
131
+ MentionComponent.prototype.hideSpinner = function () {
132
+ return this.ej2Instances.hideSpinner();
133
+ };
134
+ MentionComponent.prototype.search = function (text, positionX, positionY) {
135
+ return this.ej2Instances.search(text, positionX, positionY);
136
+ };
137
+ MentionComponent.prototype.showPopup = function () {
138
+ return this.ej2Instances.showPopup();
139
+ };
140
+ MentionComponent = __decorate([
141
+ EJComponentDecorator({
142
+ props: properties
143
+ }, isExecute)
144
+ ,Options({
145
+ props: props,
146
+ watch: watch,
147
+ emits: emitProbs,
148
+ provide: function provide() {
149
+ return {
150
+ custom: this.custom
151
+ };
152
+ }
153
+ })
154
+ ], MentionComponent);
155
+ return MentionComponent;
156
+ }(ComponentBase));
157
+ export { MentionComponent };
158
+ export var MentionPlugin = {
159
+ name: 'ejs-mention',
160
+ install: function (Vue) {
161
+ Vue.component(MentionPlugin.name, MentionComponent);
162
+ }
163
+ };
@@ -5,7 +5,6 @@ export declare const testProp: any;
5
5
  export declare const props: any;
6
6
  export declare const watch: any;
7
7
  export declare const emitProbs: any;
8
- export declare const isExecute: any;
9
8
  /**
10
9
  * MultiSelect component allows the user to select a value from the predefined list of values.
11
10
  * ```html
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
+ import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
22
22
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
23
23
  import { MultiSelect } from '@syncfusion/ej2-dropdowns';
24
24
  import { Options } from 'vue-class-component';
@@ -33,7 +33,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
33
  var props_1 = modelProps_1[_i];
34
34
  emitProbs.push('update:' + props_1);
35
35
  }
36
- export var isExecute = gh ? false : true;
37
36
  /**
38
37
  * MultiSelect component allows the user to select a value from the predefined list of values.
39
38
  * ```html
@@ -149,10 +148,10 @@ var MultiSelectComponent = /** @class */ (function (_super) {
149
148
  }
150
149
  };
151
150
  MultiSelectComponent.prototype.render = function (createElement) {
152
- var h = gh || createElement;
151
+ var h = !isExecute ? gh : createElement;
153
152
  var slots = null;
154
153
  if (!isNullOrUndefined(this.$slots.default)) {
155
- slots = gh ? this.$slots.default() : this.$slots.default;
154
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
156
155
  }
157
156
  return h('input', slots);
158
157
  };
@@ -101,4 +101,6 @@
101
101
 
102
102
  .e-bigger.e-small .e-popup.e-ddl .e-dropdownbase {
103
103
  min-height: 34px;
104
- }
104
+ }
105
+
106
+ /* stylelint-disable-line no-empty-source */
@@ -101,4 +101,6 @@
101
101
 
102
102
  .e-bigger.e-small .e-popup.e-ddl .e-dropdownbase {
103
103
  min-height: 34px;
104
- }
104
+ }
105
+
106
+ /* stylelint-disable-line no-empty-source */
@@ -143,4 +143,6 @@
143
143
 
144
144
  .e-bigger .e-input-group.e-ddl .e-control.e-autocomplete ~ .e-ddl-icon {
145
145
  font-size: 10px;
146
- }
146
+ }
147
+
148
+ /* stylelint-disable-line no-empty-source */
@@ -142,4 +142,6 @@
142
142
 
143
143
  .e-bigger.e-small .e-popup.e-ddl .e-dropdownbase {
144
144
  min-height: 34px;
145
- }
145
+ }
146
+
147
+ /* stylelint-disable-line no-empty-source */
@@ -142,4 +142,6 @@
142
142
 
143
143
  .e-bigger.e-small .e-popup.e-ddl .e-dropdownbase {
144
144
  min-height: 34px;
145
- }
145
+ }
146
+
147
+ /* stylelint-disable-line no-empty-source */
@@ -77,4 +77,6 @@
77
77
  .e-ddl.e-popup .e-bigger.e-small .e-input-group input,
78
78
  .e-ddl.e-popup .e-bigger.e-small .e-input-group input.e-input {
79
79
  height: 34px;
80
- }
80
+ }
81
+
82
+ /* stylelint-disable-line no-empty-source */
@@ -70,4 +70,6 @@
70
70
 
71
71
  .e-bigger.e-small .e-ddl.e-popup .e-input-group input, .e-bigger.e-small .e-ddl.e-popup .e-input-group input.e-input {
72
72
  height: 34px;
73
- }
73
+ }
74
+
75
+ /* stylelint-disable-line no-empty-source */
@@ -122,4 +122,6 @@
122
122
 
123
123
  .e-bigger.e-small .e-popup.e-ddl .e-dropdownbase {
124
124
  min-height: 34px;
125
- }
125
+ }
126
+
127
+ /* stylelint-disable-line no-empty-source */
@@ -122,4 +122,6 @@
122
122
 
123
123
  .e-bigger.e-small .e-popup.e-ddl .e-dropdownbase {
124
124
  min-height: 34px;
125
- }
125
+ }
126
+
127
+ /* stylelint-disable-line no-empty-source */
@@ -74,4 +74,6 @@
74
74
  }
75
75
  .e-bigger.e-small .e-ddl.e-popup .e-input-group input {
76
76
  height: 34px;
77
- }
77
+ }
78
+
79
+ /* stylelint-disable-line no-empty-source */
@@ -74,4 +74,6 @@
74
74
  }
75
75
  .e-bigger.e-small .e-ddl.e-popup .e-input-group input {
76
76
  height: 34px;
77
- }
77
+ }
78
+
79
+ /* stylelint-disable-line no-empty-source */
@@ -103,4 +103,6 @@
103
103
  .e-small.e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-input-focus .e-input-filter,
104
104
  .e-popup.e-ddl:not(.e-ddl-device) .e-filter-parent .e-input-group.e-small.e-input-focus .e-input-filter {
105
105
  padding: 5px 5px 5px 12px;
106
- }
106
+ }
107
+
108
+ /* stylelint-disable-line no-empty-source */
@@ -128,4 +128,6 @@
128
128
 
129
129
  .e-ddl.e-popup.e-outline .e-filter-parent {
130
130
  padding: 4px 8px;
131
- }
131
+ }
132
+
133
+ /* stylelint-disable-line no-empty-source */
@@ -91,4 +91,6 @@
91
91
 
92
92
  .e-ddl.e-popup.e-outline .e-filter-parent {
93
93
  padding: 4px 8px;
94
- }
94
+ }
95
+
96
+ /* stylelint-disable-line no-empty-source */