@omnitend/dashboard-for-laravel 0.23.0 → 0.25.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.
@@ -37,6 +37,8 @@ interface Props {
37
37
  * phones). Forwarded to DXDashboardNavbar.
38
38
  */
39
39
  actionsOnMobile?: NavbarActionsOnMobile;
40
+ /** Accessible name for the navbar's user-menu trigger. Forwarded to DXDashboardNavbar. */
41
+ userMenuLabel?: string;
40
42
  /**
41
43
  * Turn sidebar group headers into accordion toggles that collapse/expand
42
44
  * their items. When off (default), every group is permanently expanded.
@@ -89,6 +91,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
89
91
  pageTitle: string;
90
92
  searchAlign: NavbarSearchAlign;
91
93
  actionsOnMobile: NavbarActionsOnMobile;
94
+ userMenuLabel: string;
92
95
  contentMaxWidth: string;
93
96
  storageKey: string;
94
97
  dashboardId: string;
@@ -21,6 +21,11 @@ type __VLS_Props = {
21
21
  * (for apps that relocate page actions into the page on phones).
22
22
  */
23
23
  actionsOnMobile?: NavbarActionsOnMobile;
24
+ /**
25
+ * Accessible name for the user-menu trigger. Without one, a screen reader
26
+ * announces the trigger as the avatar's initial ("J") rather than as a menu.
27
+ */
28
+ userMenuLabel?: string;
24
29
  };
25
30
  declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {
26
31
  pageTitle: string;
@@ -70,6 +75,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
70
75
  pageTitle: string;
71
76
  searchAlign: NavbarSearchAlign;
72
77
  actionsOnMobile: NavbarActionsOnMobile;
78
+ userMenuLabel: string;
73
79
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
74
80
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
75
81
  export default _default;
@@ -112,10 +112,10 @@ declare var __VLS_1: {
112
112
  model: any;
113
113
  value: any;
114
114
  update: typeof setValue;
115
- }, __VLS_192: {
115
+ }, __VLS_198: {
116
116
  field: FieldDefinition;
117
117
  model: any;
118
- }, __VLS_197: {
118
+ }, __VLS_203: {
119
119
  field: FieldDefinition;
120
120
  model: any;
121
121
  };
@@ -160,9 +160,9 @@ type __VLS_Slots = {} & {
160
160
  } & {
161
161
  value?: (props: typeof __VLS_133) => any;
162
162
  } & {
163
- info?: (props: typeof __VLS_192) => any;
163
+ info?: (props: typeof __VLS_198) => any;
164
164
  } & {
165
- hint?: (props: typeof __VLS_197) => any;
165
+ hint?: (props: typeof __VLS_203) => any;
166
166
  };
167
167
  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>;
168
168
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -6,6 +6,31 @@ export interface FilterOption {
6
6
  export interface TableField {
7
7
  key: string;
8
8
  label?: string;
9
+ /**
10
+ * The key this column's filter is sent under, when it differs from the
11
+ * column's own key (default: `key`). Lets a *display* column filter on a
12
+ * different server param — e.g. a "Customer" column rendering a name but
13
+ * filtering on `customer_id` — instead of forcing the column to be named
14
+ * after the server's filter param and the human-facing value into a
15
+ * `#cell` slot.
16
+ */
17
+ filterKey?: string;
18
+ /**
19
+ * For a `select` filter: adds an option meaning "has no value", e.g.
20
+ * `filterNullText: "Unassigned"` on an assignee column. Selecting it sends
21
+ * `filterNullValue` (default `"null"`) as the filter value; client-side, it
22
+ * matches rows whose value is null, undefined or empty.
23
+ */
24
+ filterNullText?: string;
25
+ /** The value sent when the `filterNullText` option is chosen. Default `"null"`. */
26
+ filterNullValue?: string;
27
+ /**
28
+ * Text of the "clear this filter" option at the top of a `select` filter's
29
+ * list (default: the filter's placeholder, e.g. "All statuses"). The list
30
+ * otherwise offers no way back to *unfiltered* once a value is picked —
31
+ * only the ✕, which isn't discoverable from inside the open dropdown.
32
+ */
33
+ filterAllText?: string;
9
34
  sortable?: boolean;
10
35
  hint?: string;
11
36
  filter?: FilterType;