@pisell/private-materials 3.4.68 → 3.4.70
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 +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/locales.d.ts +366 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/amount.d.ts +25 -0
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/index.d.ts +2 -0
- package/es/components/booking/forms/forms.d.ts +30 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +4 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +14 -0
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/serve.d.ts +20 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +5 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info/utils.d.ts +50 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +5 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +837 -0
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +119 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +3 -0
- package/es/components/booking/utils.d.ts +175 -0
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +23 -0
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/model.d.ts +40 -0
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/utils/index.d.ts +25 -0
- package/es/hooks/useEngineContext.d.ts +10 -0
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +861 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +4 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +6 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +5 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +154 -0
- package/es/plus/orderList/config.js +786 -0
- package/es/plus/orderList/index.d.ts +9 -0
- package/es/plus/orderList/index.js +128 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +372 -0
- package/es/plus/orderList/locales.js +459 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/plus/selectHolder/locales.d.ts +21 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/types.d.ts +429 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/NumericStepper/index.d.ts +68 -0
- package/es/pro/NumericStepper/index.js +175 -107
- package/es/pro/NumericStepper/index.less +295 -143
- package/es/pro/Selector/Selector.d.ts +14 -0
- package/es/pro/Selector/Selector.js +33 -26
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/index.js +2 -3
- package/es/pro/Selector/components/Card/index.less +11 -4
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/Indicator/index.js +2 -1
- package/es/pro/Selector/components/Indicator/index.less +4 -1
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/LayoutContainer/index.js +226 -9
- package/es/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/es/pro/Selector/demo.d.ts +2 -0
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/hooks/usePresetProps.js +60 -6
- package/es/pro/Selector/selector.less +0 -64
- package/es/pro/Selector/types.d.ts +213 -0
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/locales.d.ts +366 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.d.ts +25 -0
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/index.d.ts +2 -0
- package/lib/components/booking/forms/forms.d.ts +30 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +4 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +14 -0
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/serve.d.ts +20 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +5 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info/utils.d.ts +50 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +5 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +837 -0
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +119 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +3 -0
- package/lib/components/booking/utils.d.ts +175 -0
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +23 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/model.d.ts +40 -0
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/utils/index.d.ts +25 -0
- package/lib/hooks/useEngineContext.d.ts +10 -0
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +584 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +4 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +6 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +5 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +154 -0
- package/lib/plus/orderList/config.js +764 -0
- package/lib/plus/orderList/index.d.ts +9 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +372 -0
- package/lib/plus/orderList/locales.js +471 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/plus/selectHolder/locales.d.ts +21 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +429 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/NumericStepper/index.d.ts +68 -0
- package/lib/pro/NumericStepper/index.js +176 -88
- package/lib/pro/NumericStepper/index.less +295 -143
- package/lib/pro/Selector/Selector.d.ts +14 -0
- package/lib/pro/Selector/Selector.js +27 -16
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/index.js +9 -1
- package/lib/pro/Selector/components/Card/index.less +11 -4
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +4 -1
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/LayoutContainer/index.js +130 -2
- package/lib/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/lib/pro/Selector/demo.d.ts +2 -0
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +28 -6
- package/lib/pro/Selector/selector.less +0 -64
- package/lib/pro/Selector/types.d.ts +213 -0
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/package.json +6 -6
- package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/pro/keyboards/numberKeyboard/index.tsx
|
|
30
|
+
var numberKeyboard_exports = {};
|
|
31
|
+
__export(numberKeyboard_exports, {
|
|
32
|
+
NumberKeyboardBase: () => NumberKeyboardBase,
|
|
33
|
+
default: () => numberKeyboard_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(numberKeyboard_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_antd = require("antd");
|
|
39
|
+
var import_ahooks = require("ahooks");
|
|
40
|
+
var import_materials = require("@pisell/materials");
|
|
41
|
+
var import_utils = require("@pisell/utils");
|
|
42
|
+
var import_virtualInput = __toESM(require("../../../../../materials/src/components/virtualInput"));
|
|
43
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
44
|
+
var import_locales = __toESM(require("../locales"));
|
|
45
|
+
var import_index = require("./index.less");
|
|
46
|
+
var generateSimpleUUID = () => {
|
|
47
|
+
return Math.random().toString(36).substring(2) + Date.now().toString(36);
|
|
48
|
+
};
|
|
49
|
+
var NumberKeyboardBase = (props) => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
const {
|
|
52
|
+
mode = "integer",
|
|
53
|
+
originalValue = "",
|
|
54
|
+
placeholder = "",
|
|
55
|
+
max,
|
|
56
|
+
min,
|
|
57
|
+
maxLength,
|
|
58
|
+
precision = 2,
|
|
59
|
+
disabled = false,
|
|
60
|
+
doneText,
|
|
61
|
+
resetText,
|
|
62
|
+
clearText,
|
|
63
|
+
label,
|
|
64
|
+
errorText,
|
|
65
|
+
style,
|
|
66
|
+
className,
|
|
67
|
+
keydown = true,
|
|
68
|
+
inputStyle,
|
|
69
|
+
inputWrapperStyle,
|
|
70
|
+
onEnter,
|
|
71
|
+
onReset
|
|
72
|
+
} = props;
|
|
73
|
+
const context = (0, import_useEngineContext.default)();
|
|
74
|
+
import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
|
|
75
|
+
const [internalValue, setInternalValue] = (0, import_ahooks.useControllableValue)(
|
|
76
|
+
props,
|
|
77
|
+
{
|
|
78
|
+
defaultValue: ""
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
const uniqueKeyboardId = (0, import_react.useMemo)(() => {
|
|
82
|
+
return `number-keyboard-${generateSimpleUUID()}`;
|
|
83
|
+
}, []);
|
|
84
|
+
const [isSelected, setIsSelected] = (0, import_react.useState)(!!internalValue);
|
|
85
|
+
(0, import_react.useEffect)(() => {
|
|
86
|
+
if (internalValue) {
|
|
87
|
+
setIsSelected(true);
|
|
88
|
+
}
|
|
89
|
+
}, []);
|
|
90
|
+
const isOutOfRange = (0, import_react.useMemo)(() => {
|
|
91
|
+
if (!internalValue) return false;
|
|
92
|
+
const numValue = parseFloat(internalValue);
|
|
93
|
+
if (isNaN(numValue)) return false;
|
|
94
|
+
if (max !== void 0 && numValue > max) return true;
|
|
95
|
+
if (min !== void 0 && numValue < min) return true;
|
|
96
|
+
return false;
|
|
97
|
+
}, [internalValue, max, min]);
|
|
98
|
+
const errorMessage = (0, import_react.useMemo)(() => {
|
|
99
|
+
if (!isOutOfRange) return "";
|
|
100
|
+
if (errorText) return errorText;
|
|
101
|
+
const numValue = parseFloat(internalValue);
|
|
102
|
+
if (max !== void 0 && numValue > max) {
|
|
103
|
+
return import_utils.locales.getText("pisell2.keyboard.number-keybard.max")(max);
|
|
104
|
+
}
|
|
105
|
+
if (min !== void 0 && numValue < min) {
|
|
106
|
+
return import_utils.locales.getText("pisell2.keyboard.number-keybard.min")(min);
|
|
107
|
+
}
|
|
108
|
+
return "";
|
|
109
|
+
}, [isOutOfRange, errorText, internalValue, max, min]);
|
|
110
|
+
const handleValueChange = (0, import_react.useCallback)(
|
|
111
|
+
(newValue) => {
|
|
112
|
+
if (isSelected && newValue !== "") {
|
|
113
|
+
setIsSelected(false);
|
|
114
|
+
}
|
|
115
|
+
setInternalValue(newValue);
|
|
116
|
+
},
|
|
117
|
+
[isSelected, setInternalValue]
|
|
118
|
+
);
|
|
119
|
+
const handleDelete = (0, import_react.useCallback)(() => {
|
|
120
|
+
if (isSelected) {
|
|
121
|
+
setIsSelected(false);
|
|
122
|
+
}
|
|
123
|
+
if (internalValue.length > 0) {
|
|
124
|
+
handleValueChange(internalValue.slice(0, -1));
|
|
125
|
+
}
|
|
126
|
+
}, [internalValue, isSelected, handleValueChange]);
|
|
127
|
+
const handleClear = (0, import_react.useCallback)(() => {
|
|
128
|
+
handleValueChange("");
|
|
129
|
+
setIsSelected(false);
|
|
130
|
+
}, [handleValueChange]);
|
|
131
|
+
const handleReset = (0, import_react.useCallback)(() => {
|
|
132
|
+
setInternalValue(String(originalValue));
|
|
133
|
+
setIsSelected(true);
|
|
134
|
+
onReset == null ? void 0 : onReset();
|
|
135
|
+
}, [originalValue, setInternalValue, onReset]);
|
|
136
|
+
const handleDone = (0, import_react.useCallback)(() => {
|
|
137
|
+
if (isOutOfRange) return;
|
|
138
|
+
onEnter == null ? void 0 : onEnter(internalValue);
|
|
139
|
+
}, [internalValue, isOutOfRange, onEnter]);
|
|
140
|
+
const handleNumberInput = (0, import_react.useCallback)(
|
|
141
|
+
(num) => {
|
|
142
|
+
let newValue;
|
|
143
|
+
if (isSelected) {
|
|
144
|
+
newValue = num;
|
|
145
|
+
setIsSelected(false);
|
|
146
|
+
} else {
|
|
147
|
+
newValue = internalValue + num;
|
|
148
|
+
}
|
|
149
|
+
if (maxLength && newValue.replace(".", "").length > maxLength) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (mode === "integer" && newValue.includes(".")) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (mode === "decimal" && newValue.includes(".")) {
|
|
156
|
+
const parts = newValue.split(".");
|
|
157
|
+
if (parts[1] && parts[1].length > precision) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (num === "." && internalValue.includes(".")) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (newValue.length > 1 && newValue.startsWith("0") && !newValue.startsWith("0.")) {
|
|
165
|
+
newValue = newValue.replace(/^0+/, "") || "0";
|
|
166
|
+
}
|
|
167
|
+
if (num === "00") {
|
|
168
|
+
if (internalValue === "" || internalValue === "0") {
|
|
169
|
+
newValue = "0";
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
handleValueChange(newValue);
|
|
173
|
+
},
|
|
174
|
+
[internalValue, isSelected, maxLength, mode, precision, handleValueChange]
|
|
175
|
+
);
|
|
176
|
+
const handleKeyboardChange = (0, import_react.useCallback)(
|
|
177
|
+
(key) => {
|
|
178
|
+
if (key === void 0) return;
|
|
179
|
+
const keyStr = String(key);
|
|
180
|
+
switch (keyStr) {
|
|
181
|
+
case "delete":
|
|
182
|
+
case "backspace":
|
|
183
|
+
handleDelete();
|
|
184
|
+
break;
|
|
185
|
+
case "clear":
|
|
186
|
+
handleClear();
|
|
187
|
+
break;
|
|
188
|
+
case "reset":
|
|
189
|
+
handleReset();
|
|
190
|
+
break;
|
|
191
|
+
case "done":
|
|
192
|
+
case "ok":
|
|
193
|
+
handleDone();
|
|
194
|
+
break;
|
|
195
|
+
default:
|
|
196
|
+
if (/^[0-9.]$/.test(keyStr) || keyStr === "00") {
|
|
197
|
+
handleNumberInput(keyStr);
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
[handleDelete, handleClear, handleReset, handleDone, handleNumberInput]
|
|
203
|
+
);
|
|
204
|
+
const integerKeyboardItems = (0, import_react.useMemo)(() => {
|
|
205
|
+
return [
|
|
206
|
+
{ value: 1, label: "1", disabled: false, type: "text" },
|
|
207
|
+
{ value: 2, label: "2", disabled: false, type: "text" },
|
|
208
|
+
{ value: 3, label: "3", disabled: false, type: "text" },
|
|
209
|
+
{ value: 4, label: "4", disabled: false, type: "text" },
|
|
210
|
+
{ value: 5, label: "5", disabled: false, type: "text" },
|
|
211
|
+
{ value: 6, label: "6", disabled: false, type: "text" },
|
|
212
|
+
{ value: 7, label: "7", disabled: false, type: "text" },
|
|
213
|
+
{ value: 8, label: "8", disabled: false, type: "text" },
|
|
214
|
+
{ value: 9, label: "9", disabled: false, type: "text" },
|
|
215
|
+
{
|
|
216
|
+
value: "reset",
|
|
217
|
+
label: resetText || import_utils.locales.getText("pisell2.keyboard.number-keybard.reset"),
|
|
218
|
+
disabled: false,
|
|
219
|
+
type: "text",
|
|
220
|
+
style: { color: "#F04438", fontSize: 18 }
|
|
221
|
+
},
|
|
222
|
+
{ value: 0, label: "0", disabled: false, type: "text" },
|
|
223
|
+
{
|
|
224
|
+
value: "done",
|
|
225
|
+
label: doneText || import_utils.locales.getText("pisell2.keyboard.number-keybard.ok"),
|
|
226
|
+
disabled: isOutOfRange,
|
|
227
|
+
type: "primary",
|
|
228
|
+
style: { fontSize: 18 }
|
|
229
|
+
}
|
|
230
|
+
];
|
|
231
|
+
}, [resetText, doneText, isOutOfRange]);
|
|
232
|
+
const decimalKeyboardItems = (0, import_react.useMemo)(() => {
|
|
233
|
+
return [
|
|
234
|
+
{ value: 1, label: "1", disabled: false, type: "text" },
|
|
235
|
+
{ value: 2, label: "2", disabled: false, type: "text" },
|
|
236
|
+
{ value: 3, label: "3", disabled: false, type: "text" },
|
|
237
|
+
{ value: 4, label: "4", disabled: false, type: "text" },
|
|
238
|
+
{ value: 5, label: "5", disabled: false, type: "text" },
|
|
239
|
+
{ value: 6, label: "6", disabled: false, type: "text" },
|
|
240
|
+
{ value: 7, label: "7", disabled: false, type: "text" },
|
|
241
|
+
{ value: 8, label: "8", disabled: false, type: "text" },
|
|
242
|
+
{ value: 9, label: "9", disabled: false, type: "text" },
|
|
243
|
+
{ value: 0, label: "0", disabled: false, type: "text" },
|
|
244
|
+
{ value: "00", label: "00", disabled: false, type: "text" },
|
|
245
|
+
{ value: ".", label: ".", disabled: false, type: "text" }
|
|
246
|
+
];
|
|
247
|
+
}, []);
|
|
248
|
+
const decimalRightItems = (0, import_react.useMemo)(() => {
|
|
249
|
+
return [
|
|
250
|
+
{
|
|
251
|
+
value: "clear",
|
|
252
|
+
label: clearText || import_utils.locales.getText("pisell2.keyboard.number-keybard.clear"),
|
|
253
|
+
disabled: false,
|
|
254
|
+
type: "text",
|
|
255
|
+
size: 1,
|
|
256
|
+
style: { fontSize: 18 }
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
value: "reset",
|
|
260
|
+
label: resetText || import_utils.locales.getText("pisell2.keyboard.number-keybard.reset"),
|
|
261
|
+
disabled: false,
|
|
262
|
+
type: "text",
|
|
263
|
+
size: 1,
|
|
264
|
+
style: { color: "#F04438", fontSize: 18 }
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
value: "done",
|
|
268
|
+
label: doneText || import_utils.locales.getText("pisell2.keyboard.number-keybard.ok"),
|
|
269
|
+
disabled: isOutOfRange,
|
|
270
|
+
type: "primary",
|
|
271
|
+
size: 2,
|
|
272
|
+
style: { fontSize: 18 }
|
|
273
|
+
}
|
|
274
|
+
];
|
|
275
|
+
}, [clearText, resetText, doneText, isOutOfRange]);
|
|
276
|
+
const displayValue = (0, import_react.useMemo)(() => {
|
|
277
|
+
return internalValue || "";
|
|
278
|
+
}, [internalValue]);
|
|
279
|
+
const renderBottomContent = (0, import_react.useCallback)(() => {
|
|
280
|
+
if (isOutOfRange && errorMessage) {
|
|
281
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-number-keyboard-error-message" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-alert-circle", size: 16 }), errorMessage);
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
284
|
+
}, [errorMessage]);
|
|
285
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
286
|
+
"div",
|
|
287
|
+
{
|
|
288
|
+
className: (0, import_classnames.default)(
|
|
289
|
+
"pisell-number-keyboard",
|
|
290
|
+
`pisell-number-keyboard--${mode}`,
|
|
291
|
+
{
|
|
292
|
+
"pisell-number-keyboard--disabled": disabled
|
|
293
|
+
},
|
|
294
|
+
className
|
|
295
|
+
),
|
|
296
|
+
style
|
|
297
|
+
},
|
|
298
|
+
label && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-number-keyboard-label" }, label),
|
|
299
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-number-keyboard-input-wrapper") }, /* @__PURE__ */ import_react.default.createElement(
|
|
300
|
+
import_virtualInput.default,
|
|
301
|
+
{
|
|
302
|
+
focused: !disabled,
|
|
303
|
+
selected: isSelected && !!internalValue,
|
|
304
|
+
value: displayValue,
|
|
305
|
+
placeholder,
|
|
306
|
+
wrapperStyle: {
|
|
307
|
+
flex: 1,
|
|
308
|
+
padding: "19px 16px",
|
|
309
|
+
borderRadius: "8px",
|
|
310
|
+
backgroundColor: "white",
|
|
311
|
+
boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.06)",
|
|
312
|
+
overflow: "hidden",
|
|
313
|
+
...inputWrapperStyle
|
|
314
|
+
},
|
|
315
|
+
style: {
|
|
316
|
+
fontSize: "48px",
|
|
317
|
+
fontWeight: "bold",
|
|
318
|
+
border: "none",
|
|
319
|
+
background: "transparent",
|
|
320
|
+
width: "100%",
|
|
321
|
+
color: isOutOfRange ? "#D92D20" : void 0,
|
|
322
|
+
...inputStyle
|
|
323
|
+
},
|
|
324
|
+
preventBlurElements: [`#${uniqueKeyboardId}`],
|
|
325
|
+
allowClear: true,
|
|
326
|
+
onClear: handleDelete,
|
|
327
|
+
textAlign: "center"
|
|
328
|
+
}
|
|
329
|
+
), renderBottomContent()),
|
|
330
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
331
|
+
import_materials.Keyboard,
|
|
332
|
+
{
|
|
333
|
+
id: uniqueKeyboardId,
|
|
334
|
+
className: (0, import_classnames.default)("pisell-number-keyboard-keys", {
|
|
335
|
+
"pisell-number-keyboard-keys--integer": mode === "integer",
|
|
336
|
+
"pisell-number-keyboard-keys--decimal": mode === "decimal"
|
|
337
|
+
}),
|
|
338
|
+
items: mode === "integer" ? integerKeyboardItems : decimalKeyboardItems,
|
|
339
|
+
rightItems: mode === "decimal" ? decimalRightItems : void 0,
|
|
340
|
+
keydown,
|
|
341
|
+
onChange: handleKeyboardChange
|
|
342
|
+
}
|
|
343
|
+
)
|
|
344
|
+
);
|
|
345
|
+
};
|
|
346
|
+
var NumberKeyboard = (props) => {
|
|
347
|
+
const { containerProps, children, ...keyboardProps } = props;
|
|
348
|
+
if (!containerProps) {
|
|
349
|
+
return /* @__PURE__ */ import_react.default.createElement(NumberKeyboardBase, { ...keyboardProps });
|
|
350
|
+
}
|
|
351
|
+
const { renderType, open, className, ...restProps } = containerProps || {};
|
|
352
|
+
if (renderType === "popover") {
|
|
353
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
354
|
+
import_antd.Popover,
|
|
355
|
+
{
|
|
356
|
+
key: `${open}`,
|
|
357
|
+
open,
|
|
358
|
+
trigger: ["click"],
|
|
359
|
+
overlayClassName: (0, import_classnames.default)(
|
|
360
|
+
"pisell-number-keyboard-popover",
|
|
361
|
+
className
|
|
362
|
+
),
|
|
363
|
+
destroyTooltipOnHide: true,
|
|
364
|
+
overlayInnerStyle: {
|
|
365
|
+
padding: 0
|
|
366
|
+
},
|
|
367
|
+
arrow: false,
|
|
368
|
+
...restProps,
|
|
369
|
+
content: /* @__PURE__ */ import_react.default.createElement(NumberKeyboardBase, { ...keyboardProps })
|
|
370
|
+
},
|
|
371
|
+
children
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
if (renderType === "modal") {
|
|
375
|
+
return open ? /* @__PURE__ */ import_react.default.createElement(
|
|
376
|
+
import_materials.PisellModal,
|
|
377
|
+
{
|
|
378
|
+
platform: "pc",
|
|
379
|
+
open: true,
|
|
380
|
+
width: "unset",
|
|
381
|
+
header: null,
|
|
382
|
+
footer: false,
|
|
383
|
+
mask: false,
|
|
384
|
+
maskClosable: true,
|
|
385
|
+
bodyStyle: { padding: "0px", backgroundColor: "transparent" },
|
|
386
|
+
closeIcon: null,
|
|
387
|
+
className: (0, import_classnames.default)("pisell-number-keyboard-modal", className),
|
|
388
|
+
destroyOnHidden: true,
|
|
389
|
+
...restProps
|
|
390
|
+
},
|
|
391
|
+
/* @__PURE__ */ import_react.default.createElement(NumberKeyboardBase, { ...keyboardProps })
|
|
392
|
+
) : null;
|
|
393
|
+
}
|
|
394
|
+
return /* @__PURE__ */ import_react.default.createElement(NumberKeyboardBase, { ...keyboardProps });
|
|
395
|
+
};
|
|
396
|
+
var numberKeyboard_default = NumberKeyboard;
|
|
397
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
398
|
+
0 && (module.exports = {
|
|
399
|
+
NumberKeyboardBase
|
|
400
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.pisell-number-keyboard-modal {
|
|
2
|
+
.ant-moda-content,
|
|
3
|
+
.pisell-lowcode-modal-content {
|
|
4
|
+
background-color: transparent;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pisell-number-keyboard-popover {
|
|
9
|
+
.ant-popover-inner,
|
|
10
|
+
.pisell-lowcode-popover-inner {
|
|
11
|
+
background-color: transparent;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pisell-number-keyboard {
|
|
16
|
+
padding: 10px;
|
|
17
|
+
border-radius: 10px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
22
|
+
width: 344px;
|
|
23
|
+
|
|
24
|
+
&--disabled {
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
opacity: 0.6;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-label {
|
|
30
|
+
font-size: 20px;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
color: #fff;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-error-message {
|
|
36
|
+
user-select: none;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
color: #d92d20;
|
|
39
|
+
line-height: 18px;
|
|
40
|
+
padding: 0 4px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pisell-number-keyboard-input-wrapper {
|
|
45
|
+
position: relative;
|
|
46
|
+
|
|
47
|
+
.pisell-number-keyboard-error-message {
|
|
48
|
+
position: absolute;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
color: #f04438;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
gap: 4px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type NumberKeyboardMode = 'integer' | 'decimal';
|
|
3
|
+
export interface NumberKeyboardBaseProps {
|
|
4
|
+
/** 模式:整数 or 小数 */
|
|
5
|
+
mode?: NumberKeyboardMode;
|
|
6
|
+
/** 当前值(受控) */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** 默认值(非受控) */
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
/** 原始值,用于重置 */
|
|
11
|
+
originalValue?: string;
|
|
12
|
+
/** 占位符 */
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/** 最大值 */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** 最小值 */
|
|
17
|
+
min?: number;
|
|
18
|
+
/** 最大长度 */
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
/** 小数位数,默认 2 */
|
|
21
|
+
precision?: number;
|
|
22
|
+
/** 是否禁用 */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** 确认按钮文本 */
|
|
25
|
+
doneText?: string;
|
|
26
|
+
/** 重置按钮文本 */
|
|
27
|
+
resetText?: string;
|
|
28
|
+
/** 清空按钮文本 */
|
|
29
|
+
clearText?: string;
|
|
30
|
+
/** 标签文本(显示在输入框上方) */
|
|
31
|
+
label?: string;
|
|
32
|
+
/** 超出范围时的提示文本 */
|
|
33
|
+
errorText?: string;
|
|
34
|
+
/** 值变化回调 */
|
|
35
|
+
onChange?: (value: string) => void;
|
|
36
|
+
/** 确认按钮点击回调 */
|
|
37
|
+
onEnter?: (value: string) => void;
|
|
38
|
+
/** 重置按钮点击回调 */
|
|
39
|
+
onReset?: () => void;
|
|
40
|
+
/** 外层样式 */
|
|
41
|
+
style?: React.CSSProperties;
|
|
42
|
+
/** 自定义类名 */
|
|
43
|
+
className?: string;
|
|
44
|
+
/** 键盘是否监听物理键盘 */
|
|
45
|
+
keydown?: boolean;
|
|
46
|
+
/** 输入框样式 */
|
|
47
|
+
inputStyle?: React.CSSProperties;
|
|
48
|
+
/** 输入框包裹样式 */
|
|
49
|
+
inputWrapperStyle?: React.CSSProperties;
|
|
50
|
+
}
|
|
51
|
+
export interface NumberKeyboardProps extends NumberKeyboardBaseProps {
|
|
52
|
+
/** 容器配置,用于控制键盘以 popover 或 modal 形态展示 */
|
|
53
|
+
containerProps?: {
|
|
54
|
+
/** 渲染类型:popover 或 modal */
|
|
55
|
+
renderType: 'modal' | 'popover';
|
|
56
|
+
/** 是否打开(受控模式) */
|
|
57
|
+
open?: boolean;
|
|
58
|
+
/** 其他传递给 Popover 或 Modal 的属性 */
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
};
|
|
61
|
+
/** 子元素,用于 popover 模式的触发器 */
|
|
62
|
+
children?: React.ReactNode;
|
|
63
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/pro/keyboards/numberKeyboard/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* OrderList 组件 LowCode Meta 配置
|
|
5
|
+
* @description 订单列表组件,集成了数据源容器、表格展示、筛选、排序、分页等功能
|
|
6
|
+
*/
|
|
7
|
+
const OrderListMeta: ComponentMetadata = {
|
|
8
|
+
componentName: 'OrderList',
|
|
9
|
+
title: '订单列表',
|
|
10
|
+
docUrl: '',
|
|
11
|
+
screenshot: '',
|
|
12
|
+
devMode: 'proCode',
|
|
13
|
+
npm: {
|
|
14
|
+
package: '@pisell/private-materials',
|
|
15
|
+
version: '1.0.4',
|
|
16
|
+
exportName: 'OrderList',
|
|
17
|
+
main: 'src/index.ts',
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: '',
|
|
20
|
+
},
|
|
21
|
+
configure: {
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
title: {
|
|
25
|
+
label: {
|
|
26
|
+
type: 'i18n',
|
|
27
|
+
'en-US': 'business_code',
|
|
28
|
+
'zh-CN': '业务代码',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
name: 'business_code',
|
|
32
|
+
description: '业务代码,用于标识订单所属的业务类型',
|
|
33
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
34
|
+
isRequired: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: {
|
|
38
|
+
label: {
|
|
39
|
+
type: 'i18n',
|
|
40
|
+
'en-US': 'className',
|
|
41
|
+
'zh-CN': '类名',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
name: 'className',
|
|
45
|
+
description: '自定义类名',
|
|
46
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: {
|
|
50
|
+
label: {
|
|
51
|
+
type: 'i18n',
|
|
52
|
+
'en-US': 'style',
|
|
53
|
+
'zh-CN': '样式',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
name: 'style',
|
|
57
|
+
description: '自定义样式',
|
|
58
|
+
setter: ['StyleSetter', 'VariableSetter'],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
supports: {
|
|
62
|
+
style: true,
|
|
63
|
+
className: true,
|
|
64
|
+
},
|
|
65
|
+
component: {
|
|
66
|
+
isContainer: false,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const snippets: Snippet[] = [
|
|
72
|
+
{
|
|
73
|
+
title: '订单列表',
|
|
74
|
+
screenshot: '',
|
|
75
|
+
schema: {
|
|
76
|
+
componentName: 'OrderList',
|
|
77
|
+
props: {
|
|
78
|
+
business_code: 'default_business',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
export default {
|
|
85
|
+
...OrderListMeta,
|
|
86
|
+
snippets,
|
|
87
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.70",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@alilc/lowcode-react-renderer": "^1.1.7",
|
|
15
15
|
"@alilc/lowcode-types": "1.1.7",
|
|
16
16
|
"@alilc/lowcode-utils": "1.1.6",
|
|
17
|
-
"@pisell/build-plugin-lowcode": "^1.0.
|
|
17
|
+
"@pisell/build-plugin-lowcode": "^1.0.13",
|
|
18
18
|
"@storybook/addon-essentials": "^7.6.19",
|
|
19
19
|
"@storybook/addon-interactions": "^7.6.19",
|
|
20
20
|
"@storybook/addon-links": "^7.6.19",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"dist"
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
+
"antd": "5.10.1",
|
|
63
64
|
"@ant-design/icons": "^5.6.1",
|
|
64
65
|
"@dnd-kit/core": "^6.0.8",
|
|
65
66
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
@@ -68,7 +69,6 @@
|
|
|
68
69
|
"@react-spring/web": "^9.6.1",
|
|
69
70
|
"@use-gesture/react": "^10.3.1",
|
|
70
71
|
"ahooks": "^3.7.6",
|
|
71
|
-
"antd": "^5.6.3",
|
|
72
72
|
"classnames": "^2.3.2",
|
|
73
73
|
"dayjs": "^1.11.9",
|
|
74
74
|
"decimal.js": "^10.4.3",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"react-infinite-scroll-component": "^6.1.0",
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
|
-
"@pisell/date-picker": "3.0.4",
|
|
80
|
-
"@pisell/icon": "0.0.11",
|
|
81
79
|
"@pisell/utils": "3.0.2",
|
|
82
|
-
"@pisell/materials": "3.3.
|
|
80
|
+
"@pisell/materials": "3.3.79",
|
|
81
|
+
"@pisell/date-picker": "3.0.4",
|
|
82
|
+
"@pisell/icon": "0.0.11"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|