@syncfusion/ej2-inplace-editor 20.4.48 → 20.4.54
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 +10 -0
- package/dist/ej2-inplace-editor.min.js +2 -2
- package/dist/ej2-inplace-editor.umd.min.js +2 -2
- package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es2015.js +56 -52
- package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es5.js +57 -53
- package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
- package/dist/global/ej2-inplace-editor.min.js +2 -2
- package/dist/global/ej2-inplace-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +15 -15
- package/src/inplace-editor/base/inplace-editor.js +57 -53
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.54
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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-inplace-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inplace-editor@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-inplace-editor@20.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-CiaEa6rE/qq8iglhSI9KdsjPMkNSoM8bNu9S6UU4MhmUbDAYysbFXGyhboO8dF0bl6BxQfAbrMG0DEMKQ0EGxA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inplace-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"/@syncfusion/ej2-react-inplace-editor",
|
|
25
25
|
"/@syncfusion/ej2-vue-inplace-editor"
|
|
26
26
|
],
|
|
27
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-20.4.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-20.4.48.tgz",
|
|
28
|
+
"_shasum": "5429d7334162027ee255a439740d7a70eb0753b9",
|
|
29
29
|
"_spec": "@syncfusion/ej2-inplace-editor@*",
|
|
30
30
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
40
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
41
|
-
"@syncfusion/ej2-calendars": "~20.4.
|
|
39
|
+
"@syncfusion/ej2-base": "~20.4.51",
|
|
40
|
+
"@syncfusion/ej2-buttons": "~20.4.53",
|
|
41
|
+
"@syncfusion/ej2-calendars": "~20.4.54",
|
|
42
42
|
"@syncfusion/ej2-data": "~20.4.48",
|
|
43
|
-
"@syncfusion/ej2-dropdowns": "~20.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
45
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
47
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
48
|
-
"@syncfusion/ej2-richtexteditor": "~20.4.
|
|
49
|
-
"@syncfusion/ej2-splitbuttons": "~20.4.
|
|
43
|
+
"@syncfusion/ej2-dropdowns": "~20.4.54",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.4.54",
|
|
45
|
+
"@syncfusion/ej2-lists": "~20.4.50",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~20.4.53",
|
|
47
|
+
"@syncfusion/ej2-popups": "~20.4.53",
|
|
48
|
+
"@syncfusion/ej2-richtexteditor": "~20.4.53",
|
|
49
|
+
"@syncfusion/ej2-splitbuttons": "~20.4.50"
|
|
50
50
|
},
|
|
51
51
|
"deprecated": false,
|
|
52
52
|
"description": "A package of Essential JS 2 Inplace editor components, which is used to edit and update the value dynamically in server.",
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
70
70
|
},
|
|
71
71
|
"typings": "index.d.ts",
|
|
72
|
-
"version": "20.4.
|
|
72
|
+
"version": "20.4.54",
|
|
73
73
|
"sideEffects": false
|
|
74
74
|
}
|
|
@@ -686,7 +686,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
|
|
|
686
686
|
this.submitBtn = undefined;
|
|
687
687
|
}
|
|
688
688
|
if (!isNOU(this.cancelBtn)) {
|
|
689
|
-
EventHandler.remove(this.cancelBtn.element, '
|
|
689
|
+
EventHandler.remove(this.cancelBtn.element, 'mouseup', this.cancelBtnClick);
|
|
690
690
|
EventHandler.remove(this.cancelBtn.element, 'keydown', this.btnKeyDownHandler);
|
|
691
691
|
this.cancelBtn.destroy();
|
|
692
692
|
this.cancelBtn = undefined;
|
|
@@ -982,7 +982,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
|
|
|
982
982
|
EventHandler.add(this.submitBtn.element, 'keydown', this.btnKeyDownHandler, this);
|
|
983
983
|
}
|
|
984
984
|
if (!isNOU(this.cancelBtn)) {
|
|
985
|
-
EventHandler.add(this.cancelBtn.element, '
|
|
985
|
+
EventHandler.add(this.cancelBtn.element, 'mouseup', this.cancelBtnClick, this);
|
|
986
986
|
EventHandler.add(this.cancelBtn.element, 'keydown', this.btnKeyDownHandler, this);
|
|
987
987
|
}
|
|
988
988
|
};
|
|
@@ -1291,58 +1291,62 @@ var InPlaceEditor = /** @class */ (function (_super) {
|
|
|
1291
1291
|
* @private
|
|
1292
1292
|
*/
|
|
1293
1293
|
InPlaceEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1294
|
+
var checkValidation = this.validationRules ? !isNOU(this.element.querySelectorAll('.' + classes.ERROR)) &&
|
|
1295
|
+
this.element.querySelectorAll('.' + classes.ERROR).length > 0 ? false : true : true;
|
|
1296
|
+
if (checkValidation) {
|
|
1297
|
+
if (this.isEditorOpen()) {
|
|
1298
|
+
var editModeChanged = 'enableEditMode' in newProp;
|
|
1299
|
+
if ((editModeChanged && oldProp.enableEditMode && !newProp.enableEditMode) || (!editModeChanged && this.enableEditMode)) {
|
|
1300
|
+
this.triggerEndEdit('cancel');
|
|
1301
|
+
}
|
|
1302
|
+
else {
|
|
1303
|
+
this.removeEditor();
|
|
1304
|
+
}
|
|
1301
1305
|
}
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1306
|
+
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
1307
|
+
var prop = _a[_i];
|
|
1308
|
+
switch (prop) {
|
|
1309
|
+
case 'showButtons':
|
|
1310
|
+
// eslint-disable-next-line
|
|
1311
|
+
(newProp.showButtons) ? this.appendButtons(this.formEle) : this.destroyButtons();
|
|
1312
|
+
break;
|
|
1313
|
+
case 'value':
|
|
1314
|
+
this.updateValue();
|
|
1315
|
+
// eslint-disable-next-line
|
|
1316
|
+
this.textOption === 'Never' ? this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
|
|
1317
|
+
: this.renderInitialValue();
|
|
1318
|
+
break;
|
|
1319
|
+
case 'emptyText':
|
|
1320
|
+
// eslint-disable-next-line
|
|
1321
|
+
this.textOption === 'Never' ? this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
|
|
1322
|
+
: this.renderInitialValue();
|
|
1323
|
+
break;
|
|
1324
|
+
case 'template':
|
|
1325
|
+
this.checkIsTemplate();
|
|
1326
|
+
break;
|
|
1327
|
+
case 'disabled':
|
|
1328
|
+
this.disable(newProp.disabled);
|
|
1329
|
+
break;
|
|
1330
|
+
case 'enableRtl':
|
|
1331
|
+
this.setRtl(newProp.enableRtl);
|
|
1332
|
+
break;
|
|
1333
|
+
case 'cssClass':
|
|
1334
|
+
this.setClass('remove', oldProp.cssClass);
|
|
1335
|
+
this.setClass('add', newProp.cssClass);
|
|
1336
|
+
break;
|
|
1337
|
+
case 'mode':
|
|
1338
|
+
this.enableEditor(this.enableEditMode);
|
|
1339
|
+
break;
|
|
1340
|
+
case 'enableEditMode':
|
|
1341
|
+
this.enableEditor(newProp.enableEditMode);
|
|
1342
|
+
break;
|
|
1343
|
+
case 'editableOn':
|
|
1344
|
+
this.unWireEditEvent(oldProp.editableOn);
|
|
1345
|
+
if (newProp.editableOn !== 'EditIconClick') {
|
|
1346
|
+
this.wireEditEvent(newProp.editableOn);
|
|
1347
|
+
}
|
|
1348
|
+
break;
|
|
1349
|
+
}
|
|
1346
1350
|
}
|
|
1347
1351
|
}
|
|
1348
1352
|
};
|