@pisell/private-materials 6.2.30 → 6.3.1

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 (521) 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 -9
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/Sales/Cart/index.js +0 -1
  12. package/es/components/Sales/Summary/utils.d.ts +1 -1
  13. package/es/components/booking/addons/index.js +1 -4
  14. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  15. package/es/components/booking/components/browserSelect/index.js +1 -1
  16. package/es/components/booking/components/footer/amount.d.ts +0 -1
  17. package/es/components/booking/components/footer/amount.js +3 -15
  18. package/es/components/booking/components/footer/index.js +42 -113
  19. package/es/components/booking/components/footer/index.less +2 -3
  20. package/es/components/booking/components/footer/utils.js +23 -51
  21. package/es/components/booking/components/tabPane/index.js +5 -72
  22. package/es/components/booking/components/tabPane/index.less +1 -75
  23. package/es/components/booking/components/voucher/index.js +12 -26
  24. package/es/components/booking/components/voucher/index.less +1 -1
  25. package/es/components/booking/dashboard/index.d.ts +1 -1
  26. package/es/components/booking/dashboard/index.js +3 -10
  27. package/es/components/booking/forms/forms.js +1 -1
  28. package/es/components/booking/forms/model.js +5 -5
  29. package/es/components/booking/hooks/useQuotation.js +8 -18
  30. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  31. package/es/components/booking/info/hooks/useInfoHolder.js +12 -13
  32. package/es/components/booking/info/index.less +3 -19
  33. package/es/components/booking/info/main.js +15 -14
  34. package/es/components/booking/info/pet/index.less +1 -1
  35. package/es/components/booking/info/service/Lists.js +2 -5
  36. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  37. package/es/components/booking/info/service/index.less +1 -1
  38. package/es/components/booking/info/service/like/index.js +1 -1
  39. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  40. package/es/components/booking/info/service2/utils.d.ts +0 -4
  41. package/es/components/booking/info/service2/utils.js +2 -21
  42. package/es/components/booking/info2/index.js +18 -40
  43. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info2/service/addTimeModal/index.js +1 -2
  45. package/es/components/booking/info2/service/editService/index.js +4 -4
  46. package/es/components/booking/info2/service/index.js +6 -11
  47. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  48. package/es/components/booking/info2/utilsByBooking.d.ts +0 -1
  49. package/es/components/booking/info2/utilsByBooking.js +3 -27
  50. package/es/components/booking/locales.d.ts +0 -78
  51. package/es/components/booking/locales.js +4 -106
  52. package/es/components/booking/materiels/startTime/index.js +1 -1
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  54. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  55. package/es/components/booking/notes/addNote/index.d.ts +1 -1
  56. package/es/components/booking/notes/addNote/index.js +32 -52
  57. package/es/components/booking/notes/addNote/index.less +0 -53
  58. package/es/components/booking/notes/model.js +5 -5
  59. package/es/components/booking/payments/model.js +5 -5
  60. package/es/components/booking/utils.d.ts +2 -2
  61. package/es/components/eftposPay/amount.d.ts +1 -1
  62. package/es/components/eftposPay/device.d.ts +1 -1
  63. package/es/components/eftposPay/hooks.d.ts +2 -2
  64. package/es/components/eftposPay/store/index.d.ts +6 -6
  65. package/es/components/listComponent/index.js +5 -5
  66. package/es/components/productExtension/card/index.js +3 -3
  67. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  68. package/es/components/productExtension/fields/Forms/index.js +12 -12
  69. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  70. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  71. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  72. package/es/components/productExtension/server.js +2 -2
  73. package/es/components/productSelect/components/productGroup/index.js +4 -20
  74. package/es/components/productSelect/components/productGroup/index.less +0 -17
  75. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  76. package/es/components/schedules/calendar/index.js +4 -4
  77. package/es/components/schedules/calendar/serve.js +2 -2
  78. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  79. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  80. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  81. package/es/components/schedules/components/ResourceList/index.js +1 -1
  82. package/es/components/schedules/components/Search/index.js +5 -5
  83. package/es/components/schedules/model.js +5 -5
  84. package/es/components/schedules/openHours/index.js +1 -1
  85. package/es/components/schedules/openHours/serve.js +2 -2
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  88. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  89. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  90. package/es/components/schedules/products/serve.js +2 -2
  91. package/es/components/schedules/products/utils.js +5 -5
  92. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  93. package/es/components/schedules/resources/detail/index.js +10 -10
  94. package/es/components/schedules/resources/list/index.js +2 -2
  95. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  96. package/es/components/schedules/resources/serve.js +2 -2
  97. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  98. package/es/components/schedules/utils.d.ts +1 -1
  99. package/es/components/schedules/utils.js +4 -4
  100. package/es/components/selectModal/index.js +2 -2
  101. package/es/components/shoppingCart/components/Cart/Product.js +7 -46
  102. package/es/components/shoppingCart/components/Cart/index.less +1 -15
  103. package/es/components/shoppingCart/type.d.ts +0 -1
  104. package/es/components/subTotal/index.less +1 -1
  105. package/es/components/ticketBooking/components/addServiceVariant/addService.js +291 -158
  106. package/es/components/ticketBooking/components/ticketBooking/index.js +34 -214
  107. package/es/components/ticketBooking/components/ticketBooking/index.less +1 -29
  108. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  109. package/es/components/ticketBooking/components/timeBar/index.js +15 -19
  110. package/es/components/ticketBooking/index.js +3 -21
  111. package/es/components/ticketBooking/index.less +1 -1
  112. package/es/components/ticketBooking/locales.d.ts +3 -9
  113. package/es/components/ticketBooking/locales.js +3 -9
  114. package/es/components/ticketBooking/serve.js +11 -11
  115. package/es/components/ticketBooking/utils/index.d.ts +4 -39
  116. package/es/components/ticketBooking/utils/index.js +28 -109
  117. package/es/hooks/useComponents.js +1 -1
  118. package/es/index.d.ts +0 -4
  119. package/es/index.js +1 -5
  120. package/es/utils/index.d.ts +1 -1
  121. package/lib/components/Sales/Cart/index.js +0 -1
  122. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  123. package/lib/components/booking/addons/index.js +1 -4
  124. package/lib/components/booking/components/footer/amount.d.ts +0 -1
  125. package/lib/components/booking/components/footer/amount.js +3 -5
  126. package/lib/components/booking/components/footer/index.js +23 -96
  127. package/lib/components/booking/components/footer/index.less +2 -3
  128. package/lib/components/booking/components/footer/utils.js +12 -37
  129. package/lib/components/booking/components/tabPane/index.js +4 -57
  130. package/lib/components/booking/components/tabPane/index.less +1 -75
  131. package/lib/components/booking/components/voucher/index.js +11 -23
  132. package/lib/components/booking/components/voucher/index.less +1 -1
  133. package/lib/components/booking/dashboard/index.d.ts +1 -1
  134. package/lib/components/booking/dashboard/index.js +2 -7
  135. package/lib/components/booking/forms/forms.js +1 -1
  136. package/lib/components/booking/hooks/useQuotation.js +2 -4
  137. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  138. package/lib/components/booking/info/hooks/useInfoHolder.js +6 -12
  139. package/lib/components/booking/info/index.less +3 -19
  140. package/lib/components/booking/info/main.js +5 -12
  141. package/lib/components/booking/info/pet/index.less +1 -1
  142. package/lib/components/booking/info/service/Lists.js +2 -6
  143. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  144. package/lib/components/booking/info/service/index.less +1 -1
  145. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  146. package/lib/components/booking/info/service2/utils.d.ts +0 -4
  147. package/lib/components/booking/info/service2/utils.js +2 -23
  148. package/lib/components/booking/info2/index.js +9 -30
  149. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  150. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
  151. package/lib/components/booking/info2/service/editService/index.js +3 -3
  152. package/lib/components/booking/info2/service/index.js +6 -6
  153. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  154. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -1
  155. package/lib/components/booking/info2/utilsByBooking.js +4 -24
  156. package/lib/components/booking/locales.d.ts +0 -78
  157. package/lib/components/booking/locales.js +4 -100
  158. package/lib/components/booking/notes/addNote/index.d.ts +1 -1
  159. package/lib/components/booking/notes/addNote/index.js +23 -41
  160. package/lib/components/booking/notes/addNote/index.less +0 -53
  161. package/lib/components/booking/utils.d.ts +2 -2
  162. package/lib/components/eftposPay/amount.d.ts +1 -1
  163. package/lib/components/eftposPay/device.d.ts +1 -1
  164. package/lib/components/eftposPay/hooks.d.ts +2 -2
  165. package/lib/components/eftposPay/store/index.d.ts +6 -6
  166. package/lib/components/productSelect/components/productGroup/index.js +3 -16
  167. package/lib/components/productSelect/components/productGroup/index.less +0 -17
  168. package/lib/components/schedules/utils.d.ts +1 -1
  169. package/lib/components/schedules/utils.js +1 -1
  170. package/lib/components/shoppingCart/components/Cart/Product.js +9 -45
  171. package/lib/components/shoppingCart/components/Cart/index.less +1 -15
  172. package/lib/components/shoppingCart/type.d.ts +0 -1
  173. package/lib/components/subTotal/index.less +1 -1
  174. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +185 -45
  175. package/lib/components/ticketBooking/components/ticketBooking/index.js +81 -233
  176. package/lib/components/ticketBooking/components/ticketBooking/index.less +1 -29
  177. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  178. package/lib/components/ticketBooking/components/timeBar/index.js +8 -15
  179. package/lib/components/ticketBooking/index.js +4 -31
  180. package/lib/components/ticketBooking/index.less +1 -1
  181. package/lib/components/ticketBooking/locales.d.ts +3 -9
  182. package/lib/components/ticketBooking/locales.js +3 -9
  183. package/lib/components/ticketBooking/serve.js +11 -11
  184. package/lib/components/ticketBooking/utils/index.d.ts +4 -39
  185. package/lib/components/ticketBooking/utils/index.js +30 -69
  186. package/lib/index.d.ts +0 -4
  187. package/lib/index.js +0 -12
  188. package/lib/utils/index.d.ts +1 -1
  189. package/package.json +25 -25
  190. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  191. package/es/components/booking/components/actionButtons/index.js +0 -486
  192. package/es/components/booking/components/actionButtons/index.less +0 -215
  193. package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
  194. package/es/components/booking/components/clearCartModal/index.js +0 -50
  195. package/es/components/booking/components/clearCartModal/index.less +0 -109
  196. package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
  197. package/es/components/booking/components/customiseItemModal/index.js +0 -298
  198. package/es/components/booking/components/customiseItemModal/index.less +0 -606
  199. package/es/components/booking/components/voucherModal/index.d.ts +0 -19
  200. package/es/components/booking/components/voucherModal/index.js +0 -47
  201. package/es/components/booking/components/voucherModal/index.less +0 -23
  202. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  203. package/es/components/booking/info2/cartClientCard/index.js +0 -343
  204. package/es/components/booking/info2/cartClientCard/index.less +0 -6
  205. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  206. package/es/components/booking/info2/cartClientCard/locales.js +0 -26
  207. package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
  208. package/es/components/booking/info2/cartClientCard/types.js +0 -1
  209. package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  210. package/es/components/booking/info2/cartClientCard/utils.js +0 -7
  211. package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  212. package/es/components/booking/info2/service/editNormalService/index.js +0 -67
  213. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  214. package/es/components/ticketBooking/components/addServiceVariant/utils.js +0 -191
  215. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  216. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -33
  217. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
  218. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  219. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -213
  220. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
  221. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  222. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -79
  223. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  224. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +0 -25
  225. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  226. package/es/components/ticketBooking/components/bookingDataPanel/index.js +0 -74
  227. package/es/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
  228. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  229. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -71
  230. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  231. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  232. package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  233. package/es/components/ticketBooking/components/floatButtons/index.js +0 -19
  234. package/es/components/ticketBooking/components/floatButtons/index.less +0 -17
  235. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  236. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -5
  237. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  238. package/es/components/ticketBooking/hooks/pisellos/index.js +0 -3
  239. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  240. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -247
  241. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  242. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +0 -52
  243. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
  244. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -30
  245. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
  246. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -29
  247. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  248. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -49
  249. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  250. package/es/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -20
  251. package/es/hooks/useToast.d.ts +0 -2
  252. package/es/hooks/useToast.js +0 -9
  253. package/es/hooks/useTranslationOriginal.d.ts +0 -1
  254. package/es/hooks/useTranslationOriginal.js +0 -10
  255. package/es/plus/clientCard/index.d.ts +0 -7
  256. package/es/plus/clientCard/index.js +0 -452
  257. package/es/plus/clientCard/index.less +0 -536
  258. package/es/plus/clientCard/line/index.d.ts +0 -9
  259. package/es/plus/clientCard/line/index.js +0 -157
  260. package/es/plus/clientCard/line/index.less +0 -142
  261. package/es/plus/clientCard/locales.d.ts +0 -18
  262. package/es/plus/clientCard/locales.js +0 -17
  263. package/es/plus/clientCard/types.d.ts +0 -126
  264. package/es/plus/clientCard/types.js +0 -1
  265. package/es/plus/clientCard/utils.d.ts +0 -8
  266. package/es/plus/clientCard/utils.js +0 -59
  267. package/es/plus/clientName/index.d.ts +0 -4
  268. package/es/plus/clientName/index.js +0 -18
  269. package/es/plus/clientName/index.less +0 -10
  270. package/es/plus/clientName/type.d.ts +0 -13
  271. package/es/plus/clientName/type.js +0 -1
  272. package/es/plus/clientName/utils.d.ts +0 -2
  273. package/es/plus/clientName/utils.js +0 -18
  274. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  275. package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
  276. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  277. package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
  278. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  279. package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
  280. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  281. package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
  282. package/es/plus/clinetSearch/Add/index.d.ts +0 -18
  283. package/es/plus/clinetSearch/Add/index.js +0 -212
  284. package/es/plus/clinetSearch/Add/index.less +0 -30
  285. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  286. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
  287. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  288. package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
  289. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  290. package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
  291. package/es/plus/clinetSearch/index.d.ts +0 -18
  292. package/es/plus/clinetSearch/index.js +0 -214
  293. package/es/plus/clinetSearch/index.less +0 -91
  294. package/es/plus/clinetSearch/locales.d.ts +0 -102
  295. package/es/plus/clinetSearch/locales.js +0 -101
  296. package/es/plus/clinetSearch/serve.d.ts +0 -1
  297. package/es/plus/clinetSearch/serve.js +0 -31
  298. package/es/plus/clinetSearch/types.d.ts +0 -49
  299. package/es/plus/clinetSearch/types.js +0 -1
  300. package/es/plus/noteModal/AddTempModal.d.ts +0 -7
  301. package/es/plus/noteModal/AddTempModal.js +0 -64
  302. package/es/plus/noteModal/index.d.ts +0 -4
  303. package/es/plus/noteModal/index.js +0 -199
  304. package/es/plus/noteModal/index.less +0 -168
  305. package/es/plus/noteModal/locales.d.ts +0 -33
  306. package/es/plus/noteModal/locales.js +0 -32
  307. package/es/plus/noteModal/types.d.ts +0 -17
  308. package/es/plus/noteModal/types.js +0 -1
  309. package/es/pro/comprehensiveSearch/camera.svg +0 -4
  310. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  311. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
  312. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  313. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
  314. package/es/pro/comprehensiveSearch/index.d.ts +0 -9
  315. package/es/pro/comprehensiveSearch/index.js +0 -342
  316. package/es/pro/comprehensiveSearch/index.less +0 -323
  317. package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
  318. package/es/pro/comprehensiveSearch/locales.js +0 -17
  319. package/es/pro/comprehensiveSearch/types.d.ts +0 -31
  320. package/es/pro/comprehensiveSearch/types.js +0 -1
  321. package/es/pro/numberKeyboard/index.d.ts +0 -28
  322. package/es/pro/numberKeyboard/index.js +0 -155
  323. package/es/pro/numberKeyboard/index.less +0 -25
  324. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  325. package/es/pro/numberKeyboard/locales.js +0 -11
  326. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  327. package/es/pro/pisellNumberSelector/example.js +0 -68
  328. package/es/pro/pisellNumberSelector/index.d.ts +0 -26
  329. package/es/pro/pisellNumberSelector/index.js +0 -250
  330. package/es/pro/pisellNumberSelector/index.less +0 -193
  331. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  332. package/es/pro/pisellPhoneKeyboard/index.js +0 -211
  333. package/es/pro/pisellPhoneKeyboard/index.less +0 -157
  334. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  335. package/es/pro/pisellPhoneKeyboard/locales.js +0 -11
  336. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  337. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
  338. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
  339. package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  340. package/es/pro/pisellPriceKeyboardModal/index.js +0 -1
  341. package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  342. package/es/pro/pisellPriceKeyboardModal/types.js +0 -1
  343. package/es/pro/pisellPriceRadio/index.d.ts +0 -26
  344. package/es/pro/pisellPriceRadio/index.js +0 -113
  345. package/es/pro/pisellPriceRadio/index.less +0 -158
  346. package/es/pro/skuDetailModal/index.d.ts +0 -5
  347. package/es/pro/skuDetailModal/index.js +0 -352
  348. package/es/pro/skuDetailModal/index.less +0 -236
  349. package/es/pro/skuDetailModal/locales.d.ts +0 -48
  350. package/es/pro/skuDetailModal/locales.js +0 -47
  351. package/es/pro/skuDetailModal/types.d.ts +0 -347
  352. package/es/pro/skuDetailModal/types.js +0 -1
  353. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  354. package/lib/components/booking/components/actionButtons/index.js +0 -386
  355. package/lib/components/booking/components/actionButtons/index.less +0 -215
  356. package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
  357. package/lib/components/booking/components/clearCartModal/index.js +0 -80
  358. package/lib/components/booking/components/clearCartModal/index.less +0 -109
  359. package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
  360. package/lib/components/booking/components/customiseItemModal/index.js +0 -285
  361. package/lib/components/booking/components/customiseItemModal/index.less +0 -606
  362. package/lib/components/booking/components/voucherModal/index.d.ts +0 -19
  363. package/lib/components/booking/components/voucherModal/index.js +0 -83
  364. package/lib/components/booking/components/voucherModal/index.less +0 -23
  365. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  366. package/lib/components/booking/info2/cartClientCard/index.js +0 -298
  367. package/lib/components/booking/info2/cartClientCard/index.less +0 -6
  368. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  369. package/lib/components/booking/info2/cartClientCard/locales.js +0 -50
  370. package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
  371. package/lib/components/booking/info2/cartClientCard/types.js +0 -17
  372. package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  373. package/lib/components/booking/info2/cartClientCard/utils.js +0 -37
  374. package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  375. package/lib/components/booking/info2/service/editNormalService/index.js +0 -100
  376. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  377. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +0 -174
  378. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  379. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -75
  380. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
  381. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  382. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -210
  383. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
  384. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  385. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -105
  386. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  387. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +0 -57
  388. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  389. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +0 -113
  390. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
  391. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  392. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -84
  393. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  394. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  395. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  396. package/lib/components/ticketBooking/components/floatButtons/index.js +0 -52
  397. package/lib/components/ticketBooking/components/floatButtons/index.less +0 -17
  398. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  399. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -33
  400. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  401. package/lib/components/ticketBooking/hooks/pisellos/index.js +0 -27
  402. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  403. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -147
  404. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  405. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -47
  406. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
  407. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -64
  408. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
  409. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -65
  410. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  411. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -83
  412. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  413. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -44
  414. package/lib/hooks/useToast.d.ts +0 -2
  415. package/lib/hooks/useToast.js +0 -42
  416. package/lib/hooks/useTranslationOriginal.d.ts +0 -1
  417. package/lib/hooks/useTranslationOriginal.js +0 -42
  418. package/lib/plus/clientCard/index.d.ts +0 -7
  419. package/lib/plus/clientCard/index.js +0 -442
  420. package/lib/plus/clientCard/index.less +0 -536
  421. package/lib/plus/clientCard/line/index.d.ts +0 -9
  422. package/lib/plus/clientCard/line/index.js +0 -153
  423. package/lib/plus/clientCard/line/index.less +0 -142
  424. package/lib/plus/clientCard/locales.d.ts +0 -18
  425. package/lib/plus/clientCard/locales.js +0 -41
  426. package/lib/plus/clientCard/types.d.ts +0 -126
  427. package/lib/plus/clientCard/types.js +0 -17
  428. package/lib/plus/clientCard/utils.d.ts +0 -8
  429. package/lib/plus/clientCard/utils.js +0 -75
  430. package/lib/plus/clientName/index.d.ts +0 -4
  431. package/lib/plus/clientName/index.js +0 -53
  432. package/lib/plus/clientName/index.less +0 -10
  433. package/lib/plus/clientName/type.d.ts +0 -13
  434. package/lib/plus/clientName/type.js +0 -17
  435. package/lib/plus/clientName/utils.d.ts +0 -2
  436. package/lib/plus/clientName/utils.js +0 -43
  437. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  438. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
  439. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  440. package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
  441. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  442. package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
  443. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  444. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
  445. package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
  446. package/lib/plus/clinetSearch/Add/index.js +0 -243
  447. package/lib/plus/clinetSearch/Add/index.less +0 -30
  448. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  449. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
  450. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  451. package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
  452. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  453. package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
  454. package/lib/plus/clinetSearch/index.d.ts +0 -18
  455. package/lib/plus/clinetSearch/index.js +0 -205
  456. package/lib/plus/clinetSearch/index.less +0 -91
  457. package/lib/plus/clinetSearch/locales.d.ts +0 -102
  458. package/lib/plus/clinetSearch/locales.js +0 -125
  459. package/lib/plus/clinetSearch/serve.d.ts +0 -1
  460. package/lib/plus/clinetSearch/serve.js +0 -33
  461. package/lib/plus/clinetSearch/types.d.ts +0 -49
  462. package/lib/plus/clinetSearch/types.js +0 -17
  463. package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
  464. package/lib/plus/noteModal/AddTempModal.js +0 -95
  465. package/lib/plus/noteModal/index.d.ts +0 -4
  466. package/lib/plus/noteModal/index.js +0 -199
  467. package/lib/plus/noteModal/index.less +0 -168
  468. package/lib/plus/noteModal/locales.d.ts +0 -33
  469. package/lib/plus/noteModal/locales.js +0 -56
  470. package/lib/plus/noteModal/types.d.ts +0 -17
  471. package/lib/plus/noteModal/types.js +0 -17
  472. package/lib/pro/comprehensiveSearch/camera.svg +0 -4
  473. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  474. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
  475. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  476. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
  477. package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
  478. package/lib/pro/comprehensiveSearch/index.js +0 -259
  479. package/lib/pro/comprehensiveSearch/index.less +0 -323
  480. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
  481. package/lib/pro/comprehensiveSearch/locales.js +0 -41
  482. package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
  483. package/lib/pro/comprehensiveSearch/types.js +0 -17
  484. package/lib/pro/numberKeyboard/index.d.ts +0 -28
  485. package/lib/pro/numberKeyboard/index.js +0 -182
  486. package/lib/pro/numberKeyboard/index.less +0 -25
  487. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  488. package/lib/pro/numberKeyboard/locales.js +0 -35
  489. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  490. package/lib/pro/pisellNumberSelector/example.js +0 -93
  491. package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
  492. package/lib/pro/pisellNumberSelector/index.js +0 -270
  493. package/lib/pro/pisellNumberSelector/index.less +0 -193
  494. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  495. package/lib/pro/pisellPhoneKeyboard/index.js +0 -220
  496. package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
  497. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  498. package/lib/pro/pisellPhoneKeyboard/locales.js +0 -35
  499. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  500. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
  501. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
  502. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  503. package/lib/pro/pisellPriceKeyboardModal/index.js +0 -35
  504. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  505. package/lib/pro/pisellPriceKeyboardModal/types.js +0 -17
  506. package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
  507. package/lib/pro/pisellPriceRadio/index.js +0 -130
  508. package/lib/pro/pisellPriceRadio/index.less +0 -158
  509. package/lib/pro/skuDetailModal/index.d.ts +0 -5
  510. package/lib/pro/skuDetailModal/index.js +0 -311
  511. package/lib/pro/skuDetailModal/index.less +0 -236
  512. package/lib/pro/skuDetailModal/locales.d.ts +0 -48
  513. package/lib/pro/skuDetailModal/locales.js +0 -71
  514. package/lib/pro/skuDetailModal/types.d.ts +0 -347
  515. package/lib/pro/skuDetailModal/types.js +0 -17
  516. package/lowcode/client-card/fragments/cardStyle.ts +0 -63
  517. package/lowcode/client-card/fragments/nameStyle.ts +0 -34
  518. package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
  519. package/lowcode/client-card/fragments/tagConfig.ts +0 -88
  520. package/lowcode/client-card/meta.ts +0 -337
  521. package/lowcode/comprehensive-search/meta.ts +0 -261
@@ -1,142 +0,0 @@
1
- // Line类型特有样式 - 行内布局
2
- .pisell-client-card--line {
3
- padding: 8px 12px;
4
- border: 1px solid #e5e7eb;
5
- border-radius: 6px;
6
- background: #ffffff;
7
-
8
- // 内容容器 - 水平布局
9
- .pisell-client-card__content {
10
- display: flex;
11
- align-items: center;
12
- gap: 12px;
13
- width: 100%;
14
- min-width: 0; // 允许flex子元素收缩
15
- }
16
-
17
- // 插槽容器
18
- .pisell-client-card__slot-left {
19
- display: flex;
20
- align-items: center;
21
- flex-shrink: 0;
22
- }
23
-
24
- .pisell-client-card__slot-right {
25
- display: flex;
26
- align-items: center;
27
- flex-shrink: 0;
28
- }
29
-
30
- // 头像样式
31
- .pisell-client-card__avatar-wrapper {
32
- position: relative;
33
- flex-shrink: 0; // 头像不收缩
34
- }
35
-
36
- .pisell-client-card__avatar {
37
- border: 1px solid #e5e7eb;
38
-
39
- .ant-avatar-string {
40
- font-weight: 600;
41
- font-size: 12px;
42
- }
43
- }
44
-
45
- // 状态指示器
46
- .pisell-client-card__status-indicator {
47
- position: absolute;
48
- top: -2px;
49
- right: -2px;
50
- width: 8px;
51
- height: 8px;
52
- border-radius: 50%;
53
- border: 2px solid #ffffff;
54
- background-color: #17B26A;
55
- }
56
-
57
- // 客户名称样式
58
- .pisell-client-card__name--line {
59
- font-size: 14px;
60
- font-weight: 500;
61
- color: #1f2937;
62
- white-space: nowrap;
63
- overflow: hidden;
64
- text-overflow: ellipsis;
65
- flex-shrink: 1;
66
- min-width: 0;
67
- }
68
-
69
- // 联系方式样式
70
- .pisell-client-card__contact--line {
71
- font-size: 13px;
72
- color: #6b7280;
73
- white-space: nowrap;
74
- overflow: hidden;
75
- text-overflow: ellipsis;
76
- flex-shrink: 1;
77
- min-width: 0;
78
- }
79
-
80
- // 标签容器样式
81
- .pisell-client-card__tags--line {
82
- display: flex;
83
- gap: 6px;
84
- flex-shrink: 0; // 标签不收缩
85
- align-items: center;
86
-
87
- .pisell-client-card__tag {
88
- white-space: nowrap;
89
- }
90
- }
91
-
92
- // 垂直布局样式
93
- &.pisell-client-card--vertical {
94
- .pisell-client-card__content {
95
- flex-direction: column;
96
- align-items: center;
97
- text-align: center;
98
- gap: 16px;
99
- }
100
-
101
- .pisell-client-card__name--line {
102
- text-align: center;
103
- }
104
-
105
- .pisell-client-card__contact--line {
106
- text-align: center;
107
- }
108
-
109
- .pisell-client-card__tags--line {
110
- justify-content: center;
111
- flex-wrap: wrap;
112
- }
113
- }
114
-
115
- // Line类型空状态样式
116
- &.pisell-client-card--empty {
117
- cursor: pointer;
118
- justify-content: center;
119
- align-items: center;
120
- border-style: dashed;
121
- border-color: #d9d9d9;
122
- background: #fafafa;
123
-
124
- &:hover {
125
- border-color: #1890ff;
126
- background: #f0f8ff;
127
- }
128
-
129
- .pisell-client-card__empty-title {
130
- font-size: 14px;
131
- font-weight: 600;
132
- color: #374151;
133
- margin: 0;
134
- }
135
-
136
- .pisell-client-card__empty-subtitle {
137
- font-size: 12px;
138
- color: #6b7280;
139
- margin: 0;
140
- }
141
- }
142
- }
@@ -1,18 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.add-client': string;
4
- 'pisell2.text.change-client': string;
5
- 'pisell2.text.remove-client': string;
6
- };
7
- 'zh-CN': {
8
- 'pisell2.text.add-client': string;
9
- 'pisell2.text.change-client': string;
10
- 'pisell2.text.remove-client': string;
11
- };
12
- 'zh-HK': {
13
- 'pisell2.text.add-client': string;
14
- 'pisell2.text.change-client': string;
15
- 'pisell2.text.remove-client': string;
16
- };
17
- };
18
- export default _default;
@@ -1,41 +0,0 @@
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/clientCard/locales.ts
20
- var locales_exports = {};
21
- __export(locales_exports, {
22
- default: () => locales_default
23
- });
24
- module.exports = __toCommonJS(locales_exports);
25
- var locales_default = {
26
- en: {
27
- "pisell2.text.add-client": "Add client",
28
- "pisell2.text.change-client": "Change Client",
29
- "pisell2.text.remove-client": " Remove Client"
30
- },
31
- "zh-CN": {
32
- "pisell2.text.add-client": "添加客户",
33
- "pisell2.text.change-client": "更换客户",
34
- "pisell2.text.remove-client": "移除客戶"
35
- },
36
- "zh-HK": {
37
- "pisell2.text.add-client": "新增客戶",
38
- "pisell2.text.change-client": "更換客戶",
39
- "pisell2.text.remove-client": "移除客户"
40
- }
41
- };
@@ -1,126 +0,0 @@
1
- import React from 'react';
2
- export interface ClientData {
3
- id: number;
4
- shop_id: number;
5
- display_name?: string;
6
- nickname?: string;
7
- email?: string;
8
- phone?: string;
9
- country_calling_code?: string;
10
- channel?: string;
11
- created_at: string;
12
- updated_at: string;
13
- waiver_form?: any;
14
- avatar?: string;
15
- birthday?: string;
16
- address?: string;
17
- tags?: string[];
18
- [key: string]: any;
19
- }
20
- export declare type CardType = 'b1' | 'b2' | 'b5' | 'b9';
21
- export declare type Direction = 'horizontal' | 'vertical';
22
- export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
23
- export declare type AvatarShape = 'circle' | 'square';
24
- export interface AvatarConfig {
25
- icon?: string;
26
- shape?: AvatarShape;
27
- borderRadius?: number | string;
28
- size?: AvatarSize;
29
- useTextAvatar?: boolean;
30
- children?: string;
31
- }
32
- export interface StatusConfig {
33
- color?: string;
34
- }
35
- export interface NameStyle {
36
- fontSize?: number | string;
37
- fontWeight?: number | string;
38
- color?: string;
39
- textDecoration?: string;
40
- }
41
- export interface TagItem {
42
- children: string;
43
- color: string;
44
- }
45
- export interface TagConfig {
46
- placement?: 'separate' | 'inline';
47
- flexWrap?: 'nowrap' | 'wrap';
48
- gap?: number | string;
49
- }
50
- export interface ExtraField {
51
- label?: string;
52
- value?: string;
53
- isShowLabel?: boolean;
54
- isShowValue?: boolean;
55
- icon?: string;
56
- iconSize?: number;
57
- iconColor?: string;
58
- }
59
- export interface Slots {
60
- top?: React.ReactNode;
61
- bottom?: React.ReactNode;
62
- left?: React.ReactNode;
63
- right?: React.ReactNode;
64
- }
65
- export interface StyleConfig {
66
- width?: number | string;
67
- border?: 'solid' | 'unset';
68
- borderWidth?: number | string;
69
- borderColor?: string;
70
- borderRadius?: number | string;
71
- padding?: number | string;
72
- [key: string]: any;
73
- }
74
- export interface FieldNames {
75
- id?: string | ((data: any) => any);
76
- name?: string | ((data: any) => any);
77
- cover?: string | ((data: any) => any);
78
- phone?: string | ((data: any) => any);
79
- email?: string | ((data: any) => any);
80
- birthday?: string | ((data: any) => any);
81
- address?: string | ((data: any) => any);
82
- tags?: string | ((data: any) => any);
83
- [key: string]: string | ((data: any) => any) | undefined;
84
- }
85
- export interface DisplayConfig {
86
- isShowAvatar?: boolean;
87
- isShowName?: boolean;
88
- isShowPhone?: boolean;
89
- isShowEmail?: boolean;
90
- isShowBirthday?: boolean;
91
- isShowAddress?: boolean;
92
- isShowTag?: boolean;
93
- isShowStatus?: boolean;
94
- }
95
- export interface ClientCardProps extends DisplayConfig {
96
- type?: CardType;
97
- direction?: Direction;
98
- dataSource?: ClientData | any;
99
- fieldNames?: FieldNames;
100
- style?: StyleConfig;
101
- horizontalGap?: number | string;
102
- verticalGap?: number | string;
103
- avatar?: AvatarConfig;
104
- status?: StatusConfig;
105
- defaultName?: string;
106
- nameStyle?: NameStyle;
107
- tags?: Array<TagItem | string>;
108
- tag?: TagConfig;
109
- extraFields?: ExtraField[];
110
- slots?: Slots;
111
- onAddClient?: () => void;
112
- onChangeClient?: (data: ClientData) => void;
113
- onRemoveClient?: (data: ClientData) => void;
114
- onViewClient?: (data: ClientData) => void;
115
- }
116
- export interface ProcessedClientData {
117
- id: any;
118
- name: string;
119
- cover?: string;
120
- phone?: string;
121
- email?: string;
122
- birthday?: string;
123
- address?: string;
124
- tags?: string[];
125
- [key: string]: any;
126
- }
@@ -1,17 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
-
15
- // src/plus/clientCard/types.ts
16
- var types_exports = {};
17
- module.exports = __toCommonJS(types_exports);
@@ -1,8 +0,0 @@
1
- interface FieldMapping<T = any, R = any> {
2
- [key: string]: string | ((data: T) => R) | undefined;
3
- }
4
- export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
5
- export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
6
- export declare const getAvatarText: (name: string) => string;
7
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
8
- export {};
@@ -1,75 +0,0 @@
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/clientCard/utils.ts
20
- var utils_exports = {};
21
- __export(utils_exports, {
22
- getAvatarText: () => getAvatarText,
23
- getFieldValue: () => getFieldValue,
24
- isWalkIn: () => isWalkIn
25
- });
26
- module.exports = __toCommonJS(utils_exports);
27
- var import_lodash = require("lodash");
28
- function getFieldValue(data, fieldKey, mapping) {
29
- if (!fieldKey || typeof fieldKey !== "string") {
30
- console.warn("getFieldValue: fieldKey must be a non-empty string");
31
- return void 0;
32
- }
33
- if (!data || typeof data !== "object") {
34
- console.warn("getFieldValue: data must be a valid object");
35
- return void 0;
36
- }
37
- const fieldMapping = mapping || {};
38
- const mappingRule = fieldMapping[fieldKey];
39
- try {
40
- if (typeof mappingRule === "function") {
41
- return mappingRule(data);
42
- }
43
- if (typeof mappingRule === "string") {
44
- return (0, import_lodash.get)(data, mappingRule);
45
- }
46
- return (0, import_lodash.get)(data, fieldKey);
47
- } catch (error) {
48
- console.error(
49
- `getFieldValue: Error processing field '${fieldKey}':`,
50
- error
51
- );
52
- return void 0;
53
- }
54
- }
55
- var getAvatarText = (name) => {
56
- if (!name) return "";
57
- const words = name.trim().split(/\s+/);
58
- const initials = words.slice(0, 2).map((word) => word.charAt(0).toUpperCase()).join("");
59
- return initials;
60
- };
61
- var isWalkIn = (customer_id) => {
62
- if (customer_id === void 0) {
63
- return true;
64
- }
65
- if (typeof customer_id === "string") {
66
- return ["", "0", "1"].includes(customer_id);
67
- }
68
- return [0, 1].includes(customer_id);
69
- };
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {
72
- getAvatarText,
73
- getFieldValue,
74
- isWalkIn
75
- });
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { IClientNameProps } from './type';
3
- declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
4
- export default ClientName;
@@ -1,53 +0,0 @@
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/clientName/index.tsx
30
- var clientName_exports = {};
31
- __export(clientName_exports, {
32
- default: () => clientName_default
33
- });
34
- module.exports = __toCommonJS(clientName_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_classnames = __toESM(require("classnames"));
37
- var import_index = require("./index.less");
38
- var import_utils = require("./utils");
39
- var ClientName = ({ className, dataSource, style }) => {
40
- const name = (0, import_react.useMemo)(() => {
41
- return (0, import_utils.getClientName)(dataSource);
42
- }, [dataSource]);
43
- if (!dataSource) return null;
44
- return /* @__PURE__ */ import_react.default.createElement(
45
- "div",
46
- {
47
- className: (0, import_classnames.default)("pisell-client-name", className),
48
- style: style || {}
49
- },
50
- name
51
- );
52
- };
53
- var clientName_default = ClientName;
@@ -1,10 +0,0 @@
1
- .pisell-client-name {
2
- color: var(--Base-Black, #000);
3
- font-size: 16px;
4
- font-style: normal;
5
- font-weight: 600;
6
- line-height: 20px;
7
- white-space: nowrap;
8
- overflow: hidden;
9
- text-overflow: ellipsis;
10
- }
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type ClientData = {
3
- display_name?: string;
4
- nickname?: string;
5
- first_name?: string;
6
- last_name?: string;
7
- [key: string]: any;
8
- };
9
- export interface IClientNameProps {
10
- dataSource?: string | ClientData | null;
11
- className?: string;
12
- style?: React.CSSProperties;
13
- }
@@ -1,17 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
-
15
- // src/plus/clientName/type.ts
16
- var type_exports = {};
17
- module.exports = __toCommonJS(type_exports);
@@ -1,2 +0,0 @@
1
- import { ClientData } from './type';
2
- export declare const getClientName: (dataSource: string | ClientData | null) => string | null;
@@ -1,43 +0,0 @@
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/clientName/utils.ts
20
- var utils_exports = {};
21
- __export(utils_exports, {
22
- getClientName: () => getClientName
23
- });
24
- module.exports = __toCommonJS(utils_exports);
25
- var getClientName = (dataSource) => {
26
- if (!dataSource || typeof dataSource === "string") {
27
- return dataSource;
28
- }
29
- const { first_name, last_name, display_name, nickname } = dataSource;
30
- let finalName = "";
31
- if (display_name) {
32
- finalName = display_name;
33
- } else if (nickname) {
34
- finalName = nickname;
35
- } else if (first_name || last_name) {
36
- finalName = `${first_name} ${last_name}`.trim();
37
- }
38
- return finalName;
39
- };
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
42
- getClientName
43
- });
@@ -1,2 +0,0 @@
1
- declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
- export default DateSectionCom;