@pisell/private-materials 6.11.60 → 6.11.62
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/checkout/plugin.js +9 -3
- package/es/components/list/hooks/useListState.js +29 -14
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +110 -1
- package/es/plus/orderList/config.d.ts +2 -2
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/checkout/plugin.js +6 -1
- package/lib/components/list/hooks/useListState.js +19 -10
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +70 -1
- package/lib/plus/orderList/config.d.ts +2 -2
- package/package.json +2 -2
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
- package/es/components/booking/addons/index.d.ts +0 -17
- package/es/components/booking/components/footer/amount.d.ts +0 -38
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- package/es/components/booking/components/voucherModal/index.d.ts +0 -19
- package/es/components/booking/dashboard/serve.d.ts +0 -2
- package/es/components/booking/deposit/ClientItem/index.d.ts +0 -18
- package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/es/components/booking/deposit/index.d.ts +0 -2
- package/es/components/booking/forms/forms.d.ts +0 -30
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/hooks/usePromotion.d.ts +0 -301
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/client/serve.d.ts +0 -2
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/header/index.d.ts +0 -3
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/pet/index.d.ts +0 -14
- package/es/components/booking/info/pet/serve.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +0 -34
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -226
- package/es/components/booking/info/utils.d.ts +0 -50
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -19
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/model/index.d.ts +0 -1
- package/es/components/booking/info2/model/strategy/adapter/index.d.ts +0 -7
- package/es/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +0 -185
- package/es/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +0 -420
- package/es/components/booking/info2/model/strategy/adapter/type.d.ts +0 -28
- package/es/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/es/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/es/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/es/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/es/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +0 -165
- package/es/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/es/components/booking/info2/model/strategy/index.d.ts +0 -107
- package/es/components/booking/info2/model/strategy/strategy-example.d.ts +0 -5
- package/es/components/booking/info2/model/strategy/type.d.ts +0 -228
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
- package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/es/components/booking/locales.d.ts +0 -1586
- package/es/components/booking/model.d.ts +0 -121
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/utils/selectHolderModal.d.ts +0 -24
- package/es/components/booking/utils.d.ts +0 -184
- package/es/components/checkout/PaymentProvider.d.ts +0 -13
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -16
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/components/SendPaymentLinkModal/index.d.ts +0 -12
- package/es/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/export.d.ts +0 -9
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/index.d.ts +0 -5
- package/es/components/checkout/locales.d.ts +0 -856
- package/es/components/checkout/payment-modal-utils.d.ts +0 -30
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/checkout/types.d.ts +0 -130
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
- package/es/components/checkout/utils.d.ts +0 -3
- package/es/components/ecocup/cupList/const.d.ts +0 -144
- package/es/components/eftposPay/EFTPos.d.ts +0 -14
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/app.d.ts +0 -10
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/const.d.ts +0 -195
- package/es/components/eftposPay/device.d.ts +0 -25
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/index.d.ts +0 -5
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/locales.d.ts +0 -608
- package/es/components/eftposPay/manufacturer.d.ts +0 -8
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/const.d.ts +0 -26
- package/es/components/eftposPay/serve.d.ts +0 -16
- package/es/components/eftposPay/store/index.d.ts +0 -362
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/locales.d.ts +0 -108
- package/es/components/list/types.d.ts +0 -181
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -19
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -8
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/EFTPOS/index.d.ts +0 -8
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/locales.d.ts +0 -88
- package/es/components/pay/toB/paymentMethods/index.d.ts +0 -11
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/types/index.d.ts +0 -81
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -161
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/model.d.ts +0 -41
- package/es/components/pay/toC/serve.d.ts +0 -82
- package/es/components/pay/toC/utils.d.ts +0 -57
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/hooks/index.d.ts +0 -4
- package/es/components/shoppingCart/locales.d.ts +0 -93
- package/es/components/shoppingCart/mock.d.ts +0 -54
- package/es/components/shoppingCart/server.d.ts +0 -12
- package/es/components/shoppingCart/type.d.ts +0 -59
- package/es/components/shoppingCart/utils.d.ts +0 -192
- package/es/components/subTotal/locales.d.ts +0 -71
- package/es/components/systemSettings/registry/locales.d.ts +0 -525
- package/es/components/systemSettings/registry/types.d.ts +0 -139
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -94
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -11
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -29
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/index.d.ts +0 -23
- package/es/components/ticketBooking/locales.d.ts +0 -340
- package/es/components/ticketBooking/serve.d.ts +0 -289
- package/es/components/ticketBooking/utils/edit.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +0 -104
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/hooks/index.d.ts +0 -10
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/useEngineContext.d.ts +0 -4
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useModal.example.d.ts +0 -12
- package/es/hooks/useModal.integration.example.d.ts +0 -15
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/index.d.ts +0 -91
- package/es/plus/noteModal/locales.d.ts +0 -53
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -21
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -173
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/index.d.ts +0 -54
- package/es/plus/productSelect/ProductCard/utils.d.ts +0 -49
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/es/plus/selectHolder/locales.d.ts +0 -38
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
- package/es/plus/skuOptionsSelection/index.d.ts +0 -5
- package/es/plus/skuOptionsSelection/types.d.ts +0 -445
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/es/plus/webPosLogin/index.d.ts +0 -12
- package/es/plus/webPosLogin/locales.d.ts +0 -92
- package/es/plus/webPosLogin/service.d.ts +0 -44
- package/es/plus/webPosLogin/types.d.ts +0 -288
- package/es/pro/Login2.0/locales.d.ts +0 -903
- package/es/pro/NumberKeyboardPopover/index.d.ts +0 -36
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/es/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +0 -5
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +0 -2
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -12
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/es/pro/priceKeyboard/index.d.ts +0 -3
- package/es/pro/priceKeyboard/utils.d.ts +0 -31
- package/es/pro/skuDetailModal/locales.d.ts +0 -159
- package/es/pro/skuDetailModal/types.d.ts +0 -395
- package/es/pro/skuDetailModal/utils.d.ts +0 -4
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
- package/lib/components/booking/addons/index.d.ts +0 -17
- package/lib/components/booking/components/footer/amount.d.ts +0 -38
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- package/lib/components/booking/components/voucherModal/index.d.ts +0 -19
- package/lib/components/booking/dashboard/serve.d.ts +0 -2
- package/lib/components/booking/deposit/ClientItem/index.d.ts +0 -18
- package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/lib/components/booking/deposit/index.d.ts +0 -2
- package/lib/components/booking/forms/forms.d.ts +0 -30
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/hooks/usePromotion.d.ts +0 -301
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/client/serve.d.ts +0 -2
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/header/index.d.ts +0 -3
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/pet/index.d.ts +0 -14
- package/lib/components/booking/info/pet/serve.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -34
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -226
- package/lib/components/booking/info/utils.d.ts +0 -50
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -19
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/model/index.d.ts +0 -1
- package/lib/components/booking/info2/model/strategy/adapter/index.d.ts +0 -7
- package/lib/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +0 -185
- package/lib/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +0 -420
- package/lib/components/booking/info2/model/strategy/adapter/type.d.ts +0 -28
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +0 -165
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/lib/components/booking/info2/model/strategy/index.d.ts +0 -107
- package/lib/components/booking/info2/model/strategy/strategy-example.d.ts +0 -5
- package/lib/components/booking/info2/model/strategy/type.d.ts +0 -228
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/lib/components/booking/locales.d.ts +0 -1586
- package/lib/components/booking/model.d.ts +0 -121
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/utils/selectHolderModal.d.ts +0 -24
- package/lib/components/booking/utils.d.ts +0 -184
- package/lib/components/checkout/PaymentProvider.d.ts +0 -13
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -16
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/components/SendPaymentLinkModal/index.d.ts +0 -12
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/export.d.ts +0 -9
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/index.d.ts +0 -5
- package/lib/components/checkout/locales.d.ts +0 -856
- package/lib/components/checkout/payment-modal-utils.d.ts +0 -30
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/checkout/types.d.ts +0 -130
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
- package/lib/components/checkout/utils.d.ts +0 -3
- package/lib/components/ecocup/cupList/const.d.ts +0 -144
- package/lib/components/eftposPay/EFTPos.d.ts +0 -14
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/app.d.ts +0 -10
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/const.d.ts +0 -195
- package/lib/components/eftposPay/device.d.ts +0 -25
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/index.d.ts +0 -5
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/locales.d.ts +0 -608
- package/lib/components/eftposPay/manufacturer.d.ts +0 -8
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/const.d.ts +0 -26
- package/lib/components/eftposPay/serve.d.ts +0 -16
- package/lib/components/eftposPay/store/index.d.ts +0 -362
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/locales.d.ts +0 -108
- package/lib/components/list/types.d.ts +0 -181
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -19
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -8
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/EFTPOS/index.d.ts +0 -8
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/locales.d.ts +0 -88
- package/lib/components/pay/toB/paymentMethods/index.d.ts +0 -11
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/types/index.d.ts +0 -81
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -161
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/model.d.ts +0 -41
- package/lib/components/pay/toC/serve.d.ts +0 -82
- package/lib/components/pay/toC/utils.d.ts +0 -57
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/index.d.ts +0 -4
- package/lib/components/shoppingCart/locales.d.ts +0 -93
- package/lib/components/shoppingCart/mock.d.ts +0 -54
- package/lib/components/shoppingCart/server.d.ts +0 -12
- package/lib/components/shoppingCart/type.d.ts +0 -59
- package/lib/components/shoppingCart/utils.d.ts +0 -192
- package/lib/components/subTotal/locales.d.ts +0 -71
- package/lib/components/systemSettings/registry/locales.d.ts +0 -525
- package/lib/components/systemSettings/registry/types.d.ts +0 -139
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -94
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -11
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -29
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/index.d.ts +0 -23
- package/lib/components/ticketBooking/locales.d.ts +0 -340
- package/lib/components/ticketBooking/serve.d.ts +0 -289
- package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +0 -104
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/hooks/index.d.ts +0 -10
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/hooks/useEngineContext.d.ts +0 -4
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useModal.example.d.ts +0 -12
- package/lib/hooks/useModal.integration.example.d.ts +0 -15
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/index.d.ts +0 -91
- package/lib/plus/noteModal/locales.d.ts +0 -53
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -21
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -173
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/index.d.ts +0 -54
- package/lib/plus/productSelect/ProductCard/utils.d.ts +0 -49
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/lib/plus/selectHolder/locales.d.ts +0 -38
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
- package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -445
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/lib/plus/webPosLogin/index.d.ts +0 -12
- package/lib/plus/webPosLogin/locales.d.ts +0 -92
- package/lib/plus/webPosLogin/service.d.ts +0 -44
- package/lib/plus/webPosLogin/types.d.ts +0 -288
- package/lib/pro/Login2.0/locales.d.ts +0 -903
- package/lib/pro/NumberKeyboardPopover/index.d.ts +0 -36
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/lib/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +0 -5
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +0 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -12
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/lib/pro/priceKeyboard/index.d.ts +0 -3
- package/lib/pro/priceKeyboard/utils.d.ts +0 -31
- package/lib/pro/skuDetailModal/locales.d.ts +0 -159
- package/lib/pro/skuDetailModal/types.d.ts +0 -395
- package/lib/pro/skuDetailModal/utils.d.ts +0 -4
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface NumberKeyboardPopoverProps {
|
|
4
|
-
/** 触发元素 */
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** 当前值 */
|
|
7
|
-
value?: string;
|
|
8
|
-
/** 值变化回调 */
|
|
9
|
-
onChange?: (value: string) => void;
|
|
10
|
-
/** 确认回调 */
|
|
11
|
-
onConfirm?: (value: string) => void;
|
|
12
|
-
/** 取消回调 */
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
/** 是否允许小数 */
|
|
15
|
-
allowDecimal?: boolean;
|
|
16
|
-
/** 小数位数 */
|
|
17
|
-
decimalPlaces?: number;
|
|
18
|
-
/** 键盘主题 */
|
|
19
|
-
selectType?: 'light' | 'dark';
|
|
20
|
-
/** 是否禁用 */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/** Popover 额外的类名 */
|
|
23
|
-
overlayClassName?: string;
|
|
24
|
-
max?: number;
|
|
25
|
-
maxLength?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface NumberKeyboardPopoverRef {
|
|
28
|
-
/** 打开键盘 */
|
|
29
|
-
open: () => void;
|
|
30
|
-
/** 关闭键盘 */
|
|
31
|
-
close: () => void;
|
|
32
|
-
/** 获取当前是否打开 */
|
|
33
|
-
isOpen: () => boolean;
|
|
34
|
-
}
|
|
35
|
-
declare const NumberKeyboardPopover: React.ForwardRefExoticComponent<NumberKeyboardPopoverProps & React.RefAttributes<NumberKeyboardPopoverRef>>;
|
|
36
|
-
export default NumberKeyboardPopover;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface NumberKeyboardPopoverProps {
|
|
3
|
-
/** 触发元素 */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** 当前值 */
|
|
6
|
-
value?: string;
|
|
7
|
-
/** 值变化回调 */
|
|
8
|
-
onChange?: (value: string) => void;
|
|
9
|
-
/** 确认回调 */
|
|
10
|
-
onConfirm?: (value: string) => void;
|
|
11
|
-
/** 取消回调 */
|
|
12
|
-
onCancel?: () => void;
|
|
13
|
-
/** 是否允许小数 */
|
|
14
|
-
allowDecimal?: boolean;
|
|
15
|
-
/** 小数位数 */
|
|
16
|
-
decimalPlaces?: number;
|
|
17
|
-
/** 键盘主题 */
|
|
18
|
-
selectType?: 'light' | 'dark';
|
|
19
|
-
/** 是否禁用 */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Popover 额外的类名 */
|
|
22
|
-
overlayClassName?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface NumberKeyboardPopoverRef {
|
|
25
|
-
/** 打开键盘 */
|
|
26
|
-
open: () => void;
|
|
27
|
-
/** 关闭键盘 */
|
|
28
|
-
close: () => void;
|
|
29
|
-
/** 获取当前是否打开 */
|
|
30
|
-
isOpen: () => boolean;
|
|
31
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LayoutConfig, ItemLayout, PresetConfig, SelectorVariant, SelectorProps } from '../types';
|
|
2
|
-
interface UsePresetPropsParams {
|
|
3
|
-
layout?: LayoutConfig;
|
|
4
|
-
mode?: 'single' | 'multiple';
|
|
5
|
-
preset?: PresetConfig;
|
|
6
|
-
itemLayout?: ItemLayout;
|
|
7
|
-
variant?: SelectorVariant;
|
|
8
|
-
indicatorProps?: SelectorProps['indicatorProps'];
|
|
9
|
-
}
|
|
10
|
-
interface UsePresetPropsResult {
|
|
11
|
-
layout: LayoutConfig | null;
|
|
12
|
-
indicatorProps: SelectorProps['indicatorProps'];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 根据预设配置生成 layout 和 indicatorProps
|
|
16
|
-
* Layout 规则:
|
|
17
|
-
* - 根据 variant 和 preset.variant 计算布局样式
|
|
18
|
-
* IndicatorProps 规则:
|
|
19
|
-
* 1. 当 variant='card' 且 preset.variant='2' 时,indicator 默认 variant='filled'
|
|
20
|
-
* 2. 当 variant='media' 时,indicator 默认 variant='filled'
|
|
21
|
-
* 3. 外部传入的 indicatorProps 优先级更高(会合并到预设配置中)
|
|
22
|
-
*/
|
|
23
|
-
declare const usePresetProps: ({ layout, mode, preset, itemLayout, variant, indicatorProps, }: UsePresetPropsParams) => UsePresetPropsResult;
|
|
24
|
-
export default usePresetProps;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Dayjs } from 'dayjs';
|
|
2
|
-
export interface MultiDayTimeSelectValue {
|
|
3
|
-
startDate: Dayjs;
|
|
4
|
-
endDate: Dayjs;
|
|
5
|
-
duration: number;
|
|
6
|
-
}
|
|
7
|
-
export interface MultiDayTimeSelectProps {
|
|
8
|
-
/** 最大天数,默认30天 */
|
|
9
|
-
maxDays?: number;
|
|
10
|
-
/** 默认开始时间 */
|
|
11
|
-
defaultStartDate?: Dayjs;
|
|
12
|
-
/** 开始时间和结束时间是否分离,false使用RangePicker,true使用两个独立的DatePicker */
|
|
13
|
-
separateStartEnd?: boolean;
|
|
14
|
-
/** 受控值 */
|
|
15
|
-
value?: MultiDayTimeSelectValue;
|
|
16
|
-
/** 值变化回调 */
|
|
17
|
-
onChange?: (value: MultiDayTimeSelectValue) => void;
|
|
18
|
-
/** 语言环境 */
|
|
19
|
-
locale?: string;
|
|
20
|
-
/** 是否禁用 */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/** 开始日期标签 */
|
|
23
|
-
startDateLabel?: string;
|
|
24
|
-
/** 结束日期标签 */
|
|
25
|
-
endDateLabel?: string;
|
|
26
|
-
/** 时长标签 */
|
|
27
|
-
durationLabel?: string;
|
|
28
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface PisellPriceKeyboardModalProps {
|
|
3
|
-
/** 是否显示键盘 */
|
|
4
|
-
visible?: boolean;
|
|
5
|
-
/** 当前价格值 */
|
|
6
|
-
value?: string | number;
|
|
7
|
-
/** 价格变化回调(合并了 onChange 和 onEnter) */
|
|
8
|
-
onChange?: (value: string | number) => void;
|
|
9
|
-
/** 关闭键盘回调 */
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
/** 触发元素的 ref,用于计算位置 */
|
|
12
|
-
triggerRef?: React.RefObject<HTMLElement>;
|
|
13
|
-
/** 货币符号显示 */
|
|
14
|
-
showCurrencySymbol?: boolean;
|
|
15
|
-
/** 是否使用千分位分隔符 */
|
|
16
|
-
useThousandsSeparator?: boolean;
|
|
17
|
-
/** 自定义类名 */
|
|
18
|
-
className?: string;
|
|
19
|
-
/** 自定义样式 */
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
}
|
|
22
|
-
export interface KeyboardPosition {
|
|
23
|
-
top: number;
|
|
24
|
-
left: number;
|
|
25
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellPriceKeyboardPopover.less';
|
|
3
|
-
import { PisellPriceKeyboardPopoverProps, PisellPriceKeyboardPopoverRef } from './types';
|
|
4
|
-
declare const PisellPriceKeyboardPopover: React.ForwardRefExoticComponent<PisellPriceKeyboardPopoverProps & React.RefAttributes<PisellPriceKeyboardPopoverRef>>;
|
|
5
|
-
export default PisellPriceKeyboardPopover;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface PisellPriceKeyboardPopoverProps {
|
|
3
|
-
/** 触发元素 */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** 当前价格值 */
|
|
6
|
-
value?: string | number;
|
|
7
|
-
/** 价格变化回调(合并了 onChange 和 onEnter) */
|
|
8
|
-
onChange?: (value: string | number) => void;
|
|
9
|
-
/** 确认回调 */
|
|
10
|
-
onConfirm?: (value: string | number) => void;
|
|
11
|
-
/** 取消回调 */
|
|
12
|
-
onCancel?: () => void;
|
|
13
|
-
/** 货币符号显示 */
|
|
14
|
-
showCurrencySymbol?: boolean;
|
|
15
|
-
/** 是否使用千分位分隔符 */
|
|
16
|
-
useThousandsSeparator?: boolean;
|
|
17
|
-
/** 键盘主题 */
|
|
18
|
-
selectType?: 'light' | 'dark';
|
|
19
|
-
/** 是否禁用 */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Popover 额外的类名 */
|
|
22
|
-
overlayClassName?: string;
|
|
23
|
-
/** 自定义样式 */
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
}
|
|
26
|
-
export interface PisellPriceKeyboardPopoverRef {
|
|
27
|
-
/** 打开键盘 */
|
|
28
|
-
open: () => void;
|
|
29
|
-
/** 关闭键盘 */
|
|
30
|
-
close: () => void;
|
|
31
|
-
/** 获取当前是否打开 */
|
|
32
|
-
isOpen: () => boolean;
|
|
33
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface PisellPriceKeyboardPopoverProps {
|
|
3
|
-
/** 触发元素 */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** 当前价格值 */
|
|
6
|
-
value?: string | number;
|
|
7
|
-
/** 价格变化回调(合并了 onChange 和 onEnter) */
|
|
8
|
-
onChange?: (value: string | number) => void;
|
|
9
|
-
/** 确认回调 */
|
|
10
|
-
onConfirm?: (value: string | number) => void;
|
|
11
|
-
/** 取消回调 */
|
|
12
|
-
onCancel?: () => void;
|
|
13
|
-
/** 货币符号显示 */
|
|
14
|
-
showCurrencySymbol?: boolean;
|
|
15
|
-
/** 是否使用千分位分隔符 */
|
|
16
|
-
useThousandsSeparator?: boolean;
|
|
17
|
-
/** 键盘主题 */
|
|
18
|
-
selectType?: 'light' | 'dark';
|
|
19
|
-
/** 是否禁用 */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Popover 额外的类名 */
|
|
22
|
-
overlayClassName?: string;
|
|
23
|
-
/** 自定义样式 */
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
}
|
|
26
|
-
export interface PisellPriceKeyboardPopoverRef {
|
|
27
|
-
/** 打开键盘 */
|
|
28
|
-
open: () => void;
|
|
29
|
-
/** 关闭键盘 */
|
|
30
|
-
close: () => void;
|
|
31
|
-
/** 获取当前是否打开 */
|
|
32
|
-
isOpen: () => boolean;
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CashKeyboardBaseProps } from './types';
|
|
2
|
-
export interface CashKeyboardProps extends CashKeyboardBaseProps {
|
|
3
|
-
containerProps?: {
|
|
4
|
-
renderType: 'modal' | 'popover';
|
|
5
|
-
open: boolean;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
variant?: 'intact' | 'simple';
|
|
9
|
-
shortcutsSize?: 'default' | 'large';
|
|
10
|
-
}
|
|
11
|
-
declare const CashKeyboard: (props: CashKeyboardProps) => JSX.Element;
|
|
12
|
-
export default CashKeyboard;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'cash-keyboard-title': string;
|
|
4
|
-
'cash-keyboard-balance-due': string;
|
|
5
|
-
'cash-keyboard-cash-received': string;
|
|
6
|
-
'cash-keyboard-change-due': string;
|
|
7
|
-
'cash-keyboard-rounding': string;
|
|
8
|
-
'cash-keyboard-other': string;
|
|
9
|
-
'cash-keyboard-reset': string;
|
|
10
|
-
'cash-keyboard-done': string;
|
|
11
|
-
'cash-keyboard-pay': string;
|
|
12
|
-
'cash-keyboard-amount-cannot-be-zero': string;
|
|
13
|
-
};
|
|
14
|
-
'zh-CN': {
|
|
15
|
-
'cash-keyboard-title': string;
|
|
16
|
-
'cash-keyboard-balance-due': string;
|
|
17
|
-
'cash-keyboard-cash-received': string;
|
|
18
|
-
'cash-keyboard-change-due': string;
|
|
19
|
-
'cash-keyboard-rounding': string;
|
|
20
|
-
'cash-keyboard-other': string;
|
|
21
|
-
'cash-keyboard-reset': string;
|
|
22
|
-
'cash-keyboard-done': string;
|
|
23
|
-
'cash-keyboard-pay': string;
|
|
24
|
-
'cash-keyboard-amount-cannot-be-zero': string;
|
|
25
|
-
};
|
|
26
|
-
'zh-HK': {
|
|
27
|
-
'cash-keyboard-title': string;
|
|
28
|
-
'cash-keyboard-balance-due': string;
|
|
29
|
-
'cash-keyboard-cash-received': string;
|
|
30
|
-
'cash-keyboard-change-due': string;
|
|
31
|
-
'cash-keyboard-rounding': string;
|
|
32
|
-
'cash-keyboard-other': string;
|
|
33
|
-
'cash-keyboard-reset': string;
|
|
34
|
-
'cash-keyboard-done': string;
|
|
35
|
-
'cash-keyboard-pay': string;
|
|
36
|
-
'cash-keyboard-amount-cannot-be-zero': string;
|
|
37
|
-
};
|
|
38
|
-
ja: {
|
|
39
|
-
'cash-keyboard-title': string;
|
|
40
|
-
'cash-keyboard-balance-due': string;
|
|
41
|
-
'cash-keyboard-cash-received': string;
|
|
42
|
-
'cash-keyboard-change-due': string;
|
|
43
|
-
'cash-keyboard-rounding': string;
|
|
44
|
-
'cash-keyboard-other': string;
|
|
45
|
-
'cash-keyboard-reset': string;
|
|
46
|
-
'cash-keyboard-done': string;
|
|
47
|
-
'cash-keyboard-pay': string;
|
|
48
|
-
'cash-keyboard-amount-cannot-be-zero': string;
|
|
49
|
-
};
|
|
50
|
-
pt: {
|
|
51
|
-
'cash-keyboard-title': string;
|
|
52
|
-
'cash-keyboard-balance-due': string;
|
|
53
|
-
'cash-keyboard-cash-received': string;
|
|
54
|
-
'cash-keyboard-change-due': string;
|
|
55
|
-
'cash-keyboard-rounding': string;
|
|
56
|
-
'cash-keyboard-other': string;
|
|
57
|
-
'cash-keyboard-reset': string;
|
|
58
|
-
'cash-keyboard-done': string;
|
|
59
|
-
'cash-keyboard-pay': string;
|
|
60
|
-
'cash-keyboard-amount-cannot-be-zero': string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export default _default;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface RightItemsStyleProps {
|
|
3
|
-
buttonBackgroundColor?: string;
|
|
4
|
-
textColor?: string;
|
|
5
|
-
resetButtonBackgroundColor?: string;
|
|
6
|
-
resetButtonTextColor?: string;
|
|
7
|
-
isDoneButtonFollowTheme?: boolean;
|
|
8
|
-
doneButtonBackgroundColor?: string;
|
|
9
|
-
doneButtonTextColor?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type ItemValue = string | number;
|
|
12
|
-
export interface Item {
|
|
13
|
-
value: ItemValue;
|
|
14
|
-
label: React.ReactNode;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
type: 'text' | 'primary';
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
size?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface KeyboardProps {
|
|
21
|
-
className?: string;
|
|
22
|
-
style?: React.CSSProperties;
|
|
23
|
-
onChange?: (value?: ItemValue) => void;
|
|
24
|
-
items?: Item[];
|
|
25
|
-
rightItems?: Item[];
|
|
26
|
-
keydown?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface TitleAreaConfig {
|
|
29
|
-
visible?: boolean;
|
|
30
|
-
title?: {
|
|
31
|
-
visible?: boolean;
|
|
32
|
-
text?: string;
|
|
33
|
-
fontSize?: string | number;
|
|
34
|
-
color?: string;
|
|
35
|
-
fontWeight?: string | number;
|
|
36
|
-
};
|
|
37
|
-
subtitle?: {
|
|
38
|
-
visible?: boolean;
|
|
39
|
-
text?: string;
|
|
40
|
-
fontSize?: string | number;
|
|
41
|
-
color?: string;
|
|
42
|
-
fontWeight?: string | number;
|
|
43
|
-
};
|
|
44
|
-
alignment?: 'left' | 'right' | 'center' | 'space-between';
|
|
45
|
-
spacing?: string | number;
|
|
46
|
-
}
|
|
47
|
-
export interface DisplayFieldConfig {
|
|
48
|
-
cashReceived?: {
|
|
49
|
-
visible?: boolean;
|
|
50
|
-
};
|
|
51
|
-
balanceDue?: {
|
|
52
|
-
visible?: boolean;
|
|
53
|
-
};
|
|
54
|
-
changeDue?: {
|
|
55
|
-
visible?: boolean;
|
|
56
|
-
};
|
|
57
|
-
gridRatio?: number[];
|
|
58
|
-
}
|
|
59
|
-
export interface CashKeyboardBaseProps {
|
|
60
|
-
amountSymbol?: string;
|
|
61
|
-
value?: string;
|
|
62
|
-
/** 默认值,非受控模式 */
|
|
63
|
-
defaultValue?: string;
|
|
64
|
-
/** 原始值,多用于重置, 当前对应 Balance Due */
|
|
65
|
-
originalValue?: string;
|
|
66
|
-
placeholder?: string;
|
|
67
|
-
max?: number;
|
|
68
|
-
min?: number;
|
|
69
|
-
disabled?: boolean;
|
|
70
|
-
doneText?: string;
|
|
71
|
-
resetText?: string;
|
|
72
|
-
presets?: any;
|
|
73
|
-
hiddenChangeDue?: boolean;
|
|
74
|
-
onChange?: (val: string) => void;
|
|
75
|
-
onEnter?: (val: string) => void;
|
|
76
|
-
onReset?: () => void;
|
|
77
|
-
onPay?: () => void;
|
|
78
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
79
|
-
titleArea?: TitleAreaConfig;
|
|
80
|
-
displayField?: DisplayFieldConfig;
|
|
81
|
-
keyboardProps?: KeyboardProps;
|
|
82
|
-
style?: React.CSSProperties;
|
|
83
|
-
selectType?: 'light' | 'dark';
|
|
84
|
-
backgroundColor?: string;
|
|
85
|
-
containerBackgroundColor?: string;
|
|
86
|
-
buttonBackgroundColor?: string;
|
|
87
|
-
textColor?: string;
|
|
88
|
-
resetButtonBackgroundColor?: string;
|
|
89
|
-
resetButtonTextColor?: string;
|
|
90
|
-
isDoneButtonFollowTheme?: boolean;
|
|
91
|
-
doneButtonBackgroundColor?: string;
|
|
92
|
-
doneButtonTextColor?: string;
|
|
93
|
-
keyboardBackgroundColor?: string;
|
|
94
|
-
keyboardButtonBackgroundColor?: string;
|
|
95
|
-
keyboardButtonTextColor?: string;
|
|
96
|
-
keyboardButtonHoverColor?: string;
|
|
97
|
-
shortcutsSize?: 'default' | 'large';
|
|
98
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'discount-keyboard-price-override': string;
|
|
4
|
-
'discount-keyboard-discount': string;
|
|
5
|
-
'discount-keyboard-amount': string;
|
|
6
|
-
'discount-keyboard-percentage': string;
|
|
7
|
-
'discount-keyboard-max-discount': string;
|
|
8
|
-
'discount-keyboard-discount-amount': string;
|
|
9
|
-
'discount-keyboard-total': string;
|
|
10
|
-
'discount-keyboard-payable': string;
|
|
11
|
-
'discount-keyboard-reset': string;
|
|
12
|
-
'discount-keyboard-done': string;
|
|
13
|
-
'discount-keyboard-pay': string;
|
|
14
|
-
};
|
|
15
|
-
'zh-CN': {
|
|
16
|
-
'discount-keyboard-price-override': string;
|
|
17
|
-
'discount-keyboard-discount': string;
|
|
18
|
-
'discount-keyboard-amount': string;
|
|
19
|
-
'discount-keyboard-percentage': string;
|
|
20
|
-
'discount-keyboard-max-discount': string;
|
|
21
|
-
'discount-keyboard-discount-amount': string;
|
|
22
|
-
'discount-keyboard-total': string;
|
|
23
|
-
'discount-keyboard-payable': string;
|
|
24
|
-
'discount-keyboard-reset': string;
|
|
25
|
-
'discount-keyboard-done': string;
|
|
26
|
-
'discount-keyboard-pay': string;
|
|
27
|
-
};
|
|
28
|
-
'zh-HK': {
|
|
29
|
-
'discount-keyboard-price-override': string;
|
|
30
|
-
'discount-keyboard-discount': string;
|
|
31
|
-
'discount-keyboard-amount': string;
|
|
32
|
-
'discount-keyboard-percentage': string;
|
|
33
|
-
'discount-keyboard-max-discount': string;
|
|
34
|
-
'discount-keyboard-discount-amount': string;
|
|
35
|
-
'discount-keyboard-total': string;
|
|
36
|
-
'discount-keyboard-payable': string;
|
|
37
|
-
'discount-keyboard-reset': string;
|
|
38
|
-
'discount-keyboard-done': string;
|
|
39
|
-
'discount-keyboard-pay': string;
|
|
40
|
-
};
|
|
41
|
-
ja: {
|
|
42
|
-
'discount-keyboard-price-override': string;
|
|
43
|
-
'discount-keyboard-discount': string;
|
|
44
|
-
'discount-keyboard-amount': string;
|
|
45
|
-
'discount-keyboard-percentage': string;
|
|
46
|
-
'discount-keyboard-max-discount': string;
|
|
47
|
-
'discount-keyboard-discount-amount': string;
|
|
48
|
-
'discount-keyboard-total': string;
|
|
49
|
-
'discount-keyboard-payable': string;
|
|
50
|
-
'discount-keyboard-reset': string;
|
|
51
|
-
'discount-keyboard-done': string;
|
|
52
|
-
'discount-keyboard-pay': string;
|
|
53
|
-
};
|
|
54
|
-
pt: {
|
|
55
|
-
'discount-keyboard-price-override': string;
|
|
56
|
-
'discount-keyboard-discount': string;
|
|
57
|
-
'discount-keyboard-amount': string;
|
|
58
|
-
'discount-keyboard-percentage': string;
|
|
59
|
-
'discount-keyboard-max-discount': string;
|
|
60
|
-
'discount-keyboard-discount-amount': string;
|
|
61
|
-
'discount-keyboard-total': string;
|
|
62
|
-
'discount-keyboard-payable': string;
|
|
63
|
-
'discount-keyboard-reset': string;
|
|
64
|
-
'discount-keyboard-done': string;
|
|
65
|
-
'discount-keyboard-pay': string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface DiscountKeyboardBaseProps {
|
|
2
|
-
/** 金额符 */
|
|
3
|
-
amountSymbol?: string;
|
|
4
|
-
/** 初始值,多用于展示及计算,不同于原始值 */
|
|
5
|
-
defaultValue?: string | number;
|
|
6
|
-
/** 原始值,多用于重置 */
|
|
7
|
-
originalValue?: string | number;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
doneText?: string;
|
|
10
|
-
resetText?: string;
|
|
11
|
-
/** 键盘主题 */
|
|
12
|
-
selectType?: 'light' | 'dark';
|
|
13
|
-
onEnter?: (val: string) => void;
|
|
14
|
-
onReset?: () => void;
|
|
15
|
-
onChange?: (val: string) => void;
|
|
16
|
-
enableExceedMaxAmount?: boolean;
|
|
17
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'payment-keyboard-payment': string;
|
|
4
|
-
'payment-keyboard-surcharge': string;
|
|
5
|
-
'payment-keyboard-percent': string;
|
|
6
|
-
'payment-keyboard-fixed': string;
|
|
7
|
-
'payment-keyboard-max': string;
|
|
8
|
-
'payment-keyboard-remaining': string;
|
|
9
|
-
'payment-keyboard-change-due': string;
|
|
10
|
-
'payment-keyboard-total-amount-due': string;
|
|
11
|
-
'payment-keyboard-inc-surcharge': string;
|
|
12
|
-
'payment-keyboard-reset': string;
|
|
13
|
-
'payment-keyboard-done': string;
|
|
14
|
-
'payment-keyboard-pay': string;
|
|
15
|
-
};
|
|
16
|
-
'zh-CN': {
|
|
17
|
-
'payment-keyboard-payment': string;
|
|
18
|
-
'payment-keyboard-surcharge': string;
|
|
19
|
-
'payment-keyboard-percent': string;
|
|
20
|
-
'payment-keyboard-change-due': string;
|
|
21
|
-
'payment-keyboard-fixed': string;
|
|
22
|
-
'payment-keyboard-max': string;
|
|
23
|
-
'payment-keyboard-remaining': string;
|
|
24
|
-
'payment-keyboard-total-amount-due': string;
|
|
25
|
-
'payment-keyboard-inc-surcharge': string;
|
|
26
|
-
'payment-keyboard-reset': string;
|
|
27
|
-
'payment-keyboard-done': string;
|
|
28
|
-
'payment-keyboard-pay': string;
|
|
29
|
-
};
|
|
30
|
-
'zh-HK': {
|
|
31
|
-
'payment-keyboard-payment': string;
|
|
32
|
-
'payment-keyboard-surcharge': string;
|
|
33
|
-
'payment-keyboard-percent': string;
|
|
34
|
-
'payment-keyboard-fixed': string;
|
|
35
|
-
'payment-keyboard-max': string;
|
|
36
|
-
'payment-keyboard-remaining': string;
|
|
37
|
-
'payment-keyboard-change-due': string;
|
|
38
|
-
'payment-keyboard-total-amount-due': string;
|
|
39
|
-
'payment-keyboard-inc-surcharge': string;
|
|
40
|
-
'payment-keyboard-reset': string;
|
|
41
|
-
'payment-keyboard-done': string;
|
|
42
|
-
'payment-keyboard-pay': string;
|
|
43
|
-
};
|
|
44
|
-
ja: {
|
|
45
|
-
'payment-keyboard-payment': string;
|
|
46
|
-
'payment-keyboard-surcharge': string;
|
|
47
|
-
'payment-keyboard-percent': string;
|
|
48
|
-
'payment-keyboard-fixed': string;
|
|
49
|
-
'payment-keyboard-max': string;
|
|
50
|
-
'payment-keyboard-remaining': string;
|
|
51
|
-
'payment-keyboard-change-due': string;
|
|
52
|
-
'payment-keyboard-total-amount-due': string;
|
|
53
|
-
'payment-keyboard-inc-surcharge': string;
|
|
54
|
-
'payment-keyboard-reset': string;
|
|
55
|
-
'payment-keyboard-done': string;
|
|
56
|
-
'payment-keyboard-pay': string;
|
|
57
|
-
};
|
|
58
|
-
pt: {
|
|
59
|
-
'payment-keyboard-payment': string;
|
|
60
|
-
'payment-keyboard-surcharge': string;
|
|
61
|
-
'payment-keyboard-percent': string;
|
|
62
|
-
'payment-keyboard-fixed': string;
|
|
63
|
-
'payment-keyboard-max': string;
|
|
64
|
-
'payment-keyboard-remaining': string;
|
|
65
|
-
'payment-keyboard-change-due': string;
|
|
66
|
-
'payment-keyboard-total-amount-due': string;
|
|
67
|
-
'payment-keyboard-inc-surcharge': string;
|
|
68
|
-
'payment-keyboard-reset': string;
|
|
69
|
-
'payment-keyboard-done': string;
|
|
70
|
-
'payment-keyboard-pay': string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export default _default;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare type SurchargeValue = {
|
|
2
|
-
percent?: string;
|
|
3
|
-
fixed?: string;
|
|
4
|
-
};
|
|
5
|
-
export interface PaymentKeyboardBaseProps {
|
|
6
|
-
/** 自定义支付允许超出最大值, EFTPOS不允许 */
|
|
7
|
-
enableExceedMaxAmount?: boolean;
|
|
8
|
-
/** payment 原始值 */
|
|
9
|
-
paymentOriginalValue?: string;
|
|
10
|
-
/** payment 当前值 */
|
|
11
|
-
paymentValue?: string;
|
|
12
|
-
/** payment 默认值, 非受控 */
|
|
13
|
-
paymentDefaultValue?: string;
|
|
14
|
-
/** surcharge 原始值 */
|
|
15
|
-
surchargeOriginalValue?: SurchargeValue;
|
|
16
|
-
/** surcharge 当前值 */
|
|
17
|
-
surchargeValue?: SurchargeValue;
|
|
18
|
-
/** surcharge 默认值, 非受控 */
|
|
19
|
-
surchargeDefaultValue?: SurchargeValue;
|
|
20
|
-
onReset?: () => void;
|
|
21
|
-
onPay?: (args: {
|
|
22
|
-
surcharge: SurchargeValue;
|
|
23
|
-
amount: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
onChange?: (v: string | SurchargeValue) => void;
|
|
26
|
-
payment?: {
|
|
27
|
-
enable?: boolean;
|
|
28
|
-
};
|
|
29
|
-
surcharge?: {
|
|
30
|
-
enable?: boolean;
|
|
31
|
-
};
|
|
32
|
-
title?: {
|
|
33
|
-
text?: string;
|
|
34
|
-
};
|
|
35
|
-
subTitle?: {
|
|
36
|
-
text?: string;
|
|
37
|
-
};
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type ShortcutsItem = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: number | string;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
onClick?: (item: ShortcutsItem, _next: () => void) => void;
|
|
8
|
-
render?: (item: ShortcutsItem) => React.ReactNode;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export interface ShortcutsProps {
|
|
12
|
-
presets?: ShortcutsItem[];
|
|
13
|
-
onChange?: (val: string) => void;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
size?: 'default' | 'large';
|
|
16
|
-
}
|
|
17
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ShortcutsProps & React.RefAttributes<HTMLDivElement>>>;
|
|
18
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 键盘输入处理 Hook
|
|
3
|
-
* @param params 配置参数
|
|
4
|
-
* @param params.onChange 值变化回调
|
|
5
|
-
* @param params.onEnter 确认回调
|
|
6
|
-
* @param params.onReset 重置回调
|
|
7
|
-
* @param params.value 当前值
|
|
8
|
-
* @param params.min 最小值限制
|
|
9
|
-
* @param params.max 最大值限制
|
|
10
|
-
* @param params.scale 小数位数限制
|
|
11
|
-
* @param params.mode 输入模式:'append' 追加模式(默认)| 'replace' 替换模式
|
|
12
|
-
*/
|
|
13
|
-
declare const useKeyActions: (params: {
|
|
14
|
-
onChange?: ((val: string) => void) | undefined;
|
|
15
|
-
onEnter?: ((val: string) => void) | undefined;
|
|
16
|
-
onReset?: (() => void) | undefined;
|
|
17
|
-
value?: string | undefined;
|
|
18
|
-
min?: number | undefined;
|
|
19
|
-
max?: number | undefined;
|
|
20
|
-
mode?: "replace" | "append" | undefined;
|
|
21
|
-
scale?: number | undefined;
|
|
22
|
-
}) => {
|
|
23
|
-
handleChange: (val?: string | number) => void;
|
|
24
|
-
error: {
|
|
25
|
-
msg: string;
|
|
26
|
-
} | null;
|
|
27
|
-
};
|
|
28
|
-
export default useKeyActions;
|