@syncfusion/ej2-inplace-editor 21.2.3 → 22.1.34

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 (31) hide show
  1. package/.eslintrc.json +1 -0
  2. package/dist/ej2-inplace-editor.min.js +2 -2
  3. package/dist/ej2-inplace-editor.umd.min.js +2 -2
  4. package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-inplace-editor.es2015.js +7 -3
  6. package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-inplace-editor.es5.js +7 -3
  8. package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
  9. package/dist/global/ej2-inplace-editor.min.js +2 -2
  10. package/dist/global/ej2-inplace-editor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +20 -17
  13. package/src/inplace-editor/base/inplace-editor-model.d.ts +2 -1
  14. package/src/inplace-editor/base/inplace-editor.d.ts +2 -1
  15. package/src/inplace-editor/base/inplace-editor.js +7 -3
  16. package/styles/bootstrap.css +2 -2
  17. package/styles/bootstrap4.css +2 -2
  18. package/styles/inplace-editor/_material3-dark-definition.scss +1 -0
  19. package/styles/inplace-editor/_material3-definition.scss +70 -0
  20. package/styles/inplace-editor/_theme.scss +7 -1
  21. package/styles/inplace-editor/bootstrap.css +2 -2
  22. package/styles/inplace-editor/bootstrap4.css +2 -2
  23. package/styles/inplace-editor/icons/_material3-dark.scss +1 -0
  24. package/styles/inplace-editor/material3-dark.css +795 -0
  25. package/styles/inplace-editor/material3-dark.scss +27 -0
  26. package/styles/inplace-editor/material3.css +851 -0
  27. package/styles/inplace-editor/material3.scss +27 -0
  28. package/styles/material3-dark.css +795 -0
  29. package/styles/material3-dark.scss +3 -0
  30. package/styles/material3.css +851 -0
  31. package/styles/material3.scss +3 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.3
3
+ * version : 22.1.34
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@21.1.37",
3
+ "_id": "@syncfusion/ej2-inplace-editor@21.2.2",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-C/XNmodf1eFRKKjYBoV8oFxY8yn0rJL3QjSEBhFvY91p8tG9wDoaOegs0Mh3aU8nsO4357rs4dyDRmnoi0afnw==",
5
+ "_integrity": "sha512-vuCLFNueXYgrh2TOZqMOz8RyOl3hYfn3VX5Mn/ENltAytZanR/BETQ3aqNAILDv4Q4s5hLVE+IRUzfVQuBvNYw==",
6
6
  "_location": "/@syncfusion/ej2-inplace-editor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,10 +19,13 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-pdfviewer"
22
+ "/@syncfusion/ej2-angular-inplace-editor",
23
+ "/@syncfusion/ej2-pdfviewer",
24
+ "/@syncfusion/ej2-react-inplace-editor",
25
+ "/@syncfusion/ej2-vue-inplace-editor"
23
26
  ],
24
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-21.1.37.tgz",
25
- "_shasum": "b4e7b00094c8976d6a6bbe63338ecb8bfb39e4a7",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-21.2.2.tgz",
28
+ "_shasum": "9a5d7d80730dd384fcad9e5ea463d2a8f8af908f",
26
29
  "_spec": "@syncfusion/ej2-inplace-editor@*",
27
30
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
28
31
  "author": {
@@ -33,17 +36,17 @@
33
36
  },
34
37
  "bundleDependencies": false,
35
38
  "dependencies": {
36
- "@syncfusion/ej2-base": "~21.2.3",
37
- "@syncfusion/ej2-buttons": "~21.2.3",
38
- "@syncfusion/ej2-calendars": "~21.2.3",
39
- "@syncfusion/ej2-data": "~21.2.3",
40
- "@syncfusion/ej2-dropdowns": "~21.2.3",
41
- "@syncfusion/ej2-inputs": "~21.2.3",
42
- "@syncfusion/ej2-lists": "~21.2.3",
43
- "@syncfusion/ej2-navigations": "~21.2.3",
44
- "@syncfusion/ej2-popups": "~21.2.3",
45
- "@syncfusion/ej2-richtexteditor": "~21.2.3",
46
- "@syncfusion/ej2-splitbuttons": "~21.2.3"
39
+ "@syncfusion/ej2-base": "~22.1.34",
40
+ "@syncfusion/ej2-buttons": "~22.1.34",
41
+ "@syncfusion/ej2-calendars": "~22.1.34",
42
+ "@syncfusion/ej2-data": "~22.1.34",
43
+ "@syncfusion/ej2-dropdowns": "~22.1.34",
44
+ "@syncfusion/ej2-inputs": "~22.1.34",
45
+ "@syncfusion/ej2-lists": "~22.1.34",
46
+ "@syncfusion/ej2-navigations": "~22.1.34",
47
+ "@syncfusion/ej2-popups": "~22.1.34",
48
+ "@syncfusion/ej2-richtexteditor": "~22.1.34",
49
+ "@syncfusion/ej2-splitbuttons": "~22.1.34"
47
50
  },
48
51
  "deprecated": false,
49
52
  "description": "A package of Essential JS 2 Inplace editor components, which is used to edit and update the value dynamically in server.",
@@ -66,6 +69,6 @@
66
69
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
67
70
  },
68
71
  "typings": "index.d.ts",
69
- "version": "21.2.3",
72
+ "version": "22.1.34",
70
73
  "sideEffects": false
71
74
  }
@@ -34,8 +34,9 @@ export interface InPlaceEditorModel extends ComponentModel{
34
34
  *
35
35
  * @default ''
36
36
  * @blazorType string
37
+ * @aspType string
37
38
  */
38
- template?: string | HTMLElement;
39
+ template?: string | HTMLElement | Function;
39
40
 
40
41
  /**
41
42
  * Defines whether to allow the cross-scripting site or not.
@@ -193,8 +193,9 @@ export declare class InPlaceEditor extends Component<HTMLElement> implements INo
193
193
  *
194
194
  * @default ''
195
195
  * @blazorType string
196
+ * @aspType string
196
197
  */
197
- template: string | HTMLElement;
198
+ template: string | HTMLElement | Function;
198
199
  /**
199
200
  * Defines whether to allow the cross-scripting site or not.
200
201
  *
@@ -728,7 +728,7 @@ var InPlaceEditor = /** @class */ (function (_super) {
728
728
  }
729
729
  var compiler = compile(tempStr);
730
730
  if (!isNOU(compiler)) {
731
- var isString = (isBlazor() &&
731
+ var isString = (isBlazor() && typeof tempStr !== 'function' &&
732
732
  !this.isStringTemplate && (tempStr).indexOf('<div>Blazor') === 0) ?
733
733
  this.isStringTemplate : true;
734
734
  tempEle = compiler({}, this, 'template', this.element.id + 'template', isString);
@@ -737,7 +737,8 @@ var InPlaceEditor = /** @class */ (function (_super) {
737
737
  [].slice.call(tempEle).forEach(function (el) {
738
738
  trgEle.appendChild(el);
739
739
  });
740
- if (isBlazor() && !this.isStringTemplate && (tempStr).indexOf('<div>Blazor') === 0) {
740
+ if (isBlazor() && !this.isStringTemplate && typeof tempStr !== 'function' &&
741
+ (tempStr).indexOf('<div>Blazor') === 0) {
741
742
  updateBlazorTemplate(this.element.id + 'template', 'Template', this);
742
743
  }
743
744
  }
@@ -769,7 +770,10 @@ var InPlaceEditor = /** @class */ (function (_super) {
769
770
  InPlaceEditor.prototype.appendTemplate = function (trgEle, tempStr) {
770
771
  tempStr = typeof (tempStr) === 'string' ? this.sanitizeHelper(tempStr) : tempStr;
771
772
  this.setProperties({ template: tempStr }, true);
772
- if (typeof tempStr === 'string' || isNOU(tempStr.innerHTML)) {
773
+ if (typeof tempStr === 'function') {
774
+ this.templateCompile(trgEle, tempStr);
775
+ }
776
+ else if (typeof tempStr === 'string' || isNOU(tempStr.innerHTML)) {
773
777
  if (tempStr[0] === '.' || tempStr[0] === '#') {
774
778
  if (document.querySelectorAll(tempStr).length) {
775
779
  this.templateEle = document.querySelector(tempStr);
@@ -197,8 +197,8 @@
197
197
  .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-rte-fontcolor-dropdown,
198
198
  .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-rte-numberformatlist-dropdown,
199
199
  .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-rte-bulletformatlist-dropdown {
200
- padding-bottom: 0;
201
- padding-top: 0;
200
+ padding-bottom: 1px;
201
+ padding-top: 1px;
202
202
  }
203
203
  .e-rte-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown.e-tbar-btn.e-btn:hover, .e-rte-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown.e-tbar-btn.e-btn.e-active, .e-rte-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown.e-tbar-btn.e-btn.e-active:hover,
204
204
  .e-rte-toolbar .e-toolbar-items .e-rte-fontcolor-dropdown.e-tbar-btn.e-btn:hover,
@@ -284,8 +284,8 @@
284
284
  }
285
285
  .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-rte-inline-dropdown.e-control.e-tbar-btn.e-btn, .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-rte-inline-dropdown.e-control.e-tbar-btn.e-btn {
286
286
  border: 1px solid transparent;
287
- padding-bottom: 1px;
288
- padding-top: 1px;
287
+ padding-bottom: 0;
288
+ padding-top: 0;
289
289
  }
290
290
  .e-richtexteditor .e-rte-content {
291
291
  border-bottom-left-radius: 4px;
@@ -0,0 +1 @@
1
+ @import './material3-definition.scss';
@@ -0,0 +1,70 @@
1
+ //Layout Variable Start
2
+ $editor-big-value-text-font-size: $text-base !default;
3
+ $editor-nrml-value-text-font-size: $text-sm !default;
4
+ $editor-big-value-container-padding: 8px 36px 8px 16px !default;
5
+ $editor-nrml-value-container-padding: 6px 30px 6px 12px !default;
6
+ $editor-big-value-container-spin-padding: 8px !default;
7
+ $editor-nrml-value-container-spin-padding: 8px !default;
8
+ $editor-big-value-margin: 0 !default;
9
+ $editor-nrml-value-margin: 0 8px 0 0 !default;
10
+ $editor-rtl-big-value-margin: 0 0 0 28px !default;
11
+ $editor-rtl-nrml-value-margin: 0 0 0 32px !default;
12
+ $editor-big-overlay-icon-size: $text-base !default;
13
+ $editor-nrml-overlay-icon-size: $text-sm !default;
14
+ $editor-big-overlay-icon-container-size: 20px !default;
15
+ $editor-nrml-overlay-icon-container-size: 20px !default;
16
+ $editor-big-overlay-icon-left-right: 8px !default;
17
+ $editor-nrml-overlay-icon-left-right: 0 !default;
18
+ $editor-tip-content-bdr-radius: 4px !default;
19
+ $editor-popup-tip-content-bdr-radius: 20px !default;
20
+ $editor-popup-tip-wrapper-bdr-radius: 0 !default;
21
+ $editor-tip-title-font-weight: $font-weight-normal !default;
22
+ $editor-big-tip-title-font-size: $text-2xl !default;
23
+ $editor-nrml-tip-title-font-size: $text-base !default;
24
+ $editor-big-tip-title-padding: 24px !default;
25
+ $editor-nrml-tip-title-padding: 20px 20px 12px 20px !default;
26
+ $editor-rtl-big-tip-title-padding: 12px 16px 12px 16px !default;
27
+ $editor-rtl-nrml-tip-title-padding: 9px 12px 9px 12px !default;
28
+ $editor-big-tip-title-container-size: 46px !default;
29
+ $editor-nrml-tip-title-container-size: 24px !default;
30
+ $editor-big-tip-wrapper-padding: 24px !default;
31
+ $editor-nrml-tip-wrapper-padding: 20px !default;
32
+ $editor-big-wrapper-title-with-padding: 24px !default;
33
+ $editor-nrml-wrapper-title-with-padding: 20px !default;
34
+ $editor-component-bottom-margin: 4px !default;
35
+ $editor-buttons-top-margin: 4px !default;
36
+ $editor-btn-save-icon-size: 16px !default;
37
+ $editor-btn-cancel-icon-size: 16px !default;
38
+ $editor-big-btn-save-margin: 0 4px 0 0 !default;
39
+ $editor-nrml-btn-save-margin: 0 6px 0 0 !default;
40
+ $editor-big-btn-cancel-margin: 0 0 0 4px !default;
41
+ $editor-nrml-btn-cancel-margin: 0 0 0 6px !default;
42
+ $editor-rtl-big-btn-save-margin: 0 0 0 4px !default;
43
+ $editor-rtl-nrml-btn-save-margin: 0 0 0 6px !default;
44
+ $editor-rtl-big-btn-cancel-margin: 0 4px 0 0 !default;
45
+ $editor-rtl-nrml-btn-cancel-margin: 0 6px 0 0 !default;
46
+
47
+ //Layout Variable End
48
+
49
+ //Theme Variable Start
50
+ $editor-value-hover-bg: $content-bg-color-alt2 !default;
51
+ $editor-value-text-color: rgba($content-text-color) !default;
52
+ $editor-overlay-icon-color: rgba($icon-color) !default;
53
+ $editor-value-text-border: 1px solid rgba($content-text-color) !default;
54
+ $editor-background-color: $transparent !default;
55
+ $wrapper-background-color: $flyout-bg-color !default;
56
+ $editor-tip-border: 0 !default;
57
+ $editor-tip-bg: $flyout-bg-color !default;
58
+ $editor-tip-arrow-icon-color: $flyout-bg-color !default;
59
+ $editor-tip-title-arrow-icon-color: $content-bg-color-alt1 !default;
60
+ $editor-tip-arrow-bdr-color: $flyout-bg-color !default;
61
+ $editor-tip-title-arrow-bdr-color: rgba($border) !default;
62
+ $editor-tip-box-shadow: $shadow-lg !default;
63
+ $editor-tip-title-bg: $flyout-bg-color !default;
64
+ $editor-tio-title-border-bottom: 0 !default;
65
+ $editor-tip-title-color: rgba($content-text-color) !default;
66
+ $editable-overlay-icon-height: inherit !default;
67
+ $editable-overlay-icon: 0 !default;
68
+ $editor-btn-icon-color: rgba($icon-color) !default;
69
+
70
+ //Theme Variable End
@@ -204,13 +204,16 @@
204
204
  &.e-tooltip-wrap.e-popup {
205
205
  background: $editor-tip-bg;
206
206
  box-shadow: $editor-tip-box-shadow;
207
- @if $skin-name == 'FluentUI' {
207
+ @if $skin-name == 'FluentUI' or $skin-name == 'Material3' {
208
208
  border-radius: $editor-popup-tip-wrapper-bdr-radius;
209
209
  }
210
210
 
211
211
  .e-tip-content {
212
212
  border-radius: $editor-popup-tip-content-bdr-radius;
213
213
  color: $editor-value-text-color;
214
+ @if $skin-name == 'Material3' {
215
+ background: $editor-tip-title-bg;
216
+ }
214
217
  }
215
218
 
216
219
  .e-arrow-tip-inner {
@@ -230,6 +233,9 @@
230
233
 
231
234
  &.e-popup {
232
235
  border: $editor-tip-border;
236
+ @if $skin-name == 'Material3' {
237
+ border-radius: 8px;
238
+ }
233
239
  }
234
240
 
235
241
  .e-editable-title {
@@ -197,8 +197,8 @@
197
197
  .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-rte-fontcolor-dropdown,
198
198
  .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-rte-numberformatlist-dropdown,
199
199
  .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-rte-bulletformatlist-dropdown {
200
- padding-bottom: 0;
201
- padding-top: 0;
200
+ padding-bottom: 1px;
201
+ padding-top: 1px;
202
202
  }
203
203
  .e-rte-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown.e-tbar-btn.e-btn:hover, .e-rte-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown.e-tbar-btn.e-btn.e-active, .e-rte-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown.e-tbar-btn.e-btn.e-active:hover,
204
204
  .e-rte-toolbar .e-toolbar-items .e-rte-fontcolor-dropdown.e-tbar-btn.e-btn:hover,
@@ -284,8 +284,8 @@
284
284
  }
285
285
  .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-rte-inline-dropdown.e-control.e-tbar-btn.e-btn, .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-rte-inline-dropdown.e-control.e-tbar-btn.e-btn {
286
286
  border: 1px solid transparent;
287
- padding-bottom: 1px;
288
- padding-top: 1px;
287
+ padding-bottom: 0;
288
+ padding-top: 0;
289
289
  }
290
290
  .e-richtexteditor .e-rte-content {
291
291
  border-bottom-left-radius: 4px;
@@ -0,0 +1 @@
1
+ @import './material3.scss';