@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.
Files changed (157) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/preview.css +1 -1
  6. package/build/lowcode/preview.js +1 -1
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
  12. package/es/components/appointmentBooking/index.d.ts +1 -2
  13. package/es/components/booking/dashboard/index.d.ts +1 -1
  14. package/es/components/booking/deposit/index.d.ts +1 -3
  15. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -3
  16. package/es/components/booking/info/index.d.ts +1 -2
  17. package/es/components/booking/materiels/contacts/index.d.ts +1 -2
  18. package/es/components/booking/materiels/duration/index.d.ts +1 -2
  19. package/es/components/booking/materiels/startTime/index.d.ts +1 -2
  20. package/es/components/ecocup/cupList/index.d.ts +1 -2
  21. package/es/components/ecocup/cupProject/index.d.ts +2 -2
  22. package/es/components/ecocup/customerList/index.d.ts +2 -2
  23. package/es/components/eftpos/index.d.ts +1 -2
  24. package/es/components/eftposPay/index.d.ts +1 -2
  25. package/es/components/eventBooking/index.d.ts +1 -2
  26. package/es/components/kioskSkuDetail/index.d.ts +1 -1
  27. package/es/components/login/index.d.ts +1 -2
  28. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
  29. package/es/components/productExtension/index.d.ts +1 -2
  30. package/es/components/ruleSetting/index.d.ts +1 -2
  31. package/es/components/scanOrder/index.d.ts +2 -2
  32. package/es/components/shoppingCart/index.d.ts +1 -2
  33. package/es/components/subTotal/index.d.ts +1 -1
  34. package/es/components/taxSelect/index.d.ts +1 -2
  35. package/es/components/ticketBooking/index.d.ts +1 -2
  36. package/es/components/venueBooking/index.d.ts +2 -2
  37. package/es/components/walletList/index.d.ts +1 -2
  38. package/es/index.d.ts +5 -1
  39. package/es/index.js +4 -2
  40. package/es/plus/inventory/BindingModal.js +94 -0
  41. package/es/plus/inventory/InventoryItemManagement.d.ts +7 -0
  42. package/es/plus/inventory/InventoryItemManagement.js +204 -0
  43. package/es/plus/inventory/InventoryLocationManagement.d.ts +7 -0
  44. package/es/plus/inventory/InventoryLocationManagement.js +296 -0
  45. package/es/plus/inventory/InventoryUnitManagement.d.ts +7 -0
  46. package/es/plus/inventory/InventoryUnitManagement.js +144 -0
  47. package/es/plus/inventory/ItemDrawer.js +266 -0
  48. package/es/plus/inventory/RecordDialog.js +141 -0
  49. package/es/plus/inventory/StockList.js +132 -0
  50. package/es/plus/inventory/api.js +66 -0
  51. package/es/plus/inventory/components.js +172 -0
  52. package/es/plus/inventory/context.js +118 -0
  53. package/es/plus/inventory/forms.js +46 -0
  54. package/es/plus/inventory/hooks.js +235 -0
  55. package/es/plus/inventory/index.less +559 -0
  56. package/es/plus/inventory/locales.js +277 -0
  57. package/es/plus/inventory/types.d.ts +10 -0
  58. package/es/plus/inventory/utils.js +24 -0
  59. package/es/plus/orderList/index.d.ts +1 -1
  60. package/es/plus/panpacificTask/PanpacificTask.d.ts +2 -2
  61. package/es/plus/pisellAdyenDashboard/index.d.ts +1 -1
  62. package/es/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
  63. package/es/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
  64. package/es/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
  65. package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
  66. package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
  67. package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
  68. package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
  69. package/es/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
  70. package/es/plus/pisellSalesManagement/index.d.ts +1 -1
  71. package/es/plus/pisellTopology/PisellTopology.d.ts +2 -2
  72. package/es/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
  73. package/es/plus/saasCreateOrganization/index.d.ts +1 -2
  74. package/es/plus/saleDetail/index.d.ts +2 -2
  75. package/es/plus/skuOptionsSelection/store/createStore.js +2 -2
  76. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
  77. package/es/plus/walletPassGallery/index.d.ts +1 -2
  78. package/es/pro/Login2.0/AuthModal.d.ts +1 -1
  79. package/es/pro/Login2.0/index.d.ts +1 -2
  80. package/es/pro/Login2.0/shared/types.d.ts +1 -1
  81. package/es/pro/Selector/Item.d.ts +1 -1
  82. package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
  83. package/lib/components/appointmentBooking/index.d.ts +2 -2
  84. package/lib/components/booking/dashboard/index.d.ts +1 -1
  85. package/lib/components/booking/deposit/index.d.ts +2 -3
  86. package/lib/components/booking/info/addServiceVariant/index.d.ts +2 -3
  87. package/lib/components/booking/info/index.d.ts +2 -2
  88. package/lib/components/booking/materiels/contacts/index.d.ts +2 -2
  89. package/lib/components/booking/materiels/duration/index.d.ts +2 -2
  90. package/lib/components/booking/materiels/resources/index.d.ts +1 -1
  91. package/lib/components/booking/materiels/startTime/index.d.ts +2 -2
  92. package/lib/components/ecocup/cupList/index.d.ts +2 -2
  93. package/lib/components/ecocup/cupProject/index.d.ts +2 -2
  94. package/lib/components/ecocup/customerList/index.d.ts +2 -2
  95. package/lib/components/eftpos/index.d.ts +2 -2
  96. package/lib/components/eftposPay/index.d.ts +2 -2
  97. package/lib/components/eventBooking/index.d.ts +2 -2
  98. package/lib/components/kioskSkuDetail/index.d.ts +1 -1
  99. package/lib/components/login/index.d.ts +2 -2
  100. package/lib/components/pisellCashCounting/types.d.ts +1 -1
  101. package/lib/components/pisellSelectCustomerModal/index.d.ts +2 -2
  102. package/lib/components/productExtension/index.d.ts +2 -2
  103. package/lib/components/ruleSetting/index.d.ts +2 -2
  104. package/lib/components/scanOrder/index.d.ts +2 -2
  105. package/lib/components/shoppingCart/index.d.ts +2 -2
  106. package/lib/components/subTotal/index.d.ts +1 -1
  107. package/lib/components/taxSelect/index.d.ts +2 -2
  108. package/lib/components/ticketBooking/index.d.ts +2 -2
  109. package/lib/components/venueBooking/index.d.ts +2 -2
  110. package/lib/components/walletList/index.d.ts +2 -2
  111. package/lib/index.d.ts +5 -1
  112. package/lib/index.js +6 -0
  113. package/lib/plus/clinetSearch/index.d.ts +1 -1
  114. package/lib/plus/inventory/BindingModal.js +96 -0
  115. package/lib/plus/inventory/InventoryItemManagement.d.ts +7 -0
  116. package/lib/plus/inventory/InventoryItemManagement.js +206 -0
  117. package/lib/plus/inventory/InventoryLocationManagement.d.ts +7 -0
  118. package/lib/plus/inventory/InventoryLocationManagement.js +298 -0
  119. package/lib/plus/inventory/InventoryUnitManagement.d.ts +7 -0
  120. package/lib/plus/inventory/InventoryUnitManagement.js +146 -0
  121. package/lib/plus/inventory/ItemDrawer.js +268 -0
  122. package/lib/plus/inventory/RecordDialog.js +143 -0
  123. package/lib/plus/inventory/StockList.js +134 -0
  124. package/lib/plus/inventory/api.js +66 -0
  125. package/lib/plus/inventory/components.js +181 -0
  126. package/lib/plus/inventory/context.js +121 -0
  127. package/lib/plus/inventory/forms.js +50 -0
  128. package/lib/plus/inventory/hooks.js +240 -0
  129. package/lib/plus/inventory/index.less +559 -0
  130. package/lib/plus/inventory/locales.js +277 -0
  131. package/lib/plus/inventory/types.d.ts +10 -0
  132. package/lib/plus/inventory/utils.js +30 -0
  133. package/lib/plus/orderList/index.d.ts +1 -1
  134. package/lib/plus/panpacificTask/PanpacificTask.d.ts +2 -2
  135. package/lib/plus/pisellAdyenDashboard/index.d.ts +1 -1
  136. package/lib/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
  137. package/lib/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
  138. package/lib/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
  139. package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
  140. package/lib/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
  141. package/lib/plus/pisellSalesManagement/index.d.ts +1 -1
  142. package/lib/plus/pisellTopology/PisellTopology.d.ts +2 -2
  143. package/lib/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
  144. package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
  145. package/lib/plus/saleDetail/index.d.ts +2 -2
  146. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -2
  147. package/lib/plus/walletPassGallery/index.d.ts +2 -2
  148. package/lib/pro/Selector/Item.d.ts +1 -1
  149. package/lowcode/inventory-item-management/meta.ts +20 -0
  150. package/lowcode/inventory-location-management/meta.ts +20 -0
  151. package/lowcode/inventory-unit-management/meta.ts +20 -0
  152. package/package.json +3 -3
  153. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
  154. package/es/plus/pisellReservation/index.js +0 -17
  155. package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
  156. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
  157. /package/es/{plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts → private-materials/lowcode/authmodal/meta.d.ts} +0 -0
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/appointmentBooking/deposit/index.d.ts
3
- declare const Deposit: (props: any) => React.JSX.Element;
2
+ declare const Deposit: (props: any) => JSX.Element;
4
3
  //#endregion
5
4
  export { Deposit };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/appointmentBooking/index.d.ts
3
- declare const AppointmentBooking: () => React.JSX.Element;
2
+ declare const AppointmentBooking: () => JSX.Element;
4
3
  //#endregion
5
4
  export { AppointmentBooking };
@@ -18,6 +18,6 @@ interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivElement> {
18
18
  departed: string | number;
19
19
  }, dataList: string[]) => void;
20
20
  }
21
- declare const BookingDashboard: (props: BookingDashboardProps) => React.JSX.Element;
21
+ declare const BookingDashboard: (props: BookingDashboardProps) => JSX.Element;
22
22
  //#endregion
23
23
  export { BookingDashboard };
@@ -1,6 +1,4 @@
1
- import React from "react";
2
-
3
1
  //#region src/components/booking/deposit/index.d.ts
4
- declare const Deposit: (props: any) => React.JSX.Element;
2
+ declare const Deposit: (props: any) => JSX.Element;
5
3
  //#endregion
6
4
  export { Deposit };
@@ -1,10 +1,8 @@
1
- import React from "react";
2
-
3
1
  //#region src/components/booking/info/addServiceVariant/index.d.ts
4
2
  interface AddServiceVariantProps {
5
3
  globalState: any;
6
4
  setGlobalState: any;
7
5
  }
8
- declare const AddServiceVariant: (props: AddServiceVariantProps) => React.JSX.Element;
6
+ declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
9
7
  //#endregion
10
8
  export { AddServiceVariant };
@@ -1,7 +1,6 @@
1
1
  import { InfoProps } from "./main.js";
2
- import React from "react";
3
2
 
4
3
  //#region src/components/booking/info/index.d.ts
5
- declare const APP: (props: InfoProps) => React.JSX.Element;
4
+ declare const APP: (props: InfoProps) => JSX.Element;
6
5
  //#endregion
7
6
  export { APP };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  //#region src/components/booking/materiels/contacts/index.d.ts
3
2
  type ContactType = {
4
3
  country_calling_code: string;
@@ -12,6 +11,6 @@ type ContactsPropsType = {
12
11
  value: ContactType[];
13
12
  onChange: (value: ContactType[]) => void;
14
13
  };
15
- declare const Contacts: (props: ContactsPropsType) => React.JSX.Element;
14
+ declare const Contacts: (props: ContactsPropsType) => JSX.Element;
16
15
  //#endregion
17
16
  export { Contacts };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { SelectProps } from "antd";
3
2
 
4
3
  //#region src/components/booking/materiels/duration/index.d.ts
@@ -12,6 +11,6 @@ interface DurationProps extends SelectProps {
12
11
  startDate?: any;
13
12
  timeObj?: any;
14
13
  }
15
- declare const Duration: (props: DurationProps) => React.JSX.Element;
14
+ declare const Duration: (props: DurationProps) => JSX.Element;
16
15
  //#endregion
17
16
  export { Duration };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { SelectProps } from "antd";
3
2
 
4
3
  //#region src/components/booking/materiels/startTime/index.d.ts
@@ -8,6 +7,6 @@ interface StartTimeProps extends SelectProps {
8
7
  selectProps?: SelectProps;
9
8
  timeObjChange?: any;
10
9
  }
11
- declare const StartTime: (props: StartTimeProps) => React.JSX.Element;
10
+ declare const StartTime: (props: StartTimeProps) => JSX.Element;
12
11
  //#endregion
13
12
  export { StartTime };
@@ -1,8 +1,7 @@
1
- import React from "react";
2
1
  //#region src/components/ecocup/cupList/index.d.ts
3
2
  interface CupListProps {
4
3
  data: any[];
5
4
  }
6
- declare const CupList: (props: CupListProps) => React.JSX.Element;
5
+ declare const CupList: (props: CupListProps) => JSX.Element;
7
6
  //#endregion
8
7
  export { CupList };
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/ecocup/cupProject/index.d.ts
3
- declare function EcoCupProject(): React.JSX.Element;
3
+ declare function EcoCupProject(): JSX.Element;
4
4
  //#endregion
5
5
  export { EcoCupProject };
@@ -1,8 +1,8 @@
1
- import React from "react";
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): React.JSX.Element;
6
+ declare function CustomerList(props: CustomerListProps): JSX.Element;
7
7
  //#endregion
8
8
  export { CustomerList };
@@ -1,5 +1,4 @@
1
1
  import { DeviceStatus, Eftpos } from "./const.js";
2
- import React from "react";
3
2
  //#region src/components/eftpos/index.d.ts
4
3
  interface PosProps {
5
4
  /** 厂商类型 */
@@ -43,6 +42,6 @@ interface PosProps {
43
42
  getPosComm: (...agrn: unknown[]) => any;
44
43
  savePos: (...agrn: unknown[]) => any;
45
44
  }
46
- declare const _default: (props: PosProps) => React.JSX.Element;
45
+ declare const _default: (props: PosProps) => JSX.Element;
47
46
  //#endregion
48
47
  export { _default };
@@ -1,6 +1,5 @@
1
1
  import { PosProps } from "./const.js";
2
- import React from "react";
3
2
  //#region src/components/eftposPay/index.d.ts
4
- declare const _default: (props: PosProps) => React.JSX.Element | null;
3
+ declare const _default: (props: PosProps) => JSX.Element | null;
5
4
  //#endregion
6
5
  export { _default };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/eventBooking/index.d.ts
3
- declare const EventBooking: () => React.JSX.Element;
2
+ declare const EventBooking: () => JSX.Element;
4
3
  //#endregion
5
4
  export { EventBooking };
@@ -7,7 +7,7 @@ import React from "react";
7
7
  * - 中间区域用 SKUOptionsSelection 做 SKU 选择
8
8
  * - 底部用 PisellNumberSelector 做数量编辑
9
9
  */
10
- declare function KioskSkuDetail(props: KioskSkuDetailProps): React.JSX.Element;
10
+ declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
11
11
  /**
12
12
  * @description 从原生回调 payload 中提取 productId
13
13
  */
@@ -1,10 +1,9 @@
1
- import React from "react";
2
1
  //#region src/components/login/index.d.ts
3
2
  interface LoginProps {
4
3
  title: string;
5
4
  style: any;
6
5
  onLogin: (values: any, callback: (status: any) => void) => void;
7
6
  }
8
- declare const Login: (props: LoginProps) => React.JSX.Element;
7
+ declare const Login: (props: LoginProps) => JSX.Element;
9
8
  //#endregion
10
9
  export { Login, LoginProps };
@@ -1,5 +1,4 @@
1
1
  import { CustomerCardProps } from "./CustomerCard/index.js";
2
- import React from "react";
3
2
  import { PopoverProps } from "antd";
4
3
  //#region src/components/pisellSelectCustomerModal/index.d.ts
5
4
  type CustomerDetail = any;
@@ -12,6 +11,6 @@ interface PisellSelectCustomerModalProps {
12
11
  keyboardProps?: any;
13
12
  virtualKeyInputProps?: any;
14
13
  }
15
- declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => React.JSX.Element;
14
+ declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
16
15
  //#endregion
17
16
  export { PisellSelectCustomerModal };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  //#region src/components/productExtension/index.d.ts
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -7,6 +6,6 @@ interface ProductExtensionProps {
7
6
  declare const ProductExtension: ({
8
7
  onDataChange,
9
8
  type
10
- }: ProductExtensionProps) => React.JSX.Element;
9
+ }: ProductExtensionProps) => JSX.Element;
11
10
  //#endregion
12
11
  export { ProductExtension };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  //#region src/components/ruleSetting/index.d.ts
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -6,6 +5,6 @@ interface RuleSettingProps {
6
5
  className: string;
7
6
  style: any;
8
7
  }
9
- declare const RuleSetting: (props: RuleSettingProps) => React.JSX.Element;
8
+ declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
10
9
  //#endregion
11
10
  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): React.JSX.Element;
4
+ declare function ScanOrder(props: ScanOrderProps): JSX.Element;
5
5
  //#endregion
6
6
  export { ScanOrder };
@@ -1,5 +1,4 @@
1
1
  import { shoppingCartProps } from "./type.js";
2
- import React from "react";
3
2
 
4
3
  //#region src/components/shoppingCart/index.d.ts
5
4
  declare const shoppingCart: ({
@@ -9,6 +8,6 @@ declare const shoppingCart: ({
9
8
  onAddProduct,
10
9
  onActiveKey,
11
10
  ...props
12
- }: shoppingCartProps) => React.JSX.Element;
11
+ }: shoppingCartProps) => JSX.Element;
13
12
  //#endregion
14
13
  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) => React.JSX.Element;
23
+ declare const SubTotal: (props: SubTotalProps) => JSX.Element;
24
24
  //#endregion
25
25
  export { SubTotal };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { SelectProps } from "antd";
3
2
  //#region src/components/taxSelect/index.d.ts
4
3
  interface TaxSelectProps {
@@ -8,6 +7,6 @@ interface TaxSelectProps {
8
7
  tax_title?: string;
9
8
  onChange: (value: string) => void;
10
9
  }
11
- declare const TaxSelect: (props: TaxSelectProps) => React.JSX.Element;
10
+ declare const TaxSelect: (props: TaxSelectProps) => JSX.Element;
12
11
  //#endregion
13
12
  export { TaxSelect };
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  //#region src/components/ticketBooking/index.d.ts
3
2
  interface TicketBookingProps {
4
3
  productExtensionType: string[];
5
4
  bookingConfigParams: Record<string, any>;
6
5
  }
7
- declare const _default: (props: TicketBookingProps) => React.JSX.Element;
6
+ declare const _default: (props: TicketBookingProps) => JSX.Element;
8
7
  //#endregion
9
8
  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): React.JSX.Element;
6
+ declare function VenueBooking(props: VenueBookingProps): JSX.Element;
7
7
  //#endregion
8
8
  export { VenueBooking };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/walletList/index.d.ts
3
- declare const WalletList: (props: any) => React.JSX.Element;
2
+ declare const WalletList: (props: any) => JSX.Element;
4
3
  //#endregion
5
4
  export { WalletList };
package/es/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/es/index.js CHANGED
@@ -78,6 +78,9 @@ import HolderList from "./plus/selectHolder/components/HolderList/index.js";
78
78
  import PisellSelectHolder$1 from "./plus/selectHolder/index.js";
79
79
  import SaasRole from "./plus/saasRole/index.js";
80
80
  import SaasTeamMembers from "./plus/saasTeamMembers/index.js";
81
+ import InventoryItemManagement from "./plus/inventory/InventoryItemManagement.js";
82
+ import InventoryUnitManagement from "./plus/inventory/InventoryUnitManagement.js";
83
+ import InventoryLocationManagement from "./plus/inventory/InventoryLocationManagement.js";
81
84
  import SaasDeviceProfile from "./plus/saasDevice/deviceProfile/index.js";
82
85
  import SaasDevicePlanning from "./plus/saasDevice/devicePlanning/index.js";
83
86
  import SaasDevicePasscodes from "./plus/saasDevice/devicePasscodes/index.js";
@@ -105,7 +108,6 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
105
108
  import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
106
109
  import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
107
110
  import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
108
- import "./plus/pisellReservation/index.js";
109
111
  import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
110
112
  import pisellAdyenDashboard_default from "./plus/pisellAdyenDashboard/index.js";
111
113
  import weekday from "dayjs/plugin/weekday";
@@ -115,4 +117,4 @@ import localeData from "dayjs/plugin/localeData";
115
117
  dayjs.extend(weekday);
116
118
  dayjs.extend(localeData);
117
119
  //#endregion
118
- 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, DeviceAuth, CupList as EcoCupList, EcoCupProject, CustomerList as EcoCustomerList, editBookingModal_default as EditBookingModal, eftpos_default as Eftpos, eftposPay_default 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, HolderList, KioskSkuDetail, Login, Login2, OAuthConfig, Onlineshopauth as OnlineShopAuth, OrderList, OrgAdminAuth, PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY, PISELL_RESERVATION_VENUE_WALL_PAGE_STORAGE_KEY, POSOperatorAuth, PanpacificTask, PiPaymentResult, pinModal_default as PinModal, pinVerifyModal_default as PinVerifyModal, pisellAdyenDashboard_default as PisellAdyenDashboard, PisellCashCounting, PisellFloorMapPaletteViewAllModal, PisellProResourcePickerModal, PisellReservation, PisellReservationBookingPage, PisellReservationCore, PisellReservationTablePage, pisellSalesGrid_default as PisellSalesGrid, PisellSelectCustomerModal, PisellTopology, PisellTopologyCore, PisellVenueControlPage, PisellVenueWallPage, PisellNumberSelector as ProNumberSelector, ProductExtension, productStockCheckModal_default as ProductStockCheckModal, Register2, RuleSetting, SKUOptionsSelection, SaaSAdminAuth, SaaSManagermentAuth, SaasAttendance, SaasCreateOrganization, SaasDevicePasscodes, SaasDevicePlanning, SaasDeviceProfile, SaasLogin, saasRegister_default as SaasRegister, SaasRole, SaasTeamMembers, SaleDetail, ScanOrder, Schedules, SelectFloorMapResourceDialog, PisellSelectHolder$1 as SelectHolder, Selector, Registry as SettingsRegistry, shoppingCart as ShoppingCart, StepController, SubTotal, TaxSelect, ticketBooking_default as TicketBooking, toC_default as ToCPay, VenueBooking, AddServiceVariant as VerticalAddService, VerticalClient, walletEditor_default as WalletEditor, WalletList, PassDetail as WalletPassDetail, WalletPassGallery, WorkspacesList as WorkspaceList, WorkSpaceListDetail as WorkspaceListDetail, PisellReservationBookingPage as default, defaultReservationTableRows, getDefaultReservationFloorMapConfig, PisellSalesManagement as pisellSalesManagement };
120
+ 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, DeviceAuth, CupList as EcoCupList, EcoCupProject, CustomerList as EcoCustomerList, editBookingModal_default as EditBookingModal, eftpos_default as Eftpos, eftposPay_default 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, HolderList, InventoryItemManagement, InventoryLocationManagement, InventoryUnitManagement, KioskSkuDetail, Login, Login2, OAuthConfig, Onlineshopauth as OnlineShopAuth, OrderList, OrgAdminAuth, PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY, PISELL_RESERVATION_VENUE_WALL_PAGE_STORAGE_KEY, POSOperatorAuth, PanpacificTask, PiPaymentResult, pinModal_default as PinModal, pinVerifyModal_default as PinVerifyModal, pisellAdyenDashboard_default as PisellAdyenDashboard, PisellCashCounting, PisellFloorMapPaletteViewAllModal, PisellProResourcePickerModal, PisellReservation, PisellReservationBookingPage, PisellReservationCore, PisellReservationTablePage, pisellSalesGrid_default as PisellSalesGrid, PisellSelectCustomerModal, PisellTopology, PisellTopologyCore, PisellVenueControlPage, PisellVenueWallPage, PisellNumberSelector as ProNumberSelector, ProductExtension, productStockCheckModal_default as ProductStockCheckModal, Register2, RuleSetting, SKUOptionsSelection, SaaSAdminAuth, SaaSManagermentAuth, SaasAttendance, SaasCreateOrganization, SaasDevicePasscodes, SaasDevicePlanning, SaasDeviceProfile, SaasLogin, saasRegister_default as SaasRegister, SaasRole, SaasTeamMembers, SaleDetail, ScanOrder, Schedules, SelectFloorMapResourceDialog, PisellSelectHolder$1 as SelectHolder, Selector, Registry as SettingsRegistry, shoppingCart as ShoppingCart, StepController, SubTotal, TaxSelect, ticketBooking_default as TicketBooking, toC_default as ToCPay, VenueBooking, AddServiceVariant as VerticalAddService, VerticalClient, walletEditor_default as WalletEditor, WalletList, PassDetail as WalletPassDetail, WalletPassGallery, WorkspacesList as WorkspaceList, WorkSpaceListDetail as WorkspaceListDetail, PisellReservationBookingPage as default, defaultReservationTableRows, getDefaultReservationFloorMapConfig, PisellSalesManagement as pisellSalesManagement };
@@ -0,0 +1,94 @@
1
+ import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
2
+ import { useInventory } from "./context.js";
3
+ import { useInventoryMutation } from "./hooks.js";
4
+ import { PagedInventorySelect } from "./components.js";
5
+ import React from "react";
6
+ import { Alert, Form } from "antd";
7
+ import { PisellModal } from "@pisell/materials";
8
+ //#region src/plus/inventory/BindingModal.tsx
9
+ function BindingModal({ itemId, onClose, onBound }) {
10
+ const { api, t, success } = useInventory();
11
+ const [form] = Form.useForm();
12
+ const locationId = Form.useWatch("location_id", form);
13
+ const shelfId = Form.useWatch("shelf_id", form);
14
+ const mutation = useInventoryMutation();
15
+ const submit = () => mutation.run(_asyncToGenerator(function* () {
16
+ let values;
17
+ try {
18
+ values = yield form.validateFields();
19
+ } catch (_unused) {
20
+ return;
21
+ }
22
+ yield api.bind(itemId, values.space_id);
23
+ success("bound");
24
+ onBound();
25
+ }));
26
+ return /* @__PURE__ */ React.createElement(PisellModal, {
27
+ open: true,
28
+ title: t("bind"),
29
+ size: "middle",
30
+ okText: t("bind"),
31
+ cancelText: t("cancel"),
32
+ confirmLoading: mutation.busy,
33
+ closable: !mutation.busy,
34
+ maskClosable: !mutation.busy,
35
+ cancelButtonProps: { disabled: mutation.busy },
36
+ onCancel: () => {
37
+ if (!mutation.busy) onClose();
38
+ },
39
+ onOk: () => void submit()
40
+ }, /* @__PURE__ */ React.createElement("div", { className: "inventory-modal-body" }, /* @__PURE__ */ React.createElement(Alert, {
41
+ className: "inventory-notice",
42
+ type: "info",
43
+ showIcon: true,
44
+ message: t("bindHint")
45
+ }), /* @__PURE__ */ React.createElement(Form, {
46
+ form,
47
+ layout: "vertical",
48
+ disabled: mutation.busy
49
+ }, /* @__PURE__ */ React.createElement(Form.Item, {
50
+ name: "location_id",
51
+ label: t("location"),
52
+ rules: [{
53
+ required: true,
54
+ message: t("required")
55
+ }]
56
+ }, /* @__PURE__ */ React.createElement(PagedInventorySelect, {
57
+ resource: "location",
58
+ placeholder: t("chooseLocation"),
59
+ disabled: mutation.busy,
60
+ onChange: () => form.setFieldsValue({
61
+ shelf_id: void 0,
62
+ space_id: void 0
63
+ })
64
+ })), /* @__PURE__ */ React.createElement(Form.Item, {
65
+ name: "shelf_id",
66
+ label: t("shelf"),
67
+ rules: [{
68
+ required: true,
69
+ message: t("required")
70
+ }]
71
+ }, /* @__PURE__ */ React.createElement(PagedInventorySelect, {
72
+ key: `shelf-${locationId}`,
73
+ resource: "shelf",
74
+ placeholder: t("chooseShelf"),
75
+ disabled: !locationId || mutation.busy,
76
+ filters: { location_id: locationId },
77
+ onChange: () => form.setFieldValue("space_id", void 0)
78
+ })), /* @__PURE__ */ React.createElement(Form.Item, {
79
+ name: "space_id",
80
+ label: t("space"),
81
+ rules: [{
82
+ required: true,
83
+ message: t("required")
84
+ }]
85
+ }, /* @__PURE__ */ React.createElement(PagedInventorySelect, {
86
+ key: `space-${shelfId}`,
87
+ resource: "space",
88
+ placeholder: t("chooseSpace"),
89
+ disabled: !shelfId || mutation.busy,
90
+ filters: { shelf_id: shelfId }
91
+ })))));
92
+ }
93
+ //#endregion
94
+ export { BindingModal as default };
@@ -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 };