@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,211 @@
|
|
|
1
|
+
.device-detail-drawer {
|
|
2
|
+
&__card {
|
|
3
|
+
border-radius: 10px;
|
|
4
|
+
|
|
5
|
+
& + & {
|
|
6
|
+
margin-top: 12px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ant-card-head {
|
|
10
|
+
min-height: 42px;
|
|
11
|
+
padding: 0 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ant-card-head-title {
|
|
15
|
+
padding: 10px 0;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ant-card-body {
|
|
21
|
+
padding: 16px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__info-list {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 12px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__info-row {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
gap: 16px;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
|
|
38
|
+
> span:first-child {
|
|
39
|
+
color: rgba(0, 0, 0, 0.55);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
strong {
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
color: rgba(0, 0, 0, 0.88);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__info-two-row {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: flex-start;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
|
|
55
|
+
> span:first-child {
|
|
56
|
+
color: rgba(0, 0, 0, 0.55);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
strong {
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
color: rgba(0, 0, 0, 0.88);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__profile-card {
|
|
66
|
+
width: 100%;
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 8px;
|
|
70
|
+
min-width: 180px;
|
|
71
|
+
padding: 8px 10px;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
background: #f5f6f8;
|
|
74
|
+
color: rgba(0, 0, 0, 0.72);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__report-list {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
gap: 12px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__last-seen {
|
|
84
|
+
font-size: 12px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
color: rgba(0, 0, 0, 0.45);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__report-card {
|
|
90
|
+
border-radius: 8px;
|
|
91
|
+
background: #fafafa;
|
|
92
|
+
|
|
93
|
+
.ant-card-head {
|
|
94
|
+
min-height: 38px;
|
|
95
|
+
padding: 0 12px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ant-card-head-title {
|
|
99
|
+
padding: 8px 0;
|
|
100
|
+
font-size: 13px;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ant-card-body {
|
|
105
|
+
padding: 12px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&__report-rows {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: 12px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__report-row {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
gap: 16px;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&__report-label {
|
|
124
|
+
flex-shrink: 0;
|
|
125
|
+
color: rgba(0, 0, 0, 0.55);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__report-value,
|
|
129
|
+
&__json-value {
|
|
130
|
+
min-width: 0;
|
|
131
|
+
color: rgba(0, 0, 0, 0.88);
|
|
132
|
+
text-align: right;
|
|
133
|
+
word-break: break-word;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__battery-value {
|
|
137
|
+
display: inline-flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: flex-end;
|
|
140
|
+
gap: 8px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__battery-icon {
|
|
144
|
+
position: relative;
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
width: 24px;
|
|
147
|
+
height: 12px;
|
|
148
|
+
border: 1.5px solid rgba(0, 0, 0, 0.65);
|
|
149
|
+
border-radius: 3px;
|
|
150
|
+
|
|
151
|
+
&::before {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 2px;
|
|
154
|
+
right: -4px;
|
|
155
|
+
width: 2px;
|
|
156
|
+
height: 6px;
|
|
157
|
+
border-radius: 0 2px 2px 0;
|
|
158
|
+
background: rgba(0, 0, 0, 0.65);
|
|
159
|
+
content: '';
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.is-charging {
|
|
163
|
+
border-color: #16a34a;
|
|
164
|
+
|
|
165
|
+
&::before {
|
|
166
|
+
background: #16a34a;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__battery-fill {
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: 2px;
|
|
174
|
+
left: 2px;
|
|
175
|
+
max-width: 17px;
|
|
176
|
+
height: 5px;
|
|
177
|
+
border-radius: 1px;
|
|
178
|
+
background: #16a34a;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__battery-bolt {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: -3px;
|
|
184
|
+
left: 8px;
|
|
185
|
+
width: 7px;
|
|
186
|
+
height: 14px;
|
|
187
|
+
background: #f59e0b;
|
|
188
|
+
clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 35% 100%, 48% 56%, 0 56%);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__battery-status {
|
|
192
|
+
color: #16a34a;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&__online-status {
|
|
196
|
+
display: inline-flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
gap: 6px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&__status-dot {
|
|
202
|
+
width: 6px;
|
|
203
|
+
height: 6px;
|
|
204
|
+
border-radius: 50%;
|
|
205
|
+
background: rgba(0, 0, 0, 0.25);
|
|
206
|
+
|
|
207
|
+
&.is-online {
|
|
208
|
+
background: #16a34a;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceKind } from '../../../types';
|
|
3
|
+
export declare type DrawerTabKey = 'info' | 'connections';
|
|
4
|
+
interface DrawerSidebarProps {
|
|
5
|
+
activeKey: DrawerTabKey;
|
|
6
|
+
activeKind: DeviceKind;
|
|
7
|
+
getText: (key: string) => string;
|
|
8
|
+
onChange: (key: DrawerTabKey) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const DrawerSidebar: React.FC<DrawerSidebarProps>;
|
|
11
|
+
export default DrawerSidebar;
|
package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from 'antd';
|
|
3
|
+
import { Icon } from '@pisell/materials';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
var DrawerSidebar = function DrawerSidebar(_ref) {
|
|
6
|
+
var activeKey = _ref.activeKey,
|
|
7
|
+
activeKind = _ref.activeKind,
|
|
8
|
+
getText = _ref.getText,
|
|
9
|
+
onChange = _ref.onChange;
|
|
10
|
+
var items = [{
|
|
11
|
+
key: 'info',
|
|
12
|
+
icon: 'InfoCircleOutlined',
|
|
13
|
+
label: getText('pisell2.saas.device-planning.drawer.info')
|
|
14
|
+
}];
|
|
15
|
+
if (activeKind !== 'integrated') {
|
|
16
|
+
items.push({
|
|
17
|
+
key: 'connections',
|
|
18
|
+
icon: 'ApiOutlined',
|
|
19
|
+
label: getText('pisell2.saas.device-planning.drawer.connections')
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: "device-detail-drawer__sidebar"
|
|
24
|
+
}, items.map(function (item) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
26
|
+
key: item.key,
|
|
27
|
+
type: "text",
|
|
28
|
+
className: classNames('device-detail-drawer__sidebar-item', {
|
|
29
|
+
'is-active': activeKey === item.key
|
|
30
|
+
}),
|
|
31
|
+
onClick: function onClick() {
|
|
32
|
+
return onChange(item.key);
|
|
33
|
+
}
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
35
|
+
type: item.icon
|
|
36
|
+
}), /*#__PURE__*/React.createElement("span", null, item.label));
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
export default DrawerSidebar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceItem, I18nText } from '../../../../types';
|
|
3
|
+
import type { ConnectMode, ConnectStep } from '../../hooks/useConnectDeviceModal';
|
|
4
|
+
interface ConnectDeviceModalHeaderProps {
|
|
5
|
+
mode: ConnectMode;
|
|
6
|
+
step: ConnectStep;
|
|
7
|
+
currentDevice: DeviceItem;
|
|
8
|
+
currentIsSmart: boolean;
|
|
9
|
+
getText: (key: string) => string;
|
|
10
|
+
translation: (val?: I18nText) => string;
|
|
11
|
+
onBack: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const ConnectDeviceModalHeader: React.FC<ConnectDeviceModalHeaderProps>;
|
|
14
|
+
export default ConnectDeviceModalHeader;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@pisell/materials';
|
|
3
|
+
import { ArrowLeftOutlined } from '@ant-design/icons';
|
|
4
|
+
var ConnectDeviceModalHeader = function ConnectDeviceModalHeader(_ref) {
|
|
5
|
+
var mode = _ref.mode,
|
|
6
|
+
step = _ref.step,
|
|
7
|
+
currentDevice = _ref.currentDevice,
|
|
8
|
+
currentIsSmart = _ref.currentIsSmart,
|
|
9
|
+
getText = _ref.getText,
|
|
10
|
+
translation = _ref.translation,
|
|
11
|
+
onBack = _ref.onBack;
|
|
12
|
+
var deviceName = translation(currentDevice.name) || String(currentDevice.id);
|
|
13
|
+
var title = mode === 'edit' ? getText('pisell2.saas.device-planning.connect.edit-title').replace('{DeviceName}', deviceName) : mode === 'new' ? getText('pisell2.saas.device-planning.connect.add-new-title').replace('{DeviceName}', deviceName) : currentIsSmart ? getText('pisell2.saas.device-planning.connect.existing-peripheral-title').replace('{DeviceName}', deviceName) : getText('pisell2.saas.device-planning.connect.existing-smart-title').replace('{DeviceName}', deviceName);
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "device-detail-drawer__connect-modal-title"
|
|
16
|
+
}, step === 'config' && mode !== 'edit' ? /*#__PURE__*/React.createElement(Button, {
|
|
17
|
+
type: "text",
|
|
18
|
+
icon: /*#__PURE__*/React.createElement(ArrowLeftOutlined, null),
|
|
19
|
+
onClick: onBack
|
|
20
|
+
}) : null, /*#__PURE__*/React.createElement("span", null, title));
|
|
21
|
+
};
|
|
22
|
+
export default ConnectDeviceModalHeader;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NetworkMethod } from '../../hooks/useConnectDeviceModal';
|
|
3
|
+
interface ConnectionConfigFieldsProps {
|
|
4
|
+
connectionType?: string;
|
|
5
|
+
networkMethod: NetworkMethod;
|
|
6
|
+
profileRequired: boolean;
|
|
7
|
+
profileOptions: Array<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}>;
|
|
11
|
+
getText: (key: string) => string;
|
|
12
|
+
}
|
|
13
|
+
declare const ConnectionConfigFields: React.FC<ConnectionConfigFieldsProps>;
|
|
14
|
+
export default ConnectionConfigFields;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { Form, Radio } from 'antd';
|
|
15
|
+
import { Icon, Input, Select } from '@pisell/materials';
|
|
16
|
+
import { SettingOutlined, UsbOutlined, WifiOutlined } from '@ant-design/icons';
|
|
17
|
+
import { CONNECTION_TYPE_OPTIONS } from "../../../../utils";
|
|
18
|
+
var BluetoothIcon = function BluetoothIcon() {
|
|
19
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
20
|
+
viewBox: "0 0 1024 1024",
|
|
21
|
+
width: "1em",
|
|
22
|
+
height: "1em",
|
|
23
|
+
fill: "currentColor",
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
focusable: "false"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
27
|
+
d: "M844.799642 674.803923 538.533306 521.15859l307.696917-177.029926c10.583033-5.006014 17.398252-15.59621 17.569144-27.302833s-6.332219-22.491247-16.764825-27.804253L475.584626 65.954131c-9.517771-4.846378-20.869307-4.39817-29.974685 1.181919-9.105379 5.581112-14.656815 15.493879-14.656815 26.174126l0 288.760636L210.662931 196.715267c-12.974499-10.915607-32.339546-9.248641-43.255153 3.724835-10.915607 12.973476-9.248641 32.339546 3.724835 43.255153L430.953126 462.312344l0 102.83511L171.558307 775.571954c-13.166881 10.68127-15.181771 30.013571-4.500501 43.180452 6.068206 7.480368 14.924921 11.360745 23.859407 11.360745 6.794753 0 13.634532-2.245134 19.322068-6.859221l220.714867-179.046862 0 283.065937c0 10.689457 5.561669 20.61041 14.680351 26.188452 4.903683 2.99931 10.455119 4.510734 16.019859 4.510734 4.78498 0 9.580193-1.118474 13.980409-3.368724l371.449917-224.085638c10.664897-5.456269 17.182334-16.618493 16.691147-28.589129C863.284645 689.959088 855.875908 679.368892 844.799642 674.803923zM763.458055 315.360458 492.351498 475.082182l0-21.60711c0.563842-3.368724 0.558725-6.801916 0-10.153244L492.351498 143.395898 763.458055 315.360458zM492.351498 877.084952 492.351498 584.489988c0.558725-3.347235 0.562818-6.777357 0-10.146081l0-5.809309 267.472797 137.65822L492.351498 877.084952z"
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
var CONNECT_CONNECTION_TYPE_OPTIONS = CONNECTION_TYPE_OPTIONS.filter(function (option) {
|
|
31
|
+
return option.value !== 'serial';
|
|
32
|
+
}).map(function (option) {
|
|
33
|
+
return _objectSpread(_objectSpread({}, option), {}, {
|
|
34
|
+
icon: option.value === 'usb' ? /*#__PURE__*/React.createElement(UsbOutlined, null) : option.value === 'ethernet' ? /*#__PURE__*/React.createElement(Icon, {
|
|
35
|
+
type: "ApiOutlined"
|
|
36
|
+
}) : option.value === 'wifi' ? /*#__PURE__*/React.createElement(WifiOutlined, null) : option.value === 'bluetooth' ? /*#__PURE__*/React.createElement(BluetoothIcon, null) : null
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var IPV4_PATTERN = /^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/;
|
|
40
|
+
var needsNetworkConfig = function needsNetworkConfig(connectionType) {
|
|
41
|
+
return connectionType === 'ethernet' || connectionType === 'wifi';
|
|
42
|
+
};
|
|
43
|
+
var validateRequired = function validateRequired(message) {
|
|
44
|
+
return [{
|
|
45
|
+
required: true,
|
|
46
|
+
message: message
|
|
47
|
+
}];
|
|
48
|
+
};
|
|
49
|
+
var ConnectionConfigFields = function ConnectionConfigFields(_ref) {
|
|
50
|
+
var connectionType = _ref.connectionType,
|
|
51
|
+
networkMethod = _ref.networkMethod,
|
|
52
|
+
profileRequired = _ref.profileRequired,
|
|
53
|
+
profileOptions = _ref.profileOptions,
|
|
54
|
+
getText = _ref.getText;
|
|
55
|
+
var validateIpAddress = function validateIpAddress(_rule, value) {
|
|
56
|
+
var ipValue = String(value || '').trim();
|
|
57
|
+
if (!ipValue || IPV4_PATTERN.test(ipValue)) {
|
|
58
|
+
return Promise.resolve();
|
|
59
|
+
}
|
|
60
|
+
return Promise.reject(new Error(getText('pisell2.saas.device-planning.connect.ip-address')));
|
|
61
|
+
};
|
|
62
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "device-detail-drawer__connect-section-title"
|
|
64
|
+
}, /*#__PURE__*/React.createElement(SettingOutlined, null), getText('pisell2.saas.device-planning.connect.configuration')), /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
style: {
|
|
66
|
+
height: '8px'
|
|
67
|
+
}
|
|
68
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
69
|
+
name: "connection_type",
|
|
70
|
+
label: getText('pisell2.saas.device-planning.connect.connection-type'),
|
|
71
|
+
required: true,
|
|
72
|
+
rules: validateRequired(getText('pisell2.saas.device-planning.connect.connection-type'))
|
|
73
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
74
|
+
className: "device-detail-drawer__connect-option-grid"
|
|
75
|
+
}, CONNECT_CONNECTION_TYPE_OPTIONS.map(function (option) {
|
|
76
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
77
|
+
key: option.value,
|
|
78
|
+
value: option.value,
|
|
79
|
+
className: "device-detail-drawer__connect-option"
|
|
80
|
+
}, option.icon, option.label);
|
|
81
|
+
}))), needsNetworkConfig(connectionType) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
82
|
+
name: "connection_method",
|
|
83
|
+
label: getText('pisell2.saas.device-planning.connect.network-config'),
|
|
84
|
+
required: true,
|
|
85
|
+
rules: validateRequired(getText('pisell2.saas.device-planning.connect.network-config'))
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
87
|
+
className: "device-detail-drawer__connect-option-grid"
|
|
88
|
+
}, ['auto', 'manual'].map(function (method) {
|
|
89
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
90
|
+
key: method,
|
|
91
|
+
value: method,
|
|
92
|
+
className: "device-detail-drawer__connect-option"
|
|
93
|
+
}, getText(method === 'auto' ? 'pisell2.saas.device-planning.connect.auto-discovery' : 'pisell2.saas.device-planning.connect.manual-ip'));
|
|
94
|
+
}))), networkMethod === 'manual' ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
95
|
+
name: "connection_ip",
|
|
96
|
+
label: getText('pisell2.saas.device-planning.connect.ip-address'),
|
|
97
|
+
required: true,
|
|
98
|
+
rules: [].concat(_toConsumableArray(validateRequired(getText('pisell2.saas.device-planning.connect.ip-address'))), [{
|
|
99
|
+
validator: validateIpAddress
|
|
100
|
+
}])
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
102
|
+
placeholder: "192.168.1.100"
|
|
103
|
+
})) : null) : null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
104
|
+
name: "profile_ids",
|
|
105
|
+
label: getText('pisell2.saas.device-planning.connect.peripheral-profiles'),
|
|
106
|
+
required: profileRequired,
|
|
107
|
+
rules: profileRequired ? [{
|
|
108
|
+
type: 'array',
|
|
109
|
+
required: true,
|
|
110
|
+
min: 1,
|
|
111
|
+
message: getText('pisell2.saas.device-planning.add.device-profile-required')
|
|
112
|
+
}] : [],
|
|
113
|
+
extra: /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: "device-detail-drawer__connect-help"
|
|
115
|
+
}, getText('pisell2.saas.device-planning.connect.profiles-help'))
|
|
116
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
117
|
+
mode: "multiple",
|
|
118
|
+
options: profileOptions,
|
|
119
|
+
placeholder: getText('pisell2.saas.device-planning.connect.select-profiles')
|
|
120
|
+
})));
|
|
121
|
+
};
|
|
122
|
+
export default ConnectionConfigFields;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceItem, DeviceModelItem, I18nText } from '../../../../types';
|
|
3
|
+
import type { ConnectMode } from '../../hooks/useConnectDeviceModal';
|
|
4
|
+
interface DeviceConnectionSummaryProps {
|
|
5
|
+
mode: ConnectMode;
|
|
6
|
+
smartDevice?: DeviceItem;
|
|
7
|
+
peripheral?: DeviceItem;
|
|
8
|
+
selectedModel?: DeviceModelItem;
|
|
9
|
+
translation: (val?: I18nText) => string;
|
|
10
|
+
}
|
|
11
|
+
declare const DeviceConnectionSummary: React.FC<DeviceConnectionSummaryProps>;
|
|
12
|
+
export default DeviceConnectionSummary;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icon } from '@pisell/materials';
|
|
3
|
+
import { LinkOutlined } from '@ant-design/icons';
|
|
4
|
+
import { DEVICE_ICON_COLOR } from "../../../../utils";
|
|
5
|
+
var DeviceCard = function DeviceCard(_ref) {
|
|
6
|
+
var _device$type, _model$type, _device$type2, _model$type2;
|
|
7
|
+
var device = _ref.device,
|
|
8
|
+
model = _ref.model,
|
|
9
|
+
translation = _ref.translation;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "device-detail-drawer__connect-summary-card is-".concat((device === null || device === void 0 ? void 0 : device.type_kind) || 'dumb')
|
|
12
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
13
|
+
className: "device-detail-drawer__connect-device-icon is-".concat((device === null || device === void 0 ? void 0 : device.type_kind) || 'dumb')
|
|
14
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
15
|
+
type: (device === null || device === void 0 || (_device$type = device.type) === null || _device$type === void 0 ? void 0 : _device$type.icon) || (model === null || model === void 0 || (_model$type = model.type) === null || _model$type === void 0 ? void 0 : _model$type.icon) || 'DesktopOutlined',
|
|
16
|
+
color: DEVICE_ICON_COLOR[(device === null || device === void 0 ? void 0 : device.type_kind) || 'dumb']
|
|
17
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", null, device ? translation(device.name) || device.id : translation(model === null || model === void 0 ? void 0 : model.name) || (model === null || model === void 0 ? void 0 : model.code)), /*#__PURE__*/React.createElement("span", null, device ? translation((_device$type2 = device.type) === null || _device$type2 === void 0 ? void 0 : _device$type2.name) || device.type_code : translation(model === null || model === void 0 || (_model$type2 = model.type) === null || _model$type2 === void 0 ? void 0 : _model$type2.name) || (model === null || model === void 0 ? void 0 : model.type_code))));
|
|
18
|
+
};
|
|
19
|
+
var DeviceConnectionSummary = function DeviceConnectionSummary(_ref2) {
|
|
20
|
+
var mode = _ref2.mode,
|
|
21
|
+
smartDevice = _ref2.smartDevice,
|
|
22
|
+
peripheral = _ref2.peripheral,
|
|
23
|
+
selectedModel = _ref2.selectedModel,
|
|
24
|
+
translation = _ref2.translation;
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: "device-detail-drawer__connect-summary",
|
|
27
|
+
style: {
|
|
28
|
+
marginBottom: '16px'
|
|
29
|
+
}
|
|
30
|
+
}, /*#__PURE__*/React.createElement(DeviceCard, {
|
|
31
|
+
device: smartDevice,
|
|
32
|
+
translation: translation
|
|
33
|
+
}), /*#__PURE__*/React.createElement(LinkOutlined, null), mode === 'new' ? /*#__PURE__*/React.createElement(DeviceCard, {
|
|
34
|
+
model: selectedModel,
|
|
35
|
+
translation: translation
|
|
36
|
+
}) : /*#__PURE__*/React.createElement(DeviceCard, {
|
|
37
|
+
device: peripheral,
|
|
38
|
+
translation: translation
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
export default DeviceConnectionSummary;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { I18nText, WorkAreaItem } from '../../../../types';
|
|
3
|
+
interface NewPeripheralInfoFieldsProps {
|
|
4
|
+
workAreas: WorkAreaItem[];
|
|
5
|
+
workAreaId?: number;
|
|
6
|
+
currentWorkAreaId?: number;
|
|
7
|
+
getText: (key: string) => string;
|
|
8
|
+
translation: (val?: I18nText) => string;
|
|
9
|
+
}
|
|
10
|
+
declare const NewPeripheralInfoFields: React.FC<NewPeripheralInfoFieldsProps>;
|
|
11
|
+
export default NewPeripheralInfoFields;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Form } from 'antd';
|
|
3
|
+
import { BaseTranslation, Icon, Select } from '@pisell/materials';
|
|
4
|
+
import { validateI18nRequired } from "../../../../types";
|
|
5
|
+
var validateRequired = function validateRequired(message) {
|
|
6
|
+
return [{
|
|
7
|
+
required: true,
|
|
8
|
+
message: message
|
|
9
|
+
}];
|
|
10
|
+
};
|
|
11
|
+
var NewPeripheralInfoFields = function NewPeripheralInfoFields(_ref) {
|
|
12
|
+
var workAreas = _ref.workAreas,
|
|
13
|
+
workAreaId = _ref.workAreaId,
|
|
14
|
+
currentWorkAreaId = _ref.currentWorkAreaId,
|
|
15
|
+
getText = _ref.getText,
|
|
16
|
+
translation = _ref.translation;
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
className: "device-detail-drawer__connect-new-info"
|
|
19
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: "device-detail-drawer__connect-section-title"
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
22
|
+
type: "InfoCircleOutlined"
|
|
23
|
+
}), getText('pisell2.saas.device-planning.connect.new-info')), /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
height: '8px'
|
|
26
|
+
}
|
|
27
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
28
|
+
name: "name",
|
|
29
|
+
label: getText('pisell2.saas.device-planning.add.device-name'),
|
|
30
|
+
required: true,
|
|
31
|
+
rules: [{
|
|
32
|
+
validator: validateI18nRequired(getText('pisell2.saas.device-planning.add.device-name-required'))
|
|
33
|
+
}]
|
|
34
|
+
}, /*#__PURE__*/React.createElement(BaseTranslation, {
|
|
35
|
+
renderMode: "edit"
|
|
36
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
37
|
+
name: "workarea_id",
|
|
38
|
+
label: getText('pisell2.saas.device-planning.edit.work-area'),
|
|
39
|
+
required: true,
|
|
40
|
+
rules: validateRequired(getText('pisell2.saas.device-planning.edit.work-area-required'))
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
42
|
+
value: workAreaId,
|
|
43
|
+
options: workAreas.map(function (area) {
|
|
44
|
+
return {
|
|
45
|
+
label: "".concat(translation(area.name) || area.id).concat(area.id === currentWorkAreaId ? " (".concat(getText('pisell2.saas.device-planning.connect.current'), ")") : ''),
|
|
46
|
+
value: area.id
|
|
47
|
+
};
|
|
48
|
+
})
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
export default NewPeripheralInfoFields;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceItem, DeviceKind, I18nText, WorkAreaItem } from '../../../../types';
|
|
3
|
+
interface PickExistingDeviceStepProps {
|
|
4
|
+
workAreas: WorkAreaItem[];
|
|
5
|
+
selectedWorkAreaId?: number;
|
|
6
|
+
currentWorkAreaId?: number;
|
|
7
|
+
filteredDevices: DeviceItem[];
|
|
8
|
+
connectedDeviceIds: number[];
|
|
9
|
+
loading: boolean;
|
|
10
|
+
pickingDeviceId?: number;
|
|
11
|
+
keyword: string;
|
|
12
|
+
targetKind: DeviceKind;
|
|
13
|
+
getText: (key: string) => string;
|
|
14
|
+
translation: (val?: I18nText) => string;
|
|
15
|
+
getWorkAreaDeviceCount: (area: WorkAreaItem) => number;
|
|
16
|
+
getDeviceCountText: (count: number) => string;
|
|
17
|
+
onWorkAreaChange: (id: number) => void;
|
|
18
|
+
onKeywordChange: (value: string) => void;
|
|
19
|
+
onPickDevice: (device: DeviceItem) => void;
|
|
20
|
+
}
|
|
21
|
+
declare const PickExistingDeviceStep: React.FC<PickExistingDeviceStepProps>;
|
|
22
|
+
export default PickExistingDeviceStep;
|