@borurio-print/print-designer 1.0.8 → 1.0.9
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-lib/{index-DHRuruEA.js → index-Q-0aeHwO.js} +367 -367
- package/dist-lib/{index.es-DhfItxVp.js → index.es-CICftIsf.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{pdfGenerator-d10V0deV.js → pdfGenerator-CLsqLnwp.js} +1 -1
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElButton as dl, ElFormItem as iZ, ElInput as um, ElRadioGroup as ed, ElRadio as Jd, ElInputNumber as OZ, ElCheckbox as am, ElDatePicker as c2, ElSelect as sl, ElOption as yl, ElSlider as b2, ElForm as Mm, ElButtonGroup as W2, ElTooltip as G2, ElEmpty as Y2, ElDialog as hm, ElDropdown as Vb, ElDropdownMenu as sb, ElDropdownItem as yb, ElDivider as X2, ElConfigProvider as N2 } from "element-plus/es";
|
|
2
|
-
import { inject as t2, computed as K, defineComponent as $, onMounted as nm, openBlock as T, createElementBlock as o, mergeProps as i2, toDisplayString as H, createCommentVNode as XZ, createElementVNode as
|
|
2
|
+
import { inject as t2, computed as K, defineComponent as $, onMounted as nm, openBlock as T, createElementBlock as o, mergeProps as i2, toDisplayString as H, createCommentVNode as XZ, createElementVNode as R, unref as j, Fragment as f, renderList as _, createBlock as r, withCtx as S, createVNode as J, createTextVNode as WZ, normalizeClass as vZ, withModifiers as YZ, resolveDynamicComponent as u2, ref as hZ, watchEffect as a2, nextTick as nl, watch as Tb, normalizeStyle as _Z, reactive as xd, onBeforeUnmount as M2, provide as h2 } from "vue";
|
|
3
3
|
import { useI18n as LZ } from "vue-i18n";
|
|
4
4
|
function Ol(l) {
|
|
5
5
|
return (l.type === "text" || l.type === "textBox" || l.type === "qrcode" || l.type === "barcode") && !!l.field;
|
|
@@ -889,7 +889,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
889
889
|
focusable: "false"
|
|
890
890
|
}), [
|
|
891
891
|
l.title ? (T(), o("title", K2, H(l.title), 1)) : XZ("", !0),
|
|
892
|
-
|
|
892
|
+
R("use", {
|
|
893
893
|
href: `#${c.value}`
|
|
894
894
|
}, null, 8, H2)
|
|
895
895
|
], 16, g2));
|
|
@@ -925,9 +925,9 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
925
925
|
return (G, Z) => {
|
|
926
926
|
const d = dl;
|
|
927
927
|
return T(), o("section", Q2, [
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
(T(!0), o(f, null, _(X.value, (W) => (T(),
|
|
928
|
+
R("h2", B2, H(j(Y)("printDesigner.components.title")), 1),
|
|
929
|
+
R("div", P2, [
|
|
930
|
+
(T(!0), o(f, null, _(X.value, (W) => (T(), r(d, {
|
|
931
931
|
key: W.field,
|
|
932
932
|
class: "component-panel__item",
|
|
933
933
|
"data-field": W.field,
|
|
@@ -944,10 +944,10 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
944
944
|
_: 2
|
|
945
945
|
}, 1032, ["data-field", "title", "aria-label", "onClick"]))), 128))
|
|
946
946
|
]),
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
(T(!0), o(f, null, _(N.value, (W) => (T(),
|
|
947
|
+
R("div", v2, [
|
|
948
|
+
R("h2", r2, H(j(Y)("printDesigner.components.advancedTitle")), 1),
|
|
949
|
+
R("div", f2, [
|
|
950
|
+
(T(!0), o(f, null, _(N.value, (W) => (T(), r(d, {
|
|
951
951
|
key: W.field,
|
|
952
952
|
class: "component-panel__item",
|
|
953
953
|
"data-field": W.field,
|
|
@@ -969,9 +969,9 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
969
969
|
key: `${W.label}-${b}`,
|
|
970
970
|
class: "component-panel__field-group"
|
|
971
971
|
}, [
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
(T(!0), o(f, null, _(W.fields, (u, a) => (T(),
|
|
972
|
+
R("h3", A2, H(W.label), 1),
|
|
973
|
+
R("div", q2, [
|
|
974
|
+
(T(!0), o(f, null, _(W.fields, (u, a) => (T(), r(d, {
|
|
975
975
|
key: `${u.field}-${u.type}-${a}`,
|
|
976
976
|
class: "component-panel__field-item",
|
|
977
977
|
title: u.label,
|
|
@@ -1020,14 +1020,14 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1020
1020
|
"aria-label": j(m)("printDesigner.elementList.title")
|
|
1021
1021
|
}, [
|
|
1022
1022
|
l.templateMode === "dual" ? (T(), o("div", lW, [
|
|
1023
|
-
|
|
1023
|
+
R("button", {
|
|
1024
1024
|
type: "button",
|
|
1025
1025
|
class: vZ(["template-canvas-page-tabs__button", {
|
|
1026
1026
|
"template-canvas-page-tabs__button--active": l.activeTemplatePage === "first"
|
|
1027
1027
|
}]),
|
|
1028
1028
|
onClick: G[0] || (G[0] = (Z) => N("first"))
|
|
1029
1029
|
}, H(j(m)("printDesigner.templateInfo.firstTemplate")), 3),
|
|
1030
|
-
|
|
1030
|
+
R("button", {
|
|
1031
1031
|
type: "button",
|
|
1032
1032
|
class: vZ(["template-canvas-page-tabs__button", {
|
|
1033
1033
|
"template-canvas-page-tabs__button--active": l.activeTemplatePage === "continuation"
|
|
@@ -1035,21 +1035,21 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1035
1035
|
onClick: G[1] || (G[1] = (Z) => N("continuation"))
|
|
1036
1036
|
}, H(j(m)("printDesigner.templateInfo.continuationTemplate")), 3)
|
|
1037
1037
|
])) : XZ("", !0),
|
|
1038
|
-
|
|
1038
|
+
R("div", dW, [
|
|
1039
1039
|
(T(!0), o(f, null, _(X.value, (Z) => (T(), o("div", {
|
|
1040
1040
|
key: Z.element.id,
|
|
1041
1041
|
class: vZ(["element-list-panel__item", {
|
|
1042
1042
|
"element-list-panel__item--selected": Z.element.id === l.selectedElementId
|
|
1043
1043
|
}])
|
|
1044
1044
|
}, [
|
|
1045
|
-
|
|
1045
|
+
R("button", {
|
|
1046
1046
|
type: "button",
|
|
1047
1047
|
class: "element-list-panel__select-button",
|
|
1048
1048
|
"aria-pressed": Z.element.id === l.selectedElementId,
|
|
1049
1049
|
title: Z.label,
|
|
1050
1050
|
onClick: (d) => Y("select", Z.element.id)
|
|
1051
1051
|
}, [
|
|
1052
|
-
|
|
1052
|
+
R("span", cW, H(Z.label), 1)
|
|
1053
1053
|
], 8, mW),
|
|
1054
1054
|
Z.element.id === l.selectedElementId ? (T(), o("button", {
|
|
1055
1055
|
key: 0,
|
|
@@ -1099,7 +1099,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1099
1099
|
}
|
|
1100
1100
|
return (i, G) => {
|
|
1101
1101
|
const Z = um, d = iZ;
|
|
1102
|
-
return T(),
|
|
1102
|
+
return T(), r(d, {
|
|
1103
1103
|
label: i.$t(m.value)
|
|
1104
1104
|
}, {
|
|
1105
1105
|
default: S(() => [
|
|
@@ -1129,7 +1129,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1129
1129
|
}
|
|
1130
1130
|
return (X, N) => {
|
|
1131
1131
|
const i = Jd, G = ed, Z = iZ;
|
|
1132
|
-
return T(),
|
|
1132
|
+
return T(), r(Z, {
|
|
1133
1133
|
label: j(Y)("printDesigner.properties.displayType")
|
|
1134
1134
|
}, {
|
|
1135
1135
|
default: S(() => [
|
|
@@ -1196,7 +1196,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return (X, N) => {
|
|
1198
1198
|
const i = OZ, G = iZ;
|
|
1199
|
-
return T(),
|
|
1199
|
+
return T(), r(G, {
|
|
1200
1200
|
label: X.$t("printDesigner.properties.fontSize")
|
|
1201
1201
|
}, {
|
|
1202
1202
|
default: S(() => [
|
|
@@ -1209,7 +1209,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1209
1209
|
precision: c.config?.precision ?? 0,
|
|
1210
1210
|
onChange: m
|
|
1211
1211
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
1212
|
-
N[0] || (N[0] =
|
|
1212
|
+
N[0] || (N[0] = R("span", { class: "element-property-unit" }, "pt", -1))
|
|
1213
1213
|
]),
|
|
1214
1214
|
_: 1
|
|
1215
1215
|
}, 8, ["label"]);
|
|
@@ -1229,7 +1229,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1229
1229
|
}
|
|
1230
1230
|
return (X, N) => {
|
|
1231
1231
|
const i = Jd, G = ed, Z = iZ;
|
|
1232
|
-
return T(),
|
|
1232
|
+
return T(), r(Z, {
|
|
1233
1233
|
label: X.$t("printDesigner.properties.fontWeight")
|
|
1234
1234
|
}, {
|
|
1235
1235
|
default: S(() => [
|
|
@@ -1278,7 +1278,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1278
1278
|
}
|
|
1279
1279
|
return (X, N) => {
|
|
1280
1280
|
const i = OZ, G = iZ;
|
|
1281
|
-
return T(),
|
|
1281
|
+
return T(), r(G, {
|
|
1282
1282
|
label: X.$t("printDesigner.properties.height")
|
|
1283
1283
|
}, {
|
|
1284
1284
|
default: S(() => [
|
|
@@ -1291,7 +1291,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1291
1291
|
precision: c.config?.precision ?? 2,
|
|
1292
1292
|
onChange: m
|
|
1293
1293
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
1294
|
-
N[0] || (N[0] =
|
|
1294
|
+
N[0] || (N[0] = R("span", { class: "element-property-unit" }, "mm", -1))
|
|
1295
1295
|
]),
|
|
1296
1296
|
_: 1
|
|
1297
1297
|
}, 8, ["label"]);
|
|
@@ -1311,7 +1311,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return (m, X) => {
|
|
1313
1313
|
const N = am, i = iZ;
|
|
1314
|
-
return T(),
|
|
1314
|
+
return T(), r(i, null, {
|
|
1315
1315
|
default: S(() => [
|
|
1316
1316
|
J(N, {
|
|
1317
1317
|
"model-value": !!l.modelValue,
|
|
@@ -1341,7 +1341,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1341
1341
|
}
|
|
1342
1342
|
return (i, G) => {
|
|
1343
1343
|
const Z = c2, d = iZ;
|
|
1344
|
-
return T(),
|
|
1344
|
+
return T(), r(d, {
|
|
1345
1345
|
label: i.$t("printDesigner.properties.fixedTime")
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: S(() => [
|
|
@@ -1377,7 +1377,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1377
1377
|
}
|
|
1378
1378
|
return (X, N) => {
|
|
1379
1379
|
const i = OZ, G = iZ;
|
|
1380
|
-
return T(),
|
|
1380
|
+
return T(), r(G, {
|
|
1381
1381
|
label: X.$t("printDesigner.properties.lineHeight")
|
|
1382
1382
|
}, {
|
|
1383
1383
|
default: S(() => [
|
|
@@ -1409,7 +1409,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1409
1409
|
}
|
|
1410
1410
|
return (X, N) => {
|
|
1411
1411
|
const i = OZ, G = iZ;
|
|
1412
|
-
return T(),
|
|
1412
|
+
return T(), r(G, {
|
|
1413
1413
|
label: X.$t("printDesigner.properties.minFontSize")
|
|
1414
1414
|
}, {
|
|
1415
1415
|
default: S(() => [
|
|
@@ -1422,7 +1422,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1422
1422
|
precision: c.config?.precision ?? 0,
|
|
1423
1423
|
onChange: m
|
|
1424
1424
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
1425
|
-
N[0] || (N[0] =
|
|
1425
|
+
N[0] || (N[0] = R("span", { class: "element-property-unit" }, "pt", -1))
|
|
1426
1426
|
]),
|
|
1427
1427
|
_: 1
|
|
1428
1428
|
}, 8, ["label"]);
|
|
@@ -1444,7 +1444,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1444
1444
|
}
|
|
1445
1445
|
return (i, G) => {
|
|
1446
1446
|
const Z = OZ, d = iZ;
|
|
1447
|
-
return T(),
|
|
1447
|
+
return T(), r(d, { label: X.value }, {
|
|
1448
1448
|
default: S(() => [
|
|
1449
1449
|
J(Z, {
|
|
1450
1450
|
class: "element-property-number",
|
|
@@ -1455,7 +1455,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1455
1455
|
precision: 0,
|
|
1456
1456
|
onChange: N
|
|
1457
1457
|
}, null, 8, ["model-value", "min", "max"]),
|
|
1458
|
-
G[0] || (G[0] =
|
|
1458
|
+
G[0] || (G[0] = R("span", { class: "element-property-unit" }, "mm", -1))
|
|
1459
1459
|
]),
|
|
1460
1460
|
_: 1
|
|
1461
1461
|
}, 8, ["label"]);
|
|
@@ -1481,7 +1481,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1481
1481
|
}
|
|
1482
1482
|
return (i, G) => {
|
|
1483
1483
|
const Z = yl, d = sl, W = iZ;
|
|
1484
|
-
return T(),
|
|
1484
|
+
return T(), r(W, {
|
|
1485
1485
|
label: i.$t("printDesigner.properties.pdfCropMode")
|
|
1486
1486
|
}, {
|
|
1487
1487
|
default: S(() => [
|
|
@@ -1492,7 +1492,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1492
1492
|
"onUpdate:modelValue": N
|
|
1493
1493
|
}, {
|
|
1494
1494
|
default: S(() => [
|
|
1495
|
-
(T(!0), o(f, null, _(X.value, (b) => (T(),
|
|
1495
|
+
(T(!0), o(f, null, _(X.value, (b) => (T(), r(Z, {
|
|
1496
1496
|
key: b.value,
|
|
1497
1497
|
value: b.value,
|
|
1498
1498
|
label: b.label
|
|
@@ -1519,7 +1519,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1519
1519
|
}
|
|
1520
1520
|
return (X, N) => {
|
|
1521
1521
|
const i = OZ, G = iZ;
|
|
1522
|
-
return T(),
|
|
1522
|
+
return T(), r(G, {
|
|
1523
1523
|
label: X.$t("printDesigner.properties.pdfCropRatio")
|
|
1524
1524
|
}, {
|
|
1525
1525
|
default: S(() => [
|
|
@@ -1532,7 +1532,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1532
1532
|
precision: c.config?.precision ?? 0,
|
|
1533
1533
|
onChange: m
|
|
1534
1534
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
1535
|
-
N[0] || (N[0] =
|
|
1535
|
+
N[0] || (N[0] = R("span", { class: "pdf-crop-ratio-property__unit" }, "%", -1))
|
|
1536
1536
|
]),
|
|
1537
1537
|
_: 1
|
|
1538
1538
|
}, 8, ["label"]);
|
|
@@ -1556,11 +1556,11 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return (X, N) => {
|
|
1558
1558
|
const i = b2, G = OZ, Z = iZ;
|
|
1559
|
-
return T(),
|
|
1559
|
+
return T(), r(Z, {
|
|
1560
1560
|
label: X.$t("printDesigner.properties.rotation")
|
|
1561
1561
|
}, {
|
|
1562
1562
|
default: S(() => [
|
|
1563
|
-
|
|
1563
|
+
R("div", RW, [
|
|
1564
1564
|
J(i, {
|
|
1565
1565
|
class: "rotation-property__slider",
|
|
1566
1566
|
"tooltip-class": "print-designer-tooltip-popper",
|
|
@@ -1580,7 +1580,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1580
1580
|
controls: !1,
|
|
1581
1581
|
onChange: m
|
|
1582
1582
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
1583
|
-
N[0] || (N[0] =
|
|
1583
|
+
N[0] || (N[0] = R("span", { class: "rotation-property__unit" }, "°", -1))
|
|
1584
1584
|
])
|
|
1585
1585
|
]),
|
|
1586
1586
|
_: 1
|
|
@@ -1601,7 +1601,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1601
1601
|
}
|
|
1602
1602
|
return (X, N) => {
|
|
1603
1603
|
const i = OZ, G = iZ;
|
|
1604
|
-
return T(),
|
|
1604
|
+
return T(), r(G, {
|
|
1605
1605
|
label: X.$t("printDesigner.properties.strokeWidth")
|
|
1606
1606
|
}, {
|
|
1607
1607
|
default: S(() => [
|
|
@@ -1614,7 +1614,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1614
1614
|
precision: c.config?.precision ?? 2,
|
|
1615
1615
|
onChange: m
|
|
1616
1616
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
1617
|
-
N[0] || (N[0] =
|
|
1617
|
+
N[0] || (N[0] = R("span", { class: "element-property-unit" }, "mm", -1))
|
|
1618
1618
|
]),
|
|
1619
1619
|
_: 1
|
|
1620
1620
|
}, 8, ["label"]);
|
|
@@ -1771,10 +1771,10 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1771
1771
|
function s(x, P) {
|
|
1772
1772
|
return Math.min(2e3, Math.max(1, Number(x) || P));
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function L(x) {
|
|
1775
1775
|
return Math.min(20, Math.max(1, Math.round(Number(x) || 1)));
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function v(x, P) {
|
|
1778
1778
|
const mZ = W(P + 1);
|
|
1779
1779
|
return {
|
|
1780
1780
|
id: x.id || d(),
|
|
@@ -1811,7 +1811,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1811
1811
|
}
|
|
1812
1812
|
function w() {
|
|
1813
1813
|
if (u(c.modelValue)) {
|
|
1814
|
-
const x = Array.isArray(c.modelValue.groupHeaderCells) && c.modelValue.groupHeaderCells.length > 0 ? c.modelValue.groupHeaderCells.map(
|
|
1814
|
+
const x = Array.isArray(c.modelValue.groupHeaderCells) && c.modelValue.groupHeaderCells.length > 0 ? c.modelValue.groupHeaderCells.map(v) : [
|
|
1815
1815
|
W(1),
|
|
1816
1816
|
W(2),
|
|
1817
1817
|
W(3)
|
|
@@ -1841,7 +1841,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1841
1841
|
20,
|
|
1842
1842
|
Math.max(1, Math.round(Number(c.modelValue.previewRowCount) || 1))
|
|
1843
1843
|
),
|
|
1844
|
-
previewGroupCount:
|
|
1844
|
+
previewGroupCount: L(c.modelValue.previewGroupCount),
|
|
1845
1845
|
groupHeaderCells: x,
|
|
1846
1846
|
columns: c.modelValue.columns.length > 0 ? c.modelValue.columns.map(C) : [b(1)]
|
|
1847
1847
|
};
|
|
@@ -1975,7 +1975,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1975
1975
|
const P = w();
|
|
1976
1976
|
D({
|
|
1977
1977
|
...P,
|
|
1978
|
-
previewGroupCount:
|
|
1978
|
+
previewGroupCount: L(x)
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
1981
|
function FZ(x, P, mZ) {
|
|
@@ -1983,7 +1983,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
1983
1983
|
D({
|
|
1984
1984
|
...yZ,
|
|
1985
1985
|
groupHeaderCells: yZ.groupHeaderCells.map(
|
|
1986
|
-
(dZ, JZ) => dZ.id === x ?
|
|
1986
|
+
(dZ, JZ) => dZ.id === x ? v({ ...dZ, [P]: mZ }, JZ) : dZ
|
|
1987
1987
|
)
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
@@ -2032,14 +2032,14 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2032
2032
|
}
|
|
2033
2033
|
return (x, P) => {
|
|
2034
2034
|
const mZ = yl, yZ = sl, dZ = um, JZ = am, zZ = OZ, jZ = dl, KZ = iZ;
|
|
2035
|
-
return T(),
|
|
2035
|
+
return T(), r(KZ, {
|
|
2036
2036
|
label: x.$t("printDesigner.properties.tableConfig")
|
|
2037
2037
|
}, {
|
|
2038
2038
|
default: S(() => [
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2039
|
+
R("div", wW, [
|
|
2040
|
+
R("div", FW, [
|
|
2041
|
+
R("label", SW, [
|
|
2042
|
+
R("span", null, H(x.$t("printDesigner.properties.tableMode")), 1),
|
|
2043
2043
|
J(yZ, {
|
|
2044
2044
|
"popper-class": "print-designer-select-popper",
|
|
2045
2045
|
"popper-style": j(X),
|
|
@@ -2047,7 +2047,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2047
2047
|
"onUpdate:modelValue": E
|
|
2048
2048
|
}, {
|
|
2049
2049
|
default: S(() => [
|
|
2050
|
-
(T(!0), o(f, null, _(Z.value, (e) => (T(),
|
|
2050
|
+
(T(!0), o(f, null, _(Z.value, (e) => (T(), r(mZ, {
|
|
2051
2051
|
key: e.value,
|
|
2052
2052
|
label: e.label,
|
|
2053
2053
|
value: e.value
|
|
@@ -2056,8 +2056,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2056
2056
|
_: 1
|
|
2057
2057
|
}, 8, ["popper-style", "model-value"])
|
|
2058
2058
|
]),
|
|
2059
|
-
|
|
2060
|
-
|
|
2059
|
+
R("label", UW, [
|
|
2060
|
+
R("span", null, H(x.$t("printDesigner.properties.tableField")), 1),
|
|
2061
2061
|
J(dZ, {
|
|
2062
2062
|
"model-value": w().field,
|
|
2063
2063
|
placeholder: x.$t("printDesigner.properties.tableFieldPlaceholder"),
|
|
@@ -2065,16 +2065,16 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2065
2065
|
}, null, 8, ["model-value", "placeholder"])
|
|
2066
2066
|
]),
|
|
2067
2067
|
w().mode === "groupedDetail" ? (T(), o(f, { key: 0 }, [
|
|
2068
|
-
|
|
2069
|
-
|
|
2068
|
+
R("label", DW, [
|
|
2069
|
+
R("span", null, H(x.$t("printDesigner.properties.tableGroupField")), 1),
|
|
2070
2070
|
J(dZ, {
|
|
2071
2071
|
"model-value": w().groupField,
|
|
2072
2072
|
placeholder: x.$t("printDesigner.properties.tableGroupFieldPlaceholder"),
|
|
2073
2073
|
"onUpdate:modelValue": g
|
|
2074
2074
|
}, null, 8, ["model-value", "placeholder"])
|
|
2075
2075
|
]),
|
|
2076
|
-
|
|
2077
|
-
|
|
2076
|
+
R("label", kW, [
|
|
2077
|
+
R("span", null, H(x.$t("printDesigner.properties.tableDetailField")), 1),
|
|
2078
2078
|
J(dZ, {
|
|
2079
2079
|
"model-value": w().detailField,
|
|
2080
2080
|
placeholder: x.$t("printDesigner.properties.tableDetailFieldPlaceholder"),
|
|
@@ -2100,7 +2100,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2100
2100
|
]),
|
|
2101
2101
|
_: 1
|
|
2102
2102
|
}, 8, ["model-value"]),
|
|
2103
|
-
w().mode === "groupedDetail" && w().showHeader ? (T(),
|
|
2103
|
+
w().mode === "groupedDetail" && w().showHeader ? (T(), r(JZ, {
|
|
2104
2104
|
key: 1,
|
|
2105
2105
|
"model-value": w().repeatHeader,
|
|
2106
2106
|
"onUpdate:modelValue": tZ
|
|
@@ -2111,9 +2111,9 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2111
2111
|
_: 1
|
|
2112
2112
|
}, 8, ["model-value"])) : XZ("", !0),
|
|
2113
2113
|
w().showHeader ? (T(), o("label", OW, [
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2114
|
+
R("span", null, H(x.$t("printDesigner.properties.tableHeaderBackground")), 1),
|
|
2115
|
+
R("div", CW, [
|
|
2116
|
+
R("input", {
|
|
2117
2117
|
class: "table-config-property__color-input",
|
|
2118
2118
|
type: "color",
|
|
2119
2119
|
value: w().headerBackground,
|
|
@@ -2126,7 +2126,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2126
2126
|
])
|
|
2127
2127
|
])) : XZ("", !0),
|
|
2128
2128
|
w().mode === "groupedDetail" ? (T(), o("label", KW, [
|
|
2129
|
-
|
|
2129
|
+
R("span", null, H(x.$t("printDesigner.properties.tableGroupHeaderRowHeight")), 1),
|
|
2130
2130
|
J(zZ, {
|
|
2131
2131
|
class: "table-config-property__rows-input",
|
|
2132
2132
|
"model-value": w().groupHeaderRowHeightMm,
|
|
@@ -2138,7 +2138,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2138
2138
|
}, null, 8, ["model-value"])
|
|
2139
2139
|
])) : XZ("", !0),
|
|
2140
2140
|
w().showHeader ? (T(), o("label", HW, [
|
|
2141
|
-
|
|
2141
|
+
R("span", null, H(x.$t("printDesigner.properties.tableHeaderRowHeight")), 1),
|
|
2142
2142
|
J(zZ, {
|
|
2143
2143
|
class: "table-config-property__rows-input",
|
|
2144
2144
|
"model-value": w().headerRowHeightMm,
|
|
@@ -2149,8 +2149,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2149
2149
|
onChange: uZ
|
|
2150
2150
|
}, null, 8, ["model-value"])
|
|
2151
2151
|
])) : XZ("", !0),
|
|
2152
|
-
|
|
2153
|
-
|
|
2152
|
+
R("label", EW, [
|
|
2153
|
+
R("span", null, H(x.$t("printDesigner.properties.tableBodyRowHeight")), 1),
|
|
2154
2154
|
J(zZ, {
|
|
2155
2155
|
class: "table-config-property__rows-input",
|
|
2156
2156
|
"model-value": w().bodyRowHeightMm,
|
|
@@ -2162,7 +2162,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2162
2162
|
}, null, 8, ["model-value"])
|
|
2163
2163
|
]),
|
|
2164
2164
|
w().mode === "groupedDetail" ? (T(), o("label", QW, [
|
|
2165
|
-
|
|
2165
|
+
R("span", null, H(x.$t("printDesigner.properties.tablePreviewGroups")), 1),
|
|
2166
2166
|
J(zZ, {
|
|
2167
2167
|
class: "table-config-property__rows-input",
|
|
2168
2168
|
"model-value": w().previewGroupCount,
|
|
@@ -2173,8 +2173,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2173
2173
|
onChange: rZ
|
|
2174
2174
|
}, null, 8, ["model-value"])
|
|
2175
2175
|
])) : XZ("", !0),
|
|
2176
|
-
|
|
2177
|
-
|
|
2176
|
+
R("label", BW, [
|
|
2177
|
+
R("span", null, H(x.$t("printDesigner.properties.tablePreviewRows")), 1),
|
|
2178
2178
|
J(zZ, {
|
|
2179
2179
|
class: "table-config-property__rows-input",
|
|
2180
2180
|
"model-value": w().previewRowCount,
|
|
@@ -2187,14 +2187,14 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2187
2187
|
])
|
|
2188
2188
|
]),
|
|
2189
2189
|
w().mode === "groupedDetail" ? (T(), o("div", PW, [
|
|
2190
|
-
|
|
2190
|
+
R("div", vW, H(x.$t("printDesigner.properties.tableGroupHeaderCells")), 1),
|
|
2191
2191
|
(T(!0), o(f, null, _(w().groupHeaderCells, (e, A) => (T(), o("div", {
|
|
2192
2192
|
key: e.id,
|
|
2193
2193
|
class: "table-config-property__column"
|
|
2194
2194
|
}, [
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
w().groupHeaderCells.length > 1 ? (T(),
|
|
2195
|
+
R("div", rW, [
|
|
2196
|
+
R("span", null, H(x.$t("printDesigner.properties.tableGroupHeaderCell", { index: A + 1 })), 1),
|
|
2197
|
+
w().groupHeaderCells.length > 1 ? (T(), r(jZ, {
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
link: "",
|
|
2200
2200
|
type: "danger",
|
|
@@ -2216,9 +2216,9 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2216
2216
|
placeholder: x.$t("printDesigner.properties.tableGroupHeaderCellFieldPlaceholder"),
|
|
2217
2217
|
"onUpdate:modelValue": (I) => FZ(e.id, "field", String(I))
|
|
2218
2218
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2219
|
+
R("div", fW, [
|
|
2220
|
+
R("label", AW, [
|
|
2221
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnWidthMode")), 1),
|
|
2222
2222
|
J(yZ, {
|
|
2223
2223
|
"popper-class": "print-designer-select-popper",
|
|
2224
2224
|
"popper-style": j(X),
|
|
@@ -2226,7 +2226,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2226
2226
|
"onUpdate:modelValue": (I) => FZ(e.id, "widthMode", y(I))
|
|
2227
2227
|
}, {
|
|
2228
2228
|
default: S(() => [
|
|
2229
|
-
(T(!0), o(f, null, _(i.value, (I) => (T(),
|
|
2229
|
+
(T(!0), o(f, null, _(i.value, (I) => (T(), r(mZ, {
|
|
2230
2230
|
key: I.value,
|
|
2231
2231
|
label: I.label,
|
|
2232
2232
|
value: I.value
|
|
@@ -2236,7 +2236,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2236
2236
|
}, 8, ["popper-style", "model-value", "onUpdate:modelValue"])
|
|
2237
2237
|
]),
|
|
2238
2238
|
e.widthMode === "fixed" ? (T(), o("label", qW, [
|
|
2239
|
-
|
|
2239
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnWidth")), 1),
|
|
2240
2240
|
J(zZ, {
|
|
2241
2241
|
class: "table-config-property__number-input",
|
|
2242
2242
|
"model-value": e.widthMm ?? 1,
|
|
@@ -2249,7 +2249,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2249
2249
|
}
|
|
2250
2250
|
}, null, 8, ["model-value", "onChange"])
|
|
2251
2251
|
])) : (T(), o("label", _W, [
|
|
2252
|
-
|
|
2252
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnMinWidth")), 1),
|
|
2253
2253
|
J(zZ, {
|
|
2254
2254
|
class: "table-config-property__number-input",
|
|
2255
2255
|
"model-value": e.minWidthMm,
|
|
@@ -2262,8 +2262,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2262
2262
|
}
|
|
2263
2263
|
}, null, 8, ["model-value", "onChange"])
|
|
2264
2264
|
])),
|
|
2265
|
-
|
|
2266
|
-
|
|
2265
|
+
R("label", $W, [
|
|
2266
|
+
R("span", null, H(x.$t("printDesigner.properties.tableGroupHeaderCellAlign")), 1),
|
|
2267
2267
|
J(yZ, {
|
|
2268
2268
|
"popper-class": "print-designer-select-popper",
|
|
2269
2269
|
"popper-style": j(X),
|
|
@@ -2271,7 +2271,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2271
2271
|
"onUpdate:modelValue": (I) => FZ(e.id, "align", a(I))
|
|
2272
2272
|
}, {
|
|
2273
2273
|
default: S(() => [
|
|
2274
|
-
(T(!0), o(f, null, _(N.value, (I) => (T(),
|
|
2274
|
+
(T(!0), o(f, null, _(N.value, (I) => (T(), r(mZ, {
|
|
2275
2275
|
key: I.value,
|
|
2276
2276
|
label: I.label,
|
|
2277
2277
|
value: I.value
|
|
@@ -2294,15 +2294,15 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2294
2294
|
_: 1
|
|
2295
2295
|
})
|
|
2296
2296
|
])) : XZ("", !0),
|
|
2297
|
-
|
|
2298
|
-
|
|
2297
|
+
R("div", ZG, [
|
|
2298
|
+
R("div", lG, H(x.$t("printDesigner.properties.tableDetailColumns")), 1),
|
|
2299
2299
|
(T(!0), o(f, null, _(w().columns, (e, A) => (T(), o("div", {
|
|
2300
2300
|
key: e.id,
|
|
2301
2301
|
class: "table-config-property__column"
|
|
2302
2302
|
}, [
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
w().columns.length > 1 ? (T(),
|
|
2303
|
+
R("div", dG, [
|
|
2304
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumn", { index: A + 1 })), 1),
|
|
2305
|
+
w().columns.length > 1 ? (T(), r(jZ, {
|
|
2306
2306
|
key: 0,
|
|
2307
2307
|
link: "",
|
|
2308
2308
|
type: "danger",
|
|
@@ -2324,8 +2324,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2324
2324
|
placeholder: x.$t("printDesigner.properties.tableColumnGroupTitle"),
|
|
2325
2325
|
"onUpdate:modelValue": (I) => aZ(e.id, "groupTitle", String(I))
|
|
2326
2326
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
2327
|
-
|
|
2328
|
-
|
|
2327
|
+
R("label", mG, [
|
|
2328
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnType")), 1),
|
|
2329
2329
|
J(yZ, {
|
|
2330
2330
|
"popper-class": "print-designer-select-popper",
|
|
2331
2331
|
"popper-style": j(X),
|
|
@@ -2333,7 +2333,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2333
2333
|
"onUpdate:modelValue": (I) => aZ(e.id, "type", n(I))
|
|
2334
2334
|
}, {
|
|
2335
2335
|
default: S(() => [
|
|
2336
|
-
(T(!0), o(f, null, _(G.value, (I) => (T(),
|
|
2336
|
+
(T(!0), o(f, null, _(G.value, (I) => (T(), r(mZ, {
|
|
2337
2337
|
key: I.value,
|
|
2338
2338
|
label: I.label,
|
|
2339
2339
|
value: I.value
|
|
@@ -2342,13 +2342,13 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2342
2342
|
_: 1
|
|
2343
2343
|
}, 8, ["popper-style", "model-value", "onUpdate:modelValue"])
|
|
2344
2344
|
]),
|
|
2345
|
-
e.type !== "serialNumber" ? (T(),
|
|
2345
|
+
e.type !== "serialNumber" ? (T(), r(dZ, {
|
|
2346
2346
|
key: 0,
|
|
2347
2347
|
"model-value": e.field,
|
|
2348
2348
|
placeholder: x.$t("printDesigner.properties.tableColumnFieldPlaceholder"),
|
|
2349
2349
|
"onUpdate:modelValue": (I) => aZ(e.id, "field", String(I))
|
|
2350
2350
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : XZ("", !0),
|
|
2351
|
-
e.type === "text" ? (T(),
|
|
2351
|
+
e.type === "text" ? (T(), r(dZ, {
|
|
2352
2352
|
key: 1,
|
|
2353
2353
|
"model-value": e.content,
|
|
2354
2354
|
type: "textarea",
|
|
@@ -2356,15 +2356,15 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2356
2356
|
resize: "none",
|
|
2357
2357
|
placeholder: x.$t("printDesigner.properties.tableColumnContent"),
|
|
2358
2358
|
"onUpdate:modelValue": (I) => aZ(e.id, "content", String(I))
|
|
2359
|
-
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : e.type === "image" ? (T(),
|
|
2359
|
+
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : e.type === "image" ? (T(), r(dZ, {
|
|
2360
2360
|
key: 2,
|
|
2361
2361
|
"model-value": e.content,
|
|
2362
2362
|
placeholder: x.$t("printDesigner.properties.tableColumnImageContent"),
|
|
2363
2363
|
"onUpdate:modelValue": (I) => aZ(e.id, "content", String(I))
|
|
2364
2364
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : XZ("", !0),
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2365
|
+
R("div", cG, [
|
|
2366
|
+
R("label", bG, [
|
|
2367
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnWidthMode")), 1),
|
|
2368
2368
|
J(yZ, {
|
|
2369
2369
|
"popper-class": "print-designer-select-popper",
|
|
2370
2370
|
"popper-style": j(X),
|
|
@@ -2372,7 +2372,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2372
2372
|
"onUpdate:modelValue": (I) => aZ(e.id, "widthMode", y(I))
|
|
2373
2373
|
}, {
|
|
2374
2374
|
default: S(() => [
|
|
2375
|
-
(T(!0), o(f, null, _(i.value, (I) => (T(),
|
|
2375
|
+
(T(!0), o(f, null, _(i.value, (I) => (T(), r(mZ, {
|
|
2376
2376
|
key: I.value,
|
|
2377
2377
|
label: I.label,
|
|
2378
2378
|
value: I.value
|
|
@@ -2382,7 +2382,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2382
2382
|
}, 8, ["popper-style", "model-value", "onUpdate:modelValue"])
|
|
2383
2383
|
]),
|
|
2384
2384
|
e.widthMode === "fixed" ? (T(), o("label", WG, [
|
|
2385
|
-
|
|
2385
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnWidth")), 1),
|
|
2386
2386
|
J(zZ, {
|
|
2387
2387
|
class: "table-config-property__number-input",
|
|
2388
2388
|
"model-value": e.widthMm ?? 1,
|
|
@@ -2395,7 +2395,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2395
2395
|
}
|
|
2396
2396
|
}, null, 8, ["model-value", "onChange"])
|
|
2397
2397
|
])) : (T(), o("label", GG, [
|
|
2398
|
-
|
|
2398
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnMinWidth")), 1),
|
|
2399
2399
|
J(zZ, {
|
|
2400
2400
|
class: "table-config-property__number-input",
|
|
2401
2401
|
"model-value": e.minWidthMm,
|
|
@@ -2408,8 +2408,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2408
2408
|
}
|
|
2409
2409
|
}, null, 8, ["model-value", "onChange"])
|
|
2410
2410
|
])),
|
|
2411
|
-
|
|
2412
|
-
|
|
2411
|
+
R("label", YG, [
|
|
2412
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnHeaderAlign")), 1),
|
|
2413
2413
|
J(yZ, {
|
|
2414
2414
|
"popper-class": "print-designer-select-popper",
|
|
2415
2415
|
"popper-style": j(X),
|
|
@@ -2417,7 +2417,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2417
2417
|
"onUpdate:modelValue": (I) => aZ(e.id, "headerAlign", a(I))
|
|
2418
2418
|
}, {
|
|
2419
2419
|
default: S(() => [
|
|
2420
|
-
(T(!0), o(f, null, _(N.value, (I) => (T(),
|
|
2420
|
+
(T(!0), o(f, null, _(N.value, (I) => (T(), r(mZ, {
|
|
2421
2421
|
key: I.value,
|
|
2422
2422
|
label: I.label,
|
|
2423
2423
|
value: I.value
|
|
@@ -2426,8 +2426,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2426
2426
|
_: 1
|
|
2427
2427
|
}, 8, ["popper-style", "model-value", "onUpdate:modelValue"])
|
|
2428
2428
|
]),
|
|
2429
|
-
|
|
2430
|
-
|
|
2429
|
+
R("label", XG, [
|
|
2430
|
+
R("span", null, H(x.$t("printDesigner.properties.tableColumnCellAlign")), 1),
|
|
2431
2431
|
J(yZ, {
|
|
2432
2432
|
"popper-class": "print-designer-select-popper",
|
|
2433
2433
|
"popper-style": j(X),
|
|
@@ -2435,7 +2435,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2435
2435
|
"onUpdate:modelValue": (I) => aZ(e.id, "align", a(I))
|
|
2436
2436
|
}, {
|
|
2437
2437
|
default: S(() => [
|
|
2438
|
-
(T(!0), o(f, null, _(N.value, (I) => (T(),
|
|
2438
|
+
(T(!0), o(f, null, _(N.value, (I) => (T(), r(mZ, {
|
|
2439
2439
|
key: I.value,
|
|
2440
2440
|
label: I.label,
|
|
2441
2441
|
value: I.value
|
|
@@ -2478,7 +2478,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2478
2478
|
}
|
|
2479
2479
|
return (m, X) => {
|
|
2480
2480
|
const N = Jd, i = ed, G = iZ;
|
|
2481
|
-
return T(),
|
|
2481
|
+
return T(), r(G, {
|
|
2482
2482
|
label: m.$t("printDesigner.properties.timeMode")
|
|
2483
2483
|
}, {
|
|
2484
2484
|
default: S(() => [
|
|
@@ -2533,7 +2533,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2533
2533
|
}
|
|
2534
2534
|
return (i, G) => {
|
|
2535
2535
|
const Z = yl, d = sl, W = iZ;
|
|
2536
|
-
return T(),
|
|
2536
|
+
return T(), r(W, {
|
|
2537
2537
|
label: j(Y)("printDesigner.properties.textBoxFitMode")
|
|
2538
2538
|
}, {
|
|
2539
2539
|
default: S(() => [
|
|
@@ -2544,7 +2544,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2544
2544
|
"onUpdate:modelValue": N
|
|
2545
2545
|
}, {
|
|
2546
2546
|
default: S(() => [
|
|
2547
|
-
(T(!0), o(f, null, _(X.value, (b) => (T(),
|
|
2547
|
+
(T(!0), o(f, null, _(X.value, (b) => (T(), r(Z, {
|
|
2548
2548
|
key: b.value,
|
|
2549
2549
|
value: b.value,
|
|
2550
2550
|
label: b.label
|
|
@@ -2577,7 +2577,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2577
2577
|
}
|
|
2578
2578
|
return (i, G) => {
|
|
2579
2579
|
const Z = yl, d = sl, W = iZ;
|
|
2580
|
-
return T(),
|
|
2580
|
+
return T(), r(W, {
|
|
2581
2581
|
label: j(Y)("printDesigner.properties.textBoxOverflowMode")
|
|
2582
2582
|
}, {
|
|
2583
2583
|
default: S(() => [
|
|
@@ -2588,7 +2588,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2588
2588
|
"onUpdate:modelValue": N
|
|
2589
2589
|
}, {
|
|
2590
2590
|
default: S(() => [
|
|
2591
|
-
(T(!0), o(f, null, _(X.value, (b) => (T(),
|
|
2591
|
+
(T(!0), o(f, null, _(X.value, (b) => (T(), r(Z, {
|
|
2592
2592
|
key: b.value,
|
|
2593
2593
|
value: b.value,
|
|
2594
2594
|
label: b.label
|
|
@@ -2619,7 +2619,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2619
2619
|
}
|
|
2620
2620
|
return (i, G) => {
|
|
2621
2621
|
const Z = yl, d = sl, W = iZ;
|
|
2622
|
-
return T(),
|
|
2622
|
+
return T(), r(W, {
|
|
2623
2623
|
label: j(Y)("printDesigner.properties.textHorizontalAlign")
|
|
2624
2624
|
}, {
|
|
2625
2625
|
default: S(() => [
|
|
@@ -2630,7 +2630,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2630
2630
|
"onUpdate:modelValue": N
|
|
2631
2631
|
}, {
|
|
2632
2632
|
default: S(() => [
|
|
2633
|
-
(T(!0), o(f, null, _(X.value, (b) => (T(),
|
|
2633
|
+
(T(!0), o(f, null, _(X.value, (b) => (T(), r(Z, {
|
|
2634
2634
|
key: b.value,
|
|
2635
2635
|
value: b.value,
|
|
2636
2636
|
label: b.label
|
|
@@ -2661,7 +2661,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2661
2661
|
}
|
|
2662
2662
|
return (i, G) => {
|
|
2663
2663
|
const Z = yl, d = sl, W = iZ;
|
|
2664
|
-
return T(),
|
|
2664
|
+
return T(), r(W, {
|
|
2665
2665
|
label: j(Y)("printDesigner.properties.textVerticalAlign")
|
|
2666
2666
|
}, {
|
|
2667
2667
|
default: S(() => [
|
|
@@ -2672,7 +2672,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2672
2672
|
"onUpdate:modelValue": N
|
|
2673
2673
|
}, {
|
|
2674
2674
|
default: S(() => [
|
|
2675
|
-
(T(!0), o(f, null, _(X.value, (b) => (T(),
|
|
2675
|
+
(T(!0), o(f, null, _(X.value, (b) => (T(), r(Z, {
|
|
2676
2676
|
key: b.value,
|
|
2677
2677
|
value: b.value,
|
|
2678
2678
|
label: b.label
|
|
@@ -2699,7 +2699,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2699
2699
|
}
|
|
2700
2700
|
return (X, N) => {
|
|
2701
2701
|
const i = OZ, G = iZ;
|
|
2702
|
-
return T(),
|
|
2702
|
+
return T(), r(G, {
|
|
2703
2703
|
label: X.$t("printDesigner.properties.width")
|
|
2704
2704
|
}, {
|
|
2705
2705
|
default: S(() => [
|
|
@@ -2712,7 +2712,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2712
2712
|
precision: c.config?.precision ?? 2,
|
|
2713
2713
|
onChange: m
|
|
2714
2714
|
}, null, 8, ["model-value", "min", "max", "step", "precision"]),
|
|
2715
|
-
N[0] || (N[0] =
|
|
2715
|
+
N[0] || (N[0] = R("span", { class: "element-property-unit" }, "mm", -1))
|
|
2716
2716
|
]),
|
|
2717
2717
|
_: 1
|
|
2718
2718
|
}, 8, ["label"]);
|
|
@@ -2852,29 +2852,29 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2852
2852
|
return (b, u) => {
|
|
2853
2853
|
const a = dl, M = G2, y = W2, n = iZ, V = Mm, s = Y2;
|
|
2854
2854
|
return T(), o("section", sG, [
|
|
2855
|
-
|
|
2856
|
-
l.element ? (T(),
|
|
2855
|
+
R("h2", yG, H(j(m)("printDesigner.properties.title")), 1),
|
|
2856
|
+
l.element ? (T(), r(V, {
|
|
2857
2857
|
key: 0,
|
|
2858
2858
|
class: "element-properties-panel__form",
|
|
2859
2859
|
"label-position": "top"
|
|
2860
2860
|
}, {
|
|
2861
2861
|
default: S(() => [
|
|
2862
|
-
(T(!0), o(f, null, _(i.value, (
|
|
2863
|
-
key:
|
|
2862
|
+
(T(!0), o(f, null, _(i.value, (L) => (T(), o(f, {
|
|
2863
|
+
key: L.key
|
|
2864
2864
|
}, [
|
|
2865
|
-
(T(),
|
|
2866
|
-
"model-value": Z(
|
|
2867
|
-
config:
|
|
2868
|
-
"onUpdate:modelValue": (
|
|
2865
|
+
(T(), r(u2(N[L.key]), {
|
|
2866
|
+
"model-value": Z(L.key),
|
|
2867
|
+
config: L,
|
|
2868
|
+
"onUpdate:modelValue": (v) => Y("update-property", L.key, v)
|
|
2869
2869
|
}, null, 8, ["model-value", "config", "onUpdate:modelValue"])),
|
|
2870
|
-
|
|
2870
|
+
L.key === G.value ? (T(), r(n, {
|
|
2871
2871
|
key: 0,
|
|
2872
2872
|
label: j(m)("printDesigner.properties.canvasAlignment")
|
|
2873
2873
|
}, {
|
|
2874
2874
|
default: S(() => [
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2875
|
+
R("div", TG, [
|
|
2876
|
+
R("div", pG, [
|
|
2877
|
+
R("span", IG, H(j(m)("printDesigner.properties.horizontalAlignment")), 1),
|
|
2878
2878
|
J(y, null, {
|
|
2879
2879
|
default: S(() => [
|
|
2880
2880
|
J(M, {
|
|
@@ -2888,7 +2888,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2888
2888
|
size: "small",
|
|
2889
2889
|
type: l.element.canvasHorizontalAlign === "left" ? "primary" : "default",
|
|
2890
2890
|
"aria-label": j(m)("printDesigner.properties.alignCanvasLeft"),
|
|
2891
|
-
onClick: u[0] || (u[0] = (
|
|
2891
|
+
onClick: u[0] || (u[0] = (v) => d("left"))
|
|
2892
2892
|
}, {
|
|
2893
2893
|
default: S(() => [
|
|
2894
2894
|
J(xZ, {
|
|
@@ -2913,7 +2913,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2913
2913
|
size: "small",
|
|
2914
2914
|
type: l.element.canvasHorizontalAlign === "center" ? "primary" : "default",
|
|
2915
2915
|
"aria-label": j(m)("printDesigner.properties.alignCanvasHorizontalCenter"),
|
|
2916
|
-
onClick: u[1] || (u[1] = (
|
|
2916
|
+
onClick: u[1] || (u[1] = (v) => d("center"))
|
|
2917
2917
|
}, {
|
|
2918
2918
|
default: S(() => [
|
|
2919
2919
|
J(xZ, {
|
|
@@ -2938,7 +2938,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2938
2938
|
size: "small",
|
|
2939
2939
|
type: l.element.canvasHorizontalAlign === "right" ? "primary" : "default",
|
|
2940
2940
|
"aria-label": j(m)("printDesigner.properties.alignCanvasRight"),
|
|
2941
|
-
onClick: u[2] || (u[2] = (
|
|
2941
|
+
onClick: u[2] || (u[2] = (v) => d("right"))
|
|
2942
2942
|
}, {
|
|
2943
2943
|
default: S(() => [
|
|
2944
2944
|
J(xZ, {
|
|
@@ -2956,8 +2956,8 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2956
2956
|
_: 1
|
|
2957
2957
|
})
|
|
2958
2958
|
]),
|
|
2959
|
-
|
|
2960
|
-
|
|
2959
|
+
R("div", zG, [
|
|
2960
|
+
R("span", xG, H(j(m)("printDesigner.properties.verticalAlignment")), 1),
|
|
2961
2961
|
J(y, null, {
|
|
2962
2962
|
default: S(() => [
|
|
2963
2963
|
J(M, {
|
|
@@ -2971,7 +2971,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2971
2971
|
size: "small",
|
|
2972
2972
|
type: l.element.canvasVerticalAlign === "top" ? "primary" : "default",
|
|
2973
2973
|
"aria-label": j(m)("printDesigner.properties.alignCanvasTop"),
|
|
2974
|
-
onClick: u[3] || (u[3] = (
|
|
2974
|
+
onClick: u[3] || (u[3] = (v) => W("top"))
|
|
2975
2975
|
}, {
|
|
2976
2976
|
default: S(() => [
|
|
2977
2977
|
J(xZ, {
|
|
@@ -2996,7 +2996,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
2996
2996
|
size: "small",
|
|
2997
2997
|
type: l.element.canvasVerticalAlign === "center" ? "primary" : "default",
|
|
2998
2998
|
"aria-label": j(m)("printDesigner.properties.alignCanvasVerticalCenter"),
|
|
2999
|
-
onClick: u[4] || (u[4] = (
|
|
2999
|
+
onClick: u[4] || (u[4] = (v) => W("center"))
|
|
3000
3000
|
}, {
|
|
3001
3001
|
default: S(() => [
|
|
3002
3002
|
J(xZ, {
|
|
@@ -3021,7 +3021,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
3021
3021
|
size: "small",
|
|
3022
3022
|
type: l.element.canvasVerticalAlign === "bottom" ? "primary" : "default",
|
|
3023
3023
|
"aria-label": j(m)("printDesigner.properties.alignCanvasBottom"),
|
|
3024
|
-
onClick: u[5] || (u[5] = (
|
|
3024
|
+
onClick: u[5] || (u[5] = (v) => W("bottom"))
|
|
3025
3025
|
}, {
|
|
3026
3026
|
default: S(() => [
|
|
3027
3027
|
J(xZ, {
|
|
@@ -3046,7 +3046,7 @@ const g2 = ["aria-hidden", "aria-label", "role"], K2 = { key: 0 }, H2 = ["href"]
|
|
|
3046
3046
|
], 64))), 128))
|
|
3047
3047
|
]),
|
|
3048
3048
|
_: 1
|
|
3049
|
-
})) : (T(),
|
|
3049
|
+
})) : (T(), r(s, {
|
|
3050
3050
|
key: 1,
|
|
3051
3051
|
class: "element-properties-panel__empty",
|
|
3052
3052
|
description: j(m)("printDesigner.properties.empty"),
|
|
@@ -4224,9 +4224,9 @@ function CG() {
|
|
|
4224
4224
|
}]), M;
|
|
4225
4225
|
})(m.default);
|
|
4226
4226
|
function u(a, M) {
|
|
4227
|
-
for (var y = parseInt(a[a.length - 1]), n = d[y], V = "", s = 0,
|
|
4228
|
-
var
|
|
4229
|
-
|
|
4227
|
+
for (var y = parseInt(a[a.length - 1]), n = d[y], V = "", s = 0, L = 0; L < n.length; L++) {
|
|
4228
|
+
var v = n[L];
|
|
4229
|
+
v === "X" ? V += a[s++] : V += v;
|
|
4230
4230
|
}
|
|
4231
4231
|
return V = "" + M + V, "" + V + (0, X.checksum)(V);
|
|
4232
4232
|
}
|
|
@@ -5730,9 +5730,9 @@ function t0() {
|
|
|
5730
5730
|
s.getModule = function(F) {
|
|
5731
5731
|
return t.default[F];
|
|
5732
5732
|
};
|
|
5733
|
-
for (var
|
|
5734
|
-
t.default.hasOwnProperty(
|
|
5735
|
-
function
|
|
5733
|
+
for (var L in t.default)
|
|
5734
|
+
t.default.hasOwnProperty(L) && v(t.default, L);
|
|
5735
|
+
function v(F, E) {
|
|
5736
5736
|
V.prototype[E] = V.prototype[E.toUpperCase()] = V.prototype[E.toLowerCase()] = function(O, g) {
|
|
5737
5737
|
var k = this;
|
|
5738
5738
|
return k._errorHandler.wrapBarcodeCall(function() {
|
|
@@ -5865,13 +5865,13 @@ const u0 = /* @__PURE__ */ Jb(i0), a0 = ["transform"], M0 = ["x", "y", "width",
|
|
|
5865
5865
|
overflow: "hidden"
|
|
5866
5866
|
}, null, 8, M0)),
|
|
5867
5867
|
N.value ? (T(), o("g", h0, [
|
|
5868
|
-
|
|
5868
|
+
R("rect", {
|
|
5869
5869
|
x: l.element.xMm,
|
|
5870
5870
|
y: l.element.yMm,
|
|
5871
5871
|
width: l.element.widthMm,
|
|
5872
5872
|
height: l.element.heightMm
|
|
5873
5873
|
}, null, 8, n0),
|
|
5874
|
-
|
|
5874
|
+
R("line", {
|
|
5875
5875
|
x1: l.element.xMm,
|
|
5876
5876
|
y1: l.element.yMm,
|
|
5877
5877
|
x2: l.element.xMm + l.element.widthMm,
|
|
@@ -5917,19 +5917,19 @@ const u0 = /* @__PURE__ */ Jb(i0), a0 = ["transform"], M0 = ["x", "y", "width",
|
|
|
5917
5917
|
height: l.element.heightMm,
|
|
5918
5918
|
preserveAspectRatio: "xMidYMid meet"
|
|
5919
5919
|
}, null, 8, z0)) : (T(), o("g", x0, [
|
|
5920
|
-
|
|
5920
|
+
R("rect", {
|
|
5921
5921
|
x: "0",
|
|
5922
5922
|
y: "0",
|
|
5923
5923
|
width: l.element.widthMm,
|
|
5924
5924
|
height: l.element.heightMm
|
|
5925
5925
|
}, null, 8, L0),
|
|
5926
|
-
|
|
5926
|
+
R("line", {
|
|
5927
5927
|
x1: "0",
|
|
5928
5928
|
y1: "0",
|
|
5929
5929
|
x2: l.element.widthMm,
|
|
5930
5930
|
y2: l.element.heightMm
|
|
5931
5931
|
}, null, 8, R0),
|
|
5932
|
-
|
|
5932
|
+
R("line", {
|
|
5933
5933
|
x1: l.element.widthMm,
|
|
5934
5934
|
y1: "0",
|
|
5935
5935
|
x2: "0",
|
|
@@ -6019,7 +6019,7 @@ const u0 = /* @__PURE__ */ Jb(i0), a0 = ["transform"], M0 = ["x", "y", "width",
|
|
|
6019
6019
|
preserveAspectRatio: "none",
|
|
6020
6020
|
overflow: "hidden"
|
|
6021
6021
|
}, [
|
|
6022
|
-
b[1] || (b[1] =
|
|
6022
|
+
b[1] || (b[1] = R("rect", {
|
|
6023
6023
|
width: "100%",
|
|
6024
6024
|
height: "100%",
|
|
6025
6025
|
fill: "#ffffff"
|
|
@@ -6036,13 +6036,13 @@ const u0 = /* @__PURE__ */ Jb(i0), a0 = ["transform"], M0 = ["x", "y", "width",
|
|
|
6036
6036
|
key: 1,
|
|
6037
6037
|
class: vZ(["pdf-svg-element__placeholder", { "pdf-svg-element__placeholder--failed": X.value }])
|
|
6038
6038
|
}, [
|
|
6039
|
-
|
|
6039
|
+
R("rect", {
|
|
6040
6040
|
x: "0",
|
|
6041
6041
|
y: "0",
|
|
6042
6042
|
width: l.element.widthMm,
|
|
6043
6043
|
height: l.element.heightMm
|
|
6044
6044
|
}, null, 8, S0),
|
|
6045
|
-
|
|
6045
|
+
R("text", {
|
|
6046
6046
|
x: l.element.widthMm / 2,
|
|
6047
6047
|
y: l.element.heightMm / 2,
|
|
6048
6048
|
"text-anchor": "middle",
|
|
@@ -7159,21 +7159,21 @@ function ZY() {
|
|
|
7159
7159
|
return unescape(encodeURIComponent(n)).length;
|
|
7160
7160
|
}
|
|
7161
7161
|
function d(n, V, s) {
|
|
7162
|
-
const
|
|
7163
|
-
let
|
|
7164
|
-
for (; (
|
|
7165
|
-
|
|
7166
|
-
data:
|
|
7167
|
-
index:
|
|
7162
|
+
const L = [];
|
|
7163
|
+
let v;
|
|
7164
|
+
for (; (v = n.exec(s)) !== null; )
|
|
7165
|
+
L.push({
|
|
7166
|
+
data: v[0],
|
|
7167
|
+
index: v.index,
|
|
7168
7168
|
mode: V,
|
|
7169
|
-
length:
|
|
7169
|
+
length: v[0].length
|
|
7170
7170
|
});
|
|
7171
|
-
return
|
|
7171
|
+
return L;
|
|
7172
7172
|
}
|
|
7173
7173
|
function W(n) {
|
|
7174
7174
|
const V = d(N.NUMERIC, t.NUMERIC, n), s = d(N.ALPHANUMERIC, t.ALPHANUMERIC, n);
|
|
7175
|
-
let
|
|
7176
|
-
return i.isKanjiModeEnabled() ? (
|
|
7175
|
+
let L, v;
|
|
7176
|
+
return i.isKanjiModeEnabled() ? (L = d(N.BYTE, t.BYTE, n), v = d(N.KANJI, t.KANJI, n)) : (L = d(N.BYTE_KANJI, t.BYTE, n), v = []), V.concat(s, L, v).sort(function(w, D) {
|
|
7177
7177
|
return w.index - D.index;
|
|
7178
7178
|
}).map(function(w) {
|
|
7179
7179
|
return {
|
|
@@ -7197,67 +7197,67 @@ function ZY() {
|
|
|
7197
7197
|
}
|
|
7198
7198
|
function u(n) {
|
|
7199
7199
|
return n.reduce(function(V, s) {
|
|
7200
|
-
const
|
|
7201
|
-
return
|
|
7200
|
+
const L = V.length - 1 >= 0 ? V[V.length - 1] : null;
|
|
7201
|
+
return L && L.mode === s.mode ? (V[V.length - 1].data += s.data, V) : (V.push(s), V);
|
|
7202
7202
|
}, []);
|
|
7203
7203
|
}
|
|
7204
7204
|
function a(n) {
|
|
7205
7205
|
const V = [];
|
|
7206
7206
|
for (let s = 0; s < n.length; s++) {
|
|
7207
|
-
const
|
|
7208
|
-
switch (
|
|
7207
|
+
const L = n[s];
|
|
7208
|
+
switch (L.mode) {
|
|
7209
7209
|
case t.NUMERIC:
|
|
7210
7210
|
V.push([
|
|
7211
|
-
|
|
7212
|
-
{ data:
|
|
7213
|
-
{ data:
|
|
7211
|
+
L,
|
|
7212
|
+
{ data: L.data, mode: t.ALPHANUMERIC, length: L.length },
|
|
7213
|
+
{ data: L.data, mode: t.BYTE, length: L.length }
|
|
7214
7214
|
]);
|
|
7215
7215
|
break;
|
|
7216
7216
|
case t.ALPHANUMERIC:
|
|
7217
7217
|
V.push([
|
|
7218
|
-
|
|
7219
|
-
{ data:
|
|
7218
|
+
L,
|
|
7219
|
+
{ data: L.data, mode: t.BYTE, length: L.length }
|
|
7220
7220
|
]);
|
|
7221
7221
|
break;
|
|
7222
7222
|
case t.KANJI:
|
|
7223
7223
|
V.push([
|
|
7224
|
-
|
|
7225
|
-
{ data:
|
|
7224
|
+
L,
|
|
7225
|
+
{ data: L.data, mode: t.BYTE, length: Z(L.data) }
|
|
7226
7226
|
]);
|
|
7227
7227
|
break;
|
|
7228
7228
|
case t.BYTE:
|
|
7229
7229
|
V.push([
|
|
7230
|
-
{ data:
|
|
7230
|
+
{ data: L.data, mode: t.BYTE, length: Z(L.data) }
|
|
7231
7231
|
]);
|
|
7232
7232
|
}
|
|
7233
7233
|
}
|
|
7234
7234
|
return V;
|
|
7235
7235
|
}
|
|
7236
7236
|
function M(n, V) {
|
|
7237
|
-
const s = {},
|
|
7238
|
-
let
|
|
7237
|
+
const s = {}, L = { start: {} };
|
|
7238
|
+
let v = ["start"];
|
|
7239
7239
|
for (let C = 0; C < n.length; C++) {
|
|
7240
7240
|
const w = n[C], D = [];
|
|
7241
7241
|
for (let F = 0; F < w.length; F++) {
|
|
7242
7242
|
const E = w[F], O = "" + C + F;
|
|
7243
|
-
D.push(O), s[O] = { node: E, lastCount: 0 },
|
|
7244
|
-
for (let g = 0; g <
|
|
7245
|
-
const k =
|
|
7246
|
-
s[k] && s[k].node.mode === E.mode ? (
|
|
7243
|
+
D.push(O), s[O] = { node: E, lastCount: 0 }, L[O] = {};
|
|
7244
|
+
for (let g = 0; g < v.length; g++) {
|
|
7245
|
+
const k = v[g];
|
|
7246
|
+
s[k] && s[k].node.mode === E.mode ? (L[k][O] = b(s[k].lastCount + E.length, E.mode) - b(s[k].lastCount, E.mode), s[k].lastCount += E.length) : (s[k] && (s[k].lastCount = E.length), L[k][O] = b(E.length, E.mode) + 4 + t.getCharCountIndicator(E.mode, V));
|
|
7247
7247
|
}
|
|
7248
7248
|
}
|
|
7249
|
-
|
|
7249
|
+
v = D;
|
|
7250
7250
|
}
|
|
7251
|
-
for (let C = 0; C <
|
|
7252
|
-
|
|
7253
|
-
return { map:
|
|
7251
|
+
for (let C = 0; C < v.length; C++)
|
|
7252
|
+
L[v[C]].end = 0;
|
|
7253
|
+
return { map: L, table: s };
|
|
7254
7254
|
}
|
|
7255
7255
|
function y(n, V) {
|
|
7256
7256
|
let s;
|
|
7257
|
-
const
|
|
7258
|
-
if (s = t.from(V,
|
|
7257
|
+
const L = t.getBestModeForData(n);
|
|
7258
|
+
if (s = t.from(V, L), s !== t.BYTE && s.bit < L.bit)
|
|
7259
7259
|
throw new Error('"' + n + '" cannot be encoded with mode ' + t.toString(s) + `.
|
|
7260
|
-
Suggested mode is: ` + t.toString(
|
|
7260
|
+
Suggested mode is: ` + t.toString(L));
|
|
7261
7261
|
switch (s === t.KANJI && !i.isKanjiModeEnabled() && (s = t.BYTE), s) {
|
|
7262
7262
|
case t.NUMERIC:
|
|
7263
7263
|
return new c(n);
|
|
@@ -7270,11 +7270,11 @@ function ZY() {
|
|
|
7270
7270
|
}
|
|
7271
7271
|
}
|
|
7272
7272
|
l.fromArray = function(V) {
|
|
7273
|
-
return V.reduce(function(s,
|
|
7274
|
-
return typeof
|
|
7273
|
+
return V.reduce(function(s, L) {
|
|
7274
|
+
return typeof L == "string" ? s.push(y(L, null)) : L.data && s.push(y(L.data, L.mode)), s;
|
|
7275
7275
|
}, []);
|
|
7276
7276
|
}, l.fromString = function(V, s) {
|
|
7277
|
-
const
|
|
7277
|
+
const L = W(V, i.isKanjiModeEnabled()), v = a(L), C = M(v, s), w = G.find_path(C.map, "start", "end"), D = [];
|
|
7278
7278
|
for (let F = 1; F < w.length - 1; F++)
|
|
7279
7279
|
D.push(C.table[w[F]].node);
|
|
7280
7280
|
return l.fromArray(u(D));
|
|
@@ -7356,9 +7356,9 @@ function lY() {
|
|
|
7356
7356
|
const k = (g - F.getLengthInBits()) / 8;
|
|
7357
7357
|
for (let B = 0; B < k; B++)
|
|
7358
7358
|
F.put(B % 2 ? 17 : 236, 8);
|
|
7359
|
-
return
|
|
7359
|
+
return L(F, C, w);
|
|
7360
7360
|
}
|
|
7361
|
-
function
|
|
7361
|
+
function L(C, w, D) {
|
|
7362
7362
|
const F = l.getSymbolTotalCodewords(w), E = i.getTotalCodewordsCount(w, D), O = F - E, g = i.getBlocksCount(w, D), k = F % g, B = g - k, tZ = Math.floor(F / g), ZZ = Math.floor(O / g), EZ = ZZ + 1, uZ = tZ - ZZ, NZ = new G(uZ);
|
|
7363
7363
|
let pZ = 0;
|
|
7364
7364
|
const RZ = new Array(g), rZ = new Array(g);
|
|
@@ -7378,7 +7378,7 @@ function lY() {
|
|
|
7378
7378
|
gZ[aZ++] = rZ[oZ][eZ];
|
|
7379
7379
|
return gZ;
|
|
7380
7380
|
}
|
|
7381
|
-
function
|
|
7381
|
+
function v(C, w, D, F) {
|
|
7382
7382
|
let E;
|
|
7383
7383
|
if (Array.isArray(C))
|
|
7384
7384
|
E = b.fromArray(C);
|
|
@@ -7419,7 +7419,7 @@ Minimum version required to store current data is: ` + O + `.
|
|
|
7419
7419
|
if (typeof w > "u" || w === "")
|
|
7420
7420
|
throw new Error("No input text");
|
|
7421
7421
|
let F = t.M, E, O;
|
|
7422
|
-
return typeof D < "u" && (F = t.from(D.errorCorrectionLevel, t.M), E = Z.from(D.version), O = N.from(D.maskPattern), D.toSJISFunc && l.setToSJISFunction(D.toSJISFunc)),
|
|
7422
|
+
return typeof D < "u" && (F = t.from(D.errorCorrectionLevel, t.M), E = Z.from(D.version), O = N.from(D.maskPattern), D.toSJISFunc && l.setToSJISFunction(D.toSJISFunc)), v(w, E, F, O);
|
|
7423
7423
|
}, gd;
|
|
7424
7424
|
}
|
|
7425
7425
|
var bm = {}, Wm = {}, Wb;
|
|
@@ -7618,7 +7618,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7618
7618
|
preserveAspectRatio: "xMidYMid meet",
|
|
7619
7619
|
overflow: "hidden"
|
|
7620
7620
|
}, [
|
|
7621
|
-
Z[1] || (Z[1] =
|
|
7621
|
+
Z[1] || (Z[1] = R("rect", {
|
|
7622
7622
|
width: "100%",
|
|
7623
7623
|
height: "100%",
|
|
7624
7624
|
fill: "#ffffff"
|
|
@@ -7727,9 +7727,9 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7727
7727
|
() => N.value.some((e) => tZ(e))
|
|
7728
7728
|
), V = K(() => c.element.showHeader ? n.value ? 2 : 1 : 0), s = K(
|
|
7729
7729
|
() => V.value * M.value
|
|
7730
|
-
),
|
|
7730
|
+
), L = K(
|
|
7731
7731
|
() => s.value + F.value.length * y.value
|
|
7732
|
-
),
|
|
7732
|
+
), v = K(
|
|
7733
7733
|
() => c.element.showHeader && d.value ? s.value : 0
|
|
7734
7734
|
), C = K(() => {
|
|
7735
7735
|
const A = c.runtimeData?.groups ?? Array.from(
|
|
@@ -7742,7 +7742,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7742
7742
|
);
|
|
7743
7743
|
let I = 0;
|
|
7744
7744
|
return A.map((Q, lZ) => {
|
|
7745
|
-
const bZ = Q.rows.length > 0 ? Q.rows : [{}], nZ = a.value +
|
|
7745
|
+
const bZ = Q.rows.length > 0 ? Q.rows : [{}], nZ = a.value + v.value + bZ.length * y.value, VZ = {
|
|
7746
7746
|
key: `${Q.index}-${lZ}`,
|
|
7747
7747
|
index: Q.index,
|
|
7748
7748
|
record: Q.record,
|
|
@@ -7757,7 +7757,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7757
7757
|
), D = K(
|
|
7758
7758
|
() => Math.min(
|
|
7759
7759
|
c.element.heightMm,
|
|
7760
|
-
Z.value === "groupedDetail" ? w.value :
|
|
7760
|
+
Z.value === "groupedDetail" ? w.value : L.value
|
|
7761
7761
|
)
|
|
7762
7762
|
), F = K(
|
|
7763
7763
|
() => c.runtimeData?.rows ?? Array.from({ length: b.value }, () => ({}))
|
|
@@ -7902,7 +7902,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7902
7902
|
return e.yMm + a.value;
|
|
7903
7903
|
}
|
|
7904
7904
|
function aZ(e) {
|
|
7905
|
-
return gZ(e) +
|
|
7905
|
+
return gZ(e) + v.value;
|
|
7906
7906
|
}
|
|
7907
7907
|
function eZ(e, A) {
|
|
7908
7908
|
return aZ(e) + A * y.value;
|
|
@@ -7956,7 +7956,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7956
7956
|
preserveAspectRatio: "none",
|
|
7957
7957
|
overflow: "hidden"
|
|
7958
7958
|
}, [
|
|
7959
|
-
|
|
7959
|
+
R("rect", {
|
|
7960
7960
|
x: "0",
|
|
7961
7961
|
y: "0",
|
|
7962
7962
|
width: l.element.widthMm,
|
|
@@ -7970,7 +7970,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7970
7970
|
(T(!0), o(f, null, _(k.value, (Q) => (T(), o("g", {
|
|
7971
7971
|
key: `group-${I.key}-${Q.cell.id}`
|
|
7972
7972
|
}, [
|
|
7973
|
-
|
|
7973
|
+
R("rect", {
|
|
7974
7974
|
x: Q.xMm,
|
|
7975
7975
|
y: I.yMm,
|
|
7976
7976
|
width: Q.widthMm,
|
|
@@ -7979,7 +7979,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7979
7979
|
stroke: G.value ? "#000000" : "none",
|
|
7980
7980
|
"stroke-width": l.element.strokeWidthMm
|
|
7981
7981
|
}, null, 8, MY),
|
|
7982
|
-
|
|
7982
|
+
R("text", {
|
|
7983
7983
|
x: FZ(Q),
|
|
7984
7984
|
y: I.yMm + a.value / 2,
|
|
7985
7985
|
"font-size": O.value,
|
|
@@ -7992,7 +7992,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
7992
7992
|
l.element.showHeader && d.value ? (T(!0), o(f, { key: 0 }, _(B.value, (Q) => (T(), o("g", {
|
|
7993
7993
|
key: `group-${I.key}-${Q.id}`
|
|
7994
7994
|
}, [
|
|
7995
|
-
|
|
7995
|
+
R("rect", {
|
|
7996
7996
|
x: Q.xMm,
|
|
7997
7997
|
y: gZ(I) + Q.yMm,
|
|
7998
7998
|
width: Q.widthMm,
|
|
@@ -8001,7 +8001,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8001
8001
|
stroke: G.value ? "#000000" : "none",
|
|
8002
8002
|
"stroke-width": l.element.strokeWidthMm
|
|
8003
8003
|
}, null, 8, nY),
|
|
8004
|
-
|
|
8004
|
+
R("text", {
|
|
8005
8005
|
x: rZ(Q),
|
|
8006
8006
|
y: gZ(I) + Q.yMm + Q.heightMm / 2,
|
|
8007
8007
|
"font-size": O.value,
|
|
@@ -8026,19 +8026,19 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8026
8026
|
height: KZ(),
|
|
8027
8027
|
preserveAspectRatio: "xMidYMid meet"
|
|
8028
8028
|
}, null, 8, sY)) : Q.column.type === "image" ? (T(), o("g", yY, [
|
|
8029
|
-
|
|
8029
|
+
R("rect", {
|
|
8030
8030
|
x: dZ(Q),
|
|
8031
8031
|
y: zZ(I, bZ),
|
|
8032
8032
|
width: jZ(Q),
|
|
8033
8033
|
height: KZ()
|
|
8034
8034
|
}, null, 8, TY),
|
|
8035
|
-
|
|
8035
|
+
R("line", {
|
|
8036
8036
|
x1: dZ(Q),
|
|
8037
8037
|
y1: zZ(I, bZ),
|
|
8038
8038
|
x2: dZ(Q) + jZ(Q),
|
|
8039
8039
|
y2: zZ(I, bZ) + KZ()
|
|
8040
8040
|
}, null, 8, pY),
|
|
8041
|
-
|
|
8041
|
+
R("line", {
|
|
8042
8042
|
x1: dZ(Q) + jZ(Q),
|
|
8043
8043
|
y1: zZ(I, bZ),
|
|
8044
8044
|
x2: dZ(Q),
|
|
@@ -8096,7 +8096,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8096
8096
|
(T(!0), o(f, null, _(B.value, (I) => (T(), o("g", {
|
|
8097
8097
|
key: I.id
|
|
8098
8098
|
}, [
|
|
8099
|
-
|
|
8099
|
+
R("rect", {
|
|
8100
8100
|
x: I.xMm,
|
|
8101
8101
|
y: I.yMm,
|
|
8102
8102
|
width: I.widthMm,
|
|
@@ -8105,7 +8105,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8105
8105
|
stroke: G.value ? "#000000" : "none",
|
|
8106
8106
|
"stroke-width": l.element.strokeWidthMm
|
|
8107
8107
|
}, null, 8, JY),
|
|
8108
|
-
|
|
8108
|
+
R("text", {
|
|
8109
8109
|
x: rZ(I),
|
|
8110
8110
|
y: I.yMm + I.heightMm / 2,
|
|
8111
8111
|
"font-size": O.value,
|
|
@@ -8130,19 +8130,19 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8130
8130
|
height: KZ(),
|
|
8131
8131
|
preserveAspectRatio: "xMidYMid meet"
|
|
8132
8132
|
}, null, 8, jY)) : I.column.type === "image" ? (T(), o("g", wY, [
|
|
8133
|
-
|
|
8133
|
+
R("rect", {
|
|
8134
8134
|
x: dZ(I),
|
|
8135
8135
|
y: JZ(lZ),
|
|
8136
8136
|
width: jZ(I),
|
|
8137
8137
|
height: KZ()
|
|
8138
8138
|
}, null, 8, FY),
|
|
8139
|
-
|
|
8139
|
+
R("line", {
|
|
8140
8140
|
x1: dZ(I),
|
|
8141
8141
|
y1: JZ(lZ),
|
|
8142
8142
|
x2: dZ(I) + jZ(I),
|
|
8143
8143
|
y2: JZ(lZ) + KZ()
|
|
8144
8144
|
}, null, 8, SY),
|
|
8145
|
-
|
|
8145
|
+
R("line", {
|
|
8146
8146
|
x1: dZ(I) + jZ(I),
|
|
8147
8147
|
y1: JZ(lZ),
|
|
8148
8148
|
x2: dZ(I),
|
|
@@ -8184,7 +8184,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8184
8184
|
stroke: "#000000",
|
|
8185
8185
|
"stroke-width": l.element.strokeWidthMm
|
|
8186
8186
|
}, null, 8, CY))), 128)),
|
|
8187
|
-
|
|
8187
|
+
R("rect", {
|
|
8188
8188
|
x: "0",
|
|
8189
8189
|
y: "0",
|
|
8190
8190
|
width: l.element.widthMm,
|
|
@@ -8225,9 +8225,9 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8225
8225
|
onClick: YZ(i, ["stop"]),
|
|
8226
8226
|
onPointerdown: YZ(G, ["stop", "prevent"])
|
|
8227
8227
|
}, [
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8228
|
+
R("defs", null, [
|
|
8229
|
+
R("clipPath", { id: m.value }, [
|
|
8230
|
+
R("rect", {
|
|
8231
8231
|
x: l.element.xMm,
|
|
8232
8232
|
y: l.element.yMm,
|
|
8233
8233
|
width: l.element.widthMm,
|
|
@@ -8235,14 +8235,14 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8235
8235
|
}, null, 8, PY)
|
|
8236
8236
|
], 8, BY)
|
|
8237
8237
|
]),
|
|
8238
|
-
|
|
8238
|
+
R("rect", {
|
|
8239
8239
|
x: l.element.xMm,
|
|
8240
8240
|
y: l.element.yMm,
|
|
8241
8241
|
width: l.element.widthMm,
|
|
8242
8242
|
height: l.element.heightMm,
|
|
8243
8243
|
fill: "transparent"
|
|
8244
8244
|
}, null, 8, vY),
|
|
8245
|
-
|
|
8245
|
+
R("text", {
|
|
8246
8246
|
"clip-path": `url(#${m.value})`,
|
|
8247
8247
|
x: l.element.xMm + X.value.textXOffsetMm,
|
|
8248
8248
|
y: l.element.yMm + X.value.textYOffsetMm,
|
|
@@ -8302,9 +8302,9 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8302
8302
|
if (!HZ(n))
|
|
8303
8303
|
return 0;
|
|
8304
8304
|
if (typeof document < "u") {
|
|
8305
|
-
const
|
|
8306
|
-
if (
|
|
8307
|
-
return
|
|
8305
|
+
const L = document.createElement("canvas").getContext("2d");
|
|
8306
|
+
if (L)
|
|
8307
|
+
return L.font = `${n.fontWeight} ${n.fontSizePt}pt sans-serif`, L.measureText(V || " ").width / (96 / 25.4);
|
|
8308
8308
|
}
|
|
8309
8309
|
return Math.max(1, V.length) * G(n);
|
|
8310
8310
|
}
|
|
@@ -8319,8 +8319,8 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8319
8319
|
return c.canvasWidthMm;
|
|
8320
8320
|
if (n.type === "text")
|
|
8321
8321
|
return n.xMm;
|
|
8322
|
-
const s = Z(n, V),
|
|
8323
|
-
return Math.max(0, Math.min(
|
|
8322
|
+
const s = Z(n, V), L = n.xMm + n.widthMm - s, v = c.canvasWidthMm - s;
|
|
8323
|
+
return Math.max(0, Math.min(L, v));
|
|
8324
8324
|
}
|
|
8325
8325
|
function W(n) {
|
|
8326
8326
|
return n.canvasHorizontalAlign === "center" ? "middle" : n.canvasHorizontalAlign === "right" ? "end" : "start";
|
|
@@ -8340,8 +8340,8 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8340
8340
|
return X(n);
|
|
8341
8341
|
const s = Math.max(
|
|
8342
8342
|
...V.map((w) => Z(n, w))
|
|
8343
|
-
),
|
|
8344
|
-
return `rotate(${n.rotation} ${
|
|
8343
|
+
), L = b(n, V), v = n.canvasHorizontalAlign === "left" ? s / 2 : n.canvasHorizontalAlign === "center" ? c.canvasWidthMm / 2 : n.canvasHorizontalAlign === "right" ? c.canvasWidthMm - s / 2 : n.xMm + n.widthMm / 2, C = n.canvasVerticalAlign ? u(n, V) + L / 2 : n.yMm + n.heightMm / 2;
|
|
8344
|
+
return `rotate(${n.rotation} ${v} ${C})`;
|
|
8345
8345
|
}
|
|
8346
8346
|
function M(n) {
|
|
8347
8347
|
c.interactive && Y("select", n.id);
|
|
@@ -8352,23 +8352,23 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8352
8352
|
return (n, V) => (T(!0), o(f, null, _(m.value, (s) => (T(), o(f, {
|
|
8353
8353
|
key: s.id
|
|
8354
8354
|
}, [
|
|
8355
|
-
s.type === "textBox" ? (T(),
|
|
8355
|
+
s.type === "textBox" ? (T(), r(qY, {
|
|
8356
8356
|
key: 0,
|
|
8357
8357
|
element: s,
|
|
8358
8358
|
content: i(s),
|
|
8359
8359
|
interactive: l.interactive,
|
|
8360
|
-
onSelect: V[0] || (V[0] = (
|
|
8361
|
-
onMoveStart: (
|
|
8360
|
+
onSelect: V[0] || (V[0] = (L) => Y("select", L)),
|
|
8361
|
+
onMoveStart: (L) => Y("move-start", L, s)
|
|
8362
8362
|
}, null, 8, ["element", "content", "interactive", "onMoveStart"])) : j(HZ)(s) ? (T(), o("g", {
|
|
8363
8363
|
key: 1,
|
|
8364
8364
|
class: vZ(["template-canvas__text-element svg-elements-renderer__element", {
|
|
8365
8365
|
"svg-elements-renderer__element--interactive": l.interactive
|
|
8366
8366
|
}]),
|
|
8367
8367
|
transform: a(s, N(s)),
|
|
8368
|
-
onClick: YZ((
|
|
8369
|
-
onPointerdown: YZ((
|
|
8368
|
+
onClick: YZ((L) => M(s), ["stop"]),
|
|
8369
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8370
8370
|
}, [
|
|
8371
|
-
|
|
8371
|
+
R("text", {
|
|
8372
8372
|
x: d(s, N(s)[0] ?? " "),
|
|
8373
8373
|
y: u(s, N(s)),
|
|
8374
8374
|
"font-size": G(s),
|
|
@@ -8376,11 +8376,11 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8376
8376
|
"text-anchor": W(s),
|
|
8377
8377
|
"dominant-baseline": "hanging"
|
|
8378
8378
|
}, [
|
|
8379
|
-
(T(!0), o(f, null, _(N(s), (
|
|
8380
|
-
key:
|
|
8381
|
-
x: d(s,
|
|
8382
|
-
y: u(s, N(s)) +
|
|
8383
|
-
}, H(
|
|
8379
|
+
(T(!0), o(f, null, _(N(s), (L, v) => (T(), o("tspan", {
|
|
8380
|
+
key: v,
|
|
8381
|
+
x: d(s, L),
|
|
8382
|
+
y: u(s, N(s)) + v * G(s) * 1.2
|
|
8383
|
+
}, H(L || " "), 9, ZX))), 128))
|
|
8384
8384
|
], 8, $Y)
|
|
8385
8385
|
], 42, _Y)) : s.type === "rectangle" ? (T(), o("g", {
|
|
8386
8386
|
key: 2,
|
|
@@ -8388,10 +8388,10 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8388
8388
|
"svg-elements-renderer__element--interactive": l.interactive
|
|
8389
8389
|
}]),
|
|
8390
8390
|
transform: X(s),
|
|
8391
|
-
onClick: YZ((
|
|
8392
|
-
onPointerdown: YZ((
|
|
8391
|
+
onClick: YZ((L) => M(s), ["stop"]),
|
|
8392
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8393
8393
|
}, [
|
|
8394
|
-
|
|
8394
|
+
R("rect", {
|
|
8395
8395
|
x: s.xMm + s.strokeWidthMm / 2,
|
|
8396
8396
|
y: s.yMm + s.strokeWidthMm / 2,
|
|
8397
8397
|
width: Math.max(0, s.widthMm - s.strokeWidthMm),
|
|
@@ -8406,10 +8406,10 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8406
8406
|
"svg-elements-renderer__element--interactive": l.interactive
|
|
8407
8407
|
}]),
|
|
8408
8408
|
transform: X(s),
|
|
8409
|
-
onClick: YZ((
|
|
8410
|
-
onPointerdown: YZ((
|
|
8409
|
+
onClick: YZ((L) => M(s), ["stop"]),
|
|
8410
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8411
8411
|
}, [
|
|
8412
|
-
|
|
8412
|
+
R("line", {
|
|
8413
8413
|
x1: s.xMm,
|
|
8414
8414
|
y1: s.yMm + s.heightMm / 2,
|
|
8415
8415
|
x2: s.xMm + s.widthMm,
|
|
@@ -8423,10 +8423,10 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8423
8423
|
"svg-elements-renderer__element--interactive": l.interactive
|
|
8424
8424
|
}]),
|
|
8425
8425
|
transform: X(s),
|
|
8426
|
-
onClick: YZ((
|
|
8427
|
-
onPointerdown: YZ((
|
|
8426
|
+
onClick: YZ((L) => M(s), ["stop"]),
|
|
8427
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8428
8428
|
}, [
|
|
8429
|
-
|
|
8429
|
+
R("line", {
|
|
8430
8430
|
x1: s.xMm + s.widthMm / 2,
|
|
8431
8431
|
y1: s.yMm,
|
|
8432
8432
|
x2: s.xMm + s.widthMm / 2,
|
|
@@ -8434,34 +8434,34 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8434
8434
|
stroke: "#000000",
|
|
8435
8435
|
"stroke-width": s.strokeWidthMm
|
|
8436
8436
|
}, null, 8, WX)
|
|
8437
|
-
], 42, bX)) : s.type === "qrcode" ? (T(),
|
|
8437
|
+
], 42, bX)) : s.type === "qrcode" ? (T(), r(tY, {
|
|
8438
8438
|
key: 5,
|
|
8439
8439
|
element: s,
|
|
8440
8440
|
content: i(s),
|
|
8441
|
-
onSelect: V[1] || (V[1] = (
|
|
8442
|
-
onPointerdown: YZ((
|
|
8443
|
-
}, null, 8, ["element", "content", "onPointerdown"])) : s.type === "barcode" ? (T(),
|
|
8441
|
+
onSelect: V[1] || (V[1] = (L) => l.interactive && Y("select", L)),
|
|
8442
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8443
|
+
}, null, 8, ["element", "content", "onPointerdown"])) : s.type === "barcode" ? (T(), r(T0, {
|
|
8444
8444
|
key: 6,
|
|
8445
8445
|
element: s,
|
|
8446
8446
|
content: i(s),
|
|
8447
|
-
onSelect: V[2] || (V[2] = (
|
|
8448
|
-
onPointerdown: YZ((
|
|
8449
|
-
}, null, 8, ["element", "content", "onPointerdown"])) : s.type === "image" ? (T(),
|
|
8447
|
+
onSelect: V[2] || (V[2] = (L) => l.interactive && Y("select", L)),
|
|
8448
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8449
|
+
}, null, 8, ["element", "content", "onPointerdown"])) : s.type === "image" ? (T(), r(o0, {
|
|
8450
8450
|
key: 7,
|
|
8451
8451
|
element: s,
|
|
8452
|
-
onSelect: V[3] || (V[3] = (
|
|
8453
|
-
onPointerdown: YZ((
|
|
8454
|
-
}, null, 8, ["element", "onPointerdown"])) : s.type === "pdf" ? (T(),
|
|
8452
|
+
onSelect: V[3] || (V[3] = (L) => l.interactive && Y("select", L)),
|
|
8453
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8454
|
+
}, null, 8, ["element", "onPointerdown"])) : s.type === "pdf" ? (T(), r(k0, {
|
|
8455
8455
|
key: 8,
|
|
8456
8456
|
element: s,
|
|
8457
|
-
onSelect: V[4] || (V[4] = (
|
|
8458
|
-
onPointerdown: YZ((
|
|
8459
|
-
}, null, 8, ["element", "onPointerdown"])) : s.type === "table" ? (T(),
|
|
8457
|
+
onSelect: V[4] || (V[4] = (L) => l.interactive && Y("select", L)),
|
|
8458
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8459
|
+
}, null, 8, ["element", "onPointerdown"])) : s.type === "table" ? (T(), r(EY, {
|
|
8460
8460
|
key: 9,
|
|
8461
8461
|
element: s,
|
|
8462
8462
|
"runtime-data": l.tableRuntimeData[s.id],
|
|
8463
|
-
onSelect: V[5] || (V[5] = (
|
|
8464
|
-
onPointerdown: YZ((
|
|
8463
|
+
onSelect: V[5] || (V[5] = (L) => l.interactive && Y("select", L)),
|
|
8464
|
+
onPointerdown: YZ((L) => y(L, s), ["stop", "prevent"])
|
|
8465
8465
|
}, null, 8, ["element", "runtime-data", "onPointerdown"])) : XZ("", !0)
|
|
8466
8466
|
], 64))), 128));
|
|
8467
8467
|
}
|
|
@@ -8497,7 +8497,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8497
8497
|
width: `${l.widthMm}mm`,
|
|
8498
8498
|
height: `${l.heightMm}mm`
|
|
8499
8499
|
}, [
|
|
8500
|
-
|
|
8500
|
+
R("rect", {
|
|
8501
8501
|
x: "0",
|
|
8502
8502
|
y: "0",
|
|
8503
8503
|
width: l.widthMm,
|
|
@@ -8552,7 +8552,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8552
8552
|
}
|
|
8553
8553
|
), (W, b) => {
|
|
8554
8554
|
const u = OZ, a = iZ, M = Mm, y = dl, n = hm;
|
|
8555
|
-
return T(),
|
|
8555
|
+
return T(), r(n, {
|
|
8556
8556
|
modelValue: m.value,
|
|
8557
8557
|
"onUpdate:modelValue": b[1] || (b[1] = (V) => m.value = V),
|
|
8558
8558
|
"modal-class": "print-designer-dialog-overlay",
|
|
@@ -8658,8 +8658,8 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8658
8658
|
}), (b, u) => {
|
|
8659
8659
|
const a = dl;
|
|
8660
8660
|
return T(), o("section", MX, [
|
|
8661
|
-
|
|
8662
|
-
|
|
8661
|
+
R("div", hX, [
|
|
8662
|
+
R("h2", nX, H(j(m)("printDesigner.preview.title")), 1),
|
|
8663
8663
|
J(a, {
|
|
8664
8664
|
link: "",
|
|
8665
8665
|
type: "primary",
|
|
@@ -8677,7 +8677,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8677
8677
|
_: 1
|
|
8678
8678
|
}, 8, ["disabled", "title", "aria-label"])
|
|
8679
8679
|
]),
|
|
8680
|
-
|
|
8680
|
+
R("div", {
|
|
8681
8681
|
ref_key: "previewViewport",
|
|
8682
8682
|
ref: i,
|
|
8683
8683
|
class: "preview-panel__viewport"
|
|
@@ -8689,7 +8689,7 @@ const WY = /* @__PURE__ */ Jb(bY), GY = ["transform"], YY = ["x", "y", "width",
|
|
|
8689
8689
|
preserveAspectRatio: "xMidYMid meet",
|
|
8690
8690
|
"aria-label": j(m)("printDesigner.preview.title")
|
|
8691
8691
|
}, [
|
|
8692
|
-
|
|
8692
|
+
R("rect", {
|
|
8693
8693
|
x: "0",
|
|
8694
8694
|
y: "0",
|
|
8695
8695
|
width: l.widthMm,
|
|
@@ -8798,7 +8798,7 @@ function RX(l, t, c, Y, m, X, N) {
|
|
|
8798
8798
|
), s = G === 0 ? t.heightMm : Math.max(
|
|
8799
8799
|
n,
|
|
8800
8800
|
t.heightMm + G * M
|
|
8801
|
-
),
|
|
8801
|
+
), L = t.fontSizePt;
|
|
8802
8802
|
if (l.type === "qrcode") {
|
|
8803
8803
|
const tZ = i !== 0 && G !== 0 ? Math.max(V, s) : i !== 0 ? V : s;
|
|
8804
8804
|
V = tZ, s = tZ;
|
|
@@ -8808,16 +8808,16 @@ function RX(l, t, c, Y, m, X, N) {
|
|
|
8808
8808
|
pZ / t.fontSizePt,
|
|
8809
8809
|
Math.max(NZ / t.fontSizePt, EZ)
|
|
8810
8810
|
);
|
|
8811
|
-
V = t.widthMm * RZ, s = t.heightMm * RZ,
|
|
8811
|
+
V = t.widthMm * RZ, s = t.heightMm * RZ, L = t.fontSizePt * RZ;
|
|
8812
8812
|
}
|
|
8813
|
-
const
|
|
8813
|
+
const v = V - t.widthMm, C = s - t.heightMm, w = i * v / 2, D = G * C / 2, F = t.xMm + t.widthMm / 2, E = t.yMm + t.heightMm / 2, O = F + w * d - D * W, g = E + w * W + D * d, k = {
|
|
8814
8814
|
xMm: O - V / 2,
|
|
8815
8815
|
yMm: g - s / 2,
|
|
8816
8816
|
widthMm: V,
|
|
8817
8817
|
heightMm: s,
|
|
8818
8818
|
rotation: t.rotation
|
|
8819
8819
|
};
|
|
8820
|
-
if (
|
|
8820
|
+
if (L !== void 0 && (k.fontSizePt = L), !LX(k, X, N))
|
|
8821
8821
|
return null;
|
|
8822
8822
|
const B = {
|
|
8823
8823
|
xMm: k.xMm,
|
|
@@ -8825,7 +8825,7 @@ function RX(l, t, c, Y, m, X, N) {
|
|
|
8825
8825
|
widthMm: k.widthMm,
|
|
8826
8826
|
heightMm: k.heightMm
|
|
8827
8827
|
};
|
|
8828
|
-
return
|
|
8828
|
+
return L !== void 0 && (B.fontSizePt = L), B;
|
|
8829
8829
|
}
|
|
8830
8830
|
const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy", "onPointerdown"], jX = 0.45, wX = /* @__PURE__ */ $({
|
|
8831
8831
|
__name: "SvgSelectionBox",
|
|
@@ -8868,7 +8868,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
8868
8868
|
class: "svg-selection-box",
|
|
8869
8869
|
transform: m.value
|
|
8870
8870
|
}, [
|
|
8871
|
-
|
|
8871
|
+
R("rect", {
|
|
8872
8872
|
class: "svg-selection-box__outline",
|
|
8873
8873
|
x: l.element.xMm,
|
|
8874
8874
|
y: l.element.yMm,
|
|
@@ -8936,16 +8936,16 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
8936
8936
|
function b(n, V, s) {
|
|
8937
8937
|
if (n.button !== 0 || !m.value)
|
|
8938
8938
|
return;
|
|
8939
|
-
const
|
|
8939
|
+
const L = Xm(
|
|
8940
8940
|
m.value,
|
|
8941
8941
|
n.clientX,
|
|
8942
8942
|
n.clientY
|
|
8943
8943
|
);
|
|
8944
|
-
|
|
8944
|
+
L && (N = !0, X.value = {
|
|
8945
8945
|
type: "resize",
|
|
8946
8946
|
pointerId: n.pointerId,
|
|
8947
8947
|
elementId: V.id,
|
|
8948
|
-
startPointer:
|
|
8948
|
+
startPointer: L,
|
|
8949
8949
|
startGeometry: ib(V),
|
|
8950
8950
|
handle: s
|
|
8951
8951
|
}, m.value.setPointerCapture(n.pointerId));
|
|
@@ -8957,31 +8957,31 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
8957
8957
|
const V = X.value, s = m.value;
|
|
8958
8958
|
if (!V || V.pointerId !== n.pointerId || !s)
|
|
8959
8959
|
return;
|
|
8960
|
-
const
|
|
8960
|
+
const L = Xm(
|
|
8961
8961
|
s,
|
|
8962
8962
|
n.clientX,
|
|
8963
8963
|
n.clientY
|
|
8964
|
-
),
|
|
8964
|
+
), v = c.elements.find(
|
|
8965
8965
|
(w) => w.id === V.elementId
|
|
8966
8966
|
);
|
|
8967
|
-
if (!
|
|
8967
|
+
if (!L || !v)
|
|
8968
8968
|
return;
|
|
8969
8969
|
const C = V.type === "move" ? zX(
|
|
8970
8970
|
V.startGeometry,
|
|
8971
8971
|
V.startPointer,
|
|
8972
|
-
|
|
8972
|
+
L,
|
|
8973
8973
|
c.widthMm,
|
|
8974
8974
|
c.heightMm
|
|
8975
8975
|
) : RX(
|
|
8976
|
-
|
|
8976
|
+
v,
|
|
8977
8977
|
V.startGeometry,
|
|
8978
8978
|
V.handle,
|
|
8979
8979
|
V.startPointer,
|
|
8980
|
-
|
|
8980
|
+
L,
|
|
8981
8981
|
c.widthMm,
|
|
8982
8982
|
c.heightMm
|
|
8983
8983
|
);
|
|
8984
|
-
C && (N = !0, Y("update-transform",
|
|
8984
|
+
C && (N = !0, Y("update-transform", v.id, C, V.type));
|
|
8985
8985
|
}
|
|
8986
8986
|
function M(n) {
|
|
8987
8987
|
!X.value || X.value.pointerId !== n.pointerId || (m.value?.hasPointerCapture(n.pointerId) && m.value.releasePointerCapture(n.pointerId), X.value = null, window.setTimeout(() => {
|
|
@@ -9019,13 +9019,13 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9019
9019
|
onSelect: V[0] || (V[0] = (s) => Y("select", s)),
|
|
9020
9020
|
onMoveStart: W
|
|
9021
9021
|
}, null, 8, ["elements", "canvas-width-mm", "canvas-height-mm"]),
|
|
9022
|
-
d.value ? (T(),
|
|
9022
|
+
d.value ? (T(), r(FX, {
|
|
9023
9023
|
key: 0,
|
|
9024
9024
|
element: d.value,
|
|
9025
|
-
onResizeStart: V[1] || (V[1] = (s,
|
|
9025
|
+
onResizeStart: V[1] || (V[1] = (s, L) => u(s, L))
|
|
9026
9026
|
}, null, 8, ["element"])) : XZ("", !0)
|
|
9027
9027
|
], 44, SX)),
|
|
9028
|
-
|
|
9028
|
+
R("div", {
|
|
9029
9029
|
class: "template-canvas-outline",
|
|
9030
9030
|
style: _Z(i.value),
|
|
9031
9031
|
"aria-hidden": "true"
|
|
@@ -9077,8 +9077,8 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9077
9077
|
heightMm: 30
|
|
9078
9078
|
}
|
|
9079
9079
|
}), d = (n, V, s) => {
|
|
9080
|
-
const
|
|
9081
|
-
if ([
|
|
9080
|
+
const L = V;
|
|
9081
|
+
if ([L.widthMm, L.heightMm].every(
|
|
9082
9082
|
// 打印尺寸允许两位小数,范围限制与两个 el-input-number 保持一致。
|
|
9083
9083
|
(C) => C >= 0.1 && C <= 2e3
|
|
9084
9084
|
)) {
|
|
@@ -9131,8 +9131,8 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9131
9131
|
}), u());
|
|
9132
9132
|
}
|
|
9133
9133
|
return (n, V) => {
|
|
9134
|
-
const s = um,
|
|
9135
|
-
return T(),
|
|
9134
|
+
const s = um, L = iZ, v = Jd, C = ed, w = OZ, D = dl, F = yb, E = sb, O = Vb, g = Mm, k = hm;
|
|
9135
|
+
return T(), r(k, {
|
|
9136
9136
|
modelValue: m.value,
|
|
9137
9137
|
"onUpdate:modelValue": V[4] || (V[4] = (B) => m.value = B),
|
|
9138
9138
|
"modal-class": "print-designer-dialog-overlay",
|
|
@@ -9169,7 +9169,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9169
9169
|
"label-width": "100px"
|
|
9170
9170
|
}, {
|
|
9171
9171
|
default: S(() => [
|
|
9172
|
-
J(
|
|
9172
|
+
J(L, {
|
|
9173
9173
|
label: j(X)("printDesigner.templateInfo.name"),
|
|
9174
9174
|
prop: "name"
|
|
9175
9175
|
}, {
|
|
@@ -9184,7 +9184,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9184
9184
|
]),
|
|
9185
9185
|
_: 1
|
|
9186
9186
|
}, 8, ["label"]),
|
|
9187
|
-
J(
|
|
9187
|
+
J(L, {
|
|
9188
9188
|
label: j(X)("printDesigner.templateInfo.templateType")
|
|
9189
9189
|
}, {
|
|
9190
9190
|
default: S(() => [
|
|
@@ -9193,7 +9193,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9193
9193
|
"onUpdate:modelValue": V[1] || (V[1] = (B) => Z.mode = B)
|
|
9194
9194
|
}, {
|
|
9195
9195
|
default: S(() => [
|
|
9196
|
-
J(
|
|
9196
|
+
J(v, {
|
|
9197
9197
|
label: "single",
|
|
9198
9198
|
value: "single"
|
|
9199
9199
|
}, {
|
|
@@ -9202,7 +9202,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9202
9202
|
]),
|
|
9203
9203
|
_: 1
|
|
9204
9204
|
}),
|
|
9205
|
-
J(
|
|
9205
|
+
J(v, {
|
|
9206
9206
|
label: "dual",
|
|
9207
9207
|
value: "dual"
|
|
9208
9208
|
}, {
|
|
@@ -9217,12 +9217,12 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9217
9217
|
]),
|
|
9218
9218
|
_: 1
|
|
9219
9219
|
}, 8, ["label"]),
|
|
9220
|
-
J(
|
|
9220
|
+
J(L, {
|
|
9221
9221
|
label: j(X)("printDesigner.templateInfo.size"),
|
|
9222
9222
|
prop: "size"
|
|
9223
9223
|
}, {
|
|
9224
9224
|
default: S(() => [
|
|
9225
|
-
|
|
9225
|
+
R("div", kX, [
|
|
9226
9226
|
J(w, {
|
|
9227
9227
|
modelValue: Z.size.widthMm,
|
|
9228
9228
|
"onUpdate:modelValue": V[2] || (V[2] = (B) => Z.size.widthMm = B),
|
|
@@ -9233,8 +9233,8 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9233
9233
|
step: 0.01,
|
|
9234
9234
|
controls: !1
|
|
9235
9235
|
}, null, 8, ["modelValue", "aria-label"]),
|
|
9236
|
-
V[5] || (V[5] =
|
|
9237
|
-
V[6] || (V[6] =
|
|
9236
|
+
V[5] || (V[5] = R("span", { class: "template-info-dialog__size-unit" }, "mm", -1)),
|
|
9237
|
+
V[6] || (V[6] = R("span", { class: "template-info-dialog__size-separator" }, "×", -1)),
|
|
9238
9238
|
J(w, {
|
|
9239
9239
|
modelValue: Z.size.heightMm,
|
|
9240
9240
|
"onUpdate:modelValue": V[3] || (V[3] = (B) => Z.size.heightMm = B),
|
|
@@ -9245,7 +9245,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9245
9245
|
step: 0.01,
|
|
9246
9246
|
controls: !1
|
|
9247
9247
|
}, null, 8, ["modelValue", "aria-label"]),
|
|
9248
|
-
V[7] || (V[7] =
|
|
9248
|
+
V[7] || (V[7] = R("span", { class: "template-info-dialog__size-unit" }, "mm", -1)),
|
|
9249
9249
|
J(O, {
|
|
9250
9250
|
"popper-class": "print-designer-dropdown-popper",
|
|
9251
9251
|
"popper-style": j(N),
|
|
@@ -9255,7 +9255,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9255
9255
|
dropdown: S(() => [
|
|
9256
9256
|
J(E, null, {
|
|
9257
9257
|
default: S(() => [
|
|
9258
|
-
(T(!0), o(f, null, _(i.value, (B) => (T(),
|
|
9258
|
+
(T(!0), o(f, null, _(i.value, (B) => (T(), r(F, {
|
|
9259
9259
|
key: B.key,
|
|
9260
9260
|
command: B.key
|
|
9261
9261
|
}, {
|
|
@@ -9322,9 +9322,9 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9322
9322
|
return (Z, d) => {
|
|
9323
9323
|
const W = dl;
|
|
9324
9324
|
return T(), o(f, null, [
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9325
|
+
R("section", gX, [
|
|
9326
|
+
R("header", KX, [
|
|
9327
|
+
R("h2", HX, H(j(m)("printDesigner.templateInfo.title")), 1),
|
|
9328
9328
|
J(W, {
|
|
9329
9329
|
link: "",
|
|
9330
9330
|
type: "primary",
|
|
@@ -9339,18 +9339,18 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9339
9339
|
_: 1
|
|
9340
9340
|
})
|
|
9341
9341
|
]),
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9342
|
+
R("dl", EX, [
|
|
9343
|
+
R("div", QX, [
|
|
9344
|
+
R("dt", null, H(j(m)("printDesigner.templateInfo.name")), 1),
|
|
9345
|
+
R("dd", { title: l.templateName }, H(l.templateName), 9, BX)
|
|
9346
9346
|
]),
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9347
|
+
R("div", PX, [
|
|
9348
|
+
R("dt", null, H(j(m)("printDesigner.templateInfo.size")), 1),
|
|
9349
|
+
R("dd", null, H(l.widthMm) + " × " + H(l.heightMm) + " mm", 1)
|
|
9350
9350
|
]),
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9351
|
+
R("div", vX, [
|
|
9352
|
+
R("dt", null, H(j(m)("printDesigner.templateInfo.templateType")), 1),
|
|
9353
|
+
R("dd", null, H(l.templateMode === "dual" ? j(m)("printDesigner.templateInfo.dualTemplate") : j(m)("printDesigner.templateInfo.singleTemplate")), 1)
|
|
9354
9354
|
])
|
|
9355
9355
|
])
|
|
9356
9356
|
]),
|
|
@@ -9409,9 +9409,9 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9409
9409
|
N.value = !1, Y("reset");
|
|
9410
9410
|
}
|
|
9411
9411
|
return (M, y) => {
|
|
9412
|
-
const n = am, V = OZ, s = X2,
|
|
9412
|
+
const n = am, V = OZ, s = X2, L = dl, v = yb, C = sb, w = Vb, D = hm;
|
|
9413
9413
|
return T(), o(f, null, [
|
|
9414
|
-
|
|
9414
|
+
R("div", AX, [
|
|
9415
9415
|
J(n, {
|
|
9416
9416
|
"model-value": l.showGrid,
|
|
9417
9417
|
onChange: i
|
|
@@ -9421,8 +9421,8 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9421
9421
|
]),
|
|
9422
9422
|
_: 1
|
|
9423
9423
|
}, 8, ["model-value"]),
|
|
9424
|
-
|
|
9425
|
-
|
|
9424
|
+
R("div", qX, [
|
|
9425
|
+
R("span", null, H(j(m)("printDesigner.toolbar.gridSpacing")), 1),
|
|
9426
9426
|
J(V, {
|
|
9427
9427
|
class: "workspace-toolbar__grid-spacing-input",
|
|
9428
9428
|
"model-value": l.gridSpacing,
|
|
@@ -9434,15 +9434,15 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9434
9434
|
"aria-label": j(m)("printDesigner.toolbar.gridSpacing"),
|
|
9435
9435
|
onChange: G
|
|
9436
9436
|
}, null, 8, ["model-value", "disabled", "aria-label"]),
|
|
9437
|
-
|
|
9437
|
+
R("span", null, H(j(m)("printDesigner.toolbar.pixels")), 1)
|
|
9438
9438
|
]),
|
|
9439
9439
|
J(s, {
|
|
9440
9440
|
class: "workspace-toolbar__divider",
|
|
9441
9441
|
direction: "vertical"
|
|
9442
9442
|
}),
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
J(
|
|
9443
|
+
R("div", _X, [
|
|
9444
|
+
R("span", $X, H(j(m)("printDesigner.toolbar.zoom")), 1),
|
|
9445
|
+
J(L, {
|
|
9446
9446
|
class: "workspace-toolbar__zoom-button",
|
|
9447
9447
|
disabled: l.zoomPercent <= ol,
|
|
9448
9448
|
title: j(m)("printDesigner.toolbar.zoomOut"),
|
|
@@ -9454,7 +9454,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9454
9454
|
])]),
|
|
9455
9455
|
_: 1
|
|
9456
9456
|
}, 8, ["disabled", "title", "aria-label"]),
|
|
9457
|
-
|
|
9457
|
+
R("div", ZN, [
|
|
9458
9458
|
J(V, {
|
|
9459
9459
|
class: "workspace-toolbar__zoom-input",
|
|
9460
9460
|
"model-value": l.zoomPercent,
|
|
@@ -9467,9 +9467,9 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9467
9467
|
"aria-label": j(m)("printDesigner.toolbar.zoom"),
|
|
9468
9468
|
onChange: Z
|
|
9469
9469
|
}, null, 8, ["model-value", "aria-label"]),
|
|
9470
|
-
y[2] || (y[2] =
|
|
9470
|
+
y[2] || (y[2] = R("span", { class: "workspace-toolbar__zoom-unit" }, "%", -1))
|
|
9471
9471
|
]),
|
|
9472
|
-
J(
|
|
9472
|
+
J(L, {
|
|
9473
9473
|
class: "workspace-toolbar__zoom-button",
|
|
9474
9474
|
disabled: l.zoomPercent >= pd,
|
|
9475
9475
|
title: j(m)("printDesigner.toolbar.zoomIn"),
|
|
@@ -9482,7 +9482,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9482
9482
|
_: 1
|
|
9483
9483
|
}, 8, ["disabled", "title", "aria-label"])
|
|
9484
9484
|
]),
|
|
9485
|
-
J(
|
|
9485
|
+
J(L, {
|
|
9486
9486
|
class: "workspace-toolbar__reset",
|
|
9487
9487
|
link: "",
|
|
9488
9488
|
type: "primary",
|
|
@@ -9508,13 +9508,13 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9508
9508
|
dropdown: S(() => [
|
|
9509
9509
|
J(C, { class: "workspace-toolbar__clipboard-menu" }, {
|
|
9510
9510
|
default: S(() => [
|
|
9511
|
-
(T(!0), o(f, null, _(l.clipboardItems, (F) => (T(), v
|
|
9511
|
+
(T(!0), o(f, null, _(l.clipboardItems, (F) => (T(), r(v, {
|
|
9512
9512
|
key: F.id,
|
|
9513
9513
|
class: "workspace-toolbar__clipboard-item"
|
|
9514
9514
|
}, {
|
|
9515
9515
|
default: S(() => [
|
|
9516
|
-
|
|
9517
|
-
|
|
9516
|
+
R("span", lN, H(F.label), 1),
|
|
9517
|
+
R("button", {
|
|
9518
9518
|
type: "button",
|
|
9519
9519
|
class: "workspace-toolbar__paste-button",
|
|
9520
9520
|
title: j(m)("printDesigner.toolbar.paste"),
|
|
@@ -9534,7 +9534,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9534
9534
|
})
|
|
9535
9535
|
]),
|
|
9536
9536
|
default: S(() => [
|
|
9537
|
-
J(
|
|
9537
|
+
J(L, {
|
|
9538
9538
|
class: "workspace-toolbar__clipboard",
|
|
9539
9539
|
link: "",
|
|
9540
9540
|
type: "primary",
|
|
@@ -9565,13 +9565,13 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9565
9565
|
"close-on-press-escape": !1
|
|
9566
9566
|
}, {
|
|
9567
9567
|
footer: S(() => [
|
|
9568
|
-
J(
|
|
9568
|
+
J(L, { onClick: u }, {
|
|
9569
9569
|
default: S(() => [
|
|
9570
9570
|
WZ(H(j(m)("printDesigner.templateInfo.cancel")), 1)
|
|
9571
9571
|
]),
|
|
9572
9572
|
_: 1
|
|
9573
9573
|
}),
|
|
9574
|
-
J(
|
|
9574
|
+
J(L, {
|
|
9575
9575
|
type: "primary",
|
|
9576
9576
|
onClick: a
|
|
9577
9577
|
}, {
|
|
@@ -9582,7 +9582,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9582
9582
|
})
|
|
9583
9583
|
]),
|
|
9584
9584
|
default: S(() => [
|
|
9585
|
-
|
|
9585
|
+
R("p", mN, H(j(m)("printDesigner.toolbar.resetConfirm")), 1)
|
|
9586
9586
|
]),
|
|
9587
9587
|
_: 1
|
|
9588
9588
|
}, 8, ["modelValue", "style", "title"])
|
|
@@ -9612,7 +9612,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9612
9612
|
() => N.mode === "dual" ? "dual" : "single"
|
|
9613
9613
|
), a = K(() => eb(Y.theme));
|
|
9614
9614
|
h2(Rb, a);
|
|
9615
|
-
const M = c, y = K(() => W[b.value]), n = hZ(null), V = hZ([]), s = K(() => [...V.value].reverse()),
|
|
9615
|
+
const M = c, y = K(() => W[b.value]), n = hZ(null), V = hZ([]), s = K(() => [...V.value].reverse()), L = hZ(null), v = hZ(null), C = K(
|
|
9616
9616
|
() => y.value.find(
|
|
9617
9617
|
(h) => h.id === n.value
|
|
9618
9618
|
) ?? null
|
|
@@ -9644,7 +9644,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
9644
9644
|
));
|
|
9645
9645
|
}
|
|
9646
9646
|
nm(() => {
|
|
9647
|
-
E(), import("./pdfGenerator-
|
|
9647
|
+
E(), import("./pdfGenerator-CLsqLnwp.js").then((h) => h.p);
|
|
9648
9648
|
});
|
|
9649
9649
|
function O() {
|
|
9650
9650
|
return D({
|
|
@@ -10127,22 +10127,22 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
10127
10127
|
y.value.push(z), n.value = z.id;
|
|
10128
10128
|
}
|
|
10129
10129
|
async function VZ(h) {
|
|
10130
|
-
if (
|
|
10130
|
+
if (L.value || typeof window > "u")
|
|
10131
10131
|
throw new Error("A PDF print job is already running or unavailable.");
|
|
10132
10132
|
const p = /* @__PURE__ */ new Date();
|
|
10133
|
-
|
|
10133
|
+
L.value = { pages: h, printTime: p };
|
|
10134
10134
|
try {
|
|
10135
10135
|
await nl(), await nl(), await new Promise((q) => {
|
|
10136
10136
|
window.requestAnimationFrame(() => q());
|
|
10137
10137
|
}), await p2(), await nl();
|
|
10138
|
-
const z =
|
|
10138
|
+
const z = v.value?.getPageSvgs() ?? [], { generateTemplatePdf: U } = await import("./pdfGenerator-CLsqLnwp.js").then((q) => q.p);
|
|
10139
10139
|
return await U(
|
|
10140
10140
|
z,
|
|
10141
10141
|
N.widthMm,
|
|
10142
10142
|
N.heightMm
|
|
10143
10143
|
);
|
|
10144
10144
|
} finally {
|
|
10145
|
-
|
|
10145
|
+
L.value = null;
|
|
10146
10146
|
}
|
|
10147
10147
|
}
|
|
10148
10148
|
function ml() {
|
|
@@ -10583,14 +10583,14 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
10583
10583
|
}
|
|
10584
10584
|
return (h, p) => {
|
|
10585
10585
|
const z = N2;
|
|
10586
|
-
return T(),
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10586
|
+
return T(), o("div", {
|
|
10587
|
+
class: "print-designer-shell",
|
|
10588
|
+
style: _Z(a.value)
|
|
10589
|
+
}, [
|
|
10590
|
+
J(z, { namespace: "bpd" }, {
|
|
10591
|
+
default: S(() => [
|
|
10592
|
+
R("div", YN, [
|
|
10593
|
+
R("aside", XN, [
|
|
10594
10594
|
J(fX, {
|
|
10595
10595
|
"template-name": N.name,
|
|
10596
10596
|
"template-mode": u.value,
|
|
@@ -10604,7 +10604,7 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
10604
10604
|
onAddField: A
|
|
10605
10605
|
}, null, 8, ["field-groups"])
|
|
10606
10606
|
]),
|
|
10607
|
-
|
|
10607
|
+
R("main", NN, [
|
|
10608
10608
|
J(GN, {
|
|
10609
10609
|
"show-grid": i.value,
|
|
10610
10610
|
"onUpdate:showGrid": p[0] || (p[0] = (U) => i.value = U),
|
|
@@ -10616,13 +10616,13 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
10616
10616
|
onReset: Q,
|
|
10617
10617
|
onPaste: nZ
|
|
10618
10618
|
}, null, 8, ["show-grid", "grid-spacing", "zoom-percent", "clipboard-items"]),
|
|
10619
|
-
|
|
10619
|
+
R("div", {
|
|
10620
10620
|
ref_key: "workspaceViewportRef",
|
|
10621
10621
|
ref: d,
|
|
10622
10622
|
class: "print-designer-layout__workspace-viewport"
|
|
10623
10623
|
}, [
|
|
10624
|
-
|
|
10625
|
-
y.value.length > 0 || u.value === "dual" ? (T(),
|
|
10624
|
+
R("div", tN, [
|
|
10625
|
+
y.value.length > 0 || u.value === "dual" ? (T(), r(YW, {
|
|
10626
10626
|
key: 0,
|
|
10627
10627
|
class: "print-designer-layout__element-list",
|
|
10628
10628
|
elements: y.value,
|
|
@@ -10648,15 +10648,15 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
10648
10648
|
}, null, 8, ["width-mm", "height-mm", "show-grid", "grid-spacing", "zoom-percent", "elements", "selected-element-id"])
|
|
10649
10649
|
], 512)
|
|
10650
10650
|
]),
|
|
10651
|
-
|
|
10651
|
+
R("aside", iN, [
|
|
10652
10652
|
J(TX, {
|
|
10653
10653
|
"width-mm": N.widthMm,
|
|
10654
10654
|
"height-mm": N.heightMm,
|
|
10655
10655
|
elements: y.value,
|
|
10656
|
-
printing: !!
|
|
10656
|
+
printing: !!L.value,
|
|
10657
10657
|
onPrint: Bb
|
|
10658
10658
|
}, null, 8, ["width-mm", "height-mm", "elements", "printing"]),
|
|
10659
|
-
|
|
10659
|
+
R("div", uN, [
|
|
10660
10660
|
J(RG, {
|
|
10661
10661
|
element: C.value,
|
|
10662
10662
|
properties: w.value,
|
|
@@ -10668,23 +10668,23 @@ const eX = ["transform"], JX = ["x", "y", "width", "height"], oX = ["cx", "cy",
|
|
|
10668
10668
|
}, null, 8, ["element", "properties", "canvas-width-mm", "canvas-height-mm"])
|
|
10669
10669
|
])
|
|
10670
10670
|
])
|
|
10671
|
-
])
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
"print-time":
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10671
|
+
]),
|
|
10672
|
+
L.value ? (T(), r(iX, {
|
|
10673
|
+
key: 0,
|
|
10674
|
+
ref_key: "pdfPagesRenderer",
|
|
10675
|
+
ref: v,
|
|
10676
|
+
"width-mm": N.widthMm,
|
|
10677
|
+
"height-mm": N.heightMm,
|
|
10678
|
+
pages: L.value.pages,
|
|
10679
|
+
"print-time": L.value.printTime
|
|
10680
|
+
}, null, 8, ["width-mm", "height-mm", "pages", "print-time"])) : XZ("", !0)
|
|
10681
|
+
]),
|
|
10682
|
+
_: 1
|
|
10683
|
+
})
|
|
10684
|
+
], 4);
|
|
10685
10685
|
};
|
|
10686
10686
|
}
|
|
10687
|
-
}), yN = /* @__PURE__ */ cZ(sN, [["__scopeId", "data-v-
|
|
10687
|
+
}), yN = /* @__PURE__ */ cZ(sN, [["__scopeId", "data-v-ca9e9114"]]), LN = {
|
|
10688
10688
|
printDesigner: {
|
|
10689
10689
|
templateInfo: {
|
|
10690
10690
|
title: "Template information",
|