@mercurjs/vendor 2.1.2 → 2.2.0-canary.2
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/{[id]-H3C3ZSC6.js → [id]-3EC6HYXL.js} +25 -21
- package/dist/{[id]-TO6KT3ZE.js → [id]-4OBGG7OH.js} +23 -21
- package/dist/{[id]-6PXEWRG7.js → [id]-7BAKUHUO.js} +13 -13
- package/dist/{[id]-X4DDKOMQ.js → [id]-COLO4TQJ.js} +26 -22
- package/dist/{[id]-7RUAH3TI.js → [id]-K2CT7BXQ.js} +4 -4
- package/dist/{[id]-3G5G7ZFV.js → [id]-KJIQTFGE.js} +22 -20
- package/dist/{[id]-4VCL3MMM.js → [id]-KRLGIVLR.js} +26 -22
- package/dist/{[id]-B3LHVQM5.js → [id]-KVWYLDN3.js} +25 -21
- package/dist/{[id]-INOFZHL7.js → [id]-LTNOHLGE.js} +16 -16
- package/dist/{[id]-PDGHF5J2.js → [id]-LUFRJLAU.js} +35 -31
- package/dist/[id]-UUUQK22M.js +1442 -0
- package/dist/{[id]-T2ROPEGY.js → [id]-Y2ISCLUD.js} +7 -7
- package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
- package/dist/{[id]-UTKO3VG4.js → [id]-ZWWMJAKI.js} +9 -9
- package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
- package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-H2QAPKVH.js} +20 -18
- package/dist/{add-C6OX5C54.js → add-FIWTANZX.js} +34 -30
- package/dist/add-PBZQCIZQ.js +392 -0
- package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-RAHCP67U.js} +16 -14
- package/dist/{add-products-INOLNPO6.js → add-products-N3V2MVLD.js} +23 -19
- package/dist/{add-promotions-AHDOP52Q.js → add-promotions-CSCAJZHV.js} +7 -7
- package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-DLP7PSQB.js} +4 -4
- package/dist/{address-KRENKSLP.js → address-7F5SN7PV.js} +17 -15
- package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-SZF4W7LR.js} +2 -2
- package/dist/{allocate-items-SUCUZU4D.js → allocate-items-SDFS5GYN.js} +6 -6
- package/dist/{areas-UUMZDXLX.js → areas-7Y6BVS5A.js} +8 -8
- package/dist/{attributes-CALEHJJG.js → attributes-MBZ76HVZ.js} +3 -3
- package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-65SAGUUL.js} +2 -2
- package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-7PURSRTT.js} +13 -11
- package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-EDPMEN2P.js} +2 -2
- package/dist/breadcrumb-FLDHJRVY.js +26 -0
- package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-HND5FFWC.js} +2 -2
- package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-QV2IAX7N.js} +8 -2
- package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-VWELWDB2.js} +1 -1
- package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-WRG4SITG.js} +13 -11
- package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-ZCG2RHIU.js} +12 -10
- package/dist/{campaigns-HS6MIO7X.js → campaigns-L6ULR6KR.js} +5 -5
- package/dist/{categories-PKWR3FM3.js → categories-FUZQKBXV.js} +6 -6
- package/dist/{chunk-PDQSPKG5.js → chunk-2DXNJURE.js} +1 -1
- package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
- package/dist/chunk-35G3SZRN.js +101 -0
- package/dist/{chunk-6SBMVLJ2.js → chunk-36L54SQQ.js} +1 -1
- package/dist/chunk-432S4FGR.js +0 -0
- package/dist/{chunk-KQGVSLUI.js → chunk-44RQ5PTN.js} +1803 -914
- package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
- package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
- package/dist/chunk-5ATEALH7.js +68 -0
- package/dist/{chunk-CNLP35S7.js → chunk-5L2DCA4W.js} +16 -31
- package/dist/{chunk-WITQNQXN.js → chunk-6BS2AVGJ.js} +3 -3
- package/dist/{chunk-CYTNBXWF.js → chunk-6Y53VZ3C.js} +9 -9
- package/dist/{chunk-ZYOXKUKZ.js → chunk-7LBY5JLV.js} +1 -1
- package/dist/chunk-7SLWXX6L.js +811 -0
- package/dist/{chunk-LQYMBSRQ.js → chunk-AIZM66CG.js} +1 -1
- package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
- package/dist/{chunk-WFE6CT6M.js → chunk-AVOIZO63.js} +21 -77
- package/dist/chunk-CFRWIQIZ.js +43 -0
- package/dist/{chunk-WNVEMFIK.js → chunk-CNMY5HVP.js} +2 -2
- package/dist/{chunk-BLVJAKBA.js → chunk-DDH7ULIQ.js} +1 -1
- package/dist/chunk-DIW4GRTI.js +503 -0
- package/dist/{chunk-JQP7MOFH.js → chunk-DVEKYLPV.js} +1 -1
- package/dist/{chunk-ZZO3INVE.js → chunk-DZIXC7OE.js} +1428 -1325
- package/dist/{chunk-QX45GVAL.js → chunk-EIUYXS7E.js} +8 -8
- package/dist/{chunk-N7OVXN72.js → chunk-EROX26D4.js} +1 -1
- package/dist/{chunk-2RHAI7WK.js → chunk-EZ3JOAUS.js} +1 -1
- package/dist/{chunk-HFRHHT36.js → chunk-FDR22JMM.js} +63 -8
- package/dist/{chunk-PEKANQ3T.js → chunk-FJUUGFXL.js} +2 -2
- package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
- package/dist/chunk-GGWUWT55.js +95 -0
- package/dist/chunk-GKZHBXZK.js +426 -0
- package/dist/{chunk-47SXTGLN.js → chunk-GXIAIITP.js} +63 -200
- package/dist/{chunk-4MFMCZEJ.js → chunk-H6LZ77GX.js} +2 -2
- package/dist/chunk-K4X324QP.js +18 -0
- package/dist/{chunk-VQ5EKDA3.js → chunk-KD7RYE6R.js} +1 -1
- package/dist/chunk-LEWA4BPH.js +18 -0
- package/dist/{chunk-7Q5SDEK7.js → chunk-LNM2D2I4.js} +4 -4
- package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
- package/dist/{chunk-OXXL4WQU.js → chunk-M7KSRYRI.js} +5 -5
- package/dist/{chunk-I2IKYOZX.js → chunk-N4MVIBFM.js} +19 -19
- package/dist/{chunk-PCMNEUMV.js → chunk-NHFEY3EI.js} +1 -1
- package/dist/{chunk-RTAWYMQP.js → chunk-NJMNYS7G.js} +1 -1
- package/dist/{chunk-HGQTL7NX.js → chunk-NSZQERLE.js} +2 -2
- package/dist/{chunk-RL7SFZOF.js → chunk-NXNJQZCP.js} +1 -1
- package/dist/{chunk-D2MA5TAP.js → chunk-PBD36EZJ.js} +2 -2
- package/dist/{chunk-4ZGFODSC.js → chunk-PZ44R4AS.js} +1 -1
- package/dist/{chunk-ZEVYT6IX.js → chunk-QNNJN4H6.js} +116 -286
- package/dist/{chunk-WBI7FEGI.js → chunk-QS6RWIBL.js} +1 -1
- package/dist/chunk-QT7YFHCA.js +198 -0
- package/dist/{chunk-GYV6SKY7.js → chunk-QXLRABYH.js} +4 -6
- package/dist/chunk-RTBNJQOV.js +2063 -0
- package/dist/chunk-RXZFEFNV.js +73 -0
- package/dist/{chunk-RUE5BPC2.js → chunk-RZLN2Q6G.js} +1 -1
- package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
- package/dist/chunk-T6LHVNWO.js +27 -0
- package/dist/{chunk-DKQ4XMSN.js → chunk-TNVYTMBL.js} +6 -6
- package/dist/{chunk-32RYSB2V.js → chunk-TODJFRLH.js} +2 -2
- package/dist/{chunk-P3ZTO6T2.js → chunk-UAF2S447.js} +1 -1
- package/dist/{chunk-J6BRLL3F.js → chunk-UCQKXXLD.js} +2 -2
- package/dist/chunk-UORPTGV2.js +114 -0
- package/dist/{chunk-X4FLOQ45.js → chunk-WBHFU3MG.js} +2 -2
- package/dist/chunk-WLT7K7K7.js +63 -0
- package/dist/{chunk-4URLUCTD.js → chunk-WUPJADSO.js} +2 -2
- package/dist/{chunk-5M3SL4UZ.js → chunk-X2FVFUET.js} +9 -104
- package/dist/{chunk-ITI54CII.js → chunk-X4INVIWL.js} +5 -5
- package/dist/{chunk-PTW7JNAP.js → chunk-XFQJU6FA.js} +4 -4
- package/dist/{collections-DJZI2RM2.js → collections-YCAAFGSW.js} +22 -19
- package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
- package/dist/{configuration-GN3TO77H.js → configuration-UOSNP45I.js} +3 -3
- package/dist/{create-G4T2PAJH.js → create-35MYQPVM.js} +23 -21
- package/dist/{create-3EK5CNNX.js → create-B5ZXTK3K.js} +33 -29
- package/dist/{create-HKJVSFB7.js → create-BJ4OO6LS.js} +23 -21
- package/dist/create-FCKGCZSM.js +210 -0
- package/dist/{create-7S7CZWEN.js → create-GB3ZA4LH.js} +4 -4
- package/dist/{create-YO55Z3YD.js → create-HI5UI2EZ.js} +32 -38
- package/dist/create-JDGM5KXE.js +193 -0
- package/dist/{create-IDVCZHIX.js → create-ORXYT74H.js} +14 -12
- package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
- package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
- package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
- package/dist/{create-OCFPLNNY.js → create-UQNYMVBM.js} +6 -6
- package/dist/{create-OGLPDVOI.js → create-XAD5NMSJ.js} +37 -35
- package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
- package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
- package/dist/{create-3ZVXEPX5.js → create-YDDBH4VQ.js} +25 -21
- package/dist/{customers-6ZLE65UX.js → customers-ETXVNM3G.js} +5 -5
- package/dist/{edit-QBISX7D3.js → edit-2Q7TRUTL.js} +14 -12
- package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
- package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
- package/dist/{edit-IR6V2IDN.js → edit-FKXIQ6ZI.js} +19 -17
- package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
- package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
- package/dist/{edit-ZSOI56BQ.js → edit-L5ZZLMAY.js} +22 -22
- package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
- package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
- package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
- package/dist/{edit-7HTH2UJF.js → edit-REDDBLTA.js} +3 -3
- package/dist/{edit-2KRJIPRK.js → edit-SGUY2CCK.js} +19 -17
- package/dist/{edit-B75KK5ZX.js → edit-UGEC27HP.js} +35 -31
- package/dist/{edit-FNDDSSMT.js → edit-VKT62KHG.js} +37 -8
- package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
- package/dist/{edit-RNT555GP.js → edit-ZCXUG42Q.js} +13 -11
- package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
- package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
- package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-6B7ITDGD.js} +2 -2
- package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-Y7MQZLXI.js} +3 -3
- package/dist/{fulfillment-DCS67LTK.js → fulfillment-75Z4H23W.js} +16 -14
- package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-DQAU43JZ.js} +20 -17
- package/dist/index.css +27 -62
- package/dist/index.d.ts +3 -10
- package/dist/index.js +522 -458
- package/dist/{inventory-OPZ2FSEE.js → inventory-KAUVPMPZ.js} +6 -6
- package/dist/{invite-KEJLNXEZ.js → invite-CI2P4GF6.js} +15 -12
- package/dist/{invite-764K3TJS.js → invite-Q6EYDZVQ.js} +24 -21
- package/dist/loader-FBB5OQRT.js +31 -0
- package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
- package/dist/{login-OUHRNNXA.js → login-KY342RMK.js} +12 -10
- package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-WNHEBS3A.js} +2 -2
- package/dist/{media-4KYFHB5V.js → media-B6ME2WXY.js} +41 -9
- package/dist/{metadata-NYYL26MQ.js → metadata-2CMH4I6U.js} +16 -14
- package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
- package/dist/{metadata-OCE6A3JE.js → metadata-GWI6R4ES.js} +15 -13
- package/dist/{metadata-G7KZXVNE.js → metadata-NUXUC2JA.js} +15 -13
- package/dist/{metadata-XP3ZYW2M.js → metadata-TLDUF5KV.js} +17 -15
- package/dist/{metadata-PYY4IB7K.js → metadata-WR4RFXO5.js} +16 -14
- package/dist/offer-create-page-4Z6L63BU.js +743 -0
- package/dist/offer-detail-page-6MAHNNIO.js +488 -0
- package/dist/offer-edit-page-DYQFU6JU.js +151 -0
- package/dist/offer-inventory-batch-page-WKCWNDNK.js +290 -0
- package/dist/offer-pricing-edit-page-4TYGGSOE.js +195 -0
- package/dist/offers-ZG6OTDZ2.js +32 -0
- package/dist/{onboarding-WXZHW62K.js → onboarding-43LQQQGQ.js} +22 -20
- package/dist/{orders-LWJ472VM.js → orders-ZV4D6L2V.js} +24 -21
- package/dist/organization-ZTQGRJWS.js +375 -0
- package/dist/{organize-RFOMQCBG.js → organize-HNJUHEEG.js} +4 -4
- package/dist/{organize-OVKJ3HZO.js → organize-K6QMAMEN.js} +4 -4
- package/dist/pages/index.d.ts +415 -758
- package/dist/pages/index.js +81 -77
- package/dist/{payment-details-UVXYCTUK.js → payment-details-64US5XWD.js} +17 -15
- package/dist/{payouts-TR7K5I37.js → payouts-UXJDTXDL.js} +6 -6
- package/dist/{price-lists-S2WNELFZ.js → price-lists-KBPUVSZI.js} +8 -8
- package/dist/{pricing-UF27DAXA.js → pricing-DF6C5XK4.js} +35 -32
- package/dist/{product-tags-2CKH2M6D.js → product-tags-6MZB4W5R.js} +32 -28
- package/dist/{product-types-FX43JEO2.js → product-types-UUHBV4IZ.js} +5 -5
- package/dist/product-variant-detail-RVWEYVPC.js +220 -0
- package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-YYNPHE4L.js} +126 -66
- package/dist/{products-H5EMRJYS.js → products-IWKTGZS6.js} +23 -19
- package/dist/{products-2LHGS7X3.js → products-MZBU5MEV.js} +40 -43
- package/dist/{professional-details-HYKTH44B.js → professional-details-5T2VS6MM.js} +16 -14
- package/dist/{profile-PB27WIRW.js → profile-6XGHAT7H.js} +20 -18
- package/dist/{promotions-5EYPGHJP.js → promotions-O7U4BTK6.js} +8 -8
- package/dist/{register-4O4F6YZK.js → register-N6WOSMLA.js} +16 -14
- package/dist/{reset-password-GTWLBOFK.js → reset-password-EICPAY2N.js} +1 -1
- package/dist/{return-reasons-LOKYRGMI.js → return-reasons-IX3LIOCU.js} +16 -14
- package/dist/{sales-channels-7R2IY3KG.js → sales-channels-B6FULRWI.js} +8 -7
- package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-JW3QUYR7.js} +8 -7
- package/dist/{settings-2XDLFYMS.js → settings-MV53ZZ53.js} +39 -35
- package/dist/{shipment-4GW2JFWB.js → shipment-Q33QBMXX.js} +13 -11
- package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-Y4SNEPZX.js} +2 -2
- package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-2NWKCEJK.js} +18 -16
- package/dist/{stock-5RXNUPUT.js → stock-7CSVEJJU.js} +19 -17
- package/dist/{store-DE2RGX7T.js → store-X23G3JCJ.js} +28 -25
- package/dist/{store-closure-DNMCHUXD.js → store-closure-P5PD2RSV.js} +16 -14
- package/dist/{store-select-GZEJHRZ7.js → store-select-TREPDS3G.js} +17 -15
- package/dist/{tax-regions-UD6P5FVC.js → tax-regions-YXZW7UVX.js} +5 -5
- package/dist/{team-JXKAVRPU.js → team-SPP5OY5W.js} +25 -23
- package/dist/types-CtCEtTE6.d.ts +16 -0
- package/package.json +6 -6
- package/dist/[id]-BYP37PU4.js +0 -1314
- package/dist/add-KRAGFFBJ.js +0 -158
- package/dist/bulk-edit-3SMBLIOA.js +0 -244
- package/dist/chunk-4KX6CBJ4.js +0 -178
- package/dist/chunk-DLNNTQRY.js +0 -217
- package/dist/chunk-FX4V5JCF.js +0 -37
- package/dist/chunk-GC33DBKG.js +0 -143
- package/dist/chunk-NK4NR6MN.js +0 -173
- package/dist/chunk-PFU6FSXY.js +0 -430
- package/dist/chunk-QJEOPT2P.js +0 -330
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-STR3NGWE.js +0 -3736
- package/dist/create-3DOO3RNH.js +0 -716
- package/dist/create-I7HV3RM6.js +0 -150
- package/dist/edit-K2AD335I.js +0 -237
- package/dist/edit-VO5XLIEL.js +0 -362
- package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
- package/dist/organization-LPYQRTQC.js +0 -303
- package/dist/prices-3OXV5RGY.js +0 -270
- package/dist/product-variant-detail-WV4KXVXR.js +0 -590
- package/dist/stock-GPC3BCL6.js +0 -500
- package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
- package/dist/{chunk-6WY5X4PE.js → chunk-L7QKFC5N.js} +7 -7
- /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
|
@@ -23,23 +23,6 @@ var usePricePreferences = (query, options) => {
|
|
|
23
23
|
return { ...data, ...rest };
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
// src/hooks/api/regions.tsx
|
|
27
|
-
import {
|
|
28
|
-
useMutation as useMutation2,
|
|
29
|
-
useQuery as useQuery2
|
|
30
|
-
} from "@tanstack/react-query";
|
|
31
|
-
var REGIONS_QUERY_KEY = "regions";
|
|
32
|
-
var regionsQueryKeys = queryKeysFactory(REGIONS_QUERY_KEY);
|
|
33
|
-
var useRegions = (query, options) => {
|
|
34
|
-
const { data, ...rest } = useQuery2({
|
|
35
|
-
queryFn: () => sdk.vendor.regions.query({ ...query }),
|
|
36
|
-
queryKey: regionsQueryKeys.list(query),
|
|
37
|
-
...options
|
|
38
|
-
});
|
|
39
|
-
return { ...data, ...rest };
|
|
40
|
-
};
|
|
41
|
-
|
|
42
26
|
export {
|
|
43
|
-
usePricePreferences
|
|
44
|
-
useRegions
|
|
27
|
+
usePricePreferences
|
|
45
28
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StatusCell
|
|
3
|
+
} from "./chunk-DB6ANJBO.js";
|
|
4
|
+
import {
|
|
5
|
+
PlaceholderCell
|
|
6
|
+
} from "./chunk-PHOCVOZ5.js";
|
|
7
|
+
import {
|
|
8
|
+
require_dist
|
|
9
|
+
} from "./chunk-DZIXC7OE.js";
|
|
10
|
+
import {
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-NBMM2TZK.js";
|
|
13
|
+
|
|
14
|
+
// src/components/table/table-cells/product/category-cell/category-cell.tsx
|
|
15
|
+
import { Tooltip } from "@medusajs/ui";
|
|
16
|
+
import { useTranslation } from "react-i18next";
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
var CategoryCell = ({ categories }) => {
|
|
19
|
+
const { t } = useTranslation();
|
|
20
|
+
if (!categories || !categories.length) {
|
|
21
|
+
return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
22
|
+
}
|
|
23
|
+
const [first, ...rest] = categories;
|
|
24
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center gap-x-1 overflow-hidden", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("span", { title: first.name, className: "truncate", children: first.name }),
|
|
26
|
+
rest.length > 0 && /* @__PURE__ */ jsx(
|
|
27
|
+
Tooltip,
|
|
28
|
+
{
|
|
29
|
+
content: /* @__PURE__ */ jsx("ul", { children: rest.map((c) => /* @__PURE__ */ jsx("li", { children: c.name }, c.id)) }),
|
|
30
|
+
children: /* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle txt-compact-small", children: t("general.plusCountMore", { count: rest.length }) })
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
35
|
+
var CategoryHeader = () => {
|
|
36
|
+
const { t } = useTranslation();
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx("span", { children: t("fields.category") }) });
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// src/components/table/table-cells/product/product-status-cell/product-status-cell.tsx
|
|
41
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
42
|
+
var import_types = __toESM(require_dist(), 1);
|
|
43
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
44
|
+
var ProductStatusCell = ({ status }) => {
|
|
45
|
+
const { t } = useTranslation2();
|
|
46
|
+
const [color, text] = {
|
|
47
|
+
[import_types.ProductStatus.DRAFT]: ["grey", t("products.productStatus.draft")],
|
|
48
|
+
[import_types.ProductStatus.PROPOSED]: ["orange", t("products.productStatus.proposed")],
|
|
49
|
+
[import_types.ProductStatus.PUBLISHED]: ["green", t("products.productStatus.published")],
|
|
50
|
+
[import_types.ProductStatus.REQUIRES_ACTION]: [
|
|
51
|
+
"blue",
|
|
52
|
+
t("products.productStatus.requires_action")
|
|
53
|
+
],
|
|
54
|
+
[import_types.ProductStatus.REJECTED]: ["red", t("products.productStatus.rejected")]
|
|
55
|
+
}[status];
|
|
56
|
+
return /* @__PURE__ */ jsx2(StatusCell, { color, children: text });
|
|
57
|
+
};
|
|
58
|
+
var ProductStatusHeader = () => {
|
|
59
|
+
const { t } = useTranslation2();
|
|
60
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { children: t("fields.status") }) });
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
CategoryCell,
|
|
65
|
+
CategoryHeader,
|
|
66
|
+
ProductStatusCell,
|
|
67
|
+
ProductStatusHeader
|
|
68
|
+
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_dist
|
|
3
|
+
} from "./chunk-DZIXC7OE.js";
|
|
1
4
|
import {
|
|
2
5
|
useProductTags
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GXIAIITP.js";
|
|
4
7
|
import {
|
|
5
8
|
useProductTypes
|
|
6
9
|
} from "./chunk-VV6IKGCN.js";
|
|
7
10
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-NBMM2TZK.js";
|
|
10
13
|
|
|
11
14
|
// src/hooks/table/filters/use-product-table-filters.tsx
|
|
15
|
+
var import_types = __toESM(require_dist(), 1);
|
|
12
16
|
import { useTranslation } from "react-i18next";
|
|
13
17
|
var useProductTableFilters = (exclude) => {
|
|
14
18
|
const { t } = useTranslation();
|
|
@@ -27,16 +31,7 @@ var useProductTableFilters = (exclude) => {
|
|
|
27
31
|
limit: 1e3,
|
|
28
32
|
offset: 0
|
|
29
33
|
});
|
|
30
|
-
const
|
|
31
|
-
const { sales_channels } = useSalesChannels(
|
|
32
|
-
{
|
|
33
|
-
limit: 1e3,
|
|
34
|
-
fields: "id,name"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
enabled: !isSalesChannelExcluded
|
|
38
|
-
}
|
|
39
|
-
);
|
|
34
|
+
const isCategoryExcluded = exclude?.includes("categories");
|
|
40
35
|
let filters = [];
|
|
41
36
|
if (product_types && !isProductTypeExcluded) {
|
|
42
37
|
const typeFilter = {
|
|
@@ -66,20 +61,6 @@ var useProductTableFilters = (exclude) => {
|
|
|
66
61
|
};
|
|
67
62
|
filters = [...filters, tagFilter];
|
|
68
63
|
}
|
|
69
|
-
if (sales_channels) {
|
|
70
|
-
const salesChannelFilter = {
|
|
71
|
-
key: "sales_channel_id",
|
|
72
|
-
label: t("fields.salesChannel"),
|
|
73
|
-
type: "select",
|
|
74
|
-
multiple: true,
|
|
75
|
-
searchable: true,
|
|
76
|
-
options: sales_channels.map((s) => ({
|
|
77
|
-
label: s.name,
|
|
78
|
-
value: s.id
|
|
79
|
-
}))
|
|
80
|
-
};
|
|
81
|
-
filters = [...filters, salesChannelFilter];
|
|
82
|
-
}
|
|
83
64
|
const statusFilter = {
|
|
84
65
|
key: "status",
|
|
85
66
|
label: t("fields.status"),
|
|
@@ -88,19 +69,23 @@ var useProductTableFilters = (exclude) => {
|
|
|
88
69
|
options: [
|
|
89
70
|
{
|
|
90
71
|
label: t("products.productStatus.draft"),
|
|
91
|
-
value:
|
|
72
|
+
value: import_types.ProductStatus.DRAFT
|
|
92
73
|
},
|
|
93
74
|
{
|
|
94
75
|
label: t("products.productStatus.proposed"),
|
|
95
|
-
value:
|
|
76
|
+
value: import_types.ProductStatus.PROPOSED
|
|
96
77
|
},
|
|
97
78
|
{
|
|
98
79
|
label: t("products.productStatus.published"),
|
|
99
|
-
value:
|
|
80
|
+
value: import_types.ProductStatus.PUBLISHED
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: t("products.productStatus.requires_action"),
|
|
84
|
+
value: import_types.ProductStatus.REQUIRES_ACTION
|
|
100
85
|
},
|
|
101
86
|
{
|
|
102
87
|
label: t("products.productStatus.rejected"),
|
|
103
|
-
value:
|
|
88
|
+
value: import_types.ProductStatus.REJECTED
|
|
104
89
|
}
|
|
105
90
|
]
|
|
106
91
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeletePriceListAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7LBY5JLV.js";
|
|
4
4
|
import {
|
|
5
5
|
getPriceListStatus
|
|
6
6
|
} from "./chunk-XRNDVICA.js";
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
} from "./chunk-AIF2KTEE.js";
|
|
21
21
|
import {
|
|
22
22
|
SingleColumnPage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
24
24
|
import {
|
|
25
25
|
useQueryParams
|
|
26
26
|
} from "./chunk-THHRRYRS.js";
|
|
27
27
|
import {
|
|
28
28
|
usePriceLists
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NHFEY3EI.js";
|
|
30
30
|
import {
|
|
31
31
|
ActionMenu
|
|
32
32
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -33,13 +33,13 @@ import {
|
|
|
33
33
|
} from "./chunk-CMHI2RPL.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableColumns
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GGWUWT55.js";
|
|
37
37
|
import {
|
|
38
38
|
useProductTableQuery
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-H6LZ77GX.js";
|
|
40
40
|
import {
|
|
41
41
|
useProductTableFilters
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5L2DCA4W.js";
|
|
43
43
|
import {
|
|
44
44
|
_DataTable,
|
|
45
45
|
useDataTable
|
|
@@ -47,22 +47,22 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
StackedDrawer,
|
|
49
49
|
StackedFocusModal
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-GDWBOQI5.js";
|
|
51
51
|
import {
|
|
52
52
|
useProductTags
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GXIAIITP.js";
|
|
54
54
|
import {
|
|
55
55
|
useProductTypes
|
|
56
56
|
} from "./chunk-VV6IKGCN.js";
|
|
57
|
-
import {
|
|
58
|
-
useCollections
|
|
59
|
-
} from "./chunk-RL7SFZOF.js";
|
|
60
57
|
import {
|
|
61
58
|
useCustomerGroups
|
|
62
59
|
} from "./chunk-LWJF63JW.js";
|
|
60
|
+
import {
|
|
61
|
+
useCollections
|
|
62
|
+
} from "./chunk-NXNJQZCP.js";
|
|
63
63
|
import {
|
|
64
64
|
useProducts
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-QNNJN4H6.js";
|
|
66
66
|
|
|
67
67
|
// src/pages/settings/tax-regions/_common/components/target-form.tsx
|
|
68
68
|
import { Button, Checkbox } from "@medusajs/ui";
|