@pisell/private-materials 6.3.91 → 6.3.92
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 +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +10 -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 +14 -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 +15 -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 +14 -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 +20 -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 +9 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +7 -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 +13 -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 +44 -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 +3 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
- package/es/components/ecocup/cupList/index.d.ts +7 -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/hooks.d.ts +0 -7
- package/es/components/eftpos/hooks.js +0 -20
- package/es/components/eftpos/index.js +20 -127
- 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/eftposPay/app.d.ts +1 -1
- 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/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +12 -1
- package/es/index.js +11 -1
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +462 -0
- package/es/plus/clientCard/index.less +515 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/locales.js +17 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/Add/index.js +213 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +234 -0
- package/es/plus/clinetSearch/index.less +95 -0
- package/es/plus/clinetSearch/locales.d.ts +108 -0
- package/es/plus/clinetSearch/locales.js +107 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/clinetSearch/types.js +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 +5 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +7 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +6 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +155 -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 +8 -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/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/es/plus/saasRole/components/PermissionManager/index.js +211 -0
- package/es/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/es/plus/saasRole/index.d.ts +14 -0
- package/es/plus/saasRole/index.js +1036 -0
- package/es/plus/saasRole/index.less +196 -0
- package/es/plus/saasRole/locales.d.ts +193 -0
- package/es/plus/saasRole/locales.js +193 -0
- package/es/plus/saasRole/serve.d.ts +72 -0
- package/es/plus/saasRole/serve.js +304 -0
- package/es/plus/saasRole/types.d.ts +175 -0
- package/es/plus/saasRole/types.js +1 -0
- package/es/plus/saasRole/utils.d.ts +0 -0
- package/es/plus/saasRole/utils.js +0 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +31 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +503 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.js +634 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/es/plus/saasTeamMembers/index.d.ts +5 -0
- package/es/plus/saasTeamMembers/index.js +529 -0
- package/es/plus/saasTeamMembers/index.less +87 -0
- package/es/plus/saasTeamMembers/locales.d.ts +330 -0
- package/es/plus/saasTeamMembers/locales.js +375 -0
- package/es/plus/saasTeamMembers/serve.d.ts +95 -0
- package/es/plus/saasTeamMembers/serve.js +374 -0
- package/es/plus/saasTeamMembers/type.d.ts +156 -0
- package/es/plus/saasTeamMembers/type.js +1 -0
- package/es/plus/selectHolder/locales.d.ts +6 -0
- package/es/plus/selectHolder/locales.js +6 -0
- 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/passDetail/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +104 -39
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +19 -2
- package/es/plus/walletPassGallery/index.d.ts +4 -0
- package/es/plus/walletPassGallery/index.js +121 -42
- package/es/plus/walletPassGallery/serve.d.ts +3 -1
- package/es/plus/walletPassGallery/serve.js +13 -13
- 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.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/pisellPhoneKeyboard/index.d.ts +13 -0
- package/es/pro/pisellPhoneKeyboard/index.js +210 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +10 -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 +14 -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 +15 -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 +14 -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 +20 -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 +9 -0
- package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
- package/lib/components/ecocup/components/PageHeader/index.d.ts +7 -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 +13 -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 +44 -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 +3 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
- package/lib/components/ecocup/cupList/index.d.ts +7 -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/ecocup/customerList/hooks/index.js +32 -0
- 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/hooks.d.ts +0 -7
- package/lib/components/eftpos/hooks.js +0 -19
- package/lib/components/eftpos/index.js +8 -75
- 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/eftposPay/app.d.ts +1 -1
- 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/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +12 -1
- package/lib/index.js +31 -1
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +457 -0
- package/lib/plus/clientCard/index.less +515 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/locales.js +41 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/Add/index.js +244 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +237 -0
- package/lib/plus/clinetSearch/index.less +95 -0
- package/lib/plus/clinetSearch/locales.d.ts +108 -0
- package/lib/plus/clinetSearch/locales.js +131 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/{components/eftposPay/aggregatePayment/index.js → plus/clinetSearch/serve.js} +11 -10
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/clinetSearch/types.js +17 -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 +5 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +7 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +6 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +155 -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 +8 -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/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/lib/plus/saasRole/components/PermissionManager/index.js +159 -0
- package/lib/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/lib/plus/saasRole/index.d.ts +14 -0
- package/lib/plus/saasRole/index.js +780 -0
- package/lib/plus/saasRole/index.less +196 -0
- package/lib/plus/saasRole/locales.d.ts +193 -0
- package/lib/plus/saasRole/locales.js +219 -0
- package/lib/plus/saasRole/serve.d.ts +72 -0
- package/lib/plus/saasRole/serve.js +100 -0
- package/lib/plus/saasRole/types.d.ts +175 -0
- package/lib/plus/saasRole/types.js +17 -0
- package/lib/plus/saasRole/utils.d.ts +0 -0
- package/lib/plus/saasRole/utils.js +0 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +31 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +393 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.js +672 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/lib/plus/saasTeamMembers/index.d.ts +5 -0
- package/lib/plus/saasTeamMembers/index.js +448 -0
- package/lib/plus/saasTeamMembers/index.less +87 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +330 -0
- package/lib/plus/saasTeamMembers/locales.js +401 -0
- package/lib/plus/saasTeamMembers/serve.d.ts +95 -0
- package/lib/plus/saasTeamMembers/serve.js +132 -0
- package/lib/plus/saasTeamMembers/type.d.ts +156 -0
- package/lib/plus/saasTeamMembers/type.js +17 -0
- package/lib/plus/selectHolder/locales.d.ts +6 -0
- package/lib/plus/selectHolder/locales.js +6 -0
- 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/passDetail/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +57 -5
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
- package/lib/plus/walletPassGallery/index.d.ts +4 -0
- package/lib/plus/walletPassGallery/index.js +141 -42
- package/lib/plus/walletPassGallery/serve.d.ts +3 -1
- package/lib/plus/walletPassGallery/serve.js +2 -2
- 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.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/pisellPhoneKeyboard/index.d.ts +13 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +219 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +343 -0
- package/lowcode/client-search/meta.ts +316 -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/lowcode/saas-role/meta.ts +35 -0
- package/lowcode/saas-team-members/meta.ts +35 -0
- package/lowcode/wallet-pass-gallery/meta.ts +66 -1
- package/package.json +5 -5
- 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 -7
- 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 -7
- 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
|
@@ -19,8 +19,6 @@ 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";
|
|
24
22
|
return Eftpos;
|
|
25
23
|
}({});
|
|
26
24
|
export var DeviceEnum = /*#__PURE__*/function (DeviceEnum) {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DeviceProp
|
|
2
|
+
import { DeviceProp } 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';
|
|
9
7
|
}
|
|
10
8
|
declare const Device: (props: DeviceProps) => React.JSX.Element;
|
|
11
9
|
export default Device;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Form, Button } from 'antd';
|
|
3
3
|
import { locales } from '@pisell/utils';
|
|
4
|
-
import {
|
|
4
|
+
import { 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(
|
|
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, {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
14
12
|
layout: "vertical",
|
|
15
13
|
onFinish: onSave,
|
|
16
14
|
initialValues: initialValues,
|
|
@@ -31,6 +29,6 @@ var Device = function Device(props) {
|
|
|
31
29
|
style: {
|
|
32
30
|
height: '48px'
|
|
33
31
|
}
|
|
34
|
-
},
|
|
32
|
+
}, locales.getText('page.eftpos.text.save'))));
|
|
35
33
|
};
|
|
36
34
|
export default Device;
|
|
@@ -31,10 +31,3 @@ 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,8 +10,6 @@ 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
|
-
|
|
15
13
|
/**
|
|
16
14
|
* @title: tyro 设备连接
|
|
17
15
|
* @Author: hongbing.wang
|
|
@@ -117,22 +115,4 @@ export var useTyro = function useTyro(params) {
|
|
|
117
115
|
});
|
|
118
116
|
}, [url]);
|
|
119
117
|
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
|
-
};
|
|
138
118
|
};
|
|
@@ -23,15 +23,11 @@ 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 {
|
|
26
|
+
import { 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";
|
|
32
30
|
import { Eftpos, getCommByFields, DeviceEnum, getDefaultValue } from "./const";
|
|
33
|
-
import { Image } from '@pisell/materials';
|
|
34
|
-
import mx51SCISvg from "./assets/mx51SCI.svg";
|
|
35
31
|
import "./index.less";
|
|
36
32
|
locales.init(localeTexts, getLocale());
|
|
37
33
|
|
|
@@ -187,8 +183,6 @@ export default (function (props) {
|
|
|
187
183
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
188
184
|
posLoading = _useState22[0],
|
|
189
185
|
setPosLoading = _useState22[1];
|
|
190
|
-
var pairModalHook = usePairModal();
|
|
191
|
-
var pairRequest = usePairRequest();
|
|
192
186
|
|
|
193
187
|
/**
|
|
194
188
|
* @title: 删除设备
|
|
@@ -309,58 +303,34 @@ export default (function (props) {
|
|
|
309
303
|
* @Date: 2024-08-20 11:21
|
|
310
304
|
*/
|
|
311
305
|
var onSave = /*#__PURE__*/function () {
|
|
312
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(device
|
|
306
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(device) {
|
|
313
307
|
var update;
|
|
314
308
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
315
309
|
while (1) switch (_context4.prev = _context4.next) {
|
|
316
310
|
case 0:
|
|
317
311
|
console.log('device = ', device);
|
|
318
|
-
console.log('pair_response = ', pair_response);
|
|
319
312
|
update = /*#__PURE__*/function () {
|
|
320
313
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
321
|
-
var _device$connection, _device$connection2;
|
|
322
314
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
323
315
|
while (1) switch (_context3.prev = _context3.next) {
|
|
324
316
|
case 0:
|
|
325
|
-
_context3.
|
|
326
|
-
_context3.next = 3;
|
|
317
|
+
_context3.next = 2;
|
|
327
318
|
return onEdit(_objectSpread(_objectSpread({}, device), {}, {
|
|
328
|
-
type: type
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
if (type === Eftpos.MX51 && (status === DeviceEnum.Add || status === DeviceEnum.Repair)) {
|
|
334
|
-
messageApi.open({
|
|
335
|
-
type: 'success',
|
|
336
|
-
style: {
|
|
337
|
-
zIndex: (zIndex || 9999) + 1
|
|
338
|
-
},
|
|
339
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
340
|
-
className: "pisell-lowcode__pos_message-custom-content_mx51"
|
|
341
|
-
}, /*#__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) || '-')))
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
_context3.next = 9;
|
|
345
|
-
break;
|
|
346
|
-
case 6:
|
|
347
|
-
_context3.prev = 6;
|
|
348
|
-
_context3.t0 = _context3["catch"](0);
|
|
349
|
-
console.error('onSave error =>', _context3.t0);
|
|
350
|
-
case 9:
|
|
351
|
-
_context3.prev = 9;
|
|
319
|
+
type: type
|
|
320
|
+
}), status || 'add').catch(function () {
|
|
321
|
+
setLoading(false);
|
|
322
|
+
});
|
|
323
|
+
case 2:
|
|
352
324
|
setLoading(false);
|
|
353
|
-
|
|
354
|
-
case 12:
|
|
355
|
-
_context3.next = 14;
|
|
325
|
+
_context3.next = 5;
|
|
356
326
|
return tableRef.current.loadData();
|
|
357
|
-
case
|
|
327
|
+
case 5:
|
|
358
328
|
setPage('list');
|
|
359
|
-
case
|
|
329
|
+
case 6:
|
|
360
330
|
case "end":
|
|
361
331
|
return _context3.stop();
|
|
362
332
|
}
|
|
363
|
-
}, _callee3
|
|
333
|
+
}, _callee3);
|
|
364
334
|
}));
|
|
365
335
|
return function update() {
|
|
366
336
|
return _ref5.apply(this, arguments);
|
|
@@ -368,7 +338,7 @@ export default (function (props) {
|
|
|
368
338
|
}();
|
|
369
339
|
setLoading(true);
|
|
370
340
|
if (!(type === 'tyro' && status !== 'edit')) {
|
|
371
|
-
_context4.next =
|
|
341
|
+
_context4.next = 6;
|
|
372
342
|
break;
|
|
373
343
|
}
|
|
374
344
|
pair(_objectSpread(_objectSpread({}, config), device.connection), function (response) {
|
|
@@ -409,15 +379,15 @@ export default (function (props) {
|
|
|
409
379
|
update();
|
|
410
380
|
});
|
|
411
381
|
return _context4.abrupt("return");
|
|
412
|
-
case
|
|
382
|
+
case 6:
|
|
413
383
|
update();
|
|
414
|
-
case
|
|
384
|
+
case 7:
|
|
415
385
|
case "end":
|
|
416
386
|
return _context4.stop();
|
|
417
387
|
}
|
|
418
388
|
}, _callee4);
|
|
419
389
|
}));
|
|
420
|
-
return function onSave(_x3
|
|
390
|
+
return function onSave(_x3) {
|
|
421
391
|
return _ref4.apply(this, arguments);
|
|
422
392
|
};
|
|
423
393
|
}();
|
|
@@ -509,71 +479,6 @@ export default (function (props) {
|
|
|
509
479
|
useEffect(function () {
|
|
510
480
|
setPage('list');
|
|
511
481
|
}, [type]);
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* @title 保存配对信息
|
|
515
|
-
* @description MX51设备配对的第一步不是直接保存,而是要先发起配对请求,等刷卡机上配对后,再保存
|
|
516
|
-
*/
|
|
517
|
-
var onSavePair = /*#__PURE__*/function () {
|
|
518
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(device) {
|
|
519
|
-
var eftposList, response;
|
|
520
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
521
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
522
|
-
case 0:
|
|
523
|
-
eftposList = [Eftpos.MX51]; // MX51 设备在新增与重连时候需单独发起配对请求
|
|
524
|
-
if (!(eftposList.includes(type) && (status === DeviceEnum.Add || status === DeviceEnum.Repair))) {
|
|
525
|
-
_context6.next = 18;
|
|
526
|
-
break;
|
|
527
|
-
}
|
|
528
|
-
_context6.prev = 2;
|
|
529
|
-
setLoading(true);
|
|
530
|
-
_context6.next = 6;
|
|
531
|
-
return pairRequest.run(_objectSpread(_objectSpread({}, (device === null || device === void 0 ? void 0 : device.connection) || {}), {}, {
|
|
532
|
-
type: type
|
|
533
|
-
}));
|
|
534
|
-
case 6:
|
|
535
|
-
response = _context6.sent;
|
|
536
|
-
if ((response === null || response === void 0 ? void 0 : response.code) == 200) {
|
|
537
|
-
pairModalHook.open({
|
|
538
|
-
data: {
|
|
539
|
-
type: type,
|
|
540
|
-
device: device,
|
|
541
|
-
pairResponse: response === null || response === void 0 ? void 0 : response.data
|
|
542
|
-
},
|
|
543
|
-
onCancel: function onCancel() {
|
|
544
|
-
pairModalHook.close();
|
|
545
|
-
},
|
|
546
|
-
onConfirm: function onConfirm() {
|
|
547
|
-
pairModalHook.close();
|
|
548
|
-
onSave(device, response === null || response === void 0 ? void 0 : response.data);
|
|
549
|
-
}
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
_context6.next = 13;
|
|
553
|
-
break;
|
|
554
|
-
case 10:
|
|
555
|
-
_context6.prev = 10;
|
|
556
|
-
_context6.t0 = _context6["catch"](2);
|
|
557
|
-
console.error('onSavePair error =>', _context6.t0);
|
|
558
|
-
case 13:
|
|
559
|
-
_context6.prev = 13;
|
|
560
|
-
setLoading(false);
|
|
561
|
-
return _context6.finish(13);
|
|
562
|
-
case 16:
|
|
563
|
-
_context6.next = 19;
|
|
564
|
-
break;
|
|
565
|
-
case 18:
|
|
566
|
-
onSave(device);
|
|
567
|
-
case 19:
|
|
568
|
-
case "end":
|
|
569
|
-
return _context6.stop();
|
|
570
|
-
}
|
|
571
|
-
}, _callee6, null, [[2, 10, 13, 16]]);
|
|
572
|
-
}));
|
|
573
|
-
return function onSavePair(_x5) {
|
|
574
|
-
return _ref7.apply(this, arguments);
|
|
575
|
-
};
|
|
576
|
-
}();
|
|
577
482
|
if (type === Eftpos.Windcave) {
|
|
578
483
|
// 使用 stripe 支付 需要设置 商家参数
|
|
579
484
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PosTabs, {
|
|
@@ -662,17 +567,7 @@ export default (function (props) {
|
|
|
662
567
|
}), /*#__PURE__*/React.createElement(Drawer, {
|
|
663
568
|
open: page === 'edit',
|
|
664
569
|
onClose: onBack,
|
|
665
|
-
title:
|
|
666
|
-
style: {
|
|
667
|
-
display: 'inline-flex',
|
|
668
|
-
alignItems: 'center',
|
|
669
|
-
gap: '4px'
|
|
670
|
-
}
|
|
671
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
672
|
-
src: mx51SCISvg,
|
|
673
|
-
preview: false,
|
|
674
|
-
width: 24
|
|
675
|
-
}), /*#__PURE__*/React.createElement("span", null, "Simple Cloud Payments")) : locales.getText('page.eftpos.text.device.add')(status, name),
|
|
570
|
+
title: locales.getText('page.eftpos.text.device.add')(status, name),
|
|
676
571
|
titleNoWrap: true,
|
|
677
572
|
zIndex: zIndex || 9999,
|
|
678
573
|
destroyOnClose: true,
|
|
@@ -683,10 +578,8 @@ export default (function (props) {
|
|
|
683
578
|
wrapperClassName: "pisell-lowcode__pos_box"
|
|
684
579
|
}, /*#__PURE__*/React.createElement(Device, {
|
|
685
580
|
formItemList: deviceItemList,
|
|
686
|
-
onSave:
|
|
687
|
-
key: "device".concat(type)
|
|
688
|
-
type: type,
|
|
689
|
-
status: status
|
|
581
|
+
onSave: onSave,
|
|
582
|
+
key: "device".concat(type)
|
|
690
583
|
}, pairStatus ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
691
584
|
label: "Status"
|
|
692
585
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -710,5 +603,5 @@ export default (function (props) {
|
|
|
710
603
|
tyroUrl: tyroUrl,
|
|
711
604
|
tyroVersion: tyroVersion,
|
|
712
605
|
device: deviceItem
|
|
713
|
-
})), contextHolder
|
|
606
|
+
})), contextHolder);
|
|
714
607
|
});
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
display: flex;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
|
|
91
92
|
.pisell-lowcode__pos_drawer {
|
|
92
93
|
transform: translateZ(0);
|
|
93
94
|
}
|
|
@@ -203,29 +204,3 @@
|
|
|
203
204
|
display: flex;
|
|
204
205
|
flex-direction: column;
|
|
205
206
|
}
|
|
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,7 +15,6 @@ 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;
|
|
19
18
|
'page.eftpos.text.confim.delete': string;
|
|
20
19
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
21
20
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -31,13 +30,6 @@ declare const _default: {
|
|
|
31
30
|
'page.eftpos.text.setting': string;
|
|
32
31
|
'page.eftpos.text.setting.tip': string;
|
|
33
32
|
'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;
|
|
41
33
|
};
|
|
42
34
|
'zh-CN': {
|
|
43
35
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -55,7 +47,6 @@ declare const _default: {
|
|
|
55
47
|
'page.eftpos.text.edit': string;
|
|
56
48
|
'page.eftpos.text.delete': string;
|
|
57
49
|
'page.eftpos.text.save': string;
|
|
58
|
-
'page.eftpos.text.pair': string;
|
|
59
50
|
'page.eftpos.text.confim.delete': string;
|
|
60
51
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
61
52
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -71,13 +62,6 @@ declare const _default: {
|
|
|
71
62
|
'page.eftpos.text.setting': string;
|
|
72
63
|
'page.eftpos.text.setting.tip': string;
|
|
73
64
|
'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;
|
|
81
65
|
};
|
|
82
66
|
'zh-HK': {
|
|
83
67
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -95,7 +79,6 @@ declare const _default: {
|
|
|
95
79
|
'page.eftpos.text.edit': string;
|
|
96
80
|
'page.eftpos.text.delete': string;
|
|
97
81
|
'page.eftpos.text.save': string;
|
|
98
|
-
'page.eftpos.text.pair': string;
|
|
99
82
|
'page.eftpos.text.confim.delete': string;
|
|
100
83
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
101
84
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -111,13 +94,6 @@ declare const _default: {
|
|
|
111
94
|
'page.eftpos.text.setting': string;
|
|
112
95
|
'page.eftpos.text.setting.tip': string;
|
|
113
96
|
'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;
|
|
121
97
|
};
|
|
122
98
|
};
|
|
123
99
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
en: {
|
|
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,7 +21,6 @@ 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',
|
|
25
24
|
'page.eftpos.text.confim.delete': 'Confirm delete',
|
|
26
25
|
'page.eftpos.text.confirm_delete-message': function pageEftposTextConfirm_deleteMessage(x) {
|
|
27
26
|
return "Confirm delete ".concat(x, " Device");
|
|
@@ -38,34 +37,7 @@ export default {
|
|
|
38
37
|
'page.eftpos.text.log': 'Log',
|
|
39
38
|
'page.eftpos.text.setting': 'Setting',
|
|
40
39
|
'page.eftpos.text.setting.tip': 'You have not configured the necessary parameters, which may affect the normal use of your POS! ',
|
|
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
|
-
}
|
|
40
|
+
'page.eftpos.text.setting.btn': 'Go to configure'
|
|
69
41
|
},
|
|
70
42
|
'zh-CN': {
|
|
71
43
|
'page.eftpos.text.manufacturer': '厂商',
|
|
@@ -77,7 +49,7 @@ export default {
|
|
|
77
49
|
if (!name) {
|
|
78
50
|
return "\u6DFB\u52A0\u8BBE\u5907";
|
|
79
51
|
}
|
|
80
|
-
var action = status ==
|
|
52
|
+
var action = status == "add" ? '添加' : status == "edit" ? "编辑" : "重新配置";
|
|
81
53
|
return "".concat(action, " ").concat(name, " \u8BBE\u5907");
|
|
82
54
|
},
|
|
83
55
|
'page.eftpos.text.device.list': '设备列表',
|
|
@@ -89,7 +61,6 @@ export default {
|
|
|
89
61
|
'page.eftpos.text.edit': '编辑',
|
|
90
62
|
'page.eftpos.text.delete': '删除',
|
|
91
63
|
'page.eftpos.text.save': '保存',
|
|
92
|
-
'page.eftpos.text.pair': '配对',
|
|
93
64
|
'page.eftpos.text.confim.delete': '确认删除',
|
|
94
65
|
'page.eftpos.text.confirm_delete-message': function pageEftposTextConfirm_deleteMessage(x) {
|
|
95
66
|
return "\u786E\u8BA4\u5220\u9664 ".concat(x, " \u8BBE\u5907\u5417\uFF1F");
|
|
@@ -106,34 +77,7 @@ export default {
|
|
|
106
77
|
'page.eftpos.text.log': '日志',
|
|
107
78
|
'page.eftpos.text.setting': '设置',
|
|
108
79
|
'page.eftpos.text.setting.tip': '您尚未配置必要参数,这可能会影响您Pos的正常使用!',
|
|
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
|
-
}
|
|
80
|
+
'page.eftpos.text.setting.btn': '前往配置'
|
|
137
81
|
},
|
|
138
82
|
'zh-HK': {
|
|
139
83
|
'page.eftpos.text.manufacturer': '廠商',
|
|
@@ -145,7 +89,7 @@ export default {
|
|
|
145
89
|
if (!name) {
|
|
146
90
|
return "\u6DFB\u52A0\u8A2D\u5099";
|
|
147
91
|
}
|
|
148
|
-
var action = status ==
|
|
92
|
+
var action = status == "add" ? '添加' : status == "edit" ? "編輯" : "重新配置";
|
|
149
93
|
return "".concat(action, " ").concat(name, " \u8A2D\u5099");
|
|
150
94
|
},
|
|
151
95
|
'page.eftpos.text.device.list': '設備列表',
|
|
@@ -157,7 +101,6 @@ export default {
|
|
|
157
101
|
'page.eftpos.text.edit': '編輯',
|
|
158
102
|
'page.eftpos.text.delete': '删除',
|
|
159
103
|
'page.eftpos.text.save': '保存',
|
|
160
|
-
'page.eftpos.text.pair': '配對',
|
|
161
104
|
'page.eftpos.text.confim.delete': '確認刪除',
|
|
162
105
|
'page.eftpos.text.confirm_delete-message': function pageEftposTextConfirm_deleteMessage(x) {
|
|
163
106
|
return "\u78BA\u8A8D\u522A\u9664 ".concat(x, " \u8A2D\u5099\u55CE\uFF1F");
|
|
@@ -174,33 +117,6 @@ export default {
|
|
|
174
117
|
'page.eftpos.text.log': '日誌',
|
|
175
118
|
'page.eftpos.text.setting': '设置',
|
|
176
119
|
'page.eftpos.text.setting.tip': '您尚未配置必要參數,這可能會影響您Pos的正常使用!',
|
|
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
|
-
}
|
|
120
|
+
'page.eftpos.text.setting.btn': '前往配置'
|
|
205
121
|
}
|
|
206
122
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PosProps, RouteType } from './const';
|
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
4
|
action: RouteType;
|
|
5
5
|
device_number: string | number;
|
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
|
@@ -6,10 +6,7 @@ export declare enum EftposEnum {
|
|
|
6
6
|
/** 后端支付 - 支付 + 退款 */
|
|
7
7
|
Windcave = "windcave",
|
|
8
8
|
Stripe = "stripe",
|
|
9
|
-
|
|
10
|
-
Linkly = "linkly",
|
|
11
|
-
/** mx51支付 - 支付 + 退款 */
|
|
12
|
-
MX51 = "mx51"
|
|
9
|
+
Linkly = "linkly"
|
|
13
10
|
}
|
|
14
11
|
export declare enum StatusEnum {
|
|
15
12
|
Loading = "loading",
|
|
@@ -157,8 +154,6 @@ export declare enum PayStatus {
|
|
|
157
154
|
'Unknown' = "701000",
|
|
158
155
|
/** 交易请求超时 */
|
|
159
156
|
'Timeout' = "701001",
|
|
160
|
-
/** 支付失败 */
|
|
161
|
-
'PaymentFailed' = "701002",
|
|
162
157
|
/** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
|
|
163
158
|
'PayOtherEftposFailed' = "701003",
|
|
164
159
|
/** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
|
|
@@ -4,7 +4,6 @@ export var EftposEnum = /*#__PURE__*/function (EftposEnum) {
|
|
|
4
4
|
EftposEnum["Windcave"] = "windcave";
|
|
5
5
|
EftposEnum["Stripe"] = "stripe";
|
|
6
6
|
EftposEnum["Linkly"] = "linkly";
|
|
7
|
-
EftposEnum["MX51"] = "mx51";
|
|
8
7
|
return EftposEnum;
|
|
9
8
|
}({});
|
|
10
9
|
export var StatusEnum = /*#__PURE__*/function (StatusEnum) {
|
|
@@ -69,7 +68,6 @@ export var PayStatus = /*#__PURE__*/function (PayStatus) {
|
|
|
69
68
|
PayStatus["PairingFailure"] = "606020";
|
|
70
69
|
PayStatus["Unknown"] = "701000";
|
|
71
70
|
PayStatus["Timeout"] = "701001";
|
|
72
|
-
PayStatus["PaymentFailed"] = "701002";
|
|
73
71
|
PayStatus["PayOtherEftposFailed"] = "701003";
|
|
74
72
|
PayStatus["PayCardErrorFailed"] = "701004";
|
|
75
73
|
PayStatus["NoNetWork"] = "701005";
|