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,264 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
34
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
36
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
37
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
38
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
42
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
43
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
44
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
45
|
+
function step(op) {
|
|
46
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
47
|
+
while (_) try {
|
|
48
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
49
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
50
|
+
switch (op[0]) {
|
|
51
|
+
case 0: case 1: t = op; break;
|
|
52
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
53
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
54
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
55
|
+
default:
|
|
56
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
57
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
58
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
59
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
60
|
+
if (t[2]) _.ops.pop();
|
|
61
|
+
_.trys.pop(); continue;
|
|
62
|
+
}
|
|
63
|
+
op = body.call(thisArg, _);
|
|
64
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
65
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
69
|
+
var t = {};
|
|
70
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
71
|
+
t[p] = s[p];
|
|
72
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
73
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
75
|
+
t[p[i]] = s[p[i]];
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
};
|
|
79
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
80
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
81
|
+
to[j] = from[i];
|
|
82
|
+
return to;
|
|
83
|
+
};
|
|
84
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
85
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
86
|
+
};
|
|
87
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88
|
+
var MaterialButton_1 = __importDefault(require("../../components/MaterialButton"));
|
|
89
|
+
var utils_1 = require("../../utils");
|
|
90
|
+
var store_1 = require("../../utils/store");
|
|
91
|
+
var moment_1 = __importDefault(require("@date-io/moment"));
|
|
92
|
+
var core_1 = require("@material-ui/core");
|
|
93
|
+
var Autocomplete_1 = __importDefault(require("@material-ui/lab/Autocomplete"));
|
|
94
|
+
var pickers_1 = require("@material-ui/pickers");
|
|
95
|
+
var lodash_1 = require("lodash");
|
|
96
|
+
var moment_2 = __importDefault(require("moment"));
|
|
97
|
+
var react_1 = __importStar(require("react"));
|
|
98
|
+
var md_1 = require("react-icons/md");
|
|
99
|
+
var use_immer_1 = require("use-immer");
|
|
100
|
+
var reducer = function (state, _a) {
|
|
101
|
+
if (state === void 0) { state = {}; }
|
|
102
|
+
var fase = _a.fase, documento = _a.documento, field = _a.field, value = _a.value;
|
|
103
|
+
state[fase][documento][field] = value;
|
|
104
|
+
};
|
|
105
|
+
var init = function (initialValues) { return function (initialState) {
|
|
106
|
+
if (lodash_1.isArray(initialValues) && !lodash_1.isArray(initialValues[0])) {
|
|
107
|
+
return initialState.map(function (fase, i) { return fase.map(function (_, j) { return initialValues[i].documentos[j].values; }); });
|
|
108
|
+
}
|
|
109
|
+
return initialValues;
|
|
110
|
+
}; };
|
|
111
|
+
var FormVisualizer = function (_a) {
|
|
112
|
+
var _b = _a.json, json = _b === void 0 ? {} : _b, _c = _a.initialValues, initialValues = _c === void 0 ? [] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { return ''; } : _d, disabled = _a.disabled;
|
|
113
|
+
var classes = core_1.makeStyles(json.classes)();
|
|
114
|
+
var _f = use_immer_1.useImmerReducer(reducer, json.fases.map(function (fase) { return fase.documentos.map(function (documento) { return documento.linhas.reduce(function (a, linha) { return (__assign(__assign({}, a), linha.colunas.reduce(function (ac, _a) {
|
|
115
|
+
var _b;
|
|
116
|
+
var obj = _a.obj;
|
|
117
|
+
return obj.name ? (__assign(__assign({}, ac), (_b = {}, _b[obj.name] = obj.value, _b))) : ac;
|
|
118
|
+
}, {}))); }, {}); }); }), init(initialValues)), state = _f[0], dispatch = _f[1];
|
|
119
|
+
utils_1.useUpdateEffect(function () {
|
|
120
|
+
onChange(state);
|
|
121
|
+
}, [state]);
|
|
122
|
+
return (react_1.default.createElement(core_1.Card, { style: { padding: '10px' } },
|
|
123
|
+
react_1.default.createElement(core_1.Typography, { variant: 'h4', component: 'div', align: 'center', style: { marginBottom: '10px' } }, json.nome),
|
|
124
|
+
json.fases && json.fases.map(function (fase, i) { return (react_1.default.createElement(core_1.Card, { key: fase.idFase, className: classes[fase.className], style: __assign(__assign({}, fase.style), { padding: '10px', margin: '10px' }) },
|
|
125
|
+
react_1.default.createElement(core_1.Typography, { variant: 'h5', component: 'div', align: 'center', style: { marginBottom: '5px' } }, fase.nome),
|
|
126
|
+
fase.documentos.map(function (documento, j) { return (react_1.default.createElement(core_1.Paper, { elevation: 3, key: documento.idDoc, className: classes[documento.className], style: __assign(__assign({}, documento.style), { padding: '10px', margin: '10px' }) },
|
|
127
|
+
react_1.default.createElement(core_1.Typography, { variant: 'h6', component: 'div', align: 'center', style: { marginBottom: '5px' } }, documento.nome),
|
|
128
|
+
documento.linhas.map(function (linha, k) { return (react_1.default.createElement(core_1.Grid, { container: true, spacing: linha.spacing || 2, key: "" + k, className: classes[linha.className], style: linha.style }, linha.colunas.map(function (_a, l) {
|
|
129
|
+
var span = _a.span, className = _a.className, style = _a.style, _b = _a.obj, name = _b.name, obj = __rest(_b, ["name"]);
|
|
130
|
+
return (react_1.default.createElement(core_1.Grid, { item: true, key: l, xs: span, className: classes[className], style: style },
|
|
131
|
+
console.log(state[i][j][name]),
|
|
132
|
+
react_1.default.createElement(RetornaComponente, __assign({ value: obj.value || state[i][j][name], fase: i, documento: j }, __assign(__assign({}, obj), { name: name, dispatch: dispatch, disabled: disabled })))));
|
|
133
|
+
}))); }))); }))); })));
|
|
134
|
+
};
|
|
135
|
+
exports.default = FormVisualizer;
|
|
136
|
+
var RetornaComponente = react_1.memo(function (_a) {
|
|
137
|
+
var tp = _a.tp, name = _a.name, dispatch = _a.dispatch, disabled = _a.disabled, fase = _a.fase, documento = _a.documento, props = __rest(_a, ["tp", "name", "dispatch", "disabled", "fase", "documento"]);
|
|
138
|
+
switch (tp) {
|
|
139
|
+
case 'label':
|
|
140
|
+
return react_1.default.createElement(Label, __assign({ disabled: disabled }, props));
|
|
141
|
+
case 'text':
|
|
142
|
+
return react_1.default.createElement(Text, __assign({ disabled: disabled, dispatch: function (value) { return dispatch({ fase: fase, documento: documento, field: name, value: value }); } }, props));
|
|
143
|
+
case 'data':
|
|
144
|
+
return react_1.default.createElement(Data, __assign({ disabled: disabled, dispatch: function (value) { return dispatch({ fase: fase, documento: documento, field: name, value: value }); } }, props));
|
|
145
|
+
case 'checkBox':
|
|
146
|
+
return react_1.default.createElement(Selection, __assign({ disabled: disabled, dispatch: function (value) { return dispatch({ fase: fase, documento: documento, field: name, value: value }); } }, props));
|
|
147
|
+
case 'assinatura':
|
|
148
|
+
return react_1.default.createElement(Signature, __assign({ disabled: disabled, dispatch: function (value) { return dispatch({ fase: fase, documento: documento, field: name, value: value }); } }, props));
|
|
149
|
+
default:
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}, lodash_1.isEqual);
|
|
153
|
+
var Label = function (_a) {
|
|
154
|
+
var className = _a.className, style = _a.style, value = _a.value, props = __rest(_a, ["className", "style", "value"]);
|
|
155
|
+
return react_1.default.createElement(core_1.Typography, __assign({}, __assign({ className: className, style: style }, props)), value);
|
|
156
|
+
};
|
|
157
|
+
var useStyles = core_1.makeStyles({
|
|
158
|
+
textArea: {
|
|
159
|
+
'& textarea': {
|
|
160
|
+
resize: 'vertical',
|
|
161
|
+
minHeight: '50px'
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
var Text = function (_a) {
|
|
166
|
+
var variant = _a.variant, label = _a.label, multiple = _a.multiple, className = _a.className, style = _a.style, options = _a.options, value = _a.value, dispatch = _a.dispatch, path = _a.path, props = __rest(_a, ["variant", "label", "multiple", "className", "style", "options", "value", "dispatch", "path"]);
|
|
167
|
+
var classes = useStyles();
|
|
168
|
+
if (variant === 'select')
|
|
169
|
+
return (react_1.default.createElement(Autocomplete_1.default, __assign({}, { multiple: multiple, options: options }, { defaultValue: value, limitTags: 1, disableCloseOnSelect: multiple, disablePortal: true, closeText: 'Fechar', clearText: 'Limpar', openText: 'Abrir', onChange: function (_e, value_) {
|
|
170
|
+
dispatch(value_);
|
|
171
|
+
} }, props, { renderInput: function (params) { return (react_1.default.createElement(core_1.TextField, __assign({ variant: 'outlined', margin: 'dense', fullWidth: true }, { label: label, style: style, className: className }, params))); } })));
|
|
172
|
+
return (react_1.default.createElement(core_1.TextField, __assign({ className: classes.textArea + " mostraSpinner " + className, variant: 'outlined', margin: 'dense', fullWidth: true, multiline: variant === 'multiline' }, { label: label, style: style }, { defaultValue: value, onBlur: function (e) {
|
|
173
|
+
e.persist();
|
|
174
|
+
if (e.target.value === value)
|
|
175
|
+
return;
|
|
176
|
+
dispatch(e.target.value);
|
|
177
|
+
} }, props)));
|
|
178
|
+
};
|
|
179
|
+
var Data = function (_a) {
|
|
180
|
+
var label = _a.label, className = _a.className, style = _a.style, value = _a.value, dispatch = _a.dispatch, path = _a.path, props = __rest(_a, ["label", "className", "style", "value", "dispatch", "path"]);
|
|
181
|
+
var _b = react_1.useState(value), state = _b[0], setState = _b[1];
|
|
182
|
+
react_1.useEffect(function () {
|
|
183
|
+
if ((value || undefined) === (lodash_1.isString(state) ? state || undefined : state === null || state === void 0 ? void 0 : state.format('YYYY-MM-DD')))
|
|
184
|
+
return;
|
|
185
|
+
var time = setTimeout(function () {
|
|
186
|
+
dispatch(state ? moment_2.default(state).format('YYYY-MM-DD') : '');
|
|
187
|
+
}, 100);
|
|
188
|
+
return function () { return clearTimeout(time); };
|
|
189
|
+
// eslint-disable-next-line
|
|
190
|
+
}, [state, path]);
|
|
191
|
+
return (react_1.default.createElement(pickers_1.MuiPickersUtilsProvider, { utils: moment_1.default },
|
|
192
|
+
react_1.default.createElement(pickers_1.KeyboardDatePicker, __assign({ fullWidth: true, invalidDateMessage: 'Data inv\u00E1lida', autoOk: true, variant: 'inline', inputVariant: 'outlined', label: 'Data inicial', margin: 'dense', InputAdornmentProps: { position: 'end' }, format: 'DD/MM/YYYY' }, { className: className, label: label, style: style }, props, { value: state || null, onChange: setState }))));
|
|
193
|
+
};
|
|
194
|
+
var Selection = function (_a) {
|
|
195
|
+
var label = _a.label, multiple = _a.multiple, className = _a.className, style = _a.style, options = _a.options, value = _a.value, dispatch = _a.dispatch, path = _a.path, props = __rest(_a, ["label", "multiple", "className", "style", "options", "value", "dispatch", "path"]);
|
|
196
|
+
var _b = react_1.useState(value || (multiple ? [] : '')), state = _b[0], setState = _b[1];
|
|
197
|
+
var atualizaDados = react_1.useCallback(function () {
|
|
198
|
+
dispatch(state);
|
|
199
|
+
// eslint-disable-next-line
|
|
200
|
+
}, [state]);
|
|
201
|
+
utils_1.useUpdateEffect(function () { return atualizaDados(); }, [state, atualizaDados]);
|
|
202
|
+
var changeCheckBox = function (e) {
|
|
203
|
+
if (e.target.checked) {
|
|
204
|
+
setState(__spreadArray(__spreadArray([], state), [e.target.value]));
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
var temp = state;
|
|
208
|
+
temp.splice(temp.indexOf(e.target.value), 1);
|
|
209
|
+
setState(temp);
|
|
210
|
+
}
|
|
211
|
+
atualizaDados();
|
|
212
|
+
};
|
|
213
|
+
if (multiple)
|
|
214
|
+
return (react_1.default.createElement(core_1.Grid, { container: true },
|
|
215
|
+
react_1.default.createElement(core_1.Grid, __assign({ item: true, xs: 12, style: __assign(__assign({}, style), { display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: 5 }) }, { className: className }),
|
|
216
|
+
label && react_1.default.createElement(core_1.FormLabel, { style: { marginBottom: '0px' } }, label),
|
|
217
|
+
react_1.default.createElement(core_1.FormGroup, { row: true, style: { flexGrow: 1, justifyContent: label ? 'flex-end' : 'space-evenly' } }, options.map(function (item, i) { return (react_1.default.createElement(core_1.FormControlLabel, { key: i, value: item, control: react_1.default.createElement(core_1.Checkbox, __assign({ name: item, onChange: changeCheckBox }, { style: style }, props)), label: item, labelPlacement: 'start' })); })))));
|
|
218
|
+
return (react_1.default.createElement(core_1.Grid, { container: true },
|
|
219
|
+
react_1.default.createElement(core_1.Grid, __assign({ item: true, xs: 12, style: __assign(__assign({}, style), { display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: 5 }) }, { className: className }),
|
|
220
|
+
label && react_1.default.createElement(core_1.FormLabel, { style: { marginBottom: '0px' } }, label),
|
|
221
|
+
react_1.default.createElement(core_1.RadioGroup, { row: true, defaultValue: value, onChange: function (e) { return setState(e.target.value); }, style: { flexGrow: 1, justifyContent: label ? 'flex-end' : 'space-evenly' } }, options.map(function (item, i) { return (react_1.default.createElement(core_1.FormControlLabel, { key: i, value: item, control: react_1.default.createElement(core_1.Radio, __assign({}, { style: style }, props)), label: item, labelPlacement: 'start' })); })))));
|
|
222
|
+
};
|
|
223
|
+
var Signature = function (_a) {
|
|
224
|
+
var label = _a.label, grupos = _a.grupos, usuarios = _a.usuarios, className = _a.className, style = _a.style, value = _a.value, dados = _a.dados, setDados = _a.setDados, path = _a.path;
|
|
225
|
+
var usuario = store_1.getStore().getState().argous.usuarioLogado;
|
|
226
|
+
var podeAssinar = (usuarios.filter(function (id) { return id === usuario.idUsuario; })).length > 0;
|
|
227
|
+
var _b = react_1.useState({ modal: false, password: '', showPassword: false, senhaIncorreta: '' }), values = _b[0], setValues = _b[1];
|
|
228
|
+
//action para checar se o usuario é do grupo para poder assinar
|
|
229
|
+
function confirmaAssinatura() {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
231
|
+
var res, temp;
|
|
232
|
+
return __generator(this, function (_a) {
|
|
233
|
+
res = { status: true, hash: 'sdfghil349' };
|
|
234
|
+
if (res.status) {
|
|
235
|
+
setValues(__assign(__assign({}, values), { senhaIncorreta: '' }));
|
|
236
|
+
temp = __assign({}, dados);
|
|
237
|
+
lodash_1.set(temp, path, [usuario.idUsuario, usuario.nome, moment_2.default(new Date()).format('YYYY-MM-DD HH:mm:ss'), res.hash]);
|
|
238
|
+
setDados(temp);
|
|
239
|
+
setValues(__assign(__assign({}, values), { modal: false }));
|
|
240
|
+
}
|
|
241
|
+
else
|
|
242
|
+
setValues(__assign(__assign({}, values), { senhaIncorreta: 'Senha Incorreta!' }));
|
|
243
|
+
return [2 /*return*/];
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
if (value.length > 0)
|
|
248
|
+
return (react_1.default.createElement("div", __assign({}, { className: className }, { style: __assign(__assign({}, style), { height: '50px', display: 'flex', justifyContent: 'flex-end', alignItems: ' flex-end' }) }),
|
|
249
|
+
react_1.default.createElement(core_1.Typography, { title: value[3], variant: 'subtitle2', style: { textAlign: 'right' } }, value[1] + " - " + moment_2.default(value[2]).format('DD/MM/YYYY HH:mm:ss'))));
|
|
250
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
251
|
+
react_1.default.createElement(core_1.Grid, __assign({ container: true, direction: 'row-reverse' }, { className: className, style: style }),
|
|
252
|
+
react_1.default.createElement(core_1.Grid, { item: true, xs: 12, sm: 6, md: 4, lg: 2, xl: 1 },
|
|
253
|
+
react_1.default.createElement(MaterialButton_1.default, { title: label, color: 'primary', variant: 'contained', fullWidth: true, disabled: !podeAssinar, onClick: function () { return setValues(__assign(__assign({}, values), { modal: true })); } }, "Assinar"))),
|
|
254
|
+
react_1.default.createElement(core_1.Dialog, { open: values.modal, onClose: function () { return setValues(__assign(__assign({}, values), { modal: false })); }, style: { padding: '0px 10px 5px' } },
|
|
255
|
+
react_1.default.createElement(core_1.DialogTitle, null, "Confirme sua senha"),
|
|
256
|
+
react_1.default.createElement(core_1.DialogContent, null,
|
|
257
|
+
react_1.default.createElement(core_1.TextField, { variant: 'outlined', label: 'Senha', fullWidth: true, type: values.showPassword ? 'text' : 'password', value: values.password, onChange: function (e) { return setValues(__assign(__assign({}, values), { password: e.target.value })); }, InputProps: {
|
|
258
|
+
endAdornment: (react_1.default.createElement(core_1.InputAdornment, { position: 'end' },
|
|
259
|
+
react_1.default.createElement(core_1.IconButton, { onClick: function () { return setValues(__assign(__assign({}, values), { showPassword: !values.showPassword })); }, onMouseDown: function (e) { return e.preventDefault(); } }, values.showPassword ? react_1.default.createElement(md_1.MdVisibility, null) : react_1.default.createElement(md_1.MdVisibilityOff, null))))
|
|
260
|
+
}, error: !!values.senhaIncorreta, helperText: values.senhaIncorreta })),
|
|
261
|
+
react_1.default.createElement(core_1.DialogActions, null,
|
|
262
|
+
react_1.default.createElement(MaterialButton_1.default, { title: 'Cancelar', color: 'warning', variant: 'contained', fullWidth: true, onClick: function () { return setValues(__assign(__assign({}, values), { modal: false })); } }, "Cancelar"),
|
|
263
|
+
react_1.default.createElement(MaterialButton_1.default, { title: 'Confirmar', color: 'success', variant: 'contained', fullWidth: true, onClick: confirmaAssinatura }, "Confirmar")))));
|
|
264
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var FormVisualizer_1 = require("./FormVisualizer");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(FormVisualizer_1).default; } });
|
|
@@ -0,0 +1,75 @@
|
|
|
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 highlight_js_1 = __importDefault(require("highlight.js"));
|
|
41
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
var react_dom_1 = require("react-dom");
|
|
44
|
+
var HighLight = /** @class */ (function (_super) {
|
|
45
|
+
__extends(HighLight, _super);
|
|
46
|
+
function HighLight() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
HighLight.prototype.componentDidMount = function () {
|
|
50
|
+
highlight_js_1.default.highlightBlock(react_dom_1.findDOMNode(this.refs.code));
|
|
51
|
+
};
|
|
52
|
+
HighLight.prototype.shouldComponentUpdate = function (nextProps) {
|
|
53
|
+
if (this.props.language !== nextProps.language || this.props.className !== nextProps.className || this.props.children !== nextProps.children) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
};
|
|
58
|
+
HighLight.prototype.componentDidUpdate = function () {
|
|
59
|
+
highlight_js_1.default.initHighlighting.called = false;
|
|
60
|
+
highlight_js_1.default.highlightBlock(react_dom_1.findDOMNode(this.refs.code));
|
|
61
|
+
};
|
|
62
|
+
HighLight.prototype.render = function () {
|
|
63
|
+
var _a = this.props, children = _a.children, className = _a.className, language = _a.language, style = _a.style;
|
|
64
|
+
return (react_1.default.createElement("pre", { className: className, style: style },
|
|
65
|
+
react_1.default.createElement("code", { className: language, ref: 'code' }, children)));
|
|
66
|
+
};
|
|
67
|
+
return HighLight;
|
|
68
|
+
}(react_1.Component));
|
|
69
|
+
HighLight.propTypes = {
|
|
70
|
+
children: prop_types_1.default.node.isRequired,
|
|
71
|
+
className: prop_types_1.default.string,
|
|
72
|
+
language: prop_types_1.default.string,
|
|
73
|
+
style: prop_types_1.default.object
|
|
74
|
+
};
|
|
75
|
+
exports.default = HighLight;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Highlight_1 = require("./Highlight");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Highlight_1).default; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DialogProps } from '@material-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface ImageResizeProps extends DialogProps {
|
|
4
|
+
/**
|
|
5
|
+
* Imagem a ser Redimensionada
|
|
6
|
+
*/
|
|
7
|
+
imagem: File,
|
|
8
|
+
/**
|
|
9
|
+
* Funcao chamada quando a imagem termina de ser redimensionada
|
|
10
|
+
*
|
|
11
|
+
* @param {string} urlImagem - Base64 da imagem redimensionada
|
|
12
|
+
*
|
|
13
|
+
* @returns {void} Sem Retorno
|
|
14
|
+
*/
|
|
15
|
+
onImage?: (urlImagem: string) => void,
|
|
16
|
+
/**
|
|
17
|
+
* Propriedades da imagem final
|
|
18
|
+
*
|
|
19
|
+
* @param {number | string} width - Largura da imagem final
|
|
20
|
+
* @param {number | string} height - Altura da imagem final
|
|
21
|
+
* @param {number | string} borderRadius - Raio da imagem final
|
|
22
|
+
*/
|
|
23
|
+
finalImageProperties?: { width:number | string, height: number | string, borderRadius: number | string }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare function ImageResize(props: ImageResizeProps): JSX.Element
|
|
27
|
+
|
|
28
|
+
export default ImageResize;
|