@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
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.1.47
3
+ * version : 20.2.38
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.8.0",
3
+ "_id": "@syncfusion/ej2-inplace-editor@20.2.36",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-YsqdfsBdh/Ro3TRHV2Ll4OB8TcsB5tYaXxctJ8sj4jko2KadBbmFP22GOvBheOLdp3DUPLeTfYH+Iq64bUStug==",
5
+ "_integrity": "sha512-+2EvKDkSXVK/SRd4GJZ/qhM0MqnXCReOx1KQ1EGGTdtsxxmLPE2XlJkP+Zc22c8ePkj40T4J86WK0AZEknJNHw==",
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-release/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-19.8.0.tgz",
28
- "_shasum": "991d9fd1b7cf7c22966f280319eb7e915d3fa3db",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-20.2.36.tgz",
28
+ "_shasum": "003a4a2bf564e1ac848bf13a44e5cf7f5a3799b5",
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.1.47",
40
- "@syncfusion/ej2-buttons": "~20.1.47",
41
- "@syncfusion/ej2-calendars": "~20.1.47",
42
- "@syncfusion/ej2-data": "~20.1.47",
43
- "@syncfusion/ej2-dropdowns": "~20.1.47",
44
- "@syncfusion/ej2-inputs": "~20.1.47",
45
- "@syncfusion/ej2-lists": "~20.1.47",
46
- "@syncfusion/ej2-navigations": "~20.1.47",
47
- "@syncfusion/ej2-popups": "~20.1.47",
48
- "@syncfusion/ej2-richtexteditor": "~20.1.47",
49
- "@syncfusion/ej2-splitbuttons": "~20.1.47"
39
+ "@syncfusion/ej2-base": "~20.2.38",
40
+ "@syncfusion/ej2-buttons": "~20.2.38",
41
+ "@syncfusion/ej2-calendars": "~20.2.38",
42
+ "@syncfusion/ej2-data": "~20.2.38",
43
+ "@syncfusion/ej2-dropdowns": "~20.2.38",
44
+ "@syncfusion/ej2-inputs": "~20.2.38",
45
+ "@syncfusion/ej2-lists": "~20.2.38",
46
+ "@syncfusion/ej2-navigations": "~20.2.38",
47
+ "@syncfusion/ej2-popups": "~20.2.38",
48
+ "@syncfusion/ej2-richtexteditor": "~20.2.38",
49
+ "@syncfusion/ej2-splitbuttons": "~20.2.38"
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.1.47",
72
+ "version": "20.2.38",
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);