@omnitend/dashboard-for-laravel 0.8.0 → 0.9.1

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.
@@ -27,33 +27,44 @@ declare var __VLS_1: {
27
27
  model: any;
28
28
  value: any;
29
29
  update: typeof setValue;
30
- }, __VLS_11: {
30
+ }, __VLS_14: {
31
31
  field: FieldDefinition;
32
32
  model: any;
33
- }, __VLS_16: {
33
+ }, __VLS_19: {
34
34
  field: FieldDefinition;
35
35
  model: any;
36
- }, __VLS_28: {
36
+ }, __VLS_24: {
37
+ field: FieldDefinition;
38
+ model: any;
39
+ value: any;
40
+ update: typeof setValue;
41
+ }, __VLS_35: {
42
+ field: FieldDefinition;
43
+ model: any;
44
+ }, __VLS_40: {
45
+ field: FieldDefinition;
46
+ model: any;
47
+ }, __VLS_55: {
37
48
  row: any;
38
49
  index: number;
39
50
  fields: FieldDefinition[];
40
51
  remove: () => void;
41
52
  path: string;
42
- }, __VLS_30: {
53
+ }, __VLS_57: {
43
54
  field: FieldDefinition;
44
55
  model: any;
45
- }, __VLS_35: {
56
+ }, __VLS_62: {
46
57
  field: FieldDefinition;
47
58
  model: any;
48
- }, __VLS_43: {
59
+ }, __VLS_73: {
49
60
  field: FieldDefinition;
50
61
  model: any;
51
62
  value: any;
52
63
  update: typeof setValue;
53
- }, __VLS_77: {
64
+ }, __VLS_107: {
54
65
  field: FieldDefinition;
55
66
  model: any;
56
- }, __VLS_82: {
67
+ }, __VLS_112: {
57
68
  field: FieldDefinition;
58
69
  model: any;
59
70
  };
@@ -62,21 +73,27 @@ type __VLS_Slots = {} & {
62
73
  } & {
63
74
  value?: (props: typeof __VLS_3) => any;
64
75
  } & {
65
- info?: (props: typeof __VLS_11) => any;
76
+ info?: (props: typeof __VLS_14) => any;
77
+ } & {
78
+ hint?: (props: typeof __VLS_19) => any;
79
+ } & {
80
+ value?: (props: typeof __VLS_24) => any;
81
+ } & {
82
+ info?: (props: typeof __VLS_35) => any;
66
83
  } & {
67
- hint?: (props: typeof __VLS_16) => any;
84
+ hint?: (props: typeof __VLS_40) => any;
68
85
  } & {
69
- 'repeater-row'?: (props: typeof __VLS_28) => any;
86
+ 'repeater-row'?: (props: typeof __VLS_55) => any;
70
87
  } & {
71
- info?: (props: typeof __VLS_30) => any;
88
+ info?: (props: typeof __VLS_57) => any;
72
89
  } & {
73
- hint?: (props: typeof __VLS_35) => any;
90
+ hint?: (props: typeof __VLS_62) => any;
74
91
  } & {
75
- value?: (props: typeof __VLS_43) => any;
92
+ value?: (props: typeof __VLS_73) => any;
76
93
  } & {
77
- info?: (props: typeof __VLS_77) => any;
94
+ info?: (props: typeof __VLS_107) => any;
78
95
  } & {
79
- hint?: (props: typeof __VLS_82) => any;
96
+ hint?: (props: typeof __VLS_112) => any;
80
97
  };
81
98
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
82
99
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ /** Visible label text. */
3
+ label: string;
4
+ /** Optional help text revealed in a popover from an info affordance. */
5
+ info?: string;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -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) */