@blaze-cms/plugin-data-ui 0.125.0-alpha.3 → 0.125.0-auth-updates.0
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/CHANGELOG.md +1 -17
- package/lib/components/EntityDataListing/EntityDataListing.js +17 -40
- package/lib/components/EntityDataListing/EntityDataListing.js.map +1 -1
- package/lib/components/EntityDataListing/index.js +0 -4
- package/lib/components/EntityDataListing/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/Entity.js +67 -204
- package/lib/components/EntityManager/Entity/Entity.js.map +1 -1
- package/lib/components/EntityManager/Entity/EntityHeader/EntityHeader.js +13 -28
- package/lib/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +1 -1
- package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +5 -26
- package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
- package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js +0 -4
- package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/EntityHeader/index.js +0 -4
- package/lib/components/EntityManager/Entity/EntityHeader/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/index.js +13 -57
- package/lib/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/create/index.js +0 -3
- package/lib/components/EntityManager/Entity/actions-handlers/create/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js +0 -16
- package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js +0 -11
- package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/delete/index.js +0 -3
- package/lib/components/EntityManager/Entity/actions-handlers/delete/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/index.js +0 -7
- package/lib/components/EntityManager/Entity/actions-handlers/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/shared/index.js +0 -3
- package/lib/components/EntityManager/Entity/actions-handlers/shared/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js +0 -18
- package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/update/index.js +0 -3
- package/lib/components/EntityManager/Entity/actions-handlers/update/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js +0 -25
- package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js.map +1 -1
- package/lib/components/EntityManager/Entity/index.js +0 -4
- package/lib/components/EntityManager/Entity/index.js.map +1 -1
- package/lib/components/EntityManager/EntityManager.js +24 -83
- package/lib/components/EntityManager/EntityManager.js.map +1 -1
- package/lib/components/EntityManager/index.js +0 -4
- package/lib/components/EntityManager/index.js.map +1 -1
- package/lib/components/EntityManager/utils/data-mappers.js +5 -38
- package/lib/components/EntityManager/utils/data-mappers.js.map +1 -1
- package/lib/components/EntityManager/utils/entity.js +3 -38
- package/lib/components/EntityManager/utils/entity.js.map +1 -1
- package/lib/components/EntityManager/utils/entityAvailableActions.js +17 -42
- package/lib/components/EntityManager/utils/entityAvailableActions.js.map +1 -1
- package/lib/components/EntityManager/utils/is-form-empty.js +0 -7
- package/lib/components/EntityManager/utils/is-form-empty.js.map +1 -1
- package/lib/components/EntityManager/utils/query.js +2 -11
- package/lib/components/EntityManager/utils/query.js.map +1 -1
- package/lib/components/ListingTable/ListingTable.js +31 -116
- package/lib/components/ListingTable/ListingTable.js.map +1 -1
- package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js +9 -22
- package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
- package/lib/components/ListingTable/ListingTableContent/index.js +0 -4
- package/lib/components/ListingTable/ListingTableContent/index.js.map +1 -1
- package/lib/components/ListingTable/TableActions/TableActions.js +2 -11
- package/lib/components/ListingTable/TableActions/TableActions.js.map +1 -1
- package/lib/components/ListingTable/TableActions/index.js +0 -4
- package/lib/components/ListingTable/TableActions/index.js.map +1 -1
- package/lib/components/ListingTable/index.js +0 -4
- package/lib/components/ListingTable/index.js.map +1 -1
- package/lib/components/ListingTable/mappers/populate-rows.js +13 -49
- package/lib/components/ListingTable/mappers/populate-rows.js.map +1 -1
- package/lib/components/ListingTable/service/index.js +0 -11
- package/lib/components/ListingTable/service/index.js.map +1 -1
- package/lib/components/Tabs/index.js +5 -16
- package/lib/components/Tabs/index.js.map +1 -1
- package/lib/constants.js +0 -1
- package/lib/constants.js.map +1 -1
- package/lib/index.js +2 -31
- package/lib/index.js.map +1 -1
- package/lib/utils/add-content-menu-items.js +2 -17
- package/lib/utils/add-content-menu-items.js.map +1 -1
- package/lib/utils/build-create-entity-mutation.js +0 -12
- package/lib/utils/build-create-entity-mutation.js.map +1 -1
- package/lib/utils/build-delete-entity-mutation.js +0 -10
- package/lib/utils/build-delete-entity-mutation.js.map +1 -1
- package/lib/utils/build-listing-query.js +0 -10
- package/lib/utils/build-listing-query.js.map +1 -1
- package/lib/utils/build-update-data-query.js +0 -12
- package/lib/utils/build-update-data-query.js.map +1 -1
- package/lib/utils/build-update-publish-unpublish-mutation.js +0 -9
- package/lib/utils/build-update-publish-unpublish-mutation.js.map +1 -1
- package/lib/utils/get-default-query-params.js +0 -3
- package/lib/utils/get-default-query-params.js.map +1 -1
- package/lib/utils/hoc/withContext.js +0 -7
- package/lib/utils/hoc/withContext.js.map +1 -1
- package/lib/utils/hooks/useToggle.js +3 -10
- package/lib/utils/hooks/useToggle.js.map +1 -1
- package/lib/utils/index.js +0 -3
- package/lib/utils/index.js.map +1 -1
- package/lib-es/components/EntityDataListing/EntityDataListing.js +0 -2
- package/lib-es/components/EntityDataListing/EntityDataListing.js.map +1 -1
- package/lib-es/components/EntityDataListing/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/Entity.js +10 -55
- package/lib-es/components/EntityManager/Entity/Entity.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/EntityHeader.js +0 -2
- package/lib-es/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +2 -5
- package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js +0 -3
- package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/create/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js +0 -3
- package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/delete/delete.js +0 -3
- package/lib-es/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/delete/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/shared/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/shared/publish.js +0 -5
- package/lib-es/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/update/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/update/submit.js +0 -6
- package/lib-es/components/EntityManager/Entity/actions-handlers/update/submit.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/index.js.map +1 -1
- package/lib-es/components/EntityManager/EntityManager.js +2 -14
- package/lib-es/components/EntityManager/EntityManager.js.map +1 -1
- package/lib-es/components/EntityManager/index.js.map +1 -1
- package/lib-es/components/EntityManager/utils/data-mappers.js +0 -11
- package/lib-es/components/EntityManager/utils/data-mappers.js.map +1 -1
- package/lib-es/components/EntityManager/utils/entity.js +0 -13
- package/lib-es/components/EntityManager/utils/entity.js.map +1 -1
- package/lib-es/components/EntityManager/utils/entityAvailableActions.js +0 -2
- package/lib-es/components/EntityManager/utils/entityAvailableActions.js.map +1 -1
- package/lib-es/components/EntityManager/utils/is-form-empty.js +0 -2
- package/lib-es/components/EntityManager/utils/is-form-empty.js.map +1 -1
- package/lib-es/components/EntityManager/utils/query.js +2 -4
- package/lib-es/components/EntityManager/utils/query.js.map +1 -1
- package/lib-es/components/ListingTable/ListingTable.js +0 -17
- package/lib-es/components/ListingTable/ListingTable.js.map +1 -1
- package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js +0 -2
- package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
- package/lib-es/components/ListingTable/ListingTableContent/index.js.map +1 -1
- package/lib-es/components/ListingTable/TableActions/TableActions.js +0 -2
- package/lib-es/components/ListingTable/TableActions/TableActions.js.map +1 -1
- package/lib-es/components/ListingTable/TableActions/index.js.map +1 -1
- package/lib-es/components/ListingTable/index.js.map +1 -1
- package/lib-es/components/ListingTable/mappers/populate-rows.js +0 -13
- package/lib-es/components/ListingTable/mappers/populate-rows.js.map +1 -1
- package/lib-es/components/ListingTable/service/index.js +0 -2
- package/lib-es/components/ListingTable/service/index.js.map +1 -1
- package/lib-es/components/Tabs/index.js +0 -2
- package/lib-es/components/Tabs/index.js.map +1 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/index.js +2 -6
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/add-content-menu-items.js +0 -3
- package/lib-es/utils/add-content-menu-items.js.map +1 -1
- package/lib-es/utils/build-create-entity-mutation.js +0 -3
- package/lib-es/utils/build-create-entity-mutation.js.map +1 -1
- package/lib-es/utils/build-delete-entity-mutation.js +0 -3
- package/lib-es/utils/build-delete-entity-mutation.js.map +1 -1
- package/lib-es/utils/build-listing-query.js +0 -3
- package/lib-es/utils/build-listing-query.js.map +1 -1
- package/lib-es/utils/build-update-data-query.js +0 -3
- package/lib-es/utils/build-update-data-query.js.map +1 -1
- package/lib-es/utils/build-update-publish-unpublish-mutation.js +0 -3
- package/lib-es/utils/build-update-publish-unpublish-mutation.js.map +1 -1
- package/lib-es/utils/get-default-query-params.js +0 -1
- package/lib-es/utils/get-default-query-params.js.map +1 -1
- package/lib-es/utils/hoc/withContext.js.map +1 -1
- package/lib-es/utils/hooks/useToggle.js +0 -2
- package/lib-es/utils/hooks/useToggle.js.map +1 -1
- package/lib-es/utils/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,79 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.weak-map.js");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.object.define-property.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
|
-
|
|
9
6
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
10
|
-
|
|
11
7
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
12
|
-
|
|
13
8
|
Object.defineProperty(exports, "__esModule", {
|
|
14
9
|
value: true
|
|
15
10
|
});
|
|
16
11
|
exports["default"] = void 0;
|
|
17
|
-
|
|
18
12
|
require("core-js/modules/es.array.iterator.js");
|
|
19
|
-
|
|
20
13
|
require("core-js/modules/es.object.to-string.js");
|
|
21
|
-
|
|
22
14
|
require("core-js/modules/es.promise.js");
|
|
23
|
-
|
|
24
15
|
require("core-js/modules/es.string.iterator.js");
|
|
25
|
-
|
|
26
16
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
27
|
-
|
|
28
17
|
require("core-js/modules/es.array.map.js");
|
|
29
|
-
|
|
30
18
|
require("core-js/modules/es.array.filter.js");
|
|
31
|
-
|
|
32
19
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
33
|
-
|
|
34
20
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
35
|
-
|
|
36
21
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
37
|
-
|
|
38
22
|
var _react = _interopRequireWildcard(require("react"));
|
|
39
|
-
|
|
40
23
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
41
|
-
|
|
42
24
|
var _v = _interopRequireDefault(require("uuid/v1"));
|
|
43
|
-
|
|
44
25
|
var _client = require("@apollo/client");
|
|
45
|
-
|
|
46
26
|
var _adminUiUtils = require("@blaze-cms/admin-ui-utils");
|
|
47
|
-
|
|
48
27
|
var _reactFormBuilder = require("@blaze-cms/react-form-builder");
|
|
49
|
-
|
|
50
28
|
var _badge = _interopRequireDefault(require("@blaze-react/badge"));
|
|
51
|
-
|
|
52
29
|
var _versioningUi = require("@blaze-cms/versioning-ui");
|
|
53
|
-
|
|
54
30
|
var _constants = require("../../../../constants");
|
|
55
|
-
|
|
56
31
|
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); }
|
|
57
|
-
|
|
58
32
|
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; }
|
|
59
|
-
|
|
60
33
|
var SideBarRelations = function SideBarRelations(_ref) {
|
|
61
34
|
var schema = _ref.schema,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
35
|
+
onChange = _ref.onChange,
|
|
36
|
+
formData = _ref.formData,
|
|
37
|
+
entity = _ref.entity;
|
|
65
38
|
var RelationComponent = _reactFormBuilder.formFieldTypes.relation;
|
|
66
39
|
var formattedStatus = formData.formattedStatus,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
40
|
+
formattedUpdated = formData.formattedUpdated,
|
|
41
|
+
formattedCreated = formData.formattedCreated,
|
|
42
|
+
formattedPublished = formData.formattedPublished;
|
|
70
43
|
var client = (0, _client.useApolloClient)();
|
|
71
|
-
|
|
72
44
|
var _useState = (0, _react.useState)(null),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
45
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
46
|
+
relationsComponents = _useState2[0],
|
|
47
|
+
setRelationsComponents = _useState2[1];
|
|
77
48
|
(0, _react.useEffect)(function () {
|
|
78
49
|
(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
79
50
|
var fetchRelationSchema, allRelationComponents;
|
|
@@ -84,20 +55,16 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
84
55
|
fetchRelationSchema = /*#__PURE__*/function () {
|
|
85
56
|
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref3) {
|
|
86
57
|
var entityIdentifier, _yield$client$query, _yield$client$query$d, relationSchema;
|
|
87
|
-
|
|
88
58
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
89
59
|
while (1) {
|
|
90
60
|
switch (_context.prev = _context.next) {
|
|
91
61
|
case 0:
|
|
92
62
|
entityIdentifier = _ref3.entityIdentifier;
|
|
93
|
-
|
|
94
63
|
if (entityIdentifier) {
|
|
95
64
|
_context.next = 3;
|
|
96
65
|
break;
|
|
97
66
|
}
|
|
98
|
-
|
|
99
67
|
return _context.abrupt("return", null);
|
|
100
|
-
|
|
101
68
|
case 3:
|
|
102
69
|
_context.next = 5;
|
|
103
70
|
return client.query({
|
|
@@ -106,13 +73,11 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
106
73
|
identifier: entityIdentifier
|
|
107
74
|
}
|
|
108
75
|
});
|
|
109
|
-
|
|
110
76
|
case 5:
|
|
111
77
|
_yield$client$query = _context.sent;
|
|
112
78
|
_yield$client$query$d = (0, _slicedToArray2["default"])(_yield$client$query.data.getEntitySchemas, 1);
|
|
113
79
|
relationSchema = _yield$client$query$d[0];
|
|
114
80
|
return _context.abrupt("return", relationSchema);
|
|
115
|
-
|
|
116
81
|
case 9:
|
|
117
82
|
case "end":
|
|
118
83
|
return _context.stop();
|
|
@@ -120,21 +85,18 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
120
85
|
}
|
|
121
86
|
}, _callee);
|
|
122
87
|
}));
|
|
123
|
-
|
|
124
88
|
return function fetchRelationSchema(_x) {
|
|
125
89
|
return _ref4.apply(this, arguments);
|
|
126
90
|
};
|
|
127
91
|
}();
|
|
128
|
-
|
|
129
92
|
if (!(!relationsComponents && schema)) {
|
|
130
93
|
_context3.next = 6;
|
|
131
94
|
break;
|
|
132
95
|
}
|
|
133
|
-
|
|
134
96
|
_context3.next = 4;
|
|
135
97
|
return Promise.all(schema.relations.filter(function (_ref5) {
|
|
136
98
|
var showInForm = _ref5.showInForm,
|
|
137
|
-
|
|
99
|
+
foreignKey = _ref5.foreignKey;
|
|
138
100
|
return showInForm && schema.properties[foreignKey];
|
|
139
101
|
}).map( /*#__PURE__*/function () {
|
|
140
102
|
var _ref6 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(relation) {
|
|
@@ -146,7 +108,6 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
146
108
|
_context2.t1 = relation;
|
|
147
109
|
_context2.next = 4;
|
|
148
110
|
return fetchRelationSchema(relation);
|
|
149
|
-
|
|
150
111
|
case 4:
|
|
151
112
|
_context2.t2 = _context2.sent;
|
|
152
113
|
return _context2.abrupt("return", {
|
|
@@ -154,7 +115,6 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
154
115
|
staticData: _context2.t1,
|
|
155
116
|
schema: _context2.t2
|
|
156
117
|
});
|
|
157
|
-
|
|
158
118
|
case 6:
|
|
159
119
|
case "end":
|
|
160
120
|
return _context2.stop();
|
|
@@ -162,16 +122,13 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
162
122
|
}
|
|
163
123
|
}, _callee2);
|
|
164
124
|
}));
|
|
165
|
-
|
|
166
125
|
return function (_x2) {
|
|
167
126
|
return _ref6.apply(this, arguments);
|
|
168
127
|
};
|
|
169
128
|
}()));
|
|
170
|
-
|
|
171
129
|
case 4:
|
|
172
130
|
allRelationComponents = _context3.sent;
|
|
173
131
|
setRelationsComponents(allRelationComponents);
|
|
174
|
-
|
|
175
132
|
case 6:
|
|
176
133
|
case "end":
|
|
177
134
|
return _context3.stop();
|
|
@@ -182,7 +139,7 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
182
139
|
}, [client, relationsComponents, schema, schema.relations]);
|
|
183
140
|
var itemId = entity.id;
|
|
184
141
|
var itemEntity = schema.identifier,
|
|
185
|
-
|
|
142
|
+
interfaces = schema.interfaces;
|
|
186
143
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
144
|
className: "sidebar",
|
|
188
145
|
"data-testid": "sideBarRelations-main-div"
|
|
@@ -199,8 +156,8 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
199
156
|
interfaces: interfaces
|
|
200
157
|
}), relationsComponents && relationsComponents.map(function (_ref7) {
|
|
201
158
|
var id = _ref7.id,
|
|
202
|
-
|
|
203
|
-
|
|
159
|
+
staticData = _ref7.staticData,
|
|
160
|
+
entitySchema = _ref7.schema;
|
|
204
161
|
return /*#__PURE__*/_react["default"].createElement(RelationComponent, {
|
|
205
162
|
formData: formData,
|
|
206
163
|
schema: entitySchema,
|
|
@@ -210,7 +167,6 @@ var SideBarRelations = function SideBarRelations(_ref) {
|
|
|
210
167
|
});
|
|
211
168
|
})));
|
|
212
169
|
};
|
|
213
|
-
|
|
214
170
|
SideBarRelations.propTypes = {
|
|
215
171
|
schema: _propTypes["default"].object.isRequired,
|
|
216
172
|
onChange: _propTypes["default"].func.isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SideBarRelations","schema","onChange","formData","entity","RelationComponent","formFieldTypes","relation","formattedStatus","formattedUpdated","formattedCreated","formattedPublished","client","useApolloClient","useState","relationsComponents","setRelationsComponents","useEffect","fetchRelationSchema","entityIdentifier","query","getQuery","variables","identifier","data","getEntitySchemas","relationSchema","Promise","all","relations","filter","showInForm","foreignKey","properties","map","uuidv1","id","staticData","allRelationComponents","itemId","itemEntity","interfaces","PUBLISHED","entitySchema","propTypes","PropTypes","object","isRequired","func","defaultProps"],"sources":["../../../../../src/components/EntityManager/Entity/SideBarRelations/index.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport uuidv1 from 'uuid/v1';\nimport { useApolloClient } from '@apollo/client';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\nimport { formFieldTypes } from '@blaze-cms/react-form-builder';\nimport Badge from '@blaze-react/badge';\nimport { VersionsList } from '@blaze-cms/versioning-ui';\nimport { PUBLISHED } from '../../../../constants';\n\nconst SideBarRelations = ({ schema, onChange, formData, entity }) => {\n const { relation: RelationComponent } = formFieldTypes;\n const { formattedStatus, formattedUpdated, formattedCreated, formattedPublished } = formData;\n const client = useApolloClient();\n const [relationsComponents, setRelationsComponents] = useState(null);\n\n useEffect(\n () => {\n (async () => {\n const fetchRelationSchema = async ({ entityIdentifier }) => {\n if (!entityIdentifier) return null;\n\n const {\n data: {\n getEntitySchemas: [relationSchema]\n }\n } = await client.query({\n query: getQuery('GET_ENTITY_SCHEMA'),\n variables: { identifier: entityIdentifier }\n });\n return relationSchema;\n };\n\n if (!relationsComponents && schema) {\n const allRelationComponents = await Promise.all(\n schema.relations\n .filter(({ showInForm, foreignKey }) => showInForm && schema.properties[foreignKey])\n .map(async relation => ({\n id: uuidv1(),\n staticData: relation,\n schema: await fetchRelationSchema(relation)\n }))\n );\n\n setRelationsComponents(allRelationComponents);\n }\n })();\n },\n [client, relationsComponents, schema, schema.relations]\n );\n const { id: itemId } = entity;\n const { identifier: itemEntity, interfaces } = schema;\n\n return (\n <div className=\"sidebar\" data-testid=\"sideBarRelations-main-div\">\n <div className=\"sidebar__content\">\n {formattedCreated && (\n <div className=\"sidebar__status\">\n {formattedStatus && (\n <Badge type=\"status\" modifiers={formattedStatus}>\n {formattedStatus}\n {formattedStatus === PUBLISHED && `: ${formattedPublished}`}\n </Badge>\n )}\n <p>\n Created: <span>{formattedCreated}</span>\n </p>\n <p>\n Updated: <span>{formattedUpdated}</span>\n </p>\n </div>\n )}\n\n <VersionsList itemEntity={itemEntity} itemId={itemId} interfaces={interfaces} />\n {relationsComponents &&\n relationsComponents.map(({ id, staticData, schema: entitySchema }) => (\n <RelationComponent\n formData={formData}\n schema={entitySchema}\n key={id}\n staticData={staticData}\n onSelect={onChange}\n />\n ))}\n </div>\n </div>\n );\n};\n\nSideBarRelations.propTypes = {\n schema: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n formData: PropTypes.object.isRequired,\n entity: PropTypes.object\n};\n\nSideBarRelations.defaultProps = {\n entity: {}\n};\n\nexport default SideBarRelations;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["SideBarRelations","schema","onChange","formData","entity","RelationComponent","formFieldTypes","relation","formattedStatus","formattedUpdated","formattedCreated","formattedPublished","client","useApolloClient","useState","relationsComponents","setRelationsComponents","useEffect","fetchRelationSchema","entityIdentifier","query","getQuery","variables","identifier","data","getEntitySchemas","relationSchema","Promise","all","relations","filter","showInForm","foreignKey","properties","map","uuidv1","id","staticData","allRelationComponents","itemId","itemEntity","interfaces","PUBLISHED","entitySchema","propTypes","PropTypes","object","isRequired","func","defaultProps"],"sources":["../../../../../src/components/EntityManager/Entity/SideBarRelations/index.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport uuidv1 from 'uuid/v1';\nimport { useApolloClient } from '@apollo/client';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\nimport { formFieldTypes } from '@blaze-cms/react-form-builder';\nimport Badge from '@blaze-react/badge';\nimport { VersionsList } from '@blaze-cms/versioning-ui';\nimport { PUBLISHED } from '../../../../constants';\n\nconst SideBarRelations = ({ schema, onChange, formData, entity }) => {\n const { relation: RelationComponent } = formFieldTypes;\n const { formattedStatus, formattedUpdated, formattedCreated, formattedPublished } = formData;\n const client = useApolloClient();\n const [relationsComponents, setRelationsComponents] = useState(null);\n\n useEffect(\n () => {\n (async () => {\n const fetchRelationSchema = async ({ entityIdentifier }) => {\n if (!entityIdentifier) return null;\n\n const {\n data: {\n getEntitySchemas: [relationSchema]\n }\n } = await client.query({\n query: getQuery('GET_ENTITY_SCHEMA'),\n variables: { identifier: entityIdentifier }\n });\n return relationSchema;\n };\n\n if (!relationsComponents && schema) {\n const allRelationComponents = await Promise.all(\n schema.relations\n .filter(({ showInForm, foreignKey }) => showInForm && schema.properties[foreignKey])\n .map(async relation => ({\n id: uuidv1(),\n staticData: relation,\n schema: await fetchRelationSchema(relation)\n }))\n );\n\n setRelationsComponents(allRelationComponents);\n }\n })();\n },\n [client, relationsComponents, schema, schema.relations]\n );\n const { id: itemId } = entity;\n const { identifier: itemEntity, interfaces } = schema;\n\n return (\n <div className=\"sidebar\" data-testid=\"sideBarRelations-main-div\">\n <div className=\"sidebar__content\">\n {formattedCreated && (\n <div className=\"sidebar__status\">\n {formattedStatus && (\n <Badge type=\"status\" modifiers={formattedStatus}>\n {formattedStatus}\n {formattedStatus === PUBLISHED && `: ${formattedPublished}`}\n </Badge>\n )}\n <p>\n Created: <span>{formattedCreated}</span>\n </p>\n <p>\n Updated: <span>{formattedUpdated}</span>\n </p>\n </div>\n )}\n\n <VersionsList itemEntity={itemEntity} itemId={itemId} interfaces={interfaces} />\n {relationsComponents &&\n relationsComponents.map(({ id, staticData, schema: entitySchema }) => (\n <RelationComponent\n formData={formData}\n schema={entitySchema}\n key={id}\n staticData={staticData}\n onSelect={onChange}\n />\n ))}\n </div>\n </div>\n );\n};\n\nSideBarRelations.propTypes = {\n schema: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n formData: PropTypes.object.isRequired,\n entity: PropTypes.object\n};\n\nSideBarRelations.defaultProps = {\n entity: {}\n};\n\nexport default SideBarRelations;\n"],"mappings":"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"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _submit = require("./submit");
|
|
11
|
-
|
|
12
9
|
var _default = {
|
|
13
10
|
submit: _submit.submit
|
|
14
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["submit"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/create/index.js"],"sourcesContent":["import { submit } from './submit';\n\nexport default {\n submit\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["submit"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/create/index.js"],"sourcesContent":["import { submit } from './submit';\n\nexport default {\n submit\n};\n"],"mappings":";;;;;;;AAAA;AAAkC,eAEnB;EACbA,MAAM,EAANA;AACF,CAAC;AAAA"}
|
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.submit = void 0;
|
|
11
|
-
|
|
12
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
-
|
|
14
10
|
require("core-js/modules/es.regexp.exec.js");
|
|
15
|
-
|
|
16
11
|
require("core-js/modules/es.string.replace.js");
|
|
17
|
-
|
|
18
12
|
require("core-js/modules/es.array.concat.js");
|
|
19
|
-
|
|
20
13
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
21
|
-
|
|
22
14
|
var _buildCreateEntityMutation = _interopRequireDefault(require("../../../../../utils/build-create-entity-mutation"));
|
|
23
|
-
|
|
24
15
|
var _constants = require("../../../../../constants");
|
|
25
|
-
|
|
26
16
|
var submit = /*#__PURE__*/function () {
|
|
27
17
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref, addToast) {
|
|
28
18
|
var entitySchema, parsedFormValues, client, setEntityData, setIsSaveButtonAvailable, setSaveButtonText, history, setIsNewEntity, mutation, _yield$client$mutate, createdEntityResult, updatePathname;
|
|
29
|
-
|
|
30
19
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
31
20
|
while (1) {
|
|
32
21
|
switch (_context.prev = _context.next) {
|
|
@@ -43,7 +32,6 @@ var submit = /*#__PURE__*/function () {
|
|
|
43
32
|
input: parsedFormValues
|
|
44
33
|
}
|
|
45
34
|
});
|
|
46
|
-
|
|
47
35
|
case 7:
|
|
48
36
|
_yield$client$mutate = _context.sent;
|
|
49
37
|
createdEntityResult = _yield$client$mutate.data.createdEntity;
|
|
@@ -58,7 +46,6 @@ var submit = /*#__PURE__*/function () {
|
|
|
58
46
|
});
|
|
59
47
|
_context.next = 22;
|
|
60
48
|
break;
|
|
61
|
-
|
|
62
49
|
case 17:
|
|
63
50
|
_context.prev = 17;
|
|
64
51
|
_context.t0 = _context["catch"](2);
|
|
@@ -68,7 +55,6 @@ var submit = /*#__PURE__*/function () {
|
|
|
68
55
|
appearance: 'error',
|
|
69
56
|
autoDismiss: true
|
|
70
57
|
});
|
|
71
|
-
|
|
72
58
|
case 22:
|
|
73
59
|
case "end":
|
|
74
60
|
return _context.stop();
|
|
@@ -76,11 +62,9 @@ var submit = /*#__PURE__*/function () {
|
|
|
76
62
|
}
|
|
77
63
|
}, _callee, null, [[2, 17]]);
|
|
78
64
|
}));
|
|
79
|
-
|
|
80
65
|
return function submit(_x, _x2) {
|
|
81
66
|
return _ref2.apply(this, arguments);
|
|
82
67
|
};
|
|
83
68
|
}();
|
|
84
|
-
|
|
85
69
|
exports.submit = submit;
|
|
86
70
|
//# sourceMappingURL=submit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit.js","names":["submit","addToast","entitySchema","parsedFormValues","client","setEntityData","setIsSaveButtonAvailable","setSaveButtonText","history","setIsNewEntity","mutation","buildCreateEntityMutation","SAVE_BUTTON_TEXTS","saving","mutate","variables","input","createdEntityResult","data","createdEntity","saved","result","updatePathname","location","pathname","replace","push","id","appearance","autoDismiss","save","message"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/create/submit.js"],"sourcesContent":["import buildCreateEntityMutation from '../../../../../utils/build-create-entity-mutation';\nimport { SAVE_BUTTON_TEXTS } from '../../../../../constants';\n\nconst submit = async (\n {\n entitySchema,\n parsedFormValues,\n client,\n setEntityData,\n setIsSaveButtonAvailable,\n setSaveButtonText,\n history,\n setIsNewEntity\n },\n addToast\n) => {\n const mutation = buildCreateEntityMutation(entitySchema);\n\n try {\n setIsSaveButtonAvailable(false);\n setSaveButtonText(SAVE_BUTTON_TEXTS.saving);\n const {\n data: { createdEntity: createdEntityResult }\n } = await client.mutate({\n mutation,\n variables: { input: parsedFormValues }\n });\n\n setSaveButtonText(SAVE_BUTTON_TEXTS.saved);\n setEntityData(createdEntityResult.result);\n setIsNewEntity(false);\n\n const updatePathname = history.location.pathname.replace('create', 'update');\n history.push(`${updatePathname}/${createdEntityResult.result.id}`);\n addToast(`Created`, {\n appearance: 'success',\n autoDismiss: true\n });\n } catch (error) {\n setIsSaveButtonAvailable(true);\n setSaveButtonText(SAVE_BUTTON_TEXTS.save);\n addToast(error.message, {\n appearance: 'error',\n autoDismiss: true\n });\n }\n};\n\nexport { submit };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit.js","names":["submit","addToast","entitySchema","parsedFormValues","client","setEntityData","setIsSaveButtonAvailable","setSaveButtonText","history","setIsNewEntity","mutation","buildCreateEntityMutation","SAVE_BUTTON_TEXTS","saving","mutate","variables","input","createdEntityResult","data","createdEntity","saved","result","updatePathname","location","pathname","replace","push","id","appearance","autoDismiss","save","message"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/create/submit.js"],"sourcesContent":["import buildCreateEntityMutation from '../../../../../utils/build-create-entity-mutation';\nimport { SAVE_BUTTON_TEXTS } from '../../../../../constants';\n\nconst submit = async (\n {\n entitySchema,\n parsedFormValues,\n client,\n setEntityData,\n setIsSaveButtonAvailable,\n setSaveButtonText,\n history,\n setIsNewEntity\n },\n addToast\n) => {\n const mutation = buildCreateEntityMutation(entitySchema);\n\n try {\n setIsSaveButtonAvailable(false);\n setSaveButtonText(SAVE_BUTTON_TEXTS.saving);\n const {\n data: { createdEntity: createdEntityResult }\n } = await client.mutate({\n mutation,\n variables: { input: parsedFormValues }\n });\n\n setSaveButtonText(SAVE_BUTTON_TEXTS.saved);\n setEntityData(createdEntityResult.result);\n setIsNewEntity(false);\n\n const updatePathname = history.location.pathname.replace('create', 'update');\n history.push(`${updatePathname}/${createdEntityResult.result.id}`);\n addToast(`Created`, {\n appearance: 'success',\n autoDismiss: true\n });\n } catch (error) {\n setIsSaveButtonAvailable(true);\n setSaveButtonText(SAVE_BUTTON_TEXTS.save);\n addToast(error.message, {\n appearance: 'error',\n autoDismiss: true\n });\n }\n};\n\nexport { submit };\n"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AAEA,IAAMA,MAAM;EAAA,0FAAG,uBAWbC,QAAQ;IAAA;IAAA;MAAA;QAAA;UAAA;YATNC,YAAY,QAAZA,YAAY,EACZC,gBAAgB,QAAhBA,gBAAgB,EAChBC,MAAM,QAANA,MAAM,EACNC,aAAa,QAAbA,aAAa,EACbC,wBAAwB,QAAxBA,wBAAwB,EACxBC,iBAAiB,QAAjBA,iBAAiB,EACjBC,OAAO,QAAPA,OAAO,EACPC,cAAc,QAAdA,cAAc;YAIVC,QAAQ,GAAG,IAAAC,qCAAyB,EAACT,YAAY,CAAC;YAAA;YAGtDI,wBAAwB,CAAC,KAAK,CAAC;YAC/BC,iBAAiB,CAACK,4BAAiB,CAACC,MAAM,CAAC;YAAC;YAAA,OAGlCT,MAAM,CAACU,MAAM,CAAC;cACtBJ,QAAQ,EAARA,QAAQ;cACRK,SAAS,EAAE;gBAAEC,KAAK,EAAEb;cAAiB;YACvC,CAAC,CAAC;UAAA;YAAA;YAJuBc,mBAAmB,wBAA1CC,IAAI,CAAIC,aAAa;YAMvBZ,iBAAiB,CAACK,4BAAiB,CAACQ,KAAK,CAAC;YAC1Cf,aAAa,CAACY,mBAAmB,CAACI,MAAM,CAAC;YACzCZ,cAAc,CAAC,KAAK,CAAC;YAEfa,cAAc,GAAGd,OAAO,CAACe,QAAQ,CAACC,QAAQ,CAACC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC;YAC5EjB,OAAO,CAACkB,IAAI,WAAIJ,cAAc,cAAIL,mBAAmB,CAACI,MAAM,CAACM,EAAE,EAAG;YAClE1B,QAAQ,YAAY;cAClB2B,UAAU,EAAE,SAAS;cACrBC,WAAW,EAAE;YACf,CAAC,CAAC;YAAC;YAAA;UAAA;YAAA;YAAA;YAEHvB,wBAAwB,CAAC,IAAI,CAAC;YAC9BC,iBAAiB,CAACK,4BAAiB,CAACkB,IAAI,CAAC;YACzC7B,QAAQ,CAAC,YAAM8B,OAAO,EAAE;cACtBH,UAAU,EAAE,OAAO;cACnBC,WAAW,EAAE;YACf,CAAC,CAAC;UAAC;UAAA;YAAA;QAAA;MAAA;IAAA;EAAA,CAEN;EAAA,gBA3CK7B,MAAM;IAAA;EAAA;AAAA,GA2CX;AAAC"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.submit = void 0;
|
|
11
|
-
|
|
12
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
-
|
|
14
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
|
|
16
11
|
var _buildDeleteEntityMutation = _interopRequireDefault(require("../../../../../utils/build-delete-entity-mutation"));
|
|
17
|
-
|
|
18
12
|
var submit = /*#__PURE__*/function () {
|
|
19
13
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref, addToast) {
|
|
20
14
|
var entitySchema, parsedFormValues, client, mutation, id;
|
|
@@ -35,7 +29,6 @@ var submit = /*#__PURE__*/function () {
|
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
31
|
});
|
|
38
|
-
|
|
39
32
|
case 6:
|
|
40
33
|
addToast('Deleted', {
|
|
41
34
|
appearance: 'success',
|
|
@@ -43,7 +36,6 @@ var submit = /*#__PURE__*/function () {
|
|
|
43
36
|
});
|
|
44
37
|
_context.next = 12;
|
|
45
38
|
break;
|
|
46
|
-
|
|
47
39
|
case 9:
|
|
48
40
|
_context.prev = 9;
|
|
49
41
|
_context.t0 = _context["catch"](3);
|
|
@@ -51,7 +43,6 @@ var submit = /*#__PURE__*/function () {
|
|
|
51
43
|
appearance: 'error',
|
|
52
44
|
autoDismiss: true
|
|
53
45
|
});
|
|
54
|
-
|
|
55
46
|
case 12:
|
|
56
47
|
case "end":
|
|
57
48
|
return _context.stop();
|
|
@@ -59,11 +50,9 @@ var submit = /*#__PURE__*/function () {
|
|
|
59
50
|
}
|
|
60
51
|
}, _callee, null, [[3, 9]]);
|
|
61
52
|
}));
|
|
62
|
-
|
|
63
53
|
return function submit(_x, _x2) {
|
|
64
54
|
return _ref2.apply(this, arguments);
|
|
65
55
|
};
|
|
66
56
|
}();
|
|
67
|
-
|
|
68
57
|
exports.submit = submit;
|
|
69
58
|
//# sourceMappingURL=delete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","names":["submit","addToast","entitySchema","parsedFormValues","client","mutation","buildDeleteEntityMutation","id","mutate","variables","input","appearance","autoDismiss","message"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/delete/delete.js"],"sourcesContent":["import buildDeleteEntityMutation from '../../../../../utils/build-delete-entity-mutation';\n\nconst submit = async ({ entitySchema, parsedFormValues, client }, addToast) => {\n const mutation = buildDeleteEntityMutation(entitySchema);\n const { id } = parsedFormValues;\n\n try {\n await client.mutate({\n mutation,\n variables: { input: { id } }\n });\n addToast('Deleted', {\n appearance: 'success',\n autoDismiss: true\n });\n } catch (error) {\n addToast(error.message, {\n appearance: 'error',\n autoDismiss: true\n });\n }\n};\n\nexport { submit };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete.js","names":["submit","addToast","entitySchema","parsedFormValues","client","mutation","buildDeleteEntityMutation","id","mutate","variables","input","appearance","autoDismiss","message"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/delete/delete.js"],"sourcesContent":["import buildDeleteEntityMutation from '../../../../../utils/build-delete-entity-mutation';\n\nconst submit = async ({ entitySchema, parsedFormValues, client }, addToast) => {\n const mutation = buildDeleteEntityMutation(entitySchema);\n const { id } = parsedFormValues;\n\n try {\n await client.mutate({\n mutation,\n variables: { input: { id } }\n });\n addToast('Deleted', {\n appearance: 'success',\n autoDismiss: true\n });\n } catch (error) {\n addToast(error.message, {\n appearance: 'error',\n autoDismiss: true\n });\n }\n};\n\nexport { submit };\n"],"mappings":";;;;;;;;;;AAAA;AAEA,IAAMA,MAAM;EAAA,0FAAG,uBAAmDC,QAAQ;IAAA;IAAA;MAAA;QAAA;UAAA;YAAlDC,YAAY,QAAZA,YAAY,EAAEC,gBAAgB,QAAhBA,gBAAgB,EAAEC,MAAM,QAANA,MAAM;YACtDC,QAAQ,GAAG,IAAAC,qCAAyB,EAACJ,YAAY,CAAC;YAChDK,EAAE,GAAKJ,gBAAgB,CAAvBI,EAAE;YAAA;YAAA;YAAA,OAGFH,MAAM,CAACI,MAAM,CAAC;cAClBH,QAAQ,EAARA,QAAQ;cACRI,SAAS,EAAE;gBAAEC,KAAK,EAAE;kBAAEH,EAAE,EAAFA;gBAAG;cAAE;YAC7B,CAAC,CAAC;UAAA;YACFN,QAAQ,CAAC,SAAS,EAAE;cAClBU,UAAU,EAAE,SAAS;cACrBC,WAAW,EAAE;YACf,CAAC,CAAC;YAAC;YAAA;UAAA;YAAA;YAAA;YAEHX,QAAQ,CAAC,YAAMY,OAAO,EAAE;cACtBF,UAAU,EAAE,OAAO;cACnBC,WAAW,EAAE;YACf,CAAC,CAAC;UAAC;UAAA;YAAA;QAAA;MAAA;IAAA;EAAA,CAEN;EAAA,gBAnBKZ,MAAM;IAAA;EAAA;AAAA,GAmBX;AAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _delete = require("./delete");
|
|
11
|
-
|
|
12
9
|
var _default = {
|
|
13
10
|
submit: _delete.submit
|
|
14
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["submit"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/delete/index.js"],"sourcesContent":["import { submit } from './delete';\n\nexport default { submit };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["submit"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/delete/index.js"],"sourcesContent":["import { submit } from './delete';\n\nexport default { submit };\n"],"mappings":";;;;;;;AAAA;AAAkC,eAEnB;EAAEA,MAAM,EAANA;AAAO,CAAC;AAAA"}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports["default"] = void 0;
|
|
11
|
-
|
|
12
9
|
var _create = _interopRequireDefault(require("./create"));
|
|
13
|
-
|
|
14
10
|
var _update = _interopRequireDefault(require("./update"));
|
|
15
|
-
|
|
16
11
|
var _shared = _interopRequireDefault(require("./shared"));
|
|
17
|
-
|
|
18
12
|
var _delete = _interopRequireDefault(require("./delete"));
|
|
19
|
-
|
|
20
13
|
var availableActions = {
|
|
21
14
|
create: _create["default"],
|
|
22
15
|
update: _update["default"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["availableActions","create","createActions","update","updateActions","shared","sharedActions","deleteActions"],"sources":["../../../../../src/components/EntityManager/Entity/actions-handlers/index.js"],"sourcesContent":["import createActions from './create';\nimport updateActions from './update';\nimport sharedActions from './shared';\nimport deleteActions from './delete';\n\nconst availableActions = {\n create: createActions,\n update: updateActions,\n shared: sharedActions,\n delete: deleteActions\n};\n\nexport default availableActions;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["availableActions","create","createActions","update","updateActions","shared","sharedActions","deleteActions"],"sources":["../../../../../src/components/EntityManager/Entity/actions-handlers/index.js"],"sourcesContent":["import createActions from './create';\nimport updateActions from './update';\nimport sharedActions from './shared';\nimport deleteActions from './delete';\n\nconst availableActions = {\n create: createActions,\n update: updateActions,\n shared: sharedActions,\n delete: deleteActions\n};\n\nexport default availableActions;\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AAEA,IAAMA,gBAAgB,GAAG;EACvBC,MAAM,EAAEC,kBAAa;EACrBC,MAAM,EAAEC,kBAAa;EACrBC,MAAM,EAAEC,kBAAa;EACrB,UAAQC;AACV,CAAC;AAAC,eAEaP,gBAAgB;AAAA"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _publish = require("./publish");
|
|
11
|
-
|
|
12
9
|
var _default = {
|
|
13
10
|
triggerPublish: _publish.triggerPublish
|
|
14
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["triggerPublish"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/shared/index.js"],"sourcesContent":["import { triggerPublish } from './publish';\n\nexport default { triggerPublish };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["triggerPublish"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/shared/index.js"],"sourcesContent":["import { triggerPublish } from './publish';\n\nexport default { triggerPublish };\n"],"mappings":";;;;;;;AAAA;AAA2C,eAE5B;EAAEA,cAAc,EAAdA;AAAe,CAAC;AAAA"}
|
|
@@ -1,45 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.triggerPublish = void 0;
|
|
11
|
-
|
|
12
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
-
|
|
14
10
|
require("core-js/modules/es.object.keys.js");
|
|
15
|
-
|
|
16
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
-
|
|
18
12
|
var _utils = require("../../../../../utils");
|
|
19
|
-
|
|
20
13
|
var _constants = require("../../../../../constants");
|
|
21
|
-
|
|
22
14
|
var triggerPublish = /*#__PURE__*/function () {
|
|
23
15
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref, addToast) {
|
|
24
16
|
var entityData, client, setEntityIsPublish, entitySchema, _ref$textContent, textContent, refetchRecord, actionType, entityIsPublishedSwitch, mutation;
|
|
25
|
-
|
|
26
17
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
27
18
|
while (1) {
|
|
28
19
|
switch (_context.prev = _context.next) {
|
|
29
20
|
case 0:
|
|
30
21
|
entityData = _ref.entityData, client = _ref.client, setEntityIsPublish = _ref.setEntityIsPublish, entitySchema = _ref.entitySchema, _ref$textContent = _ref.textContent, textContent = _ref$textContent === void 0 ? '' : _ref$textContent, refetchRecord = _ref.refetchRecord;
|
|
31
|
-
|
|
32
22
|
if (Object.keys(entityData).length) {
|
|
33
23
|
_context.next = 4;
|
|
34
24
|
break;
|
|
35
25
|
}
|
|
36
|
-
|
|
37
26
|
addToast(_constants.SAVE_BEFORE_PUBLISH_MESSAGE, {
|
|
38
27
|
appearance: 'info',
|
|
39
28
|
autoDismiss: true
|
|
40
29
|
});
|
|
41
30
|
return _context.abrupt("return");
|
|
42
|
-
|
|
43
31
|
case 4:
|
|
44
32
|
actionType = textContent.toLowerCase();
|
|
45
33
|
entityIsPublishedSwitch = "".concat(actionType, "ed");
|
|
@@ -49,7 +37,6 @@ var triggerPublish = /*#__PURE__*/function () {
|
|
|
49
37
|
return client.mutate({
|
|
50
38
|
mutation: mutation
|
|
51
39
|
});
|
|
52
|
-
|
|
53
40
|
case 10:
|
|
54
41
|
addToast("".concat(textContent, "ed"), {
|
|
55
42
|
appearance: 'success',
|
|
@@ -57,7 +44,6 @@ var triggerPublish = /*#__PURE__*/function () {
|
|
|
57
44
|
});
|
|
58
45
|
_context.next = 16;
|
|
59
46
|
break;
|
|
60
|
-
|
|
61
47
|
case 13:
|
|
62
48
|
_context.prev = 13;
|
|
63
49
|
_context.t0 = _context["catch"](7);
|
|
@@ -65,11 +51,9 @@ var triggerPublish = /*#__PURE__*/function () {
|
|
|
65
51
|
appearance: 'error',
|
|
66
52
|
autoDismiss: true
|
|
67
53
|
});
|
|
68
|
-
|
|
69
54
|
case 16:
|
|
70
55
|
setEntityIsPublish(entityIsPublishedSwitch);
|
|
71
56
|
refetchRecord(true);
|
|
72
|
-
|
|
73
57
|
case 18:
|
|
74
58
|
case "end":
|
|
75
59
|
return _context.stop();
|
|
@@ -77,11 +61,9 @@ var triggerPublish = /*#__PURE__*/function () {
|
|
|
77
61
|
}
|
|
78
62
|
}, _callee, null, [[7, 13]]);
|
|
79
63
|
}));
|
|
80
|
-
|
|
81
64
|
return function triggerPublish(_x, _x2) {
|
|
82
65
|
return _ref2.apply(this, arguments);
|
|
83
66
|
};
|
|
84
67
|
}();
|
|
85
|
-
|
|
86
68
|
exports.triggerPublish = triggerPublish;
|
|
87
69
|
//# sourceMappingURL=publish.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.js","names":["triggerPublish","addToast","entityData","client","setEntityIsPublish","entitySchema","textContent","refetchRecord","Object","keys","length","SAVE_BEFORE_PUBLISH_MESSAGE","appearance","autoDismiss","actionType","toLowerCase","entityIsPublishedSwitch","mutation","buildUpdatePublishUnpublishMutation","id","mutate","message"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/shared/publish.js"],"sourcesContent":["import { buildUpdatePublishUnpublishMutation } from '../../../../../utils';\nimport { SAVE_BEFORE_PUBLISH_MESSAGE } from '../../../../../constants';\n\nconst triggerPublish = async (\n { entityData, client, setEntityIsPublish, entitySchema, textContent = '', refetchRecord },\n addToast\n) => {\n if (!Object.keys(entityData).length) {\n addToast(SAVE_BEFORE_PUBLISH_MESSAGE, {\n appearance: 'info',\n autoDismiss: true\n });\n return;\n }\n const actionType = textContent.toLowerCase();\n const entityIsPublishedSwitch = `${actionType}ed`;\n const mutation = buildUpdatePublishUnpublishMutation(entitySchema, entityData.id, actionType);\n\n try {\n await client.mutate({\n mutation\n });\n addToast(`${textContent}ed`, {\n appearance: 'success',\n autoDismiss: true\n });\n } catch (error) {\n addToast(error.message, {\n appearance: 'error',\n autoDismiss: true\n });\n }\n\n setEntityIsPublish(entityIsPublishedSwitch);\n refetchRecord(true);\n};\n\nexport { triggerPublish };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"publish.js","names":["triggerPublish","addToast","entityData","client","setEntityIsPublish","entitySchema","textContent","refetchRecord","Object","keys","length","SAVE_BEFORE_PUBLISH_MESSAGE","appearance","autoDismiss","actionType","toLowerCase","entityIsPublishedSwitch","mutation","buildUpdatePublishUnpublishMutation","id","mutate","message"],"sources":["../../../../../../src/components/EntityManager/Entity/actions-handlers/shared/publish.js"],"sourcesContent":["import { buildUpdatePublishUnpublishMutation } from '../../../../../utils';\nimport { SAVE_BEFORE_PUBLISH_MESSAGE } from '../../../../../constants';\n\nconst triggerPublish = async (\n { entityData, client, setEntityIsPublish, entitySchema, textContent = '', refetchRecord },\n addToast\n) => {\n if (!Object.keys(entityData).length) {\n addToast(SAVE_BEFORE_PUBLISH_MESSAGE, {\n appearance: 'info',\n autoDismiss: true\n });\n return;\n }\n const actionType = textContent.toLowerCase();\n const entityIsPublishedSwitch = `${actionType}ed`;\n const mutation = buildUpdatePublishUnpublishMutation(entitySchema, entityData.id, actionType);\n\n try {\n await client.mutate({\n mutation\n });\n addToast(`${textContent}ed`, {\n appearance: 'success',\n autoDismiss: true\n });\n } catch (error) {\n addToast(error.message, {\n appearance: 'error',\n autoDismiss: true\n });\n }\n\n setEntityIsPublish(entityIsPublishedSwitch);\n refetchRecord(true);\n};\n\nexport { triggerPublish };\n"],"mappings":";;;;;;;;;;;AAAA;AACA;AAEA,IAAMA,cAAc;EAAA,0FAAG,uBAErBC,QAAQ;IAAA;IAAA;MAAA;QAAA;UAAA;YADNC,UAAU,QAAVA,UAAU,EAAEC,MAAM,QAANA,MAAM,EAAEC,kBAAkB,QAAlBA,kBAAkB,EAAEC,YAAY,QAAZA,YAAY,0BAAEC,WAAW,EAAXA,WAAW,iCAAG,EAAE,qBAAEC,aAAa,QAAbA,aAAa;YAAA,IAGlFC,MAAM,CAACC,IAAI,CAACP,UAAU,CAAC,CAACQ,MAAM;cAAA;cAAA;YAAA;YACjCT,QAAQ,CAACU,sCAA2B,EAAE;cACpCC,UAAU,EAAE,MAAM;cAClBC,WAAW,EAAE;YACf,CAAC,CAAC;YAAC;UAAA;YAGCC,UAAU,GAAGR,WAAW,CAACS,WAAW,EAAE;YACtCC,uBAAuB,aAAMF,UAAU;YACvCG,QAAQ,GAAG,IAAAC,0CAAmC,EAACb,YAAY,EAAEH,UAAU,CAACiB,EAAE,EAAEL,UAAU,CAAC;YAAA;YAAA;YAAA,OAGrFX,MAAM,CAACiB,MAAM,CAAC;cAClBH,QAAQ,EAARA;YACF,CAAC,CAAC;UAAA;YACFhB,QAAQ,WAAIK,WAAW,SAAM;cAC3BM,UAAU,EAAE,SAAS;cACrBC,WAAW,EAAE;YACf,CAAC,CAAC;YAAC;YAAA;UAAA;YAAA;YAAA;YAEHZ,QAAQ,CAAC,YAAMoB,OAAO,EAAE;cACtBT,UAAU,EAAE,OAAO;cACnBC,WAAW,EAAE;YACf,CAAC,CAAC;UAAC;YAGLT,kBAAkB,CAACY,uBAAuB,CAAC;YAC3CT,aAAa,CAAC,IAAI,CAAC;UAAC;UAAA;YAAA;QAAA;MAAA;IAAA;EAAA,CACrB;EAAA,gBAhCKP,cAAc;IAAA;EAAA;AAAA,GAgCnB;AAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _submit = require("./submit");
|
|
11
|
-
|
|
12
9
|
var _default = {
|
|
13
10
|
submit: _submit.submit
|
|
14
11
|
};
|