@iyulab/enterprise 0.1.0 → 0.2.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/ApiConfig.d.ts +71 -0
- package/dist/FormRow.d.ts +5 -0
- package/dist/FormSection.d.ts +5 -0
- package/dist/helpers/CurrencyHelper.d.ts +37 -0
- package/dist/helpers/DateHelper.d.ts +61 -0
- package/dist/helpers/ProgressHelper.d.ts +42 -0
- package/dist/helpers/UrgencyHelper.d.ts +62 -0
- package/dist/helpers/index.d.ts +8 -0
- package/dist/index.d.ts +13 -290
- package/dist/index.js +44 -115468
- package/package.json +7 -7
- package/dist/App-DlLPshVy.js +0 -5309
- package/dist/SidebarLayout-BeyWZOJC.js +0 -823
- package/dist/chunk-BVTlhY3a.js +0 -24
- package/dist/client-DXiAuv0q.js +0 -23737
- package/dist/react-dom-CIxSVHb8.js +0 -1460
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API configuration and environment-based endpoint management
|
|
3
|
+
*
|
|
4
|
+
* Supports both development (proxy) and production (same-origin) deployments
|
|
5
|
+
*/
|
|
6
|
+
export interface ApiConfigOptions {
|
|
7
|
+
/** Base URL for all API requests (default: '') */
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
/** OData endpoint prefix (default: '$data') */
|
|
10
|
+
odataPrefix?: string;
|
|
11
|
+
/** REST API endpoint prefix (default: 'api') */
|
|
12
|
+
apiPrefix?: string;
|
|
13
|
+
/** Force development mode detection */
|
|
14
|
+
isDevelopment?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class ApiConfig {
|
|
17
|
+
private static _baseUrl;
|
|
18
|
+
private static _odataPrefix;
|
|
19
|
+
private static _apiPrefix;
|
|
20
|
+
private static _isDevelopment;
|
|
21
|
+
/**
|
|
22
|
+
* Initialize API configuration
|
|
23
|
+
* @param options Configuration options
|
|
24
|
+
*/
|
|
25
|
+
static initialize(options?: ApiConfigOptions): void;
|
|
26
|
+
/**
|
|
27
|
+
* API Base URL (always relative path by default)
|
|
28
|
+
*/
|
|
29
|
+
static get baseUrl(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Manually set Base URL (for testing or custom configurations)
|
|
32
|
+
*/
|
|
33
|
+
static setBaseUrl(url: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* OData endpoint prefix
|
|
36
|
+
*/
|
|
37
|
+
static get odataPrefix(): string;
|
|
38
|
+
/**
|
|
39
|
+
* REST API endpoint prefix
|
|
40
|
+
*/
|
|
41
|
+
static get apiPrefix(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Generate OData endpoint URL
|
|
44
|
+
* @param entityName Entity name for OData endpoint
|
|
45
|
+
*/
|
|
46
|
+
static getODataUrl(entityName: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* Generate REST API endpoint URL
|
|
49
|
+
* @param endpoint API endpoint path
|
|
50
|
+
*/
|
|
51
|
+
static getApiUrl(endpoint: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* Generate full URL with query parameters
|
|
54
|
+
* @param endpoint Endpoint path
|
|
55
|
+
* @param params Query parameters
|
|
56
|
+
*/
|
|
57
|
+
static getUrlWithParams(endpoint: string, params: Record<string, string | number | boolean | undefined>): string;
|
|
58
|
+
/**
|
|
59
|
+
* Check if running in development environment
|
|
60
|
+
* Tries to detect from various bundler environments
|
|
61
|
+
*/
|
|
62
|
+
static get isDevelopment(): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Check if running in production environment
|
|
65
|
+
*/
|
|
66
|
+
static get isProduction(): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Reset configuration to defaults
|
|
69
|
+
*/
|
|
70
|
+
static reset(): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Currency formatting utility class
|
|
3
|
+
*/
|
|
4
|
+
export declare class CurrencyHelper {
|
|
5
|
+
/**
|
|
6
|
+
* Format amount as currency string
|
|
7
|
+
* @param amount - Amount to format
|
|
8
|
+
* @param currency - Currency code (default: 'KRW')
|
|
9
|
+
* @param locale - Locale for formatting (default: 'ko-KR')
|
|
10
|
+
*/
|
|
11
|
+
static formatCurrency(amount: number | null | undefined, currency?: string, locale?: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Format amount as Korean Won (KRW)
|
|
14
|
+
*/
|
|
15
|
+
static formatKRW(amount: number | null | undefined): string;
|
|
16
|
+
/**
|
|
17
|
+
* Format amount as US Dollar (USD)
|
|
18
|
+
*/
|
|
19
|
+
static formatUSD(amount: number | null | undefined): string;
|
|
20
|
+
/**
|
|
21
|
+
* Format amount as Euro (EUR)
|
|
22
|
+
*/
|
|
23
|
+
static formatEUR(amount: number | null | undefined): string;
|
|
24
|
+
/**
|
|
25
|
+
* Format amount as Japanese Yen (JPY)
|
|
26
|
+
*/
|
|
27
|
+
static formatJPY(amount: number | null | undefined): string;
|
|
28
|
+
/**
|
|
29
|
+
* Format amount as Chinese Yuan (CNY)
|
|
30
|
+
*/
|
|
31
|
+
static formatCNY(amount: number | null | undefined): string;
|
|
32
|
+
/**
|
|
33
|
+
* Parse currency string to number
|
|
34
|
+
* @param value - Currency string to parse
|
|
35
|
+
*/
|
|
36
|
+
static parseCurrency(value: string): number;
|
|
37
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Date manipulation and formatting utility class
|
|
3
|
+
*/
|
|
4
|
+
export declare class DateHelper {
|
|
5
|
+
/**
|
|
6
|
+
* Format date to YYYY-MM-DD string
|
|
7
|
+
* @param date - Date to format (Date object or ISO string)
|
|
8
|
+
*/
|
|
9
|
+
static formatDate(date: Date | string | null | undefined): string;
|
|
10
|
+
/**
|
|
11
|
+
* Format date to localized string
|
|
12
|
+
* @param date - Date to format
|
|
13
|
+
* @param locale - Locale for formatting (default: 'ko-KR')
|
|
14
|
+
* @param options - Intl.DateTimeFormat options
|
|
15
|
+
*/
|
|
16
|
+
static formatLocalDate(date: Date | string | null | undefined, locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
17
|
+
/**
|
|
18
|
+
* Format datetime to YYYY-MM-DD HH:mm string
|
|
19
|
+
* @param date - Date to format
|
|
20
|
+
*/
|
|
21
|
+
static formatDateTime(date: Date | string | null | undefined): string;
|
|
22
|
+
/**
|
|
23
|
+
* Calculate days difference between two dates
|
|
24
|
+
* @param startDate - Start date
|
|
25
|
+
* @param endDate - End date
|
|
26
|
+
* @returns Number of days (positive if endDate > startDate)
|
|
27
|
+
*/
|
|
28
|
+
static getDaysDifference(startDate: Date | string, endDate: Date | string): number;
|
|
29
|
+
/**
|
|
30
|
+
* Calculate days from now to target date
|
|
31
|
+
* @param targetDate - Target date
|
|
32
|
+
* @returns Days remaining (negative if overdue)
|
|
33
|
+
*/
|
|
34
|
+
static getDaysFromNow(targetDate: Date | string): number;
|
|
35
|
+
/**
|
|
36
|
+
* Check if date is today
|
|
37
|
+
*/
|
|
38
|
+
static isToday(date: Date | string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Check if date is in the past
|
|
41
|
+
*/
|
|
42
|
+
static isPast(date: Date | string): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Check if date is in the future
|
|
45
|
+
*/
|
|
46
|
+
static isFuture(date: Date | string): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Add days to date
|
|
49
|
+
* @param date - Base date
|
|
50
|
+
* @param days - Number of days to add (can be negative)
|
|
51
|
+
*/
|
|
52
|
+
static addDays(date: Date | string, days: number): Date;
|
|
53
|
+
/**
|
|
54
|
+
* Get start of day (00:00:00)
|
|
55
|
+
*/
|
|
56
|
+
static startOfDay(date: Date | string): Date;
|
|
57
|
+
/**
|
|
58
|
+
* Get end of day (23:59:59.999)
|
|
59
|
+
*/
|
|
60
|
+
static endOfDay(date: Date | string): Date;
|
|
61
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress bar and percentage utility class
|
|
3
|
+
*/
|
|
4
|
+
export declare class ProgressHelper {
|
|
5
|
+
/**
|
|
6
|
+
* Get color based on progress percentage
|
|
7
|
+
* @param progress - Progress value (0-100)
|
|
8
|
+
* @param thresholds - Custom thresholds { high, medium }
|
|
9
|
+
*/
|
|
10
|
+
static getProgressColor(progress: number, thresholds?: {
|
|
11
|
+
high?: number;
|
|
12
|
+
medium?: number;
|
|
13
|
+
}): string;
|
|
14
|
+
/**
|
|
15
|
+
* Validate and clamp progress to 0-100 range
|
|
16
|
+
* @param progress - Raw progress value
|
|
17
|
+
* @param round - Whether to round to integer (default: true)
|
|
18
|
+
*/
|
|
19
|
+
static validateProgress(progress: number | null | undefined, round?: boolean): number;
|
|
20
|
+
/**
|
|
21
|
+
* Convert decimal ratio to percentage
|
|
22
|
+
* @param ratio - Decimal ratio (0-1)
|
|
23
|
+
* @param round - Whether to round to integer
|
|
24
|
+
*/
|
|
25
|
+
static ratioToPercent(ratio: number | null | undefined, round?: boolean): number;
|
|
26
|
+
/**
|
|
27
|
+
* Get progress label text
|
|
28
|
+
* @param progress - Progress value (0-100)
|
|
29
|
+
*/
|
|
30
|
+
static getProgressLabel(progress: number): string;
|
|
31
|
+
/**
|
|
32
|
+
* Calculate progress from current and total values
|
|
33
|
+
* @param current - Current value
|
|
34
|
+
* @param total - Total value
|
|
35
|
+
*/
|
|
36
|
+
static calculateProgress(current: number, total: number): number;
|
|
37
|
+
/**
|
|
38
|
+
* Get CSS gradient for progress bar
|
|
39
|
+
* @param progress - Progress value (0-100)
|
|
40
|
+
*/
|
|
41
|
+
static getProgressGradient(progress: number): string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Urgency level types
|
|
3
|
+
*/
|
|
4
|
+
export type UrgencyLevel = 'overdue' | 'critical' | 'urgent' | 'soon' | 'normal';
|
|
5
|
+
/**
|
|
6
|
+
* Urgency configuration
|
|
7
|
+
*/
|
|
8
|
+
export interface UrgencyConfig {
|
|
9
|
+
/** Days threshold for critical urgency (default: 1) */
|
|
10
|
+
critical?: number;
|
|
11
|
+
/** Days threshold for urgent level (default: 3) */
|
|
12
|
+
urgent?: number;
|
|
13
|
+
/** Days threshold for soon level (default: 7) */
|
|
14
|
+
soon?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Urgency calculation and display utility class
|
|
18
|
+
*/
|
|
19
|
+
export declare class UrgencyHelper {
|
|
20
|
+
private static defaultConfig;
|
|
21
|
+
/**
|
|
22
|
+
* Get urgency color based on days remaining
|
|
23
|
+
* @param daysRemaining - Days until deadline (negative if overdue)
|
|
24
|
+
* @param config - Custom urgency thresholds
|
|
25
|
+
*/
|
|
26
|
+
static getUrgencyColor(daysRemaining: number | null | undefined, config?: UrgencyConfig): string;
|
|
27
|
+
/**
|
|
28
|
+
* Get urgency level based on days remaining
|
|
29
|
+
* @param daysRemaining - Days until deadline
|
|
30
|
+
* @param config - Custom urgency thresholds
|
|
31
|
+
*/
|
|
32
|
+
static getUrgencyLevel(daysRemaining: number | null | undefined, config?: UrgencyConfig): UrgencyLevel;
|
|
33
|
+
/**
|
|
34
|
+
* Get urgency text label
|
|
35
|
+
* @param daysRemaining - Days until deadline
|
|
36
|
+
* @param config - Custom urgency thresholds
|
|
37
|
+
* @param labels - Custom label text
|
|
38
|
+
*/
|
|
39
|
+
static getUrgencyText(daysRemaining: number | null | undefined, config?: UrgencyConfig, labels?: Partial<Record<UrgencyLevel, string>>): string;
|
|
40
|
+
/**
|
|
41
|
+
* Get background and text color for urgency badge
|
|
42
|
+
* @param daysRemaining - Days until deadline
|
|
43
|
+
* @param config - Custom urgency thresholds
|
|
44
|
+
*/
|
|
45
|
+
static getUrgencyBadgeColors(daysRemaining: number | null | undefined, config?: UrgencyConfig): {
|
|
46
|
+
bg: string;
|
|
47
|
+
text: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Format days remaining as display text
|
|
51
|
+
* @param daysRemaining - Days until deadline
|
|
52
|
+
*/
|
|
53
|
+
static formatDaysRemaining(daysRemaining: number | null | undefined): string;
|
|
54
|
+
/**
|
|
55
|
+
* Check if deadline is overdue
|
|
56
|
+
*/
|
|
57
|
+
static isOverdue(daysRemaining: number | null | undefined): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Check if deadline requires attention
|
|
60
|
+
*/
|
|
61
|
+
static needsAttention(daysRemaining: number | null | undefined, config?: UrgencyConfig): boolean;
|
|
62
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,290 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
static get baseUrl(): string;
|
|
15
|
-
/**
|
|
16
|
-
* Manually set Base URL (for testing or custom configurations)
|
|
17
|
-
*/
|
|
18
|
-
static setBaseUrl(url: string): void;
|
|
19
|
-
/**
|
|
20
|
-
* OData endpoint prefix
|
|
21
|
-
*/
|
|
22
|
-
static get odataPrefix(): string;
|
|
23
|
-
/**
|
|
24
|
-
* REST API endpoint prefix
|
|
25
|
-
*/
|
|
26
|
-
static get apiPrefix(): string;
|
|
27
|
-
/**
|
|
28
|
-
* Generate OData endpoint URL
|
|
29
|
-
* @param entityName Entity name for OData endpoint
|
|
30
|
-
*/
|
|
31
|
-
static getODataUrl(entityName: string): string;
|
|
32
|
-
/**
|
|
33
|
-
* Generate REST API endpoint URL
|
|
34
|
-
* @param endpoint API endpoint path
|
|
35
|
-
*/
|
|
36
|
-
static getApiUrl(endpoint: string): string;
|
|
37
|
-
/**
|
|
38
|
-
* Generate full URL with query parameters
|
|
39
|
-
* @param endpoint Endpoint path
|
|
40
|
-
* @param params Query parameters
|
|
41
|
-
*/
|
|
42
|
-
static getUrlWithParams(endpoint: string, params: Record<string, string | number | boolean | undefined>): string;
|
|
43
|
-
/**
|
|
44
|
-
* Check if running in development environment
|
|
45
|
-
* Tries to detect from various bundler environments
|
|
46
|
-
*/
|
|
47
|
-
static get isDevelopment(): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Check if running in production environment
|
|
50
|
-
*/
|
|
51
|
-
static get isProduction(): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Reset configuration to defaults
|
|
54
|
-
*/
|
|
55
|
-
static reset(): void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* API configuration and environment-based endpoint management
|
|
60
|
-
*
|
|
61
|
-
* Supports both development (proxy) and production (same-origin) deployments
|
|
62
|
-
*/
|
|
63
|
-
export declare interface ApiConfigOptions {
|
|
64
|
-
/** Base URL for all API requests (default: '') */
|
|
65
|
-
baseUrl?: string;
|
|
66
|
-
/** OData endpoint prefix (default: '$data') */
|
|
67
|
-
odataPrefix?: string;
|
|
68
|
-
/** REST API endpoint prefix (default: 'api') */
|
|
69
|
-
apiPrefix?: string;
|
|
70
|
-
/** Force development mode detection */
|
|
71
|
-
isDevelopment?: boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Currency formatting utility class
|
|
76
|
-
*/
|
|
77
|
-
export declare class CurrencyHelper {
|
|
78
|
-
/**
|
|
79
|
-
* Format amount as currency string
|
|
80
|
-
* @param amount - Amount to format
|
|
81
|
-
* @param currency - Currency code (default: 'KRW')
|
|
82
|
-
* @param locale - Locale for formatting (default: 'ko-KR')
|
|
83
|
-
*/
|
|
84
|
-
static formatCurrency(amount: number | null | undefined, currency?: string, locale?: string): string;
|
|
85
|
-
/**
|
|
86
|
-
* Format amount as Korean Won (KRW)
|
|
87
|
-
*/
|
|
88
|
-
static formatKRW(amount: number | null | undefined): string;
|
|
89
|
-
/**
|
|
90
|
-
* Format amount as US Dollar (USD)
|
|
91
|
-
*/
|
|
92
|
-
static formatUSD(amount: number | null | undefined): string;
|
|
93
|
-
/**
|
|
94
|
-
* Format amount as Euro (EUR)
|
|
95
|
-
*/
|
|
96
|
-
static formatEUR(amount: number | null | undefined): string;
|
|
97
|
-
/**
|
|
98
|
-
* Format amount as Japanese Yen (JPY)
|
|
99
|
-
*/
|
|
100
|
-
static formatJPY(amount: number | null | undefined): string;
|
|
101
|
-
/**
|
|
102
|
-
* Format amount as Chinese Yuan (CNY)
|
|
103
|
-
*/
|
|
104
|
-
static formatCNY(amount: number | null | undefined): string;
|
|
105
|
-
/**
|
|
106
|
-
* Parse currency string to number
|
|
107
|
-
* @param value - Currency string to parse
|
|
108
|
-
*/
|
|
109
|
-
static parseCurrency(value: string): number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Date manipulation and formatting utility class
|
|
114
|
-
*/
|
|
115
|
-
export declare class DateHelper {
|
|
116
|
-
/**
|
|
117
|
-
* Format date to YYYY-MM-DD string
|
|
118
|
-
* @param date - Date to format (Date object or ISO string)
|
|
119
|
-
*/
|
|
120
|
-
static formatDate(date: Date | string | null | undefined): string;
|
|
121
|
-
/**
|
|
122
|
-
* Format date to localized string
|
|
123
|
-
* @param date - Date to format
|
|
124
|
-
* @param locale - Locale for formatting (default: 'ko-KR')
|
|
125
|
-
* @param options - Intl.DateTimeFormat options
|
|
126
|
-
*/
|
|
127
|
-
static formatLocalDate(date: Date | string | null | undefined, locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
128
|
-
/**
|
|
129
|
-
* Format datetime to YYYY-MM-DD HH:mm string
|
|
130
|
-
* @param date - Date to format
|
|
131
|
-
*/
|
|
132
|
-
static formatDateTime(date: Date | string | null | undefined): string;
|
|
133
|
-
/**
|
|
134
|
-
* Calculate days difference between two dates
|
|
135
|
-
* @param startDate - Start date
|
|
136
|
-
* @param endDate - End date
|
|
137
|
-
* @returns Number of days (positive if endDate > startDate)
|
|
138
|
-
*/
|
|
139
|
-
static getDaysDifference(startDate: Date | string, endDate: Date | string): number;
|
|
140
|
-
/**
|
|
141
|
-
* Calculate days from now to target date
|
|
142
|
-
* @param targetDate - Target date
|
|
143
|
-
* @returns Days remaining (negative if overdue)
|
|
144
|
-
*/
|
|
145
|
-
static getDaysFromNow(targetDate: Date | string): number;
|
|
146
|
-
/**
|
|
147
|
-
* Check if date is today
|
|
148
|
-
*/
|
|
149
|
-
static isToday(date: Date | string): boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Check if date is in the past
|
|
152
|
-
*/
|
|
153
|
-
static isPast(date: Date | string): boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Check if date is in the future
|
|
156
|
-
*/
|
|
157
|
-
static isFuture(date: Date | string): boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Add days to date
|
|
160
|
-
* @param date - Base date
|
|
161
|
-
* @param days - Number of days to add (can be negative)
|
|
162
|
-
*/
|
|
163
|
-
static addDays(date: Date | string, days: number): Date;
|
|
164
|
-
/**
|
|
165
|
-
* Get start of day (00:00:00)
|
|
166
|
-
*/
|
|
167
|
-
static startOfDay(date: Date | string): Date;
|
|
168
|
-
/**
|
|
169
|
-
* Get end of day (23:59:59.999)
|
|
170
|
-
*/
|
|
171
|
-
static endOfDay(date: Date | string): Date;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Progress bar and percentage utility class
|
|
176
|
-
*/
|
|
177
|
-
export declare class ProgressHelper {
|
|
178
|
-
/**
|
|
179
|
-
* Get color based on progress percentage
|
|
180
|
-
* @param progress - Progress value (0-100)
|
|
181
|
-
* @param thresholds - Custom thresholds { high, medium }
|
|
182
|
-
*/
|
|
183
|
-
static getProgressColor(progress: number, thresholds?: {
|
|
184
|
-
high?: number;
|
|
185
|
-
medium?: number;
|
|
186
|
-
}): string;
|
|
187
|
-
/**
|
|
188
|
-
* Validate and clamp progress to 0-100 range
|
|
189
|
-
* @param progress - Raw progress value
|
|
190
|
-
* @param round - Whether to round to integer (default: true)
|
|
191
|
-
*/
|
|
192
|
-
static validateProgress(progress: number | null | undefined, round?: boolean): number;
|
|
193
|
-
/**
|
|
194
|
-
* Convert decimal ratio to percentage
|
|
195
|
-
* @param ratio - Decimal ratio (0-1)
|
|
196
|
-
* @param round - Whether to round to integer
|
|
197
|
-
*/
|
|
198
|
-
static ratioToPercent(ratio: number | null | undefined, round?: boolean): number;
|
|
199
|
-
/**
|
|
200
|
-
* Get progress label text
|
|
201
|
-
* @param progress - Progress value (0-100)
|
|
202
|
-
*/
|
|
203
|
-
static getProgressLabel(progress: number): string;
|
|
204
|
-
/**
|
|
205
|
-
* Calculate progress from current and total values
|
|
206
|
-
* @param current - Current value
|
|
207
|
-
* @param total - Total value
|
|
208
|
-
*/
|
|
209
|
-
static calculateProgress(current: number, total: number): number;
|
|
210
|
-
/**
|
|
211
|
-
* Get CSS gradient for progress bar
|
|
212
|
-
* @param progress - Progress value (0-100)
|
|
213
|
-
*/
|
|
214
|
-
static getProgressGradient(progress: number): string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Urgency configuration
|
|
219
|
-
*/
|
|
220
|
-
export declare interface UrgencyConfig {
|
|
221
|
-
/** Days threshold for critical urgency (default: 1) */
|
|
222
|
-
critical?: number;
|
|
223
|
-
/** Days threshold for urgent level (default: 3) */
|
|
224
|
-
urgent?: number;
|
|
225
|
-
/** Days threshold for soon level (default: 7) */
|
|
226
|
-
soon?: number;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Urgency calculation and display utility class
|
|
231
|
-
*/
|
|
232
|
-
export declare class UrgencyHelper {
|
|
233
|
-
private static defaultConfig;
|
|
234
|
-
/**
|
|
235
|
-
* Get urgency color based on days remaining
|
|
236
|
-
* @param daysRemaining - Days until deadline (negative if overdue)
|
|
237
|
-
* @param config - Custom urgency thresholds
|
|
238
|
-
*/
|
|
239
|
-
static getUrgencyColor(daysRemaining: number | null | undefined, config?: UrgencyConfig): string;
|
|
240
|
-
/**
|
|
241
|
-
* Get urgency level based on days remaining
|
|
242
|
-
* @param daysRemaining - Days until deadline
|
|
243
|
-
* @param config - Custom urgency thresholds
|
|
244
|
-
*/
|
|
245
|
-
static getUrgencyLevel(daysRemaining: number | null | undefined, config?: UrgencyConfig): UrgencyLevel;
|
|
246
|
-
/**
|
|
247
|
-
* Get urgency text label
|
|
248
|
-
* @param daysRemaining - Days until deadline
|
|
249
|
-
* @param config - Custom urgency thresholds
|
|
250
|
-
* @param labels - Custom label text
|
|
251
|
-
*/
|
|
252
|
-
static getUrgencyText(daysRemaining: number | null | undefined, config?: UrgencyConfig, labels?: Partial<Record<UrgencyLevel, string>>): string;
|
|
253
|
-
/**
|
|
254
|
-
* Get background and text color for urgency badge
|
|
255
|
-
* @param daysRemaining - Days until deadline
|
|
256
|
-
* @param config - Custom urgency thresholds
|
|
257
|
-
*/
|
|
258
|
-
static getUrgencyBadgeColors(daysRemaining: number | null | undefined, config?: UrgencyConfig): {
|
|
259
|
-
bg: string;
|
|
260
|
-
text: string;
|
|
261
|
-
};
|
|
262
|
-
/**
|
|
263
|
-
* Format days remaining as display text
|
|
264
|
-
* @param daysRemaining - Days until deadline
|
|
265
|
-
*/
|
|
266
|
-
static formatDaysRemaining(daysRemaining: number | null | undefined): string;
|
|
267
|
-
/**
|
|
268
|
-
* Check if deadline is overdue
|
|
269
|
-
*/
|
|
270
|
-
static isOverdue(daysRemaining: number | null | undefined): boolean;
|
|
271
|
-
/**
|
|
272
|
-
* Check if deadline requires attention
|
|
273
|
-
*/
|
|
274
|
-
static needsAttention(daysRemaining: number | null | undefined, config?: UrgencyConfig): boolean;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Urgency level types
|
|
279
|
-
*/
|
|
280
|
-
export declare type UrgencyLevel = 'overdue' | 'critical' | 'urgent' | 'soon' | 'normal';
|
|
281
|
-
|
|
282
|
-
/** Package version */
|
|
283
|
-
export declare const VERSION = "0.1.0";
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
export * from "@iyulab/components";
|
|
287
|
-
export * from "@iyulab/data-components";
|
|
288
|
-
export * from "@iyulab/modern-app";
|
|
289
|
-
|
|
290
|
-
export { }
|
|
1
|
+
/**
|
|
2
|
+
* @iyulab/enterprise
|
|
3
|
+
* Enterprise utilities and components for iyulab framework
|
|
4
|
+
*/
|
|
5
|
+
export { FormSection } from './FormSection';
|
|
6
|
+
export { FormRow } from './FormRow';
|
|
7
|
+
/** Package version */
|
|
8
|
+
export declare const VERSION = "0.2.0";
|
|
9
|
+
export * from '@iyulab/components';
|
|
10
|
+
export * from '@iyulab/data-components';
|
|
11
|
+
export * from '@iyulab/modern-app';
|
|
12
|
+
export * from './helpers';
|
|
13
|
+
export * from './ApiConfig';
|