@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
@@ -20,9 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var serve_exports = {};
21
21
  __export(serve_exports, {
22
22
  createDevice: () => createDevice,
23
+ createDeviceConnection: () => createDeviceConnection,
23
24
  createWorkArea: () => createWorkArea,
24
25
  deleteDevice: () => deleteDevice,
26
+ deleteDeviceConnection: () => deleteDeviceConnection,
25
27
  deleteWorkArea: () => deleteWorkArea,
28
+ getDeviceBrands: () => getDeviceBrands,
29
+ getDeviceConnectionDetail: () => getDeviceConnectionDetail,
30
+ getDeviceConnections: () => getDeviceConnections,
31
+ getDeviceDetail: () => getDeviceDetail,
26
32
  getDeviceTypes: () => getDeviceTypes,
27
33
  getDevices: () => getDevices,
28
34
  getWorkAreaDetail: () => getWorkAreaDetail,
@@ -30,6 +36,7 @@ __export(serve_exports, {
30
36
  sortDevices: () => sortDevices,
31
37
  sortWorkAreas: () => sortWorkAreas,
32
38
  updateDevice: () => updateDevice,
39
+ updateDeviceConnection: () => updateDeviceConnection,
33
40
  updateWorkArea: () => updateWorkArea
34
41
  });
35
42
  module.exports = __toCommonJS(serve_exports);
@@ -79,17 +86,90 @@ var getDevices = async (params) => {
79
86
  );
80
87
  return (response == null ? void 0 : response.data) || [];
81
88
  };
89
+ var getDeviceDetail = async (id) => {
90
+ const response = await import_utils.request.getRequest().get(
91
+ `/tenant/device/${id}`,
92
+ {
93
+ with: ["type", "model", "model.activeProfiles", "profile"]
94
+ },
95
+ CONFIG
96
+ );
97
+ return (response == null ? void 0 : response.data) || null;
98
+ };
99
+ var createDeviceConnection = async (payload) => {
100
+ const response = await import_utils.request.getRequest().post("/tenant/device/connection", payload, CONFIG);
101
+ return (response == null ? void 0 : response.data) || null;
102
+ };
103
+ var getDeviceConnections = async (params) => {
104
+ const response = await import_utils.request.getRequest().get(
105
+ "/tenant/device/connection",
106
+ {
107
+ with: params.with || ["targetDevice.type", "sourceDevice.type", "profiles"],
108
+ type: params.type,
109
+ source_device_id: params.source_device_id,
110
+ target_device_id: params.target_device_id
111
+ },
112
+ CONFIG
113
+ );
114
+ return (response == null ? void 0 : response.data) || [];
115
+ };
116
+ var getDeviceConnectionDetail = async (id) => {
117
+ const response = await import_utils.request.getRequest().get(
118
+ `/tenant/device/connection/${id}`,
119
+ {
120
+ with: ["targetDevice.type", "sourceDevice.type", "profiles"]
121
+ },
122
+ CONFIG
123
+ );
124
+ return (response == null ? void 0 : response.data) || null;
125
+ };
126
+ var updateDeviceConnection = async (id, payload) => {
127
+ const response = await import_utils.request.getRequest().put(
128
+ `/tenant/device/connection/${id}`,
129
+ payload,
130
+ CONFIG
131
+ );
132
+ return (response == null ? void 0 : response.data) || null;
133
+ };
134
+ var deleteDeviceConnection = (id) => import_utils.request.getRequest().remove(`/tenant/device/connection/${id}`, {}, CONFIG);
82
135
  var getDeviceTypes = async (params) => {
83
136
  const response = await import_utils.request.getRequest().get(
84
137
  "/tenant/device/type/all",
85
138
  {
86
- with: params.with || ["activeModels", "activeModels.activeProfiles"],
139
+ with: params.with || ["activeModels", "activeModels.activeProfiles", "activeModels.brand"],
87
140
  kind: params.kind
88
141
  },
89
142
  CONFIG
90
143
  );
91
144
  return (response == null ? void 0 : response.data) || [];
92
145
  };
146
+ var getDeviceBrands = async () => {
147
+ const response = await import_utils.request.getRequest().get(
148
+ "/api/device_brand:list",
149
+ {
150
+ page: 1,
151
+ pageSize: 20,
152
+ filter: {
153
+ $and: [
154
+ {
155
+ $and: {
156
+ deleted_at: {
157
+ $is: null
158
+ }
159
+ }
160
+ }
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ isNocobase: true,
166
+ headers: {
167
+ "x-data-source": "pisell2"
168
+ }
169
+ }
170
+ );
171
+ return (response == null ? void 0 : response.data) || [];
172
+ };
93
173
  var createDevice = async (payload) => {
94
174
  const response = await import_utils.request.getRequest().post("/tenant/device", payload, CONFIG);
95
175
  return (response == null ? void 0 : response.data) || null;
@@ -103,9 +183,15 @@ var deleteDevice = (id) => import_utils.request.getRequest().remove(`/tenant/dev
103
183
  // Annotate the CommonJS export names for ESM import in node:
104
184
  0 && (module.exports = {
105
185
  createDevice,
186
+ createDeviceConnection,
106
187
  createWorkArea,
107
188
  deleteDevice,
189
+ deleteDeviceConnection,
108
190
  deleteWorkArea,
191
+ getDeviceBrands,
192
+ getDeviceConnectionDetail,
193
+ getDeviceConnections,
194
+ getDeviceDetail,
109
195
  getDeviceTypes,
110
196
  getDevices,
111
197
  getWorkAreaDetail,
@@ -113,5 +199,6 @@ var deleteDevice = (id) => import_utils.request.getRequest().remove(`/tenant/dev
113
199
  sortDevices,
114
200
  sortWorkAreas,
115
201
  updateDevice,
202
+ updateDeviceConnection,
116
203
  updateWorkArea
117
204
  });
@@ -2,6 +2,7 @@ import type React from 'react';
2
2
  export declare type DeviceKind = 'smart' | 'dumb' | 'integrated';
3
3
  export declare type DeviceLinkStatus = 'linked' | 'unlinked' | string;
4
4
  export declare type DeviceOnlineStatus = 'online' | 'offline' | 'unknown' | string;
5
+ /** 多语言字段,后端可能返回字符串或语言字典。 */
5
6
  export declare type I18nText = string | {
6
7
  original?: string;
7
8
  'zh-CN'?: string;
@@ -19,19 +20,37 @@ export declare type LangDict = {
19
20
  ja?: string;
20
21
  pt?: string;
21
22
  };
23
+ /** SaasDevicePlanning 低代码物料的对外 props。 */
22
24
  export interface SaasDevicePlanningProps {
23
25
  className?: string;
24
26
  style?: React.CSSProperties;
25
27
  }
28
+ /** 工作区,设备规划左侧列表的基本单元。 */
26
29
  export interface WorkAreaItem {
27
30
  id: number;
28
31
  tenant_id?: number;
29
32
  name: I18nText;
30
33
  description?: I18nText;
31
34
  sort: number;
35
+ smart_devices_count?: number;
36
+ dumb_devices_count?: number;
37
+ integrated_devices_count?: number;
32
38
  created_at?: string;
33
39
  updated_at?: string;
34
40
  }
41
+ /** 设备品牌,主要用于外设型号筛选。 */
42
+ export interface DeviceBrandItem {
43
+ id: number;
44
+ code: string;
45
+ name: I18nText;
46
+ description?: I18nText;
47
+ website?: string;
48
+ status?: string;
49
+ created_at?: string;
50
+ updated_at?: string;
51
+ deleted_at?: string | null;
52
+ }
53
+ /** 设备类型,例如 POS、Receipt Printer;一个类型下可包含多个型号。 */
35
54
  export interface DeviceTypeItem {
36
55
  id: number;
37
56
  kind: DeviceKind;
@@ -43,6 +62,7 @@ export interface DeviceTypeItem {
43
62
  sort?: number;
44
63
  active_models?: DeviceModelItem[];
45
64
  }
65
+ /** 设备型号,创建设备和连接新增外设时都以 model_code 为核心。 */
46
66
  export interface DeviceModelItem {
47
67
  id: number;
48
68
  brand_code?: string;
@@ -56,12 +76,15 @@ export interface DeviceModelItem {
56
76
  required?: boolean;
57
77
  tabs?: unknown[];
58
78
  };
79
+ connection_types?: string[];
59
80
  [key: string]: unknown;
60
81
  } | null;
61
82
  status?: string;
62
83
  sort?: number;
63
84
  active_profiles?: DeviceProfileItem[];
85
+ brand?: DeviceBrandItem;
64
86
  }
87
+ /** 设备配置方案,智能设备和外设连接时可绑定多个 profile。 */
65
88
  export interface DeviceProfileItem {
66
89
  id: number;
67
90
  model_code?: string;
@@ -71,6 +94,7 @@ export interface DeviceProfileItem {
71
94
  setting?: Record<string, unknown> | null;
72
95
  status?: string;
73
96
  }
97
+ /** 后端设备实体,smart/dumb/integrated 三类设备共用。 */
74
98
  export interface DeviceItem {
75
99
  id: number;
76
100
  tenant_id?: number;
@@ -94,27 +118,85 @@ export interface DeviceItem {
94
118
  profile?: DeviceProfileItem | null;
95
119
  workarea?: WorkAreaItem;
96
120
  }
121
+ /** 设备连接配置,网络连接时会带 connection_method 和 connection_ip。 */
122
+ export interface DeviceConnectionConfig {
123
+ connection_ip?: string;
124
+ connection_type?: string;
125
+ connection_method?: string;
126
+ [key: string]: unknown;
127
+ }
128
+ /** 设备连接业务类型;当前接口仅启用哑设备连接。 */
129
+ export declare type DeviceConnectionType = 'dumb';
130
+ /** 智能设备与外设的连接关系。 */
131
+ export interface DeviceConnectionItem {
132
+ id: number;
133
+ tenant_id?: number;
134
+ type?: DeviceConnectionType;
135
+ source_device_id: number;
136
+ target_device_id: number;
137
+ config?: DeviceConnectionConfig | null;
138
+ profile_ids?: number[];
139
+ status?: string | null;
140
+ created_at?: string;
141
+ updated_at?: string;
142
+ source_device?: DeviceItem | null;
143
+ target_device?: DeviceItem | null;
144
+ profiles?: DeviceProfileItem[];
145
+ }
146
+ /** 设备列表查询参数。 */
97
147
  export interface ListDeviceParams {
98
148
  with?: string[];
99
149
  workarea_id?: number;
100
150
  type_kind?: DeviceKind;
101
151
  profile_id?: number;
102
152
  }
153
+ /** 设备连接列表查询参数。source 和 target 通过不同 id 字段过滤。 */
154
+ export interface ListDeviceConnectionParams {
155
+ type?: DeviceConnectionType;
156
+ source_device_id?: number;
157
+ target_device_id?: number;
158
+ with?: string[];
159
+ }
160
+ /** 保存工作区的表单 payload。 */
103
161
  export interface SaveWorkAreaPayload {
104
162
  name: LangDict;
105
163
  description: LangDict;
106
164
  }
165
+ /** 单独创建设备的 payload,由 AddDeviceModal 提交。 */
107
166
  export interface CreateDevicePayload {
108
167
  workarea_id: number;
109
168
  model_code: string;
110
169
  profile_id: number | null;
111
170
  name: LangDict;
112
171
  }
172
+ /** 连接流程里“新增外设并连接”时嵌套创建的目标设备 payload。 */
173
+ export interface CreateConnectionTargetDevicePayload {
174
+ workarea_id: number;
175
+ model_code: string;
176
+ name: LangDict;
177
+ }
178
+ /** 创建连接的 payload,支持连接已有外设或新增外设后连接。 */
179
+ export interface CreateDeviceConnectionPayload {
180
+ type: DeviceConnectionType;
181
+ source_device_id: number;
182
+ target_device_id?: number;
183
+ target_device?: CreateConnectionTargetDevicePayload;
184
+ target_device_action: 'existing' | 'new';
185
+ config: DeviceConnectionConfig;
186
+ profile_ids: number[];
187
+ }
188
+ /** 更新连接配置的 payload,仅更新 config 和 profile_ids。 */
189
+ export interface UpdateDeviceConnectionPayload {
190
+ config: DeviceConnectionConfig;
191
+ profile_ids: number[];
192
+ }
193
+ /** 编辑设备时允许更新工作区、名称和 smart profile。 */
113
194
  export interface UpdateDevicePayload {
114
195
  workarea_id: number;
115
196
  profile_id: number | null;
116
197
  name: LangDict;
117
198
  }
199
+ /** 表格/详情抽屉使用的展示模型,保留 _raw 以便提交时读取原始字段。 */
118
200
  export interface DeviceRow {
119
201
  id: number;
120
202
  name: string;
@@ -127,6 +209,7 @@ export interface DeviceRow {
127
209
  modelCode: string;
128
210
  _raw: DeviceItem;
129
211
  }
212
+ /** 删除工作区前用于判断是否阻断删除的设备数量。 */
130
213
  export interface DeleteWorkAreaCounts {
131
214
  smart: number;
132
215
  dumb: number;
@@ -134,5 +217,7 @@ export interface DeleteWorkAreaCounts {
134
217
  }
135
218
  export declare const EMPTY_I18N: LangDict;
136
219
  export declare const DEVICE_KIND_OPTIONS: DeviceKind[];
220
+ /** 统一把后端多语言值转成可编辑表单需要的语言字典。 */
137
221
  export declare const toLangDict: (val?: I18nText) => LangDict;
222
+ /** 校验 BaseTranslation 字段是否至少填写 original 或任一语言值。 */
138
223
  export declare const validateI18nRequired: (message: string) => (_rule: unknown, value: I18nText | undefined) => Promise<void>;
@@ -33,7 +33,7 @@ var EMPTY_I18N = {
33
33
  ja: "",
34
34
  pt: ""
35
35
  };
36
- var DEVICE_KIND_OPTIONS = ["smart"];
36
+ var DEVICE_KIND_OPTIONS = ["smart", "dumb", "integrated"];
37
37
  var toLangDict = (val) => {
38
38
  if (!val) return { ...EMPTY_I18N };
39
39
  if (typeof val === "string") {
@@ -0,0 +1,27 @@
1
+ import type { DeleteWorkAreaCounts, DeviceBrandItem, DeviceItem, DeviceKind, DeviceModelItem, DeviceRow, DeviceTypeItem, I18nText } from './types';
2
+ export declare const DEVICE_ICON_COLOR: Record<DeviceKind, string>;
3
+ export declare const CONNECTION_TYPE_OPTIONS: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ export declare const BRAND_OPTION_SEPARATOR = "__";
8
+ /** 把品牌 id 和 code 编码成 Select value,避免 code 中特殊字符与 id 冲突。 */
9
+ export declare const getBrandOptionValue: (brand: DeviceBrandItem) => string;
10
+ /** 从品牌 Select value 中还原 brand_code。 */
11
+ export declare const getBrandCodeFromOptionValue: (value?: string) => string | undefined;
12
+ /** 读取型号支持的连接方式,用于外设型号筛选和连接配置展示。 */
13
+ export declare const getModelConnectionTypes: (model: DeviceModelItem) => string[];
14
+ /** 把连接方式 code 转成 UI 展示文案。 */
15
+ export declare const getConnectionTypeLabel: (value?: string) => string;
16
+ /** 判断当前型号是否必须选择 profile。 */
17
+ export declare const isProfileRequired: (model?: DeviceModelItem) => boolean;
18
+ /** 判断多语言表单值是否至少有一个非空语言值。 */
19
+ export declare const hasI18nValue: (value?: Record<string, unknown>) => boolean;
20
+ /** 将后端按类型返回的 active_models 展平成去重后的型号列表。 */
21
+ export declare const flattenDeviceModels: (types: DeviceTypeItem[]) => DeviceModelItem[];
22
+ /** 把后端设备实体转换成列表和详情抽屉共用的展示模型。 */
23
+ export declare const createDeviceRow: (item: DeviceItem, translation: (val?: I18nText) => string, profileNameMap?: Map<number, string>) => DeviceRow;
24
+ /** 兼容工作区详情接口可能返回 data 数组或单对象的两种结构。 */
25
+ export declare const resolveWorkAreaDetail: (response: unknown) => any;
26
+ /** 从工作区详情响应中提取三类设备数量,用于删除前阻断判断。 */
27
+ export declare const getDeleteWorkAreaCounts: (response: unknown) => DeleteWorkAreaCounts;
@@ -0,0 +1,130 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/plus/saasDevice/devicePlanning/utils.ts
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ BRAND_OPTION_SEPARATOR: () => BRAND_OPTION_SEPARATOR,
23
+ CONNECTION_TYPE_OPTIONS: () => CONNECTION_TYPE_OPTIONS,
24
+ DEVICE_ICON_COLOR: () => DEVICE_ICON_COLOR,
25
+ createDeviceRow: () => createDeviceRow,
26
+ flattenDeviceModels: () => flattenDeviceModels,
27
+ getBrandCodeFromOptionValue: () => getBrandCodeFromOptionValue,
28
+ getBrandOptionValue: () => getBrandOptionValue,
29
+ getConnectionTypeLabel: () => getConnectionTypeLabel,
30
+ getDeleteWorkAreaCounts: () => getDeleteWorkAreaCounts,
31
+ getModelConnectionTypes: () => getModelConnectionTypes,
32
+ hasI18nValue: () => hasI18nValue,
33
+ isProfileRequired: () => isProfileRequired,
34
+ resolveWorkAreaDetail: () => resolveWorkAreaDetail
35
+ });
36
+ module.exports = __toCommonJS(utils_exports);
37
+ var DEVICE_ICON_COLOR = {
38
+ smart: "#1677ff",
39
+ dumb: "#faad14",
40
+ integrated: "#389e0d"
41
+ };
42
+ var CONNECTION_TYPE_OPTIONS = [
43
+ { label: "USB", value: "usb" },
44
+ { label: "Ethernet", value: "ethernet" },
45
+ { label: "WiFi", value: "wifi" },
46
+ { label: "Bluetooth", value: "bluetooth" },
47
+ { label: "Serial", value: "serial" }
48
+ ];
49
+ var BRAND_OPTION_SEPARATOR = "__";
50
+ var getBrandOptionValue = (brand) => `${brand.id}${BRAND_OPTION_SEPARATOR}${brand.code}`;
51
+ var getBrandCodeFromOptionValue = (value) => value == null ? void 0 : value.split(BRAND_OPTION_SEPARATOR).slice(1).join(BRAND_OPTION_SEPARATOR);
52
+ var getModelConnectionTypes = (model) => {
53
+ var _a;
54
+ const connections = (_a = model.data) == null ? void 0 : _a.connection_types;
55
+ return Array.isArray(connections) ? connections.map((item) => String(item || "").trim()).filter(Boolean) : [];
56
+ };
57
+ var getConnectionTypeLabel = (value) => {
58
+ var _a;
59
+ if (!value) return "-";
60
+ const normalizedValue = value.toLowerCase().trim();
61
+ return ((_a = CONNECTION_TYPE_OPTIONS.find((option) => option.value === normalizedValue)) == null ? void 0 : _a.label) || value;
62
+ };
63
+ var isProfileRequired = (model) => {
64
+ var _a, _b;
65
+ return Boolean((_b = (_a = model == null ? void 0 : model.data) == null ? void 0 : _a.profile_structure) == null ? void 0 : _b.required);
66
+ };
67
+ var hasI18nValue = (value) => {
68
+ if (!value) return false;
69
+ return Object.values(value).some((item) => String(item || "").trim());
70
+ };
71
+ var flattenDeviceModels = (types) => {
72
+ const modelMap = /* @__PURE__ */ new Map();
73
+ types.forEach((type) => {
74
+ (type.active_models || []).forEach((model) => {
75
+ if (!modelMap.has(model.code)) {
76
+ modelMap.set(model.code, { ...model, type: model.type || type });
77
+ }
78
+ });
79
+ });
80
+ return Array.from(modelMap.values());
81
+ };
82
+ var createDeviceRow = (item, translation, profileNameMap) => {
83
+ var _a, _b, _c;
84
+ const name = translation(item.name);
85
+ const typeName = translation((_a = item.type) == null ? void 0 : _a.name) || item.type_code;
86
+ const modelName = translation((_b = item.model) == null ? void 0 : _b.name) || item.model_code;
87
+ const link = item.link || "unlinked";
88
+ const profileName = translation((_c = item.profile) == null ? void 0 : _c.name) || (item.profile_id ? profileNameMap == null ? void 0 : profileNameMap.get(item.profile_id) : "") || (item.profile_id ? String(item.profile_id) : "-");
89
+ return {
90
+ id: item.id,
91
+ name,
92
+ typeName,
93
+ modelName,
94
+ profileName,
95
+ link,
96
+ status: link === "linked" ? item.status || "offline" : "unknown",
97
+ typeCode: item.type_code,
98
+ modelCode: item.model_code,
99
+ _raw: item
100
+ };
101
+ };
102
+ var resolveWorkAreaDetail = (response) => {
103
+ const data = response == null ? void 0 : response.data;
104
+ if (Array.isArray(data)) return data[0];
105
+ return data || response;
106
+ };
107
+ var getDeleteWorkAreaCounts = (response) => {
108
+ const workArea = resolveWorkAreaDetail(response);
109
+ return {
110
+ smart: (workArea == null ? void 0 : workArea.smart_devices_count) || 0,
111
+ dumb: (workArea == null ? void 0 : workArea.dumb_devices_count) || 0,
112
+ integrated: (workArea == null ? void 0 : workArea.integrated_devices_count) || 0
113
+ };
114
+ };
115
+ // Annotate the CommonJS export names for ESM import in node:
116
+ 0 && (module.exports = {
117
+ BRAND_OPTION_SEPARATOR,
118
+ CONNECTION_TYPE_OPTIONS,
119
+ DEVICE_ICON_COLOR,
120
+ createDeviceRow,
121
+ flattenDeviceModels,
122
+ getBrandCodeFromOptionValue,
123
+ getBrandOptionValue,
124
+ getConnectionTypeLabel,
125
+ getDeleteWorkAreaCounts,
126
+ getModelConnectionTypes,
127
+ hasI18nValue,
128
+ isProfileRequired,
129
+ resolveWorkAreaDetail
130
+ });
@@ -0,0 +1,3 @@
1
+ import DevicePlanning from './devicePlanning';
2
+ import DeviceProfile from './deviceProfile';
3
+ export { DevicePlanning, DeviceProfile };
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/plus/saasDevice/index.tsx
30
+ var saasDevice_exports = {};
31
+ __export(saasDevice_exports, {
32
+ DevicePlanning: () => import_devicePlanning.default,
33
+ DeviceProfile: () => import_deviceProfile.default
34
+ });
35
+ module.exports = __toCommonJS(saasDevice_exports);
36
+ var import_devicePlanning = __toESM(require("./devicePlanning"));
37
+ var import_deviceProfile = __toESM(require("./deviceProfile"));
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ DevicePlanning,
41
+ DeviceProfile
42
+ });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VertifyEmail: (props: {
3
4
  email: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const TitleExtra: (props: any) => JSX.Element;
4
3
  export default TitleExtra;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: string[] | undefined;
@@ -98,7 +98,6 @@ var PassList = (props) => {
98
98
  unified_available_status,
99
99
  unified_messages = {},
100
100
  holder,
101
- metadata,
102
101
  ...rest
103
102
  } = item;
104
103
  const itemValue = item == null ? void 0 : item[valuePropName];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectorDemo: () => JSX.Element;
3
2
  export default SelectorDemo;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.104",
3
+ "version": "3.4.106",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,8 +76,8 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
+ "@pisell/materials": "3.3.95",
79
80
  "@pisell/utils": "3.0.2",
80
- "@pisell/materials": "3.3.94",
81
81
  "@pisell/date-picker": "3.0.4",
82
82
  "@pisell/icon": "0.0.11"
83
83
  },
package/build/lowcode.zip DELETED
Binary file
@@ -1 +0,0 @@
1
- export declare const useTranslation: () => any;
@@ -1,9 +0,0 @@
1
- import useEngineContext from "../../../hooks/useEngineContext";
2
- export var useTranslation = function useTranslation() {
3
- var _context$appHelper;
4
- var context = useEngineContext();
5
- return (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.translation) || function (val) {
6
- if (typeof val === 'string') return val;
7
- return (val === null || val === void 0 ? void 0 : val.original) || (val === null || val === void 0 ? void 0 : val.en) || '';
8
- };
9
- };
@@ -1 +0,0 @@
1
- export declare const useTranslation: () => any;