@pdfme/ui 5.4.8-dev.1 → 5.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +32 -89
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
- package/src/i18n.ts +1 -12
package/dist/index.es.js
CHANGED
|
@@ -8407,7 +8407,6 @@ object$1({
|
|
|
8407
8407
|
"schemas.table.alternateBackgroundColor": string$1(),
|
|
8408
8408
|
"schemas.table.tableStyle": string$1(),
|
|
8409
8409
|
"schemas.table.showHead": string$1(),
|
|
8410
|
-
"schemas.table.headerRepeat": string$1(),
|
|
8411
8410
|
"schemas.table.headStyle": string$1(),
|
|
8412
8411
|
"schemas.table.bodyStyle": string$1(),
|
|
8413
8412
|
"schemas.table.columnStyle": string$1(),
|
|
@@ -8669,40 +8668,29 @@ async function createOnePage(a) {
|
|
|
8669
8668
|
return x.setHeight(f), resortChildren(x, u), x;
|
|
8670
8669
|
}
|
|
8671
8670
|
function breakIntoPages(a) {
|
|
8672
|
-
const { longPage: s, orderMap: c, basePdf: u } = a, d = [createPage(u)], [p, , v] = u.padding, A = [], x = (
|
|
8673
|
-
const
|
|
8674
|
-
for (; d.length <=
|
|
8675
|
-
d[
|
|
8676
|
-
return
|
|
8677
|
-
}, b = (
|
|
8678
|
-
let
|
|
8671
|
+
const { longPage: s, orderMap: c, basePdf: u } = a, d = [createPage(u)], [p, , v] = u.padding, A = [], x = (f) => u.height - v - (f > 0 ? p : 0), g = (f, m) => {
|
|
8672
|
+
const E = f - m * (u.height - p - v);
|
|
8673
|
+
for (; d.length <= m; )
|
|
8674
|
+
d[m] || (d.push(createPage(u)), A.push({ page: m, value: (E - p) * -1 }));
|
|
8675
|
+
return E + (A.find((w) => w.page === m)?.value || 0);
|
|
8676
|
+
}, b = (f) => {
|
|
8677
|
+
let m = 0, E = 0;
|
|
8679
8678
|
for (; ; ) {
|
|
8680
|
-
const
|
|
8681
|
-
if (
|
|
8682
|
-
return
|
|
8683
|
-
|
|
8684
|
-
}
|
|
8685
|
-
}, y = s.children.sort((
|
|
8686
|
-
let f = 0;
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
_ < f && (_ = f);
|
|
8691
|
-
let C = g(T, _);
|
|
8692
|
-
for (; C + S > u.height - v; ) {
|
|
8693
|
-
const O = x(_ + 1);
|
|
8694
|
-
if (S > O) {
|
|
8695
|
-
_++, C = g(T, _);
|
|
8696
|
-
break;
|
|
8697
|
-
}
|
|
8698
|
-
_++, C = g(T, _);
|
|
8699
|
-
}
|
|
8700
|
-
if (f = _, !E)
|
|
8679
|
+
const w = x(E);
|
|
8680
|
+
if (f <= m + w)
|
|
8681
|
+
return E;
|
|
8682
|
+
m += w, E++;
|
|
8683
|
+
}
|
|
8684
|
+
}, y = s.children.sort((f, m) => f.position.y - m.position.y);
|
|
8685
|
+
for (let f = 0; f < y.length; f++) {
|
|
8686
|
+
const { schema: m, position: E, height: w, width: S } = y[f], { y: $, x: T } = E;
|
|
8687
|
+
let I = b($), _ = g($, I);
|
|
8688
|
+
if (_ + w > u.height - v && (I++, _ = g($, I)), !m)
|
|
8701
8689
|
throw new Error("[@pdfme/common] schema is undefined");
|
|
8702
|
-
const
|
|
8703
|
-
d[
|
|
8690
|
+
const C = createNode({ schema: m, position: { x: T, y: _ }, width: S, height: w });
|
|
8691
|
+
d[I].insertChild(C);
|
|
8704
8692
|
}
|
|
8705
|
-
return d.forEach((
|
|
8693
|
+
return d.forEach((f) => resortChildren(f, c)), d;
|
|
8706
8694
|
}
|
|
8707
8695
|
function createNewTemplate(a, s) {
|
|
8708
8696
|
const c = {
|
|
@@ -8731,29 +8719,16 @@ function createNewTemplate(a, s) {
|
|
|
8731
8719
|
});
|
|
8732
8720
|
}), c;
|
|
8733
8721
|
}
|
|
8734
|
-
function flattenSchemasWithOffset(a, s) {
|
|
8735
|
-
const c = [], u = /* @__PURE__ */ new Map();
|
|
8736
|
-
let d = 0;
|
|
8737
|
-
const [p, , v] = s.padding, A = (g) => s.height - v - (g > 0 ? p : 0);
|
|
8738
|
-
let x = 0;
|
|
8739
|
-
return a.forEach((g, b) => {
|
|
8740
|
-
b > 0 && (x += A(b - 1)), g.forEach((y) => {
|
|
8741
|
-
const f = cloneDeep$1(y);
|
|
8742
|
-
f.position = { ...f.position, y: f.position.y + x }, c.push(f), u.has(y.name) || u.set(y.name, d++);
|
|
8743
|
-
});
|
|
8744
|
-
}), { flatSchemas: c, orderMap: u };
|
|
8745
|
-
}
|
|
8746
8722
|
const getDynamicTemplate = async (a) => {
|
|
8747
|
-
const { template: s
|
|
8748
|
-
if (!isBlankPdf(
|
|
8723
|
+
const { template: s } = a;
|
|
8724
|
+
if (!isBlankPdf(s.basePdf))
|
|
8749
8725
|
return s;
|
|
8750
|
-
const
|
|
8751
|
-
|
|
8752
|
-
schemaPage: d,
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
return createNewTemplate(A, u);
|
|
8726
|
+
const c = s.basePdf, u = [];
|
|
8727
|
+
for (const d of s.schemas) {
|
|
8728
|
+
const p = new Map(d.map((x, g) => [x.name, g])), v = await createOnePage({ basePdf: c, schemaPage: d, orderMap: p, ...a }), A = breakIntoPages({ longPage: v, basePdf: c, orderMap: p });
|
|
8729
|
+
u.push(...A);
|
|
8730
|
+
}
|
|
8731
|
+
return createNewTemplate(u, s.basePdf);
|
|
8757
8732
|
};
|
|
8758
8733
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", reservedWords = {
|
|
8759
8734
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
@@ -57332,7 +57307,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57332
57307
|
"schemas.table.alternateBackgroundColor": "Alternate Background Color",
|
|
57333
57308
|
"schemas.table.tableStyle": "Table Style",
|
|
57334
57309
|
"schemas.table.showHead": "Show Head",
|
|
57335
|
-
"schemas.table.headerRepeat": "Repeat Header",
|
|
57336
57310
|
"schemas.table.headStyle": "Header Style",
|
|
57337
57311
|
"schemas.table.bodyStyle": "Body Style",
|
|
57338
57312
|
"schemas.table.columnStyle": "Column Style",
|
|
@@ -57409,7 +57383,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57409
57383
|
"schemas.table.alternateBackgroundColor": "交替背景颜色",
|
|
57410
57384
|
"schemas.table.tableStyle": "表格样式",
|
|
57411
57385
|
"schemas.table.showHead": "显示标题",
|
|
57412
|
-
"schemas.table.headerRepeat": "重复标题",
|
|
57413
57386
|
"schemas.table.headStyle": "表头样式",
|
|
57414
57387
|
"schemas.table.bodyStyle": "表体样式",
|
|
57415
57388
|
"schemas.table.columnStyle": "列样式",
|
|
@@ -57486,7 +57459,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57486
57459
|
"schemas.table.alternateBackgroundColor": "交互の背景色",
|
|
57487
57460
|
"schemas.table.tableStyle": "テーブルスタイル",
|
|
57488
57461
|
"schemas.table.showHead": "ヘッダーを表示",
|
|
57489
|
-
"schemas.table.headerRepeat": "ヘッダーを繰り返す",
|
|
57490
57462
|
"schemas.table.headStyle": "ヘッダースタイル",
|
|
57491
57463
|
"schemas.table.bodyStyle": "ボディスタイル",
|
|
57492
57464
|
"schemas.table.columnStyle": "カラムスタイル",
|
|
@@ -57563,7 +57535,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57563
57535
|
"schemas.table.alternateBackgroundColor": "대체 배경색",
|
|
57564
57536
|
"schemas.table.tableStyle": "테이블 스타일",
|
|
57565
57537
|
"schemas.table.showHead": "헤드 표시",
|
|
57566
|
-
"schemas.table.headerRepeat": "헤더 반복",
|
|
57567
57538
|
"schemas.table.headStyle": "헤더 스타일",
|
|
57568
57539
|
"schemas.table.bodyStyle": "본문 스타일",
|
|
57569
57540
|
"schemas.table.columnStyle": "열 스타일",
|
|
@@ -57640,7 +57611,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57640
57611
|
"schemas.table.alternateBackgroundColor": "لون الخلفية البديل",
|
|
57641
57612
|
"schemas.table.tableStyle": "أسلوب الجدول",
|
|
57642
57613
|
"schemas.table.showHead": "إظهار الرأس",
|
|
57643
|
-
"schemas.table.headerRepeat": "تكرار الرأس",
|
|
57644
57614
|
"schemas.table.headStyle": "أسلوب الرأس",
|
|
57645
57615
|
"schemas.table.bodyStyle": "أسلوب الجسم",
|
|
57646
57616
|
"schemas.table.columnStyle": "أسلوب العمود",
|
|
@@ -57718,7 +57688,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57718
57688
|
"schemas.table.tableStyle": "สไตล์ตาราง",
|
|
57719
57689
|
"schemas.table.headStyle": "สไตล์หัวข้อ",
|
|
57720
57690
|
"schemas.table.showHead": "แสดงหัวข้อ",
|
|
57721
|
-
"schemas.table.headerRepeat": "ทำซ้ำหัวข้อ",
|
|
57722
57691
|
"schemas.table.bodyStyle": "สไตล์เนื้อหา",
|
|
57723
57692
|
"schemas.table.columnStyle": "สไตล์คอลัมน์",
|
|
57724
57693
|
"schemas.date.format": "รูปแบบวันที่",
|
|
@@ -57794,7 +57763,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57794
57763
|
"schemas.table.alternateBackgroundColor": "Colore di Sfondo Alternato",
|
|
57795
57764
|
"schemas.table.tableStyle": "Stile della Tabella",
|
|
57796
57765
|
"schemas.table.showHead": "Mostra Intestazione",
|
|
57797
|
-
"schemas.table.headerRepeat": "Ripeti Intestazione",
|
|
57798
57766
|
"schemas.table.headStyle": "Stile dell'Intestazione",
|
|
57799
57767
|
"schemas.table.bodyStyle": "Stile del Corpo",
|
|
57800
57768
|
"schemas.table.columnStyle": "Stile della Colonna",
|
|
@@ -57871,7 +57839,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57871
57839
|
"schemas.table.alternateBackgroundColor": "Alternatywny kolor tła",
|
|
57872
57840
|
"schemas.table.tableStyle": "Styl tabeli",
|
|
57873
57841
|
"schemas.table.showHead": "Pokaż nagłówek",
|
|
57874
|
-
"schemas.table.headerRepeat": "Powtórz nagłówek",
|
|
57875
57842
|
"schemas.table.headStyle": "Styl nagłówka",
|
|
57876
57843
|
"schemas.table.bodyStyle": "Styl ciała",
|
|
57877
57844
|
"schemas.table.columnStyle": "Styl kolumny",
|
|
@@ -57949,7 +57916,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
57949
57916
|
"schemas.table.tableStyle": "Tabellenstil",
|
|
57950
57917
|
"schemas.table.headStyle": "Kopfzeilenstil",
|
|
57951
57918
|
"schemas.table.showHead": "Kopfzeile anzeigen",
|
|
57952
|
-
"schemas.table.headerRepeat": "Kopfzeile wiederholen",
|
|
57953
57919
|
"schemas.table.bodyStyle": "Körperstil",
|
|
57954
57920
|
"schemas.table.columnStyle": "Spaltenstil",
|
|
57955
57921
|
"schemas.date.format": "Datumsformat",
|
|
@@ -58025,7 +57991,6 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
58025
57991
|
"schemas.table.alternateBackgroundColor": "Color de fondo alternativo",
|
|
58026
57992
|
"schemas.table.tableStyle": "Estilo de tabla",
|
|
58027
57993
|
"schemas.table.showHead": "Mostrar encabezado",
|
|
58028
|
-
"schemas.table.headerRepeat": "Repetir encabezado",
|
|
58029
57994
|
"schemas.table.headStyle": "Estilo de cabecera",
|
|
58030
57995
|
"schemas.table.bodyStyle": "Estilo de cuerpo",
|
|
58031
57996
|
"schemas.table.columnStyle": "Estilo de columna",
|
|
@@ -58101,8 +58066,7 @@ const pdf2img = async (a, s = {}) => pdf2img$1(a, s, {
|
|
|
58101
58066
|
"schemas.barcodes.includetext": "Inclure le texte",
|
|
58102
58067
|
"schemas.table.alternateBackgroundColor": "Couleur de fond alternative",
|
|
58103
58068
|
"schemas.table.tableStyle": "Style de tableau",
|
|
58104
|
-
"schemas.table.showHead": "Afficher l
|
|
58105
|
-
"schemas.table.headerRepeat": "Répéter l'en-tête",
|
|
58069
|
+
"schemas.table.showHead": "Afficher l’en-tête",
|
|
58106
58070
|
"schemas.table.headStyle": "Style d'en-tête",
|
|
58107
58071
|
"schemas.table.bodyStyle": "Style de corps",
|
|
58108
58072
|
"schemas.table.columnStyle": "Style de colonne",
|
|
@@ -73254,7 +73218,7 @@ function createSingleTable(a, s) {
|
|
|
73254
73218
|
const y = p.bodyStyles.alternateBackgroundColor;
|
|
73255
73219
|
p.bodyStyles.alternateBackgroundColor = p.bodyStyles.backgroundColor, p.bodyStyles.backgroundColor = y;
|
|
73256
73220
|
}
|
|
73257
|
-
p.showHead = p.showHead === !1 ? !1 : !p.__isSplit
|
|
73221
|
+
p.showHead = p.showHead === !1 ? !1 : !p.__isSplit;
|
|
73258
73222
|
const A = parseInput(p, a), x = c.font || getDefaultFont(), g = getFallbackFontName(x), b = parseContent4Table(A, g);
|
|
73259
73223
|
return Table$2.create({
|
|
73260
73224
|
input: A,
|
|
@@ -73269,29 +73233,8 @@ const DEFAULT_OPACITY = 1, HEX_COLOR_PATTERN = "^#(?:[A-Fa-f0-9]{6})$", getBody$
|
|
|
73269
73233
|
}, getDynamicHeightsForTable$1 = async (a, s) => {
|
|
73270
73234
|
if (s.schema.type !== "table")
|
|
73271
73235
|
return Promise.resolve([s.schema.height]);
|
|
73272
|
-
const c = s.schema, u = c.__bodyRange?.start === 0 ? getBody$1(a) : getBodyWithRange(a, c.__bodyRange), d = await createSingleTable(u, s)
|
|
73273
|
-
|
|
73274
|
-
return p;
|
|
73275
|
-
const x = s.basePdf, [g, , b] = x.padding, y = x.height - g - b, f = (_) => _ * y + g, m = Math.max(0, Math.floor((c.position.y - g) / y)), E = c.showHead ? d.head.length : 0, w = 0.5;
|
|
73276
|
-
let S = m, $ = c.position.y, T = 0;
|
|
73277
|
-
const I = [];
|
|
73278
|
-
for (let _ = 0; _ < p.length; _++) {
|
|
73279
|
-
const C = _ >= E, P = p[_];
|
|
73280
|
-
for (; ; ) {
|
|
73281
|
-
const O = f(S), L = O + y - $, B = C && T === 0 && S > m, F = P + (B ? v : 0);
|
|
73282
|
-
if (F > L - w) {
|
|
73283
|
-
if (T === 0 && Math.abs($ - O) < w) {
|
|
73284
|
-
I.push(F), $ += F, T++;
|
|
73285
|
-
break;
|
|
73286
|
-
}
|
|
73287
|
-
S++, $ = f(S), T = 0;
|
|
73288
|
-
continue;
|
|
73289
|
-
}
|
|
73290
|
-
I.push(F), $ += F, T++, $ >= O + y - w && (S++, $ = f(S), T = 0);
|
|
73291
|
-
break;
|
|
73292
|
-
}
|
|
73293
|
-
}
|
|
73294
|
-
return I;
|
|
73236
|
+
const c = s.schema, u = c.__bodyRange?.start === 0 ? getBody$1(a) : getBodyWithRange(a, c.__bodyRange), d = await createSingleTable(u, s);
|
|
73237
|
+
return c.showHead ? d.allRows().map((p) => p.height) : [0].concat(d.body.map((p) => p.height));
|
|
73295
73238
|
}, convertForPdfLayoutProps = ({ schema: a, pageHeight: s, applyRotateTranslate: c = !0 }) => {
|
|
73296
73239
|
const { width: u, height: d, position: p, rotate: v, opacity: A } = a, { x, y: g } = p, b = v ? -v : 0, y = mm2pt(u), f = mm2pt(d);
|
|
73297
73240
|
let m = mm2pt(x), E = s - mm2pt(g) - f;
|