@pisell/private-materials 3.4.104 → 3.4.106
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 +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/orderList/components/HandleActions.d.ts +1 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/es/plus/orderList/components/Reset.d.ts +1 -0
- package/es/plus/orderList/components/Toolbar.d.ts +1 -0
- package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.d.ts +2 -1
- package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.js +54 -154
- package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.less +62 -9
- package/es/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.js +7 -6
- package/es/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.js +8 -6
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.d.ts +21 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.js +244 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.less +323 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.d.ts +18 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.js +272 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.less +111 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.d.ts +10 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.js +211 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.less +211 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.d.ts +11 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.js +39 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.d.ts +14 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.js +22 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.d.ts +14 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.js +122 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.d.ts +12 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.js +41 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.d.ts +11 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.js +51 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.d.ts +22 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.js +98 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.d.ts +12 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.js +24 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.d.ts +56 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.js +278 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.d.ts +20 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.js +125 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.d.ts +16 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.js +58 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.d.ts +3 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +62 -210
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +103 -209
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +29 -19
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +22 -1
- package/es/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.js +17 -21
- package/es/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.js +14 -15
- package/es/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.d.ts +25 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.js +82 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.d.ts +10 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.js +18 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.d.ts +12 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.js +147 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.d.ts +9 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.js +22 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.d.ts +9 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.js +12 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.d.ts +15 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.js +61 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.d.ts +10 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.js +16 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.d.ts +8 -0
- package/es/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.js +17 -0
- package/es/plus/saasDevice/devicePlanning/hooks/index.d.ts +2 -0
- package/es/plus/saasDevice/devicePlanning/hooks/index.js +12 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useDeviceList.d.ts +33 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useDeviceList.js +183 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useDeviceModels.d.ts +20 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useDeviceModels.js +92 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.d.ts +27 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.js +95 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useWorkAreas.d.ts +35 -0
- package/es/plus/saasDevice/devicePlanning/hooks/useWorkAreas.js +292 -0
- package/es/plus/saasDevice/devicePlanning/index.js +168 -637
- package/es/plus/saasDevice/devicePlanning/locales.d.ts +215 -0
- package/es/plus/saasDevice/devicePlanning/locales.js +215 -0
- package/es/plus/saasDevice/devicePlanning/serve.d.ts +14 -2
- package/es/plus/saasDevice/devicePlanning/serve.js +175 -20
- package/es/plus/saasDevice/devicePlanning/types.d.ts +85 -0
- package/es/plus/saasDevice/devicePlanning/types.js +46 -3
- package/es/plus/saasDevice/devicePlanning/utils.d.ts +27 -0
- package/es/plus/saasDevice/devicePlanning/utils.js +125 -0
- package/es/plus/saasDevice/index.d.ts +3 -0
- package/es/plus/saasDevice/index.js +3 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passList/index.js +1 -2
- package/es/pro/Selector/demo.d.ts +0 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/lib/plus/orderList/components/Reset.d.ts +1 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
- package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.d.ts +2 -1
- package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.js +50 -120
- package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.less +62 -9
- package/lib/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.js +15 -8
- package/lib/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.js +10 -6
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.d.ts +21 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.js +270 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.less +323 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.d.ts +18 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.js +235 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.less +111 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.d.ts +10 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.js +218 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.less +211 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.d.ts +11 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.js +73 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.d.ts +14 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.js +61 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.d.ts +14 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.js +171 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.d.ts +12 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.js +78 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.d.ts +11 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.js +87 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.d.ts +22 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.js +129 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.d.ts +12 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.js +56 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.d.ts +56 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.js +229 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.d.ts +20 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.js +90 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.d.ts +16 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.js +74 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.d.ts +3 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +62 -173
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +103 -209
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +54 -39
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +22 -1
- package/lib/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.js +25 -25
- package/lib/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.js +22 -17
- package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.d.ts +25 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.js +126 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.d.ts +10 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.js +45 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.d.ts +12 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.js +165 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.d.ts +9 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.js +54 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.d.ts +9 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.js +42 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.d.ts +15 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.js +89 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.d.ts +10 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.js +50 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.d.ts +8 -0
- package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.js +53 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/index.d.ts +2 -0
- package/lib/plus/saasDevice/devicePlanning/{hooks.js → hooks/index.js} +9 -6
- package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceList.d.ts +33 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceList.js +131 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceModels.d.ts +20 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceModels.js +109 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.d.ts +27 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.js +90 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useWorkAreas.d.ts +35 -0
- package/lib/plus/saasDevice/devicePlanning/hooks/useWorkAreas.js +169 -0
- package/lib/plus/saasDevice/devicePlanning/index.js +120 -375
- package/lib/plus/saasDevice/devicePlanning/locales.d.ts +215 -0
- package/lib/plus/saasDevice/devicePlanning/locales.js +215 -0
- package/lib/plus/saasDevice/devicePlanning/serve.d.ts +14 -2
- package/lib/plus/saasDevice/devicePlanning/serve.js +88 -1
- package/lib/plus/saasDevice/devicePlanning/types.d.ts +85 -0
- package/lib/plus/saasDevice/devicePlanning/types.js +1 -1
- package/lib/plus/saasDevice/devicePlanning/utils.d.ts +27 -0
- package/lib/plus/saasDevice/devicePlanning/utils.js +130 -0
- package/lib/plus/saasDevice/index.d.ts +3 -0
- package/lib/plus/saasDevice/index.js +42 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passList/index.js +0 -1
- package/lib/pro/Selector/demo.d.ts +0 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/package.json +2 -2
- package/build/lowcode.zip +0 -0
- package/es/plus/saasDevice/devicePlanning/hooks.d.ts +0 -1
- package/es/plus/saasDevice/devicePlanning/hooks.js +0 -9
- package/lib/plus/saasDevice/devicePlanning/hooks.d.ts +0 -1
|
@@ -20,9 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
createDevice: () => createDevice,
|
|
23
|
+
createDeviceConnection: () => createDeviceConnection,
|
|
23
24
|
createWorkArea: () => createWorkArea,
|
|
24
25
|
deleteDevice: () => deleteDevice,
|
|
26
|
+
deleteDeviceConnection: () => deleteDeviceConnection,
|
|
25
27
|
deleteWorkArea: () => deleteWorkArea,
|
|
28
|
+
getDeviceBrands: () => getDeviceBrands,
|
|
29
|
+
getDeviceConnectionDetail: () => getDeviceConnectionDetail,
|
|
30
|
+
getDeviceConnections: () => getDeviceConnections,
|
|
31
|
+
getDeviceDetail: () => getDeviceDetail,
|
|
26
32
|
getDeviceTypes: () => getDeviceTypes,
|
|
27
33
|
getDevices: () => getDevices,
|
|
28
34
|
getWorkAreaDetail: () => getWorkAreaDetail,
|
|
@@ -30,6 +36,7 @@ __export(serve_exports, {
|
|
|
30
36
|
sortDevices: () => sortDevices,
|
|
31
37
|
sortWorkAreas: () => sortWorkAreas,
|
|
32
38
|
updateDevice: () => updateDevice,
|
|
39
|
+
updateDeviceConnection: () => updateDeviceConnection,
|
|
33
40
|
updateWorkArea: () => updateWorkArea
|
|
34
41
|
});
|
|
35
42
|
module.exports = __toCommonJS(serve_exports);
|
|
@@ -79,17 +86,90 @@ var getDevices = async (params) => {
|
|
|
79
86
|
);
|
|
80
87
|
return (response == null ? void 0 : response.data) || [];
|
|
81
88
|
};
|
|
89
|
+
var getDeviceDetail = async (id) => {
|
|
90
|
+
const response = await import_utils.request.getRequest().get(
|
|
91
|
+
`/tenant/device/${id}`,
|
|
92
|
+
{
|
|
93
|
+
with: ["type", "model", "model.activeProfiles", "profile"]
|
|
94
|
+
},
|
|
95
|
+
CONFIG
|
|
96
|
+
);
|
|
97
|
+
return (response == null ? void 0 : response.data) || null;
|
|
98
|
+
};
|
|
99
|
+
var createDeviceConnection = async (payload) => {
|
|
100
|
+
const response = await import_utils.request.getRequest().post("/tenant/device/connection", payload, CONFIG);
|
|
101
|
+
return (response == null ? void 0 : response.data) || null;
|
|
102
|
+
};
|
|
103
|
+
var getDeviceConnections = async (params) => {
|
|
104
|
+
const response = await import_utils.request.getRequest().get(
|
|
105
|
+
"/tenant/device/connection",
|
|
106
|
+
{
|
|
107
|
+
with: params.with || ["targetDevice.type", "sourceDevice.type", "profiles"],
|
|
108
|
+
type: params.type,
|
|
109
|
+
source_device_id: params.source_device_id,
|
|
110
|
+
target_device_id: params.target_device_id
|
|
111
|
+
},
|
|
112
|
+
CONFIG
|
|
113
|
+
);
|
|
114
|
+
return (response == null ? void 0 : response.data) || [];
|
|
115
|
+
};
|
|
116
|
+
var getDeviceConnectionDetail = async (id) => {
|
|
117
|
+
const response = await import_utils.request.getRequest().get(
|
|
118
|
+
`/tenant/device/connection/${id}`,
|
|
119
|
+
{
|
|
120
|
+
with: ["targetDevice.type", "sourceDevice.type", "profiles"]
|
|
121
|
+
},
|
|
122
|
+
CONFIG
|
|
123
|
+
);
|
|
124
|
+
return (response == null ? void 0 : response.data) || null;
|
|
125
|
+
};
|
|
126
|
+
var updateDeviceConnection = async (id, payload) => {
|
|
127
|
+
const response = await import_utils.request.getRequest().put(
|
|
128
|
+
`/tenant/device/connection/${id}`,
|
|
129
|
+
payload,
|
|
130
|
+
CONFIG
|
|
131
|
+
);
|
|
132
|
+
return (response == null ? void 0 : response.data) || null;
|
|
133
|
+
};
|
|
134
|
+
var deleteDeviceConnection = (id) => import_utils.request.getRequest().remove(`/tenant/device/connection/${id}`, {}, CONFIG);
|
|
82
135
|
var getDeviceTypes = async (params) => {
|
|
83
136
|
const response = await import_utils.request.getRequest().get(
|
|
84
137
|
"/tenant/device/type/all",
|
|
85
138
|
{
|
|
86
|
-
with: params.with || ["activeModels", "activeModels.activeProfiles"],
|
|
139
|
+
with: params.with || ["activeModels", "activeModels.activeProfiles", "activeModels.brand"],
|
|
87
140
|
kind: params.kind
|
|
88
141
|
},
|
|
89
142
|
CONFIG
|
|
90
143
|
);
|
|
91
144
|
return (response == null ? void 0 : response.data) || [];
|
|
92
145
|
};
|
|
146
|
+
var getDeviceBrands = async () => {
|
|
147
|
+
const response = await import_utils.request.getRequest().get(
|
|
148
|
+
"/api/device_brand:list",
|
|
149
|
+
{
|
|
150
|
+
page: 1,
|
|
151
|
+
pageSize: 20,
|
|
152
|
+
filter: {
|
|
153
|
+
$and: [
|
|
154
|
+
{
|
|
155
|
+
$and: {
|
|
156
|
+
deleted_at: {
|
|
157
|
+
$is: null
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
isNocobase: true,
|
|
166
|
+
headers: {
|
|
167
|
+
"x-data-source": "pisell2"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
return (response == null ? void 0 : response.data) || [];
|
|
172
|
+
};
|
|
93
173
|
var createDevice = async (payload) => {
|
|
94
174
|
const response = await import_utils.request.getRequest().post("/tenant/device", payload, CONFIG);
|
|
95
175
|
return (response == null ? void 0 : response.data) || null;
|
|
@@ -103,9 +183,15 @@ var deleteDevice = (id) => import_utils.request.getRequest().remove(`/tenant/dev
|
|
|
103
183
|
// Annotate the CommonJS export names for ESM import in node:
|
|
104
184
|
0 && (module.exports = {
|
|
105
185
|
createDevice,
|
|
186
|
+
createDeviceConnection,
|
|
106
187
|
createWorkArea,
|
|
107
188
|
deleteDevice,
|
|
189
|
+
deleteDeviceConnection,
|
|
108
190
|
deleteWorkArea,
|
|
191
|
+
getDeviceBrands,
|
|
192
|
+
getDeviceConnectionDetail,
|
|
193
|
+
getDeviceConnections,
|
|
194
|
+
getDeviceDetail,
|
|
109
195
|
getDeviceTypes,
|
|
110
196
|
getDevices,
|
|
111
197
|
getWorkAreaDetail,
|
|
@@ -113,5 +199,6 @@ var deleteDevice = (id) => import_utils.request.getRequest().remove(`/tenant/dev
|
|
|
113
199
|
sortDevices,
|
|
114
200
|
sortWorkAreas,
|
|
115
201
|
updateDevice,
|
|
202
|
+
updateDeviceConnection,
|
|
116
203
|
updateWorkArea
|
|
117
204
|
});
|
|
@@ -2,6 +2,7 @@ import type React from 'react';
|
|
|
2
2
|
export declare type DeviceKind = 'smart' | 'dumb' | 'integrated';
|
|
3
3
|
export declare type DeviceLinkStatus = 'linked' | 'unlinked' | string;
|
|
4
4
|
export declare type DeviceOnlineStatus = 'online' | 'offline' | 'unknown' | string;
|
|
5
|
+
/** 多语言字段,后端可能返回字符串或语言字典。 */
|
|
5
6
|
export declare type I18nText = string | {
|
|
6
7
|
original?: string;
|
|
7
8
|
'zh-CN'?: string;
|
|
@@ -19,19 +20,37 @@ export declare type LangDict = {
|
|
|
19
20
|
ja?: string;
|
|
20
21
|
pt?: string;
|
|
21
22
|
};
|
|
23
|
+
/** SaasDevicePlanning 低代码物料的对外 props。 */
|
|
22
24
|
export interface SaasDevicePlanningProps {
|
|
23
25
|
className?: string;
|
|
24
26
|
style?: React.CSSProperties;
|
|
25
27
|
}
|
|
28
|
+
/** 工作区,设备规划左侧列表的基本单元。 */
|
|
26
29
|
export interface WorkAreaItem {
|
|
27
30
|
id: number;
|
|
28
31
|
tenant_id?: number;
|
|
29
32
|
name: I18nText;
|
|
30
33
|
description?: I18nText;
|
|
31
34
|
sort: number;
|
|
35
|
+
smart_devices_count?: number;
|
|
36
|
+
dumb_devices_count?: number;
|
|
37
|
+
integrated_devices_count?: number;
|
|
32
38
|
created_at?: string;
|
|
33
39
|
updated_at?: string;
|
|
34
40
|
}
|
|
41
|
+
/** 设备品牌,主要用于外设型号筛选。 */
|
|
42
|
+
export interface DeviceBrandItem {
|
|
43
|
+
id: number;
|
|
44
|
+
code: string;
|
|
45
|
+
name: I18nText;
|
|
46
|
+
description?: I18nText;
|
|
47
|
+
website?: string;
|
|
48
|
+
status?: string;
|
|
49
|
+
created_at?: string;
|
|
50
|
+
updated_at?: string;
|
|
51
|
+
deleted_at?: string | null;
|
|
52
|
+
}
|
|
53
|
+
/** 设备类型,例如 POS、Receipt Printer;一个类型下可包含多个型号。 */
|
|
35
54
|
export interface DeviceTypeItem {
|
|
36
55
|
id: number;
|
|
37
56
|
kind: DeviceKind;
|
|
@@ -43,6 +62,7 @@ export interface DeviceTypeItem {
|
|
|
43
62
|
sort?: number;
|
|
44
63
|
active_models?: DeviceModelItem[];
|
|
45
64
|
}
|
|
65
|
+
/** 设备型号,创建设备和连接新增外设时都以 model_code 为核心。 */
|
|
46
66
|
export interface DeviceModelItem {
|
|
47
67
|
id: number;
|
|
48
68
|
brand_code?: string;
|
|
@@ -56,12 +76,15 @@ export interface DeviceModelItem {
|
|
|
56
76
|
required?: boolean;
|
|
57
77
|
tabs?: unknown[];
|
|
58
78
|
};
|
|
79
|
+
connection_types?: string[];
|
|
59
80
|
[key: string]: unknown;
|
|
60
81
|
} | null;
|
|
61
82
|
status?: string;
|
|
62
83
|
sort?: number;
|
|
63
84
|
active_profiles?: DeviceProfileItem[];
|
|
85
|
+
brand?: DeviceBrandItem;
|
|
64
86
|
}
|
|
87
|
+
/** 设备配置方案,智能设备和外设连接时可绑定多个 profile。 */
|
|
65
88
|
export interface DeviceProfileItem {
|
|
66
89
|
id: number;
|
|
67
90
|
model_code?: string;
|
|
@@ -71,6 +94,7 @@ export interface DeviceProfileItem {
|
|
|
71
94
|
setting?: Record<string, unknown> | null;
|
|
72
95
|
status?: string;
|
|
73
96
|
}
|
|
97
|
+
/** 后端设备实体,smart/dumb/integrated 三类设备共用。 */
|
|
74
98
|
export interface DeviceItem {
|
|
75
99
|
id: number;
|
|
76
100
|
tenant_id?: number;
|
|
@@ -94,27 +118,85 @@ export interface DeviceItem {
|
|
|
94
118
|
profile?: DeviceProfileItem | null;
|
|
95
119
|
workarea?: WorkAreaItem;
|
|
96
120
|
}
|
|
121
|
+
/** 设备连接配置,网络连接时会带 connection_method 和 connection_ip。 */
|
|
122
|
+
export interface DeviceConnectionConfig {
|
|
123
|
+
connection_ip?: string;
|
|
124
|
+
connection_type?: string;
|
|
125
|
+
connection_method?: string;
|
|
126
|
+
[key: string]: unknown;
|
|
127
|
+
}
|
|
128
|
+
/** 设备连接业务类型;当前接口仅启用哑设备连接。 */
|
|
129
|
+
export declare type DeviceConnectionType = 'dumb';
|
|
130
|
+
/** 智能设备与外设的连接关系。 */
|
|
131
|
+
export interface DeviceConnectionItem {
|
|
132
|
+
id: number;
|
|
133
|
+
tenant_id?: number;
|
|
134
|
+
type?: DeviceConnectionType;
|
|
135
|
+
source_device_id: number;
|
|
136
|
+
target_device_id: number;
|
|
137
|
+
config?: DeviceConnectionConfig | null;
|
|
138
|
+
profile_ids?: number[];
|
|
139
|
+
status?: string | null;
|
|
140
|
+
created_at?: string;
|
|
141
|
+
updated_at?: string;
|
|
142
|
+
source_device?: DeviceItem | null;
|
|
143
|
+
target_device?: DeviceItem | null;
|
|
144
|
+
profiles?: DeviceProfileItem[];
|
|
145
|
+
}
|
|
146
|
+
/** 设备列表查询参数。 */
|
|
97
147
|
export interface ListDeviceParams {
|
|
98
148
|
with?: string[];
|
|
99
149
|
workarea_id?: number;
|
|
100
150
|
type_kind?: DeviceKind;
|
|
101
151
|
profile_id?: number;
|
|
102
152
|
}
|
|
153
|
+
/** 设备连接列表查询参数。source 和 target 通过不同 id 字段过滤。 */
|
|
154
|
+
export interface ListDeviceConnectionParams {
|
|
155
|
+
type?: DeviceConnectionType;
|
|
156
|
+
source_device_id?: number;
|
|
157
|
+
target_device_id?: number;
|
|
158
|
+
with?: string[];
|
|
159
|
+
}
|
|
160
|
+
/** 保存工作区的表单 payload。 */
|
|
103
161
|
export interface SaveWorkAreaPayload {
|
|
104
162
|
name: LangDict;
|
|
105
163
|
description: LangDict;
|
|
106
164
|
}
|
|
165
|
+
/** 单独创建设备的 payload,由 AddDeviceModal 提交。 */
|
|
107
166
|
export interface CreateDevicePayload {
|
|
108
167
|
workarea_id: number;
|
|
109
168
|
model_code: string;
|
|
110
169
|
profile_id: number | null;
|
|
111
170
|
name: LangDict;
|
|
112
171
|
}
|
|
172
|
+
/** 连接流程里“新增外设并连接”时嵌套创建的目标设备 payload。 */
|
|
173
|
+
export interface CreateConnectionTargetDevicePayload {
|
|
174
|
+
workarea_id: number;
|
|
175
|
+
model_code: string;
|
|
176
|
+
name: LangDict;
|
|
177
|
+
}
|
|
178
|
+
/** 创建连接的 payload,支持连接已有外设或新增外设后连接。 */
|
|
179
|
+
export interface CreateDeviceConnectionPayload {
|
|
180
|
+
type: DeviceConnectionType;
|
|
181
|
+
source_device_id: number;
|
|
182
|
+
target_device_id?: number;
|
|
183
|
+
target_device?: CreateConnectionTargetDevicePayload;
|
|
184
|
+
target_device_action: 'existing' | 'new';
|
|
185
|
+
config: DeviceConnectionConfig;
|
|
186
|
+
profile_ids: number[];
|
|
187
|
+
}
|
|
188
|
+
/** 更新连接配置的 payload,仅更新 config 和 profile_ids。 */
|
|
189
|
+
export interface UpdateDeviceConnectionPayload {
|
|
190
|
+
config: DeviceConnectionConfig;
|
|
191
|
+
profile_ids: number[];
|
|
192
|
+
}
|
|
193
|
+
/** 编辑设备时允许更新工作区、名称和 smart profile。 */
|
|
113
194
|
export interface UpdateDevicePayload {
|
|
114
195
|
workarea_id: number;
|
|
115
196
|
profile_id: number | null;
|
|
116
197
|
name: LangDict;
|
|
117
198
|
}
|
|
199
|
+
/** 表格/详情抽屉使用的展示模型,保留 _raw 以便提交时读取原始字段。 */
|
|
118
200
|
export interface DeviceRow {
|
|
119
201
|
id: number;
|
|
120
202
|
name: string;
|
|
@@ -127,6 +209,7 @@ export interface DeviceRow {
|
|
|
127
209
|
modelCode: string;
|
|
128
210
|
_raw: DeviceItem;
|
|
129
211
|
}
|
|
212
|
+
/** 删除工作区前用于判断是否阻断删除的设备数量。 */
|
|
130
213
|
export interface DeleteWorkAreaCounts {
|
|
131
214
|
smart: number;
|
|
132
215
|
dumb: number;
|
|
@@ -134,5 +217,7 @@ export interface DeleteWorkAreaCounts {
|
|
|
134
217
|
}
|
|
135
218
|
export declare const EMPTY_I18N: LangDict;
|
|
136
219
|
export declare const DEVICE_KIND_OPTIONS: DeviceKind[];
|
|
220
|
+
/** 统一把后端多语言值转成可编辑表单需要的语言字典。 */
|
|
137
221
|
export declare const toLangDict: (val?: I18nText) => LangDict;
|
|
222
|
+
/** 校验 BaseTranslation 字段是否至少填写 original 或任一语言值。 */
|
|
138
223
|
export declare const validateI18nRequired: (message: string) => (_rule: unknown, value: I18nText | undefined) => Promise<void>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DeleteWorkAreaCounts, DeviceBrandItem, DeviceItem, DeviceKind, DeviceModelItem, DeviceRow, DeviceTypeItem, I18nText } from './types';
|
|
2
|
+
export declare const DEVICE_ICON_COLOR: Record<DeviceKind, string>;
|
|
3
|
+
export declare const CONNECTION_TYPE_OPTIONS: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const BRAND_OPTION_SEPARATOR = "__";
|
|
8
|
+
/** 把品牌 id 和 code 编码成 Select value,避免 code 中特殊字符与 id 冲突。 */
|
|
9
|
+
export declare const getBrandOptionValue: (brand: DeviceBrandItem) => string;
|
|
10
|
+
/** 从品牌 Select value 中还原 brand_code。 */
|
|
11
|
+
export declare const getBrandCodeFromOptionValue: (value?: string) => string | undefined;
|
|
12
|
+
/** 读取型号支持的连接方式,用于外设型号筛选和连接配置展示。 */
|
|
13
|
+
export declare const getModelConnectionTypes: (model: DeviceModelItem) => string[];
|
|
14
|
+
/** 把连接方式 code 转成 UI 展示文案。 */
|
|
15
|
+
export declare const getConnectionTypeLabel: (value?: string) => string;
|
|
16
|
+
/** 判断当前型号是否必须选择 profile。 */
|
|
17
|
+
export declare const isProfileRequired: (model?: DeviceModelItem) => boolean;
|
|
18
|
+
/** 判断多语言表单值是否至少有一个非空语言值。 */
|
|
19
|
+
export declare const hasI18nValue: (value?: Record<string, unknown>) => boolean;
|
|
20
|
+
/** 将后端按类型返回的 active_models 展平成去重后的型号列表。 */
|
|
21
|
+
export declare const flattenDeviceModels: (types: DeviceTypeItem[]) => DeviceModelItem[];
|
|
22
|
+
/** 把后端设备实体转换成列表和详情抽屉共用的展示模型。 */
|
|
23
|
+
export declare const createDeviceRow: (item: DeviceItem, translation: (val?: I18nText) => string, profileNameMap?: Map<number, string>) => DeviceRow;
|
|
24
|
+
/** 兼容工作区详情接口可能返回 data 数组或单对象的两种结构。 */
|
|
25
|
+
export declare const resolveWorkAreaDetail: (response: unknown) => any;
|
|
26
|
+
/** 从工作区详情响应中提取三类设备数量,用于删除前阻断判断。 */
|
|
27
|
+
export declare const getDeleteWorkAreaCounts: (response: unknown) => DeleteWorkAreaCounts;
|
|
@@ -0,0 +1,130 @@
|
|
|
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/plus/saasDevice/devicePlanning/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
BRAND_OPTION_SEPARATOR: () => BRAND_OPTION_SEPARATOR,
|
|
23
|
+
CONNECTION_TYPE_OPTIONS: () => CONNECTION_TYPE_OPTIONS,
|
|
24
|
+
DEVICE_ICON_COLOR: () => DEVICE_ICON_COLOR,
|
|
25
|
+
createDeviceRow: () => createDeviceRow,
|
|
26
|
+
flattenDeviceModels: () => flattenDeviceModels,
|
|
27
|
+
getBrandCodeFromOptionValue: () => getBrandCodeFromOptionValue,
|
|
28
|
+
getBrandOptionValue: () => getBrandOptionValue,
|
|
29
|
+
getConnectionTypeLabel: () => getConnectionTypeLabel,
|
|
30
|
+
getDeleteWorkAreaCounts: () => getDeleteWorkAreaCounts,
|
|
31
|
+
getModelConnectionTypes: () => getModelConnectionTypes,
|
|
32
|
+
hasI18nValue: () => hasI18nValue,
|
|
33
|
+
isProfileRequired: () => isProfileRequired,
|
|
34
|
+
resolveWorkAreaDetail: () => resolveWorkAreaDetail
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(utils_exports);
|
|
37
|
+
var DEVICE_ICON_COLOR = {
|
|
38
|
+
smart: "#1677ff",
|
|
39
|
+
dumb: "#faad14",
|
|
40
|
+
integrated: "#389e0d"
|
|
41
|
+
};
|
|
42
|
+
var CONNECTION_TYPE_OPTIONS = [
|
|
43
|
+
{ label: "USB", value: "usb" },
|
|
44
|
+
{ label: "Ethernet", value: "ethernet" },
|
|
45
|
+
{ label: "WiFi", value: "wifi" },
|
|
46
|
+
{ label: "Bluetooth", value: "bluetooth" },
|
|
47
|
+
{ label: "Serial", value: "serial" }
|
|
48
|
+
];
|
|
49
|
+
var BRAND_OPTION_SEPARATOR = "__";
|
|
50
|
+
var getBrandOptionValue = (brand) => `${brand.id}${BRAND_OPTION_SEPARATOR}${brand.code}`;
|
|
51
|
+
var getBrandCodeFromOptionValue = (value) => value == null ? void 0 : value.split(BRAND_OPTION_SEPARATOR).slice(1).join(BRAND_OPTION_SEPARATOR);
|
|
52
|
+
var getModelConnectionTypes = (model) => {
|
|
53
|
+
var _a;
|
|
54
|
+
const connections = (_a = model.data) == null ? void 0 : _a.connection_types;
|
|
55
|
+
return Array.isArray(connections) ? connections.map((item) => String(item || "").trim()).filter(Boolean) : [];
|
|
56
|
+
};
|
|
57
|
+
var getConnectionTypeLabel = (value) => {
|
|
58
|
+
var _a;
|
|
59
|
+
if (!value) return "-";
|
|
60
|
+
const normalizedValue = value.toLowerCase().trim();
|
|
61
|
+
return ((_a = CONNECTION_TYPE_OPTIONS.find((option) => option.value === normalizedValue)) == null ? void 0 : _a.label) || value;
|
|
62
|
+
};
|
|
63
|
+
var isProfileRequired = (model) => {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
return Boolean((_b = (_a = model == null ? void 0 : model.data) == null ? void 0 : _a.profile_structure) == null ? void 0 : _b.required);
|
|
66
|
+
};
|
|
67
|
+
var hasI18nValue = (value) => {
|
|
68
|
+
if (!value) return false;
|
|
69
|
+
return Object.values(value).some((item) => String(item || "").trim());
|
|
70
|
+
};
|
|
71
|
+
var flattenDeviceModels = (types) => {
|
|
72
|
+
const modelMap = /* @__PURE__ */ new Map();
|
|
73
|
+
types.forEach((type) => {
|
|
74
|
+
(type.active_models || []).forEach((model) => {
|
|
75
|
+
if (!modelMap.has(model.code)) {
|
|
76
|
+
modelMap.set(model.code, { ...model, type: model.type || type });
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
return Array.from(modelMap.values());
|
|
81
|
+
};
|
|
82
|
+
var createDeviceRow = (item, translation, profileNameMap) => {
|
|
83
|
+
var _a, _b, _c;
|
|
84
|
+
const name = translation(item.name);
|
|
85
|
+
const typeName = translation((_a = item.type) == null ? void 0 : _a.name) || item.type_code;
|
|
86
|
+
const modelName = translation((_b = item.model) == null ? void 0 : _b.name) || item.model_code;
|
|
87
|
+
const link = item.link || "unlinked";
|
|
88
|
+
const profileName = translation((_c = item.profile) == null ? void 0 : _c.name) || (item.profile_id ? profileNameMap == null ? void 0 : profileNameMap.get(item.profile_id) : "") || (item.profile_id ? String(item.profile_id) : "-");
|
|
89
|
+
return {
|
|
90
|
+
id: item.id,
|
|
91
|
+
name,
|
|
92
|
+
typeName,
|
|
93
|
+
modelName,
|
|
94
|
+
profileName,
|
|
95
|
+
link,
|
|
96
|
+
status: link === "linked" ? item.status || "offline" : "unknown",
|
|
97
|
+
typeCode: item.type_code,
|
|
98
|
+
modelCode: item.model_code,
|
|
99
|
+
_raw: item
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
var resolveWorkAreaDetail = (response) => {
|
|
103
|
+
const data = response == null ? void 0 : response.data;
|
|
104
|
+
if (Array.isArray(data)) return data[0];
|
|
105
|
+
return data || response;
|
|
106
|
+
};
|
|
107
|
+
var getDeleteWorkAreaCounts = (response) => {
|
|
108
|
+
const workArea = resolveWorkAreaDetail(response);
|
|
109
|
+
return {
|
|
110
|
+
smart: (workArea == null ? void 0 : workArea.smart_devices_count) || 0,
|
|
111
|
+
dumb: (workArea == null ? void 0 : workArea.dumb_devices_count) || 0,
|
|
112
|
+
integrated: (workArea == null ? void 0 : workArea.integrated_devices_count) || 0
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
116
|
+
0 && (module.exports = {
|
|
117
|
+
BRAND_OPTION_SEPARATOR,
|
|
118
|
+
CONNECTION_TYPE_OPTIONS,
|
|
119
|
+
DEVICE_ICON_COLOR,
|
|
120
|
+
createDeviceRow,
|
|
121
|
+
flattenDeviceModels,
|
|
122
|
+
getBrandCodeFromOptionValue,
|
|
123
|
+
getBrandOptionValue,
|
|
124
|
+
getConnectionTypeLabel,
|
|
125
|
+
getDeleteWorkAreaCounts,
|
|
126
|
+
getModelConnectionTypes,
|
|
127
|
+
hasI18nValue,
|
|
128
|
+
isProfileRequired,
|
|
129
|
+
resolveWorkAreaDetail
|
|
130
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
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/plus/saasDevice/index.tsx
|
|
30
|
+
var saasDevice_exports = {};
|
|
31
|
+
__export(saasDevice_exports, {
|
|
32
|
+
DevicePlanning: () => import_devicePlanning.default,
|
|
33
|
+
DeviceProfile: () => import_deviceProfile.default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(saasDevice_exports);
|
|
36
|
+
var import_devicePlanning = __toESM(require("./devicePlanning"));
|
|
37
|
+
var import_deviceProfile = __toESM(require("./deviceProfile"));
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
DevicePlanning,
|
|
41
|
+
DeviceProfile
|
|
42
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.106",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"react-infinite-scroll-component": "^6.1.0",
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
|
+
"@pisell/materials": "3.3.95",
|
|
79
80
|
"@pisell/utils": "3.0.2",
|
|
80
|
-
"@pisell/materials": "3.3.94",
|
|
81
81
|
"@pisell/date-picker": "3.0.4",
|
|
82
82
|
"@pisell/icon": "0.0.11"
|
|
83
83
|
},
|
package/build/lowcode.zip
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTranslation: () => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
|
2
|
-
export var useTranslation = function useTranslation() {
|
|
3
|
-
var _context$appHelper;
|
|
4
|
-
var context = useEngineContext();
|
|
5
|
-
return (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.translation) || function (val) {
|
|
6
|
-
if (typeof val === 'string') return val;
|
|
7
|
-
return (val === null || val === void 0 ? void 0 : val.original) || (val === null || val === void 0 ? void 0 : val.en) || '';
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTranslation: () => any;
|