@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.
Files changed (104) hide show
  1. package/README.md +99 -0
  2. package/dist/Dialogs/DialogOpener.d.ts +12 -0
  3. package/dist/Dialogs/Dialogs.d.ts +6 -0
  4. package/dist/Dialogs/ExtendedDialog.d.ts +8 -0
  5. package/dist/Dialogs/FormDialog.d.ts +15 -0
  6. package/dist/Dialogs/dialogRegistry.d.ts +5 -0
  7. package/dist/Events/EventBus.d.ts +34 -0
  8. package/dist/Events/UserBus.d.ts +110 -0
  9. package/dist/Events/hooks/useCurrentUser.d.ts +11 -0
  10. package/dist/Events/hooks/useUserActions.d.ts +15 -0
  11. package/dist/Events/hooks/useUserPreferences.d.ts +22 -0
  12. package/dist/Events/index.d.ts +10 -0
  13. package/dist/Events/types.d.ts +16 -0
  14. package/dist/Events/userTypes.d.ts +79 -0
  15. package/dist/Navigation/NavigationBuilder.d.ts +7 -0
  16. package/dist/Navigation/NavigationFilter.d.ts +1 -0
  17. package/dist/Navigation/NavigationRegistry.d.ts +116 -0
  18. package/dist/Navigation/hooks/useMicroserviceNavigation.d.ts +4 -0
  19. package/dist/Navigation/hooks/useMicroserviceRoutes.d.ts +6 -0
  20. package/dist/Navigation/hooks/useNavigationSectionManager.d.ts +23 -0
  21. package/dist/Navigation/hooks/useSyncNavigationFilters.d.ts +1 -0
  22. package/dist/Navigation/store/microserviceUtils.d.ts +9 -0
  23. package/dist/Navigation/store/navigationCalculator.d.ts +11 -0
  24. package/dist/Navigation/store/sectionManager.d.ts +9 -0
  25. package/dist/Navigation/store/types.d.ts +90 -0
  26. package/dist/Navigation/store/useNavigationFilterStore.d.ts +6 -0
  27. package/dist/Navigation/store/useNavigationStore.d.ts +50 -0
  28. package/dist/Notifications/Notifications.d.ts +3 -0
  29. package/dist/Notifications/store/useNotificationsStore.d.ts +22 -0
  30. package/dist/common/components/index.d.ts +2 -0
  31. package/dist/common/components/layout/GridLayout/GridItem.d.ts +17 -0
  32. package/dist/common/components/layout/GridLayout/GridItemContext.d.ts +26 -0
  33. package/dist/common/components/layout/GridLayout/ResponsiveGridLayout.d.ts +16 -0
  34. package/dist/common/components/layout/GridLayout/Tools/BreakpointIndicator.d.ts +8 -0
  35. package/dist/common/components/layout/GridLayout/Tools/EditModeToggler.d.ts +7 -0
  36. package/dist/common/components/layout/GridLayout/hooks/useGridLayoutManagement.d.ts +27 -0
  37. package/dist/common/components/layout/GridLayout/index.d.ts +12 -0
  38. package/dist/common/components/layout/GridLayout/layoutStorageUtils.d.ts +52 -0
  39. package/dist/common/components/layout/GridLayout/layoutUtils.d.ts +78 -0
  40. package/dist/common/components/layout/GridLayout/store/usePanelStore.d.ts +27 -0
  41. package/dist/common/components/layout/GridLayout/useGridLayout.d.ts +11 -0
  42. package/dist/common/components/layout/index.d.ts +1 -0
  43. package/dist/common/components/ui/CenteredHeading/CenteredHeading.d.ts +7 -0
  44. package/dist/common/components/ui/CollapsingButtons/CollapsingButtons.d.ts +11 -0
  45. package/dist/common/components/ui/CompoundPanel/CompoundPanel.d.ts +86 -0
  46. package/dist/common/components/ui/LoadingScreen/LoadingScreen.d.ts +2 -0
  47. package/dist/common/components/ui/Panel/Expandable/Expandable.d.ts +4 -0
  48. package/dist/common/components/ui/Panel/Expandable/context/ExpandableContextProvider.d.ts +10 -0
  49. package/dist/common/components/ui/Panel/Expandable/hooks/useCollapseHandler.d.ts +2 -0
  50. package/dist/common/components/ui/Panel/Expandable/hooks/useExpandable.d.ts +17 -0
  51. package/dist/common/components/ui/Panel/Expandable/hooks/useExpansionAnimation.d.ts +5 -0
  52. package/dist/common/components/ui/Panel/Expandable/hooks/useInitialSetup.d.ts +6 -0
  53. package/dist/common/components/ui/Panel/Expandable/hooks/useResizeHandler.d.ts +1 -0
  54. package/dist/common/components/ui/Panel/Expandable/store/useExpandablePanelStore.d.ts +7 -0
  55. package/dist/common/components/ui/Panel/Main/Context/PanelContextProvider.d.ts +50 -0
  56. package/dist/common/components/ui/Panel/Main/Panel.d.ts +3 -0
  57. package/dist/common/components/ui/Panel/Main/hooks/useDimensionManagement.d.ts +13 -0
  58. package/dist/common/components/ui/Panel/Main/hooks/usePersistentDimensions.d.ts +19 -0
  59. package/dist/common/components/ui/Panel/Main/tools/BlurOverlay.d.ts +6 -0
  60. package/dist/common/components/ui/Panel/Main/tools/ToolsContainer.d.ts +11 -0
  61. package/dist/common/components/ui/Panel/Movable/DraggableItem.d.ts +6 -0
  62. package/dist/common/components/ui/Panel/Movable/MovablePanel.d.ts +9 -0
  63. package/dist/common/components/ui/Panel/Movable/MoveToggler.d.ts +3 -0
  64. package/dist/common/components/ui/Panel/Movable/context/MovableContextProvider.d.ts +10 -0
  65. package/dist/common/components/ui/Panel/Movable/hooks/usePersistentOrder.d.ts +3 -0
  66. package/dist/common/components/ui/Panel/Resizable/Context/ResizableContextProvider.d.ts +27 -0
  67. package/dist/common/components/ui/Panel/Resizable/Hooks/useResizeHandlers.d.ts +26 -0
  68. package/dist/common/components/ui/Panel/Resizable/Hooks/useResponsiveResize.d.ts +14 -0
  69. package/dist/common/components/ui/Panel/Resizable/Resizable.d.ts +3 -0
  70. package/dist/common/components/ui/Panel/Resizable/ResizeHandlers.d.ts +7 -0
  71. package/dist/common/components/ui/Panel/Resizable/ResizeIndicator.d.ts +9 -0
  72. package/dist/common/components/ui/Panel/Scrollable/InternalScrolling.d.ts +11 -0
  73. package/dist/common/components/ui/Panel/Scrollable/PaginationDots.d.ts +13 -0
  74. package/dist/common/components/ui/Panel/Scrollable/Scrollable.d.ts +5 -0
  75. package/dist/common/components/ui/Panel/Scrollable/context/ScrollerContextProvider.d.ts +15 -0
  76. package/dist/common/components/ui/Panel/Scrollable/hooks/useScrollControls.d.ts +28 -0
  77. package/dist/common/components/ui/Panel/TBR/PanelContent.d.ts +24 -0
  78. package/dist/common/components/ui/Panel/TBR/ResizablePanel.d.ts +3 -0
  79. package/dist/common/components/ui/Panel/TBR/ResizeHandlers.d.ts +10 -0
  80. package/dist/common/components/ui/Panel/TBR/ResizeIndicator.d.ts +10 -0
  81. package/dist/common/components/ui/Panel/TBR/useResizablePanel.d.ts +32 -0
  82. package/dist/common/components/ui/Panel/types.d.ts +9 -0
  83. package/dist/common/components/ui/Scroller/PaginationDots.d.ts +13 -0
  84. package/dist/common/components/ui/Scroller/Scroller.d.ts +14 -0
  85. package/dist/common/components/ui/Scroller/context/ScrollerContextProvider.d.ts +15 -0
  86. package/dist/common/components/ui/Scroller/hooks/useScrollControls.d.ts +28 -0
  87. package/dist/common/components/ui/Scroller/types.d.ts +1 -0
  88. package/dist/common/components/ui/SpeedDialButton/SpeedDialButton.d.ts +20 -0
  89. package/dist/common/components/ui/index.d.ts +14 -0
  90. package/dist/common/hooks/index.d.ts +1 -0
  91. package/dist/common/hooks/useRetry.d.ts +12 -0
  92. package/dist/common/index.d.ts +2 -0
  93. package/dist/constants.d.ts +24 -0
  94. package/dist/core.css +1 -0
  95. package/dist/index.cjs +219 -0
  96. package/dist/index.d.ts +45 -0
  97. package/dist/index.es.js +25836 -0
  98. package/dist/interfaces.d.ts +1 -0
  99. package/dist/utils/apiPrefix.d.ts +3 -0
  100. package/dist/utils/caseConverter.d.ts +17 -0
  101. package/dist/utils/cookieUtils.d.ts +27 -0
  102. package/dist/utils/parseDate.d.ts +2 -0
  103. package/dist/utils/slugify.d.ts +1 -0
  104. package/package.json +61 -0
@@ -0,0 +1 @@
1
+ export type fetchState = "idle" | "loading" | "error" | "success";
@@ -0,0 +1,3 @@
1
+ /** @format */
2
+ export declare const getApiPrefix: () => "" | "lms-toolpad/";
3
+ export { getApiPrefix as apiPrefix };
@@ -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,2 @@
1
+ import { DateTime } from 'luxon';
2
+ export declare const parseDate: (dateString: string | null | undefined) => DateTime<true> | DateTime<false> | null;
@@ -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
+