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,198 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _FormatColorText = _interopRequireDefault(require("@material-ui/icons/FormatColorText"));
|
|
11
|
-
|
|
12
|
-
var _reactIntl = require("react-intl");
|
|
13
|
-
|
|
14
|
-
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
15
|
-
|
|
16
|
-
var _Clear = _interopRequireDefault(require("@material-ui/icons/Clear"));
|
|
17
|
-
|
|
18
|
-
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
19
|
-
|
|
20
|
-
var _reactColor = require("react-color");
|
|
21
|
-
|
|
22
|
-
var _Menu = _interopRequireDefault(require("@material-ui/core/Menu"));
|
|
23
|
-
|
|
24
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
25
|
-
|
|
26
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
|
-
|
|
28
|
-
var _functions = require("../../functions");
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
33
|
-
|
|
34
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
43
|
-
|
|
44
|
-
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."); }
|
|
45
|
-
|
|
46
|
-
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); }
|
|
47
|
-
|
|
48
|
-
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; }
|
|
49
|
-
|
|
50
|
-
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; }
|
|
51
|
-
|
|
52
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
|
-
|
|
54
|
-
var style = {
|
|
55
|
-
color: {
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
borderStyle: 'solid',
|
|
58
|
-
borderWidth: 1,
|
|
59
|
-
width: 26,
|
|
60
|
-
height: 4,
|
|
61
|
-
bottom: 10
|
|
62
|
-
},
|
|
63
|
-
styleBox: {
|
|
64
|
-
position: 'relative',
|
|
65
|
-
borderStyle: 'solid',
|
|
66
|
-
borderWidth: 1,
|
|
67
|
-
borderColor: 'rgba(0, 0, 0, 0.23',
|
|
68
|
-
borderRadius: 4,
|
|
69
|
-
padding: 8
|
|
70
|
-
},
|
|
71
|
-
label: {
|
|
72
|
-
fontSize: '1rem',
|
|
73
|
-
padding: 0,
|
|
74
|
-
paddingLeft: 6,
|
|
75
|
-
paddingRight: 4,
|
|
76
|
-
lineHeight: 1,
|
|
77
|
-
zIndex: 1,
|
|
78
|
-
position: 'absolute',
|
|
79
|
-
top: 0,
|
|
80
|
-
left: 0,
|
|
81
|
-
transformOrigin: 'top left',
|
|
82
|
-
transform: 'translate(8px, -6px) scale(0.75)',
|
|
83
|
-
backgroundColor: 'white'
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
function DashboardsCellStyleColor(props) {
|
|
88
|
-
var value = props.value,
|
|
89
|
-
intl = props.intl;
|
|
90
|
-
|
|
91
|
-
var _useState = (0, _react.useState)({
|
|
92
|
-
anchor: null,
|
|
93
|
-
type: ''
|
|
94
|
-
}),
|
|
95
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
96
|
-
menu = _useState2[0],
|
|
97
|
-
setMenu = _useState2[1];
|
|
98
|
-
|
|
99
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
100
|
-
xs: 6,
|
|
101
|
-
item: true
|
|
102
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
-
style: _objectSpread(_objectSpread({}, style.styleBox), {}, {
|
|
104
|
-
color: value.color || value.colorFade ? '#005A96' : 'rgba(0, 0, 0, 0.54)',
|
|
105
|
-
borderColor: value.color || value.colorFade ? '#005A96' : 'rgba(0, 0, 0, 0.23)'
|
|
106
|
-
})
|
|
107
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
108
|
-
style: style.label
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
110
|
-
id: "__font_color"
|
|
111
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
112
|
-
style: {
|
|
113
|
-
display: 'inline-block',
|
|
114
|
-
textAlign: 'center',
|
|
115
|
-
width: 'calc(100% - 48px)'
|
|
116
|
-
}
|
|
117
|
-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
118
|
-
title: intl.formatMessage({
|
|
119
|
-
id: '__font_color'
|
|
120
|
-
})
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
-
style: {
|
|
123
|
-
display: 'inline'
|
|
124
|
-
}
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
126
|
-
color: value.color ? 'primary' : 'default',
|
|
127
|
-
onClick: e => setMenu({
|
|
128
|
-
anchor: e.currentTarget,
|
|
129
|
-
type: 'color'
|
|
130
|
-
})
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement(_FormatColorText.default, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
-
style: _objectSpread(_objectSpread({}, style.color), {}, {
|
|
133
|
-
backgroundColor: value.color ? value.color : 'white'
|
|
134
|
-
})
|
|
135
|
-
})))), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
136
|
-
title: intl.formatMessage({
|
|
137
|
-
id: '__font_color_fade'
|
|
138
|
-
})
|
|
139
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
140
|
-
style: {
|
|
141
|
-
display: 'inline'
|
|
142
|
-
}
|
|
143
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
144
|
-
color: value.colorFade ? 'primary' : 'default',
|
|
145
|
-
onClick: e => setMenu({
|
|
146
|
-
anchor: e.currentTarget,
|
|
147
|
-
type: 'colorFade'
|
|
148
|
-
})
|
|
149
|
-
}, /*#__PURE__*/_react.default.createElement(_FormatColorText.default, {
|
|
150
|
-
style: {
|
|
151
|
-
backgroundColor: value.colorFade ? '#005A96' : 'rgba(0, 0, 0, 0.54)',
|
|
152
|
-
color: 'white'
|
|
153
|
-
}
|
|
154
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
155
|
-
style: _objectSpread(_objectSpread({}, style.color), {}, {
|
|
156
|
-
backgroundColor: value.colorFade ? value.colorFade : 'white'
|
|
157
|
-
})
|
|
158
|
-
})))), menu.anchor && /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
159
|
-
anchorEl: menu.anchor,
|
|
160
|
-
onClose: () => setMenu({
|
|
161
|
-
anchor: null,
|
|
162
|
-
type: ''
|
|
163
|
-
}),
|
|
164
|
-
open: true
|
|
165
|
-
}, /*#__PURE__*/_react.default.createElement(_reactColor.SketchPicker, {
|
|
166
|
-
color: (0, _functions.convertColorString)(value[menu.type]),
|
|
167
|
-
onChangeComplete: color => props.updateValue({
|
|
168
|
-
style: {
|
|
169
|
-
[menu.type]: (0, _functions.convertColorObject)(color)
|
|
170
|
-
}
|
|
171
|
-
})
|
|
172
|
-
}))), (value.color || value.colorFade) && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
173
|
-
title: intl.formatMessage({
|
|
174
|
-
id: '__clear'
|
|
175
|
-
})
|
|
176
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
177
|
-
style: {
|
|
178
|
-
display: 'inline'
|
|
179
|
-
}
|
|
180
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
181
|
-
onClick: () => props.updateValue({
|
|
182
|
-
style: {
|
|
183
|
-
color: 'delete',
|
|
184
|
-
colorFade: 'delete'
|
|
185
|
-
}
|
|
186
|
-
})
|
|
187
|
-
}, /*#__PURE__*/_react.default.createElement(_Clear.default, null))))));
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
DashboardsCellStyleColor.propTypes = {
|
|
191
|
-
intl: _propTypes.default.shape().isRequired,
|
|
192
|
-
value: _propTypes.default.shape().isRequired,
|
|
193
|
-
updateValue: _propTypes.default.func.isRequired
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsCellStyleColor);
|
|
197
|
-
|
|
198
|
-
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 _DashboardsCellStyleColor.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsCellStyleColor = _interopRequireDefault(require("./DashboardsCellStyleColor"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,65 +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 _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
11
|
-
|
|
12
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
13
|
-
|
|
14
|
-
var _reactIntl = require("react-intl");
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
function DashboardsCellStyleDisplay(props) {
|
|
21
|
-
var intl = props.intl,
|
|
22
|
-
value = props.value;
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
24
|
-
xs: 6,
|
|
25
|
-
item: true
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
27
|
-
variant: "outlined",
|
|
28
|
-
SelectProps: {
|
|
29
|
-
native: true
|
|
30
|
-
},
|
|
31
|
-
value: value.display ? value.display : 'delete',
|
|
32
|
-
label: intl.formatMessage({
|
|
33
|
-
id: '__visibility'
|
|
34
|
-
}),
|
|
35
|
-
onChange: event => props.updateValue({
|
|
36
|
-
style: {
|
|
37
|
-
display: event.target.value
|
|
38
|
-
}
|
|
39
|
-
}),
|
|
40
|
-
fullWidth: true,
|
|
41
|
-
select: true
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement("option", {
|
|
43
|
-
value: "delete"
|
|
44
|
-
}, intl.formatMessage({
|
|
45
|
-
id: '__not_set'
|
|
46
|
-
})), /*#__PURE__*/_react.default.createElement("option", {
|
|
47
|
-
value: "inherit"
|
|
48
|
-
}, intl.formatMessage({
|
|
49
|
-
id: '__show'
|
|
50
|
-
})), /*#__PURE__*/_react.default.createElement("option", {
|
|
51
|
-
value: "none"
|
|
52
|
-
}, intl.formatMessage({
|
|
53
|
-
id: '__hide'
|
|
54
|
-
}))));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
DashboardsCellStyleDisplay.propTypes = {
|
|
58
|
-
intl: _propTypes.default.shape().isRequired,
|
|
59
|
-
value: _propTypes.default.shape().isRequired,
|
|
60
|
-
updateValue: _propTypes.default.func.isRequired
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsCellStyleDisplay);
|
|
64
|
-
|
|
65
|
-
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 _DashboardsCellStyleDisplay.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsCellStyleDisplay = _interopRequireDefault(require("./DashboardsCellStyleDisplay"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,64 +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 _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
11
|
-
|
|
12
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
13
|
-
|
|
14
|
-
var _reactIntl = require("react-intl");
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
function DashboardsCellStyleFontFamily(props) {
|
|
21
|
-
var intl = props.intl,
|
|
22
|
-
value = props.value;
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
24
|
-
xs: 6,
|
|
25
|
-
item: true
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
27
|
-
variant: "outlined",
|
|
28
|
-
SelectProps: {
|
|
29
|
-
native: true,
|
|
30
|
-
displayEmpty: true
|
|
31
|
-
},
|
|
32
|
-
label: intl.formatMessage({
|
|
33
|
-
id: '__font_family'
|
|
34
|
-
}),
|
|
35
|
-
value: value.fontFamily ? value.fontFamily : 'delete',
|
|
36
|
-
onChange: event => props.updateValue({
|
|
37
|
-
style: {
|
|
38
|
-
fontFamily: event.target.value
|
|
39
|
-
}
|
|
40
|
-
}),
|
|
41
|
-
fullWidth: true,
|
|
42
|
-
select: true
|
|
43
|
-
}, /*#__PURE__*/_react.default.createElement("option", {
|
|
44
|
-
value: "delete"
|
|
45
|
-
}, intl.formatMessage({
|
|
46
|
-
id: '__not_set'
|
|
47
|
-
})), /*#__PURE__*/_react.default.createElement("option", {
|
|
48
|
-
value: "Arial"
|
|
49
|
-
}, "Arial"), /*#__PURE__*/_react.default.createElement("option", {
|
|
50
|
-
value: "Courier"
|
|
51
|
-
}, "Courier"), /*#__PURE__*/_react.default.createElement("option", {
|
|
52
|
-
value: "Times"
|
|
53
|
-
}, "Times")));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
DashboardsCellStyleFontFamily.propTypes = {
|
|
57
|
-
intl: _propTypes.default.shape().isRequired,
|
|
58
|
-
value: _propTypes.default.shape().isRequired,
|
|
59
|
-
updateValue: _propTypes.default.func.isRequired
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsCellStyleFontFamily);
|
|
63
|
-
|
|
64
|
-
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 _DashboardsCellStyleFontFamily.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsCellStyleFontFamily = _interopRequireDefault(require("./DashboardsCellStyleFontFamily"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,89 +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 _InputAdornment = _interopRequireDefault(require("@material-ui/core/InputAdornment"));
|
|
11
|
-
|
|
12
|
-
var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
13
|
-
|
|
14
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
15
|
-
|
|
16
|
-
var _reactIntl = require("react-intl");
|
|
17
|
-
|
|
18
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
|
-
/* eslint-disable react/jsx-no-duplicate-props */
|
|
23
|
-
function DashboardsCellStyleFontSize(props) {
|
|
24
|
-
var intl = props.intl,
|
|
25
|
-
value = props.value;
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
27
|
-
xs: 6,
|
|
28
|
-
item: true
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
30
|
-
type: "number",
|
|
31
|
-
variant: "outlined",
|
|
32
|
-
style: {
|
|
33
|
-
width: '100%'
|
|
34
|
-
},
|
|
35
|
-
value: value.fontSize ? value.fontSize.split('%').join('') : '',
|
|
36
|
-
inputProps: {
|
|
37
|
-
max: 100,
|
|
38
|
-
min: 0,
|
|
39
|
-
step: 1
|
|
40
|
-
},
|
|
41
|
-
label: intl.formatMessage({
|
|
42
|
-
id: '__font_size'
|
|
43
|
-
}),
|
|
44
|
-
placeholder: intl.formatMessage({
|
|
45
|
-
id: '__not_set'
|
|
46
|
-
}),
|
|
47
|
-
InputLabelProps: {
|
|
48
|
-
shrink: true
|
|
49
|
-
},
|
|
50
|
-
InputProps: {
|
|
51
|
-
endAdornment: /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
|
|
52
|
-
position: "end"
|
|
53
|
-
}, "%")
|
|
54
|
-
},
|
|
55
|
-
onChange: event => {
|
|
56
|
-
if (event.target.value === '') {
|
|
57
|
-
props.updateValue({
|
|
58
|
-
style: {
|
|
59
|
-
fontSize: null
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
var fontSizeValue = event.target.value;
|
|
64
|
-
|
|
65
|
-
if (Number(event.target.value) > 100) {
|
|
66
|
-
fontSizeValue = '100';
|
|
67
|
-
} else if (Number(event.target.value) < 0 || fontSizeValue === '') {
|
|
68
|
-
fontSizeValue = '0';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
props.updateValue({
|
|
72
|
-
style: {
|
|
73
|
-
fontSize: "".concat(fontSizeValue, "%")
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
DashboardsCellStyleFontSize.propTypes = {
|
|
82
|
-
intl: _propTypes.default.shape().isRequired,
|
|
83
|
-
value: _propTypes.default.shape().isRequired,
|
|
84
|
-
updateValue: _propTypes.default.func.isRequired
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsCellStyleFontSize);
|
|
88
|
-
|
|
89
|
-
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 _DashboardsCellStyleFontSize.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsCellStyleFontSize = _interopRequireDefault(require("./DashboardsCellStyleFontSize"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/dist/components/DashboardsCellStyleJustifyContent/DashboardsCellStyleJustifyContent.js
DELETED
|
@@ -1,152 +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 _FormatAlignCenter = _interopRequireDefault(require("@material-ui/icons/FormatAlignCenter"));
|
|
11
|
-
|
|
12
|
-
var _FormatAlignRight = _interopRequireDefault(require("@material-ui/icons/FormatAlignRight"));
|
|
13
|
-
|
|
14
|
-
var _FormatAlignLeft = _interopRequireDefault(require("@material-ui/icons/FormatAlignLeft"));
|
|
15
|
-
|
|
16
|
-
var _reactIntl = require("react-intl");
|
|
17
|
-
|
|
18
|
-
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
19
|
-
|
|
20
|
-
var _Clear = _interopRequireDefault(require("@material-ui/icons/Clear"));
|
|
21
|
-
|
|
22
|
-
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
23
|
-
|
|
24
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
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
|
-
var style = {
|
|
37
|
-
styleBox: {
|
|
38
|
-
position: 'relative',
|
|
39
|
-
borderStyle: 'solid',
|
|
40
|
-
borderWidth: 1,
|
|
41
|
-
borderColor: 'rgba(0, 0, 0, 0.23',
|
|
42
|
-
borderRadius: 4,
|
|
43
|
-
padding: 8
|
|
44
|
-
},
|
|
45
|
-
label: {
|
|
46
|
-
fontSize: '1rem',
|
|
47
|
-
padding: 0,
|
|
48
|
-
paddingLeft: 6,
|
|
49
|
-
paddingRight: 4,
|
|
50
|
-
lineHeight: 1,
|
|
51
|
-
zIndex: 1,
|
|
52
|
-
position: 'absolute',
|
|
53
|
-
top: 0,
|
|
54
|
-
left: 0,
|
|
55
|
-
transformOrigin: 'top left',
|
|
56
|
-
transform: 'translate(8px, -6px) scale(0.75)',
|
|
57
|
-
backgroundColor: 'white'
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
function DashboardsCellStyleJustifyContent(props) {
|
|
62
|
-
var value = props.value,
|
|
63
|
-
intl = props.intl;
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
65
|
-
xs: 6,
|
|
66
|
-
item: true
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
68
|
-
style: _objectSpread(_objectSpread({}, style.styleBox), {}, {
|
|
69
|
-
borderColor: value.justifyContent ? '#005A96' : 'rgba(0, 0, 0, 0.23)',
|
|
70
|
-
color: value.justifyContent ? '#005A96' : 'rgba(0, 0, 0, 0.54)'
|
|
71
|
-
})
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
73
|
-
style: style.label
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
75
|
-
id: "__horizontal_align"
|
|
76
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
-
style: {
|
|
78
|
-
display: 'inline-block',
|
|
79
|
-
textAlign: 'center',
|
|
80
|
-
width: 'calc(100% - 48px)'
|
|
81
|
-
}
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
83
|
-
title: intl.formatMessage({
|
|
84
|
-
id: '__left'
|
|
85
|
-
})
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
style: {
|
|
88
|
-
display: 'inline'
|
|
89
|
-
}
|
|
90
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
91
|
-
color: value.justifyContent === 'flex-start' ? 'primary' : 'default',
|
|
92
|
-
onClick: () => props.updateValue({
|
|
93
|
-
style: {
|
|
94
|
-
justifyContent: 'flex-start'
|
|
95
|
-
}
|
|
96
|
-
})
|
|
97
|
-
}, /*#__PURE__*/_react.default.createElement(_FormatAlignLeft.default, null)))), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
98
|
-
title: intl.formatMessage({
|
|
99
|
-
id: '__center'
|
|
100
|
-
})
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
-
style: {
|
|
103
|
-
display: 'inline'
|
|
104
|
-
}
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
106
|
-
color: value.justifyContent === 'center' ? 'primary' : 'default',
|
|
107
|
-
onClick: () => props.updateValue({
|
|
108
|
-
style: {
|
|
109
|
-
justifyContent: 'center'
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(_FormatAlignCenter.default, null)))), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
113
|
-
title: intl.formatMessage({
|
|
114
|
-
id: '__right'
|
|
115
|
-
})
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
style: {
|
|
118
|
-
display: 'inline'
|
|
119
|
-
}
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
121
|
-
color: value.justifyContent === 'flex-end' ? 'primary' : 'default',
|
|
122
|
-
onClick: () => props.updateValue({
|
|
123
|
-
style: {
|
|
124
|
-
justifyContent: 'flex-end'
|
|
125
|
-
}
|
|
126
|
-
})
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement(_FormatAlignRight.default, null))))), value.justifyContent && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
128
|
-
title: intl.formatMessage({
|
|
129
|
-
id: '__clear'
|
|
130
|
-
})
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
-
style: {
|
|
133
|
-
display: 'inline'
|
|
134
|
-
}
|
|
135
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
136
|
-
onClick: () => props.updateValue({
|
|
137
|
-
style: {
|
|
138
|
-
justifyContent: 'delete'
|
|
139
|
-
}
|
|
140
|
-
})
|
|
141
|
-
}, /*#__PURE__*/_react.default.createElement(_Clear.default, null))))));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
DashboardsCellStyleJustifyContent.propTypes = {
|
|
145
|
-
intl: _propTypes.default.shape().isRequired,
|
|
146
|
-
value: _propTypes.default.shape().isRequired,
|
|
147
|
-
updateValue: _propTypes.default.func.isRequired
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsCellStyleJustifyContent);
|
|
151
|
-
|
|
152
|
-
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 _DashboardsCellStyleJustifyContent.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsCellStyleJustifyContent = _interopRequireDefault(require("./DashboardsCellStyleJustifyContent"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|