@vasakgroup/vue-libvasak 0.12.0 → 0.14.1

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.
@@ -1,13 +1,19 @@
1
1
  import { type TonoDelAviso } from './tonos';
2
2
  type __VLS_Props = {
3
3
  tone?: TonoDelAviso;
4
+ /** Una línea que dice de qué se trata, para no tener que leerlo todo. */
5
+ title?: string;
6
+ /** Nombre de icono del tema. Sin esto no se dibuja ninguno. */
7
+ icon?: string;
8
+ iconType?: 'icon' | 'symbol';
4
9
  };
5
- declare var __VLS_1: {};
10
+ declare var __VLS_6: {};
6
11
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_1) => any;
12
+ default?: (props: typeof __VLS_6) => any;
8
13
  };
9
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
15
  tone: TonoDelAviso;
16
+ iconType: "icon" | "symbol";
11
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
19
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ /** El nombre de la opción. Se dibuja, y es el nombre accesible de la fila. */
4
+ label: string;
5
+ /** Una línea debajo, para lo que el nombre no alcanza a decir. */
6
+ description?: string;
7
+ /** Del tema, por nombre. Las opciones sin identidad propia no llevan. */
8
+ icon?: string;
9
+ iconType?: 'icon' | 'symbol';
10
+ disabled?: boolean;
11
+ };
12
+ declare var __VLS_11: {};
13
+ type __VLS_Slots = {} & {
14
+ pie?: (props: typeof __VLS_11) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (valor: boolean) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((valor: boolean) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ iconType: "icon" | "symbol";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -1,21 +1,17 @@
1
- interface Props {
2
- isOn: boolean;
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ /** Qué controla este interruptor. Es su nombre accesible. */
4
+ label: string;
3
5
  disabled?: boolean;
4
6
  size?: 'small' | 'medium';
5
- activeClass?: string;
6
- inactiveClass?: string;
7
- customClass?: string;
8
- }
9
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- toggle: (value: boolean) => any;
11
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
12
- onToggle?: ((value: boolean) => any) | undefined;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (valor: boolean) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((valor: boolean) => any) | undefined;
13
12
  }>, {
14
13
  size: "small" | "medium";
15
14
  disabled: boolean;
16
- customClass: string;
17
- activeClass: string;
18
- inactiveClass: string;
19
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
16
  declare const _default: typeof __VLS_export;
21
17
  export default _default;
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ on: boolean;
3
+ size?: 'small' | 'medium';
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ size: "small" | "medium";
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
@@ -5,6 +5,18 @@ type __VLS_Props = {
5
5
  id?: string;
6
6
  /** El nombre del campo cuando no hay etiqueta visible que se lo dé. */
7
7
  ariaLabel?: string;
8
+ /**
9
+ * El `id` del texto que explica el error o la ayuda de abajo.
10
+ *
11
+ * Sin esto, el mensaje de error se ve pero no se anuncia: quien no mira la
12
+ * pantalla oye que el campo es inválido y nunca por qué.
13
+ */
14
+ describedBy?: string;
15
+ /**
16
+ * Qué autocompletar. Va declarado y no por caída de atributos porque con
17
+ * `strictTemplates` lo que no está declarado no se puede pasar.
18
+ */
19
+ autocomplete?: string;
8
20
  placeholder?: string;
9
21
  disabled?: boolean;
10
22
  readonly?: boolean;
@@ -34,7 +34,9 @@ import DropdownMenuTrigger from "./dropdown/DropdownMenuTrigger.vue";
34
34
  import FormGroup from "./forms/FormGroup.vue";
35
35
  import ListCard from "./cards/ListCard.vue";
36
36
  import SliderControl from "./forms/SliderControl.vue";
37
+ import SwitchRow from "./forms/SwitchRow.vue";
37
38
  import SwitchToggle from "./forms/SwitchToggle.vue";
39
+ import SwitchTrack from "./forms/SwitchTrack.vue";
38
40
  import ToggleControl from "./controls/ToggleControl.vue";
39
41
  import Tooltip from "./tooltip/Tooltip.vue";
40
42
  import TooltipContent from "./tooltip/TooltipContent.vue";
@@ -45,7 +47,7 @@ declare const _default: {
45
47
  install(app: App): void;
46
48
  };
47
49
  export default _default;
48
- export { SideBar, SideButton, SideGroup, SelectField, ThemeIcon, WindowFrame, AppBar, WindowControls, TabBar, TabItem, BarSearch, ActionButton, AlertMessage, EmptyState, ProgressBar, SearchField, SearchSelect, TextInput, ToastArea, ConfigSection, DeviceCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, FormGroup, ListCard, SliderControl, SwitchToggle, ToggleControl, Tooltip, TooltipContent, TooltipTrigger, TrayIconButton, };
50
+ export { SideBar, SideButton, SideGroup, SelectField, ThemeIcon, WindowFrame, AppBar, WindowControls, TabBar, TabItem, BarSearch, ActionButton, AlertMessage, EmptyState, ProgressBar, SearchField, SearchSelect, TextInput, ToastArea, ConfigSection, DeviceCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, FormGroup, ListCard, SliderControl, SwitchRow, SwitchToggle, SwitchTrack, ToggleControl, Tooltip, TooltipContent, TooltipTrigger, TrayIconButton, };
49
51
  export type { AvisoTransitorio } from "./feedback/ToastArea.vue";
50
52
  export type { TonoDelAviso } from "./feedback/tonos";
51
53
  export { CLASES_POR_TONO, rolDelTono } from "./feedback/tonos";
@@ -62,3 +64,15 @@ export type { AccionDePestana, ElementoDePestana } from "./tabs/tipos";
62
64
  export type { ContextoDeLaBarra, ControlDeVentana, OrientacionDeLaBarra, PosicionDeLaBarra, } from "./window/tipos";
63
65
  export { CLAVE_DE_LA_BARRA, esPosicion, LOS_TRES_CONTROLES, orientacionDe, POSICIONES, usarLaBarra, } from "./window/tipos";
64
66
  export { posicionDe, usarLaPosicionDeLaBarra } from "./window/preferencia";
67
+ /**
68
+ * Vaciar la memoria de iconos del tema.
69
+ *
70
+ * Es para las pruebas de quien use la librería, y por eso sale del paquete y no
71
+ * se queda adentro. Lo resuelto se memoriza por nombre en el módulo, y un
72
+ * módulo se comparte entre archivos de prueba: el primero que pida un icono con
73
+ * el tema sin preparar deja **guardado que no hay ninguno**, y cualquier prueba
74
+ * posterior que lo prepare ya no lo ve. Pasó al adoptar la librería en el
75
+ * instalador, donde el aviso dejó de dibujar su icono al correr la suite entera
76
+ * y lo dibujaba bien al correr su archivo solo.
77
+ */
78
+ export { olvidarLosIconosDelTema } from "./internos/iconoDelTema";