@omnitend/dashboard-for-laravel 0.10.0 → 0.11.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.
- package/dist/components/extended/DXDashboard.vue.d.ts +12 -2
- package/dist/components/extended/DXTable.vue.d.ts +15 -0
- package/dist/dashboard-for-laravel.js +3726 -3693
- package/dist/dashboard-for-laravel.js.map +1 -1
- package/dist/dashboard-for-laravel.umd.cjs +7 -7
- package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/docs/public/api-reference.json +21 -3
- package/docs/public/docs-map.md +1 -1
- package/package.json +1 -1
- package/resources/js/components/extended/DXDashboard.vue +18 -3
- package/resources/js/components/extended/DXTable.vue +29 -0
|
@@ -8,6 +8,14 @@ interface Props {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
/** Page title shown in navbar */
|
|
10
10
|
pageTitle?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Render the page content full-width and left-aligned instead of the default
|
|
13
|
+
* centred, reading-width (`col-xl-10`) column. Use for data-heavy admin pages
|
|
14
|
+
* (wide tables).
|
|
15
|
+
*/
|
|
16
|
+
fluid?: boolean;
|
|
17
|
+
/** Extra class(es) applied to the content container/column. */
|
|
18
|
+
contentClass?: string;
|
|
11
19
|
/** User object for navbar dropdown */
|
|
12
20
|
user?: {
|
|
13
21
|
name: string;
|
|
@@ -35,13 +43,15 @@ interface Props {
|
|
|
35
43
|
*/
|
|
36
44
|
dashboardId?: string;
|
|
37
45
|
}
|
|
38
|
-
declare var __VLS_9: string, __VLS_10: any, __VLS_20: string, __VLS_21: any,
|
|
46
|
+
declare var __VLS_9: string, __VLS_10: any, __VLS_20: string, __VLS_21: any, __VLS_26: {}, __VLS_37: {};
|
|
39
47
|
type __VLS_Slots = {} & {
|
|
40
48
|
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
41
49
|
} & {
|
|
42
50
|
[K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
|
|
43
51
|
} & {
|
|
44
|
-
default?: (props: typeof
|
|
52
|
+
default?: (props: typeof __VLS_26) => any;
|
|
53
|
+
} & {
|
|
54
|
+
default?: (props: typeof __VLS_37) => any;
|
|
45
55
|
};
|
|
46
56
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
47
57
|
title: string;
|
|
@@ -114,6 +114,15 @@ export interface Props<TItem = any> {
|
|
|
114
114
|
editUrl?: string;
|
|
115
115
|
/** API endpoint pattern for deletions (e.g., "/api/products/:id") */
|
|
116
116
|
deleteUrl?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Guard run when Delete is clicked, before the confirm dialog and request.
|
|
119
|
+
* Return a message for a non-deletable item to show it immediately (as a
|
|
120
|
+
* toast) and skip both the confirm and the delete request; return
|
|
121
|
+
* `null`/`undefined` to proceed with the normal confirm + delete. Lets you
|
|
122
|
+
* short-circuit a doomed delete (e.g. a record with dependents that the
|
|
123
|
+
* server would reject) with an immediate, specific reason.
|
|
124
|
+
*/
|
|
125
|
+
deleteGuard?: (item: TItem) => string | null | undefined;
|
|
117
126
|
/** API endpoint for creating new items (e.g., "/api/products") — enables "New" button */
|
|
118
127
|
createUrl?: string;
|
|
119
128
|
/** Enable client-side filtering, sorting, and pagination on items array */
|
|
@@ -142,6 +151,12 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
142
151
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:sortBy" | "onUpdate:busy" | "onRowClicked" | "onPageChange" | "onSortChange" | "onFilterChange" | "onPerPageChange" | "onRowCreated" | "onCreateError" | "onRowUpdated" | "onEditError" | "onRowDeleted" | "onDeleteError" | "onUpdate:filters" | "onUpdate:perPage"> & Props<T> & Partial<{}>> & import("vue").PublicProps;
|
|
143
152
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
144
153
|
refresh: () => void;
|
|
154
|
+
/**
|
|
155
|
+
* Open the built-in create modal (same as clicking the default "New {item}"
|
|
156
|
+
* button). Lets the create action live outside the table card — e.g. in a
|
|
157
|
+
* page header or the dashboard navbar. No-op unless `editFields` are set.
|
|
158
|
+
*/
|
|
159
|
+
openCreate: () => void;
|
|
145
160
|
}>): void;
|
|
146
161
|
attrs: any;
|
|
147
162
|
slots: {
|