una-nuxt-module 2.1.34 → 2.1.36
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/usePagination.js +8 -5
- package/dist/runtime/constants/index.d.ts +0 -2
- package/dist/runtime/constants/index.js +0 -2
- package/dist/runtime/constants/pagination.d.ts +2 -2
- package/dist/runtime/constants/pagination.js +3 -3
- package/dist/runtime/enums/index.d.ts +0 -1
- package/dist/runtime/enums/index.js +0 -1
- package/dist/runtime/i18n/i18n.config.js +9 -1
- package/dist/runtime/i18n/locales/es.json +11 -51
- package/dist/runtime/types/index.d.ts +2 -40
- package/package.json +17 -18
- package/dist/runtime/constants/form.d.ts +0 -44
- package/dist/runtime/constants/form.js +0 -58
- package/dist/runtime/constants/tables.d.ts +0 -2
- package/dist/runtime/constants/tables.js +0 -7
- package/dist/runtime/enums/EAsyncDataRequestStatus.d.ts +0 -9
- package/dist/runtime/enums/EAsyncDataRequestStatus.js +0 -7
- package/dist/runtime/enums/EFormField.d.ts +0 -14
- package/dist/runtime/enums/EFormField.js +0 -12
- package/dist/runtime/i18n/config.d.ts +0 -61
- package/dist/runtime/i18n/config.js +0 -10
- package/dist/runtime/i18n/service.d.ts +0 -72
- package/dist/runtime/i18n/service.js +0 -3
- package/dist/runtime/utils/capitalizeFirstLetter.d.ts +0 -2
- package/dist/runtime/utils/capitalizeFirstLetter.js +0 -4
- package/dist/runtime/utils/getDateTimeInISO8601.d.ts +0 -10
- package/dist/runtime/utils/getDateTimeInISO8601.js +0 -3
- package/dist/runtime/utils/getFromLocalStorage.d.ts +0 -8
- package/dist/runtime/utils/getFromLocalStorage.js +0 -6
- package/dist/runtime/utils/isClient.d.ts +0 -8
- package/dist/runtime/utils/isClient.js +0 -3
- package/dist/runtime/utils/isNumberInRange.d.ts +0 -10
- package/dist/runtime/utils/isNumberInRange.js +0 -5
- package/dist/runtime/utils/onlyNumbers.d.ts +0 -8
- package/dist/runtime/utils/onlyNumbers.js +0 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
PAGINATION_FIRST_PAGE,
|
|
4
|
+
PAGINATION_DEFAULT_ITEMS_PER_PAGE
|
|
5
|
+
} from "../constants/index.js";
|
|
3
6
|
export const usePagination = (params) => {
|
|
4
7
|
const { page, itemsPerPage, totalPages, totalElements } = params;
|
|
5
8
|
const pagination = computed(() => {
|
|
@@ -9,10 +12,10 @@ export const usePagination = (params) => {
|
|
|
9
12
|
};
|
|
10
13
|
});
|
|
11
14
|
function resetPagination() {
|
|
12
|
-
page.value =
|
|
13
|
-
itemsPerPage.value =
|
|
14
|
-
totalPages.value =
|
|
15
|
-
totalElements.value =
|
|
15
|
+
page.value = PAGINATION_FIRST_PAGE;
|
|
16
|
+
itemsPerPage.value = PAGINATION_DEFAULT_ITEMS_PER_PAGE;
|
|
17
|
+
totalPages.value = 0;
|
|
18
|
+
totalElements.value = 0;
|
|
16
19
|
}
|
|
17
20
|
function updatePagination(params2) {
|
|
18
21
|
totalElements.value = params2.totalElements;
|
|
@@ -2,11 +2,11 @@ import type { TItemsPerPage } from "../types/index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Número de la primer página en la paginación.
|
|
4
4
|
*/
|
|
5
|
-
export declare const PAGINATION_FIRST_PAGE =
|
|
5
|
+
export declare const PAGINATION_FIRST_PAGE = 0;
|
|
6
6
|
/**
|
|
7
7
|
* Paginación por defecto.
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const PAGINATION_DEFAULT_ITEMS_PER_PAGE: TItemsPerPage;
|
|
10
10
|
/**
|
|
11
11
|
* Opciones de paginación.
|
|
12
12
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const PAGINATION_FIRST_PAGE =
|
|
2
|
-
export const
|
|
3
|
-
export const PAGINATION_OPTIONS = [
|
|
1
|
+
export const PAGINATION_FIRST_PAGE = 0;
|
|
2
|
+
export const PAGINATION_DEFAULT_ITEMS_PER_PAGE = 10;
|
|
3
|
+
export const PAGINATION_OPTIONS = [10, 20, 50];
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { defineI18nConfig } from "#imports";
|
|
2
|
-
import
|
|
2
|
+
import es from "./locales/es.json";
|
|
3
|
+
export const i18nConfig = {
|
|
4
|
+
// Se configura el idioma por defecto
|
|
5
|
+
locale: "es",
|
|
6
|
+
// Se cargan los mensajes de cada idioma
|
|
7
|
+
messages: {
|
|
8
|
+
es
|
|
9
|
+
}
|
|
10
|
+
};
|
|
3
11
|
export default defineI18nConfig(() => i18nConfig);
|
|
@@ -1,55 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"Rules": {
|
|
14
|
-
"RequiredField": "Campo requerido",
|
|
15
|
-
"IsEmail": "El correo debe ser válido",
|
|
16
|
-
"numberInRange": "El numero {number} no esta en el rango valido [{min}, {max}]"
|
|
17
|
-
},
|
|
18
|
-
"Components": {
|
|
19
|
-
"SideBar": {
|
|
20
|
-
"SideBarFooter": {
|
|
21
|
-
"DarkTheme": "Modo oscuro",
|
|
22
|
-
"LightTheme": "Modo claro"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"Footer": {
|
|
26
|
-
"Info": [
|
|
27
|
-
"Front Framework - Beta",
|
|
28
|
-
"© 2024 Universidad Nacional - Dirección de Tecnologías de Información y Comunicación"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"Dialogs": {
|
|
32
|
-
"Delete": {
|
|
33
|
-
"Title": "¿Seguro que desea eliminar el registro?"
|
|
34
|
-
},
|
|
35
|
-
"Export": {
|
|
36
|
-
"Title": "Exportar datos de la tabla"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"Table": {
|
|
40
|
-
"NoDataMessage": {
|
|
41
|
-
"WhenNoMatches": "No hay datos que coincidan con el criterio de búsqueda...",
|
|
42
|
-
"WhenNoData": "No hay datos..."
|
|
43
|
-
},
|
|
44
|
-
"SearchBar": {
|
|
45
|
-
"Label": "Buscar",
|
|
46
|
-
"Title": "Buscar en la tabla",
|
|
47
|
-
"Placeholder": "Ingrese su búsqueda..."
|
|
48
|
-
},
|
|
49
|
-
"Pagination": {
|
|
50
|
-
"ItemsPerPageLabel": "Elementos por página:",
|
|
51
|
-
"PaginationInfo": "Página {page} de {totalPages} ({totalElements})"
|
|
52
|
-
}
|
|
2
|
+
"common": {
|
|
3
|
+
"actions": {
|
|
4
|
+
"create": "Nuevo",
|
|
5
|
+
"return": "Volver",
|
|
6
|
+
"edit": "Editar",
|
|
7
|
+
"cancel": "Cancelar",
|
|
8
|
+
"remove": "Eliminar",
|
|
9
|
+
"export": "Exportar",
|
|
10
|
+
"confirm": "Confirmar",
|
|
11
|
+
"filterMore": "Más filtros",
|
|
12
|
+
"logout": "Cerrar sesión"
|
|
53
13
|
}
|
|
54
14
|
}
|
|
55
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EAuthorization,
|
|
1
|
+
import type { EAuthorization, EFormMode } from "../enums/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Los tipos definidos en este archivo son exportados globalmente, lo que hace que no sea necesario importarlos para usarlos.
|
|
4
4
|
*/
|
|
@@ -84,8 +84,6 @@ export interface IUnaNuxtModuleOptions {
|
|
|
84
84
|
}
|
|
85
85
|
/** Tipo de autorización. */
|
|
86
86
|
export type TAuthorization = keyof typeof EAuthorization;
|
|
87
|
-
/** Tipo de campo de formulario. */
|
|
88
|
-
export type TFormField = keyof typeof EFormField;
|
|
89
87
|
/** Tipo de modo de edición de formulario. */
|
|
90
88
|
export type TFormMode = keyof typeof EFormMode;
|
|
91
89
|
/**
|
|
@@ -209,42 +207,6 @@ export interface ILastModifiedBy {
|
|
|
209
207
|
}
|
|
210
208
|
export interface IBaseEntity extends IIdentifiedEntity, IVersionedEntity, IAuditableEntity {
|
|
211
209
|
}
|
|
212
|
-
/**
|
|
213
|
-
* Interfaz para el estado de la tabla de los módulos.
|
|
214
|
-
*
|
|
215
|
-
* @interface ITableState
|
|
216
|
-
*
|
|
217
|
-
* @property {number} - *page* - Página actual de la tabla
|
|
218
|
-
* @property {IItemsPerPage} - *itemsPerPage* - Elementos por página
|
|
219
|
-
* @property {string, null} - *textToSearch* - Texto a buscar en la tabla
|
|
220
|
-
* @property {number} - *totalPages* - Total de páginas
|
|
221
|
-
* @property {number} - *totalElements* - Total de elementos
|
|
222
|
-
*
|
|
223
|
-
*/
|
|
224
|
-
export interface ITableState {
|
|
225
|
-
/** Página actual de la tabla */
|
|
226
|
-
page: number;
|
|
227
|
-
/** Elementos por página */
|
|
228
|
-
itemsPerPage: TItemsPerPage;
|
|
229
|
-
/** Total de páginas */
|
|
230
|
-
totalPages: number;
|
|
231
|
-
/** Total de elementos */
|
|
232
|
-
totalElements: number;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Interfaz para el estado del formulario de los módulos.
|
|
236
|
-
*
|
|
237
|
-
* @interface IFormState
|
|
238
|
-
*
|
|
239
|
-
* @property {TFormMode} - *formMode* - Modo de edición del formulario
|
|
240
|
-
* @property {boolean} - *openForm* - Almacena si el formulario esta abierto
|
|
241
|
-
*/
|
|
242
|
-
export interface IFormState {
|
|
243
|
-
/** Modo de edición del formulario */
|
|
244
|
-
formMode: TFormMode;
|
|
245
|
-
/** Almacena si el formulario esta abierto */
|
|
246
|
-
openForm: boolean;
|
|
247
|
-
}
|
|
248
210
|
/**
|
|
249
211
|
* Interfaz para la información del usuario autenticado.
|
|
250
212
|
*
|
|
@@ -329,7 +291,7 @@ export interface IHasAuthorizationInResourceParams {
|
|
|
329
291
|
*
|
|
330
292
|
* @type TItemsPerPage
|
|
331
293
|
*/
|
|
332
|
-
export type TItemsPerPage =
|
|
294
|
+
export type TItemsPerPage = 10 | 20 | 50;
|
|
333
295
|
/**
|
|
334
296
|
* Interfaz para las opciones del menú de navegación.
|
|
335
297
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "una-nuxt-module",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.36",
|
|
4
4
|
"description": "Módulo Nuxt para desarrollo CGI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,21 +42,6 @@
|
|
|
42
42
|
".nuxt/templates.css",
|
|
43
43
|
"dist"
|
|
44
44
|
],
|
|
45
|
-
"scripts": {
|
|
46
|
-
"prepack": "nuxt-module-build build",
|
|
47
|
-
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
48
|
-
"dev:https": "npm run dev:prepare && cd playground && npm run dev:https",
|
|
49
|
-
"dev:build": "nuxi build playground",
|
|
50
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
51
|
-
"release:major": "npm run test && npm run prepack && changelogen --release --major && npm publish && git push --follow-tags",
|
|
52
|
-
"release:minor": "npm run test && npm run prepack && changelogen --release --minor && npm publish && git push --follow-tags",
|
|
53
|
-
"release:patch": "npm run test && npm run prepack && changelogen --release --patch && npm publish && git push --follow-tags",
|
|
54
|
-
"lint": "eslint .",
|
|
55
|
-
"lint:fix": "eslint . --fix",
|
|
56
|
-
"test": "vitest run",
|
|
57
|
-
"test:watch": "vitest watch",
|
|
58
|
-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
59
|
-
},
|
|
60
45
|
"dependencies": {
|
|
61
46
|
"@asgardeo/auth-spa": "3.3.2",
|
|
62
47
|
"@nuxt/fonts": "0.11.4",
|
|
@@ -111,5 +96,19 @@
|
|
|
111
96
|
"bugs": {
|
|
112
97
|
"url": "https://github.com/una-cgi/una-nuxt-module/issues"
|
|
113
98
|
},
|
|
114
|
-
"homepage": "https://github.com/una-cgi/una-nuxt-module#readme"
|
|
115
|
-
|
|
99
|
+
"homepage": "https://github.com/una-cgi/una-nuxt-module#readme",
|
|
100
|
+
"scripts": {
|
|
101
|
+
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
102
|
+
"dev:https": "npm run dev:prepare && cd playground && npm run dev:https",
|
|
103
|
+
"dev:build": "nuxi build playground",
|
|
104
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
105
|
+
"release:major": "npm run test && npm run prepack && changelogen --release --major && npm publish && git push --follow-tags",
|
|
106
|
+
"release:minor": "npm run test && npm run prepack && changelogen --release --minor && npm publish && git push --follow-tags",
|
|
107
|
+
"release:patch": "npm run test && npm run prepack && changelogen --release --patch && npm publish && git push --follow-tags",
|
|
108
|
+
"lint": "eslint .",
|
|
109
|
+
"lint:fix": "eslint . --fix",
|
|
110
|
+
"test": "vitest run",
|
|
111
|
+
"test:watch": "vitest watch",
|
|
112
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { IFormState } from "../types/index.js";
|
|
2
|
-
export declare const INITIAL_FORM_STATE: IFormState;
|
|
3
|
-
/**
|
|
4
|
-
* Contiene métodos para validación de formularios
|
|
5
|
-
*/
|
|
6
|
-
export declare const FORM_RULES: {
|
|
7
|
-
/**
|
|
8
|
-
* Valida que un campo no este vacío.
|
|
9
|
-
*
|
|
10
|
-
* @param [any] value - Campo a validar
|
|
11
|
-
*
|
|
12
|
-
* @return *boolean* - Retorna *true* si el campo no esta vacío
|
|
13
|
-
* @error *string* - Mensaje de error si el campo esta vacío
|
|
14
|
-
*/
|
|
15
|
-
requiredField: (value: any) => string | true;
|
|
16
|
-
/**
|
|
17
|
-
* Valida que un campo de texto no este vacío.
|
|
18
|
-
*
|
|
19
|
-
* @param [string] value - Campo a validar
|
|
20
|
-
*
|
|
21
|
-
* @return *boolean* - Retorna *true* si el campo no esta vacío
|
|
22
|
-
* @error *string* - Mensaje de error si el campo esta vacío
|
|
23
|
-
*/
|
|
24
|
-
requiredString: (value: string) => string | true;
|
|
25
|
-
/**
|
|
26
|
-
* Valida que un campo de texto sea un email valido.
|
|
27
|
-
*
|
|
28
|
-
* @param [string] value - Campo a validar
|
|
29
|
-
*
|
|
30
|
-
* @return *boolean* - Retorna *true* si el campo es un email valido
|
|
31
|
-
* @error *string* - Mensaje de error si el campo no es un email valido
|
|
32
|
-
*/
|
|
33
|
-
isEmail: (value: string) => string | true;
|
|
34
|
-
/**
|
|
35
|
-
* Valida que un campo numérico este dentro de un rango.
|
|
36
|
-
*
|
|
37
|
-
* @param [number] min - Rango inferior - *null*
|
|
38
|
-
* @param [number] max - Rango superior - *null*
|
|
39
|
-
*
|
|
40
|
-
* @return *boolean* - Retorna *true* si el campo esta dentro del rango
|
|
41
|
-
* @error *string* - Mensaje de error si el campo no esta dentro del rango
|
|
42
|
-
*/
|
|
43
|
-
isNumberInRange: (min?: number | null, max?: number | null) => (value: number) => string | true;
|
|
44
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { EFormMode } from "../enums/index.js";
|
|
2
|
-
import { i18nService } from "../i18n/service.js";
|
|
3
|
-
import isNumberInRange from "../utils/isNumberInRange.js";
|
|
4
|
-
export const INITIAL_FORM_STATE = {
|
|
5
|
-
formMode: EFormMode.CREATE,
|
|
6
|
-
openForm: false
|
|
7
|
-
};
|
|
8
|
-
export const FORM_RULES = {
|
|
9
|
-
/**
|
|
10
|
-
* Valida que un campo no este vacío.
|
|
11
|
-
*
|
|
12
|
-
* @param [any] value - Campo a validar
|
|
13
|
-
*
|
|
14
|
-
* @return *boolean* - Retorna *true* si el campo no esta vacío
|
|
15
|
-
* @error *string* - Mensaje de error si el campo esta vacío
|
|
16
|
-
*/
|
|
17
|
-
requiredField: (value) => {
|
|
18
|
-
return !!value || i18nService.global.t("Rules.RequiredField");
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* Valida que un campo de texto no este vacío.
|
|
22
|
-
*
|
|
23
|
-
* @param [string] value - Campo a validar
|
|
24
|
-
*
|
|
25
|
-
* @return *boolean* - Retorna *true* si el campo no esta vacío
|
|
26
|
-
* @error *string* - Mensaje de error si el campo esta vacío
|
|
27
|
-
*/
|
|
28
|
-
requiredString: (value) => {
|
|
29
|
-
return !!value.trim() || i18nService.global.t("Rules.RequiredField");
|
|
30
|
-
},
|
|
31
|
-
/**
|
|
32
|
-
* Valida que un campo de texto sea un email valido.
|
|
33
|
-
*
|
|
34
|
-
* @param [string] value - Campo a validar
|
|
35
|
-
*
|
|
36
|
-
* @return *boolean* - Retorna *true* si el campo es un email valido
|
|
37
|
-
* @error *string* - Mensaje de error si el campo no es un email valido
|
|
38
|
-
*/
|
|
39
|
-
isEmail: (value) => {
|
|
40
|
-
return /.+@.+\..+/.test(value) || i18nService.global.t("Rules.IsEmail");
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* Valida que un campo numérico este dentro de un rango.
|
|
44
|
-
*
|
|
45
|
-
* @param [number] min - Rango inferior - *null*
|
|
46
|
-
* @param [number] max - Rango superior - *null*
|
|
47
|
-
*
|
|
48
|
-
* @return *boolean* - Retorna *true* si el campo esta dentro del rango
|
|
49
|
-
* @error *string* - Mensaje de error si el campo no esta dentro del rango
|
|
50
|
-
*/
|
|
51
|
-
isNumberInRange: (min = null, max = null) => (value) => {
|
|
52
|
-
return isNumberInRange(value, min, max) || i18nService.global.t("Rules.numberInRange", {
|
|
53
|
-
number: value,
|
|
54
|
-
min,
|
|
55
|
-
max
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var EAsyncDataRequestStatus = /* @__PURE__ */ ((EAsyncDataRequestStatus2) => {
|
|
2
|
-
EAsyncDataRequestStatus2["IDLE"] = "idle";
|
|
3
|
-
EAsyncDataRequestStatus2["PENDING"] = "pending";
|
|
4
|
-
EAsyncDataRequestStatus2["SUCCESS"] = "success";
|
|
5
|
-
EAsyncDataRequestStatus2["ERROR"] = "error";
|
|
6
|
-
return EAsyncDataRequestStatus2;
|
|
7
|
-
})(EAsyncDataRequestStatus || {});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enum que contiene los tipos de campos de formulario.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum EFormField {
|
|
5
|
-
CHECKBOX = "CHECKBOX",
|
|
6
|
-
DATE = "DATE",
|
|
7
|
-
NUMBER = "NUMBER",
|
|
8
|
-
RADIOBUTTON = "RADIOBUTTON",
|
|
9
|
-
SELECT = "SELECT",
|
|
10
|
-
SLOT = "SLOT",
|
|
11
|
-
SWITCH = "SWITCH",
|
|
12
|
-
TEXT = "TEXT",
|
|
13
|
-
TEXTAREA = "TEXTAREA"
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export var EFormField = /* @__PURE__ */ ((EFormField2) => {
|
|
2
|
-
EFormField2["CHECKBOX"] = "CHECKBOX";
|
|
3
|
-
EFormField2["DATE"] = "DATE";
|
|
4
|
-
EFormField2["NUMBER"] = "NUMBER";
|
|
5
|
-
EFormField2["RADIOBUTTON"] = "RADIOBUTTON";
|
|
6
|
-
EFormField2["SELECT"] = "SELECT";
|
|
7
|
-
EFormField2["SLOT"] = "SLOT";
|
|
8
|
-
EFormField2["SWITCH"] = "SWITCH";
|
|
9
|
-
EFormField2["TEXT"] = "TEXT";
|
|
10
|
-
EFormField2["TEXTAREA"] = "TEXTAREA";
|
|
11
|
-
return EFormField2;
|
|
12
|
-
})(EFormField || {});
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuración de la internalización.
|
|
3
|
-
*/
|
|
4
|
-
export declare const i18nConfig: {
|
|
5
|
-
legacy: boolean;
|
|
6
|
-
locale: string;
|
|
7
|
-
messages: {
|
|
8
|
-
es: {
|
|
9
|
-
Actions: {
|
|
10
|
-
New: string;
|
|
11
|
-
Back: string;
|
|
12
|
-
Edit: string;
|
|
13
|
-
Cancel: string;
|
|
14
|
-
Delete: string;
|
|
15
|
-
Export: string;
|
|
16
|
-
Confirm: string;
|
|
17
|
-
MoreFilters: string;
|
|
18
|
-
CloseSession: string;
|
|
19
|
-
};
|
|
20
|
-
Rules: {
|
|
21
|
-
RequiredField: string;
|
|
22
|
-
IsEmail: string;
|
|
23
|
-
numberInRange: string;
|
|
24
|
-
};
|
|
25
|
-
Components: {
|
|
26
|
-
SideBar: {
|
|
27
|
-
SideBarFooter: {
|
|
28
|
-
DarkTheme: string;
|
|
29
|
-
LightTheme: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
Footer: {
|
|
33
|
-
Info: string[];
|
|
34
|
-
};
|
|
35
|
-
Dialogs: {
|
|
36
|
-
Delete: {
|
|
37
|
-
Title: string;
|
|
38
|
-
};
|
|
39
|
-
Export: {
|
|
40
|
-
Title: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
Table: {
|
|
44
|
-
NoDataMessage: {
|
|
45
|
-
WhenNoMatches: string;
|
|
46
|
-
WhenNoData: string;
|
|
47
|
-
};
|
|
48
|
-
SearchBar: {
|
|
49
|
-
Label: string;
|
|
50
|
-
Title: string;
|
|
51
|
-
Placeholder: string;
|
|
52
|
-
};
|
|
53
|
-
Pagination: {
|
|
54
|
-
ItemsPerPageLabel: string;
|
|
55
|
-
PaginationInfo: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Este servicio permite usar internalización en archivos javascript y typescript.
|
|
3
|
-
*
|
|
4
|
-
* @method i18nService.global.t(key, params)
|
|
5
|
-
*
|
|
6
|
-
* @param [string] key - Mensaje a resolver
|
|
7
|
-
* @param [Object] params - Parámetros del mensaje - *null*
|
|
8
|
-
*
|
|
9
|
-
* @return *string* Mensaje internalizado en base al idioma actual
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
import { i18nService } from "~/i18n/service";
|
|
14
|
-
|
|
15
|
-
const key = "actions.helloWorld"
|
|
16
|
-
const message = i18nService.global.t(key, params)
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare const i18nService: import("vue-i18n").I18n<{
|
|
20
|
-
es: {
|
|
21
|
-
Actions: {
|
|
22
|
-
New: string;
|
|
23
|
-
Back: string;
|
|
24
|
-
Edit: string;
|
|
25
|
-
Cancel: string;
|
|
26
|
-
Delete: string;
|
|
27
|
-
Export: string;
|
|
28
|
-
Confirm: string;
|
|
29
|
-
MoreFilters: string;
|
|
30
|
-
CloseSession: string;
|
|
31
|
-
};
|
|
32
|
-
Rules: {
|
|
33
|
-
RequiredField: string;
|
|
34
|
-
IsEmail: string;
|
|
35
|
-
numberInRange: string;
|
|
36
|
-
};
|
|
37
|
-
Components: {
|
|
38
|
-
SideBar: {
|
|
39
|
-
SideBarFooter: {
|
|
40
|
-
DarkTheme: string;
|
|
41
|
-
LightTheme: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
Footer: {
|
|
45
|
-
Info: string[];
|
|
46
|
-
};
|
|
47
|
-
Dialogs: {
|
|
48
|
-
Delete: {
|
|
49
|
-
Title: string;
|
|
50
|
-
};
|
|
51
|
-
Export: {
|
|
52
|
-
Title: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
Table: {
|
|
56
|
-
NoDataMessage: {
|
|
57
|
-
WhenNoMatches: string;
|
|
58
|
-
WhenNoData: string;
|
|
59
|
-
};
|
|
60
|
-
SearchBar: {
|
|
61
|
-
Label: string;
|
|
62
|
-
Title: string;
|
|
63
|
-
Placeholder: string;
|
|
64
|
-
};
|
|
65
|
-
Pagination: {
|
|
66
|
-
ItemsPerPageLabel: string;
|
|
67
|
-
PaginationInfo: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}, {}, {}, string, true>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Genera una fecha en formato ISO-8601 con un timestamp y un offset personalizado.
|
|
3
|
-
*
|
|
4
|
-
* @param {Date} date - La fecha base a convertir.
|
|
5
|
-
* @param {string} [timeStamp="06:00:00"] - La hora (HH:mm:ss) que se agregará a la fecha.
|
|
6
|
-
* @param {string} [timeOffset="-06:00"] - El offset de la zona horaria (±HH:mm) que se añadirá al final.
|
|
7
|
-
* @returns {string} La fecha en formato ISO-8601 personalizada.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: (date: Date, timeStamp?: string, timeOffset?: string) => string;
|
|
10
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recupera el valor almacenado en el localStorage.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} item - Clave del elemento en localStorage a recuperar.
|
|
5
|
-
* @returns {object | null} El valor almacenado parseado como objeto, o `null` si no se encuentra o no se puede parsear.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: (item: string) => object | null;
|
|
8
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determina si el entorno actual es del lado del cliente.
|
|
3
|
-
* Utiliza [`import.meta.client`](https://nuxt.com/docs/api/advanced/import-meta#runtime-app-properties).
|
|
4
|
-
*
|
|
5
|
-
* @returns {boolean}
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: () => boolean;
|
|
8
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Verifica si un número está dentro de un rango definido.
|
|
3
|
-
*
|
|
4
|
-
* @param {number} num - Número a validar.
|
|
5
|
-
* @param {number | null} min - Límite inferior del rango (opcional, `null` si no se aplica).
|
|
6
|
-
* @param {number | null} max - Límite superior del rango (opcional, `null` si no se aplica).
|
|
7
|
-
* @returns {boolean}
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: (num: number, min: number | null, max: number | null) => boolean;
|
|
10
|
-
export default _default;
|