@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
|
@@ -2,10 +2,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
3
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
|
-
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."); }
|
|
7
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
9
5
|
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; }
|
|
10
6
|
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; }
|
|
11
7
|
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; }
|
|
@@ -17,28 +13,22 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
17
13
|
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; }
|
|
18
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
19
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
-
import React, { useEffect,
|
|
16
|
+
import React, { useEffect, useState } from 'react';
|
|
21
17
|
import { Form } from 'antd';
|
|
22
|
-
import {
|
|
23
|
-
import { ArrowLeftOutlined
|
|
18
|
+
import { Button, PisellModal } from '@pisell/materials';
|
|
19
|
+
import { ArrowLeftOutlined } from '@ant-design/icons';
|
|
24
20
|
import classNames from 'classnames';
|
|
25
|
-
import { EMPTY_I18N
|
|
26
|
-
import {
|
|
21
|
+
import { EMPTY_I18N } from "../../types";
|
|
22
|
+
import { hasI18nValue, isProfileRequired } from "../../utils";
|
|
23
|
+
import DeviceBasicInfoForm from "../shared/DeviceBasicInfoForm";
|
|
24
|
+
import DeviceModelPicker from "../shared/DeviceModelPicker";
|
|
27
25
|
import "./index.less";
|
|
28
|
-
var isProfileRequired = function isProfileRequired(model) {
|
|
29
|
-
var _model$data;
|
|
30
|
-
return Boolean(model === null || model === void 0 || (_model$data = model.data) === null || _model$data === void 0 || (_model$data = _model$data.profile_structure) === null || _model$data === void 0 ? void 0 : _model$data.required);
|
|
31
|
-
};
|
|
32
|
-
var hasI18nValue = function hasI18nValue(value) {
|
|
33
|
-
if (!value) return false;
|
|
34
|
-
return Object.values(value).some(function (item) {
|
|
35
|
-
return String(item || '').trim();
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
26
|
var AddDeviceModal = function AddDeviceModal(_ref) {
|
|
39
27
|
var open = _ref.open,
|
|
40
28
|
activeKind = _ref.activeKind,
|
|
41
29
|
models = _ref.models,
|
|
30
|
+
_ref$brands = _ref.brands,
|
|
31
|
+
brands = _ref$brands === void 0 ? [] : _ref$brands,
|
|
42
32
|
workAreaId = _ref.workAreaId,
|
|
43
33
|
submitting = _ref.submitting,
|
|
44
34
|
getText = _ref.getText,
|
|
@@ -52,45 +42,22 @@ var AddDeviceModal = function AddDeviceModal(_ref) {
|
|
|
52
42
|
_useState2 = _slicedToArray(_useState, 2),
|
|
53
43
|
step = _useState2[0],
|
|
54
44
|
setStep = _useState2[1];
|
|
55
|
-
var _useState3 = useState(
|
|
45
|
+
var _useState3 = useState(),
|
|
56
46
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var _useState5 = useState(),
|
|
60
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
61
|
-
selectedModel = _useState6[0],
|
|
62
|
-
setSelectedModel = _useState6[1];
|
|
47
|
+
selectedModel = _useState4[0],
|
|
48
|
+
setSelectedModel = _useState4[1];
|
|
63
49
|
var nameValue = Form.useWatch('name', form);
|
|
64
50
|
var profileValue = Form.useWatch('profile_id', form);
|
|
51
|
+
var isPeripheral = activeKind === 'dumb';
|
|
65
52
|
useEffect(function () {
|
|
66
53
|
if (!open) return;
|
|
67
54
|
setStep('model');
|
|
68
|
-
setKeyword('');
|
|
69
55
|
setSelectedModel(undefined);
|
|
70
56
|
form.resetFields();
|
|
71
57
|
form.setFieldsValue({
|
|
72
58
|
name: _objectSpread({}, EMPTY_I18N)
|
|
73
59
|
});
|
|
74
60
|
}, [form, open]);
|
|
75
|
-
var filteredModels = useMemo(function () {
|
|
76
|
-
var value = normalizeText(keyword);
|
|
77
|
-
if (!value) return models;
|
|
78
|
-
return models.filter(function (model) {
|
|
79
|
-
var name = translation(model.name);
|
|
80
|
-
var desc = translation(model.description);
|
|
81
|
-
return [name, desc, model.code, model.type_code].some(function (item) {
|
|
82
|
-
return normalizeText(item || '').includes(value);
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
}, [keyword, models, translation]);
|
|
86
|
-
var groupedModels = useMemo(function () {
|
|
87
|
-
var groups = new Map();
|
|
88
|
-
filteredModels.forEach(function (model) {
|
|
89
|
-
var key = model.type_code || getText(DEVICE_KIND_LABEL_KEY[activeKind]);
|
|
90
|
-
groups.set(key, [].concat(_toConsumableArray(groups.get(key) || []), [model]));
|
|
91
|
-
});
|
|
92
|
-
return Array.from(groups.entries());
|
|
93
|
-
}, [activeKind, filteredModels, getText]);
|
|
94
61
|
var profileRequired = isProfileRequired(selectedModel);
|
|
95
62
|
var profiles = (selectedModel === null || selectedModel === void 0 ? void 0 : selectedModel.active_profiles) || [];
|
|
96
63
|
var canSave = Boolean(workAreaId && selectedModel && hasI18nValue(nameValue) && (!profileRequired || profiles.length > 0) && (!profileRequired || Boolean(profileValue)));
|
|
@@ -136,109 +103,57 @@ var AddDeviceModal = function AddDeviceModal(_ref) {
|
|
|
136
103
|
};
|
|
137
104
|
}();
|
|
138
105
|
var renderModelStep = function renderModelStep() {
|
|
139
|
-
return /*#__PURE__*/React.createElement(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
return setKeyword(event.target.value);
|
|
148
|
-
}
|
|
149
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
150
|
-
className: "add-device-modal__model-list"
|
|
151
|
-
}, groupedModels.length ? groupedModels.map(function (_ref3) {
|
|
152
|
-
var _items$;
|
|
153
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
154
|
-
typeCode = _ref4[0],
|
|
155
|
-
items = _ref4[1];
|
|
156
|
-
var type = (_items$ = items[0]) === null || _items$ === void 0 ? void 0 : _items$.type;
|
|
157
|
-
var typeName = translation(type === null || type === void 0 ? void 0 : type.name) || typeCode;
|
|
158
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
159
|
-
key: typeCode,
|
|
160
|
-
className: "add-device-modal__model-group"
|
|
161
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
162
|
-
className: "add-device-modal__group-title"
|
|
163
|
-
}, type !== null && type !== void 0 && type.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
164
|
-
type: type === null || type === void 0 ? void 0 : type.icon
|
|
165
|
-
}) : null, /*#__PURE__*/React.createElement("span", null, typeName)), /*#__PURE__*/React.createElement("div", {
|
|
166
|
-
className: "add-device-modal__model-grid"
|
|
167
|
-
}, items.map(function (model) {
|
|
168
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
169
|
-
key: model.code,
|
|
170
|
-
className: classNames('add-device-modal__model-card', {
|
|
171
|
-
'is-selected': (selectedModel === null || selectedModel === void 0 ? void 0 : selectedModel.code) === model.code
|
|
172
|
-
}),
|
|
173
|
-
onClick: function onClick() {
|
|
174
|
-
return handleSelectModel(model);
|
|
175
|
-
}
|
|
176
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
177
|
-
className: "add-device-modal__model-name"
|
|
178
|
-
}, translation(model.name) || ''), /*#__PURE__*/React.createElement("div", {
|
|
179
|
-
className: "add-device-modal__model-desc"
|
|
180
|
-
}, translation(model.description) || ''));
|
|
181
|
-
})));
|
|
182
|
-
}) : /*#__PURE__*/React.createElement(Empty, {
|
|
183
|
-
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
184
|
-
description: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, getText('pisell2.saas.device-planning.add.no-devices')), /*#__PURE__*/React.createElement("div", null, getText('pisell2.saas.device-planning.add.adjust-search')))
|
|
185
|
-
})));
|
|
106
|
+
return /*#__PURE__*/React.createElement(DeviceModelPicker, {
|
|
107
|
+
activeKind: activeKind,
|
|
108
|
+
models: models,
|
|
109
|
+
brands: brands,
|
|
110
|
+
getText: getText,
|
|
111
|
+
translation: translation,
|
|
112
|
+
onSelect: handleSelectModel
|
|
113
|
+
});
|
|
186
114
|
};
|
|
187
115
|
var renderConfigureStep = function renderConfigureStep() {
|
|
188
|
-
|
|
189
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
190
|
-
className: "add-device-modal__body"
|
|
191
|
-
}, selectedModel ? /*#__PURE__*/React.createElement("div", {
|
|
192
|
-
className: "add-device-modal__selected-model"
|
|
193
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
194
|
-
type: ((_selectedModel$type = selectedModel.type) === null || _selectedModel$type === void 0 ? void 0 : _selectedModel$type.icon) || 'DesktopOutlined'
|
|
195
|
-
}), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
196
|
-
className: "add-device-modal__model-name"
|
|
197
|
-
}, translation(selectedModel.name) || ''), /*#__PURE__*/React.createElement("div", {
|
|
198
|
-
className: "add-device-modal__model-desc"
|
|
199
|
-
}, translation(selectedModel.description) || ''))) : null, /*#__PURE__*/React.createElement(Form, {
|
|
116
|
+
return /*#__PURE__*/React.createElement(DeviceBasicInfoForm, {
|
|
200
117
|
form: form,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
validator: validateI18nRequired(getText('pisell2.saas.device-planning.add.device-name-required'))
|
|
209
|
-
}]
|
|
210
|
-
}, /*#__PURE__*/React.createElement(BaseTranslation, {
|
|
211
|
-
renderMode: "edit"
|
|
212
|
-
})), profileRequired ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
213
|
-
name: "profile_id",
|
|
214
|
-
label: getText('pisell2.saas.device-planning.add.device-profile'),
|
|
215
|
-
required: true,
|
|
216
|
-
rules: [{
|
|
217
|
-
required: true,
|
|
218
|
-
message: getText('pisell2.saas.device-planning.add.device-profile-required')
|
|
219
|
-
}],
|
|
220
|
-
help: profiles.length === 0 ? getText('pisell2.saas.device-planning.add.create-profile-first') : undefined
|
|
221
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
222
|
-
disabled: profiles.length === 0,
|
|
223
|
-
options: profiles.map(function (profile) {
|
|
224
|
-
return {
|
|
225
|
-
label: translation(profile.name) || String(profile.id),
|
|
226
|
-
value: profile.id
|
|
227
|
-
};
|
|
228
|
-
})
|
|
229
|
-
})) : null));
|
|
118
|
+
selectedModel: selectedModel,
|
|
119
|
+
profiles: profiles,
|
|
120
|
+
profileRequired: profileRequired,
|
|
121
|
+
showProfile: true,
|
|
122
|
+
getText: getText,
|
|
123
|
+
translation: translation
|
|
124
|
+
});
|
|
230
125
|
};
|
|
231
126
|
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
232
127
|
open: open,
|
|
233
128
|
onCancel: onClose,
|
|
234
129
|
title: step === 'model' ? getText("pisell2.saas.device-planning.add.title.".concat(activeKind)) : getText('pisell2.saas.device-planning.add.configure-title'),
|
|
235
|
-
|
|
130
|
+
okVisible: step === 'configure',
|
|
131
|
+
okText: getText('pisell2.saas.device-planning.add.save'),
|
|
132
|
+
cancelText: getText(step === 'model' ? 'pisell2.saas.device-planning.add.cancel' : 'pisell2.saas.device-planning.add.back'),
|
|
133
|
+
okButtonProps: {
|
|
134
|
+
block: true,
|
|
135
|
+
size: 'large',
|
|
136
|
+
disabled: !canSave,
|
|
137
|
+
loading: submitting,
|
|
138
|
+
onClick: handleSave
|
|
139
|
+
},
|
|
140
|
+
cancelButtonProps: {
|
|
141
|
+
block: true,
|
|
142
|
+
size: 'large',
|
|
143
|
+
type: 'default',
|
|
144
|
+
onClick: step === 'model' ? onClose : function () {
|
|
145
|
+
return setStep('model');
|
|
146
|
+
}
|
|
147
|
+
},
|
|
236
148
|
destroyOnClose: true,
|
|
237
149
|
maskClosable: false,
|
|
238
|
-
width: step === 'model' ?
|
|
239
|
-
className:
|
|
150
|
+
width: step === 'model' ? '980px' : '480px',
|
|
151
|
+
className: classNames('add-device-modal', {
|
|
152
|
+
'is-peripheral': isPeripheral && step === 'model'
|
|
153
|
+
}),
|
|
240
154
|
bodyStyle: {
|
|
241
|
-
padding: '24px'
|
|
155
|
+
padding: '24px',
|
|
156
|
+
overflow: step === 'model' ? 'hidden' : 'auto'
|
|
242
157
|
}
|
|
243
158
|
}, step === 'configure' ? /*#__PURE__*/React.createElement(Button, {
|
|
244
159
|
type: "text",
|
|
@@ -247,21 +162,6 @@ var AddDeviceModal = function AddDeviceModal(_ref) {
|
|
|
247
162
|
onClick: function onClick() {
|
|
248
163
|
return setStep('model');
|
|
249
164
|
}
|
|
250
|
-
}) : null, step === 'model' ? renderModelStep() : renderConfigureStep()
|
|
251
|
-
className: "add-device-modal__footer"
|
|
252
|
-
}, step === 'model' ? /*#__PURE__*/React.createElement(Button, {
|
|
253
|
-
type: "text",
|
|
254
|
-
onClick: onClose
|
|
255
|
-
}, getText('pisell2.saas.device-planning.add.cancel')) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
256
|
-
type: "text",
|
|
257
|
-
onClick: function onClick() {
|
|
258
|
-
return setStep('model');
|
|
259
|
-
}
|
|
260
|
-
}, getText('pisell2.saas.device-planning.add.back')), /*#__PURE__*/React.createElement(Button, {
|
|
261
|
-
type: "primary",
|
|
262
|
-
disabled: !canSave,
|
|
263
|
-
loading: submitting,
|
|
264
|
-
onClick: handleSave
|
|
265
|
-
}, getText('pisell2.saas.device-planning.add.save')))));
|
|
165
|
+
}) : null, step === 'model' ? renderModelStep() : renderConfigureStep());
|
|
266
166
|
};
|
|
267
167
|
export default AddDeviceModal;
|
|
@@ -3,15 +3,33 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
gap: 16px;
|
|
6
|
-
min-height:
|
|
6
|
+
min-height: auto;
|
|
7
|
+
max-height: calc(80vh - 200px) !important;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
&__model-list {
|
|
10
|
-
|
|
11
|
+
flex: 1;
|
|
12
|
+
min-height: 0;
|
|
11
13
|
overflow: auto;
|
|
12
14
|
padding-right: 8px;
|
|
13
15
|
}
|
|
14
16
|
|
|
17
|
+
&__filters {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__search {
|
|
24
|
+
flex: 1;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__filter-select {
|
|
29
|
+
width: 150px;
|
|
30
|
+
flex: 0 0 150px;
|
|
31
|
+
}
|
|
32
|
+
|
|
15
33
|
&__model-group {
|
|
16
34
|
& + & {
|
|
17
35
|
margin-top: 20px;
|
|
@@ -35,10 +53,15 @@
|
|
|
35
53
|
}
|
|
36
54
|
|
|
37
55
|
&__model-card {
|
|
56
|
+
display: block;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: auto;
|
|
38
59
|
padding: 14px;
|
|
39
60
|
border: 1px solid transparent;
|
|
40
61
|
border-radius: 8px;
|
|
41
62
|
background: #f5f6f8;
|
|
63
|
+
text-align: left;
|
|
64
|
+
white-space: normal;
|
|
42
65
|
cursor: pointer;
|
|
43
66
|
transition: all 0.18s;
|
|
44
67
|
|
|
@@ -62,6 +85,33 @@
|
|
|
62
85
|
color: rgba(0, 0, 0, 0.45);
|
|
63
86
|
}
|
|
64
87
|
|
|
88
|
+
&__model-brand {
|
|
89
|
+
margin-top: 2px;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
line-height: 18px;
|
|
92
|
+
color: rgba(0, 0, 0, 0.55);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__connection-list {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-wrap: wrap;
|
|
98
|
+
gap: 4px;
|
|
99
|
+
margin-top: 8px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__connection-tag {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
height: 18px;
|
|
106
|
+
padding: 0 6px;
|
|
107
|
+
font-size: 11px;
|
|
108
|
+
line-height: 16px;
|
|
109
|
+
color: rgba(0, 0, 0, 0.65);
|
|
110
|
+
border: 1px solid rgba(0, 0, 0, 0.25);
|
|
111
|
+
border-radius: 4px;
|
|
112
|
+
background: #fff;
|
|
113
|
+
}
|
|
114
|
+
|
|
65
115
|
&__selected-model {
|
|
66
116
|
display: flex;
|
|
67
117
|
gap: 12px;
|
|
@@ -70,16 +120,19 @@
|
|
|
70
120
|
background: #f5f6f8;
|
|
71
121
|
}
|
|
72
122
|
|
|
73
|
-
&__footer {
|
|
74
|
-
display: flex;
|
|
75
|
-
justify-content: flex-end;
|
|
76
|
-
gap: 8px;
|
|
77
|
-
margin-top: 20px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
123
|
&__back-icon {
|
|
81
124
|
position: absolute;
|
|
82
125
|
top: 18px;
|
|
83
126
|
left: 16px;
|
|
84
127
|
}
|
|
128
|
+
|
|
129
|
+
&.is-peripheral {
|
|
130
|
+
.add-device-modal__model-grid {
|
|
131
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.add-device-modal__model-card {
|
|
135
|
+
min-height: 108px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
85
138
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Alert } from 'antd';
|
|
3
2
|
import { PisellModal } from '@pisell/materials';
|
|
4
|
-
import { ExclamationCircleFilled } from '@ant-design/icons';
|
|
5
3
|
import { formatToken } from "../../constants";
|
|
4
|
+
import OnlineWarningAlert from "../shared/OnlineWarningAlert";
|
|
6
5
|
var DeleteDeviceModal = function DeleteDeviceModal(_ref) {
|
|
7
6
|
var open = _ref.open,
|
|
8
7
|
record = _ref.record,
|
|
@@ -20,11 +19,16 @@ var DeleteDeviceModal = function DeleteDeviceModal(_ref) {
|
|
|
20
19
|
okText: getText(online ? 'pisell2.saas.device-planning.delete-device.delete-anyway' : 'pisell2.saas.device-planning.detail.delete'),
|
|
21
20
|
cancelText: getText('pisell2.saas.device-planning.detail.cancel'),
|
|
22
21
|
okButtonProps: {
|
|
22
|
+
block: true,
|
|
23
|
+
size: 'large',
|
|
23
24
|
danger: true,
|
|
24
25
|
loading: submitting,
|
|
25
26
|
onClick: onConfirm
|
|
26
27
|
},
|
|
27
28
|
cancelButtonProps: {
|
|
29
|
+
block: true,
|
|
30
|
+
size: 'large',
|
|
31
|
+
type: 'default',
|
|
28
32
|
disabled: submitting
|
|
29
33
|
},
|
|
30
34
|
destroyOnClose: true,
|
|
@@ -33,10 +37,7 @@ var DeleteDeviceModal = function DeleteDeviceModal(_ref) {
|
|
|
33
37
|
bodyStyle: {
|
|
34
38
|
padding: '0 24px 24px'
|
|
35
39
|
}
|
|
36
|
-
}, online ? /*#__PURE__*/React.createElement(
|
|
37
|
-
type: "warning",
|
|
38
|
-
showIcon: true,
|
|
39
|
-
icon: /*#__PURE__*/React.createElement(ExclamationCircleFilled, null),
|
|
40
|
+
}, online ? /*#__PURE__*/React.createElement(OnlineWarningAlert, {
|
|
40
41
|
message: getText('pisell2.saas.device-planning.delete-device.online-title'),
|
|
41
42
|
description: formatToken(getText('pisell2.saas.device-planning.delete-device.online-desc'), {
|
|
42
43
|
DeviceName: name
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Spin } from 'antd';
|
|
3
3
|
import { PisellModal, Tag } from '@pisell/materials';
|
|
4
|
-
import { ExclamationCircleFilled } from '@ant-design/icons';
|
|
5
4
|
import { formatToken } from "../../constants";
|
|
5
|
+
import OnlineWarningAlert from "../shared/OnlineWarningAlert";
|
|
6
6
|
import "./index.less";
|
|
7
7
|
var DeleteWorkAreaModal = function DeleteWorkAreaModal(_ref) {
|
|
8
8
|
var open = _ref.open,
|
|
@@ -26,11 +26,16 @@ var DeleteWorkAreaModal = function DeleteWorkAreaModal(_ref) {
|
|
|
26
26
|
okText: getText('pisell2.saas.device-planning.delete.confirm-button'),
|
|
27
27
|
cancelText: getText(hasDevices ? 'pisell2.saas.device-planning.delete.close' : 'pisell2.saas.device-planning.delete.cancel'),
|
|
28
28
|
okButtonProps: {
|
|
29
|
+
block: true,
|
|
30
|
+
size: 'large',
|
|
29
31
|
danger: true,
|
|
30
32
|
loading: submitting,
|
|
31
33
|
onClick: onConfirm
|
|
32
34
|
},
|
|
33
35
|
cancelButtonProps: {
|
|
36
|
+
block: true,
|
|
37
|
+
size: 'large',
|
|
38
|
+
type: 'default',
|
|
34
39
|
disabled: submitting
|
|
35
40
|
},
|
|
36
41
|
destroyOnClose: true,
|
|
@@ -45,10 +50,7 @@ var DeleteWorkAreaModal = function DeleteWorkAreaModal(_ref) {
|
|
|
45
50
|
className: "saas-device-planning-delete-modal__loading"
|
|
46
51
|
}, /*#__PURE__*/React.createElement(Spin, null)) : hasDevices ? /*#__PURE__*/React.createElement("div", {
|
|
47
52
|
className: "saas-device-planning-delete-modal__body"
|
|
48
|
-
}, /*#__PURE__*/React.createElement(
|
|
49
|
-
type: "warning",
|
|
50
|
-
showIcon: true,
|
|
51
|
-
icon: /*#__PURE__*/React.createElement(ExclamationCircleFilled, null),
|
|
53
|
+
}, /*#__PURE__*/React.createElement(OnlineWarningAlert, {
|
|
52
54
|
message: getText('pisell2.saas.device-planning.delete.block-title'),
|
|
53
55
|
description: formatToken(getText('pisell2.saas.device-planning.delete.block-content'), {
|
|
54
56
|
WorkAreaName: workAreaName
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CreateDeviceConnectionPayload, DeviceConnectionItem, DeviceItem, I18nText, UpdateDeviceConnectionPayload } from '../../../types';
|
|
3
|
+
import type { ConnectMode } from '../hooks/useConnectDeviceModal';
|
|
4
|
+
import '../../AddDeviceModal/index.less';
|
|
5
|
+
import './ConnectExistingDeviceModal.less';
|
|
6
|
+
interface ConnectExistingDeviceModalProps {
|
|
7
|
+
open: boolean;
|
|
8
|
+
mode: ConnectMode;
|
|
9
|
+
currentDevice: DeviceItem;
|
|
10
|
+
editConnection?: DeviceConnectionItem;
|
|
11
|
+
connectedDeviceIds: number[];
|
|
12
|
+
currentWorkAreaId?: number;
|
|
13
|
+
getText: (key: string) => string;
|
|
14
|
+
translation: (val?: I18nText) => string;
|
|
15
|
+
submitting: boolean;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
onSubmit?: (payload: CreateDeviceConnectionPayload) => void;
|
|
18
|
+
onUpdate?: (id: number, payload: UpdateDeviceConnectionPayload) => void;
|
|
19
|
+
}
|
|
20
|
+
declare const ConnectExistingDeviceModal: React.FC<ConnectExistingDeviceModalProps>;
|
|
21
|
+
export default ConnectExistingDeviceModal;
|