argous 1.2.246 → 1.2.247

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.
Files changed (108) hide show
  1. package/dist/api/WebSocket.d.ts +4 -0
  2. package/dist/api/WebSocket.js +17 -13
  3. package/dist/api/index.js +119 -108
  4. package/dist/api/ws.js +3 -3
  5. package/dist/components/Alert/Alert.js +6 -2
  6. package/dist/components/ArgousAction/ArgousAction.js +8 -4
  7. package/dist/components/ArgousAvatar/ArgousAvatar.js +14 -10
  8. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +15 -9
  9. package/dist/components/ArgousComplexTable/ArgousComplexTable.js +79 -52
  10. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +16 -12
  11. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +13 -9
  12. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +12 -8
  13. package/dist/components/ArgousInput/ArgousInput.js +8 -4
  14. package/dist/components/ArgousPagination/ArgousPagination.js +1 -1
  15. package/dist/components/ArgousProgressBar/ArgousProgressBar.js +18 -18
  16. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +16 -12
  17. package/dist/components/AutoComplete/AutoComplete.js +16 -12
  18. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +34 -30
  19. package/dist/components/BarChart/BarChart.js +5 -1
  20. package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +30 -2
  21. package/dist/components/BarraFerramentas/BarraFerramentas.js +58 -40
  22. package/dist/components/Button/Button.js +8 -4
  23. package/dist/components/Cabecalho/Cabecalho.js +29 -25
  24. package/dist/components/Calendar/Calendar.js +12 -8
  25. package/dist/components/Cam/Cam.js +15 -11
  26. package/dist/components/Carousel/Carousel.js +21 -17
  27. package/dist/components/CartaoUsuario/CartaoUsuario.js +21 -17
  28. package/dist/components/Collapse/Collapse.js +18 -14
  29. package/dist/components/Compartilhar/Compartilhar.js +24 -20
  30. package/dist/components/ConfirmModal/ModalProvider.js +17 -13
  31. package/dist/components/ConfirmModal/index.js +5 -1
  32. package/dist/components/ContactValidationInput/ContactValidationInput.js +34 -31
  33. package/dist/components/Document/Icons.js +14 -10
  34. package/dist/components/Document/ModalVisualizacaoDocumentos.js +11 -7
  35. package/dist/components/Document/Visualizacao.js +15 -11
  36. package/dist/components/Document/index.js +5 -1
  37. package/dist/components/DropArea/DropArea.js +16 -12
  38. package/dist/components/DropArea/Html5FileSelector.js +2 -2
  39. package/dist/components/Editor/Events.d.ts +2 -2
  40. package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
  41. package/dist/components/Editor/ScriptLoader2.js +1 -1
  42. package/dist/components/Editor/Utils.d.ts +1 -1
  43. package/dist/components/Editor/Utils.js +1 -1
  44. package/dist/components/Editor/components/Editor.d.ts +1 -1
  45. package/dist/components/Editor/components/Editor.js +23 -18
  46. package/dist/components/Editor/components/EditorPropTypes.d.ts +2 -2
  47. package/dist/components/Editor/components/EditorPropTypes.js +5 -1
  48. package/dist/components/FilePreparer/FilePreparer.js +34 -26
  49. package/dist/components/FileUploader/FileUploader.js +22 -18
  50. package/dist/components/FormVisualizer/FormVisualizer.js +34 -26
  51. package/dist/components/HalfGauge/HalfGauge.js +30 -26
  52. package/dist/components/Highlight/Highlight.js +7 -3
  53. package/dist/components/ImageResize/ImageResize.js +61 -57
  54. package/dist/components/ImageResizeButton/ImageResizeButton.js +9 -5
  55. package/dist/components/Input/Input.js +8 -4
  56. package/dist/components/InputTags/InputTags.js +16 -8
  57. package/dist/components/ListSelect/ListSelect.js +11 -7
  58. package/dist/components/MaterialButton/MaterialButton.js +18 -18
  59. package/dist/components/MenuBar/MenuBar.js +11 -7
  60. package/dist/components/MonthPicker/MonthPicker.js +33 -25
  61. package/dist/components/MultipleSelect/MultipleSelect.js +20 -12
  62. package/dist/components/OtpInput/OtpInput.js +11 -7
  63. package/dist/components/OutputText/OutputText.js +8 -4
  64. package/dist/components/Pagination/Pagination.js +5 -1
  65. package/dist/components/PercentageDisplay/PercentageDisplay.js +11 -7
  66. package/dist/components/Programa/PageCodeEasterEgg.d.ts +1 -1
  67. package/dist/components/Programa/PageCodeEasterEgg.js +11 -7
  68. package/dist/components/Programa/Programa.d.ts +16 -1
  69. package/dist/components/Programa/Programa.js +41 -13
  70. package/dist/components/Programa/Tab.d.ts +7 -0
  71. package/dist/components/Programa/Tab.js +2 -0
  72. package/dist/components/Programa/TabNavigationRail.d.ts +12 -0
  73. package/dist/components/Programa/TabNavigationRail.js +118 -0
  74. package/dist/components/ProgressBar/ProgressBar.js +8 -4
  75. package/dist/components/Select/Select.js +11 -7
  76. package/dist/components/SimpleTable/SimpleTable.js +30 -26
  77. package/dist/components/Stepper/Stepper.js +18 -14
  78. package/dist/components/TablePicker/TablePicker.js +40 -32
  79. package/dist/components/Tabs/Tabs.js +8 -4
  80. package/dist/components/TextArea/TextArea.js +8 -4
  81. package/dist/components/TextToHtml/Cursor.js +9 -5
  82. package/dist/components/TextToHtml/TextStyles.js +10 -6
  83. package/dist/components/TextToHtml/TextToHtml.js +44 -44
  84. package/dist/components/ThreadLog/ThreadLog.js +15 -11
  85. package/dist/components/UserCard/UserCard.js +18 -14
  86. package/dist/components/UtilAutoComplete/UtilAutoComplete.js +22 -18
  87. package/dist/components/UtilTextField/UtilTextField.js +10 -6
  88. package/dist/components/Zoom/Zoom.js +11 -7
  89. package/dist/components/index.js +5 -1
  90. package/dist/fieldsRedux/createField.js +22 -18
  91. package/dist/fieldsRedux/fieldsRedux.js +44 -40
  92. package/dist/fieldsRedux/passFields.js +16 -12
  93. package/dist/reducers/index.js +1 -1
  94. package/dist/utils/api.d.ts +2 -2
  95. package/dist/utils/api.js +18 -18
  96. package/dist/utils/date.js +4 -4
  97. package/dist/utils/index.js +44 -112
  98. package/dist/utils/xmlToJson.js +1 -1
  99. package/lib/components/BarraFerramentas/BarraFerramentas.d.ts +30 -2
  100. package/lib/components/BarraFerramentas/BarraFerramentas.js +63 -19
  101. package/lib/components/Programa/Programa.d.ts +16 -1
  102. package/lib/components/Programa/Programa.js +40 -3
  103. package/lib/components/Programa/Tab.ts +6 -0
  104. package/lib/components/Programa/TabNavigationRail.js +118 -0
  105. package/lib/utils/index.ts +0 -88
  106. package/package.json +2 -2
  107. package/lib/components/Editor/tinymce/README.md +0 -73
  108. package/lib/components/Editor/tinymce/langs/README.md +0 -3
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -27,13 +31,13 @@ var core_1 = require("@material-ui/core");
27
31
  var clsx_1 = __importDefault(require("clsx"));
28
32
  var lodash_1 = require("lodash");
29
33
  var react_1 = __importStar(require("react"));
30
- var useStyles = core_1.makeStyles(function (theme) { return ({
34
+ var useStyles = (0, core_1.makeStyles)(function (theme) { return ({
31
35
  highlight: {
32
36
  color: theme.palette.type === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
33
- backgroundColor: core_1.alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
37
+ backgroundColor: (0, core_1.alpha)(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
34
38
  },
35
39
  lighthighlight: {
36
- background: core_1.alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
40
+ background: (0, core_1.alpha)(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
37
41
  },
38
42
  visuallyHidden: {
39
43
  border: 0,
@@ -47,17 +51,17 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
47
51
  width: 1,
48
52
  }
49
53
  }); });
50
- var ArgousComplexTableHead = react_1.memo(function (_a) {
54
+ var ArgousComplexTableHead = (0, react_1.memo)(function (_a) {
51
55
  var _b;
52
56
  var numSelected = _a.numSelected, rowCount = _a.rowCount, head = _a.head, enableCheck = _a.enableCheck, disableCheckIf = _a.disableCheckIf, line = _a.line, size = _a.size, headerColumnStyles = _a.headerColumnStyles, disableSorting = _a.disableSorting, ordCols = _a.ordCols, cortaDados = _a.cortaDados, enableDrag = _a.enableDrag;
53
57
  var classes = useStyles();
54
- var _c = react_1.useContext(ArgousComplexTable_1.TableContext), selected = _c.selected, order = _c.order, orderBy = _c.orderBy, dispatch = _c.dispatch, lista = _c.lista, indexToSelect = _c.indexToSelect, method = _c.method, externalCtrlPgn = _c.externalCtrlPgn;
58
+ var _c = (0, react_1.useContext)(ArgousComplexTable_1.TableContext), selected = _c.selected, order = _c.order, orderBy = _c.orderBy, dispatch = _c.dispatch, lista = _c.lista, indexToSelect = _c.indexToSelect, method = _c.method, externalCtrlPgn = _c.externalCtrlPgn;
55
59
  var handleRequestSort = function (property) {
56
60
  var isAsc = orderBy === property && order === 'asc';
57
61
  dispatch({ type: 'setOrder', value: isAsc ? 'desc' : 'asc' });
58
62
  dispatch({ type: 'setOrderBy', value: property });
59
63
  };
60
- var length = react_1.useMemo(function () { return disableCheckIf ? lista.reduce(function (acc, linha, i) { return !disableCheckIf(linha, line(linha), i) ? acc + 1 : acc; }, 0) : size; }, [disableCheckIf, lista, size, line]);
64
+ var length = (0, react_1.useMemo)(function () { return disableCheckIf ? lista.reduce(function (acc, linha, i) { return !disableCheckIf(linha, line(linha), i) ? acc + 1 : acc; }, 0) : size; }, [disableCheckIf, lista, size, line]);
61
65
  var handleSelectAllClick = function (event) {
62
66
  if (event.target.checked) {
63
67
  if (!method && !externalCtrlPgn && (selected.length === 0))
@@ -71,14 +75,14 @@ var ArgousComplexTableHead = react_1.memo(function (_a) {
71
75
  dispatch({ type: 'setSelected', value: [] });
72
76
  };
73
77
  return (react_1.default.createElement(core_1.TableHead, null,
74
- react_1.default.createElement(core_1.TableRow, { className: clsx_1.default((_b = {},
78
+ react_1.default.createElement(core_1.TableRow, { className: (0, clsx_1.default)((_b = {},
75
79
  _b[classes.highlight] = (((numSelected === rowCount) || (numSelected === length) || (numSelected === (lista === null || lista === void 0 ? void 0 : lista.length))) && (rowCount && length)),
76
80
  _b[classes.lighthighlight] = ((numSelected > 0) && ((method || externalCtrlPgn) ? (numSelected < (lista === null || lista === void 0 ? void 0 : lista.length)) : (numSelected < rowCount))),
77
81
  _b)) },
78
82
  enableDrag && react_1.default.createElement(core_1.TableCell, { padding: 'checkbox' }),
79
83
  enableCheck && react_1.default.createElement(core_1.TableCell, { padding: 'checkbox' },
80
84
  react_1.default.createElement(core_1.Checkbox, { disabled: !length, indeterminate: (method || externalCtrlPgn) ? ((numSelected > 0) && (numSelected < (lista === null || lista === void 0 ? void 0 : lista.length))) : ((numSelected > 0) && (numSelected < length)), checked: (method || externalCtrlPgn) ? ((rowCount > 0) && ((numSelected === rowCount) || (numSelected === (lista === null || lista === void 0 ? void 0 : lista.length)))) : ((rowCount > 0) && length && (numSelected === length)), onChange: handleSelectAllClick })),
81
- lodash_1.isArray(head) && head.map(function (item, i) { return (react_1.default.createElement(core_1.TableCell, { key: i, style: headerColumnStyles ? headerColumnStyles[i] : undefined }, (disableSorting[i] || (ordCols && !ordCols[i])) ?
85
+ (0, lodash_1.isArray)(head) && head.map(function (item, i) { return (react_1.default.createElement(core_1.TableCell, { key: i, style: headerColumnStyles ? headerColumnStyles[i] : undefined }, (disableSorting[i] || (ordCols && !ordCols[i])) ?
82
86
  item
83
87
  :
84
88
  react_1.default.createElement(core_1.TableSortLabel, { active: orderBy === i, direction: orderBy === i ? order : 'asc', onClick: function () { return handleRequestSort(i); } },
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -27,7 +31,7 @@ var core_1 = require("@material-ui/core");
27
31
  var clsx_1 = __importDefault(require("clsx"));
28
32
  var lodash_1 = require("lodash");
29
33
  var react_1 = __importStar(require("react"));
30
- var useStyles = core_1.makeStyles(function (theme) { return ({
34
+ var useStyles = (0, core_1.makeStyles)(function (theme) { return ({
31
35
  toolbar: {
32
36
  minHeight: 0,
33
37
  paddingLeft: theme.spacing(2),
@@ -35,19 +39,19 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
35
39
  },
36
40
  highlight: {
37
41
  color: theme.palette.type === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
38
- backgroundColor: core_1.alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
42
+ backgroundColor: (0, core_1.alpha)(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
39
43
  },
40
44
  title: {
41
45
  flex: '1 1 100%',
42
46
  lineHeight: '50px'
43
47
  }
44
48
  }); });
45
- var ArgousComplexTableToolBar = react_1.memo(function (_a) {
49
+ var ArgousComplexTableToolBar = (0, react_1.memo)(function (_a) {
46
50
  var _b;
47
51
  var numSelected = _a.numSelected, actions = _a.actions, title = _a.title, disableFilter = _a.disableFilter, filterLabel = _a.filterLabel, lista = _a.lista, indexToSelect = _a.indexToSelect, fixedToolbar = _a.fixedToolbar;
48
52
  var classes = useStyles();
49
- var _c = react_1.useContext(ArgousComplexTable_1.TableContext), selected = _c.selected, dispatch = _c.dispatch;
50
- var filterTime = react_1.useRef();
53
+ var _c = (0, react_1.useContext)(ArgousComplexTable_1.TableContext), selected = _c.selected, dispatch = _c.dispatch;
54
+ var filterTime = (0, react_1.useRef)();
51
55
  var handleChange = function (e) {
52
56
  var value = e.target.value;
53
57
  clearTimeout(filterTime.current);
@@ -55,7 +59,7 @@ var ArgousComplexTableToolBar = react_1.memo(function (_a) {
55
59
  dispatch({ type: 'setFilter', value: value });
56
60
  }, 300);
57
61
  };
58
- return (react_1.default.createElement(core_1.Toolbar, { className: clsx_1.default(classes.toolbar, (_b = {}, _b[classes.highlight] = numSelected > 0, _b)) },
62
+ return (react_1.default.createElement(core_1.Toolbar, { className: (0, clsx_1.default)(classes.toolbar, (_b = {}, _b[classes.highlight] = numSelected > 0, _b)) },
59
63
  numSelected > 0 ? (react_1.default.createElement(core_1.Typography, { className: classes.title, color: 'inherit', variant: 'subtitle1', component: 'div' },
60
64
  numSelected,
61
65
  " ",
@@ -64,7 +68,7 @@ var ArgousComplexTableToolBar = react_1.memo(function (_a) {
64
68
  react_1.default.createElement(core_1.Typography, { className: classes.title, variant: 'h6', component: 'div' }, title)),
65
69
  !disableFilter && react_1.default.createElement(core_1.Grid, { item: true, xs: true },
66
70
  react_1.default.createElement(core_1.TextField, { label: filterLabel, fullWidth: true, margin: 'dense', variant: 'outlined', onChange: handleChange }))),
67
- (fixedToolbar || numSelected > 0) && lodash_1.isArray(actions) && actions.map(function (action, i) { return (react_1.default.createElement(core_1.Tooltip, { key: i, title: action[0] },
71
+ (fixedToolbar || numSelected > 0) && (0, lodash_1.isArray)(actions) && actions.map(function (action, i) { return (react_1.default.createElement(core_1.Tooltip, { key: i, title: action[0] },
68
72
  react_1.default.createElement(core_1.IconButton, { onClick: function (e) { return action[2](selected, e, lista.filter(function (linha) { return selected.indexOf(linha[indexToSelect]) > -1; })); } }, action[1]))); })));
69
73
  });
70
74
  exports.default = ArgousComplexTableToolBar;
@@ -27,7 +27,11 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
29
  if (k2 === undefined) k2 = k;
30
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
30
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
32
+ desc = { enumerable: true, get: function() { return m[k]; } };
33
+ }
34
+ Object.defineProperty(o, k2, desc);
31
35
  }) : (function(o, m, k, k2) {
32
36
  if (k2 === undefined) k2 = k;
33
37
  o[k2] = m[k];
@@ -361,7 +365,7 @@ var ArgousInput = /** @class */ (function (_super) {
361
365
  _this.handleWithTypeValues = function (value) {
362
366
  var _a = _this.props, field = _a.field, type = _a.type, optionValue = _a.optionValue;
363
367
  if (type === 'checkbox') {
364
- var fieldValue = fieldsRedux_1.getField(field, 'value') || [];
368
+ var fieldValue = (0, fieldsRedux_1.getField)(field, 'value') || [];
365
369
  var index = fieldValue.indexOf(optionValue);
366
370
  if (index < 0) {
367
371
  fieldValue.push(optionValue);
@@ -393,7 +397,7 @@ var ArgousInput = /** @class */ (function (_super) {
393
397
  };
394
398
  _this.checkInputProps = function () {
395
399
  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');
400
+ var value = (0, fieldsRedux_1.getField)(field, 'value');
397
401
  var inputProps = {};
398
402
  inputProps['min'] = min;
399
403
  inputProps['max'] = max;
@@ -575,4 +579,4 @@ ArgousInput.propTypes = {
575
579
  stopWriting: prop_types_1.default.func,
576
580
  stopWritingTime: prop_types_1.default.number
577
581
  };
578
- exports.default = fieldsRedux_1.createField(ArgousInput);
582
+ exports.default = (0, fieldsRedux_1.createField)(ArgousInput);
@@ -19,7 +19,7 @@ var ArgousPagination = function (props) {
19
19
  }))),
20
20
  react_1.default.createElement(core_1.Typography, { color: 'inherit', variant: 'body2', component: 'div', style: { flexShrink: 0 } },
21
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)),
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); } }), " / ".concat(props.ctrlPgnReturn.qtPaginas))),
23
23
  react_1.default.createElement(core_1.Box, { style: { flexShrink: 0, marginLeft: '20px' } },
24
24
  react_1.default.createElement(core_1.IconButton, { onClick: function () { return props.onChangePage('P'); }, disabled: props.ctrlPgnReturn.pgAtl === 1, title: 'P\u00E1gina Anterior' },
25
25
  react_1.default.createElement(md_1.MdKeyboardArrowLeft, null)),
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var core_1 = require("@material-ui/core");
7
7
  var prop_types_1 = __importDefault(require("prop-types"));
8
8
  var react_1 = __importDefault(require("react"));
9
- var useStyles = core_1.makeStyles(function (theme) { return ({
9
+ var useStyles = (0, core_1.makeStyles)(function (theme) { return ({
10
10
  progressContainer: {
11
11
  '& > div': {
12
12
  padding: '0px !important'
13
13
  }
14
14
  },
15
15
  progressBorder: {
16
- border: function (props) { return "3px solid " + (props.borderColor || props.preset.borderColor); },
16
+ border: function (props) { return "3px solid ".concat(props.borderColor || props.preset.borderColor); },
17
17
  borderRadius: '15px',
18
18
  },
19
19
  progressBack: {
@@ -34,7 +34,7 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
34
34
  position: 'absolute',
35
35
  top: '0px',
36
36
  right: '0',
37
- width: function (props) { return 100 - props.percnt + "%"; },
37
+ width: function (props) { return "".concat(100 - props.percnt, "%"); },
38
38
  minWidth: '5%',
39
39
  maxWidth: '95%',
40
40
  borderRadius: '0px 10px 10px 0px;',
@@ -46,11 +46,11 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
46
46
  position: 'relative',
47
47
  width: 'max-content',
48
48
  margin: '0 2px',
49
- paddingLeft: function (props) { return props.percnt > 94 ? '94%' : props.percnt < 5 ? '0' : props.percnt + "%"; },
50
- transform: function (props) { return props.percnt === 0 ? "translate(" + (props.compact ? '-25px, 1px' : '-10px, 0px') + ")" : props.percnt > 5 ? "translate(" + (props.compact ? '-30px, 1px' : '-15px, 0px') + ")" : ''; },
49
+ paddingLeft: function (props) { return props.percnt > 94 ? '94%' : props.percnt < 5 ? '0' : "".concat(props.percnt, "%"); },
50
+ transform: function (props) { return props.percnt === 0 ? "translate(".concat(props.compact ? '-25px, 1px' : '-10px, 0px', ")") : props.percnt > 5 ? "translate(".concat(props.compact ? '-30px, 1px' : '-15px, 0px', ")") : ''; },
51
51
  '& p': {
52
52
  margin: '0 0 5px',
53
- border: function (props) { return props.compact ? 0 : "2px solid " + (props.topIndicatorColor || props.preset.indicatorColor); },
53
+ border: function (props) { return props.compact ? 0 : "2px solid ".concat(props.topIndicatorColor || props.preset.indicatorColor); },
54
54
  padding: '0px 3px',
55
55
  borderRadius: '5px',
56
56
  minWidth: '25px',
@@ -66,7 +66,7 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
66
66
  left: '0px',
67
67
  width: '0px',
68
68
  height: '0px',
69
- borderTop: function (props) { return "5px solid " + (props.topIndicatorColor || props.preset.indicatorColor); },
69
+ borderTop: function (props) { return "5px solid ".concat(props.topIndicatorColor || props.preset.indicatorColor); },
70
70
  borderLeft: '10px solid transparent',
71
71
  borderRight: '10px solid transparent',
72
72
  display: 'block',
@@ -79,7 +79,7 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
79
79
  width: 'max-content',
80
80
  '& p': {
81
81
  margin: '0 7px 0',
82
- border: function (props) { return "2px solid " + (props.rightIndicatorColor || props.preset.indicatorColor); },
82
+ border: function (props) { return "2px solid ".concat(props.rightIndicatorColor || props.preset.indicatorColor); },
83
83
  padding: '0px 3px',
84
84
  borderRadius: '5px',
85
85
  minWidth: '25px',
@@ -96,7 +96,7 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
96
96
  height: '0px',
97
97
  borderTop: '10px solid transparent',
98
98
  borderBottom: '10px solid transparent',
99
- borderRight: function (props) { return "8px solid " + (props.rightIndicatorColor || props.preset.indicatorColor); },
99
+ borderRight: function (props) { return "8px solid ".concat(props.rightIndicatorColor || props.preset.indicatorColor); },
100
100
  },
101
101
  },
102
102
  collapse: {
@@ -106,29 +106,29 @@ var useStyles = core_1.makeStyles(function (theme) { return ({
106
106
  var selectPreset = function (preset, palette) {
107
107
  switch (preset) {
108
108
  case 'secondary':
109
- return { fullBarColor: palette.secondary.dark, borderColor: palette.secondary.dark, indicatorColor: palette.secondary.dark, barColor: "linear-gradient(90deg, " + palette.secondary.light + " 0%, " + palette.secondary.main + " 50%, " + palette.secondary.dark + " 100%)" };
109
+ return { fullBarColor: palette.secondary.dark, borderColor: palette.secondary.dark, indicatorColor: palette.secondary.dark, barColor: "linear-gradient(90deg, ".concat(palette.secondary.light, " 0%, ").concat(palette.secondary.main, " 50%, ").concat(palette.secondary.dark, " 100%)") };
110
110
  case 'success':
111
- return { fullBarColor: palette.success.dark, borderColor: palette.success.dark, indicatorColor: palette.success.dark, barColor: "linear-gradient(90deg, " + palette.success.light + " 0%, " + palette.success.main + " 50%, " + palette.success.dark + " 100%)" };
111
+ return { fullBarColor: palette.success.dark, borderColor: palette.success.dark, indicatorColor: palette.success.dark, barColor: "linear-gradient(90deg, ".concat(palette.success.light, " 0%, ").concat(palette.success.main, " 50%, ").concat(palette.success.dark, " 100%)") };
112
112
  case 'info':
113
- return { fullBarColor: palette.info.dark, borderColor: palette.info.dark, indicatorColor: palette.info.dark, barColor: "linear-gradient(90deg, " + palette.info.light + " 0%, " + palette.info.main + " 50%, " + palette.info.dark + " 100%)" };
113
+ return { fullBarColor: palette.info.dark, borderColor: palette.info.dark, indicatorColor: palette.info.dark, barColor: "linear-gradient(90deg, ".concat(palette.info.light, " 0%, ").concat(palette.info.main, " 50%, ").concat(palette.info.dark, " 100%)") };
114
114
  case 'warning':
115
- return { fullBarColor: palette.warning.dark, borderColor: palette.warning.dark, indicatorColor: palette.warning.dark, barColor: "linear-gradient(90deg, " + palette.warning.light + " 0%, " + palette.warning.main + " 50%, " + palette.warning.dark + " 100%)" };
115
+ return { fullBarColor: palette.warning.dark, borderColor: palette.warning.dark, indicatorColor: palette.warning.dark, barColor: "linear-gradient(90deg, ".concat(palette.warning.light, " 0%, ").concat(palette.warning.main, " 50%, ").concat(palette.warning.dark, " 100%)") };
116
116
  case 'danger':
117
- return { fullBarColor: palette.error.dark, borderColor: palette.error.dark, indicatorColor: palette.error.dark, barColor: "linear-gradient(90deg, " + palette.error.light + " 0%, " + palette.error.main + " 50%, " + palette.error.dark + " 100%)" };
117
+ return { fullBarColor: palette.error.dark, borderColor: palette.error.dark, indicatorColor: palette.error.dark, barColor: "linear-gradient(90deg, ".concat(palette.error.light, " 0%, ").concat(palette.error.main, " 50%, ").concat(palette.error.dark, " 100%)") };
118
118
  case 'hot':
119
119
  return { fullBarColor: 'rgba(244,67,54,1)', borderColor: '#d84315', indicatorColor: '#f44336', barColor: 'linear-gradient(90deg, rgba(255,235,59,1) 0%, rgba(255,152,0,1) 50%, rgba(244,67,54,1) 100%)' };
120
120
  case 'cold':
121
121
  return { fullBarColor: '#673ab7', borderColor: '#5e35b1', indicatorColor: '#512da8', barColor: 'linear-gradient(90deg, #2196f3 0%, #3f51b5 50%, #673ab7 100%)' };
122
122
  default:
123
- return { fullBarColor: palette.primary.dark, borderColor: palette.primary.dark, indicatorColor: palette.primary.dark, barColor: "linear-gradient(90deg, " + palette.primary.light + " 0%, " + palette.primary.main + " 50%, " + palette.primary.dark + " 100%)" };
123
+ return { fullBarColor: palette.primary.dark, borderColor: palette.primary.dark, indicatorColor: palette.primary.dark, barColor: "linear-gradient(90deg, ".concat(palette.primary.light, " 0%, ").concat(palette.primary.main, " 50%, ").concat(palette.primary.dark, " 100%)") };
124
124
  }
125
125
  };
126
126
  function ProgressBar(_a) {
127
127
  var valueLabel = _a.valueLabel, valueSuffix = _a.valueSuffix, maxValueSuffix = _a.maxValueSuffix, maxValueLabel = _a.maxValueLabel, value = _a.value, maxValue = _a.maxValue, rightIndicatorColor = _a.rightIndicatorColor, topIndicatorColor = _a.topIndicatorColor, borderColor = _a.borderColor, barColor = _a.barColor, fullBarColor = _a.fullBarColor, preset = _a.preset, compact = _a.compact, className = _a.className;
128
- var theme = core_1.useTheme();
128
+ var theme = (0, core_1.useTheme)();
129
129
  var percnt = maxValue ? value * 100 / maxValue : 0;
130
130
  var classes = useStyles({ percnt: percnt, rightIndicatorColor: rightIndicatorColor, topIndicatorColor: topIndicatorColor, borderColor: borderColor, barColor: barColor, fullBarColor: fullBarColor, preset: selectPreset(preset, theme.palette), compact: compact });
131
- return (react_1.default.createElement(core_1.Grid, { container: true, spacing: 2, className: classes.progressContainer + " " + className, style: { marginTop: compact ? '-10px' : undefined } },
131
+ return (react_1.default.createElement(core_1.Grid, { container: true, spacing: 2, className: "".concat(classes.progressContainer, " ").concat(className), style: { marginTop: compact ? '-10px' : undefined } },
132
132
  react_1.default.createElement(core_1.Grid, { item: true, xs: 10, style: { maxWidth: '80%', flexBasis: '80%' } },
133
133
  react_1.default.createElement(core_1.Collapse, { in: value > 0, className: classes.collapse },
134
134
  react_1.default.createElement("div", { className: classes.topIndicator },
@@ -137,7 +137,7 @@ function ProgressBar(_a) {
137
137
  valueSuffix)))),
138
138
  react_1.default.createElement(core_1.Grid, { item: true, xs: 2, style: { maxWidth: '20%', flexBasis: '20%' } }),
139
139
  react_1.default.createElement(core_1.Grid, { item: true, xs: 10, style: { maxWidth: '80%', flexBasis: '80%' } },
140
- react_1.default.createElement("div", { item: true, title: "Porcentagem " + percnt.toFixed(2) + "%", className: classes.progressBorder },
140
+ react_1.default.createElement("div", { item: true, title: "Porcentagem ".concat(percnt.toFixed(2), "%"), className: classes.progressBorder },
141
141
  react_1.default.createElement("div", { className: classes.progressBack },
142
142
  react_1.default.createElement("div", { className: classes.progressBar }),
143
143
  react_1.default.createElement("div", { className: classes.progressCover })))),
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
14
  if (k2 === undefined) k2 = k;
15
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
16
20
  }) : (function(o, m, k, k2) {
17
21
  if (k2 === undefined) k2 = k;
18
22
  o[k2] = m[k];
@@ -47,15 +51,15 @@ var react_1 = __importStar(require("react"));
47
51
  * @deprecated
48
52
  */
49
53
  var ArgousSimpleTable = function (props) {
50
- var useStyles = styles_1.makeStyles({
54
+ var useStyles = (0, styles_1.makeStyles)({
51
55
  table: {
52
56
  minWidth: 650,
53
57
  },
54
58
  });
55
- var _a = react_1.useState({ acao: '', pgAtl: 1, qtRegs: 0 }), ctrlPgn = _a[0], setCtrlPgn = _a[1];
56
- var _b = react_1.useState(false), iniciado = _b[0], setIniciado = _b[1];
57
- var _c = react_1.useState({ tpOrdem: 'D' }), tpOrdenacao = _c[0], setTpOrdenacao = _c[1];
58
- var _d = react_1.useState([]), listaChildrens = _d[0], setListaChildrens = _d[1];
59
+ var _a = (0, react_1.useState)({ acao: '', pgAtl: 1, qtRegs: 0 }), ctrlPgn = _a[0], setCtrlPgn = _a[1];
60
+ var _b = (0, react_1.useState)(false), iniciado = _b[0], setIniciado = _b[1];
61
+ var _c = (0, react_1.useState)({ tpOrdem: 'D' }), tpOrdenacao = _c[0], setTpOrdenacao = _c[1];
62
+ var _d = (0, react_1.useState)([]), listaChildrens = _d[0], setListaChildrens = _d[1];
59
63
  var classes = useStyles();
60
64
  function getCellContent(vlr, line) {
61
65
  if (props.columnOptions) {
@@ -88,7 +92,7 @@ var ArgousSimpleTable = function (props) {
88
92
  setCtrlPgn(__assign(__assign({}, ctrlPgn), { qtRegs: prm }));
89
93
  }
90
94
  function onChangePageNumber(prm) {
91
- setCtrlPgn(__assign(__assign({}, ctrlPgn), { acao: "S=" + parseInt(prm), pgAtl: parseInt(prm), qtRegs: props.ctrlPgnReturn.qtRegs, qtPaginas: props.ctrlPgnReturn.qtPaginas }));
95
+ setCtrlPgn(__assign(__assign({}, ctrlPgn), { acao: "S=".concat(parseInt(prm)), pgAtl: parseInt(prm), qtRegs: props.ctrlPgnReturn.qtRegs, qtPaginas: props.ctrlPgnReturn.qtPaginas }));
92
96
  }
93
97
  function selecionaOrdenacao(prm) {
94
98
  if (tpOrdenacao.indOrdem) {
@@ -126,7 +130,7 @@ var ArgousSimpleTable = function (props) {
126
130
  }
127
131
  return [];
128
132
  }
129
- react_1.useEffect(function () {
133
+ (0, react_1.useEffect)(function () {
130
134
  if (iniciado) {
131
135
  props.ctrlPgn({ ctrlPgn: ctrlPgn });
132
136
  }
@@ -150,7 +154,7 @@ var ArgousSimpleTable = function (props) {
150
154
  ordena = props.ctrlPgnReturn.ordCols[index];
151
155
  }
152
156
  if (ordena) {
153
- return (react_1.default.createElement(TableCell_1.default, { onClick: function () { return selecionaOrdenacao(index); }, style: { width: "" + width, whiteSpace: 'nowrap', cursor: 'pointer', fontSize: 14 }, key: index },
157
+ return (react_1.default.createElement(TableCell_1.default, { onClick: function () { return selecionaOrdenacao(index); }, style: { width: "".concat(width), whiteSpace: 'nowrap', cursor: 'pointer', fontSize: 14 }, key: index },
154
158
  coluna,
155
159
  (tpOrdenacao.indOrdem !== undefined) && (tpOrdenacao.indOrdem !== index) &&
156
160
  react_1.default.createElement("i", { style: { right: '-10px', position: 'relative', color: '#999' }, className: 'glyph-icon tooltip-button demo-icon icon-sort' }),
@@ -161,9 +165,9 @@ var ArgousSimpleTable = function (props) {
161
165
  (tpOrdenacao.indOrdem !== undefined) && (tpOrdenacao.indOrdem === index) && (tpOrdenacao.tpOrdem === 'D') &&
162
166
  react_1.default.createElement("i", { style: { right: '-10px', position: 'relative' }, className: 'glyph-icon tooltip-button demo-icon icon-sort-amount-desc' })));
163
167
  }
164
- return (react_1.default.createElement(TableCell_1.default, { style: { width: "" + width, fontSize: 14 }, key: index }, coluna));
168
+ return (react_1.default.createElement(TableCell_1.default, { style: { width: "".concat(width), fontSize: 14 }, key: index }, coluna));
165
169
  }),
166
- listaChildrens.map(function (item, index) { return (react_1.default.createElement(TableCell_1.default, { style: { width: '30px', fontSize: 14 }, key: "act" + index }, " ")); }))),
170
+ listaChildrens.map(function (item, index) { return (react_1.default.createElement(TableCell_1.default, { style: { width: '30px', fontSize: 14 }, key: "act".concat(index) }, " ")); }))),
167
171
  react_1.default.createElement(TableBody_1.default, null, props.rows && props.rows.map(function (linha, index) {
168
172
  if (props.maxRows) {
169
173
  if (index >= props.maxRows) {
@@ -189,7 +193,7 @@ var ArgousSimpleTable = function (props) {
189
193
  }
190
194
  return (react_1.default.createElement(TableCell_1.default, { className: aClasse, style: oEstilo, key: keyInd }, getCellContent(linha[ind], keyInd)));
191
195
  }),
192
- listaChildrens.map(function (act, index3) { return (react_1.default.createElement(TableCell_1.default, { style: { width: '30px' }, key: "act_" + index3 }, react_1.default.cloneElement(act, { item: linha }))); })));
196
+ listaChildrens.map(function (act, index3) { return (react_1.default.createElement(TableCell_1.default, { style: { width: '30px' }, key: "act_".concat(index3) }, react_1.default.cloneElement(act, { item: linha }))); })));
193
197
  }
194
198
  return (react_1.default.createElement(TableRow_1.default, { key: index, style: estilo, onClick: function () { return clickNaLinha(index); } }, linha.map(function (ln, keyInd) {
195
199
  return (react_1.default.createElement(TableCell_1.default, { style: { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden' }, key: keyInd }, getCellContent(ln, keyInd)));
@@ -27,7 +27,11 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
29
  if (k2 === undefined) k2 = k;
30
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
30
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
32
+ desc = { enumerable: true, get: function() { return m[k]; } };
33
+ }
34
+ Object.defineProperty(o, k2, desc);
31
35
  }) : (function(o, m, k, k2) {
32
36
  if (k2 === undefined) k2 = k;
33
37
  o[k2] = m[k];
@@ -81,12 +85,12 @@ var AutoComplete = /** @class */ (function (_super) {
81
85
  _this.buscarServidorEMensagensFeedback = function (value) {
82
86
  var _a = _this.props.dados, dados = _a === void 0 ? {} : _a;
83
87
  clearTimeout(_this.searchTimeout);
84
- fieldsRedux_1.setField("results-" + _this.props.field, { value: undefined });
88
+ (0, fieldsRedux_1.setField)("results-".concat(_this.props.field), { value: undefined });
85
89
  _this.setState({ typeMessage: 2, resultHeight: 50 });
86
90
  _this.searchTimeout = setTimeout(function () {
87
- api_1.serverAction(_this.props.method, __assign({ value: value }, dados)).then(function (res) {
91
+ (0, api_1.serverAction)(_this.props.method, __assign({ value: value }, dados)).then(function (res) {
88
92
  if (res.result) {
89
- fieldsRedux_1.setField("results-" + _this.props.field, { value: res.result });
93
+ (0, fieldsRedux_1.setField)("results-".concat(_this.props.field), { value: res.result });
90
94
  _this.setState({ typeMessage: 0, resultHeight: res.result.length * 38 });
91
95
  }
92
96
  else {
@@ -97,7 +101,7 @@ var AutoComplete = /** @class */ (function (_super) {
97
101
  };
98
102
  _this.focusTypeMessage = function (e) {
99
103
  var thisField = _this.props.getField();
100
- var resultsData = fieldsRedux_1.getField("results-" + _this.props.field, 'value');
104
+ var resultsData = (0, fieldsRedux_1.getField)("results-".concat(_this.props.field), 'value');
101
105
  if (!thisField.selected) {
102
106
  if (resultsData.length === 0) {
103
107
  _this.setState({ typeMessage: 1, resultHeight: 50 });
@@ -125,10 +129,10 @@ var AutoComplete = /** @class */ (function (_super) {
125
129
  for (var _i = 0, _b = aliasInputValue || alias; _i < _b.length; _i++) {
126
130
  var a = _b[_i];
127
131
  if (typeof value[a] !== 'undefined')
128
- v += value[a].toString().trim() + " ";
132
+ v += "".concat(value[a].toString().trim(), " ");
129
133
  }
130
- fieldsRedux_1.setField(_this.props.field, 'value', v);
131
- fieldsRedux_1.setField(_this.props.field, 'selected', value);
134
+ (0, fieldsRedux_1.setField)(_this.props.field, 'value', v);
135
+ (0, fieldsRedux_1.setField)(_this.props.field, 'selected', value);
132
136
  if (onChangeSelected)
133
137
  onChangeSelected(value);
134
138
  };
@@ -136,13 +140,13 @@ var AutoComplete = /** @class */ (function (_super) {
136
140
  }
137
141
  AutoComplete.prototype.componentDidUpdate = function (prevProps, prevState) {
138
142
  if (prevState.typeMessage !== 0 && this.state.typeMessage === 0) {
139
- var resultsDiv = document.getElementById("results-" + this.props.field);
143
+ var resultsDiv = document.getElementById("results-".concat(this.props.field));
140
144
  if (resultsDiv)
141
145
  this.setState({ resultHeight: resultsDiv.clientHeight });
142
146
  }
143
147
  };
144
148
  AutoComplete.prototype.componentWillUnmount = function () {
145
- this.props.clearField("results-" + this.props.field);
149
+ this.props.clearField("results-".concat(this.props.field));
146
150
  clearTimeout(this.searchTimeout);
147
151
  clearTimeout(this.blurTimeout);
148
152
  };
@@ -162,7 +166,7 @@ var AutoComplete = /** @class */ (function (_super) {
162
166
  typeMessage === 1 && 'Escreva para começar a buscar',
163
167
  typeMessage === 2 && 'Pesquisando...',
164
168
  typeMessage === 3 && 'Nenhum resultado foi encontrado')),
165
- react_1.default.createElement(__1.SimpleTable, { id: "results-" + field, field: "results-" + field, alias: alias, head: typeMessage === 0 ? head : undefined, onClick: this.selectResult, className: 'reset-margin' }))))))));
169
+ react_1.default.createElement(__1.SimpleTable, { id: "results-".concat(field), field: "results-".concat(field), alias: alias, head: typeMessage === 0 ? head : undefined, onClick: this.selectResult, className: 'reset-margin' }))))))));
166
170
  };
167
171
  return AutoComplete;
168
172
  }(react_1.Component));
@@ -182,4 +186,4 @@ AutoComplete.propTypes = {
182
186
  showOnlyResults: prop_types_1.default.bool,
183
187
  dados: prop_types_1.default.object
184
188
  };
185
- exports.default = fieldsRedux_1.createField(AutoComplete, { disableInitField: true });
189
+ exports.default = (0, fieldsRedux_1.createField)(AutoComplete, { disableInitField: true });