@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
|
@@ -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 &&
|
|
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 === '
|
|
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);
|