@pisell/private-materials 6.4.41 → 6.4.43
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 +8 -8
- 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/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/actionButtons/index.js +37 -42
- package/es/components/booking/components/actionButtons/index.less +0 -28
- package/es/components/booking/components/footer/amount.d.ts +3 -3
- package/es/components/booking/components/footer/amount.js +13 -2
- package/es/components/booking/components/footer/index.js +168 -68
- package/es/components/booking/components/footer/utils.js +62 -33
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/addService/index.js +2 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/index.js +42 -2
- package/es/components/booking/info2/service/addService/index.js +2 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +12 -4
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.d.ts +2 -0
- package/es/components/checkout/PaymentModal.js +395 -240
- package/es/components/checkout/components/AdditionalModule/index.less +1 -1
- package/es/components/checkout/components/AmountSummary/index.js +161 -54
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +114 -137
- package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +210 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
- package/es/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/components/WalletPassModule/index.js +3 -2
- package/es/components/checkout/components/WalletPassModule/utils.js +6 -1
- package/es/components/checkout/hooks/useWalletPass.js +2 -0
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +33 -0
- package/es/components/checkout/locales.js +39 -3
- package/es/components/checkout/types.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Cart/Product.js +143 -71
- package/es/components/shoppingCart/components/Cart/index.js +1 -1
- package/es/components/shoppingCart/components/Cart/index.less +31 -0
- package/es/components/shoppingCart/locales.d.ts +3 -0
- package/es/components/shoppingCart/locales.js +12 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +310 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +442 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/priceKeyboard/index.js +3 -0
- package/es/pro/priceKeyboard/index.less +215 -0
- package/es/pro/priceKeyboard/utils.d.ts +31 -0
- package/es/pro/priceKeyboard/utils.js +51 -0
- package/es/pro/skuDetailModal/index.js +19 -16
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/actionButtons/index.js +31 -28
- package/lib/components/booking/components/actionButtons/index.less +0 -28
- package/lib/components/booking/components/footer/amount.d.ts +3 -3
- package/lib/components/booking/components/footer/amount.js +10 -4
- package/lib/components/booking/components/footer/index.js +107 -40
- package/lib/components/booking/components/footer/utils.js +35 -7
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +2 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.js +18 -1
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +12 -4
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.d.ts +2 -0
- package/lib/components/checkout/PaymentModal.js +152 -73
- package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
- package/lib/components/checkout/components/AmountSummary/index.js +114 -40
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +103 -140
- package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +172 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/components/WalletPassModule/index.js +3 -2
- package/lib/components/checkout/components/WalletPassModule/utils.js +4 -1
- package/lib/components/checkout/hooks/useWalletPass.js +2 -0
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +33 -0
- package/lib/components/checkout/locales.js +39 -3
- package/lib/components/checkout/types.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
- package/lib/components/shoppingCart/components/Cart/index.js +1 -1
- package/lib/components/shoppingCart/components/Cart/index.less +31 -0
- package/lib/components/shoppingCart/locales.d.ts +3 -0
- package/lib/components/shoppingCart/locales.js +6 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/lib/components/ticketBooking/index.js +5 -1
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +332 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +485 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/priceKeyboard/index.js +45 -0
- package/lib/pro/priceKeyboard/index.less +215 -0
- package/lib/pro/priceKeyboard/utils.d.ts +31 -0
- package/lib/pro/priceKeyboard/utils.js +75 -0
- package/lib/pro/skuDetailModal/index.js +18 -22
- package/package.json +3 -3
@@ -51,6 +51,7 @@ var locales_default = {
|
|
51
51
|
"balance.due": "Balance Due",
|
52
52
|
"deposit.due": "Deposit Due",
|
53
53
|
"partial.paid": "Partial Paid",
|
54
|
+
"deposit.partial.paid": "Deposit Paid",
|
54
55
|
"split.payment": "Pay\nPartially",
|
55
56
|
// Cash Payment
|
56
57
|
"cash": "Cash",
|
@@ -114,6 +115,7 @@ var locales_default = {
|
|
114
115
|
"wallet-pass-module-disabled-modal-title": "Unable to use",
|
115
116
|
"wallet-pass-module-disabled-modal-empty": "No unusable cards",
|
116
117
|
"wallet-pass-module-discount-partially-paid": "Promotion cannot be changed on partially paid orders or used wallet",
|
118
|
+
"wallet-pass-module-discount-order-free": "The order total is free, can not use wallet",
|
117
119
|
// Additional Module
|
118
120
|
"additional.options": "Additional Options",
|
119
121
|
"add.tip": "Add Tip",
|
@@ -208,7 +210,17 @@ var locales_default = {
|
|
208
210
|
"pisell2.checkout.order-sync-failed": "Order sync failed, please check your network",
|
209
211
|
"pisell2.checkout.sync-retry-hint": "Network error, please click the retry button to resync the order",
|
210
212
|
"pisell2.checkout.tips": "Tips",
|
211
|
-
"retry": "Retry"
|
213
|
+
"retry": "Retry",
|
214
|
+
// Cash Payment Module
|
215
|
+
"cash-payment-title": "Cash Payment",
|
216
|
+
"cash-payment-balance-due": "Balance Due",
|
217
|
+
"cash-payment-cash-received": "Cash Received",
|
218
|
+
"cash-payment-change-due": "Change Due",
|
219
|
+
"cash-payment-rounding": "Rounding",
|
220
|
+
"cash-payment-other": "Other",
|
221
|
+
"cash-payment-reset": "Reset",
|
222
|
+
"cash-payment-pay": "Pay",
|
223
|
+
"cash-payment-amount-cannot-be-zero": "The amount cannot be 0"
|
212
224
|
},
|
213
225
|
"zh-CN": {
|
214
226
|
// Order and Payment
|
@@ -238,6 +250,7 @@ var locales_default = {
|
|
238
250
|
"balance.due": "应付金额",
|
239
251
|
"deposit.due": "定金待支付金额",
|
240
252
|
"partial.paid": "部分支付",
|
253
|
+
"deposit.partial.paid": "定金部分支付",
|
241
254
|
"split.payment": "部分付款",
|
242
255
|
// Cash Payment
|
243
256
|
"cash": "现金",
|
@@ -301,6 +314,7 @@ var locales_default = {
|
|
301
314
|
"wallet-pass-module-disabled-modal-title": "无法使用的卡券",
|
302
315
|
"wallet-pass-module-disabled-modal-empty": "暂无不可用卡券",
|
303
316
|
"wallet-pass-module-discount-partially-paid": "部分付款或已使用钱包的订单不可修改促销",
|
317
|
+
"wallet-pass-module-discount-order-free": "订单金额为0,不可使用折扣卡或商品券",
|
304
318
|
// Additional Module
|
305
319
|
"additional.options": "附加选项",
|
306
320
|
"add.tip": "添加小费",
|
@@ -399,7 +413,17 @@ var locales_default = {
|
|
399
413
|
"pisell2.checkout.order-sync-failed": "订单同步失败,请检查网络",
|
400
414
|
"pisell2.checkout.sync-retry-hint": "网络异常,请点击重试按钮重新同步订单",
|
401
415
|
"pisell2.checkout.tips": "提示",
|
402
|
-
"retry": "重试"
|
416
|
+
"retry": "重试",
|
417
|
+
// 现金支付模块
|
418
|
+
"cash-payment-title": "现金支付",
|
419
|
+
"cash-payment-balance-due": "应付金额",
|
420
|
+
"cash-payment-cash-received": "实收金额",
|
421
|
+
"cash-payment-change-due": "找零金额",
|
422
|
+
"cash-payment-rounding": "抹零",
|
423
|
+
"cash-payment-other": "其他",
|
424
|
+
"cash-payment-reset": "重置",
|
425
|
+
"cash-payment-pay": "支付",
|
426
|
+
"cash-payment-amount-cannot-be-zero": "金额不能为0"
|
403
427
|
},
|
404
428
|
"zh-HK": {
|
405
429
|
// Order and Payment
|
@@ -429,6 +453,7 @@ var locales_default = {
|
|
429
453
|
"balance.due": "應付金額",
|
430
454
|
"deposit.due": "定金待支付金額",
|
431
455
|
"partial.paid": "部分支付",
|
456
|
+
"deposit.partial.paid": "定金部分支付",
|
432
457
|
"split.payment": "部分付款",
|
433
458
|
// Cash Payment
|
434
459
|
"cash": "現金",
|
@@ -499,6 +524,7 @@ var locales_default = {
|
|
499
524
|
"wallet-pass-module-disabled-modal-title": "無法使用的卡券",
|
500
525
|
"wallet-pass-module-disabled-modal-empty": "暫無不可用卡券",
|
501
526
|
"wallet-pass-module-discount-partially-paid": "部分付款或已使用錢包的訂單不可修改促銷",
|
527
|
+
"wallet-pass-module-discount-order-free": "訂單金額為0,不可使用折扣卡或商品券",
|
502
528
|
// search section
|
503
529
|
"pisell2.checkout.search-section.placeholder": "錢包碼 / 短碼",
|
504
530
|
// discount formatting
|
@@ -590,6 +616,16 @@ var locales_default = {
|
|
590
616
|
"pisell2.checkout.order-sync-failed": "訂單同步失敗,請檢查網絡",
|
591
617
|
"pisell2.checkout.sync-retry-hint": "網絡異常,請點擊重試按鈕重新同步訂單",
|
592
618
|
"pisell2.checkout.tips": "提示",
|
593
|
-
"retry": "重試"
|
619
|
+
"retry": "重試",
|
620
|
+
// 現金支付模組
|
621
|
+
"cash-payment-title": "現金支付",
|
622
|
+
"cash-payment-balance-due": "應付金額",
|
623
|
+
"cash-payment-cash-received": "實收金額",
|
624
|
+
"cash-payment-change-due": "找零金額",
|
625
|
+
"cash-payment-rounding": "抹零",
|
626
|
+
"cash-payment-other": "其他",
|
627
|
+
"cash-payment-reset": "重置",
|
628
|
+
"cash-payment-pay": "支付",
|
629
|
+
"cash-payment-amount-cannot-be-zero": "金額不能為0"
|
594
630
|
}
|
595
631
|
};
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
8
8
|
*/
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
10
10
|
className?: string | undefined;
|
11
|
-
onChange?: ((status: "
|
11
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
12
12
|
[keys: string]: unknown;
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
14
14
|
onClose: () => void;
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
12
12
|
api: PayProps['api'];
|
13
13
|
className?: string | undefined;
|
14
|
-
onChange?: ((status: "
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
15
15
|
[keys: string]: unknown;
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
17
17
|
onClose: () => void;
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
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<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
175
175
|
type: EActionTypes;
|
176
176
|
payload: {
|
177
|
-
status: "
|
177
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
295
|
name?: string | undefined;
|
296
296
|
symbol?: string | undefined;
|
297
297
|
amount?: string | number | undefined;
|
298
|
-
mode?: "
|
298
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
300
|
+
eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
305
305
|
subTitle?: string | undefined;
|
306
|
-
type?: "
|
306
|
+
type?: "unset" | "step" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "
|
311
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export interface FormState {
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
3
4
|
order: any;
|
@@ -28,4 +29,11 @@ export interface PayGroup {
|
|
28
29
|
pay_number?: string;
|
29
30
|
_order: any;
|
30
31
|
}
|
31
|
-
export declare const Provider: any, Context:
|
32
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
33
|
+
state: FormState;
|
34
|
+
} & {
|
35
|
+
dispatch: (params: {
|
36
|
+
type: string;
|
37
|
+
payload: any;
|
38
|
+
}) => void;
|
39
|
+
}>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
2
3
|
import dayjs from "dayjs";
|
3
4
|
export interface FormState {
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
68
69
|
};
|
69
70
|
setGlobalState: Function | null;
|
70
71
|
}
|
71
|
-
export declare const Provider: any, Context:
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
73
|
+
state: FormState;
|
74
|
+
} & {
|
75
|
+
dispatch: (params: {
|
76
|
+
type: string;
|
77
|
+
payload: any;
|
78
|
+
}) => void;
|
79
|
+
}>;
|
@@ -40,6 +40,9 @@ var import_useAddService = __toESM(require("../../hooks/useAddService"));
|
|
40
40
|
var import_ahooks = require("ahooks");
|
41
41
|
var import_utils = require("../../../booking/info/service2/utils");
|
42
42
|
var import_pisellNumberSelector = __toESM(require("../../../../pro/pisellNumberSelector"));
|
43
|
+
var import_utils2 = require("@pisell/utils");
|
44
|
+
var import_utils3 = require("@pisell/utils");
|
45
|
+
var import_decimal = __toESM(require("decimal.js"));
|
43
46
|
var Product = (props) => {
|
44
47
|
const { id, lists, isAdd = true } = props;
|
45
48
|
const { state, onAction, onChange } = (0, import_useContext.useContext)();
|
@@ -58,12 +61,17 @@ var Product = (props) => {
|
|
58
61
|
productCardStyleConfig = {}
|
59
62
|
} = state;
|
60
63
|
const clearCart = (0, import_useClearCart.default)(id);
|
64
|
+
const [isEditExpanded, setIsEditExpanded] = (0, import_react.useState)(true);
|
61
65
|
const handleChange = (0, import_ahooks.useMemoizedFn)(
|
62
66
|
(item, type, other) => {
|
63
67
|
if (disabledEdit && !(other == null ? void 0 : other.disabled)) return;
|
64
68
|
onChange(item, type, other);
|
65
69
|
}
|
66
70
|
);
|
71
|
+
const toggleEditExpanded = (0, import_ahooks.useMemoizedFn)((e) => {
|
72
|
+
e == null ? void 0 : e.preventDefault();
|
73
|
+
setIsEditExpanded(!isEditExpanded);
|
74
|
+
});
|
67
75
|
const productParams = (0, import_react.useMemo)(() => {
|
68
76
|
return {
|
69
77
|
isShowNote,
|
@@ -98,59 +106,111 @@ var Product = (props) => {
|
|
98
106
|
};
|
99
107
|
}
|
100
108
|
);
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
109
|
+
const editItems = (0, import_react.useMemo)(
|
110
|
+
() => (lists || []).filter((item) => {
|
111
|
+
var _a;
|
112
|
+
return (_a = item == null ? void 0 : item._origin) == null ? void 0 : _a.edit;
|
113
|
+
}),
|
114
|
+
[lists]
|
115
|
+
);
|
116
|
+
const normalItems = (0, import_react.useMemo)(
|
117
|
+
() => (lists || []).filter((item) => {
|
118
|
+
var _a;
|
119
|
+
return !((_a = item == null ? void 0 : item._origin) == null ? void 0 : _a.edit);
|
120
|
+
}),
|
121
|
+
[lists]
|
122
|
+
);
|
123
|
+
const editTotal = (0, import_react.useMemo)(() => {
|
124
|
+
const total = editItems.reduce((total2, item) => {
|
125
|
+
const itemTotal = new import_decimal.default((item == null ? void 0 : item.total) || 0);
|
126
|
+
return total2.add(itemTotal);
|
127
|
+
}, new import_decimal.default(0));
|
128
|
+
return (0, import_utils2.formatAmount)(total.toNumber(), 2, (state == null ? void 0 : state.amountSymbol) || "$");
|
129
|
+
}, [editItems]);
|
130
|
+
const renderProductItem = (0, import_ahooks.useMemoizedFn)((item) => {
|
131
|
+
let Comp = import_materials.ProductCard;
|
132
|
+
let isRetail;
|
133
|
+
if (state.scenario === "booking2") {
|
134
|
+
isRetail = (0, import_utils.isNormalProductByDurationSchedule)(item == null ? void 0 : item._origin);
|
135
|
+
Comp = import_materials.ProductCard.V2;
|
136
|
+
}
|
137
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
138
|
+
Comp,
|
139
|
+
{
|
140
|
+
type: isRetail ? "a2" : "a5",
|
141
|
+
rightActions: [
|
142
|
+
{
|
143
|
+
key: "update_number",
|
144
|
+
text: /* @__PURE__ */ import_react.default.createElement(
|
145
|
+
import_pisellNumberSelector.default,
|
146
|
+
{
|
147
|
+
enablePriceAdjust: true,
|
148
|
+
min: 1,
|
149
|
+
className: "pisell-sku-card__pisell-number-setter",
|
150
|
+
value: item == null ? void 0 : item.num,
|
151
|
+
onChange: (value) => {
|
152
|
+
if (value < 1) {
|
153
|
+
handleChange(item, "num", { num: 1 });
|
154
|
+
} else {
|
155
|
+
handleChange(item, "num", { num: value });
|
130
156
|
}
|
131
157
|
}
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
158
|
+
}
|
159
|
+
),
|
160
|
+
color: "#667085"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
escapeDom: ".pisell-number-selector-popover",
|
164
|
+
key: item._id,
|
165
|
+
dataSource: item,
|
166
|
+
onAction: (e) => onAction == null ? void 0 : onAction(e),
|
167
|
+
onDelete: (e) => handleChange(e, "delete", item),
|
168
|
+
onNote: (e) => handleChange(e, "note", { note: e.note }),
|
169
|
+
onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
|
170
|
+
onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
|
171
|
+
onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
|
172
|
+
onChangeResource: (e) => handleChange(item, "change_resource", e),
|
173
|
+
onChangeHolder: (e) => handleChange(item, "change_holder", e),
|
174
|
+
onAddHolder: (e) => handleChange(item, "add_holder", e),
|
175
|
+
...productParams,
|
176
|
+
...getProductCardStyleProps(isRetail ? "retail" : "appointment"),
|
177
|
+
scenario: state.scenario
|
178
|
+
}
|
179
|
+
);
|
180
|
+
});
|
181
|
+
return (0, import_react.useMemo)(() => {
|
182
|
+
console.log("render cart", lists);
|
183
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, editItems.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit" }, /* @__PURE__ */ import_react.default.createElement(
|
184
|
+
"div",
|
185
|
+
{
|
186
|
+
className: "pisell-lowcode__shopping-cart-edit-header",
|
187
|
+
...{ onClick: toggleEditExpanded },
|
188
|
+
style: { cursor: "pointer" }
|
189
|
+
},
|
190
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit-header-title" }, import_utils3.locales.getText("pisell2.text.shopping-cart.save.items")(editItems.length)),
|
191
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit-header-summary" }, editTotal),
|
192
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit-header-switch" }, /* @__PURE__ */ import_react.default.createElement(
|
193
|
+
import_materials.Iconfont,
|
194
|
+
{
|
195
|
+
type: "pisell2-chevron-down",
|
196
|
+
style: {
|
197
|
+
transform: isEditExpanded ? "rotate(180deg)" : "rotate(0deg)",
|
198
|
+
transition: "transform 0.3s ease"
|
199
|
+
}
|
200
|
+
}
|
201
|
+
))
|
202
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
203
|
+
"div",
|
204
|
+
{
|
205
|
+
className: "pisell-lowcode__shopping-cart-edit-content",
|
206
|
+
style: {
|
207
|
+
maxHeight: isEditExpanded ? "unset" : "0",
|
208
|
+
overflow: "hidden",
|
209
|
+
transition: "max-height 0.3s ease"
|
151
210
|
}
|
152
|
-
|
153
|
-
|
154
|
-
|
211
|
+
},
|
212
|
+
editItems.map(renderProductItem)
|
213
|
+
)), normalItems.map(renderProductItem), !hideAddBtn && platform !== "h5" && isAdd ? (0, import_useAddService.default)(id, "more") : null);
|
214
|
+
}, [clearCart, editItems, normalItems, productParams, hideAddBtn, isAdd, platform, isEditExpanded]);
|
155
215
|
};
|
156
216
|
var Product_default = Product;
|
@@ -67,7 +67,7 @@ var Cart = () => {
|
|
67
67
|
});
|
68
68
|
}, [carts, platform]);
|
69
69
|
return (0, import_react.useMemo)(() => {
|
70
|
-
console.log("render cart 22222");
|
70
|
+
console.log("render cart 22222", state.prodcuts);
|
71
71
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__shopping-cart") }, isProductList ? /* @__PURE__ */ import_react.default.createElement(import_Product.default, { id: void 0, lists: state == null ? void 0 : state.products }) : /* @__PURE__ */ import_react.default.createElement(
|
72
72
|
import_materials.Collapse,
|
73
73
|
{
|
@@ -24,6 +24,37 @@
|
|
24
24
|
margin-bottom: 0;
|
25
25
|
}
|
26
26
|
}
|
27
|
+
|
28
|
+
.pisell-lowcode__shopping-cart-edit {
|
29
|
+
display: flex;
|
30
|
+
padding: 6px;
|
31
|
+
background: #EAECF0;
|
32
|
+
flex-direction: column;
|
33
|
+
color: black;
|
34
|
+
border-radius: 8px;
|
35
|
+
.pisell-lowcode__shopping-cart-edit-header {
|
36
|
+
display: flex;
|
37
|
+
font-size: 14px;
|
38
|
+
font-weight: 600;
|
39
|
+
.pisell-lowcode__shopping-cart-edit-header-title {
|
40
|
+
flex: 1;
|
41
|
+
}
|
42
|
+
.pisell-lowcode__shopping-cart-edit-header-summary {
|
43
|
+
margin-right: 4px;
|
44
|
+
}
|
45
|
+
// .pisell-lowcode__shopping-cart-edit-header-switch {
|
46
|
+
// font-size: 14px;
|
47
|
+
// font-weight: 400;
|
48
|
+
// line-height: 20px;
|
49
|
+
// }
|
50
|
+
}
|
51
|
+
.pisell-lowcode__shopping-cart-edit-content {
|
52
|
+
margin-top: 6px;
|
53
|
+
gap: 8px;
|
54
|
+
display: flex;
|
55
|
+
flex-direction: column;
|
56
|
+
}
|
57
|
+
}
|
27
58
|
|
28
59
|
.pisell-lowcode__shopping-cart-label {
|
29
60
|
color: var(--Base-Black, #000);
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
8
8
|
'pisell2.text.shopping-cart.confirm': string;
|
9
9
|
'pisell2.text.shopping-cart.cancel': string;
|
10
10
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
11
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
11
12
|
};
|
12
13
|
'zh-CN': {
|
13
14
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -18,6 +19,7 @@ declare const _default: {
|
|
18
19
|
'pisell2.text.shopping-cart.confirm': string;
|
19
20
|
'pisell2.text.shopping-cart.cancel': string;
|
20
21
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
22
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
21
23
|
};
|
22
24
|
'zh-HK': {
|
23
25
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -28,6 +30,7 @@ declare const _default: {
|
|
28
30
|
'pisell2.text.shopping-cart.confirm': string;
|
29
31
|
'pisell2.text.shopping-cart.cancel': string;
|
30
32
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
33
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
31
34
|
};
|
32
35
|
};
|
33
36
|
export default _default;
|
@@ -31,7 +31,8 @@ var locales_default = {
|
|
31
31
|
"pisell2.text.shopping-cart.no.selected": "No items selected",
|
32
32
|
"pisell2.text.shopping-cart.confirm": "Confirm",
|
33
33
|
"pisell2.text.shopping-cart.cancel": "Cancel",
|
34
|
-
"pisell2.text.shopping-cart.select.holder.modal.title": "Item Assignment"
|
34
|
+
"pisell2.text.shopping-cart.select.holder.modal.title": "Item Assignment",
|
35
|
+
"pisell2.text.shopping-cart.save.items": (num) => `${num} save ${num > 1 ? "items" : "item"}`
|
35
36
|
},
|
36
37
|
"zh-CN": {
|
37
38
|
"pisell2.text.shopping-cart.item": (num) => `(${num} 项)`,
|
@@ -41,7 +42,8 @@ var locales_default = {
|
|
41
42
|
"pisell2.text.shopping-cart.no.selected": "未选择任何项目",
|
42
43
|
"pisell2.text.shopping-cart.confirm": "确定",
|
43
44
|
"pisell2.text.shopping-cart.cancel": "取消",
|
44
|
-
"pisell2.text.shopping-cart.select.holder.modal.title": "商品分配"
|
45
|
+
"pisell2.text.shopping-cart.select.holder.modal.title": "商品分配",
|
46
|
+
"pisell2.text.shopping-cart.save.items": (num) => `${num} 个保存商品`
|
45
47
|
},
|
46
48
|
"zh-HK": {
|
47
49
|
"pisell2.text.shopping-cart.item": (num) => `(${num} 項)`,
|
@@ -51,6 +53,7 @@ var locales_default = {
|
|
51
53
|
"pisell2.text.shopping-cart.no.selected": "未選擇任何項目",
|
52
54
|
"pisell2.text.shopping-cart.confirm": "確定",
|
53
55
|
"pisell2.text.shopping-cart.cancel": "取消",
|
54
|
-
"pisell2.text.shopping-cart.select.holder.modal.title": "商品分配"
|
56
|
+
"pisell2.text.shopping-cart.select.holder.modal.title": "商品分配",
|
57
|
+
"pisell2.text.shopping-cart.save.items": (num) => `${num} 個保存商品`
|
55
58
|
}
|
56
59
|
};
|
@@ -46,7 +46,7 @@ var useCustomer = (props) => {
|
|
46
46
|
if (!pisellos) {
|
47
47
|
return;
|
48
48
|
}
|
49
|
-
pisellos.effects.on("customer:onUpdate", (state) => {
|
49
|
+
const unlisten1 = pisellos.effects.on("customer:onUpdate", (state) => {
|
50
50
|
setCustomers(state.customerList);
|
51
51
|
setHasMore(state.hasMore);
|
52
52
|
setPagination((prev) => ({
|
@@ -56,23 +56,23 @@ var useCustomer = (props) => {
|
|
56
56
|
pageSize: state.pageSize
|
57
57
|
}));
|
58
58
|
});
|
59
|
-
pisellos.effects.on("customer:onSelected", (customer) => {
|
59
|
+
const unlisten2 = pisellos.effects.on("customer:onSelected", (customer) => {
|
60
60
|
var _a;
|
61
61
|
setSelectedCustomer(customer);
|
62
62
|
(_a = props.changeCustomerToGlobalState) == null ? void 0 : _a.call(props, customer);
|
63
63
|
});
|
64
|
-
pisellos.effects.on(
|
64
|
+
const unlisten3 = pisellos.effects.on(
|
65
65
|
"customer:onPaginationChange",
|
66
66
|
(paginationInfo) => {
|
67
67
|
setPagination(paginationInfo);
|
68
68
|
}
|
69
69
|
);
|
70
70
|
return () => {
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
unlisten1();
|
72
|
+
unlisten2();
|
73
|
+
unlisten3();
|
74
74
|
};
|
75
|
-
}, [
|
75
|
+
}, []);
|
76
76
|
const loadCustomers = (0, import_ahooks.useMemoizedFn)(
|
77
77
|
async (params) => {
|
78
78
|
try {
|
@@ -187,7 +187,11 @@ var initialState = {
|
|
187
187
|
};
|
188
188
|
var ticketBooking_default = (props) => {
|
189
189
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
190
|
-
const {
|
190
|
+
const {
|
191
|
+
productExtensionType,
|
192
|
+
bookingConfigParams,
|
193
|
+
isShowMenuBar = true
|
194
|
+
} = props;
|
191
195
|
const storeRef = (0, import_react.useRef)(null);
|
192
196
|
const context = (0, import_useEngineContext.default)();
|
193
197
|
const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
@@ -166,7 +166,8 @@ var addService = (list, addItem, state) => {
|
|
166
166
|
value = list.map((item) => {
|
167
167
|
var _a, _b, _c;
|
168
168
|
const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
|
169
|
-
|
169
|
+
const isEdit = item == null ? void 0 : item.edit;
|
170
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
170
171
|
isNotSame = false;
|
171
172
|
const quantity = (((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.quantity) || 1) + (((_b = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _b.quantity) || 1);
|
172
173
|
count = quantity;
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
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 +1,14 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
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 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
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 {};
|