@bwg-ui/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 +106 -0
- package/dist/chunks/BwgLargeUploader-ByN1XWV4.js +809 -0
- package/dist/chunks/BwgLargeUploader-CU0-MVk4.cjs +1 -0
- package/dist/chunks/BwgSpace-CnLM4qcg.js +26 -0
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +1 -0
- package/dist/chunks/QuickServiceToggle-CiCuWfCF.cjs +183 -0
- package/dist/chunks/QuickServiceToggle-y7esp1kp.js +15510 -0
- package/dist/chunks/ServiceCodeContext--ZnMtjzD.cjs +1 -0
- package/dist/chunks/ServiceCodeContext-CDZMr3Mm.js +87 -0
- package/dist/chunks/UtilsContext-B16Gh9LL.cjs +1 -0
- package/dist/chunks/UtilsContext-BbfZYiMR.js +240 -0
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/chunks/codeStore-Dt6j826J.cjs +1 -0
- package/dist/chunks/codeStore-bxk_q1sl.js +449 -0
- package/dist/chunks/commonUtils-BV6WFv-z.js +628 -0
- package/dist/chunks/commonUtils-L9Jgc5y-.cjs +1 -0
- package/dist/chunks/favoriteStore-CguRSEcH.js +367 -0
- package/dist/chunks/favoriteStore-TgeeY32l.cjs +1 -0
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +30 -0
- package/dist/chunks/jsx-runtime-Dpn_P65e.js +633 -0
- package/dist/chunks/messageUtils-9DXOwada.js +117 -0
- package/dist/chunks/messageUtils-RjJD_ArW.cjs +1 -0
- package/dist/chunks/popupStore-CVD8SPTa.cjs +1 -0
- package/dist/chunks/popupStore-Dp_fqtim.js +96 -0
- package/dist/chunks/realFormat-Cha7OTd9.cjs +1 -0
- package/dist/chunks/realFormat-DRGLFabQ.js +304 -0
- package/dist/chunks/serviceConfig-BJBsdee_.js +699 -0
- package/dist/chunks/serviceConfig-Cr2P4yr4.cjs +2 -0
- package/dist/components/common/BwgButtonGroup.d.ts +31 -0
- package/dist/components/common/BwgCmptArea.d.ts +16 -0
- package/dist/components/common/BwgConfigProvider.d.ts +10 -0
- package/dist/components/common/BwgDrawer.d.ts +20 -0
- package/dist/components/common/BwgGrid.d.ts +505 -0
- package/dist/components/common/BwgInfoArea.d.ts +8 -0
- package/dist/components/common/BwgPopup.d.ts +9 -0
- package/dist/components/common/BwgSpace.d.ts +11 -0
- package/dist/components/common/BwgTable.d.ts +13 -0
- package/dist/components/common/BwgTabs.d.ts +5 -0
- package/dist/components/common/BwgTitleBox.d.ts +29 -0
- package/dist/components/common/BwgView.d.ts +36 -0
- package/dist/components/common/ContentBox.d.ts +19 -0
- package/dist/components/common/ContentLayOut.d.ts +13 -0
- package/dist/components/common/GlobalConfigProvider.d.ts +9 -0
- package/dist/components/common/QuickServiceToggle.d.ts +13 -0
- package/dist/components/common/SearchBox.d.ts +16 -0
- package/dist/components/common/index.cjs +1 -0
- package/dist/components/common/index.d.ts +34 -0
- package/dist/components/common/index.js +24 -0
- package/dist/components/core/BwgButton.d.ts +6 -0
- package/dist/components/core/BwgCheck.d.ts +11 -0
- package/dist/components/core/BwgCheckList.d.ts +11 -0
- package/dist/components/core/BwgDatePicker.d.ts +10 -0
- package/dist/components/core/BwgForm.d.ts +6 -0
- package/dist/components/core/BwgFormItem.d.ts +17 -0
- package/dist/components/core/BwgInput.d.ts +9 -0
- package/dist/components/core/BwgLargeUploader.d.ts +15 -0
- package/dist/components/core/BwgMaskedInput.d.ts +20 -0
- package/dist/components/core/BwgMaskedPicker.d.ts +11 -0
- package/dist/components/core/BwgMultiSelect.d.ts +14 -0
- package/dist/components/core/BwgNumber.d.ts +13 -0
- package/dist/components/core/BwgRadio.d.ts +8 -0
- package/dist/components/core/BwgRangePicker.d.ts +12 -0
- package/dist/components/core/BwgSearch.d.ts +16 -0
- package/dist/components/core/BwgSelect.d.ts +15 -0
- package/dist/components/core/BwgTextArea.d.ts +8 -0
- package/dist/components/core/BwgUploader.d.ts +34 -0
- package/dist/components/core/index.cjs +1 -0
- package/dist/components/core/index.d.ts +36 -0
- package/dist/components/core/index.js +21 -0
- package/dist/components/guide/BwgComponentGuide.d.ts +2 -0
- package/dist/components/guide/BwgDeveloperGuide.d.ts +2 -0
- package/dist/components/guide/index.cjs +1 -0
- package/dist/components/guide/index.d.ts +2 -0
- package/dist/components/guide/index.js +7 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +291 -0
- package/dist/provider/contexts/CommonCodeContext.d.ts +46 -0
- package/dist/provider/contexts/SearchBoxContext.d.ts +15 -0
- package/dist/provider/contexts/ServiceCodeContext.d.ts +108 -0
- package/dist/provider/contexts/UtilsContext.d.ts +194 -0
- package/dist/provider/contexts/index.d.ts +4 -0
- package/dist/provider/hooks/index.d.ts +2 -0
- package/dist/provider/hooks/usePopup.d.ts +17 -0
- package/dist/provider/hooks/useViewState.d.ts +14 -0
- package/dist/provider/index.cjs +1 -0
- package/dist/provider/index.d.ts +2 -0
- package/dist/provider/index.js +27 -0
- package/dist/public/styles/assets/images/contents/icon/ico-business-trip.svg +21 -0
- package/dist/public/styles/assets/images/contents/icon/ico-holiday.svg +23 -0
- package/dist/public/styles/assets/images/contents/icon/ico-menu-help.svg +5 -0
- package/dist/public/styles/assets/images/contents/icon/ico-overtime.svg +17 -0
- package/dist/public/styles/assets/images/contents/icon/ico-quick-tab-move.svg +8 -0
- package/dist/public/styles/assets/images/contents/icon/quick tab-text.svg +4 -0
- package/dist/public/styles/assets/images/contents/icon/quick-tab-text.svg +4 -0
- package/dist/public/test.txt +0 -0
- package/dist/stores/codeStore.d.ts +173 -0
- package/dist/stores/favoriteStore.d.ts +19 -0
- package/dist/stores/index.cjs +1 -0
- package/dist/stores/index.d.ts +14 -0
- package/dist/stores/index.js +20 -0
- package/dist/stores/menuStore.d.ts +52 -0
- package/dist/stores/popupStore.d.ts +72 -0
- package/dist/stores/userStore.d.ts +36 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-bold.eot +2751 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-bold.svg +626 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-bold.ttf +2755 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-bold.woff +2755 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-bold.woff2 +2754 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-medium.eot +0 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-medium.svg +1064 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-medium.ttf +0 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-medium.woff +0 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-medium.woff2 +2754 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-regular.eot +0 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-regular.svg +1063 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-regular.ttf +1597 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-regular.woff +1597 -0
- package/dist/styles/assets/fonts/Roboto/Roboto-regular.woff2 +1597 -0
- package/dist/styles/assets/fonts/material/MaterialIcons-Regular.eot +1594 -0
- package/dist/styles/assets/fonts/material/MaterialIcons-Regular.ttf +0 -0
- package/dist/styles/assets/fonts/material/MaterialIcons-Regular.woff +1594 -0
- package/dist/styles/assets/fonts/material/MaterialIcons-Regular.woff2 +1594 -0
- package/dist/styles/assets/fonts/material/MaterialSymbolsOutlined.woff2 +0 -0
- package/dist/styles/assets/fonts/meiryo/meiryo.ttf +0 -0
- package/dist/styles/assets/fonts/meiryo/meiryob.ttf +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothic.eot +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothic.ttf +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothic.woff +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicBold.eot +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicBold.ttf +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicBold.woff +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWeb.eot +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWeb.ttf +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWeb.woff +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWebBold.eot +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWebBold.ttf +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWebBold.woff +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWebLight.eot +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWebLight.ttf +0 -0
- package/dist/styles/assets/fonts/nanumBarun/NanumBarunGothicWebLight.woff +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Bold.eot +2314 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Bold.otf +2314 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Bold.svg +47 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Bold.ttf +2301 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Bold.woff +2314 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Bold.woff2 +2315 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Light.otf +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Light.woff +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Light.woff2 +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Medium.eot +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Medium.otf +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Medium.svg +47 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Medium.ttf +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Medium.woff +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Medium.woff2 +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Regular.eot +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Regular.otf +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Regular.svg +47 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Regular.ttf +2299 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Regular.woff +0 -0
- package/dist/styles/assets/fonts/notokr/NotoSans-Regular.woff2 +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-ExtraLight.eot +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-ExtraLight.ttf +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-ExtraLight.woff +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-ExtraLight.woff2 +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Light.eot +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Light.ttf +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Light.woff +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Light.woff2 +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Medium.eot +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Medium.ttf +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Medium.woff +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Medium.woff2 +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Regular.eot +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Regular.ttf +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Regular.woff +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-Regular.woff2 +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-SemiBold.eot +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-SemiBold.ttf +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-SemiBold.woff +0 -0
- package/dist/styles/assets/fonts/poppins/Poppins-SemiBold.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-Black.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-Bold.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-ExtraBold.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-ExtraLight.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-Light.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-Medium.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-Regular.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-SemiBold.woff2 +0 -0
- package/dist/styles/assets/fonts/pretendard/Pretendard-Thin.woff2 +0 -0
- package/dist/styles/assets/images/README.md +144 -0
- package/dist/styles/assets/images/backgrounds/landing_bg.png +0 -0
- package/dist/styles/assets/images/backgrounds/login_bg_01.png +0 -0
- package/dist/styles/assets/images/backgrounds/login_bg_02.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-down-on.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-down.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-left-on.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-left.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-right-on.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-right.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-up-on.png +0 -0
- package/dist/styles/assets/images/contents/btn/btn-up.png +0 -0
- package/dist/styles/assets/images/contents/icon/ico-business-trip.svg +21 -0
- package/dist/styles/assets/images/contents/icon/ico-holiday.svg +23 -0
- package/dist/styles/assets/images/contents/icon/ico-menu-help.svg +5 -0
- package/dist/styles/assets/images/contents/icon/ico-overtime.svg +17 -0
- package/dist/styles/assets/images/contents/icon/ico-quick-tab-move.svg +4 -0
- package/dist/styles/assets/images/contents/icon/ico-setting.svg +4 -0
- package/dist/styles/assets/images/contents/icon/ico_blue.png +0 -0
- package/dist/styles/assets/images/contents/icon/ico_red.png +0 -0
- package/dist/styles/assets/images/contents/icon/quick tab-text.svg +4 -0
- package/dist/styles/assets/images/contents/icon/quick-tab-text.svg +4 -0
- package/dist/styles/assets/images/logos/KRX Logo.svg +22 -0
- package/dist/styles/assets/images/logos/bwg-logo-blue.png +0 -0
- package/dist/styles/assets/images/logos/krx-logo-x2.png +0 -0
- package/dist/styles/assets/images/logos/krx-logo.png +0 -0
- package/dist/styles/assets/react.svg +1 -0
- package/dist/styles/components.css +785 -0
- package/dist/styles/fonts.css +101 -0
- package/dist/styles/global.css +52 -0
- package/dist/styles/index.css +41 -0
- package/dist/styles/layout.css +1132 -0
- package/dist/styles/login.css +151 -0
- package/dist/styles/popup.css +30 -0
- package/dist/styles/renderers.css +190 -0
- package/dist/styles/size.css +4019 -0
- package/dist/styles/variables.css +106 -0
- package/dist/test.txt +0 -0
- package/dist/types/images.d.ts +25 -0
- package/dist/utils/apiUtils.d.ts +85 -0
- package/dist/utils/arrayUtils.d.ts +34 -0
- package/dist/utils/commonUtils.d.ts +54 -0
- package/dist/utils/cookieUtils.d.ts +4 -0
- package/dist/utils/dateUtils.d.ts +26 -0
- package/dist/utils/envUtils.d.ts +8 -0
- package/dist/utils/imageUtils.d.ts +31 -0
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.js +211 -0
- package/dist/utils/messageUtils.d.ts +65 -0
- package/dist/utils/notificationUtils.d.ts +51 -0
- package/dist/utils/objectUtils.d.ts +27 -0
- package/dist/utils/realFormat.d.ts +242 -0
- package/dist/utils/serviceConfig.d.ts +35 -0
- package/dist/utils/stringUtils.d.ts +142 -0
- package/dist/utils/userUtils.d.ts +19 -0
- package/package.json +123 -0
- package/public/styles/assets/images/contents/icon/ico-business-trip.svg +21 -0
- package/public/styles/assets/images/contents/icon/ico-holiday.svg +23 -0
- package/public/styles/assets/images/contents/icon/ico-menu-help.svg +5 -0
- package/public/styles/assets/images/contents/icon/ico-overtime.svg +17 -0
- package/public/styles/assets/images/contents/icon/ico-quick-tab-move.svg +8 -0
- package/public/styles/assets/images/contents/icon/quick tab-text.svg +4 -0
- package/public/styles/assets/images/contents/icon/quick-tab-text.svg +4 -0
- package/public/test.txt +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { f as s, e as o, g as r, j as t, B as i, i as n, h as g, d as l, k as m, b as u, a as d, C as c, c as p, G as S, Q as C, S as f, l as h } from "./chunks/QuickServiceToggle-y7esp1kp.js";
|
|
2
|
+
import { B as w } from "./chunks/BwgSpace-CnLM4qcg.js";
|
|
3
|
+
import { r as D } from "./chunks/realFormat-DRGLFabQ.js";
|
|
4
|
+
import { o as U, j as b, k, g as y, a as x, B as E, f as T, q as A, d as P, e as L, n as N, m as M, i as R, h as F, c as G, b as O, l as q, p as W } from "./chunks/BwgLargeUploader-ByN1XWV4.js";
|
|
5
|
+
import { Y as K, t as V, J as z, a9 as H, aa as Q, ab as _, ac as J, _ as X, ad as Y, u as Z, ae as $, K as aa, af as ea, L as sa, v as oa, a0 as ra, a1 as ta, a6 as ia, a7 as na, f as ga, a as la, b as ma, c as ua, d as da, ag as ca, w as pa, g as Sa, e as Ca, h as fa, i as ha, j as Ba, ah as wa, ai as va, k as Da, l as Ia, m as Ua, aj as ba, n as ka, o as ya, M as xa, x as Ea, a5 as Ta, N as Aa, ak as Pa, al as La, am as Na, y as Ma, an as Ra, ao as Fa, ap as Ga, aq as Oa, ar as qa, as as Wa, at as ja, au as Ka, av as Va, p as za, q as Ha, r as Qa, aw as _a, s as Ja, z as Xa, $ as Ya, A as Za, W as $a, B as ae, X as ee, C as se, D as oe, ax as re, ay as te, T as ie, az as ne, U as ge, a8 as le, a2 as me, a3 as ue, E as de, aA as ce, F as pe, aB as Se, a4 as Ce, aC as fe, aD as he, aE as Be, G as we, aF as ve, aG as De, O as Ie, H as Ue, P as be, V as ke, Z as ye, aH as xe, Q as Ee, R as Te, S as Ae, I as Pe } from "./chunks/commonUtils-BV6WFv-z.js";
|
|
6
|
+
import { Q as Ne, R as Me, S as Re, T as Fe, U as Ge, b as Oe, a as qe, c as We, d as je, e as Ke, V as Ve, f as ze, g as He, h as Qe, ae as _e, i as Je, j as Xe, af as Ye, k as Ze, l as $e, m as as, n as es, o as ss, p as os, q as rs, r as ts, s as is, t as ns, u as gs, v as ls, w as ms, x as us, al as ds, W as cs, _ as ps, $ as Ss, a0 as Cs, a1 as fs, a2 as hs, a3 as Bs, ar as ws, X as vs, a4 as Ds, am as Is, a5 as Us, a6 as bs, a7 as ks, a8 as ys, a9 as xs, aa as Es, ab as Ts, ac as As, ap as Ps, y as Ls, ao as Ns, ad as Ms, aq as Rs, z as Fs, A as Gs, B as Os, C as qs, D as Ws, ag as js, E as Ks, F as Vs, G as zs, H as Hs, I as Qs, Y as _s, an as Js, J as Xs, ah as Ys, ai as Zs, aj as $s, ak as ao, K as eo, L as so, M as oo, N as ro, O as to, P as io, as as no, Z as go } from "./chunks/serviceConfig-BJBsdee_.js";
|
|
7
|
+
import { T as mo, n as uo, m as co, c as po, j as So, g as Co, a as fo, b as ho, k as Bo, d as wo, e as vo, f as Do, h as Io, i as Uo, p as bo, r as ko, s as yo, o as xo, v as Eo, l as To, w as Ao, t as Po, q as Lo, u as No } from "./chunks/messageUtils-9DXOwada.js";
|
|
8
|
+
import { useCode as Ro, useFavorite as Fo, useMenu as Go, usePopupState as Oo, useUser as qo } from "./stores/index.js";
|
|
9
|
+
import { C as jo, U as Ko, k as Vo, i as zo, c as Ho, a as Qo, d as _o, b as Jo, u as Xo, j as Yo, g as Zo, e as $o, m as ar, l as er, h as sr, f as or } from "./chunks/UtilsContext-BbfZYiMR.js";
|
|
10
|
+
import { u as tr, b as ir, a as nr } from "./chunks/codeStore-bxk_q1sl.js";
|
|
11
|
+
import { a as lr, u as mr } from "./chunks/favoriteStore-CguRSEcH.js";
|
|
12
|
+
import { u as dr } from "./chunks/popupStore-Dp_fqtim.js";
|
|
13
|
+
import { S as pr, a as Sr, d as Cr, e as fr, u as hr, b as Br, c as wr } from "./chunks/ServiceCodeContext-CDZMr3Mm.js";
|
|
14
|
+
export {
|
|
15
|
+
U as BwgButton,
|
|
16
|
+
s as BwgButtonGroup,
|
|
17
|
+
b as BwgCheck,
|
|
18
|
+
k as BwgCheckList,
|
|
19
|
+
o as BwgCmptArea,
|
|
20
|
+
r as BwgConfigProvider,
|
|
21
|
+
y as BwgDatePicker,
|
|
22
|
+
t as BwgDrawer,
|
|
23
|
+
x as BwgForm,
|
|
24
|
+
E as BwgFormItem,
|
|
25
|
+
i as BwgGrid,
|
|
26
|
+
n as BwgInfoArea,
|
|
27
|
+
T as BwgInput,
|
|
28
|
+
A as BwgLargeUploader,
|
|
29
|
+
P as BwgMaskedInput,
|
|
30
|
+
L as BwgMaskedPicker,
|
|
31
|
+
N as BwgMultiSelect,
|
|
32
|
+
M as BwgNumber,
|
|
33
|
+
g as BwgPopup,
|
|
34
|
+
R as BwgRadio,
|
|
35
|
+
F as BwgRangePicker,
|
|
36
|
+
G as BwgSearch,
|
|
37
|
+
O as BwgSelect,
|
|
38
|
+
w as BwgSpace,
|
|
39
|
+
l as BwgTable,
|
|
40
|
+
m as BwgTabs,
|
|
41
|
+
q as BwgTextArea,
|
|
42
|
+
u as BwgTitleBox,
|
|
43
|
+
W as BwgUploader,
|
|
44
|
+
d as BwgView,
|
|
45
|
+
jo as CommonCodeProvider,
|
|
46
|
+
c as ContentBox,
|
|
47
|
+
p as ContentLayOut,
|
|
48
|
+
S as GlobalConfigProvider,
|
|
49
|
+
C as QuickServiceToggle,
|
|
50
|
+
f as SearchBox,
|
|
51
|
+
pr as SearchBoxProvider,
|
|
52
|
+
Sr as ServiceCodeProvider,
|
|
53
|
+
mo as THEME_COOKIE_NAME,
|
|
54
|
+
Ko as UtilsProvider,
|
|
55
|
+
Ne as apiDelete,
|
|
56
|
+
Me as apiGet,
|
|
57
|
+
Re as apiPatch,
|
|
58
|
+
Fe as apiPost,
|
|
59
|
+
Ge as apiPut,
|
|
60
|
+
K as average,
|
|
61
|
+
Oe as base64Decode,
|
|
62
|
+
qe as base64Encode,
|
|
63
|
+
We as br2nl,
|
|
64
|
+
je as bxmDecrypt,
|
|
65
|
+
Ke as bxmEncrypt,
|
|
66
|
+
V as calculateAge,
|
|
67
|
+
Ve as callService,
|
|
68
|
+
ze as capitalize,
|
|
69
|
+
He as capitalizeWords,
|
|
70
|
+
Qe as center,
|
|
71
|
+
z as chunk,
|
|
72
|
+
H as clamp,
|
|
73
|
+
Q as clearLocalStorage,
|
|
74
|
+
_ as clearSessionStorage,
|
|
75
|
+
uo as closeAllMessages,
|
|
76
|
+
co as closeMessage,
|
|
77
|
+
_e as closeNotification,
|
|
78
|
+
po as convertImageFormat,
|
|
79
|
+
J as copyToClipboard,
|
|
80
|
+
X as count,
|
|
81
|
+
Je as countChar,
|
|
82
|
+
Xe as countWords,
|
|
83
|
+
h as createBwgGridRenderer,
|
|
84
|
+
Y as debounce,
|
|
85
|
+
Z as deepClone,
|
|
86
|
+
$ as delay,
|
|
87
|
+
So as deleteCookie,
|
|
88
|
+
Ye as destroyNotifications,
|
|
89
|
+
aa as difference,
|
|
90
|
+
ea as downloadFile,
|
|
91
|
+
sa as duplicates,
|
|
92
|
+
Ze as encryptSha256,
|
|
93
|
+
oa as entries,
|
|
94
|
+
$e as extractNumbers,
|
|
95
|
+
ra as find,
|
|
96
|
+
ta as findLast,
|
|
97
|
+
as as findPattern,
|
|
98
|
+
ia as flattenArray,
|
|
99
|
+
na as flattenDeep,
|
|
100
|
+
ga as formatDate,
|
|
101
|
+
la as formatDateKST,
|
|
102
|
+
ma as formatDateKorean,
|
|
103
|
+
ua as formatDateTimeKorean,
|
|
104
|
+
es as formatPhoneNumber,
|
|
105
|
+
da as formatTimeKorean,
|
|
106
|
+
ss as generateAlphanumericUID,
|
|
107
|
+
os as generateCustomUID,
|
|
108
|
+
rs as generateGUID,
|
|
109
|
+
ts as generateGUIDWithoutHyphens,
|
|
110
|
+
is as generateLongUID,
|
|
111
|
+
ns as generateNumericUID,
|
|
112
|
+
ca as generateRandomColor,
|
|
113
|
+
gs as generateRandomString,
|
|
114
|
+
ls as generateShortUID,
|
|
115
|
+
Co as generateSrcSet,
|
|
116
|
+
ms as generateTimestampUID,
|
|
117
|
+
us as generateUID,
|
|
118
|
+
pa as getAllKeys,
|
|
119
|
+
ds as getAllServiceCodes,
|
|
120
|
+
fo as getAvatarImage,
|
|
121
|
+
ho as getBackgroundImage,
|
|
122
|
+
cs as getClientIp,
|
|
123
|
+
Bo as getCookie,
|
|
124
|
+
ps as getCrprCd,
|
|
125
|
+
Sa as getCurrentDate,
|
|
126
|
+
Ca as getCurrentDateString,
|
|
127
|
+
fa as getDateDiff,
|
|
128
|
+
ha as getDateRange,
|
|
129
|
+
Ba as getDateRangeForPicker,
|
|
130
|
+
wo as getDefaultBackgroundImage,
|
|
131
|
+
Ss as getDepartmentInfo,
|
|
132
|
+
wa as getDeviceType,
|
|
133
|
+
Cs as getDisplayName,
|
|
134
|
+
fs as getDprtCd,
|
|
135
|
+
hs as getDprtNm,
|
|
136
|
+
Bs as getEmplNo,
|
|
137
|
+
ws as getEnvCode,
|
|
138
|
+
vs as getGuid,
|
|
139
|
+
vo as getIconImage,
|
|
140
|
+
va as getLocalStorage,
|
|
141
|
+
Do as getLogoImage,
|
|
142
|
+
Da as getMonthEnd,
|
|
143
|
+
Ia as getMonthStart,
|
|
144
|
+
Io as getOptimizedImageUrl,
|
|
145
|
+
Ua as getRelativeTime,
|
|
146
|
+
Ds as getRoleList,
|
|
147
|
+
Is as getServiceCode,
|
|
148
|
+
ba as getSessionStorage,
|
|
149
|
+
Us as getUserDvsn,
|
|
150
|
+
bs as getUserId,
|
|
151
|
+
ks as getUserInfo,
|
|
152
|
+
ys as getUserNm,
|
|
153
|
+
ka as getWeekEnd,
|
|
154
|
+
ya as getWeekStart,
|
|
155
|
+
xa as groupBy,
|
|
156
|
+
Uo as handleImageError,
|
|
157
|
+
Ea as has,
|
|
158
|
+
xs as hasAllRoles,
|
|
159
|
+
Es as hasAnyRole,
|
|
160
|
+
Ts as hasRole,
|
|
161
|
+
As as hasUserInfo,
|
|
162
|
+
Ta as includes,
|
|
163
|
+
Aa as intersection,
|
|
164
|
+
Pa as isArray,
|
|
165
|
+
La as isBoolean,
|
|
166
|
+
Na as isDesktop,
|
|
167
|
+
Ps as isDev,
|
|
168
|
+
Ls as isEmpty,
|
|
169
|
+
Ma as isEqual,
|
|
170
|
+
Ra as isFunction,
|
|
171
|
+
Fa as isInViewport,
|
|
172
|
+
Ns as isLocal,
|
|
173
|
+
Ms as isLoggedIn,
|
|
174
|
+
Ga as isMobile,
|
|
175
|
+
Oa as isNull,
|
|
176
|
+
qa as isNullOrUndefined,
|
|
177
|
+
Wa as isNumber,
|
|
178
|
+
ja as isObject,
|
|
179
|
+
Rs as isProd,
|
|
180
|
+
Fs as isSafeEmpty,
|
|
181
|
+
Ka as isString,
|
|
182
|
+
Va as isTablet,
|
|
183
|
+
za as isThisMonth,
|
|
184
|
+
Ha as isThisWeek,
|
|
185
|
+
Qa as isToday,
|
|
186
|
+
_a as isUndefined,
|
|
187
|
+
Ja as isValidDate,
|
|
188
|
+
Gs as isValidEmail,
|
|
189
|
+
Os as isValidUrl,
|
|
190
|
+
Xa as keys,
|
|
191
|
+
Ya as lastIndexOf,
|
|
192
|
+
Za as map,
|
|
193
|
+
$a as max,
|
|
194
|
+
qs as md5Hash,
|
|
195
|
+
ae as merge,
|
|
196
|
+
ee as min,
|
|
197
|
+
Ws as nl2br,
|
|
198
|
+
js as notificationService,
|
|
199
|
+
se as omit,
|
|
200
|
+
Ks as padLeft,
|
|
201
|
+
Vs as padRight,
|
|
202
|
+
oe as pick,
|
|
203
|
+
bo as preloadImage,
|
|
204
|
+
re as random,
|
|
205
|
+
te as randomChoice,
|
|
206
|
+
ie as randomFromArray,
|
|
207
|
+
ne as randomInt,
|
|
208
|
+
ge as randomMultiple,
|
|
209
|
+
le as range,
|
|
210
|
+
D as realFormat,
|
|
211
|
+
me as remove,
|
|
212
|
+
ue as removeAt,
|
|
213
|
+
de as removeEmptyStrings,
|
|
214
|
+
zs as removeHtmlTags,
|
|
215
|
+
ce as removeLocalStorage,
|
|
216
|
+
pe as removeNullValues,
|
|
217
|
+
Se as removeSessionStorage,
|
|
218
|
+
Hs as removeSpecialChars,
|
|
219
|
+
Ce as removeWhere,
|
|
220
|
+
ko as resizeImage,
|
|
221
|
+
Qs as reverse,
|
|
222
|
+
fe as round,
|
|
223
|
+
he as scrollToElement,
|
|
224
|
+
Be as scrollToTop,
|
|
225
|
+
we as set,
|
|
226
|
+
_s as setClientIp,
|
|
227
|
+
yo as setCookie,
|
|
228
|
+
ve as setLocalStorage,
|
|
229
|
+
Js as setServiceCodeOverrides,
|
|
230
|
+
De as setSessionStorage,
|
|
231
|
+
Xs as sha256Hash,
|
|
232
|
+
xo as showApiError,
|
|
233
|
+
Eo as showDuplicateError,
|
|
234
|
+
Ys as showError,
|
|
235
|
+
Zs as showInfo,
|
|
236
|
+
To as showLoading,
|
|
237
|
+
Ao as showRequiredError,
|
|
238
|
+
Po as showSaveError,
|
|
239
|
+
Lo as showSaveSuccess,
|
|
240
|
+
$s as showSuccess,
|
|
241
|
+
ao as showWarning,
|
|
242
|
+
Ie as shuffle,
|
|
243
|
+
eo as simpleDecrypt,
|
|
244
|
+
so as simpleEncrypt,
|
|
245
|
+
Ue as size,
|
|
246
|
+
be as sortBy,
|
|
247
|
+
ke as sortNumbers,
|
|
248
|
+
ye as sum,
|
|
249
|
+
xe as throttle,
|
|
250
|
+
oo as toCamelCase,
|
|
251
|
+
ro as toKebabCase,
|
|
252
|
+
to as toSnakeCase,
|
|
253
|
+
io as truncate,
|
|
254
|
+
Ee as union,
|
|
255
|
+
Te as unique,
|
|
256
|
+
Ae as uniqueBy,
|
|
257
|
+
Cr as useAllServiceCodes,
|
|
258
|
+
Vo as useApiUtils,
|
|
259
|
+
zo as useArrayUtils,
|
|
260
|
+
Ro as useCode,
|
|
261
|
+
Ho as useCodeColor,
|
|
262
|
+
Qo as useCodeList,
|
|
263
|
+
_o as useCodeListByOption,
|
|
264
|
+
Jo as useCodeName,
|
|
265
|
+
tr as useCodeStore,
|
|
266
|
+
ir as useColorStore,
|
|
267
|
+
Xo as useCommonCode,
|
|
268
|
+
Yo as useCommonUtils,
|
|
269
|
+
Zo as useDateUtils,
|
|
270
|
+
Fo as useFavorite,
|
|
271
|
+
lr as useFavoriteStore,
|
|
272
|
+
$o as useGridLookup,
|
|
273
|
+
No as useImageLoader,
|
|
274
|
+
fr as useLogServiceCodeConfig,
|
|
275
|
+
Go as useMenu,
|
|
276
|
+
mr as useMenuStore,
|
|
277
|
+
nr as useOptionStore,
|
|
278
|
+
ar as usePopup,
|
|
279
|
+
er as usePopupContext,
|
|
280
|
+
Oo as usePopupState,
|
|
281
|
+
dr as usePopupStore,
|
|
282
|
+
hr as useSearchBox,
|
|
283
|
+
Br as useServiceCode,
|
|
284
|
+
wr as useServiceCodeValue,
|
|
285
|
+
sr as useStringUtils,
|
|
286
|
+
qo as useUser,
|
|
287
|
+
no as useUserStore,
|
|
288
|
+
or as useUtils,
|
|
289
|
+
Pe as values,
|
|
290
|
+
go as verifyClientIp
|
|
291
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CommonCodeContextType } from '../../stores/codeStore';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface CommonCodeProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const CommonCodeProvider: React.FC<CommonCodeProviderProps>;
|
|
7
|
+
export declare const useCommonCode: () => CommonCodeContextType;
|
|
8
|
+
export declare const useCodeList: () => {
|
|
9
|
+
getCodeList: (groupCode: string, options?: {
|
|
10
|
+
enabledOnly?: boolean;
|
|
11
|
+
systemCodeOnly?: boolean;
|
|
12
|
+
sortByOrder?: boolean;
|
|
13
|
+
excludeParentCode?: boolean;
|
|
14
|
+
}) => import('../../stores/codeStore').SimpleCodeItem[];
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
error: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const useCodeName: () => {
|
|
19
|
+
getCodeName: (codeValue: string) => string | null;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
error: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const useCodeColor: () => {
|
|
24
|
+
getCodeColor: (codeValue: string) => string | null;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const useCodeListByOption: () => {
|
|
29
|
+
getCodeListByOption: (groupCode: string, optionCode: string, options?: {
|
|
30
|
+
enabledOnly?: boolean;
|
|
31
|
+
systemCodeOnly?: boolean;
|
|
32
|
+
sortByOrder?: boolean;
|
|
33
|
+
}) => import('../../stores/codeStore').SimpleCodeItem[];
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
error: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const useGridLookup: () => {
|
|
38
|
+
getGridLookup: (groupCode: string) => {
|
|
39
|
+
labels: string[];
|
|
40
|
+
values: string[];
|
|
41
|
+
lookupDisplay: boolean;
|
|
42
|
+
};
|
|
43
|
+
isLoading: boolean;
|
|
44
|
+
error: string;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { SearchBoxRef } from '../../components/common/SearchBox';
|
|
3
|
+
interface SearchBoxContextType {
|
|
4
|
+
searchBoxRef: React.RefObject<SearchBoxRef> | null;
|
|
5
|
+
getFormData: () => any;
|
|
6
|
+
setFormData: (data: any) => void;
|
|
7
|
+
resetForm: () => void;
|
|
8
|
+
validateForm: () => Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
interface SearchBoxProviderProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const SearchBoxProvider: React.FC<SearchBoxProviderProps>;
|
|
14
|
+
export declare const useSearchBox: () => SearchBoxContextType;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { ServiceCodeKey } from '../../utils/serviceConfig';
|
|
3
|
+
interface ServiceCodeContextType {
|
|
4
|
+
serviceCodes: Partial<Record<ServiceCodeKey, string>>;
|
|
5
|
+
getServiceCode: (key: ServiceCodeKey) => string;
|
|
6
|
+
}
|
|
7
|
+
interface ServiceCodeProviderProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* 서비스코드 오버라이드 설정
|
|
11
|
+
* 외부 프로젝트에서 기본 서비스코드를 재정의할 수 있습니다.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <ServiceCodeProvider
|
|
16
|
+
* serviceCodes={{
|
|
17
|
+
* AUTH_BTNS: 'CUSTOM_AUTH_BTNS_CODE',
|
|
18
|
+
* AUTH_MENU: 'CUSTOM_AUTH_MENU_CODE',
|
|
19
|
+
* SRCH_CODE: 'CUSTOM_SRCH_CODE',
|
|
20
|
+
* SRCH_POPU: 'CUSTOM_SRCH_POPU_CODE',
|
|
21
|
+
* AUTH_BMRK: 'CUSTOM_AUTH_BMRK_CODE',
|
|
22
|
+
* }}
|
|
23
|
+
* >
|
|
24
|
+
* {children}
|
|
25
|
+
* </ServiceCodeProvider>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @description
|
|
29
|
+
* - AUTH_BTNS: 버튼 권한 조회 서비스코드
|
|
30
|
+
* - AUTH_MENU: 메뉴 권한 조회 서비스코드
|
|
31
|
+
* - SRCH_CODE: 코드 조회 서비스코드
|
|
32
|
+
* - SRCH_POPU: 팝업 조회 서비스코드
|
|
33
|
+
* - AUTH_BMRK: 즐겨찾기 관리 서비스코드
|
|
34
|
+
*
|
|
35
|
+
* 설정하지 않은 서비스코드는 기본값을 사용합니다.
|
|
36
|
+
*/
|
|
37
|
+
serviceCodes?: Partial<Record<ServiceCodeKey, string>>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 서비스코드 Provider 컴포넌트
|
|
41
|
+
* 외부 프로젝트에서 서비스코드를 설정할 수 있도록 함
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* import { ServiceCodeProvider } from '@bwg/core/provider';
|
|
46
|
+
*
|
|
47
|
+
* function App() {
|
|
48
|
+
* return (
|
|
49
|
+
* <ServiceCodeProvider
|
|
50
|
+
* serviceCodes={{
|
|
51
|
+
* AUTH_BTNS: 'CUSTOM_AUTH_BTNS_CODE',
|
|
52
|
+
* AUTH_MENU: 'CUSTOM_AUTH_MENU_CODE',
|
|
53
|
+
* }}
|
|
54
|
+
* >
|
|
55
|
+
* <YourApp />
|
|
56
|
+
* </ServiceCodeProvider>
|
|
57
|
+
* );
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare const ServiceCodeProvider: React.FC<ServiceCodeProviderProps>;
|
|
62
|
+
/**
|
|
63
|
+
* 서비스코드 Context를 사용하는 Hook
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```tsx
|
|
67
|
+
* const { getServiceCode, serviceCodes } = useServiceCode();
|
|
68
|
+
* const authBtnsCode = getServiceCode('AUTH_BTNS');
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare const useServiceCode: () => ServiceCodeContextType;
|
|
72
|
+
/**
|
|
73
|
+
* 특정 서비스코드를 가져오는 Hook
|
|
74
|
+
*
|
|
75
|
+
* @param key - 서비스코드 키
|
|
76
|
+
* @returns 실제 서비스코드 값
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```tsx
|
|
80
|
+
* const authBtnsCode = useServiceCodeValue('AUTH_BTNS');
|
|
81
|
+
* const authMenuCode = useServiceCodeValue('AUTH_MENU');
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export declare const useServiceCodeValue: (key: ServiceCodeKey) => string;
|
|
85
|
+
/**
|
|
86
|
+
* 모든 서비스코드를 가져오는 Hook
|
|
87
|
+
*
|
|
88
|
+
* @returns 모든 서비스코드 객체
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```tsx
|
|
92
|
+
* const allServiceCodes = useAllServiceCodes();
|
|
93
|
+
* console.log(allServiceCodes.AUTH_BTNS); // 'SCMSIGN00202' 또는 커스텀 값
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
export declare const useAllServiceCodes: () => Record<ServiceCodeKey, string>;
|
|
97
|
+
/**
|
|
98
|
+
* 서비스코드 설정을 로그로 출력하는 Hook
|
|
99
|
+
* 개발 시 현재 설정된 서비스코드를 확인할 수 있습니다.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```tsx
|
|
103
|
+
* useLogServiceCodeConfig();
|
|
104
|
+
* // 콘솔에 현재 설정된 모든 서비스코드가 출력됩니다.
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare const useLogServiceCodeConfig: () => void;
|
|
108
|
+
export type { ServiceCodeKey };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import * as apiUtils from "../../utils/apiUtils";
|
|
3
|
+
interface UtilsProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const UtilsProvider: React.FC<UtilsProviderProps>;
|
|
7
|
+
export declare const useUtils: () => {
|
|
8
|
+
debounce: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
|
|
9
|
+
throttle: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
|
|
10
|
+
setLocalStorage: (key: string, value: any) => void;
|
|
11
|
+
getLocalStorage: <T>(key: string, defaultValue?: T) => T | null;
|
|
12
|
+
formatNumber: (num: number, locale?: string) => string;
|
|
13
|
+
formatCurrency: (amount: number, currency?: string, locale?: string) => string;
|
|
14
|
+
copyToClipboard: (text: string) => Promise<boolean>;
|
|
15
|
+
isMobile: () => boolean;
|
|
16
|
+
isDesktop: () => boolean;
|
|
17
|
+
callService: <T = any>(trxCd: string, data?: any, options?: apiUtils.ApiOptions) => Promise<T | null>;
|
|
18
|
+
apiGet: <T = any>(trxCd: string, params?: any, options?: apiUtils.ApiOptions) => Promise<T | null>;
|
|
19
|
+
apiPost: <T = any>(trxCd: string, data?: any, options?: apiUtils.ApiOptions) => Promise<T | null>;
|
|
20
|
+
apiPut: <T = any>(trxCd: string, data?: any, options?: apiUtils.ApiOptions) => Promise<T | null>;
|
|
21
|
+
apiDelete: <T = any>(trxCd: string, data?: any, options?: apiUtils.ApiOptions) => Promise<T | null>;
|
|
22
|
+
apiPatch: <T = any>(trxCd: string, data?: any, options?: apiUtils.ApiOptions) => Promise<T | null>;
|
|
23
|
+
isEmptyObject: (obj: object) => boolean;
|
|
24
|
+
isNotEmptyObject: (obj: object) => boolean;
|
|
25
|
+
deepClone: <T>(obj: T) => T;
|
|
26
|
+
pick: <T extends object, K extends keyof T>(obj: T, keys: K[]) => Pick<T, K>;
|
|
27
|
+
omit: <T extends object, K extends keyof T>(obj: T, keys: K[]) => Omit<T, K>;
|
|
28
|
+
values: <T extends object>(obj: T) => T[keyof T][];
|
|
29
|
+
keys: <T extends object>(obj: T) => (keyof T)[];
|
|
30
|
+
entries: <T extends object>(obj: T) => [keyof T, T[keyof T]][];
|
|
31
|
+
merge: <T extends object>(target: T, ...sources: Partial<T>[]) => T;
|
|
32
|
+
removeNullValues: <T extends object>(obj: T) => Partial<T>;
|
|
33
|
+
removeEmptyStrings: <T extends object>(obj: T) => Partial<T>;
|
|
34
|
+
toQueryString: (obj: Record<string, any>) => string;
|
|
35
|
+
fromQueryString: (queryString: string) => Record<string, string>;
|
|
36
|
+
get: <T>(obj: any, path: string, defaultValue?: T) => T | undefined;
|
|
37
|
+
set: <T extends object>(obj: T, path: string, value: any) => T;
|
|
38
|
+
getAllKeys: (obj: any, prefix?: string) => string[];
|
|
39
|
+
flatten: (obj: any, prefix?: string) => Record<string, any>;
|
|
40
|
+
isEqual: (obj1: any, obj2: any) => boolean;
|
|
41
|
+
size: (obj: object) => number;
|
|
42
|
+
has: (obj: object, key: string) => boolean;
|
|
43
|
+
every: <T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean) => boolean;
|
|
44
|
+
some: <T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean) => boolean;
|
|
45
|
+
filter: <T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean) => Partial<T>;
|
|
46
|
+
map: <T extends object, U>(obj: T, mapper: (value: T[keyof T], key: keyof T) => U) => Record<keyof T, U>;
|
|
47
|
+
isEmptyArray: <T>(arr: T[]) => boolean;
|
|
48
|
+
isNotEmptyArray: <T>(arr: T[]) => boolean;
|
|
49
|
+
unique: <T>(arr: T[]) => T[];
|
|
50
|
+
shuffle: <T>(arr: T[]) => T[];
|
|
51
|
+
sortBy: <T>(arr: T[], key: keyof T, ascending?: boolean) => T[];
|
|
52
|
+
max: (arr: number[]) => number | undefined;
|
|
53
|
+
min: (arr: number[]) => number | undefined;
|
|
54
|
+
average: (arr: number[]) => number | undefined;
|
|
55
|
+
sum: (arr: number[]) => number;
|
|
56
|
+
randomFromArray: <T>(arr: T[]) => T | undefined;
|
|
57
|
+
flattenArray: <T>(arr: T[][]) => T[];
|
|
58
|
+
isEmpty: (str: any) => boolean;
|
|
59
|
+
isSafeEmpty: (str: string | null | undefined, defaultValue: string) => string;
|
|
60
|
+
isNotEmpty: (str: string | null | undefined) => boolean;
|
|
61
|
+
truncate: (str: string, length: number, suffix?: string) => string;
|
|
62
|
+
capitalize: (str: string) => string;
|
|
63
|
+
capitalizeWords: (str: string) => string;
|
|
64
|
+
toCamelCase: (str: string) => string;
|
|
65
|
+
toSnakeCase: (str: string) => string;
|
|
66
|
+
toKebabCase: (str: string) => string;
|
|
67
|
+
formatPhoneNumber: (phone: string) => string;
|
|
68
|
+
isValidEmail: (email: string) => boolean;
|
|
69
|
+
isValidUrl: (url: string) => boolean;
|
|
70
|
+
extractNumbers: (str: string) => string;
|
|
71
|
+
removeSpecialChars: (str: string) => string;
|
|
72
|
+
removeHtmlTags: (str: string) => string;
|
|
73
|
+
nl2br: (str: string) => string;
|
|
74
|
+
br2nl: (str: string) => string;
|
|
75
|
+
findPattern: (str: string, pattern: RegExp) => string[];
|
|
76
|
+
repeat: (str: string, count: number) => string;
|
|
77
|
+
padLeft: (str: string, length: number, char?: string) => string;
|
|
78
|
+
padRight: (str: string, length: number, char?: string) => string;
|
|
79
|
+
center: (str: string, length: number, char?: string) => string;
|
|
80
|
+
generateRandomString: (length: number, chars?: string) => string;
|
|
81
|
+
reverse: (str: string) => string;
|
|
82
|
+
countChar: (str: string, char: string) => number;
|
|
83
|
+
countWords: (str: string) => number;
|
|
84
|
+
generateUID: (length?: number) => string;
|
|
85
|
+
generateShortUID: () => string;
|
|
86
|
+
generateLongUID: () => string;
|
|
87
|
+
generateNumericUID: (length?: number) => string;
|
|
88
|
+
generateAlphanumericUID: (length?: number) => string;
|
|
89
|
+
generateGUID: () => string;
|
|
90
|
+
generateGUIDWithoutHyphens: () => string;
|
|
91
|
+
generateTimestampUID: () => string;
|
|
92
|
+
generateCustomUID: (pattern: string, charset?: string) => string;
|
|
93
|
+
encryptSha256: (data: string) => any;
|
|
94
|
+
bxmEncrypt: (plainText: string) => string;
|
|
95
|
+
bxmDecrypt: (encryptedText: string) => string;
|
|
96
|
+
simpleEncrypt: (plainText: string, secretKey?: string) => string;
|
|
97
|
+
simpleDecrypt: (encryptedText: string, secretKey?: string) => string;
|
|
98
|
+
md5Hash: (text: string) => string;
|
|
99
|
+
sha256Hash: (text: string) => string;
|
|
100
|
+
base64Encode: (text: string) => string;
|
|
101
|
+
base64Decode: (encodedText: string) => string;
|
|
102
|
+
getCurrentDate: () => import('dayjs').Dayjs;
|
|
103
|
+
getCurrentDateString: (format?: string) => string;
|
|
104
|
+
formatDate: (date: string | Date | import('dayjs').Dayjs, format?: string) => string;
|
|
105
|
+
formatDateKST: (date: string | Date | import('dayjs').Dayjs, format?: string) => string;
|
|
106
|
+
getRelativeTime: (date: string | Date | import('dayjs').Dayjs) => string;
|
|
107
|
+
getDateDiff: (date1: string | Date | import('dayjs').Dayjs, date2: string | Date | import('dayjs').Dayjs, unit?: "day" | "hour" | "minute") => number;
|
|
108
|
+
isToday: (date: string | Date | import('dayjs').Dayjs) => boolean;
|
|
109
|
+
isThisWeek: (date: string | Date | import('dayjs').Dayjs) => boolean;
|
|
110
|
+
isThisMonth: (date: string | Date | import('dayjs').Dayjs) => boolean;
|
|
111
|
+
getWeekStart: (date?: string | Date | import('dayjs').Dayjs) => import('dayjs').Dayjs;
|
|
112
|
+
getWeekEnd: (date?: string | Date | import('dayjs').Dayjs) => import('dayjs').Dayjs;
|
|
113
|
+
getMonthStart: (date?: string | Date | import('dayjs').Dayjs) => import('dayjs').Dayjs;
|
|
114
|
+
getMonthEnd: (date?: string | Date | import('dayjs').Dayjs) => import('dayjs').Dayjs;
|
|
115
|
+
getDateRange: (startDate: string | Date | import('dayjs').Dayjs, endDate: string | Date | import('dayjs').Dayjs) => import('dayjs').Dayjs[];
|
|
116
|
+
getDateRangeForPicker: (startDate: string | Date | import('dayjs').Dayjs, endDate: string | Date | import('dayjs').Dayjs) => [import('dayjs').Dayjs, import('dayjs').Dayjs];
|
|
117
|
+
isValidDate: (date: string | Date | import('dayjs').Dayjs) => boolean;
|
|
118
|
+
calculateAge: (birthDate: string | Date | import('dayjs').Dayjs) => number;
|
|
119
|
+
isWeekend: (date: string | Date | import('dayjs').Dayjs) => boolean;
|
|
120
|
+
isWeekday: (date: string | Date | import('dayjs').Dayjs) => boolean;
|
|
121
|
+
formatDateKorean: (date: string | Date | import('dayjs').Dayjs) => string;
|
|
122
|
+
formatTimeKorean: (date: string | Date | import('dayjs').Dayjs) => string;
|
|
123
|
+
formatDateTimeKorean: (date: string | Date | import('dayjs').Dayjs) => string;
|
|
124
|
+
};
|
|
125
|
+
export declare const useDateUtils: () => {
|
|
126
|
+
formatDate: any;
|
|
127
|
+
formatDateKorean: any;
|
|
128
|
+
getCurrentDate: any;
|
|
129
|
+
getCurrentDateString: any;
|
|
130
|
+
getRelativeTime: any;
|
|
131
|
+
isToday: any;
|
|
132
|
+
isThisWeek: any;
|
|
133
|
+
isThisMonth: any;
|
|
134
|
+
getDateDiff: any;
|
|
135
|
+
calculateAge: any;
|
|
136
|
+
};
|
|
137
|
+
export declare const useStringUtils: () => {
|
|
138
|
+
isEmpty: any;
|
|
139
|
+
isNotEmpty: any;
|
|
140
|
+
truncate: any;
|
|
141
|
+
capitalize: any;
|
|
142
|
+
formatPhoneNumber: any;
|
|
143
|
+
isValidEmail: any;
|
|
144
|
+
removeHtmlTags: any;
|
|
145
|
+
generateUID: any;
|
|
146
|
+
generateShortUID: any;
|
|
147
|
+
generateLongUID: any;
|
|
148
|
+
generateNumericUID: any;
|
|
149
|
+
generateAlphanumericUID: any;
|
|
150
|
+
generateGUID: any;
|
|
151
|
+
generateGUIDWithoutHyphens: any;
|
|
152
|
+
generateTimestampUID: any;
|
|
153
|
+
generateCustomUID: any;
|
|
154
|
+
encryptSha256: any;
|
|
155
|
+
bxmEncrypt: any;
|
|
156
|
+
bxmDecrypt: any;
|
|
157
|
+
simpleEncrypt: any;
|
|
158
|
+
simpleDecrypt: any;
|
|
159
|
+
md5Hash: any;
|
|
160
|
+
sha256Hash: any;
|
|
161
|
+
base64Encode: any;
|
|
162
|
+
base64Decode: any;
|
|
163
|
+
};
|
|
164
|
+
export declare const useArrayUtils: () => {
|
|
165
|
+
isEmptyArray: any;
|
|
166
|
+
isNotEmptyArray: any;
|
|
167
|
+
unique: any;
|
|
168
|
+
shuffle: any;
|
|
169
|
+
sortBy: any;
|
|
170
|
+
max: any;
|
|
171
|
+
min: any;
|
|
172
|
+
average: any;
|
|
173
|
+
sum: any;
|
|
174
|
+
};
|
|
175
|
+
export declare const useCommonUtils: () => {
|
|
176
|
+
debounce: any;
|
|
177
|
+
throttle: any;
|
|
178
|
+
setLocalStorage: any;
|
|
179
|
+
getLocalStorage: any;
|
|
180
|
+
formatNumber: any;
|
|
181
|
+
formatCurrency: any;
|
|
182
|
+
copyToClipboard: any;
|
|
183
|
+
isMobile: any;
|
|
184
|
+
isDesktop: any;
|
|
185
|
+
};
|
|
186
|
+
export declare const useApiUtils: () => {
|
|
187
|
+
callService: any;
|
|
188
|
+
apiGet: any;
|
|
189
|
+
apiPost: any;
|
|
190
|
+
apiPut: any;
|
|
191
|
+
apiDelete: any;
|
|
192
|
+
apiPatch: any;
|
|
193
|
+
};
|
|
194
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PopupConfig } from '../../stores/popupStore';
|
|
2
|
+
/**
|
|
3
|
+
* 팝업 컨텍스트를 감지하는 훅
|
|
4
|
+
* 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환
|
|
5
|
+
*/
|
|
6
|
+
export declare const usePopupContext: () => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 팝업 데이터와 이벤트를 관리하는 훅
|
|
9
|
+
*/
|
|
10
|
+
export declare const usePopup: () => {
|
|
11
|
+
popups: import('../..').PopupItem[];
|
|
12
|
+
activePopupId: string;
|
|
13
|
+
setActivePopup: (popupId: string) => void;
|
|
14
|
+
closePopup: (popupId: string) => void;
|
|
15
|
+
showPopup: (popupCode: string, popParams?: any, config?: PopupConfig) => Promise<void>;
|
|
16
|
+
isPopup: boolean;
|
|
17
|
+
};
|