versacall-core-library-react 2.0.30 → 2.0.34
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/dist/components/CoreSideBar/CoreSideBarDrawer.js +3 -1
- package/dist/components/CoreTable/CoreTable.js +37 -4
- package/dist/components/CoreTimerInput/CoreTimerInput.js +120 -63
- package/dist/components/CoreTimerInput/CoreTimerInputOld.js +162 -0
- package/dist/components/CoreToolbar/CoreToolbar.js +5 -2
- package/dist/components/CoreTranslate/translations/en.json +1 -0
- package/dist/css/scrollbar.module.css +2 -0
- package/package.json +2 -2
|
@@ -37,6 +37,8 @@ var _functions = require("../../functions");
|
|
|
37
37
|
|
|
38
38
|
var _context = require("../../context");
|
|
39
39
|
|
|
40
|
+
var _scrollbarModule = _interopRequireDefault(require("../../css/scrollbar.module.css"));
|
|
41
|
+
|
|
40
42
|
require("../../css/scrollbar.css");
|
|
41
43
|
|
|
42
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -161,7 +163,7 @@ function (_Component) {
|
|
|
161
163
|
return _react.default.createElement(_Drawer.default, {
|
|
162
164
|
open: open,
|
|
163
165
|
classes: {
|
|
164
|
-
paper: classes.drawerPaper
|
|
166
|
+
paper: "".concat(classes.drawerPaper, " ").concat(_scrollbarModule.default.scroll, " ").concat(_scrollbarModule.default.white)
|
|
165
167
|
},
|
|
166
168
|
onClose: function onClose() {
|
|
167
169
|
return _this3.props.onClose();
|
|
@@ -15,10 +15,14 @@ var _TableRow = _interopRequireDefault(require("@material-ui/core/TableRow"));
|
|
|
15
15
|
|
|
16
16
|
var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));
|
|
17
17
|
|
|
18
|
+
var _CircularProgress = _interopRequireDefault(require("@material-ui/core/CircularProgress"));
|
|
19
|
+
|
|
18
20
|
var _Table = _interopRequireDefault(require("@material-ui/core/Table"));
|
|
19
21
|
|
|
20
22
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
23
|
|
|
24
|
+
var _reactIntl = require("react-intl");
|
|
25
|
+
|
|
22
26
|
var _CoreTableToolbar = _interopRequireDefault(require("./CoreTableToolbar"));
|
|
23
27
|
|
|
24
28
|
var _CoreTableHead = _interopRequireDefault(require("./CoreTableHead"));
|
|
@@ -284,7 +288,8 @@ function (_Component) {
|
|
|
284
288
|
hover = _this$props.hover,
|
|
285
289
|
toolBarIcons = _this$props.toolBarIcons,
|
|
286
290
|
activeRow = _this$props.activeRow,
|
|
287
|
-
flaggedRows = _this$props.flaggedRows
|
|
291
|
+
flaggedRows = _this$props.flaggedRows,
|
|
292
|
+
loading = _this$props.loading;
|
|
288
293
|
var _this$state = this.state,
|
|
289
294
|
selected = _this$state.selected,
|
|
290
295
|
order = _this$state.order,
|
|
@@ -356,7 +361,33 @@ function (_Component) {
|
|
|
356
361
|
}
|
|
357
362
|
|
|
358
363
|
return _react.default.createElement(_react.default.Fragment, null);
|
|
359
|
-
})))
|
|
364
|
+
}))), loading && _react.default.createElement("div", {
|
|
365
|
+
style: {
|
|
366
|
+
display: 'flex',
|
|
367
|
+
alignItems: 'center',
|
|
368
|
+
justifyContent: 'center',
|
|
369
|
+
paddingTop: 20,
|
|
370
|
+
paddingBottom: 20
|
|
371
|
+
}
|
|
372
|
+
}, _react.default.createElement("div", {
|
|
373
|
+
style: {
|
|
374
|
+
display: 'flex',
|
|
375
|
+
alignItems: 'center'
|
|
376
|
+
}
|
|
377
|
+
}, _react.default.createElement(_CircularProgress.default, {
|
|
378
|
+
color: "secondary",
|
|
379
|
+
style: {
|
|
380
|
+
marginRight: 20
|
|
381
|
+
}
|
|
382
|
+
}), _react.default.createElement("span", {
|
|
383
|
+
style: {
|
|
384
|
+
fontSize: '26px',
|
|
385
|
+
fontStyle: 'italic',
|
|
386
|
+
color: 'rgba(0,0,0,0.6)'
|
|
387
|
+
}
|
|
388
|
+
}, _react.default.createElement(_reactIntl.FormattedMessage, {
|
|
389
|
+
id: "__loading"
|
|
390
|
+
}), "\u2026"))));
|
|
360
391
|
}
|
|
361
392
|
}]);
|
|
362
393
|
|
|
@@ -375,7 +406,8 @@ CoreTable.propTypes = {
|
|
|
375
406
|
id: _propTypes.default.string.isRequired,
|
|
376
407
|
flaggedRows: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
377
408
|
data: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
378
|
-
columns: _propTypes.default.arrayOf(_propTypes.default.object).isRequired
|
|
409
|
+
columns: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
410
|
+
loading: _propTypes.default.bool
|
|
379
411
|
};
|
|
380
412
|
CoreTable.defaultProps = {
|
|
381
413
|
title: '',
|
|
@@ -386,7 +418,8 @@ CoreTable.defaultProps = {
|
|
|
386
418
|
onRowClick: null,
|
|
387
419
|
multiSelect: false,
|
|
388
420
|
customToolbar: null,
|
|
389
|
-
toolBarIcons: _react.default.createElement("span", null)
|
|
421
|
+
toolBarIcons: _react.default.createElement("span", null),
|
|
422
|
+
loading: false
|
|
390
423
|
};
|
|
391
424
|
var _default = CoreTable;
|
|
392
425
|
exports.default = _default;
|
|
@@ -7,9 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
10
|
+
var _InputBase = _interopRequireDefault(require("@material-ui/core/InputBase"));
|
|
13
11
|
|
|
14
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
13
|
|
|
@@ -19,12 +17,49 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
19
17
|
|
|
20
18
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
19
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
var muiStyle = {
|
|
21
|
+
styleBox: {
|
|
22
|
+
position: 'relative',
|
|
23
|
+
borderStyle: 'solid',
|
|
24
|
+
borderWidth: 1,
|
|
25
|
+
borderColor: 'rgba(0, 0, 0, 0.23)',
|
|
26
|
+
borderRadius: 4,
|
|
27
|
+
paddingTop: 11,
|
|
28
|
+
paddingBottom: 11,
|
|
29
|
+
paddingLeft: 10 // padding: 10,
|
|
30
|
+
|
|
31
|
+
},
|
|
32
|
+
label: {
|
|
33
|
+
fontSize: '1rem',
|
|
34
|
+
padding: 0,
|
|
35
|
+
paddingLeft: 6,
|
|
36
|
+
paddingRight: 6,
|
|
37
|
+
lineHeight: 1,
|
|
38
|
+
zIndex: 1,
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
top: 0,
|
|
41
|
+
left: 0,
|
|
42
|
+
transformOrigin: 'top left',
|
|
43
|
+
transform: 'translate(8px, -6px) scale(0.75)',
|
|
44
|
+
backgroundColor: 'white',
|
|
45
|
+
color: 'rgba(0, 0, 0, 0.6)'
|
|
46
|
+
},
|
|
47
|
+
unitLabel: {
|
|
48
|
+
marginRight: 10,
|
|
49
|
+
color: 'rgba(0, 0, 0, 0.4)',
|
|
50
|
+
fontSize: 'smaller'
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
function CoreTimerInput(props) {
|
|
55
|
+
var label = props.label,
|
|
56
|
+
time = props.time,
|
|
57
|
+
handleUpdateTime = props.handleUpdateTime,
|
|
58
|
+
showSeconds = props.showSeconds,
|
|
59
|
+
showMinutes = props.showMinutes,
|
|
60
|
+
showHours = props.showHours,
|
|
61
|
+
margin = props.margin,
|
|
62
|
+
style = props.style;
|
|
28
63
|
var hours = 0;
|
|
29
64
|
var min = 0;
|
|
30
65
|
var sec = time;
|
|
@@ -66,96 +101,118 @@ var CoreTimerInput = function CoreTimerInput(_ref) {
|
|
|
66
101
|
return handleUpdateTime(Math.abs(newTime));
|
|
67
102
|
};
|
|
68
103
|
|
|
69
|
-
|
|
70
|
-
|
|
104
|
+
function formatValue(value) {
|
|
105
|
+
var str = value.toString();
|
|
106
|
+
|
|
107
|
+
if (str.length === 1) {
|
|
108
|
+
return "0".concat(str);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return str;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function getMarginStyle() {
|
|
115
|
+
if (margin === 'normal') {
|
|
116
|
+
return {
|
|
117
|
+
marginTop: 16,
|
|
118
|
+
marginBottom: 8
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (margin === 'dense') {
|
|
123
|
+
return {
|
|
124
|
+
paddingTop: 3,
|
|
125
|
+
paddingBottom: 3,
|
|
126
|
+
marginTop: 8,
|
|
127
|
+
marginBottom: 4
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return _react.default.createElement("div", {
|
|
135
|
+
style: _objectSpread({}, muiStyle.styleBox, getMarginStyle(), style)
|
|
136
|
+
}, label && _react.default.createElement("span", {
|
|
137
|
+
style: muiStyle.label
|
|
138
|
+
}, label), _react.default.createElement("span", {
|
|
139
|
+
style: {
|
|
71
140
|
display: 'flex',
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
}, showHours && _react.default.createElement(
|
|
141
|
+
alignItems: 'center'
|
|
142
|
+
}
|
|
143
|
+
}, showHours && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("span", {
|
|
144
|
+
style: muiStyle.unitLabel
|
|
145
|
+
}, "H"), _react.default.createElement("div", {
|
|
146
|
+
style: {
|
|
147
|
+
flexGrow: 1,
|
|
148
|
+
paddingRight: 10
|
|
149
|
+
}
|
|
150
|
+
}, _react.default.createElement(_InputBase.default, {
|
|
75
151
|
id: "hoursInput",
|
|
76
|
-
value: hours,
|
|
152
|
+
value: formatValue(hours),
|
|
77
153
|
onChange: function onChange(event) {
|
|
78
154
|
return handleChange(event.target.value, 'hours');
|
|
79
155
|
},
|
|
80
156
|
type: "number",
|
|
81
|
-
style: {
|
|
82
|
-
width: '32%'
|
|
83
|
-
},
|
|
84
|
-
InputLabelProps: {
|
|
85
|
-
shrink: true
|
|
86
|
-
},
|
|
87
|
-
InputProps: {
|
|
88
|
-
startAdornment: _react.default.createElement(_InputAdornment.default, {
|
|
89
|
-
position: "start"
|
|
90
|
-
}, "H")
|
|
91
|
-
},
|
|
92
157
|
inputProps: {
|
|
93
158
|
min: '0'
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}), _react.default.createElement(
|
|
159
|
+
}
|
|
160
|
+
}))), showMinutes && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("span", {
|
|
161
|
+
style: muiStyle.unitLabel
|
|
162
|
+
}, "M"), _react.default.createElement("div", {
|
|
163
|
+
style: {
|
|
164
|
+
flexGrow: 1,
|
|
165
|
+
paddingRight: 10
|
|
166
|
+
}
|
|
167
|
+
}, _react.default.createElement(_InputBase.default, {
|
|
98
168
|
id: "minutesInput",
|
|
99
|
-
value: min,
|
|
169
|
+
value: formatValue(min),
|
|
100
170
|
onChange: function onChange(event) {
|
|
101
171
|
return handleChange(event.target.value, 'min');
|
|
102
172
|
},
|
|
103
173
|
type: "number",
|
|
104
|
-
style: {
|
|
105
|
-
width: '32%'
|
|
106
|
-
},
|
|
107
|
-
InputLabelProps: {
|
|
108
|
-
shrink: true
|
|
109
|
-
},
|
|
110
|
-
InputProps: {
|
|
111
|
-
startAdornment: _react.default.createElement(_InputAdornment.default, {
|
|
112
|
-
position: "start"
|
|
113
|
-
}, "M")
|
|
114
|
-
},
|
|
115
174
|
inputProps: {
|
|
116
175
|
min: '0'
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}),
|
|
176
|
+
}
|
|
177
|
+
}))), showSeconds && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("span", {
|
|
178
|
+
style: muiStyle.unitLabel
|
|
179
|
+
}, "S"), _react.default.createElement("div", {
|
|
180
|
+
style: {
|
|
181
|
+
flexGrow: 1,
|
|
182
|
+
paddingRight: 10
|
|
183
|
+
}
|
|
184
|
+
}, _react.default.createElement(_InputBase.default, {
|
|
121
185
|
id: "secondsInput",
|
|
122
|
-
value: sec,
|
|
186
|
+
value: formatValue(sec),
|
|
123
187
|
onChange: function onChange(event) {
|
|
124
188
|
return handleChange(event.target.value, 'sec');
|
|
125
189
|
},
|
|
126
190
|
type: "number",
|
|
127
|
-
style: {
|
|
128
|
-
width: '32%'
|
|
129
|
-
},
|
|
130
|
-
InputLabelProps: {
|
|
131
|
-
shrink: true
|
|
132
|
-
},
|
|
133
|
-
InputProps: {
|
|
134
|
-
startAdornment: _react.default.createElement(_InputAdornment.default, {
|
|
135
|
-
position: "start"
|
|
136
|
-
}, "S")
|
|
137
|
-
},
|
|
138
191
|
inputProps: {
|
|
139
192
|
min: '0'
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
variant: "outlined"
|
|
143
|
-
})); // should take prop for time in seconds
|
|
193
|
+
}
|
|
194
|
+
}))))); // should take prop for time in seconds
|
|
144
195
|
// should take a handleChange function
|
|
145
196
|
// pull the event target value and then update the time with that * seconds
|
|
146
197
|
// might wanna move this coreLibrary after
|
|
147
|
-
}
|
|
198
|
+
}
|
|
148
199
|
|
|
149
200
|
CoreTimerInput.propTypes = {
|
|
201
|
+
label: _propTypes.default.string,
|
|
150
202
|
time: _propTypes.default.number.isRequired,
|
|
151
203
|
handleUpdateTime: _propTypes.default.func.isRequired,
|
|
152
204
|
showSeconds: _propTypes.default.bool,
|
|
205
|
+
showMinutes: _propTypes.default.bool,
|
|
153
206
|
showHours: _propTypes.default.bool,
|
|
207
|
+
margin: _propTypes.default.string,
|
|
154
208
|
style: _propTypes.default.objectOf(_propTypes.default.string)
|
|
155
209
|
};
|
|
156
210
|
CoreTimerInput.defaultProps = {
|
|
211
|
+
label: null,
|
|
157
212
|
showSeconds: true,
|
|
213
|
+
showMinutes: true,
|
|
158
214
|
showHours: true,
|
|
215
|
+
margin: 'none',
|
|
159
216
|
style: {}
|
|
160
217
|
};
|
|
161
218
|
var _default = CoreTimerInput;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _InputAdornment = _interopRequireDefault(require("@material-ui/core/InputAdornment"));
|
|
11
|
+
|
|
12
|
+
var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
var CoreTimerInputOld = function CoreTimerInputOld(_ref) {
|
|
23
|
+
var time = _ref.time,
|
|
24
|
+
handleUpdateTime = _ref.handleUpdateTime,
|
|
25
|
+
showSeconds = _ref.showSeconds,
|
|
26
|
+
showHours = _ref.showHours,
|
|
27
|
+
style = _ref.style;
|
|
28
|
+
var hours = 0;
|
|
29
|
+
var min = 0;
|
|
30
|
+
var sec = time;
|
|
31
|
+
|
|
32
|
+
var getTime = function getTime() {
|
|
33
|
+
hours = Math.floor(sec / 3600);
|
|
34
|
+
sec -= hours * 3600;
|
|
35
|
+
min = Math.floor(sec / 60);
|
|
36
|
+
sec -= min * 60;
|
|
37
|
+
}; // 1000
|
|
38
|
+
// divde by 360 get 2.777
|
|
39
|
+
// math.floor(2.7) = hours
|
|
40
|
+
// 1000 - hours * 360
|
|
41
|
+
// 280 divide by 60 get 4.6
|
|
42
|
+
// math.floor(4.6) = min
|
|
43
|
+
// 280 - min * 60 = seconds
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
getTime();
|
|
47
|
+
|
|
48
|
+
var handleChange = function handleChange(value, type) {
|
|
49
|
+
var newTime = time;
|
|
50
|
+
|
|
51
|
+
if (type === 'hours' && value < 24) {
|
|
52
|
+
newTime -= hours * 3600;
|
|
53
|
+
newTime += 3600 * value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (type === 'min' && value < 60) {
|
|
57
|
+
newTime -= min * 60;
|
|
58
|
+
newTime += 60 * value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (type === 'sec' && value < 60) {
|
|
62
|
+
newTime -= sec;
|
|
63
|
+
newTime += 1 * value; // added the 1 to convert value to int
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return handleUpdateTime(Math.abs(newTime));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return _react.default.createElement("span", {
|
|
70
|
+
style: _objectSpread({
|
|
71
|
+
display: 'flex',
|
|
72
|
+
justifyContent: 'space-between'
|
|
73
|
+
}, style)
|
|
74
|
+
}, showHours && _react.default.createElement(_TextField.default, {
|
|
75
|
+
id: "hoursInput",
|
|
76
|
+
value: hours,
|
|
77
|
+
onChange: function onChange(event) {
|
|
78
|
+
return handleChange(event.target.value, 'hours');
|
|
79
|
+
},
|
|
80
|
+
type: "number",
|
|
81
|
+
style: {
|
|
82
|
+
width: '32%'
|
|
83
|
+
},
|
|
84
|
+
InputLabelProps: {
|
|
85
|
+
shrink: true
|
|
86
|
+
},
|
|
87
|
+
InputProps: {
|
|
88
|
+
startAdornment: _react.default.createElement(_InputAdornment.default, {
|
|
89
|
+
position: "start"
|
|
90
|
+
}, "H")
|
|
91
|
+
},
|
|
92
|
+
inputProps: {
|
|
93
|
+
min: '0'
|
|
94
|
+
},
|
|
95
|
+
margin: "normal",
|
|
96
|
+
variant: "outlined"
|
|
97
|
+
}), _react.default.createElement(_TextField.default, {
|
|
98
|
+
id: "minutesInput",
|
|
99
|
+
value: min,
|
|
100
|
+
onChange: function onChange(event) {
|
|
101
|
+
return handleChange(event.target.value, 'min');
|
|
102
|
+
},
|
|
103
|
+
type: "number",
|
|
104
|
+
style: {
|
|
105
|
+
width: '32%'
|
|
106
|
+
},
|
|
107
|
+
InputLabelProps: {
|
|
108
|
+
shrink: true
|
|
109
|
+
},
|
|
110
|
+
InputProps: {
|
|
111
|
+
startAdornment: _react.default.createElement(_InputAdornment.default, {
|
|
112
|
+
position: "start"
|
|
113
|
+
}, "M")
|
|
114
|
+
},
|
|
115
|
+
inputProps: {
|
|
116
|
+
min: '0'
|
|
117
|
+
},
|
|
118
|
+
margin: "normal",
|
|
119
|
+
variant: "outlined"
|
|
120
|
+
}), showSeconds && _react.default.createElement(_TextField.default, {
|
|
121
|
+
id: "secondsInput",
|
|
122
|
+
value: sec,
|
|
123
|
+
onChange: function onChange(event) {
|
|
124
|
+
return handleChange(event.target.value, 'sec');
|
|
125
|
+
},
|
|
126
|
+
type: "number",
|
|
127
|
+
style: {
|
|
128
|
+
width: '32%'
|
|
129
|
+
},
|
|
130
|
+
InputLabelProps: {
|
|
131
|
+
shrink: true
|
|
132
|
+
},
|
|
133
|
+
InputProps: {
|
|
134
|
+
startAdornment: _react.default.createElement(_InputAdornment.default, {
|
|
135
|
+
position: "start"
|
|
136
|
+
}, "S")
|
|
137
|
+
},
|
|
138
|
+
inputProps: {
|
|
139
|
+
min: '0'
|
|
140
|
+
},
|
|
141
|
+
margin: "normal",
|
|
142
|
+
variant: "outlined"
|
|
143
|
+
})); // should take prop for time in seconds
|
|
144
|
+
// should take a handleChange function
|
|
145
|
+
// pull the event target value and then update the time with that * seconds
|
|
146
|
+
// might wanna move this coreLibrary after
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
CoreTimerInputOld.propTypes = {
|
|
150
|
+
time: _propTypes.default.number.isRequired,
|
|
151
|
+
handleUpdateTime: _propTypes.default.func.isRequired,
|
|
152
|
+
showSeconds: _propTypes.default.bool,
|
|
153
|
+
showHours: _propTypes.default.bool,
|
|
154
|
+
style: _propTypes.default.objectOf(_propTypes.default.string)
|
|
155
|
+
};
|
|
156
|
+
CoreTimerInputOld.defaultProps = {
|
|
157
|
+
showSeconds: true,
|
|
158
|
+
showHours: true,
|
|
159
|
+
style: {}
|
|
160
|
+
};
|
|
161
|
+
var _default = CoreTimerInputOld;
|
|
162
|
+
exports.default = _default;
|
|
@@ -78,7 +78,8 @@ function CoreToolbar(props) {
|
|
|
78
78
|
var title = props.title,
|
|
79
79
|
warning = props.warning,
|
|
80
80
|
intl = props.intl,
|
|
81
|
-
classes = props.classes
|
|
81
|
+
classes = props.classes,
|
|
82
|
+
showSeperator = props.showSeperator;
|
|
82
83
|
return _react.default.createElement(_Toolbar.default, null, props.icon, _react.default.createElement(_Typography.default, {
|
|
83
84
|
variant: "h6",
|
|
84
85
|
color: "inherit",
|
|
@@ -100,7 +101,7 @@ function CoreToolbar(props) {
|
|
|
100
101
|
className: classes.iconStyle
|
|
101
102
|
}), _react.default.createElement(_reactIntl.FormattedMessage, {
|
|
102
103
|
id: "__print"
|
|
103
|
-
})), (props.handlePrint || props.children) && (props.handleSave || props.handleClose) && _react.default.createElement("div", {
|
|
104
|
+
})), (props.handlePrint || props.children) && (props.handleSave || props.handleClose) && showSeperator && _react.default.createElement("div", {
|
|
104
105
|
className: classes.separator
|
|
105
106
|
}), props.handleSave && _react.default.createElement(_Button.default, {
|
|
106
107
|
variant: "contained",
|
|
@@ -150,6 +151,7 @@ CoreToolbar.propTypes = {
|
|
|
150
151
|
printDisabled: _propTypes.default.bool,
|
|
151
152
|
saveDisabled: _propTypes.default.bool,
|
|
152
153
|
closeDisabled: _propTypes.default.bool,
|
|
154
|
+
showSeperator: _propTypes.default.bool,
|
|
153
155
|
intl: _propTypes.default.shape().isRequired,
|
|
154
156
|
classes: _propTypes.default.shape().isRequired,
|
|
155
157
|
children: _propTypes.default.node
|
|
@@ -164,6 +166,7 @@ CoreToolbar.defaultProps = {
|
|
|
164
166
|
printDisabled: false,
|
|
165
167
|
saveDisabled: false,
|
|
166
168
|
closeDisabled: false,
|
|
169
|
+
showSeperator: true,
|
|
167
170
|
children: null
|
|
168
171
|
};
|
|
169
172
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* width */
|
|
2
2
|
.scroll::-webkit-scrollbar {
|
|
3
3
|
width: 10px;
|
|
4
|
+
height: 10px;
|
|
4
5
|
}
|
|
5
6
|
/* Track */
|
|
6
7
|
.scroll::-webkit-scrollbar-track {
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
/* width */
|
|
20
21
|
.scroll.white::-webkit-scrollbar {
|
|
21
22
|
width: 10px;
|
|
23
|
+
height: 10px;
|
|
22
24
|
}
|
|
23
25
|
/* Track */
|
|
24
26
|
.scroll.white::-webkit-scrollbar-track {
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"versacall": {
|
|
3
3
|
"title": "Versacall Core Library React",
|
|
4
4
|
"applicationType": "react-library",
|
|
5
|
-
"build":
|
|
5
|
+
"build": 34
|
|
6
6
|
},
|
|
7
7
|
"name": "versacall-core-library-react",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.34",
|
|
9
9
|
"description": "Versacall Core Library",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.js",
|