@syncfusion/ej2-dropdowns 25.1.35 → 25.1.37
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 +12 -0
- 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 +18 -1
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -1
- 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 +7 -7
- package/src/multi-select/checkbox-selection.d.ts +2 -0
- package/src/multi-select/checkbox-selection.js +8 -1
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +11 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/material-dark.css +9 -0
- package/styles/material.css +9 -0
- package/styles/multi-select/_fluent-definition.scss +1 -1
- package/styles/multi-select/_material-dark-definition.scss +11 -0
- package/styles/multi-select/_material-definition.scss +11 -0
- package/styles/multi-select/fluent-dark.css +1 -1
- package/styles/multi-select/fluent.css +1 -1
- package/styles/multi-select/material-dark.css +9 -0
- package/styles/multi-select/material.css +9 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.1.
|
|
3
|
+
* version : 25.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@25.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-o2qsZbMu76zBnvXhSDdsN7R18mJhycMuJ9jXY5rrsQtS0S1XucOAXQA/RjxFP72CCbcmWOrvk9nVpZUhFEZ4+Q==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-25.1.35.tgz",
|
|
38
|
+
"_shasum": "1c83db7b666f57c583f0a5f82bc2930514811f9d",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~25.1.35",
|
|
47
47
|
"@syncfusion/ej2-data": "~25.1.35",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~25.1.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~25.1.37",
|
|
49
49
|
"@syncfusion/ej2-lists": "~25.1.35",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~25.1.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~25.1.37",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~25.1.35",
|
|
52
52
|
"@syncfusion/ej2-popups": "~25.1.35"
|
|
53
53
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "25.1.
|
|
77
|
+
"version": "25.1.37",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -16,6 +16,7 @@ export declare class CheckBoxSelection {
|
|
|
16
16
|
list: HTMLElement;
|
|
17
17
|
private activeLi;
|
|
18
18
|
private activeEle;
|
|
19
|
+
private boundPreventListSelection;
|
|
19
20
|
constructor(parent?: IMulitSelect);
|
|
20
21
|
getModuleName(): string;
|
|
21
22
|
addEventListener(): void;
|
|
@@ -34,6 +35,7 @@ export declare class CheckBoxSelection {
|
|
|
34
35
|
protected setSearchBox(args: IUpdateListArgs): InputObject | void;
|
|
35
36
|
private clickOnBackIcon;
|
|
36
37
|
private clearText;
|
|
38
|
+
private preventListSelection;
|
|
37
39
|
private setDeviceSearchBox;
|
|
38
40
|
private setSearchBoxPosition;
|
|
39
41
|
protected setPopupFullScreen(): void;
|
|
@@ -312,13 +312,20 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
312
312
|
if (this.parent.allowFiltering && this.parent.targetInputElement.value === '') {
|
|
313
313
|
this.parent.search(null);
|
|
314
314
|
}
|
|
315
|
-
this.parent.refreshPopup();
|
|
316
315
|
this.parent.refreshListItems(null);
|
|
316
|
+
this.parent.refreshPopup();
|
|
317
317
|
this.clearIconElement.style.visibility = 'hidden';
|
|
318
318
|
this.filterInput.focus();
|
|
319
319
|
this.setReorder(e);
|
|
320
|
+
this.boundPreventListSelection = this.preventListSelection.bind(this);
|
|
321
|
+
this.parent.popupWrapper.addEventListener('mouseup', this.boundPreventListSelection, true);
|
|
320
322
|
e.preventDefault();
|
|
321
323
|
};
|
|
324
|
+
CheckBoxSelection.prototype.preventListSelection = function (e) {
|
|
325
|
+
e.stopPropagation();
|
|
326
|
+
this.parent.popupWrapper.removeEventListener('mouseup', this.boundPreventListSelection, true);
|
|
327
|
+
this.boundPreventListSelection = null;
|
|
328
|
+
};
|
|
322
329
|
CheckBoxSelection.prototype.setDeviceSearchBox = function () {
|
|
323
330
|
this.parent.popupObj.element.classList.add(device);
|
|
324
331
|
this.parent.popupObj.element.classList.add(mobileFilter);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropDownBase, SelectEventArgs, dropDownBaseClasses, PopupEventArgs, FilteringEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, BeforeOpenEventArgs, FilterType, FieldSettings, ResultData } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, FloatLabelType, Input } from '@syncfusion/ej2-inputs';import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';import { EventHandler, Property, Event, compile, L10n, EmitType, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, prepend, Complex } from '@syncfusion/ej2-base';import { Search } from '../common/incremental-search';import { append, addClass, removeClass, closest, detach, remove, select, selectAll } from '@syncfusion/ej2-base';import { getUniqueID, formatUnit, isNullOrUndefined, isUndefined, ModuleDeclaration } from '@syncfusion/ej2-base';import { DataManager, Query, Predicate, JsonAdaptor, DataOptions } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { createFloatLabel, removeFloating, floatLabelFocus, floatLabelBlur, encodePlaceholder } from './float-label';
|
|
1
|
+
import { DropDownBase, SelectEventArgs, dropDownBaseClasses, PopupEventArgs, FilteringEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, BeforeOpenEventArgs, FilterType, FieldSettings, ResultData } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { isCollide, Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, FloatLabelType, Input } from '@syncfusion/ej2-inputs';import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';import { EventHandler, Property, Event, compile, L10n, EmitType, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, prepend, Complex } from '@syncfusion/ej2-base';import { Search } from '../common/incremental-search';import { append, addClass, removeClass, closest, detach, remove, select, selectAll } from '@syncfusion/ej2-base';import { getUniqueID, formatUnit, isNullOrUndefined, isUndefined, ModuleDeclaration } from '@syncfusion/ej2-base';import { DataManager, Query, Predicate, JsonAdaptor, DataOptions } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { createFloatLabel, removeFloating, floatLabelFocus, floatLabelBlur, encodePlaceholder } from './float-label';
|
|
2
2
|
import {visualMode,MultiSelectChangeEventArgs,RemoveEventArgs,ISelectAllEventArgs,TaggingEventArgs,CustomValueEventArgs} from "./multi-select";
|
|
3
3
|
import {DropDownBaseModel} from "../drop-down-base/drop-down-base-model";
|
|
4
4
|
|
|
@@ -738,6 +738,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
738
738
|
[key: string]: Object;
|
|
739
739
|
}[], fields: FieldSettingsModel): FieldSettingsModel;
|
|
740
740
|
private renderPopup;
|
|
741
|
+
private checkCollision;
|
|
741
742
|
private setHeaderTemplate;
|
|
742
743
|
private setFooterTemplate;
|
|
743
744
|
private updateInitialData;
|
|
@@ -21,7 +21,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
21
21
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
22
22
|
import { DropDownBase, dropDownBaseClasses } from '../drop-down-base/drop-down-base';
|
|
23
23
|
import { FieldSettings } from '../drop-down-base/drop-down-base';
|
|
24
|
-
import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
|
|
24
|
+
import { isCollide, Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
|
|
25
25
|
import { Input } from '@syncfusion/ej2-inputs';
|
|
26
26
|
import { attributes, setValue, getValue } from '@syncfusion/ej2-base';
|
|
27
27
|
import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';
|
|
@@ -2776,6 +2776,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
}
|
|
2778
2778
|
});
|
|
2779
|
+
this.checkCollision(this.popupWrapper);
|
|
2779
2780
|
this.popupContentElement = this.popupObj.element.querySelector('.e-content');
|
|
2780
2781
|
if (this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering) {
|
|
2781
2782
|
this.notify('deviceSearchBox', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox' });
|
|
@@ -2785,6 +2786,15 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2785
2786
|
}
|
|
2786
2787
|
}
|
|
2787
2788
|
};
|
|
2789
|
+
MultiSelect.prototype.checkCollision = function (popupEle) {
|
|
2790
|
+
if (!(this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering)) {
|
|
2791
|
+
var collision = isCollide(popupEle);
|
|
2792
|
+
if (collision.length > 0) {
|
|
2793
|
+
popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
|
|
2794
|
+
}
|
|
2795
|
+
this.popupObj.resolveCollision();
|
|
2796
|
+
}
|
|
2797
|
+
};
|
|
2788
2798
|
MultiSelect.prototype.setHeaderTemplate = function () {
|
|
2789
2799
|
var compiledString;
|
|
2790
2800
|
if (this.header) {
|
package/styles/fluent-dark.css
CHANGED
|
@@ -1346,7 +1346,7 @@ ejs-dropdownlist {
|
|
|
1346
1346
|
|
|
1347
1347
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon,
|
|
1348
1348
|
.e-bigger.e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon {
|
|
1349
|
-
margin-top: -1.
|
|
1349
|
+
margin-top: -1.6em;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
package/styles/fluent.css
CHANGED
|
@@ -1346,7 +1346,7 @@ ejs-dropdownlist {
|
|
|
1346
1346
|
|
|
1347
1347
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon,
|
|
1348
1348
|
.e-bigger.e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon {
|
|
1349
|
-
margin-top: -1.
|
|
1349
|
+
margin-top: -1.6em;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
package/styles/material-dark.css
CHANGED
|
@@ -1527,6 +1527,15 @@ ejs-dropdownlist {
|
|
|
1527
1527
|
transform: rotate(360deg);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
+
.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
1531
|
+
padding: 1px 0;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
.e-small .e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text],
|
|
1535
|
+
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
1536
|
+
padding: 0;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1530
1539
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
1531
1540
|
content: "\e969";
|
|
1532
1541
|
font-family: "e-icons";
|
package/styles/material.css
CHANGED
|
@@ -1582,6 +1582,15 @@ ejs-dropdownlist {
|
|
|
1582
1582
|
transform: rotate(360deg);
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
|
+
.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
1586
|
+
padding: 1px 0;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.e-small .e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text],
|
|
1590
|
+
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
1591
|
+
padding: 0;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1585
1594
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
1586
1595
|
content: "\e969";
|
|
1587
1596
|
font-family: "e-icons";
|
|
@@ -241,6 +241,6 @@ $ddl-small-clear-icon-width: 12px !default;
|
|
|
241
241
|
|
|
242
242
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon,
|
|
243
243
|
.e-bigger.e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon {
|
|
244
|
-
margin-top: -1.
|
|
244
|
+
margin-top: -1.6em;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -228,3 +228,14 @@ $ddl-multiselect-filled-float-input-min-height-bigger: 36px !default;
|
|
|
228
228
|
$ddl-multiselect-filled-floatlabel-fontsize-bigger: 12px !default;
|
|
229
229
|
$filled-multiselect-chip-bg-color: $grey-800 !default;
|
|
230
230
|
$filled-multiselect-chip-hover-bg-color: $grey-700 !default;
|
|
231
|
+
|
|
232
|
+
@include export-module('multiselect-material-dark') {
|
|
233
|
+
.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
|
|
234
|
+
padding: 1px 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.e-small .e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'],
|
|
238
|
+
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
|
|
239
|
+
padding: 0;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -221,3 +221,14 @@ $outline-multiselect-disabled-font-color: rgba($grey-light-font, .38) !default;
|
|
|
221
221
|
$outline-multiselect-disabled-chip-bg-color: $grey-100 !default;
|
|
222
222
|
$filled-multiselect-chip-bg-color: darken($grey-300, 7%) !default;
|
|
223
223
|
$filled-multiselect-chip-hover-bg-color: darken($grey-300, 7%) !default;
|
|
224
|
+
|
|
225
|
+
@include export-module('multiselect-material') {
|
|
226
|
+
.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
|
|
227
|
+
padding: 1px 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.e-small .e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'],
|
|
231
|
+
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
|
|
232
|
+
padding: 0;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon,
|
|
96
96
|
.e-bigger.e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon {
|
|
97
|
-
margin-top: -1.
|
|
97
|
+
margin-top: -1.6em;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon,
|
|
96
96
|
.e-bigger.e-multiselect.e-control-container .e-multi-select-wrapper.e-down-icon .e-clear-icon {
|
|
97
|
-
margin-top: -1.
|
|
97
|
+
margin-top: -1.6em;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
@@ -34,6 +34,15 @@
|
|
|
34
34
|
padding: 0 16px 0 0;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
38
|
+
padding: 1px 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.e-small .e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text],
|
|
42
|
+
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
38
47
|
content: "\e969";
|
|
39
48
|
font-family: "e-icons";
|
|
@@ -42,6 +42,15 @@
|
|
|
42
42
|
padding: 0 16px 0 0;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
46
|
+
padding: 1px 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.e-small .e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text],
|
|
50
|
+
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type=text] {
|
|
51
|
+
padding: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
45
54
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
46
55
|
content: "\e969";
|
|
47
56
|
font-family: "e-icons";
|