bruce-models 3.3.5 → 3.3.7
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 +40 -32
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +40 -32
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/markup/markup.js +8 -0
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/lib/plugin/plugin.js +32 -32
- package/dist/types/markup/markup.d.ts +7 -1
- package/package.json +78 -78
package/dist/bruce-models.umd.js
CHANGED
|
@@ -9840,6 +9840,14 @@
|
|
|
9840
9840
|
// Assumes existence of line that is used to anchor it.
|
|
9841
9841
|
EType["Callout"] = "callout";
|
|
9842
9842
|
})(EType = Div.EType || (Div.EType = {}));
|
|
9843
|
+
let EAnchorDivSide;
|
|
9844
|
+
(function (EAnchorDivSide) {
|
|
9845
|
+
// “absolute” is now deprecated and a legacy value for TopLeft
|
|
9846
|
+
EAnchorDivSide["TopLeft"] = "TopLeft";
|
|
9847
|
+
EAnchorDivSide["BottomLeft"] = "BottomLeft";
|
|
9848
|
+
EAnchorDivSide["BottomRight"] = "BottomRight";
|
|
9849
|
+
EAnchorDivSide["TopRight"] = "TopRight";
|
|
9850
|
+
})(EAnchorDivSide = Div.EAnchorDivSide || (Div.EAnchorDivSide = {}));
|
|
9843
9851
|
// Describes expected content of a row cell.
|
|
9844
9852
|
let EItemType;
|
|
9845
9853
|
(function (EItemType) {
|
|
@@ -10235,40 +10243,40 @@
|
|
|
10235
10243
|
window[paramsId] = pluginParams ? pluginParams : {};
|
|
10236
10244
|
const disposeId = exports.ObjectUtils.UId();
|
|
10237
10245
|
const elementId = exports.ObjectUtils.UId();
|
|
10238
|
-
let script = `
|
|
10239
|
-
function run() {
|
|
10240
|
-
${fileContent}
|
|
10241
|
-
|
|
10242
|
-
const paramsId = "${paramsId}";
|
|
10243
|
-
const containerId = "${containerId}";
|
|
10244
|
-
let container;
|
|
10245
|
-
if (containerId) {
|
|
10246
|
-
container = document.getElementById("${containerId}");
|
|
10247
|
-
}
|
|
10248
|
-
|
|
10249
|
-
let pluginHTML = null;
|
|
10250
|
-
if (container) {
|
|
10251
|
-
pluginHTML = document.createElement("div");
|
|
10252
|
-
pluginHTML.id = "${elementId}";
|
|
10253
|
-
container.appendChild(pluginHTML);
|
|
10254
|
-
}
|
|
10255
|
-
|
|
10256
|
-
{TEMPLATE_CODE}
|
|
10257
|
-
const params = window["${paramsId}"];
|
|
10258
|
-
|
|
10259
|
-
window["${disposeId}"] = Run({
|
|
10260
|
-
element: pluginHTML,
|
|
10261
|
-
container: container,
|
|
10262
|
-
pluginParams: params
|
|
10263
|
-
});
|
|
10264
|
-
}
|
|
10265
|
-
run();
|
|
10246
|
+
let script = `
|
|
10247
|
+
function run() {
|
|
10248
|
+
${fileContent}
|
|
10249
|
+
|
|
10250
|
+
const paramsId = "${paramsId}";
|
|
10251
|
+
const containerId = "${containerId}";
|
|
10252
|
+
let container;
|
|
10253
|
+
if (containerId) {
|
|
10254
|
+
container = document.getElementById("${containerId}");
|
|
10255
|
+
}
|
|
10256
|
+
|
|
10257
|
+
let pluginHTML = null;
|
|
10258
|
+
if (container) {
|
|
10259
|
+
pluginHTML = document.createElement("div");
|
|
10260
|
+
pluginHTML.id = "${elementId}";
|
|
10261
|
+
container.appendChild(pluginHTML);
|
|
10262
|
+
}
|
|
10263
|
+
|
|
10264
|
+
{TEMPLATE_CODE}
|
|
10265
|
+
const params = window["${paramsId}"];
|
|
10266
|
+
|
|
10267
|
+
window["${disposeId}"] = Run({
|
|
10268
|
+
element: pluginHTML,
|
|
10269
|
+
container: container,
|
|
10270
|
+
pluginParams: params
|
|
10271
|
+
});
|
|
10272
|
+
}
|
|
10273
|
+
run();
|
|
10266
10274
|
`;
|
|
10267
10275
|
if (script.includes("var template")) {
|
|
10268
|
-
script = script.replace("{TEMPLATE_CODE}", `
|
|
10269
|
-
if (pluginHTML && template) {
|
|
10270
|
-
pluginHTML.innerHTML = template;
|
|
10271
|
-
}
|
|
10276
|
+
script = script.replace("{TEMPLATE_CODE}", `
|
|
10277
|
+
if (pluginHTML && template) {
|
|
10278
|
+
pluginHTML.innerHTML = template;
|
|
10279
|
+
}
|
|
10272
10280
|
`);
|
|
10273
10281
|
}
|
|
10274
10282
|
else {
|