toku-ui 5.5.0 → 5.6.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.
@@ -0,0 +1,74 @@
1
+ import type { StoryObj } from '@storybook/vue3-vite';
2
+ declare const meta: {
3
+ component: {
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./TConfirmDialog.vue").TConfirmDialogProps & {
5
+ open?: boolean;
6
+ }> & Readonly<{
7
+ onCancel?: (() => any) | undefined;
8
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
9
+ onConfirm?: (() => any) | undefined;
10
+ onClosed?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ cancel: () => any;
13
+ "update:open": (value: boolean) => any;
14
+ confirm: () => any;
15
+ closed: () => any;
16
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
17
+ P: {};
18
+ B: {};
19
+ D: {};
20
+ C: {};
21
+ M: {};
22
+ Defaults: {};
23
+ }, Readonly<import("./TConfirmDialog.vue").TConfirmDialogProps & {
24
+ open?: boolean;
25
+ }> & Readonly<{
26
+ onCancel?: (() => any) | undefined;
27
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
28
+ onConfirm?: (() => any) | undefined;
29
+ onClosed?: (() => any) | undefined;
30
+ }>, {}, {}, {}, {}, {}>;
31
+ __isFragment?: never;
32
+ __isTeleport?: never;
33
+ __isSuspense?: never;
34
+ } & import("vue").ComponentOptionsBase<Readonly<import("./TConfirmDialog.vue").TConfirmDialogProps & {
35
+ open?: boolean;
36
+ }> & Readonly<{
37
+ onCancel?: (() => any) | undefined;
38
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
39
+ onConfirm?: (() => any) | undefined;
40
+ onClosed?: (() => any) | undefined;
41
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
+ cancel: () => any;
43
+ "update:open": (value: boolean) => any;
44
+ confirm: () => any;
45
+ closed: () => any;
46
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
47
+ $slots: import("./TConfirmDialog.vue").TConfirmDialogSlots;
48
+ });
49
+ args: {
50
+ title: string;
51
+ description: string;
52
+ confirmLabel: string;
53
+ cancelLabel: string;
54
+ };
55
+ parameters: {
56
+ layout: string;
57
+ docs: {
58
+ story: {
59
+ inline: boolean;
60
+ iframeHeight: number;
61
+ };
62
+ };
63
+ };
64
+ };
65
+ export default meta;
66
+ type Story = StoryObj<typeof meta>;
67
+ /**
68
+ * Centered over a scrim that covers the whole screen. The confirm button is primary,
69
+ * never red, and repeats the verb. Focus starts on Cancelar; Escape cancels.
70
+ */
71
+ export declare const playground: Story;
72
+ /** Asked from code with `useConfirm()`: the promise resolves to the answer. */
73
+ export declare const withUseConfirm: Story;
74
+ //# sourceMappingURL=TConfirmDialog.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TConfirmDialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TConfirmDialog/TConfirmDialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAO3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa6B,CAAC;AAExC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAmCxB,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,cAAc,EAAE,KA8B5B,CAAC"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Centered question that blocks the whole screen, page and drawer included, until it is
3
+ * answered: discarding changes, deleting a record.
4
+ *
5
+ * The confirm button is always the primary one — never red — and repeats the verb of the
6
+ * question ("Eliminar producto"), so it reads on its own. Focus starts on Cancel, the safe
7
+ * answer. Escape cancels; clicking the scrim does nothing. It stacks over an open
8
+ * `TDrawer`, and focus goes back inside the drawer when it closes.
9
+ *
10
+ * To ask from code and await the answer, use `useConfirm()` instead of rendering it.
11
+ */
12
+ export interface TConfirmDialogProps {
13
+ /** The question, e.g. "¿Eliminar el producto?". Names the dialog. */
14
+ title: string;
15
+ /** What happens if confirmed. Describes the dialog. */
16
+ description?: string;
17
+ /** The verb plus its object, e.g. "Eliminar producto". */
18
+ confirmLabel: string;
19
+ /** @defaultValue 'Cancelar' */
20
+ cancelLabel?: string;
21
+ }
22
+ export interface TConfirmDialogEmits {
23
+ /** The confirm button was chosen. The dialog closes. */
24
+ confirm: [];
25
+ /** Cancel or Escape. The dialog closes. */
26
+ cancel: [];
27
+ /**
28
+ * The dialog finished closing and focus is back where it was. Act on the answer here
29
+ * when that moves focus too (closing a drawer, removing the focused row): earlier, the
30
+ * dialog's focus trap would take focus back.
31
+ */
32
+ closed: [];
33
+ }
34
+ export interface TConfirmDialogSlots {
35
+ /** Overrides the description text. */
36
+ default?: () => unknown;
37
+ }
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TConfirmDialogProps & {
41
+ open?: boolean;
42
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ cancel: () => any;
44
+ "update:open": (value: boolean) => any;
45
+ confirm: () => any;
46
+ closed: () => any;
47
+ }, string, import("vue").PublicProps, Readonly<TConfirmDialogProps & {
48
+ open?: boolean;
49
+ }> & Readonly<{
50
+ onCancel?: (() => any) | undefined;
51
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
52
+ onConfirm?: (() => any) | undefined;
53
+ onClosed?: (() => any) | undefined;
54
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TConfirmDialogSlots>;
55
+ type __VLS_WithSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
60
+ //# sourceMappingURL=TConfirmDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TConfirmDialog/TConfirmDialog.vue"],"names":[],"mappings":"AAqQA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,OAAO,EAAE,EAAE,CAAC;IACZ,2CAA2C;IAC3C,MAAM,EAAE,EAAE,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;CACzB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;WAgET,OAAO;;;;;;;WAAP,OAAO;;;;;;wGAsNZ,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as TConfirmDialog } from './TConfirmDialog.vue';
2
+ export type { TConfirmDialogEmits, TConfirmDialogProps, TConfirmDialogSlots } from './TConfirmDialog.vue';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TConfirmDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,12 +1,21 @@
1
1
  import type { StoryObj } from '@storybook/vue3-vite';
2
+ import type { TDrawerExposed } from './TDrawer.vue';
2
3
  declare const meta: {
3
4
  component: {
4
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./TDrawer.vue").TDrawerProps & {
5
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Omit<import("./TDrawer.vue").TDrawerProps, "mode"> & {
5
6
  open?: boolean;
7
+ level?: 1 | 2;
8
+ mode?: "view" | "edit";
6
9
  }> & Readonly<{
7
10
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
8
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "onUpdate:level"?: ((value: 1 | 2) => any) | undefined;
12
+ "onUpdate:mode"?: ((value: "view" | "edit") => any) | undefined;
13
+ onRetry?: (() => any) | undefined;
14
+ }>, TDrawerExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
15
  "update:open": (value: boolean) => any;
16
+ "update:level": (value: 1 | 2) => any;
17
+ "update:mode": (value: "view" | "edit") => any;
18
+ retry: () => any;
10
19
  }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
11
20
  P: {};
12
21
  B: {};
@@ -14,20 +23,33 @@ declare const meta: {
14
23
  C: {};
15
24
  M: {};
16
25
  Defaults: {};
17
- }, Readonly<import("./TDrawer.vue").TDrawerProps & {
26
+ }, Readonly<Omit<import("./TDrawer.vue").TDrawerProps, "mode"> & {
18
27
  open?: boolean;
28
+ level?: 1 | 2;
29
+ mode?: "view" | "edit";
19
30
  }> & Readonly<{
20
31
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
21
- }>, {}, {}, {}, {}, {}>;
32
+ "onUpdate:level"?: ((value: 1 | 2) => any) | undefined;
33
+ "onUpdate:mode"?: ((value: "view" | "edit") => any) | undefined;
34
+ onRetry?: (() => any) | undefined;
35
+ }>, TDrawerExposed, {}, {}, {}, {}>;
22
36
  __isFragment?: never;
23
37
  __isTeleport?: never;
24
38
  __isSuspense?: never;
25
- } & import("vue").ComponentOptionsBase<Readonly<import("./TDrawer.vue").TDrawerProps & {
39
+ } & import("vue").ComponentOptionsBase<Readonly<Omit<import("./TDrawer.vue").TDrawerProps, "mode"> & {
26
40
  open?: boolean;
41
+ level?: 1 | 2;
42
+ mode?: "view" | "edit";
27
43
  }> & Readonly<{
28
44
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
29
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
+ "onUpdate:level"?: ((value: 1 | 2) => any) | undefined;
46
+ "onUpdate:mode"?: ((value: "view" | "edit") => any) | undefined;
47
+ onRetry?: (() => any) | undefined;
48
+ }>, TDrawerExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
49
  "update:open": (value: boolean) => any;
50
+ "update:level": (value: 1 | 2) => any;
51
+ "update:mode": (value: "view" | "edit") => any;
52
+ retry: () => any;
31
53
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
32
54
  $slots: import("./TDrawer.vue").TDrawerSlots;
33
55
  });
@@ -144,10 +166,27 @@ type Story = StoryObj<typeof meta>;
144
166
  * row swaps the content without closing it. It closes with Close or with Escape while
145
167
  * focus is inside, and focus goes back to the row that opened it. With the dropdown in
146
168
  * "Gestión" open, Escape closes the dropdown first.
169
+ *
170
+ * Editar turns it into a modal form (the page stops taking clicks, without darkening), with Volver back to the record; with
171
+ * unsaved changes, Volver, Close, Escape and Cancelar ask before discarding them. "Ver agendamiento asociado" opens level 2.
147
172
  */
148
173
  export declare const playground: Story;
149
174
  export declare const sizeM: Story;
150
175
  export declare const sizeL: Story;
176
+ /**
177
+ * Edit mode: a modal dialog; the page looks the same but stops taking clicks, focus kept inside. Opened
178
+ * straight in edit, the header keeps only Close (entered from the record, it adds Volver); Guardar cambios is enabled once there are changes.
179
+ */
180
+ export declare const editMode: Story;
181
+ /** Level 2: a related record replaces the content and Volver shows next to the title. */
182
+ export declare const levelTwo: Story;
183
+ /**
184
+ * Loading: once it lasts 300ms, a skeleton follows the header, sections and footer. The
185
+ * title stays the drawer's accessible name and Close stays usable.
186
+ */
187
+ export declare const loading: Story;
188
+ /** Load error: a message and Reintentar, which emits `retry`. */
189
+ export declare const error: Story;
151
190
  /**
152
191
  * Up to 2 actions show as icons. With more, Edit stays visible and the rest go to "Más
153
192
  * acciones" — all of them when there is no Edit. Destructive actions go last. Back only
@@ -1 +1 @@
1
- {"version":3,"file":"TDrawer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AA+G3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAuFxB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KA6C3B,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,IAAI,EAAE,KAuBlB,CAAC;AAEF,gHAAgH;AAChH,eAAO,MAAM,MAAM,EAAE,KAqBpB,CAAC"}
1
+ {"version":3,"file":"TDrawer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AA4JpD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,KAgMxB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KA6C3B,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,IAAI,EAAE,KAuBlB,CAAC;AAEF,gHAAgH;AAChH,eAAO,MAAM,MAAM,EAAE,KAqBpB,CAAC"}
@@ -1,14 +1,24 @@
1
1
  /**
2
2
  * Side drawer anchored to the right edge of the viewport, for a record's detail.
3
3
  *
4
- * It does not block the page: clicking outside keeps it open, so clicking another
5
- * table row only swaps its content. It closes with the header's Close button or with
6
- * Escape while focus is inside it. Focus moves to the header title on open and returns
7
- * to whatever was focused before (typically the row that opened it) on close — rows
8
- * need to be focusable for that to work.
4
+ * In `view` mode it does not block the page: clicking outside keeps it open, so clicking
5
+ * another table row only swaps its content. It closes with the header's Close button or
6
+ * with Escape while focus is inside it. Focus moves to the header title on open and
7
+ * returns to whatever was focused before (typically the row that opened it) on close —
8
+ * rows need to be focusable for that to work.
9
+ *
10
+ * In `edit` mode it becomes a modal dialog: the page looks the same as in `view` but
11
+ * stops taking clicks, and focus stays inside. With `dirty`, Close and Escape ask before discarding the changes; route the
12
+ * footer's Cancel through the exposed `confirmDiscard()` for the same question. Edit
13
+ * entered from the record on display shows Back, which returns to `view` (asking first
14
+ * when `dirty`) through `v-model:mode`; a drawer opened straight in `edit` keeps only Close.
15
+ *
16
+ * `level` 2 shows a related record in place of the current one, with Back next to the
17
+ * title. `state` covers loading (a skeleton, only after 300ms) and a load error.
9
18
  *
10
19
  * Compose it with `TDrawerHeader` in the `header` slot, `TDrawerSection`s in the
11
- * default slot (the only part that scrolls) and an optional `TDrawerFooter`.
20
+ * default slot (the only part that scrolls) and an optional `TDrawerFooter`. Every prop is
21
+ * controlled, so a router can drive `open`, `level` and `mode`.
12
22
  */
13
23
  export interface TDrawerProps {
14
24
  /**
@@ -22,25 +32,80 @@ export interface TDrawerProps {
22
32
  * focus goes back to the title and the body scrolls to the top.
23
33
  */
24
34
  contentKey?: string | number;
35
+ /**
36
+ * `edit` turns the drawer into a modal dialog: the page underneath stops taking clicks,
37
+ * without darkening. The header keeps Close, plus Back when edit was entered from the
38
+ * record on display, which returns to `view` through `v-model:mode`. Pass the
39
+ * "Editar [entidad]" title and the Cancel / Save footer yourself.
40
+ * @defaultValue 'view'
41
+ */
42
+ mode?: 'view' | 'edit';
43
+ /** There are unsaved changes: closing asks for confirmation first. */
44
+ dirty?: boolean;
45
+ /**
46
+ * What the body shows. `loading` shows a skeleton once it lasts 300ms; `error` shows
47
+ * `errorMessage` and a retry button that emits `retry`.
48
+ * @defaultValue 'ready'
49
+ */
50
+ state?: 'ready' | 'loading' | 'error';
51
+ /** @defaultValue '¿Descartar los cambios?' */
52
+ discardTitle?: string;
53
+ /** @defaultValue 'Si sales ahora, se perderán los cambios que no guardaste.' */
54
+ discardDescription?: string;
55
+ /** @defaultValue 'Descartar cambios' */
56
+ discardConfirmLabel?: string;
57
+ /** @defaultValue 'Seguir editando' */
58
+ discardCancelLabel?: string;
59
+ /** @defaultValue 'No pudimos cargar la información.' */
60
+ errorMessage?: string;
61
+ /** @defaultValue 'Reintentar' */
62
+ retryLabel?: string;
63
+ }
64
+ export interface TDrawerEmits {
65
+ /** The retry button of the `error` state was chosen. */
66
+ retry: [];
25
67
  }
26
68
  export interface TDrawerSlots {
27
69
  /** Required: fixed at the top, receives a `TDrawerHeader`, whose title names the drawer and holds Close. */
28
70
  header: () => unknown;
29
- /** Takes the remaining height and is the only part that scrolls. Receives `TDrawerSection`s. */
71
+ /** Takes the remaining height and is the only part that scrolls. Receives `TDrawerSection`s. Only rendered while `ready`. */
30
72
  default?: () => unknown;
31
- /** Fixed at the bottom. Receives a `TDrawerFooter`; not rendered when omitted. */
73
+ /** Fixed at the bottom. Receives a `TDrawerFooter`; not rendered when omitted, nor while not `ready`. */
32
74
  footer?: () => unknown;
75
+ /** Replaces the `error` state content. `retry` emits the `retry` event. */
76
+ error?: (props: {
77
+ retry: () => void;
78
+ }) => unknown;
79
+ }
80
+ /** Reached through a template ref. */
81
+ export interface TDrawerExposed {
82
+ /** Resolves `true` right away without `dirty`; otherwise asks and resolves the answer. */
83
+ confirmDiscard: () => Promise<boolean>;
84
+ /** Closes the drawer after `confirmDiscard()`. Resolves whether it closed. */
85
+ requestClose: () => Promise<boolean>;
33
86
  }
34
87
  declare const _default: typeof __VLS_export;
35
88
  export default _default;
36
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TDrawerProps & {
89
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Omit<TDrawerProps, "mode"> & {
37
90
  open?: boolean;
38
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
91
+ /** 2 shows a related record in place of the current one. There is no third level. */
92
+ level?: 1 | 2;
93
+ mode?: "view" | "edit";
94
+ }, TDrawerExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
95
  "update:open": (value: boolean) => any;
40
- }, string, import("vue").PublicProps, Readonly<TDrawerProps & {
96
+ "update:level": (value: 1 | 2) => any;
97
+ "update:mode": (value: "view" | "edit") => any;
98
+ retry: () => any;
99
+ }, string, import("vue").PublicProps, Readonly<Omit<TDrawerProps, "mode"> & {
41
100
  open?: boolean;
101
+ /** 2 shows a related record in place of the current one. There is no third level. */
102
+ level?: 1 | 2;
103
+ mode?: "view" | "edit";
42
104
  }> & Readonly<{
43
105
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
106
+ "onUpdate:level"?: ((value: 1 | 2) => any) | undefined;
107
+ "onUpdate:mode"?: ((value: "view" | "edit") => any) | undefined;
108
+ onRetry?: (() => any) | undefined;
44
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TDrawerSlots>;
45
110
  type __VLS_WithSlots<T, S> = T & {
46
111
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"TDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.vue"],"names":[],"mappings":"AA6NA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,4GAA4G;IAC5G,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,gGAAgG;IAChG,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;WAkFT,OAAO;;;;WAAP,OAAO;;;iGA0JZ,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.vue"],"names":[],"mappings":"AAiiBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACtC,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wCAAwC;IACxC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,KAAK,EAAE,EAAE,CAAC;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,4GAA4G;IAC5G,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,6HAA6H;IAC7H,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IACvB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC;CACnD;AAED,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,cAAc,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,8EAA8E;IAC9E,YAAY,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;WAkPT,OAAO;IAChB,qFAAqF;YAC3E,CAAC,GAAG,CAAC;WACN,MAAM,GAAG,MAAM;;;;;;;WAHf,OAAO;IAChB,qFAAqF;YAC3E,CAAC,GAAG,CAAC;WACN,MAAM,GAAG,MAAM;;;;;;iGA8RpB,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -20,6 +20,12 @@ export interface TDrawerAction {
20
20
  * Up to 2 actions show as icons. With more, Edit stays visible and the rest move to
21
21
  * the "More actions" menu (all of them when there is no Edit). Destructive actions
22
22
  * always go last.
23
+ *
24
+ * Inside a `TDrawer` it follows the drawer: Back shows on level 2 and goes back to
25
+ * level 1; edit mode hides the actions and keeps Close, plus Back when edit was entered
26
+ * from the record (it returns to it, without the `back` event); while loading or failed the actions and status
27
+ * hide, and the loading skeleton covers the title. Close asks first when the drawer is
28
+ * `dirty`.
23
29
  */
24
30
  export interface TDrawerHeaderProps {
25
31
  /** Entity type plus an identifier a person recognises, e.g. "Deuda 848848". */
@@ -30,7 +36,7 @@ export interface TDrawerHeaderProps {
30
36
  statusVariant?: TTagProps['variant'];
31
37
  /** @defaultValue [] */
32
38
  actions?: TDrawerAction[];
33
- /** Shows Back before the title, for a nested record. */
39
+ /** Shows Back before the title, for a nested record. Inside a `TDrawer`, level 2 shows it already. */
34
40
  back?: boolean;
35
41
  /** @defaultValue 'Close' */
36
42
  closeLabel?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TDrawerHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/TDrawer/TDrawerHeader/TDrawerHeader.vue"],"names":[],"mappings":"AAwTA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,oFAAoF;IACpF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,uBAAuB;IACvB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,wDAAwD;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACrB,IAAI,EAAE,EAAE,CAAC;IACT,KAAK,EAAE,EAAE,CAAC;CACX;AAED,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC;IACtB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;uGA4Zd,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TDrawerHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/TDrawer/TDrawerHeader/TDrawerHeader.vue"],"names":[],"mappings":"AA8XA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,oFAAoF;IACpF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,uBAAuB;IACvB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,sGAAsG;IACtG,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACrB,IAAI,EAAE,EAAE,CAAC;IACT,KAAK,EAAE,EAAE,CAAC;CACX;AAED,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC;IACtB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;uGAocd,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,7 +1,11 @@
1
1
  import type { HeroIcon } from '@/types/heroicons';
2
2
  /**
3
3
  * Row that opens a related record. Goes after the data, before the footer. It renders
4
- * a native `<button>` and emits no custom events — attach a plain `@click`.
4
+ * a native `<button>` and emits no custom events — attach a plain `@click`, which usually
5
+ * sets the drawer's `level` to 2. Back returns focus to this row.
6
+ *
7
+ * A drawer has 2 levels at most, so it does not belong in a level 2 record: there, it is
8
+ * `aria-disabled`, ignores clicks and warns in development.
5
9
  */
6
10
  export interface TDrawerLinkRowProps {
7
11
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TDrawerLinkRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/TDrawer/TDrawerLinkRow/TDrawerLinkRow.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY,kTAuEd,CAAC"}
1
+ {"version":3,"file":"TDrawerLinkRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/TDrawer/TDrawerLinkRow/TDrawerLinkRow.vue"],"names":[],"mappings":"AAoHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY,kTA8Fd,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ /** What `TDrawer` shares with its parts. Internal: not exported from the package. */
3
+ export interface TDrawerContext {
4
+ mode: Readonly<Ref<'view' | 'edit'>>;
5
+ level: Readonly<Ref<1 | 2>>;
6
+ /** Edit was entered from the record on display, so Back can return to it. */
7
+ editFromView: Readonly<Ref<boolean>>;
8
+ /** `state` is not `ready`: there is no record to act on. */
9
+ pending: Readonly<Ref<boolean>>;
10
+ /** The loading skeleton is on screen (only after the delay). */
11
+ skeleton: Readonly<Ref<boolean>>;
12
+ /** Closes the drawer, asking first when there are unsaved changes. Resolves whether it closed. */
13
+ requestClose: () => Promise<boolean>;
14
+ /** Leaves edit mode (asking first when dirty), or goes back to level 1. */
15
+ back: () => void;
16
+ /** Remembers the link row that opens level 2, so Back can return focus to it. */
17
+ rememberLinkRow: (element: HTMLElement, label: string) => void;
18
+ }
19
+ export declare const drawerContextKey: InjectionKey<TDrawerContext>;
20
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE7C,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IACrC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC5B,6EAA6E;IAC7E,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACrC,4DAA4D;IAC5D,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IAChC,gEAAgE;IAChE,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACjC,kGAAkG;IAClG,YAAY,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,2EAA2E;IAC3E,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,iFAAiF;IACjF,eAAe,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,cAAc,CAAqB,CAAC"}
@@ -5,6 +5,7 @@ export * from './TCardButton';
5
5
  export * from './TCheckbox';
6
6
  export * from './TCombobox';
7
7
  export * from './TCommandPalette';
8
+ export * from './TConfirmDialog';
8
9
  export * from './TDialog';
9
10
  export * from './TDrawer';
10
11
  export * from './TDropdown';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { TConfirmDialogProps } from '../components/TConfirmDialog';
2
+ export type ConfirmOptions = TConfirmDialogProps;
3
+ /** Answers `true` to confirm, `false` to cancel. */
4
+ export type Confirm = (options: ConfirmOptions) => Promise<boolean>;
5
+ /**
6
+ * Returns `confirm(options)`, which opens a `TConfirmDialog` and resolves `true` when
7
+ * confirmed, `false` on Cancel or Escape — once the dialog has closed and focus is back
8
+ * where it was. Only one question is open at a time: asking while one is pending returns
9
+ * that same pending answer.
10
+ *
11
+ * Call `useConfirm()` in `setup` so the dialog shares the app context; `confirm()` itself
12
+ * can run anywhere. Works from inside an open `TDrawer`, edit mode included.
13
+ *
14
+ * ```ts
15
+ * const confirm = useConfirm();
16
+ * if (await confirm({ title: '¿Eliminar el producto?', confirmLabel: 'Eliminar producto' })) {
17
+ * remove();
18
+ * }
19
+ * ```
20
+ */
21
+ export declare const useConfirm: () => Confirm;
22
+ //# sourceMappingURL=confirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm.d.ts","sourceRoot":"","sources":["../../src/composables/confirm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxE,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,oDAAoD;AACpD,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AA6DpE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,QAAO,OAgB7B,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './confirm';
1
2
  export * from './dialog';
2
3
  export * from './scrollbarThumb';
3
4
  export * from './theme';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}