@medusajs/dashboard 2.12.2-snapshot-20251208134209 → 2.12.2-snapshot-20251208150616
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-JQBB7UNB.mjs → api-key-management-detail-MVHIH2SV.mjs} +2 -2
- package/dist/app.css +0 -3
- package/dist/app.js +10268 -10178
- package/dist/app.mjs +3 -3
- package/dist/{campaign-detail-DLPAADFC.mjs → campaign-detail-3CZRHOCA.mjs} +2 -2
- package/dist/{categories-metadata-IN4T3BQY.mjs → categories-metadata-F2J34XOR.mjs} +2 -2
- package/dist/{category-detail-MJYZEZJX.mjs → category-detail-BDGDHOER.mjs} +5 -5
- package/dist/{category-products-UH7BGTSC.mjs → category-products-DDSNMEDD.mjs} +5 -5
- package/dist/chunk-35LSPN2U.mjs +66 -0
- package/dist/{chunk-6BP5RSIK.mjs → chunk-57SBEKY2.mjs} +1 -1
- package/dist/{chunk-3HRJ5XSF.mjs → chunk-APVDSL3C.mjs} +1 -1
- package/dist/{chunk-EQBVGH3N.mjs → chunk-B3AOQW2B.mjs} +1 -1
- package/dist/{chunk-XBJCK4CT.mjs → chunk-CCVHVJLI.mjs} +8 -8
- package/dist/{chunk-SVJZUHGT.mjs → chunk-CIBBX5AE.mjs} +122 -133
- package/dist/{chunk-4VNR7DND.mjs → chunk-F5NZDW7L.mjs} +2 -2
- package/dist/{chunk-JJGE3EV6.mjs → chunk-F63F3FIT.mjs} +2 -2
- package/dist/{chunk-4GPZRJUJ.mjs → chunk-I3IXYIVT.mjs} +4 -4
- package/dist/{chunk-73EHKWNI.mjs → chunk-PWZRXDU2.mjs} +1 -1
- package/dist/{chunk-CPF5RDPF.mjs → chunk-R3O5PHUJ.mjs} +1 -1
- package/dist/{chunk-GN6OCHP4.mjs → chunk-RU4ZS47V.mjs} +11 -1
- package/dist/{chunk-XHDXZAOR.mjs → chunk-TIAJ76TK.mjs} +1 -1
- package/dist/{chunk-FIFVOKTK.mjs → chunk-Z6NHG5LQ.mjs} +1 -1
- package/dist/{collection-add-products-F7GTK2YV.mjs → collection-add-products-PJWYCDQ3.mjs} +5 -5
- package/dist/{collection-detail-EZ6UCFMP.mjs → collection-detail-UYR52HFV.mjs} +5 -5
- package/dist/{collection-list-YUECGEOO.mjs → collection-list-FN727ZY6.mjs} +12 -12
- package/dist/{collection-metadata-XYMR7UIM.mjs → collection-metadata-F2EM2O4U.mjs} +2 -2
- package/dist/{customer-detail-7B35STSY.mjs → customer-detail-UH3Q65CJ.mjs} +5 -5
- package/dist/{customer-group-detail-TY4AFNQE.mjs → customer-group-detail-SJGL4IYR.mjs} +5 -5
- package/dist/{customer-group-list-CELWB4WM.mjs → customer-group-list-HKKWTD7T.mjs} +2 -2
- package/dist/{customers-add-customer-group-524NN3AG.mjs → customers-add-customer-group-TQA5B4CN.mjs} +5 -5
- package/dist/{edit-rules-K2UXPE62.mjs → edit-rules-EDKN3AWF.mjs} +2 -2
- package/dist/en.json +12 -0
- package/dist/{inventory-create-SYD3QXIB.mjs → inventory-create-EFGTPSPO.mjs} +2 -2
- package/dist/{inventory-detail-IWCB7FND.mjs → inventory-detail-HPHXGBKE.mjs} +2 -2
- package/dist/{inventory-metadata-YSDEZ4B7.mjs → inventory-metadata-SVFWF53J.mjs} +2 -2
- package/dist/{inventory-stock-JLJEWPUM.mjs → inventory-stock-KD5LCUX3.mjs} +2 -2
- package/dist/{location-detail-LNQUKDLQ.mjs → location-detail-7XJCPZXW.mjs} +6 -6
- package/dist/{location-fulfillment-providers-566Z6CCG.mjs → location-fulfillment-providers-N2IYLT7J.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-VENETBCK.mjs → location-service-zone-shipping-option-create-RN4YET76.mjs} +2 -2
- package/dist/{login-R5C7HZ2A.mjs → login-ARN4TVFT.mjs} +2 -2
- package/dist/{order-allocate-items-W7HUKJ6F.mjs → order-allocate-items-2BSD5BQW.mjs} +1 -1
- package/dist/{order-create-claim-M5NNIQWR.mjs → order-create-claim-32TTNI3C.mjs} +8 -8
- package/dist/{order-create-edit-A2TMNFRS.mjs → order-create-edit-FKK7CWJJ.mjs} +3 -3
- package/dist/{order-create-exchange-CIB7URQD.mjs → order-create-exchange-NVT3N6P3.mjs} +14 -14
- package/dist/{order-create-fulfillment-YC4GFUTQ.mjs → order-create-fulfillment-E4U5NUNB.mjs} +2 -2
- package/dist/{order-create-refund-EE7SWYLL.mjs → order-create-refund-7VN7JAG6.mjs} +2 -2
- package/dist/{order-create-return-UWF4YKOP.mjs → order-create-return-PGTGLMCT.mjs} +6 -6
- package/dist/{order-create-shipment-DNVN7NYA.mjs → order-create-shipment-HO5ACO76.mjs} +2 -2
- package/dist/{order-detail-FZ7PM4K3.mjs → order-detail-EKFSSFTX.mjs} +10 -10
- package/dist/{order-edit-billing-address-XH37NDI5.mjs → order-edit-billing-address-7YSLWSB6.mjs} +2 -2
- package/dist/{order-edit-email-NZE32DBD.mjs → order-edit-email-D4XO7MGG.mjs} +2 -2
- package/dist/{order-edit-shipping-address-KMLTH4SM.mjs → order-edit-shipping-address-DR4QNO76.mjs} +2 -2
- package/dist/order-export-KSLBMRMM.mjs +119 -0
- package/dist/{order-list-NT5PQ2WS.mjs → order-list-HBTLUSS2.mjs} +19 -70
- package/dist/{order-metadata-VWNNC7RO.mjs → order-metadata-XBJZVGRO.mjs} +2 -2
- package/dist/{order-receive-return-O5P477EZ.mjs → order-receive-return-XZOE5MHF.mjs} +3 -3
- package/dist/{order-request-transfer-XOAINCAS.mjs → order-request-transfer-DYWFNRVA.mjs} +2 -2
- package/dist/{price-list-configuration-N2WC2QQP.mjs → price-list-configuration-WHSUMV5I.mjs} +2 -2
- package/dist/{price-list-create-NOTXIPOJ.mjs → price-list-create-JJCL4OTN.mjs} +12 -11
- package/dist/{price-list-detail-BD2QQKAR.mjs → price-list-detail-WIY2LNHC.mjs} +5 -5
- package/dist/{price-list-prices-add-25FOFNBS.mjs → price-list-prices-add-Q7OSNE2L.mjs} +5 -5
- package/dist/{product-attributes-QTM5XG44.mjs → product-attributes-6GUDPZNO.mjs} +3 -3
- package/dist/{product-create-4EPPP2EJ.mjs → product-create-5AWC5LYJ.mjs} +3 -3
- package/dist/{product-create-variant-YBJ2ZVUG.mjs → product-create-variant-WDOBNQBA.mjs} +2 -2
- package/dist/{product-detail-SUWEBER4.mjs → product-detail-MSNKG672.mjs} +3 -3
- package/dist/{product-edit-WMA4R3RV.mjs → product-edit-IIR2OQ3W.mjs} +3 -3
- package/dist/{product-export-H4ZOJWIB.mjs → product-export-SSD4GDDD.mjs} +12 -12
- package/dist/{product-image-variants-edit-3YEXAIKS.mjs → product-image-variants-edit-HM66BOGK.mjs} +2 -2
- package/dist/{product-import-PPULHBTB.mjs → product-import-QWNYJF3O.mjs} +2 -2
- package/dist/{product-list-NPLVU37E.mjs → product-list-I5O5LFEC.mjs} +5 -5
- package/dist/{product-metadata-SS7DIDYB.mjs → product-metadata-KH3EQCAB.mjs} +2 -2
- package/dist/{product-organization-SA6DTKLT.mjs → product-organization-PHQLEHZJ.mjs} +3 -3
- package/dist/{product-stock-3A22RDIR.mjs → product-stock-ZJRZ65WB.mjs} +2 -2
- package/dist/{product-tag-create-XIWCLMRJ.mjs → product-tag-create-D4LTDBT5.mjs} +2 -2
- package/dist/{product-tag-detail-NVV6QQMN.mjs → product-tag-detail-UL32QUFD.mjs} +14 -14
- package/dist/{product-tag-edit-H7YA4HEV.mjs → product-tag-edit-7NSMDMUG.mjs} +2 -2
- package/dist/{product-tag-list-LGVKUJLL.mjs → product-tag-list-NHHL2I5B.mjs} +14 -14
- package/dist/{product-tag-metadata-JBYEI3M4.mjs → product-tag-metadata-TZF2VNW7.mjs} +2 -2
- package/dist/{product-type-detail-S6YG37AR.mjs → product-type-detail-VT5OWDGP.mjs} +5 -5
- package/dist/{product-type-metadata-LRTMJT2P.mjs → product-type-metadata-NFY7YHJL.mjs} +2 -2
- package/dist/{product-variant-detail-GIHXE5YG.mjs → product-variant-detail-3GBFW7I7.mjs} +2 -2
- package/dist/{product-variant-edit-36MBVNPO.mjs → product-variant-edit-HFFCFKNS.mjs} +2 -2
- package/dist/{product-variant-metadata-LH7YGFW4.mjs → product-variant-metadata-WTAODBYU.mjs} +2 -2
- package/dist/{promotion-create-XOB4S6H5.mjs → promotion-create-GBK4VRSX.mjs} +8 -8
- package/dist/{promotion-detail-YR4MNPNS.mjs → promotion-detail-HX2PR765.mjs} +2 -2
- package/dist/{refund-reason-create-LSAPI6XB.mjs → refund-reason-create-36LXE3SD.mjs} +2 -2
- package/dist/{refund-reason-edit-R4RV6BFG.mjs → refund-reason-edit-J2PO2IY4.mjs} +2 -2
- package/dist/{refund-reason-list-MPTKOWX7.mjs → refund-reason-list-RMHSTV3G.mjs} +3 -3
- package/dist/{region-metadata-4IMJHPZO.mjs → region-metadata-IHSNACNW.mjs} +2 -2
- package/dist/{reservation-detail-HWKSPGBU.mjs → reservation-detail-MKB2IT3S.mjs} +2 -2
- package/dist/{reservation-metadata-IIX7FU74.mjs → reservation-metadata-CYC72SJW.mjs} +2 -2
- package/dist/return-reason-list-IFFIDA5O.mjs +1 -1
- package/dist/{sales-channel-add-products-VH7V4XWO.mjs → sales-channel-add-products-55WNY2W2.mjs} +5 -5
- package/dist/{sales-channel-detail-VMRKBYCG.mjs → sales-channel-detail-VPCBNPO2.mjs} +5 -5
- package/dist/{sales-channel-list-U7IVFVYC.mjs → sales-channel-list-SBG2NFTV.mjs} +2 -2
- package/dist/{sales-channel-metadata-5EO4EB6E.mjs → sales-channel-metadata-7E5ZGMRB.mjs} +2 -2
- package/dist/{shipping-option-type-create-DJEHSOSG.mjs → shipping-option-type-create-PN5PYK2K.mjs} +2 -2
- package/dist/{shipping-option-type-detail-GWULT3WO.mjs → shipping-option-type-detail-TA7D3UVD.mjs} +3 -3
- package/dist/{shipping-option-type-edit-FSXPDBLI.mjs → shipping-option-type-edit-KP3KMVGK.mjs} +2 -2
- package/dist/{shipping-option-type-list-DAKNQ3N6.mjs → shipping-option-type-list-J3XI6I76.mjs} +3 -3
- package/dist/{shipping-profile-metadata-37GNDVFQ.mjs → shipping-profile-metadata-SJUTJ2NY.mjs} +2 -2
- package/dist/{store-detail-TTHDKQYD.mjs → store-detail-IIFZ7UND.mjs} +2 -2
- package/dist/{store-metadata-KLQUPUQ4.mjs → store-metadata-WLNYWKI6.mjs} +2 -2
- package/dist/{tax-region-create-FIGRJOC5.mjs → tax-region-create-YWNJ4XH3.mjs} +2 -2
- package/dist/{tax-region-detail-AXT4TMZB.mjs → tax-region-detail-YWJ27M7F.mjs} +16 -16
- package/dist/{tax-region-edit-UOGPNA25.mjs → tax-region-edit-QYT3LP5H.mjs} +2 -2
- package/dist/{tax-region-province-detail-4YCWNZPW.mjs → tax-region-province-detail-HPGYHOPY.mjs} +16 -16
- package/dist/{tax-region-tax-override-create-FHUXLTPK.mjs → tax-region-tax-override-create-SVMSORW3.mjs} +13 -13
- package/dist/{tax-region-tax-override-edit-GQYS6HCW.mjs → tax-region-tax-override-edit-4ZHIAP2E.mjs} +14 -14
- package/dist/{user-metadata-RU3Z3BLD.mjs → user-metadata-BODYS2FN.mjs} +2 -2
- package/dist/{workflow-execution-detail-R2FDAUMD.mjs → workflow-execution-detail-CQCTPUMI.mjs} +2 -2
- package/package.json +9 -9
- package/src/components/utilities/error-boundary/error-boundary.tsx +0 -36
- 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-create-claim/components/claim-create-form/claim-create-form.tsx +11 -4
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +11 -4
- package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +11 -4
- 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/order-list-table.tsx +8 -2
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-products-form.tsx +1 -0
- package/dist/{chunk-ACJ3PPQJ.mjs → chunk-2QH2TBJ2.mjs} +3 -3
- package/dist/{customer-group-add-customers-QU4Q56SS.mjs → customer-group-add-customers-2Y2GVCDV.mjs} +3 -3
- package/dist/{customer-list-ZXCGIXJC.mjs → customer-list-TG4D4QOT.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-edit-TTVV3BSV.mjs → location-service-zone-shipping-option-edit-LXZ77VD7.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
|
@@ -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";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-OBQI23QM.mjs";
|
|
60
60
|
import {
|
|
61
61
|
useVariants
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-57SBEKY2.mjs";
|
|
63
63
|
import "./chunk-I4OBEAOJ.mjs";
|
|
64
64
|
import "./chunk-HI6URQ7H.mjs";
|
|
65
65
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -80,7 +80,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
80
80
|
import {
|
|
81
81
|
useOrder,
|
|
82
82
|
useOrderPreview
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
84
84
|
import "./chunk-N4O5FAUC.mjs";
|
|
85
85
|
import "./chunk-7AX6R6G6.mjs";
|
|
86
86
|
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";
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "./chunk-OBQI23QM.mjs";
|
|
93
93
|
import {
|
|
94
94
|
useVariants
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-57SBEKY2.mjs";
|
|
96
96
|
import "./chunk-I4OBEAOJ.mjs";
|
|
97
97
|
import "./chunk-HI6URQ7H.mjs";
|
|
98
98
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
useOrderPreview,
|
|
120
120
|
useOrderShippingOptions,
|
|
121
121
|
useUpdateOrderChange
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
123
123
|
import "./chunk-N4O5FAUC.mjs";
|
|
124
124
|
import "./chunk-7AX6R6G6.mjs";
|
|
125
125
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -1793,6 +1793,9 @@ var ExchangeCreateForm = ({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
}, []);
|
|
1796
|
+
const estimatedDifference = preview.summary.pending_difference - inboundPreviewItems.reduce((acc, item) => {
|
|
1797
|
+
return acc + item.total;
|
|
1798
|
+
}, 0);
|
|
1796
1799
|
const inboundShippingTotal = useMemo6(() => {
|
|
1797
1800
|
const method = preview.shipping_methods.find(
|
|
1798
1801
|
(sm) => !!sm.actions?.find((a) => a.action === "SHIPPING_ADD" && !!a.return_id)
|
|
@@ -1969,10 +1972,7 @@ var ExchangeCreateForm = ({
|
|
|
1969
1972
|
] }),
|
|
1970
1973
|
/* @__PURE__ */ jsxs5("div", { className: "mt-4 flex items-center justify-between border-t border-dotted pt-4", children: [
|
|
1971
1974
|
/* @__PURE__ */ jsx9("span", { className: "txt-small font-medium", children: t("orders.exchanges.refundAmount") }),
|
|
1972
|
-
/* @__PURE__ */ jsx9("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
1973
|
-
preview.summary.pending_difference,
|
|
1974
|
-
order.currency_code
|
|
1975
|
-
) })
|
|
1975
|
+
/* @__PURE__ */ jsx9("span", { className: "txt-small font-medium", children: getStylizedAmount(estimatedDifference, order.currency_code) })
|
|
1976
1976
|
] })
|
|
1977
1977
|
] }),
|
|
1978
1978
|
hasPromotions && /* @__PURE__ */ jsx9("div", { className: "bg-ui-bg-field mt-4 rounded-lg border py-2 pl-2 pr-4", children: /* @__PURE__ */ jsx9(
|
package/dist/{order-create-fulfillment-YC4GFUTQ.mjs → order-create-fulfillment-E4U5NUNB.mjs}
RENAMED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
Form
|
|
29
29
|
} from "./chunk-OBQI23QM.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-57SBEKY2.mjs";
|
|
31
31
|
import "./chunk-I4OBEAOJ.mjs";
|
|
32
32
|
import "./chunk-HI6URQ7H.mjs";
|
|
33
33
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -50,7 +50,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
50
50
|
import {
|
|
51
51
|
useCreateOrderFulfillment,
|
|
52
52
|
useOrder
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
54
54
|
import {
|
|
55
55
|
useReservationItems
|
|
56
56
|
} from "./chunk-N4O5FAUC.mjs";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
usePlugins,
|
|
38
38
|
useRefundPayment,
|
|
39
39
|
useRefundReasons
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-57SBEKY2.mjs";
|
|
41
41
|
import "./chunk-I4OBEAOJ.mjs";
|
|
42
42
|
import "./chunk-HI6URQ7H.mjs";
|
|
43
43
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -58,7 +58,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
58
58
|
import {
|
|
59
59
|
useCreateOrderCreditLine,
|
|
60
60
|
useOrder
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
62
62
|
import "./chunk-N4O5FAUC.mjs";
|
|
63
63
|
import "./chunk-7AX6R6G6.mjs";
|
|
64
64
|
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";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
import {
|
|
85
85
|
useOrder,
|
|
86
86
|
useOrderPreview
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
88
88
|
import "./chunk-N4O5FAUC.mjs";
|
|
89
89
|
import "./chunk-LEJUZW3P.mjs";
|
|
90
90
|
import "./chunk-FXYH54JP.mjs";
|
|
@@ -926,6 +926,9 @@ var ReturnCreateForm = ({
|
|
|
926
926
|
);
|
|
927
927
|
return method?.total || 0;
|
|
928
928
|
}, [preview.shipping_methods]);
|
|
929
|
+
const estimatedDifference = preview.summary.pending_difference - previewItems.reduce((acc, item) => {
|
|
930
|
+
return acc + item.total;
|
|
931
|
+
}, 0);
|
|
929
932
|
return /* @__PURE__ */ jsx4(
|
|
930
933
|
RouteFocusModal.Form,
|
|
931
934
|
{
|
|
@@ -1173,10 +1176,7 @@ var ReturnCreateForm = ({
|
|
|
1173
1176
|
] }),
|
|
1174
1177
|
/* @__PURE__ */ jsxs2("div", { className: "mt-4 flex items-center justify-between border-t border-dotted pt-4", children: [
|
|
1175
1178
|
/* @__PURE__ */ jsx4("span", { className: "txt-small font-medium", children: t("orders.returns.estDifference") }),
|
|
1176
|
-
/* @__PURE__ */ jsx4("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
1177
|
-
preview.summary.pending_difference,
|
|
1178
|
-
order.currency_code
|
|
1179
|
-
) })
|
|
1179
|
+
/* @__PURE__ */ jsx4("span", { className: "txt-small font-medium", children: getStylizedAmount(estimatedDifference, order.currency_code) })
|
|
1180
1180
|
] })
|
|
1181
1181
|
] }),
|
|
1182
1182
|
/* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-field mt-8 rounded-lg border py-2 pl-2 pr-4", children: /* @__PURE__ */ jsx4(
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
Form
|
|
11
11
|
} from "./chunk-OBQI23QM.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-57SBEKY2.mjs";
|
|
13
13
|
import "./chunk-I4OBEAOJ.mjs";
|
|
14
14
|
import "./chunk-HI6URQ7H.mjs";
|
|
15
15
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -30,7 +30,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
30
30
|
import {
|
|
31
31
|
useCreateOrderShipment,
|
|
32
32
|
useOrder
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
34
34
|
import "./chunk-N4O5FAUC.mjs";
|
|
35
35
|
import "./chunk-7AX6R6G6.mjs";
|
|
36
36
|
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,7 +85,7 @@ import {
|
|
|
85
85
|
useCapturePayment,
|
|
86
86
|
useMarkPaymentCollectionAsPaid,
|
|
87
87
|
usePlugins
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-57SBEKY2.mjs";
|
|
89
89
|
import "./chunk-I4OBEAOJ.mjs";
|
|
90
90
|
import "./chunk-HI6URQ7H.mjs";
|
|
91
91
|
import "./chunk-6CLQKVAU.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-XH37NDI5.mjs → order-edit-billing-address-7YSLWSB6.mjs}
RENAMED
|
@@ -17,7 +17,7 @@ import "./chunk-DG7J63J2.mjs";
|
|
|
17
17
|
import {
|
|
18
18
|
Form
|
|
19
19
|
} from "./chunk-OBQI23QM.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-57SBEKY2.mjs";
|
|
21
21
|
import "./chunk-I4OBEAOJ.mjs";
|
|
22
22
|
import "./chunk-HI6URQ7H.mjs";
|
|
23
23
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -38,7 +38,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
38
38
|
import {
|
|
39
39
|
useOrder,
|
|
40
40
|
useUpdateOrder
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
42
42
|
import "./chunk-N4O5FAUC.mjs";
|
|
43
43
|
import "./chunk-7AX6R6G6.mjs";
|
|
44
44
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
Form
|
|
14
14
|
} from "./chunk-OBQI23QM.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-57SBEKY2.mjs";
|
|
16
16
|
import "./chunk-I4OBEAOJ.mjs";
|
|
17
17
|
import "./chunk-HI6URQ7H.mjs";
|
|
18
18
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -33,7 +33,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
useOrder,
|
|
35
35
|
useUpdateOrder
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
37
37
|
import "./chunk-N4O5FAUC.mjs";
|
|
38
38
|
import "./chunk-7AX6R6G6.mjs";
|
|
39
39
|
import "./chunk-N3FCYZV6.mjs";
|
package/dist/{order-edit-shipping-address-KMLTH4SM.mjs → order-edit-shipping-address-DR4QNO76.mjs}
RENAMED
|
@@ -17,7 +17,7 @@ import "./chunk-DG7J63J2.mjs";
|
|
|
17
17
|
import {
|
|
18
18
|
Form
|
|
19
19
|
} from "./chunk-OBQI23QM.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-57SBEKY2.mjs";
|
|
21
21
|
import "./chunk-I4OBEAOJ.mjs";
|
|
22
22
|
import "./chunk-HI6URQ7H.mjs";
|
|
23
23
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -38,7 +38,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
38
38
|
import {
|
|
39
39
|
useOrder,
|
|
40
40
|
useUpdateOrder
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
42
42
|
import "./chunk-N4O5FAUC.mjs";
|
|
43
43
|
import "./chunk-7AX6R6G6.mjs";
|
|
44
44
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
useRouteModal
|
|
24
|
+
} from "./chunk-AERWK3TJ.mjs";
|
|
25
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
26
|
+
import "./chunk-OBQI23QM.mjs";
|
|
27
|
+
import "./chunk-57SBEKY2.mjs";
|
|
28
|
+
import "./chunk-I4OBEAOJ.mjs";
|
|
29
|
+
import "./chunk-HI6URQ7H.mjs";
|
|
30
|
+
import "./chunk-6CLQKVAU.mjs";
|
|
31
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
32
|
+
import "./chunk-XIVBRONM.mjs";
|
|
33
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
34
|
+
import "./chunk-WAXMT4IY.mjs";
|
|
35
|
+
import "./chunk-DYDGGABK.mjs";
|
|
36
|
+
import "./chunk-LGNTHZ5Y.mjs";
|
|
37
|
+
import "./chunk-CN7JXSGW.mjs";
|
|
38
|
+
import "./chunk-5BQQRHQS.mjs";
|
|
39
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
40
|
+
import "./chunk-5AFMB7XQ.mjs";
|
|
41
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
42
|
+
import "./chunk-A63RZVX6.mjs";
|
|
43
|
+
import "./chunk-HBXV7ENS.mjs";
|
|
44
|
+
import "./chunk-CDORR33H.mjs";
|
|
45
|
+
import {
|
|
46
|
+
useExportOrders
|
|
47
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
48
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
49
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
50
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
51
|
+
import "./chunk-3BF5SC66.mjs";
|
|
52
|
+
import "./chunk-VCSSQVPD.mjs";
|
|
53
|
+
import "./chunk-HP2JH45P.mjs";
|
|
54
|
+
import "./chunk-SQDIZZDW.mjs";
|
|
55
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
56
|
+
import "./chunk-FXYH54JP.mjs";
|
|
57
|
+
import "./chunk-774WSTCC.mjs";
|
|
58
|
+
import "./chunk-NFEK63OE.mjs";
|
|
59
|
+
import "./chunk-QZ7TP4HQ.mjs";
|
|
60
|
+
|
|
61
|
+
// src/routes/orders/order-export/order-export.tsx
|
|
62
|
+
import { Button, Heading as Heading2, toast } from "@medusajs/ui";
|
|
63
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
64
|
+
|
|
65
|
+
// src/routes/orders/order-export/components/export-filters.tsx
|
|
66
|
+
import { Heading, Text } from "@medusajs/ui";
|
|
67
|
+
import { useTranslation } from "react-i18next";
|
|
68
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
69
|
+
var ExportFilters = () => {
|
|
70
|
+
const { t } = useTranslation();
|
|
71
|
+
const filters = useOrderTableFilters();
|
|
72
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
73
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", children: t("orders.export.filters.title") }),
|
|
74
|
+
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("orders.export.filters.description") }),
|
|
75
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(DataTableFilter, { filters, readonly: true }) })
|
|
76
|
+
] });
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// src/routes/orders/order-export/order-export.tsx
|
|
80
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
81
|
+
var OrderExport = () => {
|
|
82
|
+
const { t } = useTranslation2();
|
|
83
|
+
return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
|
|
84
|
+
/* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
|
|
85
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { children: t("orders.export.header") }) }),
|
|
86
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("orders.export.description") })
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ jsx2(OrderExportContent, {})
|
|
89
|
+
] });
|
|
90
|
+
};
|
|
91
|
+
var OrderExportContent = () => {
|
|
92
|
+
const { t } = useTranslation2();
|
|
93
|
+
const { searchParams } = useOrderTableQuery({});
|
|
94
|
+
const { mutateAsync } = useExportOrders(searchParams);
|
|
95
|
+
const { handleSuccess } = useRouteModal();
|
|
96
|
+
const handleExportRequest = async () => {
|
|
97
|
+
await mutateAsync(searchParams, {
|
|
98
|
+
onSuccess: () => {
|
|
99
|
+
toast.info(t("orders.export.success.title"), {
|
|
100
|
+
description: t("orders.export.success.description")
|
|
101
|
+
});
|
|
102
|
+
handleSuccess();
|
|
103
|
+
},
|
|
104
|
+
onError: (err) => {
|
|
105
|
+
toast.error(err.message);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
110
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Body, { children: /* @__PURE__ */ jsx2(ExportFilters, {}) }),
|
|
111
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
112
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx2(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
113
|
+
/* @__PURE__ */ jsx2(Button, { onClick: handleExportRequest, size: "small", children: t("actions.export") })
|
|
114
|
+
] }) })
|
|
115
|
+
] });
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
OrderExport as Component
|
|
119
|
+
};
|
|
@@ -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,13 @@ 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, useLocation } 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";
|
|
129
73
|
|
|
130
74
|
// src/routes/orders/order-list/components/order-list-table/order-table-adapter.tsx
|
|
131
75
|
function createOrderTableAdapter() {
|
|
@@ -178,7 +122,7 @@ function useOrderTableAdapter() {
|
|
|
178
122
|
// src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx
|
|
179
123
|
import { jsx } from "react/jsx-runtime";
|
|
180
124
|
var ConfigurableOrderListTable = () => {
|
|
181
|
-
const { t } =
|
|
125
|
+
const { t } = useTranslation();
|
|
182
126
|
const orderAdapter = useOrderTableAdapter();
|
|
183
127
|
return /* @__PURE__ */ jsx(
|
|
184
128
|
ConfigurableDataTable,
|
|
@@ -212,7 +156,8 @@ var DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
|
|
|
212
156
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
213
157
|
var PAGE_SIZE = 20;
|
|
214
158
|
var OrderListTable = () => {
|
|
215
|
-
const { t } =
|
|
159
|
+
const { t } = useTranslation2();
|
|
160
|
+
const location = useLocation();
|
|
216
161
|
const isViewConfigEnabled = useFeatureFlag("view_configurations");
|
|
217
162
|
if (isViewConfigEnabled) {
|
|
218
163
|
return /* @__PURE__ */ jsx2(ConfigurableOrderListTable, {});
|
|
@@ -242,7 +187,10 @@ var OrderListTable = () => {
|
|
|
242
187
|
throw error;
|
|
243
188
|
}
|
|
244
189
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
245
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
191
|
+
/* @__PURE__ */ jsx2(Heading, { children: t("orders.domain") }),
|
|
192
|
+
/* @__PURE__ */ jsx2(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx2(Link, { to: `export${location.search}`, children: t("actions.export") }) })
|
|
193
|
+
] }),
|
|
246
194
|
/* @__PURE__ */ jsx2(
|
|
247
195
|
_DataTable,
|
|
248
196
|
{
|
|
@@ -265,7 +213,8 @@ var OrderListTable = () => {
|
|
|
265
213
|
message: t("orders.list.noRecordsMessage")
|
|
266
214
|
}
|
|
267
215
|
}
|
|
268
|
-
)
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ jsx2(Outlet, {})
|
|
269
218
|
] });
|
|
270
219
|
};
|
|
271
220
|
|
|
@@ -8,7 +8,7 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
8
8
|
import "./chunk-OC7BQLYI.mjs";
|
|
9
9
|
import "./chunk-S4DMV3ZT.mjs";
|
|
10
10
|
import "./chunk-OBQI23QM.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-57SBEKY2.mjs";
|
|
12
12
|
import "./chunk-I4OBEAOJ.mjs";
|
|
13
13
|
import "./chunk-HI6URQ7H.mjs";
|
|
14
14
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -29,7 +29,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
29
29
|
import {
|
|
30
30
|
useOrder,
|
|
31
31
|
useUpdateOrder
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
33
33
|
import "./chunk-N4O5FAUC.mjs";
|
|
34
34
|
import "./chunk-7AX6R6G6.mjs";
|
|
35
35
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useReturn,
|
|
10
10
|
useUpdateDismissItem,
|
|
11
11
|
useUpdateReceiveItem
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B3AOQW2B.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getStylizedAmount
|
|
15
15
|
} from "./chunk-X6BAAGCL.mjs";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
Form
|
|
30
30
|
} from "./chunk-OBQI23QM.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-57SBEKY2.mjs";
|
|
32
32
|
import "./chunk-I4OBEAOJ.mjs";
|
|
33
33
|
import "./chunk-HI6URQ7H.mjs";
|
|
34
34
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
useOrder,
|
|
53
53
|
useOrderPreview
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
55
55
|
import "./chunk-N4O5FAUC.mjs";
|
|
56
56
|
import "./chunk-7AX6R6G6.mjs";
|
|
57
57
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
Form
|
|
20
20
|
} from "./chunk-OBQI23QM.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-57SBEKY2.mjs";
|
|
22
22
|
import "./chunk-I4OBEAOJ.mjs";
|
|
23
23
|
import "./chunk-HI6URQ7H.mjs";
|
|
24
24
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -39,7 +39,7 @@ import "./chunk-CDORR33H.mjs";
|
|
|
39
39
|
import {
|
|
40
40
|
useOrder,
|
|
41
41
|
useRequestTransferOrder
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
43
43
|
import "./chunk-N4O5FAUC.mjs";
|
|
44
44
|
import "./chunk-7AX6R6G6.mjs";
|
|
45
45
|
import "./chunk-N3FCYZV6.mjs";
|
package/dist/{price-list-configuration-N2WC2QQP.mjs → price-list-configuration-WHSUMV5I.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListCustomerGroupRuleForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2QH2TBJ2.mjs";
|
|
4
4
|
import "./chunk-ZJRFL6ZN.mjs";
|
|
5
5
|
import "./chunk-MSDRGCRR.mjs";
|
|
6
6
|
import "./chunk-P3UUX2T6.mjs";
|
|
@@ -8,8 +8,8 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
8
8
|
import "./chunk-YTN73JYH.mjs";
|
|
9
9
|
import "./chunk-HQKGZADC.mjs";
|
|
10
10
|
import "./chunk-EMIHDNB7.mjs";
|
|
11
|
-
import "./chunk-MOSRJHJ3.mjs";
|
|
12
11
|
import "./chunk-DLZWPHHO.mjs";
|
|
12
|
+
import "./chunk-MOSRJHJ3.mjs";
|
|
13
13
|
import "./chunk-GU5PJRPM.mjs";
|
|
14
14
|
import "./chunk-C76H5USB.mjs";
|
|
15
15
|
import "./chunk-DZWH2RV6.mjs";
|