@syncfusion/ej2-dropdowns 26.2.13 → 27.1.50
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/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +1541 -841
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +1432 -709
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +14 -13
- package/src/auto-complete/auto-complete-model.d.ts +1 -1
- package/src/auto-complete/auto-complete.d.ts +2 -0
- package/src/auto-complete/auto-complete.js +52 -22
- package/src/combo-box/combo-box-model.d.ts +12 -5
- package/src/combo-box/combo-box.d.ts +10 -4
- package/src/combo-box/combo-box.js +73 -38
- package/src/common/incremental-search.d.ts +26 -11
- package/src/common/incremental-search.js +30 -16
- package/src/common/interface.d.ts +5 -5
- package/src/common/virtual-scroll.js +69 -36
- package/src/drop-down-base/drop-down-base-model.d.ts +1 -1
- package/src/drop-down-base/drop-down-base.d.ts +7 -2
- package/src/drop-down-base/drop-down-base.js +101 -69
- package/src/drop-down-list/drop-down-list-model.d.ts +14 -7
- package/src/drop-down-list/drop-down-list.d.ts +11 -4
- package/src/drop-down-list/drop-down-list.js +303 -178
- package/src/drop-down-tree/drop-down-tree-model.d.ts +19 -0
- package/src/drop-down-tree/drop-down-tree.d.ts +26 -2
- package/src/drop-down-tree/drop-down-tree.js +206 -68
- package/src/list-box/list-box.js +64 -24
- package/src/mention/mention.d.ts +8 -0
- package/src/mention/mention.js +87 -24
- package/src/multi-select/checkbox-selection.js +3 -2
- package/src/multi-select/interface.d.ts +1 -0
- package/src/multi-select/multi-select-model.d.ts +15 -8
- package/src/multi-select/multi-select.d.ts +15 -5
- package/src/multi-select/multi-select.js +444 -237
- package/styles/auto-complete/bootstrap-dark.css +0 -50
- package/styles/auto-complete/bootstrap.css +0 -50
- package/styles/auto-complete/bootstrap4.css +0 -68
- package/styles/auto-complete/bootstrap5-dark.css +0 -54
- package/styles/auto-complete/bootstrap5.3.css +101 -0
- package/styles/auto-complete/bootstrap5.3.scss +4 -0
- package/styles/auto-complete/bootstrap5.css +0 -54
- package/styles/auto-complete/fabric-dark.css +0 -49
- package/styles/auto-complete/fabric.css +0 -42
- package/styles/auto-complete/fluent-dark.css +0 -41
- package/styles/auto-complete/fluent.css +0 -41
- package/styles/auto-complete/fluent2.css +1 -36
- package/styles/auto-complete/highcontrast-light.css +0 -37
- package/styles/auto-complete/highcontrast.css +0 -37
- package/styles/auto-complete/material-dark.css +0 -34
- package/styles/auto-complete/material.css +0 -55
- package/styles/auto-complete/material3-dark.css +0 -59
- package/styles/auto-complete/material3.css +0 -59
- package/styles/auto-complete/tailwind-dark.css +0 -35
- package/styles/auto-complete/tailwind.css +0 -35
- package/styles/bootstrap-dark-lite.css +2755 -0
- package/styles/bootstrap-dark-lite.scss +28 -0
- package/styles/bootstrap-dark.css +655 -605
- package/styles/bootstrap-dark.scss +6 -1
- package/styles/bootstrap-lite.css +2754 -0
- package/styles/bootstrap-lite.scss +28 -0
- package/styles/bootstrap.css +661 -611
- package/styles/bootstrap.scss +6 -1
- package/styles/bootstrap4-lite.css +2858 -0
- package/styles/bootstrap4-lite.scss +28 -0
- package/styles/bootstrap4.css +831 -756
- package/styles/bootstrap4.scss +6 -1
- package/styles/bootstrap5-dark-lite.css +2832 -0
- package/styles/bootstrap5-dark-lite.scss +28 -0
- package/styles/bootstrap5-dark.css +702 -646
- package/styles/bootstrap5-dark.scss +6 -1
- package/styles/bootstrap5-lite.css +2832 -0
- package/styles/bootstrap5-lite.scss +28 -0
- package/styles/bootstrap5.3-lite.css +2826 -0
- package/styles/bootstrap5.3-lite.scss +28 -0
- package/styles/bootstrap5.3.css +3557 -0
- package/styles/bootstrap5.3.scss +33 -0
- package/styles/bootstrap5.css +702 -646
- package/styles/bootstrap5.scss +6 -1
- package/styles/combo-box/bootstrap-dark.css +0 -50
- package/styles/combo-box/bootstrap.css +0 -50
- package/styles/combo-box/bootstrap4.css +0 -68
- package/styles/combo-box/bootstrap5-dark.css +0 -54
- package/styles/combo-box/bootstrap5.3.css +101 -0
- package/styles/combo-box/bootstrap5.3.scss +4 -0
- package/styles/combo-box/bootstrap5.css +0 -54
- package/styles/combo-box/fabric-dark.css +0 -49
- package/styles/combo-box/fabric.css +0 -42
- package/styles/combo-box/fluent-dark.css +0 -41
- package/styles/combo-box/fluent.css +0 -41
- package/styles/combo-box/fluent2.css +1 -36
- package/styles/combo-box/highcontrast-light.css +0 -37
- package/styles/combo-box/highcontrast.css +0 -37
- package/styles/combo-box/material-dark.css +0 -34
- package/styles/combo-box/material.css +0 -55
- package/styles/combo-box/material3-dark.css +0 -59
- package/styles/combo-box/material3.css +0 -59
- package/styles/combo-box/tailwind-dark.css +0 -35
- package/styles/combo-box/tailwind.css +0 -35
- package/styles/drop-down-base/_bds-definition.scss +0 -22
- package/styles/drop-down-base/_bigger.scss +195 -0
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +0 -5
- package/styles/drop-down-base/_bootstrap-definition.scss +0 -5
- package/styles/drop-down-base/_bootstrap4-definition.scss +0 -9
- package/styles/drop-down-base/_bootstrap5-definition.scss +0 -19
- package/styles/drop-down-base/_bootstrap5.3-definition.scss +2 -21
- package/styles/drop-down-base/_fabric-dark-definition.scss +0 -5
- package/styles/drop-down-base/_fabric-definition.scss +0 -5
- package/styles/drop-down-base/_fluent-definition.scss +0 -19
- package/styles/drop-down-base/_fluent2-definition.scss +2 -23
- package/styles/drop-down-base/_fusionnew-definition.scss +0 -19
- package/styles/drop-down-base/_highcontrast-definition.scss +0 -9
- package/styles/drop-down-base/_highcontrast-light-definition.scss +0 -9
- package/styles/drop-down-base/_layout.scss +1 -57
- package/styles/drop-down-base/_material-dark-definition.scss +0 -4
- package/styles/drop-down-base/_material-definition.scss +0 -4
- package/styles/drop-down-base/_material3-definition.scss +0 -3
- package/styles/drop-down-base/_tailwind-definition.scss +0 -22
- package/styles/drop-down-base/_theme.scss +10 -91
- package/styles/drop-down-base/bootstrap-dark.css +75 -75
- package/styles/drop-down-base/bootstrap-dark.scss +1 -0
- package/styles/drop-down-base/bootstrap.css +75 -75
- package/styles/drop-down-base/bootstrap.scss +1 -0
- package/styles/drop-down-base/bootstrap4.css +79 -79
- package/styles/drop-down-base/bootstrap4.scss +1 -0
- package/styles/drop-down-base/bootstrap5-dark.css +89 -89
- package/styles/drop-down-base/bootstrap5-dark.scss +1 -0
- package/styles/drop-down-base/bootstrap5.3.css +411 -0
- package/styles/drop-down-base/bootstrap5.3.scss +4 -0
- package/styles/drop-down-base/bootstrap5.css +89 -89
- package/styles/drop-down-base/bootstrap5.scss +1 -0
- package/styles/drop-down-base/fabric-dark.css +75 -75
- package/styles/drop-down-base/fabric-dark.scss +1 -0
- package/styles/drop-down-base/fabric.css +75 -75
- package/styles/drop-down-base/fabric.scss +1 -0
- package/styles/drop-down-base/fluent-dark.css +101 -101
- package/styles/drop-down-base/fluent-dark.scss +1 -0
- package/styles/drop-down-base/fluent.css +101 -101
- package/styles/drop-down-base/fluent.scss +1 -0
- package/styles/drop-down-base/fluent2.css +97 -95
- package/styles/drop-down-base/fluent2.scss +1 -0
- package/styles/drop-down-base/highcontrast-light.css +75 -77
- package/styles/drop-down-base/highcontrast-light.scss +1 -0
- package/styles/drop-down-base/highcontrast.css +75 -77
- package/styles/drop-down-base/highcontrast.scss +1 -0
- package/styles/drop-down-base/material-dark.css +74 -74
- package/styles/drop-down-base/material-dark.scss +1 -0
- package/styles/drop-down-base/material.css +74 -74
- package/styles/drop-down-base/material.scss +1 -0
- package/styles/drop-down-base/material3-dark.css +74 -74
- package/styles/drop-down-base/material3-dark.scss +1 -0
- package/styles/drop-down-base/material3.css +74 -74
- package/styles/drop-down-base/material3.scss +1 -0
- package/styles/drop-down-base/tailwind-dark.css +135 -135
- package/styles/drop-down-base/tailwind-dark.scss +1 -0
- package/styles/drop-down-base/tailwind.css +135 -135
- package/styles/drop-down-base/tailwind.scss +1 -0
- package/styles/drop-down-list/_bds-definition.scss +0 -34
- package/styles/drop-down-list/_bigger.scss +713 -0
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +0 -64
- package/styles/drop-down-list/_bootstrap-definition.scss +0 -64
- package/styles/drop-down-list/_bootstrap4-definition.scss +0 -81
- package/styles/drop-down-list/_bootstrap5-definition.scss +0 -67
- package/styles/drop-down-list/_bootstrap5.3-definition.scss +1 -67
- package/styles/drop-down-list/_fabric-dark-definition.scss +0 -57
- package/styles/drop-down-list/_fabric-definition.scss +0 -56
- package/styles/drop-down-list/_fluent-definition.scss +0 -57
- package/styles/drop-down-list/_fluent2-definition.scss +2 -35
- package/styles/drop-down-list/_fusionnew-definition.scss +0 -67
- package/styles/drop-down-list/_highcontrast-definition.scss +0 -60
- package/styles/drop-down-list/_highcontrast-light-definition.scss +0 -60
- package/styles/drop-down-list/_layout.scss +4 -82
- package/styles/drop-down-list/_material-dark-definition.scss +0 -33
- package/styles/drop-down-list/_material-definition.scss +0 -55
- package/styles/drop-down-list/_material3-definition.scss +0 -58
- package/styles/drop-down-list/_tailwind-definition.scss +0 -34
- package/styles/drop-down-list/_theme.scss +5 -0
- package/styles/drop-down-list/bootstrap-dark.css +91 -91
- package/styles/drop-down-list/bootstrap-dark.scss +1 -0
- package/styles/drop-down-list/bootstrap.css +91 -91
- package/styles/drop-down-list/bootstrap.scss +1 -0
- package/styles/drop-down-list/bootstrap4.css +105 -105
- package/styles/drop-down-list/bootstrap4.scss +1 -0
- package/styles/drop-down-list/bootstrap5-dark.css +87 -101
- package/styles/drop-down-list/bootstrap5-dark.scss +1 -0
- package/styles/drop-down-list/bootstrap5.3.css +481 -0
- package/styles/drop-down-list/bootstrap5.3.scss +10 -0
- package/styles/drop-down-list/bootstrap5.css +87 -101
- package/styles/drop-down-list/bootstrap5.scss +1 -0
- package/styles/drop-down-list/fabric-dark.css +90 -90
- package/styles/drop-down-list/fabric-dark.scss +1 -0
- package/styles/drop-down-list/fabric.css +90 -83
- package/styles/drop-down-list/fabric.scss +1 -0
- package/styles/drop-down-list/fluent-dark.css +74 -88
- package/styles/drop-down-list/fluent-dark.scss +1 -0
- package/styles/drop-down-list/fluent.css +74 -88
- package/styles/drop-down-list/fluent.scss +1 -0
- package/styles/drop-down-list/fluent2.css +77 -93
- package/styles/drop-down-list/fluent2.scss +1 -0
- package/styles/drop-down-list/highcontrast-light.css +79 -80
- package/styles/drop-down-list/highcontrast-light.scss +1 -0
- package/styles/drop-down-list/highcontrast.css +79 -80
- package/styles/drop-down-list/highcontrast.scss +1 -0
- package/styles/drop-down-list/material-dark.css +74 -73
- package/styles/drop-down-list/material-dark.scss +1 -0
- package/styles/drop-down-list/material.css +95 -94
- package/styles/drop-down-list/material.scss +1 -0
- package/styles/drop-down-list/material3-dark.css +99 -98
- package/styles/drop-down-list/material3-dark.scss +1 -0
- package/styles/drop-down-list/material3.css +99 -98
- package/styles/drop-down-list/material3.scss +1 -0
- package/styles/drop-down-list/tailwind-dark.css +96 -78
- package/styles/drop-down-list/tailwind-dark.scss +1 -0
- package/styles/drop-down-list/tailwind.css +96 -78
- package/styles/drop-down-list/tailwind.scss +1 -0
- package/styles/drop-down-tree/_bigger.scss +522 -0
- package/styles/drop-down-tree/_bootstrap5.3-definition.scss +5 -5
- package/styles/drop-down-tree/_fluent2-definition.scss +5 -3
- package/styles/drop-down-tree/_layout.scss +15 -491
- package/styles/drop-down-tree/_theme.scss +21 -4
- package/styles/drop-down-tree/bootstrap-dark.css +32 -37
- package/styles/drop-down-tree/bootstrap-dark.scss +1 -0
- package/styles/drop-down-tree/bootstrap.css +32 -37
- package/styles/drop-down-tree/bootstrap.scss +1 -0
- package/styles/drop-down-tree/bootstrap4.css +38 -47
- package/styles/drop-down-tree/bootstrap4.scss +1 -0
- package/styles/drop-down-tree/bootstrap5-dark.css +39 -55
- package/styles/drop-down-tree/bootstrap5-dark.scss +1 -0
- package/styles/drop-down-tree/bootstrap5.3.css +463 -0
- package/styles/drop-down-tree/bootstrap5.3.scss +10 -0
- package/styles/drop-down-tree/bootstrap5.css +39 -55
- package/styles/drop-down-tree/bootstrap5.scss +1 -0
- package/styles/drop-down-tree/fabric-dark.css +32 -37
- package/styles/drop-down-tree/fabric-dark.scss +1 -0
- package/styles/drop-down-tree/fabric.css +32 -37
- package/styles/drop-down-tree/fabric.scss +1 -0
- package/styles/drop-down-tree/fluent-dark.css +32 -51
- package/styles/drop-down-tree/fluent-dark.scss +1 -0
- package/styles/drop-down-tree/fluent.css +32 -51
- package/styles/drop-down-tree/fluent.scss +1 -0
- package/styles/drop-down-tree/fluent2.css +38 -53
- package/styles/drop-down-tree/fluent2.scss +1 -0
- package/styles/drop-down-tree/highcontrast-light.css +32 -39
- package/styles/drop-down-tree/highcontrast-light.scss +1 -0
- package/styles/drop-down-tree/highcontrast.css +41 -48
- package/styles/drop-down-tree/highcontrast.scss +1 -0
- package/styles/drop-down-tree/material-dark.css +32 -36
- package/styles/drop-down-tree/material-dark.scss +1 -0
- package/styles/drop-down-tree/material.css +32 -36
- package/styles/drop-down-tree/material.scss +1 -0
- package/styles/drop-down-tree/material3-dark.css +33 -37
- package/styles/drop-down-tree/material3-dark.scss +1 -0
- package/styles/drop-down-tree/material3.css +33 -37
- package/styles/drop-down-tree/material3.scss +1 -0
- package/styles/drop-down-tree/tailwind-dark.css +51 -73
- package/styles/drop-down-tree/tailwind-dark.scss +1 -0
- package/styles/drop-down-tree/tailwind.css +51 -73
- package/styles/drop-down-tree/tailwind.scss +1 -0
- package/styles/fabric-dark-lite.css +2733 -0
- package/styles/fabric-dark-lite.scss +28 -0
- package/styles/fabric-dark.css +668 -612
- package/styles/fabric-dark.scss +6 -1
- package/styles/fabric-lite.css +2734 -0
- package/styles/fabric-lite.scss +28 -0
- package/styles/fabric.css +673 -610
- package/styles/fabric.scss +6 -1
- package/styles/fluent-dark-lite.css +2869 -0
- package/styles/fluent-dark-lite.scss +28 -0
- package/styles/fluent-dark.css +707 -679
- package/styles/fluent-dark.scss +6 -1
- package/styles/fluent-lite.css +2869 -0
- package/styles/fluent-lite.scss +28 -0
- package/styles/fluent.css +707 -679
- package/styles/fluent.scss +6 -1
- package/styles/fluent2-lite.css +3053 -0
- package/styles/fluent2-lite.scss +28 -0
- package/styles/fluent2.css +746 -676
- package/styles/fluent2.scss +6 -1
- package/styles/highcontrast-light-lite.css +2850 -0
- package/styles/highcontrast-light-lite.scss +28 -0
- package/styles/highcontrast-light.css +655 -602
- package/styles/highcontrast-light.scss +6 -1
- package/styles/highcontrast-lite.css +2872 -0
- package/styles/highcontrast-lite.scss +28 -0
- package/styles/highcontrast.css +673 -620
- package/styles/highcontrast.scss +6 -1
- package/styles/list-box/_bigger.scss +173 -0
- package/styles/list-box/_bootstrap5-definition.scss +1 -0
- package/styles/list-box/_bootstrap5.3-definition.scss +17 -14
- package/styles/list-box/_fluent2-definition.scss +2 -0
- package/styles/list-box/_layout.scss +16 -127
- package/styles/list-box/_theme.scss +14 -51
- package/styles/list-box/bootstrap-dark.css +124 -130
- package/styles/list-box/bootstrap-dark.scss +1 -0
- package/styles/list-box/bootstrap.css +130 -136
- package/styles/list-box/bootstrap.scss +1 -0
- package/styles/list-box/bootstrap4.css +174 -184
- package/styles/list-box/bootstrap4.scss +1 -0
- package/styles/list-box/bootstrap5-dark.css +130 -150
- package/styles/list-box/bootstrap5-dark.scss +1 -0
- package/styles/list-box/bootstrap5.3.css +952 -0
- package/styles/list-box/bootstrap5.3.scss +6 -0
- package/styles/list-box/bootstrap5.css +130 -150
- package/styles/list-box/bootstrap5.scss +1 -0
- package/styles/list-box/fabric-dark.css +124 -130
- package/styles/list-box/fabric-dark.scss +1 -0
- package/styles/list-box/fabric.css +130 -136
- package/styles/list-box/fabric.scss +1 -0
- package/styles/list-box/fluent-dark.css +130 -150
- package/styles/list-box/fluent-dark.scss +1 -0
- package/styles/list-box/fluent.css +130 -150
- package/styles/list-box/fluent.scss +1 -0
- package/styles/list-box/fluent2.css +124 -157
- package/styles/list-box/fluent2.scss +1 -0
- package/styles/list-box/highcontrast-light.css +124 -132
- package/styles/list-box/highcontrast-light.scss +1 -0
- package/styles/list-box/highcontrast.css +130 -138
- package/styles/list-box/highcontrast.scss +1 -0
- package/styles/list-box/material-dark.css +124 -129
- package/styles/list-box/material-dark.scss +1 -0
- package/styles/list-box/material.css +130 -135
- package/styles/list-box/material.scss +1 -0
- package/styles/list-box/material3-dark.css +124 -129
- package/styles/list-box/material3-dark.scss +1 -0
- package/styles/list-box/material3.css +124 -129
- package/styles/list-box/material3.scss +1 -0
- package/styles/list-box/tailwind-dark.css +140 -163
- package/styles/list-box/tailwind-dark.scss +1 -0
- package/styles/list-box/tailwind.css +140 -163
- package/styles/list-box/tailwind.scss +1 -0
- package/styles/material-dark-lite.css +3516 -0
- package/styles/material-dark-lite.scss +28 -0
- package/styles/material-dark.css +1301 -1190
- package/styles/material-dark.scss +6 -1
- package/styles/material-lite.css +3548 -0
- package/styles/material-lite.scss +28 -0
- package/styles/material.css +1312 -1201
- package/styles/material.scss +6 -1
- package/styles/material3-dark-lite.css +3462 -0
- package/styles/material3-dark-lite.scss +28 -0
- package/styles/material3-dark.css +1618 -1249
- package/styles/material3-dark.scss +6 -1
- package/styles/material3-lite.css +3464 -0
- package/styles/material3-lite.scss +28 -0
- package/styles/material3.css +1618 -1249
- package/styles/material3.scss +6 -1
- package/styles/mention/bootstrap-dark.css +0 -5
- package/styles/mention/bootstrap.css +0 -5
- package/styles/mention/bootstrap4.css +0 -9
- package/styles/mention/bootstrap5-dark.css +0 -19
- package/styles/mention/bootstrap5.3.css +67 -0
- package/styles/mention/bootstrap5.3.scss +6 -0
- package/styles/mention/bootstrap5.css +0 -19
- package/styles/mention/fabric-dark.css +0 -5
- package/styles/mention/fabric.css +0 -5
- package/styles/mention/fluent-dark.css +0 -19
- package/styles/mention/fluent.css +0 -19
- package/styles/mention/fluent2.css +0 -22
- package/styles/mention/highcontrast-light.css +0 -7
- package/styles/mention/highcontrast.css +0 -7
- package/styles/mention/material-dark.css +0 -4
- package/styles/mention/material.css +0 -4
- package/styles/mention/material3-dark.css +0 -4
- package/styles/mention/material3.css +0 -4
- package/styles/mention/tailwind-dark.css +0 -22
- package/styles/mention/tailwind.css +0 -22
- package/styles/multi-select/_bds-definition.scss +0 -5
- package/styles/multi-select/_bigger.scss +2002 -0
- package/styles/multi-select/_bootstrap-dark-definition.scss +0 -9
- package/styles/multi-select/_bootstrap-definition.scss +0 -9
- package/styles/multi-select/_bootstrap4-definition.scss +0 -44
- package/styles/multi-select/_bootstrap5-definition.scss +0 -5
- package/styles/multi-select/_bootstrap5.3-definition.scss +0 -5
- package/styles/multi-select/_fabric-dark-definition.scss +2 -4
- package/styles/multi-select/_fabric-definition.scss +2 -4
- package/styles/multi-select/_fluent-definition.scss +0 -10
- package/styles/multi-select/_fluent2-definition.scss +2 -5
- package/styles/multi-select/_fusionnew-definition.scss +0 -5
- package/styles/multi-select/_highcontrast-definition.scss +1 -2
- package/styles/multi-select/_highcontrast-light-definition.scss +1 -2
- package/styles/multi-select/_layout.scss +33 -934
- package/styles/multi-select/_tailwind-definition.scss +0 -5
- package/styles/multi-select/_theme.scss +13 -34
- package/styles/multi-select/bootstrap-dark.css +314 -273
- package/styles/multi-select/bootstrap-dark.scss +1 -0
- package/styles/multi-select/bootstrap.css +314 -273
- package/styles/multi-select/bootstrap.scss +1 -0
- package/styles/multi-select/bootstrap4.css +405 -347
- package/styles/multi-select/bootstrap4.scss +1 -0
- package/styles/multi-select/bootstrap5-dark.css +350 -320
- package/styles/multi-select/bootstrap5-dark.scss +1 -0
- package/styles/multi-select/bootstrap5.3.css +1424 -0
- package/styles/multi-select/bootstrap5.3.scss +10 -0
- package/styles/multi-select/bootstrap5.css +350 -320
- package/styles/multi-select/bootstrap5.scss +1 -0
- package/styles/multi-select/fabric-dark.css +320 -273
- package/styles/multi-select/fabric-dark.scss +1 -0
- package/styles/multi-select/fabric.css +320 -273
- package/styles/multi-select/fabric.scss +1 -0
- package/styles/multi-select/fluent-dark.css +366 -361
- package/styles/multi-select/fluent-dark.scss +1 -0
- package/styles/multi-select/fluent.css +366 -361
- package/styles/multi-select/fluent.scss +1 -0
- package/styles/multi-select/fluent2.css +399 -355
- package/styles/multi-select/fluent2.scss +1 -0
- package/styles/multi-select/highcontrast-light.css +321 -278
- package/styles/multi-select/highcontrast-light.scss +1 -0
- package/styles/multi-select/highcontrast.css +321 -278
- package/styles/multi-select/highcontrast.scss +1 -0
- package/styles/multi-select/icons/_bootstrap4.scss +0 -9
- package/styles/multi-select/icons/_fluent.scss +0 -21
- package/styles/multi-select/icons/_fluent2.scss +5 -354
- package/styles/multi-select/icons/_material-dark.scss +5 -354
- package/styles/multi-select/icons/_material.scss +5 -354
- package/styles/multi-select/icons/_material3.scss +5 -354
- package/styles/multi-select/material-dark.css +960 -857
- package/styles/multi-select/material-dark.scss +1 -0
- package/styles/multi-select/material.css +960 -857
- package/styles/multi-select/material.scss +1 -0
- package/styles/multi-select/material3-dark.css +1277 -916
- package/styles/multi-select/material3-dark.scss +1 -0
- package/styles/multi-select/material3.css +1277 -916
- package/styles/multi-select/material3.scss +1 -0
- package/styles/multi-select/tailwind-dark.css +351 -327
- package/styles/multi-select/tailwind-dark.scss +1 -0
- package/styles/multi-select/tailwind.css +351 -327
- package/styles/multi-select/tailwind.scss +1 -0
- package/styles/tailwind-dark-lite.css +2816 -0
- package/styles/tailwind-dark-lite.scss +28 -0
- package/styles/tailwind-dark.css +933 -848
- package/styles/tailwind-dark.scss +6 -1
- package/styles/tailwind-lite.css +2816 -0
- package/styles/tailwind-lite.scss +28 -0
- package/styles/tailwind.css +933 -848
- package/styles/tailwind.scss +6 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 27.1.50
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@27.1.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-yXBzRSQUFyq8m1WpqdZO09nFfx7e2oQ+xMIE4ZMaOFUTSKNfhSvhFZyy5ZKbTtG5OF3K8yS+Gwma9XWJqCaE0g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -31,26 +31,27 @@
|
|
|
31
31
|
"/@syncfusion/ej2-querybuilder",
|
|
32
32
|
"/@syncfusion/ej2-react-dropdowns",
|
|
33
33
|
"/@syncfusion/ej2-ribbon",
|
|
34
|
+
"/@syncfusion/ej2-richtexteditor",
|
|
34
35
|
"/@syncfusion/ej2-schedule",
|
|
35
36
|
"/@syncfusion/ej2-spreadsheet",
|
|
36
37
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
37
38
|
],
|
|
38
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-
|
|
39
|
-
"_shasum": "
|
|
39
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-27.1.48.tgz",
|
|
40
|
+
"_shasum": "3a2629ba43646e25b3720200f1b1c83f028ba800",
|
|
40
41
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
41
|
-
"_where": "/jenkins/workspace/elease-
|
|
42
|
+
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
42
43
|
"author": {
|
|
43
44
|
"name": "Syncfusion Inc."
|
|
44
45
|
},
|
|
45
46
|
"bundleDependencies": false,
|
|
46
47
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~
|
|
48
|
-
"@syncfusion/ej2-data": "~
|
|
49
|
-
"@syncfusion/ej2-inputs": "~
|
|
50
|
-
"@syncfusion/ej2-lists": "~
|
|
51
|
-
"@syncfusion/ej2-navigations": "~
|
|
52
|
-
"@syncfusion/ej2-notifications": "~
|
|
53
|
-
"@syncfusion/ej2-popups": "~
|
|
48
|
+
"@syncfusion/ej2-base": "~27.1.50",
|
|
49
|
+
"@syncfusion/ej2-data": "~27.1.50",
|
|
50
|
+
"@syncfusion/ej2-inputs": "~27.1.50",
|
|
51
|
+
"@syncfusion/ej2-lists": "~27.1.50",
|
|
52
|
+
"@syncfusion/ej2-navigations": "~27.1.50",
|
|
53
|
+
"@syncfusion/ej2-notifications": "~27.1.50",
|
|
54
|
+
"@syncfusion/ej2-popups": "~27.1.50"
|
|
54
55
|
},
|
|
55
56
|
"deprecated": false,
|
|
56
57
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"module": "./index.js",
|
|
76
77
|
"name": "@syncfusion/ej2-dropdowns",
|
|
77
78
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "
|
|
79
|
+
"version": "27.1.50",
|
|
79
80
|
"sideEffects": false,
|
|
80
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
81
82
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, EventHandler, KeyboardEventArgs, isNullOrUndefined, detach, getValue } from '@syncfusion/ej2-base';import { Event, EmitType, Complex } from '@syncfusion/ej2-base';import { removeClass,
|
|
1
|
+
import { Property, EventHandler, KeyboardEventArgs, isNullOrUndefined, detach, getValue } from '@syncfusion/ej2-base';import { Event, EmitType, Complex } from '@syncfusion/ej2-base';import { removeClass, 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
|
/**
|
|
@@ -248,6 +248,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
248
248
|
/**
|
|
249
249
|
* Search the entered text and show it in the suggestion list if available.
|
|
250
250
|
*
|
|
251
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - The event object.
|
|
251
252
|
* @returns {void}
|
|
252
253
|
|
|
253
254
|
*/
|
|
@@ -255,6 +256,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
255
256
|
/**
|
|
256
257
|
* Hides the popup if it is in open state.
|
|
257
258
|
*
|
|
259
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - The event object.
|
|
258
260
|
* @returns {void}
|
|
259
261
|
*/
|
|
260
262
|
hidePopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
|
|
@@ -96,7 +96,7 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
if (!isNullOrUndefined(this.suggestionCount) && !this.enableVirtualization) {
|
|
99
|
-
// Since
|
|
99
|
+
// Since default value of suggestioncount is 20, checked the condition
|
|
100
100
|
if (this.suggestionCount !== 20) {
|
|
101
101
|
for (var queryElements = 0; queryElements < filterQuery.queries.length; queryElements++) {
|
|
102
102
|
if (filterQuery.queries[queryElements].fn === 'onTake') {
|
|
@@ -116,14 +116,17 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
116
116
|
querySkipValue = filterQuery.queries[queryElements].e.nos;
|
|
117
117
|
}
|
|
118
118
|
if (filterQuery.queries[queryElements].fn === 'onTake') {
|
|
119
|
-
queryTakeValue = takeValue <= filterQuery.queries[queryElements].e.nos
|
|
119
|
+
queryTakeValue = takeValue <= filterQuery.queries[queryElements].e.nos
|
|
120
|
+
? filterQuery.queries[queryElements].e.nos
|
|
121
|
+
: takeValue;
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
if (queryTakeValue <= 0 && this.query && this.query.queries.length > 0) {
|
|
124
126
|
for (var queryElements = 0; queryElements < this.query.queries.length; queryElements++) {
|
|
125
127
|
if (this.query.queries[queryElements].fn === 'onTake') {
|
|
126
|
-
|
|
128
|
+
var currentTakeValue = this.query.queries[queryElements].e.nos;
|
|
129
|
+
queryTakeValue = takeValue <= currentTakeValue ? currentTakeValue : takeValue;
|
|
127
130
|
}
|
|
128
131
|
}
|
|
129
132
|
}
|
|
@@ -136,7 +139,8 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
136
139
|
continue;
|
|
137
140
|
}
|
|
138
141
|
if (filterQuery.queries[queryElements].fn === 'onTake') {
|
|
139
|
-
|
|
142
|
+
var currentQueryTakeValue = filterQuery.queries[queryElements].e.nos;
|
|
143
|
+
queryTakeValue = currentQueryTakeValue <= queryTakeValue ? queryTakeValue : currentQueryTakeValue;
|
|
140
144
|
filterQuery.queries.splice(queryElements, 1);
|
|
141
145
|
--queryElements;
|
|
142
146
|
}
|
|
@@ -221,21 +225,23 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
221
225
|
this.virtualListInfo = null;
|
|
222
226
|
}
|
|
223
227
|
this.resetList(dataSource, fields, query, e);
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
228
|
+
isNoDataElement = this.list.classList.contains('e-nodata');
|
|
229
|
+
if (this.enableVirtualization && !isNoDataElement) {
|
|
230
|
+
if (!this.list.querySelector('.e-virtual-ddl-content') && this.list.querySelector('.e-list-parent')) {
|
|
231
|
+
var virtualElement = this.createElement('div', {
|
|
227
232
|
className: 'e-virtual-ddl-content',
|
|
228
233
|
styles: this.getTransformValues()
|
|
229
|
-
})
|
|
234
|
+
});
|
|
235
|
+
this.list.appendChild(virtualElement).appendChild(this.list.querySelector('.e-list-parent'));
|
|
230
236
|
}
|
|
231
|
-
if (!this.list.querySelector('.e-virtual-ddl')) {
|
|
232
|
-
var
|
|
237
|
+
if (!this.list.querySelector('.e-virtual-ddl') && document.getElementsByClassName('e-popup') && document.getElementsByClassName('e-popup')[0]) {
|
|
238
|
+
var virtualElement = this.createElement('div', {
|
|
233
239
|
id: this.element.id + '_popup', className: 'e-virtual-ddl', styles: this.GetVirtualTrackHeight()
|
|
234
240
|
});
|
|
235
|
-
document.getElementsByClassName('e-popup')[0].querySelector('.e-dropdownbase').appendChild(
|
|
241
|
+
document.getElementsByClassName('e-popup')[0].querySelector('.e-dropdownbase').appendChild(virtualElement);
|
|
236
242
|
}
|
|
237
243
|
}
|
|
238
|
-
if ((this.getModuleName() === 'autocomplete' && !(this.dataSource instanceof DataManager)) || (this.getModuleName() === 'autocomplete' && (this.dataSource instanceof DataManager) && this.totalItemCount
|
|
244
|
+
if ((this.getModuleName() === 'autocomplete' && !(this.dataSource instanceof DataManager)) || (this.getModuleName() === 'autocomplete' && (this.dataSource instanceof DataManager) && this.totalItemCount !== 0)) {
|
|
239
245
|
this.getFilteringSkeletonCount();
|
|
240
246
|
}
|
|
241
247
|
}
|
|
@@ -259,7 +265,7 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
259
265
|
if (!this.enableVirtualization) {
|
|
260
266
|
this.fixedHeaderElement = null;
|
|
261
267
|
}
|
|
262
|
-
if ((this.getModuleName() === 'autocomplete' && !(this.dataSource instanceof DataManager)) || (this.getModuleName() === 'autocomplete' && (this.dataSource instanceof DataManager) && this.totalItemCount
|
|
268
|
+
if ((this.getModuleName() === 'autocomplete' && !(this.dataSource instanceof DataManager)) || (this.getModuleName() === 'autocomplete' && (this.dataSource instanceof DataManager) && this.totalItemCount !== 0)) {
|
|
263
269
|
this.getFilteringSkeletonCount();
|
|
264
270
|
}
|
|
265
271
|
_super.prototype.onActionComplete.call(this, ulElement, list, e);
|
|
@@ -353,35 +359,58 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
353
359
|
};
|
|
354
360
|
AutoComplete.prototype.setInputValue = function (newProp, oldProp) {
|
|
355
361
|
var oldValue = oldProp && oldProp.text ? oldProp.text : oldProp ? oldProp.value : oldProp;
|
|
356
|
-
var value = newProp && newProp.text
|
|
362
|
+
var value = newProp && newProp.text
|
|
363
|
+
? newProp.text
|
|
364
|
+
: newProp && newProp.value
|
|
365
|
+
? newProp.value
|
|
366
|
+
: this.value;
|
|
357
367
|
if (this.allowObjectBinding) {
|
|
358
|
-
oldValue = !isNullOrUndefined(oldValue)
|
|
359
|
-
|
|
368
|
+
oldValue = !isNullOrUndefined(oldValue)
|
|
369
|
+
? getValue((this.fields.value) ? this.fields.value : '', oldValue)
|
|
370
|
+
: oldValue;
|
|
371
|
+
value = !isNullOrUndefined(value)
|
|
372
|
+
? getValue((this.fields.value) ? this.fields.value : '', value)
|
|
373
|
+
: value;
|
|
360
374
|
}
|
|
361
375
|
if (value && this.typedString === '' && !this.allowCustom && !(this.dataSource instanceof DataManager)) {
|
|
362
|
-
var
|
|
376
|
+
var checkFields1_1 = this.typeOfData(this.dataSource).typeof === 'string' ? '' : this.fields.value;
|
|
363
377
|
var listLength_1 = this.getItems().length;
|
|
364
378
|
var query = new Query();
|
|
365
|
-
|
|
366
|
-
|
|
379
|
+
// eslint-disable-next-line @typescript-eslint/tslint/config
|
|
380
|
+
var _this_2 = null || this;
|
|
381
|
+
new DataManager(this.dataSource).executeQuery(query.where(new Predicate(checkFields1_1, 'equal', value)))
|
|
367
382
|
.then(function (e) {
|
|
368
383
|
if (e.result.length > 0) {
|
|
369
|
-
_this_2.value =
|
|
384
|
+
_this_2.value = checkFields1_1 !== '' ? _this_2.allowObjectBinding ? e.result[0] : e.result[0][_this_2.fields.value].toString() : e.result[0].toString();
|
|
370
385
|
_this_2.addItem(e.result, listLength_1);
|
|
371
386
|
_this_2.updateValues();
|
|
372
387
|
}
|
|
373
388
|
else {
|
|
374
|
-
|
|
389
|
+
if (newProp && newProp.text) {
|
|
390
|
+
_this_2.setOldText(oldValue);
|
|
391
|
+
}
|
|
392
|
+
else if (newProp && newProp.value) {
|
|
393
|
+
_this_2.setOldValue(oldValue);
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
_this_2.updateValues();
|
|
397
|
+
}
|
|
375
398
|
}
|
|
376
399
|
});
|
|
377
400
|
}
|
|
378
401
|
else if (newProp) {
|
|
379
|
-
newProp.text
|
|
402
|
+
if (newProp.text) {
|
|
403
|
+
this.setOldText(oldValue);
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
406
|
+
this.setOldValue(oldValue);
|
|
407
|
+
}
|
|
380
408
|
}
|
|
381
409
|
};
|
|
382
410
|
/**
|
|
383
411
|
* Search the entered text and show it in the suggestion list if available.
|
|
384
412
|
*
|
|
413
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - The event object.
|
|
385
414
|
* @returns {void}
|
|
386
415
|
|
|
387
416
|
*/
|
|
@@ -405,6 +434,7 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
405
434
|
/**
|
|
406
435
|
* Hides the popup if it is in open state.
|
|
407
436
|
*
|
|
437
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - The event object.
|
|
408
438
|
* @returns {void}
|
|
409
439
|
*/
|
|
410
440
|
AutoComplete.prototype.hidePopup = function (e) {
|
|
@@ -47,6 +47,13 @@ export interface ComboBoxModel extends DropDownListModel{
|
|
|
47
47
|
*/
|
|
48
48
|
allowFiltering?: boolean;
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Defines whether the popup opens in fullscreen mode on mobile devices when filtering is enabled. When set to false, the popup will display similarly on both mobile and desktop devices.
|
|
52
|
+
*
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
isDeviceFullScreen?: boolean;
|
|
56
|
+
|
|
50
57
|
/**
|
|
51
58
|
* Accepts the external `Query`
|
|
52
59
|
* that execute along with [`data processing`](../../combo-box/data-binding).
|
|
@@ -235,10 +242,10 @@ export interface ComboBoxModel extends DropDownListModel{
|
|
|
235
242
|
value?: number | string | boolean | object | null;
|
|
236
243
|
|
|
237
244
|
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
allowObjectBinding?: boolean;
|
|
245
|
+
* Defines whether the object binding is allowed or not in the component.
|
|
246
|
+
*
|
|
247
|
+
* @default false
|
|
248
|
+
*/
|
|
249
|
+
allowObjectBinding?: boolean;
|
|
243
250
|
|
|
244
251
|
}
|
|
@@ -61,6 +61,12 @@ export declare class ComboBox extends DropDownList {
|
|
|
61
61
|
|
|
62
62
|
*/
|
|
63
63
|
allowFiltering: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Defines whether the popup opens in fullscreen mode on mobile devices when filtering is enabled. When set to false, the popup will display similarly on both mobile and desktop devices.
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
isDeviceFullScreen: boolean;
|
|
64
70
|
/**
|
|
65
71
|
* Accepts the external `Query`
|
|
66
72
|
* that execute along with [`data processing`](../../combo-box/data-binding).
|
|
@@ -230,10 +236,10 @@ export declare class ComboBox extends DropDownList {
|
|
|
230
236
|
*/
|
|
231
237
|
value: number | string | boolean | object | null;
|
|
232
238
|
/**
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
239
|
+
* Defines whether the object binding is allowed or not in the component.
|
|
240
|
+
*
|
|
241
|
+
* @default false
|
|
242
|
+
*/
|
|
237
243
|
allowObjectBinding: boolean;
|
|
238
244
|
/**
|
|
239
245
|
* *Constructor for creating the component
|
|
@@ -161,7 +161,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
161
161
|
this.setProperties(changeData, true);
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
|
-
this.setProperties({ value: value, text: value, index: null }, true);
|
|
164
|
+
this.setProperties({ value: value, text: value ? value.toString() : value, index: null }, true);
|
|
165
165
|
}
|
|
166
166
|
this.activeIndex = this.index;
|
|
167
167
|
var fields = this.fields;
|
|
@@ -170,7 +170,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
170
170
|
dataItem[fields.value] = isNullOrUndefined(value) ? null : value.toString();
|
|
171
171
|
this.itemData = dataItem;
|
|
172
172
|
this.item = null;
|
|
173
|
-
if ((!this.allowObjectBinding && (this.previousValue !== this.value)) ||
|
|
173
|
+
if ((!this.allowObjectBinding && (this.previousValue !== this.value)) ||
|
|
174
|
+
(this.allowObjectBinding && this.previousValue && this.value &&
|
|
175
|
+
!this.isObjectInArray(this.previousValue, [this.value]))) {
|
|
174
176
|
this.detachChangeEvent(null);
|
|
175
177
|
}
|
|
176
178
|
};
|
|
@@ -200,9 +202,12 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
200
202
|
this.itemData = getItem[0];
|
|
201
203
|
doesItemExist = true;
|
|
202
204
|
var dataItem = this.getItemData();
|
|
203
|
-
var value = this.allowObjectBinding
|
|
204
|
-
|
|
205
|
-
|
|
205
|
+
var value = this.allowObjectBinding
|
|
206
|
+
? this.getDataByValue(dataItem.value)
|
|
207
|
+
: dataItem.value;
|
|
208
|
+
if ((this.value === dataItem.value && this.text !== dataItem.text)
|
|
209
|
+
|| (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
210
|
+
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
206
211
|
}
|
|
207
212
|
}
|
|
208
213
|
}
|
|
@@ -212,9 +217,12 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
212
217
|
this.itemData = getItem[0];
|
|
213
218
|
doesItemExist = true;
|
|
214
219
|
var dataItem = this.getItemData();
|
|
215
|
-
var value = this.allowObjectBinding
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
var value = this.allowObjectBinding
|
|
221
|
+
? this.getDataByValue(dataItem.value)
|
|
222
|
+
: dataItem.value;
|
|
223
|
+
if ((this.value === dataItem.value && this.text !== dataItem.text)
|
|
224
|
+
|| (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
225
|
+
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
218
226
|
}
|
|
219
227
|
}
|
|
220
228
|
}
|
|
@@ -222,7 +230,8 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
222
230
|
if (li) {
|
|
223
231
|
this.setSelection(li, null);
|
|
224
232
|
}
|
|
225
|
-
else if ((!this.enableVirtualization && this.allowCustom) ||
|
|
233
|
+
else if ((!this.enableVirtualization && this.allowCustom) ||
|
|
234
|
+
(this.allowCustom && this.enableVirtualization && !doesItemExist)) {
|
|
226
235
|
this.valueMuteChange(this.value);
|
|
227
236
|
}
|
|
228
237
|
else if (!this.enableVirtualization || (this.enableVirtualization && !doesItemExist)) {
|
|
@@ -261,7 +270,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
261
270
|
'aria-autocomplete': 'both',
|
|
262
271
|
'aria-labelledby': this.hiddenElement.id,
|
|
263
272
|
'aria-expanded': 'false',
|
|
264
|
-
'aria-readonly': this.readonly.toString(),
|
|
273
|
+
'aria-readonly': this.readonly ? this.readonly.toString() : 'false',
|
|
265
274
|
'autocomplete': 'off',
|
|
266
275
|
'autocapitalize': 'off',
|
|
267
276
|
'spellcheck': 'false'
|
|
@@ -319,14 +328,17 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
319
328
|
var activeItem = Search(inputValue, this.liCollections, this.filterType, true, dataSource, this.fields, type);
|
|
320
329
|
if (this.enableVirtualization && inputValue !== '' && this.getModuleName() !== 'autocomplete' && this.isTyped && !this.allowFiltering) {
|
|
321
330
|
var updatingincrementalindex = false;
|
|
322
|
-
|
|
331
|
+
var isEndIndexValid = this.viewPortInfo.endIndex >= this.incrementalEndIndex &&
|
|
332
|
+
this.incrementalEndIndex <= this.totalItemCount;
|
|
333
|
+
var isIncrementalEndIndexZero = this.incrementalEndIndex === 0;
|
|
334
|
+
if (isEndIndexValid || isIncrementalEndIndexZero) {
|
|
323
335
|
updatingincrementalindex = true;
|
|
324
336
|
this.incrementalStartIndex = this.incrementalEndIndex;
|
|
325
|
-
if (
|
|
326
|
-
this.incrementalEndIndex = 100
|
|
337
|
+
if (isIncrementalEndIndexZero) {
|
|
338
|
+
this.incrementalEndIndex = Math.min(100, this.totalItemCount);
|
|
327
339
|
}
|
|
328
340
|
else {
|
|
329
|
-
this.incrementalEndIndex = this.incrementalEndIndex + 100
|
|
341
|
+
this.incrementalEndIndex = Math.min(this.incrementalEndIndex + 100, this.totalItemCount);
|
|
330
342
|
}
|
|
331
343
|
this.updateIncrementalInfo(this.incrementalStartIndex, this.incrementalEndIndex);
|
|
332
344
|
updatingincrementalindex = true;
|
|
@@ -337,7 +349,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
337
349
|
activeItem = Search(inputValue, this.incrementalLiCollections, this.filterType, true, dataSource, this.fields, type);
|
|
338
350
|
while (isNullOrUndefined(activeItem.item) && this.incrementalEndIndex < this.totalItemCount) {
|
|
339
351
|
this.incrementalStartIndex = this.incrementalEndIndex;
|
|
340
|
-
this.incrementalEndIndex = this.incrementalEndIndex + 100 > this.totalItemCount
|
|
352
|
+
this.incrementalEndIndex = this.incrementalEndIndex + 100 > this.totalItemCount
|
|
353
|
+
? this.totalItemCount
|
|
354
|
+
: this.incrementalEndIndex + 100;
|
|
341
355
|
this.updateIncrementalInfo(this.incrementalStartIndex, this.incrementalEndIndex);
|
|
342
356
|
updatingincrementalindex = true;
|
|
343
357
|
if (this.viewPortInfo.startIndex !== 0 || updatingincrementalindex) {
|
|
@@ -354,22 +368,23 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
354
368
|
break;
|
|
355
369
|
}
|
|
356
370
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
371
|
+
var startIndex = activeItem.index - ((this.itemCount / 2) - 2) > 0
|
|
372
|
+
? activeItem.index - ((this.itemCount / 2) - 2)
|
|
373
|
+
: 0;
|
|
374
|
+
var endIndex = this.viewPortInfo.startIndex + this.itemCount > this.totalItemCount
|
|
375
|
+
? this.totalItemCount
|
|
376
|
+
: this.viewPortInfo.startIndex + this.itemCount;
|
|
377
|
+
if (startIndex !== this.viewPortInfo.startIndex) {
|
|
378
|
+
this.updateIncrementalView(startIndex, endIndex);
|
|
365
379
|
}
|
|
366
380
|
if (!isNullOrUndefined(activeItem.item)) {
|
|
367
|
-
var
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
this.
|
|
372
|
-
|
|
381
|
+
var startIndex_1 = this.viewPortInfo.startIndex + ((this.itemCount / 2) - 2) < this.totalItemCount
|
|
382
|
+
? this.viewPortInfo.startIndex + ((this.itemCount / 2) - 2)
|
|
383
|
+
: this.totalItemCount;
|
|
384
|
+
var endIndex_1 = this.viewPortInfo.startIndex + this.itemCount > this.totalItemCount
|
|
385
|
+
? this.totalItemCount
|
|
386
|
+
: this.viewPortInfo.startIndex + this.itemCount;
|
|
387
|
+
this.updateIncrementalView(startIndex_1, endIndex_1);
|
|
373
388
|
activeItem.item = this.getElementByValue(activeItem.item.getAttribute('data-value'));
|
|
374
389
|
}
|
|
375
390
|
else {
|
|
@@ -394,10 +409,19 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
394
409
|
}
|
|
395
410
|
else {
|
|
396
411
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
397
|
-
this.list.getElementsByClassName('e-virtual-ddl-content')[0]
|
|
412
|
+
var virtualContent = this.list.getElementsByClassName('e-virtual-ddl-content')[0];
|
|
413
|
+
virtualContent.style = this.getTransformValues();
|
|
398
414
|
if (this.enableVirtualization && !this.fields.groupBy) {
|
|
399
|
-
var selectedLiOffsetTop =
|
|
400
|
-
|
|
415
|
+
var selectedLiOffsetTop = activeElement.offsetTop;
|
|
416
|
+
var virtualListInfoStartIndex = this.virtualListInfo && this.virtualListInfo.startIndex
|
|
417
|
+
? this.virtualListInfo.startIndex
|
|
418
|
+
: 0;
|
|
419
|
+
var virtualListHeight = activeElement.offsetHeight;
|
|
420
|
+
var selectedLiOffsetTopWithStartIndex = selectedLiOffsetTop +
|
|
421
|
+
(virtualListInfoStartIndex * virtualListHeight);
|
|
422
|
+
var virtualListLength = this.list.querySelectorAll('.e-virtual-list').length;
|
|
423
|
+
var scrollTopOffset = virtualListLength * virtualListHeight;
|
|
424
|
+
this.list.scrollTop = selectedLiOffsetTopWithStartIndex - scrollTopOffset;
|
|
401
425
|
}
|
|
402
426
|
}
|
|
403
427
|
addClass([activeElement], dropDownListClasses.focus);
|
|
@@ -486,10 +510,14 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
486
510
|
var currentValue = this.getTextByValue(activeElement.getAttribute('data-value')).toString();
|
|
487
511
|
var currentFillValue = this.getFormattedValue(activeElement.getAttribute('data-value'));
|
|
488
512
|
if (this.getModuleName() === 'combobox') {
|
|
489
|
-
if (!this.isSelected && ((!this.allowObjectBinding && this.previousValue !== currentFillValue)) ||
|
|
513
|
+
if (!this.isSelected && ((!this.allowObjectBinding && this.previousValue !== currentFillValue)) ||
|
|
514
|
+
(this.allowObjectBinding && this.previousValue && currentFillValue &&
|
|
515
|
+
!this.isObjectInArray(this.previousValue, [this.getDataByValue(currentFillValue)]))) {
|
|
490
516
|
this.updateSelectedItem(activeElement, null);
|
|
491
517
|
this.isSelected = true;
|
|
492
|
-
this.previousValue = this.allowObjectBinding ?
|
|
518
|
+
this.previousValue = this.allowObjectBinding ?
|
|
519
|
+
this.getDataByValue(this.getFormattedValue(activeElement.getAttribute('data-value'))) :
|
|
520
|
+
this.getFormattedValue(activeElement.getAttribute('data-value'));
|
|
493
521
|
}
|
|
494
522
|
else {
|
|
495
523
|
this.updateSelectedItem(activeElement, null, true);
|
|
@@ -672,8 +700,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
672
700
|
if (isNullOrUndefined(this.value)) {
|
|
673
701
|
Input.setValue('', this.inputElement, this.floatLabelType, this.showClearButton);
|
|
674
702
|
}
|
|
675
|
-
|
|
676
|
-
|
|
703
|
+
if (this.autofill && ((!this.allowObjectBinding && previousValue === this.value) ||
|
|
704
|
+
(this.allowObjectBinding && previousValue && this.isObjectInArray(previousValue, [this.value]))) && ((!this.allowObjectBinding && currentValue !== this.value) ||
|
|
705
|
+
(this.allowObjectBinding && currentValue && !this.isObjectInArray(currentValue, [this.value])))) {
|
|
677
706
|
this.onChangeEvent(null);
|
|
678
707
|
}
|
|
679
708
|
}
|
|
@@ -697,7 +726,8 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
697
726
|
this.isSelectCustom = false;
|
|
698
727
|
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
699
728
|
this.setProperties({ value: value });
|
|
700
|
-
if ((!this.allowObjectBinding && previousValue_1 !== this.value) ||
|
|
729
|
+
if ((!this.allowObjectBinding && previousValue_1 !== this.value) ||
|
|
730
|
+
(this.allowObjectBinding && previousValue_1 && this.value && !this.isObjectInArray(previousValue_1, [this.value]))) {
|
|
701
731
|
this.onChangeEvent(e);
|
|
702
732
|
}
|
|
703
733
|
}
|
|
@@ -739,7 +769,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
739
769
|
this.setSelection(null, null);
|
|
740
770
|
this.isSelectCustom = true;
|
|
741
771
|
this.isObjectCustomValue = false;
|
|
742
|
-
if ((!this.allowObjectBinding && (previousValue !== this.value)) ||
|
|
772
|
+
if ((!this.allowObjectBinding && (previousValue !== this.value)) ||
|
|
773
|
+
(this.allowObjectBinding && ((previousValue == null && this.value !== null) ||
|
|
774
|
+
(previousValue && !this.isObjectInArray(previousValue, [this.value]))))) {
|
|
743
775
|
this.onChangeEvent(e, true);
|
|
744
776
|
}
|
|
745
777
|
};
|
|
@@ -976,6 +1008,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
976
1008
|
__decorate([
|
|
977
1009
|
Property(false)
|
|
978
1010
|
], ComboBox.prototype, "allowFiltering", void 0);
|
|
1011
|
+
__decorate([
|
|
1012
|
+
Property(true)
|
|
1013
|
+
], ComboBox.prototype, "isDeviceFullScreen", void 0);
|
|
979
1014
|
__decorate([
|
|
980
1015
|
Property(null)
|
|
981
1016
|
], ComboBox.prototype, "query", void 0);
|
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare type SearchType = 'StartsWith' | 'Equal' | 'EndsWith' | 'Contains';
|
|
5
5
|
/**
|
|
6
|
-
* Search and focus the list item based on key code matches with list text content
|
|
6
|
+
* Search and focus the list item based on key code matches with list text content.
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param {
|
|
11
|
-
*
|
|
12
|
-
* @param { boolean } ignoreCase - Specifies the case consideration when search has done.
|
|
8
|
+
* @param {number} keyCode - Specifies the key code which pressed on keyboard events.
|
|
9
|
+
* @param {HTMLElement[]} items - Specifies an array of HTMLElement, from which matches find has done.
|
|
10
|
+
* @param {number} selectedIndex - Specifies the selected item in list item, so that search will happen after selected item otherwise it will do from initial.
|
|
11
|
+
* @param {boolean} ignoreCase - Specifies the case consideration when search has done.
|
|
13
12
|
* @param {string} elementId - Specifies the list element ID.
|
|
13
|
+
* @param {boolean} [queryStringUpdated] - Optional parameter.
|
|
14
|
+
* @param {string} [currentValue] - Optional parameter.
|
|
15
|
+
* @param {boolean} [isVirtual] - Optional parameter.
|
|
16
|
+
* @param {boolean} [refresh] - Optional parameter.
|
|
14
17
|
* @returns {Element} Returns list item based on key code matches with list text content.
|
|
15
18
|
*/
|
|
16
19
|
export declare function incrementalSearch(keyCode: number, items: HTMLElement[], selectedIndex: number, ignoreCase: boolean, elementId: string, queryStringUpdated?: boolean, currentValue?: string, isVirtual?: boolean, refresh?: boolean): Element;
|
|
@@ -20,13 +23,25 @@ export declare function incrementalSearch(keyCode: number, items: HTMLElement[],
|
|
|
20
23
|
* @param {string} inputVal - Specifies the given input value.
|
|
21
24
|
* @param {HTMLElement[]} items - Specifies the list items.
|
|
22
25
|
* @param {SearchType} searchType - Specifies the filter type.
|
|
23
|
-
* @param {boolean} ignoreCase - Specifies the case sensitive option for search operation.
|
|
24
|
-
* @
|
|
26
|
+
* @param {boolean} [ignoreCase=true] - Specifies the case sensitive option for search operation.
|
|
27
|
+
* @param {(string | number | boolean | { [key: string]: Object })[]} [dataSource] - Specifies the data source.
|
|
28
|
+
* @param {{ text: string, value: string }} [fields] - Specifies the fields.
|
|
29
|
+
* @param {string} [type] - Specifies the type.
|
|
30
|
+
* @returns {{ item: Element | null, index: number | null }} Returns the search matched items.
|
|
25
31
|
*/
|
|
26
|
-
export declare function Search(inputVal: string, items: HTMLElement[], searchType: SearchType, ignoreCase?: boolean, dataSource?: string
|
|
32
|
+
export declare function Search(inputVal: string, items: HTMLElement[], searchType: SearchType, ignoreCase?: boolean, dataSource?: (string | number | boolean | {
|
|
27
33
|
[key: string]: Object;
|
|
28
|
-
}[], fields?: any, type?: string): {
|
|
29
|
-
|
|
34
|
+
})[], fields?: any, type?: string): {
|
|
35
|
+
item: Element | null;
|
|
36
|
+
index: number | null;
|
|
30
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* @param {string} value - The value to escape.
|
|
40
|
+
* @returns {string} Returns the escaped string.
|
|
41
|
+
*/
|
|
31
42
|
export declare function escapeCharRegExp(value: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} elementId - The ID of the list element.
|
|
45
|
+
* @returns {void}
|
|
46
|
+
*/
|
|
32
47
|
export declare function resetIncrementalSearchValues(elementId: string): void;
|