@syncfusion/ej2-dropdowns 26.2.13 → 27.1.48
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 -847
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +1434 -717
- 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 +15 -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 +6 -2
- package/src/drop-down-base/drop-down-base.js +100 -67
- 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 +299 -177
- 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 +205 -67
- package/src/list-box/list-box.js +72 -36
- 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 +2752 -0
- package/styles/bootstrap-dark-lite.scss +28 -0
- package/styles/bootstrap-dark.css +651 -604
- package/styles/bootstrap-dark.scss +6 -1
- package/styles/bootstrap-lite.css +2751 -0
- package/styles/bootstrap-lite.scss +28 -0
- package/styles/bootstrap.css +657 -610
- package/styles/bootstrap.scss +6 -1
- package/styles/bootstrap4-lite.css +2856 -0
- package/styles/bootstrap4-lite.scss +28 -0
- package/styles/bootstrap4.css +828 -755
- package/styles/bootstrap4.scss +6 -1
- package/styles/bootstrap5-dark-lite.css +2827 -0
- package/styles/bootstrap5-dark-lite.scss +28 -0
- package/styles/bootstrap5-dark.css +702 -651
- package/styles/bootstrap5-dark.scss +6 -1
- package/styles/bootstrap5-lite.css +2827 -0
- package/styles/bootstrap5-lite.scss +28 -0
- package/styles/bootstrap5.3-lite.css +2821 -0
- package/styles/bootstrap5.3-lite.scss +28 -0
- package/styles/bootstrap5.3.css +3552 -0
- package/styles/bootstrap5.3.scss +33 -0
- package/styles/bootstrap5.css +702 -651
- 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 +7 -0
- package/styles/drop-down-list/bootstrap-dark.css +90 -91
- package/styles/drop-down-list/bootstrap-dark.scss +1 -0
- package/styles/drop-down-list/bootstrap.css +90 -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 +89 -90
- package/styles/drop-down-list/fabric-dark.scss +1 -0
- package/styles/drop-down-list/fabric.css +89 -83
- package/styles/drop-down-list/fabric.scss +1 -0
- package/styles/drop-down-list/fluent-dark.css +73 -88
- package/styles/drop-down-list/fluent-dark.scss +1 -0
- package/styles/drop-down-list/fluent.css +73 -88
- package/styles/drop-down-list/fluent.scss +1 -0
- package/styles/drop-down-list/fluent2.css +76 -93
- package/styles/drop-down-list/fluent2.scss +1 -0
- package/styles/drop-down-list/highcontrast-light.css +78 -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 +73 -73
- package/styles/drop-down-list/material-dark.scss +1 -0
- package/styles/drop-down-list/material.css +94 -94
- package/styles/drop-down-list/material.scss +1 -0
- package/styles/drop-down-list/material3-dark.css +98 -98
- package/styles/drop-down-list/material3-dark.scss +1 -0
- package/styles/drop-down-list/material3.css +98 -98
- package/styles/drop-down-list/material3.scss +1 -0
- package/styles/drop-down-list/tailwind-dark.css +95 -78
- package/styles/drop-down-list/tailwind-dark.scss +1 -0
- package/styles/drop-down-list/tailwind.css +95 -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 +16 -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 +36 -55
- package/styles/drop-down-tree/bootstrap5-dark.scss +1 -0
- package/styles/drop-down-tree/bootstrap5.3.css +460 -0
- package/styles/drop-down-tree/bootstrap5.3.scss +10 -0
- package/styles/drop-down-tree/bootstrap5.css +36 -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 +2730 -0
- package/styles/fabric-dark-lite.scss +28 -0
- package/styles/fabric-dark.css +657 -604
- package/styles/fabric-dark.scss +6 -1
- package/styles/fabric-lite.css +2731 -0
- package/styles/fabric-lite.scss +28 -0
- package/styles/fabric.css +667 -607
- package/styles/fabric.scss +6 -1
- package/styles/fluent-dark-lite.css +2866 -0
- package/styles/fluent-dark-lite.scss +28 -0
- package/styles/fluent-dark.css +703 -678
- package/styles/fluent-dark.scss +6 -1
- package/styles/fluent-lite.css +2866 -0
- package/styles/fluent-lite.scss +28 -0
- package/styles/fluent.css +703 -678
- package/styles/fluent.scss +6 -1
- package/styles/fluent2-lite.css +3050 -0
- package/styles/fluent2-lite.scss +28 -0
- package/styles/fluent2.css +739 -672
- package/styles/fluent2.scss +6 -1
- package/styles/highcontrast-light-lite.css +2847 -0
- package/styles/highcontrast-light-lite.scss +28 -0
- package/styles/highcontrast-light.css +652 -602
- package/styles/highcontrast-light.scss +6 -1
- package/styles/highcontrast-lite.css +2870 -0
- package/styles/highcontrast-lite.scss +28 -0
- package/styles/highcontrast.css +670 -619
- 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 +15 -127
- package/styles/list-box/_theme.scss +14 -51
- package/styles/list-box/bootstrap-dark.css +121 -129
- package/styles/list-box/bootstrap-dark.scss +1 -0
- package/styles/list-box/bootstrap.css +127 -135
- package/styles/list-box/bootstrap.scss +1 -0
- package/styles/list-box/bootstrap4.css +171 -183
- package/styles/list-box/bootstrap4.scss +1 -0
- package/styles/list-box/bootstrap5-dark.css +127 -149
- package/styles/list-box/bootstrap5-dark.scss +1 -0
- package/styles/list-box/bootstrap5.3.css +950 -0
- package/styles/list-box/bootstrap5.3.scss +6 -0
- package/styles/list-box/bootstrap5.css +127 -149
- package/styles/list-box/bootstrap5.scss +1 -0
- package/styles/list-box/fabric-dark.css +121 -129
- package/styles/list-box/fabric-dark.scss +1 -0
- package/styles/list-box/fabric.css +127 -135
- package/styles/list-box/fabric.scss +1 -0
- package/styles/list-box/fluent-dark.css +127 -149
- package/styles/list-box/fluent-dark.scss +1 -0
- package/styles/list-box/fluent.css +127 -149
- package/styles/list-box/fluent.scss +1 -0
- package/styles/list-box/fluent2.css +121 -156
- package/styles/list-box/fluent2.scss +1 -0
- package/styles/list-box/highcontrast-light.css +121 -131
- package/styles/list-box/highcontrast-light.scss +1 -0
- package/styles/list-box/highcontrast.css +127 -137
- package/styles/list-box/highcontrast.scss +1 -0
- package/styles/list-box/material-dark.css +121 -128
- package/styles/list-box/material-dark.scss +1 -0
- package/styles/list-box/material.css +127 -134
- package/styles/list-box/material.scss +1 -0
- package/styles/list-box/material3-dark.css +121 -128
- package/styles/list-box/material3-dark.scss +1 -0
- package/styles/list-box/material3.css +121 -128
- package/styles/list-box/material3.scss +1 -0
- package/styles/list-box/tailwind-dark.css +137 -162
- package/styles/list-box/tailwind-dark.scss +1 -0
- package/styles/list-box/tailwind.css +137 -162
- package/styles/list-box/tailwind.scss +1 -0
- package/styles/material-dark-lite.css +3513 -0
- package/styles/material-dark-lite.scss +28 -0
- package/styles/material-dark.css +1265 -1157
- package/styles/material-dark.scss +6 -1
- package/styles/material-lite.css +3545 -0
- package/styles/material-lite.scss +28 -0
- package/styles/material.css +1305 -1197
- package/styles/material.scss +6 -1
- package/styles/material3-dark-lite.css +3459 -0
- package/styles/material3-dark-lite.scss +28 -0
- package/styles/material3-dark.css +1614 -1248
- package/styles/material3-dark.scss +6 -1
- package/styles/material3-lite.css +3461 -0
- package/styles/material3-lite.scss +28 -0
- package/styles/material3.css +1614 -1248
- 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 +2813 -0
- package/styles/tailwind-dark-lite.scss +28 -0
- package/styles/tailwind-dark.css +930 -848
- package/styles/tailwind-dark.scss +6 -1
- package/styles/tailwind-lite.css +2813 -0
- package/styles/tailwind-lite.scss +28 -0
- package/styles/tailwind.css +930 -848
- package/styles/tailwind.scss +6 -1
|
@@ -8,19 +8,22 @@ var matches = [];
|
|
|
8
8
|
var activeClass = 'e-active';
|
|
9
9
|
var prevElementId = '';
|
|
10
10
|
/**
|
|
11
|
-
* Search and focus the list item based on key code matches with list text content
|
|
11
|
+
* Search and focus the list item based on key code matches with list text content.
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
15
|
-
* @param {
|
|
16
|
-
*
|
|
17
|
-
* @param { boolean } ignoreCase - Specifies the case consideration when search has done.
|
|
13
|
+
* @param {number} keyCode - Specifies the key code which pressed on keyboard events.
|
|
14
|
+
* @param {HTMLElement[]} items - Specifies an array of HTMLElement, from which matches find has done.
|
|
15
|
+
* @param {number} selectedIndex - Specifies the selected item in list item, so that search will happen after selected item otherwise it will do from initial.
|
|
16
|
+
* @param {boolean} ignoreCase - Specifies the case consideration when search has done.
|
|
18
17
|
* @param {string} elementId - Specifies the list element ID.
|
|
18
|
+
* @param {boolean} [queryStringUpdated] - Optional parameter.
|
|
19
|
+
* @param {string} [currentValue] - Optional parameter.
|
|
20
|
+
* @param {boolean} [isVirtual] - Optional parameter.
|
|
21
|
+
* @param {boolean} [refresh] - Optional parameter.
|
|
19
22
|
* @returns {Element} Returns list item based on key code matches with list text content.
|
|
20
23
|
*/
|
|
21
24
|
export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, elementId, queryStringUpdated, currentValue, isVirtual, refresh) {
|
|
22
25
|
if (!queryStringUpdated || queryString === '') {
|
|
23
|
-
if (tempQueryString
|
|
26
|
+
if (tempQueryString !== '') {
|
|
24
27
|
queryString = tempQueryString + String.fromCharCode(keyCode);
|
|
25
28
|
tempQueryString = '';
|
|
26
29
|
}
|
|
@@ -28,7 +31,7 @@ export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, ele
|
|
|
28
31
|
queryString += String.fromCharCode(keyCode);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
else if (queryString
|
|
34
|
+
else if (queryString === prevString) {
|
|
32
35
|
tempQueryString = String.fromCharCode(keyCode);
|
|
33
36
|
}
|
|
34
37
|
if (isVirtual) {
|
|
@@ -59,7 +62,7 @@ export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, ele
|
|
|
59
62
|
}
|
|
60
63
|
index = index + 1;
|
|
61
64
|
if (isVirtual) {
|
|
62
|
-
return matches[index] && matches.length - 1
|
|
65
|
+
return matches[index] && matches.length - 1 !== index ? matches[index] : matches[matches.length];
|
|
63
66
|
}
|
|
64
67
|
return matches[index] ? matches[index] : matches[0];
|
|
65
68
|
}
|
|
@@ -107,14 +110,18 @@ export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, ele
|
|
|
107
110
|
return matches[0];
|
|
108
111
|
}
|
|
109
112
|
}
|
|
113
|
+
// eslint-disable-next-line valid-jsdoc
|
|
110
114
|
/**
|
|
111
115
|
* Search the list item based on given input value matches with search type.
|
|
112
116
|
*
|
|
113
117
|
* @param {string} inputVal - Specifies the given input value.
|
|
114
118
|
* @param {HTMLElement[]} items - Specifies the list items.
|
|
115
119
|
* @param {SearchType} searchType - Specifies the filter type.
|
|
116
|
-
* @param {boolean} ignoreCase - Specifies the case sensitive option for search operation.
|
|
117
|
-
* @
|
|
120
|
+
* @param {boolean} [ignoreCase=true] - Specifies the case sensitive option for search operation.
|
|
121
|
+
* @param {(string | number | boolean | { [key: string]: Object })[]} [dataSource] - Specifies the data source.
|
|
122
|
+
* @param {{ text: string, value: string }} [fields] - Specifies the fields.
|
|
123
|
+
* @param {string} [type] - Specifies the type.
|
|
124
|
+
* @returns {{ item: Element | null, index: number | null }} Returns the search matched items.
|
|
118
125
|
*/
|
|
119
126
|
export function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, type) {
|
|
120
127
|
var listItems = items;
|
|
@@ -126,7 +133,6 @@ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fiel
|
|
|
126
133
|
queryStr = escapeCharRegExp(queryStr);
|
|
127
134
|
var _loop_1 = function (i, itemsData) {
|
|
128
135
|
var item = itemsData[i];
|
|
129
|
-
var text = void 0;
|
|
130
136
|
var filterValue;
|
|
131
137
|
if (items && dataSource) {
|
|
132
138
|
var checkField_1 = item;
|
|
@@ -134,15 +140,16 @@ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fiel
|
|
|
134
140
|
dataSource.filter(function (data) {
|
|
135
141
|
Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
|
|
136
142
|
/* eslint-disable security/detect-object-injection */
|
|
137
|
-
if (type === 'object' &&
|
|
143
|
+
if ((type === 'object' && !data.isHeader && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value].toString()) ||
|
|
144
|
+
(type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1)) {
|
|
138
145
|
filterValue = type === 'object' ? data[value] : data;
|
|
139
146
|
}
|
|
140
147
|
});
|
|
141
148
|
});
|
|
142
149
|
}
|
|
143
|
-
text = dataSource && filterValue ? (ignoreCase ? filterValue.toString().toLocaleLowerCase() : filterValue).replace(/^\s+|\s+$/g, '') : (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
|
|
150
|
+
var text = dataSource && filterValue ? (ignoreCase ? filterValue.toString().toLocaleLowerCase() : filterValue).replace(/^\s+|\s+$/g, '') : (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
|
|
144
151
|
/* eslint-disable security/detect-non-literal-regexp */
|
|
145
|
-
if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr) || (searchType === 'EndsWith' && text.substr(text.length - queryStr.length) === queryStr) || (searchType === 'Contains' && new RegExp(queryStr,
|
|
152
|
+
if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr) || (searchType === 'EndsWith' && text.substr(text.length - queryStr.length) === queryStr) || (searchType === 'Contains' && new RegExp(queryStr, 'g').test(text))) {
|
|
146
153
|
itemData.item = item;
|
|
147
154
|
itemData.index = i;
|
|
148
155
|
return { value: { item: item, index: i } };
|
|
@@ -158,10 +165,17 @@ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fiel
|
|
|
158
165
|
}
|
|
159
166
|
return itemData;
|
|
160
167
|
}
|
|
161
|
-
|
|
168
|
+
/**
|
|
169
|
+
* @param {string} value - The value to escape.
|
|
170
|
+
* @returns {string} Returns the escaped string.
|
|
171
|
+
*/
|
|
162
172
|
export function escapeCharRegExp(value) {
|
|
163
173
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
164
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* @param {string} elementId - The ID of the list element.
|
|
177
|
+
* @returns {void}
|
|
178
|
+
*/
|
|
165
179
|
export function resetIncrementalSearchValues(elementId) {
|
|
166
180
|
if (prevElementId === elementId) {
|
|
167
181
|
prevElementId = '';
|
|
@@ -82,11 +82,14 @@ export interface IDropdownlist extends Component<HTMLElement> {
|
|
|
82
82
|
virtualGroupDataSource: {
|
|
83
83
|
[key: string]: Object;
|
|
84
84
|
}[] | DataManager | string[] | number[] | boolean[];
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
renderItems(listData: {
|
|
86
|
+
[key: string]: Object;
|
|
87
|
+
}[], fields: FieldSettingsModel): HTMLElement;
|
|
87
88
|
renderItems(listData: {
|
|
88
89
|
[key: string]: Object;
|
|
89
90
|
}[], fields: FieldSettingsModel, isCheckBoxUpdate?: boolean): HTMLElement;
|
|
91
|
+
updatevirtualizationList(): void;
|
|
92
|
+
scrollTop(selectedLI: HTMLElement, activeIndex: number, keyCode: number | null): void;
|
|
90
93
|
updateVirtualReOrderList(isCheckBoxUpdate?: boolean): void;
|
|
91
94
|
getForQuery(valuecheck: string[] | number[] | boolean[]): Query;
|
|
92
95
|
skeletonCount: number;
|
|
@@ -102,9 +105,6 @@ export interface IDropdownlist extends Component<HTMLElement> {
|
|
|
102
105
|
GetVirtualTrackHeight(): string;
|
|
103
106
|
getPageCount(returnExactCount?: boolean): number;
|
|
104
107
|
handleVirtualKeyboardActions(e: KeyboardEventArgs, pageCount: number): void;
|
|
105
|
-
renderItems(listData: {
|
|
106
|
-
[key: string]: Object;
|
|
107
|
-
}[], fields: FieldSettingsModel): HTMLElement;
|
|
108
108
|
resetList(dataSource?: {
|
|
109
109
|
[key: string]: Object;
|
|
110
110
|
}[] | DataManager | string[] | number[] | boolean[], fields?: FieldSettingsModel, query?: Query, e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
|
|
@@ -61,10 +61,10 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
61
61
|
},
|
|
62
62
|
'down': {
|
|
63
63
|
check: function (rect, info) {
|
|
64
|
-
var cHeight = _this.parent.popupContentElement.clientHeight;
|
|
65
64
|
var top = rect.bottom;
|
|
66
65
|
info.entered = rect.bottom <= _this.containerElementRect.bottom;
|
|
67
|
-
return top - (_this.parent.listItemHeight * _this.parent.virtualItemCount / 2)
|
|
66
|
+
return top - (_this.parent.listItemHeight * _this.parent.virtualItemCount / 2)
|
|
67
|
+
<= _this.parent.listItemHeight * _this.parent.virtualItemCount / 2;
|
|
68
68
|
}, axis: 'Y'
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -109,7 +109,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
109
109
|
VirtualScroll.prototype.getModuleName = function () {
|
|
110
110
|
return 'VirtualScroll';
|
|
111
111
|
};
|
|
112
|
-
VirtualScroll.prototype.popupScrollHandler = function (
|
|
112
|
+
VirtualScroll.prototype.popupScrollHandler = function () {
|
|
113
113
|
this.parent.isMouseScrollAction = true;
|
|
114
114
|
this.parent.isPreventScrollAction = false;
|
|
115
115
|
};
|
|
@@ -163,14 +163,14 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
163
163
|
totalData = this.parent.dataSource.length;
|
|
164
164
|
}
|
|
165
165
|
if (totalData > 0) {
|
|
166
|
-
this.parent.isCustomFilter = (totalData
|
|
166
|
+
this.parent.isCustomFilter = (totalData === this.parent.totalItemCount &&
|
|
167
|
+
this.parent.queryString !== this.parent.typedString) ? true : this.parent.isCustomFilter;
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
this.parent.resetList(dataSource, this.parent.fields, query);
|
|
170
171
|
this.parent.isCustomFilter = tempCustomFilter;
|
|
171
172
|
};
|
|
172
173
|
VirtualScroll.prototype.removeSkipAndTakeEvents = function (query) {
|
|
173
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
174
174
|
query.queries = query.queries.filter(function (event) {
|
|
175
175
|
return event.fn !== 'onSkip' && event.fn !== 'onTake';
|
|
176
176
|
});
|
|
@@ -196,12 +196,14 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
196
196
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
197
197
|
}
|
|
198
198
|
var query = this.parent.getForQuery(this.parent.value).clone();
|
|
199
|
-
query = query.skip(0)
|
|
199
|
+
query = query.skip(0)
|
|
200
|
+
.take(this.parent.itemCount - (this.parent.value.length - this.parent.viewPortInfo.startIndex));
|
|
200
201
|
this.parent.appendUncheckList = true;
|
|
201
202
|
this.parent.setCurrentView = false;
|
|
202
203
|
this.parent.resetList(this.parent.dataSource, this.parent.fields, query);
|
|
203
204
|
isListUpdated = false;
|
|
204
|
-
this.parent.appendUncheckList = this.parent.dataSource instanceof DataManager ?
|
|
205
|
+
this.parent.appendUncheckList = this.parent.dataSource instanceof DataManager ?
|
|
206
|
+
this.parent.appendUncheckList : false;
|
|
205
207
|
isListUpdated = false;
|
|
206
208
|
}
|
|
207
209
|
else {
|
|
@@ -212,7 +214,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
212
214
|
}
|
|
213
215
|
isListUpdated = false;
|
|
214
216
|
}
|
|
215
|
-
else if (this.parent.viewPortInfo.startIndex
|
|
217
|
+
else if (this.parent.viewPortInfo.startIndex !== 0) {
|
|
216
218
|
this.parent.updateVirtualReOrderList(true);
|
|
217
219
|
var oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
218
220
|
if (oldUlElement) {
|
|
@@ -220,7 +222,9 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
220
222
|
}
|
|
221
223
|
isListUpdated = false;
|
|
222
224
|
}
|
|
223
|
-
if (this.parent.viewPortInfo.startIndex
|
|
225
|
+
if (this.parent.viewPortInfo.startIndex !== 0 &&
|
|
226
|
+
this.parent.viewPortInfo.startIndex - this.parent.value.length !== this.parent.itemCount &&
|
|
227
|
+
(this.parent.viewPortInfo.startIndex + this.parent.itemCount > this.parent.value.length)) {
|
|
224
228
|
var query = this.parent.getForQuery(this.parent.value).clone();
|
|
225
229
|
query = query.skip(0).take(this.parent.itemCount - (this.parent.value.length - this.parent.viewPortInfo.startIndex));
|
|
226
230
|
this.parent.appendUncheckList = true;
|
|
@@ -235,8 +239,10 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
235
239
|
if (this.parent.list.querySelector('.e-virtual-ddl-content') && reOrderList) {
|
|
236
240
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(reOrderList);
|
|
237
241
|
}
|
|
238
|
-
var query = this.parent.getForQuery(this.parent.value).clone();
|
|
239
|
-
var skipvalue = this.parent.viewPortInfo.startIndex - this.parent.value.length >= 0
|
|
242
|
+
var query = this.parent.getForQuery(this.parent.value).clone(); // Assuming query is of type any
|
|
243
|
+
var skipvalue = this.parent.viewPortInfo.startIndex - this.parent.value.length >= 0
|
|
244
|
+
? this.parent.viewPortInfo.startIndex - this.parent.value.length
|
|
245
|
+
: 0;
|
|
240
246
|
query = query.skip(skipvalue);
|
|
241
247
|
this.parent.setCurrentView = false;
|
|
242
248
|
this.parent.resetList(this.parent.dataSource, this.parent.fields, query);
|
|
@@ -252,9 +258,14 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
252
258
|
if (this.component === 'multiselect' && this.parent.hideSelectedItem) {
|
|
253
259
|
if (alreadyAddedData) {
|
|
254
260
|
var value = getValue(this.parent.fields.value, alreadyAddedData[0]);
|
|
255
|
-
if (this.parent.value &&
|
|
261
|
+
if (this.parent.value &&
|
|
262
|
+
value !== null &&
|
|
263
|
+
Array.isArray(this.parent.value) &&
|
|
264
|
+
this.parent.value.length > 0 &&
|
|
265
|
+
this.parent.value.indexOf(value) < 0) {
|
|
256
266
|
var query = this.parent.getForQuery(this.parent.value).clone();
|
|
257
|
-
if (this.parent.viewPortInfo.endIndex
|
|
267
|
+
if (this.parent.viewPortInfo.endIndex === this.parent.totalItemCount + this.parent.value.length &&
|
|
268
|
+
this.parent.hideSelectedItem) {
|
|
258
269
|
query = query.skip(this.parent.totalItemCount - this.parent.itemCount);
|
|
259
270
|
}
|
|
260
271
|
else {
|
|
@@ -265,18 +276,16 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
265
276
|
isResetListCalled = true;
|
|
266
277
|
break;
|
|
267
278
|
}
|
|
268
|
-
|
|
269
|
-
else if ((this.parent.value === null || (this.parent.value && this.parent.value.length === 0))) {
|
|
279
|
+
else if (this.parent.value === null || (this.parent.value && this.parent.value.length === 0)) {
|
|
270
280
|
currentData.push(alreadyAddedData[0]);
|
|
271
281
|
}
|
|
272
282
|
}
|
|
273
283
|
if (index === endIndex - 1) {
|
|
274
|
-
if (currentData.length
|
|
275
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
284
|
+
if (currentData.length !== this.parent.itemCount) {
|
|
276
285
|
if (this.parent.hideSelectedItem) {
|
|
277
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
278
286
|
var query = this.parent.getForQuery(this.parent.value).clone();
|
|
279
|
-
if (this.parent.viewPortInfo.endIndex
|
|
287
|
+
if (this.parent.viewPortInfo.endIndex === this.parent.totalItemCount + this.parent.value.length &&
|
|
288
|
+
this.parent.hideSelectedItem) {
|
|
280
289
|
query = query.skip(this.parent.totalItemCount - this.parent.itemCount);
|
|
281
290
|
}
|
|
282
291
|
else {
|
|
@@ -298,27 +307,29 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
298
307
|
}
|
|
299
308
|
}
|
|
300
309
|
if (!isResetListCalled && isListUpdated) {
|
|
301
|
-
if (this.component === 'multiselect' && this.parent.allowCustomValue && this.parent.viewPortInfo.startIndex
|
|
310
|
+
if (this.component === 'multiselect' && this.parent.allowCustomValue && this.parent.viewPortInfo.startIndex === 0 && this.parent.virtualCustomData) {
|
|
302
311
|
currentData.splice(0, 0, this.parent.virtualCustomData);
|
|
303
312
|
}
|
|
304
313
|
var totalData = [];
|
|
305
|
-
if (this.component === 'multiselect' && this.parent.allowCustomValue && this.parent.viewPortInfo.endIndex
|
|
314
|
+
if (this.component === 'multiselect' && this.parent.allowCustomValue && this.parent.viewPortInfo.endIndex === this.parent.totalItemCount) {
|
|
306
315
|
if (this.parent.virtualCustomSelectData && this.parent.virtualCustomSelectData.length > 0) {
|
|
307
316
|
totalData = currentData.concat(this.parent.virtualCustomSelectData);
|
|
308
317
|
currentData = totalData;
|
|
309
318
|
}
|
|
310
319
|
}
|
|
311
|
-
|
|
320
|
+
this.parent.renderItems(currentData, this.parent.fields, this.component === 'multiselect' && this.parent.mode === 'CheckBox');
|
|
312
321
|
}
|
|
313
322
|
if (this.component === 'multiselect') {
|
|
314
323
|
this.parent.updatevirtualizationList();
|
|
315
324
|
}
|
|
316
325
|
this.parent.getSkeletonCount();
|
|
317
|
-
this.parent.skeletonCount = this.parent.totalItemCount
|
|
326
|
+
this.parent.skeletonCount = this.parent.totalItemCount !== 0 && this.parent.totalItemCount < this.parent.itemCount * 2 &&
|
|
327
|
+
((!(this.parent.dataSource instanceof DataManager)) || ((this.parent.dataSource instanceof DataManager) &&
|
|
328
|
+
(this.parent.totalItemCount <= this.parent.itemCount))) ? 0 : this.parent.skeletonCount;
|
|
318
329
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
319
330
|
var virtualTrackElement = this.parent.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
320
331
|
if (virtualTrackElement) {
|
|
321
|
-
|
|
332
|
+
virtualTrackElement.style = this.parent.GetVirtualTrackHeight();
|
|
322
333
|
}
|
|
323
334
|
else if (!virtualTrackElement && this.parent.skeletonCount > 0 && this.parent.popupWrapper) {
|
|
324
335
|
var virualElement = this.parent.createElement('div', {
|
|
@@ -336,7 +347,10 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
336
347
|
if (this.parent.fields.groupBy) {
|
|
337
348
|
this.parent.scrollStop();
|
|
338
349
|
}
|
|
339
|
-
if (this.parent.keyCode
|
|
350
|
+
if (this.parent.keyCode === 40 &&
|
|
351
|
+
this.parent.isScrollChanged &&
|
|
352
|
+
this.parent.hideSelectedItem &&
|
|
353
|
+
!isNullOrUndefined(this.parent.currentFocuedListElement)) {
|
|
340
354
|
var currentSelectElem = this.parent.getElementByValue(this.parent.currentFocuedListElement.getAttribute('data-value'));
|
|
341
355
|
this.parent.addListFocus(currentSelectElem);
|
|
342
356
|
this.parent.isScrollChanged = false;
|
|
@@ -360,20 +374,29 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
360
374
|
}
|
|
361
375
|
}
|
|
362
376
|
}
|
|
363
|
-
if (isStartIndexInitialised &&
|
|
377
|
+
if (isStartIndexInitialised &&
|
|
378
|
+
!(this.parent.totalItemCount === queryStartIndex &&
|
|
379
|
+
this.parent.totalItemCount === queryEndIndex)) {
|
|
364
380
|
this.parent.virtualItemStartIndex = queryStartIndex;
|
|
365
381
|
this.parent.virtualItemEndIndex = queryEndIndex;
|
|
366
382
|
this.parent.setCurrentView = true;
|
|
367
383
|
this.generateAndExecuteQueryAsync(query, queryStartIndex, queryEndIndex);
|
|
368
|
-
if (this.component === 'multiselect' &&
|
|
384
|
+
if (this.component === 'multiselect' &&
|
|
385
|
+
this.parent.hideSelectedItem &&
|
|
386
|
+
this.parent.value &&
|
|
387
|
+
Array.isArray(this.parent.value) &&
|
|
388
|
+
this.parent.value.length > 0) {
|
|
369
389
|
this.parent.totalItemsCount();
|
|
370
390
|
}
|
|
371
|
-
if (this.component === 'multiselect' &&
|
|
391
|
+
if (this.component === 'multiselect' &&
|
|
392
|
+
this.parent.virtualItemStartIndex === this.parent.virtualItemEndIndex) {
|
|
372
393
|
this.parent.virtualItemStartIndex = this.parent.viewPortInfo.startIndex;
|
|
373
394
|
this.parent.virtualItemEndIndex = this.parent.viewPortInfo.endIndex;
|
|
374
395
|
}
|
|
375
396
|
}
|
|
376
|
-
if (!(this.parent.dataSource instanceof DataManager) ||
|
|
397
|
+
if (!(this.parent.dataSource instanceof DataManager) ||
|
|
398
|
+
(this.parent.dataSource instanceof DataManager &&
|
|
399
|
+
!this.parent.isRequesting)) {
|
|
377
400
|
this.setCurrentViewDataAsync();
|
|
378
401
|
}
|
|
379
402
|
};
|
|
@@ -388,7 +411,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
388
411
|
return __generator(this, function (_a) {
|
|
389
412
|
switch (_a.label) {
|
|
390
413
|
case 0:
|
|
391
|
-
this.parent.isCustomFilter = (!(this.parent.isTyped || (this.component === 'combobox' && this.parent.allowFiltering && this.parent.queryString
|
|
414
|
+
this.parent.isCustomFilter = (!(this.parent.isTyped || (this.component === 'combobox' && this.parent.allowFiltering && this.parent.queryString !== this.parent.typedString) || (!isNullOrUndefined(this.parent.filterInput) && !isNullOrUndefined(this.parent.filterInput.value) && this.parent.filterInput.value !== '') && this.component !== 'combobox') && !(this.component === 'autocomplete' && this.parent.value != null)) || this.parent.isCustomFilter;
|
|
392
415
|
if (this.parent.allowFiltering || this.component === 'autocomplete') {
|
|
393
416
|
if (!isNullOrUndefined(this.parent.typedString) && !(this.component === 'combobox' && !isNullOrUndefined(this.parent.typedString) && this.parent.allowFiltering)) {
|
|
394
417
|
if (this.parent.viewPortInfo.endIndex >= this.parent.dataCount) {
|
|
@@ -401,14 +424,20 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
401
424
|
else {
|
|
402
425
|
this.parent.getSkeletonCount(true);
|
|
403
426
|
if (this.component === 'combobox') {
|
|
404
|
-
this.parent.skeletonCount = this.parent.totalItemCount
|
|
427
|
+
this.parent.skeletonCount = this.parent.totalItemCount !== 0 &&
|
|
428
|
+
this.parent.totalItemCount < (this.parent.itemCount * 2) && ((!(this.parent.dataSource instanceof DataManager)) ||
|
|
429
|
+
((this.parent.dataSource instanceof DataManager) && (this.parent.totalItemCount <= this.parent.itemCount))) ?
|
|
430
|
+
0 : this.parent.skeletonCount;
|
|
405
431
|
}
|
|
406
432
|
}
|
|
407
433
|
}
|
|
408
434
|
return [4 /*yield*/, this.dataProcessAsync()];
|
|
409
435
|
case 1:
|
|
410
436
|
_a.sent();
|
|
411
|
-
if (this.parent.keyboardEvent != null &&
|
|
437
|
+
if (this.parent.keyboardEvent != null &&
|
|
438
|
+
(!(this.parent.dataSource instanceof DataManager) ||
|
|
439
|
+
(this.parent.dataSource instanceof DataManager &&
|
|
440
|
+
!this.parent.isRequesting))) {
|
|
412
441
|
this.parent.handleVirtualKeyboardActions(this.parent.keyboardEvent, this.parent.pageCount);
|
|
413
442
|
}
|
|
414
443
|
if (!this.parent.customFilterQuery) {
|
|
@@ -480,7 +509,11 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
480
509
|
infoType.startIndex = eIndex < exactEndIndex ? (Math.ceil(exactEndIndex) - this.parent.virtualItemCount)
|
|
481
510
|
: infoType.startIndex;
|
|
482
511
|
infoType.endIndex = eIndex < totalItemCount ? eIndex : totalItemCount;
|
|
483
|
-
infoType.startIndex = eIndex >= totalItemCount
|
|
512
|
+
infoType.startIndex = eIndex >= totalItemCount
|
|
513
|
+
? (infoType.endIndex - this.parent.virtualItemCount > 0
|
|
514
|
+
? infoType.endIndex - this.parent.virtualItemCount
|
|
515
|
+
: 0)
|
|
516
|
+
: infoType.startIndex;
|
|
484
517
|
infoType.currentPageNumber = Math.ceil(infoType.endIndex / this.parent.virtualItemCount);
|
|
485
518
|
}
|
|
486
519
|
}
|
|
@@ -527,11 +560,11 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
527
560
|
left: left
|
|
528
561
|
};
|
|
529
562
|
if (_this.parent.list && _this.parent.list.querySelectorAll('.e-virtual-list').length > 0) {
|
|
530
|
-
|
|
531
|
-
if (_this.parent.scrollPreStartIndex
|
|
563
|
+
_this.getInfoFromView(direction, current, scrollOffsetargs, true);
|
|
564
|
+
if (_this.parent.scrollPreStartIndex !== pstartIndex && !_this.parent.isPreventScrollAction) {
|
|
532
565
|
_this.parent.isScrollActionTriggered = true;
|
|
533
566
|
var virtualPoup = (_this.parent.list.querySelector('.e-virtual-ddl-content'));
|
|
534
|
-
virtualPoup.style.transform =
|
|
567
|
+
virtualPoup.style.transform = 'translate(0px,' + top + 'px)';
|
|
535
568
|
}
|
|
536
569
|
}
|
|
537
570
|
var debounceFunction = debounced100;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EventHandler, addClass, append, Property, Event, KeyboardEvents, EmitType, L10n, compile, KeyboardEventArgs } from '@syncfusion/ej2-base';import { setStyleAttribute, extend, removeClass, prepend, isNullOrUndefined, detach, getValue, AnimationModel } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, rippleEffect, RippleOptions, ChildProperty, Complex } from '@syncfusion/ej2-base';import { DataManager, Query, DataOptions, DataUtil } from '@syncfusion/ej2-data';import { ListBase, SortOrder } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';import {
|
|
1
|
+
import { Component, EventHandler, addClass, append, Property, Event, KeyboardEvents, EmitType, L10n, compile, KeyboardEventArgs } from '@syncfusion/ej2-base';import { setStyleAttribute, extend, removeClass, prepend, isNullOrUndefined, detach, getValue, AnimationModel } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, rippleEffect, RippleOptions, ChildProperty, Complex } from '@syncfusion/ej2-base';import { DataManager, Query, DataOptions, DataUtil } from '@syncfusion/ej2-data';import { ListBase, SortOrder } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';import { select, selectAll } from '@syncfusion/ej2-base';import { VirtualInfo, VirtualScroll } from '../common/virtual-scroll';import { GeneratedData } from '../drop-down-list';import { Skeleton } from '@syncfusion/ej2-notifications';
|
|
2
2
|
import {FilterType,SelectEventArgs} from "./drop-down-base";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -294,8 +294,6 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
294
294
|
protected virtualListInfo: VirtualInfo;
|
|
295
295
|
protected viewPortInfo: VirtualInfo;
|
|
296
296
|
protected selectedValueInfo: VirtualInfo;
|
|
297
|
-
/**
|
|
298
|
-
|
|
299
297
|
/**
|
|
300
298
|
* The `fields` property maps the columns of the data table and binds the data to the component.
|
|
301
299
|
* * text - Maps the text column from data table for each list item.
|
|
@@ -535,6 +533,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
535
533
|
/**
|
|
536
534
|
* Initialize the Component.
|
|
537
535
|
*
|
|
536
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - The event object.
|
|
538
537
|
* @returns {void}
|
|
539
538
|
*/
|
|
540
539
|
private initialize;
|
|
@@ -569,6 +568,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
569
568
|
* @param {Object[] | string[] | number[] | DataManager | boolean[]} dataSource - Specifies the data to generate the list.
|
|
570
569
|
* @param {FieldSettingsModel} fields - Maps the columns of the data table and binds the data to the component.
|
|
571
570
|
* @param {Query} query - Accepts the external Query that execute along with data processing.
|
|
571
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} event - Specifies the event which is the reason for the invocation of this method.
|
|
572
572
|
* @returns {void}
|
|
573
573
|
*/
|
|
574
574
|
private setListData;
|
|
@@ -631,6 +631,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
631
631
|
*
|
|
632
632
|
* @param {object[]} listData - Specifies the list of array of data.
|
|
633
633
|
* @param {FieldSettingsModel} fields - Maps the columns of the data table and binds the data to the component.
|
|
634
|
+
* @param {boolean} isCheckBoxUpdate - Specifies whether the list item is updated with checkbox.
|
|
634
635
|
* @returns {HTMLElement} Return the list items.
|
|
635
636
|
*/
|
|
636
637
|
protected renderItems(listData: {
|
|
@@ -659,6 +660,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
659
660
|
* Return the index of item which matched with given value in data source
|
|
660
661
|
*
|
|
661
662
|
* @param {string | number | boolean} value - Specifies given value.
|
|
663
|
+
* @param {HTMLElement} ulElement - Specifies given value.
|
|
662
664
|
* @returns {number} Returns the index of the item.
|
|
663
665
|
*/
|
|
664
666
|
protected getIndexByValueFilter(value: string | number | boolean, ulElement: HTMLElement): number | null;
|
|
@@ -682,6 +684,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
682
684
|
* @param {Object[] | string[] | number[] | DataManager | boolean[]} dataSource - Specifies the data to generate the list.
|
|
683
685
|
* @param {FieldSettingsModel} fields - Maps the columns of the data table and binds the data to the component.
|
|
684
686
|
* @param {Query} query - Accepts the external Query that execute along with data processing.
|
|
687
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - Specifies the event.
|
|
685
688
|
* @returns {void}
|
|
686
689
|
*/
|
|
687
690
|
protected resetList(dataSource?: {
|
|
@@ -708,6 +711,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
708
711
|
/**
|
|
709
712
|
* Build and render the component
|
|
710
713
|
*
|
|
714
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - Specifies the event.
|
|
711
715
|
* @param {boolean} isEmptyData - Specifies the component to initialize with list data or not.
|
|
712
716
|
* @private
|
|
713
717
|
* @returns {void}
|