@omnitend/dashboard-for-laravel 0.21.0 → 0.22.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/extended/DXDashboard.vue.d.ts +14 -4
- package/dist/components/extended/DXDashboardNavbar.vue.d.ts +16 -0
- package/dist/dashboard-for-laravel.js +667 -649
- package/dist/dashboard-for-laravel.js.map +1 -1
- package/dist/dashboard-for-laravel.umd.cjs +5 -5
- package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/types/navigation.d.ts +13 -0
- package/docs/public/api-reference.json +46 -12
- package/docs/public/docs-map.md +1 -1
- package/package.json +4 -1
- package/resources/css/theme.scss +17 -2
- package/resources/js/components/extended/DXDashboard.vue +19 -7
- package/resources/js/components/extended/DXDashboardNavbar.vue +104 -26
- package/resources/js/index.ts +2 -0
- package/resources/js/types/navigation.ts +15 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Navigation } from '../../types/navigation';
|
|
1
|
+
import type { Navigation, NavbarActionsOnMobile, NavbarSearchAlign } from '../../types/navigation';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Navigation structure for sidebar */
|
|
4
4
|
navigation: Navigation;
|
|
@@ -26,8 +26,17 @@ interface Props {
|
|
|
26
26
|
name: string;
|
|
27
27
|
email: string;
|
|
28
28
|
} | null;
|
|
29
|
-
/**
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Horizontal alignment of the navbar search slot content (`"start"` = flush
|
|
31
|
+
* left, `"center"` = centred), forwarded to DXDashboardNavbar.
|
|
32
|
+
*/
|
|
33
|
+
searchAlign?: NavbarSearchAlign;
|
|
34
|
+
/**
|
|
35
|
+
* What the navbar actions slot does below `md`: `"wrap"` to its own
|
|
36
|
+
* full-width row, `"hide"` to remove it (relocate actions into the page on
|
|
37
|
+
* phones). Forwarded to DXDashboardNavbar.
|
|
38
|
+
*/
|
|
39
|
+
actionsOnMobile?: NavbarActionsOnMobile;
|
|
31
40
|
/**
|
|
32
41
|
* Turn sidebar group headers into accordion toggles that collapse/expand
|
|
33
42
|
* their items. When off (default), every group is permanently expanded.
|
|
@@ -67,8 +76,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
67
76
|
email: string;
|
|
68
77
|
} | null;
|
|
69
78
|
pageTitle: string;
|
|
79
|
+
searchAlign: NavbarSearchAlign;
|
|
80
|
+
actionsOnMobile: NavbarActionsOnMobile;
|
|
70
81
|
contentMaxWidth: string;
|
|
71
|
-
logoutUrl: string;
|
|
72
82
|
storageKey: string;
|
|
73
83
|
dashboardId: string;
|
|
74
84
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavbarActionsOnMobile, NavbarSearchAlign } from "../../types/navigation";
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
/** The signed-in user shown in the avatar dropdown. `null` hides the menu. */
|
|
3
4
|
user?: {
|
|
@@ -7,6 +8,19 @@ type __VLS_Props = {
|
|
|
7
8
|
} | null;
|
|
8
9
|
/** Page title shown at the left of the navbar (hidden below the `md` breakpoint). */
|
|
9
10
|
pageTitle?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Horizontal alignment of the search slot content within its region
|
|
13
|
+
* (`"start"` = flush left, `"center"` = centred). Applies at every size:
|
|
14
|
+
* the region sits inline after the title from `md` up, and is its own
|
|
15
|
+
* full-width row below.
|
|
16
|
+
*/
|
|
17
|
+
searchAlign?: NavbarSearchAlign;
|
|
18
|
+
/**
|
|
19
|
+
* What the actions slot does below the `md` breakpoint: `"wrap"` moves it
|
|
20
|
+
* to its own full-width row (the bar grows), `"hide"` removes it entirely
|
|
21
|
+
* (for apps that relocate page actions into the page on phones).
|
|
22
|
+
*/
|
|
23
|
+
actionsOnMobile?: NavbarActionsOnMobile;
|
|
10
24
|
};
|
|
11
25
|
declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {
|
|
12
26
|
pageTitle: string;
|
|
@@ -49,6 +63,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
49
63
|
[key: string]: any;
|
|
50
64
|
} | null;
|
|
51
65
|
pageTitle: string;
|
|
66
|
+
searchAlign: NavbarSearchAlign;
|
|
67
|
+
actionsOnMobile: NavbarActionsOnMobile;
|
|
52
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
69
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
54
70
|
export default _default;
|