@syncfusion/ej2-inplace-editor 20.1.47 → 20.2.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.
Files changed (65) hide show
  1. package/dist/ej2-inplace-editor.umd.min.js +2 -2
  2. package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-inplace-editor.es2015.js +5 -5
  4. package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
  5. package/dist/es6/ej2-inplace-editor.es5.js +22 -23
  6. package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
  7. package/dist/global/ej2-inplace-editor.min.js +2 -2
  8. package/dist/global/ej2-inplace-editor.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/helpers/e2e/index.js +8 -6
  11. package/helpers/e2e/inplace-editor.js +74 -58
  12. package/package.json +16 -16
  13. package/src/inplace-editor/base/inplace-editor.d.ts +1 -0
  14. package/src/inplace-editor/base/inplace-editor.js +22 -23
  15. package/styles/bootstrap-dark.css +11 -139
  16. package/styles/bootstrap.css +12 -145
  17. package/styles/bootstrap4.css +22 -195
  18. package/styles/bootstrap5-dark.css +20 -141
  19. package/styles/bootstrap5.css +20 -141
  20. package/styles/fabric-dark.css +11 -137
  21. package/styles/fabric.css +11 -137
  22. package/styles/fluent-dark.css +12 -151
  23. package/styles/fluent.css +11 -150
  24. package/styles/highcontrast-light.css +12 -172
  25. package/styles/highcontrast.css +12 -172
  26. package/styles/inplace-editor/_fluent-definition.scss +1 -1
  27. package/styles/inplace-editor/_fusionnew-definition.scss +68 -0
  28. package/styles/inplace-editor/_material3-definition.scss +68 -0
  29. package/styles/inplace-editor/_theme.scss +8 -0
  30. package/styles/inplace-editor/bootstrap-dark.css +11 -139
  31. package/styles/inplace-editor/bootstrap.css +12 -145
  32. package/styles/inplace-editor/bootstrap4.css +22 -195
  33. package/styles/inplace-editor/bootstrap5-dark.css +20 -141
  34. package/styles/inplace-editor/bootstrap5.css +20 -141
  35. package/styles/inplace-editor/fabric-dark.css +11 -137
  36. package/styles/inplace-editor/fabric.css +11 -137
  37. package/styles/inplace-editor/fluent-dark.css +12 -151
  38. package/styles/inplace-editor/fluent.css +11 -150
  39. package/styles/inplace-editor/highcontrast-light.css +12 -172
  40. package/styles/inplace-editor/highcontrast.css +12 -172
  41. package/styles/inplace-editor/icons/_fusionnew.scss +19 -0
  42. package/styles/inplace-editor/icons/_material3.scss +19 -0
  43. package/styles/inplace-editor/material-dark.css +7 -126
  44. package/styles/inplace-editor/material.css +7 -130
  45. package/styles/inplace-editor/tailwind-dark.css +9 -128
  46. package/styles/inplace-editor/tailwind.css +9 -128
  47. package/styles/material-dark.css +7 -126
  48. package/styles/material.css +7 -130
  49. package/styles/tailwind-dark.css +9 -128
  50. package/styles/tailwind.css +9 -128
  51. package/dist/ts/inplace-editor/base/classes.ts +0 -63
  52. package/dist/ts/inplace-editor/base/events.ts +0 -18
  53. package/dist/ts/inplace-editor/base/inplace-editor.ts +0 -1750
  54. package/dist/ts/inplace-editor/base/interface.ts +0 -129
  55. package/dist/ts/inplace-editor/base/models.ts +0 -49
  56. package/dist/ts/inplace-editor/base/util.ts +0 -106
  57. package/dist/ts/inplace-editor/modules/auto-complete.ts +0 -65
  58. package/dist/ts/inplace-editor/modules/base-module.ts +0 -74
  59. package/dist/ts/inplace-editor/modules/color-picker.ts +0 -55
  60. package/dist/ts/inplace-editor/modules/combo-box.ts +0 -63
  61. package/dist/ts/inplace-editor/modules/date-range-picker.ts +0 -55
  62. package/dist/ts/inplace-editor/modules/multi-select.ts +0 -88
  63. package/dist/ts/inplace-editor/modules/rte.ts +0 -72
  64. package/dist/ts/inplace-editor/modules/slider.ts +0 -59
  65. package/dist/ts/inplace-editor/modules/time-picker.ts +0 -54
@@ -289,29 +289,27 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
289
289
  * @param {string} element - Specifies the element for which In-place editor applies.
290
290
  */
291
291
  function InPlaceEditor(options, element) {
292
- var _this = _super.call(this, options, element) || this;
293
- _this.initRender = true;
294
- _this.isTemplate = false;
295
- _this.isVue = false;
296
- _this.isExtModule = false;
297
- _this.submitBtn = undefined;
298
- _this.cancelBtn = undefined;
299
- _this.isClearTarget = false;
300
- _this.btnElements = undefined;
301
- _this.dataManager = undefined;
302
- _this.oldValue = undefined;
303
- _this.divComponents = ['RTE', 'Slider'];
304
- _this.clearComponents = ['AutoComplete', 'Mask', 'Text'];
305
- _this.dateType = ['Date', 'DateTime', 'Time'];
306
- _this.inputDataEle = ['Date', 'DateTime', 'DateRange', 'Time', 'Numeric'];
307
- _this.dropDownEle = ['AutoComplete', 'ComboBox', 'DropDownList', 'MultiSelect'];
308
- _this.moduleList = ['AutoComplete', 'Color', 'ComboBox', 'DateRange', 'MultiSelect', 'RTE', 'Slider', 'Time'];
309
- /**
310
- * @hidden
311
- */
312
- _this.needsID = true;
313
- return _this;
292
+ return _super.call(this, options, element) || this;
314
293
  }
294
+ InPlaceEditor.prototype.initializeValue = function () {
295
+ this.needsID = true;
296
+ this.initRender = true;
297
+ this.isTemplate = false;
298
+ this.isVue = false;
299
+ this.isExtModule = false;
300
+ this.submitBtn = undefined;
301
+ this.cancelBtn = undefined;
302
+ this.isClearTarget = false;
303
+ this.btnElements = undefined;
304
+ this.dataManager = undefined;
305
+ this.oldValue = undefined;
306
+ this.divComponents = ['RTE', 'Slider'];
307
+ this.clearComponents = ['AutoComplete', 'Mask', 'Text'];
308
+ this.dateType = ['Date', 'DateTime', 'Time'];
309
+ this.inputDataEle = ['Date', 'DateTime', 'DateRange', 'Time', 'Numeric'];
310
+ this.dropDownEle = ['AutoComplete', 'ComboBox', 'DropDownList', 'MultiSelect'];
311
+ this.moduleList = ['AutoComplete', 'Color', 'ComboBox', 'DateRange', 'MultiSelect', 'RTE', 'Slider', 'Time'];
312
+ };
315
313
  /**
316
314
  * Initialize the event handler
317
315
  *
@@ -319,6 +317,7 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
319
317
  * @private
320
318
  */
321
319
  InPlaceEditor.prototype.preRender = function () {
320
+ this.initializeValue();
322
321
  this.onScrollResizeHandler = this.scrollResizeHandler.bind(this);
323
322
  if (isNullOrUndefined(this.model)) {
324
323
  this.setProperties({ model: {} }, true);
@@ -630,7 +629,7 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
630
629
  if (Object.keys(args.model).length > 0) {
631
630
  var btnEle = this.createElement('button', {
632
631
  className: args.className,
633
- attrs: { 'type': args.type, 'title': this.getLocale(args.title, args.constant) }
632
+ attrs: { 'type': args.type, 'title': (args.constant == "save") ? (isNullOrUndefined(this.saveButton.content) ? this.getLocale(args.title, args.constant) : this.saveButton.content) : (isNullOrUndefined(this.cancelButton.content) ? this.getLocale(args.title, args.constant) : this.cancelButton.content) }
634
633
  });
635
634
  args.container.appendChild(btnEle);
636
635
  btnObj = new Button(args.model, btnEle);