@mercurjs/admin 2.2.0-canary.1 → 2.2.0-canary.11
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]-YI7UXOO2.js → [id]-BAPEFPAO.js} +10 -4
- package/dist/{add-campaign-promotions-OLNTDP26.js → add-campaign-promotions-KOGSYV2W.js} +3 -3
- package/dist/{adjust-inventory-CVWSBMHU.js → adjust-inventory-3IQ657W2.js} +12 -13
- package/dist/{api-key-management-create-7RWOCVAO.js → api-key-management-create-UD5V7TOU.js} +3 -3
- package/dist/{api-key-management-detail-ZIIDMHFI.js → api-key-management-detail-NBNHERF6.js} +14 -15
- package/dist/{api-key-management-edit-ACH6TJAX.js → api-key-management-edit-4TLKJSAE.js} +3 -3
- package/dist/{api-key-management-list-JHBBXGHH.js → api-key-management-list-SZUSD6UI.js} +4 -4
- package/dist/{api-key-management-sales-channels-XEBTUB5V.js → api-key-management-sales-channels-TK6XEGF3.js} +3 -3
- package/dist/{attribute-create-BYO7BDF5.js → attribute-create-IKTP5XRS.js} +57 -36
- package/dist/{attribute-detail-36XP35P6.js → attribute-detail-V4QI34FV.js} +15 -16
- package/dist/{attribute-edit-WMJWHT7Z.js → attribute-edit-LUY66TG3.js} +2 -2
- package/dist/{attribute-edit-possible-value-KTUZ7YLW.js → attribute-edit-possible-value-IOS3625C.js} +2 -2
- package/dist/{attribute-list-OHU2QMUG.js → attribute-list-EMPHZ32M.js} +12 -13
- package/dist/campaign-create-VFFIIRE4.js +1 -1
- package/dist/{campaign-detail-AZKBPDLC.js → campaign-detail-QY3AALUR.js} +16 -17
- package/dist/{categories-metadata-YZUP43OH.js → categories-metadata-Z5JAWPAK.js} +12 -13
- package/dist/{category-create-2MRYTSYM.js → category-create-GMCJABRW.js} +3 -3
- package/dist/{category-detail-KTFD3VVR.js → category-detail-IP5EPIUR.js} +19 -20
- package/dist/{category-edit-QLOS2LBA.js → category-edit-GLE4NTFG.js} +2 -2
- package/dist/{category-list-U7ZQBSZN.js → category-list-SNVOQ64L.js} +4 -4
- package/dist/{category-organize-TIKTYJFZ.js → category-organize-UY4M4N7S.js} +2 -2
- package/dist/{category-products-7P5DSQN4.js → category-products-HWXJR7KR.js} +16 -17
- package/dist/{chunk-YLKG7W4P.js → chunk-2OF7GB7J.js} +1 -1
- package/dist/{chunk-EJTB2SLE.js → chunk-3AO6X4CE.js} +1 -1
- package/dist/{chunk-PCLSODMO.js → chunk-3HY4I76Q.js} +115 -180
- package/dist/{chunk-CYGIJOA5.js → chunk-3VDLE5GA.js} +12 -4
- package/dist/{chunk-JQBSPUH2.js → chunk-3XSC3NEG.js} +14 -1
- package/dist/{chunk-OSEIN4Y2.js → chunk-453BC56K.js} +1 -1
- package/dist/{chunk-ALATTLBM.js → chunk-4GFS57XI.js} +1 -1
- package/dist/{chunk-BCVUMATY.js → chunk-4PU6GDCE.js} +3 -3
- package/dist/{chunk-ZSFJVRRS.js → chunk-5AZCIOS4.js} +1 -1
- package/dist/{chunk-2S6VXFBZ.js → chunk-5FFZQPTT.js} +4 -4
- package/dist/chunk-5UPOHLBD.js +213 -0
- package/dist/{chunk-LLOKYZMI.js → chunk-623TMW36.js} +1 -1
- package/dist/{chunk-S5BJ5CMF.js → chunk-6FHQCLHQ.js} +1 -1
- package/dist/{chunk-TITPJHIL.js → chunk-72PLRAWM.js} +1 -1
- package/dist/{chunk-H23AKDB2.js → chunk-7KZ5X5SU.js} +4 -4
- package/dist/chunk-7MMLCMV3.js +142 -0
- package/dist/{chunk-637OFDFC.js → chunk-A62MTLPR.js} +52 -76
- package/dist/{chunk-DOSKHIRH.js → chunk-ABWW3JHS.js} +8 -8
- package/dist/{chunk-UXD3VNBO.js → chunk-AJLGY3LQ.js} +1 -2
- package/dist/{chunk-TP7L6M7V.js → chunk-BPCU5QJE.js} +1 -1
- package/dist/{chunk-RKH3A4O3.js → chunk-BQ6ZDY6L.js} +6 -6
- package/dist/{chunk-LCGLQNOI.js → chunk-CVZA23ES.js} +3 -3
- package/dist/{chunk-UPNMDPFX.js → chunk-CYGCCNIC.js} +4 -4
- package/dist/{chunk-WS63IRBI.js → chunk-D2VXOF46.js} +6 -6
- package/dist/{chunk-GKW445WA.js → chunk-DELK6EWH.js} +13 -187
- package/dist/{chunk-AB2LHP3M.js → chunk-DJWOIRLV.js} +1 -1
- package/dist/{chunk-H5PYBIOZ.js → chunk-DN2K5EAH.js} +1 -1
- package/dist/{chunk-EREXPX6I.js → chunk-EBYWGIOR.js} +23 -37
- package/dist/{chunk-W7NN2EFL.js → chunk-EGTH3PUK.js} +4 -4
- package/dist/{chunk-XODRTI2W.js → chunk-EMQP2CNF.js} +4 -4
- package/dist/{chunk-PXTJJQKJ.js → chunk-ENFXIYIH.js} +1 -1
- package/dist/{chunk-BLYJZMNE.js → chunk-EYFWEKFJ.js} +2 -2
- package/dist/{chunk-LT3REHJG.js → chunk-F52JLHE3.js} +101 -405
- package/dist/{chunk-WKCYMDTV.js → chunk-FDD7TANX.js} +1 -1
- package/dist/{chunk-3EDQIZV6.js → chunk-G5DQCCPL.js} +2 -2
- package/dist/chunk-GVEF6UDT.js +8 -0
- package/dist/{chunk-2YYXP6XI.js → chunk-H3MAUKL7.js} +13 -29
- package/dist/{chunk-A4UQKKGC.js → chunk-HDOWEXDH.js} +3 -3
- package/dist/{chunk-Y3NVKGGI.js → chunk-HEGPAGJT.js} +2 -2
- package/dist/{chunk-3P4VTL4S.js → chunk-IQZ3T2Q4.js} +1 -1
- package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
- package/dist/{chunk-GLPS6QFG.js → chunk-JSH7JEKY.js} +4 -8
- package/dist/{chunk-57BHSFNA.js → chunk-JSMUFZZN.js} +1 -1
- package/dist/{chunk-QIU6DJY6.js → chunk-K4WU4PVL.js} +1 -1
- package/dist/{chunk-V6OGMYAI.js → chunk-KT7X72J4.js} +158 -169
- package/dist/{chunk-G4PROEJI.js → chunk-LGL4QSGB.js} +3 -3
- package/dist/{chunk-AXTQMIIK.js → chunk-LJDGVBOQ.js} +8 -27
- package/dist/{chunk-YGAX72XV.js → chunk-LO2ZWQGL.js} +0 -2
- package/dist/{chunk-NQBSSM5V.js → chunk-M572YFDA.js} +4 -4
- package/dist/{chunk-K4TGNN4P.js → chunk-MEXH366L.js} +2 -2
- package/dist/{chunk-NZ2LHIKD.js → chunk-MR3MLNWV.js} +3 -3
- package/dist/{chunk-TGFZ4UBK.js → chunk-MVDPDVMI.js} +5 -5
- package/dist/{chunk-P25PIADJ.js → chunk-N4GJRJF5.js} +1 -1
- package/dist/{chunk-BE6JLTMI.js → chunk-N6YOACEW.js} +1 -1
- package/dist/{chunk-ED7XNGZD.js → chunk-N7OVIX55.js} +1 -1
- package/dist/{chunk-2LQ5SCPB.js → chunk-NGDOLGBQ.js} +18 -6
- package/dist/{chunk-FTAR3BDS.js → chunk-NJP3DEE5.js} +1 -1
- package/dist/{chunk-MN3AEVR7.js → chunk-O2XHQTBX.js} +4 -4
- package/dist/{chunk-GNLPUGYK.js → chunk-OFOKVLV3.js} +2 -2
- package/dist/{chunk-CBG4E3M3.js → chunk-OMBP3YSV.js} +1 -1
- package/dist/{chunk-A772RAKB.js → chunk-P5XVG4PY.js} +1 -1
- package/dist/{chunk-CKACZXMP.js → chunk-PASEZJC7.js} +1 -1
- package/dist/chunk-PT5PLV3N.js +78 -0
- package/dist/{chunk-3IVTUFBM.js → chunk-PXKDYD3M.js} +1 -1
- package/dist/{chunk-HWBUIBJD.js → chunk-QLEGHL2Q.js} +6 -6
- package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
- package/dist/{chunk-BHOZKBYY.js → chunk-QUPUWR42.js} +1 -1
- package/dist/{chunk-6AZKWCVL.js → chunk-R7ESTJHN.js} +5 -5
- package/dist/{chunk-6FIU2V6Y.js → chunk-SJGIQGEC.js} +1 -1
- package/dist/{chunk-SRDK3XX7.js → chunk-SUVFPJ4J.js} +5 -5
- package/dist/{chunk-WDH5C2NS.js → chunk-TE4IF3MM.js} +1 -1
- package/dist/{chunk-ELM74U2R.js → chunk-TZDRRTAX.js} +2 -2
- package/dist/{chunk-IRTI3AS3.js → chunk-UCX2T4BQ.js} +2 -2
- package/dist/{chunk-2MDGYHWN.js → chunk-UCYSCKZV.js} +1328 -1379
- package/dist/chunk-UIVWOKWT.js +63 -0
- package/dist/{chunk-ZHOI4QMK.js → chunk-UXGLM3B4.js} +1 -1
- package/dist/{chunk-D5T7QOVY.js → chunk-VT5E7OMM.js} +2 -2
- package/dist/{chunk-B3EEDC47.js → chunk-VT6QIVZW.js} +0 -93
- package/dist/{chunk-CBGXKU7Z.js → chunk-VY7PT4SI.js} +4 -4
- package/dist/{chunk-BGGUVHDG.js → chunk-W3FDZPPF.js} +82 -271
- package/dist/{chunk-77T2UI6L.js → chunk-W6CW4WHC.js} +293 -209
- package/dist/{chunk-Q6I2IKJB.js → chunk-W6V2L2FX.js} +2 -2
- package/dist/{chunk-SG76L7C7.js → chunk-WPVDACTL.js} +1 -2
- package/dist/{chunk-UXQAHUGZ.js → chunk-WTK4MLMF.js} +1 -1
- package/dist/{chunk-N2LH7A4X.js → chunk-X7H7TIOT.js} +9 -9
- package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
- package/dist/{chunk-XZZTC7E5.js → chunk-Z5T5EPLF.js} +1 -1
- package/dist/{chunk-WNYDGJ3E.js → chunk-ZO7A6VYP.js} +6 -6
- package/dist/{collection-add-products-XL2TAKQD.js → collection-add-products-ABWXUOFD.js} +16 -17
- package/dist/{collection-create-HUNYHKUJ.js → collection-create-BRMP6SIZ.js} +2 -2
- package/dist/{collection-detail-2DSZVOI7.js → collection-detail-AMGR2B5N.js} +17 -18
- package/dist/{collection-edit-OQGYTQDO.js → collection-edit-YLWUEU4C.js} +2 -2
- package/dist/{collection-list-NGCW7OTG.js → collection-list-6HZE43AC.js} +18 -19
- package/dist/{collection-metadata-47N7TUOH.js → collection-metadata-JS5QP3GD.js} +12 -13
- package/dist/{commission-rate-create-BQY3UGKV.js → commission-rate-create-PSPSJZR5.js} +23 -24
- package/dist/{commission-rate-detail-LAZZLZVX.js → commission-rate-detail-U72E4ZIO.js} +13 -14
- package/dist/{commission-rate-edit-DAFXNYYN.js → commission-rate-edit-7NJPABVA.js} +23 -24
- package/dist/{constants-26tEckuq.d.ts → constants-Bahlh59D.d.ts} +8 -4
- package/dist/{customer-detail-D5SSLNFT.js → customer-detail-2RWBN6C4.js} +16 -17
- package/dist/{customer-group-detail-KRT7E2JA.js → customer-group-detail-ED66F7JM.js} +12 -13
- package/dist/{customer-group-list-KKDIESQ6.js → customer-group-list-6YUFKBHH.js} +12 -13
- package/dist/{customer-group-metadata-J6JY7DZ3.js → customer-group-metadata-VQUOWR3P.js} +12 -13
- package/dist/{customer-metadata-AH2LBK4T.js → customer-metadata-47AVJXRI.js} +12 -13
- package/dist/{customers-add-customer-group-AHGAPEIS.js → customers-add-customer-group-HI7J7YKN.js} +12 -13
- package/dist/{edit-inventory-item-ADNLKLCN.js → edit-inventory-item-MBPSBJL4.js} +12 -13
- package/dist/{edit-inventory-item-attributes-XVR2WLDU.js → edit-inventory-item-attributes-RVYWOFAC.js} +12 -13
- package/dist/{edit-reservation-HQQL42QX.js → edit-reservation-7BLGYXCJ.js} +5 -5
- package/dist/{edit-rules-YMKM5JPI.js → edit-rules-ZWDKM5M3.js} +13 -14
- package/dist/index.d.ts +2 -2
- package/dist/index.js +500 -566
- package/dist/{inventory-create-IVESXFSV.js → inventory-create-Q4VBPXSG.js} +15 -16
- package/dist/{inventory-detail-TINIAFVB.js → inventory-detail-6CKO3A3Y.js} +13 -14
- package/dist/{inventory-list-YLIAKQXI.js → inventory-list-2JGX6BRI.js} +2 -2
- package/dist/{inventory-metadata-6INRH2JC.js → inventory-metadata-COGGE5ZR.js} +12 -13
- package/dist/{inventory-stock-6YGTATID.js → inventory-stock-2QIKS7LE.js} +196 -35
- package/dist/{loader-6KDBTRVR.js → loader-OU7SKXOD.js} +4 -2
- package/dist/{location-detail-EK2S7WOK.js → location-detail-HOCNTQ7K.js} +14 -15
- package/dist/{location-fulfillment-providers-KUUNC2KP.js → location-fulfillment-providers-YQ2XFPAJ.js} +15 -16
- package/dist/{location-list-IV323QW2.js → location-list-I2UMU25V.js} +12 -13
- package/dist/{location-sales-channels-EYUXMTW7.js → location-sales-channels-GKIWX6B2.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-36JZFRGY.js → location-service-zone-shipping-option-create-6GYLJHEC.js} +15 -16
- package/dist/{location-service-zone-shipping-option-pricing-JLGCOZGS.js → location-service-zone-shipping-option-pricing-POBJOF3Z.js} +7 -7
- package/dist/{login-6L3RMREO.js → login-N7CVSQNG.js} +12 -13
- package/dist/{manage-locations-CFTM6DNH.js → manage-locations-TKLOHP3D.js} +1 -1
- package/dist/{marketplace-detail-BAU2MEJT.js → marketplace-detail-K52ALYGT.js} +16 -17
- package/dist/{marketplace-metadata-KRCGKOCA.js → marketplace-metadata-ZSX3IQF4.js} +15 -16
- package/dist/{offers-IFKM6EQT.js → offers-UBD6NICA.js} +6 -4
- package/dist/{order-create-claim-RMDDCUZ6.js → order-create-claim-OVHMMR3J.js} +268 -243
- package/dist/{order-create-edit-PQ54JFZZ.js → order-create-edit-HEOYCYZO.js} +205 -110
- package/dist/{order-create-exchange-T6DBVS75.js → order-create-exchange-L56VKQBL.js} +269 -242
- package/dist/{order-create-refund-OW3MIXBY.js → order-create-refund-UTJKJ3AJ.js} +16 -17
- package/dist/{order-create-return-YCX6C3VP.js → order-create-return-FLGYGUTQ.js} +45 -18
- package/dist/{order-detail-2OAEGBQG.js → order-detail-KAB4MV7X.js} +20 -22
- package/dist/{order-edit-billing-address-VGZBQHF5.js → order-edit-billing-address-RUURVISC.js} +14 -15
- package/dist/{order-edit-email-OOCXVRET.js → order-edit-email-OO7AMRHC.js} +13 -14
- package/dist/{order-edit-shipping-address-B4F3E5RE.js → order-edit-shipping-address-BRRXUE76.js} +13 -14
- package/dist/{order-list-DQTMCEFD.js → order-list-S3AJC6L5.js} +7 -7
- package/dist/{order-metadata-AN6MPHHT.js → order-metadata-OHK6TPAO.js} +12 -13
- package/dist/{order-request-transfer-A2NJSQ4H.js → order-request-transfer-YLMXC7NL.js} +13 -14
- package/dist/pages/index.d.ts +36 -316
- package/dist/pages/index.js +103 -114
- package/dist/{price-list-configuration-XAHXLCXR.js → price-list-configuration-Q5H22ZE2.js} +2 -2
- package/dist/{price-list-create-37SCDSPN.js → price-list-create-OYAVGRM5.js} +19 -20
- package/dist/{price-list-detail-4Q2HBLAM.js → price-list-detail-Q4GFFUFG.js} +18 -19
- package/dist/{price-list-edit-ZVLD4M5T.js → price-list-edit-YY4SXEI3.js} +2 -2
- package/dist/{price-list-list-ER4TOZTY.js → price-list-list-OIOY43TF.js} +4 -4
- package/dist/{price-list-prices-add-UASPZXKT.js → price-list-prices-add-KONZVSVQ.js} +19 -20
- package/dist/{price-list-prices-edit-WHCIGSB2.js → price-list-prices-edit-SMUKU7Q6.js} +14 -15
- package/dist/{product-add-existing-attributes-7HEJUR6J.js → product-add-existing-attributes-GGRRNFDK.js} +57 -21
- package/dist/{product-attributes-MHRXZK5S.js → product-attributes-C3KHQF2I.js} +2 -2
- package/dist/{product-bulk-edit-J6ZP7GGM.js → product-bulk-edit-J3CMBZN2.js} +5 -7
- package/dist/{product-create-KHJWRSUB.js → product-create-UR5OFGUY.js} +20 -21
- package/dist/{product-create-attribute-ZT3VZDNZ.js → product-create-attribute-XARMC6FJ.js} +73 -45
- package/dist/product-create-variant-6VUKYLWE.js +20 -0
- package/dist/{product-detail-GLISGO65.js → product-detail-OLFVJZ7T.js} +15 -17
- package/dist/{product-edit-EKAZRIJ6.js → product-edit-F4CKOIUO.js} +2 -4
- package/dist/product-edit-attribute-LG2ZM6HQ.js +175 -0
- package/dist/{product-list-2CTGPDDT.js → product-list-2BWYAATR.js} +18 -19
- package/dist/{product-media-KREKRDOC.js → product-media-EUDMCJ75.js} +5 -5
- package/dist/{product-metadata-O3BAEUYB.js → product-metadata-5WVNFCRL.js} +13 -14
- package/dist/{product-organization-SBQY44IF.js → product-organization-BFWDCHP4.js} +4 -47
- package/dist/{product-sales-channels-TFOGXCMI.js → product-sales-channels-WKQSYOEX.js} +3 -3
- package/dist/{product-shipping-profile-E4HJ4EYW.js → product-shipping-profile-WDLKA2SN.js} +2 -2
- package/dist/{product-tag-create-7JBM6I3V.js → product-tag-create-KQSVCWMC.js} +12 -13
- package/dist/{product-tag-detail-MTFAPSG2.js → product-tag-detail-CWDAY7F3.js} +22 -23
- package/dist/{product-tag-edit-O2ADFDD6.js → product-tag-edit-B4SIZCUK.js} +12 -13
- package/dist/{product-tag-list-EOULJIYQ.js → product-tag-list-2OK3OCMZ.js} +22 -23
- package/dist/{product-tag-metadata-SBOUTUXY.js → product-tag-metadata-MASTMIKE.js} +12 -13
- package/dist/{product-type-detail-H4CZN27J.js → product-type-detail-3X7ZTZJN.js} +17 -18
- package/dist/{product-type-metadata-KN5OXR6J.js → product-type-metadata-6BKTQHQC.js} +12 -13
- package/dist/{product-variant-detail-H2YRFDAU.js → product-variant-detail-PQ4RKPZT.js} +17 -27
- package/dist/{product-variant-edit-6W7LKCEE.js → product-variant-edit-TLF475SH.js} +163 -254
- package/dist/{product-variant-metadata-QESZ7VS2.js → product-variant-metadata-3M72B3PM.js} +12 -13
- package/dist/{promotion-create-TGC6BVWF.js → promotion-create-OKZBUSJD.js} +14 -15
- package/dist/{promotion-detail-VYIXZMMD.js → promotion-detail-MMNEDRXD.js} +15 -16
- package/dist/{promotion-list-C3SKV5BJ.js → promotion-list-DHWW7FTI.js} +4 -4
- package/dist/{refund-reason-create-2KEQFOID.js → refund-reason-create-N4DZ4UHS.js} +12 -13
- package/dist/{refund-reason-edit-E7CB7SM3.js → refund-reason-edit-OAHRDKXW.js} +12 -13
- package/dist/{refund-reason-list-TAHJK4OX.js → refund-reason-list-YLH4LD4S.js} +19 -20
- package/dist/{region-metadata-723RQGHS.js → region-metadata-BJSTTZFL.js} +15 -16
- package/dist/{reservation-create-Y3HG4AZA.js → reservation-create-TXYAY3KF.js} +4 -4
- package/dist/{reservation-detail-HQMADZ56.js → reservation-detail-CEENG76D.js} +16 -17
- package/dist/{reservation-list-YKC3JJ6K.js → reservation-list-SORWYHI4.js} +3 -3
- package/dist/{reservation-metadata-UG4YTEMY.js → reservation-metadata-G3QBZF4K.js} +15 -16
- package/dist/{reset-password-2VNU52CE.js → reset-password-QGQ4GAHK.js} +1 -1
- package/dist/{return-reason-list-IHFO2LJK.js → return-reason-list-7HTIV7NK.js} +7 -7
- package/dist/{sales-channel-add-products-YZTQ2SDS.js → sales-channel-add-products-3VZ5SLLP.js} +16 -17
- package/dist/{sales-channel-create-BSNCLZWR.js → sales-channel-create-XBR3QESI.js} +2 -2
- package/dist/{sales-channel-detail-67G7K3IE.js → sales-channel-detail-PHRSKCNM.js} +17 -18
- package/dist/{sales-channel-edit-FUDXMZYV.js → sales-channel-edit-ILBZBQP4.js} +2 -2
- package/dist/{sales-channel-list-GYLGH4U7.js → sales-channel-list-3GCESYAM.js} +13 -14
- package/dist/{sales-channel-metadata-H6RSHKVP.js → sales-channel-metadata-HVPGS756.js} +12 -13
- package/dist/{shipping-option-type-create-QAOW7753.js → shipping-option-type-create-3ZKT7WAC.js} +12 -13
- package/dist/{shipping-option-type-detail-QGWVDTDU.js → shipping-option-type-detail-IYXWAK7F.js} +14 -15
- package/dist/{shipping-option-type-edit-WXYBDRNY.js → shipping-option-type-edit-QRXYNNRW.js} +12 -13
- package/dist/{shipping-option-type-list-YSWP6DSC.js → shipping-option-type-list-MLIDCA3L.js} +14 -15
- package/dist/{shipping-profile-metadata-UE53IA3J.js → shipping-profile-metadata-T4HPNTLH.js} +12 -13
- package/dist/{store-bulk-edit-UYNQ2CPG.js → store-bulk-edit-BNF3HH5K.js} +2 -2
- package/dist/{store-create-WNFRHXWR.js → store-create-KFLNOD73.js} +15 -16
- package/dist/{store-details-R2GQU7HE.js → store-details-E347PHAN.js} +21 -36
- package/dist/{store-edit-UW3QOFFX.js → store-edit-Y6NLBIOP.js} +6 -6
- package/dist/{store-list-5CV7VJLO.js → store-list-S2L44OLB.js} +18 -19
- package/dist/{store-member-invite-M4NVBUXM.js → store-member-invite-J5XSPWMW.js} +1 -1
- package/dist/{tax-region-create-3KVECMFN.js → tax-region-create-MIDQXQS4.js} +13 -14
- package/dist/{tax-region-detail-AOT4X4DZ.js → tax-region-detail-AC7B3G57.js} +14 -15
- package/dist/{tax-region-edit-5T7VHKIA.js → tax-region-edit-5CORTHTC.js} +12 -13
- package/dist/{tax-region-metadata-RSZCJGJT.js → tax-region-metadata-QQZIQPAD.js} +12 -13
- package/dist/{tax-region-province-detail-XEMIX5SQ.js → tax-region-province-detail-2MGX7LEO.js} +14 -15
- package/dist/{tax-region-tax-override-create-KVVY4AF2.js → tax-region-tax-override-create-IONGD4TG.js} +21 -22
- package/dist/{tax-region-tax-override-edit-TVX7SMJD.js → tax-region-tax-override-edit-RIT6YRVK.js} +21 -22
- package/dist/{user-detail-W7DGVXDZ.js → user-detail-MMVBN3AE.js} +1 -1
- package/dist/{user-metadata-3AFZX3DM.js → user-metadata-OZLU3Y2X.js} +12 -13
- package/package.json +5 -5
- package/dist/chunk-ABFL4ACD.js +0 -207
- package/dist/chunk-IEPNHH7Z.js +0 -170
- package/dist/chunk-J65IXAGI.js +0 -292
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-RQ4NMLSS.js +0 -8
- package/dist/chunk-RXM4B6HR.js +0 -8
- package/dist/chunk-U7XILJH6.js +0 -423
- package/dist/chunk-UM7ZR3VU.js +0 -14
- package/dist/chunk-UR6HGBFE.js +0 -652
- package/dist/chunk-V5XHY5LP.js +0 -39
- package/dist/chunk-WV4SQ57G.js +0 -141
- package/dist/chunk-ZZ3XFIEM.js +0 -84
- package/dist/order-allocate-items-DJ2V4B7A.js +0 -563
- package/dist/order-create-fulfillment-SMSUJSBN.js +0 -644
- package/dist/order-create-shipment-5ZAWH5CZ.js +0 -215
- package/dist/order-receive-return-DZ4IUOHY.js +0 -563
- package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
- package/dist/product-brand-detail-6MPQ3UFN.js +0 -100
- package/dist/product-brand-edit-3TQDHZNN.js +0 -179
- package/dist/product-brand-list-ZBPBSRQN.js +0 -30
- package/dist/product-brand-metadata-EAMW6PQJ.js +0 -87
- package/dist/product-create-option-NIAP75EE.js +0 -130
- package/dist/product-create-variant-LCE47YFO.js +0 -60
- package/dist/product-edit-option-OZUZGMIM.js +0 -166
- package/dist/product-prices-R5JOHVGS.js +0 -267
- package/dist/product-stock-EIP2XJUR.js +0 -545
- package/dist/product-variant-manage-inventory-items-Q5MJG3EJ.js +0 -337
- package/dist/{chunk-WVKVPGJW.js → chunk-FNKBJCNF.js} +3 -3
- package/dist/{promotion-add-campaign-O3RTMS3W.js → promotion-add-campaign-S3JJSFHT.js} +2 -2
|
@@ -14,58 +14,6 @@ import {
|
|
|
14
14
|
__publicField
|
|
15
15
|
} from "./chunk-NBMM2TZK.js";
|
|
16
16
|
|
|
17
|
-
// src/components/data-grid/components/data-grid-skeleton.tsx
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
var DataGridSkeleton = ({
|
|
20
|
-
columns,
|
|
21
|
-
rows: rowCount = 10
|
|
22
|
-
}) => {
|
|
23
|
-
const rows = Array.from({ length: rowCount }, (_, i) => i);
|
|
24
|
-
const colCount = columns.length;
|
|
25
|
-
return /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle size-full", children: [
|
|
26
|
-
/* @__PURE__ */ jsx("div", { className: "bg-ui-bg-base border-b p-4", children: /* @__PURE__ */ jsx("div", { className: "bg-ui-button-neutral h-7 w-[116px] animate-pulse rounded-md" }) }),
|
|
27
|
-
/* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle size-full overflow-auto", children: [
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
29
|
-
"div",
|
|
30
|
-
{
|
|
31
|
-
className: "grid",
|
|
32
|
-
style: {
|
|
33
|
-
gridTemplateColumns: `repeat(${colCount}, 1fr)`
|
|
34
|
-
},
|
|
35
|
-
children: columns.map((_col, i) => {
|
|
36
|
-
return /* @__PURE__ */ jsx(
|
|
37
|
-
"div",
|
|
38
|
-
{
|
|
39
|
-
className: "bg-ui-bg-base flex h-10 w-[200px] items-center border-b border-r px-4 py-2.5 last:border-r-0",
|
|
40
|
-
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-[14px] w-[164px]" })
|
|
41
|
-
},
|
|
42
|
-
i
|
|
43
|
-
);
|
|
44
|
-
})
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ jsx("div", { children: rows.map((_, j) => /* @__PURE__ */ jsx(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
className: "grid",
|
|
51
|
-
style: { gridTemplateColumns: `repeat(${colCount}, 1fr)` },
|
|
52
|
-
children: columns.map((_col, k) => {
|
|
53
|
-
return /* @__PURE__ */ jsx(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
className: "bg-ui-bg-base flex h-10 w-[200px] items-center border-b border-r px-4 py-2.5 last:border-r-0",
|
|
57
|
-
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-[14px] w-[164px]" })
|
|
58
|
-
},
|
|
59
|
-
k
|
|
60
|
-
);
|
|
61
|
-
})
|
|
62
|
-
},
|
|
63
|
-
j
|
|
64
|
-
)) })
|
|
65
|
-
] })
|
|
66
|
-
] });
|
|
67
|
-
};
|
|
68
|
-
|
|
69
17
|
// src/components/data-grid/components/data-grid-boolean-cell.tsx
|
|
70
18
|
import { Checkbox } from "@medusajs/ui";
|
|
71
19
|
import { Controller } from "react-hook-form";
|
|
@@ -1079,15 +1027,6 @@ function getColumnName(column) {
|
|
|
1079
1027
|
|
|
1080
1028
|
// src/components/data-grid/hooks/use-data-grid-duplicate-cell.tsx
|
|
1081
1029
|
import { useWatch } from "react-hook-form";
|
|
1082
|
-
var useDataGridDuplicateCell = ({
|
|
1083
|
-
duplicateOf
|
|
1084
|
-
}) => {
|
|
1085
|
-
const { control } = useDataGridContext();
|
|
1086
|
-
const watchedValue = useWatch({ control, name: duplicateOf });
|
|
1087
|
-
return {
|
|
1088
|
-
watchedValue
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
1030
|
|
|
1092
1031
|
// src/components/data-grid/hooks/use-data-grid-error-highlighting.tsx
|
|
1093
1032
|
import { useCallback as useCallback7, useMemo as useMemo3, useState as useState3 } from "react";
|
|
@@ -2021,7 +1960,7 @@ import { get as get2 } from "react-hook-form";
|
|
|
2021
1960
|
// src/components/data-grid/components/data-grid-row-error-indicator.tsx
|
|
2022
1961
|
import { Badge, Tooltip } from "@medusajs/ui";
|
|
2023
1962
|
import { useTranslation } from "react-i18next";
|
|
2024
|
-
import { jsx
|
|
1963
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2025
1964
|
var DataGridRowErrorIndicator = ({
|
|
2026
1965
|
rowErrors
|
|
2027
1966
|
}) => {
|
|
@@ -2029,12 +1968,12 @@ var DataGridRowErrorIndicator = ({
|
|
|
2029
1968
|
if (!rowErrors || rowErrorCount <= 0) {
|
|
2030
1969
|
return null;
|
|
2031
1970
|
}
|
|
2032
|
-
return /* @__PURE__ */
|
|
1971
|
+
return /* @__PURE__ */ jsx(
|
|
2033
1972
|
Tooltip,
|
|
2034
1973
|
{
|
|
2035
|
-
content: /* @__PURE__ */
|
|
1974
|
+
content: /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-y-3", children: rowErrors.map((error, index) => /* @__PURE__ */ jsx(DataGridRowErrorLine, { error }, index)) }),
|
|
2036
1975
|
delayDuration: 0,
|
|
2037
|
-
children: /* @__PURE__ */
|
|
1976
|
+
children: /* @__PURE__ */ jsx(Badge, { color: "red", size: "2xsmall", className: "cursor-default", children: rowErrorCount })
|
|
2038
1977
|
}
|
|
2039
1978
|
);
|
|
2040
1979
|
};
|
|
@@ -2042,9 +1981,9 @@ var DataGridRowErrorLine = ({
|
|
|
2042
1981
|
error
|
|
2043
1982
|
}) => {
|
|
2044
1983
|
const { t } = useTranslation();
|
|
2045
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ jsxs("li", { className: "txt-compact-small flex flex-col items-start", children: [
|
|
2046
1985
|
error.message,
|
|
2047
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ jsx(
|
|
2048
1987
|
"button",
|
|
2049
1988
|
{
|
|
2050
1989
|
type: "button",
|
|
@@ -2057,7 +1996,7 @@ var DataGridRowErrorLine = ({
|
|
|
2057
1996
|
};
|
|
2058
1997
|
|
|
2059
1998
|
// src/components/data-grid/components/data-grid-cell-container.tsx
|
|
2060
|
-
import { jsx as
|
|
1999
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2061
2000
|
var DataGridCellContainer = ({
|
|
2062
2001
|
isAnchor,
|
|
2063
2002
|
isSelected,
|
|
@@ -2075,8 +2014,8 @@ var DataGridCellContainer = ({
|
|
|
2075
2014
|
}) => {
|
|
2076
2015
|
const error = get2(errors, field);
|
|
2077
2016
|
const hasError = !!error;
|
|
2078
|
-
return /* @__PURE__ */
|
|
2079
|
-
/* @__PURE__ */
|
|
2017
|
+
return /* @__PURE__ */ jsxs2("div", { className: clx("group/container relative h-full w-full"), children: [
|
|
2018
|
+
/* @__PURE__ */ jsxs2(
|
|
2080
2019
|
"div",
|
|
2081
2020
|
{
|
|
2082
2021
|
className: clx(
|
|
@@ -2093,28 +2032,28 @@ var DataGridCellContainer = ({
|
|
|
2093
2032
|
tabIndex: -1,
|
|
2094
2033
|
...innerProps,
|
|
2095
2034
|
children: [
|
|
2096
|
-
/* @__PURE__ */
|
|
2035
|
+
/* @__PURE__ */ jsx2(
|
|
2097
2036
|
ErrorMessage,
|
|
2098
2037
|
{
|
|
2099
2038
|
name: field,
|
|
2100
2039
|
errors,
|
|
2101
2040
|
render: ({ message }) => {
|
|
2102
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx2(Tooltip2, { content: message, delayDuration: 0, children: /* @__PURE__ */ jsx2(ExclamationCircle, { className: "text-ui-tag-red-icon z-[3]" }) }) });
|
|
2103
2042
|
}
|
|
2104
2043
|
}
|
|
2105
2044
|
),
|
|
2106
|
-
/* @__PURE__ */
|
|
2045
|
+
/* @__PURE__ */ jsx2(
|
|
2107
2046
|
"div",
|
|
2108
2047
|
{
|
|
2109
2048
|
className: clx("relative z-[1] flex h-full w-full", {
|
|
2110
2049
|
"items-center justify-center": !isMultiLine,
|
|
2111
2050
|
"items-start": isMultiLine
|
|
2112
2051
|
}),
|
|
2113
|
-
children: /* @__PURE__ */
|
|
2052
|
+
children: /* @__PURE__ */ jsx2(RenderChildren, { isAnchor, placeholder, children })
|
|
2114
2053
|
}
|
|
2115
2054
|
),
|
|
2116
|
-
/* @__PURE__ */
|
|
2117
|
-
showOverlay && /* @__PURE__ */
|
|
2055
|
+
/* @__PURE__ */ jsx2(DataGridRowErrorIndicator, { rowErrors }),
|
|
2056
|
+
showOverlay && /* @__PURE__ */ jsx2(
|
|
2118
2057
|
"div",
|
|
2119
2058
|
{
|
|
2120
2059
|
...overlayProps,
|
|
@@ -2140,7 +2079,7 @@ var RenderChildren = ({
|
|
|
2140
2079
|
};
|
|
2141
2080
|
|
|
2142
2081
|
// src/components/data-grid/components/data-grid-boolean-cell.tsx
|
|
2143
|
-
import { jsx as
|
|
2082
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
2144
2083
|
var DataGridBooleanCell = ({
|
|
2145
2084
|
context,
|
|
2146
2085
|
disabled
|
|
@@ -2150,13 +2089,13 @@ var DataGridBooleanCell = ({
|
|
|
2150
2089
|
});
|
|
2151
2090
|
const errorProps = useDataGridCellError({ context });
|
|
2152
2091
|
const { container, input } = renderProps;
|
|
2153
|
-
return /* @__PURE__ */
|
|
2092
|
+
return /* @__PURE__ */ jsx3(
|
|
2154
2093
|
Controller,
|
|
2155
2094
|
{
|
|
2156
2095
|
control,
|
|
2157
2096
|
name: field,
|
|
2158
2097
|
render: ({ field: field2 }) => {
|
|
2159
|
-
return /* @__PURE__ */
|
|
2098
|
+
return /* @__PURE__ */ jsx3(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx3(Inner, { field: field2, inputProps: input, disabled }) });
|
|
2160
2099
|
}
|
|
2161
2100
|
}
|
|
2162
2101
|
);
|
|
@@ -2175,7 +2114,7 @@ var Inner = ({
|
|
|
2175
2114
|
...attributes
|
|
2176
2115
|
} = inputProps;
|
|
2177
2116
|
const combinedRefs = useCombinedRefs(ref, inputRef);
|
|
2178
|
-
return /* @__PURE__ */
|
|
2117
|
+
return /* @__PURE__ */ jsx3(
|
|
2179
2118
|
Checkbox,
|
|
2180
2119
|
{
|
|
2181
2120
|
disabled: disabled || fieldDisabled,
|
|
@@ -2200,7 +2139,7 @@ import CurrencyInput, {
|
|
|
2200
2139
|
} from "react-currency-input-field";
|
|
2201
2140
|
import { Controller as Controller2 } from "react-hook-form";
|
|
2202
2141
|
import { useCallback as useCallback12, useEffect as useEffect3, useState as useState4 } from "react";
|
|
2203
|
-
import { jsx as
|
|
2142
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2204
2143
|
var DataGridCurrencyCell = ({
|
|
2205
2144
|
context,
|
|
2206
2145
|
code
|
|
@@ -2211,13 +2150,13 @@ var DataGridCurrencyCell = ({
|
|
|
2211
2150
|
const errorProps = useDataGridCellError({ context });
|
|
2212
2151
|
const { container, input } = renderProps;
|
|
2213
2152
|
const currency = currencies[code.toUpperCase()];
|
|
2214
|
-
return /* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ jsx4(
|
|
2215
2154
|
Controller2,
|
|
2216
2155
|
{
|
|
2217
2156
|
control,
|
|
2218
2157
|
name: field,
|
|
2219
2158
|
render: ({ field: field2 }) => {
|
|
2220
|
-
return /* @__PURE__ */
|
|
2159
|
+
return /* @__PURE__ */ jsx4(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx4(Inner2, { field: field2, inputProps: input, currencyInfo: currency }) });
|
|
2221
2160
|
}
|
|
2222
2161
|
}
|
|
2223
2162
|
);
|
|
@@ -2263,8 +2202,8 @@ var Inner2 = ({
|
|
|
2263
2202
|
setLocalValue(update);
|
|
2264
2203
|
}, [value, formatter]);
|
|
2265
2204
|
const combinedRed = useCombinedRefs(inputRef, ref);
|
|
2266
|
-
return /* @__PURE__ */
|
|
2267
|
-
/* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ jsxs3("div", { className: "relative flex size-full items-center", children: [
|
|
2206
|
+
/* @__PURE__ */ jsx4(
|
|
2268
2207
|
"span",
|
|
2269
2208
|
{
|
|
2270
2209
|
className: "txt-compact-small text-ui-fg-muted pointer-events-none absolute left-0 w-fit min-w-4",
|
|
@@ -2272,7 +2211,7 @@ var Inner2 = ({
|
|
|
2272
2211
|
children: currencyInfo.symbol_native
|
|
2273
2212
|
}
|
|
2274
2213
|
),
|
|
2275
|
-
/* @__PURE__ */
|
|
2214
|
+
/* @__PURE__ */ jsx4(
|
|
2276
2215
|
CurrencyInput,
|
|
2277
2216
|
{
|
|
2278
2217
|
...rest,
|
|
@@ -2301,7 +2240,7 @@ var Inner2 = ({
|
|
|
2301
2240
|
import { clx as clx2 } from "@medusajs/ui";
|
|
2302
2241
|
import { useCallback as useCallback13, useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
|
|
2303
2242
|
import { Controller as Controller3 } from "react-hook-form";
|
|
2304
|
-
import { jsx as
|
|
2243
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
2305
2244
|
var DataGridMultilineCell = ({
|
|
2306
2245
|
context
|
|
2307
2246
|
}) => {
|
|
@@ -2310,13 +2249,13 @@ var DataGridMultilineCell = ({
|
|
|
2310
2249
|
});
|
|
2311
2250
|
const errorProps = useDataGridCellError({ context });
|
|
2312
2251
|
const { container, input } = renderProps;
|
|
2313
|
-
return /* @__PURE__ */
|
|
2252
|
+
return /* @__PURE__ */ jsx5(
|
|
2314
2253
|
Controller3,
|
|
2315
2254
|
{
|
|
2316
2255
|
control,
|
|
2317
2256
|
name: field,
|
|
2318
2257
|
render: ({ field: field2 }) => {
|
|
2319
|
-
return /* @__PURE__ */
|
|
2258
|
+
return /* @__PURE__ */ jsx5(DataGridCellContainer, { ...container, ...errorProps, isMultiLine: true, children: /* @__PURE__ */ jsx5(Inner3, { field: field2, inputProps: input }) });
|
|
2320
2259
|
}
|
|
2321
2260
|
}
|
|
2322
2261
|
);
|
|
@@ -2349,7 +2288,7 @@ var Inner3 = ({
|
|
|
2349
2288
|
const timeoutId = setTimeout(adjustTextareaHeight, 50);
|
|
2350
2289
|
return () => clearTimeout(timeoutId);
|
|
2351
2290
|
}, [adjustTextareaHeight]);
|
|
2352
|
-
return /* @__PURE__ */
|
|
2291
|
+
return /* @__PURE__ */ jsx5(
|
|
2353
2292
|
"textarea",
|
|
2354
2293
|
{
|
|
2355
2294
|
className: clx2(
|
|
@@ -2380,7 +2319,7 @@ var Inner3 = ({
|
|
|
2380
2319
|
import { clx as clx3 } from "@medusajs/ui";
|
|
2381
2320
|
import { useEffect as useEffect5, useState as useState6 } from "react";
|
|
2382
2321
|
import { Controller as Controller4 } from "react-hook-form";
|
|
2383
|
-
import { jsx as
|
|
2322
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
2384
2323
|
var DataGridNumberCell = ({
|
|
2385
2324
|
context,
|
|
2386
2325
|
...rest
|
|
@@ -2390,13 +2329,13 @@ var DataGridNumberCell = ({
|
|
|
2390
2329
|
});
|
|
2391
2330
|
const errorProps = useDataGridCellError({ context });
|
|
2392
2331
|
const { container, input } = renderProps;
|
|
2393
|
-
return /* @__PURE__ */
|
|
2332
|
+
return /* @__PURE__ */ jsx6(
|
|
2394
2333
|
Controller4,
|
|
2395
2334
|
{
|
|
2396
2335
|
control,
|
|
2397
2336
|
name: field,
|
|
2398
2337
|
render: ({ field: field2 }) => {
|
|
2399
|
-
return /* @__PURE__ */
|
|
2338
|
+
return /* @__PURE__ */ jsx6(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx6(Inner4, { field: field2, inputProps: input, ...rest }) });
|
|
2400
2339
|
}
|
|
2401
2340
|
}
|
|
2402
2341
|
);
|
|
@@ -2419,7 +2358,7 @@ var Inner4 = ({
|
|
|
2419
2358
|
setLocalValue(value);
|
|
2420
2359
|
}, [value]);
|
|
2421
2360
|
const combinedRefs = useCombinedRefs(inputRef, ref);
|
|
2422
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ jsx6("div", { className: "size-full", children: /* @__PURE__ */ jsx6(
|
|
2423
2362
|
"input",
|
|
2424
2363
|
{
|
|
2425
2364
|
ref: combinedRefs,
|
|
@@ -2447,7 +2386,7 @@ var Inner4 = ({
|
|
|
2447
2386
|
|
|
2448
2387
|
// src/components/data-grid/components/data-grid-readonly-cell.tsx
|
|
2449
2388
|
import { clx as clx4 } from "@medusajs/ui";
|
|
2450
|
-
import { jsx as
|
|
2389
|
+
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2451
2390
|
var DataGridReadonlyCell = ({
|
|
2452
2391
|
context,
|
|
2453
2392
|
color = "muted",
|
|
@@ -2455,7 +2394,7 @@ var DataGridReadonlyCell = ({
|
|
|
2455
2394
|
isMultiLine = false
|
|
2456
2395
|
}) => {
|
|
2457
2396
|
const { rowErrors } = useDataGridCellError({ context });
|
|
2458
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ jsxs4(
|
|
2459
2398
|
"div",
|
|
2460
2399
|
{
|
|
2461
2400
|
className: clx4(
|
|
@@ -2465,7 +2404,7 @@ var DataGridReadonlyCell = ({
|
|
|
2465
2404
|
"h-full items-center"
|
|
2466
2405
|
),
|
|
2467
2406
|
children: [
|
|
2468
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ jsx7(
|
|
2469
2408
|
"div",
|
|
2470
2409
|
{
|
|
2471
2410
|
className: clx4("flex-1", {
|
|
@@ -2475,7 +2414,7 @@ var DataGridReadonlyCell = ({
|
|
|
2475
2414
|
children
|
|
2476
2415
|
}
|
|
2477
2416
|
),
|
|
2478
|
-
/* @__PURE__ */
|
|
2417
|
+
/* @__PURE__ */ jsx7(DataGridRowErrorIndicator, { rowErrors })
|
|
2479
2418
|
]
|
|
2480
2419
|
}
|
|
2481
2420
|
);
|
|
@@ -2563,7 +2502,7 @@ import {
|
|
|
2563
2502
|
import { Dialog as RadixDialog } from "radix-ui";
|
|
2564
2503
|
import { useMemo as useMemo4, useState as useState8 } from "react";
|
|
2565
2504
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
2566
|
-
import { jsx as
|
|
2505
|
+
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2567
2506
|
var useDataGridShortcuts = () => {
|
|
2568
2507
|
const { t } = useTranslation2();
|
|
2569
2508
|
const shortcuts = useMemo4(
|
|
@@ -2718,10 +2657,10 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2718
2657
|
(shortcut) => shortcut.label.toLowerCase().includes(searchValue.toLowerCase())
|
|
2719
2658
|
);
|
|
2720
2659
|
}, [searchValue, shortcuts]);
|
|
2721
|
-
return /* @__PURE__ */
|
|
2722
|
-
/* @__PURE__ */
|
|
2723
|
-
/* @__PURE__ */
|
|
2724
|
-
/* @__PURE__ */
|
|
2660
|
+
return /* @__PURE__ */ jsxs5(RadixDialog.Root, { open, onOpenChange, children: [
|
|
2661
|
+
/* @__PURE__ */ jsx8(RadixDialog.Trigger, { asChild: true, children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("dataGrid.shortcuts.label") }) }),
|
|
2662
|
+
/* @__PURE__ */ jsxs5(RadixDialog.Portal, { children: [
|
|
2663
|
+
/* @__PURE__ */ jsx8(
|
|
2725
2664
|
RadixDialog.Overlay,
|
|
2726
2665
|
{
|
|
2727
2666
|
className: clx5(
|
|
@@ -2730,19 +2669,19 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2730
2669
|
)
|
|
2731
2670
|
}
|
|
2732
2671
|
),
|
|
2733
|
-
/* @__PURE__ */
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2737
|
-
/* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
2672
|
+
/* @__PURE__ */ jsxs5(RadixDialog.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg outline-none", children: [
|
|
2673
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-y-3 px-6 py-4", children: [
|
|
2674
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
|
|
2675
|
+
/* @__PURE__ */ jsxs5("div", { children: [
|
|
2676
|
+
/* @__PURE__ */ jsx8(RadixDialog.Title, { asChild: true, children: /* @__PURE__ */ jsx8(Heading, { children: t("app.menus.user.shortcuts") }) }),
|
|
2677
|
+
/* @__PURE__ */ jsx8(RadixDialog.Description, { className: "sr-only" })
|
|
2739
2678
|
] }),
|
|
2740
|
-
/* @__PURE__ */
|
|
2741
|
-
/* @__PURE__ */
|
|
2742
|
-
/* @__PURE__ */
|
|
2679
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", children: [
|
|
2680
|
+
/* @__PURE__ */ jsx8(Kbd, { children: "esc" }),
|
|
2681
|
+
/* @__PURE__ */ jsx8(RadixDialog.Close, { asChild: true, children: /* @__PURE__ */ jsx8(IconButton, { variant: "transparent", size: "small", children: /* @__PURE__ */ jsx8(XMark, {}) }) })
|
|
2743
2682
|
] })
|
|
2744
2683
|
] }),
|
|
2745
|
-
/* @__PURE__ */
|
|
2684
|
+
/* @__PURE__ */ jsx8("div", { children: /* @__PURE__ */ jsx8(
|
|
2746
2685
|
Input,
|
|
2747
2686
|
{
|
|
2748
2687
|
type: "search",
|
|
@@ -2751,15 +2690,15 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2751
2690
|
}
|
|
2752
2691
|
) })
|
|
2753
2692
|
] }),
|
|
2754
|
-
/* @__PURE__ */
|
|
2755
|
-
return /* @__PURE__ */
|
|
2693
|
+
/* @__PURE__ */ jsx8("div", { className: "flex flex-col divide-y overflow-y-auto", children: searchResults.map((shortcut, index) => {
|
|
2694
|
+
return /* @__PURE__ */ jsxs5(
|
|
2756
2695
|
"div",
|
|
2757
2696
|
{
|
|
2758
2697
|
className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
|
|
2759
2698
|
children: [
|
|
2760
|
-
/* @__PURE__ */
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
return /* @__PURE__ */
|
|
2699
|
+
/* @__PURE__ */ jsx8(Text, { size: "small", children: shortcut.label }),
|
|
2700
|
+
/* @__PURE__ */ jsx8("div", { className: "flex items-center gap-x-1", children: shortcut.keys.Mac?.map((key, index2) => {
|
|
2701
|
+
return /* @__PURE__ */ jsx8("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ jsx8(Kbd, { children: key }) }, index2);
|
|
2763
2702
|
}) })
|
|
2764
2703
|
]
|
|
2765
2704
|
},
|
|
@@ -2772,7 +2711,7 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2772
2711
|
};
|
|
2773
2712
|
|
|
2774
2713
|
// src/components/data-grid/components/data-grid-root.tsx
|
|
2775
|
-
import { jsx as
|
|
2714
|
+
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2776
2715
|
var ROW_HEIGHT = 40;
|
|
2777
2716
|
var getCommonPinningStyles = (column) => {
|
|
2778
2717
|
const isPinned = column.getIsPinned();
|
|
@@ -3209,8 +3148,8 @@ var DataGridRoot = ({
|
|
|
3209
3148
|
});
|
|
3210
3149
|
}
|
|
3211
3150
|
}, [anchor, trapActive, setSingleRange, scrollToCoordinates, queryTool]);
|
|
3212
|
-
return /* @__PURE__ */
|
|
3213
|
-
/* @__PURE__ */
|
|
3151
|
+
return /* @__PURE__ */ jsx9(DataGridContext.Provider, { value: values, children: /* @__PURE__ */ jsxs6("div", { className: "bg-ui-bg-subtle flex size-full flex-col", children: [
|
|
3152
|
+
/* @__PURE__ */ jsx9(
|
|
3214
3153
|
DataGridHeader,
|
|
3215
3154
|
{
|
|
3216
3155
|
showColumnsDropdown,
|
|
@@ -3225,7 +3164,7 @@ var DataGridRoot = ({
|
|
|
3225
3164
|
headerContent
|
|
3226
3165
|
}
|
|
3227
3166
|
),
|
|
3228
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ jsx9("div", { className: "size-full overflow-hidden", children: /* @__PURE__ */ jsx9(
|
|
3229
3168
|
"div",
|
|
3230
3169
|
{
|
|
3231
3170
|
ref: containerRef,
|
|
@@ -3235,19 +3174,19 @@ var DataGridRoot = ({
|
|
|
3235
3174
|
onClick: handleRestoreGridFocus,
|
|
3236
3175
|
"data-container": true,
|
|
3237
3176
|
role: "application",
|
|
3238
|
-
children: /* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3177
|
+
children: /* @__PURE__ */ jsxs6("div", { role: "grid", className: "text-ui-fg-subtle grid", children: [
|
|
3178
|
+
/* @__PURE__ */ jsx9(
|
|
3240
3179
|
"div",
|
|
3241
3180
|
{
|
|
3242
3181
|
role: "rowgroup",
|
|
3243
3182
|
className: "txt-compact-small-plus bg-ui-bg-subtle sticky top-0 z-[1] grid",
|
|
3244
|
-
children: grid.getHeaderGroups().map((headerGroup) => /* @__PURE__ */
|
|
3183
|
+
children: grid.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxs6(
|
|
3245
3184
|
"div",
|
|
3246
3185
|
{
|
|
3247
3186
|
role: "row",
|
|
3248
3187
|
className: "flex h-10 w-full",
|
|
3249
3188
|
children: [
|
|
3250
|
-
virtualPaddingLeft ? /* @__PURE__ */
|
|
3189
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx9(
|
|
3251
3190
|
"div",
|
|
3252
3191
|
{
|
|
3253
3192
|
role: "presentation",
|
|
@@ -3259,7 +3198,7 @@ var DataGridRoot = ({
|
|
|
3259
3198
|
const previousVC = array[index - 1];
|
|
3260
3199
|
if (previousVC && vc.index !== previousVC.index + 1) {
|
|
3261
3200
|
acc.push(
|
|
3262
|
-
/* @__PURE__ */
|
|
3201
|
+
/* @__PURE__ */ jsx9(
|
|
3263
3202
|
"div",
|
|
3264
3203
|
{
|
|
3265
3204
|
role: "presentation",
|
|
@@ -3273,7 +3212,7 @@ var DataGridRoot = ({
|
|
|
3273
3212
|
);
|
|
3274
3213
|
}
|
|
3275
3214
|
acc.push(
|
|
3276
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ jsx9(
|
|
3277
3216
|
"div",
|
|
3278
3217
|
{
|
|
3279
3218
|
role: "columnheader",
|
|
@@ -3293,7 +3232,7 @@ var DataGridRoot = ({
|
|
|
3293
3232
|
);
|
|
3294
3233
|
return acc;
|
|
3295
3234
|
}, []),
|
|
3296
|
-
virtualPaddingRight ? /* @__PURE__ */
|
|
3235
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx9(
|
|
3297
3236
|
"div",
|
|
3298
3237
|
{
|
|
3299
3238
|
role: "presentation",
|
|
@@ -3309,7 +3248,7 @@ var DataGridRoot = ({
|
|
|
3309
3248
|
))
|
|
3310
3249
|
}
|
|
3311
3250
|
),
|
|
3312
|
-
/* @__PURE__ */
|
|
3251
|
+
/* @__PURE__ */ jsx9(
|
|
3313
3252
|
"div",
|
|
3314
3253
|
{
|
|
3315
3254
|
role: "rowgroup",
|
|
@@ -3320,7 +3259,7 @@ var DataGridRoot = ({
|
|
|
3320
3259
|
children: virtualRows.map((virtualRow) => {
|
|
3321
3260
|
const row = visibleRows[virtualRow.index];
|
|
3322
3261
|
if (!row) {
|
|
3323
|
-
return /* @__PURE__ */
|
|
3262
|
+
return /* @__PURE__ */ jsx9(
|
|
3324
3263
|
DataGridRowSkeleton,
|
|
3325
3264
|
{
|
|
3326
3265
|
virtualRow,
|
|
@@ -3332,7 +3271,7 @@ var DataGridRoot = ({
|
|
|
3332
3271
|
);
|
|
3333
3272
|
}
|
|
3334
3273
|
const rowIndex = flatRows.findIndex((r) => r.id === row.id);
|
|
3335
|
-
return /* @__PURE__ */
|
|
3274
|
+
return /* @__PURE__ */ jsx9(
|
|
3336
3275
|
DataGridRow,
|
|
3337
3276
|
{
|
|
3338
3277
|
row,
|
|
@@ -3382,32 +3321,32 @@ var DataGridHeader = ({
|
|
|
3382
3321
|
onHeaderInteractionChange(value);
|
|
3383
3322
|
setColumnsOpen(value);
|
|
3384
3323
|
};
|
|
3385
|
-
return /* @__PURE__ */
|
|
3386
|
-
showColumnsDropdown && /* @__PURE__ */
|
|
3387
|
-
/* @__PURE__ */
|
|
3324
|
+
return /* @__PURE__ */ jsxs6("div", { className: "bg-ui-bg-base flex items-center justify-between border-b p-4", children: [
|
|
3325
|
+
showColumnsDropdown && /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-2", children: [
|
|
3326
|
+
/* @__PURE__ */ jsxs6(
|
|
3388
3327
|
DropdownMenu,
|
|
3389
3328
|
{
|
|
3390
3329
|
dir: direction,
|
|
3391
3330
|
open: columnsOpen,
|
|
3392
3331
|
onOpenChange: handleColumnsOpenChange,
|
|
3393
3332
|
children: [
|
|
3394
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ jsx9(
|
|
3395
3334
|
ConditionalTooltip,
|
|
3396
3335
|
{
|
|
3397
3336
|
showTooltip: isDisabled,
|
|
3398
3337
|
content: t("dataGrid.columns.disabled"),
|
|
3399
|
-
children: /* @__PURE__ */
|
|
3400
|
-
hasChanged ? /* @__PURE__ */
|
|
3338
|
+
children: /* @__PURE__ */ jsx9(DropdownMenu.Trigger, { asChild: true, disabled: isDisabled, children: /* @__PURE__ */ jsxs6(Button2, { size: "small", variant: "secondary", children: [
|
|
3339
|
+
hasChanged ? /* @__PURE__ */ jsx9(AdjustmentsDone, {}) : /* @__PURE__ */ jsx9(Adjustments, {}),
|
|
3401
3340
|
t("dataGrid.columns.view")
|
|
3402
3341
|
] }) })
|
|
3403
3342
|
}
|
|
3404
3343
|
),
|
|
3405
|
-
/* @__PURE__ */
|
|
3344
|
+
/* @__PURE__ */ jsx9(DropdownMenu.Content, { children: columnOptions.map((column, index) => {
|
|
3406
3345
|
const { checked, disabled, id, name } = column;
|
|
3407
3346
|
if (disabled) {
|
|
3408
3347
|
return null;
|
|
3409
3348
|
}
|
|
3410
|
-
return /* @__PURE__ */
|
|
3349
|
+
return /* @__PURE__ */ jsx9(
|
|
3411
3350
|
DropdownMenu.CheckboxItem,
|
|
3412
3351
|
{
|
|
3413
3352
|
checked,
|
|
@@ -3421,7 +3360,7 @@ var DataGridHeader = ({
|
|
|
3421
3360
|
]
|
|
3422
3361
|
}
|
|
3423
3362
|
),
|
|
3424
|
-
hasChanged && /* @__PURE__ */
|
|
3363
|
+
hasChanged && /* @__PURE__ */ jsx9(
|
|
3425
3364
|
Button2,
|
|
3426
3365
|
{
|
|
3427
3366
|
size: "small",
|
|
@@ -3435,8 +3374,8 @@ var DataGridHeader = ({
|
|
|
3435
3374
|
)
|
|
3436
3375
|
] }),
|
|
3437
3376
|
headerContent,
|
|
3438
|
-
/* @__PURE__ */
|
|
3439
|
-
errorCount > 0 && /* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ jsxs6("div", { className: "ml-auto flex items-center gap-x-2", children: [
|
|
3378
|
+
errorCount > 0 && /* @__PURE__ */ jsxs6(
|
|
3440
3379
|
Button2,
|
|
3441
3380
|
{
|
|
3442
3381
|
size: "small",
|
|
@@ -3447,14 +3386,14 @@ var DataGridHeader = ({
|
|
|
3447
3386
|
"bg-ui-button-neutral-pressed": isHighlighted
|
|
3448
3387
|
}),
|
|
3449
3388
|
children: [
|
|
3450
|
-
/* @__PURE__ */
|
|
3451
|
-
/* @__PURE__ */
|
|
3389
|
+
/* @__PURE__ */ jsx9(ExclamationCircle2, { className: "text-ui-fg-subtle" }),
|
|
3390
|
+
/* @__PURE__ */ jsx9("span", { children: t("dataGrid.errors.count", {
|
|
3452
3391
|
count: errorCount
|
|
3453
3392
|
}) })
|
|
3454
3393
|
]
|
|
3455
3394
|
}
|
|
3456
3395
|
),
|
|
3457
|
-
/* @__PURE__ */
|
|
3396
|
+
/* @__PURE__ */ jsx9(
|
|
3458
3397
|
DataGridKeyboardShortcutModal,
|
|
3459
3398
|
{
|
|
3460
3399
|
open: shortcutsOpen,
|
|
@@ -3477,7 +3416,7 @@ var DataGridCell = ({
|
|
|
3477
3416
|
col: columnIndex
|
|
3478
3417
|
};
|
|
3479
3418
|
const isAnchor = isCellMatch(coords, anchor);
|
|
3480
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ jsx9(
|
|
3481
3420
|
"div",
|
|
3482
3421
|
{
|
|
3483
3422
|
role: "gridcell",
|
|
@@ -3493,13 +3432,13 @@ var DataGridCell = ({
|
|
|
3493
3432
|
"relative flex items-stretch border-b border-r p-0 outline-none"
|
|
3494
3433
|
),
|
|
3495
3434
|
tabIndex: -1,
|
|
3496
|
-
children: /* @__PURE__ */
|
|
3435
|
+
children: /* @__PURE__ */ jsxs6("div", { className: "relative w-full", children: [
|
|
3497
3436
|
flexRender(cell.column.columnDef.cell, {
|
|
3498
3437
|
...cell.getContext(),
|
|
3499
3438
|
columnIndex,
|
|
3500
3439
|
rowIndex
|
|
3501
3440
|
}),
|
|
3502
|
-
isAnchor && /* @__PURE__ */
|
|
3441
|
+
isAnchor && /* @__PURE__ */ jsx9(
|
|
3503
3442
|
"div",
|
|
3504
3443
|
{
|
|
3505
3444
|
onMouseDown: onDragToFillStart,
|
|
@@ -3529,7 +3468,7 @@ var DataGridRow = ({
|
|
|
3529
3468
|
multiColumnSelection
|
|
3530
3469
|
}) => {
|
|
3531
3470
|
const visibleCells = row.getVisibleCells();
|
|
3532
|
-
return /* @__PURE__ */
|
|
3471
|
+
return /* @__PURE__ */ jsxs6(
|
|
3533
3472
|
"div",
|
|
3534
3473
|
{
|
|
3535
3474
|
role: "row",
|
|
@@ -3541,7 +3480,7 @@ var DataGridRow = ({
|
|
|
3541
3480
|
},
|
|
3542
3481
|
className: "bg-ui-bg-subtle txt-compact-small absolute flex min-h-10 w-full",
|
|
3543
3482
|
children: [
|
|
3544
|
-
virtualPaddingLeft ? /* @__PURE__ */
|
|
3483
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx9(
|
|
3545
3484
|
"div",
|
|
3546
3485
|
{
|
|
3547
3486
|
role: "presentation",
|
|
@@ -3555,7 +3494,7 @@ var DataGridRow = ({
|
|
|
3555
3494
|
const previousVC = array[index - 1];
|
|
3556
3495
|
if (previousVC && vc.index !== previousVC.index + 1) {
|
|
3557
3496
|
acc.push(
|
|
3558
|
-
/* @__PURE__ */
|
|
3497
|
+
/* @__PURE__ */ jsx9(
|
|
3559
3498
|
"div",
|
|
3560
3499
|
{
|
|
3561
3500
|
role: "presentation",
|
|
@@ -3569,7 +3508,7 @@ var DataGridRow = ({
|
|
|
3569
3508
|
);
|
|
3570
3509
|
}
|
|
3571
3510
|
acc.push(
|
|
3572
|
-
/* @__PURE__ */
|
|
3511
|
+
/* @__PURE__ */ jsx9(
|
|
3573
3512
|
DataGridCell,
|
|
3574
3513
|
{
|
|
3575
3514
|
cell,
|
|
@@ -3584,7 +3523,7 @@ var DataGridRow = ({
|
|
|
3584
3523
|
);
|
|
3585
3524
|
return acc;
|
|
3586
3525
|
}, []),
|
|
3587
|
-
virtualPaddingRight ? /* @__PURE__ */
|
|
3526
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx9(
|
|
3588
3527
|
"div",
|
|
3589
3528
|
{
|
|
3590
3529
|
role: "presentation",
|
|
@@ -3601,7 +3540,7 @@ var DataGridRowSkeleton = ({
|
|
|
3601
3540
|
virtualPaddingRight,
|
|
3602
3541
|
virtualColumns
|
|
3603
3542
|
}) => {
|
|
3604
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsxs6(
|
|
3605
3544
|
"div",
|
|
3606
3545
|
{
|
|
3607
3546
|
role: "row",
|
|
@@ -3611,7 +3550,7 @@ var DataGridRowSkeleton = ({
|
|
|
3611
3550
|
},
|
|
3612
3551
|
className: "bg-ui-bg-subtle txt-compact-small absolute flex h-10 w-full",
|
|
3613
3552
|
children: [
|
|
3614
|
-
virtualPaddingLeft ? /* @__PURE__ */
|
|
3553
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx9(
|
|
3615
3554
|
"div",
|
|
3616
3555
|
{
|
|
3617
3556
|
role: "presentation",
|
|
@@ -3623,7 +3562,7 @@ var DataGridRowSkeleton = ({
|
|
|
3623
3562
|
const elements = [];
|
|
3624
3563
|
if (previousVC && vc.index !== previousVC.index + 1) {
|
|
3625
3564
|
elements.push(
|
|
3626
|
-
/* @__PURE__ */
|
|
3565
|
+
/* @__PURE__ */ jsx9(
|
|
3627
3566
|
"div",
|
|
3628
3567
|
{
|
|
3629
3568
|
role: "presentation",
|
|
@@ -3637,20 +3576,20 @@ var DataGridRowSkeleton = ({
|
|
|
3637
3576
|
);
|
|
3638
3577
|
}
|
|
3639
3578
|
elements.push(
|
|
3640
|
-
/* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ jsx9(
|
|
3641
3580
|
"div",
|
|
3642
3581
|
{
|
|
3643
3582
|
role: "gridcell",
|
|
3644
3583
|
style: { width: vc.size },
|
|
3645
3584
|
className: "relative flex items-center border-b border-r p-0 outline-none",
|
|
3646
|
-
children: /* @__PURE__ */
|
|
3585
|
+
children: /* @__PURE__ */ jsx9("div", { className: "flex h-full w-full items-center px-4", children: /* @__PURE__ */ jsx9("div", { className: "bg-ui-bg-component h-4 w-3/4 animate-pulse rounded" }) })
|
|
3647
3586
|
},
|
|
3648
3587
|
`skeleton-cell-${vc.index}`
|
|
3649
3588
|
)
|
|
3650
3589
|
);
|
|
3651
3590
|
return elements;
|
|
3652
3591
|
}),
|
|
3653
|
-
virtualPaddingRight ? /* @__PURE__ */
|
|
3592
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx9(
|
|
3654
3593
|
"div",
|
|
3655
3594
|
{
|
|
3656
3595
|
role: "presentation",
|
|
@@ -3665,7 +3604,7 @@ var DataGridRowSkeleton = ({
|
|
|
3665
3604
|
// src/components/data-grid/components/data-grid-select-cell.tsx
|
|
3666
3605
|
import { Select, clx as clx7 } from "@medusajs/ui";
|
|
3667
3606
|
import { Controller as Controller5 } from "react-hook-form";
|
|
3668
|
-
import { jsx as
|
|
3607
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3669
3608
|
var DataGridSelectCell = ({
|
|
3670
3609
|
context,
|
|
3671
3610
|
options,
|
|
@@ -3674,12 +3613,12 @@ var DataGridSelectCell = ({
|
|
|
3674
3613
|
const { field, control, renderProps } = useDataGridCell({ context });
|
|
3675
3614
|
const errorProps = useDataGridCellError({ context });
|
|
3676
3615
|
const { container, input } = renderProps;
|
|
3677
|
-
return /* @__PURE__ */
|
|
3616
|
+
return /* @__PURE__ */ jsx10(
|
|
3678
3617
|
Controller5,
|
|
3679
3618
|
{
|
|
3680
3619
|
control,
|
|
3681
3620
|
name: field,
|
|
3682
|
-
render: ({ field: field2 }) => /* @__PURE__ */
|
|
3621
|
+
render: ({ field: field2 }) => /* @__PURE__ */ jsx10(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx10(
|
|
3683
3622
|
Inner5,
|
|
3684
3623
|
{
|
|
3685
3624
|
field: field2,
|
|
@@ -3707,7 +3646,7 @@ var Inner5 = ({
|
|
|
3707
3646
|
} = inputProps;
|
|
3708
3647
|
const combinedRefs = useCombinedRefs(inputRef, ref);
|
|
3709
3648
|
const selectedOption = options.find((option) => option.value === value);
|
|
3710
|
-
return /* @__PURE__ */
|
|
3649
|
+
return /* @__PURE__ */ jsxs7(
|
|
3711
3650
|
Select,
|
|
3712
3651
|
{
|
|
3713
3652
|
value: value ?? "",
|
|
@@ -3718,7 +3657,7 @@ var Inner5 = ({
|
|
|
3718
3657
|
},
|
|
3719
3658
|
...fieldProps,
|
|
3720
3659
|
children: [
|
|
3721
|
-
/* @__PURE__ */
|
|
3660
|
+
/* @__PURE__ */ jsx10(
|
|
3722
3661
|
Select.Trigger,
|
|
3723
3662
|
{
|
|
3724
3663
|
ref: combinedRefs,
|
|
@@ -3733,15 +3672,67 @@ var Inner5 = ({
|
|
|
3733
3672
|
),
|
|
3734
3673
|
tabIndex: -1,
|
|
3735
3674
|
...attributes,
|
|
3736
|
-
children: /* @__PURE__ */
|
|
3675
|
+
children: /* @__PURE__ */ jsx10(Select.Value, { placeholder, children: selectedOption?.label ?? placeholder })
|
|
3737
3676
|
}
|
|
3738
3677
|
),
|
|
3739
|
-
/* @__PURE__ */
|
|
3678
|
+
/* @__PURE__ */ jsx10(Select.Content, { children: options.map((option) => /* @__PURE__ */ jsx10(Select.Item, { value: option.value, children: option.label }, option.value)) })
|
|
3740
3679
|
]
|
|
3741
3680
|
}
|
|
3742
3681
|
);
|
|
3743
3682
|
};
|
|
3744
3683
|
|
|
3684
|
+
// src/components/data-grid/components/data-grid-skeleton.tsx
|
|
3685
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3686
|
+
var DataGridSkeleton = ({
|
|
3687
|
+
columns,
|
|
3688
|
+
rows: rowCount = 10
|
|
3689
|
+
}) => {
|
|
3690
|
+
const rows = Array.from({ length: rowCount }, (_, i) => i);
|
|
3691
|
+
const colCount = columns.length;
|
|
3692
|
+
return /* @__PURE__ */ jsxs8("div", { className: "bg-ui-bg-subtle size-full", children: [
|
|
3693
|
+
/* @__PURE__ */ jsx11("div", { className: "bg-ui-bg-base border-b p-4", children: /* @__PURE__ */ jsx11("div", { className: "bg-ui-button-neutral h-7 w-[116px] animate-pulse rounded-md" }) }),
|
|
3694
|
+
/* @__PURE__ */ jsxs8("div", { className: "bg-ui-bg-subtle size-full overflow-auto", children: [
|
|
3695
|
+
/* @__PURE__ */ jsx11(
|
|
3696
|
+
"div",
|
|
3697
|
+
{
|
|
3698
|
+
className: "grid",
|
|
3699
|
+
style: {
|
|
3700
|
+
gridTemplateColumns: `repeat(${colCount}, 1fr)`
|
|
3701
|
+
},
|
|
3702
|
+
children: columns.map((_col, i) => {
|
|
3703
|
+
return /* @__PURE__ */ jsx11(
|
|
3704
|
+
"div",
|
|
3705
|
+
{
|
|
3706
|
+
className: "bg-ui-bg-base flex h-10 w-[200px] items-center border-b border-r px-4 py-2.5 last:border-r-0",
|
|
3707
|
+
children: /* @__PURE__ */ jsx11(Skeleton, { className: "h-[14px] w-[164px]" })
|
|
3708
|
+
},
|
|
3709
|
+
i
|
|
3710
|
+
);
|
|
3711
|
+
})
|
|
3712
|
+
}
|
|
3713
|
+
),
|
|
3714
|
+
/* @__PURE__ */ jsx11("div", { children: rows.map((_, j) => /* @__PURE__ */ jsx11(
|
|
3715
|
+
"div",
|
|
3716
|
+
{
|
|
3717
|
+
className: "grid",
|
|
3718
|
+
style: { gridTemplateColumns: `repeat(${colCount}, 1fr)` },
|
|
3719
|
+
children: columns.map((_col, k) => {
|
|
3720
|
+
return /* @__PURE__ */ jsx11(
|
|
3721
|
+
"div",
|
|
3722
|
+
{
|
|
3723
|
+
className: "bg-ui-bg-base flex h-10 w-[200px] items-center border-b border-r px-4 py-2.5 last:border-r-0",
|
|
3724
|
+
children: /* @__PURE__ */ jsx11(Skeleton, { className: "h-[14px] w-[164px]" })
|
|
3725
|
+
},
|
|
3726
|
+
k
|
|
3727
|
+
);
|
|
3728
|
+
})
|
|
3729
|
+
},
|
|
3730
|
+
j
|
|
3731
|
+
)) })
|
|
3732
|
+
] })
|
|
3733
|
+
] });
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3745
3736
|
// src/components/data-grid/components/data-grid-text-cell.tsx
|
|
3746
3737
|
import { clx as clx8 } from "@medusajs/ui";
|
|
3747
3738
|
import { useEffect as useEffect7, useRef as useRef5, useState as useState10 } from "react";
|
|
@@ -4184,10 +4175,8 @@ export {
|
|
|
4184
4175
|
useCombinedRefs,
|
|
4185
4176
|
useDataGridCell,
|
|
4186
4177
|
useDataGridCellError,
|
|
4187
|
-
useDataGridDuplicateCell,
|
|
4188
4178
|
DataGridCellContainer,
|
|
4189
4179
|
DataGridReadonlyCell,
|
|
4190
|
-
DataGridSkeleton,
|
|
4191
4180
|
DataGrid,
|
|
4192
4181
|
createDataGridHelper,
|
|
4193
4182
|
IncludesTaxTooltip,
|