@pisell/private-materials 6.3.88 → 6.3.90
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 +10 -10
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/es/components/{eftpos/PairModal → ecocup/components/AddCustomerModal}/index.js +159 -189
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/es/components/ecocup/components/CustomerCard/index.js +34 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/es/components/ecocup/components/PageHeader/index.js +37 -0
- package/es/components/ecocup/components/PageHeader/index.less +19 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/es/components/ecocup/components/SearchBar/index.js +218 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/cupList/const.d.ts +133 -0
- package/es/components/ecocup/cupList/const.js +306 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.js +172 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
- package/es/components/ecocup/cupList/index.d.ts +6 -0
- package/es/components/ecocup/cupList/index.js +220 -0
- package/es/components/ecocup/cupList/index.less +113 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/cupProject/const.js +27 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +103 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.d.ts +49 -0
- package/es/components/ecocup/hooks.js +151 -0
- package/es/components/ecocup/locales.d.ts +339 -0
- package/es/components/ecocup/locales.js +372 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftpos/const.d.ts +1 -3
- package/es/components/eftpos/const.js +0 -2
- package/es/components/eftpos/device.d.ts +1 -3
- package/es/components/eftpos/device.js +3 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -7
- package/es/components/eftpos/hooks.js +0 -20
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/index.js +14 -118
- package/es/components/eftpos/index.less +1 -26
- package/es/components/eftpos/locales.d.ts +0 -24
- package/es/components/eftpos/locales.js +7 -91
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +1 -6
- package/es/components/eftposPay/const.js +0 -2
- package/es/components/eftposPay/device.js +208 -36
- package/es/components/eftposPay/hooks.d.ts +1 -2
- package/es/components/eftposPay/hooks.js +0 -12
- package/es/components/eftposPay/linkly/index.js +0 -1
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -4
- package/es/components/eftposPay/pay.js +2 -7
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/index.d.ts +6 -1
- package/es/index.js +6 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +835 -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/saasAttendance/index.d.ts +6 -0
- package/es/plus/saasAttendance/index.js +5 -0
- package/es/plus/saasAttendance/locales.d.ts +318 -0
- package/es/plus/saasAttendance/locales.js +354 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.js +96 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.js +81 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.js +293 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +109 -0
- package/es/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/es/plus/saasAttendance/settings/components/MapField.js +810 -0
- package/es/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/es/plus/saasAttendance/settings/components/index.js +2 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +7 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.js +216 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.js +438 -0
- package/es/plus/saasAttendance/settings/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/index.js +255 -0
- package/es/plus/saasAttendance/settings/index.less +495 -0
- package/es/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/es/plus/saasAttendance/settings/serve.js +83 -0
- package/es/plus/saasAttendance/settings/types.d.ts +128 -0
- package/es/plus/saasAttendance/settings/types.js +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/locales.d.ts +6 -0
- package/es/plus/selectHolder/locales.js +6 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/NumericStepper/index.d.ts +28 -3
- package/es/pro/NumericStepper/index.js +175 -107
- package/es/pro/NumericStepper/index.less +295 -143
- package/es/pro/Selector/Selector.js +33 -26
- 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 +1 -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 +5 -3
- 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 +1 -0
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -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 +40 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +54 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/es/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/es/pro/comprehensiveSearch/components/index.js +2 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +140 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +14 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +7 -0
- package/es/pro/comprehensiveSearch/index.js +207 -0
- package/es/pro/comprehensiveSearch/index.less +196 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/locales.js +14 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/comprehensiveSearch/types.js +1 -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/pisellPaymentList/example.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
- package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/lib/components/ecocup/components/PageHeader/index.js +59 -0
- package/lib/components/ecocup/components/PageHeader/index.less +19 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/{eftposPay/mx51/types.js → ecocup/components/SearchBar/const.js} +28 -17
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/lib/components/ecocup/components/SearchBar/index.js +213 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/cupList/const.d.ts +133 -0
- package/lib/components/ecocup/cupList/const.js +326 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +39 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
- package/lib/components/ecocup/cupList/index.d.ts +6 -0
- package/lib/components/ecocup/cupList/index.js +208 -0
- package/lib/components/ecocup/cupList/index.less +113 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/cupProject/const.js +58 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +126 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/{eftposPay/aggregatePayment → ecocup/customerList/hooks}/index.js +10 -10
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.d.ts +49 -0
- package/lib/components/ecocup/hooks.js +155 -0
- package/lib/components/ecocup/locales.d.ts +339 -0
- package/lib/components/ecocup/locales.js +389 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftpos/const.d.ts +1 -3
- package/lib/components/eftpos/const.js +0 -2
- package/lib/components/eftpos/device.d.ts +1 -3
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -7
- package/lib/components/eftpos/hooks.js +0 -19
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/index.js +7 -73
- package/lib/components/eftpos/index.less +1 -26
- package/lib/components/eftpos/locales.d.ts +0 -24
- package/lib/components/eftpos/locales.js +4 -88
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +1 -6
- package/lib/components/eftposPay/const.js +0 -2
- package/lib/components/eftposPay/device.js +108 -23
- package/lib/components/eftposPay/hooks.d.ts +1 -2
- package/lib/components/eftposPay/hooks.js +0 -16
- package/lib/components/eftposPay/linkly/index.js +0 -1
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -6
- package/lib/components/eftposPay/pay.js +2 -4
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/index.d.ts +6 -1
- package/lib/index.js +16 -1
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +567 -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/saasAttendance/index.d.ts +6 -0
- package/lib/plus/saasAttendance/index.js +39 -0
- package/lib/plus/saasAttendance/locales.d.ts +318 -0
- package/lib/plus/saasAttendance/locales.js +342 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.js +152 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.js +88 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.js +369 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +106 -0
- package/lib/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/lib/plus/saasAttendance/settings/components/MapField.js +631 -0
- package/lib/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/lib/plus/saasAttendance/settings/components/index.js +42 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +7 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.js +247 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.js +447 -0
- package/lib/plus/saasAttendance/settings/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/index.js +283 -0
- package/lib/plus/saasAttendance/settings/index.less +495 -0
- package/lib/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/lib/plus/saasAttendance/settings/serve.js +54 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +128 -0
- package/lib/plus/saasAttendance/settings/types.js +17 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/locales.d.ts +6 -0
- package/lib/plus/selectHolder/locales.js +6 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/NumericStepper/index.d.ts +28 -3
- package/lib/pro/NumericStepper/index.js +176 -88
- package/lib/pro/NumericStepper/index.less +295 -143
- package/lib/pro/Selector/Selector.js +27 -16
- 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 +1 -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 +5 -3
- 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 +1 -0
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -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 +40 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +64 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/lib/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/lib/pro/comprehensiveSearch/components/index.js +42 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +153 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +38 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +7 -0
- package/lib/pro/comprehensiveSearch/index.js +190 -0
- package/lib/pro/comprehensiveSearch/index.less +196 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/locales.js +38 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -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/pisellPaymentList/example.d.ts +1 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/lowcode/saas-attendance-settings/meta.ts +56 -0
- package/package.json +6 -6
- package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/es/components/eftpos/PairModal/hooks.js +0 -67
- package/es/components/eftpos/PairModal/index.d.ts +0 -11
- package/es/components/eftpos/PairModal/index.less +0 -70
- package/es/components/eftpos/assets/mx51SCI.svg +0 -15
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -125
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/es/components/eftposPay/aggregatePayment/mock.js +0 -567
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -70
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -96
- package/es/components/eftposPay/aggregatePayment/types.js +0 -61
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -385
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1127
- package/es/components/eftposPay/mx51/Action.d.ts +0 -6
- package/es/components/eftposPay/mx51/Action.js +0 -91
- package/es/components/eftposPay/mx51/const.d.ts +0 -5
- package/es/components/eftposPay/mx51/const.js +0 -69
- package/es/components/eftposPay/mx51/index.d.ts +0 -6
- package/es/components/eftposPay/mx51/index.js +0 -362
- package/es/components/eftposPay/mx51/types.d.ts +0 -136
- package/es/components/eftposPay/mx51/types.js +0 -29
- package/es/components/eftposPay/mx51/utils.d.ts +0 -10
- package/es/components/eftposPay/mx51/utils.js +0 -120
- package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/lib/components/eftpos/PairModal/hooks.js +0 -70
- package/lib/components/eftpos/PairModal/index.d.ts +0 -11
- package/lib/components/eftpos/PairModal/index.js +0 -197
- package/lib/components/eftpos/PairModal/index.less +0 -70
- package/lib/components/eftpos/assets/mx51SCI.svg +0 -15
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -152
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/lib/components/eftposPay/aggregatePayment/mock.js +0 -679
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -96
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -302
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -746
- package/lib/components/eftposPay/mx51/Action.d.ts +0 -6
- package/lib/components/eftposPay/mx51/Action.js +0 -127
- package/lib/components/eftposPay/mx51/const.d.ts +0 -5
- package/lib/components/eftposPay/mx51/const.js +0 -85
- package/lib/components/eftposPay/mx51/index.d.ts +0 -6
- package/lib/components/eftposPay/mx51/index.js +0 -330
- package/lib/components/eftposPay/mx51/types.d.ts +0 -136
- package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
- package/lib/components/eftposPay/mx51/utils.js +0 -114
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const EcoCupListMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'EcoCupList',
|
|
5
|
+
title: 'EcoCupList',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/private-materials',
|
|
11
|
+
version: '1.0.0',
|
|
12
|
+
exportName: 'EcoCupList',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
props: [],
|
|
18
|
+
configure: {
|
|
19
|
+
props: [],
|
|
20
|
+
supports: {
|
|
21
|
+
style: true,
|
|
22
|
+
},
|
|
23
|
+
component: {},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const snippets: Snippet[] = [
|
|
28
|
+
{
|
|
29
|
+
title: 'EcoCupList',
|
|
30
|
+
screenshot: '',
|
|
31
|
+
schema: {
|
|
32
|
+
componentName: 'EcoCupList',
|
|
33
|
+
props: {},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
export default { ...EcoCupListMeta, snippets };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// 生成一份最简单的低代码配置文件
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const CupProjectMeta: ComponentMetadata = {
|
|
5
|
+
componentName: 'EcoCupProject',
|
|
6
|
+
title: 'Eco Cup Project',
|
|
7
|
+
docUrl: '',
|
|
8
|
+
screenshot: '',
|
|
9
|
+
devMode: 'proCode',
|
|
10
|
+
npm: {
|
|
11
|
+
package: '@pisell/private-materials',
|
|
12
|
+
version: '1.0.0',
|
|
13
|
+
exportName: 'EcoCupProject',
|
|
14
|
+
main: 'src/index.tsx',
|
|
15
|
+
destructuring: true,
|
|
16
|
+
subName: '',
|
|
17
|
+
},
|
|
18
|
+
props: [],
|
|
19
|
+
configure: {
|
|
20
|
+
props: [],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const snippets: Snippet[] = [
|
|
25
|
+
{
|
|
26
|
+
title: 'Eco Cup Project',
|
|
27
|
+
screenshot: '',
|
|
28
|
+
schema: {
|
|
29
|
+
componentName: 'EcoCupProject',
|
|
30
|
+
props: {},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
export default { ...CupProjectMeta, snippets };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const EcoCustomerListMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'EcoCustomerList',
|
|
5
|
+
title: 'EcoCustomerList',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/private-materials',
|
|
11
|
+
version: '1.0.0',
|
|
12
|
+
exportName: 'EcoCustomerList',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
props: [],
|
|
18
|
+
configure: {
|
|
19
|
+
props: [],
|
|
20
|
+
supports: {
|
|
21
|
+
style: true,
|
|
22
|
+
},
|
|
23
|
+
component: {},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const snippets: Snippet[] = [
|
|
28
|
+
{
|
|
29
|
+
title: 'EcoCustomerList',
|
|
30
|
+
screenshot: '',
|
|
31
|
+
schema: {
|
|
32
|
+
componentName: 'EcoCustomerList',
|
|
33
|
+
props: {},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
export default { ...EcoCustomerListMeta, snippets };
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const Meta = {
|
|
2
|
+
componentName: 'SaasAttendance.Settings',
|
|
3
|
+
title: '考勤组设置',
|
|
4
|
+
docUrl: '',
|
|
5
|
+
screenshot: '',
|
|
6
|
+
devMode: 'proCode',
|
|
7
|
+
npm: {
|
|
8
|
+
package: '@pisell/private-materials',
|
|
9
|
+
version: '1.0.0',
|
|
10
|
+
exportName: 'SaasAttendance',
|
|
11
|
+
main: 'src/index.tsx',
|
|
12
|
+
destructuring: true,
|
|
13
|
+
subName: 'Settings',
|
|
14
|
+
},
|
|
15
|
+
configure: {
|
|
16
|
+
props: [
|
|
17
|
+
{
|
|
18
|
+
name: 'value',
|
|
19
|
+
title: { label: '当前值', tip: '当前值' },
|
|
20
|
+
setter: 'JsonSetter',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'loading',
|
|
24
|
+
title: { label: '加载中' },
|
|
25
|
+
setter: 'BoolSetter',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
supports: {
|
|
29
|
+
style: true,
|
|
30
|
+
events: [
|
|
31
|
+
{
|
|
32
|
+
name: 'onValuesChange',
|
|
33
|
+
template:
|
|
34
|
+
"onValuesChange(changedValues, allValues){\n// 输入框内容变化时的回调\nconsole.log('onValuesChange',changedValues, allValues);}",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'onFinish',
|
|
38
|
+
template:
|
|
39
|
+
"onFinish(allValues){\n// 点击确定时的回调\nconsole.log('onFinish',allValues);}",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
...Meta,
|
|
48
|
+
snippets: [
|
|
49
|
+
{
|
|
50
|
+
title: '考勤组设置',
|
|
51
|
+
schema: {
|
|
52
|
+
componentName: 'SaasAttendance.Settings',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.90",
|
|
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/
|
|
80
|
-
"@pisell/
|
|
79
|
+
"@pisell/utils": "3.0.5",
|
|
80
|
+
"@pisell/materials": "6.3.24",
|
|
81
81
|
"@pisell/icon": "0.0.11",
|
|
82
|
-
"@pisell/
|
|
82
|
+
"@pisell/date-picker": "3.0.8"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface ModalProps {
|
|
2
|
-
visible?: boolean;
|
|
3
|
-
data?: Record<string, any>;
|
|
4
|
-
onCancel?: () => void;
|
|
5
|
-
onCheck?: () => void;
|
|
6
|
-
onConfirm?: () => void;
|
|
7
|
-
close?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const usePairModal: () => {
|
|
10
|
-
visible: boolean;
|
|
11
|
-
open: (props: ModalProps) => void;
|
|
12
|
-
close: () => void;
|
|
13
|
-
modalProps: ModalProps;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title 解除配对
|
|
17
|
-
*/
|
|
18
|
-
export declare const useUnPairRequest: () => {
|
|
19
|
-
run: (params: any) => any;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @title 检查配对状态
|
|
23
|
-
*/
|
|
24
|
-
export declare const useCheckPairRequest: () => {
|
|
25
|
-
run: (params: any) => any;
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import { useRequest } from "../hooks";
|
|
15
|
-
export var usePairModal = function usePairModal() {
|
|
16
|
-
var _useState = useState(false),
|
|
17
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
-
visible = _useState2[0],
|
|
19
|
-
setVisible = _useState2[1];
|
|
20
|
-
var _useState3 = useState({}),
|
|
21
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
22
|
-
modalProps = _useState4[0],
|
|
23
|
-
setModalProps = _useState4[1];
|
|
24
|
-
var open = function open(props) {
|
|
25
|
-
setModalProps(_objectSpread(_objectSpread({}, props || {}), {}, {
|
|
26
|
-
visible: true,
|
|
27
|
-
close: close
|
|
28
|
-
}));
|
|
29
|
-
setVisible(true);
|
|
30
|
-
};
|
|
31
|
-
var close = function close() {
|
|
32
|
-
setVisible(false);
|
|
33
|
-
setModalProps({});
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
visible: visible,
|
|
37
|
-
open: open,
|
|
38
|
-
close: close,
|
|
39
|
-
modalProps: modalProps
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @title 解除配对
|
|
45
|
-
*/
|
|
46
|
-
export var useUnPairRequest = function useUnPairRequest() {
|
|
47
|
-
var request = useRequest();
|
|
48
|
-
var run = function run(params) {
|
|
49
|
-
return request.post('/shop/pay/card-reader/unpair', params, {});
|
|
50
|
-
};
|
|
51
|
-
return {
|
|
52
|
-
run: run
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @title 检查配对状态
|
|
58
|
-
*/
|
|
59
|
-
export var useCheckPairRequest = function useCheckPairRequest() {
|
|
60
|
-
var request = useRequest();
|
|
61
|
-
var run = function run(params) {
|
|
62
|
-
return request.post('/shop/pay/card-reader/pairing-info', params, {});
|
|
63
|
-
};
|
|
64
|
-
return {
|
|
65
|
-
run: run
|
|
66
|
-
};
|
|
67
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface PairModalProps {
|
|
4
|
-
visible?: boolean;
|
|
5
|
-
data?: Record<string, any>;
|
|
6
|
-
onCancel?: () => void;
|
|
7
|
-
onCheck?: () => void;
|
|
8
|
-
onConfirm?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const PairModal: React.FC<PairModalProps>;
|
|
11
|
-
export default PairModal;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
.pisell-lowcode__pos-device-pair-modal-content {
|
|
2
|
-
padding: 20px 0;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 20px;
|
|
6
|
-
|
|
7
|
-
&-top {
|
|
8
|
-
padding: 16px;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
gap: 8px;
|
|
12
|
-
border-radius: 12px;
|
|
13
|
-
box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
|
|
14
|
-
|
|
15
|
-
&-circle-1 {
|
|
16
|
-
margin: -8px 0 0 -8px;
|
|
17
|
-
width: 36px;
|
|
18
|
-
height: 36px;
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
border-radius: 50%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-circle-2 {
|
|
26
|
-
width: 28px;
|
|
27
|
-
height: 28px;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-right {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
gap: 4px;
|
|
38
|
-
|
|
39
|
-
&-title {
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-description {
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
font-weight: 400;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-code {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: 8px;
|
|
57
|
-
|
|
58
|
-
&-title {
|
|
59
|
-
color: var(--Gray-700, #344054);
|
|
60
|
-
font-size: 14px;
|
|
61
|
-
font-weight: 600;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-value {
|
|
65
|
-
color: var(--Gray-900, #101828);
|
|
66
|
-
font-size: 30px;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="0.5" y="0.5" width="119" height="119" rx="1.5" stroke="black" stroke-opacity="0.1"/>
|
|
3
|
-
<rect x="12" y="12" width="97" height="97" rx="14.9231" fill="url(#paint0_linear_2070_406)"/>
|
|
4
|
-
<path d="M38.3388 91.6821C36.7088 91.6821 35.2787 91.4809 34.0485 91.0783C32.8491 90.6758 31.8188 90.1959 30.9576 89.6385C30.1272 89.0502 29.466 88.4774 28.9739 87.9201C28.4818 87.3627 28.1435 86.9447 27.959 86.6661C27.4362 85.9849 27.1132 85.3966 26.9902 84.9012C26.8672 84.3748 26.9287 83.8484 27.1748 83.322C27.4515 82.7956 27.9129 82.2228 28.5587 81.6036C29.2046 81.0462 29.8043 80.7521 30.3579 80.7211C30.9422 80.6592 31.5112 80.7985 32.0648 81.1391C32.6184 81.4797 33.1566 81.9596 33.6794 82.5789C34.4176 83.4768 35.1403 84.1116 35.8477 84.4831C36.5858 84.8237 37.3547 84.994 38.1543 84.994C39.1692 84.994 40.0304 84.8702 40.7377 84.6225C41.4451 84.3748 41.9833 83.9877 42.3524 83.4614C42.7214 82.904 42.906 82.2073 42.906 81.3713C42.906 80.6901 42.6445 80.1483 42.1217 79.7458C41.6296 79.3123 40.953 78.9407 40.0919 78.6311C39.2615 78.3214 38.3235 78.0273 37.2778 77.7486C36.2629 77.439 35.2479 77.0829 34.233 76.6804C33.5257 76.4327 32.8491 76.123 32.2032 75.7515C31.5573 75.3799 30.9422 74.9619 30.3579 74.4975C29.7736 74.033 29.2661 73.4757 28.8355 72.8254C28.4357 72.1752 28.1128 71.4321 27.8667 70.5961C27.6515 69.7601 27.5438 68.8002 27.5438 67.7165C27.5438 65.8896 27.9898 64.2641 28.8817 62.8398C29.7736 61.4154 31.0038 60.3008 32.5723 59.4957C34.1715 58.6597 36.0014 58.2417 38.062 58.2417C39.446 58.2417 40.6455 58.3656 41.6604 58.6133C42.706 58.861 43.5826 59.1551 44.2899 59.4957C44.9973 59.8363 45.5509 60.1769 45.9507 60.5175C46.3813 60.8271 46.6734 61.0748 46.8272 61.2606C47.6884 62.0657 48.1651 62.7624 48.2573 63.3507C48.3496 63.908 48.0267 64.6976 47.2885 65.7194C46.5197 66.8031 45.7508 67.4069 44.9819 67.5307C44.2438 67.6546 43.398 67.3914 42.4446 66.7411C42.0756 66.4005 41.7065 66.0909 41.3374 65.8122C40.9684 65.5336 40.5224 65.3168 39.9996 65.162C39.5075 64.9762 38.8463 64.8833 38.0159 64.8833C37.5238 64.8833 37.0625 64.9607 36.6319 65.1156C36.2014 65.2394 35.8323 65.4252 35.5247 65.6729C35.2172 65.9206 34.9712 66.2302 34.7866 66.6018C34.6021 66.9424 34.5098 67.3294 34.5098 67.7629C34.5098 68.4751 34.7405 69.0479 35.2018 69.4814C35.6939 69.9149 36.3244 70.271 37.0933 70.5496C37.8929 70.7973 38.7694 71.045 39.7228 71.2928C40.707 71.5095 41.7065 71.7727 42.7214 72.0823C43.6441 72.392 44.536 72.779 45.3971 73.2434C46.2583 73.6769 47.0271 74.2343 47.7037 74.9155C48.3803 75.5967 48.9186 76.4482 49.3184 77.4699C49.7489 78.4917 49.9642 79.7457 49.9642 81.232C49.9642 83.0898 49.6106 84.6844 48.9032 86.0158C48.1958 87.3473 47.2578 88.431 46.0891 89.267C44.9204 90.103 43.6595 90.7068 42.3062 91.0783C40.953 91.4809 39.6305 91.6821 38.3388 91.6821Z" fill="white"/>
|
|
5
|
-
<path d="M70.5808 91.5892C69.2276 91.5892 67.7975 91.3725 66.2905 90.939C64.7835 90.5055 63.3072 89.8553 61.8618 88.9883C60.4163 88.1213 59.0938 87.0221 57.8943 85.6907C56.7257 84.3283 55.7876 82.7492 55.0803 80.9533C54.4037 79.1265 54.0653 77.0519 54.0653 74.7297C54.0653 72.5003 54.4037 70.5187 55.0803 68.7847C55.7876 67.0198 56.7257 65.4871 57.8943 64.1867C59.063 62.8862 60.3701 61.818 61.8156 60.982C63.2611 60.115 64.7527 59.4802 66.2905 59.0777C67.8282 58.6442 69.2891 58.4275 70.6731 58.4275C72.2416 58.4275 73.6102 58.6133 74.7789 58.9848C75.9476 59.3564 76.901 59.7434 77.6391 60.1459C78.3772 60.5175 78.8385 60.7807 79.0231 60.9355C79.5767 61.2761 80.0995 61.6632 80.5916 62.0966C81.0836 62.5301 81.3451 63.1029 81.3758 63.8151C81.3758 64.1867 81.2989 64.5582 81.1452 64.9298C81.0221 65.2704 80.8222 65.6419 80.5454 66.0445C80.0534 66.7566 79.5767 67.283 79.1153 67.6236C78.6848 67.9332 78.2388 68.088 77.7775 68.088C77.4084 68.088 77.0547 67.9952 76.7164 67.8094C76.4089 67.6236 76.0091 67.3759 75.517 67.0663C75.3017 66.9114 74.9941 66.7257 74.5943 66.5089C74.1945 66.2612 73.6563 66.0445 72.9797 65.8587C72.3031 65.6419 71.4419 65.5336 70.3963 65.5336C69.3198 65.5336 68.228 65.7348 67.1209 66.1374C66.0444 66.5089 65.0449 67.0817 64.1222 67.8558C63.1996 68.6299 62.4615 69.6207 61.9079 70.8283C61.3543 72.0049 61.0775 73.3828 61.0775 74.9619C61.0775 76.603 61.3543 78.0118 61.9079 79.1884C62.4922 80.365 63.2457 81.3404 64.1684 82.1144C65.091 82.8885 66.0906 83.4768 67.167 83.8794C68.2742 84.2509 69.3506 84.4367 70.3963 84.4367C71.3189 84.4367 72.1032 84.3438 72.749 84.158C73.4256 83.9722 73.9946 83.7555 74.4559 83.5078C74.948 83.2291 75.3632 82.9814 75.7015 82.7647C76.0398 82.5479 76.3781 82.3467 76.7164 82.1609C77.0855 81.9751 77.4546 81.8822 77.8236 81.8822C78.2542 81.8822 78.6848 82.0525 79.1153 82.3931C79.5767 82.7337 80.038 83.2756 80.4993 84.0187C80.7761 84.4212 80.9914 84.8237 81.1452 85.2263C81.2989 85.5978 81.3604 85.9694 81.3297 86.3409C81.3297 86.9912 81.0836 87.533 80.5916 87.9665C80.0995 88.369 79.5767 88.7406 79.0231 89.0812C78.777 89.2051 78.3003 89.4837 77.5929 89.9172C76.8856 90.3197 75.9476 90.6913 74.7789 91.0319C73.6102 91.4035 72.2108 91.5892 70.5808 91.5892Z" fill="white"/>
|
|
6
|
-
<path d="M89.6602 91.2177C88.553 91.2177 87.7534 91.0629 87.2613 90.7532C86.7692 90.4126 86.4617 89.9637 86.3387 89.4063C86.2464 88.849 86.2003 88.2762 86.2003 87.6879V62.2824C86.2003 61.6632 86.2464 61.0903 86.3387 60.564C86.4617 60.0376 86.7692 59.6041 87.2613 59.2635C87.7534 58.9229 88.5684 58.7526 89.7064 58.7526C90.875 58.7526 91.6901 58.9229 92.1514 59.2635C92.6435 59.6041 92.9356 60.0376 93.0279 60.564C93.1509 61.0903 93.2124 61.6786 93.2124 62.3289V87.7343C93.2124 88.3226 93.1509 88.8954 93.0279 89.4528C92.9049 89.9791 92.5973 90.4126 92.1052 90.7532C91.6439 91.0629 90.8289 91.2177 89.6602 91.2177Z" fill="white"/>
|
|
7
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M45.8041 35.9527C40.1321 38.1431 35.9705 44.2016 37.2148 51.3425C37.5331 53.1694 36.3102 54.9084 34.4834 55.2267C32.6565 55.5451 30.9175 54.3222 30.5991 52.4953C28.7602 41.9422 34.9718 32.9371 43.3849 29.6882C47.6281 28.0496 52.4777 27.8499 57.1512 29.6551C61.334 31.2708 65.1725 34.4113 68.2662 39.1703C70.6587 38.2805 74.3315 37.2718 78.2292 37.5666C80.9091 37.7693 83.7808 38.5954 86.3719 40.5668C88.9685 42.5423 91.0505 45.4911 92.4362 49.5495C93.0355 51.3044 92.0986 53.2128 90.3437 53.8121C88.5888 54.4113 86.6804 53.4744 86.0811 51.7195C85.0458 48.6875 83.6589 46.9408 82.3057 45.9112C80.947 44.8774 79.3879 44.3888 77.7227 44.2629C74.2477 44 70.7135 45.3476 69.1257 46.0778C67.0105 47.0505 64.5801 46.1664 63.4951 44.2478C60.8703 39.6062 57.7303 37.0777 54.7315 35.9194C51.7245 34.7579 48.6035 34.8717 45.8041 35.9527Z" fill="white"/>
|
|
8
|
-
<defs>
|
|
9
|
-
<linearGradient id="paint0_linear_2070_406" x1="178.008" y1="109" x2="-67.421" y2="12.2616" gradientUnits="userSpaceOnUse">
|
|
10
|
-
<stop stop-color="#DFD4FC"/>
|
|
11
|
-
<stop offset="0.58" stop-color="#8E7AF7"/>
|
|
12
|
-
<stop offset="1" stop-color="#261D46"/>
|
|
13
|
-
</linearGradient>
|
|
14
|
-
</defs>
|
|
15
|
-
</svg>
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { useEffect, useRef } from 'react';
|
|
8
|
-
import PaymentMethod from "../utils/payment";
|
|
9
|
-
import { ModeEnum } from "../../const";
|
|
10
|
-
import { useStoreRef } from "../../hooks";
|
|
11
|
-
import { getUuid } from "../../helper";
|
|
12
|
-
import { useDispatch, updateState } from "../../store";
|
|
13
|
-
import { useContextData } from "../../store";
|
|
14
|
-
export var usePayment = function usePayment(options) {
|
|
15
|
-
var _useContextData = useContextData(),
|
|
16
|
-
custom = _useContextData.custom;
|
|
17
|
-
var _useStoreRef = useStoreRef(),
|
|
18
|
-
modeRef = _useStoreRef.modeRef,
|
|
19
|
-
payRef = _useStoreRef.payRef,
|
|
20
|
-
orderIdRef = _useStoreRef.orderIdRef,
|
|
21
|
-
eftposRef = _useStoreRef.eftposRef,
|
|
22
|
-
deviceRef = _useStoreRef.deviceRef,
|
|
23
|
-
dataRef = _useStoreRef.dataRef,
|
|
24
|
-
amountRef = _useStoreRef.amountRef;
|
|
25
|
-
var paymentMethodRef = useRef(null);
|
|
26
|
-
var dispatch = useDispatch();
|
|
27
|
-
var uniquePaymentNumberRef = useRef(null);
|
|
28
|
-
var isPay = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay;
|
|
29
|
-
useEffect(function () {
|
|
30
|
-
if (!paymentMethodRef.current) {
|
|
31
|
-
var _deviceRef$current;
|
|
32
|
-
// 如果不存在交易号需要先创建一个交易号
|
|
33
|
-
if (!options.paymentNum) {
|
|
34
|
-
var paymentNum = getUuid();
|
|
35
|
-
dispatch(updateState({
|
|
36
|
-
number: paymentNum
|
|
37
|
-
}));
|
|
38
|
-
options.paymentNum = paymentNum;
|
|
39
|
-
uniquePaymentNumberRef.current = paymentNum;
|
|
40
|
-
} else {
|
|
41
|
-
uniquePaymentNumberRef.current = options.paymentNum;
|
|
42
|
-
}
|
|
43
|
-
options.orderId = orderIdRef.current;
|
|
44
|
-
options.deviceId = (_deviceRef$current = deviceRef.current) === null || _deviceRef$current === void 0 ? void 0 : _deviceRef$current.id;
|
|
45
|
-
paymentMethodRef.current = new PaymentMethod(options);
|
|
46
|
-
}
|
|
47
|
-
return function () {
|
|
48
|
-
var _paymentMethodRef$cur, _paymentMethodRef$cur2;
|
|
49
|
-
// 卸载组件时,如果paymentMethodRef存在需要先执行销毁,再清空
|
|
50
|
-
(_paymentMethodRef$cur = paymentMethodRef.current) === null || _paymentMethodRef$cur === void 0 || (_paymentMethodRef$cur2 = _paymentMethodRef$cur.destroy) === null || _paymentMethodRef$cur2 === void 0 || _paymentMethodRef$cur2.call(_paymentMethodRef$cur);
|
|
51
|
-
paymentMethodRef.current = null;
|
|
52
|
-
};
|
|
53
|
-
}, []);
|
|
54
|
-
var run = function run() {
|
|
55
|
-
var _payRef$current, _deviceRef$current2;
|
|
56
|
-
var params = {
|
|
57
|
-
order_id: orderIdRef.current,
|
|
58
|
-
unique_payment_number: uniquePaymentNumberRef.current,
|
|
59
|
-
payment_code: options.paymentCode,
|
|
60
|
-
amount: isPay ? (_payRef$current = payRef.current) === null || _payRef$current === void 0 ? void 0 : _payRef$current.total : amountRef.current,
|
|
61
|
-
operator_id: custom === null || custom === void 0 ? void 0 : custom.operator_id,
|
|
62
|
-
operator_type: custom === null || custom === void 0 ? void 0 : custom.operator_type,
|
|
63
|
-
platform: custom === null || custom === void 0 ? void 0 : custom.platform,
|
|
64
|
-
eftpos: {
|
|
65
|
-
card_reader_type: eftposRef.current,
|
|
66
|
-
card_reader_id: (_deviceRef$current2 = deviceRef.current) === null || _deviceRef$current2 === void 0 ? void 0 : _deviceRef$current2.id,
|
|
67
|
-
pay_param_base64: encodeURIComponent(btoa(encodeURIComponent(JSON.stringify(_objectSpread(_objectSpread({}, dataRef.current), {}, {
|
|
68
|
-
number: uniquePaymentNumberRef.current
|
|
69
|
-
})))))
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
if (isPay) {
|
|
73
|
-
var _payRef$current2, _payRef$current3, _payRef$current4, _paymentMethodRef$cur3;
|
|
74
|
-
params.payment = {
|
|
75
|
-
original_amount: (_payRef$current2 = payRef.current) === null || _payRef$current2 === void 0 ? void 0 : _payRef$current2.amount,
|
|
76
|
-
order_payment_type: 'normal',
|
|
77
|
-
// TODO: 需要使用方提供
|
|
78
|
-
custom_payment_id: custom === null || custom === void 0 ? void 0 : custom.custom_payment_id,
|
|
79
|
-
custom_payment_code: custom === null || custom === void 0 ? void 0 : custom.custom_payment_code,
|
|
80
|
-
custom_payment_name: custom === null || custom === void 0 ? void 0 : custom.custom_payment_name,
|
|
81
|
-
custom_payment_type: custom === null || custom === void 0 ? void 0 : custom.custom_payment_type,
|
|
82
|
-
service_charge: {
|
|
83
|
-
amount: (_payRef$current3 = payRef.current) === null || _payRef$current3 === void 0 ? void 0 : _payRef$current3.surMoney,
|
|
84
|
-
percentage: (_payRef$current4 = payRef.current) === null || _payRef$current4 === void 0 ? void 0 : _payRef$current4.surPercentRate
|
|
85
|
-
},
|
|
86
|
-
metadata: {
|
|
87
|
-
unique_payment_number: uniquePaymentNumberRef.current
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
(_paymentMethodRef$cur3 = paymentMethodRef.current) === null || _paymentMethodRef$cur3 === void 0 || _paymentMethodRef$cur3.pay(params);
|
|
91
|
-
} else {
|
|
92
|
-
var _paymentMethodRef$cur4;
|
|
93
|
-
(_paymentMethodRef$cur4 = paymentMethodRef.current) === null || _paymentMethodRef$cur4 === void 0 || _paymentMethodRef$cur4.refund(params);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var query = function query() {
|
|
97
|
-
if (isPay) {
|
|
98
|
-
var _paymentMethodRef$cur5;
|
|
99
|
-
(_paymentMethodRef$cur5 = paymentMethodRef.current) === null || _paymentMethodRef$cur5 === void 0 || _paymentMethodRef$cur5.payQuery();
|
|
100
|
-
} else {
|
|
101
|
-
var _paymentMethodRef$cur6;
|
|
102
|
-
(_paymentMethodRef$cur6 = paymentMethodRef.current) === null || _paymentMethodRef$cur6 === void 0 || _paymentMethodRef$cur6.refundQuery();
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
var action = function action(data) {
|
|
106
|
-
var params = {
|
|
107
|
-
order_id: orderIdRef.current,
|
|
108
|
-
unique_payment_number: uniquePaymentNumberRef.current,
|
|
109
|
-
payment_code: options.paymentCode,
|
|
110
|
-
data: data
|
|
111
|
-
};
|
|
112
|
-
if (isPay) {
|
|
113
|
-
var _paymentMethodRef$cur7;
|
|
114
|
-
(_paymentMethodRef$cur7 = paymentMethodRef.current) === null || _paymentMethodRef$cur7 === void 0 || _paymentMethodRef$cur7.payAction(params);
|
|
115
|
-
} else {
|
|
116
|
-
var _paymentMethodRef$cur8;
|
|
117
|
-
(_paymentMethodRef$cur8 = paymentMethodRef.current) === null || _paymentMethodRef$cur8 === void 0 || _paymentMethodRef$cur8.refundAction(params);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
return {
|
|
121
|
-
run: run,
|
|
122
|
-
query: query,
|
|
123
|
-
action: action
|
|
124
|
-
};
|
|
125
|
-
};
|