@owp/core 1.0.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/QuickPanel-xYOXYOdd.js +103 -0
- package/dist/QuickPanel-xYOXYOdd.js.map +1 -0
- package/dist/index-DGvdCuqz.js +49361 -0
- package/dist/index-DGvdCuqz.js.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +172 -0
- package/dist/index.js.map +1 -0
- package/dist/owp-app.css +1 -0
- package/dist/types/auth/authRoles.d.ts +21 -0
- package/dist/types/colors/owpDark.d.ts +20 -0
- package/dist/types/colors/skyBlue.d.ts +20 -0
- package/dist/types/components/NavLinkAdapter/NavLinkAdapter.d.ts +18 -0
- package/dist/types/components/NavLinkAdapter/index.d.ts +1 -0
- package/dist/types/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts +3 -0
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +2 -0
- package/dist/types/components/OwpButtonDelete/index.d.ts +7 -0
- package/dist/types/components/OwpButtonSave/index.d.ts +7 -0
- package/dist/types/components/OwpCommonDialog/index.d.ts +17 -0
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +7 -0
- package/dist/types/components/OwpDialog/index.d.ts +1 -0
- package/dist/types/components/OwpDialog/owpDialogSlice.d.ts +14 -0
- package/dist/types/components/OwpExportExcelButton/OwpExportExcelButton.d.ts +22 -0
- package/dist/types/components/OwpFileUploadButton/OwpFileUploadButton.d.ts +10 -0
- package/dist/types/components/OwpLayout/OwpLayout.d.ts +23 -0
- package/dist/types/components/OwpLayout/index.d.ts +1 -0
- package/dist/types/components/OwpLoading/OwpLoading.d.ts +9 -0
- package/dist/types/components/OwpLoading/index.d.ts +1 -0
- package/dist/types/components/OwpMessage/OwpMessage.d.ts +8 -0
- package/dist/types/components/OwpMessage/index.d.ts +1 -0
- package/dist/types/components/OwpMessage/owpMessageSlice.d.ts +14 -0
- package/dist/types/components/OwpNavigation/OwpNavBadge.d.ts +14 -0
- package/dist/types/components/OwpNavigation/OwpNavItem.d.ts +14 -0
- package/dist/types/components/OwpNavigation/OwpNavigation.d.ts +20 -0
- package/dist/types/components/OwpNavigation/horizontal/OwpNavHorizontalLayout1.d.ts +7 -0
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalCollapse.d.ts +12 -0
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +11 -0
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +9 -0
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +6 -0
- package/dist/types/components/OwpNavigation/index.d.ts +1 -0
- package/dist/types/components/OwpNavigation/isUrlInChildren.d.ts +7 -0
- package/dist/types/components/OwpNavigation/models/OwpNavItemModel.d.ts +8 -0
- package/dist/types/components/OwpNavigation/types/OwpNavBadgeType.d.ts +9 -0
- package/dist/types/components/OwpNavigation/types/OwpNavItemType.d.ts +30 -0
- package/dist/types/components/OwpNavigation/utils/components.d.ts +4 -0
- package/dist/types/components/OwpNavigation/utils/registerComponent.d.ts +4 -0
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout1.d.ts +9 -0
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout2.d.ts +7 -0
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalCollapse.d.ts +7 -0
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalGroup.d.ts +7 -0
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalItem.d.ts +7 -0
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalLink.d.ts +8 -0
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalTab.d.ts +11 -0
- package/dist/types/components/OwpNumberField/index.d.ts +7 -0
- package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +52 -0
- package/dist/types/components/OwpPageCarded/OwpPageCardedHeader.d.ts +7 -0
- package/dist/types/components/OwpPageCarded/OwpPageCardedSidebar.d.ts +19 -0
- package/dist/types/components/OwpPageCarded/OwpPageCardedSidebarContent.d.ts +13 -0
- package/dist/types/components/OwpPageCarded/index.d.ts +1 -0
- package/dist/types/components/OwpPageContent/index.d.ts +9 -0
- package/dist/types/components/OwpPageLockLoading/index.d.ts +6 -0
- package/dist/types/components/OwpPageSimple/OwpPageSimple.d.ts +52 -0
- package/dist/types/components/OwpPageSimple/OwpPageSimpleHeader.d.ts +14 -0
- package/dist/types/components/OwpPageSimple/OwpPageSimpleSidebar.d.ts +19 -0
- package/dist/types/components/OwpPageSimple/OwpPageSimpleSidebarContent.d.ts +13 -0
- package/dist/types/components/OwpPageSimple/index.d.ts +1 -0
- package/dist/types/components/OwpPageTitle/index.d.ts +8 -0
- package/dist/types/components/OwpPicker/CalendarContainer.d.ts +4 -0
- package/dist/types/components/OwpPicker/DatePickerInput.d.ts +8 -0
- package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +18 -0
- package/dist/types/components/OwpPicker/OwpDateRangePicker.d.ts +19 -0
- package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +19 -0
- package/dist/types/components/OwpPicker/OwpYearRangePicker.d.ts +18 -0
- package/dist/types/components/OwpPicker/constants.d.ts +4 -0
- package/dist/types/components/OwpScrollbars/OwpScrollbars.d.ts +16 -0
- package/dist/types/components/OwpScrollbars/index.d.ts +1 -0
- package/dist/types/components/OwpSearch/OwpSearch.d.ts +20 -0
- package/dist/types/components/OwpSearch/index.d.ts +1 -0
- package/dist/types/components/OwpSearchFilter/index.d.ts +9 -0
- package/dist/types/components/OwpSection/index.d.ts +13 -0
- package/dist/types/components/OwpSettings/OwpLayoutConfig.d.ts +12 -0
- package/dist/types/components/OwpSettings/OwpLayoutConfigs.d.ts +10 -0
- package/dist/types/components/OwpSettings/OwpSettings.d.ts +34 -0
- package/dist/types/components/OwpSettings/ThemeFormConfigTypes.d.ts +39 -0
- package/dist/types/components/OwpSettings/index.d.ts +1 -0
- package/dist/types/components/OwpSettings/owpSettingsSlice.d.ts +1866 -0
- package/dist/types/components/OwpSettings/palette-generator/PalettePreview.d.ts +14 -0
- package/dist/types/components/OwpSettings/palette-generator/PaletteSelector.d.ts +15 -0
- package/dist/types/components/OwpSettings/palette-generator/SectionPreview.d.ts +12 -0
- package/dist/types/components/OwpShortcuts/OwpShortcuts.d.ts +16 -0
- package/dist/types/components/OwpShortcuts/index.d.ts +1 -0
- package/dist/types/components/OwpSidePanel/OwpSidePanel.d.ts +15 -0
- package/dist/types/components/OwpSidePanel/index.d.ts +1 -0
- package/dist/types/components/OwpSplashScreen/OwpSplashScreen.d.ts +8 -0
- package/dist/types/components/OwpSplashScreen/index.d.ts +1 -0
- package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +15 -0
- package/dist/types/components/OwpSuspense/index.d.ts +1 -0
- package/dist/types/components/OwpSvgIcon/OwpSvgIcon.d.ts +15 -0
- package/dist/types/components/OwpSvgIcon/index.d.ts +1 -0
- package/dist/types/components/OwpTable/OwpDataTable.d.ts +38 -0
- package/dist/types/components/OwpTable/OwpTable.d.ts +22 -0
- package/dist/types/components/OwpTable/OwpVerticalTable.d.ts +27 -0
- package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +15 -0
- package/dist/types/components/OwpTheme/OwpTheme.d.ts +15 -0
- package/dist/types/components/OwpTheme/index.d.ts +1 -0
- package/dist/types/components/OwpThemeSelector/OwpThemeSelector.d.ts +13 -0
- package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +14 -0
- package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +17 -0
- package/dist/types/components/OwpThemeSelector/index.d.ts +1 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +43 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +13 -0
- package/dist/types/components/OwpTreeGrid/TreeGrid.d.ts +18 -0
- package/dist/types/components/OwpTreeGrid/index.d.ts +2 -0
- package/dist/types/components/OwpTreeGrid/utils.d.ts +8 -0
- package/dist/types/components/OwpTreeView/OwpSlotTreeView.d.ts +11 -0
- package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +11 -0
- package/dist/types/components/OwpZoomImageSlider/ZoomImage.d.ts +7 -0
- package/dist/types/components/layouts/index.d.ts +8 -0
- package/dist/types/components/layouts/layout1/Layout1.d.ts +10 -0
- package/dist/types/components/layouts/layout1/Layout1Config.d.ts +114 -0
- package/dist/types/components/layouts/layout1/components/FooterLayout1.d.ts +9 -0
- package/dist/types/components/layouts/layout1/components/LeftSideLayout1.d.ts +6 -0
- package/dist/types/components/layouts/layout1/components/NavbarToggleFabLayout1.d.ts +8 -0
- package/dist/types/components/layouts/layout1/components/NavbarWrapperLayout1.d.ts +5 -0
- package/dist/types/components/layouts/layout1/components/RightSideLayout1.d.ts +6 -0
- package/dist/types/components/layouts/layout1/components/ToolbarLayout1.d.ts +9 -0
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1.d.ts +5 -0
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1Content.d.ts +9 -0
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2.d.ts +5 -0
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2Content.d.ts +9 -0
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3.d.ts +9 -0
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3Content.d.ts +10 -0
- package/dist/types/components/layouts/layout2/Layout2.d.ts +10 -0
- package/dist/types/components/layouts/layout2/Layout2Config.d.ts +109 -0
- package/dist/types/components/layouts/layout2/components/FooterLayout2.d.ts +9 -0
- package/dist/types/components/layouts/layout2/components/LeftSideLayout2.d.ts +6 -0
- package/dist/types/components/layouts/layout2/components/NavbarLayout2.d.ts +9 -0
- package/dist/types/components/layouts/layout2/components/NavbarMobileLayout2.d.ts +9 -0
- package/dist/types/components/layouts/layout2/components/NavbarToggleFabLayout2.d.ts +8 -0
- package/dist/types/components/layouts/layout2/components/NavbarWrapperLayout2.d.ts +5 -0
- package/dist/types/components/layouts/layout2/components/RightSideLayout2.d.ts +6 -0
- package/dist/types/components/layouts/layout2/components/ToolbarLayout2.d.ts +9 -0
- package/dist/types/components/layouts/layout3/Layout3.d.ts +10 -0
- package/dist/types/components/layouts/layout3/Layout3Config.d.ts +110 -0
- package/dist/types/components/layouts/layout3/components/FooterLayout3.d.ts +9 -0
- package/dist/types/components/layouts/layout3/components/LeftSideLayout3.d.ts +6 -0
- package/dist/types/components/layouts/layout3/components/NavbarLayout3.d.ts +9 -0
- package/dist/types/components/layouts/layout3/components/NavbarMobileLayout3.d.ts +9 -0
- package/dist/types/components/layouts/layout3/components/NavbarWrapperLayout3.d.ts +5 -0
- package/dist/types/components/layouts/layout3/components/RightSideLayout3.d.ts +6 -0
- package/dist/types/components/layouts/layout3/components/ToolbarLayout3.d.ts +9 -0
- package/dist/types/components/layouts/shared-components/AdjustFontSize.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/DemoLayoutFooterContent.d.ts +5 -0
- package/dist/types/components/layouts/shared-components/DocumentationButton.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/FullScreenToggle.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/LanguageSwitcher.d.ts +7 -0
- package/dist/types/components/layouts/shared-components/Logo.d.ts +5 -0
- package/dist/types/components/layouts/shared-components/OwpLanguageSwitcherSelect.d.ts +7 -0
- package/dist/types/components/layouts/shared-components/OwpSettingsViewerDialog.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/PoweredByLinks.d.ts +5 -0
- package/dist/types/components/layouts/shared-components/PurchaseButton.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/UserMenu.d.ts +11 -0
- package/dist/types/components/layouts/shared-components/UserNavbarHeader.d.ts +5 -0
- package/dist/types/components/layouts/shared-components/configurator/Configurator.d.ts +6 -0
- package/dist/types/components/layouts/shared-components/configurator/SettingsPanel.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/configurator/ThemesPanel.d.ts +8 -0
- package/dist/types/components/layouts/shared-components/navbar/NavbarPinToggleButton.d.ts +10 -0
- package/dist/types/components/layouts/shared-components/navbar/NavbarToggleButton.d.ts +7 -0
- package/dist/types/components/layouts/shared-components/navbar/NavbarToggleFab.d.ts +10 -0
- package/dist/types/components/layouts/shared-components/navbar/navbarSlice.d.ts +18 -0
- package/dist/types/components/layouts/shared-components/navigation/Navigation.d.ts +3 -0
- package/dist/types/components/layouts/shared-components/navigation/NavigationSearch.d.ts +6 -0
- package/dist/types/components/layouts/shared-components/navigation/NavigationShortcuts.d.ts +6 -0
- package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts +86 -0
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanel.d.ts +5 -0
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts +9 -0
- package/dist/types/components/layouts/shared-components/quickPanel/quickPanelSlice.d.ts +14 -0
- package/dist/types/components/layouts/themeLayoutConfigs.d.ts +27 -0
- package/dist/types/components/layouts/themeLayouts.d.ts +13 -0
- package/dist/types/components/shared-components/LightDarkModeToggle.d.ts +8 -0
- package/dist/types/components/shared-components/PageBreadcrumb.d.ts +6 -0
- package/dist/types/components/shared-components/PageTitle.d.ts +11 -0
- package/dist/types/components/shared-components/data-table/DataTable.d.ts +3 -0
- package/dist/types/components/shared-components/data-table/DataTableTopToolbar.d.ts +6 -0
- package/dist/types/components/shared-components/data-table/utils/parseFromValuesOrFunc.d.ts +7 -0
- package/dist/types/components/shared-components/index.d.ts +7 -0
- package/dist/types/components/shared-components/tabs/OwpTab.d.ts +6 -0
- package/dist/types/components/shared-components/tabs/OwpTabs.d.ts +6 -0
- package/dist/types/components/withRouter/index.d.ts +1 -0
- package/dist/types/components/withRouter/withRouter.d.ts +14 -0
- package/dist/types/components/withRouterAndRef/index.d.ts +1 -0
- package/dist/types/components/withRouterAndRef/withRouterAndRef.d.ts +14 -0
- package/dist/types/context/OwpAppProvider.d.ts +15 -0
- package/dist/types/default-settings/OwpDefaultSettings.d.ts +640 -0
- package/dist/types/hooks/useCommonCodeList.d.ts +11 -0
- package/dist/types/hooks/useConfirm.d.ts +23 -0
- package/dist/types/hooks/useCurrentLanguage.d.ts +13 -0
- package/dist/types/hooks/useCurrentLogoSrc.d.ts +2 -0
- package/dist/types/hooks/useCurrentUserId.d.ts +2 -0
- package/dist/types/hooks/useDebounce.d.ts +7 -0
- package/dist/types/hooks/useDeepCompareEffect.d.ts +17 -0
- package/dist/types/hooks/useNavigation.d.ts +18 -0
- package/dist/types/hooks/usePrevious.d.ts +5 -0
- package/dist/types/hooks/useShortcuts.d.ts +2 -0
- package/dist/types/hooks/useStorage.d.ts +11 -0
- package/dist/types/hooks/useThemeMediaQuery.d.ts +7 -0
- package/dist/types/hooks/useTimeout.d.ts +6 -0
- package/dist/types/index.d.ts +103 -0
- package/dist/types/store/apiService.d.ts +3 -0
- package/dist/types/store/generateReducersFromSlices.d.ts +3 -0
- package/dist/types/store/hooks.d.ts +4 -0
- package/dist/types/store/lazyLoadedSlices.d.ts +6 -0
- package/dist/types/store/middleware.d.ts +14 -0
- package/dist/types/store/store.d.ts +10 -0
- package/dist/types/store/withReducer.d.ts +5 -0
- package/dist/types/store/withSlices.d.ts +11 -0
- package/dist/types/utils/CommonCodeUtils.d.ts +17 -0
- package/dist/types/utils/ErrorBoundary.d.ts +16 -0
- package/dist/types/utils/EventEmitter.d.ts +34 -0
- package/dist/types/utils/OwpNavigationHelper.d.ts +23 -0
- package/dist/types/utils/OwpUtils.d.ts +120 -0
- package/dist/types/utils/excelUtil.d.ts +20 -0
- package/dist/types/utils/treeGridExportExcelUtil.d.ts +6 -0
- package/dist/types/utils/treeGridUtil.d.ts +24 -0
- package/dist/types/utils/zipUtil.d.ts +10 -0
- package/package.json +125 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { OwpFlatNavItemType, OwpNavItemType } from '@/components/OwpNavigation/types/OwpNavItemType';
|
|
2
|
+
import { AppThunk } from '@/store/store';
|
|
3
|
+
import { WithSlice } from '@reduxjs/toolkit';
|
|
4
|
+
import { PartialDeep } from 'type-fest';
|
|
5
|
+
/**
|
|
6
|
+
* Redux Thunk actions related to the navigation store state
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Appends a navigation item to the navigation store state.
|
|
10
|
+
*/
|
|
11
|
+
export declare const appendNavigationItem: (item: OwpNavItemType, parentId?: string | null) => AppThunk;
|
|
12
|
+
/**
|
|
13
|
+
* Prepends a navigation item to the navigation store state.
|
|
14
|
+
*/
|
|
15
|
+
export declare const prependNavigationItem: (item: OwpNavItemType, parentId?: string | null) => AppThunk;
|
|
16
|
+
/**
|
|
17
|
+
* Adds a navigation item to the navigation store state at the specified index.
|
|
18
|
+
*/
|
|
19
|
+
export declare const updateNavigationItem: (id: string, item: PartialDeep<OwpNavItemType>) => AppThunk;
|
|
20
|
+
/**
|
|
21
|
+
* Removes a navigation item from the navigation store state.
|
|
22
|
+
*/
|
|
23
|
+
export declare const removeNavigationItem: (id: string) => AppThunk;
|
|
24
|
+
export declare const selectNavigationAll: (state: {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
}) => OwpFlatNavItemType[], selectNavigationIds: (state: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
}) => string[], selectNavigationItemById: (state: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}, id: string) => {
|
|
31
|
+
url?: string;
|
|
32
|
+
auth?: string[] | string;
|
|
33
|
+
translate?: string;
|
|
34
|
+
id: string;
|
|
35
|
+
title?: string;
|
|
36
|
+
subtitle?: string;
|
|
37
|
+
icon?: string;
|
|
38
|
+
iconClass?: string;
|
|
39
|
+
target?: string;
|
|
40
|
+
type?: string;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
active?: boolean;
|
|
43
|
+
exact?: boolean;
|
|
44
|
+
end?: boolean;
|
|
45
|
+
badge?: import("../../../../..").OwpNavBadgeType;
|
|
46
|
+
hasPermission?: boolean;
|
|
47
|
+
children?: string[];
|
|
48
|
+
order: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The navigation slice
|
|
52
|
+
*/
|
|
53
|
+
export declare const navigationSlice: any;
|
|
54
|
+
/**
|
|
55
|
+
* Lazy load
|
|
56
|
+
* */
|
|
57
|
+
declare module '@/store/lazyLoadedSlices' {
|
|
58
|
+
interface LazyLoadedSlices extends WithSlice<typeof navigationSlice> {
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export declare const setNavigation: any, resetNavigation: any;
|
|
62
|
+
export declare const selectNavigation: any;
|
|
63
|
+
export declare const selectFlatNavigation: ((state: unknown) => OwpFlatNavItemType[]) & {
|
|
64
|
+
clearCache: () => void;
|
|
65
|
+
resultsCount: () => number;
|
|
66
|
+
resetResultsCount: () => void;
|
|
67
|
+
} & {
|
|
68
|
+
resultFunc: (resultFuncArgs_0: any) => OwpFlatNavItemType[];
|
|
69
|
+
memoizedResultFunc: ((resultFuncArgs_0: any) => OwpFlatNavItemType[]) & {
|
|
70
|
+
clearCache: () => void;
|
|
71
|
+
resultsCount: () => number;
|
|
72
|
+
resetResultsCount: () => void;
|
|
73
|
+
};
|
|
74
|
+
lastResult: () => OwpFlatNavItemType[];
|
|
75
|
+
dependencies: [any];
|
|
76
|
+
recomputations: () => number;
|
|
77
|
+
resetRecomputations: () => void;
|
|
78
|
+
dependencyRecomputations: () => number;
|
|
79
|
+
resetDependencyRecomputations: () => void;
|
|
80
|
+
} & {
|
|
81
|
+
memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
82
|
+
argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
83
|
+
};
|
|
84
|
+
export type navigationSliceType = typeof navigationSlice;
|
|
85
|
+
declare const _default: any;
|
|
86
|
+
export default _default;
|
package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type QuickPanelToggleButtonProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* The quick panel toggle button.
|
|
7
|
+
*/
|
|
8
|
+
declare function QuickPanelToggleButton(props: QuickPanelToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default QuickPanelToggleButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WithSlice } from '@reduxjs/toolkit';
|
|
2
|
+
/**
|
|
3
|
+
* Quick Panel data slice.
|
|
4
|
+
*/
|
|
5
|
+
export declare const quickPanelSlice: any;
|
|
6
|
+
declare module '@/store/lazyLoadedSlices' {
|
|
7
|
+
interface LazyLoadedSlices extends WithSlice<typeof quickPanelSlice> {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const selectQuickPanelData: any, selectQuickPanelOpen: any;
|
|
11
|
+
export declare const removeEvents: any, toggleQuickPanel: any, openQuickPanel: any, closeQuickPanel: any;
|
|
12
|
+
export type dataSliceType = typeof quickPanelSlice;
|
|
13
|
+
declare const _default: any;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ThemeFormConfigTypes } from '@/components/OwpSettings/ThemeFormConfigTypes';
|
|
2
|
+
import { Layout1ConfigDefaultsType } from './layout1/Layout1Config';
|
|
3
|
+
import { Layout2ConfigDefaultsType } from './layout2/Layout2Config';
|
|
4
|
+
import { Layout3ConfigDefaultsType } from './layout3/Layout3Config';
|
|
5
|
+
/**
|
|
6
|
+
* The type definition for the theme layout defaults.
|
|
7
|
+
*/
|
|
8
|
+
export type themeLayoutDefaultsProps = Layout1ConfigDefaultsType | Layout3ConfigDefaultsType | Layout2ConfigDefaultsType;
|
|
9
|
+
/**
|
|
10
|
+
* The type definition for the theme layout.
|
|
11
|
+
*/
|
|
12
|
+
export type themeLayoutProps = {
|
|
13
|
+
title: string;
|
|
14
|
+
defaults: themeLayoutDefaultsProps;
|
|
15
|
+
form?: ThemeFormConfigTypes;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The type definition for the theme layout configs.
|
|
19
|
+
*/
|
|
20
|
+
export type themeLayoutConfigsProps = {
|
|
21
|
+
[key: string]: themeLayoutProps;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The theme layout configs.
|
|
25
|
+
*/
|
|
26
|
+
declare const themeLayoutConfigs: themeLayoutConfigsProps;
|
|
27
|
+
export default themeLayoutConfigs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The type definition for the theme layouts.
|
|
4
|
+
*/
|
|
5
|
+
export type themeLayoutsType = {
|
|
6
|
+
[key: string]: ComponentType<{
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The theme layouts.
|
|
12
|
+
*/
|
|
13
|
+
export declare const themeLayouts: themeLayoutsType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OwpThemeOption } from '@/components/OwpThemeSelector/ThemePreview';
|
|
2
|
+
type LightDarkModeToggleProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
lightTheme: OwpThemeOption;
|
|
5
|
+
darkTheme: OwpThemeOption;
|
|
6
|
+
};
|
|
7
|
+
declare function LightDarkModeToggle(props: LightDarkModeToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default LightDarkModeToggle;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbsProps } from '@mui/material/Breadcrumbs';
|
|
2
|
+
type PageBreadcrumbProps = BreadcrumbsProps & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function PageBreadcrumb(props: PageBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default PageBreadcrumb;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type PageTitleProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
backUrl?: string;
|
|
7
|
+
backTitle?: string;
|
|
8
|
+
badgeTitle?: string | ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare function PageTitle(props: PageTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default PageTitle;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MRT_RowData, MRT_TableInstance } from 'material-react-table';
|
|
2
|
+
export interface MRT_TopToolbarProps<TData extends MRT_RowData> {
|
|
3
|
+
table: MRT_TableInstance<TData>;
|
|
4
|
+
}
|
|
5
|
+
declare function DataTableTopToolbar<TData extends MRT_RowData>({ table }: MRT_TopToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default DataTableTopToolbar;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DropdownOption } from 'material-react-table';
|
|
2
|
+
declare const parseFromValuesOrFunc: <T, U>(fn: ((arg: U) => T) | T | undefined, arg: U) => T | undefined;
|
|
3
|
+
export declare const getValueAndLabel: (option?: DropdownOption) => {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
export default parseFromValuesOrFunc;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const OwpTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
3
|
+
}, "children" | "sx" | "icon" | "disabled" | "classes" | "style" | "action" | "className" | "label" | "tabIndex" | "value" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped"> & {
|
|
4
|
+
component?: React.ElementType;
|
|
5
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export { OwpTab };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const OwpTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
3
|
+
}, "children" | "sx" | "classes" | "style" | "action" | "className" | "variant" | "aria-label" | "aria-labelledby" | "onChange" | "slots" | "slotProps" | "value" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
4
|
+
component?: React.ElementType;
|
|
5
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export { OwpTabs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './withRouter';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useLocation, useNavigate } from 'react-router-dom';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
export type WithRouterProps = {
|
|
4
|
+
location?: ReturnType<typeof useLocation>;
|
|
5
|
+
params?: Record<string, string>;
|
|
6
|
+
navigate?: ReturnType<typeof useNavigate>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The withRouter function is a higher-order component that wraps a component with the useLocation, useParams, and useNavigate hooks from React Router.
|
|
10
|
+
* It passes the location, params, and navigate objects as props to the wrapped component.
|
|
11
|
+
* The component is memoized to prevent unnecessary re-renders.
|
|
12
|
+
*/
|
|
13
|
+
declare const withRouter: <Props extends WithRouterProps>(Component: ComponentType<Props>) => import("react").NamedExoticComponent<Omit<Props, keyof WithRouterProps>>;
|
|
14
|
+
export default withRouter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './withRouterAndRef';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { useLocation, useNavigate } from 'react-router-dom';
|
|
3
|
+
export type WithRouterProps = {
|
|
4
|
+
location: ReturnType<typeof useLocation>;
|
|
5
|
+
params: Record<string, string>;
|
|
6
|
+
navigate: ReturnType<typeof useNavigate>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The withRouter function is a higher-order component that wraps a component with the useLocation, useParams, and useNavigate hooks from React Router.
|
|
10
|
+
* It passes the location, params, and navigate objects as props to the wrapped component.
|
|
11
|
+
* The component is memoized to prevent unnecessary re-renders.
|
|
12
|
+
*/
|
|
13
|
+
declare const withRouterAndRef: <Props extends WithRouterProps>(Component: ComponentType<Props>) => () => import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
14
|
+
export default withRouterAndRef;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OwpSettingsConfigType } from '@/components/OwpSettings/OwpSettings';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface OwpAppConfigs {
|
|
4
|
+
routesConfig: any;
|
|
5
|
+
settingsConfig: OwpSettingsConfigType;
|
|
6
|
+
themesConfig: any;
|
|
7
|
+
navigationConfig: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const OwpAppContext: import("react").Context<OwpAppConfigs>;
|
|
10
|
+
export interface OwpAppProviderProps {
|
|
11
|
+
configs: OwpAppConfigs;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const OwpAppProvider: ({ configs, children }: OwpAppProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const useOwpAppContext: () => OwpAppConfigs;
|