@commercetools-frontend-extensions/export-resources-modal 5.3.0 → 5.4.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-e9bf7129.cjs.prod.js → active-drag-drop-area-2bc898e9.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-e3f74c13.cjs.dev.js → active-drag-drop-area-b5dd0364.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-fb905a01.esm.js → active-drag-drop-area-ff9c0d97.esm.js} +1 -1
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +1 -1
- package/dist/{de-44143469.cjs.dev.js → de-d8a18a42.cjs.dev.js} +17 -5
- package/dist/{de-324f2829.esm.js → de-f08a52eb.esm.js} +17 -5
- package/dist/{de-850971a3.cjs.prod.js → de-f3ef440e.cjs.prod.js} +17 -5
- package/dist/declarations/src/@constants/urls.d.ts +1 -0
- package/dist/declarations/src/@types/export-api.d.ts +1 -0
- package/dist/declarations/src/@types/form.d.ts +1 -0
- package/dist/{en-89430bcb.cjs.prod.js → en-826f3da3.cjs.dev.js} +17 -5
- package/dist/{en-6928b534.cjs.dev.js → en-fa1adbcf.cjs.prod.js} +17 -5
- package/dist/{en-015fa203.esm.js → en-fde71e63.esm.js} +17 -5
- package/dist/{enabled-drop-area-3161efde.cjs.prod.js → enabled-drop-area-08062080.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-5d5a61c8.esm.js → enabled-drop-area-6940c316.esm.js} +1 -1
- package/dist/{enabled-drop-area-b35ddf49.cjs.dev.js → enabled-drop-area-ad58c949.cjs.dev.js} +1 -1
- package/dist/{es-e6dd1e27.cjs.dev.js → es-3bcde029.cjs.prod.js} +17 -5
- package/dist/{es-735dbaf2.esm.js → es-78876ffb.esm.js} +17 -5
- package/dist/{es-e73368be.cjs.prod.js → es-9f21ee16.cjs.dev.js} +17 -5
- package/dist/{file-dropped-area-85fb3d1d.cjs.prod.js → file-dropped-area-5b4d1bab.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-ff7e0b8e.cjs.dev.js → file-dropped-area-a436dc63.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-aad1bd09.esm.js → file-dropped-area-e6097092.esm.js} +1 -1
- package/dist/{fr-FR-96dce16c.esm.js → fr-FR-4f366109.esm.js} +17 -5
- package/dist/{fr-FR-0eab30ec.cjs.prod.js → fr-FR-5fbee168.cjs.prod.js} +17 -5
- package/dist/{fr-FR-62affef0.cjs.dev.js → fr-FR-685637af.cjs.dev.js} +17 -5
- package/dist/{index-2ed12fce.cjs.dev.js → index-1a9a449c.cjs.dev.js} +146 -113
- package/dist/{index-f0396960.esm.js → index-6cec8a7b.esm.js} +147 -114
- package/dist/{index-e73d846c.cjs.prod.js → index-7f29af61.cjs.prod.js} +146 -113
- package/dist/{pt-BR-ced88ff5.cjs.prod.js → pt-BR-53c6b1c2.cjs.prod.js} +17 -5
- package/dist/{pt-BR-13243e64.cjs.dev.js → pt-BR-78ae5352.cjs.dev.js} +17 -5
- package/dist/{pt-BR-7fd72f5d.esm.js → pt-BR-f96cb5c4.esm.js} +17 -5
- package/package.json +31 -31
|
@@ -656,12 +656,12 @@ var messages = reactIntl.defineMessages({
|
|
|
656
656
|
columns: {
|
|
657
657
|
id: 'ExportResourcesModal.columns',
|
|
658
658
|
description: 'Label for column separator select',
|
|
659
|
-
defaultMessage: 'Columns
|
|
659
|
+
defaultMessage: 'Columns'
|
|
660
660
|
},
|
|
661
|
-
|
|
662
|
-
id: 'ExportResourcesModal.
|
|
661
|
+
decimals: {
|
|
662
|
+
id: 'ExportResourcesModal.decimals',
|
|
663
663
|
description: 'Label for decimal separator select',
|
|
664
|
-
defaultMessage: 'Decimals
|
|
664
|
+
defaultMessage: 'Decimals'
|
|
665
665
|
},
|
|
666
666
|
columnSeparatorComma: {
|
|
667
667
|
id: 'ExportResourcesModal.columnSeparatorComma',
|
|
@@ -697,6 +697,21 @@ var messages = reactIntl.defineMessages({
|
|
|
697
697
|
id: 'ExportResourcesModal.csvSettings',
|
|
698
698
|
description: 'Label for CSV settings section',
|
|
699
699
|
defaultMessage: 'CSV settings:'
|
|
700
|
+
},
|
|
701
|
+
excelOptimized: {
|
|
702
|
+
id: 'ExportResourcesModal.excelOptimized',
|
|
703
|
+
description: 'Label for Excel-optimized CSV export checkbox',
|
|
704
|
+
defaultMessage: 'CSV file optimized for Excel'
|
|
705
|
+
},
|
|
706
|
+
excelOptimizedDescription: {
|
|
707
|
+
id: 'ExportResourcesModal.excelOptimizedDescription',
|
|
708
|
+
description: 'Description for Excel-optimized CSV export checkbox',
|
|
709
|
+
defaultMessage: 'Checking this option will prevent Excel from interpreting the data of the file.'
|
|
710
|
+
},
|
|
711
|
+
readMoreOnDocumentation: {
|
|
712
|
+
id: 'ExportResourcesModal.readMoreOnDocumentation',
|
|
713
|
+
description: 'Read more on documentation',
|
|
714
|
+
defaultMessage: 'Read more on the {documentationLink}'
|
|
700
715
|
}
|
|
701
716
|
});
|
|
702
717
|
|
|
@@ -805,6 +820,7 @@ const OUTPUT_FORMAT_OPTIONS = [{
|
|
|
805
820
|
const EXPORT_DATA_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data';
|
|
806
821
|
const CSV_TEMPLATES_LINK = 'https://docs.commercetools.com/merchant-center/import-data#download-a-template';
|
|
807
822
|
const CSV_STRUCTURE_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data#structure-of-exported-csv-files';
|
|
823
|
+
const EXPORT_EXCEL_DOCUMENTATION_LINK = 'https://docs.commercetools.com/merchant-center/export-data#optimize-csv-file-for-microsoft-excel';
|
|
808
824
|
|
|
809
825
|
const resourceTypeMessages = {
|
|
810
826
|
[EXPORTABLE_RESOURCES.CATEGORY]: {
|
|
@@ -1577,6 +1593,7 @@ const useInitialValues = props => {
|
|
|
1577
1593
|
groups: updateFieldGroupWithAdditionalFieldExtensions(groups),
|
|
1578
1594
|
queryPredicate: '',
|
|
1579
1595
|
fillRows: false,
|
|
1596
|
+
excelCompatible: false,
|
|
1580
1597
|
outputFormat: props.outputFormat,
|
|
1581
1598
|
columnSeparator: DELIMITERS$1.COMMA,
|
|
1582
1599
|
decimalSeparator: DELIMITERS$1.POINT,
|
|
@@ -1663,6 +1680,7 @@ const useStartExportOperation = props => {
|
|
|
1663
1680
|
fileFormat: values.outputFormat,
|
|
1664
1681
|
locales,
|
|
1665
1682
|
fillRows: isCsv && values.fillRows,
|
|
1683
|
+
excelCompatible: isCsv && values.excelCompatible,
|
|
1666
1684
|
separator: isCsv ? {
|
|
1667
1685
|
columns: values.columnSeparator,
|
|
1668
1686
|
decimal: values.decimalSeparator
|
|
@@ -1898,6 +1916,7 @@ const useValidateExportOperation = () => {
|
|
|
1898
1916
|
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; }
|
|
1899
1917
|
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; }
|
|
1900
1918
|
const ExportPreferenceSection = () => {
|
|
1919
|
+
const intl = reactIntl.useIntl();
|
|
1901
1920
|
const _useExportResourcesMo = useExportResourcesModalContext(),
|
|
1902
1921
|
formik = _useExportResourcesMo.formik;
|
|
1903
1922
|
const columnSeparatorOptions = _mapInstanceProperty__default["default"](COLUMN_DELIMITER_OPTIONS).call(COLUMN_DELIMITER_OPTIONS, option => _objectSpread$a(_objectSpread$a({}, option), {}, {
|
|
@@ -1907,7 +1926,7 @@ const ExportPreferenceSection = () => {
|
|
|
1907
1926
|
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, option.label))
|
|
1908
1927
|
}));
|
|
1909
1928
|
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1910
|
-
scale: "
|
|
1929
|
+
scale: "xl",
|
|
1911
1930
|
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1912
1931
|
scale: "s",
|
|
1913
1932
|
children: [jsxRuntime.jsxs("div", {
|
|
@@ -1918,60 +1937,80 @@ const ExportPreferenceSection = () => {
|
|
|
1918
1937
|
})]
|
|
1919
1938
|
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1920
1939
|
scale: "s",
|
|
1921
|
-
children: [jsxRuntime.
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
intlMessage: messages.decimal
|
|
1942
|
-
}), jsxRuntime.jsx(uiKit.SelectInput, {
|
|
1943
|
-
isSearchable: false,
|
|
1944
|
-
options: decimalSeparatorOptions,
|
|
1945
|
-
value: _valuesInstanceProperty__default["default"](formik).decimalSeparator,
|
|
1946
|
-
onChange: e => {
|
|
1947
|
-
formik.setFieldValue('decimalSeparator', e.target.value);
|
|
1948
|
-
},
|
|
1949
|
-
menuPortalTarget: document.body,
|
|
1950
|
-
horizontalConstraint: 4,
|
|
1951
|
-
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1952
|
-
})]
|
|
1940
|
+
children: [jsxRuntime.jsx(uiKit.SelectField, {
|
|
1941
|
+
title: intl.formatMessage(messages.columns),
|
|
1942
|
+
isSearchable: false,
|
|
1943
|
+
options: columnSeparatorOptions,
|
|
1944
|
+
value: _valuesInstanceProperty__default["default"](formik).columnSeparator,
|
|
1945
|
+
onChange: e => {
|
|
1946
|
+
formik.setFieldValue('columnSeparator', e.target.value);
|
|
1947
|
+
},
|
|
1948
|
+
menuPortalTarget: document.body,
|
|
1949
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1950
|
+
}), jsxRuntime.jsx(uiKit.SelectField, {
|
|
1951
|
+
title: intl.formatMessage(messages.decimals),
|
|
1952
|
+
isSearchable: false,
|
|
1953
|
+
options: decimalSeparatorOptions,
|
|
1954
|
+
value: _valuesInstanceProperty__default["default"](formik).decimalSeparator,
|
|
1955
|
+
onChange: e => {
|
|
1956
|
+
formik.setFieldValue('decimalSeparator', e.target.value);
|
|
1957
|
+
},
|
|
1958
|
+
menuPortalTarget: document.body,
|
|
1959
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1953
1960
|
})]
|
|
1954
1961
|
})]
|
|
1955
|
-
}), jsxRuntime.jsxs(
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1962
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1963
|
+
scale: "xl",
|
|
1964
|
+
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1965
|
+
scale: "m",
|
|
1966
|
+
children: [jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1967
|
+
isChecked: _valuesInstanceProperty__default["default"](formik).excelCompatible,
|
|
1968
|
+
onChange: e => {
|
|
1969
|
+
formik.setFieldValue('excelCompatible', e.target.checked);
|
|
1970
|
+
},
|
|
1971
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.excelOptimized))
|
|
1972
|
+
}), _valuesInstanceProperty__default["default"](formik).excelCompatible && jsxRuntime.jsx(uiKit.ContentNotification, {
|
|
1973
|
+
type: "info",
|
|
1974
|
+
children: jsxRuntime.jsx(uiKit.Spacings.Inset, {
|
|
1975
|
+
scale: "xs",
|
|
1976
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1977
|
+
children: [jsxRuntime.jsx("div", {
|
|
1978
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.excelOptimizedDescription))
|
|
1979
|
+
}), jsxRuntime.jsx("div", {
|
|
1980
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a(_objectSpread$a({}, messages.readMoreOnDocumentation), {}, {
|
|
1981
|
+
values: {
|
|
1982
|
+
documentationLink: jsxRuntime.jsx(uiKit.Link, {
|
|
1983
|
+
intlMessage: messages.documentation,
|
|
1984
|
+
isExternal: true,
|
|
1985
|
+
to: EXPORT_EXCEL_DOCUMENTATION_LINK
|
|
1986
|
+
}, "documentation-link")
|
|
1987
|
+
}
|
|
1988
|
+
}))
|
|
1989
|
+
})]
|
|
1990
|
+
})
|
|
1973
1991
|
})
|
|
1974
1992
|
})]
|
|
1993
|
+
}), jsxRuntime.jsxs("div", {
|
|
1994
|
+
children: [jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1995
|
+
isChecked: _valuesInstanceProperty__default["default"](formik).fillRows,
|
|
1996
|
+
onChange: e => {
|
|
1997
|
+
formik.setFieldValue('fillRows', e.target.checked);
|
|
1998
|
+
},
|
|
1999
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, messages.fillRows))
|
|
2000
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
2001
|
+
scale: "xl",
|
|
2002
|
+
children: [jsxRuntime.jsx("div", {}), jsxRuntime.jsx(uiKit.Text.Caption, {
|
|
2003
|
+
intlMessage: _objectSpread$a(_objectSpread$a({}, messages.moreInformation), {}, {
|
|
2004
|
+
values: {
|
|
2005
|
+
documentationLink: jsxRuntime.jsx(uiKit.Link, {
|
|
2006
|
+
intlMessage: messages.documentation,
|
|
2007
|
+
isExternal: true,
|
|
2008
|
+
to: CSV_STRUCTURE_DOCUMENTATION_LINK
|
|
2009
|
+
}, "documentation-link")
|
|
2010
|
+
}
|
|
2011
|
+
})
|
|
2012
|
+
})]
|
|
2013
|
+
})]
|
|
1975
2014
|
})]
|
|
1976
2015
|
})]
|
|
1977
2016
|
});
|
|
@@ -2085,59 +2124,53 @@ const ExportFileSettingsStep = () => {
|
|
|
2085
2124
|
onClose: onClose,
|
|
2086
2125
|
size: 16,
|
|
2087
2126
|
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
2088
|
-
children: jsxRuntime.
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
children: jsxRuntime.
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
title: intl.formatMessage(messages.fileName),
|
|
2115
|
-
touched: formik.touched.fileName,
|
|
2116
|
-
errors: mapFormikErrors(formik.errors.fileName),
|
|
2117
|
-
renderError: renderFileNameError
|
|
2118
|
-
})
|
|
2119
|
-
}), jsxRuntime.jsx(uiKit.SelectField, {
|
|
2120
|
-
name: "outputFormat",
|
|
2121
|
-
onChange: handleOutputFormatChange,
|
|
2122
|
-
onBlur: formik.handleBlur,
|
|
2123
|
-
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
2124
|
-
title: intl.formatMessage(messages.outputFormat),
|
|
2125
|
-
options: OUTPUT_FORMAT_OPTIONS,
|
|
2126
|
-
menuPortalTarget: document.body,
|
|
2127
|
-
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
2128
|
-
})]
|
|
2127
|
+
children: jsxRuntime.jsxs(uiKit.Grid, {
|
|
2128
|
+
gridRowGap: uiKit.designTokens.spacingXl,
|
|
2129
|
+
gridTemplateColumns: `calc(${uiKit.designTokens.constraint3} + ${uiKit.designTokens.spacingL}) auto`,
|
|
2130
|
+
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2131
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2132
|
+
intlMessage: messages.scope
|
|
2133
|
+
})
|
|
2134
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2135
|
+
children: jsxRuntime.jsx(ExportScopeSection, {})
|
|
2136
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2137
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2138
|
+
intlMessage: messages.saveAs
|
|
2139
|
+
})
|
|
2140
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2141
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
2142
|
+
scale: "xl",
|
|
2143
|
+
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
2144
|
+
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
2145
|
+
name: "fileName",
|
|
2146
|
+
onChange: formik.handleChange,
|
|
2147
|
+
onBlur: formik.handleBlur,
|
|
2148
|
+
value: _valuesInstanceProperty__default["default"](formik).fileName,
|
|
2149
|
+
title: intl.formatMessage(messages.fileName),
|
|
2150
|
+
touched: formik.touched.fileName,
|
|
2151
|
+
errors: mapFormikErrors(formik.errors.fileName),
|
|
2152
|
+
renderError: renderFileNameError
|
|
2129
2153
|
})
|
|
2130
|
-
}),
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2154
|
+
}), jsxRuntime.jsx(uiKit.SelectField, {
|
|
2155
|
+
name: "outputFormat",
|
|
2156
|
+
onChange: handleOutputFormatChange,
|
|
2157
|
+
onBlur: formik.handleBlur,
|
|
2158
|
+
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
2159
|
+
title: intl.formatMessage(messages.outputFormat),
|
|
2160
|
+
options: OUTPUT_FORMAT_OPTIONS,
|
|
2161
|
+
menuPortalTarget: document.body,
|
|
2162
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
2138
2163
|
})]
|
|
2139
2164
|
})
|
|
2140
|
-
})
|
|
2165
|
+
}), shouldShowPreferences && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2166
|
+
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2167
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2168
|
+
intlMessage: messages.csvSettings
|
|
2169
|
+
})
|
|
2170
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2171
|
+
children: jsxRuntime.jsx(ExportPreferenceSection, {})
|
|
2172
|
+
})]
|
|
2173
|
+
})]
|
|
2141
2174
|
})
|
|
2142
2175
|
})
|
|
2143
2176
|
});
|
|
@@ -3322,11 +3355,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3322
3355
|
return /*#__PURE__*/react.css("" , "" );
|
|
3323
3356
|
}
|
|
3324
3357
|
|
|
3325
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3358
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-2bc898e9.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
3326
3359
|
|
|
3327
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3360
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-08062080.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
3328
3361
|
|
|
3329
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3362
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-5b4d1bab.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
3330
3363
|
|
|
3331
3364
|
function getDropArea(_ref) {
|
|
3332
3365
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -3407,17 +3440,17 @@ const getChunkImport = locale => {
|
|
|
3407
3440
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3408
3441
|
switch (intlLocale) {
|
|
3409
3442
|
case 'de':
|
|
3410
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-
|
|
3443
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-f3ef440e.cjs.prod.js'); });
|
|
3411
3444
|
case 'es':
|
|
3412
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-
|
|
3445
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-3bcde029.cjs.prod.js'); });
|
|
3413
3446
|
case 'fr-FR':
|
|
3414
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-
|
|
3447
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-5fbee168.cjs.prod.js'); });
|
|
3415
3448
|
case 'ja':
|
|
3416
3449
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-37632763.cjs.prod.js'); });
|
|
3417
3450
|
case 'pt-BR':
|
|
3418
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
3451
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-53c6b1c2.cjs.prod.js'); });
|
|
3419
3452
|
default:
|
|
3420
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-
|
|
3453
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-fa1adbcf.cjs.prod.js'); });
|
|
3421
3454
|
}
|
|
3422
3455
|
};
|
|
3423
3456
|
const loadMessages = async locale => {
|
|
@@ -51,7 +51,7 @@ var ptBR = {
|
|
|
51
51
|
},
|
|
52
52
|
"ExportResourcesModal.columns": {
|
|
53
53
|
developer_comment: "Label for column separator select",
|
|
54
|
-
string: "Columns
|
|
54
|
+
string: "Columns"
|
|
55
55
|
},
|
|
56
56
|
"ExportResourcesModal.confirmSelection": {
|
|
57
57
|
developer_comment: "Label for \"Confirm selection\" button",
|
|
@@ -65,10 +65,6 @@ var ptBR = {
|
|
|
65
65
|
developer_comment: "CSV upload failed title",
|
|
66
66
|
string: "Falha ao carregar CSV"
|
|
67
67
|
},
|
|
68
|
-
"ExportResourcesModal.decimal": {
|
|
69
|
-
developer_comment: "Label for decimal separator select",
|
|
70
|
-
string: "Decimals:"
|
|
71
|
-
},
|
|
72
68
|
"ExportResourcesModal.decimalSeparatorComma": {
|
|
73
69
|
developer_comment: "Label for comma decimal separator option",
|
|
74
70
|
string: "comma (,)"
|
|
@@ -77,6 +73,10 @@ var ptBR = {
|
|
|
77
73
|
developer_comment: "Label for point decimal separator option",
|
|
78
74
|
string: "point (.)"
|
|
79
75
|
},
|
|
76
|
+
"ExportResourcesModal.decimals": {
|
|
77
|
+
developer_comment: "Label for decimal separator select",
|
|
78
|
+
string: "Decimals"
|
|
79
|
+
},
|
|
80
80
|
"ExportResourcesModal.defineFieldsToIncludeInExport": {
|
|
81
81
|
developer_comment: "A message to define the fields to include in export",
|
|
82
82
|
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."
|
|
@@ -105,6 +105,14 @@ var ptBR = {
|
|
|
105
105
|
developer_comment: "Label for error type column",
|
|
106
106
|
string: "Tipo de erro"
|
|
107
107
|
},
|
|
108
|
+
"ExportResourcesModal.excelOptimized": {
|
|
109
|
+
developer_comment: "Label for Excel-optimized CSV export checkbox",
|
|
110
|
+
string: "CSV file optimized for Excel"
|
|
111
|
+
},
|
|
112
|
+
"ExportResourcesModal.excelOptimizedDescription": {
|
|
113
|
+
developer_comment: "Description for Excel-optimized CSV export checkbox",
|
|
114
|
+
string: "Checking this option will prevent Excel from interpreting the data of the file."
|
|
115
|
+
},
|
|
108
116
|
"ExportResourcesModal.exportBasedOnMyViewsMessage": {
|
|
109
117
|
developer_comment: "Select Export setttings based on my views",
|
|
110
118
|
string: "Selecione as configurações de exportação com base em:"
|
|
@@ -377,6 +385,10 @@ var ptBR = {
|
|
|
377
385
|
developer_comment: "Label for query predicate option",
|
|
378
386
|
string: "Predicado da consulta"
|
|
379
387
|
},
|
|
388
|
+
"ExportResourcesModal.readMoreOnDocumentation": {
|
|
389
|
+
developer_comment: "Read more on documentation",
|
|
390
|
+
string: "Read more on the {documentationLink}"
|
|
391
|
+
},
|
|
380
392
|
"ExportResourcesModal.saveAs": {
|
|
381
393
|
developer_comment: "Label for \"Save as:\"",
|
|
382
394
|
string: "Save as:"
|
|
@@ -51,7 +51,7 @@ var ptBR = {
|
|
|
51
51
|
},
|
|
52
52
|
"ExportResourcesModal.columns": {
|
|
53
53
|
developer_comment: "Label for column separator select",
|
|
54
|
-
string: "Columns
|
|
54
|
+
string: "Columns"
|
|
55
55
|
},
|
|
56
56
|
"ExportResourcesModal.confirmSelection": {
|
|
57
57
|
developer_comment: "Label for \"Confirm selection\" button",
|
|
@@ -65,10 +65,6 @@ var ptBR = {
|
|
|
65
65
|
developer_comment: "CSV upload failed title",
|
|
66
66
|
string: "Falha ao carregar CSV"
|
|
67
67
|
},
|
|
68
|
-
"ExportResourcesModal.decimal": {
|
|
69
|
-
developer_comment: "Label for decimal separator select",
|
|
70
|
-
string: "Decimals:"
|
|
71
|
-
},
|
|
72
68
|
"ExportResourcesModal.decimalSeparatorComma": {
|
|
73
69
|
developer_comment: "Label for comma decimal separator option",
|
|
74
70
|
string: "comma (,)"
|
|
@@ -77,6 +73,10 @@ var ptBR = {
|
|
|
77
73
|
developer_comment: "Label for point decimal separator option",
|
|
78
74
|
string: "point (.)"
|
|
79
75
|
},
|
|
76
|
+
"ExportResourcesModal.decimals": {
|
|
77
|
+
developer_comment: "Label for decimal separator select",
|
|
78
|
+
string: "Decimals"
|
|
79
|
+
},
|
|
80
80
|
"ExportResourcesModal.defineFieldsToIncludeInExport": {
|
|
81
81
|
developer_comment: "A message to define the fields to include in export",
|
|
82
82
|
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."
|
|
@@ -105,6 +105,14 @@ var ptBR = {
|
|
|
105
105
|
developer_comment: "Label for error type column",
|
|
106
106
|
string: "Tipo de erro"
|
|
107
107
|
},
|
|
108
|
+
"ExportResourcesModal.excelOptimized": {
|
|
109
|
+
developer_comment: "Label for Excel-optimized CSV export checkbox",
|
|
110
|
+
string: "CSV file optimized for Excel"
|
|
111
|
+
},
|
|
112
|
+
"ExportResourcesModal.excelOptimizedDescription": {
|
|
113
|
+
developer_comment: "Description for Excel-optimized CSV export checkbox",
|
|
114
|
+
string: "Checking this option will prevent Excel from interpreting the data of the file."
|
|
115
|
+
},
|
|
108
116
|
"ExportResourcesModal.exportBasedOnMyViewsMessage": {
|
|
109
117
|
developer_comment: "Select Export setttings based on my views",
|
|
110
118
|
string: "Selecione as configurações de exportação com base em:"
|
|
@@ -377,6 +385,10 @@ var ptBR = {
|
|
|
377
385
|
developer_comment: "Label for query predicate option",
|
|
378
386
|
string: "Predicado da consulta"
|
|
379
387
|
},
|
|
388
|
+
"ExportResourcesModal.readMoreOnDocumentation": {
|
|
389
|
+
developer_comment: "Read more on documentation",
|
|
390
|
+
string: "Read more on the {documentationLink}"
|
|
391
|
+
},
|
|
380
392
|
"ExportResourcesModal.saveAs": {
|
|
381
393
|
developer_comment: "Label for \"Save as:\"",
|
|
382
394
|
string: "Save as:"
|
|
@@ -49,7 +49,7 @@ var ptBR = {
|
|
|
49
49
|
},
|
|
50
50
|
"ExportResourcesModal.columns": {
|
|
51
51
|
developer_comment: "Label for column separator select",
|
|
52
|
-
string: "Columns
|
|
52
|
+
string: "Columns"
|
|
53
53
|
},
|
|
54
54
|
"ExportResourcesModal.confirmSelection": {
|
|
55
55
|
developer_comment: "Label for \"Confirm selection\" button",
|
|
@@ -63,10 +63,6 @@ var ptBR = {
|
|
|
63
63
|
developer_comment: "CSV upload failed title",
|
|
64
64
|
string: "Falha ao carregar CSV"
|
|
65
65
|
},
|
|
66
|
-
"ExportResourcesModal.decimal": {
|
|
67
|
-
developer_comment: "Label for decimal separator select",
|
|
68
|
-
string: "Decimals:"
|
|
69
|
-
},
|
|
70
66
|
"ExportResourcesModal.decimalSeparatorComma": {
|
|
71
67
|
developer_comment: "Label for comma decimal separator option",
|
|
72
68
|
string: "comma (,)"
|
|
@@ -75,6 +71,10 @@ var ptBR = {
|
|
|
75
71
|
developer_comment: "Label for point decimal separator option",
|
|
76
72
|
string: "point (.)"
|
|
77
73
|
},
|
|
74
|
+
"ExportResourcesModal.decimals": {
|
|
75
|
+
developer_comment: "Label for decimal separator select",
|
|
76
|
+
string: "Decimals"
|
|
77
|
+
},
|
|
78
78
|
"ExportResourcesModal.defineFieldsToIncludeInExport": {
|
|
79
79
|
developer_comment: "A message to define the fields to include in export",
|
|
80
80
|
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."
|
|
@@ -103,6 +103,14 @@ var ptBR = {
|
|
|
103
103
|
developer_comment: "Label for error type column",
|
|
104
104
|
string: "Tipo de erro"
|
|
105
105
|
},
|
|
106
|
+
"ExportResourcesModal.excelOptimized": {
|
|
107
|
+
developer_comment: "Label for Excel-optimized CSV export checkbox",
|
|
108
|
+
string: "CSV file optimized for Excel"
|
|
109
|
+
},
|
|
110
|
+
"ExportResourcesModal.excelOptimizedDescription": {
|
|
111
|
+
developer_comment: "Description for Excel-optimized CSV export checkbox",
|
|
112
|
+
string: "Checking this option will prevent Excel from interpreting the data of the file."
|
|
113
|
+
},
|
|
106
114
|
"ExportResourcesModal.exportBasedOnMyViewsMessage": {
|
|
107
115
|
developer_comment: "Select Export setttings based on my views",
|
|
108
116
|
string: "Selecione as configurações de exportação com base em:"
|
|
@@ -375,6 +383,10 @@ var ptBR = {
|
|
|
375
383
|
developer_comment: "Label for query predicate option",
|
|
376
384
|
string: "Predicado da consulta"
|
|
377
385
|
},
|
|
386
|
+
"ExportResourcesModal.readMoreOnDocumentation": {
|
|
387
|
+
developer_comment: "Read more on documentation",
|
|
388
|
+
string: "Read more on the {documentationLink}"
|
|
389
|
+
},
|
|
378
390
|
"ExportResourcesModal.saveAs": {
|
|
379
391
|
developer_comment: "Label for \"Save as:\"",
|
|
380
392
|
string: "Save as:"
|
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": "5.
|
|
4
|
+
"version": "5.4.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.27.
|
|
19
|
-
"@babel/runtime-corejs3": "7.27.
|
|
18
|
+
"@babel/runtime": "7.27.4",
|
|
19
|
+
"@babel/runtime-corejs3": "7.27.4",
|
|
20
20
|
"@emotion/react": "11.14.0",
|
|
21
21
|
"@emotion/styled": "11.14.0",
|
|
22
22
|
"@formatjs/cli": "6.7.1",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"react-dropzone": "14.3.8"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@commercetools-frontend/actions-global": "
|
|
33
|
-
"@commercetools-frontend/application-components": "
|
|
34
|
-
"@commercetools-frontend/application-shell": "
|
|
35
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
36
|
-
"@commercetools-frontend/constants": "
|
|
37
|
-
"@commercetools-frontend/fullstory": "
|
|
38
|
-
"@commercetools-frontend/i18n": "
|
|
39
|
-
"@commercetools-frontend/jest-preset-mc-app": "
|
|
40
|
-
"@commercetools-frontend/l10n": "
|
|
41
|
-
"@commercetools-frontend/sdk": "
|
|
42
|
-
"@commercetools-frontend/sentry": "
|
|
43
|
-
"@commercetools-frontend/ui-kit": "
|
|
44
|
-
"@commercetools-uikit/design-system": "
|
|
45
|
-
"@commercetools-uikit/icons": "
|
|
32
|
+
"@commercetools-frontend/actions-global": "24.2.0",
|
|
33
|
+
"@commercetools-frontend/application-components": "24.2.0",
|
|
34
|
+
"@commercetools-frontend/application-shell": "24.2.0",
|
|
35
|
+
"@commercetools-frontend/application-shell-connectors": "24.2.0",
|
|
36
|
+
"@commercetools-frontend/constants": "24.2.0",
|
|
37
|
+
"@commercetools-frontend/fullstory": "4.0.0",
|
|
38
|
+
"@commercetools-frontend/i18n": "24.2.0",
|
|
39
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.2.0",
|
|
40
|
+
"@commercetools-frontend/l10n": "24.2.0",
|
|
41
|
+
"@commercetools-frontend/sdk": "24.2.0",
|
|
42
|
+
"@commercetools-frontend/sentry": "24.2.0",
|
|
43
|
+
"@commercetools-frontend/ui-kit": "20.1.0",
|
|
44
|
+
"@commercetools-uikit/design-system": "20.1.0",
|
|
45
|
+
"@commercetools-uikit/icons": "20.1.0",
|
|
46
46
|
"@preconstruct/cli": "2.8.12",
|
|
47
47
|
"@types/jest": "29.5.14",
|
|
48
48
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
@@ -54,20 +54,20 @@
|
|
|
54
54
|
"rimraf": "6.0.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@commercetools-frontend/actions-global": "23.x || 24.x
|
|
58
|
-
"@commercetools-frontend/application-components": "23.x || 24.x
|
|
59
|
-
"@commercetools-frontend/application-shell": "23.x || 24.x
|
|
60
|
-
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x
|
|
61
|
-
"@commercetools-frontend/constants": "23.x || 24.x
|
|
62
|
-
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x
|
|
63
|
-
"@commercetools-frontend/i18n": "23.x || 24.x
|
|
64
|
-
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x
|
|
65
|
-
"@commercetools-frontend/l10n": "23.x || 24.x
|
|
66
|
-
"@commercetools-frontend/sdk": "23.x || 24.x
|
|
67
|
-
"@commercetools-frontend/sentry": "23.x || 24.x
|
|
68
|
-
"@commercetools-frontend/ui-kit": "19.x || 20.x
|
|
69
|
-
"@commercetools-uikit/design-system": "19.x || 20.x
|
|
70
|
-
"@commercetools-uikit/icons": "19.x || 20.x
|
|
57
|
+
"@commercetools-frontend/actions-global": "23.x || 24.x",
|
|
58
|
+
"@commercetools-frontend/application-components": "23.x || 24.x",
|
|
59
|
+
"@commercetools-frontend/application-shell": "23.x || 24.x",
|
|
60
|
+
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x",
|
|
61
|
+
"@commercetools-frontend/constants": "23.x || 24.x",
|
|
62
|
+
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x",
|
|
63
|
+
"@commercetools-frontend/i18n": "23.x || 24.x",
|
|
64
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x",
|
|
65
|
+
"@commercetools-frontend/l10n": "23.x || 24.x",
|
|
66
|
+
"@commercetools-frontend/sdk": "23.x || 24.x",
|
|
67
|
+
"@commercetools-frontend/sentry": "23.x || 24.x",
|
|
68
|
+
"@commercetools-frontend/ui-kit": "19.x || 20.x",
|
|
69
|
+
"@commercetools-uikit/design-system": "19.x || 20.x",
|
|
70
|
+
"@commercetools-uikit/icons": "19.x || 20.x",
|
|
71
71
|
"react": "17.x || 19.x",
|
|
72
72
|
"react-intl": "6.x || 7.x",
|
|
73
73
|
"react-redux": "7.x",
|