@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
|
@@ -63,7 +63,7 @@ export var dropDownBaseClasses = {
|
|
|
63
63
|
group: 'e-list-group-item',
|
|
64
64
|
disabled: 'e-disabled',
|
|
65
65
|
grouping: 'e-dd-group',
|
|
66
|
-
virtualList: 'e-list-item e-virtual-list'
|
|
66
|
+
virtualList: 'e-list-item e-virtual-list'
|
|
67
67
|
};
|
|
68
68
|
var ITEMTEMPLATE_PROPERTY = 'ItemTemplate';
|
|
69
69
|
var DISPLAYTEMPLATE_PROPERTY = 'DisplayTemplate';
|
|
@@ -140,7 +140,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
140
140
|
sentinelInfo: {},
|
|
141
141
|
offsets: {},
|
|
142
142
|
startIndex: 0,
|
|
143
|
-
endIndex: 0
|
|
143
|
+
endIndex: 0
|
|
144
144
|
};
|
|
145
145
|
_this.viewPortInfo = {
|
|
146
146
|
currentPageNumber: null,
|
|
@@ -148,7 +148,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
148
148
|
sentinelInfo: {},
|
|
149
149
|
offsets: {},
|
|
150
150
|
startIndex: 0,
|
|
151
|
-
endIndex: 0
|
|
151
|
+
endIndex: 0
|
|
152
152
|
};
|
|
153
153
|
_this.selectedValueInfo = {
|
|
154
154
|
currentPageNumber: null,
|
|
@@ -156,7 +156,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
156
156
|
sentinelInfo: {},
|
|
157
157
|
offsets: {},
|
|
158
158
|
startIndex: 0,
|
|
159
|
-
endIndex: 0
|
|
159
|
+
endIndex: 0
|
|
160
160
|
};
|
|
161
161
|
return _this;
|
|
162
162
|
}
|
|
@@ -231,7 +231,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
231
231
|
compareValue_1 = value;
|
|
232
232
|
dataSource.filter(function (item) {
|
|
233
233
|
var itemValue = getValue(fields.value, item);
|
|
234
|
-
if (!isNullOrUndefined(itemValue) && !isNullOrUndefined(value) &&
|
|
234
|
+
if (!isNullOrUndefined(itemValue) && !isNullOrUndefined(value) &&
|
|
235
|
+
itemValue.toString() === compareValue_1.toString()) {
|
|
235
236
|
value = getValue(fields.text, item);
|
|
236
237
|
}
|
|
237
238
|
});
|
|
@@ -381,7 +382,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
381
382
|
sentinelInfo: {},
|
|
382
383
|
offsets: {},
|
|
383
384
|
startIndex: 0,
|
|
384
|
-
endIndex: this.itemCount
|
|
385
|
+
endIndex: this.itemCount
|
|
385
386
|
};
|
|
386
387
|
this.selectedValueInfo = null;
|
|
387
388
|
}
|
|
@@ -411,14 +412,14 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
411
412
|
DropDownBase.prototype.getFilteringSkeletonCount = function () {
|
|
412
413
|
var currentSkeletonCount = this.skeletonCount;
|
|
413
414
|
this.getSkeletonCount(true);
|
|
414
|
-
this.skeletonCount = this.dataCount
|
|
415
|
+
this.skeletonCount = this.dataCount < this.itemCount * 2 && ((!(this.dataSource instanceof DataManager)) ||
|
|
416
|
+
((this.dataSource instanceof DataManager) && (this.totalItemCount <= this.itemCount))) ? 0 : this.skeletonCount;
|
|
415
417
|
var skeletonUpdated = true;
|
|
416
|
-
if ((this.getModuleName() === 'autocomplete' || this.getModuleName() === 'multiselect') && (this.totalItemCount < (this.itemCount * 2))) {
|
|
418
|
+
if ((this.getModuleName() === 'autocomplete' || this.getModuleName() === 'multiselect') && (this.totalItemCount < (this.itemCount * 2)) && ((!(this.dataSource instanceof DataManager)) || ((this.dataSource instanceof DataManager) && (this.totalItemCount <= this.itemCount)))) {
|
|
417
419
|
this.skeletonCount = 0;
|
|
418
420
|
skeletonUpdated = false;
|
|
419
421
|
}
|
|
420
422
|
if (!this.list.classList.contains(dropDownBaseClasses.noData)) {
|
|
421
|
-
var isSkeletonCountChange = currentSkeletonCount !== this.skeletonCount;
|
|
422
423
|
if (currentSkeletonCount !== this.skeletonCount && skeletonUpdated) {
|
|
423
424
|
this.UpdateSkeleton(true, Math.abs(currentSkeletonCount - this.skeletonCount));
|
|
424
425
|
}
|
|
@@ -451,18 +452,20 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
451
452
|
this.skeletonCount = Math.floor(this.skeletonCount / 2);
|
|
452
453
|
};
|
|
453
454
|
DropDownBase.prototype.GetVirtualTrackHeight = function () {
|
|
454
|
-
var height = this.totalItemCount === this.viewPortInfo.endIndex ?
|
|
455
|
+
var height = this.totalItemCount === this.viewPortInfo.endIndex ?
|
|
456
|
+
this.totalItemCount * this.listItemHeight - this.itemCount * this.listItemHeight : this.totalItemCount * this.listItemHeight;
|
|
455
457
|
height = this.isVirtualTrackHeight ? 0 : height;
|
|
456
458
|
var heightDimension = "height: " + (height - this.itemCount * this.listItemHeight) + "px;";
|
|
457
459
|
if ((this.getModuleName() === 'autocomplete' || this.getModuleName() === 'multiselect') && this.skeletonCount === 0) {
|
|
458
|
-
return
|
|
460
|
+
return 'height: 0px;';
|
|
459
461
|
}
|
|
460
462
|
return heightDimension;
|
|
461
463
|
};
|
|
462
464
|
DropDownBase.prototype.getTransformValues = function () {
|
|
463
465
|
var translateY = this.viewPortInfo.startIndex * this.listItemHeight;
|
|
464
466
|
translateY = translateY - (this.skeletonCount * this.listItemHeight);
|
|
465
|
-
translateY = ((this.viewPortInfo.startIndex === 0 && this.listData && this.listData.length === 0) ||
|
|
467
|
+
translateY = ((this.viewPortInfo.startIndex === 0 && this.listData && this.listData.length === 0) ||
|
|
468
|
+
this.skeletonCount === 0) ? 0 : translateY;
|
|
466
469
|
var styleText = "transform: translate(0px, " + translateY + "px);";
|
|
467
470
|
return styleText;
|
|
468
471
|
};
|
|
@@ -477,15 +480,17 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
477
480
|
liElement.style.height = this.listItemHeight + 'px';
|
|
478
481
|
}
|
|
479
482
|
var skeleton = new Skeleton({
|
|
480
|
-
shape:
|
|
481
|
-
height:
|
|
482
|
-
width:
|
|
483
|
-
cssClass:
|
|
483
|
+
shape: 'Text',
|
|
484
|
+
height: '10px',
|
|
485
|
+
width: '95%',
|
|
486
|
+
cssClass: 'e-skeleton-text'
|
|
484
487
|
});
|
|
485
488
|
skeleton.appendTo(this.createElement('div'));
|
|
486
489
|
liElement.appendChild(skeleton.element);
|
|
487
|
-
|
|
488
|
-
|
|
490
|
+
if (isContainSkeleton.firstChild) {
|
|
491
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
492
|
+
isContainSkeleton.firstChild.insertBefore(liElement, isContainSkeleton.firstChild.children[0]);
|
|
493
|
+
}
|
|
489
494
|
}
|
|
490
495
|
}
|
|
491
496
|
};
|
|
@@ -499,18 +504,21 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
499
504
|
DropDownBase.prototype.getFormattedValue = function (value) {
|
|
500
505
|
if (this.listData && this.listData.length) {
|
|
501
506
|
var item = void 0;
|
|
502
|
-
if (this.properties.allowCustomValue &&
|
|
507
|
+
if (this.properties.allowCustomValue &&
|
|
508
|
+
this.properties.value &&
|
|
509
|
+
this.properties.value instanceof Array &&
|
|
510
|
+
this.properties.value.length > 0) {
|
|
503
511
|
item = this.typeOfData(this.properties.value);
|
|
504
512
|
}
|
|
505
513
|
else {
|
|
506
514
|
item = this.typeOfData(this.listData);
|
|
507
515
|
}
|
|
508
|
-
if (typeof getValue((this.fields.value ? this.fields.value : 'value'), item.item) === 'number'
|
|
509
|
-
|
|
516
|
+
if (typeof getValue((this.fields.value ? this.fields.value : 'value'), item.item) === 'number' ||
|
|
517
|
+
item.typeof === 'number') {
|
|
510
518
|
return parseFloat(value);
|
|
511
519
|
}
|
|
512
|
-
if (typeof getValue((this.fields.value ? this.fields.value : 'value'), item.item) === 'boolean'
|
|
513
|
-
|
|
520
|
+
if (typeof getValue((this.fields.value ? this.fields.value : 'value'), item.item) === 'boolean' ||
|
|
521
|
+
item.typeof === 'boolean') {
|
|
514
522
|
return ((value === 'true') || ('' + value === 'true'));
|
|
515
523
|
}
|
|
516
524
|
}
|
|
@@ -537,6 +545,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
537
545
|
/**
|
|
538
546
|
* Initialize the Component.
|
|
539
547
|
*
|
|
548
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - The event object.
|
|
540
549
|
* @returns {void}
|
|
541
550
|
*/
|
|
542
551
|
DropDownBase.prototype.initialize = function (e) {
|
|
@@ -660,6 +669,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
660
669
|
* @param {Object[] | string[] | number[] | DataManager | boolean[]} dataSource - Specifies the data to generate the list.
|
|
661
670
|
* @param {FieldSettingsModel} fields - Maps the columns of the data table and binds the data to the component.
|
|
662
671
|
* @param {Query} query - Accepts the external Query that execute along with data processing.
|
|
672
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} event - Specifies the event which is the reason for the invocation of this method.
|
|
663
673
|
* @returns {void}
|
|
664
674
|
*/
|
|
665
675
|
DropDownBase.prototype.setListData = function (dataSource, fields, query, event) {
|
|
@@ -692,14 +702,14 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
692
702
|
}
|
|
693
703
|
}
|
|
694
704
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
695
|
-
if (_this.isVirtualizationEnabled && (e.count
|
|
705
|
+
if (_this.isVirtualizationEnabled && (e.count !== 0 && e.count < (_this.itemCount * 2))) {
|
|
696
706
|
if (newQuery) {
|
|
697
707
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
698
708
|
if (newQuery.queries[queryElements].fn === 'onTake') {
|
|
699
709
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
700
710
|
newQuery.queries[queryElements].e.nos = e.count;
|
|
701
711
|
}
|
|
702
|
-
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition
|
|
712
|
+
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal')) {
|
|
703
713
|
isReOrder = false;
|
|
704
714
|
}
|
|
705
715
|
}
|
|
@@ -709,7 +719,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
709
719
|
_this.isVirtualTrackHeight = false;
|
|
710
720
|
if (newQuery) {
|
|
711
721
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
712
|
-
if (_this.getModuleName() === 'multiselect' && ((newQuery.queries[queryElements].e && newQuery.queries[queryElements].e.condition
|
|
722
|
+
if (_this.getModuleName() === 'multiselect' && ((newQuery.queries[queryElements].e && newQuery.queries[queryElements].e.condition === 'or') || (newQuery.queries[queryElements].e && newQuery.queries[queryElements].e.operator === 'equal'))) {
|
|
713
723
|
isReOrder = false;
|
|
714
724
|
}
|
|
715
725
|
}
|
|
@@ -728,7 +738,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
728
738
|
ulElement = _this.renderItems(listItems, fields);
|
|
729
739
|
return;
|
|
730
740
|
}
|
|
731
|
-
if ((!_this.isVirtualizationEnabled && listItems.length === 0) ||
|
|
741
|
+
if ((!_this.isVirtualizationEnabled && listItems.length === 0) ||
|
|
742
|
+
(_this.isVirtualizationEnabled && listItems.length === 0 && !isWhereExist_1)) {
|
|
732
743
|
_this.isDataFetched = true;
|
|
733
744
|
}
|
|
734
745
|
if (!isWhereExist_1) {
|
|
@@ -751,8 +762,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
751
762
|
return;
|
|
752
763
|
}
|
|
753
764
|
if (_this.isVirtualizationEnabled && _this.setCurrentView) {
|
|
754
|
-
_this.notify(
|
|
755
|
-
module:
|
|
765
|
+
_this.notify('setCurrentViewDataAsync', {
|
|
766
|
+
module: 'VirtualScroll'
|
|
756
767
|
});
|
|
757
768
|
}
|
|
758
769
|
if (_this.keyboardEvent != null) {
|
|
@@ -784,12 +795,16 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
784
795
|
var data = new DataManager(_this.dataSource).executeLocal(new Query().group(_this.fields.groupBy));
|
|
785
796
|
_this.virtualGroupDataSource = data.records;
|
|
786
797
|
}
|
|
787
|
-
var dataManager = _this.isVirtualizationEnabled &&
|
|
798
|
+
var dataManager = _this.isVirtualizationEnabled &&
|
|
799
|
+
_this.virtualGroupDataSource
|
|
800
|
+
&& !_this.isCustomDataUpdated ? new DataManager(_this.virtualGroupDataSource) :
|
|
801
|
+
new DataManager(eventArgs.data);
|
|
788
802
|
listItems = (_this.getQuery(eventArgs.query)).executeLocal(dataManager);
|
|
789
803
|
if (!_this.virtualSelectAll) {
|
|
790
804
|
var newQuery = _this.getQuery(eventArgs.query);
|
|
791
805
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
792
|
-
if (_this.isVirtualizationEnabled && (listItems.count
|
|
806
|
+
if (_this.isVirtualizationEnabled && (listItems.count !== 0 &&
|
|
807
|
+
listItems.count < (_this.itemCount * 2))) {
|
|
793
808
|
if (newQuery) {
|
|
794
809
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
795
810
|
if (newQuery.queries[queryElements].fn === 'onTake') {
|
|
@@ -797,13 +812,14 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
797
812
|
newQuery.queries[queryElements].e.nos = listItems.count;
|
|
798
813
|
listItems = (newQuery).executeLocal(dataManager);
|
|
799
814
|
}
|
|
800
|
-
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition
|
|
815
|
+
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal')) {
|
|
801
816
|
isReOrder = false;
|
|
802
817
|
}
|
|
803
818
|
}
|
|
804
819
|
if (isReOrder) {
|
|
805
820
|
listItems = (newQuery).executeLocal(dataManager);
|
|
806
|
-
_this.isVirtualTrackHeight = (!(_this.dataSource instanceof DataManager) &&
|
|
821
|
+
_this.isVirtualTrackHeight = (!(_this.dataSource instanceof DataManager) &&
|
|
822
|
+
!_this.isCustomDataUpdated) ? true : false;
|
|
807
823
|
}
|
|
808
824
|
}
|
|
809
825
|
}
|
|
@@ -811,16 +827,18 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
811
827
|
_this.isVirtualTrackHeight = false;
|
|
812
828
|
if (newQuery) {
|
|
813
829
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
814
|
-
if (_this.getModuleName() === 'multiselect' && ((newQuery.queries[queryElements].e && newQuery.queries[queryElements].e.condition
|
|
830
|
+
if (_this.getModuleName() === 'multiselect' && ((newQuery.queries[queryElements].e && newQuery.queries[queryElements].e.condition === 'or') || (newQuery.queries[queryElements].e && newQuery.queries[queryElements].e.operator === 'equal'))) {
|
|
815
831
|
isReOrder = false;
|
|
816
832
|
}
|
|
817
833
|
}
|
|
818
834
|
}
|
|
819
835
|
}
|
|
820
836
|
}
|
|
821
|
-
if (isReOrder && (!(_this.dataSource instanceof DataManager) && !_this.isCustomDataUpdated) &&
|
|
837
|
+
if (isReOrder && (!(_this.dataSource instanceof DataManager) && !_this.isCustomDataUpdated) &&
|
|
838
|
+
!_this.virtualSelectAll) {
|
|
822
839
|
// eslint-disable @typescript-eslint/no-explicit-any
|
|
823
|
-
_this.dataCount = _this.totalItemCount = _this.virtualSelectAll ? listItems.length :
|
|
840
|
+
_this.dataCount = _this.totalItemCount = _this.virtualSelectAll ? listItems.length :
|
|
841
|
+
listItems.count;
|
|
824
842
|
}
|
|
825
843
|
listItems = _this.isVirtualizationEnabled ? listItems.result : listItems;
|
|
826
844
|
// eslint-enable @typescript-eslint/no-explicit-any
|
|
@@ -885,7 +903,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
885
903
|
DropDownBase.prototype.isObjectInArray = function (objectToFind, array) {
|
|
886
904
|
return array.some(function (item) {
|
|
887
905
|
return Object.keys(objectToFind).every(function (key) {
|
|
888
|
-
return
|
|
906
|
+
return Object.prototype.hasOwnProperty.call(item, key) && item[key] === objectToFind[key];
|
|
889
907
|
});
|
|
890
908
|
});
|
|
891
909
|
};
|
|
@@ -951,8 +969,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
951
969
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
952
970
|
this.listData = list;
|
|
953
971
|
if (this.isVirtualizationEnabled && !this.isCustomDataUpdated && !this.virtualSelectAll) {
|
|
954
|
-
this.notify(
|
|
955
|
-
module:
|
|
972
|
+
this.notify('setGeneratedData', {
|
|
973
|
+
module: 'VirtualScroll'
|
|
956
974
|
});
|
|
957
975
|
}
|
|
958
976
|
if (this.getModuleName() !== 'listbox') {
|
|
@@ -968,7 +986,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
968
986
|
if (this.getModuleName() === 'multiselect' && this.properties.allowCustomValue && this.fields.groupBy) {
|
|
969
987
|
for (var i = 0; i < ulElement.childElementCount; i++) {
|
|
970
988
|
if (ulElement.children[i].classList.contains('e-list-group-item')) {
|
|
971
|
-
if (isNullOrUndefined(ulElement.children[i].innerHTML) || ulElement.children[i].innerHTML
|
|
989
|
+
if (isNullOrUndefined(ulElement.children[i].innerHTML) || ulElement.children[i].innerHTML === '') {
|
|
972
990
|
addClass([ulElement.children[i]], HIDE_GROUPLIST);
|
|
973
991
|
}
|
|
974
992
|
}
|
|
@@ -1163,7 +1181,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1163
1181
|
}
|
|
1164
1182
|
};
|
|
1165
1183
|
DropDownBase.prototype.updateGroupHeader = function (index, liCollections, target) {
|
|
1166
|
-
if (!isNullOrUndefined(liCollections[index]) &&
|
|
1184
|
+
if (!isNullOrUndefined(liCollections[index]) &&
|
|
1185
|
+
liCollections[index].classList.contains(dropDownBaseClasses.group)) {
|
|
1167
1186
|
this.updateGroupFixedHeader(liCollections[index], target);
|
|
1168
1187
|
return true;
|
|
1169
1188
|
}
|
|
@@ -1194,6 +1213,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1194
1213
|
*
|
|
1195
1214
|
* @param {object[]} listData - Specifies the list of array of data.
|
|
1196
1215
|
* @param {FieldSettingsModel} fields - Maps the columns of the data table and binds the data to the component.
|
|
1216
|
+
* @param {boolean} isCheckBoxUpdate - Specifies whether the list item is updated with checkbox.
|
|
1197
1217
|
* @returns {HTMLElement} Return the list items.
|
|
1198
1218
|
*/
|
|
1199
1219
|
DropDownBase.prototype.renderItems = function (listData, fields, isCheckBoxUpdate) {
|
|
@@ -1214,23 +1234,21 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1214
1234
|
new DataManager(dataSource).executeLocal(new Query().take(100))
|
|
1215
1235
|
: dataSource;
|
|
1216
1236
|
ulElement = this.templateListItem((this.getModuleName() === 'autocomplete') ? spliceData : dataSource, fields);
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
this.list.querySelector('.e-virtual-ddl-content').removeChild(reOrderList[0]);
|
|
1225
|
-
}
|
|
1226
|
-
this.updateListElements(listData);
|
|
1227
|
-
}
|
|
1228
|
-
else if ((!virtualUlElement)) {
|
|
1229
|
-
this.list.innerHTML = '';
|
|
1230
|
-
this.createVirtualContent();
|
|
1231
|
-
this.list.querySelector('.e-virtual-ddl-content').appendChild(ulElement);
|
|
1232
|
-
this.updateListElements(listData);
|
|
1237
|
+
var oldUlElement = this.list.querySelector('.e-list-parent');
|
|
1238
|
+
var virtualUlElement = this.list.querySelector('.e-virtual-ddl-content');
|
|
1239
|
+
if ((listData.length >= this.virtualizedItemsCount && oldUlElement && virtualUlElement) || (oldUlElement && virtualUlElement && this.isAllowFiltering) || (oldUlElement && virtualUlElement && this.getModuleName() === 'autocomplete')) {
|
|
1240
|
+
virtualUlElement.replaceChild(ulElement, oldUlElement);
|
|
1241
|
+
var reOrderList = this.list.querySelectorAll('.e-reorder');
|
|
1242
|
+
if (this.list.querySelector('.e-virtual-ddl-content') && reOrderList && reOrderList.length > 0 && !isCheckBoxUpdate) {
|
|
1243
|
+
this.list.querySelector('.e-virtual-ddl-content').removeChild(reOrderList[0]);
|
|
1233
1244
|
}
|
|
1245
|
+
this.updateListElements(listData);
|
|
1246
|
+
}
|
|
1247
|
+
else if ((!virtualUlElement)) {
|
|
1248
|
+
this.list.innerHTML = '';
|
|
1249
|
+
this.createVirtualContent();
|
|
1250
|
+
this.list.querySelector('.e-virtual-ddl-content').appendChild(ulElement);
|
|
1251
|
+
this.updateListElements(listData);
|
|
1234
1252
|
}
|
|
1235
1253
|
}
|
|
1236
1254
|
else {
|
|
@@ -1274,7 +1292,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1274
1292
|
DropDownBase.prototype.createVirtualContent = function () {
|
|
1275
1293
|
if (!this.list.querySelector('.e-virtual-ddl-content')) {
|
|
1276
1294
|
this.list.appendChild(this.createElement('div', {
|
|
1277
|
-
className: 'e-virtual-ddl-content'
|
|
1295
|
+
className: 'e-virtual-ddl-content'
|
|
1278
1296
|
}));
|
|
1279
1297
|
}
|
|
1280
1298
|
};
|
|
@@ -1385,6 +1403,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1385
1403
|
* Return the index of item which matched with given value in data source
|
|
1386
1404
|
*
|
|
1387
1405
|
* @param {string | number | boolean} value - Specifies given value.
|
|
1406
|
+
* @param {HTMLElement} ulElement - Specifies given value.
|
|
1388
1407
|
* @returns {number} Returns the index of the item.
|
|
1389
1408
|
*/
|
|
1390
1409
|
DropDownBase.prototype.getIndexByValueFilter = function (value, ulElement) {
|
|
@@ -1439,6 +1458,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1439
1458
|
* @param {Object[] | string[] | number[] | DataManager | boolean[]} dataSource - Specifies the data to generate the list.
|
|
1440
1459
|
* @param {FieldSettingsModel} fields - Maps the columns of the data table and binds the data to the component.
|
|
1441
1460
|
* @param {Query} query - Accepts the external Query that execute along with data processing.
|
|
1461
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - Specifies the event.
|
|
1442
1462
|
* @returns {void}
|
|
1443
1463
|
*/
|
|
1444
1464
|
DropDownBase.prototype.resetList = function (dataSource, fields, query, e) {
|
|
@@ -1457,7 +1477,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1457
1477
|
}
|
|
1458
1478
|
};
|
|
1459
1479
|
DropDownBase.prototype.updateSelectElementData = function (isFiltering) {
|
|
1460
|
-
if ((isFiltering || this.isVirtualizationEnabled) &&
|
|
1480
|
+
if ((isFiltering || this.isVirtualizationEnabled) &&
|
|
1481
|
+
isNullOrUndefined(this.selectData) && this.listData && this.listData.length > 0) {
|
|
1461
1482
|
this.selectData = this.listData;
|
|
1462
1483
|
}
|
|
1463
1484
|
};
|
|
@@ -1489,7 +1510,14 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1489
1510
|
if (Object.keys(updateData).indexOf('dataSource') === -1) {
|
|
1490
1511
|
updateData.dataSource = this.dataSource;
|
|
1491
1512
|
}
|
|
1492
|
-
this.
|
|
1513
|
+
if (this.getModuleName() === 'listbox') {
|
|
1514
|
+
if (!this.isReact || (this.isReact && !isNullOrUndefined(newProp.dataSource))) {
|
|
1515
|
+
this.updateDataSource(updateData, oldProp);
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
else {
|
|
1519
|
+
this.updateDataSource(updateData, oldProp);
|
|
1520
|
+
}
|
|
1493
1521
|
}
|
|
1494
1522
|
};
|
|
1495
1523
|
/**
|
|
@@ -1539,6 +1567,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1539
1567
|
/**
|
|
1540
1568
|
* Build and render the component
|
|
1541
1569
|
*
|
|
1570
|
+
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - Specifies the event.
|
|
1542
1571
|
* @param {boolean} isEmptyData - Specifies the component to initialize with list data or not.
|
|
1543
1572
|
* @private
|
|
1544
1573
|
* @returns {void}
|
|
@@ -1661,10 +1690,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1661
1690
|
this.notify('addItem', { module: 'CheckBoxSelection', item: li });
|
|
1662
1691
|
liCollections.push(li);
|
|
1663
1692
|
if (this.getModuleName() === 'listbox') {
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
}
|
|
1667
|
-
this.listData.splice(isListboxEmpty ? this.listData.length : index, 0, item);
|
|
1693
|
+
this.listData.splice(isListboxEmpty ?
|
|
1694
|
+
this.listData.length : index, 0, item);
|
|
1668
1695
|
if (this.listData.length !== this.sortedData.length) {
|
|
1669
1696
|
this.sortedData = this.listData;
|
|
1670
1697
|
}
|
|
@@ -1676,7 +1703,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1676
1703
|
index = null;
|
|
1677
1704
|
}
|
|
1678
1705
|
if (this.getModuleName() === 'listbox') {
|
|
1679
|
-
this.updateActionCompleteData(li, item, isListboxEmpty ? null : index);
|
|
1706
|
+
this.updateActionCompleteData(li, item, isListboxEmpty ? null : index + i);
|
|
1680
1707
|
isListboxEmpty = true;
|
|
1681
1708
|
}
|
|
1682
1709
|
else {
|
|
@@ -1726,10 +1753,16 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1726
1753
|
}
|
|
1727
1754
|
else {
|
|
1728
1755
|
if (this.liCollections[index] && this.liCollections[index].parentNode) {
|
|
1729
|
-
this.liCollections[index].parentNode.
|
|
1756
|
+
this.liCollections[index].parentNode.
|
|
1757
|
+
insertBefore(liCollections[i], this.liCollections[index]);
|
|
1730
1758
|
}
|
|
1731
1759
|
else {
|
|
1732
|
-
this.
|
|
1760
|
+
if (itemIndex && this.getModuleName() === 'listbox') {
|
|
1761
|
+
this.ulElement.insertBefore(liCollections[i], this.ulElement.childNodes[itemIndex + i]);
|
|
1762
|
+
}
|
|
1763
|
+
else {
|
|
1764
|
+
this.ulElement.appendChild(liCollections[i]);
|
|
1765
|
+
}
|
|
1733
1766
|
}
|
|
1734
1767
|
}
|
|
1735
1768
|
var tempLi = [].slice.call(this.liCollections);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventHandler, Property, Event, compile, EmitType, KeyboardEvents, append, select, ModuleDeclaration } from '@syncfusion/ej2-base';import { attributes, isNullOrUndefined, getUniqueID, formatUnit, isUndefined, getValue } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, KeyboardEventArgs, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, prepend, detach, classList } from '@syncfusion/ej2-base';import { Popup, isCollide, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, Input, InputObject, FloatLabelType } from '@syncfusion/ej2-inputs';import { incrementalSearch, resetIncrementalSearchValues } from '../common/incremental-search';import { DropDownBase, dropDownBaseClasses, SelectEventArgs, FilteringEventArgs, PopupEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, ResultData, BeforeOpenEventArgs } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { DataManager, Query, Predicate, DataOptions } from '@syncfusion/ej2-data';import {
|
|
1
|
+
import { EventHandler, Property, Event, compile, EmitType, KeyboardEvents, append, select, ModuleDeclaration } from '@syncfusion/ej2-base';import { attributes, isNullOrUndefined, getUniqueID, formatUnit, isUndefined, getValue } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, KeyboardEventArgs, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, prepend, detach, classList } from '@syncfusion/ej2-base';import { Popup, isCollide, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, Input, InputObject, FloatLabelType } from '@syncfusion/ej2-inputs';import { incrementalSearch, resetIncrementalSearchValues } from '../common/incremental-search';import { DropDownBase, dropDownBaseClasses, SelectEventArgs, FilteringEventArgs, PopupEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, ResultData, BeforeOpenEventArgs } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { DataManager, Query, Predicate, DataOptions } from '@syncfusion/ej2-data';import {Offsets, SentinelType} from '../common/virtual-scroll';
|
|
2
2
|
import {ChangeEventArgs} from "./drop-down-list";
|
|
3
3
|
import {DropDownBaseModel} from "../drop-down-base/drop-down-base-model";
|
|
4
4
|
|
|
@@ -145,6 +145,13 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
145
145
|
*/
|
|
146
146
|
allowFiltering?: boolean;
|
|
147
147
|
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
*
|
|
151
|
+
* @default true
|
|
152
|
+
*/
|
|
153
|
+
isDeviceFullScreen?: boolean;
|
|
154
|
+
|
|
148
155
|
/**
|
|
149
156
|
* When set to true, the user interactions on the component are disabled.
|
|
150
157
|
*
|
|
@@ -153,7 +160,7 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
153
160
|
readonly?: boolean;
|
|
154
161
|
|
|
155
162
|
/**
|
|
156
|
-
* Defines whether to enable virtual scrolling in the component.
|
|
163
|
+
* Defines whether to enable virtual scrolling in the component.
|
|
157
164
|
*
|
|
158
165
|
* @default false
|
|
159
166
|
*/
|
|
@@ -176,11 +183,11 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
176
183
|
value?: number | string | boolean | object | null;
|
|
177
184
|
|
|
178
185
|
/**
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
allowObjectBinding?: boolean;
|
|
186
|
+
* Defines whether the object binding is allowed or not in the component.
|
|
187
|
+
*
|
|
188
|
+
* @default false
|
|
189
|
+
*/
|
|
190
|
+
allowObjectBinding?: boolean;
|
|
184
191
|
|
|
185
192
|
/**
|
|
186
193
|
* Gets or sets the index of the selected item in the component.
|
|
@@ -235,6 +235,12 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
235
235
|
* @default false
|
|
236
236
|
*/
|
|
237
237
|
allowFiltering: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* 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.
|
|
240
|
+
*
|
|
241
|
+
* @default true
|
|
242
|
+
*/
|
|
243
|
+
isDeviceFullScreen: boolean;
|
|
238
244
|
/**
|
|
239
245
|
* When set to true, the user interactions on the component are disabled.
|
|
240
246
|
*
|
|
@@ -262,10 +268,10 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
262
268
|
*/
|
|
263
269
|
value: number | string | boolean | object | null;
|
|
264
270
|
/**
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
271
|
+
* Defines whether the object binding is allowed or not in the component.
|
|
272
|
+
*
|
|
273
|
+
* @default false
|
|
274
|
+
*/
|
|
269
275
|
allowObjectBinding: boolean;
|
|
270
276
|
/**
|
|
271
277
|
* Gets or sets the index of the selected item in the component.
|
|
@@ -478,6 +484,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
478
484
|
* To trigger the change event for list.
|
|
479
485
|
*
|
|
480
486
|
* @param {MouseEvent | KeyboardEvent | TouchEvent} eve - Specifies the event arguments.
|
|
487
|
+
* @param {boolean} isCustomValue - Specifies whether the value is custom value or not.
|
|
481
488
|
* @returns {void}
|
|
482
489
|
*/
|
|
483
490
|
protected onChangeEvent(eve: MouseEvent | KeyboardEvent | TouchEvent, isCustomValue?: boolean): void;
|