@mercurjs/admin 2.2.0-canary.37 → 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.
Files changed (142) hide show
  1. package/dist/{add-campaign-promotions-26SSHLLG.js → add-campaign-promotions-FWYK3JCR.js} +4 -4
  2. package/dist/{api-key-management-list-RLATJRDL.js → api-key-management-list-SXHZJUJB.js} +2 -2
  3. package/dist/{attribute-detail-G6APXXFT.js → attribute-detail-7EBAQ26V.js} +1 -1
  4. package/dist/{attribute-list-42GDF2PV.js → attribute-list-G73VHMFA.js} +2 -2
  5. package/dist/{campaign-detail-VMJQISAE.js → campaign-detail-I6KGCHUL.js} +5 -5
  6. package/dist/{campaign-list-W2YZAPUI.js → campaign-list-FFGRXEVJ.js} +2 -2
  7. package/dist/{category-detail-I3EEPAQR.js → category-detail-ZEOXQF7F.js} +2 -2
  8. package/dist/{category-list-QLHQST3D.js → category-list-7ILXI55P.js} +2 -2
  9. package/dist/{category-products-XGLUDL73.js → category-products-UFKHB7YL.js} +1 -1
  10. package/dist/{chunk-QM343PBJ.js → chunk-23OLYWMR.js} +1 -1
  11. package/dist/{chunk-E6VCLJNF.js → chunk-2DSCC2VR.js} +1 -1
  12. package/dist/{chunk-CMZ4KATG.js → chunk-2S2SBRZP.js} +3 -3
  13. package/dist/{chunk-L4KT5CLI.js → chunk-2YAVXVET.js} +1 -1
  14. package/dist/{chunk-PPMWEQP3.js → chunk-3OD3YOA3.js} +71 -34
  15. package/dist/{chunk-XQCG2ORD.js → chunk-45O5MFCT.js} +1 -1
  16. package/dist/{chunk-C4N5EJAD.js → chunk-4BCUGMOR.js} +0 -13
  17. package/dist/{chunk-BWRQJXHB.js → chunk-5DQED4UT.js} +1 -1
  18. package/dist/{chunk-U725ING6.js → chunk-5NC6SI6J.js} +1 -1
  19. package/dist/{chunk-SWQC5UPD.js → chunk-6FNIEKSN.js} +4 -4
  20. package/dist/{chunk-MKNQ6BT6.js → chunk-72SDBLWQ.js} +1 -1
  21. package/dist/{chunk-57MFJ2HE.js → chunk-74WEDBZ7.js} +1 -1
  22. package/dist/{chunk-57GNGL6K.js → chunk-7RWFRMQG.js} +1 -1
  23. package/dist/{chunk-FU3QYH6H.js → chunk-CB7DBYH4.js} +1 -13
  24. package/dist/{chunk-6YEU2ZAD.js → chunk-CE2WRTS7.js} +1 -1
  25. package/dist/{chunk-ZDEIYWCK.js → chunk-CIKPTKSX.js} +1 -1
  26. package/dist/{chunk-RLGMY7JJ.js → chunk-CY263OE4.js} +1 -1
  27. package/dist/{chunk-KUKBV4XN.js → chunk-CYACZXMQ.js} +1 -1
  28. package/dist/{chunk-YAJDG3W7.js → chunk-DI2KBXVH.js} +1 -1
  29. package/dist/{chunk-YLQCULOV.js → chunk-DISTPZNS.js} +1 -1
  30. package/dist/{chunk-V7YJ53P5.js → chunk-EJYLSQVT.js} +1 -1
  31. package/dist/{chunk-2MRYNLVT.js → chunk-F6NPDZHW.js} +1 -1
  32. package/dist/{chunk-N5H2J6HE.js → chunk-FBDAKD4B.js} +1 -1
  33. package/dist/{chunk-POMQZ6PN.js → chunk-GUDWUAMT.js} +1 -1
  34. package/dist/{chunk-SJHBNENS.js → chunk-HSL5IICN.js} +15 -6
  35. package/dist/{chunk-MHCIHDGF.js → chunk-HWWET5ZP.js} +1 -1
  36. package/dist/{chunk-5YWQDIVG.js → chunk-I3ARNGRC.js} +1 -1
  37. package/dist/{chunk-EMW5WXXR.js → chunk-IQDZZ5EQ.js} +1 -1
  38. package/dist/{chunk-HMKXCYCJ.js → chunk-IRX6RBTE.js} +7 -2
  39. package/dist/{chunk-YRGPQ2C4.js → chunk-JUMT5GX7.js} +1 -1
  40. package/dist/{chunk-4OCWOY2F.js → chunk-JXSXBSV6.js} +8 -8
  41. package/dist/{chunk-AQIW7R4Y.js → chunk-KC4J2WOM.js} +1 -1
  42. package/dist/{chunk-HBT7GVJD.js → chunk-KRECA22N.js} +56 -48
  43. package/dist/{chunk-GX7YQ6GM.js → chunk-LRJNSCMR.js} +1 -1
  44. package/dist/{chunk-U5MDOZS7.js → chunk-MANRAV52.js} +1 -1
  45. package/dist/{chunk-4NE4EIHO.js → chunk-MYJJMHR5.js} +1 -1
  46. package/dist/{chunk-OTXOV6YU.js → chunk-NEGOGYEO.js} +1 -1
  47. package/dist/{chunk-MIKJRLQI.js → chunk-NKV5XPNS.js} +1 -1
  48. package/dist/{chunk-ENSI7NL7.js → chunk-O5MW4WPZ.js} +1 -1
  49. package/dist/{chunk-RZ43M34Q.js → chunk-PNZI5C5A.js} +2 -2
  50. package/dist/{chunk-4X4MNAXL.js → chunk-PWLDTJJX.js} +1 -1
  51. package/dist/{chunk-XEB5I2KE.js → chunk-Q4R2O7XF.js} +2 -2
  52. package/dist/{chunk-E32O3DUM.js → chunk-QAWWIM4I.js} +2 -2
  53. package/dist/{chunk-AHUVAYZD.js → chunk-QH34LF36.js} +1 -1
  54. package/dist/{chunk-GML7DINQ.js → chunk-RDUSAVT3.js} +1 -1
  55. package/dist/{chunk-LRKN7IQH.js → chunk-RNDDYLHV.js} +1 -1
  56. package/dist/{chunk-EA3XMVOS.js → chunk-S22SK4KO.js} +1 -1
  57. package/dist/{chunk-NXMD36QG.js → chunk-SIOKPEVN.js} +1 -1
  58. package/dist/{chunk-QEXIOKNZ.js → chunk-SLKOHWKT.js} +1 -1
  59. package/dist/{chunk-AIEPAHO5.js → chunk-TAM24IMD.js} +1 -1
  60. package/dist/{chunk-6YEVK7JJ.js → chunk-VPPUFVFJ.js} +9 -16
  61. package/dist/{chunk-GCYUOP4W.js → chunk-VSKHV5QF.js} +1 -1
  62. package/dist/{chunk-DUVTXDNA.js → chunk-XFKDDRB6.js} +1 -1
  63. package/dist/{chunk-3UJQT6UR.js → chunk-Y5JQAKX7.js} +5 -6
  64. package/dist/{chunk-X3TWPSUM.js → chunk-Y62TJJ3P.js} +1 -1
  65. package/dist/{chunk-CDVQK7JZ.js → chunk-YNK25LVO.js} +1 -1
  66. package/dist/{chunk-PAUULPNC.js → chunk-ZHT3Y47H.js} +2 -2
  67. package/dist/{chunk-C6AU3U22.js → chunk-ZPEMWHUW.js} +1 -1
  68. package/dist/{collection-add-products-2G37ZL2J.js → collection-add-products-MJYMPNLP.js} +1 -1
  69. package/dist/{collection-detail-AB6HGJDM.js → collection-detail-C4ZCH55B.js} +2 -2
  70. package/dist/{collection-list-UHFUKA5U.js → collection-list-4UX2LLQV.js} +3 -3
  71. package/dist/{commissions-list-KQ2TUJAW.js → commissions-list-MZY7KOP5.js} +2 -2
  72. package/dist/{customer-detail-ZYJDB47Y.js → customer-detail-FRGVVWTZ.js} +3 -3
  73. package/dist/{customer-group-add-customers-GSEUGBTJ.js → customer-group-add-customers-QBRVKXGO.js} +1 -1
  74. package/dist/{customer-group-detail-5VSUJTR3.js → customer-group-detail-KIC2TWZ3.js} +2 -2
  75. package/dist/{customer-group-list-BRQRKORR.js → customer-group-list-BRH6SWRD.js} +2 -2
  76. package/dist/{customer-list-6PRFTWMO.js → customer-list-276YPXTE.js} +2 -2
  77. package/dist/{customers-add-customer-group-56GS7TR7.js → customers-add-customer-group-C4Y6P45C.js} +1 -1
  78. package/dist/index.css +5184 -3
  79. package/dist/index.d.ts +7 -1
  80. package/dist/index.js +100 -100
  81. package/dist/{inventory-create-WJ3CCFTD.js → inventory-create-M3YBQVNG.js} +2 -2
  82. package/dist/{inventory-detail-QY56I2KX.js → inventory-detail-6PAVKSOK.js} +2 -2
  83. package/dist/{inventory-list-AB4OHYMU.js → inventory-list-U4W4AP4E.js} +2 -2
  84. package/dist/{inventory-stock-F2BKMXY3.js → inventory-stock-XQWWFVQ3.js} +1 -1
  85. package/dist/{location-fulfillment-providers-VVJGPYJI.js → location-fulfillment-providers-Z3PR4MQI.js} +2 -2
  86. package/dist/{location-service-zone-create-WPSYG3NX.js → location-service-zone-create-U77V3ROT.js} +2 -2
  87. package/dist/{location-service-zone-manage-areas-ZH2ICSC7.js → location-service-zone-manage-areas-FUUAAIDJ.js} +2 -2
  88. package/dist/{location-service-zone-shipping-option-create-OLABLTSL.js → location-service-zone-shipping-option-create-NFKZT2HM.js} +3 -3
  89. package/dist/{location-service-zone-shipping-option-pricing-TARZ34TW.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +2 -2
  90. package/dist/{marketplace-add-currencies-FPDYEYCL.js → marketplace-add-currencies-KDNMN57C.js} +1 -1
  91. package/dist/{marketplace-detail-7WGPHRQM.js → marketplace-detail-X5AQWO7P.js} +2 -2
  92. package/dist/{offer-detail-page-3RAFKFK4.js → offer-detail-page-4GNU35AH.js} +2 -2
  93. package/dist/{offer-variant-detail-page-5FS6D46I.js → offer-variant-detail-page-FFPV7N7Y.js} +2 -2
  94. package/dist/{offers-T4ARWA47.js → offers-3HP7SICL.js} +1 -1
  95. package/dist/{order-create-claim-GOP565XH.js → order-create-claim-MEXSDGHW.js} +1 -1
  96. package/dist/{order-create-edit-DK4QG2CR.js → order-create-edit-M2F6CG3M.js} +1 -1
  97. package/dist/{order-create-exchange-ZHJ3T5QJ.js → order-create-exchange-HTWFKJOM.js} +1 -1
  98. package/dist/{order-create-return-63X5PUTT.js → order-create-return-DDOYLDT7.js} +1 -1
  99. package/dist/{order-detail-6UAWPZI2.js → order-detail-QYZGM7OO.js} +2 -2
  100. package/dist/{order-edit-billing-address-IU6W76P3.js → order-edit-billing-address-JHJ7PCPC.js} +1 -1
  101. package/dist/{order-list-FFPY5OGR.js → order-list-5PVFAFJT.js} +3 -3
  102. package/dist/pages/index.js +55 -55
  103. package/dist/{payout-list-A2KQTZMZ.js → payout-list-SOWVPSFQ.js} +2 -2
  104. package/dist/{price-list-configuration-2NFE4MNW.js → price-list-configuration-BIHWXMYS.js} +2 -2
  105. package/dist/{price-list-create-UMA2NB3L.js → price-list-create-XV6OY4A2.js} +5 -5
  106. package/dist/{price-list-detail-7ANY3XOC.js → price-list-detail-IUZU5OA7.js} +2 -2
  107. package/dist/{price-list-list-6II3XYUA.js → price-list-list-A42VGE3L.js} +2 -2
  108. package/dist/{price-list-prices-add-XLFLGFVG.js → price-list-prices-add-KUBO4DCC.js} +4 -4
  109. package/dist/{price-list-prices-edit-MT6BFF3M.js → price-list-prices-edit-PJ4CPB5I.js} +2 -2
  110. package/dist/{product-bulk-edit-3AJGOE6E.js → product-bulk-edit-TRI2KKHW.js} +1 -1
  111. package/dist/{product-create-2SELD5CI.js → product-create-EGL6UJKX.js} +4 -4
  112. package/dist/{product-detail-O7MVTHSN.js → product-detail-SNS2DQ6Q.js} +2 -2
  113. package/dist/{product-list-SIQDX4AT.js → product-list-LGS3O2OJ.js} +2 -2
  114. package/dist/{product-media-S6L3IHUO.js → product-media-JKUDYI32.js} +2 -2
  115. package/dist/{product-organization-BYPV5QSZ.js → product-organization-AIM3LNQ6.js} +1 -1
  116. package/dist/{product-tag-detail-SVDEVPMA.js → product-tag-detail-MI7B2MPH.js} +3 -3
  117. package/dist/{product-tag-list-4ECQFBOA.js → product-tag-list-7CE4KJ3G.js} +3 -3
  118. package/dist/{product-type-detail-WSHUE56F.js → product-type-detail-O2WGGFRT.js} +2 -2
  119. package/dist/{product-type-list-EP2YCYLK.js → product-type-list-XTVTT7ZA.js} +2 -2
  120. package/dist/{promotion-detail-25JCCLU2.js → promotion-detail-WFB2ZFPH.js} +3 -3
  121. package/dist/{promotion-list-RXLVU4G2.js → promotion-list-VLCRCI2K.js} +5 -5
  122. package/dist/{region-add-countries-NFJYG4JA.js → region-add-countries-IIHNNE76.js} +1 -1
  123. package/dist/{region-create-RW42MXKY.js → region-create-PHZNUCJR.js} +1 -1
  124. package/dist/{region-detail-S7GNXX5B.js → region-detail-AECQQ62I.js} +2 -2
  125. package/dist/{region-list-ZP7QIWQ3.js → region-list-IBQW5J3R.js} +2 -2
  126. package/dist/{reservation-list-UGXB2P7K.js → reservation-list-IUYMT4U6.js} +2 -2
  127. package/dist/{reset-password-GBVMOKXP.js → reset-password-OL6EA5F2.js} +1 -1
  128. package/dist/{return-reason-list-AW6MMUKD.js → return-reason-list-FRHFRNKK.js} +2 -2
  129. package/dist/{sales-channel-add-products-LRANEISZ.js → sales-channel-add-products-ZZPVF5CH.js} +1 -1
  130. package/dist/{sales-channel-detail-5XXO3BXP.js → sales-channel-detail-DNZXUBSN.js} +2 -2
  131. package/dist/{shipping-option-type-list-UCTCZPAM.js → shipping-option-type-list-AW2ZA4V5.js} +2 -2
  132. package/dist/{shipping-profiles-list-CBTZYI33.js → shipping-profiles-list-4VHKTKIL.js} +2 -2
  133. package/dist/{store-bulk-edit-I6QHGMEC.js → store-bulk-edit-SZ3UEDWJ.js} +1 -1
  134. package/dist/{store-details-XNBFIWDL.js → store-details-4XVEWNIX.js} +3 -3
  135. package/dist/{store-edit-BBOEDZNV.js → store-edit-KJTO3ZUP.js} +2 -2
  136. package/dist/{store-list-RVZG3UD3.js → store-list-LSADPRI2.js} +3 -3
  137. package/dist/{tax-region-create-7432IFN5.js → tax-region-create-MPKY5KXL.js} +1 -1
  138. package/dist/{tax-region-tax-override-create-WRUNCP67.js → tax-region-tax-override-create-X3WQVHYV.js} +3 -3
  139. package/dist/{tax-region-tax-override-edit-EOIDY4LX.js → tax-region-tax-override-edit-SYK2O5BK.js} +3 -3
  140. package/dist/{user-invite-WIHSREOW.js → user-invite-UN6NCCII.js} +1 -1
  141. package/dist/{user-list-3C6GRWMJ.js → user-list-27ZKEJXN.js} +2 -2
  142. package/package.json +9 -6
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-SJHBNENS.js";
16
+ } from "./chunk-HSL5IICN.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-SJHBNENS.js";
10
+ } from "./chunk-HSL5IICN.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -15,7 +15,7 @@ import {
15
15
  useCombinedRefs,
16
16
  useDataGridCell,
17
17
  useDataGridCellError
18
- } from "./chunk-4OCWOY2F.js";
18
+ } from "./chunk-JXSXBSV6.js";
19
19
  import {
20
20
  currencies
21
21
  } from "./chunk-IQPN4PZJ.js";
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  _DataTable,
23
23
  useDataTable
24
- } from "./chunk-SJHBNENS.js";
24
+ } from "./chunk-HSL5IICN.js";
25
25
  import {
26
26
  SingleColumnPage
27
27
  } from "./chunk-H6MYB7GB.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  _DataTable,
24
24
  useDataTable
25
- } from "./chunk-SJHBNENS.js";
25
+ } from "./chunk-HSL5IICN.js";
26
26
  import {
27
27
  SingleColumnPage
28
28
  } from "./chunk-H6MYB7GB.js";
@@ -1113,9 +1113,10 @@ var DataTableQuery = ({
1113
1113
  orderBy,
1114
1114
  defaultOrder,
1115
1115
  filters,
1116
- prefix
1116
+ prefix,
1117
+ toolbarActions
1117
1118
  }) => {
1118
- return (search || orderBy || filters || prefix) && /* @__PURE__ */ jsxs7("div", { className: "flex items-start justify-between gap-x-4 px-6 py-4", children: [
1119
+ return (search || orderBy || filters || prefix || toolbarActions) && /* @__PURE__ */ jsxs7("div", { className: "flex items-start justify-between gap-x-4 px-6 py-4", children: [
1119
1120
  /* @__PURE__ */ jsx7("div", { className: "w-full max-w-[60%]", children: filters && filters.length > 0 && /* @__PURE__ */ jsx7(DataTableFilter, { filters, prefix }) }),
1120
1121
  /* @__PURE__ */ jsxs7("div", { className: "flex shrink-0 items-center gap-x-2", children: [
1121
1122
  search && /* @__PURE__ */ jsx7(
@@ -1132,7 +1133,8 @@ var DataTableQuery = ({
1132
1133
  prefix,
1133
1134
  defaultOrder
1134
1135
  }
1135
- )
1136
+ ),
1137
+ toolbarActions
1136
1138
  ] })
1137
1139
  ] });
1138
1140
  };
@@ -1156,6 +1158,7 @@ var DataTableRoot = ({
1156
1158
  columns,
1157
1159
  pagination,
1158
1160
  navigateTo,
1161
+ onRowClick,
1159
1162
  commands,
1160
1163
  count = 0,
1161
1164
  noResults = false,
@@ -1248,6 +1251,7 @@ var DataTableRoot = ({
1248
1251
  }) }),
1249
1252
  /* @__PURE__ */ jsx8(Table.Body, { className: "border-b-0", children: table.getRowModel().rows.map((row) => {
1250
1253
  const to = navigateTo ? navigateTo(row) : void 0;
1254
+ const handleRowClick = !to && onRowClick ? () => onRowClick(row) : void 0;
1251
1255
  const isRowDisabled = hasSelect && !row.getCanSelect();
1252
1256
  const isOdd = row.depth % 2 !== 0;
1253
1257
  const cells = row.getVisibleCells();
@@ -1255,12 +1259,13 @@ var DataTableRoot = ({
1255
1259
  Table.Row,
1256
1260
  {
1257
1261
  "data-selected": row.getIsSelected(),
1262
+ onClick: handleRowClick,
1258
1263
  className: clx7(
1259
1264
  "transition-fg group/row group relative [&_td:last-of-type]:w-[1%] [&_td:last-of-type]:whitespace-nowrap",
1260
1265
  "has-[[data-row-link]:focus-visible]:bg-ui-bg-base-hover",
1261
1266
  {
1262
1267
  "bg-ui-bg-subtle hover:bg-ui-bg-subtle-hover": isOdd,
1263
- "cursor-pointer": !!to,
1268
+ "cursor-pointer": !!to || !!handleRowClick,
1264
1269
  "bg-ui-bg-highlight hover:bg-ui-bg-highlight-hover": row.getIsSelected(),
1265
1270
  "!bg-ui-bg-disabled !hover:bg-ui-bg-disabled": isRowDisabled
1266
1271
  }
@@ -1390,6 +1395,7 @@ var _DataTable = ({
1390
1395
  columns,
1391
1396
  pagination,
1392
1397
  navigateTo,
1398
+ onRowClick,
1393
1399
  commands,
1394
1400
  count = 0,
1395
1401
  search = false,
@@ -1402,7 +1408,8 @@ var _DataTable = ({
1402
1408
  isLoading = false,
1403
1409
  noHeader = false,
1404
1410
  layout = "fit",
1405
- noRecords: noRecordsProps = {}
1411
+ noRecords: noRecordsProps = {},
1412
+ toolbarActions
1406
1413
  }) => {
1407
1414
  if (isLoading) {
1408
1415
  return /* @__PURE__ */ jsx9(
@@ -1445,7 +1452,8 @@ var _DataTable = ({
1445
1452
  orderBy,
1446
1453
  defaultOrder,
1447
1454
  filters,
1448
- prefix
1455
+ prefix,
1456
+ toolbarActions
1449
1457
  }
1450
1458
  ),
1451
1459
  /* @__PURE__ */ jsx9(
@@ -1456,6 +1464,7 @@ var _DataTable = ({
1456
1464
  columns,
1457
1465
  pagination: true,
1458
1466
  navigateTo,
1467
+ onRowClick,
1459
1468
  commands,
1460
1469
  noResults,
1461
1470
  noHeader,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-SJHBNENS.js";
16
+ } from "./chunk-HSL5IICN.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-SJHBNENS.js";
13
+ } from "./chunk-HSL5IICN.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-SJHBNENS.js";
13
+ } from "./chunk-HSL5IICN.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OI4DJXUL.js";
7
7
  import {
8
8
  useOrderGroupTableFilters
9
- } from "./chunk-FU3QYH6H.js";
9
+ } from "./chunk-CB7DBYH4.js";
10
10
  import {
11
11
  useOrderTableQuery
12
12
  } from "./chunk-QUHSHIAC.js";
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  _DataTable,
38
38
  useDataTable
39
- } from "./chunk-SJHBNENS.js";
39
+ } from "./chunk-HSL5IICN.js";
40
40
  import {
41
41
  NoRecords
42
42
  } from "./chunk-PAYQJPGK.js";
@@ -626,6 +626,11 @@ var CustomerOrderSection = ({
626
626
  table,
627
627
  pagination: true,
628
628
  navigateTo: (row) => row.original._type === "order" ? `/orders/${row.original.id}` : "",
629
+ onRowClick: (row) => {
630
+ if (row.getCanExpand()) {
631
+ row.toggleExpanded();
632
+ }
633
+ },
629
634
  count,
630
635
  isLoading,
631
636
  pageSize: PAGE_SIZE2,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-SJHBNENS.js";
16
+ } from "./chunk-HSL5IICN.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -3373,15 +3373,15 @@ var DataGridHeader = ({
3373
3373
  }
3374
3374
  )
3375
3375
  ] }),
3376
- headerContent && /* @__PURE__ */ jsx9(
3377
- "div",
3378
- {
3379
- className: "flex items-center",
3380
- onFocusCapture: () => onHeaderInteractionChange(true),
3381
- children: headerContent
3382
- }
3383
- ),
3384
3376
  /* @__PURE__ */ jsxs6("div", { className: "ml-auto flex items-center gap-x-2", children: [
3377
+ headerContent && /* @__PURE__ */ jsx9(
3378
+ "div",
3379
+ {
3380
+ className: "flex items-center",
3381
+ onFocusCapture: () => onHeaderInteractionChange(true),
3382
+ children: headerContent
3383
+ }
3384
+ ),
3385
3385
  errorCount > 0 && /* @__PURE__ */ jsxs6(
3386
3386
  Button2,
3387
3387
  {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-SJHBNENS.js";
10
+ } from "./chunk-HSL5IICN.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  _DataTable,
18
18
  useDataTable
19
- } from "./chunk-SJHBNENS.js";
19
+ } from "./chunk-HSL5IICN.js";
20
20
  import {
21
21
  useQueryParams
22
22
  } from "./chunk-THHRRYRS.js";
@@ -530,6 +530,33 @@ var AttributeActions = ({
530
530
  }
531
531
  );
532
532
  };
533
+ var AttributeValue = ({
534
+ attribute
535
+ }) => {
536
+ const { t } = useTranslation4();
537
+ const values = attribute.values?.map((v) => v.name) ?? [];
538
+ if (["single_select", "multi_select"].includes(attribute.type)) {
539
+ return /* @__PURE__ */ jsx4("div", { className: "flex flex-wrap gap-1", children: values.map((val) => /* @__PURE__ */ jsx4(
540
+ Badge,
541
+ {
542
+ size: "2xsmall",
543
+ className: "flex min-w-[20px] items-center justify-center",
544
+ children: val
545
+ },
546
+ val
547
+ )) });
548
+ }
549
+ const textValue = attribute.type === "toggle" ? values.map((val) => val === "true" ? t("general.yes") : t("general.no")).join(", ") || "-" : values.join(", ") || "-";
550
+ return /* @__PURE__ */ jsx4(Tooltip, { content: /* @__PURE__ */ jsx4("span", { className: "break-all", children: textValue }), children: /* @__PURE__ */ jsx4(
551
+ Text3,
552
+ {
553
+ size: "small",
554
+ leading: "compact",
555
+ className: "line-clamp-3 min-w-0 break-words text-ui-fg-subtle",
556
+ children: textValue
557
+ }
558
+ ) });
559
+ };
533
560
  var AttributeGroup = ({
534
561
  icon,
535
562
  title,
@@ -550,36 +577,17 @@ var AttributeGroup = ({
550
577
  ] })
551
578
  ] }),
552
579
  /* @__PURE__ */ jsx4("div", { className: "flex flex-col gap-y-0", children: /* @__PURE__ */ jsx4("div", { className: "overflow-hidden rounded-xl border border-ui-border-base", children: attributes.map((attr, index) => {
553
- const values = attr.values?.map((v) => v.name) ?? [];
554
580
  return /* @__PURE__ */ jsx4(
555
581
  "div",
556
582
  {
557
583
  className: index < attributes.length - 1 ? "border-b border-ui-border-base" : "",
558
- children: /* @__PURE__ */ jsxs4("div", { className: "grid grid-cols-[1fr_1fr_28px] items-center gap-4 px-4 py-3 bg-ui-bg-component", children: [
584
+ children: /* @__PURE__ */ jsxs4("div", { className: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_28px] items-center gap-4 px-4 py-3 bg-ui-bg-component", children: [
559
585
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2 text-ui-fg-subtle", children: [
560
586
  /* @__PURE__ */ jsx4(Text3, { size: "small", weight: "plus", leading: "compact", children: attr.name }),
561
587
  attr.description && /* @__PURE__ */ jsx4(Tooltip, { content: attr.description, children: /* @__PURE__ */ jsx4("span", { className: "text-ui-fg-muted flex items-center", children: /* @__PURE__ */ jsx4(InformationCircleSolid, {}) }) }),
562
588
  attr.is_required && /* @__PURE__ */ jsx4(Tooltip, { content: t("products.attributeRequiredByMarketplace"), children: /* @__PURE__ */ jsx4("span", { className: "text-ui-fg-muted flex items-center", children: /* @__PURE__ */ jsx4(InformationCircleSolid, {}) }) })
563
589
  ] }),
564
- /* @__PURE__ */ jsx4("div", { className: "flex flex-wrap gap-1", children: ["single_select", "multi_select"].includes(attr.type) ? values.map((val) => /* @__PURE__ */ jsx4(
565
- Badge,
566
- {
567
- size: "2xsmall",
568
- className: "flex min-w-[20px] items-center justify-center",
569
- children: val
570
- },
571
- val
572
- )) : /* @__PURE__ */ jsx4(
573
- Text3,
574
- {
575
- size: "small",
576
- leading: "compact",
577
- className: "text-ui-fg-subtle",
578
- children: attr.type === "toggle" ? values.map(
579
- (val) => val === "true" ? t("general.yes") : t("general.no")
580
- ).join(", ") || "-" : values.join(", ") || "-"
581
- }
582
- ) }),
590
+ /* @__PURE__ */ jsx4(AttributeValue, { attribute: attr }),
583
591
  /* @__PURE__ */ jsx4(AttributeActions, { productId, attribute: attr })
584
592
  ] })
585
593
  },
@@ -831,30 +839,16 @@ var ProductOrganizationSection = ({
831
839
  /* @__PURE__ */ jsx6(
832
840
  SectionRow,
833
841
  {
834
- title: t("fields.tags"),
835
- value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */ jsx6(
842
+ title: t("fields.category"),
843
+ value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */ jsx6(
836
844
  OrganizationTag,
837
845
  {
838
- label: tag.value,
839
- to: `/settings/product-tags/${tag.id}`
846
+ label: pcat.name,
847
+ to: `/categories/${pcat.id}`
840
848
  },
841
- tag.id
849
+ pcat.id
842
850
  )) : void 0,
843
- "data-testid": "product-tags-row"
844
- }
845
- ),
846
- /* @__PURE__ */ jsx6(
847
- SectionRow,
848
- {
849
- title: t("fields.type"),
850
- value: product.type ? /* @__PURE__ */ jsx6(
851
- OrganizationTag,
852
- {
853
- label: product.type.value,
854
- to: `/settings/product-types/${product.type_id}`
855
- }
856
- ) : void 0,
857
- "data-testid": "product-type-row"
851
+ "data-testid": "product-categories-row"
858
852
  }
859
853
  ),
860
854
  /* @__PURE__ */ jsx6(
@@ -874,16 +868,30 @@ var ProductOrganizationSection = ({
874
868
  /* @__PURE__ */ jsx6(
875
869
  SectionRow,
876
870
  {
877
- title: t("fields.categories"),
878
- value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */ jsx6(
871
+ title: t("fields.tags"),
872
+ value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */ jsx6(
879
873
  OrganizationTag,
880
874
  {
881
- label: pcat.name,
882
- to: `/categories/${pcat.id}`
875
+ label: tag.value,
876
+ to: `/settings/product-tags/${tag.id}`
883
877
  },
884
- pcat.id
878
+ tag.id
885
879
  )) : void 0,
886
- "data-testid": "product-categories-row"
880
+ "data-testid": "product-tags-row"
881
+ }
882
+ ),
883
+ /* @__PURE__ */ jsx6(
884
+ SectionRow,
885
+ {
886
+ title: t("fields.type"),
887
+ value: product.type ? /* @__PURE__ */ jsx6(
888
+ OrganizationTag,
889
+ {
890
+ label: product.type.value,
891
+ to: `/settings/product-types/${product.type_id}`
892
+ }
893
+ ) : void 0,
894
+ "data-testid": "product-type-row"
887
895
  }
888
896
  )
889
897
  ]
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  _DataTable,
31
31
  useDataTable
32
- } from "./chunk-SJHBNENS.js";
32
+ } from "./chunk-HSL5IICN.js";
33
33
  import {
34
34
  ActionMenu
35
35
  } from "./chunk-BDGZ4EQO.js";
@@ -78,7 +78,7 @@ import {
78
78
  import {
79
79
  _DataTable,
80
80
  useDataTable
81
- } from "./chunk-SJHBNENS.js";
81
+ } from "./chunk-HSL5IICN.js";
82
82
  import {
83
83
  useDate
84
84
  } from "./chunk-UZWFZMOX.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  _DataTable,
3
3
  useDataTable
4
- } from "./chunk-SJHBNENS.js";
4
+ } from "./chunk-HSL5IICN.js";
5
5
  import {
6
6
  SingleColumnPage
7
7
  } from "./chunk-H6MYB7GB.js";
@@ -5,7 +5,7 @@ import {
5
5
  DataGrid,
6
6
  createDataGridHelper,
7
7
  createDataGridPriceColumns
8
- } from "./chunk-4OCWOY2F.js";
8
+ } from "./chunk-JXSXBSV6.js";
9
9
  import {
10
10
  Thumbnail
11
11
  } from "./chunk-WIYFXWRI.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-SJHBNENS.js";
10
+ } from "./chunk-HSL5IICN.js";
11
11
  import {
12
12
  NoRecords
13
13
  } from "./chunk-PAYQJPGK.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-SJHBNENS.js";
10
+ } from "./chunk-HSL5IICN.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-U2EI2ZLM.js";
7
7
  import {
8
8
  useOrderTableFilters
9
- } from "./chunk-C4N5EJAD.js";
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-SJHBNENS.js";
40
+ } from "./chunk-HSL5IICN.js";
41
41
  import {
42
42
  NoRecords
43
43
  } from "./chunk-PAYQJPGK.js";
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  _DataTable,
43
43
  useDataTable
44
- } from "./chunk-SJHBNENS.js";
44
+ } from "./chunk-HSL5IICN.js";
45
45
  import {
46
46
  useProductTypes
47
47
  } from "./chunk-EWFOFSF7.js";
@@ -4,7 +4,7 @@ import {
4
4
  ShippingOptionPriceProvider,
5
5
  buildShippingOptionPriceRules,
6
6
  useShippingOptionPriceColumns
7
- } from "./chunk-2MRYNLVT.js";
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-4OCWOY2F.js";
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-NXMD36QG.js";
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-SJHBNENS.js";
11
+ } from "./chunk-HSL5IICN.js";
12
12
  import {
13
13
  SingleColumnPage
14
14
  } from "./chunk-H6MYB7GB.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  _DataTable,
18
18
  useDataTable
19
- } from "./chunk-SJHBNENS.js";
19
+ } from "./chunk-HSL5IICN.js";
20
20
  import {
21
21
  SingleColumnPage
22
22
  } from "./chunk-H6MYB7GB.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-SJHBNENS.js";
13
+ } from "./chunk-HSL5IICN.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-SJHBNENS.js";
16
+ } from "./chunk-HSL5IICN.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-SJHBNENS.js";
10
+ } from "./chunk-HSL5IICN.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-C6AU3U22.js";
3
+ } from "./chunk-ZPEMWHUW.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  _DataTable,
25
25
  useDataTable
26
- } from "./chunk-SJHBNENS.js";
26
+ } from "./chunk-HSL5IICN.js";
27
27
  import {
28
28
  useDate
29
29
  } from "./chunk-UZWFZMOX.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  _DataTable,
16
16
  useDataTable
17
- } from "./chunk-SJHBNENS.js";
17
+ } from "./chunk-HSL5IICN.js";
18
18
  import {
19
19
  useCustomerGroups
20
20
  } from "./chunk-RGS5ZOY7.js";
@@ -9378,7 +9378,7 @@ var en_default = {
9378
9378
  attributeVariantsDescription: "Attributes used for variants",
9379
9379
  attributeProductInformation: "Product Information",
9380
9380
  attributeProductInformationDescription: "Attributes used for informational purposes",
9381
- attributeRequiredByMarketplace: "This attribute is required by the Marketplace",
9381
+ attributeRequiredByMarketplace: "This attribute is required by the marketplace.",
9382
9382
  attributeRequiredDeleteDisabledTooltip: "Required attributes cannot be removed.",
9383
9383
  addAttribute: "Add Attribute",
9384
9384
  deleteAttributeWarning: 'Are you sure you want to delete the attribute "{{title}}"? This action cannot be undone.',
@@ -10128,15 +10128,6 @@ var en_default = {
10128
10128
  claim: "Claim",
10129
10129
  exchange: "Exchange",
10130
10130
  return: "Return",
10131
- filters: {
10132
- request: {
10133
- label: "Request",
10134
- edit: "Edit",
10135
- return: "Return",
10136
- exchange: "Exchange",
10137
- claim: "Claim"
10138
- }
10139
- },
10140
10131
  actions: {
10141
10132
  cancelDisabledFulfilled: "Cannot cancel an order that has fulfilled items."
10142
10133
  },
@@ -10144,7 +10135,9 @@ var en_default = {
10144
10135
  orderCanceled: "Order canceled successfully",
10145
10136
  onDateFromSalesChannel: "{{date}} from {{salesChannel}}",
10146
10137
  list: {
10147
- 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"
10148
10141
  },
10149
10142
  status: {
10150
10143
  not_paid: "Not paid",
@@ -10586,14 +10579,14 @@ var en_default = {
10586
10579
  }
10587
10580
  },
10588
10581
  fields: {
10589
- displayId: "Display ID",
10582
+ displayId: "Order ID",
10590
10583
  refundableAmount: "Refundable amount",
10591
10584
  returnableQuantity: "Returnable quantity",
10592
10585
  groupId: "Group ID",
10593
- orderIds: "Order IDs",
10594
- vendor: "Vendor",
10595
- vendorsCount_one: "{{count}} vendor",
10596
- vendorsCount_other: "{{count}} vendors"
10586
+ orderIds: "Order ID",
10587
+ vendor: "Store",
10588
+ vendorsCount_one: "{{count}} store",
10589
+ vendorsCount_other: "{{count}} stores"
10597
10590
  }
10598
10591
  },
10599
10592
  payouts: {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  _DataTable,
6
6
  useDataTable
7
- } from "./chunk-SJHBNENS.js";
7
+ } from "./chunk-HSL5IICN.js";
8
8
  import {
9
9
  SingleColumnPage
10
10
  } from "./chunk-H6MYB7GB.js";