@omnitend/dashboard-for-laravel 0.42.2 → 0.43.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.
@@ -17,9 +17,9 @@ interface Props {
17
17
  * slot overrides it when the affix needs to be more than a string. */
18
18
  append?: string;
19
19
  }
20
- declare var __VLS_14: {};
20
+ declare var __VLS_13: {};
21
21
  type __VLS_Slots = {} & {
22
- append?: (props: typeof __VLS_14) => any;
22
+ append?: (props: typeof __VLS_13) => any;
23
23
  };
24
24
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
25
  "update:modelValue": (value: number | null) => any;
@@ -1,4 +1,4 @@
1
- import type { Navigation, NavbarActionsOnMobile, NavbarSearchAlign } from '../../types/navigation';
1
+ import type { Navigation, NavbarActionsOnMobile, NavbarSearchAlign, SidebarVariant } from '../../types/navigation';
2
2
  interface Props {
3
3
  /** Navigation structure for sidebar */
4
4
  navigation: Navigation;
@@ -50,6 +50,13 @@ interface Props {
50
50
  * (single-open accordion). `false`: all groups start open, toggled independently.
51
51
  */
52
52
  autoCollapseInactiveGroups?: boolean;
53
+ /**
54
+ * Sidebar colour scheme, forwarded to DXDashboardSidebar as `variant`:
55
+ * `'light'` (default: white pane, tinted group headers, green active item,
56
+ * Poppins) or `'dark'` (the navy rail). Colours come from the
57
+ * `--dx-sidebar-*` custom properties, so either can be rebranded in CSS.
58
+ */
59
+ sidebarVariant?: SidebarVariant;
53
60
  /** LocalStorage key for sidebar state persistence */
54
61
  storageKey?: string;
55
62
  /**
@@ -59,15 +66,15 @@ interface Props {
59
66
  */
60
67
  dashboardId?: string;
61
68
  }
62
- declare var __VLS_9: string, __VLS_10: any, __VLS_20: string, __VLS_21: any, __VLS_26: {}, __VLS_37: {};
69
+ declare var __VLS_13: string, __VLS_14: any, __VLS_24: string, __VLS_25: any, __VLS_30: {}, __VLS_41: {};
63
70
  type __VLS_Slots = {} & {
64
- [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
71
+ [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
65
72
  } & {
66
- [K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
73
+ [K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
67
74
  } & {
68
- default?: (props: typeof __VLS_26) => any;
75
+ default?: (props: typeof __VLS_30) => any;
69
76
  } & {
70
- default?: (props: typeof __VLS_37) => any;
77
+ default?: (props: typeof __VLS_41) => any;
71
78
  };
72
79
  declare const __VLS_component: import("vue").DefineComponent<Props, {
73
80
  /**
@@ -93,6 +100,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
93
100
  actionsOnMobile: NavbarActionsOnMobile;
94
101
  userMenuLabel: string;
95
102
  contentMaxWidth: string;
103
+ sidebarVariant: SidebarVariant;
96
104
  storageKey: string;
97
105
  dashboardId: string;
98
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,9 +10,8 @@ type __VLS_Props = {
10
10
  pageTitle?: string;
11
11
  /**
12
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.
13
+ * (`"start"` = flush left, `"center"` = centred). The region sits inline
14
+ * between the toggle/title and the user menu at every width.
16
15
  */
17
16
  searchAlign?: NavbarSearchAlign;
18
17
  /**
@@ -26,6 +25,14 @@ type __VLS_Props = {
26
25
  * announces the trigger as the avatar's initial ("J") rather than as a menu.
27
26
  */
28
27
  userMenuLabel?: string;
28
+ /**
29
+ * Whether the sidebar the toggle controls is showing, exposed as the
30
+ * toggle's `aria-expanded`. Left unset, the toggle carries none.
31
+ * DXDashboard sets it.
32
+ */
33
+ sidebarExpanded?: boolean;
34
+ /** `id` of the sidebar the toggle controls (its `aria-controls`). */
35
+ sidebarId?: string;
29
36
  };
30
37
  declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {
31
38
  pageTitle: string;
@@ -76,6 +83,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
76
83
  searchAlign: NavbarSearchAlign;
77
84
  actionsOnMobile: NavbarActionsOnMobile;
78
85
  userMenuLabel: string;
86
+ sidebarExpanded: boolean;
87
+ sidebarId: string;
79
88
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
80
89
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
81
90
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { Navigation } from '../../types/navigation';
1
+ import type { Navigation, SidebarVariant } from '../../types/navigation';
2
2
  type __VLS_Props = {
3
3
  /** Grouped navigation to render: an array of groups, each with a label and items. */
4
4
  navigation: Navigation;
@@ -22,6 +22,20 @@ type __VLS_Props = {
22
22
  * `false`: all groups start open and toggle independently.
23
23
  */
24
24
  autoCollapseInactiveGroups?: boolean;
25
+ /**
26
+ * Colour scheme: `'light'` (default) or `'dark'`. Colours come from the
27
+ * `--dx-sidebar-*` custom properties (see the theming guide), so either
28
+ * scheme can be rebranded in CSS.
29
+ */
30
+ variant?: SidebarVariant;
31
+ /**
32
+ * Below `sm`, show the open sidebar as a full-screen menu over the page,
33
+ * with a close button (which emits `close`), instead of a rail beside it;
34
+ * hidden there until opened. The owner must answer `close`, Escape and
35
+ * `navigate`: DXDashboard sets this and does. Off by default, so a
36
+ * standalone sidebar keeps its rail on phones.
37
+ */
38
+ phoneMenu?: boolean;
25
39
  };
26
40
  declare var __VLS_1: {
27
41
  collapsed: boolean;
@@ -42,15 +56,21 @@ type __VLS_Slots = {} & {
42
56
  footer?: (props: typeof __VLS_9) => any;
43
57
  };
44
58
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ close: () => any;
45
60
  toggle: () => any;
61
+ navigate: () => any;
46
62
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
63
+ onClose?: (() => any) | undefined;
47
64
  onToggle?: (() => any) | undefined;
65
+ onNavigate?: (() => any) | undefined;
48
66
  }>, {
49
67
  hidden: boolean;
50
68
  title: string;
51
69
  collapsed: boolean;
52
70
  collapsibleGroups: boolean;
53
71
  autoCollapseInactiveGroups: boolean;
72
+ variant: SidebarVariant;
73
+ phoneMenu: boolean;
54
74
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
75
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
56
76
  export default _default;
@@ -0,0 +1,25 @@
1
+ interface Props {
2
+ /**
3
+ * Stack when the wrapper's content width is below this many px. 576 is
4
+ * Bootstrap's `sm` breakpoint, but measured on the container.
5
+ */
6
+ stackBelow?: number;
7
+ }
8
+ declare var __VLS_1: {
9
+ stacked: boolean;
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
15
+ isStacked: import("vue").ComputedRef<boolean>;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
17
+ stackBelow: number;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };