@mercurjs/vendor 2.2.0-canary.39 → 2.2.0-canary.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{[id]-XLUKGPLL.js → [id]-5OOWGWHL.js} +52 -17
- package/dist/{[id]-J5UPTFQM.js → [id]-5RQ7NFL7.js} +102 -27
- package/dist/{[id]-5P5LTATX.js → [id]-ARHFE7ID.js} +28 -10
- package/dist/{[id]-DVFWG6XZ.js → [id]-BGOV2BKI.js} +124 -30
- package/dist/{[id]-TGP6MMMJ.js → [id]-KUVSIFMW.js} +6 -6
- package/dist/{[id]-3PB4ZW3D.js → [id]-LFYUX6ON.js} +41 -19
- package/dist/{[id]-KSROQUIC.js → [id]-M6DVHCGK.js} +32 -15
- package/dist/{[id]-OG4D44M4.js → [id]-MFEOWOHY.js} +246 -156
- package/dist/{[id]-Q5C2MVHS.js → [id]-TF35KIFE.js} +123 -41
- package/dist/{[id]-O22LRQBI.js → [id]-WG6ZEK3I.js} +62 -25
- package/dist/{[id]-ESWNTTKU.js → [id]-YDR5VTPB.js} +6 -6
- package/dist/{[id]-ISKSMHND.js → [id]-ZV36X6E6.js} +52 -17
- package/dist/{add-C3MXH64T.js → add-PUXNN6CE.js} +15 -12
- package/dist/{add-JWIJVAMY.js → add-TCNRAUZF.js} +2 -2
- package/dist/{add-customer-groups-IPYD62GM.js → add-customer-groups-FB5T6PQN.js} +1 -1
- package/dist/{add-products-PEG6AWCO.js → add-products-DGJ6LFWC.js} +6 -6
- package/dist/{add-promotions-EGJYH3N6.js → add-promotions-TJDK7HLW.js} +4 -4
- package/dist/{areas-KGUPDMWG.js → areas-IYGBRCRH.js} +2 -2
- package/dist/{campaigns-BQBUZDPP.js → campaigns-OVHA6HH2.js} +2 -2
- package/dist/{categories-WKSXPHX6.js → categories-XVD4SWIS.js} +2 -2
- package/dist/{chunk-442JMKOJ.js → chunk-2K3RNFEC.js} +2 -2
- package/dist/{chunk-LRGMWXWW.js → chunk-3EF326ZJ.js} +16 -5
- package/dist/{chunk-6YE7WQLK.js → chunk-3F4MUPGR.js} +1 -1
- package/dist/{chunk-UFJQ7D4A.js → chunk-3N3K55NN.js} +34 -13
- package/dist/{chunk-XJSF7HIV.js → chunk-4TGDYJMA.js} +19 -8
- package/dist/{chunk-3ALBZK4M.js → chunk-4YM7N6OQ.js} +4 -1
- package/dist/{chunk-WADTVVSQ.js → chunk-5CHFC47S.js} +42 -11
- package/dist/{chunk-BAVE4NRL.js → chunk-7HLAOLG7.js} +1 -1
- package/dist/{chunk-X3ZH4SMS.js → chunk-BUQXFADV.js} +27 -6
- package/dist/{chunk-EGEC3BY2.js → chunk-CSZ6RV7N.js} +13 -6
- package/dist/{chunk-JAKAZ3ZY.js → chunk-D76WZZSB.js} +1 -1
- package/dist/{chunk-2UPEWY5I.js → chunk-E5BSLZR5.js} +10 -4
- package/dist/{chunk-FRYZRBLA.js → chunk-INYLPVCG.js} +2 -2
- package/dist/{chunk-MI7PXP7H.js → chunk-JY2XON7H.js} +1 -1
- package/dist/{chunk-2QEFRSKJ.js → chunk-KZQFIPY2.js} +37 -3
- package/dist/{chunk-CAE5333U.js → chunk-MAW6ZT3D.js} +1 -1
- package/dist/{chunk-H6LZ77GX.js → chunk-QGZH3D2P.js} +4 -1
- package/dist/{chunk-ZG6T4LG6.js → chunk-T7OX3EOG.js} +58 -29
- package/dist/{chunk-MUGQQY6P.js → chunk-TB3B7NEX.js} +48 -10
- package/dist/{chunk-EIEPLZ7H.js → chunk-TJKZ5QCJ.js} +1 -1
- package/dist/{chunk-BNR46M4J.js → chunk-TPGIMZLI.js} +1 -1
- package/dist/{chunk-KSVCLDMO.js → chunk-TRUC5GIG.js} +15 -4
- package/dist/{chunk-MGV65SKV.js → chunk-UEJJFJVX.js} +15 -5
- package/dist/{chunk-YMICE6QS.js → chunk-UWZVAW6K.js} +5 -3
- package/dist/{chunk-Q4W6OMSR.js → chunk-VD27SL7H.js} +1 -1
- package/dist/{chunk-NMPZRRHM.js → chunk-VMHLOWKL.js} +16 -6
- package/dist/{chunk-YZBEJ3CY.js → chunk-VYSB4CTB.js} +1500 -1370
- package/dist/{chunk-XRLRKSND.js → chunk-W3UHAQCV.js} +3 -2
- package/dist/{chunk-Q57UH7FE.js → chunk-WQQMCV7M.js} +1 -1
- package/dist/{chunk-IGVP55PK.js → chunk-WTYASKLY.js} +4 -4
- package/dist/{chunk-EAK75O26.js → chunk-Y4PM3IDZ.js} +1 -1
- package/dist/{chunk-2434FG47.js → chunk-YD43PVVT.js} +15 -4
- package/dist/{chunk-5KCDUBPF.js → chunk-ZOJP2DHA.js} +1 -1
- package/dist/{chunk-Y3WDFB7J.js → chunk-ZZUJHLFM.js} +1 -1
- package/dist/{collections-3N6NHNO3.js → collections-PRMRAQSQ.js} +5 -5
- package/dist/{create-2YMKREP2.js → create-2RGNAVVY.js} +1 -1
- package/dist/{create-RA6NUBNO.js → create-5S3GWAUX.js} +2 -2
- package/dist/{create-Q7PD6MKG.js → create-EAIGKLSC.js} +1 -1
- package/dist/{create-52MHLRAU.js → create-HEZYB7RF.js} +1 -1
- package/dist/{create-6JFEKPWB.js → create-KM5HXMYT.js} +7 -7
- package/dist/{create-XIZQBWH5.js → create-N534JQPH.js} +2 -2
- package/dist/{create-3NGK5I6L.js → create-NEK6JCKR.js} +1 -1
- package/dist/{create-FPIFC5TE.js → create-QU45XB4S.js} +12 -8
- package/dist/{create-QO72DNYF.js → create-QZDRRIB6.js} +5 -5
- package/dist/{create-OQX3EUET.js → create-RPBHXU32.js} +1 -1
- package/dist/{create-QMEQGDUS.js → create-VL7LDTVE.js} +1 -1
- package/dist/{customer-group-add-customers-3C2XPMSD.js → customer-group-add-customers-2C53NFBJ.js} +1 -1
- package/dist/{customer-group-detail-LUVO4MX6.js → customer-group-detail-3UR5AUY3.js} +2 -2
- package/dist/{customer-group-edit-N77RCW6I.js → customer-group-edit-WMGWG2OH.js} +40 -25
- package/dist/{customer-groups-FO6XVXFI.js → customer-groups-2T2HEYQ6.js} +25 -8
- package/dist/{customers-OQP7WC2G.js → customers-NVTX4FK2.js} +2 -2
- package/dist/{edit-ZNFDORB5.js → edit-4PMUQMTL.js} +2 -2
- package/dist/{edit-2BJHCU5E.js → edit-4PWAJ7A3.js} +1 -1
- package/dist/{edit-OZFW3BBS.js → edit-GE2UOMBI.js} +7 -7
- package/dist/{edit-UNN3QTEJ.js → edit-HK6HAYZW.js} +18 -5
- package/dist/{edit-T4IFCD3F.js → edit-IRH2IGXB.js} +3 -3
- package/dist/{edit-IJ6DCBUU.js → edit-JDYB3U7H.js} +21 -7
- package/dist/{edit-7SBPHN6P.js → edit-KEUVWNLU.js} +18 -5
- package/dist/{edit-WO4A636W.js → edit-NHQJLCAK.js} +1 -1
- package/dist/{edit-YCM5FRGL.js → edit-NR3WDBFF.js} +29 -13
- package/dist/{edit-XBOZLGI2.js → edit-TD7QFM4Z.js} +1 -1
- package/dist/{edit-TBT3QGGW.js → edit-WEUFBORT.js} +4 -5
- package/dist/{edit-ZJKNYVCO.js → edit-ZGAOUZYP.js} +4 -5
- package/dist/{edit-inventory-item-QMYWEBZ3.js → edit-inventory-item-UKBKVTYI.js} +18 -5
- package/dist/extension-targets.d.ts +206 -0
- package/dist/extension-targets.js +1 -0
- package/dist/{fulfillment-providers-XWFKXOUX.js → fulfillment-providers-SJRXA3EC.js} +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +155 -128
- package/dist/{inventory-ZGGENULY.js → inventory-MFA4C6TO.js} +2 -2
- package/dist/{invite-AXTW6P6L.js → invite-WTFQ6UV2.js} +3 -3
- package/dist/{login-YUWOWICV.js → login-2CQ6RYIE.js} +1 -1
- package/dist/{media-JVYMNE2Z.js → media-QIWRWMSV.js} +4 -4
- package/dist/{media-3ZLEAL6U.js → media-XFZNEQCY.js} +1 -1
- package/dist/{metadata-K6WS5S5Z.js → metadata-5Q6FLVX4.js} +1 -1
- package/dist/{metadata-NRYGXCD3.js → metadata-6OYHLPLA.js} +1 -1
- package/dist/{metadata-GTSYILV2.js → metadata-ADXGD4Y6.js} +1 -1
- package/dist/{metadata-O7TWMZNX.js → metadata-J447GEBP.js} +1 -1
- package/dist/{metadata-4LYZ5AJ2.js → metadata-VTQ2CGZX.js} +1 -1
- package/dist/{offer-create-page-PHG2PDUQ.js → offer-create-page-JP5Z2CAG.js} +18 -10
- package/dist/{offer-detail-page-RN4WECNF.js → offer-detail-page-FF7SJX7E.js} +70 -16
- package/dist/{offer-variant-detail-page-YQXETIWY.js → offer-variant-detail-page-KURNVWYU.js} +13 -5
- package/dist/{offers-4A6TNOBW.js → offers-XDLT2AEJ.js} +5 -5
- package/dist/{onboarding-TUGXFOA6.js → onboarding-BXFZZHIW.js} +31 -16
- package/dist/{orders-2RXDIAWC.js → orders-ML36IAEE.js} +4 -4
- package/dist/{organization-TBNIRH7N.js → organization-2BZGUGLM.js} +1 -1
- package/dist/pages/index.d.ts +81 -66
- package/dist/pages/index.js +31 -29
- package/dist/{payouts-TRFBXEDP.js → payouts-WFLYAMEU.js} +2 -2
- package/dist/{price-lists-2TEBUG7S.js → price-lists-PG33QKVZ.js} +2 -2
- package/dist/{product-tags-CSM2HUMF.js → product-tags-WBERDKIH.js} +7 -7
- package/dist/{product-types-CQ7OCF42.js → product-types-4PTJW5DE.js} +2 -2
- package/dist/{product-variant-edit-3CVSKGZ6.js → product-variant-edit-TUIVXPXO.js} +2 -2
- package/dist/{products-OE6AYPFI.js → products-CZMAHOE3.js} +6 -6
- package/dist/{products-I7XBRIVQ.js → products-ZFB35IHK.js} +15 -13
- package/dist/{promotions-CYAMHAJQ.js → promotions-APUOIWRR.js} +5 -5
- package/dist/{register-376SEOMZ.js → register-MQDAUF64.js} +2 -2
- package/dist/{reset-password-46WJA4HT.js → reset-password-SKUJJLSV.js} +1 -1
- package/dist/{return-reasons-2F2U6NEY.js → return-reasons-ZX7KIFTS.js} +5 -5
- package/dist/{settings-U7CM7PNQ.js → settings-AYPJWXFO.js} +9 -9
- package/dist/{shipping-profiles-HZFZ4HEU.js → shipping-profiles-4TJ4IH6U.js} +2 -2
- package/dist/{store-FQD3OYBF.js → store-FK643K5M.js} +52 -25
- package/dist/{store-select-S55SW3BP.js → store-select-IWYWXESC.js} +20 -2
- package/dist/{team-GHRVM6RK.js → team-DZHLNPCO.js} +3 -3
- package/package.json +23 -18
|
@@ -379,7 +379,7 @@ var RulesFormField = ({
|
|
|
379
379
|
{
|
|
380
380
|
ref,
|
|
381
381
|
className: "bg-ui-bg-base",
|
|
382
|
-
children: /* @__PURE__ */ jsx2(Select.Value, { placeholder: "
|
|
382
|
+
children: /* @__PURE__ */ jsx2(Select.Value, { placeholder: t("promotions.form.selectOperator") })
|
|
383
383
|
}
|
|
384
384
|
),
|
|
385
385
|
/* @__PURE__ */ jsx2(Select.Content, { children: options?.map((c) => /* @__PURE__ */ jsx2(Select.Item, { value: c.value, children: /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-subtle", children: c.label }) }, c.key)) })
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W3UHAQCV.js";
|
|
14
14
|
import {
|
|
15
15
|
SingleColumnPage
|
|
16
16
|
} from "./chunk-YV6MK4PZ.js";
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/pages/orders/order-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/orders/_components/order-list-table/order-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -46,7 +47,9 @@ var OrderListHeader = ({
|
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
// src/pages/orders/_components/order-list-table/order-list-data-table.tsx
|
|
50
|
+
import { useMemo } from "react";
|
|
49
51
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
52
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
50
53
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
51
54
|
var PAGE_SIZE = 10;
|
|
52
55
|
var OrderListDataTable = () => {
|
|
@@ -71,8 +74,16 @@ var OrderListDataTable = () => {
|
|
|
71
74
|
].join(","),
|
|
72
75
|
...searchParams
|
|
73
76
|
});
|
|
74
|
-
const
|
|
75
|
-
const
|
|
77
|
+
const baseColumns = useOrderTableColumns({});
|
|
78
|
+
const baseFilters = useOrderTableFilters();
|
|
79
|
+
const { columns, filters: extFilters } = useExtendableTable({
|
|
80
|
+
model: "order",
|
|
81
|
+
columns: baseColumns
|
|
82
|
+
});
|
|
83
|
+
const filters = useMemo(
|
|
84
|
+
() => [...baseFilters, ...extFilters],
|
|
85
|
+
[baseFilters, extFilters]
|
|
86
|
+
);
|
|
76
87
|
const { table } = useDataTable({
|
|
77
88
|
data: orders ?? [],
|
|
78
89
|
columns,
|
|
@@ -130,7 +141,7 @@ var OrderListTable = ({ children }) => {
|
|
|
130
141
|
// src/pages/orders/order-list-page.tsx
|
|
131
142
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
132
143
|
var Root = ({ children }) => {
|
|
133
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(OrderListTable, {}) });
|
|
144
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "orders.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(OrderListTable, {}) }) });
|
|
134
145
|
};
|
|
135
146
|
var OrderListPage = Object.assign(Root, {
|
|
136
147
|
Table: OrderListTable,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
_DataTable,
|
|
6
6
|
useDataTable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W3UHAQCV.js";
|
|
8
8
|
import {
|
|
9
9
|
SingleColumnPage
|
|
10
10
|
} from "./chunk-YV6MK4PZ.js";
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
|
|
25
25
|
// src/pages/inventory/inventory-list-page.tsx
|
|
26
26
|
import { Children as Children2 } from "react";
|
|
27
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
27
28
|
|
|
28
29
|
// src/pages/inventory/_components/inventory-list-table.tsx
|
|
29
30
|
import { Children } from "react";
|
|
@@ -51,7 +52,8 @@ var InventoryListCreateButton = () => {
|
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
// src/pages/inventory/_components/inventory-list-data-table.tsx
|
|
54
|
-
import {
|
|
55
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
56
|
+
import { useMemo as useMemo2, useState } from "react";
|
|
55
57
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
56
58
|
import { useNavigate } from "react-router-dom";
|
|
57
59
|
|
|
@@ -354,8 +356,16 @@ var InventoryListDataTable = () => {
|
|
|
354
356
|
placeholderData: keepPreviousData
|
|
355
357
|
}
|
|
356
358
|
);
|
|
357
|
-
const
|
|
358
|
-
const
|
|
359
|
+
const baseFilters = useInventoryTableFilters();
|
|
360
|
+
const baseColumns = useInventoryTableColumns();
|
|
361
|
+
const { columns, filters: extFilters } = useExtendableTable({
|
|
362
|
+
model: "inventory_item",
|
|
363
|
+
columns: baseColumns
|
|
364
|
+
});
|
|
365
|
+
const filters = useMemo2(
|
|
366
|
+
() => [...baseFilters, ...extFilters],
|
|
367
|
+
[baseFilters, extFilters]
|
|
368
|
+
);
|
|
359
369
|
const { table } = useDataTable({
|
|
360
370
|
data: inventory_items ?? [],
|
|
361
371
|
columns,
|
|
@@ -423,7 +433,7 @@ var InventoryListTable = ({ children }) => {
|
|
|
423
433
|
// src/pages/inventory/inventory-list-page.tsx
|
|
424
434
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
425
435
|
var Root = ({ children }) => {
|
|
426
|
-
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(InventoryListTable, {}) });
|
|
436
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "inventory.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(InventoryListTable, {}) }) });
|
|
427
437
|
};
|
|
428
438
|
var InventoryListPage = Object.assign(Root, {
|
|
429
439
|
Table: InventoryListTable,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
} from "./chunk-OVPAOBZB.js";
|
|
20
20
|
import {
|
|
21
21
|
UploadMediaFormItem
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZOJP2DHA.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
25
25
|
ProductCreateSchema,
|
|
26
26
|
generateVariantsFromAttributes,
|
|
27
27
|
normalizeProductFormValues
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2K3RNFEC.js";
|
|
29
29
|
import {
|
|
30
30
|
ChipInput
|
|
31
31
|
} from "./chunk-KDE4HKH2.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-3QSRE5LS.js";
|
|
55
55
|
import {
|
|
56
56
|
require_dist
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VYSB4CTB.js";
|
|
58
58
|
import {
|
|
59
59
|
ActionMenu
|
|
60
60
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -1748,6 +1748,8 @@ var ProductCreateForm = ({
|
|
|
1748
1748
|
return /* @__PURE__ */ jsx9(
|
|
1749
1749
|
TabbedForm,
|
|
1750
1750
|
{
|
|
1751
|
+
model: "product",
|
|
1752
|
+
zone: "create",
|
|
1751
1753
|
form,
|
|
1752
1754
|
onSubmit: handleSubmit,
|
|
1753
1755
|
isLoading: isPending,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W3UHAQCV.js";
|
|
14
14
|
import {
|
|
15
15
|
SingleColumnPage
|
|
16
16
|
} from "./chunk-YV6MK4PZ.js";
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/pages/customers/customer-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/customers/_components/customer-list-table/customer-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -51,6 +52,7 @@ var CustomerListHeader = ({
|
|
|
51
52
|
|
|
52
53
|
// src/pages/customers/_components/customer-list-table/customer-list-data-table.tsx
|
|
53
54
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
55
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
54
56
|
import { useMemo } from "react";
|
|
55
57
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
56
58
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
@@ -68,8 +70,12 @@ var CustomerListDataTable = () => {
|
|
|
68
70
|
placeholderData: keepPreviousData
|
|
69
71
|
}
|
|
70
72
|
);
|
|
71
|
-
const
|
|
72
|
-
const columns = useColumns();
|
|
73
|
+
const baseFilters = useCustomerTableFilters();
|
|
74
|
+
const { columns, filters: extFilters } = useColumns();
|
|
75
|
+
const filters = useMemo(
|
|
76
|
+
() => [...baseFilters, ...extFilters],
|
|
77
|
+
[baseFilters, extFilters]
|
|
78
|
+
);
|
|
73
79
|
const { table } = useDataTable({
|
|
74
80
|
data: customers ?? [],
|
|
75
81
|
columns,
|
|
@@ -121,8 +127,12 @@ var CustomerListDataTable = () => {
|
|
|
121
127
|
);
|
|
122
128
|
};
|
|
123
129
|
var useColumns = () => {
|
|
124
|
-
const
|
|
125
|
-
|
|
130
|
+
const base = useCustomerTableColumns();
|
|
131
|
+
const { columns, filters } = useExtendableTable({
|
|
132
|
+
model: "customer",
|
|
133
|
+
columns: base
|
|
134
|
+
});
|
|
135
|
+
return { columns: useMemo(() => [...columns], [columns]), filters };
|
|
126
136
|
};
|
|
127
137
|
|
|
128
138
|
// src/pages/customers/_components/customer-list-table/customer-list-table.tsx
|
|
@@ -140,7 +150,7 @@ var CustomerListTable = ({ children }) => {
|
|
|
140
150
|
// src/pages/customers/customer-list-page.tsx
|
|
141
151
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
142
152
|
var Root = ({ children }) => {
|
|
143
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CustomerListTable, {}) });
|
|
153
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "customers.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CustomerListTable, {}) }) });
|
|
144
154
|
};
|
|
145
155
|
var CustomerListPage = Object.assign(Root, {
|
|
146
156
|
Table: CustomerListTable,
|