@nuskin/react-mysite-elements 1.5.0-ui-fixes.5 → 1.5.0-ui-fixes.7
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/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts +12 -0
- package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +72 -152
- package/dist/common/shopping-dashboard/hooks/useProductOfferWidgetExports.d.ts +15 -0
- package/dist/common/shopping-dashboard/index.d.ts +3 -0
- package/dist/common/shopping-dashboard/specs/excelExport.spec.d.ts +1 -0
- package/dist/common/shopping-dashboard/specs/productOfferExport.spec.d.ts +1 -0
- package/dist/common/shopping-dashboard/specs/useProductOfferWidgetExports.spec.d.ts +1 -0
- package/dist/common/shopping-dashboard/utils/excelExport.d.ts +14 -0
- package/dist/common/shopping-dashboard/utils/productOfferExport.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts
CHANGED
|
@@ -224,6 +224,18 @@ export declare const ProductOfferDashboardTranslationKeys: {
|
|
|
224
224
|
readonly key: "productOfferDashboard.defaults.noData";
|
|
225
225
|
readonly fallback: "--";
|
|
226
226
|
};
|
|
227
|
+
readonly byRevenue: {
|
|
228
|
+
readonly key: "productOfferDashboard.defaults.byRevenue";
|
|
229
|
+
readonly fallback: "Revenue";
|
|
230
|
+
};
|
|
231
|
+
readonly byUnits: {
|
|
232
|
+
readonly key: "productOfferDashboard.defaults.byUnits";
|
|
233
|
+
readonly fallback: "Units";
|
|
234
|
+
};
|
|
235
|
+
readonly byVolume: {
|
|
236
|
+
readonly key: "productOfferDashboard.defaults.byVolume";
|
|
237
|
+
readonly fallback: "Volume";
|
|
238
|
+
};
|
|
227
239
|
};
|
|
228
240
|
};
|
|
229
241
|
export declare function getTranslation(entry: TranslationEntry): string;
|
package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts
CHANGED
|
@@ -12,24 +12,10 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
12
12
|
readonly key: "shoppingDashboard.stats.revenue";
|
|
13
13
|
readonly fallback: "Total Revenue";
|
|
14
14
|
};
|
|
15
|
-
readonly volume: {
|
|
16
|
-
readonly key: "shoppingDashboard.stats.volume";
|
|
17
|
-
readonly fallback: "Volume";
|
|
18
|
-
};
|
|
19
15
|
readonly visits: {
|
|
20
16
|
readonly key: "shoppingDashboard.stats.visits";
|
|
21
17
|
readonly fallback: "Site Visits";
|
|
22
18
|
};
|
|
23
|
-
readonly subtitle: {
|
|
24
|
-
readonly dcSv: {
|
|
25
|
-
readonly key: "shoppingDashboard.stats.subtitle.dcSv";
|
|
26
|
-
readonly fallback: "DC-SV";
|
|
27
|
-
};
|
|
28
|
-
readonly conversionRate: {
|
|
29
|
-
readonly key: "shoppingDashboard.stats.subtitle.conversionRate";
|
|
30
|
-
readonly fallback: "Conversion Rate";
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
19
|
readonly trend: {
|
|
34
20
|
readonly increased: {
|
|
35
21
|
readonly key: "shoppingDashboard.stats.trend.increased";
|
|
@@ -87,52 +73,12 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
87
73
|
readonly key: "shoppingDashboard.filter.productSort.label";
|
|
88
74
|
readonly fallback: "Sort By";
|
|
89
75
|
};
|
|
90
|
-
readonly units: {
|
|
91
|
-
readonly key: "shoppingDashboard.filter.productSort.units";
|
|
92
|
-
readonly fallback: "Units";
|
|
93
|
-
};
|
|
94
|
-
readonly revenue: {
|
|
95
|
-
readonly key: "shoppingDashboard.filter.productSort.revenue";
|
|
96
|
-
readonly fallback: "Revenue";
|
|
97
|
-
};
|
|
98
|
-
readonly volume: {
|
|
99
|
-
readonly key: "shoppingDashboard.filter.productSort.volume";
|
|
100
|
-
readonly fallback: "Volume";
|
|
101
|
-
};
|
|
102
|
-
readonly byUnits: {
|
|
103
|
-
readonly key: "shoppingDashboard.filter.productSort.byUnits";
|
|
104
|
-
readonly fallback: "By: Units";
|
|
105
|
-
};
|
|
106
|
-
readonly byRevenue: {
|
|
107
|
-
readonly key: "shoppingDashboard.filter.productSort.byRevenue";
|
|
108
|
-
readonly fallback: "By: Revenue";
|
|
109
|
-
};
|
|
110
|
-
readonly byVolume: {
|
|
111
|
-
readonly key: "shoppingDashboard.filter.productSort.byVolume";
|
|
112
|
-
readonly fallback: "By: Volume";
|
|
113
|
-
};
|
|
114
76
|
};
|
|
115
77
|
readonly signupView: {
|
|
116
78
|
readonly label: {
|
|
117
79
|
readonly key: "shoppingDashboard.filter.signupView.label";
|
|
118
80
|
readonly fallback: "Show";
|
|
119
81
|
};
|
|
120
|
-
readonly all: {
|
|
121
|
-
readonly key: "shoppingDashboard.filter.signupView.all";
|
|
122
|
-
readonly fallback: "All";
|
|
123
|
-
};
|
|
124
|
-
readonly members: {
|
|
125
|
-
readonly key: "shoppingDashboard.filter.signupView.members";
|
|
126
|
-
readonly fallback: "Members";
|
|
127
|
-
};
|
|
128
|
-
readonly retail: {
|
|
129
|
-
readonly key: "shoppingDashboard.filter.signupView.retail";
|
|
130
|
-
readonly fallback: "Retail";
|
|
131
|
-
};
|
|
132
|
-
readonly brandAffiliates: {
|
|
133
|
-
readonly key: "shoppingDashboard.filter.signupView.brandAffiliates";
|
|
134
|
-
readonly fallback: "Brand Affiliates";
|
|
135
|
-
};
|
|
136
82
|
readonly showAll: {
|
|
137
83
|
readonly key: "shoppingDashboard.filter.signupView.showAll";
|
|
138
84
|
readonly fallback: "Show: All";
|
|
@@ -151,10 +97,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
151
97
|
};
|
|
152
98
|
};
|
|
153
99
|
readonly conversionType: {
|
|
154
|
-
readonly all: {
|
|
155
|
-
readonly key: "shoppingDashboard.filter.conversionType.all";
|
|
156
|
-
readonly fallback: "All";
|
|
157
|
-
};
|
|
158
100
|
readonly standard: {
|
|
159
101
|
readonly key: "shoppingDashboard.filter.conversionType.standard";
|
|
160
102
|
readonly fallback: "Standard";
|
|
@@ -164,16 +106,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
164
106
|
readonly fallback: "Subscription";
|
|
165
107
|
};
|
|
166
108
|
};
|
|
167
|
-
readonly categorySort: {
|
|
168
|
-
readonly byRevenue: {
|
|
169
|
-
readonly key: "shoppingDashboard.filter.categorySort.byRevenue";
|
|
170
|
-
readonly fallback: "By: Revenue";
|
|
171
|
-
};
|
|
172
|
-
readonly byTrend: {
|
|
173
|
-
readonly key: "shoppingDashboard.filter.categorySort.byTrend";
|
|
174
|
-
readonly fallback: "By: Trend";
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
109
|
};
|
|
178
110
|
readonly widget: {
|
|
179
111
|
readonly topProducts: {
|
|
@@ -185,14 +117,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
185
117
|
readonly key: "shoppingDashboard.widget.topProducts.viewAll";
|
|
186
118
|
readonly fallback: "View All Products";
|
|
187
119
|
};
|
|
188
|
-
readonly units: {
|
|
189
|
-
readonly key: "shoppingDashboard.widget.topProducts.units";
|
|
190
|
-
readonly fallback: "Units";
|
|
191
|
-
};
|
|
192
|
-
readonly revenue: {
|
|
193
|
-
readonly key: "shoppingDashboard.widget.topProducts.revenue";
|
|
194
|
-
readonly fallback: "Revenue";
|
|
195
|
-
};
|
|
196
120
|
readonly loading: {
|
|
197
121
|
readonly key: "shoppingDashboard.widget.topProducts.loading";
|
|
198
122
|
readonly fallback: "Loading products...";
|
|
@@ -225,24 +149,12 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
225
149
|
readonly key: "shoppingDashboard.widget.topProducts.revenueSuffix";
|
|
226
150
|
readonly fallback: "revenue";
|
|
227
151
|
};
|
|
228
|
-
readonly dcSvSuffix: {
|
|
229
|
-
readonly key: "shoppingDashboard.widget.topProducts.dcSvSuffix";
|
|
230
|
-
readonly fallback: "DC-SV";
|
|
231
|
-
};
|
|
232
152
|
readonly rank: {
|
|
233
153
|
readonly key: "shoppingDashboard.widget.topProducts.rank";
|
|
234
154
|
readonly fallback: "Rank";
|
|
235
155
|
};
|
|
236
|
-
readonly trend: {
|
|
237
|
-
readonly key: "shoppingDashboard.widget.topProducts.trend";
|
|
238
|
-
readonly fallback: "Trend";
|
|
239
|
-
};
|
|
240
156
|
};
|
|
241
157
|
readonly conversionRate: {
|
|
242
|
-
readonly title: {
|
|
243
|
-
readonly key: "shoppingDashboard.widget.conversionRate.title";
|
|
244
|
-
readonly fallback: "Conversion Rate";
|
|
245
|
-
};
|
|
246
158
|
readonly formula: {
|
|
247
159
|
readonly key: "shoppingDashboard.widget.conversionRate.formula";
|
|
248
160
|
readonly fallback: "Orders ÷ Site visits";
|
|
@@ -263,14 +175,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
263
175
|
readonly key: "shoppingDashboard.widget.conversionRate.filterAriaLabel";
|
|
264
176
|
readonly fallback: "Filter conversion rate by customer type";
|
|
265
177
|
};
|
|
266
|
-
readonly noData: {
|
|
267
|
-
readonly key: "shoppingDashboard.widget.conversionRate.noData";
|
|
268
|
-
readonly fallback: "No data";
|
|
269
|
-
};
|
|
270
|
-
readonly noChange: {
|
|
271
|
-
readonly key: "shoppingDashboard.widget.conversionRate.noChange";
|
|
272
|
-
readonly fallback: "No change";
|
|
273
|
-
};
|
|
274
178
|
readonly tooltipOrders: {
|
|
275
179
|
readonly key: "shoppingDashboard.widget.conversionRate.tooltipOrders";
|
|
276
180
|
readonly fallback: "orders";
|
|
@@ -293,18 +197,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
293
197
|
readonly key: "shoppingDashboard.widget.signups.total";
|
|
294
198
|
readonly fallback: "Total";
|
|
295
199
|
};
|
|
296
|
-
readonly members: {
|
|
297
|
-
readonly key: "shoppingDashboard.widget.signups.members";
|
|
298
|
-
readonly fallback: "Members";
|
|
299
|
-
};
|
|
300
|
-
readonly retail: {
|
|
301
|
-
readonly key: "shoppingDashboard.widget.signups.retail";
|
|
302
|
-
readonly fallback: "Retail";
|
|
303
|
-
};
|
|
304
|
-
readonly brandAffiliates: {
|
|
305
|
-
readonly key: "shoppingDashboard.widget.signups.brandAffiliates";
|
|
306
|
-
readonly fallback: "Brand Affiliates";
|
|
307
|
-
};
|
|
308
200
|
readonly chartAriaLabel: {
|
|
309
201
|
readonly key: "shoppingDashboard.widget.signups.chartAriaLabel";
|
|
310
202
|
readonly fallback: "Signups multi-line chart showing Total, Members, Retail, and Brand Affiliates";
|
|
@@ -317,14 +209,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
317
209
|
readonly key: "shoppingDashboard.widget.signups.filterAriaLabel";
|
|
318
210
|
readonly fallback: "Filter signups view";
|
|
319
211
|
};
|
|
320
|
-
readonly noData: {
|
|
321
|
-
readonly key: "shoppingDashboard.widget.signups.noData";
|
|
322
|
-
readonly fallback: "No data";
|
|
323
|
-
};
|
|
324
|
-
readonly noChange: {
|
|
325
|
-
readonly key: "shoppingDashboard.widget.signups.noChange";
|
|
326
|
-
readonly fallback: "No change";
|
|
327
|
-
};
|
|
328
212
|
readonly totalSignupsInPeriod: {
|
|
329
213
|
readonly key: "shoppingDashboard.widget.signups.totalSignupsInPeriod";
|
|
330
214
|
readonly fallback: "Total sign-ups in period";
|
|
@@ -339,14 +223,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
339
223
|
readonly key: "shoppingDashboard.widget.topCategories.title";
|
|
340
224
|
readonly fallback: "Top Categories";
|
|
341
225
|
};
|
|
342
|
-
readonly revenue: {
|
|
343
|
-
readonly key: "shoppingDashboard.widget.topCategories.revenue";
|
|
344
|
-
readonly fallback: "Revenue";
|
|
345
|
-
};
|
|
346
|
-
readonly units: {
|
|
347
|
-
readonly key: "shoppingDashboard.widget.topCategories.units";
|
|
348
|
-
readonly fallback: "Units";
|
|
349
|
-
};
|
|
350
226
|
readonly empty: {
|
|
351
227
|
readonly key: "shoppingDashboard.widget.topCategories.empty";
|
|
352
228
|
readonly fallback: "No category data available";
|
|
@@ -434,14 +310,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
434
310
|
readonly key: "shoppingDashboard.fullView.signups.columns.name";
|
|
435
311
|
readonly fallback: "Name";
|
|
436
312
|
};
|
|
437
|
-
readonly date: {
|
|
438
|
-
readonly key: "shoppingDashboard.fullView.signups.columns.date";
|
|
439
|
-
readonly fallback: "Date";
|
|
440
|
-
};
|
|
441
|
-
readonly type: {
|
|
442
|
-
readonly key: "shoppingDashboard.fullView.signups.columns.type";
|
|
443
|
-
readonly fallback: "Type";
|
|
444
|
-
};
|
|
445
313
|
readonly email: {
|
|
446
314
|
readonly key: "shoppingDashboard.fullView.signups.columns.email";
|
|
447
315
|
readonly fallback: "Email";
|
|
@@ -462,18 +330,10 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
462
330
|
readonly key: "shoppingDashboard.fullView.conversionRate.columns.orderId";
|
|
463
331
|
readonly fallback: "Order ID";
|
|
464
332
|
};
|
|
465
|
-
readonly date: {
|
|
466
|
-
readonly key: "shoppingDashboard.fullView.conversionRate.columns.date";
|
|
467
|
-
readonly fallback: "Date";
|
|
468
|
-
};
|
|
469
333
|
readonly customer: {
|
|
470
334
|
readonly key: "shoppingDashboard.fullView.conversionRate.columns.customer";
|
|
471
335
|
readonly fallback: "Customer";
|
|
472
336
|
};
|
|
473
|
-
readonly type: {
|
|
474
|
-
readonly key: "shoppingDashboard.fullView.conversionRate.columns.type";
|
|
475
|
-
readonly fallback: "Type";
|
|
476
|
-
};
|
|
477
337
|
readonly items: {
|
|
478
338
|
readonly key: "shoppingDashboard.fullView.conversionRate.columns.items";
|
|
479
339
|
readonly fallback: "Items";
|
|
@@ -514,10 +374,6 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
514
374
|
readonly key: "shoppingDashboard.fullView.products.columns.unitsSold";
|
|
515
375
|
readonly fallback: "Units Sold";
|
|
516
376
|
};
|
|
517
|
-
readonly revenue: {
|
|
518
|
-
readonly key: "shoppingDashboard.fullView.products.columns.revenue";
|
|
519
|
-
readonly fallback: "Revenue";
|
|
520
|
-
};
|
|
521
377
|
readonly volume: {
|
|
522
378
|
readonly key: "shoppingDashboard.fullView.products.columns.volume";
|
|
523
379
|
readonly fallback: "Volume (DC-SV)";
|
|
@@ -538,18 +394,10 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
538
394
|
readonly key: "shoppingDashboard.fullView.categories.columns.category";
|
|
539
395
|
readonly fallback: "Category";
|
|
540
396
|
};
|
|
541
|
-
readonly revenue: {
|
|
542
|
-
readonly key: "shoppingDashboard.fullView.categories.columns.revenue";
|
|
543
|
-
readonly fallback: "Revenue";
|
|
544
|
-
};
|
|
545
397
|
readonly percentOfTotal: {
|
|
546
398
|
readonly key: "shoppingDashboard.fullView.categories.columns.percentOfTotal";
|
|
547
399
|
readonly fallback: "% of Total";
|
|
548
400
|
};
|
|
549
|
-
readonly trend: {
|
|
550
|
-
readonly key: "shoppingDashboard.fullView.categories.columns.trend";
|
|
551
|
-
readonly fallback: "Trend";
|
|
552
|
-
};
|
|
553
401
|
};
|
|
554
402
|
readonly allCategoriesTitle: {
|
|
555
403
|
readonly key: "shoppingDashboard.fullView.categories.allCategoriesTitle";
|
|
@@ -598,6 +446,78 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
598
446
|
readonly key: "shoppingDashboard.defaults.noValue";
|
|
599
447
|
readonly fallback: "--";
|
|
600
448
|
};
|
|
449
|
+
readonly noData: {
|
|
450
|
+
readonly key: "shoppingDashboard.defaults.noData";
|
|
451
|
+
readonly fallback: "No data";
|
|
452
|
+
};
|
|
453
|
+
readonly noChange: {
|
|
454
|
+
readonly key: "shoppingDashboard.defaults.noChange";
|
|
455
|
+
readonly fallback: "No change";
|
|
456
|
+
};
|
|
457
|
+
readonly byRevenue: {
|
|
458
|
+
readonly key: "shoppingDashboard.defaults.byRevenue";
|
|
459
|
+
readonly fallback: "By: Revenue";
|
|
460
|
+
};
|
|
461
|
+
readonly byUnits: {
|
|
462
|
+
readonly key: "shoppingDashboard.defaults.byUnits";
|
|
463
|
+
readonly fallback: "By: Units";
|
|
464
|
+
};
|
|
465
|
+
readonly byVolume: {
|
|
466
|
+
readonly key: "shoppingDashboard.defaults.byVolume";
|
|
467
|
+
readonly fallback: "By: Volume";
|
|
468
|
+
};
|
|
469
|
+
readonly byTrend: {
|
|
470
|
+
readonly key: "shoppingDashboard.defaults.byTrend";
|
|
471
|
+
readonly fallback: "By: Trend";
|
|
472
|
+
};
|
|
473
|
+
readonly all: {
|
|
474
|
+
readonly key: "shoppingDashboard.defaults.all";
|
|
475
|
+
readonly fallback: "All";
|
|
476
|
+
};
|
|
477
|
+
readonly members: {
|
|
478
|
+
readonly key: "shoppingDashboard.defaults.members";
|
|
479
|
+
readonly fallback: "Members";
|
|
480
|
+
};
|
|
481
|
+
readonly retail: {
|
|
482
|
+
readonly key: "shoppingDashboard.defaults.retail";
|
|
483
|
+
readonly fallback: "Retail";
|
|
484
|
+
};
|
|
485
|
+
readonly brandAffiliates: {
|
|
486
|
+
readonly key: "shoppingDashboard.defaults.brandAffiliates";
|
|
487
|
+
readonly fallback: "Brand Affiliates";
|
|
488
|
+
};
|
|
489
|
+
readonly revenue: {
|
|
490
|
+
readonly key: "shoppingDashboard.defaults.revenue";
|
|
491
|
+
readonly fallback: "Revenue";
|
|
492
|
+
};
|
|
493
|
+
readonly units: {
|
|
494
|
+
readonly key: "shoppingDashboard.defaults.units";
|
|
495
|
+
readonly fallback: "Units";
|
|
496
|
+
};
|
|
497
|
+
readonly volume: {
|
|
498
|
+
readonly key: "shoppingDashboard.defaults.volume";
|
|
499
|
+
readonly fallback: "Volume";
|
|
500
|
+
};
|
|
501
|
+
readonly conversionRate: {
|
|
502
|
+
readonly key: "shoppingDashboard.defaults.conversionRate";
|
|
503
|
+
readonly fallback: "Conversion Rate";
|
|
504
|
+
};
|
|
505
|
+
readonly trend: {
|
|
506
|
+
readonly key: "shoppingDashboard.defaults.trend";
|
|
507
|
+
readonly fallback: "Trend";
|
|
508
|
+
};
|
|
509
|
+
readonly date: {
|
|
510
|
+
readonly key: "shoppingDashboard.defaults.date";
|
|
511
|
+
readonly fallback: "Date";
|
|
512
|
+
};
|
|
513
|
+
readonly type: {
|
|
514
|
+
readonly key: "shoppingDashboard.defaults.type";
|
|
515
|
+
readonly fallback: "Type";
|
|
516
|
+
};
|
|
517
|
+
readonly dcSv: {
|
|
518
|
+
readonly key: "shoppingDashboard.defaults.dcSv";
|
|
519
|
+
readonly fallback: "DC-SV";
|
|
520
|
+
};
|
|
601
521
|
};
|
|
602
522
|
};
|
|
603
523
|
type TranslationEntry = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TopPerformingOffer, TopProduct } from '../types.d';
|
|
2
|
+
export interface ProductOfferWidgetExportOptions {
|
|
3
|
+
readonly topProducts: readonly TopProduct[];
|
|
4
|
+
readonly topOffers: readonly TopPerformingOffer[];
|
|
5
|
+
readonly topProductsExportData?: readonly TopProduct[];
|
|
6
|
+
readonly topOffersExportData?: readonly TopPerformingOffer[];
|
|
7
|
+
readonly showTopProductsExportOption?: boolean;
|
|
8
|
+
readonly showTopOffersExportOption?: boolean;
|
|
9
|
+
readonly isLoading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ProductOfferWidgetExportHandlers {
|
|
12
|
+
readonly onTopProductsExport?: () => Promise<void>;
|
|
13
|
+
readonly onTopOffersExport?: () => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export declare function useProductOfferWidgetExports({ topProducts, topOffers, topProductsExportData, topOffersExportData, showTopProductsExportOption, showTopOffersExportOption, isLoading, }: ProductOfferWidgetExportOptions): ProductOfferWidgetExportHandlers;
|
|
@@ -40,3 +40,6 @@ export { formatDateRangeLabel, formatShortDate, formatDisplayDate, formatDateRan
|
|
|
40
40
|
export { DAYS_MAP, DATE_RANGE_LABELS, getDaysFromDateRange, getDateRangeLabel } from './utils/dateConstants';
|
|
41
41
|
export { calculateTotalPages, paginateItems, sortByNumericProperty, calculatePercentage } from './utils/dataUtils';
|
|
42
42
|
export { buildDefaultMarketOptions, resolveMarketOptions } from './utils/marketOptions';
|
|
43
|
+
export { useProductOfferWidgetExports } from './hooks/useProductOfferWidgetExports';
|
|
44
|
+
export { exportRowsToExcel, normalizeExcelFileName, normalizeExcelSheetName } from './utils/excelExport';
|
|
45
|
+
export { exportTopPerformingOffers, exportTopProducts } from './utils/productOfferExport';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ExcelCellValue = string | number | boolean | Date | null | undefined;
|
|
2
|
+
export interface ExcelExportColumn<TItem> {
|
|
3
|
+
readonly header: string;
|
|
4
|
+
readonly value: (item: TItem) => ExcelCellValue;
|
|
5
|
+
}
|
|
6
|
+
export interface ExcelExportOptions<TItem> {
|
|
7
|
+
readonly rows: readonly TItem[];
|
|
8
|
+
readonly columns: readonly ExcelExportColumn<TItem>[];
|
|
9
|
+
readonly fileName: string;
|
|
10
|
+
readonly sheetName: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function normalizeExcelFileName(fileName: string): string;
|
|
13
|
+
export declare function normalizeExcelSheetName(sheetName: string): string;
|
|
14
|
+
export declare function exportRowsToExcel<TItem>({ rows, columns, fileName, sheetName, }: ExcelExportOptions<TItem>): Promise<void>;
|