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/bruce-models.umd.js
CHANGED
|
@@ -8763,40 +8763,40 @@
|
|
|
8763
8763
|
window[paramsId] = pluginParams ? pluginParams : {};
|
|
8764
8764
|
const disposeId = exports.ObjectUtils.UId();
|
|
8765
8765
|
const elementId = exports.ObjectUtils.UId();
|
|
8766
|
-
let script = `
|
|
8767
|
-
function run() {
|
|
8768
|
-
${fileContent}
|
|
8769
|
-
|
|
8770
|
-
const paramsId = "${paramsId}";
|
|
8771
|
-
const containerId = "${containerId}";
|
|
8772
|
-
let container;
|
|
8773
|
-
if (containerId) {
|
|
8774
|
-
container = document.getElementById("${containerId}");
|
|
8775
|
-
}
|
|
8776
|
-
|
|
8777
|
-
let pluginHTML = null;
|
|
8778
|
-
if (container) {
|
|
8779
|
-
pluginHTML = document.createElement("div");
|
|
8780
|
-
pluginHTML.id = "${elementId}";
|
|
8781
|
-
container.appendChild(pluginHTML);
|
|
8782
|
-
}
|
|
8783
|
-
|
|
8784
|
-
{TEMPLATE_CODE}
|
|
8785
|
-
const params = window["${paramsId}"];
|
|
8786
|
-
|
|
8787
|
-
window["${disposeId}"] = Run({
|
|
8788
|
-
element: pluginHTML,
|
|
8789
|
-
container: container,
|
|
8790
|
-
pluginParams: params
|
|
8791
|
-
});
|
|
8792
|
-
}
|
|
8793
|
-
run();
|
|
8766
|
+
let script = `
|
|
8767
|
+
function run() {
|
|
8768
|
+
${fileContent}
|
|
8769
|
+
|
|
8770
|
+
const paramsId = "${paramsId}";
|
|
8771
|
+
const containerId = "${containerId}";
|
|
8772
|
+
let container;
|
|
8773
|
+
if (containerId) {
|
|
8774
|
+
container = document.getElementById("${containerId}");
|
|
8775
|
+
}
|
|
8776
|
+
|
|
8777
|
+
let pluginHTML = null;
|
|
8778
|
+
if (container) {
|
|
8779
|
+
pluginHTML = document.createElement("div");
|
|
8780
|
+
pluginHTML.id = "${elementId}";
|
|
8781
|
+
container.appendChild(pluginHTML);
|
|
8782
|
+
}
|
|
8783
|
+
|
|
8784
|
+
{TEMPLATE_CODE}
|
|
8785
|
+
const params = window["${paramsId}"];
|
|
8786
|
+
|
|
8787
|
+
window["${disposeId}"] = Run({
|
|
8788
|
+
element: pluginHTML,
|
|
8789
|
+
container: container,
|
|
8790
|
+
pluginParams: params
|
|
8791
|
+
});
|
|
8792
|
+
}
|
|
8793
|
+
run();
|
|
8794
8794
|
`;
|
|
8795
8795
|
if (script.includes("var template")) {
|
|
8796
|
-
script = script.replace("{TEMPLATE_CODE}", `
|
|
8797
|
-
if (pluginHTML && template) {
|
|
8798
|
-
pluginHTML.innerHTML = template;
|
|
8799
|
-
}
|
|
8796
|
+
script = script.replace("{TEMPLATE_CODE}", `
|
|
8797
|
+
if (pluginHTML && template) {
|
|
8798
|
+
pluginHTML.innerHTML = template;
|
|
8799
|
+
}
|
|
8800
8800
|
`);
|
|
8801
8801
|
}
|
|
8802
8802
|
else {
|
|
@@ -8934,7 +8934,7 @@
|
|
|
8934
8934
|
DataSource.GetList = GetList;
|
|
8935
8935
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
8936
8936
|
|
|
8937
|
-
const VERSION = "3.0.
|
|
8937
|
+
const VERSION = "3.0.8";
|
|
8938
8938
|
|
|
8939
8939
|
exports.VERSION = VERSION;
|
|
8940
8940
|
exports.AbstractApi = AbstractApi;
|