@syncfusion/ej2-inplace-editor 19.4.52 → 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.
Files changed (74) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +41 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -0
  3. package/CHANGELOG.md +1 -11
  4. package/README.md +1 -1
  5. package/dist/ej2-inplace-editor.umd.min.js +2 -2
  6. package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-inplace-editor.es2015.js +5 -5
  8. package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
  9. package/dist/es6/ej2-inplace-editor.es5.js +22 -23
  10. package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
  11. package/dist/global/ej2-inplace-editor.min.js +2 -2
  12. package/dist/global/ej2-inplace-editor.min.js.map +1 -1
  13. package/dist/global/index.d.ts +1 -1
  14. package/helpers/e2e/index.js +8 -6
  15. package/helpers/e2e/inplace-editor.js +74 -58
  16. package/package.json +16 -16
  17. package/src/inplace-editor/base/inplace-editor.d.ts +1 -0
  18. package/src/inplace-editor/base/inplace-editor.js +22 -23
  19. package/styles/bootstrap-dark.css +15 -138
  20. package/styles/bootstrap.css +16 -144
  21. package/styles/bootstrap4.css +26 -194
  22. package/styles/bootstrap5-dark.css +32 -146
  23. package/styles/bootstrap5.css +32 -146
  24. package/styles/fabric-dark.css +15 -136
  25. package/styles/fabric.css +15 -136
  26. package/styles/fluent-dark.css +749 -0
  27. package/styles/fluent-dark.scss +1 -0
  28. package/styles/fluent.css +749 -0
  29. package/styles/fluent.scss +1 -0
  30. package/styles/highcontrast-light.css +16 -171
  31. package/styles/highcontrast.css +16 -171
  32. package/styles/inplace-editor/_bootstrap-dark-definition.scss +1 -0
  33. package/styles/inplace-editor/_bootstrap-definition.scss +1 -0
  34. package/styles/inplace-editor/_bootstrap4-definition.scss +1 -0
  35. package/styles/inplace-editor/_bootstrap5-definition.scss +1 -0
  36. package/styles/inplace-editor/_fabric-dark-definition.scss +1 -0
  37. package/styles/inplace-editor/_fabric-definition.scss +1 -0
  38. package/styles/inplace-editor/_fluent-dark-definition.scss +1 -0
  39. package/styles/inplace-editor/_fluent-definition.scss +69 -0
  40. package/styles/inplace-editor/_fusionnew-definition.scss +68 -0
  41. package/styles/inplace-editor/_highcontrast-definition.scss +1 -0
  42. package/styles/inplace-editor/_highcontrast-light-definition.scss +1 -0
  43. package/styles/inplace-editor/_layout.scss +3 -4
  44. package/styles/inplace-editor/_material-dark-definition.scss +1 -0
  45. package/styles/inplace-editor/_material-definition.scss +1 -0
  46. package/styles/inplace-editor/_material3-definition.scss +68 -0
  47. package/styles/inplace-editor/_tailwind-definition.scss +1 -0
  48. package/styles/inplace-editor/_theme.scss +12 -1
  49. package/styles/inplace-editor/bootstrap-dark.css +15 -138
  50. package/styles/inplace-editor/bootstrap.css +16 -144
  51. package/styles/inplace-editor/bootstrap4.css +26 -194
  52. package/styles/inplace-editor/bootstrap5-dark.css +32 -146
  53. package/styles/inplace-editor/bootstrap5.css +32 -146
  54. package/styles/inplace-editor/fabric-dark.css +15 -136
  55. package/styles/inplace-editor/fabric.css +15 -136
  56. package/styles/inplace-editor/fluent-dark.css +749 -0
  57. package/styles/inplace-editor/fluent-dark.scss +26 -0
  58. package/styles/inplace-editor/fluent.css +749 -0
  59. package/styles/inplace-editor/fluent.scss +26 -0
  60. package/styles/inplace-editor/highcontrast-light.css +16 -171
  61. package/styles/inplace-editor/highcontrast.css +16 -171
  62. package/styles/inplace-editor/icons/_fluent-dark.scss +1 -0
  63. package/styles/inplace-editor/icons/_fluent.scss +19 -0
  64. package/styles/inplace-editor/icons/_fusionnew.scss +19 -0
  65. package/styles/inplace-editor/icons/_material3.scss +19 -0
  66. package/styles/inplace-editor/icons/_tailwind.scss +4 -4
  67. package/styles/inplace-editor/material-dark.css +11 -125
  68. package/styles/inplace-editor/material.css +11 -129
  69. package/styles/inplace-editor/tailwind-dark.css +17 -191
  70. package/styles/inplace-editor/tailwind.css +17 -191
  71. package/styles/material-dark.css +11 -125
  72. package/styles/material.css +11 -129
  73. package/styles/tailwind-dark.css +17 -191
  74. package/styles/tailwind.css +17 -191
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.52
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
@@ -1,6 +1,8 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./inplace-editor"));
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
- class InPlaceEditorHelper extends e2e_1.TestHelper {
5
- constructor(id, wrapperFn) {
6
- super();
7
- this.id = id;
8
- if (wrapperFn !== undefined) {
9
- this.wrapperFn = wrapperFn;
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
- return this;
12
- }
13
- getElement() {
14
- return this.selector('#' + this.id);
15
- }
16
- getValueElement() {
17
- return this.selector('#' + this.id + ' .e-editable-value');
18
- }
19
- getEditIconElement() {
20
- return this.selector('#' + this.id + ' .e-editable-overlay-icon');
21
- }
22
- getPopupElement() {
23
- return this.selector('.e-inplaceeditor-tip');
24
- }
25
- getLoadingElement(mode) {
26
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-loading') : this.selector('#' + this.id + ' .e-editable-loading'));
27
- }
28
- getErrorElement(mode) {
29
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-error') : this.selector('#' + this.id + ' .e-editable-error'));
30
- }
31
- getFormElement(mode) {
32
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-form') : this.selector('#' + this.id + ' .e-editable-form'));
33
- }
34
- getButtonsWrapper(mode) {
35
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-action-buttons') : this.selector('#' + this.id + ' .e-editable-action-buttons'));
36
- }
37
- getSaveButton(mode) {
38
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-btn-save') : this.selector('#' + this.id + ' .e-btn-save'));
39
- }
40
- getCancelButton(mode) {
41
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-btn-cancel') : this.selector('#' + this.id + ' .e-btn-cancel'));
42
- }
43
- getComponentWrapper(mode) {
44
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip .e-editable-component') : this.selector('#' + this.id + ' .e-editable-component'));
45
- }
46
- getComponentElement(mode) {
47
- return (mode === 'Popup' ? this.selector('.e-inplaceeditor-tip #' + this.id + '_editor') : this.selector('#' + this.id + ' #' + this.id + '_editor'));
48
- }
49
- getModel(property) {
50
- this.getModel(property);
51
- }
52
- setModel(property, value) {
53
- this.setModel(property, value);
54
- }
55
- invoke(fName, args) {
56
- this.invoke(fName, args);
57
- }
58
- }
59
- exports.InPlaceEditorHelper = InPlaceEditorHelper;
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@19.3.56",
3
+ "_id": "@syncfusion/ej2-inplace-editor@19.8.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-dfGFzohh7efdqL/eTMbICJIkPatIKhkVKDaIglvYnzNXgbYjMBu5c+FWi9gwO7pKX324q17919txfeTUoJ5GkQ==",
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-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-19.3.56.tgz",
28
- "_shasum": "05f7fd26bd00b9cf26fdb15b256e8488f504fd29",
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": "~19.4.52",
40
- "@syncfusion/ej2-buttons": "~19.4.52",
41
- "@syncfusion/ej2-calendars": "~19.4.52",
42
- "@syncfusion/ej2-data": "~19.4.52",
43
- "@syncfusion/ej2-dropdowns": "~19.4.52",
44
- "@syncfusion/ej2-inputs": "~19.4.52",
45
- "@syncfusion/ej2-lists": "~19.4.52",
46
- "@syncfusion/ej2-navigations": "~19.4.52",
47
- "@syncfusion/ej2-popups": "~19.4.52",
48
- "@syncfusion/ej2-richtexteditor": "~19.4.52",
49
- "@syncfusion/ej2-splitbuttons": "~19.4.52"
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": "19.4.52",
72
+ "version": "20.2.36",
73
73
  "sideEffects": false
74
74
  }
@@ -468,6 +468,7 @@ export declare class InPlaceEditor extends Component<HTMLElement> implements INo
468
468
  * @blazorProperty 'Destroyed'
469
469
  */
470
470
  destroyed: EmitType<Event>;
471
+ private initializeValue;
471
472
  /**
472
473
  * Initialize the event handler
473
474
  *
@@ -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
- var _this = _super.call(this, options, element) || this;
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);