@syncfusion/ej2-dropdowns 20.2.40 → 20.2.43-3197
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/.eslintrc.json +16 -1
- package/CHANGELOG.md +116 -3
- package/{README.md → ReadMe.md} +1 -1
- package/dist/ej2-dropdowns.min.js +1 -0
- package/dist/ej2-dropdowns.umd.min.js +1 -10
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +2232 -468
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +2273 -480
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +1 -10
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/mention.d.ts +4 -0
- package/mention.js +4 -0
- package/package.json +76 -76
- package/src/auto-complete/auto-complete-model.d.ts +12 -11
- package/src/auto-complete/auto-complete.d.ts +20 -18
- package/src/auto-complete/auto-complete.js +67 -37
- package/src/combo-box/combo-box-model.d.ts +17 -17
- package/src/combo-box/combo-box.d.ts +33 -33
- package/src/combo-box/combo-box.js +33 -29
- package/src/common/incremental-search.d.ts +3 -4
- package/src/common/incremental-search.js +22 -7
- package/src/drop-down-base/drop-down-base-model.d.ts +13 -31
- package/src/drop-down-base/drop-down-base.d.ts +22 -41
- package/src/drop-down-base/drop-down-base.js +75 -59
- package/src/drop-down-list/drop-down-list-model.d.ts +19 -1
- package/src/drop-down-list/drop-down-list.d.ts +35 -11
- package/src/drop-down-list/drop-down-list.js +194 -109
- package/src/drop-down-tree/drop-down-tree-model.d.ts +16 -2
- package/src/drop-down-tree/drop-down-tree.d.ts +15 -1
- package/src/drop-down-tree/drop-down-tree.js +49 -14
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/list-box/list-box-model.d.ts +18 -0
- package/src/list-box/list-box.d.ts +23 -1
- package/src/list-box/list-box.js +78 -35
- package/src/mention/index.d.ts +5 -0
- package/src/mention/index.js +4 -0
- package/src/mention/mention-model.d.ts +285 -0
- package/src/mention/mention.d.ts +457 -0
- package/src/mention/mention.js +1465 -0
- package/src/multi-select/checkbox-selection.js +11 -12
- package/src/multi-select/float-label.js +4 -2
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.d.ts +9 -5
- package/src/multi-select/multi-select.js +295 -188
- package/styles/auto-complete/_all.scss +1 -1
- package/styles/auto-complete/_bootstrap-dark-definition.scss +1 -1
- package/styles/auto-complete/_bootstrap-definition.scss +1 -1
- package/styles/auto-complete/_bootstrap4-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap5-definition.scss +1 -1
- package/styles/auto-complete/_fabric-dark-definition.scss +1 -1
- package/styles/auto-complete/_fabric-definition.scss +1 -1
- package/styles/auto-complete/_fluent-definition.scss +1 -1
- package/styles/auto-complete/_fusionnew-definition.scss +1 -1
- package/styles/auto-complete/_highcontrast-definition.scss +1 -1
- package/styles/auto-complete/_highcontrast-light-definition.scss +1 -1
- package/styles/auto-complete/_material-dark-definition.scss +1 -1
- package/styles/auto-complete/_material-definition.scss +1 -1
- package/styles/auto-complete/_material3-definition.scss +1 -1
- package/styles/auto-complete/_tailwind-definition.scss +1 -1
- 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 +121 -44
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +121 -44
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +134 -55
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +135 -50
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +135 -50
- package/styles/bootstrap5.scss +1 -0
- package/styles/combo-box/_all.scss +1 -1
- package/styles/combo-box/_bootstrap-dark-definition.scss +1 -1
- package/styles/combo-box/_bootstrap-definition.scss +1 -1
- package/styles/combo-box/_bootstrap4-definition.scss +2 -2
- package/styles/combo-box/_bootstrap5-definition.scss +1 -1
- package/styles/combo-box/_fabric-dark-definition.scss +1 -1
- package/styles/combo-box/_fabric-definition.scss +1 -1
- package/styles/combo-box/_fluent-definition.scss +1 -1
- package/styles/combo-box/_fusionnew-definition.scss +1 -1
- package/styles/combo-box/_highcontrast-definition.scss +1 -1
- package/styles/combo-box/_highcontrast-light-definition.scss +1 -1
- package/styles/combo-box/_material-dark-definition.scss +1 -1
- package/styles/combo-box/_material-definition.scss +1 -1
- package/styles/combo-box/_material3-definition.scss +1 -1
- package/styles/combo-box/_tailwind-definition.scss +1 -1
- 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/_all.scss +1 -1
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +9 -2
- package/styles/drop-down-base/_bootstrap-definition.scss +7 -1
- package/styles/drop-down-base/_bootstrap4-definition.scss +7 -1
- package/styles/drop-down-base/_bootstrap5-definition.scss +9 -3
- package/styles/drop-down-base/_fabric-dark-definition.scss +7 -1
- package/styles/drop-down-base/_fabric-definition.scss +7 -1
- package/styles/drop-down-base/_fluent-definition.scss +9 -2
- package/styles/drop-down-base/_fusionnew-definition.scss +9 -3
- package/styles/drop-down-base/_highcontrast-definition.scss +17 -6
- package/styles/drop-down-base/_highcontrast-light-definition.scss +19 -7
- package/styles/drop-down-base/_layout.scss +44 -3
- package/styles/drop-down-base/_material-dark-definition.scss +8 -1
- package/styles/drop-down-base/_material-definition.scss +7 -0
- package/styles/drop-down-base/_material3-definition.scss +9 -3
- package/styles/drop-down-base/_tailwind-definition.scss +9 -3
- package/styles/drop-down-base/_theme.scss +4 -4
- 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/_all.scss +2 -1
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +2 -1
- package/styles/drop-down-list/_bootstrap-definition.scss +2 -1
- package/styles/drop-down-list/_bootstrap4-definition.scss +3 -1
- package/styles/drop-down-list/_bootstrap5-definition.scss +3 -3
- package/styles/drop-down-list/_fabric-dark-definition.scss +2 -1
- package/styles/drop-down-list/_fabric-definition.scss +2 -0
- package/styles/drop-down-list/_fluent-definition.scss +2 -1
- package/styles/drop-down-list/_fusionnew-definition.scss +3 -3
- package/styles/drop-down-list/_highcontrast-definition.scss +21 -10
- package/styles/drop-down-list/_highcontrast-light-definition.scss +22 -11
- package/styles/drop-down-list/_layout.scss +11 -9
- package/styles/drop-down-list/_material-dark-definition.scss +2 -2
- package/styles/drop-down-list/_material-definition.scss +1 -0
- package/styles/drop-down-list/_material3-definition.scss +3 -3
- package/styles/drop-down-list/_tailwind-definition.scss +1 -0
- package/styles/drop-down-list/_theme.scss +3 -3
- package/styles/drop-down-list/bootstrap-dark.css +8 -0
- package/styles/drop-down-list/bootstrap.css +8 -0
- package/styles/drop-down-list/bootstrap4.css +8 -0
- package/styles/drop-down-list/bootstrap5-dark.css +9 -0
- package/styles/drop-down-list/bootstrap5.css +9 -0
- package/styles/drop-down-list/fabric-dark.css +8 -0
- package/styles/drop-down-list/fabric.css +8 -0
- package/styles/drop-down-list/fluent-dark.css +9 -0
- package/styles/drop-down-list/fluent.css +9 -0
- package/styles/drop-down-list/highcontrast-light.css +8 -0
- package/styles/drop-down-list/highcontrast.css +8 -0
- package/styles/drop-down-list/icons/_bootstrap.scss +0 -1
- package/styles/drop-down-list/icons/_fabric.scss +0 -1
- package/styles/drop-down-list/icons/_material.scss +0 -1
- package/styles/drop-down-list/material-dark.css +8 -0
- package/styles/drop-down-list/material.css +8 -0
- package/styles/drop-down-list/tailwind-dark.css +9 -0
- package/styles/drop-down-list/tailwind.css +9 -0
- package/styles/drop-down-tree/_all.scss +1 -1
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +1 -1
- package/styles/drop-down-tree/_bootstrap-definition.scss +1 -1
- package/styles/drop-down-tree/_bootstrap4-definition.scss +1 -1
- package/styles/drop-down-tree/_bootstrap5-definition.scss +2 -2
- package/styles/drop-down-tree/_fabric-dark-definition.scss +1 -1
- package/styles/drop-down-tree/_fabric-definition.scss +2 -2
- package/styles/drop-down-tree/_fluent-definition.scss +2 -2
- package/styles/drop-down-tree/_fusionnew-definition.scss +2 -2
- package/styles/drop-down-tree/_highcontrast-definition.scss +1 -1
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +1 -1
- package/styles/drop-down-tree/_layout.scss +10 -3
- package/styles/drop-down-tree/_material-dark-definition.scss +2 -2
- package/styles/drop-down-tree/_material-definition.scss +2 -2
- package/styles/drop-down-tree/_material3-definition.scss +2 -2
- package/styles/drop-down-tree/_tailwind-definition.scss +2 -2
- 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 +9 -1
- package/styles/drop-down-tree/bootstrap5.css +9 -1
- 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/icons/_bootstrap.scss +0 -1
- package/styles/drop-down-tree/icons/_bootstrap4.scss +0 -1
- package/styles/drop-down-tree/icons/_fabric.scss +0 -1
- package/styles/drop-down-tree/icons/_highcontrast-light.scss +0 -1
- package/styles/drop-down-tree/icons/_highcontrast.scss +0 -1
- package/styles/drop-down-tree/icons/_material-dark.scss +0 -1
- package/styles/drop-down-tree/icons/_material.scss +0 -1
- 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 +129 -52
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +129 -52
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +129 -47
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +129 -47
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +124 -44
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +133 -53
- package/styles/highcontrast.scss +1 -0
- package/styles/list-box/_all.scss +1 -1
- package/styles/list-box/_bootstrap-dark-definition.scss +2 -0
- package/styles/list-box/_bootstrap-definition.scss +1 -0
- package/styles/list-box/_bootstrap4-definition.scss +1 -0
- package/styles/list-box/_bootstrap5-definition.scss +3 -0
- package/styles/list-box/_fabric-dark-definition.scss +3 -1
- package/styles/list-box/_fabric-definition.scss +1 -0
- package/styles/list-box/_fluent-definition.scss +3 -0
- package/styles/list-box/_fusionnew-definition.scss +1 -0
- package/styles/list-box/_highcontrast-definition.scss +1 -0
- package/styles/list-box/_highcontrast-light-definition.scss +3 -1
- package/styles/list-box/_layout.scss +8 -17
- package/styles/list-box/_material-dark-definition.scss +2 -0
- package/styles/list-box/_material-definition.scss +1 -0
- package/styles/list-box/_material3-definition.scss +1 -0
- package/styles/list-box/_tailwind-definition.scss +3 -0
- package/styles/list-box/_theme.scss +11 -25
- 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/icons/_bootstrap-dark.scss +2 -2
- package/styles/list-box/icons/_bootstrap.scss +1 -1
- package/styles/list-box/icons/_bootstrap4.scss +1 -1
- package/styles/list-box/icons/_bootstrap5.scss +1 -1
- package/styles/list-box/icons/_fabric-dark.scss +1 -1
- package/styles/list-box/icons/_fabric.scss +1 -1
- package/styles/list-box/icons/_fluent.scss +1 -1
- package/styles/list-box/icons/_fusionnew.scss +1 -1
- package/styles/list-box/icons/_highcontrast-light.scss +1 -1
- package/styles/list-box/icons/_highcontrast.scss +1 -1
- package/styles/list-box/icons/_material-dark.scss +1 -1
- package/styles/list-box/icons/_material.scss +2 -2
- package/styles/list-box/icons/_material3.scss +1 -1
- package/styles/list-box/icons/_tailwind-dark.scss +1 -1
- package/styles/list-box/icons/_tailwind.scss +1 -1
- 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 +120 -43
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +120 -43
- package/styles/material.scss +1 -0
- package/styles/mention/_all.scss +1 -0
- package/styles/mention/_bootstrap-dark-definition.scss +3 -0
- package/styles/mention/_bootstrap-definition.scss +3 -0
- package/styles/mention/_bootstrap4-definition.scss +3 -0
- package/styles/mention/_bootstrap5-dark-definition.scss +1 -0
- package/styles/mention/_bootstrap5-definition.scss +1 -0
- package/styles/mention/_fabric-dark-definition.scss +2 -0
- package/styles/mention/_fabric-definition.scss +3 -0
- package/styles/mention/_fluent-dark-definition.scss +1 -0
- package/styles/mention/_fluent-definition.scss +1 -0
- package/styles/mention/_fusionnew-definition.scss +1 -0
- package/styles/mention/_highcontrast-definition.scss +3 -0
- package/styles/mention/_highcontrast-light-definition.scss +3 -0
- package/styles/mention/_layout.scss +6 -0
- package/styles/mention/_material-dark-definition.scss +3 -0
- package/styles/mention/_material-definition.scss +3 -0
- package/styles/mention/_material3-definition.scss +1 -0
- package/styles/mention/_tailwind-dark-definition.scss +1 -0
- package/styles/mention/_tailwind-definition.scss +1 -0
- package/styles/mention/bootstrap-dark.css +29 -0
- package/styles/mention/bootstrap-dark.scss +6 -0
- package/styles/mention/bootstrap.css +29 -0
- package/styles/mention/bootstrap.scss +6 -0
- package/styles/mention/bootstrap4.css +47 -0
- package/styles/mention/bootstrap4.scss +6 -0
- package/styles/mention/bootstrap5-dark.css +58 -0
- package/styles/mention/bootstrap5-dark.scss +6 -0
- package/styles/mention/bootstrap5.css +58 -0
- package/styles/mention/bootstrap5.scss +6 -0
- package/styles/mention/fabric-dark.css +29 -0
- package/styles/mention/fabric-dark.scss +6 -0
- package/styles/mention/fabric.css +29 -0
- package/styles/mention/fabric.scss +6 -0
- package/styles/mention/fluent-dark.css +58 -0
- package/styles/mention/fluent-dark.scss +6 -0
- package/styles/mention/fluent.css +58 -0
- package/styles/mention/fluent.scss +6 -0
- package/styles/mention/highcontrast-light.css +43 -0
- package/styles/mention/highcontrast-light.scss +6 -0
- package/styles/mention/highcontrast.css +43 -0
- package/styles/mention/highcontrast.scss +6 -0
- package/styles/mention/material-dark.css +29 -0
- package/styles/mention/material-dark.scss +6 -0
- package/styles/mention/material.css +29 -0
- package/styles/mention/material.scss +6 -0
- package/styles/mention/tailwind-dark.css +68 -0
- package/styles/mention/tailwind-dark.scss +6 -0
- package/styles/mention/tailwind.css +68 -0
- package/styles/mention/tailwind.scss +6 -0
- package/styles/multi-select/_all.scss +1 -1
- package/styles/multi-select/_bootstrap-dark-definition.scss +11 -1
- package/styles/multi-select/_bootstrap-definition.scss +9 -0
- package/styles/multi-select/_bootstrap4-definition.scss +20 -9
- package/styles/multi-select/_bootstrap5-definition.scss +11 -3
- package/styles/multi-select/_fabric-dark-definition.scss +16 -7
- package/styles/multi-select/_fabric-definition.scss +15 -6
- package/styles/multi-select/_fluent-definition.scss +11 -2
- package/styles/multi-select/_fusionnew-definition.scss +10 -2
- package/styles/multi-select/_highcontrast-definition.scss +59 -29
- package/styles/multi-select/_highcontrast-light-definition.scss +55 -25
- package/styles/multi-select/_layout.scss +91 -78
- package/styles/multi-select/_material-dark-definition.scss +10 -1
- package/styles/multi-select/_material-definition.scss +8 -0
- package/styles/multi-select/_material3-definition.scss +9 -2
- package/styles/multi-select/_tailwind-definition.scss +11 -4
- package/styles/multi-select/_theme.scss +20 -21
- package/styles/multi-select/bootstrap-dark.css +34 -8
- package/styles/multi-select/bootstrap.css +34 -8
- package/styles/multi-select/bootstrap4.css +46 -19
- package/styles/multi-select/bootstrap5-dark.css +38 -11
- package/styles/multi-select/bootstrap5.css +38 -11
- package/styles/multi-select/fabric-dark.css +42 -16
- package/styles/multi-select/fabric.css +42 -16
- package/styles/multi-select/fluent-dark.css +36 -9
- package/styles/multi-select/fluent.css +36 -9
- package/styles/multi-select/highcontrast-light.css +37 -8
- package/styles/multi-select/highcontrast.css +46 -17
- package/styles/multi-select/icons/_bootstrap5.scss +0 -1
- package/styles/multi-select/icons/_fluent.scss +0 -1
- package/styles/multi-select/icons/_fusionnew.scss +0 -1
- package/styles/multi-select/icons/_material-dark.scss +53 -54
- package/styles/multi-select/icons/_material.scss +53 -54
- package/styles/multi-select/icons/_material3.scss +0 -1
- package/styles/multi-select/icons/_tailwind.scss +0 -1
- package/styles/multi-select/material-dark.css +33 -7
- package/styles/multi-select/material.css +33 -7
- package/styles/multi-select/tailwind-dark.css +38 -9
- package/styles/multi-select/tailwind.css +38 -9
- package/styles/tailwind-dark.css +132 -47
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +132 -47
- package/styles/tailwind.scss +1 -0
package/src/list-box/list-box.js
CHANGED
|
@@ -130,6 +130,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
130
130
|
this.isCustomFiltering = false;
|
|
131
131
|
this.initialSelectedOptions = this.value;
|
|
132
132
|
_super.prototype.render.call(this);
|
|
133
|
+
this.setEnabled();
|
|
133
134
|
this.renderComplete();
|
|
134
135
|
};
|
|
135
136
|
ListBox.prototype.initWrapper = function () {
|
|
@@ -164,7 +165,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
164
165
|
removeClass([this.list], [dropDownBaseClasses.content, dropDownBaseClasses.root]);
|
|
165
166
|
this.validationAttribute(this.element, hiddenSelect);
|
|
166
167
|
this.list.setAttribute('role', 'listbox');
|
|
167
|
-
attributes(this.list, { 'role': 'listbox', 'aria-multiselectable': this.selectionSettings.mode === 'Multiple' ? 'true' : 'false' });
|
|
168
|
+
attributes(this.list, { 'role': 'listbox', 'aria-label': 'listbox', 'aria-multiselectable': this.selectionSettings.mode === 'Multiple' ? 'true' : 'false' });
|
|
168
169
|
this.updateSelectionSettings();
|
|
169
170
|
};
|
|
170
171
|
ListBox.prototype.updateSelectionSettings = function () {
|
|
@@ -210,8 +211,8 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
213
|
};
|
|
213
|
-
ListBox.prototype.updateActionCompleteData = function (li, item) {
|
|
214
|
-
this.jsonData.
|
|
214
|
+
ListBox.prototype.updateActionCompleteData = function (li, item, index) {
|
|
215
|
+
this.jsonData.splice(index, 0, item);
|
|
215
216
|
};
|
|
216
217
|
ListBox.prototype.initToolbar = function () {
|
|
217
218
|
var pos = this.toolbarSettings.position;
|
|
@@ -427,10 +428,10 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
427
428
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
428
429
|
var event = args.event;
|
|
429
430
|
var wrapper;
|
|
430
|
-
if (args.target && (args.target.classList.contains(
|
|
431
|
-
|| args.target.classList.contains(
|
|
432
|
-
if (args.target.classList.contains(
|
|
433
|
-
|| args.target.classList.contains(
|
|
431
|
+
if (args.target && (args.target.classList.contains('e-listbox-wrapper') || args.target.classList.contains('e-list-item')
|
|
432
|
+
|| args.target.classList.contains('e-filter-parent') || args.target.classList.contains('e-input-group'))) {
|
|
433
|
+
if (args.target.classList.contains('e-list-item') || args.target.classList.contains('e-filter-parent')
|
|
434
|
+
|| args.target.classList.contains('e-input-group')) {
|
|
434
435
|
wrapper = args.target.closest('.e-listbox-wrapper');
|
|
435
436
|
}
|
|
436
437
|
else {
|
|
@@ -485,7 +486,8 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
485
486
|
var getArgs = this.getDragArgs({ target: args.droppedElement }, true);
|
|
486
487
|
var sourceArgs = { previousData: this.dataSource };
|
|
487
488
|
var destArgs = { previousData: listObj.dataSource };
|
|
488
|
-
var dragArgs = extend({}, getArgs, { target: args.target, source: { previousData: this.dataSource },
|
|
489
|
+
var dragArgs = extend({}, getArgs, { target: args.target, source: { previousData: this.dataSource },
|
|
490
|
+
previousIndex: args.previousIndex, currentIndex: args.currentIndex });
|
|
489
491
|
if (listObj !== this) {
|
|
490
492
|
var sourceArgs1 = extend(sourceArgs, { currentData: this.listData });
|
|
491
493
|
dragArgs = extend(dragArgs, { source: sourceArgs1, destination: destArgs });
|
|
@@ -560,10 +562,10 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
560
562
|
sortedData.splice(destIdx, 0, droppedData);
|
|
561
563
|
liColl.splice(destIdx, 0, fLiColl_1.splice(srcIdx, 1)[0]);
|
|
562
564
|
if (!value) {
|
|
563
|
-
var
|
|
564
|
-
for (var i = 0; i <
|
|
565
|
-
if (
|
|
566
|
-
li_1 =
|
|
565
|
+
var liCollElem_1 = _this.getItems();
|
|
566
|
+
for (var i = 0; i < liCollElem_1.length; i++) {
|
|
567
|
+
if (liCollElem_1[i].getAttribute('data-value') === null && liCollElem_1[i].classList.contains('e-list-item')) {
|
|
568
|
+
li_1 = liCollElem_1[i];
|
|
567
569
|
break;
|
|
568
570
|
}
|
|
569
571
|
}
|
|
@@ -613,10 +615,17 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
613
615
|
dragArgs = extend(dragArgs, { destination: dragArgs1 });
|
|
614
616
|
}
|
|
615
617
|
this.trigger('drop', dragArgs);
|
|
618
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
619
|
+
var liCollElem = dragArgs.elements;
|
|
620
|
+
if (liCollElem.length) {
|
|
621
|
+
for (var i = 0; i < liCollElem.length; i++) {
|
|
622
|
+
liCollElem[i].classList.remove('e-grabbed');
|
|
623
|
+
}
|
|
624
|
+
}
|
|
616
625
|
};
|
|
617
626
|
ListBox.prototype.updateListItems = function (sourceElem, destElem) {
|
|
618
627
|
var i = 0;
|
|
619
|
-
destElem.innerHTML =
|
|
628
|
+
destElem.innerHTML = '';
|
|
620
629
|
while (i < sourceElem.childNodes.length) {
|
|
621
630
|
destElem.appendChild(sourceElem.childNodes[i]);
|
|
622
631
|
}
|
|
@@ -645,6 +654,14 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
645
654
|
}
|
|
646
655
|
return listObj;
|
|
647
656
|
};
|
|
657
|
+
/**
|
|
658
|
+
* Sets the enabled state to DropDownBase.
|
|
659
|
+
*
|
|
660
|
+
* @returns {void}
|
|
661
|
+
*/
|
|
662
|
+
ListBox.prototype.setEnabled = function () {
|
|
663
|
+
this.element.setAttribute('aria-disabled', (this.enabled) ? 'false' : 'true');
|
|
664
|
+
};
|
|
648
665
|
ListBox.prototype.listOption = function (dataSource, fields) {
|
|
649
666
|
this.listCurrentOptions = _super.prototype.listOption.call(this, dataSource, fields);
|
|
650
667
|
this.listCurrentOptions = extend({}, this.listCurrentOptions, { itemCreated: this.triggerBeforeItemRender.bind(this) }, true);
|
|
@@ -756,7 +773,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
756
773
|
var objValue = void 0;
|
|
757
774
|
var dupData = [];
|
|
758
775
|
var itemIdx = void 0;
|
|
759
|
-
extend(dupData, [], this.
|
|
776
|
+
extend(dupData, [], this.jsonData);
|
|
760
777
|
var removeIdxes = [];
|
|
761
778
|
var removeLiIdxes = [];
|
|
762
779
|
for (var j = 0; j < items.length; j++) {
|
|
@@ -805,7 +822,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
805
822
|
if (this.listData.length === 0) {
|
|
806
823
|
this.l10nUpdate();
|
|
807
824
|
}
|
|
808
|
-
this.value =
|
|
825
|
+
this.value = [];
|
|
809
826
|
this.updateToolBarState();
|
|
810
827
|
};
|
|
811
828
|
/**
|
|
@@ -1094,9 +1111,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1094
1111
|
prepend([this.filterParent], this.list);
|
|
1095
1112
|
attributes(this.filterInput, {
|
|
1096
1113
|
'aria-disabled': 'false',
|
|
1097
|
-
'aria-
|
|
1098
|
-
'role': 'listbox',
|
|
1099
|
-
'aria-activedescendant': null,
|
|
1114
|
+
'aria-label': 'search list item',
|
|
1100
1115
|
'autocomplete': 'off',
|
|
1101
1116
|
'autocorrect': 'off',
|
|
1102
1117
|
'autocapitalize': 'off',
|
|
@@ -1133,12 +1148,12 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1133
1148
|
if (li && li.parentElement) {
|
|
1134
1149
|
currSelIdx = [].slice.call(li.parentElement.children).indexOf(li);
|
|
1135
1150
|
if (!this.selectionSettings.showCheckbox) {
|
|
1136
|
-
if ((e.ctrlKey || Browser.isDevice) && this.isSelected(li)) {
|
|
1151
|
+
if ((e.ctrlKey || e.metaKey || Browser.isDevice) && this.isSelected(li)) {
|
|
1137
1152
|
li.classList.remove(cssClass.selected);
|
|
1138
1153
|
li.removeAttribute('aria-selected');
|
|
1139
1154
|
isSelect = false;
|
|
1140
1155
|
}
|
|
1141
|
-
else if (!(this.selectionSettings.mode === 'Multiple' && (e.ctrlKey || Browser.isDevice))) {
|
|
1156
|
+
else if (!(this.selectionSettings.mode === 'Multiple' && (e.ctrlKey || e.metaKey || Browser.isDevice))) {
|
|
1142
1157
|
this.getSelectedItems().forEach(function (ele) {
|
|
1143
1158
|
ele.removeAttribute('aria-selected');
|
|
1144
1159
|
});
|
|
@@ -1498,7 +1513,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1498
1513
|
var isRefresh = tListBox.sortOrder !== 'None' || (tListBox.selectionSettings.showCheckbox !==
|
|
1499
1514
|
fListBox.selectionSettings.showCheckbox) || tListBox.fields.groupBy || tListBox.itemTemplate || fListBox.itemTemplate;
|
|
1500
1515
|
this.removeSelected(fListBox, fListBox.getSelectedItems());
|
|
1501
|
-
var tempItems = [].slice.call(fListBox.
|
|
1516
|
+
var tempItems = [].slice.call(fListBox.listData);
|
|
1502
1517
|
var localDataArgs = { cancel: false, items: tempItems, eventName: this.toolbarAction };
|
|
1503
1518
|
fListBox.trigger('actionBegin', localDataArgs);
|
|
1504
1519
|
if (localDataArgs.cancel) {
|
|
@@ -1543,12 +1558,18 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1543
1558
|
fListBox.value = [];
|
|
1544
1559
|
listData = listData
|
|
1545
1560
|
.filter(function (data) { return data.isHeader !== true; });
|
|
1561
|
+
var sortedData = listData.filter(function (val) {
|
|
1562
|
+
return tListBox.jsonData.indexOf(val) === -1;
|
|
1563
|
+
});
|
|
1564
|
+
for (var i = 0; i < sortedData.length; i++) {
|
|
1565
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1566
|
+
tListBox.jsonData.splice(index + i, 0, sortedData[i]);
|
|
1567
|
+
}
|
|
1546
1568
|
tListBox.listData = listData;
|
|
1547
|
-
|
|
1548
|
-
if (this.listData.length == this.jsonData.length) {
|
|
1569
|
+
if (fListBox.listData.length === fListBox.jsonData.length) {
|
|
1549
1570
|
fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
|
|
1550
1571
|
}
|
|
1551
|
-
else if (
|
|
1572
|
+
else if (fListBox.allowFiltering) {
|
|
1552
1573
|
for (var i = 0; i < fListBox.listData.length; i++) {
|
|
1553
1574
|
for (var j = 0; j < fListBox.jsonData.length; j++) {
|
|
1554
1575
|
if (fListBox.listData[i] === fListBox.jsonData[j]) {
|
|
@@ -1611,21 +1632,35 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1611
1632
|
}
|
|
1612
1633
|
return listObj;
|
|
1613
1634
|
};
|
|
1614
|
-
ListBox.prototype.getGrabbedItems = function () {
|
|
1635
|
+
ListBox.prototype.getGrabbedItems = function (args) {
|
|
1636
|
+
var grabbItems = false;
|
|
1615
1637
|
for (var i = 0; i < this.value.length; i++) {
|
|
1616
|
-
if (this.value[i] === this.
|
|
1638
|
+
if (this.value[i] === this.getFormattedValue(args.target.getAttribute('data-value'))) {
|
|
1639
|
+
grabbItems = true;
|
|
1640
|
+
break;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
if (grabbItems) {
|
|
1644
|
+
for (var i = 0; i < this.value.length; i++) {
|
|
1617
1645
|
var liColl = this.list.querySelectorAll('[aria-selected="true"]');
|
|
1618
|
-
for (var
|
|
1619
|
-
liColl[
|
|
1646
|
+
for (var j = 0; j < liColl.length; j++) {
|
|
1647
|
+
if (this.value[i] === this.getFormattedValue(liColl[j].getAttribute('data-value'))) {
|
|
1648
|
+
liColl[j].classList.add('e-grabbed');
|
|
1649
|
+
}
|
|
1620
1650
|
}
|
|
1621
|
-
break;
|
|
1622
1651
|
}
|
|
1623
1652
|
}
|
|
1624
|
-
var elems
|
|
1653
|
+
var elems;
|
|
1654
|
+
if (this.isAngular) {
|
|
1655
|
+
elems = Array.prototype.slice.call(this.element.getElementsByClassName('e-list-parent')[0].querySelectorAll('.e-grabbed'));
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
elems = Array.prototype.slice.call(this.element.nextElementSibling.querySelectorAll('.e-grabbed'));
|
|
1659
|
+
}
|
|
1625
1660
|
return elems;
|
|
1626
1661
|
};
|
|
1627
1662
|
ListBox.prototype.getDragArgs = function (args, isDragEnd) {
|
|
1628
|
-
var elems = this.getGrabbedItems();
|
|
1663
|
+
var elems = this.getGrabbedItems(args);
|
|
1629
1664
|
if (elems.length) {
|
|
1630
1665
|
if (isDragEnd) {
|
|
1631
1666
|
elems.push(args.target);
|
|
@@ -1677,7 +1712,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1677
1712
|
}
|
|
1678
1713
|
}
|
|
1679
1714
|
}
|
|
1680
|
-
else if (e.keyCode !== 37 && e.keyCode !== 39 && e.code !==
|
|
1715
|
+
else if (e.keyCode !== 37 && e.keyCode !== 39 && e.code !== 'KeyA') {
|
|
1681
1716
|
this.upDownKeyHandler(e);
|
|
1682
1717
|
}
|
|
1683
1718
|
}
|
|
@@ -1721,8 +1756,8 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1721
1756
|
}
|
|
1722
1757
|
if (this.selectionSettings.showCheckbox && e.ctrlKey && e.shiftKey && (e.keyCode === 36 || e.keyCode === 35)) {
|
|
1723
1758
|
var selectedidx = Array.prototype.indexOf.call(ul.children, fli);
|
|
1724
|
-
var sidx = e.code ===
|
|
1725
|
-
var eidx = e.code ===
|
|
1759
|
+
var sidx = e.code === 'Home' ? 0 : selectedidx;
|
|
1760
|
+
var eidx = e.code === 'Home' ? selectedidx : ul.children.length - 1;
|
|
1726
1761
|
for (var i = sidx; i <= eidx; i++) {
|
|
1727
1762
|
var item = ul.children[i];
|
|
1728
1763
|
this.notify('updatelist', { li: item, e: {
|
|
@@ -1880,7 +1915,6 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1880
1915
|
dvalue_1 = _this.getFormattedValue(li.getAttribute('data-value'));
|
|
1881
1916
|
if (values.indexOf(dvalue_1) < 0) {
|
|
1882
1917
|
li.getElementsByClassName('e-check')[0].classList.remove('e-check');
|
|
1883
|
-
li.getElementsByClassName('e-checkbox-wrapper')[0].removeAttribute('aria-checked');
|
|
1884
1918
|
li.removeAttribute('aria-selected');
|
|
1885
1919
|
}
|
|
1886
1920
|
});
|
|
@@ -1902,6 +1936,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1902
1936
|
else {
|
|
1903
1937
|
text = value;
|
|
1904
1938
|
}
|
|
1939
|
+
if (typeof (text) === 'string') {
|
|
1940
|
+
text = text.split("\\").join("\\\\");
|
|
1941
|
+
}
|
|
1905
1942
|
li = _this.list.querySelector('[data-value="' + text + '"]');
|
|
1906
1943
|
if (li) {
|
|
1907
1944
|
if (_this.selectionSettings.showCheckbox) {
|
|
@@ -2232,6 +2269,12 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
2232
2269
|
__decorate([
|
|
2233
2270
|
Property('')
|
|
2234
2271
|
], ListBox.prototype, "height", void 0);
|
|
2272
|
+
__decorate([
|
|
2273
|
+
Property(true)
|
|
2274
|
+
], ListBox.prototype, "enabled", void 0);
|
|
2275
|
+
__decorate([
|
|
2276
|
+
Property(false)
|
|
2277
|
+
], ListBox.prototype, "enablePersistence", void 0);
|
|
2235
2278
|
__decorate([
|
|
2236
2279
|
Property(false)
|
|
2237
2280
|
], ListBox.prototype, "allowDragAndDrop", void 0);
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { KeyboardEvents, compile, Property, EventHandler, Animation, AnimationModel, KeyboardEventArgs, formatUnit, append, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined, detach, Event, EmitType, Complex, addClass, removeClass, closest, isUndefined, getValue, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { FieldSettings, FilteringEventArgs, FilterType } from '../drop-down-base/drop-down-base';import { DropDownBase, PopupEventArgs, SelectEventArgs, BeforeOpenEventArgs, dropDownBaseClasses } from '../drop-down-base/drop-down-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { Popup, isCollide, createSpinner, showSpinner, hideSpinner, getZindexPartial } from '@syncfusion/ej2-popups';import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';
|
|
2
|
+
import {MentionChangeEventArgs} from "./mention";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface for a class Mention
|
|
6
|
+
*/
|
|
7
|
+
export interface MentionModel {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Defines class/multiple classes separated by a space for the mention component.
|
|
11
|
+
*
|
|
12
|
+
* @default null
|
|
13
|
+
*/
|
|
14
|
+
cssClass?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the symbol or single character which triggers the search action in the mention component.
|
|
18
|
+
*
|
|
19
|
+
* @default '@'
|
|
20
|
+
* @aspType char
|
|
21
|
+
*/
|
|
22
|
+
mentionChar?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Specifies whether to show the configured mentionChar with the text.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
showMentionChar?: boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Defines whether to allow the space in the middle of mention while searching.
|
|
33
|
+
* When disabled, the space ends the mention component search.
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
allowSpaces?: boolean;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the custom suffix to append along with the mention component selected item while inserting.
|
|
41
|
+
* You can append space or new line character as suffix.
|
|
42
|
+
*
|
|
43
|
+
* @default null
|
|
44
|
+
*/
|
|
45
|
+
suffixText?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the number of items in the suggestion list.
|
|
49
|
+
*
|
|
50
|
+
* @default 25
|
|
51
|
+
* @aspType int
|
|
52
|
+
*/
|
|
53
|
+
suggestionCount?: number;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the minimum length of user input to initiate the search action.
|
|
57
|
+
* The default value is zero, where suggestion the list opened as soon as the user inputs the mention character.
|
|
58
|
+
*
|
|
59
|
+
* @default 0
|
|
60
|
+
* @aspType int
|
|
61
|
+
*/
|
|
62
|
+
minLength?: number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the order to sort the data source. The possible sort orders are,
|
|
66
|
+
* * `None` - The data source is not sorted.
|
|
67
|
+
* * `Ascending` - The data source is sorted in ascending order.
|
|
68
|
+
* * `Descending` - The data source is sorted in descending order.
|
|
69
|
+
*
|
|
70
|
+
* @default 'None'
|
|
71
|
+
*/
|
|
72
|
+
sortOrder?: SortOrder;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Specifies whether the searches are case sensitive to find suggestions.
|
|
76
|
+
*
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
ignoreCase?: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Specifies whether to highlight the searched characters on suggestion list items.
|
|
83
|
+
*
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
highlight?: boolean;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
|
|
90
|
+
*
|
|
91
|
+
* @default 'en-US'
|
|
92
|
+
*/
|
|
93
|
+
locale?: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the width of the popup in pixels/number/percentage. The number value is considered as pixels.
|
|
97
|
+
*
|
|
98
|
+
* @default 'auto'
|
|
99
|
+
* @aspType string
|
|
100
|
+
*/
|
|
101
|
+
popupWidth?: string | number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Specifies the height of the popup in pixels/number/percentage. The number value is considered as pixels.
|
|
105
|
+
*
|
|
106
|
+
* @default '300px'
|
|
107
|
+
* @aspType string
|
|
108
|
+
*/
|
|
109
|
+
popupHeight?: string | number;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Specifies the template for the selected value from the suggestion list.
|
|
113
|
+
*
|
|
114
|
+
* @default null
|
|
115
|
+
*/
|
|
116
|
+
displayTemplate?: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the template for the suggestion list.
|
|
120
|
+
*
|
|
121
|
+
* @default null
|
|
122
|
+
*/
|
|
123
|
+
itemTemplate?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Specifies the template for no matched item which is displayed when there are no items to display in the suggestion list.
|
|
127
|
+
*
|
|
128
|
+
* @default 'No records found'
|
|
129
|
+
*/
|
|
130
|
+
noRecordsTemplate?: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Specifies the template for showing until data is loaded in the popup.
|
|
134
|
+
*
|
|
135
|
+
* @default null
|
|
136
|
+
*/
|
|
137
|
+
spinnerTemplate?: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Specifies the target selector where the mention component needs to be displayed.
|
|
141
|
+
* The mention component listens to the target's user input and displays suggestions as soon as the user inputs the mention character.
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
target?: HTMLElement | string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Accepts the list items either through local or remote service and binds it to the component.
|
|
148
|
+
* It can be an array of JSON Objects or an instance of `DataManager`.
|
|
149
|
+
*
|
|
150
|
+
* @default []
|
|
151
|
+
*/
|
|
152
|
+
dataSource?: { [key: string]: Object }[] | DataManager | string[] | number[] | boolean[];
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Specifies the external query, which can be customized and filtered against the data source.
|
|
156
|
+
*
|
|
157
|
+
* @default null
|
|
158
|
+
*/
|
|
159
|
+
query?: Query;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Determines on which filter type, the component needs to be considered on search action.
|
|
163
|
+
* and its supported data types are
|
|
164
|
+
*
|
|
165
|
+
* <table>
|
|
166
|
+
* <tr>
|
|
167
|
+
* <td colSpan=1 rowSpan=1>
|
|
168
|
+
* FilterType<br/></td><td colSpan=1 rowSpan=1>
|
|
169
|
+
* Description<br/></td><td colSpan=1 rowSpan=1>
|
|
170
|
+
* Supported Types<br/></td></tr>
|
|
171
|
+
* <tr>
|
|
172
|
+
* <td colSpan=1 rowSpan=1>
|
|
173
|
+
* StartsWith<br/></td><td colSpan=1 rowSpan=1>
|
|
174
|
+
* Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
|
|
175
|
+
* String<br/></td></tr>
|
|
176
|
+
* <tr>
|
|
177
|
+
* <td colSpan=1 rowSpan=1>
|
|
178
|
+
* EndsWith<br/></td><td colSpan=1 rowSpan=1>
|
|
179
|
+
* Checks whether a value ends with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
|
|
180
|
+
* <br/>String<br/></td></tr>
|
|
181
|
+
* <tr>
|
|
182
|
+
* <td colSpan=1 rowSpan=1>
|
|
183
|
+
* Contains<br/></td><td colSpan=1 rowSpan=1>
|
|
184
|
+
* Checks whether a value contains with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
|
|
185
|
+
* <br/>String<br/></td></tr>
|
|
186
|
+
* </table>
|
|
187
|
+
*
|
|
188
|
+
* The default value set to `Contains`, all the suggestion items which contain typed characters to listed in the suggestion popup.
|
|
189
|
+
*
|
|
190
|
+
* @default 'Contains'
|
|
191
|
+
*/
|
|
192
|
+
filterType?: FilterType;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Defines the fields of the Mention to map with the data source and binds the data to the component.
|
|
196
|
+
* * text - Specifies the text that maps the text filed from the data source for each list item.
|
|
197
|
+
* * value - Specifies the value that maps the value filed from the data source for each list item.
|
|
198
|
+
* * iconCss - Specifies the iconCss that map the icon class filed from the data source for each list item.
|
|
199
|
+
* * groupBy - Specifies the groupBy that groups the list items with its related items by mapping groupBy field.
|
|
200
|
+
*
|
|
201
|
+
* @default
|
|
202
|
+
* {
|
|
203
|
+
* text: null, value: null, iconCss: null, groupBy: null
|
|
204
|
+
* }
|
|
205
|
+
*/
|
|
206
|
+
fields?: FieldSettingsModel;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Triggers before fetching data from the remote server.
|
|
210
|
+
*
|
|
211
|
+
* @event actionBegin
|
|
212
|
+
*/
|
|
213
|
+
actionBegin?: EmitType<Object>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Triggers after data is fetched successfully from the remote server.
|
|
217
|
+
*
|
|
218
|
+
* @event actionComplete
|
|
219
|
+
*/
|
|
220
|
+
actionComplete?: EmitType<Object>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Triggers when the data fetch request from the remote server fails.
|
|
224
|
+
*
|
|
225
|
+
* @event actionFailure
|
|
226
|
+
*/
|
|
227
|
+
actionFailure?: EmitType<Object>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Triggers when an item in a popup is selected and updated in an editor.
|
|
231
|
+
*
|
|
232
|
+
* @event change
|
|
233
|
+
*/
|
|
234
|
+
change?: EmitType<MentionChangeEventArgs>;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Triggers before the popup is opened.
|
|
238
|
+
*
|
|
239
|
+
* @event beforeOpen
|
|
240
|
+
*/
|
|
241
|
+
beforeOpen?: EmitType<PopupEventArgs>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Triggers after the popup opens.
|
|
245
|
+
*
|
|
246
|
+
* @event opened
|
|
247
|
+
*/
|
|
248
|
+
opened?: EmitType<PopupEventArgs>;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Triggers after the popup is closed.
|
|
252
|
+
*
|
|
253
|
+
* @event closed
|
|
254
|
+
*/
|
|
255
|
+
closed?: EmitType<PopupEventArgs>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Triggers when an item in the popup is selected by the user either with the mouse/tap or with keyboard navigation.
|
|
259
|
+
*
|
|
260
|
+
* @event select
|
|
261
|
+
*/
|
|
262
|
+
select?: EmitType<SelectEventArgs>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Triggers on typing a character in the component.
|
|
266
|
+
*
|
|
267
|
+
* @event filtering
|
|
268
|
+
*/
|
|
269
|
+
filtering?: EmitType<FilteringEventArgs>;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Triggers when the component is created.
|
|
273
|
+
*
|
|
274
|
+
* @event created
|
|
275
|
+
*/
|
|
276
|
+
created?: EmitType<Object>;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Triggers when the component is destroyed.
|
|
280
|
+
*
|
|
281
|
+
* @event destroyed
|
|
282
|
+
*/
|
|
283
|
+
destroyed?: EmitType<Object>;
|
|
284
|
+
|
|
285
|
+
}
|