@ssplib/react-components 0.0.218 → 0.0.219
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.
|
@@ -161,8 +161,8 @@ function Table({ mediaQueryLG, columns, fetchFunc, emptyMsg = {
|
|
|
161
161
|
listData.forEach((x) => {
|
|
162
162
|
const dataStr = [];
|
|
163
163
|
Object.keys(x).map((key) => {
|
|
164
|
-
|
|
165
|
-
let value = (0, lodash_get_1.default)(x, key, '');
|
|
164
|
+
var _a;
|
|
165
|
+
let value = (_a = (0, lodash_get_1.default)(x, key, '')) !== null && _a !== void 0 ? _a : '';
|
|
166
166
|
if (typeof value === 'number')
|
|
167
167
|
value = value.toString();
|
|
168
168
|
if (typeof value !== 'string')
|
|
@@ -314,7 +314,6 @@ function Table({ mediaQueryLG, columns, fetchFunc, emptyMsg = {
|
|
|
314
314
|
if (multipleDataPath !== '') {
|
|
315
315
|
keys = ['dtInicio', 'hrInicio', ...keys];
|
|
316
316
|
}
|
|
317
|
-
console.log(keys);
|
|
318
317
|
const header = keys.map((k) => (csvCustomKeyNames[k] ? csvCustomKeyNames[k] : k)).join(',') + '\n';
|
|
319
318
|
const values = [];
|
|
320
319
|
list.forEach((x) => {
|
|
@@ -353,7 +352,7 @@ function Table({ mediaQueryLG, columns, fetchFunc, emptyMsg = {
|
|
|
353
352
|
if (multipleDataPath !== '') {
|
|
354
353
|
const dates = x[multipleDataPath];
|
|
355
354
|
if (dates) {
|
|
356
|
-
|
|
355
|
+
;
|
|
357
356
|
dates.forEach((d) => {
|
|
358
357
|
values.push(value.replace('{dtInicio}', d.dtInicio).replace('{hrInicio}', d.hrInicio).replace('{hrTermino}', d.hrTermino));
|
|
359
358
|
});
|
|
@@ -703,7 +702,8 @@ function Table({ mediaQueryLG, columns, fetchFunc, emptyMsg = {
|
|
|
703
702
|
let obj = {};
|
|
704
703
|
newList.forEach((x, index) => {
|
|
705
704
|
columns.forEach((c) => {
|
|
706
|
-
|
|
705
|
+
var _a;
|
|
706
|
+
obj[index] = obj[index] === true ? true : ((_a = (0, lodash_get_1.default)(x, c.keyName, '')) !== null && _a !== void 0 ? _a : 'Não Informado').toString().length >= expandTextMaxLength;
|
|
707
707
|
});
|
|
708
708
|
});
|
|
709
709
|
setShowExpandObj(obj);
|
|
@@ -899,7 +899,6 @@ function Table({ mediaQueryLG, columns, fetchFunc, emptyMsg = {
|
|
|
899
899
|
react_1.default.createElement(FetchSelectAutoComplete, { url: x.listEndpoint, label: x.name, onChange: (e, value) => {
|
|
900
900
|
if (value) {
|
|
901
901
|
const id = `${f}:${JSON.stringify(value)}`;
|
|
902
|
-
console.log(x.type, x.keyName, id, value === null || value === void 0 ? void 0 : value.label.toLowerCase(), x.referenceKey);
|
|
903
902
|
handleFilterOption(x.type, x.keyName, id, value === null || value === void 0 ? void 0 : value.id.toLowerCase(), x.referenceKey);
|
|
904
903
|
setOldSelectState(id);
|
|
905
904
|
}
|