@medusajs/dashboard 2.12.2-snapshot-20251208150616 → 2.12.2-snapshot-20251208153852

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.
Files changed (131) hide show
  1. package/dist/{api-key-management-detail-MVHIH2SV.mjs → api-key-management-detail-JQBB7UNB.mjs} +2 -2
  2. package/dist/app.css +3 -0
  3. package/dist/app.js +10178 -10268
  4. package/dist/app.mjs +3 -3
  5. package/dist/{campaign-detail-3CZRHOCA.mjs → campaign-detail-DLPAADFC.mjs} +2 -2
  6. package/dist/{categories-metadata-F2J34XOR.mjs → categories-metadata-IN4T3BQY.mjs} +2 -2
  7. package/dist/{category-detail-BDGDHOER.mjs → category-detail-MJYZEZJX.mjs} +5 -5
  8. package/dist/{category-products-DDSNMEDD.mjs → category-products-UH7BGTSC.mjs} +5 -5
  9. package/dist/{chunk-APVDSL3C.mjs → chunk-3HRJ5XSF.mjs} +1 -1
  10. package/dist/{chunk-I3IXYIVT.mjs → chunk-4GPZRJUJ.mjs} +4 -4
  11. package/dist/{chunk-F5NZDW7L.mjs → chunk-4VNR7DND.mjs} +2 -2
  12. package/dist/{chunk-57SBEKY2.mjs → chunk-6BP5RSIK.mjs} +1 -1
  13. package/dist/{chunk-PWZRXDU2.mjs → chunk-73EHKWNI.mjs} +1 -1
  14. package/dist/{chunk-R3O5PHUJ.mjs → chunk-CPF5RDPF.mjs} +1 -1
  15. package/dist/{chunk-B3AOQW2B.mjs → chunk-EQBVGH3N.mjs} +1 -1
  16. package/dist/{chunk-CIBBX5AE.mjs → chunk-FHDQ346H.mjs} +133 -122
  17. package/dist/{chunk-Z6NHG5LQ.mjs → chunk-FIFVOKTK.mjs} +1 -1
  18. package/dist/{chunk-RU4ZS47V.mjs → chunk-GN6OCHP4.mjs} +1 -11
  19. package/dist/{chunk-F63F3FIT.mjs → chunk-JJGE3EV6.mjs} +2 -2
  20. package/dist/{chunk-CCVHVJLI.mjs → chunk-XBJCK4CT.mjs} +8 -8
  21. package/dist/{chunk-TIAJ76TK.mjs → chunk-XHDXZAOR.mjs} +1 -1
  22. package/dist/{collection-add-products-PJWYCDQ3.mjs → collection-add-products-F7GTK2YV.mjs} +5 -5
  23. package/dist/{collection-detail-UYR52HFV.mjs → collection-detail-EZ6UCFMP.mjs} +5 -5
  24. package/dist/{collection-list-FN727ZY6.mjs → collection-list-YUECGEOO.mjs} +12 -12
  25. package/dist/{collection-metadata-F2EM2O4U.mjs → collection-metadata-XYMR7UIM.mjs} +2 -2
  26. package/dist/{customer-detail-UH3Q65CJ.mjs → customer-detail-7B35STSY.mjs} +5 -5
  27. package/dist/{customer-group-detail-SJGL4IYR.mjs → customer-group-detail-TY4AFNQE.mjs} +5 -5
  28. package/dist/{customer-group-list-HKKWTD7T.mjs → customer-group-list-CELWB4WM.mjs} +2 -2
  29. package/dist/{customers-add-customer-group-TQA5B4CN.mjs → customers-add-customer-group-524NN3AG.mjs} +5 -5
  30. package/dist/{edit-rules-EDKN3AWF.mjs → edit-rules-K2UXPE62.mjs} +2 -2
  31. package/dist/en.json +0 -12
  32. package/dist/{inventory-create-EFGTPSPO.mjs → inventory-create-SYD3QXIB.mjs} +2 -2
  33. package/dist/{inventory-detail-HPHXGBKE.mjs → inventory-detail-IWCB7FND.mjs} +2 -2
  34. package/dist/{inventory-metadata-SVFWF53J.mjs → inventory-metadata-YSDEZ4B7.mjs} +2 -2
  35. package/dist/{inventory-stock-KD5LCUX3.mjs → inventory-stock-JLJEWPUM.mjs} +2 -2
  36. package/dist/{location-detail-7XJCPZXW.mjs → location-detail-LNQUKDLQ.mjs} +6 -6
  37. package/dist/{location-fulfillment-providers-N2IYLT7J.mjs → location-fulfillment-providers-566Z6CCG.mjs} +3 -3
  38. package/dist/{location-service-zone-shipping-option-create-RN4YET76.mjs → location-service-zone-shipping-option-create-VENETBCK.mjs} +2 -2
  39. package/dist/{login-ARN4TVFT.mjs → login-R5C7HZ2A.mjs} +2 -2
  40. package/dist/{order-allocate-items-2BSD5BQW.mjs → order-allocate-items-W7HUKJ6F.mjs} +1 -1
  41. package/dist/{order-create-claim-32TTNI3C.mjs → order-create-claim-M5NNIQWR.mjs} +8 -8
  42. package/dist/{order-create-edit-FKK7CWJJ.mjs → order-create-edit-A2TMNFRS.mjs} +3 -3
  43. package/dist/{order-create-exchange-NVT3N6P3.mjs → order-create-exchange-CIB7URQD.mjs} +14 -14
  44. package/dist/{order-create-fulfillment-E4U5NUNB.mjs → order-create-fulfillment-YC4GFUTQ.mjs} +2 -2
  45. package/dist/{order-create-refund-7VN7JAG6.mjs → order-create-refund-EE7SWYLL.mjs} +2 -2
  46. package/dist/{order-create-return-PGTGLMCT.mjs → order-create-return-UWF4YKOP.mjs} +6 -6
  47. package/dist/{order-create-shipment-HO5ACO76.mjs → order-create-shipment-DNVN7NYA.mjs} +2 -2
  48. package/dist/{order-detail-EKFSSFTX.mjs → order-detail-FZ7PM4K3.mjs} +10 -10
  49. package/dist/{order-edit-billing-address-7YSLWSB6.mjs → order-edit-billing-address-XH37NDI5.mjs} +2 -2
  50. package/dist/{order-edit-email-D4XO7MGG.mjs → order-edit-email-NZE32DBD.mjs} +2 -2
  51. package/dist/{order-edit-shipping-address-DR4QNO76.mjs → order-edit-shipping-address-KMLTH4SM.mjs} +2 -2
  52. package/dist/{order-list-HBTLUSS2.mjs → order-list-NT5PQ2WS.mjs} +70 -19
  53. package/dist/{order-metadata-XBJZVGRO.mjs → order-metadata-VWNNC7RO.mjs} +2 -2
  54. package/dist/{order-receive-return-XZOE5MHF.mjs → order-receive-return-O5P477EZ.mjs} +3 -3
  55. package/dist/{order-request-transfer-DYWFNRVA.mjs → order-request-transfer-XOAINCAS.mjs} +2 -2
  56. package/dist/{price-list-configuration-WHSUMV5I.mjs → price-list-configuration-N2WC2QQP.mjs} +2 -2
  57. package/dist/{price-list-create-JJCL4OTN.mjs → price-list-create-NOTXIPOJ.mjs} +11 -12
  58. package/dist/{price-list-detail-WIY2LNHC.mjs → price-list-detail-BD2QQKAR.mjs} +5 -5
  59. package/dist/{price-list-prices-add-Q7OSNE2L.mjs → price-list-prices-add-25FOFNBS.mjs} +5 -5
  60. package/dist/{product-attributes-6GUDPZNO.mjs → product-attributes-GMX6UXAL.mjs} +3 -3
  61. package/dist/{product-create-5AWC5LYJ.mjs → product-create-NN6RP76T.mjs} +3 -3
  62. package/dist/{product-create-variant-WDOBNQBA.mjs → product-create-variant-YBJ2ZVUG.mjs} +2 -2
  63. package/dist/{product-detail-MSNKG672.mjs → product-detail-C5SAQWWU.mjs} +3 -3
  64. package/dist/{product-edit-IIR2OQ3W.mjs → product-edit-MNKW3ONX.mjs} +3 -3
  65. package/dist/{product-export-SSD4GDDD.mjs → product-export-H4ZOJWIB.mjs} +12 -12
  66. package/dist/{product-image-variants-edit-HM66BOGK.mjs → product-image-variants-edit-3YEXAIKS.mjs} +2 -2
  67. package/dist/{product-import-QWNYJF3O.mjs → product-import-PPULHBTB.mjs} +2 -2
  68. package/dist/{product-list-I5O5LFEC.mjs → product-list-NPLVU37E.mjs} +5 -5
  69. package/dist/{product-metadata-KH3EQCAB.mjs → product-metadata-SS7DIDYB.mjs} +2 -2
  70. package/dist/{product-organization-PHQLEHZJ.mjs → product-organization-BEHIZPWV.mjs} +3 -3
  71. package/dist/{product-stock-ZJRZ65WB.mjs → product-stock-3A22RDIR.mjs} +2 -2
  72. package/dist/{product-tag-create-D4LTDBT5.mjs → product-tag-create-XIWCLMRJ.mjs} +2 -2
  73. package/dist/{product-tag-detail-UL32QUFD.mjs → product-tag-detail-NVV6QQMN.mjs} +14 -14
  74. package/dist/{product-tag-edit-7NSMDMUG.mjs → product-tag-edit-H7YA4HEV.mjs} +2 -2
  75. package/dist/{product-tag-list-NHHL2I5B.mjs → product-tag-list-LGVKUJLL.mjs} +14 -14
  76. package/dist/{product-tag-metadata-TZF2VNW7.mjs → product-tag-metadata-JBYEI3M4.mjs} +2 -2
  77. package/dist/{product-type-detail-VT5OWDGP.mjs → product-type-detail-S6YG37AR.mjs} +5 -5
  78. package/dist/{product-type-metadata-NFY7YHJL.mjs → product-type-metadata-LRTMJT2P.mjs} +2 -2
  79. package/dist/{product-variant-detail-3GBFW7I7.mjs → product-variant-detail-GIHXE5YG.mjs} +2 -2
  80. package/dist/{product-variant-edit-HFFCFKNS.mjs → product-variant-edit-36MBVNPO.mjs} +2 -2
  81. package/dist/{product-variant-metadata-WTAODBYU.mjs → product-variant-metadata-LH7YGFW4.mjs} +2 -2
  82. package/dist/{promotion-create-GBK4VRSX.mjs → promotion-create-XOB4S6H5.mjs} +8 -8
  83. package/dist/{promotion-detail-HX2PR765.mjs → promotion-detail-YR4MNPNS.mjs} +2 -2
  84. package/dist/{refund-reason-create-36LXE3SD.mjs → refund-reason-create-LSAPI6XB.mjs} +2 -2
  85. package/dist/{refund-reason-edit-J2PO2IY4.mjs → refund-reason-edit-R4RV6BFG.mjs} +2 -2
  86. package/dist/{refund-reason-list-RMHSTV3G.mjs → refund-reason-list-MPTKOWX7.mjs} +3 -3
  87. package/dist/{region-metadata-IHSNACNW.mjs → region-metadata-4IMJHPZO.mjs} +2 -2
  88. package/dist/{reservation-detail-MKB2IT3S.mjs → reservation-detail-HWKSPGBU.mjs} +2 -2
  89. package/dist/{reservation-metadata-CYC72SJW.mjs → reservation-metadata-IIX7FU74.mjs} +2 -2
  90. package/dist/return-reason-list-IFFIDA5O.mjs +1 -1
  91. package/dist/{sales-channel-add-products-55WNY2W2.mjs → sales-channel-add-products-VH7V4XWO.mjs} +5 -5
  92. package/dist/{sales-channel-detail-VPCBNPO2.mjs → sales-channel-detail-VMRKBYCG.mjs} +5 -5
  93. package/dist/{sales-channel-list-SBG2NFTV.mjs → sales-channel-list-U7IVFVYC.mjs} +2 -2
  94. package/dist/{sales-channel-metadata-7E5ZGMRB.mjs → sales-channel-metadata-5EO4EB6E.mjs} +2 -2
  95. package/dist/{shipping-option-type-create-PN5PYK2K.mjs → shipping-option-type-create-DJEHSOSG.mjs} +2 -2
  96. package/dist/{shipping-option-type-detail-TA7D3UVD.mjs → shipping-option-type-detail-GWULT3WO.mjs} +3 -3
  97. package/dist/{shipping-option-type-edit-KP3KMVGK.mjs → shipping-option-type-edit-FSXPDBLI.mjs} +2 -2
  98. package/dist/{shipping-option-type-list-J3XI6I76.mjs → shipping-option-type-list-DAKNQ3N6.mjs} +3 -3
  99. package/dist/{shipping-profile-metadata-SJUTJ2NY.mjs → shipping-profile-metadata-37GNDVFQ.mjs} +2 -2
  100. package/dist/{store-detail-IIFZ7UND.mjs → store-detail-TTHDKQYD.mjs} +2 -2
  101. package/dist/{store-metadata-WLNYWKI6.mjs → store-metadata-KLQUPUQ4.mjs} +2 -2
  102. package/dist/{tax-region-create-YWNJ4XH3.mjs → tax-region-create-FIGRJOC5.mjs} +2 -2
  103. package/dist/{tax-region-detail-YWJ27M7F.mjs → tax-region-detail-AXT4TMZB.mjs} +16 -16
  104. package/dist/{tax-region-edit-QYT3LP5H.mjs → tax-region-edit-UOGPNA25.mjs} +2 -2
  105. package/dist/{tax-region-province-detail-HPGYHOPY.mjs → tax-region-province-detail-4YCWNZPW.mjs} +16 -16
  106. package/dist/{tax-region-tax-override-create-SVMSORW3.mjs → tax-region-tax-override-create-FHUXLTPK.mjs} +13 -13
  107. package/dist/{tax-region-tax-override-edit-4ZHIAP2E.mjs → tax-region-tax-override-edit-GQYS6HCW.mjs} +14 -14
  108. package/dist/{user-metadata-BODYS2FN.mjs → user-metadata-RU3Z3BLD.mjs} +2 -2
  109. package/dist/{workflow-execution-detail-CQCTPUMI.mjs → workflow-execution-detail-R2FDAUMD.mjs} +2 -2
  110. package/package.json +9 -9
  111. package/src/components/utilities/error-boundary/error-boundary.tsx +36 -0
  112. package/src/dashboard-app/routes/get-route.map.tsx +0 -6
  113. package/src/hooks/api/orders.tsx +1 -18
  114. package/src/i18n/translations/$schema.json +0 -40
  115. package/src/i18n/translations/en.json +0 -12
  116. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +4 -11
  117. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +4 -11
  118. package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +4 -11
  119. package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +2 -8
  120. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-products-form.tsx +0 -1
  121. package/dist/chunk-35LSPN2U.mjs +0 -66
  122. package/dist/order-export-KSLBMRMM.mjs +0 -119
  123. package/src/routes/orders/order-export/components/export-filters.tsx +0 -22
  124. package/src/routes/orders/order-export/index.ts +0 -1
  125. package/src/routes/orders/order-export/order-export.tsx +0 -66
  126. package/dist/{chunk-2QH2TBJ2.mjs → chunk-ACJ3PPQJ.mjs} +3 -3
  127. package/dist/{customer-group-add-customers-2Y2GVCDV.mjs → customer-group-add-customers-QU4Q56SS.mjs} +3 -3
  128. package/dist/{customer-list-TG4D4QOT.mjs → customer-list-ZXCGIXJC.mjs} +3 -3
  129. package/dist/{location-service-zone-shipping-option-edit-LXZ77VD7.mjs → location-service-zone-shipping-option-edit-TTVV3BSV.mjs} +3 -3
  130. package/dist/{product-type-list-7WQ5D2KV.mjs → product-type-list-QX7QC6RI.mjs} +3 -3
  131. package/dist/{region-list-JAQXIBYD.mjs → region-list-XQRIBDMF.mjs} +3 -3
@@ -1,119 +0,0 @@
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,22 +0,0 @@
1
- import { Heading, Text } from "@medusajs/ui"
2
- import { useTranslation } from "react-i18next"
3
- import { DataTableFilter } from "../../../../components/table/data-table/data-table-filter"
4
- import { useOrderTableFilters } from "../../order-list/components/order-list-table/use-order-table-filters"
5
-
6
- export const ExportFilters = () => {
7
- const { t } = useTranslation()
8
- const filters = useOrderTableFilters()
9
-
10
- return (
11
- <div>
12
- <Heading level="h2">{t("orders.export.filters.title")}</Heading>
13
- <Text size="small" className="text-ui-fg-subtle">
14
- {t("orders.export.filters.description")}
15
- </Text>
16
-
17
- <div className="mt-4">
18
- <DataTableFilter filters={filters} readonly />
19
- </div>
20
- </div>
21
- )
22
- }
@@ -1 +0,0 @@
1
- export { OrderExport as Component } from "./order-export"
@@ -1,66 +0,0 @@
1
- import { Button, Heading, toast } from "@medusajs/ui"
2
- import { useTranslation } from "react-i18next"
3
- import { RouteDrawer, useRouteModal } from "../../../components/modals"
4
- import { useExportOrders } from "../../../hooks/api"
5
- import { useOrderTableQuery } from "../../../hooks/table/query"
6
- import { ExportFilters } from "./components/export-filters"
7
-
8
- export const OrderExport = () => {
9
- const { t } = useTranslation()
10
-
11
- return (
12
- <RouteDrawer>
13
- <RouteDrawer.Header>
14
- <RouteDrawer.Title asChild>
15
- <Heading>{t("orders.export.header")}</Heading>
16
- </RouteDrawer.Title>
17
- <RouteDrawer.Description className="sr-only">
18
- {t("orders.export.description")}
19
- </RouteDrawer.Description>
20
- </RouteDrawer.Header>
21
- <OrderExportContent />
22
- </RouteDrawer>
23
- )
24
- }
25
-
26
- const OrderExportContent = () => {
27
- const { t } = useTranslation()
28
- const { searchParams } = useOrderTableQuery({})
29
-
30
- const { mutateAsync } = useExportOrders(searchParams)
31
- const { handleSuccess } = useRouteModal()
32
-
33
- const handleExportRequest = async () => {
34
- await mutateAsync(searchParams, {
35
- onSuccess: () => {
36
- toast.info(t("orders.export.success.title"), {
37
- description: t("orders.export.success.description"),
38
- })
39
- handleSuccess()
40
- },
41
- onError: (err) => {
42
- toast.error(err.message)
43
- },
44
- })
45
- }
46
-
47
- return (
48
- <>
49
- <RouteDrawer.Body>
50
- <ExportFilters />
51
- </RouteDrawer.Body>
52
- <RouteDrawer.Footer>
53
- <div className="flex items-center gap-x-2">
54
- <RouteDrawer.Close asChild>
55
- <Button size="small" variant="secondary">
56
- {t("actions.cancel")}
57
- </Button>
58
- </RouteDrawer.Close>
59
- <Button onClick={handleExportRequest} size="small">
60
- {t("actions.export")}
61
- </Button>
62
- </div>
63
- </RouteDrawer.Footer>
64
- </>
65
- )
66
- }
@@ -5,12 +5,12 @@ import {
5
5
  _DataTable,
6
6
  useDataTable
7
7
  } from "./chunk-YTN73JYH.mjs";
8
- import {
9
- useCustomerGroupTableFilters
10
- } from "./chunk-DLZWPHHO.mjs";
11
8
  import {
12
9
  useCustomerGroupTableQuery
13
10
  } from "./chunk-MOSRJHJ3.mjs";
11
+ import {
12
+ useCustomerGroupTableFilters
13
+ } from "./chunk-DLZWPHHO.mjs";
14
14
  import {
15
15
  StackedDrawer,
16
16
  StackedFocusModal
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-YTN73JYH.mjs";
12
12
  import "./chunk-HQKGZADC.mjs";
13
13
  import "./chunk-EMIHDNB7.mjs";
14
- import {
15
- useCustomerTableFilters
16
- } from "./chunk-6OU4CHZI.mjs";
17
14
  import {
18
15
  useCustomerTableQuery
19
16
  } from "./chunk-WRSGHGAT.mjs";
17
+ import {
18
+ useCustomerTableFilters
19
+ } from "./chunk-6OU4CHZI.mjs";
20
20
  import "./chunk-GU5PJRPM.mjs";
21
21
  import "./chunk-C76H5USB.mjs";
22
22
  import "./chunk-DZWH2RV6.mjs";
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-YTN73JYH.mjs";
12
12
  import "./chunk-HQKGZADC.mjs";
13
13
  import "./chunk-EMIHDNB7.mjs";
14
- import {
15
- useCustomerTableFilters
16
- } from "./chunk-6OU4CHZI.mjs";
17
14
  import {
18
15
  useCustomerTableQuery
19
16
  } from "./chunk-WRSGHGAT.mjs";
17
+ import {
18
+ useCustomerTableFilters
19
+ } from "./chunk-6OU4CHZI.mjs";
20
20
  import "./chunk-GU5PJRPM.mjs";
21
21
  import {
22
22
  SingleColumnPage
@@ -1,12 +1,12 @@
1
- import {
2
- isOptionEnabledInStore
3
- } from "./chunk-UC26CCHZ.mjs";
4
1
  import {
5
2
  ShippingOptionPriceType
6
3
  } from "./chunk-PYIO3TDQ.mjs";
7
4
  import {
8
5
  formatProvider
9
6
  } from "./chunk-IR5DHEKS.mjs";
7
+ import {
8
+ isOptionEnabledInStore
9
+ } from "./chunk-UC26CCHZ.mjs";
10
10
  import {
11
11
  useComboboxData
12
12
  } from "./chunk-3TZOFKX2.mjs";
@@ -14,13 +14,13 @@ import {
14
14
  } from "./chunk-YTN73JYH.mjs";
15
15
  import "./chunk-HQKGZADC.mjs";
16
16
  import "./chunk-EMIHDNB7.mjs";
17
+ import {
18
+ useProductTypeTableQuery
19
+ } from "./chunk-TDK3JDOB.mjs";
17
20
  import {
18
21
  useProductTypeTableFilters
19
22
  } from "./chunk-CBSCX7RE.mjs";
20
23
  import "./chunk-W7625H47.mjs";
21
- import {
22
- useProductTypeTableQuery
23
- } from "./chunk-TDK3JDOB.mjs";
24
24
  import "./chunk-GU5PJRPM.mjs";
25
25
  import {
26
26
  SingleColumnPage
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-YTN73JYH.mjs";
12
12
  import "./chunk-HQKGZADC.mjs";
13
13
  import "./chunk-EMIHDNB7.mjs";
14
- import {
15
- useRegionTableFilters
16
- } from "./chunk-LT4MVCA7.mjs";
17
14
  import {
18
15
  useRegionTableQuery
19
16
  } from "./chunk-XR4GEMGR.mjs";
17
+ import {
18
+ useRegionTableFilters
19
+ } from "./chunk-LT4MVCA7.mjs";
20
20
  import "./chunk-GU5PJRPM.mjs";
21
21
  import {
22
22
  SingleColumnPage