argous 1.2.134 → 1.2.138
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/actions/index.d.ts +58 -0
- package/dist/actions/index.js +59 -0
- package/dist/api/WebSocket.d.ts +25 -0
- package/dist/api/WebSocket.js +170 -0
- package/dist/api/index.d.ts +63 -0
- package/dist/api/index.js +762 -0
- package/dist/api/ws.d.ts +4 -0
- package/dist/api/ws.js +36 -0
- package/dist/components/Alert/Alert.d.ts +8 -0
- package/dist/components/Alert/Alert.js +68 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.js +8 -0
- package/dist/components/ArgousAction/ArgousAction.d.ts +8 -0
- package/dist/components/ArgousAction/ArgousAction.js +87 -0
- package/dist/components/ArgousAction/index.d.ts +2 -0
- package/dist/components/ArgousAction/index.js +8 -0
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +14 -0
- package/dist/components/ArgousAvatar/ArgousAvatar.js +124 -0
- package/dist/components/ArgousAvatar/index.d.ts +2 -0
- package/dist/components/ArgousAvatar/index.js +8 -0
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +76 -0
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +156 -0
- package/dist/components/ArgousComplexPagination/index.d.ts +2 -0
- package/dist/components/ArgousComplexPagination/index.js +8 -0
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +131 -0
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +333 -0
- package/dist/components/ArgousComplexTable/index.d.ts +2 -0
- package/dist/components/ArgousComplexTable/index.js +8 -0
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +177 -0
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +155 -0
- package/dist/components/ArgousComplexTableBody/index.d.ts +2 -0
- package/dist/components/ArgousComplexTableBody/index.js +8 -0
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +73 -0
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +88 -0
- package/dist/components/ArgousComplexTableHead/index.d.ts +2 -0
- package/dist/components/ArgousComplexTableHead/index.js +8 -0
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +58 -0
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +70 -0
- package/dist/components/ArgousComplexTableToolbar/index.d.ts +2 -0
- package/dist/components/ArgousComplexTableToolbar/index.js +8 -0
- package/dist/components/ArgousInput/ArgousInput.d.ts +8 -0
- package/dist/components/ArgousInput/ArgousInput.js +578 -0
- package/dist/components/ArgousInput/index.d.ts +2 -0
- package/dist/components/ArgousInput/index.js +8 -0
- package/dist/components/ArgousPagination/ArgousPagination.d.ts +8 -0
- package/dist/components/ArgousPagination/ArgousPagination.js +29 -0
- package/dist/components/ArgousPagination/index.d.ts +2 -0
- package/dist/components/ArgousPagination/index.js +8 -0
- package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +22 -0
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +162 -0
- package/dist/components/ArgousProgressBar/index.d.ts +2 -0
- package/dist/components/ArgousProgressBar/index.js +8 -0
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +8 -0
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +201 -0
- package/dist/components/ArgousSimpleTable/index.d.ts +2 -0
- package/dist/components/ArgousSimpleTable/index.js +8 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts +8 -0
- package/dist/components/AutoComplete/AutoComplete.js +185 -0
- package/dist/components/AutoComplete/index.d.ts +2 -0
- package/dist/components/AutoComplete/index.js +8 -0
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +20 -0
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +331 -0
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -0
- package/dist/components/AutoCompleteFavorites/index.js +8 -0
- package/dist/components/BarChart/BarChart.d.ts +8 -0
- package/dist/components/BarChart/BarChart.js +125 -0
- package/dist/components/BarChart/index.d.ts +2 -0
- package/dist/components/BarChart/index.js +8 -0
- package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +21 -0
- package/dist/components/BarraFerramentas/BarraFerramentas.js +228 -0
- package/dist/components/BarraFerramentas/index.d.ts +2 -0
- package/dist/components/BarraFerramentas/index.js +8 -0
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.js +144 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +8 -0
- package/dist/components/Cabecalho/Cabecalho.d.ts +8 -0
- package/dist/components/Cabecalho/Cabecalho.js +231 -0
- package/dist/components/Cabecalho/index.d.ts +2 -0
- package/dist/components/Cabecalho/index.js +8 -0
- package/dist/components/Calendar/Calendar.d.ts +8 -0
- package/dist/components/Calendar/Calendar.js +171 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Calendar/index.js +8 -0
- package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +9 -0
- package/dist/components/CartaoUsuario/CartaoUsuario.js +165 -0
- package/dist/components/CartaoUsuario/index.d.ts +2 -0
- package/dist/components/CartaoUsuario/index.js +8 -0
- package/dist/components/Collapse/Collapse.d.ts +60 -0
- package/dist/components/Collapse/Collapse.js +290 -0
- package/dist/components/Collapse/index.d.ts +3 -0
- package/dist/components/Collapse/index.js +8 -0
- package/dist/components/Compartilhar/Compartilhar.d.ts +7 -0
- package/dist/components/Compartilhar/Compartilhar.js +266 -0
- package/dist/components/Compartilhar/index.d.ts +2 -0
- package/dist/components/Compartilhar/index.js +8 -0
- package/dist/components/ConfirmModal/BasicModal.d.ts +38 -0
- package/dist/components/ConfirmModal/BasicModal.js +29 -0
- package/dist/components/ConfirmModal/ModalProvider.d.ts +5 -0
- package/dist/components/ConfirmModal/ModalProvider.js +108 -0
- package/dist/components/ConfirmModal/WrapperModal.d.ts +18 -0
- package/dist/components/ConfirmModal/WrapperModal.js +41 -0
- package/dist/components/ConfirmModal/index.d.ts +20 -0
- package/dist/components/ConfirmModal/index.js +25 -0
- package/dist/components/DropArea/DropArea.d.ts +21 -0
- package/dist/components/DropArea/DropArea.js +149 -0
- package/dist/components/DropArea/Html5FileSelector.d.ts +16 -0
- package/dist/components/DropArea/Html5FileSelector.js +229 -0
- package/dist/components/DropArea/index.d.ts +2 -0
- package/dist/components/DropArea/index.js +8 -0
- package/dist/components/Editor/Events.d.ts +79 -0
- package/dist/components/Editor/Events.js +9 -0
- package/dist/components/Editor/ScriptLoader.d.ts +20 -0
- package/dist/components/Editor/ScriptLoader.js +70 -0
- package/dist/components/Editor/TinyMCE.d.ts +10 -0
- package/dist/components/Editor/TinyMCE.js +16 -0
- package/dist/components/Editor/Utils.d.ts +19 -0
- package/dist/components/Editor/Utils.js +62 -0
- package/dist/components/Editor/components/Editor.d.ts +67 -0
- package/dist/components/Editor/components/Editor.js +351 -0
- package/dist/components/Editor/components/EditorPropTypes.d.ts +18 -0
- package/dist/components/Editor/components/EditorPropTypes.js +110 -0
- package/dist/components/Editor/index.d.ts +9 -0
- package/dist/components/Editor/index.js +12 -0
- package/dist/components/Editor/tinymce/tinymce.d.ts +2963 -0
- package/dist/components/FilePreparer/FilePreparer.d.ts +26 -0
- package/dist/components/FilePreparer/FilePreparer.js +279 -0
- package/dist/components/FilePreparer/index.d.ts +2 -0
- package/dist/components/FilePreparer/index.js +8 -0
- package/dist/components/FileUploader/FileUploader.d.ts +9 -0
- package/dist/components/FileUploader/FileUploader.js +445 -0
- package/dist/components/FileUploader/index.d.ts +2 -0
- package/dist/components/FileUploader/index.js +8 -0
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +92 -0
- package/dist/components/FormVisualizer/FormVisualizer.js +264 -0
- package/dist/components/FormVisualizer/index.d.ts +2 -0
- package/dist/components/FormVisualizer/index.js +8 -0
- package/dist/components/Highlight/Highlight.d.ts +7 -0
- package/dist/components/Highlight/Highlight.js +75 -0
- package/dist/components/Highlight/index.d.ts +2 -0
- package/dist/components/Highlight/index.js +8 -0
- package/dist/components/ImageResize/ImageResize.d.ts +28 -0
- package/dist/components/ImageResize/ImageResize.js +472 -0
- package/dist/components/ImageResize/index.d.ts +2 -0
- package/dist/components/ImageResize/index.js +8 -0
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +26 -0
- package/dist/components/ImageResizeButton/ImageResizeButton.js +89 -0
- package/dist/components/ImageResizeButton/index.d.ts +2 -0
- package/dist/components/ImageResizeButton/index.js +8 -0
- package/dist/components/Input/Input.d.ts +8 -0
- package/dist/components/Input/Input.js +328 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +8 -0
- package/dist/components/InputTags/InputTags.d.ts +8 -0
- package/dist/components/InputTags/InputTags.js +129 -0
- package/dist/components/InputTags/index.d.ts +2 -0
- package/dist/components/InputTags/index.js +8 -0
- package/dist/components/ListSelect/ListSelect.d.ts +8 -0
- package/dist/components/ListSelect/ListSelect.js +126 -0
- package/dist/components/ListSelect/index.d.ts +2 -0
- package/dist/components/ListSelect/index.js +8 -0
- package/dist/components/MaterialButton/MaterialButton.d.ts +13 -0
- package/dist/components/MaterialButton/MaterialButton.js +192 -0
- package/dist/components/MaterialButton/index.d.ts +2 -0
- package/dist/components/MaterialButton/index.js +8 -0
- package/dist/components/MenuBar/MenuBar.d.ts +8 -0
- package/dist/components/MenuBar/MenuBar.js +157 -0
- package/dist/components/MenuBar/index.d.ts +2 -0
- package/dist/components/MenuBar/index.js +8 -0
- package/dist/components/MonthPicker/MonthPicker.d.ts +8 -0
- package/dist/components/MonthPicker/MonthPicker.js +288 -0
- package/dist/components/MonthPicker/index.d.ts +2 -0
- package/dist/components/MonthPicker/index.js +8 -0
- package/dist/components/MultipleSelect/MultipleSelect.d.ts +8 -0
- package/dist/components/MultipleSelect/MultipleSelect.js +139 -0
- package/dist/components/MultipleSelect/index.d.ts +2 -0
- package/dist/components/MultipleSelect/index.js +8 -0
- package/dist/components/OtpInput/OtpInput.d.ts +18 -0
- package/dist/components/OtpInput/OtpInput.js +207 -0
- package/dist/components/OtpInput/index.d.ts +2 -0
- package/dist/components/OtpInput/index.js +8 -0
- package/dist/components/OutputText/OutputText.d.ts +8 -0
- package/dist/components/OutputText/OutputText.js +89 -0
- package/dist/components/OutputText/index.d.ts +2 -0
- package/dist/components/OutputText/index.js +8 -0
- package/dist/components/Pagination/Pagination.d.ts +8 -0
- package/dist/components/Pagination/Pagination.js +64 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +8 -0
- package/dist/components/Programa/Programa.d.ts +31 -0
- package/dist/components/Programa/Programa.js +201 -0
- package/dist/components/Programa/index.d.ts +2 -0
- package/dist/components/Programa/index.js +8 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.js +98 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressBar/index.js +8 -0
- package/dist/components/Select/Select.d.ts +8 -0
- package/dist/components/Select/Select.js +142 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +8 -0
- package/dist/components/SimpleTable/SimpleTable.d.ts +13 -0
- package/dist/components/SimpleTable/SimpleTable.js +390 -0
- package/dist/components/SimpleTable/index.d.ts +2 -0
- package/dist/components/SimpleTable/index.js +10 -0
- package/dist/components/Stepper/Stepper.d.ts +54 -0
- package/dist/components/Stepper/Stepper.js +157 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Stepper/index.js +8 -0
- package/dist/components/TablePicker/TablePicker.d.ts +8 -0
- package/dist/components/TablePicker/TablePicker.js +222 -0
- package/dist/components/TablePicker/index.d.ts +2 -0
- package/dist/components/TablePicker/index.js +8 -0
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/components/Tabs/Tabs.js +76 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +8 -0
- package/dist/components/TextArea/TextArea.d.ts +8 -0
- package/dist/components/TextArea/TextArea.js +148 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/TextArea/index.js +8 -0
- package/dist/components/ThreadLog/ThreadLog.d.ts +8 -0
- package/dist/components/ThreadLog/ThreadLog.js +225 -0
- package/dist/components/ThreadLog/index.d.ts +2 -0
- package/dist/components/ThreadLog/index.js +8 -0
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +93 -0
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +188 -0
- package/dist/components/UtilAutoComplete/index.d.ts +2 -0
- package/dist/components/UtilAutoComplete/index.js +8 -0
- package/dist/components/index.d.ts +148 -0
- package/dist/components/index.js +165 -0
- package/dist/fieldsRedux/createField.d.ts +8 -0
- package/dist/fieldsRedux/createField.js +149 -0
- package/dist/fieldsRedux/fieldsRedux.d.ts +71 -0
- package/dist/fieldsRedux/fieldsRedux.js +436 -0
- package/dist/fieldsRedux/index.d.ts +4 -0
- package/dist/fieldsRedux/index.js +27 -0
- package/dist/fieldsRedux/passFields.d.ts +5 -0
- package/dist/fieldsRedux/passFields.js +107 -0
- package/dist/reducers/argous.d.ts +76 -0
- package/dist/reducers/argous.js +63 -0
- package/dist/reducers/index.d.ts +4 -0
- package/dist/reducers/index.js +9 -0
- package/dist/types.d.ts +144 -0
- package/dist/utils/api.d.ts +29 -0
- package/dist/utils/api.js +255 -0
- package/dist/utils/config.d.ts +3 -0
- package/dist/utils/config.js +13 -0
- package/dist/utils/date.d.ts +8 -0
- package/dist/utils/date.js +60 -0
- package/dist/utils/index.d.ts +61 -0
- package/dist/utils/index.js +383 -0
- package/dist/utils/rippleEffect.d.ts +2 -0
- package/dist/utils/rippleEffect.js +173 -0
- package/dist/utils/store.d.ts +3 -0
- package/dist/utils/store.js +12 -0
- package/dist/utils/xmlToJson.d.ts +2 -0
- package/dist/utils/xmlToJson.js +158 -0
- package/lib/api/index.js +16 -0
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +298 -0
- package/lib/components/AutoCompleteFavorites/index.js +1 -0
- package/lib/components/index.js +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { UsuarioLogado } from '../types';
|
|
2
|
+
export declare const setUsuarioLogado: (usuarioLogado: UsuarioLogado) => {
|
|
3
|
+
type: string;
|
|
4
|
+
usuarioLogado: UsuarioLogado;
|
|
5
|
+
};
|
|
6
|
+
export declare const setLoading: (loading: boolean) => {
|
|
7
|
+
type: string;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const setProcesso: (processo: any) => {
|
|
11
|
+
type: string;
|
|
12
|
+
processo: any;
|
|
13
|
+
};
|
|
14
|
+
export declare const setInitialPage: (initialPage: string) => {
|
|
15
|
+
type: string;
|
|
16
|
+
initialPage: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const setCurrentProgram: (currentProgram: string) => {
|
|
19
|
+
type: string;
|
|
20
|
+
currentProgram: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const setCurrentField: (program: string, field: string, value: any) => {
|
|
23
|
+
type: string;
|
|
24
|
+
program: string;
|
|
25
|
+
field: string;
|
|
26
|
+
value: any;
|
|
27
|
+
};
|
|
28
|
+
export declare const clearAllFields: () => {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const setFields: (fields: any) => {
|
|
32
|
+
type: string;
|
|
33
|
+
fields: any;
|
|
34
|
+
};
|
|
35
|
+
export declare const setFavorites: (favorites: any[]) => {
|
|
36
|
+
type: string;
|
|
37
|
+
favorites: any[];
|
|
38
|
+
};
|
|
39
|
+
export declare const setBlockUser: (block: boolean) => {
|
|
40
|
+
type: string;
|
|
41
|
+
block: boolean;
|
|
42
|
+
};
|
|
43
|
+
export declare const setNotificacao: (notificacao: any) => {
|
|
44
|
+
type: string;
|
|
45
|
+
notificacao: any;
|
|
46
|
+
};
|
|
47
|
+
export declare const setSidebar: (sidebar: boolean) => {
|
|
48
|
+
type: string;
|
|
49
|
+
sidebar: boolean;
|
|
50
|
+
};
|
|
51
|
+
export declare const setMensagensNaoLidas: (mensagensNaoLidas: number) => {
|
|
52
|
+
type: string;
|
|
53
|
+
mensagensNaoLidas: number;
|
|
54
|
+
};
|
|
55
|
+
export declare const setVldPsw: (vldPsw: boolean) => {
|
|
56
|
+
type: string;
|
|
57
|
+
vldPsw: boolean;
|
|
58
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setVldPsw = exports.setMensagensNaoLidas = exports.setSidebar = exports.setNotificacao = exports.setBlockUser = exports.setFavorites = exports.setFields = exports.clearAllFields = exports.setCurrentField = exports.setCurrentProgram = exports.setInitialPage = exports.setProcesso = exports.setLoading = exports.setUsuarioLogado = void 0;
|
|
4
|
+
var setUsuarioLogado = function (usuarioLogado) {
|
|
5
|
+
return { type: 'setUsuarioLogado', usuarioLogado: usuarioLogado };
|
|
6
|
+
};
|
|
7
|
+
exports.setUsuarioLogado = setUsuarioLogado;
|
|
8
|
+
var setLoading = function (loading) {
|
|
9
|
+
return { type: 'setLoading', loading: loading };
|
|
10
|
+
};
|
|
11
|
+
exports.setLoading = setLoading;
|
|
12
|
+
var setProcesso = function (processo) {
|
|
13
|
+
return { type: 'setProcesso', processo: processo };
|
|
14
|
+
};
|
|
15
|
+
exports.setProcesso = setProcesso;
|
|
16
|
+
var setInitialPage = function (initialPage) {
|
|
17
|
+
return { type: 'setInitialPage', initialPage: initialPage };
|
|
18
|
+
};
|
|
19
|
+
exports.setInitialPage = setInitialPage;
|
|
20
|
+
var setCurrentProgram = function (currentProgram) {
|
|
21
|
+
return { type: 'setCurrentProgram', currentProgram: currentProgram };
|
|
22
|
+
};
|
|
23
|
+
exports.setCurrentProgram = setCurrentProgram;
|
|
24
|
+
var setCurrentField = function (program, field, value) {
|
|
25
|
+
return { type: 'setCurrentField', program: program, field: field, value: value };
|
|
26
|
+
};
|
|
27
|
+
exports.setCurrentField = setCurrentField;
|
|
28
|
+
var clearAllFields = function () {
|
|
29
|
+
return { type: 'clearAllFields' };
|
|
30
|
+
};
|
|
31
|
+
exports.clearAllFields = clearAllFields;
|
|
32
|
+
var setFields = function (fields) {
|
|
33
|
+
return { type: 'setFields', fields: fields };
|
|
34
|
+
};
|
|
35
|
+
exports.setFields = setFields;
|
|
36
|
+
var setFavorites = function (favorites) {
|
|
37
|
+
return { type: 'setFavorites', favorites: favorites };
|
|
38
|
+
};
|
|
39
|
+
exports.setFavorites = setFavorites;
|
|
40
|
+
var setBlockUser = function (block) {
|
|
41
|
+
return { type: 'setBlockUser', block: block };
|
|
42
|
+
};
|
|
43
|
+
exports.setBlockUser = setBlockUser;
|
|
44
|
+
var setNotificacao = function (notificacao) {
|
|
45
|
+
return { type: 'setNotificacao', notificacao: notificacao };
|
|
46
|
+
};
|
|
47
|
+
exports.setNotificacao = setNotificacao;
|
|
48
|
+
var setSidebar = function (sidebar) {
|
|
49
|
+
return { type: 'setSidebar', sidebar: sidebar };
|
|
50
|
+
};
|
|
51
|
+
exports.setSidebar = setSidebar;
|
|
52
|
+
var setMensagensNaoLidas = function (mensagensNaoLidas) {
|
|
53
|
+
return { type: 'setMensagensNaoLidas', mensagensNaoLidas: mensagensNaoLidas };
|
|
54
|
+
};
|
|
55
|
+
exports.setMensagensNaoLidas = setMensagensNaoLidas;
|
|
56
|
+
var setVldPsw = function (vldPsw) {
|
|
57
|
+
return { type: 'vldPsw', vldPsw: vldPsw };
|
|
58
|
+
};
|
|
59
|
+
exports.setVldPsw = setVldPsw;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default WebSocket;
|
|
2
|
+
declare const WebSocket: import("react-redux").ConnectedComponent<typeof WebSocketComponent, import("react-redux").Omit<PropTypes.InferProps<{
|
|
3
|
+
usuarioLogado: PropTypes.Validator<object>;
|
|
4
|
+
setProcesso: PropTypes.Validator<(...args: any[]) => any>;
|
|
5
|
+
processos: PropTypes.Requireable<any[]>;
|
|
6
|
+
}>, "setProcesso" | "usuarioLogado" | "processos">>;
|
|
7
|
+
declare class WebSocketComponent extends Component<any, any, any> {
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
constructor(props: any, context: any);
|
|
10
|
+
connect: () => void;
|
|
11
|
+
resolveTrn: (res: any) => void;
|
|
12
|
+
resolveProcesso: (res: any) => void;
|
|
13
|
+
resolveNotificacao: (res: any) => void;
|
|
14
|
+
resolveMessage: (res: any) => void;
|
|
15
|
+
resolveChat: (res: any) => void;
|
|
16
|
+
}
|
|
17
|
+
declare namespace WebSocketComponent {
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const usuarioLogado: PropTypes.Validator<object>;
|
|
20
|
+
const setProcesso: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
const processos: PropTypes.Requireable<any[]>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from "prop-types";
|
|
25
|
+
import { Component } from "react";
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
var ws_1 = require("./ws");
|
|
41
|
+
var argous = __importStar(require("../actions"));
|
|
42
|
+
var fieldsRedux_1 = require("../fieldsRedux");
|
|
43
|
+
var api_1 = require("../utils/api");
|
|
44
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
45
|
+
var react_1 = require("react");
|
|
46
|
+
var react_redux_1 = require("react-redux");
|
|
47
|
+
var WebSocketComponent = /** @class */ (function (_super) {
|
|
48
|
+
__extends(WebSocketComponent, _super);
|
|
49
|
+
function WebSocketComponent() {
|
|
50
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
_this.connect = function () {
|
|
52
|
+
ws_1.connectArgousWS();
|
|
53
|
+
var argousWS = ws_1.getArgousWS();
|
|
54
|
+
argousWS.onopen = function (event) {
|
|
55
|
+
ws_1.enviaMensagem({ trn: 1 });
|
|
56
|
+
};
|
|
57
|
+
argousWS.onmessage = function (event) {
|
|
58
|
+
var res = JSON.parse(event.data);
|
|
59
|
+
_this.resolveTrn(res);
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
_this.resolveTrn = function (res) {
|
|
63
|
+
switch (res.trn) {
|
|
64
|
+
case 3:
|
|
65
|
+
_this.resolveProcesso(res);
|
|
66
|
+
break;
|
|
67
|
+
case 4:
|
|
68
|
+
_this.resolveNotificacao(res);
|
|
69
|
+
break;
|
|
70
|
+
case 5:
|
|
71
|
+
_this.resolveMessage(res);
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
_this.resolveProcesso = function (res) {
|
|
77
|
+
var _a = _this.props, setProcesso = _a.setProcesso, processos = _a.processos;
|
|
78
|
+
var novoProcesso = true;
|
|
79
|
+
var pAux = processos.map(function (i) {
|
|
80
|
+
if (i.id === res.id) {
|
|
81
|
+
novoProcesso = false;
|
|
82
|
+
return res;
|
|
83
|
+
}
|
|
84
|
+
return i;
|
|
85
|
+
});
|
|
86
|
+
var pLength = pAux.length;
|
|
87
|
+
if (novoProcesso && pLength !== 0) {
|
|
88
|
+
pAux = pAux.concat(res);
|
|
89
|
+
}
|
|
90
|
+
setProcesso(pLength === 0
|
|
91
|
+
? [res]
|
|
92
|
+
: pAux);
|
|
93
|
+
};
|
|
94
|
+
_this.resolveNotificacao = function (res) {
|
|
95
|
+
try {
|
|
96
|
+
var item = JSON.parse(res.notificacao[4]);
|
|
97
|
+
if (item.link)
|
|
98
|
+
api_1.sendNotification({ id: res.notificacao[0], mensagem: item.mensagem, title: res.notificacao[3], icon: res.notificacao[1], link: item.link, dsLabel: item.dsLabel });
|
|
99
|
+
else
|
|
100
|
+
throw new Error();
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
api_1.sendNotification(res.notificacao[4], res.notificacao[3], res.notificacao[1]);
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
var setNotificacao = _this.props.setNotificacao;
|
|
107
|
+
setNotificacao(res.notificacao);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
_this.resolveMessage = function (res) {
|
|
111
|
+
var currentProgram = fieldsRedux_1.getCurrentProgram();
|
|
112
|
+
if (res.pgCode === 'ChatContext') {
|
|
113
|
+
_this.resolveChat(res);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (currentProgram && res.pgCode === currentProgram) {
|
|
117
|
+
var onMessage = fieldsRedux_1.getField('WSHandler').onMessage;
|
|
118
|
+
onMessage && onMessage(res);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
var onMessage = fieldsRedux_1.getField('WSHandler', 'onMessage', res.pgCode);
|
|
122
|
+
onMessage && onMessage(res);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
_this.resolveChat = function (res) {
|
|
126
|
+
var onMessage = fieldsRedux_1.getField('WSHandler', 'onMessage', 'argousSystem');
|
|
127
|
+
onMessage && onMessage(res);
|
|
128
|
+
};
|
|
129
|
+
return _this;
|
|
130
|
+
}
|
|
131
|
+
WebSocketComponent.prototype.componentDidMount = function () {
|
|
132
|
+
var _this = this;
|
|
133
|
+
window.addEventListener('focus', function () {
|
|
134
|
+
if (_this.props.usuarioLogado.nome) {
|
|
135
|
+
_this.connect();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
WebSocketComponent.prototype.componentDidUpdate = function (previousProps, previousState) {
|
|
140
|
+
if (!previousProps.usuarioLogado.nome && this.props.usuarioLogado.nome) {
|
|
141
|
+
this.connect();
|
|
142
|
+
}
|
|
143
|
+
if (previousProps.usuarioLogado.nome && !this.props.usuarioLogado.nome) {
|
|
144
|
+
ws_1.disconnect();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
WebSocketComponent.prototype.componentWillUnmount = function () {
|
|
148
|
+
ws_1.disconnect();
|
|
149
|
+
};
|
|
150
|
+
WebSocketComponent.prototype.render = function () {
|
|
151
|
+
return null;
|
|
152
|
+
};
|
|
153
|
+
return WebSocketComponent;
|
|
154
|
+
}(react_1.Component));
|
|
155
|
+
WebSocketComponent.propTypes = {
|
|
156
|
+
usuarioLogado: prop_types_1.default.object.isRequired,
|
|
157
|
+
setProcesso: prop_types_1.default.func.isRequired,
|
|
158
|
+
processos: prop_types_1.default.array
|
|
159
|
+
};
|
|
160
|
+
var mapStateToProps = function (state) {
|
|
161
|
+
return { usuarioLogado: state.argous.usuarioLogado, processos: state.argous.processos };
|
|
162
|
+
};
|
|
163
|
+
var mapDispatchToProps = function (dispatch) {
|
|
164
|
+
return {
|
|
165
|
+
setNotificacao: function (data) { return dispatch(argous.setNotificacao(data)); },
|
|
166
|
+
setProcesso: function (data) { return dispatch(argous.setProcesso(data)); }
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
var WebSocket = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(WebSocketComponent);
|
|
170
|
+
exports.default = WebSocket;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export function server(): string;
|
|
2
|
+
export function api(): string;
|
|
3
|
+
export function headers(): {
|
|
4
|
+
lgTkn: string;
|
|
5
|
+
};
|
|
6
|
+
export function fetchToArgous(request: string, data: any): any;
|
|
7
|
+
export function login(data: any): Promise<any>;
|
|
8
|
+
export function logout(): Promise<any>;
|
|
9
|
+
export function validaToken(): Promise<any>;
|
|
10
|
+
export function getMenu(): Promise<any>;
|
|
11
|
+
export function getPostsTimeline(data: any): Promise<any>;
|
|
12
|
+
export function addCommentPost(data: any): Promise<any>;
|
|
13
|
+
export function getPostPublicacao(data: any): Promise<any>;
|
|
14
|
+
export function getProgram(data: any): Promise<any>;
|
|
15
|
+
export function agGet(data: any): object;
|
|
16
|
+
export function agSet(data: any): object;
|
|
17
|
+
export function action(data: any): Promise<any>;
|
|
18
|
+
export function method(data: any): object;
|
|
19
|
+
export function getFavorites(): Promise<any>;
|
|
20
|
+
export function toggleFavorite(data: any): Promise<any>;
|
|
21
|
+
export function callProgram(data: any): Promise<any>;
|
|
22
|
+
export function getNotificacoes(data: any): Promise<any>;
|
|
23
|
+
export function readNotificacoes(data: any): Promise<any>;
|
|
24
|
+
export function readNotificacao(data: any): Promise<any>;
|
|
25
|
+
export function recebeThread(data: any): Promise<any>;
|
|
26
|
+
export function recebeInfoThread(data: any): Promise<any>;
|
|
27
|
+
export function recebeThreadsUsuario(data: any): Promise<any>;
|
|
28
|
+
export function recebeInfoLoginsAtivos(): Promise<any>;
|
|
29
|
+
export function recebeInfoEstatisticas(): Promise<any>;
|
|
30
|
+
export function toggleLikePost(data: any): Promise<any>;
|
|
31
|
+
export function publicaTimeline(data: any): Promise<any>;
|
|
32
|
+
export function removePostTimeLine(data: any): Promise<any>;
|
|
33
|
+
export function enviaCompartilhamentoDePrograma(data: any): Promise<any>;
|
|
34
|
+
export function inicFileUpload(data: any): Promise<any>;
|
|
35
|
+
export function sendFilePart(data: any): Promise<any>;
|
|
36
|
+
export function endFileUpload(data: any): Promise<any>;
|
|
37
|
+
export function cancelFileUpload(data: any): Promise<any>;
|
|
38
|
+
export function getFileInfo(data: any): Promise<any>;
|
|
39
|
+
export function searchUsers(data: any): Promise<any>;
|
|
40
|
+
export function prepareFile(file: any): Promise<any>;
|
|
41
|
+
export function createDocument({ idUnidade, cdUnidade, idDocPai, path, dsKeyWords, dtValidade, idTipoDocumento, FileName, title, idRecebimento, tpPrivacidade, description, dsClassificacao, dsCategoria, dsSubCategoria, snSensivel }: {
|
|
42
|
+
idUnidade: any;
|
|
43
|
+
cdUnidade: any;
|
|
44
|
+
idDocPai: any;
|
|
45
|
+
path: any;
|
|
46
|
+
dsKeyWords: any;
|
|
47
|
+
dtValidade: any;
|
|
48
|
+
idTipoDocumento: any;
|
|
49
|
+
FileName: any;
|
|
50
|
+
title: any;
|
|
51
|
+
idRecebimento: any;
|
|
52
|
+
tpPrivacidade: any;
|
|
53
|
+
description: any;
|
|
54
|
+
dsClassificacao: any;
|
|
55
|
+
dsCategoria: any;
|
|
56
|
+
dsSubCategoria: any;
|
|
57
|
+
snSensivel: any;
|
|
58
|
+
}): Promise<any>;
|
|
59
|
+
export function getFileFromLink({ URL: link }?: {
|
|
60
|
+
URL?: string | undefined;
|
|
61
|
+
}): Promise<string>;
|
|
62
|
+
export function getLink(idDocumento: any, nrRevisao: any, timeout: any): Promise<any>;
|
|
63
|
+
export function scanDocument(idDocumento: any, nrRevisao: any): Promise<any>;
|