@vasakgroup/vue-libvasak 0.7.2 → 0.13.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.
Files changed (32) hide show
  1. package/dist/types/bar/BarSearch.vue.d.ts +5 -0
  2. package/dist/types/dialog/Dialog.vue.d.ts +22 -0
  3. package/dist/types/dialog/DialogContent.vue.d.ts +13 -0
  4. package/dist/types/dialog/DialogDescription.vue.d.ts +13 -0
  5. package/dist/types/dialog/DialogFooter.vue.d.ts +13 -0
  6. package/dist/types/dialog/DialogHeader.vue.d.ts +13 -0
  7. package/dist/types/dialog/DialogTitle.vue.d.ts +13 -0
  8. package/dist/types/dialog/tipos.d.ts +28 -0
  9. package/dist/types/feedback/AlertMessage.vue.d.ts +25 -0
  10. package/dist/types/feedback/EmptyState.vue.d.ts +24 -0
  11. package/dist/types/feedback/ToastArea.vue.d.ts +36 -0
  12. package/dist/types/feedback/tonos.d.ts +21 -0
  13. package/dist/types/forms/ProgressBar.vue.d.ts +9 -0
  14. package/dist/types/forms/SwitchToggle.vue.d.ts +9 -13
  15. package/dist/types/forms/SwitchTrack.vue.d.ts +9 -0
  16. package/dist/types/forms/TextInput.vue.d.ts +50 -0
  17. package/dist/types/index.d.ts +27 -1
  18. package/dist/types/internos/iconoDelTema.d.ts +5 -9
  19. package/dist/types/search/SearchField.vue.d.ts +77 -0
  20. package/dist/types/search/SearchSelect.vue.d.ts +45 -0
  21. package/dist/types/search/buscar.d.ts +42 -0
  22. package/dist/types/search/ids.d.ts +1 -0
  23. package/dist/types/tooltip/Tooltip.vue.d.ts +22 -0
  24. package/dist/types/tooltip/TooltipContent.vue.d.ts +22 -0
  25. package/dist/types/tooltip/TooltipTrigger.vue.d.ts +13 -0
  26. package/dist/types/tooltip/tipos.d.ts +32 -0
  27. package/dist/types/window/AppBar.vue.d.ts +0 -3
  28. package/dist/types/window/WindowControls.vue.d.ts +8 -3
  29. package/dist/types/window/WindowFrame.vue.d.ts +6 -3
  30. package/dist/vue-libvasak.es.js +1709 -868
  31. package/dist/vue-libvasak.umd.js +1 -1
  32. package/package.json +5 -3
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ side?: 'top' | 'bottom' | 'left' | 'right';
3
+ align?: 'start' | 'center' | 'end';
4
+ sideOffset?: number;
5
+ };
6
+ declare var __VLS_13: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_13) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ side: "top" | "bottom" | "left" | "right";
12
+ align: "start" | "center" | "end";
13
+ sideOffset: number;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * El contrato entre las tres piezas de un tooltip.
3
+ *
4
+ * Como el menú desplegable, un tooltip es un componente repartido: el
5
+ * disparador está donde lo escribieron y el contenido se teletransporta al
6
+ * `body` para que no lo recorte ningún `overflow`. Nada de eso se coordina por
7
+ * propiedades, así que la raíz lo **provee** y las otras dos lo inyectan.
8
+ *
9
+ * Lo que se coordina es si está abierto y **cuál** es el elemento que lo
10
+ * disparó: el contenido lo necesita para medir dónde ponerse, y no puede ser
11
+ * el `div` envoltorio del disparador sino el hijo de verdad, que es el que
12
+ * tiene el tamaño del botón.
13
+ */
14
+ import { type InjectionKey, type Ref } from 'vue';
15
+ export interface ContextoDelTooltip {
16
+ abierto: Ref<boolean>;
17
+ /** El elemento que lo disparó, que es contra el que se mide la posición. */
18
+ disparador: Ref<HTMLElement | null>;
19
+ ponerElDisparador: (elemento: HTMLElement | null) => void;
20
+ /** Abre tras el retardo. Sin retardo el tooltip parpadea al pasar de largo. */
21
+ abrir: () => void;
22
+ cerrar: () => void;
23
+ }
24
+ export declare const CLAVE_DEL_TOOLTIP: InjectionKey<ContextoDelTooltip>;
25
+ /**
26
+ * El tooltip que envuelve a este componente.
27
+ *
28
+ * Fuera de un `Tooltip` devuelve un contexto suelto en vez de reventar: un
29
+ * disparador montado solo —en una prueba, en una vista previa— tiene que
30
+ * dibujarse igual aunque no haya nada que abrir.
31
+ */
32
+ export declare function usarElTooltip(): ContextoDelTooltip;
@@ -38,9 +38,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
38
38
  }>, {
39
39
  title: string;
40
40
  controls: ControlDeVentana[];
41
- minimizeLabel: string;
42
- maximizeLabel: string;
43
- closeLabel: string;
44
41
  position: PosicionDeLaBarra | null;
45
42
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
43
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,6 +2,14 @@ import { type ControlDeVentana } from './tipos';
2
2
  type __VLS_Props = {
3
3
  /** Cuáles de los tres se dibujan, y en este orden. */
4
4
  controls?: ControlDeVentana[];
5
+ /**
6
+ * Lo que oye un lector de pantalla en cada botón, y el tooltip.
7
+ *
8
+ * Sin pasar nada salen del catálogo de la aplicación —`ventana.minimizar`,
9
+ * `ventana.maximizar` y `ventana.cerrar`—. Las claves las define cada
10
+ * aplicación en sus `locales`; acá sólo se buscan. Pasarlas gana, que es
11
+ * lo que deja llamarlas de otra manera.
12
+ */
5
13
  minimizeLabel?: string;
6
14
  maximizeLabel?: string;
7
15
  closeLabel?: string;
@@ -16,9 +24,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
16
24
  onMaximize?: (() => any) | undefined;
17
25
  }>, {
18
26
  controls: ControlDeVentana[];
19
- minimizeLabel: string;
20
- maximizeLabel: string;
21
- closeLabel: string;
22
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
28
  declare const _default: typeof __VLS_export;
24
29
  export default _default;
@@ -3,6 +3,12 @@ type __VLS_Props = {
3
3
  /** Fija la barra a un lado, ignorando la preferencia del escritorio. */
4
4
  position?: PosicionDeLaBarra | null;
5
5
  title?: string;
6
+ /**
7
+ * Las tres etiquetas de los botones de ventana.
8
+ *
9
+ * Sin pasar nada salen del catálogo de la aplicación. Ver `WindowControls`,
10
+ * que es donde se resuelven.
11
+ */
6
12
  minimizeLabel?: string;
7
13
  maximizeLabel?: string;
8
14
  closeLabel?: string;
@@ -39,9 +45,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
39
45
  }>, {
40
46
  title: string;
41
47
  controls: ControlDeVentana[];
42
- minimizeLabel: string;
43
- maximizeLabel: string;
44
- closeLabel: string;
45
48
  position: PosicionDeLaBarra | null;
46
49
  hideBar: boolean;
47
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;