@medusajs/dashboard 2.12.2-snapshot-20251207203158 → 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 +9111 -9007
- 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-7HL4FXK7.mjs → chunk-CIBBX5AE.mjs} +122 -119
- 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-W6URSOII.mjs → product-attributes-6GUDPZNO.mjs} +3 -3
- package/dist/{product-create-IJXK2CPJ.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-3QA6OXHI.mjs → product-detail-MSNKG672.mjs} +3 -3
- package/dist/{product-edit-WPVM44C2.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-QG53UJ2J.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 -20
- 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
package/dist/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardApp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CIBBX5AE.mjs";
|
|
4
4
|
import "./chunk-2SSUH2HJ.mjs";
|
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
|
6
6
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -19,7 +19,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
19
19
|
import "./chunk-S4DMV3ZT.mjs";
|
|
20
20
|
import "./chunk-SUYYSKCB.mjs";
|
|
21
21
|
import "./chunk-OBQI23QM.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-57SBEKY2.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
24
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
25
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -37,7 +37,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
37
37
|
import "./chunk-A63RZVX6.mjs";
|
|
38
38
|
import "./chunk-HBXV7ENS.mjs";
|
|
39
39
|
import "./chunk-CDORR33H.mjs";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-RU4ZS47V.mjs";
|
|
41
41
|
import "./chunk-N4O5FAUC.mjs";
|
|
42
42
|
import "./chunk-7AX6R6G6.mjs";
|
|
43
43
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import "./chunk-OC7BQLYI.mjs";
|
|
43
43
|
import "./chunk-S4DMV3ZT.mjs";
|
|
44
44
|
import "./chunk-SUYYSKCB.mjs";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-57SBEKY2.mjs";
|
|
46
46
|
import "./chunk-I4OBEAOJ.mjs";
|
|
47
47
|
import "./chunk-HI6URQ7H.mjs";
|
|
48
48
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-A63RZVX6.mjs";
|
|
67
67
|
import "./chunk-HBXV7ENS.mjs";
|
|
68
68
|
import "./chunk-CDORR33H.mjs";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-RU4ZS47V.mjs";
|
|
70
70
|
import "./chunk-N4O5FAUC.mjs";
|
|
71
71
|
import "./chunk-7AX6R6G6.mjs";
|
|
72
72
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -11,7 +11,7 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
11
11
|
import "./chunk-OC7BQLYI.mjs";
|
|
12
12
|
import "./chunk-S4DMV3ZT.mjs";
|
|
13
13
|
import "./chunk-OBQI23QM.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-57SBEKY2.mjs";
|
|
15
15
|
import "./chunk-I4OBEAOJ.mjs";
|
|
16
16
|
import "./chunk-HI6URQ7H.mjs";
|
|
17
17
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -29,7 +29,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
29
29
|
import "./chunk-A63RZVX6.mjs";
|
|
30
30
|
import "./chunk-HBXV7ENS.mjs";
|
|
31
31
|
import "./chunk-CDORR33H.mjs";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-RU4ZS47V.mjs";
|
|
33
33
|
import "./chunk-N4O5FAUC.mjs";
|
|
34
34
|
import {
|
|
35
35
|
useProductCategory,
|
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
} from "./chunk-YTN73JYH.mjs";
|
|
25
25
|
import "./chunk-HQKGZADC.mjs";
|
|
26
26
|
import "./chunk-EMIHDNB7.mjs";
|
|
27
|
+
import {
|
|
28
|
+
useProductTableFilters
|
|
29
|
+
} from "./chunk-PWZRXDU2.mjs";
|
|
27
30
|
import {
|
|
28
31
|
useProductTableQuery
|
|
29
32
|
} from "./chunk-R65S6ZZV.mjs";
|
|
30
|
-
import {
|
|
31
|
-
useProductTableFilters
|
|
32
|
-
} from "./chunk-73EHKWNI.mjs";
|
|
33
33
|
import "./chunk-GU5PJRPM.mjs";
|
|
34
34
|
import {
|
|
35
35
|
TwoColumnPage
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import "./chunk-OC7BQLYI.mjs";
|
|
51
51
|
import "./chunk-S4DMV3ZT.mjs";
|
|
52
52
|
import "./chunk-SUYYSKCB.mjs";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-57SBEKY2.mjs";
|
|
54
54
|
import "./chunk-I4OBEAOJ.mjs";
|
|
55
55
|
import "./chunk-HI6URQ7H.mjs";
|
|
56
56
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -68,7 +68,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
68
68
|
import "./chunk-A63RZVX6.mjs";
|
|
69
69
|
import "./chunk-HBXV7ENS.mjs";
|
|
70
70
|
import "./chunk-CDORR33H.mjs";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-RU4ZS47V.mjs";
|
|
72
72
|
import "./chunk-N4O5FAUC.mjs";
|
|
73
73
|
import {
|
|
74
74
|
categoriesQueryKeys,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-YTN73JYH.mjs";
|
|
13
13
|
import "./chunk-HQKGZADC.mjs";
|
|
14
14
|
import "./chunk-EMIHDNB7.mjs";
|
|
15
|
+
import {
|
|
16
|
+
useProductTableFilters
|
|
17
|
+
} from "./chunk-PWZRXDU2.mjs";
|
|
15
18
|
import {
|
|
16
19
|
useProductTableQuery
|
|
17
20
|
} from "./chunk-R65S6ZZV.mjs";
|
|
18
|
-
import {
|
|
19
|
-
useProductTableFilters
|
|
20
|
-
} from "./chunk-73EHKWNI.mjs";
|
|
21
21
|
import "./chunk-GU5PJRPM.mjs";
|
|
22
22
|
import "./chunk-C76H5USB.mjs";
|
|
23
23
|
import "./chunk-DZWH2RV6.mjs";
|
|
@@ -34,7 +34,7 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
34
34
|
import "./chunk-S4DMV3ZT.mjs";
|
|
35
35
|
import "./chunk-SUYYSKCB.mjs";
|
|
36
36
|
import "./chunk-OBQI23QM.mjs";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-57SBEKY2.mjs";
|
|
38
38
|
import "./chunk-I4OBEAOJ.mjs";
|
|
39
39
|
import "./chunk-HI6URQ7H.mjs";
|
|
40
40
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -52,7 +52,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
52
52
|
import "./chunk-A63RZVX6.mjs";
|
|
53
53
|
import "./chunk-HBXV7ENS.mjs";
|
|
54
54
|
import "./chunk-CDORR33H.mjs";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-RU4ZS47V.mjs";
|
|
56
56
|
import "./chunk-N4O5FAUC.mjs";
|
|
57
57
|
import {
|
|
58
58
|
useProductCategory,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useSalesChannels
|
|
3
|
+
} from "./chunk-N3FCYZV6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useRegions
|
|
6
|
+
} from "./chunk-HP2JH45P.mjs";
|
|
7
|
+
|
|
8
|
+
// src/routes/orders/order-list/components/order-list-table/use-order-table-filters.tsx
|
|
9
|
+
import { useMemo } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
var useOrderTableFilters = () => {
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
const { regions } = useRegions({
|
|
14
|
+
limit: 1e3,
|
|
15
|
+
fields: "id,name"
|
|
16
|
+
});
|
|
17
|
+
const { sales_channels } = useSalesChannels({
|
|
18
|
+
limit: 1e3,
|
|
19
|
+
fields: "id,name"
|
|
20
|
+
});
|
|
21
|
+
return useMemo(() => {
|
|
22
|
+
const filters = [
|
|
23
|
+
{
|
|
24
|
+
key: "created_at",
|
|
25
|
+
label: t("fields.createdAt"),
|
|
26
|
+
type: "date"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: "updated_at",
|
|
30
|
+
label: t("fields.updatedAt"),
|
|
31
|
+
type: "date"
|
|
32
|
+
}
|
|
33
|
+
];
|
|
34
|
+
if (regions?.length) {
|
|
35
|
+
filters.push({
|
|
36
|
+
key: "region_id",
|
|
37
|
+
label: t("fields.region"),
|
|
38
|
+
type: "select",
|
|
39
|
+
multiple: true,
|
|
40
|
+
searchable: true,
|
|
41
|
+
options: regions.map((r) => ({
|
|
42
|
+
label: r.name,
|
|
43
|
+
value: r.id
|
|
44
|
+
}))
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
if (sales_channels?.length) {
|
|
48
|
+
filters.push({
|
|
49
|
+
key: "sales_channel_id",
|
|
50
|
+
label: t("fields.salesChannel"),
|
|
51
|
+
type: "select",
|
|
52
|
+
multiple: true,
|
|
53
|
+
searchable: true,
|
|
54
|
+
options: sales_channels.map((s) => ({
|
|
55
|
+
label: s.name,
|
|
56
|
+
value: s.id
|
|
57
|
+
}))
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return filters;
|
|
61
|
+
}, [regions, sales_channels, t]);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
useOrderTableFilters
|
|
66
|
+
};
|
|
@@ -17,6 +17,12 @@ import {
|
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
19
|
} from "./chunk-YTN73JYH.mjs";
|
|
20
|
+
import {
|
|
21
|
+
useShippingOptionTableFilters
|
|
22
|
+
} from "./chunk-3C6WQ7NH.mjs";
|
|
23
|
+
import {
|
|
24
|
+
useProductTypeTableFilters
|
|
25
|
+
} from "./chunk-CBSCX7RE.mjs";
|
|
20
26
|
import {
|
|
21
27
|
useShippingOptionTableQuery
|
|
22
28
|
} from "./chunk-MFALVTRQ.mjs";
|
|
@@ -24,17 +30,11 @@ import {
|
|
|
24
30
|
useProductTypeTableQuery
|
|
25
31
|
} from "./chunk-TDK3JDOB.mjs";
|
|
26
32
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
useProductTypeTableFilters
|
|
31
|
-
} from "./chunk-CBSCX7RE.mjs";
|
|
33
|
+
useProductTableFilters
|
|
34
|
+
} from "./chunk-PWZRXDU2.mjs";
|
|
32
35
|
import {
|
|
33
36
|
useProductTableQuery
|
|
34
37
|
} from "./chunk-R65S6ZZV.mjs";
|
|
35
|
-
import {
|
|
36
|
-
useProductTableFilters
|
|
37
|
-
} from "./chunk-73EHKWNI.mjs";
|
|
38
38
|
import {
|
|
39
39
|
StackedDrawer,
|
|
40
40
|
StackedFocusModal
|