@imperium/layout 8.1.1 → 9.0.1-alpha.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/esm/commonItems.js +9 -0
- package/dist/esm/commonItems.js.map +1 -0
- package/dist/esm/content/components/ActionForm.js +62 -0
- package/dist/esm/content/components/ActionForm.js.map +1 -0
- package/dist/esm/content/components/ActionFormSidebarItemComponent.js +36 -0
- package/dist/esm/content/components/ActionFormSidebarItemComponent.js.map +1 -0
- package/dist/esm/content/components/ActionSidebarItemComponent.js +20 -0
- package/dist/esm/content/components/ActionSidebarItemComponent.js.map +1 -0
- package/dist/esm/content/components/ContentComponent.js +63 -0
- package/dist/esm/content/components/ContentComponent.js.map +1 -0
- package/dist/esm/content/components/CustomSidebarItemComponent.js +8 -0
- package/dist/esm/content/components/CustomSidebarItemComponent.js.map +1 -0
- package/dist/esm/content/components/Header.js +26 -0
- package/dist/esm/content/components/Header.js.map +1 -0
- package/dist/esm/content/components/PlainSidebarItem.js +20 -0
- package/dist/esm/content/components/PlainSidebarItem.js.map +1 -0
- package/dist/esm/content/components/SidebarItemWrapper.js +58 -0
- package/dist/esm/content/components/SidebarItemWrapper.js.map +1 -0
- package/dist/esm/content/components/styles.module.css.js +8 -0
- package/dist/esm/content/components/styles.module.css.js.map +1 -0
- package/dist/esm/content/createPages.js +32 -0
- package/dist/esm/content/createPages.js.map +1 -0
- package/dist/esm/content/dividerSidebarItem.js +7 -0
- package/dist/esm/content/dividerSidebarItem.js.map +1 -0
- package/dist/esm/content/hooks/useBuildContentData.js +18 -0
- package/dist/esm/content/hooks/useBuildContentData.js.map +1 -0
- package/dist/esm/content/types.js +18 -0
- package/dist/esm/content/types.js.map +1 -0
- package/dist/esm/content/utils.js +29 -0
- package/dist/esm/content/utils.js.map +1 -0
- package/dist/esm/datahooks/DataHooks.js +39 -0
- package/dist/esm/datahooks/DataHooks.js.map +1 -0
- package/dist/esm/datahooks/ExecuteDataHook.js +9 -0
- package/dist/esm/datahooks/ExecuteDataHook.js.map +1 -0
- package/dist/esm/datahooks/ExecutePermissionHook.js +17 -0
- package/dist/esm/datahooks/ExecutePermissionHook.js.map +1 -0
- package/dist/esm/datahooks/PermissionHooks.js +16 -0
- package/dist/esm/datahooks/PermissionHooks.js.map +1 -0
- package/dist/esm/external/style-inject/dist/style-inject.es.js +29 -0
- package/dist/esm/external/style-inject/dist/style-inject.es.js.map +1 -0
- package/dist/esm/hooks/useBuildData.js +28 -0
- package/dist/esm/hooks/useBuildData.js.map +1 -0
- package/dist/esm/hooks/useIsActiveRoute.js +22 -0
- package/dist/esm/hooks/useIsActiveRoute.js.map +1 -0
- package/dist/esm/hooks/useSelectPermission.js +12 -0
- package/dist/esm/hooks/useSelectPermission.js.map +1 -0
- package/dist/esm/hooks/useSelectState.js +12 -0
- package/dist/esm/hooks/useSelectState.js.map +1 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/layout/components/CustomLayoutItemComponent.js +8 -0
- package/dist/esm/layout/components/CustomLayoutItemComponent.js.map +1 -0
- package/dist/esm/layout/components/DropdownItem.js +40 -0
- package/dist/esm/layout/components/DropdownItem.js.map +1 -0
- package/dist/esm/layout/components/Layout.js +74 -0
- package/dist/esm/layout/components/Layout.js.map +1 -0
- package/dist/esm/layout/components/LayoutItemBar.js +29 -0
- package/dist/esm/layout/components/LayoutItemBar.js.map +1 -0
- package/dist/esm/layout/components/LayoutItemWrapper.js +72 -0
- package/dist/esm/layout/components/LayoutItemWrapper.js.map +1 -0
- package/dist/esm/layout/components/MenuItem.js +11 -0
- package/dist/esm/layout/components/MenuItem.js.map +1 -0
- package/dist/esm/layout/components/PlainItem.js +14 -0
- package/dist/esm/layout/components/PlainItem.js.map +1 -0
- package/dist/esm/layout/components/SecondaryMenuToggleItem.js +16 -0
- package/dist/esm/layout/components/SecondaryMenuToggleItem.js.map +1 -0
- package/dist/esm/layout/components/styles.module.css.js +8 -0
- package/dist/esm/layout/components/styles.module.css.js.map +1 -0
- package/dist/esm/layout/hooks/useMobileLayout.js +21 -0
- package/dist/esm/layout/hooks/useMobileLayout.js.map +1 -0
- package/dist/esm/layout/moveItems.js +65 -0
- package/dist/esm/layout/moveItems.js.map +1 -0
- package/dist/esm/layout/types.js +12 -0
- package/dist/esm/layout/types.js.map +1 -0
- package/dist/esm/layout/utils.js +41 -0
- package/dist/esm/layout/utils.js.map +1 -0
- package/dist/esm/layout/withLayout.js +52 -0
- package/dist/esm/layout/withLayout.js.map +1 -0
- package/dist/esm/state.js +25 -0
- package/dist/esm/state.js.map +1 -0
- package/dist/esm/types.js +7 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils.js +9 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/stats.html +2689 -0
- package/dist/{commonItems.d.ts → types/commonItems.d.ts} +0 -0
- package/dist/{content → types/content}/components/ActionForm.d.ts +0 -0
- package/dist/{content → types/content}/components/ActionFormSidebarItemComponent.d.ts +0 -0
- package/dist/{content → types/content}/components/ActionSidebarItemComponent.d.ts +0 -0
- package/dist/{content → types/content}/components/ContentComponent.d.ts +0 -0
- package/dist/{content → types/content}/components/CustomSidebarItemComponent.d.ts +0 -0
- package/dist/{content → types/content}/components/Header.d.ts +0 -0
- package/dist/{content → types/content}/components/PlainSidebarItem.d.ts +0 -0
- package/dist/{content → types/content}/components/SidebarItemWrapper.d.ts +0 -0
- package/dist/{content → types/content}/createPages.d.ts +0 -0
- package/dist/{content → types/content}/dividerSidebarItem.d.ts +0 -0
- package/dist/{content → types/content}/hooks/useBuildContentData.d.ts +1 -1
- package/dist/{content → types/content}/types.d.ts +0 -0
- package/dist/{content → types/content}/utils.d.ts +0 -0
- package/dist/{datahooks → types/datahooks}/DataHooks.d.ts +0 -0
- package/dist/{datahooks → types/datahooks}/ExecuteDataHook.d.ts +0 -0
- package/dist/{datahooks → types/datahooks}/ExecutePermissionHook.d.ts +0 -0
- package/dist/{datahooks → types/datahooks}/PermissionHooks.d.ts +0 -0
- package/dist/{datahooks → types/datahooks}/types.d.ts +0 -0
- package/dist/{hooks → types/hooks}/useBuildData.d.ts +0 -0
- package/dist/{hooks → types/hooks}/useIsActiveRoute.d.ts +0 -0
- package/dist/{hooks → types/hooks}/useSelectPermission.d.ts +0 -0
- package/dist/{hooks → types/hooks}/useSelectState.d.ts +0 -0
- package/dist/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/{layout → types/layout}/components/CustomLayoutItemComponent.d.ts +0 -0
- package/dist/{layout → types/layout}/components/DropdownItem.d.ts +0 -0
- package/dist/{layout → types/layout}/components/Layout.d.ts +0 -0
- package/dist/{layout → types/layout}/components/LayoutItemBar.d.ts +0 -0
- package/dist/{layout → types/layout}/components/LayoutItemWrapper.d.ts +2 -2
- package/dist/{layout → types/layout}/components/MenuItem.d.ts +0 -0
- package/dist/{layout → types/layout}/components/PlainItem.d.ts +2 -2
- package/dist/{layout → types/layout}/components/SecondaryMenuToggleItem.d.ts +0 -0
- package/dist/{layout → types/layout}/hooks/useMobileLayout.d.ts +0 -0
- package/dist/{layout → types/layout}/moveItems.d.ts +0 -0
- package/dist/{layout → types/layout}/types.d.ts +0 -0
- package/dist/{layout → types/layout}/utils.d.ts +0 -0
- package/dist/{layout → types/layout}/withLayout.d.ts +0 -0
- package/dist/{state.d.ts → types/state.d.ts} +0 -0
- package/dist/{types.d.ts → types/types.d.ts} +0 -0
- package/dist/types/utils.d.ts +3 -0
- package/package.json +19 -19
- package/client.js +0 -7
- package/dist/client.js +0 -3665
- package/dist/client.min.js +0 -2
- package/dist/client.min.js.map +0 -1
- package/dist/utils.d.ts +0 -6
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,7 +7,7 @@ interface UseBuildContentDataParams<T extends DefineRouteOptions, K extends keyo
|
|
|
7
7
|
}
|
|
8
8
|
export declare function useBuildContentData<T extends DefineRouteOptions, K extends keyof T>({ data, stateSelectorHook, permissionSelectorHook, routeItem, params, }: UseBuildContentDataParams<T, K>): {
|
|
9
9
|
params: RouteParameters<T[K]["params"]>;
|
|
10
|
-
loc: import("history").Location
|
|
10
|
+
loc: import("history").Location;
|
|
11
11
|
route: {
|
|
12
12
|
path: string[];
|
|
13
13
|
hash: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ComponentClass } from 'react';
|
|
2
2
|
import type { Data } from '../../types';
|
|
3
3
|
import type { LayoutItem } from '../types';
|
|
4
4
|
interface ItemWrapperProps {
|
|
5
5
|
item: LayoutItem;
|
|
6
|
-
as?:
|
|
6
|
+
as?: ComponentClass;
|
|
7
7
|
vertical?: boolean;
|
|
8
8
|
data?: Data;
|
|
9
9
|
}
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ComponentClass } from 'react';
|
|
2
2
|
import type { Data } from '../../types';
|
|
3
3
|
import type { CustomLayoutItem, DropdownLayoutItem, LayoutItem, MenuLayoutItem } from '../types';
|
|
4
4
|
interface PlainItemProps {
|
|
5
5
|
item: Exclude<LayoutItem, MenuLayoutItem | DropdownLayoutItem | CustomLayoutItem>;
|
|
6
6
|
data: Data;
|
|
7
|
-
as?:
|
|
7
|
+
as?: ComponentClass;
|
|
8
8
|
}
|
|
9
9
|
export declare function PlainItem({ item, data, as }: PlainItemProps): JSX.Element;
|
|
10
10
|
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imperium/layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1-alpha.0+0e0766b",
|
|
4
4
|
"description": "Imperium Layout package",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/darkadept/imperium/issues"
|
|
@@ -8,20 +8,19 @@
|
|
|
8
8
|
"repository": "darkadept/imperium",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"author": "Mike Kornelson <darkadept@durbn.net>",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/esm/index.js",
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
13
15
|
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
"client.js"
|
|
16
|
+
"dist"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
|
-
"build": "thx build",
|
|
19
|
-
"build:dev": "thx build:dev",
|
|
20
|
-
"build:prod": "thx build:prod",
|
|
19
|
+
"build": "thx build.roll",
|
|
21
20
|
"clean": "thx clean",
|
|
22
21
|
"deps": "thx deps",
|
|
23
22
|
"lint": "thx lint",
|
|
24
|
-
"lint
|
|
23
|
+
"lint.fix": "thx lint.fix",
|
|
25
24
|
"sort": "thx sort",
|
|
26
25
|
"start": "screen -c ./dev.screenrc",
|
|
27
26
|
"ts": "thx ts"
|
|
@@ -32,31 +31,32 @@
|
|
|
32
31
|
}
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
|
-
"@imperium/auth-client": "^
|
|
36
|
-
"@imperium/client": "^
|
|
37
|
-
"@imperium/router": "^
|
|
38
|
-
"@imperium/state": "^
|
|
39
|
-
"@thx/controls": "^
|
|
40
|
-
"debug": "^4.3.
|
|
34
|
+
"@imperium/auth-client": "^9.0.1-alpha.0+0e0766b",
|
|
35
|
+
"@imperium/client": "^9.0.1-alpha.0+0e0766b",
|
|
36
|
+
"@imperium/router": "^9.0.1-alpha.0+0e0766b",
|
|
37
|
+
"@imperium/state": "^9.0.1-alpha.0+0e0766b",
|
|
38
|
+
"@thx/controls": "^16.0.4",
|
|
39
|
+
"debug": "^4.3.3",
|
|
41
40
|
"history": "^5.0.1",
|
|
42
41
|
"lodash": "^4.17.21",
|
|
42
|
+
"lodash-es": "^4.17.21",
|
|
43
43
|
"react-responsive": "^8.2.0",
|
|
44
44
|
"react-router": "^5.2.1",
|
|
45
45
|
"react-router-dom": "^5.3.0",
|
|
46
|
-
"semantic-ui-react": "^2.
|
|
46
|
+
"semantic-ui-react": "^2.1.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@reduxjs/toolkit": "1.x",
|
|
50
|
-
"mingo": "
|
|
50
|
+
"mingo": "5.x",
|
|
51
51
|
"react": "17.x",
|
|
52
52
|
"react-redux": "7.x",
|
|
53
53
|
"react-router-dom": "5.x"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
56
|
+
"node": ">=16"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "0e0766b3dab3ee859f7aca45cdef02dbfbe0ea68"
|
|
62
62
|
}
|