@syncfusion/ej2-inplace-editor 20.1.55 → 20.2.36
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 -137
- package/styles/fluent.css +11 -136
- 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 -137
- package/styles/inplace-editor/fluent.css +11 -136
- 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/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.2.36
|
|
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/helpers/e2e/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
define(["require", "exports", "./inplace-editor"], function (require, exports, inplace_editor_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
function __export(m) {
|
|
4
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
__export(inplace_editor_1);
|
|
8
|
+
});
|
|
@@ -1,59 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var InPlaceEditorHelper = (function (_super) {
|
|
18
|
+
__extends(InPlaceEditorHelper, _super);
|
|
19
|
+
function InPlaceEditorHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
27
|
+
InPlaceEditorHelper.prototype.getElement = function () {
|
|
28
|
+
return this.selector('#' + this.id);
|
|
29
|
+
};
|
|
30
|
+
InPlaceEditorHelper.prototype.getValueElement = function () {
|
|
31
|
+
return this.selector('#' + this.id + ' .e-editable-value');
|
|
32
|
+
};
|
|
33
|
+
InPlaceEditorHelper.prototype.getEditIconElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + ' .e-editable-overlay-icon');
|
|
35
|
+
};
|
|
36
|
+
InPlaceEditorHelper.prototype.getPopupElement = function () {
|
|
37
|
+
return this.selector('.e-inplaceeditor-tip');
|
|
38
|
+
};
|
|
39
|
+
InPlaceEditorHelper.prototype.getLoadingElement = function (mode) {
|
|
40
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-loading') : this.selector('#' + this.id + ' .e-editable-loading'));
|
|
41
|
+
};
|
|
42
|
+
InPlaceEditorHelper.prototype.getErrorElement = function (mode) {
|
|
43
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-error') : this.selector('#' + this.id + ' .e-editable-error'));
|
|
44
|
+
};
|
|
45
|
+
InPlaceEditorHelper.prototype.getFormElement = function (mode) {
|
|
46
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-form') : this.selector('#' + this.id + ' .e-editable-form'));
|
|
47
|
+
};
|
|
48
|
+
InPlaceEditorHelper.prototype.getButtonsWrapper = function (mode) {
|
|
49
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-action-buttons') : this.selector('#' + this.id + ' .e-editable-action-buttons'));
|
|
50
|
+
};
|
|
51
|
+
InPlaceEditorHelper.prototype.getSaveButton = function (mode) {
|
|
52
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-btn-save') : this.selector('#' + this.id + ' .e-btn-save'));
|
|
53
|
+
};
|
|
54
|
+
InPlaceEditorHelper.prototype.getCancelButton = function (mode) {
|
|
55
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-btn-cancel') : this.selector('#' + this.id + ' .e-btn-cancel'));
|
|
56
|
+
};
|
|
57
|
+
InPlaceEditorHelper.prototype.getComponentWrapper = function (mode) {
|
|
58
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-component') : this.selector('#' + this.id + ' .e-editable-component'));
|
|
59
|
+
};
|
|
60
|
+
InPlaceEditorHelper.prototype.getComponentElement = function (mode) {
|
|
61
|
+
return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip #' + this.id + '_editor') : this.selector('#' + this.id + ' #' + this.id + '_editor'));
|
|
62
|
+
};
|
|
63
|
+
InPlaceEditorHelper.prototype.getModel = function (property) {
|
|
64
|
+
this.getModel(property);
|
|
65
|
+
};
|
|
66
|
+
InPlaceEditorHelper.prototype.setModel = function (property, value) {
|
|
67
|
+
this.setModel(property, value);
|
|
68
|
+
};
|
|
69
|
+
InPlaceEditorHelper.prototype.invoke = function (fName, args) {
|
|
70
|
+
this.invoke(fName, args);
|
|
71
|
+
};
|
|
72
|
+
return InPlaceEditorHelper;
|
|
73
|
+
}(e2e_1.TestHelper));
|
|
74
|
+
exports.InPlaceEditorHelper = InPlaceEditorHelper;
|
|
75
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-inplace-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inplace-editor@
|
|
3
|
+
"_id": "@syncfusion/ej2-inplace-editor@19.8.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-U84/S1Jvm2/hYe6bmV+kQvG37l59jemGktwnjh5sitETSyv+hUxD/6Q6bmeM6r6MOylznsPlNDtA/x+xNE1byA==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-19.8.1.tgz",
|
|
28
|
+
"_shasum": "9ac8c1c58a66ca63d09a4456a7c627eae702ec96",
|
|
29
29
|
"_spec": "@syncfusion/ej2-inplace-editor@*",
|
|
30
30
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~20.
|
|
40
|
-
"@syncfusion/ej2-buttons": "~20.
|
|
41
|
-
"@syncfusion/ej2-calendars": "~20.
|
|
42
|
-
"@syncfusion/ej2-data": "~20.
|
|
43
|
-
"@syncfusion/ej2-dropdowns": "~20.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.
|
|
45
|
-
"@syncfusion/ej2-lists": "~20.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~20.
|
|
47
|
-
"@syncfusion/ej2-popups": "~20.
|
|
48
|
-
"@syncfusion/ej2-richtexteditor": "~20.
|
|
49
|
-
"@syncfusion/ej2-splitbuttons": "~20.
|
|
39
|
+
"@syncfusion/ej2-base": "~20.2.36",
|
|
40
|
+
"@syncfusion/ej2-buttons": "~20.2.36",
|
|
41
|
+
"@syncfusion/ej2-calendars": "~20.2.36",
|
|
42
|
+
"@syncfusion/ej2-data": "~20.2.36",
|
|
43
|
+
"@syncfusion/ej2-dropdowns": "~20.2.36",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.2.36",
|
|
45
|
+
"@syncfusion/ej2-lists": "~20.2.36",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~20.2.36",
|
|
47
|
+
"@syncfusion/ej2-popups": "~20.2.36",
|
|
48
|
+
"@syncfusion/ej2-richtexteditor": "~20.2.36",
|
|
49
|
+
"@syncfusion/ej2-splitbuttons": "~20.2.36"
|
|
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.
|
|
72
|
+
"version": "20.2.36",
|
|
73
73
|
"sideEffects": false
|
|
74
74
|
}
|
|
@@ -55,29 +55,27 @@ var InPlaceEditor = /** @class */ (function (_super) {
|
|
|
55
55
|
* @param {string} element - Specifies the element for which In-place editor applies.
|
|
56
56
|
*/
|
|
57
57
|
function InPlaceEditor(options, element) {
|
|
58
|
-
|
|
59
|
-
_this.initRender = true;
|
|
60
|
-
_this.isTemplate = false;
|
|
61
|
-
_this.isVue = false;
|
|
62
|
-
_this.isExtModule = false;
|
|
63
|
-
_this.submitBtn = undefined;
|
|
64
|
-
_this.cancelBtn = undefined;
|
|
65
|
-
_this.isClearTarget = false;
|
|
66
|
-
_this.btnElements = undefined;
|
|
67
|
-
_this.dataManager = undefined;
|
|
68
|
-
_this.oldValue = undefined;
|
|
69
|
-
_this.divComponents = ['RTE', 'Slider'];
|
|
70
|
-
_this.clearComponents = ['AutoComplete', 'Mask', 'Text'];
|
|
71
|
-
_this.dateType = ['Date', 'DateTime', 'Time'];
|
|
72
|
-
_this.inputDataEle = ['Date', 'DateTime', 'DateRange', 'Time', 'Numeric'];
|
|
73
|
-
_this.dropDownEle = ['AutoComplete', 'ComboBox', 'DropDownList', 'MultiSelect'];
|
|
74
|
-
_this.moduleList = ['AutoComplete', 'Color', 'ComboBox', 'DateRange', 'MultiSelect', 'RTE', 'Slider', 'Time'];
|
|
75
|
-
/**
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
_this.needsID = true;
|
|
79
|
-
return _this;
|
|
58
|
+
return _super.call(this, options, element) || this;
|
|
80
59
|
}
|
|
60
|
+
InPlaceEditor.prototype.initializeValue = function () {
|
|
61
|
+
this.needsID = true;
|
|
62
|
+
this.initRender = true;
|
|
63
|
+
this.isTemplate = false;
|
|
64
|
+
this.isVue = false;
|
|
65
|
+
this.isExtModule = false;
|
|
66
|
+
this.submitBtn = undefined;
|
|
67
|
+
this.cancelBtn = undefined;
|
|
68
|
+
this.isClearTarget = false;
|
|
69
|
+
this.btnElements = undefined;
|
|
70
|
+
this.dataManager = undefined;
|
|
71
|
+
this.oldValue = undefined;
|
|
72
|
+
this.divComponents = ['RTE', 'Slider'];
|
|
73
|
+
this.clearComponents = ['AutoComplete', 'Mask', 'Text'];
|
|
74
|
+
this.dateType = ['Date', 'DateTime', 'Time'];
|
|
75
|
+
this.inputDataEle = ['Date', 'DateTime', 'DateRange', 'Time', 'Numeric'];
|
|
76
|
+
this.dropDownEle = ['AutoComplete', 'ComboBox', 'DropDownList', 'MultiSelect'];
|
|
77
|
+
this.moduleList = ['AutoComplete', 'Color', 'ComboBox', 'DateRange', 'MultiSelect', 'RTE', 'Slider', 'Time'];
|
|
78
|
+
};
|
|
81
79
|
/**
|
|
82
80
|
* Initialize the event handler
|
|
83
81
|
*
|
|
@@ -85,6 +83,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
|
|
|
85
83
|
* @private
|
|
86
84
|
*/
|
|
87
85
|
InPlaceEditor.prototype.preRender = function () {
|
|
86
|
+
this.initializeValue();
|
|
88
87
|
this.onScrollResizeHandler = this.scrollResizeHandler.bind(this);
|
|
89
88
|
if (isNOU(this.model)) {
|
|
90
89
|
this.setProperties({ model: {} }, true);
|
|
@@ -396,7 +395,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
|
|
|
396
395
|
if (Object.keys(args.model).length > 0) {
|
|
397
396
|
var btnEle = this.createElement('button', {
|
|
398
397
|
className: args.className,
|
|
399
|
-
attrs: { 'type': args.type, 'title': this.getLocale(args.title, args.constant) }
|
|
398
|
+
attrs: { 'type': args.type, 'title': (args.constant == "save") ? (isNOU(this.saveButton.content) ? this.getLocale(args.title, args.constant) : this.saveButton.content) : (isNOU(this.cancelButton.content) ? this.getLocale(args.title, args.constant) : this.cancelButton.content) }
|
|
400
399
|
});
|
|
401
400
|
args.container.appendChild(btnEle);
|
|
402
401
|
btnObj = new Button(args.model, btnEle);
|