@acvl/frontend-components 0.0.76 → 0.0.77
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/esm/index.js +1 -1
- package/dist/index.d.ts +33 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2478,6 +2478,22 @@ interface DetailFormDrawerProps {
|
|
|
2478
2478
|
permissionsPath?: string;
|
|
2479
2479
|
/** Runs after a successful mutation, before the drawer closes. Receives the response. */
|
|
2480
2480
|
onSuccess?: (response: any) => void;
|
|
2481
|
+
/**
|
|
2482
|
+
* Guardar deja el cajón abierto —y editando— en vez de cerrarlo. El usuario lo cierra
|
|
2483
|
+
* cuando termina, con la X o con Cancelar.
|
|
2484
|
+
*
|
|
2485
|
+
* Para registros que se capturan de a poco, o que llevan dentro su propia grilla editable:
|
|
2486
|
+
* ahí cerrar al guardar cuesta reabrir el registro, volver a entrar a editar y volver a
|
|
2487
|
+
* bajar hasta donde se iba. El caso que lo pide es un cajón anidado —una orden de envío
|
|
2488
|
+
* abierta desde la pestaña de su embarque, con la grilla de sus recibos adentro—, donde el
|
|
2489
|
+
* cierre además se lleva la grilla de en medio.
|
|
2490
|
+
*
|
|
2491
|
+
* Un guardado que **no** guardó igual cierra: `useMutationHandler` corre su `onSuccess` sin
|
|
2492
|
+
* respuesta ante un 403 para quitar la pantalla de en medio, y eso no es algo en lo que
|
|
2493
|
+
* quedarse. Tampoco compite con "Guardar ↓" — ése ya se queda abierto por su cuenta, y
|
|
2494
|
+
* cuando los dos aplican gana el paso al siguiente registro, que es lo que se pidió.
|
|
2495
|
+
*/
|
|
2496
|
+
keepOpenOnSave?: boolean;
|
|
2481
2497
|
/**
|
|
2482
2498
|
* Acciones propias del registro —cerrar, revertir, descargar su PDF—, las mismas que
|
|
2483
2499
|
* `DetailPage_v2` recibe en `slots.extraButtons` y con la misma forma, para que un registro
|
|
@@ -2579,8 +2595,12 @@ interface DetailFormDrawerProps {
|
|
|
2579
2595
|
* captured down a list in one pass without the hands leaving the keyboard. Rename it with
|
|
2580
2596
|
* `labels.saveAndNext`. Guardar sits outside the `<form>` and submits via the native
|
|
2581
2597
|
* `form={formId}` attribute; Guardar ↓ submits by hand, so the implicit Enter stays Guardar.
|
|
2598
|
+
*
|
|
2599
|
+
* `keepOpenOnSave` cambia lo que hace Guardar cuando no hay a dónde avanzar: en vez de cerrar,
|
|
2600
|
+
* deja el registro en pantalla y editando — para formularios que se capturan de a poco o que
|
|
2601
|
+
* llevan una grilla adentro.
|
|
2582
2602
|
*/
|
|
2583
|
-
declare function DetailFormDrawer({ open, onClose, title, api, form, sections, pageType, startInEdit, recordKey, permissionsPath, onSuccess, extraButtons, navigation, width, anchor, variant, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, responsiveTo, containerBreakpoints, labels, slots, slotProps, }: DetailFormDrawerProps): react_jsx_runtime.JSX.Element;
|
|
2603
|
+
declare function DetailFormDrawer({ open, onClose, title, api, form, sections, pageType, startInEdit, recordKey, permissionsPath, onSuccess, keepOpenOnSave, extraButtons, navigation, width, anchor, variant, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, responsiveTo, containerBreakpoints, labels, slots, slotProps, }: DetailFormDrawerProps): react_jsx_runtime.JSX.Element;
|
|
2584
2604
|
|
|
2585
2605
|
interface DrawerGridDrawerConfig {
|
|
2586
2606
|
/** Shared field layout, used by every mode. Same shape as `DetailPage_v2`'s `form`/`sections`. */
|
|
@@ -2697,6 +2717,14 @@ interface DrawerGridDrawerConfig {
|
|
|
2697
2717
|
* without a list to walk there is nothing to continue to.
|
|
2698
2718
|
*/
|
|
2699
2719
|
showNavigator?: boolean;
|
|
2720
|
+
/**
|
|
2721
|
+
* Guardar deja el cajón abierto y editando en vez de cerrarlo; se cierra con la X o con
|
|
2722
|
+
* Cancelar. Para registros que se capturan de a poco, o que llevan su propia grilla
|
|
2723
|
+
* editable adentro y perderían el lugar al cerrarse.
|
|
2724
|
+
*
|
|
2725
|
+
* @see DetailFormDrawerProps.keepOpenOnSave
|
|
2726
|
+
*/
|
|
2727
|
+
keepOpenOnSave?: boolean;
|
|
2700
2728
|
/** Rótulos del pie del cajón. `saveAndNext` por defecto es `"Guardar ↓"`. */
|
|
2701
2729
|
labels?: {
|
|
2702
2730
|
save?: string;
|
|
@@ -2756,6 +2784,10 @@ interface DrawerGridProps {
|
|
|
2756
2784
|
* open-edit-save-reopen per row — and with the shortcut, without leaving the keyboard. It
|
|
2757
2785
|
* rides on the navigator — no navigator, or last row, and there is just Guardar.
|
|
2758
2786
|
*
|
|
2787
|
+
* `drawer.keepOpenOnSave` hace que Guardar no cierre: el registro se queda en pantalla y
|
|
2788
|
+
* editando. Vale la pena donde el cajón lleva su propia grilla adentro —cerrarlo se lleva
|
|
2789
|
+
* también lo que se estaba capturando ahí— o donde el registro se llena en varias pasadas.
|
|
2790
|
+
*
|
|
2759
2791
|
* Edit mode is opt-in with `api.edit: {}` and adds nothing to the grid but a toolbar toggle —
|
|
2760
2792
|
* no mutation, no actions column, no in-grid editing. While it's on, a row click opens the
|
|
2761
2793
|
* record drawer already editing, provided the record allows it; the drawer form is the only
|
package/package.json
CHANGED