@syncfusion/ej2-inputs 26.1.40 → 26.1.41
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/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +12 -6
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +12 -6
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/form-validator/form-validator.js +2 -2
- package/src/input/input.js +2 -2
- package/src/uploader/uploader.js +8 -2
|
@@ -143,7 +143,7 @@ var Input;
|
|
|
143
143
|
function checkInputValue(floatLabelType, inputElement) {
|
|
144
144
|
const inputValue = inputElement.value;
|
|
145
145
|
const inputParent = inputElement.parentElement;
|
|
146
|
-
const grandParent = inputParent.parentElement;
|
|
146
|
+
const grandParent = inputParent && inputParent.parentElement;
|
|
147
147
|
if (inputValue !== '' && !isNullOrUndefined(inputValue)) {
|
|
148
148
|
if (inputParent && inputParent.classList.contains('e-input-group')) {
|
|
149
149
|
inputParent.classList.add('e-valid-input');
|
|
@@ -564,7 +564,7 @@ var Input;
|
|
|
564
564
|
return;
|
|
565
565
|
}
|
|
566
566
|
const elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'), 10);
|
|
567
|
-
if (!isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
567
|
+
if (!isNullOrUndefined(container) && !isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
568
568
|
if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {
|
|
569
569
|
container.getElementsByClassName('e-float-text-content')[0].classList.remove('e-float-text-overflow');
|
|
570
570
|
}
|
|
@@ -7983,7 +7983,7 @@ FormValidator.checkValidator = {
|
|
|
7983
7983
|
const globalize = new Internationalization;
|
|
7984
7984
|
const dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
7985
7985
|
const dateValue = globalize.parseDate(option.value, dateOptions);
|
|
7986
|
-
const maxValue = globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions);
|
|
7986
|
+
const maxValue = (typeof (option.param) === 'string') ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;
|
|
7987
7987
|
return new Date(dateValue).getTime() <= new Date(maxValue).getTime();
|
|
7988
7988
|
}
|
|
7989
7989
|
else {
|
|
@@ -8005,7 +8005,7 @@ FormValidator.checkValidator = {
|
|
|
8005
8005
|
const globalize = new Internationalization;
|
|
8006
8006
|
const dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
8007
8007
|
const dateValue = globalize.parseDate(option.value, dateOptions);
|
|
8008
|
-
const minValue = globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions);
|
|
8008
|
+
const minValue = (typeof (option.param) === 'string') ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;
|
|
8009
8009
|
return new Date(dateValue).getTime() >= new Date(minValue).getTime();
|
|
8010
8010
|
}
|
|
8011
8011
|
else {
|
|
@@ -8488,9 +8488,9 @@ let Uploader = class Uploader extends Component {
|
|
|
8488
8488
|
this.element.setAttribute('tabindex', '-1');
|
|
8489
8489
|
this.actionButtons = this.createElement('div', { className: ACTION_BUTTONS });
|
|
8490
8490
|
this.uploadButton = this.createElement('button', { className: UPLOAD_BUTTONS,
|
|
8491
|
-
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
|
|
8491
|
+
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex, 'aria-label': this.localizedTexts('Upload') } });
|
|
8492
8492
|
this.clearButton = this.createElement('button', { className: CLEAR_BUTTONS,
|
|
8493
|
-
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
|
|
8493
|
+
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex, 'aria-label': this.localizedTexts('Clear') } });
|
|
8494
8494
|
this.actionButtons.appendChild(this.clearButton);
|
|
8495
8495
|
this.actionButtons.appendChild(this.uploadButton);
|
|
8496
8496
|
this.renderButtonTemplates();
|
|
@@ -9002,6 +9002,9 @@ let Uploader = class Uploader extends Component {
|
|
|
9002
9002
|
else if (!closest(args.target, '.' + SPINNER_PANE)) {
|
|
9003
9003
|
this.remove(fileData, false, false, true, args);
|
|
9004
9004
|
}
|
|
9005
|
+
if (this.isForm && liElement && liElement.classList.contains(INVALID_FILE)) {
|
|
9006
|
+
this.element.value = '';
|
|
9007
|
+
}
|
|
9005
9008
|
this.checkActionButtonStatus();
|
|
9006
9009
|
}
|
|
9007
9010
|
removeFilesData(file, customTemplate) {
|
|
@@ -9830,6 +9833,7 @@ let Uploader = class Uploader extends Component {
|
|
|
9830
9833
|
}
|
|
9831
9834
|
if (!iconElement.classList.contains(DELETE_ICON)) {
|
|
9832
9835
|
iconElement.classList.add(REMOVE_ICON);
|
|
9836
|
+
iconElement.setAttribute('aria-label', this.localizedTexts('remove'));
|
|
9833
9837
|
}
|
|
9834
9838
|
const index = fileData.indexOf(listItem);
|
|
9835
9839
|
const eventArgs = {
|
|
@@ -10083,6 +10087,7 @@ let Uploader = class Uploader extends Component {
|
|
|
10083
10087
|
this.pauseButton = this.createElement('span', { className: 'e-icons e-file-reload-btn', attrs: { 'tabindex': this.btnTabIndex } });
|
|
10084
10088
|
deleteIcon.parentElement.insertBefore(this.pauseButton, deleteIcon);
|
|
10085
10089
|
this.pauseButton.setAttribute('title', this.localizedTexts('retry'));
|
|
10090
|
+
this.pauseButton.setAttribute('aria-label', this.localizedTexts('retry'));
|
|
10086
10091
|
const retryElement = liElement.querySelector('.' + RETRY_ICON);
|
|
10087
10092
|
/* istanbul ignore next */
|
|
10088
10093
|
retryElement.addEventListener('click', (e) => {
|
|
@@ -10122,6 +10127,7 @@ let Uploader = class Uploader extends Component {
|
|
|
10122
10127
|
if (!isNullOrUndefined(iconEle)) {
|
|
10123
10128
|
iconEle.classList.add(DELETE_ICON);
|
|
10124
10129
|
iconEle.setAttribute('title', this.localizedTexts('delete'));
|
|
10130
|
+
iconEle.setAttribute('aria-label', this.localizedTexts('delete'));
|
|
10125
10131
|
iconEle.classList.remove(ABORT_ICON);
|
|
10126
10132
|
iconEle.classList.remove(UPLOAD_INPROGRESS);
|
|
10127
10133
|
}
|