@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.
Files changed (307) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  15. package/es/components/booking/forms/single/index.d.ts +0 -1
  16. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  17. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  18. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  19. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  20. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  21. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  22. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  23. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  24. package/es/components/eftpos/form/index.d.ts +0 -1
  25. package/es/components/eftpos/hooks.d.ts +0 -1
  26. package/es/components/eftpos/index.d.ts +0 -1
  27. package/es/components/eftpos/pos.d.ts +0 -1
  28. package/es/components/eftposPay/amount.d.ts +0 -1
  29. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  30. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  31. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  32. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  33. package/es/components/eftposPay/hooks.d.ts +1 -1
  34. package/es/components/eftposPay/store/index.d.ts +1 -1
  35. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  41. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  42. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  43. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  45. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -1
  46. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  47. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  48. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  49. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  50. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  51. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  52. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  53. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  54. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  55. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  56. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  57. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  58. package/es/components/schedules/products/index.d.ts +0 -1
  59. package/es/components/schedules/resources/index.d.ts +0 -1
  60. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  61. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  62. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  63. package/es/components/schedules/schedules/index.d.ts +0 -1
  64. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  65. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  66. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  67. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  68. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  69. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  70. package/es/plus/orderList/components/Reset.d.ts +1 -0
  71. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  72. package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.d.ts +2 -1
  73. package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.js +54 -154
  74. package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.less +62 -9
  75. package/es/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.js +7 -6
  76. package/es/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.js +8 -6
  77. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.d.ts +21 -0
  78. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.js +244 -0
  79. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.less +323 -0
  80. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.d.ts +18 -0
  81. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.js +272 -0
  82. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.less +111 -0
  83. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.d.ts +10 -0
  84. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.js +211 -0
  85. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.less +211 -0
  86. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.d.ts +11 -0
  87. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.js +39 -0
  88. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.d.ts +14 -0
  89. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.js +22 -0
  90. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.d.ts +14 -0
  91. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.js +122 -0
  92. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.d.ts +12 -0
  93. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.js +41 -0
  94. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.d.ts +11 -0
  95. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.js +51 -0
  96. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.d.ts +22 -0
  97. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.js +98 -0
  98. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.d.ts +12 -0
  99. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.js +24 -0
  100. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.d.ts +56 -0
  101. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.js +278 -0
  102. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.d.ts +20 -0
  103. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.js +125 -0
  104. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.d.ts +16 -0
  105. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.js +58 -0
  106. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.d.ts +3 -0
  107. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +62 -210
  108. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +103 -209
  109. package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +29 -19
  110. package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +22 -1
  111. package/es/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.js +17 -21
  112. package/es/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.js +14 -15
  113. package/es/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.d.ts +25 -0
  114. package/es/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.js +82 -0
  115. package/es/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.d.ts +10 -0
  116. package/es/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.js +18 -0
  117. package/es/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.d.ts +12 -0
  118. package/es/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.js +147 -0
  119. package/es/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.d.ts +9 -0
  120. package/es/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.js +22 -0
  121. package/es/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.d.ts +9 -0
  122. package/es/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.js +12 -0
  123. package/es/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.d.ts +15 -0
  124. package/es/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.js +61 -0
  125. package/es/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.d.ts +10 -0
  126. package/es/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.js +16 -0
  127. package/es/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.d.ts +8 -0
  128. package/es/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.js +17 -0
  129. package/es/plus/saasDevice/devicePlanning/hooks/index.d.ts +2 -0
  130. package/es/plus/saasDevice/devicePlanning/hooks/index.js +12 -0
  131. package/es/plus/saasDevice/devicePlanning/hooks/useDeviceList.d.ts +33 -0
  132. package/es/plus/saasDevice/devicePlanning/hooks/useDeviceList.js +183 -0
  133. package/es/plus/saasDevice/devicePlanning/hooks/useDeviceModels.d.ts +20 -0
  134. package/es/plus/saasDevice/devicePlanning/hooks/useDeviceModels.js +92 -0
  135. package/es/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.d.ts +27 -0
  136. package/es/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.js +95 -0
  137. package/es/plus/saasDevice/devicePlanning/hooks/useWorkAreas.d.ts +35 -0
  138. package/es/plus/saasDevice/devicePlanning/hooks/useWorkAreas.js +292 -0
  139. package/es/plus/saasDevice/devicePlanning/index.js +168 -637
  140. package/es/plus/saasDevice/devicePlanning/locales.d.ts +215 -0
  141. package/es/plus/saasDevice/devicePlanning/locales.js +215 -0
  142. package/es/plus/saasDevice/devicePlanning/serve.d.ts +14 -2
  143. package/es/plus/saasDevice/devicePlanning/serve.js +175 -20
  144. package/es/plus/saasDevice/devicePlanning/types.d.ts +85 -0
  145. package/es/plus/saasDevice/devicePlanning/types.js +46 -3
  146. package/es/plus/saasDevice/devicePlanning/utils.d.ts +27 -0
  147. package/es/plus/saasDevice/devicePlanning/utils.js +125 -0
  148. package/es/plus/saasDevice/index.d.ts +3 -0
  149. package/es/plus/saasDevice/index.js +3 -0
  150. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  151. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  152. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  153. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  154. package/es/plus/walletPassGallery/components/passList/index.js +1 -2
  155. package/es/pro/Selector/demo.d.ts +0 -1
  156. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  157. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  158. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  159. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
  160. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  161. package/lib/components/booking/forms/single/index.d.ts +0 -1
  162. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  163. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  164. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  165. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  166. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  167. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  168. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  169. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  170. package/lib/components/eftpos/form/index.d.ts +0 -1
  171. package/lib/components/eftpos/hooks.d.ts +0 -1
  172. package/lib/components/eftpos/index.d.ts +0 -1
  173. package/lib/components/eftpos/pos.d.ts +0 -1
  174. package/lib/components/eftposPay/amount.d.ts +0 -1
  175. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  176. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  177. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  178. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  179. package/lib/components/eftposPay/hooks.d.ts +1 -1
  180. package/lib/components/eftposPay/store/index.d.ts +1 -1
  181. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  182. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  183. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  184. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  185. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  186. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  187. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  188. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  189. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  191. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -1
  192. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  193. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  194. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  195. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  196. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  197. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  198. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  199. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  200. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  201. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  202. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  203. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  204. package/lib/components/schedules/products/index.d.ts +0 -1
  205. package/lib/components/schedules/resources/index.d.ts +0 -1
  206. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  207. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  208. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  209. package/lib/components/schedules/schedules/index.d.ts +0 -1
  210. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  211. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  212. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  213. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  214. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  215. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  216. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  217. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  218. package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.d.ts +2 -1
  219. package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.js +50 -120
  220. package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.less +62 -9
  221. package/lib/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.js +15 -8
  222. package/lib/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.js +10 -6
  223. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.d.ts +21 -0
  224. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.js +270 -0
  225. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/ConnectExistingDeviceModal.less +323 -0
  226. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.d.ts +18 -0
  227. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.js +235 -0
  228. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceConnectionsPanel.less +111 -0
  229. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.d.ts +10 -0
  230. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.js +218 -0
  231. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DeviceInfoPanel.less +211 -0
  232. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.d.ts +11 -0
  233. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/DrawerSidebar.js +73 -0
  234. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.d.ts +14 -0
  235. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectDeviceModalHeader.js +61 -0
  236. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.d.ts +14 -0
  237. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/ConnectionConfigFields.js +171 -0
  238. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.d.ts +12 -0
  239. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/DeviceConnectionSummary.js +78 -0
  240. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.d.ts +11 -0
  241. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/NewPeripheralInfoFields.js +87 -0
  242. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.d.ts +22 -0
  243. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickExistingDeviceStep.js +129 -0
  244. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.d.ts +12 -0
  245. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/components/connectDeviceModal/PickNewPeripheralStep.js +56 -0
  246. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.d.ts +56 -0
  247. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useConnectDeviceModal.js +229 -0
  248. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.d.ts +20 -0
  249. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceConnections.js +90 -0
  250. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.d.ts +16 -0
  251. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/hooks/useDeviceDetail.js +74 -0
  252. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.d.ts +3 -0
  253. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +62 -173
  254. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +103 -209
  255. package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +54 -39
  256. package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +22 -1
  257. package/lib/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.js +25 -25
  258. package/lib/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.js +22 -17
  259. package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.d.ts +25 -0
  260. package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceBasicInfoForm.js +126 -0
  261. package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.d.ts +10 -0
  262. package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceIcon.js +45 -0
  263. package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.d.ts +12 -0
  264. package/lib/plus/saasDevice/devicePlanning/components/shared/DeviceModelPicker.js +165 -0
  265. package/lib/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.d.ts +9 -0
  266. package/lib/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.js +54 -0
  267. package/lib/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.d.ts +9 -0
  268. package/lib/plus/saasDevice/devicePlanning/components/shared/LinkStatusTag.js +42 -0
  269. package/lib/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.d.ts +15 -0
  270. package/lib/plus/saasDevice/devicePlanning/components/shared/ModelPickerGrid.js +89 -0
  271. package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.d.ts +10 -0
  272. package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineStatus.js +50 -0
  273. package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.d.ts +8 -0
  274. package/lib/plus/saasDevice/devicePlanning/components/shared/OnlineWarningAlert.js +53 -0
  275. package/lib/plus/saasDevice/devicePlanning/hooks/index.d.ts +2 -0
  276. package/lib/plus/saasDevice/devicePlanning/{hooks.js → hooks/index.js} +9 -6
  277. package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceList.d.ts +33 -0
  278. package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceList.js +131 -0
  279. package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceModels.d.ts +20 -0
  280. package/lib/plus/saasDevice/devicePlanning/hooks/useDeviceModels.js +109 -0
  281. package/lib/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.d.ts +27 -0
  282. package/lib/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.js +90 -0
  283. package/lib/plus/saasDevice/devicePlanning/hooks/useWorkAreas.d.ts +35 -0
  284. package/lib/plus/saasDevice/devicePlanning/hooks/useWorkAreas.js +169 -0
  285. package/lib/plus/saasDevice/devicePlanning/index.js +120 -375
  286. package/lib/plus/saasDevice/devicePlanning/locales.d.ts +215 -0
  287. package/lib/plus/saasDevice/devicePlanning/locales.js +215 -0
  288. package/lib/plus/saasDevice/devicePlanning/serve.d.ts +14 -2
  289. package/lib/plus/saasDevice/devicePlanning/serve.js +88 -1
  290. package/lib/plus/saasDevice/devicePlanning/types.d.ts +85 -0
  291. package/lib/plus/saasDevice/devicePlanning/types.js +1 -1
  292. package/lib/plus/saasDevice/devicePlanning/utils.d.ts +27 -0
  293. package/lib/plus/saasDevice/devicePlanning/utils.js +130 -0
  294. package/lib/plus/saasDevice/index.d.ts +3 -0
  295. package/lib/plus/saasDevice/index.js +42 -0
  296. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  297. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  298. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  299. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  300. package/lib/plus/walletPassGallery/components/passList/index.js +0 -1
  301. package/lib/pro/Selector/demo.d.ts +0 -1
  302. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  303. package/package.json +2 -2
  304. package/build/lowcode.zip +0 -0
  305. package/es/plus/saasDevice/devicePlanning/hooks.d.ts +0 -1
  306. package/es/plus/saasDevice/devicePlanning/hooks.js +0 -9
  307. 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;
@@ -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;