@syncfusion/ej2-inputs 20.3.57 → 20.4.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.
- package/.eslintrc.json +16 -1
- package/CHANGELOG.md +8 -15
- 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 +884 -63
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +908 -63
- 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 +11 -10
- package/rating.d.ts +4 -0
- package/rating.js +4 -0
- package/src/color-picker/color-picker-model.d.ts +4 -4
- package/src/color-picker/color-picker.d.ts +4 -4
- package/src/color-picker/color-picker.js +4 -2
- package/src/common/signature-base.d.ts +0 -1
- package/src/common/signature-base.js +3 -8
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/input/input.d.ts +1 -0
- package/src/input/input.js +5 -1
- package/src/maskedtextbox/base/mask-base.d.ts +1 -0
- package/src/maskedtextbox/base/mask-base.js +20 -13
- package/src/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +1 -0
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +1 -0
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +16 -7
- package/src/numerictextbox/numerictextbox.js +21 -9
- package/src/rating/index.d.ts +5 -0
- package/src/rating/index.js +4 -0
- package/src/rating/rating-model.d.ts +185 -0
- package/src/rating/rating.d.ts +344 -0
- package/src/rating/rating.js +783 -0
- package/src/slider/slider.js +4 -2
- package/src/textbox/textbox.js +10 -9
- package/src/uploader/uploader-model.d.ts +10 -1
- package/src/uploader/uploader.d.ts +8 -0
- package/src/uploader/uploader.js +41 -12
- package/styles/bootstrap-dark.css +265 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +265 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +268 -2
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +266 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +266 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/color-picker/_theme.scss +2 -2
- package/styles/color-picker/bootstrap4.css +2 -2
- package/styles/fabric-dark.css +265 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +265 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +265 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +265 -0
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +265 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +265 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +265 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +265 -0
- package/styles/material.scss +1 -0
- package/styles/rating/_all.scss +2 -0
- package/styles/rating/_bootstrap-dark-definition.scss +45 -0
- package/styles/rating/_bootstrap-definition.scss +45 -0
- package/styles/rating/_bootstrap4-definition.scss +45 -0
- package/styles/rating/_bootstrap5-dark-definition.scss +1 -0
- package/styles/rating/_bootstrap5-definition.scss +45 -0
- package/styles/rating/_fabric-dark-definition.scss +45 -0
- package/styles/rating/_fabric-definition.scss +45 -0
- package/styles/rating/_fluent-dark-definition.scss +1 -0
- package/styles/rating/_fluent-definition.scss +45 -0
- package/styles/rating/_fusionnew-definition.scss +45 -0
- package/styles/rating/_highcontrast-definition.scss +45 -0
- package/styles/rating/_highcontrast-light-definition.scss +45 -0
- package/styles/rating/_layout.scss +204 -0
- package/styles/rating/_material-dark-definition.scss +45 -0
- package/styles/rating/_material-definition.scss +45 -0
- package/styles/rating/_material3-definition.scss +45 -0
- package/styles/rating/_tailwind-dark-definition.scss +1 -0
- package/styles/rating/_tailwind-definition.scss +45 -0
- package/styles/rating/_theme.scss +158 -0
- package/styles/rating/bootstrap-dark.css +264 -0
- package/styles/rating/bootstrap-dark.scss +4 -0
- package/styles/rating/bootstrap.css +264 -0
- package/styles/rating/bootstrap.scss +4 -0
- package/styles/rating/bootstrap4.css +265 -0
- package/styles/rating/bootstrap4.scss +4 -0
- package/styles/rating/bootstrap5-dark.css +265 -0
- package/styles/rating/bootstrap5-dark.scss +4 -0
- package/styles/rating/bootstrap5.css +265 -0
- package/styles/rating/bootstrap5.scss +4 -0
- package/styles/rating/fabric-dark.css +264 -0
- package/styles/rating/fabric-dark.scss +4 -0
- package/styles/rating/fabric.css +264 -0
- package/styles/rating/fabric.scss +4 -0
- package/styles/rating/fluent-dark.css +264 -0
- package/styles/rating/fluent-dark.scss +4 -0
- package/styles/rating/fluent.css +264 -0
- package/styles/rating/fluent.scss +4 -0
- package/styles/rating/highcontrast-light.css +264 -0
- package/styles/rating/highcontrast-light.scss +4 -0
- package/styles/rating/highcontrast.css +264 -0
- package/styles/rating/highcontrast.scss +4 -0
- package/styles/rating/material-dark.css +265 -0
- package/styles/rating/material-dark.scss +4 -0
- package/styles/rating/material.css +265 -0
- package/styles/rating/material.scss +4 -0
- package/styles/rating/tailwind-dark.css +270 -0
- package/styles/rating/tailwind-dark.scss +4 -0
- package/styles/rating/tailwind.css +270 -0
- package/styles/rating/tailwind.scss +4 -0
- package/styles/tailwind-dark.css +271 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +271 -0
- package/styles/tailwind.scss +1 -0
package/src/slider/slider.js
CHANGED
|
@@ -523,7 +523,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
523
523
|
Slider.prototype.createSecondHandle = function () {
|
|
524
524
|
this.secondHandle = this.createElement('div', {
|
|
525
525
|
attrs: {
|
|
526
|
-
class: classNames.sliderHandle, 'role': 'slider', tabIndex: '0'
|
|
526
|
+
class: classNames.sliderHandle, 'role': 'slider', tabIndex: '0', 'aria-label': 'slider'
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
this.secondHandle.classList.add(classNames.sliderSecondHandle);
|
|
@@ -532,7 +532,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
532
532
|
Slider.prototype.createFirstHandle = function () {
|
|
533
533
|
this.firstHandle = this.createElement('div', {
|
|
534
534
|
attrs: {
|
|
535
|
-
class: classNames.sliderHandle, 'role': 'slider', tabIndex: '0'
|
|
535
|
+
class: classNames.sliderHandle, 'role': 'slider', tabIndex: '0', 'aria-label': 'slider'
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
538
|
this.firstHandle.classList.add(classNames.sliderFirstHandle);
|
|
@@ -962,6 +962,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
962
962
|
this.sliderContainer.classList.add(classNames.materialSlider);
|
|
963
963
|
this.tooltipValue();
|
|
964
964
|
this.tooltipObj.animation.close.effect = 'None';
|
|
965
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input
|
|
965
966
|
this.tooltipObj.open(this.firstHandle);
|
|
966
967
|
}
|
|
967
968
|
};
|
|
@@ -2295,6 +2296,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2295
2296
|
Slider.prototype.openTooltip = function (target) {
|
|
2296
2297
|
if (this.tooltip.isVisible && this.tooltipObj && !this.isMaterialTooltip) {
|
|
2297
2298
|
this.tooltipValue();
|
|
2299
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input
|
|
2298
2300
|
this.tooltipObj.open(target);
|
|
2299
2301
|
this.tooltipTarget = target;
|
|
2300
2302
|
}
|
package/src/textbox/textbox.js
CHANGED
|
@@ -347,19 +347,19 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
347
347
|
var key = _a[_i];
|
|
348
348
|
if (containerAttr.indexOf(key) > -1) {
|
|
349
349
|
if (key === 'class') {
|
|
350
|
-
var updatedClassValues = this.getInputValidClassList(this.htmlAttributes[key]);
|
|
350
|
+
var updatedClassValues = this.getInputValidClassList(this.htmlAttributes["" + key]);
|
|
351
351
|
if (updatedClassValues !== '') {
|
|
352
352
|
addClass([this.textboxWrapper.container], updatedClassValues.split(' '));
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
else if (key === 'style') {
|
|
356
356
|
var setStyle = this.textboxWrapper.container.getAttribute(key);
|
|
357
|
-
setStyle = !isNullOrUndefined(setStyle) ? (setStyle + this.htmlAttributes[key]) :
|
|
358
|
-
this.htmlAttributes[key];
|
|
357
|
+
setStyle = !isNullOrUndefined(setStyle) ? (setStyle + this.htmlAttributes["" + key]) :
|
|
358
|
+
this.htmlAttributes["" + key];
|
|
359
359
|
this.textboxWrapper.container.setAttribute(key, setStyle);
|
|
360
360
|
}
|
|
361
361
|
else {
|
|
362
|
-
this.textboxWrapper.container.setAttribute(key, this.htmlAttributes[key]);
|
|
362
|
+
this.textboxWrapper.container.setAttribute(key, this.htmlAttributes["" + key]);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -370,7 +370,7 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
370
370
|
for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {
|
|
371
371
|
var key = _a[_i];
|
|
372
372
|
if (containerAttr.indexOf(key) < 0) {
|
|
373
|
-
this.element.setAttribute(key, this.htmlAttributes[key]);
|
|
373
|
+
this.element.setAttribute(key, this.htmlAttributes["" + key]);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
|
@@ -576,6 +576,7 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
576
576
|
detach(this.textboxWrapper.container);
|
|
577
577
|
}
|
|
578
578
|
this.textboxWrapper = null;
|
|
579
|
+
Input.destroy();
|
|
579
580
|
_super.prototype.destroy.call(this);
|
|
580
581
|
};
|
|
581
582
|
/**
|
|
@@ -617,17 +618,17 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
617
618
|
Input.setReadonly(this.readonly, this.respectiveElement);
|
|
618
619
|
}
|
|
619
620
|
else if (key === 'class') {
|
|
620
|
-
this.respectiveElement.classList.add(attributes[key]);
|
|
621
|
+
this.respectiveElement.classList.add(attributes["" + key]);
|
|
621
622
|
}
|
|
622
623
|
else if (key === 'placeholder') {
|
|
623
|
-
this.setProperties({ placeholder: attributes[key] }, true);
|
|
624
|
+
this.setProperties({ placeholder: attributes["" + key] }, true);
|
|
624
625
|
Input.setPlaceholder(this.placeholder, this.respectiveElement);
|
|
625
626
|
}
|
|
626
627
|
else if (key === 'rows' && this.respectiveElement.tagName === 'TEXTAREA') {
|
|
627
|
-
this.respectiveElement.setAttribute(key, attributes[key]);
|
|
628
|
+
this.respectiveElement.setAttribute(key, attributes["" + key]);
|
|
628
629
|
}
|
|
629
630
|
else {
|
|
630
|
-
this.respectiveElement.setAttribute(key, attributes[key]);
|
|
631
|
+
this.respectiveElement.setAttribute(key, attributes["" + key]);
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
634
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Property, Event, EmitType, EventHandler, L10n, compile, isNullOrUndefined} from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, append, Animation } from '@syncfusion/ej2-base';import { addClass, removeClass, KeyboardEvents, KeyboardEventArgs, setValue, getValue, ChildProperty } from '@syncfusion/ej2-base';import { Collection, Complex, Browser, Ajax, BeforeSendEventArgs, getUniqueID, closest, remove } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { select, selectAll } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, Property, Event, EmitType, EventHandler, L10n, compile, isNullOrUndefined, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, append, Animation } from '@syncfusion/ej2-base';import { addClass, removeClass, KeyboardEvents, KeyboardEventArgs, setValue, getValue, ChildProperty } from '@syncfusion/ej2-base';import { Collection, Complex, Browser, Ajax, BeforeSendEventArgs, getUniqueID, closest, remove } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { select, selectAll } from '@syncfusion/ej2-base';
|
|
2
2
|
import {DropEffect,ActionCompleteEventArgs,RenderingEventArgs,BeforeUploadEventArgs,FileListRenderingEventArgs,SelectedEventArgs,UploadingEventArgs,RemovingEventArgs,BeforeRemoveEventArgs,ClearingEventArgs,CancelEventArgs,PauseResumeEventArgs} from "./uploader";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -132,6 +132,7 @@ export interface UploaderModel extends ComponentModel{
|
|
|
132
132
|
/**
|
|
133
133
|
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
134
134
|
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
135
|
+
*
|
|
135
136
|
* {% codeBlock src='uploader/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
136
137
|
*
|
|
137
138
|
* @default {}
|
|
@@ -180,6 +181,14 @@ export interface UploaderModel extends ComponentModel{
|
|
|
180
181
|
*/
|
|
181
182
|
autoUpload?: boolean;
|
|
182
183
|
|
|
184
|
+
/**
|
|
185
|
+
* Specifies Boolean value that indicates whether to prevent the cross site scripting code in filename or not.
|
|
186
|
+
* The uploader component removes the cross-site scripting code or functions from the filename and shows the validation error message to the user when enableHtmlSanitizer is true.
|
|
187
|
+
*
|
|
188
|
+
* @default true
|
|
189
|
+
*/
|
|
190
|
+
enableHtmlSanitizer?: boolean;
|
|
191
|
+
|
|
183
192
|
/**
|
|
184
193
|
* You can customize the default text of “browse, clear, and upload” buttons with plain text or HTML elements.
|
|
185
194
|
* The buttons’ text can be customized from localization also. If you configured both locale and buttons property,
|
|
@@ -547,6 +547,7 @@ export declare class Uploader extends Component<HTMLInputElement> implements INo
|
|
|
547
547
|
/**
|
|
548
548
|
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
549
549
|
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
550
|
+
*
|
|
550
551
|
* {% codeBlock src='uploader/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
551
552
|
*
|
|
552
553
|
* @default {}
|
|
@@ -591,6 +592,13 @@ export declare class Uploader extends Component<HTMLInputElement> implements INo
|
|
|
591
592
|
* @default true
|
|
592
593
|
*/
|
|
593
594
|
autoUpload: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* Specifies Boolean value that indicates whether to prevent the cross site scripting code in filename or not.
|
|
597
|
+
* The uploader component removes the cross-site scripting code or functions from the filename and shows the validation error message to the user when enableHtmlSanitizer is true.
|
|
598
|
+
*
|
|
599
|
+
* @default true
|
|
600
|
+
*/
|
|
601
|
+
enableHtmlSanitizer: boolean;
|
|
594
602
|
/**
|
|
595
603
|
* You can customize the default text of “browse, clear, and upload” buttons with plain text or HTML elements.
|
|
596
604
|
* The buttons’ text can be customized from localization also. If you configured both locale and buttons property,
|
package/src/uploader/uploader.js
CHANGED
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
21
|
-
import { Component, Property, Event, EventHandler, L10n, compile, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
|
+
import { Component, Property, Event, EventHandler, L10n, compile, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
|
22
22
|
import { NotifyPropertyChanges, detach, append, Animation } from '@syncfusion/ej2-base';
|
|
23
23
|
import { addClass, removeClass, KeyboardEvents, setValue, getValue, ChildProperty } from '@syncfusion/ej2-base';
|
|
24
24
|
import { Collection, Complex, Browser, Ajax, getUniqueID, closest, remove } from '@syncfusion/ej2-base';
|
|
@@ -265,7 +265,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
265
265
|
var keyValue;
|
|
266
266
|
for (var _i = 0, _a = Object.keys(this.preLocaleObj); _i < _a.length; _i++) {
|
|
267
267
|
var key = _a[_i];
|
|
268
|
-
if (this.preLocaleObj[key] === val) {
|
|
268
|
+
if (this.preLocaleObj["" + key] === val) {
|
|
269
269
|
keyValue = key;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
@@ -316,7 +316,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
Uploader.prototype.preRender = function () {
|
|
319
|
-
this.localeText = { Browse: 'Browse...', Clear: 'Clear', Upload: 'Upload',
|
|
319
|
+
this.localeText = { Browse: 'Browse...', Clear: 'Clear', Upload: 'Upload', invalidFileName: 'File Name is not allowed',
|
|
320
320
|
dropFilesHint: 'Or drop files here', invalidMaxFileSize: 'File size is too large',
|
|
321
321
|
invalidMinFileSize: 'File size is too small', invalidFileType: 'File type is not allowed',
|
|
322
322
|
uploadFailedMessage: 'File failed to upload', uploadSuccessMessage: 'File uploaded successfully',
|
|
@@ -643,7 +643,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
643
643
|
for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {
|
|
644
644
|
var pro = _a[_i];
|
|
645
645
|
if (wrapperAttr.indexOf(pro) < 0) {
|
|
646
|
-
this.element.setAttribute(pro, this.htmlAttributes[pro]);
|
|
646
|
+
this.element.setAttribute(pro, this.htmlAttributes["" + pro]);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}
|
|
@@ -654,19 +654,19 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
654
654
|
var pro = _a[_i];
|
|
655
655
|
if (wrapperAttr.indexOf(pro) > -1) {
|
|
656
656
|
if (pro === 'class') {
|
|
657
|
-
var updatedClassValues = (this.htmlAttributes[pro].replace(/\s+/g, ' ')).trim();
|
|
657
|
+
var updatedClassValues = (this.htmlAttributes["" + pro].replace(/\s+/g, ' ')).trim();
|
|
658
658
|
if (updatedClassValues !== '') {
|
|
659
659
|
addClass([this.uploadWrapper], updatedClassValues.split(' '));
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
else if (pro === 'style') {
|
|
663
663
|
var uploadStyle = this.uploadWrapper.getAttribute(pro);
|
|
664
|
-
uploadStyle = !isNullOrUndefined(uploadStyle) ? (uploadStyle + this.htmlAttributes[pro]) :
|
|
665
|
-
this.htmlAttributes[pro];
|
|
664
|
+
uploadStyle = !isNullOrUndefined(uploadStyle) ? (uploadStyle + this.htmlAttributes["" + pro]) :
|
|
665
|
+
this.htmlAttributes["" + pro];
|
|
666
666
|
this.uploadWrapper.setAttribute(pro, uploadStyle);
|
|
667
667
|
}
|
|
668
668
|
else {
|
|
669
|
-
this.uploadWrapper.setAttribute(pro, this.htmlAttributes[pro]);
|
|
669
|
+
this.uploadWrapper.setAttribute(pro, this.htmlAttributes["" + pro]);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
}
|
|
@@ -701,7 +701,9 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
701
701
|
Uploader.prototype.sequenceUpload = function (fileData) {
|
|
702
702
|
if (this.filesData.length - fileData.length === 0 ||
|
|
703
703
|
this.filesData[(this.filesData.length - fileData.length - 1)].statusCode !== '1') {
|
|
704
|
-
|
|
704
|
+
if (this.multiple || this.count < 0) {
|
|
705
|
+
++this.count;
|
|
706
|
+
}
|
|
705
707
|
var isFileListCreated = this.showFileList ? false : true;
|
|
706
708
|
if (typeof this.filesData[this.count] === 'object') {
|
|
707
709
|
this.isFirstFileOnSelection = false;
|
|
@@ -1049,7 +1051,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
1049
1051
|
var data = customData[i];
|
|
1050
1052
|
// eslint-disable-next-line @typescript-eslint/tslint/config
|
|
1051
1053
|
var value = Object.keys(data).map(function (e) {
|
|
1052
|
-
return data[e];
|
|
1054
|
+
return data["" + e];
|
|
1053
1055
|
});
|
|
1054
1056
|
formData.append(Object.keys(data)[0], value);
|
|
1055
1057
|
};
|
|
@@ -1065,7 +1067,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
1065
1067
|
var data = currentRequest[i];
|
|
1066
1068
|
// eslint-disable-next-line @typescript-eslint/tslint/config
|
|
1067
1069
|
var value = Object.keys(data).map(function (e) {
|
|
1068
|
-
return data[e];
|
|
1070
|
+
return data["" + e];
|
|
1069
1071
|
});
|
|
1070
1072
|
request.setRequestHeader(Object.keys(data)[0], value);
|
|
1071
1073
|
};
|
|
@@ -1276,6 +1278,20 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
1276
1278
|
if (this.allowedExtensions.indexOf('*') > -1) {
|
|
1277
1279
|
this.allTypes = true;
|
|
1278
1280
|
}
|
|
1281
|
+
if (this.enableHtmlSanitizer) {
|
|
1282
|
+
for (var i = 0; i < fileData.length; i++) {
|
|
1283
|
+
var sanitizeFile = SanitizeHtmlHelper.beforeSanitize();
|
|
1284
|
+
var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[i].name);
|
|
1285
|
+
if (sanitizeFileName != fileData[i].name) {
|
|
1286
|
+
var encodedFileName = targetFiles[i].name.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
|
|
1287
|
+
return '&#' + i.charCodeAt(0) + ';';
|
|
1288
|
+
});
|
|
1289
|
+
fileData[i].name = encodedFileName;
|
|
1290
|
+
fileData[i].status = this.localizedTexts('invalidFileName');
|
|
1291
|
+
fileData[i].statusCode = '0';
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1279
1295
|
if (!this.allTypes) {
|
|
1280
1296
|
fileData = this.checkExtension(fileData);
|
|
1281
1297
|
}
|
|
@@ -2052,7 +2068,9 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
2052
2068
|
this.pauseButton = null;
|
|
2053
2069
|
}
|
|
2054
2070
|
/* istanbul ignore next */
|
|
2055
|
-
liElement
|
|
2071
|
+
if (!isNullOrUndefined(liElement)) {
|
|
2072
|
+
liElement.classList.add(RESTRICT_RETRY);
|
|
2073
|
+
}
|
|
2056
2074
|
this.upload([file]);
|
|
2057
2075
|
};
|
|
2058
2076
|
/* istanbul ignore next */
|
|
@@ -2879,6 +2897,14 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
2879
2897
|
detach(this.uploadWrapper);
|
|
2880
2898
|
}
|
|
2881
2899
|
this.uploadWrapper = null;
|
|
2900
|
+
this.uploadWrapper = null;
|
|
2901
|
+
this.browseButton = null;
|
|
2902
|
+
this.dropAreaWrapper = null;
|
|
2903
|
+
this.dropZoneElement = null;
|
|
2904
|
+
this.dropArea = null;
|
|
2905
|
+
this.keyboardModule = null;
|
|
2906
|
+
this.clearButton = null;
|
|
2907
|
+
this.uploadButton = null;
|
|
2882
2908
|
_super.prototype.destroy.call(this);
|
|
2883
2909
|
};
|
|
2884
2910
|
/**
|
|
@@ -3378,6 +3404,9 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
3378
3404
|
__decorate([
|
|
3379
3405
|
Property(true)
|
|
3380
3406
|
], Uploader.prototype, "autoUpload", void 0);
|
|
3407
|
+
__decorate([
|
|
3408
|
+
Property(true)
|
|
3409
|
+
], Uploader.prototype, "enableHtmlSanitizer", void 0);
|
|
3381
3410
|
__decorate([
|
|
3382
3411
|
Complex({}, ButtonsProps)
|
|
3383
3412
|
], Uploader.prototype, "buttons", void 0);
|
|
@@ -6766,4 +6766,269 @@ body.e-colorpicker-overflow {
|
|
|
6766
6766
|
.e-popup.e-tooltip-wrap.e-color-picker-tooltip {
|
|
6767
6767
|
background-color: #fff;
|
|
6768
6768
|
border-color: #fff;
|
|
6769
|
+
}
|
|
6770
|
+
|
|
6771
|
+
.e-rating-container {
|
|
6772
|
+
display: -ms-inline-flexbox;
|
|
6773
|
+
display: inline-flex;
|
|
6774
|
+
-ms-flex-wrap: wrap;
|
|
6775
|
+
flex-wrap: wrap;
|
|
6776
|
+
-ms-flex-pack: center;
|
|
6777
|
+
justify-content: center;
|
|
6778
|
+
-ms-flex-align: center;
|
|
6779
|
+
align-items: center;
|
|
6780
|
+
min-width: max-content;
|
|
6781
|
+
}
|
|
6782
|
+
.e-rating-container .e-rating {
|
|
6783
|
+
display: none;
|
|
6784
|
+
}
|
|
6785
|
+
.e-rating-container .e-rating-item-list {
|
|
6786
|
+
display: -ms-inline-flexbox;
|
|
6787
|
+
display: inline-flex;
|
|
6788
|
+
padding: 0;
|
|
6789
|
+
margin: 4px;
|
|
6790
|
+
}
|
|
6791
|
+
.e-rating-container .e-rating-item-list:focus-visible:not(:hover) .e-rating-focus {
|
|
6792
|
+
outline: 1px solid;
|
|
6793
|
+
}
|
|
6794
|
+
.e-rating-container .e-rating-item-list:focus-visible {
|
|
6795
|
+
outline: none;
|
|
6796
|
+
}
|
|
6797
|
+
.e-rating-container.e-rating-readonly {
|
|
6798
|
+
cursor: default;
|
|
6799
|
+
pointer-events: none;
|
|
6800
|
+
}
|
|
6801
|
+
.e-rating-container .e-rating-item-container {
|
|
6802
|
+
cursor: pointer;
|
|
6803
|
+
font-size: 20px;
|
|
6804
|
+
padding: 4px;
|
|
6805
|
+
line-height: 9px;
|
|
6806
|
+
display: block;
|
|
6807
|
+
position: relative;
|
|
6808
|
+
}
|
|
6809
|
+
.e-rating-container .e-rating-item-container .e-rating-item {
|
|
6810
|
+
display: block;
|
|
6811
|
+
}
|
|
6812
|
+
.e-rating-container.e-rating-animation:not(.e-disabled) .e-rating-item-container:hover .e-rating-item {
|
|
6813
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
6814
|
+
transform: scale(1.4);
|
|
6815
|
+
pointer-events: none;
|
|
6816
|
+
}
|
|
6817
|
+
.e-rating-container.e-disabled {
|
|
6818
|
+
cursor: default;
|
|
6819
|
+
pointer-events: none;
|
|
6820
|
+
}
|
|
6821
|
+
.e-rating-container.e-rating-hidden {
|
|
6822
|
+
display: none;
|
|
6823
|
+
}
|
|
6824
|
+
.e-rating-container .e-reset {
|
|
6825
|
+
cursor: pointer;
|
|
6826
|
+
margin: auto 2px 6px;
|
|
6827
|
+
font-size: 16px;
|
|
6828
|
+
padding: 2px;
|
|
6829
|
+
}
|
|
6830
|
+
.e-rating-container .e-reset.e-disabled {
|
|
6831
|
+
cursor: default;
|
|
6832
|
+
}
|
|
6833
|
+
.e-rating-container .e-rating-label {
|
|
6834
|
+
font-size: 12px;
|
|
6835
|
+
line-height: 18px;
|
|
6836
|
+
}
|
|
6837
|
+
.e-rating-container .e-rating-label.e-label-right, .e-rating-container .e-rating-label.e-label-left {
|
|
6838
|
+
min-width: 50px;
|
|
6839
|
+
}
|
|
6840
|
+
.e-rating-container .e-rating-label.e-label-bottom, .e-rating-container .e-rating-label.e-label-top {
|
|
6841
|
+
-ms-flex-preferred-size: 100%;
|
|
6842
|
+
flex-basis: 100%;
|
|
6843
|
+
width: 0;
|
|
6844
|
+
text-align: center;
|
|
6845
|
+
}
|
|
6846
|
+
.e-rating-container .e-rating-label.e-label-right {
|
|
6847
|
+
text-align: left;
|
|
6848
|
+
margin: auto 4px;
|
|
6849
|
+
}
|
|
6850
|
+
.e-rating-container .e-rating-label.e-label-left {
|
|
6851
|
+
text-align: right;
|
|
6852
|
+
margin: auto 4px;
|
|
6853
|
+
}
|
|
6854
|
+
.e-rating-container .e-rating-label.e-label-top {
|
|
6855
|
+
margin: 8px 0;
|
|
6856
|
+
}
|
|
6857
|
+
.e-rating-container .e-rating-label.e-label-bottom {
|
|
6858
|
+
margin: 8px 0;
|
|
6859
|
+
}
|
|
6860
|
+
.e-rating-container.e-rtl .e-rating-label.e-label-right {
|
|
6861
|
+
text-align: right;
|
|
6862
|
+
}
|
|
6863
|
+
.e-rating-container.e-rtl .e-rating-label.e-label-left {
|
|
6864
|
+
text-align: left;
|
|
6865
|
+
}
|
|
6866
|
+
.e-rating-container .e-tooltip-wrap.e-rating-tooltip {
|
|
6867
|
+
display: none;
|
|
6868
|
+
-ms-flex-pack: center;
|
|
6869
|
+
justify-content: center;
|
|
6870
|
+
left: 50%;
|
|
6871
|
+
top: -8px;
|
|
6872
|
+
transform: translate(-50%, -100%);
|
|
6873
|
+
}
|
|
6874
|
+
.e-rating-container .e-tooltip-wrap.e-rating-tooltip.e-show-tooltip {
|
|
6875
|
+
display: -ms-inline-flexbox;
|
|
6876
|
+
display: inline-flex;
|
|
6877
|
+
}
|
|
6878
|
+
.e-rating-container .e-tooltip-wrap.e-rating-tooltip .e-tip-content {
|
|
6879
|
+
width: max-content;
|
|
6880
|
+
}
|
|
6881
|
+
.e-rating-container .e-tooltip-wrap.e-rating-tooltip .e-arrow-tip.e-tip-bottom {
|
|
6882
|
+
left: 50%;
|
|
6883
|
+
top: 100%;
|
|
6884
|
+
transform: translate(-50%, 0);
|
|
6885
|
+
}
|
|
6886
|
+
.e-rating-container .e-tooltip-wrap.e-rating-tooltip .e-arrow-tip-inner.e-tip-bottom {
|
|
6887
|
+
top: -6px;
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6890
|
+
.e-rating-tooltip .e-tip-content {
|
|
6891
|
+
text-align: center;
|
|
6892
|
+
}
|
|
6893
|
+
|
|
6894
|
+
.e-small.e-rating-container .e-rating-item-container,
|
|
6895
|
+
.e-small .e-rating-container .e-rating-item-container {
|
|
6896
|
+
font-size: 16px;
|
|
6897
|
+
line-height: 4px;
|
|
6898
|
+
}
|
|
6899
|
+
.e-small.e-rating-container .e-rating-label,
|
|
6900
|
+
.e-small .e-rating-container .e-rating-label {
|
|
6901
|
+
font-size: 10px;
|
|
6902
|
+
line-height: 16px;
|
|
6903
|
+
}
|
|
6904
|
+
.e-small.e-rating-container .e-reset,
|
|
6905
|
+
.e-small .e-rating-container .e-reset {
|
|
6906
|
+
font-size: 12px;
|
|
6907
|
+
}
|
|
6908
|
+
|
|
6909
|
+
.e-bigger.e-rating-container .e-rating-item-container,
|
|
6910
|
+
.e-bigger .e-rating-container .e-rating-item-container {
|
|
6911
|
+
font-size: 32px;
|
|
6912
|
+
line-height: 16px;
|
|
6913
|
+
}
|
|
6914
|
+
.e-bigger.e-rating-container .e-rating-label,
|
|
6915
|
+
.e-bigger .e-rating-container .e-rating-label {
|
|
6916
|
+
font-size: 14px;
|
|
6917
|
+
line-height: 22px;
|
|
6918
|
+
}
|
|
6919
|
+
.e-bigger.e-rating-container .e-reset,
|
|
6920
|
+
.e-bigger .e-rating-container .e-reset {
|
|
6921
|
+
font-size: 28px;
|
|
6922
|
+
}
|
|
6923
|
+
|
|
6924
|
+
.e-bigger.e-small.e-rating-container .e-rating-item-container,
|
|
6925
|
+
.e-bigger.e-small .e-rating-container .e-rating-item-container,
|
|
6926
|
+
.e-bigger .e-small.e-rating-container .e-rating-item-container,
|
|
6927
|
+
.e-small .e-bigger.e-rating-container .e-rating-item-container {
|
|
6928
|
+
font-size: 26px;
|
|
6929
|
+
line-height: 9px;
|
|
6930
|
+
}
|
|
6931
|
+
.e-bigger.e-small.e-rating-container .e-rating-label,
|
|
6932
|
+
.e-bigger.e-small .e-rating-container .e-rating-label,
|
|
6933
|
+
.e-bigger .e-small.e-rating-container .e-rating-label,
|
|
6934
|
+
.e-small .e-bigger.e-rating-container .e-rating-label {
|
|
6935
|
+
font-size: 12px;
|
|
6936
|
+
line-height: 18px;
|
|
6937
|
+
}
|
|
6938
|
+
.e-bigger.e-small.e-rating-container .e-reset,
|
|
6939
|
+
.e-bigger.e-small .e-rating-container .e-reset,
|
|
6940
|
+
.e-bigger .e-small.e-rating-container .e-reset,
|
|
6941
|
+
.e-small .e-bigger.e-rating-container .e-reset {
|
|
6942
|
+
font-size: 22px;
|
|
6943
|
+
}
|
|
6944
|
+
|
|
6945
|
+
.e-rating-container .e-rating-item-list:focus .e-rating-focus {
|
|
6946
|
+
outline-color: #676767;
|
|
6947
|
+
border-radius: 2px;
|
|
6948
|
+
}
|
|
6949
|
+
.e-rating-container .e-reset {
|
|
6950
|
+
color: #acacac;
|
|
6951
|
+
}
|
|
6952
|
+
.e-rating-container .e-reset:hover {
|
|
6953
|
+
color: #676767;
|
|
6954
|
+
}
|
|
6955
|
+
.e-rating-container .e-reset.e-disabled {
|
|
6956
|
+
color: #505050;
|
|
6957
|
+
}
|
|
6958
|
+
.e-rating-container .e-rating-item-container .e-rating-icon {
|
|
6959
|
+
-webkit-text-fill-color: transparent;
|
|
6960
|
+
-webkit-text-stroke: 1px #676767;
|
|
6961
|
+
}
|
|
6962
|
+
.e-rating-container .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container .e-rating-item-container.e-rating-intermediate .e-rating-icon {
|
|
6963
|
+
background: linear-gradient(to right, #acacac var(--rating-value), transparent var(--rating-value));
|
|
6964
|
+
background-clip: text;
|
|
6965
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
6966
|
+
-webkit-background-clip: text;
|
|
6967
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
6968
|
+
-webkit-text-stroke: 1px #acacac;
|
|
6969
|
+
}
|
|
6970
|
+
.e-rating-container .e-rating-item-container.e-selected-value .e-rating-icon {
|
|
6971
|
+
-webkit-text-stroke: 1px #57a5ff;
|
|
6972
|
+
}
|
|
6973
|
+
.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 {
|
|
6974
|
+
background: linear-gradient(to right, #57a5ff var(--rating-value), transparent var(--rating-value));
|
|
6975
|
+
background-clip: text;
|
|
6976
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
6977
|
+
-webkit-background-clip: text;
|
|
6978
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
6979
|
+
-webkit-text-stroke: 1px #57a5ff;
|
|
6980
|
+
}
|
|
6981
|
+
.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 {
|
|
6982
|
+
background: linear-gradient(to right, #57a5ff var(--rating-value), transparent var(--rating-value));
|
|
6983
|
+
background-clip: text;
|
|
6984
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
6985
|
+
-webkit-background-clip: text;
|
|
6986
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
6987
|
+
-webkit-text-stroke: 1px #57a5ff;
|
|
6988
|
+
}
|
|
6989
|
+
.e-rating-container.e-rtl .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container.e-rtl .e-rating-item-container.e-rating-intermediate .e-rating-icon {
|
|
6990
|
+
background: linear-gradient(to left, #acacac var(--rating-value), transparent var(--rating-value));
|
|
6991
|
+
background-clip: text;
|
|
6992
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
6993
|
+
-webkit-background-clip: text;
|
|
6994
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
6995
|
+
}
|
|
6996
|
+
.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 {
|
|
6997
|
+
background: linear-gradient(to left, #57a5ff var(--rating-value), transparent var(--rating-value));
|
|
6998
|
+
background-clip: text;
|
|
6999
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
7000
|
+
-webkit-background-clip: text;
|
|
7001
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
7002
|
+
}
|
|
7003
|
+
.e-rating-container.e-rtl .e-rating-item-list .e-rating-item-container.e-rating-selected:active .e-rating-icon, .e-rating-container.e-rtl .e-rating-item-list .e-rating-item-container.e-rating-intermediate:active .e-rating-icon {
|
|
7004
|
+
background: linear-gradient(to left, #57a5ff var(--rating-value), transparent var(--rating-value));
|
|
7005
|
+
background-clip: text;
|
|
7006
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
7007
|
+
-webkit-background-clip: text;
|
|
7008
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
7009
|
+
}
|
|
7010
|
+
.e-rating-container.e-disabled .e-rating-item-container .e-rating-icon {
|
|
7011
|
+
-webkit-text-stroke: 1px #505050;
|
|
7012
|
+
}
|
|
7013
|
+
.e-rating-container.e-disabled .e-rating-item-container.e-rating-selected .e-rating-icon, .e-rating-container.e-disabled .e-rating-item-container.e-rating-intermediate .e-rating-icon {
|
|
7014
|
+
background: linear-gradient(to right, #505050 var(--rating-value), transparent var(--rating-value));
|
|
7015
|
+
background-clip: text;
|
|
7016
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
7017
|
+
-webkit-background-clip: text;
|
|
7018
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
7019
|
+
-webkit-text-stroke: 1px #505050;
|
|
7020
|
+
}
|
|
7021
|
+
.e-rating-container.e-disabled.e-rtl .e-rating-item-container .e-rating-icon {
|
|
7022
|
+
background: linear-gradient(to left, #505050 var(--rating-value), transparent var(--rating-value));
|
|
7023
|
+
background-clip: text;
|
|
7024
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
7025
|
+
-webkit-background-clip: text;
|
|
7026
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
7027
|
+
}
|
|
7028
|
+
.e-rating-container.e-disabled.e-rtl.e-rating-selected .e-rating-icon, .e-rating-container.e-disabled.e-rtl.e-rating-intermediate .e-rating-icon {
|
|
7029
|
+
background: linear-gradient(to left, #505050 var(--rating-value), transparent var(--rating-value));
|
|
7030
|
+
background-clip: text;
|
|
7031
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
7032
|
+
-webkit-background-clip: text;
|
|
7033
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
6769
7034
|
}
|