@medusajs/dashboard 3.0.0-snapshot-20251202221811 → 3.0.0-snapshot-20251208164410
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/{adjust-inventory-WZOCLB5V.mjs → adjust-inventory-ZB3AVET7.mjs} +1 -1
- package/dist/{api-key-management-create-W7NL2IYN.mjs → api-key-management-create-U6VGZK7R.mjs} +3 -3
- package/dist/{api-key-management-detail-LDBEO446.mjs → api-key-management-detail-OEAWWV5O.mjs} +13 -13
- package/dist/{api-key-management-edit-TLVLXAVK.mjs → api-key-management-edit-TJM737A7.mjs} +3 -3
- package/dist/{api-key-management-list-FTLC3ELT.mjs → api-key-management-list-ZRYMMTF5.mjs} +3 -3
- package/dist/{api-key-management-sales-channels-NYY3NZOE.mjs → api-key-management-sales-channels-D2RAHI7W.mjs} +4 -4
- package/dist/app.css +3 -3
- package/dist/app.js +17416 -15980
- package/dist/app.mjs +11 -11
- package/dist/{campaign-create-LHL7FKQK.mjs → campaign-create-IXOWJQ4L.mjs} +3 -3
- package/dist/{campaign-detail-T3V6M3XE.mjs → campaign-detail-TFQCDDIN.mjs} +10 -10
- package/dist/{categories-metadata-V6FDXGSN.mjs → categories-metadata-7JFVYYUN.mjs} +10 -10
- package/dist/{category-create-ELMCLH4J.mjs → category-create-BTMZYQ5R.mjs} +5 -5
- package/dist/{category-detail-DNWTF4FV.mjs → category-detail-UUEMLEVJ.mjs} +14 -14
- package/dist/{category-edit-TYKLEYGE.mjs → category-edit-Q3KEELHO.mjs} +2 -2
- package/dist/{category-list-IJ3DLPYQ.mjs → category-list-Z6HS6N75.mjs} +5 -5
- package/dist/{category-organize-PDLC54E2.mjs → category-organize-45NPSRNG.mjs} +2 -2
- package/dist/{category-products-ATK63QHB.mjs → category-products-KW6X3JDW.mjs} +13 -13
- package/dist/{chunk-WPXYFJEP.mjs → chunk-2WLOIS3L.mjs} +1 -1
- package/dist/{chunk-UHIPGDJZ.mjs → chunk-35G7IXTE.mjs} +15 -15
- package/dist/{chunk-DODQ3KJT.mjs → chunk-3RRA56WC.mjs} +8 -3
- package/dist/{chunk-DKIUGYWW.mjs → chunk-3ZJ55SFA.mjs} +2 -2
- package/dist/{chunk-OXPE5TAY.mjs → chunk-42TMWI76.mjs} +1 -1
- package/dist/{chunk-OFN7DIZA.mjs → chunk-5AM254NB.mjs} +83 -3
- package/dist/{chunk-56TDUOXV.mjs → chunk-5N33TBBX.mjs} +1 -1
- package/dist/{chunk-5LGRZSEH.mjs → chunk-67RC6SEX.mjs} +1 -1
- package/dist/{chunk-O4RZ3Y65.mjs → chunk-7H6DB666.mjs} +1 -1
- package/dist/{chunk-5EGFR4EO.mjs → chunk-AGBHQZZT.mjs} +318 -236
- package/dist/{chunk-E3AFVPLW.mjs → chunk-BWU3ZE4W.mjs} +1 -1
- package/dist/{chunk-IKTS7EHT.mjs → chunk-D55WNQYO.mjs} +1 -1
- package/dist/{chunk-XDLBQGST.mjs → chunk-EFRTOOI5.mjs} +1 -1
- package/dist/{chunk-ETOJCN3Q.mjs → chunk-FJHAGJ5G.mjs} +1 -1
- package/dist/{chunk-K5QWNI6V.mjs → chunk-FNQ227BC.mjs} +1 -1
- package/dist/{chunk-A6PWH2CK.mjs → chunk-GHBURGZC.mjs} +1 -1
- package/dist/{chunk-4MG5LND4.mjs → chunk-HEYM67GY.mjs} +1 -1
- package/dist/{chunk-QHRVYT5N.mjs → chunk-HRSO6H4F.mjs} +3 -3
- package/dist/{chunk-REUYEF7L.mjs → chunk-MB7M5THW.mjs} +1 -1
- package/dist/{chunk-KLNRCI3K.mjs → chunk-MOGV3UZD.mjs} +1 -1
- package/dist/{chunk-3C6WQ7NH.mjs → chunk-NFEW5CVI.mjs} +37 -3
- package/dist/{chunk-VGXF4DOW.mjs → chunk-NKGKWMUU.mjs} +5 -5
- package/dist/{chunk-RLDK4LY5.mjs → chunk-NTYLG6Y3.mjs} +1 -1
- package/dist/{chunk-AF7A24XI.mjs → chunk-O5DGX2NZ.mjs} +1 -1
- package/dist/{chunk-T2ANPJ36.mjs → chunk-OMRGW7JS.mjs} +3 -3
- package/dist/{chunk-7V2JZU2B.mjs → chunk-P23S5LDK.mjs} +2 -2
- package/dist/{chunk-OAW7KLET.mjs → chunk-PPRHEG37.mjs} +2 -2
- package/dist/{chunk-AENRV3N7.mjs → chunk-QW4SQVMT.mjs} +109 -50
- package/dist/{chunk-MWBKAP7W.mjs → chunk-RNYL6AXZ.mjs} +2 -2
- package/dist/{chunk-KWP436SM.mjs → chunk-S3MMZPMX.mjs} +2 -2
- package/dist/{chunk-ND5YSIPU.mjs → chunk-SAZHCRHS.mjs} +1 -1
- package/dist/{chunk-M3CKVBZC.mjs → chunk-YGEJFHC3.mjs} +1 -1
- package/dist/chunk-ZHH3W7CN.mjs +171 -0
- package/dist/{collection-add-products-7WSD7YU4.mjs → collection-add-products-YSTEEHMF.mjs} +14 -14
- package/dist/{collection-create-I2A2X4VK.mjs → collection-create-RIGJHEX5.mjs} +2 -2
- package/dist/{collection-detail-NVE55BPK.mjs → collection-detail-P5JWWFHH.mjs} +14 -14
- package/dist/{collection-edit-RGH7NCUE.mjs → collection-edit-WX5G3FHR.mjs} +2 -2
- package/dist/{collection-list-SXHRKTIU.mjs → collection-list-PU6SWYVL.mjs} +24 -23
- package/dist/{collection-metadata-ZREV7BND.mjs → collection-metadata-R55DUZSX.mjs} +11 -11
- package/dist/{customer-detail-O4L55RY6.mjs → customer-detail-HVGU3DRM.mjs} +14 -14
- package/dist/{customer-group-detail-LSZA4ARM.mjs → customer-group-detail-QKFWIFYH.mjs} +13 -13
- package/dist/{customer-group-list-6JTEUJAC.mjs → customer-group-list-WLG2ZMBD.mjs} +13 -13
- package/dist/{customers-add-customer-group-MHJ34FDF.mjs → customers-add-customer-group-KL5UXXOR.mjs} +13 -13
- package/dist/{edit-inventory-item-LMDNUI6M.mjs → edit-inventory-item-O6JLGZE4.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-DPJIHBP3.mjs → edit-inventory-item-attributes-AUVR3GYY.mjs} +1 -1
- package/dist/{edit-reservation-IOOZBJ2T.mjs → edit-reservation-GQ6R6GVA.mjs} +2 -2
- package/dist/{edit-rules-CEE2IKS6.mjs → edit-rules-PJWEWMM7.mjs} +12 -12
- package/dist/en.json +49 -3
- package/dist/{inventory-create-H62EOWR6.mjs → inventory-create-P3WYAGQZ.mjs} +10 -10
- package/dist/{inventory-detail-ALOIH3H7.mjs → inventory-detail-C2NU7GTA.mjs} +10 -10
- package/dist/{inventory-list-RQBI7UJX.mjs → inventory-list-ADJQDNX5.mjs} +1 -1
- package/dist/{inventory-metadata-ICOCEY75.mjs → inventory-metadata-V2N3HOPG.mjs} +10 -10
- package/dist/{inventory-stock-LDEZTKU4.mjs → inventory-stock-5DCIGKBI.mjs} +10 -10
- package/dist/{location-detail-UNXAQQSZ.mjs → location-detail-2CJWVT5M.mjs} +15 -15
- package/dist/{location-fulfillment-providers-XVFFAB6I.mjs → location-fulfillment-providers-PYPUR74W.mjs} +15 -14
- package/dist/{location-sales-channels-UVYT52SH.mjs → location-sales-channels-JPH5BTUY.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-THNTZX5P.mjs → location-service-zone-shipping-option-create-HLZLP422.mjs} +11 -11
- package/dist/{location-service-zone-shipping-option-edit-TQNTCYII.mjs → location-service-zone-shipping-option-edit-OYTEZGGC.mjs} +4 -4
- package/dist/{login-EMANCYJH.mjs → login-AKO3BIQT.mjs} +10 -10
- package/dist/{manage-locations-2VDQ3ILT.mjs → manage-locations-ATCDVTSR.mjs} +1 -1
- package/dist/{order-allocate-items-FCJTB2IB.mjs → order-allocate-items-2H25GRTK.mjs} +3 -3
- package/dist/{order-create-claim-P5ADYS5P.mjs → order-create-claim-CWGDAFFU.mjs} +17 -17
- package/dist/{order-create-edit-CVPRRPOA.mjs → order-create-edit-KJODOQXN.mjs} +11 -11
- package/dist/{order-create-exchange-IHV6VKO5.mjs → order-create-exchange-TM4FQLKM.mjs} +23 -23
- package/dist/{order-create-fulfillment-SY6UM3NJ.mjs → order-create-fulfillment-2WJZPAWX.mjs} +14 -14
- package/dist/{order-create-refund-AGKPMCF6.mjs → order-create-refund-A6WKCHX7.mjs} +15 -15
- package/dist/{order-create-return-5UH7FN3H.mjs → order-create-return-NDKTI4E5.mjs} +5 -5
- package/dist/{order-create-shipment-J34CYL32.mjs → order-create-shipment-3AVEAGAY.mjs} +10 -10
- package/dist/{order-detail-EVDCA6UP.mjs → order-detail-7HXZEBWJ.mjs} +31 -31
- package/dist/{order-edit-billing-address-JH3XNOCQ.mjs → order-edit-billing-address-DPK7HTLM.mjs} +10 -10
- package/dist/{order-edit-email-KV2IHQRT.mjs → order-edit-email-UJ2OUKHJ.mjs} +10 -10
- package/dist/{order-edit-shipping-address-WMNNU53B.mjs → order-edit-shipping-address-5ZCGHHZE.mjs} +10 -10
- package/dist/{order-list-26YQAIRH.mjs → order-list-5C4TVJRH.mjs} +4 -4
- package/dist/{order-metadata-F4LZ73LR.mjs → order-metadata-UKTGLYWR.mjs} +10 -10
- package/dist/{order-receive-return-LSMD7POH.mjs → order-receive-return-N7VLM2GX.mjs} +11 -11
- package/dist/{order-request-transfer-A3EBBZ5N.mjs → order-request-transfer-5ENT7IOT.mjs} +11 -11
- package/dist/{price-list-configuration-2G3WFC3J.mjs → price-list-configuration-SS2VMD4N.mjs} +4 -4
- package/dist/{price-list-create-RLT7G7KF.mjs → price-list-create-FF4F6M2A.mjs} +17 -17
- package/dist/{price-list-detail-TKRELOK2.mjs → price-list-detail-HQF4ZR2U.mjs} +17 -17
- package/dist/{price-list-edit-6URYI6AK.mjs → price-list-edit-VRI5T4W3.mjs} +2 -2
- package/dist/{price-list-list-FLINOQCK.mjs → price-list-list-S2HWTXKV.mjs} +3 -3
- package/dist/{price-list-prices-add-UPUY72HG.mjs → price-list-prices-add-JYZAHKAQ.mjs} +13 -13
- package/dist/{price-list-prices-edit-ZHAQDPWX.mjs → price-list-prices-edit-TRCLLGU4.mjs} +2 -2
- package/dist/{product-attributes-ZR63AQWA.mjs → product-attributes-NEXVST24.mjs} +12 -12
- package/dist/{product-create-EQ6SN5QT.mjs → product-create-WU4YFCMM.mjs} +377 -554
- package/dist/{product-create-variant-7C5PKKX7.mjs → product-create-variant-RDEE4IX7.mjs} +11 -11
- package/dist/{product-detail-ATPFDPI2.mjs → product-detail-J4JYWH2M.mjs} +38 -54
- package/dist/{product-edit-XPUNYMD7.mjs → product-edit-ZF2WYHPB.mjs} +12 -12
- package/dist/{product-export-GFLEIKIM.mjs → product-export-QDX6343F.mjs} +23 -22
- package/dist/{product-image-variants-edit-TC3M4PGX.mjs → product-image-variants-edit-5L5J32SO.mjs} +10 -10
- package/dist/{product-import-2Z5I7RXI.mjs → product-import-6TEVSKGQ.mjs} +10 -10
- package/dist/{product-list-33ANLONH.mjs → product-list-BHGGJX6B.mjs} +17 -17
- package/dist/{product-media-WCLPCVR3.mjs → product-media-EKXMOSO4.mjs} +2 -2
- package/dist/{product-metadata-GQU7EVZ3.mjs → product-metadata-BCJJNWAC.mjs} +10 -10
- package/dist/product-option-create-3Z73MSHD.mjs +336 -0
- package/dist/product-option-detail-4VRUA7KT.mjs +322 -0
- package/dist/product-option-edit-YIKFL6OY.mjs +324 -0
- package/dist/product-option-list-CR7NCCMH.mjs +267 -0
- package/dist/product-option-metadata-7CSZUQ7M.mjs +71 -0
- package/dist/product-options-manage-QOMXMPGW.mjs +304 -0
- package/dist/{product-organization-T2TQ5EH6.mjs → product-organization-IG54OB75.mjs} +14 -14
- package/dist/{product-prices-MKMKBH6P.mjs → product-prices-UMEIS5AZ.mjs} +1 -1
- package/dist/{product-sales-channels-5YIO22UW.mjs → product-sales-channels-2SALTLTF.mjs} +3 -3
- package/dist/{product-shipping-profile-PL76UMVZ.mjs → product-shipping-profile-VPHZLKDT.mjs} +13 -13
- package/dist/{product-stock-6QHBTDUQ.mjs → product-stock-3ILUPCVN.mjs} +10 -10
- package/dist/{product-tag-create-B6EOKDJT.mjs → product-tag-create-OOUTLHHD.mjs} +10 -10
- package/dist/{product-tag-detail-TQP7ZWSR.mjs → product-tag-detail-YVKJEAKT.mjs} +28 -27
- package/dist/{product-tag-edit-RPLWDG5A.mjs → product-tag-edit-RV5WITSN.mjs} +10 -10
- package/dist/{product-tag-list-PZTGHM7M.mjs → product-tag-list-ZSPFYZIL.mjs} +26 -25
- package/dist/{product-tag-metadata-FKKOT5CD.mjs → product-tag-metadata-S5YL3FUL.mjs} +10 -10
- package/dist/{product-type-detail-DDIBFR7O.mjs → product-type-detail-EFVZRETM.mjs} +13 -13
- package/dist/{product-type-metadata-EXCYTTQG.mjs → product-type-metadata-TNAASDKX.mjs} +10 -10
- package/dist/{product-variant-detail-GCESZH4H.mjs → product-variant-detail-CLP5FJP6.mjs} +10 -10
- package/dist/{product-variant-edit-JHOQJN6U.mjs → product-variant-edit-REMB77V7.mjs} +11 -11
- package/dist/{product-variant-manage-inventory-items-B7TUBSD5.mjs → product-variant-manage-inventory-items-IGDCLZQE.mjs} +2 -2
- package/dist/{product-variant-media-6WWLRINP.mjs → product-variant-media-EKI4BTEV.mjs} +1 -1
- package/dist/{product-variant-metadata-NEZIGTEP.mjs → product-variant-metadata-5JIY5KLN.mjs} +10 -10
- package/dist/{promotion-add-campaign-MKDYE7MW.mjs → promotion-add-campaign-DOALJUKJ.mjs} +3 -3
- package/dist/{promotion-create-CUAQY2NH.mjs → promotion-create-2PTB6NQI.mjs} +18 -18
- package/dist/{promotion-detail-2S7FWTXF.mjs → promotion-detail-RGXCA2XS.mjs} +10 -10
- package/dist/{refund-reason-create-4YAO4325.mjs → refund-reason-create-AGEFXEIZ.mjs} +10 -10
- package/dist/{refund-reason-edit-5J2VIRIL.mjs → refund-reason-edit-DL56EKBY.mjs} +10 -10
- package/dist/{refund-reason-list-453DXONV.mjs → refund-reason-list-RL2ZG7IJ.mjs} +13 -13
- package/dist/{region-create-QLPSK6TX.mjs → region-create-UVJICJRX.mjs} +1 -1
- package/dist/{region-edit-JCJHA6TY.mjs → region-edit-3NVXQECN.mjs} +1 -1
- package/dist/{region-metadata-C7DIBM35.mjs → region-metadata-2HO3SAPM.mjs} +10 -10
- package/dist/{reservation-create-BW4CDTWR.mjs → reservation-create-Z7TWUE2L.mjs} +3 -3
- package/dist/{reservation-detail-GFNWLSI2.mjs → reservation-detail-2AOBK5EY.mjs} +10 -10
- package/dist/{reservation-list-RGL67CIU.mjs → reservation-list-MN22JYAW.mjs} +2 -2
- package/dist/{reservation-metadata-OI2G4BDW.mjs → reservation-metadata-BFPJTXK6.mjs} +10 -10
- package/dist/{sales-channel-add-products-63NGB37Z.mjs → sales-channel-add-products-4LNP2TUM.mjs} +13 -13
- package/dist/{sales-channel-create-TOBEDYFD.mjs → sales-channel-create-UFFXX5HK.mjs} +2 -2
- package/dist/{sales-channel-detail-LJPQAJDT.mjs → sales-channel-detail-UMYMS2JA.mjs} +13 -13
- package/dist/{sales-channel-edit-XUTE5GB5.mjs → sales-channel-edit-SP2HF4E3.mjs} +2 -2
- package/dist/{sales-channel-list-TBAN7UT6.mjs → sales-channel-list-CV4V6R7H.mjs} +11 -11
- package/dist/{sales-channel-metadata-SE4TGSDB.mjs → sales-channel-metadata-REOQHHUT.mjs} +10 -10
- package/dist/{shipping-option-type-create-MB4ENYKV.mjs → shipping-option-type-create-XAWQO66M.mjs} +10 -10
- package/dist/{shipping-option-type-detail-IX4JGSTK.mjs → shipping-option-type-detail-G4WLGIAA.mjs} +11 -11
- package/dist/{shipping-option-type-edit-B5KU5LER.mjs → shipping-option-type-edit-OI6TBKGG.mjs} +10 -10
- package/dist/{shipping-option-type-list-TVR5OE2C.mjs → shipping-option-type-list-6GNCKAFB.mjs} +11 -11
- package/dist/{shipping-profile-metadata-Z35SYLBS.mjs → shipping-profile-metadata-MANQ7ZEI.mjs} +10 -10
- package/dist/{store-detail-VUJSSOKZ.mjs → store-detail-N2CP3MTB.mjs} +10 -10
- package/dist/{store-edit-3XS6IC2Z.mjs → store-edit-Q25HCMCQ.mjs} +1 -1
- package/dist/{store-metadata-TYFTDOEK.mjs → store-metadata-U22TVWK2.mjs} +10 -10
- package/dist/{tax-region-create-ZTCTKE4C.mjs → tax-region-create-JZB7NFIG.mjs} +11 -11
- package/dist/{tax-region-detail-MHM4MAOS.mjs → tax-region-detail-CBZ3ZJN2.mjs} +29 -28
- package/dist/{tax-region-edit-SFJGFTAV.mjs → tax-region-edit-E56XVHW2.mjs} +11 -11
- package/dist/{tax-region-province-detail-VMOV4JPV.mjs → tax-region-province-detail-2DC2U4EN.mjs} +29 -28
- package/dist/{tax-region-tax-override-create-GRXLTURD.mjs → tax-region-tax-override-create-JWGWGYB4.mjs} +28 -27
- package/dist/{tax-region-tax-override-edit-D2YBOBEI.mjs → tax-region-tax-override-edit-7DCU55AS.mjs} +27 -26
- package/dist/{user-detail-N6PT3KRP.mjs → user-detail-K5UMPO2L.mjs} +1 -1
- package/dist/{user-metadata-D5HNZWZY.mjs → user-metadata-EX5WDGCR.mjs} +10 -10
- package/dist/{workflow-execution-detail-GSUDCTN3.mjs → workflow-execution-detail-GBPFVG3O.mjs} +10 -10
- package/package.json +9 -9
- package/src/components/inputs/combobox/combobox.tsx +173 -92
- package/src/components/layout/main-layout/main-layout.tsx +7 -4
- package/src/dashboard-app/routes/get-route.map.tsx +64 -12
- package/src/hooks/api/index.ts +1 -0
- package/src/hooks/api/product-options.tsx +151 -0
- package/src/hooks/api/products.tsx +26 -66
- package/src/hooks/table/columns/use-product-option-table-columns.tsx +44 -0
- package/src/hooks/table/filters/index.ts +1 -0
- package/src/hooks/table/filters/use-product-option-table-filters.tsx +33 -0
- package/src/hooks/table/query/use-product-option-table-query.tsx +34 -0
- package/src/i18n/translations/$schema.json +171 -4
- package/src/i18n/translations/en.json +49 -3
- package/src/routes/product-options/common/hooks/use-delete-product-option-action.tsx +41 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-details.tsx +71 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-form.tsx +192 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-organize.tsx +77 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/index.ts +1 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/schema.ts +15 -0
- package/src/routes/product-options/product-option-create/index.ts +1 -0
- package/src/routes/product-options/product-option-create/product-option-create.tsx +10 -0
- package/src/routes/product-options/product-option-detail/breadcrumb.tsx +14 -0
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/index.ts +1 -0
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/product-option-general-section.tsx +81 -0
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/index.ts +1 -0
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/product-option-product-section.tsx +74 -0
- package/src/routes/product-options/product-option-detail/index.ts +3 -0
- package/src/routes/product-options/product-option-detail/loader.ts +17 -0
- package/src/routes/product-options/product-option-detail/product-option-detail.tsx +50 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-details.tsx +94 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-form.tsx +116 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-organize.tsx +77 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/index.ts +1 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/schema.ts +13 -0
- package/src/routes/product-options/product-option-edit/index.ts +1 -0
- package/src/routes/product-options/product-option-edit/product-option-edit.tsx +34 -0
- package/src/routes/product-options/product-option-list/components/product-option-list-table/index.ts +1 -0
- package/src/routes/product-options/product-option-list/components/product-option-list-table/product-option-list-table.tsx +140 -0
- package/src/routes/product-options/product-option-list/index.ts +1 -0
- package/src/routes/product-options/product-option-list/product-option-list.tsx +19 -0
- package/src/routes/product-options/product-option-metadata/index.ts +1 -0
- package/src/routes/product-options/product-option-metadata/product-option-metadata.tsx +27 -0
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx +16 -4
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +220 -198
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +4 -7
- package/src/routes/products/product-create/constants.ts +2 -0
- package/src/routes/products/product-create/utils.ts +6 -1
- package/src/routes/products/product-detail/components/product-option-section/product-option-section.tsx +31 -49
- package/src/routes/products/product-options-manage/components/product-options-manage-form/index.ts +1 -0
- package/src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx +284 -0
- package/src/routes/products/product-options-manage/index.ts +1 -0
- package/src/routes/products/product-options-manage/product-options-manage.tsx +35 -0
- package/dist/product-create-option-GAEPSU6J.mjs +0 -145
- package/dist/product-edit-option-VIU3ZICO.mjs +0 -150
- package/src/routes/products/product-create-option/components/create-product-option-form/create-product-option-form.tsx +0 -122
- package/src/routes/products/product-create-option/components/create-product-option-form/index.ts +0 -1
- package/src/routes/products/product-create-option/index.ts +0 -1
- package/src/routes/products/product-create-option/product-create-option.tsx +0 -26
- package/src/routes/products/product-edit-option/components/edit-product-option-form/edit-product-option-form.tsx +0 -123
- package/src/routes/products/product-edit-option/components/edit-product-option-form/index.ts +0 -1
- package/src/routes/products/product-edit-option/index.ts +0 -1
- package/src/routes/products/product-edit-option/product-edit-option.tsx +0 -32
- 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-list-OYBI7EGV.mjs → location-list-ZJMZZ6T3.mjs} +1 -1
- 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/{return-reason-list-VYLLXDG4.mjs → return-reason-list-ATE2XU4H.mjs} +3 -3
- package/dist/{user-list-6KATHOTJ.mjs → user-list-KPI3BTOA.mjs} +3 -3
package/dist/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardApp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AGBHQZZT.mjs";
|
|
4
4
|
import "./chunk-2SSUH2HJ.mjs";
|
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
|
6
6
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -19,33 +19,33 @@ 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-NTYLG6Y3.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
24
25
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
26
|
import "./chunk-6CLQKVAU.mjs";
|
|
26
|
-
import "./chunk-HKIF5HVL.mjs";
|
|
27
|
-
import "./chunk-M3CKVBZC.mjs";
|
|
28
27
|
import "./chunk-KI7TOXBR.mjs";
|
|
28
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
29
29
|
import "./chunk-WAXMT4IY.mjs";
|
|
30
30
|
import "./chunk-DYDGGABK.mjs";
|
|
31
31
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
32
32
|
import "./chunk-CN7JXSGW.mjs";
|
|
33
33
|
import "./chunk-5BQQRHQS.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-7H6DB666.mjs";
|
|
35
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
35
36
|
import "./chunk-5AFMB7XQ.mjs";
|
|
36
|
-
import "./chunk-O4RZ3Y65.mjs";
|
|
37
37
|
import "./chunk-A63RZVX6.mjs";
|
|
38
38
|
import "./chunk-HBXV7ENS.mjs";
|
|
39
39
|
import "./chunk-CDORR33H.mjs";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-3ZJ55SFA.mjs";
|
|
41
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
42
|
+
import "./chunk-5N33TBBX.mjs";
|
|
43
|
+
import "./chunk-FNQ227BC.mjs";
|
|
44
44
|
import "./chunk-3BF5SC66.mjs";
|
|
45
45
|
import "./chunk-VCSSQVPD.mjs";
|
|
46
46
|
import "./chunk-HP2JH45P.mjs";
|
|
47
47
|
import "./chunk-SQDIZZDW.mjs";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
49
49
|
import "./chunk-FXYH54JP.mjs";
|
|
50
50
|
import "./chunk-774WSTCC.mjs";
|
|
51
51
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OMRGW7JS.mjs";
|
|
4
|
+
import "./chunk-67RC6SEX.mjs";
|
|
4
5
|
import "./chunk-F6ZOHZVB.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-OFN7DIZA.mjs";
|
|
6
|
+
import "./chunk-5AM254NB.mjs";
|
|
7
7
|
import "./chunk-DK4WIVY6.mjs";
|
|
8
8
|
import "./chunk-IUCDCPJU.mjs";
|
|
9
9
|
import "./chunk-6HTZNHPT.mjs";
|
|
@@ -42,21 +42,21 @@ 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-NTYLG6Y3.mjs";
|
|
46
46
|
import "./chunk-I4OBEAOJ.mjs";
|
|
47
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
47
48
|
import "./chunk-HI6URQ7H.mjs";
|
|
48
49
|
import "./chunk-6CLQKVAU.mjs";
|
|
49
|
-
import "./chunk-HKIF5HVL.mjs";
|
|
50
|
-
import "./chunk-M3CKVBZC.mjs";
|
|
51
50
|
import "./chunk-KI7TOXBR.mjs";
|
|
51
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
52
52
|
import "./chunk-WAXMT4IY.mjs";
|
|
53
53
|
import "./chunk-DYDGGABK.mjs";
|
|
54
54
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
55
55
|
import "./chunk-CN7JXSGW.mjs";
|
|
56
56
|
import "./chunk-5BQQRHQS.mjs";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-7H6DB666.mjs";
|
|
58
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
58
59
|
import "./chunk-5AFMB7XQ.mjs";
|
|
59
|
-
import "./chunk-O4RZ3Y65.mjs";
|
|
60
60
|
import {
|
|
61
61
|
campaignsQueryKeys,
|
|
62
62
|
useAddOrRemoveCampaignPromotions,
|
|
@@ -66,15 +66,15 @@ import {
|
|
|
66
66
|
} from "./chunk-A63RZVX6.mjs";
|
|
67
67
|
import "./chunk-HBXV7ENS.mjs";
|
|
68
68
|
import "./chunk-CDORR33H.mjs";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-3ZJ55SFA.mjs";
|
|
70
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
71
|
+
import "./chunk-5N33TBBX.mjs";
|
|
72
|
+
import "./chunk-FNQ227BC.mjs";
|
|
73
73
|
import "./chunk-3BF5SC66.mjs";
|
|
74
74
|
import "./chunk-VCSSQVPD.mjs";
|
|
75
75
|
import "./chunk-HP2JH45P.mjs";
|
|
76
76
|
import "./chunk-SQDIZZDW.mjs";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
78
78
|
import {
|
|
79
79
|
queryClient
|
|
80
80
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -11,36 +11,36 @@ 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-NTYLG6Y3.mjs";
|
|
15
15
|
import "./chunk-I4OBEAOJ.mjs";
|
|
16
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
16
17
|
import "./chunk-HI6URQ7H.mjs";
|
|
17
18
|
import "./chunk-6CLQKVAU.mjs";
|
|
18
|
-
import "./chunk-HKIF5HVL.mjs";
|
|
19
|
-
import "./chunk-M3CKVBZC.mjs";
|
|
20
19
|
import "./chunk-KI7TOXBR.mjs";
|
|
20
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
21
21
|
import "./chunk-WAXMT4IY.mjs";
|
|
22
22
|
import "./chunk-DYDGGABK.mjs";
|
|
23
23
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
24
24
|
import "./chunk-CN7JXSGW.mjs";
|
|
25
25
|
import "./chunk-5BQQRHQS.mjs";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-7H6DB666.mjs";
|
|
27
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
27
28
|
import "./chunk-5AFMB7XQ.mjs";
|
|
28
|
-
import "./chunk-O4RZ3Y65.mjs";
|
|
29
29
|
import "./chunk-A63RZVX6.mjs";
|
|
30
30
|
import "./chunk-HBXV7ENS.mjs";
|
|
31
31
|
import "./chunk-CDORR33H.mjs";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-3ZJ55SFA.mjs";
|
|
33
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
34
34
|
import {
|
|
35
35
|
useProductCategory,
|
|
36
36
|
useUpdateProductCategory
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
38
|
+
import "./chunk-FNQ227BC.mjs";
|
|
39
39
|
import "./chunk-3BF5SC66.mjs";
|
|
40
40
|
import "./chunk-VCSSQVPD.mjs";
|
|
41
41
|
import "./chunk-HP2JH45P.mjs";
|
|
42
42
|
import "./chunk-SQDIZZDW.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
44
44
|
import "./chunk-FXYH54JP.mjs";
|
|
45
45
|
import "./chunk-774WSTCC.mjs";
|
|
46
46
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CategoryTree
|
|
3
|
-
} from "./chunk-XDCNT5GQ.mjs";
|
|
4
1
|
import {
|
|
5
2
|
insertCategoryTreeItem
|
|
6
3
|
} from "./chunk-54IEHX46.mjs";
|
|
4
|
+
import {
|
|
5
|
+
CategoryTree
|
|
6
|
+
} from "./chunk-XDCNT5GQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HandleInput
|
|
9
9
|
} from "./chunk-7OYLCEKK.mjs";
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
useCreateProductCategory,
|
|
30
30
|
useProductCategories
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
32
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
33
33
|
import "./chunk-FXYH54JP.mjs";
|
|
34
34
|
import "./chunk-774WSTCC.mjs";
|
|
35
35
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteProductCategoryAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O5DGX2NZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getCategoryChildren,
|
|
6
6
|
getCategoryPath,
|
|
@@ -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-PPRHEG37.mjs";
|
|
27
30
|
import {
|
|
28
31
|
useProductTableQuery
|
|
29
32
|
} from "./chunk-PCFUZKDS.mjs";
|
|
30
|
-
import {
|
|
31
|
-
useProductTableFilters
|
|
32
|
-
} from "./chunk-OAW7KLET.mjs";
|
|
33
33
|
import "./chunk-GU5PJRPM.mjs";
|
|
34
34
|
import {
|
|
35
35
|
TwoColumnPage
|
|
@@ -50,39 +50,39 @@ 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-NTYLG6Y3.mjs";
|
|
54
54
|
import "./chunk-I4OBEAOJ.mjs";
|
|
55
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
55
56
|
import "./chunk-HI6URQ7H.mjs";
|
|
56
57
|
import "./chunk-6CLQKVAU.mjs";
|
|
57
|
-
import "./chunk-HKIF5HVL.mjs";
|
|
58
|
-
import "./chunk-M3CKVBZC.mjs";
|
|
59
58
|
import "./chunk-KI7TOXBR.mjs";
|
|
59
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
60
60
|
import "./chunk-WAXMT4IY.mjs";
|
|
61
61
|
import "./chunk-DYDGGABK.mjs";
|
|
62
62
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
63
63
|
import "./chunk-CN7JXSGW.mjs";
|
|
64
64
|
import "./chunk-5BQQRHQS.mjs";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-7H6DB666.mjs";
|
|
66
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
66
67
|
import "./chunk-5AFMB7XQ.mjs";
|
|
67
|
-
import "./chunk-O4RZ3Y65.mjs";
|
|
68
68
|
import "./chunk-A63RZVX6.mjs";
|
|
69
69
|
import "./chunk-HBXV7ENS.mjs";
|
|
70
70
|
import "./chunk-CDORR33H.mjs";
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-3ZJ55SFA.mjs";
|
|
72
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
73
73
|
import {
|
|
74
74
|
categoriesQueryKeys,
|
|
75
75
|
useProductCategory,
|
|
76
76
|
useUpdateProductCategoryProducts
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
78
|
+
import "./chunk-FNQ227BC.mjs";
|
|
79
79
|
import "./chunk-3BF5SC66.mjs";
|
|
80
80
|
import "./chunk-VCSSQVPD.mjs";
|
|
81
81
|
import "./chunk-HP2JH45P.mjs";
|
|
82
82
|
import "./chunk-SQDIZZDW.mjs";
|
|
83
83
|
import {
|
|
84
84
|
useProducts
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
86
86
|
import {
|
|
87
87
|
queryClient
|
|
88
88
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
useProductCategory,
|
|
20
20
|
useUpdateProductCategory
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
22
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
23
23
|
import "./chunk-FXYH54JP.mjs";
|
|
24
24
|
import "./chunk-774WSTCC.mjs";
|
|
25
25
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useDeleteProductCategoryAction
|
|
3
|
+
} from "./chunk-O5DGX2NZ.mjs";
|
|
1
4
|
import {
|
|
2
5
|
TextCell,
|
|
3
6
|
TextHeader
|
|
4
7
|
} from "./chunk-MSDRGCRR.mjs";
|
|
5
|
-
import {
|
|
6
|
-
useDeleteProductCategoryAction
|
|
7
|
-
} from "./chunk-AF7A24XI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getCategoryPath,
|
|
10
10
|
getIsActiveProps,
|
|
@@ -41,8 +41,8 @@ import "./chunk-S4DMV3ZT.mjs";
|
|
|
41
41
|
import "./chunk-SUYYSKCB.mjs";
|
|
42
42
|
import {
|
|
43
43
|
useProductCategories
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
45
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
46
46
|
import "./chunk-FXYH54JP.mjs";
|
|
47
47
|
import "./chunk-774WSTCC.mjs";
|
|
48
48
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -8,8 +8,8 @@ import "./chunk-OBQI23QM.mjs";
|
|
|
8
8
|
import {
|
|
9
9
|
categoriesQueryKeys,
|
|
10
10
|
useProductCategories
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
12
|
+
import "./chunk-QW4SQVMT.mjs";
|
|
13
13
|
import {
|
|
14
14
|
queryClient
|
|
15
15
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -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-PPRHEG37.mjs";
|
|
15
18
|
import {
|
|
16
19
|
useProductTableQuery
|
|
17
20
|
} from "./chunk-PCFUZKDS.mjs";
|
|
18
|
-
import {
|
|
19
|
-
useProductTableFilters
|
|
20
|
-
} from "./chunk-OAW7KLET.mjs";
|
|
21
21
|
import "./chunk-GU5PJRPM.mjs";
|
|
22
22
|
import "./chunk-C76H5USB.mjs";
|
|
23
23
|
import "./chunk-DZWH2RV6.mjs";
|
|
@@ -34,38 +34,38 @@ 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-NTYLG6Y3.mjs";
|
|
38
38
|
import "./chunk-I4OBEAOJ.mjs";
|
|
39
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
39
40
|
import "./chunk-HI6URQ7H.mjs";
|
|
40
41
|
import "./chunk-6CLQKVAU.mjs";
|
|
41
|
-
import "./chunk-HKIF5HVL.mjs";
|
|
42
|
-
import "./chunk-M3CKVBZC.mjs";
|
|
43
42
|
import "./chunk-KI7TOXBR.mjs";
|
|
43
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
44
44
|
import "./chunk-WAXMT4IY.mjs";
|
|
45
45
|
import "./chunk-DYDGGABK.mjs";
|
|
46
46
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
47
47
|
import "./chunk-CN7JXSGW.mjs";
|
|
48
48
|
import "./chunk-5BQQRHQS.mjs";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-7H6DB666.mjs";
|
|
50
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
50
51
|
import "./chunk-5AFMB7XQ.mjs";
|
|
51
|
-
import "./chunk-O4RZ3Y65.mjs";
|
|
52
52
|
import "./chunk-A63RZVX6.mjs";
|
|
53
53
|
import "./chunk-HBXV7ENS.mjs";
|
|
54
54
|
import "./chunk-CDORR33H.mjs";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-3ZJ55SFA.mjs";
|
|
56
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
57
57
|
import {
|
|
58
58
|
useProductCategory,
|
|
59
59
|
useUpdateProductCategoryProducts
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
61
|
+
import "./chunk-FNQ227BC.mjs";
|
|
62
62
|
import "./chunk-3BF5SC66.mjs";
|
|
63
63
|
import "./chunk-VCSSQVPD.mjs";
|
|
64
64
|
import "./chunk-HP2JH45P.mjs";
|
|
65
65
|
import "./chunk-SQDIZZDW.mjs";
|
|
66
66
|
import {
|
|
67
67
|
useProducts
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
69
69
|
import "./chunk-FXYH54JP.mjs";
|
|
70
70
|
import "./chunk-774WSTCC.mjs";
|
|
71
71
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useProductTypeTableColumns
|
|
3
|
-
} from "./chunk-PVW6M64S.mjs";
|
|
4
1
|
import {
|
|
5
2
|
getFormattedShippingOptionLocationName
|
|
6
3
|
} from "./chunk-UC26CCHZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useProductTypeTableColumns
|
|
6
|
+
} from "./chunk-PVW6M64S.mjs";
|
|
7
7
|
import {
|
|
8
8
|
TextCell
|
|
9
9
|
} from "./chunk-MSDRGCRR.mjs";
|
|
10
|
-
import {
|
|
11
|
-
DateCell
|
|
12
|
-
} from "./chunk-ROKB75YP.mjs";
|
|
13
10
|
import {
|
|
14
11
|
useProductTableColumns
|
|
15
12
|
} from "./chunk-BW322BVH.mjs";
|
|
13
|
+
import {
|
|
14
|
+
DateCell
|
|
15
|
+
} from "./chunk-ROKB75YP.mjs";
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
19
|
} from "./chunk-YTN73JYH.mjs";
|
|
20
|
+
import {
|
|
21
|
+
useShippingOptionTableFilters
|
|
22
|
+
} from "./chunk-NFEW5CVI.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-PPRHEG37.mjs";
|
|
32
35
|
import {
|
|
33
36
|
useProductTableQuery
|
|
34
37
|
} from "./chunk-PCFUZKDS.mjs";
|
|
35
|
-
import {
|
|
36
|
-
useProductTableFilters
|
|
37
|
-
} from "./chunk-OAW7KLET.mjs";
|
|
38
38
|
import {
|
|
39
39
|
StackedDrawer,
|
|
40
40
|
StackedFocusModal
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
useProduct,
|
|
53
53
|
useProducts
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
55
55
|
|
|
56
56
|
// src/routes/tax-regions/common/constants.ts
|
|
57
57
|
var TaxRateRuleReferenceType = /* @__PURE__ */ ((TaxRateRuleReferenceType2) => {
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
var normalizeProductFormValues = (values) => {
|
|
20
20
|
const thumbnail = values.media?.find((media) => media.isThumbnail)?.url;
|
|
21
21
|
const images = values.media?.filter((media) => !media.isThumbnail).map((media) => ({ url: media.url }));
|
|
22
|
+
const options = values.options.filter((o) => o.title);
|
|
22
23
|
return {
|
|
23
24
|
status: values.status,
|
|
24
25
|
is_giftcard: false,
|
|
@@ -43,8 +44,10 @@ var normalizeProductFormValues = (values) => {
|
|
|
43
44
|
length: values.length ? parseFloat(values.length) : void 0,
|
|
44
45
|
height: values.height ? parseFloat(values.height) : void 0,
|
|
45
46
|
weight: values.weight ? parseFloat(values.weight) : void 0,
|
|
46
|
-
options:
|
|
47
|
-
|
|
47
|
+
options: options.map((option) => {
|
|
48
|
+
const { id, value_ids, ...rest } = option;
|
|
49
|
+
return id ? { id, value_ids } : { ...rest, is_exclusive: true };
|
|
50
|
+
}),
|
|
48
51
|
variants: normalizeVariants(
|
|
49
52
|
values.variants.filter((variant) => variant.should_create),
|
|
50
53
|
values.regionsCurrencyMap
|
|
@@ -140,8 +143,10 @@ var ProductCreateVariantSchema = z.object({
|
|
|
140
143
|
).optional()
|
|
141
144
|
});
|
|
142
145
|
var ProductCreateOptionSchema = z.object({
|
|
146
|
+
id: z.string().optional(),
|
|
143
147
|
title: z.string(),
|
|
144
|
-
values: z.array(z.string()).min(1)
|
|
148
|
+
values: z.array(z.string()).min(1),
|
|
149
|
+
value_ids: z.array(z.string()).optional()
|
|
145
150
|
});
|
|
146
151
|
var ProductCreateSchema = z.object({
|
|
147
152
|
title: z.string().min(1),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reservationItemsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MOGV3UZD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
inventoryItemsQueryKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
queryClient
|
|
9
9
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TrianglesMini,
|
|
17
17
|
XMarkMini
|
|
18
18
|
} from "@medusajs/icons";
|
|
19
|
-
import { clx, Text } from "@medusajs/ui";
|
|
19
|
+
import { Badge, clx, Text } from "@medusajs/ui";
|
|
20
20
|
import { matchSorter } from "match-sorter";
|
|
21
21
|
import {
|
|
22
22
|
Fragment,
|
|
@@ -54,6 +54,7 @@ var ComboboxImpl = ({
|
|
|
54
54
|
noResultsPlaceholder,
|
|
55
55
|
allowClear,
|
|
56
56
|
forceHideInput,
|
|
57
|
+
displayMode = "count",
|
|
57
58
|
...inputProps
|
|
58
59
|
}, ref) => {
|
|
59
60
|
const [open, setOpen] = useState(false);
|
|
@@ -97,6 +98,13 @@ var ComboboxImpl = ({
|
|
|
97
98
|
onSearchValueChange(query);
|
|
98
99
|
}
|
|
99
100
|
};
|
|
101
|
+
const handleRemoveValue = (valueToRemove) => {
|
|
102
|
+
if (!isArrayValue || !Array.isArray(selectedValues)) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const newValues = selectedValues.filter((v) => v !== valueToRemove);
|
|
106
|
+
handleValueChange(newValues);
|
|
107
|
+
};
|
|
100
108
|
const matches = useMemo(() => {
|
|
101
109
|
if (isSearchControlled) {
|
|
102
110
|
return [];
|
|
@@ -168,7 +176,80 @@ var ComboboxImpl = ({
|
|
|
168
176
|
startTransition(() => handleSearchChange(query));
|
|
169
177
|
},
|
|
170
178
|
children: [
|
|
171
|
-
/* @__PURE__ */ jsxs(
|
|
179
|
+
displayMode === "chips" && isArrayValue ? /* @__PURE__ */ jsxs(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
className: clx(
|
|
183
|
+
"relative flex cursor-pointer flex-wrap items-center gap-1.5",
|
|
184
|
+
"min-h-8 w-full rounded-md",
|
|
185
|
+
"bg-ui-bg-field transition-fg shadow-borders-base",
|
|
186
|
+
"has-[input:focus]:shadow-borders-interactive-with-active",
|
|
187
|
+
"has-[:invalid]:shadow-borders-error has-[[aria-invalid=true]]:shadow-borders-error",
|
|
188
|
+
"has-[:disabled]:bg-ui-bg-disabled has-[:disabled]:text-ui-fg-disabled has-[:disabled]:cursor-not-allowed",
|
|
189
|
+
"p-1",
|
|
190
|
+
className
|
|
191
|
+
),
|
|
192
|
+
children: [
|
|
193
|
+
Array.isArray(selectedValues) && selectedValues.map((value) => {
|
|
194
|
+
const option = options.find((o) => o.value === value);
|
|
195
|
+
if (!option) return null;
|
|
196
|
+
return /* @__PURE__ */ jsxs(
|
|
197
|
+
Badge,
|
|
198
|
+
{
|
|
199
|
+
size: "2xsmall",
|
|
200
|
+
className: "gap-x-0.5 pl-1.5 pr-1 transition-fg",
|
|
201
|
+
children: [
|
|
202
|
+
option.label,
|
|
203
|
+
/* @__PURE__ */ jsx(
|
|
204
|
+
"button",
|
|
205
|
+
{
|
|
206
|
+
tabIndex: -1,
|
|
207
|
+
type: "button",
|
|
208
|
+
onClick: (e) => {
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
handleRemoveValue(value);
|
|
211
|
+
},
|
|
212
|
+
className: "text-ui-fg-subtle transition-fg outline-none",
|
|
213
|
+
children: /* @__PURE__ */ jsx(XMarkMini, {})
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
value
|
|
219
|
+
);
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex flex-1 items-center min-w-[120px]", children: /* @__PURE__ */ jsx(
|
|
222
|
+
PrimitiveCombobox,
|
|
223
|
+
{
|
|
224
|
+
autoSelect: true,
|
|
225
|
+
ref: comboboxRef,
|
|
226
|
+
onFocus: () => setOpen(true),
|
|
227
|
+
className: clx(
|
|
228
|
+
"txt-compact-small text-ui-fg-base !placeholder:text-ui-fg-muted transition-fg size-full cursor-pointer bg-transparent pe-8 ps-1 outline-none focus:cursor-text"
|
|
229
|
+
),
|
|
230
|
+
placeholder: Array.isArray(selectedValues) && selectedValues.length > 0 ? void 0 : placeholder,
|
|
231
|
+
...inputProps
|
|
232
|
+
}
|
|
233
|
+
) }),
|
|
234
|
+
/* @__PURE__ */ jsx(
|
|
235
|
+
PrimitiveComboboxDisclosure,
|
|
236
|
+
{
|
|
237
|
+
render: (props) => {
|
|
238
|
+
return /* @__PURE__ */ jsx(
|
|
239
|
+
"button",
|
|
240
|
+
{
|
|
241
|
+
...props,
|
|
242
|
+
type: "button",
|
|
243
|
+
className: "text-ui-fg-muted transition-fg hover:bg-ui-bg-field-hover absolute end-0 top-0 flex h-8 w-8 items-center justify-center rounded-r outline-none",
|
|
244
|
+
children: /* @__PURE__ */ jsx(TrianglesMini, {})
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
)
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
) : /* @__PURE__ */ jsxs(
|
|
172
253
|
"div",
|
|
173
254
|
{
|
|
174
255
|
className: clx(
|
|
@@ -234,7 +315,6 @@ var ComboboxImpl = ({
|
|
|
234
315
|
onFocus: () => setOpen(true),
|
|
235
316
|
className: clx(
|
|
236
317
|
"txt-compact-small text-ui-fg-base !placeholder:text-ui-fg-muted transition-fg size-full cursor-pointer bg-transparent pe-8 ps-2 outline-none focus:cursor-text",
|
|
237
|
-
"hover:bg-ui-bg-field-hover",
|
|
238
318
|
{
|
|
239
319
|
"opacity-0": hideInput,
|
|
240
320
|
"ps-2": !showTag,
|