awing-library 2.1.9 → 2.1.10

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.
@@ -53,7 +53,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
54
  var material_1 = require("@mui/material");
55
55
  var styles_1 = require("@mui/styles");
56
- var lodash_1 = __importDefault(require("lodash"));
57
56
  var moment_1 = __importDefault(require("moment"));
58
57
  var react_1 = require("react");
59
58
  var react_i18next_1 = require("react-i18next");
@@ -168,7 +167,7 @@ var RowAdvanceContainer = function (_a) {
168
167
  var handleOnClick = function (value) {
169
168
  if (!expandDisabled) {
170
169
  setOpen(!open);
171
- getDetails(filters, groupNames[priorityGroupLevel], pages === null || pages === void 0 ? void 0 : pages.pageSize, pages === null || pages === void 0 ? void 0 : pages.pageIndex);
170
+ getDetails(filterByOfRowAdvance, groupNames[priorityGroupLevel], pages === null || pages === void 0 ? void 0 : pages.pageSize, pages === null || pages === void 0 ? void 0 : pages.pageIndex);
172
171
  }
173
172
  };
174
173
  var handleOnClickCampaignStatistic = function (value) {
@@ -185,6 +184,9 @@ var RowAdvanceContainer = function (_a) {
185
184
  Enum_1.HEAD_CELL_NAMES.CAMPAIGN_CAMPAIGN) {
186
185
  filters.campaignId = (_c = value === null || value === void 0 ? void 0 : value.campaign) === null || _c === void 0 ? void 0 : _c.campaignId;
187
186
  }
187
+ if (filters.placeIds.includes(undefined)) {
188
+ filters.placeIds = [];
189
+ }
188
190
  if (!expandDisabled) {
189
191
  setOpen(!open);
190
192
  getDetails(filters, groupNames[priorityGroupLevel], pages === null || pages === void 0 ? void 0 : pages.pageSize, pages === null || pages === void 0 ? void 0 : pages.pageIndex);
@@ -194,7 +196,7 @@ var RowAdvanceContainer = function (_a) {
194
196
  ? true
195
197
  : priorityGroupLevel === (groupNames === null || groupNames === void 0 ? void 0 : groupNames.length) + 1;
196
198
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(component_1.default, { stt: stt, row: row, options: options, headCells: headCells, priorityGroupLevel: priorityGroupLevel, groupNames: groupNames, handleOnClick: function () {
197
- lodash_1.default.isEmpty(options === null || options === void 0 ? void 0 : options.domains) === true
199
+ headCells.length > 6
198
200
  ? handleOnClickCampaignStatistic(row)
199
201
  : handleOnClick(row);
200
202
  }, open: open, expandDisabled: expandDisabled }), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (loadingPage === null || loadingPage === void 0 ? void 0 : loadingPage.pages) ? ((0, jsx_runtime_1.jsx)(material_1.TableRow, { children: (0, jsx_runtime_1.jsx)(material_1.TableCell, { colSpan: headCells === null || headCells === void 0 ? void 0 : headCells.length, children: (0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {}) }) })) : ((0, jsx_runtime_1.jsx)(EnhancedPagination_1.default, { pageSize: pages === null || pages === void 0 ? void 0 : pages.pageSize, pageIndex: pages === null || pages === void 0 ? void 0 : pages.pageIndex, handleChangePage: handleChangePage, handleChangeRowsPerPage: handleChangeRowsPerPage, className: "".concat(classes.pagination, " ").concat((groupNames === null || groupNames === void 0 ? void 0 : groupNames.length) === 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",