@syncfusion/ej2-inplace-editor 19.3.43 → 19.3.56

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.43
3
+ * version : 19.3.56
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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-inplace-editor@*",
3
- "_id": "@syncfusion/ej2-inplace-editor@18.20.0",
3
+ "_id": "@syncfusion/ej2-inplace-editor@19.3.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-AgqTmYNPBsj4cFycfF/cyZgHuMZfjwM/O58q68O9FS4udAR7zbXC6HHnuo2io1+KtHd1wHWdw5Np6VePiEnDqA==",
5
+ "_integrity": "sha512-tEHMJjmEbE3IbQBaz5LJKKtPA4akIT7KYejl5Bf/F5QmexinvZcLSon7lhNKHc4ZTJpPSAS1ryEfUFJV+2p9RA==",
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-18.20.0.tgz",
28
- "_shasum": "5ccb62612f1ddcf901ada3db7786f5e611eacbce",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-19.3.53.tgz",
28
+ "_shasum": "2b18776bee28e5d5ce3c0d3ebebc0f775c9a3328",
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.3.43",
40
- "@syncfusion/ej2-buttons": "~19.3.43",
41
- "@syncfusion/ej2-calendars": "~19.3.43",
42
- "@syncfusion/ej2-data": "~19.3.43",
43
- "@syncfusion/ej2-dropdowns": "~19.3.43",
44
- "@syncfusion/ej2-inputs": "~19.3.43",
45
- "@syncfusion/ej2-lists": "~19.3.43",
46
- "@syncfusion/ej2-navigations": "~19.3.43",
47
- "@syncfusion/ej2-popups": "~19.3.43",
48
- "@syncfusion/ej2-richtexteditor": "~19.3.43",
49
- "@syncfusion/ej2-splitbuttons": "~19.3.43"
39
+ "@syncfusion/ej2-base": "~19.3.56",
40
+ "@syncfusion/ej2-buttons": "~19.3.53",
41
+ "@syncfusion/ej2-calendars": "~19.3.56",
42
+ "@syncfusion/ej2-data": "~19.3.56",
43
+ "@syncfusion/ej2-dropdowns": "~19.3.56",
44
+ "@syncfusion/ej2-inputs": "~19.3.53",
45
+ "@syncfusion/ej2-lists": "~19.3.53",
46
+ "@syncfusion/ej2-navigations": "~19.3.56",
47
+ "@syncfusion/ej2-popups": "~19.3.53",
48
+ "@syncfusion/ej2-richtexteditor": "~19.3.55",
49
+ "@syncfusion/ej2-splitbuttons": "~19.3.53"
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.3.43",
72
+ "version": "19.3.56",
73
73
  "sideEffects": false
74
74
  }
@@ -127,6 +127,7 @@ export declare class InPlaceEditor extends Component<HTMLElement> implements INo
127
127
  private compPrevValue;
128
128
  private moduleList;
129
129
  private afterOpenEvent;
130
+ private onScrollResizeHandler;
130
131
  /**
131
132
  * @hidden
132
133
  */
@@ -85,6 +85,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
85
85
  * @private
86
86
  */
87
87
  InPlaceEditor.prototype.preRender = function () {
88
+ this.onScrollResizeHandler = this.scrollResizeHandler.bind(this);
88
89
  if (isNOU(this.model)) {
89
90
  this.setProperties({ model: {} }, true);
90
91
  }
@@ -942,8 +943,8 @@ var InPlaceEditor = /** @class */ (function (_super) {
942
943
  this.wireEditEvent(this.editableOn);
943
944
  EventHandler.add(this.editIcon, 'click', this.clickHandler, this);
944
945
  EventHandler.add(this.element, 'keydown', this.valueKeyDownHandler, this);
945
- EventHandler.add(document, 'scroll', this.scrollResizeHandler, this);
946
- window.addEventListener('resize', this.scrollResizeHandler.bind(this));
946
+ document.addEventListener('scroll', this.onScrollResizeHandler);
947
+ window.addEventListener('resize', this.onScrollResizeHandler);
947
948
  if (Array.prototype.indexOf.call(this.clearComponents, this.type) > -1) {
948
949
  EventHandler.add(this.element, 'mousedown', this.mouseDownHandler, this);
949
950
  }
@@ -985,8 +986,8 @@ var InPlaceEditor = /** @class */ (function (_super) {
985
986
  InPlaceEditor.prototype.unWireEvents = function () {
986
987
  this.unWireEditEvent(this.editableOn);
987
988
  EventHandler.remove(this.editIcon, 'click', this.clickHandler);
988
- EventHandler.remove(document, 'scroll', this.scrollResizeHandler);
989
- window.removeEventListener('resize', this.scrollResizeHandler.bind(this));
989
+ document.removeEventListener('scroll', this.onScrollResizeHandler);
990
+ window.removeEventListener('resize', this.onScrollResizeHandler);
990
991
  EventHandler.remove(this.element, 'keydown', this.valueKeyDownHandler);
991
992
  if (Array.prototype.indexOf.call(this.clearComponents, this.type) > -1) {
992
993
  EventHandler.remove(this.element, 'mousedown', this.mouseDownHandler);
@@ -1115,9 +1116,10 @@ var InPlaceEditor = /** @class */ (function (_super) {
1115
1116
  });
1116
1117
  };
1117
1118
  InPlaceEditor.prototype.enterKeyDownHandler = function (e) {
1118
- if (!closest(e.target, '.' + classes.INPUT + ' .e-richtexteditor')) {
1119
+ if (!closest(e.target, '.' + classes.INPUT + ' .e-richtexteditor') && (!e.currentTarget.getElementsByTagName("textarea")[0])) {
1119
1120
  if ((e.keyCode === 13 && e.which === 13) && closest(e.target, '.' + classes.INPUT)) {
1120
1121
  this.save();
1122
+ this.trigger('submitClick', e);
1121
1123
  }
1122
1124
  else if (e.keyCode === 27 && e.which === 27) {
1123
1125
  this.cancelHandler('cancel');
@@ -85,6 +85,11 @@
85
85
  background: transparent;
86
86
  }
87
87
 
88
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
89
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
90
+ background: #e9ecef;
91
+ }
92
+
88
93
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
89
94
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
90
95
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -63,6 +63,12 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
67
+ }
68
+
69
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
70
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
71
+ background: #343a40;
66
72
  }
67
73
 
68
74
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
@@ -63,6 +63,12 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
67
+ }
68
+
69
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
70
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
71
+ background: #e9ecef;
66
72
  }
67
73
 
68
74
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
@@ -85,6 +85,11 @@
85
85
  background: transparent;
86
86
  }
87
87
 
88
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
89
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
90
+ background: #e9ecef;
91
+ }
92
+
88
93
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
89
94
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
90
95
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -63,6 +63,12 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
67
+ }
68
+
69
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
70
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
71
+ background: #343a40;
66
72
  }
67
73
 
68
74
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
@@ -63,6 +63,12 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
67
+ }
68
+
69
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
70
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
71
+ background: #e9ecef;
66
72
  }
67
73
 
68
74
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
package/tslint.json ADDED
@@ -0,0 +1,111 @@
1
+ {
2
+ "rules": {
3
+ "chai-vague-errors": true,
4
+ "use-isnan": true,
5
+ "missing-jsdoc": true,
6
+ "missing-optional-annotation": true,
7
+ "no-backbone-get-set-outside-model": true,
8
+ "no-banned-terms": true,
9
+ "no-constant-condition": true,
10
+ "no-control-regex": true,
11
+ "no-cookies": true,
12
+ "no-delete-expression": true,
13
+ "no-document-write": true,
14
+ "no-document-domain": true,
15
+ "no-disable-auto-sanitization": true,
16
+ "no-duplicate-case": true,
17
+ "no-duplicate-parameter-names": true,
18
+ "no-empty-interfaces": true,
19
+ "no-exec-script": true,
20
+ "no-function-constructor-with-string-args": true,
21
+ "no-function-expression": true,
22
+ "no-invalid-regexp": true,
23
+ "no-for-in": true,
24
+ "member-access": true,
25
+ "no-multiline-string": true,
26
+ "no-multiple-var-decl": true,
27
+ "no-unnecessary-bind": true,
28
+ "no-unnecessary-semicolons": true,
29
+ "no-octal-literal": true,
30
+ "no-regex-spaces": true,
31
+ "no-sparse-arrays": true,
32
+ "no-string-based-set-immediate": true,
33
+ "no-string-based-set-interval": true,
34
+ "no-unused-imports": true,
35
+ "no-with-statement": true,
36
+ "prefer-array-literal": true,
37
+ "promise-must-complete": false,
38
+ "react-no-dangerous-html": true,
39
+ "use-named-parameter": true,
40
+ "valid-typeof": true,
41
+ "max-func-body-length": [true, 100, {
42
+ "ignore-parameters-to-function-regex": "describe"
43
+ }],
44
+ "class-name": true,
45
+ "curly": true,
46
+ "eofline": false,
47
+ "forin": true,
48
+ "indent": [
49
+ true,
50
+ "spaces"
51
+ ],
52
+ "label-position": true,
53
+ "max-line-length": [true, 140],
54
+ "no-arg": true,
55
+ "no-console": [true,
56
+ "debug",
57
+ "info",
58
+ "log",
59
+ "time",
60
+ "timeEnd",
61
+ "trace"
62
+ ],
63
+ "no-construct": true,
64
+ "no-parameter-properties": true,
65
+ "no-debugger": true,
66
+ "no-duplicate-variable": true,
67
+ "no-empty": true,
68
+ "no-eval": true,
69
+ "no-string-literal": true,
70
+ "no-switch-case-fall-through": true,
71
+ "trailing-comma": true,
72
+ "no-trailing-whitespace": true,
73
+ "no-unused-expression": true,
74
+ "no-use-before-declare": false,
75
+ "no-var-requires": true,
76
+ "one-line": [true,
77
+ "check-open-brace",
78
+ "check-catch",
79
+ "check-else",
80
+ "check-whitespace"
81
+ ],
82
+ "no-any": true,
83
+ "no-conditional-assignment": true,
84
+ "no-angle-bracket-type-assertion": false,
85
+ "align": [true, "parameters", "arguments", "statements"],
86
+ "no-empty-line-after-opening-brace": false,
87
+ "typedef-whitespace": [false],
88
+ "ban": true,
89
+ "quotemark": [true, "single"],
90
+ "semicolon": true,
91
+ "triple-equals": [true, "allow-null-check"],
92
+ "typedef": [true,
93
+ "call-signature",
94
+ "parameter",
95
+ "property-declaration",
96
+ "variable-declaration",
97
+ "arrow-parameter",
98
+ "member-variable-declaration"],
99
+ "variable-name": true,
100
+ "whitespace": [true,
101
+ "check-branch",
102
+ "check-decl",
103
+ "check-operator",
104
+ "check-separator",
105
+ "check-type"
106
+ ],
107
+ "jsdoc-format": true,
108
+ "no-var-keyword": true,
109
+ "radix": true
110
+ }
111
+ }