@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
package/es/index.d.ts DELETED
@@ -1,51 +0,0 @@
1
- export { default as Login } from './components/login';
2
- export type { LoginProps } from './components/login';
3
- export { default as BookingInfo } from './components/booking/info/index';
4
- export { default as BookingNotes } from './components/booking/notes';
5
- export { default as BookingAddons } from './components/booking/addons';
6
- export { default as BookingForms } from './components/booking/forms';
7
- export { default as BookingPayment } from './components/booking/payments';
8
- export { default as Booking } from './components/booking';
9
- export { default as Schedules } from './components/schedules';
10
- export { default as BookingResources } from './components/booking/materiels/resources';
11
- export { default as BookingStartTime } from './components/booking/materiels/startTime';
12
- export { default as BookingDuration } from './components/booking/materiels/duration';
13
- export { default as BookingContacts } from './components/booking/materiels/contacts';
14
- export { VerticalClient } from './components/booking/info/clientVariant';
15
- export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
16
- export { default as ProductExtension } from './components/productExtension';
17
- export { default as BookingDeposit } from './components/booking/deposit';
18
- export { default as WorkspaceList } from './components/workSpaceList';
19
- export { default as WorkspaceListDetail } from './components/workSpaceListDetail';
20
- export { default as RuleSetting } from './components/ruleSetting';
21
- export { default as TaxSelect } from './components/taxSelect';
22
- export { default as EftposPay } from './components/eftposPay';
23
- export { default as ToCPay } from './components/pay/toC';
24
- export { default as Eftpos } from './components/eftpos';
25
- export { default as Wallet } from './components/wallet';
26
- export { default as WalletList } from './components/walletList';
27
- export { default as BookingDashboard } from './components/booking/dashboard';
28
- export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
29
- export { default as EventBooking } from './components/eventBooking';
30
- export { default as EventCard } from './components/eventBooking/components/eventCard';
31
- export { default as EventResourceDisplay } from './components/eventBooking/components/resourceDisplay';
32
- export { default as EventResourceUsability } from './components/eventBooking/components/resourceUsability';
33
- export { default as EventProductCard } from './components/eventBooking/components/productCard';
34
- export { default as EventTimeResourceSelector } from './components/eventBooking/components/timeResourceSelector';
35
- export { default as EventSelectHolder } from './components/eventBooking/components/selectHolder';
36
- export { default as EventBookingServiceList } from './components/eventBooking/components/bookingServiceList';
37
- export { default as EventBookingAvailabilityCalendar } from './components/eventBooking/components/bookingAvailabilityCalendar';
38
- export { default as EventScheduleCalendar } from './components/eventBooking/components/scheduleCalendar';
39
- export { default as EventBookingDetailModal } from './components/eventBooking/components/bookingDetailModal';
40
- export { default as EventProgressBar } from './components/eventBooking/components/progressBar';
41
- export { default as ShoppingCart } from './components/shoppingCart';
42
- export { default as AppointmentBooking } from './components/appointmentBooking';
43
- export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
44
- export { default as TicketBooking } from './components/ticketBooking';
45
- export { default as SubTotal } from './components/subTotal';
46
- export { default as EditBookingModal } from './components/booking/editBookingModal';
47
- export { default as StepController } from './components/stepController';
48
- export { default as ClientCard } from './plus/clientCard';
49
- export { default as ClientSearch } from './plus/clinetSearch';
50
- export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
51
- export { default as NoteModal } from './plus/noteModal';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ClientData, ClientCardProps, ProcessedClientData, FieldNames } from './types';
3
- import './index.less';
4
- export declare const processClientData: (dataSource: ClientData, fieldNames?: FieldNames) => ProcessedClientData | null;
5
- export declare const PREFIX = "pisell-client-card";
6
- declare const ClientCard: React.FC<ClientCardProps>;
7
- export default ClientCard;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ClientCardProps } from '../types';
3
- import './index.less';
4
- /**
5
- * 客户卡片组件 - 行内布局
6
- * 所有信息在一行展示:头像、客户名、联系方式(电话优先于邮箱)、标签
7
- */
8
- declare const LineCard: React.FC<ClientCardProps>;
9
- export default LineCard;
@@ -1,18 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.add-client': string;
4
- 'pisell2.text.change-client': string;
5
- 'pisell2.text.remove-client': string;
6
- };
7
- 'zh-CN': {
8
- 'pisell2.text.add-client': string;
9
- 'pisell2.text.change-client': string;
10
- 'pisell2.text.remove-client': string;
11
- };
12
- 'zh-HK': {
13
- 'pisell2.text.add-client': string;
14
- 'pisell2.text.change-client': string;
15
- 'pisell2.text.remove-client': string;
16
- };
17
- };
18
- export default _default;
@@ -1,126 +0,0 @@
1
- import React from 'react';
2
- export interface ClientData {
3
- id: number;
4
- shop_id: number;
5
- display_name?: string;
6
- nickname?: string;
7
- email?: string;
8
- phone?: string;
9
- country_calling_code?: string;
10
- channel?: string;
11
- created_at: string;
12
- updated_at: string;
13
- waiver_form?: any;
14
- avatar?: string;
15
- birthday?: string;
16
- address?: string;
17
- tags?: string[];
18
- [key: string]: any;
19
- }
20
- export declare type CardType = 'b1' | 'b2' | 'b5' | 'b9';
21
- export declare type Direction = 'horizontal' | 'vertical';
22
- export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
23
- export declare type AvatarShape = 'circle' | 'square';
24
- export interface AvatarConfig {
25
- icon?: string;
26
- shape?: AvatarShape;
27
- borderRadius?: number | string;
28
- size?: AvatarSize;
29
- useTextAvatar?: boolean;
30
- children?: string;
31
- }
32
- export interface StatusConfig {
33
- color?: string;
34
- }
35
- export interface NameStyle {
36
- fontSize?: number | string;
37
- fontWeight?: number | string;
38
- color?: string;
39
- textDecoration?: string;
40
- }
41
- export interface TagItem {
42
- children: string;
43
- color: string;
44
- }
45
- export interface TagConfig {
46
- placement?: 'separate' | 'inline';
47
- flexWrap?: 'nowrap' | 'wrap';
48
- gap?: number | string;
49
- }
50
- export interface ExtraField {
51
- label?: string;
52
- value?: string;
53
- isShowLabel?: boolean;
54
- isShowValue?: boolean;
55
- icon?: string;
56
- iconSize?: number;
57
- iconColor?: string;
58
- }
59
- export interface Slots {
60
- top?: React.ReactNode;
61
- bottom?: React.ReactNode;
62
- left?: React.ReactNode;
63
- right?: React.ReactNode;
64
- }
65
- export interface StyleConfig {
66
- width?: number | string;
67
- border?: 'solid' | 'unset';
68
- borderWidth?: number | string;
69
- borderColor?: string;
70
- borderRadius?: number | string;
71
- padding?: number | string;
72
- [key: string]: any;
73
- }
74
- export interface FieldNames {
75
- id?: string | ((data: any) => any);
76
- name?: string | ((data: any) => any);
77
- cover?: string | ((data: any) => any);
78
- phone?: string | ((data: any) => any);
79
- email?: string | ((data: any) => any);
80
- birthday?: string | ((data: any) => any);
81
- address?: string | ((data: any) => any);
82
- tags?: string | ((data: any) => any);
83
- [key: string]: string | ((data: any) => any) | undefined;
84
- }
85
- export interface DisplayConfig {
86
- isShowAvatar?: boolean;
87
- isShowName?: boolean;
88
- isShowPhone?: boolean;
89
- isShowEmail?: boolean;
90
- isShowBirthday?: boolean;
91
- isShowAddress?: boolean;
92
- isShowTag?: boolean;
93
- isShowStatus?: boolean;
94
- }
95
- export interface ClientCardProps extends DisplayConfig {
96
- type?: CardType;
97
- direction?: Direction;
98
- dataSource?: ClientData | any;
99
- fieldNames?: FieldNames;
100
- style?: StyleConfig;
101
- horizontalGap?: number | string;
102
- verticalGap?: number | string;
103
- avatar?: AvatarConfig;
104
- status?: StatusConfig;
105
- defaultName?: string;
106
- nameStyle?: NameStyle;
107
- tags?: Array<TagItem | string>;
108
- tag?: TagConfig;
109
- extraFields?: ExtraField[];
110
- slots?: Slots;
111
- onAddClient?: () => void;
112
- onChangeClient?: (data: ClientData) => void;
113
- onRemoveClient?: (data: ClientData) => void;
114
- onViewClient?: (data: ClientData) => void;
115
- }
116
- export interface ProcessedClientData {
117
- id: any;
118
- name: string;
119
- cover?: string;
120
- phone?: string;
121
- email?: string;
122
- birthday?: string;
123
- address?: string;
124
- tags?: string[];
125
- [key: string]: any;
126
- }
@@ -1,8 +0,0 @@
1
- interface FieldMapping<T = any, R = any> {
2
- [key: string]: string | ((data: T) => R) | undefined;
3
- }
4
- export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
5
- export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
6
- export declare const getAvatarText: (name: string) => string;
7
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
8
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { IClientNameProps } from './type';
4
- declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
5
- export default ClientName;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type ClientData = {
3
- display_name?: string;
4
- nickname?: string;
5
- first_name?: string;
6
- last_name?: string;
7
- [key: string]: any;
8
- };
9
- export interface IClientNameProps {
10
- dataSource?: string | ClientData | null;
11
- className?: string;
12
- style?: React.CSSProperties;
13
- }
@@ -1,2 +0,0 @@
1
- import { ClientData } from './type';
2
- export declare const getClientName: (dataSource: string | ClientData | null) => string | null;
@@ -1,2 +0,0 @@
1
- declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
- export default DateSectionCom;
@@ -1,2 +0,0 @@
1
- declare const GenderField: (props: any) => JSX.Element;
2
- export default GenderField;
@@ -1,2 +0,0 @@
1
- declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
- export default PhoneField;
@@ -1,2 +0,0 @@
1
- export declare const defaultCodes: any;
2
- export declare const getCountries: (params?: any) => Promise<any>;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface AddClientProps {
4
- onChange: (value: any, isChecked: boolean) => void;
5
- phone?: string;
6
- containerProps: {
7
- className?: string;
8
- title?: string;
9
- open?: boolean;
10
- onCancel?: () => void;
11
- width?: string | number;
12
- };
13
- }
14
- export interface AddClientRef {
15
- reset: () => void;
16
- }
17
- declare const AddClient: React.ForwardRefExoticComponent<AddClientProps & React.RefAttributes<unknown>>;
18
- export default AddClient;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { InfiniteScrollProps } from './types';
3
- declare const InfiniteScroll: React.FC<InfiniteScrollProps>;
4
- export default InfiniteScroll;
5
- export type { InfiniteScrollProps };
@@ -1,2 +0,0 @@
1
- export { default } from './InfiniteScroll';
2
- export type { InfiniteScrollProps, ScrollPosition, TouchInfo, InfiniteScrollState } from './types';
@@ -1,46 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- /**
3
- * 无限滚动组件的属性接口
4
- */
5
- export interface InfiniteScrollProps {
6
- /** 数据长度,用于判断是否需要加载更多 */
7
- dataLength: number;
8
- /** 加载更多数据的函数 */
9
- next: () => void;
10
- /** 是否还有更多数据 */
11
- hasMore: boolean;
12
- /** 加载中显示的组件 */
13
- loader?: ReactNode;
14
- /** 没有更多数据时显示的组件 */
15
- endMessage?: ReactNode;
16
- /** 滚动容器的高度 */
17
- height?: number | string;
18
- /** 滚动阈值,0-1之间的数值或像素值 */
19
- scrollThreshold?: number | string;
20
- /** 滚动事件回调 */
21
- onScroll?: (event: Event) => void;
22
- /** 自定义样式 */
23
- style?: CSSProperties;
24
- /** 自定义类名 */
25
- className?: string;
26
- /** 指定滚动容器的目标元素ID */
27
- scrollableTarget?: string;
28
- /** 子元素 */
29
- children: ReactNode;
30
- /** 是否反向滚动 */
31
- inverse?: boolean;
32
- }
33
- /**
34
- * 滚动位置信息
35
- */
36
- export interface ScrollPosition {
37
- scrollTop: number;
38
- scrollHeight: number;
39
- clientHeight: number;
40
- }
41
- /**
42
- * 组件内部状态
43
- */
44
- export interface InfiniteScrollState {
45
- isLoading: boolean;
46
- }
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { TableProps } from 'antd';
3
- import type { ComprehensiveSearchProps } from '../../pro/comprehensiveSearch/types';
4
- import type { ClientData } from './types';
5
- import './index.less';
6
- interface ClientSearchProps extends Omit<ComprehensiveSearchProps, 'resultDisplay' | 'onRowClick'> {
7
- onRowClick?: (record: ClientData, index: number) => void;
8
- onAddClient?: (record: ClientData, isChecked: boolean) => void;
9
- resultProps?: TableProps<ClientData>;
10
- hasMore?: boolean;
11
- onLoadMore?: () => void;
12
- }
13
- export declare type ClientSearchRef = {
14
- setSearchKeyword: (keyword: string) => void;
15
- resetScrollPosition: () => void;
16
- };
17
- declare const ClientSearch: React.ForwardRefExoticComponent<ClientSearchProps & React.RefAttributes<ClientSearchRef>>;
18
- export default ClientSearch;
@@ -1,102 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.leave-empty-for-walk-in': string;
4
- 'pisell2.text.date-year-text': string;
5
- 'pisell2.text.date-month-text': string;
6
- 'pisell2.text.date-day-text': string;
7
- 'pisell2.text.gender': string;
8
- 'pisell2.text.gender.male': string;
9
- 'pisell2.text.gender.female': string;
10
- 'pisell2.text.birthday': string;
11
- 'pisell2.text.phone': string;
12
- 'pisell2.text.email': string;
13
- 'pisell2.text.lastname': string;
14
- 'pisell2.text.firstname': string;
15
- 'pisell2.text.email-error-message': string;
16
- 'pisell2.text.notes': string;
17
- 'pisell2.text.save': string;
18
- 'pisell2.text.save-and-select': string;
19
- 'pisell2.text.no-results-found': string;
20
- 'pisell2.text.create-new-client': string;
21
- 'pisell2.text.result-found': string;
22
- 'pisell2.text.personnel-list': string;
23
- 'pisell2.text.load-more': string;
24
- 'pisell2.text.add-client.confirm': string;
25
- 'pisell2.text.search-customer-by-phone-number': string;
26
- 'pisell2.text.create': string;
27
- 'pisell2.text.loading': string;
28
- 'pisell2.text.no-more-data': string;
29
- 'pisell2.text.client-search.name': string;
30
- 'pisell2.text.client-search.register-time': string;
31
- 'pisell2.text.client-search.phone': string;
32
- 'pisell2.text.client-search.email': string;
33
- 'pisell2.text.client-search.membership': string;
34
- };
35
- 'zh-CN': {
36
- 'pisell2.text.leave-empty-for-walk-in': string;
37
- 'pisell2.text.date-year-text': string;
38
- 'pisell2.text.date-month-text': string;
39
- 'pisell2.text.date-day-text': string;
40
- 'pisell2.text.gender': string;
41
- 'pisell2.text.gender.male': string;
42
- 'pisell2.text.gender.female': string;
43
- 'pisell2.text.birthday': string;
44
- 'pisell2.text.phone': string;
45
- 'pisell2.text.email': string;
46
- 'pisell2.text.lastname': string;
47
- 'pisell2.text.firstname': string;
48
- 'pisell2.text.email-error-message': string;
49
- 'pisell2.text.notes': string;
50
- 'pisell2.text.save': string;
51
- 'pisell2.text.save-and-select': string;
52
- 'pisell2.text.no-results-found': string;
53
- 'pisell2.text.create-new-client': string;
54
- 'pisell2.text.result-found': string;
55
- 'pisell2.text.personnel-list': string;
56
- 'pisell2.text.add-client.confirm': string;
57
- 'pisell2.text.load-more': string;
58
- 'pisell2.text.search-customer-by-phone-number': string;
59
- 'pisell2.text.create': string;
60
- 'pisell2.text.loading': string;
61
- 'pisell2.text.no-more-data': string;
62
- 'pisell2.text.client-search.name': string;
63
- 'pisell2.text.client-search.register-time': string;
64
- 'pisell2.text.client-search.phone': string;
65
- 'pisell2.text.client-search.email': string;
66
- 'pisell2.text.client-search.membership': string;
67
- };
68
- 'zh-HK': {
69
- 'pisell2.text.leave-empty-for-walk-in': string;
70
- 'pisell2.text.date-year-text': string;
71
- 'pisell2.text.date-month-text': string;
72
- 'pisell2.text.date-day-text': string;
73
- 'pisell2.text.gender': string;
74
- 'pisell2.text.gender.male': string;
75
- 'pisell2.text.gender.female': string;
76
- 'pisell2.text.birthday': string;
77
- 'pisell2.text.phone': string;
78
- 'pisell2.text.email': string;
79
- 'pisell2.text.lastname': string;
80
- 'pisell2.text.firstname': string;
81
- 'pisell2.text.email-error-message': string;
82
- 'pisell2.text.notes': string;
83
- 'pisell2.text.save': string;
84
- 'pisell2.text.save-and-select': string;
85
- 'pisell2.text.no-results-found': string;
86
- 'pisell2.text.create-new-client': string;
87
- 'pisell2.text.result-found': string;
88
- 'pisell2.text.personnel-list': string;
89
- 'pisell2.text.add-client.confirm': string;
90
- 'pisell2.text.load-more': string;
91
- 'pisell2.text.search-customer-by-phone-number': string;
92
- 'pisell2.text.create': string;
93
- 'pisell2.text.loading': string;
94
- 'pisell2.text.no-more-data': string;
95
- 'pisell2.text.client-search.name': string;
96
- 'pisell2.text.client-search.register-time': string;
97
- 'pisell2.text.client-search.phone': string;
98
- 'pisell2.text.client-search.email': string;
99
- 'pisell2.text.client-search.membership': string;
100
- };
101
- };
102
- export default _default;
@@ -1 +0,0 @@
1
- export declare const addCustomer: (params: any) => Promise<any>;
@@ -1,49 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ClientData {
3
- id: number;
4
- display_name: string;
5
- created_at: string;
6
- phone: string;
7
- email: string;
8
- channel: string;
9
- country_calling_code: string;
10
- nickname: string;
11
- shop_id: number;
12
- updated_at: string;
13
- }
14
- export interface ClientSearchProps {
15
- dataSource?: any;
16
- isShowScanner?: boolean;
17
- isShowCamera?: boolean;
18
- isShowNFC?: boolean;
19
- isShowNewButton?: boolean;
20
- newButtonAlign?: 'left' | 'center' | 'right';
21
- newButtonText?: string;
22
- renderType?: 'modal' | 'drawer' | 'portal' | '';
23
- containerProps?: Record<string, any>;
24
- isShowSearch?: boolean;
25
- isShowSearchCamera?: boolean;
26
- searchIcon?: string;
27
- placeholder?: string;
28
- isShowSearchButton?: boolean;
29
- resultSort?: 'asc' | 'desc' | 'custom';
30
- sortBy?: string;
31
- style?: React.CSSProperties;
32
- onChange?: (value: string) => void;
33
- onSearch?: (value: string) => void;
34
- onAdd?: () => void;
35
- onDataChange?: (data: any) => void;
36
- onRowClick?: (record: ClientData, index: number) => void;
37
- }
38
- export interface ClientFormData {
39
- display_name: string;
40
- phone?: string;
41
- email?: string;
42
- nickname?: string;
43
- }
44
- export interface ClientSearchState {
45
- modalVisible: boolean;
46
- loading: boolean;
47
- searchResults: ClientData[];
48
- searchValue: string;
49
- }
@@ -1,7 +0,0 @@
1
- import './index.less';
2
- declare const AddTempModal: ({ open, onCancel, onConfirm, }: {
3
- open: boolean;
4
- onCancel: () => void;
5
- onConfirm: (value: string) => void;
6
- }) => JSX.Element;
7
- export default AddTempModal;
@@ -1,4 +0,0 @@
1
- import { NoteModalComponent } from './types';
2
- import './index.less';
3
- declare const NoteModal: NoteModalComponent;
4
- export default NoteModal;
@@ -1,33 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.note': string;
4
- 'pisell2.text.note.modal.title': string;
5
- 'pisell2.text.note.modal.btn.confirm': string;
6
- 'pisell2.text.note.modal.btn.cancel': string;
7
- 'pisell2.text.note.modal.btn.delete': string;
8
- 'pisell2.text.note.modal.btn.add.template': string;
9
- 'pisell2.text.note.modal.placeholder': string;
10
- 'pisell2.text.note.modal.add.template.title': string;
11
- };
12
- 'zh-CN': {
13
- 'pisell2.text.note': string;
14
- 'pisell2.text.note.modal.title': string;
15
- 'pisell2.text.note.modal.btn.confirm': string;
16
- 'pisell2.text.note.modal.btn.cancel': string;
17
- 'pisell2.text.note.modal.btn.delete': string;
18
- 'pisell2.text.note.modal.btn.add.template': string;
19
- 'pisell2.text.note.modal.placeholder': string;
20
- 'pisell2.text.note.modal.add.template.title': string;
21
- };
22
- 'zh-HK': {
23
- 'pisell2.text.note': string;
24
- 'pisell2.text.note.modal.title': string;
25
- 'pisell2.text.note.modal.btn.confirm': string;
26
- 'pisell2.text.note.modal.btn.cancel': string;
27
- 'pisell2.text.note.modal.btn.delete': string;
28
- 'pisell2.text.note.modal.btn.add.template': string;
29
- 'pisell2.text.note.modal.placeholder': string;
30
- 'pisell2.text.note.modal.add.template.title': string;
31
- };
32
- };
33
- export default _default;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export interface NoteModalProps {
3
- /** 是否显示弹窗 */
4
- open?: boolean;
5
- /** 弹窗标题 */
6
- title?: string;
7
- /** 初始内容 */
8
- value?: string;
9
- /** 确认回调 */
10
- onConfirm?: (value: string) => void;
11
- /** 删除回调 */
12
- onDelete?: () => void;
13
- /** 取消回调 */
14
- onCancel?: () => void;
15
- }
16
- export interface NoteModalComponent extends React.FC<NoteModalProps> {
17
- }
@@ -1,5 +0,0 @@
1
- declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
- activeNativeScanner: () => void;
3
- isTerminal: any;
4
- };
5
- export default useNativeScanner;
@@ -1,9 +0,0 @@
1
- declare type Peripherals = {
2
- scanner: 'none' | 'connected' | 'disconnect';
3
- nfc: 'none' | 'connected' | 'disconnect';
4
- camera?: 'none' | 'connected' | 'disconnect';
5
- };
6
- declare const useTerminalPeripherals: (onChange?: ((val: string) => void) | undefined) => {
7
- peripheralsStatus: Peripherals;
8
- };
9
- export default useTerminalPeripherals;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { ComprehensiveSearchProps, SearchResult } from './types';
3
- import './index.less';
4
- export declare type ComprehensiveSearchRef = {
5
- setSearchKeyword: (keyword: string) => void;
6
- };
7
- declare const ComprehensiveSearch: React.ForwardRefExoticComponent<ComprehensiveSearchProps & React.RefAttributes<ComprehensiveSearchRef>>;
8
- export default ComprehensiveSearch;
9
- export type { ComprehensiveSearchProps, SearchResult };
@@ -1,18 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.new-client': string;
4
- 'pisell2.comprehensive-search.placeholder': string;
5
- 'pisell2.comprehensive-search.empty': string;
6
- };
7
- 'zh-CN': {
8
- 'pisell2.text.new-client': string;
9
- 'pisell2.comprehensive-search.placeholder': string;
10
- 'pisell2.comprehensive-search.empty': string;
11
- };
12
- 'zh-HK': {
13
- 'pisell2.text.new-client': string;
14
- 'pisell2.comprehensive-search.placeholder': string;
15
- 'pisell2.comprehensive-search.empty': string;
16
- };
17
- };
18
- export default _default;