@commercetools-frontend-extensions/export-resources-modal 5.4.2 → 5.5.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-441c12ea.cjs.dev.js → active-drag-drop-area-1da57d5d.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-9882bb6f.esm.js → active-drag-drop-area-5b69772b.esm.js} +1 -1
- package/dist/{active-drag-drop-area-f21183be.cjs.prod.js → active-drag-drop-area-68b432ef.cjs.prod.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/declarations/src/@constants/exportable-resources.d.ts +1 -0
- package/dist/{en-fde71e63.esm.js → en-0dd4e6e9.esm.js} +1 -1
- package/dist/{en-fa1adbcf.cjs.prod.js → en-b546d455.cjs.prod.js} +1 -1
- package/dist/{en-826f3da3.cjs.dev.js → en-d0e20cbd.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-2b3d27bc.cjs.prod.js → enabled-drop-area-2ae19338.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-20c4a8b9.cjs.dev.js → enabled-drop-area-a09029cb.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-9c812480.esm.js → enabled-drop-area-bc1f9bdd.esm.js} +1 -1
- package/dist/{file-dropped-area-b34654ff.cjs.prod.js → file-dropped-area-90cb6ada.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-62d1c6fc.cjs.dev.js → file-dropped-area-d9e5d47d.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-8b91f1b5.esm.js → file-dropped-area-f2ad87dc.esm.js} +1 -1
- package/dist/{fr-FR-685637af.cjs.dev.js → fr-FR-1c0b452f.cjs.dev.js} +5 -5
- package/dist/{fr-FR-4f366109.esm.js → fr-FR-b1a5c6ae.esm.js} +5 -5
- package/dist/{fr-FR-5fbee168.cjs.prod.js → fr-FR-d8091f95.cjs.prod.js} +5 -5
- package/dist/{index-a5b391ad.esm.js → index-5a3b7b01.esm.js} +41 -14
- package/dist/{index-52ff45ca.cjs.dev.js → index-8dd4c7d5.cjs.dev.js} +41 -14
- package/dist/{index-b76d4314.cjs.prod.js → index-9caf9dcf.cjs.prod.js} +41 -14
- package/package.json +6 -6
package/dist/{active-drag-drop-area-441c12ea.cjs.dev.js → active-drag-drop-area-1da57d5d.cjs.dev.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-8dd4c7d5.cjs.dev.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
package/dist/{active-drag-drop-area-9882bb6f.esm.js → active-drag-drop-area-5b69772b.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-
|
|
1
|
+
import { F as FileDropped, E as EnabledDropArea } from './index-5a3b7b01.esm.js';
|
|
2
2
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
4
4
|
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-9caf9dcf.cjs.prod.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-8dd4c7d5.cjs.dev.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@commercetools-frontend/ui-kit');
|
|
8
8
|
require('@emotion/react/jsx-runtime');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-9caf9dcf.cjs.prod.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@commercetools-frontend/ui-kit');
|
|
8
8
|
require('@emotion/react/jsx-runtime');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as EXPORTABLE_RESOURCES, b as EXPORT_TYPES, L as LocaleOption, S as Step, a as default, d as useConvertFieldDefinitionsForExport } from './index-
|
|
1
|
+
export { c as EXPORTABLE_RESOURCES, b as EXPORT_TYPES, L as LocaleOption, S as Step, a as default, d as useConvertFieldDefinitionsForExport } from './index-5a3b7b01.esm.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@commercetools-frontend/ui-kit';
|
|
4
4
|
import '@emotion/react/jsx-runtime';
|
|
@@ -137,7 +137,7 @@ var en = {
|
|
|
137
137
|
},
|
|
138
138
|
"ExportResourcesModal.exportProcessMayTakeAWhile": {
|
|
139
139
|
developer_comment: "The export process may take a while",
|
|
140
|
-
string: "The export process may take a while. To view the progress and download the file after starting the export, go to <exportLogsLink>
|
|
140
|
+
string: "The export process may take a while. To view the progress and download the file after starting the export, go to <exportLogsLink>export logs</exportLogsLink> area, located in the <operationsIcon></operationsIcon> operations menu."
|
|
141
141
|
},
|
|
142
142
|
"ExportResourcesModal.exportScopeAllCategories": {
|
|
143
143
|
developer_comment: "Label for Export All categories",
|
|
@@ -139,7 +139,7 @@ var en = {
|
|
|
139
139
|
},
|
|
140
140
|
"ExportResourcesModal.exportProcessMayTakeAWhile": {
|
|
141
141
|
developer_comment: "The export process may take a while",
|
|
142
|
-
string: "The export process may take a while. To view the progress and download the file after starting the export, go to <exportLogsLink>
|
|
142
|
+
string: "The export process may take a while. To view the progress and download the file after starting the export, go to <exportLogsLink>export logs</exportLogsLink> area, located in the <operationsIcon></operationsIcon> operations menu."
|
|
143
143
|
},
|
|
144
144
|
"ExportResourcesModal.exportScopeAllCategories": {
|
|
145
145
|
developer_comment: "Label for Export All categories",
|
|
@@ -139,7 +139,7 @@ var en = {
|
|
|
139
139
|
},
|
|
140
140
|
"ExportResourcesModal.exportProcessMayTakeAWhile": {
|
|
141
141
|
developer_comment: "The export process may take a while",
|
|
142
|
-
string: "The export process may take a while. To view the progress and download the file after starting the export, go to <exportLogsLink>
|
|
142
|
+
string: "The export process may take a while. To view the progress and download the file after starting the export, go to <exportLogsLink>export logs</exportLogsLink> area, located in the <operationsIcon></operationsIcon> operations menu."
|
|
143
143
|
},
|
|
144
144
|
"ExportResourcesModal.exportScopeAllCategories": {
|
|
145
145
|
developer_comment: "Label for Export All categories",
|
package/dist/{enabled-drop-area-2b3d27bc.cjs.prod.js → enabled-drop-area-2ae19338.cjs.prod.js}
RENAMED
|
@@ -12,7 +12,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
12
12
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
13
13
|
require('react');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-9caf9dcf.cjs.prod.js');
|
|
16
16
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
17
17
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
package/dist/{enabled-drop-area-20c4a8b9.cjs.dev.js → enabled-drop-area-a09029cb.cjs.dev.js}
RENAMED
|
@@ -12,7 +12,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
12
12
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
13
13
|
require('react');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-8dd4c7d5.cjs.dev.js');
|
|
16
16
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
17
17
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
@@ -10,7 +10,7 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
10
10
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
11
11
|
import 'react';
|
|
12
12
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
13
|
-
import { m as messages } from './index-
|
|
13
|
+
import { m as messages } from './index-5a3b7b01.esm.js';
|
|
14
14
|
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
15
15
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
16
16
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
package/dist/{file-dropped-area-b34654ff.cjs.prod.js → file-dropped-area-90cb6ada.cjs.prod.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
|
|
4
4
|
var reactIntl = require('react-intl');
|
|
5
5
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
6
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
6
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-9caf9dcf.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
9
9
|
require('react');
|
package/dist/{file-dropped-area-62d1c6fc.cjs.dev.js → file-dropped-area-d9e5d47d.cjs.dev.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
|
|
4
4
|
var reactIntl = require('react-intl');
|
|
5
5
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
6
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
6
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-8dd4c7d5.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
9
9
|
require('react');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
|
|
4
|
-
import { u as useExportResourcesModalContext, m as messages } from './index-
|
|
4
|
+
import { u as useExportResourcesModalContext, m as messages } from './index-5a3b7b01.esm.js';
|
|
5
5
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
6
6
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
7
7
|
import 'react';
|
|
@@ -51,7 +51,7 @@ var frFR = {
|
|
|
51
51
|
},
|
|
52
52
|
"ExportResourcesModal.columns": {
|
|
53
53
|
developer_comment: "Label for column separator select",
|
|
54
|
-
string: "
|
|
54
|
+
string: "Colonnes"
|
|
55
55
|
},
|
|
56
56
|
"ExportResourcesModal.confirmSelection": {
|
|
57
57
|
developer_comment: "Label for \"Confirm selection\" button",
|
|
@@ -75,7 +75,7 @@ var frFR = {
|
|
|
75
75
|
},
|
|
76
76
|
"ExportResourcesModal.decimals": {
|
|
77
77
|
developer_comment: "Label for decimal separator select",
|
|
78
|
-
string: "
|
|
78
|
+
string: "Décimales"
|
|
79
79
|
},
|
|
80
80
|
"ExportResourcesModal.defineFieldsToIncludeInExport": {
|
|
81
81
|
developer_comment: "A message to define the fields to include in export",
|
|
@@ -107,11 +107,11 @@ var frFR = {
|
|
|
107
107
|
},
|
|
108
108
|
"ExportResourcesModal.excelOptimized": {
|
|
109
109
|
developer_comment: "Label for Excel-optimized CSV export checkbox",
|
|
110
|
-
string: "CSV
|
|
110
|
+
string: "Fichier CSV optimisé pour Excel"
|
|
111
111
|
},
|
|
112
112
|
"ExportResourcesModal.excelOptimizedDescription": {
|
|
113
113
|
developer_comment: "Description for Excel-optimized CSV export checkbox",
|
|
114
|
-
string: "
|
|
114
|
+
string: "Le fait de cocher cette option empêchera Excel d'interpréter les données du fichier."
|
|
115
115
|
},
|
|
116
116
|
"ExportResourcesModal.exportBasedOnMyViewsMessage": {
|
|
117
117
|
developer_comment: "Select Export setttings based on my views",
|
|
@@ -387,7 +387,7 @@ var frFR = {
|
|
|
387
387
|
},
|
|
388
388
|
"ExportResourcesModal.readMoreOnDocumentation": {
|
|
389
389
|
developer_comment: "Read more on documentation",
|
|
390
|
-
string: "
|
|
390
|
+
string: "En savoir plus sur {documentationLink}"
|
|
391
391
|
},
|
|
392
392
|
"ExportResourcesModal.saveAs": {
|
|
393
393
|
developer_comment: "Label for \"Save as:\"",
|
|
@@ -49,7 +49,7 @@ var frFR = {
|
|
|
49
49
|
},
|
|
50
50
|
"ExportResourcesModal.columns": {
|
|
51
51
|
developer_comment: "Label for column separator select",
|
|
52
|
-
string: "
|
|
52
|
+
string: "Colonnes"
|
|
53
53
|
},
|
|
54
54
|
"ExportResourcesModal.confirmSelection": {
|
|
55
55
|
developer_comment: "Label for \"Confirm selection\" button",
|
|
@@ -73,7 +73,7 @@ var frFR = {
|
|
|
73
73
|
},
|
|
74
74
|
"ExportResourcesModal.decimals": {
|
|
75
75
|
developer_comment: "Label for decimal separator select",
|
|
76
|
-
string: "
|
|
76
|
+
string: "Décimales"
|
|
77
77
|
},
|
|
78
78
|
"ExportResourcesModal.defineFieldsToIncludeInExport": {
|
|
79
79
|
developer_comment: "A message to define the fields to include in export",
|
|
@@ -105,11 +105,11 @@ var frFR = {
|
|
|
105
105
|
},
|
|
106
106
|
"ExportResourcesModal.excelOptimized": {
|
|
107
107
|
developer_comment: "Label for Excel-optimized CSV export checkbox",
|
|
108
|
-
string: "CSV
|
|
108
|
+
string: "Fichier CSV optimisé pour Excel"
|
|
109
109
|
},
|
|
110
110
|
"ExportResourcesModal.excelOptimizedDescription": {
|
|
111
111
|
developer_comment: "Description for Excel-optimized CSV export checkbox",
|
|
112
|
-
string: "
|
|
112
|
+
string: "Le fait de cocher cette option empêchera Excel d'interpréter les données du fichier."
|
|
113
113
|
},
|
|
114
114
|
"ExportResourcesModal.exportBasedOnMyViewsMessage": {
|
|
115
115
|
developer_comment: "Select Export setttings based on my views",
|
|
@@ -385,7 +385,7 @@ var frFR = {
|
|
|
385
385
|
},
|
|
386
386
|
"ExportResourcesModal.readMoreOnDocumentation": {
|
|
387
387
|
developer_comment: "Read more on documentation",
|
|
388
|
-
string: "
|
|
388
|
+
string: "En savoir plus sur {documentationLink}"
|
|
389
389
|
},
|
|
390
390
|
"ExportResourcesModal.saveAs": {
|
|
391
391
|
developer_comment: "Label for \"Save as:\"",
|
|
@@ -51,7 +51,7 @@ var frFR = {
|
|
|
51
51
|
},
|
|
52
52
|
"ExportResourcesModal.columns": {
|
|
53
53
|
developer_comment: "Label for column separator select",
|
|
54
|
-
string: "
|
|
54
|
+
string: "Colonnes"
|
|
55
55
|
},
|
|
56
56
|
"ExportResourcesModal.confirmSelection": {
|
|
57
57
|
developer_comment: "Label for \"Confirm selection\" button",
|
|
@@ -75,7 +75,7 @@ var frFR = {
|
|
|
75
75
|
},
|
|
76
76
|
"ExportResourcesModal.decimals": {
|
|
77
77
|
developer_comment: "Label for decimal separator select",
|
|
78
|
-
string: "
|
|
78
|
+
string: "Décimales"
|
|
79
79
|
},
|
|
80
80
|
"ExportResourcesModal.defineFieldsToIncludeInExport": {
|
|
81
81
|
developer_comment: "A message to define the fields to include in export",
|
|
@@ -107,11 +107,11 @@ var frFR = {
|
|
|
107
107
|
},
|
|
108
108
|
"ExportResourcesModal.excelOptimized": {
|
|
109
109
|
developer_comment: "Label for Excel-optimized CSV export checkbox",
|
|
110
|
-
string: "CSV
|
|
110
|
+
string: "Fichier CSV optimisé pour Excel"
|
|
111
111
|
},
|
|
112
112
|
"ExportResourcesModal.excelOptimizedDescription": {
|
|
113
113
|
developer_comment: "Description for Excel-optimized CSV export checkbox",
|
|
114
|
-
string: "
|
|
114
|
+
string: "Le fait de cocher cette option empêchera Excel d'interpréter les données du fichier."
|
|
115
115
|
},
|
|
116
116
|
"ExportResourcesModal.exportBasedOnMyViewsMessage": {
|
|
117
117
|
developer_comment: "Select Export setttings based on my views",
|
|
@@ -387,7 +387,7 @@ var frFR = {
|
|
|
387
387
|
},
|
|
388
388
|
"ExportResourcesModal.readMoreOnDocumentation": {
|
|
389
389
|
developer_comment: "Read more on documentation",
|
|
390
|
-
string: "
|
|
390
|
+
string: "En savoir plus sur {documentationLink}"
|
|
391
391
|
},
|
|
392
392
|
"ExportResourcesModal.saveAs": {
|
|
393
393
|
developer_comment: "Label for \"Save as:\"",
|
|
@@ -108,6 +108,11 @@ var messages = defineMessages({
|
|
|
108
108
|
description: 'Label for the product types modal title',
|
|
109
109
|
defaultMessage: 'Export product types'
|
|
110
110
|
},
|
|
111
|
+
'modalTitle.business-unit': {
|
|
112
|
+
id: 'ExportResourcesModal.modalTitle.businessUnit',
|
|
113
|
+
description: 'Label for the business units modal title',
|
|
114
|
+
defaultMessage: 'Export business units'
|
|
115
|
+
},
|
|
111
116
|
outputFormat: {
|
|
112
117
|
id: 'ExportResourcesModal.outputFormat',
|
|
113
118
|
description: 'File format like (csv, xls, ...etc)',
|
|
@@ -317,6 +322,21 @@ var messages = defineMessages({
|
|
|
317
322
|
description: 'Label for Export Filtered discount codes',
|
|
318
323
|
defaultMessage: 'Export filtered: {total, plural, one {# discount code} other {# discount codes}}'
|
|
319
324
|
},
|
|
325
|
+
exportScopeAllBusinessUnits: {
|
|
326
|
+
id: 'ExportResourcesModal.exportScopeAllBusinessUnits',
|
|
327
|
+
description: 'Label for Export All business units',
|
|
328
|
+
defaultMessage: 'Export all: {total, plural, one {# business unit} other {# business units}}'
|
|
329
|
+
},
|
|
330
|
+
exportScopeSelectedBusinessUnits: {
|
|
331
|
+
id: 'ExportResourcesModal.exportScopeSelectedBusinessUnits',
|
|
332
|
+
description: 'Label for Export Selected business units',
|
|
333
|
+
defaultMessage: 'Export selected: {total, plural, one {# business unit} other {# business units}}'
|
|
334
|
+
},
|
|
335
|
+
exportScopeFilteredBusinessUnits: {
|
|
336
|
+
id: 'ExportResourcesModal.exportScopeFilteredBusinessUnits',
|
|
337
|
+
description: 'Label for Export Filtered business units',
|
|
338
|
+
defaultMessage: 'Export filtered: {total, plural, one {# business unit} other {# business units}}'
|
|
339
|
+
},
|
|
320
340
|
exportScopeAllOrders: {
|
|
321
341
|
id: 'ExportResourcesModal.exportScopeAllOrders',
|
|
322
342
|
description: 'Label for Export All orders',
|
|
@@ -761,7 +781,8 @@ const EXPORTABLE_RESOURCES = {
|
|
|
761
781
|
DISCOUNT_CODE: 'discount-code',
|
|
762
782
|
INVENTORY_ENTRY: 'inventory-entry',
|
|
763
783
|
ORDER: 'order',
|
|
764
|
-
CUSTOMER: 'customer'
|
|
784
|
+
CUSTOMER: 'customer',
|
|
785
|
+
BUSINESS_UNIT: 'business-unit'
|
|
765
786
|
};
|
|
766
787
|
|
|
767
788
|
const OUTPUT_FORMATS = {
|
|
@@ -816,6 +837,11 @@ const resourceTypeMessages = {
|
|
|
816
837
|
exportScopeAll: messages.exportScopeAllCustomers,
|
|
817
838
|
exportScopeSelected: messages.exportScopeSelectedCustomers,
|
|
818
839
|
exportScopeFiltered: messages.exportScopeFilteredCustomers
|
|
840
|
+
},
|
|
841
|
+
[EXPORTABLE_RESOURCES.BUSINESS_UNIT]: {
|
|
842
|
+
exportScopeAll: messages.exportScopeAllBusinessUnits,
|
|
843
|
+
exportScopeSelected: messages.exportScopeSelectedBusinessUnits,
|
|
844
|
+
exportScopeFiltered: messages.exportScopeFilteredBusinessUnits
|
|
819
845
|
}
|
|
820
846
|
};
|
|
821
847
|
|
|
@@ -985,7 +1011,8 @@ function resourceTypeToFileName(resourceType, locale) {
|
|
|
985
1011
|
[EXPORTABLE_RESOURCES.DISCOUNT_CODE]: 'Discount_Codes',
|
|
986
1012
|
[EXPORTABLE_RESOURCES.INVENTORY_ENTRY]: 'Inventories',
|
|
987
1013
|
[EXPORTABLE_RESOURCES.CUSTOMER]: 'Customers',
|
|
988
|
-
[EXPORTABLE_RESOURCES.ORDER]: 'Orders'
|
|
1014
|
+
[EXPORTABLE_RESOURCES.ORDER]: 'Orders',
|
|
1015
|
+
[EXPORTABLE_RESOURCES.BUSINESS_UNIT]: 'Business_Units'
|
|
989
1016
|
};
|
|
990
1017
|
const displayName = resourceTypeMap[resourceType];
|
|
991
1018
|
if (!displayName) {
|
|
@@ -1885,7 +1912,7 @@ const ExportPreferenceSection = () => {
|
|
|
1885
1912
|
label: jsx(FormattedMessage, _objectSpread$a({}, option.label))
|
|
1886
1913
|
}));
|
|
1887
1914
|
return jsxs(Spacings.Stack, {
|
|
1888
|
-
scale: "
|
|
1915
|
+
scale: "l",
|
|
1889
1916
|
children: [jsxs(Spacings.Stack, {
|
|
1890
1917
|
scale: "s",
|
|
1891
1918
|
children: [jsxs("div", {
|
|
@@ -1919,7 +1946,7 @@ const ExportPreferenceSection = () => {
|
|
|
1919
1946
|
})]
|
|
1920
1947
|
})]
|
|
1921
1948
|
}), jsxs(Spacings.Stack, {
|
|
1922
|
-
scale: "
|
|
1949
|
+
scale: "m",
|
|
1923
1950
|
children: [jsxs(Spacings.Stack, {
|
|
1924
1951
|
scale: "m",
|
|
1925
1952
|
children: [jsx(CheckboxInput, {
|
|
@@ -2098,7 +2125,7 @@ const ExportFileSettingsStep = () => {
|
|
|
2098
2125
|
})
|
|
2099
2126
|
}), jsx(Grid.Item, {
|
|
2100
2127
|
children: jsxs(Spacings.Stack, {
|
|
2101
|
-
scale: "
|
|
2128
|
+
scale: "m",
|
|
2102
2129
|
children: [jsx(Masking.Mask, {
|
|
2103
2130
|
children: jsx(TextField, {
|
|
2104
2131
|
name: "fileName",
|
|
@@ -3350,11 +3377,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3350
3377
|
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 */");
|
|
3351
3378
|
}
|
|
3352
3379
|
|
|
3353
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
3380
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-5b69772b.esm.js'));
|
|
3354
3381
|
|
|
3355
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
3382
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-bc1f9bdd.esm.js'));
|
|
3356
3383
|
|
|
3357
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
3384
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-f2ad87dc.esm.js'));
|
|
3358
3385
|
|
|
3359
3386
|
function getDropArea(_ref) {
|
|
3360
3387
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -3435,17 +3462,17 @@ const getChunkImport = locale => {
|
|
|
3435
3462
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
3436
3463
|
switch (intlLocale) {
|
|
3437
3464
|
case 'de':
|
|
3438
|
-
return import(
|
|
3465
|
+
return import('./de-e1ca5047.esm.js');
|
|
3439
3466
|
case 'es':
|
|
3440
|
-
return import(
|
|
3467
|
+
return import('./es-e2a2c0d3.esm.js');
|
|
3441
3468
|
case 'fr-FR':
|
|
3442
|
-
return import(
|
|
3469
|
+
return import('./fr-FR-b1a5c6ae.esm.js');
|
|
3443
3470
|
case 'ja':
|
|
3444
|
-
return import(
|
|
3471
|
+
return import('./ja-73c088a7.esm.js');
|
|
3445
3472
|
case 'pt-BR':
|
|
3446
|
-
return import(
|
|
3473
|
+
return import('./pt-BR-9c546b10.esm.js');
|
|
3447
3474
|
default:
|
|
3448
|
-
return import(
|
|
3475
|
+
return import('./en-0dd4e6e9.esm.js');
|
|
3449
3476
|
}
|
|
3450
3477
|
};
|
|
3451
3478
|
const loadMessages = async locale => {
|
|
@@ -149,6 +149,11 @@ var messages = reactIntl.defineMessages({
|
|
|
149
149
|
description: 'Label for the product types modal title',
|
|
150
150
|
defaultMessage: 'Export product types'
|
|
151
151
|
},
|
|
152
|
+
'modalTitle.business-unit': {
|
|
153
|
+
id: 'ExportResourcesModal.modalTitle.businessUnit',
|
|
154
|
+
description: 'Label for the business units modal title',
|
|
155
|
+
defaultMessage: 'Export business units'
|
|
156
|
+
},
|
|
152
157
|
outputFormat: {
|
|
153
158
|
id: 'ExportResourcesModal.outputFormat',
|
|
154
159
|
description: 'File format like (csv, xls, ...etc)',
|
|
@@ -358,6 +363,21 @@ var messages = reactIntl.defineMessages({
|
|
|
358
363
|
description: 'Label for Export Filtered discount codes',
|
|
359
364
|
defaultMessage: 'Export filtered: {total, plural, one {# discount code} other {# discount codes}}'
|
|
360
365
|
},
|
|
366
|
+
exportScopeAllBusinessUnits: {
|
|
367
|
+
id: 'ExportResourcesModal.exportScopeAllBusinessUnits',
|
|
368
|
+
description: 'Label for Export All business units',
|
|
369
|
+
defaultMessage: 'Export all: {total, plural, one {# business unit} other {# business units}}'
|
|
370
|
+
},
|
|
371
|
+
exportScopeSelectedBusinessUnits: {
|
|
372
|
+
id: 'ExportResourcesModal.exportScopeSelectedBusinessUnits',
|
|
373
|
+
description: 'Label for Export Selected business units',
|
|
374
|
+
defaultMessage: 'Export selected: {total, plural, one {# business unit} other {# business units}}'
|
|
375
|
+
},
|
|
376
|
+
exportScopeFilteredBusinessUnits: {
|
|
377
|
+
id: 'ExportResourcesModal.exportScopeFilteredBusinessUnits',
|
|
378
|
+
description: 'Label for Export Filtered business units',
|
|
379
|
+
defaultMessage: 'Export filtered: {total, plural, one {# business unit} other {# business units}}'
|
|
380
|
+
},
|
|
361
381
|
exportScopeAllOrders: {
|
|
362
382
|
id: 'ExportResourcesModal.exportScopeAllOrders',
|
|
363
383
|
description: 'Label for Export All orders',
|
|
@@ -802,7 +822,8 @@ const EXPORTABLE_RESOURCES = {
|
|
|
802
822
|
DISCOUNT_CODE: 'discount-code',
|
|
803
823
|
INVENTORY_ENTRY: 'inventory-entry',
|
|
804
824
|
ORDER: 'order',
|
|
805
|
-
CUSTOMER: 'customer'
|
|
825
|
+
CUSTOMER: 'customer',
|
|
826
|
+
BUSINESS_UNIT: 'business-unit'
|
|
806
827
|
};
|
|
807
828
|
|
|
808
829
|
const OUTPUT_FORMATS = {
|
|
@@ -857,6 +878,11 @@ const resourceTypeMessages = {
|
|
|
857
878
|
exportScopeAll: messages.exportScopeAllCustomers,
|
|
858
879
|
exportScopeSelected: messages.exportScopeSelectedCustomers,
|
|
859
880
|
exportScopeFiltered: messages.exportScopeFilteredCustomers
|
|
881
|
+
},
|
|
882
|
+
[EXPORTABLE_RESOURCES.BUSINESS_UNIT]: {
|
|
883
|
+
exportScopeAll: messages.exportScopeAllBusinessUnits,
|
|
884
|
+
exportScopeSelected: messages.exportScopeSelectedBusinessUnits,
|
|
885
|
+
exportScopeFiltered: messages.exportScopeFilteredBusinessUnits
|
|
860
886
|
}
|
|
861
887
|
};
|
|
862
888
|
|
|
@@ -1026,7 +1052,8 @@ function resourceTypeToFileName(resourceType, locale) {
|
|
|
1026
1052
|
[EXPORTABLE_RESOURCES.DISCOUNT_CODE]: 'Discount_Codes',
|
|
1027
1053
|
[EXPORTABLE_RESOURCES.INVENTORY_ENTRY]: 'Inventories',
|
|
1028
1054
|
[EXPORTABLE_RESOURCES.CUSTOMER]: 'Customers',
|
|
1029
|
-
[EXPORTABLE_RESOURCES.ORDER]: 'Orders'
|
|
1055
|
+
[EXPORTABLE_RESOURCES.ORDER]: 'Orders',
|
|
1056
|
+
[EXPORTABLE_RESOURCES.BUSINESS_UNIT]: 'Business_Units'
|
|
1030
1057
|
};
|
|
1031
1058
|
const displayName = resourceTypeMap[resourceType];
|
|
1032
1059
|
if (!displayName) {
|
|
@@ -1926,7 +1953,7 @@ const ExportPreferenceSection = () => {
|
|
|
1926
1953
|
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, option.label))
|
|
1927
1954
|
}));
|
|
1928
1955
|
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1929
|
-
scale: "
|
|
1956
|
+
scale: "l",
|
|
1930
1957
|
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1931
1958
|
scale: "s",
|
|
1932
1959
|
children: [jsxRuntime.jsxs("div", {
|
|
@@ -1960,7 +1987,7 @@ const ExportPreferenceSection = () => {
|
|
|
1960
1987
|
})]
|
|
1961
1988
|
})]
|
|
1962
1989
|
}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1963
|
-
scale: "
|
|
1990
|
+
scale: "m",
|
|
1964
1991
|
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1965
1992
|
scale: "m",
|
|
1966
1993
|
children: [jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
@@ -2139,7 +2166,7 @@ const ExportFileSettingsStep = () => {
|
|
|
2139
2166
|
})
|
|
2140
2167
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2141
2168
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
2142
|
-
scale: "
|
|
2169
|
+
scale: "m",
|
|
2143
2170
|
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
2144
2171
|
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
2145
2172
|
name: "fileName",
|
|
@@ -3391,11 +3418,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3391
3418
|
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 */");
|
|
3392
3419
|
}
|
|
3393
3420
|
|
|
3394
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3421
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-1da57d5d.cjs.dev.js'); }));
|
|
3395
3422
|
|
|
3396
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3423
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-a09029cb.cjs.dev.js'); }));
|
|
3397
3424
|
|
|
3398
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3425
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-d9e5d47d.cjs.dev.js'); }));
|
|
3399
3426
|
|
|
3400
3427
|
function getDropArea(_ref) {
|
|
3401
3428
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -3476,17 +3503,17 @@ const getChunkImport = locale => {
|
|
|
3476
3503
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3477
3504
|
switch (intlLocale) {
|
|
3478
3505
|
case 'de':
|
|
3479
|
-
return Promise.resolve().then(function () { return require(
|
|
3506
|
+
return Promise.resolve().then(function () { return require('./de-b122bf35.cjs.dev.js'); });
|
|
3480
3507
|
case 'es':
|
|
3481
|
-
return Promise.resolve().then(function () { return require(
|
|
3508
|
+
return Promise.resolve().then(function () { return require('./es-d42411f4.cjs.dev.js'); });
|
|
3482
3509
|
case 'fr-FR':
|
|
3483
|
-
return Promise.resolve().then(function () { return require(
|
|
3510
|
+
return Promise.resolve().then(function () { return require('./fr-FR-1c0b452f.cjs.dev.js'); });
|
|
3484
3511
|
case 'ja':
|
|
3485
|
-
return Promise.resolve().then(function () { return require(
|
|
3512
|
+
return Promise.resolve().then(function () { return require('./ja-9bd5f452.cjs.dev.js'); });
|
|
3486
3513
|
case 'pt-BR':
|
|
3487
|
-
return Promise.resolve().then(function () { return require(
|
|
3514
|
+
return Promise.resolve().then(function () { return require('./pt-BR-ca1ee454.cjs.dev.js'); });
|
|
3488
3515
|
default:
|
|
3489
|
-
return Promise.resolve().then(function () { return require(
|
|
3516
|
+
return Promise.resolve().then(function () { return require('./en-d0e20cbd.cjs.dev.js'); });
|
|
3490
3517
|
}
|
|
3491
3518
|
};
|
|
3492
3519
|
const loadMessages = async locale => {
|
|
@@ -149,6 +149,11 @@ var messages = reactIntl.defineMessages({
|
|
|
149
149
|
description: 'Label for the product types modal title',
|
|
150
150
|
defaultMessage: 'Export product types'
|
|
151
151
|
},
|
|
152
|
+
'modalTitle.business-unit': {
|
|
153
|
+
id: 'ExportResourcesModal.modalTitle.businessUnit',
|
|
154
|
+
description: 'Label for the business units modal title',
|
|
155
|
+
defaultMessage: 'Export business units'
|
|
156
|
+
},
|
|
152
157
|
outputFormat: {
|
|
153
158
|
id: 'ExportResourcesModal.outputFormat',
|
|
154
159
|
description: 'File format like (csv, xls, ...etc)',
|
|
@@ -358,6 +363,21 @@ var messages = reactIntl.defineMessages({
|
|
|
358
363
|
description: 'Label for Export Filtered discount codes',
|
|
359
364
|
defaultMessage: 'Export filtered: {total, plural, one {# discount code} other {# discount codes}}'
|
|
360
365
|
},
|
|
366
|
+
exportScopeAllBusinessUnits: {
|
|
367
|
+
id: 'ExportResourcesModal.exportScopeAllBusinessUnits',
|
|
368
|
+
description: 'Label for Export All business units',
|
|
369
|
+
defaultMessage: 'Export all: {total, plural, one {# business unit} other {# business units}}'
|
|
370
|
+
},
|
|
371
|
+
exportScopeSelectedBusinessUnits: {
|
|
372
|
+
id: 'ExportResourcesModal.exportScopeSelectedBusinessUnits',
|
|
373
|
+
description: 'Label for Export Selected business units',
|
|
374
|
+
defaultMessage: 'Export selected: {total, plural, one {# business unit} other {# business units}}'
|
|
375
|
+
},
|
|
376
|
+
exportScopeFilteredBusinessUnits: {
|
|
377
|
+
id: 'ExportResourcesModal.exportScopeFilteredBusinessUnits',
|
|
378
|
+
description: 'Label for Export Filtered business units',
|
|
379
|
+
defaultMessage: 'Export filtered: {total, plural, one {# business unit} other {# business units}}'
|
|
380
|
+
},
|
|
361
381
|
exportScopeAllOrders: {
|
|
362
382
|
id: 'ExportResourcesModal.exportScopeAllOrders',
|
|
363
383
|
description: 'Label for Export All orders',
|
|
@@ -802,7 +822,8 @@ const EXPORTABLE_RESOURCES = {
|
|
|
802
822
|
DISCOUNT_CODE: 'discount-code',
|
|
803
823
|
INVENTORY_ENTRY: 'inventory-entry',
|
|
804
824
|
ORDER: 'order',
|
|
805
|
-
CUSTOMER: 'customer'
|
|
825
|
+
CUSTOMER: 'customer',
|
|
826
|
+
BUSINESS_UNIT: 'business-unit'
|
|
806
827
|
};
|
|
807
828
|
|
|
808
829
|
const OUTPUT_FORMATS = {
|
|
@@ -857,6 +878,11 @@ const resourceTypeMessages = {
|
|
|
857
878
|
exportScopeAll: messages.exportScopeAllCustomers,
|
|
858
879
|
exportScopeSelected: messages.exportScopeSelectedCustomers,
|
|
859
880
|
exportScopeFiltered: messages.exportScopeFilteredCustomers
|
|
881
|
+
},
|
|
882
|
+
[EXPORTABLE_RESOURCES.BUSINESS_UNIT]: {
|
|
883
|
+
exportScopeAll: messages.exportScopeAllBusinessUnits,
|
|
884
|
+
exportScopeSelected: messages.exportScopeSelectedBusinessUnits,
|
|
885
|
+
exportScopeFiltered: messages.exportScopeFilteredBusinessUnits
|
|
860
886
|
}
|
|
861
887
|
};
|
|
862
888
|
|
|
@@ -1026,7 +1052,8 @@ function resourceTypeToFileName(resourceType, locale) {
|
|
|
1026
1052
|
[EXPORTABLE_RESOURCES.DISCOUNT_CODE]: 'Discount_Codes',
|
|
1027
1053
|
[EXPORTABLE_RESOURCES.INVENTORY_ENTRY]: 'Inventories',
|
|
1028
1054
|
[EXPORTABLE_RESOURCES.CUSTOMER]: 'Customers',
|
|
1029
|
-
[EXPORTABLE_RESOURCES.ORDER]: 'Orders'
|
|
1055
|
+
[EXPORTABLE_RESOURCES.ORDER]: 'Orders',
|
|
1056
|
+
[EXPORTABLE_RESOURCES.BUSINESS_UNIT]: 'Business_Units'
|
|
1030
1057
|
};
|
|
1031
1058
|
const displayName = resourceTypeMap[resourceType];
|
|
1032
1059
|
if (!displayName) {
|
|
@@ -1926,7 +1953,7 @@ const ExportPreferenceSection = () => {
|
|
|
1926
1953
|
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$a({}, option.label))
|
|
1927
1954
|
}));
|
|
1928
1955
|
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1929
|
-
scale: "
|
|
1956
|
+
scale: "l",
|
|
1930
1957
|
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1931
1958
|
scale: "s",
|
|
1932
1959
|
children: [jsxRuntime.jsxs("div", {
|
|
@@ -1960,7 +1987,7 @@ const ExportPreferenceSection = () => {
|
|
|
1960
1987
|
})]
|
|
1961
1988
|
})]
|
|
1962
1989
|
}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1963
|
-
scale: "
|
|
1990
|
+
scale: "m",
|
|
1964
1991
|
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1965
1992
|
scale: "m",
|
|
1966
1993
|
children: [jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
@@ -2139,7 +2166,7 @@ const ExportFileSettingsStep = () => {
|
|
|
2139
2166
|
})
|
|
2140
2167
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
2141
2168
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
2142
|
-
scale: "
|
|
2169
|
+
scale: "m",
|
|
2143
2170
|
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
2144
2171
|
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
2145
2172
|
name: "fileName",
|
|
@@ -3355,11 +3382,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3355
3382
|
return /*#__PURE__*/react.css("" , "" );
|
|
3356
3383
|
}
|
|
3357
3384
|
|
|
3358
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3385
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-68b432ef.cjs.prod.js'); }));
|
|
3359
3386
|
|
|
3360
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3387
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-2ae19338.cjs.prod.js'); }));
|
|
3361
3388
|
|
|
3362
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3389
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-90cb6ada.cjs.prod.js'); }));
|
|
3363
3390
|
|
|
3364
3391
|
function getDropArea(_ref) {
|
|
3365
3392
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -3440,17 +3467,17 @@ const getChunkImport = locale => {
|
|
|
3440
3467
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3441
3468
|
switch (intlLocale) {
|
|
3442
3469
|
case 'de':
|
|
3443
|
-
return Promise.resolve().then(function () { return require(
|
|
3470
|
+
return Promise.resolve().then(function () { return require('./de-36ebd068.cjs.prod.js'); });
|
|
3444
3471
|
case 'es':
|
|
3445
|
-
return Promise.resolve().then(function () { return require(
|
|
3472
|
+
return Promise.resolve().then(function () { return require('./es-a0812a71.cjs.prod.js'); });
|
|
3446
3473
|
case 'fr-FR':
|
|
3447
|
-
return Promise.resolve().then(function () { return require(
|
|
3474
|
+
return Promise.resolve().then(function () { return require('./fr-FR-d8091f95.cjs.prod.js'); });
|
|
3448
3475
|
case 'ja':
|
|
3449
|
-
return Promise.resolve().then(function () { return require(
|
|
3476
|
+
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
3450
3477
|
case 'pt-BR':
|
|
3451
|
-
return Promise.resolve().then(function () { return require(
|
|
3478
|
+
return Promise.resolve().then(function () { return require('./pt-BR-5dc7b085.cjs.prod.js'); });
|
|
3452
3479
|
default:
|
|
3453
|
-
return Promise.resolve().then(function () { return require(
|
|
3480
|
+
return Promise.resolve().then(function () { return require('./en-b546d455.cjs.prod.js'); });
|
|
3454
3481
|
}
|
|
3455
3482
|
};
|
|
3456
3483
|
const loadMessages = async locale => {
|
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.5.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "7.27.6",
|
|
19
|
-
"@babel/runtime-corejs3": "7.
|
|
19
|
+
"@babel/runtime-corejs3": "7.28.0",
|
|
20
20
|
"@emotion/react": "11.14.0",
|
|
21
|
-
"@emotion/styled": "11.14.
|
|
21
|
+
"@emotion/styled": "11.14.1",
|
|
22
22
|
"@formatjs/cli": "6.7.2",
|
|
23
23
|
"formik": "2.4.6",
|
|
24
24
|
"jest": "29.7.0",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@commercetools-frontend/l10n": "24.2.1",
|
|
41
41
|
"@commercetools-frontend/sdk": "24.2.1",
|
|
42
42
|
"@commercetools-frontend/sentry": "24.2.1",
|
|
43
|
-
"@commercetools-frontend/ui-kit": "20.
|
|
44
|
-
"@commercetools-uikit/design-system": "20.
|
|
45
|
-
"@commercetools-uikit/icons": "20.
|
|
43
|
+
"@commercetools-frontend/ui-kit": "20.2.2",
|
|
44
|
+
"@commercetools-uikit/design-system": "20.2.2",
|
|
45
|
+
"@commercetools-uikit/icons": "20.2.2",
|
|
46
46
|
"@preconstruct/cli": "2.8.12",
|
|
47
47
|
"@types/jest": "29.5.14",
|
|
48
48
|
"@types/testing-library__jest-dom": "^5.14.5",
|