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,331 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
80
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
81
|
+
};
|
|
82
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
83
|
+
var api_1 = require("../../utils/api");
|
|
84
|
+
var core_1 = require("@material-ui/core");
|
|
85
|
+
var lab_1 = require("@material-ui/lab");
|
|
86
|
+
var clsx_1 = __importDefault(require("clsx"));
|
|
87
|
+
var lodash_1 = require("lodash");
|
|
88
|
+
var react_1 = __importStar(require("react"));
|
|
89
|
+
var useStyles = core_1.makeStyles(function (theme) { return ({
|
|
90
|
+
subHeader: {
|
|
91
|
+
display: 'flex',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
justifyContent: 'space-between',
|
|
94
|
+
backgroundColor: theme.palette.background.default,
|
|
95
|
+
height: 25
|
|
96
|
+
},
|
|
97
|
+
divButton: {
|
|
98
|
+
display: 'flex',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
},
|
|
102
|
+
areaButton: {
|
|
103
|
+
padding: '0px 8px 0px 8px'
|
|
104
|
+
},
|
|
105
|
+
button: theme.palette.type === 'light' ? {
|
|
106
|
+
width: 15,
|
|
107
|
+
height: 15,
|
|
108
|
+
display: 'flex',
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
justifyContent: 'center',
|
|
111
|
+
cursor: 'pointer',
|
|
112
|
+
color: 'rgba(0, 0, 0, 0.4)',
|
|
113
|
+
'&:hover': {
|
|
114
|
+
fontWeight: 500,
|
|
115
|
+
color: '#000000',
|
|
116
|
+
}
|
|
117
|
+
} : {
|
|
118
|
+
width: 15,
|
|
119
|
+
height: 15,
|
|
120
|
+
display: 'flex',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
justifyContent: 'center',
|
|
123
|
+
cursor: 'pointer',
|
|
124
|
+
color: 'rgba(255, 255, 255, 0.4)',
|
|
125
|
+
'&:hover': {
|
|
126
|
+
fontWeight: 500,
|
|
127
|
+
color: '#ffffff',
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
buttonActive: theme.palette.type === 'light' ? {
|
|
131
|
+
color: 'rgba(0, 0, 0, 0.8)',
|
|
132
|
+
'&:hover': {
|
|
133
|
+
fontWeight: 600,
|
|
134
|
+
}
|
|
135
|
+
} : {
|
|
136
|
+
color: 'rgba(255, 255, 255, 0.8)',
|
|
137
|
+
'&:hover': {
|
|
138
|
+
fontWeight: 600,
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
listItem: {
|
|
142
|
+
padding: 0,
|
|
143
|
+
width: '100%',
|
|
144
|
+
cursor: 'pointer',
|
|
145
|
+
'&:hover': {
|
|
146
|
+
background: theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.08)'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
listItemText: {
|
|
150
|
+
margin: 0,
|
|
151
|
+
width: '100%',
|
|
152
|
+
direction: 'ltr',
|
|
153
|
+
overflow: 'visible',
|
|
154
|
+
whiteSpace: 'nowrap',
|
|
155
|
+
textOverflow: 'ellipsis',
|
|
156
|
+
padding: '0px 0px 0px 6px',
|
|
157
|
+
},
|
|
158
|
+
box: {
|
|
159
|
+
padding: 0,
|
|
160
|
+
overflowX: 'hidden',
|
|
161
|
+
'&::-webkit-scrollbar': {
|
|
162
|
+
width: 5
|
|
163
|
+
},
|
|
164
|
+
'&::-webkit-scrollbar-track': {
|
|
165
|
+
background: '#0000'
|
|
166
|
+
},
|
|
167
|
+
'&::-webkit-scrollbar-thumb': {
|
|
168
|
+
background: theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.1)' : 'rgba(255, 255, 255, 0.1)'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}); });
|
|
172
|
+
var CustomTooltip = core_1.withStyles(function (theme) { return ({
|
|
173
|
+
tooltip: theme.palette.type === 'light' ? {
|
|
174
|
+
fontSize: 15,
|
|
175
|
+
fontWeight: 400,
|
|
176
|
+
color: 'rgb(255, 255, 255)',
|
|
177
|
+
backgroundColor: '#333333e3',
|
|
178
|
+
} : {
|
|
179
|
+
fontSize: 15,
|
|
180
|
+
fontWeight: 400,
|
|
181
|
+
color: 'rgb(0, 0, 0)',
|
|
182
|
+
backgroundColor: '#fbfbfbd1',
|
|
183
|
+
},
|
|
184
|
+
arrow: {
|
|
185
|
+
color: theme.palette.type === 'light' ? '#333333e3' : '#fbfbfbd1'
|
|
186
|
+
}
|
|
187
|
+
}); })(core_1.Tooltip);
|
|
188
|
+
var ListboxFavorites = react_1.forwardRef(function (props, ref) {
|
|
189
|
+
var classes = useStyles();
|
|
190
|
+
var children = props.children, favoritePage = props.favoritePage, dados = props.dados, setDados = props.setDados, groupHeaderColor = props.groupHeaderColor, groupTitleColor = props.groupTitleColor;
|
|
191
|
+
var pageNumber = dados.pageNumber, favoritosLength = dados.favoritosLength, direction = dados.direction, slide = dados.slide;
|
|
192
|
+
function retornaInicio() {
|
|
193
|
+
switch (pageNumber) {
|
|
194
|
+
case 1:
|
|
195
|
+
return 0;
|
|
196
|
+
case 2:
|
|
197
|
+
return 7;
|
|
198
|
+
case 3:
|
|
199
|
+
return 14;
|
|
200
|
+
default: return;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
function retornaFim() {
|
|
204
|
+
switch (pageNumber) {
|
|
205
|
+
case 1:
|
|
206
|
+
return 7;
|
|
207
|
+
case 2:
|
|
208
|
+
return 14;
|
|
209
|
+
case 3:
|
|
210
|
+
return favoritosLength;
|
|
211
|
+
default: return;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function retornaArray(sectionIndex, section) {
|
|
215
|
+
if (sectionIndex === 0 && favoritePage && favoritosLength > 7)
|
|
216
|
+
return section.props.children[1].props.children.slice(retornaInicio(), retornaFim());
|
|
217
|
+
return section.props.children[1].props.children;
|
|
218
|
+
}
|
|
219
|
+
function retornaEstrutura(sectionIndex, item) {
|
|
220
|
+
if (sectionIndex === 0 && favoritePage && favoritosLength > 7) {
|
|
221
|
+
return (react_1.default.createElement(core_1.Slide, { in: slide, direction: direction },
|
|
222
|
+
react_1.default.createElement(CustomTooltip, { title: item.props.children, arrow: true, enterDelay: '1000', enterNextDelay: '1000', placement: 'top-end', TransitionComponent: core_1.Fade, TransitionProps: { timeout: { enter: 100, exit: 500 } } },
|
|
223
|
+
react_1.default.createElement(core_1.ListItem, __assign({}, item.props, { key: item.key, className: classes.listItem }),
|
|
224
|
+
react_1.default.createElement(core_1.ListItemText, { primary: item.props.children, className: classes.listItemText })))));
|
|
225
|
+
}
|
|
226
|
+
return (react_1.default.createElement(CustomTooltip, { title: item.props.children, arrow: true, enterDelay: '1000', enterNextDelay: '1000', placement: 'top-end', TransitionComponent: core_1.Fade, TransitionProps: { timeout: { enter: 100, exit: 500 } } },
|
|
227
|
+
react_1.default.createElement(core_1.ListItem, __assign({}, item.props, { key: item.key, className: classes.listItem }),
|
|
228
|
+
react_1.default.createElement(core_1.ListItemText, { primary: item.props.children, className: classes.listItemText }))));
|
|
229
|
+
}
|
|
230
|
+
function buttonClick(evento, value) {
|
|
231
|
+
evento.preventDefault();
|
|
232
|
+
evento.stopPropagation();
|
|
233
|
+
if (value !== pageNumber) {
|
|
234
|
+
verificaSaidaSlide(value);
|
|
235
|
+
setDados(function (v) { return (__assign(__assign({}, v), { slide: false })); });
|
|
236
|
+
setTimeout(function () {
|
|
237
|
+
setDados(function (v) { return (__assign(__assign({}, v), { pageNumber: value, direction: retornaDirection(value) })); });
|
|
238
|
+
setTimeout(function () { return setDados(function (v) { return (__assign(__assign({}, v), { slide: true })); }); }, 100);
|
|
239
|
+
}, 200);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function verificaSaidaSlide(value) {
|
|
243
|
+
var direction = '';
|
|
244
|
+
if ((value === 2 || value === 3) && pageNumber === 1)
|
|
245
|
+
direction = 'right';
|
|
246
|
+
else if (value === 3 && pageNumber === 2)
|
|
247
|
+
direction = 'right';
|
|
248
|
+
else if (value === 1 && pageNumber === 2)
|
|
249
|
+
direction = 'left';
|
|
250
|
+
direction && setDados(function (v) { return (__assign(__assign({}, v), { direction: direction })); });
|
|
251
|
+
}
|
|
252
|
+
function retornaDirection(value) {
|
|
253
|
+
if (value < pageNumber)
|
|
254
|
+
return 'right';
|
|
255
|
+
return 'left';
|
|
256
|
+
}
|
|
257
|
+
return children.map(function (section, sectionIndex) {
|
|
258
|
+
var _a, _b, _c;
|
|
259
|
+
return (react_1.default.createElement("ul", __assign({}, props, { className: clsx_1.default('MuiAutocomplete-listbox', classes.box) }),
|
|
260
|
+
react_1.default.createElement(core_1.ListSubheader, { className: classes.subHeader, style: { backgroundColor: groupHeaderColor === null || groupHeaderColor === void 0 ? void 0 : groupHeaderColor[sectionIndex], color: groupTitleColor === null || groupTitleColor === void 0 ? void 0 : groupTitleColor[sectionIndex] } },
|
|
261
|
+
section.props.children[0].props.children,
|
|
262
|
+
react_1.default.createElement(core_1.Fade, { in: sectionIndex === 0 && favoritePage && favoritosLength > 7 },
|
|
263
|
+
react_1.default.createElement("div", { className: classes.divButton },
|
|
264
|
+
react_1.default.createElement("div", { className: classes.areaButton },
|
|
265
|
+
react_1.default.createElement("div", { onClick: function (e) { return buttonClick(e, 1); }, className: clsx_1.default((_a = {}, _a[classes.buttonActive] = pageNumber === 1, _a), classes.button) }, "1")),
|
|
266
|
+
react_1.default.createElement("div", { className: classes.areaButton },
|
|
267
|
+
react_1.default.createElement("div", { onClick: function (e) { return buttonClick(e, 2); }, className: clsx_1.default((_b = {}, _b[classes.buttonActive] = pageNumber === 2, _b), classes.button) }, "2")),
|
|
268
|
+
favoritosLength > 14 &&
|
|
269
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
270
|
+
react_1.default.createElement("div", { className: classes.areaButton },
|
|
271
|
+
react_1.default.createElement("div", { onClick: function (e) { return buttonClick(e, 3); }, className: clsx_1.default((_c = {}, _c[classes.buttonActive] = pageNumber === 3, _c), classes.button) }, "3")))))),
|
|
272
|
+
retornaArray(sectionIndex, section).map(function (item, itemIndex) { return retornaEstrutura(sectionIndex, item); })));
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
var AutoCompleteFavorites = function (_a) {
|
|
276
|
+
var action = _a.action, busca = _a.busca, resposta = _a.resposta, label = _a.label, value = _a.value, pgCode = _a.pgCode, favoritePage = _a.favoritePage, groupName = _a.groupName, groupHeaderColor = _a.groupHeaderColor, groupTitleColor = _a.groupTitleColor, loadingColor = _a.loadingColor, filterFunction = _a.filterFunction, getOptionLabel = _a.getOptionLabel, _b = _a.onChange, onChange = _b === void 0 ? function (e) { return e; } : _b, _c = _a.textFieldProps, textFieldProps = _c === void 0 ? {} : _c, searchParams = _a.searchParams, props = __rest(_a, ["action", "busca", "resposta", "label", "value", "pgCode", "favoritePage", "groupName", "groupHeaderColor", "groupTitleColor", "loadingColor", "filterFunction", "getOptionLabel", "onChange", "textFieldProps", "searchParams"]);
|
|
277
|
+
var _d = react_1.useState({
|
|
278
|
+
lista: [],
|
|
279
|
+
slide: true,
|
|
280
|
+
direction: '',
|
|
281
|
+
favoritosLength: '',
|
|
282
|
+
pageNumber: favoritePage ? 1 : '',
|
|
283
|
+
}), dados = _d[0], setDados = _d[1];
|
|
284
|
+
var _e = react_1.useState(false), loading = _e[0], setLoading = _e[1];
|
|
285
|
+
var _f = react_1.useState(''), inputValue = _f[0], setInputValue = _f[1];
|
|
286
|
+
var buscar = react_1.useCallback(function (valor) { return __awaiter(void 0, void 0, void 0, function () {
|
|
287
|
+
var res;
|
|
288
|
+
var _a;
|
|
289
|
+
var _b;
|
|
290
|
+
return __generator(this, function (_c) {
|
|
291
|
+
switch (_c.label) {
|
|
292
|
+
case 0:
|
|
293
|
+
setLoading(true);
|
|
294
|
+
return [4 /*yield*/, api_1.serverAction(action, __assign((_a = {}, _a[busca] = valor || inputValue, _a), searchParams), true, pgCode)];
|
|
295
|
+
case 1:
|
|
296
|
+
res = _c.sent();
|
|
297
|
+
if (((_b = res[resposta || 'result']) === null || _b === void 0 ? void 0 : _b.length) > 1)
|
|
298
|
+
carimbaLista(res[resposta || 'result']);
|
|
299
|
+
else if (res[resposta || 'result'])
|
|
300
|
+
setDados(function (v) { return (__assign(__assign({}, v), { lista: res[resposta || 'result'] || [] })); });
|
|
301
|
+
else
|
|
302
|
+
api_1.setError('Erro ao tentar buscar dados.');
|
|
303
|
+
setLoading(false);
|
|
304
|
+
return [2 /*return*/];
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}); }, [inputValue, searchParams]);
|
|
308
|
+
function carimbaLista(lista) {
|
|
309
|
+
var completo = [];
|
|
310
|
+
lista.map(function (arr, index) {
|
|
311
|
+
index === 0 && favoritePage && setDados(function (v) { return (__assign(__assign({}, v), { favoritosLength: arr.length })); });
|
|
312
|
+
return arr.map(function (itemArr) { return itemArr.length < 3 && itemArr.push(groupName[index]); });
|
|
313
|
+
});
|
|
314
|
+
lista.forEach(function (v) {
|
|
315
|
+
for (var _i = 0, _a = v.values(); _i < _a.length; _i++) {
|
|
316
|
+
var item = _a[_i];
|
|
317
|
+
completo.push(item);
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
setDados(function (v) { return (__assign(__assign({}, v), { lista: completo })); });
|
|
321
|
+
}
|
|
322
|
+
react_1.useEffect(function () { return buscar(); }, [inputValue, buscar]);
|
|
323
|
+
react_1.useEffect(function () { return lodash_1.isString(value) && buscar(value); }, []);
|
|
324
|
+
return (react_1.default.createElement(lab_1.Autocomplete, __assign({ autoComplete: true, autoHighlight: true, openText: 'Abrir', clearText: 'Limpar', filterSelectedOptions: true, onInputChange: function (e) { var _a; return setInputValue(((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) || ''); }, options: lodash_1.isObject(value) ? dados === null || dados === void 0 ? void 0 : dados.lista.filter(function (v) { return filterFunction ? filterFunction(v, value) : true || v[0] !== value[0]; }) : dados === null || dados === void 0 ? void 0 : dados.lista, getOptionLabel: getOptionLabel && (function (option) { return getOptionLabel(option, dados === null || dados === void 0 ? void 0 : dados.lista); }), getOptionSelected: function (o, v) { return o[0] === v; }, renderTags: function (value, getTagProps) {
|
|
325
|
+
return value.map(function (option, index) { return (react_1.default.createElement(core_1.Chip, __assign({ variant: 'outlined', size: 'small', label: option }, getTagProps({ index: index })))); });
|
|
326
|
+
}, renderInput: function (params) { return (react_1.default.createElement(core_1.TextField, __assign({ margin: 'dense', variant: 'outlined', label: label }, params, textFieldProps, { InputProps: __assign(__assign(__assign({}, textFieldProps.InputProps), params.InputProps), { endAdornment: (react_1.default.createElement(react_1.default.Fragment, null,
|
|
327
|
+
params.InputProps.endAdornment,
|
|
328
|
+
react_1.default.createElement(core_1.Fade, { in: loading },
|
|
329
|
+
react_1.default.createElement(core_1.CircularProgress, { disableShrink: true, color: loadingColor || 'inherit', size: 20 })))) }) }))); } }, props, { value: value, onChange: onChange }, { ListboxComponent: ListboxFavorites, ListboxProps: { dados: dados, setDados: setDados, favoritePage: favoritePage, groupHeaderColor: groupHeaderColor, groupTitleColor: groupTitleColor } })));
|
|
330
|
+
};
|
|
331
|
+
exports.default = AutoCompleteFavorites;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./AutoCompleteFavorites";
|
|
@@ -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 AutoCompleteFavorites_1 = require("./AutoCompleteFavorites");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AutoCompleteFavorites_1).default; } });
|
|
@@ -0,0 +1,125 @@
|
|
|
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 chart_js_1 = __importDefault(require("chart.js"));
|
|
41
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
46
|
+
var BarChart = /** @class */ (function (_super) {
|
|
47
|
+
__extends(BarChart, _super);
|
|
48
|
+
function BarChart() {
|
|
49
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
50
|
+
_this.componentDidMount = function () {
|
|
51
|
+
var _a = _this.props, _b = _a.labels, labels = _b === void 0 ? [] : _b, _c = _a.datasets, datasets = _c === void 0 ? [] : _c, horizontal = _a.horizontal, percentage = _a.percentage, maxTicksLimit = _a.maxTicksLimit, stepSize = _a.stepSize, _d = _a.scaleLabel, scaleLabel = _d === void 0 ? {} : _d, _e = _a.title, title = _e === void 0 ? { display: false } : _e, _f = _a.legend, legend = _f === void 0 ? false : _f, _g = _a.tooltip, tooltip = _g === void 0 ? false : _g, stacked = _a.stacked, onClick = _a.onClick;
|
|
52
|
+
var chart = new chart_js_1.default(_this.canv, {
|
|
53
|
+
type: horizontal ? 'horizontalBar' : 'bar',
|
|
54
|
+
data: {
|
|
55
|
+
labels: labels,
|
|
56
|
+
datasets: datasets
|
|
57
|
+
},
|
|
58
|
+
options: {
|
|
59
|
+
maintainAspectRatio: false,
|
|
60
|
+
events: ['click'],
|
|
61
|
+
onClick: !onClick ? undefined : function (event, context) {
|
|
62
|
+
var activeElement = chart.getElementAtEvent(event);
|
|
63
|
+
if (activeElement.length > 0) {
|
|
64
|
+
var datasetIndex = activeElement[0]._datasetIndex;
|
|
65
|
+
var index = activeElement[0]._index;
|
|
66
|
+
var value = chart.data.datasets[activeElement[0]._datasetIndex].data[activeElement[0]._index];
|
|
67
|
+
var label = labels[activeElement[0]._index];
|
|
68
|
+
onClick(datasetIndex, index, value, label);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
scales: {
|
|
72
|
+
xAxes: [{
|
|
73
|
+
stacked: stacked
|
|
74
|
+
}],
|
|
75
|
+
yAxes: [{
|
|
76
|
+
ticks: {
|
|
77
|
+
suggestedMax: percentage ? 100 : undefined,
|
|
78
|
+
maxTicksLimit: maxTicksLimit,
|
|
79
|
+
stepSize: stepSize,
|
|
80
|
+
beginAtZero: true,
|
|
81
|
+
},
|
|
82
|
+
scaleLabel: scaleLabel,
|
|
83
|
+
stacked: stacked
|
|
84
|
+
}]
|
|
85
|
+
},
|
|
86
|
+
title: title,
|
|
87
|
+
legend: {
|
|
88
|
+
display: legend
|
|
89
|
+
},
|
|
90
|
+
tooltips: {
|
|
91
|
+
enabled: tooltip
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
return _this;
|
|
97
|
+
}
|
|
98
|
+
BarChart.prototype.render = function () {
|
|
99
|
+
var _this = this;
|
|
100
|
+
var height = this.props.height;
|
|
101
|
+
return (react_1.default.createElement("div", { style: { position: 'relative', height: height } },
|
|
102
|
+
react_1.default.createElement("canvas", { ref: function (canv) {
|
|
103
|
+
_this.canv = canv;
|
|
104
|
+
} })));
|
|
105
|
+
};
|
|
106
|
+
return BarChart;
|
|
107
|
+
}(react_1.Component));
|
|
108
|
+
BarChart.propTypes = {
|
|
109
|
+
height: prop_types_1.default.number,
|
|
110
|
+
labels: prop_types_1.default.array,
|
|
111
|
+
datasets: prop_types_1.default.array,
|
|
112
|
+
horizontal: prop_types_1.default.bool,
|
|
113
|
+
percentage: prop_types_1.default.bool,
|
|
114
|
+
maxTicksLimit: prop_types_1.default.number,
|
|
115
|
+
stepSize: prop_types_1.default.number,
|
|
116
|
+
scaleLabel: prop_types_1.default.object,
|
|
117
|
+
title: prop_types_1.default.object,
|
|
118
|
+
legend: prop_types_1.default.bool,
|
|
119
|
+
tooltip: prop_types_1.default.bool,
|
|
120
|
+
stacked: prop_types_1.default.bool,
|
|
121
|
+
prefix: prop_types_1.default.string,
|
|
122
|
+
suffix: prop_types_1.default.string,
|
|
123
|
+
onClick: prop_types_1.default.func
|
|
124
|
+
};
|
|
125
|
+
exports.default = BarChart;
|
|
@@ -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 BarChart_1 = require("./BarChart");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(BarChart_1).default; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconType } from 'react-icons';
|
|
2
|
+
|
|
3
|
+
export interface BarraFerramentasProps {
|
|
4
|
+
titulo?: string,
|
|
5
|
+
abas?: [string, 'active' | undefined][],
|
|
6
|
+
ferramentas?: [IconType, string, string | (() => void) ][][],
|
|
7
|
+
habCrud?: boolean,
|
|
8
|
+
habNavegador?: boolean,
|
|
9
|
+
nmFuncaoVoltar?: string,
|
|
10
|
+
nmCompartilhar?: string,
|
|
11
|
+
linkCompartilhamento?: string,
|
|
12
|
+
threads?: Array<any>,
|
|
13
|
+
currentProgram?: string,
|
|
14
|
+
nmSalva?: string,
|
|
15
|
+
nmExclui?: string,
|
|
16
|
+
executaFuncao?: (prm: string) => void,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare function BarraFerramentas(props: BarraFerramentasProps): JSX.Element
|
|
20
|
+
|
|
21
|
+
export default BarraFerramentas;
|