@commercetools-frontend-extensions/export-resources-modal 0.0.0-canary-20250805131033 → 0.0.0-canary-20250805152227
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-e97c4e68.cjs.dev.js → active-drag-drop-area-1da57d5d.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-d38bf2e7.esm.js → active-drag-drop-area-5b69772b.esm.js} +1 -1
- package/dist/{active-drag-drop-area-11cfd6ca.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/{enabled-drop-area-e779d51b.cjs.prod.js → enabled-drop-area-2ae19338.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-32c61f12.cjs.dev.js → enabled-drop-area-a09029cb.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-f228fe77.esm.js → enabled-drop-area-bc1f9bdd.esm.js} +1 -1
- package/dist/{file-dropped-area-eb866f6a.cjs.prod.js → file-dropped-area-90cb6ada.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-6d2b723e.cjs.dev.js → file-dropped-area-d9e5d47d.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-7f42971c.esm.js → file-dropped-area-f2ad87dc.esm.js} +1 -1
- package/dist/{index-33b1e8a1.esm.js → index-5a3b7b01.esm.js} +35 -8
- package/dist/{index-bc1275fe.cjs.dev.js → index-8dd4c7d5.cjs.dev.js} +35 -8
- package/dist/{index-f96f96ff.cjs.prod.js → index-9caf9dcf.cjs.prod.js} +35 -8
- package/package.json +1 -1
package/dist/{active-drag-drop-area-e97c4e68.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-d38bf2e7.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';
|
package/dist/{enabled-drop-area-e779d51b.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-32c61f12.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-eb866f6a.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-6d2b723e.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';
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
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": "0.0.0-canary-
|
|
4
|
+
"version": "0.0.0-canary-20250805152227",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|