@omnitend/dashboard-for-laravel 0.9.0 → 0.9.2

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.
@@ -7,14 +7,16 @@ type __VLS_Props = {
7
7
  pageTitle?: string;
8
8
  };
9
9
  declare var __VLS_17: {}, __VLS_19: {}, __VLS_24: {
10
+ pageTitle: string;
11
+ }, __VLS_26: {
10
12
  user: {
11
13
  [key: string]: any;
12
14
  name: string;
13
15
  email: string;
14
16
  } | null;
15
- }, __VLS_29: {
16
- initial: string;
17
17
  }, __VLS_31: {
18
+ initial: string;
19
+ }, __VLS_33: {
18
20
  user: {
19
21
  [key: string]: any;
20
22
  name: string;
@@ -26,11 +28,13 @@ type __VLS_Slots = {} & {
26
28
  } & {
27
29
  search?: (props: typeof __VLS_19) => any;
28
30
  } & {
29
- 'user-menu'?: (props: typeof __VLS_24) => any;
31
+ actions?: (props: typeof __VLS_24) => any;
32
+ } & {
33
+ 'user-menu'?: (props: typeof __VLS_26) => any;
30
34
  } & {
31
- 'user-icon'?: (props: typeof __VLS_29) => any;
35
+ 'user-icon'?: (props: typeof __VLS_31) => any;
32
36
  } & {
33
- 'user-menu-items'?: (props: typeof __VLS_31) => any;
37
+ 'user-menu-items'?: (props: typeof __VLS_33) => any;
34
38
  };
35
39
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
40
  toggleSidebar: () => any;
@@ -36,8 +36,12 @@ export type BTableProvider<T = any> = (context: Readonly<BTableProviderContext>)
36
36
  export interface EditTab {
37
37
  /** Unique key for this tab */
38
38
  key: string;
39
- /** Display label (optional, auto-derived from key if omitted) */
40
- label?: string;
39
+ /**
40
+ * Display label (optional, auto-derived from key if omitted). May be a
41
+ * function of the model (the edited row merged with the live form data),
42
+ * e.g. `label: (item) => \`Products (${item.products_count ?? 0})\``.
43
+ */
44
+ label?: string | ((item: any) => string);
41
45
  /** Field keys to display in this tab (from editFields) */
42
46
  fieldKeys: string[];
43
47
  /** Conditional display (optional) */