@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AutoComplete, ComboBox, DropDownList, DropDownTree, ListBox, MultiSelect } from '@syncfusion/ej2-dropdowns';
|
|
1
|
+
import { AutoComplete, ComboBox, DropDownList, DropDownTree, ListBox, Mention, MultiSelect } from '@syncfusion/ej2-dropdowns';
|
|
2
2
|
import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
3
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
3
|
+
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
4
4
|
|
|
5
5
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6
6
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -19,7 +19,6 @@ emitProbs.push('modelchanged', 'update:modelValue');
|
|
|
19
19
|
for (let props of modelProps) {
|
|
20
20
|
emitProbs.push('update:' + props);
|
|
21
21
|
}
|
|
22
|
-
const isExecute = gh ? false : true;
|
|
23
22
|
/**
|
|
24
23
|
* DropDownList contains a list of predefined values from which the user can choose
|
|
25
24
|
* ```html
|
|
@@ -141,10 +140,10 @@ class DropDownListComponent extends ComponentBase {
|
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
render(createElement) {
|
|
144
|
-
let h = gh
|
|
143
|
+
let h = !isExecute ? gh : createElement;
|
|
145
144
|
let slots = null;
|
|
146
145
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
147
|
-
slots =
|
|
146
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
148
147
|
}
|
|
149
148
|
return h('input', slots);
|
|
150
149
|
}
|
|
@@ -227,7 +226,6 @@ emitProbs$1.push('modelchanged', 'update:modelValue');
|
|
|
227
226
|
for (let props of modelProps$1) {
|
|
228
227
|
emitProbs$1.push('update:' + props);
|
|
229
228
|
}
|
|
230
|
-
const isExecute$1 = gh ? false : true;
|
|
231
229
|
/**
|
|
232
230
|
* ComboBox component allows the user to type a value or choose an option from the list of predefined options available
|
|
233
231
|
* ```html
|
|
@@ -254,7 +252,7 @@ class ComboBoxComponent extends ComponentBase {
|
|
|
254
252
|
this.hasInjectedModules = false;
|
|
255
253
|
this.tagMapper = {};
|
|
256
254
|
this.tagNameMapper = {};
|
|
257
|
-
this.isVue3 = !isExecute
|
|
255
|
+
this.isVue3 = !isExecute;
|
|
258
256
|
this.ej2Instances = new ComboBox({});
|
|
259
257
|
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
260
258
|
this.ej2Instances.trigger = this.trigger;
|
|
@@ -310,14 +308,14 @@ class ComboBoxComponent extends ComponentBase {
|
|
|
310
308
|
}
|
|
311
309
|
}
|
|
312
310
|
trigger(eventName, eventProp, successHandler) {
|
|
313
|
-
if (!isExecute
|
|
311
|
+
if (!isExecute) {
|
|
314
312
|
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
315
313
|
}
|
|
316
314
|
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
317
315
|
let key = this.models.toString().match(/checked|value/) || [];
|
|
318
316
|
let propKey = key[0];
|
|
319
317
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
320
|
-
if (!isExecute
|
|
318
|
+
if (!isExecute) {
|
|
321
319
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
322
320
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
323
321
|
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
@@ -334,7 +332,7 @@ class ComboBoxComponent extends ComponentBase {
|
|
|
334
332
|
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
335
333
|
let propKey = key[0];
|
|
336
334
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
337
|
-
if (!isExecute
|
|
335
|
+
if (!isExecute) {
|
|
338
336
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
339
337
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
340
338
|
}
|
|
@@ -349,10 +347,10 @@ class ComboBoxComponent extends ComponentBase {
|
|
|
349
347
|
}
|
|
350
348
|
}
|
|
351
349
|
render(createElement) {
|
|
352
|
-
let h = gh
|
|
350
|
+
let h = !isExecute ? gh : createElement;
|
|
353
351
|
let slots = null;
|
|
354
352
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
355
|
-
slots =
|
|
353
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
356
354
|
}
|
|
357
355
|
return h('input', slots);
|
|
358
356
|
}
|
|
@@ -399,7 +397,7 @@ ComboBoxComponent = __decorate$1([
|
|
|
399
397
|
model: {
|
|
400
398
|
event: 'modelchanged'
|
|
401
399
|
}
|
|
402
|
-
}, isExecute
|
|
400
|
+
}, isExecute)
|
|
403
401
|
/* Start Options({
|
|
404
402
|
props: props,
|
|
405
403
|
watch: watch,
|
|
@@ -435,7 +433,6 @@ emitProbs$2.push('modelchanged', 'update:modelValue');
|
|
|
435
433
|
for (let props of modelProps$2) {
|
|
436
434
|
emitProbs$2.push('update:' + props);
|
|
437
435
|
}
|
|
438
|
-
const isExecute$2 = gh ? false : true;
|
|
439
436
|
/**
|
|
440
437
|
* The AutoComplete component provides all the matched suggestion list on typing the input from which the user can select one.
|
|
441
438
|
* ```html
|
|
@@ -462,7 +459,7 @@ class AutoCompleteComponent extends ComponentBase {
|
|
|
462
459
|
this.hasInjectedModules = false;
|
|
463
460
|
this.tagMapper = {};
|
|
464
461
|
this.tagNameMapper = {};
|
|
465
|
-
this.isVue3 = !isExecute
|
|
462
|
+
this.isVue3 = !isExecute;
|
|
466
463
|
this.ej2Instances = new AutoComplete({});
|
|
467
464
|
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
468
465
|
this.ej2Instances.trigger = this.trigger;
|
|
@@ -518,14 +515,14 @@ class AutoCompleteComponent extends ComponentBase {
|
|
|
518
515
|
}
|
|
519
516
|
}
|
|
520
517
|
trigger(eventName, eventProp, successHandler) {
|
|
521
|
-
if (!isExecute
|
|
518
|
+
if (!isExecute) {
|
|
522
519
|
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
523
520
|
}
|
|
524
521
|
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
525
522
|
let key = this.models.toString().match(/checked|value/) || [];
|
|
526
523
|
let propKey = key[0];
|
|
527
524
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
528
|
-
if (!isExecute
|
|
525
|
+
if (!isExecute) {
|
|
529
526
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
530
527
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
531
528
|
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
@@ -542,7 +539,7 @@ class AutoCompleteComponent extends ComponentBase {
|
|
|
542
539
|
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
543
540
|
let propKey = key[0];
|
|
544
541
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
545
|
-
if (!isExecute
|
|
542
|
+
if (!isExecute) {
|
|
546
543
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
547
544
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
548
545
|
}
|
|
@@ -557,10 +554,10 @@ class AutoCompleteComponent extends ComponentBase {
|
|
|
557
554
|
}
|
|
558
555
|
}
|
|
559
556
|
render(createElement) {
|
|
560
|
-
let h = gh
|
|
557
|
+
let h = !isExecute ? gh : createElement;
|
|
561
558
|
let slots = null;
|
|
562
559
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
563
|
-
slots =
|
|
560
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
564
561
|
}
|
|
565
562
|
return h('input', slots);
|
|
566
563
|
}
|
|
@@ -607,7 +604,7 @@ AutoCompleteComponent = __decorate$2([
|
|
|
607
604
|
model: {
|
|
608
605
|
event: 'modelchanged'
|
|
609
606
|
}
|
|
610
|
-
}, isExecute
|
|
607
|
+
}, isExecute)
|
|
611
608
|
/* Start Options({
|
|
612
609
|
props: props,
|
|
613
610
|
watch: watch,
|
|
@@ -643,7 +640,6 @@ emitProbs$3.push('modelchanged', 'update:modelValue');
|
|
|
643
640
|
for (let props of modelProps$3) {
|
|
644
641
|
emitProbs$3.push('update:' + props);
|
|
645
642
|
}
|
|
646
|
-
const isExecute$3 = gh ? false : true;
|
|
647
643
|
/**
|
|
648
644
|
* MultiSelect component allows the user to select a value from the predefined list of values.
|
|
649
645
|
* ```html
|
|
@@ -670,7 +666,7 @@ class MultiSelectComponent extends ComponentBase {
|
|
|
670
666
|
this.hasInjectedModules = true;
|
|
671
667
|
this.tagMapper = {};
|
|
672
668
|
this.tagNameMapper = {};
|
|
673
|
-
this.isVue3 = !isExecute
|
|
669
|
+
this.isVue3 = !isExecute;
|
|
674
670
|
this.ej2Instances = new MultiSelect({});
|
|
675
671
|
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
676
672
|
this.ej2Instances.trigger = this.trigger;
|
|
@@ -726,14 +722,14 @@ class MultiSelectComponent extends ComponentBase {
|
|
|
726
722
|
}
|
|
727
723
|
}
|
|
728
724
|
trigger(eventName, eventProp, successHandler) {
|
|
729
|
-
if (!isExecute
|
|
725
|
+
if (!isExecute) {
|
|
730
726
|
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
731
727
|
}
|
|
732
728
|
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
733
729
|
let key = this.models.toString().match(/checked|value/) || [];
|
|
734
730
|
let propKey = key[0];
|
|
735
731
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
736
|
-
if (!isExecute
|
|
732
|
+
if (!isExecute) {
|
|
737
733
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
738
734
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
739
735
|
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
@@ -750,7 +746,7 @@ class MultiSelectComponent extends ComponentBase {
|
|
|
750
746
|
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
751
747
|
let propKey = key[0];
|
|
752
748
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
753
|
-
if (!isExecute
|
|
749
|
+
if (!isExecute) {
|
|
754
750
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
755
751
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
756
752
|
}
|
|
@@ -765,10 +761,10 @@ class MultiSelectComponent extends ComponentBase {
|
|
|
765
761
|
}
|
|
766
762
|
}
|
|
767
763
|
render(createElement) {
|
|
768
|
-
let h = gh
|
|
764
|
+
let h = !isExecute ? gh : createElement;
|
|
769
765
|
let slots = null;
|
|
770
766
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
771
|
-
slots =
|
|
767
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
772
768
|
}
|
|
773
769
|
return h('input', slots);
|
|
774
770
|
}
|
|
@@ -821,7 +817,7 @@ MultiSelectComponent = __decorate$3([
|
|
|
821
817
|
model: {
|
|
822
818
|
event: 'modelchanged'
|
|
823
819
|
}
|
|
824
|
-
}, isExecute
|
|
820
|
+
}, isExecute)
|
|
825
821
|
/* Start Options({
|
|
826
822
|
props: props,
|
|
827
823
|
watch: watch,
|
|
@@ -857,7 +853,6 @@ emitProbs$4.push('modelchanged', 'update:modelValue');
|
|
|
857
853
|
for (let props of modelProps$4) {
|
|
858
854
|
emitProbs$4.push('update:' + props);
|
|
859
855
|
}
|
|
860
|
-
const isExecute$4 = gh ? false : true;
|
|
861
856
|
/**
|
|
862
857
|
* ListBox component allows the user to select values from the predefined list of values.
|
|
863
858
|
* ```html
|
|
@@ -884,7 +879,7 @@ class ListBoxComponent extends ComponentBase {
|
|
|
884
879
|
this.hasInjectedModules = true;
|
|
885
880
|
this.tagMapper = {};
|
|
886
881
|
this.tagNameMapper = {};
|
|
887
|
-
this.isVue3 = !isExecute
|
|
882
|
+
this.isVue3 = !isExecute;
|
|
888
883
|
this.ej2Instances = new ListBox({});
|
|
889
884
|
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
890
885
|
this.ej2Instances.trigger = this.trigger;
|
|
@@ -940,14 +935,14 @@ class ListBoxComponent extends ComponentBase {
|
|
|
940
935
|
}
|
|
941
936
|
}
|
|
942
937
|
trigger(eventName, eventProp, successHandler) {
|
|
943
|
-
if (!isExecute
|
|
938
|
+
if (!isExecute) {
|
|
944
939
|
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
945
940
|
}
|
|
946
941
|
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
947
942
|
let key = this.models.toString().match(/checked|value/) || [];
|
|
948
943
|
let propKey = key[0];
|
|
949
944
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
950
|
-
if (!isExecute
|
|
945
|
+
if (!isExecute) {
|
|
951
946
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
952
947
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
953
948
|
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
@@ -964,7 +959,7 @@ class ListBoxComponent extends ComponentBase {
|
|
|
964
959
|
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
965
960
|
let propKey = key[0];
|
|
966
961
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
967
|
-
if (!isExecute
|
|
962
|
+
if (!isExecute) {
|
|
968
963
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
969
964
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
970
965
|
}
|
|
@@ -979,10 +974,10 @@ class ListBoxComponent extends ComponentBase {
|
|
|
979
974
|
}
|
|
980
975
|
}
|
|
981
976
|
render(createElement) {
|
|
982
|
-
let h = gh
|
|
977
|
+
let h = !isExecute ? gh : createElement;
|
|
983
978
|
let slots = null;
|
|
984
979
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
985
|
-
slots =
|
|
980
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
986
981
|
}
|
|
987
982
|
return h('input', slots);
|
|
988
983
|
}
|
|
@@ -1053,7 +1048,7 @@ ListBoxComponent = __decorate$4([
|
|
|
1053
1048
|
model: {
|
|
1054
1049
|
event: 'modelchanged'
|
|
1055
1050
|
}
|
|
1056
|
-
}, isExecute
|
|
1051
|
+
}, isExecute)
|
|
1057
1052
|
/* Start Options({
|
|
1058
1053
|
props: props,
|
|
1059
1054
|
watch: watch,
|
|
@@ -1089,7 +1084,6 @@ emitProbs$5.push('modelchanged', 'update:modelValue');
|
|
|
1089
1084
|
for (let props of modelProps$5) {
|
|
1090
1085
|
emitProbs$5.push('update:' + props);
|
|
1091
1086
|
}
|
|
1092
|
-
const isExecute$5 = gh ? false : true;
|
|
1093
1087
|
/**
|
|
1094
1088
|
* The DropDownTree component contains a list of predefined values from which you can choose a single or multiple values.
|
|
1095
1089
|
* ```html
|
|
@@ -1116,7 +1110,7 @@ class DropDownTreeComponent extends ComponentBase {
|
|
|
1116
1110
|
this.hasInjectedModules = false;
|
|
1117
1111
|
this.tagMapper = {};
|
|
1118
1112
|
this.tagNameMapper = {};
|
|
1119
|
-
this.isVue3 = !isExecute
|
|
1113
|
+
this.isVue3 = !isExecute;
|
|
1120
1114
|
this.ej2Instances = new DropDownTree({});
|
|
1121
1115
|
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
1122
1116
|
this.ej2Instances.trigger = this.trigger;
|
|
@@ -1172,14 +1166,14 @@ class DropDownTreeComponent extends ComponentBase {
|
|
|
1172
1166
|
}
|
|
1173
1167
|
}
|
|
1174
1168
|
trigger(eventName, eventProp, successHandler) {
|
|
1175
|
-
if (!isExecute
|
|
1169
|
+
if (!isExecute) {
|
|
1176
1170
|
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1177
1171
|
}
|
|
1178
1172
|
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1179
1173
|
let key = this.models.toString().match(/checked|value/) || [];
|
|
1180
1174
|
let propKey = key[0];
|
|
1181
1175
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1182
|
-
if (!isExecute
|
|
1176
|
+
if (!isExecute) {
|
|
1183
1177
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1184
1178
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1185
1179
|
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
@@ -1196,7 +1190,7 @@ class DropDownTreeComponent extends ComponentBase {
|
|
|
1196
1190
|
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1197
1191
|
let propKey = key[0];
|
|
1198
1192
|
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1199
|
-
if (!isExecute
|
|
1193
|
+
if (!isExecute) {
|
|
1200
1194
|
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1201
1195
|
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1202
1196
|
}
|
|
@@ -1211,10 +1205,10 @@ class DropDownTreeComponent extends ComponentBase {
|
|
|
1211
1205
|
}
|
|
1212
1206
|
}
|
|
1213
1207
|
render(createElement) {
|
|
1214
|
-
let h = gh
|
|
1208
|
+
let h = !isExecute ? gh : createElement;
|
|
1215
1209
|
let slots = null;
|
|
1216
1210
|
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1217
|
-
slots =
|
|
1211
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1218
1212
|
}
|
|
1219
1213
|
return h('input', slots);
|
|
1220
1214
|
}
|
|
@@ -1249,7 +1243,7 @@ DropDownTreeComponent = __decorate$5([
|
|
|
1249
1243
|
model: {
|
|
1250
1244
|
event: 'modelchanged'
|
|
1251
1245
|
}
|
|
1252
|
-
}, isExecute
|
|
1246
|
+
}, isExecute)
|
|
1253
1247
|
/* Start Options({
|
|
1254
1248
|
props: props,
|
|
1255
1249
|
watch: watch,
|
|
@@ -1268,6 +1262,157 @@ const DropDownTreePlugin = {
|
|
|
1268
1262
|
}
|
|
1269
1263
|
};
|
|
1270
1264
|
|
|
1271
|
-
|
|
1265
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1266
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1267
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1268
|
+
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;
|
|
1269
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1270
|
+
};
|
|
1271
|
+
// {{VueImport}}
|
|
1272
|
+
const properties$6 = ['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'];
|
|
1273
|
+
const modelProps$6 = [];
|
|
1274
|
+
const testProp$6 = getProps({ props: properties$6 });
|
|
1275
|
+
const props$6 = testProp$6[0];
|
|
1276
|
+
const watch$6 = testProp$6[1];
|
|
1277
|
+
const emitProbs$6 = Object.keys(watch$6);
|
|
1278
|
+
emitProbs$6.push('modelchanged', 'update:modelValue');
|
|
1279
|
+
for (let props of modelProps$6) {
|
|
1280
|
+
emitProbs$6.push('update:' + props);
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* The Mention contains a list of predefined values from which the user can choose
|
|
1284
|
+
* ```html
|
|
1285
|
+
* <ejs-mention :dataSource='data'></ejs-dropdownlist>
|
|
1286
|
+
* ```
|
|
1287
|
+
*/
|
|
1288
|
+
let MentionComponent =
|
|
1289
|
+
/* Start Options({
|
|
1290
|
+
props: props,
|
|
1291
|
+
watch: watch,
|
|
1292
|
+
emits: emitProbs,
|
|
1293
|
+
provide: function provide() {
|
|
1294
|
+
return {
|
|
1295
|
+
custom: this.custom
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
}) End */
|
|
1299
|
+
class MentionComponent extends ComponentBase {
|
|
1300
|
+
constructor() {
|
|
1301
|
+
super(arguments);
|
|
1302
|
+
this.propKeys = properties$6;
|
|
1303
|
+
this.models = modelProps$6;
|
|
1304
|
+
this.hasChildDirective = false;
|
|
1305
|
+
this.hasInjectedModules = false;
|
|
1306
|
+
this.tagMapper = {};
|
|
1307
|
+
this.tagNameMapper = {};
|
|
1308
|
+
this.isVue3 = !isExecute;
|
|
1309
|
+
this.ej2Instances = new Mention({});
|
|
1310
|
+
this.bindProperties();
|
|
1311
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1312
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1313
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1314
|
+
this.updated = this.updated;
|
|
1315
|
+
}
|
|
1316
|
+
clearTemplate(templateNames) {
|
|
1317
|
+
if (!templateNames) {
|
|
1318
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1319
|
+
}
|
|
1320
|
+
if (templateNames.length && this.templateCollection) {
|
|
1321
|
+
for (let tempName of templateNames) {
|
|
1322
|
+
let elementCollection = this.templateCollection[tempName];
|
|
1323
|
+
if (elementCollection && elementCollection.length) {
|
|
1324
|
+
for (let ele of elementCollection) {
|
|
1325
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
1326
|
+
if (destroy) {
|
|
1327
|
+
ele.__vue__.$destroy();
|
|
1328
|
+
}
|
|
1329
|
+
if (ele.innerHTML) {
|
|
1330
|
+
ele.innerHTML = '';
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
delete this.templateCollection[tempName];
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
setProperties(prop, muteOnChange) {
|
|
1339
|
+
if (this.isVue3) {
|
|
1340
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1341
|
+
}
|
|
1342
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1343
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1344
|
+
}
|
|
1345
|
+
if (prop && this.models && this.models.length) {
|
|
1346
|
+
Object.keys(prop).map((key) => {
|
|
1347
|
+
this.models.map((model) => {
|
|
1348
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1349
|
+
if (this.isVue3) {
|
|
1350
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1351
|
+
}
|
|
1352
|
+
else {
|
|
1353
|
+
this.$emit('update:' + key, prop[key]);
|
|
1354
|
+
this.$emit('modelchanged', prop[key]);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
render(createElement) {
|
|
1362
|
+
let h = !isExecute ? gh : createElement;
|
|
1363
|
+
let slots = null;
|
|
1364
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1365
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1366
|
+
}
|
|
1367
|
+
return h('div', slots);
|
|
1368
|
+
}
|
|
1369
|
+
custom() {
|
|
1370
|
+
this.updated();
|
|
1371
|
+
}
|
|
1372
|
+
addItem(items, itemIndex) {
|
|
1373
|
+
return this.ej2Instances.addItem(items, itemIndex);
|
|
1374
|
+
}
|
|
1375
|
+
getDataByValue(value) {
|
|
1376
|
+
return this.ej2Instances.getDataByValue(value);
|
|
1377
|
+
}
|
|
1378
|
+
getItems() {
|
|
1379
|
+
return this.ej2Instances.getItems();
|
|
1380
|
+
}
|
|
1381
|
+
hidePopup(e) {
|
|
1382
|
+
return this.ej2Instances.hidePopup(e);
|
|
1383
|
+
}
|
|
1384
|
+
hideSpinner() {
|
|
1385
|
+
return this.ej2Instances.hideSpinner();
|
|
1386
|
+
}
|
|
1387
|
+
search(text, positionX, positionY) {
|
|
1388
|
+
return this.ej2Instances.search(text, positionX, positionY);
|
|
1389
|
+
}
|
|
1390
|
+
showPopup() {
|
|
1391
|
+
return this.ej2Instances.showPopup();
|
|
1392
|
+
}
|
|
1393
|
+
};
|
|
1394
|
+
MentionComponent = __decorate$6([
|
|
1395
|
+
EJComponentDecorator({
|
|
1396
|
+
props: properties$6
|
|
1397
|
+
}, isExecute)
|
|
1398
|
+
/* Start Options({
|
|
1399
|
+
props: props,
|
|
1400
|
+
watch: watch,
|
|
1401
|
+
emits: emitProbs,
|
|
1402
|
+
provide: function provide() {
|
|
1403
|
+
return {
|
|
1404
|
+
custom: this.custom
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
}) End */
|
|
1408
|
+
], MentionComponent);
|
|
1409
|
+
const MentionPlugin = {
|
|
1410
|
+
name: 'ejs-mention',
|
|
1411
|
+
install(Vue) {
|
|
1412
|
+
Vue.component(MentionPlugin.name, MentionComponent);
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
export { DropDownListComponent, DropDownListPlugin, ComboBoxComponent, ComboBoxPlugin, AutoCompleteComponent, AutoCompletePlugin, MultiSelectComponent, MultiSelectPlugin, ListBoxComponent, ListBoxPlugin, DropDownTreeComponent, DropDownTreePlugin, MentionComponent, MentionPlugin };
|
|
1272
1417
|
export * from '@syncfusion/ej2-dropdowns';
|
|
1273
1418
|
//# sourceMappingURL=ej2-vue-dropdowns.es2015.js.map
|