@flowselections/layout-maker 1.66.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.
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutsPage.d.ts","sourceRoot":"","sources":["../../src/components/LayoutsPage.tsx"],"names":[],"mappings":"AAiFA,wBAAgB,WAAW,CAAC,EAAE,OAAe,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,+BA2oB1E"}
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)}`);
@@ -606,24 +606,36 @@ export type Database = {
606
606
  ai_modules: {
607
607
  Row: {
608
608
  ai_enabled: boolean;
609
+ ai_source: string;
609
610
  created_at: string;
611
+ declared_ai: boolean;
610
612
  id: string;
613
+ is_in_use: boolean;
614
+ last_declared_at: string | null;
611
615
  module_key: string;
612
616
  module_name: string;
613
617
  updated_at: string;
614
618
  };
615
619
  Insert: {
616
620
  ai_enabled?: boolean;
621
+ ai_source?: string;
617
622
  created_at?: string;
623
+ declared_ai?: boolean;
618
624
  id?: string;
625
+ is_in_use?: boolean;
626
+ last_declared_at?: string | null;
619
627
  module_key: string;
620
628
  module_name: string;
621
629
  updated_at?: string;
622
630
  };
623
631
  Update: {
624
632
  ai_enabled?: boolean;
633
+ ai_source?: string;
625
634
  created_at?: string;
635
+ declared_ai?: boolean;
626
636
  id?: string;
637
+ is_in_use?: boolean;
638
+ last_declared_at?: string | null;
627
639
  module_key?: string;
628
640
  module_name?: string;
629
641
  updated_at?: string;
@@ -15687,7 +15699,7 @@ export type Database = {
15687
15699
  name: string;
15688
15700
  produced_stock: number;
15689
15701
  product_code: string;
15690
- tenant_id: string;
15702
+ tenant_id: string | null;
15691
15703
  updated_at: string;
15692
15704
  };
15693
15705
  Insert: {
@@ -15698,7 +15710,7 @@ export type Database = {
15698
15710
  name: string;
15699
15711
  produced_stock?: number;
15700
15712
  product_code: string;
15701
- tenant_id: string;
15713
+ tenant_id?: string | null;
15702
15714
  updated_at?: string;
15703
15715
  };
15704
15716
  Update: {
@@ -15709,7 +15721,7 @@ export type Database = {
15709
15721
  name?: string;
15710
15722
  produced_stock?: number;
15711
15723
  product_code?: string;
15712
- tenant_id?: string;
15724
+ tenant_id?: string | null;
15713
15725
  updated_at?: string;
15714
15726
  };
15715
15727
  Relationships: [];
@@ -17504,6 +17516,7 @@ export type Database = {
17504
17516
  created_at: string;
17505
17517
  id: string;
17506
17518
  layers_per_cart: number | null;
17519
+ needs_sticker: boolean;
17507
17520
  order_id: string;
17508
17521
  packing_locked_at: string | null;
17509
17522
  packing_locked_by: string | null;
@@ -17523,6 +17536,7 @@ export type Database = {
17523
17536
  created_at?: string;
17524
17537
  id?: string;
17525
17538
  layers_per_cart?: number | null;
17539
+ needs_sticker?: boolean;
17526
17540
  order_id: string;
17527
17541
  packing_locked_at?: string | null;
17528
17542
  packing_locked_by?: string | null;
@@ -17542,6 +17556,7 @@ export type Database = {
17542
17556
  created_at?: string;
17543
17557
  id?: string;
17544
17558
  layers_per_cart?: number | null;
17559
+ needs_sticker?: boolean;
17545
17560
  order_id?: string;
17546
17561
  packing_locked_at?: string | null;
17547
17562
  packing_locked_by?: string | null;
@@ -20998,7 +21013,7 @@ export type Database = {
20998
21013
  parent_trade_item_floriday_id: string | null;
20999
21014
  quantity: number;
21000
21015
  sort_order: number;
21001
- tenant_id: string;
21016
+ tenant_id: string | null;
21002
21017
  unit: string;
21003
21018
  updated_at: string;
21004
21019
  };
@@ -21011,7 +21026,7 @@ export type Database = {
21011
21026
  parent_trade_item_floriday_id?: string | null;
21012
21027
  quantity?: number;
21013
21028
  sort_order?: number;
21014
- tenant_id: string;
21029
+ tenant_id?: string | null;
21015
21030
  unit?: string;
21016
21031
  updated_at?: string;
21017
21032
  };
@@ -21024,7 +21039,7 @@ export type Database = {
21024
21039
  parent_trade_item_floriday_id?: string | null;
21025
21040
  quantity?: number;
21026
21041
  sort_order?: number;
21027
- tenant_id?: string;
21042
+ tenant_id?: string | null;
21028
21043
  unit?: string;
21029
21044
  updated_at?: string;
21030
21045
  };
@@ -21057,7 +21072,7 @@ export type Database = {
21057
21072
  parent_trade_item_floriday_id: string | null;
21058
21073
  quantity: number;
21059
21074
  sort_order: number;
21060
- tenant_id: string;
21075
+ tenant_id: string | null;
21061
21076
  unit: string;
21062
21077
  updated_at: string;
21063
21078
  };
@@ -21072,7 +21087,7 @@ export type Database = {
21072
21087
  parent_trade_item_floriday_id?: string | null;
21073
21088
  quantity?: number;
21074
21089
  sort_order?: number;
21075
- tenant_id: string;
21090
+ tenant_id?: string | null;
21076
21091
  unit?: string;
21077
21092
  updated_at?: string;
21078
21093
  };
@@ -21087,7 +21102,7 @@ export type Database = {
21087
21102
  parent_trade_item_floriday_id?: string | null;
21088
21103
  quantity?: number;
21089
21104
  sort_order?: number;
21090
- tenant_id?: string;
21105
+ tenant_id?: string | null;
21091
21106
  unit?: string;
21092
21107
  updated_at?: string;
21093
21108
  };
@@ -21267,7 +21282,7 @@ export type Database = {
21267
21282
  id: string;
21268
21283
  is_active: boolean;
21269
21284
  name: string;
21270
- tenant_id: string;
21285
+ tenant_id: string | null;
21271
21286
  updated_at: string;
21272
21287
  };
21273
21288
  Insert: {
@@ -21278,7 +21293,7 @@ export type Database = {
21278
21293
  id?: string;
21279
21294
  is_active?: boolean;
21280
21295
  name: string;
21281
- tenant_id: string;
21296
+ tenant_id?: string | null;
21282
21297
  updated_at?: string;
21283
21298
  };
21284
21299
  Update: {
@@ -21289,7 +21304,7 @@ export type Database = {
21289
21304
  id?: string;
21290
21305
  is_active?: boolean;
21291
21306
  name?: string;
21292
- tenant_id?: string;
21307
+ tenant_id?: string | null;
21293
21308
  updated_at?: string;
21294
21309
  };
21295
21310
  Relationships: [
@@ -21324,7 +21339,7 @@ export type Database = {
21324
21339
  packages_per_layer: number | null;
21325
21340
  packing_configuration_id: string;
21326
21341
  product_id: string | null;
21327
- tenant_id: string;
21342
+ tenant_id: string | null;
21328
21343
  trade_item_floriday_id: string | null;
21329
21344
  units_per_package: number | null;
21330
21345
  updated_at: string;
@@ -21343,7 +21358,7 @@ export type Database = {
21343
21358
  packages_per_layer?: number | null;
21344
21359
  packing_configuration_id?: string;
21345
21360
  product_id?: string | null;
21346
- tenant_id: string;
21361
+ tenant_id?: string | null;
21347
21362
  trade_item_floriday_id?: string | null;
21348
21363
  units_per_package?: number | null;
21349
21364
  updated_at?: string;
@@ -21362,7 +21377,7 @@ export type Database = {
21362
21377
  packages_per_layer?: number | null;
21363
21378
  packing_configuration_id?: string;
21364
21379
  product_id?: string | null;
21365
- tenant_id?: string;
21380
+ tenant_id?: string | null;
21366
21381
  trade_item_floriday_id?: string | null;
21367
21382
  units_per_package?: number | null;
21368
21383
  updated_at?: string;
@@ -24625,6 +24640,9 @@ export type Database = {
24625
24640
  superseded_at: string | null;
24626
24641
  updated_at: string;
24627
24642
  user_id: string;
24643
+ write_enabled: boolean;
24644
+ write_enabled_at: string | null;
24645
+ write_enabled_by: string | null;
24628
24646
  };
24629
24647
  Insert: {
24630
24648
  account_key?: string | null;
@@ -24651,6 +24669,9 @@ export type Database = {
24651
24669
  superseded_at?: string | null;
24652
24670
  updated_at?: string;
24653
24671
  user_id: string;
24672
+ write_enabled?: boolean;
24673
+ write_enabled_at?: string | null;
24674
+ write_enabled_by?: string | null;
24654
24675
  };
24655
24676
  Update: {
24656
24677
  account_key?: string | null;
@@ -24677,6 +24698,9 @@ export type Database = {
24677
24698
  superseded_at?: string | null;
24678
24699
  updated_at?: string;
24679
24700
  user_id?: string;
24701
+ write_enabled?: boolean;
24702
+ write_enabled_at?: string | null;
24703
+ write_enabled_by?: string | null;
24680
24704
  };
24681
24705
  Relationships: [];
24682
24706
  };
@@ -29681,6 +29705,26 @@ export type Database = {
29681
29705
  Args: never;
29682
29706
  Returns: Json;
29683
29707
  };
29708
+ ai_is_admin: {
29709
+ Args: {
29710
+ _uid: string;
29711
+ };
29712
+ Returns: boolean;
29713
+ };
29714
+ ai_register_consumers: {
29715
+ Args: {
29716
+ _full_list?: boolean;
29717
+ _modules: Json;
29718
+ _source?: string;
29719
+ };
29720
+ Returns: Json;
29721
+ };
29722
+ ai_register_runtime_consumer: {
29723
+ Args: {
29724
+ _module_key: string;
29725
+ };
29726
+ Returns: boolean;
29727
+ };
29684
29728
  ai_usage_by_module: {
29685
29729
  Args: {
29686
29730
  _from: string;
@@ -31836,10 +31880,25 @@ export type Database = {
31836
31880
  };
31837
31881
  Returns: boolean;
31838
31882
  };
31883
+ klanten_auto_promote_status: {
31884
+ Args: never;
31885
+ Returns: Json;
31886
+ };
31839
31887
  klanten_install_check: {
31840
31888
  Args: never;
31841
31889
  Returns: Json;
31842
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
+ };
31843
31902
  layout_print_document: {
31844
31903
  Args: {
31845
31904
  _documentnaam: string;
@@ -36605,6 +36664,17 @@ export type Database = {
36605
36664
  };
36606
36665
  Returns: string;
36607
36666
  };
36667
+ productontwerp_can_write: {
36668
+ Args: never;
36669
+ Returns: boolean;
36670
+ };
36671
+ productontwerp_create_missing_products: {
36672
+ Args: {
36673
+ p_items: Json;
36674
+ p_run_id: string;
36675
+ };
36676
+ Returns: Json;
36677
+ };
36608
36678
  productontwerp_export: {
36609
36679
  Args: never;
36610
36680
  Returns: Json;
@@ -36616,12 +36686,38 @@ export type Database = {
36616
36686
  };
36617
36687
  Returns: Json;
36618
36688
  };
36689
+ productontwerp_nl_error: {
36690
+ Args: {
36691
+ p_detail: string;
36692
+ p_msg: string;
36693
+ p_state: string;
36694
+ };
36695
+ Returns: string;
36696
+ };
36619
36697
  productontwerp_product_ref: {
36620
36698
  Args: {
36621
36699
  p_id: string;
36622
36700
  };
36623
36701
  Returns: Json;
36624
36702
  };
36703
+ productontwerp_queue_count: {
36704
+ Args: never;
36705
+ Returns: number;
36706
+ };
36707
+ productontwerp_rollback_created_products: {
36708
+ Args: {
36709
+ p_run_id: string;
36710
+ };
36711
+ Returns: Json;
36712
+ };
36713
+ productontwerp_unique_group_name: {
36714
+ Args: {
36715
+ p_article: string;
36716
+ p_base: string;
36717
+ p_used: string[];
36718
+ };
36719
+ Returns: string;
36720
+ };
36625
36721
  promote_floriday_customer: {
36626
36722
  Args: {
36627
36723
  _org_id: string;
@@ -37824,6 +37920,12 @@ export type Database = {
37824
37920
  };
37825
37921
  Returns: boolean;
37826
37922
  };
37923
+ twinfield_cancel_queue_item: {
37924
+ Args: {
37925
+ p_id: string;
37926
+ };
37927
+ Returns: boolean;
37928
+ };
37827
37929
  twinfield_connection_offices: {
37828
37930
  Args: never;
37829
37931
  Returns: {
@@ -37853,6 +37955,19 @@ export type Database = {
37853
37955
  };
37854
37956
  Returns: Json;
37855
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
+ };
37856
37971
  twinfield_handle_administration_change: {
37857
37972
  Args: {
37858
37973
  _administration_code: string;
@@ -37860,6 +37975,10 @@ export type Database = {
37860
37975
  };
37861
37976
  Returns: undefined;
37862
37977
  };
37978
+ twinfield_is_admin: {
37979
+ Args: never;
37980
+ Returns: boolean;
37981
+ };
37863
37982
  twinfield_prune_push_queue: {
37864
37983
  Args: never;
37865
37984
  Returns: number;
@@ -37871,6 +37990,13 @@ export type Database = {
37871
37990
  };
37872
37991
  Returns: Json;
37873
37992
  };
37993
+ twinfield_set_write_enabled: {
37994
+ Args: {
37995
+ p_connection_id: string;
37996
+ p_enabled: boolean;
37997
+ };
37998
+ Returns: Json;
37999
+ };
37874
38000
  twinfield_sync_apply: {
37875
38001
  Args: {
37876
38002
  _base: Json;
@@ -37907,6 +38033,12 @@ export type Database = {
37907
38033
  };
37908
38034
  Returns: Json;
37909
38035
  };
38036
+ twinfield_write_allowed: {
38037
+ Args: {
38038
+ p_connection_id: string;
38039
+ };
38040
+ Returns: boolean;
38041
+ };
37910
38042
  upsert_auto_fulfillment_log: {
37911
38043
  Args: {
37912
38044
  p_connection_id: string;