@omnitend/dashboard-for-laravel 0.7.1 → 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.
@@ -15,6 +15,17 @@ interface Props {
15
15
  } | null;
16
16
  /** Logout URL for navbar dropdown */
17
17
  logoutUrl?: string;
18
+ /**
19
+ * Turn sidebar group headers into accordion toggles that collapse/expand
20
+ * their items. When off (default), every group is permanently expanded.
21
+ */
22
+ collapsibleGroups?: boolean;
23
+ /**
24
+ * Only relevant when `collapsibleGroups` is on. `true` (default): only the
25
+ * active-route group starts open and opening one closes the others
26
+ * (single-open accordion). `false`: all groups start open, toggled independently.
27
+ */
28
+ autoCollapseInactiveGroups?: boolean;
18
29
  /** LocalStorage key for sidebar state persistence */
19
30
  storageKey?: string;
20
31
  /**
@@ -34,6 +45,8 @@ type __VLS_Slots = {} & {
34
45
  };
35
46
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
36
47
  title: string;
48
+ collapsibleGroups: boolean;
49
+ autoCollapseInactiveGroups: boolean;
37
50
  user: {
38
51
  name: string;
39
52
  email: string;
@@ -5,6 +5,18 @@ type __VLS_Props = {
5
5
  collapsed?: boolean;
6
6
  hidden?: boolean;
7
7
  title?: string;
8
+ /**
9
+ * Turn group headers into accordion toggles that collapse/expand their items.
10
+ * When off (default), every group is rendered permanently expanded.
11
+ */
12
+ collapsibleGroups?: boolean;
13
+ /**
14
+ * Only relevant when `collapsibleGroups` is on.
15
+ * `true` (default): only the active-route group starts open, and opening one
16
+ * group closes the others (single-open accordion).
17
+ * `false`: all groups start open and toggle independently.
18
+ */
19
+ autoCollapseInactiveGroups?: boolean;
8
20
  };
9
21
  declare var __VLS_1: {
10
22
  collapsed: boolean;
@@ -13,6 +25,7 @@ declare var __VLS_1: {
13
25
  item: import("../..").NavigationItem;
14
26
  isActive: boolean;
15
27
  collapsed: boolean;
28
+ isExpanded: boolean;
16
29
  };
17
30
  type __VLS_Slots = {} & {
18
31
  brand?: (props: typeof __VLS_1) => any;
@@ -27,6 +40,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
27
40
  collapsed: boolean;
28
41
  hidden: boolean;
29
42
  title: string;
43
+ collapsibleGroups: boolean;
44
+ autoCollapseInactiveGroups: boolean;
30
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
46
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
47
  export default _default;