@appcorp/app-corp-vista 0.2.98 → 0.2.99
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.
|
@@ -98,13 +98,13 @@ var VistaTableBodyV1 = function (_a) {
|
|
|
98
98
|
!loading && tableBodyRows.length > 0 && (tableBodyRows === null || tableBodyRows === void 0 ? void 0 : tableBodyRows.map(function (row) {
|
|
99
99
|
var ref = (0, uuid_1.v4)();
|
|
100
100
|
return (react_1.default.createElement("tr", { key: ref, className: exports.rowClasses }, tableBodyCols.map(function (_a) {
|
|
101
|
-
var _b, _c;
|
|
101
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
102
102
|
var key = _a.key, componentType = _a.componentType, expression = _a.expression;
|
|
103
103
|
var computedValue = '';
|
|
104
104
|
if (Array.isArray(key) && componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.OBJECT) {
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
computedValue = (
|
|
105
|
+
var _j = (_b = key[0]) === null || _b === void 0 ? void 0 : _b.split(util_functions_1.VALUE_DELIMITER.COLON), option1aKey = _j[0], option1bKey = _j[1];
|
|
106
|
+
var _k = (_c = key[1]) === null || _c === void 0 ? void 0 : _c.split(util_functions_1.VALUE_DELIMITER.COLON), option2aKey = _k[0], option2bKey = _k[1];
|
|
107
|
+
computedValue = (((_e = (_d = row[key === null || key === void 0 ? void 0 : key[0]]) === null || _d === void 0 ? void 0 : _d.key) === null || _e === void 0 ? void 0 : _e[1]) || ((_f = row[option1aKey]) === null || _f === void 0 ? void 0 : _f[option2aKey])) || ((_g = row[option1bKey]) === null || _g === void 0 ? void 0 : _g[option2bKey]);
|
|
108
108
|
}
|
|
109
109
|
else if (Array.isArray(key) && componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES) {
|
|
110
110
|
if (expression) {
|
|
@@ -127,7 +127,7 @@ var VistaTableBodyV1 = function (_a) {
|
|
|
127
127
|
computedValue = row.id;
|
|
128
128
|
}
|
|
129
129
|
var reff = (0, uuid_1.v4)();
|
|
130
|
-
return (react_1.default.createElement(react_1.Fragment, { key: reff }, (
|
|
130
|
+
return (react_1.default.createElement(react_1.Fragment, { key: reff }, (_h = componentMap[componentType]) === null || _h === void 0 ? void 0 : _h.call(componentMap, computedValue, rowActions)));
|
|
131
131
|
})));
|
|
132
132
|
}))));
|
|
133
133
|
};
|