@acvl/frontend-components 0.0.62 → 0.0.63
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v2/datagrids/DrawerGrid/index.d.ts +8 -16
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v2/datagrids/DrawerGrid/index.d.ts +8 -16
- package/dist/index.d.ts +8 -16
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export interface DrawerGridDrawerConfig {
|
|
|
21
21
|
pageType?: PageType;
|
|
22
22
|
successMessage?: string | ((response: any) => string);
|
|
23
23
|
};
|
|
24
|
-
/** Record-mode API (opened by a row
|
|
24
|
+
/** Record-mode API (opened by a row click). */
|
|
25
25
|
record: {
|
|
26
26
|
/** Single-record query hook, called with `{ id, ...args(id) }`. */
|
|
27
27
|
query: any;
|
|
@@ -48,27 +48,19 @@ export interface DrawerGridDrawerConfig {
|
|
|
48
48
|
export interface DrawerGridProps {
|
|
49
49
|
/** Full v1 `Base` grid configuration (pathname, api, dataGridProps, slotProps, ref). */
|
|
50
50
|
grid: BaseGridProps;
|
|
51
|
-
/**
|
|
52
|
-
* How a single row click behaves. `"navigate"` (default) keeps the full-page route;
|
|
53
|
-
* `"drawer"` opens the record drawer instead. Ctrl/Cmd+click always opens the full page
|
|
54
|
-
* in a new tab, and the drawer carries an "open full page" button — so the route stays
|
|
55
|
-
* reachable either way.
|
|
56
|
-
*/
|
|
57
|
-
rowAction?: "navigate" | "drawer";
|
|
58
51
|
drawer: DrawerGridDrawerConfig;
|
|
59
52
|
}
|
|
60
53
|
/**
|
|
61
|
-
* A v1 `Base` grid whose rows and create button
|
|
62
|
-
* navigating to a full page — without giving up the full-page routes.
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* "open full page" button — so the routes stay reachable either way.
|
|
54
|
+
* A v1 `Base` grid whose rows and create button open a `DetailFormDrawer_v2` instead of
|
|
55
|
+
* navigating to a full page — without giving up the full-page routes. A row click and the
|
|
56
|
+
* create menu's "Manual" option both open the drawer; Ctrl/Cmd+click still opens the full
|
|
57
|
+
* page in a new tab, and the record drawer carries an "open full page" button — so the
|
|
58
|
+
* routes stay reachable either way.
|
|
67
59
|
*
|
|
68
60
|
* The full `Base` grid config goes under `grid` (`{ pathname, api, dataGridProps, slotProps }`),
|
|
69
|
-
* alongside `
|
|
61
|
+
* alongside `drawer`.
|
|
70
62
|
*
|
|
71
63
|
* Composition only: the v1 grid stays drawer-agnostic (its `onRowClick` and `onManualCreate`
|
|
72
64
|
* are generic passthroughs), so the v1→v2 layering is never inverted.
|
|
73
65
|
*/
|
|
74
|
-
export default function DrawerGrid({ grid,
|
|
66
|
+
export default function DrawerGrid({ grid, drawer }: DrawerGridProps): import("react/jsx-runtime").JSX.Element;
|