@pisell/private-materials 3.4.156 → 3.4.157
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
- package/es/components/appointmentBooking/index.d.ts +1 -2
- package/es/components/booking/dashboard/index.d.ts +1 -1
- package/es/components/booking/deposit/index.d.ts +1 -3
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -3
- package/es/components/booking/info/index.d.ts +1 -2
- package/es/components/booking/materiels/contacts/index.d.ts +1 -2
- package/es/components/booking/materiels/duration/index.d.ts +1 -2
- package/es/components/booking/materiels/startTime/index.d.ts +1 -2
- package/es/components/ecocup/cupList/index.d.ts +1 -2
- package/es/components/ecocup/cupProject/index.d.ts +2 -2
- package/es/components/ecocup/customerList/index.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +1 -2
- package/es/components/eftposPay/index.d.ts +1 -2
- package/es/components/eventBooking/index.d.ts +1 -2
- package/es/components/kioskSkuDetail/index.d.ts +1 -1
- package/es/components/login/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/es/components/productExtension/index.d.ts +1 -2
- package/es/components/ruleSetting/index.d.ts +1 -2
- package/es/components/scanOrder/index.d.ts +2 -2
- package/es/components/shoppingCart/index.d.ts +1 -2
- package/es/components/subTotal/index.d.ts +1 -1
- package/es/components/taxSelect/index.d.ts +1 -2
- package/es/components/ticketBooking/index.d.ts +1 -2
- package/es/components/venueBooking/index.d.ts +2 -2
- package/es/components/walletList/index.d.ts +1 -2
- package/es/index.d.ts +5 -1
- package/es/index.js +4 -2
- package/es/plus/inventory/BindingModal.js +94 -0
- package/es/plus/inventory/InventoryItemManagement.d.ts +7 -0
- package/es/plus/inventory/InventoryItemManagement.js +204 -0
- package/es/plus/inventory/InventoryLocationManagement.d.ts +7 -0
- package/es/plus/inventory/InventoryLocationManagement.js +296 -0
- package/es/plus/inventory/InventoryUnitManagement.d.ts +7 -0
- package/es/plus/inventory/InventoryUnitManagement.js +144 -0
- package/es/plus/inventory/ItemDrawer.js +266 -0
- package/es/plus/inventory/RecordDialog.js +141 -0
- package/es/plus/inventory/StockList.js +132 -0
- package/es/plus/inventory/api.js +66 -0
- package/es/plus/inventory/components.js +172 -0
- package/es/plus/inventory/context.js +118 -0
- package/es/plus/inventory/forms.js +46 -0
- package/es/plus/inventory/hooks.js +235 -0
- package/es/plus/inventory/index.less +559 -0
- package/es/plus/inventory/locales.js +277 -0
- package/es/plus/inventory/types.d.ts +10 -0
- package/es/plus/inventory/utils.js +24 -0
- package/es/plus/orderList/index.d.ts +1 -1
- package/es/plus/panpacificTask/PanpacificTask.d.ts +2 -2
- package/es/plus/pisellAdyenDashboard/index.d.ts +1 -1
- package/es/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
- package/es/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
- package/es/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
- package/es/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
- package/es/plus/pisellSalesManagement/index.d.ts +1 -1
- package/es/plus/pisellTopology/PisellTopology.d.ts +2 -2
- package/es/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
- package/es/plus/saasCreateOrganization/index.d.ts +1 -2
- package/es/plus/saleDetail/index.d.ts +2 -2
- package/es/plus/skuOptionsSelection/store/createStore.js +2 -2
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/es/plus/walletPassGallery/index.d.ts +1 -2
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +1 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/es/pro/Selector/Item.d.ts +1 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
- package/lib/components/appointmentBooking/index.d.ts +2 -2
- package/lib/components/booking/dashboard/index.d.ts +1 -1
- package/lib/components/booking/deposit/index.d.ts +2 -3
- package/lib/components/booking/info/addServiceVariant/index.d.ts +2 -3
- package/lib/components/booking/info/index.d.ts +2 -2
- package/lib/components/booking/materiels/contacts/index.d.ts +2 -2
- package/lib/components/booking/materiels/duration/index.d.ts +2 -2
- package/lib/components/booking/materiels/resources/index.d.ts +1 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +2 -2
- package/lib/components/ecocup/cupList/index.d.ts +2 -2
- package/lib/components/ecocup/cupProject/index.d.ts +2 -2
- package/lib/components/ecocup/customerList/index.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +2 -2
- package/lib/components/eventBooking/index.d.ts +2 -2
- package/lib/components/kioskSkuDetail/index.d.ts +1 -1
- package/lib/components/login/index.d.ts +2 -2
- package/lib/components/pisellCashCounting/types.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +2 -2
- package/lib/components/productExtension/index.d.ts +2 -2
- package/lib/components/ruleSetting/index.d.ts +2 -2
- package/lib/components/scanOrder/index.d.ts +2 -2
- package/lib/components/shoppingCart/index.d.ts +2 -2
- package/lib/components/subTotal/index.d.ts +1 -1
- package/lib/components/taxSelect/index.d.ts +2 -2
- package/lib/components/ticketBooking/index.d.ts +2 -2
- package/lib/components/venueBooking/index.d.ts +2 -2
- package/lib/components/walletList/index.d.ts +2 -2
- package/lib/index.d.ts +5 -1
- package/lib/index.js +6 -0
- package/lib/plus/clinetSearch/index.d.ts +1 -1
- package/lib/plus/inventory/BindingModal.js +96 -0
- package/lib/plus/inventory/InventoryItemManagement.d.ts +7 -0
- package/lib/plus/inventory/InventoryItemManagement.js +206 -0
- package/lib/plus/inventory/InventoryLocationManagement.d.ts +7 -0
- package/lib/plus/inventory/InventoryLocationManagement.js +298 -0
- package/lib/plus/inventory/InventoryUnitManagement.d.ts +7 -0
- package/lib/plus/inventory/InventoryUnitManagement.js +146 -0
- package/lib/plus/inventory/ItemDrawer.js +268 -0
- package/lib/plus/inventory/RecordDialog.js +143 -0
- package/lib/plus/inventory/StockList.js +134 -0
- package/lib/plus/inventory/api.js +66 -0
- package/lib/plus/inventory/components.js +181 -0
- package/lib/plus/inventory/context.js +121 -0
- package/lib/plus/inventory/forms.js +50 -0
- package/lib/plus/inventory/hooks.js +240 -0
- package/lib/plus/inventory/index.less +559 -0
- package/lib/plus/inventory/locales.js +277 -0
- package/lib/plus/inventory/types.d.ts +10 -0
- package/lib/plus/inventory/utils.js +30 -0
- package/lib/plus/orderList/index.d.ts +1 -1
- package/lib/plus/panpacificTask/PanpacificTask.d.ts +2 -2
- package/lib/plus/pisellAdyenDashboard/index.d.ts +1 -1
- package/lib/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
- package/lib/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
- package/lib/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
- package/lib/plus/pisellSalesManagement/index.d.ts +1 -1
- package/lib/plus/pisellTopology/PisellTopology.d.ts +2 -2
- package/lib/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
- package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
- package/lib/plus/saleDetail/index.d.ts +2 -2
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -2
- package/lib/plus/walletPassGallery/index.d.ts +2 -2
- package/lib/pro/Selector/Item.d.ts +1 -1
- package/lowcode/inventory-item-management/meta.ts +20 -0
- package/lowcode/inventory-location-management/meta.ts +20 -0
- package/lowcode/inventory-unit-management/meta.ts +20 -0
- package/package.json +3 -3
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
- package/es/plus/pisellReservation/index.js +0 -17
- package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
- /package/es/{plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts → private-materials/lowcode/authmodal/meta.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/ecocup/cupList/index.d.ts
|
|
3
3
|
interface CupListProps {
|
|
4
4
|
data: any[];
|
|
5
5
|
}
|
|
6
|
-
declare const CupList: (props: CupListProps) =>
|
|
6
|
+
declare const CupList: (props: CupListProps) => JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CupList };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/ecocup/customerList/index.d.ts
|
|
3
3
|
interface CustomerListProps {
|
|
4
4
|
data: any[];
|
|
5
5
|
}
|
|
6
|
-
declare function CustomerList(props: CustomerListProps):
|
|
6
|
+
declare function CustomerList(props: CustomerListProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CustomerList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DeviceStatus, Eftpos } from "./const.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/eftpos/index.d.ts
|
|
4
4
|
interface PosProps {
|
|
5
5
|
/** 厂商类型 */
|
|
@@ -43,6 +43,6 @@ interface PosProps {
|
|
|
43
43
|
getPosComm: (...agrn: unknown[]) => any;
|
|
44
44
|
savePos: (...agrn: unknown[]) => any;
|
|
45
45
|
}
|
|
46
|
-
declare const _default: (props: PosProps) =>
|
|
46
|
+
declare const _default: (props: PosProps) => JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { _default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PosProps } from "./const.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/eftposPay/index.d.ts
|
|
4
|
-
declare const _default: (props: PosProps) =>
|
|
4
|
+
declare const _default: (props: PosProps) => JSX.Element | null;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default };
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
* - 中间区域用 SKUOptionsSelection 做 SKU 选择
|
|
8
8
|
* - 底部用 PisellNumberSelector 做数量编辑
|
|
9
9
|
*/
|
|
10
|
-
declare function KioskSkuDetail(props: KioskSkuDetailProps):
|
|
10
|
+
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* @description 从原生回调 payload 中提取 productId
|
|
13
13
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/login/index.d.ts
|
|
3
3
|
interface LoginProps {
|
|
4
4
|
title: string;
|
|
5
5
|
style: any;
|
|
6
6
|
onLogin: (values: any, callback: (status: any) => void) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const Login: (props: LoginProps) =>
|
|
8
|
+
declare const Login: (props: LoginProps) => JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Login, LoginProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CustomerCardProps } from "./CustomerCard/index.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
import { PopoverProps } from "antd";
|
|
4
4
|
//#region src/components/pisellSelectCustomerModal/index.d.ts
|
|
5
5
|
type CustomerDetail = any;
|
|
@@ -12,6 +12,6 @@ interface PisellSelectCustomerModalProps {
|
|
|
12
12
|
keyboardProps?: any;
|
|
13
13
|
virtualKeyInputProps?: any;
|
|
14
14
|
}
|
|
15
|
-
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) =>
|
|
15
|
+
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { PisellSelectCustomerModal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/productExtension/index.d.ts
|
|
3
3
|
interface ProductExtensionProps {
|
|
4
4
|
onDataChange: any;
|
|
@@ -7,6 +7,6 @@ interface ProductExtensionProps {
|
|
|
7
7
|
declare const ProductExtension: ({
|
|
8
8
|
onDataChange,
|
|
9
9
|
type
|
|
10
|
-
}: ProductExtensionProps) =>
|
|
10
|
+
}: ProductExtensionProps) => JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProductExtension };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/ruleSetting/index.d.ts
|
|
3
3
|
interface RuleSettingProps {
|
|
4
4
|
value: any;
|
|
@@ -6,6 +6,6 @@ interface RuleSettingProps {
|
|
|
6
6
|
className: string;
|
|
7
7
|
style: any;
|
|
8
8
|
}
|
|
9
|
-
declare const RuleSetting: (props: RuleSettingProps) =>
|
|
9
|
+
declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { RuleSetting };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ScanOrderProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/scanOrder/index.d.ts
|
|
4
|
-
declare function ScanOrder(props: ScanOrderProps):
|
|
4
|
+
declare function ScanOrder(props: ScanOrderProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ScanOrder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { shoppingCartProps } from "./type.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/shoppingCart/index.d.ts
|
|
5
5
|
declare const shoppingCart: ({
|
|
@@ -9,6 +9,6 @@ declare const shoppingCart: ({
|
|
|
9
9
|
onAddProduct,
|
|
10
10
|
onActiveKey,
|
|
11
11
|
...props
|
|
12
|
-
}: shoppingCartProps) =>
|
|
12
|
+
}: shoppingCartProps) => JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { shoppingCart };
|
|
@@ -20,6 +20,6 @@ interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
describe?: string;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
}
|
|
23
|
-
declare const SubTotal: (props: SubTotalProps) =>
|
|
23
|
+
declare const SubTotal: (props: SubTotalProps) => JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { SubTotal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SelectProps } from "antd";
|
|
3
3
|
//#region src/components/taxSelect/index.d.ts
|
|
4
4
|
interface TaxSelectProps {
|
|
@@ -8,6 +8,6 @@ interface TaxSelectProps {
|
|
|
8
8
|
tax_title?: string;
|
|
9
9
|
onChange: (value: string) => void;
|
|
10
10
|
}
|
|
11
|
-
declare const TaxSelect: (props: TaxSelectProps) =>
|
|
11
|
+
declare const TaxSelect: (props: TaxSelectProps) => JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { TaxSelect };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/ticketBooking/index.d.ts
|
|
3
3
|
interface TicketBookingProps {
|
|
4
4
|
productExtensionType: string[];
|
|
5
5
|
bookingConfigParams: Record<string, any>;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: (props: TicketBookingProps) =>
|
|
7
|
+
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { _default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { VenueBookingProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/venueBooking/index.d.ts
|
|
5
5
|
/** 场地预订主组件 */
|
|
6
|
-
declare function VenueBooking(props: VenueBookingProps):
|
|
6
|
+
declare function VenueBooking(props: VenueBookingProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { VenueBooking };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/walletList/index.d.ts
|
|
3
|
-
declare const WalletList: (props: any) =>
|
|
3
|
+
declare const WalletList: (props: any) => JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { WalletList };
|
package/lib/index.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ import { Registry } from "./components/systemSettings/registry/index.js";
|
|
|
84
84
|
import { SaasRole } from "./plus/saasRole/index.js";
|
|
85
85
|
import { SaasTeamMembersProps } from "./plus/saasTeamMembers/type.js";
|
|
86
86
|
import { SaasTeamMembers } from "./plus/saasTeamMembers/index.js";
|
|
87
|
+
import { InventoryPageProps } from "./plus/inventory/types.js";
|
|
88
|
+
import { InventoryItemManagement } from "./plus/inventory/InventoryItemManagement.js";
|
|
89
|
+
import { InventoryUnitManagement } from "./plus/inventory/InventoryUnitManagement.js";
|
|
90
|
+
import { InventoryLocationManagement } from "./plus/inventory/InventoryLocationManagement.js";
|
|
87
91
|
import { SaasDeviceProfileProps } from "./plus/saasDevice/deviceProfile/types.js";
|
|
88
92
|
import { SaasDeviceProfile } from "./plus/saasDevice/deviceProfile/index.js";
|
|
89
93
|
import { SaasDevicePlanningProps } from "./plus/saasDevice/devicePlanning/model/types.js";
|
|
@@ -122,4 +126,4 @@ import { PisellProResourcePickerModal } from "./plus/pisellProResourcePickerModa
|
|
|
122
126
|
import { PisellFloorMapPaletteViewAllModal } from "./plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.js";
|
|
123
127
|
import { PisellCashCounting } from "./components/pisellCashCounting/PisellCashCounting.js";
|
|
124
128
|
import { _default as _default$5 } from "./plus/pisellAdyenDashboard/index.js";
|
|
125
|
-
export { AppointmentBooking, Deposit as AppointmentDeposit, AuthModal, Booking, Addons as BookingAddons, Contacts as BookingContacts, BookingDashboard, Deposit$1 as BookingDeposit, Duration as BookingDuration, Forms as BookingForms, APP as BookingInfo, Notes as BookingNotes, Payments as BookingPayment, Resources as BookingResources, StartTime as BookingStartTime, ChannelAuthSetting, ClientCard, ClientSearch, ComprehensiveSearch, ContactInfo, ContactInfoModal, CustomerAuth, CustomerOAuthConfig, type CustomerOAuthConfigProps, DeviceAuth, type DeviceAuthProps, CupList as EcoCupList, EcoCupProject, CustomerList as EcoCustomerList, _default as EditBookingModal, _default$1 as Eftpos, _default$2 as EftposPay, EventBooking, BookingAvailabilityCalendar as EventBookingAvailabilityCalendar, BookingDetailModal as EventBookingDetailModal, BookingServiceList as EventBookingServiceList, EventCard, PisellProductCard as EventProductCard, ProgressBar as EventProgressBar, PisellResourceCard as EventResourceDisplay, EventResourceUsability, EventScheduleCalendar, PisellSelectHolder as EventSelectHolder, TimeResourceSelector as EventTimeResourceSelector, type FloorMapBookingClickArgs, type FloorMapBookingClickMode, HolderList, KioskSkuDetail, Login, Login2, type LoginProps, OAuthConfig, Onlineshopauth as OnlineShopAuth, OrderList, OrgAdminAuth, type OrgAdminAuthProps, PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY, PISELL_RESERVATION_VENUE_WALL_PAGE_STORAGE_KEY, POSOperatorAuth, type POSOperatorAuthProps, PanpacificTask, type PanpacificTaskProps, PiPaymentResult, _default$3 as PinModal, _default$4 as PinVerifyModal, _default$5 as PisellAdyenDashboard, PisellCashCounting, PisellFloorMapPaletteViewAllModal, PisellProResourcePickerModal, type PisellProResourcePickerModalProps, type PisellProResourcePickerMode, PisellReservation, PisellReservationBookingPage, PisellReservationCore, type PisellReservationProps, PisellReservationTablePage, type PisellReservationTableRow, PisellSalesGrid, PisellSelectCustomerModal, PisellTopology, PisellTopologyCore, type PisellTopologyProps, PisellVenueControlPage, PisellVenueWallPage, PisellNumberSelector as ProNumberSelector, ProductExtension, _default$6 as ProductStockCheckModal, Register2, type ResourceSelectModeConfig, RuleSetting, SKUOptionsSelection, SaaSAdminAuth, type SaaSAdminAuthProps, SaaSManagermentAuth, SaasAttendance, SaasCreateOrganization, SaasDevicePasscodes, type SaasDevicePasscodesProps, SaasDevicePlanning, type SaasDevicePlanningProps, SaasDeviceProfile, type SaasDeviceProfileProps, SaasLogin, _default$7 as SaasRegister, SaasRole, SaasTeamMembers, type SaasTeamMembersProps, SaleDetail, ScanOrder, type ScanOrderProps, Schedules, SelectFloorMapResourceDialog, type SelectFloorMapResourcePayload, PisellSelectHolder$1 as SelectHolder, Selector, Registry as SettingsRegistry, shoppingCart as ShoppingCart, StepController, SubTotal, TaxSelect, _default$8 as TicketBooking, _default$9 as ToCPay, type TopologyDeviceRow, VenueBooking, AddServiceVariant as VerticalAddService, VerticalClient, WalletEditor, WalletList, PassDetail as WalletPassDetail, WalletPassGallery, WorkspacesList as WorkspaceList, WorkSpaceListDetail as WorkspaceListDetail, PisellReservationBookingPage as default, defaultReservationTableRows, getDefaultReservationFloorMapConfig, PisellSalesManagement as pisellSalesManagement };
|
|
129
|
+
export { AppointmentBooking, Deposit as AppointmentDeposit, AuthModal, Booking, Addons as BookingAddons, Contacts as BookingContacts, BookingDashboard, Deposit$1 as BookingDeposit, Duration as BookingDuration, Forms as BookingForms, APP as BookingInfo, Notes as BookingNotes, Payments as BookingPayment, Resources as BookingResources, StartTime as BookingStartTime, ChannelAuthSetting, ClientCard, ClientSearch, ComprehensiveSearch, ContactInfo, ContactInfoModal, CustomerAuth, CustomerOAuthConfig, type CustomerOAuthConfigProps, DeviceAuth, type DeviceAuthProps, CupList as EcoCupList, EcoCupProject, CustomerList as EcoCustomerList, _default as EditBookingModal, _default$1 as Eftpos, _default$2 as EftposPay, EventBooking, BookingAvailabilityCalendar as EventBookingAvailabilityCalendar, BookingDetailModal as EventBookingDetailModal, BookingServiceList as EventBookingServiceList, EventCard, PisellProductCard as EventProductCard, ProgressBar as EventProgressBar, PisellResourceCard as EventResourceDisplay, EventResourceUsability, EventScheduleCalendar, PisellSelectHolder as EventSelectHolder, TimeResourceSelector as EventTimeResourceSelector, type FloorMapBookingClickArgs, type FloorMapBookingClickMode, HolderList, InventoryItemManagement, type InventoryPageProps as InventoryItemManagementProps, InventoryLocationManagement, type InventoryPageProps as InventoryLocationManagementProps, type InventoryPageProps, InventoryUnitManagement, type InventoryPageProps as InventoryUnitManagementProps, KioskSkuDetail, Login, Login2, type LoginProps, OAuthConfig, Onlineshopauth as OnlineShopAuth, OrderList, OrgAdminAuth, type OrgAdminAuthProps, PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY, PISELL_RESERVATION_VENUE_WALL_PAGE_STORAGE_KEY, POSOperatorAuth, type POSOperatorAuthProps, PanpacificTask, type PanpacificTaskProps, PiPaymentResult, _default$3 as PinModal, _default$4 as PinVerifyModal, _default$5 as PisellAdyenDashboard, PisellCashCounting, PisellFloorMapPaletteViewAllModal, PisellProResourcePickerModal, type PisellProResourcePickerModalProps, type PisellProResourcePickerMode, PisellReservation, PisellReservationBookingPage, PisellReservationCore, type PisellReservationProps, PisellReservationTablePage, type PisellReservationTableRow, PisellSalesGrid, PisellSelectCustomerModal, PisellTopology, PisellTopologyCore, type PisellTopologyProps, PisellVenueControlPage, PisellVenueWallPage, PisellNumberSelector as ProNumberSelector, ProductExtension, _default$6 as ProductStockCheckModal, Register2, type ResourceSelectModeConfig, RuleSetting, SKUOptionsSelection, SaaSAdminAuth, type SaaSAdminAuthProps, SaaSManagermentAuth, SaasAttendance, SaasCreateOrganization, SaasDevicePasscodes, type SaasDevicePasscodesProps, SaasDevicePlanning, type SaasDevicePlanningProps, SaasDeviceProfile, type SaasDeviceProfileProps, SaasLogin, _default$7 as SaasRegister, SaasRole, SaasTeamMembers, type SaasTeamMembersProps, SaleDetail, ScanOrder, type ScanOrderProps, Schedules, SelectFloorMapResourceDialog, type SelectFloorMapResourcePayload, PisellSelectHolder$1 as SelectHolder, Selector, Registry as SettingsRegistry, shoppingCart as ShoppingCart, StepController, SubTotal, TaxSelect, _default$8 as TicketBooking, _default$9 as ToCPay, type TopologyDeviceRow, VenueBooking, AddServiceVariant as VerticalAddService, VerticalClient, WalletEditor, WalletList, PassDetail as WalletPassDetail, WalletPassGallery, WorkspacesList as WorkspaceList, WorkSpaceListDetail as WorkspaceListDetail, PisellReservationBookingPage as default, defaultReservationTableRows, getDefaultReservationFloorMapConfig, PisellSalesManagement as pisellSalesManagement };
|
package/lib/index.js
CHANGED
|
@@ -83,6 +83,9 @@ const require_index$72 = require("./plus/selectHolder/components/HolderList/inde
|
|
|
83
83
|
const require_index$73 = require("./plus/selectHolder/index.js");
|
|
84
84
|
const require_index$74 = require("./plus/saasRole/index.js");
|
|
85
85
|
const require_index$75 = require("./plus/saasTeamMembers/index.js");
|
|
86
|
+
const require_InventoryItemManagement = require("./plus/inventory/InventoryItemManagement.js");
|
|
87
|
+
const require_InventoryUnitManagement = require("./plus/inventory/InventoryUnitManagement.js");
|
|
88
|
+
const require_InventoryLocationManagement = require("./plus/inventory/InventoryLocationManagement.js");
|
|
86
89
|
const require_index$76 = require("./plus/saasDevice/deviceProfile/index.js");
|
|
87
90
|
const require_index$77 = require("./plus/saasDevice/devicePlanning/index.js");
|
|
88
91
|
const require_index$78 = require("./plus/saasDevice/devicePasscodes/index.js");
|
|
@@ -165,6 +168,9 @@ exports.EventScheduleCalendar = require_index$53;
|
|
|
165
168
|
exports.EventSelectHolder = require_index$32;
|
|
166
169
|
exports.EventTimeResourceSelector = require_index$57;
|
|
167
170
|
exports.HolderList = require_index$72;
|
|
171
|
+
exports.InventoryItemManagement = require_InventoryItemManagement;
|
|
172
|
+
exports.InventoryLocationManagement = require_InventoryLocationManagement;
|
|
173
|
+
exports.InventoryUnitManagement = require_InventoryUnitManagement;
|
|
168
174
|
exports.KioskSkuDetail = require_index$81;
|
|
169
175
|
exports.Login = require_index;
|
|
170
176
|
exports.Login2 = require_Login2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComprehensiveSearchProps } from "../../pro/comprehensiveSearch/types.js";
|
|
2
2
|
import { ClientData } from "./types.js";
|
|
3
|
-
import React from "react";
|
|
4
3
|
import { TableProps } from "antd";
|
|
4
|
+
import React from "react";
|
|
5
5
|
//#region src/plus/clinetSearch/index.d.ts
|
|
6
6
|
interface ClientSearchProps extends Omit<ComprehensiveSearchProps, 'resultDisplay' | 'onRowClick'> {
|
|
7
7
|
onRowClick?: (record: ClientData, index: number) => void;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_asyncToGenerator = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
|
|
3
|
+
const require_context = require("./context.js");
|
|
4
|
+
const require_hooks = require("./hooks.js");
|
|
5
|
+
const require_components = require("./components.js");
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_runtime.__toESM(react);
|
|
8
|
+
let antd = require("antd");
|
|
9
|
+
let _pisell_materials = require("@pisell/materials");
|
|
10
|
+
//#region src/plus/inventory/BindingModal.tsx
|
|
11
|
+
function BindingModal({ itemId, onClose, onBound }) {
|
|
12
|
+
const { api, t, success } = require_context.useInventory();
|
|
13
|
+
const [form] = antd.Form.useForm();
|
|
14
|
+
const locationId = antd.Form.useWatch("location_id", form);
|
|
15
|
+
const shelfId = antd.Form.useWatch("shelf_id", form);
|
|
16
|
+
const mutation = require_hooks.useInventoryMutation();
|
|
17
|
+
const submit = () => mutation.run(require_asyncToGenerator._asyncToGenerator(function* () {
|
|
18
|
+
let values;
|
|
19
|
+
try {
|
|
20
|
+
values = yield form.validateFields();
|
|
21
|
+
} catch (_unused) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
yield api.bind(itemId, values.space_id);
|
|
25
|
+
success("bound");
|
|
26
|
+
onBound();
|
|
27
|
+
}));
|
|
28
|
+
return /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellModal, {
|
|
29
|
+
open: true,
|
|
30
|
+
title: t("bind"),
|
|
31
|
+
size: "middle",
|
|
32
|
+
okText: t("bind"),
|
|
33
|
+
cancelText: t("cancel"),
|
|
34
|
+
confirmLoading: mutation.busy,
|
|
35
|
+
closable: !mutation.busy,
|
|
36
|
+
maskClosable: !mutation.busy,
|
|
37
|
+
cancelButtonProps: { disabled: mutation.busy },
|
|
38
|
+
onCancel: () => {
|
|
39
|
+
if (!mutation.busy) onClose();
|
|
40
|
+
},
|
|
41
|
+
onOk: () => void submit()
|
|
42
|
+
}, /* @__PURE__ */ react.default.createElement("div", { className: "inventory-modal-body" }, /* @__PURE__ */ react.default.createElement(antd.Alert, {
|
|
43
|
+
className: "inventory-notice",
|
|
44
|
+
type: "info",
|
|
45
|
+
showIcon: true,
|
|
46
|
+
message: t("bindHint")
|
|
47
|
+
}), /* @__PURE__ */ react.default.createElement(antd.Form, {
|
|
48
|
+
form,
|
|
49
|
+
layout: "vertical",
|
|
50
|
+
disabled: mutation.busy
|
|
51
|
+
}, /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
|
|
52
|
+
name: "location_id",
|
|
53
|
+
label: t("location"),
|
|
54
|
+
rules: [{
|
|
55
|
+
required: true,
|
|
56
|
+
message: t("required")
|
|
57
|
+
}]
|
|
58
|
+
}, /* @__PURE__ */ react.default.createElement(require_components.PagedInventorySelect, {
|
|
59
|
+
resource: "location",
|
|
60
|
+
placeholder: t("chooseLocation"),
|
|
61
|
+
disabled: mutation.busy,
|
|
62
|
+
onChange: () => form.setFieldsValue({
|
|
63
|
+
shelf_id: void 0,
|
|
64
|
+
space_id: void 0
|
|
65
|
+
})
|
|
66
|
+
})), /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
|
|
67
|
+
name: "shelf_id",
|
|
68
|
+
label: t("shelf"),
|
|
69
|
+
rules: [{
|
|
70
|
+
required: true,
|
|
71
|
+
message: t("required")
|
|
72
|
+
}]
|
|
73
|
+
}, /* @__PURE__ */ react.default.createElement(require_components.PagedInventorySelect, {
|
|
74
|
+
key: `shelf-${locationId}`,
|
|
75
|
+
resource: "shelf",
|
|
76
|
+
placeholder: t("chooseShelf"),
|
|
77
|
+
disabled: !locationId || mutation.busy,
|
|
78
|
+
filters: { location_id: locationId },
|
|
79
|
+
onChange: () => form.setFieldValue("space_id", void 0)
|
|
80
|
+
})), /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
|
|
81
|
+
name: "space_id",
|
|
82
|
+
label: t("space"),
|
|
83
|
+
rules: [{
|
|
84
|
+
required: true,
|
|
85
|
+
message: t("required")
|
|
86
|
+
}]
|
|
87
|
+
}, /* @__PURE__ */ react.default.createElement(require_components.PagedInventorySelect, {
|
|
88
|
+
key: `space-${shelfId}`,
|
|
89
|
+
resource: "space",
|
|
90
|
+
placeholder: t("chooseSpace"),
|
|
91
|
+
disabled: !shelfId || mutation.busy,
|
|
92
|
+
filters: { shelf_id: shelfId }
|
|
93
|
+
})))));
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
exports.default = BindingModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InventoryPageProps } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/plus/inventory/InventoryItemManagement.d.ts
|
|
5
|
+
declare function InventoryItemManagement(props: InventoryPageProps): JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { InventoryItemManagement };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
|
|
3
|
+
const require_asyncToGenerator = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
|
|
4
|
+
const require_utils = require("./utils.js");
|
|
5
|
+
const require_context = require("./context.js");
|
|
6
|
+
const require_hooks = require("./hooks.js");
|
|
7
|
+
const require_components = require("./components.js");
|
|
8
|
+
const require_ItemDrawer = require("./ItemDrawer.js");
|
|
9
|
+
let react = require("react");
|
|
10
|
+
react = require_runtime.__toESM(react);
|
|
11
|
+
let antd = require("antd");
|
|
12
|
+
let ahooks = require("ahooks");
|
|
13
|
+
let _ant_design_icons = require("@ant-design/icons");
|
|
14
|
+
//#region src/plus/inventory/InventoryItemManagement.tsx
|
|
15
|
+
function ItemPage({ className, style }) {
|
|
16
|
+
const { api, t, name, confirm, success } = require_context.useInventory();
|
|
17
|
+
const [search, setSearch] = (0, react.useState)("");
|
|
18
|
+
const keyword = (0, ahooks.useDebounce)(search, { wait: 300 });
|
|
19
|
+
const [status, setStatus] = (0, react.useState)();
|
|
20
|
+
const [unit, setUnit] = (0, react.useState)();
|
|
21
|
+
const [stockMode, setStockMode] = (0, react.useState)();
|
|
22
|
+
const [target, setTarget] = (0, react.useState)();
|
|
23
|
+
const mutation = require_hooks.useInventoryMutation();
|
|
24
|
+
const units = require_hooks.useInventoryQuery(() => api.units(), "item-filter-units");
|
|
25
|
+
const list = require_hooks.useInventoryList("item", {
|
|
26
|
+
search: keyword || void 0,
|
|
27
|
+
status,
|
|
28
|
+
unit_id: unit,
|
|
29
|
+
stock_mode: stockMode,
|
|
30
|
+
with: ["unit"]
|
|
31
|
+
});
|
|
32
|
+
const remove = (record) => void mutation.run(require_asyncToGenerator._asyncToGenerator(function* () {
|
|
33
|
+
if (!(yield confirm("deleteTitle", /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, name(record), /* @__PURE__ */ react.default.createElement("p", null, t("deleteHint")))))) return;
|
|
34
|
+
try {
|
|
35
|
+
yield api.remove("item", record.id);
|
|
36
|
+
success("deleted");
|
|
37
|
+
} finally {
|
|
38
|
+
list.reload();
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
const columns = (0, react.useMemo)(() => [
|
|
42
|
+
{
|
|
43
|
+
title: t("item"),
|
|
44
|
+
key: "name",
|
|
45
|
+
dataIndex: "name",
|
|
46
|
+
width: 250,
|
|
47
|
+
render: (_, record) => /* @__PURE__ */ react.default.createElement("button", {
|
|
48
|
+
type: "button",
|
|
49
|
+
className: "inventory-item-link",
|
|
50
|
+
onClick: () => setTarget({
|
|
51
|
+
id: record.id,
|
|
52
|
+
mode: "view"
|
|
53
|
+
})
|
|
54
|
+
}, record.cover && /* @__PURE__ */ react.default.createElement("img", {
|
|
55
|
+
className: "inventory-cover inventory-cover-small",
|
|
56
|
+
src: record.cover,
|
|
57
|
+
alt: ""
|
|
58
|
+
}), /* @__PURE__ */ react.default.createElement("span", null, name(record)))
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: t("sku"),
|
|
62
|
+
key: "sku",
|
|
63
|
+
dataIndex: "sku",
|
|
64
|
+
render: (value) => value || "—"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: t("barcode"),
|
|
68
|
+
key: "barcode",
|
|
69
|
+
dataIndex: "barcode",
|
|
70
|
+
render: (value) => value || "—"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
title: t("unit"),
|
|
74
|
+
key: "unit",
|
|
75
|
+
dataIndex: "unit",
|
|
76
|
+
render: (_, record) => record.unit ? name(record.unit) : "—"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: t("stockMode"),
|
|
80
|
+
key: "stock_mode",
|
|
81
|
+
dataIndex: "stock_mode",
|
|
82
|
+
render: (value) => t(value)
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: t("quantity"),
|
|
86
|
+
key: "stock_quantity",
|
|
87
|
+
dataIndex: "stock_quantity",
|
|
88
|
+
align: "right",
|
|
89
|
+
render: require_utils.inventoryQuantity
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title: t("available"),
|
|
93
|
+
key: "stock_available_quantity",
|
|
94
|
+
dataIndex: "stock_available_quantity",
|
|
95
|
+
align: "right",
|
|
96
|
+
render: require_utils.inventoryQuantity
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
title: t("status"),
|
|
100
|
+
key: "status",
|
|
101
|
+
dataIndex: "status",
|
|
102
|
+
render: (value) => /* @__PURE__ */ react.default.createElement(require_components.StatusTag, { status: value })
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: t("actions"),
|
|
106
|
+
key: "actions",
|
|
107
|
+
dataIndex: "actions",
|
|
108
|
+
fixed: "right",
|
|
109
|
+
width: 210,
|
|
110
|
+
render: (_, record) => /* @__PURE__ */ react.default.createElement(antd.Space, { size: 0 }, /* @__PURE__ */ react.default.createElement(antd.Button, {
|
|
111
|
+
type: "link",
|
|
112
|
+
disabled: mutation.busy,
|
|
113
|
+
onClick: () => setTarget({
|
|
114
|
+
id: record.id,
|
|
115
|
+
mode: "view"
|
|
116
|
+
})
|
|
117
|
+
}, t("view")), /* @__PURE__ */ react.default.createElement(antd.Button, {
|
|
118
|
+
type: "link",
|
|
119
|
+
disabled: mutation.busy,
|
|
120
|
+
onClick: () => setTarget({
|
|
121
|
+
id: record.id,
|
|
122
|
+
mode: "edit"
|
|
123
|
+
})
|
|
124
|
+
}, t("edit")), /* @__PURE__ */ react.default.createElement(antd.Button, {
|
|
125
|
+
type: "link",
|
|
126
|
+
danger: true,
|
|
127
|
+
disabled: mutation.busy,
|
|
128
|
+
onClick: () => remove(record)
|
|
129
|
+
}, t("remove")))
|
|
130
|
+
}
|
|
131
|
+
], [
|
|
132
|
+
t,
|
|
133
|
+
name,
|
|
134
|
+
mutation.busy,
|
|
135
|
+
confirm,
|
|
136
|
+
api
|
|
137
|
+
]);
|
|
138
|
+
return /* @__PURE__ */ react.default.createElement("div", {
|
|
139
|
+
className: `inventory-page ${className || ""}`,
|
|
140
|
+
style
|
|
141
|
+
}, /* @__PURE__ */ react.default.createElement(require_components.InventoryHeader, {
|
|
142
|
+
title: t("items"),
|
|
143
|
+
description: t("itemHint")
|
|
144
|
+
}, /* @__PURE__ */ react.default.createElement(antd.Button, {
|
|
145
|
+
type: "primary",
|
|
146
|
+
icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.PlusOutlined, null),
|
|
147
|
+
disabled: mutation.busy,
|
|
148
|
+
onClick: () => setTarget({ mode: "create" })
|
|
149
|
+
}, t("add"), " ", t("item"))), /* @__PURE__ */ react.default.createElement("div", { className: "inventory-toolbar" }, /* @__PURE__ */ react.default.createElement(antd.Tooltip, { title: t("searchHint") }, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement(require_components.SearchInput, {
|
|
150
|
+
items: true,
|
|
151
|
+
value: search,
|
|
152
|
+
onChange: setSearch
|
|
153
|
+
}))), /* @__PURE__ */ react.default.createElement(antd.Select, {
|
|
154
|
+
className: "inventory-filter",
|
|
155
|
+
showSearch: true,
|
|
156
|
+
allowClear: true,
|
|
157
|
+
optionFilterProp: "label",
|
|
158
|
+
placeholder: t("allUnits"),
|
|
159
|
+
loading: units.loading,
|
|
160
|
+
value: unit,
|
|
161
|
+
onChange: setUnit,
|
|
162
|
+
options: (units.data || []).map((record) => ({
|
|
163
|
+
value: record.id,
|
|
164
|
+
label: `${name(record)}${record.status === "inactive" ? ` (${t("inactive")})` : ""}`
|
|
165
|
+
}))
|
|
166
|
+
}), /* @__PURE__ */ react.default.createElement(antd.Select, {
|
|
167
|
+
className: "inventory-filter",
|
|
168
|
+
allowClear: true,
|
|
169
|
+
placeholder: t("allStockModes"),
|
|
170
|
+
value: stockMode,
|
|
171
|
+
onChange: setStockMode,
|
|
172
|
+
options: ["tracked", "unlimited"].map((value) => ({
|
|
173
|
+
value,
|
|
174
|
+
label: t(value)
|
|
175
|
+
}))
|
|
176
|
+
}), /* @__PURE__ */ react.default.createElement(require_components.StatusSelect, {
|
|
177
|
+
value: status,
|
|
178
|
+
onChange: setStatus
|
|
179
|
+
}), /* @__PURE__ */ react.default.createElement(antd.Button, {
|
|
180
|
+
icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.ReloadOutlined, null),
|
|
181
|
+
disabled: mutation.busy,
|
|
182
|
+
onClick: () => {
|
|
183
|
+
list.reload();
|
|
184
|
+
units.reload();
|
|
185
|
+
}
|
|
186
|
+
}, t("refresh"))), /* @__PURE__ */ react.default.createElement(require_components.RequestError, {
|
|
187
|
+
error: list.error || units.error,
|
|
188
|
+
retry: () => {
|
|
189
|
+
list.reload();
|
|
190
|
+
units.reload();
|
|
191
|
+
}
|
|
192
|
+
}), /* @__PURE__ */ react.default.createElement(require_components.InventoryTable, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, list), {}, {
|
|
193
|
+
loading: list.loading || mutation.busy,
|
|
194
|
+
columns,
|
|
195
|
+
tableKey: "items"
|
|
196
|
+
})), target && /* @__PURE__ */ react.default.createElement(require_ItemDrawer.default, {
|
|
197
|
+
target,
|
|
198
|
+
onClose: () => setTarget(void 0),
|
|
199
|
+
onChanged: list.reload
|
|
200
|
+
}));
|
|
201
|
+
}
|
|
202
|
+
function InventoryItemManagement(props) {
|
|
203
|
+
return /* @__PURE__ */ react.default.createElement(require_context.InventoryProvider, { id: props.__id }, /* @__PURE__ */ react.default.createElement(ItemPage, props));
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
exports.default = InventoryItemManagement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InventoryPageProps } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/plus/inventory/InventoryLocationManagement.d.ts
|
|
5
|
+
declare function InventoryLocationManagement(props: InventoryPageProps): JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { InventoryLocationManagement };
|