@syncfusion/ej2-inputs 28.2.3 → 28.2.9

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 : 28.2.3
3
+ * version : 28.2.9
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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-inputs@*",
3
- "_id": "@syncfusion/ej2-inputs@28.1.41",
3
+ "_id": "@syncfusion/ej2-inputs@28.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-4k74kUvq3YKXX7DLthlC5VsIEEiKav4CLorKdyy3sbMkbGfy3kSt6UjPmDZfEsMJliSNI1YDjjKKF9/cWzxpvw==",
5
+ "_integrity": "sha512-6t9hsOCCSR+/VsKAtJQOsCuICzwbyNUbBfHN5I8Q61W3UoZ+NEu1eVqxRfe2qqKKQz+1+fu4WNXGCfzTYpcCMA==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -40,8 +40,8 @@
40
40
  "/@syncfusion/ej2-schedule",
41
41
  "/@syncfusion/ej2-vue-inputs"
42
42
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.1.41.tgz",
44
- "_shasum": "0dd1806a0796c2c9519bf0c33f011c6d18e95a8e",
43
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.2.3.tgz",
44
+ "_shasum": "a41666ff5f2a4c4a1f7b35a7f4fae8739630aefe",
45
45
  "_spec": "@syncfusion/ej2-inputs@*",
46
46
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
47
47
  "author": {
@@ -49,9 +49,9 @@
49
49
  },
50
50
  "bundleDependencies": false,
51
51
  "dependencies": {
52
- "@syncfusion/ej2-base": "~28.2.3",
53
- "@syncfusion/ej2-buttons": "~28.2.3",
54
- "@syncfusion/ej2-popups": "~28.2.3",
52
+ "@syncfusion/ej2-base": "~28.2.9",
53
+ "@syncfusion/ej2-buttons": "~28.2.7",
54
+ "@syncfusion/ej2-popups": "~28.2.9",
55
55
  "@syncfusion/ej2-splitbuttons": "~28.2.3"
56
56
  },
57
57
  "deprecated": false,
@@ -120,7 +120,7 @@
120
120
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
121
121
  },
122
122
  "typings": "index.d.ts",
123
- "version": "28.2.3",
123
+ "version": "28.2.9",
124
124
  "sideEffects": false,
125
125
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
126
126
  }
@@ -1036,6 +1036,7 @@ export declare class Uploader extends Component<HTMLInputElement> implements INo
1036
1036
  private clearData;
1037
1037
  private updateSortedFileList;
1038
1038
  private isBlank;
1039
+ private checkGenericExtension;
1039
1040
  private checkExtension;
1040
1041
  private validatedFileSize;
1041
1042
  private isPreLoadFile;
@@ -974,6 +974,13 @@ var Uploader = /** @class */ (function (_super) {
974
974
  this.element.value = '';
975
975
  }
976
976
  this.checkActionButtonStatus();
977
+ if (this.actionButtons && this.clearButton && this.uploadWrapper) {
978
+ var progressBarElements = this.uploadWrapper.querySelectorAll('.e-upload-progress-bar.e-upload-progress:not(.e-upload-success):not(.e-upload-fails)');
979
+ if (progressBarElements.length === 1 && selectedElement.contains(progressBarElements[0])
980
+ && this.clearButton.hasAttribute('disabled')) {
981
+ this.clearButton.removeAttribute('disabled');
982
+ }
983
+ }
977
984
  };
978
985
  Uploader.prototype.removeFilesData = function (file, customTemplate) {
979
986
  var index;
@@ -1288,7 +1295,7 @@ var Uploader = /** @class */ (function (_super) {
1288
1295
  this.updateInitialFileDetails(args, targetFiles, file, i, fileData, directory, paste);
1289
1296
  }
1290
1297
  eventArgs.filesData = fileData;
1291
- if (this.allowedExtensions.indexOf('*') > -1) {
1298
+ if (!isNullOrUndefined(this.allowedExtensions) && this.allowedExtensions.indexOf('*') > -1) {
1292
1299
  this.allTypes = true;
1293
1300
  }
1294
1301
  if (this.enableHtmlSanitizer) {
@@ -1454,11 +1461,34 @@ var Uploader = /** @class */ (function (_super) {
1454
1461
  Uploader.prototype.isBlank = function (str) {
1455
1462
  return (!str || /^\s*$/.test(str));
1456
1463
  };
1464
+ Uploader.prototype.checkGenericExtension = function (genericType, fileExtension) {
1465
+ var validExtensions = [];
1466
+ switch (genericType.toLowerCase()) {
1467
+ case 'image/*':
1468
+ validExtensions.push('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg', 'webp', 'heic');
1469
+ break;
1470
+ case 'audio/*':
1471
+ validExtensions.push('mp3', 'wav', 'aac', 'flac', 'ogg', 'm4a');
1472
+ break;
1473
+ case 'video/*':
1474
+ validExtensions.push('mp4', 'mov', 'avi', 'mkv', 'flv', 'wmv', 'webm', 'mpeg');
1475
+ break;
1476
+ case 'application/*':
1477
+ validExtensions.push('doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'zip', 'rar', '7z', 'tar', 'pdf');
1478
+ break;
1479
+ case 'text/*':
1480
+ validExtensions.push('txt', 'csv', 'html', 'css', 'js', 'json', 'xml', 'md');
1481
+ break;
1482
+ default:
1483
+ break;
1484
+ }
1485
+ return validExtensions.includes(fileExtension.toLowerCase());
1486
+ };
1457
1487
  Uploader.prototype.checkExtension = function (files) {
1458
1488
  var dropFiles = files;
1459
1489
  if (!this.isBlank(this.allowedExtensions)) {
1460
1490
  var allowedExtensions = [];
1461
- var extensions = this.allowedExtensions.split(',');
1491
+ var extensions = !isNullOrUndefined(allowedExtensions) ? this.allowedExtensions.split(',') : [''];
1462
1492
  for (var _i = 0, extensions_1 = extensions; _i < extensions_1.length; _i++) {
1463
1493
  var extension = extensions_1[_i];
1464
1494
  allowedExtensions.push(extension.trim().toLocaleLowerCase());
@@ -1466,7 +1496,14 @@ var Uploader = /** @class */ (function (_super) {
1466
1496
  for (var i = 0; i < files.length; i++) {
1467
1497
  var checkFileType = files[i].type.indexOf('.') !== -1 ?
1468
1498
  files[i].type.replace('.', '') : files[i].type;
1469
- if (allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1) {
1499
+ if (allowedExtensions[0].indexOf('/*') !== -1) {
1500
+ var isValidExtension = this.checkGenericExtension(allowedExtensions[0], checkFileType);
1501
+ if (!isValidExtension) {
1502
+ files[i].status = this.localizedTexts('invalidFileType');
1503
+ files[i].statusCode = '0';
1504
+ }
1505
+ }
1506
+ else if ((allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1)) {
1470
1507
  files[i].status = this.localizedTexts('invalidFileType');
1471
1508
  files[i].statusCode = '0';
1472
1509
  }
@@ -2253,6 +2290,15 @@ var Uploader = /** @class */ (function (_super) {
2253
2290
  var progressBar = li.querySelector('.' + PROGRESSBAR);
2254
2291
  if (!isNullOrUndefined(progressBar)) {
2255
2292
  progressBar.classList.add(className);
2293
+ if (this.actionButtons && this.clearButton && this.uploadWrapper) {
2294
+ if (className === 'e-upload-progress' && !this.clearButton.hasAttribute('disabled')) {
2295
+ this.clearButton.setAttribute('disabled', 'disabled');
2296
+ }
2297
+ else if ((className === 'e-upload-success' || className === 'e-upload-fails') && this.uploadWrapper.querySelectorAll('.e-upload-progress-bar.e-upload-progress:not(.e-upload-success):not(.e-upload-fails)').length === 0 &&
2298
+ this.clearButton.hasAttribute('disabled')) {
2299
+ this.clearButton.removeAttribute('disabled');
2300
+ }
2301
+ }
2256
2302
  }
2257
2303
  };
2258
2304
  Uploader.prototype.removeProgressbar = function (li, callType) {
@@ -5711,4 +5711,27 @@
5711
5711
  border-bottom: transparent;
5712
5712
  }
5713
5713
  }
5714
+
5715
+ @if $input-skin-name == 'material' or $input-skin-name == 'Material3' {
5716
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
5717
+ padding: 0;
5718
+
5719
+ input {
5720
+ padding: 14px 2px 5px 12px;
5721
+ }
5722
+
5723
+ label.e-float-text {
5724
+ padding-left: 12px;
5725
+ }
5726
+
5727
+ .e-input-in-wrap .e-input-group-icon {
5728
+ @if $input-skin-name == 'material' {
5729
+ padding-right: 17px;
5730
+ }
5731
+ @else {
5732
+ margin-right: 10px;
5733
+ }
5734
+ }
5735
+ }
5736
+ }
5714
5737
  }
@@ -4603,6 +4603,19 @@ textarea.e-outline,
4603
4603
  border-bottom: transparent;
4604
4604
  }
4605
4605
 
4606
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4607
+ padding: 0;
4608
+ }
4609
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4610
+ padding: 14px 2px 5px 12px;
4611
+ }
4612
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4613
+ padding-left: 12px;
4614
+ }
4615
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4616
+ padding-right: 17px;
4617
+ }
4618
+
4606
4619
  /*! input theme */
4607
4620
  input.e-input,
4608
4621
  .e-input-group input.e-input,
@@ -4623,6 +4623,19 @@ textarea.e-outline,
4623
4623
  border-bottom: transparent;
4624
4624
  }
4625
4625
 
4626
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4627
+ padding: 0;
4628
+ }
4629
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4630
+ padding: 14px 2px 5px 12px;
4631
+ }
4632
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4633
+ padding-left: 12px;
4634
+ }
4635
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4636
+ padding-right: 17px;
4637
+ }
4638
+
4626
4639
  /*! input theme */
4627
4640
  input.e-input,
4628
4641
  .e-input-group input.e-input,
@@ -4487,6 +4487,19 @@ textarea.e-outline,
4487
4487
  border-width: 0 0 1px 0;
4488
4488
  }
4489
4489
 
4490
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4491
+ padding: 0;
4492
+ }
4493
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4494
+ padding: 14px 2px 5px 12px;
4495
+ }
4496
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4497
+ padding-left: 12px;
4498
+ }
4499
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4500
+ margin-right: 10px;
4501
+ }
4502
+
4490
4503
  /*! input theme */
4491
4504
  input.e-input,
4492
4505
  .e-input-group input.e-input,
@@ -4489,6 +4489,19 @@ textarea.e-outline,
4489
4489
  border-width: 0 0 1px 0;
4490
4490
  }
4491
4491
 
4492
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4493
+ padding: 0;
4494
+ }
4495
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4496
+ padding: 14px 2px 5px 12px;
4497
+ }
4498
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4499
+ padding-left: 12px;
4500
+ }
4501
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4502
+ margin-right: 10px;
4503
+ }
4504
+
4492
4505
  /*! input theme */
4493
4506
  input.e-input,
4494
4507
  .e-input-group input.e-input,
@@ -4613,6 +4613,19 @@ textarea.e-outline,
4613
4613
  border-bottom: transparent;
4614
4614
  }
4615
4615
 
4616
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4617
+ padding: 0;
4618
+ }
4619
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4620
+ padding: 14px 2px 5px 12px;
4621
+ }
4622
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4623
+ padding-left: 12px;
4624
+ }
4625
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4626
+ padding-right: 17px;
4627
+ }
4628
+
4616
4629
  /*! input theme */
4617
4630
  input.e-input,
4618
4631
  .e-input-group input.e-input,
@@ -4613,6 +4613,19 @@ textarea.e-outline,
4613
4613
  border-bottom: transparent;
4614
4614
  }
4615
4615
 
4616
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4617
+ padding: 0;
4618
+ }
4619
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4620
+ padding: 14px 2px 5px 12px;
4621
+ }
4622
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4623
+ padding-left: 12px;
4624
+ }
4625
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4626
+ padding-right: 17px;
4627
+ }
4628
+
4616
4629
  /*! input theme */
4617
4630
  input.e-input,
4618
4631
  .e-input-group input.e-input,
@@ -4633,6 +4633,19 @@ textarea.e-outline,
4633
4633
  border-bottom: transparent;
4634
4634
  }
4635
4635
 
4636
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4637
+ padding: 0;
4638
+ }
4639
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4640
+ padding: 14px 2px 5px 12px;
4641
+ }
4642
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4643
+ padding-left: 12px;
4644
+ }
4645
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4646
+ padding-right: 17px;
4647
+ }
4648
+
4636
4649
  /*! input theme */
4637
4650
  input.e-input,
4638
4651
  .e-input-group input.e-input,
@@ -4633,6 +4633,19 @@ textarea.e-outline,
4633
4633
  border-bottom: transparent;
4634
4634
  }
4635
4635
 
4636
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4637
+ padding: 0;
4638
+ }
4639
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4640
+ padding: 14px 2px 5px 12px;
4641
+ }
4642
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4643
+ padding-left: 12px;
4644
+ }
4645
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4646
+ padding-right: 17px;
4647
+ }
4648
+
4636
4649
  /*! input theme */
4637
4650
  input.e-input,
4638
4651
  .e-input-group input.e-input,
@@ -4497,6 +4497,19 @@ textarea.e-outline,
4497
4497
  border-width: 0 0 1px 0;
4498
4498
  }
4499
4499
 
4500
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4501
+ padding: 0;
4502
+ }
4503
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4504
+ padding: 14px 2px 5px 12px;
4505
+ }
4506
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4507
+ padding-left: 12px;
4508
+ }
4509
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4510
+ margin-right: 10px;
4511
+ }
4512
+
4500
4513
  /*! input theme */
4501
4514
  input.e-input,
4502
4515
  .e-input-group input.e-input,
@@ -4497,6 +4497,19 @@ textarea.e-outline,
4497
4497
  border-width: 0 0 1px 0;
4498
4498
  }
4499
4499
 
4500
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4501
+ padding: 0;
4502
+ }
4503
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4504
+ padding: 14px 2px 5px 12px;
4505
+ }
4506
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4507
+ padding-left: 12px;
4508
+ }
4509
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4510
+ margin-right: 10px;
4511
+ }
4512
+
4500
4513
  /*! input theme */
4501
4514
  input.e-input,
4502
4515
  .e-input-group input.e-input,
@@ -4499,6 +4499,19 @@ textarea.e-outline,
4499
4499
  border-width: 0 0 1px 0;
4500
4500
  }
4501
4501
 
4502
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4503
+ padding: 0;
4504
+ }
4505
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4506
+ padding: 14px 2px 5px 12px;
4507
+ }
4508
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4509
+ padding-left: 12px;
4510
+ }
4511
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4512
+ margin-right: 10px;
4513
+ }
4514
+
4502
4515
  /*! input theme */
4503
4516
  input.e-input,
4504
4517
  .e-input-group input.e-input,
@@ -4499,6 +4499,19 @@ textarea.e-outline,
4499
4499
  border-width: 0 0 1px 0;
4500
4500
  }
4501
4501
 
4502
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) {
4503
+ padding: 0;
4504
+ }
4505
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) input {
4506
+ padding: 14px 2px 5px 12px;
4507
+ }
4508
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) label.e-float-text {
4509
+ padding-left: 12px;
4510
+ }
4511
+ .e-filled.e-float-input.e-control-container.e-append:not(.e-prepend) .e-input-in-wrap .e-input-group-icon {
4512
+ margin-right: 10px;
4513
+ }
4514
+
4502
4515
  /*! input theme */
4503
4516
  input.e-input,
4504
4517
  .e-input-group input.e-input,