aquasis-fe-components 1.0.1 → 1.0.2

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 (42) hide show
  1. package/dist/aquasis-fe-components.js +42700 -33859
  2. package/dist/aquasis-fe-components.umd.cjs +284 -571
  3. package/dist/components/FormField/Props.d.ts +10 -9
  4. package/dist/components/FormField/index.d.ts +2 -2
  5. package/dist/components/ThemeProvider/index.d.ts +1 -1
  6. package/dist/enums/app.d.ts +3 -1
  7. package/dist/enums/reactQueryNames.d.ts +4 -0
  8. package/dist/enums/releaseNotes.d.ts +11 -0
  9. package/dist/helpers/formFields.d.ts +2 -2
  10. package/dist/helpers/index.d.ts +12 -0
  11. package/dist/hooks/index.d.ts +1 -1
  12. package/dist/i18n/index.d.ts +1 -1
  13. package/dist/i18n/locales/br.json.d.ts +81 -0
  14. package/dist/i18n/locales/en.json.d.ts +81 -0
  15. package/dist/i18n/locales/es.json.d.ts +81 -0
  16. package/dist/i18n/locales/jp.json.d.ts +1 -1
  17. package/dist/i18n/locales/pt.json.d.ts +81 -0
  18. package/dist/i18n/locales/ro.json.d.ts +81 -0
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.ts +5 -1
  21. package/dist/lib/Helpdesk/HelpdeskConnector.d.ts +4 -5
  22. package/dist/lib/Helpdesk/index.d.ts +2 -2
  23. package/dist/lib/ReleaseNote/CreateReleaseNote/ReleaseNoteSlides/ReleaseNotesFields/index.d.ts +6 -0
  24. package/dist/lib/ReleaseNote/CreateReleaseNote/ReleaseNoteSlides/index.d.ts +6 -0
  25. package/dist/lib/ReleaseNote/CreateReleaseNote/index.d.ts +11 -0
  26. package/dist/lib/ReleaseNote/ReleaseNoteConnector.d.ts +12 -0
  27. package/dist/lib/ReleaseNote/WhatsNews/index.d.ts +1 -0
  28. package/dist/lib/ReleaseNote/index.d.ts +6 -0
  29. package/dist/reactQuery/index.d.ts +5 -0
  30. package/dist/services/HelpdeskServices.d.ts +1 -1
  31. package/dist/services/HttpClient.d.ts +1 -1
  32. package/dist/services/appServices.d.ts +2 -0
  33. package/dist/services/releaseNoteServices.d.ts +4 -0
  34. package/dist/src/index.d.ts +2 -0
  35. package/dist/store/index.d.ts +3 -3
  36. package/dist/store/reducers/index.d.ts +1 -1
  37. package/dist/themes/index.d.ts +2 -2
  38. package/dist/types/app.d.ts +5 -0
  39. package/dist/types/helpdesk.d.ts +1 -1
  40. package/dist/types/releaseNotes.d.ts +37 -0
  41. package/dist/utils/app.d.ts +4 -0
  42. package/package.json +36 -33
@@ -1,12 +1,12 @@
1
- import { ColorPickerProps, DatePickerProps, InputNumberProps, InputProps, RadioGroupProps, SegmentedProps, SelectProps, SwitchProps, TransferProps, TreeSelectProps } from "antd";
2
- import { RangePickerProps } from "antd/es/date-picker";
3
- import { Rule } from "antd/es/form";
4
- import { LabelTooltipType } from "antd/es/form/FormItemLabel";
5
- import { TextAreaProps } from "antd/es/input";
6
- import { ColumnsType } from "antd/es/table";
7
- import { TransferItem } from "antd/es/transfer";
8
- import { CheckboxProps } from "antd/lib/checkbox";
9
- import { CSSProperties } from "react";
1
+ import { ColorPickerProps, DatePickerProps, InputNumberProps, InputProps, RadioGroupProps, SegmentedProps, SelectProps, SwitchProps, TransferProps, TreeSelectProps } from 'antd';
2
+ import { RangePickerProps } from 'antd/es/date-picker';
3
+ import { FormItemProps, Rule } from 'antd/es/form';
4
+ import { LabelTooltipType } from 'antd/es/form/FormItemLabel';
5
+ import { TextAreaProps } from 'antd/es/input';
6
+ import { ColumnsType } from 'antd/es/table';
7
+ import { TransferItem } from 'antd/es/transfer';
8
+ import { CheckboxProps } from 'antd/lib/checkbox';
9
+ import { CSSProperties } from 'react';
10
10
  interface FormFieldProps {
11
11
  fieldName: string;
12
12
  label?: string;
@@ -30,6 +30,7 @@ export type FormFieldDatePickerProps = FormFieldProps & DatePickerProps;
30
30
  export type FormFieldRangePickerProps = FormFieldProps & RangePickerProps;
31
31
  export interface FormFieldInputProps extends FormFieldProps, InputProps {
32
32
  isPassword?: boolean;
33
+ normalize?: FormItemProps["normalize"];
33
34
  }
34
35
  export interface FormFieldCheckboxProps extends FormFieldProps, CheckboxProps {
35
36
  }
@@ -1,9 +1,9 @@
1
- import { FormFieldCheckboxProps, FormFieldColorPickerProps, FormFieldDatePickerProps, FormFieldInputNumberProps, FormFieldInputProps, FormFieldRadioProps, FormFieldRangePickerProps, FormFieldSegmentedProps, FormFieldSelectProps, FormFieldSwitchProps, FormFieldTextAreaProps, FormFieldTransferProps, FormFieldTreeSelectProps } from "./Props";
1
+ import { FormFieldCheckboxProps, FormFieldColorPickerProps, FormFieldDatePickerProps, FormFieldInputNumberProps, FormFieldInputProps, FormFieldRadioProps, FormFieldRangePickerProps, FormFieldSegmentedProps, FormFieldSelectProps, FormFieldSwitchProps, FormFieldTextAreaProps, FormFieldTransferProps, FormFieldTreeSelectProps } from './Props';
2
2
  declare const FormFieldSelect: ({ fieldName, label, rules, formItemStyles, className, tooltip, showSearch, options, sort, block, hidden, labelIsNumber, ...props }: FormFieldSelectProps) => import("react/jsx-runtime").JSX.Element;
3
3
  declare const FormFieldDatePicker: ({ fieldName, label, rules, className, formItemStyles, tooltip, block, ...props }: FormFieldDatePickerProps) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const FormFieldRangePicker: ({ fieldName, label, rules, className, formItemStyles, tooltip, block, ...props }: FormFieldRangePickerProps) => import("react/jsx-runtime").JSX.Element;
5
5
  declare const FormFieldColorPicker: ({ fieldName, label, rules, className, formItemStyles, tooltip, ...props }: FormFieldColorPickerProps) => import("react/jsx-runtime").JSX.Element;
6
- declare const FormFieldInput: ({ fieldName, label, rules, className, formItemStyles, isPassword, tooltip, block, hidden, ...props }: FormFieldInputProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const FormFieldInput: ({ fieldName, label, rules, className, formItemStyles, isPassword, tooltip, block, hidden, normalize, ...props }: FormFieldInputProps) => import("react/jsx-runtime").JSX.Element;
7
7
  declare const FormFieldCheckbox: ({ fieldName, label, rules, className, formItemStyles, tooltip, ...props }: FormFieldCheckboxProps) => import("react/jsx-runtime").JSX.Element;
8
8
  declare const FormFieldRadio: ({ fieldName, label, rules, className, formItemStyles, tooltip, block, ...props }: FormFieldRadioProps) => import("react/jsx-runtime").JSX.Element;
9
9
  declare const FormFieldInputNumber: ({ fieldName, label, rules, className, formItemStyles, tooltip, block, hidden, ...props }: FormFieldInputNumberProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  type Props = {
3
3
  children: ReactNode;
4
4
  };
@@ -14,7 +14,9 @@ export declare enum LocalStorageKey {
14
14
  UserRoleId = "userRoleId",
15
15
  AppId = "appId",
16
16
  User = "user",
17
- AppName = "appName"
17
+ AppName = "appName",
18
+ UserId = "userId",
19
+ Token = "token"
18
20
  }
19
21
  export declare enum Themes {
20
22
  Dark = "dark",
@@ -0,0 +1,4 @@
1
+ export declare enum ReactQueryNames {
2
+ GetApps = "GetApps",
3
+ GetReleases = "GetReleases"
4
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum ReleaseNotesFieldNames {
2
+ App = "idApp",
3
+ Version = "version",
4
+ DeployDate = "releaseDate",
5
+ ReleasePages = "gaReleasePages",
6
+ Fields = "gaReleasePagesContent",
7
+ Title = "title",
8
+ Description = "description",
9
+ Image = "idFile",
10
+ Order = "order"
11
+ }
@@ -1,5 +1,5 @@
1
- import { DefaultOptionType } from "antd/es/select";
2
- import { SwitchSize } from "antd/es/switch";
1
+ import { DefaultOptionType } from 'antd/es/select';
2
+ import { SwitchSize } from 'antd/es/switch';
3
3
  export declare const sortOptions: (options?: DefaultOptionType[], order?: "desc" | "asc") => DefaultOptionType[];
4
4
  export declare const sortOptionsForNumber: (options?: DefaultOptionType[], order?: "desc" | "asc") => DefaultOptionType[];
5
5
  export declare const onFilterOptions: (value: any, option: any) => any;
@@ -1,5 +1,17 @@
1
+ import { ColorsThemeKey } from '../themes';
1
2
  import { FlagType } from '../types/app';
3
+ import { RcFile } from 'antd/es/upload';
2
4
  export declare const getInitLanguage: () => FlagType;
5
+ export declare const getCurrAppId: () => string;
3
6
  export declare function getCookie<T>(key: string): T;
4
7
  export declare const setCookie: (key: string, value: any) => void;
5
8
  export declare const removeCookie: (key: string) => void;
9
+ export declare const getBase64: (img: RcFile, callback: (url: string) => void) => void;
10
+ export declare const beforeUpload: (file: RcFile) => boolean;
11
+ export declare const formatBase642render: (base64url?: string) => string | undefined;
12
+ export declare const prepareBase64File: (base64url?: string) => string | undefined;
13
+ export declare const getColor: (attribute: keyof ColorsThemeKey) => string;
14
+ export declare const getSelectOptions: (list: any[], labelKey: string, valueKey: string) => {
15
+ label: any;
16
+ value: any;
17
+ }[];
@@ -1,6 +1,6 @@
1
1
  import { AppDispatch, RootState } from '../store';
2
2
  import { FlagType } from '../types/app';
3
- import { TypedUseSelectorHook } from "react-redux";
3
+ import { TypedUseSelectorHook } from 'react-redux';
4
4
  type DispatchFunc = () => AppDispatch;
5
5
  export declare const useAppDispatch: DispatchFunc;
6
6
  export declare const useAppSelector: TypedUseSelectorHook<RootState>;
@@ -1,2 +1,2 @@
1
- import i18n from "i18next";
1
+ import { default as i18n } from 'i18next';
2
2
  export default i18n;
@@ -1,5 +1,63 @@
1
1
  declare const _default: {
2
2
  "translation": {
3
+ "GENERAL": {
4
+ "BACK": "Back",
5
+ "NEXT": "Next",
6
+ "SAVE": "Save",
7
+ "ACTIONS": {
8
+ "CLOSE": "Close",
9
+ "DELETE": "Delete",
10
+ "EDIT": "Edit",
11
+ "NEXT": "Next"
12
+ },
13
+ "APP": "App",
14
+ "BACK_LOGIN": "Back to login",
15
+ "FORM": {
16
+ "ERRORS": {
17
+ "CONFIRM_PASSWORD": "The passwords must be the same!",
18
+ "EMAIL": "The email have to be this format 'email@exemple.com'",
19
+ "NOT_EMPTY": "This field is mandatory",
20
+ "VERSION": "The version must end with a numeric value",
21
+ "FORMAT": "The format must be like 'X.X.X'"
22
+ }
23
+ },
24
+ "MENU": "Menu",
25
+ "MESSAGES": {
26
+ "ERROR": {
27
+ "EMAIL_EXISTS": "Email already exists",
28
+ "ITEM_CREATE": "Error trying to add {{item}}",
29
+ "ITEM_DELETE": "Error trying to delete {{item}}",
30
+ "ITEM_UPDATE": "Error trying to update {{item}}",
31
+ "UNAUTHORIZED": "Sorry, you are not authorized to access this page.",
32
+ "USERNAME_EXISTS": "Username already exists",
33
+ "RELEASE_NOTE": {
34
+ "0": "Version already exists",
35
+ "1": "Deployed date must be greater than the last",
36
+ "2": "Invalid Request parameters"
37
+ }
38
+ },
39
+ "SUCCESS": {
40
+ "ITEM_CREATE": "{{item}} added successfully",
41
+ "ITEM_DELETE": "{{item}} deleted successfully",
42
+ "ITEM_UPDATE": "{{item}} updated successfully"
43
+ },
44
+ "WARNING": {
45
+ "DELETE_CONFIRM": "You are about to delete this menu. Do you want proceed?"
46
+ }
47
+ },
48
+ "REMOVE": "Remove",
49
+ "ROLE": "Role",
50
+ "TENANT": "Organization",
51
+ "THEMES": {
52
+ "DARK": "Dark mode",
53
+ "LIGHT": "Light mode",
54
+ "TOOLTIP": "Click to switch to {{theme}}"
55
+ },
56
+ "UPLOAD": "Upload",
57
+ "USER": "User",
58
+ "UPLOAD_LABEL": "Click or drag file to this area to upload",
59
+ "JPG_PNG_WARNING": "Only supports JPG or PNG files."
60
+ },
3
61
  "HELPDESK": {
4
62
  "ERRORS_CODE": {
5
63
  "DATATYPE_MISMATCH": "Deve conter apenas elementos do tipo de formato de arquivo válido.",
@@ -29,6 +87,29 @@ declare const _default: {
29
87
  "CODE": "Mensagem",
30
88
  "FIELD": "Campo"
31
89
  }
90
+ },
91
+ "RELEASE-NOTES": {
92
+ "WHATS_NEWS": "Welcome to {{app}} v{{version}} - What's News?",
93
+ "TITLE": "Release Notes",
94
+ "TEXT_SINGULAR": "Release Note",
95
+ "ADD_RELEASE_NOTE": "Add Release Note",
96
+ "UPD_RELEASE_NOTE": "Edit Release Note",
97
+ "ADD_NEW_SLIDE": "Add new slide",
98
+ "REMOVE_CURRENT_SLIDE": "Remove current slide",
99
+ "FORM": {
100
+ "FIELDS": {
101
+ "APP": "App",
102
+ "APP_PLACEHOLDER": "Select an app...",
103
+ "VERSION": "Version",
104
+ "VERSION_PLACEHOLDER": "Type the version...",
105
+ "VERSION_TOOLTIP": "The version of the selected application.",
106
+ "DEPLOY_DATE": "Deploy Date",
107
+ "TITLE": "Title...",
108
+ "DESCRIPTION": "Description...",
109
+ "DO_NOT_SHOW_AGAIN": "Do not show again until next update"
110
+ },
111
+ "ADD_NEW_FIELD": "Add new field"
112
+ }
32
113
  }
33
114
  }
34
115
  }
@@ -1,5 +1,63 @@
1
1
  declare const _default: {
2
2
  "translation": {
3
+ "GENERAL": {
4
+ "BACK": "Back",
5
+ "NEXT": "Next",
6
+ "SAVE": "Save",
7
+ "ACTIONS": {
8
+ "CLOSE": "Close",
9
+ "DELETE": "Delete",
10
+ "EDIT": "Edit",
11
+ "NEXT": "Next"
12
+ },
13
+ "APP": "App",
14
+ "BACK_LOGIN": "Back to login",
15
+ "FORM": {
16
+ "ERRORS": {
17
+ "CONFIRM_PASSWORD": "The passwords must be the same!",
18
+ "EMAIL": "The email have to be this format 'email@exemple.com'",
19
+ "NOT_EMPTY": "This field is mandatory",
20
+ "VERSION": "The version must end with a numeric value",
21
+ "FORMAT": "The format must be like 'X.X.X'"
22
+ }
23
+ },
24
+ "MENU": "Menu",
25
+ "MESSAGES": {
26
+ "ERROR": {
27
+ "EMAIL_EXISTS": "Email already exists",
28
+ "ITEM_CREATE": "Error trying to add {{item}}",
29
+ "ITEM_DELETE": "Error trying to delete {{item}}",
30
+ "ITEM_UPDATE": "Error trying to update {{item}}",
31
+ "UNAUTHORIZED": "Sorry, you are not authorized to access this page.",
32
+ "USERNAME_EXISTS": "Username already exists",
33
+ "RELEASE_NOTE": {
34
+ "0": "Version already exists",
35
+ "1": "Deployed date must be greater than the last",
36
+ "2": "Invalid Request parameters"
37
+ }
38
+ },
39
+ "SUCCESS": {
40
+ "ITEM_CREATE": "{{item}} added successfully",
41
+ "ITEM_DELETE": "{{item}} deleted successfully",
42
+ "ITEM_UPDATE": "{{item}} updated successfully"
43
+ },
44
+ "WARNING": {
45
+ "DELETE_CONFIRM": "You are about to delete this menu. Do you want proceed?"
46
+ }
47
+ },
48
+ "REMOVE": "Remove",
49
+ "ROLE": "Role",
50
+ "TENANT": "Organization",
51
+ "THEMES": {
52
+ "DARK": "Dark mode",
53
+ "LIGHT": "Light mode",
54
+ "TOOLTIP": "Click to switch to {{theme}}"
55
+ },
56
+ "UPLOAD": "Upload",
57
+ "USER": "User",
58
+ "UPLOAD_LABEL": "Click or drag file to this area to upload",
59
+ "JPG_PNG_WARNING": "Only supports JPG or PNG files."
60
+ },
3
61
  "HELPDESK": {
4
62
  "ERRORS_CODE": {
5
63
  "DATATYPE_MISMATCH": "It should contain elements of type valid file format only",
@@ -29,6 +87,29 @@ declare const _default: {
29
87
  "CODE": "Message",
30
88
  "FIELD": "Field"
31
89
  }
90
+ },
91
+ "RELEASE-NOTES": {
92
+ "WHATS_NEWS": "Welcome to {{app}} v{{version}} - What's News?",
93
+ "TITLE": "Release Notes",
94
+ "TEXT_SINGULAR": "Release Note",
95
+ "ADD_RELEASE_NOTE": "Add Release Note",
96
+ "UPD_RELEASE_NOTE": "Edit Release Note",
97
+ "ADD_NEW_SLIDE": "Add new slide",
98
+ "REMOVE_CURRENT_SLIDE": "Remove current slide",
99
+ "FORM": {
100
+ "FIELDS": {
101
+ "APP": "App",
102
+ "APP_PLACEHOLDER": "Select an app...",
103
+ "VERSION": "Version",
104
+ "VERSION_PLACEHOLDER": "Type the version...",
105
+ "VERSION_TOOLTIP": "The version of the selected application.",
106
+ "DEPLOY_DATE": "Deploy Date",
107
+ "TITLE": "Title...",
108
+ "DESCRIPTION": "Description...",
109
+ "DO_NOT_SHOW_AGAIN": "Do not show again until next update"
110
+ },
111
+ "ADD_NEW_FIELD": "Add new field"
112
+ }
32
113
  }
33
114
  }
34
115
  }
@@ -1,5 +1,63 @@
1
1
  declare const _default: {
2
2
  "translation": {
3
+ "GENERAL": {
4
+ "BACK": "Back",
5
+ "NEXT": "Next",
6
+ "SAVE": "Save",
7
+ "ACTIONS": {
8
+ "CLOSE": "Close",
9
+ "DELETE": "Delete",
10
+ "EDIT": "Edit",
11
+ "NEXT": "Next"
12
+ },
13
+ "APP": "App",
14
+ "BACK_LOGIN": "Back to login",
15
+ "FORM": {
16
+ "ERRORS": {
17
+ "CONFIRM_PASSWORD": "The passwords must be the same!",
18
+ "EMAIL": "The email have to be this format 'email@exemple.com'",
19
+ "NOT_EMPTY": "This field is mandatory",
20
+ "VERSION": "The version must end with a numeric value",
21
+ "FORMAT": "The format must be like 'X.X.X'"
22
+ }
23
+ },
24
+ "MENU": "Menu",
25
+ "MESSAGES": {
26
+ "ERROR": {
27
+ "EMAIL_EXISTS": "Email already exists",
28
+ "ITEM_CREATE": "Error trying to add {{item}}",
29
+ "ITEM_DELETE": "Error trying to delete {{item}}",
30
+ "ITEM_UPDATE": "Error trying to update {{item}}",
31
+ "UNAUTHORIZED": "Sorry, you are not authorized to access this page.",
32
+ "USERNAME_EXISTS": "Username already exists",
33
+ "RELEASE_NOTE": {
34
+ "0": "Version already exists",
35
+ "1": "Deployed date must be greater than the last",
36
+ "2": "Invalid Request parameters"
37
+ }
38
+ },
39
+ "SUCCESS": {
40
+ "ITEM_CREATE": "{{item}} added successfully",
41
+ "ITEM_DELETE": "{{item}} deleted successfully",
42
+ "ITEM_UPDATE": "{{item}} updated successfully"
43
+ },
44
+ "WARNING": {
45
+ "DELETE_CONFIRM": "You are about to delete this menu. Do you want proceed?"
46
+ }
47
+ },
48
+ "REMOVE": "Remove",
49
+ "ROLE": "Role",
50
+ "TENANT": "Organization",
51
+ "THEMES": {
52
+ "DARK": "Dark mode",
53
+ "LIGHT": "Light mode",
54
+ "TOOLTIP": "Click to switch to {{theme}}"
55
+ },
56
+ "UPLOAD": "Upload",
57
+ "USER": "User",
58
+ "UPLOAD_LABEL": "Click or drag file to this area to upload",
59
+ "JPG_PNG_WARNING": "Only supports JPG or PNG files."
60
+ },
3
61
  "HELPDESK": {
4
62
  "ERRORS_CODE": {
5
63
  "DATATYPE_MISMATCH": "Debe contener elementos de tipo formato de archivo válido únicamente.",
@@ -29,6 +87,29 @@ declare const _default: {
29
87
  "CODE": "Mensaje",
30
88
  "FIELD": "Campo"
31
89
  }
90
+ },
91
+ "RELEASE-NOTES": {
92
+ "WHATS_NEWS": "Welcome to {{app}} v{{version}} - What's News?",
93
+ "TITLE": "Release Notes",
94
+ "TEXT_SINGULAR": "Release Note",
95
+ "ADD_RELEASE_NOTE": "Add Release Note",
96
+ "UPD_RELEASE_NOTE": "Edit Release Note",
97
+ "ADD_NEW_SLIDE": "Add new slide",
98
+ "REMOVE_CURRENT_SLIDE": "Remove current slide",
99
+ "FORM": {
100
+ "FIELDS": {
101
+ "APP": "App",
102
+ "APP_PLACEHOLDER": "Select an app...",
103
+ "VERSION": "Version",
104
+ "VERSION_PLACEHOLDER": "Type the version...",
105
+ "VERSION_TOOLTIP": "The version of the selected application.",
106
+ "DEPLOY_DATE": "Deploy Date",
107
+ "TITLE": "Title...",
108
+ "DESCRIPTION": "Description...",
109
+ "DO_NOT_SHOW_AGAIN": "Do not show again until next update"
110
+ },
111
+ "ADD_NEW_FIELD": "Add new field"
112
+ }
32
113
  }
33
114
  }
34
115
  }
@@ -411,7 +411,7 @@ declare const _default: {
411
411
  "ID_FLOWISE": null,
412
412
  "ID_GIS": null,
413
413
  "Import": "Import",
414
- "import",
414
+ "import": "import",
415
415
  "Import Areas": "Import Areas",
416
416
  "Import Meters": "Import Meters",
417
417
  "Import Rules": "Import Rules",
@@ -1,5 +1,63 @@
1
1
  declare const _default: {
2
2
  "translation": {
3
+ "GENERAL": {
4
+ "BACK": "Back",
5
+ "NEXT": "Next",
6
+ "SAVE": "Save",
7
+ "ACTIONS": {
8
+ "CLOSE": "Close",
9
+ "DELETE": "Delete",
10
+ "EDIT": "Edit",
11
+ "NEXT": "Next"
12
+ },
13
+ "APP": "App",
14
+ "BACK_LOGIN": "Back to login",
15
+ "FORM": {
16
+ "ERRORS": {
17
+ "CONFIRM_PASSWORD": "The passwords must be the same!",
18
+ "EMAIL": "The email have to be this format 'email@exemple.com'",
19
+ "NOT_EMPTY": "This field is mandatory",
20
+ "VERSION": "The version must end with a numeric value",
21
+ "FORMAT": "The format must be like 'X.X.X'"
22
+ }
23
+ },
24
+ "MENU": "Menu",
25
+ "MESSAGES": {
26
+ "ERROR": {
27
+ "EMAIL_EXISTS": "Email already exists",
28
+ "ITEM_CREATE": "Error trying to add {{item}}",
29
+ "ITEM_DELETE": "Error trying to delete {{item}}",
30
+ "ITEM_UPDATE": "Error trying to update {{item}}",
31
+ "UNAUTHORIZED": "Sorry, you are not authorized to access this page.",
32
+ "USERNAME_EXISTS": "Username already exists",
33
+ "RELEASE_NOTE": {
34
+ "0": "Version already exists",
35
+ "1": "Deployed date must be greater than the last",
36
+ "2": "Invalid Request parameters"
37
+ }
38
+ },
39
+ "SUCCESS": {
40
+ "ITEM_CREATE": "{{item}} added successfully",
41
+ "ITEM_DELETE": "{{item}} deleted successfully",
42
+ "ITEM_UPDATE": "{{item}} updated successfully"
43
+ },
44
+ "WARNING": {
45
+ "DELETE_CONFIRM": "You are about to delete this menu. Do you want proceed?"
46
+ }
47
+ },
48
+ "REMOVE": "Remove",
49
+ "ROLE": "Role",
50
+ "TENANT": "Organization",
51
+ "THEMES": {
52
+ "DARK": "Dark mode",
53
+ "LIGHT": "Light mode",
54
+ "TOOLTIP": "Click to switch to {{theme}}"
55
+ },
56
+ "UPLOAD": "Upload",
57
+ "USER": "User",
58
+ "UPLOAD_LABEL": "Click or drag file to this area to upload",
59
+ "JPG_PNG_WARNING": "Only supports JPG or PNG files."
60
+ },
3
61
  "HELPDESK": {
4
62
  "ERRORS_CODE": {
5
63
  "DATATYPE_MISMATCH": "Deve conter apenas elementos do tipo de formato de arquivo válido.",
@@ -29,6 +87,29 @@ declare const _default: {
29
87
  "CODE": "Mensagem",
30
88
  "FIELD": "Campo"
31
89
  }
90
+ },
91
+ "RELEASE-NOTES": {
92
+ "WHATS_NEWS": "Welcome to {{app}} v{{version}} - What's News?",
93
+ "TITLE": "Release Notes",
94
+ "TEXT_SINGULAR": "Release Note",
95
+ "ADD_RELEASE_NOTE": "Add Release Note",
96
+ "UPD_RELEASE_NOTE": "Edit Release Note",
97
+ "ADD_NEW_SLIDE": "Add new slide",
98
+ "REMOVE_CURRENT_SLIDE": "Remove current slide",
99
+ "FORM": {
100
+ "FIELDS": {
101
+ "APP": "App",
102
+ "APP_PLACEHOLDER": "Select an app...",
103
+ "VERSION": "Version",
104
+ "VERSION_PLACEHOLDER": "Type the version...",
105
+ "VERSION_TOOLTIP": "The version of the selected application.",
106
+ "DEPLOY_DATE": "Deploy Date",
107
+ "TITLE": "Title...",
108
+ "DESCRIPTION": "Description...",
109
+ "DO_NOT_SHOW_AGAIN": "Do not show again until next update"
110
+ },
111
+ "ADD_NEW_FIELD": "Add new field"
112
+ }
32
113
  }
33
114
  }
34
115
  }
@@ -1,5 +1,63 @@
1
1
  declare const _default: {
2
2
  "translation": {
3
+ "GENERAL": {
4
+ "BACK": "Back",
5
+ "NEXT": "Next",
6
+ "SAVE": "Save",
7
+ "ACTIONS": {
8
+ "CLOSE": "Close",
9
+ "DELETE": "Delete",
10
+ "EDIT": "Edit",
11
+ "NEXT": "Next"
12
+ },
13
+ "APP": "App",
14
+ "BACK_LOGIN": "Back to login",
15
+ "FORM": {
16
+ "ERRORS": {
17
+ "CONFIRM_PASSWORD": "The passwords must be the same!",
18
+ "EMAIL": "The email have to be this format 'email@exemple.com'",
19
+ "NOT_EMPTY": "This field is mandatory",
20
+ "VERSION": "The version must end with a numeric value",
21
+ "FORMAT": "The format must be like 'X.X.X'"
22
+ }
23
+ },
24
+ "MENU": "Menu",
25
+ "MESSAGES": {
26
+ "ERROR": {
27
+ "EMAIL_EXISTS": "Email already exists",
28
+ "ITEM_CREATE": "Error trying to add {{item}}",
29
+ "ITEM_DELETE": "Error trying to delete {{item}}",
30
+ "ITEM_UPDATE": "Error trying to update {{item}}",
31
+ "UNAUTHORIZED": "Sorry, you are not authorized to access this page.",
32
+ "USERNAME_EXISTS": "Username already exists",
33
+ "RELEASE_NOTE": {
34
+ "0": "Version already exists",
35
+ "1": "Deployed date must be greater than the last",
36
+ "2": "Invalid Request parameters"
37
+ }
38
+ },
39
+ "SUCCESS": {
40
+ "ITEM_CREATE": "{{item}} added successfully",
41
+ "ITEM_DELETE": "{{item}} deleted successfully",
42
+ "ITEM_UPDATE": "{{item}} updated successfully"
43
+ },
44
+ "WARNING": {
45
+ "DELETE_CONFIRM": "You are about to delete this menu. Do you want proceed?"
46
+ }
47
+ },
48
+ "REMOVE": "Remove",
49
+ "ROLE": "Role",
50
+ "TENANT": "Organization",
51
+ "THEMES": {
52
+ "DARK": "Dark mode",
53
+ "LIGHT": "Light mode",
54
+ "TOOLTIP": "Click to switch to {{theme}}"
55
+ },
56
+ "UPLOAD": "Upload",
57
+ "USER": "User",
58
+ "UPLOAD_LABEL": "Click or drag file to this area to upload",
59
+ "JPG_PNG_WARNING": "Only supports JPG or PNG files."
60
+ },
3
61
  "HELPDESK": {
4
62
  "ERRORS_CODE": {
5
63
  "DATATYPE_MISMATCH": "Ar trebui să conțină doar elemente de tip format de fișier valid",
@@ -29,6 +87,29 @@ declare const _default: {
29
87
  "CODE": "Mesaj",
30
88
  "FIELD": "Camp"
31
89
  }
90
+ },
91
+ "RELEASE-NOTES": {
92
+ "WHATS_NEWS": "Welcome to {{app}} v{{version}} - What's News?",
93
+ "TITLE": "Release Notes",
94
+ "TEXT_SINGULAR": "Release Note",
95
+ "ADD_RELEASE_NOTE": "Add Release Note",
96
+ "UPD_RELEASE_NOTE": "Edit Release Note",
97
+ "ADD_NEW_SLIDE": "Add new slide",
98
+ "REMOVE_CURRENT_SLIDE": "Remove current slide",
99
+ "FORM": {
100
+ "FIELDS": {
101
+ "APP": "App",
102
+ "APP_PLACEHOLDER": "Select an app...",
103
+ "VERSION": "Version",
104
+ "VERSION_PLACEHOLDER": "Type the version...",
105
+ "VERSION_TOOLTIP": "The version of the selected application.",
106
+ "DEPLOY_DATE": "Deploy Date",
107
+ "TITLE": "Title...",
108
+ "DESCRIPTION": "Description...",
109
+ "DO_NOT_SHOW_AGAIN": "Do not show again until next update"
110
+ },
111
+ "ADD_NEW_FIELD": "Add new field"
112
+ }
32
113
  }
33
114
  }
34
115
  }
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}*{padding:0;margin:0;box-sizing:border-box}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
1
+ .helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}*{padding:0;margin:0;box-sizing:border-box}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,6 @@
1
1
  import { ConnectedHelpdesk as Helpdesk } from './lib/Helpdesk/HelpdeskConnector';
2
- export { Helpdesk };
2
+ import { ReleaseNotesConnector as ReleaseNote } from './lib/ReleaseNote/ReleaseNoteConnector';
3
+ export type * from './types/app';
4
+ export type * from './types/helpdesk';
5
+ export type * from './types/releaseNotes';
6
+ export { Helpdesk, ReleaseNote };
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- declare const ConnectedHelpdesk: import("react-redux").ConnectedComponent<import("react").FC<import("./index").HelpdeskProps>, {
3
- size?: import("antd/es/button").ButtonSize;
4
- context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
5
- store?: import("redux").Store<any, import("redux").UnknownAction, unknown> | undefined;
1
+ declare const ConnectedHelpdesk: import('react-redux').ConnectedComponent<import('react').FC<import('./index').HelpdeskProps>, {
2
+ size?: import('antd/es/button').ButtonSize;
3
+ context?: import('react').Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
4
+ store?: import('redux').Store | undefined;
6
5
  }>;
7
6
  export { ConnectedHelpdesk };