bruce-models 3.0.7 → 3.0.8
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/dist/bruce-models.es5.js +33 -33
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +33 -33
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/plugin/plugin.js +32 -32
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/custom-form/custom-form-content.d.ts +1 -0
- package/package.json +1 -1
package/dist/lib/bruce-models.js
CHANGED
|
@@ -98,5 +98,5 @@ __exportStar(require("./internal/uploader"), exports);
|
|
|
98
98
|
__exportStar(require("./plugin/plugin"), exports);
|
|
99
99
|
__exportStar(require("./environment"), exports);
|
|
100
100
|
__exportStar(require("./data-source/data-source"), exports);
|
|
101
|
-
exports.VERSION = "3.0.
|
|
101
|
+
exports.VERSION = "3.0.8";
|
|
102
102
|
//# sourceMappingURL=bruce-models.js.map
|
|
@@ -198,40 +198,40 @@ var Plugin;
|
|
|
198
198
|
window[paramsId] = pluginParams ? pluginParams : {};
|
|
199
199
|
const disposeId = object_utils_1.ObjectUtils.UId();
|
|
200
200
|
const elementId = object_utils_1.ObjectUtils.UId();
|
|
201
|
-
let script = `
|
|
202
|
-
function run() {
|
|
203
|
-
${fileContent}
|
|
204
|
-
|
|
205
|
-
const paramsId = "${paramsId}";
|
|
206
|
-
const containerId = "${containerId}";
|
|
207
|
-
let container;
|
|
208
|
-
if (containerId) {
|
|
209
|
-
container = document.getElementById("${containerId}");
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
let pluginHTML = null;
|
|
213
|
-
if (container) {
|
|
214
|
-
pluginHTML = document.createElement("div");
|
|
215
|
-
pluginHTML.id = "${elementId}";
|
|
216
|
-
container.appendChild(pluginHTML);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
{TEMPLATE_CODE}
|
|
220
|
-
const params = window["${paramsId}"];
|
|
221
|
-
|
|
222
|
-
window["${disposeId}"] = Run({
|
|
223
|
-
element: pluginHTML,
|
|
224
|
-
container: container,
|
|
225
|
-
pluginParams: params
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
run();
|
|
201
|
+
let script = `
|
|
202
|
+
function run() {
|
|
203
|
+
${fileContent}
|
|
204
|
+
|
|
205
|
+
const paramsId = "${paramsId}";
|
|
206
|
+
const containerId = "${containerId}";
|
|
207
|
+
let container;
|
|
208
|
+
if (containerId) {
|
|
209
|
+
container = document.getElementById("${containerId}");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
let pluginHTML = null;
|
|
213
|
+
if (container) {
|
|
214
|
+
pluginHTML = document.createElement("div");
|
|
215
|
+
pluginHTML.id = "${elementId}";
|
|
216
|
+
container.appendChild(pluginHTML);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
{TEMPLATE_CODE}
|
|
220
|
+
const params = window["${paramsId}"];
|
|
221
|
+
|
|
222
|
+
window["${disposeId}"] = Run({
|
|
223
|
+
element: pluginHTML,
|
|
224
|
+
container: container,
|
|
225
|
+
pluginParams: params
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
run();
|
|
229
229
|
`;
|
|
230
230
|
if (script.includes("var template")) {
|
|
231
|
-
script = script.replace("{TEMPLATE_CODE}", `
|
|
232
|
-
if (pluginHTML && template) {
|
|
233
|
-
pluginHTML.innerHTML = template;
|
|
234
|
-
}
|
|
231
|
+
script = script.replace("{TEMPLATE_CODE}", `
|
|
232
|
+
if (pluginHTML && template) {
|
|
233
|
+
pluginHTML.innerHTML = template;
|
|
234
|
+
}
|
|
235
235
|
`);
|
|
236
236
|
}
|
|
237
237
|
else {
|