vg-print 1.0.337 → 1.0.339
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/style.css +1 -1
- package/dist/vg-print.es.js +109 -131
- package/dist/vg-print.umd.js +4 -4
- package/package.json +1 -1
package/dist/vg-print.es.js
CHANGED
|
@@ -60470,7 +60470,7 @@ ${i18n$1.__("转大小写")}
|
|
|
60470
60470
|
try {
|
|
60471
60471
|
var Se = !!(Be && Be.target && Be.target.hasClass && Be.target.hasClass("design"));
|
|
60472
60472
|
if (!Ie && !Se && typeof window < "u") {
|
|
60473
|
-
var Te = !!(Be._globalAuthKey || window.hiprint && window.hiprint._authKey
|
|
60473
|
+
var Te = !!(Be._globalAuthKey || window.hiprint && window.hiprint._authKey);
|
|
60474
60474
|
if (Te)
|
|
60475
60475
|
Ee && Ee._auto && (Ee.content = "");
|
|
60476
60476
|
else {
|
|
@@ -65647,7 +65647,7 @@ ${i18n$1.__("转大小写")}
|
|
|
65647
65647
|
}
|
|
65648
65648
|
};
|
|
65649
65649
|
})();
|
|
65650
|
-
const version = "1.0.
|
|
65650
|
+
const version = "1.0.339";
|
|
65651
65651
|
let autoConnect$1 = function(Ie) {
|
|
65652
65652
|
console.log("autoConnect"), window.autoConnect = !0, window.hiwebSocket && window.hiwebSocket.hasIo() && window.hiwebSocket.start(Ie);
|
|
65653
65653
|
}, disAutoConnect$1 = function() {
|
|
@@ -65669,25 +65669,7 @@ let autoConnect$1 = function(Ie) {
|
|
|
65669
65669
|
}
|
|
65670
65670
|
};
|
|
65671
65671
|
hiprint$1.version = version;
|
|
65672
|
-
hiprint$1.
|
|
65673
|
-
key: ""
|
|
65674
|
-
});
|
|
65675
|
-
Object.defineProperty(hiprint$1, "_authKey", {
|
|
65676
|
-
get: function() {
|
|
65677
|
-
return this._authState.key;
|
|
65678
|
-
},
|
|
65679
|
-
set: function(Ie) {
|
|
65680
|
-
this._authState.key = Ie || "", typeof window < "u" && window.hiprint && (window.hiprint._authState = this._authState);
|
|
65681
|
-
}
|
|
65682
|
-
});
|
|
65683
|
-
typeof window < "u" && (window.hiprint = window.hiprint || {}, window.hiprint._authState = hiprint$1._authState, Object.defineProperty(window.hiprint, "_authKey", {
|
|
65684
|
-
get: function() {
|
|
65685
|
-
return this._authState.key;
|
|
65686
|
-
},
|
|
65687
|
-
set: function(Ie) {
|
|
65688
|
-
this._authState.key = Ie || "", typeof hiprint$1 < "u" && (hiprint$1._authState = this._authState);
|
|
65689
|
-
}
|
|
65690
|
-
}));
|
|
65672
|
+
hiprint$1._authKey = "";
|
|
65691
65673
|
function _b64ToBytes(Ie) {
|
|
65692
65674
|
const Ae = String(Ie || ""), je = typeof atob == "function" ? atob(Ae) : Buffer.from(Ae, "base64").toString("binary"), Be = new Uint8Array(je.length);
|
|
65693
65675
|
for (let Ee = 0; Ee < je.length; Ee++) Be[Ee] = je.charCodeAt(Ee);
|
|
@@ -65735,7 +65717,7 @@ hiprint$1.register = async function(Ie = {}) {
|
|
|
65735
65717
|
}
|
|
65736
65718
|
} catch {
|
|
65737
65719
|
}
|
|
65738
|
-
if (hiprint$1._authKey = je, hiprint$1.PrintTemplate && hiprint$1.PrintTemplate.prototype && (hiprint$1.PrintTemplate.prototype._globalAuthKey = je), (Array.isArray(Ie.plugins) ? Ie.plugins : []).forEach(function(Ee) {
|
|
65720
|
+
if (hiprint$1._authKey = je, hiprint$1.PrintTemplate && hiprint$1.PrintTemplate.prototype && (hiprint$1.PrintTemplate.prototype._globalAuthKey = je), typeof window < "u" && window.hiprint && (window.hiprint._authKey = je, window.hiprint.PrintTemplate && window.hiprint.PrintTemplate.prototype && (window.hiprint.PrintTemplate.prototype._globalAuthKey = je)), (Array.isArray(Ie.plugins) ? Ie.plugins : []).forEach(function(Ee) {
|
|
65739
65721
|
try {
|
|
65740
65722
|
if (!Ee) return;
|
|
65741
65723
|
typeof Ee == "function" ? Ee(hiprint$1) : typeof Ee.install == "function" && Ee.install(hiprint$1);
|
|
@@ -79397,120 +79379,117 @@ b`.split(/\n/).length != 3 ? function(Fe) {
|
|
|
79397
79379
|
});
|
|
79398
79380
|
}(codemirror)), codemirror.exports;
|
|
79399
79381
|
}
|
|
79400
|
-
|
|
79401
|
-
function
|
|
79402
|
-
|
|
79403
|
-
|
|
79404
|
-
|
|
79405
|
-
|
|
79406
|
-
|
|
79407
|
-
|
|
79408
|
-
|
|
79409
|
-
|
|
79410
|
-
|
|
79411
|
-
|
|
79412
|
-
|
|
79413
|
-
var
|
|
79414
|
-
|
|
79415
|
-
|
|
79416
|
-
|
|
79417
|
-
if (
|
|
79418
|
-
|
|
79419
|
-
|
|
79420
|
-
|
|
79421
|
-
|
|
79422
|
-
|
|
79423
|
-
|
|
79424
|
-
|
|
79425
|
-
|
|
79426
|
-
|
|
79427
|
-
|
|
79428
|
-
|
|
79429
|
-
|
|
79430
|
-
je.on(Ze, "mousedown", function(qe) {
|
|
79431
|
-
St.clear(), je.e_preventDefault(qe);
|
|
79432
|
-
});
|
|
79433
|
-
var St = Pe.markText(We.from, We.to, {
|
|
79434
|
-
replacedWith: Ze,
|
|
79435
|
-
clearOnEnter: Te(Pe, Ue, "clearOnEnter"),
|
|
79436
|
-
__isFold: !0
|
|
79437
|
-
});
|
|
79438
|
-
St.on("clear", function(qe, rr) {
|
|
79439
|
-
je.signal(Pe, "unfold", Pe, qe, rr);
|
|
79440
|
-
}), je.signal(Pe, "fold", Pe, We.from, We.to);
|
|
79441
|
-
}
|
|
79442
|
-
}
|
|
79443
|
-
function Ee(Pe, De, Ue) {
|
|
79444
|
-
var He = Te(Pe, De, "widget");
|
|
79445
|
-
if (typeof He == "function" && (He = He(Ue.from, Ue.to)), typeof He == "string") {
|
|
79446
|
-
var Ge = document.createTextNode(He);
|
|
79447
|
-
He = document.createElement("span"), He.appendChild(Ge), He.className = "CodeMirror-foldmarker";
|
|
79448
|
-
} else He && (He = He.cloneNode(!0));
|
|
79449
|
-
return He;
|
|
79450
|
-
}
|
|
79451
|
-
je.newFoldFunction = function(Pe, De) {
|
|
79452
|
-
return function(Ue, He) {
|
|
79453
|
-
Be(Ue, He, { rangeFinder: Pe, widget: De });
|
|
79454
|
-
};
|
|
79455
|
-
}, je.defineExtension("foldCode", function(Pe, De, Ue) {
|
|
79456
|
-
Be(this, Pe, De, Ue);
|
|
79457
|
-
}), je.defineExtension("isFolded", function(Pe) {
|
|
79458
|
-
for (var De = this.findMarksAt(Pe), Ue = 0; Ue < De.length; ++Ue)
|
|
79459
|
-
if (De[Ue].__isFold) return !0;
|
|
79460
|
-
}), je.commands.toggleFold = function(Pe) {
|
|
79461
|
-
Pe.foldCode(Pe.getCursor());
|
|
79462
|
-
}, je.commands.fold = function(Pe) {
|
|
79463
|
-
Pe.foldCode(Pe.getCursor(), null, "fold");
|
|
79464
|
-
}, je.commands.unfold = function(Pe) {
|
|
79465
|
-
Pe.foldCode(Pe.getCursor(), { scanUp: !1 }, "unfold");
|
|
79466
|
-
}, je.commands.foldAll = function(Pe) {
|
|
79467
|
-
Pe.operation(function() {
|
|
79468
|
-
for (var De = Pe.firstLine(), Ue = Pe.lastLine(); De <= Ue; De++)
|
|
79469
|
-
Pe.foldCode(je.Pos(De, 0), { scanUp: !1 }, "fold");
|
|
79382
|
+
(function(Ie, Ae) {
|
|
79383
|
+
(function(je) {
|
|
79384
|
+
je(requireCodemirror());
|
|
79385
|
+
})(function(je) {
|
|
79386
|
+
function Be(Pe, De, Ue, He) {
|
|
79387
|
+
if (Ue && Ue.call) {
|
|
79388
|
+
var Ge = Ue;
|
|
79389
|
+
Ue = null;
|
|
79390
|
+
} else
|
|
79391
|
+
var Ge = Te(Pe, Ue, "rangeFinder");
|
|
79392
|
+
typeof De == "number" && (De = je.Pos(De, 0));
|
|
79393
|
+
var Oe = Te(Pe, Ue, "minFoldSize");
|
|
79394
|
+
function Qe(qe) {
|
|
79395
|
+
var rr = Ge(Pe, De);
|
|
79396
|
+
if (!rr || rr.to.line - rr.from.line < Oe) return null;
|
|
79397
|
+
if (He === "fold") return rr;
|
|
79398
|
+
for (var ar = Pe.findMarksAt(rr.from), er = 0; er < ar.length; ++er)
|
|
79399
|
+
if (ar[er].__isFold) {
|
|
79400
|
+
if (!qe) return null;
|
|
79401
|
+
rr.cleared = !0, ar[er].clear();
|
|
79402
|
+
}
|
|
79403
|
+
return rr;
|
|
79404
|
+
}
|
|
79405
|
+
var We = Qe(!0);
|
|
79406
|
+
if (Te(Pe, Ue, "scanUp")) for (; !We && De.line > Pe.firstLine(); )
|
|
79407
|
+
De = je.Pos(De.line - 1, 0), We = Qe(!1);
|
|
79408
|
+
if (!(!We || We.cleared || He === "unfold")) {
|
|
79409
|
+
var Ze = Ee(Pe, Ue, We);
|
|
79410
|
+
je.on(Ze, "mousedown", function(qe) {
|
|
79411
|
+
St.clear(), je.e_preventDefault(qe);
|
|
79470
79412
|
});
|
|
79471
|
-
|
|
79472
|
-
|
|
79473
|
-
|
|
79474
|
-
|
|
79413
|
+
var St = Pe.markText(We.from, We.to, {
|
|
79414
|
+
replacedWith: Ze,
|
|
79415
|
+
clearOnEnter: Te(Pe, Ue, "clearOnEnter"),
|
|
79416
|
+
__isFold: !0
|
|
79475
79417
|
});
|
|
79476
|
-
|
|
79477
|
-
|
|
79478
|
-
|
|
79479
|
-
|
|
79480
|
-
|
|
79481
|
-
|
|
79482
|
-
|
|
79483
|
-
|
|
79484
|
-
|
|
79485
|
-
|
|
79486
|
-
|
|
79418
|
+
St.on("clear", function(qe, rr) {
|
|
79419
|
+
je.signal(Pe, "unfold", Pe, qe, rr);
|
|
79420
|
+
}), je.signal(Pe, "fold", Pe, We.from, We.to);
|
|
79421
|
+
}
|
|
79422
|
+
}
|
|
79423
|
+
function Ee(Pe, De, Ue) {
|
|
79424
|
+
var He = Te(Pe, De, "widget");
|
|
79425
|
+
if (typeof He == "function" && (He = He(Ue.from, Ue.to)), typeof He == "string") {
|
|
79426
|
+
var Ge = document.createTextNode(He);
|
|
79427
|
+
He = document.createElement("span"), He.appendChild(Ge), He.className = "CodeMirror-foldmarker";
|
|
79428
|
+
} else He && (He = He.cloneNode(!0));
|
|
79429
|
+
return He;
|
|
79430
|
+
}
|
|
79431
|
+
je.newFoldFunction = function(Pe, De) {
|
|
79432
|
+
return function(Ue, He) {
|
|
79433
|
+
Be(Ue, He, { rangeFinder: Pe, widget: De });
|
|
79434
|
+
};
|
|
79435
|
+
}, je.defineExtension("foldCode", function(Pe, De, Ue) {
|
|
79436
|
+
Be(this, Pe, De, Ue);
|
|
79437
|
+
}), je.defineExtension("isFolded", function(Pe) {
|
|
79438
|
+
for (var De = this.findMarksAt(Pe), Ue = 0; Ue < De.length; ++Ue)
|
|
79439
|
+
if (De[Ue].__isFold) return !0;
|
|
79440
|
+
}), je.commands.toggleFold = function(Pe) {
|
|
79441
|
+
Pe.foldCode(Pe.getCursor());
|
|
79442
|
+
}, je.commands.fold = function(Pe) {
|
|
79443
|
+
Pe.foldCode(Pe.getCursor(), null, "fold");
|
|
79444
|
+
}, je.commands.unfold = function(Pe) {
|
|
79445
|
+
Pe.foldCode(Pe.getCursor(), { scanUp: !1 }, "unfold");
|
|
79446
|
+
}, je.commands.foldAll = function(Pe) {
|
|
79447
|
+
Pe.operation(function() {
|
|
79448
|
+
for (var De = Pe.firstLine(), Ue = Pe.lastLine(); De <= Ue; De++)
|
|
79449
|
+
Pe.foldCode(je.Pos(De, 0), { scanUp: !1 }, "fold");
|
|
79450
|
+
});
|
|
79451
|
+
}, je.commands.unfoldAll = function(Pe) {
|
|
79452
|
+
Pe.operation(function() {
|
|
79453
|
+
for (var De = Pe.firstLine(), Ue = Pe.lastLine(); De <= Ue; De++)
|
|
79454
|
+
Pe.foldCode(je.Pos(De, 0), { scanUp: !1 }, "unfold");
|
|
79455
|
+
});
|
|
79456
|
+
}, je.registerHelper("fold", "combine", function() {
|
|
79457
|
+
var Pe = Array.prototype.slice.call(arguments, 0);
|
|
79458
|
+
return function(De, Ue) {
|
|
79459
|
+
for (var He = 0; He < Pe.length; ++He) {
|
|
79460
|
+
var Ge = Pe[He](De, Ue);
|
|
79487
79461
|
if (Ge) return Ge;
|
|
79488
79462
|
}
|
|
79489
|
-
});
|
|
79490
|
-
var Se = {
|
|
79491
|
-
rangeFinder: je.fold.auto,
|
|
79492
|
-
widget: "↔",
|
|
79493
|
-
minFoldSize: 0,
|
|
79494
|
-
scanUp: !1,
|
|
79495
|
-
clearOnEnter: !0
|
|
79496
79463
|
};
|
|
79497
|
-
|
|
79498
|
-
|
|
79499
|
-
|
|
79500
|
-
|
|
79501
|
-
|
|
79502
|
-
return He && He[Ue] !== void 0 ? He[Ue] : Se[Ue];
|
|
79503
|
-
}
|
|
79504
|
-
je.defineExtension("foldOption", function(Pe, De) {
|
|
79505
|
-
return Te(this, Pe, De);
|
|
79506
|
-
});
|
|
79464
|
+
}), je.registerHelper("fold", "auto", function(Pe, De) {
|
|
79465
|
+
for (var Ue = Pe.getHelpers(De, "fold"), He = 0; He < Ue.length; He++) {
|
|
79466
|
+
var Ge = Ue[He](Pe, De);
|
|
79467
|
+
if (Ge) return Ge;
|
|
79468
|
+
}
|
|
79507
79469
|
});
|
|
79508
|
-
|
|
79509
|
-
|
|
79510
|
-
|
|
79470
|
+
var Se = {
|
|
79471
|
+
rangeFinder: je.fold.auto,
|
|
79472
|
+
widget: "↔",
|
|
79473
|
+
minFoldSize: 0,
|
|
79474
|
+
scanUp: !1,
|
|
79475
|
+
clearOnEnter: !0
|
|
79476
|
+
};
|
|
79477
|
+
je.defineOption("foldOptions", null);
|
|
79478
|
+
function Te(Pe, De, Ue) {
|
|
79479
|
+
if (De && De[Ue] !== void 0)
|
|
79480
|
+
return De[Ue];
|
|
79481
|
+
var He = Pe.options.foldOptions;
|
|
79482
|
+
return He && He[Ue] !== void 0 ? He[Ue] : Se[Ue];
|
|
79483
|
+
}
|
|
79484
|
+
je.defineExtension("foldOption", function(Pe, De) {
|
|
79485
|
+
return Te(this, Pe, De);
|
|
79486
|
+
});
|
|
79487
|
+
});
|
|
79488
|
+
})();
|
|
79489
|
+
var foldcodeExports = foldcode.exports;
|
|
79511
79490
|
(function(Ie, Ae) {
|
|
79512
79491
|
(function(je) {
|
|
79513
|
-
je(requireCodemirror(),
|
|
79492
|
+
je(requireCodemirror(), foldcodeExports);
|
|
79514
79493
|
})(function(je) {
|
|
79515
79494
|
je.defineOption("foldGutter", !1, function(St, qe, rr) {
|
|
79516
79495
|
rr && rr != je.Init && (St.clearGutter(St.state.foldGutter.options.gutter), St.state.foldGutter = null, St.off("gutterClick", Ge), St.off("changes", Qe), St.off("viewportChange", We), St.off("fold", Ze), St.off("unfold", Ze), St.off("swapDoc", Qe), St.off("optionChange", Oe)), qe && (St.state.foldGutter = new Ee(Se(qe)), He(St), St.on("gutterClick", Ge), St.on("changes", Qe), St.on("viewportChange", We), St.on("fold", Ze), St.on("unfold", Ze), St.on("swapDoc", Qe), St.on("optionChange", Oe));
|
|
@@ -87534,8 +87513,7 @@ const _sfc_main = {
|
|
|
87534
87513
|
Te._notifRegistry[je] = Pe;
|
|
87535
87514
|
let De = new hiprint.PrintTemplate({
|
|
87536
87515
|
template,
|
|
87537
|
-
|
|
87538
|
-
watermarkOptions: typeof window < "u" && window.hiprint && window.hiprint._authKey || typeof hiprint < "u" && hiprint._authKey ? void 0 : {
|
|
87516
|
+
watermarkOptions: hiprint._authKey ? void 0 : {
|
|
87539
87517
|
content: "vg-print",
|
|
87540
87518
|
timestamp: !0
|
|
87541
87519
|
}
|
|
@@ -88286,7 +88264,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
88286
88264
|
}, null, 8, ["template", "onApply"])
|
|
88287
88265
|
], 64);
|
|
88288
88266
|
}
|
|
88289
|
-
const FullDesigner = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
88267
|
+
const FullDesigner = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2244caa8"]]), index = {
|
|
88290
88268
|
install(Ie) {
|
|
88291
88269
|
Ie.component("FullDesigner", FullDesigner);
|
|
88292
88270
|
try {
|