@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.
@@ -1 +1 @@
1
- {"version":3,"file":"PakbonPreview.d.ts","sourceRoot":"","sources":["../../src/components/PakbonPreview.tsx"],"names":[],"mappings":"AAKA,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"}
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
- return (_jsxs(Blok, { titel: s.titel, children: [_jsx("div", { className: "font-semibold", children: a.naam }), _jsx("div", { children: a.adres }), _jsx("div", { children: a.plaats }), opt(s, "toonLand", true) && _jsx("div", { children: a.land })] }));
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 })] }) }));