@pisell/private-materials 6.7.9 → 6.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +548 -84
- package/es/components/booking/components/footer/index.js +77 -56
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +194 -73
- package/es/components/booking/components/voucher/index.js +23 -7
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +30 -6
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +16 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +16 -3
- package/es/components/checkout/PaymentModal.d.ts +13 -5
- package/es/components/checkout/PaymentModal.js +304 -252
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +52 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +5 -6
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +6 -0
- package/es/components/checkout/locales.js +6 -0
- package/es/components/checkout/plugin.d.ts +2 -0
- package/es/components/checkout/plugin.js +303 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/list/List.js +99 -56
- package/es/components/list/hooks/useListState.d.ts +5 -3
- package/es/components/list/hooks/useListState.js +10 -2
- package/es/components/list/styles/base.less +4 -0
- package/es/components/list/styles/content.less +1 -1
- package/es/components/list/styles/header.less +4 -4
- package/es/components/list/types.d.ts +1 -0
- package/es/components/list/utils/index.d.ts +13 -1
- package/es/components/list/utils/index.js +43 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/index.js +7 -4
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
- package/es/components/ticketBooking/locales.d.ts +9 -0
- package/es/components/ticketBooking/locales.js +12 -3
- package/es/components/ticketBooking/utils/index.d.ts +3 -0
- package/es/components/ticketBooking/utils/index.js +36 -13
- package/es/components/wallet/Detail/index.js +34 -2
- package/es/components/wallet/Detail/index.less +11 -0
- package/es/components/wallet/Detail/locales.d.ts +6 -0
- package/es/components/wallet/Detail/locales.js +14 -2
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/serve.d.ts +7 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/wallet/utils.js +342 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +6 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
- package/es/plus/productSelect/CategoryTabs/index.js +2 -1
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +7 -3
- package/es/plus/walletPassGallery/serve.d.ts +3 -0
- package/es/plus/walletPassGallery/serve.js +4 -2
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/BatchSelectorDemo.js +470 -0
- package/es/pro/Selector/Selector.d.ts +5 -0
- package/es/pro/Selector/Selector.js +283 -0
- package/es/pro/Selector/SelectorGroup.d.ts +11 -0
- package/es/pro/Selector/SelectorGroup.js +537 -0
- package/es/pro/Selector/components/Card/index.d.ts +27 -0
- package/es/pro/Selector/components/Card/index.js +96 -0
- package/es/pro/Selector/components/Card/index.less +132 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/IntersectionObserver.js +384 -0
- package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
- package/es/pro/Selector/components/NumericStepper/index.js +198 -0
- package/es/pro/Selector/components/NumericStepper/index.less +221 -0
- package/es/pro/Selector/components/index.d.ts +2 -0
- package/es/pro/Selector/components/index.js +2 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/demo.js +158 -0
- package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
- package/es/pro/Selector/hooks/useSelectionController.js +414 -0
- package/es/pro/Selector/index.d.ts +8 -0
- package/es/pro/Selector/index.js +5 -0
- package/es/pro/Selector/locales.d.ts +42 -0
- package/es/pro/Selector/locales.js +80 -0
- package/es/pro/Selector/selector.less +3 -0
- package/es/pro/Selector/selectorGroup.less +8 -0
- package/es/pro/Selector/types.d.ts +114 -0
- package/es/pro/Selector/types.js +1 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/Selector/utils/index.js +229 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +293 -41
- package/lib/components/booking/components/footer/index.js +30 -11
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +138 -41
- package/lib/components/booking/components/voucher/index.js +25 -9
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +25 -5
- package/lib/components/booking/info2/index.js +7 -2
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +12 -3
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/PaymentModal.d.ts +13 -5
- package/lib/components/checkout/PaymentModal.js +190 -147
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +5 -6
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +6 -0
- package/lib/components/checkout/locales.js +6 -0
- package/lib/components/checkout/plugin.d.ts +2 -0
- package/lib/components/checkout/plugin.js +263 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/list/List.js +58 -36
- package/lib/components/list/hooks/useListState.d.ts +5 -3
- package/lib/components/list/hooks/useListState.js +9 -1
- package/lib/components/list/styles/base.less +4 -0
- package/lib/components/list/styles/content.less +1 -1
- package/lib/components/list/styles/header.less +4 -4
- package/lib/components/list/types.d.ts +1 -0
- package/lib/components/list/utils/index.d.ts +13 -1
- package/lib/components/list/utils/index.js +27 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/index.js +4 -1
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.js +48 -0
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/types.js +17 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
- package/lib/components/ticketBooking/locales.d.ts +9 -0
- package/lib/components/ticketBooking/locales.js +12 -3
- package/lib/components/ticketBooking/utils/index.d.ts +3 -0
- package/lib/components/ticketBooking/utils/index.js +20 -6
- package/lib/components/wallet/Detail/index.js +31 -3
- package/lib/components/wallet/Detail/index.less +11 -0
- package/lib/components/wallet/Detail/locales.d.ts +6 -0
- package/lib/components/wallet/Detail/locales.js +14 -2
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/serve.d.ts +7 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/wallet/utils.js +287 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +15 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +7 -3
- package/lib/plus/walletPassGallery/serve.d.ts +3 -0
- package/lib/plus/walletPassGallery/serve.js +3 -2
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
- package/lib/pro/Selector/Selector.d.ts +5 -0
- package/lib/pro/Selector/Selector.js +264 -0
- package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
- package/lib/pro/Selector/SelectorGroup.js +463 -0
- package/lib/pro/Selector/components/Card/index.d.ts +27 -0
- package/lib/pro/Selector/components/Card/index.js +114 -0
- package/lib/pro/Selector/components/Card/index.less +132 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
- package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
- package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
- package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
- package/lib/pro/Selector/components/index.d.ts +2 -0
- package/lib/pro/Selector/components/index.js +42 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/demo.js +102 -0
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
- package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
- package/lib/pro/Selector/index.d.ts +8 -0
- package/lib/pro/Selector/index.js +39 -0
- package/lib/pro/Selector/locales.d.ts +42 -0
- package/lib/pro/Selector/locales.js +80 -0
- package/lib/pro/Selector/selector.less +3 -0
- package/lib/pro/Selector/selectorGroup.less +8 -0
- package/lib/pro/Selector/types.d.ts +114 -0
- package/lib/pro/Selector/types.js +17 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/Selector/utils/index.js +221 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lowcode/payment-modal/meta.ts +135 -0
- package/lowcode/selector/meta.ts +352 -0
- package/lowcode/selector.group/meta.ts +200 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +4 -4
- package/es/components/checkout/PaymentPlugin.d.ts +0 -3
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
- package/lib/components/checkout/PaymentPlugin.js +0 -181
|
@@ -0,0 +1,283 @@
|
|
|
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
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); }
|
|
8
|
+
import React, { useEffect, useImperativeHandle, forwardRef } from 'react';
|
|
9
|
+
import { Radio, Checkbox, Row, Col, Tag, Select } from 'antd';
|
|
10
|
+
import { CheckCircleOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
|
|
11
|
+
import { locales } from '@pisell/utils';
|
|
12
|
+
import localeTexts from "./locales";
|
|
13
|
+
import { CardItem, NumericStepper } from "./components";
|
|
14
|
+
import useSelectionController from "./hooks/useSelectionController";
|
|
15
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
|
16
|
+
import "./selector.less";
|
|
17
|
+
var ARow = Row;
|
|
18
|
+
var ACol = Col;
|
|
19
|
+
var ATag = Tag;
|
|
20
|
+
var Selector = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
21
|
+
var _context$appHelper;
|
|
22
|
+
var disabled = props.disabled,
|
|
23
|
+
titleProps = props.titleProps,
|
|
24
|
+
_props$mode = props.mode,
|
|
25
|
+
mode = _props$mode === void 0 ? 'single' : _props$mode,
|
|
26
|
+
_props$valueType = props.valueType,
|
|
27
|
+
valueType = _props$valueType === void 0 ? 'primitive' : _props$valueType,
|
|
28
|
+
_props$variant = props.variant,
|
|
29
|
+
variant = _props$variant === void 0 ? 'default' : _props$variant,
|
|
30
|
+
grid = props.grid,
|
|
31
|
+
renderItem = props.renderItem,
|
|
32
|
+
itemConfig = props.item,
|
|
33
|
+
ruleConfig = props.ruleConfig,
|
|
34
|
+
fieldNames = props.fieldNames;
|
|
35
|
+
var context = useEngineContext();
|
|
36
|
+
locales.init(localeTexts, (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.storage) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.get('umi_locale')) || 'en');
|
|
37
|
+
var _useSelectionControll = useSelectionController(props),
|
|
38
|
+
state = _useSelectionControll.state,
|
|
39
|
+
actions = _useSelectionControll.actions;
|
|
40
|
+
var options = state.options,
|
|
41
|
+
showQuantity = state.showQuantity,
|
|
42
|
+
errors = state.errors,
|
|
43
|
+
validated = state.validated;
|
|
44
|
+
useImperativeHandle(ref, function () {
|
|
45
|
+
return {
|
|
46
|
+
validate: function validate() {
|
|
47
|
+
return actions.validate();
|
|
48
|
+
},
|
|
49
|
+
getErrors: function getErrors() {
|
|
50
|
+
return errors || [];
|
|
51
|
+
},
|
|
52
|
+
reset: function reset() {
|
|
53
|
+
return actions.reset();
|
|
54
|
+
},
|
|
55
|
+
clear: function clear() {
|
|
56
|
+
return actions.clear();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
useEffect(function () {
|
|
61
|
+
document.body.id = 'body';
|
|
62
|
+
}, []);
|
|
63
|
+
|
|
64
|
+
// 选择指示器
|
|
65
|
+
var renderIndicator = function renderIndicator(option, isDefault) {
|
|
66
|
+
if (mode === 'single') {
|
|
67
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
68
|
+
className: "pisell-selector_radio-trigger",
|
|
69
|
+
checked: option.selected,
|
|
70
|
+
disabled: disabled || option.disabled,
|
|
71
|
+
onChange: function onChange(e) {
|
|
72
|
+
e.stopPropagation();
|
|
73
|
+
if (option.selected) {
|
|
74
|
+
actions.update(option._key, {
|
|
75
|
+
quantity: 0
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
actions.update(option._key, {});
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
children: isDefault ? option._label : undefined
|
|
82
|
+
});
|
|
83
|
+
} else {
|
|
84
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
85
|
+
className: "pisell-selector_checkbox-trigger",
|
|
86
|
+
checked: option.selected,
|
|
87
|
+
disabled: disabled || option.disabled,
|
|
88
|
+
onChange: function onChange(e) {
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
actions.toggle(option._key);
|
|
91
|
+
},
|
|
92
|
+
children: isDefault ? option._label : undefined
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// 数量选择器
|
|
98
|
+
var renderQuantitySelector = function renderQuantitySelector(option) {
|
|
99
|
+
var _option$ruleConfig$mi, _option$ruleConfig, _option$ruleConfig$ma, _option$ruleConfig2;
|
|
100
|
+
if (valueType === 'primitive') return null;
|
|
101
|
+
if (!showQuantity) return null;
|
|
102
|
+
return /*#__PURE__*/React.createElement(NumericStepper, {
|
|
103
|
+
min: (_option$ruleConfig$mi = option === null || option === void 0 || (_option$ruleConfig = option.ruleConfig) === null || _option$ruleConfig === void 0 ? void 0 : _option$ruleConfig.min) !== null && _option$ruleConfig$mi !== void 0 ? _option$ruleConfig$mi : 0,
|
|
104
|
+
max: (_option$ruleConfig$ma = option === null || option === void 0 || (_option$ruleConfig2 = option.ruleConfig) === null || _option$ruleConfig2 === void 0 ? void 0 : _option$ruleConfig2.max) !== null && _option$ruleConfig$ma !== void 0 ? _option$ruleConfig$ma : Number.MAX_SAFE_INTEGER,
|
|
105
|
+
value: option.quantity,
|
|
106
|
+
disabled: disabled || option.disabled,
|
|
107
|
+
onChange: function onChange(value) {
|
|
108
|
+
return actions.update(option._key, {
|
|
109
|
+
quantity: value
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// 单个选项
|
|
116
|
+
var renderOption = function renderOption(option) {
|
|
117
|
+
var optionDisabled = option.disabled;
|
|
118
|
+
var handleClick = function handleClick() {
|
|
119
|
+
if (disabled || optionDisabled) return;
|
|
120
|
+
actions.toggle(option._key);
|
|
121
|
+
};
|
|
122
|
+
if (renderItem) {
|
|
123
|
+
return renderItem({
|
|
124
|
+
dataSource: option,
|
|
125
|
+
actions: actions,
|
|
126
|
+
trigger: renderIndicator(option),
|
|
127
|
+
numberSelector: renderQuantitySelector(option),
|
|
128
|
+
onClick: handleClick
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
if (!variant || variant === 'default') {
|
|
132
|
+
return renderIndicator(option, true);
|
|
133
|
+
}
|
|
134
|
+
var numberSelector = renderQuantitySelector(option);
|
|
135
|
+
var trigger = renderIndicator(option);
|
|
136
|
+
return /*#__PURE__*/React.createElement(CardItem, _extends({}, itemConfig, {
|
|
137
|
+
key: option._key,
|
|
138
|
+
dataSource: option,
|
|
139
|
+
selected: option.selected,
|
|
140
|
+
disabled: disabled || option.disabled,
|
|
141
|
+
trigger: trigger,
|
|
142
|
+
numberSelector: numberSelector,
|
|
143
|
+
onClick: handleClick
|
|
144
|
+
}));
|
|
145
|
+
};
|
|
146
|
+
var renderOptions = function renderOptions() {
|
|
147
|
+
if (variant === 'select' && valueType === 'primitive') {
|
|
148
|
+
var _value = state.values;
|
|
149
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
150
|
+
size: "large",
|
|
151
|
+
style: {
|
|
152
|
+
width: '100%'
|
|
153
|
+
},
|
|
154
|
+
mode: mode === 'multiple' ? 'multiple' : undefined,
|
|
155
|
+
options: options,
|
|
156
|
+
fieldNames: fieldNames,
|
|
157
|
+
value: _value,
|
|
158
|
+
onChange: function onChange(value) {
|
|
159
|
+
return actions.setValue(value);
|
|
160
|
+
},
|
|
161
|
+
disabled: disabled
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
if (grid) {
|
|
165
|
+
var _grid$columns = grid.columns,
|
|
166
|
+
columns = _grid$columns === void 0 ? 1 : _grid$columns,
|
|
167
|
+
align = grid.align,
|
|
168
|
+
_grid$gutter = grid.gutter,
|
|
169
|
+
gutter = _grid$gutter === void 0 ? 16 : _grid$gutter,
|
|
170
|
+
justify = grid.justify,
|
|
171
|
+
wrap = grid.wrap,
|
|
172
|
+
_grid$colConfig = grid.colConfig,
|
|
173
|
+
colConfig = _grid$colConfig === void 0 ? {} : _grid$colConfig;
|
|
174
|
+
return /*#__PURE__*/React.createElement(ARow, {
|
|
175
|
+
gutter: gutter,
|
|
176
|
+
justify: justify,
|
|
177
|
+
align: align,
|
|
178
|
+
wrap: wrap
|
|
179
|
+
}, options.map(function (option) {
|
|
180
|
+
return /*#__PURE__*/React.createElement(ACol, _extends({
|
|
181
|
+
key: option._key,
|
|
182
|
+
span: 24 / columns
|
|
183
|
+
}, colConfig), renderOption(option));
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
187
|
+
style: {
|
|
188
|
+
display: 'flex',
|
|
189
|
+
flexDirection: 'column',
|
|
190
|
+
gap: 16
|
|
191
|
+
}
|
|
192
|
+
}, options.map(renderOption));
|
|
193
|
+
};
|
|
194
|
+
var renderErrorMsg = function renderErrorMsg() {
|
|
195
|
+
if (!(errors !== null && errors !== void 0 && errors.length)) return null;
|
|
196
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
197
|
+
style: {
|
|
198
|
+
color: '#D92D20'
|
|
199
|
+
}
|
|
200
|
+
}, errors[0].message);
|
|
201
|
+
};
|
|
202
|
+
var renderRequiredTag = function renderRequiredTag() {
|
|
203
|
+
var _ref = ruleConfig || {},
|
|
204
|
+
_ref$required = _ref.required,
|
|
205
|
+
required = _ref$required === void 0 ? false : _ref$required;
|
|
206
|
+
if (!required) return null;
|
|
207
|
+
var style = {
|
|
208
|
+
borderRadius: 16
|
|
209
|
+
};
|
|
210
|
+
if (errors.find(function (item) {
|
|
211
|
+
return item.type === 'required';
|
|
212
|
+
})) {
|
|
213
|
+
return /*#__PURE__*/React.createElement(ATag, {
|
|
214
|
+
icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
|
|
215
|
+
color: "error",
|
|
216
|
+
style: style
|
|
217
|
+
}, locales.getText('pisell2.pro.selector.required-tag'));
|
|
218
|
+
}
|
|
219
|
+
if (validated) {
|
|
220
|
+
return /*#__PURE__*/React.createElement(ATag, {
|
|
221
|
+
icon: /*#__PURE__*/React.createElement(CheckCircleOutlined, null),
|
|
222
|
+
color: "success",
|
|
223
|
+
style: style
|
|
224
|
+
}, locales.getText('pisell2.pro.selector.required-tag'));
|
|
225
|
+
}
|
|
226
|
+
return /*#__PURE__*/React.createElement(ATag, {
|
|
227
|
+
style: style
|
|
228
|
+
}, locales.getText('pisell2.pro.selector.required-tag'));
|
|
229
|
+
};
|
|
230
|
+
var renderTip = function renderTip() {
|
|
231
|
+
var _titleProps$tip, _titleProps$tip2, _titleProps$tip3;
|
|
232
|
+
if ((titleProps === null || titleProps === void 0 || (_titleProps$tip = titleProps.tip) === null || _titleProps$tip === void 0 ? void 0 : _titleProps$tip.visible) === false) return null;
|
|
233
|
+
var text = titleProps === null || titleProps === void 0 || (_titleProps$tip2 = titleProps.tip) === null || _titleProps$tip2 === void 0 ? void 0 : _titleProps$tip2.text;
|
|
234
|
+
if (ruleConfig !== null && ruleConfig !== void 0 && ruleConfig.min || ruleConfig !== null && ruleConfig !== void 0 && ruleConfig.max) {
|
|
235
|
+
text = locales.getText('pisell2.pro.selector.validate.min-max-selection')(ruleConfig === null || ruleConfig === void 0 ? void 0 : ruleConfig.min, ruleConfig === null || ruleConfig === void 0 ? void 0 : ruleConfig.max);
|
|
236
|
+
}
|
|
237
|
+
if (!text) {
|
|
238
|
+
if (mode === 'multiple') {
|
|
239
|
+
text = locales.getText('pisell2.pro.selector.mode.multiple');
|
|
240
|
+
} else {
|
|
241
|
+
text = locales.getText('pisell2.pro.selector.mode.single');
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
if (!text) return null;
|
|
245
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
246
|
+
style: _objectSpread({
|
|
247
|
+
color: '#475467'
|
|
248
|
+
}, titleProps === null || titleProps === void 0 || (_titleProps$tip3 = titleProps.tip) === null || _titleProps$tip3 === void 0 ? void 0 : _titleProps$tip3.style)
|
|
249
|
+
}, "(", text, ")");
|
|
250
|
+
};
|
|
251
|
+
var renderTitle = function renderTitle() {
|
|
252
|
+
var _titleProps$icon, _titleProps$icon2, _titleProps$icon3, _titleProps$icon4, _titleProps$title, _titleProps$title2, _titleProps$title3, _titleProps$title$tex, _titleProps$title4;
|
|
253
|
+
if ((titleProps === null || titleProps === void 0 ? void 0 : titleProps.visible) === false) return null;
|
|
254
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
255
|
+
style: _objectSpread({
|
|
256
|
+
marginBottom: 12,
|
|
257
|
+
display: 'flex',
|
|
258
|
+
alignItems: 'center'
|
|
259
|
+
}, (titleProps === null || titleProps === void 0 ? void 0 : titleProps.style) || {})
|
|
260
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
261
|
+
style: {
|
|
262
|
+
display: 'flex',
|
|
263
|
+
alignItems: 'center',
|
|
264
|
+
gap: 8,
|
|
265
|
+
flex: 1
|
|
266
|
+
}
|
|
267
|
+
}, (titleProps === null || titleProps === void 0 || (_titleProps$icon = titleProps.icon) === null || _titleProps$icon === void 0 ? void 0 : _titleProps$icon.visible) === false || !(titleProps !== null && titleProps !== void 0 && (_titleProps$icon2 = titleProps.icon) !== null && _titleProps$icon2 !== void 0 && _titleProps$icon2.icon) ? null : /*#__PURE__*/React.createElement("span", {
|
|
268
|
+
style: titleProps === null || titleProps === void 0 || (_titleProps$icon3 = titleProps.icon) === null || _titleProps$icon3 === void 0 ? void 0 : _titleProps$icon3.style
|
|
269
|
+
}, titleProps === null || titleProps === void 0 || (_titleProps$icon4 = titleProps.icon) === null || _titleProps$icon4 === void 0 ? void 0 : _titleProps$icon4.icon), (titleProps === null || titleProps === void 0 || (_titleProps$title = titleProps.title) === null || _titleProps$title === void 0 ? void 0 : _titleProps$title.visible) === false || !(titleProps !== null && titleProps !== void 0 && (_titleProps$title2 = titleProps.title) !== null && _titleProps$title2 !== void 0 && _titleProps$title2.text) && !props.title ? null : /*#__PURE__*/React.createElement("span", {
|
|
270
|
+
style: _objectSpread({
|
|
271
|
+
fontSize: 16,
|
|
272
|
+
fontWeight: 600
|
|
273
|
+
}, (titleProps === null || titleProps === void 0 || (_titleProps$title3 = titleProps.title) === null || _titleProps$title3 === void 0 ? void 0 : _titleProps$title3.style) || {})
|
|
274
|
+
}, (_titleProps$title$tex = titleProps === null || titleProps === void 0 || (_titleProps$title4 = titleProps.title) === null || _titleProps$title4 === void 0 ? void 0 : _titleProps$title4.text) !== null && _titleProps$title$tex !== void 0 ? _titleProps$title$tex : props.title), renderTip(), renderErrorMsg()), renderRequiredTag());
|
|
275
|
+
};
|
|
276
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
277
|
+
id: "pisell-pro-selector-".concat(props.id),
|
|
278
|
+
style: {
|
|
279
|
+
width: '100%'
|
|
280
|
+
}
|
|
281
|
+
}, renderTitle(), renderOptions());
|
|
282
|
+
});
|
|
283
|
+
export default Selector;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectionValue, SelectorGroupProps } from './types';
|
|
3
|
+
import './selectorGroup.less';
|
|
4
|
+
export declare type SelectorGroupRef = {
|
|
5
|
+
getValues: (includeHidden?: boolean) => Record<string, SelectionValue>;
|
|
6
|
+
setValues: (values: Record<string, SelectionValue>) => void;
|
|
7
|
+
validate: () => Promise<Record<string, never>>;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const SelectorGroup: React.ForwardRefExoticComponent<Omit<SelectorGroupProps, "ref"> & React.RefAttributes<SelectorGroupRef>>;
|
|
11
|
+
export default SelectorGroup;
|