@framework-m/desk 0.7.0 → 0.8.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/components/form/LinkWidget.d.ts +6 -1
- package/dist/components/form/LinkWidget.d.ts.map +1 -1
- package/dist/components/form/fields/AutoField.d.ts +26 -0
- package/dist/components/form/fields/AutoField.d.ts.map +1 -0
- package/dist/components/form/fields/BooleanField.d.ts +3 -0
- package/dist/components/form/fields/BooleanField.d.ts.map +1 -0
- package/dist/components/form/fields/ErrorsField.d.ts +5 -0
- package/dist/components/form/fields/ErrorsField.d.ts.map +1 -0
- package/dist/components/form/fields/LinkField.d.ts +2 -0
- package/dist/components/form/fields/LinkField.d.ts.map +1 -0
- package/dist/components/form/fields/ListField.d.ts +6 -0
- package/dist/components/form/fields/ListField.d.ts.map +1 -0
- package/dist/components/form/fields/MultiSelectField.d.ts +3 -0
- package/dist/components/form/fields/MultiSelectField.d.ts.map +1 -0
- package/dist/components/form/fields/SelectField.d.ts +19 -0
- package/dist/components/form/fields/SelectField.d.ts.map +1 -0
- package/dist/components/form/fields/SubmitField.d.ts +5 -0
- package/dist/components/form/fields/SubmitField.d.ts.map +1 -0
- package/dist/components/form/fields/TextField.d.ts +19 -0
- package/dist/components/form/fields/TextField.d.ts.map +1 -0
- package/dist/components/form/fields/registry.d.ts +16 -0
- package/dist/components/form/fields/registry.d.ts.map +1 -0
- package/dist/components/form/tamagui-fields.d.ts +6 -15
- package/dist/components/form/tamagui-fields.d.ts.map +1 -1
- package/dist/components/layout/ColumnGrid.d.ts +22 -0
- package/dist/components/layout/ColumnGrid.d.ts.map +1 -0
- package/dist/components/layout/FrameworkMShell.d.ts +0 -4
- package/dist/components/layout/FrameworkMShell.d.ts.map +1 -1
- package/dist/components/layout/Navigation/ContextualDrawer.d.ts +20 -0
- package/dist/components/layout/Navigation/ContextualDrawer.d.ts.map +1 -0
- package/dist/components/layout/Navigation/NavigationShell.d.ts +16 -0
- package/dist/components/layout/Navigation/NavigationShell.d.ts.map +1 -0
- package/dist/components/layout/Navigation/PrimaryRail.d.ts +13 -0
- package/dist/components/layout/Navigation/PrimaryRail.d.ts.map +1 -0
- package/dist/components/layout/PageHeader.d.ts +19 -0
- package/dist/components/layout/PageHeader.d.ts.map +1 -0
- package/dist/components/layout/SectionField.d.ts +15 -0
- package/dist/components/layout/SectionField.d.ts.map +1 -0
- package/dist/components/layout/ShellSkeleton.d.ts +3 -1
- package/dist/components/layout/ShellSkeleton.d.ts.map +1 -1
- package/dist/components/layout/TabContainer.d.ts +17 -0
- package/dist/components/layout/TabContainer.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +12 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/table/AutoTable.d.ts.map +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/types.d.ts +23 -8
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/useDocTypes.d.ts +3 -0
- package/dist/hooks/useDocTypes.d.ts.map +1 -1
- package/dist/hooks/useFormKeyboard.d.ts +6 -0
- package/dist/hooks/useFormKeyboard.d.ts.map +1 -0
- package/dist/hooks/useTabKeyboard.d.ts +15 -0
- package/dist/hooks/useTabKeyboard.d.ts.map +1 -0
- package/dist/hooks/useUIMeta.d.ts +2 -0
- package/dist/hooks/useUIMeta.d.ts.map +1 -1
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6224 -5752
- package/dist/index.js.map +1 -1
- package/dist/pages/FormView.d.ts +40 -0
- package/dist/pages/FormView.d.ts.map +1 -1
- package/dist/pages/ListView.d.ts.map +1 -1
- package/dist/shell/ShellProvider.d.ts.map +1 -1
- package/package.json +16 -16
- package/dist/components/layout/Navbar/Navbar.d.ts +0 -16
- package/dist/components/layout/Navbar/Navbar.d.ts.map +0 -1
- package/dist/components/layout/Sidebar/Sidebar.d.ts +0 -9
- package/dist/components/layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/dist/components/layout/Sidebar/SidebarItem.d.ts +0 -10
- package/dist/components/layout/Sidebar/SidebarItem.d.ts.map +0 -1
- package/dist/components/layout/Sidebar/SidebarMobileFooter.d.ts +0 -11
- package/dist/components/layout/Sidebar/SidebarMobileFooter.d.ts.map +0 -1
- package/dist/components/layout/Sidebar/SidebarUtils.d.ts +0 -44
- package/dist/components/layout/Sidebar/SidebarUtils.d.ts.map +0 -1
package/dist/pages/FormView.d.ts
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Unified form controller interface passed to overrides and standard views.
|
|
4
|
+
*/
|
|
5
|
+
export interface Frm<T = any> {
|
|
6
|
+
/** The current reactive document state */
|
|
7
|
+
doc: T;
|
|
8
|
+
/** Update a specific field or the entire model */
|
|
9
|
+
setDoc: (data: Partial<T> | ((prev: T) => T)) => void;
|
|
10
|
+
/** Save the document (trigger create/update mutation) */
|
|
11
|
+
save: () => Promise<void>;
|
|
12
|
+
/** Discard changes and return to list */
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
/** True if we are currently editing an existing record */
|
|
15
|
+
isEditing: boolean;
|
|
16
|
+
/** True if a mutation is in flight */
|
|
17
|
+
isSaving: boolean;
|
|
18
|
+
/** True if the document is submitted/cancelled and shouldn't be edited */
|
|
19
|
+
isLocked: boolean;
|
|
20
|
+
/** Current validation or system errors */
|
|
21
|
+
errors: string[];
|
|
22
|
+
/** Current system notices/alerts */
|
|
23
|
+
notices: string[];
|
|
24
|
+
/** Workflow state info if applicable */
|
|
25
|
+
workflow?: any;
|
|
26
|
+
/** Refetch the current document from server */
|
|
27
|
+
refetch: () => Promise<void>;
|
|
28
|
+
}
|
|
2
29
|
/**
|
|
3
30
|
* FormView props
|
|
4
31
|
*/
|
|
@@ -10,6 +37,19 @@ export interface FormViewProps {
|
|
|
10
37
|
/** Optional standard view passed as children for wrapping */
|
|
11
38
|
children?: ReactNode;
|
|
12
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Standard props shared between FormView and its components
|
|
42
|
+
*/
|
|
43
|
+
export interface StandardFormViewProps {
|
|
44
|
+
doctype: string;
|
|
45
|
+
id?: string;
|
|
46
|
+
frm: Frm;
|
|
47
|
+
meta: any;
|
|
48
|
+
metaLoading: boolean;
|
|
49
|
+
metaError?: Error | null;
|
|
50
|
+
docError?: Error | null;
|
|
51
|
+
record?: any;
|
|
52
|
+
}
|
|
13
53
|
/**
|
|
14
54
|
* FormView Component
|
|
15
55
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormView.d.ts","sourceRoot":"","sources":["../../src/pages/FormView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH,OAAO,
|
|
1
|
+
{"version":3,"file":"FormView.d.ts","sourceRoot":"","sources":["../../src/pages/FormView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH,OAAO,EAA0C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAkB/E;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,GAAG;IAC1B,0CAA0C;IAC1C,GAAG,EAAE,CAAC,CAAC;IACP,kDAAkD;IAClD,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC;IACtD,yDAAyD;IACzD,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,yCAAyC;IACzC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,QAAQ,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,+CAA+C;IAC/C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,EACpB,EAAE,EAAE,MAAM,GACX,EAAE,QAAQ,CAAC,aAAa,CAAC,2CAsHzB;AA6iBD,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../src/pages/ListView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../src/pages/ListView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkCH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CACnC;AAkXD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,QAAQ,GACf,EAAE,QAAQ,CAAC,aAAa,CAAC,2CA6BzB;AA0zBD,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShellProvider.d.ts","sourceRoot":"","sources":["../../src/shell/ShellProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAMV,eAAe,EAEhB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ShellProvider.d.ts","sourceRoot":"","sources":["../../src/shell/ShellProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAMV,eAAe,EAEhB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,yBAAyB,CAAC;AAyFhF,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAgB,EAChB,OAAe,EACf,gBAAwB,EACxB,mBAA8B,EAC9B,SAAS,EACT,YAAY,EACZ,eAAe,EACf,cAAmB,GACpB,EAAE,QAAQ,CAAC;IACV,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,cAAc,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACrC,CAAC,2CA2RD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framework-m/desk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Business components, hooks, views, and providers for Framework M applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"directory": "libs/framework-m-desk"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@framework-m/plugin-sdk": "^0.
|
|
37
|
-
"@framework-m/ui": "^0.
|
|
36
|
+
"@framework-m/plugin-sdk": "^0.5.0",
|
|
37
|
+
"@framework-m/ui": "^0.6.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@refinedev/core": "^5.0.0",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@eslint/js": "^9.39.4",
|
|
55
|
-
"@framework-m/plugin-sdk": "^0.
|
|
56
|
-
"@framework-m/ui": "^0.
|
|
57
|
-
"@refinedev/core": "^5.0.
|
|
55
|
+
"@framework-m/plugin-sdk": "^0.5.0",
|
|
56
|
+
"@framework-m/ui": "^0.6.0",
|
|
57
|
+
"@refinedev/core": "^5.0.12",
|
|
58
58
|
"@refinedev/react-router": "^2.0.4",
|
|
59
59
|
"@refinedev/react-table": "^6.0.1",
|
|
60
|
-
"@tanstack/react-query": "^5.
|
|
60
|
+
"@tanstack/react-query": "^5.99.2",
|
|
61
61
|
"@tanstack/react-table": "^8.21.3",
|
|
62
62
|
"@testing-library/jest-dom": "^6.9.1",
|
|
63
63
|
"@testing-library/react": "^16.3.2",
|
|
64
|
-
"@types/node": "^20.19.
|
|
64
|
+
"@types/node": "^20.19.39",
|
|
65
65
|
"@types/react": "^19.2.14",
|
|
66
66
|
"@types/react-dom": "^19.2.3",
|
|
67
67
|
"@vitejs/plugin-react": "^4.7.0",
|
|
@@ -70,21 +70,21 @@
|
|
|
70
70
|
"eslint": "^9.39.4",
|
|
71
71
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
72
72
|
"globals": "^16.5.0",
|
|
73
|
-
"happy-dom": "^20.
|
|
73
|
+
"happy-dom": "^20.9.0",
|
|
74
74
|
"i18next": "^25.10.10",
|
|
75
75
|
"i18next-browser-languagedetector": "^8.2.1",
|
|
76
|
-
"i18next-http-backend": "^3.0.
|
|
77
|
-
"react": "^19.2.
|
|
78
|
-
"react-dom": "^19.2.
|
|
76
|
+
"i18next-http-backend": "^3.0.5",
|
|
77
|
+
"react": "^19.2.5",
|
|
78
|
+
"react-dom": "^19.2.5",
|
|
79
79
|
"react-i18next": "^16.6.6",
|
|
80
|
-
"react-router": "^7.
|
|
80
|
+
"react-router": "^7.14.1",
|
|
81
81
|
"typescript": "^5.9.3",
|
|
82
|
-
"typescript-eslint": "^8.58.
|
|
82
|
+
"typescript-eslint": "^8.58.2",
|
|
83
83
|
"uniforms": "^4.0.0",
|
|
84
84
|
"uniforms-bridge-json-schema": "^4.0.0",
|
|
85
|
-
"vite": "^6.4.
|
|
85
|
+
"vite": "^6.4.2",
|
|
86
86
|
"vite-plugin-dts": "^4.5.4",
|
|
87
|
-
"vitest": "^4.1.
|
|
87
|
+
"vitest": "^4.1.4"
|
|
88
88
|
},
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Navbar props
|
|
3
|
-
*/
|
|
4
|
-
export interface NavbarProps {
|
|
5
|
-
/** App title */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Logo URL */
|
|
8
|
-
logo?: string;
|
|
9
|
-
/** Whether to show global search */
|
|
10
|
-
showSearch?: boolean;
|
|
11
|
-
/** Optional callback to toggle mobile menu */
|
|
12
|
-
onMenuToggle?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function Navbar({ title, logo, onMenuToggle, }: Readonly<NavbarProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default Navbar;
|
|
16
|
-
//# sourceMappingURL=Navbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Navbar/Navbar.tsx"],"names":[],"mappings":"AAiBA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAwKD,wBAAgB,MAAM,CAAC,EACrB,KAAqB,EACrB,IAAI,EACJ,YAAY,GACb,EAAE,QAAQ,CAAC,WAAW,CAAC,2CA2dvB;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface SidebarProps {
|
|
2
|
-
collapsed?: boolean;
|
|
3
|
-
onCollapse?: (collapsed: boolean) => void;
|
|
4
|
-
isMobile?: boolean;
|
|
5
|
-
mobileOpen?: boolean;
|
|
6
|
-
onCloseMobile?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function Sidebar({ collapsed, onCollapse, isMobile, mobileOpen, onCloseMobile, }: Readonly<SidebarProps>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAiB,EACjB,UAAU,EACV,QAAgB,EAChB,UAAkB,EAClB,aAAa,GACd,EAAE,QAAQ,CAAC,YAAY,CAAC,2CA8NxB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SidebarNavItem } from './SidebarUtils';
|
|
2
|
-
export interface SidebarItemProps {
|
|
3
|
-
item: SidebarNavItem;
|
|
4
|
-
collapsed: boolean;
|
|
5
|
-
onNavigate: (item: SidebarNavItem) => void;
|
|
6
|
-
favoriteAction: () => void;
|
|
7
|
-
isFavorite: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function SidebarItem({ item, collapsed, onNavigate, favoriteAction, isFavorite, }: Readonly<SidebarItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=SidebarItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sidebar/SidebarItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,SAAS,EACT,UAAU,EACV,cAAc,EACd,UAAU,GACX,EAAE,QAAQ,CAAC,gBAAgB,CAAC,2CAmD5B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SidebarIdentity } from './SidebarUtils';
|
|
2
|
-
export interface SidebarMobileFooterProps {
|
|
3
|
-
isMobile: boolean;
|
|
4
|
-
isAuthenticated: boolean;
|
|
5
|
-
identity: SidebarIdentity | undefined;
|
|
6
|
-
theme: string;
|
|
7
|
-
onToggleTheme: () => void;
|
|
8
|
-
onLogout: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function SidebarMobileFooter({ isMobile, isAuthenticated, identity, theme, onToggleTheme, onLogout, }: Readonly<SidebarMobileFooterProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
//# sourceMappingURL=SidebarMobileFooter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMobileFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sidebar/SidebarMobileFooter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE,QAAQ,CAAC,wBAAwB,CAAC,kDAmDpC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface MenuSourceItem {
|
|
2
|
-
id?: string;
|
|
3
|
-
name?: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
route?: string;
|
|
7
|
-
module?: string;
|
|
8
|
-
parent?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface MenuItem extends MenuSourceItem {
|
|
11
|
-
children?: MenuItem[];
|
|
12
|
-
}
|
|
13
|
-
export interface SidebarNavItem {
|
|
14
|
-
key: string;
|
|
15
|
-
name: string;
|
|
16
|
-
label: string;
|
|
17
|
-
route: string;
|
|
18
|
-
breadcrumb: string;
|
|
19
|
-
selected: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface SidebarIdentity {
|
|
22
|
-
id?: string;
|
|
23
|
-
name?: string;
|
|
24
|
-
email?: string;
|
|
25
|
-
avatar?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface SidebarMenuGroup {
|
|
28
|
-
name: string;
|
|
29
|
-
items: MenuSourceItem[];
|
|
30
|
-
}
|
|
31
|
-
export declare function resolveKey(name: string, route: string): string;
|
|
32
|
-
export declare function getItemName(item: MenuSourceItem): string;
|
|
33
|
-
export declare function getItemRoute(item: MenuSourceItem, itemName: string): string;
|
|
34
|
-
export declare function normalizeMenuItem(item: MenuSourceItem, moduleName: string, selectedKey: string): SidebarNavItem;
|
|
35
|
-
export declare function getSidebarWidth(isMobile: boolean, collapsed: boolean): number;
|
|
36
|
-
export declare function getSidebarLeft(isMobile: boolean, mobileOpen: boolean): number;
|
|
37
|
-
export declare function getCollapseIcon(isMobile: boolean, collapsed: boolean): string;
|
|
38
|
-
export declare function loadRecentItemsFromStorage(): MenuSourceItem[];
|
|
39
|
-
export declare function isGuestUser(identity: SidebarIdentity | undefined): boolean;
|
|
40
|
-
export declare function getSelectedKeyFromPath(pathname: string): string;
|
|
41
|
-
export declare function buildFilteredPluginMenu(menuSections: MenuSourceItem[], search: string): SidebarMenuGroup[];
|
|
42
|
-
export declare function updateRecentItemsForPath(pathname: string, menuSections: MenuSourceItem[], setRecent: (value: MenuSourceItem[] | ((prev: MenuSourceItem[]) => MenuSourceItem[])) => void): void;
|
|
43
|
-
export declare function getToggledFavoritesSet(prev: Set<string>, id: string): Set<string>;
|
|
44
|
-
//# sourceMappingURL=SidebarUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sidebar/SidebarUtils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC9C,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAQxD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAQ3E;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,cAAc,EACpB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAClB,cAAc,CAahB;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAE7E;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CAE7E;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAG7E;AAED,wBAAgB,0BAA0B,IAAI,cAAc,EAAE,CAS7D;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAG1E;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAK/D;AAED,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,cAAc,EAAE,EAC9B,MAAM,EAAE,MAAM,GACb,gBAAgB,EAAE,CAiBpB;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,cAAc,EAAE,EAC9B,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC,KAAK,IAAI,GAC5F,IAAI,CAYN;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAMjF"}
|