argous 1.2.247 → 1.3.3
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/api/WebSocket.d.ts +18 -10
- package/dist/api/WebSocket.js +26 -18
- package/dist/api/index.js +54 -43
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +44 -3
- package/dist/components/Alert/Alert.js +17 -7
- package/dist/components/ArgousAction/ArgousAction.js +17 -7
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
- package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
- package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
- package/dist/components/ArgousInput/ArgousInput.js +19 -9
- package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
- package/dist/components/AutoComplete/AutoComplete.js +18 -9
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
- package/dist/components/BarChart/BarChart.js +17 -7
- package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
- package/dist/components/Button/Button.js +17 -7
- package/dist/components/Cabecalho/Cabecalho.js +17 -7
- package/dist/components/Calendar/Calendar.js +24 -41
- package/dist/components/Cam/Cam.js +19 -9
- package/dist/components/Carousel/Carousel.js +113 -103
- package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
- package/dist/components/Collapse/Collapse.d.ts +3 -3
- package/dist/components/Collapse/Collapse.js +121 -71
- package/dist/components/Compartilhar/Compartilhar.js +70 -65
- package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
- package/dist/components/ConfirmModal/BasicModal.js +8 -8
- package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
- package/dist/components/ConfirmModal/ModalProvider.js +17 -7
- package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
- package/dist/components/ConfirmModal/WrapperModal.js +5 -5
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
- package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
- package/dist/components/ContactValidationInput/SealModal.js +13 -20
- package/dist/components/Document/Icons.d.ts +2 -2
- package/dist/components/Document/Icons.js +33 -16
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +48 -34
- package/dist/components/DropArea/DropArea.js +27 -12
- package/dist/components/DropArea/Html5FileSelector.js +6 -7
- package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
- package/dist/components/Editor/ScriptLoader2.js +2 -2
- package/dist/components/Editor/Utils.d.ts +3 -3
- package/dist/components/Editor/Utils.js +2 -2
- package/dist/components/Editor/components/Editor.d.ts +1 -1
- package/dist/components/Editor/components/Editor.js +18 -9
- package/dist/components/Editor/components/EditorPropTypes.js +17 -7
- package/dist/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/dist/components/FilePreparer/FilePreparer.js +105 -88
- package/dist/components/FileUploader/FileUploader.js +33 -22
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
- package/dist/components/HalfGauge/HalfGauge.js +87 -135
- package/dist/components/Highlight/Highlight.js +23 -12
- package/dist/components/ImageResize/ImageResize.d.ts +1 -1
- package/dist/components/ImageResize/ImageResize.js +79 -85
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
- package/dist/components/Input/Input.js +19 -9
- package/dist/components/InputTags/InputTags.js +22 -13
- package/dist/components/ListSelect/ListSelect.js +17 -7
- package/dist/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/dist/components/MaterialButton/MaterialButton.js +56 -125
- package/dist/components/MenuBar/MenuBar.js +17 -7
- package/dist/components/MonthPicker/MonthPicker.js +20 -10
- package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +71 -58
- package/dist/components/OutputText/OutputText.js +17 -7
- package/dist/components/Pagination/Pagination.js +17 -7
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
- package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
- package/dist/components/Programa/Programa.d.ts +2 -2
- package/dist/components/Programa/Programa.js +50 -28
- package/dist/components/Programa/Tab.d.ts +2 -2
- package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
- package/dist/components/Programa/TabNavigationRail.js +13 -55
- package/dist/components/ProgressBar/ProgressBar.js +17 -7
- package/dist/components/Select/Select.js +17 -7
- package/dist/components/SimpleTable/SimpleTable.js +17 -7
- package/dist/components/Stepper/Stepper.d.ts +1 -1
- package/dist/components/Stepper/Stepper.js +194 -179
- package/dist/components/TablePicker/TablePicker.js +37 -12
- package/dist/components/Tabs/Tabs.js +17 -7
- package/dist/components/TextArea/TextArea.js +17 -7
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +17 -7
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +51 -44
- package/dist/components/TextToHtml/TextToHtml.js +37 -17
- package/dist/components/ThreadLog/ThreadLog.js +19 -9
- package/dist/components/UserCard/UserCard.js +36 -26
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
- package/dist/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/dist/components/UtilTextField/UtilTextField.js +26 -14
- package/dist/components/Zoom/Zoom.js +23 -24
- package/dist/fieldsRedux/createField.js +17 -7
- package/dist/fieldsRedux/fieldsRedux.js +19 -9
- package/dist/fieldsRedux/passFields.js +17 -7
- package/dist/reducers/index.d.ts +98 -2
- package/dist/utils/api.js +32 -15
- package/dist/utils/config.js +2 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +68 -54
- package/dist/utils/store.js +2 -3
- package/lib/api/WebSocket.js +11 -12
- package/lib/api/index.js +14 -14
- package/lib/api/ws.js +48 -4
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
- package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
- package/lib/components/ArgousInput/ArgousInput.js +2 -2
- package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
- package/lib/components/AutoComplete/AutoComplete.js +2 -3
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
- package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
- package/lib/components/Calendar/Calendar.js +7 -42
- package/lib/components/Carousel/Carousel.js +42 -27
- package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
- package/lib/components/Collapse/Collapse.d.ts +3 -3
- package/lib/components/Collapse/Collapse.js +92 -57
- package/lib/components/Compartilhar/Compartilhar.js +47 -46
- package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
- package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
- package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
- package/lib/components/ContactValidationInput/SealModal.js +38 -32
- package/lib/components/Document/Icons.js +14 -6
- package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
- package/lib/components/Document/Visualizacao.js +31 -25
- package/lib/components/DropArea/DropArea.js +9 -3
- package/lib/components/Editor/ScriptLoader2.ts +3 -3
- package/lib/components/Editor/Utils.ts +3 -3
- package/lib/components/Editor/components/Editor.tsx +1 -1
- package/lib/components/Editor/tinymce/README.md +73 -0
- package/lib/components/Editor/tinymce/langs/README.md +3 -0
- package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
- package/lib/components/Editor/tinymce/tinymce.js +12 -12
- package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
- package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/lib/components/FilePreparer/FilePreparer.js +112 -108
- package/lib/components/FileUploader/FileUploader.js +8 -7
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
- package/lib/components/HalfGauge/HalfGauge.js +87 -85
- package/lib/components/Highlight/Highlight.js +4 -4
- package/lib/components/ImageResize/ImageResize.d.ts +1 -1
- package/lib/components/ImageResize/ImageResize.js +123 -118
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
- package/lib/components/Input/Input.js +2 -2
- package/lib/components/InputTags/InputTags.js +6 -7
- package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/lib/components/MaterialButton/MaterialButton.js +50 -125
- package/lib/components/MonthPicker/MonthPicker.js +2 -2
- package/lib/components/OtpInput/OtpInput.tsx +77 -69
- package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
- package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
- package/lib/components/Programa/Programa.d.ts +2 -2
- package/lib/components/Programa/Programa.js +21 -5
- package/lib/components/Programa/Tab.ts +4 -2
- package/lib/components/Programa/TabNavigationRail.js +9 -31
- package/lib/components/Stepper/Stepper.d.ts +1 -1
- package/lib/components/Stepper/Stepper.js +222 -190
- package/lib/components/TablePicker/TablePicker.js +11 -6
- package/lib/components/TextToHtml/TextStyles.js +42 -42
- package/lib/components/TextToHtml/TextToHtml.js +102 -92
- package/lib/components/ThreadLog/ThreadLog.js +1 -1
- package/lib/components/UserCard/UserCard.js +6 -6
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
- package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/lib/components/UtilTextField/UtilTextField.js +18 -16
- package/lib/components/Zoom/Zoom.js +6 -3
- package/lib/utils/api.ts +1 -1
- package/lib/utils/index.ts +10 -8
- package/package.json +56 -56
- package/.gitlab-ci.yml +0 -21
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -26,18 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
15
|
}) : function(o, v) {
|
|
27
16
|
o["default"] = v;
|
|
28
17
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
39
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
var clsx_1 =
|
|
36
|
+
var clsx_1 = require("clsx");
|
|
41
37
|
var react_1 = __importStar(require("react"));
|
|
42
38
|
require("./style.css");
|
|
43
39
|
var Zoom = function (_a) {
|
|
@@ -51,7 +47,10 @@ var Zoom = function (_a) {
|
|
|
51
47
|
if (mediaElement)
|
|
52
48
|
figureElement.style.backgroundImage = "url('" + mediaElement.src + "')";
|
|
53
49
|
}, [figureId]);
|
|
54
|
-
(0, react_1.useEffect)(function () {
|
|
50
|
+
(0, react_1.useEffect)(function () {
|
|
51
|
+
var timeoutId = setTimeout(function () { return copyMediaUrl(); }, 500);
|
|
52
|
+
return function () { return clearTimeout(timeoutId); };
|
|
53
|
+
}, [copyMediaUrl]);
|
|
55
54
|
function zoom(e, activeParameter) {
|
|
56
55
|
var _a, _b, _c, _d;
|
|
57
56
|
if (active || activeParameter) {
|
|
@@ -77,6 +76,6 @@ var Zoom = function (_a) {
|
|
|
77
76
|
setActive(state);
|
|
78
77
|
(state) && zoom(e, state);
|
|
79
78
|
};
|
|
80
|
-
return react_1.default.createElement("figure",
|
|
79
|
+
return react_1.default.createElement("figure", { style: style, id: figureId, onMouseMove: zoom, onTouchMove: zoom, onClick: handleActive, className: (0, clsx_1.clsx)('zoom-figure', { 'zoom-figure-active': active }) }, children);
|
|
81
80
|
};
|
|
82
81
|
exports.default = Zoom;
|
|
@@ -41,13 +41,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
41
41
|
}) : function(o, v) {
|
|
42
42
|
o["default"] = v;
|
|
43
43
|
});
|
|
44
|
-
var __importStar = (this && this.__importStar) || function (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
44
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
45
|
+
var ownKeys = function(o) {
|
|
46
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
49
|
+
return ar;
|
|
50
|
+
};
|
|
51
|
+
return ownKeys(o);
|
|
52
|
+
};
|
|
53
|
+
return function (mod) {
|
|
54
|
+
if (mod && mod.__esModule) return mod;
|
|
55
|
+
var result = {};
|
|
56
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
57
|
+
__setModuleDefault(result, mod);
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
})();
|
|
51
61
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
52
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
53
63
|
};
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
47
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
48
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -43,8 +53,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
53
|
});
|
|
44
54
|
};
|
|
45
55
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g =
|
|
56
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
57
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
58
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
59
|
function step(op) {
|
|
50
60
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -41,13 +41,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
41
41
|
}) : function(o, v) {
|
|
42
42
|
o["default"] = v;
|
|
43
43
|
});
|
|
44
|
-
var __importStar = (this && this.__importStar) || function (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
44
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
45
|
+
var ownKeys = function(o) {
|
|
46
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
49
|
+
return ar;
|
|
50
|
+
};
|
|
51
|
+
return ownKeys(o);
|
|
52
|
+
};
|
|
53
|
+
return function (mod) {
|
|
54
|
+
if (mod && mod.__esModule) return mod;
|
|
55
|
+
var result = {};
|
|
56
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
57
|
+
__setModuleDefault(result, mod);
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
})();
|
|
51
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
62
|
var fieldsRedux_1 = require("./fieldsRedux");
|
|
53
63
|
var react_1 = __importStar(require("react"));
|
package/dist/reducers/index.d.ts
CHANGED
|
@@ -1,4 +1,100 @@
|
|
|
1
|
-
declare const reducers: import("redux").Reducer<
|
|
1
|
+
declare const reducers: import("redux").Reducer<{
|
|
2
|
+
argous: {
|
|
3
|
+
processos: any;
|
|
4
|
+
usuarioLogado: {};
|
|
5
|
+
loading: boolean;
|
|
6
|
+
favorites: never[];
|
|
7
|
+
initialPage: string;
|
|
8
|
+
fields: {};
|
|
9
|
+
block: boolean;
|
|
10
|
+
vldPsw: boolean;
|
|
11
|
+
sidebar: boolean;
|
|
12
|
+
rightSidebar: boolean;
|
|
13
|
+
addProgramWidget: undefined;
|
|
14
|
+
programAnnotation: {};
|
|
15
|
+
} | {
|
|
16
|
+
notificacao: any;
|
|
17
|
+
usuarioLogado: {};
|
|
18
|
+
loading: boolean;
|
|
19
|
+
processos: never[];
|
|
20
|
+
favorites: never[];
|
|
21
|
+
initialPage: string;
|
|
22
|
+
fields: {};
|
|
23
|
+
block: boolean;
|
|
24
|
+
vldPsw: boolean;
|
|
25
|
+
sidebar: boolean;
|
|
26
|
+
rightSidebar: boolean;
|
|
27
|
+
addProgramWidget: undefined;
|
|
28
|
+
programAnnotation: {};
|
|
29
|
+
} | {
|
|
30
|
+
currentProgram: string;
|
|
31
|
+
usuarioLogado: {};
|
|
32
|
+
loading: boolean;
|
|
33
|
+
processos: never[];
|
|
34
|
+
favorites: never[];
|
|
35
|
+
initialPage: string;
|
|
36
|
+
fields: {};
|
|
37
|
+
block: boolean;
|
|
38
|
+
vldPsw: boolean;
|
|
39
|
+
sidebar: boolean;
|
|
40
|
+
rightSidebar: boolean;
|
|
41
|
+
addProgramWidget: undefined;
|
|
42
|
+
programAnnotation: {};
|
|
43
|
+
} | {
|
|
44
|
+
fields: any;
|
|
45
|
+
usuarioLogado: {};
|
|
46
|
+
loading: boolean;
|
|
47
|
+
processos: never[];
|
|
48
|
+
favorites: never[];
|
|
49
|
+
initialPage: string;
|
|
50
|
+
block: boolean;
|
|
51
|
+
vldPsw: boolean;
|
|
52
|
+
sidebar: boolean;
|
|
53
|
+
rightSidebar: boolean;
|
|
54
|
+
addProgramWidget: undefined;
|
|
55
|
+
programAnnotation: {};
|
|
56
|
+
} | {
|
|
57
|
+
favorites: any[];
|
|
58
|
+
usuarioLogado: {};
|
|
59
|
+
loading: boolean;
|
|
60
|
+
processos: never[];
|
|
61
|
+
initialPage: string;
|
|
62
|
+
fields: {};
|
|
63
|
+
block: boolean;
|
|
64
|
+
vldPsw: boolean;
|
|
65
|
+
sidebar: boolean;
|
|
66
|
+
rightSidebar: boolean;
|
|
67
|
+
addProgramWidget: undefined;
|
|
68
|
+
programAnnotation: {};
|
|
69
|
+
} | {
|
|
70
|
+
addProgramWidget: any;
|
|
71
|
+
usuarioLogado: {};
|
|
72
|
+
loading: boolean;
|
|
73
|
+
processos: never[];
|
|
74
|
+
favorites: never[];
|
|
75
|
+
initialPage: string;
|
|
76
|
+
fields: {};
|
|
77
|
+
block: boolean;
|
|
78
|
+
vldPsw: boolean;
|
|
79
|
+
sidebar: boolean;
|
|
80
|
+
rightSidebar: boolean;
|
|
81
|
+
programAnnotation: {};
|
|
82
|
+
} | {
|
|
83
|
+
mensagensNaoLidas: number;
|
|
84
|
+
usuarioLogado: {};
|
|
85
|
+
loading: boolean;
|
|
86
|
+
processos: never[];
|
|
87
|
+
favorites: never[];
|
|
88
|
+
initialPage: string;
|
|
89
|
+
fields: {};
|
|
90
|
+
block: boolean;
|
|
91
|
+
vldPsw: boolean;
|
|
92
|
+
sidebar: boolean;
|
|
93
|
+
rightSidebar: boolean;
|
|
94
|
+
addProgramWidget: undefined;
|
|
95
|
+
programAnnotation: {};
|
|
96
|
+
};
|
|
97
|
+
}, import("../types").ActionType, Partial<{
|
|
2
98
|
argous: never;
|
|
3
|
-
}
|
|
99
|
+
}>>;
|
|
4
100
|
export default reducers;
|
package/dist/utils/api.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35,16 +35,35 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
39
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
40
|
+
if (ar || !(i in from)) {
|
|
41
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
42
|
+
ar[i] = from[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
|
+
};
|
|
38
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getUrlParameters = exports.
|
|
48
|
+
exports.getUrlParameters = exports.serverAction = exports.enableDebugger = exports.setServerValue = exports.getServerValue = void 0;
|
|
49
|
+
exports.setAlert = setAlert;
|
|
50
|
+
exports.setError = setError;
|
|
51
|
+
exports.setSuccess = setSuccess;
|
|
52
|
+
exports.setInfo = setInfo;
|
|
53
|
+
exports.setWarning = setWarning;
|
|
54
|
+
exports.sendNotification = sendNotification;
|
|
40
55
|
var config_1 = require("./config");
|
|
41
56
|
var store_1 = require("./store");
|
|
42
57
|
var api_1 = require("../api");
|
|
43
58
|
var fieldsRedux_1 = require("../fieldsRedux");
|
|
44
|
-
var getCurrentProgram = function (
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
var getCurrentProgram = function () {
|
|
60
|
+
var args_1 = [];
|
|
61
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
62
|
+
args_1[_i] = arguments[_i];
|
|
63
|
+
}
|
|
64
|
+
return __awaiter(void 0, __spreadArray([], args_1, true), void 0, function (n) {
|
|
47
65
|
var state, currentProgram;
|
|
66
|
+
if (n === void 0) { n = 0; }
|
|
48
67
|
return __generator(this, function (_a) {
|
|
49
68
|
state = (0, store_1.getStore)().getState();
|
|
50
69
|
currentProgram = state.argous.currentProgram;
|
|
@@ -127,10 +146,14 @@ var enableDebugger = function () {
|
|
|
127
146
|
debuging = true;
|
|
128
147
|
};
|
|
129
148
|
exports.enableDebugger = enableDebugger;
|
|
130
|
-
var serverAction = function (
|
|
131
|
-
|
|
132
|
-
|
|
149
|
+
var serverAction = function (metodo_1) {
|
|
150
|
+
var args_1 = [];
|
|
151
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
152
|
+
args_1[_i - 1] = arguments[_i];
|
|
153
|
+
}
|
|
154
|
+
return __awaiter(void 0, __spreadArray([metodo_1], args_1, true), void 0, function (metodo, dados, pgCode, tratarErro, token) {
|
|
133
155
|
var code, tErro, currentProgram, _a, data, res;
|
|
156
|
+
if (dados === void 0) { dados = {}; }
|
|
134
157
|
return __generator(this, function (_b) {
|
|
135
158
|
switch (_b.label) {
|
|
136
159
|
case 0:
|
|
@@ -187,42 +210,36 @@ function setAlert(mensagem, type, title, time) {
|
|
|
187
210
|
(0, fieldsRedux_1.setAnotherProgramField)('systemTopAlert', { mensagem: mensagem, type: type, title: title, time: time }, 'argousSystem');
|
|
188
211
|
}, 0);
|
|
189
212
|
}
|
|
190
|
-
exports.setAlert = setAlert;
|
|
191
213
|
function setError(mensagem, title) {
|
|
192
214
|
if (title === void 0) { title = 'Erro'; }
|
|
193
215
|
setTimeout(function () {
|
|
194
216
|
(0, fieldsRedux_1.setAnotherProgramField)('systemTopAlert', { mensagem: mensagem, type: 'error', title: title }, 'argousSystem');
|
|
195
217
|
}, 0);
|
|
196
218
|
}
|
|
197
|
-
exports.setError = setError;
|
|
198
219
|
function setSuccess(mensagem, title, time) {
|
|
199
220
|
if (time === void 0) { time = 5000; }
|
|
200
221
|
setTimeout(function () {
|
|
201
222
|
(0, fieldsRedux_1.setAnotherProgramField)('systemTopAlert', { mensagem: mensagem, type: 'success', title: title, time: time }, 'argousSystem');
|
|
202
223
|
}, 0);
|
|
203
224
|
}
|
|
204
|
-
exports.setSuccess = setSuccess;
|
|
205
225
|
function setInfo(mensagem, title, time) {
|
|
206
226
|
if (time === void 0) { time = 5000; }
|
|
207
227
|
setTimeout(function () {
|
|
208
228
|
(0, fieldsRedux_1.setAnotherProgramField)('systemTopAlert', { mensagem: mensagem, type: 'info', title: title, time: time }, 'argousSystem');
|
|
209
229
|
}, 0);
|
|
210
230
|
}
|
|
211
|
-
exports.setInfo = setInfo;
|
|
212
231
|
function setWarning(mensagem, title, time) {
|
|
213
232
|
if (time === void 0) { time = 5000; }
|
|
214
233
|
setTimeout(function () {
|
|
215
234
|
(0, fieldsRedux_1.setAnotherProgramField)('systemTopAlert', { mensagem: mensagem, type: 'warning', title: title, time: time }, 'argousSystem');
|
|
216
235
|
}, 0);
|
|
217
236
|
}
|
|
218
|
-
exports.setWarning = setWarning;
|
|
219
237
|
function sendNotification(_a) {
|
|
220
238
|
var id = _a.id, mensagem = _a.mensagem, title = _a.title, type = _a.type, link = _a.link, dsLabel = _a.dsLabel;
|
|
221
239
|
setTimeout(function () {
|
|
222
240
|
(0, fieldsRedux_1.setAnotherProgramField)('systemTopAlert', { type: 'notification', id: id, mensagem: mensagem, title: title, link: link, dsLabel: dsLabel, icon: type }, 'argousSystem');
|
|
223
241
|
}, 0);
|
|
224
242
|
}
|
|
225
|
-
exports.sendNotification = sendNotification;
|
|
226
243
|
var getUrlVars = function () {
|
|
227
244
|
var vars = {};
|
|
228
245
|
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (_, key, value) {
|
package/dist/utils/config.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.setConfig = setConfig;
|
|
4
|
+
exports.getConfig = getConfig;
|
|
4
5
|
var config;
|
|
5
6
|
function setConfig(providedConfig, callback) {
|
|
6
7
|
config = providedConfig;
|
|
7
8
|
callback && callback();
|
|
8
9
|
}
|
|
9
|
-
exports.setConfig = setConfig;
|
|
10
10
|
function getConfig() {
|
|
11
11
|
return config;
|
|
12
12
|
}
|
|
13
|
-
exports.getConfig = getConfig;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BasicModalProps } from '../components';
|
|
1
2
|
import { ActionType, ArgousType } from '../types';
|
|
2
3
|
import { ChartOptions } from 'chart.js';
|
|
3
|
-
import { BasicModalProps } from 'lib/components';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export declare const widthToCenterVertically: (content: number) => number;
|
|
6
6
|
export declare const getCookie: (cName: string) => string;
|
|
@@ -21,7 +21,7 @@ export declare const printPdf: (URL?: string) => Promise<void>;
|
|
|
21
21
|
export declare const getRandomColor: () => string;
|
|
22
22
|
export declare const getInitials: (nome?: string) => string;
|
|
23
23
|
export declare const getNumeroFromInitials: (initials: string, length: number) => number;
|
|
24
|
-
export declare const usePrevious: (value: any) =>
|
|
24
|
+
export declare const usePrevious: (value: any) => any;
|
|
25
25
|
/**
|
|
26
26
|
* Igual o useEffect, mas não ativa quando o componente monta
|
|
27
27
|
*
|
|
@@ -51,7 +51,7 @@ export declare const randomColor: () => string;
|
|
|
51
51
|
* @returns {ChartOptions} - retorno com tema ajustado
|
|
52
52
|
*/
|
|
53
53
|
export declare const useGraph: ({ title, legend: { labels, ...legend }, plugins: { datalabels, ...plugins }, scales: { yAxes: [{ ticks: yticks, gridLines: ygridLines, ...yAxes }, ...y], xAxes: [{ ticks: xticks, gridLines: xgridLines, ...xAxes }, ...x], ...scales }, ...props }?: ChartOptions) => ChartOptions;
|
|
54
|
-
export declare const useModal: () => import("
|
|
54
|
+
export declare const useModal: () => import("../components").ModalProviderContextProps;
|
|
55
55
|
export declare const useStore: () => ArgousType;
|
|
56
56
|
export declare const reduxDispatch: (action: ActionType) => void;
|
|
57
57
|
export declare const formataTelefone: (value: string) => string;
|