@syncfusion/ej2-dropdowns 20.2.39 → 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 +123 -2
- 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 +2243 -445
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +2285 -458
- 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 +195 -89
- 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 +51 -15
- 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 +22 -0
- package/src/list-box/list-box.js +86 -31
- 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 +296 -189
- 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/dist/global/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.39
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _dropdowns from '@syncfusion/ej2-dropdowns';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/mention.d.ts
ADDED
package/mention.js
ADDED
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
2
|
+
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@20.2.40",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-o96V/X8YkTkRYueJIqf1gEnZvYhV49BOpHMCUlJhsJ0TnLVFQ64L/1t56deuId3cCKMQR4+O5gE666IWbGkc/A==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-dropdowns@*",
|
|
12
|
+
"name": "@syncfusion/ej2-dropdowns",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-dropdowns",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-dropdowns",
|
|
23
|
+
"/@syncfusion/ej2-documenteditor",
|
|
24
|
+
"/@syncfusion/ej2-gantt",
|
|
25
|
+
"/@syncfusion/ej2-grids",
|
|
26
|
+
"/@syncfusion/ej2-inplace-editor",
|
|
27
|
+
"/@syncfusion/ej2-kanban",
|
|
28
|
+
"/@syncfusion/ej2-pdfviewer",
|
|
29
|
+
"/@syncfusion/ej2-pivotview",
|
|
30
|
+
"/@syncfusion/ej2-querybuilder",
|
|
31
|
+
"/@syncfusion/ej2-react-dropdowns",
|
|
32
|
+
"/@syncfusion/ej2-schedule",
|
|
33
|
+
"/@syncfusion/ej2-spreadsheet",
|
|
34
|
+
"/@syncfusion/ej2-vue-dropdowns"
|
|
35
|
+
],
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.2.40.tgz",
|
|
37
|
+
"_shasum": "3aa3da1c5dfa9c4d69ccf17ab3ef82d0adc3a673",
|
|
38
|
+
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
|
+
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
40
|
+
"author": {
|
|
41
|
+
"name": "Syncfusion Inc."
|
|
42
|
+
},
|
|
43
|
+
"bundleDependencies": false,
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@syncfusion/ej2-base": "~20.2.43",
|
|
46
|
+
"@syncfusion/ej2-data": "~20.2.43",
|
|
47
|
+
"@syncfusion/ej2-inputs": "~20.2.43",
|
|
48
|
+
"@syncfusion/ej2-lists": "~20.2.43",
|
|
49
|
+
"@syncfusion/ej2-navigations": "~20.2.43",
|
|
50
|
+
"@syncfusion/ej2-popups": "~20.2.43"
|
|
51
|
+
},
|
|
52
|
+
"deprecated": false,
|
|
53
|
+
"description": "Essential JS 2 DropDown Components",
|
|
54
|
+
"devDependencies": {},
|
|
55
|
+
"es2015": "./dist/es6/ej2-dropdowns.es2015.js",
|
|
56
|
+
"keywords": [
|
|
57
|
+
"ej2",
|
|
58
|
+
"syncfusion",
|
|
59
|
+
"ej2-dropdown",
|
|
60
|
+
"dropdownlist",
|
|
61
|
+
"autocomplete",
|
|
62
|
+
"multiselect",
|
|
63
|
+
"combobox",
|
|
64
|
+
"select",
|
|
65
|
+
"ej2-dropdownlist",
|
|
66
|
+
"ej2-autocomplete",
|
|
67
|
+
"ej2-multiselect",
|
|
68
|
+
"ej2-combobox"
|
|
69
|
+
],
|
|
70
|
+
"license": "SEE LICENSE IN license",
|
|
71
|
+
"main": "./dist/ej2-dropdowns.umd.min.js",
|
|
72
|
+
"module": "./index.js",
|
|
73
|
+
"name": "@syncfusion/ej2-dropdowns",
|
|
74
|
+
"typings": "index.d.ts",
|
|
75
|
+
"version": "20.2.43-3197",
|
|
76
|
+
"sideEffects": false
|
|
77
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, EventHandler, KeyboardEventArgs, isNullOrUndefined, detach } from '@syncfusion/ej2-base';import { Event, EmitType, Complex } from '@syncfusion/ej2-base';import { removeClass, attributes, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { dropDownListClasses } from '../drop-down-list/drop-down-list';import { ComboBox } from '../combo-box/combo-box';import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';import { Search } from '../common/incremental-search';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { FieldSettings, FilteringEventArgs, FilterType } from '../drop-down-base/drop-down-base';import { FloatLabelType, Input } from '@syncfusion/ej2-inputs';import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
1
|
+
import { Property, EventHandler, KeyboardEventArgs, isNullOrUndefined, detach } from '@syncfusion/ej2-base';import { Event, EmitType, Complex } from '@syncfusion/ej2-base';import { removeClass, attributes, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { dropDownListClasses } from '../drop-down-list/drop-down-list';import { ComboBox } from '../combo-box/combo-box';import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';import { Search } from '../common/incremental-search';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { FieldSettings, FilteringEventArgs, FilterType, ResultData } from '../drop-down-base/drop-down-base';import { FloatLabelType, Input } from '@syncfusion/ej2-inputs';import { DataManager, Predicate, Query } from '@syncfusion/ej2-data';
|
|
2
2
|
import {ComboBoxModel} from "../combo-box/combo-box-model";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -14,10 +14,11 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
14
14
|
* * groupBy - Group the list items with it's related items by mapping groupBy field
|
|
15
15
|
*
|
|
16
16
|
* {% codeBlock src='autocomplete/fields/index.md' %}{% endcodeBlock %}
|
|
17
|
+
*
|
|
17
18
|
* > For more details about the field mapping refer to [`Data binding`](../../auto-complete/data-binding) documentation.
|
|
18
19
|
*
|
|
19
20
|
* @default { value: null, iconCss: null, groupBy: null}
|
|
20
|
-
|
|
21
|
+
* @deprecated
|
|
21
22
|
*/
|
|
22
23
|
fields?: FieldSettingsModel;
|
|
23
24
|
|
|
@@ -27,7 +28,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
27
28
|
* By default consider the casing.
|
|
28
29
|
*
|
|
29
30
|
* @default true
|
|
30
|
-
|
|
31
|
+
* @deprecated
|
|
31
32
|
*/
|
|
32
33
|
ignoreCase?: boolean;
|
|
33
34
|
|
|
@@ -61,7 +62,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
61
62
|
* {% codeBlock src='autocomplete/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
62
63
|
*
|
|
63
64
|
* @default {}
|
|
64
|
-
|
|
65
|
+
* @deprecated
|
|
65
66
|
*/
|
|
66
67
|
htmlAttributes?: { [key: string]: string };
|
|
67
68
|
|
|
@@ -72,7 +73,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
72
73
|
* {% codeBlock src='autocomplete/query/index.md' %}{% endcodeBlock %}
|
|
73
74
|
*
|
|
74
75
|
* @default null
|
|
75
|
-
|
|
76
|
+
* @deprecated
|
|
76
77
|
*/
|
|
77
78
|
query?: Query;
|
|
78
79
|
|
|
@@ -135,7 +136,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
135
136
|
*
|
|
136
137
|
* @default null
|
|
137
138
|
* @private
|
|
138
|
-
|
|
139
|
+
* @deprecated
|
|
139
140
|
*/
|
|
140
141
|
index?: number;
|
|
141
142
|
|
|
@@ -153,7 +154,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
153
154
|
* @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
|
|
154
155
|
* @aspType Syncfusion.EJ2.Inputs.FloatLabelType
|
|
155
156
|
* @isEnumeration true
|
|
156
|
-
|
|
157
|
+
* @deprecated
|
|
157
158
|
*/
|
|
158
159
|
floatLabelType?: FloatLabelType;
|
|
159
160
|
|
|
@@ -162,7 +163,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
162
163
|
*
|
|
163
164
|
* @default null
|
|
164
165
|
* @private
|
|
165
|
-
|
|
166
|
+
* @deprecated
|
|
166
167
|
*/
|
|
167
168
|
valueTemplate?: string;
|
|
168
169
|
|
|
@@ -171,7 +172,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
171
172
|
*
|
|
172
173
|
* @default null
|
|
173
174
|
* @private
|
|
174
|
-
|
|
175
|
+
* @deprecated
|
|
175
176
|
*/
|
|
176
177
|
filterBarPlaceholder?: string;
|
|
177
178
|
|
|
@@ -180,7 +181,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
180
181
|
*
|
|
181
182
|
* @default false
|
|
182
183
|
* @private
|
|
183
|
-
|
|
184
|
+
* @deprecated
|
|
184
185
|
*/
|
|
185
186
|
allowFiltering?: boolean;
|
|
186
187
|
|
|
@@ -189,7 +190,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
189
190
|
*
|
|
190
191
|
* @default null
|
|
191
192
|
* @private
|
|
192
|
-
|
|
193
|
+
* @deprecated
|
|
193
194
|
*/
|
|
194
195
|
text?: string;
|
|
195
196
|
|
|
@@ -29,10 +29,11 @@ export declare class AutoComplete extends ComboBox {
|
|
|
29
29
|
* * groupBy - Group the list items with it's related items by mapping groupBy field
|
|
30
30
|
*
|
|
31
31
|
* {% codeBlock src='autocomplete/fields/index.md' %}{% endcodeBlock %}
|
|
32
|
+
*
|
|
32
33
|
* > For more details about the field mapping refer to [`Data binding`](../../auto-complete/data-binding) documentation.
|
|
33
34
|
*
|
|
34
35
|
* @default { value: null, iconCss: null, groupBy: null}
|
|
35
|
-
|
|
36
|
+
* @deprecated
|
|
36
37
|
*/
|
|
37
38
|
fields: FieldSettingsModel;
|
|
38
39
|
/**
|
|
@@ -41,7 +42,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
41
42
|
* By default consider the casing.
|
|
42
43
|
*
|
|
43
44
|
* @default true
|
|
44
|
-
|
|
45
|
+
* @deprecated
|
|
45
46
|
*/
|
|
46
47
|
ignoreCase: boolean;
|
|
47
48
|
/**
|
|
@@ -71,7 +72,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
71
72
|
* {% codeBlock src='autocomplete/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
72
73
|
*
|
|
73
74
|
* @default {}
|
|
74
|
-
|
|
75
|
+
* @deprecated
|
|
75
76
|
*/
|
|
76
77
|
htmlAttributes: {
|
|
77
78
|
[key: string]: string;
|
|
@@ -83,7 +84,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
83
84
|
* {% codeBlock src='autocomplete/query/index.md' %}{% endcodeBlock %}
|
|
84
85
|
*
|
|
85
86
|
* @default null
|
|
86
|
-
|
|
87
|
+
* @deprecated
|
|
87
88
|
*/
|
|
88
89
|
query: Query;
|
|
89
90
|
/**
|
|
@@ -142,7 +143,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
142
143
|
*
|
|
143
144
|
* @default null
|
|
144
145
|
* @private
|
|
145
|
-
|
|
146
|
+
* @deprecated
|
|
146
147
|
*/
|
|
147
148
|
index: number;
|
|
148
149
|
/**
|
|
@@ -159,7 +160,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
159
160
|
* @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
|
|
160
161
|
* @aspType Syncfusion.EJ2.Inputs.FloatLabelType
|
|
161
162
|
* @isEnumeration true
|
|
162
|
-
|
|
163
|
+
* @deprecated
|
|
163
164
|
*/
|
|
164
165
|
floatLabelType: FloatLabelType;
|
|
165
166
|
/**
|
|
@@ -167,7 +168,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
167
168
|
*
|
|
168
169
|
* @default null
|
|
169
170
|
* @private
|
|
170
|
-
|
|
171
|
+
* @deprecated
|
|
171
172
|
*/
|
|
172
173
|
valueTemplate: string;
|
|
173
174
|
/**
|
|
@@ -175,7 +176,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
175
176
|
*
|
|
176
177
|
* @default null
|
|
177
178
|
* @private
|
|
178
|
-
|
|
179
|
+
* @deprecated
|
|
179
180
|
*/
|
|
180
181
|
filterBarPlaceholder: string;
|
|
181
182
|
/**
|
|
@@ -183,7 +184,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
183
184
|
*
|
|
184
185
|
* @default false
|
|
185
186
|
* @private
|
|
186
|
-
|
|
187
|
+
* @deprecated
|
|
187
188
|
*/
|
|
188
189
|
allowFiltering: boolean;
|
|
189
190
|
/**
|
|
@@ -191,7 +192,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
191
192
|
*
|
|
192
193
|
* @default null
|
|
193
194
|
* @private
|
|
194
|
-
|
|
195
|
+
* @deprecated
|
|
195
196
|
*/
|
|
196
197
|
text: string;
|
|
197
198
|
/**
|
|
@@ -216,11 +217,11 @@ export declare class AutoComplete extends ComboBox {
|
|
|
216
217
|
/**
|
|
217
218
|
* To filter the data from given data source by using query
|
|
218
219
|
*
|
|
219
|
-
* @param
|
|
220
|
-
* @param
|
|
221
|
-
* @param
|
|
220
|
+
* @param {Object[] | DataManager } dataSource - Set the data source to filter.
|
|
221
|
+
* @param {Query} query - Specify the query to filter the data.
|
|
222
|
+
* @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
|
|
222
223
|
* @returns {void}
|
|
223
|
-
|
|
224
|
+
* @deprecated
|
|
224
225
|
*/
|
|
225
226
|
filter(dataSource: {
|
|
226
227
|
[key: string]: Object;
|
|
@@ -236,23 +237,24 @@ export declare class AutoComplete extends ComboBox {
|
|
|
236
237
|
[key: string]: Object;
|
|
237
238
|
}[], fieldsSettings: FieldSettingsModel): FieldSettingsModel;
|
|
238
239
|
protected isFiltering(): boolean;
|
|
239
|
-
protected renderPopup(): void;
|
|
240
|
+
protected renderPopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
|
|
240
241
|
protected isEditTextBox(): boolean;
|
|
241
242
|
protected isPopupButton(): boolean;
|
|
242
243
|
protected isSelectFocusItem(element: Element): boolean;
|
|
244
|
+
protected setInputValue(newProp?: any, oldProp?: any): void;
|
|
243
245
|
/**
|
|
244
246
|
* Search the entered text and show it in the suggestion list if available.
|
|
245
247
|
*
|
|
246
248
|
* @returns {void}
|
|
247
|
-
|
|
249
|
+
* @deprecated
|
|
248
250
|
*/
|
|
249
|
-
showPopup(): void;
|
|
251
|
+
showPopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
|
|
250
252
|
/**
|
|
251
253
|
* Hides the popup if it is in open state.
|
|
252
254
|
*
|
|
253
255
|
* @returns {void}
|
|
254
256
|
*/
|
|
255
|
-
hidePopup(e?: KeyboardEventArgs): void;
|
|
257
|
+
hidePopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
|
|
256
258
|
/**
|
|
257
259
|
* Dynamically change the value of properties.
|
|
258
260
|
*
|
|
@@ -21,14 +21,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
21
21
|
/// <reference path='../combo-box/combo-box-model.d.ts'/>
|
|
22
22
|
import { Property, EventHandler, isNullOrUndefined, detach } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Event, Complex } from '@syncfusion/ej2-base';
|
|
24
|
-
import { removeClass,
|
|
24
|
+
import { removeClass, NotifyPropertyChanges } from '@syncfusion/ej2-base';
|
|
25
25
|
import { dropDownListClasses } from '../drop-down-list/drop-down-list';
|
|
26
26
|
import { ComboBox } from '../combo-box/combo-box';
|
|
27
27
|
import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';
|
|
28
28
|
import { Search } from '../common/incremental-search';
|
|
29
29
|
import { FieldSettings } from '../drop-down-base/drop-down-base';
|
|
30
30
|
import { Input } from '@syncfusion/ej2-inputs';
|
|
31
|
-
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
31
|
+
import { DataManager, Predicate, Query } from '@syncfusion/ej2-data';
|
|
32
32
|
dropDownListClasses.root = 'e-autocomplete';
|
|
33
33
|
dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
34
34
|
/**
|
|
@@ -52,10 +52,10 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
52
52
|
* @private
|
|
53
53
|
*/
|
|
54
54
|
function AutoComplete(options, element) {
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return
|
|
55
|
+
var _this_1 = _super.call(this, options, element) || this;
|
|
56
|
+
_this_1.isFiltered = false;
|
|
57
|
+
_this_1.searchList = false;
|
|
58
|
+
return _this_1;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Initialize the event handler
|
|
@@ -103,17 +103,17 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
103
103
|
return filterQuery;
|
|
104
104
|
};
|
|
105
105
|
AutoComplete.prototype.searchLists = function (e) {
|
|
106
|
-
var
|
|
106
|
+
var _this_1 = this;
|
|
107
107
|
this.isTyped = true;
|
|
108
108
|
this.isDataFetched = this.isSelectCustom = false;
|
|
109
109
|
if (isNullOrUndefined(this.list)) {
|
|
110
|
-
_super.prototype.renderList.call(this, true);
|
|
110
|
+
_super.prototype.renderList.call(this, e, true);
|
|
111
111
|
}
|
|
112
112
|
this.queryString = this.filterInput.value;
|
|
113
113
|
if (e.type !== 'mousedown' && (e.keyCode === 40 || e.keyCode === 38)) {
|
|
114
114
|
this.queryString = this.queryString === '' ? null : this.queryString;
|
|
115
115
|
this.beforePopupOpen = true;
|
|
116
|
-
this.resetList(this.dataSource, this.fields);
|
|
116
|
+
this.resetList(this.dataSource, this.fields, null, e);
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
this.isSelected = false;
|
|
@@ -125,38 +125,38 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
125
125
|
if (eventArgs.cancel) {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
_this_1.isFiltered = true;
|
|
129
|
+
_this_1.filterAction(dataSource, query, fields);
|
|
130
130
|
},
|
|
131
131
|
cancel: false
|
|
132
132
|
};
|
|
133
133
|
this.trigger('filtering', eventArgs, function (eventArgs) {
|
|
134
|
-
if (!eventArgs.cancel && !
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
if (!eventArgs.cancel && !_this_1.isFiltered && !eventArgs.preventDefaultAction) {
|
|
135
|
+
_this_1.searchList = true;
|
|
136
|
+
_this_1.filterAction(_this_1.dataSource, null, _this_1.fields, e);
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
140
|
/**
|
|
141
141
|
* To filter the data from given data source by using query
|
|
142
142
|
*
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
145
|
-
* @param
|
|
143
|
+
* @param {Object[] | DataManager } dataSource - Set the data source to filter.
|
|
144
|
+
* @param {Query} query - Specify the query to filter the data.
|
|
145
|
+
* @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
|
|
146
146
|
* @returns {void}
|
|
147
|
-
|
|
147
|
+
* @deprecated
|
|
148
148
|
*/
|
|
149
149
|
AutoComplete.prototype.filter = function (dataSource, query, fields) {
|
|
150
150
|
this.isFiltered = true;
|
|
151
151
|
this.filterAction(dataSource, query, fields);
|
|
152
152
|
};
|
|
153
|
-
AutoComplete.prototype.filterAction = function (dataSource, query, fields) {
|
|
153
|
+
AutoComplete.prototype.filterAction = function (dataSource, query, fields, e) {
|
|
154
154
|
this.beforePopupOpen = true;
|
|
155
155
|
if (this.queryString !== '' && (this.queryString.length >= this.minLength)) {
|
|
156
|
-
this.resetList(dataSource, fields, query);
|
|
156
|
+
this.resetList(dataSource, fields, query, e);
|
|
157
157
|
}
|
|
158
158
|
else {
|
|
159
|
-
this.hidePopup();
|
|
159
|
+
this.hidePopup(e);
|
|
160
160
|
this.beforePopupOpen = false;
|
|
161
161
|
}
|
|
162
162
|
this.renderReactTemplates();
|
|
@@ -182,7 +182,9 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
182
182
|
AutoComplete.prototype.postBackAction = function () {
|
|
183
183
|
if (this.autofill && !isNullOrUndefined(this.liCollections[0]) && this.searchList) {
|
|
184
184
|
var items = [this.liCollections[0]];
|
|
185
|
-
var
|
|
185
|
+
var dataSource = this.listData;
|
|
186
|
+
var type = this.typeOfData(dataSource).typeof;
|
|
187
|
+
var searchItem = Search(this.inputElement.value, items, 'StartsWith', this.ignoreCase, dataSource, this.fields, type);
|
|
186
188
|
this.searchList = false;
|
|
187
189
|
if (!isNullOrUndefined(searchItem.item)) {
|
|
188
190
|
_super.prototype.setAutoFill.call(this, this.liCollections[0], true);
|
|
@@ -191,6 +193,7 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
191
193
|
};
|
|
192
194
|
AutoComplete.prototype.setSelection = function (li, e) {
|
|
193
195
|
if (!this.isValidLI(li)) {
|
|
196
|
+
this.selectedLI = li;
|
|
194
197
|
return;
|
|
195
198
|
}
|
|
196
199
|
if (!isNullOrUndefined(e) && e.type === 'keydown' && e.action !== 'enter'
|
|
@@ -206,25 +209,24 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
206
209
|
e.action === 'home' || e.action === 'end' || e.action === 'pageUp' || e.action === 'pageDown');
|
|
207
210
|
_super.prototype.setAutoFill.call(this, li, isKeyNavigate);
|
|
208
211
|
}
|
|
209
|
-
attributes(this.inputElement, { 'aria-activedescendant': this.selectedLI ? this.selectedLI.id : null });
|
|
210
212
|
}
|
|
211
213
|
else {
|
|
212
214
|
_super.prototype.setSelection.call(this, li, e);
|
|
213
215
|
}
|
|
214
216
|
};
|
|
215
217
|
AutoComplete.prototype.listOption = function (dataSource, fieldsSettings) {
|
|
216
|
-
var
|
|
218
|
+
var _this_1 = this;
|
|
217
219
|
var fields = _super.prototype.listOption.call(this, dataSource, fieldsSettings);
|
|
218
220
|
if (isNullOrUndefined(fields.itemCreated)) {
|
|
219
221
|
fields.itemCreated = function (e) {
|
|
220
|
-
if (
|
|
221
|
-
if (
|
|
222
|
+
if (_this_1.highlight) {
|
|
223
|
+
if (_this_1.element.tagName === _this_1.getNgDirective() && _this_1.itemTemplate) {
|
|
222
224
|
setTimeout(function () {
|
|
223
|
-
highlightSearch(e.item,
|
|
225
|
+
highlightSearch(e.item, _this_1.queryString, _this_1.ignoreCase, _this_1.filterType);
|
|
224
226
|
}, 0);
|
|
225
227
|
}
|
|
226
228
|
else {
|
|
227
|
-
highlightSearch(e.item,
|
|
229
|
+
highlightSearch(e.item, _this_1.queryString, _this_1.ignoreCase, _this_1.filterType);
|
|
228
230
|
}
|
|
229
231
|
}
|
|
230
232
|
};
|
|
@@ -232,10 +234,10 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
232
234
|
else {
|
|
233
235
|
var itemCreated_1 = fields.itemCreated;
|
|
234
236
|
fields.itemCreated = function (e) {
|
|
235
|
-
if (
|
|
236
|
-
highlightSearch(e.item,
|
|
237
|
+
if (_this_1.highlight) {
|
|
238
|
+
highlightSearch(e.item, _this_1.queryString, _this_1.ignoreCase, _this_1.filterType);
|
|
237
239
|
}
|
|
238
|
-
itemCreated_1.apply(
|
|
240
|
+
itemCreated_1.apply(_this_1, [e]);
|
|
239
241
|
};
|
|
240
242
|
}
|
|
241
243
|
return fields;
|
|
@@ -243,9 +245,9 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
243
245
|
AutoComplete.prototype.isFiltering = function () {
|
|
244
246
|
return true;
|
|
245
247
|
};
|
|
246
|
-
AutoComplete.prototype.renderPopup = function () {
|
|
248
|
+
AutoComplete.prototype.renderPopup = function (e) {
|
|
247
249
|
this.list.scrollTop = 0;
|
|
248
|
-
_super.prototype.renderPopup.call(this);
|
|
250
|
+
_super.prototype.renderPopup.call(this, e);
|
|
249
251
|
};
|
|
250
252
|
AutoComplete.prototype.isEditTextBox = function () {
|
|
251
253
|
return true && this.inputElement.value.trim() !== '';
|
|
@@ -257,13 +259,37 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
257
259
|
AutoComplete.prototype.isSelectFocusItem = function (element) {
|
|
258
260
|
return false;
|
|
259
261
|
};
|
|
262
|
+
AutoComplete.prototype.setInputValue = function (newProp, oldProp) {
|
|
263
|
+
var oldValue = oldProp && oldProp.text ? oldProp.text : oldProp ? oldProp.value : oldProp;
|
|
264
|
+
var value = newProp && newProp.text ? newProp.text : newProp && newProp.value ? newProp.value : this.value;
|
|
265
|
+
if (value && this.typedString === '' && !this.allowCustom && !(this.dataSource instanceof DataManager)) {
|
|
266
|
+
var checkFields_1_1 = this.typeOfData(this.dataSource).typeof === 'string' ? '' : this.fields.value;
|
|
267
|
+
var listLength_1 = this.getItems().length;
|
|
268
|
+
var query = new Query();
|
|
269
|
+
var _this_2 = this;
|
|
270
|
+
new DataManager(this.dataSource).executeQuery(query.where(new Predicate(checkFields_1_1, 'equal', value)))
|
|
271
|
+
.then(function (e) {
|
|
272
|
+
if (e.result.length > 0) {
|
|
273
|
+
_this_2.value = checkFields_1_1 !== '' ? e.result[0][_this_2.fields.value].toString() : e.result[0].toString();
|
|
274
|
+
_this_2.addItem(e.result, listLength_1);
|
|
275
|
+
_this_2.updateValues();
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
newProp && newProp.text ? _this_2.setOldText(oldValue) : newProp && newProp.value ? _this_2.setOldValue(oldValue) : _this_2.updateValues();
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
else if (newProp) {
|
|
283
|
+
newProp.text ? this.setOldText(oldValue) : this.setOldValue(oldValue);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
260
286
|
/**
|
|
261
287
|
* Search the entered text and show it in the suggestion list if available.
|
|
262
288
|
*
|
|
263
289
|
* @returns {void}
|
|
264
|
-
|
|
290
|
+
* @deprecated
|
|
265
291
|
*/
|
|
266
|
-
AutoComplete.prototype.showPopup = function () {
|
|
292
|
+
AutoComplete.prototype.showPopup = function (e) {
|
|
267
293
|
if (!this.enabled) {
|
|
268
294
|
return;
|
|
269
295
|
}
|
|
@@ -274,10 +300,10 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
274
300
|
this.beforePopupOpen = true;
|
|
275
301
|
this.preventAutoFill = true;
|
|
276
302
|
if (isNullOrUndefined(this.list)) {
|
|
277
|
-
this.renderList();
|
|
303
|
+
this.renderList(e);
|
|
278
304
|
}
|
|
279
305
|
else {
|
|
280
|
-
this.resetList(this.dataSource, this.fields);
|
|
306
|
+
this.resetList(this.dataSource, this.fields, null, e);
|
|
281
307
|
}
|
|
282
308
|
};
|
|
283
309
|
/**
|
|
@@ -308,6 +334,10 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
308
334
|
if (this.showPopupButton) {
|
|
309
335
|
var button = Input.appendSpan(dropDownListClasses.icon, this.inputWrapper.container, this.createElement);
|
|
310
336
|
this.inputWrapper.buttons[0] = button;
|
|
337
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
338
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
339
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
340
|
+
}
|
|
311
341
|
if (this.inputWrapper && this.inputWrapper.buttons && this.inputWrapper.buttons[0]) {
|
|
312
342
|
EventHandler.add(this.inputWrapper.buttons[0], 'click', this.dropDownClick, this);
|
|
313
343
|
}
|