awing-library 2.1.65 → 2.1.66
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.
|
@@ -213,13 +213,13 @@ var Advanced = function (props) {
|
|
|
213
213
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ClassicBaseDrawer_1.default, { title: translationText.advanced, open: isOpen, onSubmit: handleSubmit, onClose: handleClose, children: (0, jsx_runtime_1.jsx)(material_1.Paper, { sx: classes.paper, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, container: true, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, md: true }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, sx: classes.buttonGroup, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "outlined", color: "primary", endIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {}), "aria-controls": "simple-menu", "aria-haspopup": "true", onClick: function (e) {
|
|
214
214
|
e.stopPropagation();
|
|
215
215
|
setAnchorElRule(e.currentTarget);
|
|
216
|
-
}, children: translationText.addRule }), (0, jsx_runtime_1.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
216
|
+
}, children: translationText.addRule }), (0, jsx_runtime_1.jsxs)(material_1.Menu, { id: "simple-menu", anchorEl: anchorElRule, keepMounted: true, open: Boolean(anchorElRule), onClose: function () { return handleButtonMenuClose(); }, children: [JSON.stringify(translationText.type), Object.keys(ruleType).map(function (type, idx) {
|
|
217
|
+
var _a;
|
|
218
|
+
return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: function () { return handleAddRule(type); }, children: ((_a = Object.entries(translationText.type).find(function (_a) {
|
|
219
|
+
var k = _a[0], val = _a[1];
|
|
220
|
+
return k === type;
|
|
221
|
+
})) === null || _a === void 0 ? void 0 : _a[1]) || '' }, idx));
|
|
222
|
+
})] })] })] }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (campaignAdAdvanced === null || campaignAdAdvanced === void 0 ? void 0 : campaignAdAdvanced.ruleLogicalExpression) &&
|
|
223
223
|
campaignAdAdvanced.ruleLogicalExpression ? ((0, jsx_runtime_1.jsx)(material_1.List, { component: "nav", children: (0, jsx_runtime_1.jsx)(material_1.ListItem, { sx: classes.listItem, button: true, onClick: function () { return handleEditExpression(); }, children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, { children: [(0, jsx_runtime_1.jsxs)("b", { children: [translationText.ruleLogicalExpression, ":", ' '] }), campaignAdAdvanced.ruleLogicalExpression] }) }) }) })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { children: translationText.noRuleMessage })) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (0, jsx_runtime_1.jsx)(material_1.List, { component: "nav", sx: classes.list, children: (campaignAdAdvanced === null || campaignAdAdvanced === void 0 ? void 0 : campaignAdAdvanced.rules) &&
|
|
224
224
|
campaignAdAdvanced.rules.map(function (rule) { return ((0, jsx_runtime_1.jsxs)(material_1.ListItem, { sx: classes.listItem, button: true, onClick: function () {
|
|
225
225
|
return handleEditRule(rule.name);
|
|
@@ -77,13 +77,13 @@ export declare const nextChar: (c: string) => string;
|
|
|
77
77
|
export declare const RuleType: {
|
|
78
78
|
LimitView: number;
|
|
79
79
|
LimitClick: number;
|
|
80
|
+
Authentication: number;
|
|
80
81
|
LimitEvent: number;
|
|
81
82
|
TargetGender: number;
|
|
82
83
|
TargetAge: number;
|
|
83
84
|
TargetOS: number;
|
|
84
85
|
TargetDevice: number;
|
|
85
86
|
RetargetMacAddress: number;
|
|
86
|
-
Authentication: number;
|
|
87
87
|
};
|
|
88
88
|
export declare const RuleTypeOfCalculator: {
|
|
89
89
|
TargetGender: number;
|
|
@@ -368,13 +368,13 @@ exports.nextChar = nextChar;
|
|
|
368
368
|
exports.RuleType = {
|
|
369
369
|
LimitView: 0,
|
|
370
370
|
LimitClick: 1,
|
|
371
|
+
Authentication: 8,
|
|
371
372
|
LimitEvent: 2,
|
|
372
373
|
TargetGender: 3,
|
|
373
374
|
TargetAge: 4,
|
|
374
375
|
TargetOS: 5,
|
|
375
376
|
TargetDevice: 6,
|
|
376
377
|
RetargetMacAddress: 7,
|
|
377
|
-
Authentication: 8,
|
|
378
378
|
};
|
|
379
379
|
exports.RuleTypeOfCalculator = {
|
|
380
380
|
TargetGender: 3,
|