@flowselections/scan-module 1.0.60 → 1.0.62

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.
@@ -0,0 +1,10 @@
1
+ export interface PrintStatusInvoer {
2
+ /** status_tekst uit print_plek_status_v1; null als die er niet is. */
3
+ statusTekst: string | null;
4
+ /** null = stand onbekend. */
5
+ klaar: boolean | null;
6
+ reden: string | null;
7
+ }
8
+ /** Tekst voor de statusregel; null betekent: geen regel tonen. */
9
+ export declare function kiesPrintStatusTekst({ statusTekst, klaar, reden }: PrintStatusInvoer): string | null;
10
+ //# sourceMappingURL=printStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"printStatus.d.ts","sourceRoot":"","sources":["../../src/lib/printStatus.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,6BAA6B;IAC7B,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAMpG"}
@@ -0,0 +1,18 @@
1
+ // ============================================================================
2
+ // src/lib/printStatus.ts — statusregel van het blok Printen
3
+ // ============================================================================
4
+ // De Layout-maker levert status_tekst via print_plek_status_v1 (bijv.
5
+ // "Label Printer staat uit"). Die tekst is leidend. Ontbreekt status_tekst,
6
+ // dan valt Scan terug op de eigen tekst die het eerder ook toonde.
7
+ // ============================================================================
8
+ /** Tekst voor de statusregel; null betekent: geen regel tonen. */
9
+ export function kiesPrintStatusTekst({ statusTekst, klaar, reden }) {
10
+ const makers = typeof statusTekst === "string" ? statusTekst.trim() : "";
11
+ if (makers)
12
+ return makers;
13
+ if (klaar === true)
14
+ return "Klaar om te printen";
15
+ if (klaar === false)
16
+ return reden ?? "Deze plek kan nu niet printen. Kijk bij Printen › Printplekken.";
17
+ return null;
18
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@flowselections/scan-module",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "flowselections": {
5
5
  "moduleId": "scan-module",
6
6
  "requires": {
7
- "@flowselections/layout-maker": ">=1.69.54"
7
+ "@flowselections/layout-maker": ">=1.69.62"
8
8
  },
9
9
  "pages": [
10
10
  {