@mcurros2/microm 1.1.140-0 → 1.1.141-0

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/index.d.ts CHANGED
@@ -906,13 +906,14 @@ export const usePreventEnterSubmission: () => (event: KeyboardEvent) => void;
906
906
  export function formatDate(value: Value, locale?: string, dateOptions?: Intl.DateTimeFormatOptions): string;
907
907
  export function formatTime(value: Value, locale?: string, dateOptions?: Intl.DateTimeFormatOptions): string;
908
908
  export function formatNumber(value: Value, locale?: string): string;
909
- export function convertDateToNative(value: string): Date;
909
+ export function convertDateToNative(value: string, serverTimeZoneOffset: number): Date;
910
910
  export function formatSQLValue(value: Value, sqlType: SQLType, locale?: string): string;
911
- export function convertToNativeValue(value: Value, sqlType: SQLType): Value;
911
+ export function convertToNativeValue(value: Value, sqlType: SQLType, serverTimezoneOffset: number): Value;
912
912
  export interface UseLocaleFormatProps {
913
+ timeZoneOffset: number;
913
914
  initialLocale?: string;
914
915
  }
915
- export const UseLocaleFormatDefaultProps: UseLocaleFormatProps;
916
+ export const UseLocaleFormatDefaultProps: Partial<UseLocaleFormatProps>;
916
917
  export function useLocaleFormat(props: UseLocaleFormatProps): {
917
918
  locale: string | undefined;
918
919
  setLocale: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
@@ -1942,6 +1943,7 @@ export type GridOptions = {
1942
1943
  columnsOverrides?: GridColumnsOverrides;
1943
1944
  selectedRows?: GridSelection;
1944
1945
  setSelectedRows?: (rows: GridSelection) => void;
1946
+ timeZoneOffset?: number;
1945
1947
  };
1946
1948
  export type GridImperative = {};
1947
1949
  export const DefaultGridProps: Partial<GridOptions>;
@@ -3564,7 +3566,7 @@ export class TokenWebStorage implements TokenStorage {
3564
3566
  readToken(app_id: string): Promise<MicroMToken | null>;
3565
3567
  deleteToken(app_id: string): Promise<void>;
3566
3568
  }
3567
- export type APIAction = "get" | "insert" | "update" | "delete" | "lookup" | "view" | "action" | "upload" | "proc" | "process" | "import";
3569
+ export type APIAction = "get" | "insert" | "update" | "delete" | "lookup" | "view" | "action" | "upload" | "proc" | "process" | "import" | "timezoneoffset";
3568
3570
  export interface FileUploadResponse {
3569
3571
  ErrorMessage?: string;
3570
3572
  FileProcessId?: string;
@@ -3599,6 +3601,7 @@ export class MicroMClient {
3599
3601
  login(username: string, password: string, rememberme?: boolean): Promise<MicroMToken | undefined>;
3600
3602
  recoveryemail(username: string): Promise<DBStatusResult>;
3601
3603
  recoverpassword(username: string, password: string, recoverycode: string): Promise<DBStatusResult>;
3604
+ get TIMEZONE_OFFSET(): number;
3602
3605
  getMenus(): Promise<Set<string>>;
3603
3606
  getRememberUser(): Promise<string | null>;
3604
3607
  downloadBlob(fileUrl: string, abort_signal?: AbortSignal | null): Promise<Blob>;