@owp/core 2.5.5 → 2.5.7
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/configs/theme.d.ts +3 -0
- package/configs/theme.js +1 -0
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index5.js +2 -2
- package/dist/configs/defaultConfig.js +1 -1
- package/dist/configs/theme.js +28 -0
- package/dist/configs/theme.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewColorField.js +279 -208
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/features/themePreview/configs/presets.js +6 -38
- package/dist/features/themePreview/configs/presets.js.map +1 -1
- package/dist/features/themePreview/configs/previewStorage.js +28 -27
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +166 -154
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js +202 -157
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js +276 -67
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
- package/dist/features/themePreview.js +52 -52
- package/dist/hooks/useCommonCodeList.js +31 -8
- package/dist/hooks/useCommonCodeList.js.map +1 -1
- package/dist/hooks.js +81 -80
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/configs/theme/index.d.ts +6 -0
- package/dist/types/features/themePreview/configs/index.d.ts +1 -1
- package/dist/types/features/themePreview/configs/presets.d.ts +0 -1
- package/dist/types/features/themePreview/configs/previewStorage.d.ts +1 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +2 -1
- package/dist/types/features/themePreview/utils/index.d.ts +1 -1
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +38 -1083
- package/dist/types/hooks/useCommonCodeList.d.ts +18 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/treeGridYnUtils.d.ts +15 -0
- package/dist/types/utils/zipUtil.d.ts +1 -0
- package/dist/utils/treeGridYnUtils.js +9 -0
- package/dist/utils/treeGridYnUtils.js.map +1 -0
- package/dist/utils/zipUtil.js +38 -36
- package/dist/utils/zipUtil.js.map +1 -1
- package/dist/utils.js +59 -55
- package/dist/utils.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import { CommonCode } from '@/utils/commonCodeUtils';
|
|
1
|
+
import type { CommonCode } from '@/utils/commonCodeUtils';
|
|
2
|
+
type CommonCodeQueryKey = 'IPX_COMMONCODE.CODEID' | 'IPX_COMMONCODE.GROUPID' | 'IPX_COMMONCODE.DESCRIPTION' | 'IPX_COMMONCODE.FLAG';
|
|
3
|
+
export type CommonCodeQuery = Partial<Pick<CommonCode, CommonCodeQueryKey>>;
|
|
4
|
+
export interface UseFilteredCommonCodeListProps {
|
|
5
|
+
query?: CommonCodeQuery;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* 공통코드 목록 조회 훅
|
|
4
10
|
*/
|
|
5
11
|
export declare const useGetCommonCodeList: () => {
|
|
6
12
|
[codeId: string]: CommonCode[];
|
|
7
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* 조건 기반 공통코드 목록 조회 훅
|
|
16
|
+
* @param props 조회 옵션
|
|
17
|
+
* @param props.query 공통코드 필터 조건
|
|
18
|
+
* @param props.enabled 조회 활성화 여부
|
|
19
|
+
*/
|
|
20
|
+
export declare const useFilteredCommonCodeList: ({ query, enabled, }?: UseFilteredCommonCodeListProps) => {
|
|
21
|
+
commonCodeList: CommonCode[];
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
};
|
|
8
24
|
/**
|
|
9
25
|
* 공통코드 목록 설정 훅
|
|
10
26
|
*/
|
|
@@ -15,3 +31,4 @@ export declare const useSetCommonCodeList: () => (args_0: typeof import("jotai/u
|
|
|
15
31
|
}) => typeof import("jotai/utils").RESET | {
|
|
16
32
|
[codeId: string]: CommonCode[];
|
|
17
33
|
})) => void;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TreeGrid 체크 값 판별
|
|
3
|
+
* @param value 원본 값
|
|
4
|
+
*/
|
|
5
|
+
export declare const isTreeGridCheckedValue: (value: number | string | undefined) => value is 1 | "Y" | "1";
|
|
6
|
+
/**
|
|
7
|
+
* TreeGrid 숫자 불리언 값 변환
|
|
8
|
+
* @param value 원본 값
|
|
9
|
+
*/
|
|
10
|
+
export declare const toTreeGridBoolValue: (value: number | string | undefined) => 0 | 1;
|
|
11
|
+
/**
|
|
12
|
+
* TreeGrid Y/N 값 변환
|
|
13
|
+
* @param value 원본 값
|
|
14
|
+
*/
|
|
15
|
+
export declare const toTreeGridYnValue: (value: number | string | undefined) => "Y" | "N";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var o = (e, t) => c(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
const r = /* @__PURE__ */ o((e) => e === 1 || e === "1" || e === "Y", "isTreeGridCheckedValue"), i = /* @__PURE__ */ o((e) => r(e) ? 1 : 0, "toTreeGridBoolValue"), n = /* @__PURE__ */ o((e) => r(e) ? "Y" : "N", "toTreeGridYnValue");
|
|
4
|
+
export {
|
|
5
|
+
r as isTreeGridCheckedValue,
|
|
6
|
+
i as toTreeGridBoolValue,
|
|
7
|
+
n as toTreeGridYnValue
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=treeGridYnUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treeGridYnUtils.js","sources":["../../src/utils/treeGridYnUtils.ts"],"sourcesContent":["/**\n * TreeGrid 체크 값 판별\n * @param value 원본 값\n */\nexport const isTreeGridCheckedValue = (value: number | string | undefined) =>\n value === 1 || value === '1' || value === 'Y';\n\n/**\n * TreeGrid 숫자 불리언 값 변환\n * @param value 원본 값\n */\nexport const toTreeGridBoolValue = (value: number | string | undefined) =>\n isTreeGridCheckedValue(value) ? 1 : 0;\n\n/**\n * TreeGrid Y/N 값 변환\n * @param value 원본 값\n */\nexport const toTreeGridYnValue = (value: number | string | undefined) =>\n isTreeGridCheckedValue(value) ? 'Y' : 'N';\n"],"names":["isTreeGridCheckedValue","__name","value","toTreeGridBoolValue","toTreeGridYnValue"],"mappings":";;AAIO,MAAMA,IAAyB,gBAAAC,EAAA,CAACC,MACrCA,MAAU,KAAKA,MAAU,OAAOA,MAAU,KADN,2BAOzBC,IAAsB,gBAAAF,EAAA,CAACC,MAClCF,EAAuBE,CAAK,IAAI,IAAI,GADH,wBAOtBE,IAAoB,gBAAAH,EAAA,CAACC,MAChCF,EAAuBE,CAAK,IAAI,MAAM,KADP;"}
|
package/dist/utils/zipUtil.js
CHANGED
|
@@ -1,69 +1,71 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (e, t) =>
|
|
3
|
-
import
|
|
4
|
-
import { t as
|
|
5
|
-
import { enqueueSnackbar as
|
|
6
|
-
import { loadJSZip as
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var i = (e, t) => y(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import v from "dayjs";
|
|
4
|
+
import { t as E } from "i18next";
|
|
5
|
+
import { enqueueSnackbar as d } from "notistack";
|
|
6
|
+
import { loadJSZip as m } from "./jszipBrowser.js";
|
|
7
7
|
const l = {
|
|
8
8
|
type: "pdf",
|
|
9
9
|
fileExtension: "application/pdf",
|
|
10
10
|
fileTitle: "archive",
|
|
11
11
|
archiveExtension: "zip",
|
|
12
|
-
appendDatetime: !1
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
appendDatetime: !1,
|
|
13
|
+
preserveFileNames: !1
|
|
14
|
+
}, u = /* @__PURE__ */ i((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "_"), "sanitizeFileName"), f = /* @__PURE__ */ i((e) => {
|
|
15
|
+
d(
|
|
16
|
+
E(`Message.${e}`, {
|
|
16
17
|
defaultValue: e
|
|
17
18
|
}),
|
|
18
19
|
{ variant: "warning" }
|
|
19
20
|
);
|
|
20
|
-
}, "showZipWarning"),
|
|
21
|
+
}, "showZipWarning"), x = /* @__PURE__ */ i((e) => ({
|
|
21
22
|
type: (e == null ? void 0 : e.type) ?? l.type,
|
|
22
23
|
fileExtension: (e == null ? void 0 : e.fileExtension) ?? l.fileExtension,
|
|
23
24
|
fileTitle: (e == null ? void 0 : e.fileTitle) ?? l.fileTitle,
|
|
24
25
|
archiveExtension: (e == null ? void 0 : e.archiveExtension) ?? l.archiveExtension,
|
|
25
|
-
appendDatetime: (e == null ? void 0 : e.appendDatetime) ?? l.appendDatetime
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
appendDatetime: (e == null ? void 0 : e.appendDatetime) ?? l.appendDatetime,
|
|
27
|
+
preserveFileNames: (e == null ? void 0 : e.preserveFileNames) ?? l.preserveFileNames
|
|
28
|
+
}), "normalizeZipOptions"), F = /* @__PURE__ */ i((e, t, r) => `${u(`${e + 1}_${t}`)}.${r}`, "createZipEntryFileName"), Z = /* @__PURE__ */ i((e) => e.replace(/^\.+/, "") || l.archiveExtension, "normalizeArchiveExtension"), w = /* @__PURE__ */ i((e, t, r) => `${u(e)}${t ? `-${v().format("YYYY_MM_DD_HH_mm_ss")}` : ""}.${Z(r)}`, "createArchiveFileName"), h = /* @__PURE__ */ i((e, t) => typeof t == "string" ? e === t : t instanceof RegExp ? t.test(e) : t(e), "isMatchedZipEntry"), N = /* @__PURE__ */ i(async (e) => e instanceof Blob ? e.arrayBuffer() : e, "toZipArrayBuffer"), $ = /* @__PURE__ */ i(async (e, t) => {
|
|
29
|
+
const a = await (await m()).loadAsync(await N(e)), n = Object.values(a.files).find(
|
|
28
30
|
(c) => !c.dir && h(c.name, t)
|
|
29
31
|
);
|
|
30
|
-
return
|
|
32
|
+
return n ? n.async("string") : null;
|
|
31
33
|
}, "readZipEntryText"), A = /* @__PURE__ */ i(async (e, t) => {
|
|
32
|
-
const
|
|
33
|
-
return
|
|
34
|
-
}, "readZipEntryJson"),
|
|
35
|
-
t.forEach(({ blob: a, fileName:
|
|
34
|
+
const r = await $(e, t);
|
|
35
|
+
return r ? JSON.parse(r) : null;
|
|
36
|
+
}, "readZipEntryJson"), _ = /* @__PURE__ */ i((e, t, r) => {
|
|
37
|
+
t.forEach(({ blob: a, fileName: n }, c) => {
|
|
36
38
|
a && e.file(
|
|
37
|
-
|
|
38
|
-
new Blob([a], { type:
|
|
39
|
+
r.preserveFileNames ? n : F(c, n, r.fileExtension),
|
|
40
|
+
r.preserveFileNames ? a : new Blob([a], { type: r.type })
|
|
39
41
|
);
|
|
40
42
|
});
|
|
41
43
|
}, "appendZipFiles"), S = /* @__PURE__ */ i(async (e, t) => {
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
44
|
-
|
|
44
|
+
const r = x(t);
|
|
45
|
+
if (!r.preserveFileNames && !r.type) {
|
|
46
|
+
f("type 이 선언되지 않았습니다");
|
|
45
47
|
return;
|
|
46
48
|
}
|
|
47
|
-
if (!
|
|
48
|
-
|
|
49
|
+
if (!r.preserveFileNames && !r.fileExtension) {
|
|
50
|
+
f("파일 확장자가 선언되지 않았습니다");
|
|
49
51
|
return;
|
|
50
52
|
}
|
|
51
53
|
if (!e) {
|
|
52
|
-
|
|
54
|
+
f("다운로드할 데이터가 없습니다");
|
|
53
55
|
return;
|
|
54
56
|
}
|
|
55
|
-
const a = await
|
|
56
|
-
|
|
57
|
-
const c = await
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
),
|
|
57
|
+
const a = await m(), n = new a();
|
|
58
|
+
_(n, e, r);
|
|
59
|
+
const c = await n.generateAsync({ type: "blob" }), p = URL.createObjectURL(c), s = document.createElement("a");
|
|
60
|
+
s.href = p, s.download = w(
|
|
61
|
+
r.fileTitle,
|
|
62
|
+
r.appendDatetime,
|
|
63
|
+
r.archiveExtension
|
|
64
|
+
), s.click(), URL.revokeObjectURL(p);
|
|
63
65
|
}, "saveAsZipFile");
|
|
64
66
|
export {
|
|
65
67
|
A as readZipEntryJson,
|
|
66
|
-
|
|
68
|
+
$ as readZipEntryText,
|
|
67
69
|
S as saveAsZipFile
|
|
68
70
|
};
|
|
69
71
|
//# sourceMappingURL=zipUtil.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zipUtil.js","sources":["../../src/utils/zipUtil.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { t } from 'i18next';\nimport type JSZip from 'jszip';\nimport { enqueueSnackbar } from 'notistack';\nimport { loadJSZip } from './jszipBrowser';\n\ntype BlobInfoData = {\n blob: Blob;\n fileName: string;\n};\n\nexport interface SaveAsZipFileOptions {\n type?: string;\n fileExtension?: string;\n fileTitle?: string;\n archiveExtension?: string;\n appendDatetime?: boolean;\n}\n\nconst DEFAULT_ZIP_OPTIONS: Required<SaveAsZipFileOptions> = {\n type: 'pdf',\n fileExtension: 'application/pdf',\n fileTitle: 'archive',\n archiveExtension: 'zip',\n appendDatetime: false,\n};\n\n/**\n * 파일명 안전 문자 변환\n * @param fileName 원본 파일명\n */\nconst sanitizeFileName = (fileName: string) => fileName.replace(/[.*+?^${}()|[\\]\\\\]/g, '_');\n\n/**\n * ZIP 경고 메시지 출력\n * @param message 경고 메시지\n */\nconst showZipWarning = (message: string) => {\n enqueueSnackbar(\n t(`Message.${message}`, {\n defaultValue: message,\n }),\n { variant: 'warning' },\n );\n};\n\n/**\n * ZIP 저장 옵션 정규화\n * @param options 저장 옵션\n */\nconst normalizeZipOptions = (options?: SaveAsZipFileOptions) => {\n return {\n type: options?.type ?? DEFAULT_ZIP_OPTIONS.type,\n fileExtension: options?.fileExtension ?? DEFAULT_ZIP_OPTIONS.fileExtension,\n fileTitle: options?.fileTitle ?? DEFAULT_ZIP_OPTIONS.fileTitle,\n archiveExtension: options?.archiveExtension ?? DEFAULT_ZIP_OPTIONS.archiveExtension,\n appendDatetime: options?.appendDatetime ?? DEFAULT_ZIP_OPTIONS.appendDatetime,\n };\n};\n\n/**\n * ZIP 내부 파일명 생성\n * @param index 파일 순서\n * @param fileName 파일명\n * @param fileExtension 파일 확장자\n */\nconst createZipEntryFileName = (index: number, fileName: string, fileExtension: string) => {\n return `${sanitizeFileName(`${index + 1}_${fileName}`)}.${fileExtension}`;\n};\n\n/**\n * ZIP 다운로드 파일명 생성\n * @param fileTitle 파일 제목\n * @param appendDatetime 일시 추가 여부\n */\nconst normalizeArchiveExtension = (archiveExtension: string) => {\n return archiveExtension.replace(/^\\.+/, '') || DEFAULT_ZIP_OPTIONS.archiveExtension;\n};\n\n/**\n * ZIP 다운로드 파일명 생성\n * @param fileTitle 파일 제목\n * @param appendDatetime 일시 추가 여부\n * @param archiveExtension 아카이브 확장자\n */\nconst createArchiveFileName = (\n fileTitle: string,\n appendDatetime: boolean,\n archiveExtension: string,\n) => {\n return `${sanitizeFileName(fileTitle)}${appendDatetime ? `-${dayjs().format('YYYY_MM_DD_HH_mm_ss')}` : ''}.${normalizeArchiveExtension(archiveExtension)}`;\n};\n\n/**\n * ZIP 엔트리 일치 여부 확인\n * @param fileName ZIP 엔트리 파일명\n * @param matcher 엔트리 식별자\n */\nconst isMatchedZipEntry = (\n fileName: string,\n matcher: string | RegExp | ((fileName: string) => boolean),\n) => {\n if (typeof matcher === 'string') {\n return fileName === matcher;\n }\n\n if (matcher instanceof RegExp) {\n return matcher.test(fileName);\n }\n\n return matcher(fileName);\n};\n\n/**\n * ZIP 소스 ArrayBuffer 변환\n * @param source ZIP 소스\n */\nconst toZipArrayBuffer = async (source: Blob | ArrayBuffer) => {\n return source instanceof Blob ? source.arrayBuffer() : source;\n};\n\n/**\n * ZIP 엔트리 텍스트 로드\n * @param source ZIP 소스\n * @param matcher 엔트리 식별자\n */\nexport const readZipEntryText = async (\n source: Blob | ArrayBuffer,\n matcher: string | RegExp | ((fileName: string) => boolean),\n): Promise<string | null> => {\n const JSZip = await loadJSZip();\n const zip = await JSZip.loadAsync(await toZipArrayBuffer(source));\n const zipFile = Object.values(zip.files).find(\n (entry) => !entry.dir && isMatchedZipEntry(entry.name, matcher),\n );\n\n if (!zipFile) {\n return null;\n }\n\n return zipFile.async('string');\n};\n\n/**\n * ZIP 엔트리 JSON 로드\n * @param source ZIP 소스\n * @param matcher 엔트리 식별자\n */\nexport const readZipEntryJson = async <T>(\n source: Blob | ArrayBuffer,\n matcher: string | RegExp | ((fileName: string) => boolean),\n): Promise<T | null> => {\n const text = await readZipEntryText(source, matcher);\n\n if (!text) {\n return null;\n }\n\n return JSON.parse(text) as T;\n};\n\n/**\n * ZIP 파일 데이터 추가\n * @param zip ZIP 인스턴스\n * @param data 파일 데이터 목록\n * @param options ZIP 저장 옵션\n */\nconst appendZipFiles = (\n zip: JSZip,\n data: BlobInfoData[],\n options: Required<SaveAsZipFileOptions>,\n) => {\n data.forEach(({ blob, fileName }, index) => {\n if (!blob) {\n return;\n }\n\n zip.file(\n createZipEntryFileName(index, fileName, options.fileExtension),\n new Blob([blob], { type: options.type }),\n );\n });\n};\n\n/**\n * ZIP 파일 저장\n * @param data 저장할 파일 데이터\n * @param options 저장 옵션\n */\nexport const saveAsZipFile = async (\n data: BlobInfoData[],\n options?: SaveAsZipFileOptions,\n) => {\n const normalizedOptions = normalizeZipOptions(options);\n\n if (!normalizedOptions.type) {\n showZipWarning('type 이 선언되지 않았습니다');\n return;\n }\n\n if (!normalizedOptions.fileExtension) {\n showZipWarning('파일 확장자가 선언되지 않았습니다');\n return;\n }\n\n if (!data) {\n showZipWarning('다운로드할 데이터가 없습니다');\n return;\n }\n\n const JSZip = await loadJSZip();\n const zip = new JSZip();\n appendZipFiles(zip, data, normalizedOptions);\n\n const archiveFiles = await zip.generateAsync({ type: 'blob' });\n const url = URL.createObjectURL(archiveFiles);\n const link = document.createElement('a');\n link.href = url;\n link.download = createArchiveFileName(\n normalizedOptions.fileTitle,\n normalizedOptions.appendDatetime,\n normalizedOptions.archiveExtension,\n );\n link.click();\n URL.revokeObjectURL(url);\n};\n"],"names":["DEFAULT_ZIP_OPTIONS","sanitizeFileName","__name","fileName","showZipWarning","message","enqueueSnackbar","t","normalizeZipOptions","options","createZipEntryFileName","index","fileExtension","normalizeArchiveExtension","archiveExtension","createArchiveFileName","fileTitle","appendDatetime","dayjs","isMatchedZipEntry","matcher","toZipArrayBuffer","source","readZipEntryText","zip","loadJSZip","zipFile","entry","readZipEntryJson","text","appendZipFiles","data","blob","saveAsZipFile","normalizedOptions","JSZip","archiveFiles","url","link"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"zipUtil.js","sources":["../../src/utils/zipUtil.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { t } from 'i18next';\nimport type JSZip from 'jszip';\nimport { enqueueSnackbar } from 'notistack';\nimport { loadJSZip } from './jszipBrowser';\n\ntype BlobInfoData = {\n blob: Blob;\n fileName: string;\n};\n\nexport interface SaveAsZipFileOptions {\n type?: string;\n fileExtension?: string;\n fileTitle?: string;\n archiveExtension?: string;\n appendDatetime?: boolean;\n preserveFileNames?: boolean;\n}\n\nconst DEFAULT_ZIP_OPTIONS: Required<SaveAsZipFileOptions> = {\n type: 'pdf',\n fileExtension: 'application/pdf',\n fileTitle: 'archive',\n archiveExtension: 'zip',\n appendDatetime: false,\n preserveFileNames: false,\n};\n\n/**\n * 파일명 안전 문자 변환\n * @param fileName 원본 파일명\n */\nconst sanitizeFileName = (fileName: string) => fileName.replace(/[.*+?^${}()|[\\]\\\\]/g, '_');\n\n/**\n * ZIP 경고 메시지 출력\n * @param message 경고 메시지\n */\nconst showZipWarning = (message: string) => {\n enqueueSnackbar(\n t(`Message.${message}`, {\n defaultValue: message,\n }),\n { variant: 'warning' },\n );\n};\n\n/**\n * ZIP 저장 옵션 정규화\n * @param options 저장 옵션\n */\nconst normalizeZipOptions = (options?: SaveAsZipFileOptions) => {\n return {\n type: options?.type ?? DEFAULT_ZIP_OPTIONS.type,\n fileExtension: options?.fileExtension ?? DEFAULT_ZIP_OPTIONS.fileExtension,\n fileTitle: options?.fileTitle ?? DEFAULT_ZIP_OPTIONS.fileTitle,\n archiveExtension: options?.archiveExtension ?? DEFAULT_ZIP_OPTIONS.archiveExtension,\n appendDatetime: options?.appendDatetime ?? DEFAULT_ZIP_OPTIONS.appendDatetime,\n preserveFileNames: options?.preserveFileNames ?? DEFAULT_ZIP_OPTIONS.preserveFileNames,\n };\n};\n\n/**\n * ZIP 내부 파일명 생성\n * @param index 파일 순서\n * @param fileName 파일명\n * @param fileExtension 파일 확장자\n */\nconst createZipEntryFileName = (index: number, fileName: string, fileExtension: string) => {\n return `${sanitizeFileName(`${index + 1}_${fileName}`)}.${fileExtension}`;\n};\n\n/**\n * ZIP 다운로드 파일명 생성\n * @param fileTitle 파일 제목\n * @param appendDatetime 일시 추가 여부\n */\nconst normalizeArchiveExtension = (archiveExtension: string) => {\n return archiveExtension.replace(/^\\.+/, '') || DEFAULT_ZIP_OPTIONS.archiveExtension;\n};\n\n/**\n * ZIP 다운로드 파일명 생성\n * @param fileTitle 파일 제목\n * @param appendDatetime 일시 추가 여부\n * @param archiveExtension 아카이브 확장자\n */\nconst createArchiveFileName = (\n fileTitle: string,\n appendDatetime: boolean,\n archiveExtension: string,\n) => {\n return `${sanitizeFileName(fileTitle)}${appendDatetime ? `-${dayjs().format('YYYY_MM_DD_HH_mm_ss')}` : ''}.${normalizeArchiveExtension(archiveExtension)}`;\n};\n\n/**\n * ZIP 엔트리 일치 여부 확인\n * @param fileName ZIP 엔트리 파일명\n * @param matcher 엔트리 식별자\n */\nconst isMatchedZipEntry = (\n fileName: string,\n matcher: string | RegExp | ((fileName: string) => boolean),\n) => {\n if (typeof matcher === 'string') {\n return fileName === matcher;\n }\n\n if (matcher instanceof RegExp) {\n return matcher.test(fileName);\n }\n\n return matcher(fileName);\n};\n\n/**\n * ZIP 소스 ArrayBuffer 변환\n * @param source ZIP 소스\n */\nconst toZipArrayBuffer = async (source: Blob | ArrayBuffer) => {\n return source instanceof Blob ? source.arrayBuffer() : source;\n};\n\n/**\n * ZIP 엔트리 텍스트 로드\n * @param source ZIP 소스\n * @param matcher 엔트리 식별자\n */\nexport const readZipEntryText = async (\n source: Blob | ArrayBuffer,\n matcher: string | RegExp | ((fileName: string) => boolean),\n): Promise<string | null> => {\n const JSZip = await loadJSZip();\n const zip = await JSZip.loadAsync(await toZipArrayBuffer(source));\n const zipFile = Object.values(zip.files).find(\n (entry) => !entry.dir && isMatchedZipEntry(entry.name, matcher),\n );\n\n if (!zipFile) {\n return null;\n }\n\n return zipFile.async('string');\n};\n\n/**\n * ZIP 엔트리 JSON 로드\n * @param source ZIP 소스\n * @param matcher 엔트리 식별자\n */\nexport const readZipEntryJson = async <T>(\n source: Blob | ArrayBuffer,\n matcher: string | RegExp | ((fileName: string) => boolean),\n): Promise<T | null> => {\n const text = await readZipEntryText(source, matcher);\n\n if (!text) {\n return null;\n }\n\n return JSON.parse(text) as T;\n};\n\n/**\n * ZIP 파일 데이터 추가\n * @param zip ZIP 인스턴스\n * @param data 파일 데이터 목록\n * @param options ZIP 저장 옵션\n */\nconst appendZipFiles = (\n zip: JSZip,\n data: BlobInfoData[],\n options: Required<SaveAsZipFileOptions>,\n) => {\n data.forEach(({ blob, fileName }, index) => {\n if (!blob) {\n return;\n }\n\n zip.file(\n options.preserveFileNames\n ? fileName\n : createZipEntryFileName(index, fileName, options.fileExtension),\n options.preserveFileNames ? blob : new Blob([blob], { type: options.type }),\n );\n });\n};\n\n/**\n * ZIP 파일 저장\n * @param data 저장할 파일 데이터\n * @param options 저장 옵션\n */\nexport const saveAsZipFile = async (\n data: BlobInfoData[],\n options?: SaveAsZipFileOptions,\n) => {\n const normalizedOptions = normalizeZipOptions(options);\n\n if (!normalizedOptions.preserveFileNames && !normalizedOptions.type) {\n showZipWarning('type 이 선언되지 않았습니다');\n return;\n }\n\n if (!normalizedOptions.preserveFileNames && !normalizedOptions.fileExtension) {\n showZipWarning('파일 확장자가 선언되지 않았습니다');\n return;\n }\n\n if (!data) {\n showZipWarning('다운로드할 데이터가 없습니다');\n return;\n }\n\n const JSZip = await loadJSZip();\n const zip = new JSZip();\n appendZipFiles(zip, data, normalizedOptions);\n\n const archiveFiles = await zip.generateAsync({ type: 'blob' });\n const url = URL.createObjectURL(archiveFiles);\n const link = document.createElement('a');\n link.href = url;\n link.download = createArchiveFileName(\n normalizedOptions.fileTitle,\n normalizedOptions.appendDatetime,\n normalizedOptions.archiveExtension,\n );\n link.click();\n URL.revokeObjectURL(url);\n};\n"],"names":["DEFAULT_ZIP_OPTIONS","sanitizeFileName","__name","fileName","showZipWarning","message","enqueueSnackbar","t","normalizeZipOptions","options","createZipEntryFileName","index","fileExtension","normalizeArchiveExtension","archiveExtension","createArchiveFileName","fileTitle","appendDatetime","dayjs","isMatchedZipEntry","matcher","toZipArrayBuffer","source","readZipEntryText","zip","loadJSZip","zipFile","entry","readZipEntryJson","text","appendZipFiles","data","blob","saveAsZipFile","normalizedOptions","JSZip","archiveFiles","url","link"],"mappings":"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"}
|
package/dist/utils.js
CHANGED
|
@@ -1,92 +1,96 @@
|
|
|
1
1
|
import { generateBarcodeUrl as o } from "./utils/barcodeUtil.js";
|
|
2
2
|
import { buildTreeGridEnumAttributesByCommonCodeList as d, transformCommonCodeBasedOnGroupId as a, transformGridEnumByCommonCodeList as m } from "./utils/commonCodeUtils.js";
|
|
3
|
-
import { createDateRangeSearchParams as
|
|
4
|
-
import { createFormDataBody as
|
|
3
|
+
import { createDateRangeSearchParams as T } from "./utils/createDateRangeSearchParams.js";
|
|
4
|
+
import { createFormDataBody as l, normalizeFormDataUploadParams as p } from "./utils/createFormDataBody.js";
|
|
5
5
|
import { createJsonBody as x } from "./utils/createJsonBody.js";
|
|
6
6
|
import { createJsonString as f } from "./utils/createJsonString.js";
|
|
7
|
-
import { exportExcelByBuffer as L, getIndexByLetters as
|
|
7
|
+
import { exportExcelByBuffer as L, getIndexByLetters as G, getLettersByIndex as g, setCellValue as u, setMergeCells as C } from "./utils/excelUtil.js";
|
|
8
8
|
import { fetchFile as B } from "./utils/fetchFile.js";
|
|
9
9
|
import { formatDateToYmd as R, getTodayYmd as D } from "./utils/formatDateToYmd.js";
|
|
10
|
-
import { formatNumber as
|
|
10
|
+
import { formatNumber as c } from "./utils/formatNumber.js";
|
|
11
11
|
import { getDisplayValue as O } from "./utils/getDisplayValue.js";
|
|
12
|
-
import { getEstimatedTextCellWidth as
|
|
13
|
-
import { getFormDefaultValues as
|
|
12
|
+
import { getEstimatedTextCellWidth as V } from "./utils/getEstimatedTextCellWidth.js";
|
|
13
|
+
import { getFormDefaultValues as H } from "./utils/getFormDefaultValues.js";
|
|
14
14
|
import { getStartPagePath as S } from "./utils/getStartPagePath.js";
|
|
15
15
|
import { getTrimmedValue as w } from "./utils/getTrimmedValue.js";
|
|
16
16
|
import { isEnterKeyEvent as M } from "./utils/isEnterKeyEvent.js";
|
|
17
17
|
import { getApiLanguageCode as J, getI18nextLanguageCode as W } from "./utils/language.js";
|
|
18
|
-
import { formatTimeInputToHourMinute as
|
|
19
|
-
import { preloadOnIdle as
|
|
20
|
-
import { generateQrCodeUrl as
|
|
18
|
+
import { formatTimeInputToHourMinute as Z, normalizeTimeToHourMinute as v } from "./utils/normalizeTimeToHourMinute.js";
|
|
19
|
+
import { preloadOnIdle as K } from "./utils/preloadOnIdle.js";
|
|
20
|
+
import { generateQrCodeUrl as j } from "./utils/qrCodeUtil.js";
|
|
21
21
|
import { rebuildValue as X } from "./utils/rebuildValue.js";
|
|
22
22
|
import { sanitizePasswordValue as ee, sanitizeUserIdValue as re } from "./utils/sanitizeAuthInputValue.js";
|
|
23
23
|
import { exportTreeGridExcel as te } from "./utils/treeGridExportExcelUtil.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
24
|
+
import { isTreeGridCheckedValue as ae, toTreeGridBoolValue as me, toTreeGridYnValue as ie } from "./utils/treeGridYnUtils.js";
|
|
25
|
+
import { addTreeGridRowById as se, exportTreeGridToExcelById as le, getTreeGridById as pe, getTreeGridDataRowsById as ne, getTreeGridRowChangesById as xe, getTreeGridSelectedRowsById as Ee, highlightTreeGridCellById as fe, reloadTreeGridBodyById as Ie, resetTreeGridChangesById as Le, resetTreeGridChangesByIds as Ge, resetTreeGridSelectionById as ge, resetTreeGridSelectionsByIds as ue, setTreeGridColumnEnumOptionsById as Ce, setTreeGridColumnVisibilityById as ye } from "./utils/treeGridUtil.js";
|
|
26
|
+
import { readZipEntryJson as _e, readZipEntryText as Re, saveAsZipFile as De } from "./utils/zipUtil.js";
|
|
27
|
+
import { OwpUtils as ce } from "./utils/common/OwpUtils.js";
|
|
28
|
+
import { DEFAULT_CELL_ALIGNMENT as Oe, DEFAULT_HEADER_FILL as Ue, DEFAULT_HEADER_FONT as Ve, DEFAULT_THIN_BORDER as he, DEFAULT_VALUE_FONT as He, DEFAULT_WRAP_CELL_ALIGNMENT as Ne } from "./constants/excel.js";
|
|
29
|
+
import { TREEGRID_CELL_HIGHLIGHT_CLASS as Pe, TREEGRID_CELL_HIGHLIGHT_COLOR as we, TREEGRID_INPUT_CELL_COLOR as be, TREEGRID_WARNING_CELL_COLOR as Me } from "./constants/treeGrid.js";
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
Oe as DEFAULT_CELL_ALIGNMENT,
|
|
32
|
+
Ue as DEFAULT_HEADER_FILL,
|
|
33
|
+
Ve as DEFAULT_HEADER_FONT,
|
|
34
|
+
he as DEFAULT_THIN_BORDER,
|
|
35
|
+
He as DEFAULT_VALUE_FONT,
|
|
36
|
+
Ne as DEFAULT_WRAP_CELL_ALIGNMENT,
|
|
37
|
+
ce as OwpUtils,
|
|
38
|
+
Pe as TREEGRID_CELL_HIGHLIGHT_CLASS,
|
|
39
|
+
we as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
40
|
+
be as TREEGRID_INPUT_CELL_COLOR,
|
|
41
|
+
Me as TREEGRID_WARNING_CELL_COLOR,
|
|
42
|
+
se as addTreeGridRowById,
|
|
42
43
|
d as buildTreeGridEnumAttributesByCommonCodeList,
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
T as createDateRangeSearchParams,
|
|
45
|
+
l as createFormDataBody,
|
|
45
46
|
x as createJsonBody,
|
|
46
47
|
f as createJsonString,
|
|
47
48
|
L as exportExcelByBuffer,
|
|
48
49
|
te as exportTreeGridExcel,
|
|
49
|
-
|
|
50
|
+
le as exportTreeGridToExcelById,
|
|
50
51
|
B as fetchFile,
|
|
51
52
|
R as formatDateToYmd,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
c as formatNumber,
|
|
54
|
+
Z as formatTimeInputToHourMinute,
|
|
54
55
|
o as generateBarcodeUrl,
|
|
55
|
-
|
|
56
|
+
j as generateQrCodeUrl,
|
|
56
57
|
J as getApiLanguageCode,
|
|
57
58
|
O as getDisplayValue,
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
V as getEstimatedTextCellWidth,
|
|
60
|
+
H as getFormDefaultValues,
|
|
60
61
|
W as getI18nextLanguageCode,
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
G as getIndexByLetters,
|
|
63
|
+
g as getLettersByIndex,
|
|
63
64
|
S as getStartPagePath,
|
|
64
65
|
D as getTodayYmd,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
pe as getTreeGridById,
|
|
67
|
+
ne as getTreeGridDataRowsById,
|
|
68
|
+
xe as getTreeGridRowChangesById,
|
|
69
|
+
Ee as getTreeGridSelectedRowsById,
|
|
69
70
|
w as getTrimmedValue,
|
|
70
|
-
|
|
71
|
+
fe as highlightTreeGridCellById,
|
|
71
72
|
M as isEnterKeyEvent,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
ae as isTreeGridCheckedValue,
|
|
74
|
+
p as normalizeFormDataUploadParams,
|
|
75
|
+
v as normalizeTimeToHourMinute,
|
|
76
|
+
K as preloadOnIdle,
|
|
77
|
+
_e as readZipEntryJson,
|
|
78
|
+
Re as readZipEntryText,
|
|
77
79
|
X as rebuildValue,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
Ie as reloadTreeGridBodyById,
|
|
81
|
+
Le as resetTreeGridChangesById,
|
|
82
|
+
Ge as resetTreeGridChangesByIds,
|
|
83
|
+
ge as resetTreeGridSelectionById,
|
|
84
|
+
ue as resetTreeGridSelectionsByIds,
|
|
83
85
|
ee as sanitizePasswordValue,
|
|
84
86
|
re as sanitizeUserIdValue,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
De as saveAsZipFile,
|
|
88
|
+
u as setCellValue,
|
|
87
89
|
C as setMergeCells,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
Ce as setTreeGridColumnEnumOptionsById,
|
|
91
|
+
ye as setTreeGridColumnVisibilityById,
|
|
92
|
+
me as toTreeGridBoolValue,
|
|
93
|
+
ie as toTreeGridYnValue,
|
|
90
94
|
a as transformCommonCodeBasedOnGroupId,
|
|
91
95
|
m as transformGridEnumByCommonCodeList
|
|
92
96
|
};
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owp/core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"colors/",
|
|
93
93
|
"colors.d.ts",
|
|
94
94
|
"colors.js",
|
|
95
|
+
"configs/",
|
|
95
96
|
"constants.d.ts",
|
|
96
97
|
"constants.js",
|
|
97
98
|
"contexts.d.ts",
|