@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
|
@@ -2,10 +2,14 @@ var _excluded = ["detail"];
|
|
|
2
2
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -16,6 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
20
|
import dayjs from 'dayjs';
|
|
17
21
|
import { isNormalProductByDurationSchedule } from "../../booking/info/service2/utils";
|
|
18
22
|
import { isArr, getUniqueId } from '@pisell/utils';
|
|
23
|
+
import { isMultiDayProduct } from "../../booking/info2/service/addService/utils";
|
|
19
24
|
|
|
20
25
|
/** dayjs对象格式化为字符串时间 */
|
|
21
26
|
export var formatDateToStr = function formatDateToStr(date) {
|
|
@@ -131,31 +136,24 @@ export var isSameProduct = function isSameProduct(a, b) {
|
|
|
131
136
|
var _a$_extend, _b$_extend;
|
|
132
137
|
return ((_a$_extend = a._extend) === null || _a$_extend === void 0 || (_a$_extend = _a$_extend.other) === null || _a$_extend === void 0 ? void 0 : _a$_extend.rowKey) === ((_b$_extend = b._extend) === null || _b$_extend === void 0 || (_b$_extend = _b$_extend.other) === null || _b$_extend === void 0 ? void 0 : _b$_extend.rowKey);
|
|
133
138
|
}
|
|
134
|
-
return ((_a$_extend2 = a._extend) === null || _a$_extend2 === void 0 || (_a$_extend2 = _a$_extend2.other) === null || _a$_extend2 === void 0 ? void 0 : _a$_extend2.rowKey) === ((_b$_extend2 = b._extend) === null || _b$_extend2 === void 0 || (_b$_extend2 = _b$_extend2.other) === null || _b$_extend2 === void 0 ? void 0 : _b$_extend2.rowKey) && a._serviceKey === b._serviceKey;
|
|
139
|
+
return ((_a$_extend2 = a._extend) === null || _a$_extend2 === void 0 || (_a$_extend2 = _a$_extend2.other) === null || _a$_extend2 === void 0 ? void 0 : _a$_extend2.rowKey) === ((_b$_extend2 = b._extend) === null || _b$_extend2 === void 0 || (_b$_extend2 = _b$_extend2.other) === null || _b$_extend2 === void 0 ? void 0 : _b$_extend2.rowKey) && a._serviceKey === b._serviceKey && a._holderKey === b._holderKey;
|
|
135
140
|
};
|
|
136
|
-
export var addService = function addService(list, addItem, state) {
|
|
141
|
+
export var addService = function addService(list, addItem, state, isMultiDay) {
|
|
137
142
|
var value = list;
|
|
138
143
|
var count;
|
|
144
|
+
|
|
145
|
+
// 跨日预约 不需要叠加
|
|
146
|
+
if (isMultiDay && isArr(addItem)) {
|
|
147
|
+
return {
|
|
148
|
+
list: [].concat(_toConsumableArray(addItem), _toConsumableArray(value)),
|
|
149
|
+
count: 1
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
139
153
|
// 预约商品 并且配置商品卡片不叠加 直接添加
|
|
140
154
|
if (!isNormalProductByDurationSchedule(addItem) && !getIsOverlayProduct(addItem, state)) {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
count = quantity;
|
|
144
|
-
for (var i = 0; i < quantity; i++) {
|
|
145
|
-
var _addItem$_extend;
|
|
146
|
-
// 每个卡片都是独立的,quantity 为 1
|
|
147
|
-
var singleItem = _objectSpread(_objectSpread({}, addItem), {}, {
|
|
148
|
-
_id: getUniqueId(),
|
|
149
|
-
// 每个卡片都有独立的 ID
|
|
150
|
-
_extend: _objectSpread(_objectSpread({}, addItem._extend), {}, {
|
|
151
|
-
quantity: 1,
|
|
152
|
-
other: _objectSpread(_objectSpread({}, ((_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.other) || {}), {}, {
|
|
153
|
-
quantity: 1
|
|
154
|
-
})
|
|
155
|
-
})
|
|
156
|
-
});
|
|
157
|
-
value.unshift(singleItem);
|
|
158
|
-
}
|
|
155
|
+
value.unshift(addItem);
|
|
156
|
+
count = addItem._extend.quantity;
|
|
159
157
|
} else {
|
|
160
158
|
// 非预约商品判断是否相同,相同合并
|
|
161
159
|
var isNotSame = true;
|
|
@@ -168,16 +166,16 @@ export var addService = function addService(list, addItem, state) {
|
|
|
168
166
|
});
|
|
169
167
|
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
|
170
168
|
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
|
171
|
-
var _item$_extend, _addItem$
|
|
169
|
+
var _item$_extend, _addItem$_extend, _item$_extend2;
|
|
172
170
|
isNotSame = false;
|
|
173
|
-
var
|
|
174
|
-
count =
|
|
171
|
+
var quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1);
|
|
172
|
+
count = quantity;
|
|
175
173
|
isSetCount = true;
|
|
176
174
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
177
175
|
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
178
|
-
quantity:
|
|
176
|
+
quantity: quantity,
|
|
179
177
|
other: _objectSpread(_objectSpread({}, ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other) || {}), {}, {
|
|
180
|
-
quantity:
|
|
178
|
+
quantity: quantity
|
|
181
179
|
})
|
|
182
180
|
})
|
|
183
181
|
});
|
|
@@ -248,6 +246,10 @@ export var getIsOverlayProduct = function getIsOverlayProduct(item, state) {
|
|
|
248
246
|
// 获取购物车商品是否显示数量
|
|
249
247
|
export var getIsShowNumber = function getIsShowNumber(item, state) {
|
|
250
248
|
var isBookingTicket2 = state.isBookingTicket2;
|
|
249
|
+
// 跨日商品不允许选多个
|
|
250
|
+
if (isMultiDayProduct(item)) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
251
253
|
return isNormalProductByDurationSchedule(item) || isBookingTicket2 && getIsOverlayProduct(item, state);
|
|
252
254
|
};
|
|
253
255
|
|
|
@@ -266,7 +268,21 @@ export var genServiceKey = function genServiceKey(item) {
|
|
|
266
268
|
});
|
|
267
269
|
return "".concat(product_id, "-").concat(durationKey, "-").concat(resourceKey, "-").concat(start_time, "-").concat(total);
|
|
268
270
|
};
|
|
269
|
-
|
|
271
|
+
//
|
|
272
|
+
// 生成 holder key
|
|
273
|
+
export var genHolderKey = function genHolderKey(item) {
|
|
274
|
+
var _item$_extend6;
|
|
275
|
+
var product_id = item.product_id;
|
|
276
|
+
var holder_id;
|
|
277
|
+
if (isArr((_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.holder_id)) {
|
|
278
|
+
var _item$_extend7;
|
|
279
|
+
holder_id = (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.holder_id.join('-');
|
|
280
|
+
} else {
|
|
281
|
+
var _item$_extend8;
|
|
282
|
+
holder_id = (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.holder_id;
|
|
283
|
+
}
|
|
284
|
+
return "".concat(product_id, "-").concat(holder_id);
|
|
285
|
+
};
|
|
270
286
|
// 是否是平行资源预约
|
|
271
287
|
export var getIsParallelResourcesBooking = function getIsParallelResourcesBooking(record) {
|
|
272
288
|
return (record === null || record === void 0 ? void 0 : record.relation_id) === 0 && (record === null || record === void 0 ? void 0 : record.relation_type) === "";
|
|
@@ -14,11 +14,4 @@ export var usePisellOS = function usePisellOS() {
|
|
|
14
14
|
pisellos = _ref.pisellos;
|
|
15
15
|
return pisellos;
|
|
16
16
|
};
|
|
17
|
-
export var usePlatform = function usePlatform() {
|
|
18
|
-
var _context$appHelper2;
|
|
19
|
-
var context = useEngineContext();
|
|
20
|
-
var _ref2 = (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {},
|
|
21
|
-
platform = _ref2.platform;
|
|
22
|
-
return platform;
|
|
23
|
-
};
|
|
24
17
|
export default useEngineContext;
|
package/es/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/es/index.js
CHANGED
|
@@ -66,4 +66,8 @@ export { default as SaasCreateOrganization } from "./plus/saasCreateOrganization
|
|
|
66
66
|
export { default as SkuCard } from "./plus/productSelect/ProductCard/SkuCard";
|
|
67
67
|
export { default as PinModal } from "./components/pinModal";
|
|
68
68
|
export { default as PinVerifyModal } from "./components/pinVerifyModal";
|
|
69
|
-
export { ResponsiveList as SkuList } from "./components/list";
|
|
69
|
+
export { ResponsiveList as SkuList } from "./components/list";
|
|
70
|
+
export { default as ContactInfo } from "./plus/contactInfo";
|
|
71
|
+
export { default as ContactInfoModal } from "./plus/contactInfoModal";
|
|
72
|
+
export { default as SelectHolder } from "./plus/selectHolder";
|
|
73
|
+
export { default as HolderList } from "./plus/selectHolder/components/HolderList";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
|
-
'pisell2.text.add-client': 'Add
|
|
4
|
-
'pisell2.text.change-client': 'Change
|
|
5
|
-
'pisell2.text.remove-client': ' Remove
|
|
3
|
+
'pisell2.text.add-client': 'Add Customer',
|
|
4
|
+
'pisell2.text.change-client': 'Change Customer',
|
|
5
|
+
'pisell2.text.remove-client': ' Remove Customer'
|
|
6
6
|
},
|
|
7
7
|
'zh-CN': {
|
|
8
8
|
'pisell2.text.add-client': '添加客户',
|
|
@@ -55,7 +55,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
55
55
|
}, /*#__PURE__*/React.createElement("div", {
|
|
56
56
|
className: "header-item",
|
|
57
57
|
style: {
|
|
58
|
-
width:
|
|
58
|
+
width: 180
|
|
59
59
|
}
|
|
60
60
|
}, locales.getText('pisell2.text.client-search.name')), /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: "header-item",
|
|
@@ -65,19 +65,14 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
65
65
|
}, locales.getText('pisell2.text.client-search.register-time')), /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
className: "header-item",
|
|
67
67
|
style: {
|
|
68
|
-
width:
|
|
69
|
-
}
|
|
70
|
-
}, locales.getText('pisell2.text.client-search.phone')), /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "header-item",
|
|
72
|
-
style: {
|
|
73
|
-
width: 135
|
|
68
|
+
width: 125
|
|
74
69
|
}
|
|
75
|
-
}, locales.getText('pisell2.text.client-search.
|
|
70
|
+
}, locales.getText('pisell2.text.client-search.membership')), /*#__PURE__*/React.createElement("div", {
|
|
76
71
|
className: "header-item",
|
|
77
72
|
style: {
|
|
78
|
-
width:
|
|
73
|
+
width: 180
|
|
79
74
|
}
|
|
80
|
-
}, locales.getText('pisell2.text.client-search.
|
|
75
|
+
}, locales.getText('pisell2.text.client-search.contact-info')));
|
|
81
76
|
};
|
|
82
77
|
|
|
83
78
|
// 自定义结果展示组件
|
|
@@ -119,7 +114,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
119
114
|
}, /*#__PURE__*/React.createElement(List, {
|
|
120
115
|
dataSource: searchResults,
|
|
121
116
|
renderItem: function renderItem(item, index) {
|
|
122
|
-
var _latest_wallet_detail;
|
|
117
|
+
var _latest_wallet_detail, _item$contacts_info, _item$contacts_info2, _item$contacts_info3;
|
|
123
118
|
var membershipText = (_latest_wallet_detail = item.latest_wallet_detail) === null || _latest_wallet_detail === void 0 || (_latest_wallet_detail = _latest_wallet_detail.wallet) === null || _latest_wallet_detail === void 0 ? void 0 : _latest_wallet_detail.name;
|
|
124
119
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
125
120
|
key: item.id,
|
|
@@ -135,26 +130,11 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
135
130
|
}, /*#__PURE__*/React.createElement("div", {
|
|
136
131
|
className: "item-cell",
|
|
137
132
|
style: {
|
|
138
|
-
width:
|
|
133
|
+
width: 180
|
|
139
134
|
}
|
|
140
135
|
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
141
136
|
dataSource: item
|
|
142
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
143
|
-
className: "item-cell",
|
|
144
|
-
style: {
|
|
145
|
-
width: 110
|
|
146
|
-
}
|
|
147
|
-
}, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
|
|
148
|
-
className: "item-cell",
|
|
149
|
-
style: {
|
|
150
|
-
width: 120
|
|
151
|
-
}
|
|
152
|
-
}, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
|
|
153
|
-
className: "item-cell",
|
|
154
|
-
style: {
|
|
155
|
-
width: 135
|
|
156
|
-
}
|
|
157
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
137
|
+
}), /*#__PURE__*/React.createElement("div", null, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
|
|
158
138
|
style: {
|
|
159
139
|
overflow: 'hidden',
|
|
160
140
|
textOverflow: 'ellipsis',
|
|
@@ -163,7 +143,12 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
163
143
|
}, item.email || '-')), /*#__PURE__*/React.createElement("div", {
|
|
164
144
|
className: "item-cell",
|
|
165
145
|
style: {
|
|
166
|
-
width:
|
|
146
|
+
width: 110
|
|
147
|
+
}
|
|
148
|
+
}, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
|
|
149
|
+
className: "item-cell",
|
|
150
|
+
style: {
|
|
151
|
+
width: 125
|
|
167
152
|
}
|
|
168
153
|
}, membershipText && translationOriginal !== null && translationOriginal !== void 0 && translationOriginal(membershipText) ? /*#__PURE__*/React.createElement(Tag, {
|
|
169
154
|
color: "gold",
|
|
@@ -177,7 +162,20 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
177
162
|
borderRadius: 16,
|
|
178
163
|
marginRight: 0
|
|
179
164
|
}
|
|
180
|
-
}, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-')
|
|
165
|
+
}, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-'), /*#__PURE__*/React.createElement("div", {
|
|
166
|
+
className: "item-cell",
|
|
167
|
+
style: {
|
|
168
|
+
width: 180
|
|
169
|
+
}
|
|
170
|
+
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
171
|
+
dataSource: item === null || item === void 0 || (_item$contacts_info = item.contacts_info) === null || _item$contacts_info === void 0 ? void 0 : _item$contacts_info.value
|
|
172
|
+
}), (item === null || item === void 0 || (_item$contacts_info2 = item.contacts_info) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.value) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.phone) === null || _item$contacts_info2 === void 0 ? void 0 : _item$contacts_info2.phone) || '-', /*#__PURE__*/React.createElement("div", {
|
|
173
|
+
style: {
|
|
174
|
+
overflow: 'hidden',
|
|
175
|
+
textOverflow: 'ellipsis',
|
|
176
|
+
whiteSpace: 'nowrap'
|
|
177
|
+
}
|
|
178
|
+
}, (item === null || item === void 0 || (_item$contacts_info3 = item.contacts_info) === null || _item$contacts_info3 === void 0 || (_item$contacts_info3 = _item$contacts_info3.value) === null || _item$contacts_info3 === void 0 ? void 0 : _item$contacts_info3.email) || '-'))));
|
|
181
179
|
}
|
|
182
180
|
}))));
|
|
183
181
|
};
|
|
@@ -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;
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'pisell2.text.save': 'Save',
|
|
18
18
|
'pisell2.text.save-and-select': 'Save and select',
|
|
19
19
|
'pisell2.text.no-results-found': 'No results found.',
|
|
20
|
-
'pisell2.text.create-new-client': 'Create new
|
|
20
|
+
'pisell2.text.create-new-client': 'Create new customer',
|
|
21
21
|
'pisell2.text.result-found': 'Result found',
|
|
22
22
|
'pisell2.text.personnel-list': 'Personnel list',
|
|
23
23
|
'pisell2.text.load-more': 'Load more',
|
|
@@ -30,7 +30,8 @@ export default {
|
|
|
30
30
|
'pisell2.text.client-search.register-time': 'Registration Time',
|
|
31
31
|
'pisell2.text.client-search.phone': 'Phone Number',
|
|
32
32
|
'pisell2.text.client-search.email': 'Email Address',
|
|
33
|
-
'pisell2.text.client-search.membership': 'Membership'
|
|
33
|
+
'pisell2.text.client-search.membership': 'Membership',
|
|
34
|
+
'pisell2.text.client-search.contact-info': 'Contact info'
|
|
34
35
|
},
|
|
35
36
|
'zh-CN': {
|
|
36
37
|
'pisell2.text.leave-empty-for-walk-in': '如未注册游客则留空',
|
|
@@ -63,7 +64,8 @@ export default {
|
|
|
63
64
|
'pisell2.text.client-search.register-time': '注册时间',
|
|
64
65
|
'pisell2.text.client-search.phone': '电话号码',
|
|
65
66
|
'pisell2.text.client-search.email': '邮箱',
|
|
66
|
-
'pisell2.text.client-search.membership': '会员'
|
|
67
|
+
'pisell2.text.client-search.membership': '会员',
|
|
68
|
+
'pisell2.text.client-search.contact-info': '联系信息'
|
|
67
69
|
},
|
|
68
70
|
'zh-HK': {
|
|
69
71
|
'pisell2.text.leave-empty-for-walk-in': '如未註冊遊客則留空',
|
|
@@ -96,6 +98,7 @@ export default {
|
|
|
96
98
|
'pisell2.text.client-search.register-time': '註冊時間',
|
|
97
99
|
'pisell2.text.client-search.phone': '電話號碼',
|
|
98
100
|
'pisell2.text.client-search.email': '電郵地址',
|
|
99
|
-
'pisell2.text.client-search.membership': '會員'
|
|
101
|
+
'pisell2.text.client-search.membership': '會員',
|
|
102
|
+
'pisell2.text.client-search.contact-info': '聯繫信息'
|
|
100
103
|
}
|
|
101
104
|
};
|
|
@@ -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;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PisellAvatar } from '@pisell/materials';
|
|
4
|
+
import { getAvatarText } from "../../utils";
|
|
5
|
+
import { PREFIX } from "../../index";
|
|
6
|
+
import "../../index.less";
|
|
7
|
+
var Avatar = function Avatar(props) {
|
|
8
|
+
var config = props.config,
|
|
9
|
+
name = props.name,
|
|
10
|
+
cover = props.cover;
|
|
11
|
+
var _ref = config || {},
|
|
12
|
+
useTextAvatar = _ref.useTextAvatar,
|
|
13
|
+
children = _ref.children;
|
|
14
|
+
if (useTextAvatar) {
|
|
15
|
+
var text = children || getAvatarText(name);
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "".concat(PREFIX, "__avatar-wrapper")
|
|
18
|
+
}, /*#__PURE__*/React.createElement(PisellAvatar, _extends({
|
|
19
|
+
className: "".concat(PREFIX, "__avatar")
|
|
20
|
+
}, config || {}), text));
|
|
21
|
+
}
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: "".concat(PREFIX, "__avatar-wrapper")
|
|
24
|
+
}, /*#__PURE__*/React.createElement(PisellAvatar, _extends({
|
|
25
|
+
className: "".concat(PREFIX, "__avatar")
|
|
26
|
+
}, config || {}, {
|
|
27
|
+
src: cover || ''
|
|
28
|
+
})));
|
|
29
|
+
};
|
|
30
|
+
export default Avatar;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare type NativeProps<S extends string = never> = {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
+
};
|
|
7
|
+
declare type PropagationEvent = 'click';
|
|
8
|
+
import './index.less';
|
|
9
|
+
declare type SideType = 'left' | 'right';
|
|
10
|
+
export declare type SwipeActionRef = {
|
|
11
|
+
close: () => void;
|
|
12
|
+
show: (side?: SideType) => void;
|
|
13
|
+
};
|
|
14
|
+
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
+
export declare type Action = {
|
|
16
|
+
key: string | number;
|
|
17
|
+
text: ReactNode;
|
|
18
|
+
color?: ActionColor | string;
|
|
19
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
};
|
|
22
|
+
export declare type SwipeActionProps = {
|
|
23
|
+
rightActions?: Action[];
|
|
24
|
+
leftActions?: Action[];
|
|
25
|
+
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
26
|
+
closeOnTouchOutside?: boolean;
|
|
27
|
+
closeOnAction?: boolean;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
stopPropagation?: PropagationEvent[];
|
|
30
|
+
onActionsReveal?: (side: SideType) => void;
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
escapeDom?: string;
|
|
33
|
+
} & NativeProps<'--background'>;
|
|
34
|
+
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
35
|
+
rightActions?: Action[] | undefined;
|
|
36
|
+
leftActions?: Action[] | undefined;
|
|
37
|
+
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
38
|
+
closeOnTouchOutside?: boolean | undefined;
|
|
39
|
+
closeOnAction?: boolean | undefined;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
stopPropagation?: "click"[] | undefined;
|
|
42
|
+
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
43
|
+
onClose?: (() => void) | undefined;
|
|
44
|
+
escapeDom?: string | undefined;
|
|
45
|
+
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
46
|
+
export {};
|