@mercurjs/admin 2.2.0-canary.36 → 2.2.0-canary.38
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-OTLO4M5C.js → add-campaign-promotions-FWYK3JCR.js} +4 -4
- package/dist/{api-key-management-list-RLATJRDL.js → api-key-management-list-SXHZJUJB.js} +2 -2
- package/dist/{attribute-detail-G6APXXFT.js → attribute-detail-7EBAQ26V.js} +1 -1
- package/dist/{attribute-list-42GDF2PV.js → attribute-list-G73VHMFA.js} +2 -2
- package/dist/{campaign-detail-GZV2HK2G.js → campaign-detail-I6KGCHUL.js} +5 -5
- package/dist/{campaign-list-W2YZAPUI.js → campaign-list-FFGRXEVJ.js} +2 -2
- package/dist/{category-create-7UTOSFO5.js → category-create-AIS2MG7E.js} +2 -2
- package/dist/{category-detail-AYVW7LRB.js → category-detail-ZEOXQF7F.js} +3 -3
- package/dist/{category-icon-edit-FMVPTC27.js → category-icon-edit-W2TPCSDC.js} +1 -1
- package/dist/{category-list-B6B3ZANX.js → category-list-7ILXI55P.js} +3 -3
- package/dist/{category-media-4SLUTBZS.js → category-media-PC4V7YU4.js} +1 -1
- package/dist/{category-products-IF33PO5Y.js → category-products-UFKHB7YL.js} +2 -1
- package/dist/{chunk-QM343PBJ.js → chunk-23OLYWMR.js} +1 -1
- package/dist/{chunk-E6VCLJNF.js → chunk-2DSCC2VR.js} +1 -1
- package/dist/{chunk-BW5MMF6W.js → chunk-2S2SBRZP.js} +3 -3
- package/dist/{chunk-L4KT5CLI.js → chunk-2YAVXVET.js} +1 -1
- package/dist/{chunk-PPMWEQP3.js → chunk-3OD3YOA3.js} +71 -34
- package/dist/{chunk-XQCG2ORD.js → chunk-45O5MFCT.js} +1 -1
- package/dist/{chunk-C4N5EJAD.js → chunk-4BCUGMOR.js} +0 -13
- package/dist/{chunk-P4GIBTTG.js → chunk-5BSSIDW6.js} +1 -1
- package/dist/{chunk-BWRQJXHB.js → chunk-5DQED4UT.js} +1 -1
- package/dist/{chunk-U725ING6.js → chunk-5NC6SI6J.js} +1 -1
- package/dist/{chunk-OLAOEVZE.js → chunk-6FNIEKSN.js} +4 -4
- package/dist/{chunk-CA4K6JDJ.js → chunk-72SDBLWQ.js} +1 -1
- package/dist/{chunk-57MFJ2HE.js → chunk-74WEDBZ7.js} +1 -1
- package/dist/{chunk-57GNGL6K.js → chunk-7RWFRMQG.js} +1 -1
- package/dist/{chunk-TRXFVQXD.js → chunk-BLR3NTU6.js} +1 -1
- package/dist/{chunk-FU3QYH6H.js → chunk-CB7DBYH4.js} +1 -13
- package/dist/{chunk-6YEU2ZAD.js → chunk-CE2WRTS7.js} +1 -1
- package/dist/{chunk-TYXSRH47.js → chunk-CIKPTKSX.js} +14 -4
- package/dist/{chunk-R3YD5UOZ.js → chunk-CU4UVEHX.js} +36 -1
- package/dist/{chunk-HLUWC7C3.js → chunk-CY263OE4.js} +1 -1
- package/dist/{chunk-YAOYZQDK.js → chunk-CYACZXMQ.js} +2 -2
- package/dist/{chunk-YAJDG3W7.js → chunk-DI2KBXVH.js} +1 -1
- package/dist/{chunk-YLQCULOV.js → chunk-DISTPZNS.js} +1 -1
- package/dist/{chunk-V7YJ53P5.js → chunk-EJYLSQVT.js} +1 -1
- package/dist/{chunk-GQUGCSJV.js → chunk-F6NPDZHW.js} +1 -1
- package/dist/{chunk-N5H2J6HE.js → chunk-FBDAKD4B.js} +1 -1
- package/dist/{chunk-WEWBHUEB.js → chunk-GUDWUAMT.js} +2 -2
- package/dist/{chunk-SJHBNENS.js → chunk-HSL5IICN.js} +15 -6
- package/dist/{chunk-MHCIHDGF.js → chunk-HWWET5ZP.js} +1 -1
- package/dist/{chunk-5YWQDIVG.js → chunk-I3ARNGRC.js} +1 -1
- package/dist/{chunk-EMW5WXXR.js → chunk-IQDZZ5EQ.js} +1 -1
- package/dist/{chunk-HMKXCYCJ.js → chunk-IRX6RBTE.js} +7 -2
- package/dist/{chunk-YRGPQ2C4.js → chunk-JUMT5GX7.js} +1 -1
- package/dist/{chunk-HHW4PPNH.js → chunk-JXSXBSV6.js} +8 -1
- package/dist/{chunk-AQIW7R4Y.js → chunk-KC4J2WOM.js} +1 -1
- package/dist/{chunk-WMVLWFFU.js → chunk-KRECA22N.js} +59 -52
- package/dist/{chunk-DP3OBKUP.js → chunk-LRJNSCMR.js} +2 -2
- package/dist/{chunk-U5MDOZS7.js → chunk-MANRAV52.js} +1 -1
- package/dist/{chunk-4NE4EIHO.js → chunk-MYJJMHR5.js} +1 -1
- package/dist/{chunk-3OZRK7TN.js → chunk-NEGOGYEO.js} +1 -1
- package/dist/{chunk-MIKJRLQI.js → chunk-NKV5XPNS.js} +1 -1
- package/dist/{chunk-ENSI7NL7.js → chunk-O5MW4WPZ.js} +1 -1
- package/dist/{chunk-RZ43M34Q.js → chunk-PNZI5C5A.js} +2 -2
- package/dist/{chunk-4X4MNAXL.js → chunk-PWLDTJJX.js} +1 -1
- package/dist/{chunk-NX3YQW2B.js → chunk-Q4R2O7XF.js} +2 -2
- package/dist/{chunk-GJB4UQZI.js → chunk-QAWWIM4I.js} +2 -2
- package/dist/{chunk-AHUVAYZD.js → chunk-QH34LF36.js} +1 -1
- package/dist/{chunk-LECZPR6R.js → chunk-QJCUPZZQ.js} +4 -2
- package/dist/{chunk-GML7DINQ.js → chunk-RDUSAVT3.js} +1 -1
- package/dist/{chunk-LRKN7IQH.js → chunk-RNDDYLHV.js} +1 -1
- package/dist/{chunk-EA3XMVOS.js → chunk-S22SK4KO.js} +1 -1
- package/dist/{chunk-PQAQM6SB.js → chunk-SIOKPEVN.js} +1 -1
- package/dist/{chunk-QEXIOKNZ.js → chunk-SLKOHWKT.js} +1 -1
- package/dist/{chunk-AIEPAHO5.js → chunk-TAM24IMD.js} +1 -1
- package/dist/{chunk-T2WVIET2.js → chunk-VM56ZITS.js} +4 -2
- package/dist/{chunk-IHERG3JP.js → chunk-VPPUFVFJ.js} +21 -20
- package/dist/{chunk-GCYUOP4W.js → chunk-VSKHV5QF.js} +1 -1
- package/dist/{chunk-DUVTXDNA.js → chunk-XFKDDRB6.js} +1 -1
- package/dist/{chunk-ZMSQW2M3.js → chunk-Y5JQAKX7.js} +90 -43
- package/dist/{chunk-R6DVBI5F.js → chunk-Y62TJJ3P.js} +2 -2
- package/dist/{chunk-CDVQK7JZ.js → chunk-YNK25LVO.js} +1 -1
- package/dist/{chunk-MTOPGOKU.js → chunk-ZHT3Y47H.js} +2 -2
- package/dist/{chunk-OB5RWOGA.js → chunk-ZPEMWHUW.js} +1 -1
- package/dist/{collection-add-products-2G37ZL2J.js → collection-add-products-MJYMPNLP.js} +1 -1
- package/dist/{collection-create-T6HBO4LU.js → collection-create-5IGFVQKE.js} +1 -1
- package/dist/{collection-detail-PMSYCWE3.js → collection-detail-C4ZCH55B.js} +3 -3
- package/dist/{collection-icon-edit-VZP3W6AZ.js → collection-icon-edit-WCSKUDXE.js} +1 -1
- package/dist/{collection-list-EK2TBM3J.js → collection-list-4UX2LLQV.js} +5 -5
- package/dist/{collection-media-3Z2RJDVG.js → collection-media-YIV5BV3Y.js} +1 -1
- package/dist/{commission-rule-commission-edit-6675TZCZ.js → commission-rule-commission-edit-EXLLNUKM.js} +19 -4
- package/dist/{commission-rule-create-PEYCFGCW.js → commission-rule-create-3MCNOSWN.js} +9 -28
- package/dist/{commission-rule-edit-GCI67KZU.js → commission-rule-edit-X45EQ6BK.js} +24 -1
- package/dist/{commissions-list-KQ2TUJAW.js → commissions-list-MZY7KOP5.js} +2 -2
- package/dist/{customer-detail-ZYJDB47Y.js → customer-detail-FRGVVWTZ.js} +3 -3
- package/dist/{customer-group-add-customers-GSEUGBTJ.js → customer-group-add-customers-QBRVKXGO.js} +1 -1
- package/dist/{customer-group-detail-5VSUJTR3.js → customer-group-detail-KIC2TWZ3.js} +2 -2
- package/dist/{customer-group-list-BRQRKORR.js → customer-group-list-BRH6SWRD.js} +2 -2
- package/dist/{customer-list-6PRFTWMO.js → customer-list-276YPXTE.js} +2 -2
- package/dist/{customers-add-customer-group-56GS7TR7.js → customers-add-customer-group-C4Y6P45C.js} +1 -1
- package/dist/{global-commission-edit-AOZ6XLH7.js → global-commission-edit-7ZMMIV7B.js} +19 -12
- package/dist/index.css +5184 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +111 -111
- package/dist/{inventory-create-HOQVSL2G.js → inventory-create-M3YBQVNG.js} +2 -2
- package/dist/{inventory-detail-QY56I2KX.js → inventory-detail-6PAVKSOK.js} +2 -2
- package/dist/{inventory-list-AB4OHYMU.js → inventory-list-U4W4AP4E.js} +2 -2
- package/dist/{inventory-stock-E4U2SS3Z.js → inventory-stock-XQWWFVQ3.js} +1 -1
- package/dist/{location-fulfillment-providers-VVJGPYJI.js → location-fulfillment-providers-Z3PR4MQI.js} +2 -2
- package/dist/{location-service-zone-create-WPSYG3NX.js → location-service-zone-create-U77V3ROT.js} +2 -2
- package/dist/{location-service-zone-manage-areas-ZH2ICSC7.js → location-service-zone-manage-areas-FUUAAIDJ.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-K6USZASG.js → location-service-zone-shipping-option-create-NFKZT2HM.js} +3 -3
- package/dist/{location-service-zone-shipping-option-pricing-ZENGURN3.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +2 -2
- package/dist/{marketplace-add-currencies-FPDYEYCL.js → marketplace-add-currencies-KDNMN57C.js} +1 -1
- package/dist/{marketplace-detail-7WGPHRQM.js → marketplace-detail-X5AQWO7P.js} +2 -2
- package/dist/{offer-detail-page-3RAFKFK4.js → offer-detail-page-4GNU35AH.js} +2 -2
- package/dist/{offer-variant-detail-page-5FS6D46I.js → offer-variant-detail-page-FFPV7N7Y.js} +2 -2
- package/dist/{offers-T4ARWA47.js → offers-3HP7SICL.js} +1 -1
- package/dist/{order-create-claim-GOP565XH.js → order-create-claim-MEXSDGHW.js} +1 -1
- package/dist/{order-create-edit-DK4QG2CR.js → order-create-edit-M2F6CG3M.js} +1 -1
- package/dist/{order-create-exchange-ZHJ3T5QJ.js → order-create-exchange-HTWFKJOM.js} +1 -1
- package/dist/{order-create-return-63X5PUTT.js → order-create-return-DDOYLDT7.js} +1 -1
- package/dist/{order-detail-6UAWPZI2.js → order-detail-QYZGM7OO.js} +2 -2
- package/dist/{order-edit-billing-address-WQYQSLDB.js → order-edit-billing-address-JHJ7PCPC.js} +1 -1
- package/dist/{order-list-FFPY5OGR.js → order-list-5PVFAFJT.js} +3 -3
- package/dist/pages/index.js +59 -59
- package/dist/{payout-list-A2KQTZMZ.js → payout-list-SOWVPSFQ.js} +2 -2
- package/dist/{price-list-configuration-2NFE4MNW.js → price-list-configuration-BIHWXMYS.js} +2 -2
- package/dist/{price-list-create-QEDMB4A6.js → price-list-create-XV6OY4A2.js} +5 -5
- package/dist/{price-list-detail-7ANY3XOC.js → price-list-detail-IUZU5OA7.js} +2 -2
- package/dist/{price-list-list-6II3XYUA.js → price-list-list-A42VGE3L.js} +2 -2
- package/dist/{price-list-prices-add-GVOZDWKE.js → price-list-prices-add-KUBO4DCC.js} +4 -4
- package/dist/{price-list-prices-edit-LNSUSN4V.js → price-list-prices-edit-PJ4CPB5I.js} +2 -2
- package/dist/{product-bulk-edit-34KKEPJQ.js → product-bulk-edit-TRI2KKHW.js} +1 -1
- package/dist/{product-create-STXNKMAV.js → product-create-EGL6UJKX.js} +4 -4
- package/dist/{product-detail-T4FOYZK7.js → product-detail-SNS2DQ6Q.js} +2 -2
- package/dist/{product-list-SIQDX4AT.js → product-list-LGS3O2OJ.js} +2 -2
- package/dist/{product-media-JFLRNBPR.js → product-media-JKUDYI32.js} +2 -2
- package/dist/{product-organization-SGLOMAKK.js → product-organization-AIM3LNQ6.js} +1 -1
- package/dist/{product-tag-detail-ZV7V7UW3.js → product-tag-detail-MI7B2MPH.js} +5 -5
- package/dist/{product-tag-list-SZHBD5FA.js → product-tag-list-7CE4KJ3G.js} +5 -5
- package/dist/{product-type-detail-WSHUE56F.js → product-type-detail-O2WGGFRT.js} +2 -2
- package/dist/{product-type-list-EP2YCYLK.js → product-type-list-XTVTT7ZA.js} +2 -2
- package/dist/{promotion-detail-AWVF7JHY.js → promotion-detail-WFB2ZFPH.js} +3 -3
- package/dist/{promotion-list-INBZ3OG3.js → promotion-list-VLCRCI2K.js} +5 -5
- package/dist/{refund-reason-list-UCZC5ASP.js → refund-reason-list-XMDZO34F.js} +2 -2
- package/dist/{region-add-countries-NFJYG4JA.js → region-add-countries-IIHNNE76.js} +1 -1
- package/dist/{region-create-RW42MXKY.js → region-create-PHZNUCJR.js} +1 -1
- package/dist/{region-detail-S7GNXX5B.js → region-detail-AECQQ62I.js} +2 -2
- package/dist/{region-list-ZP7QIWQ3.js → region-list-IBQW5J3R.js} +2 -2
- package/dist/{reservation-list-UGXB2P7K.js → reservation-list-IUYMT4U6.js} +2 -2
- package/dist/{reset-password-ZJW3AHYT.js → reset-password-OL6EA5F2.js} +1 -1
- package/dist/{return-reason-list-AJ4E3A56.js → return-reason-list-FRHFRNKK.js} +4 -4
- package/dist/{sales-channel-add-products-LRANEISZ.js → sales-channel-add-products-ZZPVF5CH.js} +1 -1
- package/dist/{sales-channel-detail-5XXO3BXP.js → sales-channel-detail-DNZXUBSN.js} +2 -2
- package/dist/{shipping-option-type-list-UCTCZPAM.js → shipping-option-type-list-AW2ZA4V5.js} +2 -2
- package/dist/{shipping-profiles-list-CBTZYI33.js → shipping-profiles-list-4VHKTKIL.js} +2 -2
- package/dist/{store-bulk-edit-5DZ7RZS3.js → store-bulk-edit-SZ3UEDWJ.js} +1 -1
- package/dist/{store-details-XNBFIWDL.js → store-details-4XVEWNIX.js} +3 -3
- package/dist/{store-edit-6KKEQZRH.js → store-edit-KJTO3ZUP.js} +2 -2
- package/dist/{store-list-RVZG3UD3.js → store-list-LSADPRI2.js} +3 -3
- package/dist/{tax-region-create-GAXLHDV5.js → tax-region-create-MPKY5KXL.js} +1 -1
- package/dist/{tax-region-tax-override-create-XOBU6DOL.js → tax-region-tax-override-create-X3WQVHYV.js} +5 -5
- package/dist/{tax-region-tax-override-edit-PEQJFCOU.js → tax-region-tax-override-edit-SYK2O5BK.js} +5 -5
- package/dist/{user-invite-WIHSREOW.js → user-invite-UN6NCCII.js} +1 -1
- package/dist/{user-list-3C6GRWMJ.js → user-list-27ZKEJXN.js} +2 -2
- package/package.json +9 -6
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-U2EI2ZLM.js";
|
|
7
7
|
import {
|
|
8
8
|
useOrderTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4BCUGMOR.js";
|
|
10
10
|
import {
|
|
11
11
|
useMemberTableQuery
|
|
12
12
|
} from "./chunk-WKTRJNOK.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
_DataTable,
|
|
39
39
|
useDataTable
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HSL5IICN.js";
|
|
41
41
|
import {
|
|
42
42
|
NoRecords
|
|
43
43
|
} from "./chunk-PAYQJPGK.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ShippingOptionPriceProvider,
|
|
5
5
|
buildShippingOptionPriceRules,
|
|
6
6
|
useShippingOptionPriceColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F6NPDZHW.js";
|
|
8
8
|
import {
|
|
9
9
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
|
10
10
|
ShippingOptionPriceType
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-2EME4AWX.js";
|
|
32
32
|
import {
|
|
33
33
|
DataGrid
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JXSXBSV6.js";
|
|
35
35
|
import {
|
|
36
36
|
RouteFocusModal,
|
|
37
37
|
StackedFocusModal,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SIOKPEVN.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-S2WEYEQR.js";
|
|
8
8
|
import {
|
|
9
9
|
_DataTable,
|
|
10
10
|
useDataTable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HSL5IICN.js";
|
|
12
12
|
import {
|
|
13
13
|
SingleColumnPage
|
|
14
14
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -158,6 +158,8 @@ import {
|
|
|
158
158
|
EllipsisHorizontal,
|
|
159
159
|
InformationCircleSolid,
|
|
160
160
|
Photo,
|
|
161
|
+
QueueList,
|
|
162
|
+
StackPerspective,
|
|
161
163
|
ThumbnailBadge,
|
|
162
164
|
Trash,
|
|
163
165
|
XMark as XMark2
|
|
@@ -288,7 +290,7 @@ var CategoryMediaItemMenu = ({
|
|
|
288
290
|
/* @__PURE__ */ jsx3(
|
|
289
291
|
MenuItemWithTooltip,
|
|
290
292
|
{
|
|
291
|
-
icon: /* @__PURE__ */ jsx3(
|
|
293
|
+
icon: /* @__PURE__ */ jsx3(StackPerspective, {}),
|
|
292
294
|
label: item.is_thumbnail ? t("categories.media.actions.removeThumbnail") : t("categories.media.actions.setThumbnail"),
|
|
293
295
|
tooltip: t("categories.media.tooltips.thumbnail"),
|
|
294
296
|
onClick: onToggleThumbnail
|
|
@@ -297,7 +299,7 @@ var CategoryMediaItemMenu = ({
|
|
|
297
299
|
/* @__PURE__ */ jsx3(
|
|
298
300
|
MenuItemWithTooltip,
|
|
299
301
|
{
|
|
300
|
-
icon: /* @__PURE__ */ jsx3(
|
|
302
|
+
icon: /* @__PURE__ */ jsx3(QueueList, {}),
|
|
301
303
|
label: item.is_banner ? t("categories.media.actions.removeBanner") : t("categories.media.actions.setBanner"),
|
|
302
304
|
tooltip: t("categories.media.tooltips.banner"),
|
|
303
305
|
onClick: onToggleBanner
|
|
@@ -158,6 +158,8 @@ import {
|
|
|
158
158
|
EllipsisHorizontal,
|
|
159
159
|
InformationCircleSolid,
|
|
160
160
|
Photo,
|
|
161
|
+
QueueList,
|
|
162
|
+
StackPerspective,
|
|
161
163
|
ThumbnailBadge,
|
|
162
164
|
Trash,
|
|
163
165
|
XMark as XMark2
|
|
@@ -288,7 +290,7 @@ var CollectionMediaItemMenu = ({
|
|
|
288
290
|
/* @__PURE__ */ jsx3(
|
|
289
291
|
MenuItemWithTooltip,
|
|
290
292
|
{
|
|
291
|
-
icon: /* @__PURE__ */ jsx3(
|
|
293
|
+
icon: /* @__PURE__ */ jsx3(StackPerspective, {}),
|
|
292
294
|
label: item.is_thumbnail ? t("collections.media.actions.removeThumbnail") : t("collections.media.actions.setThumbnail"),
|
|
293
295
|
tooltip: t("collections.media.tooltips.thumbnail"),
|
|
294
296
|
onClick: onToggleThumbnail
|
|
@@ -297,7 +299,7 @@ var CollectionMediaItemMenu = ({
|
|
|
297
299
|
/* @__PURE__ */ jsx3(
|
|
298
300
|
MenuItemWithTooltip,
|
|
299
301
|
{
|
|
300
|
-
icon: /* @__PURE__ */ jsx3(
|
|
302
|
+
icon: /* @__PURE__ */ jsx3(QueueList, {}),
|
|
301
303
|
label: item.is_banner ? t("collections.media.actions.removeBanner") : t("collections.media.actions.setBanner"),
|
|
302
304
|
tooltip: t("collections.media.tooltips.banner"),
|
|
303
305
|
onClick: onToggleBanner
|
|
@@ -9261,7 +9261,12 @@ var en_default = {
|
|
|
9261
9261
|
options: "Please create at least one option.",
|
|
9262
9262
|
uniqueSku: "SKU must be unique.",
|
|
9263
9263
|
requiredAttribute: "This attribute is required.",
|
|
9264
|
-
|
|
9264
|
+
requiredAttributeSelect: "This attribute is required by the marketplace. Please select value.",
|
|
9265
|
+
requiredAttributeEnter: "This attribute is required by the marketplace. Please enter value.",
|
|
9266
|
+
requiredAttributeMultiSelect: "This attribute is required by the marketplace. Please select at least one value.",
|
|
9267
|
+
requiredStore: "Please select at least one store",
|
|
9268
|
+
requiredTitle: "Please enter a title",
|
|
9269
|
+
requiredCategory: "Please select a category"
|
|
9265
9270
|
},
|
|
9266
9271
|
inventory: {
|
|
9267
9272
|
heading: "Inventory kits",
|
|
@@ -9271,7 +9276,7 @@ var en_default = {
|
|
|
9271
9276
|
},
|
|
9272
9277
|
attributes: {
|
|
9273
9278
|
header: "Attributes",
|
|
9274
|
-
description: "Manage attributes and variations for your product, e.g. color, size, brand etc.\nSelect from attributes defined by the
|
|
9279
|
+
description: "Manage attributes and variations for your product, e.g. color, size, brand etc.\nSelect from attributes defined by the marketplace or create your own.",
|
|
9275
9280
|
addExisting: "Add existing",
|
|
9276
9281
|
createNew: "Create new",
|
|
9277
9282
|
title: "Title",
|
|
@@ -9279,8 +9284,10 @@ var en_default = {
|
|
|
9279
9284
|
values: "Values",
|
|
9280
9285
|
selectValues: "Select values",
|
|
9281
9286
|
valuePlaceholder: "Enter values",
|
|
9287
|
+
enterValuePlaceholder: "Enter value",
|
|
9288
|
+
selectValuePlaceholder: "Select value",
|
|
9282
9289
|
requiredAttributes: "Required attributes",
|
|
9283
|
-
requiredAttributesHint: "These attributes are required by the
|
|
9290
|
+
requiredAttributesHint: "These attributes are required by the marketplace. Select them before proceeding.",
|
|
9284
9291
|
useForVariants: "Use for Variations",
|
|
9285
9292
|
useForVariantsDescription: "If checked, you will be able to create variants using this attribute. If not, the attribute will be used for informational purposes only.",
|
|
9286
9293
|
tip: "Tip",
|
|
@@ -9367,10 +9374,11 @@ var en_default = {
|
|
|
9367
9374
|
}
|
|
9368
9375
|
},
|
|
9369
9376
|
attributes: "Attributes",
|
|
9370
|
-
|
|
9377
|
+
attributeVariations: "Variations",
|
|
9378
|
+
attributeVariantsDescription: "Attributes used for variants",
|
|
9371
9379
|
attributeProductInformation: "Product Information",
|
|
9372
9380
|
attributeProductInformationDescription: "Attributes used for informational purposes",
|
|
9373
|
-
attributeRequiredByMarketplace: "This attribute is required by the
|
|
9381
|
+
attributeRequiredByMarketplace: "This attribute is required by the marketplace.",
|
|
9374
9382
|
attributeRequiredDeleteDisabledTooltip: "Required attributes cannot be removed.",
|
|
9375
9383
|
addAttribute: "Add Attribute",
|
|
9376
9384
|
deleteAttributeWarning: 'Are you sure you want to delete the attribute "{{title}}"? This action cannot be undone.',
|
|
@@ -10120,15 +10128,6 @@ var en_default = {
|
|
|
10120
10128
|
claim: "Claim",
|
|
10121
10129
|
exchange: "Exchange",
|
|
10122
10130
|
return: "Return",
|
|
10123
|
-
filters: {
|
|
10124
|
-
request: {
|
|
10125
|
-
label: "Request",
|
|
10126
|
-
edit: "Edit",
|
|
10127
|
-
return: "Return",
|
|
10128
|
-
exchange: "Exchange",
|
|
10129
|
-
claim: "Claim"
|
|
10130
|
-
}
|
|
10131
|
-
},
|
|
10132
10131
|
actions: {
|
|
10133
10132
|
cancelDisabledFulfilled: "Cannot cancel an order that has fulfilled items."
|
|
10134
10133
|
},
|
|
@@ -10136,7 +10135,9 @@ var en_default = {
|
|
|
10136
10135
|
orderCanceled: "Order canceled successfully",
|
|
10137
10136
|
onDateFromSalesChannel: "{{date}} from {{salesChannel}}",
|
|
10138
10137
|
list: {
|
|
10139
|
-
noRecordsMessage: "Your orders will show up here."
|
|
10138
|
+
noRecordsMessage: "Your orders will show up here.",
|
|
10139
|
+
expandAll: "Expand all rows",
|
|
10140
|
+
collapseAll: "Collapse all rows"
|
|
10140
10141
|
},
|
|
10141
10142
|
status: {
|
|
10142
10143
|
not_paid: "Not paid",
|
|
@@ -10578,14 +10579,14 @@ var en_default = {
|
|
|
10578
10579
|
}
|
|
10579
10580
|
},
|
|
10580
10581
|
fields: {
|
|
10581
|
-
displayId: "
|
|
10582
|
+
displayId: "Order ID",
|
|
10582
10583
|
refundableAmount: "Refundable amount",
|
|
10583
10584
|
returnableQuantity: "Returnable quantity",
|
|
10584
10585
|
groupId: "Group ID",
|
|
10585
|
-
orderIds: "Order
|
|
10586
|
-
vendor: "
|
|
10587
|
-
vendorsCount_one: "{{count}}
|
|
10588
|
-
vendorsCount_other: "{{count}}
|
|
10586
|
+
orderIds: "Order ID",
|
|
10587
|
+
vendor: "Store",
|
|
10588
|
+
vendorsCount_one: "{{count}} store",
|
|
10589
|
+
vendorsCount_other: "{{count}} stores"
|
|
10589
10590
|
}
|
|
10590
10591
|
},
|
|
10591
10592
|
payouts: {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
decorateVariantsWithDefaultValues,
|
|
11
11
|
generateVariantsFromAttributes,
|
|
12
12
|
normalizeProductFormValues
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CIKPTKSX.js";
|
|
14
14
|
import {
|
|
15
15
|
HandleInput
|
|
16
16
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
DataGrid,
|
|
48
48
|
createDataGridHelper
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-JXSXBSV6.js";
|
|
50
50
|
import {
|
|
51
51
|
RouteFocusModal,
|
|
52
52
|
StackedFocusModal,
|
|
@@ -641,7 +641,7 @@ var SelectedAttributes = ({
|
|
|
641
641
|
Select.Value,
|
|
642
642
|
{
|
|
643
643
|
placeholder: t(
|
|
644
|
-
"products.create.attributes.
|
|
644
|
+
"products.create.attributes.selectValuePlaceholder"
|
|
645
645
|
)
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
@@ -663,7 +663,7 @@ var SelectedAttributes = ({
|
|
|
663
663
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
664
664
|
onChange: (e) => onChange(e.target.value),
|
|
665
665
|
placeholder: t(
|
|
666
|
-
"products.create.attributes.
|
|
666
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
667
667
|
)
|
|
668
668
|
}
|
|
669
669
|
)
|
|
@@ -684,7 +684,7 @@ var SelectedAttributes = ({
|
|
|
684
684
|
Select.Value,
|
|
685
685
|
{
|
|
686
686
|
placeholder: t(
|
|
687
|
-
"products.create.attributes.
|
|
687
|
+
"products.create.attributes.selectValuePlaceholder"
|
|
688
688
|
)
|
|
689
689
|
}
|
|
690
690
|
) }),
|
|
@@ -708,7 +708,7 @@ var SelectedAttributes = ({
|
|
|
708
708
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
709
709
|
onChange: (e) => onChange(e.target.value),
|
|
710
710
|
placeholder: t(
|
|
711
|
-
"products.create.attributes.
|
|
711
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
712
712
|
)
|
|
713
713
|
}
|
|
714
714
|
)
|
|
@@ -716,7 +716,7 @@ var SelectedAttributes = ({
|
|
|
716
716
|
),
|
|
717
717
|
field.use_for_variants && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
718
718
|
/* @__PURE__ */ jsx2("div", {}),
|
|
719
|
-
/* @__PURE__ */ jsx2(VariantAxisTip, {})
|
|
719
|
+
/* @__PURE__ */ jsx2(VariantAxisTip, { className: "border-none" })
|
|
720
720
|
] })
|
|
721
721
|
] }),
|
|
722
722
|
/* @__PURE__ */ jsx2(
|
|
@@ -833,7 +833,7 @@ var RequiredAttributeField = ({
|
|
|
833
833
|
Select.Value,
|
|
834
834
|
{
|
|
835
835
|
placeholder: t(
|
|
836
|
-
"products.create.attributes.
|
|
836
|
+
"products.create.attributes.selectValuePlaceholder"
|
|
837
837
|
)
|
|
838
838
|
}
|
|
839
839
|
) }),
|
|
@@ -863,7 +863,7 @@ var RequiredAttributeField = ({
|
|
|
863
863
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
864
864
|
onChange: (e) => onChange(e.target.value),
|
|
865
865
|
placeholder: t(
|
|
866
|
-
"products.create.attributes.
|
|
866
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
867
867
|
)
|
|
868
868
|
}
|
|
869
869
|
) : attribute.type === import_types.AttributeType.TOGGLE ? /* @__PURE__ */ jsx2(
|
|
@@ -882,7 +882,7 @@ var RequiredAttributeField = ({
|
|
|
882
882
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
883
883
|
onChange: (e) => onChange(e.target.value),
|
|
884
884
|
placeholder: t(
|
|
885
|
-
"products.create.attributes.
|
|
885
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
886
886
|
)
|
|
887
887
|
}
|
|
888
888
|
) }),
|
|
@@ -892,9 +892,16 @@ var RequiredAttributeField = ({
|
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
894
|
};
|
|
895
|
-
var VariantAxisTip = () => {
|
|
895
|
+
var VariantAxisTip = ({ className }) => {
|
|
896
896
|
const { t } = useTranslation2();
|
|
897
|
-
return /* @__PURE__ */ jsx2(
|
|
897
|
+
return /* @__PURE__ */ jsx2(
|
|
898
|
+
InlineTip,
|
|
899
|
+
{
|
|
900
|
+
className,
|
|
901
|
+
label: t("products.create.attributes.tip"),
|
|
902
|
+
children: t("products.create.attributes.variantAxisTip")
|
|
903
|
+
}
|
|
904
|
+
);
|
|
898
905
|
};
|
|
899
906
|
Root._tabMeta = defineTabMeta({
|
|
900
907
|
id: "attributes",
|
|
@@ -924,7 +931,8 @@ var ProductCreateGeneralSection = () => {
|
|
|
924
931
|
render: ({ field }) => {
|
|
925
932
|
return /* @__PURE__ */ jsxs3(Form.Item, { "data-testid": "product-create-general-section-title-item", children: [
|
|
926
933
|
/* @__PURE__ */ jsx3(Form.Label, { "data-testid": "product-create-general-section-title-label", children: t("products.fields.title.label") }),
|
|
927
|
-
/* @__PURE__ */ jsx3(Form.Control, { "data-testid": "product-create-general-section-title-control", children: /* @__PURE__ */ jsx3(Input2, { ...field, placeholder: t("products.fields.title.placeholder"), "data-testid": "product-create-general-section-title-input" }) })
|
|
934
|
+
/* @__PURE__ */ jsx3(Form.Control, { "data-testid": "product-create-general-section-title-control", children: /* @__PURE__ */ jsx3(Input2, { ...field, placeholder: t("products.fields.title.placeholder"), "data-testid": "product-create-general-section-title-input" }) }),
|
|
935
|
+
/* @__PURE__ */ jsx3(Form.ErrorMessage, { "data-testid": "product-create-general-section-title-error" })
|
|
928
936
|
] });
|
|
929
937
|
}
|
|
930
938
|
}
|
|
@@ -1645,28 +1653,30 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1645
1653
|
}
|
|
1646
1654
|
)
|
|
1647
1655
|
] }),
|
|
1648
|
-
/* @__PURE__ */
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1656
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-4", children: [
|
|
1657
|
+
/* @__PURE__ */ jsx7(
|
|
1658
|
+
SwitchBox,
|
|
1659
|
+
{
|
|
1660
|
+
control: form.control,
|
|
1661
|
+
name: "discountable",
|
|
1662
|
+
label: t("products.fields.discountable.label"),
|
|
1663
|
+
description: t("products.fields.discountable.hint"),
|
|
1664
|
+
optional: true,
|
|
1665
|
+
"data-testid": "product-create-organize-section-discountable-switch"
|
|
1666
|
+
}
|
|
1667
|
+
),
|
|
1668
|
+
/* @__PURE__ */ jsx7(
|
|
1669
|
+
SwitchBox,
|
|
1670
|
+
{
|
|
1671
|
+
control: form.control,
|
|
1672
|
+
name: "globally_available",
|
|
1673
|
+
label: t("products.fields.globally_available.label"),
|
|
1674
|
+
description: t("products.fields.globally_available.hint"),
|
|
1675
|
+
optional: true,
|
|
1676
|
+
"data-testid": "product-create-organize-section-globally-available-switch"
|
|
1677
|
+
}
|
|
1678
|
+
)
|
|
1679
|
+
] }),
|
|
1670
1680
|
!isGloballyAvailable && /* @__PURE__ */ jsx7(
|
|
1671
1681
|
Form.Field,
|
|
1672
1682
|
{
|
|
@@ -1737,13 +1747,16 @@ Root3._tabMeta = defineTabMeta({
|
|
|
1737
1747
|
var ProductCreateOrganizeForm = Root3;
|
|
1738
1748
|
|
|
1739
1749
|
// src/pages/products/product-create/components/product-create-variants-form/product-create-variants-form.tsx
|
|
1740
|
-
import {
|
|
1750
|
+
import { Input as Input3 } from "@medusajs/ui";
|
|
1751
|
+
import { useMemo as useMemo3, useState as useState3 } from "react";
|
|
1741
1752
|
import { useWatch as useWatch3 } from "react-hook-form";
|
|
1742
1753
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
1743
1754
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1744
1755
|
var Root4 = () => {
|
|
1756
|
+
const { t } = useTranslation8();
|
|
1745
1757
|
const form = useTabbedForm();
|
|
1746
1758
|
const { setCloseOnEscape } = useRouteModal();
|
|
1759
|
+
const [search, setSearch] = useState3("");
|
|
1747
1760
|
const variants = useWatch3({
|
|
1748
1761
|
control: form.control,
|
|
1749
1762
|
name: "variants",
|
|
@@ -1771,20 +1784,54 @@ var Root4 = () => {
|
|
|
1771
1784
|
});
|
|
1772
1785
|
return ret;
|
|
1773
1786
|
}, [variants]);
|
|
1787
|
+
const filteredVariantData = useMemo3(() => {
|
|
1788
|
+
const query = search.trim().toLowerCase();
|
|
1789
|
+
if (!query) {
|
|
1790
|
+
return variantData;
|
|
1791
|
+
}
|
|
1792
|
+
return variantData.filter((variant) => {
|
|
1793
|
+
const haystack = [
|
|
1794
|
+
variant.title,
|
|
1795
|
+
variant.sku,
|
|
1796
|
+
...Object.values(variant.options ?? {})
|
|
1797
|
+
];
|
|
1798
|
+
return haystack.some((value) => value?.toLowerCase().includes(query));
|
|
1799
|
+
});
|
|
1800
|
+
}, [variantData, search]);
|
|
1801
|
+
const headerContent = /* @__PURE__ */ jsx9(
|
|
1802
|
+
Input3,
|
|
1803
|
+
{
|
|
1804
|
+
type: "search",
|
|
1805
|
+
size: "small",
|
|
1806
|
+
autoComplete: "off",
|
|
1807
|
+
value: search,
|
|
1808
|
+
onChange: (event) => setSearch(event.target.value),
|
|
1809
|
+
placeholder: t("general.search"),
|
|
1810
|
+
"data-testid": "product-create-variants-search-input"
|
|
1811
|
+
}
|
|
1812
|
+
);
|
|
1774
1813
|
return /* @__PURE__ */ jsx9(
|
|
1775
1814
|
"div",
|
|
1776
1815
|
{
|
|
1777
1816
|
className: "flex size-full flex-col divide-y overflow-hidden",
|
|
1778
1817
|
"data-testid": "product-create-variants-form",
|
|
1779
|
-
children: /* @__PURE__ */ jsx9(
|
|
1780
|
-
|
|
1818
|
+
children: /* @__PURE__ */ jsx9(
|
|
1819
|
+
"div",
|
|
1781
1820
|
{
|
|
1782
|
-
|
|
1783
|
-
data:
|
|
1784
|
-
|
|
1785
|
-
|
|
1821
|
+
className: "min-h-0 flex-1 overflow-hidden",
|
|
1822
|
+
"data-testid": "product-create-variants-form-datagrid",
|
|
1823
|
+
children: /* @__PURE__ */ jsx9(
|
|
1824
|
+
DataGrid,
|
|
1825
|
+
{
|
|
1826
|
+
columns,
|
|
1827
|
+
data: filteredVariantData,
|
|
1828
|
+
state: form,
|
|
1829
|
+
onEditingChange: (editing) => setCloseOnEscape(!editing),
|
|
1830
|
+
headerContent
|
|
1831
|
+
}
|
|
1832
|
+
)
|
|
1786
1833
|
}
|
|
1787
|
-
)
|
|
1834
|
+
)
|
|
1788
1835
|
}
|
|
1789
1836
|
);
|
|
1790
1837
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCollectionGallery,
|
|
3
3
|
getCollectionIcon
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VM56ZITS.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableColumns
|
|
7
7
|
} from "./chunk-O53E5U52.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
_DataTable,
|
|
16
16
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HSL5IICN.js";
|
|
18
18
|
import {
|
|
19
19
|
SingleColumnPage
|
|
20
20
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SIOKPEVN.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-S2WEYEQR.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
_DataTable,
|
|
19
19
|
useDataTable
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HSL5IICN.js";
|
|
21
21
|
import {
|
|
22
22
|
useAddOrRemoveCampaignPromotions,
|
|
23
23
|
useCampaign,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CollectionDetailPage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-Y62TJJ3P.js";
|
|
4
|
+
import "./chunk-VM56ZITS.js";
|
|
5
5
|
import "./chunk-O53E5U52.js";
|
|
6
6
|
import "./chunk-WBSUHLO7.js";
|
|
7
7
|
import "./chunk-P4LTLPTK.js";
|
|
@@ -13,7 +13,7 @@ import "./chunk-VSLHL2AZ.js";
|
|
|
13
13
|
import "./chunk-E74OUNA3.js";
|
|
14
14
|
import "./chunk-WIYFXWRI.js";
|
|
15
15
|
import "./chunk-FQERBIVS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-HSL5IICN.js";
|
|
17
17
|
import "./chunk-YN3FGNJM.js";
|
|
18
18
|
import "./chunk-ZAOEFQ6K.js";
|
|
19
19
|
import "./chunk-PAYQJPGK.js";
|