@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.
- package/.eslintrc.json +1 -0
- package/dist/ej2-inplace-editor.min.js +2 -2
- package/dist/ej2-inplace-editor.umd.min.js +2 -2
- package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es2015.js +7 -3
- package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es5.js +7 -3
- package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
- package/dist/global/ej2-inplace-editor.min.js +2 -2
- package/dist/global/ej2-inplace-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +20 -17
- package/src/inplace-editor/base/inplace-editor-model.d.ts +2 -1
- package/src/inplace-editor/base/inplace-editor.d.ts +2 -1
- package/src/inplace-editor/base/inplace-editor.js +7 -3
- package/styles/bootstrap.css +2 -2
- package/styles/bootstrap4.css +2 -2
- package/styles/inplace-editor/_material3-dark-definition.scss +1 -0
- package/styles/inplace-editor/_material3-definition.scss +70 -0
- package/styles/inplace-editor/_theme.scss +7 -1
- package/styles/inplace-editor/bootstrap.css +2 -2
- package/styles/inplace-editor/bootstrap4.css +2 -2
- package/styles/inplace-editor/icons/_material3-dark.scss +1 -0
- package/styles/inplace-editor/material3-dark.css +795 -0
- package/styles/inplace-editor/material3-dark.scss +27 -0
- package/styles/inplace-editor/material3.css +851 -0
- package/styles/inplace-editor/material3.scss +27 -0
- package/styles/material3-dark.css +795 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +851 -0
- 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 &&
|
|
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 === '
|
|
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);
|