aquasis-fe-components 1.3.13 → 1.3.14-a

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,6 +1,3 @@
1
- /**
2
- * This is a common enums
3
- */
4
1
  export declare enum LocalStorageKey {
5
2
  UserID = "userId",
6
3
  Theme = "theme",
@@ -1,5 +1,6 @@
1
1
  export declare enum ReactQueryNames {
2
2
  GetApps = "GetApps",
3
3
  GetReleases = "GetReleases",
4
- GetUser = "GetUser"
4
+ GetUser = "GetUser",
5
+ GetLanguages = "GetLanguages"
5
6
  }
@@ -95,11 +95,6 @@ declare const _default: {
95
95
  "FIELD": "Campo"
96
96
  }
97
97
  },
98
- "PAGES": {
99
- "USERS": {
100
- "PASSWORD_HINT": "Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>"
101
- }
102
- },
103
98
  "RELEASE-NOTES": {
104
99
  "ADD_NEW_SLIDE": "Adicionar novo diapositivo",
105
100
  "ADD_RELEASE_NOTE": "Adicionar Publicação",
@@ -133,6 +128,7 @@ declare const _default: {
133
128
  "LAST_NAME": "Último nome",
134
129
  "LAST_NAME_PLACEHOLDER": "Por favor, digite seu último nome...",
135
130
  "PASSWORD": "Senha",
131
+ "PASSWORD_HINT": "Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>",
136
132
  "PASSWORD_PLACEHOLDER": "Digite sua senha...",
137
133
  "PASSWORD-CONFIRM": "Confirmar senha",
138
134
  "PASSWORD-CONFIRM_PLACEHOLDER": "Confirme sua senha...",
@@ -95,11 +95,6 @@ declare const _default: {
95
95
  "FIELD": "Field"
96
96
  }
97
97
  },
98
- "PAGES": {
99
- "USERS": {
100
- "PASSWORD_HINT": "Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one lowercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>"
101
- }
102
- },
103
98
  "RELEASE-NOTES": {
104
99
  "ADD_NEW_SLIDE": "Add new slide",
105
100
  "ADD_RELEASE_NOTE": "Add Release Note",
@@ -133,6 +128,7 @@ declare const _default: {
133
128
  "LAST_NAME": "Last name",
134
129
  "LAST_NAME_PLACEHOLDER": "Please insert the last name...",
135
130
  "PASSWORD": "Password",
131
+ "PASSWORD_HINT": "Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one lowercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>",
136
132
  "PASSWORD_PLACEHOLDER": "Please insert the password...",
137
133
  "PASSWORD-CONFIRM": "Confirm password",
138
134
  "PASSWORD-CONFIRM_PLACEHOLDER": "Please confirm the password...",
@@ -95,11 +95,6 @@ declare const _default: {
95
95
  "FIELD": "Field"
96
96
  }
97
97
  },
98
- "PAGES": {
99
- "USERS": {
100
- "PASSWORD_HINT": "Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Al menos un número entre 0 y 9</li><li>Al menos una letra mayúscula</li><li>Al menos una letra minúscula</li><li>Al menos un carácter especial: <b>!@#$%^&*</b> </li></ul>"
101
- }
102
- },
103
98
  "RELEASE-NOTES": {
104
99
  "ADD_NEW_SLIDE": "Add new slide",
105
100
  "ADD_RELEASE_NOTE": "Add Release Note",
@@ -133,6 +128,7 @@ declare const _default: {
133
128
  "LAST_NAME": "Apellido",
134
129
  "LAST_NAME_PLACEHOLDER": "Por favor, ingrese el apellido…",
135
130
  "PASSWORD": "Contraseña",
131
+ "PASSWORD_HINT": "Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Al menos un número entre 0 y 9</li><li>Al menos una letra mayúscula</li><li>Al menos una letra minúscula</li><li>Al menos un carácter especial: <b>!@#$%^&*</b> </li></ul>",
136
132
  "PASSWORD_PLACEHOLDER": "Por favor, ingrese la contraseña...",
137
133
  "PASSWORD-CONFIRM": "Confirmar contraseña",
138
134
  "PASSWORD-CONFIRM_PLACEHOLDER": "Por favor, confirme la contraseña...",
@@ -95,11 +95,6 @@ declare const _default: {
95
95
  "FIELD": "Field"
96
96
  }
97
97
  },
98
- "PAGES": {
99
- "USERS": {
100
- "PASSWORD_HINT": "Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>"
101
- }
102
- },
103
98
  "RELEASE-NOTES": {
104
99
  "ADD_NEW_SLIDE": "Add new slide",
105
100
  "ADD_RELEASE_NOTE": "Add Release Note",
@@ -133,6 +128,7 @@ declare const _default: {
133
128
  "LAST_NAME": "Last name",
134
129
  "LAST_NAME_PLACEHOLDER": "Please insert the last name...",
135
130
  "PASSWORD": "Password",
131
+ "PASSWORD_HINT": "Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>",
136
132
  "PASSWORD_PLACEHOLDER": "Please insert the password...",
137
133
  "PASSWORD-CONFIRM": "Confirm password",
138
134
  "PASSWORD-CONFIRM_PLACEHOLDER": "Please confirm the password...",
@@ -95,11 +95,6 @@ declare const _default: {
95
95
  "FIELD": "Campo"
96
96
  }
97
97
  },
98
- "PAGES": {
99
- "USERS": {
100
- "PASSWORD_HINT": "Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>"
101
- }
102
- },
103
98
  "RELEASE-NOTES": {
104
99
  "ADD_NEW_SLIDE": "Adicionar novo diapositivo",
105
100
  "ADD_RELEASE_NOTE": "Adicionar Publicação",
@@ -133,6 +128,7 @@ declare const _default: {
133
128
  "LAST_NAME": "Apelido",
134
129
  "LAST_NAME_PLACEHOLDER": "Por favor, insira o seu apelido...",
135
130
  "PASSWORD": "Palavra-passe",
131
+ "PASSWORD_HINT": "Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>",
136
132
  "PASSWORD_PLACEHOLDER": "Introduza a sua palavra-passe...",
137
133
  "PASSWORD-CONFIRM": "Confirmar palavra-passe",
138
134
  "PASSWORD-CONFIRM_PLACEHOLDER": "Confirme a sua palavra-passe...",
@@ -95,11 +95,6 @@ declare const _default: {
95
95
  "FIELD": "Field"
96
96
  }
97
97
  },
98
- "PAGES": {
99
- "USERS": {
100
- "PASSWORD_HINT": "Cerințe: <ul><li>Minimum 7 caractere</li><li>Cel puțin o cifră între 0 și 9</li><li>Cel puțin o literă mare</li><li>Cel puțin o literă mică</li><li>Cel puțin un caracter special: <b>!@#$%^&*</b></li></ul>"
101
- }
102
- },
103
98
  "RELEASE-NOTES": {
104
99
  "ADD_NEW_SLIDE": "Add new slide",
105
100
  "ADD_RELEASE_NOTE": "Add Release Note",
@@ -133,6 +128,7 @@ declare const _default: {
133
128
  "LAST_NAME": "Nume de familie",
134
129
  "LAST_NAME_PLACEHOLDER": "Vă rugăm să introduceți numele de familie...",
135
130
  "PASSWORD": "Parolă",
131
+ "PASSWORD_HINT": "Cerințe: <ul><li>Minimum 7 caractere</li><li>Cel puțin o cifră între 0 și 9</li><li>Cel puțin o literă mare</li><li>Cel puțin o literă mică</li><li>Cel puțin un caracter special: <b>!@#$%^&*</b></li></ul>",
136
132
  "PASSWORD_PLACEHOLDER": "Vă rugăm să introduceți parola...",
137
133
  "PASSWORD-CONFIRM": "Confirmare parolă",
138
134
  "PASSWORD-CONFIRM_PLACEHOLDER": "Vă rugăm să confirmați parola...",
@@ -1,5 +1,6 @@
1
1
  import { CarouselProps, CarouselRef } from 'antd/es/carousel';
2
2
  type Props = {
3
+ idLanguage: number;
3
4
  changeSlide: CarouselProps["beforeChange"];
4
5
  };
5
6
  export declare const ReleaseNotesSlides: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<CarouselRef>>;
@@ -1,5 +1,6 @@
1
- import { IApp } from '../types/app';
1
+ import { IApp, ILanguage } from '../types/app';
2
2
  import { GetReleaseNotePayload, IReleaseNote } from '../types/releaseNotes';
3
3
  import { AxiosError } from 'axios';
4
4
  export declare const useGetApps: () => import('react-query').UseQueryResult<IApp[], AxiosError<unknown, any>>;
5
+ export declare const useGetLanguages: () => import('react-query').UseQueryResult<ILanguage[], AxiosError<unknown, any>>;
5
6
  export declare const useGetReleases: (payload: GetReleaseNotePayload) => import('react-query').UseQueryResult<IReleaseNote[], AxiosError<unknown, any>>;
@@ -1,2 +1,3 @@
1
- import { IApp } from '../types/app';
1
+ import { IApp, ILanguage } from '../types/app';
2
2
  export declare const getApps: () => Promise<IApp[]>;
3
+ export declare const getLanguages: () => Promise<ILanguage[]>;
@@ -1,11 +1,11 @@
1
1
  import { Themes } from '../../enums/app';
2
- import { Language } from '../../types/app';
2
+ import { LanguageType } from '../../types/app';
3
3
  import { AppState } from '../../types/store';
4
4
  import { PayloadAction } from '@reduxjs/toolkit';
5
5
  export declare const appSlice: import('@reduxjs/toolkit').Slice<AppState, {
6
6
  updTheme: (state: import('immer').WritableDraft<AppState>, { payload }: PayloadAction<Themes>) => void;
7
- updLanguage: (state: import('immer').WritableDraft<AppState>, { payload }: PayloadAction<Language>) => void;
7
+ updLanguage: (state: import('immer').WritableDraft<AppState>, { payload }: PayloadAction<LanguageType>) => void;
8
8
  }, "AppState", "AppState", import('@reduxjs/toolkit').SliceSelectors<AppState>>;
9
- export declare const updTheme: import('@reduxjs/toolkit').ActionCreatorWithPayload<Themes, "AppState/updTheme">, updLanguage: import('@reduxjs/toolkit').ActionCreatorWithPayload<Language, "AppState/updLanguage">;
9
+ export declare const updTheme: import('@reduxjs/toolkit').ActionCreatorWithPayload<Themes, "AppState/updTheme">, updLanguage: import('@reduxjs/toolkit').ActionCreatorWithPayload<LanguageType, "AppState/updLanguage">;
10
10
  declare const _default: import('redux').Reducer<AppState>;
11
11
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { RootState } from '..';
2
2
  export declare const getTheme: (state: RootState) => import('../../enums/app').Themes;
3
- export declare const getLanguage: (state: RootState) => import('../..').Language | undefined;
3
+ export declare const getLanguage: (state: RootState) => import('../..').LanguageType | undefined;
@@ -15,4 +15,8 @@ export interface IApp {
15
15
  appName: string;
16
16
  isPrivate: boolean;
17
17
  }
18
- export type Language = "EN" | "ES" | "PT" | "RO" | "BR";
18
+ export type LanguageType = "EN" | "ES" | "PT" | "RO" | "BR";
19
+ export interface ILanguage {
20
+ idLanguage: number;
21
+ description: LanguageType;
22
+ }
@@ -5,6 +5,7 @@ export type ReleaseNotesFormSlides = {
5
5
  [ReleaseNotesFieldNames.NoImage]?: boolean;
6
6
  idReleasePage?: number;
7
7
  order?: number;
8
+ idLanguage: number;
8
9
  };
9
10
  export type ReleaseNotesFormFields = {
10
11
  [ReleaseNotesFieldNames.Title]?: string;
@@ -1,6 +1,6 @@
1
1
  import { Themes } from '../enums/app';
2
- import { Language } from './app';
2
+ import { LanguageType } from './app';
3
3
  export interface AppState {
4
4
  theme: Themes;
5
- language?: Language;
5
+ language?: LanguageType;
6
6
  }
@@ -1,3 +1,11 @@
1
+ export declare const LanguageFlag: {
2
+ EN: string;
3
+ ES: string;
4
+ PT: string;
5
+ RO: string;
6
+ JP: string;
7
+ BR: string;
8
+ };
1
9
  export declare const prefixImgBase64 = "data:image/jpeg;base64,";
2
10
  export declare const onlyDateFormat = "DD/MM/YYYY";
3
11
  export declare const onlyDateISOstring = "YYYY-MM-DD";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aquasis-fe-components",
3
3
  "private": false,
4
- "version": "1.3.13",
4
+ "version": "1.3.14-a",
5
5
  "type": "module",
6
6
  "license": "ISC",
7
7
  "author": "Ewerton Souza",