@pie-element/multi-trait-rubric 6.3.4-next.0 → 7.0.0-beta.0
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/configure/lib/common.js +374 -533
- package/configure/lib/common.js.map +1 -1
- package/configure/lib/defaults.js +35 -6
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/index.js +96 -162
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/main.js +346 -437
- package/configure/lib/main.js.map +1 -1
- package/configure/lib/modals.js +178 -333
- package/configure/lib/modals.js.map +1 -1
- package/configure/lib/scale.js +358 -463
- package/configure/lib/scale.js.map +1 -1
- package/configure/lib/trait.js +253 -358
- package/configure/lib/trait.js.map +1 -1
- package/configure/lib/traitsHeader.js +199 -264
- package/configure/lib/traitsHeader.js.map +1 -1
- package/configure/lib/utils.js +42 -73
- package/configure/lib/utils.js.map +1 -1
- package/configure/package.json +12 -9
- package/controller/lib/defaults.js +2 -3
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +66 -123
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +1 -3
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +1 -1
- package/lib/index.js +40 -77
- package/lib/index.js.map +1 -1
- package/lib/main.js +99 -140
- package/lib/main.js.map +1 -1
- package/lib/scale.js +217 -299
- package/lib/scale.js.map +1 -1
- package/lib/trait.js +51 -71
- package/lib/trait.js.map +1 -1
- package/package.json +10 -8
package/configure/lib/modals.js
CHANGED
|
@@ -1,361 +1,206 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.excludeZeroTypes = exports.InfoDialog = exports.IncludeZeroDialog = exports.ExcludeZeroDialog = exports.DeleteTrait = exports.DeleteScale = exports.DecreaseMaxPoints = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var _DialogActions = _interopRequireDefault(require("@material-ui/core/DialogActions"));
|
|
21
|
-
|
|
22
|
-
var _DialogContent = _interopRequireDefault(require("@material-ui/core/DialogContent"));
|
|
23
|
-
|
|
24
|
-
var _DialogContentText = _interopRequireDefault(require("@material-ui/core/DialogContentText"));
|
|
25
|
-
|
|
26
|
-
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
27
|
-
|
|
10
|
+
var _styles = require("@mui/material/styles");
|
|
11
|
+
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
12
|
+
var _DialogTitle = _interopRequireDefault(require("@mui/material/DialogTitle"));
|
|
13
|
+
var _DialogActions = _interopRequireDefault(require("@mui/material/DialogActions"));
|
|
14
|
+
var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
|
|
15
|
+
var _DialogContentText = _interopRequireDefault(require("@mui/material/DialogContentText"));
|
|
16
|
+
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
28
17
|
var _renderUi = require("@pie-lib/render-ui");
|
|
29
|
-
|
|
30
18
|
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
excludeZeroDialogBoxContent
|
|
34
|
-
includeZeroDialogBoxContent
|
|
35
|
-
deleteScaleDialogBoxContent
|
|
36
|
-
maxPointsDialogBoxContent
|
|
37
|
-
|
|
19
|
+
const {
|
|
20
|
+
configuration: {
|
|
21
|
+
excludeZeroDialogBoxContent,
|
|
22
|
+
includeZeroDialogBoxContent,
|
|
23
|
+
deleteScaleDialogBoxContent,
|
|
24
|
+
maxPointsDialogBoxContent
|
|
25
|
+
}
|
|
26
|
+
} = _defaults.default;
|
|
27
|
+
const excludeZeroTypes = exports.excludeZeroTypes = {
|
|
38
28
|
remove0: 'remove0',
|
|
39
29
|
add0: 'add0',
|
|
40
30
|
shiftLeft: 'shiftLeft',
|
|
41
31
|
shiftRight: 'shiftRight'
|
|
42
32
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
__html: excludeZeroDialogBoxContent.text
|
|
105
|
-
}
|
|
106
|
-
}))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
107
|
-
classes: {
|
|
108
|
-
root: "".concat(classes.button, " ").concat(classes.cancelButton)
|
|
109
|
-
},
|
|
110
|
-
onClick: function onClick() {
|
|
111
|
-
return cancel();
|
|
112
|
-
}
|
|
113
|
-
}, "Cancel"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
114
|
-
classes: {
|
|
115
|
-
root: classes.button
|
|
116
|
-
},
|
|
117
|
-
onClick: function onClick() {
|
|
118
|
-
return changeExcludeZero(excludeZeroTypes.shiftLeft);
|
|
119
|
-
}
|
|
120
|
-
}, "Shift to Left"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
121
|
-
classes: {
|
|
122
|
-
root: classes.button
|
|
123
|
-
},
|
|
124
|
-
onClick: function onClick() {
|
|
125
|
-
return changeExcludeZero(excludeZeroTypes.remove0);
|
|
126
|
-
}
|
|
127
|
-
}, "Remove 0 column")));
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
RawExcludeZeroDialog.propTypes = {
|
|
131
|
-
classes: _propTypes["default"].object,
|
|
132
|
-
open: _propTypes["default"].bool,
|
|
133
|
-
changeExcludeZero: _propTypes["default"].func,
|
|
134
|
-
cancel: _propTypes["default"].func
|
|
135
|
-
};
|
|
136
|
-
var ExcludeZeroDialog = (0, _styles.withStyles)(styles)(RawExcludeZeroDialog);
|
|
33
|
+
const StyledDialog = (0, _styles.styled)(_Dialog.default)(({
|
|
34
|
+
theme
|
|
35
|
+
}) => ({
|
|
36
|
+
'& .MuiPaper-root': {
|
|
37
|
+
padding: theme.spacing(2.5)
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
const StyledDialogTitle = (0, _styles.styled)(_DialogTitle.default)(({
|
|
41
|
+
theme
|
|
42
|
+
}) => ({
|
|
43
|
+
padding: `0 0 ${theme.spacing(2)} 0`,
|
|
44
|
+
'& h2': {
|
|
45
|
+
fontSize: '20px',
|
|
46
|
+
lineHeight: '23px',
|
|
47
|
+
fontFamily: 'Cerebri Sans',
|
|
48
|
+
color: _renderUi.color.text()
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
const StyledDialogContent = (0, _styles.styled)(_DialogContent.default)(({
|
|
52
|
+
theme
|
|
53
|
+
}) => ({
|
|
54
|
+
paddingLeft: '0',
|
|
55
|
+
'& p': {
|
|
56
|
+
fontSize: theme.typography.fontSize + 2,
|
|
57
|
+
fontFamily: 'Cerebri Sans',
|
|
58
|
+
color: _renderUi.color.text()
|
|
59
|
+
}
|
|
60
|
+
}));
|
|
61
|
+
const StyledButton = (0, _styles.styled)(_Button.default)(({
|
|
62
|
+
theme
|
|
63
|
+
}) => ({
|
|
64
|
+
padding: `${theme.spacing(1.5)} ${theme.spacing(2)}`,
|
|
65
|
+
borderRadius: '4px',
|
|
66
|
+
fontSize: theme.typography.fontSize,
|
|
67
|
+
fontFamily: 'Cerebri Sans',
|
|
68
|
+
lineHeight: '14px',
|
|
69
|
+
textTransform: 'none',
|
|
70
|
+
background: _renderUi.color.primary(),
|
|
71
|
+
color: theme.palette.common.white
|
|
72
|
+
}));
|
|
73
|
+
const CancelButton = (0, _styles.styled)(StyledButton)({
|
|
74
|
+
background: _renderUi.color.secondaryBackground(),
|
|
75
|
+
color: _renderUi.color.text()
|
|
76
|
+
});
|
|
77
|
+
const ExcludeZeroDialog = ({
|
|
78
|
+
open,
|
|
79
|
+
changeExcludeZero,
|
|
80
|
+
cancel
|
|
81
|
+
}) => /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
82
|
+
open: open
|
|
83
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialogTitle, null, excludeZeroDialogBoxContent.title), /*#__PURE__*/_react.default.createElement(StyledDialogContent, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
+
dangerouslySetInnerHTML: {
|
|
85
|
+
__html: excludeZeroDialogBoxContent.text
|
|
86
|
+
}
|
|
87
|
+
}))), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(CancelButton, {
|
|
88
|
+
onClick: () => cancel()
|
|
89
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
90
|
+
onClick: () => changeExcludeZero(excludeZeroTypes.shiftLeft)
|
|
91
|
+
}, "Shift to Left"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
92
|
+
onClick: () => changeExcludeZero(excludeZeroTypes.remove0)
|
|
93
|
+
}, "Remove 0 column")));
|
|
137
94
|
exports.ExcludeZeroDialog = ExcludeZeroDialog;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
cancel = _ref2.cancel,
|
|
143
|
-
classes = _ref2.classes;
|
|
144
|
-
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
145
|
-
open: open,
|
|
146
|
-
classes: {
|
|
147
|
-
paper: classes.root
|
|
148
|
-
}
|
|
149
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
|
|
150
|
-
classes: {
|
|
151
|
-
root: classes.title
|
|
152
|
-
}
|
|
153
|
-
}, includeZeroDialogBoxContent.title), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
154
|
-
classes: {
|
|
155
|
-
root: classes.text
|
|
156
|
-
}
|
|
157
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
|
-
dangerouslySetInnerHTML: {
|
|
159
|
-
__html: includeZeroDialogBoxContent.text
|
|
160
|
-
}
|
|
161
|
-
}))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
162
|
-
classes: {
|
|
163
|
-
root: "".concat(classes.button, " ").concat(classes.cancelButton)
|
|
164
|
-
},
|
|
165
|
-
onClick: function onClick() {
|
|
166
|
-
return cancel();
|
|
167
|
-
}
|
|
168
|
-
}, "Cancel"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
169
|
-
classes: {
|
|
170
|
-
root: classes.button
|
|
171
|
-
},
|
|
172
|
-
onClick: function onClick() {
|
|
173
|
-
return changeExcludeZero(excludeZeroTypes.shiftRight);
|
|
174
|
-
}
|
|
175
|
-
}, "Shift to Right"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
176
|
-
classes: {
|
|
177
|
-
root: classes.button
|
|
178
|
-
},
|
|
179
|
-
onClick: function onClick() {
|
|
180
|
-
return changeExcludeZero(excludeZeroTypes.add0);
|
|
181
|
-
}
|
|
182
|
-
}, "Add 0 column")));
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
RawIncludeZeroDialog.propTypes = {
|
|
186
|
-
classes: _propTypes["default"].object,
|
|
187
|
-
open: _propTypes["default"].bool,
|
|
188
|
-
changeExcludeZero: _propTypes["default"].func,
|
|
189
|
-
cancel: _propTypes["default"].func
|
|
95
|
+
ExcludeZeroDialog.propTypes = {
|
|
96
|
+
open: _propTypes.default.bool,
|
|
97
|
+
changeExcludeZero: _propTypes.default.func,
|
|
98
|
+
cancel: _propTypes.default.func
|
|
190
99
|
};
|
|
191
|
-
|
|
100
|
+
const IncludeZeroDialog = ({
|
|
101
|
+
open,
|
|
102
|
+
changeExcludeZero,
|
|
103
|
+
cancel
|
|
104
|
+
}) => /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
105
|
+
open: open
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialogTitle, null, includeZeroDialogBoxContent.title), /*#__PURE__*/_react.default.createElement(StyledDialogContent, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
+
dangerouslySetInnerHTML: {
|
|
108
|
+
__html: includeZeroDialogBoxContent.text
|
|
109
|
+
}
|
|
110
|
+
}))), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(CancelButton, {
|
|
111
|
+
onClick: () => cancel()
|
|
112
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
113
|
+
onClick: () => changeExcludeZero(excludeZeroTypes.shiftRight)
|
|
114
|
+
}, "Shift to Right"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
115
|
+
onClick: () => changeExcludeZero(excludeZeroTypes.add0)
|
|
116
|
+
}, "Add 0 column")));
|
|
192
117
|
exports.IncludeZeroDialog = IncludeZeroDialog;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
cancel = _ref3.cancel,
|
|
198
|
-
classes = _ref3.classes;
|
|
199
|
-
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
200
|
-
open: open,
|
|
201
|
-
classes: {
|
|
202
|
-
paper: classes.root
|
|
203
|
-
}
|
|
204
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
|
|
205
|
-
classes: {
|
|
206
|
-
root: classes.title
|
|
207
|
-
}
|
|
208
|
-
}, maxPointsDialogBoxContent.title), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
209
|
-
classes: {
|
|
210
|
-
root: classes.text
|
|
211
|
-
}
|
|
212
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
213
|
-
dangerouslySetInnerHTML: {
|
|
214
|
-
__html: maxPointsDialogBoxContent.text
|
|
215
|
-
}
|
|
216
|
-
}))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
217
|
-
classes: {
|
|
218
|
-
root: "".concat(classes.button, " ").concat(classes.cancelButton)
|
|
219
|
-
},
|
|
220
|
-
onClick: cancel
|
|
221
|
-
}, "Cancel"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
222
|
-
classes: {
|
|
223
|
-
root: classes.button
|
|
224
|
-
},
|
|
225
|
-
onClick: deleteScorePoints
|
|
226
|
-
}, "Confirm")));
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
RawDecreaseMaxPoints.propTypes = {
|
|
230
|
-
classes: _propTypes["default"].object,
|
|
231
|
-
open: _propTypes["default"].bool,
|
|
232
|
-
deleteScorePoints: _propTypes["default"].func,
|
|
233
|
-
cancel: _propTypes["default"].func
|
|
118
|
+
IncludeZeroDialog.propTypes = {
|
|
119
|
+
open: _propTypes.default.bool,
|
|
120
|
+
changeExcludeZero: _propTypes.default.func,
|
|
121
|
+
cancel: _propTypes.default.func
|
|
234
122
|
};
|
|
235
|
-
|
|
123
|
+
const DecreaseMaxPoints = ({
|
|
124
|
+
open,
|
|
125
|
+
deleteScorePoints,
|
|
126
|
+
cancel
|
|
127
|
+
}) => /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
128
|
+
open: open
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialogTitle, null, maxPointsDialogBoxContent.title), /*#__PURE__*/_react.default.createElement(StyledDialogContent, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
+
dangerouslySetInnerHTML: {
|
|
131
|
+
__html: maxPointsDialogBoxContent.text
|
|
132
|
+
}
|
|
133
|
+
}))), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(CancelButton, {
|
|
134
|
+
onClick: cancel
|
|
135
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
136
|
+
onClick: deleteScorePoints
|
|
137
|
+
}, "Confirm")));
|
|
236
138
|
exports.DecreaseMaxPoints = DecreaseMaxPoints;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
deleteScale = _ref4.deleteScale,
|
|
242
|
-
cancel = _ref4.cancel,
|
|
243
|
-
classes = _ref4.classes;
|
|
244
|
-
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
245
|
-
open: open,
|
|
246
|
-
classes: {
|
|
247
|
-
paper: classes.root
|
|
248
|
-
}
|
|
249
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
|
|
250
|
-
classes: {
|
|
251
|
-
root: classes.title
|
|
252
|
-
}
|
|
253
|
-
}, "".concat(deleteScaleDialogBoxContent.title, " #").concat(scaleIndex + 1)), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
254
|
-
classes: {
|
|
255
|
-
root: classes.text
|
|
256
|
-
}
|
|
257
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
258
|
-
dangerouslySetInnerHTML: {
|
|
259
|
-
__html: deleteScaleDialogBoxContent.text
|
|
260
|
-
}
|
|
261
|
-
}))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
262
|
-
classes: {
|
|
263
|
-
root: "".concat(classes.button, " ").concat(classes.cancelButton)
|
|
264
|
-
},
|
|
265
|
-
onClick: cancel
|
|
266
|
-
}, "Cancel"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
267
|
-
classes: {
|
|
268
|
-
root: classes.button
|
|
269
|
-
},
|
|
270
|
-
onClick: deleteScale
|
|
271
|
-
}, "Delete")));
|
|
139
|
+
DecreaseMaxPoints.propTypes = {
|
|
140
|
+
open: _propTypes.default.bool,
|
|
141
|
+
deleteScorePoints: _propTypes.default.func,
|
|
142
|
+
cancel: _propTypes.default.func
|
|
272
143
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
|
|
144
|
+
const DeleteScale = ({
|
|
145
|
+
open,
|
|
146
|
+
scaleIndex,
|
|
147
|
+
deleteScale,
|
|
148
|
+
cancel
|
|
149
|
+
}) => /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
150
|
+
open: open
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialogTitle, null, `${deleteScaleDialogBoxContent.title} #${scaleIndex + 1}`), /*#__PURE__*/_react.default.createElement(StyledDialogContent, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
+
dangerouslySetInnerHTML: {
|
|
153
|
+
__html: deleteScaleDialogBoxContent.text
|
|
154
|
+
}
|
|
155
|
+
}))), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(CancelButton, {
|
|
156
|
+
onClick: cancel
|
|
157
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
158
|
+
onClick: deleteScale
|
|
159
|
+
}, "Delete")));
|
|
282
160
|
exports.DeleteScale = DeleteScale;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
classes = _ref5.classes,
|
|
289
|
-
traitLabel = _ref5.traitLabel;
|
|
290
|
-
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
291
|
-
open: open,
|
|
292
|
-
classes: {
|
|
293
|
-
paper: classes.root
|
|
294
|
-
}
|
|
295
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
|
|
296
|
-
classes: {
|
|
297
|
-
root: classes.title
|
|
298
|
-
}
|
|
299
|
-
}, "Delete ", traitLabel), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
300
|
-
classes: {
|
|
301
|
-
root: classes.text
|
|
302
|
-
}
|
|
303
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
304
|
-
dangerouslySetInnerHTML: {
|
|
305
|
-
__html: "Are you sure you want to delete this ".concat(traitLabel, "?")
|
|
306
|
-
}
|
|
307
|
-
}))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
308
|
-
classes: {
|
|
309
|
-
root: "".concat(classes.button, " ").concat(classes.cancelButton)
|
|
310
|
-
},
|
|
311
|
-
onClick: cancel
|
|
312
|
-
}, "Cancel"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
313
|
-
classes: {
|
|
314
|
-
root: classes.button
|
|
315
|
-
},
|
|
316
|
-
onClick: deleteTrait
|
|
317
|
-
}, "Delete")));
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
RawDeleteTrait.propTypes = {
|
|
321
|
-
classes: _propTypes["default"].object,
|
|
322
|
-
open: _propTypes["default"].bool,
|
|
323
|
-
deleteTrait: _propTypes["default"].func,
|
|
324
|
-
cancel: _propTypes["default"].func,
|
|
325
|
-
traitLabel: _propTypes["default"].string
|
|
161
|
+
DeleteScale.propTypes = {
|
|
162
|
+
open: _propTypes.default.bool,
|
|
163
|
+
scaleIndex: _propTypes.default.number,
|
|
164
|
+
deleteScale: _propTypes.default.func,
|
|
165
|
+
cancel: _propTypes.default.func
|
|
326
166
|
};
|
|
327
|
-
|
|
167
|
+
const DeleteTrait = ({
|
|
168
|
+
open,
|
|
169
|
+
deleteTrait,
|
|
170
|
+
cancel,
|
|
171
|
+
traitLabel
|
|
172
|
+
}) => /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
173
|
+
open: open
|
|
174
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialogTitle, null, "Delete ", traitLabel), /*#__PURE__*/_react.default.createElement(StyledDialogContent, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
+
dangerouslySetInnerHTML: {
|
|
176
|
+
__html: `Are you sure you want to delete this ${traitLabel}?`
|
|
177
|
+
}
|
|
178
|
+
}))), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(CancelButton, {
|
|
179
|
+
onClick: cancel
|
|
180
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
181
|
+
onClick: deleteTrait
|
|
182
|
+
}, "Delete")));
|
|
328
183
|
exports.DeleteTrait = DeleteTrait;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
onClose = _ref6.onClose;
|
|
335
|
-
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
336
|
-
open: open,
|
|
337
|
-
classes: {
|
|
338
|
-
paper: classes.root
|
|
339
|
-
}
|
|
340
|
-
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
|
|
341
|
-
classes: {
|
|
342
|
-
root: classes.title
|
|
343
|
-
}
|
|
344
|
-
}, text), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
345
|
-
classes: {
|
|
346
|
-
root: classes.button
|
|
347
|
-
},
|
|
348
|
-
onClick: onClose
|
|
349
|
-
}, "OK")));
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
RawInfoDialog.propTypes = {
|
|
353
|
-
classes: _propTypes["default"].object,
|
|
354
|
-
open: _propTypes["default"].bool,
|
|
355
|
-
text: _propTypes["default"].string,
|
|
356
|
-
cancel: _propTypes["default"].func,
|
|
357
|
-
onClose: _propTypes["default"].func
|
|
184
|
+
DeleteTrait.propTypes = {
|
|
185
|
+
open: _propTypes.default.bool,
|
|
186
|
+
deleteTrait: _propTypes.default.func,
|
|
187
|
+
cancel: _propTypes.default.func,
|
|
188
|
+
traitLabel: _propTypes.default.string
|
|
358
189
|
};
|
|
359
|
-
|
|
190
|
+
const InfoDialog = ({
|
|
191
|
+
open,
|
|
192
|
+
text,
|
|
193
|
+
onClose
|
|
194
|
+
}) => /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
195
|
+
open: open
|
|
196
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialogTitle, null, text), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
197
|
+
onClick: onClose
|
|
198
|
+
}, "OK")));
|
|
360
199
|
exports.InfoDialog = InfoDialog;
|
|
200
|
+
InfoDialog.propTypes = {
|
|
201
|
+
open: _propTypes.default.bool,
|
|
202
|
+
text: _propTypes.default.string,
|
|
203
|
+
cancel: _propTypes.default.func,
|
|
204
|
+
onClose: _propTypes.default.func
|
|
205
|
+
};
|
|
361
206
|
//# sourceMappingURL=modals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/modals.jsx"],"names":["defaults","configuration","excludeZeroDialogBoxContent","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","excludeZeroTypes","remove0","add0","shiftLeft","shiftRight","styles","theme","root","padding","spacing","unit","title","fontSize","lineHeight","fontFamily","color","text","paddingLeft","typography","button","borderRadius","textTransform","background","primary","palette","common","white","cancelButton","secondaryBackground","RawExcludeZeroDialog","open","changeExcludeZero","cancel","classes","paper","__html","propTypes","PropTypes","object","bool","func","ExcludeZeroDialog","RawIncludeZeroDialog","IncludeZeroDialog","RawDecreaseMaxPoints","deleteScorePoints","DecreaseMaxPoints","RawDeleteScale","scaleIndex","deleteScale","number","DeleteScale","RawDeleteTrait","deleteTrait","traitLabel","string","DeleteTrait","RawInfoDialog","onClose","InfoDialog"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAEA,4BAOIA,oBAPJ,CACEC,aADF;AAAA,IAEIC,2BAFJ,yBAEIA,2BAFJ;AAAA,IAGIC,2BAHJ,yBAGIA,2BAHJ;AAAA,IAIIC,2BAJJ,yBAIIA,2BAJJ;AAAA,IAKIC,yBALJ,yBAKIA,yBALJ;AASO,IAAMC,gBAAgB,GAAG;AAC9BC,EAAAA,OAAO,EAAE,SADqB;AAE9BC,EAAAA,IAAI,EAAE,MAFwB;AAG9BC,EAAAA,SAAS,EAAE,WAHmB;AAI9BC,EAAAA,UAAU,EAAE;AAJkB,CAAzB;;;AAOP,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;A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IAAMC,WAAW,GAAG,wBAAWnD,MAAX,EAAmB+C,cAAnB,CAApB;;;AAEA,IAAMK,aAAa,GAAG,SAAhBA,aAAgB;AAAA,MAAGxB,OAAH,SAAGA,OAAH;AAAA,MAAYH,IAAZ,SAAYA,IAAZ;AAAA,MAAkBd,IAAlB,SAAkBA,IAAlB;AAAA,MAAwB0C,OAAxB,SAAwBA,OAAxB;AAAA,sBACpB,gCAAC,kBAAD;AAAQ,IAAA,IAAI,EAAE5B,IAAd;AAAoB,IAAA,OAAO,EAAE;AAAEI,MAAAA,KAAK,EAAED,OAAO,CAAC1B;AAAjB;AAA7B,kBACE,gCAAC,uBAAD;AAAa,IAAA,OAAO,EAAE;AAAEA,MAAAA,IAAI,EAAE0B,OAAO,CAACtB;AAAhB;AAAtB,KAAgDK,IAAhD,CADF,eAGE,gCAAC,yBAAD,qBACE,gCAAC,kBAAD;AAAQ,IAAA,OAAO,EAAE;AAAET,MAAAA,IAAI,EAAE0B,OAAO,CAACd;AAAhB,KAAjB;AAA2C,IAAA,OAAO,EAAEuC;AAApD,UADF,CAHF,CADoB;AAAA,CAAtB;;AAYAD,aAAa,CAACrB,SAAd,GAA0B;AACxBH,EAAAA,OAAO,EAAEI,sBAAUC,MADK;AAExBR,EAAAA,IAAI,EAAEO,sBAAUE,IAFQ;AAGxBvB,EAAAA,IAAI,EAAEqB,sBAAUkB,MAHQ;AAIxBvB,EAAAA,MAAM,EAAEK,sBAAUG,IAJM;AAKxBkB,EAAAA,OAAO,EAAErB,sBAAUG;AALK,CAA1B;AAQA,IAAMmB,UAAU,GAAG,wBAAWtD,MAAX,EAAmBoD,aAAnB,CAAnB","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { withStyles } from '@material-ui/core/styles';\n\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport Button from '@material-ui/core/Button';\nimport { color } from '@pie-lib/render-ui';\n\nimport defaults from './defaults';\n\nconst {\n configuration: {\n excludeZeroDialogBoxContent,\n includeZeroDialogBoxContent,\n deleteScaleDialogBoxContent,\n maxPointsDialogBoxContent,\n },\n} = defaults;\n\nexport const excludeZeroTypes = {\n remove0: 'remove0',\n add0: 'add0',\n shiftLeft: 'shiftLeft',\n shiftRight: 'shiftRight',\n};\n\nconst styles = (theme) => ({\n root: {\n padding: theme.spacing.unit * 2.5,\n },\n title: {\n padding: `0 0 ${theme.spacing.unit * 2}px 0`,\n\n '& h2': {\n fontSize: '20px',\n lineHeight: '23px',\n fontFamily: 'Cerebri Sans',\n color: color.text(),\n },\n },\n text: {\n paddingLeft: '0',\n\n '& p': {\n fontSize: theme.typography.fontSize + 2,\n fontFamily: 'Cerebri Sans',\n color: color.text(),\n },\n },\n button: {\n padding: `${theme.spacing.unit * 1.5}px ${theme.spacing.unit * 2}px`,\n borderRadius: '4px',\n fontSize: theme.typography.fontSize,\n fontFamily: 'Cerebri Sans',\n lineHeight: '14px',\n textTransform: 'none',\n background: color.primary(),\n color: theme.palette.common.white,\n },\n cancelButton: {\n background: color.secondaryBackground(),\n color: color.text(),\n },\n});\n\nconst RawExcludeZeroDialog = ({ open, changeExcludeZero, cancel, classes }) => (\n <Dialog open={open} classes={{ paper: classes.root }}>\n <DialogTitle classes={{ root: classes.title }}>{excludeZeroDialogBoxContent.title}</DialogTitle>\n\n <DialogContent classes={{ root: classes.text }}>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: excludeZeroDialogBoxContent.text }} />\n </DialogContentText>\n </DialogContent>\n\n <DialogActions>\n <Button classes={{ root: `${classes.button} ${classes.cancelButton}` }} onClick={() => cancel()}>\n Cancel\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={() => changeExcludeZero(excludeZeroTypes.shiftLeft)}>\n Shift to Left\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={() => changeExcludeZero(excludeZeroTypes.remove0)}>\n Remove 0 column\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nRawExcludeZeroDialog.propTypes = {\n classes: PropTypes.object,\n open: PropTypes.bool,\n changeExcludeZero: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst ExcludeZeroDialog = withStyles(styles)(RawExcludeZeroDialog);\n\nconst RawIncludeZeroDialog = ({ open, changeExcludeZero, cancel, classes }) => (\n <Dialog open={open} classes={{ paper: classes.root }}>\n <DialogTitle classes={{ root: classes.title }}>{includeZeroDialogBoxContent.title}</DialogTitle>\n\n <DialogContent classes={{ root: classes.text }}>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: includeZeroDialogBoxContent.text }} />\n </DialogContentText>\n </DialogContent>\n\n <DialogActions>\n <Button classes={{ root: `${classes.button} ${classes.cancelButton}` }} onClick={() => cancel()}>\n Cancel\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={() => changeExcludeZero(excludeZeroTypes.shiftRight)}>\n Shift to Right\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={() => changeExcludeZero(excludeZeroTypes.add0)}>\n Add 0 column\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nRawIncludeZeroDialog.propTypes = {\n classes: PropTypes.object,\n open: PropTypes.bool,\n changeExcludeZero: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst IncludeZeroDialog = withStyles(styles)(RawIncludeZeroDialog);\n\nconst RawDecreaseMaxPoints = ({ open, deleteScorePoints, cancel, classes }) => (\n <Dialog open={open} classes={{ paper: classes.root }}>\n <DialogTitle classes={{ root: classes.title }}>{maxPointsDialogBoxContent.title}</DialogTitle>\n\n <DialogContent classes={{ root: classes.text }}>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: maxPointsDialogBoxContent.text }} />\n </DialogContentText>\n </DialogContent>\n\n <DialogActions>\n <Button classes={{ root: `${classes.button} ${classes.cancelButton}` }} onClick={cancel}>\n Cancel\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={deleteScorePoints}>\n Confirm\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nRawDecreaseMaxPoints.propTypes = {\n classes: PropTypes.object,\n open: PropTypes.bool,\n deleteScorePoints: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst DecreaseMaxPoints = withStyles(styles)(RawDecreaseMaxPoints);\n\nconst RawDeleteScale = ({ open, scaleIndex, deleteScale, cancel, classes }) => (\n <Dialog open={open} classes={{ paper: classes.root }}>\n <DialogTitle classes={{ root: classes.title }}>\n {`${deleteScaleDialogBoxContent.title} #${scaleIndex + 1}`}\n </DialogTitle>\n\n <DialogContent classes={{ root: classes.text }}>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: deleteScaleDialogBoxContent.text }} />\n </DialogContentText>\n </DialogContent>\n\n <DialogActions>\n <Button classes={{ root: `${classes.button} ${classes.cancelButton}` }} onClick={cancel}>\n Cancel\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={deleteScale}>\n Delete\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nRawDeleteScale.propTypes = {\n classes: PropTypes.object,\n open: PropTypes.bool,\n scaleIndex: PropTypes.number,\n deleteScale: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst DeleteScale = withStyles(styles)(RawDeleteScale);\n\nconst RawDeleteTrait = ({ open, deleteTrait, cancel, classes, traitLabel }) => (\n <Dialog open={open} classes={{ paper: classes.root }}>\n <DialogTitle classes={{ root: classes.title }}>Delete {traitLabel}</DialogTitle>\n\n <DialogContent classes={{ root: classes.text }}>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: `Are you sure you want to delete this ${traitLabel}?` }} />\n </DialogContentText>\n </DialogContent>\n\n <DialogActions>\n <Button classes={{ root: `${classes.button} ${classes.cancelButton}` }} onClick={cancel}>\n Cancel\n </Button>\n\n <Button classes={{ root: classes.button }} onClick={deleteTrait}>\n Delete\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nRawDeleteTrait.propTypes = {\n classes: PropTypes.object,\n open: PropTypes.bool,\n deleteTrait: PropTypes.func,\n cancel: PropTypes.func,\n traitLabel: PropTypes.string,\n};\n\nconst DeleteTrait = withStyles(styles)(RawDeleteTrait);\n\nconst RawInfoDialog = ({ classes, open, text, onClose }) => (\n <Dialog open={open} classes={{ paper: classes.root }}>\n <DialogTitle classes={{ root: classes.title }}>{text}</DialogTitle>\n\n <DialogActions>\n <Button classes={{ root: classes.button }} onClick={onClose}>\n OK\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nRawInfoDialog.propTypes = {\n classes: PropTypes.object,\n open: PropTypes.bool,\n text: PropTypes.string,\n cancel: PropTypes.func,\n onClose: PropTypes.func,\n};\n\nconst InfoDialog = withStyles(styles)(RawInfoDialog);\n\nexport { ExcludeZeroDialog, IncludeZeroDialog, DecreaseMaxPoints, DeleteScale, DeleteTrait, InfoDialog };\n"],"file":"modals.js"}
|
|
1
|
+
{"version":3,"file":"modals.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_Dialog","_DialogTitle","_DialogActions","_DialogContent","_DialogContentText","_Button","_renderUi","_defaults","configuration","excludeZeroDialogBoxContent","includeZeroDialogBoxContent","deleteScaleDialogBoxContent","maxPointsDialogBoxContent","defaults","excludeZeroTypes","exports","remove0","add0","shiftLeft","shiftRight","StyledDialog","styled","Dialog","theme","padding","spacing","StyledDialogTitle","DialogTitle","fontSize","lineHeight","fontFamily","color","text","StyledDialogContent","DialogContent","paddingLeft","typography","StyledButton","Button","borderRadius","textTransform","background","primary","palette","common","white","CancelButton","secondaryBackground","ExcludeZeroDialog","open","changeExcludeZero","cancel","default","createElement","title","dangerouslySetInnerHTML","__html","onClick","propTypes","PropTypes","bool","func","IncludeZeroDialog","DecreaseMaxPoints","deleteScorePoints","DeleteScale","scaleIndex","deleteScale","number","DeleteTrait","deleteTrait","traitLabel","string","InfoDialog","onClose"],"sources":["../src/modals.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport Dialog from '@mui/material/Dialog';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport Button from '@mui/material/Button';\nimport { color } from '@pie-lib/render-ui';\n\nimport defaults from './defaults';\n\nconst {\n configuration: {\n excludeZeroDialogBoxContent,\n includeZeroDialogBoxContent,\n deleteScaleDialogBoxContent,\n maxPointsDialogBoxContent,\n },\n} = defaults;\n\nexport const excludeZeroTypes = {\n remove0: 'remove0',\n add0: 'add0',\n shiftLeft: 'shiftLeft',\n shiftRight: 'shiftRight',\n};\n\nconst StyledDialog = styled(Dialog)(({ theme }) => ({\n '& .MuiPaper-root': {\n padding: theme.spacing(2.5),\n },\n}));\n\nconst StyledDialogTitle = styled(DialogTitle)(({ theme }) => ({\n padding: `0 0 ${theme.spacing(2)} 0`,\n\n '& h2': {\n fontSize: '20px',\n lineHeight: '23px',\n fontFamily: 'Cerebri Sans',\n color: color.text(),\n },\n}));\n\nconst StyledDialogContent = styled(DialogContent)(({ theme }) => ({\n paddingLeft: '0',\n\n '& p': {\n fontSize: theme.typography.fontSize + 2,\n fontFamily: 'Cerebri Sans',\n color: color.text(),\n },\n}));\n\nconst StyledButton = styled(Button)(({ theme }) => ({\n padding: `${theme.spacing(1.5)} ${theme.spacing(2)}`,\n borderRadius: '4px',\n fontSize: theme.typography.fontSize,\n fontFamily: 'Cerebri Sans',\n lineHeight: '14px',\n textTransform: 'none',\n background: color.primary(),\n color: theme.palette.common.white,\n}));\n\nconst CancelButton = styled(StyledButton)({\n background: color.secondaryBackground(),\n color: color.text(),\n});\n\nconst ExcludeZeroDialog = ({ open, changeExcludeZero, cancel }) => (\n <StyledDialog open={open}>\n <StyledDialogTitle>{excludeZeroDialogBoxContent.title}</StyledDialogTitle>\n\n <StyledDialogContent>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: excludeZeroDialogBoxContent.text }} />\n </DialogContentText>\n </StyledDialogContent>\n\n <DialogActions>\n <CancelButton onClick={() => cancel()}>\n Cancel\n </CancelButton>\n\n <StyledButton onClick={() => changeExcludeZero(excludeZeroTypes.shiftLeft)}>\n Shift to Left\n </StyledButton>\n\n <StyledButton onClick={() => changeExcludeZero(excludeZeroTypes.remove0)}>\n Remove 0 column\n </StyledButton>\n </DialogActions>\n </StyledDialog>\n);\n\nExcludeZeroDialog.propTypes = {\n open: PropTypes.bool,\n changeExcludeZero: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst IncludeZeroDialog = ({ open, changeExcludeZero, cancel }) => (\n <StyledDialog open={open}>\n <StyledDialogTitle>{includeZeroDialogBoxContent.title}</StyledDialogTitle>\n\n <StyledDialogContent>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: includeZeroDialogBoxContent.text }} />\n </DialogContentText>\n </StyledDialogContent>\n\n <DialogActions>\n <CancelButton onClick={() => cancel()}>\n Cancel\n </CancelButton>\n\n <StyledButton onClick={() => changeExcludeZero(excludeZeroTypes.shiftRight)}>\n Shift to Right\n </StyledButton>\n\n <StyledButton onClick={() => changeExcludeZero(excludeZeroTypes.add0)}>\n Add 0 column\n </StyledButton>\n </DialogActions>\n </StyledDialog>\n);\n\nIncludeZeroDialog.propTypes = {\n open: PropTypes.bool,\n changeExcludeZero: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst DecreaseMaxPoints = ({ open, deleteScorePoints, cancel }) => (\n <StyledDialog open={open}>\n <StyledDialogTitle>{maxPointsDialogBoxContent.title}</StyledDialogTitle>\n\n <StyledDialogContent>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: maxPointsDialogBoxContent.text }} />\n </DialogContentText>\n </StyledDialogContent>\n\n <DialogActions>\n <CancelButton onClick={cancel}>\n Cancel\n </CancelButton>\n\n <StyledButton onClick={deleteScorePoints}>\n Confirm\n </StyledButton>\n </DialogActions>\n </StyledDialog>\n);\n\nDecreaseMaxPoints.propTypes = {\n open: PropTypes.bool,\n deleteScorePoints: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst DeleteScale = ({ open, scaleIndex, deleteScale, cancel }) => (\n <StyledDialog open={open}>\n <StyledDialogTitle>\n {`${deleteScaleDialogBoxContent.title} #${scaleIndex + 1}`}\n </StyledDialogTitle>\n\n <StyledDialogContent>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: deleteScaleDialogBoxContent.text }} />\n </DialogContentText>\n </StyledDialogContent>\n\n <DialogActions>\n <CancelButton onClick={cancel}>\n Cancel\n </CancelButton>\n\n <StyledButton onClick={deleteScale}>\n Delete\n </StyledButton>\n </DialogActions>\n </StyledDialog>\n);\n\nDeleteScale.propTypes = {\n open: PropTypes.bool,\n scaleIndex: PropTypes.number,\n deleteScale: PropTypes.func,\n cancel: PropTypes.func,\n};\n\nconst DeleteTrait = ({ open, deleteTrait, cancel, traitLabel }) => (\n <StyledDialog open={open}>\n <StyledDialogTitle>Delete {traitLabel}</StyledDialogTitle>\n\n <StyledDialogContent>\n <DialogContentText>\n <div dangerouslySetInnerHTML={{ __html: `Are you sure you want to delete this ${traitLabel}?` }} />\n </DialogContentText>\n </StyledDialogContent>\n\n <DialogActions>\n <CancelButton onClick={cancel}>\n Cancel\n </CancelButton>\n\n <StyledButton onClick={deleteTrait}>\n Delete\n </StyledButton>\n </DialogActions>\n </StyledDialog>\n);\n\nDeleteTrait.propTypes = {\n open: PropTypes.bool,\n deleteTrait: PropTypes.func,\n cancel: PropTypes.func,\n traitLabel: PropTypes.string,\n};\n\nconst InfoDialog = ({ open, text, onClose }) => (\n <StyledDialog open={open}>\n <StyledDialogTitle>{text}</StyledDialogTitle>\n\n <DialogActions>\n <StyledButton onClick={onClose}>\n OK\n </StyledButton>\n </DialogActions>\n </StyledDialog>\n);\n\nInfoDialog.propTypes = {\n open: PropTypes.bool,\n text: PropTypes.string,\n cancel: PropTypes.func,\n onClose: PropTypes.func,\n};\n\nexport { ExcludeZeroDialog, Inc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