@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
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ecocup/cupList/hooks/useColumns.tsx
|
|
30
|
+
var useColumns_exports = {};
|
|
31
|
+
__export(useColumns_exports, {
|
|
32
|
+
useColumns: () => useColumns
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(useColumns_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_const = require("../const");
|
|
39
|
+
var import_MoreDropdown = __toESM(require("../../components/MoreDropdown"));
|
|
40
|
+
var import_hooks = require("../../hooks");
|
|
41
|
+
var import__ = require("../index.less");
|
|
42
|
+
var prefixCls = "ecocup-cup-list";
|
|
43
|
+
var useColumns = (props) => {
|
|
44
|
+
const { onClickAction, locales } = props;
|
|
45
|
+
const { isNormalShop } = (0, import_hooks.useGetGoalShopInfo)();
|
|
46
|
+
const isApp = (0, import_hooks.useIsApp)();
|
|
47
|
+
const hiddenColumn = isApp ? false : isNormalShop;
|
|
48
|
+
const getRelativeTime = (text) => {
|
|
49
|
+
if (!text) return "";
|
|
50
|
+
const diff = (0, import_dayjs.default)().diff((0, import_dayjs.default)(text), "day");
|
|
51
|
+
if (diff === 0) return locales.getText("pisell2.text.ecocup.table.time-of-return.today");
|
|
52
|
+
return locales.getText("pisell2.text.ecocup.table.time-of-rent.relative")(diff);
|
|
53
|
+
};
|
|
54
|
+
return [
|
|
55
|
+
{
|
|
56
|
+
title: locales.getText("pisell2.text.ecocup.table.cup-code"),
|
|
57
|
+
dataIndex: "eco_cup_code",
|
|
58
|
+
key: "eco_cup_code",
|
|
59
|
+
align: "center",
|
|
60
|
+
width: 170,
|
|
61
|
+
render: (text, record) => {
|
|
62
|
+
return text || (record == null ? void 0 : record.code) || "";
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: locales.getText("pisell2.text.ecocup.table.customer"),
|
|
67
|
+
dataIndex: "customer",
|
|
68
|
+
key: "customer",
|
|
69
|
+
align: "center",
|
|
70
|
+
hidden: isApp,
|
|
71
|
+
with: 220,
|
|
72
|
+
render: (text, record) => {
|
|
73
|
+
var _a;
|
|
74
|
+
return ((_a = record == null ? void 0 : record.customer) == null ? void 0 : _a.display_name) || "";
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: locales.getText("pisell2.text.ecocup.table.status"),
|
|
79
|
+
dataIndex: "status",
|
|
80
|
+
key: "status",
|
|
81
|
+
align: "center",
|
|
82
|
+
width: 120,
|
|
83
|
+
render: (text) => {
|
|
84
|
+
const status = import_const.STATUS_TEXT_MAP[text];
|
|
85
|
+
const color = import_const.STATUS_COLOR_MAP[text];
|
|
86
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: `${prefixCls}-table-status`,
|
|
90
|
+
style: {
|
|
91
|
+
backgroundColor: color == null ? void 0 : color.backgroundColor,
|
|
92
|
+
color: color == null ? void 0 : color.color,
|
|
93
|
+
border: `1px solid ${color == null ? void 0 : color.border}`
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
locales.getText(status)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: locales.getText("pisell2.text.ecocup.table.shop-of-rent"),
|
|
102
|
+
dataIndex: "rent_shop",
|
|
103
|
+
key: "rent_shop",
|
|
104
|
+
align: "center",
|
|
105
|
+
hidden: isApp,
|
|
106
|
+
width: 200,
|
|
107
|
+
render: (text, record) => {
|
|
108
|
+
var _a;
|
|
109
|
+
return ((_a = record == null ? void 0 : record.rent_shop) == null ? void 0 : _a.name) || "";
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: locales.getText("pisell2.text.ecocup.table.time-of-rent"),
|
|
114
|
+
dataIndex: "rent_time",
|
|
115
|
+
key: "rent_time",
|
|
116
|
+
align: "center",
|
|
117
|
+
hidden: isApp,
|
|
118
|
+
width: 160,
|
|
119
|
+
render: (text) => {
|
|
120
|
+
if (!text) return "";
|
|
121
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_dayjs.default)(text).format("DD/MM/YYYY")), /* @__PURE__ */ import_react.default.createElement("span", null, getRelativeTime(text)));
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: locales.getText("pisell2.text.ecocup.table.shop-of-return"),
|
|
126
|
+
dataIndex: "return_shop",
|
|
127
|
+
key: "return_shop",
|
|
128
|
+
align: "center",
|
|
129
|
+
hidden: isApp,
|
|
130
|
+
width: 200,
|
|
131
|
+
render: (text, record) => {
|
|
132
|
+
var _a;
|
|
133
|
+
return ((_a = record == null ? void 0 : record.return_shop) == null ? void 0 : _a.name) || "";
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: locales.getText("pisell2.text.ecocup.table.time-of-return"),
|
|
138
|
+
dataIndex: "return_time",
|
|
139
|
+
key: "return_time",
|
|
140
|
+
align: "center",
|
|
141
|
+
hidden: isApp,
|
|
142
|
+
width: 160,
|
|
143
|
+
render: (text) => {
|
|
144
|
+
return text ? (0, import_dayjs.default)(text).format("DD/MM/YYYY") : "";
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
title: locales.getText("pisell2.text.ecocup.rent"),
|
|
149
|
+
dataIndex: "rent_shop",
|
|
150
|
+
key: "rent_shop",
|
|
151
|
+
align: "center",
|
|
152
|
+
hidden: !isApp,
|
|
153
|
+
width: 160,
|
|
154
|
+
render: (text, record) => {
|
|
155
|
+
var _a, _b;
|
|
156
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center" } }, ((_a = record == null ? void 0 : record.rent_shop) == null ? void 0 : _a.name) ? /* @__PURE__ */ import_react.default.createElement("span", null, (_b = record == null ? void 0 : record.rent_shop) == null ? void 0 : _b.name) : null, (record == null ? void 0 : record.rent_time) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_dayjs.default)(record == null ? void 0 : record.rent_time).format("DD/MM/YYYY")), /* @__PURE__ */ import_react.default.createElement("span", null, getRelativeTime(record == null ? void 0 : record.rent_time))) : null);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
title: locales.getText("pisell2.text.ecocup.action.return"),
|
|
161
|
+
dataIndex: "return_shop",
|
|
162
|
+
key: "return_shop",
|
|
163
|
+
align: "center",
|
|
164
|
+
hidden: !isApp,
|
|
165
|
+
width: 160,
|
|
166
|
+
render: (text, record) => {
|
|
167
|
+
var _a, _b;
|
|
168
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center" } }, ((_a = record == null ? void 0 : record.return_shop) == null ? void 0 : _a.name) ? /* @__PURE__ */ import_react.default.createElement("span", null, (_b = record == null ? void 0 : record.return_shop) == null ? void 0 : _b.name) : null, (record == null ? void 0 : record.return_time) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_dayjs.default)(record == null ? void 0 : record.return_time).format("DD/MM/YYYY")), /* @__PURE__ */ import_react.default.createElement("span", null, getRelativeTime(record == null ? void 0 : record.return_time))) : null);
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: locales.getText("pisell2.text.ecocup.table.actions"),
|
|
173
|
+
dataIndex: "actions",
|
|
174
|
+
key: "actions",
|
|
175
|
+
hidden: isApp,
|
|
176
|
+
width: 180,
|
|
177
|
+
render: (text, record) => {
|
|
178
|
+
const _status = (record == null ? void 0 : record.status) || "";
|
|
179
|
+
const showMoreTypes = ["in_stock", "rent"];
|
|
180
|
+
if ((record == null ? void 0 : record.shop_id) !== (record == null ? void 0 : record.current_shop_id) && !(record == null ? void 0 : record.eco_cup_id)) return null;
|
|
181
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-table-actions` }, _status === "rent" ? /* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
import_materials.Button,
|
|
183
|
+
{
|
|
184
|
+
type: "primary",
|
|
185
|
+
onClick: () => onClickAction("return", record)
|
|
186
|
+
},
|
|
187
|
+
locales.getText("pisell2.text.ecocup.action.return")
|
|
188
|
+
) : null, showMoreTypes.includes(_status) ? /* @__PURE__ */ import_react.default.createElement(
|
|
189
|
+
import_MoreDropdown.default,
|
|
190
|
+
{
|
|
191
|
+
locales,
|
|
192
|
+
onClick: (key) => onClickAction(key, record)
|
|
193
|
+
}
|
|
194
|
+
) : null);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
];
|
|
198
|
+
};
|
|
199
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
200
|
+
0 && (module.exports = {
|
|
201
|
+
useColumns
|
|
202
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface GetCupListsParams {
|
|
2
|
+
type?: 'partner' | 'eco';
|
|
3
|
+
with?: string[];
|
|
4
|
+
skip?: number;
|
|
5
|
+
num?: number;
|
|
6
|
+
search?: string;
|
|
7
|
+
operated_at_start?: string;
|
|
8
|
+
operated_at_end?: string;
|
|
9
|
+
order_by?: string;
|
|
10
|
+
sort?: 'asc' | 'desc';
|
|
11
|
+
partner_shop_id?: number;
|
|
12
|
+
}
|
|
13
|
+
interface GetStatisticsParams {
|
|
14
|
+
started_at?: string;
|
|
15
|
+
ended_at?: string;
|
|
16
|
+
type?: 'eco' | 'normal';
|
|
17
|
+
partner_shop_id?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare const useCupListsApi: () => {
|
|
20
|
+
loading: boolean;
|
|
21
|
+
data: any;
|
|
22
|
+
run: (params: GetCupListsParams) => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
export declare const useStatisticsApi: () => {
|
|
25
|
+
data: any;
|
|
26
|
+
getStatics: (params: GetStatisticsParams) => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
export declare const useEcoShopListsApi: () => {
|
|
29
|
+
data: any;
|
|
30
|
+
getEcoShopLists: (params?: any) => Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/ecocup/cupList/hooks/useCupApi.ts
|
|
20
|
+
var useCupApi_exports = {};
|
|
21
|
+
__export(useCupApi_exports, {
|
|
22
|
+
useCupListsApi: () => useCupListsApi,
|
|
23
|
+
useEcoShopListsApi: () => useEcoShopListsApi,
|
|
24
|
+
useStatisticsApi: () => useStatisticsApi
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(useCupApi_exports);
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_hooks = require("../../hooks");
|
|
29
|
+
var useCupListsApi = () => {
|
|
30
|
+
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
31
|
+
const [data, setData] = (0, import_react.useState)({});
|
|
32
|
+
const { get } = (0, import_hooks.useRequest)();
|
|
33
|
+
const { isNormalShop } = (0, import_hooks.useGetGoalShopInfo)();
|
|
34
|
+
const isApp = (0, import_hooks.useIsApp)();
|
|
35
|
+
const getCupLists = (0, import_react.useCallback)(async (params) => {
|
|
36
|
+
try {
|
|
37
|
+
const api = isApp ? "/h5/wallet/eco" : "/shop/wallet/eco";
|
|
38
|
+
const isPartner = isNormalShop || (params == null ? void 0 : params.partner_shop_id);
|
|
39
|
+
setLoading(true);
|
|
40
|
+
let _params = {
|
|
41
|
+
type: isPartner ? "partner" : "eco",
|
|
42
|
+
with: ["customer:id,display_name", "rentShop:id,name", "returnShop:id,name", "currentShop:id,name"],
|
|
43
|
+
...params
|
|
44
|
+
};
|
|
45
|
+
if (isPartner) {
|
|
46
|
+
_params.with = ["customer:id,display_name", "rentShop:id,name", "returnShop:id,name"];
|
|
47
|
+
}
|
|
48
|
+
if (isApp) {
|
|
49
|
+
_params = {
|
|
50
|
+
num: params == null ? void 0 : params.num,
|
|
51
|
+
skip: params == null ? void 0 : params.skip
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const res = await get(api, _params);
|
|
55
|
+
setData((res == null ? void 0 : res.data) || {});
|
|
56
|
+
setLoading(false);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
setLoading(false);
|
|
59
|
+
}
|
|
60
|
+
}, []);
|
|
61
|
+
return {
|
|
62
|
+
loading,
|
|
63
|
+
data,
|
|
64
|
+
run: getCupLists
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
var useStatisticsApi = () => {
|
|
68
|
+
const [data, setData] = (0, import_react.useState)({});
|
|
69
|
+
const { get } = (0, import_hooks.useRequest)();
|
|
70
|
+
const { isNormalShop } = (0, import_hooks.useGetGoalShopInfo)();
|
|
71
|
+
const getStatics = (0, import_react.useCallback)(async (params) => {
|
|
72
|
+
try {
|
|
73
|
+
const isPartner = isNormalShop || (params == null ? void 0 : params.partner_shop_id);
|
|
74
|
+
const _params = {
|
|
75
|
+
type: isPartner ? "partner" : "eco",
|
|
76
|
+
...params
|
|
77
|
+
};
|
|
78
|
+
const res = await get("/shop/wallet/eco/statistics", _params);
|
|
79
|
+
setData((res == null ? void 0 : res.data) || {});
|
|
80
|
+
} catch (error) {
|
|
81
|
+
}
|
|
82
|
+
}, []);
|
|
83
|
+
return {
|
|
84
|
+
data,
|
|
85
|
+
getStatics
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
var useEcoShopListsApi = () => {
|
|
89
|
+
const [data, setData] = (0, import_react.useState)([]);
|
|
90
|
+
const { get } = (0, import_hooks.useRequest)();
|
|
91
|
+
const getEcoShopLists = (0, import_react.useCallback)(async (params) => {
|
|
92
|
+
try {
|
|
93
|
+
const _params = {
|
|
94
|
+
skip: 1,
|
|
95
|
+
num: 100
|
|
96
|
+
};
|
|
97
|
+
const res = await get("/shop/wallet/eco/shops", _params);
|
|
98
|
+
setData((res == null ? void 0 : res.data) || []);
|
|
99
|
+
} catch (error) {
|
|
100
|
+
}
|
|
101
|
+
}, []);
|
|
102
|
+
return {
|
|
103
|
+
data,
|
|
104
|
+
getEcoShopLists
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
+
0 && (module.exports = {
|
|
109
|
+
useCupListsApi,
|
|
110
|
+
useEcoShopListsApi,
|
|
111
|
+
useStatisticsApi
|
|
112
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ecocup/cupList/hooks/useSummary.tsx
|
|
30
|
+
var useSummary_exports = {};
|
|
31
|
+
__export(useSummary_exports, {
|
|
32
|
+
useSummary: () => useSummary
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(useSummary_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import__ = require("../index.less");
|
|
38
|
+
var prefixCls = "ecocup-cup-list";
|
|
39
|
+
var useSummary = (locales, staticsData, isPartner) => {
|
|
40
|
+
const summaryData = (0, import_react.useMemo)(() => {
|
|
41
|
+
return [
|
|
42
|
+
{
|
|
43
|
+
key: "available-to-rent",
|
|
44
|
+
title: locales.getText("pisell2.text.ecocup.available-to-rent"),
|
|
45
|
+
value: (staticsData == null ? void 0 : staticsData.in_stock_count) || 0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: "cup-rent",
|
|
49
|
+
title: isPartner ? locales.getText("pisell2.text.ecocup.cup-rent") : locales.getText("pisell2.text.ecocup.eco.cup-rent"),
|
|
50
|
+
value: (staticsData == null ? void 0 : staticsData.rent_count) || 0
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: "cup-returned",
|
|
54
|
+
title: isPartner ? locales.getText("pisell2.text.ecocup.cup-returned") : locales.getText("pisell2.text.ecocup.eco.cup-returned"),
|
|
55
|
+
value: (staticsData == null ? void 0 : staticsData.return_count) || 0
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
}, [staticsData, isPartner]);
|
|
59
|
+
return (0, import_react.useMemo)(() => {
|
|
60
|
+
return () => /* @__PURE__ */ import_react.default.createElement(import_materials.Row, { gutter: 8, className: `${prefixCls}-summary` }, summaryData.map((item) => {
|
|
61
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.Col, { span: 8, key: item.key }, /* @__PURE__ */ import_react.default.createElement(import_materials.Card, { className: `${prefixCls}-summary-card` }, /* @__PURE__ */ import_react.default.createElement(
|
|
62
|
+
import_materials.Statistic,
|
|
63
|
+
{
|
|
64
|
+
title: item.title,
|
|
65
|
+
value: item.value,
|
|
66
|
+
className: `${prefixCls}-summary-card-statistic`
|
|
67
|
+
}
|
|
68
|
+
)));
|
|
69
|
+
}));
|
|
70
|
+
}, [summaryData]);
|
|
71
|
+
};
|
|
72
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
+
0 && (module.exports = {
|
|
74
|
+
useSummary
|
|
75
|
+
});
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ecocup/cupList/index.tsx
|
|
30
|
+
var cupList_exports = {};
|
|
31
|
+
__export(cupList_exports, {
|
|
32
|
+
default: () => cupList_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(cupList_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_ahooks = require("ahooks");
|
|
37
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
+
var import_materials = require("@pisell/materials");
|
|
39
|
+
var import_utils = require("@pisell/utils");
|
|
40
|
+
var import_icons = require("@ant-design/icons");
|
|
41
|
+
var import_useEngineContext = require("../../../hooks/useEngineContext");
|
|
42
|
+
var import_hooks = require("./hooks");
|
|
43
|
+
var import_const = require("./const");
|
|
44
|
+
var import_PageHeader = __toESM(require("../components/PageHeader"));
|
|
45
|
+
var import_CupActionModal = __toESM(require("../components/CupActionModal"));
|
|
46
|
+
var import_SearchBar = __toESM(require("../components/SearchBar"));
|
|
47
|
+
var import_hooks2 = require("../hooks");
|
|
48
|
+
var import_locales = __toESM(require("../locales"));
|
|
49
|
+
var import_index = require("./index.less");
|
|
50
|
+
var prefixCls = "ecocup-cup-list";
|
|
51
|
+
var SCAN_LISTENER_KEY = "eco-cup-list-scan-listener";
|
|
52
|
+
var PAGE_SIZE = 10;
|
|
53
|
+
var FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
54
|
+
var CupList = (props) => {
|
|
55
|
+
const [date, setDate] = (0, import_react.useState)([(0, import_dayjs.default)().startOf("day"), (0, import_dayjs.default)().endOf("day")]);
|
|
56
|
+
const cupActionModal = (0, import_hooks2.useModal)("ecocup-list-action-modal");
|
|
57
|
+
const { isNormalShop } = (0, import_hooks2.useGetGoalShopInfo)();
|
|
58
|
+
const isApp = (0, import_hooks2.useIsApp)();
|
|
59
|
+
const platform = (0, import_useEngineContext.usePlatform)();
|
|
60
|
+
const language = (0, import_hooks2.useLanguage)();
|
|
61
|
+
import_utils.locales.init(import_locales.default, language);
|
|
62
|
+
const [listParams, setListParams] = (0, import_react.useState)({
|
|
63
|
+
skip: 1,
|
|
64
|
+
num: PAGE_SIZE
|
|
65
|
+
});
|
|
66
|
+
const listParamsRef = (0, import_react.useRef)(listParams);
|
|
67
|
+
const { loading, data, run } = (0, import_hooks.useCupListsApi)();
|
|
68
|
+
const { data: staticsData, getStatics } = (0, import_hooks.useStatisticsApi)();
|
|
69
|
+
const { data: ecoShopLists, getEcoShopLists } = (0, import_hooks.useEcoShopListsApi)();
|
|
70
|
+
const isPartner = (0, import_react.useMemo)(() => {
|
|
71
|
+
return !!(isNormalShop || (listParams == null ? void 0 : listParams.partner_shop_id));
|
|
72
|
+
}, [isNormalShop, listParams == null ? void 0 : listParams.partner_shop_id]);
|
|
73
|
+
(0, import_react.useEffect)(() => {
|
|
74
|
+
listParamsRef.current = listParams;
|
|
75
|
+
}, [listParams]);
|
|
76
|
+
const getLists = (0, import_react.useCallback)((params) => {
|
|
77
|
+
run({
|
|
78
|
+
...(listParamsRef == null ? void 0 : listParamsRef.current) || {},
|
|
79
|
+
...params
|
|
80
|
+
});
|
|
81
|
+
}, [listParams]);
|
|
82
|
+
(0, import_react.useEffect)(() => {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
if (isApp) return;
|
|
85
|
+
getStatics({
|
|
86
|
+
started_at: (_a = date == null ? void 0 : date[0]) == null ? void 0 : _a.format(FORMAT),
|
|
87
|
+
ended_at: (_b = date == null ? void 0 : date[1]) == null ? void 0 : _b.format(FORMAT),
|
|
88
|
+
partner_shop_id: listParams == null ? void 0 : listParams.partner_shop_id
|
|
89
|
+
});
|
|
90
|
+
}, [date, isApp, listParams == null ? void 0 : listParams.partner_shop_id]);
|
|
91
|
+
(0, import_react.useEffect)(() => {
|
|
92
|
+
if (isNormalShop || isApp) return;
|
|
93
|
+
getEcoShopLists({});
|
|
94
|
+
}, [isNormalShop, isApp]);
|
|
95
|
+
(0, import_react.useEffect)(() => {
|
|
96
|
+
getLists();
|
|
97
|
+
}, [getLists]);
|
|
98
|
+
const handleClickAction = (0, import_react.useCallback)(
|
|
99
|
+
(type, record) => {
|
|
100
|
+
cupActionModal.open({
|
|
101
|
+
data: { type, cupData: record, customerData: (record == null ? void 0 : record.customer) || {} },
|
|
102
|
+
onCancel: cupActionModal.close,
|
|
103
|
+
onOk: (values) => {
|
|
104
|
+
cupActionModal.close();
|
|
105
|
+
getLists();
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
[cupActionModal]
|
|
110
|
+
);
|
|
111
|
+
const columns = (0, import_hooks.useColumns)({
|
|
112
|
+
onClickAction: handleClickAction,
|
|
113
|
+
locales: import_utils.locales
|
|
114
|
+
});
|
|
115
|
+
const summary = (0, import_hooks.useSummary)(import_utils.locales, staticsData, isPartner);
|
|
116
|
+
const handleValuesChange = (changedValues, values) => {
|
|
117
|
+
var _a, _b, _c;
|
|
118
|
+
const orderByTypes = (_a = values == null ? void 0 : values.order_by) == null ? void 0 : _a.split(":");
|
|
119
|
+
const params = {
|
|
120
|
+
...(values == null ? void 0 : values.filters) || {},
|
|
121
|
+
order_by: orderByTypes == null ? void 0 : orderByTypes[0],
|
|
122
|
+
sort: orderByTypes == null ? void 0 : orderByTypes[1],
|
|
123
|
+
skip: ((_b = values == null ? void 0 : values.pagination) == null ? void 0 : _b.page) || 1,
|
|
124
|
+
num: ((_c = values == null ? void 0 : values.pagination) == null ? void 0 : _c.size) || PAGE_SIZE,
|
|
125
|
+
partner_shop_id: (values == null ? void 0 : values.partner_shop_id) || void 0,
|
|
126
|
+
status: (values == null ? void 0 : values.status) || void 0
|
|
127
|
+
};
|
|
128
|
+
setListParams((prev) => ({ ...prev, ...params }));
|
|
129
|
+
};
|
|
130
|
+
const { run: handleValuesChangeDebounce } = (0, import_ahooks.useDebounceFn)(
|
|
131
|
+
handleValuesChange,
|
|
132
|
+
{
|
|
133
|
+
wait: 200
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
const handleChange = (value, type) => {
|
|
137
|
+
if (type === "search") {
|
|
138
|
+
setListParams((prev) => ({ ...prev, search: value, skip: 1 }));
|
|
139
|
+
} else {
|
|
140
|
+
setDate(value);
|
|
141
|
+
setListParams((prev) => {
|
|
142
|
+
var _a, _b;
|
|
143
|
+
return {
|
|
144
|
+
...prev,
|
|
145
|
+
skip: 1,
|
|
146
|
+
operated_at_start: (_a = value == null ? void 0 : value[0]) == null ? void 0 : _a.format(FORMAT),
|
|
147
|
+
operated_at_end: (_b = value == null ? void 0 : value[1]) == null ? void 0 : _b.format(FORMAT)
|
|
148
|
+
};
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const pagination = (0, import_react.useMemo)(() => {
|
|
153
|
+
return {
|
|
154
|
+
pageSize: PAGE_SIZE,
|
|
155
|
+
total: (data == null ? void 0 : data.count) || 0,
|
|
156
|
+
size: "large",
|
|
157
|
+
current: (listParams == null ? void 0 : listParams.skip) || 1,
|
|
158
|
+
localPagination: false
|
|
159
|
+
};
|
|
160
|
+
}, [data == null ? void 0 : data.count, listParams == null ? void 0 : listParams.skip]);
|
|
161
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-container` }, /* @__PURE__ */ import_react.default.createElement(import_materials.Page, { style: { height: "100%" } }, /* @__PURE__ */ import_react.default.createElement(
|
|
162
|
+
import_materials.Table,
|
|
163
|
+
{
|
|
164
|
+
dataSource: (data == null ? void 0 : data.list) || [],
|
|
165
|
+
columns,
|
|
166
|
+
title: !isApp ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_PageHeader.default, { title: import_utils.locales.getText("pisell2.text.ecocup.title") }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-header` }, /* @__PURE__ */ import_react.default.createElement(
|
|
167
|
+
import_materials.DatePicker.RangePicker,
|
|
168
|
+
{
|
|
169
|
+
inputReadOnly: true,
|
|
170
|
+
bordered: false,
|
|
171
|
+
allowClear: false,
|
|
172
|
+
size: "large",
|
|
173
|
+
suffixIcon: /* @__PURE__ */ import_react.default.createElement(import_icons.CalendarOutlined, null),
|
|
174
|
+
value: date,
|
|
175
|
+
onChange: handleChange,
|
|
176
|
+
format: "DD/MM/YYYY",
|
|
177
|
+
className: `${prefixCls}-date-picker`
|
|
178
|
+
}
|
|
179
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
180
|
+
import_SearchBar.default,
|
|
181
|
+
{
|
|
182
|
+
scanListenerKey: SCAN_LISTENER_KEY,
|
|
183
|
+
size: "small",
|
|
184
|
+
placeholder: import_utils.locales.getText("pisell2.text.ecocup.scan-or-search"),
|
|
185
|
+
onSearch: (value) => handleChange(value, "search")
|
|
186
|
+
}
|
|
187
|
+
))) : null,
|
|
188
|
+
align: "center",
|
|
189
|
+
pagination,
|
|
190
|
+
columnSetting: !isApp ? import_const.COLUMN_SETTING : null,
|
|
191
|
+
sort: !isApp ? import_const.SORT_SETTINGS : null,
|
|
192
|
+
filter: !isApp ? (0, import_const.FILTER)(import_utils.locales, isNormalShop, ecoShopLists, isPartner, listParams == null ? void 0 : listParams.skip) : null,
|
|
193
|
+
summary: !isApp ? summary : null,
|
|
194
|
+
className: `${prefixCls}-table`,
|
|
195
|
+
rowClassName: `${prefixCls}-table-row`,
|
|
196
|
+
loading,
|
|
197
|
+
onValuesChange: handleValuesChangeDebounce,
|
|
198
|
+
rowKey: "id",
|
|
199
|
+
virtual: false,
|
|
200
|
+
tableLayout: "",
|
|
201
|
+
scroll: {
|
|
202
|
+
scrollToFirstRowOnChange: true,
|
|
203
|
+
autoCalc: true
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
)), cupActionModal.visible && /* @__PURE__ */ import_react.default.createElement(import_CupActionModal.default, { ...cupActionModal.modalProps }));
|
|
207
|
+
};
|
|
208
|
+
var cupList_default = CupList;
|