@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
|
@@ -0,0 +1,270 @@
|
|
|
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/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.tsx
|
|
30
|
+
var ConnectExistingDeviceModal_exports = {};
|
|
31
|
+
__export(ConnectExistingDeviceModal_exports, {
|
|
32
|
+
default: () => ConnectExistingDeviceModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ConnectExistingDeviceModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_types = require("../../../types");
|
|
40
|
+
var import_useConnectDeviceModal = require("../hooks/useConnectDeviceModal");
|
|
41
|
+
var import_ConnectDeviceModalHeader = __toESM(require("./connectDeviceModal/ConnectDeviceModalHeader"));
|
|
42
|
+
var import_ConnectionConfigFields = __toESM(require("./connectDeviceModal/ConnectionConfigFields"));
|
|
43
|
+
var import_DeviceConnectionSummary = __toESM(require("./connectDeviceModal/DeviceConnectionSummary"));
|
|
44
|
+
var import_NewPeripheralInfoFields = __toESM(require("./connectDeviceModal/NewPeripheralInfoFields"));
|
|
45
|
+
var import_PickExistingDeviceStep = __toESM(require("./connectDeviceModal/PickExistingDeviceStep"));
|
|
46
|
+
var import_PickNewPeripheralStep = __toESM(require("./connectDeviceModal/PickNewPeripheralStep"));
|
|
47
|
+
var import_AddDeviceModal = require("../../AddDeviceModal/index.less");
|
|
48
|
+
var import_ConnectExistingDeviceModal = require("./ConnectExistingDeviceModal.less");
|
|
49
|
+
var ConnectExistingDeviceModal = ({
|
|
50
|
+
open,
|
|
51
|
+
mode,
|
|
52
|
+
currentDevice,
|
|
53
|
+
editConnection,
|
|
54
|
+
connectedDeviceIds,
|
|
55
|
+
currentWorkAreaId,
|
|
56
|
+
getText,
|
|
57
|
+
translation,
|
|
58
|
+
submitting,
|
|
59
|
+
onClose,
|
|
60
|
+
onSubmit,
|
|
61
|
+
onUpdate
|
|
62
|
+
}) => {
|
|
63
|
+
var _a;
|
|
64
|
+
const [form] = import_antd.Form.useForm();
|
|
65
|
+
const modal = (0, import_useConnectDeviceModal.useConnectDeviceModal)({
|
|
66
|
+
open,
|
|
67
|
+
mode,
|
|
68
|
+
currentDevice,
|
|
69
|
+
editConnection,
|
|
70
|
+
connectedDeviceIds,
|
|
71
|
+
currentWorkAreaId,
|
|
72
|
+
getText,
|
|
73
|
+
translation,
|
|
74
|
+
onSubmit,
|
|
75
|
+
onUpdate
|
|
76
|
+
});
|
|
77
|
+
const {
|
|
78
|
+
step,
|
|
79
|
+
workAreas,
|
|
80
|
+
brands,
|
|
81
|
+
models,
|
|
82
|
+
selectedWorkAreaId,
|
|
83
|
+
selectedModel,
|
|
84
|
+
keyword,
|
|
85
|
+
editFormValues,
|
|
86
|
+
loading,
|
|
87
|
+
detailLoading,
|
|
88
|
+
pickingDeviceId,
|
|
89
|
+
currentIsSmart,
|
|
90
|
+
targetKind,
|
|
91
|
+
peripheral,
|
|
92
|
+
smartDevice,
|
|
93
|
+
profileOptions,
|
|
94
|
+
profileRequired,
|
|
95
|
+
filteredDevices,
|
|
96
|
+
getWorkAreaDeviceCount,
|
|
97
|
+
getDeviceCountText,
|
|
98
|
+
setSelectedWorkAreaId,
|
|
99
|
+
setKeyword,
|
|
100
|
+
handlePickDevice,
|
|
101
|
+
handlePickModel,
|
|
102
|
+
handleBackToPick,
|
|
103
|
+
handleSubmit
|
|
104
|
+
} = modal;
|
|
105
|
+
const connectionType = import_antd.Form.useWatch("connection_type", form);
|
|
106
|
+
const networkMethod = import_antd.Form.useWatch("connection_method", form) || "auto";
|
|
107
|
+
const newDeviceWorkAreaId = import_antd.Form.useWatch("workarea_id", form);
|
|
108
|
+
const selectedTargetId = currentIsSmart ? peripheral == null ? void 0 : peripheral.id : smartDevice == null ? void 0 : smartDevice.id;
|
|
109
|
+
(0, import_react.useEffect)(() => {
|
|
110
|
+
if (!open) return;
|
|
111
|
+
form.resetFields();
|
|
112
|
+
form.setFieldsValue({
|
|
113
|
+
name: { ...import_types.EMPTY_I18N },
|
|
114
|
+
workarea_id: currentWorkAreaId,
|
|
115
|
+
connection_method: "auto",
|
|
116
|
+
profile_ids: []
|
|
117
|
+
});
|
|
118
|
+
}, [currentWorkAreaId, form, open]);
|
|
119
|
+
(0, import_react.useEffect)(() => {
|
|
120
|
+
if (!open || mode !== "edit" || !editFormValues) return;
|
|
121
|
+
form.setFieldsValue(editFormValues);
|
|
122
|
+
}, [editFormValues, form, mode, open]);
|
|
123
|
+
(0, import_react.useEffect)(() => {
|
|
124
|
+
var _a2;
|
|
125
|
+
if (!open || mode !== "new" || step !== "config" || !selectedModel) return;
|
|
126
|
+
const nextName = translation(selectedModel.name) || selectedModel.code;
|
|
127
|
+
form.setFieldsValue({
|
|
128
|
+
name: { ...import_types.EMPTY_I18N, original: `${nextName} 1` },
|
|
129
|
+
workarea_id: form.getFieldValue("workarea_id") || currentWorkAreaId || ((_a2 = workAreas[0]) == null ? void 0 : _a2.id),
|
|
130
|
+
connection_type: void 0,
|
|
131
|
+
connection_method: "auto",
|
|
132
|
+
connection_ip: void 0,
|
|
133
|
+
profile_ids: []
|
|
134
|
+
});
|
|
135
|
+
}, [
|
|
136
|
+
currentWorkAreaId,
|
|
137
|
+
form,
|
|
138
|
+
mode,
|
|
139
|
+
open,
|
|
140
|
+
selectedModel == null ? void 0 : selectedModel.code,
|
|
141
|
+
step,
|
|
142
|
+
translation,
|
|
143
|
+
(_a = workAreas[0]) == null ? void 0 : _a.id
|
|
144
|
+
]);
|
|
145
|
+
(0, import_react.useEffect)(() => {
|
|
146
|
+
if (!open || mode !== "existing" || step !== "config" || !selectedTargetId) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
form.setFieldsValue({
|
|
150
|
+
connection_type: void 0,
|
|
151
|
+
connection_method: "auto",
|
|
152
|
+
connection_ip: void 0,
|
|
153
|
+
profile_ids: []
|
|
154
|
+
});
|
|
155
|
+
}, [form, mode, open, selectedTargetId, step]);
|
|
156
|
+
const handleValidateAndSubmit = async () => {
|
|
157
|
+
const values = await form.validateFields();
|
|
158
|
+
handleSubmit(values);
|
|
159
|
+
};
|
|
160
|
+
const renderPickStep = () => /* @__PURE__ */ import_react.default.createElement(
|
|
161
|
+
"div",
|
|
162
|
+
{
|
|
163
|
+
className: `device-detail-drawer__connect-picker is-${mode}`
|
|
164
|
+
},
|
|
165
|
+
mode === "new" ? /* @__PURE__ */ import_react.default.createElement(
|
|
166
|
+
import_PickNewPeripheralStep.default,
|
|
167
|
+
{
|
|
168
|
+
loading,
|
|
169
|
+
models,
|
|
170
|
+
brands,
|
|
171
|
+
getText,
|
|
172
|
+
translation,
|
|
173
|
+
onSelect: handlePickModel
|
|
174
|
+
}
|
|
175
|
+
) : /* @__PURE__ */ import_react.default.createElement(
|
|
176
|
+
import_PickExistingDeviceStep.default,
|
|
177
|
+
{
|
|
178
|
+
workAreas,
|
|
179
|
+
selectedWorkAreaId,
|
|
180
|
+
currentWorkAreaId,
|
|
181
|
+
filteredDevices,
|
|
182
|
+
connectedDeviceIds,
|
|
183
|
+
loading,
|
|
184
|
+
pickingDeviceId,
|
|
185
|
+
keyword,
|
|
186
|
+
targetKind,
|
|
187
|
+
getText,
|
|
188
|
+
translation,
|
|
189
|
+
getWorkAreaDeviceCount,
|
|
190
|
+
getDeviceCountText,
|
|
191
|
+
onWorkAreaChange: setSelectedWorkAreaId,
|
|
192
|
+
onKeywordChange: setKeyword,
|
|
193
|
+
onPickDevice: handlePickDevice
|
|
194
|
+
}
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
const renderConfigStep = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "device-detail-drawer__connect-config" }, /* @__PURE__ */ import_react.default.createElement(
|
|
198
|
+
import_DeviceConnectionSummary.default,
|
|
199
|
+
{
|
|
200
|
+
mode,
|
|
201
|
+
smartDevice,
|
|
202
|
+
peripheral,
|
|
203
|
+
selectedModel,
|
|
204
|
+
translation
|
|
205
|
+
}
|
|
206
|
+
), /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", preserve: false }, mode === "new" ? /* @__PURE__ */ import_react.default.createElement(
|
|
207
|
+
import_NewPeripheralInfoFields.default,
|
|
208
|
+
{
|
|
209
|
+
workAreas,
|
|
210
|
+
workAreaId: newDeviceWorkAreaId,
|
|
211
|
+
currentWorkAreaId,
|
|
212
|
+
getText,
|
|
213
|
+
translation
|
|
214
|
+
}
|
|
215
|
+
) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
216
|
+
import_ConnectionConfigFields.default,
|
|
217
|
+
{
|
|
218
|
+
connectionType,
|
|
219
|
+
networkMethod,
|
|
220
|
+
profileRequired,
|
|
221
|
+
profileOptions,
|
|
222
|
+
getText
|
|
223
|
+
}
|
|
224
|
+
)));
|
|
225
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
226
|
+
import_materials.PisellModal,
|
|
227
|
+
{
|
|
228
|
+
open,
|
|
229
|
+
width: step === "pick" ? 980 : 860,
|
|
230
|
+
okVisible: step === "config",
|
|
231
|
+
okText: getText(
|
|
232
|
+
mode === "edit" ? "pisell2.saas.device-planning.connect.update" : "pisell2.saas.device-planning.add.save"
|
|
233
|
+
),
|
|
234
|
+
cancelText: getText("pisell2.saas.device-planning.add.cancel"),
|
|
235
|
+
okButtonProps: {
|
|
236
|
+
block: true,
|
|
237
|
+
size: "large",
|
|
238
|
+
loading: submitting,
|
|
239
|
+
onClick: handleValidateAndSubmit
|
|
240
|
+
},
|
|
241
|
+
cancelButtonProps: {
|
|
242
|
+
block: true,
|
|
243
|
+
size: "large",
|
|
244
|
+
type: "default",
|
|
245
|
+
onClick: onClose
|
|
246
|
+
},
|
|
247
|
+
title: /* @__PURE__ */ import_react.default.createElement(
|
|
248
|
+
import_ConnectDeviceModalHeader.default,
|
|
249
|
+
{
|
|
250
|
+
mode,
|
|
251
|
+
step,
|
|
252
|
+
currentDevice,
|
|
253
|
+
currentIsSmart,
|
|
254
|
+
getText,
|
|
255
|
+
translation,
|
|
256
|
+
onBack: handleBackToPick
|
|
257
|
+
}
|
|
258
|
+
),
|
|
259
|
+
closeIcon: /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null),
|
|
260
|
+
onCancel: onClose,
|
|
261
|
+
className: "device-detail-drawer__connect-modal",
|
|
262
|
+
bodyStyle: {
|
|
263
|
+
padding: "24px",
|
|
264
|
+
overflow: step === "pick" ? "hidden" : "auto"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
step === "pick" ? renderPickStep() : /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: detailLoading }, renderConfigStep())
|
|
268
|
+
);
|
|
269
|
+
};
|
|
270
|
+
var ConnectExistingDeviceModal_default = ConnectExistingDeviceModal;
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
.device-detail-drawer {
|
|
2
|
+
&__connect-modal-title {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__connect-picker {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: 260px 1fr;
|
|
11
|
+
gap: 32px;
|
|
12
|
+
|
|
13
|
+
&.is-new {
|
|
14
|
+
grid-template-columns: 1fr;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__connect-areas,
|
|
19
|
+
&__connect-targets,
|
|
20
|
+
&__connect-config {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__connect-area-list {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 8px;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
padding-right: 8px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__connect-targets {
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__connect-device-list {
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
padding-right: 8px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__connect-picker.is-existing {
|
|
44
|
+
.device-detail-drawer__connect-area-list,
|
|
45
|
+
.device-detail-drawer__connect-device-list {
|
|
46
|
+
max-height: calc(80vh - 260px);
|
|
47
|
+
overflow-y: auto;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__connect-section-title {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 8px;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: rgba(0, 0, 0, 0.88);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__connect-section-desc,
|
|
61
|
+
&__connect-help {
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
color: rgba(0, 0, 0, 0.45);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__connect-area,
|
|
67
|
+
&__connect-device-card,
|
|
68
|
+
&__connect-model-card,
|
|
69
|
+
&__connect-option,
|
|
70
|
+
&__connect-summary-card {
|
|
71
|
+
border: 1px solid #f0f0f0;
|
|
72
|
+
border-radius: 8px;
|
|
73
|
+
background: #fff;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__connect-area {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: flex-start;
|
|
80
|
+
min-height: 64px;
|
|
81
|
+
padding: 12px;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
|
|
84
|
+
&.is-active {
|
|
85
|
+
border-color: #1677ff;
|
|
86
|
+
background: #e6f4ff;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&__connect-area-header {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
width: 100%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&__connect-current {
|
|
99
|
+
margin-top: 4px;
|
|
100
|
+
padding: 1px 6px;
|
|
101
|
+
font-size: 11px;
|
|
102
|
+
color: #1677ff;
|
|
103
|
+
border-radius: 4px;
|
|
104
|
+
background: #fff;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&__connect-workarea-name {
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__connect-filters,
|
|
112
|
+
&__connect-two-columns,
|
|
113
|
+
&__connect-option-grid,
|
|
114
|
+
&__connect-summary {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
117
|
+
gap: 12px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__connect-picker.is-new &__connect-filters {
|
|
121
|
+
grid-template-columns: 1fr auto auto;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__connect-model-grid,
|
|
125
|
+
&__connect-device-grid {
|
|
126
|
+
display: grid;
|
|
127
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
128
|
+
gap: 12px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&__connect-picker.is-new &__connect-model-grid {
|
|
132
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&__connect-model-card,
|
|
136
|
+
&__connect-device-card {
|
|
137
|
+
display: flex;
|
|
138
|
+
gap: 12px;
|
|
139
|
+
align-items: center;
|
|
140
|
+
width: 100%;
|
|
141
|
+
min-height: 76px;
|
|
142
|
+
height: auto;
|
|
143
|
+
padding: 12px;
|
|
144
|
+
text-align: left;
|
|
145
|
+
white-space: normal;
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
|
|
148
|
+
&.is-disabled {
|
|
149
|
+
color: rgba(0, 0, 0, 0.25);
|
|
150
|
+
background: #fafafa;
|
|
151
|
+
cursor: not-allowed;
|
|
152
|
+
opacity: 0.55;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
> div > span {
|
|
156
|
+
display: block;
|
|
157
|
+
color: rgba(0, 0, 0, 0.45);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&__connect-device-icon {
|
|
162
|
+
display: inline-flex;
|
|
163
|
+
flex: 0 0 auto;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
width: 40px;
|
|
167
|
+
height: 40px;
|
|
168
|
+
border-radius: 8px;
|
|
169
|
+
|
|
170
|
+
&.is-smart {
|
|
171
|
+
background: #e6f4ff;
|
|
172
|
+
color: #1677ff;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.is-dumb {
|
|
176
|
+
background: #fffbe6;
|
|
177
|
+
color: #faad14;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.is-integrated {
|
|
181
|
+
background: #eef7e8;
|
|
182
|
+
color: #389e0d;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__connect-model-card {
|
|
187
|
+
align-items: flex-start;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
min-height: 168px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&__connect-model-groups {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
gap: 24px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__connect-model-group-title {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 8px;
|
|
202
|
+
margin-bottom: 12px;
|
|
203
|
+
font-size: 16px;
|
|
204
|
+
font-weight: 600;
|
|
205
|
+
color: rgba(0, 0, 0, 0.88);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&__connect-model-name {
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&__connect-model-brand {
|
|
213
|
+
font-size: 12px;
|
|
214
|
+
color: rgba(0, 0, 0, 0.55);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&__connect-model-desc {
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
line-height: 18px;
|
|
220
|
+
color: rgba(0, 0, 0, 0.45);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&__connect-tags {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-wrap: wrap;
|
|
226
|
+
gap: 4px;
|
|
227
|
+
|
|
228
|
+
span {
|
|
229
|
+
padding: 0 6px;
|
|
230
|
+
font-size: 11px;
|
|
231
|
+
border: 1px solid #d9d9d9;
|
|
232
|
+
border-radius: 4px;
|
|
233
|
+
background: #fff;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&__connect-summary {
|
|
238
|
+
align-items: center;
|
|
239
|
+
grid-template-columns: 1fr auto 1fr;
|
|
240
|
+
|
|
241
|
+
> .anticon {
|
|
242
|
+
justify-self: center;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&__connect-summary-card {
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: 12px;
|
|
250
|
+
min-height: 88px;
|
|
251
|
+
padding: 12px;
|
|
252
|
+
background: #fafafa;
|
|
253
|
+
|
|
254
|
+
&.is-smart {
|
|
255
|
+
background: #f0f7ff;
|
|
256
|
+
border-color: #d6e4ff;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&.is-dumb {
|
|
260
|
+
background: #fffdf0;
|
|
261
|
+
border-color: #ffe7ba;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
> div > span {
|
|
265
|
+
display: block;
|
|
266
|
+
color: rgba(0, 0, 0, 0.45);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&__connect-empty {
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: center;
|
|
274
|
+
min-height: 220px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&__connect-new-info {
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&__connect-new-info &__connect-two-columns {
|
|
283
|
+
grid-template-columns: minmax(2, 1fr) 260px;
|
|
284
|
+
align-items: start;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&__connect-new-info .pisell-lowcode-select,
|
|
288
|
+
&__connect-new-info .ant-select,
|
|
289
|
+
&__connect-new-info .ant-input,
|
|
290
|
+
&__connect-new-info input {
|
|
291
|
+
width: 100%;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&__connect-label {
|
|
295
|
+
margin-top: 4px;
|
|
296
|
+
font-size: 14px;
|
|
297
|
+
color: rgba(0, 0, 0, 0.72);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
&__connect-option {
|
|
301
|
+
display: flex;
|
|
302
|
+
align-items: center;
|
|
303
|
+
gap: 12px;
|
|
304
|
+
min-height: 56px;
|
|
305
|
+
width: 100%;
|
|
306
|
+
padding: 12px;
|
|
307
|
+
margin-inline-end: 0;
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
|
|
310
|
+
> span:not(.ant-radio):not(.pisell-lowcode-radio) {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: 12px;
|
|
314
|
+
width: 100%;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&.ant-radio-wrapper-checked,
|
|
318
|
+
&.pisell-lowcode-radio-wrapper-checked {
|
|
319
|
+
border-color: var(--primary-600, #7f56d9);
|
|
320
|
+
background: var(--Primary-50, #f9f5ff);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CreateDeviceConnectionPayload, DeviceConnectionItem, DeviceItem, DeviceKind, I18nText, UpdateDeviceConnectionPayload } from '../../../types';
|
|
3
|
+
import './DeviceConnectionsPanel.less';
|
|
4
|
+
interface DeviceConnectionsPanelProps {
|
|
5
|
+
activeKind: DeviceKind;
|
|
6
|
+
currentDevice: DeviceItem;
|
|
7
|
+
connections: DeviceConnectionItem[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
submitting: boolean;
|
|
10
|
+
deleting: boolean;
|
|
11
|
+
getText: (key: string) => string;
|
|
12
|
+
translation: (val?: I18nText) => string;
|
|
13
|
+
onCreateConnection: (payload: CreateDeviceConnectionPayload) => Promise<void>;
|
|
14
|
+
onUpdateConnection: (id: number, payload: UpdateDeviceConnectionPayload) => Promise<void>;
|
|
15
|
+
onDeleteConnection: (id: number) => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
declare const DeviceConnectionsPanel: React.FC<DeviceConnectionsPanelProps>;
|
|
18
|
+
export default DeviceConnectionsPanel;
|