versacall-core-library-react 2.0.65 → 2.0.67
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/CoreAlert/CoreAlert.js +43 -107
- package/dist/components/CoreAlert/index.js +2 -4
- package/dist/components/CoreAppBar/CoreAppBar.js +275 -418
- package/dist/components/CoreAppBar/CoreAppBarDrawer.js +88 -171
- package/dist/components/CoreAppBar/index.js +2 -4
- package/dist/components/CoreAppSelector/AppLink.js +36 -60
- package/dist/components/CoreAppSelector/CoreAppSelector.js +109 -200
- package/dist/components/CoreAppSelector/index.js +2 -4
- package/dist/components/CoreDialogueToolBar/CoreDialogueToolBar.js +43 -69
- package/dist/components/CoreDialogueToolBar/index.js +2 -4
- package/dist/components/CoreDrawer/CoreDrawer.js +168 -286
- package/dist/components/CoreDrawer/index.js +2 -4
- package/dist/components/CoreDropDownTextfield/CoreDropDownTextfield.js +57 -121
- package/dist/components/CoreDropDownTextfield/index.js +2 -4
- package/dist/components/CoreElapsedTime/CoreElapsedTime.js +38 -97
- package/dist/components/CoreElapsedTime/index.js +2 -4
- package/dist/components/CoreFrame/CoreFrame.js +17 -28
- package/dist/components/CoreFrame/index.js +2 -4
- package/dist/components/CoreImportDialog/CoreImportDialog.js +87 -189
- package/dist/components/CoreImportDialog/index.js +2 -4
- package/dist/components/CoreImportResultsDialog/CoreImportResultsDialog.js +19 -45
- package/dist/components/CoreImportResultsDialog/index.js +2 -4
- package/dist/components/CoreImporting/CoreImporting.js +23 -39
- package/dist/components/CoreImporting/index.js +2 -4
- package/dist/components/CorePlugin/CorePlugin.js +83 -160
- package/dist/components/CorePlugin/OldCorePlugin.js +73 -149
- package/dist/components/CorePlugin/index.js +2 -4
- package/dist/components/CoreSaveChangesDialog/CoreSaveChangesDialog.js +10 -32
- package/dist/components/CoreSaveChangesDialog/index.js +2 -4
- package/dist/components/CoreShiftTagFilter/CoreShiftTagFilter.js +288 -408
- package/dist/components/CoreShiftTagFilter/OldCoreShiftTagFilter.js +161 -257
- package/dist/components/CoreShiftTagFilter/index.js +2 -4
- package/dist/components/CoreSideBar/CoreSideBar.js +578 -737
- package/dist/components/CoreSideBar/CoreSideBarDrawer.js +122 -212
- package/dist/components/CoreSideBar/index.js +2 -4
- package/dist/components/CoreSnackBar/CoreSnackBar.js +76 -143
- package/dist/components/CoreSnackBar/index.js +2 -4
- package/dist/components/CoreTable/CoreTable.js +219 -337
- package/dist/components/CoreTable/CoreTableChips.js +11 -19
- package/dist/components/CoreTable/CoreTableHead.js +125 -205
- package/dist/components/CoreTable/CoreTableToolbar.js +34 -56
- package/dist/components/CoreTable/index.js +2 -4
- package/dist/components/CoreTagFilter/CoreTagFilter.js +212 -319
- package/dist/components/CoreTagFilter/OldCoreTagFilter.js +270 -402
- package/dist/components/CoreTagFilter/OldTagChip.js +10 -20
- package/dist/components/CoreTagFilter/OldTagFilterSelector.js +77 -148
- package/dist/components/CoreTagFilter/OldTagOption.js +21 -47
- package/dist/components/CoreTagFilter/TagFilterBuilder.js +114 -274
- package/dist/components/CoreTagFilter/index.js +2 -4
- package/dist/components/CoreTextField/CoreTextField.js +69 -132
- package/dist/components/CoreTextField/index.js +2 -4
- package/dist/components/CoreTheme/CoreTheme.js +13 -27
- package/dist/components/CoreTheme/index.js +2 -4
- package/dist/components/CoreTile/CoreTile.js +21 -34
- package/dist/components/CoreTile/CoreTileToolbar.js +21 -36
- package/dist/components/CoreTile/index.js +2 -4
- package/dist/components/CoreTimerInput/CoreTimerInput.js +36 -60
- package/dist/components/CoreTimerInput/CoreTimerInputOld.js +29 -47
- package/dist/components/CoreTimerInput/index.js +2 -4
- package/dist/components/CoreToolbar/CoreToolbar.js +65 -95
- package/dist/components/CoreToolbar/index.js +2 -4
- package/dist/components/CoreTracker/CoreTracker.js +32 -91
- package/dist/components/CoreTracker/index.js +2 -4
- package/dist/components/CoreTranslate/CoreTranslate.js +17 -48
- package/dist/components/CoreTranslate/index.js +2 -4
- package/dist/components/CoreTranslateWrapper/CoreTranslateWrapper.js +7 -15
- package/dist/components/CoreTranslateWrapper/index.js +2 -4
- package/dist/components/CoreWidget/CoreWidget.js +81 -149
- package/dist/components/CoreWidget/index.js +2 -4
- package/dist/components/CoreWrapper/CoreWrapper.js +8 -16
- package/dist/components/CoreWrapper/index.js +2 -4
- package/dist/components/index.js +29 -58
- package/dist/constants/index.js +3 -6
- package/dist/constants/testOrganization.js +2 -3
- package/dist/constants/testToken.js +2 -3
- package/dist/context/Authentication/AuthenticationContext.js +3 -8
- package/dist/context/Authentication/AuthenticationProvider.js +156 -257
- package/dist/context/Authentication/index.js +4 -8
- package/dist/context/Authentication/withAuthentication.js +5 -14
- package/dist/context/Channels/ChannelsConsumer.js +14 -70
- package/dist/context/Channels/ChannelsContext.js +3 -8
- package/dist/context/Channels/ChannelsProvider.js +132 -278
- package/dist/context/Channels/DataChannel.js +39 -103
- package/dist/context/Channels/EntityChannel.js +40 -104
- package/dist/context/Channels/EveryoneChannel.js +32 -92
- package/dist/context/Channels/OrganizationChannel.js +40 -104
- package/dist/context/Channels/UserChannel.js +37 -99
- package/dist/context/Channels/index.js +10 -20
- package/dist/context/Channels/withChannels.js +5 -14
- package/dist/context/Core/CoreContext.js +3 -8
- package/dist/context/Core/CoreProvider.js +68 -132
- package/dist/context/Core/index.js +4 -8
- package/dist/context/Core/withCore.js +5 -14
- package/dist/context/Organization/OrganizationContext.js +3 -8
- package/dist/context/Organization/OrganizationProvider.js +48 -120
- package/dist/context/Organization/index.js +4 -8
- package/dist/context/Organization/withOrganization.js +5 -14
- package/dist/context/Plugin/PluginContext.js +3 -8
- package/dist/context/Plugin/PluginProvider.js +55 -112
- package/dist/context/Plugin/index.js +4 -8
- package/dist/context/Plugin/withPlugin.js +5 -14
- package/dist/context/index.js +5 -15
- package/dist/css/index.js +3 -6
- package/dist/functions/TagEvaluator.js +107 -156
- package/dist/functions/compareObjects.js +0 -7
- package/dist/functions/formatElapsedTime.js +5 -6
- package/dist/functions/formatNameFileSafe.js +3 -4
- package/dist/functions/getIconUrl.js +0 -3
- package/dist/functions/getParameterByName.js +9 -12
- package/dist/functions/getProperty.js +4 -8
- package/dist/functions/getUrl.js +0 -3
- package/dist/functions/index.js +9 -18
- package/dist/icons/CopyIcon.js +11 -22
- package/dist/icons/DeleteIcon.js +11 -22
- package/dist/icons/DuplicateIcon.js +11 -22
- package/dist/icons/EditIcon.js +11 -22
- package/dist/icons/FabAddIcon.js +19 -35
- package/dist/icons/PasteIcon.js +11 -22
- package/dist/icons/index.js +7 -14
- package/dist/index.js +6 -18
- package/package.json +89 -79
|
@@ -1,87 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
15
|
-
|
|
16
10
|
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
17
|
-
|
|
18
11
|
var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
|
|
19
|
-
|
|
20
12
|
var _DialogActions = _interopRequireDefault(require("@material-ui/core/DialogActions"));
|
|
21
|
-
|
|
22
13
|
var _DialogContent = _interopRequireDefault(require("@material-ui/core/DialogContent"));
|
|
23
|
-
|
|
24
14
|
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
25
|
-
|
|
26
15
|
var _InputAdornment = _interopRequireDefault(require("@material-ui/core/InputAdornment"));
|
|
27
|
-
|
|
28
16
|
var _Link = _interopRequireDefault(require("@material-ui/core/Link"));
|
|
29
|
-
|
|
30
17
|
var _MenuItem = _interopRequireDefault(require("@material-ui/core/MenuItem"));
|
|
31
|
-
|
|
32
18
|
var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
33
|
-
|
|
34
19
|
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
|
35
|
-
|
|
36
20
|
var _FilterList = _interopRequireDefault(require("@material-ui/icons/FilterList"));
|
|
37
|
-
|
|
38
21
|
var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
|
|
39
|
-
|
|
40
22
|
var _Search = _interopRequireDefault(require("@material-ui/icons/Search"));
|
|
41
|
-
|
|
42
23
|
var _LocationOn = _interopRequireDefault(require("@material-ui/icons/LocationOn"));
|
|
43
|
-
|
|
44
24
|
var _LocalOffer = _interopRequireDefault(require("@material-ui/icons/LocalOffer"));
|
|
45
|
-
|
|
46
25
|
var _Category = _interopRequireDefault(require("@material-ui/icons/Category"));
|
|
47
|
-
|
|
48
26
|
var _reactIntl = require("react-intl");
|
|
49
|
-
|
|
50
27
|
var _scrollbarModule = _interopRequireDefault(require("../../css/scrollbar.module.css"));
|
|
51
|
-
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
61
|
-
|
|
62
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
63
|
-
|
|
64
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
65
|
-
|
|
66
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
67
|
-
|
|
68
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
69
|
-
|
|
70
|
-
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; }
|
|
71
|
-
|
|
72
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
73
|
-
|
|
74
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
75
|
-
|
|
76
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
77
|
-
|
|
78
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
79
|
-
|
|
80
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
81
|
-
|
|
82
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
83
|
-
|
|
84
|
-
var style = {
|
|
28
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
30
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
31
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
34
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
35
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36
|
+
const style = {
|
|
85
37
|
header: {
|
|
86
38
|
display: 'flex',
|
|
87
39
|
alignItems: 'center',
|
|
@@ -92,14 +44,10 @@ var style = {
|
|
|
92
44
|
overflowY: 'auto'
|
|
93
45
|
}
|
|
94
46
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var existing = newTagList.find(function (x) {
|
|
100
|
-
return x.tag === tagInfo.tag;
|
|
101
|
-
});
|
|
102
|
-
|
|
47
|
+
const consolidateTags = tagList => {
|
|
48
|
+
const newTagList = [];
|
|
49
|
+
tagList.forEach(tagInfo => {
|
|
50
|
+
const existing = newTagList.find(x => x.tag === tagInfo.tag);
|
|
103
51
|
if (existing) {
|
|
104
52
|
existing.count += tagInfo.count;
|
|
105
53
|
} else {
|
|
@@ -112,107 +60,74 @@ var consolidateTags = function consolidateTags(tagList) {
|
|
|
112
60
|
});
|
|
113
61
|
return newTagList;
|
|
114
62
|
};
|
|
115
|
-
|
|
116
63
|
function TagFilterBuilder(props) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
customType = _useState8[0],
|
|
135
|
-
setCustomType = _useState8[1];
|
|
136
|
-
|
|
137
|
-
var _useState9 = (0, _react.useState)(''),
|
|
138
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
139
|
-
customTag = _useState10[0],
|
|
140
|
-
setCustomTag = _useState10[1];
|
|
141
|
-
|
|
142
|
-
var intl = props.intl,
|
|
143
|
-
tags = props.tags,
|
|
144
|
-
filter = props.filter,
|
|
145
|
-
updateFilter = props.updateFilter,
|
|
146
|
-
hideModuleTagFilters = props.hideModuleTagFilters,
|
|
147
|
-
hideModuleLocationFilters = props.hideModuleLocationFilters,
|
|
148
|
-
hideMonitoringPointTagFilters = props.hideMonitoringPointTagFilters,
|
|
149
|
-
hideMonitoringPointTypeFilters = props.hideMonitoringPointTypeFilters,
|
|
150
|
-
baseFilters = props.baseFilters;
|
|
151
|
-
|
|
152
|
-
var updateSearch = function updateSearch(value) {
|
|
64
|
+
const [search, setSearch] = (0, _react.useState)('');
|
|
65
|
+
const [showAddCustom, setShowAddCustom] = (0, _react.useState)(false);
|
|
66
|
+
const [customTypeOptions, setCustomTypeOptions] = (0, _react.useState)([]);
|
|
67
|
+
const [customType, setCustomType] = (0, _react.useState)('');
|
|
68
|
+
const [customTag, setCustomTag] = (0, _react.useState)('');
|
|
69
|
+
const {
|
|
70
|
+
intl,
|
|
71
|
+
tags,
|
|
72
|
+
filter,
|
|
73
|
+
updateFilter,
|
|
74
|
+
hideModuleTagFilters,
|
|
75
|
+
hideModuleLocationFilters,
|
|
76
|
+
hideMonitoringPointTagFilters,
|
|
77
|
+
hideMonitoringPointTypeFilters,
|
|
78
|
+
baseFilters
|
|
79
|
+
} = props;
|
|
80
|
+
const updateSearch = value => {
|
|
153
81
|
if (value.length > 0) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
82
|
+
const lower = value.toLowerCase();
|
|
83
|
+
const test = /^[a-z0-9_]+$/.exec(lower);
|
|
157
84
|
if (test !== null) {
|
|
158
85
|
setSearch(lower);
|
|
159
86
|
}
|
|
160
87
|
} else {
|
|
161
88
|
setSearch('');
|
|
162
|
-
}
|
|
163
|
-
|
|
89
|
+
}
|
|
90
|
+
// setSearch(value.replace(/[^A-Z0-9]/ig, ' ').toLowerCase());
|
|
164
91
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
var newFilter = _objectSpread({}, filter);
|
|
168
|
-
|
|
92
|
+
const selectItem = (filterListName, tag) => {
|
|
93
|
+
const newFilter = _objectSpread({}, filter);
|
|
169
94
|
newFilter[filterListName].push(tag);
|
|
170
95
|
updateFilter(newFilter);
|
|
171
96
|
};
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
var index = newFilter[filterListName].indexOf(tag);
|
|
177
|
-
|
|
97
|
+
const deselectItem = (filterListName, tag) => {
|
|
98
|
+
const newFilter = _objectSpread({}, filter);
|
|
99
|
+
const index = newFilter[filterListName].indexOf(tag);
|
|
178
100
|
if (index !== -1) {
|
|
179
101
|
newFilter[filterListName].splice(index, 1);
|
|
180
102
|
updateFilter(newFilter);
|
|
181
103
|
}
|
|
182
104
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
var icon;
|
|
188
|
-
|
|
105
|
+
const renderTag = (tagInfo, filterListName) => {
|
|
106
|
+
const isSelected = filter[filterListName].includes(tagInfo.tag);
|
|
107
|
+
let keyPrefix = '';
|
|
108
|
+
let icon;
|
|
189
109
|
switch (filterListName) {
|
|
190
110
|
case 'moduleTagFilters':
|
|
191
111
|
keyPrefix = 'mtag';
|
|
192
112
|
icon = /*#__PURE__*/_react.default.createElement(_LocalOffer.default, null);
|
|
193
113
|
break;
|
|
194
|
-
|
|
195
114
|
case 'moduleLocationFilters':
|
|
196
115
|
keyPrefix = 'loc';
|
|
197
116
|
icon = /*#__PURE__*/_react.default.createElement(_LocationOn.default, null);
|
|
198
117
|
break;
|
|
199
|
-
|
|
200
118
|
case 'monitoringPointTagFilters':
|
|
201
119
|
keyPrefix = 'mptag';
|
|
202
120
|
icon = /*#__PURE__*/_react.default.createElement(_LocalOffer.default, null);
|
|
203
121
|
break;
|
|
204
|
-
|
|
205
122
|
case 'monitoringPointTypeFilters':
|
|
206
123
|
keyPrefix = 'ttag';
|
|
207
124
|
icon = /*#__PURE__*/_react.default.createElement(_Category.default, null);
|
|
208
125
|
break;
|
|
209
|
-
|
|
210
126
|
default:
|
|
211
127
|
keyPrefix = 'def';
|
|
212
128
|
icon = /*#__PURE__*/_react.default.createElement(_LocalOffer.default, null);
|
|
213
129
|
break;
|
|
214
130
|
}
|
|
215
|
-
|
|
216
131
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
217
132
|
key: "".concat(keyPrefix, "_").concat(tagInfo.tag),
|
|
218
133
|
style: {
|
|
@@ -224,9 +139,7 @@ function TagFilterBuilder(props) {
|
|
|
224
139
|
alignItems: 'center',
|
|
225
140
|
cursor: 'pointer'
|
|
226
141
|
},
|
|
227
|
-
onClick:
|
|
228
|
-
return isSelected ? deselectItem(filterListName, tagInfo.tag) : selectItem(filterListName, tagInfo.tag);
|
|
229
|
-
},
|
|
142
|
+
onClick: () => isSelected ? deselectItem(filterListName, tagInfo.tag) : selectItem(filterListName, tagInfo.tag),
|
|
230
143
|
"aria-hidden": "true"
|
|
231
144
|
}, icon, /*#__PURE__*/_react.default.createElement("span", {
|
|
232
145
|
style: {
|
|
@@ -235,146 +148,115 @@ function TagFilterBuilder(props) {
|
|
|
235
148
|
}
|
|
236
149
|
}, tagInfo.tag), "(".concat(tagInfo.count, ")"));
|
|
237
150
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
var typeOptions = [];
|
|
241
|
-
|
|
151
|
+
const showCustom = which => {
|
|
152
|
+
const typeOptions = [];
|
|
242
153
|
if (which === 'module') {
|
|
243
154
|
if (!hideModuleTagFilters) {
|
|
244
155
|
typeOptions.push('moduleTagFilters');
|
|
245
156
|
}
|
|
246
|
-
|
|
247
157
|
if (!hideModuleLocationFilters) {
|
|
248
158
|
typeOptions.push('moduleLocationFilters');
|
|
249
159
|
}
|
|
250
|
-
|
|
251
160
|
setCustomType(!hideModuleLocationFilters ? 'moduleLocationFilters' : 'moduleTagFilters');
|
|
252
161
|
} else {
|
|
253
162
|
if (!hideMonitoringPointTagFilters) {
|
|
254
163
|
typeOptions.push('monitoringPointTagFilters');
|
|
255
164
|
}
|
|
256
|
-
|
|
257
165
|
if (!hideMonitoringPointTypeFilters) {
|
|
258
166
|
typeOptions.push('monitoringPointTypeFilters');
|
|
259
167
|
}
|
|
260
|
-
|
|
261
168
|
setCustomType(!hideMonitoringPointTagFilters ? 'monitoringPointTagFilters' : 'monitoringPointTypeFilters');
|
|
262
169
|
}
|
|
263
|
-
|
|
264
170
|
setCustomTypeOptions(typeOptions);
|
|
265
171
|
setCustomTag('');
|
|
266
172
|
setShowAddCustom(true);
|
|
267
173
|
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
var newFilter = _objectSpread({}, filter);
|
|
271
|
-
|
|
174
|
+
const addCustomTag = () => {
|
|
175
|
+
const newFilter = _objectSpread({}, filter);
|
|
272
176
|
if (!newFilter[customType].includes(customTag)) {
|
|
273
177
|
newFilter[customType].push(customTag);
|
|
274
178
|
updateFilter(newFilter);
|
|
275
179
|
}
|
|
276
|
-
|
|
277
180
|
setShowAddCustom(false);
|
|
278
181
|
};
|
|
279
|
-
|
|
280
|
-
var handleKeyPress = function handleKeyPress(e) {
|
|
182
|
+
const handleKeyPress = e => {
|
|
281
183
|
if (e.which === 13) {
|
|
282
184
|
if (customTag.length > 0) {
|
|
283
185
|
addCustomTag();
|
|
284
186
|
}
|
|
285
187
|
}
|
|
286
188
|
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
var columns = 0;
|
|
189
|
+
const showModules = !hideModuleTagFilters || !hideModuleLocationFilters;
|
|
190
|
+
const showMonitoringPoints = !hideMonitoringPointTagFilters || !hideMonitoringPointTypeFilters;
|
|
191
|
+
let columns = 0;
|
|
291
192
|
if (showModules) columns++;
|
|
292
|
-
if (showMonitoringPoints) columns++;
|
|
293
|
-
// const adjustedModuleTags = [...tags.moduleTags];
|
|
193
|
+
if (showMonitoringPoints) columns++;
|
|
294
194
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
195
|
+
// Add any tags that aren't on the supplied list to the supplied list. This is needed in case we reference tags that have been deleted/etc.
|
|
196
|
+
// const adjustedModuleTags = [...tags.moduleTags];
|
|
197
|
+
const adjustedModuleTags = consolidateTags(tags.moduleTags);
|
|
198
|
+
filter.moduleTagFilters.forEach(x => {
|
|
199
|
+
if (!adjustedModuleTags.find(tagInfo => tagInfo.tag === x)) {
|
|
300
200
|
adjustedModuleTags.push({
|
|
301
201
|
tag: x,
|
|
302
202
|
count: 0
|
|
303
203
|
});
|
|
304
204
|
}
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
filter.moduleLocationFilters.forEach(
|
|
309
|
-
if (!adjustedLocationTags.find(
|
|
310
|
-
return tagInfo.tag === x;
|
|
311
|
-
})) {
|
|
205
|
+
});
|
|
206
|
+
// const adjustedLocationTags = [...tags.locationTags];
|
|
207
|
+
const adjustedLocationTags = consolidateTags(tags.locationTags);
|
|
208
|
+
filter.moduleLocationFilters.forEach(x => {
|
|
209
|
+
if (!adjustedLocationTags.find(tagInfo => tagInfo.tag === x)) {
|
|
312
210
|
adjustedLocationTags.push({
|
|
313
211
|
tag: x,
|
|
314
212
|
count: 0
|
|
315
213
|
});
|
|
316
214
|
}
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
filter.monitoringPointTagFilters.forEach(
|
|
321
|
-
if (!adjustedMonitoringPointTags.find(
|
|
322
|
-
return tagInfo.tag === x;
|
|
323
|
-
})) {
|
|
215
|
+
});
|
|
216
|
+
// const adjustedMonitoringPointTags = [...tags.monitoringPointTags];
|
|
217
|
+
const adjustedMonitoringPointTags = consolidateTags(tags.monitoringPointTags);
|
|
218
|
+
filter.monitoringPointTagFilters.forEach(x => {
|
|
219
|
+
if (!adjustedMonitoringPointTags.find(tagInfo => tagInfo.tag === x)) {
|
|
324
220
|
adjustedMonitoringPointTags.push({
|
|
325
221
|
tag: x,
|
|
326
222
|
count: 0
|
|
327
223
|
});
|
|
328
224
|
}
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
filter.monitoringPointTypeFilters.forEach(
|
|
333
|
-
if (!adjustedMonitoringPointTypes.find(
|
|
334
|
-
return tagInfo.tag === x;
|
|
335
|
-
})) {
|
|
225
|
+
});
|
|
226
|
+
// const adjustedMonitoringPointTypes = [...tags.typeTags];
|
|
227
|
+
const adjustedMonitoringPointTypes = consolidateTags(tags.typeTags);
|
|
228
|
+
filter.monitoringPointTypeFilters.forEach(x => {
|
|
229
|
+
if (!adjustedMonitoringPointTypes.find(tagInfo => tagInfo.tag === x)) {
|
|
336
230
|
adjustedMonitoringPointTypes.push({
|
|
337
231
|
tag: x,
|
|
338
232
|
count: 0
|
|
339
233
|
});
|
|
340
234
|
}
|
|
341
|
-
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
// Filter or not
|
|
342
238
|
// const filteredModuleTags = search.length > 0 ? tags.moduleTags.filter(x => x.tag.includes(search)) : [...tags.moduleTags];
|
|
343
239
|
// const filteredLocationTags = search.length > 0 ? tags.locationTags.filter(x => x.tag.includes(search)) : [...tags.locationTags];
|
|
344
240
|
// const filteredMonitoringPointTags = search.length > 0 ? tags.monitoringPointTags.filter(x => x.tag.includes(search)) : [...tags.monitoringPointTags];
|
|
345
241
|
// const filteredTypeTags = search.length > 0 ? tags.typeTags.filter(x => x.tag.includes(search)) : [...tags.typeTags];
|
|
346
242
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
var filteredMonitoringPointTags = search.length > 0 ? adjustedMonitoringPointTags.filter(function (x) {
|
|
354
|
-
return x.tag.includes(search);
|
|
355
|
-
}) : _toConsumableArray(adjustedMonitoringPointTags);
|
|
356
|
-
var filteredTypeTags = search.length > 0 ? adjustedMonitoringPointTypes.filter(function (x) {
|
|
357
|
-
return x.tag.includes(search);
|
|
358
|
-
}) : _toConsumableArray(adjustedMonitoringPointTypes); // const filteredModuleTags = adjustedModuleTags;
|
|
243
|
+
const filteredModuleTags = search.length > 0 ? adjustedModuleTags.filter(x => x.tag.includes(search)) : [...adjustedModuleTags];
|
|
244
|
+
const filteredLocationTags = search.length > 0 ? adjustedLocationTags.filter(x => x.tag.includes(search)) : [...adjustedLocationTags];
|
|
245
|
+
const filteredMonitoringPointTags = search.length > 0 ? adjustedMonitoringPointTags.filter(x => x.tag.includes(search)) : [...adjustedMonitoringPointTags];
|
|
246
|
+
const filteredTypeTags = search.length > 0 ? adjustedMonitoringPointTypes.filter(x => x.tag.includes(search)) : [...adjustedMonitoringPointTypes];
|
|
247
|
+
|
|
248
|
+
// const filteredModuleTags = adjustedModuleTags;
|
|
359
249
|
// const filteredLocationTags = adjustedLocationTags;
|
|
360
250
|
// const filteredMonitoringPointTags = adjustedMonitoringPointTags;
|
|
361
251
|
// const filteredTypeTags = adjustedMonitoringPointTypes;
|
|
252
|
+
|
|
362
253
|
// Sort by highest quantities of tags
|
|
254
|
+
filteredModuleTags.sort((a, b) => b.count - a.count);
|
|
255
|
+
filteredLocationTags.sort((a, b) => b.count - a.count);
|
|
256
|
+
filteredMonitoringPointTags.sort((a, b) => b.count - a.count);
|
|
257
|
+
filteredTypeTags.sort((a, b) => b.count - a.count);
|
|
363
258
|
|
|
364
|
-
filteredModuleTags.sort(function (a, b) {
|
|
365
|
-
return b.count - a.count;
|
|
366
|
-
});
|
|
367
|
-
filteredLocationTags.sort(function (a, b) {
|
|
368
|
-
return b.count - a.count;
|
|
369
|
-
});
|
|
370
|
-
filteredMonitoringPointTags.sort(function (a, b) {
|
|
371
|
-
return b.count - a.count;
|
|
372
|
-
});
|
|
373
|
-
filteredTypeTags.sort(function (a, b) {
|
|
374
|
-
return b.count - a.count;
|
|
375
|
-
});
|
|
376
259
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
377
|
-
|
|
378
260
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
379
261
|
container: true
|
|
380
262
|
}, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
@@ -403,11 +285,9 @@ function TagFilterBuilder(props) {
|
|
|
403
285
|
shrink: true
|
|
404
286
|
},
|
|
405
287
|
value: filter.baseFilter ? filter.baseFilter : '',
|
|
406
|
-
onChange:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}));
|
|
410
|
-
},
|
|
288
|
+
onChange: e => updateFilter(_objectSpread(_objectSpread({}, filter), {}, {
|
|
289
|
+
baseFilter: e.target.value
|
|
290
|
+
})),
|
|
411
291
|
select: true,
|
|
412
292
|
SelectProps: {
|
|
413
293
|
displayEmpty: true
|
|
@@ -419,26 +299,20 @@ function TagFilterBuilder(props) {
|
|
|
419
299
|
style: {
|
|
420
300
|
fontStyle: 'italic'
|
|
421
301
|
}
|
|
422
|
-
}, "NONE"), baseFilters.map(
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}, bFilter);
|
|
426
|
-
}))), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
302
|
+
}, "NONE"), baseFilters.map((bFilter, bfIndex) => /*#__PURE__*/_react.default.createElement("option", {
|
|
303
|
+
value: bFilter
|
|
304
|
+
}, bFilter)))), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
427
305
|
id: "searchbar",
|
|
428
306
|
placeholder: "Search...",
|
|
429
307
|
value: search,
|
|
430
|
-
onChange:
|
|
431
|
-
return updateSearch(e.target.value);
|
|
432
|
-
},
|
|
308
|
+
onChange: e => updateSearch(e.target.value),
|
|
433
309
|
InputProps: {
|
|
434
310
|
startAdornment: /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
|
|
435
311
|
position: "start"
|
|
436
312
|
}, /*#__PURE__*/_react.default.createElement(_Search.default, null))
|
|
437
313
|
}
|
|
438
314
|
}), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
439
|
-
onClick:
|
|
440
|
-
return props.close();
|
|
441
|
-
}
|
|
315
|
+
onClick: () => props.close()
|
|
442
316
|
}, /*#__PURE__*/_react.default.createElement(_Close.default, null)))), showModules && /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
443
317
|
item: true,
|
|
444
318
|
xs: columns === 1 ? 12 : 6,
|
|
@@ -459,30 +333,22 @@ function TagFilterBuilder(props) {
|
|
|
459
333
|
style: {
|
|
460
334
|
marginRight: 10
|
|
461
335
|
},
|
|
462
|
-
onClick:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}));
|
|
467
|
-
}
|
|
336
|
+
onClick: () => updateFilter(_objectSpread(_objectSpread({}, filter), {}, {
|
|
337
|
+
moduleTagFilters: [],
|
|
338
|
+
moduleLocationFilters: []
|
|
339
|
+
}))
|
|
468
340
|
}, intl.formatMessage({
|
|
469
341
|
id: '__clear'
|
|
470
342
|
})), /*#__PURE__*/_react.default.createElement(_Link.default, {
|
|
471
343
|
component: "button",
|
|
472
344
|
variant: "body2",
|
|
473
|
-
onClick:
|
|
474
|
-
return showCustom('module');
|
|
475
|
-
}
|
|
345
|
+
onClick: () => showCustom('module')
|
|
476
346
|
}, intl.formatMessage({
|
|
477
347
|
id: '__add_custom'
|
|
478
348
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
479
349
|
style: style.list,
|
|
480
350
|
className: _scrollbarModule.default.scroll
|
|
481
|
-
}, !hideModuleTagFilters && filteredModuleTags.map(
|
|
482
|
-
return renderTag(moduleTag, 'moduleTagFilters');
|
|
483
|
-
}), !hideModuleLocationFilters && filteredLocationTags.map(function (locationTag) {
|
|
484
|
-
return renderTag(locationTag, 'moduleLocationFilters');
|
|
485
|
-
}))), showMonitoringPoints && /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
351
|
+
}, !hideModuleTagFilters && filteredModuleTags.map(moduleTag => renderTag(moduleTag, 'moduleTagFilters')), !hideModuleLocationFilters && filteredLocationTags.map(locationTag => renderTag(locationTag, 'moduleLocationFilters')))), showMonitoringPoints && /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
486
352
|
item: true,
|
|
487
353
|
xs: columns === 1 ? 12 : 6,
|
|
488
354
|
style: {
|
|
@@ -502,30 +368,22 @@ function TagFilterBuilder(props) {
|
|
|
502
368
|
style: {
|
|
503
369
|
marginRight: 10
|
|
504
370
|
},
|
|
505
|
-
onClick:
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}));
|
|
510
|
-
}
|
|
371
|
+
onClick: () => updateFilter(_objectSpread(_objectSpread({}, filter), {}, {
|
|
372
|
+
monitoringPointTagFilters: [],
|
|
373
|
+
monitoringPointTypeFilters: []
|
|
374
|
+
}))
|
|
511
375
|
}, intl.formatMessage({
|
|
512
376
|
id: '__clear'
|
|
513
377
|
})), /*#__PURE__*/_react.default.createElement(_Link.default, {
|
|
514
378
|
component: "button",
|
|
515
379
|
variant: "body2",
|
|
516
|
-
onClick:
|
|
517
|
-
return showCustom('monitoringPoint');
|
|
518
|
-
}
|
|
380
|
+
onClick: () => showCustom('monitoringPoint')
|
|
519
381
|
}, intl.formatMessage({
|
|
520
382
|
id: '__add_custom'
|
|
521
383
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
522
384
|
style: style.list,
|
|
523
385
|
className: _scrollbarModule.default.scroll
|
|
524
|
-
}, !hideMonitoringPointTagFilters && filteredMonitoringPointTags.map(
|
|
525
|
-
return renderTag(mpTag, 'monitoringPointTagFilters');
|
|
526
|
-
}), !hideMonitoringPointTypeFilters && filteredTypeTags.map(function (typeTag) {
|
|
527
|
-
return renderTag(typeTag, 'monitoringPointTypeFilters');
|
|
528
|
-
}))), columns === 0 && /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
386
|
+
}, !hideMonitoringPointTagFilters && filteredMonitoringPointTags.map(mpTag => renderTag(mpTag, 'monitoringPointTagFilters')), !hideMonitoringPointTypeFilters && filteredTypeTags.map(typeTag => renderTag(typeTag, 'monitoringPointTypeFilters')))), columns === 0 && /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
529
387
|
item: true,
|
|
530
388
|
xs: 12,
|
|
531
389
|
style: {
|
|
@@ -534,9 +392,7 @@ function TagFilterBuilder(props) {
|
|
|
534
392
|
}
|
|
535
393
|
}, "All types of tags have been hidden. Unhide some tags to be able to use the builder.")), showAddCustom && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
536
394
|
open: true,
|
|
537
|
-
onClose:
|
|
538
|
-
return setShowAddCustom(false);
|
|
539
|
-
}
|
|
395
|
+
onClose: () => setShowAddCustom(false)
|
|
540
396
|
}, /*#__PURE__*/_react.default.createElement(_DialogContent.default, null, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
541
397
|
variant: "outlined",
|
|
542
398
|
label: intl.formatMessage({
|
|
@@ -544,12 +400,10 @@ function TagFilterBuilder(props) {
|
|
|
544
400
|
}),
|
|
545
401
|
margin: "normal",
|
|
546
402
|
value: customType,
|
|
547
|
-
onChange:
|
|
548
|
-
return setCustomType(e.target.value);
|
|
549
|
-
},
|
|
403
|
+
onChange: e => setCustomType(e.target.value),
|
|
550
404
|
fullWidth: true,
|
|
551
405
|
select: true
|
|
552
|
-
}, customTypeOptions.map(
|
|
406
|
+
}, customTypeOptions.map(cto => {
|
|
553
407
|
switch (cto) {
|
|
554
408
|
case 'moduleTagFilters':
|
|
555
409
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
@@ -560,7 +414,6 @@ function TagFilterBuilder(props) {
|
|
|
560
414
|
marginRight: 10
|
|
561
415
|
}
|
|
562
416
|
}), "Module Configuration Tag");
|
|
563
|
-
|
|
564
417
|
case 'moduleLocationFilters':
|
|
565
418
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
566
419
|
key: cto,
|
|
@@ -570,7 +423,6 @@ function TagFilterBuilder(props) {
|
|
|
570
423
|
marginRight: 10
|
|
571
424
|
}
|
|
572
425
|
}), "Module Location Tag");
|
|
573
|
-
|
|
574
426
|
case 'monitoringPointTagFilters':
|
|
575
427
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
576
428
|
key: cto,
|
|
@@ -580,7 +432,6 @@ function TagFilterBuilder(props) {
|
|
|
580
432
|
marginRight: 10
|
|
581
433
|
}
|
|
582
434
|
}), "Monitoring Point Tag");
|
|
583
|
-
|
|
584
435
|
case 'monitoringPointTypeFilters':
|
|
585
436
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
586
437
|
key: cto,
|
|
@@ -590,7 +441,6 @@ function TagFilterBuilder(props) {
|
|
|
590
441
|
marginRight: 10
|
|
591
442
|
}
|
|
592
443
|
}), "Monitoring Point Type");
|
|
593
|
-
|
|
594
444
|
default:
|
|
595
445
|
return /*#__PURE__*/_react.default.createElement("option", {
|
|
596
446
|
key: cto,
|
|
@@ -605,28 +455,21 @@ function TagFilterBuilder(props) {
|
|
|
605
455
|
margin: "normal",
|
|
606
456
|
fullWidth: true,
|
|
607
457
|
autoFocus: true,
|
|
608
|
-
onKeyPress:
|
|
609
|
-
return handleKeyPress(e);
|
|
610
|
-
},
|
|
458
|
+
onKeyPress: e => handleKeyPress(e),
|
|
611
459
|
InputLabelProps: {
|
|
612
460
|
shrink: true
|
|
613
461
|
},
|
|
614
462
|
value: customTag,
|
|
615
|
-
onChange:
|
|
616
|
-
return setCustomTag(e.target.value.replace(/[^a-z0-9_]/g, ''));
|
|
617
|
-
}
|
|
463
|
+
onChange: e => setCustomTag(e.target.value.replace(/[^a-z0-9_]/g, ''))
|
|
618
464
|
})), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
619
465
|
variant: "contained",
|
|
620
466
|
color: "primary",
|
|
621
467
|
disabled: customTag.length === 0,
|
|
622
|
-
onClick:
|
|
623
|
-
return addCustomTag();
|
|
624
|
-
}
|
|
468
|
+
onClick: () => addCustomTag()
|
|
625
469
|
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
626
470
|
id: "__add"
|
|
627
471
|
})))));
|
|
628
472
|
}
|
|
629
|
-
|
|
630
473
|
TagFilterBuilder.propTypes = {
|
|
631
474
|
intl: _propTypes.default.shape().isRequired,
|
|
632
475
|
tags: _propTypes.default.shape().isRequired,
|
|
@@ -642,7 +485,4 @@ TagFilterBuilder.propTypes = {
|
|
|
642
485
|
TagFilterBuilder.defaultProps = {
|
|
643
486
|
baseFilters: null
|
|
644
487
|
};
|
|
645
|
-
|
|
646
|
-
var _default = (0, _reactIntl.injectIntl)(TagFilterBuilder);
|
|
647
|
-
|
|
648
|
-
exports.default = _default;
|
|
488
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(TagFilterBuilder);
|