@pisell/private-materials 3.3.4 → 3.3.6

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 (47) 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 +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  8. package/es/components/appointmentBooking/hooks.js +11 -14
  9. package/es/components/appointmentBooking/index.js +3 -0
  10. package/es/components/booking/components/voucher/index.js +3 -2
  11. package/es/components/booking/info/utils.js +1 -1
  12. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  13. package/lib/components/appointmentBooking/hooks.js +0 -1
  14. package/lib/components/appointmentBooking/index.js +1 -0
  15. package/lib/components/booking/components/voucher/index.js +3 -2
  16. package/lib/components/booking/info/utils.js +1 -1
  17. package/package.json +4 -4
  18. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -8
  19. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
  20. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -77
  21. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
  22. package/es/components/appointmentBooking/components/Date/index.d.ts +0 -3
  23. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
  24. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -3
  25. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  26. package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
  27. package/es/components/appointmentBooking/hooks.d.ts +0 -104
  28. package/es/components/appointmentBooking/index.d.ts +0 -3
  29. package/es/components/appointmentBooking/locales.d.ts +0 -345
  30. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  31. package/es/components/booking/utils.d.ts +0 -172
  32. package/es/components/wallet/components/WalletCard.d.ts +0 -11
  33. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -8
  34. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
  35. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -77
  36. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
  37. package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -3
  38. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
  39. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -3
  40. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  41. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
  42. package/lib/components/appointmentBooking/hooks.d.ts +0 -104
  43. package/lib/components/appointmentBooking/index.d.ts +0 -3
  44. package/lib/components/appointmentBooking/locales.d.ts +0 -345
  45. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  46. package/lib/components/booking/utils.d.ts +0 -172
  47. package/lib/components/wallet/components/WalletCard.d.ts +0 -11
@@ -1,345 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.event.calendar.limit.unavailable': string;
4
- 'pisell2.event.calendar.limit.sold.out': string;
5
- 'pisell2.event.calendar.limit.call.to.book': string;
6
- 'pisell2.event.calendar.limit.filling.up.fast': string;
7
- 'pisell2.event.calendar.limit.lots.of.space': string;
8
- 'pisell2.event.calendar.booking-closed': string;
9
- 'pisell2.event.calendar.call-to-book': string;
10
- 'pisell2.event.calendar.email-to-book': string;
11
- 'pisell2.event.close.title': string;
12
- 'pisell2.event.close.tip': string;
13
- 'pisell2.event.close.continue': string;
14
- 'pisell2.event.close.exit': string;
15
- 'pisell2.appointment.step': (step: number) => string;
16
- 'pisell2.event.select.category': (val: string) => string;
17
- 'pisell2.event.select.campus': (val: string) => string;
18
- 'pisell2.event.select.event': string;
19
- 'pisell2.event.cart': string;
20
- 'pisell2.event.total': string;
21
- 'pisell2.event.total.gst': (val: string, amount: any) => string;
22
- 'pisell2.event.continue': string;
23
- 'pisell2.event.details': string;
24
- 'pisell2.event.introduction': string;
25
- 'pisell2.event.schedule': string;
26
- 'pisell2.event.teacher': string;
27
- 'pisell2.event.campus': string;
28
- 'pisell2.event.resource': string;
29
- 'pisell2.event.booking.options': string;
30
- 'pisell2.event.add.to.cart': string;
31
- 'pisell2.event.description': string;
32
- 'pisell2.event.view.more': string;
33
- 'pisell2.event.view.less': string;
34
- 'pisell2.event.holder.modal.title': string;
35
- 'pisell2.event.confirm': string;
36
- 'pisell2.event.confirm.information': string;
37
- 'pisell2.event.confirm.information.tip': string;
38
- 'pisell2.event.confirm.information.other': string;
39
- 'pisell2.event.add.others': string;
40
- 'pisell2.event.checkout': string;
41
- 'pisell2.event.edit.event': string;
42
- 'pisell2.event.remove': string;
43
- 'pisell2.event.option': string;
44
- 'pisell2.event.order.items.error.title': string;
45
- 'pisell2.event.order.items.error.tip': (val: number) => string;
46
- 'pisell2.event.order.items.error.proceed': string;
47
- 'pisell2.event.order.items.error.return': string;
48
- 'pisell2.event.order.items.error.back': string;
49
- 'pisell2.event.order.items.error.continue': string;
50
- 'pisell2.event.order.items.error.all.tip': string;
51
- 'pisell2.event.remove.title': string;
52
- 'pisell2.event.remove.tip': string;
53
- 'pisell2.event.remove.cancel': string;
54
- 'pisell2.event.create': string;
55
- 'pisell2.event.search': string;
56
- 'pisell2.event.empty.service': string;
57
- 'pisell2.event.title': (val: number) => string;
58
- 'pisell2.event.create.form': string;
59
- 'pisell2.event.empty.event': string;
60
- 'pisell2.event.error.holder': string;
61
- 'pisell2.event.price.from': string;
62
- 'pisell2.event.empty.holder.title': string;
63
- 'pisell2.event.empty.holder.tip': string;
64
- 'pisell2.event.empty.holder.continue.tip': string;
65
- 'pisell2.event.empty.holder.go.back': string;
66
- 'pisell2.event.empty.holder.continue.anyway': string;
67
- 'pisell2.event.event.full.title': string;
68
- 'pisell2.event.event.full.tip': string;
69
- 'pisell2.event.event.full.ok': string;
70
- 'pisell2.event.capacity.limit.reached.title': string;
71
- 'pisell2.event.capacity.limit.reached.tip': string;
72
- 'pisell2.appointment.booking.empty.service': string;
73
- 'pisell2.appointment.booking.empty.data': string;
74
- 'pisell2.appointment.booking.empty.time': string;
75
- 'pisell2.appointment.service.title': (val: number) => string;
76
- 'pisell2.appointment.add.guest': string;
77
- 'pisell2.appointment.edit.service': string;
78
- 'pisell2.appointment.remove.guest': string;
79
- 'pisell2.appointment.no.available.service': string;
80
- 'pisell2.appointment.max.guest': string;
81
- 'pisell2.appointment.no.available.time': string;
82
- 'pisell2.appointment.monday': string;
83
- 'pisell2.appointment.tuesday': string;
84
- 'pisell2.appointment.wednesday': string;
85
- 'pisell2.appointment.thursday': string;
86
- 'pisell2.appointment.friday': string;
87
- 'pisell2.appointment.saturday': string;
88
- 'pisell2.appointment.sunday': string;
89
- 'pisell2.appointment.any.professional': string;
90
- 'pisell2.appointment.for.maximum.availability': string;
91
- 'pisell2.appointment.deposit': string;
92
- 'pisell2.appointment.deposit.agreed': string;
93
- 'pisell2.appointment.deposit.agree.policy': string;
94
- 'pisell2.appointment.deposit.and': string;
95
- 'pisell2.appointment.deposit.amount.tip1': string;
96
- 'pisell2.appointment.deposit.amount.tip2': string;
97
- 'pisell2.appointment.deposit.close': string;
98
- 'pisell2.appointment.tips': string;
99
- 'pisell2.appointment.tips.content': string;
100
- 'pisell2.appointment.fill-form': string;
101
- 'pisell2.appointment.select.holder': (val: string) => string;
102
- 'pisell2.appointment.select.time': string;
103
- 'pisell2.appointment.unselect.time': string;
104
- 'pisell2.appointment.unselect.date': string;
105
- 'pisell2.appointment.add-guests': string;
106
- 'pisell2.text.apply': string;
107
- 'pisell2.text.goodpass': string;
108
- 'pisell2.text.goodpass.product-vouchers': string;
109
- 'pisell2.text.goodpass.view-more': string;
110
- 'pisell2.text.goodpass.code': string;
111
- 'pisell2.text.goodpass.enter-code': string;
112
- 'pisell2.text.goodpass.code-invalid': string;
113
- 'pisell2.text.goodpass.login': string;
114
- 'pisell2.text.goodpass.login-tip': string;
115
- };
116
- 'zh-CN': {
117
- 'pisell2.event.calendar.limit.unavailable': string;
118
- 'pisell2.event.calendar.limit.sold.out': string;
119
- 'pisell2.event.calendar.limit.call.to.book': string;
120
- 'pisell2.event.calendar.limit.filling.up.fast': string;
121
- 'pisell2.event.calendar.limit.lots.of.space': string;
122
- 'pisell2.event.calendar.booking-closed': string;
123
- 'pisell2.event.calendar.call-to-book': string;
124
- 'pisell2.event.calendar.email-to-book': string;
125
- 'pisell2.event.close.title': string;
126
- 'pisell2.event.close.tip': string;
127
- 'pisell2.event.close.continue': string;
128
- 'pisell2.event.close.exit': string;
129
- 'pisell2.appointment.step': (step: number) => string;
130
- 'pisell2.event.select.category': (val: string) => string;
131
- 'pisell2.event.select.event': string;
132
- 'pisell2.event.select.campus': (val: string) => string;
133
- 'pisell2.event.cart': string;
134
- 'pisell2.event.total': string;
135
- 'pisell2.event.total.gst': (val: string, amount: any) => string;
136
- 'pisell2.event.continue': string;
137
- 'pisell2.event.details': string;
138
- 'pisell2.event.introduction': string;
139
- 'pisell2.event.schedule': string;
140
- 'pisell2.event.teacher': string;
141
- 'pisell2.event.campus': string;
142
- 'pisell2.event.resource': string;
143
- 'pisell2.event.booking.options': string;
144
- 'pisell2.event.add.to.cart': string;
145
- 'pisell2.event.description': string;
146
- 'pisell2.event.view.more': string;
147
- 'pisell2.event.view.less': string;
148
- 'pisell2.event.holder.modal.title': string;
149
- 'pisell2.event.confirm': string;
150
- 'pisell2.event.confirm.information': string;
151
- 'pisell2.event.confirm.information.tip': string;
152
- 'pisell2.event.confirm.information.other': string;
153
- 'pisell2.event.add.others': string;
154
- 'pisell2.event.checkout': string;
155
- 'pisell2.event.edit.event': string;
156
- 'pisell2.event.remove': string;
157
- 'pisell2.event.option': string;
158
- 'pisell2.event.order.items.error.title': string;
159
- 'pisell2.event.order.items.error.tip': (val: number) => string;
160
- 'pisell2.event.order.items.error.proceed': string;
161
- 'pisell2.event.order.items.error.return': string;
162
- 'pisell2.event.order.items.error.back': string;
163
- 'pisell2.event.order.items.error.continue': string;
164
- 'pisell2.event.order.items.error.all.tip': string;
165
- 'pisell2.event.remove.title': string;
166
- 'pisell2.event.remove.tip': string;
167
- 'pisell2.event.remove.cancel': string;
168
- 'pisell2.event.create': string;
169
- 'pisell2.event.search': string;
170
- 'pisell2.event.empty.service': string;
171
- 'pisell2.event.title': (val: number) => string;
172
- 'pisell2.event.create.form': string;
173
- 'pisell2.event.empty.event': string;
174
- 'pisell2.event.error.holder': string;
175
- 'pisell2.event.price.from': string;
176
- 'pisell2.event.empty.holder.title': string;
177
- 'pisell2.event.empty.holder.tip': string;
178
- 'pisell2.event.empty.holder.continue.tip': string;
179
- 'pisell2.event.empty.holder.go.back': string;
180
- 'pisell2.event.empty.holder.continue.anyway': string;
181
- 'pisell2.event.event.full.title': string;
182
- 'pisell2.event.event.full.tip': string;
183
- 'pisell2.event.event.full.ok': string;
184
- 'pisell2.event.capacity.limit.reached.title': string;
185
- 'pisell2.event.capacity.limit.reached.tip': string;
186
- 'pisell2.appointment.booking.empty.service': string;
187
- 'pisell2.appointment.booking.empty.data': string;
188
- 'pisell2.appointment.booking.empty.time': string;
189
- 'pisell2.appointment.service.title': (val: number) => string;
190
- 'pisell2.appointment.add.guest': string;
191
- 'pisell2.appointment.edit.service': string;
192
- 'pisell2.appointment.remove.guest': string;
193
- 'pisell2.appointment.no.available.service': string;
194
- 'pisell2.appointment.max.guest': string;
195
- 'pisell2.appointment.no.available.time': string;
196
- 'pisell2.appointment.monday': string;
197
- 'pisell2.appointment.tuesday': string;
198
- 'pisell2.appointment.wednesday': string;
199
- 'pisell2.appointment.thursday': string;
200
- 'pisell2.appointment.friday': string;
201
- 'pisell2.appointment.saturday': string;
202
- 'pisell2.appointment.sunday': string;
203
- 'pisell2.appointment.any.professional': string;
204
- 'pisell2.appointment.for.maximum.availability': string;
205
- 'pisell2.appointment.deposit': string;
206
- 'pisell2.appointment.deposit.agreed': string;
207
- 'pisell2.appointment.deposit.agree.policy': string;
208
- 'pisell2.appointment.deposit.and': string;
209
- 'pisell2.appointment.deposit.amount.tip1': string;
210
- 'pisell2.appointment.deposit.amount.tip2': string;
211
- 'pisell2.appointment.deposit.close': string;
212
- 'pisell2.appointment.tips': string;
213
- 'pisell2.appointment.tips.content': string;
214
- 'pisell2.appointment.fill-form': string;
215
- 'pisell2.appointment.select.holder': (val: string) => string;
216
- 'pisell2.appointment.select.time': string;
217
- 'pisell2.appointment.unselect.time': string;
218
- 'pisell2.appointment.unselect.date': string;
219
- 'pisell2.appointment.add-guests': string;
220
- 'pisell2.text.apply': string;
221
- 'pisell2.text.goodpass': string;
222
- 'pisell2.text.goodpass.product-vouchers': string;
223
- 'pisell2.text.goodpass.view-more': string;
224
- 'pisell2.text.goodpass.code': string;
225
- 'pisell2.text.goodpass.enter-code': string;
226
- 'pisell2.text.goodpass.code-invalid': string;
227
- 'pisell2.text.goodpass.login': string;
228
- 'pisell2.text.goodpass.login-tip': string;
229
- };
230
- 'zh-HK': {
231
- 'pisell2.event.calendar.limit.unavailable': string;
232
- 'pisell2.event.calendar.limit.sold.out': string;
233
- 'pisell2.event.calendar.limit.call.to.book': string;
234
- 'pisell2.event.calendar.limit.filling.up.fast': string;
235
- 'pisell2.event.calendar.limit.lots.of.space': string;
236
- 'pisell2.event.calendar.booking-closed': string;
237
- 'pisell2.event.calendar.call-to-book': string;
238
- 'pisell2.event.calendar.email-to-book': string;
239
- 'pisell2.event.close.title': string;
240
- 'pisell2.event.close.tip': string;
241
- 'pisell2.event.close.continue': string;
242
- 'pisell2.event.close.exit': string;
243
- 'pisell2.appointment.step': (step: number) => string;
244
- 'pisell2.event.select.category': (val: string) => string;
245
- 'pisell2.event.select.event': string;
246
- 'pisell2.event.select.campus': (val: string) => string;
247
- 'pisell2.event.cart': string;
248
- 'pisell2.event.total': string;
249
- 'pisell2.event.total.gst': (val: string, amount: any) => string;
250
- 'pisell2.event.continue': string;
251
- 'pisell2.event.details': string;
252
- 'pisell2.event.introduction': string;
253
- 'pisell2.event.schedule': string;
254
- 'pisell2.event.teacher': string;
255
- 'pisell2.event.campus': string;
256
- 'pisell2.event.resource': string;
257
- 'pisell2.event.booking.options': string;
258
- 'pisell2.event.add.to.cart': string;
259
- 'pisell2.event.description': string;
260
- 'pisell2.event.view.more': string;
261
- 'pisell2.event.view.less': string;
262
- 'pisell2.event.holder.modal.title': string;
263
- 'pisell2.event.confirm': string;
264
- 'pisell2.event.confirm.information': string;
265
- 'pisell2.event.confirm.information.tip': string;
266
- 'pisell2.event.confirm.information.other': string;
267
- 'pisell2.event.add.others': string;
268
- 'pisell2.event.checkout': string;
269
- 'pisell2.event.edit.event': string;
270
- 'pisell2.event.remove': string;
271
- 'pisell2.event.option': string;
272
- 'pisell2.event.order.items.error.title': string;
273
- 'pisell2.event.order.items.error.tip': (val: number) => string;
274
- 'pisell2.event.order.items.error.proceed': string;
275
- 'pisell2.event.order.items.error.return': string;
276
- 'pisell2.event.order.items.error.back': string;
277
- 'pisell2.event.order.items.error.continue': string;
278
- 'pisell2.event.order.items.error.all.tip': string;
279
- 'pisell2.event.remove.title': string;
280
- 'pisell2.event.remove.tip': string;
281
- 'pisell2.event.remove.cancel': string;
282
- 'pisell2.event.create': string;
283
- 'pisell2.event.search': string;
284
- 'pisell2.event.empty.service': string;
285
- 'pisell2.event.title': (val: number) => string;
286
- 'pisell2.event.create.form': string;
287
- 'pisell2.event.empty.event': string;
288
- 'pisell2.event.error.holder': string;
289
- 'pisell2.event.price.from': string;
290
- 'pisell2.event.empty.holder.title': string;
291
- 'pisell2.event.empty.holder.tip': string;
292
- 'pisell2.event.empty.holder.continue.tip': string;
293
- 'pisell2.event.empty.holder.go.back': string;
294
- 'pisell2.event.empty.holder.continue.anyway': string;
295
- 'pisell2.event.event.full.title': string;
296
- 'pisell2.event.event.full.tip': string;
297
- 'pisell2.event.event.full.ok': string;
298
- 'pisell2.event.capacity.limit.reached.title': string;
299
- 'pisell2.event.capacity.limit.reached.tip': string;
300
- 'pisell2.appointment.booking.empty.service': string;
301
- 'pisell2.appointment.booking.empty.data': string;
302
- 'pisell2.appointment.booking.empty.time': string;
303
- 'pisell2.appointment.service.title': (val: number) => string;
304
- 'pisell2.appointment.add.guest': string;
305
- 'pisell2.appointment.edit.service': string;
306
- 'pisell2.appointment.remove.guest': string;
307
- 'pisell2.appointment.no.available.service': string;
308
- 'pisell2.appointment.max.guest': string;
309
- 'pisell2.appointment.no.available.time': string;
310
- 'pisell2.appointment.monday': string;
311
- 'pisell2.appointment.tuesday': string;
312
- 'pisell2.appointment.wednesday': string;
313
- 'pisell2.appointment.thursday': string;
314
- 'pisell2.appointment.friday': string;
315
- 'pisell2.appointment.saturday': string;
316
- 'pisell2.appointment.sunday': string;
317
- 'pisell2.appointment.any.professional': string;
318
- 'pisell2.appointment.for.maximum.availability': string;
319
- 'pisell2.appointment.deposit': string;
320
- 'pisell2.appointment.deposit.agreed': string;
321
- 'pisell2.appointment.deposit.agree.policy': string;
322
- 'pisell2.appointment.deposit.and': string;
323
- 'pisell2.appointment.deposit.amount.tip1': string;
324
- 'pisell2.appointment.deposit.amount.tip2': string;
325
- 'pisell2.appointment.deposit.close': string;
326
- 'pisell2.appointment.tips': string;
327
- 'pisell2.appointment.tips.content': string;
328
- 'pisell2.appointment.fill-form': string;
329
- 'pisell2.appointment.select.holder': (val: string) => string;
330
- 'pisell2.appointment.select.time': string;
331
- 'pisell2.appointment.unselect.time': string;
332
- 'pisell2.appointment.unselect.date': string;
333
- 'pisell2.appointment.add-guests': string;
334
- 'pisell2.text.apply': string;
335
- 'pisell2.text.goodpass': string;
336
- 'pisell2.text.goodpass.product-vouchers': string;
337
- 'pisell2.text.goodpass.view-more': string;
338
- 'pisell2.text.goodpass.code': string;
339
- 'pisell2.text.goodpass.enter-code': string;
340
- 'pisell2.text.goodpass.code-invalid': string;
341
- 'pisell2.text.goodpass.login': string;
342
- 'pisell2.text.goodpass.login-tip': string;
343
- };
344
- };
345
- export default _default;
@@ -1,5 +0,0 @@
1
- import './index.less';
2
- declare const ServiceList: ({ onEdit }: {
3
- onEdit: any;
4
- }) => JSX.Element;
5
- export default ServiceList;
@@ -1,172 +0,0 @@
1
- import dayjs from 'dayjs';
2
- declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
3
- declare class Request {
4
- private request;
5
- constructor();
6
- setRequest(val: any): void;
7
- getRequest(): {
8
- get: RType;
9
- post: RType;
10
- put: RType;
11
- remove: RType;
12
- custom: RType;
13
- };
14
- }
15
- export declare const request: Request;
16
- /**
17
- * @title: 格式化持续时长用于展示
18
- * @description:
19
- * @param {number} service_times
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-04-26 14:00
23
- */
24
- export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
25
- /**
26
- * @title: 时间切片
27
- * @description:
28
- * @param {any} config
29
- * @param {string} locale
30
- * @return {*}
31
- * @Author: zhiwei.Wang
32
- * @Date: 2024-04-26 13:59
33
- */
34
- export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
35
- timeSlices: {
36
- label: string;
37
- value: string;
38
- }[];
39
- durationSlicesBasedOnTime: {
40
- label: string;
41
- value: number;
42
- }[];
43
- };
44
- export declare const getNowTime: () => string;
45
- export declare const isNowTime: (time: string) => boolean;
46
- /**
47
- * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
48
- * @description:
49
- * @param {string} start_time
50
- * @return {*}
51
- * @Author: zhiwei.Wang
52
- * @Date: 2024-04-26 14:03
53
- */
54
- export declare const getServeStartTime: (start_time: string) => string;
55
- /**
56
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
57
- * @description:
58
- * @param {any} item
59
- * @param {any} currentDate
60
- * @return {*}
61
- * @Author: zhiwei.Wang
62
- * @Date: 2024-04-26 14:04
63
- */
64
- export declare const getServiceTime: (item: any, currentDate: any) => string;
65
- export declare const findNextSlice: ({ timeSlices, index, date, }: {
66
- timeSlices: any[];
67
- index?: number | undefined;
68
- date?: string | undefined;
69
- }) => any;
70
- export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
71
- export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
72
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
73
- /**
74
- * @title: 查找是否有可用的time
75
- * @description:
76
- * @param {any} resourceItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-01-09 13:57
80
- */
81
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
82
- /**
83
- * @title: 获取店铺的营业结束时间
84
- * @description:
85
- * @return {*}
86
- * @Author: zhiwei.Wang
87
- * @Date: 2024-02-23 10:00
88
- */
89
- export declare const getShopOpeningHours: () => string;
90
- /**
91
- * @title: 对灵活时长进行处理
92
- * @description:
93
- * @return {*}
94
- * @Author: zhiwei.Wang
95
- * @Date: 2024-02-23 10:00
96
- */
97
- export declare const flexibleObj: {
98
- create: (num: number) => any;
99
- getValue: (str: string | number) => number;
100
- isFlexible: (str: string | number) => boolean;
101
- add: (current: number | string, duration: number) => any;
102
- };
103
- /**
104
- * @title: 获取结束时间
105
- * @description: 取 endDate | 店铺营业时间 最小的那一个
106
- * @param {any} startDate
107
- * @param {string} duration
108
- * @param {any} endDate
109
- * @return {*}
110
- * @Author: zhiwei.Wang
111
- * @Date: 2024-02-23 10:01
112
- */
113
- export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
114
- export declare const getServiceTimes: (service: any) => {
115
- startDate: dayjs.Dayjs;
116
- endDate: dayjs.Dayjs;
117
- };
118
- export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
119
- label: any;
120
- type: string;
121
- }[];
122
- /**
123
- * @title: 格式化资源, 添加自定义参数
124
- * @description:
125
- * @param {any} resourceItem
126
- * @return {*}
127
- * @Author: zhiwei.Wang
128
- * @Date: 2024-01-09 13:40
129
- */
130
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
131
- export declare const getLastServer: (list: any) => any;
132
- export declare const getCacheParams: () => any;
133
- export declare const deleteCacheParams: () => void;
134
- /**
135
- * @title: 获取跨日预约的时长
136
- * @description:
137
- * @param {any} cacheItem
138
- * @return {*}
139
- * @Author: WangHan
140
- * @Date: 2024-12-01 22:43
141
- */
142
- export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
143
- export declare const isSessionProduct: (cacheItem: any) => boolean;
144
- /**
145
- * @title: 创建一个服务商品
146
- * @description:
147
- * @param {any} state
148
- * @param {any} item
149
- * @return {*}
150
- * @Author: zhiwei.Wang
151
- * @Date: 2024-01-26 14:09
152
- */
153
- export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
154
- export declare const getProductTotalPrice: (item: any) => number;
155
- /**
156
- * @title: 判断 duration
157
- * @description: 用于处理不同格式的duration
158
- * @param {number} duration
159
- * @return {*}
160
- * @Author: zhiwei.Wang
161
- * @Date: 2024-02-23 10:02
162
- */
163
- export declare const getDuration: (duration: number | {
164
- type: string;
165
- value: number;
166
- }) => number | "flexible" | {
167
- type: string;
168
- value: number;
169
- };
170
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
171
- export declare const getIsEdit: (state: any) => boolean;
172
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { IWalletListItemProps } from '../serve';
3
- export interface WalletCardProps {
4
- item: IWalletListItemProps;
5
- currentId?: string | number;
6
- isDiscountCard?: boolean;
7
- onClick?: () => void;
8
- balanceTitle?: string;
9
- }
10
- declare const _default: React.NamedExoticComponent<WalletCardProps>;
11
- export default _default;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ContinueButtonProps {
4
- onContinue?: () => void;
5
- onIsErrorResource?: (isError: boolean) => void;
6
- }
7
- declare const ContinueButton: React.FC<ContinueButtonProps>;
8
- export default ContinueButton;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
- export default Total;
@@ -1,77 +0,0 @@
1
- import { locales } from '@pisell/utils';
2
- interface CheckLoginParams {
3
- isLogin: boolean;
4
- openLoginModal: (params: {
5
- callback: (status: string) => void;
6
- }) => void;
7
- isFormSubject: boolean;
8
- utils: any;
9
- accountLists: any[];
10
- appointmentBooking: any;
11
- getHolders: () => void;
12
- }
13
- export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
14
- interface CheckHolderParams {
15
- isFormSubject: boolean;
16
- checkAccount: (type: string) => boolean;
17
- carts: any[];
18
- }
19
- export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
20
- interface CheckResourceParams {
21
- carts: any[];
22
- resources: any[];
23
- }
24
- /**
25
- * @title: 检测资源数据
26
- * @description:
27
- * @param {CheckResourceParams} param1
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2025-04-29 18:02
31
- */
32
- export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
33
- interface CheckResourceParams {
34
- carts: any[];
35
- }
36
- interface HandleFormStepParams {
37
- newCarts: any[];
38
- addStep: (params: {
39
- index: number;
40
- key: string;
41
- description: string;
42
- }) => void;
43
- removeStep: (key: string) => void;
44
- setResourceOtherParams: (params: any) => void;
45
- resourceOtherParams: any;
46
- index: number;
47
- locales: typeof locales;
48
- }
49
- export declare const handleFormStep: ({ newCarts, addStep, removeStep, setResourceOtherParams, resourceOtherParams, index, locales, }: HandleFormStepParams) => void;
50
- /**
51
- * 滚动到第一个错误卡片
52
- * @param {string} selector - 错误卡片的 class 选择器
53
- */
54
- export declare const scrollToFirstErrorCard: (selector?: string) => void;
55
- export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
56
- interface HandleResourceParams {
57
- handleCheckResource: () => boolean;
58
- newCarts: any[];
59
- locales: typeof locales;
60
- addStep: (params: {
61
- index: number;
62
- key: string;
63
- description: string;
64
- }, key?: StepKey) => void;
65
- removeStep: (key: string) => void;
66
- setResourceOtherParams: (params: any) => void;
67
- resourceOtherParams: any;
68
- currentStep: any;
69
- getResourceTimeSlot: () => void;
70
- appointmentBooking: any;
71
- onIsErrorResource?: (isError: boolean) => void;
72
- stepList: any[];
73
- }
74
- export declare const handleResource: ({ handleCheckResource, newCarts, addStep, removeStep, setResourceOtherParams, resourceOtherParams, currentStep, getResourceTimeSlot, appointmentBooking, onIsErrorResource, stepList }: HandleResourceParams) => Promise<void>;
75
- export declare const stepHandlers: Record<StepKey, (params: any) => Promise<any>>;
76
- export declare const handleContinueStep: (key: StepKey, params: any) => Promise<any>;
77
- export {};
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Layout: () => JSX.Element;
3
- export default Layout;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const CalendarDate: (props: any) => JSX.Element;
3
- export default CalendarDate;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Footer: ({ onContinue }: any) => JSX.Element;
3
- export default Footer;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Resource: () => JSX.Element;
3
- export default Resource;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const DepositModal: (props: any) => JSX.Element;
3
- export default DepositModal;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Deposit: (props: any) => JSX.Element;
3
- export default Deposit;