@owp/core 2.5.22 → 2.5.24

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.
Files changed (173) hide show
  1. package/dist/_virtual/index15.js +2 -2
  2. package/dist/_virtual/index16.js +4 -4
  3. package/dist/_virtual/index17.js +4 -4
  4. package/dist/_virtual/index18.js +4 -4
  5. package/dist/_virtual/index19.js +4 -4
  6. package/dist/_virtual/index5.js +2 -2
  7. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js +15 -13
  8. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
  9. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js +21 -19
  10. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
  11. package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js +1 -1
  12. package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
  13. package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js +1 -1
  14. package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js.map +1 -1
  15. package/dist/components/OwpLoading/OwpLoading.js +1 -1
  16. package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
  17. package/dist/components/OwpMrtTable/OwpMrtTable.js +21 -21
  18. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  19. package/dist/components/OwpOptionSelector/OwpOptionSelector.js +14 -12
  20. package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
  21. package/dist/components/OwpPageTitle/OwpPageTitle.js +1 -1
  22. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
  23. package/dist/components/OwpPicker/OwpDatePicker.js +81 -82
  24. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  25. package/dist/components/OwpPicker/OwpTimePicker.js +82 -83
  26. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  27. package/dist/components/OwpPicker/OwpWeekDatePicker.js +24 -25
  28. package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
  29. package/dist/components/OwpSearchFilter/OwpSearchFilter.js +1 -1
  30. package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
  31. package/dist/components/OwpSection/OwpSection.js +1 -1
  32. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  33. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +155 -157
  34. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
  35. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js +95 -81
  36. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
  37. package/dist/components/OwpSuspense/OwpSuspense.js +43 -43
  38. package/dist/components/OwpSuspense/OwpSuspense.js.map +1 -1
  39. package/dist/components/OwpTable/OwpDataTable.js +13 -12
  40. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  41. package/dist/components/OwpTable/OwpFieldTable.js +64 -78
  42. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  43. package/dist/components/OwpTable/OwpTable.js +56 -55
  44. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  45. package/dist/components/OwpTable/internal/OwpTableBase.js +20 -19
  46. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
  47. package/dist/components/OwpTable/internal/defaultTableStyle.js +6 -7
  48. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  49. package/dist/components/OwpTable/utils/tableSx.js +16 -6
  50. package/dist/components/OwpTable/utils/tableSx.js.map +1 -1
  51. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +105 -104
  52. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  53. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +55 -56
  54. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  55. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +10 -10
  56. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +253 -252
  57. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  58. package/dist/constants/table.js +5 -0
  59. package/dist/constants/table.js.map +1 -0
  60. package/dist/constants.js +25 -23
  61. package/dist/constants.js.map +1 -1
  62. package/dist/contexts/OwpUiProvider.js +5 -5
  63. package/dist/contexts/OwpUiProvider.js.map +1 -1
  64. package/dist/hooks/{useAccessTokenGuard.js → internal/useAccessTokenGuard.js} +2 -2
  65. package/dist/hooks/internal/useAccessTokenGuard.js.map +1 -0
  66. package/dist/hooks/{useCurrentLanguage.js → internal/useCurrentLanguage.js} +2 -2
  67. package/dist/hooks/internal/useCurrentLanguage.js.map +1 -0
  68. package/dist/hooks/internal/useHeaderWrapState.js.map +1 -0
  69. package/dist/hooks/internal/useNavbar.js +24 -0
  70. package/dist/hooks/internal/useNavbar.js.map +1 -0
  71. package/dist/hooks/{useNavigationActiveRouteRemount.js → internal/useNavigationActiveRouteRemount.js} +1 -1
  72. package/dist/hooks/internal/useNavigationActiveRouteRemount.js.map +1 -0
  73. package/dist/hooks/{useShortcuts.js → internal/useShortcuts.js} +3 -3
  74. package/dist/hooks/internal/useShortcuts.js.map +1 -0
  75. package/dist/hooks/internal/useThemeMediaQuery.js.map +1 -0
  76. package/dist/hooks/internal/useTimeout.js.map +1 -0
  77. package/dist/hooks/useInitApp.js.map +1 -1
  78. package/dist/hooks.js +53 -81
  79. package/dist/hooks.js.map +1 -1
  80. package/dist/layout/Layout.js +1 -1
  81. package/dist/layout/Layout.js.map +1 -1
  82. package/dist/layout/components/layouts/NavbarToggleFabLayout.js +2 -2
  83. package/dist/layout/components/layouts/NavbarToggleFabLayout.js.map +1 -1
  84. package/dist/layout/components/layouts/NavbarWrapperLayout.js +2 -2
  85. package/dist/layout/components/layouts/NavbarWrapperLayout.js.map +1 -1
  86. package/dist/layout/components/navbar/NavbarToggleButton.js +2 -2
  87. package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
  88. package/dist/layout/components/navbar/style/NavbarStyle.js +1 -1
  89. package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
  90. package/dist/layout/components/navbar/style/NavbarStyleContent.js +1 -1
  91. package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
  92. package/dist/layout/components/navigation/Navigation.js +2 -2
  93. package/dist/layout/components/navigation/Navigation.js.map +1 -1
  94. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +1 -1
  95. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js.map +1 -1
  96. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +1 -1
  97. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js.map +1 -1
  98. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +1 -1
  99. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js.map +1 -1
  100. package/dist/layout/components/toggles/LanguageSwitcherToggle.js +1 -1
  101. package/dist/layout/components/toggles/LanguageSwitcherToggle.js.map +1 -1
  102. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  103. package/dist/layout/components/toggles/NavigationShortcutsToggle.js +1 -1
  104. package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
  105. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  106. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  107. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  108. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  109. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  110. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  111. 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
  112. package/dist/owp-app.css +1 -1
  113. package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +5 -3
  114. package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +5 -3
  115. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +4 -1
  116. package/dist/types/components/OwpSelectorBase/types/index.d.ts +1 -1
  117. package/dist/types/components/OwpSelectorBase/types/types.d.ts +3 -0
  118. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +0 -1
  119. package/dist/types/components/OwpTable/utils/tableSx.d.ts +15 -0
  120. package/dist/types/constants/index.d.ts +1 -0
  121. package/dist/types/constants/table.d.ts +1 -0
  122. package/dist/types/hooks/index.d.ts +0 -10
  123. package/dist/types/hooks/{useNavbar.d.ts → internal/useNavbar.d.ts} +1 -1
  124. package/dist/types/utils/treeGridUtil.d.ts +0 -14
  125. package/dist/utils/{exceljsBrowser.js → internal/exceljsBrowser.js} +1 -1
  126. package/dist/utils/internal/exceljsBrowser.js.map +1 -0
  127. package/dist/utils/internal/jszipBrowser.js.map +1 -0
  128. package/dist/utils/internal/treeGridBodyRowsEvent.js.map +1 -0
  129. package/dist/utils/treeGridExportExcelUtil.js +1 -1
  130. package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
  131. package/dist/utils/treeGridUtil.js +1 -6
  132. package/dist/utils/treeGridUtil.js.map +1 -1
  133. package/dist/utils/zipUtil.js +1 -1
  134. package/dist/utils/zipUtil.js.map +1 -1
  135. package/dist/utils.js +70 -75
  136. package/package.json +1 -1
  137. package/dist/hooks/useAccessTokenGuard.js.map +0 -1
  138. package/dist/hooks/useCurrentLanguage.js.map +0 -1
  139. package/dist/hooks/useDebounce.js +0 -24
  140. package/dist/hooks/useDebounce.js.map +0 -1
  141. package/dist/hooks/useDeepCompareEffect.js +0 -38
  142. package/dist/hooks/useDeepCompareEffect.js.map +0 -1
  143. package/dist/hooks/useHeaderWrapState.js.map +0 -1
  144. package/dist/hooks/useNavbar.js +0 -24
  145. package/dist/hooks/useNavbar.js.map +0 -1
  146. package/dist/hooks/useNavigationActiveRouteRemount.js.map +0 -1
  147. package/dist/hooks/usePrevious.js +0 -14
  148. package/dist/hooks/usePrevious.js.map +0 -1
  149. package/dist/hooks/useShortcuts.js.map +0 -1
  150. package/dist/hooks/useThemeMediaQuery.js.map +0 -1
  151. package/dist/hooks/useTimeout.js.map +0 -1
  152. package/dist/types/hooks/useDebounce.d.ts +0 -7
  153. package/dist/types/hooks/useDeepCompareEffect.d.ts +0 -22
  154. package/dist/types/hooks/usePrevious.d.ts +0 -5
  155. package/dist/types/utils/dayjsBrowser.d.ts +0 -1
  156. package/dist/utils/exceljsBrowser.js.map +0 -1
  157. package/dist/utils/jszipBrowser.js.map +0 -1
  158. package/dist/utils/treeGridBodyRowsEvent.js.map +0 -1
  159. /package/dist/hooks/{useHeaderWrapState.js → internal/useHeaderWrapState.js} +0 -0
  160. /package/dist/hooks/{useThemeMediaQuery.js → internal/useThemeMediaQuery.js} +0 -0
  161. /package/dist/hooks/{useTimeout.js → internal/useTimeout.js} +0 -0
  162. /package/dist/types/hooks/{useAccessTokenGuard.d.ts → internal/useAccessTokenGuard.d.ts} +0 -0
  163. /package/dist/types/hooks/{useCurrentLanguage.d.ts → internal/useCurrentLanguage.d.ts} +0 -0
  164. /package/dist/types/hooks/{useHeaderWrapState.d.ts → internal/useHeaderWrapState.d.ts} +0 -0
  165. /package/dist/types/hooks/{useNavigationActiveRouteRemount.d.ts → internal/useNavigationActiveRouteRemount.d.ts} +0 -0
  166. /package/dist/types/hooks/{useShortcuts.d.ts → internal/useShortcuts.d.ts} +0 -0
  167. /package/dist/types/hooks/{useThemeMediaQuery.d.ts → internal/useThemeMediaQuery.d.ts} +0 -0
  168. /package/dist/types/hooks/{useTimeout.d.ts → internal/useTimeout.d.ts} +0 -0
  169. /package/dist/types/utils/{exceljsBrowser.d.ts → internal/exceljsBrowser.d.ts} +0 -0
  170. /package/dist/types/utils/{jszipBrowser.d.ts → internal/jszipBrowser.d.ts} +0 -0
  171. /package/dist/types/utils/{treeGridBodyRowsEvent.d.ts → internal/treeGridBodyRowsEvent.d.ts} +0 -0
  172. /package/dist/utils/{jszipBrowser.js → internal/jszipBrowser.js} +0 -0
  173. /package/dist/utils/{treeGridBodyRowsEvent.js → internal/treeGridBodyRowsEvent.js} +0 -0
@@ -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,7 +0,0 @@
1
- /**
2
- * Debounce hook.
3
- * @param {T} callback
4
- * @param {number} delay
5
- * @returns {T}
6
- */
7
- export declare function useDebounce<T extends (...args: never[]) => void>(callback: T, delay: number): T;
@@ -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,5 +0,0 @@
1
- /**
2
- * The usePrevious function is a custom hook that returns the previous value of a variable.
3
- * It takes in a value as a parameter and returns the previous value.
4
- */
5
- export declare function usePrevious<T>(value: T): T | undefined;
@@ -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;"}