@lambda-development/erp-core 0.7.1 → 0.8.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/api/client.d.ts +61 -0
- package/dist/hooks/use-rentals.d.ts +7 -0
- package/dist/i18n/locales/de.json.d.ts +61 -3
- package/dist/i18n/locales/en.json.d.ts +61 -3
- package/dist/i18n/locales/fr.json.d.ts +61 -3
- package/dist/index.js +2589 -2267
- package/dist/index.js.map +1 -1
- package/dist/lib/doctypes.d.ts +1 -1
- package/dist/lib/utils.d.ts +3 -0
- package/dist/pages/rentals/fleet-calendar.d.ts +1 -0
- package/package.json +1 -1
package/dist/lib/doctypes.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
export interface FieldDef {
|
|
9
9
|
name: string;
|
|
10
10
|
label: string;
|
|
11
|
-
type: "text" | "number" | "currency" | "date" | "link" | "select" | "textarea";
|
|
11
|
+
type: "text" | "number" | "currency" | "date" | "datetime" | "link" | "select" | "textarea";
|
|
12
12
|
required?: boolean;
|
|
13
13
|
readOnly?: boolean;
|
|
14
14
|
linkDoctype?: string;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -8,5 +8,8 @@ export declare function formatNumber(value: number | null | undefined, decimals?
|
|
|
8
8
|
export declare function setDateLocale(locale: string | undefined): void;
|
|
9
9
|
/** Format a date string for display (numeric, day-first per the locale). */
|
|
10
10
|
export declare function formatDate(value: string | null | undefined): string;
|
|
11
|
+
/** Format a datetime for display: date + HH:MM. Accepts "YYYY-MM-DD HH:MM:SS"
|
|
12
|
+
* (the ERP's stored form) or ISO. Falls back to the raw value if unparseable. */
|
|
13
|
+
export declare function formatDateTime(value: string | null | undefined): string;
|
|
11
14
|
/** Safely parse a float, defaulting to 0. */
|
|
12
15
|
export declare function flt(value: unknown, precision?: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FleetCalendarPage(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED