@syncfusion/ej2-dropdowns 22.1.38 → 22.2.5
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/.eslintrc.json +260 -0
- package/CHANGELOG.md +20 -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 +37 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +37 -8
- 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 +11 -11
- package/src/drop-down-base/drop-down-base.d.ts +4 -4
- package/src/drop-down-list/drop-down-list.js +3 -0
- package/src/drop-down-tree/drop-down-tree-model.d.ts +1 -1
- package/src/drop-down-tree/drop-down-tree.js +28 -4
- package/src/list-box/list-box.js +1 -1
- package/src/multi-select/checkbox-selection.js +6 -4
- package/tslint.json +111 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.
|
|
3
|
+
* version : 22.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@22.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@22.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kGCz43iB1JPJkzxWFVy45/PWM48DrUevtPcmysiuBIyHbL7MZaNc/jc4ee+h+0AYOwFqcnc+dUu85DAb7O05Hg==",
|
|
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.39.tgz",
|
|
38
|
+
"_shasum": "50db23e29303d2ed0f0e8e14a8a1601682864f9e",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~22.
|
|
47
|
-
"@syncfusion/ej2-data": "~22.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~22.
|
|
49
|
-
"@syncfusion/ej2-lists": "~22.
|
|
50
|
-
"@syncfusion/ej2-navigations": "~22.
|
|
51
|
-
"@syncfusion/ej2-popups": "~22.
|
|
46
|
+
"@syncfusion/ej2-base": "~22.2.5",
|
|
47
|
+
"@syncfusion/ej2-data": "~22.2.5",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~22.2.5",
|
|
49
|
+
"@syncfusion/ej2-lists": "~22.2.5",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~22.2.5",
|
|
51
|
+
"@syncfusion/ej2-popups": "~22.2.5"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"module": "./index.js",
|
|
74
74
|
"name": "@syncfusion/ej2-dropdowns",
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "22.
|
|
76
|
+
"version": "22.2.5",
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
79
79
|
}
|
|
@@ -693,21 +693,21 @@ export interface FilteringEventArgs {
|
|
|
693
693
|
}
|
|
694
694
|
export interface PopupEventArgs {
|
|
695
695
|
/**
|
|
696
|
-
*
|
|
696
|
+
* This property provides access to the Popup object associated with the dropdown list. The Popup object represents the actual popup element that is displayed when the dropdown list is expanded.
|
|
697
697
|
*
|
|
698
698
|
|
|
699
699
|
*/
|
|
700
700
|
popup: Popup;
|
|
701
701
|
/**
|
|
702
|
-
*
|
|
702
|
+
* This property indicates whether the current action should be prevented or not. By setting it to true, you can cancel the default action associated with the event.
|
|
703
703
|
*/
|
|
704
704
|
cancel?: boolean;
|
|
705
705
|
/**
|
|
706
|
-
*
|
|
706
|
+
* This property allows you to specify the animation settings for the popup. It accepts an AnimationModel object that defines the animation behavior.
|
|
707
707
|
*/
|
|
708
708
|
animation?: AnimationModel;
|
|
709
709
|
/**
|
|
710
|
-
*
|
|
710
|
+
* This property represents the event that triggers the popup. It can be of type MouseEvent, KeyboardEventArgs, TouchEvent, or a generic Object representing the event details.
|
|
711
711
|
*/
|
|
712
712
|
event?: MouseEvent | KeyboardEventArgs | TouchEvent | Object;
|
|
713
713
|
}
|
|
@@ -2087,6 +2087,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
});
|
|
2090
|
+
if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
|
|
2091
|
+
this.actionCompleteData.ulElement = this.ulElement.cloneNode(true);
|
|
2092
|
+
}
|
|
2090
2093
|
};
|
|
2091
2094
|
DropDownList.prototype.destroyPopup = function () {
|
|
2092
2095
|
this.isPopupOpen = false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input, InputObject, FloatLabelType, TextBox, InputEventArgs } from '@syncfusion/ej2-inputs';import { createCheckBox } from '@syncfusion/ej2-buttons';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Event, EmitType } from '@syncfusion/ej2-base';import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Popup } from '@syncfusion/ej2-popups';import { TreeView, NodeSelectEventArgs, DataBoundEventArgs, FieldsSettingsModel, NodeClickEventArgs, NodeExpandEventArgs } from '@syncfusion/ej2-navigations';import { NodeCheckEventArgs, FailureEventArgs} from '@syncfusion/ej2-navigations';
|
|
1
|
+
import { Input, InputObject, FloatLabelType, TextBox, InputEventArgs } from '@syncfusion/ej2-inputs';import { createCheckBox } from '@syncfusion/ej2-buttons';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Event, EmitType, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Popup } from '@syncfusion/ej2-popups';import { TreeView, NodeSelectEventArgs, DataBoundEventArgs, FieldsSettingsModel, NodeClickEventArgs, NodeExpandEventArgs } from '@syncfusion/ej2-navigations';import { NodeCheckEventArgs, FailureEventArgs} from '@syncfusion/ej2-navigations';
|
|
2
2
|
import {Mode,ExpandOn,TreeFilterType,SortOrder,DdtBeforeOpenEventArgs,DdtChangeEventArgs,DdtPopupEventArgs,DdtDataBoundEventArgs,DdtFilteringEventArgs,DdtFocusEventArgs,DdtKeyPressEventArgs,DdtSelectEventArgs} from "./drop-down-tree";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { Input, TextBox } from '@syncfusion/ej2-inputs';
|
|
21
21
|
import { createCheckBox } from '@syncfusion/ej2-buttons';
|
|
22
|
-
import { NotifyPropertyChanges, Property, Event } from '@syncfusion/ej2-base';
|
|
22
|
+
import { NotifyPropertyChanges, Property, Event, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';
|
|
24
24
|
import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';
|
|
25
25
|
import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents } from '@syncfusion/ej2-base';
|
|
@@ -934,7 +934,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
934
934
|
data += temp;
|
|
935
935
|
temp = this.overFlowWrapper.innerHTML;
|
|
936
936
|
if (this.enableHtmlSanitizer) {
|
|
937
|
-
this.overFlowWrapper.innerText = data;
|
|
937
|
+
this.overFlowWrapper.innerText = SanitizeHtmlHelper.sanitize(data);
|
|
938
938
|
}
|
|
939
939
|
else {
|
|
940
940
|
this.overFlowWrapper.innerHTML = data;
|
|
@@ -1660,7 +1660,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1660
1660
|
var isFooter = closest(target, '.' + FOOTER);
|
|
1661
1661
|
var isScroller = target.classList.contains(DROPDOWN) ? true :
|
|
1662
1662
|
(matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
|
|
1663
|
-
if ((this.isPopupOpen && (this.inputWrapper.contains(target) || isTree || isScroller || isHeader || isFooter)) ||
|
|
1663
|
+
if ((this.isPopupOpen && ((!isNOU(this.inputWrapper) && this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
|
|
1664
1664
|
((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
|
|
1665
1665
|
(this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
|
|
1666
1666
|
|| target.classList.contains(CHECKBOXFRAME)))))) {
|
|
@@ -2298,7 +2298,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2298
2298
|
var chipContent = this.createElement('span', { className: CHIP_CONTENT });
|
|
2299
2299
|
var chipClose = this.createElement('span', { className: CHIP_CLOSE + ' ' + ICONS });
|
|
2300
2300
|
if (this.enableHtmlSanitizer) {
|
|
2301
|
-
chipContent.innerText = text;
|
|
2301
|
+
chipContent.innerText = SanitizeHtmlHelper.sanitize(text);
|
|
2302
2302
|
}
|
|
2303
2303
|
else {
|
|
2304
2304
|
chipContent.innerHTML = text;
|
|
@@ -2957,10 +2957,34 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2957
2957
|
Input.setValue(null, this.inputEle, this.floatLabelType);
|
|
2958
2958
|
detach(this.inputWrapper);
|
|
2959
2959
|
detach(this.popupDiv);
|
|
2960
|
+
detach(this.hiddenElement);
|
|
2960
2961
|
this.element.classList.remove('e-input');
|
|
2961
2962
|
if (this.showCheckBox || this.allowMultiSelection) {
|
|
2962
2963
|
this.element.classList.remove(CHIP_INPUT);
|
|
2963
2964
|
}
|
|
2965
|
+
this.inputObj = null;
|
|
2966
|
+
while (this.hiddenElement.options.length > 0) {
|
|
2967
|
+
this.hiddenElement.remove(0);
|
|
2968
|
+
}
|
|
2969
|
+
this.hiddenElement.innerHTML = '';
|
|
2970
|
+
this.hiddenElement = null;
|
|
2971
|
+
this.inputWrapper = null;
|
|
2972
|
+
this.popupDiv = null;
|
|
2973
|
+
this.tree = null;
|
|
2974
|
+
this.popupObj = null;
|
|
2975
|
+
this.treeObj = null;
|
|
2976
|
+
this.overAllClear = null;
|
|
2977
|
+
this.chipWrapper = null;
|
|
2978
|
+
this.chipCollection = null;
|
|
2979
|
+
this.checkAllParent = null;
|
|
2980
|
+
this.selectAllSpan = null;
|
|
2981
|
+
this.checkBoxElement = null;
|
|
2982
|
+
this.checkWrapper = null;
|
|
2983
|
+
this.popupEle = null;
|
|
2984
|
+
this.header = null;
|
|
2985
|
+
this.footer = null;
|
|
2986
|
+
this.overFlowWrapper = null;
|
|
2987
|
+
this.keyboardModule = null;
|
|
2964
2988
|
_super.prototype.destroy.call(this);
|
|
2965
2989
|
};
|
|
2966
2990
|
DropDownTree.prototype.destroyFilter = function () {
|
package/src/list-box/list-box.js
CHANGED
|
@@ -462,7 +462,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
462
462
|
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
463
463
|
scrollParent.scrollTop = scrollParent.scrollTop + scrollHeight;
|
|
464
464
|
}
|
|
465
|
-
else if ((event.
|
|
465
|
+
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
466
466
|
scrollParent.scrollTop = scrollParent.scrollTop - scrollHeight;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -343,10 +343,12 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
343
343
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
344
344
|
};
|
|
345
345
|
CheckBoxSelection.prototype.setPopupFullScreen = function () {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
if (this.parent && this.parent.popupObj) {
|
|
347
|
+
attributes(this.parent.popupObj.element, { style: 'left:0px;right:0px;top:0px;bottom:0px;' });
|
|
348
|
+
addClass([document.body, this.parent.popupObj.element], popupFullScreen);
|
|
349
|
+
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
350
|
+
this.parent.popupObj.element.style.width = '100%';
|
|
351
|
+
}
|
|
350
352
|
};
|
|
351
353
|
CheckBoxSelection.prototype.targetElement = function () {
|
|
352
354
|
if (!isNullOrUndefined(this.clearIconElement)) {
|
package/tslint.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rules": {
|
|
3
|
+
"chai-vague-errors": true,
|
|
4
|
+
"use-isnan": true,
|
|
5
|
+
"missing-jsdoc": true,
|
|
6
|
+
"missing-optional-annotation": true,
|
|
7
|
+
"no-backbone-get-set-outside-model": true,
|
|
8
|
+
"no-banned-terms": true,
|
|
9
|
+
"no-constant-condition": true,
|
|
10
|
+
"no-control-regex": true,
|
|
11
|
+
"no-cookies": true,
|
|
12
|
+
"no-delete-expression": true,
|
|
13
|
+
"no-document-write": true,
|
|
14
|
+
"no-document-domain": true,
|
|
15
|
+
"no-disable-auto-sanitization": true,
|
|
16
|
+
"no-duplicate-case": true,
|
|
17
|
+
"no-duplicate-parameter-names": true,
|
|
18
|
+
"no-empty-interfaces": true,
|
|
19
|
+
"no-exec-script": true,
|
|
20
|
+
"no-function-constructor-with-string-args": true,
|
|
21
|
+
"no-function-expression": true,
|
|
22
|
+
"no-invalid-regexp": true,
|
|
23
|
+
"no-for-in": true,
|
|
24
|
+
"member-access": true,
|
|
25
|
+
"no-multiline-string": true,
|
|
26
|
+
"no-multiple-var-decl": true,
|
|
27
|
+
"no-unnecessary-bind": true,
|
|
28
|
+
"no-unnecessary-semicolons": true,
|
|
29
|
+
"no-octal-literal": true,
|
|
30
|
+
"no-regex-spaces": true,
|
|
31
|
+
"no-sparse-arrays": true,
|
|
32
|
+
"no-string-based-set-immediate": true,
|
|
33
|
+
"no-string-based-set-interval": true,
|
|
34
|
+
"no-unused-imports": true,
|
|
35
|
+
"no-with-statement": true,
|
|
36
|
+
"prefer-array-literal": true,
|
|
37
|
+
"promise-must-complete": false,
|
|
38
|
+
"react-no-dangerous-html": true,
|
|
39
|
+
"use-named-parameter": true,
|
|
40
|
+
"valid-typeof": true,
|
|
41
|
+
"max-func-body-length": [true, 100, {
|
|
42
|
+
"ignore-parameters-to-function-regex": "describe"
|
|
43
|
+
}],
|
|
44
|
+
"class-name": true,
|
|
45
|
+
"curly": true,
|
|
46
|
+
"eofline": false,
|
|
47
|
+
"forin": true,
|
|
48
|
+
"indent": [
|
|
49
|
+
true,
|
|
50
|
+
"spaces"
|
|
51
|
+
],
|
|
52
|
+
"label-position": true,
|
|
53
|
+
"max-line-length": [true, 140],
|
|
54
|
+
"no-arg": true,
|
|
55
|
+
"no-console": [true,
|
|
56
|
+
"debug",
|
|
57
|
+
"info",
|
|
58
|
+
"log",
|
|
59
|
+
"time",
|
|
60
|
+
"timeEnd",
|
|
61
|
+
"trace"
|
|
62
|
+
],
|
|
63
|
+
"no-construct": true,
|
|
64
|
+
"no-parameter-properties": true,
|
|
65
|
+
"no-debugger": true,
|
|
66
|
+
"no-duplicate-variable": true,
|
|
67
|
+
"no-empty": true,
|
|
68
|
+
"no-eval": true,
|
|
69
|
+
"no-string-literal": true,
|
|
70
|
+
"no-switch-case-fall-through": true,
|
|
71
|
+
"trailing-comma": true,
|
|
72
|
+
"no-trailing-whitespace": true,
|
|
73
|
+
"no-unused-expression": true,
|
|
74
|
+
"no-use-before-declare": false,
|
|
75
|
+
"no-var-requires": true,
|
|
76
|
+
"one-line": [true,
|
|
77
|
+
"check-open-brace",
|
|
78
|
+
"check-catch",
|
|
79
|
+
"check-else",
|
|
80
|
+
"check-whitespace"
|
|
81
|
+
],
|
|
82
|
+
"no-any": true,
|
|
83
|
+
"no-conditional-assignment": true,
|
|
84
|
+
"no-angle-bracket-type-assertion": false,
|
|
85
|
+
"align": [true, "parameters", "arguments", "statements"],
|
|
86
|
+
"no-empty-line-after-opening-brace": false,
|
|
87
|
+
"typedef-whitespace": [false],
|
|
88
|
+
"ban": true,
|
|
89
|
+
"quotemark": [true, "single"],
|
|
90
|
+
"semicolon": true,
|
|
91
|
+
"triple-equals": [true, "allow-null-check"],
|
|
92
|
+
"typedef": [true,
|
|
93
|
+
"call-signature",
|
|
94
|
+
"parameter",
|
|
95
|
+
"property-declaration",
|
|
96
|
+
"variable-declaration",
|
|
97
|
+
"arrow-parameter",
|
|
98
|
+
"member-variable-declaration"],
|
|
99
|
+
"variable-name": true,
|
|
100
|
+
"whitespace": [true,
|
|
101
|
+
"check-branch",
|
|
102
|
+
"check-decl",
|
|
103
|
+
"check-operator",
|
|
104
|
+
"check-separator",
|
|
105
|
+
"check-type"
|
|
106
|
+
],
|
|
107
|
+
"jsdoc-format": true,
|
|
108
|
+
"no-var-keyword": true,
|
|
109
|
+
"radix": true
|
|
110
|
+
}
|
|
111
|
+
}
|