@mercurjs/admin 2.2.0-canary.16 → 2.2.0-canary.17
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-RUUZFQVO.js → add-campaign-promotions-4QP4LF7G.js} +1 -1
- package/dist/{adjust-inventory-INVLBRJB.js → adjust-inventory-AHIKDW7M.js} +1 -1
- package/dist/{api-key-management-create-JWXWNGWI.js → api-key-management-create-7SIKAXEH.js} +1 -1
- package/dist/{api-key-management-edit-C2LDCO4Q.js → api-key-management-edit-C4FYJZGH.js} +1 -1
- package/dist/{api-key-management-sales-channels-E245THAC.js → api-key-management-sales-channels-JLSDZRG6.js} +1 -1
- package/dist/{attribute-create-UAFKYP5S.js → attribute-create-NIYUQEHQ.js} +3 -3
- package/dist/{attribute-detail-AKA6OHN5.js → attribute-detail-GA4FDSAG.js} +4 -1
- package/dist/{attribute-edit-LUY66TG3.js → attribute-edit-KJL36HQ4.js} +1 -1
- package/dist/{attribute-edit-possible-value-IOS3625C.js → attribute-edit-possible-value-LGOD3ZKQ.js} +1 -1
- package/dist/{attribute-list-DRVOY6FY.js → attribute-list-A3RFO32Z.js} +1 -1
- package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-N2WWGO2G.js} +1 -1
- package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-MFFZXUEN.js} +1 -1
- package/dist/{campaign-create-VFFIIRE4.js → campaign-create-NMIOUGXQ.js} +2 -2
- package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-PA7FGIY3.js} +1 -1
- package/dist/{categories-metadata-CBWDAGCZ.js → categories-metadata-FCV4YK74.js} +2 -2
- package/dist/{category-create-Q6IPW7UC.js → category-create-S3K54WKP.js} +3 -3
- package/dist/{category-edit-TBMN4JAH.js → category-edit-XKANIIH5.js} +1 -1
- package/dist/{category-products-U7CRTTJQ.js → category-products-AB3YAGSW.js} +1 -1
- package/dist/{chunk-3JSAS7QP.js → chunk-22EOFXNK.js} +16 -0
- package/dist/{chunk-22V5D3VA.js → chunk-2LKMOTLX.js} +1 -1
- package/dist/{chunk-AIG4MQL4.js → chunk-2PUBUYFG.js} +3 -3
- package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
- package/dist/{chunk-IQZ3T2Q4.js → chunk-4IKESXD3.js} +3 -3
- package/dist/{chunk-UXGLM3B4.js → chunk-4OEYCLBE.js} +1 -1
- package/dist/{chunk-3XSMZOVD.js → chunk-7Y6A7XK6.js} +7 -7
- package/dist/{chunk-GC5VN6RD.js → chunk-7ZL46D3W.js} +2 -2
- package/dist/{chunk-WYA62MUL.js → chunk-AROCMF45.js} +1 -1
- package/dist/{chunk-OAQJNQYL.js → chunk-B5OMHYJ5.js} +5 -3
- package/dist/{chunk-IC3ZLUKY.js → chunk-ESZN3ELN.js} +1 -1
- package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
- package/dist/{chunk-5AZCIOS4.js → chunk-GQUGCSJV.js} +2 -2
- package/dist/{chunk-KT7X72J4.js → chunk-HHW4PPNH.js} +1 -0
- package/dist/{chunk-X7H7TIOT.js → chunk-JR4T4OQU.js} +3 -3
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-FB7DDNCA.js → chunk-LHVXXHPO.js} +1 -1
- package/dist/{chunk-YM523XTD.js → chunk-OCRKS4Z7.js} +3 -3
- package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/{chunk-RQPDD3RI.js → chunk-SKKF3CU6.js} +1 -1
- package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
- package/dist/{collection-add-products-G6BQPBXA.js → collection-add-products-KTUW23TD.js} +1 -1
- package/dist/{collection-create-O3RG3BFE.js → collection-create-7G3MHBVQ.js} +1 -1
- package/dist/{collection-edit-EKPMNFCK.js → collection-edit-LQEQ6YGD.js} +1 -1
- package/dist/{collection-metadata-UEXKSJRF.js → collection-metadata-DS32TGOK.js} +2 -2
- package/dist/{commission-rate-create-UX3IFSPP.js → commission-rate-create-G42ZUJPH.js} +1 -1
- package/dist/{commission-rate-edit-FTBBWE7F.js → commission-rate-edit-3CYWYOMS.js} +1 -1
- package/dist/{customer-create-QHA4KM6N.js → customer-create-RW63XPQ6.js} +1 -1
- package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-SZCOIGDP.js} +1 -1
- package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-ZBIZ4FKT.js} +1 -1
- package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-SG7EU4D7.js} +1 -1
- package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-LFGY5HR6.js} +1 -1
- package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-CXWQSMDZ.js} +1 -1
- package/dist/{customer-group-metadata-MVD7V6DA.js → customer-group-metadata-CHOTUAS2.js} +2 -2
- package/dist/{customer-metadata-LW6GL25F.js → customer-metadata-LG6HA56I.js} +2 -2
- package/dist/{customers-add-customer-group-NGPLFWCL.js → customers-add-customer-group-3YKZEZKJ.js} +1 -1
- package/dist/{edit-inventory-item-6Q2TVHKC.js → edit-inventory-item-5EYVQ6CM.js} +1 -1
- package/dist/{edit-inventory-item-attributes-SZZ65XJ5.js → edit-inventory-item-attributes-7QM4YHAQ.js} +1 -1
- package/dist/{edit-reservation-TUCZRTBN.js → edit-reservation-C3NXAKSE.js} +1 -1
- package/dist/{edit-rules-WJEEV2XB.js → edit-rules-2S5H7MC2.js} +1 -1
- package/dist/index.js +142 -142
- package/dist/{inventory-create-ZJDSLZ5R.js → inventory-create-RBMMOSC3.js} +4 -4
- package/dist/{inventory-metadata-HDLZ6SNH.js → inventory-metadata-OZAKLWNY.js} +2 -2
- package/dist/{inventory-stock-EHZJMHOY.js → inventory-stock-WUAIUFQS.js} +2 -2
- package/dist/{location-create-ZMNB7YKR.js → location-create-SO2CURZL.js} +1 -1
- package/dist/{location-edit-DMBF3CYZ.js → location-edit-XA53657R.js} +1 -1
- package/dist/{location-fulfillment-providers-NVVLRKJT.js → location-fulfillment-providers-D4EFIF3Z.js} +1 -1
- package/dist/{location-sales-channels-T7ZUQ3PA.js → location-sales-channels-46SPET7R.js} +1 -1
- package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-IOB7DWBR.js} +1 -1
- package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-X37BNDRP.js} +1 -1
- package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-CWWABV5M.js} +1 -1
- package/dist/{location-service-zone-shipping-option-create-VVD2GMM3.js → location-service-zone-shipping-option-create-T4LT4E6M.js} +5 -5
- package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-O3B3H5OC.js} +1 -1
- package/dist/{location-service-zone-shipping-option-pricing-POBJOF3Z.js → location-service-zone-shipping-option-pricing-FZNCTVT6.js} +3 -3
- package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-YVJA6G6V.js} +1 -1
- package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-QNFCTDUC.js} +1 -1
- package/dist/{marketplace-metadata-35DDUX2Z.js → marketplace-metadata-PB7JEK2K.js} +2 -2
- package/dist/{order-create-claim-OVHMMR3J.js → order-create-claim-HND7RODU.js} +1 -1
- package/dist/{order-create-edit-QBVSHRFO.js → order-create-edit-LIQGALQ2.js} +1 -1
- package/dist/{order-create-exchange-67R63776.js → order-create-exchange-QE2TJ36U.js} +1 -1
- package/dist/{order-create-refund-4CDCQGXT.js → order-create-refund-37JJA6MM.js} +1 -1
- package/dist/{order-create-return-FLGYGUTQ.js → order-create-return-AVVT3OUO.js} +1 -1
- package/dist/{order-edit-billing-address-WFUOLHWY.js → order-edit-billing-address-IPWVSYR2.js} +1 -1
- package/dist/{order-edit-email-CPIRJACP.js → order-edit-email-ZQZNTV4P.js} +1 -1
- package/dist/{order-edit-shipping-address-FCEL2URJ.js → order-edit-shipping-address-YPYWT3YN.js} +1 -1
- package/dist/{order-metadata-NFTVCHFD.js → order-metadata-E25YHGCC.js} +2 -2
- package/dist/{order-request-transfer-I6VIJK4L.js → order-request-transfer-XDNXRB66.js} +1 -1
- package/dist/pages/index.js +20 -20
- package/dist/{price-list-configuration-I45NPXOI.js → price-list-configuration-SNL2LNV2.js} +1 -1
- package/dist/{price-list-create-QAEE6CAK.js → price-list-create-GBUUE3NP.js} +5 -5
- package/dist/{price-list-edit-A3SLXCYW.js → price-list-edit-BOEBNVGM.js} +1 -1
- package/dist/{price-list-prices-add-TCW6S4Z3.js → price-list-prices-add-2XS5TX5X.js} +5 -5
- package/dist/{price-list-prices-edit-IGHGQ7DO.js → price-list-prices-edit-C2C3I64A.js} +3 -3
- package/dist/{product-add-existing-attributes-BWEKWIWW.js → product-add-existing-attributes-NFXKW6SW.js} +1 -1
- package/dist/{product-attributes-3VQAHGYZ.js → product-attributes-2LAKXXX6.js} +1 -1
- package/dist/{product-bulk-edit-PLNZZO3C.js → product-bulk-edit-G7QTYQHG.js} +2 -2
- package/dist/{product-create-AGSEC63C.js → product-create-AG4AYDM3.js} +8 -8
- package/dist/{product-create-attribute-PFIEDJNX.js → product-create-attribute-ELMLVRUB.js} +2 -2
- package/dist/{product-create-variant-PP6PQF4T.js → product-create-variant-7DVYYUDX.js} +3 -3
- package/dist/{product-edit-LBKIDCQM.js → product-edit-3Q5E5E5L.js} +1 -1
- package/dist/{product-edit-attribute-RVNIUPIO.js → product-edit-attribute-GXFMVPCQ.js} +1 -1
- package/dist/{product-media-UWEOWTJT.js → product-media-H5DAWUYR.js} +4 -3
- package/dist/{product-metadata-6E6AZTHQ.js → product-metadata-4ZLL42UF.js} +2 -2
- package/dist/{product-organization-2ZNTDHWP.js → product-organization-ILQCXL7B.js} +2 -2
- package/dist/{product-shipping-profile-UOQWHIO2.js → product-shipping-profile-4K7LTJ5K.js} +1 -1
- package/dist/{product-tag-create-RDJNNVKB.js → product-tag-create-KKRQQT3A.js} +1 -1
- package/dist/{product-tag-edit-NQPOV5FR.js → product-tag-edit-TISDF4FQ.js} +1 -1
- package/dist/{product-tag-metadata-MYCCUFNT.js → product-tag-metadata-GJFYX5HU.js} +2 -2
- package/dist/{product-type-create-RHG4KEAV.js → product-type-create-A7SUR2OX.js} +1 -1
- package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-DM4U2VB4.js} +1 -1
- package/dist/{product-type-metadata-IMMCIWOD.js → product-type-metadata-GKVLFBF6.js} +2 -2
- package/dist/{product-variant-edit-OXNWRFST.js → product-variant-edit-QLDFN6LI.js} +1 -1
- package/dist/{product-variant-metadata-ZIJG2HNS.js → product-variant-metadata-VZZMPRRG.js} +2 -2
- package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-H5QZ66PF.js} +1 -1
- package/dist/{promotion-add-campaign-S3JJSFHT.js → promotion-add-campaign-V3RJ634F.js} +2 -2
- package/dist/{promotion-create-CBOD7FVH.js → promotion-create-POBB7B23.js} +5 -5
- package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-NWOBD3YD.js} +1 -1
- package/dist/{refund-reason-create-V52L4U5V.js → refund-reason-create-HPLJOL6S.js} +1 -1
- package/dist/{refund-reason-edit-3U6REVYW.js → refund-reason-edit-JI4U4RWO.js} +1 -1
- package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-5I2UDAJU.js} +1 -1
- package/dist/{region-create-P66Q65XY.js → region-create-SIB6WZPV.js} +1 -1
- package/dist/{region-edit-XFE54SAO.js → region-edit-YQZCZIX3.js} +1 -1
- package/dist/{region-metadata-5YVOM47I.js → region-metadata-LDWMTB7G.js} +2 -2
- package/dist/{reservation-create-TNZQP7XW.js → reservation-create-NPR2FMPA.js} +1 -1
- package/dist/{reservation-metadata-VXWNURF4.js → reservation-metadata-AZ265HZI.js} +2 -2
- package/dist/{return-reason-create-KED7446I.js → return-reason-create-G7ON7U3A.js} +1 -1
- package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-77RVRFF6.js} +1 -1
- package/dist/{sales-channel-add-products-LUKSBD5K.js → sales-channel-add-products-S47CQCJF.js} +1 -1
- package/dist/{sales-channel-create-O5KGQ6DU.js → sales-channel-create-TAKKGGK3.js} +1 -1
- package/dist/{sales-channel-edit-CG3YUSYW.js → sales-channel-edit-HEESIKZH.js} +1 -1
- package/dist/{sales-channel-metadata-CHYCJOLY.js → sales-channel-metadata-OY47MCFI.js} +2 -2
- package/dist/{shipping-option-type-create-P2BCCARC.js → shipping-option-type-create-H2YRDETZ.js} +1 -1
- package/dist/{shipping-option-type-edit-Z4ZLUANO.js → shipping-option-type-edit-KBPDYAUJ.js} +1 -1
- package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-JYRXTOBF.js} +1 -1
- package/dist/{shipping-profile-metadata-HS7TYNEX.js → shipping-profile-metadata-CQCDC45M.js} +2 -2
- package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-SWLACMPC.js} +1 -1
- package/dist/{store-bulk-edit-BNF3HH5K.js → store-bulk-edit-DXWHZMGL.js} +2 -2
- package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-Y3FOCDRX.js} +1 -1
- package/dist/{store-create-PHLTX6J3.js → store-create-MVHUY3I3.js} +2 -2
- package/dist/{store-edit-CUVQLEFL.js → store-edit-6CC2GBFY.js} +2 -2
- package/dist/{store-member-invite-J5XSPWMW.js → store-member-invite-7YIXFC56.js} +1 -1
- package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-DF2WURRI.js} +1 -1
- package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-FPOLORSE.js} +1 -1
- package/dist/{tax-region-create-7UCI2QDJ.js → tax-region-create-RGE5ZIBR.js} +1 -1
- package/dist/{tax-region-edit-7O33SWZQ.js → tax-region-edit-QQ3LB74P.js} +1 -1
- package/dist/{tax-region-metadata-6LMVFCFW.js → tax-region-metadata-GPTD6KZB.js} +2 -2
- package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-SEPY4OAZ.js} +1 -1
- package/dist/{tax-region-tax-override-create-3FBV7DND.js → tax-region-tax-override-create-223MPYUG.js} +1 -1
- package/dist/{tax-region-tax-override-edit-RZPP66BY.js → tax-region-tax-override-edit-WFOXP6A7.js} +1 -1
- package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-ZITIAU3K.js} +1 -1
- package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-RQLUPHD4.js} +1 -1
- package/dist/{user-edit-MXS2DV37.js → user-edit-DVIMNODF.js} +1 -1
- package/dist/{user-invite-HLZJ7FST.js → user-invite-NJZWT4M5.js} +1 -1
- package/dist/{user-metadata-OYX24QL7.js → user-metadata-A3JS6O4K.js} +2 -2
- package/package.json +1 -1
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
} from "./chunk-HJ56YXBU.js";
|
|
11
11
|
import {
|
|
12
12
|
CategoryCombobox
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B5OMHYJ5.js";
|
|
14
14
|
import "./chunk-PYDRHQTY.js";
|
|
15
15
|
import {
|
|
16
16
|
TabbedForm,
|
|
17
17
|
defineTabMeta,
|
|
18
18
|
useTabbedForm
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FREUYHMS.js";
|
|
20
20
|
import {
|
|
21
21
|
SwitchBox
|
|
22
22
|
} from "./chunk-2EME4AWX.js";
|
|
23
23
|
import "./chunk-TKGWSUEI.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-SITRHMZZ.js";
|
|
25
25
|
import {
|
|
26
26
|
RouteFocusModal,
|
|
27
27
|
useRouteModal
|
|
@@ -355,7 +355,10 @@ var AttributePossibleValuesSection = ({
|
|
|
355
355
|
if (attribute.type !== import_types.AttributeType.SINGLE_SELECT && attribute.type !== import_types.AttributeType.MULTI_SELECT) {
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
|
-
const allValues =
|
|
358
|
+
const allValues = useMemo(
|
|
359
|
+
() => attribute.values ?? [],
|
|
360
|
+
[attribute.values]
|
|
361
|
+
);
|
|
359
362
|
const filtered = useMemo(() => {
|
|
360
363
|
if (!search) return allValues;
|
|
361
364
|
const q = search.toLowerCase();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SKKF3CU6.js";
|
|
4
4
|
import "./chunk-54TMLQH3.js";
|
|
5
5
|
import "./chunk-WQFFCK3R.js";
|
|
6
6
|
import "./chunk-AW77UWCZ.js";
|
|
7
7
|
import "./chunk-IQPN4PZJ.js";
|
|
8
8
|
import "./chunk-TKGWSUEI.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-SITRHMZZ.js";
|
|
10
10
|
import {
|
|
11
11
|
RouteFocusModal
|
|
12
12
|
} from "./chunk-FWJLS7XD.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-NCMUZ6BQ.js";
|
|
2
2
|
import {
|
|
3
3
|
MetadataForm
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AROCMF45.js";
|
|
5
5
|
import "./chunk-TKGWSUEI.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-SITRHMZZ.js";
|
|
7
7
|
import {
|
|
8
8
|
RouteDrawer
|
|
9
9
|
} from "./chunk-FWJLS7XD.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryCreate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ESZN3ELN.js";
|
|
4
4
|
import "./chunk-XLA2CNCW.js";
|
|
5
5
|
import "./chunk-Y456KVIN.js";
|
|
6
6
|
import "./chunk-7RPRNVBS.js";
|
|
7
7
|
import "./chunk-HJ56YXBU.js";
|
|
8
8
|
import "./chunk-SMQT3ZNO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-FREUYHMS.js";
|
|
10
10
|
import "./chunk-TKGWSUEI.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SITRHMZZ.js";
|
|
12
12
|
import "./chunk-FWJLS7XD.js";
|
|
13
13
|
import "./chunk-3QSRE5LS.js";
|
|
14
14
|
import "./chunk-KYFWVLWO.js";
|
|
@@ -90,10 +90,18 @@ var FilterableToggle = ({
|
|
|
90
90
|
return /* @__PURE__ */ jsx(
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
|
+
role: "button",
|
|
94
|
+
tabIndex: 0,
|
|
93
95
|
onClick: (e) => {
|
|
94
96
|
e.preventDefault();
|
|
95
97
|
e.stopPropagation();
|
|
96
98
|
},
|
|
99
|
+
onKeyDown: (e) => {
|
|
100
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
e.stopPropagation();
|
|
103
|
+
}
|
|
104
|
+
},
|
|
97
105
|
children: /* @__PURE__ */ jsx(
|
|
98
106
|
Switch,
|
|
99
107
|
{
|
|
@@ -119,10 +127,18 @@ var RequiredToggle = ({
|
|
|
119
127
|
return /* @__PURE__ */ jsx(
|
|
120
128
|
"div",
|
|
121
129
|
{
|
|
130
|
+
role: "button",
|
|
131
|
+
tabIndex: 0,
|
|
122
132
|
onClick: (e) => {
|
|
123
133
|
e.preventDefault();
|
|
124
134
|
e.stopPropagation();
|
|
125
135
|
},
|
|
136
|
+
onKeyDown: (e) => {
|
|
137
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
e.stopPropagation();
|
|
140
|
+
}
|
|
141
|
+
},
|
|
126
142
|
children: /* @__PURE__ */ jsx(
|
|
127
143
|
Switch,
|
|
128
144
|
{
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
PriceListRulesSchema,
|
|
7
7
|
usePriceListCurrencyData,
|
|
8
8
|
usePriceListGridColumns
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4OEYCLBE.js";
|
|
10
10
|
import {
|
|
11
11
|
exctractPricesFromProducts,
|
|
12
12
|
isProductRow
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
TabbedForm,
|
|
29
29
|
defineTabMeta,
|
|
30
30
|
useTabbedForm
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FREUYHMS.js";
|
|
32
32
|
import {
|
|
33
33
|
DataGrid
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HHW4PPNH.js";
|
|
35
35
|
import {
|
|
36
36
|
RouteFocusModal,
|
|
37
37
|
StackedFocusModal,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignSchema,
|
|
3
3
|
DEFAULT_CAMPAIGN_VALUES
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SKKF3CU6.js";
|
|
5
5
|
import {
|
|
6
6
|
DeprecatedPercentageInput
|
|
7
7
|
} from "./chunk-MAEP2UCK.js";
|
|
8
8
|
import {
|
|
9
9
|
AddCampaignPromotionFields
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LHVXXHPO.js";
|
|
11
11
|
import {
|
|
12
12
|
RulesFormField
|
|
13
13
|
} from "./chunk-FNKBJCNF.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
TabbedForm,
|
|
16
16
|
defineTabMeta,
|
|
17
17
|
useTabbedForm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FREUYHMS.js";
|
|
19
19
|
import {
|
|
20
20
|
currencies,
|
|
21
21
|
getCurrencySymbol
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-IIFQ7KYL.js";
|
|
4
4
|
import {
|
|
5
5
|
UploadMediaFormItem
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-32URSQ4F.js";
|
|
7
7
|
import {
|
|
8
8
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
9
9
|
ProductCreateSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-4YWKKCTT.js";
|
|
23
23
|
import {
|
|
24
24
|
SingleCategoryCombobox
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-B5OMHYJ5.js";
|
|
26
26
|
import {
|
|
27
27
|
useComboboxData
|
|
28
28
|
} from "./chunk-5KGMGL4N.js";
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
TabbedForm,
|
|
34
34
|
defineTabMeta,
|
|
35
35
|
useTabbedForm
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FREUYHMS.js";
|
|
37
37
|
import {
|
|
38
38
|
SwitchBox
|
|
39
39
|
} from "./chunk-2EME4AWX.js";
|
|
40
40
|
import {
|
|
41
41
|
ChipInput
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KDE4HKH2.js";
|
|
43
43
|
import {
|
|
44
44
|
DataGrid,
|
|
45
45
|
createDataGridHelper
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-HHW4PPNH.js";
|
|
47
47
|
import {
|
|
48
48
|
RouteFocusModal,
|
|
49
49
|
StackedFocusModal,
|
|
@@ -773,7 +773,7 @@ var RequiredAttributes = () => {
|
|
|
773
773
|
};
|
|
774
774
|
});
|
|
775
775
|
form.setValue("attributes", [...otherAttributes, ...requiredAttributes]);
|
|
776
|
-
}, [product_attributes]);
|
|
776
|
+
}, [product_attributes, form]);
|
|
777
777
|
if (!categoryId || !product_attributes?.length) return null;
|
|
778
778
|
const requiredEntries = attributes.map((attr, index) => ({ attr, index })).filter(({ attr }) => !attr.is_custom);
|
|
779
779
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
@@ -1868,7 +1868,7 @@ var ProductCreateForm = ({
|
|
|
1868
1868
|
if (JSON.stringify(newVariants.map((v) => v.options)) !== JSON.stringify(currentVariants.map((v) => v.options))) {
|
|
1869
1869
|
form.setValue("variants", newVariants);
|
|
1870
1870
|
}
|
|
1871
|
-
}, [watchedAttributes]);
|
|
1871
|
+
}, [watchedAttributes, form]);
|
|
1872
1872
|
const handleSubmit = form.handleSubmit(async (values, e) => {
|
|
1873
1873
|
if (isRegionsPending) {
|
|
1874
1874
|
return;
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
TabbedForm,
|
|
14
14
|
defineTabMeta,
|
|
15
15
|
useTabbedForm
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FREUYHMS.js";
|
|
17
17
|
import {
|
|
18
18
|
SwitchBox
|
|
19
19
|
} from "./chunk-2EME4AWX.js";
|
|
20
20
|
import {
|
|
21
21
|
DataGrid,
|
|
22
22
|
createDataGridHelper
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HHW4PPNH.js";
|
|
24
24
|
import {
|
|
25
25
|
RouteFocusModal,
|
|
26
26
|
useRouteModal
|
|
@@ -104,7 +104,8 @@ var CategoryCombobox = forwardRef(({ value, onChange, className, isSingleSelect,
|
|
|
104
104
|
innerRef.current?.focus();
|
|
105
105
|
};
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
108
|
+
[value, onChange, isSingleSelect, handleOpenChange]
|
|
108
109
|
);
|
|
109
110
|
function handleOpenChange(open2) {
|
|
110
111
|
if (!open2) {
|
|
@@ -512,7 +513,8 @@ var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props
|
|
|
512
513
|
innerRef.current?.focus();
|
|
513
514
|
};
|
|
514
515
|
},
|
|
515
|
-
|
|
516
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
517
|
+
[value, onChange, handleOpenChange]
|
|
516
518
|
);
|
|
517
519
|
function handleOpenChange(open2) {
|
|
518
520
|
if (!open2) {
|
|
@@ -673,7 +675,6 @@ var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props
|
|
|
673
675
|
"button",
|
|
674
676
|
{
|
|
675
677
|
"data-active": focusedIndex === 0,
|
|
676
|
-
role: "button",
|
|
677
678
|
className: clx2(
|
|
678
679
|
"transition-fg grid w-full appearance-none grid-cols-[20px_1fr] items-center justify-center gap-2 rounded-md px-2 py-1.5 text-start outline-none",
|
|
679
680
|
"data-[active=true]:bg-ui-bg-field-hover"
|
|
@@ -708,6 +709,7 @@ var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props
|
|
|
708
709
|
"data-active": showLevelUp ? focusedIndex === index + 1 : focusedIndex === index,
|
|
709
710
|
type: "button",
|
|
710
711
|
role: "option",
|
|
712
|
+
"aria-selected": value === option.value,
|
|
711
713
|
className: clx2(
|
|
712
714
|
"grid h-full w-full appearance-none grid-cols-[20px_1fr] items-center gap-2 overflow-hidden rounded-md px-2 py-1.5 text-start outline-none",
|
|
713
715
|
"data-[active=true]:bg-ui-bg-field-hover"
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
useCombinedRefs,
|
|
16
16
|
useDataGridCell,
|
|
17
17
|
useDataGridCellError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HHW4PPNH.js";
|
|
19
19
|
import {
|
|
20
20
|
currencies
|
|
21
21
|
} from "./chunk-IQPN4PZJ.js";
|
|
22
22
|
import {
|
|
23
23
|
KeyboundForm
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SITRHMZZ.js";
|
|
25
25
|
import {
|
|
26
26
|
StackedFocusModal
|
|
27
27
|
} from "./chunk-FWJLS7XD.js";
|
|
@@ -3580,6 +3580,7 @@ var DataGridRowSkeleton = ({
|
|
|
3580
3580
|
"div",
|
|
3581
3581
|
{
|
|
3582
3582
|
role: "gridcell",
|
|
3583
|
+
"aria-label": "Cell input",
|
|
3583
3584
|
style: { width: vc.size },
|
|
3584
3585
|
className: "relative flex items-center border-b border-r p-0 outline-none",
|
|
3585
3586
|
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" }) })
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ShippingOptionPriceProvider,
|
|
5
5
|
buildShippingOptionPriceRules,
|
|
6
6
|
useShippingOptionPriceColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GQUGCSJV.js";
|
|
8
8
|
import {
|
|
9
9
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
|
10
10
|
ShippingOptionPriceType
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
TabbedForm,
|
|
26
26
|
defineTabMeta,
|
|
27
27
|
useTabbedForm
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FREUYHMS.js";
|
|
29
29
|
import {
|
|
30
30
|
SwitchBox
|
|
31
31
|
} from "./chunk-2EME4AWX.js";
|
|
32
32
|
import {
|
|
33
33
|
DataGrid
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HHW4PPNH.js";
|
|
35
35
|
import {
|
|
36
36
|
RouteFocusModal,
|
|
37
37
|
StackedFocusModal,
|
|
@@ -135,6 +135,7 @@ var ChipInput = forwardRef(
|
|
|
135
135
|
/* @__PURE__ */ jsx(
|
|
136
136
|
"input",
|
|
137
137
|
{
|
|
138
|
+
"aria-label": "Chip input",
|
|
138
139
|
className: clx(
|
|
139
140
|
"caret-ui-fg-base text-ui-fg-base txt-compact-small flex-1 appearance-none bg-transparent",
|
|
140
141
|
"disabled:text-ui-fg-disabled disabled:cursor-not-allowed",
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PriceListCreateProductsSchema,
|
|
3
3
|
usePriceListCurrencyData,
|
|
4
4
|
usePriceListGridColumns
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4OEYCLBE.js";
|
|
6
6
|
import {
|
|
7
7
|
exctractPricesFromProducts,
|
|
8
8
|
isProductRow
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
TabbedForm,
|
|
25
25
|
defineTabMeta,
|
|
26
26
|
useTabbedForm
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FREUYHMS.js";
|
|
28
28
|
import {
|
|
29
29
|
DataGrid
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HHW4PPNH.js";
|
|
31
31
|
import {
|
|
32
32
|
RouteFocusModal,
|
|
33
33
|
useRouteModal
|
|
@@ -17,14 +17,17 @@ var KeyboundForm = React.forwardRef(({ onSubmit, onKeyDown, ...rest }, ref) => {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
return (
|
|
21
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"form",
|
|
24
|
+
{
|
|
25
|
+
...rest,
|
|
26
|
+
onSubmit: handleSubmit,
|
|
27
|
+
onKeyDown: onKeyDown ?? handleKeyDown,
|
|
28
|
+
ref
|
|
29
|
+
}
|
|
30
|
+
)
|
|
28
31
|
);
|
|
29
32
|
});
|
|
30
33
|
KeyboundForm.displayName = "KeyboundForm";
|
|
@@ -112,6 +112,7 @@ var FileUpload = ({
|
|
|
112
112
|
"input",
|
|
113
113
|
{
|
|
114
114
|
hidden: true,
|
|
115
|
+
"aria-label": "File upload",
|
|
115
116
|
ref: inputRef,
|
|
116
117
|
onChange: handleFileChange,
|
|
117
118
|
type: "file",
|
|
@@ -162,6 +163,7 @@ var FileUpload = ({
|
|
|
162
163
|
"input",
|
|
163
164
|
{
|
|
164
165
|
hidden: true,
|
|
166
|
+
"aria-label": "File upload",
|
|
165
167
|
ref: inputRef,
|
|
166
168
|
onChange: handleFileChange,
|
|
167
169
|
type: "file",
|