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,415 +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 _ArrowDownward = _interopRequireDefault(require("@material-ui/icons/ArrowDownward"));
|
|
11
|
-
|
|
12
|
-
var _ArrowForward = _interopRequireDefault(require("@material-ui/icons/ArrowForward"));
|
|
13
|
-
|
|
14
|
-
var _ArrowUpward = _interopRequireDefault(require("@material-ui/icons/ArrowUpward"));
|
|
15
|
-
|
|
16
|
-
var _AddCircle = _interopRequireDefault(require("@material-ui/icons/AddCircle"));
|
|
17
|
-
|
|
18
|
-
var _ArrowBack = _interopRequireDefault(require("@material-ui/icons/ArrowBack"));
|
|
19
|
-
|
|
20
|
-
var _SelectAll = _interopRequireDefault(require("@material-ui/icons/SelectAll"));
|
|
21
|
-
|
|
22
|
-
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
23
|
-
|
|
24
|
-
var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
25
|
-
|
|
26
|
-
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
27
|
-
|
|
28
|
-
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
29
|
-
|
|
30
|
-
var _reactIntl = require("react-intl");
|
|
31
|
-
|
|
32
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
33
|
-
|
|
34
|
-
var _functions = require("../../functions");
|
|
35
|
-
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
-
|
|
38
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
var style = {
|
|
49
|
-
grid: {
|
|
50
|
-
display: 'grid',
|
|
51
|
-
boxSizing: 'border-box',
|
|
52
|
-
width: '100%',
|
|
53
|
-
height: '100%'
|
|
54
|
-
},
|
|
55
|
-
mainGrid: {
|
|
56
|
-
gridTemplateColumns: '62px auto 62px',
|
|
57
|
-
gridTemplateRows: '62px auto 62px'
|
|
58
|
-
},
|
|
59
|
-
buttonPadding: {
|
|
60
|
-
padding: 7
|
|
61
|
-
},
|
|
62
|
-
flex: {
|
|
63
|
-
display: 'flex',
|
|
64
|
-
overflow: 'hidden',
|
|
65
|
-
width: '100%',
|
|
66
|
-
height: '100%'
|
|
67
|
-
},
|
|
68
|
-
button: {
|
|
69
|
-
display: 'inline-block',
|
|
70
|
-
width: '100%',
|
|
71
|
-
height: '100%',
|
|
72
|
-
padding: 0,
|
|
73
|
-
minHeight: 0,
|
|
74
|
-
minWidth: 0
|
|
75
|
-
},
|
|
76
|
-
border: {
|
|
77
|
-
borderStyle: 'solid',
|
|
78
|
-
borderColor: '#e6e6e6',
|
|
79
|
-
borderWidth: 7
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
class DashboardsEditor extends _react.Component {
|
|
84
|
-
addRow() {
|
|
85
|
-
if (this.props.addRow) {
|
|
86
|
-
this.props.addRow();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
addColumn() {
|
|
91
|
-
if (this.props.addColumn) {
|
|
92
|
-
this.props.addColumn();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
moveCells(direction) {
|
|
97
|
-
if (this.props.moveCells) {
|
|
98
|
-
this.props.moveCells(direction);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
updateSelected(event, select) {
|
|
103
|
-
if (this.props.updateSelected) {
|
|
104
|
-
var selected = [];
|
|
105
|
-
|
|
106
|
-
for (var row = 1; row <= this.props.rowProperties.length; row++) {
|
|
107
|
-
if (select.what === 'column') {
|
|
108
|
-
selected.push({
|
|
109
|
-
row: row,
|
|
110
|
-
column: select.number,
|
|
111
|
-
index: (row - 1) * this.props.columnProperties.length + select.number - 1
|
|
112
|
-
});
|
|
113
|
-
} else {
|
|
114
|
-
for (var column = 1; column <= this.props.columnProperties.length; column++) {
|
|
115
|
-
selected.push({
|
|
116
|
-
row: select.what === 'all' ? row : select.number,
|
|
117
|
-
column: column,
|
|
118
|
-
index: ((select.what === 'all' ? row : select.number) - 1) * this.props.columnProperties.length + column - 1
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (select.what === 'row') {
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (event.ctrlKey) {
|
|
129
|
-
selected = (0, _functions.mergeSelected)(this.props.selected.cells, selected);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
this.props.updateSelected((0, _functions.generateSelected)(selected, this.props.rowProperties.length, this.props.columnProperties.length));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
updateSelectedFreehand(event) {
|
|
137
|
-
if (this.props.updateSelected) {
|
|
138
|
-
this.props.updateSelected(event.target.value === '-1' ? [] : ["".concat(event.target.value)]);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
render() {
|
|
143
|
-
var _this$props = this.props,
|
|
144
|
-
cells = _this$props.cells,
|
|
145
|
-
gap = _this$props.gap,
|
|
146
|
-
showEditor = _this$props.showEditor,
|
|
147
|
-
showFooter = _this$props.showFooter,
|
|
148
|
-
alignItems = _this$props.alignItems,
|
|
149
|
-
showSelected = _this$props.showSelected,
|
|
150
|
-
showSelectAll = _this$props.showSelectAll,
|
|
151
|
-
showSelectRows = _this$props.showSelectRows,
|
|
152
|
-
justifyContent = _this$props.justifyContent,
|
|
153
|
-
showSelectColumns = _this$props.showSelectColumns,
|
|
154
|
-
intl = _this$props.intl,
|
|
155
|
-
gridTemplateRows = _this$props.gridTemplateRows,
|
|
156
|
-
gridTemplateColumns = _this$props.gridTemplateColumns,
|
|
157
|
-
viewWidth = _this$props.viewWidth,
|
|
158
|
-
viewHeight = _this$props.viewHeight,
|
|
159
|
-
selected = _this$props.selected,
|
|
160
|
-
columnProperties = _this$props.columnProperties,
|
|
161
|
-
rowProperties = _this$props.rowProperties;
|
|
162
|
-
return showEditor ? /*#__PURE__*/_react.default.createElement("div", {
|
|
163
|
-
style: _objectSpread(_objectSpread({}, style.grid), style.mainGrid)
|
|
164
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
165
|
-
style: style.buttonPadding
|
|
166
|
-
}, showSelectAll && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
167
|
-
title: intl.formatMessage({
|
|
168
|
-
id: '__select_all'
|
|
169
|
-
})
|
|
170
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
171
|
-
color: "secondary",
|
|
172
|
-
onClick: event => this.updateSelected(event, {
|
|
173
|
-
what: 'all'
|
|
174
|
-
})
|
|
175
|
-
}, /*#__PURE__*/_react.default.createElement(_SelectAll.default, null)))), /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
-
style: _objectSpread(_objectSpread({}, style.flex), {}, {
|
|
177
|
-
justifyContent: justifyContent
|
|
178
|
-
})
|
|
179
|
-
}, showSelectColumns && /*#__PURE__*/_react.default.createElement("div", {
|
|
180
|
-
style: {
|
|
181
|
-
width: viewWidth,
|
|
182
|
-
marginLeft: justifyContent === 'flex-start' ? 7 : 0,
|
|
183
|
-
marginRight: justifyContent === 'flex-end' ? 7 : 0
|
|
184
|
-
}
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
186
|
-
style: _objectSpread(_objectSpread({}, style.grid), {}, {
|
|
187
|
-
gridTemplateColumns: gridTemplateColumns,
|
|
188
|
-
gap: gap
|
|
189
|
-
})
|
|
190
|
-
}, columnProperties.map((column, index) => {
|
|
191
|
-
var selectedColumn = rowProperties.length === selected.cells.reduce((acc, current) => acc + (current.column === index + 1 ? 1 : 0), 0);
|
|
192
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
193
|
-
key: String(index),
|
|
194
|
-
style: style.buttonPadding
|
|
195
|
-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
196
|
-
title: intl.formatMessage({
|
|
197
|
-
id: '__select_column'
|
|
198
|
-
})
|
|
199
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
200
|
-
size: "large",
|
|
201
|
-
color: "secondary",
|
|
202
|
-
style: style.button,
|
|
203
|
-
variant: selectedColumn ? 'contained' : 'outlined',
|
|
204
|
-
onClick: event => this.updateSelected(event, {
|
|
205
|
-
what: 'column',
|
|
206
|
-
number: index + 1
|
|
207
|
-
})
|
|
208
|
-
}, "".concat(intl.formatMessage({
|
|
209
|
-
id: '__column_c'
|
|
210
|
-
})).concat(index + 1))));
|
|
211
|
-
}))), showSelected && /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
-
style: {
|
|
213
|
-
width: '100%',
|
|
214
|
-
padding: 4,
|
|
215
|
-
paddingTop: 3
|
|
216
|
-
}
|
|
217
|
-
}, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
218
|
-
variant: "outlined",
|
|
219
|
-
SelectProps: {
|
|
220
|
-
native: true
|
|
221
|
-
},
|
|
222
|
-
onChange: event => this.updateSelectedFreehand(event),
|
|
223
|
-
value: selected.cells.length > 0 ? selected.cells[0] : '-1',
|
|
224
|
-
fullWidth: true,
|
|
225
|
-
select: true
|
|
226
|
-
}, /*#__PURE__*/_react.default.createElement("option", {
|
|
227
|
-
value: "-1"
|
|
228
|
-
}, intl.formatMessage({
|
|
229
|
-
id: '__select'
|
|
230
|
-
})), cells.map((cell, index) => /*#__PURE__*/_react.default.createElement("option", {
|
|
231
|
-
key: String(index),
|
|
232
|
-
value: "".concat(index)
|
|
233
|
-
}, "#".concat(index + 1, " - X:").concat(cell.x, ", Y:").concat(cell.y, ", Z:").concat(cell.z, ", Width:").concat(cell.width, ", Height:").concat(cell.height)))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
234
|
-
style: style.buttonPadding
|
|
235
|
-
}, this.props.addColumn && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
236
|
-
title: this.props.addColumnText ? this.props.addColumnText : intl.formatMessage({
|
|
237
|
-
id: '__add_column'
|
|
238
|
-
})
|
|
239
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
240
|
-
color: "secondary",
|
|
241
|
-
onClick: () => this.addColumn()
|
|
242
|
-
}, /*#__PURE__*/_react.default.createElement(_AddCircle.default, null)))), /*#__PURE__*/_react.default.createElement("div", {
|
|
243
|
-
style: _objectSpread(_objectSpread({}, style.flex), {}, {
|
|
244
|
-
alignItems: alignItems,
|
|
245
|
-
height: showFooter ? '95%' : '100%'
|
|
246
|
-
})
|
|
247
|
-
}, showSelectRows && /*#__PURE__*/_react.default.createElement("div", {
|
|
248
|
-
style: {
|
|
249
|
-
width: '100%',
|
|
250
|
-
height: viewHeight,
|
|
251
|
-
marginTop: alignItems === 'flex-start' ? 7 : 0,
|
|
252
|
-
marginBottom: alignItems === 'flex-end' ? 7 : 0
|
|
253
|
-
}
|
|
254
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
255
|
-
style: _objectSpread(_objectSpread({}, style.grid), {}, {
|
|
256
|
-
gridTemplateRows: gridTemplateRows,
|
|
257
|
-
gap: gap
|
|
258
|
-
})
|
|
259
|
-
}, rowProperties.map((row, index) => {
|
|
260
|
-
var selectedRow = columnProperties.length === selected.cells.reduce((acc, current) => acc + (current.row === index + 1 ? 1 : 0), 0);
|
|
261
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
262
|
-
key: String(index),
|
|
263
|
-
style: style.buttonPadding
|
|
264
|
-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
265
|
-
placement: "right",
|
|
266
|
-
title: intl.formatMessage({
|
|
267
|
-
id: '__select_row'
|
|
268
|
-
})
|
|
269
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
270
|
-
size: "large",
|
|
271
|
-
color: "secondary",
|
|
272
|
-
style: style.button,
|
|
273
|
-
variant: selectedRow ? 'contained' : 'outlined',
|
|
274
|
-
onClick: event => this.updateSelected(event, {
|
|
275
|
-
what: 'row',
|
|
276
|
-
number: index + 1
|
|
277
|
-
})
|
|
278
|
-
}, "".concat(intl.formatMessage({
|
|
279
|
-
id: '__row_r'
|
|
280
|
-
})).concat(index + 1))));
|
|
281
|
-
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
282
|
-
style: style.border
|
|
283
|
-
}, this.props.children), /*#__PURE__*/_react.default.createElement("div", {
|
|
284
|
-
style: _objectSpread(_objectSpread({}, style.buttonPadding), {}, {
|
|
285
|
-
display: 'flex',
|
|
286
|
-
alignItems: 'flex-end'
|
|
287
|
-
})
|
|
288
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
289
|
-
title: intl.formatMessage({
|
|
290
|
-
id: '__move_left'
|
|
291
|
-
})
|
|
292
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
293
|
-
style: {
|
|
294
|
-
display: 'inline'
|
|
295
|
-
}
|
|
296
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
297
|
-
color: "secondary",
|
|
298
|
-
onClick: event => this.moveCells('left'),
|
|
299
|
-
disabled: !(selected.column > 0 || selected.cells.length === 1)
|
|
300
|
-
}, /*#__PURE__*/_react.default.createElement(_ArrowBack.default, null)))), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
301
|
-
title: intl.formatMessage({
|
|
302
|
-
id: '__move_right'
|
|
303
|
-
})
|
|
304
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
305
|
-
style: {
|
|
306
|
-
display: 'inline'
|
|
307
|
-
}
|
|
308
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
309
|
-
color: "secondary",
|
|
310
|
-
onClick: event => this.moveCells('right'),
|
|
311
|
-
disabled: !(selected.column > 0 || selected.cells.length === 1)
|
|
312
|
-
}, /*#__PURE__*/_react.default.createElement(_ArrowForward.default, null)))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
313
|
-
style: style.buttonPadding
|
|
314
|
-
}, this.props.addRow && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
315
|
-
placement: "right",
|
|
316
|
-
title: intl.formatMessage({
|
|
317
|
-
id: '__add_row'
|
|
318
|
-
})
|
|
319
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
320
|
-
color: "secondary",
|
|
321
|
-
onClick: () => this.addRow()
|
|
322
|
-
}, /*#__PURE__*/_react.default.createElement(_AddCircle.default, null)))), /*#__PURE__*/_react.default.createElement("div", {
|
|
323
|
-
style: _objectSpread(_objectSpread({}, style.buttonPadding), {}, {
|
|
324
|
-
textAlign: 'right'
|
|
325
|
-
})
|
|
326
|
-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
327
|
-
title: intl.formatMessage({
|
|
328
|
-
id: '__move_up'
|
|
329
|
-
})
|
|
330
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
331
|
-
style: {
|
|
332
|
-
display: 'inline'
|
|
333
|
-
}
|
|
334
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
335
|
-
color: "secondary",
|
|
336
|
-
onClick: event => this.moveCells('up'),
|
|
337
|
-
disabled: !(selected.row > 0 || selected.cells.length === 1)
|
|
338
|
-
}, /*#__PURE__*/_react.default.createElement(_ArrowUpward.default, null)))), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
339
|
-
title: intl.formatMessage({
|
|
340
|
-
id: '__move_down'
|
|
341
|
-
})
|
|
342
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
343
|
-
style: {
|
|
344
|
-
display: 'inline'
|
|
345
|
-
}
|
|
346
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
347
|
-
color: "secondary",
|
|
348
|
-
onClick: event => this.moveCells('down'),
|
|
349
|
-
disabled: !(selected.row > 0 || selected.cells.length === 1)
|
|
350
|
-
}, /*#__PURE__*/_react.default.createElement(_ArrowDownward.default, null)))))) : /*#__PURE__*/_react.default.createElement("div", {
|
|
351
|
-
style: _objectSpread(_objectSpread({}, style.grid), {}, {
|
|
352
|
-
gridTemplateColumns: '1fr',
|
|
353
|
-
gridTemplateRows: '1fr'
|
|
354
|
-
})
|
|
355
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, this.props.children));
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
DashboardsEditor.propTypes = {
|
|
361
|
-
gap: _propTypes.default.string,
|
|
362
|
-
addRow: _propTypes.default.func,
|
|
363
|
-
addColumn: _propTypes.default.func,
|
|
364
|
-
addColumnText: _propTypes.default.string,
|
|
365
|
-
moveCells: _propTypes.default.func,
|
|
366
|
-
showEditor: _propTypes.default.bool,
|
|
367
|
-
showFooter: _propTypes.default.bool,
|
|
368
|
-
alignItems: _propTypes.default.string,
|
|
369
|
-
showSelected: _propTypes.default.bool,
|
|
370
|
-
showSelectAll: _propTypes.default.bool,
|
|
371
|
-
showSelectRows: _propTypes.default.bool,
|
|
372
|
-
updateSelected: _propTypes.default.func,
|
|
373
|
-
justifyContent: _propTypes.default.string,
|
|
374
|
-
showSelectColumns: _propTypes.default.bool,
|
|
375
|
-
intl: _propTypes.default.shape().isRequired,
|
|
376
|
-
gridTemplateRows: _propTypes.default.string,
|
|
377
|
-
children: _propTypes.default.node.isRequired,
|
|
378
|
-
gridTemplateColumns: _propTypes.default.string,
|
|
379
|
-
viewWidth: _propTypes.default.number.isRequired,
|
|
380
|
-
viewHeight: _propTypes.default.number.isRequired,
|
|
381
|
-
cells: _propTypes.default.arrayOf(_propTypes.default.shape()),
|
|
382
|
-
rowProperties: _propTypes.default.arrayOf(_propTypes.default.shape()),
|
|
383
|
-
columnProperties: _propTypes.default.arrayOf(_propTypes.default.shape()),
|
|
384
|
-
selected: _propTypes.default.shape()
|
|
385
|
-
};
|
|
386
|
-
DashboardsEditor.defaultProps = {
|
|
387
|
-
cells: [],
|
|
388
|
-
gap: 'unset',
|
|
389
|
-
addRow: null,
|
|
390
|
-
addColumn: null,
|
|
391
|
-
addColumnText: null,
|
|
392
|
-
moveCells: null,
|
|
393
|
-
rowProperties: [],
|
|
394
|
-
showEditor: false,
|
|
395
|
-
showFooter: false,
|
|
396
|
-
showSelected: false,
|
|
397
|
-
alignItems: 'center',
|
|
398
|
-
columnProperties: [],
|
|
399
|
-
showSelectAll: false,
|
|
400
|
-
updateSelected: null,
|
|
401
|
-
showSelectRows: false,
|
|
402
|
-
showSelectColumns: false,
|
|
403
|
-
justifyContent: 'center',
|
|
404
|
-
gridTemplateRows: 'auto',
|
|
405
|
-
gridTemplateColumns: 'auto',
|
|
406
|
-
selected: {
|
|
407
|
-
row: 0,
|
|
408
|
-
column: 0,
|
|
409
|
-
cells: []
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsEditor);
|
|
414
|
-
|
|
415
|
-
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 _DashboardsEditor.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsEditor = _interopRequireDefault(require("./DashboardsEditor"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,90 +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 _MenuItem = _interopRequireDefault(require("@material-ui/core/MenuItem"));
|
|
13
|
-
|
|
14
|
-
var _reactIntl = require("react-intl");
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
var _DashboardsPreview = _interopRequireDefault(require("../DashboardsPreview"));
|
|
19
|
-
|
|
20
|
-
var _DashboardsCell = _interopRequireDefault(require("../DashboardsCell"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
function DashboardsGlobalStylesPicker(props) {
|
|
31
|
-
var value = props.value,
|
|
32
|
-
label = props.label,
|
|
33
|
-
styles = props.styles,
|
|
34
|
-
intl = props.intl;
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
36
|
-
margin: "normal",
|
|
37
|
-
variant: "outlined",
|
|
38
|
-
value: value || 'none',
|
|
39
|
-
label: label || intl.formatMessage({
|
|
40
|
-
id: '__style'
|
|
41
|
-
}),
|
|
42
|
-
onChange: event => props.updateValue(event.target.value),
|
|
43
|
-
fullWidth: true,
|
|
44
|
-
select: true
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
46
|
-
value: "none"
|
|
47
|
-
}, intl.formatMessage({
|
|
48
|
-
id: '__none'
|
|
49
|
-
})), styles.map(style => /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
50
|
-
key: style.id,
|
|
51
|
-
value: style.id,
|
|
52
|
-
style: {
|
|
53
|
-
height: 70
|
|
54
|
-
}
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_DashboardsPreview.default, {
|
|
56
|
-
width: "100%",
|
|
57
|
-
height: "70px",
|
|
58
|
-
padding: "10px"
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_DashboardsCell.default, {
|
|
60
|
-
cell: {
|
|
61
|
-
content: {
|
|
62
|
-
type: 'text',
|
|
63
|
-
text: style.name
|
|
64
|
-
},
|
|
65
|
-
custom: {
|
|
66
|
-
viewWidth: 400,
|
|
67
|
-
viewHeight: 70,
|
|
68
|
-
style: _objectSpread(_objectSpread({}, style.options), {}, {
|
|
69
|
-
fontSize: '20%'
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
})))));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
DashboardsGlobalStylesPicker.propTypes = {
|
|
77
|
-
label: _propTypes.default.string,
|
|
78
|
-
intl: _propTypes.default.shape().isRequired,
|
|
79
|
-
value: _propTypes.default.string.isRequired,
|
|
80
|
-
updateValue: _propTypes.default.func.isRequired,
|
|
81
|
-
styles: _propTypes.default.arrayOf(_propTypes.default.shape())
|
|
82
|
-
};
|
|
83
|
-
DashboardsGlobalStylesPicker.defaultProps = {
|
|
84
|
-
label: '',
|
|
85
|
-
styles: []
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
var _default = (0, _reactIntl.injectIntl)(DashboardsGlobalStylesPicker);
|
|
89
|
-
|
|
90
|
-
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 _DashboardsGlobalStylesPicker.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _DashboardsGlobalStylesPicker = _interopRequireDefault(require("./DashboardsGlobalStylesPicker"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,139 +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 _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _functions = require("../../functions");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
class DashboardsGrid extends _react.Component {
|
|
27
|
-
updateSelected(event, select) {
|
|
28
|
-
if (this.props.updateSelected && this.props.showEditor) {
|
|
29
|
-
if (event.ctrlKey) {
|
|
30
|
-
this.props.updateSelected((0, _functions.generateSelected)((0, _functions.mergeSelected)(this.props.selected.cells, select), this.props.rowProperties.length, this.props.columnProperties.length));
|
|
31
|
-
} else {
|
|
32
|
-
this.props.updateSelected({
|
|
33
|
-
row: 0,
|
|
34
|
-
column: 0,
|
|
35
|
-
cells: select
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
render() {
|
|
42
|
-
var _this$props = this.props,
|
|
43
|
-
gap = _this$props.gap,
|
|
44
|
-
showEditor = _this$props.showEditor,
|
|
45
|
-
gridTemplateRows = _this$props.gridTemplateRows,
|
|
46
|
-
gridTemplateColumns = _this$props.gridTemplateColumns,
|
|
47
|
-
columnProperties = _this$props.columnProperties,
|
|
48
|
-
selected = _this$props.selected;
|
|
49
|
-
var style = {
|
|
50
|
-
grid: {
|
|
51
|
-
display: 'grid',
|
|
52
|
-
boxSizing: 'border-box',
|
|
53
|
-
width: '100%',
|
|
54
|
-
height: '100%',
|
|
55
|
-
gridTemplateColumns: gridTemplateColumns,
|
|
56
|
-
gridTemplateRows: gridTemplateRows,
|
|
57
|
-
gap: gap
|
|
58
|
-
},
|
|
59
|
-
root: {
|
|
60
|
-
display: 'block',
|
|
61
|
-
boxSizing: 'border-box',
|
|
62
|
-
width: '100%',
|
|
63
|
-
height: '100%',
|
|
64
|
-
overflow: 'hidden',
|
|
65
|
-
borderColor: '#005A96',
|
|
66
|
-
borderWidth: 6
|
|
67
|
-
},
|
|
68
|
-
blocker: {
|
|
69
|
-
position: 'relative',
|
|
70
|
-
top: 'calc(0px - 100%)',
|
|
71
|
-
height: '100%'
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
-
style: style.grid
|
|
76
|
-
}, this.props.children.map((child, index) => {
|
|
77
|
-
var key = child.key.split('-');
|
|
78
|
-
var row = Number(key[1]);
|
|
79
|
-
var column = Number(key[0]);
|
|
80
|
-
var isSelected = showEditor && selected.cells.some(select => select.row === row && select.column === column);
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
-
role: "button",
|
|
83
|
-
tabIndex: 0,
|
|
84
|
-
key: String(index),
|
|
85
|
-
style: _objectSpread(_objectSpread({}, style.root), {}, {
|
|
86
|
-
borderStyle: isSelected ? 'dashed' : 'none',
|
|
87
|
-
gridColumn: "span ".concat(child.props.cell.columnSpan),
|
|
88
|
-
gridRow: "span ".concat(child.props.cell.rowSpan)
|
|
89
|
-
}),
|
|
90
|
-
onClick: event => this.updateSelected(event, [{
|
|
91
|
-
row: row,
|
|
92
|
-
column: column,
|
|
93
|
-
index: (row - 1) * columnProperties.length + column - 1
|
|
94
|
-
}]),
|
|
95
|
-
onKeyPress: event => this.updateSelected(event, [{
|
|
96
|
-
row: row,
|
|
97
|
-
column: column,
|
|
98
|
-
index: (row - 1) * columnProperties.length + column - 1
|
|
99
|
-
}])
|
|
100
|
-
}, child, showEditor && /*#__PURE__*/_react.default.createElement("div", {
|
|
101
|
-
style: style.blocker
|
|
102
|
-
}));
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
DashboardsGrid.propTypes = {
|
|
109
|
-
gap: _propTypes.default.string,
|
|
110
|
-
showEditor: _propTypes.default.bool,
|
|
111
|
-
updateSelected: _propTypes.default.func,
|
|
112
|
-
gridTemplateRows: _propTypes.default.string,
|
|
113
|
-
children: _propTypes.default.node.isRequired,
|
|
114
|
-
gridTemplateColumns: _propTypes.default.string,
|
|
115
|
-
rowProperties: _propTypes.default.arrayOf(_propTypes.default.shape()).isRequired,
|
|
116
|
-
columnProperties: _propTypes.default.arrayOf(_propTypes.default.shape()).isRequired,
|
|
117
|
-
selected: _propTypes.default.shape({
|
|
118
|
-
row: _propTypes.default.number,
|
|
119
|
-
column: _propTypes.default.number,
|
|
120
|
-
cells: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
121
|
-
row: _propTypes.default.number,
|
|
122
|
-
column: _propTypes.default.number
|
|
123
|
-
}))
|
|
124
|
-
})
|
|
125
|
-
};
|
|
126
|
-
DashboardsGrid.defaultProps = {
|
|
127
|
-
gap: 'unset',
|
|
128
|
-
showEditor: false,
|
|
129
|
-
updateSelected: null,
|
|
130
|
-
gridTemplateRows: 'auto',
|
|
131
|
-
gridTemplateColumns: 'auto',
|
|
132
|
-
selected: {
|
|
133
|
-
row: 0,
|
|
134
|
-
column: 0,
|
|
135
|
-
cells: []
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
var _default = DashboardsGrid;
|
|
139
|
-
exports.default = _default;
|