@medusajs/dashboard 3.0.0-preview-20251214090148 → 3.0.0-preview-20251214120146
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/{api-key-management-detail-F7ZRCFPA.mjs → api-key-management-detail-I45X6X64.mjs} +3 -3
- package/dist/app.js +9199 -9074
- package/dist/app.mjs +4 -4
- package/dist/{campaign-detail-6VNSVZHQ.mjs → campaign-detail-P3CSDHZN.mjs} +3 -3
- package/dist/{categories-metadata-ORPB2LIW.mjs → categories-metadata-BCZ463KN.mjs} +3 -3
- package/dist/{category-detail-RICXPIVS.mjs → category-detail-VDUHW3QT.mjs} +6 -6
- package/dist/{category-products-L4XIX3IQ.mjs → category-products-VOD3XRPG.mjs} +6 -6
- package/dist/chunk-35LSPN2U.mjs +66 -0
- package/dist/{chunk-EQBVGH3N.mjs → chunk-B3AOQW2B.mjs} +1 -1
- package/dist/{chunk-UKECZ5PA.mjs → chunk-EI27JC4V.mjs} +1 -1
- package/dist/{chunk-4VNR7DND.mjs → chunk-F5NZDW7L.mjs} +2 -2
- package/dist/{chunk-JJGE3EV6.mjs → chunk-F63F3FIT.mjs} +2 -2
- package/dist/{chunk-AMOGGDOW.mjs → chunk-HFT7Q5Y5.mjs} +1 -1
- package/dist/{chunk-4G2UHUXX.mjs → chunk-M4Z2YEYB.mjs} +8 -8
- package/dist/{chunk-XTQ7UFA3.mjs → chunk-MY6I7UJG.mjs} +1 -1
- package/dist/{chunk-JUVGXLY5.mjs → chunk-QPKW37WR.mjs} +1 -1
- package/dist/{chunk-GN6OCHP4.mjs → chunk-RU4ZS47V.mjs} +11 -1
- package/dist/{chunk-EXDBX4YX.mjs → chunk-SKA4AJO4.mjs} +2 -2
- package/dist/{chunk-Q4E6LV6K.mjs → chunk-UWBENEHD.mjs} +123 -105
- package/dist/{chunk-YV4ANEZF.mjs → chunk-YAPTGHGP.mjs} +1 -1
- package/dist/{chunk-FIFVOKTK.mjs → chunk-Z6NHG5LQ.mjs} +1 -1
- package/dist/{collection-add-products-MO4FGYD5.mjs → collection-add-products-P5B564HQ.mjs} +6 -6
- package/dist/{collection-detail-ZCHVPXW5.mjs → collection-detail-PCL3HYPB.mjs} +6 -6
- package/dist/{collection-list-3UUFO7AP.mjs → collection-list-ANPFZOFP.mjs} +13 -13
- package/dist/{collection-metadata-ZOYQDOOT.mjs → collection-metadata-P4A5DXBQ.mjs} +3 -3
- package/dist/{customer-detail-RMZTHQIQ.mjs → customer-detail-ENPJO3DW.mjs} +6 -6
- package/dist/{customer-group-detail-4S7WB3WV.mjs → customer-group-detail-DVNRFZX5.mjs} +6 -6
- package/dist/{customer-group-list-JQX6PW6E.mjs → customer-group-list-P2QX5AO4.mjs} +3 -3
- package/dist/{customers-add-customer-group-JKTM33OU.mjs → customers-add-customer-group-RVR476OP.mjs} +6 -6
- package/dist/{edit-rules-AXG2NQNS.mjs → edit-rules-2W3BXEXR.mjs} +3 -3
- package/dist/en.json +12 -0
- package/dist/{inventory-create-6SKU4TZL.mjs → inventory-create-VQEK7C5T.mjs} +3 -3
- package/dist/{inventory-detail-LAYYI2QT.mjs → inventory-detail-UYDDNO24.mjs} +3 -3
- package/dist/{inventory-metadata-Q6E6SZF3.mjs → inventory-metadata-X52VGHA7.mjs} +3 -3
- package/dist/{inventory-stock-SNAWXRBE.mjs → inventory-stock-EKTOYN2F.mjs} +3 -3
- package/dist/{location-detail-XXH22FLG.mjs → location-detail-UVWYE6Q2.mjs} +7 -7
- package/dist/{location-fulfillment-providers-FSC27EK7.mjs → location-fulfillment-providers-3BGI2NNW.mjs} +4 -4
- package/dist/{location-service-zone-shipping-option-create-GWNLLSM5.mjs → location-service-zone-shipping-option-create-M7G4SKNP.mjs} +3 -3
- package/dist/{login-MFUCIAT6.mjs → login-NSCAMAU6.mjs} +3 -3
- package/dist/{order-allocate-items-3DDI4V3W.mjs → order-allocate-items-5T57NZOB.mjs} +1 -1
- package/dist/{order-create-claim-G7BDA7WR.mjs → order-create-claim-JLCXZNHU.mjs} +5 -5
- package/dist/{order-create-edit-BXYPZRZV.mjs → order-create-edit-QB6LIWSF.mjs} +4 -4
- package/dist/{order-create-exchange-AGEXEKOF.mjs → order-create-exchange-GOU4AJXP.mjs} +11 -11
- package/dist/{order-create-fulfillment-GMLSBCEK.mjs → order-create-fulfillment-SRRP6X64.mjs} +3 -3
- package/dist/{order-create-refund-BT33POIN.mjs → order-create-refund-PTOM65QK.mjs} +3 -3
- package/dist/{order-create-return-QGXWSPMP.mjs → order-create-return-3EOY7TOC.mjs} +2 -2
- package/dist/{order-create-shipment-ZVTOKNC4.mjs → order-create-shipment-HNILNFXB.mjs} +3 -3
- package/dist/{order-detail-MORQRSHL.mjs → order-detail-BCBUUVU7.mjs} +11 -11
- package/dist/{order-edit-billing-address-IUVC4GSZ.mjs → order-edit-billing-address-3IO7GXIK.mjs} +3 -3
- package/dist/{order-edit-email-MKLJPREH.mjs → order-edit-email-QIAEOUBV.mjs} +3 -3
- package/dist/{order-edit-shipping-address-GFSRTDFG.mjs → order-edit-shipping-address-QGGMHGBC.mjs} +3 -3
- package/dist/order-export-LPAWHHSK.mjs +121 -0
- package/dist/{order-list-QOYJFYD5.mjs → order-list-Y4FET3XV.mjs} +38 -82
- package/dist/{order-metadata-BRSYOGKE.mjs → order-metadata-ZBDTMBHZ.mjs} +3 -3
- package/dist/{order-receive-return-NI345L43.mjs → order-receive-return-V42FTCFY.mjs} +4 -4
- package/dist/{order-request-transfer-ZGGIUFRV.mjs → order-request-transfer-A6NNIN2O.mjs} +3 -3
- package/dist/{price-list-configuration-CWTP3Y5X.mjs → price-list-configuration-54D4JW6G.mjs} +2 -2
- package/dist/{price-list-create-HDYM5ZGW.mjs → price-list-create-5DI6QXFL.mjs} +11 -11
- package/dist/{price-list-detail-GVGNB5AY.mjs → price-list-detail-7XY3MDV5.mjs} +6 -6
- package/dist/{price-list-prices-add-P4XHE3F4.mjs → price-list-prices-add-UA2DT4AM.mjs} +6 -6
- package/dist/{product-attributes-AXSXHPI5.mjs → product-attributes-4AEBLFIM.mjs} +4 -4
- package/dist/{product-create-CAGTWFTS.mjs → product-create-TGR3I2H2.mjs} +4 -4
- package/dist/{product-create-variant-5DLZZQPL.mjs → product-create-variant-WI6D5CDG.mjs} +3 -3
- package/dist/{product-detail-FSORFVRL.mjs → product-detail-YLYXIRRB.mjs} +4 -4
- package/dist/{product-edit-EYQIREZ6.mjs → product-edit-ALZUODMD.mjs} +4 -4
- package/dist/{product-export-4XRDDWZQ.mjs → product-export-CPL66H6S.mjs} +13 -13
- package/dist/{product-image-variants-edit-KCFCTXE2.mjs → product-image-variants-edit-X3LUMPLJ.mjs} +3 -3
- package/dist/{product-import-JTEXWYY7.mjs → product-import-43UXKCL3.mjs} +3 -3
- package/dist/{product-list-T4OZG4OC.mjs → product-list-47T2IZ3F.mjs} +6 -6
- package/dist/{product-metadata-5BLG4EIR.mjs → product-metadata-55CAQTPS.mjs} +3 -3
- package/dist/{product-organization-BEXN2KXC.mjs → product-organization-KHZELN3F.mjs} +4 -4
- package/dist/{product-stock-SSJVQPBZ.mjs → product-stock-22S2HGMM.mjs} +3 -3
- package/dist/{product-tag-create-ZPYRJTC4.mjs → product-tag-create-7GPE246H.mjs} +3 -3
- package/dist/{product-tag-detail-VRGVJNDT.mjs → product-tag-detail-BQG2LJK6.mjs} +15 -15
- package/dist/{product-tag-edit-2KFYOID4.mjs → product-tag-edit-WA6FGSIP.mjs} +3 -3
- package/dist/{product-tag-list-WTX6GV7O.mjs → product-tag-list-PW7WDCQH.mjs} +15 -15
- package/dist/{product-tag-metadata-Y7YHTUKM.mjs → product-tag-metadata-EJ7FEXSE.mjs} +3 -3
- package/dist/{product-type-detail-3ZLSMENL.mjs → product-type-detail-TJQS4BVU.mjs} +6 -6
- package/dist/{product-type-metadata-GJACA4N6.mjs → product-type-metadata-Q6W5GL7Z.mjs} +3 -3
- package/dist/{product-variant-detail-L5G4CPVH.mjs → product-variant-detail-LYGQDASG.mjs} +3 -3
- package/dist/{product-variant-edit-YXALQPQT.mjs → product-variant-edit-BW7QMHC5.mjs} +3 -3
- package/dist/{product-variant-metadata-OQOE34VY.mjs → product-variant-metadata-GDMVC4MZ.mjs} +3 -3
- package/dist/{promotion-create-OXNLKBL7.mjs → promotion-create-HF6DTKCC.mjs} +9 -9
- package/dist/{promotion-detail-N6VHHN3X.mjs → promotion-detail-MDVDMQUM.mjs} +3 -3
- package/dist/{refund-reason-create-L36EUXXM.mjs → refund-reason-create-RKIH46D6.mjs} +3 -3
- package/dist/{refund-reason-edit-364ALB4G.mjs → refund-reason-edit-V3KC6NMO.mjs} +3 -3
- package/dist/{refund-reason-list-ICO2GYRP.mjs → refund-reason-list-FR7POQS5.mjs} +4 -4
- package/dist/{region-metadata-VNLW6NYZ.mjs → region-metadata-5NGUNAXZ.mjs} +3 -3
- package/dist/{reservation-detail-YXIUIN5I.mjs → reservation-detail-JH77TQHN.mjs} +3 -3
- package/dist/{reservation-metadata-7H7TYWZW.mjs → reservation-metadata-ERCWXYVL.mjs} +3 -3
- package/dist/return-reason-list-IFFIDA5O.mjs +1 -1
- package/dist/{sales-channel-add-products-N7EPWF2N.mjs → sales-channel-add-products-SPGDWA44.mjs} +6 -6
- package/dist/{sales-channel-detail-DV6BKC5B.mjs → sales-channel-detail-D7VNPSCN.mjs} +6 -6
- package/dist/{sales-channel-list-33QC2ZXP.mjs → sales-channel-list-QGWQVXVW.mjs} +3 -3
- package/dist/{sales-channel-metadata-HYYQEVRZ.mjs → sales-channel-metadata-CMZN74K7.mjs} +3 -3
- package/dist/{shipping-option-type-create-IXYDKBKG.mjs → shipping-option-type-create-4BN2GBHP.mjs} +3 -3
- package/dist/{shipping-option-type-detail-WMZ3DEY6.mjs → shipping-option-type-detail-YB3TCED2.mjs} +4 -4
- package/dist/{shipping-option-type-edit-YYO3Q2QV.mjs → shipping-option-type-edit-MDO7ALAU.mjs} +3 -3
- package/dist/{shipping-option-type-list-YAL6IQF2.mjs → shipping-option-type-list-6TPD3AMM.mjs} +4 -4
- package/dist/{shipping-profile-metadata-YBXPOVZF.mjs → shipping-profile-metadata-HQI7PCPU.mjs} +3 -3
- package/dist/{store-add-locales-AYY44DB3.mjs → store-add-locales-XJJCEO6Q.mjs} +3 -3
- package/dist/{store-detail-4YVABC3P.mjs → store-detail-DNK76PXP.mjs} +3 -3
- package/dist/{store-metadata-QQD2NP5U.mjs → store-metadata-ZJD23O4D.mjs} +3 -3
- package/dist/{tax-region-create-AFGAIC3C.mjs → tax-region-create-NCO2OQ3I.mjs} +3 -3
- package/dist/{tax-region-detail-LM7VIA2N.mjs → tax-region-detail-C42CLE64.mjs} +17 -17
- package/dist/{tax-region-edit-ZLSY22NQ.mjs → tax-region-edit-YZALLSZY.mjs} +3 -3
- package/dist/{tax-region-province-detail-ZF75A3Z2.mjs → tax-region-province-detail-G2DPC6XM.mjs} +17 -17
- package/dist/{tax-region-tax-override-create-JVMTMMWB.mjs → tax-region-tax-override-create-WIVKENVO.mjs} +14 -14
- package/dist/{tax-region-tax-override-edit-HS4BCVC7.mjs → tax-region-tax-override-edit-UDEO3UIY.mjs} +15 -15
- package/dist/{user-metadata-U3WGLABX.mjs → user-metadata-4WOICEE7.mjs} +3 -3
- package/dist/{workflow-execution-detail-L4IESFKA.mjs → workflow-execution-detail-OKM6P4SX.mjs} +4 -4
- package/package.json +9 -9
- package/src/dashboard-app/routes/get-route.map.tsx +6 -0
- package/src/hooks/api/orders.tsx +18 -1
- package/src/i18n/translations/$schema.json +40 -0
- package/src/i18n/translations/en.json +12 -0
- package/src/routes/orders/order-export/components/export-filters.tsx +22 -0
- package/src/routes/orders/order-export/index.ts +1 -0
- package/src/routes/orders/order-export/order-export.tsx +66 -0
- package/src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx +14 -6
- package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +8 -2
- package/dist/{chunk-CZFLKMYE.mjs → chunk-YWLAUILP.mjs} +3 -3
- package/dist/{customer-group-add-customers-HUGHHMU6.mjs → customer-group-add-customers-A7OGFFJ4.mjs} +3 -3
- package/dist/{customer-list-ZXCGIXJC.mjs → customer-list-TG4D4QOT.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-edit-QS6HTWST.mjs → location-service-zone-shipping-option-edit-M2HJAASG.mjs} +3 -3
- package/dist/{product-type-list-QX7QC6RI.mjs → product-type-list-7WQ5D2KV.mjs} +3 -3
- package/dist/{region-list-XQRIBDMF.mjs → region-list-JAQXIBYD.mjs} +3 -3
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
useUpdateClaimInboundShipping,
|
|
22
22
|
useUpdateClaimOutboundItems,
|
|
23
23
|
useUpdateClaimOutboundShipping
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-F5NZDW7L.mjs";
|
|
25
25
|
import {
|
|
26
26
|
OutboundShippingPlaceholder,
|
|
27
27
|
ReturnShippingPlaceholder
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
useReturn,
|
|
37
37
|
useUpdateReturn
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-B3AOQW2B.mjs";
|
|
39
39
|
import {
|
|
40
40
|
MoneyAmountCell
|
|
41
41
|
} from "./chunk-INE2QCSC.mjs";
|
|
@@ -94,13 +94,13 @@ import {
|
|
|
94
94
|
} from "./chunk-OBQI23QM.mjs";
|
|
95
95
|
import {
|
|
96
96
|
useVariants
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-QPKW37WR.mjs";
|
|
98
98
|
import "./chunk-I4OBEAOJ.mjs";
|
|
99
99
|
import "./chunk-HI6URQ7H.mjs";
|
|
100
100
|
import "./chunk-6CLQKVAU.mjs";
|
|
101
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
101
102
|
import "./chunk-HKIF5HVL.mjs";
|
|
102
103
|
import "./chunk-XIVBRONM.mjs";
|
|
103
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
104
104
|
import "./chunk-WAXMT4IY.mjs";
|
|
105
105
|
import "./chunk-DYDGGABK.mjs";
|
|
106
106
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
useOrder,
|
|
121
121
|
useOrderPreview,
|
|
122
122
|
useOrderShippingOptions
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
124
124
|
import "./chunk-N4O5FAUC.mjs";
|
|
125
125
|
import "./chunk-7AX6R6G6.mjs";
|
|
126
126
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useRequestOrderEdit,
|
|
7
7
|
useUpdateOrderEditAddedItem,
|
|
8
8
|
useUpdateOrderEditOriginalItem
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z6NHG5LQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_FIELDS
|
|
12
12
|
} from "./chunk-C7F7MMXS.mjs";
|
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
} from "./chunk-OBQI23QM.mjs";
|
|
62
62
|
import {
|
|
63
63
|
useVariants
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-QPKW37WR.mjs";
|
|
65
65
|
import "./chunk-I4OBEAOJ.mjs";
|
|
66
66
|
import "./chunk-HI6URQ7H.mjs";
|
|
67
67
|
import "./chunk-6CLQKVAU.mjs";
|
|
68
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
68
69
|
import "./chunk-HKIF5HVL.mjs";
|
|
69
70
|
import "./chunk-XIVBRONM.mjs";
|
|
70
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
71
71
|
import "./chunk-WAXMT4IY.mjs";
|
|
72
72
|
import "./chunk-DYDGGABK.mjs";
|
|
73
73
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -82,7 +82,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
82
82
|
import {
|
|
83
83
|
useOrder,
|
|
84
84
|
useOrderPreview
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
86
86
|
import "./chunk-N4O5FAUC.mjs";
|
|
87
87
|
import "./chunk-7AX6R6G6.mjs";
|
|
88
88
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ItemPlaceholder
|
|
3
|
+
} from "./chunk-QJ6SBVJ2.mjs";
|
|
4
|
+
import {
|
|
5
|
+
getFormattedShippingOptionLocationName
|
|
6
|
+
} from "./chunk-UC26CCHZ.mjs";
|
|
1
7
|
import {
|
|
2
8
|
useAddExchangeInboundItems,
|
|
3
9
|
useAddExchangeInboundShipping,
|
|
@@ -15,13 +21,7 @@ import {
|
|
|
15
21
|
useUpdateExchangeInboundShipping,
|
|
16
22
|
useUpdateExchangeOutboundItems,
|
|
17
23
|
useUpdateExchangeOutboundShipping
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
ItemPlaceholder
|
|
21
|
-
} from "./chunk-QJ6SBVJ2.mjs";
|
|
22
|
-
import {
|
|
23
|
-
getFormattedShippingOptionLocationName
|
|
24
|
-
} from "./chunk-UC26CCHZ.mjs";
|
|
24
|
+
} from "./chunk-F63F3FIT.mjs";
|
|
25
25
|
import {
|
|
26
26
|
OutboundShippingPlaceholder,
|
|
27
27
|
ReturnShippingPlaceholder
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
useReturn,
|
|
37
37
|
useUpdateReturn
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-B3AOQW2B.mjs";
|
|
39
39
|
import {
|
|
40
40
|
MoneyAmountCell
|
|
41
41
|
} from "./chunk-INE2QCSC.mjs";
|
|
@@ -94,13 +94,13 @@ import {
|
|
|
94
94
|
} from "./chunk-OBQI23QM.mjs";
|
|
95
95
|
import {
|
|
96
96
|
useVariants
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-QPKW37WR.mjs";
|
|
98
98
|
import "./chunk-I4OBEAOJ.mjs";
|
|
99
99
|
import "./chunk-HI6URQ7H.mjs";
|
|
100
100
|
import "./chunk-6CLQKVAU.mjs";
|
|
101
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
101
102
|
import "./chunk-HKIF5HVL.mjs";
|
|
102
103
|
import "./chunk-XIVBRONM.mjs";
|
|
103
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
104
104
|
import "./chunk-WAXMT4IY.mjs";
|
|
105
105
|
import "./chunk-DYDGGABK.mjs";
|
|
106
106
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
useOrderPreview,
|
|
122
122
|
useOrderShippingOptions,
|
|
123
123
|
useUpdateOrderChange
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
125
125
|
import "./chunk-N4O5FAUC.mjs";
|
|
126
126
|
import "./chunk-7AX6R6G6.mjs";
|
|
127
127
|
import "./chunk-N3FCYZV6.mjs";
|
package/dist/{order-create-fulfillment-GMLSBCEK.mjs → order-create-fulfillment-SRRP6X64.mjs}
RENAMED
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
Form
|
|
30
30
|
} from "./chunk-OBQI23QM.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-QPKW37WR.mjs";
|
|
32
32
|
import "./chunk-I4OBEAOJ.mjs";
|
|
33
33
|
import "./chunk-HI6URQ7H.mjs";
|
|
34
34
|
import "./chunk-6CLQKVAU.mjs";
|
|
35
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
35
36
|
import "./chunk-HKIF5HVL.mjs";
|
|
36
37
|
import "./chunk-XIVBRONM.mjs";
|
|
37
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
38
38
|
import "./chunk-WAXMT4IY.mjs";
|
|
39
39
|
import "./chunk-DYDGGABK.mjs";
|
|
40
40
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -51,7 +51,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
51
51
|
import {
|
|
52
52
|
useCreateOrderFulfillment,
|
|
53
53
|
useOrder
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
55
55
|
import {
|
|
56
56
|
useReservationItems
|
|
57
57
|
} from "./chunk-N4O5FAUC.mjs";
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
usePlugins,
|
|
40
40
|
useRefundPayment,
|
|
41
41
|
useRefundReasons
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QPKW37WR.mjs";
|
|
43
43
|
import "./chunk-I4OBEAOJ.mjs";
|
|
44
44
|
import "./chunk-HI6URQ7H.mjs";
|
|
45
45
|
import "./chunk-6CLQKVAU.mjs";
|
|
46
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
46
47
|
import "./chunk-HKIF5HVL.mjs";
|
|
47
48
|
import "./chunk-XIVBRONM.mjs";
|
|
48
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
49
49
|
import "./chunk-WAXMT4IY.mjs";
|
|
50
50
|
import "./chunk-DYDGGABK.mjs";
|
|
51
51
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -60,7 +60,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
60
60
|
import {
|
|
61
61
|
useCreateOrderCreditLine,
|
|
62
62
|
useOrder
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
64
64
|
import "./chunk-N4O5FAUC.mjs";
|
|
65
65
|
import "./chunk-7AX6R6G6.mjs";
|
|
66
66
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
useUpdateReturn,
|
|
20
20
|
useUpdateReturnItem,
|
|
21
21
|
useUpdateReturnShipping
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B3AOQW2B.mjs";
|
|
23
23
|
import {
|
|
24
24
|
MoneyAmountCell
|
|
25
25
|
} from "./chunk-INE2QCSC.mjs";
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
useOrder,
|
|
88
88
|
useOrderPreview
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
90
90
|
import "./chunk-N4O5FAUC.mjs";
|
|
91
91
|
import "./chunk-LEJUZW3P.mjs";
|
|
92
92
|
import "./chunk-FXYH54JP.mjs";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
Form
|
|
12
12
|
} from "./chunk-OBQI23QM.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-QPKW37WR.mjs";
|
|
14
14
|
import "./chunk-I4OBEAOJ.mjs";
|
|
15
15
|
import "./chunk-HI6URQ7H.mjs";
|
|
16
16
|
import "./chunk-6CLQKVAU.mjs";
|
|
17
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
17
18
|
import "./chunk-HKIF5HVL.mjs";
|
|
18
19
|
import "./chunk-XIVBRONM.mjs";
|
|
19
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
20
20
|
import "./chunk-WAXMT4IY.mjs";
|
|
21
21
|
import "./chunk-DYDGGABK.mjs";
|
|
22
22
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -31,7 +31,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
31
31
|
import {
|
|
32
32
|
useCreateOrderShipment,
|
|
33
33
|
useOrder
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
35
35
|
import "./chunk-N4O5FAUC.mjs";
|
|
36
36
|
import "./chunk-7AX6R6G6.mjs";
|
|
37
37
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -5,15 +5,20 @@ import "./chunk-PYIO3TDQ.mjs";
|
|
|
5
5
|
import {
|
|
6
6
|
formatPercentage
|
|
7
7
|
} from "./chunk-4FM6S5CX.mjs";
|
|
8
|
+
import {
|
|
9
|
+
useCancelClaim,
|
|
10
|
+
useCancelClaimRequest,
|
|
11
|
+
useClaims
|
|
12
|
+
} from "./chunk-F5NZDW7L.mjs";
|
|
8
13
|
import {
|
|
9
14
|
useCancelExchange,
|
|
10
15
|
useCancelExchangeRequest,
|
|
11
16
|
useExchanges
|
|
12
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-F63F3FIT.mjs";
|
|
13
18
|
import {
|
|
14
19
|
useCancelOrderEdit,
|
|
15
20
|
useConfirmOrderEdit
|
|
16
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Z6NHG5LQ.mjs";
|
|
17
22
|
import {
|
|
18
23
|
getLoyaltyPlugin
|
|
19
24
|
} from "./chunk-AMRS4CSX.mjs";
|
|
@@ -27,11 +32,6 @@ import {
|
|
|
27
32
|
getPaymentsFromOrder,
|
|
28
33
|
getReservationsLimitCount
|
|
29
34
|
} from "./chunk-4XSXVVYD.mjs";
|
|
30
|
-
import {
|
|
31
|
-
useCancelClaim,
|
|
32
|
-
useCancelClaimRequest,
|
|
33
|
-
useClaims
|
|
34
|
-
} from "./chunk-4VNR7DND.mjs";
|
|
35
35
|
import {
|
|
36
36
|
getReturnableQuantity
|
|
37
37
|
} from "./chunk-PXZ7QYKX.mjs";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
useCancelReturn,
|
|
43
43
|
useCancelReturnRequest,
|
|
44
44
|
useReturns
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-B3AOQW2B.mjs";
|
|
46
46
|
import {
|
|
47
47
|
getCanceledOrderStatus,
|
|
48
48
|
getOrderFulfillmentStatus,
|
|
@@ -85,13 +85,13 @@ import {
|
|
|
85
85
|
useCapturePayment,
|
|
86
86
|
useMarkPaymentCollectionAsPaid,
|
|
87
87
|
usePlugins
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-QPKW37WR.mjs";
|
|
89
89
|
import "./chunk-I4OBEAOJ.mjs";
|
|
90
90
|
import "./chunk-HI6URQ7H.mjs";
|
|
91
91
|
import "./chunk-6CLQKVAU.mjs";
|
|
92
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
92
93
|
import "./chunk-HKIF5HVL.mjs";
|
|
93
94
|
import "./chunk-XIVBRONM.mjs";
|
|
94
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
95
95
|
import "./chunk-WAXMT4IY.mjs";
|
|
96
96
|
import "./chunk-DYDGGABK.mjs";
|
|
97
97
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
useOrderChanges,
|
|
118
118
|
useOrderLineItems,
|
|
119
119
|
useOrderPreview
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
121
121
|
import {
|
|
122
122
|
useReservationItems
|
|
123
123
|
} from "./chunk-N4O5FAUC.mjs";
|
package/dist/{order-edit-billing-address-IUVC4GSZ.mjs → order-edit-billing-address-3IO7GXIK.mjs}
RENAMED
|
@@ -19,13 +19,13 @@ import "./chunk-DG7J63J2.mjs";
|
|
|
19
19
|
import {
|
|
20
20
|
Form
|
|
21
21
|
} from "./chunk-OBQI23QM.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QPKW37WR.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
24
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
25
|
import "./chunk-6CLQKVAU.mjs";
|
|
26
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
26
27
|
import "./chunk-HKIF5HVL.mjs";
|
|
27
28
|
import "./chunk-XIVBRONM.mjs";
|
|
28
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
29
29
|
import "./chunk-WAXMT4IY.mjs";
|
|
30
30
|
import "./chunk-DYDGGABK.mjs";
|
|
31
31
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -40,7 +40,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
useOrder,
|
|
42
42
|
useUpdateOrder
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
44
44
|
import "./chunk-N4O5FAUC.mjs";
|
|
45
45
|
import "./chunk-7AX6R6G6.mjs";
|
|
46
46
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
Form
|
|
16
16
|
} from "./chunk-OBQI23QM.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-QPKW37WR.mjs";
|
|
18
18
|
import "./chunk-I4OBEAOJ.mjs";
|
|
19
19
|
import "./chunk-HI6URQ7H.mjs";
|
|
20
20
|
import "./chunk-6CLQKVAU.mjs";
|
|
21
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
21
22
|
import "./chunk-HKIF5HVL.mjs";
|
|
22
23
|
import "./chunk-XIVBRONM.mjs";
|
|
23
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
24
24
|
import "./chunk-WAXMT4IY.mjs";
|
|
25
25
|
import "./chunk-DYDGGABK.mjs";
|
|
26
26
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -35,7 +35,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
35
35
|
import {
|
|
36
36
|
useOrder,
|
|
37
37
|
useUpdateOrder
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
39
39
|
import "./chunk-N4O5FAUC.mjs";
|
|
40
40
|
import "./chunk-7AX6R6G6.mjs";
|
|
41
41
|
import "./chunk-N3FCYZV6.mjs";
|
package/dist/{order-edit-shipping-address-GFSRTDFG.mjs → order-edit-shipping-address-QGGMHGBC.mjs}
RENAMED
|
@@ -19,13 +19,13 @@ import "./chunk-DG7J63J2.mjs";
|
|
|
19
19
|
import {
|
|
20
20
|
Form
|
|
21
21
|
} from "./chunk-OBQI23QM.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QPKW37WR.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
24
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
25
|
import "./chunk-6CLQKVAU.mjs";
|
|
26
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
26
27
|
import "./chunk-HKIF5HVL.mjs";
|
|
27
28
|
import "./chunk-XIVBRONM.mjs";
|
|
28
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
29
29
|
import "./chunk-WAXMT4IY.mjs";
|
|
30
30
|
import "./chunk-DYDGGABK.mjs";
|
|
31
31
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -40,7 +40,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
useOrder,
|
|
42
42
|
useUpdateOrder
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
44
44
|
import "./chunk-N4O5FAUC.mjs";
|
|
45
45
|
import "./chunk-7AX6R6G6.mjs";
|
|
46
46
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useOrderTableFilters
|
|
3
|
+
} from "./chunk-35LSPN2U.mjs";
|
|
4
|
+
import "./chunk-MFALVTRQ.mjs";
|
|
5
|
+
import "./chunk-RIV7FKGN.mjs";
|
|
6
|
+
import "./chunk-TDK3JDOB.mjs";
|
|
7
|
+
import "./chunk-FHSC5X62.mjs";
|
|
8
|
+
import "./chunk-XR4GEMGR.mjs";
|
|
9
|
+
import "./chunk-WRSGHGAT.mjs";
|
|
10
|
+
import "./chunk-MOSRJHJ3.mjs";
|
|
11
|
+
import "./chunk-OMC5JCQH.mjs";
|
|
12
|
+
import {
|
|
13
|
+
useOrderTableQuery
|
|
14
|
+
} from "./chunk-IW4TACOD.mjs";
|
|
15
|
+
import "./chunk-R65S6ZZV.mjs";
|
|
16
|
+
import {
|
|
17
|
+
DataTableFilter
|
|
18
|
+
} from "./chunk-GU5PJRPM.mjs";
|
|
19
|
+
import "./chunk-C76H5USB.mjs";
|
|
20
|
+
import "./chunk-DZWH2RV6.mjs";
|
|
21
|
+
import {
|
|
22
|
+
RouteDrawer
|
|
23
|
+
} from "./chunk-XXBP2Z5M.mjs";
|
|
24
|
+
import {
|
|
25
|
+
useRouteModal
|
|
26
|
+
} from "./chunk-42OOM4DJ.mjs";
|
|
27
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
28
|
+
import "./chunk-OBQI23QM.mjs";
|
|
29
|
+
import "./chunk-QPKW37WR.mjs";
|
|
30
|
+
import "./chunk-I4OBEAOJ.mjs";
|
|
31
|
+
import "./chunk-HI6URQ7H.mjs";
|
|
32
|
+
import "./chunk-6CLQKVAU.mjs";
|
|
33
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
34
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
35
|
+
import "./chunk-XIVBRONM.mjs";
|
|
36
|
+
import "./chunk-WAXMT4IY.mjs";
|
|
37
|
+
import "./chunk-DYDGGABK.mjs";
|
|
38
|
+
import "./chunk-LGNTHZ5Y.mjs";
|
|
39
|
+
import "./chunk-CN7JXSGW.mjs";
|
|
40
|
+
import "./chunk-5BQQRHQS.mjs";
|
|
41
|
+
import "./chunk-Y5UO73CH.mjs";
|
|
42
|
+
import "./chunk-5AFMB7XQ.mjs";
|
|
43
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
44
|
+
import "./chunk-A63RZVX6.mjs";
|
|
45
|
+
import "./chunk-HBXV7ENS.mjs";
|
|
46
|
+
import "./chunk-CDORR33H.mjs";
|
|
47
|
+
import {
|
|
48
|
+
useExportOrders
|
|
49
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
50
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
51
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
52
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
53
|
+
import "./chunk-3BF5SC66.mjs";
|
|
54
|
+
import "./chunk-VCSSQVPD.mjs";
|
|
55
|
+
import "./chunk-HP2JH45P.mjs";
|
|
56
|
+
import "./chunk-SQDIZZDW.mjs";
|
|
57
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
58
|
+
import "./chunk-FXYH54JP.mjs";
|
|
59
|
+
import "./chunk-774WSTCC.mjs";
|
|
60
|
+
import "./chunk-NFEK63OE.mjs";
|
|
61
|
+
import "./chunk-QZ7TP4HQ.mjs";
|
|
62
|
+
|
|
63
|
+
// src/routes/orders/order-export/order-export.tsx
|
|
64
|
+
import { Button, Heading as Heading2, toast } from "@medusajs/ui";
|
|
65
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
66
|
+
|
|
67
|
+
// src/routes/orders/order-export/components/export-filters.tsx
|
|
68
|
+
import { Heading, Text } from "@medusajs/ui";
|
|
69
|
+
import { useTranslation } from "react-i18next";
|
|
70
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
71
|
+
var ExportFilters = () => {
|
|
72
|
+
const { t } = useTranslation();
|
|
73
|
+
const filters = useOrderTableFilters();
|
|
74
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", children: t("orders.export.filters.title") }),
|
|
76
|
+
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("orders.export.filters.description") }),
|
|
77
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(DataTableFilter, { filters, readonly: true }) })
|
|
78
|
+
] });
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// src/routes/orders/order-export/order-export.tsx
|
|
82
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
83
|
+
var OrderExport = () => {
|
|
84
|
+
const { t } = useTranslation2();
|
|
85
|
+
return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
|
|
86
|
+
/* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
|
|
87
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { children: t("orders.export.header") }) }),
|
|
88
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("orders.export.description") })
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ jsx2(OrderExportContent, {})
|
|
91
|
+
] });
|
|
92
|
+
};
|
|
93
|
+
var OrderExportContent = () => {
|
|
94
|
+
const { t } = useTranslation2();
|
|
95
|
+
const { searchParams } = useOrderTableQuery({});
|
|
96
|
+
const { mutateAsync } = useExportOrders(searchParams);
|
|
97
|
+
const { handleSuccess } = useRouteModal();
|
|
98
|
+
const handleExportRequest = async () => {
|
|
99
|
+
await mutateAsync(searchParams, {
|
|
100
|
+
onSuccess: () => {
|
|
101
|
+
toast.info(t("orders.export.success.title"), {
|
|
102
|
+
description: t("orders.export.success.description")
|
|
103
|
+
});
|
|
104
|
+
handleSuccess();
|
|
105
|
+
},
|
|
106
|
+
onError: (err) => {
|
|
107
|
+
toast.error(err.message);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
112
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Body, { children: /* @__PURE__ */ jsx2(ExportFilters, {}) }),
|
|
113
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
114
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx2(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
115
|
+
/* @__PURE__ */ jsx2(Button, { onClick: handleExportRequest, size: "small", children: t("actions.export") })
|
|
116
|
+
] }) })
|
|
117
|
+
] });
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
OrderExport as Component
|
|
121
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderTableColumns
|
|
3
3
|
} from "./chunk-7R743WZ6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useOrderTableFilters
|
|
6
|
+
} from "./chunk-35LSPN2U.mjs";
|
|
4
7
|
import {
|
|
5
8
|
ConfigurableDataTable,
|
|
6
9
|
createTableAdapter,
|
|
@@ -47,15 +50,11 @@ import "./chunk-S4DMV3ZT.mjs";
|
|
|
47
50
|
import "./chunk-SUYYSKCB.mjs";
|
|
48
51
|
import {
|
|
49
52
|
useOrders
|
|
50
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
51
54
|
import "./chunk-N4O5FAUC.mjs";
|
|
52
|
-
import
|
|
53
|
-
useSalesChannels
|
|
54
|
-
} from "./chunk-N3FCYZV6.mjs";
|
|
55
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
55
56
|
import "./chunk-3BF5SC66.mjs";
|
|
56
|
-
import
|
|
57
|
-
useRegions
|
|
58
|
-
} from "./chunk-HP2JH45P.mjs";
|
|
57
|
+
import "./chunk-HP2JH45P.mjs";
|
|
59
58
|
import "./chunk-SQDIZZDW.mjs";
|
|
60
59
|
import "./chunk-LEJUZW3P.mjs";
|
|
61
60
|
import "./chunk-FXYH54JP.mjs";
|
|
@@ -64,68 +63,14 @@ import "./chunk-NFEK63OE.mjs";
|
|
|
64
63
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
65
64
|
|
|
66
65
|
// src/routes/orders/order-list/components/order-list-table/order-list-table.tsx
|
|
67
|
-
import { Container, Heading } from "@medusajs/ui";
|
|
66
|
+
import { Button, Container, Heading } from "@medusajs/ui";
|
|
68
67
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
69
|
-
import { useTranslation as
|
|
70
|
-
|
|
71
|
-
// src/routes/orders/order-list/components/order-list-table/use-order-table-filters.tsx
|
|
72
|
-
import { useMemo } from "react";
|
|
73
|
-
import { useTranslation } from "react-i18next";
|
|
74
|
-
var useOrderTableFilters = () => {
|
|
75
|
-
const { t } = useTranslation();
|
|
76
|
-
const { regions } = useRegions({
|
|
77
|
-
limit: 1e3,
|
|
78
|
-
fields: "id,name"
|
|
79
|
-
});
|
|
80
|
-
const { sales_channels } = useSalesChannels({
|
|
81
|
-
limit: 1e3,
|
|
82
|
-
fields: "id,name"
|
|
83
|
-
});
|
|
84
|
-
return useMemo(() => {
|
|
85
|
-
const filters = [
|
|
86
|
-
{
|
|
87
|
-
key: "created_at",
|
|
88
|
-
label: t("fields.createdAt"),
|
|
89
|
-
type: "date"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
key: "updated_at",
|
|
93
|
-
label: t("fields.updatedAt"),
|
|
94
|
-
type: "date"
|
|
95
|
-
}
|
|
96
|
-
];
|
|
97
|
-
if (regions?.length) {
|
|
98
|
-
filters.push({
|
|
99
|
-
key: "region_id",
|
|
100
|
-
label: t("fields.region"),
|
|
101
|
-
type: "select",
|
|
102
|
-
multiple: true,
|
|
103
|
-
searchable: true,
|
|
104
|
-
options: regions.map((r) => ({
|
|
105
|
-
label: r.name,
|
|
106
|
-
value: r.id
|
|
107
|
-
}))
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
if (sales_channels?.length) {
|
|
111
|
-
filters.push({
|
|
112
|
-
key: "sales_channel_id",
|
|
113
|
-
label: t("fields.salesChannel"),
|
|
114
|
-
type: "select",
|
|
115
|
-
multiple: true,
|
|
116
|
-
searchable: true,
|
|
117
|
-
options: sales_channels.map((s) => ({
|
|
118
|
-
label: s.name,
|
|
119
|
-
value: s.id
|
|
120
|
-
}))
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
return filters;
|
|
124
|
-
}, [regions, sales_channels, t]);
|
|
125
|
-
};
|
|
68
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
69
|
+
import { Link, Outlet as Outlet2, useLocation as useLocation2 } from "react-router-dom";
|
|
126
70
|
|
|
127
71
|
// src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx
|
|
128
|
-
import { useTranslation
|
|
72
|
+
import { useTranslation } from "react-i18next";
|
|
73
|
+
import { Outlet, useLocation } from "react-router-dom";
|
|
129
74
|
|
|
130
75
|
// src/routes/orders/order-list/components/order-list-table/order-table-adapter.tsx
|
|
131
76
|
function createOrderTableAdapter() {
|
|
@@ -176,18 +121,24 @@ function useOrderTableAdapter() {
|
|
|
176
121
|
}
|
|
177
122
|
|
|
178
123
|
// src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx
|
|
179
|
-
import { jsx } from "react/jsx-runtime";
|
|
124
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
180
125
|
var ConfigurableOrderListTable = () => {
|
|
181
|
-
const { t } =
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
126
|
+
const { t } = useTranslation();
|
|
127
|
+
const location = useLocation();
|
|
128
|
+
const adapter = useOrderTableAdapter();
|
|
129
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
|
+
/* @__PURE__ */ jsx(
|
|
131
|
+
ConfigurableDataTable,
|
|
132
|
+
{
|
|
133
|
+
adapter,
|
|
134
|
+
heading: t("orders.domain"),
|
|
135
|
+
actions: [
|
|
136
|
+
{ label: t("actions.export"), to: `export${location.search}` }
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ jsx(Outlet, {})
|
|
141
|
+
] });
|
|
191
142
|
};
|
|
192
143
|
|
|
193
144
|
// src/routes/orders/order-list/const.ts
|
|
@@ -209,10 +160,11 @@ var DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
|
|
|
209
160
|
)},${DEFAULT_RELATIONS.join(",")}`;
|
|
210
161
|
|
|
211
162
|
// src/routes/orders/order-list/components/order-list-table/order-list-table.tsx
|
|
212
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
163
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
213
164
|
var PAGE_SIZE = 20;
|
|
214
165
|
var OrderListTable = () => {
|
|
215
|
-
const { t } =
|
|
166
|
+
const { t } = useTranslation2();
|
|
167
|
+
const location = useLocation2();
|
|
216
168
|
const isViewConfigEnabled = useFeatureFlag("view_configurations");
|
|
217
169
|
if (isViewConfigEnabled) {
|
|
218
170
|
return /* @__PURE__ */ jsx2(ConfigurableOrderListTable, {});
|
|
@@ -241,8 +193,11 @@ var OrderListTable = () => {
|
|
|
241
193
|
if (isError) {
|
|
242
194
|
throw error;
|
|
243
195
|
}
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", children: [
|
|
197
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
198
|
+
/* @__PURE__ */ jsx2(Heading, { children: t("orders.domain") }),
|
|
199
|
+
/* @__PURE__ */ jsx2(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx2(Link, { to: `export${location.search}`, children: t("actions.export") }) })
|
|
200
|
+
] }),
|
|
246
201
|
/* @__PURE__ */ jsx2(
|
|
247
202
|
_DataTable,
|
|
248
203
|
{
|
|
@@ -265,7 +220,8 @@ var OrderListTable = () => {
|
|
|
265
220
|
message: t("orders.list.noRecordsMessage")
|
|
266
221
|
}
|
|
267
222
|
}
|
|
268
|
-
)
|
|
223
|
+
),
|
|
224
|
+
/* @__PURE__ */ jsx2(Outlet2, {})
|
|
269
225
|
] });
|
|
270
226
|
};
|
|
271
227
|
|