@pisell/private-materials 3.2.25 → 3.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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +5 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.less +8 -1
- package/es/components/appointmentBooking/components/Header/index.js +4 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/utils.js +8 -5
- package/es/components/booking/forms/footer.d.ts +6 -0
- package/es/components/booking/forms/footer.js +88 -0
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +25 -20
- package/es/components/booking/forms/index.less +7 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/index.d.ts +27 -0
- package/es/components/booking/forms/sendModal/index.js +82 -0
- package/es/components/booking/forms/sendModal/index.less +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +20 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/editService/index.js +71 -51
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +5 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +39 -0
- package/es/components/booking/locales.js +39 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/serve.js +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +8 -8
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +8 -1
- package/lib/components/appointmentBooking/components/Header/index.js +4 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/utils.js +4 -5
- package/lib/components/booking/forms/footer.d.ts +6 -0
- package/lib/components/booking/forms/footer.js +81 -0
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +4 -2
- package/lib/components/booking/forms/index.less +7 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
- package/lib/components/booking/forms/sendModal/index.js +128 -0
- package/lib/components/booking/forms/sendModal/index.less +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +5 -2
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/editService/index.js +12 -2
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +4 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +39 -0
- package/lib/components/booking/locales.js +39 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/serve.js +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/package.json +4 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/booking/info2/service/editService/utils.tsx
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
getAutoAllocationStorage: () => getAutoAllocationStorage,
|
|
23
|
+
setAutoAllocationStorage: () => setAutoAllocationStorage
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(utils_exports);
|
|
26
|
+
var import_utils = require("@pisell/utils");
|
|
27
|
+
var getAutoAllocationStorage = (id) => {
|
|
28
|
+
const value = localStorage.getItem("resource-auto-allocation");
|
|
29
|
+
if (value) {
|
|
30
|
+
const valueObj = JSON.parse(value);
|
|
31
|
+
return (0, import_utils.isBoolean)(valueObj[id]) ? valueObj[id] : true;
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
};
|
|
35
|
+
var setAutoAllocationStorage = (data) => {
|
|
36
|
+
const value = localStorage.getItem("resource-auto-allocation");
|
|
37
|
+
if (value) {
|
|
38
|
+
const valueObj = JSON.parse(value);
|
|
39
|
+
localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...valueObj, ...data }));
|
|
40
|
+
} else {
|
|
41
|
+
localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...data }));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
getAutoAllocationStorage,
|
|
47
|
+
setAutoAllocationStorage
|
|
48
|
+
});
|
|
@@ -201,6 +201,7 @@ declare const _default: {
|
|
|
201
201
|
'page.booking.text.please-choose-an-option-1': string;
|
|
202
202
|
'page.booking.text.please-choose-an-option-2': string;
|
|
203
203
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
204
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
204
205
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
205
206
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
206
207
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -240,6 +241,18 @@ declare const _default: {
|
|
|
240
241
|
'pisell2.text.change.pet.cancel': string;
|
|
241
242
|
'pisell2.text.booking-list': string;
|
|
242
243
|
'pisell2.text.edit-booking': string;
|
|
244
|
+
'pisell2.text.email-error-message': string;
|
|
245
|
+
'pisell2.text.phone-required-error-message': string;
|
|
246
|
+
'pisell2.text.email-required-error-message': string;
|
|
247
|
+
'pisell2.text.send-form-reminder': string;
|
|
248
|
+
'pisell2.text.send-sms-reminder': string;
|
|
249
|
+
'pisell2.text.send-email-reminder': string;
|
|
250
|
+
'pisell2.text.send-form-ok': string;
|
|
251
|
+
'pisell2.text.send-form-toast': string;
|
|
252
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
253
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
254
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
255
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
243
256
|
'pisell2.text.goodpass': string;
|
|
244
257
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
245
258
|
'pisell2.text.goodpass.view-more': string;
|
|
@@ -449,6 +462,7 @@ declare const _default: {
|
|
|
449
462
|
'page.booking.text.please-choose-an-option-1': string;
|
|
450
463
|
'page.booking.text.please-choose-an-option-2': string;
|
|
451
464
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
465
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
452
466
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
453
467
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
454
468
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -488,6 +502,18 @@ declare const _default: {
|
|
|
488
502
|
'pisell2.text.change.pet.cancel': string;
|
|
489
503
|
'pisell2.text.booking-list': string;
|
|
490
504
|
'pisell2.text.edit-booking': string;
|
|
505
|
+
'pisell2.text.email-error-message': string;
|
|
506
|
+
'pisell2.text.phone-required-error-message': string;
|
|
507
|
+
'pisell2.text.email-required-error-message': string;
|
|
508
|
+
'pisell2.text.send-form-reminder': string;
|
|
509
|
+
'pisell2.text.send-sms-reminder': string;
|
|
510
|
+
'pisell2.text.send-email-reminder': string;
|
|
511
|
+
'pisell2.text.send-form-ok': string;
|
|
512
|
+
'pisell2.text.send-form-toast': string;
|
|
513
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
514
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
515
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
516
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
491
517
|
'pisell2.text.goodpass': string;
|
|
492
518
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
493
519
|
'pisell2.text.goodpass.view-more': string;
|
|
@@ -697,6 +723,7 @@ declare const _default: {
|
|
|
697
723
|
'page.booking.text.please-choose-an-option-1': string;
|
|
698
724
|
'page.booking.text.please-choose-an-option-2': string;
|
|
699
725
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
726
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
700
727
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
701
728
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
702
729
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -736,6 +763,18 @@ declare const _default: {
|
|
|
736
763
|
'pisell2.text.change.pet.cancel': string;
|
|
737
764
|
'pisell2.text.booking-list': string;
|
|
738
765
|
'pisell2.text.edit-booking': string;
|
|
766
|
+
'pisell2.text.email-error-message': string;
|
|
767
|
+
'pisell2.text.phone-required-error-message': string;
|
|
768
|
+
'pisell2.text.email-required-error-message': string;
|
|
769
|
+
'pisell2.text.send-form-reminder': string;
|
|
770
|
+
'pisell2.text.send-sms-reminder': string;
|
|
771
|
+
'pisell2.text.send-email-reminder': string;
|
|
772
|
+
'pisell2.text.send-form-ok': string;
|
|
773
|
+
'pisell2.text.send-form-toast': string;
|
|
774
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
775
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
776
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
777
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
739
778
|
'pisell2.text.goodpass': string;
|
|
740
779
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
741
780
|
'pisell2.text.goodpass.view-more': string;
|
|
@@ -257,6 +257,7 @@ var locales_default = {
|
|
|
257
257
|
"page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
|
|
258
258
|
"page.booking.text.please-choose-an-option-2": "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)",
|
|
259
259
|
"page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`,
|
|
260
|
+
"page.booking.text.resource.check-auto-allocation-tip": `When checked, content will be automatically filled in without manual selection`,
|
|
260
261
|
"page.booking.text.price-extra": (origin, current) => `Original price of the item:${origin},Current price of the item:${current}`,
|
|
261
262
|
"pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
|
|
262
263
|
"pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
|
|
@@ -296,6 +297,18 @@ var locales_default = {
|
|
|
296
297
|
"pisell2.text.change.pet.cancel": "Discard (Clear items)",
|
|
297
298
|
"pisell2.text.booking-list": "List",
|
|
298
299
|
"pisell2.text.edit-booking": "Edit",
|
|
300
|
+
"pisell2.text.email-error-message": "Email format error",
|
|
301
|
+
"pisell2.text.phone-required-error-message": "Please enter a phone number",
|
|
302
|
+
"pisell2.text.email-required-error-message": "Please enter an email address",
|
|
303
|
+
"pisell2.text.send-form-reminder": "Send Form Reminder",
|
|
304
|
+
"pisell2.text.send-sms-reminder": "Send SMS Reminder",
|
|
305
|
+
"pisell2.text.send-email-reminder": "Send Email Reminder",
|
|
306
|
+
"pisell2.text.send-form-ok": "Send",
|
|
307
|
+
"pisell2.text.send-form-toast": "Form reminder sent",
|
|
308
|
+
"pisell2.text.send-form-reminder-completed": "Requested Forms Completed",
|
|
309
|
+
"pisell2.text.send-form-reminder-tooltip": "Refresh forms",
|
|
310
|
+
"pisell2.text.send-form-reminder-refresh": "Forms refreshed successfully",
|
|
311
|
+
"pisell2.text.send-form-reminder-error-message": "Please select at least one reminder method",
|
|
299
312
|
"pisell2.text.goodpass": "GoodPass",
|
|
300
313
|
"pisell2.text.goodpass.product-vouchers": "Product Vouchers",
|
|
301
314
|
"pisell2.text.goodpass.view-more": "View More",
|
|
@@ -531,6 +544,7 @@ var locales_default = {
|
|
|
531
544
|
"page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
|
|
532
545
|
"page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
|
|
533
546
|
"page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`,
|
|
547
|
+
"page.booking.text.resource.check-auto-allocation-tip": `勾选后将自动填入内容,无需手动选择`,
|
|
534
548
|
"page.booking.text.price-extra": (origin, current) => `商品原价:${origin},商品现价:${current}`,
|
|
535
549
|
"pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
|
|
536
550
|
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
|
|
@@ -570,6 +584,18 @@ var locales_default = {
|
|
|
570
584
|
"pisell2.text.change.pet.cancel": "不保留(清空商品)",
|
|
571
585
|
"pisell2.text.booking-list": "列表",
|
|
572
586
|
"pisell2.text.edit-booking": "编辑",
|
|
587
|
+
"pisell2.text.email-error-message": "电子邮件格式错误",
|
|
588
|
+
"pisell2.text.phone-required-error-message": "请输入手机号码",
|
|
589
|
+
"pisell2.text.email-required-error-message": "请输入邮箱地址",
|
|
590
|
+
"pisell2.text.send-form-reminder": "发送表单提醒",
|
|
591
|
+
"pisell2.text.send-sms-reminder": "发送短信提醒",
|
|
592
|
+
"pisell2.text.send-email-reminder": "发送邮件提醒",
|
|
593
|
+
"pisell2.text.send-form-ok": "发送",
|
|
594
|
+
"pisell2.text.send-form-toast": "表单提醒已发送",
|
|
595
|
+
"pisell2.text.send-form-reminder-completed": "已完成所需表单",
|
|
596
|
+
"pisell2.text.send-form-reminder-tooltip": "刷新表单",
|
|
597
|
+
"pisell2.text.send-form-reminder-refresh": "已刷新表单",
|
|
598
|
+
"pisell2.text.send-form-reminder-error-message": "请至少选择一种提醒方式",
|
|
573
599
|
"pisell2.text.goodpass": "商品券",
|
|
574
600
|
"pisell2.text.goodpass.product-vouchers": "商品兑换券",
|
|
575
601
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
@@ -805,6 +831,7 @@ var locales_default = {
|
|
|
805
831
|
"page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
|
|
806
832
|
"page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
|
|
807
833
|
"page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`,
|
|
834
|
+
"page.booking.text.resource.check-auto-allocation-tip": `勾選後將自動填入內容,無需手動選擇`,
|
|
808
835
|
"page.booking.text.price-extra": (origin, current) => `商品原價:${origin},商品現價:${current}`,
|
|
809
836
|
"pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
|
|
810
837
|
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
|
|
@@ -844,6 +871,18 @@ var locales_default = {
|
|
|
844
871
|
"pisell2.text.change.pet.cancel": "不保留(清空商品)",
|
|
845
872
|
"pisell2.text.booking-list": "列表",
|
|
846
873
|
"pisell2.text.edit-booking": "編輯",
|
|
874
|
+
"pisell2.text.email-error-message": "電子郵件格式錯誤",
|
|
875
|
+
"pisell2.text.phone-required-error-message": "請輸入手機號碼",
|
|
876
|
+
"pisell2.text.email-required-error-message": "請輸入電子郵件地址",
|
|
877
|
+
"pisell2.text.send-form-reminder": "發送表單提醒",
|
|
878
|
+
"pisell2.text.send-sms-reminder": "發送短信提醒",
|
|
879
|
+
"pisell2.text.send-email-reminder": "發送郵件提醒",
|
|
880
|
+
"pisell2.text.send-form-ok": "發送",
|
|
881
|
+
"pisell2.text.send-form-toast": "表單提醒已發送",
|
|
882
|
+
"pisell2.text.send-form-reminder-completed": "已完成所需表單",
|
|
883
|
+
"pisell2.text.send-form-reminder-tooltip": "刷新表單",
|
|
884
|
+
"pisell2.text.send-form-reminder-refresh": "已刷新表單",
|
|
885
|
+
"pisell2.text.send-form-reminder-error-message": "請至少選擇一種提醒方式",
|
|
847
886
|
"pisell2.text.goodpass": "商品券",
|
|
848
887
|
"pisell2.text.goodpass.product-vouchers": "商品兌換券",
|
|
849
888
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -105,11 +104,4 @@ export declare const walkInData: {
|
|
|
105
104
|
id: number;
|
|
106
105
|
nickname: string;
|
|
107
106
|
};
|
|
108
|
-
export declare const Provider:
|
|
109
|
-
state: FormState;
|
|
110
|
-
} & {
|
|
111
|
-
dispatch: (params: {
|
|
112
|
-
type: string;
|
|
113
|
-
payload: any;
|
|
114
|
-
}) => void;
|
|
115
|
-
}>;
|
|
107
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
|
|
301
301
|
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -42,7 +42,7 @@ var filterPaymentList = (list, platform = "h5") => {
|
|
|
42
42
|
if (platform === "h5") {
|
|
43
43
|
arr = arr.concat(["globepay.wechat.qrcode", "globepay.alipay.qrcode"]);
|
|
44
44
|
}
|
|
45
|
-
if (!(0, import_utils2.
|
|
45
|
+
if (!(0, import_utils2.isIOS)()) {
|
|
46
46
|
arr = arr.concat(["mw.apple"]);
|
|
47
47
|
}
|
|
48
48
|
_paymentKeys = _paymentKeys.filter((d) => !arr.includes(d));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
4
3
|
order: any;
|
|
@@ -25,11 +24,4 @@ export interface PayGroup {
|
|
|
25
24
|
pay_number?: string;
|
|
26
25
|
_order: any;
|
|
27
26
|
}
|
|
28
|
-
export declare const Provider:
|
|
29
|
-
state: FormState;
|
|
30
|
-
} & {
|
|
31
|
-
dispatch: (params: {
|
|
32
|
-
type: string;
|
|
33
|
-
payload: any;
|
|
34
|
-
}) => void;
|
|
35
|
-
}>;
|
|
27
|
+
export declare const Provider: any, Context: any;
|
|
@@ -42,7 +42,7 @@ var getPaymentList = async (values) => {
|
|
|
42
42
|
if (!(0, import_utils2.isWx)()) {
|
|
43
43
|
arr = arr.concat(["globepay.wechat.jsapi", "superpay.wechat.h5"]);
|
|
44
44
|
}
|
|
45
|
-
if (!(0, import_utils2.
|
|
45
|
+
if (!(0, import_utils2.isIOS)()) {
|
|
46
46
|
arr = arr.concat(["mw.apple"]);
|
|
47
47
|
}
|
|
48
48
|
paymentList = paymentList.filter((d) => !arr.includes(d.service));
|
|
@@ -36,15 +36,18 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_ahooks = require("ahooks");
|
|
38
38
|
var import_serve = require("./serve");
|
|
39
|
+
var import_utils = require("../../../../../utils");
|
|
40
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
39
41
|
var defaultValue = {
|
|
40
42
|
code: "+61",
|
|
41
43
|
phone: ""
|
|
42
44
|
};
|
|
43
45
|
var PhoneField = ({ value, onChange }) => {
|
|
46
|
+
const context = (0, import_useEngineContext.default)();
|
|
47
|
+
import_utils.request.setRequest(context.appHelper.utils.request);
|
|
44
48
|
const codes = (0, import_ahooks.useRequest)(import_serve.getCountries, {
|
|
45
49
|
manual: true
|
|
46
50
|
});
|
|
47
|
-
console.log("codes", codes.data);
|
|
48
51
|
(0, import_react.useEffect)(() => {
|
|
49
52
|
codes.run();
|
|
50
53
|
}, []);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
addWalletCard: any;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
walletDetailState: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
-
}
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
-
state: RechargeState;
|
|
8
|
-
} & {
|
|
9
|
-
dispatch: (params: {
|
|
10
|
-
type: string;
|
|
11
|
-
payload: any;
|
|
12
|
-
}) => void;
|
|
13
|
-
}>;
|
|
14
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
selectedGiftOptionId: string | null;
|
|
4
|
-
cardList: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
}>;
|
|
9
|
-
selectedItem: {
|
|
10
|
-
id?: string;
|
|
11
|
-
gift_price?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
variant_id?: string;
|
|
15
|
-
};
|
|
16
|
-
productId?: string;
|
|
17
|
-
detailId?: string;
|
|
18
|
-
total: string | number;
|
|
19
|
-
rechargeModalOpen: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
-
state: RechargeState;
|
|
23
|
-
} & {
|
|
24
|
-
dispatch: (params: {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.26",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/
|
|
63
|
-
"@pisell/materials": "3.2.23",
|
|
62
|
+
"@pisell/materials": "3.2.24",
|
|
64
63
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/date-picker": "3.0.2"
|
|
64
|
+
"@pisell/date-picker": "3.0.2",
|
|
65
|
+
"@pisell/utils": "1.0.42"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useCart, useSales } from "../../../Sales";
|
|
3
|
-
import { locales } from '@pisell/utils';
|
|
4
|
-
import { PisellCard } from '@pisell/materials';
|
|
5
|
-
import "./index.less";
|
|
6
|
-
var SelectProduct = function SelectProduct() {
|
|
7
|
-
var _cartData$cartItems2;
|
|
8
|
-
var _useSales = useSales(),
|
|
9
|
-
data = _useSales.data;
|
|
10
|
-
var _useCart = useCart(),
|
|
11
|
-
addToCart = _useCart.addToCart,
|
|
12
|
-
cartData = _useCart.cartData;
|
|
13
|
-
var handleAddToCart = function handleAddToCart(product) {
|
|
14
|
-
addToCart(product);
|
|
15
|
-
};
|
|
16
|
-
var renderProductCard = function renderProductCard(product) {
|
|
17
|
-
var _cartData$cartItems;
|
|
18
|
-
var isSelected = cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.some(function (item) {
|
|
19
|
-
return item.id === product.id;
|
|
20
|
-
});
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
key: product.id,
|
|
23
|
-
className: "product-card ".concat(isSelected ? 'product-card-selected' : ''),
|
|
24
|
-
onClick: function onClick() {
|
|
25
|
-
return handleAddToCart(product);
|
|
26
|
-
}
|
|
27
|
-
}, /*#__PURE__*/React.createElement(PisellCard, {
|
|
28
|
-
bodyStyle: {
|
|
29
|
-
padding: '16px'
|
|
30
|
-
}
|
|
31
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "product-content"
|
|
33
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "product-title"
|
|
35
|
-
}, product.title), /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "product-price"
|
|
37
|
-
}, product.price, " ", product.currency))));
|
|
38
|
-
};
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: "select-product-container"
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: "step-header"
|
|
43
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: "step-number"
|
|
45
|
-
}, "Step 1"), /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "step-title"
|
|
47
|
-
}, "Select Product")), /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: "category-section"
|
|
49
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: "category-title"
|
|
51
|
-
}, "Other"), /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: "product-list"
|
|
53
|
-
}, renderProductCard({
|
|
54
|
-
id: '1',
|
|
55
|
-
title: 'appointment',
|
|
56
|
-
price: '1.00',
|
|
57
|
-
currency: 'AUD'
|
|
58
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "cart-section"
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "cart-title"
|
|
62
|
-
}, "Your cart"), cartData !== null && cartData !== void 0 && (_cartData$cartItems2 = cartData.cartItems) !== null && _cartData$cartItems2 !== void 0 && _cartData$cartItems2.length ? /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "cart-items"
|
|
64
|
-
}, cartData.cartItems.map(function (item) {
|
|
65
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
-
key: item.id,
|
|
67
|
-
className: "cart-item"
|
|
68
|
-
}, item.title);
|
|
69
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: "cart-empty"
|
|
71
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: "cart-empty-icon"
|
|
73
|
-
}, "\uD83D\uDED2"), /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
className: "cart-empty-text"
|
|
75
|
-
}, locales.getText('pisell2.event.cart.empty')))));
|
|
76
|
-
};
|
|
77
|
-
export default SelectProduct;
|