@pisell/private-materials 6.3.159 → 6.3.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +43 -4
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/utils.d.ts +6 -1
- package/es/components/appointmentBooking/utils.js +123 -32
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useQuotation.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellCashCounting/hooks.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productStockCheckModal/index.d.ts +5 -0
- package/es/components/productStockCheckModal/index.js +148 -0
- package/es/components/productStockCheckModal/index.less +122 -0
- package/es/components/productStockCheckModal/locales.d.ts +63 -0
- package/es/components/productStockCheckModal/locales.js +62 -0
- package/es/components/productStockCheckModal/types.d.ts +26 -0
- package/es/components/productStockCheckModal/types.js +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/walletList/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useCartProductStockCheck.d.ts +10 -0
- package/es/hooks/useCartProductStockCheck.js +153 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/es/plus/orderList/config.d.ts +3 -2
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +169 -8
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
- package/es/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
- package/es/plus/saasDevice/devicePlanning/locales.js +125 -0
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +42 -5
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/utils.d.ts +6 -1
- package/lib/components/appointmentBooking/utils.js +36 -2
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellCashCounting/hooks.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productStockCheckModal/index.d.ts +5 -0
- package/lib/components/productStockCheckModal/index.js +134 -0
- package/lib/components/productStockCheckModal/index.less +122 -0
- package/lib/components/productStockCheckModal/locales.d.ts +63 -0
- package/lib/components/productStockCheckModal/locales.js +86 -0
- package/lib/components/productStockCheckModal/types.d.ts +26 -0
- package/lib/components/productStockCheckModal/types.js +17 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/walletList/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/useCartProductStockCheck.d.ts +10 -0
- package/lib/hooks/useCartProductStockCheck.js +97 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/lib/plus/orderList/config.d.ts +3 -2
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +174 -16
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
- package/lib/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
- package/lib/plus/saasDevice/devicePlanning/locales.js +125 -0
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/product-stock-check-modal/meta.ts +94 -0
- package/package.json +1 -1
|
@@ -0,0 +1,97 @@
|
|
|
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/hooks/useCartProductStockCheck.ts
|
|
20
|
+
var useCartProductStockCheck_exports = {};
|
|
21
|
+
__export(useCartProductStockCheck_exports, {
|
|
22
|
+
default: () => useCartProductStockCheck_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useCartProductStockCheck_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var import_utils = require("../components/appointmentBooking/utils");
|
|
27
|
+
var useCartProductStockCheck = () => {
|
|
28
|
+
const filterUnavailableProducts = async (cartProducts, data, callback, appointmentBooking) => {
|
|
29
|
+
if (!(cartProducts == null ? void 0 : cartProducts.length) || !(data == null ? void 0 : data.length)) return;
|
|
30
|
+
const unavailableIds = data.map(
|
|
31
|
+
(item) => item == null ? void 0 : item.product_id
|
|
32
|
+
);
|
|
33
|
+
let newCart = (cartProducts == null ? void 0 : cartProducts.filter(
|
|
34
|
+
(item) => {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
return unavailableIds.includes(((_b = (_a = item == null ? void 0 : item._origin) == null ? void 0 : _a.product) == null ? void 0 : _b.product_id) || (item == null ? void 0 : item.id));
|
|
37
|
+
}
|
|
38
|
+
)) || [];
|
|
39
|
+
if (appointmentBooking) {
|
|
40
|
+
newCart.forEach((item) => {
|
|
41
|
+
appointmentBooking.deleteCart(item == null ? void 0 : item._id);
|
|
42
|
+
});
|
|
43
|
+
newCart = await appointmentBooking.getCart();
|
|
44
|
+
}
|
|
45
|
+
callback && callback(newCart);
|
|
46
|
+
return newCart;
|
|
47
|
+
};
|
|
48
|
+
const handleContinue = ({ cartProducts, data, callback, appointmentBooking }) => {
|
|
49
|
+
filterUnavailableProducts(cartProducts, data, callback, appointmentBooking);
|
|
50
|
+
};
|
|
51
|
+
const handleReturn = async ({
|
|
52
|
+
cartProducts,
|
|
53
|
+
data,
|
|
54
|
+
callback,
|
|
55
|
+
appointmentBooking,
|
|
56
|
+
setTimes,
|
|
57
|
+
isSkipClearData = true
|
|
58
|
+
}) => {
|
|
59
|
+
await filterUnavailableProducts(cartProducts, data, callback, appointmentBooking);
|
|
60
|
+
(0, import_utils.handleGoToStep)({
|
|
61
|
+
appointmentBooking,
|
|
62
|
+
setTimes,
|
|
63
|
+
isSkipClearData
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const checkProductStock = (0, import_react.useCallback)(
|
|
67
|
+
(productStockModalRef, res, cartProducts) => {
|
|
68
|
+
var _a;
|
|
69
|
+
if (!(productStockModalRef == null ? void 0 : productStockModalRef.current)) return false;
|
|
70
|
+
const { unavailable_products } = res || {};
|
|
71
|
+
if (!(unavailable_products == null ? void 0 : unavailable_products.length) || !(cartProducts == null ? void 0 : cartProducts.length)) return false;
|
|
72
|
+
let _isAllItemsSoldOut = false;
|
|
73
|
+
const unavailableIds = unavailable_products.map(
|
|
74
|
+
(item) => item.product_id
|
|
75
|
+
);
|
|
76
|
+
const allUnavailable = cartProducts == null ? void 0 : cartProducts.every(
|
|
77
|
+
(item) => {
|
|
78
|
+
var _a2, _b;
|
|
79
|
+
return unavailableIds.includes(((_b = (_a2 = item == null ? void 0 : item._origin) == null ? void 0 : _a2.product) == null ? void 0 : _b.product_id) || (item == null ? void 0 : item.id));
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
_isAllItemsSoldOut = allUnavailable;
|
|
83
|
+
const needStop = (_a = productStockModalRef.current) == null ? void 0 : _a.open({
|
|
84
|
+
unavailableProducts: unavailable_products,
|
|
85
|
+
isAllItemsSoldOut: _isAllItemsSoldOut
|
|
86
|
+
});
|
|
87
|
+
return needStop;
|
|
88
|
+
},
|
|
89
|
+
[]
|
|
90
|
+
);
|
|
91
|
+
return {
|
|
92
|
+
handleContinue,
|
|
93
|
+
handleReturn,
|
|
94
|
+
checkProductStock
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
var useCartProductStockCheck_default = useCartProductStockCheck;
|
package/lib/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export { default as SaasRegister } from './plus/saasRegister';
|
|
|
55
55
|
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
|
56
56
|
export { default as PinModal } from './components/pinModal';
|
|
57
57
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
58
|
+
export { default as ProductStockCheckModal } from './components/productStockCheckModal';
|
|
58
59
|
export { ChannelAuthSetting, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, } from './components/authentication/admin';
|
|
59
60
|
export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps, } from './components/authentication/admin';
|
|
60
61
|
export { default as ContactInfo } from './plus/contactInfo';
|
package/lib/index.js
CHANGED
|
@@ -92,6 +92,7 @@ __export(src_exports, {
|
|
|
92
92
|
PisellVenueControlPage: () => import_pisellReservation.PisellVenueControlPage,
|
|
93
93
|
ProNumberSelector: () => import_pisellNumberSelector.default,
|
|
94
94
|
ProductExtension: () => import_productExtension.default,
|
|
95
|
+
ProductStockCheckModal: () => import_productStockCheckModal.default,
|
|
95
96
|
Register2: () => import_Login2.Register2,
|
|
96
97
|
RuleSetting: () => import_ruleSetting.default,
|
|
97
98
|
SKUOptionsSelection: () => import_skuOptionsSelection.default,
|
|
@@ -190,6 +191,7 @@ var import_saasRegister = __toESM(require("./plus/saasRegister"));
|
|
|
190
191
|
var import_saasCreateOrganization = __toESM(require("./plus/saasCreateOrganization"));
|
|
191
192
|
var import_pinModal = __toESM(require("./components/pinModal"));
|
|
192
193
|
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
|
194
|
+
var import_productStockCheckModal = __toESM(require("./components/productStockCheckModal"));
|
|
193
195
|
var import_admin = require("./components/authentication/admin");
|
|
194
196
|
var import_contactInfo = __toESM(require("./plus/contactInfo"));
|
|
195
197
|
var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
@@ -286,6 +288,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
286
288
|
PisellVenueControlPage,
|
|
287
289
|
ProNumberSelector,
|
|
288
290
|
ProductExtension,
|
|
291
|
+
ProductStockCheckModal,
|
|
289
292
|
Register2,
|
|
290
293
|
RuleSetting,
|
|
291
294
|
SKUOptionsSelection,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* 获取表格列配置(支持多语言)
|
|
3
4
|
* @param locales - 多语言对象
|
|
@@ -8,7 +9,7 @@ export declare const getTableColumns: (locales: any) => ({
|
|
|
8
9
|
dataIndex: string;
|
|
9
10
|
key: string;
|
|
10
11
|
width: number;
|
|
11
|
-
render: (value: any, record: any) => JSX.Element
|
|
12
|
+
render: (value: any, record: any) => "-" | JSX.Element;
|
|
12
13
|
isShow?: undefined;
|
|
13
14
|
} | {
|
|
14
15
|
title: any;
|
|
@@ -37,7 +38,7 @@ export declare const getTableColumns: (locales: any) => ({
|
|
|
37
38
|
key: string;
|
|
38
39
|
isShow: boolean;
|
|
39
40
|
width: number;
|
|
40
|
-
render: (value: any) => JSX.Element
|
|
41
|
+
render: (value: any) => "-" | JSX.Element;
|
|
41
42
|
})[];
|
|
42
43
|
export declare const getQuickFilterList: (locales: any) => ({
|
|
43
44
|
name: string;
|
|
@@ -38,6 +38,93 @@ var import_materials = require("@pisell/materials");
|
|
|
38
38
|
var import_icons = require("@ant-design/icons");
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
40
|
var import_index = require("./index.less");
|
|
41
|
+
var EMPTY_VALUE = "-";
|
|
42
|
+
var BYTE_PER_GB = 1024 * 1024 * 1024;
|
|
43
|
+
var REPORT_GROUPS = [
|
|
44
|
+
{
|
|
45
|
+
key: "software",
|
|
46
|
+
fields: [{ key: "name" }, { key: "version" }]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: "battery",
|
|
50
|
+
fields: [
|
|
51
|
+
{
|
|
52
|
+
key: "level",
|
|
53
|
+
value: (data, getText) => renderBatteryValue(data, getText)
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: "network",
|
|
59
|
+
fields: [
|
|
60
|
+
{ key: "type" },
|
|
61
|
+
{ key: "local_ip" },
|
|
62
|
+
{ key: "gateway" },
|
|
63
|
+
{ key: "subnet_mask" },
|
|
64
|
+
{ key: "ssid" }
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: "hardware",
|
|
69
|
+
fields: [{ key: "model" }, { key: "os_version" }]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: "storage",
|
|
73
|
+
fields: [
|
|
74
|
+
{ key: "used", value: (data) => formatStorageValue(data.used) },
|
|
75
|
+
{ key: "total", value: (data) => formatStorageValue(data.total) }
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
var isPlainObject = (value) => Object.prototype.toString.call(value) === "[object Object]";
|
|
80
|
+
var getReportText = (getText, key) => getText(`pisell2.saas.device-planning.detail.report.${key}`);
|
|
81
|
+
var formatReportValue = (value, getText) => {
|
|
82
|
+
if (value === null || value === void 0 || value === "") {
|
|
83
|
+
return EMPTY_VALUE;
|
|
84
|
+
}
|
|
85
|
+
if (typeof value === "boolean") {
|
|
86
|
+
return getText(
|
|
87
|
+
`pisell2.saas.device-planning.detail.${value ? "yes" : "no"}`
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
if (Array.isArray(value) || isPlainObject(value)) {
|
|
91
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__json-value" }, JSON.stringify(value));
|
|
92
|
+
}
|
|
93
|
+
return String(value);
|
|
94
|
+
};
|
|
95
|
+
var formatStorageValue = (value) => {
|
|
96
|
+
const byteValue = typeof value === "number" || typeof value === "string" ? Number(value) : Number.NaN;
|
|
97
|
+
if (!Number.isFinite(byteValue)) {
|
|
98
|
+
return EMPTY_VALUE;
|
|
99
|
+
}
|
|
100
|
+
const gbValue = byteValue / BYTE_PER_GB;
|
|
101
|
+
const text = gbValue >= 10 ? String(Math.round(gbValue)) : gbValue.toFixed(2).replace(/\.?0+$/, "");
|
|
102
|
+
return `${text} GB`;
|
|
103
|
+
};
|
|
104
|
+
var formatLastSeen = (value) => typeof value === "string" && value.trim() ? value : EMPTY_VALUE;
|
|
105
|
+
var renderBatteryValue = (data, getText) => {
|
|
106
|
+
const rawLevel = typeof data.level === "number" || typeof data.level === "string" ? Number(data.level) : Number.NaN;
|
|
107
|
+
const hasLevel = Number.isFinite(rawLevel);
|
|
108
|
+
const levelValue = hasLevel ? Math.max(0, Math.min(rawLevel, 100)) : 0;
|
|
109
|
+
const level = hasLevel ? `${rawLevel}%` : EMPTY_VALUE;
|
|
110
|
+
const charging = (data == null ? void 0 : data.charging) === true;
|
|
111
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__battery-value" }, /* @__PURE__ */ import_react.default.createElement(
|
|
112
|
+
"span",
|
|
113
|
+
{
|
|
114
|
+
className: (0, import_classnames.default)("device-detail-drawer__battery-icon", {
|
|
115
|
+
"is-charging": charging
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
119
|
+
"span",
|
|
120
|
+
{
|
|
121
|
+
className: "device-detail-drawer__battery-fill",
|
|
122
|
+
style: { width: `${levelValue}%` }
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
charging ? /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__battery-bolt" }) : null
|
|
126
|
+
), /* @__PURE__ */ import_react.default.createElement("span", null, level), /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__battery-status" }, getReportText(getText, charging ? "charging" : "not-charging")));
|
|
127
|
+
};
|
|
41
128
|
var DeviceDetailDrawer = ({
|
|
42
129
|
open,
|
|
43
130
|
record,
|
|
@@ -49,7 +136,19 @@ var DeviceDetailDrawer = ({
|
|
|
49
136
|
}) => {
|
|
50
137
|
var _a;
|
|
51
138
|
const device = record == null ? void 0 : record._raw;
|
|
139
|
+
const reportData = device == null ? void 0 : device.data;
|
|
52
140
|
const online = (record == null ? void 0 : record.status) === "online";
|
|
141
|
+
const lastSeen = formatLastSeen(device == null ? void 0 : device.last_seen);
|
|
142
|
+
const reportGroups = (0, import_react.useMemo)(() => {
|
|
143
|
+
if (!isPlainObject(reportData)) return [];
|
|
144
|
+
return REPORT_GROUPS.reduce((list, group) => {
|
|
145
|
+
const data = reportData[group.key];
|
|
146
|
+
if (isPlainObject(data)) {
|
|
147
|
+
list.push({ ...group, data });
|
|
148
|
+
}
|
|
149
|
+
return list;
|
|
150
|
+
}, []);
|
|
151
|
+
}, [reportData]);
|
|
53
152
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
54
153
|
import_antd.Drawer,
|
|
55
154
|
{
|
|
@@ -67,25 +166,84 @@ var DeviceDetailDrawer = ({
|
|
|
67
166
|
},
|
|
68
167
|
bodyStyle: { padding: 0 }
|
|
69
168
|
},
|
|
70
|
-
record ? /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__root" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__header" }, ((_a = device == null ? void 0 : device.type) == null ? void 0 : _a.icon) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: device.type.icon })) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__heading" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__name" }, record.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__type" }, record.typeName)), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null), onClick: onClose })), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
71
|
-
|
|
169
|
+
record ? /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__root" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__header" }, ((_a = device == null ? void 0 : device.type) == null ? void 0 : _a.icon) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: device.type.icon })) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__heading" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__name" }, record.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__type" }, record.typeName)), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null), onClick: onClose })), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
170
|
+
import_antd.Card,
|
|
72
171
|
{
|
|
73
|
-
|
|
74
|
-
|
|
172
|
+
size: "small",
|
|
173
|
+
title: getText("pisell2.saas.device-planning.detail.basic-info"),
|
|
174
|
+
className: "device-detail-drawer__card"
|
|
75
175
|
},
|
|
76
|
-
getText(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText("pisell2.saas.device-planning.detail.online-status")), /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__online-status" }, /* @__PURE__ */ import_react.default.createElement(
|
|
80
|
-
"span",
|
|
176
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-list" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText("pisell2.saas.device-planning.detail.name")), /* @__PURE__ */ import_react.default.createElement("strong", null, record.name)), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText("pisell2.saas.device-planning.detail.type")), /* @__PURE__ */ import_react.default.createElement("strong", null, record.typeName)), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText("pisell2.saas.device-planning.detail.model")), /* @__PURE__ */ import_react.default.createElement("strong", null, record.modelName)), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-two-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText("pisell2.saas.device-planning.detail.profile")), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__profile-card" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "FileTextOutlined" }), record.profileName)))
|
|
177
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
178
|
+
import_antd.Card,
|
|
81
179
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
180
|
+
size: "small",
|
|
181
|
+
title: getText("pisell2.saas.device-planning.detail.status"),
|
|
182
|
+
className: "device-detail-drawer__card"
|
|
183
|
+
},
|
|
184
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-list" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText("pisell2.saas.device-planning.detail.link-status")), /* @__PURE__ */ import_react.default.createElement(
|
|
185
|
+
import_materials.Tag,
|
|
186
|
+
{
|
|
187
|
+
color: record.link === "linked" ? "green" : "gold",
|
|
188
|
+
style: { marginRight: 0 }
|
|
189
|
+
},
|
|
190
|
+
getText(
|
|
191
|
+
`pisell2.saas.device-planning.status.${record.link}`
|
|
192
|
+
) || record.link
|
|
193
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__info-row" }, /* @__PURE__ */ import_react.default.createElement("span", null, getText(
|
|
194
|
+
"pisell2.saas.device-planning.detail.online-status"
|
|
195
|
+
)), /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__online-status" }, /* @__PURE__ */ import_react.default.createElement(
|
|
196
|
+
"span",
|
|
197
|
+
{
|
|
198
|
+
className: (0, import_classnames.default)(
|
|
199
|
+
"device-detail-drawer__status-dot",
|
|
200
|
+
{
|
|
201
|
+
"is-online": online
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
}
|
|
205
|
+
), getText(
|
|
206
|
+
`pisell2.saas.device-planning.status.${record.status}`
|
|
207
|
+
) || record.status)))
|
|
208
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
209
|
+
import_antd.Card,
|
|
210
|
+
{
|
|
211
|
+
size: "small",
|
|
212
|
+
title: getText("pisell2.saas.device-planning.detail.report-info"),
|
|
213
|
+
extra: /* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__last-seen" }, getText("pisell2.saas.device-planning.detail.last-seen"), lastSeen),
|
|
214
|
+
className: "device-detail-drawer__card"
|
|
215
|
+
},
|
|
216
|
+
reportGroups.length > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__report-list" }, reportGroups.map((group) => /* @__PURE__ */ import_react.default.createElement(
|
|
217
|
+
import_antd.Card,
|
|
218
|
+
{
|
|
219
|
+
key: group.key,
|
|
220
|
+
size: "small",
|
|
221
|
+
type: "inner",
|
|
222
|
+
title: getReportText(getText, `group.${group.key}`),
|
|
223
|
+
className: "device-detail-drawer__report-card"
|
|
224
|
+
},
|
|
225
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__report-rows" }, group.fields.map((field) => /* @__PURE__ */ import_react.default.createElement(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
key: field.key,
|
|
229
|
+
className: "device-detail-drawer__report-row"
|
|
230
|
+
},
|
|
231
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__report-label" }, getReportText(getText, `field.${field.key}`)),
|
|
232
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "device-detail-drawer__report-value" }, field.value ? field.value(group.data, getText) : formatReportValue(
|
|
233
|
+
group.data[field.key],
|
|
234
|
+
getText
|
|
235
|
+
))
|
|
236
|
+
)))
|
|
237
|
+
))) : /* @__PURE__ */ import_react.default.createElement(
|
|
238
|
+
import_antd.Empty,
|
|
239
|
+
{
|
|
240
|
+
image: import_antd.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
241
|
+
description: getText(
|
|
242
|
+
"pisell2.saas.device-planning.detail.no-report-info"
|
|
243
|
+
)
|
|
244
|
+
}
|
|
245
|
+
)
|
|
246
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__footer" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { danger: true, size: "large", onClick: onDelete }, getText("pisell2.saas.device-planning.detail.delete")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", size: "large", onClick: onEdit }, getText("pisell2.saas.device-planning.detail.edit")))) : null
|
|
89
247
|
);
|
|
90
248
|
};
|
|
91
249
|
var DeviceDetailDrawer_default = DeviceDetailDrawer;
|
|
@@ -61,14 +61,32 @@
|
|
|
61
61
|
&__content {
|
|
62
62
|
flex: 1;
|
|
63
63
|
min-height: 0;
|
|
64
|
-
padding: 20px
|
|
64
|
+
padding: 20px 10px;
|
|
65
65
|
overflow: auto;
|
|
66
|
+
background: #f5f6f8;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
&
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
&__card {
|
|
70
|
+
border-radius: 10px;
|
|
71
|
+
|
|
72
|
+
& + & {
|
|
73
|
+
margin-top: 12px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ant-card-head {
|
|
77
|
+
min-height: 42px;
|
|
78
|
+
padding: 0 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ant-card-head-title {
|
|
82
|
+
padding: 10px 0;
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ant-card-body {
|
|
88
|
+
padding: 16px;
|
|
89
|
+
}
|
|
72
90
|
}
|
|
73
91
|
|
|
74
92
|
&__info-list {
|
|
@@ -123,6 +141,124 @@
|
|
|
123
141
|
color: rgba(0, 0, 0, 0.72);
|
|
124
142
|
}
|
|
125
143
|
|
|
144
|
+
&__report-list {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
gap: 12px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__last-seen {
|
|
151
|
+
font-size: 12px;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
color: rgba(0, 0, 0, 0.45);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&__report-card {
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
background: #fafafa;
|
|
159
|
+
|
|
160
|
+
.ant-card-head {
|
|
161
|
+
min-height: 38px;
|
|
162
|
+
padding: 0 12px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ant-card-head-title {
|
|
166
|
+
padding: 8px 0;
|
|
167
|
+
font-size: 13px;
|
|
168
|
+
font-weight: 600;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ant-card-body {
|
|
172
|
+
padding: 12px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&__report-rows {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: 12px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&__report-row {
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
gap: 16px;
|
|
187
|
+
font-size: 14px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&__report-label {
|
|
191
|
+
flex-shrink: 0;
|
|
192
|
+
color: rgba(0, 0, 0, 0.55);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&__report-value,
|
|
196
|
+
&__json-value {
|
|
197
|
+
min-width: 0;
|
|
198
|
+
color: rgba(0, 0, 0, 0.88);
|
|
199
|
+
text-align: right;
|
|
200
|
+
word-break: break-word;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&__battery-value {
|
|
204
|
+
display: inline-flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: flex-end;
|
|
207
|
+
gap: 8px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&__battery-icon {
|
|
211
|
+
position: relative;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
width: 24px;
|
|
214
|
+
height: 12px;
|
|
215
|
+
border: 1.5px solid rgba(0, 0, 0, 0.65);
|
|
216
|
+
border-radius: 3px;
|
|
217
|
+
|
|
218
|
+
&::before {
|
|
219
|
+
position: absolute;
|
|
220
|
+
top: 2px;
|
|
221
|
+
right: -4px;
|
|
222
|
+
width: 2px;
|
|
223
|
+
height: 6px;
|
|
224
|
+
border-radius: 0 2px 2px 0;
|
|
225
|
+
background: rgba(0, 0, 0, 0.65);
|
|
226
|
+
content: '';
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&.is-charging {
|
|
230
|
+
border-color: #16a34a;
|
|
231
|
+
|
|
232
|
+
&::before {
|
|
233
|
+
background: #16a34a;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&__battery-fill {
|
|
239
|
+
position: absolute;
|
|
240
|
+
top: 2px;
|
|
241
|
+
left: 2px;
|
|
242
|
+
max-width: 17px;
|
|
243
|
+
height: 5px;
|
|
244
|
+
border-radius: 1px;
|
|
245
|
+
background: #16a34a;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&__battery-bolt {
|
|
249
|
+
position: absolute;
|
|
250
|
+
top: -3px;
|
|
251
|
+
left: 8px;
|
|
252
|
+
width: 7px;
|
|
253
|
+
height: 14px;
|
|
254
|
+
background: #f59e0b;
|
|
255
|
+
clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 35% 100%, 48% 56%, 0 56%);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&__battery-status {
|
|
259
|
+
color: #16a34a;
|
|
260
|
+
}
|
|
261
|
+
|
|
126
262
|
&__online-status {
|
|
127
263
|
display: inline-flex;
|
|
128
264
|
align-items: center;
|