@syncfusion/ej2-inputs 30.1.38 → 30.1.40

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 : 30.1.38
3
+ * version : 30.1.40
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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-inputs",
3
- "version": "30.1.38",
3
+ "version": "30.1.40",
4
4
  "description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,8 +10,8 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~30.1.38",
12
12
  "@syncfusion/ej2-buttons": "~30.1.37",
13
- "@syncfusion/ej2-popups": "~30.1.37",
14
- "@syncfusion/ej2-splitbuttons": "~30.1.37"
13
+ "@syncfusion/ej2-popups": "~30.1.40",
14
+ "@syncfusion/ej2-splitbuttons": "~30.1.39"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -493,14 +493,26 @@ export var Input;
493
493
  return container;
494
494
  }
495
495
  function encodePlaceHolder(placeholder) {
496
- var result = '';
497
- if (!isNullOrUndefined(placeholder) && placeholder !== '') {
498
- var spanEle = document.createElement('span');
499
- spanEle.innerHTML = '<input placeholder="' + placeholder + '"/>';
500
- var hiddenInput = (spanEle.children[0]);
501
- result = hiddenInput.placeholder;
496
+ if (placeholder == null || placeholder === '') {
497
+ return '';
502
498
  }
503
- return result;
499
+ var decoded = decodeHtmlEntities(placeholder);
500
+ return decoded;
501
+ }
502
+ function decodeHtmlEntities(str) {
503
+ var entityMap = {
504
+ '&amp;': '&',
505
+ // eslint-disable-next-line quotes
506
+ '&quot;': '"',
507
+ // eslint-disable-next-line quotes
508
+ '&#39;': "'",
509
+ '&lt;': '<',
510
+ '&gt;': '>',
511
+ '&eacute;': 'é' // tslint:disable-line:comma-dangle
512
+ };
513
+ // tslint:disable-next-line:typedef
514
+ // tslint-disable-next-line security/detect-object-injection
515
+ return str.replace(/&[a-zA-Z#0-9]+;/g, function (entity) { return entityMap[entity] || entity; });
504
516
  }
505
517
  /**
506
518
  * Sets the value to the input element.
@@ -2103,7 +2103,7 @@ textarea.e-input,
2103
2103
  .e-float-input.e-control-wrapper input[readonly],
2104
2104
  .e-float-input textarea[readonly],
2105
2105
  .e-float-input.e-control-wrapper textarea[readonly] {
2106
- background: var(--color-sf-content-bg-color-alt2);
2106
+ background: var(--color-sf-content-bg-color);
2107
2107
  color: var(--color-sf-content-text-color);
2108
2108
  }
2109
2109
 
@@ -2112,7 +2112,7 @@ textarea.e-input,
2112
2112
  .e-float-input input[readonly] ~ span.e-input-group-icon,
2113
2113
  .e-float-input.e-control-wrapper input[readonly] ~ span.e-input-group-icon,
2114
2114
  .e-float-input.e-control-wrapper input[readonly] ~ span.e-clear-icon {
2115
- background: var(--color-sf-content-bg-color-alt2);
2115
+ background: var(--color-sf-content-bg-color);
2116
2116
  color: var(--color-sf-icon-color);
2117
2117
  }
2118
2118
 
@@ -2103,7 +2103,7 @@ textarea.e-input,
2103
2103
  .e-float-input.e-control-wrapper input[readonly],
2104
2104
  .e-float-input textarea[readonly],
2105
2105
  .e-float-input.e-control-wrapper textarea[readonly] {
2106
- background: var(--color-sf-content-bg-color-alt2);
2106
+ background: var(--color-sf-content-bg-color);
2107
2107
  color: var(--color-sf-content-text-color);
2108
2108
  }
2109
2109
 
@@ -2112,7 +2112,7 @@ textarea.e-input,
2112
2112
  .e-float-input input[readonly] ~ span.e-input-group-icon,
2113
2113
  .e-float-input.e-control-wrapper input[readonly] ~ span.e-input-group-icon,
2114
2114
  .e-float-input.e-control-wrapper input[readonly] ~ span.e-clear-icon {
2115
- background: var(--color-sf-content-bg-color-alt2);
2115
+ background: var(--color-sf-content-bg-color);
2116
2116
  color: var(--color-sf-icon-color);
2117
2117
  }
2118
2118
 
@@ -7217,16 +7217,16 @@ body.e-colorpicker-overflow {
7217
7217
  -webkit-text-stroke: 1px var(--color-sf-rating-selected-color);
7218
7218
  }
7219
7219
  .e-rating-container .e-rating-item-container.e-selected-value .e-rating-icon {
7220
- -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color:);
7220
+ -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color);
7221
7221
  }
7222
7222
  .e-rating-container .e-rating-item-list:hover .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container .e-rating-item-list:hover .e-rating-item-container.e-rating-intermediate .e-rating-icon {
7223
- background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-hover-color:)), to(transparent));
7224
- background: linear-gradient(to right, var(--color-sf-rating-selected-hover-color:) var(--rating-value), transparent var(--rating-value));
7223
+ background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-hover-color)), to(transparent));
7224
+ background: linear-gradient(to right, var(--color-sf-rating-selected-hover-color) var(--rating-value), transparent var(--rating-value));
7225
7225
  background-clip: text;
7226
7226
  /* stylelint-disable property-no-vendor-prefix */
7227
7227
  -webkit-background-clip: text;
7228
7228
  /* stylelint-enable property-no-vendor-prefix */
7229
- -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color:);
7229
+ -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color);
7230
7230
  }
7231
7231
  .e-rating-container .e-rating-item-list .e-rating-item-container.e-rating-selected:active .e-rating-icon, .e-rating-container .e-rating-item-list .e-rating-item-container.e-rating-intermediate:active .e-rating-icon {
7232
7232
  background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-color)), to(transparent));
@@ -7246,8 +7246,8 @@ body.e-colorpicker-overflow {
7246
7246
  /* stylelint-enable property-no-vendor-prefix */
7247
7247
  }
7248
7248
  .e-rating-container.e-rtl .e-rating-item-list:hover .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container.e-rtl .e-rating-item-list:hover .e-rating-item-container.e-rating-intermediate .e-rating-icon {
7249
- background: -webkit-gradient(linear, right top, left top, from(var(--color-sf-rating-selected-hover-color:)), to(transparent));
7250
- background: linear-gradient(to left, var(--color-sf-rating-selected-hover-color:) var(--rating-value), transparent var(--rating-value));
7249
+ background: -webkit-gradient(linear, right top, left top, from(var(--color-sf-rating-selected-hover-color)), to(transparent));
7250
+ background: linear-gradient(to left, var(--color-sf-rating-selected-hover-color) var(--rating-value), transparent var(--rating-value));
7251
7251
  background-clip: text;
7252
7252
  /* stylelint-disable property-no-vendor-prefix */
7253
7253
  -webkit-background-clip: text;
@@ -12180,16 +12180,16 @@ body.e-colorpicker-overflow {
12180
12180
  -webkit-text-stroke: 1px var(--color-sf-rating-selected-color);
12181
12181
  }
12182
12182
  .e-rating-container .e-rating-item-container.e-selected-value .e-rating-icon {
12183
- -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color:);
12183
+ -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color);
12184
12184
  }
12185
12185
  .e-rating-container .e-rating-item-list:hover .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container .e-rating-item-list:hover .e-rating-item-container.e-rating-intermediate .e-rating-icon {
12186
- background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-hover-color:)), to(transparent));
12187
- background: linear-gradient(to right, var(--color-sf-rating-selected-hover-color:) var(--rating-value), transparent var(--rating-value));
12186
+ background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-hover-color)), to(transparent));
12187
+ background: linear-gradient(to right, var(--color-sf-rating-selected-hover-color) var(--rating-value), transparent var(--rating-value));
12188
12188
  background-clip: text;
12189
12189
  /* stylelint-disable property-no-vendor-prefix */
12190
12190
  -webkit-background-clip: text;
12191
12191
  /* stylelint-enable property-no-vendor-prefix */
12192
- -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color:);
12192
+ -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color);
12193
12193
  }
12194
12194
  .e-rating-container .e-rating-item-list .e-rating-item-container.e-rating-selected:active .e-rating-icon, .e-rating-container .e-rating-item-list .e-rating-item-container.e-rating-intermediate:active .e-rating-icon {
12195
12195
  background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-color)), to(transparent));
@@ -12209,8 +12209,8 @@ body.e-colorpicker-overflow {
12209
12209
  /* stylelint-enable property-no-vendor-prefix */
12210
12210
  }
12211
12211
  .e-rating-container.e-rtl .e-rating-item-list:hover .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container.e-rtl .e-rating-item-list:hover .e-rating-item-container.e-rating-intermediate .e-rating-icon {
12212
- background: -webkit-gradient(linear, right top, left top, from(var(--color-sf-rating-selected-hover-color:)), to(transparent));
12213
- background: linear-gradient(to left, var(--color-sf-rating-selected-hover-color:) var(--rating-value), transparent var(--rating-value));
12212
+ background: -webkit-gradient(linear, right top, left top, from(var(--color-sf-rating-selected-hover-color)), to(transparent));
12213
+ background: linear-gradient(to left, var(--color-sf-rating-selected-hover-color) var(--rating-value), transparent var(--rating-value));
12214
12214
  background-clip: text;
12215
12215
  /* stylelint-disable property-no-vendor-prefix */
12216
12216
  -webkit-background-clip: text;
@@ -237,7 +237,7 @@ $float-label-disbale-font-color: $content-text-color-alt3 !default;
237
237
  $input-placeholder-color: $placeholder-text-color !default;
238
238
  $input-group-disabled-color: $icon-color-disabled !default;
239
239
  $input-group-hovered-color: $close-icon-color-hover !default;
240
- $input-readonly-bg-color: $content-bg-color-alt2 !default;
240
+ $input-readonly-bg-color: $content-bg-color !default;
241
241
  $input-readonly-color: $content-text-color !default;
242
242
  $input-icon-shadow: inset 0 3px 5px rgba(0, 0, 0, .125) !default;
243
243
  $input-border-shadow: 0 0 0 3px rgba($primary-light, .25) !default;
@@ -2093,7 +2093,7 @@ textarea.e-input,
2093
2093
  .e-float-input.e-control-wrapper input[readonly],
2094
2094
  .e-float-input textarea[readonly],
2095
2095
  .e-float-input.e-control-wrapper textarea[readonly] {
2096
- background: var(--color-sf-content-bg-color-alt2);
2096
+ background: var(--color-sf-content-bg-color);
2097
2097
  color: var(--color-sf-content-text-color);
2098
2098
  }
2099
2099
 
@@ -2102,7 +2102,7 @@ textarea.e-input,
2102
2102
  .e-float-input input[readonly] ~ span.e-input-group-icon,
2103
2103
  .e-float-input.e-control-wrapper input[readonly] ~ span.e-input-group-icon,
2104
2104
  .e-float-input.e-control-wrapper input[readonly] ~ span.e-clear-icon {
2105
- background: var(--color-sf-content-bg-color-alt2);
2105
+ background: var(--color-sf-content-bg-color);
2106
2106
  color: var(--color-sf-icon-color);
2107
2107
  }
2108
2108
 
@@ -200,16 +200,16 @@
200
200
  -webkit-text-stroke: 1px var(--color-sf-rating-selected-color);
201
201
  }
202
202
  .e-rating-container .e-rating-item-container.e-selected-value .e-rating-icon {
203
- -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color:);
203
+ -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color);
204
204
  }
205
205
  .e-rating-container .e-rating-item-list:hover .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container .e-rating-item-list:hover .e-rating-item-container.e-rating-intermediate .e-rating-icon {
206
- background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-hover-color:)), to(transparent));
207
- background: linear-gradient(to right, var(--color-sf-rating-selected-hover-color:) var(--rating-value), transparent var(--rating-value));
206
+ background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-hover-color)), to(transparent));
207
+ background: linear-gradient(to right, var(--color-sf-rating-selected-hover-color) var(--rating-value), transparent var(--rating-value));
208
208
  background-clip: text;
209
209
  /* stylelint-disable property-no-vendor-prefix */
210
210
  -webkit-background-clip: text;
211
211
  /* stylelint-enable property-no-vendor-prefix */
212
- -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color:);
212
+ -webkit-text-stroke: 1px var(--color-sf-rating-selected-hover-color);
213
213
  }
214
214
  .e-rating-container .e-rating-item-list .e-rating-item-container.e-rating-selected:active .e-rating-icon, .e-rating-container .e-rating-item-list .e-rating-item-container.e-rating-intermediate:active .e-rating-icon {
215
215
  background: -webkit-gradient(linear, left top, right top, from(var(--color-sf-rating-selected-color)), to(transparent));
@@ -229,8 +229,8 @@
229
229
  /* stylelint-enable property-no-vendor-prefix */
230
230
  }
231
231
  .e-rating-container.e-rtl .e-rating-item-list:hover .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container.e-rtl .e-rating-item-list:hover .e-rating-item-container.e-rating-intermediate .e-rating-icon {
232
- background: -webkit-gradient(linear, right top, left top, from(var(--color-sf-rating-selected-hover-color:)), to(transparent));
233
- background: linear-gradient(to left, var(--color-sf-rating-selected-hover-color:) var(--rating-value), transparent var(--rating-value));
232
+ background: -webkit-gradient(linear, right top, left top, from(var(--color-sf-rating-selected-hover-color)), to(transparent));
233
+ background: linear-gradient(to left, var(--color-sf-rating-selected-hover-color) var(--rating-value), transparent var(--rating-value));
234
234
  background-clip: text;
235
235
  /* stylelint-disable property-no-vendor-prefix */
236
236
  -webkit-background-clip: text;
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
+ }