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.es5.js
CHANGED
|
@@ -10091,6 +10091,14 @@ var Markup;
|
|
|
10091
10091
|
// Assumes existence of line that is used to anchor it.
|
|
10092
10092
|
EType["Callout"] = "callout";
|
|
10093
10093
|
})(EType = Div.EType || (Div.EType = {}));
|
|
10094
|
+
let EAnchorDivSide;
|
|
10095
|
+
(function (EAnchorDivSide) {
|
|
10096
|
+
// “absolute” is now deprecated and a legacy value for TopLeft
|
|
10097
|
+
EAnchorDivSide["TopLeft"] = "TopLeft";
|
|
10098
|
+
EAnchorDivSide["BottomLeft"] = "BottomLeft";
|
|
10099
|
+
EAnchorDivSide["BottomRight"] = "BottomRight";
|
|
10100
|
+
EAnchorDivSide["TopRight"] = "TopRight";
|
|
10101
|
+
})(EAnchorDivSide = Div.EAnchorDivSide || (Div.EAnchorDivSide = {}));
|
|
10094
10102
|
// Describes expected content of a row cell.
|
|
10095
10103
|
let EItemType;
|
|
10096
10104
|
(function (EItemType) {
|
|
@@ -10487,40 +10495,40 @@ var Plugin;
|
|
|
10487
10495
|
window[paramsId] = pluginParams ? pluginParams : {};
|
|
10488
10496
|
const disposeId = ObjectUtils.UId();
|
|
10489
10497
|
const elementId = ObjectUtils.UId();
|
|
10490
|
-
let script = `
|
|
10491
|
-
function run() {
|
|
10492
|
-
${fileContent}
|
|
10493
|
-
|
|
10494
|
-
const paramsId = "${paramsId}";
|
|
10495
|
-
const containerId = "${containerId}";
|
|
10496
|
-
let container;
|
|
10497
|
-
if (containerId) {
|
|
10498
|
-
container = document.getElementById("${containerId}");
|
|
10499
|
-
}
|
|
10500
|
-
|
|
10501
|
-
let pluginHTML = null;
|
|
10502
|
-
if (container) {
|
|
10503
|
-
pluginHTML = document.createElement("div");
|
|
10504
|
-
pluginHTML.id = "${elementId}";
|
|
10505
|
-
container.appendChild(pluginHTML);
|
|
10506
|
-
}
|
|
10507
|
-
|
|
10508
|
-
{TEMPLATE_CODE}
|
|
10509
|
-
const params = window["${paramsId}"];
|
|
10510
|
-
|
|
10511
|
-
window["${disposeId}"] = Run({
|
|
10512
|
-
element: pluginHTML,
|
|
10513
|
-
container: container,
|
|
10514
|
-
pluginParams: params
|
|
10515
|
-
});
|
|
10516
|
-
}
|
|
10517
|
-
run();
|
|
10498
|
+
let script = `
|
|
10499
|
+
function run() {
|
|
10500
|
+
${fileContent}
|
|
10501
|
+
|
|
10502
|
+
const paramsId = "${paramsId}";
|
|
10503
|
+
const containerId = "${containerId}";
|
|
10504
|
+
let container;
|
|
10505
|
+
if (containerId) {
|
|
10506
|
+
container = document.getElementById("${containerId}");
|
|
10507
|
+
}
|
|
10508
|
+
|
|
10509
|
+
let pluginHTML = null;
|
|
10510
|
+
if (container) {
|
|
10511
|
+
pluginHTML = document.createElement("div");
|
|
10512
|
+
pluginHTML.id = "${elementId}";
|
|
10513
|
+
container.appendChild(pluginHTML);
|
|
10514
|
+
}
|
|
10515
|
+
|
|
10516
|
+
{TEMPLATE_CODE}
|
|
10517
|
+
const params = window["${paramsId}"];
|
|
10518
|
+
|
|
10519
|
+
window["${disposeId}"] = Run({
|
|
10520
|
+
element: pluginHTML,
|
|
10521
|
+
container: container,
|
|
10522
|
+
pluginParams: params
|
|
10523
|
+
});
|
|
10524
|
+
}
|
|
10525
|
+
run();
|
|
10518
10526
|
`;
|
|
10519
10527
|
if (script.includes("var template")) {
|
|
10520
|
-
script = script.replace("{TEMPLATE_CODE}", `
|
|
10521
|
-
if (pluginHTML && template) {
|
|
10522
|
-
pluginHTML.innerHTML = template;
|
|
10523
|
-
}
|
|
10528
|
+
script = script.replace("{TEMPLATE_CODE}", `
|
|
10529
|
+
if (pluginHTML && template) {
|
|
10530
|
+
pluginHTML.innerHTML = template;
|
|
10531
|
+
}
|
|
10524
10532
|
`);
|
|
10525
10533
|
}
|
|
10526
10534
|
else {
|