versacall-core-library-react 2.0.60 → 2.0.61
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.
|
@@ -257,6 +257,7 @@ var CoreShiftTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
257
257
|
intl = _this$props.intl,
|
|
258
258
|
filter = _this$props.filter,
|
|
259
259
|
hideAdvanced = _this$props.hideAdvanced,
|
|
260
|
+
disabled = _this$props.disabled,
|
|
260
261
|
tags = _this$props.tags,
|
|
261
262
|
customTitle = _this$props.customTitle;
|
|
262
263
|
var _this$state = this.state,
|
|
@@ -291,6 +292,7 @@ var CoreShiftTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
291
292
|
})), !filter.isAdvanced && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
292
293
|
variant: "outlined",
|
|
293
294
|
color: "secondary",
|
|
295
|
+
disabled: disabled,
|
|
294
296
|
onClick: function onClick() {
|
|
295
297
|
return _this4.setState({
|
|
296
298
|
open: true
|
|
@@ -307,6 +309,7 @@ var CoreShiftTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
307
309
|
}),
|
|
308
310
|
control: /*#__PURE__*/_react.default.createElement(_Switch.default, {
|
|
309
311
|
checked: filter.isAdvanced,
|
|
312
|
+
disabled: disabled,
|
|
310
313
|
onChange: function onChange(event) {
|
|
311
314
|
return _this4.props.updateFilter(_objectSpread(_objectSpread({}, filter), {}, {
|
|
312
315
|
isAdvanced: event.target.checked
|
|
@@ -330,7 +333,8 @@ var CoreShiftTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
330
333
|
placeholder: "Type in the filter here... (ex: first OR second)",
|
|
331
334
|
margin: "normal",
|
|
332
335
|
fullWidth: true,
|
|
333
|
-
multiline: true
|
|
336
|
+
multiline: true,
|
|
337
|
+
disabled: disabled
|
|
334
338
|
}) : filter.basicFilter.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
335
339
|
style: {
|
|
336
340
|
margin: 5
|
|
@@ -448,6 +452,7 @@ var CoreShiftTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
448
452
|
|
|
449
453
|
CoreShiftTagFilter.propTypes = {
|
|
450
454
|
hideAdvanced: _propTypes.default.bool,
|
|
455
|
+
disabled: _propTypes.default.bool,
|
|
451
456
|
intl: _propTypes.default.shape().isRequired,
|
|
452
457
|
filter: _propTypes.default.shape().isRequired,
|
|
453
458
|
updateFilter: _propTypes.default.func.isRequired,
|
|
@@ -457,6 +462,7 @@ CoreShiftTagFilter.propTypes = {
|
|
|
457
462
|
CoreShiftTagFilter.defaultProps = {
|
|
458
463
|
tags: [],
|
|
459
464
|
hideAdvanced: false,
|
|
465
|
+
disabled: false,
|
|
460
466
|
customTitle: null
|
|
461
467
|
};
|
|
462
468
|
|
|
@@ -221,6 +221,7 @@ var CoreTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
221
221
|
hideMonitoringPointTagFilters = _this$props.hideMonitoringPointTagFilters,
|
|
222
222
|
hideMonitoringPointTypeFilters = _this$props.hideMonitoringPointTypeFilters,
|
|
223
223
|
hideAdvanced = _this$props.hideAdvanced,
|
|
224
|
+
disabled = _this$props.disabled,
|
|
224
225
|
customTitle = _this$props.customTitle;
|
|
225
226
|
var openDialog = this.state.openDialog;
|
|
226
227
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -236,6 +237,7 @@ var CoreTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
236
237
|
}, "Tag Filter"), !filter.isAdvanced && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
237
238
|
variant: "outlined",
|
|
238
239
|
color: "secondary",
|
|
240
|
+
disabled: disabled,
|
|
239
241
|
onClick: function onClick() {
|
|
240
242
|
return _this3.setState({
|
|
241
243
|
openDialog: true
|
|
@@ -256,6 +258,7 @@ var CoreTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
256
258
|
}),
|
|
257
259
|
control: /*#__PURE__*/_react.default.createElement(_Switch.default, {
|
|
258
260
|
checked: filter.isAdvanced,
|
|
261
|
+
disabled: disabled,
|
|
259
262
|
onChange: function onChange(event) {
|
|
260
263
|
return _this3.props.updateFilter(_objectSpread(_objectSpread({}, filter), {}, {
|
|
261
264
|
isAdvanced: event.target.checked
|
|
@@ -279,7 +282,8 @@ var CoreTagFilter = /*#__PURE__*/function (_Component) {
|
|
|
279
282
|
placeholder: "Type in the filter here... (ex: location_station_1 AND maintenance)",
|
|
280
283
|
margin: "normal",
|
|
281
284
|
fullWidth: true,
|
|
282
|
-
multiline: true
|
|
285
|
+
multiline: true,
|
|
286
|
+
disabled: disabled
|
|
283
287
|
}) : filter.basicFilter.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
284
288
|
style: {
|
|
285
289
|
margin: 5
|
|
@@ -329,6 +333,7 @@ CoreTagFilter.propTypes = {
|
|
|
329
333
|
hideModuleLocationFilters: _propTypes.default.bool,
|
|
330
334
|
hideMonitoringPointTagFilters: _propTypes.default.bool,
|
|
331
335
|
hideMonitoringPointTypeFilters: _propTypes.default.bool,
|
|
336
|
+
disabled: _propTypes.default.bool,
|
|
332
337
|
// mandatoryTags: PropTypes.arrayOf(PropTypes.string),
|
|
333
338
|
customTitle: _propTypes.default.node
|
|
334
339
|
};
|
|
@@ -340,6 +345,7 @@ CoreTagFilter.defaultProps = {
|
|
|
340
345
|
hideModuleLocationFilters: false,
|
|
341
346
|
hideMonitoringPointTagFilters: false,
|
|
342
347
|
hideMonitoringPointTypeFilters: false,
|
|
348
|
+
disabled: false,
|
|
343
349
|
customTitle: null
|
|
344
350
|
};
|
|
345
351
|
|
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": 61
|
|
6
6
|
},
|
|
7
7
|
"name": "versacall-core-library-react",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.61",
|
|
9
9
|
"description": "Versacall Core Library",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.js",
|