argous 1.2.245 → 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
@@ -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];
@@ -44,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
44
48
  function verb(n) { return function (v) { return step([n, v]); }; }
45
49
  function step(op) {
46
50
  if (f) throw new TypeError("Generator is already executing.");
47
- while (_) try {
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
48
52
  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
53
  if (y = 0, t) op = [op[0] & 2, t.value];
50
54
  switch (op[0]) {
@@ -84,8 +88,8 @@ var react_1 = __importStar(require("react"));
84
88
  var md_1 = require("react-icons/md");
85
89
  var DropArea = function (_a, ref) {
86
90
  var children = _a.children, onChange = _a.onChange, style = _a.style, props = __rest(_a, ["children", "onChange", "style"]);
87
- var _b = react_1.useState(false), abrir = _b[0], setAbrir = _b[1];
88
- var _c = react_1.useState(false), loading = _c[0], setLoading = _c[1];
91
+ var _b = (0, react_1.useState)(false), abrir = _b[0], setAbrir = _b[1];
92
+ var _c = (0, react_1.useState)(false), loading = _c[0], setLoading = _c[1];
89
93
  /** @param {React.DragEvent<HTMLDivElement>} e */
90
94
  var dropArquivo = function (e) { return __awaiter(void 0, void 0, void 0, function () {
91
95
  var finalArray;
@@ -94,7 +98,7 @@ var DropArea = function (_a, ref) {
94
98
  case 0:
95
99
  e.preventDefault();
96
100
  setLoading(true);
97
- return [4 /*yield*/, Html5FileSelector_1.getDroppedOrSelectedFiles(e)];
101
+ return [4 /*yield*/, (0, Html5FileSelector_1.getDroppedOrSelectedFiles)(e)];
98
102
  case 1:
99
103
  finalArray = _a.sent();
100
104
  // console.log(temp, temp.reduce((acc, { fileObject, fullPath }) => {
@@ -125,20 +129,20 @@ var DropArea = function (_a, ref) {
125
129
  react_1.default.createElement(core_1.CircularProgress, { disableShrink: true }))
126
130
  :
127
131
  react_1.default.createElement(md_1.MdFileUpload, { style: { width: '100%', height: '99%' } }))),
128
- deepMap(children, function (filho) { return filho.type === __1.FilePreparer ? react_1.cloneElement(filho, __assign(__assign({}, filho.props), { ref: ref })) : filho; })));
132
+ deepMap(children, function (filho) { return filho.type === __1.FilePreparer ? (0, react_1.cloneElement)(filho, __assign(__assign({}, filho.props), { ref: ref })) : filho; })));
129
133
  };
130
- exports.default = react_1.forwardRef(DropArea);
134
+ exports.default = (0, react_1.forwardRef)(DropArea);
131
135
  var deepMap = function (children, deepMapFn) {
132
136
  return react_1.Children.toArray(children).map(function (child, index, mapChildren) {
133
- if (react_1.isValidElement(child) && hasComplexChildren(child)) {
134
- return deepMapFn(react_1.cloneElement(child, __assign(__assign({}, child.props), { children: deepMap(child.props.children, deepMapFn) })));
137
+ if ((0, react_1.isValidElement)(child) && hasComplexChildren(child)) {
138
+ return deepMapFn((0, react_1.cloneElement)(child, __assign(__assign({}, child.props), { children: deepMap(child.props.children, deepMapFn) })));
135
139
  }
136
140
  return deepMapFn(child, index, mapChildren);
137
141
  });
138
142
  };
139
143
  var hasComplexChildren = function (element) {
140
- return react_1.isValidElement(element) &&
144
+ return (0, react_1.isValidElement)(element) &&
141
145
  hasChildren(element) &&
142
- react_1.Children.toArray(element.props.children).reduce(function (response, child) { return response || react_1.isValidElement(child); }, false);
146
+ react_1.Children.toArray(element.props.children).reduce(function (response, child) { return response || (0, react_1.isValidElement)(child); }, false);
143
147
  };
144
- var hasChildren = function (element) { return react_1.isValidElement(element) && element.props.children; };
148
+ var hasChildren = function (element) { return (0, react_1.isValidElement)(element) && element.props.children; };
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  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;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -59,7 +59,7 @@ function shouldIgnoreFile(file) {
59
59
  return DEFAULT_FILES_TO_IGNORE.indexOf(file.name) >= 0;
60
60
  }
61
61
  function copyString(aString) {
62
- return (" " + aString).slice(1);
62
+ return " ".concat(aString).slice(1);
63
63
  }
64
64
  function traverseDirectory(entry) {
65
65
  var reader = entry.createReader();
@@ -1,6 +1,6 @@
1
1
  import { Editor as TinyMCEEditor, EditorEvent, Events } from './tinymce/tinymce';
2
- export declare type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown;
3
- declare type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>;
2
+ export type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown;
3
+ type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>;
4
4
  export interface INativeEvents {
5
5
  onBeforePaste: EEventHandler<'beforepaste'>;
6
6
  onBlur: EEventHandler<'blur'>;
@@ -1,4 +1,4 @@
1
- export declare type CallbackFn = () => void;
1
+ export type CallbackFn = () => void;
2
2
  export interface ScriptItem {
3
3
  src: string;
4
4
  async?: boolean;
@@ -84,7 +84,7 @@ var createDocumentScriptLoader = function (doc) {
84
84
  }
85
85
  else {
86
86
  // create a new entry
87
- var id = Utils_1.uuid('tiny-');
87
+ var id = (0, Utils_1.uuid)('tiny-');
88
88
  lookup[item.src] = {
89
89
  id: id,
90
90
  src: item.src,
@@ -2,7 +2,7 @@ import { IAllProps } from './components/Editor';
2
2
  import { IEventPropTypes } from './components/EditorPropTypes';
3
3
  import { Editor as TinyMCEEditor, EditorEvent } from './tinymce/tinymce';
4
4
  export declare const isFunction: (x: unknown) => x is Function;
5
- declare type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined;
5
+ type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined;
6
6
  export declare const configHandlers2: <H>(handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: <K extends keyof import("./Events").IEvents>(lookup: PropLookup, key: K) => H, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, H>) => void;
7
7
  export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>, lookup: PropLookup) => void;
8
8
  export declare const uuid: (prefix: string) => string;
@@ -27,7 +27,7 @@ var configHandlers2 = function (handlerLookup, on, off, adapter, prevProps, prop
27
27
  };
28
28
  exports.configHandlers2 = configHandlers2;
29
29
  var configHandlers = function (editor, prevProps, props, boundHandlers, lookup) {
30
- return exports.configHandlers2(lookup, editor.on.bind(editor), editor.off.bind(editor),
30
+ return (0, exports.configHandlers2)(lookup, editor.on.bind(editor), editor.off.bind(editor),
31
31
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
32
32
  function (handlerLookup, key) { return function (e) { var _a; return (_a = handlerLookup(key)) === null || _a === void 0 ? void 0 : _a(e, editor); }; }, prevProps, props, boundHandlers);
33
33
  };
@@ -3,7 +3,7 @@ import { IEvents } from '../Events';
3
3
  import { ScriptItem } from '../ScriptLoader2';
4
4
  import { Editor as TinyMCEEditor, TinyMCE } from '../tinymce/tinymce';
5
5
  import * as React from 'react';
6
- declare type EditorOptions = Parameters<TinyMCE['init']>[0];
6
+ type EditorOptions = Parameters<TinyMCE['init']>[0];
7
7
  export interface IProps {
8
8
  apiKey: string;
9
9
  id: string;
@@ -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];
@@ -54,8 +58,9 @@ var React = __importStar(require("react"));
54
58
  var Editor = /** @class */ (function (_super) {
55
59
  __extends(Editor, _super);
56
60
  function Editor(props) {
61
+ var _this = this;
57
62
  var _a, _b, _c;
58
- var _this = _super.call(this, props) || this;
63
+ _this = _super.call(this, props) || this;
59
64
  _this.rollbackTimer = undefined;
60
65
  _this.valueCursor = undefined;
61
66
  _this.rollbackChange = function () {
@@ -105,7 +110,7 @@ var Editor = /** @class */ (function (_super) {
105
110
  }
106
111
  if (newContent !== _this.currentContent) {
107
112
  _this.currentContent = newContent;
108
- if (Utils_1.isFunction(_this.props.onEditorChange)) {
113
+ if ((0, Utils_1.isFunction)(_this.props.onEditorChange)) {
109
114
  _this.props.onEditorChange(newContent, editor);
110
115
  }
111
116
  }
@@ -123,7 +128,7 @@ var Editor = /** @class */ (function (_super) {
123
128
  if (!target) {
124
129
  return; // Editor has been unmounted
125
130
  }
126
- if (!Utils_1.isInDoc(target)) {
131
+ if (!(0, Utils_1.isInDoc)(target)) {
127
132
  // this is probably someone trying to help by rendering us offscreen
128
133
  // but we can't do that because the editor iframe must be in the document
129
134
  // in order to have state
@@ -141,11 +146,11 @@ var Editor = /** @class */ (function (_super) {
141
146
  }
142
147
  return;
143
148
  }
144
- var tinymce = TinyMCE_1.getTinymce(_this.view);
149
+ var tinymce = (0, TinyMCE_1.getTinymce)(_this.view);
145
150
  if (!tinymce) {
146
151
  throw new Error('tinymce should have been loaded into global scope');
147
152
  }
148
- var finalInit = __assign(__assign({}, _this.props.init), { selector: undefined, target: target, readonly: _this.props.disabled, inline: _this.inline, plugins: Utils_1.mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar, setup: function (editor) {
153
+ var finalInit = __assign(__assign({}, _this.props.init), { selector: undefined, target: target, readonly: _this.props.disabled, inline: _this.inline, plugins: (0, Utils_1.mergePlugins)((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar, setup: function (editor) {
149
154
  _this.editor = editor;
150
155
  _this.bindHandlers({});
151
156
  // When running in inline mode the editor gets the initial value
@@ -154,12 +159,12 @@ var Editor = /** @class */ (function (_super) {
154
159
  // to remove XSS in the react integration so we have a chicken and egg
155
160
  // problem... We avoid it by sneaking in a set content before the first
156
161
  // "official" setContent and using TinyMCE to do the sanitization.
157
- if (_this.inline && !Utils_1.isTextareaOrInput(target)) {
162
+ if (_this.inline && !(0, Utils_1.isTextareaOrInput)(target)) {
158
163
  editor.once('PostRender', function (_evt) {
159
164
  editor.setContent(_this.getInitialValue(), { no_events: true });
160
165
  });
161
166
  }
162
- if (_this.props.init && Utils_1.isFunction(_this.props.init.setup)) {
167
+ if (_this.props.init && (0, Utils_1.isFunction)(_this.props.init.setup)) {
163
168
  _this.props.init.setup(editor);
164
169
  }
165
170
  }, init_instance_callback: function (editor) {
@@ -176,21 +181,21 @@ var Editor = /** @class */ (function (_super) {
176
181
  editor.setDirty(false);
177
182
  }
178
183
  var disabled = (_b = _this.props.disabled) !== null && _b !== void 0 ? _b : false;
179
- Utils_1.setMode(_this.editor, disabled ? 'readonly' : 'design');
184
+ (0, Utils_1.setMode)(_this.editor, disabled ? 'readonly' : 'design');
180
185
  // ensure existing init_instance_callback is called
181
- if (_this.props.init && Utils_1.isFunction(_this.props.init.init_instance_callback)) {
186
+ if (_this.props.init && (0, Utils_1.isFunction)(_this.props.init.init_instance_callback)) {
182
187
  _this.props.init.init_instance_callback(editor);
183
188
  }
184
189
  } });
185
190
  if (!_this.inline) {
186
191
  target.style.visibility = '';
187
192
  }
188
- if (Utils_1.isTextareaOrInput(target)) {
193
+ if ((0, Utils_1.isTextareaOrInput)(target)) {
189
194
  target.value = _this.getInitialValue();
190
195
  }
191
196
  tinymce.init(finalInit);
192
197
  };
193
- _this.id = _this.props.id || Utils_1.uuid('tiny-react');
198
+ _this.id = _this.props.id || (0, Utils_1.uuid)('tiny-react');
194
199
  _this.elementRef = React.createRef();
195
200
  _this.inline = (_c = (_a = _this.props.inline) !== null && _a !== void 0 ? _a : (_b = _this.props.init) === null || _b === void 0 ? void 0 : _b.inline) !== null && _c !== void 0 ? _c : false;
196
201
  _this.boundHandlers = {};
@@ -255,7 +260,7 @@ var Editor = /** @class */ (function (_super) {
255
260
  }
256
261
  if (this.props.disabled !== prevProps.disabled) {
257
262
  var disabled = (_b = this.props.disabled) !== null && _b !== void 0 ? _b : false;
258
- Utils_1.setMode(this.editor, disabled ? 'readonly' : 'design');
263
+ (0, Utils_1.setMode)(this.editor, disabled ? 'readonly' : 'design');
259
264
  }
260
265
  }
261
266
  }
@@ -263,7 +268,7 @@ var Editor = /** @class */ (function (_super) {
263
268
  Editor.prototype.componentDidMount = function () {
264
269
  var _this = this;
265
270
  var _a, _b, _c, _d, _e;
266
- if (TinyMCE_1.getTinymce(this.view) !== null) {
271
+ if ((0, TinyMCE_1.getTinymce)(this.view) !== null) {
267
272
  this.initialise();
268
273
  }
269
274
  else if (Array.isArray(this.props.tinymceScriptSrc) && this.props.tinymceScriptSrc.length === 0) {
@@ -304,13 +309,13 @@ var Editor = /** @class */ (function (_super) {
304
309
  };
305
310
  Editor.prototype.changeEvents = function () {
306
311
  var _a, _b, _c;
307
- var isIE = (_c = (_b = (_a = TinyMCE_1.getTinymce(this.view)) === null || _a === void 0 ? void 0 : _a.Env) === null || _b === void 0 ? void 0 : _b.browser) === null || _c === void 0 ? void 0 : _c.isIE();
312
+ var isIE = (_c = (_b = (_a = (0, TinyMCE_1.getTinymce)(this.view)) === null || _a === void 0 ? void 0 : _a.Env) === null || _b === void 0 ? void 0 : _b.browser) === null || _c === void 0 ? void 0 : _c.isIE();
308
313
  return (isIE
309
314
  ? 'change keyup compositionend setcontent CommentChange'
310
315
  : 'change input compositionend setcontent CommentChange');
311
316
  };
312
317
  Editor.prototype.beforeInputEvent = function () {
313
- return Utils_1.isBeforeInputEventAvailable() ? 'beforeinput SelectionChange' : 'SelectionChange';
318
+ return (0, Utils_1.isBeforeInputEventAvailable)() ? 'beforeinput SelectionChange' : 'SelectionChange';
314
319
  };
315
320
  Editor.prototype.renderInline = function () {
316
321
  var _a = this.props.tagName, tagName = _a === void 0 ? 'div' : _a;
@@ -348,7 +353,7 @@ var Editor = /** @class */ (function (_super) {
348
353
  // fallback to the cloud when the tinymceScriptSrc is not specified
349
354
  var channel = this.props.cloudChannel;
350
355
  var apiKey = this.props.apiKey ? this.props.apiKey : 'no-api-key';
351
- var cloudTinyJs = "https://cdn.tiny.cloud/1/" + apiKey + "/tinymce/" + channel + "/tinymce.min.js";
356
+ var cloudTinyJs = "https://cdn.tiny.cloud/1/".concat(apiKey, "/tinymce/").concat(channel, "/tinymce.min.js");
352
357
  return [{ src: cloudTinyJs, async: async, defer: defer }];
353
358
  };
354
359
  Editor.prototype.getInitialValue = function () {
@@ -364,7 +369,7 @@ var Editor = /** @class */ (function (_super) {
364
369
  var _this = this;
365
370
  if (this.editor !== undefined) {
366
371
  // typescript chokes trying to understand the type of the lookup function
367
- Utils_1.configHandlers(this.editor, prevProps, this.props, this.boundHandlers, function (key) { return _this.props[key]; });
372
+ (0, Utils_1.configHandlers)(this.editor, prevProps, this.props, this.boundHandlers, function (key) { return _this.props[key]; });
368
373
  // check if we should monitor editor changes
369
374
  var isValueControlled = function (p) { return p.onEditorChange !== undefined || p.value !== undefined; };
370
375
  var wasControlled = isValueControlled(prevProps);
@@ -1,10 +1,10 @@
1
1
  import { IProps } from './Editor';
2
2
  import { IEvents } from '../Events';
3
3
  import * as PropTypes from 'prop-types';
4
- export declare type CopyProps<T> = {
4
+ export type CopyProps<T> = {
5
5
  [P in keyof T]: PropTypes.Requireable<unknown>;
6
6
  };
7
- export declare type IEventPropTypes = CopyProps<IEvents>;
7
+ export type IEventPropTypes = CopyProps<IEvents>;
8
8
  export interface IEditorPropTypes extends IEventPropTypes, CopyProps<IProps> {
9
9
  }
10
10
  export declare const eventPropTypes: IEventPropTypes;
@@ -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];
@@ -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];
@@ -44,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
44
48
  function verb(n) { return function (v) { return step([n, v]); }; }
45
49
  function step(op) {
46
50
  if (f) throw new TypeError("Generator is already executing.");
47
- while (_) try {
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
48
52
  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
53
  if (y = 0, t) op = [op[0] & 2, t.value];
50
54
  switch (op[0]) {
@@ -76,10 +80,14 @@ var __rest = (this && this.__rest) || function (s, e) {
76
80
  }
77
81
  return t;
78
82
  };
79
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
80
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
81
- to[j] = from[i];
82
- return to;
83
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
85
+ if (ar || !(i in from)) {
86
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
87
+ ar[i] = from[i];
88
+ }
89
+ }
90
+ return to.concat(ar || Array.prototype.slice.call(from));
83
91
  };
84
92
  var __importDefault = (this && this.__importDefault) || function (mod) {
85
93
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -93,7 +101,7 @@ var clsx_1 = __importDefault(require("clsx"));
93
101
  var immer_1 = require("immer");
94
102
  var react_1 = __importStar(require("react"));
95
103
  var md_1 = require("react-icons/md");
96
- var useStyles = core_1.makeStyles(function (_theme) { return ({
104
+ var useStyles = (0, core_1.makeStyles)(function (_theme) { return ({
97
105
  tag: {
98
106
  margin: 3,
99
107
  maxWidth: 'calc(100% - 6px)',
@@ -186,11 +194,11 @@ var FilePreparer = function (_a, ref) {
186
194
  var _b, _c, _d;
187
195
  var onChange = _a.onChange, TextFieldProps = _a.TextFieldProps, placeholder = _a.placeholder, label = _a.label, multiple = _a.multiple, ChipProps = _a.ChipProps, disabled = _a.disabled, fileInputProps = _a.fileInputProps, valuePlaceHolder = _a.valuePlaceHolder, concat = _a.concat, _e = _a.initialFiles, initialFiles = _e === void 0 ? [] : _e, props = __rest(_a, ["onChange", "TextFieldProps", "placeholder", "label", "multiple", "ChipProps", "disabled", "fileInputProps", "valuePlaceHolder", "concat", "initialFiles"]);
188
196
  var classes = useStyles();
189
- var inputRef = react_1.useRef();
190
- var _f = react_1.useState(false), loading = _f[0], setLoading = _f[1];
191
- var _g = react_1.useState(initialFiles), files = _g[0], setFiles = _g[1];
192
- var _h = react_1.useState(), motivo = _h[0], setMotivo = _h[1];
193
- react_1.useEffect(function () {
197
+ var inputRef = (0, react_1.useRef)();
198
+ var _f = (0, react_1.useState)(false), loading = _f[0], setLoading = _f[1];
199
+ var _g = (0, react_1.useState)(initialFiles), files = _g[0], setFiles = _g[1];
200
+ var _h = (0, react_1.useState)(), motivo = _h[0], setMotivo = _h[1];
201
+ (0, react_1.useEffect)(function () {
194
202
  if (valuePlaceHolder && !multiple)
195
203
  setFiles(function (f) { return [__assign(__assign({}, f[0]), { name: valuePlaceHolder })]; });
196
204
  }, [valuePlaceHolder, multiple]);
@@ -200,7 +208,7 @@ var FilePreparer = function (_a, ref) {
200
208
  setFiles(v || []);
201
209
  onChange && onChange(multiple ? v || [] : (v || [])[0], motivo);
202
210
  };
203
- var preparaArquivo = react_1.useCallback(function (file) { return __awaiter(void 0, void 0, void 0, function () {
211
+ var preparaArquivo = (0, react_1.useCallback)(function (file) { return __awaiter(void 0, void 0, void 0, function () {
204
212
  var reqs, i, res, resps;
205
213
  return __generator(this, function (_a) {
206
214
  switch (_a.label) {
@@ -214,7 +222,7 @@ var FilePreparer = function (_a, ref) {
214
222
  else
215
223
  for (i = 0; i < file.length; i++)
216
224
  reqs.push(file[i]);
217
- return [4 /*yield*/, Promise.all(reqs.map(function (item) { return api_1.prepareFile(item.fileObject || item); }))];
225
+ return [4 /*yield*/, Promise.all(reqs.map(function (item) { return (0, api_1.prepareFile)(item.fileObject || item); }))];
218
226
  case 1:
219
227
  res = _a.sent();
220
228
  resps = [];
@@ -222,11 +230,11 @@ var FilePreparer = function (_a, ref) {
222
230
  if (item.idRecebimento)
223
231
  resps.push(__assign(__assign({}, item), { path: file[i].fullPath }));
224
232
  else
225
- api_2.setError(item.dsErro);
233
+ (0, api_2.setError)(item.dsErro);
226
234
  });
227
- setFiles(function (f) { return concat && multiple ? (__spreadArray(__spreadArray([], f), resps)) : resps; });
235
+ setFiles(function (f) { return concat && multiple ? (__spreadArray(__spreadArray([], f, true), resps, true)) : resps; });
228
236
  setLoading(false);
229
- onChange && onChange(multiple ? concat ? __spreadArray(__spreadArray([], files), resps) : resps : resps[0], motivo);
237
+ onChange && onChange(multiple ? concat ? __spreadArray(__spreadArray([], files, true), resps, true) : resps : resps[0], motivo);
230
238
  return [2 /*return*/];
231
239
  }
232
240
  });
@@ -235,8 +243,8 @@ var FilePreparer = function (_a, ref) {
235
243
  // onChange && onChange(multiple ? files : files[0], motivo);
236
244
  // setMotivo(undefined);
237
245
  // }, [files]);
238
- react_1.useImperativeHandle(ref, function () { return ({ preparaArquivo: preparaArquivo, loading: loading, setLoading: setLoading, setFiles: setFiles }); }, [preparaArquivo, loading]);
239
- var _j = lab_1.useAutocomplete({
246
+ (0, react_1.useImperativeHandle)(ref, function () { return ({ preparaArquivo: preparaArquivo, loading: loading, setLoading: setLoading, setFiles: setFiles }); }, [preparaArquivo, loading]);
247
+ var _j = (0, lab_1.useAutocomplete)({
240
248
  value: files,
241
249
  inputValue: files.length ? '' : placeholder || 'Selecione um arquivo',
242
250
  options: [],
@@ -244,26 +252,26 @@ var FilePreparer = function (_a, ref) {
244
252
  multiple: true,
245
253
  componentName: 'FilePreparer'
246
254
  }), getInputProps = _j.getInputProps, getTagProps = _j.getTagProps, setAnchorEl = _j.setAnchorEl, focusedTag = _j.focusedTag, getClearProps = _j.getClearProps, dirty = _j.dirty;
247
- var _k = react_1.useState(), editando = _k[0], setEditando = _k[1];
255
+ var _k = (0, react_1.useState)(), editando = _k[0], setEditando = _k[1];
248
256
  var handleEditing = function (index) { return function (e) {
249
257
  e.stopPropagation();
250
258
  if (files[index].idRecebimento)
251
259
  setEditando(index);
252
260
  }; };
253
261
  var handleRename = function (e) {
254
- setFiles(immer_1.produce(function (file) { return void (file[editando].name = e.target.value); }));
262
+ setFiles((0, immer_1.produce)(function (file) { return void (file[editando].name = e.target.value); }));
255
263
  setEditando(undefined);
256
264
  };
257
265
  var handleClick = function () { return !loading && !files.length && !disabled && inputRef.current.click(); };
258
- return (react_1.default.createElement("div", __assign({ className: clsx_1.default(classes.root, (_b = {}, _b[classes.loading] = loading, _b)) }, props),
266
+ return (react_1.default.createElement("div", __assign({ className: (0, clsx_1.default)(classes.root, (_b = {}, _b[classes.loading] = loading, _b)) }, props),
259
267
  react_1.default.createElement("input", __assign({ ref: inputRef, type: 'file' }, { multiple: multiple }, { onChange: function (e) { var _a, _b; return ((_b = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.length) && preparaArquivo(e.target.files); }, style: { display: 'none' } }, fileInputProps)),
260
268
  react_1.default.createElement(core_1.TextField, __assign({ ref: setAnchorEl, variant: 'outlined', label: label || 'Arquivo', margin: 'dense', onClick: handleClick, style: { flexGrow: '1' }, InputProps: {
261
269
  readOnly: true,
262
270
  startAdornment: files.length > 0 ?
263
- files.map(function (option, index) { return editando === index ? (react_1.default.createElement(core_1.FilledInput, { className: classes.rename, defaultValue: option.name, autoFocus: true, onBlur: handleRename, multiline: true, disableUnderline: true })) : (react_1.default.createElement(core_1.Chip, __assign({ className: clsx_1.default(classes.tag), label: option.name, onClick: handleEditing(index), clickable: true }, __assign({ disabled: disabled }, ChipProps), getTagProps({ index: index })))); }) : undefined,
271
+ files.map(function (option, index) { return editando === index ? (react_1.default.createElement(core_1.FilledInput, { className: classes.rename, defaultValue: option.name, autoFocus: true, onBlur: handleRename, multiline: true, disableUnderline: true })) : (react_1.default.createElement(core_1.Chip, __assign({ className: (0, clsx_1.default)(classes.tag), label: option.name, onClick: handleEditing(index), clickable: true }, __assign({ disabled: disabled }, ChipProps), getTagProps({ index: index })))); }) : undefined,
264
272
  className: classes.inputRoot,
265
273
  endAdornment: react_1.default.createElement("div", { className: classes.endAdornment }, loading ? react_1.default.createElement(core_1.CircularProgress, { disableShrink: true, size: 24 }) : react_1.default.createElement(react_1.default.Fragment, null,
266
- react_1.default.createElement(core_1.IconButton, __assign({ disabled: disabled }, getClearProps(), { className: clsx_1.default(classes.clearIndicator, (_c = {},
274
+ react_1.default.createElement(core_1.IconButton, __assign({ disabled: disabled }, getClearProps(), { className: (0, clsx_1.default)(classes.clearIndicator, (_c = {},
267
275
  _c[classes.clearIndicatorDirty] = dirty,
268
276
  _c)) }),
269
277
  react_1.default.createElement(md_1.MdClear, null)),
@@ -272,8 +280,8 @@ var FilePreparer = function (_a, ref) {
272
280
  inputRef.current.click();
273
281
  } },
274
282
  react_1.default.createElement(md_1.MdAttachment, null))))
275
- }, inputProps: __assign({ className: clsx_1.default(classes.input, (_d = {},
283
+ }, inputProps: __assign({ className: (0, clsx_1.default)(classes.input, (_d = {},
276
284
  _d[classes.inputFocused] = focusedTag === -1,
277
285
  _d)), disabled: disabled }, getInputProps()) }, TextFieldProps))));
278
286
  };
279
- exports.default = react_1.forwardRef(FilePreparer);
287
+ exports.default = (0, react_1.forwardRef)(FilePreparer);
@@ -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];
@@ -44,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
44
48
  function verb(n) { return function (v) { return step([n, v]); }; }
45
49
  function step(op) {
46
50
  if (f) throw new TypeError("Generator is already executing.");
47
- while (_) try {
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
48
52
  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
53
  if (y = 0, t) op = [op[0] & 2, t.value];
50
54
  switch (op[0]) {
@@ -123,7 +127,7 @@ function fileUploader(file, prm2, prm3, prm4) {
123
127
  file.preventDefault();
124
128
  arquivo = file.target.files[0];
125
129
  if (fileExtension && arquivo.name.split('.').pop() !== fileExtension)
126
- return [2 /*return*/, { dsErro: "O arquivo enviado deve ser do tipo \"." + fileExtension + "\".", status: false }];
130
+ return [2 /*return*/, { dsErro: "O arquivo enviado deve ser do tipo \".".concat(fileExtension, "\"."), status: false }];
127
131
  if (enviarDireto)
128
132
  return [2 /*return*/, confirmFileUpload(arquivo, retornaProgresso)];
129
133
  return [2 /*return*/, arquivo];
@@ -138,7 +142,7 @@ function confirmFileUpload(arquivo, retornaProgresso) {
138
142
  switch (_a.label) {
139
143
  case 0:
140
144
  if (!!idProtocolo) return [3 /*break*/, 2];
141
- return [4 /*yield*/, index_1.inicFileUpload({ nomeArquivo: arquivo.name, tamanhoArquivo: arquivo.size })];
145
+ return [4 /*yield*/, (0, index_1.inicFileUpload)({ nomeArquivo: arquivo.name, tamanhoArquivo: arquivo.size })];
142
146
  case 1:
143
147
  res_1 = _a.sent();
144
148
  if (res_1.dsErro)
@@ -158,7 +162,7 @@ function confirmFileUpload(arquivo, retornaProgresso) {
158
162
  parte = _a.sent();
159
163
  if (estadoPausado)
160
164
  return [2 /*return*/];
161
- return [4 /*yield*/, index_1.sendFilePart({ idProtocolo: idProtocolo, nrLote: lote, dadosLote: parte })];
165
+ return [4 /*yield*/, (0, index_1.sendFilePart)({ idProtocolo: idProtocolo, nrLote: lote, dadosLote: parte })];
162
166
  case 5:
163
167
  res_2 = _a.sent();
164
168
  if (res_2.snAck)
@@ -175,7 +179,7 @@ function confirmFileUpload(arquivo, retornaProgresso) {
175
179
  case 9:
176
180
  if (estadoPausado)
177
181
  return [2 /*return*/, { arquivo: arquivo, retornaProgresso: retornaProgresso }];
178
- return [4 /*yield*/, index_1.endFileUpload({ idProtocolo: idProtocolo })];
182
+ return [4 /*yield*/, (0, index_1.endFileUpload)({ idProtocolo: idProtocolo })];
179
183
  case 10:
180
184
  res = _a.sent();
181
185
  estadoPausado = false;
@@ -207,7 +211,7 @@ function retomaUpload(dados) {
207
211
  return confirmFileUpload(dados.arquivo, dados.retornaProgresso);
208
212
  }
209
213
  exports.retomaUpload = retomaUpload;
210
- exports.ColorLinearProgress = core_1.withStyles({
214
+ exports.ColorLinearProgress = (0, core_1.withStyles)({
211
215
  root: {
212
216
  margin: '5px 0px 0px 5px'
213
217
  },
@@ -245,11 +249,11 @@ function FileUploader(_a) {
245
249
  // ToDo fazer aceitar mais de uma extensao
246
250
  // ToDo se inspirar no layout do uploader do sistema de chamados para fazer a versao default
247
251
  var extensao = _a.extensao, funcaoRetorno = _a.funcaoRetorno, enviarDireto = _a.enviarDireto, variant = _a.variant;
248
- var _b = react_1.useState(0), progresso = _b[0], setProgresso = _b[1];
249
- var _c = react_1.useState({}), aguardando = _c[0], setAguardando = _c[1];
250
- var _d = react_1.useState({}), infoPausa = _d[0], setInfoPausa = _d[1];
251
- var _e = react_1.useState(0), idKey = _e[0], setIdKey = _e[1];
252
- react_1.useEffect(function () {
252
+ var _b = (0, react_1.useState)(0), progresso = _b[0], setProgresso = _b[1];
253
+ var _c = (0, react_1.useState)({}), aguardando = _c[0], setAguardando = _c[1];
254
+ var _d = (0, react_1.useState)({}), infoPausa = _d[0], setInfoPausa = _d[1];
255
+ var _e = (0, react_1.useState)(0), idKey = _e[0], setIdKey = _e[1];
256
+ (0, react_1.useEffect)(function () {
253
257
  setIdKey(Math.floor(Math.random() * 100000) + 1);
254
258
  return function () { return cancelaEnvio(); };
255
259
  // eslint-disable-next-line
@@ -323,7 +327,7 @@ function FileUploader(_a) {
323
327
  switch (_a.label) {
324
328
  case 0:
325
329
  if (!idProtocolo) return [3 /*break*/, 2];
326
- return [4 /*yield*/, index_1.cancelFileUpload({ idProtocolo: idProtocolo })];
330
+ return [4 /*yield*/, (0, index_1.cancelFileUpload)({ idProtocolo: idProtocolo })];
327
331
  case 1:
328
332
  res = _a.sent();
329
333
  if (funcaoRetorno)
@@ -393,10 +397,10 @@ function FileUploader(_a) {
393
397
  react_1.default.createElement("button", { className: 'btn btn-default', style: estiloBotoesCompact, onClick: function () { return cancelaEnvio(); } },
394
398
  react_1.default.createElement("i", { className: 'glyph-icon icon-stop', title: 'Cancelar' }))))),
395
399
  (progresso === 0 && !aguardando.name) && (react_1.default.createElement("div", null,
396
- react_1.default.createElement("input", { id: "FileUploader_" + idKey, className: 'float-left', type: 'file', onChange: function (e) {
400
+ react_1.default.createElement("input", { id: "FileUploader_".concat(idKey), className: 'float-left', type: 'file', onChange: function (e) {
397
401
  carregaArquivo(e);
398
402
  }, style: { display: 'none' } }),
399
- react_1.default.createElement("button", { className: 'btn btn-default', style: { width: '50px', padding: '0px', border: 0, borderRadius: '15px' }, onClick: function () { return document.getElementById("FileUploader_" + idKey).click(); } },
403
+ react_1.default.createElement("button", { className: 'btn btn-default', style: { width: '50px', padding: '0px', border: 0, borderRadius: '15px' }, onClick: function () { return document.getElementById("FileUploader_".concat(idKey)).click(); } },
400
404
  react_1.default.createElement("svg", { viewBox: '0 0 1000 1000' },
401
405
  react_1.default.createElement("g", { transform: 'translate(0.000000,512.000000) scale(0.100000,-0.100000)' },
402
406
  react_1.default.createElement("path", { d: 'M1137.2,4987.5c-187.6-65.1-325.5-204.9-390.6-394.4C718,4510.7,716,4114.4,716,120.7c0-3980.3,1.9-4390,30.6-4478.1c47.9-145.5,151.3-268,294.8-346.5l124.4-68.9l1378.5-5.7c758.2-1.9,1527.8-1.9,1711.6,0l333.1,5.7l-141.7,109.1c-78.5,59.4-225.9,195.3-331.2,300.6l-189.5,193.4H2628.7h-1300V118.8v4288.5h1837.9h1836l5.8-999.4l5.7-1001.3l47.9-95.7c59.4-122.5,174.2-237.4,296.8-296.8l95.7-47.9l1001.3-5.7l999.4-5.7v-371.4V1212l107.2-30.6c61.3-17.2,187.6-65.1,283.3-107.2c95.7-42.1,185.7-82.3,199.1-88.1c17.2-7.7,23,157,23,790.7V2579L6846.4,3800.4L5626.8,5020H3425.1C1474.2,5018.1,1213.8,5014.3,1137.2,4987.5z M7436,2584.7c0-9.6-409.7-15.3-909.4-15.3h-909.4v922.8v924.7l909.4-909.4C7026.3,3007.8,7436,2592.4,7436,2584.7z' }),
@@ -405,7 +409,7 @@ function FileUploader(_a) {
405
409
  (progresso === 0 && aguardando.name) && (react_1.default.createElement("div", null,
406
410
  react_1.default.createElement("button", { className: 'btn btn-danger', style: { width: '50px', padding: '0px', border: 0, borderRadius: '15px' }, onClick: function () { return setAguardando({}); }, title: 'Cancelar Envio' },
407
411
  react_1.default.createElement("i", { style: { fontSize: '35px' }, className: 'glyph-icon icon-remove' })),
408
- react_1.default.createElement("button", { className: 'btn btn-green', style: { width: '50px', padding: '0px', border: 0, borderRadius: '15px' }, onClick: function () { return enviaArquivo(); }, title: "Enviar arquivo: '" + aguardando.name + "'" },
412
+ react_1.default.createElement("button", { className: 'btn btn-green', style: { width: '50px', padding: '0px', border: 0, borderRadius: '15px' }, onClick: function () { return enviaArquivo(); }, title: "Enviar arquivo: '".concat(aguardando.name, "'") },
409
413
  react_1.default.createElement("i", { style: { fontSize: '35px' }, className: 'glyph-icon icon-send' }))))));
410
414
  return (react_1.default.createElement("div", null,
411
415
  (progresso !== 0 && progresso !== 100) && (react_1.default.createElement("div", { style: { display: 'flex' } },
@@ -424,10 +428,10 @@ function FileUploader(_a) {
424
428
  progresso.toFixed(2),
425
429
  "%")))),
426
430
  (progresso === 0 && !aguardando.name) && (react_1.default.createElement("div", null,
427
- react_1.default.createElement("input", { id: "FileUploader_" + idKey, className: 'float-left', type: 'file', onChange: function (e) {
431
+ react_1.default.createElement("input", { id: "FileUploader_".concat(idKey), className: 'float-left', type: 'file', onChange: function (e) {
428
432
  carregaArquivo(e);
429
433
  }, style: { display: 'none' } }),
430
- react_1.default.createElement("button", { className: 'btn btn-default', style: { width: '100%' }, onClick: function () { return document.getElementById("FileUploader_" + idKey).click(); } }, "Selecionar Arquivo"))),
434
+ react_1.default.createElement("button", { className: 'btn btn-default', style: { width: '100%' }, onClick: function () { return document.getElementById("FileUploader_".concat(idKey)).click(); } }, "Selecionar Arquivo"))),
431
435
  (progresso === 0 && aguardando.name) && (react_1.default.createElement(react_1.default.Fragment, null,
432
436
  react_1.default.createElement("div", { style: { display: 'flex', width: '100%' } },
433
437
  react_1.default.createElement("button", { className: 'btn btn-green', style: { width: '100%' }, onClick: function () { return enviaArquivo(); } }, "Enviar Arquivo"),