@syncfusion/ej2-inputs 25.1.35 → 25.1.38
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/CHANGELOG.md +28 -0
- 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 +40 -27
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +40 -27
- 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 +7 -7
- package/src/color-picker/color-picker-model.d.ts +1 -1
- package/src/color-picker/color-picker.d.ts +1 -0
- package/src/color-picker/color-picker.js +26 -22
- package/src/common/signature-base.js +5 -1
- package/src/input/input.js +3 -3
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +1 -1
- package/src/slider/slider.js +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.1.
|
|
3
|
+
* version : 25.1.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@25.1.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-dCCpQYC6SdVpO+yC5NgVS/giDJaF7KR+SuwDRNzfEr02YPBEQxIkpgtzpLaGPNmJWGoCgml5w2cU/xskpYcVeg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"/@syncfusion/ej2-schedule",
|
|
40
40
|
"/@syncfusion/ej2-vue-inputs"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-25.1.37.tgz",
|
|
43
|
+
"_shasum": "fc877de63b76cbf7c262c5ca4e962a0413ca46c0",
|
|
44
44
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@syncfusion/ej2-base": "~25.1.35",
|
|
52
52
|
"@syncfusion/ej2-buttons": "~25.1.35",
|
|
53
|
-
"@syncfusion/ej2-popups": "~25.1.
|
|
54
|
-
"@syncfusion/ej2-splitbuttons": "~25.1.
|
|
53
|
+
"@syncfusion/ej2-popups": "~25.1.38",
|
|
54
|
+
"@syncfusion/ej2-splitbuttons": "~25.1.38"
|
|
55
55
|
},
|
|
56
56
|
"deprecated": false,
|
|
57
57
|
"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.",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
120
120
|
},
|
|
121
121
|
"typings": "index.d.ts",
|
|
122
|
-
"version": "25.1.
|
|
122
|
+
"version": "25.1.38",
|
|
123
123
|
"sideEffects": false,
|
|
124
124
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
125
125
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEventArgs, Component, EmitType, Event, INotifyPropertyChanged, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';import { Browser, closest, detach, EventHandler, getInstance, select, selectAll, formatUnit } from '@syncfusion/ej2-base';import { addClass, attributes, classList, isNullOrUndefined, L10n } from '@syncfusion/ej2-base';import { remove, removeClass, rippleEffect } from '@syncfusion/ej2-base';import { SplitButton, BeforeOpenCloseMenuEventArgs, getModel } from '@syncfusion/ej2-splitbuttons';import { Deferred } from '@syncfusion/ej2-splitbuttons';import { Tooltip, TooltipEventArgs, getZindexPartial, Popup, isCollide } from '@syncfusion/ej2-popups';import { Input } from './../input/index';import { NumericTextBox, NumericTextBoxModel, ChangeEventArgs } from './../numerictextbox/index';import { Slider, SliderChangeEventArgs } from './../slider/slider';
|
|
1
|
+
import { BaseEventArgs, Component, EmitType, Event, INotifyPropertyChanged, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';import { Browser, closest, detach, EventHandler, getInstance, select, selectAll, formatUnit } from '@syncfusion/ej2-base';import { addClass, attributes, classList, isNullOrUndefined, L10n } from '@syncfusion/ej2-base';import { remove, removeClass, rippleEffect } from '@syncfusion/ej2-base';import { SplitButton, BeforeOpenCloseMenuEventArgs, getModel, ClickEventArgs } from '@syncfusion/ej2-splitbuttons';import { Deferred } from '@syncfusion/ej2-splitbuttons';import { Tooltip, TooltipEventArgs, getZindexPartial, Popup, isCollide } from '@syncfusion/ej2-popups';import { Input } from './../input/index';import { NumericTextBox, NumericTextBoxModel, ChangeEventArgs } from './../numerictextbox/index';import { Slider, SliderChangeEventArgs } from './../slider/slider';
|
|
2
2
|
import {ColorPickerMode,ColorPickerEventArgs,PaletteTileEventArgs,BeforeOpenCloseEventArgs,OpenEventArgs,ModeSwitchEventArgs} from "./color-picker";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -191,9 +191,10 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
191
191
|
createPopupOnClick: this.createPopupOnClick,
|
|
192
192
|
open: this.onOpen.bind(this),
|
|
193
193
|
click: function () {
|
|
194
|
+
var ev = new MouseEvent('click', { bubbles: true, cancelable: false });
|
|
194
195
|
_this.trigger('change', {
|
|
195
196
|
currentValue: { hex: _this.value.slice(0, 7), rgba: _this.convertToRgbString(_this.hexToRgb(_this.value)) },
|
|
196
|
-
previousValue: { hex: null, rgba: null }, value: _this.value
|
|
197
|
+
previousValue: { hex: null, rgba: null }, value: _this.value, event: ev
|
|
197
198
|
});
|
|
198
199
|
}
|
|
199
200
|
});
|
|
@@ -694,7 +695,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
694
695
|
this.hsv[2] = this.hsv[2] > 100 ? 100 : this.hsv[2];
|
|
695
696
|
this.setHandlerPosition();
|
|
696
697
|
};
|
|
697
|
-
ColorPicker.prototype.convertToOtherFormat = function (isKey) {
|
|
698
|
+
ColorPicker.prototype.convertToOtherFormat = function (isKey, e) {
|
|
698
699
|
if (isKey === void 0) { isKey = false; }
|
|
699
700
|
var pValue = this.rgbToHex(this.rgb);
|
|
700
701
|
this.rgb = this.hsvToRgb.apply(this, this.hsv);
|
|
@@ -702,7 +703,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
702
703
|
var rgba = this.convertToRgbString(this.rgb);
|
|
703
704
|
this.updatePreview(rgba);
|
|
704
705
|
this.updateInput(cValue);
|
|
705
|
-
this.triggerEvent(cValue, pValue, rgba, isKey);
|
|
706
|
+
this.triggerEvent(cValue, pValue, rgba, isKey, e);
|
|
706
707
|
};
|
|
707
708
|
ColorPicker.prototype.updateInput = function (value) {
|
|
708
709
|
var wrapper = this.getWrapper();
|
|
@@ -935,10 +936,10 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
935
936
|
}
|
|
936
937
|
});
|
|
937
938
|
};
|
|
938
|
-
ColorPicker.prototype.triggerChangeEvent = function (value) {
|
|
939
|
+
ColorPicker.prototype.triggerChangeEvent = function (value, e) {
|
|
939
940
|
var hex = value.slice(0, 7);
|
|
940
941
|
this.trigger('change', {
|
|
941
|
-
currentValue: { hex: hex, rgba: this.convertToRgbString(this.rgb) },
|
|
942
|
+
currentValue: { hex: hex, rgba: this.convertToRgbString(this.rgb) }, event: e,
|
|
942
943
|
previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) },
|
|
943
944
|
value: this.enableOpacity ? value : hex
|
|
944
945
|
});
|
|
@@ -957,7 +958,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
957
958
|
this.hsv[prob] = 0;
|
|
958
959
|
}
|
|
959
960
|
this.updateHsv();
|
|
960
|
-
this.convertToOtherFormat(true);
|
|
961
|
+
this.convertToOtherFormat(true, e);
|
|
961
962
|
};
|
|
962
963
|
ColorPicker.prototype.handlerDown = function (e) {
|
|
963
964
|
e.preventDefault();
|
|
@@ -974,7 +975,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
974
975
|
this.setHsv(this.clientX, this.clientY);
|
|
975
976
|
this.getDragHandler().style.transition = 'left .4s cubic-bezier(.25, .8, .25, 1), top .4s cubic-bezier(.25, .8, .25, 1)';
|
|
976
977
|
this.updateHsv();
|
|
977
|
-
this.convertToOtherFormat();
|
|
978
|
+
this.convertToOtherFormat(false, e);
|
|
978
979
|
this.getDragHandler().focus();
|
|
979
980
|
EventHandler.add(document, 'mousemove touchmove', this.handlerMove, this);
|
|
980
981
|
EventHandler.add(document, 'mouseup touchend', this.handlerEnd, this);
|
|
@@ -996,7 +997,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
996
997
|
this.setHsv(x, y);
|
|
997
998
|
var dragHandler = this.getDragHandler();
|
|
998
999
|
this.updateHsv();
|
|
999
|
-
this.convertToOtherFormat();
|
|
1000
|
+
this.convertToOtherFormat(false, e);
|
|
1000
1001
|
this.getTooltipInst().refresh(dragHandler);
|
|
1001
1002
|
if (!this.tooltipEle.style.transform) {
|
|
1002
1003
|
if (Math.abs(this.clientX - x) > 8 || Math.abs(this.clientY - y) > 8) {
|
|
@@ -1140,7 +1141,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1140
1141
|
this.setHandlerPosition();
|
|
1141
1142
|
this.updateInput(cValue);
|
|
1142
1143
|
select('.' + PREVIEW + ' .' + CURRENT, this.container).style.backgroundColor = this.convertToRgbString(this.rgb);
|
|
1143
|
-
this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb));
|
|
1144
|
+
this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb), false, e);
|
|
1144
1145
|
};
|
|
1145
1146
|
ColorPicker.prototype.paletteClickHandler = function (e) {
|
|
1146
1147
|
e.preventDefault();
|
|
@@ -1159,7 +1160,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1159
1160
|
if (this.getWrapper().classList.contains(SHOWVALUE)) {
|
|
1160
1161
|
this.updateInput(cValue);
|
|
1161
1162
|
}
|
|
1162
|
-
this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb));
|
|
1163
|
+
this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb), false, e);
|
|
1163
1164
|
}
|
|
1164
1165
|
if (!this.inline && !this.showButtons) {
|
|
1165
1166
|
this.closePopup(e);
|
|
@@ -1218,7 +1219,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1218
1219
|
ColorPicker.prototype.ctrlBtnClick = function (ele, e) {
|
|
1219
1220
|
if (ele.classList.contains(APPLY)) {
|
|
1220
1221
|
var cValue = this.rgbToHex(this.rgb);
|
|
1221
|
-
this.triggerChangeEvent(cValue);
|
|
1222
|
+
this.triggerChangeEvent(cValue, e);
|
|
1222
1223
|
}
|
|
1223
1224
|
if (!this.inline) {
|
|
1224
1225
|
this.closePopup(e);
|
|
@@ -1326,7 +1327,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1326
1327
|
if (value.length === 9) {
|
|
1327
1328
|
pValue = this.rgbToHex(this.rgb);
|
|
1328
1329
|
this.rgb = this.hexToRgb(value + value.substr(-2));
|
|
1329
|
-
this.inputValueChange(this.rgbToHsv.apply(this, this.rgb), pValue, target.value);
|
|
1330
|
+
this.inputValueChange(this.rgbToHsv.apply(this, this.rgb), pValue, target.value, e);
|
|
1330
1331
|
}
|
|
1331
1332
|
else {
|
|
1332
1333
|
return;
|
|
@@ -1338,7 +1339,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1338
1339
|
pValue = this.rgbToHex(this.rgb);
|
|
1339
1340
|
this.rgb[0] = Number(target.value);
|
|
1340
1341
|
hsv = this.rgbToHsv.apply(this, this.rgb);
|
|
1341
|
-
this.inputValueChange(hsv, pValue);
|
|
1342
|
+
this.inputValueChange(hsv, pValue, null, e);
|
|
1342
1343
|
}
|
|
1343
1344
|
break;
|
|
1344
1345
|
case 'G':
|
|
@@ -1346,7 +1347,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1346
1347
|
pValue = this.rgbToHex(this.rgb);
|
|
1347
1348
|
this.rgb[1] = Number(target.value);
|
|
1348
1349
|
hsv = this.rgbToHsv.apply(this, this.rgb);
|
|
1349
|
-
this.inputValueChange(hsv, pValue);
|
|
1350
|
+
this.inputValueChange(hsv, pValue, null, e);
|
|
1350
1351
|
}
|
|
1351
1352
|
break;
|
|
1352
1353
|
case 'B':
|
|
@@ -1354,7 +1355,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1354
1355
|
pValue = this.rgbToHex(this.rgb);
|
|
1355
1356
|
this.rgb[2] = Number(target.value);
|
|
1356
1357
|
hsv = this.rgbToHsv.apply(this, this.rgb);
|
|
1357
|
-
this.inputValueChange(hsv, pValue);
|
|
1358
|
+
this.inputValueChange(hsv, pValue, null, e);
|
|
1358
1359
|
}
|
|
1359
1360
|
break;
|
|
1360
1361
|
case 'H':
|
|
@@ -1364,14 +1365,14 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1364
1365
|
if (this.hsv[1] !== Number(target.value)) {
|
|
1365
1366
|
this.hsv[1] = Number(target.value);
|
|
1366
1367
|
this.updateHsv();
|
|
1367
|
-
this.convertToOtherFormat();
|
|
1368
|
+
this.convertToOtherFormat(false, e);
|
|
1368
1369
|
}
|
|
1369
1370
|
break;
|
|
1370
1371
|
case 'V':
|
|
1371
1372
|
if (this.hsv[2] !== Number(target.value)) {
|
|
1372
1373
|
this.hsv[2] = Number(target.value);
|
|
1373
1374
|
this.updateHsv();
|
|
1374
|
-
this.convertToOtherFormat();
|
|
1375
|
+
this.convertToOtherFormat(false, e);
|
|
1375
1376
|
}
|
|
1376
1377
|
break;
|
|
1377
1378
|
case 'A':
|
|
@@ -1379,7 +1380,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1379
1380
|
break;
|
|
1380
1381
|
}
|
|
1381
1382
|
};
|
|
1382
|
-
ColorPicker.prototype.inputValueChange = function (hsv, pValue, value) {
|
|
1383
|
+
ColorPicker.prototype.inputValueChange = function (hsv, pValue, value, e) {
|
|
1383
1384
|
if (hsv[0] !== this.hsv[0]) {
|
|
1384
1385
|
this.hueSlider.setProperties({ 'value': hsv[0] }, true);
|
|
1385
1386
|
this.hueSlider.refresh();
|
|
@@ -1391,13 +1392,16 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1391
1392
|
this.updateInput(value ? value : cValue);
|
|
1392
1393
|
var rgba = this.convertToRgbString(this.rgb);
|
|
1393
1394
|
this.updatePreview(rgba);
|
|
1394
|
-
this.triggerEvent(cValue, pValue, rgba);
|
|
1395
|
+
this.triggerEvent(cValue, pValue, rgba, false, e);
|
|
1395
1396
|
};
|
|
1396
|
-
ColorPicker.prototype.triggerEvent = function (cValue, pValue, rgba, isKey) {
|
|
1397
|
+
ColorPicker.prototype.triggerEvent = function (cValue, pValue, rgba, isKey, e) {
|
|
1397
1398
|
if (isKey === void 0) { isKey = false; }
|
|
1398
1399
|
var hex = cValue.slice(0, 7);
|
|
1400
|
+
if (isNullOrUndefined(e)) {
|
|
1401
|
+
e = new MouseEvent('click', { bubbles: true, cancelable: false });
|
|
1402
|
+
}
|
|
1399
1403
|
if (!this.showButtons && !isKey) {
|
|
1400
|
-
this.trigger('change', { currentValue: { hex: hex, rgba: rgba },
|
|
1404
|
+
this.trigger('change', { currentValue: { hex: hex, rgba: rgba }, event: e,
|
|
1401
1405
|
previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) }, value: cValue });
|
|
1402
1406
|
if (this.enableOpacity) {
|
|
1403
1407
|
this.setProperties({ 'value': cValue }, true);
|
|
@@ -1409,7 +1413,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
1409
1413
|
}
|
|
1410
1414
|
else {
|
|
1411
1415
|
this.trigger('select', {
|
|
1412
|
-
currentValue: { hex: hex, rgba: rgba },
|
|
1416
|
+
currentValue: { hex: hex, rgba: rgba }, event: e,
|
|
1413
1417
|
previousValue: { hex: pValue.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(pValue)) }
|
|
1414
1418
|
});
|
|
1415
1419
|
}
|
|
@@ -296,6 +296,10 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
296
296
|
this.lastWidth = newWidth;
|
|
297
297
|
};
|
|
298
298
|
SignatureBase.prototype.endDraw = function () {
|
|
299
|
+
if (isNullOrUndefined(this.pointColl)) {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
;
|
|
299
303
|
var canDrawCurve = this.pointColl.length > 2;
|
|
300
304
|
var point = this.pointColl[0];
|
|
301
305
|
if (!canDrawCurve && point) {
|
|
@@ -565,7 +569,7 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
565
569
|
var args = { actionName: 'clear' };
|
|
566
570
|
this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);
|
|
567
571
|
this.tempContext.clearRect(0, 0, this.tempContext.canvas.width, this.tempContext.canvas.height);
|
|
568
|
-
if (this.saveWithBackground) {
|
|
572
|
+
if (this.saveWithBackground && this.backgroundImage) {
|
|
569
573
|
this.setBackgroundImage(this.backgroundImage, 'temp');
|
|
570
574
|
}
|
|
571
575
|
this.internalRefresh();
|
package/src/input/input.js
CHANGED
|
@@ -92,7 +92,7 @@ export var Input;
|
|
|
92
92
|
if (parent.classList.contains('e-input-group') || parent.classList.contains('e-outline') || parent.classList.contains('e-filled')) {
|
|
93
93
|
parent.classList.add('e-input-focus');
|
|
94
94
|
}
|
|
95
|
-
if (args.floatLabelType
|
|
95
|
+
if (args.floatLabelType !== 'Never') {
|
|
96
96
|
setTimeout(function () {
|
|
97
97
|
Input.calculateWidth(args.element, parent);
|
|
98
98
|
}, 80);
|
|
@@ -103,7 +103,7 @@ export var Input;
|
|
|
103
103
|
if (parent.classList.contains('e-input-group') || parent.classList.contains('e-outline') || parent.classList.contains('e-filled')) {
|
|
104
104
|
parent.classList.remove('e-input-focus');
|
|
105
105
|
}
|
|
106
|
-
if (args.floatLabelType
|
|
106
|
+
if (args.floatLabelType !== 'Never') {
|
|
107
107
|
setTimeout(function () {
|
|
108
108
|
Input.calculateWidth(args.element, parent);
|
|
109
109
|
}, 80);
|
|
@@ -508,7 +508,7 @@ export var Input;
|
|
|
508
508
|
*/
|
|
509
509
|
function setValue(value, element, floatLabelType, clearButton) {
|
|
510
510
|
element.value = value;
|
|
511
|
-
if (floatLabelType
|
|
511
|
+
if (floatLabelType !== 'Never') {
|
|
512
512
|
calculateWidth(element, element.parentElement);
|
|
513
513
|
}
|
|
514
514
|
if ((!isNullOrUndefined(floatLabelType)) && floatLabelType === 'Auto') {
|
|
@@ -326,7 +326,7 @@ var MaskedTextBox = /** @class */ (function (_super) {
|
|
|
326
326
|
if (this.placeholder && !this.isFocus) {
|
|
327
327
|
this.setMaskPlaceholder(false, false);
|
|
328
328
|
}
|
|
329
|
-
if (this.value === "") {
|
|
329
|
+
if (this.value === "" && oldProp.value != null) {
|
|
330
330
|
this.element.selectionStart = 0;
|
|
331
331
|
this.element.selectionEnd = 0;
|
|
332
332
|
}
|
package/src/slider/slider.js
CHANGED
|
@@ -2605,6 +2605,10 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2605
2605
|
if (args !== 'tooltip') {
|
|
2606
2606
|
this.updateConfig();
|
|
2607
2607
|
}
|
|
2608
|
+
if (this.readonly) {
|
|
2609
|
+
this.sliderContainer.classList.remove(classNames.readonly);
|
|
2610
|
+
this.setReadOnly();
|
|
2611
|
+
}
|
|
2608
2612
|
};
|
|
2609
2613
|
Slider.prototype.changeRtl = function () {
|
|
2610
2614
|
if (!this.enableRtl && this.type === 'Range') {
|
|
@@ -2748,6 +2752,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2748
2752
|
break;
|
|
2749
2753
|
case 'tooltip':
|
|
2750
2754
|
if (!isNullOrUndefined(newProp.tooltip) && !isNullOrUndefined(oldProp.tooltip)) {
|
|
2755
|
+
this.initialTooltip = true;
|
|
2751
2756
|
this.setTooltip(prop);
|
|
2752
2757
|
if (!this.showButtons) {
|
|
2753
2758
|
this.wireEvents();
|