@syncfusion/ej2-inplace-editor 20.4.48 → 21.1.35

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/ej2-inplace-editor.min.js +2 -2
  3. package/dist/ej2-inplace-editor.umd.min.js +2 -2
  4. package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-inplace-editor.es2015.js +57 -84
  6. package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-inplace-editor.es5.js +58 -85
  8. package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
  9. package/dist/global/ej2-inplace-editor.min.js +2 -2
  10. package/dist/global/ej2-inplace-editor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +17 -17
  13. package/src/inplace-editor/base/inplace-editor-model.d.ts +1 -2
  14. package/src/inplace-editor/base/inplace-editor.js +55 -83
  15. package/src/inplace-editor/base/interface.d.ts +1 -0
  16. package/src/inplace-editor/base/models-model.d.ts +2 -0
  17. package/src/inplace-editor/base/models.d.ts +2 -0
  18. package/src/inplace-editor/base/models.js +0 -2
  19. package/src/inplace-editor/modules/combo-box.d.ts +2 -0
  20. package/src/inplace-editor/modules/combo-box.js +2 -0
  21. package/src/inplace-editor/modules/date-range-picker.d.ts +1 -0
  22. package/src/inplace-editor/modules/date-range-picker.js +1 -0
  23. package/styles/inplace-editor/_bootstrap-dark-definition.scss +0 -1
  24. package/styles/inplace-editor/_bootstrap-definition.scss +0 -1
  25. package/styles/inplace-editor/_bootstrap4-definition.scss +0 -1
  26. package/styles/inplace-editor/_bootstrap5-definition.scss +0 -2
  27. package/styles/inplace-editor/_fabric-dark-definition.scss +0 -1
  28. package/styles/inplace-editor/_fabric-definition.scss +0 -1
  29. package/styles/inplace-editor/_fluent-definition.scss +0 -2
  30. package/styles/inplace-editor/_fusionnew-definition.scss +0 -2
  31. package/styles/inplace-editor/_highcontrast-definition.scss +0 -1
  32. package/styles/inplace-editor/_highcontrast-light-definition.scss +0 -1
  33. package/styles/inplace-editor/_layout.scss +9 -9
  34. package/styles/inplace-editor/_material-dark-definition.scss +0 -1
  35. package/styles/inplace-editor/_material-definition.scss +0 -1
  36. package/styles/inplace-editor/_tailwind-definition.scss +0 -2
  37. package/styles/inplace-editor/_theme.scss +12 -12
  38. package/styles/inplace-editor/_material3-definition.scss +0 -71
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.4.48
3
+ * version : 21.1.35
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.42",
3
+ "_id": "@syncfusion/ej2-inplace-editor@19.10.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-3F948w3GkP2ylMwsfYFTgiQYWzO0y8V4Iyg2b+4hd34zYQurg9lAjMdpsjx7x288cd9rwh7Yz5FglM2Y1tpG3g==",
5
+ "_integrity": "sha512-16CH8ybJb5uOrm5Ix1iWfPczXAtLQRSW+IajHmUHjLcmwPxTJiglwyi3uG1chv080XRRtdvYGe3MMgBBNOk0rw==",
6
6
  "_location": "/@syncfusion/ej2-inplace-editor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,10 +24,10 @@
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.42.tgz",
28
- "_shasum": "9537cbe8e43dfdb2ad46256d839f7595cb2cba92",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-19.10.3.tgz",
28
+ "_shasum": "bbe31ef86cb3c08d55f3fb60dbd00807354644e7",
29
29
  "_spec": "@syncfusion/ej2-inplace-editor@*",
30
- "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
+ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
31
31
  "author": {
32
32
  "name": "Syncfusion Inc."
33
33
  },
@@ -36,17 +36,17 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~20.4.48",
40
- "@syncfusion/ej2-buttons": "~20.4.48",
41
- "@syncfusion/ej2-calendars": "~20.4.48",
42
- "@syncfusion/ej2-data": "~20.4.48",
43
- "@syncfusion/ej2-dropdowns": "~20.4.48",
44
- "@syncfusion/ej2-inputs": "~20.4.48",
45
- "@syncfusion/ej2-lists": "~20.4.48",
46
- "@syncfusion/ej2-navigations": "~20.4.48",
47
- "@syncfusion/ej2-popups": "~20.4.48",
48
- "@syncfusion/ej2-richtexteditor": "~20.4.48",
49
- "@syncfusion/ej2-splitbuttons": "~20.4.48"
39
+ "@syncfusion/ej2-base": "~21.1.35",
40
+ "@syncfusion/ej2-buttons": "~21.1.35",
41
+ "@syncfusion/ej2-calendars": "~21.1.35",
42
+ "@syncfusion/ej2-data": "~21.1.35",
43
+ "@syncfusion/ej2-dropdowns": "~21.1.35",
44
+ "@syncfusion/ej2-inputs": "~21.1.35",
45
+ "@syncfusion/ej2-lists": "~21.1.35",
46
+ "@syncfusion/ej2-navigations": "~21.1.35",
47
+ "@syncfusion/ej2-popups": "~21.1.35",
48
+ "@syncfusion/ej2-richtexteditor": "~21.1.35",
49
+ "@syncfusion/ej2-splitbuttons": "~21.1.35"
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.48",
72
+ "version": "21.1.35",
73
73
  "sideEffects": false
74
74
  }
@@ -1,4 +1,4 @@
1
- import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, Event, EmitType, select } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, EventHandler, setStyleAttribute, Complex, ModuleDeclaration } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, closest, extend, L10n, compile, Browser, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { updateBlazorTemplate, resetBlazorTemplate, SanitizeHtmlHelper, getValue, isBlazor } from '@syncfusion/ej2-base';import { DataManager, UrlAdaptor, Query, WebApiAdaptor, ODataV4Adaptor, ReturnOption, Predicate } from '@syncfusion/ej2-data';import { Button, ButtonModel } from '@syncfusion/ej2-buttons';import { RichTextEditorModel } from '@syncfusion/ej2-richtexteditor';import { DatePicker, DatePickerModel, DateTimePicker, DateRange, RangeEventArgs } from '@syncfusion/ej2-calendars';import { DateTimePickerModel, DateRangePickerModel, TimePickerModel } from '@syncfusion/ej2-calendars';import { createSpinner, hideSpinner, SpinnerArgs, showSpinner} from '@syncfusion/ej2-popups';import { Tooltip, TooltipEventArgs, TipPointerPosition } from '@syncfusion/ej2-popups';import { NumericTextBox, NumericTextBoxModel, TextBox, TextBoxModel, SliderChangeEventArgs,ValidArgs } from '@syncfusion/ej2-inputs';import { ColorPickerModel, FormValidator, MaskedTextBox, MaskedTextBoxModel, SliderModel } from '@syncfusion/ej2-inputs';import { ChangeEventArgs as InputChangeEventArgs, ColorPickerEventArgs } from '@syncfusion/ej2-inputs';import { AutoCompleteModel, ComboBoxModel, DropDownList, DropDownListModel, MultiSelectModel } from '@syncfusion/ej2-dropdowns';import { MultiSelectChangeEventArgs, ChangeEventArgs as DropDownsChangeEventArgs } from '@syncfusion/ej2-dropdowns';import { Rte } from '../modules/rte';import { Slider } from '../modules/slider';import { ComboBox } from '../modules/combo-box';import { TimePicker } from '../modules/time-picker';import { MultiSelect } from '../modules/multi-select';import { ColorPicker } from '../modules/color-picker';import { AutoComplete } from '../modules/auto-complete';import { DateRangePicker } from '../modules/date-range-picker';import * as events from './events';import * as classes from './classes';import { PopupSettings, modulesList, localeConstant } from './models';import { PopupSettingsModel } from './models-model';import { ActionBeginEventArgs, ActionEventArgs, FormEventArgs, ValidateEventArgs, IButton, BeginEditEventArgs } from './interface';import { ChangeEventArgs, EndEditEventArgs } from './interface';import { parseValue, getCompValue, encode } from './util';
1
+ import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, Event, EmitType, select } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, EventHandler, setStyleAttribute, Complex, ModuleDeclaration } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, closest, extend, L10n, compile, Browser, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { updateBlazorTemplate, resetBlazorTemplate, SanitizeHtmlHelper, getValue, isBlazor } from '@syncfusion/ej2-base';import { DataManager, UrlAdaptor, Query, WebApiAdaptor, ODataV4Adaptor, ReturnOption, Predicate } from '@syncfusion/ej2-data';import { Button, ButtonModel } from '@syncfusion/ej2-buttons';import { RichTextEditorModel } from '@syncfusion/ej2-richtexteditor';import { DatePicker, DatePickerModel, DateTimePicker, DateRange, RangeEventArgs } from '@syncfusion/ej2-calendars';import { DateTimePickerModel, DateRangePickerModel, TimePickerModel } from '@syncfusion/ej2-calendars';import { createSpinner, hideSpinner, SpinnerArgs, showSpinner} from '@syncfusion/ej2-popups';import { Tooltip, TooltipEventArgs, TipPointerPosition } from '@syncfusion/ej2-popups';import { NumericTextBox, NumericTextBoxModel, TextBox, TextBoxModel, SliderChangeEventArgs, ValidArgs } from '@syncfusion/ej2-inputs';import { ColorPickerModel, FormValidator, MaskedTextBox, MaskedTextBoxModel, SliderModel } from '@syncfusion/ej2-inputs';import { ChangeEventArgs as InputChangeEventArgs, ColorPickerEventArgs } from '@syncfusion/ej2-inputs';import { AutoCompleteModel, ComboBoxModel, DropDownList, DropDownListModel, MultiSelectModel } from '@syncfusion/ej2-dropdowns';import { MultiSelectChangeEventArgs, ChangeEventArgs as DropDownsChangeEventArgs } from '@syncfusion/ej2-dropdowns';import { Rte } from '../modules/rte';import { Slider } from '../modules/slider';import { ComboBox } from '../modules/combo-box';import { TimePicker } from '../modules/time-picker';import { MultiSelect } from '../modules/multi-select';import { ColorPicker } from '../modules/color-picker';import { AutoComplete } from '../modules/auto-complete';import { DateRangePicker } from '../modules/date-range-picker';import * as events from './events';import * as classes from './classes';import { PopupSettings, modulesList, localeConstant } from './models';import { PopupSettingsModel } from './models-model';import { ActionBeginEventArgs, ActionEventArgs, FormEventArgs, ValidateEventArgs, IButton, BeginEditEventArgs } from './interface';import { ChangeEventArgs, EndEditEventArgs } from './interface';import { parseValue, getCompValue, encode } from './util';
2
2
  import {RenderMode,AdaptorType,InputType,EditableType,textOptionType,ActionBlur,BeforeSanitizeHtmlArgs} from "./inplace-editor";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -244,7 +244,6 @@ export interface InPlaceEditorModel extends ComponentModel{
244
244
  *
245
245
  * @default null
246
246
  */
247
- /* eslint-disable */
248
247
  validationRules?: { [name: string]: { [rule: string]: Object } };
249
248
 
250
249
  /**
@@ -109,7 +109,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
109
109
  this.updateAdaptor();
110
110
  this.appendValueElement();
111
111
  this.updateValue();
112
- // eslint-disable-next-line
113
112
  this.textOption === 'Never' ?
114
113
  this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
115
114
  : this.renderInitialValue();
@@ -124,7 +123,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
124
123
  var allClassName = val.split(' ');
125
124
  for (var i = 0; i < allClassName.length; i++) {
126
125
  if (allClassName[i].trim() !== '') {
127
- // eslint-disable-next-line
128
126
  action === 'add' ? addClass([this.element], [allClassName[i]]) : removeClass([this.element], [allClassName[i]]);
129
127
  }
130
128
  }
@@ -166,14 +164,11 @@ var InPlaceEditor = /** @class */ (function (_super) {
166
164
  var query = isNOU(model.query) ? new Query() : model.query;
167
165
  if (model.dataSource instanceof DataManager) {
168
166
  model.dataSource.executeQuery(this.getInitQuery(model, query)).then(function (e) {
169
- // eslint-disable-next-line
170
167
  _this.updateInitValue(mText, mVal, e.result);
171
168
  });
172
169
  }
173
170
  else {
174
- this.updateInitValue(mText, mVal, new DataManager(model.dataSource).executeLocal(
175
- // eslint-disable-next-line
176
- this.getInitQuery(model, query)));
171
+ this.updateInitValue(mText, mVal, new DataManager(model.dataSource).executeLocal(this.getInitQuery(model, query)));
177
172
  }
178
173
  };
179
174
  InPlaceEditor.prototype.getInitQuery = function (model, query) {
@@ -193,7 +188,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
193
188
  }
194
189
  return query.where(predicate);
195
190
  };
196
- // eslint-disable-next-line
197
191
  InPlaceEditor.prototype.updateInitValue = function (mText, mVal, result) {
198
192
  if (result.length <= 0) {
199
193
  return;
@@ -213,7 +207,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
213
207
  this.valueWrap.classList.remove(classes.LOAD);
214
208
  };
215
209
  InPlaceEditor.prototype.renderValue = function (val) {
216
- // eslint-disable-next-line
217
210
  this.enableHtmlSanitizer && this.type !== 'RTE' && this.type !== 'MultiSelect' ? this.valueEle.innerText = val :
218
211
  (this.valueEle.innerHTML = this.enableHtmlParse ? val : encode(val));
219
212
  if (this.type === 'Color') {
@@ -241,7 +234,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
241
234
  if (this.beginEditArgs.cancel) {
242
235
  return;
243
236
  }
244
- // eslint-disable-next-line
245
237
  var tipOptions = undefined;
246
238
  var target = select('.' + classes.VALUE_WRAPPER, this.element);
247
239
  if (this.editableOn !== 'EditIconClick') {
@@ -286,7 +278,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
286
278
  }
287
279
  addClass([this.valueWrap], [classes.OPEN]);
288
280
  this.setProperties({ enableEditMode: true }, true);
289
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
290
281
  if (this.isReact) {
291
282
  this.renderReactTemplates();
292
283
  }
@@ -442,7 +433,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
442
433
  break;
443
434
  case 'Numeric':
444
435
  if (this.model.value) {
445
- // eslint-disable-next-line no-useless-escape
446
436
  var expRegex = new RegExp('[eE][\-+]?([0-9]+)');
447
437
  if (expRegex.test(this.model.value)) {
448
438
  this.model.value = this.model.value;
@@ -512,7 +502,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
512
502
  InPlaceEditor.prototype.getEditElement = function () {
513
503
  return select('.' + classes.ELEMENTS, this.formEle);
514
504
  };
515
- // eslint-disable-next-line
516
505
  InPlaceEditor.prototype.getLocale = function (prop, val) {
517
506
  return new L10n('inplace-editor', prop, this.locale).getConstant(val);
518
507
  };
@@ -520,7 +509,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
520
509
  return (!this.isEmpty(val)) ? val : this.emptyText;
521
510
  };
522
511
  InPlaceEditor.prototype.extendModelValue = function (val) {
523
- // eslint-disable-next-line
524
512
  var model = this.model;
525
513
  extend(model, { value: val });
526
514
  this.setProperties({ model: model }, true);
@@ -599,18 +587,15 @@ var InPlaceEditor = /** @class */ (function (_super) {
599
587
  }
600
588
  };
601
589
  InPlaceEditor.prototype.setRtl = function (value) {
602
- // eslint-disable-next-line
603
590
  value ? addClass([this.element], [classes.RTL]) : removeClass([this.element], [classes.RTL]);
604
591
  };
605
592
  InPlaceEditor.prototype.setFocus = function () {
606
593
  if (this.isTemplate) {
607
594
  return;
608
595
  }
609
- // eslint-disable-next-line
610
596
  this.isExtModule ? this.notify(events.setFocus, {}) : this.componentObj.element.focus();
611
597
  };
612
598
  InPlaceEditor.prototype.removeEditor = function (isBlazorDestroy) {
613
- // eslint-disable-next-line
614
599
  var blazorContain = Object.keys(window);
615
600
  if (isBlazor() && !this.isStringTemplate) {
616
601
  resetBlazorTemplate(this.element.id + 'template', 'Template');
@@ -647,7 +632,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
647
632
  this.valueWrap.parentElement.setAttribute('title', this.getLocale(localeConstant[this.editableOn], titleConstant));
648
633
  }
649
634
  }
650
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
651
635
  if (this.isReact) {
652
636
  this.clearTemplate();
653
637
  }
@@ -686,7 +670,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
686
670
  this.submitBtn = undefined;
687
671
  }
688
672
  if (!isNOU(this.cancelBtn)) {
689
- EventHandler.remove(this.cancelBtn.element, 'mousedown', this.cancelBtnClick);
673
+ EventHandler.remove(this.cancelBtn.element, 'mouseup', this.cancelBtnClick);
690
674
  EventHandler.remove(this.cancelBtn.element, 'keydown', this.btnKeyDownHandler);
691
675
  this.cancelBtn.destroy();
692
676
  this.cancelBtn = undefined;
@@ -718,7 +702,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
718
702
  _this.dataManager.executeQuery(_this.getQuery(actionBeginArgs.data), _this.successHandler.bind(_this), _this.failureHandler.bind(_this));
719
703
  }
720
704
  else {
721
- // eslint-disable-next-line
722
705
  var crud = _this.dataManager.insert(actionBeginArgs.data);
723
706
  crud.then(function (e) { return _this.successHandler(e); }).catch(function (e) { return _this.failureHandler(e); });
724
707
  }
@@ -739,12 +722,10 @@ var InPlaceEditor = /** @class */ (function (_super) {
739
722
  };
740
723
  InPlaceEditor.prototype.templateCompile = function (trgEle, tempStr) {
741
724
  var tempEle;
742
- // eslint-disable-next-line
743
725
  var blazorContain = Object.keys(window);
744
726
  if (typeof tempStr === 'string') {
745
727
  tempStr = tempStr.trim();
746
728
  }
747
- // eslint-disable-next-line
748
729
  var compiler = compile(tempStr);
749
730
  if (!isNOU(compiler)) {
750
731
  var isString = (isBlazor() &&
@@ -774,7 +755,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
774
755
  helper: null
775
756
  };
776
757
  extend(item_1, item_1, beforeEvent);
777
- // eslint-disable-next-line
778
758
  this.trigger('beforeSanitizeHtml', item_1, function (args) {
779
759
  if (item_1.cancel && !isNOU(item_1.helper)) {
780
760
  value = item_1.helper(value);
@@ -810,14 +790,12 @@ var InPlaceEditor = /** @class */ (function (_super) {
810
790
  }
811
791
  };
812
792
  InPlaceEditor.prototype.disable = function (value) {
813
- // eslint-disable-next-line
814
793
  value ? addClass([this.element], [classes.DISABLE]) : removeClass([this.element], [classes.DISABLE]);
815
794
  };
816
795
  InPlaceEditor.prototype.enableEditor = function (val, isInit) {
817
796
  if (isInit && !val) {
818
797
  return;
819
798
  }
820
- // eslint-disable-next-line
821
799
  (val) ? this.renderEditor() : this.cancelHandler('cancel');
822
800
  };
823
801
  InPlaceEditor.prototype.checkValidation = function (fromSubmit, isValidate) {
@@ -901,11 +879,9 @@ var InPlaceEditor = /** @class */ (function (_super) {
901
879
  return;
902
880
  }
903
881
  var inputEle = select('.e-input-group', this.formEle);
904
- // eslint-disable-next-line
905
882
  var errorClass = function (element, val, action) {
906
883
  [].slice.call(element).forEach(function (ele) {
907
884
  if (ele) {
908
- // eslint-disable-next-line
909
885
  action === 'add' ? addClass([ele], [val]) : removeClass([ele], [val]);
910
886
  }
911
887
  });
@@ -982,7 +958,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
982
958
  EventHandler.add(this.submitBtn.element, 'keydown', this.btnKeyDownHandler, this);
983
959
  }
984
960
  if (!isNOU(this.cancelBtn)) {
985
- EventHandler.add(this.cancelBtn.element, 'mousedown', this.cancelBtnClick, this);
961
+ EventHandler.add(this.cancelBtn.element, 'mouseup', this.cancelBtnClick, this);
986
962
  EventHandler.add(this.cancelBtn.element, 'keydown', this.btnKeyDownHandler, this);
987
963
  }
988
964
  };
@@ -1104,17 +1080,14 @@ var InPlaceEditor = /** @class */ (function (_super) {
1104
1080
  this.tipObj.refresh(tipTarget);
1105
1081
  }
1106
1082
  };
1107
- // eslint-disable-next-line
1108
1083
  InPlaceEditor.prototype.successHandler = function (e) {
1109
1084
  this.initRender = false;
1110
1085
  var eventArgs = { data: e, value: this.getSendValue() };
1111
1086
  this.triggerSuccess(eventArgs);
1112
1087
  };
1113
- // eslint-disable-next-line
1114
1088
  InPlaceEditor.prototype.failureHandler = function (e) {
1115
1089
  var _this = this;
1116
1090
  var eventArgs = { data: e, value: this.getSendValue() };
1117
- // eslint-disable-next-line
1118
1091
  this.trigger('actionFailure', eventArgs, function (args) {
1119
1092
  _this.removeSpinner('submit');
1120
1093
  if (_this.mode === 'Popup') {
@@ -1215,7 +1188,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
1215
1188
  this.element.focus();
1216
1189
  this.editEle = select('.' + classes.INPUT, this.formEle);
1217
1190
  var errEle = null;
1218
- // eslint-disable-next-line
1219
1191
  errEle = select('.' + classes.ERROR, this.editEle);
1220
1192
  if (!this.isTemplate) {
1221
1193
  this.setValue();
@@ -1249,7 +1221,6 @@ var InPlaceEditor = /** @class */ (function (_super) {
1249
1221
  if (!(isBlazor() && this.isServerRendered)) {
1250
1222
  _super.prototype.destroy.call(this);
1251
1223
  }
1252
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1253
1224
  if (this.isReact) {
1254
1225
  this.clearTemplate();
1255
1226
  }
@@ -1291,58 +1262,59 @@ var InPlaceEditor = /** @class */ (function (_super) {
1291
1262
  * @private
1292
1263
  */
1293
1264
  InPlaceEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
1294
- if (this.isEditorOpen()) {
1295
- var editModeChanged = 'enableEditMode' in newProp;
1296
- if ((editModeChanged && oldProp.enableEditMode && !newProp.enableEditMode) || (!editModeChanged && this.enableEditMode)) {
1297
- this.triggerEndEdit('cancel');
1298
- }
1299
- else {
1300
- this.removeEditor();
1265
+ var checkValidation = this.validationRules ? !isNOU(this.element.querySelectorAll('.' + classes.ERROR)) &&
1266
+ this.element.querySelectorAll('.' + classes.ERROR).length > 0 ? false : true : true;
1267
+ if (checkValidation) {
1268
+ if (this.isEditorOpen()) {
1269
+ var editModeChanged = 'enableEditMode' in newProp;
1270
+ if ((editModeChanged && oldProp.enableEditMode && !newProp.enableEditMode) || (!editModeChanged && this.enableEditMode)) {
1271
+ this.triggerEndEdit('cancel');
1272
+ }
1273
+ else {
1274
+ this.removeEditor();
1275
+ }
1301
1276
  }
1302
- }
1303
- for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
1304
- var prop = _a[_i];
1305
- switch (prop) {
1306
- case 'showButtons':
1307
- // eslint-disable-next-line
1308
- (newProp.showButtons) ? this.appendButtons(this.formEle) : this.destroyButtons();
1309
- break;
1310
- case 'value':
1311
- this.updateValue();
1312
- // eslint-disable-next-line
1313
- this.textOption === 'Never' ? this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
1314
- : this.renderInitialValue();
1315
- break;
1316
- case 'emptyText':
1317
- // eslint-disable-next-line
1318
- this.textOption === 'Never' ? this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
1319
- : this.renderInitialValue();
1320
- break;
1321
- case 'template':
1322
- this.checkIsTemplate();
1323
- break;
1324
- case 'disabled':
1325
- this.disable(newProp.disabled);
1326
- break;
1327
- case 'enableRtl':
1328
- this.setRtl(newProp.enableRtl);
1329
- break;
1330
- case 'cssClass':
1331
- this.setClass('remove', oldProp.cssClass);
1332
- this.setClass('add', newProp.cssClass);
1333
- break;
1334
- case 'mode':
1335
- this.enableEditor(this.enableEditMode);
1336
- break;
1337
- case 'enableEditMode':
1338
- this.enableEditor(newProp.enableEditMode);
1339
- break;
1340
- case 'editableOn':
1341
- this.unWireEditEvent(oldProp.editableOn);
1342
- if (newProp.editableOn !== 'EditIconClick') {
1343
- this.wireEditEvent(newProp.editableOn);
1344
- }
1345
- break;
1277
+ for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
1278
+ var prop = _a[_i];
1279
+ switch (prop) {
1280
+ case 'showButtons':
1281
+ (newProp.showButtons) ? this.appendButtons(this.formEle) : this.destroyButtons();
1282
+ break;
1283
+ case 'value':
1284
+ this.updateValue();
1285
+ this.textOption === 'Never' ? this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
1286
+ : this.renderInitialValue();
1287
+ break;
1288
+ case 'emptyText':
1289
+ this.textOption === 'Never' ? this.renderValue(this.checkValue(parseValue(this.type, this.value, this.model)))
1290
+ : this.renderInitialValue();
1291
+ break;
1292
+ case 'template':
1293
+ this.checkIsTemplate();
1294
+ break;
1295
+ case 'disabled':
1296
+ this.disable(newProp.disabled);
1297
+ break;
1298
+ case 'enableRtl':
1299
+ this.setRtl(newProp.enableRtl);
1300
+ break;
1301
+ case 'cssClass':
1302
+ this.setClass('remove', oldProp.cssClass);
1303
+ this.setClass('add', newProp.cssClass);
1304
+ break;
1305
+ case 'mode':
1306
+ this.enableEditor(this.enableEditMode);
1307
+ break;
1308
+ case 'enableEditMode':
1309
+ this.enableEditor(newProp.enableEditMode);
1310
+ break;
1311
+ case 'editableOn':
1312
+ this.unWireEditEvent(oldProp.editableOn);
1313
+ if (newProp.editableOn !== 'EditIconClick') {
1314
+ this.wireEditEvent(newProp.editableOn);
1315
+ }
1316
+ break;
1317
+ }
1346
1318
  }
1347
1319
  }
1348
1320
  };
@@ -6,6 +6,7 @@ import { AutoComplete, ComboBox, MultiSelect, FieldSettingsModel } from '@syncfu
6
6
  import { RenderMode } from './inplace-editor';
7
7
  /**
8
8
  * Defines component types that can be used in the In-place Editor.
9
+ *
9
10
  * @hidden
10
11
  */
11
12
  export declare type Component = AutoComplete | ColorPicker | ComboBox | DateRangePicker | MultiSelect | RichTextEditor | Slider | TimePicker;
@@ -7,12 +7,14 @@ export interface PopupSettingsModel {
7
7
 
8
8
  /**
9
9
  * Specifies title for the editor popup.
10
+ *
10
11
  * @default ''
11
12
  */
12
13
  title?: string;
13
14
 
14
15
  /**
15
16
  * Specifies model for editor popup customization like position, animation,etc.
17
+ *
16
18
  * @default null
17
19
  */
18
20
  model?: TooltipModel;
@@ -6,11 +6,13 @@ import { TooltipModel } from '@syncfusion/ej2-popups';
6
6
  export declare class PopupSettings extends ChildProperty<PopupSettings> {
7
7
  /**
8
8
  * Specifies title for the editor popup.
9
+ *
9
10
  * @default ''
10
11
  */
11
12
  title: string;
12
13
  /**
13
14
  * Specifies model for editor popup customization like position, animation,etc.
15
+ *
14
16
  * @default null
15
17
  */
16
18
  model: TooltipModel;
@@ -39,7 +39,6 @@ export { PopupSettings };
39
39
  * @hidden
40
40
  */
41
41
  export var modulesList = {
42
- /* eslint-disable */
43
42
  'AutoComplete': 'auto-complete',
44
43
  'Color': 'color-picker',
45
44
  'ComboBox': 'combo-box',
@@ -55,7 +54,6 @@ export var modulesList = {
55
54
  */
56
55
  // eslint-disable-next-line
57
56
  export var localeConstant = {
58
- /* eslint-disable */
59
57
  'Click': { 'editAreaClick': 'Click to edit' },
60
58
  'DblClick': { 'editAreaDoubleClick': 'Double click to edit' },
61
59
  'EditIconClick': { 'editAreaClick': 'Click to edit' }
@@ -18,6 +18,7 @@ export declare class ComboBox implements IComponent {
18
18
  showPopup(): void;
19
19
  /**
20
20
  * Destroys the module.
21
+ *
21
22
  * @function destroy
22
23
  * @returns {void}
23
24
  * @hidden
@@ -26,6 +27,7 @@ export declare class ComboBox implements IComponent {
26
27
  updateValue(e: NotifyParams): void;
27
28
  /**
28
29
  * For internal use only - Get the module name.
30
+ *
29
31
  * @returns {string} - returns the string
30
32
  */
31
33
  private getModuleName;
@@ -27,6 +27,7 @@ var ComboBox = /** @class */ (function () {
27
27
  };
28
28
  /**
29
29
  * Destroys the module.
30
+ *
30
31
  * @function destroy
31
32
  * @returns {void}
32
33
  * @hidden
@@ -42,6 +43,7 @@ var ComboBox = /** @class */ (function () {
42
43
  };
43
44
  /**
44
45
  * For internal use only - Get the module name.
46
+ *
45
47
  * @returns {string} - returns the string
46
48
  */
47
49
  ComboBox.prototype.getModuleName = function () {
@@ -13,6 +13,7 @@ export declare class DateRangePicker implements IComponent {
13
13
  focus(): void;
14
14
  /**
15
15
  * For internal use only - Get the module name.
16
+ *
16
17
  * @returns {string} - returns the string
17
18
  */
18
19
  private getModuleName;
@@ -19,6 +19,7 @@ var DateRangePicker = /** @class */ (function () {
19
19
  };
20
20
  /**
21
21
  * For internal use only - Get the module name.
22
+ *
22
23
  * @returns {string} - returns the string
23
24
  */
24
25
  DateRangePicker.prototype.getModuleName = function () {
@@ -1,6 +1,5 @@
1
1
  /*! Bootstrap dark theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'bootstrap-dark' !default;
4
3
  $editor-big-overlay-icon-size: 16px !default;
5
4
  $editor-nrml-overlay-icon-size: 14px !default;
6
5
  $editor-big-value-text-font-size: 15px !default;
@@ -1,6 +1,5 @@
1
1
  /*! Bootstrap theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'bootstrap' !default;
4
3
  $black-color: rgba(0, 0, 0, .25) !default;
5
4
  $editor-big-overlay-icon-size: 16px !default;
6
5
  $editor-nrml-overlay-icon-size: 14px !default;
@@ -1,6 +1,5 @@
1
1
  /*! Bootstrap4 theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'bootstrap4' !default;
4
3
  $black-color: rgba($black, .25) !default;
5
4
  $editor-big-overlay-icon-size: 16px !default;
6
5
  $editor-nrml-overlay-icon-size: 14px !default;
@@ -1,5 +1,3 @@
1
- $inplace-skin: 'bootstrap5' !default;
2
-
3
1
  //Layout Variable Start
4
2
  $editor-big-value-text-font-size: $text-base !default;
5
3
  $editor-nrml-value-text-font-size: $text-sm !default;
@@ -1,6 +1,5 @@
1
1
  /*! Fabric dark theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'fabric-dark' !default;
4
3
  $editor-big-overlay-icon-size: 16px !default;
5
4
  $editor-nrml-overlay-icon-size: 14px !default;
6
5
  $editor-big-value-text-font-size: 15px !default;
@@ -1,6 +1,5 @@
1
1
  /*! Fabric theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'fabric' !default;
4
3
  $black-color: rgba(0, 0, 0, .25) !default;
5
4
  $editor-big-overlay-icon-size: 16px !default;
6
5
  $editor-nrml-overlay-icon-size: 14px !default;
@@ -1,5 +1,3 @@
1
- $inplace-skin: 'FluentUI' !default;
2
-
3
1
  //Layout Variable Start
4
2
  $editor-big-value-text-font-size: $text-base !default;
5
3
  $editor-nrml-value-text-font-size: $text-sm !default;
@@ -1,5 +1,3 @@
1
- $inplace-skin: 'bootstrap5' !default;
2
-
3
1
  //Layout Variable Start
4
2
  $editor-big-value-text-font-size: $text-base !default;
5
3
  $editor-nrml-value-text-font-size: $text-sm !default;
@@ -1,6 +1,5 @@
1
1
  /*! High contrast theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'highcontrast' !default;
4
3
  $editor-big-value-text-font-size: 15px !default;
5
4
  $editor-nrml-value-text-font-size: 14px !default;
6
5
  $editor-big-value-container-padding: 8px 12px !default;
@@ -1,6 +1,5 @@
1
1
  /*! High contrast light theme definitions and variables */
2
2
  /*! Value element styles */
3
- $inplace-skin: 'highcontrast-light' !default;
4
3
  $editor-big-value-text-font-size: 15px !default;
5
4
  $editor-nrml-value-text-font-size: 14px !default;
6
5
  $editor-big-value-container-padding: 8px 12px !default;