versacall-dashboards-library-react 2.0.39 → 2.0.40

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 (102) hide show
  1. package/package.json +2 -2
  2. package/dist/components/DashboardsCell/DashboardsCell.js +0 -267
  3. package/dist/components/DashboardsCell/index.js +0 -15
  4. package/dist/components/DashboardsCellContent/DashboardsCellContent.js +0 -438
  5. package/dist/components/DashboardsCellContent/index.js +0 -15
  6. package/dist/components/DashboardsCellFindAndReplace/DashboardsCellFindAndReplace.js +0 -190
  7. package/dist/components/DashboardsCellFindAndReplace/index.js +0 -15
  8. package/dist/components/DashboardsCellGlobalActions/DashboardsCellGlobalActions.js +0 -218
  9. package/dist/components/DashboardsCellGlobalActions/index.js +0 -15
  10. package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditions.js +0 -1043
  11. package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditionsNestable.js +0 -927
  12. package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditionsOld.js +0 -816
  13. package/dist/components/DashboardsCellGlobalConditions/index.js +0 -15
  14. package/dist/components/DashboardsCellGlobalStyles/DashboardsCellGlobalStyles.js +0 -394
  15. package/dist/components/DashboardsCellGlobalStyles/index.js +0 -15
  16. package/dist/components/DashboardsCellMergeUnmerge/DashboardsCellMergeUnmerge.js +0 -152
  17. package/dist/components/DashboardsCellMergeUnmerge/index.js +0 -15
  18. package/dist/components/DashboardsCellPosition/DashboardsCellPosition.js +0 -85
  19. package/dist/components/DashboardsCellPosition/index.js +0 -15
  20. package/dist/components/DashboardsCellSize/DashboardsCellSize.js +0 -89
  21. package/dist/components/DashboardsCellSize/index.js +0 -15
  22. package/dist/components/DashboardsCellStyle/DashboardsCellStyle.js +0 -83
  23. package/dist/components/DashboardsCellStyle/index.js +0 -15
  24. package/dist/components/DashboardsCellStyleAlignItems/DashboardsCellStyleAlignItems.js +0 -152
  25. package/dist/components/DashboardsCellStyleAlignItems/index.js +0 -15
  26. package/dist/components/DashboardsCellStyleBackgroundColor/DashboardsCellStyleBackgroundColor.js +0 -198
  27. package/dist/components/DashboardsCellStyleBackgroundColor/index.js +0 -15
  28. package/dist/components/DashboardsCellStyleClear/DashboardsCellStyleClear.js +0 -50
  29. package/dist/components/DashboardsCellStyleClear/index.js +0 -15
  30. package/dist/components/DashboardsCellStyleColor/DashboardsCellStyleColor.js +0 -198
  31. package/dist/components/DashboardsCellStyleColor/index.js +0 -15
  32. package/dist/components/DashboardsCellStyleDisplay/DashboardsCellStyleDisplay.js +0 -65
  33. package/dist/components/DashboardsCellStyleDisplay/index.js +0 -15
  34. package/dist/components/DashboardsCellStyleFontFamily/DashboardsCellStyleFontFamily.js +0 -64
  35. package/dist/components/DashboardsCellStyleFontFamily/index.js +0 -15
  36. package/dist/components/DashboardsCellStyleFontSize/DashboardsCellStyleFontSize.js +0 -89
  37. package/dist/components/DashboardsCellStyleFontSize/index.js +0 -15
  38. package/dist/components/DashboardsCellStyleJustifyContent/DashboardsCellStyleJustifyContent.js +0 -152
  39. package/dist/components/DashboardsCellStyleJustifyContent/index.js +0 -15
  40. package/dist/components/DashboardsCellStyleObjectFit/DashboardsCellStyleObjectFit.js +0 -81
  41. package/dist/components/DashboardsCellStyleObjectFit/index.js +0 -15
  42. package/dist/components/DashboardsCellStylePadding/DashboardsCellStylePadding.js +0 -105
  43. package/dist/components/DashboardsCellStylePadding/index.js +0 -15
  44. package/dist/components/DashboardsCellStyleWeightStyleDecoration/DashboardsCellStyleWeightStyleDecoration.js +0 -154
  45. package/dist/components/DashboardsCellStyleWeightStyleDecoration/index.js +0 -15
  46. package/dist/components/DashboardsCopyAndPaste/DashboardsCopyAndPaste.js +0 -112
  47. package/dist/components/DashboardsCopyAndPaste/index.js +0 -15
  48. package/dist/components/DashboardsEditor/DashboardsEditor.js +0 -415
  49. package/dist/components/DashboardsEditor/index.js +0 -15
  50. package/dist/components/DashboardsGlobalStylesPicker/DashboardsGlobalStylesPicker.js +0 -90
  51. package/dist/components/DashboardsGlobalStylesPicker/index.js +0 -15
  52. package/dist/components/DashboardsGrid/DashboardsGrid.js +0 -139
  53. package/dist/components/DashboardsGrid/index.js +0 -15
  54. package/dist/components/DashboardsMainFreehand/DashboardsMainFreehand.js +0 -466
  55. package/dist/components/DashboardsMainFreehand/index.js +0 -15
  56. package/dist/components/DashboardsMainMessaging/DashboardsMainMessaging.js +0 -628
  57. package/dist/components/DashboardsMainMessaging/index.js +0 -15
  58. package/dist/components/DashboardsMainTable/DashboardsMainTable.js +0 -626
  59. package/dist/components/DashboardsMainTable/index.js +0 -15
  60. package/dist/components/DashboardsPreview/DashboardsPreview.js +0 -113
  61. package/dist/components/DashboardsPreview/index.js +0 -15
  62. package/dist/components/DashboardsRatio/DashboardsRatio.js +0 -288
  63. package/dist/components/DashboardsRatio/DashboardsRatioOld.js +0 -211
  64. package/dist/components/DashboardsRatio/index.js +0 -15
  65. package/dist/components/DashboardsStatusBar/DashboardsStatusBar.css +0 -1
  66. package/dist/components/DashboardsStatusBar/DashboardsStatusBar.js +0 -137
  67. package/dist/components/DashboardsStatusBar/index.js +0 -15
  68. package/dist/components/DashboardsUndoRedo/DashboardsUndoRedo.js +0 -144
  69. package/dist/components/DashboardsUndoRedo/index.js +0 -15
  70. package/dist/components/DashboardsViewer/DashboardsViewer.js +0 -74
  71. package/dist/components/DashboardsViewer/index.js +0 -15
  72. package/dist/components/DashboardsWidthHeight/DashboardsWidthHeight.js +0 -98
  73. package/dist/components/DashboardsWidthHeight/index.js +0 -15
  74. package/dist/components/WidgetParameters/WidgetParameters.js +0 -383
  75. package/dist/components/WidgetParameters/index.js +0 -15
  76. package/dist/components/index.js +0 -287
  77. package/dist/constants/defaultFreehandCell.js +0 -23
  78. package/dist/constants/defaultFreehandDashboard.js +0 -23
  79. package/dist/constants/defaultMessagingDashboard.js +0 -53
  80. package/dist/constants/defaultStyle.js +0 -11
  81. package/dist/constants/defaultTableCell.js +0 -27
  82. package/dist/constants/defaultTableDashboard.js +0 -25
  83. package/dist/constants/index.js +0 -55
  84. package/dist/functions/addTranslations.js +0 -28
  85. package/dist/functions/calculateDashboardVariables.js +0 -146
  86. package/dist/functions/convertColorObject.js +0 -10
  87. package/dist/functions/convertColorString.js +0 -26
  88. package/dist/functions/convertPercentToInt.js +0 -10
  89. package/dist/functions/convertSecondsToElapsedTime.js +0 -37
  90. package/dist/functions/generateFreehandCell.js +0 -24
  91. package/dist/functions/generateFreehandDashboard.js +0 -19
  92. package/dist/functions/generateMessagingDashboard.js +0 -14
  93. package/dist/functions/generateSelected.js +0 -18
  94. package/dist/functions/generateTableCell.js +0 -18
  95. package/dist/functions/generateTableDashboard.js +0 -37
  96. package/dist/functions/index.js +0 -119
  97. package/dist/functions/mergeSelected.js +0 -22
  98. package/dist/functions/sortCells.js +0 -26
  99. package/dist/images/BackgroundTransparency.png +0 -0
  100. package/dist/index.js +0 -44
  101. package/dist/translations/en.json +0 -11
  102. package/dist/translations/es.json +0 -3
@@ -1,218 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _versacallCoreLibraryReact = require("versacall-core-library-react");
11
-
12
- var _ArtTrack = _interopRequireDefault(require("@material-ui/icons/ArtTrack"));
13
-
14
- var _styles = require("@material-ui/core/styles");
15
-
16
- var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
17
-
18
- var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
19
-
20
- var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
21
-
22
- var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
23
-
24
- var _reactIntl = require("react-intl");
25
-
26
- var _propTypes = _interopRequireDefault(require("prop-types"));
27
-
28
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
-
30
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
31
-
32
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
33
-
34
- 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; }
35
-
36
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
-
38
- 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."); }
39
-
40
- 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); }
41
-
42
- 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; }
43
-
44
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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; }
45
-
46
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
-
48
- var muiStyles = () => ({
49
- dialog: {
50
- backgroundColor: '#eff4f8',
51
- overflow: 'hidden'
52
- }
53
- });
54
-
55
- function DashboardsCellGlobalActions(props) {
56
- var intl = props.intl,
57
- classes = props.classes,
58
- images = props.images,
59
- dashboards = props.dashboards,
60
- updateAction = props.updateAction,
61
- action = props.action;
62
-
63
- var _React$useState = _react.default.useState(false),
64
- _React$useState2 = _slicedToArray(_React$useState, 2),
65
- open = _React$useState2[0],
66
- setOpen = _React$useState2[1];
67
-
68
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Grid.default, {
69
- xs: 6,
70
- item: true
71
- }, /*#__PURE__*/_react.default.createElement(_Button.default, {
72
- variant: "contained",
73
- color: "secondary",
74
- size: "large",
75
- style: {
76
- width: '100%'
77
- },
78
- onClick: () => setOpen(true)
79
- }, /*#__PURE__*/_react.default.createElement(_ArtTrack.default, {
80
- style: {
81
- marginRight: 10
82
- }
83
- }), intl.formatMessage({
84
- id: '__actions'
85
- }))), open && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
86
- open: true,
87
- fullWidth: true,
88
- maxWidth: "md",
89
- classes: {
90
- paper: classes.dialog
91
- },
92
- onClose: () => setOpen(false)
93
- }, /*#__PURE__*/_react.default.createElement(_versacallCoreLibraryReact.CoreToolbar, {
94
- title: intl.formatMessage({
95
- id: '__actions_editor'
96
- }),
97
- handleClose: () => setOpen(false)
98
- }), /*#__PURE__*/_react.default.createElement(_Grid.default, {
99
- container: true,
100
- spacing: 2,
101
- style: {
102
- padding: 16
103
- }
104
- }, /*#__PURE__*/_react.default.createElement(_Grid.default, {
105
- xs: 2,
106
- item: true
107
- }, /*#__PURE__*/_react.default.createElement(_TextField.default, {
108
- variant: "outlined",
109
- value: action.type,
110
- SelectProps: {
111
- native: true
112
- },
113
- label: intl.formatMessage({
114
- id: '__type'
115
- }),
116
- onChange: event => updateAction(_objectSpread(_objectSpread({}, action), {}, {
117
- type: event.target.value
118
- })),
119
- fullWidth: true,
120
- select: true
121
- }, /*#__PURE__*/_react.default.createElement("option", {
122
- value: "url"
123
- }, intl.formatMessage({
124
- id: '__url'
125
- })), /*#__PURE__*/_react.default.createElement("option", {
126
- value: "image"
127
- }, intl.formatMessage({
128
- id: '__image'
129
- })), /*#__PURE__*/_react.default.createElement("option", {
130
- value: "dashboard"
131
- }, intl.formatMessage({
132
- id: '__dashboard'
133
- })))), /*#__PURE__*/_react.default.createElement(_Grid.default, {
134
- xs: 10,
135
- item: true
136
- }, action.type === 'url' && /*#__PURE__*/_react.default.createElement(_TextField.default, {
137
- id: "url",
138
- variant: "outlined",
139
- value: action.value,
140
- label: intl.formatMessage({
141
- id: '__url'
142
- }),
143
- InputLabelProps: {
144
- shrink: true
145
- },
146
- onChange: event => updateAction(_objectSpread(_objectSpread({}, action), {}, {
147
- value: event.target.value
148
- })),
149
- fullWidth: true
150
- }), action.type === 'image' && /*#__PURE__*/_react.default.createElement(_TextField.default, {
151
- variant: "outlined",
152
- SelectProps: {
153
- native: true
154
- },
155
- value: action.value ? action.value : 'default',
156
- label: intl.formatMessage({
157
- id: '__image'
158
- }),
159
- InputLabelProps: {
160
- shrink: true
161
- },
162
- onChange: event => updateAction(_objectSpread(_objectSpread({}, action), {}, {
163
- value: event.target.value
164
- })),
165
- fullWidth: true,
166
- select: true
167
- }, /*#__PURE__*/_react.default.createElement("option", {
168
- value: "default",
169
- disabled: true
170
- }, intl.formatMessage({
171
- id: '__select'
172
- })), images.map(image => /*#__PURE__*/_react.default.createElement("option", {
173
- key: image.id,
174
- value: image.id
175
- }, image.fileName))), action.type === 'dashboard' && /*#__PURE__*/_react.default.createElement(_TextField.default, {
176
- variant: "outlined",
177
- SelectProps: {
178
- native: true
179
- },
180
- value: action.value ? action.value : 'default',
181
- label: intl.formatMessage({
182
- id: '__dashboard'
183
- }),
184
- InputLabelProps: {
185
- shrink: true
186
- },
187
- onChange: event => updateAction(_objectSpread(_objectSpread({}, action), {}, {
188
- value: event.target.value
189
- })),
190
- fullWidth: true,
191
- select: true
192
- }, /*#__PURE__*/_react.default.createElement("option", {
193
- value: "default",
194
- disabled: true
195
- }, intl.formatMessage({
196
- id: '__select'
197
- })), dashboards.map(item => /*#__PURE__*/_react.default.createElement("option", {
198
- key: item.id,
199
- value: item.id
200
- }, item.name)))))));
201
- }
202
-
203
- DashboardsCellGlobalActions.propTypes = {
204
- intl: _propTypes.default.shape().isRequired,
205
- action: _propTypes.default.shape().isRequired,
206
- classes: _propTypes.default.shape().isRequired,
207
- updateAction: _propTypes.default.func.isRequired,
208
- images: _propTypes.default.arrayOf(_propTypes.default.shape()),
209
- dashboards: _propTypes.default.arrayOf(_propTypes.default.shape())
210
- };
211
- DashboardsCellGlobalActions.defaultProps = {
212
- images: [],
213
- dashboards: []
214
- };
215
-
216
- var _default = (0, _reactIntl.injectIntl)((0, _styles.withStyles)(muiStyles)(DashboardsCellGlobalActions));
217
-
218
- exports.default = _default;
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function get() {
9
- return _DashboardsCellGlobalActions.default;
10
- }
11
- });
12
-
13
- var _DashboardsCellGlobalActions = _interopRequireDefault(require("./DashboardsCellGlobalActions"));
14
-
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }