@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
@@ -919,7 +919,7 @@ let InPlaceEditor = class InPlaceEditor extends Component {
919
919
  }
920
920
  const compiler = compile(tempStr);
921
921
  if (!isNullOrUndefined(compiler)) {
922
- const isString = (isBlazor() &&
922
+ const isString = (isBlazor() && typeof tempStr !== 'function' &&
923
923
  !this.isStringTemplate && (tempStr).indexOf('<div>Blazor') === 0) ?
924
924
  this.isStringTemplate : true;
925
925
  tempEle = compiler({}, this, 'template', this.element.id + 'template', isString);
@@ -928,7 +928,8 @@ let InPlaceEditor = class InPlaceEditor extends Component {
928
928
  [].slice.call(tempEle).forEach((el) => {
929
929
  trgEle.appendChild(el);
930
930
  });
931
- if (isBlazor() && !this.isStringTemplate && (tempStr).indexOf('<div>Blazor') === 0) {
931
+ if (isBlazor() && !this.isStringTemplate && typeof tempStr !== 'function' &&
932
+ (tempStr).indexOf('<div>Blazor') === 0) {
932
933
  updateBlazorTemplate(this.element.id + 'template', 'Template', this);
933
934
  }
934
935
  }
@@ -960,7 +961,10 @@ let InPlaceEditor = class InPlaceEditor extends Component {
960
961
  appendTemplate(trgEle, tempStr) {
961
962
  tempStr = typeof (tempStr) === 'string' ? this.sanitizeHelper(tempStr) : tempStr;
962
963
  this.setProperties({ template: tempStr }, true);
963
- if (typeof tempStr === 'string' || isNullOrUndefined(tempStr.innerHTML)) {
964
+ if (typeof tempStr === 'function') {
965
+ this.templateCompile(trgEle, tempStr);
966
+ }
967
+ else if (typeof tempStr === 'string' || isNullOrUndefined(tempStr.innerHTML)) {
964
968
  if (tempStr[0] === '.' || tempStr[0] === '#') {
965
969
  if (document.querySelectorAll(tempStr).length) {
966
970
  this.templateEle = document.querySelector(tempStr);