@syncfusion/ej2-dropdowns 26.2.11 → 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 +1548 -851
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +1441 -721
- 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 +74 -39
- 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 +12 -4
- package/src/drop-down-list/drop-down-list.js +302 -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 +207 -69
- package/src/list-box/list-box.js +72 -36
- package/src/mention/mention.d.ts +8 -0
- package/src/mention/mention.js +88 -25
- 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
|
@@ -137,6 +137,9 @@ var TreeSettings = /** @class */ (function (_super) {
|
|
|
137
137
|
__decorate([
|
|
138
138
|
Property(false)
|
|
139
139
|
], TreeSettings.prototype, "autoCheck", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
Property(true)
|
|
142
|
+
], TreeSettings.prototype, "checkDisabledChildren", void 0);
|
|
140
143
|
__decorate([
|
|
141
144
|
Property('Auto')
|
|
142
145
|
], TreeSettings.prototype, "expandOn", void 0);
|
|
@@ -344,9 +347,11 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
344
347
|
firstUl.removeAttribute('aria-multiselectable');
|
|
345
348
|
}
|
|
346
349
|
this.oldValue = this.value;
|
|
347
|
-
this.
|
|
350
|
+
if (!this.isRemoteData) {
|
|
351
|
+
this.isInitialized = true;
|
|
352
|
+
}
|
|
348
353
|
this.hasTemplate = this.itemTemplate || this.headerTemplate || this.footerTemplate || this.actionFailureTemplate
|
|
349
|
-
|| this.noRecordsTemplate || this.customTemplate;
|
|
354
|
+
|| this.noRecordsTemplate || this.customTemplate || this.valueTemplate;
|
|
350
355
|
this.renderComplete();
|
|
351
356
|
};
|
|
352
357
|
DropDownTree.prototype.hideCheckAll = function (flag) {
|
|
@@ -390,6 +395,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
390
395
|
cancel: false,
|
|
391
396
|
event: e
|
|
392
397
|
};
|
|
398
|
+
var focusedElement;
|
|
393
399
|
this.trigger('keyPress', eventArgs, function (observedArgs) {
|
|
394
400
|
if (!observedArgs.cancel) {
|
|
395
401
|
switch (e.action) {
|
|
@@ -404,7 +410,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
404
410
|
case 'moveDown':
|
|
405
411
|
e.preventDefault();
|
|
406
412
|
_this.filterObj.element.blur();
|
|
407
|
-
|
|
413
|
+
focusedElement = _this.treeObj.element.querySelector('li');
|
|
408
414
|
if (focusedElement) {
|
|
409
415
|
focusedElement.focus();
|
|
410
416
|
}
|
|
@@ -753,6 +759,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
753
759
|
removeClass([this.inputEle], CHIP_INPUT);
|
|
754
760
|
}
|
|
755
761
|
}
|
|
762
|
+
if (isValue && this.mode !== 'Custom') {
|
|
763
|
+
this.showOrHideValueTemplate(true);
|
|
764
|
+
}
|
|
756
765
|
if (!this.wrapText && isValue) {
|
|
757
766
|
this.updateView();
|
|
758
767
|
}
|
|
@@ -825,6 +834,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
825
834
|
if (this.chipWrapper && (this.value && this.value.length !== 0)) {
|
|
826
835
|
removeClass([this.chipWrapper], HIDEICON);
|
|
827
836
|
addClass([this.inputEle], CHIP_INPUT);
|
|
837
|
+
this.showOrHideValueTemplate(false, true);
|
|
828
838
|
}
|
|
829
839
|
addClass([this.inputWrapper], SHOW_CHIP);
|
|
830
840
|
if (this.popupObj) {
|
|
@@ -838,6 +848,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
838
848
|
if (this.mode === 'Delimiter') {
|
|
839
849
|
removeClass([this.inputWrapper], SHOW_CHIP);
|
|
840
850
|
removeClass([this.inputEle], CHIP_INPUT);
|
|
851
|
+
this.showOrHideValueTemplate(true);
|
|
841
852
|
}
|
|
842
853
|
else {
|
|
843
854
|
addClass([this.inputWrapper], SHOW_CHIP);
|
|
@@ -966,7 +977,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
966
977
|
_this.clickHandler(e);
|
|
967
978
|
break;
|
|
968
979
|
case 'moveDown':
|
|
969
|
-
|
|
980
|
+
e.preventDefault();
|
|
981
|
+
focusedElement = _this.treeObj.element.querySelector('li[tabindex="0"]') || _this.treeObj.element.querySelector('li');
|
|
970
982
|
focusedElement.focus();
|
|
971
983
|
addClass([focusedElement], ['e-node-focus']);
|
|
972
984
|
break;
|
|
@@ -1019,6 +1031,12 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1019
1031
|
}
|
|
1020
1032
|
if (!isNOU(this.value)) {
|
|
1021
1033
|
if (this.mode !== 'Box') {
|
|
1034
|
+
if (this.valueTemplate) {
|
|
1035
|
+
remaining = this.updateChipAndValueTemplate(false, downIconWidth, remainSize);
|
|
1036
|
+
this.checkRemainingTemplate(remaining, remainElement, remainContent, totalContent);
|
|
1037
|
+
this.updateDelimMode();
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1022
1040
|
for (var index = 0; !isNOU(this.value[index]); index++) {
|
|
1023
1041
|
data += (index === 0) ? '' : this.delimiterChar + ' ';
|
|
1024
1042
|
temp = this.getOverflowVal(index);
|
|
@@ -1061,48 +1079,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1061
1079
|
}
|
|
1062
1080
|
}
|
|
1063
1081
|
else {
|
|
1064
|
-
|
|
1065
|
-
var ele = this.chipWrapper.cloneNode(true);
|
|
1066
|
-
var chips = selectAll('.' + CHIP, ele);
|
|
1067
|
-
for (var i = 0; i < chips.length; i++) {
|
|
1068
|
-
temp = this.overFlowWrapper.innerHTML;
|
|
1069
|
-
this.overFlowWrapper.appendChild(chips[i]);
|
|
1070
|
-
data = this.overFlowWrapper.innerHTML;
|
|
1071
|
-
wrapperleng = this.overFlowWrapper.offsetWidth;
|
|
1072
|
-
overAllContainer = this.inputWrapper.offsetWidth;
|
|
1073
|
-
if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
|
|
1074
|
-
if (tempData !== undefined && tempData !== '') {
|
|
1075
|
-
temp = tempData;
|
|
1076
|
-
i = tempIndex + 1;
|
|
1077
|
-
}
|
|
1078
|
-
this.overFlowWrapper.innerHTML = temp;
|
|
1079
|
-
remaining = this.value.length - i;
|
|
1080
|
-
wrapperleng = this.overFlowWrapper.offsetWidth;
|
|
1081
|
-
while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) >= overAllContainer)
|
|
1082
|
-
&& wrapperleng !== 0 && this.overFlowWrapper.innerHTML !== '') {
|
|
1083
|
-
this.overFlowWrapper.removeChild(this.overFlowWrapper.lastChild);
|
|
1084
|
-
remaining++;
|
|
1085
|
-
wrapperleng = this.overFlowWrapper.offsetWidth;
|
|
1086
|
-
}
|
|
1087
|
-
break;
|
|
1088
|
-
}
|
|
1089
|
-
else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) <= overAllContainer) {
|
|
1090
|
-
tempData = data;
|
|
1091
|
-
tempIndex = i;
|
|
1092
|
-
}
|
|
1093
|
-
else if (i === 0) {
|
|
1094
|
-
tempData = '';
|
|
1095
|
-
tempIndex = -1;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1082
|
+
remaining = this.updateChipAndValueTemplate(true, downIconWidth, remainSize);
|
|
1098
1083
|
}
|
|
1099
1084
|
}
|
|
1100
|
-
|
|
1101
|
-
this.overFlowWrapper.appendChild(this.updateRemainTemplate(remainElement, remaining, remainContent, totalContent));
|
|
1102
|
-
}
|
|
1103
|
-
if (this.mode === 'Box' && !this.overFlowWrapper.classList.contains(TOTAL_COUNT_WRAPPER)) {
|
|
1104
|
-
addClass([remainElement], REMAIN_COUNT);
|
|
1105
|
-
}
|
|
1085
|
+
this.checkRemainingTemplate(remaining, remainElement, remainContent, totalContent);
|
|
1106
1086
|
}
|
|
1107
1087
|
else {
|
|
1108
1088
|
this.overFlowWrapper.innerHTML = '';
|
|
@@ -1110,13 +1090,67 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1110
1090
|
}
|
|
1111
1091
|
this.updateDelimMode();
|
|
1112
1092
|
};
|
|
1093
|
+
DropDownTree.prototype.checkRemainingTemplate = function (remaining, remainElement, remainContent, totalContent) {
|
|
1094
|
+
if (remaining > 0) {
|
|
1095
|
+
this.overFlowWrapper.appendChild(this.updateRemainTemplate(remainElement, remaining, remainContent, totalContent));
|
|
1096
|
+
}
|
|
1097
|
+
if (this.mode === 'Box' && !this.overFlowWrapper.classList.contains(TOTAL_COUNT_WRAPPER)) {
|
|
1098
|
+
addClass([remainElement], REMAIN_COUNT);
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
DropDownTree.prototype.updateChipAndValueTemplate = function (isChip, downIconWidth, remainSize) {
|
|
1102
|
+
if (downIconWidth === void 0) { downIconWidth = 0; }
|
|
1103
|
+
var currentHtmlContent = '';
|
|
1104
|
+
var overAllContainer;
|
|
1105
|
+
var previousHtmlContent;
|
|
1106
|
+
var previousData;
|
|
1107
|
+
var index = 1;
|
|
1108
|
+
var wrapperLength;
|
|
1109
|
+
var remainingItemsCount;
|
|
1110
|
+
addClass([isChip ? this.chipWrapper : this.valueTemplateContainer], HIDEICON);
|
|
1111
|
+
var clonedElement = (isChip ? this.chipWrapper :
|
|
1112
|
+
this.valueTemplateContainer).cloneNode(true);
|
|
1113
|
+
var valueElements = isChip ? selectAll('.' + CHIP, clonedElement) : Array.prototype.slice.call(clonedElement.children);
|
|
1114
|
+
for (var i = 0; i < valueElements.length; i++) {
|
|
1115
|
+
previousHtmlContent = this.overFlowWrapper.innerHTML;
|
|
1116
|
+
this.overFlowWrapper.appendChild(valueElements[i]);
|
|
1117
|
+
currentHtmlContent = this.overFlowWrapper.innerHTML;
|
|
1118
|
+
wrapperLength = this.overFlowWrapper.offsetWidth;
|
|
1119
|
+
overAllContainer = this.inputWrapper.offsetWidth;
|
|
1120
|
+
if ((wrapperLength + downIconWidth + this.clearIconWidth) > overAllContainer) {
|
|
1121
|
+
if (previousData !== undefined && previousData !== '') {
|
|
1122
|
+
previousHtmlContent = previousData;
|
|
1123
|
+
i = index + 1;
|
|
1124
|
+
}
|
|
1125
|
+
this.overFlowWrapper.innerHTML = previousHtmlContent;
|
|
1126
|
+
remainingItemsCount = this.value.length - i;
|
|
1127
|
+
wrapperLength = this.overFlowWrapper.offsetWidth;
|
|
1128
|
+
while (((wrapperLength + remainSize + downIconWidth + this.clearIconWidth) >= overAllContainer)
|
|
1129
|
+
&& wrapperLength !== 0 && this.overFlowWrapper.innerHTML !== '') {
|
|
1130
|
+
this.overFlowWrapper.removeChild(this.overFlowWrapper.lastChild);
|
|
1131
|
+
remainingItemsCount++;
|
|
1132
|
+
wrapperLength = this.overFlowWrapper.offsetWidth;
|
|
1133
|
+
}
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
else if ((wrapperLength + remainSize + downIconWidth + this.clearIconWidth) <= overAllContainer) {
|
|
1137
|
+
previousData = currentHtmlContent;
|
|
1138
|
+
index = i;
|
|
1139
|
+
}
|
|
1140
|
+
else if (i === 0) {
|
|
1141
|
+
previousData = '';
|
|
1142
|
+
index = -1;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
return remainingItemsCount;
|
|
1146
|
+
};
|
|
1113
1147
|
DropDownTree.prototype.updateRemainTemplate = function (remainElement, remaining, remainContent, totalContent) {
|
|
1114
1148
|
if (this.overFlowWrapper.firstChild && this.overFlowWrapper.firstChild.nodeType === 3 &&
|
|
1115
1149
|
this.overFlowWrapper.firstChild.nodeValue === '') {
|
|
1116
1150
|
this.overFlowWrapper.removeChild(this.overFlowWrapper.firstChild);
|
|
1117
1151
|
}
|
|
1118
1152
|
remainElement.innerHTML = '';
|
|
1119
|
-
remainElement.innerText = (this.overFlowWrapper.firstChild && (this.overFlowWrapper.firstChild.nodeType === 3 || this.mode === 'Box')) ?
|
|
1153
|
+
remainElement.innerText = (this.overFlowWrapper.firstChild && (this.overFlowWrapper.firstChild.nodeType === 3 || this.mode === 'Box' || this.valueTemplateContainer)) ?
|
|
1120
1154
|
remainContent.replace('${count}', remaining.toString()) : totalContent.replace('${count}', remaining.toString());
|
|
1121
1155
|
if (this.overFlowWrapper.firstChild && (this.overFlowWrapper.firstChild.nodeType === 3 || this.mode === 'Box')) {
|
|
1122
1156
|
removeClass([this.overFlowWrapper], TOTAL_COUNT_WRAPPER);
|
|
@@ -1463,10 +1497,37 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1463
1497
|
this.currentValue = this.value;
|
|
1464
1498
|
}
|
|
1465
1499
|
};
|
|
1500
|
+
DropDownTree.prototype.setValueTemplate = function () {
|
|
1501
|
+
var _this = this;
|
|
1502
|
+
if (this.valueTemplate) {
|
|
1503
|
+
var compiledString = this.initializeValueTemplate();
|
|
1504
|
+
this.getValueTemplateElement(this.value[0], compiledString);
|
|
1505
|
+
if (this.hasTemplate && this.portals) {
|
|
1506
|
+
if (this.treeObj.portals) {
|
|
1507
|
+
this.portals = this.portals.concat(this.treeObj.portals.filter(function (item) {
|
|
1508
|
+
return !_this.portals.includes(item);
|
|
1509
|
+
}));
|
|
1510
|
+
}
|
|
1511
|
+
if (this.isReact) {
|
|
1512
|
+
this.renderReactTemplates(this.reactCallBack);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
this.showOrHideValueTemplate(true);
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
DropDownTree.prototype.getValueTemplateElement = function (value, compiledString) {
|
|
1519
|
+
var selectedData = this.getNodeData(value, this.isFilteredData ? this.treeData : this.treeItems);
|
|
1520
|
+
var templateElements = compiledString(selectedData, this, 'valueTemplate', this.element.id + "valueTemplate", this.isStringTemplate, undefined, this.valueTemplateContainer);
|
|
1521
|
+
if (templateElements) {
|
|
1522
|
+
templateElements = Array.prototype.slice.call(templateElements);
|
|
1523
|
+
append(templateElements, this.valueTemplateContainer);
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1466
1526
|
DropDownTree.prototype.setValidValue = function () {
|
|
1467
1527
|
var _this = this;
|
|
1468
1528
|
if (!this.showCheckBox && !this.allowMultiSelection) {
|
|
1469
1529
|
Input.setValue(this.text, this.inputEle, this.floatLabelType);
|
|
1530
|
+
this.setValueTemplate();
|
|
1470
1531
|
var id = this.value[0].toString();
|
|
1471
1532
|
if (this.treeObj.selectedNodes[0] !== id) {
|
|
1472
1533
|
setValue('selectedNodes', [id], this.treeObj);
|
|
@@ -1493,7 +1554,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1493
1554
|
this.currentText = this.text;
|
|
1494
1555
|
this.currentValue = this.value;
|
|
1495
1556
|
if (!isNOU(this.value) && this.value.length > 0 && !isNOU(this.currentText)) {
|
|
1496
|
-
this.inputWrapper.setAttribute('aria-label', this.currentText.
|
|
1557
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.replace(/,/g, ', '));
|
|
1497
1558
|
}
|
|
1498
1559
|
if (this.isInitialized) {
|
|
1499
1560
|
this.triggerChangeEvent();
|
|
@@ -1562,7 +1623,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1562
1623
|
expandOn: this.treeSettings.expandOn,
|
|
1563
1624
|
loadOnDemand: this.treeSettings.loadOnDemand,
|
|
1564
1625
|
nodeSelecting: this.onBeforeSelect.bind(this),
|
|
1565
|
-
nodeTemplate: this.itemTemplate
|
|
1626
|
+
nodeTemplate: this.itemTemplate,
|
|
1627
|
+
checkDisabledChildren: this.treeSettings.checkDisabledChildren
|
|
1566
1628
|
});
|
|
1567
1629
|
this.treeObj.root = this.root ? this.root : this;
|
|
1568
1630
|
this.treeObj.appendTo(this.tree);
|
|
@@ -1655,10 +1717,12 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1655
1717
|
removeClass([oldFocussedNode], 'e-node-focus');
|
|
1656
1718
|
}
|
|
1657
1719
|
}
|
|
1658
|
-
if (!
|
|
1659
|
-
|
|
1720
|
+
if (!isNOU(focusedElement)) {
|
|
1721
|
+
if (!_this.allowFiltering) {
|
|
1722
|
+
focusedElement.focus();
|
|
1723
|
+
}
|
|
1724
|
+
addClass([focusedElement], ['e-node-focus']);
|
|
1660
1725
|
}
|
|
1661
|
-
addClass([focusedElement], ['e-node-focus']);
|
|
1662
1726
|
}
|
|
1663
1727
|
if (_this.treeObj.checkedNodes.length > 0) {
|
|
1664
1728
|
var nodes = _this.treeObj.element.querySelectorAll('li');
|
|
@@ -1679,8 +1743,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1679
1743
|
});
|
|
1680
1744
|
};
|
|
1681
1745
|
DropDownTree.prototype.reactCallBack = function () {
|
|
1682
|
-
this.
|
|
1683
|
-
|
|
1746
|
+
if (!isNOU(this.popupObj)) {
|
|
1747
|
+
this.updatePopupHeight();
|
|
1748
|
+
this.popupObj.refreshPosition();
|
|
1749
|
+
}
|
|
1684
1750
|
};
|
|
1685
1751
|
DropDownTree.prototype.updatePopupHeight = function () {
|
|
1686
1752
|
if (this.isFirstRender) {
|
|
@@ -1819,6 +1885,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1819
1885
|
this.updateView();
|
|
1820
1886
|
}
|
|
1821
1887
|
this.treeObj.element.focus();
|
|
1888
|
+
this.isInitialized = true;
|
|
1822
1889
|
}
|
|
1823
1890
|
var eventArgs = { data: args.data };
|
|
1824
1891
|
this.trigger('dataBound', eventArgs);
|
|
@@ -2038,6 +2105,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2038
2105
|
this.setProperties({ text: selectedText }, true);
|
|
2039
2106
|
this.currentText = this.text;
|
|
2040
2107
|
this.currentValue = this.value;
|
|
2108
|
+
this.setValueTemplate();
|
|
2041
2109
|
if (!isNOU(this.value) && this.value.length > 0) {
|
|
2042
2110
|
this.inputWrapper.setAttribute('aria-label', args.nodeData.text.toString());
|
|
2043
2111
|
}
|
|
@@ -2181,11 +2249,13 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2181
2249
|
var isValid = this.getValidMode();
|
|
2182
2250
|
if (this.chipWrapper.classList.contains(HIDEICON) && isValid) {
|
|
2183
2251
|
removeClass([this.chipWrapper], HIDEICON);
|
|
2252
|
+
this.showOrHideValueTemplate(false, true);
|
|
2184
2253
|
addClass([this.inputWrapper], SHOW_CHIP);
|
|
2185
2254
|
}
|
|
2186
2255
|
else if (!isValid) {
|
|
2187
2256
|
addClass([this.chipWrapper], HIDEICON);
|
|
2188
2257
|
removeClass([this.inputWrapper], SHOW_CHIP);
|
|
2258
|
+
this.showOrHideValueTemplate(true);
|
|
2189
2259
|
}
|
|
2190
2260
|
var isValue = this.value !== null ? (this.value.length !== 0 ? true : false) : false;
|
|
2191
2261
|
if (isValid && isValue) {
|
|
@@ -2200,6 +2270,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2200
2270
|
if (this.chipWrapper) {
|
|
2201
2271
|
addClass([this.chipWrapper], HIDEICON);
|
|
2202
2272
|
removeClass([this.inputWrapper], SHOW_CHIP);
|
|
2273
|
+
this.showOrHideValueTemplate(true);
|
|
2203
2274
|
}
|
|
2204
2275
|
}
|
|
2205
2276
|
};
|
|
@@ -2208,6 +2279,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2208
2279
|
removeClass([this.inputEle], CHIP_INPUT);
|
|
2209
2280
|
if (this.chipWrapper) {
|
|
2210
2281
|
addClass([this.chipWrapper], HIDEICON);
|
|
2282
|
+
this.showOrHideValueTemplate(true);
|
|
2211
2283
|
}
|
|
2212
2284
|
}
|
|
2213
2285
|
};
|
|
@@ -2220,7 +2292,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2220
2292
|
if (!this.isFilteredData) {
|
|
2221
2293
|
this.setProperties({ value: this.isFromFilterChange && newValues && newValues.length === 0 ? this.value : newValues }, true);
|
|
2222
2294
|
this.isFromFilterChange = false;
|
|
2223
|
-
if (newValues && newValues.length !== 0 && !this.showCheckBox &&
|
|
2295
|
+
if (newValues && newValues.length !== 0 && !this.showCheckBox &&
|
|
2296
|
+
!this.ddtCompareValues(this.treeObj.selectedNodes, this.value.slice())) {
|
|
2224
2297
|
this.treeObj.selectedNodes = this.value.slice();
|
|
2225
2298
|
this.treeObj.dataBind();
|
|
2226
2299
|
}
|
|
@@ -2259,12 +2332,14 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2259
2332
|
addClass([this.inputEle], CHIP_INPUT);
|
|
2260
2333
|
if (this.chipWrapper) {
|
|
2261
2334
|
removeClass([this.chipWrapper], HIDEICON);
|
|
2335
|
+
this.showOrHideValueTemplate(false, true);
|
|
2262
2336
|
}
|
|
2263
2337
|
}
|
|
2264
2338
|
var isValue = this.value ? (this.value.length ? true : false) : false;
|
|
2265
2339
|
if (this.chipWrapper && (this.mode === 'Box' && !isValue)) {
|
|
2266
2340
|
addClass([this.chipWrapper], HIDEICON);
|
|
2267
2341
|
removeClass([this.inputEle], CHIP_INPUT);
|
|
2342
|
+
this.showOrHideValueTemplate(true);
|
|
2268
2343
|
}
|
|
2269
2344
|
this.updateSelectedValues();
|
|
2270
2345
|
};
|
|
@@ -2280,7 +2355,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2280
2355
|
}
|
|
2281
2356
|
if (isNOU(data)) {
|
|
2282
2357
|
if (this.treeSettings.loadOnDemand) {
|
|
2283
|
-
data = this.getNodeData(value);
|
|
2358
|
+
data = this.getNodeData(value, this.treeItems);
|
|
2284
2359
|
}
|
|
2285
2360
|
else {
|
|
2286
2361
|
data = this.treeObj.getNode(value);
|
|
@@ -2291,21 +2366,21 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2291
2366
|
}
|
|
2292
2367
|
return data;
|
|
2293
2368
|
};
|
|
2294
|
-
DropDownTree.prototype.getNodeData = function (id) {
|
|
2369
|
+
DropDownTree.prototype.getNodeData = function (id, dataSource) {
|
|
2295
2370
|
var childItems;
|
|
2296
2371
|
if (isNOU(id)) {
|
|
2297
2372
|
return childItems;
|
|
2298
2373
|
}
|
|
2299
2374
|
else if (this.treeDataType === 1) {
|
|
2300
|
-
for (var i = 0, objlen =
|
|
2301
|
-
var dataId = getValue(this.fields.value,
|
|
2302
|
-
if (!isNOU(
|
|
2303
|
-
return
|
|
2375
|
+
for (var i = 0, objlen = dataSource.length; i < objlen; i++) {
|
|
2376
|
+
var dataId = getValue(this.fields.value, dataSource[i]);
|
|
2377
|
+
if (!isNOU(dataSource[i]) && !isNOU(dataId) && dataId.toString() === id) {
|
|
2378
|
+
return dataSource[i];
|
|
2304
2379
|
}
|
|
2305
2380
|
}
|
|
2306
2381
|
}
|
|
2307
2382
|
else {
|
|
2308
|
-
return this.getChildNodeData(
|
|
2383
|
+
return this.getChildNodeData(dataSource, this.fields, id);
|
|
2309
2384
|
}
|
|
2310
2385
|
return childItems;
|
|
2311
2386
|
};
|
|
@@ -2350,7 +2425,41 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2350
2425
|
}
|
|
2351
2426
|
}
|
|
2352
2427
|
};
|
|
2428
|
+
DropDownTree.prototype.initializeValueTemplate = function () {
|
|
2429
|
+
if (!this.valueTemplate) {
|
|
2430
|
+
return null;
|
|
2431
|
+
}
|
|
2432
|
+
if (this.valueTemplateContainer) {
|
|
2433
|
+
while (this.valueTemplateContainer.firstChild) {
|
|
2434
|
+
this.valueTemplateContainer.removeChild(this.valueTemplateContainer.firstChild);
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
else {
|
|
2438
|
+
this.valueTemplateContainer = this.createElement('span', { className: OVERFLOW_VIEW + ' ' + SHOW_TEXT + ' ' + 'e-input-value' + ' ' + HIDEICON });
|
|
2439
|
+
}
|
|
2440
|
+
this.inputWrapper.insertBefore(this.valueTemplateContainer, this.inputEle);
|
|
2441
|
+
return this.templateComplier(this.valueTemplate);
|
|
2442
|
+
};
|
|
2443
|
+
DropDownTree.prototype.showOrHideValueTemplate = function (show, showChip) {
|
|
2444
|
+
if (showChip === void 0) { showChip = false; }
|
|
2445
|
+
if (!this.valueTemplateContainer || this.mode === 'Box') {
|
|
2446
|
+
return;
|
|
2447
|
+
}
|
|
2448
|
+
if (show) {
|
|
2449
|
+
removeClass([this.valueTemplateContainer], HIDEICON);
|
|
2450
|
+
addClass([this.inputWrapper], SHOW_CHIP);
|
|
2451
|
+
addClass([this.inputEle], CHIP_INPUT);
|
|
2452
|
+
}
|
|
2453
|
+
else {
|
|
2454
|
+
addClass([this.valueTemplateContainer], HIDEICON);
|
|
2455
|
+
if (!showChip) {
|
|
2456
|
+
removeClass([this.inputWrapper], SHOW_CHIP);
|
|
2457
|
+
removeClass([this.inputEle], CHIP_INPUT);
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
};
|
|
2353
2461
|
DropDownTree.prototype.updateSelectedValues = function () {
|
|
2462
|
+
var _this = this;
|
|
2354
2463
|
this.dataValue = '';
|
|
2355
2464
|
var temp;
|
|
2356
2465
|
var text;
|
|
@@ -2365,6 +2474,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2365
2474
|
this.selectedData = [];
|
|
2366
2475
|
}
|
|
2367
2476
|
if (!isNOU(this.value)) {
|
|
2477
|
+
var compiledString = this.initializeValueTemplate();
|
|
2368
2478
|
for (var i = 0, len = this.value.length; i < len; i++) {
|
|
2369
2479
|
selectedData = this.getSelectedData(this.value[i]);
|
|
2370
2480
|
text = getValue(this.treeSettings.loadOnDemand ? this.fields.text : 'text', selectedData);
|
|
@@ -2384,6 +2494,19 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2384
2494
|
}
|
|
2385
2495
|
hiddenInputValue += '<option selected value ="' + this.value[i] + '">' +
|
|
2386
2496
|
this.selectedText[this.selectedText.length - 1] + '</option>';
|
|
2497
|
+
if (this.valueTemplate) {
|
|
2498
|
+
this.getValueTemplateElement(this.value[i], compiledString);
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
if (this.hasTemplate && this.portals) {
|
|
2502
|
+
if (this.treeObj.portals) {
|
|
2503
|
+
this.portals = this.portals.concat(this.treeObj.portals.filter(function (item) {
|
|
2504
|
+
return !_this.portals.includes(item);
|
|
2505
|
+
}));
|
|
2506
|
+
}
|
|
2507
|
+
if (this.isReact) {
|
|
2508
|
+
this.renderReactTemplates(this.reactCallBack);
|
|
2509
|
+
}
|
|
2387
2510
|
}
|
|
2388
2511
|
if (this.selectedText.length >= 1) {
|
|
2389
2512
|
this.setProperties({ text: textValue }, true);
|
|
@@ -2399,6 +2522,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2399
2522
|
addClass([this.chipWrapper], HIDEICON);
|
|
2400
2523
|
removeClass([this.inputWrapper], SHOW_CHIP);
|
|
2401
2524
|
}
|
|
2525
|
+
this.showOrHideValueTemplate(true);
|
|
2402
2526
|
}
|
|
2403
2527
|
Input.setValue(this.dataValue, this.inputEle, this.floatLabelType);
|
|
2404
2528
|
if (textValue === '') {
|
|
@@ -2416,7 +2540,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2416
2540
|
this.currentText = this.text;
|
|
2417
2541
|
this.currentValue = this.value;
|
|
2418
2542
|
if (!isNOU(this.value) && this.value.length > 0 && !isNOU(this.currentText)) {
|
|
2419
|
-
this.inputWrapper.setAttribute('aria-label', this.currentText.
|
|
2543
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.replace(/,/g, ', '));
|
|
2420
2544
|
}
|
|
2421
2545
|
else {
|
|
2422
2546
|
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
@@ -2463,6 +2587,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2463
2587
|
}
|
|
2464
2588
|
if (this.chipWrapper.classList.contains(HIDEICON)) {
|
|
2465
2589
|
removeClass([this.chipWrapper], HIDEICON);
|
|
2590
|
+
this.showOrHideValueTemplate(false, true);
|
|
2466
2591
|
}
|
|
2467
2592
|
var chipContent = this.createElement('span', { className: CHIP_CONTENT });
|
|
2468
2593
|
var template = this.customTemplate;
|
|
@@ -2600,6 +2725,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2600
2725
|
if (!isDynamicChange) {
|
|
2601
2726
|
this.oldValue = this.value;
|
|
2602
2727
|
this.setProperties({ value: [] }, true);
|
|
2728
|
+
this.showOrHideValueTemplate(false);
|
|
2603
2729
|
}
|
|
2604
2730
|
if (isNOU(this.value) || this.value.length === 0) {
|
|
2605
2731
|
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
@@ -2671,18 +2797,20 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2671
2797
|
}
|
|
2672
2798
|
};
|
|
2673
2799
|
DropDownTree.prototype.updateTreeSettings = function (prop) {
|
|
2674
|
-
|
|
2675
|
-
if (value === 'autoCheck') {
|
|
2800
|
+
if (prop === 'autoCheck') {
|
|
2676
2801
|
this.treeObj.autoCheck = this.treeSettings.autoCheck;
|
|
2677
2802
|
}
|
|
2678
|
-
else if (
|
|
2803
|
+
else if (prop === 'loadOnDemand') {
|
|
2679
2804
|
this.treeObj.loadOnDemand = this.treeSettings.loadOnDemand;
|
|
2680
2805
|
}
|
|
2681
|
-
else if (
|
|
2806
|
+
else if (prop === 'expandOn') {
|
|
2682
2807
|
this.treeObj.expandOn = this.treeSettings.expandOn;
|
|
2683
2808
|
this.treeObj.dataBind();
|
|
2684
2809
|
return;
|
|
2685
2810
|
}
|
|
2811
|
+
else if (prop === 'checkDisabledChildren') {
|
|
2812
|
+
this.treeObj.checkDisabledChildren = this.treeSettings.checkDisabledChildren;
|
|
2813
|
+
}
|
|
2686
2814
|
this.treeObj.dataBind();
|
|
2687
2815
|
this.setMultiSelect();
|
|
2688
2816
|
this.updateValue(this.value);
|
|
@@ -2748,6 +2876,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2748
2876
|
}
|
|
2749
2877
|
addClass([this.noRecord], NODATACONTAINER);
|
|
2750
2878
|
prepend([this.noRecord], this.popupDiv);
|
|
2879
|
+
if (this.treeObj) {
|
|
2880
|
+
this.treeObj.element.removeAttribute('aria-activedescendant');
|
|
2881
|
+
}
|
|
2751
2882
|
};
|
|
2752
2883
|
DropDownTree.prototype.updateRecordTemplate = function (action) {
|
|
2753
2884
|
if (this.treeItems && this.treeItems.length <= 0) {
|
|
@@ -2830,7 +2961,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2830
2961
|
return;
|
|
2831
2962
|
}
|
|
2832
2963
|
if (!this.wrapText) {
|
|
2833
|
-
var overFlow = select('.'
|
|
2964
|
+
var overFlow = select('.e-overflow:not(.e-input-value)', this.inputWrapper);
|
|
2834
2965
|
if (overFlow) {
|
|
2835
2966
|
overFlow.innerHTML = '';
|
|
2836
2967
|
}
|
|
@@ -2969,7 +3100,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2969
3100
|
this.updateOption();
|
|
2970
3101
|
break;
|
|
2971
3102
|
case 'treeSettings':
|
|
2972
|
-
|
|
3103
|
+
for (var _b = 0, _c = Object.keys(newProp.treeSettings); _b < _c.length; _b++) {
|
|
3104
|
+
var prop_1 = _c[_b];
|
|
3105
|
+
this.updateTreeSettings(prop_1);
|
|
3106
|
+
}
|
|
2973
3107
|
break;
|
|
2974
3108
|
case 'customTemplate':
|
|
2975
3109
|
if (this.mode !== 'Custom') {
|
|
@@ -3089,7 +3223,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3089
3223
|
detach(this.hiddenElement);
|
|
3090
3224
|
Input.setRipple(false, [this.inputObj]);
|
|
3091
3225
|
this.element.classList.remove('e-input');
|
|
3092
|
-
if (this.showCheckBox || this.allowMultiSelection) {
|
|
3226
|
+
if (this.showCheckBox || this.allowMultiSelection || (this.value && this.valueTemplateContainer)) {
|
|
3093
3227
|
this.element.classList.remove(CHIP_INPUT);
|
|
3094
3228
|
}
|
|
3095
3229
|
detach(this.inputObj.container);
|
|
@@ -3141,7 +3275,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3141
3275
|
DropDownTree.prototype.destroyPopup = function () {
|
|
3142
3276
|
this.isPopupOpen = false;
|
|
3143
3277
|
if (this.isReact) {
|
|
3144
|
-
this.clearTemplate(
|
|
3278
|
+
this.clearTemplate(['headerTemplate', 'footerTemplate', 'itemTemplate', 'actionFailureTemplate',
|
|
3279
|
+
'noRecordsTemplate', 'customTemplate']);
|
|
3145
3280
|
}
|
|
3146
3281
|
if (this.popupObj) {
|
|
3147
3282
|
this.popupObj.destroy();
|
|
@@ -3337,6 +3472,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3337
3472
|
__decorate([
|
|
3338
3473
|
Property(null)
|
|
3339
3474
|
], DropDownTree.prototype, "value", void 0);
|
|
3475
|
+
__decorate([
|
|
3476
|
+
Property(null)
|
|
3477
|
+
], DropDownTree.prototype, "valueTemplate", void 0);
|
|
3340
3478
|
__decorate([
|
|
3341
3479
|
Property('100%')
|
|
3342
3480
|
], DropDownTree.prototype, "width", void 0);
|