@pisell/private-materials 6.3.86 → 6.3.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +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 +9 -9
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/es/components/eftpos/PairModal/hooks.js +67 -0
- package/es/components/eftpos/PairModal/index.d.ts +11 -0
- package/es/components/{ecocup/components/AddCustomerModal → eftpos/PairModal}/index.js +189 -159
- package/es/components/eftpos/PairModal/index.less +70 -0
- package/es/components/eftpos/assets/mx51SCI.svg +15 -0
- package/es/components/eftpos/const.d.ts +3 -1
- package/es/components/eftpos/const.js +2 -0
- package/es/components/eftpos/device.d.ts +3 -1
- package/es/components/eftpos/device.js +5 -3
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +7 -0
- package/es/components/eftpos/hooks.js +20 -0
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.js +118 -14
- package/es/components/eftpos/index.less +26 -1
- package/es/components/eftpos/locales.d.ts +24 -0
- package/es/components/eftpos/locales.js +91 -7
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +70 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +96 -0
- package/es/components/eftposPay/aggregatePayment/types.js +61 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1127 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +2 -0
- package/es/components/eftposPay/hooks.d.ts +2 -1
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/linkly/index.js +1 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/mx51/Action.d.ts +6 -0
- package/es/components/eftposPay/mx51/Action.js +91 -0
- package/es/components/eftposPay/mx51/const.d.ts +5 -0
- package/es/components/eftposPay/mx51/const.js +69 -0
- package/es/components/eftposPay/mx51/index.d.ts +6 -0
- package/es/components/eftposPay/mx51/index.js +362 -0
- package/es/components/eftposPay/mx51/types.d.ts +136 -0
- package/es/components/eftposPay/mx51/types.js +29 -0
- package/es/components/eftposPay/mx51/utils.d.ts +10 -0
- package/es/components/eftposPay/mx51/utils.js +120 -0
- package/es/components/eftposPay/pay.js +7 -2
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/index.d.ts +1 -5
- package/es/index.js +1 -5
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +4 -8
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/NumericStepper/index.d.ts +3 -28
- package/es/pro/NumericStepper/index.js +107 -175
- package/es/pro/NumericStepper/index.less +143 -295
- package/es/pro/Selector/Selector.js +26 -33
- package/es/pro/Selector/components/Card/index.js +3 -2
- package/es/pro/Selector/components/Card/index.less +4 -11
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/es/pro/Selector/components/Indicator/index.js +1 -2
- package/es/pro/Selector/components/Indicator/index.less +1 -4
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +6 -60
- package/es/pro/Selector/selector.less +64 -0
- package/es/pro/Selector/types.d.ts +0 -40
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/lib/components/eftpos/PairModal/hooks.js +70 -0
- package/lib/components/eftpos/PairModal/index.d.ts +11 -0
- package/lib/components/eftpos/PairModal/index.js +197 -0
- package/lib/components/eftpos/PairModal/index.less +70 -0
- package/lib/components/eftpos/assets/mx51SCI.svg +15 -0
- package/lib/components/eftpos/const.d.ts +3 -1
- package/lib/components/eftpos/const.js +2 -0
- package/lib/components/eftpos/device.d.ts +3 -1
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +7 -0
- package/lib/components/eftpos/hooks.js +19 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.js +73 -7
- package/lib/components/eftpos/index.less +26 -1
- package/lib/components/eftpos/locales.d.ts +24 -0
- package/lib/components/eftpos/locales.js +88 -4
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/{ecocup/customerList/hooks → eftposPay/aggregatePayment}/index.js +10 -10
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +96 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +746 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -1
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/linkly/index.js +1 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
- package/lib/components/eftposPay/mx51/Action.js +127 -0
- package/lib/components/eftposPay/mx51/const.d.ts +5 -0
- package/lib/components/eftposPay/mx51/const.js +85 -0
- package/lib/components/eftposPay/mx51/index.d.ts +6 -0
- package/lib/components/eftposPay/mx51/index.js +330 -0
- package/lib/components/eftposPay/mx51/types.d.ts +136 -0
- package/lib/components/{ecocup/cupList/hooks/index.js → eftposPay/mx51/types.js} +17 -17
- package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
- package/lib/components/eftposPay/mx51/utils.js +114 -0
- package/lib/components/eftposPay/pay.js +4 -2
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/index.d.ts +1 -5
- package/lib/index.js +1 -13
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +3 -7
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/NumericStepper/index.d.ts +3 -28
- package/lib/pro/NumericStepper/index.js +88 -176
- package/lib/pro/NumericStepper/index.less +143 -295
- package/lib/pro/Selector/Selector.js +16 -27
- package/lib/pro/Selector/components/Card/index.js +1 -9
- package/lib/pro/Selector/components/Card/index.less +4 -11
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +1 -4
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
- package/lib/pro/Selector/selector.less +64 -0
- package/lib/pro/Selector/types.d.ts +0 -40
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/package.json +6 -6
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/es/components/ecocup/components/CustomerCard/index.js +0 -34
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/es/components/ecocup/components/PageHeader/index.js +0 -37
- package/es/components/ecocup/components/PageHeader/index.less +0 -19
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/es/components/ecocup/components/SearchBar/index.js +0 -218
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/cupList/const.js +0 -306
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -172
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
- package/es/components/ecocup/cupList/index.d.ts +0 -6
- package/es/components/ecocup/cupList/index.js +0 -220
- package/es/components/ecocup/cupList/index.less +0 -113
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -27
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -103
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/hooks.js +0 -151
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/ecocup/locales.js +0 -372
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -861
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -5
- package/es/plus/orderList/components/HandleActions.js +0 -24
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -7
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -6
- package/es/plus/orderList/components/Toolbar.js +0 -57
- package/es/plus/orderList/config.d.ts +0 -154
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -9
- package/es/plus/orderList/index.js +0 -128
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -372
- package/es/plus/orderList/locales.js +0 -459
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/es/pro/comprehensiveSearch/components/index.js +0 -2
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -140
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -14
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -7
- package/es/pro/comprehensiveSearch/index.js +0 -207
- package/es/pro/comprehensiveSearch/index.less +0 -196
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/locales.js +0 -14
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -24
- package/es/pro/keyboards/locales.js +0 -35
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/lib/components/ecocup/components/PageHeader/index.js +0 -59
- package/lib/components/ecocup/components/PageHeader/index.less +0 -19
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/lib/components/ecocup/components/SearchBar/index.js +0 -213
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/cupList/const.js +0 -326
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
- package/lib/components/ecocup/cupList/index.d.ts +0 -6
- package/lib/components/ecocup/cupList/index.js +0 -208
- package/lib/components/ecocup/cupList/index.less +0 -113
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -58
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -126
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/hooks.js +0 -155
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/ecocup/locales.js +0 -389
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -584
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -7
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -154
- package/lib/plus/orderList/config.js +0 -764
- package/lib/plus/orderList/index.d.ts +0 -9
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -372
- package/lib/plus/orderList/locales.js +0 -471
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/lib/pro/comprehensiveSearch/components/index.js +0 -42
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -153
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -38
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
- package/lib/pro/comprehensiveSearch/index.js +0 -190
- package/lib/pro/comprehensiveSearch/index.less +0 -196
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/locales.js +0 -38
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -24
- package/lib/pro/keyboards/locales.js +0 -47
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lowcode/eco-cup-list/meta.ts +0 -63
- package/lowcode/eco-customer-list/meta.ts +0 -63
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
|
@@ -19,6 +19,8 @@ export var Eftpos = /*#__PURE__*/function (Eftpos) {
|
|
|
19
19
|
Eftpos["Tyro"] = "tyro";
|
|
20
20
|
Eftpos["Windcave"] = "windcave";
|
|
21
21
|
Eftpos["Stripe"] = "stripe";
|
|
22
|
+
Eftpos["Linkly"] = "linkly";
|
|
23
|
+
Eftpos["MX51"] = "mx51";
|
|
22
24
|
return Eftpos;
|
|
23
25
|
}({});
|
|
24
26
|
export var DeviceEnum = /*#__PURE__*/function (DeviceEnum) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DeviceProp } from './const';
|
|
2
|
+
import { DeviceProp, Eftpos } from './const';
|
|
3
3
|
interface DeviceProps {
|
|
4
4
|
formItemList: any[];
|
|
5
5
|
onSave: (device: DeviceProp) => void;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
+
type?: Eftpos;
|
|
8
|
+
status?: 'add' | 'edit' | 'repair';
|
|
7
9
|
}
|
|
8
10
|
declare const Device: (props: DeviceProps) => JSX.Element;
|
|
9
11
|
export default Device;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Form, Button } from 'antd';
|
|
3
3
|
import { locales } from '@pisell/utils';
|
|
4
|
-
import { getDefaultValue } from "./const";
|
|
4
|
+
import { Eftpos, getDefaultValue } from "./const";
|
|
5
5
|
import FormItem from "./form";
|
|
6
6
|
var Device = function Device(props) {
|
|
7
7
|
var onSave = props.onSave,
|
|
8
8
|
children = props.children,
|
|
9
9
|
formItemList = props.formItemList;
|
|
10
10
|
var initialValues = getDefaultValue(formItemList);
|
|
11
|
-
return /*#__PURE__*/React.createElement(
|
|
11
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (props === null || props === void 0 ? void 0 : props.type) === Eftpos.MX51 && /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: "pisell-lowcode__pos-device-pair-text"
|
|
13
|
+
}, "Pair your POS with an mx51 terminal using the pairing code shown on the terminal."), /*#__PURE__*/React.createElement(Form, {
|
|
12
14
|
layout: "vertical",
|
|
13
15
|
onFinish: onSave,
|
|
14
16
|
initialValues: initialValues,
|
|
@@ -29,6 +31,6 @@ var Device = function Device(props) {
|
|
|
29
31
|
style: {
|
|
30
32
|
height: '48px'
|
|
31
33
|
}
|
|
32
|
-
}, locales.getText('page.eftpos.text.save'))));
|
|
34
|
+
}, (props === null || props === void 0 ? void 0 : props.status) === 'edit' ? locales.getText('page.eftpos.text.save') : locales.getText('page.eftpos.text.pair')))));
|
|
33
35
|
};
|
|
34
36
|
export default Device;
|
|
@@ -31,3 +31,10 @@ export declare const useTyro: (params: {
|
|
|
31
31
|
url?: string;
|
|
32
32
|
version?: string;
|
|
33
33
|
}) => readonly [import("react").MutableRefObject<any>, boolean];
|
|
34
|
+
export declare const useRequest: () => any;
|
|
35
|
+
/**
|
|
36
|
+
* @title 配对请求
|
|
37
|
+
*/
|
|
38
|
+
export declare const usePairRequest: () => {
|
|
39
|
+
run: (params: any) => any;
|
|
40
|
+
};
|
|
@@ -10,6 +10,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
10
10
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
11
11
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
12
12
|
import loadjs from "../../utils/load";
|
|
13
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
|
14
|
+
|
|
13
15
|
/**
|
|
14
16
|
* @title: tyro 设备连接
|
|
15
17
|
* @Author: hongbing.wang
|
|
@@ -115,4 +117,22 @@ export var useTyro = function useTyro(params) {
|
|
|
115
117
|
});
|
|
116
118
|
}, [url]);
|
|
117
119
|
return [ref, load];
|
|
120
|
+
};
|
|
121
|
+
export var useRequest = function useRequest() {
|
|
122
|
+
var _context$appHelper;
|
|
123
|
+
var context = useEngineContext();
|
|
124
|
+
return (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.request) || {};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @title 配对请求
|
|
129
|
+
*/
|
|
130
|
+
export var usePairRequest = function usePairRequest() {
|
|
131
|
+
var request = useRequest();
|
|
132
|
+
var run = function run(params) {
|
|
133
|
+
return request.post('/shop/pay/card-reader/pair', params, {});
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
run: run
|
|
137
|
+
};
|
|
118
138
|
};
|
|
@@ -23,11 +23,15 @@ import Pos from "./pos";
|
|
|
23
23
|
import Drawer from "../booking/components/drawer";
|
|
24
24
|
import Log from "./log";
|
|
25
25
|
import localeTexts from "./locales";
|
|
26
|
-
import { usePairTerminalo } from "./hooks";
|
|
26
|
+
import { usePairRequest, usePairTerminalo } from "./hooks";
|
|
27
27
|
import DeviceIcon from "./icon/apiKey";
|
|
28
28
|
import ApiKeyIcon from "./icon/device";
|
|
29
29
|
import { getLocale } from "../../utils/locales";
|
|
30
|
+
import { usePairModal } from "./PairModal/hooks";
|
|
31
|
+
import PairModal from "./PairModal/index";
|
|
30
32
|
import { Eftpos, getCommByFields, DeviceEnum, getDefaultValue } from "./const";
|
|
33
|
+
import { Image } from '@pisell/materials';
|
|
34
|
+
import mx51SCISvg from "./assets/mx51SCI.svg";
|
|
31
35
|
import "./index.less";
|
|
32
36
|
locales.init(localeTexts, getLocale());
|
|
33
37
|
|
|
@@ -183,6 +187,8 @@ export default (function (props) {
|
|
|
183
187
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
184
188
|
posLoading = _useState22[0],
|
|
185
189
|
setPosLoading = _useState22[1];
|
|
190
|
+
var pairModalHook = usePairModal();
|
|
191
|
+
var pairRequest = usePairRequest();
|
|
186
192
|
|
|
187
193
|
/**
|
|
188
194
|
* @title: 删除设备
|
|
@@ -311,26 +317,47 @@ export default (function (props) {
|
|
|
311
317
|
console.log('device = ', device);
|
|
312
318
|
update = /*#__PURE__*/function () {
|
|
313
319
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
320
|
+
var _device$connection, _device$connection2;
|
|
314
321
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
315
322
|
while (1) switch (_context3.prev = _context3.next) {
|
|
316
323
|
case 0:
|
|
317
|
-
_context3.
|
|
324
|
+
_context3.prev = 0;
|
|
325
|
+
_context3.next = 3;
|
|
318
326
|
return onEdit(_objectSpread(_objectSpread({}, device), {}, {
|
|
319
327
|
type: type
|
|
320
|
-
}), status || 'add')
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
328
|
+
}), status || 'add');
|
|
329
|
+
case 3:
|
|
330
|
+
if (type === Eftpos.MX51) {
|
|
331
|
+
messageApi.open({
|
|
332
|
+
type: 'success',
|
|
333
|
+
style: {
|
|
334
|
+
zIndex: (zIndex || 9999) + 1
|
|
335
|
+
},
|
|
336
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
337
|
+
className: "pisell-lowcode__pos_message-custom-content_mx51"
|
|
338
|
+
}, /*#__PURE__*/React.createElement("span", null, "Terminal paired successfully."), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null, "Pairing Name: ", (device === null || device === void 0 || (_device$connection = device.connection) === null || _device$connection === void 0 ? void 0 : _device$connection.pairing_nickname) || '-'), /*#__PURE__*/React.createElement("span", null, "Pairing ID: ", (device === null || device === void 0 || (_device$connection2 = device.connection) === null || _device$connection2 === void 0 ? void 0 : _device$connection2.pairing_code) || '-')))
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
_context3.next = 9;
|
|
342
|
+
break;
|
|
343
|
+
case 6:
|
|
344
|
+
_context3.prev = 6;
|
|
345
|
+
_context3.t0 = _context3["catch"](0);
|
|
346
|
+
console.error('onSave error =>', _context3.t0);
|
|
347
|
+
case 9:
|
|
348
|
+
_context3.prev = 9;
|
|
324
349
|
setLoading(false);
|
|
325
|
-
_context3.
|
|
350
|
+
return _context3.finish(9);
|
|
351
|
+
case 12:
|
|
352
|
+
_context3.next = 14;
|
|
326
353
|
return tableRef.current.loadData();
|
|
327
|
-
case
|
|
354
|
+
case 14:
|
|
328
355
|
setPage('list');
|
|
329
|
-
case
|
|
356
|
+
case 15:
|
|
330
357
|
case "end":
|
|
331
358
|
return _context3.stop();
|
|
332
359
|
}
|
|
333
|
-
}, _callee3);
|
|
360
|
+
}, _callee3, null, [[0, 6, 9, 12]]);
|
|
334
361
|
}));
|
|
335
362
|
return function update() {
|
|
336
363
|
return _ref5.apply(this, arguments);
|
|
@@ -479,6 +506,71 @@ export default (function (props) {
|
|
|
479
506
|
useEffect(function () {
|
|
480
507
|
setPage('list');
|
|
481
508
|
}, [type]);
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @title 保存配对信息
|
|
512
|
+
* @description MX51设备配对的第一步不是直接保存,而是要先发起配对请求,等刷卡机上配对后,再保存
|
|
513
|
+
*/
|
|
514
|
+
var onSavePair = /*#__PURE__*/function () {
|
|
515
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(device) {
|
|
516
|
+
var eftposList, response;
|
|
517
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
518
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
519
|
+
case 0:
|
|
520
|
+
eftposList = [Eftpos.MX51];
|
|
521
|
+
if (!eftposList.includes(type)) {
|
|
522
|
+
_context6.next = 18;
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
_context6.prev = 2;
|
|
526
|
+
setLoading(true);
|
|
527
|
+
_context6.next = 6;
|
|
528
|
+
return pairRequest.run(_objectSpread(_objectSpread({}, (device === null || device === void 0 ? void 0 : device.connection) || {}), {}, {
|
|
529
|
+
type: type
|
|
530
|
+
}));
|
|
531
|
+
case 6:
|
|
532
|
+
response = _context6.sent;
|
|
533
|
+
if ((response === null || response === void 0 ? void 0 : response.code) == 200) {
|
|
534
|
+
pairModalHook.open({
|
|
535
|
+
data: {
|
|
536
|
+
type: type,
|
|
537
|
+
device: device,
|
|
538
|
+
pairResponse: response === null || response === void 0 ? void 0 : response.data
|
|
539
|
+
},
|
|
540
|
+
onCancel: function onCancel() {
|
|
541
|
+
pairModalHook.close();
|
|
542
|
+
},
|
|
543
|
+
onConfirm: function onConfirm() {
|
|
544
|
+
pairModalHook.close();
|
|
545
|
+
onSave(device);
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
_context6.next = 13;
|
|
550
|
+
break;
|
|
551
|
+
case 10:
|
|
552
|
+
_context6.prev = 10;
|
|
553
|
+
_context6.t0 = _context6["catch"](2);
|
|
554
|
+
console.error('onSavePair error =>', _context6.t0);
|
|
555
|
+
case 13:
|
|
556
|
+
_context6.prev = 13;
|
|
557
|
+
setLoading(false);
|
|
558
|
+
return _context6.finish(13);
|
|
559
|
+
case 16:
|
|
560
|
+
_context6.next = 19;
|
|
561
|
+
break;
|
|
562
|
+
case 18:
|
|
563
|
+
onSave(device);
|
|
564
|
+
case 19:
|
|
565
|
+
case "end":
|
|
566
|
+
return _context6.stop();
|
|
567
|
+
}
|
|
568
|
+
}, _callee6, null, [[2, 10, 13, 16]]);
|
|
569
|
+
}));
|
|
570
|
+
return function onSavePair(_x4) {
|
|
571
|
+
return _ref7.apply(this, arguments);
|
|
572
|
+
};
|
|
573
|
+
}();
|
|
482
574
|
if (type === Eftpos.Windcave) {
|
|
483
575
|
// 使用 stripe 支付 需要设置 商家参数
|
|
484
576
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PosTabs, {
|
|
@@ -567,7 +659,17 @@ export default (function (props) {
|
|
|
567
659
|
}), /*#__PURE__*/React.createElement(Drawer, {
|
|
568
660
|
open: page === 'edit',
|
|
569
661
|
onClose: onBack,
|
|
570
|
-
title:
|
|
662
|
+
title: type === Eftpos.MX51 ? /*#__PURE__*/React.createElement("span", {
|
|
663
|
+
style: {
|
|
664
|
+
display: 'inline-flex',
|
|
665
|
+
alignItems: 'center',
|
|
666
|
+
gap: '4px'
|
|
667
|
+
}
|
|
668
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
669
|
+
src: mx51SCISvg,
|
|
670
|
+
preview: false,
|
|
671
|
+
width: 24
|
|
672
|
+
}), /*#__PURE__*/React.createElement("span", null, "Simple Cloud Payments")) : locales.getText('page.eftpos.text.device.add')(status, name),
|
|
571
673
|
titleNoWrap: true,
|
|
572
674
|
zIndex: zIndex || 9999,
|
|
573
675
|
destroyOnClose: true,
|
|
@@ -578,8 +680,10 @@ export default (function (props) {
|
|
|
578
680
|
wrapperClassName: "pisell-lowcode__pos_box"
|
|
579
681
|
}, /*#__PURE__*/React.createElement(Device, {
|
|
580
682
|
formItemList: deviceItemList,
|
|
581
|
-
onSave:
|
|
582
|
-
key: "device".concat(type)
|
|
683
|
+
onSave: onSavePair,
|
|
684
|
+
key: "device".concat(type),
|
|
685
|
+
type: type,
|
|
686
|
+
status: status
|
|
583
687
|
}, pairStatus ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
584
688
|
label: "Status"
|
|
585
689
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -603,5 +707,5 @@ export default (function (props) {
|
|
|
603
707
|
tyroUrl: tyroUrl,
|
|
604
708
|
tyroVersion: tyroVersion,
|
|
605
709
|
device: deviceItem
|
|
606
|
-
})), contextHolder);
|
|
710
|
+
})), contextHolder, pairModalHook.visible && /*#__PURE__*/React.createElement(PairModal, pairModalHook.modalProps));
|
|
607
711
|
});
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
display: flex;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
|
|
92
91
|
.pisell-lowcode__pos_drawer {
|
|
93
92
|
transform: translateZ(0);
|
|
94
93
|
}
|
|
@@ -204,3 +203,29 @@
|
|
|
204
203
|
display: flex;
|
|
205
204
|
flex-direction: column;
|
|
206
205
|
}
|
|
206
|
+
.pisell-lowcode__pos-device-pair-text {
|
|
207
|
+
padding: 0 24px 0 34px;
|
|
208
|
+
color: #101828;
|
|
209
|
+
font-size: 14px;
|
|
210
|
+
font-weight: 400;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.pisell-lowcode__pos_message
|
|
214
|
+
.pisell-lowcode__pos_message-notice-content
|
|
215
|
+
.pisell-lowcode__pos_message-success {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.pisell-lowcode__pos_message-custom-content_mx51 {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
align-items: flex-start;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
|
|
226
|
+
> span:last-child {
|
|
227
|
+
display: flex;
|
|
228
|
+
gap: 10px;
|
|
229
|
+
flex-wrap: wrap;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
@@ -15,6 +15,7 @@ declare const _default: {
|
|
|
15
15
|
'page.eftpos.text.edit': string;
|
|
16
16
|
'page.eftpos.text.delete': string;
|
|
17
17
|
'page.eftpos.text.save': string;
|
|
18
|
+
'page.eftpos.text.pair': string;
|
|
18
19
|
'page.eftpos.text.confim.delete': string;
|
|
19
20
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
20
21
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -30,6 +31,13 @@ declare const _default: {
|
|
|
30
31
|
'page.eftpos.text.setting': string;
|
|
31
32
|
'page.eftpos.text.setting.tip': string;
|
|
32
33
|
'page.eftpos.text.setting.btn': string;
|
|
34
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
codeTitle: string;
|
|
38
|
+
cancenButtonText: string;
|
|
39
|
+
okButtonText: string;
|
|
40
|
+
} | undefined;
|
|
33
41
|
};
|
|
34
42
|
'zh-CN': {
|
|
35
43
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -47,6 +55,7 @@ declare const _default: {
|
|
|
47
55
|
'page.eftpos.text.edit': string;
|
|
48
56
|
'page.eftpos.text.delete': string;
|
|
49
57
|
'page.eftpos.text.save': string;
|
|
58
|
+
'page.eftpos.text.pair': string;
|
|
50
59
|
'page.eftpos.text.confim.delete': string;
|
|
51
60
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
52
61
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -62,6 +71,13 @@ declare const _default: {
|
|
|
62
71
|
'page.eftpos.text.setting': string;
|
|
63
72
|
'page.eftpos.text.setting.tip': string;
|
|
64
73
|
'page.eftpos.text.setting.btn': string;
|
|
74
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
75
|
+
title: string;
|
|
76
|
+
description: string;
|
|
77
|
+
codeTitle: string;
|
|
78
|
+
cancenButtonText: string;
|
|
79
|
+
okButtonText: string;
|
|
80
|
+
} | undefined;
|
|
65
81
|
};
|
|
66
82
|
'zh-HK': {
|
|
67
83
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -79,6 +95,7 @@ declare const _default: {
|
|
|
79
95
|
'page.eftpos.text.edit': string;
|
|
80
96
|
'page.eftpos.text.delete': string;
|
|
81
97
|
'page.eftpos.text.save': string;
|
|
98
|
+
'page.eftpos.text.pair': string;
|
|
82
99
|
'page.eftpos.text.confim.delete': string;
|
|
83
100
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
84
101
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -94,6 +111,13 @@ declare const _default: {
|
|
|
94
111
|
'page.eftpos.text.setting': string;
|
|
95
112
|
'page.eftpos.text.setting.tip': string;
|
|
96
113
|
'page.eftpos.text.setting.btn': string;
|
|
114
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
115
|
+
title: string;
|
|
116
|
+
description: string;
|
|
117
|
+
codeTitle: string;
|
|
118
|
+
cancenButtonText: string;
|
|
119
|
+
okButtonText: string;
|
|
120
|
+
} | undefined;
|
|
97
121
|
};
|
|
98
122
|
};
|
|
99
123
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
2
|
+
en: {
|
|
3
3
|
'page.eftpos.text.manufacturer': 'Manufacturer',
|
|
4
4
|
'page.eftpos.text.description': 'Description',
|
|
5
5
|
'page.eftpos.text.status': 'status',
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
if (!name) {
|
|
10
10
|
return "Add device";
|
|
11
11
|
}
|
|
12
|
-
var action = status ==
|
|
12
|
+
var action = status == 'add' ? 'Add' : status == 'edit' ? 'Edit' : 'Repair';
|
|
13
13
|
return "".concat(action, " ").concat(name, " device");
|
|
14
14
|
},
|
|
15
15
|
'page.eftpos.text.device.list': 'Device list',
|
|
@@ -21,6 +21,7 @@ export default {
|
|
|
21
21
|
'page.eftpos.text.edit': 'Edit',
|
|
22
22
|
'page.eftpos.text.delete': 'Delete',
|
|
23
23
|
'page.eftpos.text.save': 'Save',
|
|
24
|
+
'page.eftpos.text.pair': 'Pair',
|
|
24
25
|
'page.eftpos.text.confim.delete': 'Confirm delete',
|
|
25
26
|
'page.eftpos.text.confirm_delete-message': function pageEftposTextConfirm_deleteMessage(x) {
|
|
26
27
|
return "Confirm delete ".concat(x, " Device");
|
|
@@ -37,7 +38,34 @@ export default {
|
|
|
37
38
|
'page.eftpos.text.log': 'Log',
|
|
38
39
|
'page.eftpos.text.setting': 'Setting',
|
|
39
40
|
'page.eftpos.text.setting.tip': 'You have not configured the necessary parameters, which may affect the normal use of your POS! ',
|
|
40
|
-
'page.eftpos.text.setting.btn': 'Go to configure'
|
|
41
|
+
'page.eftpos.text.setting.btn': 'Go to configure',
|
|
42
|
+
'page.eftpos.text.pair.modal.content.text-info': function pageEftposTextPairModalContentTextInfo(status) {
|
|
43
|
+
if (status === 'pairing') {
|
|
44
|
+
return {
|
|
45
|
+
title: 'Pairing',
|
|
46
|
+
description: 'Confirm the code on the EFTPOS terminal to continue.',
|
|
47
|
+
codeTitle: 'Code',
|
|
48
|
+
cancenButtonText: 'Cancel',
|
|
49
|
+
okButtonText: 'Check status'
|
|
50
|
+
};
|
|
51
|
+
} else if (status === 'success') {
|
|
52
|
+
return {
|
|
53
|
+
title: 'Pairing is active',
|
|
54
|
+
description: 'You are ready to go!',
|
|
55
|
+
codeTitle: '',
|
|
56
|
+
cancenButtonText: 'Unpair',
|
|
57
|
+
okButtonText: 'Confirm'
|
|
58
|
+
};
|
|
59
|
+
} else if (status === 'failed') {
|
|
60
|
+
return {
|
|
61
|
+
title: 'Pairing not active',
|
|
62
|
+
description: 'Check the terminal, confirm the pairing code, then try again.',
|
|
63
|
+
codeTitle: 'Code',
|
|
64
|
+
cancenButtonText: 'Cancel',
|
|
65
|
+
okButtonText: 'Check status'
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
41
69
|
},
|
|
42
70
|
'zh-CN': {
|
|
43
71
|
'page.eftpos.text.manufacturer': '厂商',
|
|
@@ -49,7 +77,7 @@ export default {
|
|
|
49
77
|
if (!name) {
|
|
50
78
|
return "\u6DFB\u52A0\u8BBE\u5907";
|
|
51
79
|
}
|
|
52
|
-
var action = status ==
|
|
80
|
+
var action = status == 'add' ? '添加' : status == 'edit' ? '编辑' : '重新配置';
|
|
53
81
|
return "".concat(action, " ").concat(name, " \u8BBE\u5907");
|
|
54
82
|
},
|
|
55
83
|
'page.eftpos.text.device.list': '设备列表',
|
|
@@ -61,6 +89,7 @@ export default {
|
|
|
61
89
|
'page.eftpos.text.edit': '编辑',
|
|
62
90
|
'page.eftpos.text.delete': '删除',
|
|
63
91
|
'page.eftpos.text.save': '保存',
|
|
92
|
+
'page.eftpos.text.pair': '配对',
|
|
64
93
|
'page.eftpos.text.confim.delete': '确认删除',
|
|
65
94
|
'page.eftpos.text.confirm_delete-message': function pageEftposTextConfirm_deleteMessage(x) {
|
|
66
95
|
return "\u786E\u8BA4\u5220\u9664 ".concat(x, " \u8BBE\u5907\u5417\uFF1F");
|
|
@@ -77,7 +106,34 @@ export default {
|
|
|
77
106
|
'page.eftpos.text.log': '日志',
|
|
78
107
|
'page.eftpos.text.setting': '设置',
|
|
79
108
|
'page.eftpos.text.setting.tip': '您尚未配置必要参数,这可能会影响您Pos的正常使用!',
|
|
80
|
-
'page.eftpos.text.setting.btn': '前往配置'
|
|
109
|
+
'page.eftpos.text.setting.btn': '前往配置',
|
|
110
|
+
'page.eftpos.text.pair.modal.content.text-info': function pageEftposTextPairModalContentTextInfo(status) {
|
|
111
|
+
if (status === 'pairing') {
|
|
112
|
+
return {
|
|
113
|
+
title: '正在配对',
|
|
114
|
+
description: '请在刷卡机上确认配对码以继续。',
|
|
115
|
+
codeTitle: '配对码',
|
|
116
|
+
cancenButtonText: '取消',
|
|
117
|
+
okButtonText: '检查状态'
|
|
118
|
+
};
|
|
119
|
+
} else if (status === 'success') {
|
|
120
|
+
return {
|
|
121
|
+
title: '配对成功',
|
|
122
|
+
description: '设备已成功连接,可开始使用。',
|
|
123
|
+
codeTitle: '',
|
|
124
|
+
cancenButtonText: '解除配对',
|
|
125
|
+
okButtonText: '确认'
|
|
126
|
+
};
|
|
127
|
+
} else if (status === 'failed') {
|
|
128
|
+
return {
|
|
129
|
+
title: '配对未生效',
|
|
130
|
+
description: '请检查刷卡机并确认配对码后重试。',
|
|
131
|
+
codeTitle: '配对码',
|
|
132
|
+
cancenButtonText: '取消',
|
|
133
|
+
okButtonText: '检查状态'
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
81
137
|
},
|
|
82
138
|
'zh-HK': {
|
|
83
139
|
'page.eftpos.text.manufacturer': '廠商',
|
|
@@ -89,7 +145,7 @@ export default {
|
|
|
89
145
|
if (!name) {
|
|
90
146
|
return "\u6DFB\u52A0\u8A2D\u5099";
|
|
91
147
|
}
|
|
92
|
-
var action = status ==
|
|
148
|
+
var action = status == 'add' ? '添加' : status == 'edit' ? '編輯' : '重新配置';
|
|
93
149
|
return "".concat(action, " ").concat(name, " \u8A2D\u5099");
|
|
94
150
|
},
|
|
95
151
|
'page.eftpos.text.device.list': '設備列表',
|
|
@@ -101,6 +157,7 @@ export default {
|
|
|
101
157
|
'page.eftpos.text.edit': '編輯',
|
|
102
158
|
'page.eftpos.text.delete': '删除',
|
|
103
159
|
'page.eftpos.text.save': '保存',
|
|
160
|
+
'page.eftpos.text.pair': '配對',
|
|
104
161
|
'page.eftpos.text.confim.delete': '確認刪除',
|
|
105
162
|
'page.eftpos.text.confirm_delete-message': function pageEftposTextConfirm_deleteMessage(x) {
|
|
106
163
|
return "\u78BA\u8A8D\u522A\u9664 ".concat(x, " \u8A2D\u5099\u55CE\uFF1F");
|
|
@@ -117,6 +174,33 @@ export default {
|
|
|
117
174
|
'page.eftpos.text.log': '日誌',
|
|
118
175
|
'page.eftpos.text.setting': '设置',
|
|
119
176
|
'page.eftpos.text.setting.tip': '您尚未配置必要參數,這可能會影響您Pos的正常使用!',
|
|
120
|
-
'page.eftpos.text.setting.btn': '前往配置'
|
|
177
|
+
'page.eftpos.text.setting.btn': '前往配置',
|
|
178
|
+
'page.eftpos.text.pair.modal.content.text-info': function pageEftposTextPairModalContentTextInfo(status) {
|
|
179
|
+
if (status === 'pairing') {
|
|
180
|
+
return {
|
|
181
|
+
title: '正在配對',
|
|
182
|
+
description: '請在刷卡機上確認配對碼以繼續。',
|
|
183
|
+
codeTitle: '配對碼',
|
|
184
|
+
cancenButtonText: '取消',
|
|
185
|
+
okButtonText: '檢查狀態'
|
|
186
|
+
};
|
|
187
|
+
} else if (status === 'success') {
|
|
188
|
+
return {
|
|
189
|
+
title: '配對成功',
|
|
190
|
+
description: '設備已成功連接,可開始使用。',
|
|
191
|
+
codeTitle: '',
|
|
192
|
+
cancenButtonText: '解除配對',
|
|
193
|
+
okButtonText: '確認'
|
|
194
|
+
};
|
|
195
|
+
} else if (status === 'failed') {
|
|
196
|
+
return {
|
|
197
|
+
title: '配對未生效',
|
|
198
|
+
description: '請檢查刷卡機並確認配對碼後重試。',
|
|
199
|
+
codeTitle: '配對碼',
|
|
200
|
+
cancenButtonText: '取消',
|
|
201
|
+
okButtonText: '檢查狀態'
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}
|
|
121
205
|
}
|
|
122
206
|
};
|