@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,114 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ExprRule {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface RuleConfig {
|
|
6
|
+
autoValidate?: boolean;
|
|
7
|
+
required?: 0 | 1;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
mutex?: Array<Array<OptionKey>>;
|
|
11
|
+
customValidator?: (value: SelectionValue) => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export interface GroupItem {
|
|
14
|
+
id?: number;
|
|
15
|
+
title?: string;
|
|
16
|
+
mode?: 'single' | 'multiple';
|
|
17
|
+
valueType?: 'primitive' | 'object';
|
|
18
|
+
preserve?: boolean;
|
|
19
|
+
fieldNames?: {
|
|
20
|
+
label?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
};
|
|
23
|
+
ruleConfig?: RuleConfig;
|
|
24
|
+
dataSource?: OptionItem[];
|
|
25
|
+
}
|
|
26
|
+
export interface OptionItem {
|
|
27
|
+
id?: number;
|
|
28
|
+
title?: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
value?: OptionKey;
|
|
31
|
+
groups?: GroupItem[];
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
ruleConfig?: {
|
|
34
|
+
min?: number;
|
|
35
|
+
max?: number;
|
|
36
|
+
};
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
export declare type OptionKey = number | string;
|
|
40
|
+
/** 原始值类型:单选时为id,多选时为id[] */
|
|
41
|
+
export declare type SelectionValuePrimitive<T = OptionKey> = T | T[];
|
|
42
|
+
/** 复杂对象值类型:包含id、数量等额外信息 */
|
|
43
|
+
export interface SelectionValueObject<T = OptionKey> {
|
|
44
|
+
value?: T;
|
|
45
|
+
quantity?: number;
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}
|
|
48
|
+
/** 单选值类型 */
|
|
49
|
+
export declare type SelectionValueSingle<T = OptionKey> = T | SelectionValueObject<T>;
|
|
50
|
+
/** 多选值类型 */
|
|
51
|
+
export declare type SelectionValueMultiple<T = OptionKey> = T[] | SelectionValueObject<T>[];
|
|
52
|
+
/** 选择器值类型 */
|
|
53
|
+
export declare type SelectionValue<T = OptionKey> = SelectionValueSingle<T> | SelectionValueMultiple<T>;
|
|
54
|
+
export declare type GridConfig = {
|
|
55
|
+
align?: 'top' | 'middle' | 'bottom' | 'stretch';
|
|
56
|
+
columns?: number;
|
|
57
|
+
gutter?: number | object | Array<number>;
|
|
58
|
+
justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around';
|
|
59
|
+
wrap?: boolean;
|
|
60
|
+
colConfig?: {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export interface SelectorProps<T = OptionKey> extends GroupItem {
|
|
65
|
+
value?: SelectionValue<T>;
|
|
66
|
+
defaultValue?: SelectionValue<T>;
|
|
67
|
+
onChange?: (value: SelectionValue<T>) => void;
|
|
68
|
+
onClear?: () => void;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
grid?: GridConfig;
|
|
71
|
+
variant?: 'default' | 'select' | 'card';
|
|
72
|
+
renderItem?: (props: any) => React.ReactNode;
|
|
73
|
+
item?: {
|
|
74
|
+
bordered?: boolean;
|
|
75
|
+
layout?: 'vertical' | 'horizontal';
|
|
76
|
+
selectedTypeVariant?: 'default' | 'filled' | 'cornered';
|
|
77
|
+
selectedIcon?: React.ReactNode;
|
|
78
|
+
renderContent?: (props: any) => React.ReactNode;
|
|
79
|
+
style?: React.CSSProperties;
|
|
80
|
+
};
|
|
81
|
+
titleProps?: {
|
|
82
|
+
visible?: boolean;
|
|
83
|
+
style?: React.CSSProperties;
|
|
84
|
+
title?: {
|
|
85
|
+
visible?: boolean;
|
|
86
|
+
text?: React.ReactNode;
|
|
87
|
+
style?: React.CSSProperties;
|
|
88
|
+
};
|
|
89
|
+
icon?: {
|
|
90
|
+
visible?: boolean;
|
|
91
|
+
icon?: React.ReactNode;
|
|
92
|
+
style?: React.CSSProperties;
|
|
93
|
+
};
|
|
94
|
+
tip?: {
|
|
95
|
+
visible?: boolean;
|
|
96
|
+
text?: React.ReactNode;
|
|
97
|
+
style?: React.CSSProperties;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export interface SelectorGroupProps {
|
|
102
|
+
dataSource: GroupItem[];
|
|
103
|
+
linkageRules?: ExprRule[] | Record<string, any>;
|
|
104
|
+
allowedValuesPolicy?: 'relaxed' | 'strict';
|
|
105
|
+
preserve?: boolean;
|
|
106
|
+
value?: Record<string, SelectionValue>;
|
|
107
|
+
defaultValue?: Record<string, SelectionValue>;
|
|
108
|
+
onChange?: (values: Record<string, SelectionValue>) => void;
|
|
109
|
+
tabProps?: {
|
|
110
|
+
visible?: boolean;
|
|
111
|
+
};
|
|
112
|
+
customScrollParent?: HTMLElement;
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SelectionValue, GroupItem } from '../types';
|
|
2
|
+
export declare type OptionEffects = Record<string, {
|
|
3
|
+
allowOnly?: Set<any>;
|
|
4
|
+
requireOneOf?: {
|
|
5
|
+
values: Set<any>;
|
|
6
|
+
message?: string;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export interface Cond {
|
|
10
|
+
groupId: string;
|
|
11
|
+
in?: any[];
|
|
12
|
+
op?: 'in' | 'notIn' | 'eq' | 'neq' | 'contains' | 'range' | 'exists';
|
|
13
|
+
value?: any;
|
|
14
|
+
values?: any[];
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface Expr {
|
|
19
|
+
allOf?: Array<Cond | Expr>;
|
|
20
|
+
anyOf?: Array<Cond | Expr>;
|
|
21
|
+
noneOf?: Array<Cond | Expr>;
|
|
22
|
+
and?: Array<Cond | Expr>;
|
|
23
|
+
or?: Array<Cond | Expr>;
|
|
24
|
+
not?: Array<Cond | Expr>;
|
|
25
|
+
}
|
|
26
|
+
export interface Action {
|
|
27
|
+
type: 'show' | 'allowOnly' | 'requireOneOf';
|
|
28
|
+
groupId: string;
|
|
29
|
+
values?: any[];
|
|
30
|
+
message?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Rule {
|
|
33
|
+
type?: 'expr';
|
|
34
|
+
when?: Expr;
|
|
35
|
+
then?: Action[];
|
|
36
|
+
elseThen?: Action[];
|
|
37
|
+
priority?: number;
|
|
38
|
+
stopAfterApply?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare const normalizeRules: (linkageRules: any) => Rule[];
|
|
41
|
+
export declare const getSelectedSet: (val: SelectionValue) => Set<any>;
|
|
42
|
+
export declare const evaluateExpr: (expr: Expr | undefined, valuesMap: Record<string, SelectionValue>) => boolean;
|
|
43
|
+
export declare const computeAutoHiddenGroups: (rules: Rule[]) => Set<string>;
|
|
44
|
+
export declare const computeEffects: (dataSource?: GroupItem[], rawRules?: Rule[], valuesMap?: Record<string, SelectionValue>) => {
|
|
45
|
+
visibleGroups: Record<string, boolean>;
|
|
46
|
+
optionEffects: OptionEffects;
|
|
47
|
+
};
|
|
48
|
+
export declare const pruneValuesByAllowOnly: (valuesMap: Record<string, SelectionValue>, effects: OptionEffects) => Record<string, SelectionValue>;
|
|
49
|
+
export declare const generateSimpleUUID: () => string;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
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); }
|
|
6
|
+
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); }
|
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
export var normalizeRules = function normalizeRules(linkageRules) {
|
|
14
|
+
if (Array.isArray(linkageRules)) return _toConsumableArray(linkageRules);
|
|
15
|
+
if (linkageRules && _typeof(linkageRules) === 'object') return Object.values(linkageRules);
|
|
16
|
+
return [];
|
|
17
|
+
};
|
|
18
|
+
export var getSelectedSet = function getSelectedSet(val) {
|
|
19
|
+
var result = new Set();
|
|
20
|
+
if (val == null) return result;
|
|
21
|
+
if (Array.isArray(val)) {
|
|
22
|
+
val.forEach(function (item) {
|
|
23
|
+
if (item && _typeof(item) === 'object') {
|
|
24
|
+
if (item.value !== undefined) result.add(item.value);
|
|
25
|
+
} else {
|
|
26
|
+
result.add(item);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
} else if (_typeof(val) === 'object') {
|
|
30
|
+
if (val.value !== undefined) result.add(val.value);
|
|
31
|
+
} else {
|
|
32
|
+
result.add(val);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var evalCond = function evalCond(cond, valuesMap) {
|
|
37
|
+
var _cond$groupId;
|
|
38
|
+
var gid = String((_cond$groupId = cond.groupId) !== null && _cond$groupId !== void 0 ? _cond$groupId : '');
|
|
39
|
+
var selSet = getSelectedSet(valuesMap[gid]);
|
|
40
|
+
var op = function () {
|
|
41
|
+
if (cond.op) return cond.op;
|
|
42
|
+
if (Array.isArray(cond.in)) return 'in';
|
|
43
|
+
return 'in';
|
|
44
|
+
}();
|
|
45
|
+
if (op === 'in') {
|
|
46
|
+
var _ref, _cond$values;
|
|
47
|
+
var arr = (_ref = (_cond$values = cond.values) !== null && _cond$values !== void 0 ? _cond$values : cond.in) !== null && _ref !== void 0 ? _ref : [];
|
|
48
|
+
return arr.some(function (v) {
|
|
49
|
+
return selSet.has(v);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (op === 'notIn') {
|
|
53
|
+
var _ref2, _cond$values2;
|
|
54
|
+
var _arr = (_ref2 = (_cond$values2 = cond.values) !== null && _cond$values2 !== void 0 ? _cond$values2 : cond.in) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
55
|
+
return _arr.every(function (v) {
|
|
56
|
+
return !selSet.has(v);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (op === 'eq' || op === 'contains') {
|
|
60
|
+
return selSet.has(cond.value);
|
|
61
|
+
}
|
|
62
|
+
if (op === 'neq') {
|
|
63
|
+
return !selSet.has(cond.value);
|
|
64
|
+
}
|
|
65
|
+
if (op === 'range') {
|
|
66
|
+
var _cond$min, _cond$max;
|
|
67
|
+
var size = selSet.size;
|
|
68
|
+
var min = (_cond$min = cond.min) !== null && _cond$min !== void 0 ? _cond$min : Number.NEGATIVE_INFINITY;
|
|
69
|
+
var max = (_cond$max = cond.max) !== null && _cond$max !== void 0 ? _cond$max : Number.POSITIVE_INFINITY;
|
|
70
|
+
return size >= min && size <= max;
|
|
71
|
+
}
|
|
72
|
+
if (op === 'exists') {
|
|
73
|
+
return selSet.size > 0;
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
var isCond = function isCond(item) {
|
|
78
|
+
return item.groupId !== undefined;
|
|
79
|
+
};
|
|
80
|
+
export var evaluateExpr = function evaluateExpr(expr, valuesMap) {
|
|
81
|
+
var _expr$allOf, _expr$anyOf, _expr$noneOf;
|
|
82
|
+
if (!expr) return true;
|
|
83
|
+
var allList = (_expr$allOf = expr.allOf) !== null && _expr$allOf !== void 0 ? _expr$allOf : expr.and;
|
|
84
|
+
var anyList = (_expr$anyOf = expr.anyOf) !== null && _expr$anyOf !== void 0 ? _expr$anyOf : expr.or;
|
|
85
|
+
var noneList = (_expr$noneOf = expr.noneOf) !== null && _expr$noneOf !== void 0 ? _expr$noneOf : expr.not;
|
|
86
|
+
var evalItem = function evalItem(item) {
|
|
87
|
+
if (isCond(item)) return evalCond(item, valuesMap);
|
|
88
|
+
return evaluateExpr(item, valuesMap);
|
|
89
|
+
};
|
|
90
|
+
var everyTrue = function everyTrue(list) {
|
|
91
|
+
if (!Array.isArray(list) || list.length === 0) return true;
|
|
92
|
+
return list.every(function (it) {
|
|
93
|
+
return evalItem(it);
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
var someTrue = function someTrue(list) {
|
|
97
|
+
if (!Array.isArray(list) || list.length === 0) return true;
|
|
98
|
+
return list.some(function (it) {
|
|
99
|
+
return evalItem(it);
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
var noneTrue = function noneTrue(list) {
|
|
103
|
+
if (!Array.isArray(list) || list.length === 0) return true;
|
|
104
|
+
return list.every(function (it) {
|
|
105
|
+
return !evalItem(it);
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
var okAll = everyTrue(allList);
|
|
109
|
+
var okAny = someTrue(anyList);
|
|
110
|
+
var okNone = noneTrue(noneList);
|
|
111
|
+
return okAll && okAny && okNone;
|
|
112
|
+
};
|
|
113
|
+
export var computeAutoHiddenGroups = function computeAutoHiddenGroups(rules) {
|
|
114
|
+
var set = new Set();
|
|
115
|
+
rules.forEach(function (rule) {
|
|
116
|
+
var thenActions = Array.isArray(rule === null || rule === void 0 ? void 0 : rule.then) ? rule.then : [];
|
|
117
|
+
var elseActions = Array.isArray(rule === null || rule === void 0 ? void 0 : rule.elseThen) ? rule.elseThen : [];
|
|
118
|
+
var actions = [].concat(_toConsumableArray(thenActions), _toConsumableArray(elseActions));
|
|
119
|
+
actions.forEach(function (act) {
|
|
120
|
+
if ((act === null || act === void 0 ? void 0 : act.type) === 'show') {
|
|
121
|
+
var _act$groupId;
|
|
122
|
+
var gid = String((_act$groupId = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId !== void 0 ? _act$groupId : '');
|
|
123
|
+
if (gid) set.add(gid);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
return set;
|
|
128
|
+
};
|
|
129
|
+
export var computeEffects = function computeEffects() {
|
|
130
|
+
var dataSource = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
131
|
+
var rawRules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
132
|
+
var valuesMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
133
|
+
var autoHiddenGroups = computeAutoHiddenGroups(rawRules);
|
|
134
|
+
var visibleGroups = {};
|
|
135
|
+
(dataSource || []).forEach(function (group) {
|
|
136
|
+
var _group$id;
|
|
137
|
+
var gid = String((_group$id = group.id) !== null && _group$id !== void 0 ? _group$id : '');
|
|
138
|
+
visibleGroups[gid] = autoHiddenGroups.has(gid) ? false : true;
|
|
139
|
+
});
|
|
140
|
+
var optionEffects = {};
|
|
141
|
+
|
|
142
|
+
// 优先级调整:数字越大,优先级越高(越先执行)
|
|
143
|
+
var rules = _toConsumableArray(rawRules).sort(function (a, b) {
|
|
144
|
+
return ((b === null || b === void 0 ? void 0 : b.priority) || 0) - ((a === null || a === void 0 ? void 0 : a.priority) || 0);
|
|
145
|
+
});
|
|
146
|
+
for (var i = 0; i < rules.length; i++) {
|
|
147
|
+
var rule = rules[i];
|
|
148
|
+
var hit = evaluateExpr(rule === null || rule === void 0 ? void 0 : rule.when, valuesMap);
|
|
149
|
+
var actions = hit ? Array.isArray(rule === null || rule === void 0 ? void 0 : rule.then) ? rule.then : [] : Array.isArray(rule === null || rule === void 0 ? void 0 : rule.elseThen) ? rule.elseThen : [];
|
|
150
|
+
actions.forEach(function (act) {
|
|
151
|
+
if ((act === null || act === void 0 ? void 0 : act.type) === 'show') {
|
|
152
|
+
var _act$groupId2;
|
|
153
|
+
var gid = String((_act$groupId2 = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId2 !== void 0 ? _act$groupId2 : '');
|
|
154
|
+
if (gid) {
|
|
155
|
+
visibleGroups[gid] = true;
|
|
156
|
+
}
|
|
157
|
+
} else if ((act === null || act === void 0 ? void 0 : act.type) === 'allowOnly') {
|
|
158
|
+
var _act$groupId3, _optionEffects$_gid;
|
|
159
|
+
var _gid = String((_act$groupId3 = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId3 !== void 0 ? _act$groupId3 : '');
|
|
160
|
+
if (!_gid) return;
|
|
161
|
+
var prev = ((_optionEffects$_gid = optionEffects[_gid]) === null || _optionEffects$_gid === void 0 ? void 0 : _optionEffects$_gid.allowOnly) || new Set();
|
|
162
|
+
var values = (act === null || act === void 0 ? void 0 : act.values) || [];
|
|
163
|
+
var merged = new Set([].concat(_toConsumableArray(prev), _toConsumableArray(values)));
|
|
164
|
+
optionEffects[_gid] = _objectSpread(_objectSpread({}, optionEffects[_gid] || {}), {}, {
|
|
165
|
+
allowOnly: merged
|
|
166
|
+
});
|
|
167
|
+
} else if ((act === null || act === void 0 ? void 0 : act.type) === 'requireOneOf') {
|
|
168
|
+
var _act$groupId4;
|
|
169
|
+
var _gid2 = String((_act$groupId4 = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId4 !== void 0 ? _act$groupId4 : '');
|
|
170
|
+
if (!_gid2) return;
|
|
171
|
+
var _values = new Set((act === null || act === void 0 ? void 0 : act.values) || []);
|
|
172
|
+
optionEffects[_gid2] = _objectSpread(_objectSpread({}, optionEffects[_gid2] || {}), {}, {
|
|
173
|
+
requireOneOf: {
|
|
174
|
+
values: _values,
|
|
175
|
+
message: act === null || act === void 0 ? void 0 : act.message
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
if (hit && rule !== null && rule !== void 0 && rule.stopAfterApply) break;
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
visibleGroups: visibleGroups,
|
|
184
|
+
optionEffects: optionEffects
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
// 根据 allowOnly 规则清理不允许的已选值(可选的硬约束行为)
|
|
189
|
+
export var pruneValuesByAllowOnly = function pruneValuesByAllowOnly(valuesMap, effects) {
|
|
190
|
+
var next = _objectSpread({}, valuesMap);
|
|
191
|
+
Object.keys(effects).forEach(function (gid) {
|
|
192
|
+
var _effects$gid;
|
|
193
|
+
var allowed = (_effects$gid = effects[gid]) === null || _effects$gid === void 0 ? void 0 : _effects$gid.allowOnly;
|
|
194
|
+
if (!allowed || allowed.size === 0) return;
|
|
195
|
+
var current = next[gid];
|
|
196
|
+
if (current == null) return;
|
|
197
|
+
var pruneArray = function pruneArray(arr) {
|
|
198
|
+
return arr.filter(function (item) {
|
|
199
|
+
if (item && _typeof(item) === 'object') {
|
|
200
|
+
return allowed.has(item.value);
|
|
201
|
+
}
|
|
202
|
+
return allowed.has(item);
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
if (Array.isArray(current)) {
|
|
206
|
+
var pruned = pruneArray(current);
|
|
207
|
+
next[gid] = pruned;
|
|
208
|
+
} else if (_typeof(current) === 'object') {
|
|
209
|
+
var hasVal = current.value !== undefined;
|
|
210
|
+
if (hasVal) {
|
|
211
|
+
next[gid] = allowed.has(current.value) ? current : undefined;
|
|
212
|
+
} else {
|
|
213
|
+
next[gid] = current;
|
|
214
|
+
}
|
|
215
|
+
} else {
|
|
216
|
+
next[gid] = allowed.has(current) ? current : undefined;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
return next;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// 简版 UUID v4 生成器
|
|
223
|
+
export var generateSimpleUUID = function generateSimpleUUID() {
|
|
224
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
225
|
+
var r = Math.random() * 16 | 0;
|
|
226
|
+
var v = c === 'x' ? r : r & 0x3 | 0x8;
|
|
227
|
+
return v.toString(16);
|
|
228
|
+
});
|
|
229
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
|
-
'pisell2.comprehensive-search.placeholder': 'WalletPass Code / Name / Mobile / Email',
|
|
3
|
+
'pisell2.comprehensive-search.placeholder': 'WalletPass Code / Name / Mobile / Email / Contact info',
|
|
4
4
|
'pisell2.text.search': 'Search'
|
|
5
5
|
},
|
|
6
6
|
'zh-CN': {
|
|
7
|
-
'pisell2.comprehensive-search.placeholder': '钱包码 / 姓名 / 电话 / 电子邮箱',
|
|
7
|
+
'pisell2.comprehensive-search.placeholder': '钱包码 / 姓名 / 电话 / 电子邮箱 / 联系信息',
|
|
8
8
|
'pisell2.text.search': '搜索'
|
|
9
9
|
},
|
|
10
10
|
'zh-HK': {
|
|
11
|
-
'pisell2.comprehensive-search.placeholder': '錢包碼 / 姓名 / 電話 / 電子郵箱',
|
|
11
|
+
'pisell2.comprehensive-search.placeholder': '錢包碼 / 姓名 / 電話 / 電子郵箱 / 聯繫信息',
|
|
12
12
|
'pisell2.text.search': '搜索'
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -22,7 +22,6 @@ import { useControllableValue } from 'ahooks';
|
|
|
22
22
|
import { merge, omit } from 'lodash';
|
|
23
23
|
//@ts-ignore
|
|
24
24
|
import { locales } from '@pisell/utils';
|
|
25
|
-
import { VirtualInput } from '@pisell/materials';
|
|
26
25
|
import Shortcuts from "../shortcuts";
|
|
27
26
|
import CashKeyboardSimple from "./CashKeyboardSimple";
|
|
28
27
|
import { setKeyboardTheme } from "../../utils";
|
|
@@ -30,6 +29,7 @@ import "./index.less";
|
|
|
30
29
|
import Decimal from 'decimal.js';
|
|
31
30
|
import { AutoResizeText } from '@pisell/materials';
|
|
32
31
|
import { formatAmountWithOptions } from '@pisell/utils';
|
|
32
|
+
import { Iconfont } from '@pisell/materials';
|
|
33
33
|
var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
34
34
|
var _mergedDisplayField$b, _mergedDisplayField$c, _mergedDisplayField$c2;
|
|
35
35
|
var amountSymbol = props.amountSymbol,
|
|
@@ -46,7 +46,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
46
46
|
doneText = props.doneText,
|
|
47
47
|
resetText = props.resetText,
|
|
48
48
|
disabled = props.disabled,
|
|
49
|
-
hiddenChangeDue = props.hiddenChangeDue
|
|
49
|
+
hiddenChangeDue = props.hiddenChangeDue,
|
|
50
|
+
shortcutsSize = props.shortcutsSize;
|
|
50
51
|
var _useControllableValue = useControllableValue(props),
|
|
51
52
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
52
53
|
internalValue = _useControllableValue2[0],
|
|
@@ -69,7 +70,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
69
70
|
setKeyboardTheme(selectType);
|
|
70
71
|
}, [selectType]);
|
|
71
72
|
|
|
72
|
-
// 变体2:末尾有三个默认预设项,总数不大于
|
|
73
|
+
// 变体2:末尾有三个默认预设项,总数不大于7个(因为支付占了 2)
|
|
73
74
|
var getDefaultPresets = function getDefaultPresets() {
|
|
74
75
|
var defaultEndPresets = [{
|
|
75
76
|
label: locales.getText('cash-keyboard-other'),
|
|
@@ -113,7 +114,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
113
114
|
value: 'pay',
|
|
114
115
|
style: {
|
|
115
116
|
color: 'white',
|
|
116
|
-
backgroundColor: '#7F56DA'
|
|
117
|
+
backgroundColor: '#7F56DA',
|
|
118
|
+
gridColumn: 'span 2'
|
|
117
119
|
},
|
|
118
120
|
onClick: function onClick() {
|
|
119
121
|
var _props$onEnter;
|
|
@@ -122,8 +124,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
122
124
|
}];
|
|
123
125
|
var userPresets = presets || [];
|
|
124
126
|
|
|
125
|
-
// 计算可用的用户预设数量(总数
|
|
126
|
-
var maxUserPresets =
|
|
127
|
+
// 计算可用的用户预设数量(总数7 - 默认3个 = 4个)
|
|
128
|
+
var maxUserPresets = 7 - defaultEndPresets.length;
|
|
127
129
|
var limitedUserPresets = userPresets.slice(0, maxUserPresets);
|
|
128
130
|
return [].concat(_toConsumableArray(limitedUserPresets), defaultEndPresets);
|
|
129
131
|
};
|
|
@@ -249,46 +251,52 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
249
251
|
showCurrencySymbol: true
|
|
250
252
|
}))))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
|
|
251
253
|
style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
|
|
252
|
-
padding: '
|
|
254
|
+
padding: '0px 16px',
|
|
253
255
|
borderRadius: '8px',
|
|
254
256
|
backgroundColor: 'white',
|
|
255
|
-
boxShadow: '
|
|
257
|
+
boxShadow: 'inset 0 2px 4px rgba(16, 24, 40, 0.08), inset 0 -2px 4px rgba(16, 24, 40, 0.08), inset 2px 0 4px rgba(16, 24, 40, 0.08), inset -2px 0 4px rgba(16, 24, 40, 0.08)',
|
|
256
258
|
overflow: 'hidden',
|
|
257
259
|
maxWidth: 188,
|
|
258
|
-
cursor: 'pointer'
|
|
260
|
+
cursor: 'pointer',
|
|
261
|
+
border: '1px solid #7f56da',
|
|
262
|
+
borderBottom: '1px solid #7f56da'
|
|
259
263
|
}),
|
|
260
264
|
onClick: function onClick() {
|
|
261
265
|
setIsShowModal(true);
|
|
262
266
|
}
|
|
263
|
-
}, /*#__PURE__*/React.createElement(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
267
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
268
|
+
className: "pisell-cash-keyboard-intact-container-top",
|
|
269
|
+
style: _objectSpread(_objectSpread({}, getGridStyle(0)), {}, {
|
|
270
|
+
overflow: 'hidden',
|
|
271
|
+
padding: '5px 0'
|
|
272
|
+
})
|
|
273
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
274
|
+
className: "pisell-cash-keyboard-intact-container-top-label"
|
|
275
|
+
}, mergedDisplayField.cashReceived.label), /*#__PURE__*/React.createElement("div", {
|
|
276
|
+
className: "pisell-cash-keyboard-intact-container-top-value"
|
|
277
|
+
}, /*#__PURE__*/React.createElement(AutoResizeText, {
|
|
278
|
+
minFontSizePx: 10,
|
|
279
|
+
maxFontSizePx: 18,
|
|
280
|
+
fontSizePrecisionPx: 0.5,
|
|
281
|
+
style: {
|
|
282
|
+
color: '#7f56da',
|
|
283
|
+
textDecoration: 'underline',
|
|
284
|
+
textUnderlineOffset: '3px'
|
|
285
|
+
}
|
|
286
|
+
}, internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
|
|
287
|
+
value: internalValue,
|
|
288
|
+
hideDecimalForWholeNumbers: false,
|
|
289
|
+
precision: 2,
|
|
290
|
+
showCurrencySymbol: true
|
|
291
|
+
}) : ''), /*#__PURE__*/React.createElement(Iconfont, {
|
|
292
|
+
type: "pisell2-edit-05",
|
|
284
293
|
style: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
width: '100%'
|
|
294
|
+
color: '#7f56da',
|
|
295
|
+
fontSize: '18px',
|
|
296
|
+
marginLeft: '4px',
|
|
297
|
+
marginTop: '4px'
|
|
290
298
|
}
|
|
291
|
-
})), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
|
|
299
|
+
})))), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
|
|
292
300
|
className: "pisell-cash-keyboard-intact-container-top",
|
|
293
301
|
style: _objectSpread(_objectSpread({}, getGridStyle(2)), {}, {
|
|
294
302
|
overflow: 'hidden'
|
|
@@ -314,6 +322,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
314
322
|
hideDecimalForWholeNumbers: false,
|
|
315
323
|
precision: 2
|
|
316
324
|
})))))), /*#__PURE__*/React.createElement(Shortcuts, {
|
|
325
|
+
size: shortcutsSize || 'default',
|
|
317
326
|
presets: getDefaultPresets(),
|
|
318
327
|
onChange: setInternalValue,
|
|
319
328
|
disabled: disabled
|
|
@@ -7,6 +7,7 @@ export interface CashKeyboardProps extends CashKeyboardBaseProps {
|
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
9
|
variant?: 'intact' | 'simple';
|
|
10
|
+
shortcutsSize?: 'default' | 'large';
|
|
10
11
|
}
|
|
11
12
|
declare const CashKeyboard: (props: CashKeyboardProps) => React.JSX.Element;
|
|
12
13
|
export default CashKeyboard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["variant", "value", "onChange"];
|
|
1
|
+
var _excluded = ["variant", "value", "onChange", "shortcutsSize"];
|
|
2
2
|
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); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -26,6 +26,7 @@ var CashKeyboard = function CashKeyboard(props) {
|
|
|
26
26
|
variant = _props$variant === void 0 ? 'intact' : _props$variant,
|
|
27
27
|
value = props.value,
|
|
28
28
|
onChange = props.onChange,
|
|
29
|
+
shortcutsSize = props.shortcutsSize,
|
|
29
30
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
30
31
|
var _useControllableValue = useControllableValue(props),
|
|
31
32
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
@@ -36,7 +37,8 @@ var CashKeyboard = function CashKeyboard(props) {
|
|
|
36
37
|
amountSymbol: amountSymbol,
|
|
37
38
|
value: internalValue,
|
|
38
39
|
placeholder: "".concat(amountSymbol, "0"),
|
|
39
|
-
onChange: setInternalValue
|
|
40
|
+
onChange: setInternalValue,
|
|
41
|
+
shortcutsSize: shortcutsSize
|
|
40
42
|
}));
|
|
41
43
|
}
|
|
42
44
|
return /*#__PURE__*/React.createElement(CashKeyboardSimple, _extends({}, otherProps, {
|
|
@@ -46,6 +46,7 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
|
|
|
46
46
|
originalValue = props.originalValue,
|
|
47
47
|
_props$selectType = props.selectType,
|
|
48
48
|
selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
|
|
49
|
+
tips = props.tips,
|
|
49
50
|
resetText = props.resetText,
|
|
50
51
|
doneText = props.doneText,
|
|
51
52
|
onEnter = props.onEnter,
|
|
@@ -309,9 +310,17 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
|
|
|
309
310
|
value: payableAmount
|
|
310
311
|
})))));
|
|
311
312
|
};
|
|
313
|
+
var renderTipsContent = function renderTipsContent() {
|
|
314
|
+
if (tips) {
|
|
315
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
316
|
+
className: "pisell-pro-price-keyboard-tips"
|
|
317
|
+
}, tips);
|
|
318
|
+
}
|
|
319
|
+
return null;
|
|
320
|
+
};
|
|
312
321
|
return /*#__PURE__*/React.createElement("div", {
|
|
313
322
|
className: "pisell-pro-price-keyboard-discount"
|
|
314
|
-
}, /*#__PURE__*/React.createElement(Segmented, {
|
|
323
|
+
}, renderTipsContent(), /*#__PURE__*/React.createElement(Segmented, {
|
|
315
324
|
size: "large",
|
|
316
325
|
style: {
|
|
317
326
|
padding: 6
|
|
@@ -7,6 +7,20 @@
|
|
|
7
7
|
gap: 10px;
|
|
8
8
|
background-color: var(--pisell-pro-price-keyboard-bg-color, #ffffff);
|
|
9
9
|
|
|
10
|
+
.pisell-pro-price-keyboard-tips {
|
|
11
|
+
background-color: var(
|
|
12
|
+
--pisell-pro-price-keyboard-bg-color-gray-200,
|
|
13
|
+
#eaecf0
|
|
14
|
+
);
|
|
15
|
+
color: #ffffff;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
height: 36px;
|
|
19
|
+
line-height: 36px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
10
24
|
.ellipsis {
|
|
11
25
|
overflow: hidden;
|
|
12
26
|
text-overflow: ellipsis;
|
|
@@ -12,6 +12,7 @@ export interface ShortcutsProps {
|
|
|
12
12
|
presets?: ShortcutsItem[];
|
|
13
13
|
onChange?: (val: string) => void;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
size?: 'default' | 'large';
|
|
15
16
|
}
|
|
16
17
|
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ShortcutsProps & React.RefAttributes<HTMLDivElement>>>;
|
|
17
18
|
export default _default;
|