@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
|
var inputValue = inputElement.value;
|
|
145
145
|
var inputParent = inputElement.parentElement;
|
|
146
|
-
var grandParent = inputParent.parentElement;
|
|
146
|
+
var 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');
|
|
@@ -567,7 +567,7 @@ var Input;
|
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
569
|
var elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'), 10);
|
|
570
|
-
if (!isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
570
|
+
if (!isNullOrUndefined(container) && !isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
571
571
|
if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {
|
|
572
572
|
container.getElementsByClassName('e-float-text-content')[0].classList.remove('e-float-text-overflow');
|
|
573
573
|
}
|
|
@@ -8122,7 +8122,7 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
|
|
|
8122
8122
|
var globalize = new Internationalization;
|
|
8123
8123
|
var dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
8124
8124
|
var dateValue = globalize.parseDate(option.value, dateOptions);
|
|
8125
|
-
var maxValue = globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions);
|
|
8125
|
+
var maxValue = (typeof (option.param) === 'string') ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;
|
|
8126
8126
|
return new Date(dateValue).getTime() <= new Date(maxValue).getTime();
|
|
8127
8127
|
}
|
|
8128
8128
|
else {
|
|
@@ -8144,7 +8144,7 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
|
|
|
8144
8144
|
var globalize = new Internationalization;
|
|
8145
8145
|
var dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
8146
8146
|
var dateValue = globalize.parseDate(option.value, dateOptions);
|
|
8147
|
-
var minValue = globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions);
|
|
8147
|
+
var minValue = (typeof (option.param) === 'string') ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;
|
|
8148
8148
|
return new Date(dateValue).getTime() >= new Date(minValue).getTime();
|
|
8149
8149
|
}
|
|
8150
8150
|
else {
|
|
@@ -8661,9 +8661,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
8661
8661
|
this.element.setAttribute('tabindex', '-1');
|
|
8662
8662
|
this.actionButtons = this.createElement('div', { className: ACTION_BUTTONS });
|
|
8663
8663
|
this.uploadButton = this.createElement('button', { className: UPLOAD_BUTTONS,
|
|
8664
|
-
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
|
|
8664
|
+
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex, 'aria-label': this.localizedTexts('Upload') } });
|
|
8665
8665
|
this.clearButton = this.createElement('button', { className: CLEAR_BUTTONS,
|
|
8666
|
-
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
|
|
8666
|
+
attrs: { 'type': 'button', 'tabindex': this.btnTabIndex, 'aria-label': this.localizedTexts('Clear') } });
|
|
8667
8667
|
this.actionButtons.appendChild(this.clearButton);
|
|
8668
8668
|
this.actionButtons.appendChild(this.uploadButton);
|
|
8669
8669
|
this.renderButtonTemplates();
|
|
@@ -9178,6 +9178,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
9178
9178
|
else if (!closest(args.target, '.' + SPINNER_PANE)) {
|
|
9179
9179
|
this.remove(fileData, false, false, true, args);
|
|
9180
9180
|
}
|
|
9181
|
+
if (this.isForm && liElement && liElement.classList.contains(INVALID_FILE)) {
|
|
9182
|
+
this.element.value = '';
|
|
9183
|
+
}
|
|
9181
9184
|
this.checkActionButtonStatus();
|
|
9182
9185
|
};
|
|
9183
9186
|
Uploader.prototype.removeFilesData = function (file, customTemplate) {
|
|
@@ -10032,6 +10035,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
10032
10035
|
}
|
|
10033
10036
|
if (!iconElement.classList.contains(DELETE_ICON)) {
|
|
10034
10037
|
iconElement.classList.add(REMOVE_ICON);
|
|
10038
|
+
iconElement.setAttribute('aria-label', this.localizedTexts('remove'));
|
|
10035
10039
|
}
|
|
10036
10040
|
var index = fileData.indexOf(listItem);
|
|
10037
10041
|
var eventArgs = {
|
|
@@ -10289,6 +10293,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
10289
10293
|
this.pauseButton = this.createElement('span', { className: 'e-icons e-file-reload-btn', attrs: { 'tabindex': this.btnTabIndex } });
|
|
10290
10294
|
deleteIcon.parentElement.insertBefore(this.pauseButton, deleteIcon);
|
|
10291
10295
|
this.pauseButton.setAttribute('title', this.localizedTexts('retry'));
|
|
10296
|
+
this.pauseButton.setAttribute('aria-label', this.localizedTexts('retry'));
|
|
10292
10297
|
var retryElement = liElement.querySelector('.' + RETRY_ICON);
|
|
10293
10298
|
/* istanbul ignore next */
|
|
10294
10299
|
retryElement.addEventListener('click', function (e) {
|
|
@@ -10328,6 +10333,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
10328
10333
|
if (!isNullOrUndefined(iconEle)) {
|
|
10329
10334
|
iconEle.classList.add(DELETE_ICON);
|
|
10330
10335
|
iconEle.setAttribute('title', this.localizedTexts('delete'));
|
|
10336
|
+
iconEle.setAttribute('aria-label', this.localizedTexts('delete'));
|
|
10331
10337
|
iconEle.classList.remove(ABORT_ICON);
|
|
10332
10338
|
iconEle.classList.remove(UPLOAD_INPROGRESS);
|
|
10333
10339
|
}
|