@flowselections/layout-maker 1.67.1 → 1.68.1
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/LayoutsPage.d.ts.map +1 -1
- package/dist-lib/components/LayoutsPage.js +2 -2
- package/dist-lib/integrations/supabase/types.d.ts +60 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/printService.functions.d.ts +3 -2
- package/dist-lib/lib/printService.functions.d.ts.map +1 -1
- package/dist-lib/lib/printService.functions.js +9 -5
- package/dist-lib/lib/standaardLayouts.server.d.ts +19 -0
- package/dist-lib/lib/standaardLayouts.server.d.ts.map +1 -1
- package/dist-lib/lib/standaardLayouts.server.js +44 -1
- package/dist-lib/lib/standaardenBron.d.ts +15 -0
- package/dist-lib/lib/standaardenBron.d.ts.map +1 -0
- package/dist-lib/lib/standaardenBron.js +256 -0
- package/dist-lib/lib/useDocumentData.d.ts +2 -0
- package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
- package/dist-lib/lib/useDocumentData.js +6 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutsPage.d.ts","sourceRoot":"","sources":["../../src/components/LayoutsPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutsPage.d.ts","sourceRoot":"","sources":["../../src/components/LayoutsPage.tsx"],"names":[],"mappings":"AAkFA,wBAAgB,WAAW,CAAC,EAAE,OAAe,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,+BAipB1E"}
|
|
@@ -10,7 +10,7 @@ import { supabase as moduleDb } from "../lib/supabaseClient.js";
|
|
|
10
10
|
import { maakStandaardLayout } from "../lib/useDocumentData.js";
|
|
11
11
|
import { ontbrekendeStandaarden, soortenZonderKeuze } from "../lib/klaarOmTePrinten.js";
|
|
12
12
|
import { documentTypeLabel as soortLabel } from "../lib/documentTypes.js";
|
|
13
|
-
import { dupliceerLayout, maakLayout, updateLayout, useLayouts, verwijderLayout, } from "../lib/useDocumentData.js";
|
|
13
|
+
import { dupliceerLayout, maakLayout, updateLayout, useLayouts, laatsteLayoutBeheerMelding, verwijderLayout, } from "../lib/useDocumentData.js";
|
|
14
14
|
import { LayoutPrinterSelect } from "./LayoutPrinterSelect.js";
|
|
15
15
|
import { DOCUMENT_TYPES, FLORIDAY_LAYOUT_TOELICHTING, PAPIERFORMATEN, documentTypeLabel, isFloridayLayout, } from "../lib/documentTypes.js";
|
|
16
16
|
import { DOCUMENT_PROFIELEN, documentProfiel, primaireProfielen, standaardConfig, } from "../lib/documentProfiles.js";
|
|
@@ -167,7 +167,7 @@ export function LayoutsPage({ ingebed = false } = {}) {
|
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
const Wrapper = ingebed ? "div" : "main";
|
|
170
|
-
return (_jsxs(Wrapper, { className: ingebed ? "space-y-6" : "p-6 space-y-6", children: [_jsxs("div", { className: "flex flex-wrap items-end justify-between gap-4", children: [!ingebed && (_jsxs("div", { children: [_jsx("h1", { className: "text-xl font-semibold", children: "Documentlayouts" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Ontwerp pakbonnen, facturen, etiketten en alle andere documenten." })] })), _jsx("div", { className: "ml-auto flex gap-2", children: _jsxs(Button, { onClick: () => setWizardOpen(true), children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), " Nieuwe layout"] }) })] }), ontbrekendeStandaarden(layouts).map((o) => (_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm", children: [_jsxs("span", { children: ["Geen standaardlayout voor ", soortLabel(o.soort), " \u2013 maak deze standaard: ", _jsx("strong", { children: o.naam || "naamloos" })] }), _jsx(Button, { size: "sm", onClick: async () => {
|
|
170
|
+
return (_jsxs(Wrapper, { className: ingebed ? "space-y-6" : "p-6 space-y-6", children: [_jsxs("div", { className: "flex flex-wrap items-end justify-between gap-4", children: [!ingebed && (_jsxs("div", { children: [_jsx("h1", { className: "text-xl font-semibold", children: "Documentlayouts" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Ontwerp pakbonnen, facturen, etiketten en alle andere documenten." })] })), _jsx("div", { className: "ml-auto flex gap-2", children: _jsxs(Button, { onClick: () => setWizardOpen(true), children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), " Nieuwe layout"] }) })] }), !loading && laatsteLayoutBeheerMelding() && (_jsxs("details", { className: "rounded-md border border-border bg-muted/40 px-3 py-2 text-xs text-muted-foreground", children: [_jsx("summary", { className: "cursor-pointer", children: "Details voor beheer" }), _jsx("p", { className: "mt-2", children: laatsteLayoutBeheerMelding() })] })), ontbrekendeStandaarden(layouts).map((o) => (_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm", children: [_jsxs("span", { children: ["Geen standaardlayout voor ", soortLabel(o.soort), " \u2013 maak deze standaard: ", _jsx("strong", { children: o.naam || "naamloos" })] }), _jsx(Button, { size: "sm", onClick: async () => {
|
|
171
171
|
try {
|
|
172
172
|
await maakStandaardLayout(o.layoutId);
|
|
173
173
|
toast.success(`${o.naam || "Layout"} is nu de standaard voor ${soortLabel(o.soort)}`);
|
|
@@ -24640,6 +24640,9 @@ export type Database = {
|
|
|
24640
24640
|
superseded_at: string | null;
|
|
24641
24641
|
updated_at: string;
|
|
24642
24642
|
user_id: string;
|
|
24643
|
+
write_enabled: boolean;
|
|
24644
|
+
write_enabled_at: string | null;
|
|
24645
|
+
write_enabled_by: string | null;
|
|
24643
24646
|
};
|
|
24644
24647
|
Insert: {
|
|
24645
24648
|
account_key?: string | null;
|
|
@@ -24666,6 +24669,9 @@ export type Database = {
|
|
|
24666
24669
|
superseded_at?: string | null;
|
|
24667
24670
|
updated_at?: string;
|
|
24668
24671
|
user_id: string;
|
|
24672
|
+
write_enabled?: boolean;
|
|
24673
|
+
write_enabled_at?: string | null;
|
|
24674
|
+
write_enabled_by?: string | null;
|
|
24669
24675
|
};
|
|
24670
24676
|
Update: {
|
|
24671
24677
|
account_key?: string | null;
|
|
@@ -24692,6 +24698,9 @@ export type Database = {
|
|
|
24692
24698
|
superseded_at?: string | null;
|
|
24693
24699
|
updated_at?: string;
|
|
24694
24700
|
user_id?: string;
|
|
24701
|
+
write_enabled?: boolean;
|
|
24702
|
+
write_enabled_at?: string | null;
|
|
24703
|
+
write_enabled_by?: string | null;
|
|
24695
24704
|
};
|
|
24696
24705
|
Relationships: [];
|
|
24697
24706
|
};
|
|
@@ -31871,10 +31880,25 @@ export type Database = {
|
|
|
31871
31880
|
};
|
|
31872
31881
|
Returns: boolean;
|
|
31873
31882
|
};
|
|
31883
|
+
klanten_auto_promote_status: {
|
|
31884
|
+
Args: never;
|
|
31885
|
+
Returns: Json;
|
|
31886
|
+
};
|
|
31874
31887
|
klanten_install_check: {
|
|
31875
31888
|
Args: never;
|
|
31876
31889
|
Returns: Json;
|
|
31877
31890
|
};
|
|
31891
|
+
klanten_promote_round: {
|
|
31892
|
+
Args: never;
|
|
31893
|
+
Returns: Json;
|
|
31894
|
+
};
|
|
31895
|
+
klanten_set_auto_promote: {
|
|
31896
|
+
Args: {
|
|
31897
|
+
p_kind: string;
|
|
31898
|
+
p_on: boolean;
|
|
31899
|
+
};
|
|
31900
|
+
Returns: Json;
|
|
31901
|
+
};
|
|
31878
31902
|
layout_print_document: {
|
|
31879
31903
|
Args: {
|
|
31880
31904
|
_documentnaam: string;
|
|
@@ -37896,6 +37920,12 @@ export type Database = {
|
|
|
37896
37920
|
};
|
|
37897
37921
|
Returns: boolean;
|
|
37898
37922
|
};
|
|
37923
|
+
twinfield_cancel_queue_item: {
|
|
37924
|
+
Args: {
|
|
37925
|
+
p_id: string;
|
|
37926
|
+
};
|
|
37927
|
+
Returns: boolean;
|
|
37928
|
+
};
|
|
37899
37929
|
twinfield_connection_offices: {
|
|
37900
37930
|
Args: never;
|
|
37901
37931
|
Returns: {
|
|
@@ -37925,6 +37955,19 @@ export type Database = {
|
|
|
37925
37955
|
};
|
|
37926
37956
|
Returns: Json;
|
|
37927
37957
|
};
|
|
37958
|
+
twinfield_gated_queue: {
|
|
37959
|
+
Args: {
|
|
37960
|
+
p_connection_id: string;
|
|
37961
|
+
};
|
|
37962
|
+
Returns: {
|
|
37963
|
+
action: string;
|
|
37964
|
+
created_at: string;
|
|
37965
|
+
customer_id: string;
|
|
37966
|
+
id: string;
|
|
37967
|
+
payload: Json;
|
|
37968
|
+
status: string;
|
|
37969
|
+
}[];
|
|
37970
|
+
};
|
|
37928
37971
|
twinfield_handle_administration_change: {
|
|
37929
37972
|
Args: {
|
|
37930
37973
|
_administration_code: string;
|
|
@@ -37932,6 +37975,10 @@ export type Database = {
|
|
|
37932
37975
|
};
|
|
37933
37976
|
Returns: undefined;
|
|
37934
37977
|
};
|
|
37978
|
+
twinfield_is_admin: {
|
|
37979
|
+
Args: never;
|
|
37980
|
+
Returns: boolean;
|
|
37981
|
+
};
|
|
37935
37982
|
twinfield_prune_push_queue: {
|
|
37936
37983
|
Args: never;
|
|
37937
37984
|
Returns: number;
|
|
@@ -37943,6 +37990,13 @@ export type Database = {
|
|
|
37943
37990
|
};
|
|
37944
37991
|
Returns: Json;
|
|
37945
37992
|
};
|
|
37993
|
+
twinfield_set_write_enabled: {
|
|
37994
|
+
Args: {
|
|
37995
|
+
p_connection_id: string;
|
|
37996
|
+
p_enabled: boolean;
|
|
37997
|
+
};
|
|
37998
|
+
Returns: Json;
|
|
37999
|
+
};
|
|
37946
38000
|
twinfield_sync_apply: {
|
|
37947
38001
|
Args: {
|
|
37948
38002
|
_base: Json;
|
|
@@ -37979,6 +38033,12 @@ export type Database = {
|
|
|
37979
38033
|
};
|
|
37980
38034
|
Returns: Json;
|
|
37981
38035
|
};
|
|
38036
|
+
twinfield_write_allowed: {
|
|
38037
|
+
Args: {
|
|
38038
|
+
p_connection_id: string;
|
|
38039
|
+
};
|
|
38040
|
+
Returns: boolean;
|
|
38041
|
+
};
|
|
37982
38042
|
upsert_auto_fulfillment_log: {
|
|
37983
38043
|
Args: {
|
|
37984
38044
|
p_connection_id: string;
|