@pisell/private-materials 6.2.30 → 6.3.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 +1 -9
- package/build/lowcode/preview.js +13 -13
- 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/Sales/Cart/index.js +0 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/index.js +1 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +3 -15
- package/es/components/booking/components/footer/index.js +42 -113
- package/es/components/booking/components/footer/index.less +2 -3
- package/es/components/booking/components/footer/utils.js +23 -51
- package/es/components/booking/components/tabPane/index.js +5 -72
- package/es/components/booking/components/tabPane/index.less +1 -75
- package/es/components/booking/components/voucher/index.js +12 -26
- package/es/components/booking/components/voucher/index.less +1 -1
- package/es/components/booking/dashboard/index.d.ts +1 -1
- package/es/components/booking/dashboard/index.js +3 -10
- package/es/components/booking/forms/forms.js +1 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useQuotation.js +8 -18
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +12 -13
- package/es/components/booking/info/index.less +3 -19
- package/es/components/booking/info/main.js +15 -14
- package/es/components/booking/info/pet/index.less +1 -1
- package/es/components/booking/info/service/Lists.js +2 -5
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/index.less +1 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.js +2 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -4
- package/es/components/booking/info/service2/utils.js +2 -21
- package/es/components/booking/info2/index.js +18 -40
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +1 -2
- package/es/components/booking/info2/service/editService/index.js +4 -4
- package/es/components/booking/info2/service/index.js +6 -11
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -1
- package/es/components/booking/info2/utilsByBooking.js +3 -27
- package/es/components/booking/locales.d.ts +0 -78
- package/es/components/booking/locales.js +4 -106
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +1 -1
- package/es/components/booking/notes/addNote/index.js +32 -52
- package/es/components/booking/notes/addNote/index.less +0 -53
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/listComponent/index.js +5 -5
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/productGroup/index.js +4 -20
- package/es/components/productSelect/components/productGroup/index.less +0 -17
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +7 -46
- package/es/components/shoppingCart/components/Cart/index.less +1 -15
- package/es/components/shoppingCart/type.d.ts +0 -1
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +291 -158
- package/es/components/ticketBooking/components/ticketBooking/index.js +34 -214
- package/es/components/ticketBooking/components/ticketBooking/index.less +1 -29
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +15 -19
- package/es/components/ticketBooking/index.js +3 -21
- package/es/components/ticketBooking/index.less +1 -1
- package/es/components/ticketBooking/locales.d.ts +3 -9
- package/es/components/ticketBooking/locales.js +3 -9
- package/es/components/ticketBooking/serve.js +11 -11
- package/es/components/ticketBooking/utils/index.d.ts +4 -39
- package/es/components/ticketBooking/utils/index.js +28 -109
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +0 -4
- package/es/index.js +1 -5
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Cart/index.js +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/index.js +1 -4
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +3 -5
- package/lib/components/booking/components/footer/index.js +23 -96
- package/lib/components/booking/components/footer/index.less +2 -3
- package/lib/components/booking/components/footer/utils.js +12 -37
- package/lib/components/booking/components/tabPane/index.js +4 -57
- package/lib/components/booking/components/tabPane/index.less +1 -75
- package/lib/components/booking/components/voucher/index.js +11 -23
- package/lib/components/booking/components/voucher/index.less +1 -1
- package/lib/components/booking/dashboard/index.d.ts +1 -1
- package/lib/components/booking/dashboard/index.js +2 -7
- package/lib/components/booking/forms/forms.js +1 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -4
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -12
- package/lib/components/booking/info/index.less +3 -19
- package/lib/components/booking/info/main.js +5 -12
- package/lib/components/booking/info/pet/index.less +1 -1
- package/lib/components/booking/info/service/Lists.js +2 -6
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/index.less +1 -1
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -4
- package/lib/components/booking/info/service2/utils.js +2 -23
- package/lib/components/booking/info2/index.js +9 -30
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -3
- package/lib/components/booking/info2/service/index.js +6 -6
- package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -1
- package/lib/components/booking/info2/utilsByBooking.js +4 -24
- package/lib/components/booking/locales.d.ts +0 -78
- package/lib/components/booking/locales.js +4 -100
- package/lib/components/booking/notes/addNote/index.d.ts +1 -1
- package/lib/components/booking/notes/addNote/index.js +23 -41
- package/lib/components/booking/notes/addNote/index.less +0 -53
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/productSelect/components/productGroup/index.js +3 -16
- package/lib/components/productSelect/components/productGroup/index.less +0 -17
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +9 -45
- package/lib/components/shoppingCart/components/Cart/index.less +1 -15
- package/lib/components/shoppingCart/type.d.ts +0 -1
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +185 -45
- package/lib/components/ticketBooking/components/ticketBooking/index.js +81 -233
- package/lib/components/ticketBooking/components/ticketBooking/index.less +1 -29
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +8 -15
- package/lib/components/ticketBooking/index.js +4 -31
- package/lib/components/ticketBooking/index.less +1 -1
- package/lib/components/ticketBooking/locales.d.ts +3 -9
- package/lib/components/ticketBooking/locales.js +3 -9
- package/lib/components/ticketBooking/serve.js +11 -11
- package/lib/components/ticketBooking/utils/index.d.ts +4 -39
- package/lib/components/ticketBooking/utils/index.js +30 -69
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -12
- package/lib/utils/index.d.ts +1 -1
- package/package.json +25 -25
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/actionButtons/index.js +0 -486
- package/es/components/booking/components/actionButtons/index.less +0 -215
- package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
- package/es/components/booking/components/clearCartModal/index.js +0 -50
- package/es/components/booking/components/clearCartModal/index.less +0 -109
- package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
- package/es/components/booking/components/customiseItemModal/index.js +0 -298
- package/es/components/booking/components/customiseItemModal/index.less +0 -606
- package/es/components/booking/components/voucherModal/index.d.ts +0 -19
- package/es/components/booking/components/voucherModal/index.js +0 -47
- package/es/components/booking/components/voucherModal/index.less +0 -23
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/booking/info2/cartClientCard/index.js +0 -343
- package/es/components/booking/info2/cartClientCard/index.less +0 -6
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/es/components/booking/info2/cartClientCard/locales.js +0 -26
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
- package/es/components/booking/info2/cartClientCard/types.js +0 -1
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/utils.js +0 -7
- package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/es/components/booking/info2/service/editNormalService/index.js +0 -67
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +0 -191
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -33
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -213
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -79
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +0 -25
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +0 -74
- package/es/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -71
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/es/components/ticketBooking/components/floatButtons/index.js +0 -19
- package/es/components/ticketBooking/components/floatButtons/index.less +0 -17
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -5
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/index.js +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -247
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +0 -52
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -30
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -29
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -49
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -20
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useToast.js +0 -9
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/hooks/useTranslationOriginal.js +0 -10
- package/es/plus/clientCard/index.d.ts +0 -7
- package/es/plus/clientCard/index.js +0 -452
- package/es/plus/clientCard/index.less +0 -536
- package/es/plus/clientCard/line/index.d.ts +0 -9
- package/es/plus/clientCard/line/index.js +0 -157
- package/es/plus/clientCard/line/index.less +0 -142
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/locales.js +0 -17
- package/es/plus/clientCard/types.d.ts +0 -126
- package/es/plus/clientCard/types.js +0 -1
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clientCard/utils.js +0 -59
- package/es/plus/clientName/index.d.ts +0 -4
- package/es/plus/clientName/index.js +0 -18
- package/es/plus/clientName/index.less +0 -10
- package/es/plus/clientName/type.d.ts +0 -13
- package/es/plus/clientName/type.js +0 -1
- package/es/plus/clientName/utils.d.ts +0 -2
- package/es/plus/clientName/utils.js +0 -18
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
- package/es/plus/clinetSearch/Add/index.d.ts +0 -18
- package/es/plus/clinetSearch/Add/index.js +0 -212
- package/es/plus/clinetSearch/Add/index.less +0 -30
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/plus/clinetSearch/index.js +0 -214
- package/es/plus/clinetSearch/index.less +0 -91
- package/es/plus/clinetSearch/locales.d.ts +0 -102
- package/es/plus/clinetSearch/locales.js +0 -101
- package/es/plus/clinetSearch/serve.d.ts +0 -1
- package/es/plus/clinetSearch/serve.js +0 -31
- package/es/plus/clinetSearch/types.d.ts +0 -49
- package/es/plus/clinetSearch/types.js +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -7
- package/es/plus/noteModal/AddTempModal.js +0 -64
- package/es/plus/noteModal/index.d.ts +0 -4
- package/es/plus/noteModal/index.js +0 -199
- package/es/plus/noteModal/index.less +0 -168
- package/es/plus/noteModal/locales.d.ts +0 -33
- package/es/plus/noteModal/locales.js +0 -32
- package/es/plus/noteModal/types.d.ts +0 -17
- package/es/plus/noteModal/types.js +0 -1
- package/es/pro/comprehensiveSearch/camera.svg +0 -4
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -9
- package/es/pro/comprehensiveSearch/index.js +0 -342
- package/es/pro/comprehensiveSearch/index.less +0 -323
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
- package/es/pro/comprehensiveSearch/locales.js +0 -17
- package/es/pro/comprehensiveSearch/types.d.ts +0 -31
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/numberKeyboard/index.d.ts +0 -28
- package/es/pro/numberKeyboard/index.js +0 -155
- package/es/pro/numberKeyboard/index.less +0 -25
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/numberKeyboard/locales.js +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/es/pro/pisellNumberSelector/index.d.ts +0 -26
- package/es/pro/pisellNumberSelector/index.js +0 -250
- package/es/pro/pisellNumberSelector/index.less +0 -193
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/index.js +0 -211
- package/es/pro/pisellPhoneKeyboard/index.less +0 -157
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/locales.js +0 -11
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardModal/index.js +0 -1
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardModal/types.js +0 -1
- package/es/pro/pisellPriceRadio/index.d.ts +0 -26
- package/es/pro/pisellPriceRadio/index.js +0 -113
- package/es/pro/pisellPriceRadio/index.less +0 -158
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/es/pro/skuDetailModal/index.js +0 -352
- package/es/pro/skuDetailModal/index.less +0 -236
- package/es/pro/skuDetailModal/locales.d.ts +0 -48
- package/es/pro/skuDetailModal/locales.js +0 -47
- package/es/pro/skuDetailModal/types.d.ts +0 -347
- package/es/pro/skuDetailModal/types.js +0 -1
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/actionButtons/index.js +0 -386
- package/lib/components/booking/components/actionButtons/index.less +0 -215
- package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
- package/lib/components/booking/components/clearCartModal/index.js +0 -80
- package/lib/components/booking/components/clearCartModal/index.less +0 -109
- package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
- package/lib/components/booking/components/customiseItemModal/index.js +0 -285
- package/lib/components/booking/components/customiseItemModal/index.less +0 -606
- package/lib/components/booking/components/voucherModal/index.d.ts +0 -19
- package/lib/components/booking/components/voucherModal/index.js +0 -83
- package/lib/components/booking/components/voucherModal/index.less +0 -23
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/booking/info2/cartClientCard/index.js +0 -298
- package/lib/components/booking/info2/cartClientCard/index.less +0 -6
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/lib/components/booking/info2/cartClientCard/locales.js +0 -50
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
- package/lib/components/booking/info2/cartClientCard/types.js +0 -17
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/utils.js +0 -37
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editNormalService/index.js +0 -100
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +0 -174
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -75
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -210
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -105
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +0 -57
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +0 -113
- package/lib/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -84
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/floatButtons/index.js +0 -52
- package/lib/components/ticketBooking/components/floatButtons/index.less +0 -17
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -33
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/index.js +0 -27
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -147
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -47
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -64
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -65
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -83
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -44
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useToast.js +0 -42
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/hooks/useTranslationOriginal.js +0 -42
- package/lib/plus/clientCard/index.d.ts +0 -7
- package/lib/plus/clientCard/index.js +0 -442
- package/lib/plus/clientCard/index.less +0 -536
- package/lib/plus/clientCard/line/index.d.ts +0 -9
- package/lib/plus/clientCard/line/index.js +0 -153
- package/lib/plus/clientCard/line/index.less +0 -142
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/locales.js +0 -41
- package/lib/plus/clientCard/types.d.ts +0 -126
- package/lib/plus/clientCard/types.js +0 -17
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clientCard/utils.js +0 -75
- package/lib/plus/clientName/index.d.ts +0 -4
- package/lib/plus/clientName/index.js +0 -53
- package/lib/plus/clientName/index.less +0 -10
- package/lib/plus/clientName/type.d.ts +0 -13
- package/lib/plus/clientName/type.js +0 -17
- package/lib/plus/clientName/utils.d.ts +0 -2
- package/lib/plus/clientName/utils.js +0 -43
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
- package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/index.js +0 -243
- package/lib/plus/clinetSearch/Add/index.less +0 -30
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/plus/clinetSearch/index.js +0 -205
- package/lib/plus/clinetSearch/index.less +0 -91
- package/lib/plus/clinetSearch/locales.d.ts +0 -102
- package/lib/plus/clinetSearch/locales.js +0 -125
- package/lib/plus/clinetSearch/serve.d.ts +0 -1
- package/lib/plus/clinetSearch/serve.js +0 -33
- package/lib/plus/clinetSearch/types.d.ts +0 -49
- package/lib/plus/clinetSearch/types.js +0 -17
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
- package/lib/plus/noteModal/AddTempModal.js +0 -95
- package/lib/plus/noteModal/index.d.ts +0 -4
- package/lib/plus/noteModal/index.js +0 -199
- package/lib/plus/noteModal/index.less +0 -168
- package/lib/plus/noteModal/locales.d.ts +0 -33
- package/lib/plus/noteModal/locales.js +0 -56
- package/lib/plus/noteModal/types.d.ts +0 -17
- package/lib/plus/noteModal/types.js +0 -17
- package/lib/pro/comprehensiveSearch/camera.svg +0 -4
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/index.js +0 -259
- package/lib/pro/comprehensiveSearch/index.less +0 -323
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
- package/lib/pro/comprehensiveSearch/locales.js +0 -41
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/numberKeyboard/index.d.ts +0 -28
- package/lib/pro/numberKeyboard/index.js +0 -182
- package/lib/pro/numberKeyboard/index.less +0 -25
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/numberKeyboard/locales.js +0 -35
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
- package/lib/pro/pisellNumberSelector/index.js +0 -270
- package/lib/pro/pisellNumberSelector/index.less +0 -193
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/index.js +0 -220
- package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/locales.js +0 -35
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardModal/index.js +0 -35
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardModal/types.js +0 -17
- package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
- package/lib/pro/pisellPriceRadio/index.js +0 -130
- package/lib/pro/pisellPriceRadio/index.less +0 -158
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/pro/skuDetailModal/index.js +0 -311
- package/lib/pro/skuDetailModal/index.less +0 -236
- package/lib/pro/skuDetailModal/locales.d.ts +0 -48
- package/lib/pro/skuDetailModal/locales.js +0 -71
- package/lib/pro/skuDetailModal/types.d.ts +0 -347
- package/lib/pro/skuDetailModal/types.js +0 -17
- package/lowcode/client-card/fragments/cardStyle.ts +0 -63
- package/lowcode/client-card/fragments/nameStyle.ts +0 -34
- package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
- package/lowcode/client-card/fragments/tagConfig.ts +0 -88
- package/lowcode/client-card/meta.ts +0 -337
- package/lowcode/comprehensive-search/meta.ts +0 -261
@@ -1,109 +0,0 @@
|
|
1
|
-
.pisell-clear-cart-modal {
|
2
|
-
.ant-modal-content {
|
3
|
-
border-radius: 16px;
|
4
|
-
overflow: hidden;
|
5
|
-
}
|
6
|
-
|
7
|
-
.ant-modal-close {
|
8
|
-
top: 16px;
|
9
|
-
right: 16px;
|
10
|
-
color: #666;
|
11
|
-
|
12
|
-
&:hover {
|
13
|
-
color: #333;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
.pisell-clear-cart-modal-content {
|
19
|
-
padding: 32px 24px 24px;
|
20
|
-
text-align: center;
|
21
|
-
}
|
22
|
-
|
23
|
-
.pisell-clear-cart-modal-title {
|
24
|
-
font-size: 24px;
|
25
|
-
font-weight: 600;
|
26
|
-
color: #333;
|
27
|
-
margin: 0 0 32px 0;
|
28
|
-
line-height: 1.3;
|
29
|
-
}
|
30
|
-
|
31
|
-
.pisell-clear-cart-modal-options {
|
32
|
-
display: flex;
|
33
|
-
gap: 16px;
|
34
|
-
justify-content: center;
|
35
|
-
}
|
36
|
-
|
37
|
-
.pisell-clear-cart-option {
|
38
|
-
flex: 1;
|
39
|
-
max-width: 200px;
|
40
|
-
padding: 20px 20px;
|
41
|
-
border-radius: 16px;
|
42
|
-
cursor: pointer;
|
43
|
-
transition: all 0.2s ease;
|
44
|
-
text-align: center;
|
45
|
-
color: white;
|
46
|
-
border: none;
|
47
|
-
outline: none;
|
48
|
-
font-family: inherit;
|
49
|
-
display: flex;
|
50
|
-
flex-direction: column;
|
51
|
-
align-items: center;
|
52
|
-
min-height: 140px; // 设置最小高度确保一致性
|
53
|
-
|
54
|
-
&:hover {
|
55
|
-
transform: translateY(-2px);
|
56
|
-
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
|
57
|
-
}
|
58
|
-
|
59
|
-
&:active {
|
60
|
-
transform: translateY(0);
|
61
|
-
}
|
62
|
-
|
63
|
-
.option-icon {
|
64
|
-
display: flex;
|
65
|
-
justify-content: center;
|
66
|
-
align-items: center;
|
67
|
-
height: 48px; // 固定图标容器高度
|
68
|
-
flex-shrink: 0; // 防止收缩
|
69
|
-
|
70
|
-
// 确保图标大小
|
71
|
-
.anticon {
|
72
|
-
font-size: 32px !important;
|
73
|
-
width: 32px;
|
74
|
-
height: 32px;
|
75
|
-
}
|
76
|
-
|
77
|
-
// 如果是 svg 图标
|
78
|
-
svg {
|
79
|
-
width: 32px !important;
|
80
|
-
height: 32px !important;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
.option-text {
|
85
|
-
font-size: 16px;
|
86
|
-
font-weight: 600;
|
87
|
-
line-height: 1.4;
|
88
|
-
white-space: pre-line; // 支持换行符显示
|
89
|
-
flex: 1; // 占据剩余空间
|
90
|
-
display: flex;
|
91
|
-
align-items: center; // 垂直居中文本
|
92
|
-
}
|
93
|
-
|
94
|
-
&.purple-option {
|
95
|
-
background: #5D3F9F;
|
96
|
-
|
97
|
-
&:hover {
|
98
|
-
background: #4A336D;
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
&.red-option {
|
103
|
-
background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
|
104
|
-
|
105
|
-
&:hover {
|
106
|
-
background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
export interface CustomiseItemModalProps {
|
4
|
-
/** 是否显示弹窗 */
|
5
|
-
visible?: boolean;
|
6
|
-
/** 关闭弹窗回调 */
|
7
|
-
onClose?: () => void;
|
8
|
-
/** 保存回调 */
|
9
|
-
onSave?: (data: CustomiseItemData) => void;
|
10
|
-
/** 货币符号 */
|
11
|
-
currencySymbol?: string;
|
12
|
-
/** 是否禁用 */
|
13
|
-
disabled?: boolean;
|
14
|
-
}
|
15
|
-
export interface CustomiseItemData {
|
16
|
-
/** 商品名称 */
|
17
|
-
productName: string;
|
18
|
-
/** 是否适用优惠券/折扣 */
|
19
|
-
vouchersApplicable: boolean;
|
20
|
-
/** 价格类型:sell(售价) | deduction(手动减价) */
|
21
|
-
priceType: 'sell' | 'deduction';
|
22
|
-
/** 价格值 */
|
23
|
-
priceValue: string;
|
24
|
-
/** 数量 */
|
25
|
-
quantity: number;
|
26
|
-
}
|
27
|
-
declare const CustomiseItemModal: React.FC<CustomiseItemModalProps>;
|
28
|
-
export default CustomiseItemModal;
|
@@ -1,285 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
-
mod
|
26
|
-
));
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
-
|
29
|
-
// src/components/booking/components/customiseItemModal/index.tsx
|
30
|
-
var customiseItemModal_exports = {};
|
31
|
-
__export(customiseItemModal_exports, {
|
32
|
-
default: () => customiseItemModal_default
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(customiseItemModal_exports);
|
35
|
-
var import_react = __toESM(require("react"));
|
36
|
-
var import_antd = require("antd");
|
37
|
-
var import_utils = require("@pisell/utils");
|
38
|
-
var import_pisellNumberSelector = __toESM(require("../../../../pro/pisellNumberSelector"));
|
39
|
-
var import_pisellPriceKeyboardModal = __toESM(require("../../../../pro/pisellPriceKeyboardModal"));
|
40
|
-
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
41
|
-
var import_index = require("./index.less");
|
42
|
-
var CustomiseItemModal = ({
|
43
|
-
visible = false,
|
44
|
-
onClose,
|
45
|
-
onSave,
|
46
|
-
currencySymbol = "$",
|
47
|
-
disabled = false
|
48
|
-
}) => {
|
49
|
-
var _a, _b;
|
50
|
-
const [productName, setProductName] = (0, import_react.useState)("");
|
51
|
-
const [vouchersApplicable, setVouchersApplicable] = (0, import_react.useState)(false);
|
52
|
-
const [priceType, setPriceType] = (0, import_react.useState)("sell");
|
53
|
-
const [sellPrice, setSellPrice] = (0, import_react.useState)("");
|
54
|
-
const [deductionPrice, setDeductionPrice] = (0, import_react.useState)("");
|
55
|
-
const [quantity, setQuantity] = (0, import_react.useState)(1);
|
56
|
-
const [showPriceKeyboard, setShowPriceKeyboard] = (0, import_react.useState)(false);
|
57
|
-
const [currentTriggerRef, setCurrentTriggerRef] = (0, import_react.useState)(void 0);
|
58
|
-
const sellPriceButtonRef = (0, import_react.useRef)(null);
|
59
|
-
const deductionPriceButtonRef = (0, import_react.useRef)(null);
|
60
|
-
const context = (0, import_useEngineContext.default)();
|
61
|
-
const Toast = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.Toast;
|
62
|
-
const resetForm = () => {
|
63
|
-
setProductName("");
|
64
|
-
setVouchersApplicable(false);
|
65
|
-
setPriceType("sell");
|
66
|
-
setSellPrice("");
|
67
|
-
setDeductionPrice("");
|
68
|
-
setQuantity(1);
|
69
|
-
setShowPriceKeyboard(false);
|
70
|
-
};
|
71
|
-
(0, import_react.useEffect)(() => {
|
72
|
-
if (visible) {
|
73
|
-
resetForm();
|
74
|
-
}
|
75
|
-
}, [visible]);
|
76
|
-
const showKeyboard = (triggerRef, priceType2) => {
|
77
|
-
setCurrentTriggerRef(triggerRef);
|
78
|
-
setPriceType(priceType2);
|
79
|
-
setShowPriceKeyboard(true);
|
80
|
-
};
|
81
|
-
const handleClose = () => {
|
82
|
-
resetForm();
|
83
|
-
onClose == null ? void 0 : onClose();
|
84
|
-
};
|
85
|
-
const handleSave = () => {
|
86
|
-
const currentPriceValue = priceType === "sell" ? sellPrice : deductionPrice;
|
87
|
-
if (!currentPriceValue || currentPriceValue.trim() === "") {
|
88
|
-
const priceTypeName = priceType === "sell" ? import_utils.locales.getText("pisell2.customise-item.sell-price") : import_utils.locales.getText("pisell2.customise-item.manual-deduction-price");
|
89
|
-
const errorMessage = import_utils.locales.getText("pisell2.customise-item.price-required-error")(priceTypeName);
|
90
|
-
if (Toast) {
|
91
|
-
Toast.info(errorMessage);
|
92
|
-
} else {
|
93
|
-
alert(errorMessage);
|
94
|
-
}
|
95
|
-
return;
|
96
|
-
}
|
97
|
-
const data = {
|
98
|
-
productName: productName || import_utils.locales.getText("pisell2.customise-item.default-product-name"),
|
99
|
-
vouchersApplicable,
|
100
|
-
priceType,
|
101
|
-
priceValue: currentPriceValue,
|
102
|
-
quantity
|
103
|
-
};
|
104
|
-
onSave == null ? void 0 : onSave(data);
|
105
|
-
handleClose();
|
106
|
-
};
|
107
|
-
const validateProductName = (value) => {
|
108
|
-
return value.length <= 60;
|
109
|
-
};
|
110
|
-
const handleProductNameChange = (e) => {
|
111
|
-
const value = e.target.value;
|
112
|
-
if (validateProductName(value)) {
|
113
|
-
setProductName(value);
|
114
|
-
}
|
115
|
-
};
|
116
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
117
|
-
import_antd.Modal,
|
118
|
-
{
|
119
|
-
open: visible,
|
120
|
-
onCancel: handleClose,
|
121
|
-
footer: null,
|
122
|
-
closable: false,
|
123
|
-
width: 800,
|
124
|
-
centered: true,
|
125
|
-
className: "customise-item-modal"
|
126
|
-
},
|
127
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-modal-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-modal-header" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "customise-item-modal-title" }, import_utils.locales.getText("pisell2.customise-item.modal-title")), /* @__PURE__ */ import_react.default.createElement(
|
128
|
-
import_antd.Button,
|
129
|
-
{
|
130
|
-
type: "text",
|
131
|
-
onClick: handleClose,
|
132
|
-
className: "customise-item-modal-close",
|
133
|
-
size: "large"
|
134
|
-
},
|
135
|
-
"×"
|
136
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-modal-body" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-modal-illustration" }, /* @__PURE__ */ import_react.default.createElement(
|
137
|
-
"img",
|
138
|
-
{
|
139
|
-
src: "https://static.pisellcdn.com/custom-product-img.png",
|
140
|
-
alt: "Custom item illustration",
|
141
|
-
className: "customise-item-illustration-image",
|
142
|
-
style: {
|
143
|
-
width: "100%",
|
144
|
-
height: "100%",
|
145
|
-
objectFit: "contain"
|
146
|
-
}
|
147
|
-
}
|
148
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-modal-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-form-group" }, /* @__PURE__ */ import_react.default.createElement("label", { className: "customise-item-form-label" }, import_utils.locales.getText("pisell2.customise-item.product-name")), /* @__PURE__ */ import_react.default.createElement(
|
149
|
-
import_antd.Input,
|
150
|
-
{
|
151
|
-
value: productName,
|
152
|
-
onChange: handleProductNameChange,
|
153
|
-
placeholder: import_utils.locales.getText(
|
154
|
-
"pisell2.customise-item.default-product-name"
|
155
|
-
),
|
156
|
-
maxLength: 60,
|
157
|
-
className: "customise-item-product-name-input",
|
158
|
-
disabled
|
159
|
-
}
|
160
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-form-group" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-vouchers-checkbox" }, /* @__PURE__ */ import_react.default.createElement(
|
161
|
-
"label",
|
162
|
-
{
|
163
|
-
className: "vouchers-label",
|
164
|
-
onClick: () => !disabled && setVouchersApplicable(!vouchersApplicable)
|
165
|
-
},
|
166
|
-
import_utils.locales.getText("pisell2.customise-item.vouchers-applicable")
|
167
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
168
|
-
import_antd.Checkbox,
|
169
|
-
{
|
170
|
-
checked: vouchersApplicable,
|
171
|
-
onChange: (e) => setVouchersApplicable(e.target.checked),
|
172
|
-
disabled,
|
173
|
-
className: "vouchers-checkbox-input"
|
174
|
-
}
|
175
|
-
))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-form-group" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-price-option" }, /* @__PURE__ */ import_react.default.createElement(
|
176
|
-
"button",
|
177
|
-
{
|
178
|
-
type: "button",
|
179
|
-
className: `customise-item-radio ${priceType === "sell" ? "active purple" : ""}`,
|
180
|
-
onClick: () => setPriceType("sell")
|
181
|
-
},
|
182
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "radio-dot" })
|
183
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-price-content" }, /* @__PURE__ */ import_react.default.createElement(
|
184
|
-
"span",
|
185
|
-
{
|
186
|
-
className: `customise-item-price-title ${priceType === "sell" ? "purple" : ""}`
|
187
|
-
},
|
188
|
-
currencySymbol,
|
189
|
-
" ",
|
190
|
-
import_utils.locales.getText("pisell2.customise-item.sell-price")
|
191
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
192
|
-
"button",
|
193
|
-
{
|
194
|
-
ref: sellPriceButtonRef,
|
195
|
-
type: "button",
|
196
|
-
className: `customise-item-price-input ${priceType === "sell" ? "active purple" : ""}`,
|
197
|
-
onClick: () => showKeyboard(sellPriceButtonRef, "sell"),
|
198
|
-
disabled
|
199
|
-
},
|
200
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: "price-currency" }, currencySymbol),
|
201
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `price-input-display ${!sellPrice ? "placeholder" : ""}` }, sellPrice || import_utils.locales.getText(
|
202
|
-
"pisell2.customise-item.amount-placeholder"
|
203
|
-
))
|
204
|
-
))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-price-option" }, /* @__PURE__ */ import_react.default.createElement(
|
205
|
-
"button",
|
206
|
-
{
|
207
|
-
type: "button",
|
208
|
-
className: `customise-item-radio ${priceType === "deduction" ? "active red" : ""}`,
|
209
|
-
onClick: () => setPriceType("deduction")
|
210
|
-
},
|
211
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "radio-dot" })
|
212
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-price-content" }, /* @__PURE__ */ import_react.default.createElement(
|
213
|
-
"span",
|
214
|
-
{
|
215
|
-
className: `customise-item-price-title ${priceType === "deduction" ? "red" : ""}`
|
216
|
-
},
|
217
|
-
currencySymbol,
|
218
|
-
" ",
|
219
|
-
import_utils.locales.getText(
|
220
|
-
"pisell2.customise-item.manual-deduction-price"
|
221
|
-
)
|
222
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
223
|
-
"button",
|
224
|
-
{
|
225
|
-
ref: deductionPriceButtonRef,
|
226
|
-
type: "button",
|
227
|
-
className: `customise-item-price-input ${priceType === "deduction" ? "active red" : ""}`,
|
228
|
-
onClick: () => showKeyboard(deductionPriceButtonRef, "deduction"),
|
229
|
-
disabled
|
230
|
-
},
|
231
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: "price-currency" }, currencySymbol),
|
232
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: "price-minus" }, "-"),
|
233
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `price-input-display ${!deductionPrice ? "placeholder" : ""}` }, deductionPrice || import_utils.locales.getText(
|
234
|
-
"pisell2.customise-item.amount-placeholder"
|
235
|
-
))
|
236
|
-
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-modal-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
237
|
-
import_antd.Button,
|
238
|
-
{
|
239
|
-
type: "primary",
|
240
|
-
size: "large",
|
241
|
-
onClick: handleSave,
|
242
|
-
disabled,
|
243
|
-
className: "customise-item-save-btn"
|
244
|
-
},
|
245
|
-
import_utils.locales.getText("pisell2.customise-item.save")
|
246
|
-
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-quantity-selector-fixed" }, /* @__PURE__ */ import_react.default.createElement(
|
247
|
-
import_pisellNumberSelector.default,
|
248
|
-
{
|
249
|
-
value: quantity,
|
250
|
-
min: 1,
|
251
|
-
max: 999,
|
252
|
-
step: 1,
|
253
|
-
disabled,
|
254
|
-
onChange: (value) => {
|
255
|
-
if (value < 1) {
|
256
|
-
setQuantity(1);
|
257
|
-
} else {
|
258
|
-
setQuantity(value);
|
259
|
-
}
|
260
|
-
},
|
261
|
-
size: "middle",
|
262
|
-
enablePriceAdjust: true
|
263
|
-
}
|
264
|
-
))),
|
265
|
-
/* @__PURE__ */ import_react.default.createElement(
|
266
|
-
import_pisellPriceKeyboardModal.default,
|
267
|
-
{
|
268
|
-
visible: showPriceKeyboard,
|
269
|
-
value: priceType === "sell" ? sellPrice : deductionPrice,
|
270
|
-
onChange: (val) => {
|
271
|
-
if (priceType === "sell") {
|
272
|
-
setSellPrice(String(val));
|
273
|
-
} else {
|
274
|
-
setDeductionPrice(String(val));
|
275
|
-
}
|
276
|
-
},
|
277
|
-
onClose: () => setShowPriceKeyboard(false),
|
278
|
-
triggerRef: currentTriggerRef,
|
279
|
-
showCurrencySymbol: true,
|
280
|
-
useThousandsSeparator: false
|
281
|
-
}
|
282
|
-
)
|
283
|
-
);
|
284
|
-
};
|
285
|
-
var customiseItemModal_default = CustomiseItemModal;
|