@appcorp/app-corp-vista 0.2.97 → 0.2.98

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.
@@ -102,7 +102,9 @@ var VistaTableBodyV1 = function (_a) {
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
- computedValue = (_b = row[key[0]]) === null || _b === void 0 ? void 0 : _b[key[1]];
105
+ var _d = key[0].split(util_functions_1.VALUE_DELIMITER.COLON), option1aKey = _d[0], option1bKey = _d[1];
106
+ var _e = key[0].split(util_functions_1.VALUE_DELIMITER.COLON), option2aKey = _e[0], option2bKey = _e[1];
107
+ computedValue = (_b = row[option1aKey || option1bKey]) === null || _b === void 0 ? void 0 : _b[option2aKey || option2bKey];
106
108
  }
107
109
  else if (Array.isArray(key) && componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES) {
108
110
  if (expression) {
@@ -18,7 +18,8 @@ var VistaTableV1 = function (_a) {
18
18
  react_1.default.createElement("table", { className: "min-w-full divide-y divide-gray-700" },
19
19
  react_1.default.createElement("thead", null,
20
20
  react_1.default.createElement(vista_table_head_v1_1.VistaTableHeadV1, { items: tableHeadItems })),
21
- react_1.default.createElement("tbody", { className: "divide-y divide-gray-700 overflow-y-auto" }, (tableBodyRows === null || tableBodyRows === void 0 ? void 0 : tableBodyRows.length) > 0 && (react_1.default.createElement(vista_table_body_v1_1.VistaTableBodyV1, { colLength: tableHeadItems.length, loading: loading, pageLimit: pageLimit, rowActions: rowActions, tableBodyCols: tableBodyCols, tableBodyRows: tableBodyRows })))),
21
+ react_1.default.createElement("tbody", { className: "divide-y divide-gray-700 overflow-y-auto" },
22
+ react_1.default.createElement(vista_table_body_v1_1.VistaTableBodyV1, { colLength: tableHeadItems.length, loading: loading, pageLimit: pageLimit, rowActions: rowActions, tableBodyCols: tableBodyCols, tableBodyRows: tableBodyRows }))),
22
23
  !loading && (tableBodyRows === null || tableBodyRows === void 0 ? void 0 : tableBodyRows.length) === 0 && (react_1.default.createElement("div", { className: 'flex flex-row justify-center p-16' },
23
24
  react_1.default.createElement(empty_table_1.EmptyTable, null))),
24
25
  react_1.default.createElement(vista_table_footer_v1_1.VistaTableFooterV1, { currentPage: currentPage, dir: dir, handleNextOnClick: handleNextOnClick, handleOnSelect: handleOnSelect, handlePreviousOnClick: handlePreviousOnClick, isNextDisabled: isNextDisabled, isPreviousDisabled: isPreviousDisabled, listOptions: listOptions, nextLabel: nextLabel, nodeSelectKey: nodeSelectKey, ofLabel: ofLabel, pageLabel: pageLabel, previousLabel: previousLabel, selectKey1: selectKey1, selectKey2: selectKey2, selectedItem: selectedItem, totalPages: totalPages }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.2.97",
3
+ "version": "0.2.98",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
6
6
  "build:next": "next build",