@owp/core 2.5.45 → 2.5.48

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 (322) hide show
  1. package/dist/_virtual/index16.js +4 -4
  2. package/dist/_virtual/index17.js +4 -4
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +1 -1
  6. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
  7. package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js.map +1 -1
  8. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
  9. package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -1
  10. package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
  11. package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +1 -1
  12. package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js.map +1 -1
  13. package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
  14. package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js.map +1 -1
  15. package/dist/components/OwpFilePickerButton/OwpFilePickerButton.js.map +1 -1
  16. package/dist/components/OwpHidden/OwpHidden.js.map +1 -1
  17. package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js.map +1 -1
  18. package/dist/components/OwpLayout/OwpLayout.js +1 -1
  19. package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
  20. package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
  21. package/dist/components/OwpMoreActionsButton/OwpMoreActionsButton.js.map +1 -1
  22. package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +1 -1
  23. package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
  24. package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +1 -1
  25. package/dist/components/OwpPageCarded/OwpPageCarded.js +21 -21
  26. package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
  27. package/dist/components/OwpPageCarded/internal/OwpPageCardedHeader.js +8 -8
  28. package/dist/components/OwpPageCarded/internal/OwpPageCardedHeader.js.map +1 -1
  29. package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +1 -1
  30. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
  31. package/dist/components/OwpPicker/OwpDatePicker.js +141 -144
  32. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  33. package/dist/components/OwpPicker/OwpDateRangePicker.js +114 -118
  34. package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
  35. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  36. package/dist/components/OwpPicker/OwpWeekDatePicker.js +152 -155
  37. package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
  38. package/dist/components/OwpPicker/constants/index.js.map +1 -1
  39. package/dist/components/OwpPicker/hooks/useOwpPickerPopperTransition.js.map +1 -1
  40. package/dist/components/OwpPicker/internal/OwpDatePickerCalendarHeader.js.map +1 -1
  41. package/dist/components/OwpPicker/utils/registerOwpDatePickerLocales.js +13 -0
  42. package/dist/components/OwpPicker/utils/registerOwpDatePickerLocales.js.map +1 -0
  43. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +1 -1
  44. package/dist/components/OwpRequiredHelperText/OwpRequiredHelperText.js.map +1 -1
  45. package/dist/components/OwpSearchFilter/OwpSearchFilter.js +33 -44
  46. package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
  47. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
  48. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -1
  49. package/dist/components/OwpSelectorBase/selectorBaseStyles.js.map +1 -1
  50. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -1
  51. package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
  52. package/dist/components/OwpSuspense/OwpSuspense.js +1 -1
  53. package/dist/components/OwpTable/OwpDataTable.js +277 -270
  54. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  55. package/dist/components/OwpTable/OwpFieldTable.js +42 -43
  56. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  57. package/dist/components/OwpTable/OwpTable.js +54 -55
  58. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  59. package/dist/components/OwpTable/internal/OwpTableBase.js +34 -35
  60. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
  61. package/dist/components/OwpTable/internal/defaultTableStyle.js +18 -14
  62. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  63. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
  64. package/dist/components/OwpTabs/OwpTab.js.map +1 -1
  65. package/dist/components/OwpTabs/OwpTabs.js.map +1 -1
  66. package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
  67. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  68. package/dist/components/OwpTreeGrid/OwpTreeGridToolbar.js +43 -37
  69. package/dist/components/OwpTreeGrid/OwpTreeGridToolbar.js.map +1 -1
  70. package/dist/components/OwpTreeGrid/TreeGrid.js.map +1 -1
  71. package/dist/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.js.map +1 -1
  72. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridAddedRowBoxOverlay.js.map +1 -1
  73. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +141 -144
  74. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  75. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.js.map +1 -1
  76. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
  77. package/dist/components/OwpTreeGrid/internal/treeGridLayout.js.map +1 -1
  78. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  79. package/dist/components/OwpTreeGrid/internal/treeGridSelection.js.map +1 -1
  80. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  81. package/dist/components/OwpTreeGrid/internal/utils/perf.js.map +1 -1
  82. package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js.map +1 -1
  83. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -1
  84. package/dist/components/OwpYesNoSelector/OwpYesNoSelector.js.map +1 -1
  85. package/dist/configs/defaultConfig.js.map +1 -1
  86. package/dist/constants/excel.js.map +1 -1
  87. package/dist/constants/gridTheme.js.map +1 -1
  88. package/dist/constants/language.js.map +1 -1
  89. package/dist/constants/localStorageKeys.js.map +1 -1
  90. package/dist/constants/table.js.map +1 -1
  91. package/dist/constants/tableTheme.js.map +1 -1
  92. package/dist/constants/treeGrid.js.map +1 -1
  93. package/dist/contexts/OwpAppContext.js +14 -0
  94. package/dist/contexts/OwpAppContext.js.map +1 -0
  95. package/dist/contexts/OwpAppProvider.js +20 -23
  96. package/dist/contexts/OwpAppProvider.js.map +1 -1
  97. package/dist/contexts/OwpCoreProvider.js.map +1 -1
  98. package/dist/contexts/OwpStoreProvider.js.map +1 -1
  99. package/dist/contexts/OwpUiProvider.js +1 -1
  100. package/dist/contexts/OwpUiProvider.js.map +1 -1
  101. package/dist/contexts.js +8 -7
  102. package/dist/contexts.js.map +1 -1
  103. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  104. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  105. package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
  106. package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
  107. package/dist/features/themePreview/components/themePreviewCanvas.icons.js.map +1 -1
  108. package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
  109. package/dist/features/themePreview/configs/grid.js.map +1 -1
  110. package/dist/features/themePreview/configs/presets.js.map +1 -1
  111. package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
  112. package/dist/features/themePreview/configs/settings.js.map +1 -1
  113. package/dist/features/themePreview/configs/snackbar.js.map +1 -1
  114. package/dist/features/themePreview/configs/surface.js.map +1 -1
  115. package/dist/features/themePreview/configs/table.js.map +1 -1
  116. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
  117. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
  118. package/dist/features/themePreview/utils/color.js.map +1 -1
  119. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  120. package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
  121. package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
  122. package/dist/hooks/internal/useAccessTokenGuard.js +1 -1
  123. package/dist/hooks/internal/useAccessTokenGuard.js.map +1 -1
  124. package/dist/hooks/internal/useCurrentLanguage.js.map +1 -1
  125. package/dist/hooks/internal/useInitCommonCodes.js +1 -1
  126. package/dist/hooks/internal/useNavigationActiveRouteRemount.js +1 -1
  127. package/dist/hooks/useCommonCodeList.js.map +1 -1
  128. package/dist/hooks/useConfirm.js.map +1 -1
  129. package/dist/hooks/useCurrentUser.js.map +1 -1
  130. package/dist/hooks/useCurrentUserSeq.js.map +1 -1
  131. package/dist/hooks/useFormDataUploadMutation.js.map +1 -1
  132. package/dist/hooks/useInitApp.js +1 -1
  133. package/dist/hooks/useInitApp.js.map +1 -1
  134. package/dist/hooks/useStorage.js.map +1 -1
  135. package/dist/hooks/useTreeGridExcelExport.js.map +1 -1
  136. package/dist/layout/components/logo/Logo.js +1 -1
  137. package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
  138. package/dist/layout/components/navigation/NavItem.js.map +1 -1
  139. package/dist/layout/components/navigation/NavigationMenu.js.map +1 -1
  140. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  141. package/dist/layout/components/toggles/ThemePreviewToggle.js +1 -1
  142. package/dist/layout/components/toolbar/ToolbarLayout.js +1 -1
  143. 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
  144. package/dist/owp-app.css +1 -1
  145. package/dist/store/atoms/navbarAtoms.js.map +1 -1
  146. package/dist/store/atoms/owpSettingsAtoms.js.map +1 -1
  147. package/dist/store/atoms/owpStore.js.map +1 -1
  148. package/dist/types/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts +2 -2
  149. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +3 -2
  150. package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +28 -2
  151. package/dist/types/components/OwpCommonCode/OwpCommonCodeRadioGroup.d.ts +14 -2
  152. package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +20 -2
  153. package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +18 -4
  154. package/dist/types/components/OwpDialog/OwpDialog.d.ts +19 -10
  155. package/dist/types/components/OwpDialogsProvider/OwpDialogsContext.d.ts +1 -0
  156. package/dist/types/components/OwpErrorStatusPage/OwpErrorStatusPage.d.ts +8 -0
  157. package/dist/types/components/OwpExportExcelButton/OwpExportExcelButton.d.ts +24 -6
  158. package/dist/types/components/OwpFieldHelperText/OwpFieldHelperText.d.ts +5 -0
  159. package/dist/types/components/OwpFilePickerButton/OwpFilePickerButton.d.ts +13 -6
  160. package/dist/types/components/OwpHidden/OwpHidden.d.ts +12 -0
  161. package/dist/types/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.d.ts +2 -1
  162. package/dist/types/components/OwpLayout/OwpLayout.d.ts +10 -4
  163. package/dist/types/components/OwpLoading/OwpLoading.d.ts +7 -1
  164. package/dist/types/components/OwpMoreActionsButton/OwpMoreActionsButton.d.ts +34 -7
  165. package/dist/types/components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts +10 -5
  166. package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +4 -4
  167. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +19 -2
  168. package/dist/types/components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts +8 -0
  169. package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -4
  170. package/dist/types/components/OwpPageCarded/internal/OwpPageCardedHeader.d.ts +3 -3
  171. package/dist/types/components/OwpPageCarded/internal/OwpPageCardedSidebar.d.ts +1 -1
  172. package/dist/types/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.d.ts +1 -1
  173. package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +7 -7
  174. package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +7 -3
  175. package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +1 -1
  176. package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +10 -6
  177. package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +18 -11
  178. package/dist/types/components/OwpPicker/OwpDateRangePicker.d.ts +15 -10
  179. package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +17 -12
  180. package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +17 -12
  181. package/dist/types/components/OwpPicker/constants/index.d.ts +15 -0
  182. package/dist/types/components/OwpPicker/hooks/useOwpPickerPopperTransition.d.ts +5 -1
  183. package/dist/types/components/OwpPicker/internal/CalendarContainer.d.ts +3 -3
  184. package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +11 -11
  185. package/dist/types/components/OwpPicker/internal/OwpDatePickerCalendarHeader.d.ts +1 -0
  186. package/dist/types/components/OwpPicker/utils/registerOwpDatePickerLocales.d.ts +4 -0
  187. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +2 -2
  188. package/dist/types/components/OwpQuerySelector/types/types.d.ts +31 -0
  189. package/dist/types/components/OwpRequiredHelperText/OwpRequiredHelperText.d.ts +10 -6
  190. package/dist/types/components/OwpScrollbars/OwpScrollbars.d.ts +2 -2
  191. package/dist/types/components/OwpSearchFilter/OwpSearchFilter.d.ts +7 -7
  192. package/dist/types/components/OwpSection/OwpSection.d.ts +13 -13
  193. package/dist/types/components/OwpSelectorBase/OwpSelectorAutocomplete.d.ts +2 -2
  194. package/dist/types/components/OwpSelectorBase/OwpSelectorBase.d.ts +2 -2
  195. package/dist/types/components/OwpSelectorBase/OwpSelectorSelect.d.ts +2 -2
  196. package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +2 -2
  197. package/dist/types/components/OwpSelectorBase/selectorBaseStyles.d.ts +2 -0
  198. package/dist/types/components/OwpSelectorBase/types/types.d.ts +54 -1
  199. package/dist/types/components/OwpSelectorBase/utils/querySelectorUtils.d.ts +2 -2
  200. package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +1 -0
  201. package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +10 -5
  202. package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +1 -1
  203. package/dist/types/components/OwpTable/OwpDataTable.d.ts +11 -11
  204. package/dist/types/components/OwpTable/OwpFieldTable.d.ts +13 -13
  205. package/dist/types/components/OwpTable/OwpTable.d.ts +7 -7
  206. package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +15 -2
  207. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +8 -0
  208. package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +4 -1
  209. package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -3
  210. package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -3
  211. package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +7 -4
  212. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +91 -15
  213. package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +10 -5
  214. package/dist/types/components/OwpTreeGrid/TreeGrid.d.ts +11 -7
  215. package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.d.ts +6 -2
  216. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridAddedRowBoxOverlay.d.ts +6 -0
  217. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.d.ts +8 -1
  218. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridOverlayFrame.d.ts +7 -0
  219. package/dist/types/components/OwpTreeGrid/internal/treeGridLayout.d.ts +12 -0
  220. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +38 -3
  221. package/dist/types/components/OwpTreeGrid/internal/treeGridSelection.d.ts +10 -1
  222. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +15 -1
  223. package/dist/types/components/OwpTreeGrid/internal/utils/perf.d.ts +4 -3
  224. package/dist/types/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.d.ts +7 -3
  225. package/dist/types/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.d.ts +7 -3
  226. package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +7 -6
  227. package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +8 -8
  228. package/dist/types/configs/defaultConfig.d.ts +13 -7
  229. package/dist/types/configs/layoutConfig.d.ts +1 -0
  230. package/dist/types/constants/excel.d.ts +18 -0
  231. package/dist/types/constants/gridTheme.d.ts +10 -1
  232. package/dist/types/constants/language.d.ts +3 -0
  233. package/dist/types/constants/localStorageKeys.d.ts +7 -1
  234. package/dist/types/constants/storageKeys.d.ts +1 -1
  235. package/dist/types/constants/table.d.ts +3 -0
  236. package/dist/types/constants/tableTheme.d.ts +6 -2
  237. package/dist/types/constants/treeGrid.d.ts +19 -3
  238. package/dist/types/contexts/OwpAppContext.d.ts +164 -0
  239. package/dist/types/contexts/OwpAppProvider.d.ts +4 -81
  240. package/dist/types/contexts/OwpCoreProvider.d.ts +11 -7
  241. package/dist/types/contexts/OwpStoreProvider.d.ts +8 -4
  242. package/dist/types/contexts/OwpUiProvider.d.ts +9 -4
  243. package/dist/types/contexts/index.d.ts +1 -0
  244. package/dist/types/dayjs.d.ts +2 -2
  245. package/dist/types/features/themePreview/components/ThemePreviewCanvas.d.ts +4 -0
  246. package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +7 -0
  247. package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -0
  248. package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +4 -0
  249. package/dist/types/features/themePreview/components/themePreviewCanvas.icons.d.ts +1 -0
  250. package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +81 -0
  251. package/dist/types/features/themePreview/configs/grid.d.ts +3 -0
  252. package/dist/types/features/themePreview/configs/presets.d.ts +12 -0
  253. package/dist/types/features/themePreview/configs/previewStorage.d.ts +44 -0
  254. package/dist/types/features/themePreview/configs/settings.d.ts +3 -0
  255. package/dist/types/features/themePreview/configs/snackbar.d.ts +23 -0
  256. package/dist/types/features/themePreview/configs/surface.d.ts +3 -0
  257. package/dist/types/features/themePreview/configs/table.d.ts +24 -0
  258. package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +4 -0
  259. package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +4 -0
  260. package/dist/types/features/themePreview/types/themePreview.d.ts +59 -0
  261. package/dist/types/features/themePreview/utils/color.d.ts +25 -0
  262. package/dist/types/features/themePreview/utils/themePreviewDefinitions.d.ts +6 -0
  263. package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +19 -0
  264. package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +84 -0
  265. package/dist/types/hooks/internal/useAccessTokenGuard.d.ts +7 -3
  266. package/dist/types/hooks/internal/useCurrentLanguage.d.ts +4 -3
  267. package/dist/types/hooks/internal/useHeaderWrapState.d.ts +1 -1
  268. package/dist/types/hooks/internal/useInitCommonCodes.d.ts +1 -1
  269. package/dist/types/hooks/internal/useNavbar.d.ts +2 -2
  270. package/dist/types/hooks/internal/useShortcuts.d.ts +2 -2
  271. package/dist/types/hooks/useCommonCodeList.d.ts +12 -4
  272. package/dist/types/hooks/useConfirm.d.ts +5 -1
  273. package/dist/types/hooks/useCurrentUser.d.ts +5 -2
  274. package/dist/types/hooks/useCurrentUserId.d.ts +2 -2
  275. package/dist/types/hooks/useCurrentUserSeq.d.ts +11 -4
  276. package/dist/types/hooks/useFormDataUploadMutation.d.ts +18 -3
  277. package/dist/types/hooks/useInitApp.d.ts +7 -3
  278. package/dist/types/hooks/useLogoSrc.d.ts +2 -2
  279. package/dist/types/hooks/useNavigation.d.ts +2 -2
  280. package/dist/types/hooks/useOwpSettings.d.ts +13 -13
  281. package/dist/types/hooks/useOwpTranslation.d.ts +1 -1
  282. package/dist/types/hooks/usePageLockLoading.d.ts +2 -2
  283. package/dist/types/hooks/useStorage.d.ts +10 -4
  284. package/dist/types/hooks/useTreeGridCommonCodeEnums.d.ts +4 -4
  285. package/dist/types/hooks/useTreeGridEnums.d.ts +6 -6
  286. package/dist/types/hooks/useTreeGridExcelExport.d.ts +4 -1
  287. package/dist/types/layout/Layout.d.ts +1 -1
  288. package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +5 -4
  289. package/dist/types/layout/components/navigation/NavItem.d.ts +9 -3
  290. package/dist/types/layout/components/navigation/NavigationMenu.d.ts +13 -8
  291. package/dist/types/store/atoms/navbarAtoms.d.ts +5 -1
  292. package/dist/types/store/atoms/owpSettingsAtoms.d.ts +60 -8
  293. package/dist/types/store/atoms/owpStore.d.ts +9 -2
  294. package/dist/types/types/OwpDialogTypes.d.ts +75 -0
  295. package/dist/types/types/OwpGridThemeTypes.d.ts +59 -0
  296. package/dist/types/types/OwpNavigationTypes.d.ts +29 -0
  297. package/dist/types/types/OwpRouteTypes.d.ts +10 -3
  298. package/dist/types/types/OwpSettingsTypes.d.ts +30 -0
  299. package/dist/types/types/OwpTableThemeTypes.d.ts +30 -0
  300. package/dist/types/types/ThemeFormConfigTypes.d.ts +5 -6
  301. package/dist/types/utils/commonCodeUtils.d.ts +18 -0
  302. package/dist/types/utils/createFormDataBody.d.ts +18 -0
  303. package/dist/types/utils/excelUtil.d.ts +5 -5
  304. package/dist/types/utils/getStartPagePath.d.ts +10 -0
  305. package/dist/types/utils/internal/exceljsBrowser.d.ts +1 -1
  306. package/dist/types/utils/internal/jszipBrowser.d.ts +1 -1
  307. package/dist/types/utils/internal/treeGridBodyRowsEvent.d.ts +4 -1
  308. package/dist/types/utils/isEnterKeyEvent.d.ts +2 -2
  309. package/dist/types/utils/preloadOnIdle.d.ts +1 -1
  310. package/dist/types/utils/rebuildValue.d.ts +8 -1
  311. package/dist/types/utils/treeGridExportExcelUtil.d.ts +6 -0
  312. package/dist/types/utils/treeGridUtil.d.ts +38 -1
  313. package/dist/types/utils/zipUtil.d.ts +14 -2
  314. package/dist/utils/commonCodeUtils.js.map +1 -1
  315. package/dist/utils/createFormDataBody.js.map +1 -1
  316. package/dist/utils/getStartPagePath.js.map +1 -1
  317. package/dist/utils/internal/treeGridBodyRowsEvent.js.map +1 -1
  318. package/dist/utils/rebuildValue.js.map +1 -1
  319. package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
  320. package/dist/utils/treeGridUtil.js.map +1 -1
  321. package/dist/utils/zipUtil.js.map +1 -1
  322. package/package.json +1 -1
@@ -1,19 +1,27 @@
1
1
  import type { CommonCode } from '@/utils/commonCodeUtils';
2
2
  type CommonCodeQueryKey = 'IPX_COMMONCODE.CODEID' | 'IPX_COMMONCODE.GROUPID' | 'IPX_COMMONCODE.DESCRIPTION' | 'IPX_COMMONCODE.FLAG';
3
+ /**
4
+ * 공통코드 필터 query 타입
5
+ */
3
6
  export type CommonCodeQuery = Partial<Pick<CommonCode, CommonCodeQueryKey>>;
7
+ /**
8
+ * 공통코드 목록 필터링 옵션
9
+ */
4
10
  export interface UseFilteredCommonCodeListProps {
11
+ /** CODEID/GROUPID/DESCRIPTION/FLAG 기준 필터 조건 */
5
12
  query?: CommonCodeQuery;
13
+ /** false면 조회 결과를 빈 배열로 고정 */
6
14
  enabled?: boolean;
7
15
  }
8
16
  /**
9
- * 공통코드 목록 조회
17
+ * storage-backed 공통코드 group map 조회 Hook
10
18
  */
11
19
  export declare const useGetCommonCodeList: () => {
12
20
  [codeId: string]: CommonCode[];
13
21
  };
14
22
  /**
15
- * 조건 기반 공통코드 목록 조회
16
- * @param props 조회 옵션
23
+ * 전역 공통코드 목록에서 query 조건과 일치하는 row 목록을 반환하는 Hook
24
+ * @param props 필터 조건과 활성화 여부
17
25
  * @param props.query 공통코드 필터 조건
18
26
  * @param props.enabled 조회 활성화 여부
19
27
  */
@@ -22,7 +30,7 @@ export declare const useFilteredCommonCodeList: ({ query, enabled, }?: UseFilter
22
30
  isLoading: boolean;
23
31
  };
24
32
  /**
25
- * 공통코드 목록 설정
33
+ * storage-backed 공통코드 group map setter Hook
26
34
  */
27
35
  export declare const useSetCommonCodeList: () => (args_0: typeof import("jotai/utils").RESET | {
28
36
  [codeId: string]: CommonCode[];
@@ -1,13 +1,17 @@
1
1
  import type { OwpAlertDialogPayload } from '@/components/OwpDialog';
2
2
  import type { ButtonProps } from '@mui/material';
3
+ /**
4
+ * confirm 계열 dialog 호출 옵션
5
+ */
3
6
  export interface ConfirmProps extends Omit<OwpAlertDialogPayload, 'cancelButtonProps'> {
7
+ /** dialog close 후 결과를 받을 optional callback */
4
8
  onClose?: (result: boolean) => Promise<void>;
5
9
  }
6
10
  interface ConfirmBaseProps extends ConfirmProps {
7
11
  cancelButtonProps?: ButtonProps;
8
12
  }
9
13
  /**
10
- * 확인 대화상자
14
+ * alert dialog 기반 confirm helper 묶음
11
15
  */
12
16
  export declare const useConfirm: () => {
13
17
  confirm: (props: ConfirmBaseProps) => Promise<boolean>;
@@ -1,11 +1,14 @@
1
+ /**
2
+ * storage에 보관되는 현재 사용자 정보
3
+ */
1
4
  export interface CurrentUser {
2
5
  [key: string]: any;
3
6
  }
4
7
  /**
5
- * 현재 사용자 정보 조회
8
+ * storage-backed 현재 사용자 정보 조회 Hook
6
9
  */
7
10
  export declare const useGetCurrentUser: () => CurrentUser;
8
11
  /**
9
- * 현재 사용자 정보 설정
12
+ * storage-backed 현재 사용자 정보 setter Hook
10
13
  */
11
14
  export declare const useSetCurrentUser: () => (args_0: typeof import("jotai/utils").RESET | CurrentUser | ((prev: CurrentUser) => typeof import("jotai/utils").RESET | CurrentUser)) => void;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * 현재 사용자 ID 조회
2
+ * storage-backed 현재 사용자 ID 조회 Hook
3
3
  */
4
4
  export declare const useGetCurrentUserId: () => string;
5
5
  /**
6
- * 현재 사용자 ID 설정
6
+ * storage-backed 현재 사용자 ID setter Hook
7
7
  */
8
8
  export declare const useSetCurrentUserId: () => (args_0: string | typeof import("jotai/utils").RESET | ((prev: string) => string | typeof import("jotai/utils").RESET)) => void;
@@ -1,17 +1,24 @@
1
+ /**
2
+ * 현재 사용자 USERSEQ 값 타입
3
+ */
1
4
  export type CurrentUserSeq = string | number;
5
+ /**
6
+ * USERSEQ 필수 검증 옵션
7
+ */
2
8
  export interface UseEnsureCurrentUserSeqOptions {
9
+ /** USERSEQ가 없을 때 표시할 snackbar translation key */
3
10
  snackbarMessageKey?: string;
4
11
  }
5
12
  /**
6
- * 현재 사용자 USERSEQ 조회
13
+ * storage-backed 현재 사용자 USERSEQ 조회 Hook
7
14
  */
8
15
  export declare const useGetCurrentUserSeq: () => CurrentUserSeq;
9
16
  /**
10
- * 현재 사용자 USERSEQ 설정
17
+ * storage-backed 현재 사용자 USERSEQ setter Hook
11
18
  */
12
19
  export declare const useSetCurrentUserSeq: () => (args_0: typeof import("jotai/utils").RESET | CurrentUserSeq | ((prev: CurrentUserSeq) => typeof import("jotai/utils").RESET | CurrentUserSeq)) => void;
13
20
  /**
14
- * 현재 사용자 USERSEQ 필수 검증
15
- * @param snackbarMessageKey 사용자 정보 부재 안내 메시지
21
+ * USERSEQ가 없으면 snackbar를 표시하고 undefined를 반환하는 guard 함수 생성 Hook
22
+ * @param options 사용자 정보 부재 안내 메시지 key
16
23
  */
17
24
  export declare const useEnsureCurrentUserSeq: ({ snackbarMessageKey, }?: UseEnsureCurrentUserSeqOptions) => () => CurrentUserSeq;
@@ -1,30 +1,45 @@
1
1
  import { createFormDataBody, type FormDataUploadBody, type FormDataUploadParams, type TAdditionalFields } from '@/utils/createFormDataBody';
2
2
  export type { FormDataFieldValue, FormDataUploadBody, FormDataUploadParams, TAdditionalFields, } from '@/utils/createFormDataBody';
3
3
  type FormDataUploadMutationLike = {
4
- mutate: (...args: any[]) => void;
4
+ mutate: (...args: unknown[]) => void;
5
5
  };
6
6
  type FormDataUploadMutationMutateParameters<TMutation extends FormDataUploadMutationLike> = Parameters<TMutation['mutate']>;
7
7
  type FormDataUploadMutationVariables<TMutation extends FormDataUploadMutationLike> = FormDataUploadMutationMutateParameters<TMutation>[0];
8
8
  type FormDataUploadMutateOptions<TMutation extends FormDataUploadMutationLike> = FormDataUploadMutationMutateParameters<TMutation>[1];
9
+ /**
10
+ * FormData upload mutation 변수 생성기에 전달되는 인자
11
+ */
9
12
  export interface FormDataUploadMutationVariablesArgs<TFields extends TAdditionalFields = TAdditionalFields> {
13
+ /** 정규화된 upload body */
10
14
  body: FormDataUploadBody<TFields>;
15
+ /** 기본 serializer로 생성된 FormData */
11
16
  formData: FormData;
17
+ /** body를 FormData로 변환하는 기본 serializer */
12
18
  bodySerializer: typeof createFormDataBody;
13
19
  }
14
20
  interface UseFormDataUploadMutationBaseProps<TMutation extends FormDataUploadMutationLike> {
15
21
  mutation: TMutation;
16
22
  fileNameFieldName?: string;
17
23
  }
24
+ /**
25
+ * FormData upload mutation hook props
26
+ */
18
27
  export type UseFormDataUploadMutationProps<TMutation extends FormDataUploadMutationLike, TFields extends TAdditionalFields = TAdditionalFields> = FormDataUploadMutationVariables<TMutation> extends FormData ? UseFormDataUploadMutationBaseProps<TMutation> & {
28
+ /** mutation variables가 FormData이면 생략 가능한 variables 생성기 */
19
29
  createVariables?: (args: FormDataUploadMutationVariablesArgs<TFields>) => FormDataUploadMutationVariables<TMutation>;
20
30
  } : UseFormDataUploadMutationBaseProps<TMutation> & {
31
+ /** mutation variables가 FormData가 아닐 때 필수 variables 생성기 */
21
32
  createVariables: (args: FormDataUploadMutationVariablesArgs<TFields>) => FormDataUploadMutationVariables<TMutation>;
22
33
  };
34
+ /**
35
+ * 원본 mutation 객체에 `uploadFile` helper를 더한 반환 타입
36
+ */
23
37
  export type UseFormDataUploadMutationResult<TMutation extends FormDataUploadMutationLike, TFields extends TAdditionalFields = TAdditionalFields> = TMutation & {
38
+ /** file/additionalFields 입력을 mutation variables로 변환해 mutate 호출 */
24
39
  uploadFile: (params: FormDataUploadParams<TFields>, options?: FormDataUploadMutateOptions<TMutation>) => void;
25
40
  };
26
41
  /**
27
- * FormData 업로드 mutation 어댑터
28
- * @param props mutation 객체 변수 생성기
42
+ * file upload 입력을 FormData 기반 mutation 호출로 변환하는 adapter Hook
43
+ * @param props mutation 객체, variables 생성기, file name field 설정
29
44
  */
30
45
  export declare const useFormDataUploadMutation: <TMutation extends FormDataUploadMutationLike, TFields extends TAdditionalFields = TAdditionalFields>(props: UseFormDataUploadMutationProps<TMutation, TFields>) => UseFormDataUploadMutationResult<TMutation, TFields>;
@@ -1,10 +1,14 @@
1
+ /**
2
+ * app bootstrap 초기화 옵션
3
+ */
1
4
  export interface UseInitAppOptions {
5
+ /** 초기 로고 이미지 경로 */
2
6
  logoSrc: string;
7
+ /** document title로 설정할 제목 */
3
8
  title?: string;
4
9
  }
5
10
  /**
6
- * 기본 상태 초기화
7
- * @param logoSrc 초기 로고 경로
8
- * @param title 문서 제목
11
+ * OWP app 진입 logo, title, navigation, 공통코드, page loading 상태를 초기화하는 Hook
12
+ * @param options 초기 로고 경로와 document title
9
13
  */
10
14
  export declare const useInitApp: ({ logoSrc, title }: UseInitAppOptions) => void;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * 현재 로고 경로 조회
2
+ * storage-backed 현재 로고 경로 조회 Hook
3
3
  */
4
4
  export declare const useGetLogoSrc: () => string;
5
5
  /**
6
- * 현재 로고 경로 설정
6
+ * storage-backed 현재 로고 경로 setter Hook
7
7
  */
8
8
  export declare const useSetLogoSrc: () => (args_0: string | typeof import("jotai/utils").RESET | ((prev: string) => string | typeof import("jotai/utils").RESET)) => void;
@@ -1,9 +1,9 @@
1
1
  import type { OwpNavItemType } from '@/types/OwpNavigationTypes';
2
2
  /**
3
- * 내비게이션 목록 조회
3
+ * storage-backed navigation 목록 조회 Hook
4
4
  */
5
5
  export declare const useGetNavigationList: () => OwpNavItemType[];
6
6
  /**
7
- * 내비게이션 목록 설정
7
+ * storage-backed navigation 목록 setter Hook
8
8
  */
9
9
  export declare const useSetNavigationList: () => (args_0: OwpNavItemType[] | typeof import("jotai/utils").RESET | ((prev: OwpNavItemType[]) => OwpNavItemType[] | typeof import("jotai/utils").RESET)) => void;
@@ -2,19 +2,19 @@ import type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';
2
2
  import type { OwpSettingsState } from '@/store/atoms/internal/types';
3
3
  import type { PartialDeep } from 'type-fest';
4
4
  /**
5
- * OWP settings 원본 상태 조회
5
+ * defaults/current를 포함한 OWP settings 전체 atom 조회 Hook
6
6
  */
7
7
  export declare const useGetOwpSettings: () => OwpSettingsState;
8
8
  /**
9
- * 현재 settings 조회
9
+ * 현재 적용 중인 OWP settings 조회 Hook
10
10
  */
11
11
  export declare const useGetCurrentSettings: () => OwpSettingsConfigType;
12
12
  /**
13
- * 기본 settings 조회
13
+ * default 기준 OWP settings 조회 Hook
14
14
  */
15
15
  export declare const useGetDefaultSettings: () => OwpSettingsConfigType;
16
16
  /**
17
- * 현재 layout config 조회
17
+ * 현재 settings의 layout config 조회 Hook
18
18
  */
19
19
  export declare const useGetCurrentLayoutConfig: () => {
20
20
  mode?: string;
@@ -36,38 +36,38 @@ export declare const useGetCurrentLayoutConfig: () => {
36
36
  };
37
37
  };
38
38
  /**
39
- * Main theme 조회
39
+ * 현재 settings 기준 main MUI theme 조회 Hook
40
40
  */
41
41
  export declare const useGetMainTheme: () => import("@mui/material").Theme;
42
42
  /**
43
- * Navbar theme 조회
43
+ * 현재 settings 기준 navbar MUI theme 조회 Hook
44
44
  */
45
45
  export declare const useGetNavbarTheme: () => import("@mui/material").Theme;
46
46
  /**
47
- * Toolbar theme 조회
47
+ * 현재 settings 기준 toolbar MUI theme 조회 Hook
48
48
  */
49
49
  export declare const useGetToolbarTheme: () => import("@mui/material").Theme;
50
50
  /**
51
- * Footer theme 조회
51
+ * 현재 settings 기준 footer MUI theme 조회 Hook
52
52
  */
53
53
  export declare const useGetFooterTheme: () => import("@mui/material").Theme;
54
54
  /**
55
- * Custom scrollbar 사용 여부 조회
55
+ * 현재 settings의 custom scrollbar 사용 여부 조회 Hook
56
56
  */
57
57
  export declare const useGetCustomScrollbarsEnabled: () => boolean;
58
58
  /**
59
- * 현재 settings 설정
59
+ * 현재 OWP settings 교체하는 setter Hook
60
60
  */
61
61
  export declare const useSetSettings: () => (nextSettings: OwpSettingsConfigType) => void;
62
62
  /**
63
- * 기본 settings 설정
63
+ * default settings partial deep merge로 변경하는 setter Hook
64
64
  */
65
65
  export declare const useSetDefaultSettings: () => (nextSettings: PartialDeep<OwpSettingsConfigType>) => OwpSettingsState;
66
66
  /**
67
- * Settings 초기화
67
+ * 현재 settings를 defaults 기준으로 되돌리는 setter Hook
68
68
  */
69
69
  export declare const useResetSettings: () => () => void;
70
70
  /**
71
- * Theme 설정 변경
71
+ * main/navbar/toolbar/footer theme set을 한 번에 변경하는 setter Hook
72
72
  */
73
73
  export declare const useChangeOwpTheme: () => (theme: import("@/types/OwpSettingsTypes").OwpThemesType) => OwpSettingsState;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * OWP 번역
2
+ * OWP Translation namespace와 key 기반 defaultValue 보강을 제공하는 Hook
3
3
  */
4
4
  export declare const useOwpTranslation: () => {
5
5
  0: import("i18next").TFunction<"owp", undefined>;
@@ -1,10 +1,10 @@
1
1
  import type { OwpPageLockLoadingProps } from '@/components/OwpPageLockLoading';
2
2
  /**
3
- * 페이지 잠금 로딩 상태 조회
3
+ * storage-backed page lock loading 상태 조회 Hook
4
4
  */
5
5
  export declare const useGetPageLockLoading: () => OwpPageLockLoadingProps;
6
6
  /**
7
- * 페이지 잠금 로딩 상태 설정
7
+ * page lock loading 상태 setter를 반환하는 Hook
8
8
  */
9
9
  export declare const usePageLockLoading: () => {
10
10
  setLoading: (args_0: typeof import("jotai/utils").RESET | OwpPageLockLoadingProps | ((prev: OwpPageLockLoadingProps) => typeof import("jotai/utils").RESET | OwpPageLockLoadingProps)) => void;
@@ -1,5 +1,9 @@
1
- export type StorageEnv = {
2
- [key: string]: any;
1
+ /**
2
+ * OWP app 환경값 storage payload
3
+ */
4
+ export type StorageEnv = Record<string, unknown> & {
5
+ /** API base URL */
6
+ apiBaseUrl?: string;
3
7
  };
4
8
  /**
5
9
  * 앱 환경값 저장
@@ -7,11 +11,13 @@ export type StorageEnv = {
7
11
  */
8
12
  export declare const setEnv: (env: StorageEnv) => void;
9
13
  /**
10
- * 환경값 조회
14
+ * storage에 저장된 OWP app 환경값 조회
15
+ * @returns 객체가 아니거나 파싱 실패 시 빈 객체
11
16
  */
12
17
  export declare const getEnv: () => StorageEnv;
13
18
  /**
14
- * 스토리지 유틸
19
+ * OWP storage helper Hook
20
+ * @returns 보존 대상 key를 제외하고 storage를 초기화하는 함수와 env getter/setter
15
21
  */
16
22
  export declare const useStorage: () => {
17
23
  resetStorage: () => void;
@@ -1,14 +1,14 @@
1
1
  /**
2
- * TreeGrid 공통코드 Enum 옵션 정보
3
- * @param field Enum을 반영할 컬럼명
4
- * @param codeId 공통코드 그룹 ID
2
+ * 공통코드를 TreeGrid column Enum option으로 반영하기 위한 설정
5
3
  */
6
4
  export interface TreeGridCommonCodeEnumConfig {
5
+ /** Enum을 반영할 TreeGrid column key */
7
6
  field: string;
7
+ /** 공통코드 group id */
8
8
  codeId: string;
9
9
  }
10
10
  /**
11
- * TreeGrid 공통코드 Enum 옵션 일괄 반영
11
+ * 전역 공통코드 cache를 TreeGrid column Enum option으로 일괄 반영하는 Hook
12
12
  * @param id TreeGrid 인스턴스 ID
13
13
  * @param configs Enum 반영 대상 목록
14
14
  * @param isGridReady TreeGrid 준비 여부
@@ -1,19 +1,19 @@
1
1
  type TreeGridEnumOption = Record<string, unknown>;
2
2
  /**
3
- * TreeGrid 임의 Enum 옵션 정보
4
- * @param field Enum을 반영할 컬럼명
5
- * @param options Enum 옵션 목록
6
- * @param valueKey Enum 값으로 사용할 필드명
7
- * @param labelKeys Enum 라벨로 사용할 필드 우선순위 목록
3
+ * TreeGrid column Enum option 반영 설정
8
4
  */
9
5
  export interface TreeGridEnumConfig<T extends TreeGridEnumOption> {
6
+ /** Enum을 반영할 TreeGrid column key */
10
7
  field: string;
8
+ /** Enum option 원본 목록 */
11
9
  options?: T[];
10
+ /** Enum value로 사용할 option field key */
12
11
  valueKey: keyof T & string;
12
+ /** Enum label 후보 field key 우선순위 */
13
13
  labelKeys: Array<keyof T & string>;
14
14
  }
15
15
  /**
16
- * TreeGrid 임의 Enum 옵션 일괄 반영
16
+ * TreeGrid instance가 준비되면 지정 column에 Enum option을 일괄 반영하는 Hook
17
17
  * @param id TreeGrid 인스턴스 ID
18
18
  * @param configs Enum 반영 대상 목록
19
19
  * @param isGridReady TreeGrid 준비 여부
@@ -1,7 +1,10 @@
1
1
  import type { ExportTreeGridExcelOptions } from '@/utils/treeGridExportExcelUtil';
2
+ /**
3
+ * TreeGrid Excel export 옵션 또는 다운로드 파일명
4
+ */
2
5
  export type UseTreeGridExcelExportOptions = Omit<ExportTreeGridExcelOptions, 't'> | string;
3
6
  /**
4
- * TreeGrid 엑셀 내보내기
7
+ * TreeGrid instance id로 Excel export 함수를 지연 로드해 실행하는 Hook
5
8
  * @param gridId TreeGrid 인스턴스 ID
6
9
  */
7
10
  export declare const useTreeGridExcelExport: (gridId: string) => {
@@ -1,5 +1,5 @@
1
1
  import { LayoutConfigDefaultsType } from '@/configs/layoutConfig';
2
- import { ReactNode } from 'react';
2
+ import { type ReactNode } from 'react';
3
3
  type LayoutProps = {
4
4
  layoutConfig?: LayoutConfigDefaultsType;
5
5
  children?: ReactNode;
@@ -1,11 +1,12 @@
1
1
  import { type IconButtonProps } from '@mui/material/IconButton';
2
- import { ReactNode } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ /** Navbar 접힘/모바일 열림을 토글하는 icon button 속성 */
3
4
  export type NavbarToggleButtonProps = IconButtonProps & {
5
+ /** 배경 surface에 맞춘 버튼 tone */
4
6
  surfaceTone?: 'inherit' | 'light';
7
+ /** hover 시 표시할 tooltip title */
5
8
  tooltipTitle?: ReactNode;
6
9
  };
7
- /**
8
- * The navbar toggle button.
9
- */
10
+ /** Navbar 접힘 상태 또는 모바일 drawer 열림 상태를 전환하는 버튼 */
10
11
  declare function NavbarToggleButton(props: NavbarToggleButtonProps): import("react/jsx-runtime").JSX.Element;
11
12
  export default NavbarToggleButton;
@@ -1,15 +1,21 @@
1
1
  import type { OwpNavItemType as NavItemType } from '@/types/OwpNavigationTypes';
2
+ /** Navigation item renderer에 전달되는 공통 속성 */
2
3
  export type NavItemComponentProps = {
4
+ /** render할 navigation item type */
3
5
  type: string;
6
+ /** navigation item 원본 설정 */
4
7
  item: NavItemType;
8
+ /** vertical item density 축소 여부 */
5
9
  dense?: boolean;
10
+ /** 중첩 collapse depth */
6
11
  nestedLevel?: number;
12
+ /** leaf/collapse item click callback */
7
13
  onItemClick?: (item: NavItemType) => void;
14
+ /** permission rule 적용 여부 */
8
15
  checkPermission?: boolean;
16
+ /** 현재 route 기준으로 펼쳐 둘 collapse ID 집합 */
9
17
  openedCollapseIds?: ReadonlySet<string>;
10
18
  };
11
- /**
12
- * Component to render a nav item by type.
13
- */
19
+ /** type 값에 맞는 vertical navigation item renderer 선택 */
14
20
  declare function NavItem(props: NavItemComponentProps): import("react/jsx-runtime").JSX.Element;
15
21
  export { NavItem };
@@ -1,24 +1,29 @@
1
1
  import type { OwpNavItemType as NavItemType } from '@/types/OwpNavigationTypes';
2
+ /** Vertical navigation menu rendering과 route 기반 collapse open 상태 속성 */
2
3
  export type NavigationMenuProps = {
4
+ /** root className */
3
5
  className?: string;
6
+ /** navigation item density 축소 여부 */
4
7
  dense?: boolean;
8
+ /** 상위 navigation 영역 활성 여부 */
5
9
  active?: boolean;
10
+ /** item click callback */
6
11
  onItemClick?: (item: NavItemType) => void;
12
+ /** render할 navigation tree */
7
13
  navigation?: NavItemType[];
14
+ /** navigation layout 종류 */
8
15
  layout?: 'vertical';
16
+ /** 최상위 level 여부 */
9
17
  firstLevel?: boolean;
18
+ /** 외부에서 지정한 선택 item ID */
10
19
  selectedId?: string;
20
+ /** permission rule 적용 여부 */
11
21
  checkPermission?: boolean;
22
+ /** 외부에서 제어하는 collapse open ID 집합 */
12
23
  openedCollapseIds?: ReadonlySet<string>;
13
24
  };
14
- /**
15
- * NavigationMenu
16
- * Component for displaying a navigation bar which contains nav items
17
- * and acts as parent for providing props to its children components
18
- */
25
+ /** Navigation tree를 vertical layout으로 render하고 현재 route의 collapse를 자동 확장 */
19
26
  declare function NavigationMenu(props: NavigationMenuProps): import("react/jsx-runtime").JSX.Element;
20
- /**
21
- * Memoized navigation menu component.
22
- */
27
+ /** NavigationMenu memoized export */
23
28
  declare const MemoizedNavigationMenu: import("react").MemoExoticComponent<typeof NavigationMenu>;
24
29
  export { MemoizedNavigationMenu as NavigationMenu };
@@ -1,8 +1,12 @@
1
1
  import type { NavbarState } from './internal/types';
2
2
  /**
3
- * Navbar 기본 상태 생성
3
+ * Navbar 상태 초기값 생성
4
+ * @param overrides 기본 상태에 병합할 부분 상태
4
5
  */
5
6
  export declare function createNavbarState(overrides?: Partial<NavbarState>): NavbarState;
7
+ /**
8
+ * Navbar 전체 상태 atom
9
+ */
6
10
  export declare const navbarStateAtom: import("jotai").PrimitiveAtom<NavbarState> & {
7
11
  init: NavbarState;
8
12
  };
@@ -3,7 +3,7 @@ import { type WritableAtom } from 'jotai';
3
3
  import type { PartialDeep } from 'type-fest';
4
4
  import type { OwpSettingsState } from './internal/types';
5
5
  /**
6
- * Light theme text palette
6
+ * Light mode 기본 text palette
7
7
  */
8
8
  export declare const lightPaletteText: {
9
9
  primary: string;
@@ -11,7 +11,7 @@ export declare const lightPaletteText: {
11
11
  disabled: string;
12
12
  };
13
13
  /**
14
- * Dark theme text palette
14
+ * Dark mode 기본 text palette
15
15
  */
16
16
  export declare const darkPaletteText: {
17
17
  primary: string;
@@ -19,15 +19,31 @@ export declare const darkPaletteText: {
19
19
  disabled: string;
20
20
  };
21
21
  /**
22
- * Settings 기본 상태 생성
22
+ * OWP settings atom 상태 초기값 생성
23
+ * @param initialValue initial/default/current 기준 settings
23
24
  */
24
25
  export declare function createSettingsState(initialValue: OwpSettingsConfigType): OwpSettingsState;
26
+ /**
27
+ * OWP settings 전체 상태 atom
28
+ */
25
29
  export declare const owpSettingsStateAtom: import("jotai").PrimitiveAtom<OwpSettingsState> & {
26
30
  init: OwpSettingsState;
27
31
  };
32
+ /**
33
+ * OWP settings 전체 상태 조회 atom
34
+ */
28
35
  export declare const owpSettingsAtom: import("jotai").Atom<OwpSettingsState>;
36
+ /**
37
+ * default settings 조회 atom
38
+ */
29
39
  export declare const defaultSettingsAtom: import("jotai").Atom<OwpSettingsConfigType>;
40
+ /**
41
+ * current settings 조회 atom
42
+ */
30
43
  export declare const currentSettingsAtom: import("jotai").Atom<OwpSettingsConfigType>;
44
+ /**
45
+ * current layout config 조회 atom
46
+ */
31
47
  export declare const currentLayoutConfigAtom: import("jotai").Atom<{
32
48
  mode?: string;
33
49
  containerWidth?: string;
@@ -47,37 +63,73 @@ export declare const currentLayoutConfigAtom: import("jotai").Atom<{
47
63
  style?: string;
48
64
  };
49
65
  }>;
66
+ /**
67
+ * custom scrollbar 사용 여부 조회 atom
68
+ */
50
69
  export declare const customScrollbarsEnabledAtom: import("jotai").Atom<boolean>;
70
+ /**
71
+ * current direction 조회 atom
72
+ */
51
73
  export declare const directionAtom: import("jotai").Atom<"rtl" | "ltr">;
74
+ /**
75
+ * main theme 설정 조회 atom
76
+ */
52
77
  export declare const mainThemeSettingsAtom: import("jotai").Atom<OwpThemeType>;
78
+ /**
79
+ * navbar theme 설정 조회 atom
80
+ */
53
81
  export declare const navbarThemeSettingsAtom: import("jotai").Atom<OwpThemeType>;
82
+ /**
83
+ * toolbar theme 설정 조회 atom
84
+ */
54
85
  export declare const toolbarThemeSettingsAtom: import("jotai").Atom<OwpThemeType>;
86
+ /**
87
+ * footer theme 설정 조회 atom
88
+ */
55
89
  export declare const footerThemeSettingsAtom: import("jotai").Atom<OwpThemeType>;
90
+ /**
91
+ * main MUI theme 생성 atom
92
+ */
56
93
  export declare const mainThemeAtom: import("jotai").Atom<import("@mui/material").Theme>;
94
+ /**
95
+ * main theme를 dark mode로 변환한 MUI theme atom
96
+ */
57
97
  export declare const mainThemeDarkAtom: import("jotai").Atom<import("@mui/material").Theme>;
98
+ /**
99
+ * main theme를 light mode로 변환한 MUI theme atom
100
+ */
58
101
  export declare const mainThemeLightAtom: import("jotai").Atom<import("@mui/material").Theme>;
102
+ /**
103
+ * navbar MUI theme 생성 atom
104
+ */
59
105
  export declare const navbarThemeAtom: import("jotai").Atom<import("@mui/material").Theme>;
106
+ /**
107
+ * toolbar MUI theme 생성 atom
108
+ */
60
109
  export declare const toolbarThemeAtom: import("jotai").Atom<import("@mui/material").Theme>;
110
+ /**
111
+ * footer MUI theme 생성 atom
112
+ */
61
113
  export declare const footerThemeAtom: import("jotai").Atom<import("@mui/material").Theme>;
62
114
  /**
63
- * 현재 settings 적용 atom
115
+ * next settings defaults와 병합해 current settings로 적용하는 atom
64
116
  */
65
117
  export declare const setSettingsAtom: WritableAtom<unknown, [nextSettings: OwpSettingsConfigType], void>;
66
118
  /**
67
- * 기본 settings 변경 atom
119
+ * default/current settings partial deep override로 갱신하는 atom
68
120
  */
69
121
  export declare const setDefaultSettingsAtom: WritableAtom<null, [
70
122
  PartialDeep<OwpSettingsConfigType>
71
123
  ], OwpSettingsState>;
72
124
  /**
73
- * 초기 settings 복원 atom
125
+ * 초기 settings snapshot으로 settings 상태를 복원하는 atom
74
126
  */
75
127
  export declare const setInitialSettingsAtom: WritableAtom<unknown, [], void>;
76
128
  /**
77
- * 현재 defaults 기준 초기화 atom
129
+ * current settings를 현재 defaults 초기화하는 atom
78
130
  */
79
131
  export declare const resetSettingsAtom: WritableAtom<unknown, [], void>;
80
132
  /**
81
- * Theme 설정 변경 atom
133
+ * main/navbar/toolbar/footer theme set을 settings default/current에 반영하는 atom
82
134
  */
83
135
  export declare const changeOwpThemeAtom: WritableAtom<unknown, [theme: OwpThemesType], OwpSettingsState>;
@@ -2,12 +2,19 @@ import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTy
2
2
  import { createStore } from 'jotai/vanilla';
3
3
  import type { PartialDeep } from 'type-fest';
4
4
  import type { OwpStorePreloadedState, OwpStoreState } from './internal/types';
5
+ /**
6
+ * OWP Jotai vanilla store 타입
7
+ */
5
8
  export type OwpStore = ReturnType<typeof createStore>;
6
9
  /**
7
- * OWP 전역 상태 초기값 생성
10
+ * settings/theme config와 preloaded state를 병합해 OWP store state 생성
11
+ * @param settingsConfig app settings override
12
+ * @param themesConfig app theme override
13
+ * @param preloadedState store slice별 초기 상태
8
14
  */
9
15
  export declare function createOwpStoreState(settingsConfig?: PartialDeep<OwpSettingsConfigType>, themesConfig?: PartialDeep<OwpThemesType>, preloadedState?: OwpStorePreloadedState): OwpStoreState;
10
16
  /**
11
- * OWP Jotai store 생성
17
+ * OWP settings/navbar atom이 초기화된 Jotai vanilla store 생성
18
+ * @param initialState store slice 초기 상태
12
19
  */
13
20
  export declare function createOwpStore(initialState: OwpStoreState): OwpStore;