@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,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type UseEffectParamsType = Parameters<typeof React.useEffect>;
|
|
3
|
+
type EffectCallbackType = UseEffectParamsType[0];
|
|
4
|
+
type DependencyListType = UseEffectParamsType[1];
|
|
5
|
+
type UseEffectReturn = ReturnType<typeof React.useEffect>;
|
|
6
|
+
/**
|
|
7
|
+
* The isPrimitive function checks if a value is a primitive type.
|
|
8
|
+
* It returns true if the value is null, undefined, a string, a boolean, or a number.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDeepCompareMemoize<T>(value: T): T;
|
|
11
|
+
/**
|
|
12
|
+
* The isPrimitive function checks if a value is a primitive type.
|
|
13
|
+
* It returns true if the value is null, undefined, a string, a boolean, or a number.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useDeepCompareEffect(callback: EffectCallbackType, dependencies: DependencyListType): UseEffectReturn;
|
|
16
|
+
export declare function useDeepCompareEffectNoCheck(callback: EffectCallbackType, dependencies: DependencyListType): UseEffectReturn;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type Navigation = {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
translate: string;
|
|
5
|
+
type: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const useGetNavigationList: () => (Navigation & {
|
|
9
|
+
children?: Array<Navigation>;
|
|
10
|
+
})[];
|
|
11
|
+
export declare const useSetNavigationList: () => (args_0: typeof import("jotai/utils").RESET | (Navigation & {
|
|
12
|
+
children?: Array<Navigation>;
|
|
13
|
+
})[] | ((prev: (Navigation & {
|
|
14
|
+
children?: Array<Navigation>;
|
|
15
|
+
})[]) => typeof import("jotai/utils").RESET | (Navigation & {
|
|
16
|
+
children?: Array<Navigation>;
|
|
17
|
+
})[])) => void;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from '@mui/system/createTheme/createTheme';
|
|
2
|
+
/**
|
|
3
|
+
* The useThemeMediaQuery function is a custom hook that returns a boolean indicating whether the current screen matches the specified media query.
|
|
4
|
+
* It takes in a themeCallbackFunc as a parameter, which is a function that returns a string representing the media query to match.
|
|
5
|
+
* It returns a boolean indicating whether the current screen matches the specified media query.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useThemeMediaQuery(themeCallbackFunc: (theme: Theme) => string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The useTimeout function is a custom hook that sets a timeout for a given callback function.
|
|
3
|
+
* It takes in a callback function and a delay time in milliseconds as parameters.
|
|
4
|
+
* It returns nothing.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useTimeout(callback: () => void, delay: number): void;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export * from './auth/authRoles';
|
|
2
|
+
export * from './colors/owpDark';
|
|
3
|
+
export * from './colors/skyBlue';
|
|
4
|
+
export { DialogsProvider } from '@toolpad/core/useDialogs';
|
|
5
|
+
export * from './context/OwpAppProvider';
|
|
6
|
+
export * from './hooks/useCommonCodeList';
|
|
7
|
+
export * from './hooks/useConfirm';
|
|
8
|
+
export * from './hooks/useCurrentLanguage';
|
|
9
|
+
export * from './hooks/useCurrentLogoSrc';
|
|
10
|
+
export * from './hooks/useCurrentUserId';
|
|
11
|
+
export * from './hooks/useDebounce';
|
|
12
|
+
export * from './hooks/useNavigation';
|
|
13
|
+
export * from './hooks/usePrevious';
|
|
14
|
+
export * from './hooks/useDeepCompareEffect';
|
|
15
|
+
export * from './hooks/useShortcuts';
|
|
16
|
+
export * from './hooks/useStorage';
|
|
17
|
+
export * from './hooks/useThemeMediaQuery';
|
|
18
|
+
export * from './hooks/useTimeout';
|
|
19
|
+
export * from './store/store';
|
|
20
|
+
export * from './utils/CommonCodeUtils';
|
|
21
|
+
export * from './utils/ErrorBoundary';
|
|
22
|
+
export * from './utils/excelUtil';
|
|
23
|
+
export * from './utils/OwpUtils';
|
|
24
|
+
export * from './utils/treeGridExportExcelUtil';
|
|
25
|
+
export * from './utils/treeGridUtil';
|
|
26
|
+
export * from './utils/zipUtil';
|
|
27
|
+
export * from './components/layouts/themeLayouts';
|
|
28
|
+
export * from './components/layouts/shared-components/OwpLanguageSwitcherSelect';
|
|
29
|
+
export * from './components/layouts/shared-components/OwpSettingsViewerDialog';
|
|
30
|
+
export * from './components/OwpAutoLogoutDialog/OwpAutoLogoutDialog';
|
|
31
|
+
export * from './components/OwpBarcodeInput/OwpBarcodeInputField';
|
|
32
|
+
export * from './components/OwpButtonDelete';
|
|
33
|
+
export * from './components/OwpButtonSave';
|
|
34
|
+
export * from './components/OwpCommonDialog';
|
|
35
|
+
export * from './components/OwpDialog';
|
|
36
|
+
export * from './components/OwpExportExcelButton/OwpExportExcelButton';
|
|
37
|
+
export * from './components/OwpFileUploadButton/OwpFileUploadButton';
|
|
38
|
+
export * from './components/OwpLayout';
|
|
39
|
+
export * from './components/OwpLoading';
|
|
40
|
+
export * from './components/OwpMessage';
|
|
41
|
+
export * from './components/OwpNavigation';
|
|
42
|
+
export * from './components/OwpNavigation/horizontal/OwpNavHorizontalLayout1';
|
|
43
|
+
export * from './components/OwpNavigation/horizontal/types/OwpNavHorizontalCollapse';
|
|
44
|
+
export * from './components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup';
|
|
45
|
+
export * from './components/OwpNavigation/horizontal/types/OwpNavHorizontalItem';
|
|
46
|
+
export * from './components/OwpNavigation/horizontal/types/OwpNavHorizontalLink';
|
|
47
|
+
export * from './components/OwpNavigation/isUrlInChildren';
|
|
48
|
+
export * from './components/OwpNavigation/models/OwpNavItemModel';
|
|
49
|
+
export * from './components/OwpNavigation/OwpNavBadge';
|
|
50
|
+
export * from './components/OwpNavigation/OwpNavItem';
|
|
51
|
+
export * from './components/OwpNavigation/types/OwpNavBadgeType';
|
|
52
|
+
export * from './components/OwpNavigation/types/OwpNavItemType';
|
|
53
|
+
export * from './components/OwpNavigation/vertical/OwpNavVerticalLayout1';
|
|
54
|
+
export * from './components/OwpNavigation/vertical/OwpNavVerticalLayout2';
|
|
55
|
+
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalCollapse';
|
|
56
|
+
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalGroup';
|
|
57
|
+
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalItem';
|
|
58
|
+
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalLink';
|
|
59
|
+
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalTab';
|
|
60
|
+
export * from './components/OwpNumberField';
|
|
61
|
+
export * from './components/OwpPageCarded';
|
|
62
|
+
export * from './components/OwpPageCarded/OwpPageCardedHeader';
|
|
63
|
+
export * from './components/OwpPageCarded/OwpPageCardedSidebar';
|
|
64
|
+
export * from './components/OwpPageCarded/OwpPageCardedSidebarContent';
|
|
65
|
+
export * from './components/OwpPageContent';
|
|
66
|
+
export * from './components/OwpPageLockLoading';
|
|
67
|
+
export * from './components/OwpPageSimple';
|
|
68
|
+
export * from './components/OwpPageSimple/OwpPageSimpleHeader';
|
|
69
|
+
export * from './components/OwpPageSimple/OwpPageSimpleSidebar';
|
|
70
|
+
export * from './components/OwpPageSimple/OwpPageSimpleSidebarContent';
|
|
71
|
+
export * from './components/OwpPageTitle';
|
|
72
|
+
export * from './components/OwpPicker/OwpDatePicker';
|
|
73
|
+
export * from './components/OwpPicker/OwpDateRangePicker';
|
|
74
|
+
export * from './components/OwpPicker/OwpWeekDatePicker';
|
|
75
|
+
export * from './components/OwpPicker/OwpYearRangePicker';
|
|
76
|
+
export * from './components/OwpScrollbars';
|
|
77
|
+
export * from './components/OwpSearch';
|
|
78
|
+
export * from './components/OwpSearchFilter';
|
|
79
|
+
export * from './components/OwpSection';
|
|
80
|
+
export * from './components/OwpSettings';
|
|
81
|
+
export * from './components/OwpSettings/OwpLayoutConfig';
|
|
82
|
+
export * from './components/OwpSettings/OwpLayoutConfigs';
|
|
83
|
+
export * from './components/OwpSettings/owpSettingsSlice';
|
|
84
|
+
export * from './components/OwpSettings/ThemeFormConfigTypes';
|
|
85
|
+
export * from './components/OwpShortcuts';
|
|
86
|
+
export * from './components/OwpSidePanel';
|
|
87
|
+
export * from './components/OwpSplashScreen';
|
|
88
|
+
export * from './components/OwpSuspense';
|
|
89
|
+
export * from './components/OwpSvgIcon';
|
|
90
|
+
export * from './components/OwpTable/OwpDataTable';
|
|
91
|
+
export * from './components/OwpTable/OwpTable';
|
|
92
|
+
export * from './components/OwpTable/OwpVerticalTable';
|
|
93
|
+
export * from './components/OwpTextField/OwpTextMaskField';
|
|
94
|
+
export * from './components/OwpTheme';
|
|
95
|
+
export * from './components/OwpThemeSelector';
|
|
96
|
+
export * from './components/OwpThemeSelector/SchemePreview';
|
|
97
|
+
export * from './components/OwpThemeSelector/ThemePreview';
|
|
98
|
+
export * from './components/OwpTreeGrid';
|
|
99
|
+
export * from './components/OwpTreeGrid/OwpTreeGridToolbar';
|
|
100
|
+
export * from './components/OwpTreeView/OwpSlotTreeView';
|
|
101
|
+
export * from './components/OwpZoomImageSlider/OwpZoomImageSlider';
|
|
102
|
+
export * from './components/shared-components/tabs/OwpTab';
|
|
103
|
+
export * from './components/shared-components/tabs/OwpTabs';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BaseQueryFn } from '@reduxjs/toolkit/query/react';
|
|
2
|
+
import { AxiosError, AxiosRequestConfig } from 'axios';
|
|
3
|
+
export declare const apiService: import("@reduxjs/toolkit/query").Api<BaseQueryFn<AxiosRequestConfig<unknown>, unknown, AxiosError<unknown, any>>, {}, "apiService", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '@/components/layouts/shared-components/navbar/navbarSlice';
|
|
2
|
+
import '@/components/layouts/shared-components/navigation/store/navigationSlice';
|
|
3
|
+
import { combineSlices } from '@reduxjs/toolkit';
|
|
4
|
+
export interface LazyLoadedSlices {
|
|
5
|
+
}
|
|
6
|
+
export declare const rootReducer: ReturnType<typeof combineSlices>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AppDispatch, RootState } from './store';
|
|
2
|
+
declare const dynamicInstance: import("@reduxjs/toolkit").DynamicMiddlewareInstance<any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>> & {
|
|
3
|
+
createDispatchWithMiddlewareHookFactory: (context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction>>) => import("@reduxjs/toolkit/react").CreateDispatchWithMiddlewareHook<any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>>;
|
|
4
|
+
createDispatchWithMiddlewareHook: import("@reduxjs/toolkit/react").CreateDispatchWithMiddlewareHook<any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const dynamicMiddleware: import("@reduxjs/toolkit").Middleware<import("@reduxjs/toolkit").DynamicDispatch, any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>>;
|
|
7
|
+
type Config = {
|
|
8
|
+
state: RootState;
|
|
9
|
+
dispatch: AppDispatch;
|
|
10
|
+
};
|
|
11
|
+
export declare const addAppMiddleware: ReturnType<typeof dynamicInstance.addMiddleware.withTypes<Config>>;
|
|
12
|
+
export declare const withAppMiddleware: ReturnType<typeof dynamicInstance.withMiddleware.withTypes<Config>>;
|
|
13
|
+
export declare const createAppDispatchWithMiddlewareHook: ReturnType<typeof dynamicInstance.createDispatchWithMiddlewareHook.withTypes<Config>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action, ThunkAction, configureStore, createSelectorCreator } from '@reduxjs/toolkit';
|
|
2
|
+
import { rootReducer } from './lazyLoadedSlices';
|
|
3
|
+
export type RootState = ReturnType<typeof rootReducer>;
|
|
4
|
+
export declare const makeStore: (preloadedState?: Partial<RootState>) => ReturnType<typeof configureStore<RootState>>;
|
|
5
|
+
export declare const store: ReturnType<typeof makeStore>;
|
|
6
|
+
export type AppStore = typeof store;
|
|
7
|
+
export type AppDispatch = AppStore['dispatch'];
|
|
8
|
+
export type AppThunk<ThunkReturnType = void> = ThunkAction<ThunkReturnType, RootState, unknown, Action>;
|
|
9
|
+
export type AppAction<R = Promise<void>> = Action<string> | ThunkAction<R, RootState, unknown, Action<string>>;
|
|
10
|
+
export declare const createAppSelector: ReturnType<typeof createSelectorCreator>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
/**
|
|
3
|
+
* A Higher Order Component that injects a reducer into the Redux store.
|
|
4
|
+
*/
|
|
5
|
+
export declare const withReducer: <P extends object>(key: string, reducer: Reducer) => (WrappedComponent: React.FC<P>) => (props: P) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Slice } from '@reduxjs/toolkit';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type SlicesType = Slice[];
|
|
4
|
+
/**
|
|
5
|
+
* Injects reducers grouped by common key.
|
|
6
|
+
*/
|
|
7
|
+
export declare const injectReducersGroupedByCommonKey: (slices: SlicesType) => Promise<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* A Higher Order Component that injects reducers for the provided slices.
|
|
10
|
+
*/
|
|
11
|
+
export declare const withSlices: <P extends object>(slices: SlicesType) => (WrappedComponent: React.FC<P>) => (props: P) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CommonCode {
|
|
2
|
+
'IPX_COMMONCODE.CODEID': string;
|
|
3
|
+
'IPX_COMMONCODE.CODENM': string;
|
|
4
|
+
'IPX_COMMONCODE.GROUPID': string;
|
|
5
|
+
'IPX_COMMONCODE.GROUPNM': string;
|
|
6
|
+
'IPX_COMMONCODE.FLAG': 'Y' | 'N';
|
|
7
|
+
'IPX_COMMONCODE.WDATE': string;
|
|
8
|
+
'IPX_COMMONCODE.REMARK': string;
|
|
9
|
+
'IPX_COMMONCODE.DESCRIPTION': string;
|
|
10
|
+
}
|
|
11
|
+
export interface CommonCodeRes {
|
|
12
|
+
resultData?: Array<CommonCode>;
|
|
13
|
+
}
|
|
14
|
+
export declare const transformGridEnumByCommonCodeList: (commonCodeListData?: Array<CommonCode> | undefined, fieldKey?: string) => {
|
|
15
|
+
[x: string]: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const transformCommonCodeBasedOnGroupId: (commonCodeList: Array<CommonCode>) => Record<string, CommonCode[]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface ErrorBoundaryState {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
errorInfo: ErrorInfo | null;
|
|
9
|
+
}
|
|
10
|
+
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
11
|
+
constructor(props: ErrorBoundaryProps);
|
|
12
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
13
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
14
|
+
render(): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The EventEmitter class is a custom implementation of an event emitter.
|
|
3
|
+
* It provides methods for registering and emitting events.
|
|
4
|
+
*/
|
|
5
|
+
export declare class EventEmitter {
|
|
6
|
+
private events;
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* The _getEventListByName method returns the event list for a given event name.
|
|
10
|
+
* If the event list does not exist, it creates a new one.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
private _getEventListByName;
|
|
14
|
+
/**
|
|
15
|
+
* The on method registers a callback function for a given event name.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
on<T extends unknown[]>(eventName: string, fn: (...args: T) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* The once method registers a callback function for a given event name that will only be called once.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
once(eventName: string, fn: (...args: unknown[]) => void): void;
|
|
24
|
+
/**
|
|
25
|
+
* The emit method triggers all registered callback functions for a given event name.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
emit(eventName: string, ...args: unknown[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* The removeListener method removes a registered callback function for a given event name.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
removeListener(eventName: string, fn: (...args: unknown[]) => void): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OwpFlatNavItemType, OwpNavItemType } from '@/components/OwpNavigation/types/OwpNavItemType';
|
|
2
|
+
import { PartialDeep } from 'type-fest';
|
|
3
|
+
export declare class OwpNavigationHelper {
|
|
4
|
+
static selectById(nav: OwpNavItemType[], id: string): OwpNavItemType | undefined;
|
|
5
|
+
static appendNavItem(nav: OwpNavItemType[], item: OwpNavItemType, parentId?: string | null): OwpNavItemType[];
|
|
6
|
+
static prependNavItem(nav: OwpNavItemType[], item: OwpNavItemType, parentId?: string | null): OwpNavItemType[];
|
|
7
|
+
static filterNavigationByPermission(nav: OwpNavItemType[], userRole: User['role']): OwpNavItemType[];
|
|
8
|
+
/**
|
|
9
|
+
* The removeNavItem function removes a navigation item by its ID.
|
|
10
|
+
*/
|
|
11
|
+
static removeNavItem(nav: OwpNavItemType[], id: string): OwpNavItemType[];
|
|
12
|
+
/**
|
|
13
|
+
* The updateNavItem function updates a navigation item by its ID with new data.
|
|
14
|
+
*/
|
|
15
|
+
static updateNavItem(nav: OwpNavItemType[], id: string, item: PartialDeep<OwpNavItemType>): OwpNavItemType[];
|
|
16
|
+
/**
|
|
17
|
+
* Convert to flat navigation
|
|
18
|
+
*/
|
|
19
|
+
static getFlatNavigation(navigationItems?: OwpNavItemType[], flatNavigation?: any[]): OwpNavItemType[] | [];
|
|
20
|
+
static hasPermission(authArr: string[] | string | undefined, userRole: User['role']): boolean;
|
|
21
|
+
static flattenNavigation(navigation: OwpNavItemType[], parentOrder?: string): OwpFlatNavItemType[];
|
|
22
|
+
static unflattenNavigation(navigation: OwpFlatNavItemType[]): OwpNavItemType[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { OwpSettingsConfigType } from '@/components/OwpSettings/OwpSettings';
|
|
2
|
+
import { DeepPartial } from 'react-hook-form';
|
|
3
|
+
import { RouteObject } from 'react-router-dom';
|
|
4
|
+
import { PartialDeep } from 'type-fest';
|
|
5
|
+
import { EventEmitter } from './EventEmitter';
|
|
6
|
+
type TreeNode = {
|
|
7
|
+
id: string;
|
|
8
|
+
children?: TreeNode[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The OwpRouteItemType type is a custom type that extends the RouteObject type from react-router-dom.
|
|
12
|
+
* It adds an optional auth property and an optional settings property.
|
|
13
|
+
*/
|
|
14
|
+
export type OwpRouteItemType = RouteObject & {
|
|
15
|
+
auth?: string[] | [] | null;
|
|
16
|
+
settings?: DeepPartial<OwpSettingsConfigType>;
|
|
17
|
+
children?: OwpRouteItemType[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The OwpRoutesType type is a custom type that is an array of OwpRouteItemType objects.
|
|
21
|
+
*/
|
|
22
|
+
export type OwpRoutesType = OwpRouteItemType[];
|
|
23
|
+
/**
|
|
24
|
+
* The OwpRouteConfigType type is a custom type that defines the configuration for a set of routes.
|
|
25
|
+
* It includes an optional routes property, an optional settings property, and an optional auth property.
|
|
26
|
+
*/
|
|
27
|
+
export type OwpRouteConfigType = {
|
|
28
|
+
routes: OwpRoutesType;
|
|
29
|
+
settings?: PartialDeep<OwpSettingsConfigType>;
|
|
30
|
+
auth?: string[] | [];
|
|
31
|
+
path?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The OwpRouteConfigsType type is a custom type that is an array of OwpRouteConfigType objects.
|
|
35
|
+
*/
|
|
36
|
+
export type OwpRouteConfigsType = OwpRouteConfigType[] | [];
|
|
37
|
+
/**
|
|
38
|
+
* The hueTypes type is a custom type that defines the possible values for a hue.
|
|
39
|
+
*/
|
|
40
|
+
type hueTypes = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'A100' | 'A200' | 'A400' | 'A700';
|
|
41
|
+
/**
|
|
42
|
+
* The OwpUtils class provides utility functions for the Owp project.
|
|
43
|
+
*/
|
|
44
|
+
export declare class OwpUtils {
|
|
45
|
+
/**
|
|
46
|
+
* The filterArrayByString function filters an array of objects by a search string.
|
|
47
|
+
* It takes in an array of objects and a search string as parameters and returns a filtered array of objects.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
static filterArrayByString<T>(mainArr: T[], searchText: string): T[];
|
|
51
|
+
static filterArrayByString2<T>(mainArr: T[], searchText: string): T[];
|
|
52
|
+
/**
|
|
53
|
+
* The searchInObj function searches an object for a given search string.
|
|
54
|
+
* It takes in an object and a search string as parameters and returns a boolean indicating whether the search string was found in the object.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
static searchInObj(itemObj: unknown, searchText: string): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The searchInArray function searches an array for a given search string.
|
|
60
|
+
* It takes in an array and a search string as parameters and returns a boolean indicating whether the search string was found in the array.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
static searchInArray(arr: unknown[], searchText: string): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* The searchInString function searches a string for a given search string.
|
|
66
|
+
* It takes in a string and a search string as parameters and returns a boolean indicating whether the search string was found in the string.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
static searchInString(value: string, searchText: string): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The generateGUID function generates a globally unique identifier.
|
|
72
|
+
* It returns a string representing the GUID.
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
static generateGUID(): string;
|
|
76
|
+
/**
|
|
77
|
+
* The toggleInArray function toggles an item in an array.
|
|
78
|
+
*/
|
|
79
|
+
static toggleInArray(item: unknown, array: unknown[]): void;
|
|
80
|
+
/**
|
|
81
|
+
* The handleize function converts a string to a handle.
|
|
82
|
+
*/
|
|
83
|
+
static handleize(text: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* The setRoutes function sets the routes for the Owp project.
|
|
86
|
+
*/
|
|
87
|
+
static setRoutes(config: OwpRouteConfigType, defaultAuth?: OwpSettingsConfigType['defaultAuth']): OwpRouteItemType[];
|
|
88
|
+
/**
|
|
89
|
+
* The generateRoutesFromConfigs function generates routes from a set of route configurations.
|
|
90
|
+
* It takes in an array of route configurations as a parameter and returns an array of routes.
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
static generateRoutesFromConfigs(configs: OwpRouteConfigsType, defaultAuth: OwpSettingsConfigType['defaultAuth']): OwpRouteItemType[];
|
|
94
|
+
/**
|
|
95
|
+
* The findById function finds an object by its id.
|
|
96
|
+
*/
|
|
97
|
+
static findById(tree: TreeNode[], idToFind: string): TreeNode | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* The randomMatColor function generates a random material color.
|
|
100
|
+
*/
|
|
101
|
+
static randomMatColor(hue?: hueTypes): string;
|
|
102
|
+
/**
|
|
103
|
+
* The findNavItemById function finds a navigation item by its id.
|
|
104
|
+
*/
|
|
105
|
+
static difference(object: Record<string, unknown>, base: Record<string, unknown>): Record<string, unknown>;
|
|
106
|
+
/**
|
|
107
|
+
* The EventEmitter class is a custom implementation of an event emitter.
|
|
108
|
+
* It provides methods for registering and emitting events.
|
|
109
|
+
*/
|
|
110
|
+
static EventEmitter: typeof EventEmitter;
|
|
111
|
+
/**
|
|
112
|
+
* The hasPermission function checks if a user has permission to access a resource.
|
|
113
|
+
*/
|
|
114
|
+
static hasPermission(authArr: string[] | string | undefined, userRole: User['role']): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The filterArrayByString function filters an array of objects by a search string.
|
|
117
|
+
*/
|
|
118
|
+
static filterRecursive(data: [] | null, predicate: (arg0: unknown) => boolean): unknown[];
|
|
119
|
+
}
|
|
120
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import ExcelJS from 'exceljs';
|
|
2
|
+
export declare const getIndexByLetters: (letters: string) => number;
|
|
3
|
+
export declare const getLettersByIndex: (index: number) => string;
|
|
4
|
+
export declare const exportExcelByBuffer: (buffer: ExcelJS.Buffer, title?: string) => void;
|
|
5
|
+
export declare const setCellValue: (ws: ExcelJS.Worksheet, { key, value, font, alignment, fill, isHeader, }: {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
font?: ExcelJS.Font;
|
|
9
|
+
alignment?: ExcelJS.Alignment;
|
|
10
|
+
fill?: ExcelJS.Fill;
|
|
11
|
+
isHeader?: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
export declare const setMergeCells: (ws: ExcelJS.Worksheet, { range, value, font, alignment, fill, isHeader, }: {
|
|
14
|
+
range: string;
|
|
15
|
+
value: string;
|
|
16
|
+
font?: ExcelJS.Font;
|
|
17
|
+
alignment?: ExcelJS.Alignment;
|
|
18
|
+
fill?: ExcelJS.Fill;
|
|
19
|
+
isHeader?: boolean;
|
|
20
|
+
}) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const TREEGRID_WARNING_CELL_COLOR = "#f44336";
|
|
2
|
+
export declare const TREEGRID_INPUT_CELL_COLOR = "#ffd6a8";
|
|
3
|
+
export declare const TREEGRID_CELL_HIGHLIGHT_CLASS = "text-white text-xl font-semibold";
|
|
4
|
+
export declare const TREEGRID_CELL_HIGHLIGHT_COLOR = "#ff8904";
|
|
5
|
+
export declare const getGridById: (gridId: string) => TTGrid;
|
|
6
|
+
export declare const getDataRowsById: <T>(gridId: string) => any[] | T;
|
|
7
|
+
export declare const reloadBodyById: (gridId: string, rows: any) => void;
|
|
8
|
+
export declare const addRowById: (gridId: string, options?: {
|
|
9
|
+
isLast?: boolean;
|
|
10
|
+
canSelect?: boolean;
|
|
11
|
+
}) => void;
|
|
12
|
+
export declare const getChangedDataRowsById: <T>(gridId: string) => {
|
|
13
|
+
[k: string]: Partial<{}>[];
|
|
14
|
+
};
|
|
15
|
+
export declare const exportExcelById: (gridId: string, title?: string) => void;
|
|
16
|
+
export declare const getSelectedRowsById: <T>(gridId: string) => any[] | T;
|
|
17
|
+
export declare const changeVisibleCellByGridId: (gridId: string, options: {
|
|
18
|
+
targetKey: string;
|
|
19
|
+
canVisible: boolean;
|
|
20
|
+
}) => void;
|
|
21
|
+
export declare const setHighlightTargetCellByGridId: (gridId: string, targetOption: {
|
|
22
|
+
row: TRow;
|
|
23
|
+
col: string;
|
|
24
|
+
}) => void;
|