versacall-core-library-react 2.0.38 → 2.0.44
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/CoreAlert/CoreAlert.js +26 -20
- package/dist/components/CoreAppBar/CoreAppBar.js +47 -41
- package/dist/components/CoreAppBar/CoreAppBarDrawer.js +35 -29
- package/dist/components/CoreAppSelector/AppLink.js +6 -6
- package/dist/components/CoreAppSelector/CoreAppSelector.js +24 -18
- package/dist/components/CoreDialogueToolBar/CoreDialogueToolBar.js +11 -11
- package/dist/components/CoreDrawer/CoreDrawer.js +35 -29
- package/dist/components/CoreDropDownTextfield/CoreDropDownTextfield.js +24 -18
- package/dist/components/CoreElapsedTime/CoreElapsedTime.js +19 -13
- package/dist/components/CoreFrame/CoreFrame.js +7 -5
- package/dist/components/CorePlugin/CorePlugin.js +23 -15
- package/dist/components/CorePlugin/OldCorePlugin.js +20 -14
- package/dist/components/CoreSaveChangesDialog/CoreSaveChangesDialog.js +84 -0
- package/dist/components/CoreSaveChangesDialog/index.js +15 -0
- package/dist/components/CoreShiftTagFilter/CoreShiftTagFilter.js +183 -42
- package/dist/components/CoreShiftTagFilter/OldCoreShiftTagFilter.js +48 -40
- package/dist/components/CoreSideBar/CoreSideBar.js +56 -50
- package/dist/components/CoreSideBar/CoreSideBarDrawer.js +36 -30
- package/dist/components/CoreSnackBar/CoreSnackBar.js +25 -19
- package/dist/components/CoreTable/CoreTable.js +40 -32
- package/dist/components/CoreTable/CoreTableChips.js +3 -3
- package/dist/components/CoreTable/CoreTableHead.js +32 -26
- package/dist/components/CoreTable/CoreTableToolbar.js +13 -13
- package/dist/components/CoreTagFilter/CoreTagFilter.js +64 -50
- package/dist/components/CoreTagFilter/OldCoreTagFilter.js +66 -54
- package/dist/components/CoreTagFilter/OldTagChip.js +2 -2
- package/dist/components/CoreTagFilter/OldTagFilterSelector.js +25 -19
- package/dist/components/CoreTagFilter/OldTagOption.js +10 -6
- package/dist/components/CoreTagFilter/TagFilterBuilder.js +351 -49
- package/dist/components/CoreTextField/CoreTextField.js +24 -18
- package/dist/components/CoreTheme/CoreTheme.js +1 -1
- package/dist/components/CoreTile/CoreTile.js +5 -5
- package/dist/components/CoreTile/CoreTileToolbar.js +3 -3
- package/dist/components/CoreTimerInput/CoreTimerInput.js +16 -14
- package/dist/components/CoreTimerInput/CoreTimerInputOld.js +10 -8
- package/dist/components/CoreToolbar/CoreToolbar.js +12 -12
- package/dist/components/CoreTracker/CoreTracker.js +19 -13
- package/dist/components/CoreTranslate/CoreTranslate.js +9 -5
- package/dist/components/CoreTranslate/translations/en.json +4 -0
- package/dist/components/CoreTranslateWrapper/CoreTranslateWrapper.js +1 -1
- package/dist/components/CoreWidget/CoreWidget.js +22 -14
- package/dist/components/CoreWrapper/CoreWrapper.js +6 -6
- package/dist/components/index.js +8 -0
- package/dist/context/Authentication/AuthenticationContext.js +1 -1
- package/dist/context/Authentication/AuthenticationProvider.js +19 -13
- package/dist/context/Authentication/index.js +4 -4
- package/dist/context/Authentication/withAuthentication.js +3 -3
- package/dist/context/Channels/ChannelsConsumer.js +19 -13
- package/dist/context/Channels/ChannelsContext.js +1 -1
- package/dist/context/Channels/ChannelsProvider.js +19 -13
- package/dist/context/Channels/DataChannel.js +16 -12
- package/dist/context/Channels/EntityChannel.js +16 -12
- package/dist/context/Channels/EveryoneChannel.js +16 -12
- package/dist/context/Channels/OrganizationChannel.js +16 -12
- package/dist/context/Channels/UserChannel.js +16 -12
- package/dist/context/Channels/withChannels.js +3 -3
- package/dist/context/Core/CoreContext.js +1 -1
- package/dist/context/Core/CoreProvider.js +19 -13
- package/dist/context/Core/index.js +4 -4
- package/dist/context/Core/withCore.js +3 -3
- package/dist/context/Organization/OrganizationContext.js +1 -1
- package/dist/context/Organization/OrganizationProvider.js +19 -13
- package/dist/context/Organization/index.js +4 -4
- package/dist/context/Organization/withOrganization.js +3 -3
- package/dist/context/Plugin/PluginContext.js +1 -1
- package/dist/context/Plugin/PluginProvider.js +23 -15
- package/dist/context/Plugin/index.js +4 -4
- package/dist/context/Plugin/withPlugin.js +3 -3
- package/dist/context/index.js +5 -0
- package/dist/functions/TagEvaluator.js +2 -4
- package/dist/functions/index.js +14 -14
- package/dist/icons/CopyIcon.js +3 -3
- package/dist/icons/DeleteIcon.js +3 -3
- package/dist/icons/DuplicateIcon.js +3 -3
- package/dist/icons/EditIcon.js +3 -3
- package/dist/icons/FabAddIcon.js +6 -4
- package/dist/icons/PasteIcon.js +3 -3
- package/dist/icons/index.js +4 -4
- package/dist/index.js +6 -0
- package/package.json +2 -2
|
@@ -15,41 +15,49 @@ var _functions = require("../../functions");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
|
|
21
|
+
|
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
+
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
25
|
|
|
22
26
|
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; }
|
|
23
27
|
|
|
24
|
-
function _typeof(obj) {
|
|
28
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
25
29
|
|
|
26
30
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
31
|
|
|
28
32
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
29
33
|
|
|
30
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
35
|
|
|
32
|
-
function
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
37
|
|
|
34
|
-
function
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
39
|
|
|
36
|
-
function
|
|
40
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
37
41
|
|
|
38
|
-
function
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
39
43
|
|
|
40
|
-
function
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function (
|
|
46
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
var CorePlugin = /*#__PURE__*/function (_Component) {
|
|
45
51
|
_inherits(CorePlugin, _Component);
|
|
46
52
|
|
|
53
|
+
var _super = _createSuper(CorePlugin);
|
|
54
|
+
|
|
47
55
|
function CorePlugin() {
|
|
48
56
|
var _this;
|
|
49
57
|
|
|
50
58
|
_classCallCheck(this, CorePlugin);
|
|
51
59
|
|
|
52
|
-
_this =
|
|
60
|
+
_this = _super.call(this);
|
|
53
61
|
_this.state = {
|
|
54
62
|
versaCallPluginId: Math.floor(Math.random() * 10000 + 9999)
|
|
55
63
|
};
|
|
@@ -144,7 +152,7 @@ function (_Component) {
|
|
|
144
152
|
plugin = _this$props.plugin,
|
|
145
153
|
sandbox = _this$props.sandbox;
|
|
146
154
|
var versaCallPluginId = this.state.versaCallPluginId;
|
|
147
|
-
return versaCallPluginId !== '' ? _react.default.createElement("iframe", {
|
|
155
|
+
return versaCallPluginId !== '' ? /*#__PURE__*/_react.default.createElement("iframe", {
|
|
148
156
|
frameBorder: "0",
|
|
149
157
|
title: "CorePluginFrame",
|
|
150
158
|
sandbox: sandbox,
|
|
@@ -160,7 +168,7 @@ function (_Component) {
|
|
|
160
168
|
height: plugin.metadata.height
|
|
161
169
|
},
|
|
162
170
|
src: "".concat(core.formatUrl((0, _functions.getUrl)(plugin.metadata)), "?version=").concat(encodeURI(plugin.version))
|
|
163
|
-
}) : _react.default.createElement("div", null);
|
|
171
|
+
}) : /*#__PURE__*/_react.default.createElement("div", null);
|
|
164
172
|
}
|
|
165
173
|
}]);
|
|
166
174
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,37 +17,41 @@ var _functions = require("../../functions");
|
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
|
-
function
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
21
|
|
|
20
|
-
function
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
|
|
21
23
|
|
|
22
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
25
|
|
|
24
26
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
27
|
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
29
|
|
|
28
|
-
function
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
31
|
|
|
30
|
-
function
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
35
|
|
|
32
|
-
function
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
37
|
|
|
34
|
-
function
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
+
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
41
|
|
|
36
|
-
function
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
43
|
|
|
38
|
-
var CorePlugin =
|
|
39
|
-
/*#__PURE__*/
|
|
40
|
-
function (_Component) {
|
|
44
|
+
var CorePlugin = /*#__PURE__*/function (_Component) {
|
|
41
45
|
_inherits(CorePlugin, _Component);
|
|
42
46
|
|
|
47
|
+
var _super = _createSuper(CorePlugin);
|
|
48
|
+
|
|
43
49
|
function CorePlugin() {
|
|
44
50
|
var _this;
|
|
45
51
|
|
|
46
52
|
_classCallCheck(this, CorePlugin);
|
|
47
53
|
|
|
48
|
-
_this =
|
|
54
|
+
_this = _super.call(this);
|
|
49
55
|
_this.state = {
|
|
50
56
|
id: Math.floor(Math.random() * 10000 + 9999)
|
|
51
57
|
};
|
|
@@ -135,7 +141,7 @@ function (_Component) {
|
|
|
135
141
|
plugin = _this$props.plugin,
|
|
136
142
|
sandbox = _this$props.sandbox;
|
|
137
143
|
var id = this.state.id;
|
|
138
|
-
return id !== '' ? _react.default.createElement("iframe", {
|
|
144
|
+
return id !== '' ? /*#__PURE__*/_react.default.createElement("iframe", {
|
|
139
145
|
frameBorder: "0",
|
|
140
146
|
title: "CorePluginFrame",
|
|
141
147
|
sandbox: sandbox,
|
|
@@ -151,7 +157,7 @@ function (_Component) {
|
|
|
151
157
|
height: plugin.metadata.height
|
|
152
158
|
},
|
|
153
159
|
src: "".concat(core.formatUrl((0, _functions.getUrl)(plugin.metadata)), "?version=").concat(encodeURI(plugin.version))
|
|
154
|
-
}) : _react.default.createElement("div", null);
|
|
160
|
+
}) : /*#__PURE__*/_react.default.createElement("div", null);
|
|
155
161
|
}
|
|
156
162
|
}]);
|
|
157
163
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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 _DialogContentText = _interopRequireDefault(require("@material-ui/core/DialogContentText"));
|
|
11
|
+
|
|
12
|
+
var _DialogActions = _interopRequireDefault(require("@material-ui/core/DialogActions"));
|
|
13
|
+
|
|
14
|
+
var _DialogContent = _interopRequireDefault(require("@material-ui/core/DialogContent"));
|
|
15
|
+
|
|
16
|
+
var _DialogTitle = _interopRequireDefault(require("@material-ui/core/DialogTitle"));
|
|
17
|
+
|
|
18
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
19
|
+
|
|
20
|
+
var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
|
|
21
|
+
|
|
22
|
+
var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
|
|
23
|
+
|
|
24
|
+
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
25
|
+
|
|
26
|
+
var _reactIntl = require("react-intl");
|
|
27
|
+
|
|
28
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
+
|
|
32
|
+
var styles = {
|
|
33
|
+
closeButton: {
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
color: 'gray',
|
|
36
|
+
right: 10,
|
|
37
|
+
top: 10
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
function CoreSaveChangesDialog(props) {
|
|
42
|
+
var intl = props.intl,
|
|
43
|
+
open = props.open;
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
45
|
+
open: open
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_DialogTitle.default, null, intl.formatMessage({
|
|
47
|
+
id: '__unsaved_title'
|
|
48
|
+
}), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
49
|
+
style: styles.closeButton,
|
|
50
|
+
onClick: function onClick() {
|
|
51
|
+
return props.close();
|
|
52
|
+
}
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_Close.default, null))), /*#__PURE__*/_react.default.createElement(_DialogContent.default, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, null, intl.formatMessage({
|
|
54
|
+
id: '__unsaved_message'
|
|
55
|
+
}))), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
56
|
+
variant: "contained",
|
|
57
|
+
onClick: function onClick() {
|
|
58
|
+
return props.keep();
|
|
59
|
+
},
|
|
60
|
+
color: "primary",
|
|
61
|
+
autoFocus: true
|
|
62
|
+
}, intl.formatMessage({
|
|
63
|
+
id: '__yes'
|
|
64
|
+
})), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
65
|
+
onClick: function onClick() {
|
|
66
|
+
return props.discard();
|
|
67
|
+
},
|
|
68
|
+
color: "primary"
|
|
69
|
+
}, intl.formatMessage({
|
|
70
|
+
id: '__no'
|
|
71
|
+
}))));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
CoreSaveChangesDialog.propTypes = {
|
|
75
|
+
intl: _propTypes.default.shape().isRequired,
|
|
76
|
+
discard: _propTypes.default.func.isRequired,
|
|
77
|
+
close: _propTypes.default.func.isRequired,
|
|
78
|
+
keep: _propTypes.default.func.isRequired,
|
|
79
|
+
open: _propTypes.default.bool.isRequired
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var _default = (0, _reactIntl.injectIntl)(CoreSaveChangesDialog);
|
|
83
|
+
|
|
84
|
+
exports.default = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 _CoreSaveChangesDialog.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _CoreSaveChangesDialog = _interopRequireDefault(require("./CoreSaveChangesDialog"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|