@pisell/private-materials 6.5.27 → 6.6.1
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 +2 -2
- package/build/lowcode/preview.js +146 -165
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/actionButtons/index.js +34 -20
- package/es/components/booking/components/customSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.js +25 -8
- package/es/components/booking/components/footer/index.js +66 -33
- package/es/components/booking/components/footer/utils.d.ts +7 -0
- package/es/components/booking/components/footer/utils.js +126 -99
- package/es/components/booking/components/voucher/index.js +25 -9
- package/es/components/booking/dashboard/serve.js +1 -6
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.js +2 -12
- package/es/components/booking/hooks/useQuotation.js +69 -21
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/client/serve.js +2 -11
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/pet/serve.js +1 -6
- package/es/components/booking/info/service/Lists.d.ts +1 -1
- package/es/components/booking/info/service/Lists.js +10 -4
- package/es/components/booking/info/service/addTimeModal/serve.js +1 -11
- package/es/components/booking/info/service/serve.d.ts +14 -0
- package/es/components/booking/info/service/serve.js +25 -18
- package/es/components/booking/info/service2/Group/utils.js +2 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -33
- package/es/components/booking/info/service2/utils.js +92 -56
- package/es/components/booking/info/utils.js +5 -0
- package/es/components/booking/info2/cartClientCard/index.js +49 -9
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/serve.js +1 -6
- package/es/components/booking/info2/service/addService/index.js +146 -89
- package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/es/components/booking/info2/service/addService/utils.js +83 -14
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
- package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/es/components/booking/info2/service/editService/index.js +313 -57
- package/es/components/booking/info2/utilsByBooking.js +19 -14
- package/es/components/booking/locales.d.ts +36 -0
- package/es/components/booking/locales.js +48 -3
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/es/components/booking/utils/confirmHolderModal.js +318 -0
- package/es/components/booking/utils/confirmHolderModal.less +40 -0
- package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/es/components/booking/utils/selectHolderModal.js +407 -0
- package/es/components/booking/utils.d.ts +16 -7
- package/es/components/booking/utils.js +26 -37
- package/es/components/checkout/PaymentModal.js +61 -30
- package/es/components/checkout/components/CashPaymentModule/index.js +1 -7
- package/es/components/checkout/components/ScrollableList/index.js +0 -1
- package/es/components/checkout/locales.d.ts +3 -0
- package/es/components/checkout/locales.js +3 -0
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/list/List.js +3 -0
- package/es/components/pay/toB/components/MX51/index.js +14 -44
- package/es/components/pay/toB/types/index.d.ts +0 -12
- package/es/components/pay/toB/types/index.js +0 -4
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.js +1 -5
- package/es/components/shoppingCart/components/Cart/Product.js +6 -3
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +119 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +419 -794
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
- package/es/components/ticketBooking/components/ticketBooking/index.js +32 -61
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +1 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +122 -170
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.js +0 -2
- package/es/components/ticketBooking/serve.js +17 -119
- package/es/components/ticketBooking/utils/index.d.ts +7 -1
- package/es/components/ticketBooking/utils/index.js +44 -28
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/es/plus/productSelect/ProductCard/index.js +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
- package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
- package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/es/plus/selectHolder/components/HolderList/index.js +43 -0
- package/es/plus/selectHolder/index.d.ts +7 -0
- package/es/plus/selectHolder/index.js +273 -0
- package/es/plus/selectHolder/index.less +137 -0
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/locales.js +29 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/types.js +1 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/selectHolder/utils.js +16 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +357 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/es/pro/multiDayTimeSelect/index.js +1 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/multiDayTimeSelect/types.js +1 -0
- package/es/pro/skuDetailModal/types.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +6 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/actionButtons/index.js +11 -2
- package/lib/components/booking/components/customSelect/index.js +1 -1
- package/lib/components/booking/components/footer/amount.js +23 -6
- package/lib/components/booking/components/footer/index.js +26 -5
- package/lib/components/booking/components/footer/utils.d.ts +7 -0
- package/lib/components/booking/components/footer/utils.js +120 -82
- package/lib/components/booking/components/voucher/index.js +10 -1
- package/lib/components/booking/dashboard/serve.js +1 -6
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.js +2 -12
- package/lib/components/booking/hooks/useQuotation.js +45 -13
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/client/serve.js +2 -13
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/pet/serve.js +1 -6
- package/lib/components/booking/info/service/Lists.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.js +5 -3
- package/lib/components/booking/info/service/addTimeModal/serve.js +1 -7
- package/lib/components/booking/info/service/serve.d.ts +14 -0
- package/lib/components/booking/info/service/serve.js +8 -17
- package/lib/components/booking/info/service2/Group/utils.js +2 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -33
- package/lib/components/booking/info/service2/utils.js +38 -29
- package/lib/components/booking/info/utils.js +4 -0
- package/lib/components/booking/info2/cartClientCard/index.js +34 -5
- package/lib/components/booking/info2/index.js +11 -5
- package/lib/components/booking/info2/serve.js +1 -6
- package/lib/components/booking/info2/service/addService/index.js +22 -3
- package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/lib/components/booking/info2/service/addService/utils.js +48 -11
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
- package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/lib/components/booking/info2/service/editService/index.js +254 -32
- package/lib/components/booking/info2/utilsByBooking.js +26 -19
- package/lib/components/booking/locales.d.ts +36 -0
- package/lib/components/booking/locales.js +42 -3
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/lib/components/booking/utils/confirmHolderModal.js +253 -0
- package/lib/components/booking/utils/confirmHolderModal.less +40 -0
- package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/lib/components/booking/utils/selectHolderModal.js +319 -0
- package/lib/components/booking/utils.d.ts +16 -7
- package/lib/components/booking/utils.js +18 -21
- package/lib/components/checkout/PaymentModal.js +41 -18
- package/lib/components/checkout/components/CashPaymentModule/index.js +1 -7
- package/lib/components/checkout/components/ScrollableList/index.js +0 -1
- package/lib/components/checkout/locales.d.ts +3 -0
- package/lib/components/checkout/locales.js +3 -0
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/list/List.js +3 -0
- package/lib/components/pay/toB/components/MX51/index.js +12 -37
- package/lib/components/pay/toB/types/index.d.ts +0 -12
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.js +1 -8
- package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +279 -313
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +5 -3
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
- package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -49
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +1 -3
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +69 -98
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.js +0 -2
- package/lib/components/ticketBooking/serve.js +15 -117
- package/lib/components/ticketBooking/utils/index.d.ts +7 -1
- package/lib/components/ticketBooking/utils/index.js +29 -23
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/lib/plus/productSelect/ProductCard/index.js +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.js +30 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
- package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/lib/plus/selectHolder/components/HolderList/index.js +63 -0
- package/lib/plus/selectHolder/index.d.ts +7 -0
- package/lib/plus/selectHolder/index.js +223 -0
- package/lib/plus/selectHolder/index.less +137 -0
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/plus/selectHolder/locales.js +47 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/types.js +17 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/selectHolder/utils.js +34 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +304 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/lib/{hooks/printer.js → pro/multiDayTimeSelect/index.js} +6 -31
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/multiDayTimeSelect/types.js +17 -0
- package/lib/pro/skuDetailModal/types.d.ts +1 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/event-select-holder/meta.ts +2 -2
- package/lowcode/select-holder/meta.ts +220 -0
- package/lowcode/select-holder/snippets.ts +41 -0
- package/package.json +13 -11
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/printer.js +0 -35
- package/lib/hooks/printer.d.ts +0 -4
|
@@ -154,6 +154,7 @@ declare const _default: {
|
|
|
154
154
|
'wallet-pass-module-customer-name-walk-in': string;
|
|
155
155
|
'pisell2.amount-summary.amount-cannot-be-zero': string;
|
|
156
156
|
'pisell2.checkout.order-sync-failed': string;
|
|
157
|
+
'pisell2.checkout.order-create-failed': string;
|
|
157
158
|
'pisell2.checkout.sync-retry-hint': string;
|
|
158
159
|
'pisell2.checkout.tips': string;
|
|
159
160
|
retry: string;
|
|
@@ -322,6 +323,7 @@ declare const _default: {
|
|
|
322
323
|
'wallet-pass-module-customer-name-walk-in': string;
|
|
323
324
|
'pisell2.amount-summary.amount-cannot-be-zero': string;
|
|
324
325
|
'pisell2.checkout.order-sync-failed': string;
|
|
326
|
+
'pisell2.checkout.order-create-failed': string;
|
|
325
327
|
'pisell2.checkout.sync-retry-hint': string;
|
|
326
328
|
'pisell2.checkout.tips': string;
|
|
327
329
|
retry: string;
|
|
@@ -490,6 +492,7 @@ declare const _default: {
|
|
|
490
492
|
'wallet-pass-module-customer-name-walk-in': string;
|
|
491
493
|
'pisell2.amount-summary.amount-cannot-be-zero': string;
|
|
492
494
|
'pisell2.checkout.order-sync-failed': string;
|
|
495
|
+
'pisell2.checkout.order-create-failed': string;
|
|
493
496
|
'pisell2.checkout.sync-retry-hint': string;
|
|
494
497
|
'pisell2.checkout.tips': string;
|
|
495
498
|
retry: string;
|
|
@@ -210,6 +210,7 @@ var locales_default = {
|
|
|
210
210
|
"pisell2.amount-summary.amount-cannot-be-zero": "The amount cannot be 0",
|
|
211
211
|
// Order sync errors
|
|
212
212
|
"pisell2.checkout.order-sync-failed": "Order sync failed, please check your network",
|
|
213
|
+
"pisell2.checkout.order-create-failed": "Order create failed, please refresh app",
|
|
213
214
|
"pisell2.checkout.sync-retry-hint": "Network error, please click the retry button to resync the order",
|
|
214
215
|
"pisell2.checkout.tips": "Tips",
|
|
215
216
|
"retry": "Retry",
|
|
@@ -415,6 +416,7 @@ var locales_default = {
|
|
|
415
416
|
"pisell2.amount-summary.amount-cannot-be-zero": "金额不能为0",
|
|
416
417
|
// Order sync errors
|
|
417
418
|
"pisell2.checkout.order-sync-failed": "订单同步失败,请检查网络",
|
|
419
|
+
"pisell2.checkout.order-create-failed": "订单创建失败,请重启APP",
|
|
418
420
|
"pisell2.checkout.sync-retry-hint": "网络异常,请点击重试按钮重新同步订单",
|
|
419
421
|
"pisell2.checkout.tips": "提示",
|
|
420
422
|
"retry": "重试",
|
|
@@ -620,6 +622,7 @@ var locales_default = {
|
|
|
620
622
|
"pisell2.amount-summary.amount-cannot-be-zero": "金額不能為0",
|
|
621
623
|
// Order sync errors
|
|
622
624
|
"pisell2.checkout.order-sync-failed": "訂單同步失敗,請檢查網絡",
|
|
625
|
+
"pisell2.checkout.order-create-failed": "订单创建失败,请重启APP",
|
|
623
626
|
"pisell2.checkout.sync-retry-hint": "網絡異常,請點擊重試按鈕重新同步訂單",
|
|
624
627
|
"pisell2.checkout.tips": "提示",
|
|
625
628
|
"retry": "重試",
|
|
@@ -125,6 +125,7 @@ var Linkly = ({ api, onChange }) => {
|
|
|
125
125
|
failRef.current = fail;
|
|
126
126
|
}, [fail]);
|
|
127
127
|
(0, import_react.useEffect)(() => {
|
|
128
|
+
var _a, _b, _c;
|
|
128
129
|
if (statusRef.current === import_const.StatusEnum.Success || statusRef.current === import_const.StatusEnum.Fail) {
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
@@ -136,7 +137,36 @@ var Linkly = ({ api, onChange }) => {
|
|
|
136
137
|
resultQuery();
|
|
137
138
|
return;
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
+
if (((_a = utils == null ? void 0 : utils.isTerminal) == null ? void 0 : _a.call(utils)) && ((_c = (_b = utils == null ? void 0 : utils.interaction) == null ? void 0 : _b.utils) == null ? void 0 : _c.asyncDataManager)) {
|
|
141
|
+
const _payOrRefund = async () => {
|
|
142
|
+
var _a2, _b2, _c2;
|
|
143
|
+
try {
|
|
144
|
+
const activeStatus = await ((_c2 = (_b2 = (_a2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.asyncDataManager) == null ? void 0 : _c2.call(_b2, {
|
|
145
|
+
module: "get",
|
|
146
|
+
key: "pay_webview_active"
|
|
147
|
+
}));
|
|
148
|
+
if (activeStatus !== "unActive") {
|
|
149
|
+
payOrRefund(resultQuery, handleLinklySuccess);
|
|
150
|
+
} else {
|
|
151
|
+
(0, import_utils.sendWarningLog)({
|
|
152
|
+
title: "Linkly-支付-当前页面非活跃状态,无法进行支付",
|
|
153
|
+
content: [
|
|
154
|
+
{ key: "response", value: JSON.stringify({ activeStatus }) }
|
|
155
|
+
]
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
} catch (error) {
|
|
159
|
+
(0, import_utils.sendWarningLog)({
|
|
160
|
+
title: "Linkly-支付-获取当前页面活跃状态失败",
|
|
161
|
+
content: [{ key: "error", value: JSON.stringify(error) }]
|
|
162
|
+
});
|
|
163
|
+
payOrRefund(resultQuery, handleLinklySuccess);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
_payOrRefund();
|
|
167
|
+
} else {
|
|
168
|
+
payOrRefund(resultQuery, handleLinklySuccess);
|
|
169
|
+
}
|
|
140
170
|
}, []);
|
|
141
171
|
(0, import_react.useEffect)(() => {
|
|
142
172
|
return () => {
|
|
@@ -158,6 +158,12 @@ var tyro_default = ({
|
|
|
158
158
|
response: {},
|
|
159
159
|
metadata: {
|
|
160
160
|
receipt: []
|
|
161
|
+
},
|
|
162
|
+
_config: {
|
|
163
|
+
retry: {
|
|
164
|
+
count: 10,
|
|
165
|
+
delay: 500
|
|
166
|
+
}
|
|
161
167
|
}
|
|
162
168
|
}).then((res) => {
|
|
163
169
|
requestIdRef.current = res.data.id;
|
|
@@ -229,6 +235,12 @@ var tyro_default = ({
|
|
|
229
235
|
response: {},
|
|
230
236
|
metadata: {
|
|
231
237
|
receipt: []
|
|
238
|
+
},
|
|
239
|
+
_config: {
|
|
240
|
+
retry: {
|
|
241
|
+
count: 10,
|
|
242
|
+
delay: 500
|
|
243
|
+
}
|
|
232
244
|
}
|
|
233
245
|
}).then((res) => {
|
|
234
246
|
requestIdRef.current = res.data.id;
|
|
@@ -145,6 +145,9 @@ var List = (props) => {
|
|
|
145
145
|
};
|
|
146
146
|
const processedData = (0, import_react.useMemo)(() => {
|
|
147
147
|
const sourceData = loading ? MOCK_LIST_DATA : data || [];
|
|
148
|
+
console.log(`processedData recalculating: tabStyle=${tabStyle}, activeTab=${activeTab}, tabItems=${tabItems.length}, dataLength=${sourceData.length}`);
|
|
149
|
+
console.log(`sourceData sample: ${JSON.stringify(sourceData.slice(0, 2), null, 2)}`);
|
|
150
|
+
console.log(`tabGroup: ${tabGroup}`);
|
|
148
151
|
if (tabStyle === "anchor" && tabItems.length > 0) {
|
|
149
152
|
const groupedData = [];
|
|
150
153
|
const categoryTabs = tabItems.filter((tab) => tab.key !== "all");
|
|
@@ -33,8 +33,8 @@ __export(MX51_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(MX51_exports);
|
|
35
35
|
var import_react = require("react");
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
36
37
|
var import_useLogger = __toESM(require("../../../../../hooks/useLogger"));
|
|
37
|
-
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
38
38
|
var getUuid = () => {
|
|
39
39
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxx".replace(/[xy]/g, (c) => {
|
|
40
40
|
const r = Math.random() * 16 | 0;
|
|
@@ -43,10 +43,7 @@ var getUuid = () => {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
var MX51 = (props, ref) => {
|
|
46
|
-
var _a, _b;
|
|
47
46
|
const logger = (0, import_useLogger.default)();
|
|
48
|
-
const context = (0, import_useEngineContext.default)();
|
|
49
|
-
const action = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.action;
|
|
50
47
|
const onOpen = ({ data, payCallback }) => {
|
|
51
48
|
const { params, mode } = data;
|
|
52
49
|
const uniquePaymentNumber = getUuid();
|
|
@@ -65,40 +62,18 @@ var MX51 = (props, ref) => {
|
|
|
65
62
|
title: "ToB_MX51_onOpen 开始调用",
|
|
66
63
|
metadata: { params: newData }
|
|
67
64
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
isSame = (_res == null ? void 0 : _res.uniquePaymentNumber) === uniquePaymentNumber;
|
|
77
|
-
if (isSame) {
|
|
78
|
-
payCallback == null ? void 0 : payCallback(_res);
|
|
79
|
-
}
|
|
80
|
-
} else {
|
|
81
|
-
const _res = res;
|
|
82
|
-
const newRes = {
|
|
83
|
-
result: (_res == null ? void 0 : _res.code) == "200" ? true : false,
|
|
84
|
-
msg: _res == null ? void 0 : _res.msg,
|
|
85
|
-
amount: (_a2 = _res == null ? void 0 : _res.data) == null ? void 0 : _a2.amount,
|
|
86
|
-
surcharge: (_b2 = _res == null ? void 0 : _res.data) == null ? void 0 : _b2.surcharge,
|
|
87
|
-
uniquePaymentNumber: _res == null ? void 0 : _res.uuid
|
|
88
|
-
};
|
|
89
|
-
isSame = (_res == null ? void 0 : _res.uuid) === uniquePaymentNumber;
|
|
90
|
-
if (isSame) {
|
|
91
|
-
payCallback == null ? void 0 : payCallback(newRes);
|
|
92
|
-
}
|
|
65
|
+
(0, import_utils.webPayment)(newData, (res) => {
|
|
66
|
+
const isSame = (res == null ? void 0 : res.uniquePaymentNumber) === uniquePaymentNumber;
|
|
67
|
+
logger == null ? void 0 : logger.addLog({
|
|
68
|
+
type: "info",
|
|
69
|
+
title: "ToB_MX51_onOpen_callback",
|
|
70
|
+
metadata: {
|
|
71
|
+
msg: isSame ? "uniquePaymentNumber一致" : "uniquePaymentNumber不一致",
|
|
72
|
+
res
|
|
93
73
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
metadata: {
|
|
98
|
-
msg: isSame ? "交易流水号一致" : "交易流水号不一致",
|
|
99
|
-
res
|
|
100
|
-
}
|
|
101
|
-
});
|
|
74
|
+
});
|
|
75
|
+
if (isSame) {
|
|
76
|
+
payCallback == null ? void 0 : payCallback(res);
|
|
102
77
|
}
|
|
103
78
|
});
|
|
104
79
|
};
|
|
@@ -58,15 +58,3 @@ export interface MX51PayResult {
|
|
|
58
58
|
surcharge: number;
|
|
59
59
|
uniquePaymentNumber: string;
|
|
60
60
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @title 原生MX51支付结果
|
|
63
|
-
*/
|
|
64
|
-
export interface NativeMX51PayResult {
|
|
65
|
-
code: string;
|
|
66
|
-
msg?: string;
|
|
67
|
-
data: {
|
|
68
|
-
amount: number;
|
|
69
|
-
surcharge: number;
|
|
70
|
-
};
|
|
71
|
-
uuid: string;
|
|
72
|
-
}
|
|
@@ -25,14 +25,7 @@ __export(serve_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(serve_exports);
|
|
26
26
|
var import_utils = require("../../../utils");
|
|
27
27
|
var getCustomerList = async (params) => {
|
|
28
|
-
let { data } = await import_utils.request.getRequest().get(`/shop/customer/select-list`, params, {
|
|
29
|
-
abort: true,
|
|
30
|
-
fullResult: true,
|
|
31
|
-
cache: {
|
|
32
|
-
mode: "remote_local",
|
|
33
|
-
type: "indexDB"
|
|
34
|
-
}
|
|
35
|
-
});
|
|
28
|
+
let { data } = await import_utils.request.getRequest().get(`/shop/customer/select-list`, params, { abort: true, fullResult: true });
|
|
36
29
|
return data;
|
|
37
30
|
};
|
|
38
31
|
var addCustomer = async (params) => {
|
|
@@ -54,6 +54,7 @@ var Product = (props) => {
|
|
|
54
54
|
platform,
|
|
55
55
|
isShowChangeResource,
|
|
56
56
|
isShowDelete,
|
|
57
|
+
isShowAmountFooter,
|
|
57
58
|
isShowChangeHolder,
|
|
58
59
|
isShowHolder,
|
|
59
60
|
isShowAddHolderButton,
|
|
@@ -82,7 +83,8 @@ var Product = (props) => {
|
|
|
82
83
|
isShowDelete,
|
|
83
84
|
isShowHolder,
|
|
84
85
|
isShowAddHolderButton,
|
|
85
|
-
isShowEditProduct
|
|
86
|
+
isShowEditProduct,
|
|
87
|
+
isShowAmountFooter
|
|
86
88
|
};
|
|
87
89
|
}, [
|
|
88
90
|
isShowNote,
|
|
@@ -93,7 +95,8 @@ var Product = (props) => {
|
|
|
93
95
|
isShowHolder,
|
|
94
96
|
isShowAddHolderButton,
|
|
95
97
|
isShowChangeHolder,
|
|
96
|
-
isShowEditProduct
|
|
98
|
+
isShowEditProduct,
|
|
99
|
+
isShowAmountFooter
|
|
97
100
|
]);
|
|
98
101
|
const getProductCardStyleProps = (0, import_ahooks.useMemoizedFn)(
|
|
99
102
|
(type) => {
|
|
@@ -101,7 +104,8 @@ var Product = (props) => {
|
|
|
101
104
|
if (state.scenario !== "booking2") return {};
|
|
102
105
|
return {
|
|
103
106
|
isShowImage: conf == null ? void 0 : conf.show_product_image,
|
|
104
|
-
isShowDelete: conf == null ? void 0 : conf.show_remove_button,
|
|
107
|
+
isShowDelete: (conf == null ? void 0 : conf.show_remove_button) && isShowDelete,
|
|
108
|
+
isShowAmountFooter,
|
|
105
109
|
disabledEdit: true
|
|
106
110
|
};
|
|
107
111
|
}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
.sku-list-container {
|
|
2
2
|
height: 100%;
|
|
3
3
|
background-color: #4e4e4e;
|
|
4
|
-
.empty-content {
|
|
5
|
-
.empty-icon-wrapper {
|
|
6
|
-
.empty-default-icon {
|
|
7
|
-
color: rgba(255, 255, 255, 0.8) !important;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
.empty-inner {
|
|
11
|
-
.empty-text {
|
|
12
|
-
color: rgba(255, 255, 255, 0.8) !important;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
4
|
.sku-list {
|
|
17
5
|
background-color: #4e4e4e;
|
|
18
6
|
overflow: auto;
|
package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import './MultiDayTimeSelectModal.less';
|
|
4
|
+
interface MultiDayTimeSelectModalProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
productName?: string;
|
|
7
|
+
locale?: string;
|
|
8
|
+
defaultStartDate?: Dayjs;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** 最大天数,默认30天 */
|
|
11
|
+
maxDays?: number;
|
|
12
|
+
/** 开始时间和结束时间是否分离 */
|
|
13
|
+
separateStartEnd?: boolean;
|
|
14
|
+
onConfirm: (startDate: Dayjs, endDate: Dayjs, duration: number) => void;
|
|
15
|
+
onCancel: () => void;
|
|
16
|
+
}
|
|
17
|
+
declare const MultiDayTimeSelectModal: React.FC<MultiDayTimeSelectModalProps>;
|
|
18
|
+
export default MultiDayTimeSelectModal;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.tsx
|
|
30
|
+
var MultiDayTimeSelectModal_exports = {};
|
|
31
|
+
__export(MultiDayTimeSelectModal_exports, {
|
|
32
|
+
default: () => MultiDayTimeSelectModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(MultiDayTimeSelectModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_multiDayTimeSelect = __toESM(require("../../../../pro/multiDayTimeSelect"));
|
|
40
|
+
var import_MultiDayTimeSelectModal = require("./MultiDayTimeSelectModal.less");
|
|
41
|
+
var MultiDayTimeSelectModal = ({
|
|
42
|
+
open,
|
|
43
|
+
productName,
|
|
44
|
+
locale = "en",
|
|
45
|
+
defaultStartDate,
|
|
46
|
+
loading = false,
|
|
47
|
+
maxDays = 30,
|
|
48
|
+
separateStartEnd = false,
|
|
49
|
+
onConfirm,
|
|
50
|
+
onCancel
|
|
51
|
+
}) => {
|
|
52
|
+
const [value, setValue] = (0, import_react.useState)(null);
|
|
53
|
+
const formRef = (0, import_react.useRef)(null);
|
|
54
|
+
(0, import_react.useEffect)(() => {
|
|
55
|
+
if (open) {
|
|
56
|
+
const startDate = defaultStartDate || (0, import_dayjs.default)();
|
|
57
|
+
const endDate = startDate.add(1, "day");
|
|
58
|
+
const initialValue = {
|
|
59
|
+
startDate,
|
|
60
|
+
endDate,
|
|
61
|
+
duration: 1
|
|
62
|
+
};
|
|
63
|
+
setValue(initialValue);
|
|
64
|
+
}
|
|
65
|
+
}, [open, defaultStartDate]);
|
|
66
|
+
const handleChange = (newValue) => {
|
|
67
|
+
setValue(newValue);
|
|
68
|
+
};
|
|
69
|
+
const handleConfirm = async () => {
|
|
70
|
+
var _a;
|
|
71
|
+
try {
|
|
72
|
+
await ((_a = formRef.current) == null ? void 0 : _a.validate());
|
|
73
|
+
if (value) {
|
|
74
|
+
onConfirm(value.startDate, value.endDate, value.duration);
|
|
75
|
+
}
|
|
76
|
+
} catch (error) {
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const handleCancel = () => {
|
|
80
|
+
if (loading) return;
|
|
81
|
+
onCancel();
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
84
|
+
import_materials.PisellModal,
|
|
85
|
+
{
|
|
86
|
+
open,
|
|
87
|
+
title: productName || import_utils.locales.getText("pisell2.text.product_name"),
|
|
88
|
+
onCancel: handleCancel,
|
|
89
|
+
onOk: handleConfirm,
|
|
90
|
+
okText: import_utils.locales.getText("pisell2.text.confirm"),
|
|
91
|
+
cancelText: import_utils.locales.getText("pisell2.text.cancel"),
|
|
92
|
+
width: 600,
|
|
93
|
+
destroyOnClose: true,
|
|
94
|
+
confirmLoading: loading,
|
|
95
|
+
closable: !loading,
|
|
96
|
+
maskClosable: !loading,
|
|
97
|
+
headerDivider: false,
|
|
98
|
+
footerDivider: false,
|
|
99
|
+
cancelButtonProps: {
|
|
100
|
+
disabled: loading
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
104
|
+
import_multiDayTimeSelect.default,
|
|
105
|
+
{
|
|
106
|
+
ref: formRef,
|
|
107
|
+
maxDays,
|
|
108
|
+
defaultStartDate,
|
|
109
|
+
separateStartEnd,
|
|
110
|
+
value: value || void 0,
|
|
111
|
+
onChange: handleChange,
|
|
112
|
+
locale,
|
|
113
|
+
disabled: loading
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
var MultiDayTimeSelectModal_default = MultiDayTimeSelectModal;
|
package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less
ADDED
|
File without changes
|