@owp/core 2.5.23 → 2.5.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js +15 -13
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
- package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js +21 -19
- package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
- package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js +1 -1
- package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
- package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js +1 -1
- package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js.map +1 -1
- package/dist/components/OwpLoading/OwpLoading.js +1 -1
- package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTable.js +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpOptionSelector/OwpOptionSelector.js +14 -12
- package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js +1 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
- package/dist/components/OwpPicker/OwpDatePicker.js +81 -82
- package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpTimePicker.js +82 -83
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpWeekDatePicker.js +24 -25
- package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
- package/dist/components/OwpSearchFilter/OwpSearchFilter.js +1 -1
- package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +1 -1
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +155 -157
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorSelect.js +95 -81
- package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
- package/dist/components/OwpSuspense/OwpSuspense.js +43 -43
- package/dist/components/OwpSuspense/OwpSuspense.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +2 -2
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +55 -56
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +10 -10
- package/dist/contexts/OwpUiProvider.js +5 -5
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/hooks/{useAccessTokenGuard.js → internal/useAccessTokenGuard.js} +2 -2
- package/dist/hooks/internal/useAccessTokenGuard.js.map +1 -0
- package/dist/hooks/{useCurrentLanguage.js → internal/useCurrentLanguage.js} +2 -2
- package/dist/hooks/internal/useCurrentLanguage.js.map +1 -0
- package/dist/hooks/internal/useHeaderWrapState.js.map +1 -0
- package/dist/hooks/internal/useNavbar.js +24 -0
- package/dist/hooks/internal/useNavbar.js.map +1 -0
- package/dist/hooks/{useNavigationActiveRouteRemount.js → internal/useNavigationActiveRouteRemount.js} +1 -1
- package/dist/hooks/internal/useNavigationActiveRouteRemount.js.map +1 -0
- package/dist/hooks/{useShortcuts.js → internal/useShortcuts.js} +3 -3
- package/dist/hooks/internal/useShortcuts.js.map +1 -0
- package/dist/hooks/internal/useThemeMediaQuery.js.map +1 -0
- package/dist/hooks/internal/useTimeout.js.map +1 -0
- package/dist/hooks/useInitApp.js.map +1 -1
- package/dist/hooks.js +53 -81
- package/dist/hooks.js.map +1 -1
- package/dist/layout/Layout.js +1 -1
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js +2 -2
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarWrapperLayout.js +2 -2
- package/dist/layout/components/layouts/NavbarWrapperLayout.js.map +1 -1
- package/dist/layout/components/navbar/NavbarToggleButton.js +2 -2
- package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/layout/components/navigation/Navigation.js +2 -2
- package/dist/layout/components/navigation/Navigation.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js.map +1 -1
- package/dist/layout/components/toggles/LanguageSwitcherToggle.js +1 -1
- package/dist/layout/components/toggles/LanguageSwitcherToggle.js.map +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- 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/constants.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/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +5 -3
- package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +5 -3
- package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +4 -1
- package/dist/types/components/OwpSelectorBase/types/index.d.ts +1 -1
- package/dist/types/components/OwpSelectorBase/types/types.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +0 -10
- package/dist/types/hooks/{useNavbar.d.ts → internal/useNavbar.d.ts} +1 -1
- package/dist/types/utils/treeGridUtil.d.ts +0 -14
- package/dist/utils/{exceljsBrowser.js → internal/exceljsBrowser.js} +1 -1
- package/dist/utils/internal/exceljsBrowser.js.map +1 -0
- package/dist/utils/internal/jszipBrowser.js.map +1 -0
- package/dist/utils/internal/treeGridBodyRowsEvent.js.map +1 -0
- package/dist/utils/treeGridExportExcelUtil.js +1 -1
- package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
- package/dist/utils/treeGridUtil.js +1 -6
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils/zipUtil.js +1 -1
- package/dist/utils/zipUtil.js.map +1 -1
- package/dist/utils.js +70 -75
- package/package.json +1 -1
- package/dist/hooks/useAccessTokenGuard.js.map +0 -1
- package/dist/hooks/useCurrentLanguage.js.map +0 -1
- package/dist/hooks/useDebounce.js +0 -24
- package/dist/hooks/useDebounce.js.map +0 -1
- package/dist/hooks/useDeepCompareEffect.js +0 -38
- package/dist/hooks/useDeepCompareEffect.js.map +0 -1
- package/dist/hooks/useHeaderWrapState.js.map +0 -1
- package/dist/hooks/useNavbar.js +0 -24
- package/dist/hooks/useNavbar.js.map +0 -1
- package/dist/hooks/useNavigationActiveRouteRemount.js.map +0 -1
- package/dist/hooks/usePrevious.js +0 -14
- package/dist/hooks/usePrevious.js.map +0 -1
- package/dist/hooks/useShortcuts.js.map +0 -1
- package/dist/hooks/useThemeMediaQuery.js.map +0 -1
- package/dist/hooks/useTimeout.js.map +0 -1
- package/dist/types/hooks/useDebounce.d.ts +0 -7
- package/dist/types/hooks/useDeepCompareEffect.d.ts +0 -22
- package/dist/types/hooks/usePrevious.d.ts +0 -5
- package/dist/types/utils/dayjsBrowser.d.ts +0 -1
- package/dist/utils/exceljsBrowser.js.map +0 -1
- package/dist/utils/jszipBrowser.js.map +0 -1
- package/dist/utils/treeGridBodyRowsEvent.js.map +0 -1
- /package/dist/hooks/{useHeaderWrapState.js → internal/useHeaderWrapState.js} +0 -0
- /package/dist/hooks/{useThemeMediaQuery.js → internal/useThemeMediaQuery.js} +0 -0
- /package/dist/hooks/{useTimeout.js → internal/useTimeout.js} +0 -0
- /package/dist/types/hooks/{useAccessTokenGuard.d.ts → internal/useAccessTokenGuard.d.ts} +0 -0
- /package/dist/types/hooks/{useCurrentLanguage.d.ts → internal/useCurrentLanguage.d.ts} +0 -0
- /package/dist/types/hooks/{useHeaderWrapState.d.ts → internal/useHeaderWrapState.d.ts} +0 -0
- /package/dist/types/hooks/{useNavigationActiveRouteRemount.d.ts → internal/useNavigationActiveRouteRemount.d.ts} +0 -0
- /package/dist/types/hooks/{useShortcuts.d.ts → internal/useShortcuts.d.ts} +0 -0
- /package/dist/types/hooks/{useThemeMediaQuery.d.ts → internal/useThemeMediaQuery.d.ts} +0 -0
- /package/dist/types/hooks/{useTimeout.d.ts → internal/useTimeout.d.ts} +0 -0
- /package/dist/types/utils/{exceljsBrowser.d.ts → internal/exceljsBrowser.d.ts} +0 -0
- /package/dist/types/utils/{jszipBrowser.d.ts → internal/jszipBrowser.d.ts} +0 -0
- /package/dist/types/utils/{treeGridBodyRowsEvent.d.ts → internal/treeGridBodyRowsEvent.d.ts} +0 -0
- /package/dist/utils/{jszipBrowser.js → internal/jszipBrowser.js} +0 -0
- /package/dist/utils/{treeGridBodyRowsEvent.js → internal/treeGridBodyRowsEvent.js} +0 -0
package/dist/utils.js
CHANGED
|
@@ -1,104 +1,99 @@
|
|
|
1
1
|
import { generateBarcodeUrl as o } from "./utils/barcodeUtil.js";
|
|
2
2
|
import { buildTreeGridEnumAttributesByCommonCodeList as d, transformCommonCodeBasedOnGroupId as i, transformGridEnumByCommonCodeList as a } from "./utils/commonCodeUtils.js";
|
|
3
3
|
import { createDateRangeSearchParams as m } from "./utils/createDateRangeSearchParams.js";
|
|
4
|
-
import { createFormDataBody as
|
|
5
|
-
import { createJsonBody as
|
|
6
|
-
import { createJsonString as
|
|
7
|
-
import { exportExcelByBuffer as
|
|
8
|
-
import { fetchFile as
|
|
9
|
-
import { formatDateToYmd as
|
|
4
|
+
import { createFormDataBody as s, normalizeFormDataUploadParams as n } from "./utils/createFormDataBody.js";
|
|
5
|
+
import { createJsonBody as E } from "./utils/createJsonBody.js";
|
|
6
|
+
import { createJsonString as x } from "./utils/createJsonString.js";
|
|
7
|
+
import { exportExcelByBuffer as f, getIndexByLetters as C, getLettersByIndex as I, setCellValue as L, setMergeCells as y } from "./utils/excelUtil.js";
|
|
8
|
+
import { fetchFile as u } from "./utils/fetchFile.js";
|
|
9
|
+
import { formatDateToYmd as _, getTodayYmd as A } from "./utils/formatDateToYmd.js";
|
|
10
10
|
import { formatNumber as h } from "./utils/formatNumber.js";
|
|
11
|
-
import { getDisplayValue as
|
|
12
|
-
import { getEstimatedTextCellWidth as
|
|
11
|
+
import { getDisplayValue as F } from "./utils/getDisplayValue.js";
|
|
12
|
+
import { getEstimatedTextCellWidth as O } from "./utils/getEstimatedTextCellWidth.js";
|
|
13
13
|
import { getFormDefaultValues as w } from "./utils/getFormDefaultValues.js";
|
|
14
|
-
import { getStartPagePath as
|
|
14
|
+
import { getStartPagePath as H } from "./utils/getStartPagePath.js";
|
|
15
15
|
import { getTrimmedValue as P } from "./utils/getTrimmedValue.js";
|
|
16
|
-
import { isEnterKeyEvent as
|
|
17
|
-
import { getApiLanguageCode as
|
|
18
|
-
import { preloadOnIdle as
|
|
19
|
-
import { generateQrCodeUrl as
|
|
16
|
+
import { isEnterKeyEvent as z } from "./utils/isEnterKeyEvent.js";
|
|
17
|
+
import { getApiLanguageCode as J, getI18nextLanguageCode as M } from "./utils/language.js";
|
|
18
|
+
import { preloadOnIdle as Y } from "./utils/preloadOnIdle.js";
|
|
19
|
+
import { generateQrCodeUrl as k } from "./utils/qrCodeUtil.js";
|
|
20
20
|
import { rebuildValue as Q } from "./utils/rebuildValue.js";
|
|
21
21
|
import { sanitizePasswordValue as q, sanitizeUserIdValue as X } from "./utils/sanitizeAuthInputValue.js";
|
|
22
22
|
import { exportTreeGridExcel as ee } from "./utils/treeGridExportExcelUtil.js";
|
|
23
23
|
import { isTreeGridCheckedValue as oe, toTreeGridBoolValue as te, toTreeGridYnValue as de } from "./utils/treeGridYnUtils.js";
|
|
24
|
-
import {
|
|
25
|
-
import { readZipEntryJson as
|
|
26
|
-
import { OwpUtils as
|
|
27
|
-
import { DEFAULT_CELL_ALIGNMENT as
|
|
28
|
-
import { TREEGRID_CELL_CHANGED_CLASS as
|
|
24
|
+
import { addTreeGridRowById as ae, appendTreeGridAddedRowHighlightColumn as le, clearTreeGridCellHighlightById as me, exportTreeGridToExcelById as Te, getTreeGridAddedRowBaselineValue as se, getTreeGridAddedRowHighlightColumns as ne, getTreeGridById as pe, getTreeGridCellComparableValue as Ee, getTreeGridDataRowsById as ge, getTreeGridRowChangesById as xe, getTreeGridSelectedRowsById as Ge, highlightTreeGridCellById as fe, isTreeGridRowAddedById as Ce, normalizeTreeGridExternalRows as Ie, reloadTreeGridBodyById as Le, removeTreeGridAddedRowHighlightColumn as ye, resetTreeGridChangesById as Be, resetTreeGridChangesByIds as ue, resetTreeGridSelectionById as Re, resetTreeGridSelectionsByIds as _e, setTreeGridColumnEnumOptionsById as Ae, setTreeGridColumnVisibilityById as De } from "./utils/treeGridUtil.js";
|
|
25
|
+
import { readZipEntryJson as ce, readZipEntryText as Fe, saveAsZipFile as Ve } from "./utils/zipUtil.js";
|
|
26
|
+
import { OwpUtils as Ue } from "./utils/common/OwpUtils.js";
|
|
27
|
+
import { DEFAULT_CELL_ALIGNMENT as Ne, DEFAULT_HEADER_FILL as He, DEFAULT_HEADER_FONT as Se, DEFAULT_THIN_BORDER as Pe, DEFAULT_VALUE_FONT as be, DEFAULT_WRAP_CELL_ALIGNMENT as ze } from "./constants/excel.js";
|
|
28
|
+
import { TREEGRID_CELL_CHANGED_CLASS as Je, TREEGRID_CELL_HIGHLIGHT_COLOR as Me, TREEGRID_INPUT_CELL_COLOR as We, TREEGRID_WARNING_CELL_COLOR as Ye } from "./constants/treeGrid.js";
|
|
29
29
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
je as TREEGRID_WARNING_CELL_COLOR,
|
|
44
|
-
Ee as addTreeGridRowById,
|
|
45
|
-
Te as appendTreeGridAddedRowHighlightColumn,
|
|
30
|
+
Ne as DEFAULT_CELL_ALIGNMENT,
|
|
31
|
+
He as DEFAULT_HEADER_FILL,
|
|
32
|
+
Se as DEFAULT_HEADER_FONT,
|
|
33
|
+
Pe as DEFAULT_THIN_BORDER,
|
|
34
|
+
be as DEFAULT_VALUE_FONT,
|
|
35
|
+
ze as DEFAULT_WRAP_CELL_ALIGNMENT,
|
|
36
|
+
Ue as OwpUtils,
|
|
37
|
+
Je as TREEGRID_CELL_CHANGED_CLASS,
|
|
38
|
+
Me as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
39
|
+
We as TREEGRID_INPUT_CELL_COLOR,
|
|
40
|
+
Ye as TREEGRID_WARNING_CELL_COLOR,
|
|
41
|
+
ae as addTreeGridRowById,
|
|
42
|
+
le as appendTreeGridAddedRowHighlightColumn,
|
|
46
43
|
d as buildTreeGridEnumAttributesByCommonCodeList,
|
|
47
|
-
|
|
44
|
+
me as clearTreeGridCellHighlightById,
|
|
48
45
|
m as createDateRangeSearchParams,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
s as createFormDataBody,
|
|
47
|
+
E as createJsonBody,
|
|
48
|
+
x as createJsonString,
|
|
49
|
+
f as exportExcelByBuffer,
|
|
53
50
|
ee as exportTreeGridExcel,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
Te as exportTreeGridToExcelById,
|
|
52
|
+
u as fetchFile,
|
|
53
|
+
_ as formatDateToYmd,
|
|
57
54
|
h as formatNumber,
|
|
58
55
|
o as generateBarcodeUrl,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
k as generateQrCodeUrl,
|
|
57
|
+
J as getApiLanguageCode,
|
|
58
|
+
F as getDisplayValue,
|
|
59
|
+
O as getEstimatedTextCellWidth,
|
|
63
60
|
w as getFormDefaultValues,
|
|
64
61
|
M as getI18nextLanguageCode,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
C as getIndexByLetters,
|
|
63
|
+
I as getLettersByIndex,
|
|
64
|
+
H as getStartPagePath,
|
|
68
65
|
A as getTodayYmd,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
se as getTreeGridAddedRowBaselineValue,
|
|
67
|
+
ne as getTreeGridAddedRowHighlightColumns,
|
|
68
|
+
pe as getTreeGridById,
|
|
69
|
+
Ee as getTreeGridCellComparableValue,
|
|
73
70
|
ge as getTreeGridDataRowsById,
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
xe as getTreeGridRowChangesById,
|
|
72
|
+
Ge as getTreeGridSelectedRowsById,
|
|
76
73
|
P as getTrimmedValue,
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
fe as highlightTreeGridCellById,
|
|
75
|
+
z as isEnterKeyEvent,
|
|
79
76
|
oe as isTreeGridCheckedValue,
|
|
80
77
|
Ce as isTreeGridRowAddedById,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
we as readZipEntryJson,
|
|
87
|
-
He as readZipEntryText,
|
|
78
|
+
n as normalizeFormDataUploadParams,
|
|
79
|
+
Ie as normalizeTreeGridExternalRows,
|
|
80
|
+
Y as preloadOnIdle,
|
|
81
|
+
ce as readZipEntryJson,
|
|
82
|
+
Fe as readZipEntryText,
|
|
88
83
|
Q as rebuildValue,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
Le as reloadTreeGridBodyById,
|
|
85
|
+
ye as removeTreeGridAddedRowHighlightColumn,
|
|
86
|
+
Be as resetTreeGridChangesById,
|
|
87
|
+
ue as resetTreeGridChangesByIds,
|
|
88
|
+
Re as resetTreeGridSelectionById,
|
|
89
|
+
_e as resetTreeGridSelectionsByIds,
|
|
95
90
|
q as sanitizePasswordValue,
|
|
96
91
|
X as sanitizeUserIdValue,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
92
|
+
Ve as saveAsZipFile,
|
|
93
|
+
L as setCellValue,
|
|
94
|
+
y as setMergeCells,
|
|
95
|
+
Ae as setTreeGridColumnEnumOptionsById,
|
|
96
|
+
De as setTreeGridColumnVisibilityById,
|
|
102
97
|
te as toTreeGridBoolValue,
|
|
103
98
|
de as toTreeGridYnValue,
|
|
104
99
|
i as transformCommonCodeBasedOnGroupId,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAccessTokenGuard.js","sources":["../../src/hooks/useAccessTokenGuard.ts"],"sourcesContent":["import { STORAGE_ACCESS_TOKEN_KEY } from '@/constants/localStorageKeys';\nimport { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { useEffect, useRef } from 'react';\nimport { useLocation, useNavigate } from 'react-router-dom';\n\nexport interface UseAccessTokenGuardOptions {\n loginPath?: string;\n isEnabled?: boolean;\n snackbarMessageKey?: string;\n}\n\nconst DEFAULT_LOGIN_PATH = '/auth/login';\nconst DEFAULT_SNACKBAR_MESSAGE_KEY = 'Message.로그인이 필요합니다.';\n\n/**\n * 액세스 토큰 기반 로그인 가드\n * @param loginPath 로그인 라우트 경로\n * @param isEnabled 가드 활성화 여부\n * @param snackbarMessageKey 로그인 필요 안내 메시지 키\n */\nexport const useAccessTokenGuard = ({\n loginPath = DEFAULT_LOGIN_PATH,\n isEnabled,\n snackbarMessageKey = DEFAULT_SNACKBAR_MESSAGE_KEY,\n}: UseAccessTokenGuardOptions = {}) => {\n const { env } = useOwpAppContext();\n const location = useLocation();\n const navigate = useNavigate();\n const accessToken =\n typeof window === 'undefined' ? null : window.localStorage.getItem(STORAGE_ACCESS_TOKEN_KEY);\n const isLoginRoute = location.pathname.startsWith(loginPath);\n const isAccessTokenGuardEnabled = isEnabled ?? env?.isAccessTokenGuardEnabled ?? true;\n const shouldRedirectToLogin = isAccessTokenGuardEnabled && !accessToken && !isLoginRoute;\n const hasHandledRedirectRef = useRef(false);\n\n useEffect(() => {\n if (!shouldRedirectToLogin) {\n hasHandledRedirectRef.current = false;\n return;\n }\n\n if (hasHandledRedirectRef.current) {\n return;\n }\n\n hasHandledRedirectRef.current = true;\n\n navigate(loginPath, {\n replace: true,\n state: snackbarMessageKey\n ? {\n snackbarMessageKey,\n }\n : undefined,\n });\n }, [loginPath, navigate, shouldRedirectToLogin, snackbarMessageKey]);\n\n return shouldRedirectToLogin;\n};\n"],"names":["DEFAULT_LOGIN_PATH","DEFAULT_SNACKBAR_MESSAGE_KEY","useAccessTokenGuard","__name","loginPath","isEnabled","snackbarMessageKey","env","useOwpAppContext","location","useLocation","navigate","useNavigate","accessToken","STORAGE_ACCESS_TOKEN_KEY","isLoginRoute","shouldRedirectToLogin","hasHandledRedirectRef","useRef","useEffect"],"mappings":";;;;;;AAWA,MAAMA,IAAqB,eACrBC,IAA+B,uBAQxBC,IAAsB,gBAAAC,EAAA,CAAC;AAAA,EAClC,WAAAC,IAAYJ;AAAA,EACZ,WAAAK;AAAA,EACA,oBAAAC,IAAqBL;AACvB,IAAgC,OAAO;AACrC,QAAM,EAAE,KAAAM,EAAA,IAAQC,EAAA,GACVC,IAAWC,EAAA,GACXC,IAAWC,EAAA,GACXC,IACJ,OAAO,SAAW,MAAc,OAAO,OAAO,aAAa,QAAQC,CAAwB,GACvFC,IAAeN,EAAS,SAAS,WAAWL,CAAS,GAErDY,KAD4BX,MAAaE,KAAA,gBAAAA,EAAK,8BAA6B,OACtB,CAACM,KAAe,CAACE,GACtEE,IAAwBC,EAAO,EAAK;AAE1C,SAAAC,EAAU,MAAM;AACd,QAAI,CAACH,GAAuB;AAC1B,MAAAC,EAAsB,UAAU;AAChC;AAAA,IACF;AAEA,IAAIA,EAAsB,YAI1BA,EAAsB,UAAU,IAEhCN,EAASP,GAAW;AAAA,MAClB,SAAS;AAAA,MACT,OAAOE,IACH;AAAA,QACE,oBAAAA;AAAA,MAAA,IAEF;AAAA,IAAA,CACL;AAAA,EACH,GAAG,CAACF,GAAWO,GAAUK,GAAuBV,CAAkB,CAAC,GAE5DU;AACT,GAtCmC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrentLanguage.js","sources":["../../src/hooks/useCurrentLanguage.ts"],"sourcesContent":["export { FALLBACK_LANGUAGE_LIST } from '@/constants/language';\nimport { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nexport type CurrentLanguage = { id: 'en' | 'kr' | 'lc'; title: string; flag: string };\n\nconst currentLanguageAtom = atomWithStorage<CurrentLanguage>(STORAGE_KEYS.currentLanguage, {\n id: 'kr',\n title: '한국어',\n flag: 'KR',\n});\n\n/**\n * 언어 목록 조회 훅\n */\nexport const useGetLanguageList = (): CurrentLanguage[] => {\n const { t } = useOwpTranslation();\n return [\n { id: 'kr', title: t('Common.한국어'), flag: 'KR' },\n {\n id: 'en',\n title: t('Common.English'),\n flag: 'EN',\n },\n { id: 'lc', title: t('Common.Etc'), flag: 'LC' },\n ];\n};\n\n/**\n * 현재 언어 조회 훅\n */\nexport const useGetCurrentLanguage = () => {\n return useAtomValue(currentLanguageAtom);\n};\n\n/**\n * 현재 언어 설정 훅\n */\nexport const useSetCurrentLanguage = () => {\n return useSetAtom(currentLanguageAtom);\n};\n"],"names":["currentLanguageAtom","atomWithStorage","STORAGE_KEYS","useGetLanguageList","__name","useOwpTranslation","useGetCurrentLanguage","useAtomValue","useSetCurrentLanguage","useSetAtom"],"mappings":";;;;;;AAQA,MAAMA,IAAsBC,EAAiCC,EAAa,iBAAiB;AAAA,EACzF,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AACR,CAAC,GAKYC,IAAqB,gBAAAC,EAAA,MAAyB;AACzD,QAAM,EAAE,EAAA,IAAMC,EAAA;AACd,SAAO;AAAA,IACL,EAAE,IAAI,MAAM,OAAO,EAAE,YAAY,GAAG,MAAM,KAAA;AAAA,IAC1C;AAAA,MACE,IAAI;AAAA,MACJ,OAAO,EAAE,gBAAgB;AAAA,MACzB,MAAM;AAAA,IAAA;AAAA,IAER,EAAE,IAAI,MAAM,OAAO,EAAE,YAAY,GAAG,MAAM,KAAA;AAAA,EAAK;AAEnD,GAXkC,uBAgBrBC,IAAwB,gBAAAF,EAAA,MAC5BG,EAAaP,CAAmB,GADJ,0BAOxBQ,IAAwB,gBAAAJ,EAAA,MAC5BK,EAAWT,CAAmB,GADF;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty;
|
|
2
|
-
var o = (e, n) => f(e, "name", { value: n, configurable: !0 });
|
|
3
|
-
import { useRef as s, useEffect as t, useCallback as m } from "react";
|
|
4
|
-
import { debounce as b } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
|
|
5
|
-
function R(e, n) {
|
|
6
|
-
const u = s(e);
|
|
7
|
-
t(() => {
|
|
8
|
-
u.current = e;
|
|
9
|
-
}, [e]);
|
|
10
|
-
const r = m(
|
|
11
|
-
b((...c) => {
|
|
12
|
-
u.current(...c);
|
|
13
|
-
}, n),
|
|
14
|
-
[n]
|
|
15
|
-
);
|
|
16
|
-
return t(() => () => {
|
|
17
|
-
r.cancel();
|
|
18
|
-
}, [r]), r;
|
|
19
|
-
}
|
|
20
|
-
o(R, "useDebounce");
|
|
21
|
-
export {
|
|
22
|
-
R as useDebounce
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=useDebounce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDebounce.js","sources":["../../src/hooks/useDebounce.ts"],"sourcesContent":["import { debounce } from 'es-toolkit/compat';\nimport { useCallback, useEffect, useRef } from 'react';\n\n/**\n * Debounce hook.\n * @param {T} callback\n * @param {number} delay\n * @returns {T}\n */\nexport function useDebounce<T extends (...args: never[]) => void>(callback: T, delay: number): T {\n const callbackRef = useRef<T>(callback);\n\n \n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n const debouncedFn = useCallback(\n debounce((...args: never[]) => {\n callbackRef.current(...args);\n }, delay),\n [delay],\n );\n\n useEffect(() => {\n \n return () => {\n debouncedFn.cancel();\n };\n }, [debouncedFn]);\n\n return debouncedFn as unknown as T;\n}\n"],"names":["useDebounce","callback","delay","callbackRef","useRef","useEffect","debouncedFn","useCallback","debounce","args","__name"],"mappings":";;;;AASO,SAASA,EAAkDC,GAAaC,GAAkB;AAC/F,QAAMC,IAAcC,EAAUH,CAAQ;AAGtC,EAAAI,EAAU,MAAM;AACd,IAAAF,EAAY,UAAUF;AAAA,EACxB,GAAG,CAACA,CAAQ,CAAC;AAEb,QAAMK,IAAcC;AAAA,IAClBC,EAAS,IAAIC,MAAkB;AAC7B,MAAAN,EAAY,QAAQ,GAAGM,CAAI;AAAA,IAC7B,GAAGP,CAAK;AAAA,IACR,CAACA,CAAK;AAAA,EAAA;AAGR,SAAAG,EAAU,MAED,MAAM;AACX,IAAAC,EAAY,OAAA;AAAA,EACd,GACC,CAACA,CAAW,CAAC,GAETA;AACT;AAvBgBI,EAAAV,GAAA;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var s = Object.defineProperty;
|
|
2
|
-
var t = (e, r) => s(e, "name", { value: r, configurable: !0 });
|
|
3
|
-
import { useRef as o, useMemo as i, useEffect as u } from "react";
|
|
4
|
-
import { isEqual as c } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
|
|
5
|
-
function p(e) {
|
|
6
|
-
if (!e || !e.length)
|
|
7
|
-
throw new Error(
|
|
8
|
-
"useDeepCompareEffect should not be used with no dependencies. Use useEffect instead."
|
|
9
|
-
);
|
|
10
|
-
if (e.every(m))
|
|
11
|
-
throw new Error(
|
|
12
|
-
"useDeepCompareEffect should not be used with dependencies that are all primitive values. Use useEffect instead."
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
t(p, "checkDeps");
|
|
16
|
-
function m(e) {
|
|
17
|
-
return e == null || /^[sbn]/.test(typeof e);
|
|
18
|
-
}
|
|
19
|
-
t(m, "isPrimitive");
|
|
20
|
-
function f(e) {
|
|
21
|
-
const r = o(e), n = o(0);
|
|
22
|
-
return c(e, r.current) || (r.current = e, n.current += 1), i(() => r.current, [n.current]);
|
|
23
|
-
}
|
|
24
|
-
t(f, "useDeepCompareMemoize");
|
|
25
|
-
function d(e, r) {
|
|
26
|
-
return process.env.NODE_ENV !== "production" && p(r), u(e, f(r));
|
|
27
|
-
}
|
|
28
|
-
t(d, "useDeepCompareEffect");
|
|
29
|
-
function l(e, r) {
|
|
30
|
-
return u(e, f(r));
|
|
31
|
-
}
|
|
32
|
-
t(l, "useDeepCompareEffectNoCheck");
|
|
33
|
-
export {
|
|
34
|
-
d as useDeepCompareEffect,
|
|
35
|
-
l as useDeepCompareEffectNoCheck,
|
|
36
|
-
f as useDeepCompareMemoize
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=useDeepCompareEffect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeepCompareEffect.js","sources":["../../src/hooks/useDeepCompareEffect.ts"],"sourcesContent":["import { isEqual as deepEqual } from 'es-toolkit/compat';\nimport { useEffect, useMemo, useRef } from 'react';\n\ntype UseEffectParamsType = Parameters<typeof useEffect>;\ntype EffectCallbackType = UseEffectParamsType[0];\ntype DependencyListType = UseEffectParamsType[1];\n\n// yes, I know it's void, but I like what this communicates about\n// the intent of these functions: It's just like useEffect\ntype UseEffectReturn = ReturnType<typeof useEffect>;\n\n/**\n * The checkDeps function checks if the dependency list is valid for use with useDeepCompareEffect.\n * It throws an error if the dependency list is empty or contains only primitive values.\n */\nfunction checkDeps(deps: DependencyListType) {\n if (!deps || !deps.length) {\n throw new Error(\n 'useDeepCompareEffect should not be used with no dependencies. Use useEffect instead.',\n );\n }\n\n if (deps.every(isPrimitive)) {\n throw new Error(\n 'useDeepCompareEffect should not be used with dependencies that are all primitive values. Use useEffect instead.',\n );\n }\n}\n\n/**\n * The isPrimitive function checks if a value is a primitive type.\n * It returns true if the value is null, undefined, a string, a boolean, or a number.\n */\nfunction isPrimitive(val: unknown) {\n return val == null || /^[sbn]/.test(typeof val);\n}\n\n/**\n * The isPrimitive function checks if a value is a primitive type.\n * It returns true if the value is null, undefined, a string, a boolean, or a number.\n */\nexport function useDeepCompareMemoize<T>(value: T) {\n const ref = useRef<T>(value);\n const signalRef = useRef<number>(0);\n\n if (!deepEqual(value, ref.current)) {\n ref.current = value;\n signalRef.current += 1;\n }\n\n return useMemo(() => ref.current, [signalRef.current]);\n}\n\n/**\n * The isPrimitive function checks if a value is a primitive type.\n * It returns true if the value is null, undefined, a string, a boolean, or a number.\n */\nexport function useDeepCompareEffect(\n callback: EffectCallbackType,\n dependencies: DependencyListType,\n): UseEffectReturn {\n if (process.env.NODE_ENV !== 'production') {\n checkDeps(dependencies);\n }\n\n return useEffect(callback, useDeepCompareMemoize(dependencies));\n}\n\n/**\n * deep compare effect 훅\n * @param callback effect 콜백\n * @param dependencies 의존성 목록\n */\nexport function useDeepCompareEffectNoCheck(\n callback: EffectCallbackType,\n dependencies: DependencyListType,\n): UseEffectReturn {\n return useEffect(callback, useDeepCompareMemoize(dependencies));\n}\n"],"names":["checkDeps","deps","isPrimitive","__name","val","useDeepCompareMemoize","value","ref","useRef","signalRef","deepEqual","useMemo","useDeepCompareEffect","callback","dependencies","useEffect","useDeepCompareEffectNoCheck"],"mappings":";;;;AAeA,SAASA,EAAUC,GAA0B;AAC3C,MAAI,CAACA,KAAQ,CAACA,EAAK;AACjB,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAIJ,MAAIA,EAAK,MAAMC,CAAW;AACxB,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAGN;AAZSC,EAAAH,GAAA;AAkBT,SAASE,EAAYE,GAAc;AACjC,SAAOA,KAAO,QAAQ,SAAS,KAAK,OAAOA,CAAG;AAChD;AAFSD,EAAAD,GAAA;AAQF,SAASG,EAAyBC,GAAU;AACjD,QAAMC,IAAMC,EAAUF,CAAK,GACrBG,IAAYD,EAAe,CAAC;AAElC,SAAKE,EAAUJ,GAAOC,EAAI,OAAO,MAC/BA,EAAI,UAAUD,GACdG,EAAU,WAAW,IAGhBE,EAAQ,MAAMJ,EAAI,SAAS,CAACE,EAAU,OAAO,CAAC;AACvD;AAVgBN,EAAAE,GAAA;AAgBT,SAASO,EACdC,GACAC,GACiB;AACjB,SAAI,QAAQ,IAAI,aAAa,gBAC3Bd,EAAUc,CAAY,GAGjBC,EAAUF,GAAUR,EAAsBS,CAAY,CAAC;AAChE;AATgBX,EAAAS,GAAA;AAgBT,SAASI,EACdH,GACAC,GACiB;AACjB,SAAOC,EAAUF,GAAUR,EAAsBS,CAAY,CAAC;AAChE;AALgBX,EAAAa,GAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHeaderWrapState.js","sources":["../../src/hooks/useHeaderWrapState.ts"],"sourcesContent":["import { useLayoutEffect, useRef, useState, type RefObject } from 'react';\n\ntype HeaderWrapState = {\n containerRef: RefObject<HTMLDivElement | null>;\n titleRef: RefObject<HTMLDivElement | null>;\n slotsRef: RefObject<HTMLDivElement | null>;\n actionsRef: RefObject<HTMLDivElement | null>;\n isWrapped: boolean;\n};\n\nconst getVisibleElementWidth = (element: HTMLElement | null) => {\n if (!element || element.getClientRects().length === 0) {\n return 0;\n }\n\n return element.offsetWidth;\n};\n\nconst getGroupContentWidth = (element: HTMLElement | null) => {\n if (!element || element.getClientRects().length === 0) {\n return 0;\n }\n\n const visibleChildren = Array.from(element.children).filter(\n (child) => (child as HTMLElement).getClientRects().length > 0,\n ) as HTMLElement[];\n\n if (visibleChildren.length === 0) {\n return element.offsetWidth;\n }\n\n const computedStyle = window.getComputedStyle(element);\n const gap = Number.parseFloat(computedStyle.columnGap || computedStyle.gap || '0') || 0;\n\n return (\n visibleChildren.reduce((totalWidth, child) => totalWidth + child.offsetWidth, 0) +\n gap * Math.max(visibleChildren.length - 1, 0)\n );\n};\n\n/**\n * 헤더 한 줄 배치 가능 여부 계산 훅\n * @param deps 측정 재실행 의존성\n */\nconst useHeaderWrapState = (deps: unknown[] = []): HeaderWrapState => {\n const containerRef = useRef<HTMLDivElement>(null);\n const titleRef = useRef<HTMLDivElement>(null);\n const slotsRef = useRef<HTMLDivElement>(null);\n const actionsRef = useRef<HTMLDivElement>(null);\n const [isWrapped, setIsWrapped] = useState(false);\n\n useLayoutEffect(() => {\n const containerElement = containerRef.current;\n\n if (!containerElement) {\n return undefined;\n }\n\n const updateWrapState = () => {\n const containerStyle = window.getComputedStyle(containerElement);\n const columnGap =\n Number.parseFloat(containerStyle.columnGap || containerStyle.gap || '0') || 0;\n const groupWidths = [\n getVisibleElementWidth(titleRef.current),\n getGroupContentWidth(slotsRef.current),\n getGroupContentWidth(actionsRef.current),\n ].filter((width) => width > 0);\n const requiredWidth =\n groupWidths.reduce((totalWidth, width) => totalWidth + width, 0) +\n columnGap * Math.max(groupWidths.length - 1, 0);\n\n setIsWrapped(requiredWidth > containerElement.clientWidth);\n };\n\n updateWrapState();\n\n const resizeObserver = new ResizeObserver(() => {\n updateWrapState();\n });\n\n [containerElement, titleRef.current, slotsRef.current, actionsRef.current]\n .filter(Boolean)\n .forEach((element) => {\n resizeObserver.observe(element as HTMLElement);\n });\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [deps]);\n\n return {\n containerRef,\n titleRef,\n slotsRef,\n actionsRef,\n isWrapped,\n };\n};\n\nexport { useHeaderWrapState };\n"],"names":["getVisibleElementWidth","__name","element","getGroupContentWidth","visibleChildren","child","computedStyle","gap","totalWidth","useHeaderWrapState","deps","containerRef","useRef","titleRef","slotsRef","actionsRef","isWrapped","setIsWrapped","useState","useLayoutEffect","containerElement","updateWrapState","containerStyle","columnGap","groupWidths","width","requiredWidth","resizeObserver"],"mappings":";;;AAUA,MAAMA,IAAyB,gBAAAC,EAAA,CAACC,MAC1B,CAACA,KAAWA,EAAQ,eAAA,EAAiB,WAAW,IAC3C,IAGFA,EAAQ,aALc,2BAQzBC,IAAuB,gBAAAF,EAAA,CAACC,MAAgC;AAC5D,MAAI,CAACA,KAAWA,EAAQ,eAAA,EAAiB,WAAW;AAClD,WAAO;AAGT,QAAME,IAAkB,MAAM,KAAKF,EAAQ,QAAQ,EAAE;AAAA,IACnD,CAACG,MAAWA,EAAsB,eAAA,EAAiB,SAAS;AAAA,EAAA;AAG9D,MAAID,EAAgB,WAAW;AAC7B,WAAOF,EAAQ;AAGjB,QAAMI,IAAgB,OAAO,iBAAiBJ,CAAO,GAC/CK,IAAM,OAAO,WAAWD,EAAc,aAAaA,EAAc,OAAO,GAAG,KAAK;AAEtF,SACEF,EAAgB,OAAO,CAACI,GAAYH,MAAUG,IAAaH,EAAM,aAAa,CAAC,IAC/EE,IAAM,KAAK,IAAIH,EAAgB,SAAS,GAAG,CAAC;AAEhD,GApB6B,yBA0BvBK,IAAqB,gBAAAR,EAAA,CAACS,IAAkB,OAAwB;AACpE,QAAMC,IAAeC,EAAuB,IAAI,GAC1CC,IAAWD,EAAuB,IAAI,GACtCE,IAAWF,EAAuB,IAAI,GACtCG,IAAaH,EAAuB,IAAI,GACxC,CAACI,GAAWC,CAAY,IAAIC,EAAS,EAAK;AAEhD,SAAAC,EAAgB,MAAM;AACpB,UAAMC,IAAmBT,EAAa;AAEtC,QAAI,CAACS;AACH;AAGF,UAAMC,IAAkB,gBAAApB,EAAA,MAAM;AAC5B,YAAMqB,IAAiB,OAAO,iBAAiBF,CAAgB,GACzDG,IACJ,OAAO,WAAWD,EAAe,aAAaA,EAAe,OAAO,GAAG,KAAK,GACxEE,IAAc;AAAA,QAClBxB,EAAuBa,EAAS,OAAO;AAAA,QACvCV,EAAqBW,EAAS,OAAO;AAAA,QACrCX,EAAqBY,EAAW,OAAO;AAAA,MAAA,EACvC,OAAO,CAACU,MAAUA,IAAQ,CAAC,GACvBC,IACJF,EAAY,OAAO,CAAChB,GAAYiB,MAAUjB,IAAaiB,GAAO,CAAC,IAC/DF,IAAY,KAAK,IAAIC,EAAY,SAAS,GAAG,CAAC;AAEhD,MAAAP,EAAaS,IAAgBN,EAAiB,WAAW;AAAA,IAC3D,GAdwB;AAgBxB,IAAAC,EAAA;AAEA,UAAMM,IAAiB,IAAI,eAAe,MAAM;AAC9C,MAAAN,EAAA;AAAA,IACF,CAAC;AAED,YAACD,GAAkBP,EAAS,SAASC,EAAS,SAASC,EAAW,OAAO,EACtE,OAAO,OAAO,EACd,QAAQ,CAACb,MAAY;AACpB,MAAAyB,EAAe,QAAQzB,CAAsB;AAAA,IAC/C,CAAC,GAEI,MAAM;AACX,MAAAyB,EAAe,WAAA;AAAA,IACjB;AAAA,EACF,GAAG,CAACjB,CAAI,CAAC,GAEF;AAAA,IACL,cAAAC;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,EAAA;AAEJ,GAtD2B;"}
|
package/dist/hooks/useNavbar.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var v = Object.defineProperty;
|
|
2
|
-
var n = (e, t) => v(e, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { useAtomValue as d, useSetAtom as o } from "jotai";
|
|
4
|
-
import { navbarStateAtom as g, navbarToggleFoldedAtom as i, navbarOpenFoldedAtom as p, navbarCloseFoldedAtom as u, navbarToggleMobileAtom as F, navbarOpenMobileAtom as M, navbarCloseMobileAtom as C, navbarOpenAtom as N, navbarCloseAtom as O, navbarToggleAtom as T, resetNavbarAtom as f } from "../store/atoms/navbarAtoms.js";
|
|
5
|
-
const V = /* @__PURE__ */ n(() => d(g), "useGetNavbar"), h = /* @__PURE__ */ n(() => {
|
|
6
|
-
const e = o(i), t = o(p), a = o(u), l = o(F), s = o(M), r = o(C), b = o(N), m = o(O), c = o(T), A = o(f);
|
|
7
|
-
return {
|
|
8
|
-
toggleFolded: e,
|
|
9
|
-
openFolded: t,
|
|
10
|
-
closeFolded: a,
|
|
11
|
-
toggleMobile: l,
|
|
12
|
-
openMobile: s,
|
|
13
|
-
closeMobile: r,
|
|
14
|
-
open: b,
|
|
15
|
-
close: m,
|
|
16
|
-
toggle: c,
|
|
17
|
-
reset: A
|
|
18
|
-
};
|
|
19
|
-
}, "useNavbarActions");
|
|
20
|
-
export {
|
|
21
|
-
V as useGetNavbar,
|
|
22
|
-
h as useNavbarActions
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=useNavbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNavbar.js","sources":["../../src/hooks/useNavbar.ts"],"sourcesContent":["import {\n navbarCloseAtom,\n navbarCloseFoldedAtom,\n navbarCloseMobileAtom,\n navbarOpenAtom,\n navbarOpenFoldedAtom,\n navbarOpenMobileAtom,\n navbarStateAtom,\n navbarToggleAtom,\n navbarToggleFoldedAtom,\n navbarToggleMobileAtom,\n resetNavbarAtom,\n} from '@/store/atoms';\nimport { useAtomValue, useSetAtom } from 'jotai';\n\n/**\n * Navbar 상태 조회 훅\n */\nexport const useGetNavbar = () => {\n return useAtomValue(navbarStateAtom);\n};\n\n/**\n * Navbar 액션 훅\n */\nexport const useNavbarActions = () => {\n const toggleFolded = useSetAtom(navbarToggleFoldedAtom);\n const openFolded = useSetAtom(navbarOpenFoldedAtom);\n const closeFolded = useSetAtom(navbarCloseFoldedAtom);\n const toggleMobile = useSetAtom(navbarToggleMobileAtom);\n const openMobile = useSetAtom(navbarOpenMobileAtom);\n const closeMobile = useSetAtom(navbarCloseMobileAtom);\n const open = useSetAtom(navbarOpenAtom);\n const close = useSetAtom(navbarCloseAtom);\n const toggle = useSetAtom(navbarToggleAtom);\n const reset = useSetAtom(resetNavbarAtom);\n\n return {\n toggleFolded,\n openFolded,\n closeFolded,\n toggleMobile,\n openMobile,\n closeMobile,\n open,\n close,\n toggle,\n reset,\n };\n};\n"],"names":["useGetNavbar","__name","useAtomValue","navbarStateAtom","useNavbarActions","toggleFolded","useSetAtom","navbarToggleFoldedAtom","openFolded","navbarOpenFoldedAtom","closeFolded","navbarCloseFoldedAtom","toggleMobile","navbarToggleMobileAtom","openMobile","navbarOpenMobileAtom","closeMobile","navbarCloseMobileAtom","open","navbarOpenAtom","close","navbarCloseAtom","toggle","navbarToggleAtom","reset","resetNavbarAtom"],"mappings":";;;;AAkBO,MAAMA,IAAe,gBAAAC,EAAA,MACnBC,EAAaC,CAAe,GADT,iBAOfC,IAAmB,gBAAAH,EAAA,MAAM;AACpC,QAAMI,IAAeC,EAAWC,CAAsB,GAChDC,IAAaF,EAAWG,CAAoB,GAC5CC,IAAcJ,EAAWK,CAAqB,GAC9CC,IAAeN,EAAWO,CAAsB,GAChDC,IAAaR,EAAWS,CAAoB,GAC5CC,IAAcV,EAAWW,CAAqB,GAC9CC,IAAOZ,EAAWa,CAAc,GAChCC,IAAQd,EAAWe,CAAe,GAClCC,IAAShB,EAAWiB,CAAgB,GACpCC,IAAQlB,EAAWmB,CAAe;AAExC,SAAO;AAAA,IACL,cAAApB;AAAA,IACA,YAAAG;AAAA,IACA,aAAAE;AAAA,IACA,cAAAE;AAAA,IACA,YAAAE;AAAA,IACA,aAAAE;AAAA,IACA,MAAAE;AAAA,IACA,OAAAE;AAAA,IACA,QAAAE;AAAA,IACA,OAAAE;AAAA,EAAA;AAEJ,GAxBgC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigationActiveRouteRemount.js","sources":["../../src/hooks/useNavigationActiveRouteRemount.ts"],"sourcesContent":["import { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { atom, useAtomValue, useSetAtom } from 'jotai';\nimport { useMemo } from 'react';\nimport { createPath, type To, useLocation, useResolvedPath } from 'react-router-dom';\n\nconst navigationActiveRouteRemountKeyAtom = atom(0);\n\n/**\n * 네비게이션 active route remount key 조회\n */\nexport const useNavigationActiveRouteRemountKey = () =>\n useAtomValue(navigationActiveRouteRemountKeyAtom);\n\n/**\n * 네비게이션 active route remount 제어값 조회\n * @param to 이동 대상 경로\n */\nexport const useNavigationActiveRouteRemount = (to?: To) => {\n const { env } = useOwpAppContext();\n const location = useLocation();\n const setNavigationActiveRouteRemountKey = useSetAtom(navigationActiveRouteRemountKeyAtom);\n const resolvedTo = useResolvedPath(\n to ?? {\n pathname: location.pathname,\n search: location.search,\n hash: location.hash,\n },\n );\n\n const isNavigationActiveRouteRemountEnabled =\n env?.isNavigationActiveRouteRemountEnabled ?? true;\n\n const shouldRemountRouteOnClick = useMemo(() => {\n if (!to || !isNavigationActiveRouteRemountEnabled) {\n return false;\n }\n\n return (\n createPath(resolvedTo) ===\n createPath({\n pathname: location.pathname,\n search: location.search,\n hash: location.hash,\n })\n );\n }, [\n isNavigationActiveRouteRemountEnabled,\n location.hash,\n location.pathname,\n location.search,\n resolvedTo,\n to,\n ]);\n\n const remountRoute = () => {\n setNavigationActiveRouteRemountKey((previousValue) => previousValue + 1);\n };\n\n return {\n isNavigationActiveRouteRemountEnabled,\n shouldRemountRouteOnClick,\n remountRoute,\n };\n};\n"],"names":["navigationActiveRouteRemountKeyAtom","atom","useNavigationActiveRouteRemountKey","__name","useAtomValue","useNavigationActiveRouteRemount","to","env","useOwpAppContext","location","useLocation","setNavigationActiveRouteRemountKey","useSetAtom","resolvedTo","useResolvedPath","isNavigationActiveRouteRemountEnabled","shouldRemountRouteOnClick","useMemo","createPath","previousValue"],"mappings":";;;;;;AAKA,MAAMA,IAAsCC,EAAK,CAAC,GAKrCC,IAAqC,gBAAAC,EAAA,MAChDC,EAAaJ,CAAmC,GADA,uCAOrCK,IAAkC,gBAAAF,EAAA,CAACG,MAAY;AAC1D,QAAM,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACVC,IAAWC,EAAA,GACXC,IAAqCC,EAAWZ,CAAmC,GACnFa,IAAaC;AAAA,IACjBR,KAAM;AAAA,MACJ,UAAUG,EAAS;AAAA,MACnB,QAAQA,EAAS;AAAA,MACjB,MAAMA,EAAS;AAAA,IAAA;AAAA,EACjB,GAGIM,KACJR,KAAA,gBAAAA,EAAK,0CAAyC,IAE1CS,IAA4BC,EAAQ,MACpC,CAACX,KAAM,CAACS,IACH,KAIPG,EAAWL,CAAU,MACrBK,EAAW;AAAA,IACT,UAAUT,EAAS;AAAA,IACnB,QAAQA,EAAS;AAAA,IACjB,MAAMA,EAAS;AAAA,EAAA,CAChB,GAEF;AAAA,IACDM;AAAA,IACAN,EAAS;AAAA,IACTA,EAAS;AAAA,IACTA,EAAS;AAAA,IACTI;AAAA,IACAP;AAAA,EAAA,CACD;AAMD,SAAO;AAAA,IACL,uCAAAS;AAAA,IACA,2BAAAC;AAAA,IACA,cAPmB,gBAAAb,EAAA,MAAM;AACzB,MAAAQ,EAAmC,CAACQ,MAAkBA,IAAgB,CAAC;AAAA,IACzE,GAFqB;AAAA,EAOnB;AAEJ,GA9C+C;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var o = Object.defineProperty;
|
|
2
|
-
var t = (r, e) => o(r, "name", { value: e, configurable: !0 });
|
|
3
|
-
import { useRef as u, useEffect as f } from "react";
|
|
4
|
-
function s(r) {
|
|
5
|
-
const e = u(void 0);
|
|
6
|
-
return f(() => {
|
|
7
|
-
e.current = r;
|
|
8
|
-
}, [r]), e.current;
|
|
9
|
-
}
|
|
10
|
-
t(s, "usePrevious");
|
|
11
|
-
export {
|
|
12
|
-
s as usePrevious
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=usePrevious.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevious.js","sources":["../../src/hooks/usePrevious.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\n/**\n * The usePrevious function is a custom hook that returns the previous value of a variable.\n * It takes in a value as a parameter and returns the previous value.\n */\nexport function usePrevious<T>(value: T): T | undefined {\n const ref = useRef<T | undefined>(undefined);\n\n \n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n \n return ref.current;\n}\n"],"names":["usePrevious","value","ref","useRef","useEffect","__name"],"mappings":";;;AAMO,SAASA,EAAeC,GAAyB;AACtD,QAAMC,IAAMC,EAAsB,MAAS;AAG3C,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GAGHC,EAAI;AACb;AAVgBG,EAAAL,GAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useShortcuts.js","sources":["../../src/hooks/useShortcuts.ts"],"sourcesContent":["import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst currentShortcutsAtom = atomWithStorage<Array<string> | []>(STORAGE_KEYS.currentShortcuts, []);\n\n/**\n * 바로가기 목록 조회 훅\n */\nexport const useGetShortcuts = () => {\n return useAtomValue(currentShortcutsAtom);\n};\n\n/**\n * 바로가기 목록 설정 훅\n */\nexport const useSetShortcuts = () => {\n return useSetAtom(currentShortcutsAtom);\n};\n"],"names":["currentShortcutsAtom","atomWithStorage","STORAGE_KEYS","useGetShortcuts","__name","useAtomValue","useSetShortcuts","useSetAtom"],"mappings":";;;;;AAIA,MAAMA,IAAuBC,EAAoCC,EAAa,kBAAkB,CAAA,CAAE,GAKrFC,IAAkB,gBAAAC,EAAA,MACtBC,EAAaL,CAAoB,GADX,oBAOlBM,IAAkB,gBAAAF,EAAA,MACtBG,EAAWP,CAAoB,GADT;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeMediaQuery.js","sources":["../../src/hooks/useThemeMediaQuery.ts"],"sourcesContent":["import { useTheme, type Theme } from '@mui/material/styles';\nimport { useEffect, useState } from 'react';\n\n/**\n * The useThemeMediaQuery function is a custom hook that returns a boolean indicating whether the current screen matches the specified media query.\n * It takes in a themeCallbackFunc as a parameter, which is a function that returns a string representing the media query to match.\n * It returns a boolean indicating whether the current screen matches the specified media query.\n */\nexport function useThemeMediaQuery(themeCallbackFunc: (theme: Theme) => string) {\n const theme = useTheme();\n\n const query = themeCallbackFunc(theme).replace('@media ', '');\n\n \n function getMatches(q: string) {\n return window.matchMedia(q).matches;\n }\n\n const [matches, setMatches] = useState(getMatches(query));\n\n useEffect(\n () => {\n const mediaQuery = window.matchMedia(query);\n\n \n setMatches(getMatches(query));\n\n \n const handler = (event: MediaQueryListEvent) => setMatches(event.matches);\n\n \n mediaQuery.addEventListener('change', handler);\n\n \n return () => mediaQuery.removeEventListener('change', handler);\n },\n [query], \n );\n\n return matches;\n}\n"],"names":["useThemeMediaQuery","themeCallbackFunc","theme","useTheme","query","getMatches","q","__name","matches","setMatches","useState","useEffect","mediaQuery","handler","event"],"mappings":";;;;AAQO,SAASA,EAAmBC,GAA6C;AAC9E,QAAMC,IAAQC,EAAA,GAERC,IAAQH,EAAkBC,CAAK,EAAE,QAAQ,WAAW,EAAE;AAG5D,WAASG,EAAWC,GAAW;AAC7B,WAAO,OAAO,WAAWA,CAAC,EAAE;AAAA,EAC9B;AAFS,EAAAC,EAAAF,GAAA;AAIT,QAAM,CAACG,GAASC,CAAU,IAAIC,EAASL,EAAWD,CAAK,CAAC;AAExD,SAAAO;AAAA,IACE,MAAM;AACJ,YAAMC,IAAa,OAAO,WAAWR,CAAK;AAG1C,MAAAK,EAAWJ,EAAWD,CAAK,CAAC;AAG5B,YAAMS,IAAU,gBAAAN,EAAA,CAACO,MAA+BL,EAAWK,EAAM,OAAO,GAAxD;AAGhB,aAAAF,EAAW,iBAAiB,UAAUC,CAAO,GAGtC,MAAMD,EAAW,oBAAoB,UAAUC,CAAO;AAAA,IAC/D;AAAA,IACA,CAACT,CAAK;AAAA,EAAA,GAGDI;AACT;AAhCgBD,EAAAP,GAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTimeout.js","sources":["../../src/hooks/useTimeout.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\n/**\n * The useTimeout function is a custom hook that sets a timeout for a given callback function.\n * It takes in a callback function and a delay time in milliseconds as parameters.\n * It returns nothing.\n */\nexport function useTimeout(callback: () => void, delay: number) {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n useEffect(() => {\n let timer: NodeJS.Timeout | undefined;\n\n if (delay !== null && callback && typeof callback === 'function') {\n timer = setTimeout(callbackRef.current, delay);\n }\n\n return () => {\n if (timer) {\n clearTimeout(timer);\n }\n };\n }, [callback, delay]);\n}\n"],"names":["useTimeout","callback","delay","callbackRef","useRef","useEffect","timer","__name"],"mappings":";;;AAOO,SAASA,EAAWC,GAAsBC,GAAe;AAC9D,QAAMC,IAAcC,EAAOH,CAAQ;AAEnC,EAAAI,EAAU,MAAM;AACd,IAAAF,EAAY,UAAUF;AAAA,EACxB,GAAG,CAACA,CAAQ,CAAC,GAEbI,EAAU,MAAM;AACd,QAAIC;AAEJ,WAAIJ,MAAU,QAAQD,KAAY,OAAOA,KAAa,eACpDK,IAAQ,WAAWH,EAAY,SAASD,CAAK,IAGxC,MAAM;AACX,MAAII,KACF,aAAaA,CAAK;AAAA,IAEtB;AAAA,EACF,GAAG,CAACL,GAAUC,CAAK,CAAC;AACtB;AApBgBK,EAAAP,GAAA;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
type UseEffectParamsType = Parameters<typeof useEffect>;
|
|
3
|
-
type EffectCallbackType = UseEffectParamsType[0];
|
|
4
|
-
type DependencyListType = UseEffectParamsType[1];
|
|
5
|
-
type UseEffectReturn = ReturnType<typeof useEffect>;
|
|
6
|
-
/**
|
|
7
|
-
* The isPrimitive function checks if a value is a primitive type.
|
|
8
|
-
* It returns true if the value is null, undefined, a string, a boolean, or a number.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useDeepCompareMemoize<T>(value: T): T;
|
|
11
|
-
/**
|
|
12
|
-
* The isPrimitive function checks if a value is a primitive type.
|
|
13
|
-
* It returns true if the value is null, undefined, a string, a boolean, or a number.
|
|
14
|
-
*/
|
|
15
|
-
export declare function useDeepCompareEffect(callback: EffectCallbackType, dependencies: DependencyListType): UseEffectReturn;
|
|
16
|
-
/**
|
|
17
|
-
* deep compare effect 훅
|
|
18
|
-
* @param callback effect 콜백
|
|
19
|
-
* @param dependencies 의존성 목록
|
|
20
|
-
*/
|
|
21
|
-
export declare function useDeepCompareEffectNoCheck(callback: EffectCallbackType, dependencies: DependencyListType): UseEffectReturn;
|
|
22
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, ensureDayjsBrowserSetup, owpDayjs } from '@/dayjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exceljsBrowser.js","sources":["../../src/utils/exceljsBrowser.ts"],"sourcesContent":["import type * as ExcelJSModule from 'exceljs';\n\ntype ExcelJSBrowserModule = typeof ExcelJSModule;\ntype ExcelJSWindow = Window & {\n ExcelJS?: ExcelJSBrowserModule;\n};\n\nconst EXCELJS_SCRIPT_SELECTOR = 'script[data-owp-exceljs-bundle=\"true\"]';\nlet excelJSBrowserPromise: Promise<ExcelJSBrowserModule> | undefined;\n\n/** 브라우저 전역 exceljs 모듈 조회 */\nconst getExcelJSGlobal = () =>\n typeof window === 'undefined' ? undefined : (window as ExcelJSWindow).ExcelJS;\n\n/** 브라우저 전역 exceljs 누락 오류 생성 */\nconst createExcelJSGlobalMissingError = () =>\n new Error('Failed to resolve browser exceljs bundle.');\n\n/** 브라우저 exceljs 번들 소스 지연 로드 */\nconst loadExcelJSBrowserSource = async () =>\n (await import('virtual:owp-exceljs-browser-source')).default;\n\n/** 브라우저 exceljs 스크립트 로드 */\nconst loadExcelJSBrowserScript = () =>\n new Promise<ExcelJSBrowserModule>((resolve, reject) => {\n const loadedExcelJS = getExcelJSGlobal();\n\n if (loadedExcelJS) {\n resolve(loadedExcelJS);\n return;\n }\n\n if (typeof document === 'undefined') {\n reject(createExcelJSGlobalMissingError());\n return;\n }\n\n const handleLoad = () => {\n const resolvedExcelJS = getExcelJSGlobal();\n\n if (!resolvedExcelJS) {\n reject(createExcelJSGlobalMissingError());\n return;\n }\n\n resolve(resolvedExcelJS);\n };\n const handleError = () => {\n reject(new Error('Failed to load browser exceljs bundle.'));\n };\n const existingScript = document.querySelector<HTMLScriptElement>(EXCELJS_SCRIPT_SELECTOR);\n\n if (existingScript) {\n existingScript.addEventListener('load', handleLoad, { once: true });\n existingScript.addEventListener('error', handleError, { once: true });\n return;\n }\n\n const scriptElement = document.createElement('script');\n const scriptParentElement = document.head ?? document.body ?? document.documentElement;\n\n if (!scriptParentElement) {\n reject(createExcelJSGlobalMissingError());\n return;\n }\n\n void loadExcelJSBrowserSource()\n .then((source) => {\n const objectUrl = URL.createObjectURL(\n new Blob([source], {\n type: 'text/javascript',\n }),\n );\n const cleanupObjectUrl = () => {\n URL.revokeObjectURL(objectUrl);\n };\n\n scriptElement.async = true;\n scriptElement.dataset.owpExceljsBundle = 'true';\n scriptElement.src = objectUrl;\n scriptElement.addEventListener(\n 'load',\n () => {\n cleanupObjectUrl();\n handleLoad();\n },\n { once: true },\n );\n scriptElement.addEventListener(\n 'error',\n () => {\n cleanupObjectUrl();\n handleError();\n },\n { once: true },\n );\n scriptParentElement.append(scriptElement);\n })\n .catch((error) => {\n reject(error instanceof Error ? error : new Error('Failed to create browser exceljs bundle.'));\n });\n });\n\n/** 브라우저 배포용 exceljs 모듈 지연 로드 */\nexport const loadExcelJSBrowser = () => {\n if (!excelJSBrowserPromise) {\n excelJSBrowserPromise = loadExcelJSBrowserScript()\n .catch((error) => {\n excelJSBrowserPromise = undefined;\n throw error;\n });\n }\n\n return excelJSBrowserPromise;\n};\n"],"names":["EXCELJS_SCRIPT_SELECTOR","excelJSBrowserPromise","getExcelJSGlobal","__name","createExcelJSGlobalMissingError","loadExcelJSBrowserSource","loadExcelJSBrowserScript","resolve","reject","loadedExcelJS","handleLoad","resolvedExcelJS","handleError","existingScript","scriptElement","scriptParentElement","source","objectUrl","cleanupObjectUrl","error","loadExcelJSBrowser"],"mappings":";;AAOA,MAAMA,IAA0B;AAChC,IAAIC;AAGJ,MAAMC,IAAmB,gBAAAC,EAAA,MACvB,OAAO,SAAW,MAAc,SAAa,OAAyB,SAD/C,qBAInBC,IAAkC,gBAAAD,EAAA,MACtC,IAAI,MAAM,2CAA2C,GADf,oCAIlCE,IAA2B,gBAAAF,EAAA,aAC9B,MAAM,OAAO,oDAAoC,GAAG,SADtB,6BAI3BG,IAA2B,gBAAAH,EAAA,MAC/B,IAAI,QAA8B,CAACI,GAASC,MAAW;AACrD,QAAMC,IAAgBP,EAAA;AAEtB,MAAIO,GAAe;AACjB,IAAAF,EAAQE,CAAa;AACrB;AAAA,EACF;AAEA,MAAI,OAAO,WAAa,KAAa;AACnC,IAAAD,EAAOJ,GAAiC;AACxC;AAAA,EACF;AAEA,QAAMM,IAAa,gBAAAP,EAAA,MAAM;AACvB,UAAMQ,IAAkBT,EAAA;AAExB,QAAI,CAACS,GAAiB;AACpB,MAAAH,EAAOJ,GAAiC;AACxC;AAAA,IACF;AAEA,IAAAG,EAAQI,CAAe;AAAA,EACzB,GATmB,eAUbC,IAAc,gBAAAT,EAAA,MAAM;AACxB,IAAAK,EAAO,IAAI,MAAM,wCAAwC,CAAC;AAAA,EAC5D,GAFoB,gBAGdK,IAAiB,SAAS,cAAiCb,CAAuB;AAExF,MAAIa,GAAgB;AAClB,IAAAA,EAAe,iBAAiB,QAAQH,GAAY,EAAE,MAAM,IAAM,GAClEG,EAAe,iBAAiB,SAASD,GAAa,EAAE,MAAM,IAAM;AACpE;AAAA,EACF;AAEA,QAAME,IAAgB,SAAS,cAAc,QAAQ,GAC/CC,IAAsB,SAAS,QAAQ,SAAS,QAAQ,SAAS;AAEvE,MAAI,CAACA,GAAqB;AACxB,IAAAP,EAAOJ,GAAiC;AACxC;AAAA,EACF;AAEA,EAAKC,EAAA,EACF,KAAK,CAACW,MAAW;AAChB,UAAMC,IAAY,IAAI;AAAA,MACpB,IAAI,KAAK,CAACD,CAAM,GAAG;AAAA,QACjB,MAAM;AAAA,MAAA,CACP;AAAA,IAAA,GAEGE,IAAmB,gBAAAf,EAAA,MAAM;AAC7B,UAAI,gBAAgBc,CAAS;AAAA,IAC/B,GAFyB;AAIzB,IAAAH,EAAc,QAAQ,IACtBA,EAAc,QAAQ,mBAAmB,QACzCA,EAAc,MAAMG,GACpBH,EAAc;AAAA,MACZ;AAAA,MACA,MAAM;AACJ,QAAAI,EAAA,GACAR,EAAA;AAAA,MACF;AAAA,MACA,EAAE,MAAM,GAAA;AAAA,IAAK,GAEfI,EAAc;AAAA,MACZ;AAAA,MACA,MAAM;AACJ,QAAAI,EAAA,GACAN,EAAA;AAAA,MACF;AAAA,MACA,EAAE,MAAM,GAAA;AAAA,IAAK,GAEfG,EAAoB,OAAOD,CAAa;AAAA,EAC1C,CAAC,EACA,MAAM,CAACK,MAAU;AAChB,IAAAX,EAAOW,aAAiB,QAAQA,IAAQ,IAAI,MAAM,0CAA0C,CAAC;AAAA,EAC/F,CAAC;AACL,CAAC,GA9E8B,6BAiFpBC,IAAqB,gBAAAjB,EAAA,OAC3BF,MACHA,IAAwBK,EAAA,EACrB,MAAM,CAACa,MAAU;AAChB,QAAAlB,IAAwB,QAClBkB;AACR,CAAC,IAGElB,IATyB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jszipBrowser.js","sources":["../../src/utils/jszipBrowser.ts"],"sourcesContent":["import type JSZipModule from 'jszip';\n\nlet jsZipPromise: Promise<typeof JSZipModule> | undefined;\n\n/**\n * 브라우저 배포용 JSZip 모듈 지연 로드\n */\nexport const loadJSZip = () => {\n if (!jsZipPromise) {\n jsZipPromise = import('jszip')\n .then((jszipModule) => jszipModule.default)\n .catch((error) => {\n jsZipPromise = undefined;\n throw error;\n });\n }\n\n return jsZipPromise;\n};\n"],"names":["jsZipPromise","loadJSZip","__name","jszipModule","error"],"mappings":";;AAEA,IAAIA;AAKG,MAAMC,IAAY,gBAAAC,EAAA,OAClBF,MACHA,IAAe,OAAO,OAAO,EAC1B,KAAK,CAACG,MAAgBA,EAAY,OAAO,EACzC,MAAM,CAACC,MAAU;AAChB,QAAAJ,IAAe,QACTI;AACR,CAAC,IAGEJ,IAVgB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"treeGridBodyRowsEvent.js","sources":["../../src/utils/treeGridBodyRowsEvent.ts"],"sourcesContent":["export const TREE_GRID_BODY_ROWS_CHANGED_EVENT = 'owp-treegrid:body-rows-changed';\n\nexport type TreeGridBodyRowsChangedEventDetail = {\n gridId: string;\n};\n\n/**\n * TreeGrid 본문 행 변경 이벤트 전파\n * @param gridId TreeGrid 인스턴스 ID\n */\nexport const emitTreeGridBodyRowsChanged = (gridId: string) => {\n window.dispatchEvent(\n new CustomEvent<TreeGridBodyRowsChangedEventDetail>(TREE_GRID_BODY_ROWS_CHANGED_EVENT, {\n detail: { gridId },\n }),\n );\n};\n"],"names":["TREE_GRID_BODY_ROWS_CHANGED_EVENT","emitTreeGridBodyRowsChanged","__name","gridId"],"mappings":";;AAAO,MAAMA,IAAoC,kCAUpCC,IAA8B,gBAAAC,EAAA,CAACC,MAAmB;AAC7D,SAAO;AAAA,IACL,IAAI,YAAgDH,GAAmC;AAAA,MACrF,QAAQ,EAAE,QAAAG,EAAA;AAAA,IAAO,CAClB;AAAA,EAAA;AAEL,GAN2C;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/utils/{treeGridBodyRowsEvent.d.ts → internal/treeGridBodyRowsEvent.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|