@lambda-development/erp-core 1.3.2 → 1.3.3

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,23 @@
1
+ import { KeyboardEvent, PointerEvent, ReactNode } from 'react';
2
+ export interface SortableHandleProps {
3
+ onPointerDown: (e: PointerEvent<HTMLElement>) => void;
4
+ onPointerMove: (e: PointerEvent<HTMLElement>) => void;
5
+ onPointerUp: (e: PointerEvent<HTMLElement>) => void;
6
+ onPointerCancel: (e: PointerEvent<HTMLElement>) => void;
7
+ onKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
8
+ style: {
9
+ touchAction: "none";
10
+ cursor: "grab" | "grabbing";
11
+ };
12
+ }
13
+ export declare function Sortable<T>({ items, keyOf, onReorder, className, children }: {
14
+ items: T[];
15
+ keyOf: (item: T) => string;
16
+ onReorder: (next: T[]) => void;
17
+ className?: string;
18
+ children: (item: T, ctx: {
19
+ handle: SortableHandleProps;
20
+ dragging: boolean;
21
+ index: number;
22
+ }) => ReactNode;
23
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1033,14 +1033,15 @@ declare const _default: {
1033
1033
  },
1034
1034
  "menuLayout": {
1035
1035
  "title": "Ihr Menü",
1036
- "intro": "Blenden Sie Bereiche aus, die Sie nicht brauchen, und stellen Sie die wichtigsten nach oben. Das ändert nur Ihr eigenes Menü: andere behalten ihres, und ausgeblendete Seiten bleiben per Link erreichbar.",
1036
+ "intro": "Ziehen Sie Gruppen und Einträge in die gewünschte Reihenfolge, blenden Sie aus, was Sie nicht brauchen, und speichern Sie. Das ändert nur Ihr eigenes Menü: andere behalten ihres, und ausgeblendete Seiten bleiben per Link erreichbar.",
1037
1037
  "chatHint": "Das geht auch im Chat, z. B. „Blende die Vermietung aus“ oder „Schiebe CRM nach oben“.",
1038
1038
  "reset": "Auf Standard zurücksetzen",
1039
1039
  "hide": "{{name}} ausblenden",
1040
1040
  "show": "{{name}} einblenden",
1041
- "moveUp": "{{name}} nach oben",
1042
- "moveDown": "{{name}} nach unten",
1043
- "locked": "Immer sichtbar: Hier wird das Menü bearbeitet"
1041
+ "locked": "Immer sichtbar: Hier wird das Menü bearbeitet",
1042
+ "drag": "{{name}} ziehen, um die Reihenfolge zu ändern (oder auswählen und Pfeiltasten nutzen)",
1043
+ "discard": "Änderungen verwerfen",
1044
+ "unsaved": "Nicht gespeicherte Änderungen"
1044
1045
  }
1045
1046
  }
1046
1047
  ;
@@ -1033,14 +1033,15 @@ declare const _default: {
1033
1033
  },
1034
1034
  "menuLayout": {
1035
1035
  "title": "Your menu",
1036
- "intro": "Hide the parts of the menu you don't use and put the ones you need first. This only changes your own menu: other people keep theirs, and hidden pages stay reachable by link.",
1036
+ "intro": "Drag groups and items into the order you want and hide the ones you don't use, then save. This only changes your own menu: other people keep theirs, and hidden pages stay reachable by link.",
1037
1037
  "chatHint": "You can also ask the chat, e.g. \"hide the rentals section\" or \"move CRM to the top\".",
1038
1038
  "reset": "Reset to default",
1039
1039
  "hide": "Hide {{name}}",
1040
1040
  "show": "Show {{name}}",
1041
- "moveUp": "Move {{name}} up",
1042
- "moveDown": "Move {{name}} down",
1043
- "locked": "Always shown: this page edits the menu"
1041
+ "locked": "Always shown: this page edits the menu",
1042
+ "drag": "Drag to reorder {{name}} (or focus it and use the arrow keys)",
1043
+ "discard": "Discard changes",
1044
+ "unsaved": "Unsaved changes"
1044
1045
  }
1045
1046
  }
1046
1047
  ;
@@ -1033,14 +1033,15 @@ declare const _default: {
1033
1033
  },
1034
1034
  "menuLayout": {
1035
1035
  "title": "Votre menu",
1036
- "intro": "Masquez les parties du menu dont vous ne vous servez pas et placez en haut celles dont vous avez besoin. Seul votre menu change : les autres gardent le leur, et les pages masquées restent accessibles par lien.",
1036
+ "intro": "Glissez les groupes et les entrées dans l'ordre voulu et masquez ceux dont vous ne vous servez pas, puis enregistrez. Seul votre menu change : les autres gardent le leur, et les pages masquées restent accessibles par lien.",
1037
1037
  "chatHint": "Vous pouvez aussi le demander au chat, p. ex. « masque les Locations » ou « mets le CRM en haut ».",
1038
1038
  "reset": "Rétablir par défaut",
1039
1039
  "hide": "Masquer {{name}}",
1040
1040
  "show": "Afficher {{name}}",
1041
- "moveUp": "Monter {{name}}",
1042
- "moveDown": "Descendre {{name}}",
1043
- "locked": "Toujours affiché : cette page modifie le menu"
1041
+ "locked": "Toujours affiché : cette page modifie le menu",
1042
+ "drag": "Glisser pour déplacer {{name}} (ou le sélectionner et utiliser les flèches)",
1043
+ "discard": "Annuler les modifications",
1044
+ "unsaved": "Modifications non enregistrées"
1044
1045
  }
1045
1046
  }
1046
1047
  ;