@vasakgroup/vue-libvasak 1.0.0 → 1.2.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.
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
18
18
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
19
19
  onClick?: (() => any) | undefined;
20
20
  }>, {
21
- type: "button" | "submit" | "reset";
22
21
  size: "sm" | "md" | "lg";
22
+ type: "button" | "submit" | "reset";
23
23
  disabled: boolean;
24
24
  variant: "primary" | "secondary" | "danger";
25
25
  loading: boolean;
@@ -5,8 +5,8 @@ type __VLS_Props = {
5
5
  alt?: string;
6
6
  };
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- type: "icon" | "symbol";
9
8
  size: number;
9
+ type: "icon" | "symbol";
10
10
  alt: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
@@ -76,4 +76,4 @@ export { posicionDe, usarLaPosicionDeLaBarra } from "./window/preferencia";
76
76
  * instalador, donde el aviso dejó de dibujar su icono al correr la suite entera
77
77
  * y lo dibujaba bien al correr su archivo solo.
78
78
  */
79
- export { olvidarLosIconosDelTema } from "./internos/iconoDelTema";
79
+ export { olvidarLosIconosDelTema, usarLaVersionDelTema } from "./internos/iconoDelTema";
@@ -7,4 +7,26 @@ import { type Ref } from 'vue';
7
7
  * dejó otra y cuenta oyentes que ya no existen.
8
8
  */
9
9
  export declare function olvidarLosIconosDelTema(): void;
10
+ /**
11
+ * Cuántas veces cambió el tema de iconos, para quien resuelve por su cuenta.
12
+ *
13
+ * `ThemeIcon` resuelve **un** nombre del tema. Hay componentes que no pueden
14
+ * usarlo porque su forma de conseguir el icono es otra: la tienda prueba una
15
+ * lista de nombres candidatos en orden —los temas no se ponen de acuerdo entre
16
+ * el `Icon=` del `.desktop`, el identificador de AppStream y el nombre del
17
+ * paquete— y si ninguno está, cae a un archivo del catálogo.
18
+ *
19
+ * Ese componente igual tiene que volver a resolver cuando la persona cambia de
20
+ * tema, y sin esto la única salida es registrar su propio `listen`: un oyente
21
+ * más por instancia, al lado del que esta librería ya tiene para todas. Eso es
22
+ * exactamente el composable que este barrido viene borrando de cada aplicación.
23
+ *
24
+ * Se devuelve de sólo lectura: quien la usa la mira en un `watch`, no la mueve.
25
+ *
26
+ * ```ts
27
+ * const version = usarLaVersionDelTema();
28
+ * watch([loQueSea, version], resolver, { immediate: true });
29
+ * ```
30
+ */
31
+ export declare function usarLaVersionDelTema(): Readonly<Ref<number>>;
10
32
  export declare function useIconoDelTema(nombre: Ref<string>, tipo: Ref<'icon' | 'symbol'>): Ref<string, string>;
@@ -63,15 +63,15 @@ declare function enfocar(): boolean;
63
63
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
64
64
  enfocar: typeof enfocar;
65
65
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
+ clear: () => any;
66
67
  search: (valor: string) => any;
67
68
  keydown: (evento: KeyboardEvent) => any;
68
69
  "update:modelValue": (valor: string) => any;
69
- clear: () => any;
70
70
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
71
+ onClear?: (() => any) | undefined;
71
72
  onSearch?: ((valor: string) => any) | undefined;
72
73
  onKeydown?: ((evento: KeyboardEvent) => any) | undefined;
73
74
  "onUpdate:modelValue"?: ((valor: string) => any) | undefined;
74
- onClear?: (() => any) | undefined;
75
75
  }>, {
76
76
  label: string;
77
77
  disabled: boolean;