@bwg-ui/core 1.1.15 → 1.1.17
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/chunks/{BwgLargeUploader-Nx2-wiD8.js → BwgLargeUploader-CBwGaHh6.js} +69 -70
- package/dist/chunks/BwgLargeUploader-CBwGaHh6.js.map +1 -0
- package/dist/chunks/BwgLargeUploader-CVdp_rxx.cjs +3 -0
- package/dist/chunks/BwgLargeUploader-CVdp_rxx.cjs.map +1 -0
- package/dist/chunks/{SSOHandler-DrKRTb6h.js → SSOHandler-BfRH51hZ.js} +250 -249
- package/dist/chunks/SSOHandler-BfRH51hZ.js.map +1 -0
- package/dist/chunks/{SSOHandler-DZeC8Xgh.cjs → SSOHandler-DoidypM2.cjs} +43 -43
- package/dist/chunks/SSOHandler-DoidypM2.cjs.map +1 -0
- package/dist/chunks/{SearchBoxContext-Cpr9xa1S.cjs → SearchBoxContext-CNoEc4uu.cjs} +2 -2
- package/dist/chunks/{SearchBoxContext-Cpr9xa1S.cjs.map → SearchBoxContext-CNoEc4uu.cjs.map} +1 -1
- package/dist/chunks/{SearchBoxContext-BxtHF9BO.js → SearchBoxContext-CjdCL1e9.js} +10 -10
- package/dist/chunks/{SearchBoxContext-BxtHF9BO.js.map → SearchBoxContext-CjdCL1e9.js.map} +1 -1
- package/dist/chunks/ViewContainer-DUjKBgcl.cjs +36 -0
- package/dist/chunks/ViewContainer-DUjKBgcl.cjs.map +1 -0
- package/dist/chunks/{ViewContainer-v1V83KBq.js → ViewContainer-Du3IzFYo.js} +93 -60
- package/dist/chunks/ViewContainer-Du3IzFYo.js.map +1 -0
- package/dist/chunks/apiUtils-DlsnkCO4.cjs +3 -0
- package/dist/chunks/apiUtils-DlsnkCO4.cjs.map +1 -0
- package/dist/chunks/apiUtils-IzgDPO-1.js +1277 -0
- package/dist/chunks/apiUtils-IzgDPO-1.js.map +1 -0
- package/dist/chunks/{codeStore-BzT5wSd9.js → codeStore-Dsjc4uXs.js} +2 -2
- package/dist/chunks/{codeStore-BzT5wSd9.js.map → codeStore-Dsjc4uXs.js.map} +1 -1
- package/dist/chunks/{codeStore-BGLhSpAM.cjs → codeStore-HfLmmkAL.cjs} +2 -2
- package/dist/chunks/{codeStore-BGLhSpAM.cjs.map → codeStore-HfLmmkAL.cjs.map} +1 -1
- package/dist/chunks/envUtils-C4Yv5Nfg.cjs +2 -0
- package/dist/chunks/{envUtils-CduTHoHu.cjs.map → envUtils-C4Yv5Nfg.cjs.map} +1 -1
- package/dist/chunks/envUtils-Ck_DT0s_.js +43 -0
- package/dist/chunks/{envUtils-C9Gf5aek.js.map → envUtils-Ck_DT0s_.js.map} +1 -1
- package/dist/chunks/{favoriteStore-C9utQ6sm.js → favoriteStore-C0o6Sj55.js} +6 -6
- package/dist/chunks/favoriteStore-C0o6Sj55.js.map +1 -0
- package/dist/chunks/{favoriteStore-3YceyayF.cjs → favoriteStore-DOz2rAJu.cjs} +2 -2
- package/dist/chunks/favoriteStore-DOz2rAJu.cjs.map +1 -0
- package/dist/chunks/popupStore-Cm5utmtA.cjs +2 -0
- package/dist/chunks/popupStore-Cm5utmtA.cjs.map +1 -0
- package/dist/chunks/popupStore-D6b6b5-T.js +92 -0
- package/dist/chunks/popupStore-D6b6b5-T.js.map +1 -0
- package/dist/chunks/usePopup-BG24CocH.cjs +2 -0
- package/dist/chunks/usePopup-BG24CocH.cjs.map +1 -0
- package/dist/chunks/usePopup-Dm-UyUbV.js +109 -0
- package/dist/chunks/usePopup-Dm-UyUbV.js.map +1 -0
- package/dist/components/common/BwgButtonGroup.d.ts.map +1 -1
- package/dist/components/common/BwgGrid.d.ts +5 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
- package/dist/components/core/BwgLargeUploader.d.ts.map +1 -1
- package/dist/components/core/BwgMaskedInput.d.ts +1 -1
- package/dist/components/core/BwgMaskedInput.d.ts.map +1 -1
- package/dist/components/core/BwgMaskedPicker.d.ts +1 -1
- package/dist/components/core/BwgMaskedPicker.d.ts.map +1 -1
- package/dist/components/core/BwgNumber.d.ts +0 -1
- package/dist/components/core/BwgNumber.d.ts.map +1 -1
- package/dist/components/core/BwgUploader.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/layout/PrivateProtectedOverlay.d.ts +2 -1
- package/dist/components/layout/PrivateProtectedOverlay.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +7 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +218 -313
- package/dist/index.js.map +1 -1
- package/dist/provider/contexts/index.d.ts +0 -1
- package/dist/provider/contexts/index.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +24 -31
- package/dist/stores/favoriteStore.d.ts.map +1 -1
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +8 -8
- package/dist/utils/commonUtils.d.ts +236 -37
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/{FileUtils.d.ts → fileUtils.d.ts} +9 -1
- package/dist/utils/fileUtils.d.ts.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +381 -15
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +215 -208
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/notificationUtils.d.ts +5 -5
- package/dist/utils/notificationUtils.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs +0 -3
- package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs.map +0 -1
- package/dist/chunks/BwgLargeUploader-Nx2-wiD8.js.map +0 -1
- package/dist/chunks/FileUtils-Bbz3AvQn.js +0 -141
- package/dist/chunks/FileUtils-Bbz3AvQn.js.map +0 -1
- package/dist/chunks/FileUtils-D73GVmB8.cjs +0 -2
- package/dist/chunks/FileUtils-D73GVmB8.cjs.map +0 -1
- package/dist/chunks/SSOHandler-DZeC8Xgh.cjs.map +0 -1
- package/dist/chunks/SSOHandler-DrKRTb6h.js.map +0 -1
- package/dist/chunks/ViewContainer-DQl7Mb0U.cjs +0 -36
- package/dist/chunks/ViewContainer-DQl7Mb0U.cjs.map +0 -1
- package/dist/chunks/ViewContainer-v1V83KBq.js.map +0 -1
- package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs +0 -2
- package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.js.map +0 -1
- package/dist/chunks/apiUtils-C45AWfu-.js +0 -957
- package/dist/chunks/apiUtils-C45AWfu-.js.map +0 -1
- package/dist/chunks/apiUtils-Cbg6NQLv.cjs +0 -4
- package/dist/chunks/apiUtils-Cbg6NQLv.cjs.map +0 -1
- package/dist/chunks/commonUtils-BH6QwGUb.cjs +0 -2
- package/dist/chunks/commonUtils-BH6QwGUb.cjs.map +0 -1
- package/dist/chunks/commonUtils-Bb16Yqjk.js +0 -629
- package/dist/chunks/commonUtils-Bb16Yqjk.js.map +0 -1
- package/dist/chunks/envUtils-C9Gf5aek.js +0 -30
- package/dist/chunks/envUtils-CduTHoHu.cjs +0 -2
- package/dist/chunks/favoriteStore-3YceyayF.cjs.map +0 -1
- package/dist/chunks/favoriteStore-C9utQ6sm.js.map +0 -1
- package/dist/chunks/popupStore-DmFbkkjd.js +0 -98
- package/dist/chunks/popupStore-DmFbkkjd.js.map +0 -1
- package/dist/chunks/popupStore-DnWLaQ70.cjs +0 -2
- package/dist/chunks/popupStore-DnWLaQ70.cjs.map +0 -1
- package/dist/chunks/usePopup-C8FrbrDD.cjs +0 -2
- package/dist/chunks/usePopup-C8FrbrDD.cjs.map +0 -1
- package/dist/chunks/usePopup-pfh-ajfP.js +0 -241
- package/dist/chunks/usePopup-pfh-ajfP.js.map +0 -1
- package/dist/provider/contexts/UtilsContext.d.ts +0 -195
- package/dist/provider/contexts/UtilsContext.d.ts.map +0 -1
- package/dist/utils/FileUtils.d.ts.map +0 -1
- package/dist/utils/arrayUtils.d.ts +0 -35
- package/dist/utils/arrayUtils.d.ts.map +0 -1
- package/dist/utils/cookieUtils.d.ts +0 -5
- package/dist/utils/cookieUtils.d.ts.map +0 -1
- package/dist/utils/dateUtils.d.ts +0 -27
- package/dist/utils/dateUtils.d.ts.map +0 -1
- package/dist/utils/imageUtils.d.ts +0 -32
- package/dist/utils/imageUtils.d.ts.map +0 -1
- package/dist/utils/objectUtils.d.ts +0 -28
- package/dist/utils/objectUtils.d.ts.map +0 -1
- package/dist/utils/stringUtils.d.ts +0 -143
- package/dist/utils/stringUtils.d.ts.map +0 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,17 +1,383 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export type { ApiError } from './apiUtils';
|
|
8
|
-
export { convertImageFormat, generateSrcSet, getAvatarImage, getBackgroundImage, getDefaultBackgroundImage, getIconImage, getLogoImage, getOptimizedImageUrl, handleImageError, preloadImage, resizeImage, useImageLoader, } from './imageUtils';
|
|
9
|
-
export { getCrprCd, getDepartmentInfo, getDisplayName, getDprtCd, getDprtNm, getEmplNo, getRoleList, getUserDvsn, getUserId, getUserInfo, getUserNm, hasAllRoles, hasAnyRole, hasRole, hasUserInfo, isLoggedIn, } from './userUtils';
|
|
10
|
-
export { closeNotification, destroyNotifications, notificationService, showError, showInfo, showSuccess, showWarning, } from './notificationUtils';
|
|
11
|
-
export { deleteCookie, getCookie, setCookie, THEME_COOKIE_NAME, } from './cookieUtils';
|
|
12
|
-
export { showLoading, closeMessage, closeAllMessages, showApiError, showSaveSuccess, showSaveError, showDuplicateError, showRequiredError, } from './messageUtils';
|
|
13
|
-
export { downloadByFileKey } from './FileUtils';
|
|
1
|
+
export * from './apiUtils';
|
|
2
|
+
export * from './commonUtils';
|
|
3
|
+
export * from './envUtils';
|
|
4
|
+
export * from './fileUtils';
|
|
5
|
+
export * from './messageUtils';
|
|
6
|
+
export * from './notificationUtils';
|
|
14
7
|
export { default as realFormat } from './realFormat';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
8
|
+
export * from './serviceConfig';
|
|
9
|
+
export * from './userUtils';
|
|
10
|
+
import * as apiUtilsModule from './apiUtils';
|
|
11
|
+
import * as commonUtilsModule from './commonUtils';
|
|
12
|
+
import * as envUtilsModule from './envUtils';
|
|
13
|
+
import * as fileUtilsModule from './fileUtils';
|
|
14
|
+
import * as messageUtilsModule from './messageUtils';
|
|
15
|
+
import * as notificationUtilsModule from './notificationUtils';
|
|
16
|
+
import * as serviceConfigModule from './serviceConfig';
|
|
17
|
+
import * as userUtilsModule from './userUtils';
|
|
18
|
+
export declare const apiUtils: typeof apiUtilsModule;
|
|
19
|
+
export declare const commonUtils: typeof commonUtilsModule;
|
|
20
|
+
export declare const envUtils: typeof envUtilsModule;
|
|
21
|
+
export declare const fileUtils: typeof fileUtilsModule;
|
|
22
|
+
export declare const messageUtils: typeof messageUtilsModule;
|
|
23
|
+
export declare const notificationUtils: typeof notificationUtilsModule;
|
|
24
|
+
export declare const serviceUtils: typeof serviceConfigModule;
|
|
25
|
+
export declare const userUtils: typeof userUtilsModule;
|
|
26
|
+
export declare const bwgUtils: {
|
|
27
|
+
realFormat: {
|
|
28
|
+
left: string;
|
|
29
|
+
near: string;
|
|
30
|
+
right: string;
|
|
31
|
+
far: string;
|
|
32
|
+
center: string;
|
|
33
|
+
number: string;
|
|
34
|
+
number2: string;
|
|
35
|
+
number3: string;
|
|
36
|
+
number4: string;
|
|
37
|
+
number5: string;
|
|
38
|
+
editNumber: {
|
|
39
|
+
type: string;
|
|
40
|
+
editFormat: string;
|
|
41
|
+
};
|
|
42
|
+
editNumber2: {
|
|
43
|
+
type: string;
|
|
44
|
+
editFormat: string;
|
|
45
|
+
};
|
|
46
|
+
editNumber3: {
|
|
47
|
+
type: string;
|
|
48
|
+
editFormat: string;
|
|
49
|
+
};
|
|
50
|
+
editNumber4: {
|
|
51
|
+
type: string;
|
|
52
|
+
editFormat: string;
|
|
53
|
+
};
|
|
54
|
+
editNumber5: {
|
|
55
|
+
type: string;
|
|
56
|
+
editFormat: string;
|
|
57
|
+
};
|
|
58
|
+
editYmd: {
|
|
59
|
+
type: string;
|
|
60
|
+
datetimeFormat: string;
|
|
61
|
+
autoclose: boolean;
|
|
62
|
+
maxDate: string;
|
|
63
|
+
minDate: string;
|
|
64
|
+
showButtons: boolean;
|
|
65
|
+
mask: {
|
|
66
|
+
editMask: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
editYm: {
|
|
70
|
+
type: string;
|
|
71
|
+
datetimeFormat: string;
|
|
72
|
+
btOptions: {
|
|
73
|
+
startView: number;
|
|
74
|
+
minViewMode: number;
|
|
75
|
+
todayBtn: string;
|
|
76
|
+
language: string;
|
|
77
|
+
todayHighlight: boolean;
|
|
78
|
+
autoclose: boolean;
|
|
79
|
+
mask: {
|
|
80
|
+
editMask: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
editYy: {
|
|
85
|
+
type: string;
|
|
86
|
+
datetimeFormat: string;
|
|
87
|
+
btOptions: {
|
|
88
|
+
startView: number;
|
|
89
|
+
minViewMode: number;
|
|
90
|
+
todayBtn: string;
|
|
91
|
+
language: string;
|
|
92
|
+
todayHighlight: boolean;
|
|
93
|
+
autoclose: boolean;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
formatYmd: string;
|
|
97
|
+
formatYm: string;
|
|
98
|
+
formatYy: string;
|
|
99
|
+
lookup: {
|
|
100
|
+
type: string;
|
|
101
|
+
domainOnly: boolean;
|
|
102
|
+
};
|
|
103
|
+
lookupReadOnly: {
|
|
104
|
+
type: string;
|
|
105
|
+
readOnly: boolean;
|
|
106
|
+
};
|
|
107
|
+
maskCard: {
|
|
108
|
+
type: string;
|
|
109
|
+
mask: string;
|
|
110
|
+
};
|
|
111
|
+
formatMaskCard: string;
|
|
112
|
+
maskBsnsNo: {
|
|
113
|
+
type: string;
|
|
114
|
+
mask: string;
|
|
115
|
+
};
|
|
116
|
+
formatMaskBsnsNo: string;
|
|
117
|
+
maskRsdn: {
|
|
118
|
+
type: string;
|
|
119
|
+
mask: string;
|
|
120
|
+
};
|
|
121
|
+
formatMaskRsdn: string;
|
|
122
|
+
formatMaskRsdn2: string;
|
|
123
|
+
maskRsdn2: {
|
|
124
|
+
type: string;
|
|
125
|
+
mask: string;
|
|
126
|
+
};
|
|
127
|
+
maskYmd: {
|
|
128
|
+
type: string;
|
|
129
|
+
mask: string;
|
|
130
|
+
};
|
|
131
|
+
formatMaskYmd: string;
|
|
132
|
+
maskYm: {
|
|
133
|
+
type: string;
|
|
134
|
+
mask: string;
|
|
135
|
+
};
|
|
136
|
+
formatMaskYm: string;
|
|
137
|
+
maskYmdHms: {
|
|
138
|
+
type: string;
|
|
139
|
+
mask: string;
|
|
140
|
+
};
|
|
141
|
+
formatYmdHms: string;
|
|
142
|
+
maskHm: {
|
|
143
|
+
type: string;
|
|
144
|
+
mask: string;
|
|
145
|
+
};
|
|
146
|
+
formatHm: string;
|
|
147
|
+
maskHms: {
|
|
148
|
+
type: string;
|
|
149
|
+
mask: string;
|
|
150
|
+
};
|
|
151
|
+
formatHms: string;
|
|
152
|
+
checkY: {
|
|
153
|
+
type: string;
|
|
154
|
+
trueValues: string;
|
|
155
|
+
falseValues: string;
|
|
156
|
+
};
|
|
157
|
+
checkN: {
|
|
158
|
+
type: string;
|
|
159
|
+
trueValues: string;
|
|
160
|
+
falseValues: string;
|
|
161
|
+
};
|
|
162
|
+
check1: {
|
|
163
|
+
type: string;
|
|
164
|
+
trueValues: string;
|
|
165
|
+
falseValues: string;
|
|
166
|
+
};
|
|
167
|
+
checkTrue: {
|
|
168
|
+
type: string;
|
|
169
|
+
trueValues: string;
|
|
170
|
+
falseValues: string;
|
|
171
|
+
};
|
|
172
|
+
checkT: {
|
|
173
|
+
type: string;
|
|
174
|
+
trueValues: string;
|
|
175
|
+
falseValues: string;
|
|
176
|
+
};
|
|
177
|
+
checkYdisabled: {
|
|
178
|
+
type: string;
|
|
179
|
+
editable: boolean;
|
|
180
|
+
trueValues: string;
|
|
181
|
+
falseValues: string;
|
|
182
|
+
};
|
|
183
|
+
checkNdisabled: {
|
|
184
|
+
type: string;
|
|
185
|
+
editable: boolean;
|
|
186
|
+
trueValues: string;
|
|
187
|
+
falseValues: string;
|
|
188
|
+
};
|
|
189
|
+
check1disabled: {
|
|
190
|
+
type: string;
|
|
191
|
+
editable: boolean;
|
|
192
|
+
trueValues: string;
|
|
193
|
+
falseValues: string;
|
|
194
|
+
};
|
|
195
|
+
count: {
|
|
196
|
+
suffix: string;
|
|
197
|
+
expression: string;
|
|
198
|
+
};
|
|
199
|
+
count2: {
|
|
200
|
+
prefix: string;
|
|
201
|
+
suffix: string;
|
|
202
|
+
expression: string;
|
|
203
|
+
};
|
|
204
|
+
datacount: {
|
|
205
|
+
suffix: string;
|
|
206
|
+
expression: string;
|
|
207
|
+
};
|
|
208
|
+
sum: {
|
|
209
|
+
numberFormat: string;
|
|
210
|
+
expression: string;
|
|
211
|
+
};
|
|
212
|
+
sum2: {
|
|
213
|
+
numberFormat: string;
|
|
214
|
+
expression: string;
|
|
215
|
+
};
|
|
216
|
+
sum3: {
|
|
217
|
+
numberFormat: string;
|
|
218
|
+
expression: string;
|
|
219
|
+
};
|
|
220
|
+
avg: {
|
|
221
|
+
numberFormat: string;
|
|
222
|
+
expression: string;
|
|
223
|
+
};
|
|
224
|
+
avg2: {
|
|
225
|
+
numberFormat: string;
|
|
226
|
+
expression: string;
|
|
227
|
+
};
|
|
228
|
+
avg4: {
|
|
229
|
+
numberFormat: string;
|
|
230
|
+
expression: string;
|
|
231
|
+
};
|
|
232
|
+
min: {
|
|
233
|
+
expression: string;
|
|
234
|
+
};
|
|
235
|
+
max: {
|
|
236
|
+
expression: string;
|
|
237
|
+
};
|
|
238
|
+
date: {
|
|
239
|
+
type: string;
|
|
240
|
+
mask: {
|
|
241
|
+
editMask: string;
|
|
242
|
+
placeHolder: string;
|
|
243
|
+
includedFormat: boolean;
|
|
244
|
+
};
|
|
245
|
+
datetimeFormat: string;
|
|
246
|
+
textAlignment: string;
|
|
247
|
+
yearNavigation: boolean;
|
|
248
|
+
};
|
|
249
|
+
dateStyle: {
|
|
250
|
+
datetimeFormat: string;
|
|
251
|
+
textAlignment: string;
|
|
252
|
+
};
|
|
253
|
+
maskDateFull: {
|
|
254
|
+
type: string;
|
|
255
|
+
mask: string;
|
|
256
|
+
textAlignment: string;
|
|
257
|
+
};
|
|
258
|
+
bg_gray01: {
|
|
259
|
+
background: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
getCrprCd: () => string | number | null;
|
|
263
|
+
getUserId: () => string | null;
|
|
264
|
+
getUserNm: () => string | null;
|
|
265
|
+
getUserDvsn: () => string | null;
|
|
266
|
+
getEmplNo: () => string | null;
|
|
267
|
+
getDprtCd: () => string | number | null;
|
|
268
|
+
getDprtNm: () => string | null;
|
|
269
|
+
getRoleList: () => string[] | null;
|
|
270
|
+
hasRole: (role: string) => boolean;
|
|
271
|
+
hasAnyRole: (roles: string[]) => boolean;
|
|
272
|
+
hasAllRoles: (roles: string[]) => boolean;
|
|
273
|
+
isLoggedIn: () => boolean;
|
|
274
|
+
getUserInfo: () => import('../stores/userStore').UserInfo | null;
|
|
275
|
+
hasUserInfo: () => boolean;
|
|
276
|
+
getDisplayName: () => string | null;
|
|
277
|
+
getDepartmentInfo: () => string | null;
|
|
278
|
+
setServiceCodeOverrides(overrides: Partial<Record<serviceConfigModule.ServiceCodeKey, string>>): void;
|
|
279
|
+
getServiceCode(serviceCodeKey: serviceConfigModule.ServiceCodeKey): string;
|
|
280
|
+
getAllServiceCodes(): Record<serviceConfigModule.ServiceCodeKey, string>;
|
|
281
|
+
logServiceCodeConfig(): void;
|
|
282
|
+
notificationService: {
|
|
283
|
+
showBwgError(props: notificationUtilsModule.BwgErrorProps): void;
|
|
284
|
+
showSuccess(message: string, description?: string, duration?: number): void;
|
|
285
|
+
showInfo(message: string, description?: string, duration?: number): void;
|
|
286
|
+
showWarning(message: string, description?: string, duration?: number): void;
|
|
287
|
+
showError(message: string, description?: string, duration?: number): void;
|
|
288
|
+
destroy(): void;
|
|
289
|
+
close(key: string): void;
|
|
290
|
+
};
|
|
291
|
+
notiBwgError: (props: notificationUtilsModule.BwgErrorProps) => void;
|
|
292
|
+
notiSuccess: (message: string, description?: string, duration?: number) => void;
|
|
293
|
+
notiInfo: (message: string, description?: string, duration?: number) => void;
|
|
294
|
+
notiWarning: (message: string, description?: string, duration?: number) => void;
|
|
295
|
+
notiError: (message: string, description?: string, duration?: number) => void;
|
|
296
|
+
destroyNotifications: () => void;
|
|
297
|
+
closeNotification: (key: string) => void;
|
|
298
|
+
showSuccess: (content: string, duration?: number) => void;
|
|
299
|
+
showError: (content: string, duration?: number) => void;
|
|
300
|
+
showWarning: (content: string, duration?: number) => void;
|
|
301
|
+
showInfo: (content: string, duration?: number) => void;
|
|
302
|
+
showLoading: (content?: string) => import('antd/es/message/interface').MessageType;
|
|
303
|
+
closeMessage: (key: string) => void;
|
|
304
|
+
closeAllMessages: () => void;
|
|
305
|
+
showApiError: (error: any, defaultMessage?: string) => void;
|
|
306
|
+
showSaveSuccess: (type?: string) => void;
|
|
307
|
+
showSaveError: (type?: string) => void;
|
|
308
|
+
showDuplicateError: (fieldName: string) => void;
|
|
309
|
+
showRequiredError: (fieldName: string) => void;
|
|
310
|
+
downloadByFileKey(fileKey: string): Promise<any>;
|
|
311
|
+
downloadFile: (data: string, filename: string, type?: string) => void;
|
|
312
|
+
configureEnvUtils(opts: {
|
|
313
|
+
devHosts?: string[];
|
|
314
|
+
prodHosts?: string[];
|
|
315
|
+
}): void;
|
|
316
|
+
getEnvCode(): "X" | "D" | "P";
|
|
317
|
+
isLocal: boolean;
|
|
318
|
+
isDev: boolean;
|
|
319
|
+
isProd: boolean;
|
|
320
|
+
encryptSha256(input: string): Promise<string>;
|
|
321
|
+
THEME_COOKIE_NAME: "ui_theme";
|
|
322
|
+
isString: (value: any) => value is string;
|
|
323
|
+
isNumber: (value: any) => value is number;
|
|
324
|
+
isBoolean: (value: any) => value is boolean;
|
|
325
|
+
isFunction: (value: any) => value is Function;
|
|
326
|
+
isObject: (value: any) => value is object;
|
|
327
|
+
isArray: (value: any) => value is any[];
|
|
328
|
+
isNull: (value: any) => value is null;
|
|
329
|
+
isUndefined: (value: any) => value is undefined;
|
|
330
|
+
isNullOrUndefined: (value: any) => value is null | undefined;
|
|
331
|
+
throttle: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
|
|
332
|
+
debounce: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
|
|
333
|
+
copyToClipboard: (text: string) => Promise<boolean>;
|
|
334
|
+
getDeviceType: () => "mobile" | "tablet" | "desktop";
|
|
335
|
+
isMobile: () => boolean;
|
|
336
|
+
isTablet: () => boolean;
|
|
337
|
+
isDesktop: () => boolean;
|
|
338
|
+
generateRandomColor: () => string;
|
|
339
|
+
isEmptyArray: <T>(arr: T[]) => boolean;
|
|
340
|
+
arrUnique: <T>(arr: T[]) => T[];
|
|
341
|
+
arrMax: (arr: number[]) => number | undefined;
|
|
342
|
+
arrMin: (arr: number[]) => number | undefined;
|
|
343
|
+
arrAverage: (arr: number[]) => number | undefined;
|
|
344
|
+
arrSum: (arr: number[]) => number;
|
|
345
|
+
arrCount: <T>(arr: T[], predicate: (item: T) => boolean) => number;
|
|
346
|
+
arrReverse: <T>(arr: T[]) => T[];
|
|
347
|
+
duplicates: <T>(arr: T[]) => T[];
|
|
348
|
+
random: (min: number, max: number) => number;
|
|
349
|
+
clamp: (value: number, min: number, max: number) => number;
|
|
350
|
+
round: (value: number, decimals?: number) => number;
|
|
351
|
+
setSessionStorage: (key: string, value: any) => void;
|
|
352
|
+
getSessionStorage: <T>(key: string, defaultValue?: T) => T | null;
|
|
353
|
+
removeSessionStorage: (key: string) => void;
|
|
354
|
+
clearSessionStorage: () => void;
|
|
355
|
+
setCookie: (name: string, value: string, days?: number) => void;
|
|
356
|
+
getCookie: (name: string) => string | null;
|
|
357
|
+
deleteCookie: (name: string) => void;
|
|
358
|
+
isEmpty: (str: any) => boolean;
|
|
359
|
+
isSafeEmpty: (str: string | null | undefined, defaultValue: string) => string;
|
|
360
|
+
toCamelCase: (str: string) => string;
|
|
361
|
+
isValidEmail: (email: string) => boolean;
|
|
362
|
+
isValidUrl: (url: string) => boolean;
|
|
363
|
+
padLeft: (str: string, length: number, char?: string) => string;
|
|
364
|
+
padRight: (str: string, length: number, char?: string) => string;
|
|
365
|
+
generateRandomString: (length: number, chars?: string) => string;
|
|
366
|
+
generateUID: (length?: number) => string;
|
|
367
|
+
getCurrentDate: () => import('dayjs').Dayjs;
|
|
368
|
+
getCurrentDateString: (format?: string) => string;
|
|
369
|
+
setClientIp: (ip?: string) => Promise<void>;
|
|
370
|
+
getClientIp: () => string | null;
|
|
371
|
+
verifyClientIp: () => Promise<string>;
|
|
372
|
+
ApiError: typeof apiUtilsModule.ApiError;
|
|
373
|
+
getGuid: () => string;
|
|
374
|
+
callService: <T = any>(trxCd: string, data?: any, options?: apiUtilsModule.ApiOptions) => Promise<T>;
|
|
375
|
+
apiGet: <T = any>(trxCd: string, params?: any, options?: apiUtilsModule.ApiOptions) => Promise<T>;
|
|
376
|
+
apiPost: <T = any>(trxCd: string, data?: any, options?: apiUtilsModule.ApiOptions) => Promise<T>;
|
|
377
|
+
apiPut: <T = any>(trxCd: string, data?: any, options?: apiUtilsModule.ApiOptions) => Promise<T>;
|
|
378
|
+
apiDelete: <T = any>(trxCd: string, data?: any, options?: apiUtilsModule.ApiOptions) => Promise<T>;
|
|
379
|
+
apiPatch: <T = any>(trxCd: string, data?: any, options?: apiUtilsModule.ApiOptions) => Promise<T>;
|
|
380
|
+
getPermissionService: (userId: string, menuId: string, popupId?: string) => Promise<any>;
|
|
381
|
+
};
|
|
382
|
+
export default bwgUtils;
|
|
17
383
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAG5B,OAAO,KAAK,cAAc,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,cAAc,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,eAAe,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,kBAAkB,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,uBAAuB,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK,mBAAmB,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,eAAe,MAAM,aAAa,CAAC;AAG/C,eAAO,MAAM,QAAQ,uBAAiB,CAAC;AACvC,eAAO,MAAM,WAAW,0BAAoB,CAAC;AAC7C,eAAO,MAAM,QAAQ,uBAAiB,CAAC;AACvC,eAAO,MAAM,SAAS,wBA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