@pisell/private-materials 3.4.59 → 3.4.61
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/index.js +531 -0
- package/es/components/kioskSkuDetail/index.less +196 -0
- package/es/components/kioskSkuDetail/locales.d.ts +27 -0
- package/es/components/kioskSkuDetail/locales.js +26 -0
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/store/actions.js +17 -2
- package/es/plus/skuOptionsSelection/types.d.ts +5 -0
- package/es/plus/skuOptionsSelection/types.js +2 -1
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.d.ts +29 -0
- package/es/pro/pisellNumberSelector/index.js +257 -0
- package/es/pro/pisellNumberSelector/index.less +235 -0
- package/es/pro/skuDetailModal/index.d.ts +4 -0
- package/es/pro/skuDetailModal/index.js +1031 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/index.js +393 -0
- package/lib/components/kioskSkuDetail/index.less +196 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
- package/lib/components/kioskSkuDetail/locales.js +50 -0
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
- package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/types.js +2 -1
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
- package/lib/pro/pisellNumberSelector/index.js +275 -0
- package/lib/pro/pisellNumberSelector/index.less +235 -0
- package/lib/pro/skuDetailModal/index.d.ts +4 -0
- package/lib/pro/skuDetailModal/index.js +736 -0
- package/lowcode/kiosk-sku-detail/meta.ts +264 -0
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -59,5 +59,7 @@ export { default as WalletEditor } from './plus/walletEditor';
|
|
|
59
59
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
60
60
|
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
61
61
|
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
62
|
+
export { default as KioskSkuDetail } from './components/kioskSkuDetail';
|
|
63
|
+
export { default as ProNumberSelector } from './pro/pisellNumberSelector';
|
|
62
64
|
export { default as Selector } from './pro/Selector';
|
|
63
65
|
export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
|
package/lib/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(src_exports, {
|
|
|
64
64
|
EventScheduleCalendar: () => import_scheduleCalendar.default,
|
|
65
65
|
EventSelectHolder: () => import_selectHolder.default,
|
|
66
66
|
EventTimeResourceSelector: () => import_timeResourceSelector.default,
|
|
67
|
+
KioskSkuDetail: () => import_kioskSkuDetail.default,
|
|
67
68
|
Login: () => import_login.default,
|
|
68
69
|
Login2: () => import_Login2.Login2,
|
|
69
70
|
OAuthConfig: () => import_admin.OAuthConfig,
|
|
@@ -73,6 +74,7 @@ __export(src_exports, {
|
|
|
73
74
|
PinModal: () => import_pinModal.default,
|
|
74
75
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
75
76
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
77
|
+
ProNumberSelector: () => import_pisellNumberSelector.default,
|
|
76
78
|
ProductExtension: () => import_productExtension.default,
|
|
77
79
|
Register2: () => import_Login2.Register2,
|
|
78
80
|
RuleSetting: () => import_ruleSetting.default,
|
|
@@ -164,6 +166,8 @@ var import_walletEditor = __toESM(require("./plus/walletEditor"));
|
|
|
164
166
|
var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
|
|
165
167
|
var import_passDetail = __toESM(require("./plus/walletPassGallery/components/passDetail"));
|
|
166
168
|
var import_registry = __toESM(require("./components/systemSettings/registry"));
|
|
169
|
+
var import_kioskSkuDetail = __toESM(require("./components/kioskSkuDetail"));
|
|
170
|
+
var import_pisellNumberSelector = __toESM(require("./pro/pisellNumberSelector"));
|
|
167
171
|
var import_Selector = __toESM(require("./pro/Selector"));
|
|
168
172
|
var import_skuOptionsSelection = __toESM(require("./plus/skuOptionsSelection"));
|
|
169
173
|
import_dayjs.default.extend(import_weekday.default);
|
|
@@ -205,6 +209,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
205
209
|
EventScheduleCalendar,
|
|
206
210
|
EventSelectHolder,
|
|
207
211
|
EventTimeResourceSelector,
|
|
212
|
+
KioskSkuDetail,
|
|
208
213
|
Login,
|
|
209
214
|
Login2,
|
|
210
215
|
OAuthConfig,
|
|
@@ -214,6 +219,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
214
219
|
PinModal,
|
|
215
220
|
PinVerifyModal,
|
|
216
221
|
PisellSelectCustomerModal,
|
|
222
|
+
ProNumberSelector,
|
|
217
223
|
ProductExtension,
|
|
218
224
|
Register2,
|
|
219
225
|
RuleSetting,
|
|
@@ -35,10 +35,19 @@ module.exports = __toCommonJS(VariantCard_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_utils = require("@pisell/utils");
|
|
37
37
|
var import_Selector = __toESM(require("../../../../pro/Selector"));
|
|
38
|
+
var import_useStore = __toESM(require("../../hooks/useStore"));
|
|
38
39
|
var import_index = require("./index.less");
|
|
39
40
|
var VariantCard = (props) => {
|
|
40
41
|
var _a, _b, _c;
|
|
41
42
|
const { dataSource, actions } = props || {};
|
|
43
|
+
const symbol = (0, import_useStore.default)((s) => s.symbol);
|
|
44
|
+
const skuCardConfig = (0, import_useStore.default)((s) => s.skuCardConfig);
|
|
45
|
+
const isVariantPriceVisible = (skuCardConfig == null ? void 0 : skuCardConfig.variantPriceVisible) === true;
|
|
46
|
+
const priceConfig = skuCardConfig == null ? void 0 : skuCardConfig.price;
|
|
47
|
+
const priceText = formatPriceText({
|
|
48
|
+
symbol,
|
|
49
|
+
price: dataSource == null ? void 0 : dataSource.price
|
|
50
|
+
});
|
|
42
51
|
const handleClick = (e) => {
|
|
43
52
|
e.stopPropagation();
|
|
44
53
|
if (dataSource == null ? void 0 : dataSource.disabled) return;
|
|
@@ -57,10 +66,30 @@ var VariantCard = (props) => {
|
|
|
57
66
|
className: "pisell-sku-options-selection-variant-card",
|
|
58
67
|
onClick: handleClick
|
|
59
68
|
},
|
|
60
|
-
((_a = props.dataSource) == null ? void 0 : _a.title) || "",
|
|
61
|
-
((_c = (_b = props.dataSource) == null ? void 0 : _b._extra) == null ? void 0 : _c.hasStock) === false ? ` (${import_utils.locales.getText(
|
|
69
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-sku-options-selection-variant-card__title" }, ((_a = props.dataSource) == null ? void 0 : _a.title) || "", ((_c = (_b = props.dataSource) == null ? void 0 : _b._extra) == null ? void 0 : _c.hasStock) === false ? ` (${import_utils.locales.getText(
|
|
62
70
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut"
|
|
63
|
-
)})` : null
|
|
71
|
+
)})` : null),
|
|
72
|
+
isVariantPriceVisible && (priceConfig == null ? void 0 : priceConfig.visible) !== false && !!priceText ? /* @__PURE__ */ import_react.default.createElement(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
className: "pisell-sku-options-selection-variant-card__price",
|
|
76
|
+
style: {
|
|
77
|
+
fontSize: priceConfig == null ? void 0 : priceConfig.fontSize,
|
|
78
|
+
fontWeight: priceConfig == null ? void 0 : priceConfig.fontWeight,
|
|
79
|
+
color: priceConfig == null ? void 0 : priceConfig.color
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
import_utils.locales.getText("pisell2.skuOptionsSelection.variantItemCard.price"),
|
|
83
|
+
":",
|
|
84
|
+
priceText
|
|
85
|
+
) : null
|
|
64
86
|
));
|
|
65
87
|
};
|
|
88
|
+
function formatPriceText(params) {
|
|
89
|
+
const symbol = params.symbol || "$";
|
|
90
|
+
const price = Number(params.price);
|
|
91
|
+
if (!params.price && params.price !== 0) return "";
|
|
92
|
+
if (Number.isNaN(price)) return "";
|
|
93
|
+
return `${symbol}${price.toFixed(2)}`;
|
|
94
|
+
}
|
|
66
95
|
var VariantCard_default = VariantCard;
|
|
@@ -3,7 +3,17 @@
|
|
|
3
3
|
height: 100%;
|
|
4
4
|
padding: 12px 16px;
|
|
5
5
|
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 4px;
|
|
6
8
|
align-items: center;
|
|
7
9
|
justify-content: center;
|
|
8
10
|
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell-sku-options-selection-variant-card__title {
|
|
14
|
+
line-height: 1.2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-sku-options-selection-variant-card__price {
|
|
18
|
+
line-height: 1.2;
|
|
9
19
|
}
|
|
@@ -5,6 +5,7 @@ declare const _default: {
|
|
|
5
5
|
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
6
6
|
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
7
7
|
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
8
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
8
9
|
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
9
10
|
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
10
11
|
};
|
|
@@ -14,6 +15,7 @@ declare const _default: {
|
|
|
14
15
|
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
15
16
|
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
16
17
|
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
18
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
17
19
|
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
18
20
|
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
19
21
|
};
|
|
@@ -23,6 +25,7 @@ declare const _default: {
|
|
|
23
25
|
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
24
26
|
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
25
27
|
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
28
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
26
29
|
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
27
30
|
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
28
31
|
};
|
|
@@ -29,6 +29,7 @@ var locales_default = {
|
|
|
29
29
|
"pisell2.skuOptionsSelection.titleExtra.totalPrice": "Subtotal: {{price}}",
|
|
30
30
|
"pisell2.skuOptionsSelection.optionItemCard.editSelections": "Edit selections",
|
|
31
31
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "Out of stock",
|
|
32
|
+
"pisell2.skuOptionsSelection.variantItemCard.price": "Price",
|
|
32
33
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "Type",
|
|
33
34
|
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "Over selected"
|
|
34
35
|
},
|
|
@@ -38,6 +39,7 @@ var locales_default = {
|
|
|
38
39
|
"pisell2.skuOptionsSelection.titleExtra.totalPrice": "小计:{{price}}",
|
|
39
40
|
"pisell2.skuOptionsSelection.optionItemCard.editSelections": "编辑选择",
|
|
40
41
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "库存不足",
|
|
42
|
+
"pisell2.skuOptionsSelection.variantItemCard.price": "价格",
|
|
41
43
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "类型",
|
|
42
44
|
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已达上限"
|
|
43
45
|
},
|
|
@@ -47,6 +49,7 @@ var locales_default = {
|
|
|
47
49
|
"pisell2.skuOptionsSelection.titleExtra.totalPrice": "小計:{{price}}",
|
|
48
50
|
"pisell2.skuOptionsSelection.optionItemCard.editSelections": "編輯選擇",
|
|
49
51
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "庫存不足",
|
|
52
|
+
"pisell2.skuOptionsSelection.variantItemCard.price": "價格",
|
|
50
53
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "類型",
|
|
51
54
|
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已達上限"
|
|
52
55
|
}
|
|
@@ -60,7 +60,31 @@ var actions = {
|
|
|
60
60
|
},
|
|
61
61
|
/** 更新 SKU Card 配置 */
|
|
62
62
|
updateSkuCardConfig: (skuCardConfig) => {
|
|
63
|
-
import_store.default.setState(
|
|
63
|
+
import_store.default.setState((prev) => {
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
|
+
return {
|
|
66
|
+
skuCardConfig: {
|
|
67
|
+
...prev.skuCardConfig || {},
|
|
68
|
+
...skuCardConfig || {},
|
|
69
|
+
title: {
|
|
70
|
+
...((_a = prev.skuCardConfig) == null ? void 0 : _a.title) || {},
|
|
71
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.title) || {}
|
|
72
|
+
},
|
|
73
|
+
subTitle: {
|
|
74
|
+
...((_b = prev.skuCardConfig) == null ? void 0 : _b.subTitle) || {},
|
|
75
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.subTitle) || {}
|
|
76
|
+
},
|
|
77
|
+
price: {
|
|
78
|
+
...((_c = prev.skuCardConfig) == null ? void 0 : _c.price) || {},
|
|
79
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.price) || {}
|
|
80
|
+
},
|
|
81
|
+
image: {
|
|
82
|
+
...((_d = prev.skuCardConfig) == null ? void 0 : _d.image) || {},
|
|
83
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.image) || {}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
});
|
|
64
88
|
},
|
|
65
89
|
/** 更新自定义配置 */
|
|
66
90
|
updateCustomConfig: (customConfig) => {
|
|
@@ -41,6 +41,11 @@ export interface SkuCardConfig {
|
|
|
41
41
|
price?: Omit<SkuCardTextConfig, 'lineClamp'>;
|
|
42
42
|
/** 图片配置 */
|
|
43
43
|
image?: SkuCardImageConfig;
|
|
44
|
+
/**
|
|
45
|
+
* @description 是否在「组合规格选项卡片(VariantCard)」展示价格
|
|
46
|
+
* - 默认不展示,避免影响现有业务 UI
|
|
47
|
+
*/
|
|
48
|
+
variantPriceVisible?: boolean;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
51
|
* SKU store状态类型
|
|
@@ -33,22 +33,31 @@ __export(transformVariantGroup_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(transformVariantGroup_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_store = __toESM(require("../store/store"));
|
|
36
37
|
var import_VariantCard = __toESM(require("../components/VariantCard"));
|
|
37
38
|
var import_checkSkuStatus = require("./checkSkuStatus");
|
|
38
39
|
var transformVariantGroup = (variantGroup) => {
|
|
40
|
+
var _a;
|
|
39
41
|
if (!Array.isArray(variantGroup)) return [];
|
|
42
|
+
const variantProducts = ((_a = import_store.default.getState().dataSource) == null ? void 0 : _a.variant) || [];
|
|
40
43
|
const formattedGroup = variantGroup.map((item) => {
|
|
41
|
-
var
|
|
42
|
-
const selectorOptionsDataSource = (
|
|
44
|
+
var _a2;
|
|
45
|
+
const selectorOptionsDataSource = (_a2 = item == null ? void 0 : item.variant_item) == null ? void 0 : _a2.map(
|
|
43
46
|
(variantItem) => {
|
|
44
47
|
const { canSell, hasStock } = (0, import_checkSkuStatus.checkVariantStockCanSell)(variantItem);
|
|
45
48
|
const disabled = (0, import_checkSkuStatus.checkSkuDisabled)(variantItem, canSell);
|
|
49
|
+
const price = getVariantItemFixedPrice({
|
|
50
|
+
selectedVariantIds: [`${variantItem == null ? void 0 : variantItem.variant_group_id}:${variantItem == null ? void 0 : variantItem.id}`],
|
|
51
|
+
variantProducts
|
|
52
|
+
});
|
|
46
53
|
return {
|
|
47
54
|
_original: { ...variantItem || {} },
|
|
48
55
|
id: variantItem == null ? void 0 : variantItem.id,
|
|
49
56
|
title: variantItem == null ? void 0 : variantItem.name,
|
|
50
57
|
value: variantItem == null ? void 0 : variantItem.id,
|
|
51
58
|
disabled,
|
|
59
|
+
// 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
|
|
60
|
+
price,
|
|
52
61
|
ruleConfig: {
|
|
53
62
|
autoValidate: true
|
|
54
63
|
},
|
|
@@ -87,13 +96,19 @@ var transformVariantGroup = (variantGroup) => {
|
|
|
87
96
|
}
|
|
88
97
|
};
|
|
89
98
|
selectorDataSource.renderItem = (itemProps) => {
|
|
90
|
-
var
|
|
99
|
+
var _a3, _b, _c;
|
|
91
100
|
const { canSell, hasStock } = (0, import_checkSkuStatus.checkVariantStockByValue)(
|
|
92
|
-
(
|
|
101
|
+
(_a3 = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _a3._original
|
|
93
102
|
);
|
|
103
|
+
const price = getVariantItemFixedPriceByValue({
|
|
104
|
+
variantItem: (_b = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _b._original,
|
|
105
|
+
variantProducts
|
|
106
|
+
});
|
|
94
107
|
const _dataSource = {
|
|
95
108
|
...(itemProps == null ? void 0 : itemProps.dataSource) || {},
|
|
96
|
-
disabled: (0, import_checkSkuStatus.checkSkuDisabled)((
|
|
109
|
+
disabled: (0, import_checkSkuStatus.checkSkuDisabled)((_c = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _c._original, canSell),
|
|
110
|
+
// 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
|
|
111
|
+
price,
|
|
97
112
|
_extra: {
|
|
98
113
|
canSell,
|
|
99
114
|
hasStock
|
|
@@ -112,6 +127,37 @@ var transformVariantGroup = (variantGroup) => {
|
|
|
112
127
|
});
|
|
113
128
|
return formattedGroup;
|
|
114
129
|
};
|
|
130
|
+
function getVariantItemFixedPrice(params) {
|
|
131
|
+
const selectedVariantIds = params.selectedVariantIds;
|
|
132
|
+
const variantProducts = params.variantProducts;
|
|
133
|
+
const matchedVariants = Array.isArray(variantProducts) ? variantProducts.filter((item) => {
|
|
134
|
+
var _a;
|
|
135
|
+
const ids = ((_a = item == null ? void 0 : item.sku_ids) == null ? void 0 : _a.split("_")) || [];
|
|
136
|
+
return selectedVariantIds.every((selectedId) => ids.includes(selectedId));
|
|
137
|
+
}) : [];
|
|
138
|
+
const prices = matchedVariants.map((item) => Number((item == null ? void 0 : item.price) ?? (item == null ? void 0 : item.base_price) ?? 0)).filter((n) => !Number.isNaN(n));
|
|
139
|
+
if (prices.length === 0) return null;
|
|
140
|
+
const uniquePrices = Array.from(new Set(prices));
|
|
141
|
+
if (uniquePrices.length !== 1) return null;
|
|
142
|
+
return uniquePrices[0];
|
|
143
|
+
}
|
|
144
|
+
function getVariantItemFixedPriceByValue(params) {
|
|
145
|
+
var _a;
|
|
146
|
+
const variantItem = params.variantItem;
|
|
147
|
+
const variantProducts = params.variantProducts;
|
|
148
|
+
const dataSource = import_store.default.getState().dataSource;
|
|
149
|
+
const selectorValue = import_store.default.getState().selectorValue;
|
|
150
|
+
const currentSkuId = `${variantItem == null ? void 0 : variantItem.variant_group_id}:${variantItem == null ? void 0 : variantItem.id}`;
|
|
151
|
+
const selectedVariantIds = [currentSkuId];
|
|
152
|
+
(_a = dataSource == null ? void 0 : dataSource.variant_group) == null ? void 0 : _a.forEach((group) => {
|
|
153
|
+
var _a2;
|
|
154
|
+
const selectedData = (_a2 = selectorValue == null ? void 0 : selectorValue[group.id]) == null ? void 0 : _a2.data;
|
|
155
|
+
if (selectedData && group.id !== (variantItem == null ? void 0 : variantItem.variant_group_id)) {
|
|
156
|
+
selectedVariantIds.push(`${selectedData == null ? void 0 : selectedData.variant_group_id}:${selectedData == null ? void 0 : selectedData.id}`);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
return getVariantItemFixedPrice({ selectedVariantIds, variantProducts });
|
|
160
|
+
}
|
|
115
161
|
// Annotate the CommonJS export names for ESM import in node:
|
|
116
162
|
0 && (module.exports = {
|
|
117
163
|
transformVariantGroup
|