@syncfusion/ej2-dropdowns 25.2.3 → 25.2.5-30068
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/CHANGELOG.md +2186 -2140
- package/{README.md → ReadMe.md} +217 -217
- package/dist/ej2-dropdowns.umd.min.js +1 -10
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +293 -197
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +460 -363
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/helpers/e2e/autocomplete.js +13 -13
- package/helpers/e2e/combobox.js +13 -13
- package/helpers/e2e/dropdownlist.js +13 -13
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/listboxHelper.js +13 -13
- package/helpers/e2e/multiselect.js +13 -13
- package/license +2 -2
- package/package.json +80 -80
- package/src/auto-complete/auto-complete-model.d.ts +190 -190
- package/src/auto-complete/auto-complete.d.ts +12 -12
- package/src/auto-complete/auto-complete.js +21 -21
- package/src/combo-box/combo-box-model.d.ts +233 -233
- package/src/combo-box/combo-box.d.ts +27 -27
- package/src/combo-box/combo-box.js +29 -29
- package/src/common/virtual-scroll.js +46 -46
- package/src/drop-down-base/drop-down-base-model.d.ts +200 -200
- package/src/drop-down-base/drop-down-base.d.ts +24 -20
- package/src/drop-down-base/drop-down-base.js +60 -39
- package/src/drop-down-list/drop-down-list-model.d.ts +209 -209
- package/src/drop-down-list/drop-down-list.d.ts +5 -5
- package/src/drop-down-list/drop-down-list.js +53 -31
- package/src/drop-down-tree/drop-down-tree-model.d.ts +473 -473
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -1
- package/src/drop-down-tree/drop-down-tree.js +29 -25
- package/src/list-box/list-box-model.d.ts +237 -237
- package/src/list-box/list-box.d.ts +2 -2
- package/src/list-box/list-box.js +19 -19
- package/src/mention/mention-model.d.ts +261 -261
- package/src/mention/mention.js +19 -19
- package/src/multi-select/float-label.js +1 -0
- package/src/multi-select/multi-select-model.d.ts +526 -526
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +182 -133
- package/styles/auto-complete/_all.scss +1 -1
- package/styles/auto-complete/_bds-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
- package/styles/auto-complete/_bootstrap-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
- package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap5.3-definition.scss +2 -0
- package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
- package/styles/auto-complete/_fabric-definition.scss +2 -2
- package/styles/auto-complete/_fluent-definition.scss +2 -2
- package/styles/auto-complete/_fluent2-definition.scss +2 -0
- package/styles/auto-complete/_fusionnew-definition.scss +2 -2
- package/styles/auto-complete/_highcontrast-definition.scss +2 -2
- package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
- package/styles/auto-complete/_material-dark-definition.scss +2 -2
- package/styles/auto-complete/_material-definition.scss +2 -2
- package/styles/auto-complete/_material3-definition.scss +2 -2
- package/styles/auto-complete/_tailwind-definition.scss +2 -2
- package/styles/auto-complete/fluent2.css +1129 -0
- package/styles/auto-complete/fluent2.scss +4 -0
- package/styles/auto-complete/material3-dark.css +1 -1
- package/styles/auto-complete/material3-dark.scss +1 -1
- package/styles/auto-complete/material3.css +1 -1
- package/styles/auto-complete/material3.scss +1 -1
- package/styles/bootstrap-dark.css +72 -300
- package/styles/bootstrap-dark.scss +28 -8
- package/styles/bootstrap.css +72 -306
- package/styles/bootstrap.scss +28 -8
- package/styles/bootstrap4.css +72 -350
- package/styles/bootstrap4.scss +28 -8
- package/styles/bootstrap5-dark.css +72 -301
- package/styles/bootstrap5-dark.scss +28 -8
- package/styles/bootstrap5.css +72 -301
- package/styles/bootstrap5.scss +28 -8
- package/styles/combo-box/_all.scss +1 -1
- package/styles/combo-box/_bds-definition.scss +2 -2
- package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
- package/styles/combo-box/_bootstrap-definition.scss +2 -2
- package/styles/combo-box/_bootstrap4-definition.scss +11 -11
- package/styles/combo-box/_bootstrap5-definition.scss +2 -2
- package/styles/combo-box/_bootstrap5.3-definition.scss +2 -0
- package/styles/combo-box/_fabric-dark-definition.scss +2 -2
- package/styles/combo-box/_fabric-definition.scss +2 -2
- package/styles/combo-box/_fluent-definition.scss +2 -2
- package/styles/combo-box/_fluent2-definition.scss +2 -0
- package/styles/combo-box/_fusionnew-definition.scss +2 -2
- package/styles/combo-box/_highcontrast-definition.scss +2 -2
- package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
- package/styles/combo-box/_material-dark-definition.scss +2 -2
- package/styles/combo-box/_material-definition.scss +2 -2
- package/styles/combo-box/_material3-definition.scss +2 -2
- package/styles/combo-box/_tailwind-definition.scss +2 -2
- package/styles/combo-box/fluent2.css +1129 -0
- package/styles/combo-box/fluent2.scss +4 -0
- package/styles/combo-box/material3-dark.css +1 -1
- package/styles/combo-box/material3-dark.scss +1 -1
- package/styles/combo-box/material3.css +1 -1
- package/styles/combo-box/material3.scss +1 -1
- package/styles/drop-down-base/_all.scss +2 -2
- package/styles/drop-down-base/_bds-definition.scss +134 -134
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +83 -83
- package/styles/drop-down-base/_bootstrap-definition.scss +83 -83
- package/styles/drop-down-base/_bootstrap4-definition.scss +90 -90
- package/styles/drop-down-base/_bootstrap5-definition.scss +117 -117
- package/styles/drop-down-base/_bootstrap5.3-definition.scss +117 -0
- package/styles/drop-down-base/_definition.scss +23 -23
- package/styles/drop-down-base/_fabric-dark-definition.scss +86 -86
- package/styles/drop-down-base/_fabric-definition.scss +84 -84
- package/styles/drop-down-base/_fluent-definition.scss +121 -121
- package/styles/drop-down-base/_fluent2-definition.scss +134 -0
- package/styles/drop-down-base/_fusionnew-definition.scss +117 -117
- package/styles/drop-down-base/_highcontrast-definition.scss +105 -105
- package/styles/drop-down-base/_highcontrast-light-definition.scss +105 -105
- package/styles/drop-down-base/_layout.scss +197 -187
- package/styles/drop-down-base/_material-dark-definition.scss +86 -86
- package/styles/drop-down-base/_material-definition.scss +85 -85
- package/styles/drop-down-base/_material3-definition.scss +76 -87
- package/styles/drop-down-base/_tailwind-definition.scss +129 -129
- package/styles/drop-down-base/_theme.scss +382 -391
- package/styles/drop-down-base/fluent2.css +1446 -0
- package/styles/drop-down-base/fluent2.scss +3 -0
- package/styles/drop-down-base/material3-dark.css +1 -1
- package/styles/drop-down-base/material3-dark.scss +1 -1
- package/styles/drop-down-base/material3.css +1 -1
- package/styles/drop-down-base/material3.scss +1 -1
- package/styles/drop-down-list/_all.scss +3 -3
- package/styles/drop-down-list/_bds-definition.scss +134 -134
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
- package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
- package/styles/drop-down-list/_bootstrap4-definition.scss +202 -202
- package/styles/drop-down-list/_bootstrap5-definition.scss +201 -201
- package/styles/drop-down-list/_bootstrap5.3-definition.scss +201 -0
- package/styles/drop-down-list/_fabric-dark-definition.scss +128 -128
- package/styles/drop-down-list/_fabric-definition.scss +124 -124
- package/styles/drop-down-list/_fluent-definition.scss +185 -185
- package/styles/drop-down-list/_fluent2-definition.scss +134 -0
- package/styles/drop-down-list/_fusionnew-definition.scss +201 -201
- package/styles/drop-down-list/_highcontrast-definition.scss +142 -142
- package/styles/drop-down-list/_highcontrast-light-definition.scss +144 -144
- package/styles/drop-down-list/_layout.scss +317 -315
- package/styles/drop-down-list/_material-dark-definition.scss +143 -143
- package/styles/drop-down-list/_material-definition.scss +167 -167
- package/styles/drop-down-list/_material3-definition.scss +172 -180
- package/styles/drop-down-list/_tailwind-definition.scss +134 -134
- package/styles/drop-down-list/_theme.scss +10 -10
- package/styles/drop-down-list/bootstrap-dark.css +5 -0
- package/styles/drop-down-list/bootstrap.css +5 -0
- package/styles/drop-down-list/bootstrap4.css +5 -0
- package/styles/drop-down-list/bootstrap5-dark.css +5 -0
- package/styles/drop-down-list/bootstrap5.css +5 -0
- package/styles/drop-down-list/fabric-dark.css +5 -0
- package/styles/drop-down-list/fabric.css +5 -0
- package/styles/drop-down-list/fluent-dark.css +5 -0
- package/styles/drop-down-list/fluent.css +5 -0
- package/styles/drop-down-list/fluent2.css +1617 -0
- package/styles/drop-down-list/fluent2.scss +9 -0
- package/styles/drop-down-list/highcontrast-light.css +5 -0
- package/styles/drop-down-list/highcontrast.css +5 -0
- package/styles/drop-down-list/icons/_bds.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap5.3.scss +14 -0
- package/styles/drop-down-list/icons/_bootstrap5.scss +14 -14
- package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
- package/styles/drop-down-list/icons/_fabric.scss +14 -14
- package/styles/drop-down-list/icons/_fluent.scss +14 -14
- package/styles/drop-down-list/icons/_fluent2.scss +14 -0
- package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
- package/styles/drop-down-list/icons/_material-dark.scss +14 -14
- package/styles/drop-down-list/icons/_material.scss +14 -14
- package/styles/drop-down-list/icons/_material3.scss +14 -14
- package/styles/drop-down-list/icons/_tailwind.scss +14 -14
- package/styles/drop-down-list/material-dark.css +5 -0
- package/styles/drop-down-list/material.css +5 -0
- package/styles/drop-down-list/material3-dark.css +6 -1
- package/styles/drop-down-list/material3-dark.scss +1 -1
- package/styles/drop-down-list/material3.css +6 -1
- package/styles/drop-down-list/material3.scss +1 -1
- package/styles/drop-down-list/tailwind-dark.css +5 -0
- package/styles/drop-down-list/tailwind.css +5 -0
- package/styles/drop-down-tree/_all.scss +2 -2
- package/styles/drop-down-tree/_bds-definition.scss +67 -61
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +73 -72
- package/styles/drop-down-tree/_bootstrap-definition.scss +72 -71
- package/styles/drop-down-tree/_bootstrap4-definition.scss +74 -72
- package/styles/drop-down-tree/_bootstrap5-definition.scss +66 -60
- package/styles/drop-down-tree/_bootstrap5.3-definition.scss +66 -0
- package/styles/drop-down-tree/_fabric-dark-definition.scss +73 -72
- package/styles/drop-down-tree/_fabric-definition.scss +73 -72
- package/styles/drop-down-tree/_fluent-definition.scss +71 -66
- package/styles/drop-down-tree/_fluent2-definition.scss +76 -0
- package/styles/drop-down-tree/_fusionnew-definition.scss +61 -60
- package/styles/drop-down-tree/_highcontrast-definition.scss +73 -72
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +73 -72
- package/styles/drop-down-tree/_layout.scss +1389 -1423
- package/styles/drop-down-tree/_material-dark-definition.scss +74 -73
- package/styles/drop-down-tree/_material-definition.scss +74 -73
- package/styles/drop-down-tree/_material3-definition.scss +75 -76
- package/styles/drop-down-tree/_tailwind-definition.scss +67 -61
- package/styles/drop-down-tree/_theme.scss +130 -132
- package/styles/drop-down-tree/bootstrap-dark.css +20 -21
- package/styles/drop-down-tree/bootstrap.css +20 -21
- package/styles/drop-down-tree/bootstrap4.css +21 -22
- package/styles/drop-down-tree/bootstrap5-dark.css +20 -19
- package/styles/drop-down-tree/bootstrap5.css +20 -19
- package/styles/drop-down-tree/fabric-dark.css +20 -21
- package/styles/drop-down-tree/fabric.css +20 -21
- package/styles/drop-down-tree/fluent-dark.css +28 -27
- package/styles/drop-down-tree/fluent.css +28 -27
- package/styles/drop-down-tree/fluent2.css +1671 -0
- package/styles/drop-down-tree/fluent2.scss +9 -0
- package/styles/drop-down-tree/highcontrast-light.css +20 -21
- package/styles/drop-down-tree/highcontrast.css +20 -15
- package/styles/drop-down-tree/icons/_bds.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap5.3.scss +11 -0
- package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric.scss +11 -11
- package/styles/drop-down-tree/icons/_fluent.scss +11 -11
- package/styles/drop-down-tree/icons/_fluent2.scss +14 -0
- package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
- package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
- package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
- package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_material.scss +11 -11
- package/styles/drop-down-tree/icons/_material3.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
- package/styles/drop-down-tree/material-dark.css +28 -34
- package/styles/drop-down-tree/material.css +31 -40
- package/styles/drop-down-tree/material3-dark.css +17 -21
- package/styles/drop-down-tree/material3-dark.scss +1 -1
- package/styles/drop-down-tree/material3.css +17 -21
- package/styles/drop-down-tree/material3.scss +1 -1
- package/styles/drop-down-tree/tailwind-dark.css +29 -20
- package/styles/drop-down-tree/tailwind.css +29 -20
- package/styles/fabric-dark.css +72 -300
- package/styles/fabric-dark.scss +28 -8
- package/styles/fabric.css +72 -306
- package/styles/fabric.scss +28 -8
- package/styles/fluent-dark.css +80 -315
- package/styles/fluent-dark.scss +28 -8
- package/styles/fluent.css +80 -315
- package/styles/fluent.scss +28 -8
- package/styles/fluent2.css +4541 -0
- package/styles/fluent2.scss +28 -0
- package/styles/highcontrast-light.css +72 -300
- package/styles/highcontrast-light.scss +28 -8
- package/styles/highcontrast.css +72 -300
- package/styles/highcontrast.scss +28 -8
- package/styles/list-box/_all.scss +2 -2
- package/styles/list-box/_bds-definition.scss +136 -136
- package/styles/list-box/_bigger.scss +164 -0
- package/styles/list-box/_bootstrap-dark-definition.scss +124 -126
- package/styles/list-box/_bootstrap-definition.scss +119 -119
- package/styles/list-box/_bootstrap4-definition.scss +124 -124
- package/styles/list-box/_bootstrap5-definition.scss +121 -120
- package/styles/list-box/_bootstrap5.3-definition.scss +121 -0
- package/styles/list-box/_fabric-dark-definition.scss +124 -126
- package/styles/list-box/_fabric-definition.scss +119 -119
- package/styles/list-box/_fluent-definition.scss +120 -120
- package/styles/list-box/_fluent2-definition.scss +119 -0
- package/styles/list-box/_fusionnew-definition.scss +111 -111
- package/styles/list-box/_highcontrast-definition.scss +119 -119
- package/styles/list-box/_highcontrast-light-definition.scss +124 -126
- package/styles/list-box/_layout.scss +455 -546
- package/styles/list-box/_material-dark-definition.scss +124 -126
- package/styles/list-box/_material-definition.scss +119 -119
- package/styles/list-box/_material3-definition.scss +119 -119
- package/styles/list-box/_tailwind-definition.scss +119 -119
- package/styles/list-box/_theme.scss +314 -382
- package/styles/list-box/bootstrap-dark.css +43 -215
- package/styles/list-box/bootstrap.css +43 -221
- package/styles/list-box/bootstrap4.css +42 -264
- package/styles/list-box/bootstrap5-dark.css +43 -215
- package/styles/list-box/bootstrap5.css +43 -215
- package/styles/list-box/fabric-dark.css +43 -215
- package/styles/list-box/fabric.css +43 -221
- package/styles/list-box/fluent-dark.css +43 -221
- package/styles/list-box/fluent.css +43 -221
- package/styles/list-box/fluent2.css +1896 -0
- package/styles/list-box/fluent2.scss +5 -0
- package/styles/list-box/highcontrast-light.css +43 -215
- package/styles/list-box/highcontrast.css +43 -221
- package/styles/list-box/icons/_bds.scss +25 -25
- package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
- package/styles/list-box/icons/_bootstrap.scss +25 -25
- package/styles/list-box/icons/_bootstrap4.scss +25 -25
- package/styles/list-box/icons/_bootstrap5.3.scss +25 -0
- package/styles/list-box/icons/_bootstrap5.scss +25 -25
- package/styles/list-box/icons/_fabric-dark.scss +25 -25
- package/styles/list-box/icons/_fabric.scss +25 -25
- package/styles/list-box/icons/_fluent.scss +25 -25
- package/styles/list-box/icons/_fluent2.scss +25 -0
- package/styles/list-box/icons/_fusionnew.scss +25 -25
- package/styles/list-box/icons/_highcontrast-light.scss +25 -25
- package/styles/list-box/icons/_highcontrast.scss +25 -25
- package/styles/list-box/icons/_material-dark.scss +25 -25
- package/styles/list-box/icons/_material.scss +25 -25
- package/styles/list-box/icons/_material3.scss +25 -25
- package/styles/list-box/icons/_tailwind-dark.scss +25 -25
- package/styles/list-box/icons/_tailwind.scss +25 -25
- package/styles/list-box/material-dark.css +43 -215
- package/styles/list-box/material.css +43 -221
- package/styles/list-box/material3-dark.css +44 -216
- package/styles/list-box/material3-dark.scss +1 -1
- package/styles/list-box/material3.css +44 -216
- package/styles/list-box/material3.scss +1 -1
- package/styles/list-box/tailwind-dark.css +45 -233
- package/styles/list-box/tailwind.css +45 -233
- package/styles/material-dark.css +80 -325
- package/styles/material-dark.scss +28 -8
- package/styles/material.css +84 -354
- package/styles/material.scss +28 -8
- package/styles/material3-dark.css +79 -337
- package/styles/material3-dark.scss +28 -8
- package/styles/material3.css +79 -337
- package/styles/material3.scss +28 -8
- package/styles/mention/_all.scss +1 -1
- package/styles/mention/_bds-definition.scss +1 -1
- package/styles/mention/_bootstrap-dark-definition.scss +3 -3
- package/styles/mention/_bootstrap-definition.scss +3 -3
- package/styles/mention/_bootstrap4-definition.scss +3 -3
- package/styles/mention/_bootstrap5-definition.scss +1 -1
- package/styles/mention/_bootstrap5.3-definition.scss +1 -0
- package/styles/mention/_fabric-dark-definition.scss +2 -2
- package/styles/mention/_fabric-definition.scss +3 -3
- package/styles/mention/_fluent-definition.scss +1 -1
- package/styles/mention/_fluent2-definition.scss +1 -0
- package/styles/mention/_fusionnew-definition.scss +1 -1
- package/styles/mention/_highcontrast-definition.scss +3 -3
- package/styles/mention/_highcontrast-light-definition.scss +3 -3
- package/styles/mention/_layout.scss +6 -6
- package/styles/mention/_material-dark-definition.scss +3 -3
- package/styles/mention/_material-definition.scss +3 -3
- package/styles/mention/_material3-definition.scss +1 -1
- package/styles/mention/_tailwind-definition.scss +1 -1
- package/styles/mention/fluent2.css +1106 -0
- package/styles/mention/fluent2.scss +6 -0
- package/styles/mention/material3-dark.css +1 -1
- package/styles/mention/material3-dark.scss +1 -1
- package/styles/mention/material3.css +1 -1
- package/styles/mention/material3.scss +1 -1
- package/styles/multi-select/_all.scss +2 -2
- package/styles/multi-select/_bds-definition.scss +235 -235
- package/styles/multi-select/_bootstrap-dark-definition.scss +207 -207
- package/styles/multi-select/_bootstrap-definition.scss +196 -196
- package/styles/multi-select/_bootstrap4-definition.scss +278 -278
- package/styles/multi-select/_bootstrap5-definition.scss +230 -230
- package/styles/multi-select/_bootstrap5.3-definition.scss +230 -0
- package/styles/multi-select/_fabric-dark-definition.scss +192 -192
- package/styles/multi-select/_fabric-definition.scss +183 -183
- package/styles/multi-select/_fluent-definition.scss +246 -246
- package/styles/multi-select/_fluent2-definition.scss +237 -0
- package/styles/multi-select/_fusionnew-definition.scss +227 -227
- package/styles/multi-select/_highcontrast-definition.scss +303 -303
- package/styles/multi-select/_highcontrast-light-definition.scss +297 -297
- package/styles/multi-select/_layout.scss +2200 -2206
- package/styles/multi-select/_material-dark-definition.scss +241 -241
- package/styles/multi-select/_material-definition.scss +234 -234
- package/styles/multi-select/_material3-definition.scss +231 -246
- package/styles/multi-select/_tailwind-definition.scss +235 -235
- package/styles/multi-select/_theme.scss +585 -586
- package/styles/multi-select/bootstrap-dark.css +4 -10
- package/styles/multi-select/bootstrap.css +4 -10
- package/styles/multi-select/bootstrap4.css +4 -10
- package/styles/multi-select/bootstrap5-dark.css +4 -11
- package/styles/multi-select/bootstrap5.css +4 -11
- package/styles/multi-select/fabric-dark.css +4 -10
- package/styles/multi-select/fabric.css +4 -10
- package/styles/multi-select/fluent-dark.css +4 -11
- package/styles/multi-select/fluent.css +4 -11
- package/styles/multi-select/fluent2.css +2590 -0
- package/styles/multi-select/fluent2.scss +9 -0
- package/styles/multi-select/highcontrast-light.css +4 -10
- package/styles/multi-select/highcontrast.css +4 -10
- package/styles/multi-select/icons/_bds.scss +26 -26
- package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
- package/styles/multi-select/icons/_bootstrap.scss +26 -26
- package/styles/multi-select/icons/_bootstrap4.scss +37 -37
- package/styles/multi-select/icons/_bootstrap5.3.scss +26 -0
- package/styles/multi-select/icons/_bootstrap5.scss +26 -26
- package/styles/multi-select/icons/_fabric-dark.scss +26 -26
- package/styles/multi-select/icons/_fabric.scss +26 -26
- package/styles/multi-select/icons/_fluent.scss +55 -55
- package/styles/multi-select/icons/_fluent2.scss +692 -0
- package/styles/multi-select/icons/_fusionnew.scss +26 -26
- package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
- package/styles/multi-select/icons/_highcontrast.scss +26 -26
- package/styles/multi-select/icons/_material-dark.scss +693 -693
- package/styles/multi-select/icons/_material.scss +693 -693
- package/styles/multi-select/icons/_material3.scss +695 -692
- package/styles/multi-select/icons/_tailwind.scss +26 -26
- package/styles/multi-select/material-dark.css +4 -10
- package/styles/multi-select/material.css +5 -11
- package/styles/multi-select/material3-dark.css +15 -18
- package/styles/multi-select/material3-dark.scss +1 -1
- package/styles/multi-select/material3.css +15 -18
- package/styles/multi-select/material3.scss +1 -1
- package/styles/multi-select/tailwind-dark.css +4 -10
- package/styles/multi-select/tailwind.css +4 -10
- package/styles/tailwind-dark.css +83 -319
- package/styles/tailwind-dark.scss +28 -8
- package/styles/tailwind.css +83 -319
- package/styles/tailwind.scss +28 -8
- package/.eslintrc.json +0 -260
- package/dist/ej2-dropdowns.min.js +0 -10
- package/dist/global/ej2-dropdowns.min.js +0 -11
- package/dist/global/ej2-dropdowns.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -237,14 +237,14 @@ function revertHighlightSearch(content) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
241
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
242
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
243
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
244
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
245
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
246
|
-
});
|
|
247
|
-
};
|
|
240
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
241
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
242
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
243
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
244
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
245
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
248
|
class VirtualScroll {
|
|
249
249
|
constructor(parent) {
|
|
250
250
|
this.sentinelInfo = {
|
|
@@ -735,12 +735,12 @@ class VirtualScroll {
|
|
|
735
735
|
* Common source
|
|
736
736
|
*/
|
|
737
737
|
|
|
738
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
739
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
740
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
741
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
742
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
743
|
-
};
|
|
738
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
739
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
740
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
741
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
742
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
743
|
+
};
|
|
744
744
|
class FieldSettings extends ChildProperty {
|
|
745
745
|
}
|
|
746
746
|
__decorate([
|
|
@@ -797,7 +797,6 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
797
797
|
constructor(options, element) {
|
|
798
798
|
super(options, element);
|
|
799
799
|
this.preventChange = false;
|
|
800
|
-
this.isAngular = false;
|
|
801
800
|
this.isPreventChange = false;
|
|
802
801
|
this.isDynamicDataChange = false;
|
|
803
802
|
this.addedNewItem = false;
|
|
@@ -840,6 +839,8 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
840
839
|
this.appendUncheckList = false;
|
|
841
840
|
this.getInitialData = false;
|
|
842
841
|
this.preventPopupOpen = true;
|
|
842
|
+
this.virtualSelectAllState = false;
|
|
843
|
+
this.CurrentEvent = null;
|
|
843
844
|
this.virtualListInfo = {
|
|
844
845
|
currentPageNumber: null,
|
|
845
846
|
direction: null,
|
|
@@ -1434,8 +1435,8 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1434
1435
|
if (!isWhereExist) {
|
|
1435
1436
|
this.remoteDataCount = e.count;
|
|
1436
1437
|
}
|
|
1437
|
-
this.dataCount = e.count;
|
|
1438
|
-
this.totalItemCount = e.count;
|
|
1438
|
+
this.dataCount = !this.virtualSelectAll ? e.count : this.dataCount;
|
|
1439
|
+
this.totalItemCount = !this.virtualSelectAll ? e.count : this.totalItemCount;
|
|
1439
1440
|
ulElement = this.renderItems(listItems, fields);
|
|
1440
1441
|
this.appendUncheckList = false;
|
|
1441
1442
|
this.onActionComplete(ulElement, listItems, e);
|
|
@@ -1461,6 +1462,12 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1461
1462
|
if (this.isVirtualizationEnabled) {
|
|
1462
1463
|
this.getFilteringSkeletonCount();
|
|
1463
1464
|
}
|
|
1465
|
+
if (this.virtualSelectAll && this.virtualSelectAllData) {
|
|
1466
|
+
this.virtualSelectionAll(this.virtualSelectAllState, this.liCollections, this.CurrentEvent);
|
|
1467
|
+
this.virtualSelectAllState = false;
|
|
1468
|
+
this.CurrentEvent = null;
|
|
1469
|
+
this.virtualSelectAll = false;
|
|
1470
|
+
}
|
|
1464
1471
|
}
|
|
1465
1472
|
});
|
|
1466
1473
|
}).catch((e) => {
|
|
@@ -1512,11 +1519,11 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1512
1519
|
}
|
|
1513
1520
|
}
|
|
1514
1521
|
}
|
|
1515
|
-
if (isReOrder && (!(this.dataSource instanceof DataManager) && !this.isCustomDataUpdated)) {
|
|
1522
|
+
if (isReOrder && (!(this.dataSource instanceof DataManager) && !this.isCustomDataUpdated) && !this.virtualSelectAll) {
|
|
1516
1523
|
// eslint-disable @typescript-eslint/no-explicit-any
|
|
1517
1524
|
this.dataCount = this.totalItemCount = this.virtualSelectAll ? listItems.length : listItems.count;
|
|
1518
1525
|
}
|
|
1519
|
-
listItems = this.isVirtualizationEnabled
|
|
1526
|
+
listItems = this.isVirtualizationEnabled ? listItems.result : listItems;
|
|
1520
1527
|
// eslint-enable @typescript-eslint/no-explicit-any
|
|
1521
1528
|
const localDataArgs = { cancel: false, result: listItems };
|
|
1522
1529
|
this.isPreventChange = this.isAngular && this.preventChange ? true : this.isPreventChange;
|
|
@@ -1555,6 +1562,9 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1555
1562
|
updatePopupState() {
|
|
1556
1563
|
// Used this method in component side.
|
|
1557
1564
|
}
|
|
1565
|
+
virtualSelectionAll(state, li, event) {
|
|
1566
|
+
// Used this method in component side.
|
|
1567
|
+
}
|
|
1558
1568
|
updateRemoteData() {
|
|
1559
1569
|
this.setListData(this.dataSource, this.fields, this.query);
|
|
1560
1570
|
}
|
|
@@ -1845,10 +1855,14 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1845
1855
|
}
|
|
1846
1856
|
}
|
|
1847
1857
|
updateGroupFixedHeader(element, target) {
|
|
1848
|
-
this.fixedHeaderElement
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1858
|
+
if (this.fixedHeaderElement) {
|
|
1859
|
+
if (!isNullOrUndefined(element.innerHTML)) {
|
|
1860
|
+
this.fixedHeaderElement.innerHTML = element.innerHTML;
|
|
1861
|
+
}
|
|
1862
|
+
this.fixedHeaderElement.style.position = 'fixed';
|
|
1863
|
+
this.fixedHeaderElement.style.top = (this.list.parentElement.offsetTop + this.list.offsetTop) - window.scrollY + 'px';
|
|
1864
|
+
this.fixedHeaderElement.style.display = 'block';
|
|
1865
|
+
}
|
|
1852
1866
|
}
|
|
1853
1867
|
getValidLi() {
|
|
1854
1868
|
if (this.isVirtualizationEnabled) {
|
|
@@ -2039,12 +2053,15 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
2039
2053
|
* @param {string | number | boolean} value - Specifies given value.
|
|
2040
2054
|
* @returns {number} Returns the index of the item.
|
|
2041
2055
|
*/
|
|
2042
|
-
getIndexByValueFilter(value) {
|
|
2056
|
+
getIndexByValueFilter(value, ulElement) {
|
|
2043
2057
|
let index;
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2058
|
+
if (!ulElement) {
|
|
2059
|
+
return null;
|
|
2060
|
+
}
|
|
2061
|
+
const listItems = ulElement.querySelectorAll('li' + ':not(.e-list-group-item)');
|
|
2062
|
+
if (listItems) {
|
|
2063
|
+
for (let i = 0; i < listItems.length; i++) {
|
|
2064
|
+
if (!isNullOrUndefined(value) && listItems[i].getAttribute('data-value') === value.toString()) {
|
|
2048
2065
|
index = i;
|
|
2049
2066
|
break;
|
|
2050
2067
|
}
|
|
@@ -2205,6 +2222,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
2205
2222
|
const group = this.element.querySelector('select>optgroup');
|
|
2206
2223
|
if ((this.fields.groupBy || !isNullOrUndefined(group)) && !this.isGroupChecking) {
|
|
2207
2224
|
EventHandler.add(this.list, 'scroll', this.setFloatingHeader, this);
|
|
2225
|
+
EventHandler.add(document, 'scroll', this.updateGroupFixedHeader, this);
|
|
2208
2226
|
}
|
|
2209
2227
|
if (this.getModuleName() === 'dropdownbase') {
|
|
2210
2228
|
if (this.element.getAttribute('tabindex')) {
|
|
@@ -2456,12 +2474,15 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
2456
2474
|
* @returns {void}
|
|
2457
2475
|
*/
|
|
2458
2476
|
destroy() {
|
|
2459
|
-
if (document
|
|
2460
|
-
EventHandler.remove(
|
|
2461
|
-
if (
|
|
2462
|
-
this.
|
|
2477
|
+
if (document) {
|
|
2478
|
+
EventHandler.remove(document, 'scroll', this.updateGroupFixedHeader);
|
|
2479
|
+
if (document.body.contains(this.list)) {
|
|
2480
|
+
EventHandler.remove(this.list, 'scroll', this.setFloatingHeader);
|
|
2481
|
+
if (!isNullOrUndefined(this.rippleFun)) {
|
|
2482
|
+
this.rippleFun();
|
|
2483
|
+
}
|
|
2484
|
+
detach(this.list);
|
|
2463
2485
|
}
|
|
2464
|
-
detach(this.list);
|
|
2465
2486
|
}
|
|
2466
2487
|
this.liCollections = null;
|
|
2467
2488
|
this.ulElement = null;
|
|
@@ -2539,12 +2560,12 @@ DropDownBase = __decorate([
|
|
|
2539
2560
|
* export all modules from current location
|
|
2540
2561
|
*/
|
|
2541
2562
|
|
|
2542
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2543
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2544
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2545
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2546
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2547
|
-
};
|
|
2563
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2564
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2565
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2566
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2567
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2568
|
+
};
|
|
2548
2569
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
2549
2570
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
2550
2571
|
// don't use space in classnames
|
|
@@ -2605,11 +2626,16 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2605
2626
|
super(options, element);
|
|
2606
2627
|
this.isListSearched = false;
|
|
2607
2628
|
this.preventChange = false;
|
|
2608
|
-
this.isAngular = false;
|
|
2609
2629
|
this.isTouched = false;
|
|
2610
2630
|
this.IsScrollerAtEnd = function () {
|
|
2611
2631
|
return this.list && this.list.scrollTop + this.list.clientHeight >= this.list.scrollHeight;
|
|
2612
2632
|
};
|
|
2633
|
+
this.removeAllChildren = function (element) {
|
|
2634
|
+
while (element.children[0]) {
|
|
2635
|
+
this.removeAllChildren(element.children[0]);
|
|
2636
|
+
element.removeChild(element.children[0]);
|
|
2637
|
+
}
|
|
2638
|
+
};
|
|
2613
2639
|
}
|
|
2614
2640
|
/**
|
|
2615
2641
|
* Initialize the event handler.
|
|
@@ -3496,7 +3522,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3496
3522
|
}
|
|
3497
3523
|
if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
|
|
3498
3524
|
let value = this.getItemData().value;
|
|
3499
|
-
let filterIndex = this.getIndexByValueFilter(value);
|
|
3525
|
+
let filterIndex = this.getIndexByValueFilter(value, this.actionCompleteData.ulElement);
|
|
3500
3526
|
if (!isNullOrUndefined(filterIndex)) {
|
|
3501
3527
|
this.activeIndex = filterIndex;
|
|
3502
3528
|
}
|
|
@@ -3838,7 +3864,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3838
3864
|
value = 'null';
|
|
3839
3865
|
}
|
|
3840
3866
|
if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
|
|
3841
|
-
let filterIndex = this.getIndexByValueFilter(value);
|
|
3867
|
+
let filterIndex = this.getIndexByValueFilter(value, this.actionCompleteData.ulElement);
|
|
3842
3868
|
if (!isNullOrUndefined(filterIndex)) {
|
|
3843
3869
|
this.activeIndex = filterIndex;
|
|
3844
3870
|
}
|
|
@@ -3880,7 +3906,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3880
3906
|
this.inputElement.style.display = 'block';
|
|
3881
3907
|
}
|
|
3882
3908
|
if (!isNullOrUndefined(dataItem.value) && !this.enableVirtualization && this.allowFiltering) {
|
|
3883
|
-
this.activeIndex = this.getIndexByValueFilter(dataItem.value);
|
|
3909
|
+
this.activeIndex = this.getIndexByValueFilter(dataItem.value, this.actionCompleteData.ulElement);
|
|
3884
3910
|
}
|
|
3885
3911
|
const clearIcon = dropDownListClasses.clearIcon;
|
|
3886
3912
|
const isFilterElement = this.isFiltering() && this.filterInput && (this.getModuleName() === 'combobox');
|
|
@@ -4953,7 +4979,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
4953
4979
|
this.popupContentElement.setAttribute('id', 'no-record');
|
|
4954
4980
|
}
|
|
4955
4981
|
this.inputElement.setAttribute('aria-expanded', 'true');
|
|
4956
|
-
this.inputElement.setAttribute('aria-controls', this.element.id);
|
|
4982
|
+
this.inputElement.setAttribute('aria-controls', this.element.id + '_popup');
|
|
4957
4983
|
const inputParent = this.isFiltering() ? this.filterInput.parentElement : this.inputWrapper.container;
|
|
4958
4984
|
addClass([inputParent], [dropDownListClasses.inputFocus]);
|
|
4959
4985
|
const animModel = { name: 'FadeIn', duration: 100 };
|
|
@@ -5328,6 +5354,14 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5328
5354
|
this.keyboardEvent = null;
|
|
5329
5355
|
EventHandler.remove(document, 'mousedown', this.onDocumentClick);
|
|
5330
5356
|
this.isActive = false;
|
|
5357
|
+
if (this.getModuleName() === 'dropdownlist') {
|
|
5358
|
+
Input.destroy({
|
|
5359
|
+
element: this.filterInput,
|
|
5360
|
+
floatLabelType: this.floatLabelType,
|
|
5361
|
+
properties: { placeholder: this.filterBarPlaceholder },
|
|
5362
|
+
buttons: this.clearIconElement,
|
|
5363
|
+
}, this.clearIconElement);
|
|
5364
|
+
}
|
|
5331
5365
|
this.filterInputObj = null;
|
|
5332
5366
|
this.isDropDownClick = false;
|
|
5333
5367
|
this.preventAutoFill = false;
|
|
@@ -5358,6 +5392,11 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5358
5392
|
}
|
|
5359
5393
|
if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
|
|
5360
5394
|
this.filterInput.removeAttribute('aria-activedescendant');
|
|
5395
|
+
this.filterInput.removeAttribute('aria-disabled');
|
|
5396
|
+
this.filterInput.removeAttribute('role');
|
|
5397
|
+
this.filterInput.removeAttribute('autocomplete');
|
|
5398
|
+
this.filterInput.removeAttribute('autocapitalize');
|
|
5399
|
+
this.filterInput.removeAttribute('spellcheck');
|
|
5361
5400
|
}
|
|
5362
5401
|
this.filterInput = null;
|
|
5363
5402
|
}
|
|
@@ -5477,6 +5516,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5477
5516
|
destroyPopup() {
|
|
5478
5517
|
this.isPopupOpen = false;
|
|
5479
5518
|
this.isFilterFocus = false;
|
|
5519
|
+
this.inputElement.removeAttribute('aria-controls');
|
|
5480
5520
|
if (this.popupObj) {
|
|
5481
5521
|
this.popupObj.destroy();
|
|
5482
5522
|
detach(this.popupObj.element);
|
|
@@ -5567,7 +5607,6 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5567
5607
|
attributes(this.targetElement(), { 'aria-label': this.getModuleName() });
|
|
5568
5608
|
this.inputElement.setAttribute('aria-label', this.getModuleName());
|
|
5569
5609
|
this.inputElement.setAttribute('aria-expanded', 'false');
|
|
5570
|
-
this.inputElement.setAttribute('aria-controls', this.element.id + '_popups');
|
|
5571
5610
|
}
|
|
5572
5611
|
attributes(this.targetElement(), this.getAriaAttributes());
|
|
5573
5612
|
this.updateDataAttribute(this.htmlAttributes);
|
|
@@ -5784,8 +5823,8 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5784
5823
|
*/
|
|
5785
5824
|
onPropertyChanged(newProp, oldProp) {
|
|
5786
5825
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5787
|
-
if (!isNullOrUndefined(newProp.dataSource) && !this.isTouched && (isNullOrUndefined(newProp.value) && isNullOrUndefined(newProp.index)) && !isNullOrUndefined(this.preselectedIndex)) {
|
|
5788
|
-
newProp.index = this.
|
|
5826
|
+
if (!isNullOrUndefined(newProp.dataSource) && !this.isTouched && (isNullOrUndefined(newProp.value) && isNullOrUndefined(newProp.index)) && !isNullOrUndefined(this.preselectedIndex) && !isNullOrUndefined(this.index)) {
|
|
5827
|
+
newProp.index = this.index;
|
|
5789
5828
|
}
|
|
5790
5829
|
if (!isNullOrUndefined(newProp.value) || !isNullOrUndefined(newProp.index)) {
|
|
5791
5830
|
this.isTouched = true;
|
|
@@ -6298,10 +6337,12 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6298
6337
|
this.inputWrapper.container.parentElement.insertBefore(this.element, this.inputWrapper.container);
|
|
6299
6338
|
detach(this.inputWrapper.container);
|
|
6300
6339
|
}
|
|
6301
|
-
this.hiddenElement
|
|
6340
|
+
delete this.hiddenElement;
|
|
6302
6341
|
this.filterInput = null;
|
|
6303
|
-
this.inputWrapper = null;
|
|
6304
6342
|
this.keyboardModule = null;
|
|
6343
|
+
if (!isNullOrUndefined(this.ulElement)) {
|
|
6344
|
+
this.removeAllChildren(this.ulElement);
|
|
6345
|
+
}
|
|
6305
6346
|
this.ulElement = null;
|
|
6306
6347
|
this.list = null;
|
|
6307
6348
|
this.clearIconElement = null;
|
|
@@ -6325,10 +6366,12 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6325
6366
|
Input.destroy({
|
|
6326
6367
|
element: this.inputElement,
|
|
6327
6368
|
floatLabelType: this.floatLabelType,
|
|
6328
|
-
properties: this.properties
|
|
6369
|
+
properties: this.properties,
|
|
6370
|
+
buttons: this.inputWrapper.container.querySelectorAll('.e-input-group-icon')[0],
|
|
6329
6371
|
}, this.clearButton);
|
|
6330
6372
|
this.clearButton = null;
|
|
6331
6373
|
this.inputElement = null;
|
|
6374
|
+
this.inputWrapper = null;
|
|
6332
6375
|
super.destroy();
|
|
6333
6376
|
}
|
|
6334
6377
|
/* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
|
|
@@ -6460,12 +6503,12 @@ DropDownList = __decorate$1([
|
|
|
6460
6503
|
* export all modules from current location
|
|
6461
6504
|
*/
|
|
6462
6505
|
|
|
6463
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6464
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6465
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6466
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6467
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6468
|
-
};
|
|
6506
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6507
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6508
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6509
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6510
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6511
|
+
};
|
|
6469
6512
|
const RTL = 'e-rtl';
|
|
6470
6513
|
const DROPDOWNTREE = 'e-ddt';
|
|
6471
6514
|
const HIDDENELEMENT = 'e-ddt-hidden';
|
|
@@ -8029,10 +8072,14 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8029
8072
|
focusedElement.focus();
|
|
8030
8073
|
addClass([focusedElement], ['e-node-focus']);
|
|
8031
8074
|
}
|
|
8032
|
-
if (this.
|
|
8033
|
-
const
|
|
8034
|
-
this.
|
|
8035
|
-
this.checkSelectAll
|
|
8075
|
+
if (this.treeObj.checkedNodes.length > 0) {
|
|
8076
|
+
const nodes = this.treeObj.element.querySelectorAll('li');
|
|
8077
|
+
const checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
|
|
8078
|
+
if ((checkedNodes.length === nodes.length || this.checkSelectAll) && this.checkBoxElement) {
|
|
8079
|
+
const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
8080
|
+
this.changeState(wrap, 'check');
|
|
8081
|
+
this.checkSelectAll = false;
|
|
8082
|
+
}
|
|
8036
8083
|
}
|
|
8037
8084
|
if (this.allowFiltering) {
|
|
8038
8085
|
removeClass([this.inputWrapper], [INPUTFOCUS]);
|
|
@@ -8379,6 +8426,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8379
8426
|
if (this.showCheckBox) {
|
|
8380
8427
|
return;
|
|
8381
8428
|
}
|
|
8429
|
+
const eventArgs = this.getEventArgs(args);
|
|
8430
|
+
this.trigger('select', eventArgs);
|
|
8382
8431
|
let selectedText;
|
|
8383
8432
|
if (args.isInteracted) {
|
|
8384
8433
|
const id = getValue('id', args.nodeData).toString();
|
|
@@ -8406,8 +8455,6 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8406
8455
|
this.setMultiSelect();
|
|
8407
8456
|
}
|
|
8408
8457
|
}
|
|
8409
|
-
const eventArgs = this.getEventArgs(args);
|
|
8410
|
-
this.trigger('select', eventArgs);
|
|
8411
8458
|
if (this.isValueChange && !this.changeOnBlur) {
|
|
8412
8459
|
this.triggerChangeEvent(this.keyEventArgs);
|
|
8413
8460
|
this.isValueChange = false;
|
|
@@ -9723,12 +9770,12 @@ DropDownTree = __decorate$2([
|
|
|
9723
9770
|
* export all modules from current location
|
|
9724
9771
|
*/
|
|
9725
9772
|
|
|
9726
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9727
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9728
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9729
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9730
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9731
|
-
};
|
|
9773
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9774
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9775
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9776
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9777
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9778
|
+
};
|
|
9732
9779
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
9733
9780
|
/// <reference path='../drop-down-list/drop-down-list-model.d.ts'/>
|
|
9734
9781
|
const SPINNER_CLASS = 'e-atc-spinner-icon';
|
|
@@ -10698,12 +10745,12 @@ ComboBox = __decorate$3([
|
|
|
10698
10745
|
* export all modules from current location
|
|
10699
10746
|
*/
|
|
10700
10747
|
|
|
10701
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10702
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10703
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10704
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10705
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10706
|
-
};
|
|
10748
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10749
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10750
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10751
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10752
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10753
|
+
};
|
|
10707
10754
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
10708
10755
|
/// <reference path='../combo-box/combo-box-model.d.ts'/>
|
|
10709
10756
|
dropDownListClasses.root = 'e-autocomplete';
|
|
@@ -11241,6 +11288,7 @@ function createFloatLabel(overAllWrapper, searchWrapper, element, inputElement,
|
|
|
11241
11288
|
element.id = id;
|
|
11242
11289
|
if (!isNullOrUndefined(element.id) && element.id !== '') {
|
|
11243
11290
|
floatLabelElement.id = 'label_' + element.id.replace(/ /g, '_');
|
|
11291
|
+
floatLabelElement.setAttribute('for', element.id);
|
|
11244
11292
|
attributes(inputElement, { 'aria-labelledby': floatLabelElement.id });
|
|
11245
11293
|
}
|
|
11246
11294
|
if (!isNullOrUndefined(inputElement.placeholder) && inputElement.placeholder !== '') {
|
|
@@ -11368,12 +11416,12 @@ function encodePlaceholder(placeholder) {
|
|
|
11368
11416
|
}
|
|
11369
11417
|
/* eslint-enable valid-jsdoc */
|
|
11370
11418
|
|
|
11371
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11372
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11373
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11374
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11375
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11376
|
-
};
|
|
11419
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11420
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11421
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11422
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11423
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11424
|
+
};
|
|
11377
11425
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
11378
11426
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
11379
11427
|
const FOCUS = 'e-input-focus';
|
|
@@ -11448,6 +11496,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11448
11496
|
this.resetMainList = null;
|
|
11449
11497
|
this.resetFilteredData = false;
|
|
11450
11498
|
this.preventSetCurrentData = false;
|
|
11499
|
+
this.isSelectAllLoop = false;
|
|
11451
11500
|
this.scrollFocusStatus = false;
|
|
11452
11501
|
this.keyDownStatus = false;
|
|
11453
11502
|
this.IsScrollerAtEnd = function () {
|
|
@@ -11772,7 +11821,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11772
11821
|
if (!isNullOrUndefined(this.value)) {
|
|
11773
11822
|
this.tempValues = this.allowObjectBinding ? this.value.slice() : this.value.slice();
|
|
11774
11823
|
}
|
|
11775
|
-
let customValue = this.allowObjectBinding ? this.getDataByValue(value) : this.getFormattedValue(value);
|
|
11824
|
+
let customValue = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(value)) : this.getFormattedValue(value);
|
|
11776
11825
|
if (this.allowCustomValue && (value !== 'false' && customValue === false || (!isNullOrUndefined(customValue) &&
|
|
11777
11826
|
customValue.toString() === 'NaN'))) {
|
|
11778
11827
|
customValue = value;
|
|
@@ -12146,6 +12195,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12146
12195
|
if (this.enableVirtualization && (this.viewPortInfo.endIndex != 0) && !this.virtualSelectAll) {
|
|
12147
12196
|
return this.virtualFilterQuery(filterQuery);
|
|
12148
12197
|
}
|
|
12198
|
+
if (this.virtualSelectAll) {
|
|
12199
|
+
return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ? this.query.take(this.maximumSelectionLength).requiresCount() : new Query().take(this.maximumSelectionLength).requiresCount();
|
|
12200
|
+
}
|
|
12149
12201
|
return query ? query : this.query ? this.query : new Query();
|
|
12150
12202
|
}
|
|
12151
12203
|
}
|
|
@@ -13311,7 +13363,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13311
13363
|
this.removeChipSelection();
|
|
13312
13364
|
this.addChipSelection(temp, e);
|
|
13313
13365
|
}
|
|
13314
|
-
const currentChip = this.allowObjectBinding ? this.getDataByValue(selectedElem.getAttribute('data-value')) : selectedElem.getAttribute('data-value');
|
|
13366
|
+
const currentChip = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(selectedElem.getAttribute('data-value'))) : selectedElem.getAttribute('data-value');
|
|
13315
13367
|
this.removeValue(currentChip, e);
|
|
13316
13368
|
this.makeTextBoxEmpty();
|
|
13317
13369
|
}
|
|
@@ -13497,7 +13549,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13497
13549
|
if (this.enabled && !this.readonly) {
|
|
13498
13550
|
const element = e.target.parentElement;
|
|
13499
13551
|
const customVal = element.getAttribute('data-value');
|
|
13500
|
-
let value = this.allowObjectBinding ? this.getDataByValue(customVal) : this.getFormattedValue(customVal);
|
|
13552
|
+
let value = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
|
|
13501
13553
|
if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
|
|
13502
13554
|
(!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
|
|
13503
13555
|
value = customVal;
|
|
@@ -13587,8 +13639,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13587
13639
|
dropDownBaseClasses.selected;
|
|
13588
13640
|
if (index !== -1) {
|
|
13589
13641
|
const currentValue = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
|
|
13590
|
-
const element = this.findListElement(this.list, 'li', 'data-value', currentValue);
|
|
13591
|
-
const val = this.getDataByValue(value);
|
|
13642
|
+
const element = this.virtualSelectAll ? null : this.findListElement(this.list, 'li', 'data-value', currentValue);
|
|
13643
|
+
const val = this.allowObjectBinding ? value : this.getDataByValue(value);
|
|
13592
13644
|
const eventArgs = {
|
|
13593
13645
|
e: eve,
|
|
13594
13646
|
item: element,
|
|
@@ -13771,9 +13823,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13771
13823
|
this.value = [];
|
|
13772
13824
|
}
|
|
13773
13825
|
let currentValue = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
13774
|
-
if ((this.allowObjectBinding && !this.isObjectInArray(value, this.value)) || (!this.allowObjectBinding && this.value.indexOf(currentValue) < 0)) {
|
|
13826
|
+
if ((this.allowObjectBinding && !this.isObjectInArray(this.getDataByValue(value), this.value)) || (!this.allowObjectBinding && this.value.indexOf(currentValue) < 0)) {
|
|
13775
13827
|
this.setProperties({ value: [].concat([], this.value, [currentValue]) }, true);
|
|
13776
|
-
if (this.enableVirtualization) {
|
|
13828
|
+
if (this.enableVirtualization && !this.isSelectAllLoop) {
|
|
13777
13829
|
let data = this.viewWrapper.innerHTML;
|
|
13778
13830
|
let temp;
|
|
13779
13831
|
data += (this.value.length === 1) ? '' : this.delimiterChar + ' ';
|
|
@@ -14609,7 +14661,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
14609
14661
|
if (!this.enableVirtualization) {
|
|
14610
14662
|
this.listData = this.mainData;
|
|
14611
14663
|
}
|
|
14612
|
-
if (!isNullOrUndefined(this.hiddenElement)) {
|
|
14664
|
+
if (!isNullOrUndefined(this.hiddenElement) && !this.enableVirtualization) {
|
|
14613
14665
|
this.hiddenElement.innerHTML = '';
|
|
14614
14666
|
}
|
|
14615
14667
|
if (!isNullOrUndefined(this.value)) {
|
|
@@ -14637,7 +14689,27 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
14637
14689
|
let textValues = this.text != null && this.text != "" ? this.text + ',' + temp : temp;
|
|
14638
14690
|
data += temp + delimiterChar + ' ';
|
|
14639
14691
|
text.push(textValues);
|
|
14640
|
-
hiddenElementContent
|
|
14692
|
+
hiddenElementContent = this.hiddenElement.innerHTML;
|
|
14693
|
+
if ((e && e.currentTarget && e.currentTarget.classList.contains('e-chips-close')) || (e && (e.key === 'Backspace'))) {
|
|
14694
|
+
var item = e.target.parentElement.getAttribute('data-value');
|
|
14695
|
+
if (e.key === 'Backspace') {
|
|
14696
|
+
const lastChild = this.hiddenElement.lastChild;
|
|
14697
|
+
if (lastChild) {
|
|
14698
|
+
this.hiddenElement.removeChild(lastChild);
|
|
14699
|
+
}
|
|
14700
|
+
}
|
|
14701
|
+
else {
|
|
14702
|
+
this.hiddenElement.childNodes.forEach((option) => {
|
|
14703
|
+
if (option.value === item) {
|
|
14704
|
+
option.parentNode.removeChild(option);
|
|
14705
|
+
}
|
|
14706
|
+
});
|
|
14707
|
+
}
|
|
14708
|
+
hiddenElementContent = this.hiddenElement.innerHTML;
|
|
14709
|
+
}
|
|
14710
|
+
else {
|
|
14711
|
+
hiddenElementContent += "<option selected value=\"" + value + "\">" + index + "</option>";
|
|
14712
|
+
}
|
|
14641
14713
|
break;
|
|
14642
14714
|
}
|
|
14643
14715
|
else {
|
|
@@ -14856,7 +14928,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
14856
14928
|
}
|
|
14857
14929
|
updateListSelection(li, e, length) {
|
|
14858
14930
|
const customVal = li.getAttribute('data-value');
|
|
14859
|
-
let value = this.allowObjectBinding ? this.getDataByValue(customVal) : this.getFormattedValue(customVal);
|
|
14931
|
+
let value = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
|
|
14860
14932
|
if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
|
|
14861
14933
|
(!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
|
|
14862
14934
|
value = customVal;
|
|
@@ -15560,14 +15632,14 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15560
15632
|
let li;
|
|
15561
15633
|
if (!isNullOrUndefined(this.list)) {
|
|
15562
15634
|
li = this.list.querySelectorAll(state ?
|
|
15563
|
-
'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
|
|
15564
|
-
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
|
|
15635
|
+
'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide):not(.e-virtual-list)' :
|
|
15636
|
+
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide):not(.e-virtual-list)');
|
|
15565
15637
|
}
|
|
15566
15638
|
if (this.value && this.value.length && event && event.target
|
|
15567
15639
|
&& closest(event.target, '.e-close-hooker') && this.allowFiltering) {
|
|
15568
15640
|
li = this.mainList.querySelectorAll(state ?
|
|
15569
|
-
'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
|
|
15570
|
-
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
|
|
15641
|
+
'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide):not(.e-virtual-list)' :
|
|
15642
|
+
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide):not(.e-virtual-list)');
|
|
15571
15643
|
}
|
|
15572
15644
|
if (this.enableGroupCheckBox && this.mode === 'CheckBox' && !isNullOrUndefined(this.fields.groupBy)) {
|
|
15573
15645
|
let target = (event ? (this.groupTemplate ? closest(event.target, '.e-list-group-item') : event.target) : null);
|
|
@@ -15629,8 +15701,109 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15629
15701
|
}
|
|
15630
15702
|
this.addValidInputClass();
|
|
15631
15703
|
}
|
|
15704
|
+
virtualSelectionAll(state, li, event) {
|
|
15705
|
+
let index = 0;
|
|
15706
|
+
let length = li.length;
|
|
15707
|
+
let count = this.maximumSelectionLength;
|
|
15708
|
+
if (state) {
|
|
15709
|
+
length = this.virtualSelectAllData && this.virtualSelectAllData.length != 0 ? this.virtualSelectAllData.length : length;
|
|
15710
|
+
this.listData = this.virtualSelectAllData;
|
|
15711
|
+
const ulElement = this.createListItems(this.virtualSelectAllData.slice(0, 30), this.fields);
|
|
15712
|
+
const firstItems = ulElement.querySelectorAll('li');
|
|
15713
|
+
const fragment = document.createDocumentFragment();
|
|
15714
|
+
firstItems.forEach((node) => {
|
|
15715
|
+
fragment.appendChild(node.cloneNode(true));
|
|
15716
|
+
});
|
|
15717
|
+
li.forEach((node) => {
|
|
15718
|
+
fragment.appendChild(node.cloneNode(true));
|
|
15719
|
+
});
|
|
15720
|
+
const concatenatedNodeList = fragment.childNodes;
|
|
15721
|
+
if (this.virtualSelectAllData instanceof Array) {
|
|
15722
|
+
while (index < length && index <= 50 && index < count) {
|
|
15723
|
+
this.isSelectAllTarget = (length === index + 1);
|
|
15724
|
+
if (concatenatedNodeList[index]) {
|
|
15725
|
+
let value = this.allowObjectBinding ? this.getDataByValue(concatenatedNodeList[index].getAttribute('data-value')) : this.getFormattedValue(concatenatedNodeList[index].getAttribute('data-value'));
|
|
15726
|
+
if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) >= 0) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) >= 0))) {
|
|
15727
|
+
index++;
|
|
15728
|
+
continue;
|
|
15729
|
+
}
|
|
15730
|
+
this.updateListSelection(concatenatedNodeList[index], event, length - index);
|
|
15731
|
+
}
|
|
15732
|
+
else {
|
|
15733
|
+
let value = getValue((this.fields.value) ? this.fields.value : '', this.virtualSelectAllData[index]);
|
|
15734
|
+
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
15735
|
+
if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) >= 0) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) >= 0))) {
|
|
15736
|
+
index++;
|
|
15737
|
+
continue;
|
|
15738
|
+
}
|
|
15739
|
+
if (this.value && value != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
|
|
15740
|
+
this.dispatchSelect(value, event, null, false, length);
|
|
15741
|
+
}
|
|
15742
|
+
}
|
|
15743
|
+
index++;
|
|
15744
|
+
}
|
|
15745
|
+
if (length > 50) {
|
|
15746
|
+
setTimeout(() => {
|
|
15747
|
+
if (this.virtualSelectAllData && this.virtualSelectAllData.length > 0) {
|
|
15748
|
+
this.virtualSelectAllData.map((obj) => {
|
|
15749
|
+
if (this.value && obj[this.fields.value] != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(obj[this.fields.value]) < 0) || (this.allowObjectBinding && !this.isObjectInArray(obj[this.fields.value], this.value)))) {
|
|
15750
|
+
this.dispatchSelect(obj[this.fields.value], event, null, false, length);
|
|
15751
|
+
}
|
|
15752
|
+
});
|
|
15753
|
+
}
|
|
15754
|
+
this.updatedataValueItems(event);
|
|
15755
|
+
this.isSelectAllLoop = false;
|
|
15756
|
+
if (!this.changeOnBlur) {
|
|
15757
|
+
this.updateValueState(event, this.value, this.tempValues);
|
|
15758
|
+
this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
|
|
15759
|
+
}
|
|
15760
|
+
this.updateHiddenElement();
|
|
15761
|
+
if (this.popupWrapper && li[index - 1] && li[index - 1].classList.contains('e-item-focus')) {
|
|
15762
|
+
const selectAllParent = document.getElementsByClassName('e-selectall-parent')[0];
|
|
15763
|
+
if (selectAllParent && selectAllParent.classList.contains('e-item-focus')) {
|
|
15764
|
+
li[index - 1].classList.remove('e-item-focus');
|
|
15765
|
+
}
|
|
15766
|
+
}
|
|
15767
|
+
}, 0);
|
|
15768
|
+
}
|
|
15769
|
+
}
|
|
15770
|
+
}
|
|
15771
|
+
else {
|
|
15772
|
+
if (this.virtualSelectAllData && this.virtualSelectAllData.length > 0) {
|
|
15773
|
+
this.virtualSelectAllData.map((obj) => {
|
|
15774
|
+
this.virtualSelectAll = true;
|
|
15775
|
+
this.removeValue(this.value[index], event, this.value.length - index);
|
|
15776
|
+
});
|
|
15777
|
+
}
|
|
15778
|
+
this.updatedataValueItems(event);
|
|
15779
|
+
if (!this.changeOnBlur) {
|
|
15780
|
+
this.updateValueState(event, this.value, this.tempValues);
|
|
15781
|
+
this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
|
|
15782
|
+
}
|
|
15783
|
+
this.updateHiddenElement();
|
|
15784
|
+
this.value = [];
|
|
15785
|
+
this.virtualSelectAll = false;
|
|
15786
|
+
if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
|
|
15787
|
+
this.notify("setCurrentViewDataAsync", {
|
|
15788
|
+
component: this.getModuleName(),
|
|
15789
|
+
module: "VirtualScroll",
|
|
15790
|
+
});
|
|
15791
|
+
}
|
|
15792
|
+
}
|
|
15793
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15794
|
+
const virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
15795
|
+
if (virtualTrackElement) {
|
|
15796
|
+
(virtualTrackElement).style = this.GetVirtualTrackHeight();
|
|
15797
|
+
}
|
|
15798
|
+
this.UpdateSkeleton();
|
|
15799
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15800
|
+
const virtualContentElement = this.list.getElementsByClassName('e-virtual-ddl-content')[0];
|
|
15801
|
+
if (virtualContentElement) {
|
|
15802
|
+
(virtualContentElement).style = this.getTransformValues();
|
|
15803
|
+
}
|
|
15804
|
+
}
|
|
15632
15805
|
updateValue(event, li, state) {
|
|
15633
|
-
|
|
15806
|
+
let length = li.length;
|
|
15634
15807
|
const beforeSelectArgs = {
|
|
15635
15808
|
event: event,
|
|
15636
15809
|
items: state ? li : [],
|
|
@@ -15651,95 +15824,14 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15651
15824
|
}
|
|
15652
15825
|
if (!beforeSelectArgs.preventSelectEvent) {
|
|
15653
15826
|
if (this.enableVirtualization) {
|
|
15654
|
-
|
|
15655
|
-
|
|
15827
|
+
this.virtualSelectAll = true;
|
|
15828
|
+
this.virtualSelectAllState = state;
|
|
15829
|
+
this.CurrentEvent = event;
|
|
15830
|
+
if (!this.virtualSelectAllData) {
|
|
15656
15831
|
this.resetList(this.dataSource, this.fields, new Query());
|
|
15657
|
-
if (this.virtualSelectAllData instanceof Array) {
|
|
15658
|
-
for (var i = 0; i < this.virtualSelectAllData.length; i++) {
|
|
15659
|
-
if (li[this.skeletonCount + i]) {
|
|
15660
|
-
let value = this.allowObjectBinding ? this.getDataByValue(li[this.skeletonCount + i].getAttribute('data-value')) : this.getFormattedValue(li[this.skeletonCount + i].getAttribute('data-value'));
|
|
15661
|
-
if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) === 1) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) === 1))) {
|
|
15662
|
-
continue;
|
|
15663
|
-
}
|
|
15664
|
-
this.updateListSelection(li[this.skeletonCount + i], event, length - i);
|
|
15665
|
-
}
|
|
15666
|
-
else {
|
|
15667
|
-
if (this.fields) {
|
|
15668
|
-
let value = getValue(this.fields.value, this.virtualSelectAllData[i]);
|
|
15669
|
-
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
15670
|
-
if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) === 1) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) === 1))) {
|
|
15671
|
-
continue;
|
|
15672
|
-
}
|
|
15673
|
-
if (this.value && value != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
|
|
15674
|
-
this.dispatchSelect(value, event, null, false, length);
|
|
15675
|
-
}
|
|
15676
|
-
}
|
|
15677
|
-
}
|
|
15678
|
-
}
|
|
15679
|
-
if (this.virtualSelectAllData && this.value.length != this.virtualSelectAllData.length && this.virtualItemStartIndex != 0) {
|
|
15680
|
-
if (this.virtualItemStartIndex > this.itemCount) {
|
|
15681
|
-
for (var i = 0; i < this.itemCount; i++) {
|
|
15682
|
-
if (this.fields) {
|
|
15683
|
-
let value = getValue(this.fields.value, this.virtualSelectAllData[i]);
|
|
15684
|
-
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
15685
|
-
if (this.value && value != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
|
|
15686
|
-
this.setProperties({ value: [].concat([], this.value, this.allowObjectBinding ? [this.virtualSelectAllData[i]] : [value]) }, true);
|
|
15687
|
-
}
|
|
15688
|
-
}
|
|
15689
|
-
}
|
|
15690
|
-
}
|
|
15691
|
-
}
|
|
15692
|
-
else {
|
|
15693
|
-
for (var i = 0; i < this.virtualItemStartIndex; i++) {
|
|
15694
|
-
if (this.fields) {
|
|
15695
|
-
var value = getValue(this.fields.value, this.virtualSelectAllData[i]);
|
|
15696
|
-
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
15697
|
-
if (Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
|
|
15698
|
-
this.setProperties({ value: [].concat([], this.value, this.allowObjectBinding ? [this.virtualSelectAllData[i]] : [value]) }, true);
|
|
15699
|
-
}
|
|
15700
|
-
}
|
|
15701
|
-
}
|
|
15702
|
-
}
|
|
15703
|
-
}
|
|
15704
15832
|
}
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
this.removeValue(this.value[index], event, this.value.length - index);
|
|
15708
|
-
index++;
|
|
15709
|
-
}
|
|
15710
|
-
if (length > 50) {
|
|
15711
|
-
setTimeout(() => {
|
|
15712
|
-
while (index < this.value.length && index < count && this.value.length > 0) {
|
|
15713
|
-
this.removeValue(value[index], event, this.value.length - index);
|
|
15714
|
-
index++;
|
|
15715
|
-
}
|
|
15716
|
-
this.updatedataValueItems(event);
|
|
15717
|
-
if (!this.changeOnBlur) {
|
|
15718
|
-
this.updateValueState(event, this.value, this.tempValues);
|
|
15719
|
-
this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
|
|
15720
|
-
}
|
|
15721
|
-
this.updateHiddenElement();
|
|
15722
|
-
}, 0);
|
|
15723
|
-
}
|
|
15724
|
-
this.value = [];
|
|
15725
|
-
this.virtualSelectAll = false;
|
|
15726
|
-
if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
|
|
15727
|
-
this.notify("setCurrentViewDataAsync", {
|
|
15728
|
-
component: this.getModuleName(),
|
|
15729
|
-
module: "VirtualScroll",
|
|
15730
|
-
});
|
|
15731
|
-
}
|
|
15732
|
-
}
|
|
15733
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15734
|
-
const virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
15735
|
-
if (virtualTrackElement) {
|
|
15736
|
-
(virtualTrackElement).style = this.GetVirtualTrackHeight();
|
|
15737
|
-
}
|
|
15738
|
-
this.UpdateSkeleton();
|
|
15739
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15740
|
-
const virtualContentElement = this.list.getElementsByClassName('e-virtual-ddl-content')[0];
|
|
15741
|
-
if (virtualContentElement) {
|
|
15742
|
-
(virtualContentElement).style = this.getTransformValues();
|
|
15833
|
+
if (this.virtualSelectAllData) {
|
|
15834
|
+
this.virtualSelectionAll(state, li, event);
|
|
15743
15835
|
}
|
|
15744
15836
|
}
|
|
15745
15837
|
else {
|
|
@@ -15828,7 +15920,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15828
15920
|
this.updateValueState(event, this.value, this.tempValues);
|
|
15829
15921
|
this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
|
|
15830
15922
|
}
|
|
15831
|
-
this.
|
|
15923
|
+
if ((this.enableVirtualization && this.value && this.value.length > 0) || !this.enableVirtualization) {
|
|
15924
|
+
this.updateHiddenElement();
|
|
15925
|
+
}
|
|
15832
15926
|
}
|
|
15833
15927
|
}
|
|
15834
15928
|
updateHiddenElement() {
|
|
@@ -15872,7 +15966,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15872
15966
|
}
|
|
15873
15967
|
if (this.mode === 'CheckBox') {
|
|
15874
15968
|
this.updateDelimView();
|
|
15875
|
-
if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
|
|
15969
|
+
if ((!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) || (this.isSelectAll && this.isSelectAllTarget)) {
|
|
15876
15970
|
this.updateDelimeter(this.delimiterChar, event);
|
|
15877
15971
|
}
|
|
15878
15972
|
this.refreshInputHight();
|
|
@@ -15932,7 +16026,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15932
16026
|
}
|
|
15933
16027
|
this.selectAllItem(state, event);
|
|
15934
16028
|
}
|
|
15935
|
-
this.
|
|
16029
|
+
if (!(this.dataSource instanceof DataManager) || (this.dataSource instanceof DataManager && this.virtualSelectAllData)) {
|
|
16030
|
+
this.virtualSelectAll = false;
|
|
16031
|
+
}
|
|
15936
16032
|
}
|
|
15937
16033
|
/**
|
|
15938
16034
|
* Get the properties to be maintained in the persisted state.
|
|
@@ -17511,12 +17607,12 @@ class CheckBoxSelection {
|
|
|
17511
17607
|
* export all modules from current location
|
|
17512
17608
|
*/
|
|
17513
17609
|
|
|
17514
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17515
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17516
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17517
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17518
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17519
|
-
};
|
|
17610
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17611
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17612
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17613
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17614
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17615
|
+
};
|
|
17520
17616
|
var ListBox_1;
|
|
17521
17617
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
17522
17618
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
@@ -19980,12 +20076,12 @@ const listBoxClasses = {
|
|
|
19980
20076
|
* export all modules from current location
|
|
19981
20077
|
*/
|
|
19982
20078
|
|
|
19983
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19984
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19985
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19986
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19987
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19988
|
-
};
|
|
20079
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20080
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20081
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20082
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20083
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20084
|
+
};
|
|
19989
20085
|
/**
|
|
19990
20086
|
* The Mention component is used to list someone or something based on user input in textarea, input,
|
|
19991
20087
|
* or any other editable element from which the user can select.
|