@pisell/private-materials 6.5.27 → 6.6.2
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/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/addService/utils.d.ts +1 -1
- 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 +9 -1
- 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/hooks/useWalletPass.d.ts +1 -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 +421 -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/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/addService/utils.d.ts +1 -1
- 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 +9 -1
- 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/hooks/useWalletPass.d.ts +1 -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 +281 -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
|
@@ -56,13 +56,7 @@ module.exports = __toCommonJS(serve_exports);
|
|
|
56
56
|
var import_utils = require("./../../utils");
|
|
57
57
|
var prefix = "/shop";
|
|
58
58
|
var getClients = async (params) => {
|
|
59
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/customer/select-list", params
|
|
60
|
-
cache: {
|
|
61
|
-
mode: "remote_local",
|
|
62
|
-
updateCache: true,
|
|
63
|
-
type: "indexDB"
|
|
64
|
-
}
|
|
65
|
-
});
|
|
59
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/customer/select-list", params);
|
|
66
60
|
return data;
|
|
67
61
|
};
|
|
68
62
|
var getServices = async (params) => {
|
|
@@ -74,13 +68,7 @@ var getServices = async (params) => {
|
|
|
74
68
|
return res.data;
|
|
75
69
|
};
|
|
76
70
|
var getResources = async (params) => {
|
|
77
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/form/schedule", params
|
|
78
|
-
cache: {
|
|
79
|
-
mode: "remote_local",
|
|
80
|
-
updateCache: true,
|
|
81
|
-
type: "indexDB"
|
|
82
|
-
}
|
|
83
|
-
});
|
|
71
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/form/schedule", params);
|
|
84
72
|
return data;
|
|
85
73
|
};
|
|
86
74
|
var getProducts = async (params) => {
|
|
@@ -88,46 +76,22 @@ var getProducts = async (params) => {
|
|
|
88
76
|
return data;
|
|
89
77
|
};
|
|
90
78
|
var getForms = async (params) => {
|
|
91
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/form/relation/record", params
|
|
92
|
-
cache: {
|
|
93
|
-
mode: "remote_local",
|
|
94
|
-
updateCache: true,
|
|
95
|
-
type: "indexDB"
|
|
96
|
-
}
|
|
97
|
-
});
|
|
79
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/form/relation/record", params);
|
|
98
80
|
return data;
|
|
99
81
|
};
|
|
100
82
|
var getBookingConfig = async (params) => {
|
|
101
83
|
let { data } = await import_utils.request.getRequest().get(prefix + "/core/board/management/config", {
|
|
102
84
|
item_type: "appointment_booking",
|
|
103
85
|
...params
|
|
104
|
-
}, {
|
|
105
|
-
cache: {
|
|
106
|
-
mode: "remote_local",
|
|
107
|
-
updateCache: true,
|
|
108
|
-
type: "indexDB"
|
|
109
|
-
}
|
|
110
86
|
});
|
|
111
87
|
return data;
|
|
112
88
|
};
|
|
113
89
|
var getPets = async (formId, params) => {
|
|
114
|
-
let { data } = await import_utils.request.getRequest().get(`/form/${formId}`, params
|
|
115
|
-
cache: {
|
|
116
|
-
mode: "remote_local",
|
|
117
|
-
updateCache: true,
|
|
118
|
-
type: "indexDB"
|
|
119
|
-
}
|
|
120
|
-
});
|
|
90
|
+
let { data } = await import_utils.request.getRequest().get(`/form/${formId}`, params);
|
|
121
91
|
return data;
|
|
122
92
|
};
|
|
123
93
|
var getPetsData = async (params) => {
|
|
124
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/form/data/v1", params
|
|
125
|
-
cache: {
|
|
126
|
-
mode: "remote_local",
|
|
127
|
-
updateCache: true,
|
|
128
|
-
type: "indexDB"
|
|
129
|
-
}
|
|
130
|
-
});
|
|
94
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/form/data/v1", params);
|
|
131
95
|
return data;
|
|
132
96
|
};
|
|
133
97
|
var createBooking = async (params) => {
|
|
@@ -135,13 +99,7 @@ var createBooking = async (params) => {
|
|
|
135
99
|
return data;
|
|
136
100
|
};
|
|
137
101
|
var getAddonsByOrderId = async (bookingId, params) => {
|
|
138
|
-
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/addons/${bookingId}`, params
|
|
139
|
-
cache: {
|
|
140
|
-
mode: "remote_local",
|
|
141
|
-
updateCache: true,
|
|
142
|
-
type: "indexDB"
|
|
143
|
-
}
|
|
144
|
-
});
|
|
102
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/addons/${bookingId}`, params);
|
|
145
103
|
return data;
|
|
146
104
|
};
|
|
147
105
|
var saveAddonsByOrderId = async (bookingId, params) => {
|
|
@@ -149,13 +107,7 @@ var saveAddonsByOrderId = async (bookingId, params) => {
|
|
|
149
107
|
return data;
|
|
150
108
|
};
|
|
151
109
|
var getBookingDetail = async (bookingId, params) => {
|
|
152
|
-
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/${bookingId}`, params
|
|
153
|
-
cache: {
|
|
154
|
-
mode: "remote_local",
|
|
155
|
-
updateCache: true,
|
|
156
|
-
type: "indexDB"
|
|
157
|
-
}
|
|
158
|
-
});
|
|
110
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/${bookingId}`, params);
|
|
159
111
|
return data;
|
|
160
112
|
};
|
|
161
113
|
var editBookingStatus = async (bookingId, params) => {
|
|
@@ -167,13 +119,7 @@ var editBooking = async (bookingId, params) => {
|
|
|
167
119
|
return data;
|
|
168
120
|
};
|
|
169
121
|
var getNotesByOrder = async (params) => {
|
|
170
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/event-note", params
|
|
171
|
-
cache: {
|
|
172
|
-
mode: "remote_local",
|
|
173
|
-
updateCache: true,
|
|
174
|
-
type: "indexDB"
|
|
175
|
-
}
|
|
176
|
-
});
|
|
122
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/event-note", params);
|
|
177
123
|
return data;
|
|
178
124
|
};
|
|
179
125
|
var addNotesByOrder = async (params) => {
|
|
@@ -193,13 +139,7 @@ var saveBookingFormData = async (params) => {
|
|
|
193
139
|
return data;
|
|
194
140
|
};
|
|
195
141
|
var getPaymentList = async (params) => {
|
|
196
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/order/payment", params
|
|
197
|
-
cache: {
|
|
198
|
-
mode: "remote_local",
|
|
199
|
-
updateCache: true,
|
|
200
|
-
type: "indexDB"
|
|
201
|
-
}
|
|
202
|
-
});
|
|
142
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/order/payment", params);
|
|
203
143
|
return data;
|
|
204
144
|
};
|
|
205
145
|
var editOrderNote = async (bookingId, params) => {
|
|
@@ -207,13 +147,7 @@ var editOrderNote = async (bookingId, params) => {
|
|
|
207
147
|
return data;
|
|
208
148
|
};
|
|
209
149
|
var getRefundInfo = async (bookingId, params) => {
|
|
210
|
-
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/refund-info/${bookingId}`, params
|
|
211
|
-
cache: {
|
|
212
|
-
mode: "remote_local",
|
|
213
|
-
updateCache: true,
|
|
214
|
-
type: "indexDB"
|
|
215
|
-
}
|
|
216
|
-
});
|
|
150
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/refund-info/${bookingId}`, params);
|
|
217
151
|
return data;
|
|
218
152
|
};
|
|
219
153
|
var createEventBooking = async (params) => {
|
|
@@ -221,13 +155,7 @@ var createEventBooking = async (params) => {
|
|
|
221
155
|
return data;
|
|
222
156
|
};
|
|
223
157
|
var getEventBookingDetail = async (bookingId, params) => {
|
|
224
|
-
let { data } = await import_utils.request.getRequest().get(`${prefix}/eventbookingv2/order/${bookingId}`, params
|
|
225
|
-
cache: {
|
|
226
|
-
mode: "remote_local",
|
|
227
|
-
updateCache: true,
|
|
228
|
-
type: "indexDB"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
158
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/eventbookingv2/order/${bookingId}`, params);
|
|
231
159
|
return data;
|
|
232
160
|
};
|
|
233
161
|
var editEventBooking = async (bookingId, params) => {
|
|
@@ -238,53 +166,23 @@ var getDepositShow = async (params) => {
|
|
|
238
166
|
let { data } = await import_utils.request.getRequest().get(prefix + "/metadata", {
|
|
239
167
|
key: "bookingv2_deposit",
|
|
240
168
|
...params
|
|
241
|
-
}, {
|
|
242
|
-
cache: {
|
|
243
|
-
mode: "remote_local",
|
|
244
|
-
updateCache: true,
|
|
245
|
-
type: "indexDB"
|
|
246
|
-
}
|
|
247
169
|
});
|
|
248
170
|
return data;
|
|
249
171
|
};
|
|
250
172
|
var getFormRecords = async (params) => {
|
|
251
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/form/records", params
|
|
252
|
-
cache: {
|
|
253
|
-
mode: "remote_local",
|
|
254
|
-
updateCache: true,
|
|
255
|
-
type: "indexDB"
|
|
256
|
-
}
|
|
257
|
-
});
|
|
173
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/form/records", params);
|
|
258
174
|
return data;
|
|
259
175
|
};
|
|
260
176
|
var getBookingList2 = async (params) => {
|
|
261
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/booking", params
|
|
262
|
-
cache: {
|
|
263
|
-
mode: "remote_local",
|
|
264
|
-
updateCache: true,
|
|
265
|
-
type: "indexDB"
|
|
266
|
-
}
|
|
267
|
-
});
|
|
177
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/booking", params);
|
|
268
178
|
return data;
|
|
269
179
|
};
|
|
270
180
|
var getOrderInfoByCode = async (params) => {
|
|
271
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/machinecode/order-info", params
|
|
272
|
-
cache: {
|
|
273
|
-
mode: "remote_local",
|
|
274
|
-
updateCache: true,
|
|
275
|
-
type: "indexDB"
|
|
276
|
-
}
|
|
277
|
-
});
|
|
181
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/machinecode/order-info", params);
|
|
278
182
|
return data;
|
|
279
183
|
};
|
|
280
184
|
var getClientsEs = async (params) => {
|
|
281
|
-
let { data } = await import_utils.request.getRequest().get(prefix + "/customer/es/data", params
|
|
282
|
-
cache: {
|
|
283
|
-
mode: "remote_local",
|
|
284
|
-
updateCache: true,
|
|
285
|
-
type: "indexDB"
|
|
286
|
-
}
|
|
287
|
-
});
|
|
185
|
+
let { data } = await import_utils.request.getRequest().get(prefix + "/customer/es/data", params);
|
|
288
186
|
return data;
|
|
289
187
|
};
|
|
290
188
|
var voidAppointment = async (order_id) => {
|
|
@@ -15,15 +15,21 @@ export declare const restoreProductOtherData: (data: any) => {
|
|
|
15
15
|
quantity: number;
|
|
16
16
|
} | undefined;
|
|
17
17
|
export declare const isSameProduct: (a: any, b: any) => boolean;
|
|
18
|
-
export declare const addService: (list: any[], addItem: any, state: any) => {
|
|
18
|
+
export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
|
|
19
|
+
list: any[];
|
|
20
|
+
count: number;
|
|
21
|
+
quantity?: undefined;
|
|
22
|
+
} | {
|
|
19
23
|
list: any[];
|
|
20
24
|
quantity: any;
|
|
25
|
+
count?: undefined;
|
|
21
26
|
};
|
|
22
27
|
export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
|
|
23
28
|
export declare const getCartProductOverlay: (state: any) => any;
|
|
24
29
|
export declare const getIsOverlayProduct: (item: any, state: any) => any;
|
|
25
30
|
export declare const getIsShowNumber: (item: any, state: any) => any;
|
|
26
31
|
export declare const genServiceKey: (item: any) => string;
|
|
32
|
+
export declare const genHolderKey: (item: any) => string;
|
|
27
33
|
export declare const getIsParallelResourcesBooking: (record: any) => boolean;
|
|
28
34
|
declare type ScanData = {
|
|
29
35
|
type: string;
|
|
@@ -44,6 +44,7 @@ __export(utils_exports, {
|
|
|
44
44
|
formatOptions: () => formatOptions,
|
|
45
45
|
formatScanCustomer: () => formatScanCustomer,
|
|
46
46
|
formatScanGlobal: () => formatScanGlobal,
|
|
47
|
+
genHolderKey: () => genHolderKey,
|
|
47
48
|
genServiceKey: () => genServiceKey,
|
|
48
49
|
getBoardConfigCache: () => import_productCache.getBoardConfigCache,
|
|
49
50
|
getBookingTicketKey: () => getBookingTicketKey,
|
|
@@ -68,6 +69,7 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
68
69
|
var import_dayjs = __toESM(require("dayjs"));
|
|
69
70
|
var import_utils = require("../../booking/info/service2/utils");
|
|
70
71
|
var import_utils2 = require("@pisell/utils");
|
|
72
|
+
var import_utils3 = require("../../booking/info2/service/addService/utils");
|
|
71
73
|
var import_productCache = require("./productCache");
|
|
72
74
|
var formatDateToStr = (date) => {
|
|
73
75
|
const format = (val) => {
|
|
@@ -168,41 +170,30 @@ var isSameProduct = (a, b) => {
|
|
|
168
170
|
if ((0, import_utils.isNormalProductByDurationSchedule)(a) && (0, import_utils.isNormalProductByDurationSchedule)(b)) {
|
|
169
171
|
return ((_b = (_a = a._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.rowKey) === ((_d = (_c = b._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.rowKey);
|
|
170
172
|
}
|
|
171
|
-
return ((_f = (_e = a._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.rowKey) === ((_h = (_g = b._extend) == null ? void 0 : _g.other) == null ? void 0 : _h.rowKey) && a._serviceKey === b._serviceKey;
|
|
173
|
+
return ((_f = (_e = a._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.rowKey) === ((_h = (_g = b._extend) == null ? void 0 : _g.other) == null ? void 0 : _h.rowKey) && a._serviceKey === b._serviceKey && a._holderKey === b._holderKey;
|
|
172
174
|
};
|
|
173
|
-
var addService = (list, addItem, state) => {
|
|
174
|
-
var _a;
|
|
175
|
+
var addService = (list, addItem, state, isMultiDay) => {
|
|
175
176
|
let value = list;
|
|
176
177
|
let count;
|
|
178
|
+
if (isMultiDay && (0, import_utils2.isArr)(addItem)) {
|
|
179
|
+
return {
|
|
180
|
+
list: [...addItem, ...value],
|
|
181
|
+
count: 1
|
|
182
|
+
};
|
|
183
|
+
}
|
|
177
184
|
if (!(0, import_utils.isNormalProductByDurationSchedule)(addItem) && !getIsOverlayProduct(addItem, state)) {
|
|
178
|
-
|
|
179
|
-
count = quantity;
|
|
180
|
-
for (let i = 0; i < quantity; i++) {
|
|
181
|
-
const singleItem = {
|
|
182
|
-
...addItem,
|
|
183
|
-
_id: (0, import_utils2.getUniqueId)(),
|
|
184
|
-
// 每个卡片都有独立的 ID
|
|
185
|
-
_extend: {
|
|
186
|
-
...addItem._extend,
|
|
187
|
-
quantity: 1,
|
|
188
|
-
other: {
|
|
189
|
-
...((_a = addItem._extend) == null ? void 0 : _a.other) || {},
|
|
190
|
-
quantity: 1
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
value.unshift(singleItem);
|
|
195
|
-
}
|
|
185
|
+
value.unshift(addItem);
|
|
186
|
+
count = addItem._extend.quantity;
|
|
196
187
|
} else {
|
|
197
188
|
let isNotSame = true;
|
|
198
189
|
let isSetCount = false;
|
|
199
190
|
value = list.map((item) => {
|
|
200
|
-
var
|
|
191
|
+
var _a, _b, _c;
|
|
201
192
|
const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
|
|
202
193
|
const isEdit = item == null ? void 0 : item.edit;
|
|
203
194
|
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
|
204
195
|
isNotSame = false;
|
|
205
|
-
const quantity = (((
|
|
196
|
+
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);
|
|
206
197
|
count = quantity;
|
|
207
198
|
isSetCount = true;
|
|
208
199
|
return {
|
|
@@ -265,6 +256,9 @@ var getIsOverlayProduct = (item, state) => {
|
|
|
265
256
|
};
|
|
266
257
|
var getIsShowNumber = (item, state) => {
|
|
267
258
|
const isBookingTicket2 = state.isBookingTicket2;
|
|
259
|
+
if ((0, import_utils3.isMultiDayProduct)(item)) {
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
268
262
|
return (0, import_utils.isNormalProductByDurationSchedule)(item) || isBookingTicket2 && getIsOverlayProduct(item, state);
|
|
269
263
|
};
|
|
270
264
|
var genServiceKey = (item) => {
|
|
@@ -281,6 +275,17 @@ var genServiceKey = (item) => {
|
|
|
281
275
|
});
|
|
282
276
|
return `${product_id}-${durationKey}-${resourceKey}-${start_time}-${total}`;
|
|
283
277
|
};
|
|
278
|
+
var genHolderKey = (item) => {
|
|
279
|
+
var _a, _b, _c;
|
|
280
|
+
const product_id = item.product_id;
|
|
281
|
+
let holder_id;
|
|
282
|
+
if ((0, import_utils2.isArr)((_a = item._extend) == null ? void 0 : _a.holder_id)) {
|
|
283
|
+
holder_id = (_b = item._extend) == null ? void 0 : _b.holder_id.join("-");
|
|
284
|
+
} else {
|
|
285
|
+
holder_id = (_c = item._extend) == null ? void 0 : _c.holder_id;
|
|
286
|
+
}
|
|
287
|
+
return `${product_id}-${holder_id}`;
|
|
288
|
+
};
|
|
284
289
|
var getIsParallelResourcesBooking = (record) => {
|
|
285
290
|
return (record == null ? void 0 : record.relation_id) === 0 && (record == null ? void 0 : record.relation_type) === "";
|
|
286
291
|
};
|
|
@@ -386,6 +391,7 @@ var rulesHooks = {
|
|
|
386
391
|
formatOptions,
|
|
387
392
|
formatScanCustomer,
|
|
388
393
|
formatScanGlobal,
|
|
394
|
+
genHolderKey,
|
|
389
395
|
genServiceKey,
|
|
390
396
|
getBoardConfigCache,
|
|
391
397
|
getBookingTicketKey,
|
|
@@ -20,8 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var useEngineContext_exports = {};
|
|
21
21
|
__export(useEngineContext_exports, {
|
|
22
22
|
default: () => useEngineContext_default,
|
|
23
|
-
usePisellOS: () => usePisellOS
|
|
24
|
-
usePlatform: () => usePlatform
|
|
23
|
+
usePisellOS: () => usePisellOS
|
|
25
24
|
});
|
|
26
25
|
module.exports = __toCommonJS(useEngineContext_exports);
|
|
27
26
|
var import_react = require("react");
|
|
@@ -41,15 +40,8 @@ var usePisellOS = () => {
|
|
|
41
40
|
const { pisellos } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
42
41
|
return pisellos;
|
|
43
42
|
};
|
|
44
|
-
var usePlatform = () => {
|
|
45
|
-
var _a;
|
|
46
|
-
const context = useEngineContext();
|
|
47
|
-
const { platform } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.constants) || {};
|
|
48
|
-
return platform;
|
|
49
|
-
};
|
|
50
43
|
var useEngineContext_default = useEngineContext;
|
|
51
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
52
45
|
0 && (module.exports = {
|
|
53
|
-
usePisellOS
|
|
54
|
-
usePlatform
|
|
46
|
+
usePisellOS
|
|
55
47
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -63,3 +63,7 @@ export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
|
|
|
63
63
|
export { default as PinModal } from './components/pinModal';
|
|
64
64
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
65
65
|
export { ResponsiveList as SkuList } from './components/list';
|
|
66
|
+
export { default as ContactInfo } from './plus/contactInfo';
|
|
67
|
+
export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
68
|
+
export { default as SelectHolder } from './plus/selectHolder';
|
|
69
|
+
export { default as HolderList } from './plus/selectHolder/components/HolderList';
|
package/lib/index.js
CHANGED
|
@@ -46,6 +46,8 @@ __export(src_exports, {
|
|
|
46
46
|
ClientCard: () => import_clientCard.default,
|
|
47
47
|
ClientSearch: () => import_clinetSearch.default,
|
|
48
48
|
ComprehensiveSearch: () => import_comprehensiveSearch.default,
|
|
49
|
+
ContactInfo: () => import_contactInfo.default,
|
|
50
|
+
ContactInfoModal: () => import_contactInfoModal.default,
|
|
49
51
|
EditBookingModal: () => import_editBookingModal.default,
|
|
50
52
|
Eftpos: () => import_eftpos.default,
|
|
51
53
|
EftposPay: () => import_eftposPay.default,
|
|
@@ -61,6 +63,7 @@ __export(src_exports, {
|
|
|
61
63
|
EventScheduleCalendar: () => import_scheduleCalendar.default,
|
|
62
64
|
EventSelectHolder: () => import_selectHolder.default,
|
|
63
65
|
EventTimeResourceSelector: () => import_timeResourceSelector.default,
|
|
66
|
+
HolderList: () => import_HolderList.default,
|
|
64
67
|
Login: () => import_login.default,
|
|
65
68
|
NoteModal: () => import_noteModal.default,
|
|
66
69
|
PinModal: () => import_pinModal.default,
|
|
@@ -78,6 +81,7 @@ __export(src_exports, {
|
|
|
78
81
|
SaasLogin: () => import_saasLogin.default,
|
|
79
82
|
SaasRegister: () => import_saasRegister.default,
|
|
80
83
|
Schedules: () => import_schedules.default,
|
|
84
|
+
SelectHolder: () => import_selectHolder2.default,
|
|
81
85
|
ShoppingCart: () => import_shoppingCart.default,
|
|
82
86
|
SkuCard: () => import_SkuCard.default,
|
|
83
87
|
SkuList: () => import_list.ResponsiveList,
|
|
@@ -162,6 +166,10 @@ var import_SkuCard = __toESM(require("./plus/productSelect/ProductCard/SkuCard")
|
|
|
162
166
|
var import_pinModal = __toESM(require("./components/pinModal"));
|
|
163
167
|
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
|
164
168
|
var import_list = require("./components/list");
|
|
169
|
+
var import_contactInfo = __toESM(require("./plus/contactInfo"));
|
|
170
|
+
var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
171
|
+
var import_selectHolder2 = __toESM(require("./plus/selectHolder"));
|
|
172
|
+
var import_HolderList = __toESM(require("./plus/selectHolder/components/HolderList"));
|
|
165
173
|
import_dayjs.default.extend(import_weekday.default);
|
|
166
174
|
import_dayjs.default.extend(import_localeData.default);
|
|
167
175
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -183,6 +191,8 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
183
191
|
ClientCard,
|
|
184
192
|
ClientSearch,
|
|
185
193
|
ComprehensiveSearch,
|
|
194
|
+
ContactInfo,
|
|
195
|
+
ContactInfoModal,
|
|
186
196
|
EditBookingModal,
|
|
187
197
|
Eftpos,
|
|
188
198
|
EftposPay,
|
|
@@ -198,6 +208,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
198
208
|
EventScheduleCalendar,
|
|
199
209
|
EventSelectHolder,
|
|
200
210
|
EventTimeResourceSelector,
|
|
211
|
+
HolderList,
|
|
201
212
|
Login,
|
|
202
213
|
NoteModal,
|
|
203
214
|
PinModal,
|
|
@@ -215,6 +226,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
215
226
|
SaasLogin,
|
|
216
227
|
SaasRegister,
|
|
217
228
|
Schedules,
|
|
229
|
+
SelectHolder,
|
|
218
230
|
ShoppingCart,
|
|
219
231
|
SkuCard,
|
|
220
232
|
SkuList,
|
|
@@ -24,9 +24,9 @@ __export(locales_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(locales_exports);
|
|
25
25
|
var locales_default = {
|
|
26
26
|
en: {
|
|
27
|
-
"pisell2.text.add-client": "Add
|
|
28
|
-
"pisell2.text.change-client": "Change
|
|
29
|
-
"pisell2.text.remove-client": " Remove
|
|
27
|
+
"pisell2.text.add-client": "Add Customer",
|
|
28
|
+
"pisell2.text.change-client": "Change Customer",
|
|
29
|
+
"pisell2.text.remove-client": " Remove Customer"
|
|
30
30
|
},
|
|
31
31
|
"zh-CN": {
|
|
32
32
|
"pisell2.text.add-client": "添加客户",
|
|
@@ -66,7 +66,7 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
|
66
66
|
(_a2 = addClientRef.current) == null ? void 0 : _a2.reset();
|
|
67
67
|
};
|
|
68
68
|
const renderListHeader = () => {
|
|
69
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "client-search-list-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width:
|
|
69
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "client-search-list-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 180 } }, import_utils.locales.getText("pisell2.text.client-search.name")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 110 } }, import_utils.locales.getText("pisell2.text.client-search.register-time")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 125 } }, import_utils.locales.getText("pisell2.text.client-search.membership")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 180 } }, import_utils.locales.getText("pisell2.text.client-search.contact-info")));
|
|
70
70
|
};
|
|
71
71
|
const renderResults = (searchResults) => {
|
|
72
72
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (searchResults == null ? void 0 : searchResults.length) ? renderListHeader() : null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -111,7 +111,7 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
|
111
111
|
{
|
|
112
112
|
dataSource: searchResults,
|
|
113
113
|
renderItem: (item, index) => {
|
|
114
|
-
var _a2, _b2;
|
|
114
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h;
|
|
115
115
|
const membershipText = (_b2 = (_a2 = item.latest_wallet_detail) == null ? void 0 : _a2.wallet) == null ? void 0 : _b2.name;
|
|
116
116
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
117
117
|
import_antd.List.Item,
|
|
@@ -126,10 +126,7 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
|
126
126
|
onClick: () => onRowClick == null ? void 0 : onRowClick(item, index || 0),
|
|
127
127
|
style: { cursor: "pointer" }
|
|
128
128
|
},
|
|
129
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width:
|
|
130
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 110 } }, (0, import_dayjs.default)(item.created_at).format("YYYY-MM-DD") || "-"),
|
|
131
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 120 } }, item.phone || "-"),
|
|
132
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 135 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
129
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 180 } }, /* @__PURE__ */ import_react.default.createElement(import_clientName.default, { dataSource: item }), /* @__PURE__ */ import_react.default.createElement("div", null, item.phone || "-"), /* @__PURE__ */ import_react.default.createElement(
|
|
133
130
|
"div",
|
|
134
131
|
{
|
|
135
132
|
style: {
|
|
@@ -140,7 +137,8 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
|
140
137
|
},
|
|
141
138
|
item.email || "-"
|
|
142
139
|
)),
|
|
143
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width:
|
|
140
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 110 } }, (0, import_dayjs.default)(item.created_at).format("YYYY-MM-DD") || "-"),
|
|
141
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 125 } }, membershipText && (translationOriginal == null ? void 0 : translationOriginal(membershipText)) ? /* @__PURE__ */ import_react.default.createElement(
|
|
144
142
|
import_antd.Tag,
|
|
145
143
|
{
|
|
146
144
|
color: "gold",
|
|
@@ -156,7 +154,18 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
|
156
154
|
}
|
|
157
155
|
},
|
|
158
156
|
translationOriginal == null ? void 0 : translationOriginal(membershipText)
|
|
159
|
-
) : "-")
|
|
157
|
+
) : "-"),
|
|
158
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 180 } }, /* @__PURE__ */ import_react.default.createElement(import_clientName.default, { dataSource: (_c2 = item == null ? void 0 : item.contacts_info) == null ? void 0 : _c2.value }), ((_f = (_e = (_d = item == null ? void 0 : item.contacts_info) == null ? void 0 : _d.value) == null ? void 0 : _e.phone) == null ? void 0 : _f.phone) || "-", /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
style: {
|
|
162
|
+
overflow: "hidden",
|
|
163
|
+
textOverflow: "ellipsis",
|
|
164
|
+
whiteSpace: "nowrap"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
((_h = (_g = item == null ? void 0 : item.contacts_info) == null ? void 0 : _g.value) == null ? void 0 : _h.email) || "-"
|
|
168
|
+
))
|
|
160
169
|
)
|
|
161
170
|
);
|
|
162
171
|
}
|
|
@@ -31,6 +31,7 @@ declare const _default: {
|
|
|
31
31
|
'pisell2.text.client-search.phone': string;
|
|
32
32
|
'pisell2.text.client-search.email': string;
|
|
33
33
|
'pisell2.text.client-search.membership': string;
|
|
34
|
+
'pisell2.text.client-search.contact-info': string;
|
|
34
35
|
};
|
|
35
36
|
'zh-CN': {
|
|
36
37
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
'pisell2.text.client-search.phone': string;
|
|
65
66
|
'pisell2.text.client-search.email': string;
|
|
66
67
|
'pisell2.text.client-search.membership': string;
|
|
68
|
+
'pisell2.text.client-search.contact-info': string;
|
|
67
69
|
};
|
|
68
70
|
'zh-HK': {
|
|
69
71
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -97,6 +99,7 @@ declare const _default: {
|
|
|
97
99
|
'pisell2.text.client-search.phone': string;
|
|
98
100
|
'pisell2.text.client-search.email': string;
|
|
99
101
|
'pisell2.text.client-search.membership': string;
|
|
102
|
+
'pisell2.text.client-search.contact-info': string;
|
|
100
103
|
};
|
|
101
104
|
};
|
|
102
105
|
export default _default;
|
|
@@ -41,7 +41,7 @@ var locales_default = {
|
|
|
41
41
|
"pisell2.text.save": "Save",
|
|
42
42
|
"pisell2.text.save-and-select": "Save and select",
|
|
43
43
|
"pisell2.text.no-results-found": "No results found.",
|
|
44
|
-
"pisell2.text.create-new-client": "Create new
|
|
44
|
+
"pisell2.text.create-new-client": "Create new customer",
|
|
45
45
|
"pisell2.text.result-found": "Result found",
|
|
46
46
|
"pisell2.text.personnel-list": "Personnel list",
|
|
47
47
|
"pisell2.text.load-more": "Load more",
|
|
@@ -54,7 +54,8 @@ var locales_default = {
|
|
|
54
54
|
"pisell2.text.client-search.register-time": "Registration Time",
|
|
55
55
|
"pisell2.text.client-search.phone": "Phone Number",
|
|
56
56
|
"pisell2.text.client-search.email": "Email Address",
|
|
57
|
-
"pisell2.text.client-search.membership": "Membership"
|
|
57
|
+
"pisell2.text.client-search.membership": "Membership",
|
|
58
|
+
"pisell2.text.client-search.contact-info": "Contact info"
|
|
58
59
|
},
|
|
59
60
|
"zh-CN": {
|
|
60
61
|
"pisell2.text.leave-empty-for-walk-in": "如未注册游客则留空",
|
|
@@ -87,7 +88,8 @@ var locales_default = {
|
|
|
87
88
|
"pisell2.text.client-search.register-time": "注册时间",
|
|
88
89
|
"pisell2.text.client-search.phone": "电话号码",
|
|
89
90
|
"pisell2.text.client-search.email": "邮箱",
|
|
90
|
-
"pisell2.text.client-search.membership": "会员"
|
|
91
|
+
"pisell2.text.client-search.membership": "会员",
|
|
92
|
+
"pisell2.text.client-search.contact-info": "联系信息"
|
|
91
93
|
},
|
|
92
94
|
"zh-HK": {
|
|
93
95
|
"pisell2.text.leave-empty-for-walk-in": "如未註冊遊客則留空",
|
|
@@ -120,6 +122,7 @@ var locales_default = {
|
|
|
120
122
|
"pisell2.text.client-search.register-time": "註冊時間",
|
|
121
123
|
"pisell2.text.client-search.phone": "電話號碼",
|
|
122
124
|
"pisell2.text.client-search.email": "電郵地址",
|
|
123
|
-
"pisell2.text.client-search.membership": "會員"
|
|
125
|
+
"pisell2.text.client-search.membership": "會員",
|
|
126
|
+
"pisell2.text.client-search.contact-info": "聯繫信息"
|
|
124
127
|
}
|
|
125
128
|
};
|
|
@@ -10,6 +10,18 @@ export interface ClientData {
|
|
|
10
10
|
nickname: string;
|
|
11
11
|
shop_id: number;
|
|
12
12
|
updated_at: string;
|
|
13
|
+
contacts_info: {
|
|
14
|
+
value: {
|
|
15
|
+
first_name?: string;
|
|
16
|
+
last_name?: string;
|
|
17
|
+
phone?: {
|
|
18
|
+
phone?: string;
|
|
19
|
+
country_calling_code?: string;
|
|
20
|
+
country_code?: string;
|
|
21
|
+
};
|
|
22
|
+
email?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
13
25
|
}
|
|
14
26
|
export interface ClientSearchProps {
|
|
15
27
|
dataSource?: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AvatarConfig } from '../../types';
|
|
3
|
+
import '../../index.less';
|
|
4
|
+
interface AvatarProps {
|
|
5
|
+
config?: AvatarConfig;
|
|
6
|
+
name: string;
|
|
7
|
+
cover?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
10
|
+
export default Avatar;
|