awing-library 2.1.85-beta → 2.1.87-beta
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.
- package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.js +1 -1
- package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/component.js +1 -1
- package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/container.js +2 -1
- package/lib/ACM-AXN/CampaignSchedule/component.d.ts +2 -2
- package/lib/ACM-AXN/CampaignSchedule/component.js +14 -12
- package/package.json +1 -1
|
@@ -86,7 +86,7 @@ var Filters = function (_a) {
|
|
|
86
86
|
handleFilters('startDate', value.startDate);
|
|
87
87
|
handleFilters('endDate', value.endDate);
|
|
88
88
|
};
|
|
89
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: disabledCampaignFilter ? 6 : 4, className: classes.dateRangePicker, children: (0, jsx_runtime_1.jsx)(AWING_1.DateRangePicker, { isShowCalendarInfo: true, label: "".concat(t('Common.StartDate'), " - ").concat(t('Common.EndDate')), callback: handleChangeDateRange, initialStartDate: (0, moment_1.default)(), initialEndDate: (0, moment_1.default)(), variant: "outlined", textFieldProps: {
|
|
89
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: disabledCampaignFilter ? 6 : 4, className: classes.dateRangePicker, children: (0, jsx_runtime_1.jsx)(AWING_1.DateRangePicker, { isShowCalendarInfo: disabledCampaignFilter !== null && disabledCampaignFilter !== void 0 ? disabledCampaignFilter : true, label: "".concat(t('Common.StartDate'), " - ").concat(t('Common.EndDate')), callback: handleChangeDateRange, initialStartDate: (0, moment_1.default)(), initialEndDate: (0, moment_1.default)(), variant: "outlined", textFieldProps: {
|
|
90
90
|
fullWidth: true,
|
|
91
91
|
className: classes.outlinedInput,
|
|
92
92
|
}, isDayBlocked: function (day) {
|
|
@@ -161,7 +161,7 @@ var RowAdvanceComponent = function (_a) {
|
|
|
161
161
|
case Enum_1.HEAD_CELL_NAMES.TOTAL:
|
|
162
162
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: totalView }, item.id));
|
|
163
163
|
case Enum_1.HEAD_CELL_NAMES.IMPRESSION:
|
|
164
|
-
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "
|
|
164
|
+
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "center", children: row === null || row === void 0 ? void 0 : row.view }, item.id));
|
|
165
165
|
case Enum_1.HEAD_CELL_NAMES.FINAL_CLICK:
|
|
166
166
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: row === null || row === void 0 ? void 0 : row.click }, item.id));
|
|
167
167
|
case Enum_1.HEAD_CELL_NAMES.CTR:
|
|
@@ -196,7 +196,8 @@ var RowAdvanceContainer = function (_a) {
|
|
|
196
196
|
? true
|
|
197
197
|
: priorityGroupLevel === (groupNames === null || groupNames === void 0 ? void 0 : groupNames.length) + 1;
|
|
198
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 () {
|
|
199
|
-
headCells.length > 6
|
|
199
|
+
headCells.length > 6 &&
|
|
200
|
+
headCells[3].id === Enum_1.HEAD_CELL_NAMES.CAMPAIGN_CAMPAIGN
|
|
200
201
|
? handleOnClickCampaignStatistic(row)
|
|
201
202
|
: handleOnClick(row);
|
|
202
203
|
}, 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
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ICampaignSchedulesComponentProps } from
|
|
2
|
-
declare const CampaignSchedulesComponent: ({ headCells, onDragOver, onDragStart, onDrop, scheduleGroups, page, handleChangePage, handleChangeRowsPerPage, filters, options, serviceCampaignSchedule }: ICampaignSchedulesComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ICampaignSchedulesComponentProps } from './interface';
|
|
2
|
+
declare const CampaignSchedulesComponent: ({ headCells, onDragOver, onDragStart, onDrop, scheduleGroups, page, handleChangePage, handleChangeRowsPerPage, filters, options, serviceCampaignSchedule, }: ICampaignSchedulesComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CampaignSchedulesComponent;
|
|
@@ -15,22 +15,22 @@ var TableHeaderDragable_1 = __importDefault(require("./Components/TableHeaderDra
|
|
|
15
15
|
var Enum_1 = require("./Enum");
|
|
16
16
|
var useStyles = (0, styles_1.makeStyles)(function () { return ({
|
|
17
17
|
root: {
|
|
18
|
-
width:
|
|
18
|
+
width: '100%',
|
|
19
19
|
},
|
|
20
20
|
paper: {
|
|
21
|
-
width:
|
|
22
|
-
marginBottom:
|
|
23
|
-
boxShadow:
|
|
21
|
+
width: '100%',
|
|
22
|
+
marginBottom: '1rem',
|
|
23
|
+
boxShadow: 'none',
|
|
24
24
|
},
|
|
25
25
|
wrapper: {
|
|
26
|
-
boxShadow:
|
|
27
|
-
borderRadius:
|
|
26
|
+
boxShadow: '0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%)',
|
|
27
|
+
borderRadius: '4px',
|
|
28
28
|
},
|
|
29
29
|
pagination: {
|
|
30
|
-
|
|
30
|
+
'&.MuiTablePagination-root': {
|
|
31
31
|
// borderBottom: '1px solid #a3a3a345',
|
|
32
|
-
borderTop:
|
|
33
|
-
width:
|
|
32
|
+
borderTop: '1px solid #a3a3a345',
|
|
33
|
+
width: '100%',
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
primaryPaginations: {
|
|
@@ -48,7 +48,9 @@ var CampaignSchedulesComponent = function (_a) {
|
|
|
48
48
|
var headCells = _a.headCells, onDragOver = _a.onDragOver, onDragStart = _a.onDragStart, onDrop = _a.onDrop, scheduleGroups = _a.scheduleGroups, page = _a.page, handleChangePage = _a.handleChangePage, handleChangeRowsPerPage = _a.handleChangeRowsPerPage, filters = _a.filters, options = _a.options, serviceCampaignSchedule = _a.serviceCampaignSchedule;
|
|
49
49
|
var classes = useStyles();
|
|
50
50
|
var groupLength = (_c = (_b = headCells === null || headCells === void 0 ? void 0 : headCells.filter(function (cell) { return cell.grouping; })) === null || _b === void 0 ? void 0 : _b.map(function (item) { return item.name; })) === null || _c === void 0 ? void 0 : _c.length;
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.Table, { "aria-label": "Table-advance", children: [(0, jsx_runtime_1.jsx)(TableHeaderDragable_1.default, { headCells: headCells, onDragOver: onDragOver, onDragStart: onDragStart, onDrop: onDrop }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: (0, jsx_runtime_1.jsx)(EnhancedPagination_1.default, { total: (scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.Table, { "aria-label": "Table-advance", children: [(0, jsx_runtime_1.jsx)(TableHeaderDragable_1.default, { headCells: headCells, onDragOver: onDragOver, onDragStart: onDragStart, onDrop: onDrop }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: (0, jsx_runtime_1.jsx)(EnhancedPagination_1.default, { total: (scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.total)
|
|
52
|
+
? scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.total
|
|
53
|
+
: scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.totalItemCount, pageSize: page === null || page === void 0 ? void 0 : page.pageSize, pageIndex: page === null || page === void 0 ? void 0 : page.pageIndex, handleChangePage: handleChangePage, handleChangeRowsPerPage: handleChangeRowsPerPage, className: "".concat(classes.pagination, " ").concat(groupLength === 0
|
|
52
54
|
? classes.nomarlPaginations
|
|
53
55
|
: groupLength === 1
|
|
54
56
|
? classes.secondaryPaginations
|
|
@@ -56,8 +58,8 @@ var CampaignSchedulesComponent = function (_a) {
|
|
|
56
58
|
var _a;
|
|
57
59
|
var groupNames = (_a = headCells === null || headCells === void 0 ? void 0 : headCells.filter(function (cell) { return cell.grouping; })) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.name; });
|
|
58
60
|
var filterBy = {
|
|
59
|
-
startDate: (0, moment_1.default)(filters === null || filters === void 0 ? void 0 : filters.startDate).format(
|
|
60
|
-
endDate: (0, moment_1.default)(filters === null || filters === void 0 ? void 0 : filters.endDate).format(
|
|
61
|
+
startDate: (0, moment_1.default)(filters === null || filters === void 0 ? void 0 : filters.startDate).format('YYYY-MM-DD'),
|
|
62
|
+
endDate: (0, moment_1.default)(filters === null || filters === void 0 ? void 0 : filters.endDate).format('YYYY-MM-DD'),
|
|
61
63
|
campaignId: filters === null || filters === void 0 ? void 0 : filters.campaignId,
|
|
62
64
|
placeIds: filters === null || filters === void 0 ? void 0 : filters.placeIds,
|
|
63
65
|
domainId: filters === null || filters === void 0 ? void 0 : filters.domainId,
|