@pisell/private-materials 6.2.25 → 6.2.26

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 (212) 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/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  8. package/es/components/booking/components/customSelect/index.js +1 -0
  9. package/es/components/booking/hooks/useClearCart.js +11 -8
  10. package/es/components/booking/info/client/index.js +3 -2
  11. package/es/components/booking/info/hooks/useInfoHolder.js +13 -14
  12. package/es/components/booking/info/service/Lists.js +37 -27
  13. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  14. package/es/components/booking/info/service/editService/constants.js +3 -0
  15. package/es/components/booking/info/service/editService/index.js +15 -10
  16. package/es/components/booking/info/service2/utils.d.ts +1 -1
  17. package/es/components/booking/info/service2/utils.js +20 -21
  18. package/es/components/booking/info2/index.js +1 -0
  19. package/es/components/booking/info2/service/addService/utils.js +6 -3
  20. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  21. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  22. package/es/components/booking/info2/service/editService/index.js +265 -170
  23. package/es/components/booking/info2/service/index.js +22 -19
  24. package/es/components/booking/materiels/duration/index.js +9 -2
  25. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  26. package/es/components/shoppingCart/components/Cart/Product.js +51 -47
  27. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  28. package/es/components/ticketBooking/components/addServiceVariant/addService.js +171 -151
  29. package/es/components/ticketBooking/components/timeBar/index.js +77 -73
  30. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  31. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  32. package/lib/components/booking/components/customSelect/index.js +1 -0
  33. package/lib/components/booking/hooks/useClearCart.js +16 -13
  34. package/lib/components/booking/info/client/index.js +5 -4
  35. package/lib/components/booking/info/hooks/useInfoHolder.js +12 -13
  36. package/lib/components/booking/info/service/Lists.js +36 -24
  37. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  38. package/lib/components/booking/info/service/editService/constants.js +31 -0
  39. package/lib/components/booking/info/service/editService/index.js +7 -1
  40. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  41. package/lib/components/booking/info/service2/utils.js +17 -17
  42. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  43. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  44. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  45. package/lib/components/booking/info2/service/editService/index.js +138 -74
  46. package/lib/components/booking/info2/service/index.js +14 -10
  47. package/lib/components/booking/materiels/duration/index.js +7 -2
  48. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  49. package/lib/components/shoppingCart/components/Cart/Product.js +32 -28
  50. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  51. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +140 -122
  52. package/lib/components/ticketBooking/components/timeBar/index.js +98 -94
  53. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  54. package/package.json +3 -3
  55. package/es/components/Sales/Cart/index.d.ts +0 -53
  56. package/es/components/booking/addons/index.d.ts +0 -17
  57. package/es/components/booking/components/actionButtons/index.d.ts +0 -29
  58. package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
  59. package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
  60. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  61. package/es/components/booking/components/voucher/index.d.ts +0 -3
  62. package/es/components/booking/dashboard/index.d.ts +0 -20
  63. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -3
  64. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  65. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  66. package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
  67. package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  68. package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  69. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -3
  70. package/es/components/booking/locales.d.ts +0 -903
  71. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  72. package/es/components/shoppingCart/type.d.ts +0 -49
  73. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  74. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  75. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  76. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  77. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  78. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  79. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  80. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  81. package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  82. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  83. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  84. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  85. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  86. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  87. package/es/components/ticketBooking/locales.d.ts +0 -177
  88. package/es/components/ticketBooking/serve.d.ts +0 -287
  89. package/es/hooks/useToast.d.ts +0 -2
  90. package/es/hooks/useTranslationOriginal.d.ts +0 -1
  91. package/es/index.d.ts +0 -51
  92. package/es/plus/clientCard/index.d.ts +0 -7
  93. package/es/plus/clientCard/line/index.d.ts +0 -9
  94. package/es/plus/clientCard/locales.d.ts +0 -18
  95. package/es/plus/clientCard/types.d.ts +0 -126
  96. package/es/plus/clientCard/utils.d.ts +0 -8
  97. package/es/plus/clientName/index.d.ts +0 -5
  98. package/es/plus/clientName/type.d.ts +0 -13
  99. package/es/plus/clientName/utils.d.ts +0 -2
  100. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  101. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  102. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  103. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  104. package/es/plus/clinetSearch/Add/index.d.ts +0 -18
  105. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  106. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  107. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  108. package/es/plus/clinetSearch/index.d.ts +0 -18
  109. package/es/plus/clinetSearch/locales.d.ts +0 -102
  110. package/es/plus/clinetSearch/serve.d.ts +0 -1
  111. package/es/plus/clinetSearch/types.d.ts +0 -49
  112. package/es/plus/noteModal/AddTempModal.d.ts +0 -7
  113. package/es/plus/noteModal/index.d.ts +0 -4
  114. package/es/plus/noteModal/locales.d.ts +0 -33
  115. package/es/plus/noteModal/types.d.ts +0 -17
  116. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  117. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  118. package/es/pro/comprehensiveSearch/index.d.ts +0 -9
  119. package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
  120. package/es/pro/comprehensiveSearch/types.d.ts +0 -31
  121. package/es/pro/numberKeyboard/index.d.ts +0 -28
  122. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  123. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  124. package/es/pro/pisellNumberSelector/index.d.ts +0 -26
  125. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  126. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  127. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  128. package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  129. package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  130. package/es/pro/pisellPriceRadio/index.d.ts +0 -26
  131. package/es/pro/skuDetailModal/index.d.ts +0 -5
  132. package/es/pro/skuDetailModal/locales.d.ts +0 -48
  133. package/es/pro/skuDetailModal/types.d.ts +0 -347
  134. package/lib/components/Sales/Cart/index.d.ts +0 -53
  135. package/lib/components/booking/addons/index.d.ts +0 -17
  136. package/lib/components/booking/components/actionButtons/index.d.ts +0 -29
  137. package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
  138. package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
  139. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  140. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  141. package/lib/components/booking/dashboard/index.d.ts +0 -20
  142. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -3
  143. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  144. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  145. package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
  146. package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  147. package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  148. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -3
  149. package/lib/components/booking/locales.d.ts +0 -903
  150. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  151. package/lib/components/shoppingCart/type.d.ts +0 -49
  152. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  153. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  154. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  155. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  156. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  157. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  158. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  159. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  160. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  161. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  162. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  163. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  164. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  165. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  166. package/lib/components/ticketBooking/locales.d.ts +0 -177
  167. package/lib/components/ticketBooking/serve.d.ts +0 -287
  168. package/lib/hooks/useToast.d.ts +0 -2
  169. package/lib/hooks/useTranslationOriginal.d.ts +0 -1
  170. package/lib/index.d.ts +0 -51
  171. package/lib/plus/clientCard/index.d.ts +0 -7
  172. package/lib/plus/clientCard/line/index.d.ts +0 -9
  173. package/lib/plus/clientCard/locales.d.ts +0 -18
  174. package/lib/plus/clientCard/types.d.ts +0 -126
  175. package/lib/plus/clientCard/utils.d.ts +0 -8
  176. package/lib/plus/clientName/index.d.ts +0 -5
  177. package/lib/plus/clientName/type.d.ts +0 -13
  178. package/lib/plus/clientName/utils.d.ts +0 -2
  179. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  180. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  181. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  182. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  183. package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
  184. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  185. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  186. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  187. package/lib/plus/clinetSearch/index.d.ts +0 -18
  188. package/lib/plus/clinetSearch/locales.d.ts +0 -102
  189. package/lib/plus/clinetSearch/serve.d.ts +0 -1
  190. package/lib/plus/clinetSearch/types.d.ts +0 -49
  191. package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
  192. package/lib/plus/noteModal/index.d.ts +0 -4
  193. package/lib/plus/noteModal/locales.d.ts +0 -33
  194. package/lib/plus/noteModal/types.d.ts +0 -17
  195. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  196. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  197. package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
  198. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
  199. package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
  200. package/lib/pro/numberKeyboard/index.d.ts +0 -28
  201. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  202. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  203. package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
  204. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  205. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  206. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  207. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  208. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  209. package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
  210. package/lib/pro/skuDetailModal/index.d.ts +0 -5
  211. package/lib/pro/skuDetailModal/locales.d.ts +0 -48
  212. package/lib/pro/skuDetailModal/types.d.ts +0 -347
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ActionButtonsProps {
4
- /** booking 状态对象,包含 service、addons 等数据 */
5
- state: {
6
- service?: {
7
- value?: any[];
8
- };
9
- addons?: {
10
- value?: any[];
11
- };
12
- disabledEdit?: boolean;
13
- channelDisabledEdit?: boolean;
14
- shop_discount?: string;
15
- bookingDetail?: {
16
- [key: string]: any;
17
- };
18
- [key: string]: any;
19
- };
20
- /** dispatch 函数,用于触发状态更新 */
21
- dispatch: (action: {
22
- type: string;
23
- payload?: any;
24
- }) => void;
25
- /** 是否禁用所有按钮 */
26
- disabled?: boolean;
27
- }
28
- declare const ActionButtons: React.FC<ActionButtonsProps>;
29
- export default ActionButtons;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ClearCartModalProps {
4
- visible: boolean;
5
- onCancel: () => void;
6
- onClearItemsOnly: () => void;
7
- onClearAllAndReset: () => void;
8
- }
9
- declare const ClearCartModal: React.FC<ClearCartModalProps>;
10
- export default ClearCartModal;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface CustomiseItemModalProps {
4
- /** 是否显示弹窗 */
5
- visible?: boolean;
6
- /** 关闭弹窗回调 */
7
- onClose?: () => void;
8
- /** 保存回调 */
9
- onSave?: (data: CustomiseItemData) => void;
10
- /** 货币符号 */
11
- currencySymbol?: string;
12
- /** 是否禁用 */
13
- disabled?: boolean;
14
- }
15
- export interface CustomiseItemData {
16
- /** 商品名称 */
17
- productName: string;
18
- /** 是否适用优惠券/折扣 */
19
- vouchersApplicable: boolean;
20
- /** 价格类型:sell(售价) | deduction(手动减价) */
21
- priceType: 'sell' | 'deduction';
22
- /** 价格值 */
23
- priceValue: string;
24
- /** 数量 */
25
- quantity: number;
26
- }
27
- declare const CustomiseItemModal: React.FC<CustomiseItemModalProps>;
28
- export default CustomiseItemModal;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "./index.less";
3
- declare const TabPane: React.FC<any>;
4
- export default TabPane;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const VoucherCard: (props: any) => JSX.Element | null;
3
- export default VoucherCard;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivElement> {
3
- backgroundColors?: string[];
4
- labelColor?: string;
5
- valueColor?: string;
6
- otherParams?: Record<string, any>;
7
- refreshKey?: string;
8
- onDataChange?: (data: {
9
- groupsOnSiteNow: string | number;
10
- peopleOnSiteNow: string | number;
11
- totalVisitorsToday: string | number;
12
- ongoing: string | number;
13
- upcoming: string | number;
14
- overdue: string | number;
15
- completed: string | number;
16
- departed: string | number;
17
- }, dataList: string[]) => void;
18
- }
19
- declare const BookingDashboard: React.ForwardRefExoticComponent<BookingDashboardProps & React.RefAttributes<unknown>>;
20
- export default BookingDashboard;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
- export default ServiceItem;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { ClientCardRef } from './types';
3
- import './index.less';
4
- export type { ClientData } from './types';
5
- declare const CartClientCard: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ClientCardRef>>;
6
- export default CartClientCard;
@@ -1,21 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.switch-account': string;
4
- 'pisell2.text.cancel': string;
5
- 'pisell2.text.cart-client-card': (name: string) => string;
6
- 'pisell2.text.add-client-success': string;
7
- };
8
- 'zh-CN': {
9
- 'pisell2.text.switch-account': string;
10
- 'pisell2.text.cancel': string;
11
- 'pisell2.text.cart-client-card': (name: string) => string;
12
- 'pisell2.text.add-client-success': string;
13
- };
14
- 'zh-HK': {
15
- 'pisell2.text.switch-account': string;
16
- 'pisell2.text.cancel': string;
17
- 'pisell2.text.cart-client-card': (name: string) => string;
18
- 'pisell2.text.add-client-success': string;
19
- };
20
- };
21
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { ClientData as ClientCardData } from '../../../../plus/clientCard/types';
2
- import type { ClientData as ClientSearchData } from '../../../../plus/clinetSearch/types';
3
- export interface ClientData extends ClientCardData {
4
- latest_wallet_detail?: any;
5
- }
6
- export interface CartClientCardState {
7
- clientData?: ClientData;
8
- searchModalVisible: boolean;
9
- }
10
- export declare type ClientDataConverter = (searchData: ClientSearchData) => ClientData;
11
- export declare type ClientCardRef = {
12
- handleSetClient: (record: ClientData) => void;
13
- };
@@ -1,3 +0,0 @@
1
- import { ClientData } from "./types";
2
- export declare const setHandleSetClient: (fn: ((customer: ClientData | null) => void) | null) => void;
3
- export declare const getHandleSetClient: () => ((customer: ClientData | null) => void) | null;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EditNormalService: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
- export default EditNormalService;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
- export default ServiceItem;