@syncfusion/ej2-dropdowns 34.2.6 → 34.2.7

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 34.2.6
3
+ * version : 34.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-dropdowns",
3
- "version": "34.2.6",
3
+ "version": "34.2.7",
4
4
  "description": "Essential JS 2 DropDown Components",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,9 +10,9 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~34.2.6",
12
12
  "@syncfusion/ej2-data": "~34.2.6",
13
- "@syncfusion/ej2-inputs": "~34.2.6",
13
+ "@syncfusion/ej2-inputs": "~34.2.7",
14
14
  "@syncfusion/ej2-lists": "~34.2.6",
15
- "@syncfusion/ej2-navigations": "~34.2.6",
15
+ "@syncfusion/ej2-navigations": "~34.2.7",
16
16
  "@syncfusion/ej2-notifications": "~34.2.6",
17
17
  "@syncfusion/ej2-popups": "~34.2.6"
18
18
  },
@@ -23,7 +23,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
23
23
  fields?: FieldSettingsModel;
24
24
 
25
25
  /**
26
- * When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering/#case-sensitive-filtering)
26
+ * When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering#case-sensitive-filtering)
27
27
  * on performing the search to find suggestions.
28
28
  * By default consider the casing.
29
29
  *
@@ -88,7 +88,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
88
88
 
89
89
  /**
90
90
  * Determines on which filter type, the component needs to be considered on search action.
91
- * The available [`FilterType`](../../auto-complete/filtering/#change-the-filter-type)
91
+ * The available [`FilterType`](../../auto-complete/filtering#change-the-filter-type)
92
92
  * and its supported data types are
93
93
  *
94
94
  * <table>
@@ -37,7 +37,7 @@ export declare class AutoComplete extends ComboBox {
37
37
  */
38
38
  fields: FieldSettingsModel;
39
39
  /**
40
- * When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering/#case-sensitive-filtering)
40
+ * When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering#case-sensitive-filtering)
41
41
  * on performing the search to find suggestions.
42
42
  * By default consider the casing.
43
43
  *
@@ -97,7 +97,7 @@ export declare class AutoComplete extends ComboBox {
97
97
  minLength: number;
98
98
  /**
99
99
  * Determines on which filter type, the component needs to be considered on search action.
100
- * The available [`FilterType`](../../auto-complete/filtering/#change-the-filter-type)
100
+ * The available [`FilterType`](../../auto-complete/filtering#change-the-filter-type)
101
101
  * and its supported data types are
102
102
  *
103
103
  * <table>
@@ -244,7 +244,7 @@ export interface DropDownListModel extends DropDownBaseModel{
244
244
 
245
245
  /**
246
246
  * Triggers on typing a character in the filter bar when the
247
- * [`allowFiltering`](./#allowfiltering)
247
+ * [`allowFiltering`](./index-default#allowfiltering)
248
248
  * is enabled.
249
249
  * > For more details about the filtering refer to [`Filtering`](../../drop-down-list/filtering) documentation.
250
250
  *
@@ -349,7 +349,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
349
349
  showClearButton: boolean;
350
350
  /**
351
351
  * Triggers on typing a character in the filter bar when the
352
- * [`allowFiltering`](./#allowfiltering)
352
+ * [`allowFiltering`](./index-default#allowfiltering)
353
353
  * is enabled.
354
354
  * > For more details about the filtering refer to [`Filtering`](../../drop-down-list/filtering) documentation.
355
355
  *
@@ -1424,7 +1424,8 @@ var DropDownList = /** @class */ (function (_super) {
1424
1424
  };
1425
1425
  DropDownList.prototype.onDocumentClick = function (e) {
1426
1426
  var target = e.target;
1427
- if (!(!isNullOrUndefined(this.popupObj) && closest(target, this.checkSelector(this.popupObj.element.id))) &&
1427
+ if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
1428
+ closest(target, this.checkSelector(this.popupObj.element.id))) &&
1428
1429
  !isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
1429
1430
  if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
1430
1431
  this.isDocumentClick = true;
@@ -3083,7 +3084,9 @@ var DropDownList = /** @class */ (function (_super) {
3083
3084
  ulElement = null;
3084
3085
  },
3085
3086
  targetExitViewport: function () {
3086
- _this.hidePopup();
3087
+ if (!Browser.isDevice || (_this.allowFiltering === false && _this.isPopupOpen)) {
3088
+ _this.hidePopup();
3089
+ }
3087
3090
  }
3088
3091
  });
3089
3092
  };
@@ -50,7 +50,7 @@ export interface FieldsModel {
50
50
  parentValue?: string;
51
51
 
52
52
  /**
53
- * Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query/)
53
+ * Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query)
54
54
  * that will execute along with the data processing.
55
55
  *
56
56
  * @default null
@@ -316,7 +316,7 @@ export interface DropDownTreeModel extends ComponentModel{
316
316
  /**
317
317
  * Specifies a template to render customized content for all the items.
318
318
  * If the **itemTemplate** property is set, the template content overrides the displayed item text.
319
- * The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine/)
319
+ * The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine)
320
320
  * or HTML element ID holding the content.
321
321
  *
322
322
  * @default null
@@ -484,7 +484,7 @@ export interface DropDownTreeModel extends ComponentModel{
484
484
 
485
485
  /**
486
486
  * Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the **valueTemplate** property is set, the template content overrides the displayed item text.
487
- * The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
487
+ * The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
488
488
  *
489
489
  * @default null
490
490
  * @angularType string | object
@@ -52,7 +52,7 @@ export declare class Fields extends ChildProperty<Fields> {
52
52
  */
53
53
  parentValue: string;
54
54
  /**
55
- * Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query/)
55
+ * Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query)
56
56
  * that will execute along with the data processing.
57
57
  *
58
58
  * @default null
@@ -505,7 +505,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
505
505
  /**
506
506
  * Specifies a template to render customized content for all the items.
507
507
  * If the **itemTemplate** property is set, the template content overrides the displayed item text.
508
- * The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine/)
508
+ * The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine)
509
509
  * or HTML element ID holding the content.
510
510
  *
511
511
  * @default null
@@ -653,7 +653,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
653
653
  value: string[];
654
654
  /**
655
655
  * Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the **valueTemplate** property is set, the template content overrides the displayed item text.
656
- * The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
656
+ * The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
657
657
  *
658
658
  * @default null
659
659
  * @angularType string | object
@@ -197,8 +197,6 @@ export interface MultiSelectModel extends DropDownBaseModel{
197
197
 
198
198
  /**
199
199
  * Gets or sets the height of the popup list. By default it renders based on its list item.
200
- * > For more details about the popup configuration refer to
201
- * [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
202
200
  *
203
201
  * @default '300px'
204
202
  * @aspType string
@@ -207,8 +205,6 @@ export interface MultiSelectModel extends DropDownBaseModel{
207
205
 
208
206
  /**
209
207
  * Gets or sets the width of the popup list and percentage values has calculated based on input width.
210
- * > For more details about the popup configuration refer to
211
- * [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
212
208
  *
213
209
  * @default '100%'
214
210
  * @aspType string
@@ -426,7 +422,7 @@ export interface MultiSelectModel extends DropDownBaseModel{
426
422
  delimiterChar?: string;
427
423
 
428
424
  /**
429
- * Sets [`case sensitive`](../../multi-select/filtering/#case-sensitive-filtering)
425
+ * Sets [`case sensitive`](../../multi-select/filtering#case-sensitive-filtering)
430
426
  * option for filter operation.
431
427
  *
432
428
  * @default true
@@ -255,8 +255,6 @@ export declare class MultiSelect extends DropDownBase implements IInput {
255
255
  width: string | number;
256
256
  /**
257
257
  * Gets or sets the height of the popup list. By default it renders based on its list item.
258
- * > For more details about the popup configuration refer to
259
- * [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
260
258
  *
261
259
  * @default '300px'
262
260
  * @aspType string
@@ -264,8 +262,6 @@ export declare class MultiSelect extends DropDownBase implements IInput {
264
262
  popupHeight: string | number;
265
263
  /**
266
264
  * Gets or sets the width of the popup list and percentage values has calculated based on input width.
267
- * > For more details about the popup configuration refer to
268
- * [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
269
265
  *
270
266
  * @default '100%'
271
267
  * @aspType string
@@ -461,7 +457,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
461
457
  */
462
458
  delimiterChar: string;
463
459
  /**
464
- * Sets [`case sensitive`](../../multi-select/filtering/#case-sensitive-filtering)
460
+ * Sets [`case sensitive`](../../multi-select/filtering#case-sensitive-filtering)
465
461
  * option for filter operation.
466
462
  *
467
463
  * @default true
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
+ }