@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
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import c from "react";
|
|
2
|
+
import { message as o } from "antd";
|
|
3
|
+
const d = (e) => {
|
|
4
|
+
try {
|
|
5
|
+
return new URL((/* @__PURE__ */ Object.assign({}))[`../assets/images/backgrounds/${e}`], import.meta.url).href;
|
|
6
|
+
} catch {
|
|
7
|
+
return g();
|
|
8
|
+
}
|
|
9
|
+
}, g = () => "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1920&h=1080&fit=crop&crop=center", f = (e) => {
|
|
10
|
+
try {
|
|
11
|
+
return new URL((/* @__PURE__ */ Object.assign({}))[`../assets/images/logos/${e}`], import.meta.url).href;
|
|
12
|
+
} catch {
|
|
13
|
+
return "/images/default-logo.png";
|
|
14
|
+
}
|
|
15
|
+
}, w = (e, t = "common") => {
|
|
16
|
+
try {
|
|
17
|
+
return new URL((/* @__PURE__ */ Object.assign({}))[`../assets/images/icons/${t}/${e}`], import.meta.url).href;
|
|
18
|
+
} catch {
|
|
19
|
+
return `/images/icons/${t}/default.svg`;
|
|
20
|
+
}
|
|
21
|
+
}, p = (e) => {
|
|
22
|
+
try {
|
|
23
|
+
return new URL((/* @__PURE__ */ Object.assign({}))[`../assets/images/avatars/${e}`], import.meta.url).href;
|
|
24
|
+
} catch {
|
|
25
|
+
return "/images/avatars/default.png";
|
|
26
|
+
}
|
|
27
|
+
}, i = (e) => new Promise((t, s) => {
|
|
28
|
+
const r = new Image();
|
|
29
|
+
r.onload = () => t(), r.onerror = () => s(new Error(`Failed to load image: ${e}`)), r.src = e;
|
|
30
|
+
}), m = (e, t, s) => {
|
|
31
|
+
const r = new URL(e);
|
|
32
|
+
return r.searchParams.set("w", t.toString()), r.searchParams.set("h", s.toString()), r.toString();
|
|
33
|
+
}, S = (e, t) => {
|
|
34
|
+
const s = new URL(e);
|
|
35
|
+
return s.searchParams.set("fm", t), s.toString();
|
|
36
|
+
}, $ = (e, t) => t.map((s) => `${m(e, s, s)} ${s}w`).join(", "), E = (e, t = {}) => {
|
|
37
|
+
const s = new URL(e);
|
|
38
|
+
return t.width && s.searchParams.set("w", t.width.toString()), t.height && s.searchParams.set("h", t.height.toString()), t.format && s.searchParams.set("fm", t.format), t.quality && s.searchParams.set("q", t.quality.toString()), s.toString();
|
|
39
|
+
}, I = (e) => {
|
|
40
|
+
const t = e.target;
|
|
41
|
+
t.src = "/images/placeholder.png", t.alt = "이미지를 불러올 수 없습니다";
|
|
42
|
+
}, L = (e) => {
|
|
43
|
+
const [t, s] = c.useState(!0), [r, a] = c.useState(!1);
|
|
44
|
+
return c.useEffect(() => {
|
|
45
|
+
s(!0), a(!1), i(e).then(() => s(!1)).catch(() => {
|
|
46
|
+
a(!0), s(!1);
|
|
47
|
+
});
|
|
48
|
+
}, [e]), { isLoading: t, hasError: r };
|
|
49
|
+
}, k = (e, t, s = 30) => {
|
|
50
|
+
const r = /* @__PURE__ */ new Date();
|
|
51
|
+
r.setTime(r.getTime() + s * 24 * 60 * 60 * 1e3), document.cookie = `${e}=${t};expires=${r.toUTCString()};path=/`;
|
|
52
|
+
}, U = (e) => {
|
|
53
|
+
const t = e + "=", s = document.cookie.split(";");
|
|
54
|
+
for (let r = 0; r < s.length; r++) {
|
|
55
|
+
let a = s[r];
|
|
56
|
+
for (; a.charAt(0) === " "; ) a = a.substring(1, a.length);
|
|
57
|
+
if (a.indexOf(t) === 0) return a.substring(t.length, a.length);
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}, R = (e) => {
|
|
61
|
+
document.cookie = `${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`;
|
|
62
|
+
}, b = "krx_ui_theme", u = (e, t = 3) => {
|
|
63
|
+
o.success({
|
|
64
|
+
content: e,
|
|
65
|
+
duration: t
|
|
66
|
+
});
|
|
67
|
+
}, n = (e, t = 5) => {
|
|
68
|
+
o.error({
|
|
69
|
+
content: e,
|
|
70
|
+
duration: t
|
|
71
|
+
});
|
|
72
|
+
}, v = (e = "처리중...") => o.loading({
|
|
73
|
+
content: e,
|
|
74
|
+
duration: 0
|
|
75
|
+
// 수동으로 닫을 때까지 유지
|
|
76
|
+
}), O = (e) => {
|
|
77
|
+
o.destroy(e);
|
|
78
|
+
}, P = () => {
|
|
79
|
+
o.destroy();
|
|
80
|
+
}, y = (e, t = "처리 중 오류가 발생했습니다.") => {
|
|
81
|
+
const s = e?.response?.data?.message || e?.message || t;
|
|
82
|
+
n(s);
|
|
83
|
+
}, T = (e = "저장") => {
|
|
84
|
+
u(`${e}이 완료되었습니다.`);
|
|
85
|
+
}, j = (e = "저장") => {
|
|
86
|
+
n(`${e} 중 오류가 발생했습니다.`);
|
|
87
|
+
}, x = (e) => {
|
|
88
|
+
n(`이미 사용중인 ${e}입니다.`);
|
|
89
|
+
}, C = (e) => {
|
|
90
|
+
n(`${e}을(를) 입력해주세요.`);
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
b as T,
|
|
94
|
+
p as a,
|
|
95
|
+
d as b,
|
|
96
|
+
S as c,
|
|
97
|
+
g as d,
|
|
98
|
+
w as e,
|
|
99
|
+
f,
|
|
100
|
+
$ as g,
|
|
101
|
+
E as h,
|
|
102
|
+
I as i,
|
|
103
|
+
R as j,
|
|
104
|
+
U as k,
|
|
105
|
+
v as l,
|
|
106
|
+
O as m,
|
|
107
|
+
P as n,
|
|
108
|
+
y as o,
|
|
109
|
+
i as p,
|
|
110
|
+
T as q,
|
|
111
|
+
m as r,
|
|
112
|
+
k as s,
|
|
113
|
+
j as t,
|
|
114
|
+
L as u,
|
|
115
|
+
x as v,
|
|
116
|
+
C as w
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("react"),n=require("antd");var a=typeof document<"u"?document.currentScript:null;const h=e=>{try{return new URL(Object.assign({})[`../assets/images/backgrounds/${e}`],typeof document>"u"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("chunks/messageUtils-RjJD_ArW.cjs",document.baseURI).href).href}catch{return i()}},i=()=>"https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1920&h=1080&fit=crop&crop=center",l=e=>{try{return new URL(Object.assign({})[`../assets/images/logos/${e}`],typeof document>"u"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("chunks/messageUtils-RjJD_ArW.cjs",document.baseURI).href).href}catch{return"/images/default-logo.png"}},d=(e,t="common")=>{try{return new URL(Object.assign({})[`../assets/images/icons/${t}/${e}`],typeof document>"u"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("chunks/messageUtils-RjJD_ArW.cjs",document.baseURI).href).href}catch{return`/images/icons/${t}/default.svg`}},f=e=>{try{return new URL(Object.assign({})[`../assets/images/avatars/${e}`],typeof document>"u"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("chunks/messageUtils-RjJD_ArW.cjs",document.baseURI).href).href}catch{return"/images/avatars/default.png"}},m=e=>new Promise((t,s)=>{const r=new Image;r.onload=()=>t(),r.onerror=()=>s(new Error(`Failed to load image: ${e}`)),r.src=e}),u=(e,t,s)=>{const r=new URL(e);return r.searchParams.set("w",t.toString()),r.searchParams.set("h",s.toString()),r.toString()},p=(e,t)=>{const s=new URL(e);return s.searchParams.set("fm",t),s.toString()},w=(e,t)=>t.map(s=>`${u(e,s,s)} ${s}w`).join(", "),I=(e,t={})=>{const s=new URL(e);return t.width&&s.searchParams.set("w",t.width.toString()),t.height&&s.searchParams.set("h",t.height.toString()),t.format&&s.searchParams.set("fm",t.format),t.quality&&s.searchParams.set("q",t.quality.toString()),s.toString()},U=e=>{const t=e.target;t.src="/images/placeholder.png",t.alt="이미지를 불러올 수 없습니다"},S=e=>{const[t,s]=g.useState(!0),[r,o]=g.useState(!1);return g.useEffect(()=>{s(!0),o(!1),m(e).then(()=>s(!1)).catch(()=>{o(!0),s(!1)})},[e]),{isLoading:t,hasError:r}},R=(e,t,s=30)=>{const r=new Date;r.setTime(r.getTime()+s*24*60*60*1e3),document.cookie=`${e}=${t};expires=${r.toUTCString()};path=/`},E=e=>{const t=e+"=",s=document.cookie.split(";");for(let r=0;r<s.length;r++){let o=s[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},L=e=>{document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`},k="krx_ui_theme",C=(e,t=3)=>{n.message.success({content:e,duration:t})},c=(e,t=5)=>{n.message.error({content:e,duration:t})},$=(e="처리중...")=>n.message.loading({content:e,duration:0}),T=e=>{n.message.destroy(e)},_=()=>{n.message.destroy()},v=(e,t="처리 중 오류가 발생했습니다.")=>{const s=e?.response?.data?.message||e?.message||t;c(s)},y=(e="저장")=>{C(`${e}이 완료되었습니다.`)},P=(e="저장")=>{c(`${e} 중 오류가 발생했습니다.`)},b=e=>{c(`이미 사용중인 ${e}입니다.`)},q=e=>{c(`${e}을(를) 입력해주세요.`)};exports.THEME_COOKIE_NAME=k;exports.closeAllMessages=_;exports.closeMessage=T;exports.convertImageFormat=p;exports.deleteCookie=L;exports.generateSrcSet=w;exports.getAvatarImage=f;exports.getBackgroundImage=h;exports.getCookie=E;exports.getDefaultBackgroundImage=i;exports.getIconImage=d;exports.getLogoImage=l;exports.getOptimizedImageUrl=I;exports.handleImageError=U;exports.preloadImage=m;exports.resizeImage=u;exports.setCookie=R;exports.showApiError=v;exports.showDuplicateError=b;exports.showLoading=$;exports.showRequiredError=q;exports.showSaveError=P;exports.showSaveSuccess=y;exports.useImageLoader=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("zustand"),a=require("./serviceConfig-Cr2P4yr4.cjs"),P=g.create((r,i)=>({popups:[],activePopupId:null,isLoading:!1,error:null,openPopup:async(p,s,u)=>{console.log("팝업 열기 요청:",{popupCode:p,data:s,config:u}),r({isLoading:!0,error:null});try{console.log("팝업 열기 시작:",p);let o=null;const n=await a.callService(a.getServiceCode("SRCH_POPU"),{crprCd:a.getUserInfo().crprCd,popuCd:p});console.log("팝업 정보 조회 결과:",n),o=n?.mstr;const t=n?.dtls||[];if(console.info("popupInfo:",o),!o||!o.popuUrl){const e=`팝업 정보를 찾을 수 없습니다: ${p}`;throw console.error(e),new Error(e)}console.log("파싱된 팝업 정보:",o),console.log("버튼 목록:",t);const d=(e=>`/src/pages/views/popup/${e}`)(o.popuUrl);console.log("변환된 팝업 URL:",d);const l={popupId:`popup_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,popupCode:p,popupTitle:o.popuNm||"팝업",popupUrl:d,popupParams:s,width:o.popuWdth||800,height:o.popuHght||600,resizable:!0,draggable:!0,buttonList:t,config:u};console.log("생성된 팝업 아이템:",l);const c=i().popups.find(e=>e.popupCode===p);if(c){console.log("기존 팝업 업데이트:",c.popupId),r({activePopupId:c.popupId,popups:i().popups.map(e=>e.popupId===c.popupId?{...e,config:u}:e),isLoading:!1});return}console.log("새 팝업 추가:",l.popupId),r(e=>({popups:[...e.popups,l],activePopupId:l.popupId,isLoading:!1})),console.log("팝업 열기 완료:",l)}catch(o){console.error("팝업 열기 실패:",o),r({error:o instanceof Error?o.message:"팝업 열기 실패",isLoading:!1})}},closePopup:p=>{const{popups:s,activePopupId:u}=i(),o=s.filter(t=>t.popupId!==p);let n=u;u===p&&(n=o.length>0?o[o.length-1].popupId:null),r({popups:o,activePopupId:n})},closeAllPopups:()=>{r({popups:[],activePopupId:null})},setActivePopup:p=>{r({activePopupId:p})},updatePopupConfig:(p,s)=>{r(u=>({popups:u.popups.map(o=>o.popupId===p?{...o,config:{...o.config,...s}}:o)}))}}));exports.usePopupStore=P;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { create as d } from "zustand";
|
|
2
|
+
import { V as g, am as P, a7 as I } from "./serviceConfig-BJBsdee_.js";
|
|
3
|
+
const h = d((r, i) => ({
|
|
4
|
+
popups: [],
|
|
5
|
+
activePopupId: null,
|
|
6
|
+
isLoading: !1,
|
|
7
|
+
error: null,
|
|
8
|
+
// 팝업 열기
|
|
9
|
+
openPopup: async (p, u, s) => {
|
|
10
|
+
console.log("팝업 열기 요청:", { popupCode: p, data: u, config: s }), r({ isLoading: !0, error: null });
|
|
11
|
+
try {
|
|
12
|
+
console.log("팝업 열기 시작:", p);
|
|
13
|
+
let o = null;
|
|
14
|
+
const l = await g(P("SRCH_POPU"), {
|
|
15
|
+
crprCd: I().crprCd,
|
|
16
|
+
popuCd: p
|
|
17
|
+
});
|
|
18
|
+
console.log("팝업 정보 조회 결과:", l), o = l?.mstr;
|
|
19
|
+
const t = l?.dtls || [];
|
|
20
|
+
if (console.info("popupInfo:", o), !o || !o.popuUrl) {
|
|
21
|
+
const e = `팝업 정보를 찾을 수 없습니다: ${p}`;
|
|
22
|
+
throw console.error(e), new Error(e);
|
|
23
|
+
}
|
|
24
|
+
console.log("파싱된 팝업 정보:", o), console.log("버튼 목록:", t);
|
|
25
|
+
const a = ((e) => `/src/pages/views/popup/${e}`)(o.popuUrl);
|
|
26
|
+
console.log("변환된 팝업 URL:", a);
|
|
27
|
+
const n = {
|
|
28
|
+
popupId: `popup_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
29
|
+
popupCode: p,
|
|
30
|
+
popupTitle: o.popuNm || "팝업",
|
|
31
|
+
popupUrl: a,
|
|
32
|
+
popupParams: u,
|
|
33
|
+
width: o.popuWdth || 800,
|
|
34
|
+
height: o.popuHght || 600,
|
|
35
|
+
resizable: !0,
|
|
36
|
+
draggable: !0,
|
|
37
|
+
buttonList: t,
|
|
38
|
+
// 버튼 목록 추가
|
|
39
|
+
config: s
|
|
40
|
+
};
|
|
41
|
+
console.log("생성된 팝업 아이템:", n);
|
|
42
|
+
const c = i().popups.find((e) => e.popupCode === p);
|
|
43
|
+
if (c) {
|
|
44
|
+
console.log("기존 팝업 업데이트:", c.popupId), r({
|
|
45
|
+
activePopupId: c.popupId,
|
|
46
|
+
popups: i().popups.map(
|
|
47
|
+
(e) => e.popupId === c.popupId ? { ...e, config: s } : e
|
|
48
|
+
),
|
|
49
|
+
isLoading: !1
|
|
50
|
+
});
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
console.log("새 팝업 추가:", n.popupId), r((e) => ({
|
|
54
|
+
popups: [...e.popups, n],
|
|
55
|
+
activePopupId: n.popupId,
|
|
56
|
+
isLoading: !1
|
|
57
|
+
})), console.log("팝업 열기 완료:", n);
|
|
58
|
+
} catch (o) {
|
|
59
|
+
console.error("팝업 열기 실패:", o), r({
|
|
60
|
+
error: o instanceof Error ? o.message : "팝업 열기 실패",
|
|
61
|
+
isLoading: !1
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
// 팝업 닫기
|
|
66
|
+
closePopup: (p) => {
|
|
67
|
+
const { popups: u, activePopupId: s } = i(), o = u.filter((t) => t.popupId !== p);
|
|
68
|
+
let l = s;
|
|
69
|
+
s === p && (l = o.length > 0 ? o[o.length - 1].popupId : null), r({
|
|
70
|
+
popups: o,
|
|
71
|
+
activePopupId: l
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
// 모든 팝업 닫기
|
|
75
|
+
closeAllPopups: () => {
|
|
76
|
+
r({
|
|
77
|
+
popups: [],
|
|
78
|
+
activePopupId: null
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
// 활성 팝업 설정
|
|
82
|
+
setActivePopup: (p) => {
|
|
83
|
+
r({ activePopupId: p });
|
|
84
|
+
},
|
|
85
|
+
// 팝업 설정 업데이트
|
|
86
|
+
updatePopupConfig: (p, u) => {
|
|
87
|
+
r((s) => ({
|
|
88
|
+
popups: s.popups.map(
|
|
89
|
+
(o) => o.popupId === p ? { ...o, config: { ...o.config, ...u } } : o
|
|
90
|
+
)
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
}));
|
|
94
|
+
export {
|
|
95
|
+
h as u
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={left:"left",near:"left",right:"right",far:"right",center:"center",number:"#,##0",number2:"#,##0.00",number3:"#,##0.##",number4:"#,##0.000",number5:"#,##0.#####",editNumber:{type:"number",editFormat:"#,##0"},editNumber2:{type:"number",editFormat:"#,##0.00"},editNumber3:{type:"number",editFormat:"#,##0.##"},editNumber4:{type:"number",editFormat:"#,##0.000"},editNumber5:{type:"number",editFormat:"#,##0.###"},editYmd:{type:"date",datetimeFormat:"yyyyMMdd",autoclose:!0,maxDate:"99991231",minDate:"19000101",showButtons:!1,mask:{editMask:"9999-99-99"}},editYm:{type:"btdate",datetimeFormat:"yyyyMM",btOptions:{startView:1,minViewMode:1,todayBtn:"linked",language:"ko",todayHighlight:!0,autoclose:!0,mask:{editMask:"9999-99"}}},editYy:{type:"btdate",datetimeFormat:"yyyy",btOptions:{startView:2,minViewMode:2,todayBtn:"linked",language:"ko",todayHighlight:!0,autoclose:!0}},formatYmd:"([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",formatYm:"([0-9]{4})([0-9]{2});$1-$2",formatYy:"([0-9]{4});$1",lookup:{type:"dropdown",domainOnly:!0},lookupReadOnly:{type:"dropdown",readOnly:!0},maskCard:{type:"text",mask:"0000-0000-0000-0000"},formatMaskCard:"([0-9]{4})([0-9]{4})([0-9]{4})([0-9]{4});$1-$2-$3-$4",maskBsnsNo:{type:"text",mask:"000-00-00000"},formatMaskBsnsNo:"([0-9]{3})([0-9]{2})([0-9]{5});$1-$2-$3",maskRsdn:{type:"text",mask:"000000-0000000"},formatMaskRsdn:"([0-9]{6})([0-9]{7});$1-$2",formatMaskRsdn2:"([0-9]{6})([0-9])([0-9]{6});$1-$2******",maskRsdn2:{type:"text",mask:"999999-9999999"},maskYmd:{type:"text",mask:"0000-00-00"},formatMaskYmd:"([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",maskYm:{type:"text",mask:"0000-00"},formatMaskYm:"([0-9]{4})([0-9]{2});$1-$2",maskYmdHms:{type:"text",mask:"0000-00-00 00:00:00"},formatYmdHms:"([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2});$1-$2-$3 $4:$5:$6",maskHm:{type:"text",mask:"00:00"},formatHm:"([0-9]{2})([0-9]{2});$1:$2",maskHms:{type:"text",mask:"00:00:00"},formatHms:"([0-9]{2})([0-9]{2})([0-9]{2});$1:$2:$3",checkY:{type:"check",trueValues:"Y",falseValues:"N"},checkN:{type:"check",trueValues:"N",falseValues:"Y"},check1:{type:"check",trueValues:"1",falseValues:"0"},checkTrue:{type:"check",trueValues:"true",falseValues:"false"},checkT:{type:"check",trueValues:"T",falseValues:"F"},checkYdisabled:{type:"check",editable:!1,trueValues:"Y",falseValues:"N"},checkNdisabled:{type:"check",editable:!1,trueValues:"N",falseValues:"Y"},check1disabled:{type:"check",editable:!1,trueValues:"1",falseValues:"0"},count:{suffix:" 건",expression:"count"},count2:{prefix:"총 ",suffix:" 건",expression:"count"},datacount:{suffix:" 건",expression:"datacount"},sum:{numberFormat:"#,##0",expression:"sum"},sum2:{numberFormat:"#,##0.##",expression:"sum"},sum3:{numberFormat:"#,##0.00",expression:"sum"},avg:{numberFormat:"#,##0",expression:"avg"},avg2:{numberFormat:"#,##0.##",expression:"avg"},avg4:{numberFormat:"#,##0.####",expression:"avg"},min:{expression:"min"},max:{expression:"max"},date:{type:"date",mask:{editMask:"9999-99-99",placeHolder:"____-__-__",includedFormat:!0},datetimeFormat:"yyyy-MM-dd",textAlignment:"center",yearNavigation:!0},dateStyle:{datetimeFormat:"yyyy-MM-dd",textAlignment:"center"},maskDateFull:{type:"text",mask:"0000-00-00 00:00:00",textAlignment:"center"},bg_gray01:{background:"#cdcdcd"}};exports.realFormat=e;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
/*************************************************************************************************************************************************
|
|
3
|
+
* RealGrid2 use
|
|
4
|
+
*************************************************************************************************************************************************/
|
|
5
|
+
// Ex) styleName : realFormat.left, Description : 정렬
|
|
6
|
+
left: "left",
|
|
7
|
+
near: "left",
|
|
8
|
+
right: "right",
|
|
9
|
+
far: "right",
|
|
10
|
+
center: "center",
|
|
11
|
+
number: "#,##0",
|
|
12
|
+
//정수형
|
|
13
|
+
number2: "#,##0.00",
|
|
14
|
+
// 뒷자리'0'은 고정을 의미, 고정 소수점2자리까지 입력
|
|
15
|
+
number3: "#,##0.##",
|
|
16
|
+
// 뒷자리'#'은 가변형을 의미, 가변 소수점2자리까지 입력
|
|
17
|
+
number4: "#,##0.000",
|
|
18
|
+
number5: "#,##0.#####",
|
|
19
|
+
editNumber: {
|
|
20
|
+
// Ex) editor : realFormat.editNumber, Description : 정수만 입력
|
|
21
|
+
type: "number",
|
|
22
|
+
editFormat: "#,##0"
|
|
23
|
+
},
|
|
24
|
+
editNumber2: {
|
|
25
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'0'은 고정을 의미, 고정 소수점2자리까지 입력
|
|
26
|
+
type: "number",
|
|
27
|
+
editFormat: "#,##0.00"
|
|
28
|
+
},
|
|
29
|
+
editNumber3: {
|
|
30
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'#'은 가변형을 의미, 가변 소수점2자리까지 입력
|
|
31
|
+
type: "number",
|
|
32
|
+
editFormat: "#,##0.##"
|
|
33
|
+
},
|
|
34
|
+
editNumber4: {
|
|
35
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'0'은 고정을 의미, 고정 소수점3자리까지 입력
|
|
36
|
+
type: "number",
|
|
37
|
+
editFormat: "#,##0.000"
|
|
38
|
+
},
|
|
39
|
+
editNumber5: {
|
|
40
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'#'은 가변형을 의미, 가변 소수점3자리까지 입력
|
|
41
|
+
type: "number",
|
|
42
|
+
editFormat: "#,##0.###"
|
|
43
|
+
},
|
|
44
|
+
editYmd: {
|
|
45
|
+
// Ex) editor : realFormat.editYmd, Description : 년월일 달력
|
|
46
|
+
type: "date",
|
|
47
|
+
datetimeFormat: "yyyyMMdd",
|
|
48
|
+
autoclose: !0,
|
|
49
|
+
maxDate: "99991231",
|
|
50
|
+
minDate: "19000101",
|
|
51
|
+
showButtons: !1,
|
|
52
|
+
mask: {
|
|
53
|
+
editMask: "9999-99-99"
|
|
54
|
+
// LDH 추가(21.08.26, 하이픈 추가하여 복사붙여넣기 하여도 원하는 날짜가 복사되도록
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
editYm: {
|
|
58
|
+
// Ex) editor : realFormat.editYm, Description : 년월 달력
|
|
59
|
+
type: "btdate",
|
|
60
|
+
datetimeFormat: "yyyyMM",
|
|
61
|
+
btOptions: {
|
|
62
|
+
startView: 1,
|
|
63
|
+
// 최초 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
64
|
+
minViewMode: 1,
|
|
65
|
+
// 최종 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
66
|
+
todayBtn: "linked",
|
|
67
|
+
language: "ko",
|
|
68
|
+
todayHighlight: !0,
|
|
69
|
+
// today 기능
|
|
70
|
+
autoclose: !0,
|
|
71
|
+
mask: {
|
|
72
|
+
editMask: "9999-99"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
editYy: {
|
|
77
|
+
// Ex) editor : realFormat.editYy, Description : 년 달력
|
|
78
|
+
type: "btdate",
|
|
79
|
+
datetimeFormat: "yyyy",
|
|
80
|
+
btOptions: {
|
|
81
|
+
startView: 2,
|
|
82
|
+
// 최초 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
83
|
+
minViewMode: 2,
|
|
84
|
+
// 최종 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
85
|
+
todayBtn: "linked",
|
|
86
|
+
language: "ko",
|
|
87
|
+
todayHighlight: !0,
|
|
88
|
+
autoclose: !0
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
formatYmd: "([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",
|
|
92
|
+
// Ex) textFormat : realFormat.formatYmd
|
|
93
|
+
formatYm: "([0-9]{4})([0-9]{2});$1-$2",
|
|
94
|
+
// Ex) textFormat : realFormat.formatYm
|
|
95
|
+
formatYy: "([0-9]{4});$1",
|
|
96
|
+
// Ex) textFormat : realFormat.formatYy
|
|
97
|
+
lookup: {
|
|
98
|
+
// Ex) editor : realFormat.lookup, Description : 콤보박스 dropDown
|
|
99
|
+
type: "dropdown",
|
|
100
|
+
domainOnly: !0
|
|
101
|
+
},
|
|
102
|
+
lookupReadOnly: {
|
|
103
|
+
// Ex) editor : realFormat.lookup, Description : 콤보박스 dropDown
|
|
104
|
+
type: "dropdown",
|
|
105
|
+
readOnly: !0
|
|
106
|
+
},
|
|
107
|
+
maskCard: {
|
|
108
|
+
// Ex) editor : realFormat.maskCard
|
|
109
|
+
type: "text",
|
|
110
|
+
mask: "0000-0000-0000-0000"
|
|
111
|
+
},
|
|
112
|
+
formatMaskCard: "([0-9]{4})([0-9]{4})([0-9]{4})([0-9]{4});$1-$2-$3-$4",
|
|
113
|
+
// Ex) textFormat : realFormat.formatMaskCard
|
|
114
|
+
maskBsnsNo: {
|
|
115
|
+
// Ex) editor : realFormat.maskBsnsNo
|
|
116
|
+
type: "text",
|
|
117
|
+
mask: "000-00-00000"
|
|
118
|
+
},
|
|
119
|
+
formatMaskBsnsNo: "([0-9]{3})([0-9]{2})([0-9]{5});$1-$2-$3",
|
|
120
|
+
// Ex) textFormat : realFormat.formatMaskBsnsNo
|
|
121
|
+
maskRsdn: {
|
|
122
|
+
// Ex) editor : realFormat.maskRsdn, Description : 필드 입력 시, 공백불가
|
|
123
|
+
type: "text",
|
|
124
|
+
mask: "000000-0000000"
|
|
125
|
+
},
|
|
126
|
+
formatMaskRsdn: "([0-9]{6})([0-9]{7});$1-$2",
|
|
127
|
+
// Ex) textFormat : realFormat.formatMaskRsdn
|
|
128
|
+
formatMaskRsdn2: "([0-9]{6})([0-9])([0-9]{6});$1-$2******",
|
|
129
|
+
// Ex) textFormat : realFormat.formatMaskRsdn
|
|
130
|
+
maskRsdn2: {
|
|
131
|
+
// Ex) editor : realFormat.maskRsdn2, Description : 필드 입력 시, 공백허용
|
|
132
|
+
type: "text",
|
|
133
|
+
mask: "999999-9999999"
|
|
134
|
+
},
|
|
135
|
+
maskYmd: {
|
|
136
|
+
// Ex) editor : realFormat.maskYmd
|
|
137
|
+
type: "text",
|
|
138
|
+
mask: "0000-00-00"
|
|
139
|
+
},
|
|
140
|
+
formatMaskYmd: "([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",
|
|
141
|
+
// Ex) textFormat : realFormat.formatMaskYmd
|
|
142
|
+
maskYm: {
|
|
143
|
+
// Ex) editor : realFormat.maskYm
|
|
144
|
+
type: "text",
|
|
145
|
+
mask: "0000-00"
|
|
146
|
+
},
|
|
147
|
+
formatMaskYm: "([0-9]{4})([0-9]{2});$1-$2",
|
|
148
|
+
// Ex) textFormat : realFormat.formatMaskYm
|
|
149
|
+
maskYmdHms: {
|
|
150
|
+
// Ex) textFormat : realFormat.maskYmdHms, Description : 년월일 시분초
|
|
151
|
+
type: "text",
|
|
152
|
+
mask: "0000-00-00 00:00:00"
|
|
153
|
+
},
|
|
154
|
+
formatYmdHms: "([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2});$1-$2-$3 $4:$5:$6",
|
|
155
|
+
// Ex) textFormat : realFormat.formatYmdHms
|
|
156
|
+
maskHm: {
|
|
157
|
+
// Ex) textFormat : realFormat.maskHm, Description : 시분
|
|
158
|
+
type: "text",
|
|
159
|
+
mask: "00:00"
|
|
160
|
+
},
|
|
161
|
+
formatHm: "([0-9]{2})([0-9]{2});$1:$2",
|
|
162
|
+
// Ex) textFormat : realFormat.formatHm
|
|
163
|
+
maskHms: {
|
|
164
|
+
// Ex) textFormat : realFormat.maskHms, Description : 시분초
|
|
165
|
+
type: "text",
|
|
166
|
+
mask: "00:00:00"
|
|
167
|
+
},
|
|
168
|
+
formatHms: "([0-9]{2})([0-9]{2})([0-9]{2});$1:$2:$3",
|
|
169
|
+
// Ex) textFormat : realFormat.formatHms
|
|
170
|
+
checkY: {
|
|
171
|
+
// Ex) renderer : realFormat.checkY , Description : 체크박스
|
|
172
|
+
type: "check",
|
|
173
|
+
trueValues: "Y",
|
|
174
|
+
falseValues: "N"
|
|
175
|
+
},
|
|
176
|
+
checkN: {
|
|
177
|
+
// Ex) renderer : realFormat.checkN
|
|
178
|
+
type: "check",
|
|
179
|
+
trueValues: "N",
|
|
180
|
+
falseValues: "Y"
|
|
181
|
+
},
|
|
182
|
+
check1: {
|
|
183
|
+
// Ex) renderer : realFormat.check1
|
|
184
|
+
type: "check",
|
|
185
|
+
trueValues: "1",
|
|
186
|
+
falseValues: "0"
|
|
187
|
+
},
|
|
188
|
+
checkTrue: {
|
|
189
|
+
// Ex) renderer : realFormat.checkTrue
|
|
190
|
+
type: "check",
|
|
191
|
+
trueValues: "true",
|
|
192
|
+
falseValues: "false"
|
|
193
|
+
},
|
|
194
|
+
checkT: {
|
|
195
|
+
// Ex) renderer : realFormat.checkT
|
|
196
|
+
type: "check",
|
|
197
|
+
trueValues: "T",
|
|
198
|
+
falseValues: "F"
|
|
199
|
+
},
|
|
200
|
+
checkYdisabled: {
|
|
201
|
+
// Ex) renderer : realFormat.checkYdisabled , Description : 수정불가
|
|
202
|
+
type: "check",
|
|
203
|
+
editable: !1,
|
|
204
|
+
trueValues: "Y",
|
|
205
|
+
falseValues: "N"
|
|
206
|
+
},
|
|
207
|
+
checkNdisabled: {
|
|
208
|
+
// Ex) renderer : realFormat.checkNdisabled , Description : 수정불가
|
|
209
|
+
type: "check",
|
|
210
|
+
editable: !1,
|
|
211
|
+
trueValues: "N",
|
|
212
|
+
falseValues: "Y"
|
|
213
|
+
},
|
|
214
|
+
check1disabled: {
|
|
215
|
+
// Ex) renderer : realFormat.check1disabled , Description : 수정불가
|
|
216
|
+
type: "check",
|
|
217
|
+
editable: !1,
|
|
218
|
+
trueValues: "1",
|
|
219
|
+
falseValues: "0"
|
|
220
|
+
},
|
|
221
|
+
count: {
|
|
222
|
+
// Ex) footer : realFormat.count, Description : 기본 footer Format
|
|
223
|
+
suffix: " 건",
|
|
224
|
+
expression: "count"
|
|
225
|
+
},
|
|
226
|
+
count2: {
|
|
227
|
+
// Ex) footer : realFormat.count2
|
|
228
|
+
prefix: "총 ",
|
|
229
|
+
suffix: " 건",
|
|
230
|
+
expression: "count"
|
|
231
|
+
},
|
|
232
|
+
datacount: {
|
|
233
|
+
// Ex) footer : realFormat.datacount, Description : 값이 지정되어 잇는 데이터 개수 (null 이 아닌)
|
|
234
|
+
suffix: " 건",
|
|
235
|
+
expression: "datacount"
|
|
236
|
+
},
|
|
237
|
+
sum: {
|
|
238
|
+
// Ex) renderer : realFormat.sum
|
|
239
|
+
numberFormat: "#,##0",
|
|
240
|
+
expression: "sum"
|
|
241
|
+
},
|
|
242
|
+
sum2: {
|
|
243
|
+
// Ex) renderer : realFormat.sum2
|
|
244
|
+
numberFormat: "#,##0.##",
|
|
245
|
+
expression: "sum"
|
|
246
|
+
},
|
|
247
|
+
sum3: {
|
|
248
|
+
// Ex) renderer : realFormat.sum2
|
|
249
|
+
numberFormat: "#,##0.00",
|
|
250
|
+
expression: "sum"
|
|
251
|
+
},
|
|
252
|
+
avg: {
|
|
253
|
+
// Ex) renderer : realFormat.avg
|
|
254
|
+
numberFormat: "#,##0",
|
|
255
|
+
expression: "avg"
|
|
256
|
+
},
|
|
257
|
+
avg2: {
|
|
258
|
+
// Ex) renderer : realFormat.avg2
|
|
259
|
+
numberFormat: "#,##0.##",
|
|
260
|
+
expression: "avg"
|
|
261
|
+
},
|
|
262
|
+
avg4: {
|
|
263
|
+
// Ex) renderer : realFormat.avg4
|
|
264
|
+
numberFormat: "#,##0.####",
|
|
265
|
+
expression: "avg"
|
|
266
|
+
},
|
|
267
|
+
min: {
|
|
268
|
+
// Ex) renderer : realFormat.min
|
|
269
|
+
expression: "min"
|
|
270
|
+
},
|
|
271
|
+
max: {
|
|
272
|
+
// Ex) renderer : realFormat.max
|
|
273
|
+
expression: "max"
|
|
274
|
+
},
|
|
275
|
+
/*************************************************************************************************************************************************
|
|
276
|
+
* RealGrid2 deprecated
|
|
277
|
+
*************************************************************************************************************************************************/
|
|
278
|
+
date: {
|
|
279
|
+
type: "date",
|
|
280
|
+
mask: {
|
|
281
|
+
editMask: "9999-99-99",
|
|
282
|
+
placeHolder: "____-__-__",
|
|
283
|
+
includedFormat: !0
|
|
284
|
+
},
|
|
285
|
+
datetimeFormat: "yyyy-MM-dd",
|
|
286
|
+
textAlignment: "center",
|
|
287
|
+
yearNavigation: !0
|
|
288
|
+
},
|
|
289
|
+
dateStyle: {
|
|
290
|
+
datetimeFormat: "yyyy-MM-dd",
|
|
291
|
+
textAlignment: "center"
|
|
292
|
+
},
|
|
293
|
+
maskDateFull: {
|
|
294
|
+
type: "text",
|
|
295
|
+
mask: "0000-00-00 00:00:00",
|
|
296
|
+
textAlignment: "center"
|
|
297
|
+
},
|
|
298
|
+
bg_gray01: {
|
|
299
|
+
background: "#cdcdcd"
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
export {
|
|
303
|
+
e as r
|
|
304
|
+
};
|