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,578 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
31
|
+
}) : (function(o, m, k, k2) {
|
|
32
|
+
if (k2 === undefined) k2 = k;
|
|
33
|
+
o[k2] = m[k];
|
|
34
|
+
}));
|
|
35
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
36
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
37
|
+
}) : function(o, v) {
|
|
38
|
+
o["default"] = v;
|
|
39
|
+
});
|
|
40
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
var fieldsRedux_1 = require("../../fieldsRedux");
|
|
52
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
53
|
+
var react_1 = __importStar(require("react"));
|
|
54
|
+
var react_maskedinput_1 = __importDefault(require("react-maskedinput"));
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
var ArgousInput = /** @class */ (function (_super) {
|
|
59
|
+
__extends(ArgousInput, _super);
|
|
60
|
+
function ArgousInput() {
|
|
61
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62
|
+
_this.confs = '';
|
|
63
|
+
_this.styleDiv1 = {
|
|
64
|
+
borderBottomColor: 'rgba(0, 0, 0, 0.87)',
|
|
65
|
+
borderBottomStyle: 'none',
|
|
66
|
+
borderBottomWidth: '0px',
|
|
67
|
+
borderImageOutset: '0px',
|
|
68
|
+
borderImageTepeat: 'stretch',
|
|
69
|
+
borderImageSlice: '100%',
|
|
70
|
+
borderImageSource: 'none',
|
|
71
|
+
borderImageWidth: 1,
|
|
72
|
+
borderLeftColor: 'rgba(0, 0, 0, 0.87)',
|
|
73
|
+
borderLeftStyle: 'none',
|
|
74
|
+
borderLeftWidth: '0px',
|
|
75
|
+
borderRightColor: 'rgba(0, 0, 0, 0.87)',
|
|
76
|
+
borderRightStyle: 'none',
|
|
77
|
+
borderRightWidth: '0px',
|
|
78
|
+
borderTopColor: 'rgba(0, 0, 0, 0.87)',
|
|
79
|
+
borderTopStyle: 'none',
|
|
80
|
+
borderTopWidth: '0px',
|
|
81
|
+
boxSizing: 'borderBox',
|
|
82
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
83
|
+
display: 'inlineFlex',
|
|
84
|
+
flexDirection: 'column',
|
|
85
|
+
fontFamily: 'Roboto, Helvetica, Arial, sansSerif',
|
|
86
|
+
fontSize: '14px',
|
|
87
|
+
fontWeight: 400,
|
|
88
|
+
height: '56px',
|
|
89
|
+
letterSpacing: '0.14994px',
|
|
90
|
+
lineHeight: '20.02px',
|
|
91
|
+
marginBottom: '8px',
|
|
92
|
+
marginLeft: '0px',
|
|
93
|
+
marginRight: '0px',
|
|
94
|
+
marginTop: '8px',
|
|
95
|
+
minWidth: '0px',
|
|
96
|
+
paddingBottom: '0px',
|
|
97
|
+
paddingLeft: '0px',
|
|
98
|
+
paddingTight: '0px',
|
|
99
|
+
paddingTop: '0px',
|
|
100
|
+
position: 'relative',
|
|
101
|
+
verticalAlign: 'top',
|
|
102
|
+
width: '100%',
|
|
103
|
+
zIndex: 0,
|
|
104
|
+
webkitFontSmoothing: 'antialiased'
|
|
105
|
+
};
|
|
106
|
+
_this.styleDiv2 = {
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
borderBottomLeftRadius: '4px',
|
|
109
|
+
borderBottomRightRadius: '4px',
|
|
110
|
+
borderTopleftRadius: '4px',
|
|
111
|
+
borderToprightradius: '4px',
|
|
112
|
+
boxSizing: 'borderBox',
|
|
113
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
114
|
+
cursor: 'text',
|
|
115
|
+
display: 'flex',
|
|
116
|
+
fontFamily: 'Roboto, Helvetica, Arial, sansSerif',
|
|
117
|
+
fontSize: '16px',
|
|
118
|
+
fontWeight: 400,
|
|
119
|
+
height: '56px',
|
|
120
|
+
letterSpacing: '0.15008px',
|
|
121
|
+
lineHeight: '19px',
|
|
122
|
+
position: 'relative',
|
|
123
|
+
width: '100%',
|
|
124
|
+
webkitFontSmoothing: 'antialiased',
|
|
125
|
+
};
|
|
126
|
+
_this.styleLabel = {
|
|
127
|
+
boxSizing: 'borderBox',
|
|
128
|
+
color: 'rgba(0, 0, 0, 0.54)',
|
|
129
|
+
cursor: 'default',
|
|
130
|
+
display: 'block',
|
|
131
|
+
fontFamily: 'Roboto, Helvetica, Arial, sansSerif',
|
|
132
|
+
fontSize: '11px',
|
|
133
|
+
fontWeight: 400,
|
|
134
|
+
height: '20px',
|
|
135
|
+
left: '6px',
|
|
136
|
+
letterSpacing: '0.15008px',
|
|
137
|
+
lineHeight: '16px',
|
|
138
|
+
paddingBottom: '0px',
|
|
139
|
+
paddingLeft: '0px',
|
|
140
|
+
paddingRight: '0px',
|
|
141
|
+
paddingTop: '0px',
|
|
142
|
+
pointerEvents: 'none',
|
|
143
|
+
position: 'absolute',
|
|
144
|
+
top: '3px',
|
|
145
|
+
transform: 'matrix(0.75, 0, 0, 0.75, 14, D6)',
|
|
146
|
+
transformOrigin: '0px 0px',
|
|
147
|
+
transitionDelay: '0s, 0s',
|
|
148
|
+
transitionDuration: '0.2s, 0.2s',
|
|
149
|
+
transitionProperty: 'color, transform',
|
|
150
|
+
transitionTimingFunction: 'cubicBezier(0, 0, 0.2, 1), cubicBezier(0, 0, 0.2, 1)',
|
|
151
|
+
width: '200px',
|
|
152
|
+
zIndex: 1,
|
|
153
|
+
webkitFontSmoothing: 'antialiased',
|
|
154
|
+
};
|
|
155
|
+
_this.styleInput = {
|
|
156
|
+
backgroundAttachment: 'scroll',
|
|
157
|
+
backgroundClip: 'borderBox',
|
|
158
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
159
|
+
backgroundImage: 'none',
|
|
160
|
+
backgroundOrigin: 'paddingBox',
|
|
161
|
+
backgroundPositionX: '0%',
|
|
162
|
+
backgroundPositionY: '0%',
|
|
163
|
+
backgroundSize: 'auto',
|
|
164
|
+
borderBottomColor: 'rgba(0, 0, 0, 0.87)',
|
|
165
|
+
borderBottomStyle: 'none',
|
|
166
|
+
borderBottomWidth: '0px',
|
|
167
|
+
borderImageOutset: '0px',
|
|
168
|
+
borderImageRepeat: 'stretch',
|
|
169
|
+
borderImageSlice: '100%',
|
|
170
|
+
borderImageSource: 'none',
|
|
171
|
+
borderImageWidth: 1,
|
|
172
|
+
borderLeftColor: 'rgba(0, 0, 0, 0.87)',
|
|
173
|
+
borderLeftStyle: 'none',
|
|
174
|
+
borderLeftWidth: '0px',
|
|
175
|
+
borderRightColor: 'rgba(0, 0, 0, 0.87)',
|
|
176
|
+
borderRightStyle: 'none',
|
|
177
|
+
borderRightWidth: '0px',
|
|
178
|
+
borderTopColor: 'rgba(0, 0, 0, 0.87)',
|
|
179
|
+
borderTopStyle: 'none',
|
|
180
|
+
borderTopWidth: '0px',
|
|
181
|
+
boxSizing: 'contentBox',
|
|
182
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
183
|
+
cursor: 'text',
|
|
184
|
+
display: 'block',
|
|
185
|
+
fontFamily: 'Roboto, Helvetica, Arial, sansSerif',
|
|
186
|
+
fontSize: '16px',
|
|
187
|
+
fontStretch: '100%',
|
|
188
|
+
fontStyle: 'normal',
|
|
189
|
+
fontVariantCaps: 'normal',
|
|
190
|
+
fontVariantEastAsian: 'normal',
|
|
191
|
+
fontVariantLigatures: 'normal',
|
|
192
|
+
fontVariantNumeric: 'normal',
|
|
193
|
+
fontWeight: 400,
|
|
194
|
+
height: '56px',
|
|
195
|
+
letterSpacing: 'normal',
|
|
196
|
+
lineHeight: '19px',
|
|
197
|
+
marginBottom: '0px',
|
|
198
|
+
marginLeft: '0px',
|
|
199
|
+
marginRight: '0px',
|
|
200
|
+
marginTop: '0px',
|
|
201
|
+
minWidth: '0px',
|
|
202
|
+
paddingBottom: '1.5px',
|
|
203
|
+
paddingLeft: '14px',
|
|
204
|
+
paddingRight: '14px',
|
|
205
|
+
paddingTop: '18.5px',
|
|
206
|
+
textAlign: 'start',
|
|
207
|
+
textIndent: '0px',
|
|
208
|
+
textRendering: 'auto',
|
|
209
|
+
textShadow: 'none',
|
|
210
|
+
textTransform: 'none',
|
|
211
|
+
width: '100%',
|
|
212
|
+
wordSpacing: '0px',
|
|
213
|
+
writingMode: 'horizontalTb',
|
|
214
|
+
webkitAppearance: 'none',
|
|
215
|
+
webkitFontSmoothing: 'antialiased',
|
|
216
|
+
webkitRtlOrdering: 'logical',
|
|
217
|
+
webkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
|
|
218
|
+
webkitBorderImage: 'none',
|
|
219
|
+
};
|
|
220
|
+
_this.stylefieldset = {
|
|
221
|
+
borderBottomColor: 'rgba(0, 0, 0, 0.23)',
|
|
222
|
+
borderBottomLeftRadius: '4px',
|
|
223
|
+
borderBottomRightRadius: '4px',
|
|
224
|
+
borderBottomStyle: 'solid',
|
|
225
|
+
borderBottomWidth: '1px',
|
|
226
|
+
borderImageOutset: '0px',
|
|
227
|
+
borderImageRepeat: 'stretch',
|
|
228
|
+
borderImageSlice: '100%',
|
|
229
|
+
borderImageSource: 'none',
|
|
230
|
+
borderImageWidth: 1,
|
|
231
|
+
borderLeftColor: 'rgba(0, 0, 0, 0.23)',
|
|
232
|
+
borderLeftStyle: 'solid',
|
|
233
|
+
borderLeftWidth: '1px',
|
|
234
|
+
borderRightColor: 'rgba(0, 0, 0, 0.23)',
|
|
235
|
+
borderRightStyle: 'solid',
|
|
236
|
+
borderRightWidth: '1px',
|
|
237
|
+
borderTopColor: 'rgba(0, 0, 0, 0.23)',
|
|
238
|
+
borderTopLeftRadius: '4px',
|
|
239
|
+
borderTopRightRadius: '4px',
|
|
240
|
+
borderTopStyle: 'solid',
|
|
241
|
+
borderTopWidth: '1px',
|
|
242
|
+
bottom: '0px',
|
|
243
|
+
boxSizing: 'borderBox',
|
|
244
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
245
|
+
cursor: 'text',
|
|
246
|
+
display: 'block',
|
|
247
|
+
fontFamily: 'Roboto, Helvetica, Arial, sansSerif',
|
|
248
|
+
fontSize: '16px',
|
|
249
|
+
fontWeight: 400,
|
|
250
|
+
height: '61px',
|
|
251
|
+
left: '0px',
|
|
252
|
+
letterSpacing: '0.15008px',
|
|
253
|
+
lineHeight: '19px',
|
|
254
|
+
marginBottom: '0px',
|
|
255
|
+
marginInlineEnd: '0px',
|
|
256
|
+
marginInlineStart: '0px',
|
|
257
|
+
marginLeft: '0px',
|
|
258
|
+
marginRight: '0px',
|
|
259
|
+
marginTop: '0px',
|
|
260
|
+
minInlineSize: 'minDcontent',
|
|
261
|
+
paddingBlockEnd: '0px',
|
|
262
|
+
paddingBlockStart: '0px',
|
|
263
|
+
paddingBottom: '0px',
|
|
264
|
+
paddingInlineEnd: '0px',
|
|
265
|
+
paddingInlineStart: '8px',
|
|
266
|
+
paddingLeft: '8px',
|
|
267
|
+
paddingTight: '0px',
|
|
268
|
+
paddingTop: '0px',
|
|
269
|
+
pointerEvents: 'none',
|
|
270
|
+
position: 'absolute',
|
|
271
|
+
right: '0px',
|
|
272
|
+
top: 'D5px',
|
|
273
|
+
width: '100%',
|
|
274
|
+
webkitGontSmoothing: 'antialiased',
|
|
275
|
+
webkitBorderImage: 'none',
|
|
276
|
+
};
|
|
277
|
+
_this.styleLegend = {
|
|
278
|
+
borderBottomColor: 'rgba(0, 0, 0, 0.87)',
|
|
279
|
+
borderBottomStyle: 'none',
|
|
280
|
+
borderBottomWidth: '0px',
|
|
281
|
+
borderImageOutset: '0px',
|
|
282
|
+
borderImageRepeat: 'stretch',
|
|
283
|
+
borderImageSlice: '100%',
|
|
284
|
+
borderImageSource: 'none',
|
|
285
|
+
borderImageWidth: 1,
|
|
286
|
+
borderLeftDcolor: 'rgba(0, 0, 0, 0.87)',
|
|
287
|
+
borderLeftStyle: 'none',
|
|
288
|
+
borderLeftWidth: '0px',
|
|
289
|
+
borderRightColor: 'rgba(0, 0, 0, 0.87)',
|
|
290
|
+
borderRightStyle: 'none',
|
|
291
|
+
borderRightWidth: '0px',
|
|
292
|
+
borderTopColor: 'rgba(0, 0, 0, 0.87)',
|
|
293
|
+
borderTopStyle: 'none',
|
|
294
|
+
borderTopWidth: '0px',
|
|
295
|
+
boxSizing: 'borderBox',
|
|
296
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
297
|
+
cursor: 'text',
|
|
298
|
+
display: 'block',
|
|
299
|
+
fontFamily: 'Roboto, Helvetica, Arial, sansSerif',
|
|
300
|
+
fontSize: '12px',
|
|
301
|
+
fontWeight: 400,
|
|
302
|
+
height: '11px',
|
|
303
|
+
letterSpacing: '0.15008px',
|
|
304
|
+
lineHeight: '19px',
|
|
305
|
+
maxWidth: '1000px',
|
|
306
|
+
paddingBottom: '0px',
|
|
307
|
+
paddingInlineEnd: '0px',
|
|
308
|
+
paddingInlineStart: '0px',
|
|
309
|
+
paddingLeft: '0px',
|
|
310
|
+
paddingRight: '0px',
|
|
311
|
+
paddingTop: '0px',
|
|
312
|
+
pointerEvents: 'none',
|
|
313
|
+
textAlign: 'left',
|
|
314
|
+
transitionDdelay: '0.05s',
|
|
315
|
+
transitionDduration: '0.1s',
|
|
316
|
+
transitionDproperty: 'maxWidth',
|
|
317
|
+
transitionTimingFunction: 'cubicBezier(0, 0, 0.2, 1)',
|
|
318
|
+
visibility: 'hidden',
|
|
319
|
+
width: '0px',
|
|
320
|
+
WebkitFontSmoothing: 'antialiased',
|
|
321
|
+
WebkitBorderImage: 'none',
|
|
322
|
+
};
|
|
323
|
+
_this.styleSpan = {
|
|
324
|
+
boxSizing: 'border-box',
|
|
325
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
326
|
+
cursor: 'text',
|
|
327
|
+
display: 'inline',
|
|
328
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif',
|
|
329
|
+
fontSize: '12px',
|
|
330
|
+
fontWeight: 400,
|
|
331
|
+
height: 'auto',
|
|
332
|
+
letterSpacing: '0.15008px',
|
|
333
|
+
lineHeight: '19px',
|
|
334
|
+
paddingLeft: '5px',
|
|
335
|
+
paddingRight: '5px',
|
|
336
|
+
pointerEvents: 'none',
|
|
337
|
+
textAlign: 'left',
|
|
338
|
+
visibility: 'hidden',
|
|
339
|
+
width: 'auto',
|
|
340
|
+
WebkitFontSmoothing: 'antialiased',
|
|
341
|
+
};
|
|
342
|
+
_this.onChange = function (event) {
|
|
343
|
+
var onChange = _this.props.onChange;
|
|
344
|
+
var value = _this.handleValue(event.target);
|
|
345
|
+
value = _this.handleWithTypeValues(value);
|
|
346
|
+
if (onChange) {
|
|
347
|
+
onChange(value);
|
|
348
|
+
}
|
|
349
|
+
_this.props.handleUpdates(value);
|
|
350
|
+
_this.stopWritingHandler(value);
|
|
351
|
+
};
|
|
352
|
+
_this.stopWritingHandler = function (value) {
|
|
353
|
+
var _a = _this.props, stopWriting = _a.stopWriting, _b = _a.stopWritingTime, stopWritingTime = _b === void 0 ? 2000 : _b;
|
|
354
|
+
if (stopWriting) {
|
|
355
|
+
clearTimeout(_this.stopWritingTimeout);
|
|
356
|
+
_this.stopWritingTimeout = setTimeout(function () {
|
|
357
|
+
stopWriting(value);
|
|
358
|
+
}, stopWritingTime);
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
_this.handleWithTypeValues = function (value) {
|
|
362
|
+
var _a = _this.props, field = _a.field, type = _a.type, optionValue = _a.optionValue;
|
|
363
|
+
if (type === 'checkbox') {
|
|
364
|
+
var fieldValue = fieldsRedux_1.getField(field, 'value') || [];
|
|
365
|
+
var index = fieldValue.indexOf(optionValue);
|
|
366
|
+
if (index < 0) {
|
|
367
|
+
fieldValue.push(optionValue);
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
fieldValue.splice(index, 1);
|
|
371
|
+
}
|
|
372
|
+
value = fieldValue;
|
|
373
|
+
}
|
|
374
|
+
if (type === 'radio') {
|
|
375
|
+
value = optionValue;
|
|
376
|
+
}
|
|
377
|
+
return value;
|
|
378
|
+
};
|
|
379
|
+
_this.handleValue = function (target) {
|
|
380
|
+
var confs = _this.stateOptions();
|
|
381
|
+
return confs.alias === 'check'
|
|
382
|
+
? target.checked
|
|
383
|
+
: target.value;
|
|
384
|
+
};
|
|
385
|
+
_this.handleClassName = function () {
|
|
386
|
+
var _a = _this.props.className, className = _a === void 0 ? '' : _a;
|
|
387
|
+
var confs = _this.stateOptions();
|
|
388
|
+
var cn = '';
|
|
389
|
+
if (confs.alias === 'text' && !className)
|
|
390
|
+
cn += ' form-control ';
|
|
391
|
+
cn += className;
|
|
392
|
+
return cn;
|
|
393
|
+
};
|
|
394
|
+
_this.checkInputProps = function () {
|
|
395
|
+
var _a = _this.props, field = _a.field, id = _a.id, _b = _a.type, type = _b === void 0 ? 'text' : _b, placeholder = _a.placeholder, min = _a.min, max = _a.max, step = _a.step, maxLength = _a.maxLength, minLength = _a.minLength, autoFocus = _a.autoFocus, disabled = _a.disabled, readOnly = _a.readOnly, required = _a.required;
|
|
396
|
+
var value = fieldsRedux_1.getField(field, 'value');
|
|
397
|
+
var inputProps = {};
|
|
398
|
+
inputProps['min'] = min;
|
|
399
|
+
inputProps['max'] = max;
|
|
400
|
+
inputProps['step'] = step;
|
|
401
|
+
inputProps['maxLength'] = maxLength;
|
|
402
|
+
inputProps['minLength'] = minLength;
|
|
403
|
+
inputProps['value'] = value;
|
|
404
|
+
inputProps['placeholder'] = placeholder;
|
|
405
|
+
inputProps['readOnly'] = readOnly;
|
|
406
|
+
inputProps['required'] = required;
|
|
407
|
+
inputProps['disabled'] = disabled;
|
|
408
|
+
inputProps['autoFocus'] = autoFocus;
|
|
409
|
+
inputProps['id'] = id;
|
|
410
|
+
inputProps['type'] = type;
|
|
411
|
+
inputProps = __assign(__assign({}, inputProps), _this.events());
|
|
412
|
+
return inputProps;
|
|
413
|
+
};
|
|
414
|
+
_this.stateOptions = function () {
|
|
415
|
+
var confs = _this.confs;
|
|
416
|
+
var type = _this.props.type;
|
|
417
|
+
if (confs)
|
|
418
|
+
return confs;
|
|
419
|
+
var confsAux = {};
|
|
420
|
+
switch (type) {
|
|
421
|
+
case 'time':
|
|
422
|
+
confsAux['alias'] = 'text';
|
|
423
|
+
break;
|
|
424
|
+
case 'date':
|
|
425
|
+
confsAux['alias'] = 'text';
|
|
426
|
+
break;
|
|
427
|
+
case 'datetime-local':
|
|
428
|
+
confsAux['alias'] = 'text';
|
|
429
|
+
break;
|
|
430
|
+
case 'email':
|
|
431
|
+
confsAux['alias'] = 'text';
|
|
432
|
+
break;
|
|
433
|
+
case 'url':
|
|
434
|
+
confsAux['alias'] = 'text';
|
|
435
|
+
break;
|
|
436
|
+
case 'month':
|
|
437
|
+
confsAux['alias'] = 'text';
|
|
438
|
+
break;
|
|
439
|
+
case 'week':
|
|
440
|
+
confsAux['alias'] = 'text';
|
|
441
|
+
break;
|
|
442
|
+
case 'number':
|
|
443
|
+
confsAux['alias'] = 'text';
|
|
444
|
+
break;
|
|
445
|
+
case 'password':
|
|
446
|
+
confsAux['alias'] = 'text';
|
|
447
|
+
break;
|
|
448
|
+
case 'search':
|
|
449
|
+
confsAux['alias'] = 'text';
|
|
450
|
+
break;
|
|
451
|
+
case 'button':
|
|
452
|
+
confsAux['alias'] = 'button';
|
|
453
|
+
break;
|
|
454
|
+
case 'submit':
|
|
455
|
+
confsAux['alias'] = 'button';
|
|
456
|
+
break;
|
|
457
|
+
case 'file':
|
|
458
|
+
confsAux['alias'] = 'button';
|
|
459
|
+
break;
|
|
460
|
+
case 'checkbox':
|
|
461
|
+
confsAux['alias'] = 'check';
|
|
462
|
+
break;
|
|
463
|
+
case 'radio':
|
|
464
|
+
confsAux['alias'] = 'check';
|
|
465
|
+
break;
|
|
466
|
+
case 'color':
|
|
467
|
+
confsAux['alias'] = 'color';
|
|
468
|
+
break;
|
|
469
|
+
case 'hidden':
|
|
470
|
+
confsAux['alias'] = 'hidden';
|
|
471
|
+
break;
|
|
472
|
+
case 'range':
|
|
473
|
+
confsAux['alias'] = 'range';
|
|
474
|
+
break;
|
|
475
|
+
default:
|
|
476
|
+
confsAux['alias'] = 'text';
|
|
477
|
+
}
|
|
478
|
+
_this.confs = confsAux;
|
|
479
|
+
return confsAux;
|
|
480
|
+
};
|
|
481
|
+
_this.events = function () {
|
|
482
|
+
var _a = _this.props, onFocus = _a.onFocus, onBlur = _a.onBlur, onKeyDown = _a.onKeyDown, onKeyPress = _a.onKeyPress, onKeyUp = _a.onKeyUp, onMouseEnter = _a.onMouseEnter, onMouseOver = _a.onMouseOver, onMouseMove = _a.onMouseMove, onMouseDown = _a.onMouseDown, onMouseUp = _a.onMouseUp, onClick = _a.onClick, onDoubleClick = _a.onDoubleClick, onMouseLeave = _a.onMouseLeave, onMouseOut = _a.onMouseOut;
|
|
483
|
+
var onChange = _this.onChange;
|
|
484
|
+
return {
|
|
485
|
+
onChange: onChange,
|
|
486
|
+
onFocus: onFocus,
|
|
487
|
+
onBlur: onBlur,
|
|
488
|
+
onKeyDown: onKeyDown,
|
|
489
|
+
onKeyPress: onKeyPress,
|
|
490
|
+
onKeyUp: onKeyUp,
|
|
491
|
+
onMouseEnter: onMouseEnter,
|
|
492
|
+
onMouseOver: onMouseOver,
|
|
493
|
+
onMouseMove: onMouseMove,
|
|
494
|
+
onMouseDown: onMouseDown,
|
|
495
|
+
onMouseUp: onMouseUp,
|
|
496
|
+
onClick: onClick,
|
|
497
|
+
onDoubleClick: onDoubleClick,
|
|
498
|
+
onMouseLeave: onMouseLeave,
|
|
499
|
+
onMouseOut: onMouseOut
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
return _this;
|
|
503
|
+
}
|
|
504
|
+
ArgousInput.prototype.componentWillUnmount = function () {
|
|
505
|
+
if (this.props.stopWriting) {
|
|
506
|
+
clearTimeout(this.stopWritingTimeout);
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
ArgousInput.prototype.render = function () {
|
|
510
|
+
var checkInputProps = this.checkInputProps;
|
|
511
|
+
var _a = this.props, mask = _a.mask, label = _a.label;
|
|
512
|
+
var inputProps = checkInputProps();
|
|
513
|
+
if (!mask) {
|
|
514
|
+
return (react_1.default.createElement("div", { style: this.styleDiv1 },
|
|
515
|
+
react_1.default.createElement("label", { style: this.styleLabel }, label),
|
|
516
|
+
react_1.default.createElement("div", { style: this.styleDiv2 },
|
|
517
|
+
react_1.default.createElement("input", __assign({ style: this.styleInput }, inputProps)),
|
|
518
|
+
react_1.default.createElement("fieldset", { style: this.stylefieldset },
|
|
519
|
+
react_1.default.createElement("legend", { style: this.styleLegend },
|
|
520
|
+
react_1.default.createElement("span", { style: this.styleSpan }))))));
|
|
521
|
+
}
|
|
522
|
+
return (react_1.default.createElement("div", { style: this.styleDiv1 },
|
|
523
|
+
react_1.default.createElement("label", { style: this.styleLabel }, label),
|
|
524
|
+
react_1.default.createElement("div", { style: this.styleDiv2 },
|
|
525
|
+
react_1.default.createElement(react_maskedinput_1.default, __assign({ mask: mask, style: this.styleInput }, this.props)),
|
|
526
|
+
react_1.default.createElement("fieldset", { style: this.stylefieldset },
|
|
527
|
+
react_1.default.createElement("legend", { style: this.styleLegend },
|
|
528
|
+
react_1.default.createElement("span", { style: this.styleSpan }))))));
|
|
529
|
+
};
|
|
530
|
+
return ArgousInput;
|
|
531
|
+
}(react_1.Component));
|
|
532
|
+
ArgousInput.propTypes = {
|
|
533
|
+
field: prop_types_1.default.string.isRequired,
|
|
534
|
+
defaultValue: prop_types_1.default.oneOfType([prop_types_1.default.number, prop_types_1.default.string, prop_types_1.default.object, prop_types_1.default.array]),
|
|
535
|
+
ajax: prop_types_1.default.bool,
|
|
536
|
+
onChange: prop_types_1.default.func,
|
|
537
|
+
action: prop_types_1.default.string,
|
|
538
|
+
dados: prop_types_1.default.object,
|
|
539
|
+
receiveUpdates: prop_types_1.default.array,
|
|
540
|
+
sendUpdates: prop_types_1.default.array,
|
|
541
|
+
onFieldSuccess: prop_types_1.default.func,
|
|
542
|
+
onActionSuccess: prop_types_1.default.func,
|
|
543
|
+
onAllUpdated: prop_types_1.default.func,
|
|
544
|
+
fieldListener: prop_types_1.default.func,
|
|
545
|
+
destroyOnUnmount: prop_types_1.default.bool,
|
|
546
|
+
mask: prop_types_1.default.string,
|
|
547
|
+
placeholder: prop_types_1.default.string,
|
|
548
|
+
className: prop_types_1.default.string,
|
|
549
|
+
style: prop_types_1.default.object,
|
|
550
|
+
id: prop_types_1.default.string,
|
|
551
|
+
name: prop_types_1.default.string,
|
|
552
|
+
min: prop_types_1.default.string,
|
|
553
|
+
max: prop_types_1.default.string,
|
|
554
|
+
step: prop_types_1.default.string,
|
|
555
|
+
maxLength: prop_types_1.default.string,
|
|
556
|
+
minLength: prop_types_1.default.string,
|
|
557
|
+
autoFocus: prop_types_1.default.bool,
|
|
558
|
+
disabled: prop_types_1.default.bool,
|
|
559
|
+
readOnly: prop_types_1.default.bool,
|
|
560
|
+
required: prop_types_1.default.bool,
|
|
561
|
+
onFocus: prop_types_1.default.func,
|
|
562
|
+
onBlur: prop_types_1.default.func,
|
|
563
|
+
onKeyDown: prop_types_1.default.func,
|
|
564
|
+
onKeyPress: prop_types_1.default.func,
|
|
565
|
+
onKeyUp: prop_types_1.default.func,
|
|
566
|
+
onMouseEnter: prop_types_1.default.func,
|
|
567
|
+
onMouseOver: prop_types_1.default.func,
|
|
568
|
+
onMouseMove: prop_types_1.default.func,
|
|
569
|
+
onMouseDown: prop_types_1.default.func,
|
|
570
|
+
onMouseUp: prop_types_1.default.func,
|
|
571
|
+
onClick: prop_types_1.default.func,
|
|
572
|
+
onDoubleClick: prop_types_1.default.func,
|
|
573
|
+
onMouseLeave: prop_types_1.default.func,
|
|
574
|
+
onMouseOut: prop_types_1.default.func,
|
|
575
|
+
stopWriting: prop_types_1.default.func,
|
|
576
|
+
stopWritingTime: prop_types_1.default.number
|
|
577
|
+
};
|
|
578
|
+
exports.default = fieldsRedux_1.createField(ArgousInput);
|
|
@@ -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 ArgousInput_1 = require("./ArgousInput");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ArgousInput_1).default; } });
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
var core_1 = require("@material-ui/core");
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var md_1 = require("react-icons/md");
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
12
|
+
var ArgousPagination = function (props) {
|
|
13
|
+
var value = props.ctrlPgnReturn.qtRegs;
|
|
14
|
+
return (react_1.default.createElement(core_1.Toolbar, { style: { minHeight: 52, paddingRight: 2 } },
|
|
15
|
+
react_1.default.createElement("div", { style: { flex: '1 1 100%' } }),
|
|
16
|
+
react_1.default.createElement(core_1.Typography, { color: 'inherit', variant: 'body2', style: { flexShrink: 0 } }, "Linhas"),
|
|
17
|
+
value && (react_1.default.createElement(core_1.Select, { input: react_1.default.createElement(core_1.InputBase, { style: { marginRight: 32, marginLeft: 8, color: 'inherit', fontSize: 'inherit', flexShrink: 0, } }), onChange: function (e) { return props.onChangeRowsPerPage(e.target.value); }, value: value, style: { marginLeft: 15 } }, props.linhasPorPagina.map(function (coluna, index) {
|
|
18
|
+
return (react_1.default.createElement(core_1.MenuItem, { key: index, value: coluna }, coluna));
|
|
19
|
+
}))),
|
|
20
|
+
react_1.default.createElement(core_1.Typography, { color: 'inherit', variant: 'body2', component: 'div', style: { flexShrink: 0 } },
|
|
21
|
+
react_1.default.createElement(core_1.Box, { padding: '1px 0px', display: 'inline' },
|
|
22
|
+
react_1.default.createElement(core_1.InputBase, { style: { width: 40 }, inputProps: { value: props.ctrlPgnReturn.pgAtl }, onBlur: function (e) { return props.onChangePageNumber(e.target.value); } }), " / " + props.ctrlPgnReturn.qtPaginas)),
|
|
23
|
+
react_1.default.createElement(core_1.Box, { style: { flexShrink: 0, marginLeft: '20px' } },
|
|
24
|
+
react_1.default.createElement(core_1.IconButton, { onClick: function () { return props.onChangePage('P'); }, disabled: props.ctrlPgnReturn.pgAtl === 1, title: 'P\u00E1gina Anterior' },
|
|
25
|
+
react_1.default.createElement(md_1.MdKeyboardArrowLeft, null)),
|
|
26
|
+
react_1.default.createElement(core_1.IconButton, { onClick: function () { return props.onChangePage('N'); }, disabled: props.ctrlPgnReturn.pgAtl === props.ctrlPgnReturn.qtPaginas, title: 'P\u00E1gina Seguinte' },
|
|
27
|
+
react_1.default.createElement(md_1.MdKeyboardArrowRight, null)))));
|
|
28
|
+
};
|
|
29
|
+
exports.default = ArgousPagination;
|
|
@@ -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 ArgousPagination_1 = require("./ArgousPagination");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ArgousPagination_1).default; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ArgousProgressBarProps {
|
|
4
|
+
valueLabel?: string,
|
|
5
|
+
valueSuffix?: string,
|
|
6
|
+
maxValueSuffix?: string,
|
|
7
|
+
maxValueLabel?: string,
|
|
8
|
+
value: number,
|
|
9
|
+
maxValue?: number,
|
|
10
|
+
rightIndicatorColor?: string,
|
|
11
|
+
topIndicatorColor?: string,
|
|
12
|
+
borderColor?: string,
|
|
13
|
+
barColor?: string,
|
|
14
|
+
fullBarColor?: string,
|
|
15
|
+
preset?: 'default' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'hot' | 'cold'
|
|
16
|
+
compact?: boolean,
|
|
17
|
+
className?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare function ArgousProgressBar(props: ArgousProgressBarProps): JSX.Element
|
|
21
|
+
|
|
22
|
+
export default ArgousProgressBar;
|