@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,20 @@
|
|
|
1
|
+
import { OwpNavItemType } from './types/OwpNavItemType';
|
|
2
|
+
export type OwpNavigationProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
dense?: boolean;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
onItemClick?: (T: OwpNavItemType) => void;
|
|
7
|
+
navigation?: OwpNavItemType[];
|
|
8
|
+
layout?: 'horizontal' | 'vertical' | 'vertical-2';
|
|
9
|
+
firstLevel?: boolean;
|
|
10
|
+
selectedId?: string;
|
|
11
|
+
checkPermission?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* OwpNavigation
|
|
15
|
+
* Component for displaying a navigation bar which contains OwpNavItem components
|
|
16
|
+
* and acts as parent for providing props to its children components
|
|
17
|
+
*/
|
|
18
|
+
declare function OwpNavigation(props: OwpNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const MemoizedOwpNavigation: import("react").MemoExoticComponent<typeof OwpNavigation>;
|
|
20
|
+
export { MemoizedOwpNavigation as OwpNavigation };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OwpNavigationProps } from '../OwpNavigation';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavHorizontalLayout1 is a react component used for building and
|
|
4
|
+
* rendering horizontal navigation menus, using the Material UI List component.
|
|
5
|
+
*/
|
|
6
|
+
declare function OwpNavHorizontalLayout1(props: OwpNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { OwpNavHorizontalLayout1 };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Location } from 'history';
|
|
2
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
+
type OwpNavHorizontalCollapseProps = OwpNavItemComponentProps & {
|
|
4
|
+
location: Location;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* OwpNavHorizontalCollapse component helps rendering Horizontal Owp Navigation Item with children
|
|
8
|
+
* Used in OwpNavVerticalItems and OwpNavHorizontalItems
|
|
9
|
+
*/
|
|
10
|
+
declare function OwpNavHorizontalCollapse(props: OwpNavHorizontalCollapseProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const NavHorizontalCollapseWithMemo: import("react").MemoExoticComponent<typeof OwpNavHorizontalCollapse>;
|
|
12
|
+
export { NavHorizontalCollapseWithMemo as OwpNavHorizontalCollapse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WithRouterProps } from '@/components/withRouter/withRouter';
|
|
2
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
+
type OwpNavHorizontalGroupProps = OwpNavItemComponentProps & WithRouterProps;
|
|
4
|
+
/**
|
|
5
|
+
* OwpNavHorizontalGroup.
|
|
6
|
+
* Represents a horizontal group component used in the Owp navigation navigation list.
|
|
7
|
+
* It shows the list item as well as its children with a flyout effect.
|
|
8
|
+
*/
|
|
9
|
+
declare function OwpNavHorizontalGroup(props: OwpNavHorizontalGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const NavHorizontalGroupWithMemo: import("react").MemoExoticComponent<typeof OwpNavHorizontalGroup>;
|
|
11
|
+
export { NavHorizontalGroupWithMemo as OwpNavHorizontalGroup };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WithRouterProps } from '@/components/withRouter/withRouter';
|
|
2
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
+
type OwpNavHorizontalItemProps = OwpNavItemComponentProps & WithRouterProps;
|
|
4
|
+
/**
|
|
5
|
+
* OwpNavHorizontalItem is a component responsible for rendering the navigation element in the horizontal menu in the Owp theme.
|
|
6
|
+
*/
|
|
7
|
+
declare function OwpNavHorizontalItem(props: OwpNavHorizontalItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const NavHorizontalItemWithMemo: import("react").MemoExoticComponent<typeof OwpNavHorizontalItem>;
|
|
9
|
+
export { NavHorizontalItemWithMemo as OwpNavHorizontalItem };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WithRouterProps } from '@/components/withRouter/withRouter';
|
|
2
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
+
type OwpNavHorizontalLinkProps = OwpNavItemComponentProps & WithRouterProps;
|
|
4
|
+
declare function OwpNavHorizontalLink(props: OwpNavHorizontalLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const NavHorizontalLinkWithMemo: import("react").MemoExoticComponent<typeof OwpNavHorizontalLink>;
|
|
6
|
+
export { NavHorizontalLinkWithMemo as OwpNavHorizontalLink };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OwpNavigation } from './OwpNavigation';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Pathname } from 'history';
|
|
2
|
+
import { OwpNavItemType } from './types/OwpNavItemType';
|
|
3
|
+
/**
|
|
4
|
+
* Determines whether a given URL is present in the parent's child list or not.
|
|
5
|
+
*/
|
|
6
|
+
declare const isUrlInChildren: (parent: OwpNavItemType, url: Pathname) => boolean;
|
|
7
|
+
export { isUrlInChildren };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PartialDeep } from 'type-fest';
|
|
2
|
+
import { OwpNavItemType } from '../types/OwpNavItemType';
|
|
3
|
+
/**
|
|
4
|
+
* OwpNavItemModel
|
|
5
|
+
* Constructs a navigation item based on OwpNavItemType
|
|
6
|
+
*/
|
|
7
|
+
declare function OwpNavItemModel(data?: PartialDeep<OwpNavItemType>): OwpNavItemType;
|
|
8
|
+
export { OwpNavItemModel };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SxProps } from '@mui/system';
|
|
2
|
+
import { OwpNavBadgeType } from './OwpNavBadgeType';
|
|
3
|
+
/**
|
|
4
|
+
* OwpNavItemType
|
|
5
|
+
* A type for Owp navigation item and its properties.
|
|
6
|
+
*/
|
|
7
|
+
export type OwpNavItemType = {
|
|
8
|
+
id: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
translate?: string;
|
|
11
|
+
auth?: string[] | string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
iconClass?: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
target?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
sx?: SxProps;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
active?: boolean;
|
|
21
|
+
exact?: boolean;
|
|
22
|
+
end?: boolean;
|
|
23
|
+
badge?: OwpNavBadgeType;
|
|
24
|
+
children?: OwpNavItemType[];
|
|
25
|
+
hasPermission?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type OwpFlatNavItemType = Omit<OwpNavItemType, 'children' | 'sx'> & {
|
|
28
|
+
children?: string[];
|
|
29
|
+
order: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OwpNavigationProps } from '../OwpNavigation';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavVerticalLayout1
|
|
4
|
+
* This component is used to render vertical navigations using
|
|
5
|
+
* the Material-UI List component. It accepts the OwpNavigationProps props
|
|
6
|
+
* and renders the OwpNavItem components accordingly
|
|
7
|
+
*/
|
|
8
|
+
declare function OwpNavVerticalLayout1(props: OwpNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { OwpNavVerticalLayout1 };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OwpNavigationProps } from '../OwpNavigation';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavVerticalLayout2 component represents a vertical navigation layout with material UI elements.
|
|
4
|
+
* It displays the navigation object in the structured vertical menu and allows to handle onClick events for each navigation item.
|
|
5
|
+
*/
|
|
6
|
+
declare function OwpNavVerticalLayout2(props: OwpNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { OwpNavVerticalLayout2 };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavVerticalCollapse component used for vertical navigation items with collapsible children.
|
|
4
|
+
*/
|
|
5
|
+
declare function OwpNavVerticalCollapse(props: OwpNavItemComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const NavVerticalCollapse: typeof OwpNavVerticalCollapse;
|
|
7
|
+
export { NavVerticalCollapse as OwpNavVerticalCollapse };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavVerticalGroup is a component used to render a group of navigation items in a vertical layout.
|
|
4
|
+
*/
|
|
5
|
+
declare function OwpNavVerticalGroup(props: OwpNavItemComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const NavVerticalGroup: typeof OwpNavVerticalGroup;
|
|
7
|
+
export { NavVerticalGroup as OwpNavVerticalGroup };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavVerticalItem is a React component used to render OwpNavItem as part of the Owp navigational component.
|
|
4
|
+
*/
|
|
5
|
+
declare function OwpNavVerticalItem(props: OwpNavItemComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const NavVerticalItem: typeof OwpNavVerticalItem;
|
|
7
|
+
export { NavVerticalItem as OwpNavVerticalItem };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
2
|
+
/**
|
|
3
|
+
* OwpNavVerticalLink
|
|
4
|
+
* Create a vertical Link to use inside the navigation component.
|
|
5
|
+
*/
|
|
6
|
+
declare function OwpNavVerticalLink(props: OwpNavItemComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const NavVerticalLink: typeof OwpNavVerticalLink;
|
|
8
|
+
export { NavVerticalLink as OwpNavVerticalLink };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OwpNavigationProps } from '../../OwpNavigation';
|
|
2
|
+
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
+
export type OwpNavVerticalTabProps = Omit<OwpNavigationProps, 'navigation'> & OwpNavItemComponentProps;
|
|
4
|
+
/**
|
|
5
|
+
* The `OwpNavVerticalTab` component renders vertical navigation item with an adaptable
|
|
6
|
+
* layout to be used within the `OwpNavigation`. It only supports the `type`s of 'item',
|
|
7
|
+
* 'selection' and 'divider'
|
|
8
|
+
* */
|
|
9
|
+
declare function OwpNavVerticalTab(props: OwpNavVerticalTabProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const NavVerticalTab: typeof OwpNavVerticalTab;
|
|
11
|
+
export { NavVerticalTab as OwpNavVerticalTab };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { NumericFormat } from 'react-number-format';
|
|
4
|
+
declare const OwpNumberField: ({ className, inputAlign, ...props }: ComponentProps<typeof NumericFormat<TextFieldProps & {
|
|
5
|
+
inputAlign?: "left" | "center" | "right";
|
|
6
|
+
}>>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { OwpNumberField };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Theme } from '@mui/system';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
declare const OwpPageCarded: import("react").NamedExoticComponent<((((import("@mui/system").SystemCssProperties<Theme> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
leftSidebarContent?: ReactNode;
|
|
6
|
+
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
7
|
+
rightSidebarContent?: ReactNode;
|
|
8
|
+
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
9
|
+
header?: ReactNode;
|
|
10
|
+
content?: ReactNode;
|
|
11
|
+
scroll?: "normal" | "page" | "content";
|
|
12
|
+
leftSidebarOpen?: boolean;
|
|
13
|
+
rightSidebarOpen?: boolean;
|
|
14
|
+
leftSidebarWidth?: number;
|
|
15
|
+
rightSidebarWidth?: number;
|
|
16
|
+
rightSidebarOnClose?: () => void;
|
|
17
|
+
leftSidebarOnClose?: () => void;
|
|
18
|
+
}) | (import("@mui/system").CSSPseudoSelectorProps<Theme> & {
|
|
19
|
+
className?: string;
|
|
20
|
+
leftSidebarContent?: ReactNode;
|
|
21
|
+
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
22
|
+
rightSidebarContent?: ReactNode;
|
|
23
|
+
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
24
|
+
header?: ReactNode;
|
|
25
|
+
content?: ReactNode;
|
|
26
|
+
scroll?: "normal" | "page" | "content";
|
|
27
|
+
leftSidebarOpen?: boolean;
|
|
28
|
+
rightSidebarOpen?: boolean;
|
|
29
|
+
leftSidebarWidth?: number;
|
|
30
|
+
rightSidebarWidth?: number;
|
|
31
|
+
rightSidebarOnClose?: () => void;
|
|
32
|
+
leftSidebarOnClose?: () => void;
|
|
33
|
+
}) | Omit<import("@mui/system").CSSSelectorObjectOrCssVariables<Theme> & {
|
|
34
|
+
className?: string;
|
|
35
|
+
leftSidebarContent?: ReactNode;
|
|
36
|
+
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
37
|
+
rightSidebarContent?: ReactNode;
|
|
38
|
+
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
39
|
+
header?: ReactNode;
|
|
40
|
+
content?: ReactNode;
|
|
41
|
+
scroll?: "normal" | "page" | "content";
|
|
42
|
+
leftSidebarOpen?: boolean;
|
|
43
|
+
rightSidebarOpen?: boolean;
|
|
44
|
+
leftSidebarWidth?: number;
|
|
45
|
+
rightSidebarWidth?: number;
|
|
46
|
+
rightSidebarOnClose?: () => void;
|
|
47
|
+
leftSidebarOnClose?: () => void;
|
|
48
|
+
}, "ref">) & import("react").RefAttributes<{
|
|
49
|
+
toggleLeftSidebar: (T: boolean) => void;
|
|
50
|
+
toggleRightSidebar: (T: boolean) => void;
|
|
51
|
+
}>) & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>) & {}>;
|
|
52
|
+
export { OwpPageCarded };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface OwpPageCardedHeaderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
header?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare function OwpPageCardedHeader(props: OwpPageCardedHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { OwpPageCardedHeader };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SwipeableDrawerProps } from '@mui/material/SwipeableDrawer/SwipeableDrawer';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the OwpPageCardedSidebar component.
|
|
5
|
+
*/
|
|
6
|
+
type OwpPageCardedSidebarProps = {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
position?: SwipeableDrawerProps['anchor'];
|
|
9
|
+
variant?: SwipeableDrawerProps['variant'];
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The OwpPageCardedSidebar component is a sidebar for the OwpPageCarded component.
|
|
15
|
+
*/
|
|
16
|
+
declare const OwpPageCardedSidebar: import("react").ForwardRefExoticComponent<OwpPageCardedSidebarProps & import("react").RefAttributes<{
|
|
17
|
+
toggleSidebar: (T: boolean) => void;
|
|
18
|
+
}>>;
|
|
19
|
+
export { OwpPageCardedSidebar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the OwpPageCardedSidebarContent component.
|
|
4
|
+
*/
|
|
5
|
+
type OwpPageCardedSidebarContentProps = {
|
|
6
|
+
innerScroll?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The OwpPageCardedSidebarContent component is a content container for the OwpPageCardedSidebar component.
|
|
11
|
+
*/
|
|
12
|
+
declare function OwpPageCardedSidebarContent(props: OwpPageCardedSidebarContentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { OwpPageCardedSidebarContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OwpPageCarded } from './OwpPageCarded';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface OwpPageContentProps {
|
|
2
|
+
title?: React.ReactNode;
|
|
3
|
+
leftSlot?: React.ReactNode;
|
|
4
|
+
centerSlot?: React.ReactNode;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const OwpPageContent: ({ title, leftSlot, centerSlot, actions, children, }: OwpPageContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { OwpPageContent };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Theme } from '@mui/system';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
declare const OwpPageSimple: import("react").NamedExoticComponent<((((import("@mui/system").SystemCssProperties<Theme> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
leftSidebarContent?: ReactNode;
|
|
6
|
+
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
7
|
+
rightSidebarContent?: ReactNode;
|
|
8
|
+
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
9
|
+
header?: ReactNode;
|
|
10
|
+
content?: ReactNode;
|
|
11
|
+
scroll?: "normal" | "page" | "content";
|
|
12
|
+
leftSidebarOpen?: boolean;
|
|
13
|
+
rightSidebarOpen?: boolean;
|
|
14
|
+
leftSidebarWidth?: number;
|
|
15
|
+
rightSidebarWidth?: number;
|
|
16
|
+
rightSidebarOnClose?: () => void;
|
|
17
|
+
leftSidebarOnClose?: () => void;
|
|
18
|
+
}) | (import("@mui/system").CSSPseudoSelectorProps<Theme> & {
|
|
19
|
+
className?: string;
|
|
20
|
+
leftSidebarContent?: ReactNode;
|
|
21
|
+
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
22
|
+
rightSidebarContent?: ReactNode;
|
|
23
|
+
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
24
|
+
header?: ReactNode;
|
|
25
|
+
content?: ReactNode;
|
|
26
|
+
scroll?: "normal" | "page" | "content";
|
|
27
|
+
leftSidebarOpen?: boolean;
|
|
28
|
+
rightSidebarOpen?: boolean;
|
|
29
|
+
leftSidebarWidth?: number;
|
|
30
|
+
rightSidebarWidth?: number;
|
|
31
|
+
rightSidebarOnClose?: () => void;
|
|
32
|
+
leftSidebarOnClose?: () => void;
|
|
33
|
+
}) | Omit<import("@mui/system").CSSSelectorObjectOrCssVariables<Theme> & {
|
|
34
|
+
className?: string;
|
|
35
|
+
leftSidebarContent?: ReactNode;
|
|
36
|
+
leftSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
37
|
+
rightSidebarContent?: ReactNode;
|
|
38
|
+
rightSidebarVariant?: "permanent" | "persistent" | "temporary";
|
|
39
|
+
header?: ReactNode;
|
|
40
|
+
content?: ReactNode;
|
|
41
|
+
scroll?: "normal" | "page" | "content";
|
|
42
|
+
leftSidebarOpen?: boolean;
|
|
43
|
+
rightSidebarOpen?: boolean;
|
|
44
|
+
leftSidebarWidth?: number;
|
|
45
|
+
rightSidebarWidth?: number;
|
|
46
|
+
rightSidebarOnClose?: () => void;
|
|
47
|
+
leftSidebarOnClose?: () => void;
|
|
48
|
+
}, "ref">) & import("react").RefAttributes<{
|
|
49
|
+
toggleLeftSidebar: (T: boolean) => void;
|
|
50
|
+
toggleRightSidebar: (T: boolean) => void;
|
|
51
|
+
}>) & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>) & {}>;
|
|
52
|
+
export { OwpPageSimple };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the OwpPageSimpleHeader component.
|
|
4
|
+
*/
|
|
5
|
+
type OwpPageSimpleHeaderProps = {
|
|
6
|
+
className?: string;
|
|
7
|
+
header?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The OwpPageSimpleHeader component is a sub-component of the OwpPageSimple layout component.
|
|
11
|
+
* It provides a header area for the layout.
|
|
12
|
+
*/
|
|
13
|
+
declare function OwpPageSimpleHeader(props: OwpPageSimpleHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { OwpPageSimpleHeader };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SwipeableDrawerProps } from '@mui/material/SwipeableDrawer/SwipeableDrawer';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the OwpPageSimpleSidebar component.
|
|
5
|
+
*/
|
|
6
|
+
type OwpPageSimpleSidebarProps = {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
position?: SwipeableDrawerProps['anchor'];
|
|
9
|
+
variant?: SwipeableDrawerProps['variant'];
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The OwpPageSimpleSidebar component.
|
|
15
|
+
*/
|
|
16
|
+
declare const OwpPageSimpleSidebar: import("react").ForwardRefExoticComponent<OwpPageSimpleSidebarProps & import("react").RefAttributes<{
|
|
17
|
+
toggleSidebar: (T: boolean) => void;
|
|
18
|
+
}>>;
|
|
19
|
+
export { OwpPageSimpleSidebar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the OwpPageSimpleSidebarContent component.
|
|
4
|
+
*/
|
|
5
|
+
type OwpPageSimpleSidebarContentProps = {
|
|
6
|
+
innerScroll?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The OwpPageSimpleSidebarContent component is a content container for the OwpPageSimpleSidebar component.
|
|
11
|
+
*/
|
|
12
|
+
declare function OwpPageSimpleSidebarContent(props: OwpPageSimpleSidebarContentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { OwpPageSimpleSidebarContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OwpPageSimple } from './OwpPageSimple';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface OwpPageTitleProps {
|
|
2
|
+
title?: React.ReactNode;
|
|
3
|
+
leftSlot?: React.ReactNode;
|
|
4
|
+
centerSlot?: React.ReactNode;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const OwpPageTitle: ({ title, leftSlot, centerSlot, actions }: OwpPageTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { OwpPageTitle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type DatePickerValue = string | Date;
|
|
2
|
+
interface OwnProps {
|
|
3
|
+
valueFormatter?: string;
|
|
4
|
+
value?: DatePickerValue;
|
|
5
|
+
useRange?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DatePickerInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").FilledTextFieldProps & OwnProps, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & OwnProps, "ref"> | Omit<import("@mui/material").StandardTextFieldProps & OwnProps, "ref">) & import("react").RefAttributes<unknown>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { DatePickerProps } from 'react-datepicker';
|
|
3
|
+
export type DatePickerValue = string | Date;
|
|
4
|
+
interface OwnProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
variant?: TextFieldProps['variant'];
|
|
8
|
+
sx?: TextFieldProps['sx'];
|
|
9
|
+
value?: DatePickerValue;
|
|
10
|
+
disabledFutureDates?: boolean;
|
|
11
|
+
showMonthPicker?: boolean;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
onChange?: (value?: DatePickerValue) => void;
|
|
14
|
+
textFieldProps?: Omit<TextFieldProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
15
|
+
}
|
|
16
|
+
type OwpDatePickerProps = OwnProps & DatePickerProps;
|
|
17
|
+
declare const OwpDatePicker: ({ className, label, variant, sx, value, onChange, fullWidth, showYearPicker, showMonthPicker, showTimeInput, textFieldProps, disabledFutureDates, ...datePickerProps }: OwpDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { OwpDatePicker };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { DatePickerProps } from 'react-datepicker';
|
|
3
|
+
type DatePickerValue = string | Date;
|
|
4
|
+
interface OwnProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
variant?: TextFieldProps['variant'];
|
|
8
|
+
sx?: TextFieldProps['sx'];
|
|
9
|
+
value?: DatePickerValue;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
disabledFutureDates?: boolean;
|
|
12
|
+
onChange?: (value?: DatePickerValue) => void;
|
|
13
|
+
showYearPicker?: boolean;
|
|
14
|
+
showMonthPicker?: boolean;
|
|
15
|
+
textFieldProps?: Omit<TextFieldProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
16
|
+
}
|
|
17
|
+
type OwpDatePickerProps = OwnProps & DatePickerProps;
|
|
18
|
+
declare const OwpDateRangePicker: ({ className, label, variant, sx, value, fullWidth, disabledFutureDates, onChange, showYearPicker, showMonthPicker, textFieldProps, ...datePickerProps }: OwpDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { OwpDateRangePicker };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DatePickerValue } from '@/components/OwpPicker/OwpDatePicker';
|
|
2
|
+
import { TextFieldProps } from '@mui/material';
|
|
3
|
+
import { DatePickerProps } from 'react-datepicker';
|
|
4
|
+
import 'react-datepicker/dist/react-datepicker.css';
|
|
5
|
+
interface WeekPickerProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
variant?: TextFieldProps['variant'];
|
|
9
|
+
sx?: TextFieldProps['sx'];
|
|
10
|
+
value?: DatePickerValue;
|
|
11
|
+
disabledFutureDates?: boolean;
|
|
12
|
+
showMonthPicker?: boolean;
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
onChange?: (value?: DatePickerValue) => void;
|
|
15
|
+
textFieldProps?: Omit<TextFieldProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
16
|
+
}
|
|
17
|
+
type OwpDatePickerProps = WeekPickerProps & DatePickerProps;
|
|
18
|
+
declare const WeekPicker: ({ label, variant, sx, value, onChange, fullWidth, showWeekNumbers, textFieldProps, ...datePickerProps }: OwpDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default WeekPicker;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { DatePickerProps } from 'react-datepicker';
|
|
3
|
+
import 'react-datepicker/dist/react-datepicker.css';
|
|
4
|
+
type DatePickerValue = string | Date;
|
|
5
|
+
interface OwnProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
variant?: TextFieldProps['variant'];
|
|
9
|
+
sx?: TextFieldProps['sx'];
|
|
10
|
+
value?: DatePickerValue;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
disabledFutureDates?: boolean;
|
|
13
|
+
onChange?: (value?: DatePickerValue) => void;
|
|
14
|
+
textFieldProps?: Omit<TextFieldProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
15
|
+
}
|
|
16
|
+
type OwpDatePickerProps = OwnProps & DatePickerProps;
|
|
17
|
+
declare const OwpYearRangePicker: ({ className, label, variant, sx, value, fullWidth, disabledFutureDates, onChange, textFieldProps, ...datePickerProps }: OwpDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { OwpYearRangePicker };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import 'perfect-scrollbar/css/perfect-scrollbar.css';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type OwpScrollbarsProps = {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
enable?: boolean;
|
|
8
|
+
scrollToTopOnChildChange?: boolean;
|
|
9
|
+
scrollToTopOnRouteChange?: boolean;
|
|
10
|
+
option?: {
|
|
11
|
+
wheelPropagation?: boolean;
|
|
12
|
+
suppressScrollX?: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const OwpScrollbars: import("react").ForwardRefExoticComponent<OwpScrollbarsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { OwpScrollbars };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OwpScrollbars } from './OwpScrollbars';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { OwpFlatNavItemType } from '../OwpNavigation/types/OwpNavItemType';
|
|
4
|
+
/**
|
|
5
|
+
* Props for OwpSearch component
|
|
6
|
+
*/
|
|
7
|
+
type OwpSearchProps = {
|
|
8
|
+
className?: string;
|
|
9
|
+
navigation: OwpFlatNavItemType[];
|
|
10
|
+
variant?: 'basic' | 'full';
|
|
11
|
+
trigger?: ReactNode;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
noResults?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* OwpSearch component
|
|
17
|
+
*/
|
|
18
|
+
declare function OwpSearch(props: OwpSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const OwpSearchMemo: React.MemoExoticComponent<typeof OwpSearch>;
|
|
20
|
+
export { OwpSearchMemo as OwpSearch };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OwpSearch } from './OwpSearch';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface OwpSearchFilterProps {
|
|
2
|
+
title?: React.ReactNode | string;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
actions?: React.ReactNode;
|
|
5
|
+
onSubmit?: () => void;
|
|
6
|
+
onReset?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const OwpSearchFilter: ({ title, children, actions, onSubmit, onReset }: OwpSearchFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { OwpSearchFilter };
|