tsv2-library 1.0.59 → 1.0.61-alpha.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.
@@ -125,6 +125,12 @@ export interface ButtonScanProps extends TSButtonProps {
125
125
  * @default false
126
126
  */
127
127
  labelOnly?: boolean;
128
+ /**
129
+ * Base z-index for dialog of scan
130
+ *
131
+ * @default 0
132
+ */
133
+ baseZIndex?: number;
128
134
  size: 'small' | 'large';
129
135
  }
130
136
 
@@ -71,6 +71,10 @@ export interface DialogConfirmProps {
71
71
  * @default true;
72
72
  */
73
73
  closable?: boolean;
74
+ /**
75
+ * @default 0
76
+ */
77
+ baseZIndex?: number;
74
78
  }
75
79
 
76
80
  /**
@@ -21,6 +21,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
21
21
  type: __PropType<boolean | undefined>;
22
22
  required: false;
23
23
  };
24
+ baseZIndex: {
25
+ type: __PropType<number | undefined>;
26
+ required: false;
27
+ };
24
28
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "scan")[], "update:visible" | "scan", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
29
  visible: {
26
30
  type: __PropType<boolean>;
@@ -42,6 +46,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
46
  type: __PropType<boolean | undefined>;
43
47
  required: false;
44
48
  };
49
+ baseZIndex: {
50
+ type: __PropType<number | undefined>;
51
+ required: false;
52
+ };
45
53
  }>> & {
46
54
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
47
55
  onScan?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,13 @@
1
+ import { AxiosInstance, AxiosResponse } from 'axios';
2
+ export interface ServiceOptions {
3
+ headers?: Record<string, unknown>;
4
+ params?: Record<string, unknown>;
5
+ }
6
+ export declare const API: ({ headers, params, }?: ServiceOptions) => AxiosInstance;
7
+ declare const _default: {
8
+ postScanLog: (body: {
9
+ tag: string;
10
+ serialNumber: string;
11
+ }) => Promise<AxiosResponse<any, any>>;
12
+ };
13
+ export default _default;
@@ -10,21 +10,23 @@ type User = {
10
10
  generalSetting: GeneralSetting;
11
11
  [key: string]: unknown;
12
12
  };
13
- export type TDateFormat = 'd/m/yy' | 'd/mm/yy' | 'dd/mm/yy' | 'dd/mm/yyyy' | 'dd M yy' | 'dd M yyyy' | 'dd MM yy' | 'dd MM yyyy' | 'D dd M yy' | 'D dd M yyyy' | 'DD dd MM yy' | 'DD dd MM yyyy' | 'D, dd M yy' | 'D, dd M yyyy' | 'DD, dd MM yy' | 'DD, dd MM yyyy';
14
- export type GoDateLayout = '02/01/06' | '_2/_1/06' | '02 Jan 06' | 'Mon, 02 Jan 06' | 'Mon, 02 Jan 2006';
13
+ export type TDateFormat = 'd/m/yy' | 'm/d/yy' | 'd/mm/yy' | 'dd/mm/yy' | 'dd/mm/yyyy' | 'dd M yy' | 'dd M yyyy' | 'dd MM yy' | 'dd MM yyyy' | 'D dd M yy' | 'D dd M yyyy' | 'DD dd MM yy' | 'DD dd MM yyyy' | 'D, dd M yy' | 'D, dd M yyyy' | 'DD, dd MM yy' | 'DD, dd MM yyyy';
14
+ export type GoDateLayout = '02/01/06' | '_2/_1/06' | '_1/_2/06' | '02 Jan 06' | 'Mon, 02 Jan 06' | 'Mon, 02 Jan 2006';
15
15
  export type TTimeFormat = 'HH:mm' | 'HH:mm a' | 'HH:mm:ss' | 'HH:mm:ss a';
16
16
  export type GoTimeLayout = '15:04' | '03:04 PM' | '15:04:05' | '03:04:05 PM';
17
- export type TTimeOptions = {
18
- /**
19
- * @default 'en-GB'
20
- */
17
+ export type CustomDateTimeFormatOptions = Omit<Intl.DateTimeFormatOptions, 'timeZone'> & {
18
+ timezone?: string;
19
+ locale?: string;
20
+ };
21
+ export type DateOptions = {
21
22
  locale?: string;
22
23
  dateFormat?: TDateFormat | GoDateLayout;
23
24
  timeFormat?: TTimeFormat | GoTimeLayout;
25
+ timezone?: string;
24
26
  /**
25
27
  * Show the time in the formatted date.
26
28
  *
27
- * @default true - when timeFormat is provided
29
+ * @default false - But will be set to true when `DateOptions.timeFormat` is provided
28
30
  */
29
31
  showTime?: boolean;
30
32
  /**
@@ -33,10 +35,14 @@ export type TTimeOptions = {
33
35
  * @default true
34
36
  */
35
37
  showDate?: boolean;
38
+ /**
39
+ * This is old format (general settings), if configuration still using old settings then this option parameter can be used
40
+ */
41
+ formatPreset?: CustomDateTimeFormatOptions;
36
42
  };
37
43
  export declare const getLoggedInUser: () => User;
38
44
  export declare const getUserLocale: () => string;
39
- export declare const formatGoDate: (date: Date, options?: TTimeOptions) => string;
45
+ export declare const formatGoDate: (date: Date, options?: DateOptions, useGeneralSettings?: boolean) => string;
40
46
  /**
41
47
  * Formats a date according to the user's general settings.
42
48
  *
@@ -44,7 +50,7 @@ export declare const formatGoDate: (date: Date, options?: TTimeOptions) => strin
44
50
  * @param useTimeOrFormat - Whether to include the time in the formatted date string. Defaults to false.
45
51
  * @returns The formatted date string.
46
52
  */
47
- export declare const formatDate: (date: Date | string | null | undefined, useTimeOrFormat?: boolean | TTimeOptions) => string;
53
+ export declare const formatDate: (date: Date | string | null | undefined, useTimeOrFormat?: boolean | DateOptions) => string;
48
54
  /**
49
55
  * Formats a date to human readable form (timeago / relative time from now).
50
56
  *