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]) {
@@ -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 };
@@ -103,20 +111,20 @@ var reducer = function (state, _a) {
103
111
  state[fase][documento][field] = value;
104
112
  };
105
113
  var init = function (initialValues) { return function (initialState) {
106
- if (lodash_1.isArray(initialValues) && !lodash_1.isArray(initialValues[0])) {
114
+ if ((0, lodash_1.isArray)(initialValues) && !(0, lodash_1.isArray)(initialValues[0])) {
107
115
  return initialState.map(function (fase, i) { return fase.map(function (_, j) { return initialValues[i].documentos[j].values; }); });
108
116
  }
109
117
  return initialValues;
110
118
  }; };
111
119
  var FormVisualizer = function (_a) {
112
120
  var _b = _a.json, json = _b === void 0 ? {} : _b, _c = _a.initialValues, initialValues = _c === void 0 ? [] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { return ''; } : _d, disabled = _a.disabled;
113
- var classes = core_1.makeStyles(json.classes)();
114
- var _f = use_immer_1.useImmerReducer(reducer, json.fases.map(function (fase) { return fase.documentos.map(function (documento) { return documento.linhas.reduce(function (a, linha) { return (__assign(__assign({}, a), linha.colunas.reduce(function (ac, _a) {
121
+ var classes = (0, core_1.makeStyles)(json.classes)();
122
+ var _f = (0, use_immer_1.useImmerReducer)(reducer, json.fases.map(function (fase) { return fase.documentos.map(function (documento) { return documento.linhas.reduce(function (a, linha) { return (__assign(__assign({}, a), linha.colunas.reduce(function (ac, _a) {
115
123
  var _b;
116
124
  var obj = _a.obj;
117
125
  return obj.name ? (__assign(__assign({}, ac), (_b = {}, _b[obj.name] = obj.value, _b))) : ac;
118
126
  }, {}))); }, {}); }); }), init(initialValues)), state = _f[0], dispatch = _f[1];
119
- utils_1.useUpdateEffect(function () {
127
+ (0, utils_1.useUpdateEffect)(function () {
120
128
  onChange(state);
121
129
  }, [state]);
122
130
  return (react_1.default.createElement(core_1.Card, { style: { padding: '10px' } },
@@ -125,7 +133,7 @@ var FormVisualizer = function (_a) {
125
133
  react_1.default.createElement(core_1.Typography, { variant: 'h5', component: 'div', align: 'center', style: { marginBottom: '5px' } }, fase.nome),
126
134
  fase.documentos.map(function (documento, j) { return (react_1.default.createElement(core_1.Paper, { elevation: 3, key: documento.idDoc, className: classes[documento.className], style: __assign(__assign({}, documento.style), { padding: '10px', margin: '10px' }) },
127
135
  react_1.default.createElement(core_1.Typography, { variant: 'h6', component: 'div', align: 'center', style: { marginBottom: '5px' } }, documento.nome),
128
- documento.linhas.map(function (linha, k) { return (react_1.default.createElement(core_1.Grid, { container: true, spacing: linha.spacing || 2, key: "" + k, className: classes[linha.className], style: linha.style }, linha.colunas.map(function (_a, l) {
136
+ documento.linhas.map(function (linha, k) { return (react_1.default.createElement(core_1.Grid, { container: true, spacing: linha.spacing || 2, key: "".concat(k), className: classes[linha.className], style: linha.style }, linha.colunas.map(function (_a, l) {
129
137
  var span = _a.span, className = _a.className, style = _a.style, _b = _a.obj, name = _b.name, obj = __rest(_b, ["name"]);
130
138
  return (react_1.default.createElement(core_1.Grid, { item: true, key: l, xs: span, className: classes[className], style: style },
131
139
  console.log(state[i][j][name]),
@@ -133,7 +141,7 @@ var FormVisualizer = function (_a) {
133
141
  }))); }))); }))); })));
134
142
  };
135
143
  exports.default = FormVisualizer;
136
- var RetornaComponente = react_1.memo(function (_a) {
144
+ var RetornaComponente = (0, react_1.memo)(function (_a) {
137
145
  var tp = _a.tp, name = _a.name, dispatch = _a.dispatch, disabled = _a.disabled, fase = _a.fase, documento = _a.documento, props = __rest(_a, ["tp", "name", "dispatch", "disabled", "fase", "documento"]);
138
146
  switch (tp) {
139
147
  case 'label':
@@ -154,7 +162,7 @@ var Label = function (_a) {
154
162
  var className = _a.className, style = _a.style, value = _a.value, props = __rest(_a, ["className", "style", "value"]);
155
163
  return react_1.default.createElement(core_1.Typography, __assign({}, __assign({ className: className, style: style }, props)), value);
156
164
  };
157
- var useStyles = core_1.makeStyles({
165
+ var useStyles = (0, core_1.makeStyles)({
158
166
  textArea: {
159
167
  '& textarea': {
160
168
  resize: 'vertical',
@@ -169,7 +177,7 @@ var Text = function (_a) {
169
177
  return (react_1.default.createElement(Autocomplete_1.default, __assign({}, { multiple: multiple, options: options }, { defaultValue: value, limitTags: 1, disableCloseOnSelect: multiple, disablePortal: true, closeText: 'Fechar', clearText: 'Limpar', openText: 'Abrir', onChange: function (_e, value_) {
170
178
  dispatch(value_);
171
179
  } }, props, { renderInput: function (params) { return (react_1.default.createElement(core_1.TextField, __assign({ variant: 'outlined', margin: 'dense', fullWidth: true }, { label: label, style: style, className: className }, params))); } })));
172
- return (react_1.default.createElement(core_1.TextField, __assign({ className: classes.textArea + " mostraSpinner " + className, variant: 'outlined', margin: 'dense', fullWidth: true, multiline: variant === 'multiline' }, { label: label, style: style }, { defaultValue: value, onBlur: function (e) {
180
+ return (react_1.default.createElement(core_1.TextField, __assign({ className: "".concat(classes.textArea, " mostraSpinner ").concat(className), variant: 'outlined', margin: 'dense', fullWidth: true, multiline: variant === 'multiline' }, { label: label, style: style }, { defaultValue: value, onBlur: function (e) {
173
181
  e.persist();
174
182
  if (e.target.value === value)
175
183
  return;
@@ -178,12 +186,12 @@ var Text = function (_a) {
178
186
  };
179
187
  var Data = function (_a) {
180
188
  var label = _a.label, className = _a.className, style = _a.style, value = _a.value, dispatch = _a.dispatch, path = _a.path, props = __rest(_a, ["label", "className", "style", "value", "dispatch", "path"]);
181
- var _b = react_1.useState(value), state = _b[0], setState = _b[1];
182
- react_1.useEffect(function () {
183
- if ((value || undefined) === (lodash_1.isString(state) ? state || undefined : state === null || state === void 0 ? void 0 : state.format('YYYY-MM-DD')))
189
+ var _b = (0, react_1.useState)(value), state = _b[0], setState = _b[1];
190
+ (0, react_1.useEffect)(function () {
191
+ if ((value || undefined) === ((0, lodash_1.isString)(state) ? state || undefined : state === null || state === void 0 ? void 0 : state.format('YYYY-MM-DD')))
184
192
  return;
185
193
  var time = setTimeout(function () {
186
- dispatch(state ? moment_2.default(state).format('YYYY-MM-DD') : '');
194
+ dispatch(state ? (0, moment_2.default)(state).format('YYYY-MM-DD') : '');
187
195
  }, 100);
188
196
  return function () { return clearTimeout(time); };
189
197
  // eslint-disable-next-line
@@ -193,15 +201,15 @@ var Data = function (_a) {
193
201
  };
194
202
  var Selection = function (_a) {
195
203
  var label = _a.label, multiple = _a.multiple, className = _a.className, style = _a.style, options = _a.options, value = _a.value, dispatch = _a.dispatch, path = _a.path, props = __rest(_a, ["label", "multiple", "className", "style", "options", "value", "dispatch", "path"]);
196
- var _b = react_1.useState(value || (multiple ? [] : '')), state = _b[0], setState = _b[1];
197
- var atualizaDados = react_1.useCallback(function () {
204
+ var _b = (0, react_1.useState)(value || (multiple ? [] : '')), state = _b[0], setState = _b[1];
205
+ var atualizaDados = (0, react_1.useCallback)(function () {
198
206
  dispatch(state);
199
207
  // eslint-disable-next-line
200
208
  }, [state]);
201
- utils_1.useUpdateEffect(function () { return atualizaDados(); }, [state, atualizaDados]);
209
+ (0, utils_1.useUpdateEffect)(function () { return atualizaDados(); }, [state, atualizaDados]);
202
210
  var changeCheckBox = function (e) {
203
211
  if (e.target.checked) {
204
- setState(__spreadArray(__spreadArray([], state), [e.target.value]));
212
+ setState(__spreadArray(__spreadArray([], state, true), [e.target.value], false));
205
213
  }
206
214
  else {
207
215
  var temp = state;
@@ -222,9 +230,9 @@ var Selection = function (_a) {
222
230
  };
223
231
  var Signature = function (_a) {
224
232
  var label = _a.label, grupos = _a.grupos, usuarios = _a.usuarios, className = _a.className, style = _a.style, value = _a.value, dados = _a.dados, setDados = _a.setDados, path = _a.path;
225
- var usuario = store_1.getStore().getState().argous.usuarioLogado;
233
+ var usuario = (0, store_1.getStore)().getState().argous.usuarioLogado;
226
234
  var podeAssinar = (usuarios.filter(function (id) { return id === usuario.idUsuario; })).length > 0;
227
- var _b = react_1.useState({ modal: false, password: '', showPassword: false, senhaIncorreta: '' }), values = _b[0], setValues = _b[1];
235
+ var _b = (0, react_1.useState)({ modal: false, password: '', showPassword: false, senhaIncorreta: '' }), values = _b[0], setValues = _b[1];
228
236
  //action para checar se o usuario é do grupo para poder assinar
229
237
  function confirmaAssinatura() {
230
238
  return __awaiter(this, void 0, void 0, function () {
@@ -234,7 +242,7 @@ var Signature = function (_a) {
234
242
  if (res.status) {
235
243
  setValues(__assign(__assign({}, values), { senhaIncorreta: '' }));
236
244
  temp = __assign({}, dados);
237
- lodash_1.set(temp, path, [usuario.idUsuario, usuario.nome, moment_2.default(new Date()).format('YYYY-MM-DD HH:mm:ss'), res.hash]);
245
+ (0, lodash_1.set)(temp, path, [usuario.idUsuario, usuario.nome, (0, moment_2.default)(new Date()).format('YYYY-MM-DD HH:mm:ss'), res.hash]);
238
246
  setDados(temp);
239
247
  setValues(__assign(__assign({}, values), { modal: false }));
240
248
  }
@@ -246,7 +254,7 @@ var Signature = function (_a) {
246
254
  }
247
255
  if (value.length > 0)
248
256
  return (react_1.default.createElement("div", __assign({}, { className: className }, { style: __assign(__assign({}, style), { height: '50px', display: 'flex', justifyContent: 'flex-end', alignItems: ' flex-end' }) }),
249
- react_1.default.createElement(core_1.Typography, { title: value[3], variant: 'subtitle2', style: { textAlign: 'right' } }, value[1] + " - " + moment_2.default(value[2]).format('DD/MM/YYYY HH:mm:ss'))));
257
+ react_1.default.createElement(core_1.Typography, { title: value[3], variant: 'subtitle2', style: { textAlign: 'right' } }, "".concat(value[1], " - ").concat((0, moment_2.default)(value[2]).format('DD/MM/YYYY HH:mm:ss')))));
250
258
  return (react_1.default.createElement(react_1.default.Fragment, null,
251
259
  react_1.default.createElement(core_1.Grid, __assign({ container: true, direction: 'row-reverse' }, { className: className, style: style }),
252
260
  react_1.default.createElement(core_1.Grid, { item: true, xs: 12, sm: 6, md: 4, lg: 2, xl: 1 },
@@ -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];
@@ -42,12 +46,12 @@ var ELLIPSIS_TEXT_STYLE = {
42
46
  whiteSpace: 'nowrap',
43
47
  textOverflow: 'ellipsis'
44
48
  };
45
- var useStyles = core_1.makeStyles({
49
+ var useStyles = (0, core_1.makeStyles)({
46
50
  container: {
47
51
  display: 'flex',
48
52
  height: function (_a) {
49
53
  var size = _a.size;
50
- return size / 2 + "px";
54
+ return "".concat(size / 2, "px");
51
55
  },
52
56
  transition: 'all .3s',
53
57
  opacity: function (_a) {
@@ -103,23 +107,23 @@ var useStyles = core_1.makeStyles({
103
107
  },
104
108
  maxWidth: function (_a) {
105
109
  var size = _a.size;
106
- return size / 2 + "px";
110
+ return "".concat(size / 2, "px");
107
111
  },
108
112
  minWidth: function (_a) {
109
113
  var size = _a.size;
110
- return size / 2 + "px";
114
+ return "".concat(size / 2, "px");
111
115
  },
112
116
  maxHeight: function (_a) {
113
117
  var size = _a.size;
114
- return size / 4 + "px";
118
+ return "".concat(size / 4, "px");
115
119
  },
116
120
  minHeight: function (_a) {
117
121
  var size = _a.size;
118
- return size / 4 + "px";
122
+ return "".concat(size / 4, "px");
119
123
  },
120
124
  transform: function (_a) {
121
125
  var size = _a.size;
122
- return "translateY(-" + (size / 4) / 2 + "px)";
126
+ return "translateY(-".concat((size / 4) / 2, "px)");
123
127
  },
124
128
  display: 'flex',
125
129
  flexDirection: 'column',
@@ -157,7 +161,7 @@ var useStyles = core_1.makeStyles({
157
161
  }
158
162
  });
159
163
  var getHand = function (percentage, handColor) {
160
- if (!lodash_1.isNumber(percentage))
164
+ if (!(0, lodash_1.isNumber)(percentage))
161
165
  return '';
162
166
  var angle = 270;
163
167
  if (percentage > 50) {
@@ -170,18 +174,18 @@ var getHand = function (percentage, handColor) {
170
174
  if (finalTransparentAngle > 90 && finalTransparentAngle < 270) {
171
175
  finalTransparentAngle = 90;
172
176
  }
173
- return "conic-gradient(\n #0000 " + initialTransparentAngle + "deg " + (angle - 2) + "deg,\n " + handColor + " " + (angle - 0.5) + "deg " + (angle + 0.5) + "deg,\n #0000 " + finalTransparentAngle + "deg\n )";
177
+ return "conic-gradient(\n #0000 ".concat(initialTransparentAngle, "deg ").concat(angle - 2, "deg,\n ").concat(handColor, " ").concat(angle - 0.5, "deg ").concat(angle + 0.5, "deg,\n #0000 ").concat(finalTransparentAngle, "deg\n )");
174
178
  };
175
179
  var HalfGauge = function (_a) {
176
180
  var _b = _a.responsive, responsive = _b === void 0 ? false : _b, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.label, label = _d === void 0 ? '' : _d, _e = _a.percentage, percentage = _e === void 0 ? 0 : _e, _f = _a.order, order = _f === void 0 ? 'D' : _f, _g = _a.min, min = _g === void 0 ? '' : _g, _h = _a.max, max = _h === void 0 ? '' : _h, _j = _a.size, size = _j === void 0 ? 200 : _j, _k = _a.fontSize, fontSize = _k === void 0 ? '0.9rem' : _k, _l = _a.color, color = _l === void 0 ? '#000' : _l, _m = _a.backgroundColor, backgroundColor = _m === void 0 ? '#fff' : _m, _o = _a.barBackgroundColor, barBackgroundColor = _o === void 0 ? '#0000' : _o, _p = _a.handColor, handColor = _p === void 0 ? '#fff' : _p, _q = _a.minMaxWidth, minMaxWidth = _q === void 0 ? '6rem' : _q, _r = _a.middleColor, middleColor = _r === void 0 ? '#ffdd71' : _r, _s = _a.middleRightColor, middleRightColor = _s === void 0 ? '#fec900' : _s, _t = _a.rightColor, rightColor = _t === void 0 ? '#00995d' : _t, _u = _a.leftColor, leftColor = _u === void 0 ? '#fe6c6c' : _u, _v = _a.middleLeftColor, middleLeftColor = _v === void 0 ? '#ff9b9b' : _v;
177
181
  var gaugeBarWidth = size - (size / 2);
178
182
  var classes = useStyles({ color: color, backgroundColor: backgroundColor, barBackgroundColor: barBackgroundColor, size: size, gaugeBarWidth: gaugeBarWidth, fontSize: fontSize, minMaxWidth: minMaxWidth, responsive: responsive });
179
- var halfGaugeId = id + "-halfGauge";
180
- var halfGaugeHandId = id + "-halfGaugeHand";
181
- var halfGaugeContainerId = id + "-halfGaugeContainer";
182
- var percentageText = percentage.toString().replace('.', ',') + "%";
183
- var defaultColors = react_1.useMemo(function () { return ([middleColor, middleRightColor, rightColor, '#0000', leftColor, middleLeftColor]); }, [leftColor, middleColor, middleLeftColor, middleRightColor, rightColor]);
184
- var gaugeBackgroundColors = react_1.useMemo(function () {
183
+ var halfGaugeId = "".concat(id, "-halfGauge");
184
+ var halfGaugeHandId = "".concat(id, "-halfGaugeHand");
185
+ var halfGaugeContainerId = "".concat(id, "-halfGaugeContainer");
186
+ var percentageText = "".concat(percentage.toString().replace('.', ','), "%");
187
+ var defaultColors = (0, react_1.useMemo)(function () { return ([middleColor, middleRightColor, rightColor, '#0000', leftColor, middleLeftColor]); }, [leftColor, middleColor, middleLeftColor, middleRightColor, rightColor]);
188
+ var gaugeBackgroundColors = (0, react_1.useMemo)(function () {
185
189
  var colors = defaultColors;
186
190
  if (order === 'A') {
187
191
  var left = defaultColors[4];
@@ -195,25 +199,25 @@ var HalfGauge = function (_a) {
195
199
  }
196
200
  return colors;
197
201
  }, [defaultColors, order]);
198
- var createStage = react_1.useCallback(function () {
202
+ var createStage = (0, react_1.useCallback)(function () {
199
203
  var gaugeEl = document.getElementById(halfGaugeId);
200
204
  if (!gaugeEl)
201
205
  return;
202
- gaugeEl.style.background = "conic-gradient(\n " + gaugeBackgroundColors[0] + " 18deg, \n " + gaugeBackgroundColors[1] + " 18deg 54deg,\n " + gaugeBackgroundColors[2] + " 54deg 90deg,\n " + gaugeBackgroundColors[3] + " 90deg 270deg,\n " + gaugeBackgroundColors[4] + " 270deg 306deg,\n " + gaugeBackgroundColors[5] + " 306deg 342deg,\n " + gaugeBackgroundColors[0] + " 342deg 360deg\n )";
206
+ gaugeEl.style.background = "conic-gradient(\n ".concat(gaugeBackgroundColors[0], " 18deg, \n ").concat(gaugeBackgroundColors[1], " 18deg 54deg,\n ").concat(gaugeBackgroundColors[2], " 54deg 90deg,\n ").concat(gaugeBackgroundColors[3], " 90deg 270deg,\n ").concat(gaugeBackgroundColors[4], " 270deg 306deg,\n ").concat(gaugeBackgroundColors[5], " 306deg 342deg,\n ").concat(gaugeBackgroundColors[0], " 342deg 360deg\n )");
203
207
  }, [halfGaugeId, gaugeBackgroundColors]);
204
- var createHand = react_1.useCallback(function () {
208
+ var createHand = (0, react_1.useCallback)(function () {
205
209
  var hand = getHand(percentage, handColor);
206
210
  var gaugeHandEl = document.getElementById(halfGaugeHandId);
207
211
  if (!gaugeHandEl || !hand || (!gaugeHandEl && !hand))
208
212
  return;
209
213
  gaugeHandEl.style.background = hand;
210
214
  }, [halfGaugeHandId, percentage, handColor]);
211
- react_1.useEffect(function () {
215
+ (0, react_1.useEffect)(function () {
212
216
  createStage();
213
217
  createHand();
214
218
  }, [percentage, createStage, createHand]);
215
219
  //__RESPONSIVE_SIZE___________________________________________________________________________________
216
- var makeResponsive = react_1.useCallback(function () {
220
+ var makeResponsive = (0, react_1.useCallback)(function () {
217
221
  var _a;
218
222
  if (!halfGaugeContainerId)
219
223
  return;
@@ -248,21 +252,21 @@ var HalfGauge = function (_a) {
248
252
  else if (parentWidth < 348) {
249
253
  scale = 0.9;
250
254
  }
251
- containerEl.style.transform = "scale(" + scale + ")";
255
+ containerEl.style.transform = "scale(".concat(scale, ")");
252
256
  }
253
257
  }
254
258
  setTimeout(function () { return makeResponsive(); }, 500);
255
259
  }, [halfGaugeContainerId]);
256
- react_1.useEffect(function () { return responsive && makeResponsive(); }, [responsive, makeResponsive]);
257
- var displayContainer = react_1.useCallback(function () {
260
+ (0, react_1.useEffect)(function () { return responsive && makeResponsive(); }, [responsive, makeResponsive]);
261
+ var displayContainer = (0, react_1.useCallback)(function () {
258
262
  var containerEl = document.getElementById(halfGaugeContainerId);
259
263
  if (containerEl)
260
264
  containerEl.style.opacity = 1;
261
265
  }, [halfGaugeContainerId]);
262
- react_1.useEffect(function () { return responsive && setTimeout(function () { return displayContainer(); }, 500); }, [responsive, displayContainer]);
266
+ (0, react_1.useEffect)(function () { return responsive && setTimeout(function () { return displayContainer(); }, 500); }, [responsive, displayContainer]);
263
267
  //____________________________________________________________________________________________________
264
268
  return react_1.default.createElement("div", { id: halfGaugeContainerId, className: classes.container },
265
- react_1.default.createElement("div", { className: clsx_1.default(classes.minMax, classes.min) },
269
+ react_1.default.createElement("div", { className: (0, clsx_1.default)(classes.minMax, classes.min) },
266
270
  react_1.default.createElement("p", null, min)),
267
271
  react_1.default.createElement("div", { id: halfGaugeId, className: classes.gauge },
268
272
  react_1.default.createElement("div", { id: halfGaugeHandId, className: classes.gauge }),
@@ -16,7 +16,11 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
18
  if (k2 === undefined) k2 = k;
19
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
20
24
  }) : (function(o, m, k, k2) {
21
25
  if (k2 === undefined) k2 = k;
22
26
  o[k2] = m[k];
@@ -47,7 +51,7 @@ var HighLight = /** @class */ (function (_super) {
47
51
  return _super !== null && _super.apply(this, arguments) || this;
48
52
  }
49
53
  HighLight.prototype.componentDidMount = function () {
50
- highlight_js_1.default.highlightBlock(react_dom_1.findDOMNode(this.refs.code));
54
+ highlight_js_1.default.highlightBlock((0, react_dom_1.findDOMNode)(this.refs.code));
51
55
  };
52
56
  HighLight.prototype.shouldComponentUpdate = function (nextProps) {
53
57
  if (this.props.language !== nextProps.language || this.props.className !== nextProps.className || this.props.children !== nextProps.children) {
@@ -57,7 +61,7 @@ var HighLight = /** @class */ (function (_super) {
57
61
  };
58
62
  HighLight.prototype.componentDidUpdate = function () {
59
63
  highlight_js_1.default.initHighlighting.called = false;
60
- highlight_js_1.default.highlightBlock(react_dom_1.findDOMNode(this.refs.code));
64
+ highlight_js_1.default.highlightBlock((0, react_dom_1.findDOMNode)(this.refs.code));
61
65
  };
62
66
  HighLight.prototype.render = function () {
63
67
  var _a = this.props, children = _a.children, className = _a.className, language = _a.language, style = _a.style;