@omnitend/dashboard-for-laravel 0.25.0 → 0.26.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.
@@ -201,6 +201,20 @@ export interface Props<TItem = any> {
201
201
  * per-row detail into a modal.
202
202
  */
203
203
  expandedItems?: TItem[];
204
+ /**
205
+ * Class(es) applied to each row's `<tr>` — a string, or a function of the
206
+ * row. Use for conditional row styling (a variant, a muted/disabled look)
207
+ * without reaching into the table's internal DOM from global CSS.
208
+ */
209
+ rowClass?: string | ((item: TItem, index: number) => string | string[] | Record<string, boolean>);
210
+ /**
211
+ * Whether a given row is actionable. Only relevant when rows are clickable
212
+ * (an `editFields` modal or a `row-clicked` listener). A row this returns
213
+ * `false` for gets no pointer cursor, no hover highlight, and does not fire
214
+ * `row-clicked` or open the edit modal — so a row that isn't clickable
215
+ * doesn't *look* clickable, and a click on it can't quietly do something.
216
+ */
217
+ rowClickable?: (item: TItem, index: number) => boolean;
204
218
  /** Enable client-side filtering, sorting, and pagination on items array */
205
219
  clientSide?: boolean;
206
220
  }
@@ -273,6 +287,12 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
273
287
  }) => any) | undefined;
274
288
  } & {
275
289
  header?: (props: {}) => any;
290
+ } & {
291
+ 'thead-top'?: (props: any) => any;
292
+ } & {
293
+ 'thead-top'?: (props: any) => any;
294
+ } & {
295
+ 'thead-top'?: (props: any) => any;
276
296
  };
277
297
  emit: ((evt: "update:sortBy", sortBy: BTableSortBy[]) => void) & ((evt: "update:busy", busy: boolean) => void) & ((evt: "rowClicked", item: T, index: number, event: MouseEvent) => void) & ((evt: "update:expandedItems", items: T[]) => void) & ((evt: "pageChange", page: number) => void) & ((evt: "sortChange", sort: {
278
298
  key: string;