@owp/core 2.2.5 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index11.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/index16.js +5 -2
- package/dist/_virtual/index16.js.map +1 -1
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/OwpDialog/OwpDialog.js +48 -46
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js +24 -24
- package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js.map +1 -1
- package/dist/components/OwpLayout/OwpLayout.js +29 -30
- package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTable.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpMrtTable/{OwpMrtTableNoDataOverlay.js → internal/OwpMrtTableNoDataOverlay.js} +1 -1
- package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +1 -0
- package/dist/components/OwpMrtTable/{OwpMrtTableTopToolbar.js → internal/OwpMrtTableTopToolbar.js} +3 -3
- package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js.map +1 -0
- package/dist/components/OwpPageCarded/OwpPageCarded.js +81 -77
- package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
- package/dist/components/OwpPageCarded/{OwpPageCardedHeader.js → internal/OwpPageCardedHeader.js} +2 -2
- package/dist/components/OwpPageCarded/internal/OwpPageCardedHeader.js.map +1 -0
- package/dist/components/OwpPageCarded/{OwpPageCardedSidebar.js → internal/OwpPageCardedSidebar.js} +3 -3
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js.map +1 -0
- package/dist/components/OwpPageCarded/{OwpPageCardedSidebarContent.js → internal/OwpPageCardedSidebarContent.js} +2 -2
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js.map +1 -0
- package/dist/components/OwpPicker/OwpDatePicker.js +90 -83
- package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpDateRangePicker.js +57 -50
- package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpTimePicker.js +65 -61
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpWeekDatePicker.js +58 -52
- package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpYearRangePicker.js +68 -62
- package/dist/components/OwpPicker/OwpYearRangePicker.js.map +1 -1
- package/dist/components/OwpPicker/{constants.js → constants/index.js} +1 -1
- package/dist/components/OwpPicker/constants/index.js.map +1 -0
- package/dist/components/OwpPicker/{AnimatedCalendarContainer.js → internal/AnimatedCalendarContainer.js} +2 -2
- package/dist/components/OwpPicker/internal/AnimatedCalendarContainer.js.map +1 -0
- package/dist/components/OwpPicker/{CalendarContainer.js → internal/CalendarContainer.js} +2 -2
- package/dist/components/OwpPicker/internal/CalendarContainer.js.map +1 -0
- package/dist/components/OwpPicker/{DatePickerInput.js → internal/DatePickerInput.js} +4 -4
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -0
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js +205 -171
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
- package/dist/components/OwpScrollbars/OwpScrollbars.js +16 -17
- package/dist/components/OwpScrollbars/OwpScrollbars.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +112 -103
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js +86 -39
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
- package/dist/components/OwpSuspense/OwpSuspense.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +50 -51
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +163 -308
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js +1 -1
- package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
- package/dist/components/OwpTreeGrid/{OwpTreeGridLoadingOverlay.js → internal/OwpTreeGridLoadingOverlay.js} +2 -2
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridLoadingOverlay.js.map +1 -0
- package/dist/components/OwpTreeGrid/{OwpTreeGridNoDataOverlay.js → internal/OwpTreeGridNoDataOverlay.js} +2 -2
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.js.map +1 -0
- package/dist/components/OwpTreeGrid/{utils/index.js → internal/treeGridLayout.js} +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridLayout.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +182 -0
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -0
- package/dist/components/OwpTreeGrid/utils/perf.js.map +1 -0
- package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js +1 -1
- package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js.map +1 -1
- package/dist/components/OwpZoomImageSlider/{ZoomImage.js → internal/ZoomImage.js} +1 -1
- package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js.map +1 -0
- package/dist/contexts/OwpCoreProvider.js +22 -36
- package/dist/contexts/OwpCoreProvider.js.map +1 -1
- package/dist/contexts/OwpStoreProvider.js +9 -9
- package/dist/contexts/OwpStoreProvider.js.map +1 -1
- package/dist/hooks/useNavbar.js +24 -0
- package/dist/hooks/useNavbar.js.map +1 -0
- package/dist/hooks/useOwpSettings.js +21 -0
- package/dist/hooks/useOwpSettings.js.map +1 -0
- package/dist/hooks.js +75 -62
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +98 -104
- package/dist/index.js.map +1 -1
- package/dist/layout/Layout.js +28 -29
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/layouts/FooterLayout.js +15 -16
- package/dist/layout/components/layouts/FooterLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js +21 -18
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarWrapperLayout.js +20 -21
- package/dist/layout/components/layouts/NavbarWrapperLayout.js.map +1 -1
- package/dist/layout/components/navbar/NavbarPinToggleButton.js +10 -11
- package/dist/layout/components/navbar/NavbarPinToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/NavbarToggleButton.js +31 -32
- package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +36 -37
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +29 -30
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/layout/components/navigation/Navigation.js +18 -22
- package/dist/layout/components/navigation/Navigation.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +55 -60
- package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js +44 -49
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
- package/dist/layout/components/toolbar/ToolbarLayout.js +26 -27
- package/dist/layout/components/toolbar/ToolbarLayout.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/constants.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/constants.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/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/store/atoms/navbarAtoms.js +84 -0
- package/dist/store/atoms/navbarAtoms.js.map +1 -0
- package/dist/store/atoms/owpSettingsAtoms.js +140 -0
- package/dist/store/atoms/owpSettingsAtoms.js.map +1 -0
- package/dist/store/atoms/owpStore.js +29 -0
- package/dist/store/atoms/owpStore.js.map +1 -0
- package/dist/store.js +44 -39
- package/dist/store.js.map +1 -1
- package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +12 -41
- package/dist/types/components/OwpPageSkeleton/index.d.ts +1 -0
- package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +0 -1
- package/dist/types/components/OwpPicker/OwpYearRangePicker.d.ts +0 -1
- package/dist/types/components/OwpPicker/{DatePickerInput.d.ts → internal/DatePickerInput.d.ts} +1 -1
- package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
- package/dist/types/components/OwpQuerySelector/types/types.d.ts +2 -0
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +3 -1
- package/dist/types/components/OwpTreeGrid/{OwpTreeGridLoadingOverlay.d.ts → internal/OwpTreeGridLoadingOverlay.d.ts} +1 -1
- package/dist/types/components/OwpTreeGrid/{OwpTreeGridNoDataOverlay.d.ts → internal/OwpTreeGridNoDataOverlay.d.ts} +1 -1
- package/dist/types/components/OwpTreeGrid/{utils/index.d.ts → internal/treeGridLayout.d.ts} +0 -2
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +75 -0
- package/dist/types/contexts/OwpCoreProvider.d.ts +2 -2
- package/dist/types/contexts/OwpStoreProvider.d.ts +4 -4
- package/dist/types/hooks/index.d.ts +2 -1
- package/dist/types/hooks/useNavbar.d.ts +19 -0
- package/dist/types/hooks/useOwpSettings.d.ts +79 -0
- package/dist/types/index.d.ts +1 -4
- package/dist/types/layout/components/navigation/Navigation.d.ts +6 -2
- package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +5 -2
- package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +5 -2
- package/dist/types/store/atoms/index.d.ts +3 -0
- package/dist/types/store/atoms/internal/types.d.ts +29 -0
- package/dist/types/store/atoms/navbarAtoms.d.ts +48 -0
- package/dist/types/store/atoms/owpSettingsAtoms.d.ts +89 -0
- package/dist/types/store/atoms/owpStore.d.ts +13 -0
- package/dist/types/store/index.d.ts +1 -3
- package/dist/types/types/OwpNavigationTypes.d.ts +14 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/navigationUtils.d.ts +6 -2
- package/dist/types/utils/normalizeTimeToHourMinute.d.ts +11 -0
- package/dist/utils/navigationUtils.js.map +1 -1
- package/dist/utils/normalizeTimeToHourMinute.js +34 -0
- package/dist/utils/normalizeTimeToHourMinute.js.map +1 -0
- package/dist/utils/treeGridUtil.js +1 -1
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +78 -75
- package/dist/utils.js.map +1 -1
- package/package.json +2 -6
- package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js.map +0 -1
- package/dist/components/OwpMrtTable/OwpMrtTableTopToolbar.js.map +0 -1
- package/dist/components/OwpPageCarded/OwpPageCardedHeader.js.map +0 -1
- package/dist/components/OwpPageCarded/OwpPageCardedSidebar.js.map +0 -1
- package/dist/components/OwpPageCarded/OwpPageCardedSidebarContent.js.map +0 -1
- package/dist/components/OwpPicker/AnimatedCalendarContainer.js.map +0 -1
- package/dist/components/OwpPicker/CalendarContainer.js.map +0 -1
- package/dist/components/OwpPicker/DatePickerInput.js.map +0 -1
- package/dist/components/OwpPicker/constants.js.map +0 -1
- package/dist/components/OwpTreeGrid/OwpTreeGridLoadingOverlay.js.map +0 -1
- package/dist/components/OwpTreeGrid/OwpTreeGridNoDataOverlay.js.map +0 -1
- package/dist/components/OwpTreeGrid/perf.js.map +0 -1
- package/dist/components/OwpTreeGrid/utils/index.js.map +0 -1
- package/dist/components/OwpZoomImageSlider/ZoomImage.js.map +0 -1
- package/dist/hooks/useAppStore.js +0 -8
- package/dist/hooks/useAppStore.js.map +0 -1
- package/dist/node_modules/.pnpm/react-datepicker@8.7.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-datepicker/dist/react-datepicker.css +0 -1
- package/dist/store/generateReducersFromSlices.js +0 -18
- package/dist/store/generateReducersFromSlices.js.map +0 -1
- package/dist/store/lazyLoadedSlices.js +0 -16
- package/dist/store/lazyLoadedSlices.js.map +0 -1
- package/dist/store/middleware.js +0 -9
- package/dist/store/middleware.js.map +0 -1
- package/dist/store/navbarSlice.js +0 -71
- package/dist/store/navbarSlice.js.map +0 -1
- package/dist/store/navigationSlice.js +0 -46
- package/dist/store/navigationSlice.js.map +0 -1
- package/dist/store/owpSettingsSlice.js +0 -195
- package/dist/store/owpSettingsSlice.js.map +0 -1
- package/dist/store/store.js +0 -17
- package/dist/store/store.js.map +0 -1
- package/dist/store/withSlices.js +0 -27
- package/dist/store/withSlices.js.map +0 -1
- package/dist/types/hooks/useAppStore.d.ts +0 -7
- package/dist/types/store/generateReducersFromSlices.d.ts +0 -6
- package/dist/types/store/lazyLoadedSlices.d.ts +0 -9
- package/dist/types/store/middleware.d.ts +0 -17
- package/dist/types/store/navbarSlice.d.ts +0 -22
- package/dist/types/store/navigationSlice.d.ts +0 -92
- package/dist/types/store/owpSettingsSlice.d.ts +0 -112
- package/dist/types/store/store.d.ts +0 -13
- package/dist/types/store/withSlices.d.ts +0 -11
- /package/dist/components/OwpTreeGrid/{perf.js → utils/perf.js} +0 -0
- /package/dist/types/components/OwpMrtTable/{OwpMrtTableNoDataOverlay.d.ts → internal/OwpMrtTableNoDataOverlay.d.ts} +0 -0
- /package/dist/types/components/OwpMrtTable/{OwpMrtTableTopToolbar.d.ts → internal/OwpMrtTableTopToolbar.d.ts} +0 -0
- /package/dist/types/components/OwpPageCarded/{OwpPageCardedHeader.d.ts → internal/OwpPageCardedHeader.d.ts} +0 -0
- /package/dist/types/components/OwpPageCarded/{OwpPageCardedSidebar.d.ts → internal/OwpPageCardedSidebar.d.ts} +0 -0
- /package/dist/types/components/OwpPageCarded/{OwpPageCardedSidebarContent.d.ts → internal/OwpPageCardedSidebarContent.d.ts} +0 -0
- /package/dist/types/components/OwpPicker/{constants.d.ts → constants/index.d.ts} +0 -0
- /package/dist/types/components/OwpPicker/{AnimatedCalendarContainer.d.ts → internal/AnimatedCalendarContainer.d.ts} +0 -0
- /package/dist/types/components/OwpPicker/{CalendarContainer.d.ts → internal/CalendarContainer.d.ts} +0 -0
- /package/dist/types/components/OwpTreeGrid/{perf.d.ts → utils/perf.d.ts} +0 -0
- /package/dist/types/components/OwpZoomImageSlider/{ZoomImage.d.ts → internal/ZoomImage.d.ts} +0 -0
|
@@ -1,49 +1,16 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
3
2
|
/**
|
|
4
|
-
* OwpPageCarded
|
|
3
|
+
* Props for the OwpPageCarded component.
|
|
5
4
|
*/
|
|
6
|
-
|
|
7
|
-
className?: string;
|
|
8
|
-
leftSidebarContent?: ReactNode;
|
|
9
|
-
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
10
|
-
rightSidebarContent?: ReactNode;
|
|
11
|
-
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
12
|
-
header?: ReactNode;
|
|
13
|
-
content?: ReactNode;
|
|
14
|
-
scroll?: "normal" | "page" | "content";
|
|
15
|
-
leftSidebarOpen?: boolean;
|
|
16
|
-
rightSidebarOpen?: boolean;
|
|
17
|
-
leftSidebarWidth?: number;
|
|
18
|
-
rightSidebarWidth?: number;
|
|
19
|
-
rightSidebarOnClose?: () => void;
|
|
20
|
-
leftSidebarOnClose?: () => void;
|
|
21
|
-
fillContentHeight?: boolean;
|
|
22
|
-
}) | (import("@mui/system").CSSPseudoSelectorProps<Theme> & {
|
|
23
|
-
className?: string;
|
|
24
|
-
leftSidebarContent?: ReactNode;
|
|
25
|
-
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
26
|
-
rightSidebarContent?: ReactNode;
|
|
27
|
-
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
28
|
-
header?: ReactNode;
|
|
29
|
-
content?: ReactNode;
|
|
30
|
-
scroll?: "normal" | "page" | "content";
|
|
31
|
-
leftSidebarOpen?: boolean;
|
|
32
|
-
rightSidebarOpen?: boolean;
|
|
33
|
-
leftSidebarWidth?: number;
|
|
34
|
-
rightSidebarWidth?: number;
|
|
35
|
-
rightSidebarOnClose?: () => void;
|
|
36
|
-
leftSidebarOnClose?: () => void;
|
|
37
|
-
fillContentHeight?: boolean;
|
|
38
|
-
}) | Omit<import("@mui/system").CSSSelectorObjectOrCssVariables<Theme> & {
|
|
5
|
+
type OwpPageCardedProps = {
|
|
39
6
|
className?: string;
|
|
40
7
|
leftSidebarContent?: ReactNode;
|
|
41
|
-
leftSidebarVariant?:
|
|
8
|
+
leftSidebarVariant?: 'permanent' | 'persistent' | 'temporary';
|
|
42
9
|
rightSidebarContent?: ReactNode;
|
|
43
|
-
rightSidebarVariant?:
|
|
10
|
+
rightSidebarVariant?: 'permanent' | 'persistent' | 'temporary';
|
|
44
11
|
header?: ReactNode;
|
|
45
12
|
content?: ReactNode;
|
|
46
|
-
scroll?:
|
|
13
|
+
scroll?: 'normal' | 'page' | 'content';
|
|
47
14
|
leftSidebarOpen?: boolean;
|
|
48
15
|
rightSidebarOpen?: boolean;
|
|
49
16
|
leftSidebarWidth?: number;
|
|
@@ -51,8 +18,12 @@ declare const OwpPageCarded: import("react").NamedExoticComponent<((((import("@m
|
|
|
51
18
|
rightSidebarOnClose?: () => void;
|
|
52
19
|
leftSidebarOnClose?: () => void;
|
|
53
20
|
fillContentHeight?: boolean;
|
|
54
|
-
}
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* OwpPageCarded 컴포넌트
|
|
24
|
+
*/
|
|
25
|
+
declare const OwpPageCarded: import("react").NamedExoticComponent<OwpPageCardedProps & import("react").RefAttributes<{
|
|
55
26
|
toggleLeftSidebar: (T: boolean) => void;
|
|
56
27
|
toggleRightSidebar: (T: boolean) => void;
|
|
57
|
-
}>
|
|
28
|
+
}> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>>;
|
|
58
29
|
export { OwpPageCarded };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OwpPageSkeleton } from './OwpPageSkeleton';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DatePickerValue } from '@/components/OwpPicker/OwpDatePicker';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
3
|
import { DatePickerProps } from 'react-datepicker';
|
|
4
|
-
import 'react-datepicker/dist/react-datepicker.css';
|
|
5
4
|
interface WeekPickerProps {
|
|
6
5
|
className?: string;
|
|
7
6
|
label?: string;
|
package/dist/types/components/OwpPicker/{DatePickerInput.d.ts → internal/DatePickerInput.d.ts}
RENAMED
|
@@ -23,5 +23,5 @@ interface OwnProps {
|
|
|
23
23
|
* @param onIconClick 아이콘 클릭 핸들러
|
|
24
24
|
* @param ref forwardRef 참조
|
|
25
25
|
*/
|
|
26
|
-
export declare const DatePickerInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").
|
|
26
|
+
export declare const DatePickerInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").StandardTextFieldProps & OwnProps, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & OwnProps, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & OwnProps, "ref">) & import("react").RefAttributes<unknown>>;
|
|
27
27
|
export {};
|
|
@@ -3,4 +3,4 @@ import type { OwpQuerySelectorProps } from './types';
|
|
|
3
3
|
* 원격 조회형 공통 선택기
|
|
4
4
|
* @param props 원격 선택기 props
|
|
5
5
|
*/
|
|
6
|
-
export declare const OwpQuerySelector: ({ apiUrl, asyncSearch, buildRequestQuery, disableAllValueItem, filterOptions, multiple, query, responseListKey, selectorType, value, valueKey, valueResolver, labelKey, labelResolver, onChange, defaultValue, textFieldProps, ...selectorBaseProps }: OwpQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const OwpQuerySelector: ({ apiUrl, asyncSearch, buildRequestQuery, disableAllValueItem, filterOptions, multiple, query, queryKeyDeps, responseListKey, selectorType, value, valueKey, valueResolver, labelKey, labelResolver, onChange, defaultValue, textFieldProps, ...selectorBaseProps }: OwpQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,6 +27,8 @@ type OwpQuerySelectorSharedProps = Omit<OwpSelectorBaseProps, 'allOptions' | 'al
|
|
|
27
27
|
filterOptions?: (items: OwpQuerySelectorItem[]) => OwpQuerySelectorItem[];
|
|
28
28
|
onChange?: (event: OwpSelectorBaseChangeEvent) => void;
|
|
29
29
|
query: Record<string, unknown>;
|
|
30
|
+
/** 숨은 요청 조건용 React Query key 추가 deps */
|
|
31
|
+
queryKeyDeps?: readonly unknown[];
|
|
30
32
|
responseListKey?: string;
|
|
31
33
|
};
|
|
32
34
|
export type OwpQuerySelectorBaseProps = OwpQuerySelectorSharedProps & OwpQuerySelectorValueConfig & OwpQuerySelectorLabelConfig;
|
|
@@ -30,7 +30,7 @@ export declare function OwpTableTotalCount({ totalCount }: {
|
|
|
30
30
|
* @param tableLayout tableLayout 값
|
|
31
31
|
*/
|
|
32
32
|
export declare const StyledTable: ({ canBodyFullHeight, canUseTreeGridStyle, children, className, containerProps, footerSlot, tableLayout, ...tableProps }: StyledTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "style" | "hover" | "selected" | "
|
|
33
|
+
export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "style" | "hover" | "selected" | "className" | "classes" | "children" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
34
34
|
interface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {
|
|
35
35
|
canTotalCountRow?: boolean;
|
|
36
36
|
headers: OwpTableHeaderRow | OwpTableHeaderRow[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OwpTab 컴포넌트
|
|
3
3
|
*/
|
|
4
|
-
declare const OwpTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "disabled" | "
|
|
4
|
+
declare const OwpTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "disabled" | "className" | "classes" | "children" | "sx" | "label" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "value" | "icon" | "wrapped" | "iconPosition"> & {
|
|
5
5
|
component?: React.ElementType | undefined;
|
|
6
6
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
7
|
export { OwpTab };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OwpTabs 컴포넌트
|
|
3
3
|
*/
|
|
4
|
-
declare const OwpTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "
|
|
4
|
+
declare const OwpTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "className" | "classes" | "children" | "sx" | "variant" | "aria-label" | "aria-labelledby" | "onChange" | "slots" | "slotProps" | "value" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
5
5
|
component?: React.ElementType | undefined;
|
|
6
6
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
7
|
export { OwpTabs };
|
|
@@ -47,6 +47,8 @@ export interface OwpTreeGridProps<T> {
|
|
|
47
47
|
onRowClick?: OwpTreeGridRowClickHandler<T>;
|
|
48
48
|
onSave?: OwpTreeGridSaveHandler<T>;
|
|
49
49
|
onAfterValueChanged?: OwpTreeGridAfterValueChangedHandler<T>;
|
|
50
|
+
highlightEditableCells?: boolean;
|
|
51
|
+
highlightChangedCells?: boolean;
|
|
50
52
|
loading?: boolean;
|
|
51
53
|
showLoading?: boolean;
|
|
52
54
|
}
|
|
@@ -59,5 +61,5 @@ export interface OwpTreeGridProps<T> {
|
|
|
59
61
|
* @param style 스타일 객체
|
|
60
62
|
* @param height height 값
|
|
61
63
|
*/
|
|
62
|
-
declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, className, style, height, width, layoutUrl, dataUrl, layoutOverrides, data, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, loading, showLoading, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, className, style, height, width, layoutUrl, dataUrl, layoutOverrides, data, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, highlightEditableCells, highlightChangedCells, loading, showLoading, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
63
65
|
export { OwpTreeGrid };
|
|
@@ -31,6 +31,4 @@ export declare const convertXmlToJson: (xmlString?: string) => TreeGridSectionCo
|
|
|
31
31
|
* @param disableBodyReload disableBodyReload 값
|
|
32
32
|
*/
|
|
33
33
|
export declare const applyTreeGridLayoutToGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
|
|
34
|
-
export declare const updateLayoutByGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
|
|
35
|
-
export declare const applyTreeGridLayoutByGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
|
|
36
34
|
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type Dispatch, type RefObject, type SetStateAction } from 'react';
|
|
2
|
+
import type { OwpTreeGridBodyData, OwpTreeGridLayoutConfig, OwpTreeGridProps } from '../OwpTreeGrid';
|
|
3
|
+
export declare const TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS = 300;
|
|
4
|
+
type TreeGridInitializationInput<T> = {
|
|
5
|
+
id: string;
|
|
6
|
+
layoutUrl?: string;
|
|
7
|
+
dataUrl?: string;
|
|
8
|
+
bodyData: OwpTreeGridBodyData<T>;
|
|
9
|
+
useDataUrl?: boolean;
|
|
10
|
+
width?: string | number;
|
|
11
|
+
height?: string | number;
|
|
12
|
+
languageId: string;
|
|
13
|
+
};
|
|
14
|
+
export type TreeGridEventHandlers<T> = Pick<OwpTreeGridProps<T>, 'onSelect' | 'onRowClick' | 'onRowAdd' | 'onRowDelete' | 'onRowUndelete' | 'onRowChange' | 'onClickButton' | 'onSave' | 'onReady' | 'onAfterValueChanged'>;
|
|
15
|
+
export type TreeGridEventBindingOptions<T> = Pick<OwpTreeGridProps<T>, 'id'> & {
|
|
16
|
+
latestEventHandlersRef: RefObject<TreeGridEventHandlers<T>>;
|
|
17
|
+
highlightEditableCellsRef: RefObject<boolean>;
|
|
18
|
+
highlightChangedCellsRef: RefObject<boolean>;
|
|
19
|
+
treeGridInstanceRef: RefObject<TGrid>;
|
|
20
|
+
treeGridInitStartedAtRef: RefObject<number | null>;
|
|
21
|
+
latestLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;
|
|
22
|
+
appliedLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;
|
|
23
|
+
appliedBodyDataPropRef: RefObject<OwpTreeGridBodyData<T>>;
|
|
24
|
+
hasAppliedInitialLayoutRef: RefObject<boolean>;
|
|
25
|
+
syncHasDisplayDataRows: (grid: TGrid | null) => void;
|
|
26
|
+
setIsTreeGridReady: Dispatch<SetStateAction<boolean>>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* TreeGrid 초기화 옵션 생성
|
|
30
|
+
* @param input 초기화 입력값
|
|
31
|
+
*/
|
|
32
|
+
export declare const buildTreeGridInitializationOptions: <T>({ id, layoutUrl, dataUrl, bodyData, useDataUrl, width, height, languageId, }: TreeGridInitializationInput<T>) => {
|
|
33
|
+
id: string;
|
|
34
|
+
Layout: {
|
|
35
|
+
Url: string;
|
|
36
|
+
};
|
|
37
|
+
Data: {
|
|
38
|
+
Url: string;
|
|
39
|
+
Data?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
Data: {
|
|
42
|
+
Body: OwpTreeGridBodyData<T>[];
|
|
43
|
+
};
|
|
44
|
+
Url?: undefined;
|
|
45
|
+
};
|
|
46
|
+
Text: {
|
|
47
|
+
Url: "/assets/vendors/Grid/TextEN.xml" | "/assets/vendors/Grid/TextKR.xml";
|
|
48
|
+
};
|
|
49
|
+
width: string | number;
|
|
50
|
+
height: string | number;
|
|
51
|
+
Debug: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* TreeGrid Body 데이터 건수
|
|
55
|
+
* @param bodyData TreeGrid Body 데이터
|
|
56
|
+
*/
|
|
57
|
+
export declare const getTreeGridBodyDataCount: <T>(bodyData: OwpTreeGridBodyData<T>) => number;
|
|
58
|
+
/**
|
|
59
|
+
* TreeGrid 표시 데이터 행 존재 여부
|
|
60
|
+
* @param grid TreeGrid 인스턴스
|
|
61
|
+
*/
|
|
62
|
+
export declare const hasTreeGridDisplayDataRows: (grid: TGrid | null) => boolean;
|
|
63
|
+
/**
|
|
64
|
+
* TreeGrid Body 데이터 교체 후 재로드
|
|
65
|
+
* @param grid TreeGrid 인스턴스
|
|
66
|
+
* @param bodyData 새 Body 데이터
|
|
67
|
+
* @param onReloadFinish 재로드 완료 콜백
|
|
68
|
+
*/
|
|
69
|
+
export declare const replaceTreeGridBodyData: <T>(grid: TGrid, bodyData: OwpTreeGridBodyData<T>, onReloadFinish?: (code: number) => void) => void;
|
|
70
|
+
/**
|
|
71
|
+
* TreeGrid 이벤트 바인딩
|
|
72
|
+
* @param options 이벤트 바인딩 옵션
|
|
73
|
+
*/
|
|
74
|
+
export declare const bindTreeGridEvents: <T>({ id, latestEventHandlersRef, highlightEditableCellsRef, highlightChangedCellsRef, treeGridInstanceRef, treeGridInitStartedAtRef, latestLayoutOverridesRef, appliedLayoutOverridesRef, appliedBodyDataPropRef, hasAppliedInitialLayoutRef, syncHasDisplayDataRows, setIsTreeGridReady, }: TreeGridEventBindingOptions<T>) => void;
|
|
75
|
+
export {};
|
|
@@ -11,10 +11,10 @@ export interface OwpCoreProviderProps extends OwpAppProviderProps {
|
|
|
11
11
|
styledEngineProviderProps?: OwpStyledEngineProviderProps;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* App,
|
|
14
|
+
* App, Jotai, React Query provider composition
|
|
15
15
|
* @param queryClient 외부 QueryClient 인스턴스
|
|
16
16
|
* @param queryClientConfig QueryClient 생성 옵션
|
|
17
|
-
* @param storePreloadedState 초기
|
|
17
|
+
* @param storePreloadedState 초기 전역 상태
|
|
18
18
|
* @param styledEngineProviderProps StyledEngineProvider 옵션
|
|
19
19
|
*/
|
|
20
20
|
export declare function OwpCoreProvider({ children, queryClient, queryClientConfig, storePreloadedState, styledEngineProviderProps, ...appProviderProps }: OwpCoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { OwpStorePreloadedState } from '@/store/atoms/internal/types';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
|
-
import { RootState } from '../store/store';
|
|
3
3
|
export interface OwpStoreProviderProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
preloadedState?:
|
|
5
|
+
preloadedState?: OwpStorePreloadedState;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* OWP Jotai store provider
|
|
9
9
|
* @param children 하위 콘텐츠
|
|
10
|
-
* @param preloadedState 초기
|
|
10
|
+
* @param preloadedState 초기 전역 상태
|
|
11
11
|
*/
|
|
12
12
|
export declare function OwpStoreProvider({ children, preloadedState }: OwpStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './useCommonCodeList';
|
|
2
2
|
export * from './useAccessTokenGuard';
|
|
3
|
-
export * from './useAppStore';
|
|
4
3
|
export * from './useConfirm';
|
|
5
4
|
export * from './useCurrentLanguage';
|
|
6
5
|
export * from './useLogoSrc';
|
|
@@ -11,7 +10,9 @@ export * from './useDeepCompareEffect';
|
|
|
11
10
|
export * from './useHeaderWrapState';
|
|
12
11
|
export * from './useInitApp';
|
|
13
12
|
export * from './useInitCommonCodes';
|
|
13
|
+
export * from './useNavbar';
|
|
14
14
|
export * from './useNavigation';
|
|
15
|
+
export * from './useOwpSettings';
|
|
15
16
|
export * from './useOwpTranslation';
|
|
16
17
|
export * from './usePageLockLoading';
|
|
17
18
|
export * from './usePrevious';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navbar 상태 조회 훅
|
|
3
|
+
*/
|
|
4
|
+
export declare const useGetNavbar: () => import("../store/atoms/internal/types").NavbarState;
|
|
5
|
+
/**
|
|
6
|
+
* Navbar 액션 훅
|
|
7
|
+
*/
|
|
8
|
+
export declare const useNavbarActions: () => {
|
|
9
|
+
toggleFolded: () => void;
|
|
10
|
+
openFolded: () => void;
|
|
11
|
+
closeFolded: () => void;
|
|
12
|
+
toggleMobile: () => void;
|
|
13
|
+
openMobile: () => void;
|
|
14
|
+
closeMobile: () => void;
|
|
15
|
+
open: () => void;
|
|
16
|
+
close: () => void;
|
|
17
|
+
toggle: () => void;
|
|
18
|
+
reset: () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';
|
|
2
|
+
import type { OwpSettingsState } from '@/store/atoms/internal/types';
|
|
3
|
+
import type { PartialDeep } from 'type-fest';
|
|
4
|
+
/**
|
|
5
|
+
* OWP settings 원본 상태 조회 훅
|
|
6
|
+
*/
|
|
7
|
+
export declare const useGetOwpSettings: () => OwpSettingsState;
|
|
8
|
+
/**
|
|
9
|
+
* 현재 settings 조회 훅
|
|
10
|
+
*/
|
|
11
|
+
export declare const useGetCurrentSettings: () => OwpSettingsConfigType;
|
|
12
|
+
/**
|
|
13
|
+
* 기본 settings 조회 훅
|
|
14
|
+
*/
|
|
15
|
+
export declare const useGetDefaultSettings: () => OwpSettingsConfigType;
|
|
16
|
+
/**
|
|
17
|
+
* 현재 layout config 조회 훅
|
|
18
|
+
*/
|
|
19
|
+
export declare const useGetCurrentLayoutConfig: () => {
|
|
20
|
+
mode?: string;
|
|
21
|
+
containerWidth?: string;
|
|
22
|
+
navbar?: {
|
|
23
|
+
display?: boolean;
|
|
24
|
+
style?: string;
|
|
25
|
+
folded?: boolean;
|
|
26
|
+
position?: string;
|
|
27
|
+
open?: boolean;
|
|
28
|
+
};
|
|
29
|
+
toolbar?: {
|
|
30
|
+
display?: boolean;
|
|
31
|
+
style?: string;
|
|
32
|
+
};
|
|
33
|
+
footer?: {
|
|
34
|
+
display?: boolean;
|
|
35
|
+
style?: string;
|
|
36
|
+
};
|
|
37
|
+
leftSidePanel?: {
|
|
38
|
+
display?: boolean;
|
|
39
|
+
};
|
|
40
|
+
rightSidePanel?: {
|
|
41
|
+
display?: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Main theme 조회 훅
|
|
46
|
+
*/
|
|
47
|
+
export declare const useGetMainTheme: () => import("@mui/material").Theme;
|
|
48
|
+
/**
|
|
49
|
+
* Navbar theme 조회 훅
|
|
50
|
+
*/
|
|
51
|
+
export declare const useGetNavbarTheme: () => import("@mui/material").Theme;
|
|
52
|
+
/**
|
|
53
|
+
* Toolbar theme 조회 훅
|
|
54
|
+
*/
|
|
55
|
+
export declare const useGetToolbarTheme: () => import("@mui/material").Theme;
|
|
56
|
+
/**
|
|
57
|
+
* Footer theme 조회 훅
|
|
58
|
+
*/
|
|
59
|
+
export declare const useGetFooterTheme: () => import("@mui/material").Theme;
|
|
60
|
+
/**
|
|
61
|
+
* Custom scrollbar 사용 여부 조회 훅
|
|
62
|
+
*/
|
|
63
|
+
export declare const useGetCustomScrollbarsEnabled: () => boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 현재 settings 설정 훅
|
|
66
|
+
*/
|
|
67
|
+
export declare const useSetSettings: () => (nextSettings: OwpSettingsConfigType) => void;
|
|
68
|
+
/**
|
|
69
|
+
* 기본 settings 설정 훅
|
|
70
|
+
*/
|
|
71
|
+
export declare const useSetDefaultSettings: () => (nextSettings: PartialDeep<OwpSettingsConfigType>) => OwpSettingsState;
|
|
72
|
+
/**
|
|
73
|
+
* Settings 초기화 훅
|
|
74
|
+
*/
|
|
75
|
+
export declare const useResetSettings: () => () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Theme 설정 변경 훅
|
|
78
|
+
*/
|
|
79
|
+
export declare const useChangeOwpTheme: () => (theme: import("@/types/OwpSettingsTypes").OwpThemesType) => OwpSettingsState;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,9 +18,6 @@ export * from './components/OwpMoreActionsButton/OwpMoreActionsButton';
|
|
|
18
18
|
export * from './components/OwpNumberField';
|
|
19
19
|
export * from './components/OwpOptionSelector';
|
|
20
20
|
export * from './components/OwpPageCarded';
|
|
21
|
-
export * from './components/OwpPageCarded/OwpPageCardedHeader';
|
|
22
|
-
export * from './components/OwpPageCarded/OwpPageCardedSidebar';
|
|
23
|
-
export * from './components/OwpPageCarded/OwpPageCardedSidebarContent';
|
|
24
21
|
export * from './components/OwpPageBreadcrumb';
|
|
25
22
|
export * from './components/OwpPageContent';
|
|
26
23
|
export * from './components/OwpPageLockLoading';
|
|
@@ -48,4 +45,4 @@ export * from './components/OwpTreeGrid';
|
|
|
48
45
|
export * from './components/OwpTreeGrid/OwpTreeGridToolbar';
|
|
49
46
|
export * from './components/OwpZoomImageSlider/OwpZoomImageSlider';
|
|
50
47
|
export * from './components/OwpYesNoSelector';
|
|
51
|
-
export type { OwpFlatNavItemType, OwpNavBadgeType, OwpNavItemType } from './types/OwpNavigationTypes';
|
|
48
|
+
export type { OwpFlatNavItemType, OwpNavBadgeType, OwpNavPermission, OwpNavItemType, OwpPermissionFlag, } from './types/OwpNavigationTypes';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { type NavigationMenuProps } from './NavigationMenu';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Navigation
|
|
4
|
+
*/
|
|
5
|
+
type NavigationProps = Partial<NavigationMenuProps>;
|
|
6
|
+
declare function Navigation(props: NavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Navigation;
|
|
@@ -9,8 +9,11 @@ type NavigationSearchToggleProps = {
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
noResults?: string;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Navigation search toggle.
|
|
14
|
+
*/
|
|
15
|
+
declare function NavigationSearchToggle(props: NavigationSearchToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
12
16
|
/**
|
|
13
17
|
* Memoized navigation search toggle.
|
|
14
18
|
*/
|
|
15
|
-
|
|
16
|
-
export default NavigationSearchToggleWithSlices;
|
|
19
|
+
export default NavigationSearchToggle;
|
|
@@ -2,8 +2,11 @@ type NavigationShortcutsToggleProps = {
|
|
|
2
2
|
className?: string;
|
|
3
3
|
variant?: 'horizontal' | 'vertical';
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* Navigation shortcuts toggle.
|
|
7
|
+
*/
|
|
8
|
+
declare function NavigationShortcutsToggle(props: NavigationShortcutsToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
5
9
|
/**
|
|
6
10
|
* Memoized navigation shortcuts toggle.
|
|
7
11
|
*/
|
|
8
|
-
|
|
9
|
-
export default NavigationShortcutsToggleWithSlices;
|
|
12
|
+
export default NavigationShortcutsToggle;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';
|
|
2
|
+
import type { PartialDeep } from 'type-fest';
|
|
3
|
+
/**
|
|
4
|
+
* OWP settings 상태 타입
|
|
5
|
+
*/
|
|
6
|
+
export type OwpSettingsState = {
|
|
7
|
+
initial: OwpSettingsConfigType;
|
|
8
|
+
defaults: OwpSettingsConfigType;
|
|
9
|
+
current: OwpSettingsConfigType;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Navbar 상태 타입
|
|
13
|
+
*/
|
|
14
|
+
export type NavbarState = {
|
|
15
|
+
open: boolean;
|
|
16
|
+
mobileOpen: boolean;
|
|
17
|
+
foldedOpen: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* OWP 전역 상태 타입
|
|
21
|
+
*/
|
|
22
|
+
export type OwpStoreState = {
|
|
23
|
+
owpSettings: OwpSettingsState;
|
|
24
|
+
navbar: NavbarState;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* OWP 전역 상태 초기값 타입
|
|
28
|
+
*/
|
|
29
|
+
export type OwpStorePreloadedState = PartialDeep<OwpStoreState>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { NavbarState } from './internal/types';
|
|
2
|
+
/**
|
|
3
|
+
* Navbar 기본 상태 생성
|
|
4
|
+
*/
|
|
5
|
+
export declare function createNavbarState(overrides?: Partial<NavbarState>): NavbarState;
|
|
6
|
+
export declare const navbarStateAtom: import("jotai").PrimitiveAtom<NavbarState> & {
|
|
7
|
+
init: NavbarState;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Navbar 접기 상태 토글 atom
|
|
11
|
+
*/
|
|
12
|
+
export declare const navbarToggleFoldedAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
13
|
+
/**
|
|
14
|
+
* Navbar 접기 상태 열기 atom
|
|
15
|
+
*/
|
|
16
|
+
export declare const navbarOpenFoldedAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
17
|
+
/**
|
|
18
|
+
* Navbar 접기 상태 닫기 atom
|
|
19
|
+
*/
|
|
20
|
+
export declare const navbarCloseFoldedAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
21
|
+
/**
|
|
22
|
+
* 모바일 navbar 상태 토글 atom
|
|
23
|
+
*/
|
|
24
|
+
export declare const navbarToggleMobileAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
25
|
+
/**
|
|
26
|
+
* 모바일 navbar 열기 atom
|
|
27
|
+
*/
|
|
28
|
+
export declare const navbarOpenMobileAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
29
|
+
/**
|
|
30
|
+
* 모바일 navbar 닫기 atom
|
|
31
|
+
*/
|
|
32
|
+
export declare const navbarCloseMobileAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
33
|
+
/**
|
|
34
|
+
* Navbar 닫기 atom
|
|
35
|
+
*/
|
|
36
|
+
export declare const navbarCloseAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
37
|
+
/**
|
|
38
|
+
* Navbar 열기 atom
|
|
39
|
+
*/
|
|
40
|
+
export declare const navbarOpenAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
41
|
+
/**
|
|
42
|
+
* Navbar 상태 토글 atom
|
|
43
|
+
*/
|
|
44
|
+
export declare const navbarToggleAtom: import("jotai").WritableAtom<unknown, [], void>;
|
|
45
|
+
/**
|
|
46
|
+
* Navbar 기본값 복원 atom
|
|
47
|
+
*/
|
|
48
|
+
export declare const resetNavbarAtom: import("jotai").WritableAtom<unknown, [], void>;
|