@commercetools-frontend-extensions/export-resources-modal 5.1.4 → 5.2.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/dist/{active-drag-drop-area-69334379.esm.js → active-drag-drop-area-0c0e312e.esm.js} +2 -2
- package/dist/{active-drag-drop-area-8f777e8c.cjs.dev.js → active-drag-drop-area-42bf7adf.cjs.dev.js} +2 -2
- package/dist/{active-drag-drop-area-a4f63d4c.cjs.prod.js → active-drag-drop-area-6571c6f1.cjs.prod.js} +2 -2
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +2 -2
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +2 -2
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +2 -2
- package/dist/{de-1903dccf.cjs.prod.js → de-172c3905.cjs.prod.js} +187 -7
- package/dist/{de-2ad4e0d7.esm.js → de-458f4116.esm.js} +187 -7
- package/dist/de-c18aeb38.cjs.dev.js +429 -0
- package/dist/declarations/src/@constants/urls.d.ts +1 -0
- package/dist/{en-39d60fa2.cjs.dev.js → en-68174953.cjs.dev.js} +1 -1
- package/dist/{en-34f04489.cjs.prod.js → en-951cd344.cjs.prod.js} +1 -1
- package/dist/{en-4ca9fb4c.esm.js → en-bf084198.esm.js} +1 -1
- package/dist/{enabled-drop-area-18d6db32.esm.js → enabled-drop-area-07845761.esm.js} +2 -2
- package/dist/{enabled-drop-area-78a2526c.cjs.prod.js → enabled-drop-area-a86820f8.cjs.prod.js} +2 -2
- package/dist/{enabled-drop-area-6b5571a5.cjs.dev.js → enabled-drop-area-f0ede72d.cjs.dev.js} +2 -2
- package/dist/{es-01c31bc7.cjs.dev.js → es-38a3a3ae.cjs.dev.js} +188 -8
- package/dist/{es-4658edf6.esm.js → es-a8553ca8.esm.js} +188 -8
- package/dist/es-b0a9fb31.cjs.prod.js +429 -0
- package/dist/{file-dropped-area-85a97af4.esm.js → file-dropped-area-016972ea.esm.js} +1 -1
- package/dist/{file-dropped-area-5a67b071.cjs.dev.js → file-dropped-area-2c4b364b.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-d0430070.cjs.prod.js → file-dropped-area-7de84e37.cjs.prod.js} +1 -1
- package/dist/{fr-FR-0a721f97.cjs.prod.js → fr-FR-8146efa8.cjs.prod.js} +188 -8
- package/dist/{fr-FR-3057d941.esm.js → fr-FR-87237d20.esm.js} +188 -8
- package/dist/fr-FR-97c22617.cjs.dev.js +429 -0
- package/dist/{index-9cb88a69.cjs.prod.js → index-47c5bc92.cjs.prod.js} +69 -90
- package/dist/{index-e8859363.cjs.dev.js → index-7cbf648f.cjs.dev.js} +69 -90
- package/dist/{index-f20e86f3.esm.js → index-b6f8d138.esm.js} +70 -91
- package/dist/{pt-BR-442e5bba.cjs.dev.js → pt-BR-c42a98aa.cjs.dev.js} +188 -8
- package/dist/pt-BR-c725734e.cjs.prod.js +429 -0
- package/dist/{pt-BR-b849606a.esm.js → pt-BR-cf6abfcc.esm.js} +188 -8
- package/package.json +15 -15
- package/dist/de-b820e753.cjs.dev.js +0 -249
- package/dist/es-7959f578.cjs.prod.js +0 -249
- package/dist/fr-FR-d641720a.cjs.dev.js +0 -249
- package/dist/pt-BR-89644b77.cjs.prod.js +0 -249
|
@@ -19,7 +19,6 @@ var reactIntl = require('react-intl');
|
|
|
19
19
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
20
20
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
21
21
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
22
|
-
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
23
22
|
var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
|
|
24
23
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
25
24
|
var fullstory = require('@commercetools-frontend/fullstory');
|
|
@@ -46,6 +45,7 @@ var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
46
45
|
var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
47
46
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
48
47
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
48
|
+
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
49
49
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
50
50
|
var actionsGlobal = require('@commercetools-frontend/actions-global');
|
|
51
51
|
var constants = require('@commercetools-frontend/constants');
|
|
@@ -76,7 +76,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
76
76
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
77
77
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
78
78
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
79
|
-
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
80
79
|
var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
|
|
81
80
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
82
81
|
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
@@ -95,6 +94,7 @@ var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceP
|
|
|
95
94
|
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
96
95
|
var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
|
|
97
96
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
97
|
+
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
98
98
|
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
99
99
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
100
100
|
var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
@@ -278,10 +278,10 @@ var messages = reactIntl.defineMessages({
|
|
|
278
278
|
description: 'In Export fields selection - Search by entering the exact field name message',
|
|
279
279
|
defaultMessage: 'Try searching by entering the exact field name.'
|
|
280
280
|
},
|
|
281
|
-
|
|
282
|
-
id: 'ExportResourcesModal.
|
|
283
|
-
description: 'Label for
|
|
284
|
-
defaultMessage: 'Scope'
|
|
281
|
+
scope: {
|
|
282
|
+
id: 'ExportResourcesModal.scope',
|
|
283
|
+
description: 'Label for "Scope:"',
|
|
284
|
+
defaultMessage: 'Scope:'
|
|
285
285
|
},
|
|
286
286
|
exportScopeAllCategories: {
|
|
287
287
|
id: 'ExportResourcesModal.exportScopeAllCategories',
|
|
@@ -398,30 +398,30 @@ var messages = reactIntl.defineMessages({
|
|
|
398
398
|
description: 'Label for Export Filtered without count',
|
|
399
399
|
defaultMessage: 'Export filtered'
|
|
400
400
|
},
|
|
401
|
-
|
|
402
|
-
id: 'ExportResourcesModal.
|
|
403
|
-
description: 'Label for
|
|
404
|
-
defaultMessage: '
|
|
401
|
+
saveAs: {
|
|
402
|
+
id: 'ExportResourcesModal.saveAs',
|
|
403
|
+
description: 'Label for "Save as:"',
|
|
404
|
+
defaultMessage: 'Save as:'
|
|
405
405
|
},
|
|
406
406
|
selected: {
|
|
407
407
|
id: 'ExportResourcesModal.selected',
|
|
408
408
|
description: 'Label for total Selected',
|
|
409
409
|
defaultMessage: '{total} selected'
|
|
410
410
|
},
|
|
411
|
-
|
|
412
|
-
id: 'ExportResourcesModal.
|
|
413
|
-
description: '
|
|
414
|
-
defaultMessage: '
|
|
411
|
+
fillRows: {
|
|
412
|
+
id: 'ExportResourcesModal.fillRows',
|
|
413
|
+
description: 'A checkbox label for filling rows with complete data',
|
|
414
|
+
defaultMessage: 'Fill all rows with complete data'
|
|
415
415
|
},
|
|
416
|
-
|
|
417
|
-
id: 'ExportResourcesModal.
|
|
418
|
-
description: 'A
|
|
419
|
-
defaultMessage: '
|
|
416
|
+
moreInformation: {
|
|
417
|
+
id: 'ExportResourcesModal.moreInformation',
|
|
418
|
+
description: 'A label for more information',
|
|
419
|
+
defaultMessage: 'For more information, refer to the {documentationLink}'
|
|
420
420
|
},
|
|
421
|
-
|
|
422
|
-
id: 'ExportResourcesModal.
|
|
423
|
-
description: 'A
|
|
424
|
-
defaultMessage: '
|
|
421
|
+
documentation: {
|
|
422
|
+
id: 'ExportResourcesModal.documentation',
|
|
423
|
+
description: 'A label for Documentation link',
|
|
424
|
+
defaultMessage: 'Documentation'
|
|
425
425
|
},
|
|
426
426
|
loadMoreFields: {
|
|
427
427
|
id: 'ExportResourcesModal.loadMoreFields',
|
|
@@ -678,6 +678,10 @@ const renderQueryPredicateError = key => {
|
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
|
|
681
|
+
const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
|
|
682
|
+
const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
|
|
683
|
+
const CSV_STRUCTURE_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data#structure-of-exported-csv-files';
|
|
684
|
+
|
|
681
685
|
function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
682
686
|
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
|
|
683
687
|
let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
@@ -847,9 +851,6 @@ const OUTPUT_FORMAT_OPTIONS = [{
|
|
|
847
851
|
label: 'JSON'
|
|
848
852
|
}];
|
|
849
853
|
|
|
850
|
-
const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
|
|
851
|
-
const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
|
|
852
|
-
|
|
853
854
|
const resourceTypeMessages = {
|
|
854
855
|
[EXPORTABLE_RESOURCES.CATEGORY]: {
|
|
855
856
|
exportScopeAll: messages.exportScopeAllCategories,
|
|
@@ -1576,7 +1577,7 @@ const useStartExportOperation = props => {
|
|
|
1576
1577
|
fileName: appendCsvOrJsonExtensionIfAbsent(values.fileName, values.outputFormat),
|
|
1577
1578
|
fileFormat: values.outputFormat,
|
|
1578
1579
|
locales,
|
|
1579
|
-
fillRows: values.fillRows,
|
|
1580
|
+
fillRows: values.outputFormat === 'csv' && values.fillRows,
|
|
1580
1581
|
fields,
|
|
1581
1582
|
where,
|
|
1582
1583
|
filters
|
|
@@ -1807,43 +1808,32 @@ const useValidateExportOperation = () => {
|
|
|
1807
1808
|
|
|
1808
1809
|
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; }
|
|
1809
1810
|
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; }
|
|
1810
|
-
const
|
|
1811
|
+
const ExportPreferenceSection = () => {
|
|
1811
1812
|
const _useExportResourcesMo = useExportResourcesModalContext(),
|
|
1812
1813
|
formik = _useExportResourcesMo.formik;
|
|
1813
|
-
return jsxRuntime.
|
|
1814
|
-
children: jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1814
|
+
return jsxRuntime.jsxs("div", {
|
|
1815
|
+
children: [jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1815
1816
|
isChecked: _valuesInstanceProperty__default["default"](formik).fillRows,
|
|
1816
1817
|
onChange: e => {
|
|
1817
1818
|
formik.setFieldValue('fillRows', e.target.checked);
|
|
1818
1819
|
},
|
|
1819
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.
|
|
1820
|
-
})
|
|
1821
|
-
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
})
|
|
1820
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.fillRows))
|
|
1821
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1822
|
+
scale: "xl",
|
|
1823
|
+
children: [jsxRuntime.jsx("div", {}), jsxRuntime.jsx(uiKit.Text.Caption, {
|
|
1824
|
+
intlMessage: _objectSpread$a(_objectSpread$a({}, messages.moreInformation), {}, {
|
|
1825
|
+
values: {
|
|
1826
|
+
documentationLink: jsxRuntime.jsx(uiKit.Link, {
|
|
1827
|
+
intlMessage: messages.documentation,
|
|
1828
|
+
isExternal: true,
|
|
1829
|
+
to: CSV_STRUCTURE_DOCUMENTATION_LINK
|
|
1830
|
+
}, "documentation-link")
|
|
1831
|
+
}
|
|
1832
|
+
})
|
|
1833
|
+
})]
|
|
1834
|
+
})]
|
|
1834
1835
|
});
|
|
1835
1836
|
};
|
|
1836
|
-
const ExportPreferenceSection = () => {
|
|
1837
|
-
const _useExportResourcesMo3 = useExportResourcesModalContext(),
|
|
1838
|
-
resourceType = _useExportResourcesMo3.resourceType;
|
|
1839
|
-
if (resourceType === 'order') {
|
|
1840
|
-
return jsxRuntime.jsx(OrderPreferences, {});
|
|
1841
|
-
}
|
|
1842
|
-
if (resourceType === 'product') {
|
|
1843
|
-
return jsxRuntime.jsx(ProductPreferences, {});
|
|
1844
|
-
}
|
|
1845
|
-
return null;
|
|
1846
|
-
};
|
|
1847
1837
|
|
|
1848
1838
|
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; }
|
|
1849
1839
|
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; }
|
|
@@ -1922,7 +1912,6 @@ function ExportScopeSection() {
|
|
|
1922
1912
|
}
|
|
1923
1913
|
|
|
1924
1914
|
const ExportFileSettingsStep = () => {
|
|
1925
|
-
var _context;
|
|
1926
1915
|
const intl = reactIntl.useIntl();
|
|
1927
1916
|
const _useExportResourcesMo = useExportResourcesModalContext(),
|
|
1928
1917
|
formik = _useExportResourcesMo.formik,
|
|
@@ -1937,9 +1926,7 @@ const ExportFileSettingsStep = () => {
|
|
|
1937
1926
|
setLocaleOption(LocaleOption.Selected);
|
|
1938
1927
|
}
|
|
1939
1928
|
};
|
|
1940
|
-
|
|
1941
|
-
// TODO: make this dynamic based on the resource type & output format (more scalable)
|
|
1942
|
-
const shouldShowPreferences = _includesInstanceProperty__default["default"](_context = ['order', 'product']).call(_context, resourceType) && _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
|
|
1929
|
+
const shouldShowPreferences = _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
|
|
1943
1930
|
return jsxRuntime.jsx(applicationComponents.FormDialog, {
|
|
1944
1931
|
isOpen: true,
|
|
1945
1932
|
title: `${intl.formatMessage(messages.stepCount, {
|
|
@@ -1961,31 +1948,22 @@ const ExportFileSettingsStep = () => {
|
|
|
1961
1948
|
children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
1962
1949
|
scale: "l",
|
|
1963
1950
|
children: jsxRuntime.jsxs(uiKit.Grid, {
|
|
1964
|
-
gridRowGap: uiKit.designTokens.
|
|
1951
|
+
gridRowGap: uiKit.designTokens.spacingM,
|
|
1965
1952
|
gridTemplateColumns: `calc(${uiKit.designTokens.constraint3} + ${uiKit.designTokens.spacingL}) auto`,
|
|
1966
1953
|
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1967
1954
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1968
|
-
intlMessage: messages.
|
|
1955
|
+
intlMessage: messages.scope
|
|
1969
1956
|
})
|
|
1970
1957
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1971
1958
|
children: jsxRuntime.jsx(ExportScopeSection, {})
|
|
1972
1959
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1973
1960
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1974
|
-
intlMessage: messages.
|
|
1961
|
+
intlMessage: messages.saveAs
|
|
1975
1962
|
})
|
|
1976
1963
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1977
1964
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1978
|
-
scale: "
|
|
1979
|
-
children: [jsxRuntime.jsx(
|
|
1980
|
-
name: "outputFormat",
|
|
1981
|
-
onChange: handleOutputFormatChange,
|
|
1982
|
-
onBlur: formik.handleBlur,
|
|
1983
|
-
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
1984
|
-
title: intl.formatMessage(messages.outputFormat),
|
|
1985
|
-
options: OUTPUT_FORMAT_OPTIONS,
|
|
1986
|
-
menuPortalTarget: document.body,
|
|
1987
|
-
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1988
|
-
}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1965
|
+
scale: "s",
|
|
1966
|
+
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1989
1967
|
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
1990
1968
|
name: "fileName",
|
|
1991
1969
|
onChange: formik.handleChange,
|
|
@@ -1996,16 +1974,17 @@ const ExportFileSettingsStep = () => {
|
|
|
1996
1974
|
errors: mapFormikErrors(formik.errors.fileName),
|
|
1997
1975
|
renderError: renderFileNameError
|
|
1998
1976
|
})
|
|
1999
|
-
})
|
|
1977
|
+
}), jsxRuntime.jsx(uiKit.SelectField, {
|
|
1978
|
+
name: "outputFormat",
|
|
1979
|
+
onChange: handleOutputFormatChange,
|
|
1980
|
+
onBlur: formik.handleBlur,
|
|
1981
|
+
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
1982
|
+
title: intl.formatMessage(messages.outputFormat),
|
|
1983
|
+
options: OUTPUT_FORMAT_OPTIONS,
|
|
1984
|
+
menuPortalTarget: document.body,
|
|
1985
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1986
|
+
}), shouldShowPreferences && jsxRuntime.jsx(ExportPreferenceSection, {})]
|
|
2000
1987
|
})
|
|
2001
|
-
}), shouldShowPreferences && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2002
|
-
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2003
|
-
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2004
|
-
intlMessage: messages.exportPreferences
|
|
2005
|
-
})
|
|
2006
|
-
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2007
|
-
children: jsxRuntime.jsx(ExportPreferenceSection, {})
|
|
2008
|
-
})]
|
|
2009
1988
|
})]
|
|
2010
1989
|
})
|
|
2011
1990
|
})
|
|
@@ -3193,11 +3172,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3193
3172
|
return /*#__PURE__*/react.css("" , "" );
|
|
3194
3173
|
}
|
|
3195
3174
|
|
|
3196
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3175
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-6571c6f1.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
3197
3176
|
|
|
3198
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3177
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-a86820f8.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
3199
3178
|
|
|
3200
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3179
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-7de84e37.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
3201
3180
|
|
|
3202
3181
|
function getDropArea(_ref) {
|
|
3203
3182
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -3278,17 +3257,17 @@ const getChunkImport = locale => {
|
|
|
3278
3257
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3279
3258
|
switch (intlLocale) {
|
|
3280
3259
|
case 'de':
|
|
3281
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-
|
|
3260
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-172c3905.cjs.prod.js'); });
|
|
3282
3261
|
case 'es':
|
|
3283
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-
|
|
3262
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-b0a9fb31.cjs.prod.js'); });
|
|
3284
3263
|
case 'fr-FR':
|
|
3285
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-
|
|
3264
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-8146efa8.cjs.prod.js'); });
|
|
3286
3265
|
case 'ja':
|
|
3287
3266
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-37632763.cjs.prod.js'); });
|
|
3288
3267
|
case 'pt-BR':
|
|
3289
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
3268
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-c725734e.cjs.prod.js'); });
|
|
3290
3269
|
default:
|
|
3291
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-
|
|
3270
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-951cd344.cjs.prod.js'); });
|
|
3292
3271
|
}
|
|
3293
3272
|
};
|
|
3294
3273
|
const loadMessages = async locale => {
|
|
@@ -19,7 +19,6 @@ var reactIntl = require('react-intl');
|
|
|
19
19
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
20
20
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
21
21
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
22
|
-
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
23
22
|
var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
|
|
24
23
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
25
24
|
var fullstory = require('@commercetools-frontend/fullstory');
|
|
@@ -46,6 +45,7 @@ var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
46
45
|
var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
47
46
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
48
47
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
48
|
+
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
49
49
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
50
50
|
var actionsGlobal = require('@commercetools-frontend/actions-global');
|
|
51
51
|
var constants = require('@commercetools-frontend/constants');
|
|
@@ -76,7 +76,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
76
76
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
77
77
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
78
78
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
79
|
-
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
80
79
|
var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
|
|
81
80
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
82
81
|
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
@@ -95,6 +94,7 @@ var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceP
|
|
|
95
94
|
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
96
95
|
var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
|
|
97
96
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
97
|
+
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
98
98
|
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
99
99
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
100
100
|
var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
@@ -278,10 +278,10 @@ var messages = reactIntl.defineMessages({
|
|
|
278
278
|
description: 'In Export fields selection - Search by entering the exact field name message',
|
|
279
279
|
defaultMessage: 'Try searching by entering the exact field name.'
|
|
280
280
|
},
|
|
281
|
-
|
|
282
|
-
id: 'ExportResourcesModal.
|
|
283
|
-
description: 'Label for
|
|
284
|
-
defaultMessage: 'Scope'
|
|
281
|
+
scope: {
|
|
282
|
+
id: 'ExportResourcesModal.scope',
|
|
283
|
+
description: 'Label for "Scope:"',
|
|
284
|
+
defaultMessage: 'Scope:'
|
|
285
285
|
},
|
|
286
286
|
exportScopeAllCategories: {
|
|
287
287
|
id: 'ExportResourcesModal.exportScopeAllCategories',
|
|
@@ -398,30 +398,30 @@ var messages = reactIntl.defineMessages({
|
|
|
398
398
|
description: 'Label for Export Filtered without count',
|
|
399
399
|
defaultMessage: 'Export filtered'
|
|
400
400
|
},
|
|
401
|
-
|
|
402
|
-
id: 'ExportResourcesModal.
|
|
403
|
-
description: 'Label for
|
|
404
|
-
defaultMessage: '
|
|
401
|
+
saveAs: {
|
|
402
|
+
id: 'ExportResourcesModal.saveAs',
|
|
403
|
+
description: 'Label for "Save as:"',
|
|
404
|
+
defaultMessage: 'Save as:'
|
|
405
405
|
},
|
|
406
406
|
selected: {
|
|
407
407
|
id: 'ExportResourcesModal.selected',
|
|
408
408
|
description: 'Label for total Selected',
|
|
409
409
|
defaultMessage: '{total} selected'
|
|
410
410
|
},
|
|
411
|
-
|
|
412
|
-
id: 'ExportResourcesModal.
|
|
413
|
-
description: '
|
|
414
|
-
defaultMessage: '
|
|
411
|
+
fillRows: {
|
|
412
|
+
id: 'ExportResourcesModal.fillRows',
|
|
413
|
+
description: 'A checkbox label for filling rows with complete data',
|
|
414
|
+
defaultMessage: 'Fill all rows with complete data'
|
|
415
415
|
},
|
|
416
|
-
|
|
417
|
-
id: 'ExportResourcesModal.
|
|
418
|
-
description: 'A
|
|
419
|
-
defaultMessage: '
|
|
416
|
+
moreInformation: {
|
|
417
|
+
id: 'ExportResourcesModal.moreInformation',
|
|
418
|
+
description: 'A label for more information',
|
|
419
|
+
defaultMessage: 'For more information, refer to the {documentationLink}'
|
|
420
420
|
},
|
|
421
|
-
|
|
422
|
-
id: 'ExportResourcesModal.
|
|
423
|
-
description: 'A
|
|
424
|
-
defaultMessage: '
|
|
421
|
+
documentation: {
|
|
422
|
+
id: 'ExportResourcesModal.documentation',
|
|
423
|
+
description: 'A label for Documentation link',
|
|
424
|
+
defaultMessage: 'Documentation'
|
|
425
425
|
},
|
|
426
426
|
loadMoreFields: {
|
|
427
427
|
id: 'ExportResourcesModal.loadMoreFields',
|
|
@@ -678,6 +678,10 @@ const renderQueryPredicateError = key => {
|
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
|
|
681
|
+
const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
|
|
682
|
+
const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
|
|
683
|
+
const CSV_STRUCTURE_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data#structure-of-exported-csv-files';
|
|
684
|
+
|
|
681
685
|
function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
682
686
|
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
|
|
683
687
|
let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
@@ -847,9 +851,6 @@ const OUTPUT_FORMAT_OPTIONS = [{
|
|
|
847
851
|
label: 'JSON'
|
|
848
852
|
}];
|
|
849
853
|
|
|
850
|
-
const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
|
|
851
|
-
const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
|
|
852
|
-
|
|
853
854
|
const resourceTypeMessages = {
|
|
854
855
|
[EXPORTABLE_RESOURCES.CATEGORY]: {
|
|
855
856
|
exportScopeAll: messages.exportScopeAllCategories,
|
|
@@ -1576,7 +1577,7 @@ const useStartExportOperation = props => {
|
|
|
1576
1577
|
fileName: appendCsvOrJsonExtensionIfAbsent(values.fileName, values.outputFormat),
|
|
1577
1578
|
fileFormat: values.outputFormat,
|
|
1578
1579
|
locales,
|
|
1579
|
-
fillRows: values.fillRows,
|
|
1580
|
+
fillRows: values.outputFormat === 'csv' && values.fillRows,
|
|
1580
1581
|
fields,
|
|
1581
1582
|
where,
|
|
1582
1583
|
filters
|
|
@@ -1807,43 +1808,32 @@ const useValidateExportOperation = () => {
|
|
|
1807
1808
|
|
|
1808
1809
|
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; }
|
|
1809
1810
|
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; }
|
|
1810
|
-
const
|
|
1811
|
+
const ExportPreferenceSection = () => {
|
|
1811
1812
|
const _useExportResourcesMo = useExportResourcesModalContext(),
|
|
1812
1813
|
formik = _useExportResourcesMo.formik;
|
|
1813
|
-
return jsxRuntime.
|
|
1814
|
-
children: jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1814
|
+
return jsxRuntime.jsxs("div", {
|
|
1815
|
+
children: [jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1815
1816
|
isChecked: _valuesInstanceProperty__default["default"](formik).fillRows,
|
|
1816
1817
|
onChange: e => {
|
|
1817
1818
|
formik.setFieldValue('fillRows', e.target.checked);
|
|
1818
1819
|
},
|
|
1819
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.
|
|
1820
|
-
})
|
|
1821
|
-
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
})
|
|
1820
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.fillRows))
|
|
1821
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1822
|
+
scale: "xl",
|
|
1823
|
+
children: [jsxRuntime.jsx("div", {}), jsxRuntime.jsx(uiKit.Text.Caption, {
|
|
1824
|
+
intlMessage: _objectSpread$a(_objectSpread$a({}, messages.moreInformation), {}, {
|
|
1825
|
+
values: {
|
|
1826
|
+
documentationLink: jsxRuntime.jsx(uiKit.Link, {
|
|
1827
|
+
intlMessage: messages.documentation,
|
|
1828
|
+
isExternal: true,
|
|
1829
|
+
to: CSV_STRUCTURE_DOCUMENTATION_LINK
|
|
1830
|
+
}, "documentation-link")
|
|
1831
|
+
}
|
|
1832
|
+
})
|
|
1833
|
+
})]
|
|
1834
|
+
})]
|
|
1834
1835
|
});
|
|
1835
1836
|
};
|
|
1836
|
-
const ExportPreferenceSection = () => {
|
|
1837
|
-
const _useExportResourcesMo3 = useExportResourcesModalContext(),
|
|
1838
|
-
resourceType = _useExportResourcesMo3.resourceType;
|
|
1839
|
-
if (resourceType === 'order') {
|
|
1840
|
-
return jsxRuntime.jsx(OrderPreferences, {});
|
|
1841
|
-
}
|
|
1842
|
-
if (resourceType === 'product') {
|
|
1843
|
-
return jsxRuntime.jsx(ProductPreferences, {});
|
|
1844
|
-
}
|
|
1845
|
-
return null;
|
|
1846
|
-
};
|
|
1847
1837
|
|
|
1848
1838
|
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; }
|
|
1849
1839
|
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; }
|
|
@@ -1922,7 +1912,6 @@ function ExportScopeSection() {
|
|
|
1922
1912
|
}
|
|
1923
1913
|
|
|
1924
1914
|
const ExportFileSettingsStep = () => {
|
|
1925
|
-
var _context;
|
|
1926
1915
|
const intl = reactIntl.useIntl();
|
|
1927
1916
|
const _useExportResourcesMo = useExportResourcesModalContext(),
|
|
1928
1917
|
formik = _useExportResourcesMo.formik,
|
|
@@ -1937,9 +1926,7 @@ const ExportFileSettingsStep = () => {
|
|
|
1937
1926
|
setLocaleOption(LocaleOption.Selected);
|
|
1938
1927
|
}
|
|
1939
1928
|
};
|
|
1940
|
-
|
|
1941
|
-
// TODO: make this dynamic based on the resource type & output format (more scalable)
|
|
1942
|
-
const shouldShowPreferences = _includesInstanceProperty__default["default"](_context = ['order', 'product']).call(_context, resourceType) && _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
|
|
1929
|
+
const shouldShowPreferences = _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
|
|
1943
1930
|
return jsxRuntime.jsx(applicationComponents.FormDialog, {
|
|
1944
1931
|
isOpen: true,
|
|
1945
1932
|
title: `${intl.formatMessage(messages.stepCount, {
|
|
@@ -1961,31 +1948,22 @@ const ExportFileSettingsStep = () => {
|
|
|
1961
1948
|
children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
1962
1949
|
scale: "l",
|
|
1963
1950
|
children: jsxRuntime.jsxs(uiKit.Grid, {
|
|
1964
|
-
gridRowGap: uiKit.designTokens.
|
|
1951
|
+
gridRowGap: uiKit.designTokens.spacingM,
|
|
1965
1952
|
gridTemplateColumns: `calc(${uiKit.designTokens.constraint3} + ${uiKit.designTokens.spacingL}) auto`,
|
|
1966
1953
|
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1967
1954
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1968
|
-
intlMessage: messages.
|
|
1955
|
+
intlMessage: messages.scope
|
|
1969
1956
|
})
|
|
1970
1957
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1971
1958
|
children: jsxRuntime.jsx(ExportScopeSection, {})
|
|
1972
1959
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1973
1960
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1974
|
-
intlMessage: messages.
|
|
1961
|
+
intlMessage: messages.saveAs
|
|
1975
1962
|
})
|
|
1976
1963
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1977
1964
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1978
|
-
scale: "
|
|
1979
|
-
children: [jsxRuntime.jsx(
|
|
1980
|
-
name: "outputFormat",
|
|
1981
|
-
onChange: handleOutputFormatChange,
|
|
1982
|
-
onBlur: formik.handleBlur,
|
|
1983
|
-
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
1984
|
-
title: intl.formatMessage(messages.outputFormat),
|
|
1985
|
-
options: OUTPUT_FORMAT_OPTIONS,
|
|
1986
|
-
menuPortalTarget: document.body,
|
|
1987
|
-
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1988
|
-
}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1965
|
+
scale: "s",
|
|
1966
|
+
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1989
1967
|
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
1990
1968
|
name: "fileName",
|
|
1991
1969
|
onChange: formik.handleChange,
|
|
@@ -1996,16 +1974,17 @@ const ExportFileSettingsStep = () => {
|
|
|
1996
1974
|
errors: mapFormikErrors(formik.errors.fileName),
|
|
1997
1975
|
renderError: renderFileNameError
|
|
1998
1976
|
})
|
|
1999
|
-
})
|
|
1977
|
+
}), jsxRuntime.jsx(uiKit.SelectField, {
|
|
1978
|
+
name: "outputFormat",
|
|
1979
|
+
onChange: handleOutputFormatChange,
|
|
1980
|
+
onBlur: formik.handleBlur,
|
|
1981
|
+
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
1982
|
+
title: intl.formatMessage(messages.outputFormat),
|
|
1983
|
+
options: OUTPUT_FORMAT_OPTIONS,
|
|
1984
|
+
menuPortalTarget: document.body,
|
|
1985
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1986
|
+
}), shouldShowPreferences && jsxRuntime.jsx(ExportPreferenceSection, {})]
|
|
2000
1987
|
})
|
|
2001
|
-
}), shouldShowPreferences && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2002
|
-
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2003
|
-
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2004
|
-
intlMessage: messages.exportPreferences
|
|
2005
|
-
})
|
|
2006
|
-
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2007
|
-
children: jsxRuntime.jsx(ExportPreferenceSection, {})
|
|
2008
|
-
})]
|
|
2009
1988
|
})]
|
|
2010
1989
|
})
|
|
2011
1990
|
})
|
|
@@ -3229,11 +3208,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3229
3208
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICByZXR1cm4gc3R5bGVzLnJlYWR5Rm9yRHJvcFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2FjdGl2ZS1kcmFnJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5hY3RpdmVEcmFnXG4gICAgfVxuICAgIGlmIChwcm9wcy5kcm9wQXJlYVN0YXRlID09PSAnZmlsZS1kcm9wcGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5maWxlRHJvcHBlZFxuICAgIH1cbiAgICByZXR1cm4gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKHByb3BzLmRyb3BBcmVhU3RhdGUpXG4gIH19XG5gXG5mdW5jdGlvbiBnZXREZWZhdWx0RHJvcFdyYXBwZXJTdHlsZXMoX2Ryb3BBcmVhU3RhdGU6IG5ldmVyKSB7XG4gIHJldHVybiBjc3NgYFxufVxuIl19 */");
|
|
3230
3209
|
}
|
|
3231
3210
|
|
|
3232
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3211
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-42bf7adf.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
3233
3212
|
|
|
3234
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3213
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-f0ede72d.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
3235
3214
|
|
|
3236
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3215
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-2c4b364b.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
3237
3216
|
|
|
3238
3217
|
function getDropArea(_ref) {
|
|
3239
3218
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -3314,17 +3293,17 @@ const getChunkImport = locale => {
|
|
|
3314
3293
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3315
3294
|
switch (intlLocale) {
|
|
3316
3295
|
case 'de':
|
|
3317
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-
|
|
3296
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-c18aeb38.cjs.dev.js'); });
|
|
3318
3297
|
case 'es':
|
|
3319
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-
|
|
3298
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-38a3a3ae.cjs.dev.js'); });
|
|
3320
3299
|
case 'fr-FR':
|
|
3321
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-
|
|
3300
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-97c22617.cjs.dev.js'); });
|
|
3322
3301
|
case 'ja':
|
|
3323
3302
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-9bd5f452.cjs.dev.js'); });
|
|
3324
3303
|
case 'pt-BR':
|
|
3325
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
3304
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-c42a98aa.cjs.dev.js'); });
|
|
3326
3305
|
default:
|
|
3327
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-
|
|
3306
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-68174953.cjs.dev.js'); });
|
|
3328
3307
|
}
|
|
3329
3308
|
};
|
|
3330
3309
|
const loadMessages = async locale => {
|