@syncfusion/ej2-vue-dropdowns 20.2.50 → 20.3.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.
- package/CHANGELOG.md +10 -53
- package/dist/ej2-vue-dropdowns.umd.min.js +2 -2
- package/dist/ej2-vue-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-dropdowns.es2015.js +191 -46
- package/dist/es6/ej2-vue-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-dropdowns.es5.js +200 -46
- package/dist/es6/ej2-vue-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-vue-dropdowns.min.js +2 -2
- package/mention.d.ts +4 -0
- package/mention.js +4 -0
- package/package.json +8 -8
- package/src/auto-complete/autocomplete.component.d.ts +0 -1
- package/src/auto-complete/autocomplete.component.js +3 -4
- package/src/combo-box/combobox.component.d.ts +0 -1
- package/src/combo-box/combobox.component.js +3 -4
- package/src/drop-down-list/dropdownlist.component.d.ts +0 -1
- package/src/drop-down-list/dropdownlist.component.js +3 -4
- package/src/drop-down-tree/dropdowntree.component.d.ts +0 -1
- package/src/drop-down-tree/dropdowntree.component.js +3 -4
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/list-box/listbox.component.d.ts +0 -1
- package/src/list-box/listbox.component.js +3 -4
- package/src/mention/index.d.ts +1 -0
- package/src/mention/index.js +1 -0
- package/src/mention/mention.component.d.ts +42 -0
- package/src/mention/mention.component.js +163 -0
- package/src/multi-select/multiselect.component.d.ts +0 -1
- package/src/multi-select/multiselect.component.js +3 -4
- package/styles/auto-complete/bootstrap-dark.css +3 -1
- package/styles/auto-complete/bootstrap.css +3 -1
- package/styles/auto-complete/bootstrap4.css +3 -1
- package/styles/auto-complete/bootstrap5-dark.css +3 -1
- package/styles/auto-complete/bootstrap5.css +3 -1
- package/styles/auto-complete/fabric-dark.css +3 -1
- package/styles/auto-complete/fabric.css +3 -1
- package/styles/auto-complete/fluent-dark.css +3 -1
- package/styles/auto-complete/fluent.css +3 -1
- package/styles/auto-complete/highcontrast-light.css +3 -1
- package/styles/auto-complete/highcontrast.css +3 -1
- package/styles/auto-complete/material-dark.css +3 -1
- package/styles/auto-complete/material.css +3 -1
- package/styles/auto-complete/tailwind-dark.css +3 -1
- package/styles/auto-complete/tailwind.css +3 -1
- package/styles/bootstrap-dark.css +94 -42
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +94 -42
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +95 -42
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +101 -44
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +101 -44
- package/styles/bootstrap5.scss +1 -0
- package/styles/combo-box/bootstrap-dark.css +3 -1
- package/styles/combo-box/bootstrap.css +3 -1
- package/styles/combo-box/bootstrap4.css +3 -1
- package/styles/combo-box/bootstrap5-dark.css +3 -1
- package/styles/combo-box/bootstrap5.css +3 -1
- package/styles/combo-box/fabric-dark.css +3 -1
- package/styles/combo-box/fabric.css +3 -1
- package/styles/combo-box/fluent-dark.css +3 -1
- package/styles/combo-box/fluent.css +3 -1
- package/styles/combo-box/highcontrast-light.css +3 -1
- package/styles/combo-box/highcontrast.css +3 -1
- package/styles/combo-box/material-dark.css +3 -1
- package/styles/combo-box/material.css +3 -1
- package/styles/combo-box/tailwind-dark.css +3 -1
- package/styles/combo-box/tailwind.css +3 -1
- package/styles/drop-down-base/bootstrap-dark.css +42 -1
- package/styles/drop-down-base/bootstrap.css +42 -1
- package/styles/drop-down-base/bootstrap4.css +42 -1
- package/styles/drop-down-base/bootstrap5-dark.css +42 -1
- package/styles/drop-down-base/bootstrap5.css +42 -1
- package/styles/drop-down-base/fabric-dark.css +42 -1
- package/styles/drop-down-base/fabric.css +42 -1
- package/styles/drop-down-base/fluent-dark.css +42 -1
- package/styles/drop-down-base/fluent.css +42 -1
- package/styles/drop-down-base/highcontrast-light.css +42 -1
- package/styles/drop-down-base/highcontrast.css +42 -1
- package/styles/drop-down-base/material-dark.css +42 -1
- package/styles/drop-down-base/material.css +42 -1
- package/styles/drop-down-base/tailwind-dark.css +42 -1
- package/styles/drop-down-base/tailwind.css +42 -1
- package/styles/drop-down-list/bootstrap-dark.css +5 -0
- package/styles/drop-down-list/bootstrap.css +5 -0
- package/styles/drop-down-list/bootstrap4.css +5 -0
- package/styles/drop-down-list/bootstrap5-dark.css +6 -0
- package/styles/drop-down-list/bootstrap5.css +6 -0
- package/styles/drop-down-list/fabric-dark.css +5 -0
- package/styles/drop-down-list/fabric.css +5 -0
- package/styles/drop-down-list/fluent-dark.css +6 -0
- package/styles/drop-down-list/fluent.css +6 -0
- package/styles/drop-down-list/highcontrast-light.css +5 -0
- package/styles/drop-down-list/highcontrast.css +5 -0
- package/styles/drop-down-list/material-dark.css +5 -0
- package/styles/drop-down-list/material.css +5 -0
- package/styles/drop-down-list/tailwind-dark.css +6 -0
- package/styles/drop-down-list/tailwind.css +6 -0
- package/styles/drop-down-tree/bootstrap-dark.css +4 -0
- package/styles/drop-down-tree/bootstrap.css +4 -0
- package/styles/drop-down-tree/bootstrap4.css +4 -0
- package/styles/drop-down-tree/bootstrap5-dark.css +5 -0
- package/styles/drop-down-tree/bootstrap5.css +5 -0
- package/styles/drop-down-tree/fabric-dark.css +4 -0
- package/styles/drop-down-tree/fabric.css +4 -0
- package/styles/drop-down-tree/fluent-dark.css +5 -0
- package/styles/drop-down-tree/fluent.css +5 -0
- package/styles/drop-down-tree/highcontrast-light.css +4 -0
- package/styles/drop-down-tree/highcontrast.css +4 -0
- package/styles/drop-down-tree/material-dark.css +4 -0
- package/styles/drop-down-tree/material.css +4 -0
- package/styles/drop-down-tree/tailwind-dark.css +5 -0
- package/styles/drop-down-tree/tailwind.css +5 -0
- package/styles/fabric-dark.css +94 -42
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +94 -42
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +101 -44
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +101 -44
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +97 -42
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +97 -42
- package/styles/highcontrast.scss +1 -0
- package/styles/list-box/bootstrap-dark.css +12 -33
- package/styles/list-box/bootstrap.css +14 -35
- package/styles/list-box/bootstrap4.css +14 -35
- package/styles/list-box/bootstrap5-dark.css +15 -36
- package/styles/list-box/bootstrap5.css +15 -36
- package/styles/list-box/fabric-dark.css +12 -33
- package/styles/list-box/fabric.css +14 -35
- package/styles/list-box/fluent-dark.css +15 -36
- package/styles/list-box/fluent.css +15 -36
- package/styles/list-box/highcontrast-light.css +12 -33
- package/styles/list-box/highcontrast.css +14 -35
- package/styles/list-box/material-dark.css +12 -33
- package/styles/list-box/material.css +14 -35
- package/styles/list-box/tailwind-dark.css +15 -36
- package/styles/list-box/tailwind.css +15 -36
- package/styles/material-dark.css +94 -42
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +94 -42
- package/styles/material.scss +1 -0
- package/styles/mention/bootstrap-dark.css +29 -0
- package/styles/mention/bootstrap-dark.scss +1 -0
- package/styles/mention/bootstrap.css +29 -0
- package/styles/mention/bootstrap.scss +1 -0
- package/styles/mention/bootstrap4.css +47 -0
- package/styles/mention/bootstrap4.scss +1 -0
- package/styles/mention/bootstrap5-dark.css +58 -0
- package/styles/mention/bootstrap5-dark.scss +1 -0
- package/styles/mention/bootstrap5.css +58 -0
- package/styles/mention/bootstrap5.scss +1 -0
- package/styles/mention/fabric-dark.css +29 -0
- package/styles/mention/fabric-dark.scss +1 -0
- package/styles/mention/fabric.css +29 -0
- package/styles/mention/fabric.scss +1 -0
- package/styles/mention/fluent-dark.css +58 -0
- package/styles/mention/fluent-dark.scss +1 -0
- package/styles/mention/fluent.css +58 -0
- package/styles/mention/fluent.scss +1 -0
- package/styles/mention/highcontrast-light.css +43 -0
- package/styles/mention/highcontrast-light.scss +1 -0
- package/styles/mention/highcontrast.css +43 -0
- package/styles/mention/highcontrast.scss +1 -0
- package/styles/mention/material-dark.css +29 -0
- package/styles/mention/material-dark.scss +1 -0
- package/styles/mention/material.css +29 -0
- package/styles/mention/material.scss +1 -0
- package/styles/mention/tailwind-dark.css +68 -0
- package/styles/mention/tailwind-dark.scss +1 -0
- package/styles/mention/tailwind.css +68 -0
- package/styles/mention/tailwind.scss +1 -0
- package/styles/multi-select/bootstrap-dark.css +10 -6
- package/styles/multi-select/bootstrap.css +10 -6
- package/styles/multi-select/bootstrap4.css +10 -6
- package/styles/multi-select/bootstrap5-dark.css +11 -6
- package/styles/multi-select/bootstrap5.css +11 -6
- package/styles/multi-select/fabric-dark.css +10 -6
- package/styles/multi-select/fabric.css +10 -6
- package/styles/multi-select/fluent-dark.css +11 -6
- package/styles/multi-select/fluent.css +11 -6
- package/styles/multi-select/highcontrast-light.css +13 -6
- package/styles/multi-select/highcontrast.css +13 -6
- package/styles/multi-select/material-dark.css +10 -6
- package/styles/multi-select/material.css +10 -6
- package/styles/multi-select/tailwind-dark.css +11 -6
- package/styles/multi-select/tailwind.css +11 -6
- package/styles/tailwind-dark.css +102 -44
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +102 -44
- package/styles/tailwind.scss +1 -0
package/mention.d.ts
ADDED
package/mention.js
ADDED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-dropdowns@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-dropdowns@18.51.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-dzeNzOzUTdK7q05akbyvq9yIXvLicL8cijHbbyca3G1hMrvQ9TZaaQYFTNlywsxF5R3Z/qtAxV/UA/1yxDcLgg==",
|
|
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-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-dropdowns/-/ej2-vue-dropdowns-18.51.0.tgz",
|
|
23
|
+
"_shasum": "9c9640b70609eaac3fa829d42c65d3e12285fc9f",
|
|
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.
|
|
35
|
-
"@syncfusion/ej2-dropdowns": "20.
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~20.
|
|
34
|
+
"@syncfusion/ej2-base": "~20.3.47",
|
|
35
|
+
"@syncfusion/ej2-dropdowns": "20.3.47",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~20.3.47"
|
|
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.
|
|
73
|
+
"version": "20.3.47",
|
|
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
|
|
151
|
+
var h = !isExecute ? gh : createElement;
|
|
153
152
|
var slots = null;
|
|
154
153
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
-
slots =
|
|
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
|
|
151
|
+
var h = !isExecute ? gh : createElement;
|
|
153
152
|
var slots = null;
|
|
154
153
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
-
slots =
|
|
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
|
|
151
|
+
var h = !isExecute ? gh : createElement;
|
|
153
152
|
var slots = null;
|
|
154
153
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
-
slots =
|
|
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
|
|
151
|
+
var h = !isExecute ? gh : createElement;
|
|
153
152
|
var slots = null;
|
|
154
153
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
-
slots =
|
|
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
|
|
151
|
+
var h = !isExecute ? gh : createElement;
|
|
153
152
|
var slots = null;
|
|
154
153
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
-
slots =
|
|
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
|
|
151
|
+
var h = !isExecute ? gh : createElement;
|
|
153
152
|
var slots = null;
|
|
154
153
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
155
|
-
slots =
|
|
154
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
156
155
|
}
|
|
157
156
|
return h('input', slots);
|
|
158
157
|
};
|
|
@@ -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 */
|