@flowselections/layout-maker 1.69.44 → 1.69.45
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/components/PakbonPreview.d.ts.map +1 -1
- package/dist-lib/components/PakbonPreview.js +7 -1
- package/dist-lib/integrations/supabase/types.d.ts +4485 -134
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/levering.d.ts +35 -0
- package/dist-lib/lib/levering.d.ts.map +1 -0
- package/dist-lib/lib/levering.js +68 -0
- package/dist-lib/lib/orderData.server.d.ts +11 -0
- package/dist-lib/lib/orderData.server.d.ts.map +1 -1
- package/dist-lib/lib/orderData.server.js +76 -0
- package/dist-lib/lib/pakbonContent.d.ts.map +1 -1
- package/dist-lib/lib/pakbonContent.js +12 -0
- package/dist-lib/lib/pakbonHtml.d.ts +3 -0
- package/dist-lib/lib/pakbonHtml.d.ts.map +1 -1
- package/dist-lib/lib/pakbonHtml.js +16 -1
- package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
- package/dist-lib/lib/printQueue.server.js +22 -2
- package/dist-lib/lib/profielHtml.d.ts.map +1 -1
- package/dist-lib/lib/profielHtml.js +35 -1
- package/dist-lib/lib/versie.generated.d.ts +1 -1
- package/dist-lib/lib/versie.generated.js +1 -1
- package/package.json +1 -1
- package/sql/print-schema.sql +1 -1
- package/sql/print-schema.verslag.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PakbonPreview.d.ts","sourceRoot":"","sources":["../../src/components/PakbonPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PakbonPreview.d.ts","sourceRoot":"","sources":["../../src/components/PakbonPreview.tsx"],"names":[],"mappings":"AAMA,OAAO,EA8BL,KAAK,YAAY,EAEjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,sBAAsB,CAAC;AA6B9B,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,SAAe,EACf,QAAc,EACd,OAAc,GACf,EAAE;IACD,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oFAAoF;IACpF,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACtC,+BAiJA;AAiLD,oEAAoE;AACpE,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAmCA"}
|
|
@@ -4,6 +4,7 @@ import { PaginaDocument } from "./PaginaDocument.js";
|
|
|
4
4
|
import { useLogos } from "../lib/logoLibrary.js";
|
|
5
5
|
import { code128Bars } from "../lib/code128.js";
|
|
6
6
|
import { karMetadata } from "../lib/pakbonPresentation.js";
|
|
7
|
+
import { ADRES_KLANT_TEKST, adresRegels, afhaalBlok } from "../lib/levering.js";
|
|
7
8
|
import { DEMO_ORDER, deelkarVoorbeeldOrder, conditieContext, groepeerIdentiekeKarren, groepeerIdentiekeLagen, karBundelTekst, fustVerzamellijst, fustRegels, FUSTREGEL_LABELS, FUSTREGEL_RECHTS, pickMethode, pakbonLayoutVariant, productVeldBreedtes, onderdeelCellen, onderdeelVelden, samenstellingTonen, voegProductSamen, sectieOnderdruktVoorVariant, karKopNummer, kolomLabel, laagBundelTekst, sectieZichtbaar, sorteerProducten, totalen, vulVeldcodes, } from "../lib/pakbonBuilder.js";
|
|
8
9
|
/** Voorbeeldbarcode: alleen bedoeld om de plek en hoogte te tonen. */
|
|
9
10
|
function BarcodeStrepen({ waarde, hoogteMm = 15 }) {
|
|
@@ -201,7 +202,12 @@ function SectieView({ sectie, order, zoek, }) {
|
|
|
201
202
|
case "afleveradres":
|
|
202
203
|
case "factuuradres": {
|
|
203
204
|
const a = s.type === "afleveradres" ? order.afleveradres : order.factuuradres;
|
|
204
|
-
|
|
205
|
+
const afhalen = s.type === "afleveradres" ? afhaalBlok(order, a, opt(s, "toonLand", true)) : null;
|
|
206
|
+
if (afhalen) {
|
|
207
|
+
return (_jsxs(Blok, { titel: s.titel, children: [_jsx("div", { className: "font-semibold", children: afhalen.kop }), afhalen.ophaalmoment && _jsx("div", { children: afhalen.ophaalmoment }), afhalen.adresKlant.length > 0 && (_jsxs("div", { className: "pt-1 text-[0.85em] text-muted-foreground", children: [_jsx("div", { children: ADRES_KLANT_TEKST }), afhalen.adresKlant.map((r, i) => (_jsx("div", { children: r }, i)))] }))] }));
|
|
208
|
+
}
|
|
209
|
+
const regels = adresRegels({ naam: a.naam, adres: a.adres, plaats: a.plaats, land: a.land }, opt(s, "toonLand", true));
|
|
210
|
+
return (_jsx(Blok, { titel: s.titel, children: regels.map((r, i) => (_jsx("div", { className: i === 0 && r === String(a.naam ?? "").trim() ? "font-semibold" : undefined, children: r }, i))) }));
|
|
205
211
|
}
|
|
206
212
|
case "orderinformatie":
|
|
207
213
|
return (_jsx(Blok, { titel: s.titel, children: _jsxs("div", { className: "grid grid-cols-2 gap-x-4", children: [opt(s, "toonOrdernummer", true) && _jsx(Rij, { label: "Ordernummer", waarde: order.order.nummer }), opt(s, "toonDatum", true) && _jsx(Rij, { label: "Orderdatum", waarde: order.order.datum }), opt(s, "toonLeverdatum", true) && _jsx(Rij, { label: "Leverdatum", waarde: order.order.leverdatum }), opt(s, "toonReferentie", true) && _jsx(Rij, { label: "Referentie", waarde: order.order.referentie })] }) }));
|