@commercetools-frontend-extensions/export-resources-modal 4.10.1 → 4.10.3
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/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +148 -192
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +147 -191
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +148 -192
- package/dist/declarations/src/@types/export-resources-modal-context.d.ts +0 -1
- package/dist/declarations/src/export-resources-modal.d.ts +1 -8
- package/package.json +10 -10
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
|
+
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
6
7
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
8
|
var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
8
9
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
@@ -48,7 +49,6 @@ var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
48
49
|
var actionsGlobal = require('@commercetools-frontend/actions-global');
|
|
49
50
|
var constants = require('@commercetools-frontend/constants');
|
|
50
51
|
var sdk = require('@commercetools-frontend/sdk');
|
|
51
|
-
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
52
52
|
var l10n = require('@commercetools-frontend/l10n');
|
|
53
53
|
var sortBy = require('lodash/sortBy');
|
|
54
54
|
var _styled = require('@emotion/styled/base');
|
|
@@ -108,299 +108,241 @@ function getNewLine() {
|
|
|
108
108
|
|
|
109
109
|
var messages = reactIntl.defineMessages({
|
|
110
110
|
'modalTitle.category': {
|
|
111
|
-
id:
|
|
112
|
-
|
|
113
|
-
defaultMessage: 'Export categories'
|
|
111
|
+
id: "ExportResourcesModal.modalTitle.category",
|
|
112
|
+
defaultMessage: "Export categories"
|
|
114
113
|
},
|
|
115
114
|
'modalTitle.product': {
|
|
116
|
-
id:
|
|
117
|
-
|
|
118
|
-
defaultMessage: 'Export products'
|
|
115
|
+
id: "ExportResourcesModal.modalTitle.product",
|
|
116
|
+
defaultMessage: "Export products"
|
|
119
117
|
},
|
|
120
118
|
'modalTitle.inventory-entry': {
|
|
121
|
-
id:
|
|
122
|
-
|
|
123
|
-
defaultMessage: 'Export inventories'
|
|
119
|
+
id: "ExportResourcesModal.modalTitle.inventoryEntry",
|
|
120
|
+
defaultMessage: "Export inventories"
|
|
124
121
|
},
|
|
125
122
|
'modalTitle.discount-code': {
|
|
126
|
-
id:
|
|
127
|
-
|
|
128
|
-
defaultMessage: 'Export discount codes'
|
|
123
|
+
id: "ExportResourcesModal.modalTitle.discountCode",
|
|
124
|
+
defaultMessage: "Export discount codes"
|
|
129
125
|
},
|
|
130
126
|
'modalTitle.customer': {
|
|
131
|
-
id:
|
|
132
|
-
|
|
133
|
-
defaultMessage: 'Export customers'
|
|
127
|
+
id: "ExportResourcesModal.modalTitle.customer",
|
|
128
|
+
defaultMessage: "Export customers"
|
|
134
129
|
},
|
|
135
130
|
'modalTitle.order': {
|
|
136
|
-
id:
|
|
137
|
-
|
|
138
|
-
defaultMessage: 'Export orders'
|
|
131
|
+
id: "ExportResourcesModal.modalTitle.order",
|
|
132
|
+
defaultMessage: "Export orders"
|
|
139
133
|
},
|
|
140
134
|
'modalTitle.product-type': {
|
|
141
|
-
id:
|
|
142
|
-
|
|
143
|
-
defaultMessage: 'Export product types'
|
|
135
|
+
id: "ExportResourcesModal.modalTitle.productType",
|
|
136
|
+
defaultMessage: "Export product types"
|
|
144
137
|
},
|
|
145
138
|
outputFormat: {
|
|
146
|
-
id:
|
|
147
|
-
|
|
148
|
-
defaultMessage: 'File format'
|
|
139
|
+
id: "ExportResourcesModal.outputFormat",
|
|
140
|
+
defaultMessage: "File format"
|
|
149
141
|
},
|
|
150
142
|
fileName: {
|
|
151
|
-
id:
|
|
152
|
-
|
|
153
|
-
defaultMessage: 'File name'
|
|
143
|
+
id: "ExportResourcesModal.fileName",
|
|
144
|
+
defaultMessage: "File name"
|
|
154
145
|
},
|
|
155
146
|
locale: {
|
|
156
|
-
id:
|
|
157
|
-
|
|
158
|
-
defaultMessage: 'Locale'
|
|
147
|
+
id: "ExportResourcesModal.locale",
|
|
148
|
+
defaultMessage: "Locale"
|
|
159
149
|
},
|
|
160
150
|
exportBasedOnMyViewsMessage: {
|
|
161
|
-
id:
|
|
162
|
-
|
|
163
|
-
defaultMessage: 'Select export settings based on:'
|
|
151
|
+
id: "ExportResourcesModal.exportBasedOnMyViewsMessage",
|
|
152
|
+
defaultMessage: "Select export settings based on:"
|
|
164
153
|
},
|
|
165
154
|
propertiesPanelLabel: {
|
|
166
|
-
id:
|
|
167
|
-
|
|
168
|
-
defaultMessage: 'Properties'
|
|
155
|
+
id: "ExportResourcesModal.propertiesPanelLabel",
|
|
156
|
+
defaultMessage: "Properties"
|
|
169
157
|
},
|
|
170
158
|
exportOperationSuccessMessage: {
|
|
171
|
-
id:
|
|
172
|
-
|
|
173
|
-
defaultMessage: '<b>Your export has started.</b> <newline></newline><logsLink>Go to Export logs</logsLink> to view the progress and download the file.'
|
|
159
|
+
id: "ExportResourcesModal.exportOperationSuccessMessage",
|
|
160
|
+
defaultMessage: "<b>Your export has started.</b> <newline></newline><logsLink>Go to Export logs</logsLink> to view the progress and download the file."
|
|
174
161
|
},
|
|
175
162
|
nothingApplied: {
|
|
176
|
-
id:
|
|
177
|
-
|
|
178
|
-
defaultMessage: 'nothing applied'
|
|
163
|
+
id: "ExportResourcesModal.nothingApplied",
|
|
164
|
+
defaultMessage: "nothing applied"
|
|
179
165
|
},
|
|
180
166
|
includeAllLocales: {
|
|
181
|
-
id:
|
|
182
|
-
|
|
183
|
-
defaultMessage: 'Include all locales'
|
|
167
|
+
id: "ExportResourcesModal.includeAllLocales",
|
|
168
|
+
defaultMessage: "Include all locales"
|
|
184
169
|
},
|
|
185
170
|
missingFileNameError: {
|
|
186
|
-
id:
|
|
187
|
-
|
|
188
|
-
defaultMessage: 'Please enter a file name'
|
|
171
|
+
id: "ExportResourcesModal.missingFileNameError",
|
|
172
|
+
defaultMessage: "Please enter a file name"
|
|
189
173
|
},
|
|
190
174
|
invalidFileNameError: {
|
|
191
|
-
id:
|
|
192
|
-
|
|
193
|
-
defaultMessage: 'File name may only contain alphanumeric characters, hyphens and underscores'
|
|
175
|
+
id: "ExportResourcesModal.invalidFileNameError",
|
|
176
|
+
defaultMessage: "File name may only contain alphanumeric characters, hyphens and underscores"
|
|
194
177
|
},
|
|
195
178
|
missingLocaleError: {
|
|
196
|
-
id:
|
|
197
|
-
|
|
198
|
-
defaultMessage: 'Please select at least one locale'
|
|
179
|
+
id: "ExportResourcesModal.missingLocaleError",
|
|
180
|
+
defaultMessage: "Please select at least one locale"
|
|
199
181
|
},
|
|
200
182
|
myViews: {
|
|
201
|
-
id:
|
|
202
|
-
|
|
203
|
-
defaultMessage: 'My Views'
|
|
183
|
+
id: "ExportResourcesModal.myViews",
|
|
184
|
+
defaultMessage: "My Views"
|
|
204
185
|
},
|
|
205
186
|
selectFieldsToExport: {
|
|
206
|
-
id:
|
|
207
|
-
defaultMessage:
|
|
187
|
+
id: "ExportResourcesModal.selectFieldsToExport",
|
|
188
|
+
defaultMessage: "Select fields to export"
|
|
208
189
|
},
|
|
209
190
|
back: {
|
|
210
|
-
id:
|
|
211
|
-
|
|
212
|
-
defaultMessage: 'Back'
|
|
191
|
+
id: "ExportResourcesModal.back",
|
|
192
|
+
defaultMessage: "Back"
|
|
213
193
|
},
|
|
214
194
|
startExport: {
|
|
215
|
-
id:
|
|
216
|
-
|
|
217
|
-
defaultMessage: 'Start export'
|
|
195
|
+
id: "ExportResourcesModal.startExport",
|
|
196
|
+
defaultMessage: "Start export"
|
|
218
197
|
},
|
|
219
198
|
continue: {
|
|
220
|
-
id:
|
|
221
|
-
|
|
222
|
-
defaultMessage: 'Continue'
|
|
199
|
+
id: "ExportResourcesModal.continue",
|
|
200
|
+
defaultMessage: "Continue"
|
|
223
201
|
},
|
|
224
202
|
fieldDefinitions: {
|
|
225
|
-
id:
|
|
226
|
-
|
|
227
|
-
defaultMessage: 'Field definitions'
|
|
203
|
+
id: "ExportResourcesModal.fieldDefinitions",
|
|
204
|
+
defaultMessage: "Field definitions"
|
|
228
205
|
},
|
|
229
206
|
unexpectedError: {
|
|
230
|
-
id:
|
|
231
|
-
|
|
232
|
-
defaultMessage: 'An error occurred while starting the export process. Please try again or contact support if the problem persists.'
|
|
207
|
+
id: "ExportResourcesModal.unexpectedError",
|
|
208
|
+
defaultMessage: "An error occurred while starting the export process. Please try again or contact support if the problem persists."
|
|
233
209
|
},
|
|
234
210
|
searchForFields: {
|
|
235
|
-
id:
|
|
236
|
-
|
|
237
|
-
defaultMessage: 'Search for fields'
|
|
211
|
+
id: "ExportResourcesModal.searchForFields",
|
|
212
|
+
defaultMessage: "Search for fields"
|
|
238
213
|
},
|
|
239
214
|
thereAreNoResults: {
|
|
240
|
-
id:
|
|
241
|
-
|
|
242
|
-
defaultMessage: 'There are no results that match your search.'
|
|
215
|
+
id: "ExportResourcesModal.thereAreNoResults",
|
|
216
|
+
defaultMessage: "There are no results that match your search."
|
|
243
217
|
},
|
|
244
218
|
suggestions: {
|
|
245
|
-
id:
|
|
246
|
-
|
|
247
|
-
defaultMessage: 'Suggestions:'
|
|
219
|
+
id: "ExportResourcesModal.suggestions",
|
|
220
|
+
defaultMessage: "Suggestions:"
|
|
248
221
|
},
|
|
249
222
|
checkTheSpelling: {
|
|
250
|
-
id:
|
|
251
|
-
|
|
252
|
-
defaultMessage: 'Check the spelling.'
|
|
223
|
+
id: "ExportResourcesModal.checkTheSpelling",
|
|
224
|
+
defaultMessage: "Check the spelling."
|
|
253
225
|
},
|
|
254
226
|
searchByEnteringTheExactFieldName: {
|
|
255
|
-
id:
|
|
256
|
-
|
|
257
|
-
defaultMessage: 'Try searching by entering the exact field name.'
|
|
227
|
+
id: "ExportResourcesModal.searchByEnteringTheExactFieldName",
|
|
228
|
+
defaultMessage: "Try searching by entering the exact field name."
|
|
258
229
|
},
|
|
259
230
|
exportScope: {
|
|
260
|
-
id:
|
|
261
|
-
|
|
262
|
-
defaultMessage: 'Scope'
|
|
231
|
+
id: "ExportResourcesModal.exportScope",
|
|
232
|
+
defaultMessage: "Scope"
|
|
263
233
|
},
|
|
264
234
|
exportScopeAllCategories: {
|
|
265
|
-
id:
|
|
266
|
-
|
|
267
|
-
defaultMessage: 'Export all: {total, plural, one {# category} other {# categories}}'
|
|
235
|
+
id: "ExportResourcesModal.exportScopeAllCategories",
|
|
236
|
+
defaultMessage: "Export all: {total, plural, one {# category} other {# categories}}"
|
|
268
237
|
},
|
|
269
238
|
exportScopeSelectedCategories: {
|
|
270
|
-
id:
|
|
271
|
-
|
|
272
|
-
defaultMessage: 'Export selected: {total, plural, one {# category} other {# categories}}'
|
|
239
|
+
id: "ExportResourcesModal.exportScopeSelectedCategories",
|
|
240
|
+
defaultMessage: "Export selected: {total, plural, one {# category} other {# categories}}"
|
|
273
241
|
},
|
|
274
242
|
exportScopeFilteredCategories: {
|
|
275
|
-
id:
|
|
276
|
-
|
|
277
|
-
defaultMessage: 'Export filtered: {total, plural, one {# category} other {# categories}}'
|
|
243
|
+
id: "ExportResourcesModal.exportScopeFilteredCategories",
|
|
244
|
+
defaultMessage: "Export filtered: {total, plural, one {# category} other {# categories}}"
|
|
278
245
|
},
|
|
279
246
|
exportScopeAllProducts: {
|
|
280
|
-
id:
|
|
281
|
-
|
|
282
|
-
defaultMessage: 'Export all: {total, plural, one {# product} other {# products}}'
|
|
247
|
+
id: "ExportResourcesModal.exportScopeAllProducts",
|
|
248
|
+
defaultMessage: "Export all: {total, plural, one {# product} other {# products}}"
|
|
283
249
|
},
|
|
284
250
|
exportScopeSelectedProducts: {
|
|
285
|
-
id:
|
|
286
|
-
|
|
287
|
-
defaultMessage: 'Export selected: {total, plural, one {# product} other {# products}}'
|
|
251
|
+
id: "ExportResourcesModal.exportScopeSelectedProducts",
|
|
252
|
+
defaultMessage: "Export selected: {total, plural, one {# product} other {# products}}"
|
|
288
253
|
},
|
|
289
254
|
exportScopeFilteredProducts: {
|
|
290
|
-
id:
|
|
291
|
-
|
|
292
|
-
defaultMessage: 'Export filtered: {total, plural, one {# product} other {# products}}'
|
|
255
|
+
id: "ExportResourcesModal.exportScopeFilteredProducts",
|
|
256
|
+
defaultMessage: "Export filtered: {total, plural, one {# product} other {# products}}"
|
|
293
257
|
},
|
|
294
258
|
exportScopeAllProductTypes: {
|
|
295
|
-
id:
|
|
296
|
-
|
|
297
|
-
defaultMessage: 'Export all: {total, plural, one {# product type} other {# product types}}'
|
|
259
|
+
id: "ExportResourcesModal.exportScopeAllProductTypes",
|
|
260
|
+
defaultMessage: "Export all: {total, plural, one {# product type} other {# product types}}"
|
|
298
261
|
},
|
|
299
262
|
exportScopeSelectedProductTypes: {
|
|
300
|
-
id:
|
|
301
|
-
|
|
302
|
-
defaultMessage: 'Export selected: {total, plural, one {# product type} other {# product types}}'
|
|
263
|
+
id: "ExportResourcesModal.exportScopeSelectedProductTypes",
|
|
264
|
+
defaultMessage: "Export selected: {total, plural, one {# product type} other {# product types}}"
|
|
303
265
|
},
|
|
304
266
|
exportScopeFilteredProductTypes: {
|
|
305
|
-
id:
|
|
306
|
-
|
|
307
|
-
defaultMessage: 'Export filtered: {total, plural, one {# product type} other {# product types}}'
|
|
267
|
+
id: "ExportResourcesModal.exportScopeFilteredProductTypes",
|
|
268
|
+
defaultMessage: "Export filtered: {total, plural, one {# product type} other {# product types}}"
|
|
308
269
|
},
|
|
309
270
|
exportInventoriesForAllProducts: {
|
|
310
|
-
id:
|
|
311
|
-
|
|
312
|
-
defaultMessage: 'Export inventories for all {total, plural, one {# product} other {# products}}'
|
|
271
|
+
id: "ExportResourcesModal.exportInventoriesForAllProducts",
|
|
272
|
+
defaultMessage: "Export inventories for all {total, plural, one {# product} other {# products}}"
|
|
313
273
|
},
|
|
314
274
|
exportInventoriesForSelectedProducts: {
|
|
315
|
-
id:
|
|
316
|
-
|
|
317
|
-
defaultMessage: 'Export inventories for the {total, plural, one {# selected product} other {# selected products}}'
|
|
275
|
+
id: "ExportResourcesModal.exportInventoriesForSelectedProducts",
|
|
276
|
+
defaultMessage: "Export inventories for the {total, plural, one {# selected product} other {# selected products}}"
|
|
318
277
|
},
|
|
319
278
|
exportInventoriesForFilteredProducts: {
|
|
320
|
-
id:
|
|
321
|
-
|
|
322
|
-
defaultMessage: 'Export inventories for the {total, plural, one {# filtered product} other {# filtered products}}'
|
|
279
|
+
id: "ExportResourcesModal.exportInventoriesForFilteredProducts",
|
|
280
|
+
defaultMessage: "Export inventories for the {total, plural, one {# filtered product} other {# filtered products}}"
|
|
323
281
|
},
|
|
324
282
|
exportScopeAllDiscountCodes: {
|
|
325
|
-
id:
|
|
326
|
-
|
|
327
|
-
defaultMessage: 'Export all: {total, plural, one {# discount code} other {# discount codes}}'
|
|
283
|
+
id: "ExportResourcesModal.exportScopeAllDiscountCodes",
|
|
284
|
+
defaultMessage: "Export all: {total, plural, one {# discount code} other {# discount codes}}"
|
|
328
285
|
},
|
|
329
286
|
exportScopeSelectedDiscountCodes: {
|
|
330
|
-
id:
|
|
331
|
-
|
|
332
|
-
defaultMessage: 'Export selected: {total, plural, one {# discount code} other {# discount codes}}'
|
|
287
|
+
id: "ExportResourcesModal.exportScopeSelectedDiscountCodes",
|
|
288
|
+
defaultMessage: "Export selected: {total, plural, one {# discount code} other {# discount codes}}"
|
|
333
289
|
},
|
|
334
290
|
exportScopeFilteredDiscountCodes: {
|
|
335
|
-
id:
|
|
336
|
-
|
|
337
|
-
defaultMessage: 'Export filtered: {total, plural, one {# discount code} other {# discount codes}}'
|
|
291
|
+
id: "ExportResourcesModal.exportScopeFilteredDiscountCodes",
|
|
292
|
+
defaultMessage: "Export filtered: {total, plural, one {# discount code} other {# discount codes}}"
|
|
338
293
|
},
|
|
339
294
|
exportScopeAllOrders: {
|
|
340
|
-
id:
|
|
341
|
-
|
|
342
|
-
defaultMessage: 'Export all: {total, plural, one {# order} other {# orders}}'
|
|
295
|
+
id: "ExportResourcesModal.exportScopeAllOrders",
|
|
296
|
+
defaultMessage: "Export all: {total, plural, one {# order} other {# orders}}"
|
|
343
297
|
},
|
|
344
298
|
exportScopeSelectedOrders: {
|
|
345
|
-
id:
|
|
346
|
-
|
|
347
|
-
defaultMessage: 'Export selected: {total, plural, one {# order} other {# orders}}'
|
|
299
|
+
id: "ExportResourcesModal.exportScopeSelectedOrders",
|
|
300
|
+
defaultMessage: "Export selected: {total, plural, one {# order} other {# orders}}"
|
|
348
301
|
},
|
|
349
302
|
exportScopeFilteredOrders: {
|
|
350
|
-
id:
|
|
351
|
-
|
|
352
|
-
defaultMessage: 'Export filtered: {total, plural, one {# order} other {# orders}}'
|
|
303
|
+
id: "ExportResourcesModal.exportScopeFilteredOrders",
|
|
304
|
+
defaultMessage: "Export filtered: {total, plural, one {# order} other {# orders}}"
|
|
353
305
|
},
|
|
354
306
|
exportScopeAllCustomers: {
|
|
355
|
-
id:
|
|
356
|
-
|
|
357
|
-
defaultMessage: 'Export all: {total, plural, one {# customer} other {# customers}}'
|
|
307
|
+
id: "ExportResourcesModal.exportScopeAllCustomers",
|
|
308
|
+
defaultMessage: "Export all: {total, plural, one {# customer} other {# customers}}"
|
|
358
309
|
},
|
|
359
310
|
exportScopeSelectedCustomers: {
|
|
360
|
-
id:
|
|
361
|
-
|
|
362
|
-
defaultMessage: 'Export selected: {total, plural, one {# customer} other {# customers}}'
|
|
311
|
+
id: "ExportResourcesModal.exportScopeSelectedCustomers",
|
|
312
|
+
defaultMessage: "Export selected: {total, plural, one {# customer} other {# customers}}"
|
|
363
313
|
},
|
|
364
314
|
exportScopeFilteredCustomers: {
|
|
365
|
-
id:
|
|
366
|
-
|
|
367
|
-
defaultMessage: 'Export filtered: {total, plural, one {# customer} other {# customers}}'
|
|
315
|
+
id: "ExportResourcesModal.exportScopeFilteredCustomers",
|
|
316
|
+
defaultMessage: "Export filtered: {total, plural, one {# customer} other {# customers}}"
|
|
368
317
|
},
|
|
369
318
|
exportScopeSelectedWithoutCount: {
|
|
370
|
-
id:
|
|
371
|
-
|
|
372
|
-
defaultMessage: 'Export selected'
|
|
319
|
+
id: "ExportResourcesModal.exportScopeSelectedWithoutCount",
|
|
320
|
+
defaultMessage: "Export selected"
|
|
373
321
|
},
|
|
374
322
|
exportScopeFilteredWithoutCount: {
|
|
375
|
-
id:
|
|
376
|
-
|
|
377
|
-
defaultMessage: 'Export filtered'
|
|
323
|
+
id: "ExportResourcesModal.exportScopeFilteredWithoutCount",
|
|
324
|
+
defaultMessage: "Export filtered"
|
|
378
325
|
},
|
|
379
326
|
exportSettings: {
|
|
380
|
-
id:
|
|
381
|
-
|
|
382
|
-
defaultMessage: 'Settings'
|
|
327
|
+
id: "ExportResourcesModal.exportSettings",
|
|
328
|
+
defaultMessage: "Settings"
|
|
383
329
|
},
|
|
384
330
|
selected: {
|
|
385
|
-
id:
|
|
386
|
-
|
|
387
|
-
defaultMessage: '{total} selected'
|
|
331
|
+
id: "ExportResourcesModal.selected",
|
|
332
|
+
defaultMessage: "{total} selected"
|
|
388
333
|
},
|
|
389
334
|
// Preferences
|
|
390
335
|
exportPreferences: {
|
|
391
|
-
id:
|
|
392
|
-
|
|
393
|
-
defaultMessage: 'Preferences'
|
|
336
|
+
id: "ExportResourcesModal.exportPreferences",
|
|
337
|
+
defaultMessage: "Preferences"
|
|
394
338
|
},
|
|
395
339
|
fillRowsForOrderExport: {
|
|
396
|
-
id:
|
|
397
|
-
|
|
398
|
-
defaultMessage: 'Include Order number, id, and states in every row'
|
|
340
|
+
id: "ExportResourcesModal.fillRowsForOrderExport",
|
|
341
|
+
defaultMessage: "Include Order number, id, and states in every row"
|
|
399
342
|
},
|
|
400
343
|
fillRowsForProductExport: {
|
|
401
|
-
id:
|
|
402
|
-
|
|
403
|
-
defaultMessage: 'Include Product- and Variant-level information in every row'
|
|
344
|
+
id: "ExportResourcesModal.fillRowsForProductExport",
|
|
345
|
+
defaultMessage: "Include Product- and Variant-level information in every row"
|
|
404
346
|
}
|
|
405
347
|
});
|
|
406
348
|
|
|
@@ -1119,7 +1061,7 @@ const useStartExportOperation = props => {
|
|
|
1119
1061
|
};
|
|
1120
1062
|
};
|
|
1121
1063
|
|
|
1122
|
-
const _excluded$
|
|
1064
|
+
const _excluded$2 = ["fields"];
|
|
1123
1065
|
function ownKeys$6(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; }
|
|
1124
1066
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$6(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1125
1067
|
const getFieldFullName = _ref => {
|
|
@@ -1132,7 +1074,7 @@ const localizeTypeDefinitionLabels = function () {
|
|
|
1132
1074
|
let fieldDefinitions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
1133
1075
|
return _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, _ref2 => {
|
|
1134
1076
|
let fields = _ref2.fields,
|
|
1135
|
-
fieldsType = _objectWithoutProperties(_ref2, _excluded$
|
|
1077
|
+
fieldsType = _objectWithoutProperties(_ref2, _excluded$2);
|
|
1136
1078
|
const isFieldTypeLabelLocalized = _Array$isArray__default["default"](fieldsType.label);
|
|
1137
1079
|
return {
|
|
1138
1080
|
name: fieldsType.name,
|
|
@@ -1810,7 +1752,7 @@ const StyledGridCard = /*#__PURE__*/_styled__default["default"](uiKit.Card, proc
|
|
|
1810
1752
|
} : {
|
|
1811
1753
|
target: "e5mvpn60",
|
|
1812
1754
|
label: "StyledGridCard"
|
|
1813
|
-
})("max-height:calc(100vh - ", totalSpacing, "px);overflow:auto;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV4cG9ydC1maWVsZHMtc2VsZWN0aW9uLXN0ZXAudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDbUMiLCJmaWxlIjoiZXhwb3J0LWZpZWxkcy1zZWxlY3Rpb24tc3RlcC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCdcbmltcG9ydCB7IEZvcm1EaWFsb2cgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9hcHBsaWNhdGlvbi1jb21wb25lbnRzJ1xuaW1wb3J0IHsgdXNlQXBwbGljYXRpb25Db250ZXh0IH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvYXBwbGljYXRpb24tc2hlbGwtY29ubmVjdG9ycydcbmltcG9ydCB7IHVzZVN0b3JhZ2UgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9leHBlcmltZW50YWwtY29tcG9uZW50cydcbmltcG9ydCB7IE1hc2tpbmcgYXMgRnVsbFN0b3J5TWFza2luZyB9IGZyb20gJ0Bjb21tZXJjZ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kgPT4gIWdyb3VwLmlzSGlkZGVuKSlcblxuICBjb25zdCBvblNlYXJjaENoYW5nZVRocm90dGxlZCA9IFJlYWN0LnVzZU1lbW8oXG4gICAgKCkgPT4gdGhyb3R0bGUob25TZWFyY2hDaGFuZ2UsIDMwMCksXG4gICAgW29uU2VhcmNoQ2hhbmdlXVxuICApXG5cbiAgY29uc3Qgb25TZWFyY2hSZXNldCA9ICgpID0+
|
|
1755
|
+
})("max-height:calc(100vh - ", totalSpacing, "px);overflow:auto;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV4cG9ydC1maWVsZHMtc2VsZWN0aW9uLXN0ZXAudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDbUMiLCJmaWxlIjoiZXhwb3J0LWZpZWxkcy1zZWxlY3Rpb24tc3RlcC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCdcbmltcG9ydCB7IEZvcm1EaWFsb2cgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9hcHBsaWNhdGlvbi1jb21wb25lbnRzJ1xuaW1wb3J0IHsgdXNlQXBwbGljYXRpb25Db250ZXh0IH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvYXBwbGljYXRpb24tc2hlbGwtY29ubmVjdG9ycydcbmltcG9ydCB7IHVzZVN0b3JhZ2UgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9leHBlcmltZW50YWwtY29tcG9uZW50cydcbmltcG9ydCB7IE1hc2tpbmcgYXMgRnVsbFN0b3J5TWFza2luZyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL2Z1bGxzdG9yeSdcbmltcG9ydCB7XG4gIENhc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mlsdGVyZWRHcm91cHMubWFwKChncm91cCwgaW5kZXgpID0+IChcbiAgICAgICAgICAgICAgICAgICAgPEZpZWxkR3JvdXBTZWN0aW9uXG4gICAgICAgICAgICAgICAgICAgICAga2V5PXtncm91cC5ncm91cE5hbWV9XG4gICAgICAgICAgICAgICAgICAgICAgZ3JvdXA9e2dyb3VwfVxuICAgICAgICAgICAgICAgICAgICAgIGluZGV4PXtpbmRleH1cbiAgICAgICAgICAgICAgICAgICAgICBmb3JtaWs9e2Zvcm1pa31cbiAgICAgICAgICAgICAgICAgICAgICBpc0ZvcmNlRXhwYW5kZWQ9e2ZpZWxkU2VhcmNoVGVybT8udHJpbSgpPy5sZW5ndGggPiAwfVxuICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgKSl9XG4gICAgICAgICAgICAgICAgPC9HcmlkPlxuICAgICAgICAgICAgICA8L1N0eWxlZEdyaWRDYXJkPlxuICAgICAgICAgICAgKSA6IChcbiAgICAgICAgICAgICAgPE5vU2VhcmNoUmVzdWx0cyAvPlxuICAgICAgICAgICAgKX1cbiAgICAgICAgICA8L1NwYWNpbmdzLlN0YWNrPlxuICAgICAgICA8L0V4cG9ydEZpZWxkU2VsZWN0aW9uUHJvdmlkZXI+XG4gICAgICA8L0Z1bGxTdG9yeU1hc2tpbmcuVW5tYXNrPlxuICAgIDwvRm9ybURpYWxvZz5cbiAgKVxufVxuIl19 */"));
|
|
1814
1756
|
const ExportFieldsSelectionStep = () => {
|
|
1815
1757
|
const intl = reactIntl.useIntl();
|
|
1816
1758
|
const _React$useState = React__default["default"].useState(''),
|
|
@@ -1904,6 +1846,9 @@ const ExportFieldsSelectionStep = () => {
|
|
|
1904
1846
|
onSecondaryButtonClick: () => setCurrentStep(Step.FileSettings),
|
|
1905
1847
|
onClose: onClose,
|
|
1906
1848
|
size: 16,
|
|
1849
|
+
dataAttributesPrimaryButton: {
|
|
1850
|
+
'data-tracking-target': `${resourceType}_export-start_export_button`
|
|
1851
|
+
},
|
|
1907
1852
|
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1908
1853
|
children: jsxRuntime.jsx(ExportFieldSelectionProvider, {
|
|
1909
1854
|
resourceType: resourceType,
|
|
@@ -1939,10 +1884,10 @@ const ExportFieldsSelectionStep = () => {
|
|
|
1939
1884
|
|
|
1940
1885
|
const ExportResourcesContext = /*#__PURE__*/React.createContext();
|
|
1941
1886
|
|
|
1942
|
-
const _excluded = ["children"];
|
|
1887
|
+
const _excluded$1 = ["children"];
|
|
1943
1888
|
const ExportResourcesProvider = _ref => {
|
|
1944
1889
|
let children = _ref.children,
|
|
1945
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
1890
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
1946
1891
|
const initialValues = useInitialValues(props);
|
|
1947
1892
|
const _React$useState = React__default["default"].useState(Step.FileSettings),
|
|
1948
1893
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2070,6 +2015,7 @@ const useAsyncIntlMessages = (locale, loader) => {
|
|
|
2070
2015
|
return state;
|
|
2071
2016
|
};
|
|
2072
2017
|
|
|
2018
|
+
const _excluded = ["isOpen", "selectedResourceIds", "outputFormat", "fieldGroups", "fieldOrder"];
|
|
2073
2019
|
function ownKeys(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; }
|
|
2074
2020
|
function _objectSpread(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(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(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2075
2021
|
function invalidateLaunchDarklyCachedFeatureFlag(flagName) {
|
|
@@ -2089,13 +2035,24 @@ function invalidateLaunchDarklyCachedFeatureFlag(flagName) {
|
|
|
2089
2035
|
}
|
|
2090
2036
|
}
|
|
2091
2037
|
invalidateLaunchDarklyCachedFeatureFlag('enableOperationsExport');
|
|
2092
|
-
const ExportResourcesModal =
|
|
2038
|
+
const ExportResourcesModal = _ref3 => {
|
|
2039
|
+
let _ref3$isOpen = _ref3.isOpen,
|
|
2040
|
+
isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen,
|
|
2041
|
+
_ref3$selectedResourc = _ref3.selectedResourceIds,
|
|
2042
|
+
selectedResourceIds = _ref3$selectedResourc === void 0 ? [] : _ref3$selectedResourc,
|
|
2043
|
+
_ref3$outputFormat = _ref3.outputFormat,
|
|
2044
|
+
outputFormat = _ref3$outputFormat === void 0 ? OUTPUT_FORMATS.CSV : _ref3$outputFormat,
|
|
2045
|
+
_ref3$fieldGroups = _ref3.fieldGroups,
|
|
2046
|
+
fieldGroups = _ref3$fieldGroups === void 0 ? [] : _ref3$fieldGroups,
|
|
2047
|
+
_ref3$fieldOrder = _ref3.fieldOrder,
|
|
2048
|
+
fieldOrder = _ref3$fieldOrder === void 0 ? [] : _ref3$fieldOrder,
|
|
2049
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
2093
2050
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
|
|
2094
2051
|
locale: context.user && context.user.locale
|
|
2095
2052
|
})),
|
|
2096
2053
|
locale = _useApplicationContex.locale;
|
|
2097
2054
|
const messages = useAsyncIntlMessages(locale, loadMessages);
|
|
2098
|
-
if (!
|
|
2055
|
+
if (!isOpen || messages.isLoading) return null;
|
|
2099
2056
|
if (props.filters && !validateFilters(props.filters)) {
|
|
2100
2057
|
console.error('Invalid filters prop:', props.filters, 'Filters must contain one of these values: `filters` or `where`');
|
|
2101
2058
|
return null;
|
|
@@ -2103,19 +2060,18 @@ const ExportResourcesModal = props => {
|
|
|
2103
2060
|
return jsxRuntime.jsx(reactIntl.IntlProvider, {
|
|
2104
2061
|
locale: locale,
|
|
2105
2062
|
messages: messages.messages,
|
|
2106
|
-
children: jsxRuntime.jsx(ExportResourcesProvider, _objectSpread(_objectSpread({
|
|
2063
|
+
children: jsxRuntime.jsx(ExportResourcesProvider, _objectSpread(_objectSpread({
|
|
2064
|
+
fieldGroups: fieldGroups,
|
|
2065
|
+
fieldOrder: fieldOrder,
|
|
2066
|
+
isOpen: isOpen,
|
|
2067
|
+
outputFormat: outputFormat,
|
|
2068
|
+
selectedResourceIds: selectedResourceIds
|
|
2069
|
+
}, props), {}, {
|
|
2107
2070
|
children: jsxRuntime.jsx(CurrentStep, {})
|
|
2108
2071
|
}))
|
|
2109
2072
|
});
|
|
2110
2073
|
};
|
|
2111
2074
|
ExportResourcesModal.displayName = 'ExportResourcesModal';
|
|
2112
|
-
ExportResourcesModal.defaultProps = {
|
|
2113
|
-
isOpen: false,
|
|
2114
|
-
selectedResourceIds: [],
|
|
2115
|
-
outputFormat: OUTPUT_FORMATS.CSV,
|
|
2116
|
-
fieldGroups: [],
|
|
2117
|
-
fieldOrder: []
|
|
2118
|
-
};
|
|
2119
2075
|
|
|
2120
2076
|
exports.EXPORTABLE_RESOURCES = EXPORTABLE_RESOURCES;
|
|
2121
2077
|
exports.EXPORT_TYPES = EXPORT_TYPES;
|