versacall-core-library-react 2.0.70 → 2.0.71

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.
Files changed (142) hide show
  1. package/dist/components/CoreAlert/CoreAlert.js +85 -0
  2. package/dist/components/CoreAlert/index.js +13 -0
  3. package/dist/components/CoreAlert/readme.md +21 -0
  4. package/dist/components/CoreAppBar/CoreAppBar.js +364 -0
  5. package/dist/components/CoreAppBar/CoreAppBarDrawer.js +134 -0
  6. package/dist/components/CoreAppBar/README.md +27 -0
  7. package/dist/components/CoreAppBar/index.js +13 -0
  8. package/dist/components/CoreAppBar/screenshot.png +0 -0
  9. package/dist/components/CoreAppSelector/AppLink.js +101 -0
  10. package/dist/components/CoreAppSelector/CoreAppSelector.js +155 -0
  11. package/dist/components/CoreAppSelector/index.js +13 -0
  12. package/dist/components/CoreDialogueToolBar/CoreDialogueToolBar.js +123 -0
  13. package/dist/components/CoreDialogueToolBar/index.js +13 -0
  14. package/dist/components/CoreDrawer/CoreDrawer.js +236 -0
  15. package/dist/components/CoreDrawer/README.md +36 -0
  16. package/dist/components/CoreDrawer/index.js +13 -0
  17. package/dist/components/CoreDrawer/screenshot_collapsed.png +0 -0
  18. package/dist/components/CoreDrawer/screenshot_expanded.png +0 -0
  19. package/dist/components/CoreDropDownTextfield/CoreDropDownTextfield.js +85 -0
  20. package/dist/components/CoreDropDownTextfield/index.js +13 -0
  21. package/dist/components/CoreElapsedTime/CoreElapsedTime.js +57 -0
  22. package/dist/components/CoreElapsedTime/index.js +13 -0
  23. package/dist/components/CoreFrame/CoreFrame.js +64 -0
  24. package/dist/components/CoreFrame/index.js +13 -0
  25. package/dist/components/CoreImportDialog/CoreImportDialog.js +350 -0
  26. package/dist/components/CoreImportDialog/index.js +13 -0
  27. package/dist/components/CoreImportResultsDialog/CoreImportResultsDialog.js +103 -0
  28. package/dist/components/CoreImportResultsDialog/index.js +13 -0
  29. package/dist/components/CoreImporting/CoreImporting.js +60 -0
  30. package/dist/components/CoreImporting/index.js +13 -0
  31. package/dist/components/CorePlugin/CorePlugin.js +134 -0
  32. package/dist/components/CorePlugin/OldCorePlugin.js +124 -0
  33. package/dist/components/CorePlugin/index.js +13 -0
  34. package/dist/components/CoreSaveChangesDialog/CoreSaveChangesDialog.js +62 -0
  35. package/dist/components/CoreSaveChangesDialog/index.js +13 -0
  36. package/dist/components/CoreShiftTagFilter/CoreShiftTagFilter.js +350 -0
  37. package/dist/components/CoreShiftTagFilter/OldCoreShiftTagFilter.js +208 -0
  38. package/dist/components/CoreShiftTagFilter/index.js +13 -0
  39. package/dist/components/CoreSideBar/CoreSideBar.js +737 -0
  40. package/dist/components/CoreSideBar/CoreSideBarDrawer.js +172 -0
  41. package/dist/components/CoreSideBar/index.js +13 -0
  42. package/dist/components/CoreSnackBar/CoreSnackBar.js +116 -0
  43. package/dist/components/CoreSnackBar/index.js +13 -0
  44. package/dist/components/CoreSnackBar/readme.md +23 -0
  45. package/dist/components/CoreTable/CoreTable.js +315 -0
  46. package/dist/components/CoreTable/CoreTableChips.js +50 -0
  47. package/dist/components/CoreTable/CoreTableHead.js +175 -0
  48. package/dist/components/CoreTable/CoreTableToolbar.js +108 -0
  49. package/dist/components/CoreTable/index.js +13 -0
  50. package/dist/components/CoreTable/readMe.md +79 -0
  51. package/dist/components/CoreTagFilter/CoreTagFilter.js +275 -0
  52. package/dist/components/CoreTagFilter/OldCoreTagFilter.js +341 -0
  53. package/dist/components/CoreTagFilter/OldTagChip.js +44 -0
  54. package/dist/components/CoreTagFilter/OldTagFilterSelector.js +105 -0
  55. package/dist/components/CoreTagFilter/OldTagOption.js +53 -0
  56. package/dist/components/CoreTagFilter/TagFilterBuilder.js +487 -0
  57. package/dist/components/CoreTagFilter/index.js +13 -0
  58. package/dist/components/CoreTextField/CoreTextField.js +109 -0
  59. package/dist/components/CoreTextField/index.js +13 -0
  60. package/dist/components/CoreTheme/CoreTheme.css +9 -0
  61. package/dist/components/CoreTheme/CoreTheme.js +51 -0
  62. package/dist/components/CoreTheme/README.md +3 -0
  63. package/dist/components/CoreTheme/index.js +13 -0
  64. package/dist/components/CoreTile/CoreTile.js +62 -0
  65. package/dist/components/CoreTile/CoreTileToolbar.js +62 -0
  66. package/dist/components/CoreTile/index.js +13 -0
  67. package/dist/components/CoreTimerInput/CoreTimerInput.js +203 -0
  68. package/dist/components/CoreTimerInput/CoreTimerInputOld.js +146 -0
  69. package/dist/components/CoreTimerInput/index.js +13 -0
  70. package/dist/components/CoreToolbar/CoreToolbar.js +205 -0
  71. package/dist/components/CoreToolbar/index.js +13 -0
  72. package/dist/components/CoreTracker/CoreTracker.js +52 -0
  73. package/dist/components/CoreTracker/index.js +13 -0
  74. package/dist/components/CoreTranslate/CoreTranslate.js +62 -0
  75. package/dist/components/CoreTranslate/README.md +5 -0
  76. package/dist/components/CoreTranslate/index.js +13 -0
  77. package/dist/components/CoreTranslate/translations/en.json +451 -0
  78. package/dist/components/CoreTranslate/translations/es.json +433 -0
  79. package/dist/components/CoreTranslateWrapper/CoreTranslateWrapper.js +36 -0
  80. package/dist/components/CoreTranslateWrapper/index.js +13 -0
  81. package/dist/components/CoreWidget/CoreWidget.js +120 -0
  82. package/dist/components/CoreWidget/index.js +13 -0
  83. package/dist/components/CoreWrapper/CoreWrapper.js +51 -0
  84. package/dist/components/CoreWrapper/README.md +41 -0
  85. package/dist/components/CoreWrapper/index.js +13 -0
  86. package/dist/components/index.js +202 -0
  87. package/dist/constants/index.js +20 -0
  88. package/dist/constants/testOrganization.js +31 -0
  89. package/dist/constants/testToken.js +33 -0
  90. package/dist/context/Authentication/AuthenticationContext.js +10 -0
  91. package/dist/context/Authentication/AuthenticationProvider.js +225 -0
  92. package/dist/context/Authentication/README.md +47 -0
  93. package/dist/context/Authentication/index.js +27 -0
  94. package/dist/context/Authentication/withAuthentication.js +15 -0
  95. package/dist/context/Channels/ChannelsConsumer.js +42 -0
  96. package/dist/context/Channels/ChannelsContext.js +10 -0
  97. package/dist/context/Channels/ChannelsProvider.js +258 -0
  98. package/dist/context/Channels/DataChannel.js +68 -0
  99. package/dist/context/Channels/EntityChannel.js +69 -0
  100. package/dist/context/Channels/EveryoneChannel.js +55 -0
  101. package/dist/context/Channels/OrganizationChannel.js +69 -0
  102. package/dist/context/Channels/README.md +52 -0
  103. package/dist/context/Channels/UserChannel.js +60 -0
  104. package/dist/context/Channels/index.js +69 -0
  105. package/dist/context/Channels/withChannels.js +15 -0
  106. package/dist/context/Core/CoreContext.js +10 -0
  107. package/dist/context/Core/CoreProvider.js +107 -0
  108. package/dist/context/Core/README.md +43 -0
  109. package/dist/context/Core/index.js +27 -0
  110. package/dist/context/Core/withCore.js +15 -0
  111. package/dist/context/Organization/OrganizationContext.js +10 -0
  112. package/dist/context/Organization/OrganizationProvider.js +108 -0
  113. package/dist/context/Organization/README.md +82 -0
  114. package/dist/context/Organization/index.js +27 -0
  115. package/dist/context/Organization/withOrganization.js +15 -0
  116. package/dist/context/Plugin/PluginContext.js +10 -0
  117. package/dist/context/Plugin/PluginProvider.js +78 -0
  118. package/dist/context/Plugin/index.js +27 -0
  119. package/dist/context/Plugin/withPlugin.js +15 -0
  120. package/dist/context/index.js +60 -0
  121. package/dist/css/index.js +20 -0
  122. package/dist/css/junk.module.css +3 -0
  123. package/dist/css/scrollbar.css +35 -0
  124. package/dist/css/scrollbar.module.css +37 -0
  125. package/dist/functions/TagEvaluator.js +165 -0
  126. package/dist/functions/compareObjects.js +27 -0
  127. package/dist/functions/formatElapsedTime.js +18 -0
  128. package/dist/functions/formatNameFileSafe.js +16 -0
  129. package/dist/functions/getIconUrl.js +15 -0
  130. package/dist/functions/getParameterByName.js +34 -0
  131. package/dist/functions/getProperty.js +17 -0
  132. package/dist/functions/getUrl.js +15 -0
  133. package/dist/functions/index.js +62 -0
  134. package/dist/icons/CopyIcon.js +42 -0
  135. package/dist/icons/DeleteIcon.js +42 -0
  136. package/dist/icons/DuplicateIcon.js +42 -0
  137. package/dist/icons/EditIcon.js +42 -0
  138. package/dist/icons/FabAddIcon.js +78 -0
  139. package/dist/icons/PasteIcon.js +42 -0
  140. package/dist/icons/index.js +48 -0
  141. package/dist/index.js +71 -0
  142. package/package.json +2 -2
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _Edit = _interopRequireDefault(require("@material-ui/icons/Edit"));
9
+ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
10
+ var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
11
+ var _reactIntl = require("react-intl");
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ const EditIcon = _ref => {
15
+ let {
16
+ title,
17
+ onClick,
18
+ style,
19
+ intl
20
+ } = _ref;
21
+ return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
22
+ title: intl.formatMessage({
23
+ id: title
24
+ })
25
+ }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
26
+ onClick: e => {
27
+ e.stopPropagation();
28
+ onClick(e);
29
+ },
30
+ style: style
31
+ }, /*#__PURE__*/_react.default.createElement(_Edit.default, null)));
32
+ };
33
+ EditIcon.propTypes = {
34
+ title: _propTypes.default.string,
35
+ onClick: _propTypes.default.func.isRequired,
36
+ style: _propTypes.default.objectOf(_propTypes.default.string)
37
+ };
38
+ EditIcon.defaultProps = {
39
+ title: '__edit',
40
+ style: {}
41
+ };
42
+ var _default = exports.default = (0, _reactIntl.injectIntl)(EditIcon);
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
9
+ var _Add = _interopRequireDefault(require("@material-ui/icons/Add"));
10
+ var _Fab = _interopRequireDefault(require("@material-ui/core/Fab"));
11
+ var _reactIntl = require("react-intl");
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ 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; }
15
+ 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; }
16
+ 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; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
18
+ 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); }
19
+ const FabAddIcon = _ref => {
20
+ let {
21
+ title,
22
+ onClick,
23
+ style,
24
+ intl,
25
+ disabled,
26
+ baseStyle
27
+ } = _ref;
28
+ const getStyle = () => {
29
+ if (baseStyle === 'bottomLeft') {
30
+ return _objectSpread({
31
+ margin: 0,
32
+ top: 'auto',
33
+ right: 'auto',
34
+ bottom: 20,
35
+ left: 20,
36
+ position: 'fixed'
37
+ }, style);
38
+ }
39
+ if (baseStyle === 'none') {
40
+ return style;
41
+ }
42
+ return _objectSpread({
43
+ margin: 0,
44
+ top: 'auto',
45
+ right: 20,
46
+ bottom: 20,
47
+ left: 'auto',
48
+ position: 'fixed'
49
+ }, style);
50
+ };
51
+ return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
52
+ title: intl.formatMessage({
53
+ id: title
54
+ })
55
+ }, /*#__PURE__*/_react.default.createElement(_Fab.default, {
56
+ onClick: e => {
57
+ e.stopPropagation();
58
+ onClick(e);
59
+ },
60
+ style: getStyle(),
61
+ color: "primary",
62
+ disabled: disabled
63
+ }, /*#__PURE__*/_react.default.createElement(_Add.default, null)));
64
+ };
65
+ FabAddIcon.propTypes = {
66
+ title: _propTypes.default.string,
67
+ onClick: _propTypes.default.func.isRequired,
68
+ style: _propTypes.default.objectOf(_propTypes.default.string),
69
+ disabled: _propTypes.default.bool,
70
+ baseStyle: _propTypes.default.oneOf(['bottomLeft', 'bottomRight', 'none'])
71
+ };
72
+ FabAddIcon.defaultProps = {
73
+ title: '__add',
74
+ style: {},
75
+ disabled: false,
76
+ baseStyle: 'bottomRight'
77
+ };
78
+ var _default = exports.default = (0, _reactIntl.injectIntl)(FabAddIcon);
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _FormatPaint = _interopRequireDefault(require("@material-ui/icons/FormatPaint"));
9
+ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
10
+ var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
11
+ var _reactIntl = require("react-intl");
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ const PasteIcon = _ref => {
15
+ let {
16
+ title,
17
+ onClick,
18
+ style,
19
+ intl
20
+ } = _ref;
21
+ return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
22
+ title: intl.formatMessage({
23
+ id: title
24
+ })
25
+ }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
26
+ onClick: e => {
27
+ e.stopPropagation();
28
+ onClick(e);
29
+ },
30
+ style: style
31
+ }, /*#__PURE__*/_react.default.createElement(_FormatPaint.default, null)));
32
+ };
33
+ PasteIcon.propTypes = {
34
+ title: _propTypes.default.string,
35
+ onClick: _propTypes.default.func.isRequired,
36
+ style: _propTypes.default.objectOf(_propTypes.default.string)
37
+ };
38
+ PasteIcon.defaultProps = {
39
+ title: '__paste',
40
+ style: {}
41
+ };
42
+ var _default = exports.default = (0, _reactIntl.injectIntl)(PasteIcon);
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "CopyIcon", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _CopyIcon.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "DeleteIcon", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _DeleteIcon.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "DuplicateIcon", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _DuplicateIcon.default;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "EditIcon", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _EditIcon.default;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "FabAddIcon", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _FabAddIcon.default;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "PasteIcon", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _PasteIcon.default;
40
+ }
41
+ });
42
+ var _CopyIcon = _interopRequireDefault(require("./CopyIcon"));
43
+ var _DeleteIcon = _interopRequireDefault(require("./DeleteIcon"));
44
+ var _DuplicateIcon = _interopRequireDefault(require("./DuplicateIcon"));
45
+ var _EditIcon = _interopRequireDefault(require("./EditIcon"));
46
+ var _PasteIcon = _interopRequireDefault(require("./PasteIcon"));
47
+ var _FabAddIcon = _interopRequireDefault(require("./FabAddIcon"));
48
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
package/dist/index.js ADDED
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _components = require("./components");
7
+ Object.keys(_components).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _components[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _components[key];
14
+ }
15
+ });
16
+ });
17
+ var _constants = require("./constants");
18
+ Object.keys(_constants).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _constants[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _constants[key];
25
+ }
26
+ });
27
+ });
28
+ var _css = require("./css");
29
+ Object.keys(_css).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _css[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _css[key];
36
+ }
37
+ });
38
+ });
39
+ var _context = require("./context");
40
+ Object.keys(_context).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _context[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _context[key];
47
+ }
48
+ });
49
+ });
50
+ var _functions = require("./functions");
51
+ Object.keys(_functions).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _functions[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _functions[key];
58
+ }
59
+ });
60
+ });
61
+ var _icons = require("./icons");
62
+ Object.keys(_icons).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _icons[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _icons[key];
69
+ }
70
+ });
71
+ });
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": 68
5
+ "build": 71
6
6
  },
7
7
  "name": "versacall-core-library-react",
8
- "version": "2.0.70",
8
+ "version": "2.0.71",
9
9
  "description": "Versacall Core Library",
10
10
  "main": "dist/index.js",
11
11
  "module": "dist/index.js",