@lambda-development/erp-core 0.8.0 → 0.8.2

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.
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambda-development/erp-core",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Frontend core of Lambda ERP — app shell, document/master pages, chat UI, reports, and extension registries.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {