@commercetools-frontend-extensions/export-resources-modal 1.3.4 → 1.3.6
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/README.md +1 -5
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +23 -24
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +21 -22
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +23 -24
- package/package.json +28 -30
package/README.md
CHANGED
|
@@ -26,7 +26,6 @@ import { ExportResourcesModal } from '@commercetools-frontend-extensions/export-
|
|
|
26
26
|
|
|
27
27
|
// in case export all the resources
|
|
28
28
|
<ExportResourcesModal
|
|
29
|
-
isOpen={true}
|
|
30
29
|
outputFormat="csv"
|
|
31
30
|
resourceType="category"
|
|
32
31
|
allResourcesCount={143}
|
|
@@ -55,7 +54,6 @@ import { ExportResourcesModal } from '@commercetools-frontend-extensions/export-
|
|
|
55
54
|
|
|
56
55
|
// in case export only resources matching filters & search
|
|
57
56
|
<ExportResourcesModal
|
|
58
|
-
isOpen={true}
|
|
59
57
|
outputFormat="csv"
|
|
60
58
|
resourceType="category"
|
|
61
59
|
allResourcesCount={143}
|
|
@@ -92,7 +90,6 @@ import { ExportResourcesModal } from '@commercetools-frontend-extensions/export-
|
|
|
92
90
|
|
|
93
91
|
// in case export only selected resources
|
|
94
92
|
<ExportResourcesModal
|
|
95
|
-
isOpen={true}
|
|
96
93
|
outputFormat="csv"
|
|
97
94
|
resourceType="category"
|
|
98
95
|
allResourcesCount={143}
|
|
@@ -124,8 +121,7 @@ import { ExportResourcesModal } from '@commercetools-frontend-extensions/export-
|
|
|
124
121
|
## Properties
|
|
125
122
|
|
|
126
123
|
| Props | Type | Required | Default | Description |
|
|
127
|
-
| ------------------------ | ----------------------------------------------------------------------------- | :---------------------------------------------------------: | -------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
128
|
-
| `isOpen` | `boolean` | ✅ Required | | Indicates whether the Modal is open or closed. The parent component needs to manage this state |
|
|
124
|
+
| ------------------------ | ----------------------------------------------------------------------------- | :---------------------------------------------------------: | -------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
129
125
|
| `outputFormat` | `string`<br/>Possible values: `json`, `csv` | | `json` | The file format to export |
|
|
130
126
|
| `closeModal` | `function` | ✅ Required | | Called when the page closes click on overlay, click on close button, press ESC. If the function is not provided, the page cannot be closed by any of the listed options |
|
|
131
127
|
| `resourceType` | `string` | ✅ Required | | The type of the resource, example: `category`, `product`... |
|
|
@@ -489,8 +489,8 @@ TagList.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
489
489
|
'data-testid': PropTypes__default["default"].string
|
|
490
490
|
} : {};
|
|
491
491
|
|
|
492
|
-
function ownKeys$a(
|
|
493
|
-
function _objectSpread$a(
|
|
492
|
+
function ownKeys$a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
493
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
494
494
|
function AppliedFilters(_ref) {
|
|
495
495
|
let filters = _ref.filters,
|
|
496
496
|
onFilterRemove = _ref.onFilterRemove;
|
|
@@ -553,8 +553,8 @@ AppliedFilters.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
553
553
|
onFilterRemove: PropTypes__default["default"].func.isRequired
|
|
554
554
|
} : {};
|
|
555
555
|
|
|
556
|
-
function ownKeys$9(
|
|
557
|
-
function _objectSpread$9(
|
|
556
|
+
function ownKeys$9(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
557
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$9(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$9(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
558
558
|
const IconPlaceholder = /*#__PURE__*/_styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
559
559
|
target: "e1oion860"
|
|
560
560
|
} : {
|
|
@@ -630,8 +630,8 @@ function ExportBasedOnMyViewsSelectField() {
|
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
function ownKeys$8(
|
|
634
|
-
function _objectSpread$8(
|
|
633
|
+
function ownKeys$8(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
634
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
635
635
|
function renderFileNameError(key) {
|
|
636
636
|
switch (key) {
|
|
637
637
|
case 'missing':
|
|
@@ -678,8 +678,8 @@ async function createExportOperation(_ref) {
|
|
|
678
678
|
return response;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
function ownKeys$7(
|
|
682
|
-
function _objectSpread$7(
|
|
681
|
+
function ownKeys$7(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
682
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
683
683
|
const getExportLogsLink = (projectKey, msg) => jsxRuntime.jsx(uiKit.Link, {
|
|
684
684
|
to: "/".concat(projectKey, "/operations/export/logs"),
|
|
685
685
|
children: msg
|
|
@@ -792,8 +792,8 @@ ExportConfirmationModal.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
792
792
|
onCloseParentModal: PropTypes__default["default"].func.isRequired
|
|
793
793
|
} : {};
|
|
794
794
|
|
|
795
|
-
function ownKeys$6(
|
|
796
|
-
function _objectSpread$6(
|
|
795
|
+
function ownKeys$6(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
796
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$6(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$6(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
797
797
|
function normalizeFields(fields) {
|
|
798
798
|
const result = _mapInstanceProperty__default["default"](fields).call(fields, field => {
|
|
799
799
|
if (isFilledArray(field.fields)) {
|
|
@@ -876,8 +876,8 @@ ExportFields.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
876
876
|
})).isRequired
|
|
877
877
|
} : {};
|
|
878
878
|
|
|
879
|
-
function ownKeys$5(
|
|
880
|
-
function _objectSpread$5(
|
|
879
|
+
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
880
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
881
881
|
function ExportSelectionRadioButtons() {
|
|
882
882
|
const _useTheme = designSystem.useTheme(),
|
|
883
883
|
isNewTheme = _useTheme.isNewTheme;
|
|
@@ -943,8 +943,8 @@ function ExportSelectionRadioButtons() {
|
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
-
function ownKeys$4(
|
|
947
|
-
function _objectSpread$4(
|
|
946
|
+
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
947
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
948
948
|
function ExportTextMessage() {
|
|
949
949
|
const _useExportResourcesCo = useExportResourcesContext(),
|
|
950
950
|
resourceType = _useExportResourcesCo.resourceType,
|
|
@@ -1053,8 +1053,8 @@ const ExportSelection = () => {
|
|
|
1053
1053
|
});
|
|
1054
1054
|
};
|
|
1055
1055
|
|
|
1056
|
-
function ownKeys$3(
|
|
1057
|
-
function _objectSpread$3(
|
|
1056
|
+
function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1057
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1058
1058
|
const ExportProperties = props => {
|
|
1059
1059
|
const _useTheme = designSystem.useTheme(),
|
|
1060
1060
|
isNewTheme = _useTheme.isNewTheme;
|
|
@@ -1080,8 +1080,8 @@ ExportProperties.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1080
1080
|
renderProperties: PropTypes__default["default"].func
|
|
1081
1081
|
} : {};
|
|
1082
1082
|
|
|
1083
|
-
function ownKeys$2(
|
|
1084
|
-
function _objectSpread$2(
|
|
1083
|
+
function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1084
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1085
1085
|
const outputFormatOptions = [{
|
|
1086
1086
|
value: OUTPUT_FORMATS.JSON,
|
|
1087
1087
|
label: 'JSON'
|
|
@@ -1227,7 +1227,6 @@ const ExportResourcesContext = /*#__PURE__*/react$1.createContext();
|
|
|
1227
1227
|
const ExportResourcesModalShape = PropTypes__default["default"].shape({
|
|
1228
1228
|
resourceType: PropTypes__default["default"].string.isRequired,
|
|
1229
1229
|
outputFormat: PropTypes__default["default"].string,
|
|
1230
|
-
isOpen: PropTypes__default["default"].bool.isRequired,
|
|
1231
1230
|
closeModal: PropTypes__default["default"].func.isRequired,
|
|
1232
1231
|
allResourcesCount: PropTypes__default["default"].number.isRequired,
|
|
1233
1232
|
matchingResourcesCount: PropTypes__default["default"].number,
|
|
@@ -1249,8 +1248,8 @@ const ExportResourcesModalShape = PropTypes__default["default"].shape({
|
|
|
1249
1248
|
renderProperties: PropTypes__default["default"].func
|
|
1250
1249
|
}).isRequired;
|
|
1251
1250
|
|
|
1252
|
-
function ownKeys$1(
|
|
1253
|
-
function _objectSpread$1(
|
|
1251
|
+
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1252
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1254
1253
|
const ExportResourcesContextProvider = props => {
|
|
1255
1254
|
var _context;
|
|
1256
1255
|
const todayFormatted = moment__default["default"]().format('DD-MM-YY_HH-mm');
|
|
@@ -1291,8 +1290,8 @@ ExportResourcesContextProvider.propTypes = process.env.NODE_ENV !== "production"
|
|
|
1291
1290
|
}) : {};
|
|
1292
1291
|
|
|
1293
1292
|
const _excluded = ["renderProperties"];
|
|
1294
|
-
function ownKeys(
|
|
1295
|
-
function _objectSpread(
|
|
1293
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1294
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1296
1295
|
const ExportResourcesModal = _ref => {
|
|
1297
1296
|
let renderProperties = _ref.renderProperties,
|
|
1298
1297
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1306,10 +1305,10 @@ const ExportResourcesModal = _ref => {
|
|
|
1306
1305
|
children: _ref2 => {
|
|
1307
1306
|
let formik = _ref2.formik;
|
|
1308
1307
|
return jsxRuntime.jsxs(applicationComponents.FormModalPage, {
|
|
1308
|
+
isOpen: true,
|
|
1309
1309
|
title: intl.formatMessage(messages.modalTitle, {
|
|
1310
1310
|
resourceType: resourceTypePlural
|
|
1311
1311
|
}),
|
|
1312
|
-
isOpen: props.isOpen,
|
|
1313
1312
|
onClose: props.closeModal,
|
|
1314
1313
|
onSecondaryButtonClick: props.closeModal,
|
|
1315
1314
|
isPrimaryButtonDisabled: !formik.isValid,
|
|
@@ -480,8 +480,8 @@ function TagList(props) {
|
|
|
480
480
|
TagList.displayName = 'TagList';
|
|
481
481
|
TagList.propTypes = {};
|
|
482
482
|
|
|
483
|
-
function ownKeys$9(
|
|
484
|
-
function _objectSpread$9(
|
|
483
|
+
function ownKeys$9(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
484
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$9(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$9(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
485
485
|
function AppliedFilters(_ref) {
|
|
486
486
|
let filters = _ref.filters,
|
|
487
487
|
onFilterRemove = _ref.onFilterRemove;
|
|
@@ -541,8 +541,8 @@ function AppliedFilters(_ref) {
|
|
|
541
541
|
}
|
|
542
542
|
AppliedFilters.propTypes = {};
|
|
543
543
|
|
|
544
|
-
function ownKeys$8(
|
|
545
|
-
function _objectSpread$8(
|
|
544
|
+
function ownKeys$8(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
545
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
546
546
|
const IconPlaceholder = /*#__PURE__*/_styled__default["default"]("div", {
|
|
547
547
|
target: "e1oion860"
|
|
548
548
|
} )("width:", uiKit.customProperties.spacingM, ";" + ("" ));
|
|
@@ -613,8 +613,8 @@ function ExportBasedOnMyViewsSelectField() {
|
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
|
|
616
|
-
function ownKeys$7(
|
|
617
|
-
function _objectSpread$7(
|
|
616
|
+
function ownKeys$7(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
617
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
618
618
|
function renderFileNameError(key) {
|
|
619
619
|
switch (key) {
|
|
620
620
|
case 'missing':
|
|
@@ -661,8 +661,8 @@ async function createExportOperation(_ref) {
|
|
|
661
661
|
return response;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
function ownKeys$6(
|
|
665
|
-
function _objectSpread$6(
|
|
664
|
+
function ownKeys$6(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
665
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
666
666
|
const getExportLogsLink = (projectKey, msg) => jsxRuntime.jsx(uiKit.Link, {
|
|
667
667
|
to: "/".concat(projectKey, "/operations/export/logs"),
|
|
668
668
|
children: msg
|
|
@@ -770,8 +770,8 @@ function ExportConfirmationModal(props) {
|
|
|
770
770
|
}
|
|
771
771
|
ExportConfirmationModal.propTypes = {};
|
|
772
772
|
|
|
773
|
-
function ownKeys$5(
|
|
774
|
-
function _objectSpread$5(
|
|
773
|
+
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
774
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$5(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$5(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
775
775
|
function normalizeFields(fields) {
|
|
776
776
|
const result = _mapInstanceProperty__default["default"](fields).call(fields, field => {
|
|
777
777
|
if (isFilledArray(field.fields)) {
|
|
@@ -842,8 +842,8 @@ function ExportFields(_ref2) {
|
|
|
842
842
|
}
|
|
843
843
|
ExportFields.propTypes = {};
|
|
844
844
|
|
|
845
|
-
function ownKeys$4(
|
|
846
|
-
function _objectSpread$4(
|
|
845
|
+
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
846
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
847
847
|
function ExportSelectionRadioButtons() {
|
|
848
848
|
const _useTheme = designSystem.useTheme(),
|
|
849
849
|
isNewTheme = _useTheme.isNewTheme;
|
|
@@ -909,8 +909,8 @@ function ExportSelectionRadioButtons() {
|
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
function ownKeys$3(
|
|
913
|
-
function _objectSpread$3(
|
|
912
|
+
function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
913
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
914
914
|
function ExportTextMessage() {
|
|
915
915
|
const _useExportResourcesCo = useExportResourcesContext(),
|
|
916
916
|
resourceType = _useExportResourcesCo.resourceType,
|
|
@@ -1019,8 +1019,8 @@ const ExportSelection = () => {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
};
|
|
1021
1021
|
|
|
1022
|
-
function ownKeys$2(
|
|
1023
|
-
function _objectSpread$2(
|
|
1022
|
+
function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1023
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1024
1024
|
const ExportProperties = props => {
|
|
1025
1025
|
const _useTheme = designSystem.useTheme(),
|
|
1026
1026
|
isNewTheme = _useTheme.isNewTheme;
|
|
@@ -1044,8 +1044,8 @@ const ExportProperties = props => {
|
|
|
1044
1044
|
};
|
|
1045
1045
|
ExportProperties.propTypes = {};
|
|
1046
1046
|
|
|
1047
|
-
function ownKeys$1(
|
|
1048
|
-
function _objectSpread$1(
|
|
1047
|
+
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1048
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1049
1049
|
const outputFormatOptions = [{
|
|
1050
1050
|
value: OUTPUT_FORMATS.JSON,
|
|
1051
1051
|
label: 'JSON'
|
|
@@ -1189,7 +1189,6 @@ const ExportResourcesContext = /*#__PURE__*/react$1.createContext();
|
|
|
1189
1189
|
PropTypes__default["default"].shape({
|
|
1190
1190
|
resourceType: PropTypes__default["default"].string.isRequired,
|
|
1191
1191
|
outputFormat: PropTypes__default["default"].string,
|
|
1192
|
-
isOpen: PropTypes__default["default"].bool.isRequired,
|
|
1193
1192
|
closeModal: PropTypes__default["default"].func.isRequired,
|
|
1194
1193
|
allResourcesCount: PropTypes__default["default"].number.isRequired,
|
|
1195
1194
|
matchingResourcesCount: PropTypes__default["default"].number,
|
|
@@ -1249,8 +1248,8 @@ ExportResourcesContextProvider.displayName = 'ExportResourcesContextProvider';
|
|
|
1249
1248
|
ExportResourcesContextProvider.propTypes = {};
|
|
1250
1249
|
|
|
1251
1250
|
const _excluded = ["renderProperties"];
|
|
1252
|
-
function ownKeys(
|
|
1253
|
-
function _objectSpread(
|
|
1251
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1252
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1254
1253
|
const ExportResourcesModal = _ref => {
|
|
1255
1254
|
let renderProperties = _ref.renderProperties,
|
|
1256
1255
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1264,10 +1263,10 @@ const ExportResourcesModal = _ref => {
|
|
|
1264
1263
|
children: _ref2 => {
|
|
1265
1264
|
let formik = _ref2.formik;
|
|
1266
1265
|
return jsxRuntime.jsxs(applicationComponents.FormModalPage, {
|
|
1266
|
+
isOpen: true,
|
|
1267
1267
|
title: intl.formatMessage(messages.modalTitle, {
|
|
1268
1268
|
resourceType: resourceTypePlural
|
|
1269
1269
|
}),
|
|
1270
|
-
isOpen: props.isOpen,
|
|
1271
1270
|
onClose: props.closeModal,
|
|
1272
1271
|
onSecondaryButtonClick: props.closeModal,
|
|
1273
1272
|
isPrimaryButtonDisabled: !formik.isValid,
|
|
@@ -464,8 +464,8 @@ TagList.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
464
464
|
'data-testid': PropTypes.string
|
|
465
465
|
} : {};
|
|
466
466
|
|
|
467
|
-
function ownKeys$a(
|
|
468
|
-
function _objectSpread$a(
|
|
467
|
+
function ownKeys$a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
468
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
469
469
|
function AppliedFilters(_ref) {
|
|
470
470
|
let filters = _ref.filters,
|
|
471
471
|
onFilterRemove = _ref.onFilterRemove;
|
|
@@ -528,8 +528,8 @@ AppliedFilters.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
528
528
|
onFilterRemove: PropTypes.func.isRequired
|
|
529
529
|
} : {};
|
|
530
530
|
|
|
531
|
-
function ownKeys$9(
|
|
532
|
-
function _objectSpread$9(
|
|
531
|
+
function ownKeys$9(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
532
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$9(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$9(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
533
533
|
const IconPlaceholder = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
534
534
|
target: "e1oion860"
|
|
535
535
|
} : {
|
|
@@ -605,8 +605,8 @@ function ExportBasedOnMyViewsSelectField() {
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
function ownKeys$8(
|
|
609
|
-
function _objectSpread$8(
|
|
608
|
+
function ownKeys$8(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
609
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
610
610
|
function renderFileNameError(key) {
|
|
611
611
|
switch (key) {
|
|
612
612
|
case 'missing':
|
|
@@ -653,8 +653,8 @@ async function createExportOperation(_ref) {
|
|
|
653
653
|
return response;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
function ownKeys$7(
|
|
657
|
-
function _objectSpread$7(
|
|
656
|
+
function ownKeys$7(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
657
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
658
658
|
const getExportLogsLink = (projectKey, msg) => jsx(Link, {
|
|
659
659
|
to: "/".concat(projectKey, "/operations/export/logs"),
|
|
660
660
|
children: msg
|
|
@@ -767,8 +767,8 @@ ExportConfirmationModal.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
767
767
|
onCloseParentModal: PropTypes.func.isRequired
|
|
768
768
|
} : {};
|
|
769
769
|
|
|
770
|
-
function ownKeys$6(
|
|
771
|
-
function _objectSpread$6(
|
|
770
|
+
function ownKeys$6(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
771
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$6(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$6(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
772
772
|
function normalizeFields(fields) {
|
|
773
773
|
const result = _mapInstanceProperty(fields).call(fields, field => {
|
|
774
774
|
if (isFilledArray(field.fields)) {
|
|
@@ -851,8 +851,8 @@ ExportFields.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
851
851
|
})).isRequired
|
|
852
852
|
} : {};
|
|
853
853
|
|
|
854
|
-
function ownKeys$5(
|
|
855
|
-
function _objectSpread$5(
|
|
854
|
+
function ownKeys$5(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
855
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
856
856
|
function ExportSelectionRadioButtons() {
|
|
857
857
|
const _useTheme = useTheme(),
|
|
858
858
|
isNewTheme = _useTheme.isNewTheme;
|
|
@@ -918,8 +918,8 @@ function ExportSelectionRadioButtons() {
|
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
-
function ownKeys$4(
|
|
922
|
-
function _objectSpread$4(
|
|
921
|
+
function ownKeys$4(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
922
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
923
923
|
function ExportTextMessage() {
|
|
924
924
|
const _useExportResourcesCo = useExportResourcesContext(),
|
|
925
925
|
resourceType = _useExportResourcesCo.resourceType,
|
|
@@ -1028,8 +1028,8 @@ const ExportSelection = () => {
|
|
|
1028
1028
|
});
|
|
1029
1029
|
};
|
|
1030
1030
|
|
|
1031
|
-
function ownKeys$3(
|
|
1032
|
-
function _objectSpread$3(
|
|
1031
|
+
function ownKeys$3(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1032
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1033
1033
|
const ExportProperties = props => {
|
|
1034
1034
|
const _useTheme = useTheme(),
|
|
1035
1035
|
isNewTheme = _useTheme.isNewTheme;
|
|
@@ -1055,8 +1055,8 @@ ExportProperties.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1055
1055
|
renderProperties: PropTypes.func
|
|
1056
1056
|
} : {};
|
|
1057
1057
|
|
|
1058
|
-
function ownKeys$2(
|
|
1059
|
-
function _objectSpread$2(
|
|
1058
|
+
function ownKeys$2(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1059
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1060
1060
|
const outputFormatOptions = [{
|
|
1061
1061
|
value: OUTPUT_FORMATS.JSON,
|
|
1062
1062
|
label: 'JSON'
|
|
@@ -1202,7 +1202,6 @@ const ExportResourcesContext = /*#__PURE__*/createContext();
|
|
|
1202
1202
|
const ExportResourcesModalShape = PropTypes.shape({
|
|
1203
1203
|
resourceType: PropTypes.string.isRequired,
|
|
1204
1204
|
outputFormat: PropTypes.string,
|
|
1205
|
-
isOpen: PropTypes.bool.isRequired,
|
|
1206
1205
|
closeModal: PropTypes.func.isRequired,
|
|
1207
1206
|
allResourcesCount: PropTypes.number.isRequired,
|
|
1208
1207
|
matchingResourcesCount: PropTypes.number,
|
|
@@ -1224,8 +1223,8 @@ const ExportResourcesModalShape = PropTypes.shape({
|
|
|
1224
1223
|
renderProperties: PropTypes.func
|
|
1225
1224
|
}).isRequired;
|
|
1226
1225
|
|
|
1227
|
-
function ownKeys$1(
|
|
1228
|
-
function _objectSpread$1(
|
|
1226
|
+
function ownKeys$1(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1227
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1229
1228
|
const ExportResourcesContextProvider = props => {
|
|
1230
1229
|
var _context;
|
|
1231
1230
|
const todayFormatted = moment().format('DD-MM-YY_HH-mm');
|
|
@@ -1266,8 +1265,8 @@ ExportResourcesContextProvider.propTypes = process.env.NODE_ENV !== "production"
|
|
|
1266
1265
|
}) : {};
|
|
1267
1266
|
|
|
1268
1267
|
const _excluded = ["renderProperties"];
|
|
1269
|
-
function ownKeys(
|
|
1270
|
-
function _objectSpread(
|
|
1268
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1269
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1271
1270
|
const ExportResourcesModal = _ref => {
|
|
1272
1271
|
let renderProperties = _ref.renderProperties,
|
|
1273
1272
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1281,10 +1280,10 @@ const ExportResourcesModal = _ref => {
|
|
|
1281
1280
|
children: _ref2 => {
|
|
1282
1281
|
let formik = _ref2.formik;
|
|
1283
1282
|
return jsxs(FormModalPage, {
|
|
1283
|
+
isOpen: true,
|
|
1284
1284
|
title: intl.formatMessage(messages.modalTitle, {
|
|
1285
1285
|
resourceType: resourceTypePlural
|
|
1286
1286
|
}),
|
|
1287
|
-
isOpen: props.isOpen,
|
|
1288
1287
|
onClose: props.closeModal,
|
|
1289
1288
|
onSecondaryButtonClick: props.closeModal,
|
|
1290
1289
|
isPrimaryButtonDisabled: !formik.isValid,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/export-resources-modal",
|
|
3
3
|
"description": "Shared export modal for exporting resources",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.6",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,47 +15,45 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.
|
|
19
|
-
"@babel/runtime-corejs3": "7.
|
|
18
|
+
"@babel/runtime": "7.23.2",
|
|
19
|
+
"@babel/runtime-corejs3": "7.23.2",
|
|
20
20
|
"@emotion/react": "11.11.1",
|
|
21
21
|
"@emotion/styled": "11.11.0",
|
|
22
|
-
"@formatjs/cli": "6.1
|
|
22
|
+
"@formatjs/cli": "6.2.1",
|
|
23
23
|
"formik": "^2.2.9",
|
|
24
24
|
"gql-query-builder": "^3.8.0",
|
|
25
|
-
"jest": "29.
|
|
25
|
+
"jest": "29.7.0",
|
|
26
26
|
"moment": "2.29.4",
|
|
27
27
|
"omit-empty-es": "^1.1.3",
|
|
28
28
|
"prop-types": "15.8.1",
|
|
29
29
|
"react": "17.0.2",
|
|
30
|
-
"react-intl": "6.
|
|
30
|
+
"react-intl": "6.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@commercetools-frontend/actions-global": "22.
|
|
34
|
-
"@commercetools-frontend/application-components": "22.
|
|
35
|
-
"@commercetools-frontend/application-shell": "22.
|
|
36
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
37
|
-
"@commercetools-frontend/constants": "22.
|
|
38
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
39
|
-
"@commercetools-frontend/sdk": "
|
|
40
|
-
"@commercetools-frontend/sentry": "22.
|
|
41
|
-
"@commercetools-frontend/ui-kit": "
|
|
42
|
-
"@commercetools-uikit/design-system": "
|
|
43
|
-
"@preconstruct/cli": "
|
|
44
|
-
"
|
|
45
|
-
"rimraf": "3.0.2"
|
|
33
|
+
"@commercetools-frontend/actions-global": "22.10.0",
|
|
34
|
+
"@commercetools-frontend/application-components": "22.10.0",
|
|
35
|
+
"@commercetools-frontend/application-shell": "22.10.0",
|
|
36
|
+
"@commercetools-frontend/application-shell-connectors": "22.10.0",
|
|
37
|
+
"@commercetools-frontend/constants": "22.10.0",
|
|
38
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.10.0",
|
|
39
|
+
"@commercetools-frontend/sdk": "22.10.0",
|
|
40
|
+
"@commercetools-frontend/sentry": "22.10.0",
|
|
41
|
+
"@commercetools-frontend/ui-kit": "16.7.5",
|
|
42
|
+
"@commercetools-uikit/design-system": "16.7.5",
|
|
43
|
+
"@preconstruct/cli": "2.2.1",
|
|
44
|
+
"rimraf": "5.0.5"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
|
-
"@commercetools-frontend/actions-global": "
|
|
49
|
-
"@commercetools-frontend/application-components": "
|
|
50
|
-
"@commercetools-frontend/application-shell": "
|
|
51
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
52
|
-
"@commercetools-frontend/constants": "
|
|
53
|
-
"@commercetools-frontend/jest-preset-mc-app": "
|
|
54
|
-
"@commercetools-frontend/sdk": "
|
|
55
|
-
"@commercetools-frontend/sentry": "
|
|
56
|
-
"@commercetools-frontend/ui-kit": "
|
|
57
|
-
"@commercetools-uikit/design-system": "
|
|
58
|
-
"msw": "^0.49.0"
|
|
47
|
+
"@commercetools-frontend/actions-global": "22.10.0",
|
|
48
|
+
"@commercetools-frontend/application-components": "22.10.0",
|
|
49
|
+
"@commercetools-frontend/application-shell": "22.10.0",
|
|
50
|
+
"@commercetools-frontend/application-shell-connectors": "22.10.0",
|
|
51
|
+
"@commercetools-frontend/constants": "22.10.0",
|
|
52
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.10.0",
|
|
53
|
+
"@commercetools-frontend/sdk": "22.10.0",
|
|
54
|
+
"@commercetools-frontend/sentry": "22.10.0",
|
|
55
|
+
"@commercetools-frontend/ui-kit": "16.7.5",
|
|
56
|
+
"@commercetools-uikit/design-system": "16.7.5"
|
|
59
57
|
},
|
|
60
58
|
"scripts": {
|
|
61
59
|
"build": "rimraf dist && preconstruct build",
|