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