@mui-toolpad-extended-tuni/core 3.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/README.md +99 -0
- package/dist/Dialogs/DialogOpener.d.ts +12 -0
- package/dist/Dialogs/Dialogs.d.ts +6 -0
- package/dist/Dialogs/ExtendedDialog.d.ts +8 -0
- package/dist/Dialogs/FormDialog.d.ts +15 -0
- package/dist/Dialogs/dialogRegistry.d.ts +5 -0
- package/dist/Events/EventBus.d.ts +34 -0
- package/dist/Events/UserBus.d.ts +110 -0
- package/dist/Events/hooks/useCurrentUser.d.ts +11 -0
- package/dist/Events/hooks/useUserActions.d.ts +15 -0
- package/dist/Events/hooks/useUserPreferences.d.ts +22 -0
- package/dist/Events/index.d.ts +10 -0
- package/dist/Events/types.d.ts +16 -0
- package/dist/Events/userTypes.d.ts +79 -0
- package/dist/Navigation/NavigationBuilder.d.ts +7 -0
- package/dist/Navigation/NavigationFilter.d.ts +1 -0
- package/dist/Navigation/NavigationRegistry.d.ts +116 -0
- package/dist/Navigation/hooks/useMicroserviceNavigation.d.ts +4 -0
- package/dist/Navigation/hooks/useMicroserviceRoutes.d.ts +6 -0
- package/dist/Navigation/hooks/useNavigationSectionManager.d.ts +23 -0
- package/dist/Navigation/hooks/useSyncNavigationFilters.d.ts +1 -0
- package/dist/Navigation/store/microserviceUtils.d.ts +9 -0
- package/dist/Navigation/store/navigationCalculator.d.ts +11 -0
- package/dist/Navigation/store/sectionManager.d.ts +9 -0
- package/dist/Navigation/store/types.d.ts +90 -0
- package/dist/Navigation/store/useNavigationFilterStore.d.ts +6 -0
- package/dist/Navigation/store/useNavigationStore.d.ts +50 -0
- package/dist/Notifications/Notifications.d.ts +3 -0
- package/dist/Notifications/store/useNotificationsStore.d.ts +22 -0
- package/dist/common/components/index.d.ts +2 -0
- package/dist/common/components/layout/GridLayout/GridItem.d.ts +17 -0
- package/dist/common/components/layout/GridLayout/GridItemContext.d.ts +26 -0
- package/dist/common/components/layout/GridLayout/ResponsiveGridLayout.d.ts +16 -0
- package/dist/common/components/layout/GridLayout/Tools/BreakpointIndicator.d.ts +8 -0
- package/dist/common/components/layout/GridLayout/Tools/EditModeToggler.d.ts +7 -0
- package/dist/common/components/layout/GridLayout/hooks/useGridLayoutManagement.d.ts +27 -0
- package/dist/common/components/layout/GridLayout/index.d.ts +12 -0
- package/dist/common/components/layout/GridLayout/layoutStorageUtils.d.ts +52 -0
- package/dist/common/components/layout/GridLayout/layoutUtils.d.ts +78 -0
- package/dist/common/components/layout/GridLayout/store/usePanelStore.d.ts +27 -0
- package/dist/common/components/layout/GridLayout/useGridLayout.d.ts +11 -0
- package/dist/common/components/layout/index.d.ts +1 -0
- package/dist/common/components/ui/CenteredHeading/CenteredHeading.d.ts +7 -0
- package/dist/common/components/ui/CollapsingButtons/CollapsingButtons.d.ts +11 -0
- package/dist/common/components/ui/CompoundPanel/CompoundPanel.d.ts +86 -0
- package/dist/common/components/ui/LoadingScreen/LoadingScreen.d.ts +2 -0
- package/dist/common/components/ui/Panel/Expandable/Expandable.d.ts +4 -0
- package/dist/common/components/ui/Panel/Expandable/context/ExpandableContextProvider.d.ts +10 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useCollapseHandler.d.ts +2 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useExpandable.d.ts +17 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useExpansionAnimation.d.ts +5 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useInitialSetup.d.ts +6 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useResizeHandler.d.ts +1 -0
- package/dist/common/components/ui/Panel/Expandable/store/useExpandablePanelStore.d.ts +7 -0
- package/dist/common/components/ui/Panel/Main/Context/PanelContextProvider.d.ts +50 -0
- package/dist/common/components/ui/Panel/Main/Panel.d.ts +3 -0
- package/dist/common/components/ui/Panel/Main/hooks/useDimensionManagement.d.ts +13 -0
- package/dist/common/components/ui/Panel/Main/hooks/usePersistentDimensions.d.ts +19 -0
- package/dist/common/components/ui/Panel/Main/tools/BlurOverlay.d.ts +6 -0
- package/dist/common/components/ui/Panel/Main/tools/ToolsContainer.d.ts +11 -0
- package/dist/common/components/ui/Panel/Movable/DraggableItem.d.ts +6 -0
- package/dist/common/components/ui/Panel/Movable/MovablePanel.d.ts +9 -0
- package/dist/common/components/ui/Panel/Movable/MoveToggler.d.ts +3 -0
- package/dist/common/components/ui/Panel/Movable/context/MovableContextProvider.d.ts +10 -0
- package/dist/common/components/ui/Panel/Movable/hooks/usePersistentOrder.d.ts +3 -0
- package/dist/common/components/ui/Panel/Resizable/Context/ResizableContextProvider.d.ts +27 -0
- package/dist/common/components/ui/Panel/Resizable/Hooks/useResizeHandlers.d.ts +26 -0
- package/dist/common/components/ui/Panel/Resizable/Hooks/useResponsiveResize.d.ts +14 -0
- package/dist/common/components/ui/Panel/Resizable/Resizable.d.ts +3 -0
- package/dist/common/components/ui/Panel/Resizable/ResizeHandlers.d.ts +7 -0
- package/dist/common/components/ui/Panel/Resizable/ResizeIndicator.d.ts +9 -0
- package/dist/common/components/ui/Panel/Scrollable/InternalScrolling.d.ts +11 -0
- package/dist/common/components/ui/Panel/Scrollable/PaginationDots.d.ts +13 -0
- package/dist/common/components/ui/Panel/Scrollable/Scrollable.d.ts +5 -0
- package/dist/common/components/ui/Panel/Scrollable/context/ScrollerContextProvider.d.ts +15 -0
- package/dist/common/components/ui/Panel/Scrollable/hooks/useScrollControls.d.ts +28 -0
- package/dist/common/components/ui/Panel/TBR/PanelContent.d.ts +24 -0
- package/dist/common/components/ui/Panel/TBR/ResizablePanel.d.ts +3 -0
- package/dist/common/components/ui/Panel/TBR/ResizeHandlers.d.ts +10 -0
- package/dist/common/components/ui/Panel/TBR/ResizeIndicator.d.ts +10 -0
- package/dist/common/components/ui/Panel/TBR/useResizablePanel.d.ts +32 -0
- package/dist/common/components/ui/Panel/types.d.ts +9 -0
- package/dist/common/components/ui/Scroller/PaginationDots.d.ts +13 -0
- package/dist/common/components/ui/Scroller/Scroller.d.ts +14 -0
- package/dist/common/components/ui/Scroller/context/ScrollerContextProvider.d.ts +15 -0
- package/dist/common/components/ui/Scroller/hooks/useScrollControls.d.ts +28 -0
- package/dist/common/components/ui/Scroller/types.d.ts +1 -0
- package/dist/common/components/ui/SpeedDialButton/SpeedDialButton.d.ts +20 -0
- package/dist/common/components/ui/index.d.ts +14 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useRetry.d.ts +12 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/constants.d.ts +24 -0
- package/dist/core.css +1 -0
- package/dist/index.cjs +219 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.es.js +25836 -0
- package/dist/interfaces.d.ts +1 -0
- package/dist/utils/apiPrefix.d.ts +3 -0
- package/dist/utils/caseConverter.d.ts +17 -0
- package/dist/utils/cookieUtils.d.ts +27 -0
- package/dist/utils/parseDate.d.ts +2 -0
- package/dist/utils/slugify.d.ts +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type fetchState = "idle" | "loading" | "error" | "success";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
/**
|
|
3
|
+
* Converts a camelCase string to underscore_case
|
|
4
|
+
*/
|
|
5
|
+
export declare const camelCaseToUnderscore: (str: string) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Converts an underscore_case string to camelCase
|
|
8
|
+
*/
|
|
9
|
+
export declare const underscoreToCamelCase: (str: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Deep converts object keys from camelCase to underscore_case
|
|
12
|
+
*/
|
|
13
|
+
export declare const convertObjectKeysToCamelCase: <T>(obj: T) => T;
|
|
14
|
+
/**
|
|
15
|
+
* Deep converts object keys from underscore_case to camelCase
|
|
16
|
+
*/
|
|
17
|
+
export declare const convertObjectKeysToUnderscore: <T>(obj: T) => T;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
export type ColorSchemePreference = 'light' | 'dark' | 'system';
|
|
3
|
+
/**
|
|
4
|
+
* Get a cookie value by name
|
|
5
|
+
*/
|
|
6
|
+
export declare function getCookie(name: string): string | null;
|
|
7
|
+
/**
|
|
8
|
+
* Set a cookie value
|
|
9
|
+
*/
|
|
10
|
+
export declare function setCookie(name: string, value: string, days?: number): void;
|
|
11
|
+
/**
|
|
12
|
+
* Get the color scheme preference from cookie
|
|
13
|
+
* Returns 'system' as default if not set
|
|
14
|
+
*/
|
|
15
|
+
export declare function getColorSchemePreference(): ColorSchemePreference;
|
|
16
|
+
/**
|
|
17
|
+
* Set the color scheme preference in cookie
|
|
18
|
+
*/
|
|
19
|
+
export declare function setColorSchemePreference(preference: ColorSchemePreference): void;
|
|
20
|
+
/**
|
|
21
|
+
* Get the effective color scheme (resolves 'system' to actual light/dark based on system preference)
|
|
22
|
+
*/
|
|
23
|
+
export declare function getEffectiveColorScheme(preference: ColorSchemePreference): 'light' | 'dark';
|
|
24
|
+
/**
|
|
25
|
+
* Delete a cookie by name
|
|
26
|
+
*/
|
|
27
|
+
export declare function deleteCookie(name: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slugify: (text: string) => string;
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mui-toolpad-extended-tuni/core",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Core shared dependencies for MUI Toolpad Extended TUNI microservices",
|
|
5
|
+
"author": "Jaakko Rajala",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.es.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/Jalez/mui-toolpad-extended-tuni.git",
|
|
17
|
+
"directory": "packages/core"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.es.js",
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"default": "./dist/index.es.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"react",
|
|
32
|
+
"mui",
|
|
33
|
+
"toolpad",
|
|
34
|
+
"education",
|
|
35
|
+
"tuni",
|
|
36
|
+
"core"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"sideEffects": false,
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc && vite build",
|
|
42
|
+
"dev": "vite build --watch",
|
|
43
|
+
"prepublishOnly": "npm run build"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@emotion/react": "^11.0.0",
|
|
47
|
+
"@emotion/styled": "^11.0.0",
|
|
48
|
+
"@mui/icons-material": "^7.0.0",
|
|
49
|
+
"@mui/material": "^7.0.0",
|
|
50
|
+
"@mui/x-date-pickers": "^7.0.0",
|
|
51
|
+
"@toolpad/core": "^0.16.0",
|
|
52
|
+
"react": "^19.0.0",
|
|
53
|
+
"react-dom": "^19.0.0",
|
|
54
|
+
"react-router-dom": "^7.0.0",
|
|
55
|
+
"zustand": "^4.5.0"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"notistack": "^3.0.1"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|