@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.
Files changed (36) hide show
  1. package/dist/{active-drag-drop-area-69334379.esm.js → active-drag-drop-area-0c0e312e.esm.js} +2 -2
  2. package/dist/{active-drag-drop-area-8f777e8c.cjs.dev.js → active-drag-drop-area-42bf7adf.cjs.dev.js} +2 -2
  3. package/dist/{active-drag-drop-area-a4f63d4c.cjs.prod.js → active-drag-drop-area-6571c6f1.cjs.prod.js} +2 -2
  4. package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +2 -2
  5. package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +2 -2
  6. package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +2 -2
  7. package/dist/{de-1903dccf.cjs.prod.js → de-172c3905.cjs.prod.js} +187 -7
  8. package/dist/{de-2ad4e0d7.esm.js → de-458f4116.esm.js} +187 -7
  9. package/dist/de-c18aeb38.cjs.dev.js +429 -0
  10. package/dist/declarations/src/@constants/urls.d.ts +1 -0
  11. package/dist/{en-39d60fa2.cjs.dev.js → en-68174953.cjs.dev.js} +1 -1
  12. package/dist/{en-34f04489.cjs.prod.js → en-951cd344.cjs.prod.js} +1 -1
  13. package/dist/{en-4ca9fb4c.esm.js → en-bf084198.esm.js} +1 -1
  14. package/dist/{enabled-drop-area-18d6db32.esm.js → enabled-drop-area-07845761.esm.js} +2 -2
  15. package/dist/{enabled-drop-area-78a2526c.cjs.prod.js → enabled-drop-area-a86820f8.cjs.prod.js} +2 -2
  16. package/dist/{enabled-drop-area-6b5571a5.cjs.dev.js → enabled-drop-area-f0ede72d.cjs.dev.js} +2 -2
  17. package/dist/{es-01c31bc7.cjs.dev.js → es-38a3a3ae.cjs.dev.js} +188 -8
  18. package/dist/{es-4658edf6.esm.js → es-a8553ca8.esm.js} +188 -8
  19. package/dist/es-b0a9fb31.cjs.prod.js +429 -0
  20. package/dist/{file-dropped-area-85a97af4.esm.js → file-dropped-area-016972ea.esm.js} +1 -1
  21. package/dist/{file-dropped-area-5a67b071.cjs.dev.js → file-dropped-area-2c4b364b.cjs.dev.js} +1 -1
  22. package/dist/{file-dropped-area-d0430070.cjs.prod.js → file-dropped-area-7de84e37.cjs.prod.js} +1 -1
  23. package/dist/{fr-FR-0a721f97.cjs.prod.js → fr-FR-8146efa8.cjs.prod.js} +188 -8
  24. package/dist/{fr-FR-3057d941.esm.js → fr-FR-87237d20.esm.js} +188 -8
  25. package/dist/fr-FR-97c22617.cjs.dev.js +429 -0
  26. package/dist/{index-9cb88a69.cjs.prod.js → index-47c5bc92.cjs.prod.js} +69 -90
  27. package/dist/{index-e8859363.cjs.dev.js → index-7cbf648f.cjs.dev.js} +69 -90
  28. package/dist/{index-f20e86f3.esm.js → index-b6f8d138.esm.js} +70 -91
  29. package/dist/{pt-BR-442e5bba.cjs.dev.js → pt-BR-c42a98aa.cjs.dev.js} +188 -8
  30. package/dist/pt-BR-c725734e.cjs.prod.js +429 -0
  31. package/dist/{pt-BR-b849606a.esm.js → pt-BR-cf6abfcc.esm.js} +188 -8
  32. package/package.json +15 -15
  33. package/dist/de-b820e753.cjs.dev.js +0 -249
  34. package/dist/es-7959f578.cjs.prod.js +0 -249
  35. package/dist/fr-FR-d641720a.cjs.dev.js +0 -249
  36. package/dist/pt-BR-89644b77.cjs.prod.js +0 -249
@@ -15,9 +15,8 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
15
15
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
16
16
  import { defineMessages, FormattedMessage, useIntl, IntlProvider } from 'react-intl';
17
17
  import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
18
- import { Text, TextInput, CheckboxInput, RadioInput, TextField, AngleRightIcon, Spacings, Grid, designTokens, SelectField, FieldLabel, Constraints, Tooltip, SupportIcon, Link, Stamp, IconButton, AngleDownIcon, CollapsibleMotion, Card, SearchTextInput, TagList, FlatButton, AngleUpIcon, CheckBoldIcon, DataTable } from '@commercetools-frontend/ui-kit';
19
- import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
20
- import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
18
+ import { Text, TextInput, CheckboxInput, Spacings, Link, RadioInput, TextField, AngleRightIcon, Grid, designTokens, SelectField, FieldLabel, Constraints, Tooltip, SupportIcon, Stamp, IconButton, AngleDownIcon, CollapsibleMotion, Card, SearchTextInput, TagList, FlatButton, AngleUpIcon, CheckBoldIcon, DataTable } from '@commercetools-frontend/ui-kit';
19
+ import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
21
20
  import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
22
21
  import { FormDialog } from '@commercetools-frontend/application-components';
23
22
  import { Masking } from '@commercetools-frontend/fullstory';
@@ -44,6 +43,7 @@ import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
44
43
  import _bindInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/bind';
45
44
  import _Promise from '@babel/runtime-corejs3/core-js-stable/promise';
46
45
  import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
46
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
47
47
  import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
48
48
  import { useShowNotification } from '@commercetools-frontend/actions-global';
49
49
  import { MC_API_PROXY_TARGETS, DOMAINS } from '@commercetools-frontend/constants';
@@ -237,10 +237,10 @@ var messages = defineMessages({
237
237
  description: 'In Export fields selection - Search by entering the exact field name message',
238
238
  defaultMessage: 'Try searching by entering the exact field name.'
239
239
  },
240
- exportScope: {
241
- id: 'ExportResourcesModal.exportScope',
242
- description: 'Label for Export Scope',
243
- defaultMessage: 'Scope'
240
+ scope: {
241
+ id: 'ExportResourcesModal.scope',
242
+ description: 'Label for "Scope:"',
243
+ defaultMessage: 'Scope:'
244
244
  },
245
245
  exportScopeAllCategories: {
246
246
  id: 'ExportResourcesModal.exportScopeAllCategories',
@@ -357,30 +357,30 @@ var messages = defineMessages({
357
357
  description: 'Label for Export Filtered without count',
358
358
  defaultMessage: 'Export filtered'
359
359
  },
360
- exportSettings: {
361
- id: 'ExportResourcesModal.exportSettings',
362
- description: 'Label for Export Settings',
363
- defaultMessage: 'Settings'
360
+ saveAs: {
361
+ id: 'ExportResourcesModal.saveAs',
362
+ description: 'Label for "Save as:"',
363
+ defaultMessage: 'Save as:'
364
364
  },
365
365
  selected: {
366
366
  id: 'ExportResourcesModal.selected',
367
367
  description: 'Label for total Selected',
368
368
  defaultMessage: '{total} selected'
369
369
  },
370
- exportPreferences: {
371
- id: 'ExportResourcesModal.exportPreferences',
372
- description: 'Label for preferences',
373
- defaultMessage: 'Preferences'
370
+ fillRows: {
371
+ id: 'ExportResourcesModal.fillRows',
372
+ description: 'A checkbox label for filling rows with complete data',
373
+ defaultMessage: 'Fill all rows with complete data'
374
374
  },
375
- fillRowsForOrderExport: {
376
- id: 'ExportResourcesModal.fillRowsForOrderExport',
377
- description: 'A checkbox label for filling rows for order export',
378
- defaultMessage: 'Include Order number, id, and states in every row'
375
+ moreInformation: {
376
+ id: 'ExportResourcesModal.moreInformation',
377
+ description: 'A label for more information',
378
+ defaultMessage: 'For more information, refer to the {documentationLink}'
379
379
  },
380
- fillRowsForProductExport: {
381
- id: 'ExportResourcesModal.fillRowsForProductExport',
382
- description: 'A checkbox label for filling rows for product export',
383
- defaultMessage: 'Include Product- and Variant-level information in every row'
380
+ documentation: {
381
+ id: 'ExportResourcesModal.documentation',
382
+ description: 'A label for Documentation link',
383
+ defaultMessage: 'Documentation'
384
384
  },
385
385
  loadMoreFields: {
386
386
  id: 'ExportResourcesModal.loadMoreFields',
@@ -637,6 +637,10 @@ const renderQueryPredicateError = key => {
637
637
  }
638
638
  };
639
639
 
640
+ const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
641
+ const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
642
+ const CSV_STRUCTURE_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data#structure-of-exported-csv-files';
643
+
640
644
  function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
641
645
  function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
642
646
  let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
@@ -806,9 +810,6 @@ const OUTPUT_FORMAT_OPTIONS = [{
806
810
  label: 'JSON'
807
811
  }];
808
812
 
809
- const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
810
- const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
811
-
812
813
  const resourceTypeMessages = {
813
814
  [EXPORTABLE_RESOURCES.CATEGORY]: {
814
815
  exportScopeAll: messages.exportScopeAllCategories,
@@ -1535,7 +1536,7 @@ const useStartExportOperation = props => {
1535
1536
  fileName: appendCsvOrJsonExtensionIfAbsent(values.fileName, values.outputFormat),
1536
1537
  fileFormat: values.outputFormat,
1537
1538
  locales,
1538
- fillRows: values.fillRows,
1539
+ fillRows: values.outputFormat === 'csv' && values.fillRows,
1539
1540
  fields,
1540
1541
  where,
1541
1542
  filters
@@ -1766,43 +1767,32 @@ const useValidateExportOperation = () => {
1766
1767
 
1767
1768
  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; }
1768
1769
  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; }
1769
- const OrderPreferences = () => {
1770
+ const ExportPreferenceSection = () => {
1770
1771
  const _useExportResourcesMo = useExportResourcesModalContext(),
1771
1772
  formik = _useExportResourcesMo.formik;
1772
- return jsx(Fragment, {
1773
- children: jsx(CheckboxInput, {
1774
- isChecked: _valuesInstanceProperty(formik).fillRows,
1775
- onChange: e => {
1776
- formik.setFieldValue('fillRows', e.target.checked);
1777
- },
1778
- children: jsx(FormattedMessage, _objectSpread$a({}, messages.fillRowsForOrderExport))
1779
- })
1780
- });
1781
- };
1782
- const ProductPreferences = () => {
1783
- const _useExportResourcesMo2 = useExportResourcesModalContext(),
1784
- formik = _useExportResourcesMo2.formik;
1785
- return jsx(Fragment, {
1786
- children: jsx(CheckboxInput, {
1773
+ return jsxs("div", {
1774
+ children: [jsx(CheckboxInput, {
1787
1775
  isChecked: _valuesInstanceProperty(formik).fillRows,
1788
1776
  onChange: e => {
1789
1777
  formik.setFieldValue('fillRows', e.target.checked);
1790
1778
  },
1791
- children: jsx(FormattedMessage, _objectSpread$a({}, messages.fillRowsForProductExport))
1792
- })
1779
+ children: jsx(FormattedMessage, _objectSpread$a({}, messages.fillRows))
1780
+ }), jsxs(Spacings.Inline, {
1781
+ scale: "xl",
1782
+ children: [jsx("div", {}), jsx(Text.Caption, {
1783
+ intlMessage: _objectSpread$a(_objectSpread$a({}, messages.moreInformation), {}, {
1784
+ values: {
1785
+ documentationLink: jsx(Link, {
1786
+ intlMessage: messages.documentation,
1787
+ isExternal: true,
1788
+ to: CSV_STRUCTURE_DOCUMENTATION_LINK
1789
+ }, "documentation-link")
1790
+ }
1791
+ })
1792
+ })]
1793
+ })]
1793
1794
  });
1794
1795
  };
1795
- const ExportPreferenceSection = () => {
1796
- const _useExportResourcesMo3 = useExportResourcesModalContext(),
1797
- resourceType = _useExportResourcesMo3.resourceType;
1798
- if (resourceType === 'order') {
1799
- return jsx(OrderPreferences, {});
1800
- }
1801
- if (resourceType === 'product') {
1802
- return jsx(ProductPreferences, {});
1803
- }
1804
- return null;
1805
- };
1806
1796
 
1807
1797
  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; }
1808
1798
  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; }
@@ -1881,7 +1871,6 @@ function ExportScopeSection() {
1881
1871
  }
1882
1872
 
1883
1873
  const ExportFileSettingsStep = () => {
1884
- var _context;
1885
1874
  const intl = useIntl();
1886
1875
  const _useExportResourcesMo = useExportResourcesModalContext(),
1887
1876
  formik = _useExportResourcesMo.formik,
@@ -1896,9 +1885,7 @@ const ExportFileSettingsStep = () => {
1896
1885
  setLocaleOption(LocaleOption.Selected);
1897
1886
  }
1898
1887
  };
1899
-
1900
- // TODO: make this dynamic based on the resource type & output format (more scalable)
1901
- const shouldShowPreferences = _includesInstanceProperty(_context = ['order', 'product']).call(_context, resourceType) && _valuesInstanceProperty(formik).outputFormat === 'csv';
1888
+ const shouldShowPreferences = _valuesInstanceProperty(formik).outputFormat === 'csv';
1902
1889
  return jsx(FormDialog, {
1903
1890
  isOpen: true,
1904
1891
  title: `${intl.formatMessage(messages.stepCount, {
@@ -1920,31 +1907,22 @@ const ExportFileSettingsStep = () => {
1920
1907
  children: jsx(Spacings.Stack, {
1921
1908
  scale: "l",
1922
1909
  children: jsxs(Grid, {
1923
- gridRowGap: designTokens.spacingL,
1910
+ gridRowGap: designTokens.spacingM,
1924
1911
  gridTemplateColumns: `calc(${designTokens.constraint3} + ${designTokens.spacingL}) auto`,
1925
1912
  children: [jsx(Grid.Item, {
1926
1913
  children: jsx(Text.Body, {
1927
- intlMessage: messages.exportScope
1914
+ intlMessage: messages.scope
1928
1915
  })
1929
1916
  }), jsx(Grid.Item, {
1930
1917
  children: jsx(ExportScopeSection, {})
1931
1918
  }), jsx(Grid.Item, {
1932
1919
  children: jsx(Text.Body, {
1933
- intlMessage: messages.exportSettings
1920
+ intlMessage: messages.saveAs
1934
1921
  })
1935
1922
  }), jsx(Grid.Item, {
1936
1923
  children: jsxs(Spacings.Stack, {
1937
- scale: "m",
1938
- children: [jsx(SelectField, {
1939
- name: "outputFormat",
1940
- onChange: handleOutputFormatChange,
1941
- onBlur: formik.handleBlur,
1942
- value: _valuesInstanceProperty(formik).outputFormat,
1943
- title: intl.formatMessage(messages.outputFormat),
1944
- options: OUTPUT_FORMAT_OPTIONS,
1945
- menuPortalTarget: document.body,
1946
- menuPortalZIndex: Z_INDEX_DROPDOWN
1947
- }), jsx(Masking.Mask, {
1924
+ scale: "s",
1925
+ children: [jsx(Masking.Mask, {
1948
1926
  children: jsx(TextField, {
1949
1927
  name: "fileName",
1950
1928
  onChange: formik.handleChange,
@@ -1955,16 +1933,17 @@ const ExportFileSettingsStep = () => {
1955
1933
  errors: mapFormikErrors(formik.errors.fileName),
1956
1934
  renderError: renderFileNameError
1957
1935
  })
1958
- })]
1936
+ }), jsx(SelectField, {
1937
+ name: "outputFormat",
1938
+ onChange: handleOutputFormatChange,
1939
+ onBlur: formik.handleBlur,
1940
+ value: _valuesInstanceProperty(formik).outputFormat,
1941
+ title: intl.formatMessage(messages.outputFormat),
1942
+ options: OUTPUT_FORMAT_OPTIONS,
1943
+ menuPortalTarget: document.body,
1944
+ menuPortalZIndex: Z_INDEX_DROPDOWN
1945
+ }), shouldShowPreferences && jsx(ExportPreferenceSection, {})]
1959
1946
  })
1960
- }), shouldShowPreferences && jsxs(Fragment, {
1961
- children: [jsx(Grid.Item, {
1962
- children: jsx(Text.Body, {
1963
- intlMessage: messages.exportPreferences
1964
- })
1965
- }), jsx(Grid.Item, {
1966
- children: jsx(ExportPreferenceSection, {})
1967
- })]
1968
1947
  })]
1969
1948
  })
1970
1949
  })
@@ -3188,11 +3167,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
3188
3167
  return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICByZXR1cm4gc3R5bGVzLnJlYWR5Rm9yRHJvcFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2FjdGl2ZS1kcmFnJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5hY3RpdmVEcmFnXG4gICAgfVxuICAgIGlmIChwcm9wcy5kcm9wQXJlYVN0YXRlID09PSAnZmlsZS1kcm9wcGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5maWxlRHJvcHBlZFxuICAgIH1cbiAgICByZXR1cm4gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKHByb3BzLmRyb3BBcmVhU3RhdGUpXG4gIH19XG5gXG5mdW5jdGlvbiBnZXREZWZhdWx0RHJvcFdyYXBwZXJTdHlsZXMoX2Ryb3BBcmVhU3RhdGU6IG5ldmVyKSB7XG4gIHJldHVybiBjc3NgYFxufVxuIl19 */");
3189
3168
  }
3190
3169
 
3191
- var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-69334379.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
3170
+ var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-0c0e312e.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
3192
3171
 
3193
- var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-18d6db32.esm.js' /* webpackChunkName: "enabled-drop-area" */));
3172
+ var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-07845761.esm.js' /* webpackChunkName: "enabled-drop-area" */));
3194
3173
 
3195
- var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-85a97af4.esm.js' /* webpackChunkName: "filed-dropped-area" */));
3174
+ var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-016972ea.esm.js' /* webpackChunkName: "filed-dropped-area" */));
3196
3175
 
3197
3176
  function getDropArea(_ref) {
3198
3177
  let dropAreaState = _ref.dropAreaState,
@@ -3273,17 +3252,17 @@ const getChunkImport = locale => {
3273
3252
  const intlLocale = mapLocaleToIntlLocale(locale);
3274
3253
  switch (intlLocale) {
3275
3254
  case 'de':
3276
- return import(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-2ad4e0d7.esm.js');
3255
+ return import(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-458f4116.esm.js');
3277
3256
  case 'es':
3278
- return import(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-4658edf6.esm.js');
3257
+ return import(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-a8553ca8.esm.js');
3279
3258
  case 'fr-FR':
3280
- return import(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-3057d941.esm.js');
3259
+ return import(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-87237d20.esm.js');
3281
3260
  case 'ja':
3282
3261
  return import(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-73c088a7.esm.js');
3283
3262
  case 'pt-BR':
3284
- return import(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-b849606a.esm.js');
3263
+ return import(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-cf6abfcc.esm.js');
3285
3264
  default:
3286
- return import(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-4ca9fb4c.esm.js');
3265
+ return import(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-bf084198.esm.js');
3287
3266
  }
3288
3267
  };
3289
3268
  const loadMessages = async locale => {
@@ -1,17 +1,69 @@
1
1
  'use strict';
2
2
 
3
3
  var ptBR = {
4
+ "ExportResourcesModal.attributeDefinitionNotFound": {
5
+ developer_comment: "Attribute definition not found error",
6
+ string: "Definição de atributos não encontrada"
7
+ },
8
+ "ExportResourcesModal.attributeDefinitionNotFoundTitle": {
9
+ developer_comment: "Title for attribute definitions not found error",
10
+ string: "O(s) seguinte(s) atributo(s) não pode(m) ser encontrado(s) neste projeto:"
11
+ },
4
12
  "ExportResourcesModal.back": {
5
13
  developer_comment: "Label for \"Back\" button",
6
14
  string: "Voltar"
7
15
  },
16
+ "ExportResourcesModal.backToPreviousStep": {
17
+ developer_comment: "Label for \"Back to previous step\" button",
18
+ string: "Voltar para a etapa anterior"
19
+ },
20
+ "ExportResourcesModal.backToSelection": {
21
+ developer_comment: "Label for \"Back to selection\" button",
22
+ string: "Voltar para a seleção"
23
+ },
24
+ "ExportResourcesModal.browseFile": {
25
+ developer_comment: "Label for \"Browse file\" button",
26
+ string: "procurar arquivo"
27
+ },
8
28
  "ExportResourcesModal.checkTheSpelling": {
9
29
  developer_comment: "In Export fields selection - Check the spelling message",
10
30
  string: "Verifique a ortografia."
11
31
  },
12
- "ExportResourcesModal.continue": {
13
- developer_comment: "Label for \"Continue\" button",
14
- string: "Continuar"
32
+ "ExportResourcesModal.chooseFile": {
33
+ developer_comment: "Label for \"Choose file\" button",
34
+ string: "Escolher arquivo"
35
+ },
36
+ "ExportResourcesModal.confirmSelection": {
37
+ developer_comment: "Label for \"Confirm selection\" button",
38
+ string: "Confirmar seleção"
39
+ },
40
+ "ExportResourcesModal.csvUploadFailed": {
41
+ developer_comment: "CSV upload failed title",
42
+ string: "Falha ao carregar CSV"
43
+ },
44
+ "ExportResourcesModal.defineFieldsToIncludeInExport": {
45
+ developer_comment: "A message to define the fields to include in export",
46
+ string: "Defina os campos a serem incluídos na sua exportação com um arquivo CSV abaixo. O arquivo deve conter cabeçalhos de coluna no formato predefinido mostrado em <templateLink>nosso modelo</templateLink>. Também é possível usar um CSV exportado anteriormente."
47
+ },
48
+ "ExportResourcesModal.details": {
49
+ developer_comment: "Label for details column",
50
+ string: "Detalhes"
51
+ },
52
+ "ExportResourcesModal.dragAndDropCSV": {
53
+ developer_comment: "Label for \"Drag and drop CSV\" text",
54
+ string: "Arraste e solte o CSV"
55
+ },
56
+ "ExportResourcesModal.duplicateField": {
57
+ developer_comment: "Duplicate field error",
58
+ string: "Campo duplicado"
59
+ },
60
+ "ExportResourcesModal.duplicateFieldTitle": {
61
+ developer_comment: "Title for duplicate fields error",
62
+ string: "Os seguintes campos estão duplicados. Cada campo deve aparecer somente uma vez:"
63
+ },
64
+ "ExportResourcesModal.errorType": {
65
+ developer_comment: "Label for error type column",
66
+ string: "Tipo de erro"
15
67
  },
16
68
  "ExportResourcesModal.exportBasedOnMyViewsMessage": {
17
69
  developer_comment: "Select Export setttings based on my views",
@@ -37,6 +89,14 @@ var ptBR = {
37
89
  developer_comment: "Label for preferences",
38
90
  string: "Preferências"
39
91
  },
92
+ "ExportResourcesModal.exportPreview": {
93
+ developer_comment: "Label for export preview step",
94
+ string: "Prévia da exportação"
95
+ },
96
+ "ExportResourcesModal.exportProcessMayTakeAWhile": {
97
+ developer_comment: "The export process may take a while",
98
+ string: "O processo de exportação pode levar algum tempo. Para visualizar o progresso e baixar o arquivo após iniciar a exportação, vá para a área de <exportLogsLink>Registros de exportação</exportLogsLink>, localizada no <operationsIcon></operationsIcon> menu Operações."
99
+ },
40
100
  "ExportResourcesModal.exportScope": {
41
101
  developer_comment: "Label for Export Scope",
42
102
  string: "Escopo"
@@ -125,10 +185,26 @@ var ptBR = {
125
185
  developer_comment: "Label for Export Settings",
126
186
  string: "Configurações"
127
187
  },
188
+ "ExportResourcesModal.fieldDefinitionNotFound": {
189
+ developer_comment: "Field definition not found error",
190
+ string: "Definição do campo não encontrada"
191
+ },
192
+ "ExportResourcesModal.fieldDefinitionNotFoundTitle": {
193
+ developer_comment: "Title for field definitions not found error",
194
+ string: "O(s) seguinte(s) atributo(s) personalizado(s) não pode(m) ser encontrado(s) neste projeto:"
195
+ },
128
196
  "ExportResourcesModal.fieldDefinitions": {
129
197
  developer_comment: "Label for \"Field definitions\" link",
130
198
  string: "Definições do campo"
131
199
  },
200
+ "ExportResourcesModal.fieldsToBeExported": {
201
+ developer_comment: "Label for fields to be exported",
202
+ string: "{fieldCount, plural, one {<b>1</b> campos a serem exportados} many {<b>{fieldCount}</b> campos a serem exportados} other {<b>{fieldCount}</b> campos a serem exportados}}:"
203
+ },
204
+ "ExportResourcesModal.fieldsToBeExportedInLanguages": {
205
+ developer_comment: "Label for fields to be exported in languages",
206
+ string: "{fieldCount, plural, one {<b>{fieldCount}</b> campos a serem exportados em {languageCount, plural, one {<b>1</b> language} other {<b>{languageCount}</b> languages}}} many {<b>{fieldCount}</b> campos a serem exportados em {languageCount, plural, one {<b>1</b> language} other {<b>{languageCount}</b> languages}}} other {<b>{fieldCount}</b> campos a serem exportados em {languageCount, plural, one {<b>1</b> language} other {<b>{languageCount}</b> languages}}}}:"
207
+ },
132
208
  "ExportResourcesModal.fileName": {
133
209
  developer_comment: "exported file name",
134
210
  string: "Nome do arquivo"
@@ -145,21 +221,49 @@ var ptBR = {
145
221
  developer_comment: "label for \"Include all locales\" checkbox",
146
222
  string: "Incluir todos os locais"
147
223
  },
224
+ "ExportResourcesModal.includeAllLocalesRadioOption": {
225
+ developer_comment: "label for \"all\" option in locales radio options",
226
+ string: "tudo"
227
+ },
228
+ "ExportResourcesModal.includeOnlySelectedLocalesRadioOption": {
229
+ developer_comment: "label for \"only selected\" option in locales radio options",
230
+ string: "somente selecionado"
231
+ },
232
+ "ExportResourcesModal.incompleteField": {
233
+ developer_comment: "Incomplete field error",
234
+ string: "Campo incompleto"
235
+ },
236
+ "ExportResourcesModal.incompleteFieldTitle": {
237
+ developer_comment: "Title for incomplete fields error",
238
+ string: "Os seguintes campos estão sem um subcampo:"
239
+ },
148
240
  "ExportResourcesModal.invalidFileNameError": {
149
241
  developer_comment: "Error when file name field is not valid",
150
242
  string: "O nome do arquivo contém apenas caracteres alfanuméricos, hífens e sublinhados."
151
243
  },
244
+ "ExportResourcesModal.invalidQueryPredicate": {
245
+ developer_comment: "Error when query predicate field is not valid",
246
+ string: "Há um erro com o predicado da consulta. Certifique-se de que a sintaxe esteja correta."
247
+ },
152
248
  "ExportResourcesModal.itemCount": {
153
249
  developer_comment: "Label for item count",
154
- string: "{count, plural, =0 {nenhum item} one {# item} other {# itens}}"
250
+ string: "{count, plural, one {# item} other {# items}}"
155
251
  },
156
252
  "ExportResourcesModal.loadMoreFields": {
157
253
  developer_comment: "Load more fields message",
158
- string: "Carregue mais campos usando a funcionalidade de pesquisa"
254
+ string: "Carregue mais campos usando a funcionalidade de busca ou especifique a lista completa de campos com um arquivo CSV"
255
+ },
256
+ "ExportResourcesModal.locales": {
257
+ developer_comment: "Locales",
258
+ string: "Localidades"
259
+ },
260
+ "ExportResourcesModal.localizedFieldWithoutLocale": {
261
+ developer_comment: "Localized field without locale error",
262
+ string: "Campo localizado sem localidade"
159
263
  },
160
- "ExportResourcesModal.locale": {
161
- developer_comment: "Locale",
162
- string: "Local"
264
+ "ExportResourcesModal.localizedFieldWithoutLocaleTitle": {
265
+ developer_comment: "Title for localized fields without locale error",
266
+ string: "Os seguintes campos localizados não especificam nenhum sufixo de localidade. Escolha uma opção diferente no campo Localidades ou carregue um arquivo CSV diferente:"
163
267
  },
164
268
  "ExportResourcesModal.missingFileNameError": {
165
269
  developer_comment: "Error when file name field is missing",
@@ -169,6 +273,10 @@ var ptBR = {
169
273
  developer_comment: "Error when no locale is selected",
170
274
  string: "Selecione ao menos um local"
171
275
  },
276
+ "ExportResourcesModal.missingQueryPredicateError": {
277
+ developer_comment: "Error when query predicate field is missing",
278
+ string: "Insira um predicado de consulta"
279
+ },
172
280
  "ExportResourcesModal.modalTitle.category": {
173
281
  developer_comment: "Label for the categories modal title",
174
282
  string: "Exportar categorias"
@@ -201,10 +309,34 @@ var ptBR = {
201
309
  developer_comment: "Label for \"My Views\" Select Field",
202
310
  string: "Minhas visualizações"
203
311
  },
312
+ "ExportResourcesModal.noResourcesToExportForQueryPredicate": {
313
+ developer_comment: "Error message when there are no resources to export for given query predicate",
314
+ string: "Nenhum recurso corresponde ao predicado da sua consulta. Verifique o predicado da sua consulta e tente novamente."
315
+ },
316
+ "ExportResourcesModal.notSupportedField": {
317
+ developer_comment: "Not supported field error",
318
+ string: "Campo não suportado"
319
+ },
320
+ "ExportResourcesModal.notSupportedFieldsTitle": {
321
+ developer_comment: "Title for not supported fields error",
322
+ string: "Os seguintes campos não são suportados para o tipo de recurso:"
323
+ },
204
324
  "ExportResourcesModal.nothingApplied": {
205
325
  developer_comment: "Shown when there is no filter applied",
206
326
  string: "nada aplicado"
207
327
  },
328
+ "ExportResourcesModal.onlyLocalesFoundInCsvFile": {
329
+ developer_comment: "label for \"only locales found in the CSV file\" option in locales radio options",
330
+ string: "apenas localidades encontradas no arquivo CSV"
331
+ },
332
+ "ExportResourcesModal.onlyLocalesFoundInCsvFileTooltip": {
333
+ developer_comment: "Tooltip for \"only locales found in the CSV file\" option",
334
+ string: "Carregue um arquivo primeiro para poder selecionar esta opção"
335
+ },
336
+ "ExportResourcesModal.or": {
337
+ developer_comment: "Label for \"or\" text",
338
+ string: "ou"
339
+ },
208
340
  "ExportResourcesModal.outputFormat": {
209
341
  developer_comment: "File format like (csv, xls, ...etc)",
210
342
  string: "Formato do arquivo"
@@ -213,6 +345,10 @@ var ptBR = {
213
345
  developer_comment: "properties panel label",
214
346
  string: "Propriedades"
215
347
  },
348
+ "ExportResourcesModal.queryPredicate": {
349
+ developer_comment: "Label for query predicate option",
350
+ string: "Predicado da consulta"
351
+ },
216
352
  "ExportResourcesModal.searchByEnteringTheExactFieldName": {
217
353
  developer_comment: "In Export fields selection - Search by entering the exact field name message",
218
354
  string: "Tente pesquisar inserindo o nome exato do campo."
@@ -221,6 +357,22 @@ var ptBR = {
221
357
  developer_comment: "Placeholder for \"Search for fields\" search input",
222
358
  string: "Pesquisar por campos"
223
359
  },
360
+ "ExportResourcesModal.selectContentToExport": {
361
+ developer_comment: "Label for \"Select content to export\" button",
362
+ string: "Selecione conteúdo para exportar"
363
+ },
364
+ "ExportResourcesModal.selectDifferentFields": {
365
+ developer_comment: "Label for \"Select different fields\" button",
366
+ string: "Selecione campos diferentes"
367
+ },
368
+ "ExportResourcesModal.selectFieldsFromImportedCSV": {
369
+ developer_comment: "Label for \"Select fields from an imported CSV\" button",
370
+ string: "Selecione campos de um CSV importado"
371
+ },
372
+ "ExportResourcesModal.selectFieldsFromLimitedList": {
373
+ developer_comment: "Label for \"Select fields from a limited list\" button",
374
+ string: "Selecione campos de uma lista limitada"
375
+ },
224
376
  "ExportResourcesModal.selectFieldsToExport": {
225
377
  string: "Selecionar arquivos para exportar"
226
378
  },
@@ -228,10 +380,26 @@ var ptBR = {
228
380
  developer_comment: "Label for total Selected",
229
381
  string: "{total} selecionados"
230
382
  },
383
+ "ExportResourcesModal.showAll": {
384
+ developer_comment: "Label for \"Show all\" button",
385
+ string: "Mostrar tudo"
386
+ },
387
+ "ExportResourcesModal.showLess": {
388
+ developer_comment: "Label for \"Show less\" button",
389
+ string: "Exibir menos"
390
+ },
231
391
  "ExportResourcesModal.startExport": {
232
392
  developer_comment: "Label for \"Start export\" button",
233
393
  string: "Iniciar exportação"
234
394
  },
395
+ "ExportResourcesModal.stepCount": {
396
+ developer_comment: "Step count",
397
+ string: "Etapa {currentStep}/{totalSteps}"
398
+ },
399
+ "ExportResourcesModal.stepNumber": {
400
+ developer_comment: "Step number",
401
+ string: "Etapa {stepNumber}"
402
+ },
235
403
  "ExportResourcesModal.suggestions": {
236
404
  developer_comment: "In Export fields selection - Suggestions message",
237
405
  string: "Sugestões:"
@@ -243,6 +411,18 @@ var ptBR = {
243
411
  "ExportResourcesModal.unexpectedError": {
244
412
  developer_comment: "Generic notification message when starting export process fails",
245
413
  string: "Ocorreu um erro ao iniciar o processo de exportação. Tente novamente ou entre em contato com o suporte caso o problema persista."
414
+ },
415
+ "ExportResourcesModal.unknownError": {
416
+ developer_comment: "Unknown error",
417
+ string: "Ocorreu um erro inesperado"
418
+ },
419
+ "ExportResourcesModal.uploadDifferentCSV": {
420
+ developer_comment: "Label for \"Upload a different CSV file\" button",
421
+ string: "Carregue um arquivo CSV diferente"
422
+ },
423
+ "ExportResourcesModal.uploadErrorsDetected": {
424
+ developer_comment: "Message shown when errors are detected during file upload",
425
+ string: "Foram detectados <b>{total}</b> erros ao carregar o arquivo <b>{fileName}</b>. Use <templateLink>nosso modelo</templateLink> para revisar a formatação correta e os valores compatíveis, tente exportar usando nossa seleção de campos primeiro ou visite <documentationLink>nossa documentação</documentationLink> para mais informações."
246
426
  }
247
427
  };
248
428