@flowselections/floriday-afhandeling-module 1.0.35 → 1.0.36
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.
|
@@ -67,5 +67,5 @@ function VervoerdersLijst() {
|
|
|
67
67
|
[ids[index], ids[target]] = [ids[target], ids[index]];
|
|
68
68
|
reorderMutation.mutate(ids);
|
|
69
69
|
};
|
|
70
|
-
return (_jsxs("div", { className: "p-6 space-y-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("h1", { className: "text-2xl font-semibold", children: "Vervoerders" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Beheer vervoerders en hun verzendtarieven per land." })] }), _jsx(Button, { asChild: true, children: _jsxs(Link, { to: "/afhandeling/vervoerders/nieuw", children: [_jsx(Plus, { className: "w-4 h-4 mr-1" }), "Vervoerder toevoegen"] }) })] }), _jsx("div", { className: "border rounded-md bg-card", children: isLoading ? (_jsx("div", { className: "p-12 text-center text-muted-foreground", children: "Laden..." })) : error ? (_jsxs("div", { className: "p-12 text-center space-y-3", children: [_jsxs("div", { className: "text-destructive", children: ["Fout bij laden: ", error.message] }), _jsx(Button, { variant: "outline", onClick: () => refetch(), children: "Opnieuw proberen" })] })) : carriers.length === 0 ? (_jsxs("div", { className: "p-12 text-center space-y-3", children: [_jsx(Truck, { className: "w-10 h-10 mx-auto text-muted-foreground" }), _jsx("div", { className: "font-medium", children: "Nog geen vervoerders" }), _jsx("div", { className: "text-sm text-muted-foreground", children: "Voeg een vervoerder toe om verzendtarieven in te stellen." }), _jsx(Button, { asChild: true, children: _jsxs(Link, { to: "/afhandeling/vervoerders/nieuw", children: [_jsx(Plus, { className: "w-4 h-4 mr-1" }), "Vervoerder toevoegen"] }) })] })) : (_jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { className: "w-32", children: "Prioriteit" }), _jsx(TableHead, { children: "Bedrijfsnaam" }), _jsx(TableHead, { children: "Contactpersoon" }), _jsx(TableHead, { children: "E-mail" }), _jsx(TableHead, { children: "Telefoon" }), _jsx(TableHead, { children: "Levertijd" }), _jsx(TableHead, { children: "Landen" }), _jsx(TableHead, { className: "text-right", children: "Acties" })] }) }), _jsx(TableBody, { children: carriers.map((c, index) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: _jsxs("div", { className: "flex items-center gap-1", children: [_jsx("span", { className: "w-6 text-sm font-medium tabular-nums text-muted-foreground", children: index + 1 }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => move(index, -1), disabled: index === 0 || reorderMutation.isPending, "aria-label": "Hoger", children: _jsx(ArrowUp, { className: "w-4 h-4" }) }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => move(index, 1), disabled: index === carriers.length - 1 || reorderMutation.isPending, "aria-label": "Lager", children: _jsx(ArrowDown, { className: "w-4 h-4" }) })] }) }), _jsx(TableCell, { className: "font-medium", children: c.name }), _jsx(TableCell, { children: c.contact_person ?? "—" }), _jsx(TableCell, { children: c.email ?? "—" }), _jsx(TableCell, { children: c.phone ?? "—" }), _jsxs(TableCell, { children: [carrierLeadDaysFromMoments(c.pickup_moments), " werkdagen"] }), _jsx(TableCell, { children: c.rate_count }), _jsx(TableCell, { className: "text-right", children: _jsxs("div", { className: "flex justify-end gap-1", children: [_jsx(Button, { asChild: true, variant: "ghost", size: "sm", children: _jsx(Link, { to: "/afhandeling/vervoerders",
|
|
70
|
+
return (_jsxs("div", { className: "p-6 space-y-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("h1", { className: "text-2xl font-semibold", children: "Vervoerders" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Beheer vervoerders en hun verzendtarieven per land." })] }), _jsx(Button, { asChild: true, children: _jsxs(Link, { to: "/afhandeling/vervoerders/nieuw", children: [_jsx(Plus, { className: "w-4 h-4 mr-1" }), "Vervoerder toevoegen"] }) })] }), _jsx("div", { className: "border rounded-md bg-card", children: isLoading ? (_jsx("div", { className: "p-12 text-center text-muted-foreground", children: "Laden..." })) : error ? (_jsxs("div", { className: "p-12 text-center space-y-3", children: [_jsxs("div", { className: "text-destructive", children: ["Fout bij laden: ", error.message] }), _jsx(Button, { variant: "outline", onClick: () => refetch(), children: "Opnieuw proberen" })] })) : carriers.length === 0 ? (_jsxs("div", { className: "p-12 text-center space-y-3", children: [_jsx(Truck, { className: "w-10 h-10 mx-auto text-muted-foreground" }), _jsx("div", { className: "font-medium", children: "Nog geen vervoerders" }), _jsx("div", { className: "text-sm text-muted-foreground", children: "Voeg een vervoerder toe om verzendtarieven in te stellen." }), _jsx(Button, { asChild: true, children: _jsxs(Link, { to: "/afhandeling/vervoerders/nieuw", children: [_jsx(Plus, { className: "w-4 h-4 mr-1" }), "Vervoerder toevoegen"] }) })] })) : (_jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { className: "w-32", children: "Prioriteit" }), _jsx(TableHead, { children: "Bedrijfsnaam" }), _jsx(TableHead, { children: "Contactpersoon" }), _jsx(TableHead, { children: "E-mail" }), _jsx(TableHead, { children: "Telefoon" }), _jsx(TableHead, { children: "Levertijd" }), _jsx(TableHead, { children: "Landen" }), _jsx(TableHead, { className: "text-right", children: "Acties" })] }) }), _jsx(TableBody, { children: carriers.map((c, index) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: _jsxs("div", { className: "flex items-center gap-1", children: [_jsx("span", { className: "w-6 text-sm font-medium tabular-nums text-muted-foreground", children: index + 1 }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => move(index, -1), disabled: index === 0 || reorderMutation.isPending, "aria-label": "Hoger", children: _jsx(ArrowUp, { className: "w-4 h-4" }) }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => move(index, 1), disabled: index === carriers.length - 1 || reorderMutation.isPending, "aria-label": "Lager", children: _jsx(ArrowDown, { className: "w-4 h-4" }) })] }) }), _jsx(TableCell, { className: "font-medium", children: c.name }), _jsx(TableCell, { children: c.contact_person ?? "—" }), _jsx(TableCell, { children: c.email ?? "—" }), _jsx(TableCell, { children: c.phone ?? "—" }), _jsxs(TableCell, { children: [carrierLeadDaysFromMoments(c.pickup_moments), " werkdagen"] }), _jsx(TableCell, { children: c.rate_count }), _jsx(TableCell, { className: "text-right", children: _jsxs("div", { className: "flex justify-end gap-1", children: [_jsx(Button, { asChild: true, variant: "ghost", size: "sm", children: _jsx(Link, { to: "/afhandeling/vervoerders/$carrierId", params: { carrierId: c.id }, children: _jsx(Pencil, { className: "w-4 h-4" }) }) }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => setDeletingId(c.id), className: "text-destructive hover:text-destructive", children: _jsx(Trash2, { className: "w-4 h-4" }) })] }) })] }, c.id))) })] })) }), _jsx(AlertDialog, { open: !!deletingId, onOpenChange: (o) => !o && setDeletingId(null), children: _jsxs(ResponsiveAlertDialogContent, { size: "sm", children: [_jsx(ResponsiveAlertDialogHeader, { children: _jsx(AlertDialogTitle, { children: "Vervoerder verwijderen?" }) }), _jsx(ResponsiveAlertDialogBody, { children: _jsx(AlertDialogDescription, { children: "Deze actie kan niet ongedaan gemaakt worden. Alle verzendtarieven worden ook verwijderd." }) }), _jsxs(ResponsiveAlertDialogFooter, { children: [_jsx(AlertDialogCancel, { children: "Annuleren" }), _jsx(AlertDialogAction, { onClick: () => deletingId && deleteMutation.mutate(deletingId), className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: "Verwijderen" })] })] }) })] }));
|
|
71
71
|
}
|
package/package.json
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@flowselections/floriday-afhandeling-module",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"sideEffects": false,
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "./dist-lib/index.js",
|
|
8
|
-
"types": "./dist-lib/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist-lib/index.d.ts",
|
|
12
|
-
"default": "./dist-lib/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./server-routes": {
|
|
15
|
-
"types": "./dist-lib/lib/serverRoutes/index.d.ts",
|
|
16
|
-
"default": "./dist-lib/lib/serverRoutes/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./styles": "./dist-lib/styles.css"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"dist-lib"
|
|
22
|
-
],
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"dev": "vite dev",
|
|
28
|
-
"build": "vite build",
|
|
29
|
-
"build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node -e \"require('fs').writeFileSync('dist-lib/styles.css', '@source \\\"./\\\";\\n')\"",
|
|
30
|
-
"build:lib:watch": "tsc -p tsconfig.build.json --watch",
|
|
31
|
-
"build:dev": "vite build --mode development",
|
|
32
|
-
"preview": "vite preview",
|
|
33
|
-
"lint": "eslint ."
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"@flowselections/core": "*",
|
|
37
|
-
"@flowselections/layout-maker": ">=1.7.3",
|
|
38
|
-
"@tanstack/react-query": "^5",
|
|
39
|
-
"react": "^18 || ^19",
|
|
40
|
-
"react-dom": "^18 || ^19"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@ai-sdk/openai-compatible": "^3.0.9",
|
|
44
|
-
"@flowselections/layout-maker": "^1.7.3",
|
|
45
|
-
"@supabase/supabase-js": "^2.110.8",
|
|
46
|
-
"ai": "^7.0.26"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@cloudflare/vite-plugin": "^1.25.5",
|
|
50
|
-
"@eslint/js": "^9.32.0",
|
|
51
|
-
"@flowselections/core": "1.0.18",
|
|
52
|
-
"@lovable.dev/vite-tanstack-config": "2.13.1",
|
|
53
|
-
"@rsbuild/core": "^1.0.0",
|
|
54
|
-
"@tailwindcss/vite": "^4.2.1",
|
|
55
|
-
"@tanstack/react-query": "^5.83.0",
|
|
56
|
-
"@tanstack/router-plugin": "^1.167.10",
|
|
57
|
-
"@types/node": "^22.16.5",
|
|
58
|
-
"@types/react": "^19.2.0",
|
|
59
|
-
"@types/react-dom": "^19.2.0",
|
|
60
|
-
"@vitejs/plugin-react": "^5.0.4",
|
|
61
|
-
"eslint": "^9.32.0",
|
|
62
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
63
|
-
"eslint-plugin-react-refresh": "^0.4.20",
|
|
64
|
-
"globals": "^15.15.0",
|
|
65
|
-
"react": "^19.2.0",
|
|
66
|
-
"react-dom": "^19.2.0",
|
|
67
|
-
"tailwindcss": "^4.2.1",
|
|
68
|
-
"tw-animate-css": "^1.3.4",
|
|
69
|
-
"typescript": "^5.8.3",
|
|
70
|
-
"tsc-alias": "^1.8.0",
|
|
71
|
-
"typescript-eslint": "^8.56.1",
|
|
72
|
-
"vite": "^7.3.1",
|
|
73
|
-
"vite-tsconfig-paths": "^6.0.2",
|
|
74
|
-
"nitro": "3.0.260603-beta"
|
|
75
|
-
},
|
|
76
|
-
"flowselections": {
|
|
77
|
-
"moduleId": "Afhandeling",
|
|
78
|
-
"pages": [
|
|
79
|
-
{
|
|
80
|
-
"export": "LeveringenPage",
|
|
81
|
-
"route": "afhandeling/leveringen",
|
|
82
|
-
"title": "Planning en Leveringen"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"export": "NieuweLeveringPage",
|
|
86
|
-
"route": "afhandeling/leveringen/nieuw",
|
|
87
|
-
"title": "Levering aanmaken",
|
|
88
|
-
"nav": false
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"export": "PickingPage",
|
|
92
|
-
"route": "afhandeling/picking",
|
|
93
|
-
"title": "Pick Agenda"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"export": "ControlePage",
|
|
97
|
-
"route": "afhandeling/controle",
|
|
98
|
-
"title": "Controle Karren"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"export": "VervoerdersPage",
|
|
102
|
-
"route": "afhandeling/vervoerders",
|
|
103
|
-
"title": "Vervoerders",
|
|
104
|
-
"nav": false
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"export": "NieuweVervoerderPage",
|
|
108
|
-
"route": "afhandeling/vervoerders/nieuw",
|
|
109
|
-
"title": "Nieuwe vervoerder",
|
|
110
|
-
"nav": false
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"export": "VervoerderBewerkenPage",
|
|
114
|
-
"route": "afhandeling/vervoerders/$carrierId",
|
|
115
|
-
"title": "Vervoerder bewerken",
|
|
116
|
-
"nav": false
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@flowselections/floriday-afhandeling-module",
|
|
3
|
+
"version": "1.0.36",
|
|
4
|
+
"private": false,
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist-lib/index.js",
|
|
8
|
+
"types": "./dist-lib/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist-lib/index.d.ts",
|
|
12
|
+
"default": "./dist-lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./server-routes": {
|
|
15
|
+
"types": "./dist-lib/lib/serverRoutes/index.d.ts",
|
|
16
|
+
"default": "./dist-lib/lib/serverRoutes/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./styles": "./dist-lib/styles.css"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist-lib"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "vite dev",
|
|
28
|
+
"build": "vite build",
|
|
29
|
+
"build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node -e \"require('fs').writeFileSync('dist-lib/styles.css', '@source \\\"./\\\";\\n')\"",
|
|
30
|
+
"build:lib:watch": "tsc -p tsconfig.build.json --watch",
|
|
31
|
+
"build:dev": "vite build --mode development",
|
|
32
|
+
"preview": "vite preview",
|
|
33
|
+
"lint": "eslint ."
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@flowselections/core": "*",
|
|
37
|
+
"@flowselections/layout-maker": ">=1.7.3",
|
|
38
|
+
"@tanstack/react-query": "^5",
|
|
39
|
+
"react": "^18 || ^19",
|
|
40
|
+
"react-dom": "^18 || ^19"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@ai-sdk/openai-compatible": "^3.0.9",
|
|
44
|
+
"@flowselections/layout-maker": "^1.7.3",
|
|
45
|
+
"@supabase/supabase-js": "^2.110.8",
|
|
46
|
+
"ai": "^7.0.26"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@cloudflare/vite-plugin": "^1.25.5",
|
|
50
|
+
"@eslint/js": "^9.32.0",
|
|
51
|
+
"@flowselections/core": "1.0.18",
|
|
52
|
+
"@lovable.dev/vite-tanstack-config": "2.13.1",
|
|
53
|
+
"@rsbuild/core": "^1.0.0",
|
|
54
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
55
|
+
"@tanstack/react-query": "^5.83.0",
|
|
56
|
+
"@tanstack/router-plugin": "^1.167.10",
|
|
57
|
+
"@types/node": "^22.16.5",
|
|
58
|
+
"@types/react": "^19.2.0",
|
|
59
|
+
"@types/react-dom": "^19.2.0",
|
|
60
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
61
|
+
"eslint": "^9.32.0",
|
|
62
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
63
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
64
|
+
"globals": "^15.15.0",
|
|
65
|
+
"react": "^19.2.0",
|
|
66
|
+
"react-dom": "^19.2.0",
|
|
67
|
+
"tailwindcss": "^4.2.1",
|
|
68
|
+
"tw-animate-css": "^1.3.4",
|
|
69
|
+
"typescript": "^5.8.3",
|
|
70
|
+
"tsc-alias": "^1.8.0",
|
|
71
|
+
"typescript-eslint": "^8.56.1",
|
|
72
|
+
"vite": "^7.3.1",
|
|
73
|
+
"vite-tsconfig-paths": "^6.0.2",
|
|
74
|
+
"nitro": "3.0.260603-beta"
|
|
75
|
+
},
|
|
76
|
+
"flowselections": {
|
|
77
|
+
"moduleId": "Afhandeling",
|
|
78
|
+
"pages": [
|
|
79
|
+
{
|
|
80
|
+
"export": "LeveringenPage",
|
|
81
|
+
"route": "afhandeling/leveringen",
|
|
82
|
+
"title": "Planning en Leveringen"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"export": "NieuweLeveringPage",
|
|
86
|
+
"route": "afhandeling/leveringen/nieuw",
|
|
87
|
+
"title": "Levering aanmaken",
|
|
88
|
+
"nav": false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"export": "PickingPage",
|
|
92
|
+
"route": "afhandeling/picking",
|
|
93
|
+
"title": "Pick Agenda"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"export": "ControlePage",
|
|
97
|
+
"route": "afhandeling/controle",
|
|
98
|
+
"title": "Controle Karren"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"export": "VervoerdersPage",
|
|
102
|
+
"route": "afhandeling/vervoerders",
|
|
103
|
+
"title": "Vervoerders",
|
|
104
|
+
"nav": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"export": "NieuweVervoerderPage",
|
|
108
|
+
"route": "afhandeling/vervoerders/nieuw",
|
|
109
|
+
"title": "Nieuwe vervoerder",
|
|
110
|
+
"nav": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"export": "VervoerderBewerkenPage",
|
|
114
|
+
"route": "afhandeling/vervoerders/$carrierId",
|
|
115
|
+
"title": "Vervoerder bewerken",
|
|
116
|
+
"nav": false
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|