@pisell/private-materials 6.8.12 → 6.8.14

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 (131) 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/booking/info2/service/editNormalService/index.js +2 -1
  8. package/es/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
  9. package/lib/components/booking/info2/service/editNormalService/index.js +2 -1
  10. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
  11. package/package.json +4 -4
  12. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  13. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  14. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  15. package/es/components/booking/components/footer/index.d.ts +0 -11
  16. package/es/components/booking/components/footer/utils.d.ts +0 -67
  17. package/es/components/booking/components/voucher/index.d.ts +0 -3
  18. package/es/components/booking/dashboard/serve.d.ts +0 -1
  19. package/es/components/booking/forms/serve.d.ts +0 -18
  20. package/es/components/booking/info/client/serve.d.ts +0 -2
  21. package/es/components/booking/info/pet/serve.d.ts +0 -1
  22. package/es/components/booking/info/service/Lists.d.ts +0 -3
  23. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  24. package/es/components/booking/info/service/serve.d.ts +0 -34
  25. package/es/components/booking/info/service2/utils.d.ts +0 -219
  26. package/es/components/booking/info2/serve.d.ts +0 -6
  27. package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
  28. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  29. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  30. package/es/components/booking/utils.d.ts +0 -182
  31. package/es/components/checkout/PaymentModal.d.ts +0 -39
  32. package/es/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  33. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  34. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  35. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  36. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  37. package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
  38. package/es/components/checkout/plugin.d.ts +0 -2
  39. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  40. package/es/components/list/List.d.ts +0 -5
  41. package/es/components/list/hooks/useListState.d.ts +0 -45
  42. package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
  43. package/es/components/pay/toB/types/index.d.ts +0 -72
  44. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  45. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  46. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  47. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  48. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  49. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -11
  50. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  51. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  52. package/es/components/ticketBooking/index.d.ts +0 -15
  53. package/es/components/ticketBooking/serve.d.ts +0 -288
  54. package/es/components/ticketBooking/utils/index.d.ts +0 -101
  55. package/es/index.d.ts +0 -80
  56. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  57. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  58. package/es/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  59. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  60. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  61. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  62. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  63. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  64. package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  65. package/es/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  66. package/es/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  67. package/es/plus/webPosLogin/index.d.ts +0 -12
  68. package/es/plus/webPosLogin/locales.d.ts +0 -49
  69. package/es/plus/webPosLogin/service.d.ts +0 -44
  70. package/es/plus/webPosLogin/types.d.ts +0 -286
  71. package/es/pro/Login2.0/Login2.d.ts +0 -61
  72. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  73. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  74. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  75. package/lib/components/booking/components/footer/index.d.ts +0 -11
  76. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  77. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  78. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  79. package/lib/components/booking/forms/serve.d.ts +0 -18
  80. package/lib/components/booking/info/client/serve.d.ts +0 -2
  81. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  82. package/lib/components/booking/info/service/Lists.d.ts +0 -3
  83. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  84. package/lib/components/booking/info/service/serve.d.ts +0 -34
  85. package/lib/components/booking/info/service2/utils.d.ts +0 -219
  86. package/lib/components/booking/info2/serve.d.ts +0 -6
  87. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
  88. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  89. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  90. package/lib/components/booking/utils.d.ts +0 -182
  91. package/lib/components/checkout/PaymentModal.d.ts +0 -39
  92. package/lib/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  93. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  94. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  95. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  96. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  97. package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
  98. package/lib/components/checkout/plugin.d.ts +0 -2
  99. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  100. package/lib/components/list/List.d.ts +0 -5
  101. package/lib/components/list/hooks/useListState.d.ts +0 -45
  102. package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
  103. package/lib/components/pay/toB/types/index.d.ts +0 -72
  104. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  105. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  106. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  107. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  108. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  109. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -11
  110. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  111. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  112. package/lib/components/ticketBooking/index.d.ts +0 -15
  113. package/lib/components/ticketBooking/serve.d.ts +0 -288
  114. package/lib/components/ticketBooking/utils/index.d.ts +0 -101
  115. package/lib/index.d.ts +0 -80
  116. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  117. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  118. package/lib/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  119. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  120. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  121. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  122. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  123. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  124. package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  125. package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  126. package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  127. package/lib/plus/webPosLogin/index.d.ts +0 -12
  128. package/lib/plus/webPosLogin/locales.d.ts +0 -49
  129. package/lib/plus/webPosLogin/service.d.ts +0 -44
  130. package/lib/plus/webPosLogin/types.d.ts +0 -286
  131. package/lib/pro/Login2.0/Login2.d.ts +0 -61
@@ -1,288 +0,0 @@
1
- /**
2
- * @title: 获取客户列表
3
- * @description: 获取客户列表
4
- * @param {any} params
5
- * @return {*}
6
- * @Author: cong.shao
7
- * @Date: 2025-04-24 16:28
8
- */
9
- export declare const getClients: (params: any) => Promise<any>;
10
- /**
11
- * @title: 获取服务列表
12
- * @description: 查询服务列表
13
- * @param {any} params
14
- * @return {*}
15
- * @Author: cong.shao
16
- * @Date: 2025-04-24 16:28
17
- */
18
- export declare const getServices: (params: any) => Promise<any>;
19
- /**
20
- * @title: 获取资源列表
21
- * @description: 资源列表
22
- * @param {any} params
23
- * @return {*}
24
- * @Author: cong.shao
25
- * @Date: 2025-04-24 16:28
26
- */
27
- export declare const getResources: (params: any) => Promise<any>;
28
- /**
29
- * @title: 获取产品列表
30
- * @description: 查询产品列表
31
- * @param {any} params
32
- * @return {*}
33
- * @Author: cong.shao
34
- * @Date: 2025-04-24 16:28
35
- */
36
- export declare const getProducts: (params: any) => Promise<any>;
37
- /**
38
- * @title: 获取表单列表
39
- * @description: 获取关联记录表单列表
40
- * @param {any} params
41
- * @return {*}
42
- * @Author: cong.shao
43
- * @Date: 2025-04-24 16:28
44
- */
45
- export declare const getForms: (params: any) => Promise<any>;
46
- /**
47
- * @title: 获取预约配置
48
- * @description: 获取预约相关配置信息
49
- * @param {any} params
50
- * @return {*}
51
- * @Author: cong.shao
52
- * @Date: 2025-04-24 16:28
53
- */
54
- export declare const getBookingConfig: (params: any) => Promise<any>;
55
- /**
56
- * @title: 获取宠物信息
57
- * @description: 根据ID获取宠物信息
58
- * @param {string} formId
59
- * @param {any} params
60
- * @return {*}
61
- * @Author: cong.shao
62
- * @Date: 2025-04-24 16:28
63
- */
64
- export declare const getPets: (formId: string, params: any) => Promise<any>;
65
- /**
66
- * @title: 获取宠物数据
67
- * @description: 获取宠物数据
68
- * @param {any} params
69
- * @return {*}
70
- * @Author: cong.shao
71
- * @Date: 2025-04-24 16:28
72
- */
73
- export declare const getPetsData: (params: any) => Promise<any>;
74
- /**
75
- * @title: 创建预约
76
- * @description: 创建新的预约记录
77
- * @param {any} params
78
- * @return {*}
79
- * @Author: cong.shao
80
- * @Date: 2025-04-24 16:28
81
- */
82
- export declare const createBooking: (params: any) => Promise<any>;
83
- /**
84
- * @title: 获取预约附加服务
85
- * @description: 根据预约ID获取附加服务信息
86
- * @param {string} bookingId
87
- * @param {any} params
88
- * @return {*}
89
- * @Author: cong.shao
90
- * @Date: 2025-04-24 16:28
91
- */
92
- export declare const getAddonsByOrderId: (bookingId: string, params: any) => Promise<any>;
93
- /**
94
- * @title: 保存预约附加服务
95
- * @description: 保存预约的附加服务信息
96
- * @param {string} bookingId
97
- * @param {any} params
98
- * @return {*}
99
- * @Author: cong.shao
100
- * @Date: 2025-04-24 16:28
101
- */
102
- export declare const saveAddonsByOrderId: (bookingId: string, params: any) => Promise<any>;
103
- /**
104
- * @title: 获取预约详情
105
- * @description: 获取预约详细信息
106
- * @param {number} bookingId
107
- * @param {any} params
108
- * @return {*}
109
- * @Author: cong.shao
110
- * @Date: 2025-04-24 16:28
111
- */
112
- export declare const getBookingDetail: (bookingId: number, params?: any) => Promise<any>;
113
- /**
114
- * @title: 编辑预约状态
115
- * @description: 更新预约状态
116
- * @param {string} bookingId
117
- * @param {any} params
118
- * @return {*}
119
- * @Author: cong.shao
120
- * @Date: 2025-04-24 16:28
121
- */
122
- export declare const editBookingStatus: (bookingId: string, params: any) => Promise<any>;
123
- /**
124
- * @title: 编辑预约信息
125
- * @description: 更新预约信息
126
- * @param {string} bookingId
127
- * @param {any} params
128
- * @return {*}
129
- * @Author: cong.shao
130
- * @Date: 2025-04-24 16:28
131
- */
132
- export declare const editBooking: (bookingId: string, params: any) => Promise<any>;
133
- /**
134
- * @title: 获取预约备注
135
- * @description: 获取预约相关备注信息
136
- * @param {any} params
137
- * @return {*}
138
- * @Author: cong.shao
139
- * @Date: 2025-04-24 16:28
140
- */
141
- export declare const getNotesByOrder: (params: any) => Promise<any>;
142
- /**
143
- * @title: 添加预约备注
144
- * @description: 添加预约相关备注
145
- * @param {any} params
146
- * @return {*}
147
- * @Author: cong.shao
148
- * @Date: 2025-04-24 16:28
149
- */
150
- export declare const addNotesByOrder: (params: any) => Promise<any>;
151
- /**
152
- * @title: 编辑预约备注
153
- * @description: 更新预约备注信息
154
- * @param {string} bookingId
155
- * @param {any} params
156
- * @return {*}
157
- * @Author: cong.shao
158
- * @Date: 2025-04-24 16:28
159
- */
160
- export declare const editNoteByOrder: (bookingId: string, params: any) => Promise<any>;
161
- /**
162
- * @title: 删除预约备注
163
- * @description: 删除预约相关备注
164
- * @param {string} bookingId
165
- * @param {any} params
166
- * @return {*}
167
- * @Author: cong.shao
168
- * @Date: 2025-04-24 16:28
169
- */
170
- export declare const removeNoteByOrder: (bookingId: string, params: any) => Promise<any>;
171
- /**
172
- * @title: 保存预约表单数据
173
- * @description: 保存预约相关的表单数据
174
- * @param {any} params
175
- * @return {*}
176
- * @Author: cong.shao
177
- * @Date: 2025-04-24 16:28
178
- */
179
- export declare const saveBookingFormData: (params: any) => Promise<any>;
180
- /**
181
- * @title: 获取支付列表
182
- * @description: 获取支付相关列表数据
183
- * @param {any} params
184
- * @return {*}
185
- * @Author: cong.shao
186
- * @Date: 2025-04-24 16:28
187
- */
188
- export declare const getPaymentList: (params: any) => Promise<any>;
189
- /**
190
- * @title: 编辑订单备注
191
- * @description: 更新订单备注信息
192
- * @param {string} bookingId
193
- * @param {any} params
194
- * @return {*}
195
- * @Author: cong.shao
196
- * @Date: 2025-04-24 16:28
197
- */
198
- export declare const editOrderNote: (bookingId: string, params: any) => Promise<any>;
199
- /**
200
- * @title: 获取退款信息
201
- * @description: 获取退款相关信息
202
- * @param {string} bookingId
203
- * @param {any} params
204
- * @return {*}
205
- * @Author: cong.shao
206
- * @Date: 2025-04-24 16:28
207
- */
208
- export declare const getRefundInfo: (bookingId: string, params: any) => Promise<any>;
209
- /**
210
- * @title: 创建活动预约
211
- * @description: 创建新的活动预约记录
212
- * @param {any} params
213
- * @return {*}
214
- * @Author: cong.shao
215
- * @Date: 2025-04-24 16:28
216
- */
217
- export declare const createEventBooking: (params: any) => Promise<any>;
218
- /**
219
- * @title: 获取活动预约详情
220
- * @description: 获取活动预约详细信息
221
- * @param {number} bookingId
222
- * @param {any} params
223
- * @return {*}
224
- * @Author: cong.shao
225
- * @Date: 2025-04-24 16:28
226
- */
227
- export declare const getEventBookingDetail: (bookingId: number, params?: any) => Promise<any>;
228
- /**
229
- * @title: 编辑活动预约
230
- * @description: 更新活动预约信息
231
- * @param {string} bookingId
232
- * @param {any} params
233
- * @return {*}
234
- * @Author: cong.shao
235
- * @Date: 2025-04-24 16:28
236
- */
237
- export declare const editEventBooking: (bookingId: string, params: any) => Promise<any>;
238
- /**
239
- * @title: 获取定金显示配置
240
- * @description: 获取定金相关显示配置
241
- * @param {any} params
242
- * @return {*}
243
- * @Author: cong.shao
244
- * @Date: 2025-04-24 16:28
245
- */
246
- export declare const getDepositShow: (params: any) => Promise<any>;
247
- /**
248
- * @title: 获取表单记录
249
- * @description: 获取表单记录数据
250
- * @param {any} params
251
- * @return {*}
252
- * @Author: cong.shao
253
- * @Date: 2025-04-24 16:28
254
- */
255
- export declare const getFormRecords: (params: any) => Promise<any>;
256
- /**
257
- * @title: 获取预约列表
258
- * @description: 获取预约列表数据
259
- * @param {any} params
260
- * @return {*}
261
- * @Author: cong.shao
262
- * @Date: 2025-04-24 16:28
263
- */
264
- export declare const getBookingList2: (params: any) => Promise<any>;
265
- /**
266
- * @title: 获取订单信息
267
- * @description: 根据机器码获取订单信息
268
- * @param {any} params
269
- * @return {*}
270
- * @Author: cong.shao
271
- * @Date: 2025-04-24 16:28
272
- */
273
- export declare const getOrderInfoByCode: (params: any) => Promise<any>;
274
- /**
275
- * @title: 获取ES客户数据
276
- * @description: 从ES获取客户数据
277
- * @param {any} params
278
- * @return {*}
279
- * @Author: cong.shao
280
- * @Date: 2025-04-24 16:28
281
- */
282
- export declare const getClientsEs: (params: any) => Promise<any>;
283
- /**
284
- * 作废2.0预约订单
285
- * @param order_id
286
- */
287
- export declare const voidAppointment: (order_id: number) => Promise<any>;
288
- export declare const getProductList: (params: any) => Promise<any>;
@@ -1,101 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- /** dayjs对象格式化为字符串时间 */
3
- export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
- export declare const getDefaultStartParam: () => string | string[];
5
- export declare const formatBookingList: (bookingList: any[]) => any[];
6
- export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
- export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
- export declare const formatOptions: (detail: any) => any;
9
- export declare const formatHolder: (detail: any) => any;
10
- export declare const restoreProductOtherData: (data: any) => {
11
- product_id: any;
12
- option: any;
13
- bundle: any;
14
- product_variant_id: any;
15
- quantity: number;
16
- } | undefined;
17
- export declare const isSameProduct: (a: any, b: any) => boolean;
18
- export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
19
- list: any[];
20
- count: number;
21
- quantity?: undefined;
22
- } | {
23
- list: any[];
24
- quantity: any;
25
- count?: undefined;
26
- };
27
- export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
28
- export declare const getCartProductOverlay: (state: any) => any;
29
- export declare const getIsOverlayProduct: (item: any, state: any) => any;
30
- export declare const getIsShowNumber: (item: any, state: any) => any;
31
- export declare const genServiceKey: (item: any) => string;
32
- export declare const genHolderKey: (item: any) => string;
33
- export declare const getIsParallelResourcesBooking: (record: any) => boolean;
34
- declare type ScanData = {
35
- type: string;
36
- status: 'success' | 'failed';
37
- scanType: 'nfc' | 'scanner';
38
- scanCode: string;
39
- result: {
40
- searchType: 'customer' | 'wallet' | 'walletPass' | 'product' | 'local_product';
41
- response: {
42
- status: boolean;
43
- code: number;
44
- message: string;
45
- data: any;
46
- };
47
- };
48
- };
49
- export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
51
- data: any;
52
- scanCode: string;
53
- } | null;
54
- export declare const formatScanGlobal: (data: ScanData) => {
55
- searchType: "wallet";
56
- data: any;
57
- scanCode: string;
58
- } | {
59
- searchType: "walletPass";
60
- data: any;
61
- scanCode: string;
62
- } | {
63
- searchType: "product" | "local_product";
64
- data: any;
65
- scanCode: string;
66
- } | null | undefined;
67
- export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
68
- export declare const getBookingTicketKey: (osKey: string) => string;
69
- export declare const getShopDiscountKey: (osKey: string) => string;
70
- export declare const rulesHooks: {
71
- getProduct(product: Record<string, any>): {
72
- booking_id: any;
73
- id: any;
74
- _id: any;
75
- price: any;
76
- total: any;
77
- discount_list: any;
78
- origin_total: any;
79
- num: any;
80
- quantity: any;
81
- vouchersApplicable: any;
82
- holder_id: any;
83
- isNormalProduct: any;
84
- startDate: any;
85
- bundle: any;
86
- options: any;
87
- };
88
- setProduct(product: Record<string, any>, values: {
89
- total: number;
90
- discount_list: any[];
91
- price: number;
92
- quantity: number;
93
- _id?: string;
94
- }): {
95
- _id: any;
96
- discount_list: any[];
97
- _extend: any;
98
- };
99
- };
100
- export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
101
- export type { CacheType } from './productCache';
package/lib/index.d.ts DELETED
@@ -1,80 +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 ToBPay } from './components/pay/toB';
25
- export { default as Eftpos } from './components/eftpos';
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';
52
- export { default as ProNumberKeyboard } from './pro/numberKeyboard';
53
- export { default as ProNumberSelector } from './pro/pisellNumberSelector';
54
- export { default as ProPhoneSelector } from './pro/pisellPhoneKeyboard';
55
- export { default as ProPriceKeyboard } from './pro/pisellPriceKeyboardModal';
56
- export { default as ProPriceRadio } from './pro/pisellPriceRadio';
57
- export { default as ProSkuDetailModal } from './pro/skuDetailModal';
58
- export { default as SaasLogin } from './plus/saasLogin';
59
- export { default as SaasRegister } from './plus/saasRegister';
60
- export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
61
- export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
62
- export { default as PinModal } from './components/pinModal';
63
- export { default as PinVerifyModal } from './components/pinVerifyModal';
64
- export { ResponsiveList as SkuList } from './components/list';
65
- export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './components/authentication/admin';
66
- export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps } from './components/authentication/admin';
67
- export { default as ContactInfo } from './plus/contactInfo';
68
- export { default as ContactInfoModal } from './plus/contactInfoModal';
69
- export { Login2, Register2, AuthModal } from './pro/Login2.0';
70
- export { default as WalletEditor } from './plus/walletEditor';
71
- export { default as WalletPassGallery } from './plus/walletPassGallery';
72
- export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
73
- export { default as SelectHolder } from './plus/selectHolder';
74
- export { default as HolderList } from './plus/selectHolder/components/HolderList';
75
- export { default as SettingsRegistry } from './components/systemSettings/registry';
76
- export { default as Selector } from './pro/Selector';
77
- export { default as WebPosLogin } from './plus/webPosLogin';
78
- export { default as PaymentModal } from './components/checkout/plugin';
79
- export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
80
- export { default as KioskSkuDetail } from './components/kioskSkuDetail';
@@ -1,4 +0,0 @@
1
- import { ProductCardConfig } from '../../type';
2
- import './index.less';
3
- declare const CardWrapper: (props: ProductCardConfig) => JSX.Element;
4
- export default CardWrapper;
@@ -1,47 +0,0 @@
1
- import React from 'react';
2
- import ProductCardSkeleton from './ProductCardSkeleton';
3
- import './index.less';
4
- declare type BoolConfigVal = 0 | 1;
5
- export interface ProductCardConfig {
6
- isProductCover?: BoolConfigVal;
7
- imgWidth?: string;
8
- imgHeight?: string;
9
- radius?: number;
10
- isTitle?: BoolConfigVal;
11
- isSubtitle?: BoolConfigVal;
12
- showSpec?: boolean;
13
- isTag?: BoolConfigVal;
14
- isPrice?: BoolConfigVal;
15
- isOriginPrice?: BoolConfigVal;
16
- showZeroPrice?: boolean;
17
- showMarketingTag?: boolean;
18
- showRemark?: boolean;
19
- isStock?: BoolConfigVal;
20
- }
21
- export interface ProductCardProps {
22
- item: any;
23
- index: number;
24
- context?: {
25
- onItemIntersectionIn: (item: any) => void;
26
- onItemIntersectionOut: (item: any) => void;
27
- };
28
- className?: string;
29
- onSelectProduct?: (item: any) => void;
30
- currentProductId?: number;
31
- onSelect?: (item: any) => void;
32
- onSelectCover?: (item: any) => void;
33
- onSelectInfo?: (item: any) => void;
34
- isSelected?: boolean;
35
- decorateConfig?: ProductCardConfig;
36
- }
37
- export declare const ProductCard: React.MemoExoticComponent<({ item, index, context, onSelect, onSelectCover, onSelectInfo, isSelected, className, decorateConfig, }: ProductCardProps) => JSX.Element>;
38
- export declare const DefaultItemContent: React.MemoExoticComponent<(props: {
39
- item: any;
40
- index: number;
41
- context?: {
42
- onItemIntersectionIn: (item: any) => void;
43
- onItemIntersectionOut: (item: any) => void;
44
- } | undefined;
45
- }) => JSX.Element>;
46
- export default ProductCard;
47
- export { ProductCardSkeleton };
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { LoginStep } from './types';
3
- export interface WebPosLoginProps {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- step?: LoginStep;
7
- backgroundImage?: string;
8
- [key: string]: any;
9
- }
10
- declare const WebPosLogin: (props: WebPosLoginProps) => JSX.Element;
11
- export default WebPosLogin;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { WebPosLoginCptProps } from './types';
3
- import './WebPosLoginCpt.less';
4
- /**
5
- * WebPosLoginCpt 主组件
6
- * @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
7
- */
8
- declare const WebPosLoginCpt: React.FC<WebPosLoginCptProps>;
9
- export default WebPosLoginCpt;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { BrandPanelProps } from '../../types';
3
- import './index.less';
4
- /**
5
- * BrandPanel 品牌区组件
6
- * @description 登录页面左侧品牌展示区域,支持轮播图片/视频(预留),当前仅展示 Logo
7
- */
8
- declare const BrandPanel: React.FC<BrandPanelProps>;
9
- export default BrandPanel;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- /**
4
- * LoginPanel 组件 Props
5
- */
6
- export interface LoginPanelProps {
7
- /** 自定义类名 */
8
- className?: string;
9
- /** 子元素 */
10
- children?: React.ReactNode;
11
- /** 登录成功回调 */
12
- onLoginSuccess?: (data: any) => void;
13
- /** 登录配置 */
14
- config?: any;
15
- }
16
- /**
17
- * LoginPanel 登录面板组件
18
- * @description 登录表单容器,由用户自行实现具体登录逻辑
19
- */
20
- declare const LoginPanel: React.FC<LoginPanelProps>;
21
- export default LoginPanel;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { MediaDisplayProps } from "./type";
3
- import './index.less';
4
- /**
5
- * MediaDisplay 媒体组件
6
- * @description 通用媒体展示组件,支持图片/视频展示
7
- * - 支持单个媒体或轮播(预留)
8
- * - 支持全屏模式
9
- * - 支持视频播放控制和状态回调
10
- */
11
- declare const MediaDisplay: React.FC<MediaDisplayProps>;
12
- export default MediaDisplay;
@@ -1,54 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * 媒体轮播项
4
- * @description 媒体展示区的轮播内容配置
5
- */
6
- export interface CarouselItem {
7
- /** 内容类型:图片或视频 */
8
- type: 'image' | 'video' | 'logo';
9
- /** 资源URL */
10
- url: string;
11
- /** 背景颜色 */
12
- backgroundColor?: string;
13
- /** logo样式 */
14
- logoStyle?: React.CSSProperties;
15
- }
16
- /**
17
- * 媒体配置
18
- * @description 媒体展示区域的配置
19
- */
20
- export interface MediaConfig {
21
- /** 轮播内容列表(图片/视频) */
22
- carouselItems?: CarouselItem[];
23
- /** 默认Logo(当无轮播时显示) */
24
- logo?: string;
25
- /** 品牌标语 */
26
- slogan?: string;
27
- }
28
- /**
29
- * 视频播放状态
30
- */
31
- export declare type VideoPlayState = 'idle' | 'playing' | 'paused' | 'ended' | 'error';
32
- /**
33
- * MediaDisplay 媒体展示组件 Props
34
- */
35
- export interface MediaDisplayProps {
36
- /** 品牌配置 */
37
- config?: MediaConfig;
38
- /** 自定义类名 */
39
- className?: string;
40
- /** 是否全屏模式 */
41
- fullscreen?: boolean;
42
- /** 视频是否静音,默认 true */
43
- muted?: boolean;
44
- /** 视频是否循环播放,默认 false */
45
- loop?: boolean;
46
- /** 视频播放结束回调 */
47
- onVideoEnded?: () => void;
48
- /** 视频播放状态变化回调 */
49
- onVideoStateChange?: (state: VideoPlayState) => void;
50
- /** 是否可以关闭(用于控制视频结束后是否允许关闭) */
51
- canClose?: boolean;
52
- /** 关闭回调(视频结束且 canClose 为 true 时触发) */
53
- onClose?: () => void;
54
- }
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { DeviceItem, LocaleType } from '../../types';
3
- import './index.less';
4
- /**
5
- * SelectDevice 组件 Props
6
- */
7
- export interface SelectDeviceProps {
8
- /** 设备列表 */
9
- deviceList?: DeviceItem[];
10
- /** 语言 */
11
- locale?: LocaleType;
12
- /** 加载状态(列表加载) */
13
- loading?: boolean;
14
- /** 上次使用的设备ID */
15
- lastUsedDeviceId?: number;
16
- /** 选择设备回调 */
17
- onSelect?: (device: DeviceItem) => void;
18
- /** 确认按钮文本 */
19
- confirmOkText?: string;
20
- /** 取消按钮文本 */
21
- confirmCancelText?: string;
22
- }
23
- /**
24
- * SelectDevice 设备选择组件
25
- * @description 展示设备列表,支持搜索过滤和选择,已被使用的设备需确认后选择
26
- */
27
- declare const SelectDevice: React.FC<SelectDeviceProps>;
28
- export default SelectDevice;