@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
@@ -957,7 +957,7 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
957
957
  }
958
958
  var compiler = compile(tempStr);
959
959
  if (!isNullOrUndefined(compiler)) {
960
- var isString = (isBlazor() &&
960
+ var isString = (isBlazor() && typeof tempStr !== 'function' &&
961
961
  !this.isStringTemplate && (tempStr).indexOf('<div>Blazor') === 0) ?
962
962
  this.isStringTemplate : true;
963
963
  tempEle = compiler({}, this, 'template', this.element.id + 'template', isString);
@@ -966,7 +966,8 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
966
966
  [].slice.call(tempEle).forEach(function (el) {
967
967
  trgEle.appendChild(el);
968
968
  });
969
- if (isBlazor() && !this.isStringTemplate && (tempStr).indexOf('<div>Blazor') === 0) {
969
+ if (isBlazor() && !this.isStringTemplate && typeof tempStr !== 'function' &&
970
+ (tempStr).indexOf('<div>Blazor') === 0) {
970
971
  updateBlazorTemplate(this.element.id + 'template', 'Template', this);
971
972
  }
972
973
  }
@@ -998,7 +999,10 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
998
999
  InPlaceEditor.prototype.appendTemplate = function (trgEle, tempStr) {
999
1000
  tempStr = typeof (tempStr) === 'string' ? this.sanitizeHelper(tempStr) : tempStr;
1000
1001
  this.setProperties({ template: tempStr }, true);
1001
- if (typeof tempStr === 'string' || isNullOrUndefined(tempStr.innerHTML)) {
1002
+ if (typeof tempStr === 'function') {
1003
+ this.templateCompile(trgEle, tempStr);
1004
+ }
1005
+ else if (typeof tempStr === 'string' || isNullOrUndefined(tempStr.innerHTML)) {
1002
1006
  if (tempStr[0] === '.' || tempStr[0] === '#') {
1003
1007
  if (document.querySelectorAll(tempStr).length) {
1004
1008
  this.templateEle = document.querySelector(tempStr);