@pisell/private-materials 3.4.126 → 3.4.128

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 (265) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  11. package/es/components/appointmentBooking/index.d.ts +1 -0
  12. package/es/components/booking/addons/model.d.ts +1 -10
  13. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  14. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  15. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  16. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  17. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  18. package/es/components/booking/editBookingModal/index.js +6 -2
  19. package/es/components/booking/forms/model.d.ts +1 -10
  20. package/es/components/booking/forms/table/index.d.ts +1 -0
  21. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  22. package/es/components/booking/info/model.d.ts +1 -10
  23. package/es/components/booking/info/service/like/index.d.ts +1 -0
  24. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  25. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  26. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  27. package/es/components/booking/model.d.ts +1 -9
  28. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  29. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  30. package/es/components/booking/notes/model.d.ts +1 -10
  31. package/es/components/booking/payments/model.d.ts +1 -10
  32. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  33. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  34. package/es/components/eftpos/SettlementModal/Action.d.ts +1 -0
  35. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  36. package/es/components/eftpos/form/index.d.ts +1 -0
  37. package/es/components/eftpos/group/index.d.ts +1 -0
  38. package/es/components/eftpos/hooks.d.ts +1 -0
  39. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  40. package/es/components/eftpos/icon/device.d.ts +1 -0
  41. package/es/components/eftpos/pos.d.ts +1 -0
  42. package/es/components/eftpos/receipt/index.d.ts +1 -0
  43. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  44. package/es/components/eftposPay/amount.d.ts +1 -1
  45. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  46. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  47. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  48. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  49. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  50. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  51. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  52. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  53. package/es/components/eftposPay/device.d.ts +1 -2
  54. package/es/components/eftposPay/payo/config.d.ts +1 -0
  55. package/es/components/eftposPay/tip.d.ts +1 -0
  56. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  57. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  58. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  65. package/es/components/login/index.d.ts +1 -0
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  70. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  71. package/es/components/pay/toC/model.d.ts +1 -9
  72. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  73. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  74. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  75. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  76. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  77. package/es/components/schedules/calendar/index.d.ts +1 -0
  78. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  79. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  80. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  81. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  82. package/es/components/schedules/model.d.ts +1 -9
  83. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  84. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  85. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  88. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  89. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  90. package/es/components/schedules/products/index.d.ts +1 -0
  91. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  92. package/es/components/schedules/products/list/index.d.ts +1 -0
  93. package/es/components/schedules/resources/index.d.ts +1 -0
  94. package/es/components/schedules/resources/list/index.d.ts +1 -0
  95. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  96. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  97. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  98. package/es/components/schedules/schedules/index.d.ts +1 -0
  99. package/es/components/taxSelect/index.d.ts +1 -0
  100. package/es/hooks/usePaymentLogger.d.ts +1 -0
  101. package/es/plus/clientName/index.d.ts +1 -0
  102. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  103. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  104. package/es/plus/pisellReservation/PisellReservation.js +68 -19
  105. package/es/plus/pisellReservation/hooks/usePicoCodingOpenData.js +31 -16
  106. package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +11 -0
  107. package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.js +73 -22
  108. package/es/plus/pisellSalesGrid/serve.d.ts +10 -0
  109. package/es/plus/pisellSalesGrid/serve.js +109 -33
  110. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.js +6 -0
  111. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  112. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  113. package/es/plus/saasDevice/devicePlanning/locales/en.d.ts +4 -0
  114. package/es/plus/saasDevice/devicePlanning/locales/en.js +4 -0
  115. package/es/plus/saasDevice/devicePlanning/locales/index.d.ts +20 -0
  116. package/es/plus/saasDevice/devicePlanning/locales/ja.d.ts +4 -0
  117. package/es/plus/saasDevice/devicePlanning/locales/ja.js +4 -0
  118. package/es/plus/saasDevice/devicePlanning/locales/pt.d.ts +4 -0
  119. package/es/plus/saasDevice/devicePlanning/locales/pt.js +4 -0
  120. package/es/plus/saasDevice/devicePlanning/locales/zhCN.d.ts +4 -0
  121. package/es/plus/saasDevice/devicePlanning/locales/zhCN.js +4 -0
  122. package/es/plus/saasDevice/devicePlanning/locales/zhHk.d.ts +4 -0
  123. package/es/plus/saasDevice/devicePlanning/locales/zhHk.js +4 -0
  124. package/es/plus/saasDevice/devicePlanning/modules/deviceDetail/components/DeviceInfoPanel.js +20 -0
  125. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  126. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  127. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  128. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  129. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  130. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  131. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  132. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  133. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  134. package/es/pro/Selector/demo.d.ts +1 -0
  135. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  136. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  137. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  138. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  139. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  140. package/lib/components/appointmentBooking/index.d.ts +1 -0
  141. package/lib/components/booking/addons/model.d.ts +1 -10
  142. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  143. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  144. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  145. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  146. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  147. package/lib/components/booking/editBookingModal/index.js +4 -4
  148. package/lib/components/booking/forms/model.d.ts +1 -10
  149. package/lib/components/booking/forms/table/index.d.ts +1 -0
  150. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  151. package/lib/components/booking/info/model.d.ts +1 -10
  152. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  153. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  154. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  155. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  156. package/lib/components/booking/model.d.ts +1 -9
  157. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  158. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  159. package/lib/components/booking/notes/model.d.ts +1 -10
  160. package/lib/components/booking/payments/model.d.ts +1 -10
  161. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  162. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  163. package/lib/components/eftpos/SettlementModal/Action.d.ts +1 -0
  164. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  165. package/lib/components/eftpos/form/index.d.ts +1 -0
  166. package/lib/components/eftpos/group/index.d.ts +1 -0
  167. package/lib/components/eftpos/hooks.d.ts +1 -0
  168. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  169. package/lib/components/eftpos/icon/device.d.ts +1 -0
  170. package/lib/components/eftpos/pos.d.ts +1 -0
  171. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  172. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  173. package/lib/components/eftposPay/amount.d.ts +1 -1
  174. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  175. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  176. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  177. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  178. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  179. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  180. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  181. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  182. package/lib/components/eftposPay/device.d.ts +1 -2
  183. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  184. package/lib/components/eftposPay/tip.d.ts +1 -0
  185. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  186. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  187. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  188. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  189. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  190. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  193. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  194. package/lib/components/login/index.d.ts +1 -0
  195. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  196. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  197. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  198. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  199. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  200. package/lib/components/pay/toC/model.d.ts +1 -9
  201. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  202. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  203. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  204. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  205. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  206. package/lib/components/schedules/calendar/index.d.ts +1 -0
  207. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  208. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  209. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  210. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  211. package/lib/components/schedules/model.d.ts +1 -9
  212. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  213. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  214. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  215. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  216. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  217. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  218. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  219. package/lib/components/schedules/products/index.d.ts +1 -0
  220. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  221. package/lib/components/schedules/products/list/index.d.ts +1 -0
  222. package/lib/components/schedules/resources/index.d.ts +1 -0
  223. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  224. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  225. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  226. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  227. package/lib/components/schedules/schedules/index.d.ts +1 -0
  228. package/lib/components/taxSelect/index.d.ts +1 -0
  229. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  230. package/lib/plus/clientName/index.d.ts +1 -0
  231. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  232. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  233. package/lib/plus/pisellReservation/PisellReservation.js +63 -16
  234. package/lib/plus/pisellReservation/hooks/usePicoCodingOpenData.js +8 -2
  235. package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +11 -0
  236. package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.js +64 -12
  237. package/lib/plus/pisellSalesGrid/serve.d.ts +10 -0
  238. package/lib/plus/pisellSalesGrid/serve.js +49 -7
  239. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.js +4 -0
  240. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  241. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  242. package/lib/plus/saasDevice/devicePlanning/locales/en.d.ts +4 -0
  243. package/lib/plus/saasDevice/devicePlanning/locales/en.js +4 -0
  244. package/lib/plus/saasDevice/devicePlanning/locales/index.d.ts +20 -0
  245. package/lib/plus/saasDevice/devicePlanning/locales/ja.d.ts +4 -0
  246. package/lib/plus/saasDevice/devicePlanning/locales/ja.js +4 -0
  247. package/lib/plus/saasDevice/devicePlanning/locales/pt.d.ts +4 -0
  248. package/lib/plus/saasDevice/devicePlanning/locales/pt.js +4 -0
  249. package/lib/plus/saasDevice/devicePlanning/locales/zhCN.d.ts +4 -0
  250. package/lib/plus/saasDevice/devicePlanning/locales/zhCN.js +4 -0
  251. package/lib/plus/saasDevice/devicePlanning/locales/zhHk.d.ts +4 -0
  252. package/lib/plus/saasDevice/devicePlanning/locales/zhHk.js +4 -0
  253. package/lib/plus/saasDevice/devicePlanning/modules/deviceDetail/components/DeviceInfoPanel.js +15 -1
  254. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  255. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  256. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  257. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  258. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  259. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  260. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  261. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  262. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  263. package/lib/pro/Selector/demo.d.ts +1 -0
  264. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  265. package/package.json +2 -2
@@ -18,6 +18,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
19
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
20
  import { request } from "../../utils";
21
+ import { isWebposOsServerEnv } from '@pisell/utils';
21
22
  import dayjs from 'dayjs';
22
23
  var formatParams = function formatParams(params) {
23
24
  var orderDate = params.orderDate,
@@ -178,27 +179,90 @@ export var formatBookingResult = function formatBookingResult(data) {
178
179
  list: formatBookingData((data === null || data === void 0 ? void 0 : data.list) || [])
179
180
  });
180
181
  };
182
+
183
+ /** 相同查询参数在短时间窗内复用同一 Promise(含已完成),避免 Strict Mode 双挂载各打一遍 HTTP */
184
+ var BOOKING_LIST_RECENT_DEDUP_MS = 500;
185
+ var BOOKING_LIST_CACHE_GLOBAL = '__pisellBookingListRecentCache_v1';
186
+ function getBookingListRecentCache() {
187
+ var g = globalThis;
188
+ if (!g[BOOKING_LIST_CACHE_GLOBAL]) {
189
+ g[BOOKING_LIST_CACHE_GLOBAL] = new Map();
190
+ }
191
+ return g[BOOKING_LIST_CACHE_GLOBAL];
192
+ }
193
+
194
+ /** 与 HTTP 去重一致;供 hook effect 比对使用 */
195
+ export function getBookingListRequestCacheKey(params, options) {
196
+ var _options$abort;
197
+ return JSON.stringify({
198
+ query: formatBookingParams(params),
199
+ abort: (_options$abort = options === null || options === void 0 ? void 0 : options.abort) !== null && _options$abort !== void 0 ? _options$abort : true,
200
+ osServer: Boolean(options === null || options === void 0 ? void 0 : options.osServer)
201
+ });
202
+ }
203
+ function bookingListRequestCacheKey(params, options) {
204
+ return getBookingListRequestCacheKey(params, options);
205
+ }
181
206
  export var getBookingList = /*#__PURE__*/function () {
182
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params, options) {
183
- var _yield$request$getReq, data;
184
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
185
- while (1) switch (_context2.prev = _context2.next) {
207
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params, options) {
208
+ var cacheKey, now, bookingListRecentCache, cached, promise;
209
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
210
+ while (1) switch (_context3.prev = _context3.next) {
186
211
  case 0:
187
- _context2.next = 2;
188
- return request.getRequest().get("/shop/schedule/booking", formatBookingParams(params), _objectSpread({
189
- abort: true,
190
- fullResult: true,
191
- isShopApi: true
192
- }, options));
193
- case 2:
194
- _yield$request$getReq = _context2.sent;
195
- data = _yield$request$getReq.data;
196
- return _context2.abrupt("return", formatBookingResult(normalizeListPayload(data)));
197
- case 5:
212
+ cacheKey = bookingListRequestCacheKey(params, options);
213
+ now = Date.now();
214
+ bookingListRecentCache = getBookingListRecentCache();
215
+ if (options !== null && options !== void 0 && options.skipRecentDedup) {
216
+ _context3.next = 7;
217
+ break;
218
+ }
219
+ cached = bookingListRecentCache.get(cacheKey);
220
+ if (!(cached && now - cached.at < BOOKING_LIST_RECENT_DEDUP_MS)) {
221
+ _context3.next = 7;
222
+ break;
223
+ }
224
+ return _context3.abrupt("return", cached.promise);
225
+ case 7:
226
+ promise = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
227
+ var _yield$request$getReq, data;
228
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
229
+ while (1) switch (_context2.prev = _context2.next) {
230
+ case 0:
231
+ _context2.next = 2;
232
+ return request.getRequest().get("/shop/schedule/booking", formatBookingParams(params), _objectSpread({
233
+ abort: true,
234
+ fullResult: true,
235
+ isShopApi: true
236
+ }, options));
237
+ case 2:
238
+ _yield$request$getReq = _context2.sent;
239
+ data = _yield$request$getReq.data;
240
+ return _context2.abrupt("return", formatBookingResult(normalizeListPayload(data)));
241
+ case 5:
242
+ case "end":
243
+ return _context2.stop();
244
+ }
245
+ }, _callee2);
246
+ }))();
247
+ bookingListRecentCache.set(cacheKey, {
248
+ promise: promise,
249
+ at: now
250
+ });
251
+ _context3.prev = 9;
252
+ _context3.next = 12;
253
+ return promise;
254
+ case 12:
255
+ return _context3.abrupt("return", _context3.sent);
256
+ case 15:
257
+ _context3.prev = 15;
258
+ _context3.t0 = _context3["catch"](9);
259
+ bookingListRecentCache.delete(cacheKey);
260
+ throw _context3.t0;
261
+ case 19:
198
262
  case "end":
199
- return _context2.stop();
263
+ return _context3.stop();
200
264
  }
201
- }, _callee2);
265
+ }, _callee3, null, [[9, 15]]);
202
266
  }));
203
267
  return function getBookingList(_x3, _x4) {
204
268
  return _ref2.apply(this, arguments);
@@ -207,48 +271,60 @@ export var getBookingList = /*#__PURE__*/function () {
207
271
 
208
272
  /** 取消订单列表订阅(组件卸载时调用,与 useProducts cleanup 一致) */
209
273
  export var unsubscribeOrderQuery = /*#__PURE__*/function () {
210
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(subscriberId) {
211
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
212
- while (1) switch (_context3.prev = _context3.next) {
274
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(subscriberId) {
275
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
276
+ while (1) switch (_context4.prev = _context4.next) {
213
277
  case 0:
214
- _context3.next = 2;
278
+ if (isWebposOsServerEnv()) {
279
+ _context4.next = 2;
280
+ break;
281
+ }
282
+ return _context4.abrupt("return");
283
+ case 2:
284
+ _context4.next = 4;
215
285
  return request.getRequest().post('/shop/order/v2/list/unsubscribe', {
216
286
  subscriberId: subscriberId
217
287
  }, {
218
288
  isShopApi: true,
219
289
  osServer: true
220
290
  });
221
- case 2:
291
+ case 4:
222
292
  case "end":
223
- return _context3.stop();
293
+ return _context4.stop();
224
294
  }
225
- }, _callee3);
295
+ }, _callee4);
226
296
  }));
227
297
  return function unsubscribeOrderQuery(_x5) {
228
- return _ref3.apply(this, arguments);
298
+ return _ref4.apply(this, arguments);
229
299
  };
230
300
  }();
231
301
 
232
302
  /** 取消预约列表订阅 */
233
303
  export var unsubscribeBookingQuery = /*#__PURE__*/function () {
234
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(subscriberId) {
235
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
236
- while (1) switch (_context4.prev = _context4.next) {
304
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(subscriberId) {
305
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
306
+ while (1) switch (_context5.prev = _context5.next) {
237
307
  case 0:
238
- _context4.next = 2;
308
+ if (isWebposOsServerEnv()) {
309
+ _context5.next = 2;
310
+ break;
311
+ }
312
+ return _context5.abrupt("return");
313
+ case 2:
314
+ _context5.next = 4;
239
315
  return request.getRequest().get('/shop/schedule/booking/unsubscribe', {
240
316
  subscriberId: subscriberId
241
317
  }, {
242
318
  isShopApi: true,
243
319
  osServer: true
244
320
  });
245
- case 2:
321
+ case 4:
246
322
  case "end":
247
- return _context4.stop();
323
+ return _context5.stop();
248
324
  }
249
- }, _callee4);
325
+ }, _callee5);
250
326
  }));
251
327
  return function unsubscribeBookingQuery(_x6) {
252
- return _ref4.apply(this, arguments);
328
+ return _ref5.apply(this, arguments);
253
329
  };
254
330
  }();
@@ -89,6 +89,8 @@ export function useSalesGridData(params) {
89
89
  setSelectedRows = _useState8[1];
90
90
  var orderSubscriberIdRef = useRef(getUniqueId());
91
91
  var bookingSubscriberIdRef = useRef(getUniqueId());
92
+ /** 记录上一视角,仅在 monitor ↔ handle 实际切换时 unsubscribe,避免首次挂载发无效请求 */
93
+ var prevPerspectiveRef = useRef(null);
92
94
  var orderMutateRef = useRef(null);
93
95
  var bookingMutateRef = useRef(null);
94
96
  var requestParams = useMemo(function () {
@@ -271,12 +273,16 @@ export function useSalesGridData(params) {
271
273
 
272
274
  /**
273
275
  * 视角切换时,主动清理另一条订阅,避免离开该视角后仍接收推送。
276
+ * 首次挂载仅记录视角,不 unsubscribe(此时尚未建立过另一条订阅)。
274
277
  *
275
278
  * @example
276
279
  * // perspective = 'monitor' 时会清理 order 订阅
277
280
  * // perspective = 'handle' 时会清理 booking 订阅
278
281
  */
279
282
  useEffect(function () {
283
+ var prev = prevPerspectiveRef.current;
284
+ prevPerspectiveRef.current = perspective;
285
+ if (prev == null || prev === perspective) return;
280
286
  if (perspective === 'monitor') {
281
287
  void unsubscribeOrderQuery(orderSubscriberIdRef.current);
282
288
  return;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from './types';
2
3
  import './index.less';
3
4
  declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
@@ -166,6 +166,8 @@ declare const enText: {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': string;
167
167
  'pisell2.saas.device-planning.detail.report.field.type': string;
168
168
  'pisell2.saas.device-planning.detail.report.field.version': string;
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
169
171
  'pisell2.saas.device-planning.detail.report.field.level': string;
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -176,6 +178,8 @@ declare const enText: {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
177
179
  'pisell2.saas.device-planning.detail.report.field.used': string;
178
180
  'pisell2.saas.device-planning.detail.report.field.total': string;
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
179
183
  'pisell2.saas.device-planning.detail.report.charging': string;
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': string;
181
185
  'pisell2.saas.device-planning.edit.title': string;
@@ -166,6 +166,8 @@ var enText = {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': 'Name',
167
167
  'pisell2.saas.device-planning.detail.report.field.type': 'Type',
168
168
  'pisell2.saas.device-planning.detail.report.field.version': 'Version',
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': 'Resource Type',
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': 'Resource Version',
169
171
  'pisell2.saas.device-planning.detail.report.field.level': 'Battery Level',
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': 'Gateway',
@@ -176,6 +178,8 @@ var enText = {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': 'OS Version',
177
179
  'pisell2.saas.device-planning.detail.report.field.used': 'Used',
178
180
  'pisell2.saas.device-planning.detail.report.field.total': 'Total',
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': 'Built-in',
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': 'Hot Update',
179
183
  'pisell2.saas.device-planning.detail.report.charging': 'Charging',
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': 'Not Charging',
181
185
  'pisell2.saas.device-planning.edit.title': 'Edit Device',
@@ -167,6 +167,8 @@ declare const _default: {
167
167
  'pisell2.saas.device-planning.detail.report.field.name': string;
168
168
  'pisell2.saas.device-planning.detail.report.field.type': string;
169
169
  'pisell2.saas.device-planning.detail.report.field.version': string;
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
171
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
170
172
  'pisell2.saas.device-planning.detail.report.field.level': string;
171
173
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
172
174
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -177,6 +179,8 @@ declare const _default: {
177
179
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
178
180
  'pisell2.saas.device-planning.detail.report.field.used': string;
179
181
  'pisell2.saas.device-planning.detail.report.field.total': string;
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
183
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
180
184
  'pisell2.saas.device-planning.detail.report.charging': string;
181
185
  'pisell2.saas.device-planning.detail.report.not-charging': string;
182
186
  'pisell2.saas.device-planning.edit.title': string;
@@ -361,6 +365,8 @@ declare const _default: {
361
365
  'pisell2.saas.device-planning.detail.report.field.name': string;
362
366
  'pisell2.saas.device-planning.detail.report.field.type': string;
363
367
  'pisell2.saas.device-planning.detail.report.field.version': string;
368
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
369
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
364
370
  'pisell2.saas.device-planning.detail.report.field.level': string;
365
371
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
366
372
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -371,6 +377,8 @@ declare const _default: {
371
377
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
372
378
  'pisell2.saas.device-planning.detail.report.field.used': string;
373
379
  'pisell2.saas.device-planning.detail.report.field.total': string;
380
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
381
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
374
382
  'pisell2.saas.device-planning.detail.report.charging': string;
375
383
  'pisell2.saas.device-planning.detail.report.not-charging': string;
376
384
  'pisell2.saas.device-planning.edit.title': string;
@@ -555,6 +563,8 @@ declare const _default: {
555
563
  'pisell2.saas.device-planning.detail.report.field.name': string;
556
564
  'pisell2.saas.device-planning.detail.report.field.type': string;
557
565
  'pisell2.saas.device-planning.detail.report.field.version': string;
566
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
567
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
558
568
  'pisell2.saas.device-planning.detail.report.field.level': string;
559
569
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
560
570
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -565,6 +575,8 @@ declare const _default: {
565
575
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
566
576
  'pisell2.saas.device-planning.detail.report.field.used': string;
567
577
  'pisell2.saas.device-planning.detail.report.field.total': string;
578
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
579
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
568
580
  'pisell2.saas.device-planning.detail.report.charging': string;
569
581
  'pisell2.saas.device-planning.detail.report.not-charging': string;
570
582
  'pisell2.saas.device-planning.edit.title': string;
@@ -749,6 +761,8 @@ declare const _default: {
749
761
  'pisell2.saas.device-planning.detail.report.field.name': string;
750
762
  'pisell2.saas.device-planning.detail.report.field.type': string;
751
763
  'pisell2.saas.device-planning.detail.report.field.version': string;
764
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
765
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
752
766
  'pisell2.saas.device-planning.detail.report.field.level': string;
753
767
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
754
768
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -759,6 +773,8 @@ declare const _default: {
759
773
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
760
774
  'pisell2.saas.device-planning.detail.report.field.used': string;
761
775
  'pisell2.saas.device-planning.detail.report.field.total': string;
776
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
777
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
762
778
  'pisell2.saas.device-planning.detail.report.charging': string;
763
779
  'pisell2.saas.device-planning.detail.report.not-charging': string;
764
780
  'pisell2.saas.device-planning.edit.title': string;
@@ -943,6 +959,8 @@ declare const _default: {
943
959
  'pisell2.saas.device-planning.detail.report.field.name': string;
944
960
  'pisell2.saas.device-planning.detail.report.field.type': string;
945
961
  'pisell2.saas.device-planning.detail.report.field.version': string;
962
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
963
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
946
964
  'pisell2.saas.device-planning.detail.report.field.level': string;
947
965
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
948
966
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -953,6 +971,8 @@ declare const _default: {
953
971
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
954
972
  'pisell2.saas.device-planning.detail.report.field.used': string;
955
973
  'pisell2.saas.device-planning.detail.report.field.total': string;
974
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
975
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
956
976
  'pisell2.saas.device-planning.detail.report.charging': string;
957
977
  'pisell2.saas.device-planning.detail.report.not-charging': string;
958
978
  'pisell2.saas.device-planning.edit.title': string;
@@ -166,6 +166,8 @@ declare const jaText: {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': string;
167
167
  'pisell2.saas.device-planning.detail.report.field.type': string;
168
168
  'pisell2.saas.device-planning.detail.report.field.version': string;
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
169
171
  'pisell2.saas.device-planning.detail.report.field.level': string;
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -176,6 +178,8 @@ declare const jaText: {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
177
179
  'pisell2.saas.device-planning.detail.report.field.used': string;
178
180
  'pisell2.saas.device-planning.detail.report.field.total': string;
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
179
183
  'pisell2.saas.device-planning.detail.report.charging': string;
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': string;
181
185
  'pisell2.saas.device-planning.edit.title': string;
@@ -166,6 +166,8 @@ var jaText = {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': '名前',
167
167
  'pisell2.saas.device-planning.detail.report.field.type': 'タイプ',
168
168
  'pisell2.saas.device-planning.detail.report.field.version': 'バージョン',
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': 'リソースタイプ',
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': 'リソースバージョン',
169
171
  'pisell2.saas.device-planning.detail.report.field.level': 'バッテリー残量',
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': 'ゲートウェイ',
@@ -176,6 +178,8 @@ var jaText = {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': 'OS バージョン',
177
179
  'pisell2.saas.device-planning.detail.report.field.used': '使用済み',
178
180
  'pisell2.saas.device-planning.detail.report.field.total': '合計',
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': '内蔵',
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': 'ホットアップデート',
179
183
  'pisell2.saas.device-planning.detail.report.charging': '充電中',
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': '未充電',
181
185
  'pisell2.saas.device-planning.edit.title': 'デバイスを編集',
@@ -166,6 +166,8 @@ declare const ptText: {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': string;
167
167
  'pisell2.saas.device-planning.detail.report.field.type': string;
168
168
  'pisell2.saas.device-planning.detail.report.field.version': string;
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
169
171
  'pisell2.saas.device-planning.detail.report.field.level': string;
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -176,6 +178,8 @@ declare const ptText: {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
177
179
  'pisell2.saas.device-planning.detail.report.field.used': string;
178
180
  'pisell2.saas.device-planning.detail.report.field.total': string;
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
179
183
  'pisell2.saas.device-planning.detail.report.charging': string;
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': string;
181
185
  'pisell2.saas.device-planning.edit.title': string;
@@ -166,6 +166,8 @@ var ptText = {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': 'Nome',
167
167
  'pisell2.saas.device-planning.detail.report.field.type': 'Tipo',
168
168
  'pisell2.saas.device-planning.detail.report.field.version': 'Versão',
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': 'Tipo de recurso',
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': 'Versão do recurso',
169
171
  'pisell2.saas.device-planning.detail.report.field.level': 'Nível da bateria',
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': 'Gateway',
@@ -176,6 +178,8 @@ var ptText = {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': 'Versão do SO',
177
179
  'pisell2.saas.device-planning.detail.report.field.used': 'Usado',
178
180
  'pisell2.saas.device-planning.detail.report.field.total': 'Total',
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': 'Integrado',
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': 'Atualização dinâmica',
179
183
  'pisell2.saas.device-planning.detail.report.charging': 'A carregar',
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': 'Sem carregamento',
181
185
  'pisell2.saas.device-planning.edit.title': 'Editar dispositivo',
@@ -166,6 +166,8 @@ declare const zhCNText: {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': string;
167
167
  'pisell2.saas.device-planning.detail.report.field.type': string;
168
168
  'pisell2.saas.device-planning.detail.report.field.version': string;
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
169
171
  'pisell2.saas.device-planning.detail.report.field.level': string;
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -176,6 +178,8 @@ declare const zhCNText: {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
177
179
  'pisell2.saas.device-planning.detail.report.field.used': string;
178
180
  'pisell2.saas.device-planning.detail.report.field.total': string;
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
179
183
  'pisell2.saas.device-planning.detail.report.charging': string;
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': string;
181
185
  'pisell2.saas.device-planning.edit.title': string;
@@ -166,6 +166,8 @@ var zhCNText = {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': '名称',
167
167
  'pisell2.saas.device-planning.detail.report.field.type': '类型',
168
168
  'pisell2.saas.device-planning.detail.report.field.version': '版本',
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': '资源类型',
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': '资源版本',
169
171
  'pisell2.saas.device-planning.detail.report.field.level': '电量',
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': '网关',
@@ -176,6 +178,8 @@ var zhCNText = {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': '系统版本',
177
179
  'pisell2.saas.device-planning.detail.report.field.used': '已用',
178
180
  'pisell2.saas.device-planning.detail.report.field.total': '总计',
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': '内置',
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': '热更新',
179
183
  'pisell2.saas.device-planning.detail.report.charging': '充电中',
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': '未充电',
181
185
  'pisell2.saas.device-planning.edit.title': '编辑设备',
@@ -166,6 +166,8 @@ declare const zhHkText: {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': string;
167
167
  'pisell2.saas.device-planning.detail.report.field.type': string;
168
168
  'pisell2.saas.device-planning.detail.report.field.version': string;
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': string;
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': string;
169
171
  'pisell2.saas.device-planning.detail.report.field.level': string;
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': string;
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': string;
@@ -176,6 +178,8 @@ declare const zhHkText: {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': string;
177
179
  'pisell2.saas.device-planning.detail.report.field.used': string;
178
180
  'pisell2.saas.device-planning.detail.report.field.total': string;
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': string;
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': string;
179
183
  'pisell2.saas.device-planning.detail.report.charging': string;
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': string;
181
185
  'pisell2.saas.device-planning.edit.title': string;
@@ -166,6 +166,8 @@ var zhHkText = {
166
166
  'pisell2.saas.device-planning.detail.report.field.name': '名稱',
167
167
  'pisell2.saas.device-planning.detail.report.field.type': '類型',
168
168
  'pisell2.saas.device-planning.detail.report.field.version': '版本',
169
+ 'pisell2.saas.device-planning.detail.report.field.resource_type': '資源類型',
170
+ 'pisell2.saas.device-planning.detail.report.field.resource_version': '資源版本',
169
171
  'pisell2.saas.device-planning.detail.report.field.level': '電量',
170
172
  'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
171
173
  'pisell2.saas.device-planning.detail.report.field.gateway': '閘道',
@@ -176,6 +178,8 @@ var zhHkText = {
176
178
  'pisell2.saas.device-planning.detail.report.field.os_version': '系統版本',
177
179
  'pisell2.saas.device-planning.detail.report.field.used': '已用',
178
180
  'pisell2.saas.device-planning.detail.report.field.total': '總計',
181
+ 'pisell2.saas.device-planning.detail.report.resource-type.builtin': '內置',
182
+ 'pisell2.saas.device-planning.detail.report.resource-type.bundle': '熱更新',
179
183
  'pisell2.saas.device-planning.detail.report.charging': '充電中',
180
184
  'pisell2.saas.device-planning.detail.report.not-charging': '未充電',
181
185
  'pisell2.saas.device-planning.edit.title': '編輯設備',
@@ -19,6 +19,13 @@ var REPORT_GROUPS = [{
19
19
  key: 'name'
20
20
  }, {
21
21
  key: 'version'
22
+ }, {
23
+ key: 'resource_type',
24
+ value: function value(data, getText) {
25
+ return formatResourceType(data.resource_type, getText);
26
+ }
27
+ }, {
28
+ key: 'resource_version'
22
29
  }]
23
30
  }, {
24
31
  key: 'battery',
@@ -68,6 +75,19 @@ var isPlainObject = function isPlainObject(value) {
68
75
  var getReportText = function getReportText(getText, key) {
69
76
  return getText("pisell2.saas.device-planning.detail.report.".concat(key));
70
77
  };
78
+
79
+ /**
80
+ * 格式化资源类型
81
+ * @param value 资源类型
82
+ * @param getText 获取文本
83
+ * @returns 资源类型
84
+ */
85
+ var formatResourceType = function formatResourceType(value, getText) {
86
+ if (value === 'builtin' || value === 'bundle') {
87
+ return getReportText(getText, "resource-type.".concat(value));
88
+ }
89
+ return formatReportValue(value, getText);
90
+ };
71
91
  var formatReportValue = function formatReportValue(value, getText) {
72
92
  if (value === null || value === undefined || value === '') {
73
93
  return EMPTY_VALUE;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRStepStatus } from '../types';
2
3
  import '../index.less';
3
4
  declare const VerifyError: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VerifyingEmailLink: (props: {
3
4
  onVerifyLink: () => Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const TitleExtra: (props: any) => JSX.Element;
3
4
  export default TitleExtra;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const VariantCard: (props: any) => JSX.Element;
3
4
  export default VariantCard;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: string[] | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectorDemo: () => JSX.Element;
2
3
  export default SelectorDemo;
@@ -4,6 +4,7 @@
4
4
  * 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
5
5
  * 包括如何通过 Context 访问父组件配置
6
6
  */
7
+ /// <reference types="react" />
7
8
  export declare const BasicExample: () => JSX.Element;
8
9
  export declare const ChildrenExample: () => JSX.Element;
9
10
  export declare const CustomItemExample: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: ({ onNext, renderContactInfo }: any) => JSX.Element;
4
3
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;