@mercurjs/admin 2.0.0-canary.40 → 2.0.0-canary.41
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/{add-campaign-promotions-ZUXBF5G3.js → add-campaign-promotions-7TPECJOT.js} +4 -4
- package/dist/{api-key-management-detail-SKJNAZ5L.js → api-key-management-detail-2EFDWJSF.js} +7 -7
- package/dist/{api-key-management-list-2D4WKI6Y.js → api-key-management-list-UZLHSM2R.js} +6 -5
- package/dist/{api-key-management-sales-channels-C7EWPHC2.js → api-key-management-sales-channels-ER5ZINL7.js} +6 -7
- package/dist/{campaign-create-B7XM2FZM.js → campaign-create-AFR3V7P4.js} +3 -3
- package/dist/{campaign-detail-7U4CQHU5.js → campaign-detail-UUNEZUY7.js} +9 -8
- package/dist/{campaign-list-SC7FLTRM.js → campaign-list-2AAGWYEG.js} +6 -5
- package/dist/category-create-LY45Z7YB.js +23 -0
- package/dist/{category-detail-HGHR3R2R.js → category-detail-AGTIMI6P.js} +7 -6
- package/dist/{category-list-QBBFGHQM.js → category-list-ROM7UTA4.js} +6 -5
- package/dist/{chunk-ENMRRG4N.js → chunk-2AWQ4FPA.js} +6 -6
- package/dist/{chunk-VBAAYYCS.js → chunk-2HPZJCAF.js} +6 -6
- package/dist/{chunk-SFG7JTBH.js → chunk-2LAANNMF.js} +111 -48
- package/dist/{chunk-KYUXTS2L.js → chunk-2UN7CNBG.js} +7 -7
- package/dist/chunk-3LTXCGNM.js +204 -0
- package/dist/{chunk-EDQBUWY7.js → chunk-3NIWL75F.js} +6 -6
- package/dist/{product-create-variant-CJPECBV4.js → chunk-4UTK7DZN.js} +63 -69
- package/dist/{chunk-5VEYNZSW.js → chunk-5322X23U.js} +9 -4
- package/dist/{chunk-U3SFHLUA.js → chunk-53IISBJZ.js} +1 -0
- package/dist/{chunk-DGCPYCHU.js → chunk-54RTJBYO.js} +63 -8
- package/dist/{chunk-E2AAYIHS.js → chunk-5EFOVNK2.js} +3 -3
- package/dist/{chunk-NQPAEBSZ.js → chunk-6E3T6CGY.js} +15 -7
- package/dist/{chunk-V2DXJ75C.js → chunk-6OA7JZ5E.js} +1 -1
- package/dist/chunk-72IQIAGX.js +245 -0
- package/dist/{chunk-3IYIS5UZ.js → chunk-7DOPC5GY.js} +4 -4
- package/dist/{chunk-Q6XCCONH.js → chunk-AI6RJGRQ.js} +9 -9
- package/dist/{price-list-create-OK7YYLAB.js → chunk-AJZQBGE4.js} +193 -428
- package/dist/{chunk-XDVS4B7W.js → chunk-BAV6Y7RC.js} +8 -7
- package/dist/{chunk-4WYBW3HK.js → chunk-BCAT7P6B.js} +3 -3
- package/dist/{chunk-LYT3RI4O.js → chunk-BHYDGWZ6.js} +18 -9
- package/dist/{chunk-DK3U2SRA.js → chunk-BIEYPCHL.js} +5 -5
- package/dist/{product-create-NVBKO426.js → chunk-BLG726FI.js} +36 -68
- package/dist/chunk-BVRI7YAR.js +100 -0
- package/dist/{chunk-2IGCU3KP.js → chunk-DOMRLXOI.js} +2 -2
- package/dist/{chunk-K6FXWZ2M.js → chunk-F55UXYYA.js} +10 -0
- package/dist/{chunk-AOVEX4EM.js → chunk-FNXSMFGL.js} +5 -5
- package/dist/{chunk-IXGP2EEN.js → chunk-FYAYHOCN.js} +2 -3
- package/dist/{chunk-QBOXELB5.js → chunk-GJHAVFXL.js} +4 -4
- package/dist/{price-list-prices-add-7PGUONDK.js → chunk-GOVOSXUU.js} +90 -290
- package/dist/{chunk-66IHH2HG.js → chunk-H6W6Q6YE.js} +3 -3
- package/dist/{seller-details-KROISMQC.js → chunk-HVLQFQGD.js} +74 -146
- package/dist/{chunk-QD6KYDYH.js → chunk-I6R4I7EF.js} +6 -6
- package/dist/{chunk-RIMR3ULR.js → chunk-ISYWL6RZ.js} +64 -33
- package/dist/{chunk-HHNJNKCB.js → chunk-KMUEJ3IE.js} +59 -20
- package/dist/{chunk-GJTIHFXG.js → chunk-KOILMFJX.js} +29 -31
- package/dist/{chunk-3SAH3NUS.js → chunk-LIXRNUG5.js} +1 -1
- package/dist/chunk-LOJD5572.js +433 -0
- package/dist/{chunk-T25UE7SS.js → chunk-MD56QRKC.js} +6 -6
- package/dist/{chunk-S4QUEQQK.js → chunk-MSFNMGFD.js} +48 -48
- package/dist/{chunk-YH4VQBAA.js → chunk-MX52GGQO.js} +81 -52
- package/dist/{chunk-O6O22BN4.js → chunk-N7BCAAJC.js} +113 -48
- package/dist/{chunk-JA2XIIIZ.js → chunk-NXKCVD5F.js} +6 -5
- package/dist/{chunk-G4QMLQF2.js → chunk-NZN7PFPB.js} +2 -4
- package/dist/{chunk-KUDLPUWR.js → chunk-OFWYMU6K.js} +8 -8
- package/dist/chunk-OOAY7PAK.js +1155 -0
- package/dist/chunk-PAQH5QQH.js +685 -0
- package/dist/{chunk-3H74EI2D.js → chunk-POCHIWE2.js} +100 -40
- package/dist/chunk-PXBCTPQO.js +248 -0
- package/dist/chunk-QSZ2FIM2.js +223 -0
- package/dist/{chunk-23663A2W.js → chunk-R5VKVG6S.js} +1 -1
- package/dist/{chunk-DP5U3GQU.js → chunk-RXUUBJSZ.js} +1 -1
- package/dist/{chunk-FYB5MS4F.js → chunk-S2GARTQU.js} +6 -6
- package/dist/{chunk-7TLEUIAL.js → chunk-SO6PXIPV.js} +21 -16
- package/dist/{category-create-UWBJGIED.js → chunk-ST74PSEZ.js} +78 -149
- package/dist/{chunk-33FUPXJL.js → chunk-T3OYE2MH.js} +4 -4
- package/dist/{chunk-JRWB7VWP.js → chunk-U4RMXPGI.js} +8 -8
- package/dist/{chunk-YGSM5PVN.js → chunk-UI2BJVP5.js} +1 -1
- package/dist/{chunk-FXU7SL6M.js → chunk-UOIUQC3P.js} +25 -15
- package/dist/{chunk-ZU2RNSCP.js → chunk-UONTDHRH.js} +4 -2
- package/dist/{chunk-J7SR4GW5.js → chunk-V3SHSLK4.js} +4 -4
- package/dist/{chunk-TE5VQBCL.js → chunk-V42ZR4XW.js} +8 -9
- package/dist/chunk-V5J73NPW.js +117 -0
- package/dist/{chunk-QP6XXG6A.js → chunk-VOFAM7HJ.js} +74 -42
- package/dist/{chunk-CR4E2DCR.js → chunk-VT3RBTYK.js} +3 -3
- package/dist/{chunk-AOVJTW7M.js → chunk-VWQYMOBM.js} +9 -9
- package/dist/{chunk-6L2LSIPR.js → chunk-VXAQZ2ZZ.js} +4 -4
- package/dist/{chunk-OSHCUDYY.js → chunk-X3KBQBGW.js} +6 -6
- package/dist/{chunk-WZADCDDE.js → chunk-X56THFPA.js} +2 -1
- package/dist/{chunk-HZKW7HRU.js → chunk-X7NWBH7T.js} +64 -35
- package/dist/{chunk-OFRQZHVQ.js → chunk-XE5ZMNUN.js} +6 -6
- package/dist/{chunk-4GVHNYZR.js → chunk-XHVYNMTA.js} +2 -2
- package/dist/{chunk-U2UCL2VG.js → chunk-XIZLPYEE.js} +3 -111
- package/dist/{chunk-KXPCEVFB.js → chunk-XOKRMMVP.js} +6 -6
- package/dist/{chunk-XVKRTPVM.js → chunk-Y5N26ZC3.js} +41 -15
- package/dist/{chunk-A6Z2Q7D5.js → chunk-Z2MDPTF2.js} +4 -2
- package/dist/{chunk-TKGZBTOS.js → chunk-ZFSZTRZ6.js} +54 -32
- package/dist/{chunk-RV6NZTNP.js → chunk-ZZEAWVFX.js} +27 -27
- package/dist/{collection-detail-YJ3FV2C6.js → collection-detail-SRR3HSIV.js} +7 -6
- package/dist/{collection-list-WDQOBHQN.js → collection-list-MKISW5S4.js} +6 -5
- package/dist/{commission-rate-detail-UQDIIMIK.js → commission-rate-detail-GLB733F3.js} +5 -4
- package/dist/{commission-rate-list-WTDZLKUR.js → commission-rate-list-5V3FQROA.js} +6 -5
- package/dist/{customer-detail-N7CS4IJU.js → customer-detail-SBQF232S.js} +4 -3
- package/dist/customer-group-add-customers-LCNDTLXR.js +1 -1
- package/dist/{customer-group-detail-UCTY4FF7.js → customer-group-detail-QQSNRM2K.js} +6 -5
- package/dist/{customer-group-list-XOQ64CVR.js → customer-group-list-IO7SVK3F.js} +15 -6
- package/dist/{customer-list-BUUO6OF7.js → customer-list-TXBAME4V.js} +4 -3
- package/dist/customers-add-customer-group-BKEV24N2.js +1 -1
- package/dist/index.d.ts +225 -16
- package/dist/index.js +581 -387
- package/dist/inventory-create-Q4JIXZTT.js +56 -0
- package/dist/{inventory-detail-BJT5WEV5.js → inventory-detail-3D37JWQT.js} +7 -6
- package/dist/{inventory-list-3LWBPWVK.js → inventory-list-WH42ADNB.js} +6 -5
- package/dist/{inventory-stock-G3GP4FZX.js → inventory-stock-DTKOGYT7.js} +6 -6
- package/dist/{location-detail-N7J6PEAP.js → location-detail-2SSHXSKL.js} +5 -4
- package/dist/location-fulfillment-providers-BHCY2MYC.js +1 -1
- package/dist/{location-list-UG6B47NP.js → location-list-LPISOSQI.js} +5 -4
- package/dist/{location-sales-channels-3IGHCJEN.js → location-sales-channels-PPH53OHD.js} +6 -7
- package/dist/location-service-zone-shipping-option-create-GSXLVEGO.js +57 -0
- package/dist/{location-service-zone-shipping-option-pricing-7VMPXDWX.js → location-service-zone-shipping-option-pricing-4CTGXBP3.js} +6 -6
- package/dist/marketplace-add-currencies-CIGOPBO6.js +1 -1
- package/dist/{marketplace-detail-7KJMXXAJ.js → marketplace-detail-3CBLIYVK.js} +6 -5
- package/dist/{order-detail-C25NQSZN.js → order-detail-AJV2PE7J.js} +7 -6
- package/dist/{order-edit-billing-address-NVRMPZEU.js → order-edit-billing-address-QQUPIC2H.js} +6 -6
- package/dist/{order-list-7NH7LROU.js → order-list-VPQOG5WE.js} +6 -5
- package/dist/pages/index.d.ts +2608 -82
- package/dist/pages/index.js +238 -156
- package/dist/{payout-detail-MDD5SRK5.js → payout-detail-PMR26YQI.js} +5 -4
- package/dist/{payout-list-XY2A5KYS.js → payout-list-DMG7MQM7.js} +6 -4
- package/dist/price-list-configuration-XK3IZLLX.js +1 -1
- package/dist/price-list-create-QS6CVEWS.js +76 -0
- package/dist/{price-list-detail-IGFSM77P.js → price-list-detail-IO5ZURVW.js} +7 -6
- package/dist/{price-list-list-TBXQ5DOS.js → price-list-list-B3FKB46L.js} +6 -5
- package/dist/price-list-prices-add-NSAQWBT6.js +71 -0
- package/dist/{price-list-prices-edit-QVGBT6AI.js → price-list-prices-edit-UOAIOS5X.js} +6 -6
- package/dist/product-create-UVKMOKRF.js +68 -0
- package/dist/product-create-variant-TCXDJ425.js +53 -0
- package/dist/{product-detail-ZC37BGPC.js → product-detail-273ME23P.js} +4 -4
- package/dist/{product-list-635ZXM2D.js → product-list-2ZHLFSBI.js} +5 -4
- package/dist/{product-media-ZMDAVPGI.js → product-media-YMFP6Q6A.js} +3 -3
- package/dist/{product-prices-WMRIC7WM.js → product-prices-X6JO3Y5A.js} +5 -5
- package/dist/{product-sales-channels-LSN5DVWZ.js → product-sales-channels-2PVBPK6W.js} +2 -3
- package/dist/{product-stock-HF42WRSC.js → product-stock-ARRFHDSU.js} +6 -6
- package/dist/{product-tag-detail-OJLYO3Q5.js → product-tag-detail-545AVFGA.js} +7 -6
- package/dist/{product-tag-list-XFHGJBRF.js → product-tag-list-2Y2Q7K3A.js} +7 -6
- package/dist/{product-type-detail-J4UA4AEM.js → product-type-detail-PBP572AM.js} +7 -6
- package/dist/{product-type-list-H5EQHCXS.js → product-type-list-XWNUKETZ.js} +6 -5
- package/dist/{product-variant-detail-5WKYURFA.js → product-variant-detail-RJUQWBYH.js} +4 -3
- package/dist/{profile-detail-EYNXOHGZ.js → profile-detail-H22ZBNOB.js} +5 -4
- package/dist/{promotion-add-campaign-B5SF72KC.js → promotion-add-campaign-5LCKEU6H.js} +3 -3
- package/dist/promotion-create-KXBEHXPK.js +54 -0
- package/dist/{promotion-detail-MVFOMS4E.js → promotion-detail-NZZ2HII7.js} +7 -6
- package/dist/{promotion-list-IN4VWEQN.js → promotion-list-KARWNOAQ.js} +9 -8
- package/dist/{refund-reason-list-DJZZC7KK.js → refund-reason-list-GTZQBZ7R.js} +3 -2
- package/dist/{region-detail-OFZHX57G.js → region-detail-3OPMLS4V.js} +5 -4
- package/dist/{region-list-L4FKHVJJ.js → region-list-542EMW5C.js} +6 -5
- package/dist/{reservation-detail-LZYEM5NW.js → reservation-detail-IPGIBQW4.js} +5 -4
- package/dist/{reservation-list-OGPDB7WG.js → reservation-list-CEFKMB2G.js} +6 -5
- package/dist/{reset-password-Q7Y4FWRE.js → reset-password-R5ULRWEM.js} +1 -1
- package/dist/{return-reason-list-6ICMSVKF.js → return-reason-list-S7LU655M.js} +5 -4
- package/dist/{sales-channel-detail-RRJG7U7R.js → sales-channel-detail-QCJ6OC3H.js} +7 -6
- package/dist/{sales-channel-list-LUZ4ZXCY.js → sales-channel-list-KYNBWXUD.js} +7 -7
- package/dist/seller-details-A7TYGP67.js +104 -0
- package/dist/{seller-list-664H4SI5.js → seller-list-5KPNNC2B.js} +7 -6
- package/dist/{shipping-option-type-detail-2RY3NHRO.js → shipping-option-type-detail-OBYOZZWS.js} +5 -4
- package/dist/{shipping-option-type-list-IOSOE33S.js → shipping-option-type-list-UGVMQ3DC.js} +6 -5
- package/dist/{shipping-profile-detail-RIIAX7VE.js → shipping-profile-detail-RYOFRMLH.js} +5 -4
- package/dist/{shipping-profiles-list-AL4EJSJY.js → shipping-profiles-list-XJGQ7AVX.js} +5 -4
- package/dist/{tax-region-create-UOTLTCOP.js → tax-region-create-AR2LNF2G.js} +6 -6
- package/dist/{tax-region-detail-CA2W5W6A.js → tax-region-detail-PIGY5JQ7.js} +7 -6
- package/dist/{tax-region-list-JTZ7KZCX.js → tax-region-list-AMGZWUAI.js} +6 -5
- package/dist/{tax-region-province-detail-ZHLX4FF4.js → tax-region-province-detail-D3R4FJT4.js} +6 -5
- package/dist/types-DUhfb5tH.d.ts +30 -0
- package/dist/{user-detail-YNPBC5MN.js → user-detail-H66ZAR7W.js} +5 -4
- package/dist/{user-list-LNTZNT3D.js → user-list-HIUXLIJV.js} +5 -4
- package/package.json +1 -1
- package/dist/chunk-62ZRA6BZ.js +0 -216
- package/dist/chunk-6PNMR6XP.js +0 -192
- package/dist/chunk-7COSFMM7.js +0 -163
- package/dist/chunk-A2KURGQO.js +0 -151
- package/dist/chunk-BHID7W3U.js +0 -78
- package/dist/chunk-UKLRBS4W.js +0 -61
- package/dist/inventory-create-QLEIHESO.js +0 -620
- package/dist/location-service-zone-shipping-option-create-GYPW6SSN.js +0 -811
- package/dist/promotion-create-D77SANLX.js +0 -1262
- package/dist/{adjust-inventory-HZCWL6SC.js → adjust-inventory-WL7D7TQR.js} +3 -3
- package/dist/{campaign-budget-edit-AIXCDGG3.js → campaign-budget-edit-722ECPRI.js} +3 -3
- package/dist/{category-products-XLCG2JR7.js → category-products-H3VFYGOU.js} +2 -2
- package/dist/{chunk-DEKJJ7NG.js → chunk-OFCUTNGV.js} +3 -3
- package/dist/{chunk-KUWNYCGL.js → chunk-U3OWJE7V.js} +0 -0
- package/dist/{collection-add-products-IQ7M63BA.js → collection-add-products-BQ2FZKR4.js} +1 -1
- package/dist/{commission-rate-create-VC72GTV4.js → commission-rate-create-GFQNADQS.js} +9 -9
- package/dist/{commission-rate-edit-AXJKJNFY.js → commission-rate-edit-A2BFZUEI.js} +9 -9
- package/dist/{location-service-zone-shipping-option-edit-E3GN4ZF5.js → location-service-zone-shipping-option-edit-KPECMUYB.js} +3 -3
- package/dist/{order-create-claim-7WW6MXTT.js → order-create-claim-IWTV2HKL.js} +6 -6
- package/dist/{order-create-edit-KAH6ZPLX.js → order-create-edit-H2MHZFIW.js} +5 -5
- package/dist/{order-create-exchange-ELLWF3IY.js → order-create-exchange-PPMRSGLD.js} +6 -6
- package/dist/{order-create-refund-5QZBOSCA.js → order-create-refund-LZOHRL7T.js} +3 -3
- package/dist/{order-create-return-L6DEDPJK.js → order-create-return-WY6R4QMN.js} +6 -6
- package/dist/{order-edit-shipping-address-BPU7OL2N.js → order-edit-shipping-address-XQCSN4YO.js} +3 -3
- package/dist/{order-receive-return-FW5QZJBM.js → order-receive-return-GKMHYD4G.js} +1 -1
- package/dist/{product-edit-LQJDUUVX.js → product-edit-QGRKGJ3H.js} +1 -1
- package/dist/{product-variant-edit-66ZUIIMP.js → product-variant-edit-IQLBIHDE.js} +1 -1
- package/dist/{product-variant-manage-inventory-items-CV2CC2PV.js → product-variant-manage-inventory-items-C77QHYRT.js} +3 -3
- package/dist/{promotion-edit-details-YKS24GBD.js → promotion-edit-details-BFXPUEE6.js} +4 -4
- package/dist/{region-create-UMJK3VGL.js → region-create-ZPY6V77Q.js} +3 -3
- package/dist/{region-edit-ODVSNJHM.js → region-edit-Q2CBVPR2.js} +3 -3
- package/dist/{sales-channel-add-products-EOWFSO35.js → sales-channel-add-products-PIY4PUIW.js} +2 -2
- package/dist/{tax-region-province-create-RFYCUDER.js → tax-region-province-create-7BMYABJ6.js} +3 -3
- package/dist/{tax-region-tax-override-create-WIWUNXW6.js → tax-region-tax-override-create-EBDKSAXG.js} +6 -6
- package/dist/{tax-region-tax-override-edit-SWROFQTP.js → tax-region-tax-override-edit-55ODL7KC.js} +6 -6
|
@@ -2,104 +2,73 @@ import {
|
|
|
2
2
|
PriceListCreateProductsSchema,
|
|
3
3
|
usePriceListCurrencyData,
|
|
4
4
|
usePriceListGridColumns
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MSFNMGFD.js";
|
|
6
6
|
import {
|
|
7
7
|
exctractPricesFromProducts,
|
|
8
8
|
isProductRow
|
|
9
9
|
} from "./chunk-U5MJIHLY.js";
|
|
10
|
-
import "./chunk-6IJMSVC6.js";
|
|
11
10
|
import {
|
|
12
11
|
useProductTableColumns
|
|
13
12
|
} from "./chunk-3CKTAFTR.js";
|
|
14
|
-
import "./chunk-G5OVX555.js";
|
|
15
|
-
import "./chunk-FWPGOIFA.js";
|
|
16
|
-
import "./chunk-DB6ANJBO.js";
|
|
17
|
-
import "./chunk-FQERBIVS.js";
|
|
18
|
-
import "./chunk-PHOCVOZ5.js";
|
|
19
13
|
import {
|
|
20
14
|
_DataTable,
|
|
21
15
|
useDataTable
|
|
22
16
|
} from "./chunk-ULJ3OMWU.js";
|
|
23
|
-
import "./chunk-YBZWO4ZV.js";
|
|
24
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
25
|
-
import "./chunk-3EF54XFY.js";
|
|
26
|
-
import "./chunk-WIYFXWRI.js";
|
|
27
17
|
import {
|
|
28
18
|
DataGrid
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-TKGWSUEI.js";
|
|
19
|
+
} from "./chunk-U3OWJE7V.js";
|
|
31
20
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import "./chunk-INNFZYX2.js";
|
|
37
|
-
import "./chunk-LAVHRER2.js";
|
|
38
|
-
import {
|
|
39
|
-
useDocumentDirection
|
|
40
|
-
} from "./chunk-Y7QKP6QU.js";
|
|
21
|
+
TabbedForm,
|
|
22
|
+
defineTabMeta,
|
|
23
|
+
useTabbedForm
|
|
24
|
+
} from "./chunk-5GG65TKV.js";
|
|
41
25
|
import {
|
|
42
26
|
useProductTableFilters
|
|
43
27
|
} from "./chunk-FBUH5OLD.js";
|
|
44
28
|
import {
|
|
45
29
|
useProductTableQuery
|
|
46
30
|
} from "./chunk-VVWB3GIK.js";
|
|
47
|
-
import "./chunk-KBYZLKI4.js";
|
|
48
|
-
import "./chunk-YWWUOGJA.js";
|
|
49
|
-
import "./chunk-THHRRYRS.js";
|
|
50
|
-
import "./chunk-UZWFZMOX.js";
|
|
51
|
-
import "./chunk-XQNVC4Q7.js";
|
|
52
31
|
import {
|
|
53
32
|
RouteFocusModal,
|
|
54
33
|
useRouteModal
|
|
55
34
|
} from "./chunk-MWOKFNRO.js";
|
|
56
|
-
import "./chunk-3QSRE5LS.js";
|
|
57
|
-
import "./chunk-XM6GCWNF.js";
|
|
58
|
-
import "./chunk-ODBDAABQ.js";
|
|
59
|
-
import "./chunk-CDQJKJMX.js";
|
|
60
|
-
import "./chunk-JLATVDLM.js";
|
|
61
|
-
import "./chunk-E7ZBQO6E.js";
|
|
62
|
-
import "./chunk-GPRBBA7S.js";
|
|
63
|
-
import "./chunk-XGHM75N2.js";
|
|
64
|
-
import "./chunk-U2GCSKW3.js";
|
|
65
|
-
import "./chunk-A4X5VP3G.js";
|
|
66
|
-
import "./chunk-RTAIDSDS.js";
|
|
67
|
-
import "./chunk-LW3UWYZU.js";
|
|
68
|
-
import "./chunk-NNZP4PYP.js";
|
|
69
|
-
import "./chunk-JOQ3RTF5.js";
|
|
70
35
|
import {
|
|
71
36
|
useBatchPriceListPrices,
|
|
72
37
|
usePriceList
|
|
73
38
|
} from "./chunk-V534K7G4.js";
|
|
74
|
-
import "./chunk-TQI3DOQ5.js";
|
|
75
|
-
import "./chunk-5PB7KCTF.js";
|
|
76
|
-
import "./chunk-LU72QEQC.js";
|
|
77
|
-
import "./chunk-GF4QHVX3.js";
|
|
78
|
-
import "./chunk-A5XOYSDC.js";
|
|
79
|
-
import "./chunk-YOIARITB.js";
|
|
80
|
-
import "./chunk-W7G64ULL.js";
|
|
81
|
-
import "./chunk-6C7TCU42.js";
|
|
82
|
-
import "./chunk-4YF3GAKE.js";
|
|
83
|
-
import "./chunk-QSM56ZOP.js";
|
|
84
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
85
|
-
import "./chunk-3VZV6SJQ.js";
|
|
86
|
-
import "./chunk-LORVU5II.js";
|
|
87
|
-
import "./chunk-36ORDF7W.js";
|
|
88
39
|
import {
|
|
89
40
|
useProducts
|
|
90
41
|
} from "./chunk-K357FGGP.js";
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
import "
|
|
94
|
-
|
|
42
|
+
|
|
43
|
+
// src/pages/price-lists/price-list-prices-add/components/price-list-prices-add-form/schema.ts
|
|
44
|
+
import { z } from "zod";
|
|
45
|
+
var PriceListPricesAddSchema = z.object({
|
|
46
|
+
product_ids: z.array(z.object({ id: z.string() })).min(1),
|
|
47
|
+
products: PriceListCreateProductsSchema
|
|
48
|
+
});
|
|
49
|
+
var PriceListPricesAddProductIdsSchema = PriceListPricesAddSchema.pick(
|
|
50
|
+
{
|
|
51
|
+
product_ids: true
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
var PriceListPricesAddProductsIdsFields = Object.keys(
|
|
55
|
+
PriceListPricesAddProductIdsSchema.shape
|
|
56
|
+
);
|
|
57
|
+
var PriceListPricesAddProductsSchema = PriceListPricesAddSchema.pick({
|
|
58
|
+
products: true
|
|
59
|
+
});
|
|
60
|
+
var PriceListPricesAddProductsFields = Object.keys(
|
|
61
|
+
PriceListPricesAddProductsSchema.shape
|
|
62
|
+
);
|
|
95
63
|
|
|
96
64
|
// src/pages/price-lists/price-list-prices-add/price-list-prices-add.tsx
|
|
65
|
+
import { Children as Children2 } from "react";
|
|
97
66
|
import { useParams } from "react-router-dom";
|
|
98
67
|
|
|
99
68
|
// src/pages/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx
|
|
100
69
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
70
|
+
import { toast } from "@medusajs/ui";
|
|
71
|
+
import { Children, useMemo as useMemo2 } from "react";
|
|
103
72
|
import { useForm } from "react-hook-form";
|
|
104
73
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
105
74
|
|
|
@@ -107,12 +76,12 @@ import { useTranslation as useTranslation2 } from "react-i18next";
|
|
|
107
76
|
import { useEffect } from "react";
|
|
108
77
|
import { useWatch } from "react-hook-form";
|
|
109
78
|
import { jsx } from "react/jsx-runtime";
|
|
110
|
-
var
|
|
111
|
-
form,
|
|
79
|
+
var Root = ({
|
|
112
80
|
currencies,
|
|
113
81
|
regions,
|
|
114
82
|
pricePreferences
|
|
115
83
|
}) => {
|
|
84
|
+
const form = useTabbedForm();
|
|
116
85
|
const ids = useWatch({
|
|
117
86
|
control: form.control,
|
|
118
87
|
name: "product_ids"
|
|
@@ -170,6 +139,12 @@ var PriceListPricesAddPricesForm = ({
|
|
|
170
139
|
}
|
|
171
140
|
) });
|
|
172
141
|
};
|
|
142
|
+
Root._tabMeta = defineTabMeta({
|
|
143
|
+
id: "price",
|
|
144
|
+
labelKey: "priceLists.create.tabs.prices",
|
|
145
|
+
validationFields: ["products"]
|
|
146
|
+
});
|
|
147
|
+
var PriceListPricesAddPricesForm = Root;
|
|
173
148
|
|
|
174
149
|
// src/pages/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-product-ids-form.tsx
|
|
175
150
|
import { Checkbox, Tooltip } from "@medusajs/ui";
|
|
@@ -189,11 +164,11 @@ function getInitialSelection(products) {
|
|
|
189
164
|
return acc;
|
|
190
165
|
}, {});
|
|
191
166
|
}
|
|
192
|
-
var
|
|
193
|
-
priceList
|
|
194
|
-
form
|
|
167
|
+
var Root2 = ({
|
|
168
|
+
priceList
|
|
195
169
|
}) => {
|
|
196
170
|
const { t } = useTranslation();
|
|
171
|
+
const form = useTabbedForm();
|
|
197
172
|
const { control, setValue } = form;
|
|
198
173
|
const variantIdMap = useMemo(() => {
|
|
199
174
|
return priceList.prices.reduce(
|
|
@@ -338,52 +313,33 @@ var useColumns = () => {
|
|
|
338
313
|
[base]
|
|
339
314
|
);
|
|
340
315
|
};
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
product_ids: z.array(z.object({ id: z.string() })).min(1),
|
|
346
|
-
products: PriceListCreateProductsSchema
|
|
347
|
-
});
|
|
348
|
-
var PriceListPricesAddProductIdsSchema = PriceListPricesAddSchema.pick(
|
|
349
|
-
{
|
|
350
|
-
product_ids: true
|
|
351
|
-
}
|
|
352
|
-
);
|
|
353
|
-
var PriceListPricesAddProductsIdsFields = Object.keys(
|
|
354
|
-
PriceListPricesAddProductIdsSchema.shape
|
|
355
|
-
);
|
|
356
|
-
var PriceListPricesAddProductsSchema = PriceListPricesAddSchema.pick({
|
|
357
|
-
products: true
|
|
316
|
+
Root2._tabMeta = defineTabMeta({
|
|
317
|
+
id: "product",
|
|
318
|
+
labelKey: "priceLists.create.tabs.products",
|
|
319
|
+
validationFields: ["product_ids"]
|
|
358
320
|
});
|
|
359
|
-
var
|
|
360
|
-
PriceListPricesAddProductsSchema.shape
|
|
361
|
-
);
|
|
321
|
+
var PriceListPricesAddProductIdsForm = Root2;
|
|
362
322
|
|
|
363
323
|
// src/pages/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx
|
|
364
|
-
import { jsx as jsx3
|
|
365
|
-
var tabOrder = ["product" /* PRODUCT */, "price" /* PRICE */];
|
|
366
|
-
var initialTabState = {
|
|
367
|
-
["product" /* PRODUCT */]: "in-progress",
|
|
368
|
-
["price" /* PRICE */]: "not-started"
|
|
369
|
-
};
|
|
324
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
370
325
|
var PriceListPricesAddForm = ({
|
|
371
326
|
priceList,
|
|
372
327
|
regions,
|
|
373
328
|
currencies,
|
|
374
|
-
pricePreferences
|
|
329
|
+
pricePreferences,
|
|
330
|
+
children,
|
|
331
|
+
schema,
|
|
332
|
+
defaultValues: extraDefaults
|
|
375
333
|
}) => {
|
|
376
|
-
const [tab, setTab] = useState2("product" /* PRODUCT */);
|
|
377
|
-
const [tabState, setTabState] = useState2(initialTabState);
|
|
378
334
|
const { t } = useTranslation2();
|
|
379
335
|
const { handleSuccess } = useRouteModal();
|
|
380
|
-
const direction = useDocumentDirection();
|
|
381
336
|
const form = useForm({
|
|
382
337
|
defaultValues: {
|
|
383
338
|
products: {},
|
|
384
|
-
product_ids: []
|
|
339
|
+
product_ids: [],
|
|
340
|
+
...extraDefaults
|
|
385
341
|
},
|
|
386
|
-
resolver: zodResolver(PriceListPricesAddSchema)
|
|
342
|
+
resolver: zodResolver(schema ?? PriceListPricesAddSchema)
|
|
387
343
|
});
|
|
388
344
|
const { mutateAsync, isPending } = useBatchPriceListPrices(priceList.id);
|
|
389
345
|
const handleSubmit = form.handleSubmit(async (values) => {
|
|
@@ -402,202 +358,36 @@ var PriceListPricesAddForm = ({
|
|
|
402
358
|
}
|
|
403
359
|
);
|
|
404
360
|
});
|
|
405
|
-
const
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
});
|
|
422
|
-
return false;
|
|
423
|
-
}
|
|
424
|
-
return true;
|
|
425
|
-
};
|
|
426
|
-
const isTabDirty = (tab2) => {
|
|
427
|
-
switch (tab2) {
|
|
428
|
-
case "product" /* PRODUCT */: {
|
|
429
|
-
const fields = PriceListPricesAddProductsIdsFields;
|
|
430
|
-
return fields.some((field) => {
|
|
431
|
-
return form.getFieldState(field).isDirty;
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
case "price" /* PRICE */: {
|
|
435
|
-
const fields = PriceListPricesAddProductsFields;
|
|
436
|
-
return fields.some((field) => {
|
|
437
|
-
return form.getFieldState(field).isDirty;
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
const handleChangeTab = (update) => {
|
|
443
|
-
if (tab === update) {
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
if (tabOrder.indexOf(update) < tabOrder.indexOf(tab)) {
|
|
447
|
-
const isCurrentTabDirty = isTabDirty(tab);
|
|
448
|
-
setTabState((prev) => ({
|
|
449
|
-
...prev,
|
|
450
|
-
[tab]: isCurrentTabDirty ? prev[tab] : "not-started",
|
|
451
|
-
[update]: "in-progress"
|
|
452
|
-
}));
|
|
453
|
-
setTab(update);
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
const tabs = tabOrder.slice(0, tabOrder.indexOf(update));
|
|
457
|
-
for (const tab2 of tabs) {
|
|
458
|
-
if (tab2 === "product" /* PRODUCT */) {
|
|
459
|
-
if (!partialFormValidation(
|
|
460
|
-
PriceListPricesAddProductsIdsFields,
|
|
461
|
-
PriceListPricesAddProductIdsSchema
|
|
462
|
-
)) {
|
|
463
|
-
setTabState((prev) => ({
|
|
464
|
-
...prev,
|
|
465
|
-
[tab2]: "in-progress"
|
|
466
|
-
}));
|
|
467
|
-
setTab(tab2);
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
setTabState((prev) => ({
|
|
471
|
-
...prev,
|
|
472
|
-
[tab2]: "completed"
|
|
473
|
-
}));
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
setTabState((prev) => ({
|
|
477
|
-
...prev,
|
|
478
|
-
[tab]: "completed",
|
|
479
|
-
[update]: "in-progress"
|
|
480
|
-
}));
|
|
481
|
-
setTab(update);
|
|
482
|
-
};
|
|
483
|
-
const handleNextTab = (tab2) => {
|
|
484
|
-
if (tabOrder.indexOf(tab2) + 1 >= tabOrder.length) {
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
const nextTab = tabOrder[tabOrder.indexOf(tab2) + 1];
|
|
488
|
-
handleChangeTab(nextTab);
|
|
489
|
-
};
|
|
490
|
-
return /* @__PURE__ */ jsx3(RouteFocusModal.Form, { form, "data-testid": "price-list-prices-add-form", children: /* @__PURE__ */ jsx3(
|
|
491
|
-
ProgressTabs,
|
|
492
|
-
{
|
|
493
|
-
dir: direction,
|
|
494
|
-
value: tab,
|
|
495
|
-
onValueChange: (tab2) => handleChangeTab(tab2),
|
|
496
|
-
className: "flex h-full flex-col overflow-hidden",
|
|
497
|
-
"data-testid": "price-list-prices-add-form-tabs",
|
|
498
|
-
children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: [
|
|
499
|
-
/* @__PURE__ */ jsx3(RouteFocusModal.Header, { "data-testid": "price-list-prices-add-form-header", children: /* @__PURE__ */ jsx3("div", { className: "flex w-full items-center justify-between gap-x-4", children: /* @__PURE__ */ jsx3("div", { className: "-my-2 w-full max-w-[600px] border-l", children: /* @__PURE__ */ jsxs(ProgressTabs.List, { className: "grid w-full grid-cols-3", "data-testid": "price-list-prices-add-form-tabs-list", children: [
|
|
500
|
-
/* @__PURE__ */ jsx3(
|
|
501
|
-
ProgressTabs.Trigger,
|
|
502
|
-
{
|
|
503
|
-
status: tabState.product,
|
|
504
|
-
value: "product" /* PRODUCT */,
|
|
505
|
-
"data-testid": "price-list-prices-add-form-tab-products",
|
|
506
|
-
children: t("priceLists.create.tabs.products")
|
|
507
|
-
}
|
|
508
|
-
),
|
|
509
|
-
/* @__PURE__ */ jsx3(
|
|
510
|
-
ProgressTabs.Trigger,
|
|
511
|
-
{
|
|
512
|
-
status: tabState.price,
|
|
513
|
-
value: "price" /* PRICE */,
|
|
514
|
-
"data-testid": "price-list-prices-add-form-tab-prices",
|
|
515
|
-
children: t("priceLists.create.tabs.prices")
|
|
516
|
-
}
|
|
517
|
-
)
|
|
518
|
-
] }) }) }) }),
|
|
519
|
-
/* @__PURE__ */ jsxs(RouteFocusModal.Body, { className: "size-full overflow-hidden", "data-testid": "price-list-prices-add-form-body", children: [
|
|
520
|
-
/* @__PURE__ */ jsx3(
|
|
521
|
-
ProgressTabs.Content,
|
|
522
|
-
{
|
|
523
|
-
className: "size-full overflow-y-auto",
|
|
524
|
-
value: "product" /* PRODUCT */,
|
|
525
|
-
"data-testid": "price-list-prices-add-form-content-products",
|
|
526
|
-
children: /* @__PURE__ */ jsx3(
|
|
527
|
-
PriceListPricesAddProductIdsForm,
|
|
528
|
-
{
|
|
529
|
-
form,
|
|
530
|
-
priceList
|
|
531
|
-
}
|
|
532
|
-
)
|
|
533
|
-
}
|
|
534
|
-
),
|
|
535
|
-
/* @__PURE__ */ jsx3(
|
|
536
|
-
ProgressTabs.Content,
|
|
537
|
-
{
|
|
538
|
-
className: "size-full overflow-hidden",
|
|
539
|
-
value: "price" /* PRICE */,
|
|
540
|
-
"data-testid": "price-list-prices-add-form-content-prices",
|
|
541
|
-
children: /* @__PURE__ */ jsx3(
|
|
542
|
-
PriceListPricesAddPricesForm,
|
|
543
|
-
{
|
|
544
|
-
form,
|
|
545
|
-
regions,
|
|
546
|
-
currencies,
|
|
547
|
-
pricePreferences
|
|
548
|
-
}
|
|
549
|
-
)
|
|
550
|
-
}
|
|
551
|
-
)
|
|
552
|
-
] }),
|
|
553
|
-
/* @__PURE__ */ jsx3(RouteFocusModal.Footer, { "data-testid": "price-list-prices-add-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
554
|
-
/* @__PURE__ */ jsx3(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", "data-testid": "price-list-prices-add-form-cancel-button", children: t("actions.cancel") }) }),
|
|
555
|
-
/* @__PURE__ */ jsx3(
|
|
556
|
-
PrimaryButton,
|
|
557
|
-
{
|
|
558
|
-
tab,
|
|
559
|
-
next: handleNextTab,
|
|
560
|
-
isLoading: isPending
|
|
561
|
-
}
|
|
562
|
-
)
|
|
563
|
-
] }) })
|
|
564
|
-
] })
|
|
565
|
-
}
|
|
566
|
-
) });
|
|
567
|
-
};
|
|
568
|
-
var PrimaryButton = ({ tab, next, isLoading }) => {
|
|
569
|
-
const { t } = useTranslation2();
|
|
570
|
-
if (tab === "price" /* PRICE */) {
|
|
571
|
-
return /* @__PURE__ */ jsx3(
|
|
572
|
-
Button,
|
|
573
|
-
{
|
|
574
|
-
type: "submit",
|
|
575
|
-
variant: "primary",
|
|
576
|
-
size: "small",
|
|
577
|
-
isLoading,
|
|
578
|
-
"data-testid": "price-list-prices-add-form-save-button",
|
|
579
|
-
children: t("actions.save")
|
|
580
|
-
},
|
|
581
|
-
"submit-button"
|
|
582
|
-
);
|
|
583
|
-
}
|
|
361
|
+
const defaultTabs = useMemo2(
|
|
362
|
+
() => [
|
|
363
|
+
/* @__PURE__ */ jsx3(PriceListPricesAddProductIdsForm, { priceList }, "product"),
|
|
364
|
+
/* @__PURE__ */ jsx3(
|
|
365
|
+
PriceListPricesAddPricesForm,
|
|
366
|
+
{
|
|
367
|
+
currencies,
|
|
368
|
+
regions,
|
|
369
|
+
pricePreferences
|
|
370
|
+
},
|
|
371
|
+
"price"
|
|
372
|
+
)
|
|
373
|
+
],
|
|
374
|
+
[priceList, currencies, regions, pricePreferences]
|
|
375
|
+
);
|
|
376
|
+
const hasCustomChildren = Children.count(children) > 0;
|
|
584
377
|
return /* @__PURE__ */ jsx3(
|
|
585
|
-
|
|
378
|
+
TabbedForm,
|
|
586
379
|
{
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
children: t("actions.continue")
|
|
593
|
-
},
|
|
594
|
-
"next-button"
|
|
380
|
+
form,
|
|
381
|
+
onSubmit: handleSubmit,
|
|
382
|
+
isLoading: isPending,
|
|
383
|
+
children: hasCustomChildren ? children : defaultTabs
|
|
384
|
+
}
|
|
595
385
|
);
|
|
596
386
|
};
|
|
597
387
|
|
|
598
388
|
// src/pages/price-lists/price-list-prices-add/price-list-prices-add.tsx
|
|
599
389
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
600
|
-
var
|
|
390
|
+
var Root3 = ({ children }) => {
|
|
601
391
|
const { id } = useParams();
|
|
602
392
|
const { price_list, isPending, isError, error } = usePriceList(id);
|
|
603
393
|
const currencyData = usePriceListCurrencyData();
|
|
@@ -605,14 +395,24 @@ var PriceListProductsAdd = () => {
|
|
|
605
395
|
if (isError) {
|
|
606
396
|
throw error;
|
|
607
397
|
}
|
|
608
|
-
return /* @__PURE__ */ jsx4(RouteFocusModal, { children: ready && /* @__PURE__ */ jsx4(
|
|
398
|
+
return /* @__PURE__ */ jsx4(RouteFocusModal, { children: ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(
|
|
609
399
|
PriceListPricesAddForm,
|
|
610
400
|
{
|
|
611
401
|
priceList: price_list,
|
|
612
402
|
...currencyData
|
|
613
403
|
}
|
|
614
|
-
) });
|
|
404
|
+
)) });
|
|
615
405
|
};
|
|
406
|
+
var PriceListPricesAddPage = Object.assign(Root3, {
|
|
407
|
+
Form: PriceListPricesAddForm,
|
|
408
|
+
ProductIdsTab: PriceListPricesAddProductIdsForm,
|
|
409
|
+
PricesTab: PriceListPricesAddPricesForm,
|
|
410
|
+
Tab: TabbedForm.Tab
|
|
411
|
+
});
|
|
412
|
+
var PriceListProductsAdd = Root3;
|
|
413
|
+
|
|
616
414
|
export {
|
|
617
|
-
|
|
415
|
+
PriceListPricesAddSchema,
|
|
416
|
+
PriceListPricesAddPage,
|
|
417
|
+
PriceListProductsAdd
|
|
618
418
|
};
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-ULJ3OMWU.js";
|
|
20
20
|
import {
|
|
21
21
|
SingleColumnPage
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XIZLPYEE.js";
|
|
23
23
|
import {
|
|
24
24
|
ActionMenu
|
|
25
25
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -290,7 +290,7 @@ import { jsx as jsx5 } from "react/jsx-runtime";
|
|
|
290
290
|
var Root = ({ children }) => {
|
|
291
291
|
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(CategoryListTable, {}) });
|
|
292
292
|
};
|
|
293
|
-
var
|
|
293
|
+
var CategoryListPage = Object.assign(Root, {
|
|
294
294
|
Table: CategoryListTable,
|
|
295
295
|
Header: CategoryListHeader,
|
|
296
296
|
HeaderTitle: CategoryListTitle,
|
|
@@ -299,5 +299,5 @@ var CategoryList = Object.assign(Root, {
|
|
|
299
299
|
});
|
|
300
300
|
|
|
301
301
|
export {
|
|
302
|
-
|
|
302
|
+
CategoryListPage
|
|
303
303
|
};
|