@pisell/private-materials 6.8.11 → 6.8.12
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/df14b0a48455e9836fb9b14034da0243.png +0 -0
- 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.css +1 -1
- package/build/lowcode/preview.js +164 -159
- package/build/lowcode/render/default/assets/df14b0a48455e9836fb9b14034da0243.png +0 -0
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +19 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +19 -12
- package/es/businessModel/SalesModel/index.d.ts +2 -2
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/Sales/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +2 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -2
- package/es/components/appointmentBooking/context.d.ts +2 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -2
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
- package/es/components/appointmentBooking/index.d.ts +1 -2
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +2 -2
- package/es/components/booking/components/authWrap/index.d.ts +1 -1
- package/es/components/booking/components/browserSelect/index.d.ts +1 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +2 -2
- package/es/components/booking/components/drawer/index.d.ts +1 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +2 -2
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +2 -2
- package/es/components/booking/components/footer/index.d.ts +1 -2
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +2 -2
- package/es/components/booking/components/menuButton/index.d.ts +1 -1
- package/es/components/booking/components/voucher/index.d.ts +1 -2
- package/es/components/booking/deposit/ClientItem/index.d.ts +1 -1
- package/es/components/booking/deposit/DepositItem/index.d.ts +1 -1
- package/es/components/booking/deposit/index.d.ts +2 -2
- package/es/components/booking/forms/footer.d.ts +1 -2
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +2 -2
- package/es/components/booking/forms/table/index.d.ts +2 -2
- package/es/components/booking/hooks/useClearCart.d.ts +1 -2
- package/es/components/booking/hooks/useQuotation.d.ts +1 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -2
- package/es/components/booking/info/client/index.d.ts +1 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -2
- package/es/components/booking/info/dateRange/index.d.ts +1 -2
- package/es/components/booking/info/header/index.d.ts +2 -2
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +3 -2
- package/es/components/booking/info/hooks/useInfoHolder.js +2 -0
- package/es/components/booking/info/index.d.ts +2 -2
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +2 -2
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/service/Lists.d.ts +2 -2
- package/es/components/booking/info/service/actions/index.d.ts +1 -2
- package/es/components/booking/info/service/addService/index.d.ts +1 -2
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -2
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -2
- package/es/components/booking/info/service/editService/index.js +3 -4
- package/es/components/booking/info/service/index.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +2 -2
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -2
- package/es/components/booking/info/service/serviceList/index.d.ts +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +2 -2
- package/es/components/booking/info/service2/index.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -2
- package/es/components/booking/info2/service/addService/index.d.ts +1 -2
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -2
- package/es/components/booking/info2/service/editNormalService/index.js +80 -9
- package/es/components/booking/info2/service/editService/index.js +85 -72
- package/es/components/booking/info2/service/index.d.ts +1 -1
- package/es/components/booking/info2/service/index.js +12 -0
- package/es/components/booking/info2/service/openNormalService.js +15 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -2
- package/es/components/booking/info2/service/serviceList/index.d.ts +2 -2
- package/es/components/booking/materiels/contacts/index.d.ts +1 -2
- package/es/components/booking/materiels/duration/index.d.ts +1 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -2
- package/es/components/booking/materiels/startTime/index.d.ts +1 -2
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +2 -2
- package/es/components/booking/notes/NoteBlock/index.d.ts +2 -2
- package/es/components/booking/notes/addNote/index.d.ts +2 -2
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/checkout/components/AdditionalModule/index.d.ts +2 -2
- package/es/components/checkout/components/AmountSummary/index.d.ts +2 -2
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +2 -2
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -2
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -2
- package/es/components/checkout/components/SendPaymentLinkModal/index.d.ts +2 -2
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +2 -3
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -2
- package/es/components/checkout/hooks/useWalletPass.d.ts +16 -16
- package/es/components/eftpos/device.d.ts +1 -1
- package/es/components/eftpos/deviceList/index.d.ts +2 -2
- package/es/components/eftpos/form/index.d.ts +2 -2
- package/es/components/eftpos/group/index.d.ts +3 -3
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +2 -2
- package/es/components/eftpos/icon/device.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +2 -2
- package/es/components/eftpos/log.d.ts +2 -2
- package/es/components/eftpos/pos.d.ts +2 -2
- package/es/components/eftpos/receipt/index.d.ts +2 -2
- package/es/components/eftpos/surcharge/index.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/app.d.ts +1 -2
- package/es/components/eftposPay/component/alert/index.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +2 -2
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -2
- package/es/components/eftposPay/component/fail/index.d.ts +1 -2
- package/es/components/eftposPay/component/fail/network.d.ts +1 -2
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -2
- package/es/components/eftposPay/component/header/index.d.ts +1 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +2 -2
- package/es/components/eftposPay/component/manual/index.d.ts +1 -2
- package/es/components/eftposPay/component/signature/index.d.ts +1 -2
- package/es/components/eftposPay/component/step/index.d.ts +1 -2
- package/es/components/eftposPay/component/step/step.d.ts +2 -2
- package/es/components/eftposPay/device.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -2
- package/es/components/eftposPay/linkly/index.d.ts +1 -2
- package/es/components/eftposPay/pay.d.ts +1 -2
- package/es/components/eftposPay/payo/config.d.ts +2 -3
- package/es/components/eftposPay/payo/index.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tip.d.ts +1 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.d.ts +1 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +2 -3
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -2
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +2 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +2 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +2 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +2 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -2
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +2 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -2
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -2
- package/es/components/eventBooking/index.d.ts +1 -2
- package/es/components/kioskSkuDetail/assets/kiosk-launchpad-bg-773705.png +0 -0
- package/es/components/kioskSkuDetail/assets/kiosk-launchpad-hero-c14ba2.png +0 -0
- package/es/components/kioskSkuDetail/index.d.ts +33 -0
- package/es/components/kioskSkuDetail/index.js +282 -0
- package/es/components/kioskSkuDetail/index.less +152 -0
- package/es/components/login/index.d.ts +2 -2
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -2
- package/es/components/pay/toB/components/Card/index.d.ts +1 -2
- package/es/components/pay/toB/components/CardGroup/index.d.ts +2 -2
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -2
- package/es/components/pay/toB/components/Content/Footer.d.ts +1 -2
- package/es/components/pay/toB/store/provider.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +2 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +2 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +2 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +1 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -2
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/es/components/productExtension/fields/Actor/index.d.ts +2 -2
- package/es/components/productExtension/fields/Forms/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +2 -2
- package/es/components/productExtension/index.d.ts +2 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -2
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +3 -3
- package/es/components/productSelect/index.d.ts +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -2
- package/es/components/ruleSetting/ruleBorder/index.d.ts +2 -2
- package/es/components/schedules/calendar/calendarItem.d.ts +2 -2
- package/es/components/schedules/calendar/index.d.ts +2 -2
- package/es/components/schedules/components/Card/index.d.ts +1 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +2 -2
- package/es/components/schedules/components/ResourceList/index.d.ts +1 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +2 -2
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +2 -2
- package/es/components/schedules/components/ScheduleList/index.d.ts +2 -2
- package/es/components/schedules/components/Search/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +2 -2
- package/es/components/schedules/products/index.d.ts +2 -2
- package/es/components/schedules/products/list/ProductItem/index.d.ts +2 -2
- package/es/components/schedules/products/list/index.d.ts +2 -2
- package/es/components/schedules/resources/index.d.ts +2 -2
- package/es/components/schedules/resources/list/index.d.ts +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +2 -2
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +2 -2
- package/es/components/schedules/schedules/Schedules.d.ts +1 -1
- package/es/components/schedules/schedules/SchedulesForDay/index.d.ts +1 -1
- package/es/components/schedules/schedules/index.d.ts +2 -2
- package/es/components/shoppingCart/Provider.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -2
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +2 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +2 -2
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -2
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -2
- package/es/components/shoppingCart/index.d.ts +2 -2
- package/es/components/subTotal/index.d.ts +1 -1
- package/es/components/tabProduct/index.d.ts +1 -1
- package/es/components/taxSelect/index.d.ts +2 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +45 -22
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -2
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +1 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -2
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -2
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -2
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +9 -9
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +2 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +3 -3
- package/es/components/ticketBooking/index.d.ts +1 -2
- package/es/components/ticketBooking/miniRedux.d.ts +1 -1
- package/es/components/walletList/index.d.ts +1 -2
- package/es/components/walletList/model.d.ts +1 -1
- package/es/components/walletList/tempHolderSelector/index.d.ts +2 -2
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -2
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -2
- package/es/hooks/usePaymentLogger.d.ts +3 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -2
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
- package/es/plus/noteModal/AddTempModal.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -6
- package/es/plus/productSelect/ProductCard/index.d.ts +2 -2
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -6
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.js +2 -7
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +6 -0
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/es/plus/productSelect/index.d.ts +1 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +2 -2
- package/es/plus/saasCreateOrganization/index.d.ts +2 -2
- package/es/plus/saasRegister/components/EntryEmail.d.ts +2 -2
- package/es/plus/saasRegister/components/EntryInfo.d.ts +2 -2
- package/es/plus/saasRegister/components/GoLogin.d.ts +2 -2
- package/es/plus/saasRegister/components/Header.d.ts +2 -2
- package/es/plus/saasRegister/components/VerifyError.d.ts +2 -2
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +2 -2
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -2
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +131 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +108 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +10 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +247 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +113 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +166 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.js +46 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.less +23 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +29 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.less +9 -0
- package/es/plus/skuOptionsSelection/hooks/index.js +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.js +7 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.js +3 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.js +8 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/index.js +125 -0
- package/es/plus/skuOptionsSelection/index.less +4 -0
- package/es/plus/skuOptionsSelection/locales.js +29 -0
- package/es/plus/skuOptionsSelection/store/actions.js +56 -0
- package/es/plus/skuOptionsSelection/store/createStore.js +117 -0
- package/es/plus/skuOptionsSelection/store/index.js +2 -0
- package/es/plus/skuOptionsSelection/store/store.js +18 -0
- package/es/plus/skuOptionsSelection/types.js +69 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.js +80 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.js +147 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/index.js +7 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +90 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +85 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +157 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +226 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +90 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +1 -1
- package/es/plus/walletPassGallery/index.d.ts +1 -2
- package/es/plus/webPosLogin/WebPosLogin.d.ts +1 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +60 -0
- package/es/pro/Cards/components/SKUCard/index.js +193 -0
- package/es/pro/Cards/components/SKUCard/index.less +102 -0
- package/es/pro/Cards/index.d.ts +1 -0
- package/es/pro/Cards/index.js +1 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +2 -9
- package/es/pro/Login2.0/components/LoginCodeInput.d.ts +2 -6
- package/es/pro/Login2.0/components/PhoneInput.d.ts +1 -1
- package/es/pro/Login2.0/steps/CodeInput.d.ts +2 -6
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +2 -5
- package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +2 -5
- package/es/pro/Login2.0/steps/SetPassword.d.ts +2 -5
- package/es/pro/{Selector/components/NumericStepper → NumericStepper}/index.js +46 -19
- package/{lib/pro/Selector/components → es/pro}/NumericStepper/index.less +7 -8
- package/es/pro/Selector/BatchSelectorDemo.js +452 -38
- package/es/pro/Selector/Item.js +88 -0
- package/es/pro/Selector/Selector.js +188 -140
- package/es/pro/Selector/Selector.stories.js +1105 -0
- package/es/pro/Selector/SelectorGroup.js +189 -155
- package/es/pro/Selector/components/Card/index.js +92 -75
- package/es/pro/Selector/components/Card/index.less +113 -83
- package/es/pro/Selector/components/Card/types.js +1 -0
- package/es/pro/Selector/components/Indicator/index.js +101 -0
- package/es/pro/Selector/components/Indicator/index.less +114 -0
- package/es/pro/Selector/components/LayoutContainer/index.js +60 -0
- package/es/pro/Selector/components/Media/index.js +222 -0
- package/es/pro/Selector/components/Media/index.less +124 -0
- package/es/pro/Selector/components/Media/types.js +1 -0
- package/es/pro/Selector/components/index.js +3 -1
- package/es/pro/Selector/demo.js +1031 -101
- package/es/pro/Selector/hooks/usePresetItemProps.js +185 -0
- package/es/pro/Selector/hooks/usePresetProps.js +132 -0
- package/es/pro/Selector/hooks/useSelectionController.js +124 -98
- package/es/pro/Selector/index.js +3 -0
- package/es/pro/Selector/locales.js +69 -48
- package/es/pro/Selector/selector.less +108 -2
- package/es/pro/Selector/selectorGroup.less +8 -0
- package/es/pro/numberKeyboard/index.d.ts +1 -1
- package/es/pro/pisellNumberSelector/index.less +18 -2
- package/es/pro/pisellPaymentList/example.d.ts +10 -11
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +2 -2
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +2 -2
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -2
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -2
- package/es/pro/skuDetailModal/index.js +827 -179
- package/es/pro/skuDetailModal/index.less +136 -28
- package/es/pro/skuDetailModal/locales.js +62 -3
- package/es/pro/skuDetailModal/utils.js +21 -0
- package/es/test/setup.d.ts +1 -0
- package/es/test/setup.js +177 -0
- package/lib/businessModel/SalesModel/index.d.ts +2 -2
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/Sales/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +2 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -2
- package/lib/components/appointmentBooking/context.d.ts +2 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -2
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -2
- package/lib/components/appointmentBooking/index.d.ts +1 -2
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +2 -2
- package/lib/components/booking/components/authWrap/index.d.ts +1 -1
- package/lib/components/booking/components/browserSelect/index.d.ts +1 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -2
- package/lib/components/booking/components/drawer/index.d.ts +1 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +2 -2
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +2 -2
- package/lib/components/booking/components/footer/index.d.ts +1 -2
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +2 -2
- package/lib/components/booking/components/menuButton/index.d.ts +1 -1
- package/lib/components/booking/components/voucher/index.d.ts +1 -2
- package/lib/components/booking/deposit/ClientItem/index.d.ts +1 -1
- package/lib/components/booking/deposit/DepositItem/index.d.ts +1 -1
- package/lib/components/booking/deposit/index.d.ts +2 -2
- package/lib/components/booking/forms/footer.d.ts +1 -2
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +2 -2
- package/lib/components/booking/forms/table/index.d.ts +2 -2
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -2
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -2
- package/lib/components/booking/info/client/index.d.ts +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -2
- package/lib/components/booking/info/dateRange/index.d.ts +1 -2
- package/lib/components/booking/info/header/index.d.ts +2 -2
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +3 -2
- package/lib/components/booking/info/hooks/useInfoHolder.js +1 -0
- package/lib/components/booking/info/index.d.ts +2 -2
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +2 -2
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.d.ts +2 -2
- package/lib/components/booking/info/service/actions/index.d.ts +1 -2
- package/lib/components/booking/info/service/addService/index.d.ts +1 -2
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -2
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -2
- package/lib/components/booking/info/service/editService/index.js +0 -2
- package/lib/components/booking/info/service/index.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +2 -2
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -2
- package/lib/components/booking/info/service/serviceList/index.d.ts +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +2 -2
- package/lib/components/booking/info/service2/index.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -2
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -2
- package/lib/components/booking/info2/service/editNormalService/index.js +59 -4
- package/lib/components/booking/info2/service/editService/index.js +82 -68
- package/lib/components/booking/info2/service/index.d.ts +1 -1
- package/lib/components/booking/info2/service/index.js +10 -0
- package/lib/components/booking/info2/service/openNormalService.js +37 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -2
- package/lib/components/booking/info2/service/serviceList/index.d.ts +2 -2
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -2
- package/lib/components/booking/materiels/duration/index.d.ts +1 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -2
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -2
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +2 -2
- package/lib/components/booking/notes/NoteBlock/index.d.ts +2 -2
- package/lib/components/booking/notes/addNote/index.d.ts +2 -2
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +2 -2
- package/lib/components/checkout/components/AmountSummary/index.d.ts +2 -2
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +2 -2
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -2
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -2
- package/lib/components/checkout/components/SendPaymentLinkModal/index.d.ts +2 -2
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +2 -3
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +16 -16
- package/lib/components/eftpos/device.d.ts +1 -1
- package/lib/components/eftpos/deviceList/index.d.ts +2 -2
- package/lib/components/eftpos/form/index.d.ts +2 -2
- package/lib/components/eftpos/group/index.d.ts +3 -3
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +2 -2
- package/lib/components/eftpos/icon/device.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +2 -2
- package/lib/components/eftpos/log.d.ts +2 -2
- package/lib/components/eftpos/pos.d.ts +2 -2
- package/lib/components/eftpos/receipt/index.d.ts +2 -2
- package/lib/components/eftpos/surcharge/index.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/app.d.ts +1 -2
- package/lib/components/eftposPay/component/alert/index.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +2 -2
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -2
- package/lib/components/eftposPay/component/header/index.d.ts +1 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +2 -2
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -2
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -2
- package/lib/components/eftposPay/component/step/index.d.ts +1 -2
- package/lib/components/eftposPay/component/step/step.d.ts +2 -2
- package/lib/components/eftposPay/device.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -2
- package/lib/components/eftposPay/linkly/index.d.ts +1 -2
- package/lib/components/eftposPay/pay.d.ts +1 -2
- package/lib/components/eftposPay/payo/config.d.ts +2 -3
- package/lib/components/eftposPay/payo/index.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tip.d.ts +1 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.d.ts +1 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +2 -3
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -2
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +2 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +2 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +2 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +2 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -2
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +2 -2
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -2
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -2
- package/lib/components/eventBooking/index.d.ts +1 -2
- package/lib/components/kioskSkuDetail/assets/kiosk-launchpad-bg-773705.png +0 -0
- package/lib/components/kioskSkuDetail/assets/kiosk-launchpad-hero-c14ba2.png +0 -0
- package/lib/components/kioskSkuDetail/index.d.ts +33 -0
- package/lib/components/kioskSkuDetail/index.js +206 -0
- package/lib/components/kioskSkuDetail/index.less +152 -0
- package/lib/components/login/index.d.ts +2 -2
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -2
- package/lib/components/pay/toB/components/Card/index.d.ts +1 -2
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +2 -2
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -2
- package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -2
- package/lib/components/pay/toB/store/provider.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +2 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +2 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +2 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +1 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -2
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/lib/components/productExtension/fields/Actor/index.d.ts +2 -2
- package/lib/components/productExtension/fields/Forms/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +2 -2
- package/lib/components/productExtension/index.d.ts +2 -2
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -2
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +3 -3
- package/lib/components/productSelect/index.d.ts +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -2
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +2 -2
- package/lib/components/schedules/calendar/calendarItem.d.ts +2 -2
- package/lib/components/schedules/calendar/index.d.ts +2 -2
- package/lib/components/schedules/components/Card/index.d.ts +1 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +2 -2
- package/lib/components/schedules/components/ResourceList/index.d.ts +1 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +2 -2
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +2 -2
- package/lib/components/schedules/components/ScheduleList/index.d.ts +2 -2
- package/lib/components/schedules/components/Search/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +2 -2
- package/lib/components/schedules/products/index.d.ts +2 -2
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +2 -2
- package/lib/components/schedules/products/list/index.d.ts +2 -2
- package/lib/components/schedules/resources/index.d.ts +2 -2
- package/lib/components/schedules/resources/list/index.d.ts +2 -2
- package/lib/components/schedules/resources/relationProduct/index.d.ts +2 -2
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +2 -2
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +2 -2
- package/lib/components/schedules/schedules/Schedules.d.ts +1 -1
- package/lib/components/schedules/schedules/SchedulesForDay/index.d.ts +1 -1
- package/lib/components/schedules/schedules/index.d.ts +2 -2
- package/lib/components/shoppingCart/Provider.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -2
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -2
- package/lib/components/shoppingCart/components/Empty/index.d.ts +2 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +2 -2
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -2
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -2
- package/lib/components/shoppingCart/index.d.ts +2 -2
- package/lib/components/subTotal/index.d.ts +1 -1
- package/lib/components/tabProduct/index.d.ts +1 -1
- package/lib/components/taxSelect/index.d.ts +2 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +1 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -2
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +9 -9
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +2 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +3 -3
- package/lib/components/ticketBooking/index.d.ts +1 -2
- package/lib/components/ticketBooking/miniRedux.d.ts +1 -1
- package/lib/components/walletList/index.d.ts +1 -2
- package/lib/components/walletList/model.d.ts +1 -1
- package/lib/components/walletList/tempHolderSelector/index.d.ts +2 -2
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -2
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -2
- package/lib/hooks/usePaymentLogger.d.ts +3 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -2
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
- package/lib/plus/noteModal/AddTempModal.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -6
- package/lib/plus/productSelect/ProductCard/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -6
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.js +38 -29
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +6 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/lib/plus/productSelect/index.d.ts +1 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +2 -2
- package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +2 -2
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +2 -2
- package/lib/plus/saasRegister/components/GoLogin.d.ts +2 -2
- package/lib/plus/saasRegister/components/Header.d.ts +2 -2
- package/lib/plus/saasRegister/components/VerifyError.d.ts +2 -2
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +2 -2
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -2
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +142 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +153 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +10 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +229 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +113 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +140 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.js +78 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.less +23 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +66 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +9 -0
- package/lib/plus/skuOptionsSelection/hooks/index.js +45 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.js +41 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.js +36 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.js +42 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/index.js +141 -0
- package/lib/plus/skuOptionsSelection/index.less +4 -0
- package/lib/plus/skuOptionsSelection/locales.js +53 -0
- package/lib/plus/skuOptionsSelection/store/actions.js +74 -0
- package/lib/plus/skuOptionsSelection/store/createStore.js +87 -0
- package/lib/plus/skuOptionsSelection/store/index.js +42 -0
- package/lib/plus/skuOptionsSelection/store/store.js +57 -0
- package/lib/plus/skuOptionsSelection/types.js +44 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.js +106 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.js +125 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/index.js +35 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +115 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +113 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +171 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +212 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +118 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/index.d.ts +1 -2
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +1 -1
- package/lib/pro/Cards/components/SKUCard/index.d.ts +60 -0
- package/lib/pro/Cards/components/SKUCard/index.js +192 -0
- package/lib/pro/Cards/components/SKUCard/index.less +102 -0
- package/lib/pro/Cards/index.d.ts +1 -0
- package/lib/pro/Cards/index.js +39 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +2 -9
- package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +2 -6
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +1 -1
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +2 -6
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +2 -5
- package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +2 -5
- package/lib/pro/Login2.0/steps/SetPassword.d.ts +2 -5
- package/lib/pro/{Selector/components/NumericStepper → NumericStepper}/index.js +31 -13
- package/{es/pro/Selector/components → lib/pro}/NumericStepper/index.less +7 -8
- package/lib/pro/Selector/BatchSelectorDemo.js +449 -137
- package/lib/pro/Selector/Item.js +109 -0
- package/lib/pro/Selector/Selector.js +194 -114
- package/lib/pro/Selector/Selector.stories.js +740 -0
- package/lib/pro/Selector/SelectorGroup.js +212 -141
- package/lib/pro/Selector/components/Card/index.js +72 -57
- package/lib/pro/Selector/components/Card/index.less +113 -83
- package/lib/pro/Selector/components/Card/types.js +17 -0
- package/lib/pro/Selector/components/Indicator/index.js +129 -0
- package/lib/pro/Selector/components/Indicator/index.less +114 -0
- package/lib/pro/Selector/components/LayoutContainer/index.js +64 -0
- package/lib/pro/Selector/components/Media/index.js +238 -0
- package/lib/pro/Selector/components/Media/index.less +124 -0
- package/lib/pro/Selector/components/Media/types.js +17 -0
- package/lib/pro/Selector/components/index.js +3 -3
- package/lib/pro/Selector/demo.js +808 -55
- package/lib/pro/Selector/hooks/usePresetItemProps.js +156 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +133 -0
- package/lib/pro/Selector/hooks/useSelectionController.js +108 -67
- package/lib/pro/Selector/index.js +8 -0
- package/lib/pro/Selector/locales.js +51 -30
- package/lib/pro/Selector/selector.less +108 -2
- package/lib/pro/Selector/selectorGroup.less +8 -0
- package/lib/pro/numberKeyboard/index.d.ts +1 -1
- package/lib/pro/pisellNumberSelector/index.less +18 -2
- package/lib/pro/pisellPaymentList/example.d.ts +10 -11
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +2 -2
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +2 -2
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -2
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -2
- package/lib/pro/skuDetailModal/index.js +540 -126
- package/lib/pro/skuDetailModal/index.less +136 -28
- package/lib/pro/skuDetailModal/locales.js +62 -3
- package/lib/pro/skuDetailModal/utils.js +42 -0
- package/lib/test/setup.d.ts +1 -0
- package/lib/test/setup.js +94 -0
- package/lowcode/kiosk-sku-detail/meta.ts +129 -0
- package/lowcode/selector/meta.ts +320 -285
- package/lowcode/selector/utils.ts +118 -0
- package/lowcode/selector.group/meta.ts +95 -10
- package/lowcode/selector.item/meta.ts +31 -0
- package/lowcode/sku-options-selection/default.ts +1215 -0
- package/lowcode/sku-options-selection/meta.ts +509 -0
- package/package.json +29 -8
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/es/components/authentication/admin/AuthMethods/types.d.ts +0 -76
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/es/components/booking/model.d.ts +0 -120
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/locales.d.ts +0 -513
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/eftposPay/utils/log/index.d.ts +0 -110
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/types.d.ts +0 -178
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -19
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/locales.d.ts +0 -301
- package/es/components/pay/toC/status.d.ts +0 -13
- package/es/components/shoppingCart/locales.d.ts +0 -36
- package/es/components/shoppingCart/type.d.ts +0 -50
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -83
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/locales.d.ts +0 -201
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -27
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/useEngineContext.d.ts +0 -4
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/types.d.ts +0 -134
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clientName/index.d.ts +0 -5
- package/es/plus/clientName/type.d.ts +0 -13
- package/es/plus/clientName/utils.d.ts +0 -2
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/es/plus/contactInfo/locales.d.ts +0 -15
- package/es/plus/contactInfo/types.d.ts +0 -91
- package/es/plus/contactInfo/utils.d.ts +0 -7
- package/es/plus/contactInfoModal/locales.d.ts +0 -66
- package/es/plus/noteModal/locales.d.ts +0 -33
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/es/plus/productSelect/utils.d.ts +0 -39
- package/es/plus/selectHolder/locales.d.ts +0 -24
- package/es/plus/selectHolder/types.d.ts +0 -104
- package/es/plus/selectHolder/utils.d.ts +0 -9
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
- package/es/plus/walletEditor/locales.d.ts +0 -135
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -285
- package/es/plus/walletPassGallery/utils.d.ts +0 -48
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -16
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -11
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -10
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -21
- package/es/pro/Login2.0/types.d.ts +0 -167
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/es/pro/Selector/Selector.d.ts +0 -5
- package/es/pro/Selector/SelectorGroup.d.ts +0 -11
- package/es/pro/Selector/components/Card/index.d.ts +0 -27
- package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/es/pro/Selector/components/NumericStepper/index.d.ts +0 -41
- package/es/pro/Selector/components/index.d.ts +0 -2
- package/es/pro/Selector/demo.d.ts +0 -3
- package/es/pro/Selector/hooks/useSelectionController.d.ts +0 -42
- package/es/pro/Selector/index.d.ts +0 -8
- package/es/pro/Selector/locales.d.ts +0 -42
- package/es/pro/Selector/types.d.ts +0 -114
- package/es/pro/Selector/utils/index.d.ts +0 -49
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/es/pro/priceKeyboard/utils.d.ts +0 -31
- package/es/pro/skuDetailModal/locales.d.ts +0 -48
- package/es/pro/skuDetailModal/types.d.ts +0 -348
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +0 -76
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/lib/components/booking/model.d.ts +0 -120
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/locales.d.ts +0 -513
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/types.d.ts +0 -178
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -19
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/locales.d.ts +0 -301
- package/lib/components/pay/toC/status.d.ts +0 -13
- package/lib/components/shoppingCart/locales.d.ts +0 -36
- package/lib/components/shoppingCart/type.d.ts +0 -50
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -83
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/locales.d.ts +0 -201
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -27
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/hooks/useEngineContext.d.ts +0 -4
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/types.d.ts +0 -134
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clientName/index.d.ts +0 -5
- package/lib/plus/clientName/type.d.ts +0 -13
- package/lib/plus/clientName/utils.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/lib/plus/contactInfo/locales.d.ts +0 -15
- package/lib/plus/contactInfo/types.d.ts +0 -91
- package/lib/plus/contactInfo/utils.d.ts +0 -7
- package/lib/plus/contactInfoModal/locales.d.ts +0 -66
- package/lib/plus/noteModal/locales.d.ts +0 -33
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/lib/plus/productSelect/utils.d.ts +0 -39
- package/lib/plus/selectHolder/locales.d.ts +0 -24
- package/lib/plus/selectHolder/types.d.ts +0 -104
- package/lib/plus/selectHolder/utils.d.ts +0 -9
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
- package/lib/plus/walletEditor/locales.d.ts +0 -135
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -285
- package/lib/plus/walletPassGallery/utils.d.ts +0 -48
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -16
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -11
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -10
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -21
- package/lib/pro/Login2.0/types.d.ts +0 -167
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/lib/pro/Selector/Selector.d.ts +0 -5
- package/lib/pro/Selector/SelectorGroup.d.ts +0 -11
- package/lib/pro/Selector/components/Card/index.d.ts +0 -27
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/lib/pro/Selector/components/NumericStepper/index.d.ts +0 -41
- package/lib/pro/Selector/components/index.d.ts +0 -2
- package/lib/pro/Selector/demo.d.ts +0 -3
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +0 -42
- package/lib/pro/Selector/index.d.ts +0 -8
- package/lib/pro/Selector/locales.d.ts +0 -42
- package/lib/pro/Selector/types.d.ts +0 -114
- package/lib/pro/Selector/utils/index.d.ts +0 -49
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/lib/pro/priceKeyboard/utils.d.ts +0 -31
- package/lib/pro/skuDetailModal/locales.d.ts +0 -48
- package/lib/pro/skuDetailModal/types.d.ts +0 -348
|
@@ -0,0 +1,1105 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
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); }
|
|
6
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
7
|
+
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."); }
|
|
8
|
+
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); }
|
|
9
|
+
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; }
|
|
10
|
+
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; } }
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
import React, { useState } from 'react';
|
|
13
|
+
import Selector from "./index";
|
|
14
|
+
import SelectorGroup from "./SelectorGroup";
|
|
15
|
+
import { CheckOutlined } from '@ant-design/icons';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Selector 组件 - 高级选择器
|
|
19
|
+
*
|
|
20
|
+
* 支持单选/多选、数量控制、校验规则、互斥组等功能
|
|
21
|
+
*
|
|
22
|
+
* 查看文档:
|
|
23
|
+
* - [开发文档](https://studio.picoding-dev.com/pro-components/selector?tab=dev)
|
|
24
|
+
* - [需求文档](https://m1ed09stz4r.feishu.cn/wiki/NL5AwOs0ei5ZBekT4i6cuzIOnoM)
|
|
25
|
+
*/
|
|
26
|
+
var meta = {
|
|
27
|
+
title: 'Pro Components/Selector',
|
|
28
|
+
component: Selector,
|
|
29
|
+
tags: ['autodocs'],
|
|
30
|
+
parameters: {
|
|
31
|
+
docs: {
|
|
32
|
+
description: {
|
|
33
|
+
component: '高级选择器组件,支持单选/多选、数量控制、校验规则、多种样式变体等功能。'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
argTypes: {
|
|
38
|
+
mode: {
|
|
39
|
+
control: 'select',
|
|
40
|
+
options: ['single', 'multiple'],
|
|
41
|
+
description: '选择模式:单选或多选'
|
|
42
|
+
},
|
|
43
|
+
valueType: {
|
|
44
|
+
control: 'select',
|
|
45
|
+
options: ['primitive', 'object'],
|
|
46
|
+
description: '值类型:原始值或对象值'
|
|
47
|
+
},
|
|
48
|
+
variant: {
|
|
49
|
+
control: 'select',
|
|
50
|
+
options: ['default', 'card', 'select'],
|
|
51
|
+
description: '样式变体'
|
|
52
|
+
},
|
|
53
|
+
disabled: {
|
|
54
|
+
control: 'boolean',
|
|
55
|
+
description: '是否禁用'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export default meta;
|
|
60
|
+
// 基础测试数据
|
|
61
|
+
var basicDataSource = [{
|
|
62
|
+
id: 1,
|
|
63
|
+
value: 1,
|
|
64
|
+
label: '选项1',
|
|
65
|
+
title: '选项1'
|
|
66
|
+
}, {
|
|
67
|
+
id: 2,
|
|
68
|
+
value: 2,
|
|
69
|
+
label: '选项2',
|
|
70
|
+
title: '选项2'
|
|
71
|
+
}, {
|
|
72
|
+
id: 3,
|
|
73
|
+
value: 3,
|
|
74
|
+
label: '选项3',
|
|
75
|
+
title: '选项3'
|
|
76
|
+
}, {
|
|
77
|
+
id: 4,
|
|
78
|
+
value: 4,
|
|
79
|
+
label: '选项4',
|
|
80
|
+
title: '选项4'
|
|
81
|
+
}, {
|
|
82
|
+
id: 5,
|
|
83
|
+
value: 5,
|
|
84
|
+
label: '选项5',
|
|
85
|
+
title: '选项5'
|
|
86
|
+
}];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 默认单选模式 - 原始值类型
|
|
90
|
+
*/
|
|
91
|
+
export var Default = {
|
|
92
|
+
args: {
|
|
93
|
+
id: 'default-selector',
|
|
94
|
+
title: '基础单选',
|
|
95
|
+
dataSource: basicDataSource,
|
|
96
|
+
mode: 'single',
|
|
97
|
+
valueType: 'primitive',
|
|
98
|
+
fieldNames: {
|
|
99
|
+
value: 'value',
|
|
100
|
+
label: 'label'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
render: function render(args) {
|
|
104
|
+
var _useState = useState(1),
|
|
105
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
106
|
+
value = _useState2[0],
|
|
107
|
+
setValue = _useState2[1];
|
|
108
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
109
|
+
value: value,
|
|
110
|
+
onChange: function onChange(v) {
|
|
111
|
+
setValue(v);
|
|
112
|
+
console.log('选中值:', v);
|
|
113
|
+
}
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 多选模式 - 原始值数组
|
|
120
|
+
*/
|
|
121
|
+
export var Multiple = {
|
|
122
|
+
args: {
|
|
123
|
+
id: 'multiple-selector',
|
|
124
|
+
title: '多选模式',
|
|
125
|
+
dataSource: basicDataSource,
|
|
126
|
+
mode: 'multiple',
|
|
127
|
+
valueType: 'primitive',
|
|
128
|
+
fieldNames: {
|
|
129
|
+
value: 'value',
|
|
130
|
+
label: 'label'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
render: function render(args) {
|
|
134
|
+
var _useState3 = useState([1, 3]),
|
|
135
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
136
|
+
value = _useState4[0],
|
|
137
|
+
setValue = _useState4[1];
|
|
138
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
139
|
+
value: value,
|
|
140
|
+
onChange: function onChange(v) {
|
|
141
|
+
setValue(v);
|
|
142
|
+
console.log('选中值:', v);
|
|
143
|
+
}
|
|
144
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
style: {
|
|
146
|
+
marginTop: 16,
|
|
147
|
+
padding: 12,
|
|
148
|
+
background: '#f5f5f5',
|
|
149
|
+
borderRadius: 4
|
|
150
|
+
}
|
|
151
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u5F53\u524D\u9009\u62E9\u503C\uFF1A"), /*#__PURE__*/React.createElement("pre", null, JSON.stringify(value, null, 2))));
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 单选 + 数量 - 对象值类型
|
|
157
|
+
*/
|
|
158
|
+
export var SingleWithQuantity = {
|
|
159
|
+
args: {
|
|
160
|
+
id: 'single-quantity',
|
|
161
|
+
title: '单选 + 数量',
|
|
162
|
+
dataSource: [{
|
|
163
|
+
id: 1,
|
|
164
|
+
value: 1,
|
|
165
|
+
label: '可乐',
|
|
166
|
+
title: '可乐',
|
|
167
|
+
ruleConfig: {
|
|
168
|
+
min: 1,
|
|
169
|
+
max: 10
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
id: 2,
|
|
173
|
+
value: 2,
|
|
174
|
+
label: '橙汁',
|
|
175
|
+
title: '橙汁',
|
|
176
|
+
ruleConfig: {
|
|
177
|
+
min: 1,
|
|
178
|
+
max: 5
|
|
179
|
+
}
|
|
180
|
+
}],
|
|
181
|
+
mode: 'single',
|
|
182
|
+
valueType: 'object',
|
|
183
|
+
fieldNames: {
|
|
184
|
+
value: 'value',
|
|
185
|
+
label: 'label'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
render: function render(args) {
|
|
189
|
+
var _useState5 = useState({
|
|
190
|
+
value: 1,
|
|
191
|
+
quantity: 2
|
|
192
|
+
}),
|
|
193
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
194
|
+
value = _useState6[0],
|
|
195
|
+
setValue = _useState6[1];
|
|
196
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
197
|
+
value: value,
|
|
198
|
+
onChange: function onChange(v) {
|
|
199
|
+
setValue(v);
|
|
200
|
+
console.log('选中值:', v);
|
|
201
|
+
}
|
|
202
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
203
|
+
style: {
|
|
204
|
+
marginTop: 16,
|
|
205
|
+
padding: 12,
|
|
206
|
+
background: '#f5f5f5',
|
|
207
|
+
borderRadius: 4
|
|
208
|
+
}
|
|
209
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u5F53\u524D\u9009\u62E9\u503C\uFF1A"), /*#__PURE__*/React.createElement("pre", null, JSON.stringify(value, null, 2))));
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* 多选 + 数量 - 卡片样式
|
|
215
|
+
*/
|
|
216
|
+
export var MultipleWithQuantity = {
|
|
217
|
+
args: {
|
|
218
|
+
id: 'multiple-quantity',
|
|
219
|
+
title: '多选 + 数量(卡片样式)',
|
|
220
|
+
dataSource: [{
|
|
221
|
+
id: 1,
|
|
222
|
+
value: 1,
|
|
223
|
+
label: '青菜',
|
|
224
|
+
title: '青菜',
|
|
225
|
+
ruleConfig: {
|
|
226
|
+
min: 0,
|
|
227
|
+
max: 3
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
id: 2,
|
|
231
|
+
value: 2,
|
|
232
|
+
label: '豆腐',
|
|
233
|
+
title: '豆腐',
|
|
234
|
+
ruleConfig: {
|
|
235
|
+
min: 0,
|
|
236
|
+
max: 3
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
id: 3,
|
|
240
|
+
value: 3,
|
|
241
|
+
label: '鸡蛋',
|
|
242
|
+
title: '鸡蛋',
|
|
243
|
+
ruleConfig: {
|
|
244
|
+
min: 0,
|
|
245
|
+
max: 5
|
|
246
|
+
}
|
|
247
|
+
}],
|
|
248
|
+
mode: 'multiple',
|
|
249
|
+
valueType: 'object',
|
|
250
|
+
fieldNames: {
|
|
251
|
+
value: 'value',
|
|
252
|
+
label: 'label'
|
|
253
|
+
},
|
|
254
|
+
variant: 'card',
|
|
255
|
+
item: {
|
|
256
|
+
variant: 'card',
|
|
257
|
+
layout: 'vertical',
|
|
258
|
+
selectedTypeVariant: 'filled'
|
|
259
|
+
},
|
|
260
|
+
grid: {
|
|
261
|
+
columns: 3,
|
|
262
|
+
gutter: 16
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
render: function render(args) {
|
|
266
|
+
var _useState7 = useState([{
|
|
267
|
+
value: 1,
|
|
268
|
+
quantity: 2
|
|
269
|
+
}, {
|
|
270
|
+
value: 3,
|
|
271
|
+
quantity: 1
|
|
272
|
+
}]),
|
|
273
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
274
|
+
value = _useState8[0],
|
|
275
|
+
setValue = _useState8[1];
|
|
276
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
277
|
+
value: value,
|
|
278
|
+
onChange: function onChange(v) {
|
|
279
|
+
setValue(v);
|
|
280
|
+
console.log('选中值:', v);
|
|
281
|
+
}
|
|
282
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
283
|
+
style: {
|
|
284
|
+
marginTop: 16,
|
|
285
|
+
padding: 12,
|
|
286
|
+
background: '#f5f5f5',
|
|
287
|
+
borderRadius: 4
|
|
288
|
+
}
|
|
289
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u5F53\u524D\u9009\u62E9\u503C\uFF1A"), /*#__PURE__*/React.createElement("pre", null, JSON.stringify(value, null, 2))));
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* 网格布局 - 2列
|
|
295
|
+
*/
|
|
296
|
+
export var GridLayout2Columns = {
|
|
297
|
+
args: {
|
|
298
|
+
id: 'grid-2',
|
|
299
|
+
title: '网格布局(2列)',
|
|
300
|
+
dataSource: basicDataSource,
|
|
301
|
+
mode: 'multiple',
|
|
302
|
+
valueType: 'primitive',
|
|
303
|
+
fieldNames: {
|
|
304
|
+
value: 'value',
|
|
305
|
+
label: 'label'
|
|
306
|
+
},
|
|
307
|
+
variant: 'card',
|
|
308
|
+
item: {
|
|
309
|
+
variant: 'card'
|
|
310
|
+
},
|
|
311
|
+
grid: {
|
|
312
|
+
columns: 2,
|
|
313
|
+
gutter: 16
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
render: function render(args) {
|
|
317
|
+
var _useState9 = useState([]),
|
|
318
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
319
|
+
value = _useState10[0],
|
|
320
|
+
setValue = _useState10[1];
|
|
321
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
322
|
+
value: value,
|
|
323
|
+
onChange: setValue
|
|
324
|
+
}));
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* 网格布局 - 3列
|
|
330
|
+
*/
|
|
331
|
+
export var GridLayout3Columns = {
|
|
332
|
+
args: {
|
|
333
|
+
id: 'grid-3',
|
|
334
|
+
title: '网格布局(3列)',
|
|
335
|
+
dataSource: basicDataSource,
|
|
336
|
+
mode: 'multiple',
|
|
337
|
+
valueType: 'primitive',
|
|
338
|
+
fieldNames: {
|
|
339
|
+
value: 'value',
|
|
340
|
+
label: 'label'
|
|
341
|
+
},
|
|
342
|
+
variant: 'card',
|
|
343
|
+
item: {
|
|
344
|
+
variant: 'card',
|
|
345
|
+
layout: 'vertical',
|
|
346
|
+
selectedTypeVariant: 'cornered'
|
|
347
|
+
},
|
|
348
|
+
grid: {
|
|
349
|
+
columns: 3,
|
|
350
|
+
gutter: 16
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
render: function render(args) {
|
|
354
|
+
var _useState11 = useState([]),
|
|
355
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
356
|
+
value = _useState12[0],
|
|
357
|
+
setValue = _useState12[1];
|
|
358
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
359
|
+
value: value,
|
|
360
|
+
onChange: setValue
|
|
361
|
+
}));
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* 校验规则 - 必选、最小/最大数量
|
|
367
|
+
*/
|
|
368
|
+
export var WithValidation = {
|
|
369
|
+
args: {
|
|
370
|
+
id: 'validation',
|
|
371
|
+
title: '校验规则',
|
|
372
|
+
dataSource: basicDataSource,
|
|
373
|
+
mode: 'multiple',
|
|
374
|
+
valueType: 'primitive',
|
|
375
|
+
fieldNames: {
|
|
376
|
+
value: 'value',
|
|
377
|
+
label: 'label'
|
|
378
|
+
},
|
|
379
|
+
ruleConfig: {
|
|
380
|
+
required: 1,
|
|
381
|
+
min: 2,
|
|
382
|
+
max: 4
|
|
383
|
+
},
|
|
384
|
+
titleProps: {
|
|
385
|
+
visible: true,
|
|
386
|
+
title: {
|
|
387
|
+
text: '请选择 2-4 个选项'
|
|
388
|
+
},
|
|
389
|
+
tip: {
|
|
390
|
+
visible: true
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
render: function render(args) {
|
|
395
|
+
var _useState13 = useState([]),
|
|
396
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
397
|
+
value = _useState14[0],
|
|
398
|
+
setValue = _useState14[1];
|
|
399
|
+
var ref = React.useRef(null);
|
|
400
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Selector, _extends({
|
|
401
|
+
ref: ref
|
|
402
|
+
}, args, {
|
|
403
|
+
value: value,
|
|
404
|
+
onChange: setValue
|
|
405
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
406
|
+
style: {
|
|
407
|
+
marginTop: 16
|
|
408
|
+
}
|
|
409
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
410
|
+
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
411
|
+
var _ref$current, _ref$current2;
|
|
412
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
413
|
+
while (1) switch (_context.prev = _context.next) {
|
|
414
|
+
case 0:
|
|
415
|
+
_context.prev = 0;
|
|
416
|
+
_context.next = 3;
|
|
417
|
+
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.validate();
|
|
418
|
+
case 3:
|
|
419
|
+
alert('校验通过!');
|
|
420
|
+
_context.next = 10;
|
|
421
|
+
break;
|
|
422
|
+
case 6:
|
|
423
|
+
_context.prev = 6;
|
|
424
|
+
_context.t0 = _context["catch"](0);
|
|
425
|
+
console.error('校验失败:', _context.t0);
|
|
426
|
+
alert('校验失败:' + JSON.stringify((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.getErrors(), null, 2));
|
|
427
|
+
case 10:
|
|
428
|
+
case "end":
|
|
429
|
+
return _context.stop();
|
|
430
|
+
}
|
|
431
|
+
}, _callee, null, [[0, 6]]);
|
|
432
|
+
})),
|
|
433
|
+
style: {
|
|
434
|
+
padding: '8px 16px',
|
|
435
|
+
marginRight: 8
|
|
436
|
+
}
|
|
437
|
+
}, "\u6821\u9A8C"), /*#__PURE__*/React.createElement("button", {
|
|
438
|
+
onClick: function onClick() {
|
|
439
|
+
var _ref$current3;
|
|
440
|
+
return (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.reset();
|
|
441
|
+
},
|
|
442
|
+
style: {
|
|
443
|
+
padding: '8px 16px',
|
|
444
|
+
marginRight: 8
|
|
445
|
+
}
|
|
446
|
+
}, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement("button", {
|
|
447
|
+
onClick: function onClick() {
|
|
448
|
+
var _ref$current4;
|
|
449
|
+
return (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.clear();
|
|
450
|
+
},
|
|
451
|
+
style: {
|
|
452
|
+
padding: '8px 16px'
|
|
453
|
+
}
|
|
454
|
+
}, "\u6E05\u7A7A")));
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* 互斥组 - 同组只能选一个
|
|
460
|
+
*/
|
|
461
|
+
export var MutexGroups = {
|
|
462
|
+
args: {
|
|
463
|
+
id: 'mutex',
|
|
464
|
+
title: '互斥组示例',
|
|
465
|
+
dataSource: [{
|
|
466
|
+
id: 1,
|
|
467
|
+
value: 1,
|
|
468
|
+
label: '选项1(互斥组1)',
|
|
469
|
+
title: '选项1'
|
|
470
|
+
}, {
|
|
471
|
+
id: 2,
|
|
472
|
+
value: 2,
|
|
473
|
+
label: '选项2(互斥组1)',
|
|
474
|
+
title: '选项2'
|
|
475
|
+
}, {
|
|
476
|
+
id: 3,
|
|
477
|
+
value: 3,
|
|
478
|
+
label: '选项3(互斥组1)',
|
|
479
|
+
title: '选项3'
|
|
480
|
+
}, {
|
|
481
|
+
id: 4,
|
|
482
|
+
value: 4,
|
|
483
|
+
label: '选项4(互斥组2)',
|
|
484
|
+
title: '选项4'
|
|
485
|
+
}, {
|
|
486
|
+
id: 5,
|
|
487
|
+
value: 5,
|
|
488
|
+
label: '选项5(互斥组2)',
|
|
489
|
+
title: '选项5'
|
|
490
|
+
}, {
|
|
491
|
+
id: 6,
|
|
492
|
+
value: 6,
|
|
493
|
+
label: '选项6(互斥组2)',
|
|
494
|
+
title: '选项6'
|
|
495
|
+
}],
|
|
496
|
+
mode: 'multiple',
|
|
497
|
+
valueType: 'primitive',
|
|
498
|
+
fieldNames: {
|
|
499
|
+
value: 'value',
|
|
500
|
+
label: 'label'
|
|
501
|
+
},
|
|
502
|
+
ruleConfig: {
|
|
503
|
+
mutex: [[1, 2, 3],
|
|
504
|
+
// 互斥组1
|
|
505
|
+
[4, 5, 6] // 互斥组2
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
variant: 'card',
|
|
509
|
+
item: {
|
|
510
|
+
variant: 'card'
|
|
511
|
+
},
|
|
512
|
+
grid: {
|
|
513
|
+
columns: 3,
|
|
514
|
+
gutter: 16
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
render: function render(args) {
|
|
518
|
+
var _useState15 = useState([]),
|
|
519
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
520
|
+
value = _useState16[0],
|
|
521
|
+
setValue = _useState16[1];
|
|
522
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
|
523
|
+
style: {
|
|
524
|
+
color: '#666',
|
|
525
|
+
marginBottom: 16
|
|
526
|
+
}
|
|
527
|
+
}, "\u89C4\u5219\uFF1A\u9009\u98791\u30012\u30013\u5C5E\u4E8E\u4E92\u65A5\u7EC41\uFF0C\u53EA\u80FD\u9009\u4E00\u4E2A\uFF1B\u9009\u98794\u30015\u30016\u5C5E\u4E8E\u4E92\u65A5\u7EC42\uFF0C\u53EA\u80FD\u9009\u4E00\u4E2A\u3002"), /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
528
|
+
value: value,
|
|
529
|
+
onChange: setValue
|
|
530
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
531
|
+
style: {
|
|
532
|
+
marginTop: 16,
|
|
533
|
+
padding: 12,
|
|
534
|
+
background: '#f5f5f5',
|
|
535
|
+
borderRadius: 4
|
|
536
|
+
}
|
|
537
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u5F53\u524D\u9009\u62E9\u503C\uFF1A"), /*#__PURE__*/React.createElement("pre", null, JSON.stringify(value, null, 2))));
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* 禁用状态
|
|
543
|
+
*/
|
|
544
|
+
export var Disabled = {
|
|
545
|
+
args: {
|
|
546
|
+
id: 'disabled',
|
|
547
|
+
title: '禁用状态',
|
|
548
|
+
dataSource: [{
|
|
549
|
+
id: 1,
|
|
550
|
+
value: 1,
|
|
551
|
+
label: '选项1(正常)',
|
|
552
|
+
title: '选项1'
|
|
553
|
+
}, {
|
|
554
|
+
id: 2,
|
|
555
|
+
value: 2,
|
|
556
|
+
label: '选项2(禁用)',
|
|
557
|
+
title: '选项2',
|
|
558
|
+
disabled: true
|
|
559
|
+
}, {
|
|
560
|
+
id: 3,
|
|
561
|
+
value: 3,
|
|
562
|
+
label: '选项3(正常)',
|
|
563
|
+
title: '选项3'
|
|
564
|
+
}],
|
|
565
|
+
mode: 'single',
|
|
566
|
+
valueType: 'primitive',
|
|
567
|
+
fieldNames: {
|
|
568
|
+
value: 'value',
|
|
569
|
+
label: 'label'
|
|
570
|
+
},
|
|
571
|
+
disabled: false
|
|
572
|
+
},
|
|
573
|
+
render: function render(args) {
|
|
574
|
+
var _useState17 = useState(false),
|
|
575
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
576
|
+
disabled = _useState18[0],
|
|
577
|
+
setDisabled = _useState18[1];
|
|
578
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
|
|
579
|
+
style: {
|
|
580
|
+
marginBottom: 16,
|
|
581
|
+
display: 'block'
|
|
582
|
+
}
|
|
583
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
584
|
+
type: "checkbox",
|
|
585
|
+
checked: disabled,
|
|
586
|
+
onChange: function onChange(e) {
|
|
587
|
+
return setDisabled(e.target.checked);
|
|
588
|
+
},
|
|
589
|
+
style: {
|
|
590
|
+
marginRight: 8
|
|
591
|
+
}
|
|
592
|
+
}), "\u7981\u7528\u6574\u4E2A\u7EC4\u4EF6"), /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
593
|
+
disabled: disabled
|
|
594
|
+
})));
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Select 变体 - 下拉选择
|
|
600
|
+
*/
|
|
601
|
+
export var SelectVariant = {
|
|
602
|
+
args: {
|
|
603
|
+
id: 'select-variant',
|
|
604
|
+
title: 'Select 变体(下拉选择)',
|
|
605
|
+
dataSource: basicDataSource,
|
|
606
|
+
mode: 'single',
|
|
607
|
+
valueType: 'primitive',
|
|
608
|
+
fieldNames: {
|
|
609
|
+
value: 'value',
|
|
610
|
+
label: 'label'
|
|
611
|
+
},
|
|
612
|
+
variant: 'select'
|
|
613
|
+
},
|
|
614
|
+
render: function render(args) {
|
|
615
|
+
var _useState19 = useState(1),
|
|
616
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
617
|
+
value = _useState20[0],
|
|
618
|
+
setValue = _useState20[1];
|
|
619
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
620
|
+
value: value,
|
|
621
|
+
onChange: setValue
|
|
622
|
+
}));
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Select 变体 - 多选下拉
|
|
628
|
+
*/
|
|
629
|
+
export var SelectVariantMultiple = {
|
|
630
|
+
args: {
|
|
631
|
+
id: 'select-variant-multiple',
|
|
632
|
+
title: 'Select 变体(多选下拉)',
|
|
633
|
+
dataSource: basicDataSource,
|
|
634
|
+
mode: 'multiple',
|
|
635
|
+
valueType: 'primitive',
|
|
636
|
+
fieldNames: {
|
|
637
|
+
value: 'value',
|
|
638
|
+
label: 'label'
|
|
639
|
+
},
|
|
640
|
+
variant: 'select'
|
|
641
|
+
},
|
|
642
|
+
render: function render(args) {
|
|
643
|
+
var _useState21 = useState([1, 3]),
|
|
644
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
645
|
+
value = _useState22[0],
|
|
646
|
+
setValue = _useState22[1];
|
|
647
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
648
|
+
value: value,
|
|
649
|
+
onChange: setValue
|
|
650
|
+
}));
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* 卡片样式变体 - 不同选中态
|
|
656
|
+
*/
|
|
657
|
+
export var CardVariants = {
|
|
658
|
+
render: function render() {
|
|
659
|
+
var _useState23 = useState([]),
|
|
660
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
661
|
+
value1 = _useState24[0],
|
|
662
|
+
setValue1 = _useState24[1];
|
|
663
|
+
var _useState25 = useState([]),
|
|
664
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
665
|
+
value2 = _useState26[0],
|
|
666
|
+
setValue2 = _useState26[1];
|
|
667
|
+
var _useState27 = useState([]),
|
|
668
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
669
|
+
value3 = _useState28[0],
|
|
670
|
+
setValue3 = _useState28[1];
|
|
671
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
672
|
+
style: {
|
|
673
|
+
display: 'flex',
|
|
674
|
+
flexDirection: 'column',
|
|
675
|
+
gap: 32
|
|
676
|
+
}
|
|
677
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", null, "\u9ED8\u8BA4\u9009\u4E2D\u6001"), /*#__PURE__*/React.createElement(Selector, {
|
|
678
|
+
id: 1,
|
|
679
|
+
title: "\u9ED8\u8BA4\u6837\u5F0F",
|
|
680
|
+
dataSource: basicDataSource.slice(0, 3),
|
|
681
|
+
mode: "multiple",
|
|
682
|
+
valueType: "primitive",
|
|
683
|
+
variant: "card",
|
|
684
|
+
itemProps: {
|
|
685
|
+
selectedTypeVariant: 'default'
|
|
686
|
+
},
|
|
687
|
+
grid: {
|
|
688
|
+
columns: 3,
|
|
689
|
+
gutter: 16
|
|
690
|
+
},
|
|
691
|
+
value: value1,
|
|
692
|
+
onChange: setValue1
|
|
693
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", null, "\u586B\u5145\u9009\u4E2D\u6001"), /*#__PURE__*/React.createElement(Selector, {
|
|
694
|
+
id: 2,
|
|
695
|
+
title: "\u586B\u5145\u6837\u5F0F",
|
|
696
|
+
dataSource: basicDataSource.slice(0, 3),
|
|
697
|
+
mode: "multiple",
|
|
698
|
+
valueType: "primitive",
|
|
699
|
+
variant: "card",
|
|
700
|
+
itemProps: {
|
|
701
|
+
selectedTypeVariant: 'filled'
|
|
702
|
+
},
|
|
703
|
+
grid: {
|
|
704
|
+
columns: 3,
|
|
705
|
+
gutter: 16
|
|
706
|
+
},
|
|
707
|
+
value: value2,
|
|
708
|
+
onChange: setValue2
|
|
709
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", null, "\u89D2\u6807\u9009\u4E2D\u6001"), /*#__PURE__*/React.createElement(Selector, {
|
|
710
|
+
id: 3,
|
|
711
|
+
title: "\u89D2\u6807\u6837\u5F0F",
|
|
712
|
+
dataSource: basicDataSource.slice(0, 3),
|
|
713
|
+
mode: "multiple",
|
|
714
|
+
valueType: "primitive",
|
|
715
|
+
variant: "card",
|
|
716
|
+
itemProps: {
|
|
717
|
+
selectedTypeVariant: 'cornered',
|
|
718
|
+
layout: 'vertical'
|
|
719
|
+
},
|
|
720
|
+
grid: {
|
|
721
|
+
columns: 3,
|
|
722
|
+
gutter: 16
|
|
723
|
+
},
|
|
724
|
+
value: value3,
|
|
725
|
+
onChange: setValue3
|
|
726
|
+
})));
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* 自定义图标
|
|
732
|
+
*/
|
|
733
|
+
export var CustomIcon = {
|
|
734
|
+
args: {
|
|
735
|
+
id: 'custom-icon',
|
|
736
|
+
title: '自定义选中图标',
|
|
737
|
+
dataSource: basicDataSource.slice(0, 3),
|
|
738
|
+
mode: 'multiple',
|
|
739
|
+
valueType: 'primitive',
|
|
740
|
+
variant: 'card',
|
|
741
|
+
item: {
|
|
742
|
+
variant: 'card',
|
|
743
|
+
selectedIcon: /*#__PURE__*/React.createElement(CheckOutlined, {
|
|
744
|
+
style: {
|
|
745
|
+
color: '#52c41a',
|
|
746
|
+
fontSize: 20
|
|
747
|
+
}
|
|
748
|
+
}),
|
|
749
|
+
selectedTypeVariant: 'filled'
|
|
750
|
+
},
|
|
751
|
+
grid: {
|
|
752
|
+
columns: 3,
|
|
753
|
+
gutter: 16
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
render: function render(args) {
|
|
757
|
+
var _useState29 = useState([]),
|
|
758
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
759
|
+
value = _useState30[0],
|
|
760
|
+
setValue = _useState30[1];
|
|
761
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
762
|
+
value: value,
|
|
763
|
+
onChange: setValue
|
|
764
|
+
}));
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* 自定义渲染
|
|
770
|
+
*/
|
|
771
|
+
export var CustomRender = {
|
|
772
|
+
args: {
|
|
773
|
+
id: 'custom-render',
|
|
774
|
+
title: '自定义渲染',
|
|
775
|
+
dataSource: [{
|
|
776
|
+
id: 1,
|
|
777
|
+
value: 1,
|
|
778
|
+
label: '选项1',
|
|
779
|
+
title: '选项1',
|
|
780
|
+
price: 100,
|
|
781
|
+
image: '🍕'
|
|
782
|
+
}, {
|
|
783
|
+
id: 2,
|
|
784
|
+
value: 2,
|
|
785
|
+
label: '选项2',
|
|
786
|
+
title: '选项2',
|
|
787
|
+
price: 200,
|
|
788
|
+
image: '🍔'
|
|
789
|
+
}, {
|
|
790
|
+
id: 3,
|
|
791
|
+
value: 3,
|
|
792
|
+
label: '选项3',
|
|
793
|
+
title: '选项3',
|
|
794
|
+
price: 300,
|
|
795
|
+
image: '🍟'
|
|
796
|
+
}],
|
|
797
|
+
mode: 'multiple',
|
|
798
|
+
valueType: 'primitive',
|
|
799
|
+
variant: 'card',
|
|
800
|
+
item: {
|
|
801
|
+
variant: 'card',
|
|
802
|
+
layout: 'vertical',
|
|
803
|
+
renderContent: function renderContent(dataSource) {
|
|
804
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
805
|
+
style: {
|
|
806
|
+
textAlign: 'center'
|
|
807
|
+
}
|
|
808
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
809
|
+
style: {
|
|
810
|
+
fontSize: 48,
|
|
811
|
+
marginBottom: 8
|
|
812
|
+
}
|
|
813
|
+
}, dataSource.image), /*#__PURE__*/React.createElement("div", {
|
|
814
|
+
style: {
|
|
815
|
+
fontWeight: 'bold',
|
|
816
|
+
marginBottom: 4
|
|
817
|
+
}
|
|
818
|
+
}, dataSource.label), /*#__PURE__*/React.createElement("div", {
|
|
819
|
+
style: {
|
|
820
|
+
color: '#666'
|
|
821
|
+
}
|
|
822
|
+
}, "\xA5", dataSource.price));
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
grid: {
|
|
826
|
+
columns: 3,
|
|
827
|
+
gutter: 16
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
render: function render(args) {
|
|
831
|
+
var _useState31 = useState([]),
|
|
832
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
833
|
+
value = _useState32[0],
|
|
834
|
+
setValue = _useState32[1];
|
|
835
|
+
return /*#__PURE__*/React.createElement(Selector, _extends({}, args, {
|
|
836
|
+
value: value,
|
|
837
|
+
onChange: setValue
|
|
838
|
+
}));
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* SelectorGroup 基础示例
|
|
844
|
+
*/
|
|
845
|
+
export var SelectorGroupBasic = {
|
|
846
|
+
render: function render() {
|
|
847
|
+
var _useState33 = useState({}),
|
|
848
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
849
|
+
values = _useState34[0],
|
|
850
|
+
setValues = _useState34[1];
|
|
851
|
+
var groupDataSource = [{
|
|
852
|
+
id: 1,
|
|
853
|
+
title: '主食',
|
|
854
|
+
mode: 'single',
|
|
855
|
+
valueType: 'primitive',
|
|
856
|
+
fieldNames: {
|
|
857
|
+
value: 'value',
|
|
858
|
+
label: 'label'
|
|
859
|
+
},
|
|
860
|
+
dataSource: [{
|
|
861
|
+
value: 1,
|
|
862
|
+
label: '米饭',
|
|
863
|
+
title: '米饭'
|
|
864
|
+
}, {
|
|
865
|
+
value: 2,
|
|
866
|
+
label: '面条',
|
|
867
|
+
title: '面条'
|
|
868
|
+
}, {
|
|
869
|
+
value: 3,
|
|
870
|
+
label: '馒头',
|
|
871
|
+
title: '馒头'
|
|
872
|
+
}],
|
|
873
|
+
ruleConfig: {
|
|
874
|
+
required: 1
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
id: 2,
|
|
878
|
+
title: '配菜',
|
|
879
|
+
mode: 'multiple',
|
|
880
|
+
valueType: 'primitive',
|
|
881
|
+
fieldNames: {
|
|
882
|
+
value: 'value',
|
|
883
|
+
label: 'label'
|
|
884
|
+
},
|
|
885
|
+
dataSource: [{
|
|
886
|
+
value: 1,
|
|
887
|
+
label: '青菜',
|
|
888
|
+
title: '青菜'
|
|
889
|
+
}, {
|
|
890
|
+
value: 2,
|
|
891
|
+
label: '豆腐',
|
|
892
|
+
title: '豆腐'
|
|
893
|
+
}, {
|
|
894
|
+
value: 3,
|
|
895
|
+
label: '鸡蛋',
|
|
896
|
+
title: '鸡蛋'
|
|
897
|
+
}],
|
|
898
|
+
ruleConfig: {
|
|
899
|
+
min: 1,
|
|
900
|
+
max: 3
|
|
901
|
+
}
|
|
902
|
+
}, {
|
|
903
|
+
id: 3,
|
|
904
|
+
title: '饮品',
|
|
905
|
+
mode: 'single',
|
|
906
|
+
valueType: 'primitive',
|
|
907
|
+
fieldNames: {
|
|
908
|
+
value: 'value',
|
|
909
|
+
label: 'label'
|
|
910
|
+
},
|
|
911
|
+
dataSource: [{
|
|
912
|
+
value: 1,
|
|
913
|
+
label: '可乐',
|
|
914
|
+
title: '可乐'
|
|
915
|
+
}, {
|
|
916
|
+
value: 2,
|
|
917
|
+
label: '橙汁',
|
|
918
|
+
title: '橙汁'
|
|
919
|
+
}]
|
|
920
|
+
}];
|
|
921
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SelectorGroup, {
|
|
922
|
+
dataSource: groupDataSource,
|
|
923
|
+
value: values,
|
|
924
|
+
onChange: function onChange(v) {
|
|
925
|
+
setValues(v);
|
|
926
|
+
console.log('所有分组值:', v);
|
|
927
|
+
},
|
|
928
|
+
tabProps: {
|
|
929
|
+
visible: true
|
|
930
|
+
}
|
|
931
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
932
|
+
style: {
|
|
933
|
+
marginTop: 24,
|
|
934
|
+
padding: 12,
|
|
935
|
+
background: '#f5f5f5',
|
|
936
|
+
borderRadius: 4
|
|
937
|
+
}
|
|
938
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u5F53\u524D\u6240\u6709\u5206\u7EC4\u503C\uFF1A"), /*#__PURE__*/React.createElement("pre", null, JSON.stringify(values, null, 2))));
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* SelectorGroup 联动规则示例
|
|
944
|
+
*/
|
|
945
|
+
export var SelectorGroupWithLinkage = {
|
|
946
|
+
render: function render() {
|
|
947
|
+
var _useState35 = useState({}),
|
|
948
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
949
|
+
values = _useState36[0],
|
|
950
|
+
setValues = _useState36[1];
|
|
951
|
+
var groupDataSource = [{
|
|
952
|
+
id: 1,
|
|
953
|
+
title: '主菜',
|
|
954
|
+
mode: 'single',
|
|
955
|
+
valueType: 'primitive',
|
|
956
|
+
fieldNames: {
|
|
957
|
+
value: 'value',
|
|
958
|
+
label: 'label'
|
|
959
|
+
},
|
|
960
|
+
dataSource: [{
|
|
961
|
+
value: 'burger',
|
|
962
|
+
label: '汉堡',
|
|
963
|
+
title: '汉堡'
|
|
964
|
+
}, {
|
|
965
|
+
value: 'pizza',
|
|
966
|
+
label: '披萨',
|
|
967
|
+
title: '披萨'
|
|
968
|
+
}],
|
|
969
|
+
ruleConfig: {
|
|
970
|
+
required: 1
|
|
971
|
+
}
|
|
972
|
+
}, {
|
|
973
|
+
id: 4,
|
|
974
|
+
title: '汉堡定制',
|
|
975
|
+
mode: 'single',
|
|
976
|
+
valueType: 'object',
|
|
977
|
+
fieldNames: {
|
|
978
|
+
value: 'value',
|
|
979
|
+
label: 'label'
|
|
980
|
+
},
|
|
981
|
+
dataSource: [{
|
|
982
|
+
value: 'double-meat',
|
|
983
|
+
label: '加倍牛肉',
|
|
984
|
+
title: '加倍牛肉',
|
|
985
|
+
ruleConfig: {
|
|
986
|
+
min: 1,
|
|
987
|
+
max: 3
|
|
988
|
+
}
|
|
989
|
+
}, {
|
|
990
|
+
value: 'extra-cheese',
|
|
991
|
+
label: '额外芝士',
|
|
992
|
+
title: '额外芝士'
|
|
993
|
+
}],
|
|
994
|
+
item: {
|
|
995
|
+
variant: 'card',
|
|
996
|
+
selectedIcon: /*#__PURE__*/React.createElement(CheckOutlined, null)
|
|
997
|
+
},
|
|
998
|
+
ruleConfig: {
|
|
999
|
+
required: 1
|
|
1000
|
+
}
|
|
1001
|
+
}, {
|
|
1002
|
+
id: 5,
|
|
1003
|
+
title: '披萨定制',
|
|
1004
|
+
mode: 'multiple',
|
|
1005
|
+
valueType: 'object',
|
|
1006
|
+
fieldNames: {
|
|
1007
|
+
value: 'value',
|
|
1008
|
+
label: 'label'
|
|
1009
|
+
},
|
|
1010
|
+
dataSource: [{
|
|
1011
|
+
value: 'extra-cheese',
|
|
1012
|
+
label: '额外芝士',
|
|
1013
|
+
title: '额外芝士',
|
|
1014
|
+
ruleConfig: {
|
|
1015
|
+
min: 1,
|
|
1016
|
+
max: 3
|
|
1017
|
+
}
|
|
1018
|
+
}, {
|
|
1019
|
+
value: 'thin-crust',
|
|
1020
|
+
label: '薄底',
|
|
1021
|
+
title: '薄底'
|
|
1022
|
+
}, {
|
|
1023
|
+
value: 'extra-onion',
|
|
1024
|
+
label: '额外洋葱',
|
|
1025
|
+
title: '额外洋葱'
|
|
1026
|
+
}],
|
|
1027
|
+
variant: 'card',
|
|
1028
|
+
item: {
|
|
1029
|
+
variant: 'card',
|
|
1030
|
+
layout: 'vertical',
|
|
1031
|
+
selectedTypeVariant: 'cornered'
|
|
1032
|
+
},
|
|
1033
|
+
grid: {
|
|
1034
|
+
columns: 3,
|
|
1035
|
+
gutter: 16
|
|
1036
|
+
},
|
|
1037
|
+
ruleConfig: {
|
|
1038
|
+
min: 1,
|
|
1039
|
+
max: 2,
|
|
1040
|
+
required: 1
|
|
1041
|
+
}
|
|
1042
|
+
}];
|
|
1043
|
+
var linkageRules = [{
|
|
1044
|
+
type: 'expr',
|
|
1045
|
+
when: {
|
|
1046
|
+
and: [{
|
|
1047
|
+
groupId: '1',
|
|
1048
|
+
op: 'eq',
|
|
1049
|
+
value: 'burger'
|
|
1050
|
+
}]
|
|
1051
|
+
},
|
|
1052
|
+
then: [{
|
|
1053
|
+
type: 'show',
|
|
1054
|
+
groupId: '4'
|
|
1055
|
+
}],
|
|
1056
|
+
stopAfterApply: true
|
|
1057
|
+
}, {
|
|
1058
|
+
type: 'expr',
|
|
1059
|
+
when: {
|
|
1060
|
+
and: [{
|
|
1061
|
+
groupId: '1',
|
|
1062
|
+
op: 'eq',
|
|
1063
|
+
value: 'pizza'
|
|
1064
|
+
}]
|
|
1065
|
+
},
|
|
1066
|
+
then: [{
|
|
1067
|
+
type: 'show',
|
|
1068
|
+
groupId: '5'
|
|
1069
|
+
}],
|
|
1070
|
+
priority: 10
|
|
1071
|
+
}];
|
|
1072
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
1073
|
+
style: {
|
|
1074
|
+
marginBottom: 16,
|
|
1075
|
+
padding: 12,
|
|
1076
|
+
background: '#e6f7ff',
|
|
1077
|
+
borderRadius: 4
|
|
1078
|
+
}
|
|
1079
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u8054\u52A8\u89C4\u5219\u8BF4\u660E\uFF1A"), /*#__PURE__*/React.createElement("ul", {
|
|
1080
|
+
style: {
|
|
1081
|
+
margin: '8px 0 0 20px',
|
|
1082
|
+
padding: 0
|
|
1083
|
+
}
|
|
1084
|
+
}, /*#__PURE__*/React.createElement("li", null, "\u9009\u62E9\u6C49\u5821\u65F6\u663E\u793A\"\u6C49\u5821\u5B9A\u5236\"\u5206\u7EC4"), /*#__PURE__*/React.createElement("li", null, "\u9009\u62E9\u62AB\u8428\u65F6\u663E\u793A\"\u62AB\u8428\u5B9A\u5236\"\u5206\u7EC4"))), /*#__PURE__*/React.createElement(SelectorGroup, {
|
|
1085
|
+
dataSource: groupDataSource,
|
|
1086
|
+
linkageRules: linkageRules,
|
|
1087
|
+
allowedValuesPolicy: "strict",
|
|
1088
|
+
value: values,
|
|
1089
|
+
onChange: function onChange(v) {
|
|
1090
|
+
setValues(v);
|
|
1091
|
+
console.log('所有分组值:', v);
|
|
1092
|
+
},
|
|
1093
|
+
tabProps: {
|
|
1094
|
+
visible: true
|
|
1095
|
+
}
|
|
1096
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1097
|
+
style: {
|
|
1098
|
+
marginTop: 24,
|
|
1099
|
+
padding: 12,
|
|
1100
|
+
background: '#f5f5f5',
|
|
1101
|
+
borderRadius: 4
|
|
1102
|
+
}
|
|
1103
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u5F53\u524D\u6240\u6709\u5206\u7EC4\u503C\uFF1A"), /*#__PURE__*/React.createElement("pre", null, JSON.stringify(values, null, 2))));
|
|
1104
|
+
}
|
|
1105
|
+
};
|