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.
@@ -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.7";
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 {
@@ -81,4 +81,4 @@ export * from "./internal/uploader";
81
81
  export * from "./plugin/plugin";
82
82
  export * from "./environment";
83
83
  export * from "./data-source/data-source";
84
- export declare const VERSION = "3.0.7";
84
+ export declare const VERSION = "3.0.8";
@@ -7,6 +7,7 @@ export declare namespace CustomFormContent {
7
7
  width: number;
8
8
  };
9
9
  stack: IStackItem[];
10
+ includeTitle?: boolean;
10
11
  }
11
12
  interface IStackItem {
12
13
  component: Component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",