versacall-core-library-react 2.0.38 → 2.0.44
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 +26 -20
- package/dist/components/CoreAppBar/CoreAppBar.js +47 -41
- package/dist/components/CoreAppBar/CoreAppBarDrawer.js +35 -29
- package/dist/components/CoreAppSelector/AppLink.js +6 -6
- package/dist/components/CoreAppSelector/CoreAppSelector.js +24 -18
- package/dist/components/CoreDialogueToolBar/CoreDialogueToolBar.js +11 -11
- package/dist/components/CoreDrawer/CoreDrawer.js +35 -29
- package/dist/components/CoreDropDownTextfield/CoreDropDownTextfield.js +24 -18
- package/dist/components/CoreElapsedTime/CoreElapsedTime.js +19 -13
- package/dist/components/CoreFrame/CoreFrame.js +7 -5
- package/dist/components/CorePlugin/CorePlugin.js +23 -15
- package/dist/components/CorePlugin/OldCorePlugin.js +20 -14
- package/dist/components/CoreSaveChangesDialog/CoreSaveChangesDialog.js +84 -0
- package/dist/components/CoreSaveChangesDialog/index.js +15 -0
- package/dist/components/CoreShiftTagFilter/CoreShiftTagFilter.js +183 -42
- package/dist/components/CoreShiftTagFilter/OldCoreShiftTagFilter.js +48 -40
- package/dist/components/CoreSideBar/CoreSideBar.js +56 -50
- package/dist/components/CoreSideBar/CoreSideBarDrawer.js +36 -30
- package/dist/components/CoreSnackBar/CoreSnackBar.js +25 -19
- package/dist/components/CoreTable/CoreTable.js +40 -32
- package/dist/components/CoreTable/CoreTableChips.js +3 -3
- package/dist/components/CoreTable/CoreTableHead.js +32 -26
- package/dist/components/CoreTable/CoreTableToolbar.js +13 -13
- package/dist/components/CoreTagFilter/CoreTagFilter.js +64 -50
- package/dist/components/CoreTagFilter/OldCoreTagFilter.js +66 -54
- package/dist/components/CoreTagFilter/OldTagChip.js +2 -2
- package/dist/components/CoreTagFilter/OldTagFilterSelector.js +25 -19
- package/dist/components/CoreTagFilter/OldTagOption.js +10 -6
- package/dist/components/CoreTagFilter/TagFilterBuilder.js +351 -49
- package/dist/components/CoreTextField/CoreTextField.js +24 -18
- package/dist/components/CoreTheme/CoreTheme.js +1 -1
- package/dist/components/CoreTile/CoreTile.js +5 -5
- package/dist/components/CoreTile/CoreTileToolbar.js +3 -3
- package/dist/components/CoreTimerInput/CoreTimerInput.js +16 -14
- package/dist/components/CoreTimerInput/CoreTimerInputOld.js +10 -8
- package/dist/components/CoreToolbar/CoreToolbar.js +12 -12
- package/dist/components/CoreTracker/CoreTracker.js +19 -13
- package/dist/components/CoreTranslate/CoreTranslate.js +9 -5
- package/dist/components/CoreTranslate/translations/en.json +4 -0
- package/dist/components/CoreTranslateWrapper/CoreTranslateWrapper.js +1 -1
- package/dist/components/CoreWidget/CoreWidget.js +22 -14
- package/dist/components/CoreWrapper/CoreWrapper.js +6 -6
- package/dist/components/index.js +8 -0
- package/dist/context/Authentication/AuthenticationContext.js +1 -1
- package/dist/context/Authentication/AuthenticationProvider.js +19 -13
- package/dist/context/Authentication/index.js +4 -4
- package/dist/context/Authentication/withAuthentication.js +3 -3
- package/dist/context/Channels/ChannelsConsumer.js +19 -13
- package/dist/context/Channels/ChannelsContext.js +1 -1
- package/dist/context/Channels/ChannelsProvider.js +19 -13
- package/dist/context/Channels/DataChannel.js +16 -12
- package/dist/context/Channels/EntityChannel.js +16 -12
- package/dist/context/Channels/EveryoneChannel.js +16 -12
- package/dist/context/Channels/OrganizationChannel.js +16 -12
- package/dist/context/Channels/UserChannel.js +16 -12
- package/dist/context/Channels/withChannels.js +3 -3
- package/dist/context/Core/CoreContext.js +1 -1
- package/dist/context/Core/CoreProvider.js +19 -13
- package/dist/context/Core/index.js +4 -4
- package/dist/context/Core/withCore.js +3 -3
- package/dist/context/Organization/OrganizationContext.js +1 -1
- package/dist/context/Organization/OrganizationProvider.js +19 -13
- package/dist/context/Organization/index.js +4 -4
- package/dist/context/Organization/withOrganization.js +3 -3
- package/dist/context/Plugin/PluginContext.js +1 -1
- package/dist/context/Plugin/PluginProvider.js +23 -15
- package/dist/context/Plugin/index.js +4 -4
- package/dist/context/Plugin/withPlugin.js +3 -3
- package/dist/context/index.js +5 -0
- package/dist/functions/TagEvaluator.js +2 -4
- package/dist/functions/index.js +14 -14
- package/dist/icons/CopyIcon.js +3 -3
- package/dist/icons/DeleteIcon.js +3 -3
- package/dist/icons/DuplicateIcon.js +3 -3
- package/dist/icons/EditIcon.js +3 -3
- package/dist/icons/FabAddIcon.js +6 -4
- package/dist/icons/PasteIcon.js +3 -3
- package/dist/icons/index.js +4 -4
- package/dist/index.js +6 -0
- package/package.json +2 -2
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -25,37 +27,41 @@ var _OldTagOption = _interopRequireDefault(require("./OldTagOption"));
|
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
28
|
-
function
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
31
|
|
|
30
|
-
function
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
33
|
|
|
32
34
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33
35
|
|
|
34
36
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
35
37
|
|
|
36
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
38
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37
39
|
|
|
38
|
-
function
|
|
40
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
39
41
|
|
|
40
|
-
function
|
|
42
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
43
|
+
|
|
44
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
45
|
|
|
42
|
-
function
|
|
46
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
47
|
|
|
44
|
-
function
|
|
48
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
49
|
+
|
|
50
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
51
|
|
|
46
|
-
function
|
|
52
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
53
|
|
|
48
|
-
var OldTagFilterSelector =
|
|
49
|
-
/*#__PURE__*/
|
|
50
|
-
function (_Component) {
|
|
54
|
+
var OldTagFilterSelector = /*#__PURE__*/function (_Component) {
|
|
51
55
|
_inherits(OldTagFilterSelector, _Component);
|
|
52
56
|
|
|
57
|
+
var _super = _createSuper(OldTagFilterSelector);
|
|
58
|
+
|
|
53
59
|
function OldTagFilterSelector() {
|
|
54
60
|
var _this;
|
|
55
61
|
|
|
56
62
|
_classCallCheck(this, OldTagFilterSelector);
|
|
57
63
|
|
|
58
|
-
_this =
|
|
64
|
+
_this = _super.call(this);
|
|
59
65
|
_this.state = {
|
|
60
66
|
tab: 0,
|
|
61
67
|
search: ''
|
|
@@ -95,14 +101,14 @@ function (_Component) {
|
|
|
95
101
|
var _this$state = this.state,
|
|
96
102
|
tab = _this$state.tab,
|
|
97
103
|
search = _this$state.search;
|
|
98
|
-
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_CoreDialogueToolBar.default, {
|
|
104
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CoreDialogueToolBar.default, {
|
|
99
105
|
title: intl.formatMessage({
|
|
100
106
|
id: title
|
|
101
107
|
}),
|
|
102
108
|
handleClose: function handleClose() {
|
|
103
109
|
return onClose();
|
|
104
110
|
}
|
|
105
|
-
}), _react.default.createElement("div", null, _react.default.createElement(_Tabs.default, {
|
|
111
|
+
}), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
|
106
112
|
value: tab,
|
|
107
113
|
onChange: function onChange(event, value) {
|
|
108
114
|
return _this2.setState({
|
|
@@ -111,16 +117,16 @@ function (_Component) {
|
|
|
111
117
|
});
|
|
112
118
|
}
|
|
113
119
|
}, tagOptions.map(function (option, index) {
|
|
114
|
-
return _react.default.createElement(_Tab.default, {
|
|
120
|
+
return /*#__PURE__*/_react.default.createElement(_Tab.default, {
|
|
115
121
|
label: _this2.getTabTitle(option.title, index),
|
|
116
122
|
key: String(index)
|
|
117
123
|
});
|
|
118
|
-
})), _react.default.createElement("div", {
|
|
124
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
119
125
|
style: {
|
|
120
126
|
width: '80%',
|
|
121
127
|
margin: '0 10%'
|
|
122
128
|
}
|
|
123
|
-
}, _react.default.createElement(_TextField.default, {
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
124
130
|
margin: "dense",
|
|
125
131
|
value: search,
|
|
126
132
|
label: intl.formatMessage({
|
|
@@ -131,7 +137,7 @@ function (_Component) {
|
|
|
131
137
|
search: event.target.value
|
|
132
138
|
});
|
|
133
139
|
}
|
|
134
|
-
})), _react.default.createElement("div", null, tagOptions.length > 0 && _react.default.createElement(_List.default, {
|
|
140
|
+
})), /*#__PURE__*/_react.default.createElement("div", null, tagOptions.length > 0 && /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
135
141
|
style: {
|
|
136
142
|
padding: '2%',
|
|
137
143
|
overflow: 'auto',
|
|
@@ -140,7 +146,7 @@ function (_Component) {
|
|
|
140
146
|
}, tagOptions[tab].options.filter(function (tag) {
|
|
141
147
|
return tag.tag.includes(search);
|
|
142
148
|
}).map(function (tag, index) {
|
|
143
|
-
return _react.default.createElement(_OldTagOption.default, {
|
|
149
|
+
return /*#__PURE__*/_react.default.createElement(_OldTagOption.default, {
|
|
144
150
|
tag: tag,
|
|
145
151
|
key: String(index),
|
|
146
152
|
filterArrayName: tagOptions[tab].filterArrayName,
|
|
@@ -17,13 +17,17 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
20
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
21
21
|
|
|
22
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
22
|
+
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."); }
|
|
23
23
|
|
|
24
|
-
function
|
|
24
|
+
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); }
|
|
25
25
|
|
|
26
|
-
function
|
|
26
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
27
|
+
|
|
28
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
27
31
|
|
|
28
32
|
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; }
|
|
29
33
|
|
|
@@ -52,12 +56,12 @@ function OldTagOption(props) {
|
|
|
52
56
|
return updateFilter(_defineProperty({}, filterArrayName, [].concat(_toConsumableArray(activeTags), [tag.tag])));
|
|
53
57
|
};
|
|
54
58
|
|
|
55
|
-
return _react.default.createElement(_ListItem.default, {
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_ListItem.default, {
|
|
56
60
|
style: listItemStyle,
|
|
57
61
|
onClick: function onClick() {
|
|
58
62
|
return addTag();
|
|
59
63
|
}
|
|
60
|
-
}, _react.default.createElement(_ListItemText.default, {
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
|
|
61
65
|
primary: showCount ? "".concat(tag.tag, " (").concat(tag.count, ")") : "".concat(tag.tag)
|
|
62
66
|
}));
|
|
63
67
|
}
|