@quan-erp/shared-frontend-core 1.0.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/README.md +92 -0
- package/dist/index.js +2921 -0
- package/dist/types/core/accelerometer.d.ts +47 -0
- package/dist/types/core/assets.d.ts +13 -0
- package/dist/types/core/backend-api.d.ts +2 -0
- package/dist/types/core/background-location.d.ts +1 -0
- package/dist/types/core/battery.d.ts +40 -0
- package/dist/types/core/bluetooth.d.ts +77 -0
- package/dist/types/core/camera.d.ts +83 -0
- package/dist/types/core/clipboard.d.ts +56 -0
- package/dist/types/core/database.d.ts +13 -0
- package/dist/types/core/device-class-tier.d.ts +19 -0
- package/dist/types/core/device-fingerprint.d.ts +29 -0
- package/dist/types/core/device.d.ts +33 -0
- package/dist/types/core/filesystem.d.ts +85 -0
- package/dist/types/core/firebase.d.ts +5 -0
- package/dist/types/core/gyroscope.d.ts +52 -0
- package/dist/types/core/index.d.ts +32 -0
- package/dist/types/core/location.d.ts +87 -0
- package/dist/types/core/microphone.d.ts +54 -0
- package/dist/types/core/morientation.d.ts +14 -0
- package/dist/types/core/motion-orientation.d.ts +25 -0
- package/dist/types/core/network.d.ts +15 -0
- package/dist/types/core/notification.d.ts +113 -0
- package/dist/types/core/number-formatter.d.ts +20 -0
- package/dist/types/core/orientation.d.ts +49 -0
- package/dist/types/core/permissions.d.ts +6 -0
- package/dist/types/core/platform.d.ts +27 -0
- package/dist/types/core/plugin-api.d.ts +33 -0
- package/dist/types/core/printer.d.ts +54 -0
- package/dist/types/core/safearea.d.ts +30 -0
- package/dist/types/core/shared-preferences.d.ts +61 -0
- package/dist/types/core/sqlite.d.ts +18 -0
- package/dist/types/core/system-locale.d.ts +24 -0
- package/dist/types/core/system.d.ts +109 -0
- package/dist/types/core/user-behavior.d.ts +24 -0
- package/dist/types/core/user-hand-behavior.d.ts +90 -0
- package/dist/types/core/vibration.d.ts +78 -0
- package/dist/types/dto/dto.d.ts +9 -0
- package/dist/types/dto/index.d.ts +2 -0
- package/dist/types/dto/pagination.dto.d.ts +29 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/security/websecurity.d.ts +4 -0
- package/dist/types/utilities/index.d.ts +1 -0
- package/dist/types/utilities/plugin-expose.d.ts +5 -0
- package/dist/types/utilities/version.util.d.ts +53 -0
- package/external-global-rollup-config.json +61 -0
- package/package.json +73 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the contract for fetching native host device and application shell hardware performance metrics.
|
|
3
|
+
*/
|
|
4
|
+
export interface ISystem {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the current CPU utilization ratio.
|
|
7
|
+
* @returns A promise resolving to a fraction between 0.0 and 1.0.
|
|
8
|
+
*/
|
|
9
|
+
getCPUUsage(): Promise<number>;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the current host system heap memory metrics.
|
|
12
|
+
* @returns A promise resolving to an object containing used and total bytes.
|
|
13
|
+
*/
|
|
14
|
+
getMemoryUsage(): Promise<{
|
|
15
|
+
used: number;
|
|
16
|
+
total: number;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Fetches detailed host platform and hardware specification indicators.
|
|
20
|
+
* @returns A promise resolving to general system metadata.
|
|
21
|
+
*/
|
|
22
|
+
getInfo(): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Resolves the total count of logical CPU core threads present on the host system.
|
|
25
|
+
* @returns The count or undefined if unsupported.
|
|
26
|
+
*/
|
|
27
|
+
getCPUCoreCount(): Promise<number | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Resolves the amount of system physical memory (RAM).
|
|
30
|
+
* @returns Memory capacity in Gigabytes (GB).
|
|
31
|
+
*/
|
|
32
|
+
getDeviceMemory(): Promise<number | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Identifies the system network connection quality profile (effective connection type).
|
|
35
|
+
* @returns A descriptor string (e.g. '4g', '3g') or undefined.
|
|
36
|
+
*/
|
|
37
|
+
getNetworkType(): string | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Electron desktop system implementation.
|
|
41
|
+
* Queries CPU, RAM, and hardware metrics via desktop-bound IPC helper bridges.
|
|
42
|
+
*/
|
|
43
|
+
export declare class ElectronSystem implements ISystem {
|
|
44
|
+
/**
|
|
45
|
+
* Resolves system platform specifications.
|
|
46
|
+
*/
|
|
47
|
+
getInfo(): Promise<any>;
|
|
48
|
+
/**
|
|
49
|
+
* Queries real-time processor load via desktop shell process monitors.
|
|
50
|
+
*/
|
|
51
|
+
getCPUUsage(): Promise<number>;
|
|
52
|
+
/**
|
|
53
|
+
* Queries real-time memory allocations.
|
|
54
|
+
*/
|
|
55
|
+
getMemoryUsage(): Promise<{
|
|
56
|
+
used: number;
|
|
57
|
+
total: number;
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* Queries physical thread count metrics.
|
|
61
|
+
*/
|
|
62
|
+
getCPUCoreCount(): Promise<number | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Resolves total RAM size in Gigabytes.
|
|
65
|
+
*/
|
|
66
|
+
getDeviceMemory(): Promise<number | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Queries effective network speed profiles.
|
|
69
|
+
*/
|
|
70
|
+
getNetworkType(): string | undefined;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Singleton proxy class routing diagnostic query operations to the resolved platform system helper.
|
|
74
|
+
*/
|
|
75
|
+
export declare class System {
|
|
76
|
+
private static _instance;
|
|
77
|
+
private constructor();
|
|
78
|
+
/**
|
|
79
|
+
* Internal getter to resolve the target native interface service.
|
|
80
|
+
*/
|
|
81
|
+
private static get impl();
|
|
82
|
+
/**
|
|
83
|
+
* Resolves current CPU usage fraction.
|
|
84
|
+
*/
|
|
85
|
+
static getCPUUsage(): Promise<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Resolves allocated and free heap memory details.
|
|
88
|
+
*/
|
|
89
|
+
static getMemoryUsage(): Promise<{
|
|
90
|
+
used: number;
|
|
91
|
+
total: number;
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* Resolves host system core counts.
|
|
95
|
+
*/
|
|
96
|
+
static getCPUCoreCount(): Promise<number | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Resolves physical device memory in GB.
|
|
99
|
+
*/
|
|
100
|
+
static getDeviceMemory(): Promise<number | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Resolves network connection speed indicator tags.
|
|
103
|
+
*/
|
|
104
|
+
static getNetworkType(): string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Fetches detailed platform environment descriptors.
|
|
107
|
+
*/
|
|
108
|
+
static getInfo(): Promise<any>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type HandType = "left" | "right" | "unknown";
|
|
2
|
+
interface IHandDetector {
|
|
3
|
+
start(): void;
|
|
4
|
+
stop(): void;
|
|
5
|
+
getHand(): HandType;
|
|
6
|
+
onChange?: (hand: HandType) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class UserHandBehaviorDetector implements IHandDetector {
|
|
9
|
+
private hand;
|
|
10
|
+
private started;
|
|
11
|
+
private samples;
|
|
12
|
+
private readonly SAMPLE_SIZE;
|
|
13
|
+
private readonly TILT_THRESHOLD;
|
|
14
|
+
private lastReportedHand;
|
|
15
|
+
private motionsOrientation;
|
|
16
|
+
onChange?: (hand: HandType) => void;
|
|
17
|
+
private constructor();
|
|
18
|
+
static getNewInstance(): UserHandBehaviorDetector;
|
|
19
|
+
start(): void;
|
|
20
|
+
stop(): void;
|
|
21
|
+
getHand(): HandType;
|
|
22
|
+
private handleOrientation;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines identified device-holding orientation signatures: Left hand, Right hand, or Unknown.
|
|
3
|
+
*/
|
|
4
|
+
export type HandType = "left" | "right" | "unknown";
|
|
5
|
+
/**
|
|
6
|
+
* Defines a structural interface for holding posture detectors.
|
|
7
|
+
*/
|
|
8
|
+
interface IHandDetector {
|
|
9
|
+
/**
|
|
10
|
+
* Starts continuous tracking and monitoring.
|
|
11
|
+
*/
|
|
12
|
+
start(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Terminated monitoring and frees resources.
|
|
15
|
+
*/
|
|
16
|
+
stop(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the current holding hand signature.
|
|
19
|
+
*/
|
|
20
|
+
getHand(): HandType;
|
|
21
|
+
/**
|
|
22
|
+
* Custom hook event listener for state modifications.
|
|
23
|
+
*/
|
|
24
|
+
onChange?: (hand: HandType) => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Typings for change listeners tracking device-holding hand states.
|
|
28
|
+
*/
|
|
29
|
+
export type UserHandBehaviorOnChange = (hand: HandType) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Core utility class that leverages continuous dynamic device gyroscope and accelerometer sensors
|
|
32
|
+
* to predict if the user is holding their phone in their left or right hand.
|
|
33
|
+
*/
|
|
34
|
+
export declare class UserHandBehaviorDetector implements IHandDetector {
|
|
35
|
+
private hand;
|
|
36
|
+
private started;
|
|
37
|
+
private samples;
|
|
38
|
+
private readonly SAMPLE_SIZE;
|
|
39
|
+
private readonly TILT_THRESHOLD;
|
|
40
|
+
private CHANGE_DELAY;
|
|
41
|
+
private lastReportedHand;
|
|
42
|
+
private pendingHand;
|
|
43
|
+
private changeTimer?;
|
|
44
|
+
private motionsOrientation;
|
|
45
|
+
private isInitial;
|
|
46
|
+
/**
|
|
47
|
+
* Dynamic event listener callback called when holding posture matches change thresholds.
|
|
48
|
+
*/
|
|
49
|
+
onChange?: UserHandBehaviorOnChange;
|
|
50
|
+
/**
|
|
51
|
+
* Private constructor initializing standard sensor listeners and checking platform permissions.
|
|
52
|
+
*/
|
|
53
|
+
private constructor();
|
|
54
|
+
/**
|
|
55
|
+
* Factory instantiator method to construct new instances of `UserHandBehaviorDetector`.
|
|
56
|
+
*/
|
|
57
|
+
static getNewInstance(): UserHandBehaviorDetector;
|
|
58
|
+
/**
|
|
59
|
+
* Activates continuous data tracking and registers the initial posture feedback callback.
|
|
60
|
+
* @param callback Callback receiving left/right hand classifications.
|
|
61
|
+
*/
|
|
62
|
+
start(callback?: UserHandBehaviorOnChange): void;
|
|
63
|
+
/**
|
|
64
|
+
* Terminates continuous gyroscope updates and resets buffers.
|
|
65
|
+
*/
|
|
66
|
+
stop(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Resolves the current holding hand prediction.
|
|
69
|
+
*/
|
|
70
|
+
getHand(): HandType;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the classification confirmation delay.
|
|
73
|
+
* @param delay Confirmation threshold timing in milliseconds.
|
|
74
|
+
*/
|
|
75
|
+
setDelay(delay: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* Internally flags classification match transitions and dispatches event listeners.
|
|
78
|
+
*/
|
|
79
|
+
private confirmHandChange;
|
|
80
|
+
/**
|
|
81
|
+
* Throttles hand-holding prediction shifts to prevent rapid toggling noise.
|
|
82
|
+
*/
|
|
83
|
+
private scheduleChange;
|
|
84
|
+
/**
|
|
85
|
+
* Continuous gyroscope feed event reader.
|
|
86
|
+
* Computes orientation averages and applies geometric thresholds to resolve holding fingers/thumb angles.
|
|
87
|
+
*/
|
|
88
|
+
private handleOrientation;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard union configuration types representing vibration duration parameters or custom pattern blocks.
|
|
3
|
+
*/
|
|
4
|
+
type VibrateOption = number | number[] | {
|
|
5
|
+
duration: number;
|
|
6
|
+
intensity: number;
|
|
7
|
+
}[];
|
|
8
|
+
/**
|
|
9
|
+
* Defines the contract for initiating haptic feedback and vibrations across web, mobile, and desktop systems.
|
|
10
|
+
*/
|
|
11
|
+
export interface IVibration {
|
|
12
|
+
/**
|
|
13
|
+
* Triggers a system haptic impact or vibration.
|
|
14
|
+
* @param duration A single value in milliseconds, a pattern array of durations, or objects defining detailed vibration parameters.
|
|
15
|
+
*/
|
|
16
|
+
vibrate(duration: VibrateOption): Promise<void> | void;
|
|
17
|
+
/**
|
|
18
|
+
* Cancels any active hardware vibration patterns.
|
|
19
|
+
*/
|
|
20
|
+
cancel(): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Web client haptic engine utilizing browser standard `navigator.vibrate` or `web-haptics` utilities.
|
|
24
|
+
*/
|
|
25
|
+
export declare class WebVibration implements IVibration {
|
|
26
|
+
private haptics;
|
|
27
|
+
/**
|
|
28
|
+
* Initializes the WebVibration instance and registers fallback web-haptics listeners.
|
|
29
|
+
*/
|
|
30
|
+
constructor();
|
|
31
|
+
/**
|
|
32
|
+
* Triggers standard browser-native vibration patterns.
|
|
33
|
+
* @param vibration Haptic duration options.
|
|
34
|
+
*/
|
|
35
|
+
vibrate(vibration: VibrateOption): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Resets browser vibration activity by sending a zero-intensity trigger.
|
|
38
|
+
*/
|
|
39
|
+
cancel(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Electron desktop vibration controller fallback.
|
|
43
|
+
*/
|
|
44
|
+
export declare class ElectronVibration implements IVibration {
|
|
45
|
+
/**
|
|
46
|
+
* Mock vibration method warning users that desktop hardware lacks vibration motors.
|
|
47
|
+
*/
|
|
48
|
+
vibrate(duration: VibrateOption): Promise<void> | void;
|
|
49
|
+
/**
|
|
50
|
+
* No-op cancel routine.
|
|
51
|
+
*/
|
|
52
|
+
cancel(): void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Singleton wrapper and router managing device vibrations across platforms.
|
|
56
|
+
*/
|
|
57
|
+
export declare class Vibration implements IVibration {
|
|
58
|
+
private static _instance;
|
|
59
|
+
private impl;
|
|
60
|
+
/**
|
|
61
|
+
* Private constructor to enforce standard singleton instantiation, resolving target driver at runtime.
|
|
62
|
+
*/
|
|
63
|
+
private constructor();
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves the global active, platform-resolved singleton vibration engine instance.
|
|
66
|
+
*/
|
|
67
|
+
static get instance(): Vibration;
|
|
68
|
+
/**
|
|
69
|
+
* Triggers vibration using the platform resolved driver.
|
|
70
|
+
* @param duration A numeric duration in milliseconds or a structured pattern array.
|
|
71
|
+
*/
|
|
72
|
+
vibrate(duration: number | number[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* Cancels all active vibration outputs.
|
|
75
|
+
*/
|
|
76
|
+
cancel(): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type Pagination<T = {}> = {
|
|
2
|
+
skip: number;
|
|
3
|
+
limit: number;
|
|
4
|
+
} & T;
|
|
5
|
+
export type RequestIndexPaginationDto<Q = string, P = number, S = number, D = Record<any, any>> = {
|
|
6
|
+
query?: Q | null;
|
|
7
|
+
currentPage?: P | null;
|
|
8
|
+
pageSize?: S | null;
|
|
9
|
+
} & D;
|
|
10
|
+
export type IndexPagination<D> = {
|
|
11
|
+
data: D;
|
|
12
|
+
total: number;
|
|
13
|
+
size: number;
|
|
14
|
+
currentPage: number;
|
|
15
|
+
totalPages: number;
|
|
16
|
+
};
|
|
17
|
+
export type RequestCursorPaginationDto<Q = string, B = string, A = string, D = Record<any, any>> = {
|
|
18
|
+
query?: Q | null;
|
|
19
|
+
before?: B | null;
|
|
20
|
+
after?: A | null;
|
|
21
|
+
} & D;
|
|
22
|
+
export type CursorPagination<D, N> = {
|
|
23
|
+
data: D;
|
|
24
|
+
total: number;
|
|
25
|
+
hasNext?: boolean;
|
|
26
|
+
hasPrevious?: boolean;
|
|
27
|
+
nextCursor?: N;
|
|
28
|
+
prevCursor?: N;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './version.util.js';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Results dictionary returned by the version analyzer helper.
|
|
3
|
+
*/
|
|
4
|
+
interface VersionCheckResult {
|
|
5
|
+
/**
|
|
6
|
+
* Set to `true` if the compared version is mathematically newer.
|
|
7
|
+
*/
|
|
8
|
+
isNewer: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Set to `true` if the compared version is mathematically older.
|
|
11
|
+
*/
|
|
12
|
+
isOlder: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Set to `true` if the compared version matches exactly.
|
|
15
|
+
*/
|
|
16
|
+
isSame: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Set to `true` if a major version bump has occurred (implying potential breaking API shifts).
|
|
19
|
+
*/
|
|
20
|
+
isBreaking: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Utility class for parsing, checking, and comparing Semantic Versioning (SemVer) format strings.
|
|
24
|
+
*/
|
|
25
|
+
export declare class Version {
|
|
26
|
+
/**
|
|
27
|
+
* Compares two semantic version strings to determine their precedence.
|
|
28
|
+
* Supports basic SemVer standards (`major.minor.patch[-prerelease]`).
|
|
29
|
+
*
|
|
30
|
+
* @param version The source version string to compare.
|
|
31
|
+
* @param withVersion The target version string to compare against.
|
|
32
|
+
* @returns `1` if the source version is newer, `-1` if the target is newer, or `0` if they are identical.
|
|
33
|
+
*/
|
|
34
|
+
static compare(version: string, withVersion: string): number;
|
|
35
|
+
/**
|
|
36
|
+
* Determines whether transitioning from an old version to a new version introduces breaking changes.
|
|
37
|
+
* Breaking changes are defined as a change in the major version component (e.g., `1.x.x` to `2.x.x`).
|
|
38
|
+
*
|
|
39
|
+
* @param oldV The existing/old version string.
|
|
40
|
+
* @param newV The incoming/new version string.
|
|
41
|
+
* @returns `true` if a major upgrade bump occurs, `false` otherwise.
|
|
42
|
+
*/
|
|
43
|
+
static isBreakingChange(oldV: string, newV: string): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Performs a comprehensive version shift analysis, providing flag indicators.
|
|
46
|
+
*
|
|
47
|
+
* @param oldV The existing reference version.
|
|
48
|
+
* @param newV The target version to analyze.
|
|
49
|
+
* @returns A structured result state describing the upgrade relationship.
|
|
50
|
+
*/
|
|
51
|
+
static analyzeVersion(oldV: string, newV: string): VersionCheckResult;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"capacitor-file-picker": "CapacitorFilePicker",
|
|
3
|
+
"@capacitor/core": "Capacitor",
|
|
4
|
+
"@capacitor-community/bluetooth-le": "CapacitorBluetooth",
|
|
5
|
+
"@capacitor-community/camera-preview": "CapacitorCameraPreview",
|
|
6
|
+
"@capacitor/camera": "CapacitorCamera",
|
|
7
|
+
"@capacitor/clipboard": "CapacitorClipboard",
|
|
8
|
+
"@capacitor/filesystem": "CapacitorFileSystem",
|
|
9
|
+
"@capacitor/haptics": "CapacitorHaptic",
|
|
10
|
+
"@capacitor/local-notifications": "CapacitorLocalNotification",
|
|
11
|
+
"@capacitor/network": "CapacitorNetwork",
|
|
12
|
+
"@capacitor-community/sqlite": "CapacitorSQLite",
|
|
13
|
+
"@capacitor/device": "Device",
|
|
14
|
+
"@capacitor/geolocation": "CapacitorGeolocation",
|
|
15
|
+
"@capacitor-community/contacts": "CapacitorContacts",
|
|
16
|
+
"@awesome-cordova-plugins/screen-orientation": "CapacitorScreenOrientation",
|
|
17
|
+
"electron": "require('electron')",
|
|
18
|
+
"react": "React",
|
|
19
|
+
"react-dom": "ReactDOM",
|
|
20
|
+
"react-router-dom": "ReactRouterDOM",
|
|
21
|
+
"@tanstack/react-query": "ReactQuery",
|
|
22
|
+
"@tanstack/react-virtual": "ReactVirtual",
|
|
23
|
+
"@quan-erp-capacitor-pluigins/background-location": "BackgroundLocationService",
|
|
24
|
+
"@quan-erp/shared-frontend-core": "SharedFrontendCore",
|
|
25
|
+
"@quan-erp/shared-ui": "SharedUI",
|
|
26
|
+
"@quan-erp/shared-types": "SharedTypes",
|
|
27
|
+
"@quan-erp/web-thermal-printer": "QuanERPWebThermalPrinter",
|
|
28
|
+
"@quan-erp/base-frontend": "QuanERPBase",
|
|
29
|
+
"axios": "Axios",
|
|
30
|
+
"@icon-park/react": "IconPark",
|
|
31
|
+
"react-hook-form": "ReactForm",
|
|
32
|
+
"zod": "Zod",
|
|
33
|
+
"zustand": "Zustand",
|
|
34
|
+
"@hookform/resolvers": "HookFormResolver",
|
|
35
|
+
"dayjs": "Dayjs",
|
|
36
|
+
"sonner": "Sonner",
|
|
37
|
+
"date-fns": "DateFns",
|
|
38
|
+
"uuid": "Uuid",
|
|
39
|
+
"tailwind-merge": "TailwindMerge",
|
|
40
|
+
"lucide-react": "LucidReact",
|
|
41
|
+
"lodash": "Lodash",
|
|
42
|
+
"@tanstack/react-table": "TanStackReactTable",
|
|
43
|
+
"@xyflow/react": "ReactFlow",
|
|
44
|
+
"@dnd-kit/core": "DnDCore",
|
|
45
|
+
"@dnd-kit/sortable": "DnDSortable",
|
|
46
|
+
"@dnd-kit/utilities": "DnDUtilities",
|
|
47
|
+
"@dnd-kit/accessibility": "DnDAccessibility",
|
|
48
|
+
"exceljs": "ExcelJs",
|
|
49
|
+
"nextstepjs": "NextStepJs",
|
|
50
|
+
"react-qr-barcode-scanner": "ReactQRBarcodeScanner",
|
|
51
|
+
"@zxing/library": "ZxingLibrary",
|
|
52
|
+
"@zxing/text-encoding": "ZxingTextEncoding",
|
|
53
|
+
"react-photo-view": "ReactPhotoView",
|
|
54
|
+
"web-haptics": "WebHaptics",
|
|
55
|
+
"recharts": "Recharts",
|
|
56
|
+
"html2canvas": "Html2Canvas",
|
|
57
|
+
"@fingerprintjs/fingerprintjs": "FingerprintJS",
|
|
58
|
+
"firebase/messaging": "FirebaseMessaging",
|
|
59
|
+
"firebase": "Firebase",
|
|
60
|
+
"qrcode.react": "QrcodeReact"
|
|
61
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quan-erp/shared-frontend-core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"publish:registry": "npm run build && npm publish --tag beta",
|
|
7
|
+
"publish:npm-registry": "npm run build && npm publish --access public --registry https://registry.npmjs.org/ --@quan-erp:registry=https://registry.npmjs.org/",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"build": "rollup -c",
|
|
10
|
+
"dev": "rollup -c -w"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [],
|
|
13
|
+
"author": "jianshangquan",
|
|
14
|
+
"license": "UNLICENSED",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"./external-global-rollup-config.json",
|
|
19
|
+
"!**/*.map"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"require": "./dist/index.cjs",
|
|
25
|
+
"types": "./dist/types/index.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./external-global-rollup-config.json": "./external-global-rollup-config.json"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
31
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
32
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
34
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
35
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
36
|
+
"@types/bcrypt": "^6.0.0",
|
|
37
|
+
"@types/cors": "^2.8.19",
|
|
38
|
+
"@types/express": "^5.0.5",
|
|
39
|
+
"@types/node": "^24.9.2",
|
|
40
|
+
"@types/node-cron": "^3.0.11",
|
|
41
|
+
"@types/redis": "^4.0.10",
|
|
42
|
+
"builtin-modules": "^5.0.0",
|
|
43
|
+
"javascript-obfuscator": "^4.1.1",
|
|
44
|
+
"rollup": "^4.62.2",
|
|
45
|
+
"tslib": "^2.8.1",
|
|
46
|
+
"typescript": "^6.0.2"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@awesome-cordova-plugins/screen-orientation": "^8.1.0",
|
|
50
|
+
"@capacitor-community/bluetooth-le": "^7.2.0",
|
|
51
|
+
"@capacitor-community/camera-preview": "^7.0.2",
|
|
52
|
+
"@capacitor-community/sqlite": "^7.0.2",
|
|
53
|
+
"@capacitor/camera": "^7.0.2",
|
|
54
|
+
"@capacitor/clipboard": "^7.0.2",
|
|
55
|
+
"@capacitor/device": "^7.0.2",
|
|
56
|
+
"@capacitor/filesystem": "^7.1.4",
|
|
57
|
+
"@capacitor/geolocation": "^7.1.6",
|
|
58
|
+
"@capacitor/haptics": "^7.0.2",
|
|
59
|
+
"@capacitor/local-notifications": "^7.0.3",
|
|
60
|
+
"@capacitor/network": "^7.0.2",
|
|
61
|
+
"@capacitor/preferences": "^7.0.2",
|
|
62
|
+
"@fingerprintjs/fingerprintjs": "^4.6.2",
|
|
63
|
+
"@quan-erp-capacitor-pluigins/background-location": "^0.0.1-beta.1",
|
|
64
|
+
"@quan-erp/shared-types": "^1.0.0-beta.65",
|
|
65
|
+
"@tanstack/react-query": "^5.90.10",
|
|
66
|
+
"axios": "^1.13.2",
|
|
67
|
+
"react": "19.2.6",
|
|
68
|
+
"react-dom": "19.2.6",
|
|
69
|
+
"react-router-dom": "19.2.6",
|
|
70
|
+
"web-haptics": "^0.0.6",
|
|
71
|
+
"zustand": "^5.0.9"
|
|
72
|
+
}
|
|
73
|
+
}
|