awing-library 2.1.88-beta → 2.1.90-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/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/RetargetMacAddress/component.js +2 -1
- package/lib/ACM-AXN/CampaignSchedule/component.js +30 -4
- package/lib/AWING/PageManagement/PageManagement.js +2 -2
- package/lib/AWING/PageManagement/interface.d.ts +1 -2
- package/package.json +1 -1
|
@@ -19,10 +19,11 @@ var react_1 = __importDefault(require("react"));
|
|
|
19
19
|
var material_1 = require("@mui/material");
|
|
20
20
|
var react_i18next_1 = require("react-i18next");
|
|
21
21
|
var AWING_1 = require("../../../../../../../AWING");
|
|
22
|
+
var i18n_1 = __importDefault(require("../../../../../../../i18n"));
|
|
22
23
|
var RetargetMacAddress = function (props) {
|
|
23
24
|
var rule = props.rule, valids = props.valids, onChange = props.onChange, remarketingLists = props.remarketingLists;
|
|
24
25
|
var _a = react_1.default.useState(''), inputValue = _a[0], setInputValue = _a[1];
|
|
25
|
-
var t = (0, react_i18next_1.useTranslation)().t;
|
|
26
|
+
var t = (0, react_i18next_1.useTranslation)(undefined, { i18n: i18n_1.default }).t;
|
|
26
27
|
react_1.default.useEffect(function () {
|
|
27
28
|
var _a;
|
|
28
29
|
if (remarketingLists.length) {
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -7,7 +30,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
30
|
var material_1 = require("@mui/material");
|
|
8
31
|
var styles_1 = require("@mui/styles");
|
|
9
32
|
var moment_1 = __importDefault(require("moment"));
|
|
10
|
-
var react_1 =
|
|
33
|
+
var react_1 = __importStar(require("react"));
|
|
11
34
|
var EnhancedPagination_1 = __importDefault(require("./Components/EnhancedPagination"));
|
|
12
35
|
var NoDataTable_1 = __importDefault(require("./Components/NoDataTable"));
|
|
13
36
|
var RowAdvance_1 = __importDefault(require("./Components/RowAdvance"));
|
|
@@ -48,9 +71,12 @@ var CampaignSchedulesComponent = function (_a) {
|
|
|
48
71
|
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
72
|
var classes = useStyles();
|
|
50
73
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
74
|
+
var total = (0, react_1.useMemo)(function () {
|
|
75
|
+
return (scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.total)
|
|
76
|
+
? scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.total
|
|
77
|
+
: scheduleGroups === null || scheduleGroups === void 0 ? void 0 : scheduleGroups.totalItemCount;
|
|
78
|
+
}, [scheduleGroups]);
|
|
79
|
+
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: total !== null && total !== void 0 ? total : 0, 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
|
|
54
80
|
? classes.nomarlPaginations
|
|
55
81
|
: groupLength === 1
|
|
56
82
|
? classes.secondaryPaginations
|
|
@@ -39,7 +39,7 @@ var PageManagement = function (props) {
|
|
|
39
39
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
40
40
|
// const params = useParams<"*">();
|
|
41
41
|
var location = (0, react_router_dom_1.useLocation)();
|
|
42
|
-
var title = props.title, columns = props.columns, rows = props.rows, _a = props.totalOfRows, totalOfRows = _a === void 0 ? rows.length : _a, getRowId = props.getRowId, checkboxSelection = props.checkboxSelection, onDeleteSelected = props.onDeleteSelected, advancedSearchFields = props.advancedSearchFields, onlyNumberSearch = props.onlyNumberSearch, _b = props.disableSearch, disableSearch = _b === void 0 ? false : _b, includeSearchById = props.includeSearchById, _c = props.disablePagination, disablePagination = _c === void 0 ? false : _c, onChangeQueryInput = props.onChangeQueryInput, _d = props.loading, loading = _d === void 0 ? true : _d, onCreateButtonClick = props.onCreateButtonClick, onRowClick = props.onRowClick, onCreateFolderButtonClick = props.onCreateFolderButtonClick, onDelete = props.onDelete, inputSearchPlaceholder = props.inputSearchPlaceholder, rowActions = props.rowActions, showNotificationSuccess = props.showNotificationSuccess, confirmDelete = props.confirmDelete, customActions = props.customActions, variantPaperSearch = props.variantPaperSearch
|
|
42
|
+
var title = props.title, columns = props.columns, rows = props.rows, _a = props.totalOfRows, totalOfRows = _a === void 0 ? rows.length : _a, getRowId = props.getRowId, checkboxSelection = props.checkboxSelection, onDeleteSelected = props.onDeleteSelected, advancedSearchFields = props.advancedSearchFields, onlyNumberSearch = props.onlyNumberSearch, _b = props.disableSearch, disableSearch = _b === void 0 ? false : _b, includeSearchById = props.includeSearchById, _c = props.disablePagination, disablePagination = _c === void 0 ? false : _c, onChangeQueryInput = props.onChangeQueryInput, _d = props.loading, loading = _d === void 0 ? true : _d, onCreateButtonClick = props.onCreateButtonClick, onRowClick = props.onRowClick, onCreateFolderButtonClick = props.onCreateFolderButtonClick, onDelete = props.onDelete, inputSearchPlaceholder = props.inputSearchPlaceholder, rowActions = props.rowActions, showNotificationSuccess = props.showNotificationSuccess, confirmDelete = props.confirmDelete, customActions = props.customActions, variantPaperSearch = props.variantPaperSearch;
|
|
43
43
|
var _e = (0, react_1.useState)(false), openAdvancedSearch = _e[0], setOpenAdvancedSearch = _e[1];
|
|
44
44
|
var _f = (0, react_1.useState)([]), rowSelected = _f[0], setRowSelected = _f[1];
|
|
45
45
|
var _g = (0, react_1.useState)({
|
|
@@ -131,7 +131,7 @@ var PageManagement = function (props) {
|
|
|
131
131
|
} }, (checkboxSelection && {
|
|
132
132
|
selected: rowSelected,
|
|
133
133
|
onSelectedChange: function (ids) { return setRowSelected(ids); },
|
|
134
|
-
selectionActions:
|
|
134
|
+
selectionActions: [
|
|
135
135
|
{
|
|
136
136
|
icon: (0, jsx_runtime_1.jsx)(Delete_1.default, {}),
|
|
137
137
|
tooltipTitle: t('Common.DeleteSelectedItems'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridSortModel, DataObject, MenuOption, RowActionDefinition, DataGridColumnDefinition
|
|
1
|
+
import { GridSortModel, DataObject, MenuOption, RowActionDefinition, DataGridColumnDefinition } from '../DataGrid/interface';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { AutocompleteRenderOptionState } from '@mui/material/Autocomplete';
|
|
4
4
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
@@ -94,5 +94,4 @@ export interface PageManagementProps {
|
|
|
94
94
|
showNotificationSuccess?: () => void;
|
|
95
95
|
confirmDelete?: (f: () => void) => void;
|
|
96
96
|
customActions?: ReactNode;
|
|
97
|
-
selectionActions?: SelectionActionDefinition[];
|
|
98
97
|
}
|