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.
- package/package.json +2 -2
- package/dist/components/DashboardsCell/DashboardsCell.js +0 -267
- package/dist/components/DashboardsCell/index.js +0 -15
- package/dist/components/DashboardsCellContent/DashboardsCellContent.js +0 -438
- package/dist/components/DashboardsCellContent/index.js +0 -15
- package/dist/components/DashboardsCellFindAndReplace/DashboardsCellFindAndReplace.js +0 -190
- package/dist/components/DashboardsCellFindAndReplace/index.js +0 -15
- package/dist/components/DashboardsCellGlobalActions/DashboardsCellGlobalActions.js +0 -218
- package/dist/components/DashboardsCellGlobalActions/index.js +0 -15
- package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditions.js +0 -1043
- package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditionsNestable.js +0 -927
- package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditionsOld.js +0 -816
- package/dist/components/DashboardsCellGlobalConditions/index.js +0 -15
- package/dist/components/DashboardsCellGlobalStyles/DashboardsCellGlobalStyles.js +0 -394
- package/dist/components/DashboardsCellGlobalStyles/index.js +0 -15
- package/dist/components/DashboardsCellMergeUnmerge/DashboardsCellMergeUnmerge.js +0 -152
- package/dist/components/DashboardsCellMergeUnmerge/index.js +0 -15
- package/dist/components/DashboardsCellPosition/DashboardsCellPosition.js +0 -85
- package/dist/components/DashboardsCellPosition/index.js +0 -15
- package/dist/components/DashboardsCellSize/DashboardsCellSize.js +0 -89
- package/dist/components/DashboardsCellSize/index.js +0 -15
- package/dist/components/DashboardsCellStyle/DashboardsCellStyle.js +0 -83
- package/dist/components/DashboardsCellStyle/index.js +0 -15
- package/dist/components/DashboardsCellStyleAlignItems/DashboardsCellStyleAlignItems.js +0 -152
- package/dist/components/DashboardsCellStyleAlignItems/index.js +0 -15
- package/dist/components/DashboardsCellStyleBackgroundColor/DashboardsCellStyleBackgroundColor.js +0 -198
- package/dist/components/DashboardsCellStyleBackgroundColor/index.js +0 -15
- package/dist/components/DashboardsCellStyleClear/DashboardsCellStyleClear.js +0 -50
- package/dist/components/DashboardsCellStyleClear/index.js +0 -15
- package/dist/components/DashboardsCellStyleColor/DashboardsCellStyleColor.js +0 -198
- package/dist/components/DashboardsCellStyleColor/index.js +0 -15
- package/dist/components/DashboardsCellStyleDisplay/DashboardsCellStyleDisplay.js +0 -65
- package/dist/components/DashboardsCellStyleDisplay/index.js +0 -15
- package/dist/components/DashboardsCellStyleFontFamily/DashboardsCellStyleFontFamily.js +0 -64
- package/dist/components/DashboardsCellStyleFontFamily/index.js +0 -15
- package/dist/components/DashboardsCellStyleFontSize/DashboardsCellStyleFontSize.js +0 -89
- package/dist/components/DashboardsCellStyleFontSize/index.js +0 -15
- package/dist/components/DashboardsCellStyleJustifyContent/DashboardsCellStyleJustifyContent.js +0 -152
- package/dist/components/DashboardsCellStyleJustifyContent/index.js +0 -15
- package/dist/components/DashboardsCellStyleObjectFit/DashboardsCellStyleObjectFit.js +0 -81
- package/dist/components/DashboardsCellStyleObjectFit/index.js +0 -15
- package/dist/components/DashboardsCellStylePadding/DashboardsCellStylePadding.js +0 -105
- package/dist/components/DashboardsCellStylePadding/index.js +0 -15
- package/dist/components/DashboardsCellStyleWeightStyleDecoration/DashboardsCellStyleWeightStyleDecoration.js +0 -154
- package/dist/components/DashboardsCellStyleWeightStyleDecoration/index.js +0 -15
- package/dist/components/DashboardsCopyAndPaste/DashboardsCopyAndPaste.js +0 -112
- package/dist/components/DashboardsCopyAndPaste/index.js +0 -15
- package/dist/components/DashboardsEditor/DashboardsEditor.js +0 -415
- package/dist/components/DashboardsEditor/index.js +0 -15
- package/dist/components/DashboardsGlobalStylesPicker/DashboardsGlobalStylesPicker.js +0 -90
- package/dist/components/DashboardsGlobalStylesPicker/index.js +0 -15
- package/dist/components/DashboardsGrid/DashboardsGrid.js +0 -139
- package/dist/components/DashboardsGrid/index.js +0 -15
- package/dist/components/DashboardsMainFreehand/DashboardsMainFreehand.js +0 -466
- package/dist/components/DashboardsMainFreehand/index.js +0 -15
- package/dist/components/DashboardsMainMessaging/DashboardsMainMessaging.js +0 -628
- package/dist/components/DashboardsMainMessaging/index.js +0 -15
- package/dist/components/DashboardsMainTable/DashboardsMainTable.js +0 -626
- package/dist/components/DashboardsMainTable/index.js +0 -15
- package/dist/components/DashboardsPreview/DashboardsPreview.js +0 -113
- package/dist/components/DashboardsPreview/index.js +0 -15
- package/dist/components/DashboardsRatio/DashboardsRatio.js +0 -288
- package/dist/components/DashboardsRatio/DashboardsRatioOld.js +0 -211
- package/dist/components/DashboardsRatio/index.js +0 -15
- package/dist/components/DashboardsStatusBar/DashboardsStatusBar.css +0 -1
- package/dist/components/DashboardsStatusBar/DashboardsStatusBar.js +0 -137
- package/dist/components/DashboardsStatusBar/index.js +0 -15
- package/dist/components/DashboardsUndoRedo/DashboardsUndoRedo.js +0 -144
- package/dist/components/DashboardsUndoRedo/index.js +0 -15
- package/dist/components/DashboardsViewer/DashboardsViewer.js +0 -74
- package/dist/components/DashboardsViewer/index.js +0 -15
- package/dist/components/DashboardsWidthHeight/DashboardsWidthHeight.js +0 -98
- package/dist/components/DashboardsWidthHeight/index.js +0 -15
- package/dist/components/WidgetParameters/WidgetParameters.js +0 -383
- package/dist/components/WidgetParameters/index.js +0 -15
- package/dist/components/index.js +0 -287
- package/dist/constants/defaultFreehandCell.js +0 -23
- package/dist/constants/defaultFreehandDashboard.js +0 -23
- package/dist/constants/defaultMessagingDashboard.js +0 -53
- package/dist/constants/defaultStyle.js +0 -11
- package/dist/constants/defaultTableCell.js +0 -27
- package/dist/constants/defaultTableDashboard.js +0 -25
- package/dist/constants/index.js +0 -55
- package/dist/functions/addTranslations.js +0 -28
- package/dist/functions/calculateDashboardVariables.js +0 -146
- package/dist/functions/convertColorObject.js +0 -10
- package/dist/functions/convertColorString.js +0 -26
- package/dist/functions/convertPercentToInt.js +0 -10
- package/dist/functions/convertSecondsToElapsedTime.js +0 -37
- package/dist/functions/generateFreehandCell.js +0 -24
- package/dist/functions/generateFreehandDashboard.js +0 -19
- package/dist/functions/generateMessagingDashboard.js +0 -14
- package/dist/functions/generateSelected.js +0 -18
- package/dist/functions/generateTableCell.js +0 -18
- package/dist/functions/generateTableDashboard.js +0 -37
- package/dist/functions/index.js +0 -119
- package/dist/functions/mergeSelected.js +0 -22
- package/dist/functions/sortCells.js +0 -26
- package/dist/images/BackgroundTransparency.png +0 -0
- package/dist/index.js +0 -44
- package/dist/translations/en.json +0 -11
- 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 }; }
|