@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.
- 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 +5 -5
- package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es5.js +22 -23
- 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/helpers/e2e/index.js +8 -6
- package/helpers/e2e/inplace-editor.js +74 -58
- package/package.json +16 -16
- package/src/inplace-editor/base/inplace-editor.d.ts +1 -0
- package/src/inplace-editor/base/inplace-editor.js +22 -23
- package/styles/bootstrap-dark.css +11 -139
- package/styles/bootstrap.css +12 -145
- package/styles/bootstrap4.css +22 -195
- package/styles/bootstrap5-dark.css +20 -141
- package/styles/bootstrap5.css +20 -141
- package/styles/fabric-dark.css +11 -137
- package/styles/fabric.css +11 -137
- package/styles/fluent-dark.css +12 -151
- package/styles/fluent.css +11 -150
- package/styles/highcontrast-light.css +12 -172
- package/styles/highcontrast.css +12 -172
- package/styles/inplace-editor/_fluent-definition.scss +1 -1
- package/styles/inplace-editor/_fusionnew-definition.scss +68 -0
- package/styles/inplace-editor/_material3-definition.scss +68 -0
- package/styles/inplace-editor/_theme.scss +8 -0
- package/styles/inplace-editor/bootstrap-dark.css +11 -139
- package/styles/inplace-editor/bootstrap.css +12 -145
- package/styles/inplace-editor/bootstrap4.css +22 -195
- package/styles/inplace-editor/bootstrap5-dark.css +20 -141
- package/styles/inplace-editor/bootstrap5.css +20 -141
- package/styles/inplace-editor/fabric-dark.css +11 -137
- package/styles/inplace-editor/fabric.css +11 -137
- package/styles/inplace-editor/fluent-dark.css +12 -151
- package/styles/inplace-editor/fluent.css +11 -150
- package/styles/inplace-editor/highcontrast-light.css +12 -172
- package/styles/inplace-editor/highcontrast.css +12 -172
- package/styles/inplace-editor/icons/_fusionnew.scss +19 -0
- package/styles/inplace-editor/icons/_material3.scss +19 -0
- package/styles/inplace-editor/material-dark.css +7 -126
- package/styles/inplace-editor/material.css +7 -130
- package/styles/inplace-editor/tailwind-dark.css +9 -128
- package/styles/inplace-editor/tailwind.css +9 -128
- package/styles/material-dark.css +7 -126
- package/styles/material.css +7 -130
- package/styles/tailwind-dark.css +9 -128
- package/styles/tailwind.css +9 -128
- package/dist/ts/inplace-editor/base/classes.ts +0 -63
- package/dist/ts/inplace-editor/base/events.ts +0 -18
- package/dist/ts/inplace-editor/base/inplace-editor.ts +0 -1750
- package/dist/ts/inplace-editor/base/interface.ts +0 -129
- package/dist/ts/inplace-editor/base/models.ts +0 -49
- package/dist/ts/inplace-editor/base/util.ts +0 -106
- package/dist/ts/inplace-editor/modules/auto-complete.ts +0 -65
- package/dist/ts/inplace-editor/modules/base-module.ts +0 -74
- package/dist/ts/inplace-editor/modules/color-picker.ts +0 -55
- package/dist/ts/inplace-editor/modules/combo-box.ts +0 -63
- package/dist/ts/inplace-editor/modules/date-range-picker.ts +0 -55
- package/dist/ts/inplace-editor/modules/multi-select.ts +0 -88
- package/dist/ts/inplace-editor/modules/rte.ts +0 -72
- package/dist/ts/inplace-editor/modules/slider.ts +0 -59
- 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
|
-
|
|
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);
|