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,167 +1,103 @@
|
|
|
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 _SnackbarContent = _interopRequireDefault(require("@material-ui/core/SnackbarContent"));
|
|
13
|
-
|
|
14
9
|
var _CheckCircle = _interopRequireDefault(require("@material-ui/icons/CheckCircle"));
|
|
15
|
-
|
|
16
10
|
var _styles = require("@material-ui/core/styles");
|
|
17
|
-
|
|
18
11
|
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
19
|
-
|
|
20
12
|
var _Warning = _interopRequireDefault(require("@material-ui/icons/Warning"));
|
|
21
|
-
|
|
22
13
|
var _green = _interopRequireDefault(require("@material-ui/core/colors/green"));
|
|
23
|
-
|
|
24
14
|
var _amber = _interopRequireDefault(require("@material-ui/core/colors/amber"));
|
|
25
|
-
|
|
26
15
|
var _Snackbar = _interopRequireDefault(require("@material-ui/core/Snackbar"));
|
|
27
|
-
|
|
28
16
|
var _Error = _interopRequireDefault(require("@material-ui/icons/Error"));
|
|
29
|
-
|
|
30
17
|
var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
|
|
31
|
-
|
|
32
18
|
var _Info = _interopRequireDefault(require("@material-ui/icons/Info"));
|
|
33
|
-
|
|
34
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
backgroundColor: _green.default[600]
|
|
66
|
-
},
|
|
67
|
-
error: {
|
|
68
|
-
backgroundColor: theme.palette.error.dark
|
|
69
|
-
},
|
|
70
|
-
info: {
|
|
71
|
-
backgroundColor: theme.palette.primary.dark
|
|
72
|
-
},
|
|
73
|
-
warning: {
|
|
74
|
-
backgroundColor: _amber.default[700]
|
|
75
|
-
},
|
|
76
|
-
none: {},
|
|
77
|
-
icon: {
|
|
78
|
-
fontSize: 20
|
|
79
|
-
},
|
|
80
|
-
iconVariant: {
|
|
81
|
-
opacity: 0.9,
|
|
82
|
-
marginRight: theme.spacing()
|
|
83
|
-
},
|
|
84
|
-
message: {
|
|
85
|
-
display: 'flex',
|
|
86
|
-
alignItems: 'center'
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
var variantIcon = {
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
+
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); }
|
|
22
|
+
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; }
|
|
23
|
+
const styles = theme => ({
|
|
24
|
+
success: {
|
|
25
|
+
backgroundColor: _green.default[600]
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
backgroundColor: theme.palette.error.dark
|
|
29
|
+
},
|
|
30
|
+
info: {
|
|
31
|
+
backgroundColor: theme.palette.primary.dark
|
|
32
|
+
},
|
|
33
|
+
warning: {
|
|
34
|
+
backgroundColor: _amber.default[700]
|
|
35
|
+
},
|
|
36
|
+
none: {},
|
|
37
|
+
icon: {
|
|
38
|
+
fontSize: 20
|
|
39
|
+
},
|
|
40
|
+
iconVariant: {
|
|
41
|
+
opacity: 0.9,
|
|
42
|
+
marginRight: theme.spacing()
|
|
43
|
+
},
|
|
44
|
+
message: {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
alignItems: 'center'
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const variantIcon = {
|
|
92
50
|
success: _CheckCircle.default,
|
|
93
51
|
warning: _Warning.default,
|
|
94
52
|
error: _Error.default,
|
|
95
53
|
info: _Info.default,
|
|
96
54
|
none: null
|
|
97
55
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var _super = _createSuper(CoreSnackBar);
|
|
103
|
-
|
|
104
|
-
function CoreSnackBar() {
|
|
105
|
-
_classCallCheck(this, CoreSnackBar);
|
|
106
|
-
|
|
107
|
-
return _super.apply(this, arguments);
|
|
56
|
+
class CoreSnackBar extends _react.Component {
|
|
57
|
+
onClose() {
|
|
58
|
+
this.props.onClose();
|
|
108
59
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
className: classes.iconVariant
|
|
151
|
-
}), message),
|
|
152
|
-
action: [/*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
153
|
-
key: "close",
|
|
154
|
-
"aria-label": "Close",
|
|
155
|
-
color: "inherit",
|
|
156
|
-
onClick: onAction
|
|
157
|
-
}, /*#__PURE__*/_react.default.createElement(_Close.default, null))]
|
|
158
|
-
})));
|
|
159
|
-
}
|
|
160
|
-
}]);
|
|
161
|
-
|
|
162
|
-
return CoreSnackBar;
|
|
163
|
-
}(_react.Component);
|
|
164
|
-
|
|
60
|
+
render() {
|
|
61
|
+
const {
|
|
62
|
+
open,
|
|
63
|
+
autoHideDuration,
|
|
64
|
+
message,
|
|
65
|
+
onAction,
|
|
66
|
+
iconType,
|
|
67
|
+
withIcon,
|
|
68
|
+
classes
|
|
69
|
+
} = this.props;
|
|
70
|
+
const Icon = variantIcon[iconType];
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
+
style: {
|
|
73
|
+
position: 'absolute',
|
|
74
|
+
zIndex: 5000
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_Snackbar.default, {
|
|
77
|
+
open: open,
|
|
78
|
+
autoHideDuration: autoHideDuration,
|
|
79
|
+
onClose: () => this.onClose(),
|
|
80
|
+
anchorOrigin: {
|
|
81
|
+
vertical: 'bottom',
|
|
82
|
+
horizontal: 'left'
|
|
83
|
+
}
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_SnackbarContent.default, {
|
|
85
|
+
"aria-describedby": "client-snackbar",
|
|
86
|
+
className: classes[iconType],
|
|
87
|
+
message: /*#__PURE__*/_react.default.createElement("span", {
|
|
88
|
+
id: "client-snackbar"
|
|
89
|
+
}, withIcon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
90
|
+
className: classes.iconVariant
|
|
91
|
+
}), message),
|
|
92
|
+
action: [/*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
93
|
+
key: "close",
|
|
94
|
+
"aria-label": "Close",
|
|
95
|
+
color: "inherit",
|
|
96
|
+
onClick: onAction
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement(_Close.default, null))]
|
|
98
|
+
})));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
165
101
|
CoreSnackBar.propTypes = {
|
|
166
102
|
open: _propTypes.default.bool.isRequired,
|
|
167
103
|
message: _propTypes.default.string.isRequired,
|
|
@@ -175,10 +111,7 @@ CoreSnackBar.propTypes = {
|
|
|
175
111
|
CoreSnackBar.defaultProps = {
|
|
176
112
|
autoHideDuration: 1000,
|
|
177
113
|
iconType: 'info',
|
|
178
|
-
onAction:
|
|
114
|
+
onAction: () => {},
|
|
179
115
|
withIcon: false
|
|
180
116
|
};
|
|
181
|
-
|
|
182
|
-
var _default = (0, _styles.withStyles)(styles)(CoreSnackBar);
|
|
183
|
-
|
|
184
|
-
exports.default = _default;
|
|
117
|
+
var _default = exports.default = (0, _styles.withStyles)(styles)(CoreSnackBar);
|
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _CoreSnackBar.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _CoreSnackBar = _interopRequireDefault(require("./CoreSnackBar"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|